@marimo-team/islands 0.25.3-dev209 → 0.25.3-dev210

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 (140) hide show
  1. package/dist/{ConnectedDataExplorerComponent-ApTYh0V3.js → ConnectedDataExplorerComponent-D6RHJV8D.js} +114 -112
  2. package/dist/{ErrorBoundary-B1QlXN-y.js → ErrorBoundary-VruaQLnK.js} +10 -10
  3. package/dist/{abnfDiagram-VCTEODGH-uo9xhZY0.js → abnfDiagram-VCTEODGH-0q7Lbmii.js} +2 -2
  4. package/dist/{any-language-editor-BVFHDDQ3.js → any-language-editor-jGaR0EAo.js} +5 -5
  5. package/dist/{architectureDiagram-5GKGNRK7-Hz6eyeOD.js → architectureDiagram-5GKGNRK7-1PydKPmE.js} +1 -1
  6. package/dist/{button-BQRdqQi1.js → button-B6RjDKJx.js} +54 -51
  7. package/dist/{capabilities-C2QUNRXi.js → capabilities-CkVzWJEX.js} +1 -1
  8. package/dist/{chat-ui-BTA1I5i1.js → chat-ui-B5pH_aXk.js} +414 -413
  9. package/dist/{check-C9Mp9eCK.js → check-Z_vtI3OL.js} +1 -1
  10. package/dist/{chunk-IMKFNOWR-DBM2i23k.js → chunk-IMKFNOWR-DEzZZ1Zc.js} +1 -1
  11. package/dist/{chunk-SHT3W25Y-L8KQLLBy.js → chunk-SHT3W25Y-CuHj-hnn.js} +1 -1
  12. package/dist/{chunk-SVP7TREG-BOUJKJEP.js → chunk-SVP7TREG-BPiZK2bA.js} +1 -1
  13. package/dist/{chunk-TICWLB2K-DY3CzFjX.js → chunk-TICWLB2K-DF6XcIjM.js} +1 -1
  14. package/dist/{classDiagram-ZZMXUADV-s9iwW-q4.js → classDiagram-ZZMXUADV-CMdR-cP4.js} +2 -2
  15. package/dist/{classDiagram-v2-VYDZK3BY-2GI5CjGB.js → classDiagram-v2-VYDZK3BY-DRvc3_7Y.js} +2 -2
  16. package/dist/{code-visibility-CCGlDSq4.js → code-visibility-BdFhHfIC.js} +28 -28
  17. package/dist/{common-C1PmVtVW.js → common-Ce1SgsX1.js} +8034 -8027
  18. package/dist/{toDate-BZZ64K_m.js → config-DbjzjwxX.js} +98 -164
  19. package/dist/{copy-icon-De584pZ4.js → copy-icon-CG57cxwb.js} +3 -3
  20. package/dist/createReducer-DePYJ0F3.js +63 -0
  21. package/dist/{cynefinDiagram-5FMLGOSQ-DOxnhBK2.js → cynefinDiagram-5FMLGOSQ-BkBjEY9l.js} +1 -1
  22. package/dist/{dagre-GXQ25YYZ-D1AhEfpM.js → dagre-GXQ25YYZ-D-HEaW4I.js} +1 -1
  23. package/dist/{data-grid-overlay-editor-B3KXkZvo.js → data-grid-overlay-editor-Bps1p6jQ.js} +1 -1
  24. package/dist/{diagram-S7CK7UJ4-DV_GebF_.js → diagram-S7CK7UJ4-Bn-oF-rB.js} +1 -1
  25. package/dist/{diagram-UQ7AKVKN-6dNzGFfD.js → diagram-UQ7AKVKN-BpzzXWBj.js} +1 -1
  26. package/dist/{diagram-VX7I27RA-DUh9jsfi.js → diagram-VX7I27RA-COOtvfBP.js} +1 -1
  27. package/dist/{diagram-Z3DM3KII-Cug-qcQ8.js → diagram-Z3DM3KII-K5cXvbrl.js} +1 -1
  28. package/dist/{dialog-DVRfQuhD.js → dialog-DsZ49mmU.js} +26 -26
  29. package/dist/{dist-BJtmSgcE.js → dist-11T5wq3_.js} +41 -40
  30. package/dist/{dist-B1M0bGO3.js → dist-17ugwGZc.js} +59 -58
  31. package/dist/{dist-D7mrh5sO.js → dist-7cRjf--y.js} +135 -134
  32. package/dist/{dist-Ck_C32ye.js → dist-B8pkfkzc.js} +31 -30
  33. package/dist/{dist-Ba2VIn1K.js → dist-B9UoM_wq.js} +54 -53
  34. package/dist/{dist-KN80qWCP.js → dist-BGuMTs1i.js} +118 -117
  35. package/dist/{dist-T5rh6JvL.js → dist-BHW11fni.js} +18 -17
  36. package/dist/dist-BLY4m1Wi.js +850 -0
  37. package/dist/{dist-Bj4bmwUm.js → dist-BNlcVoxs.js} +31 -30
  38. package/dist/{dist-BA13RJj5.js → dist-BQYe5Bju.js} +47 -46
  39. package/dist/{dist-OUle2RT7.js → dist-BX1mn8na.js} +297 -297
  40. package/dist/{dist-CTi5FTiV.js → dist-Bh0PTKUW.js} +108 -107
  41. package/dist/{dist-D9Q3xjiP.js → dist-CKaXK92p.js} +56 -55
  42. package/dist/{dist-DYXM73-k.js → dist-CLhwfhpJ.js} +58 -57
  43. package/dist/{dist-BmS-ZGjl.js → dist-CYeqK4Xw.js} +1854 -2702
  44. package/dist/{dist-D1fnFp1J.js → dist-Cxlp3WH6.js} +16 -15
  45. package/dist/{dist-DVVwOfrD.js → dist-DSJPGj42.js} +64 -63
  46. package/dist/{dist-Bzogh7CW.js → dist-DU9ICsWZ.js} +93 -92
  47. package/dist/{dist-DjeybPOb.js → dist-DWv0ALBi.js} +47 -46
  48. package/dist/{dist-D3x9__Fu.js → dist-DiBpWEsB.js} +39 -38
  49. package/dist/{dist-DtGn9N4h.js → dist-DiLFTlnl.js} +165 -165
  50. package/dist/{dist-DTv9KkpW.js → dist-cVDV5IuI.js} +26 -25
  51. package/dist/{dist-DP60Ubh8.js → dist-fRfaOoq8.js} +44 -43
  52. package/dist/{dist-O0qFpEJh.js → dist-gTTI-9Px.js} +66 -65
  53. package/dist/{dropdown-menu-dlEm41Bt.js → dropdown-menu-CSNdPSnS.js} +2886 -1529
  54. package/dist/{ebnfDiagram-PWID7BFC-d5LKx7Vb.js → ebnfDiagram-PWID7BFC-BI1ZmjVm.js} +2 -2
  55. package/dist/{erDiagram-RLTQ6QDP-BwvlkcID.js → erDiagram-RLTQ6QDP-BtWjj9xy.js} +1 -1
  56. package/dist/{error-banner-DxJ3s8YO.js → error-banner-IsonnvA0.js} +47 -46
  57. package/dist/error-entries-CRPfxMqm.js +2505 -0
  58. package/dist/{esm-Bbw_Njjx.js → esm-BgKjMvWw.js} +389 -388
  59. package/dist/{esm-mDQNEFe_.js → esm-CHjVSexr.js} +305 -306
  60. package/dist/{feedback-button-UsovT9sL.js → feedback-button-2ycmR9GG.js} +112 -112
  61. package/dist/{flowDiagram-HODETNUW-CJcSoFer.js → flowDiagram-HODETNUW-DQvZh96A.js} +2 -2
  62. package/dist/{formats-Ry7c-aIV.js → formats-BK4VefeF.js} +6 -6
  63. package/dist/{glide-data-editor-CRd8kBSp.js → glide-data-editor-Buj2OZjL.js} +99 -99
  64. package/dist/{glide-utils-D98laidb.js → glide-utils-CQddGpa-.js} +3 -3
  65. package/dist/{globals-BDWrOstF.js → globals-B-14fUeb.js} +3 -3
  66. package/dist/{error-entries-CVUHA5r_.js → html-to-image-CgAnxFi8.js} +26314 -25474
  67. package/dist/{infoDiagram-27XIBGKW-Cezgppw3.js → infoDiagram-27XIBGKW-BdAObnc_.js} +1 -1
  68. package/dist/{ishikawaDiagram-5VMMS53U-BahZQwJz.js → ishikawaDiagram-5VMMS53U-DP-jE8dw.js} +1 -1
  69. package/dist/{kanban-definition-UXKFOSKX-Cvfn_Obm.js → kanban-definition-UXKFOSKX-BkMgPjfm.js} +1 -1
  70. package/dist/{loader-DOVB0Syl.js → loader-BisjOLiW.js} +1 -1
  71. package/dist/main.js +2996 -2992
  72. package/dist/{mermaid-BrdwbArF.js → mermaid-B-OFqheA.js} +36 -36
  73. package/dist/{mindmap-definition-YA3MSWOX-uB4B2d-J.js → mindmap-definition-YA3MSWOX-Du7toAZX.js} +1 -1
  74. package/dist/{number-overlay-editor-Bp9a4z5Q.js → number-overlay-editor-ZVFcJ7_u.js} +1 -1
  75. package/dist/{dist-CThPVKaP.js → objectWithoutPropertiesLoose-ai5NUqGa.js} +1139 -1120
  76. package/dist/{pegDiagram-XKGWAZYB-CYaIwAmH.js → pegDiagram-XKGWAZYB-CX_729j0.js} +2 -2
  77. package/dist/{pieDiagram-E7YTZNPT-BJ1oUxVv.js → pieDiagram-E7YTZNPT-dtTFJcVI.js} +1 -1
  78. package/dist/{process-output-SjJxB1wh.js → process-output-Bmev5azU.js} +5 -5
  79. package/dist/{railroadDiagram-O6MQD6OU-BqKSaBux.js → railroadDiagram-O6MQD6OU-Dsc2Cf4c.js} +2 -2
  80. package/dist/{requirementDiagram-BXWQKSXE-DwFhgDhH.js → requirementDiagram-BXWQKSXE-D3g0c60I.js} +1 -1
  81. package/dist/{reveal-component-ov3pS-oO.js → reveal-component-BWz1KjWe.js} +725 -725
  82. package/dist/schemas-CdscWNy_.js +4747 -0
  83. package/dist/select-BSxlITBo.js +1200 -0
  84. package/dist/{sequenceDiagram-WJ2MYXX4-L7ENjfKF.js → sequenceDiagram-WJ2MYXX4-w1pWbIpk.js} +1 -1
  85. package/dist/{spec-BcJ9ncAY.js → spec-Dq8RNplp.js} +4 -4
  86. package/dist/{stateDiagram-D77RDMKH-CVf88u-p.js → stateDiagram-D77RDMKH-BCv7kP4H.js} +2 -2
  87. package/dist/{stateDiagram-v2-MP3YSRHH-DvpkQ1V6.js → stateDiagram-v2-MP3YSRHH-D1cTOt0x.js} +2 -2
  88. package/dist/static-state-BldGd99T.js +72 -0
  89. package/dist/strings-BGW-fXVJ.js +507 -0
  90. package/dist/{swimlanes-42K2YHIH-DIuFHbVE.js → swimlanes-42K2YHIH-DNO6jDnd.js} +1 -1
  91. package/dist/{swimlanesDiagram-VR7AAH4N-CAqHAziW.js → swimlanesDiagram-VR7AAH4N-CkSWsxYJ.js} +2 -2
  92. package/dist/{swiper-component-BVfnhbnt.js → swiper-component-Dir1o8ml.js} +2 -2
  93. package/dist/{timeline-definition-24CTP7MA-xO4EQqBm.js → timeline-definition-24CTP7MA-DQvqGFM9.js} +1 -1
  94. package/dist/toast-BWIPi3aF.js +491 -0
  95. package/dist/{tooltip-s4zZxwKe.js → tooltip-C3UnvsRe.js} +58 -58
  96. package/dist/use-restore-focus-BWO0z1lo.js +1672 -0
  97. package/dist/{useAsyncData-Dqw22wZQ.js → useAsyncData-DsZMvNXn.js} +1 -1
  98. package/dist/{useDateFormatter-D3Tkfzej.js → useDateFormatter-ChB4eyim.js} +2 -2
  99. package/dist/{useDeepCompareMemoize-D3gozcjJ.js → useDeepCompareMemoize-KMBBux8C.js} +1 -1
  100. package/dist/{useIframeCapabilities-6a_yDNXp.js → useIframeCapabilities-cMNQ80CK.js} +1 -1
  101. package/dist/useLifecycle-BquH9ET-.js +112 -0
  102. package/dist/useTheme-B9C1JIy9.js +307 -0
  103. package/dist/utils-DXkj82sK.js +813 -0
  104. package/dist/{vega-component-Blvspl7v.js → vega-component-9NOEITbg.js} +55 -54
  105. package/dist/{vennDiagram-4TSXK5OY-DzCi-lRh.js → vennDiagram-4TSXK5OY-BfzXp4SH.js} +1 -1
  106. package/dist/{wardleyDiagram-VM6X3IG4-CW48xa0n.js → wardleyDiagram-VM6X3IG4-CiqEE8eq.js} +1 -1
  107. package/dist/{xychartDiagram-S5SC5T6Z-UPxGGI2B.js → xychartDiagram-S5SC5T6Z-BTIHCVOI.js} +1 -1
  108. package/package.json +1 -1
  109. package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +1 -1
  110. package/src/components/editor/cell/code/cell-editor.tsx +13 -36
  111. package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +1 -1
  112. package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +11 -5
  113. package/src/components/editor/notebook-cell.tsx +0 -1
  114. package/src/components/scratchpad/scratchpad.test.tsx +3 -11
  115. package/src/components/scratchpad/scratchpad.tsx +24 -22
  116. package/src/components/scratchpad/state.ts +7 -0
  117. package/src/core/ai/__tests__/staged-cells.test.ts +6 -8
  118. package/src/core/ai/staged-cells.ts +4 -2
  119. package/src/core/cells/__tests__/cells.test.ts +44 -60
  120. package/src/core/cells/__tests__/document.test.ts +1 -139
  121. package/src/core/cells/__tests__/notebook-outline.test.ts +8 -6
  122. package/src/core/cells/actions.ts +39 -0
  123. package/src/core/cells/cells.ts +15 -35
  124. package/src/core/cells/document.ts +9 -84
  125. package/src/core/codemirror/__tests__/format.test.ts +0 -34
  126. package/src/core/codemirror/cells/extensions.ts +20 -18
  127. package/src/core/codemirror/cells/state.ts +0 -5
  128. package/src/core/codemirror/format.ts +1 -19
  129. package/src/core/codemirror/misc/__tests__/paste.test.ts +3 -1
  130. package/src/core/codemirror/misc/paste.ts +1 -1
  131. package/src/core/notebook/document/__tests__/codemirror.test.ts +172 -0
  132. package/src/stories/layout/vertical/one-column.stories.tsx +26 -18
  133. package/dist/html-to-image--E3uFbJ9.js +0 -3348
  134. package/dist/label-Qvw1E97W.js +0 -281
  135. package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +0 -23
  136. package/dist/select-2KOiReNY.js +0 -1423
  137. package/dist/toast-B5t9o6s_.js +0 -1848
  138. package/dist/use-restore-focus-BgDTd2tc.js +0 -6418
  139. package/dist/useLifecycle-CaZi4wTw.js +0 -172
  140. package/dist/useTheme-TzPgWXwB.js +0 -1114
