@marimo-team/islands 0.25.3-dev322 → 0.25.3-dev348

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 (125) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DkXBUBf3.js → ConnectedDataExplorerComponent-xliyyXNO.js} +16 -16
  2. package/dist/{ErrorBoundary-CYa6lyKz.js → ErrorBoundary-CIimOpqs.js} +7 -7
  3. package/dist/{abnfDiagram-VCTEODGH-BPS-pTU2.js → abnfDiagram-VCTEODGH-Dl9Nrtbf.js} +2 -2
  4. package/dist/{any-language-editor-DIS7IdV1.js → any-language-editor-CBHhdCC0.js} +2 -2
  5. package/dist/{architectureDiagram-5GKGNRK7-DB2MHOb7.js → architectureDiagram-5GKGNRK7-DTg032fQ.js} +1 -1
  6. package/dist/{assertNever-HbUt8DyH.js → assertNever-ie77PjMn.js} +13 -13
  7. package/dist/{chat-ui-85k50jaj.js → chat-ui-BV0qyfru.js} +51 -51
  8. package/dist/{check-CApDh1-n.js → check-DTIv5ZZ3.js} +1 -1
  9. package/dist/{chunk-IMKFNOWR-CjFCedjx.js → chunk-IMKFNOWR-CsFB-2LW.js} +1 -1
  10. package/dist/{chunk-SHT3W25Y-Dptltg0_.js → chunk-SHT3W25Y-ByuJHeBL.js} +1 -1
  11. package/dist/{chunk-SVP7TREG-2jBN760m.js → chunk-SVP7TREG-9oBZhbrr.js} +1 -1
  12. package/dist/{chunk-TICWLB2K-CS8BE-b9.js → chunk-TICWLB2K-Bx4m0cJ1.js} +1 -1
  13. package/dist/{classDiagram-ZZMXUADV-HtQWp-Cm.js → classDiagram-ZZMXUADV-Cms37-C9.js} +2 -2
  14. package/dist/{classDiagram-v2-VYDZK3BY-DA9LETN-.js → classDiagram-v2-VYDZK3BY-qAom4Bi7.js} +2 -2
  15. package/dist/{code-visibility-CGcIJMGj.js → code-visibility-_-8-dvb4.js} +20 -20
  16. package/dist/{common-B-Ng3J3K.js → common-CNXuhphD.js} +620 -620
  17. package/dist/{config-B171m9zn.js → config-CvBnR945.js} +3 -3
  18. package/dist/{copy-icon-k2_Fx5Qv.js → copy-icon-DmtNidSa.js} +2 -2
  19. package/dist/{createReducer-BPPI11pP.js → createReducer-BxBCTvKn.js} +5 -5
  20. package/dist/{cynefinDiagram-5FMLGOSQ-eyocrg_E.js → cynefinDiagram-5FMLGOSQ-BjJZwMEz.js} +1 -1
  21. package/dist/{dagre-GXQ25YYZ-Dtm96Nvx.js → dagre-GXQ25YYZ-Bohu7_09.js} +1 -1
  22. package/dist/{data-grid-overlay-editor-CUD6F0Vj.js → data-grid-overlay-editor--4Gk_rwA.js} +1 -1
  23. package/dist/{diagram-S7CK7UJ4-C09TrdNO.js → diagram-S7CK7UJ4-Chl0n835.js} +1 -1
  24. package/dist/{diagram-UQ7AKVKN-vHUsSML6.js → diagram-UQ7AKVKN-DHx8nzy7.js} +1 -1
  25. package/dist/{diagram-VX7I27RA-Ch4mRgz8.js → diagram-VX7I27RA-CKdpv1U4.js} +1 -1
  26. package/dist/{diagram-Z3DM3KII-DyFQNdAL.js → diagram-Z3DM3KII-sY-sI--2.js} +1 -1
  27. package/dist/{dialog-C2Muh059.js → dialog-Cqu5Hp5U.js} +21 -21
  28. package/dist/{dropdown-menu-BGbNnuFq.js → dropdown-menu-DXEYk99S.js} +707 -707
  29. package/dist/{ebnfDiagram-PWID7BFC-N3SvlrCs.js → ebnfDiagram-PWID7BFC-CD0P2xeH.js} +2 -2
  30. package/dist/{erDiagram-RLTQ6QDP-RR2q2xtd.js → erDiagram-RLTQ6QDP-BaKQuYxC.js} +1 -1
  31. package/dist/{error-banner-3_4Lc93Y.js → error-banner-DUB_qUeL.js} +58 -58
  32. package/dist/{error-entries-BhNAZWU1.js → error-entries-CTb_cxXY.js} +310 -310
  33. package/dist/{feedback-button-DK6zUzAk.js → feedback-button-BaA4r2dl.js} +7 -7
  34. package/dist/{flowDiagram-HODETNUW-nxd7WhlW.js → flowDiagram-HODETNUW-BcCpHh7-.js} +2 -2
  35. package/dist/{formats-aUcw6MrS.js → formats-hF6fETr6.js} +1 -1
  36. package/dist/{glide-data-editor-O-94UN5R.js → glide-data-editor-CRn3KXyR.js} +3129 -3119
  37. package/dist/{glide-utils-D4UP8TGv.js → glide-utils-Bnd_k48H.js} +2 -2
  38. package/dist/{globals-BVjYePCn.js → globals-_FmD97Ui.js} +3 -3
  39. package/dist/{html-to-image-DOOtP-4-.js → html-to-image-Bbl0PeC7.js} +478 -478
  40. package/dist/{infoDiagram-27XIBGKW-CUYXQKGf.js → infoDiagram-27XIBGKW-DWltseIa.js} +1 -1
  41. package/dist/{ishikawaDiagram-5VMMS53U-v6gsCrlK.js → ishikawaDiagram-5VMMS53U-DHgepBPo.js} +1 -1
  42. package/dist/{kanban-definition-UXKFOSKX-z236-0Ok.js → kanban-definition-UXKFOSKX-B2_BIjBq.js} +1 -1
  43. package/dist/main.js +6712 -6590
  44. package/dist/{mermaid-C7lQ_2LJ.js → mermaid--2K0cmt9.js} +34 -34
  45. package/dist/{mindmap-definition-YA3MSWOX--pZF7OCY.js → mindmap-definition-YA3MSWOX-DNebycIP.js} +1 -1
  46. package/dist/{number-overlay-editor-jkzzCN4e.js → number-overlay-editor-Bcg25qrp.js} +1 -1
  47. package/dist/{pegDiagram-XKGWAZYB-Bgw0Zz_6.js → pegDiagram-XKGWAZYB-CH4U3II-.js} +2 -2
  48. package/dist/{pencil-RXFY-Ek8.js → pencil-MMnw1YQh.js} +1 -1
  49. package/dist/{pieDiagram-E7YTZNPT-B27tDYvK.js → pieDiagram-E7YTZNPT-pfcrdUCa.js} +1 -1
  50. package/dist/{process-output-CiX_Dl4L.js → process-output-Dw_sI4Xp.js} +4 -4
  51. package/dist/{railroadDiagram-O6MQD6OU-CBjPhGpj.js → railroadDiagram-O6MQD6OU-BZKpAbNG.js} +2 -2
  52. package/dist/{requirementDiagram-BXWQKSXE-DDDrLEw9.js → requirementDiagram-BXWQKSXE-DnyfIHe3.js} +1 -1
  53. package/dist/{reveal-component-CvPmNI5C.js → reveal-component-BVC491am.js} +18 -18
  54. package/dist/{select-Cv6lR39D.js → select-suaAxFuo.js} +286 -286
  55. package/dist/{sequenceDiagram-WJ2MYXX4-DQPaMygQ.js → sequenceDiagram-WJ2MYXX4-BeYuWX7N.js} +1 -1
  56. package/dist/{spec-BoCLWa-M.js → spec-BQNx2-D7.js} +4 -4
  57. package/dist/{stateDiagram-D77RDMKH-BDoDVVnq.js → stateDiagram-D77RDMKH-B8FxwAM2.js} +2 -2
  58. package/dist/{stateDiagram-v2-MP3YSRHH-KNko46uJ.js → stateDiagram-v2-MP3YSRHH-CzWLBqm1.js} +2 -2
  59. package/dist/{static-state-DgdOadIH.js → static-state-Al_hmf1n.js} +6 -6
  60. package/dist/style.css +1 -1
  61. package/dist/{swimlanes-42K2YHIH-boFjOuiI.js → swimlanes-42K2YHIH-CzKmGMts.js} +1 -1
  62. package/dist/{swimlanesDiagram-VR7AAH4N-BC4FLNwY.js → swimlanesDiagram-VR7AAH4N-DnWIUN_9.js} +2 -2
  63. package/dist/{timeline-definition-24CTP7MA-CLVPYA-v.js → timeline-definition-24CTP7MA-Czf2QN2R.js} +1 -1
  64. package/dist/{toast-CUuX7uXg.js → toast-CsJa1nGj.js} +66 -66
  65. package/dist/{tooltip-DBv8QUvS.js → tooltip-BVbJPkcl.js} +49 -49
  66. package/dist/{use-restore-focus-BxJh5Zfa.js → use-restore-focus-tPmARo1Q.js} +1035 -1022
  67. package/dist/{useDateFormatter-2k4mHRBq.js → useDateFormatter-B4ygYuUU.js} +2 -2
  68. package/dist/{useDeepCompareMemoize-Cb2GRQIS.js → useDeepCompareMemoize-Bcu0DkCS.js} +1 -1
  69. package/dist/{useLifecycle-B2fV3c8N.js → useLifecycle-MTdtnR3-.js} +1 -1
  70. package/dist/{vega-component-do3stf0K.js → vega-component-BhBbP4S7.js} +6 -6
  71. package/dist/{vennDiagram-4TSXK5OY-BLq7sNjb.js → vennDiagram-4TSXK5OY-BrHqWB1U.js} +1 -1
  72. package/dist/{wardleyDiagram-VM6X3IG4-oyJEWWtb.js → wardleyDiagram-VM6X3IG4-Cms1K_3v.js} +1 -1
  73. package/dist/{xychartDiagram-S5SC5T6Z-DMjWgQPm.js → xychartDiagram-S5SC5T6Z-_kUiODzS.js} +1 -1
  74. package/package.json +1 -1
  75. package/src/__mocks__/requests.ts +0 -2
  76. package/src/components/chat/__tests__/notebook-context.test.ts +199 -0
  77. package/src/components/chat/chat-panel.tsx +33 -15
  78. package/src/components/chat/notebook-context.ts +80 -0
  79. package/src/components/editor/cell/StopButton.tsx +3 -3
  80. package/src/components/editor/cell/cell-context-menu.tsx +18 -2
  81. package/src/components/editor/cell/code/__tests__/language-toggle.test.tsx +38 -1
  82. package/src/components/editor/cell/code/cell-editor.tsx +2 -1
  83. package/src/components/editor/cell/code/language-toggle.tsx +6 -4
  84. package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +9 -6
  85. package/src/components/slides/slide-cell-view.tsx +2 -1
  86. package/src/components/ui/__tests__/fullscreen.test.tsx +56 -1
  87. package/src/components/ui/fullscreen.tsx +18 -2
  88. package/src/components/ui/slider.tsx +6 -2
  89. package/src/core/codemirror/copilot/getCodes.ts +1 -1
  90. package/src/core/edit-app.tsx +5 -4
  91. package/src/core/executions/__tests__/input.test.ts +1 -1
  92. package/src/core/executions/__tests__/interrupt.test.ts +200 -0
  93. package/src/core/executions/__tests__/run.test.ts +3 -3
  94. package/src/core/executions/index.ts +1 -0
  95. package/src/core/executions/interrupt.ts +49 -0
  96. package/src/core/islands/bridge.ts +0 -2
  97. package/src/core/network/requests-network.ts +0 -15
  98. package/src/core/network/requests-static.ts +0 -2
  99. package/src/core/network/requests-toasting.tsx +0 -2
  100. package/src/core/network/types.ts +0 -3
  101. package/src/core/notebook/document/__tests__/model.test.ts +4 -4
  102. package/src/core/notebook/document/__tests__/test-host.test.ts +6 -6
  103. package/src/core/notebook/document/__tests__/test-host.ts +42 -46
  104. package/src/core/notebook/document/__tests__/test-notebook.ts +5 -4
  105. package/src/core/notebook/document/sync.ts +12 -5
  106. package/src/core/notebook/replica/__tests__/fixtures.ts +8 -0
  107. package/src/core/notebook/replica/backend.ts +1 -1
  108. package/src/core/saving/__tests__/document.test.tsx +1 -1
  109. package/src/core/transports/__tests__/static.test.ts +1 -1
  110. package/src/core/transports/__tests__/wasm.test.ts +1 -1
  111. package/src/core/transports/static.ts +8 -2
  112. package/src/core/transports/wasm.ts +2 -4
  113. package/src/core/wasm/__tests__/bridge.test.ts +170 -26
  114. package/src/core/wasm/bridge.ts +64 -19
  115. package/src/core/wasm/worker/types.ts +0 -1
  116. package/src/plugins/impl/DataEditorPlugin.tsx +32 -21
  117. package/src/plugins/impl/SliderPlugin.tsx +35 -3
  118. package/src/plugins/impl/__test__/slider-labels.test.tsx +30 -0
  119. package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +103 -12
  120. package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +40 -0
  121. package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +159 -4
  122. package/src/plugins/impl/data-editor/glide-data-editor.tsx +30 -10
  123. package/src/plugins/impl/data-editor/glide-portal.tsx +5 -3
  124. package/src/plugins/layout/AccordionPlugin.tsx +2 -1
  125. package/src/plugins/layout/__tests__/AccordionPlugin.test.tsx +21 -0
@@ -2,18 +2,18 @@ import { a as e, i as t, n, r, t as i } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { g as a, h as o, t as s } from "./button-qQhINE7z.js";
3
3
  import { t as c } from "./react-Bgs_wQh3.js";
4
4
  import { t as l } from "./compiler-runtime-C5KHtL5D.js";
5
- import { h as u, t as d } from "./tooltip-DBv8QUvS.js";
6
- import { D as f, t as p } from "./spec-BoCLWa-M.js";
7
- import { a as m, i as h, o as g, r as _, s as v, t as y } from "./useLifecycle-B2fV3c8N.js";
8
- import { a as b, t as x } from "./useDateFormatter-2k4mHRBq.js";
9
- import { a as S, c as C, d as w, i as T, n as ee, o as E, r as te, s as ne, t as re, x as D } from "./select-Cv6lR39D.js";
10
- import { r as O } from "./assertNever-HbUt8DyH.js";
5
+ import { h as u, t as d } from "./tooltip-BVbJPkcl.js";
6
+ import { D as f, t as p } from "./spec-BQNx2-D7.js";
7
+ import { a as m, i as h, o as g, r as _, s as v, t as y } from "./useLifecycle-MTdtnR3-.js";
8
+ import { a as b, t as x } from "./useDateFormatter-B4ygYuUU.js";
9
+ import { a as S, c as C, d as w, i as T, n as ee, o as E, r as te, s as ne, t as re, x as D } from "./select-suaAxFuo.js";
10
+ import { r as O } from "./assertNever-ie77PjMn.js";
11
11
  import { t as k } from "./jsx-runtime-D8btoEHk.js";