@@ -3,7 +3,7 @@ import { n, t as r } from "./src-CA_m4ONl.js";
3
3
  import { n as i } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
4
4
  import { A as a, F as o, G as s, H as c, K as l, O as u, U as d, a as f, b as p, c as m, i as h, r as g, s as _, v, w as y, x as b, y as x, z as S } from "./chunk-DU6HZSFF-BwiyaNpg.js";
5
5
  import { t as C } from "./dist-DUAh96QY.js";
6
- import { a as w, i as T } from "./mermaid-BrdwbArF.js";
6
+ import { a as w, i as T } from "./mermaid-B-OFqheA.js";
7
7
  import { a as E, c as D, i as O, n as k, r as A, s as j } from "./chunk-F27PBJKO-ufseIn5y.js";
8
8
  import { t as M } from "./chunk-2Q5K7J3B-BMkUkeuy.js";
9
9
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WJ2MYXX4.mjs
@@ -1,7 +1,7 @@
1
- import { m as e } from "./tooltip-s4zZxwKe.js";
2
- import { s as t } from "./useLifecycle-CaZi4wTw.js";
3
- import { i as n, o as r } from "./useDateFormatter-D3Tkfzej.js";
4
- import { C as i } from "./select-2KOiReNY.js";
1
+ import { m as e } from "./tooltip-C3UnvsRe.js";
2
+ import { o as t } from "./useLifecycle-BquH9ET-.js";
3
+ import { i as n, o as r } from "./useDateFormatter-ChB4eyim.js";
4
+ import { i } from "./strings-BGW-fXVJ.js";
5
5
  var a = e("align-center-vertical", [
6
6
  ["path", {
7
7
  d: "M12 2v20",
@@ -12,11 +12,11 @@ import "./chunk-4HAMMTFA-D4eFPyFh.js";
12
12
  import "./chunk-GVQU2GXP-Cwbt-lF0.js";
13
13
  import "./chunk-L3NEJ4N5-n-zgIVSy.js";
14
14
  import "./chunk-OSK3NFVY-DXa-Cxbn.js";
15
- import "./mermaid-BrdwbArF.js";
15
+ import "./mermaid-B-OFqheA.js";
16
16
  import "./chunk-F27PBJKO-ufseIn5y.js";
17
17
  import "./chunk-XXDRQBXY-Dnl5VBqG.js";
18
18
  import "./chunk-POPQ4Y6H-hYOXbYH_.js";
19
- import { i as f, n as p, t as m } from "./chunk-IMKFNOWR-DBM2i23k.js";
19
+ import { i as f, n as p, t as m } from "./chunk-IMKFNOWR-DEzZZ1Zc.js";
20
20
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-D77RDMKH.mjs
21
21
  var h = /* @__PURE__ */ s((e) => e.append("circle").attr("class", "start-state").attr("r", d().state.sizeUnit).attr("cx", d().state.padding + d().state.sizeUnit).attr("cy", d().state.padding + d().state.sizeUnit), "drawStartState"), g = /* @__PURE__ */ s((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", d().state.textHeight).attr("class", "divider").attr("x2", d().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), _ = /* @__PURE__ */ s((e, t) => {
22
22
  let n = e.append("text").attr("x", 2 * d().state.padding).attr("y", d().state.textHeight + 2 * d().state.padding).attr("font-size", d().state.fontSize).attr("class", "state-title").text(t.id), r = n.node().getBBox();
@@ -9,11 +9,11 @@ import "./chunk-4HAMMTFA-D4eFPyFh.js";
9
9
  import "./chunk-GVQU2GXP-Cwbt-lF0.js";
10
10
  import "./chunk-L3NEJ4N5-n-zgIVSy.js";
11
11
  import "./chunk-OSK3NFVY-DXa-Cxbn.js";
12
- import "./mermaid-BrdwbArF.js";
12
+ import "./mermaid-B-OFqheA.js";
13
13
  import "./chunk-F27PBJKO-ufseIn5y.js";
14
14
  import "./chunk-XXDRQBXY-Dnl5VBqG.js";
15
15
  import "./chunk-POPQ4Y6H-hYOXbYH_.js";
16
- import { i as t, n, r, t as i } from "./chunk-IMKFNOWR-DBM2i23k.js";
16
+ import { i as t, n, r, t as i } from "./chunk-IMKFNOWR-DEzZZ1Zc.js";
17
17
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-MP3YSRHH.mjs
18
18
  var a = {
19
19
  parser: n,
@@ -0,0 +1,72 @@
1
+ import { t as e } from "./compiler-runtime-CldRdSsv.js";
2
+ import { i as t, l as n, t as r, w as i, x as a } from "./utils-DXkj82sK.js";
3
+ import { t as o } from "./invariant-DLmrl-hA.js";
4
+ //#region src/core/wasm/utils.ts
5
+ function s() {
6
+ return typeof document < "u" && document.querySelector("marimo-wasm") !== null;
7
+ }
8
+ //#endregion
9
+ //#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.js
10
+ var c = 365.2425, l = 6048e5, u = 864e5, d = 86400;
11
+ d * 7, d * c / 12 * 3;
12
+ var f = Symbol.for("constructDateFrom");
13
+ //#endregion
14
+ //#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js
15
+ function p(e, t) {
16
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && f in e ? e[f](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
17
+ }
18
+ //#endregion
19
+ //#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js
20
+ function m(e, t) {
21
+ return p(t || e, e);
22
+ }
23
+ //#endregion
24
+ //#region src/utils/assertExists.ts
25
+ var h = e();
26
+ function g(e, t) {
27
+ if (e == null) throw Error(t || `Expected value but got ${e}`);
28
+ }
29
+ //#endregion
30
+ //#region src/core/mode.ts
31
+ function _() {
32
+ let e = n.get(y);
33
+ return g(e, "internal-error: initial mode not found"), o(e !== "present", "internal-error: initial mode cannot be 'present'"), e;
34
+ }
35
+ var v = i({
36
+ mode: r() ? "read" : "not-set",
37
+ cellAnchor: null
38
+ }), y = i(void 0);
39
+ function b() {
40
+ let e = n.get(y);
41
+ return e !== "home" && e !== "gallery";
42
+ }
43
+ var x = i(!1);
44
+ function S() {
45
+ let e = (0, h.c)(1), { mode: n } = a(v), r = a(x), i;
46
+ return e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = new URLSearchParams(window.location.search).get(t.kiosk), e[0] = i) : i = e[0], n !== "read" && !r && i !== "true";
47
+ }
48
+ //#endregion
49
+ //#region src/core/static/static-state.ts
50
+ function C(e) {
51
+ if (typeof e != "object" || !e || Array.isArray(e)) return !1;
52
+ for (let t of Object.values(e)) if (typeof t != "string") return !1;
53
+ return !0;
54
+ }
55
+ function w(e) {
56
+ if (typeof e != "object" || !e || Array.isArray(e)) return !1;
57
+ let t = e;
58
+ return !(!C(t.files) || t.modelNotifications !== void 0 && !Array.isArray(t.modelNotifications));
59
+ }
60
+ function T() {
61
+ let e = typeof window > "u" ? void 0 : window.__MARIMO_STATIC__;
62
+ return w(e) ? e : void 0;
63
+ }
64
+ function E() {
65
+ return T() !== void 0;
66
+ }
67
+ function D() {
68
+ let e = T();
69
+ return o(e !== void 0, "Not a static notebook"), e.files;
70
+ }
71
+ //#endregion
72
+ export { b as a, v as c, p as d, u as f, y as i, g as l, s as m, E as n, x as o, l as p, _ as r, S as s, D as t, m as u };
@@ -0,0 +1,507 @@
1
+ import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
+ import { g as t, p as n, u as r } from "./button-B6RjDKJx.js";
3
+ import { t as i } from "./react-sHtZdjeP.js";
4
+ import { m as a } from "./tooltip-C3UnvsRe.js";
5
+ import { t as o } from "./jsx-runtime-3BD1kT0s.js";
6
+ import { F as s, P as c } from "./use-restore-focus-BWO0z1lo.js";
7
+ import { t as l } from "./invariant-DLmrl-hA.js";
8
+ var u = a("x", [["path", {
9
+ d: "M18 6 6 18",
10
+ key: "1bl5f8"
11
+ }], ["path", {
12
+ d: "m6 6 12 12",
13
+ key: "d8bk6v"
14
+ }]]), d = /* @__PURE__ */ e(i(), 1), f = o(), p = Object.defineProperty, m = (e, t) => p(e, "name", {
15
+ value: t,
16
+ configurable: !0
17
+ });
18
+ // @__NO_SIDE_EFFECTS__
19
+ function h(e) {
20
+ let t = e + "CollectionProvider", [i, a] = s(t), [o, c] = i(t, {
21
+ collectionRef: { current: null },
22
+ itemMap: /* @__PURE__ */ new Map()
23
+ }), l = /* @__PURE__ */ m((e) => {
24
+ let { scope: t, children: n } = e, r = d.useRef(null), i = d.useRef(/* @__PURE__ */ new Map()).current;
25
+ return /* @__PURE__ */ (0, f.jsx)(o, {
26
+ scope: t,
27
+ itemMap: i,
28
+ collectionRef: r,
29
+ children: n
30
+ });
31
+ }, "CollectionProvider");
32
+ l.displayName = t;
33
+ let u = e + "CollectionSlot", p = r(u), h = d.forwardRef((e, t) => {
34
+ let { scope: r, children: i } = e, a = c(u, r), o = n(t, a.collectionRef);
35
+ return /* @__PURE__ */ (0, f.jsx)(p, {
36
+ ref: o,
37
+ children: i
38
+ });
39
+ });
40
+ h.displayName = u;
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), s = n(t, o), l = c(g, r);
43
+ return d.useEffect(() => (l.itemMap.set(o, {
44
+ ref: o,
45
+ ...a
46
+ }), () => void l.itemMap.delete(o))), /* @__PURE__ */ (0, f.jsx)(v, {
47
+ [_]: "",
48
+ ref: s,
49
+ children: i
50
+ });
51
+ });
52
+ y.displayName = g;
53
+ function b(t) {
54
+ let n = c(e + "CollectionConsumer", t);
55
+ return d.useCallback(() => {
56
+ let e = n.collectionRef.current;
57
+ if (!e) return [];
58
+ let t = Array.from(e.querySelectorAll(`[${_}]`));
59
+ return Array.from(n.itemMap.values()).sort((e, n) => t.indexOf(e.ref.current) - t.indexOf(n.ref.current));
60
+ }, [n.collectionRef, n.itemMap]);
61
+ }
62
+ return m(b, "useCollection"), [
63
+ {
64
+ Provider: l,
65
+ Slot: h,
66
+ ItemSlot: y
67
+ },
68
+ b,
69
+ a
70
+ ];
71
+ }
72
+ m(h, "createCollection");
73
+ var g = /* @__PURE__ */ new WeakMap(), _ = class e extends Map {
74
+ static {
75
+ m(this, "OrderedDict");
76
+ }
77
+ #e;
78
+ constructor(e) {
79
+ super(e), this.#e = [...super.keys()], g.set(this, !0);
80
+ }
81
+ set(e, t) {
82
+ return g.get(this) && !this.has(e) && this.#e.push(e), super.set(e, t), this;
83
+ }
84
+ insert(e, t, n) {
85
+ let r = this.has(t), i = r ? this.size : this.size + 1, a = b(e), o = a >= 0 ? Math.min(a, i - 1) : Math.max(i + a, 0);
86
+ if (r ? this.#e.indexOf(t) === o : o === this.size) return this.set(t, n), this;
87
+ let s = this.#e.filter((e) => e !== t);
88
+ s.splice(o, 0, t);
89
+ let c = s.map((e) => [e, e === t ? n : this.get(e)]);
90
+ this.clear();
91
+ for (let [e, t] of c) this.set(e, t);
92
+ return this;
93
+ }
94
+ with(t, n, r) {
95
+ let i = new e(this);
96
+ return i.insert(t, n, r), i;
97
+ }
98
+ before(e) {
99
+ let t = this.#e.indexOf(e) - 1;
100
+ if (!(t < 0)) return this.entryAt(t);
101
+ }
102
+ setBefore(e, t, n) {
103
+ let r = this.#e.indexOf(e);
104
+ if (r === -1) return this;
105
+ let i = this.#e.indexOf(t), a = i !== -1 && i < r ? r - 1 : r;
106
+ return this.insert(a, t, n);
107
+ }
108
+ after(e) {
109
+ let t = this.#e.indexOf(e);
110
+ if (t = t === -1 || t === this.size - 1 ? -1 : t + 1, t !== -1) return this.entryAt(t);
111
+ }
112
+ setAfter(e, t, n) {
113
+ let r = this.#e.indexOf(e);
114
+ if (r === -1) return this;
115
+ let i = this.#e.indexOf(t), a = i !== -1 && i <= r ? r : r + 1;
116
+ return this.insert(a, t, n);
117
+ }
118
+ first() {
119
+ return this.entryAt(0);
120
+ }
121
+ last() {
122
+ return this.entryAt(-1);
123
+ }
124
+ clear() {
125
+ return this.#e = [], super.clear();
126
+ }
127
+ delete(e) {
128
+ let t = super.delete(e);
129
+ return t && this.#e.splice(this.#e.indexOf(e), 1), t;
130
+ }
131
+ deleteAt(e) {
132
+ let t = this.keyAt(e);
133
+ return t !== void 0 && this.delete(t);
134
+ }
135
+ at(e) {
136
+ let t = v(this.#e, e);
137
+ if (t !== void 0) return this.get(t);
138
+ }
139
+ entryAt(e) {
140
+ let t = v(this.#e, e);
141
+ if (t !== void 0) return [t, this.get(t)];
142
+ }
143
+ indexOf(e) {
144
+ return this.#e.indexOf(e);
145
+ }
146
+ keyAt(e) {
147
+ return v(this.#e, e);
148
+ }
149
+ from(e, t) {
150
+ let n = this.indexOf(e);
151
+ if (n === -1) return;
152
+ let r = n + t;
153
+ return r < 0 && (r = 0), r >= this.size && (r = this.size - 1), this.at(r);
154
+ }
155
+ keyFrom(e, t) {
156
+ let n = this.indexOf(e);
157
+ if (n === -1) return;
158
+ let r = n + t;
159
+ return r < 0 && (r = 0), r >= this.size && (r = this.size - 1), this.keyAt(r);
160
+ }
161
+ find(e, t) {
162
+ let n = 0;
163
+ for (let r of this) {
164
+ if (Reflect.apply(e, t, [
165
+ r,
166
+ n,
167
+ this
168
+ ])) return r;
169
+ n++;
170
+ }
171
+ }
172
+ findIndex(e, t) {
173
+ let n = 0;
174
+ for (let r of this) {
175
+ if (Reflect.apply(e, t, [
176
+ r,
177
+ n,
178
+ this
179
+ ])) return n;
180
+ n++;
181
+ }
182
+ return -1;
183
+ }
184
+ filter(t, n) {
185
+ let r = [], i = 0;
186
+ for (let e of this) Reflect.apply(t, n, [
187
+ e,
188
+ i,
189
+ this
190
+ ]) && r.push(e), i++;
191
+ return new e(r);
192
+ }
193
+ map(t, n) {
194
+ let r = [], i = 0;
195
+ for (let e of this) r.push([e[0], Reflect.apply(t, n, [
196
+ e,
197
+ i,
198
+ this
199
+ ])]), i++;
200
+ return new e(r);
201
+ }
202
+ reduce(...e) {
203
+ let [t, n] = e, r = e.length > 1;
204
+ if (!r && this.size === 0) throw TypeError("Reduce of empty OrderedDict with no initial value");
205
+ let i = 0, a = n;
206
+ for (let e of this) a = i === 0 && !r ? e : Reflect.apply(t, this, [
207
+ a,
208
+ e,
209
+ i,
210
+ this
211
+ ]), i++;
212
+ return a;
213
+ }
214
+ reduceRight(...e) {
215
+ let [t, n] = e, r = e.length > 1;
216
+ if (!r && this.size === 0) throw TypeError("Reduce of empty OrderedDict with no initial value");
217
+ let i = n;
218
+ for (let e = this.size - 1; e >= 0; e--) {
219
+ let n = this.entryAt(e);
220
+ i = e === this.size - 1 && !r ? n : Reflect.apply(t, this, [
221
+ i,
222
+ n,
223
+ e,
224
+ this
225
+ ]);
226
+ }
227
+ return i;
228
+ }
229
+ sort(e) {
230
+ if (typeof e != "function") throw TypeError("OrderedDict.sort requires a compare function");
231
+ let t = [...this.entries()].sort(e);
232
+ this.clear();
233
+ for (let [e, n] of t) this.set(e, n);
234
+ return this;
235
+ }
236
+ toSorted(t) {
237
+ if (typeof t != "function") throw TypeError("OrderedDict.toSorted requires a compare function");
238
+ let n = [...this.entries()].sort(t);
239
+ return new e(n);
240
+ }
241
+ toReversed() {
242
+ let t = new e();
243
+ for (let e = this.size - 1; e >= 0; e--) {
244
+ let n = this.keyAt(e), r = this.get(n);
245
+ t.set(n, r);
246
+ }
247
+ return t;
248
+ }
249
+ toSpliced(...t) {
250
+ let n = [...this.entries()];
251
+ return n.splice(...t), new e(n);
252
+ }
253
+ slice(t, n) {
254
+ let r = new e();
255
+ for (let e of this.#e.slice(t, n)) r.set(e, this.get(e));
256
+ return r;
257
+ }
258
+ every(e, t) {
259
+ let n = 0;
260
+ for (let r of this) {
261
+ if (!Reflect.apply(e, t, [
262
+ r,
263
+ n,
264
+ this
265
+ ])) return !1;
266
+ n++;
267
+ }
268
+ return !0;
269
+ }
270
+ some(e, t) {
271
+ let n = 0;
272
+ for (let r of this) {
273
+ if (Reflect.apply(e, t, [
274
+ r,
275
+ n,
276
+ this
277
+ ])) return !0;
278
+ n++;
279
+ }
280
+ return !1;
281
+ }
282
+ };
283
+ function v(e, t) {
284
+ if ("at" in Array.prototype) return Array.prototype.at.call(e, t);
285
+ let n = y(e, t);
286
+ return n === -1 ? void 0 : e[n];
287
+ }
288
+ m(v, "at");
289
+ function y(e, t) {
290
+ let n = e.length, r = b(t), i = r >= 0 ? r : n + r;
291
+ return i < 0 || i >= n ? -1 : i;
292
+ }
293
+ m(y, "toSafeIndex");
294
+ function b(e) {
295
+ return e !== e || e === 0 ? 0 : Math.trunc(e);
296
+ }
297
+ m(b, "toSafeInteger");
298
+ // @__NO_SIDE_EFFECTS__
299
+ function x(e) {
300
+ let t = e + "CollectionProvider", [i, a] = s(t), [o, l] = i(t);
301
+ o.displayName = e + "CollectionStableContextProvider";
302
+ let [u, p] = i(t);
303
+ u.displayName = e + "CollectionStatefulContextProvider";
304
+ let h = /* @__PURE__ */ m(({ state: e, ...t }) => e ? /* @__PURE__ */ (0, f.jsx)(v, {
305
+ ...t,
306
+ state: e
307
+ }) : /* @__PURE__ */ (0, f.jsx)(g, { ...t }), "CollectionProvider");
308
+ h.displayName = t;
309
+ let g = /* @__PURE__ */ m((e) => {
310
+ let t = k();
311
+ return /* @__PURE__ */ (0, f.jsx)(v, {
312
+ ...e,
313
+ state: t
314
+ });
315
+ }, "CollectionInit");
316
+ g.displayName = e + "CollectionInit";
317
+ let v = /* @__PURE__ */ m((e) => {
318
+ let { scope: t, children: r, state: i } = e, a = d.useRef(null), [s, c] = d.useState(null), l = n(a, c), [p, m] = i, h = d.useRef(new _()), g = d.useCallback(() => {
319
+ let e = h.current;
320
+ return w(e) || e.sort(T), e;
321
+ }, []);
322
+ return d.useEffect(() => {
323
+ if (!s) return;
324
+ let e = E(() => {
325
+ m((e) => {
326
+ let t = e.toSorted(T);
327
+ return t.some(([t], n) => e.keyAt(n) !== t) ? t : e;
328
+ });
329
+ });
330
+ return e.observe(s, {
331
+ childList: !0,
332
+ subtree: !0
333
+ }), () => {
334
+ e.disconnect();
335
+ };
336
+ }, [s, m]), /* @__PURE__ */ (0, f.jsx)(o, {
337
+ scope: t,
338
+ collectionElementRef: l,
339
+ collectionElementRefObject: a,
340
+ getCollection: g,
341
+ setCollection: m,
342
+ registryRef: h,
343
+ children: /* @__PURE__ */ (0, f.jsx)(u, {
344
+ scope: t,
345
+ collectionElement: s,
346
+ collection: p,
347
+ children: r
348
+ })
349
+ });
350
+ }, "CollectionProviderImpl");
351
+ v.displayName = e + "CollectionProviderImpl";
352
+ let y = e + "CollectionSlot", b = r(y), x = d.forwardRef((e, t) => {
353
+ let { scope: r, children: i } = e, a = l(y, r), o = n(t, a.collectionElementRef);
354
+ return /* @__PURE__ */ (0, f.jsx)(b, {
355
+ ref: o,
356
+ children: i
357
+ });
358
+ });
359
+ x.displayName = y;
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: s, registryRef: u } = l(C, r), p = d.useRef(a);
362
+ S(p.current, a) || (p.current = a);
363
+ let m = p.current, h = d.useCallback((e) => {
364
+ let t = u.current;
365
+ e ? t.set(e, {
366
+ ...p.current,
367
+ element: e
368
+ }) : o.current && t.delete(o.current);
369
+ }, [u]), g = n(t, h, o);
370
+ c(() => {
371
+ let e = o.current, t = u.current;
372
+ e && t.has(e) && t.set(e, {
373
+ ...m,
374
+ element: e
375
+ });
376
+ }, [m, u]);
377
+ let v = d.useRef(null);
378
+ return d.useEffect(() => {
379
+ let e = o.current, t = v.current;
380
+ (t?.element ?? null) === e && (!e || t?.itemData === m) || (v.current = e ? {
381
+ element: e,
382
+ itemData: m
383
+ } : null, s((n) => {
384
+ let r = new _(n);
385
+ return t && t.element !== e && r.delete(t.element), e && r.set(e, {
386
+ ...m,
387
+ element: e
388
+ }), r.sort(T);
389
+ }));
390
+ }), d.useEffect(() => () => {
391
+ let e = v.current;
392
+ v.current = null, e && s((t) => {
393
+ if (!t.has(e.element)) return t;
394
+ let n = new _(t);
395
+ return n.delete(e.element), n;
396
+ });
397
+ }, [s]), /* @__PURE__ */ (0, f.jsx)(D, {
398
+ "data-radix-collection-item": "",
399
+ ref: g,
400
+ children: i
401
+ });
402
+ });
403
+ O.displayName = C;
404
+ function k() {
405
+ return d.useState(new _());
406
+ }
407
+ m(k, "useInitCollection");
408
+ function A(t) {
409
+ let { collection: n } = p(e + "CollectionConsumer", t);
410
+ return n;
411
+ }
412
+ m(A, "useCollection");
413
+ function j(t) {
414
+ let { getCollection: n } = l(e + "CollectionConsumer", t);
415
+ return n;
416
+ }
417
+ return m(j, "useGetCollection"), [{
418
+ Provider: h,
419
+ Slot: x,
420
+ ItemSlot: O
421
+ }, {
422
+ createCollectionScope: a,
423
+ useCollection: A,
424
+ useGetCollection: j,
425
+ useInitCollection: k
426
+ }];
427
+ }
428
+ m(x, "createCollection");
429
+ function S(e, t) {
430
+ if (e === t) return !0;
431
+ if (typeof e != "object" || typeof t != "object" || e == null || t == null) return !1;
432
+ let n = Object.keys(e), r = Object.keys(t);
433
+ if (n.length !== r.length) return !1;
434
+ for (let r of n) if (!Object.prototype.hasOwnProperty.call(t, r) || e[r] !== t[r]) return !1;
435
+ return !0;
436
+ }
437
+ m(S, "shallowEqual");
438
+ function C(e, t) {
439
+ return !!(t.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_PRECEDING);
440
+ }
441
+ m(C, "isElementPreceding");
442
+ function w(e) {
443
+ let t;
444
+ for (let n of e.keys()) {
445
+ if (t) {
446
+ let e = t.compareDocumentPosition(n);
447
+ if (!(e & Node.DOCUMENT_POSITION_DISCONNECTED) && e & Node.DOCUMENT_POSITION_PRECEDING) return !1;
448
+ }
449
+ t = n;
450
+ }
451
+ return !0;
452
+ }
453
+ m(w, "isInDocumentOrder");
454
+ function T(e, t) {
455
+ return !e[1].element || !t[1].element ? 0 : C(e[1].element, t[1].element) ? -1 : 1;
456
+ }
457
+ m(T, "sortByDocumentPosition");
458
+ function E(e) {
459
+ return new MutationObserver((t) => {
460
+ for (let n of t) if (n.type === "childList") {
461
+ e();
462
+ return;
463
+ }
464
+ });
465
+ }
466
+ m(E, "getChildListObserver");
467
+ //#endregion
468
+ //#region src/utils/assertNever.ts
469
+ function D(e) {
470
+ l(!1, `Unexpected object: ${e}`);
471
+ }
472
+ function O(e) {
473
+ return t.warn(`Unexpected object: ${JSON.stringify(e)}`), e;
474
+ }
475
+ //#endregion
476
+ //#region src/utils/strings.ts
477
+ function k(e) {
478
+ return e ? e.charAt(0).toUpperCase() + e.slice(1) : "";
479
+ }
480
+ function A(e) {
481
+ if (!e) return "";
482
+ if (typeof e != "string") throw t.error(e), TypeError(`Expected string, got ${typeof e}`);
483
+ return /[A-Za-z]/.test(e) ? e.replaceAll(/([\da-z])([A-Z])/g, "$1 $2").replaceAll(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replaceAll(/[\s_-]+/g, " ").trim().split(" ").map(k).join(" ") : e;
484
+ }
485
+ var j = {
486
+ startCase: A,
487
+ htmlEscape: (e) => e && e.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&#039;").replaceAll("\n", " "),
488
+ withTrailingSlash(e) {
489
+ return e.endsWith("/") ? e : `${e}/`;
490
+ },
491
+ withoutTrailingSlash(e) {
492
+ return e.endsWith("/") ? e.slice(0, -1) : e;
493
+ },
494
+ withoutLeadingSlash(e) {
495
+ return e.startsWith("/") ? e.slice(1) : e;
496
+ },
497
+ asString: (e) => {
498
+ if (typeof e == "string") return e;
499
+ try {
500
+ return JSON.stringify(e);
501
+ } catch {
502
+ return String(e);
503
+ }
504
+ }
505
+ };
506
+ //#endregion
507
+ export { h as a, O as i, k as n, x as o, D as r, u as s, j as t };
@@ -9,7 +9,7 @@ import "./chunk-4HAMMTFA-D4eFPyFh.js";
9
9
  import "./chunk-GVQU2GXP-Cwbt-lF0.js";
10
10
  import "./chunk-L3NEJ4N5-n-zgIVSy.js";
11
11
  import { o as n } from "./chunk-OSK3NFVY-DXa-Cxbn.js";
12
- import { c as r } from "./mermaid-BrdwbArF.js";
12
+ import { c as r } from "./mermaid-B-OFqheA.js";
13
13
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/swimlanes-42K2YHIH.mjs
14
14
  var i = 5, a = 1e-5, o = 1e-6;
15
15
  function s(e) {
@@ -9,11 +9,11 @@ import "./chunk-4HAMMTFA-D4eFPyFh.js";
9
9
  import "./chunk-GVQU2GXP-Cwbt-lF0.js";
10
10
  import "./chunk-L3NEJ4N5-n-zgIVSy.js";
11
11
  import "./chunk-OSK3NFVY-DXa-Cxbn.js";
12
- import "./mermaid-BrdwbArF.js";
12
+ import "./mermaid-B-OFqheA.js";
13
13
  import "./chunk-F27PBJKO-ufseIn5y.js";
14
14
  import "./chunk-XXDRQBXY-Dnl5VBqG.js";
15
15
  import "./chunk-POPQ4Y6H-hYOXbYH_.js";
16
- import { r as t, t as n } from "./chunk-SHT3W25Y-L8KQLLBy.js";
16
+ import { r as t, t as n } from "./chunk-SHT3W25Y-CuHj-hnn.js";
17
17
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-VR7AAH4N.mjs
18
18
  var r = n({
19
19
  defaultLayout: "swimlane",
@@ -1,9 +1,9 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
- import { c as t, h as n, t as r } from "./button-BQRdqQi1.js";
2
+ import { c as t, h as n, t as r } from "./button-B6RjDKJx.js";
3
3
  import { t as i } from "./react-sHtZdjeP.js";
4
4
  import { t as a } from "./compiler-runtime-CldRdSsv.js";
5
5
  import { t as o } from "./jsx-runtime-3BD1kT0s.js";
6
- import { t as s } from "./useIframeCapabilities-6a_yDNXp.js";
6
+ import { t as s } from "./useIframeCapabilities-cMNQ80CK.js";
7
7
  /* empty css */
8
8
  //#region ../node_modules/.pnpm/swiper@12.2.0/node_modules/swiper/shared/ssr-window.esm.mjs
9
9
  var c = /* @__PURE__ */ e(i(), 1), l = a();
@@ -3,7 +3,7 @@ import { p as t } from "./chunk-75Z2AOVW-D7gxIs2Q.js";
3
3
  import { n, t as r } from "./src-CA_m4ONl.js";
4
4
  import { n as i, t as a } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
5
5
  import { $ as o, J as s, a as c, b as l, et as u, nt as d, o as f, x as p } from "./chunk-DU6HZSFF-BwiyaNpg.js";
6
- import { p as m } from "./mermaid-BrdwbArF.js";
6
+ import { p as m } from "./mermaid-B-OFqheA.js";
7
7
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-24CTP7MA.mjs
8
8
  var h = (function() {
9
9
  var e = /* @__PURE__ */ i(function(e, t, n, r) {