12
- import { Ft as ie, Nt as ae, Rt as oe, u as se, zt as ce } from "./use-restore-focus-BxJh5Zfa.js";
13
- import { n as le } from "./error-banner-3_4Lc93Y.js";
12
+ import { Bt as ie, Ft as ae, Lt as oe, Vt as se, d as ce } from "./use-restore-focus-tPmARo1Q.js";
13
+ import { n as le } from "./error-banner-DUB_qUeL.js";
14
14
  import { t as ue } from "./objects-DCmMvZtn.js";
15
15
  import { t as de } from "./invariant-DLmrl-hA.js";
16
- import { t as fe } from "./createReducer-BPPI11pP.js";
16
+ import { t as fe } from "./createReducer-BxBCTvKn.js";
17
17
  import { t as pe } from "./useAsyncData-P5-Oovhq.js";
18
18
  import { W as me } from "./vega-loader.browser-Co9gYE8Z.js";
19
19
  import { n as he, r as ge } from "./react-vega-CGgQEf0O.js";
@@ -5880,7 +5880,7 @@ var { valueAtom: gu, useActions: _u } = fe(hu, {
5880
5880
  function vu() {
5881
5881
  return _u();
5882
5882
  }
5883
- var yu = oe((e) => {
5883
+ var yu = ie((e) => {
5884
5884
  let t = e(gu);
5885
5885
  if (!t.schema) return {};
5886
5886
  let n = pu({
@@ -5904,7 +5904,7 @@ var yu = oe((e) => {
5904
5904
  "size",
5905
5905
  "shape"
5906
5906
  ], Su = (e) => {
5907
- let t = (0, xe.c)(26), { schema: n, mark: r } = e, i = ie(gu), a = vu(), o = i.encoding.x && i.encoding.y, s;
5907
+ let t = (0, xe.c)(26), { schema: n, mark: r } = e, i = oe(gu), a = vu(), o = i.encoding.x && i.encoding.y, s;
5908
5908
  t[0] !== a || t[1] !== o || t[2] !== n || t[3] !== i.encoding ? (s = (e) => /* @__PURE__ */ (0, $.jsx)(Cu, {
5909
5909
  schema: n,
5910
5910
  label: e,
@@ -6145,7 +6145,7 @@ function Ou(e) {
6145
6145
  //#region src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx
6146
6146
  var ku = (e) => {
6147
6147
  let t = (0, xe.c)(5), n;
6148
- t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = ce(), t[0] = n) : n = t[0];
6148
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = se(), t[0] = n) : n = t[0];
6149
6149
  let r = n, i;
6150
6150
  t[1] === e ? i = t[2] : (i = () => {
6151
6151
  let t = r.sub(gu, () => {
@@ -6197,7 +6197,7 @@ var ju = (e) => {
6197
6197
  }, t[0] = r, t[1] = n, t[2] = i) : i = t[2];
6198
6198
  let a;
6199
6199
  t[3] === n ? a = t[4] : (a = [n], t[3] = n, t[4] = a);
6200
- let { data: c, isPending: l, error: u } = pe(i, a), { mark: f } = ie(gu), m = ie(yu), { theme: h } = se();
6200
+ let { data: c, isPending: l, error: u } = pe(i, a), { mark: f } = oe(gu), m = oe(yu), { theme: h } = ce();
6201
6201
  if (u) {
6202
6202
  let e;
6203
6203
  return t[5] === u ? e = t[6] : (e = /* @__PURE__ */ (0, $.jsx)(le, { error: u }), t[5] = u, t[6] = e), e;
@@ -6278,11 +6278,11 @@ var ju = (e) => {
6278
6278
  } else O = t[32];
6279
6279
  let k;
6280
6280
  t[38] === O ? k = t[39] : (k = /* @__PURE__ */ (0, $.jsx)(Mu, { children: O }), t[38] = O, t[39] = k);
6281
- let ae;
6282
- return t[40] !== k || t[41] !== E ? (ae = /* @__PURE__ */ (0, $.jsxs)("div", {
6281
+ let ie;
6282
+ return t[40] !== k || t[41] !== E ? (ie = /* @__PURE__ */ (0, $.jsxs)("div", {
6283
6283
  className: "flex flex-col gap-2",
6284
6284
  children: [E, k]
6285
- }), t[40] = k, t[41] = E, t[42] = ae) : ae = t[42], ae;
6285
+ }), t[40] = k, t[41] = E, t[42] = ie) : ie = t[42], ie;
6286
6286
  }, Mu = (e) => {
6287
6287
  let t = (0, xe.c)(2), { children: n } = e;
6288
6288
  if (kl.Children.count(n) === 0) return null;
@@ -2,13 +2,13 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { h as t, t as n } from "./button-qQhINE7z.js";
3
3
  import { t as r } from "./react-Bgs_wQh3.js";
4
4
  import { t as i } from "./compiler-runtime-C5KHtL5D.js";
5
- import { a, t as o } from "./copy-icon-k2_Fx5Qv.js";
6
- import { i as s } from "./tooltip-DBv8QUvS.js";
5
+ import { a, t as o } from "./copy-icon-DmtNidSa.js";
6
+ import { i as s } from "./tooltip-BVbJPkcl.js";
7
7
  import { t as c } from "./react-dom-DdqGVp5N.js";
8
8
  import { t as l } from "./jsx-runtime-D8btoEHk.js";
9
- import { Nt as u, a as d, c as f, yt as p } from "./use-restore-focus-BxJh5Zfa.js";
10
- import { a as m, i as h, o as g, r as _, s as v, t as y } from "./toast-CUuX7uXg.js";
11
- import { o as b, t as x } from "./dialog-C2Muh059.js";
9
+ import { Ft as u, l as d, o as f, xt as p } from "./use-restore-focus-tPmARo1Q.js";
10
+ import { a as m, i as h, o as g, r as _, s as v, t as y } from "./toast-CsJa1nGj.js";
11
+ import { o as b, t as x } from "./dialog-Cqu5Hp5U.js";
12
12
  //#region ../node_modules/.pnpm/react-error-boundary@5.0.0_react@19.3.1/node_modules/react-error-boundary/dist/react-error-boundary.esm.js
13
13
  var S = i(), C = /* @__PURE__ */ e(r()), w = (0, C.createContext)(null), T = {
14
14
  didCatch: !1,
@@ -80,7 +80,7 @@ var O = /* @__PURE__ */ e(c(), 1), k = l(), A = () => {
80
80
  e[2] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0, k.jsx)(j, {}), e[2] = r) : r = e[2];
81
81
  let i;
82
82
  return e[3] === n ? i = e[4] : (i = /* @__PURE__ */ (0, k.jsxs)(m, { children: [n, r] }), e[3] = n, e[4] = i), i;
83
- }, j = d(({ container: e }) => (0, O.createPortal)(/* @__PURE__ */ (0, k.jsx)(f, { children: /* @__PURE__ */ (0, k.jsx)(v, {}) }), e ?? document.body)), M = (e) => {
83
+ }, j = f(({ container: e }) => (0, O.createPortal)(/* @__PURE__ */ (0, k.jsx)(d, { children: /* @__PURE__ */ (0, k.jsx)(v, {}) }), e ?? document.body)), M = (e) => {
84
84
  let n = (0, S.c)(23), r, i, a, s, c;
85
85
  n[0] === e ? (r = n[1], i = n[2], a = n[3], s = n[4], c = n[5]) : ({toastTitle: s, toastDescription: a, action: r, variant: c, ...i} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = s, n[5] = c);
86
86
  let l = (0, C.useRef)(null), u = !!a && !r && c === "danger", d;
@@ -129,7 +129,7 @@ function N(e) {
129
129
  }
130
130
  //#endregion
131
131
  //#region src/components/editor/boundary/ErrorBoundary.tsx
132
- var P = (0, C.lazy)(() => import("./feedback-button-DK6zUzAk.js").then((e) => ({ default: e.FeedbackModal }))), F = (e) => {
132
+ var P = (0, C.lazy)(() => import("./feedback-button-BaA4r2dl.js").then((e) => ({ default: e.FeedbackModal }))), F = (e) => {
133
133
  let t = (0, S.c)(2), n;
134
134
  return t[0] === e.children ? n = t[1] : (n = /* @__PURE__ */ (0, k.jsx)(E, {
135
135
  FallbackComponent: I,
@@ -1,9 +1,9 @@
1
1
  import { n as e } from "./src-D5uZaZib.js";
2
2
  import { n as t } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
3
3
  import "./chunk-DU6HZSFF-4SDIhUTY.js";
4
- import "./mermaid-C7lQ_2LJ.js";
4
+ import "./mermaid--2K0cmt9.js";
5
5
  import { m as n, t as r } from "./mermaid-parser.core-DtOnl7m4.js";
6
- import { n as i, r as a, t as o } from "./chunk-SVP7TREG-2jBN760m.js";
6
+ import { n as i, r as a, t as o } from "./chunk-SVP7TREG-9oBZhbrr.js";
7
7
  import { t as s } from "./chunk-JWPE2WC7-DJvv1t8U.js";
8
8
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/abnfDiagram-VCTEODGH.mjs
9
9
  var c = n().RailroadAbnf.parser.LangiumParser, l = /* @__PURE__ */ t((e) => {
@@ -2,9 +2,9 @@ import "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { g as e } from "./button-qQhINE7z.js";
3
3
  import { t } from "./react-Bgs_wQh3.js";
4
4
  import { t as n } from "./compiler-runtime-C5KHtL5D.js";
5
- import { t as r } from "./copy-icon-k2_Fx5Qv.js";
5
+ import { t as r } from "./copy-icon-DmtNidSa.js";
6
6
  import { t as i } from "./jsx-runtime-D8btoEHk.js";
7
- import { n as a } from "./error-banner-3_4Lc93Y.js";
7
+ import { n as a } from "./error-banner-DUB_qUeL.js";
8
8
  import { t as o } from "./esm-Dc_RPXvZ.js";
9
9
  import { n as s, t as c } from "./esm-wKplZtOX.js";
10
10
  //#region src/plugins/impl/code/any-language-editor.tsx
@@ -5,7 +5,7 @@ import { n as o } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
5
5
  import { H as s, J as c, K as l, U as u, a as d, b as f, f as p, v as m, w as h, x as g, y as _, z as v } from "./chunk-DU6HZSFF-4SDIhUTY.js";
6
6
  import { i as y, r as b, t as x } from "./chunk-PWAF6VOD-CRu_RGP2.js";
7
7
  import { n as S } from "./chunk-GMAD6QVW-BJGF8QZL.js";
8
- import { p as C } from "./mermaid-C7lQ_2LJ.js";
8
+ import { p as C } from "./mermaid--2K0cmt9.js";
9
9
  import { n as w } from "./mermaid-parser.core-DtOnl7m4.js";
10
10
  import { t as T } from "./chunk-JWPE2WC7-DJvv1t8U.js";
11
11
  import { t as E } from "./cytoscape.esm-BbeMznK5.js";
@@ -1,9 +1,9 @@
1
1
  import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { g as t, p as n, u as r } from "./button-qQhINE7z.js";
3
3
  import { t as i } from "./react-Bgs_wQh3.js";
4
- import { h as a } from "./tooltip-DBv8QUvS.js";
4
+ import { h as a } from "./tooltip-BVbJPkcl.js";
5
5
  import { t as o } from "./jsx-runtime-D8btoEHk.js";
6
- import { fn as s, pn as c } from "./use-restore-focus-BxJh5Zfa.js";
6
+ import { hn as s, mn as c } from "./use-restore-focus-tPmARo1Q.js";
7
7
  import { t as l } from "./invariant-DLmrl-hA.js";
8
8
  var u = a("x", [["path", {
9
9
  d: "M18 6 6 18",
@@ -17,7 +17,7 @@ var u = a("x", [["path", {
17
17
  });
18
18
  // @__NO_SIDE_EFFECTS__
19
19
  function h(e) {
20
- let t = e + "CollectionProvider", [i, a] = c(t), [o, s] = i(t, {
20
+ let t = e + "CollectionProvider", [i, a] = s(t), [o, c] = i(t, {
21
21
  collectionRef: { current: null },
22
22
  itemMap: /* @__PURE__ */ new Map()
23
23
  }), l = /* @__PURE__ */ m((e) => {
@@ -31,7 +31,7 @@ function h(e) {
31
31
  }, "CollectionProvider");
32
32
  l.displayName = t;
33
33
  let u = e + "CollectionSlot", p = r(u), h = d.forwardRef((e, t) => {
34
- let { scope: r, children: i } = e, a = s(u, r), o = n(t, a.collectionRef);
34
+ let { scope: r, children: i } = e, a = c(u, r), o = n(t, a.collectionRef);
35
35
  return /* @__PURE__ */ (0, f.jsx)(p, {
36
36
  ref: o,
37
37
  children: i
@@ -39,19 +39,19 @@ function h(e) {
39
39
  });
40
40
  h.displayName = u;
41
41
  let g = e + "CollectionItemSlot", _ = "data-radix-collection-item", v = r(g), y = d.forwardRef((e, t) => {
42
- let { scope: r, children: i, ...a } = e, o = d.useRef(null), c = n(t, o), l = s(g, r);
42
+ let { scope: r, children: i, ...a } = e, o = d.useRef(null), s = n(t, o), l = c(g, r);
43
43
  return d.useEffect(() => (l.itemMap.set(o, {
44
44
  ref: o,
45
45
  ...a
46
46
  }), () => void l.itemMap.delete(o))), /* @__PURE__ */ (0, f.jsx)(v, {
47
47
  [_]: "",
48
- ref: c,
48
+ ref: s,
49
49
  children: i
50
50
  });
51
51
  });
52
52
  y.displayName = g;
53
53
  function b(t) {
54
- let n = s(e + "CollectionConsumer", t);
54
+ let n = c(e + "CollectionConsumer", t);
55
55
  return d.useCallback(() => {
56
56
  let e = n.collectionRef.current;
57
57
  if (!e) return [];
@@ -297,7 +297,7 @@ function b(e) {
297
297
  m(b, "toSafeInteger");
298
298
  // @__NO_SIDE_EFFECTS__
299
299
  function x(e) {
300
- let t = e + "CollectionProvider", [i, a] = c(t), [o, l] = i(t);
300
+ let t = e + "CollectionProvider", [i, a] = s(t), [o, l] = i(t);
301
301
  o.displayName = e + "CollectionStableContextProvider";
302
302
  let [u, p] = i(t);
303
303
  u.displayName = e + "CollectionStatefulContextProvider";
@@ -358,7 +358,7 @@ function x(e) {
358
358
  });
359
359
  x.displayName = y;
360
360
  let C = e + "CollectionItemSlot", D = r(C), O = d.forwardRef((e, t) => {
361
- let { scope: r, children: i, ...a } = e, o = d.useRef(null), { setCollection: c, registryRef: u } = l(C, r), p = d.useRef(a);
361
+ let { scope: r, children: i, ...a } = e, o = d.useRef(null), { setCollection: s, registryRef: u } = l(C, r), p = d.useRef(a);
362
362
  S(p.current, a) || (p.current = a);
363
363
  let m = p.current, h = d.useCallback((e) => {
364
364
  let t = u.current;
@@ -367,7 +367,7 @@ function x(e) {
367
367
  element: e
368
368
  }) : o.current && t.delete(o.current);
369
369
  }, [u]), g = n(t, h, o);
370
- s(() => {
370
+ c(() => {
371
371
  let e = o.current, t = u.current;
372
372
  e && t.has(e) && t.set(e, {
373
373
  ...m,
@@ -380,7 +380,7 @@ function x(e) {
380
380
  ((t?.element ?? null) !== e || e && t?.itemData !== m) && (v.current = e ? {
381
381
  element: e,
382
382
  itemData: m
383
- } : null, c((n) => {
383
+ } : null, s((n) => {
384
384
  let r = new _(n);
385
385
  return t && t.element !== e && r.delete(t.element), e && r.set(e, {
386
386
  ...m,
@@ -389,12 +389,12 @@ function x(e) {
389
389
  }));
390
390
  }), d.useEffect(() => () => {
391
391
  let e = v.current;
392
- v.current = null, e && c((t) => {
392
+ v.current = null, e && s((t) => {
393
393
  if (!t.has(e.element)) return t;
394
394
  let n = new _(t);
395
395
  return n.delete(e.element), n;
396
396
  });
397
- }, [c]), /* @__PURE__ */ (0, f.jsx)(D, {
397
+ }, [s]), /* @__PURE__ */ (0, f.jsx)(D, {
398
398
  "data-radix-collection-item": "",
399
399
  ref: g,
400
400
  children: i
@@ -2,19 +2,19 @@ import { a as e, t } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { g as n, h as r, i, t as a } from "./button-qQhINE7z.js";
3
3
  import { t as o } from "./react-Bgs_wQh3.js";
4
4
  import { t as s } from "./compiler-runtime-C5KHtL5D.js";
5
- import { i as c, t as l } from "./copy-icon-k2_Fx5Qv.js";
6
- import { At as u, Bt as d, Dt as f, Et as p, Ft as m, Ht as h, J as g, Lt as _, M as v, Ot as y, Pt as b, Rt as x, U as S, V as C, W as w, Y as T, a as E, dt as D, et as O, f as k, g as A, h as j, ht as M, l as N, m as P, n as ee, nt as te, p as F, r as ne, st as re, t as ie, tt as ae, u as oe, v as se, wt as ce, xt as le } from "./html-to-image-DOOtP-4-.js";
7
- import { h as I, t as ue } from "./tooltip-DBv8QUvS.js";
8
- import { d as de } from "./select-Cv6lR39D.js";
9
- import { Sn as fe, _ as pe, bn as me, f as he, h as ge, i as _e, n as ve, t as ye } from "./dropdown-menu-BGbNnuFq.js";
10
- import { a as be, l as xe } from "./config-B171m9zn.js";
11
- import { $ as Se, Ct as Ce, P as we, W as Te, Xt as Ee, h as De, i as Oe, j as ke, ot as Ae, r as je, t as Me } from "./error-entries-BhNAZWU1.js";
12
- import { d as Ne, f as Pe, i as Fe, n as Ie, t as Le, u as Re } from "./process-output-CiX_Dl4L.js";
13
- import { t as ze } from "./pencil-RXFY-Ek8.js";
14
- import { n as Be, r as Ve, s as He } from "./assertNever-HbUt8DyH.js";
5
+ import { i as c, t as l } from "./copy-icon-DmtNidSa.js";
6
+ import { At as u, Bt as d, Dt as f, Et as p, Ft as m, Ht as h, J as g, Lt as _, M as v, Ot as y, Pt as b, Rt as x, U as S, V as C, W as w, Y as T, a as E, dt as D, et as O, f as k, g as A, h as j, ht as M, l as N, m as P, n as ee, nt as te, p as F, r as ne, st as re, t as ie, tt as ae, u as oe, v as se, wt as ce, xt as le } from "./html-to-image-Bbl0PeC7.js";
7
+ import { h as I, t as ue } from "./tooltip-BVbJPkcl.js";
8
+ import { d as de } from "./select-suaAxFuo.js";
9
+ import { Cn as fe, _ as pe, f as me, h as he, i as ge, n as _e, t as ve, xn as ye } from "./dropdown-menu-DXEYk99S.js";
10
+ import { a as be, l as xe } from "./config-CvBnR945.js";
11
+ import { $ as Se, Ct as Ce, P as we, W as Te, Xt as Ee, h as De, i as Oe, j as ke, ot as Ae, r as je, t as Me } from "./error-entries-CTb_cxXY.js";
12
+ import { d as Ne, f as Pe, i as Fe, n as Ie, t as Le, u as Re } from "./process-output-Dw_sI4Xp.js";
13
+ import { t as ze } from "./pencil-MMnw1YQh.js";
14
+ import { n as Be, r as Ve, s as He } from "./assertNever-ie77PjMn.js";
15
15
  import { t as Ue } from "./jsx-runtime-D8btoEHk.js";
16
- import { $ as We, Ft as Ge, G as Ke, H as qe, J as Je, K as Ye, Lt as Xe, Q as Ze, U as Qe, W as $e, Y as et, Z as tt, at as nt, ct as rt, ft as it, h as at, lt as ot, nt as st, ot as ct, q as lt, rt as ut, tt as dt, u as ft, ut as pt } from "./use-restore-focus-BxJh5Zfa.js";
17
- import { n as mt } from "./error-banner-3_4Lc93Y.js";
16
+ import { $ as We, G as Ge, J as Ke, K as qe, Lt as Je, Q as Ye, U as Xe, W as Ze, X as Qe, Y as $e, ct as et, d as tt, dt as nt, et as rt, ft as it, g as at, it as ot, mt as st, nt as ct, ot as lt, q as ut, rt as dt, ut as ft, zt as pt } from "./use-restore-focus-tPmARo1Q.js";
17
+ import { n as mt } from "./error-banner-DUB_qUeL.js";
18
18
  import { t as ht } from "./isEmpty-CdX7MTE1.js";
19
19
  import { t as gt } from "./objects-DCmMvZtn.js";
20
20
  import { t as _t } from "./useEvent-BoN7U38T.js";
@@ -1417,12 +1417,12 @@ function Jr(e, t) {
1417
1417
  }
1418
1418
  function Yr(e, t) {
1419
1419
  let n = t?.useReferences ?? !1;
1420
- return Ur(() => Gn(it(e, {
1420
+ return Ur(() => Gn(st(e, {
1421
1421
  target: "draft-7",
1422
1422
  io: "input",
1423
1423
  reused: n ? "ref" : "inline"
1424
1424
  })), { validate: async (t) => {
1425
- let n = await pt(e, t);
1425
+ let n = await it(e, t);
1426
1426
  return n.success ? {
1427
1427
  success: !0,
1428
1428
  value: n.data
@@ -1556,23 +1556,23 @@ function ui(e, t) {
1556
1556
  return n;
1557
1557
  }
1558
1558
  var q = {
1559
- array: Ye,
1560
- boolean: lt,
1561
- custom: Je,
1562
- discriminatedUnion: et,
1563
- enum: qe,
1564
- instanceof: Qe,
1565
- lazy: tt,
1566
- literal: Ze,
1567
- looseObject: We,
1568
- never: dt,
1569
- null: $e,
1570
- number: st,
1571
- object: ut,
1572
- record: nt,
1573
- string: ct,
1574
- union: rt,
1575
- unknown: ot
1559
+ array: ut,
1560
+ boolean: Ke,
1561
+ custom: $e,
1562
+ discriminatedUnion: Qe,
1563
+ enum: Xe,
1564
+ instanceof: Ze,
1565
+ lazy: Ye,
1566
+ literal: We,
1567
+ looseObject: rt,
1568
+ never: ct,
1569
+ null: Ge,
1570
+ number: dt,
1571
+ object: ot,
1572
+ record: lt,
1573
+ string: et,
1574
+ union: ft,
1575
+ unknown: nt
1576
1576
  }, di = q.lazy(() => q.union([
1577
1577
  q.null(),
1578
1578
  q.string(),
@@ -4377,7 +4377,7 @@ var eo = (e) => {
4377
4377
  //#endregion
4378
4378
  //#region src/components/chat/chat-markdown.tsx
4379
4379
  function no(e) {
4380
- let t = (0, L.c)(3), { content: n } = e, r = Ge(at)?.mode, i = r !== "agent" && r !== "code_mode", a;
4380
+ let t = (0, L.c)(3), { content: n } = e, r = Je(at)?.mode, i = r !== "agent" && r !== "code_mode", a;
4381
4381
  return t[0] !== n || t[1] !== i ? (a = /* @__PURE__ */ (0, Z.jsx)(ne, {
4382
4382
  content: n,
4383
4383
  allowNotebookInsertion: i
@@ -4536,7 +4536,7 @@ var ao = (e) => {
4536
4536
  add_cell: {
4537
4537
  running: "Adding cell",
4538
4538
  done: "Added cell",
4539
- icon: me
4539
+ icon: ye
4540
4540
  },
4541
4541
  update_cell: {
4542
4542
  running: "Editing cell",
@@ -4605,13 +4605,13 @@ function po(e) {
4605
4605
  function mo(e) {
4606
4606
  return e == null || typeof e == "object" && ht(e);
4607
4607
  }
4608
- var ho = We({
4609
- status: ct().default("success"),
4610
- auth_required: lt().default(!1),
4611
- action_url: Ke().optional(),
4612
- next_steps: Ke().optional(),
4613
- meta: Ke().optional(),
4614
- message: ct().nullish()
4608
+ var ho = rt({
4609
+ status: et().default("success"),
4610
+ auth_required: Ke().default(!1),
4611
+ action_url: qe().optional(),
4612
+ next_steps: qe().optional(),
4613
+ meta: qe().optional(),
4614
+ message: et().nullish()
4615
4615
  }), go = (e) => {
4616
4616
  let t = (0, L.c)(12), { data: n } = e, r;
4617
4617
  if (t[0] !== n) {
@@ -5481,8 +5481,8 @@ function _s(e) {
5481
5481
  }
5482
5482
  //#endregion
5483
5483
  //#region src/components/editor/ai/prompt-input.tsx
5484
- var vs = "marimo:ai-prompt-history", ys = new we(Ye(ct()), () => []), bs = (e) => {
5485
- let t = (0, L.c)(28), { value: n, placeholder: i, placeholderAction: a, inputRef: o, className: s, onChange: c, onSubmit: l, onKeyDown: u, onClose: d, onAddFiles: f, additionalCompletions: p, maxHeight: m } = e, h = _t(l), _ = _t(d), v = Xe(), { theme: y } = ft(), b;
5484
+ var vs = "marimo:ai-prompt-history", ys = new we(ut(et()), () => []), bs = (e) => {
5485
+ let t = (0, L.c)(28), { value: n, placeholder: i, placeholderAction: a, inputRef: o, className: s, onChange: c, onSubmit: l, onKeyDown: u, onClose: d, onAddFiles: f, additionalCompletions: p, maxHeight: m } = e, h = _t(l), _ = _t(d), v = pt(), { theme: y } = tt(), b;
5486
5486
  t[0] === p ? b = t[1] : (b = (e) => p ? Za([p.triggerCompletionRegex], p.completions)(e) : null, t[0] = p, t[1] = b);
5487
5487
  let x = _t(b), S;
5488
5488
  if (t[2] !== x || t[3] !== _ || t[4] !== h || t[5] !== f || t[6] !== a || t[7] !== v) {
@@ -5552,11 +5552,11 @@ function Ss(e) {
5552
5552
  }
5553
5553
  //#endregion
5554
5554
  //#region src/plugins/impl/chat/chat-ui.tsx
5555
- var Cs = ce, ws = ut({
5556
- type: Ze("stream_chunk"),
5557
- message_id: ct(),
5558
- content: Ke().nullable().transform((e) => e),
5559
- is_final: lt().optional()
5555
+ var Cs = ce, ws = ot({
5556
+ type: We("stream_chunk"),
5557
+ message_id: et(),
5558
+ content: qe().nullable().transform((e) => e),
5559
+ is_final: Ke().optional()
5560
5560
  });
5561
5561
  function Ts(e, t) {
5562
5562
  let { controllerRef: r, activeRequestIdRef: i } = t, a = r.current;
@@ -6007,7 +6007,7 @@ var Es = (e) => {
6007
6007
  let u = l, d;
6008
6008
  t[2] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0, Z.jsx)(ue, {
6009
6009
  content: "Select a prompt",
6010
- children: /* @__PURE__ */ (0, Z.jsx)(he, {
6010
+ children: /* @__PURE__ */ (0, Z.jsx)(me, {
6011
6011
  asChild: !0,
6012
6012
  children: /* @__PURE__ */ (0, Z.jsx)(a, {
6013
6013
  variant: "outline",
@@ -6020,14 +6020,14 @@ var Es = (e) => {
6020
6020
  let f;
6021
6021
  if (t[3] !== u || t[4] !== n) {
6022
6022
  let e;
6023
- t[6] === u ? e = t[7] : (e = (e, t) => /* @__PURE__ */ (0, Z.jsx)(_e, {
6023
+ t[6] === u ? e = t[7] : (e = (e, t) => /* @__PURE__ */ (0, Z.jsx)(ge, {
6024
6024
  onSelect: () => u(e),
6025
6025
  className: "whitespace-normal text-left",
6026
6026
  children: e
6027
6027
  }, t), t[6] = u, t[7] = e), f = n.map(e), t[3] = u, t[4] = n, t[5] = f;
6028
6028
  } else f = t[5];
6029
6029
  let p;
6030
- t[8] === f ? p = t[9] : (p = /* @__PURE__ */ (0, Z.jsx)(Cs, { children: /* @__PURE__ */ (0, Z.jsxs)(ye, { children: [d, /* @__PURE__ */ (0, Z.jsx)(ve, {
6030
+ t[8] === f ? p = t[9] : (p = /* @__PURE__ */ (0, Z.jsx)(Cs, { children: /* @__PURE__ */ (0, Z.jsxs)(ve, { children: [d, /* @__PURE__ */ (0, Z.jsx)(_e, {
6031
6031
  side: "right",
6032
6032
  align: "end",
6033
6033
  onCloseAutoFocus: js,
@@ -6087,7 +6087,7 @@ var Es = (e) => {
6087
6087
  htmlFor: n,
6088
6088
  className: "font-semibold text-base",
6089
6089
  children: n
6090
- }), /* @__PURE__ */ (0, Z.jsx)(ge, {
6090
+ }), /* @__PURE__ */ (0, Z.jsx)(he, {
6091
6091
  id: n,
6092
6092
  value: r,
6093
6093
  onChange: (e) => u(n, e.target.value),
@@ -1,4 +1,4 @@
1
- import { h as e } from "./tooltip-DBv8QUvS.js";
1
+ import { h as e } from "./tooltip-BVbJPkcl.js";
2
2
  var t = e("check", [["path", {
3
3
  d: "M20 6 9 17l-5-5",
4
4
  key: "1gmf2c"
@@ -3,7 +3,7 @@ import { g as t, s as n } from "./chunk-75Z2AOVW-76L6My3P.js";
3
3
  import { n as r, t as i } from "./src-D5uZaZib.js";
4
4
  import { n as a } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
5
5
  import { H as o, K as s, U as c, a as l, s as u, v as d, w as f, x as p, y as m } from "./chunk-DU6HZSFF-4SDIhUTY.js";
6
- import { r as h } from "./mermaid-C7lQ_2LJ.js";
6
+ import { r as h } from "./mermaid--2K0cmt9.js";
7
7
  import { t as g } from "./chunk-F27PBJKO-COH2t-FO.js";
8
8
  import { t as _ } from "./chunk-XXDRQBXY-BM-YIt-_.js";
9
9
  import { t as v } from "./chunk-POPQ4Y6H-BFSZel4w.js";
@@ -5,7 +5,7 @@ import { n as a } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
5
5
  import { G as o, H as s, K as c, U as l, a as u, d, k as f, rt as p, s as ee, v as m, w as h, x as g, y as _ } from "./chunk-DU6HZSFF-4SDIhUTY.js";
6
6
  import { t as te } from "./channel-B9eaiezW.js";
7
7
  import { i as ne } from "./chunk-4HAMMTFA-qKgadZwy.js";
8
- import { a as re, i as v, n as y, r as b } from "./mermaid-C7lQ_2LJ.js";
8
+ import { a as re, i as v, n as y, r as b } from "./mermaid--2K0cmt9.js";
9
9
  import { t as x } from "./chunk-5VM5RSS4-DKsmPCL6.js";
10
10
  import { t as S } from "./chunk-F27PBJKO-COH2t-FO.js";
11
11
  import { t as C } from "./chunk-XXDRQBXY-BM-YIt-_.js";
@@ -1,7 +1,7 @@
1
1
  import { n as e } from "./src-D5uZaZib.js";
2
2
  import { n as t } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
3
3
  import { D as n, a as r, b as i, c as a, x as o, z as s } from "./chunk-DU6HZSFF-4SDIhUTY.js";
4
- import { p as c } from "./mermaid-C7lQ_2LJ.js";
4
+ import { p as c } from "./mermaid--2K0cmt9.js";
5
5
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/chunk-SVP7TREG.mjs
6
6
  var l = "", u = "", d = "", f = [], p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ t((e) => s(e, o()), "sanitizeText"), h = /* @__PURE__ */ t((e) => {
7
7
  switch (e.type) {
@@ -3,7 +3,7 @@ import { c as t, g as n } from "./chunk-75Z2AOVW-76L6My3P.js";
3
3
  import { n as r, t as i } from "./src-D5uZaZib.js";
4
4
  import { n as a } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
5
5
  import { H as o, K as s, M as c, U as l, a as u, s as d, v as f, w as p, x as m, y as h, z as g } from "./chunk-DU6HZSFF-4SDIhUTY.js";
6
- import { n as _, r as v } from "./mermaid-C7lQ_2LJ.js";
6
+ import { n as _, r as v } from "./mermaid--2K0cmt9.js";
7
7
  import { t as y } from "./chunk-5VM5RSS4-DKsmPCL6.js";
8
8
  import { t as b } from "./chunk-F27PBJKO-COH2t-FO.js";
9
9
  import { t as x } from "./chunk-XXDRQBXY-BM-YIt-_.js";
@@ -9,11 +9,11 @@ import "./chunk-4HAMMTFA-qKgadZwy.js";
9
9
  import "./chunk-GVQU2GXP-BkolpSXU.js";
10
10
  import "./chunk-L3NEJ4N5-B-BFQp9t.js";
11
11
  import "./chunk-OSK3NFVY-BzfZ4VBG.js";
12
- import "./mermaid-C7lQ_2LJ.js";
12
+ import "./mermaid--2K0cmt9.js";
13
13
  import "./chunk-F27PBJKO-COH2t-FO.js";
14
14
  import "./chunk-XXDRQBXY-BM-YIt-_.js";
15
15
  import "./chunk-POPQ4Y6H-BFSZel4w.js";
16
- import { i as t, n, r, t as i } from "./chunk-TICWLB2K-CS8BE-b9.js";
16
+ import { i as t, n, r, t as i } from "./chunk-TICWLB2K-Bx4m0cJ1.js";
17
17
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-ZZMXUADV.mjs
18
18
  var a = {
19
19
  parser: n,
@@ -9,11 +9,11 @@ import "./chunk-4HAMMTFA-qKgadZwy.js";
9
9
  import "./chunk-GVQU2GXP-BkolpSXU.js";
10
10
  import "./chunk-L3NEJ4N5-B-BFQp9t.js";
11
11
  import "./chunk-OSK3NFVY-BzfZ4VBG.js";
12
- import "./mermaid-C7lQ_2LJ.js";
12
+ import "./mermaid--2K0cmt9.js";
13
13
  import "./chunk-F27PBJKO-COH2t-FO.js";
14
14
  import "./chunk-XXDRQBXY-BM-YIt-_.js";
15
15
  import "./chunk-POPQ4Y6H-BFSZel4w.js";
16
- import { i as t, n, r, t as i } from "./chunk-TICWLB2K-CS8BE-b9.js";
16
+ import { i as t, n, r, t as i } from "./chunk-TICWLB2K-Bx4m0cJ1.js";
17
17
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-VYDZK3BY.mjs
18
18
  var a = {
19
19
  parser: n,
@@ -1,10 +1,10 @@
1
1
  import { g as e } from "./button-qQhINE7z.js";
2
- import { D as t, Jt as n, Ut as r } from "./error-entries-BhNAZWU1.js";
3
- import { n as i } from "./assertNever-HbUt8DyH.js";
4
- import { Ft as a, Rt as o, d as s, m as c, wt as l } from "./use-restore-focus-BxJh5Zfa.js";
5
- import { c as u, m as d, n as f, o as p } from "./static-state-DgdOadIH.js";
2
+ import { D as t, Jt as n, Ut as r } from "./error-entries-CTb_cxXY.js";
3
+ import { n as i } from "./assertNever-ie77PjMn.js";
4
+ import { Bt as a, Et as o, Lt as s, f as c, h as l } from "./use-restore-focus-tPmARo1Q.js";
5
+ import { c as u, m as d, n as f, o as p } from "./static-state-Al_hmf1n.js";
6
6
  //#region src/core/islands/state.ts
7
- var m = o(!1), h = o(/* @__PURE__ */ new Set()), g = o((e) => e(h)?.size === 0), _ = o(!1), v = o((e) => e(_) && e(m) === !1);
7
+ var m = a(!1), h = a(/* @__PURE__ */ new Set()), g = a((e) => e(h)?.size === 0), _ = a(!1), v = a((e) => e(_) && e(m) === !1);
8
8
  //#endregion
9
9
  //#region src/core/meta/state.ts
10
10
  function y() {
@@ -14,11 +14,11 @@ function y() {
14
14
  return e.warn("Failed to get version from mount config"), null;
15
15
  }
16
16
  }
17
- var b = y() || "0.25.3-dev322", x = o(b), S = o(!0);
18
- o(null);
17
+ var b = y() || "0.25.3-dev348", x = a(b), S = a(!0);
18
+ a(null);
19
19
  //#endregion
20
20
  //#region src/core/wasm/state.ts
21
- var C = o({
21
+ var C = a({
22
22
  kind: "loading",
23
23
  message: "Initializing..."
24
24
  }), w = {
@@ -30,7 +30,7 @@ var C = o({
30
30
  kind: "wasm",
31
31
  label: "Pyodide",
32
32
  capabilities: w,
33
- state: o((e) => {
33
+ state: a((e) => {
34
34
  let t = e(C);
35
35
  switch (t.kind) {
36
36
  case "loading": return {
@@ -56,7 +56,7 @@ var C = o({
56
56
  canRestart: !0,
57
57
  supportsLsp: !0
58
58
  },
59
- state: o((e) => {
59
+ state: a((e) => {
60
60
  let r = e(t);
61
61
  switch (r.state) {
62
62
  case n.OPEN: return { kind: "ready" };
@@ -81,12 +81,12 @@ var C = o({
81
81
  kind: "static",
82
82
  label: "Static",
83
83
  capabilities: w,
84
- state: o({ kind: "ready" })
84
+ state: a({ kind: "ready" })
85
85
  }, O = {
86
86
  kind: "islands",
87
87
  label: "Islands",
88
88
  capabilities: w,
89
- state: o((e) => {
89
+ state: a((e) => {
90
90
  let t = e(m);
91
91
  return t === !0 ? { kind: "ready" } : typeof t == "string" ? {
92
92
  kind: "failed",
@@ -101,28 +101,28 @@ var C = o({
101
101
  })
102
102
  };
103
103
  function k() {
104
- return f() ? D : s() ? O : d() ? T : E;
104
+ return f() ? D : c() ? O : d() ? T : E;
105
105
  }
106
- var A = o(k());
107
- o((e) => {
106
+ var A = a(k());
107
+ a((e) => {
108
108
  let t = e(A);
109
109
  return e(t.state).kind !== "ready" || t.kind === "static" ? !1 : t.kind !== "remote" || e(r) === "running";
110
110
  });
111
111
  //#endregion
112
112
  //#region src/core/meta/code-visibility.ts
113
- var j = o((e) => {
114
- let t = e(l);
113
+ var j = a((e) => {
114
+ let t = e(o);
115
115
  return t !== null && [...t.cells.values()].some((e) => e.code !== null);
116
116
  });
117
117
  function M() {
118
- let e = a(j), t = a(p), { mode: n } = a(u), r = a(S), o = a(A).kind;
119
- if (t && o === "remote") return !0;
118
+ let e = s(j), t = s(p), { mode: n } = s(u), r = s(S), a = s(A).kind;
119
+ if (t && a === "remote") return !0;
120
120
  switch (n) {
121
121
  case "edit":
122
122
  case "present": return !0;
123
123
  case "home":
124
124
  case "gallery": return !1;
125
- case "read": return !r || new URLSearchParams(window.location.search).get(c.includeCode) === "false" ? !1 : e;
125
+ case "read": return !r || new URLSearchParams(window.location.search).get(l.includeCode) === "false" ? !1 : e;
126
126
  default: return i(n), !1;
127
127
  }
128
128
  }