react-docs-ui 0.6.17 → 0.6.18

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 (150) hide show
  1. package/dist/{AIChatDialog-W60DtiEW.js → AIChatDialog-BnAX3dRn.js} +2 -2
  2. package/dist/{AISelectionTrigger-MaBGhxTE.js → AISelectionTrigger-SLyb8Vep.js} +2 -2
  3. package/dist/{AISettingsPanel-aiMnncnQ.js → AISettingsPanel-Bsd_wLP4.js} +3 -3
  4. package/dist/{DocsApp-BN6Bo0YD.js → DocsApp-CNVM_Zcf.js} +3505 -3208
  5. package/dist/{GlobalContextMenu-DG6x5Y5w.js → GlobalContextMenu-BtVjQk0v.js} +1 -1
  6. package/dist/{MdxContent-CMB8ZbXo.js → MdxContent-D2l4Au7Z.js} +310 -306
  7. package/dist/{MdxContent.lazy-C4rcCv4v.js → MdxContent.lazy-BirC7wrH.js} +1 -1
  8. package/dist/{SearchDialog-tUSKKsxW.js → SearchDialog-DWVre6R9.js} +66 -56
  9. package/dist/{SearchRuntime-5fXpxDsi.js → SearchRuntime-D0rSMKV3.js} +6 -5
  10. package/dist/_basePickBy-3HEi44E5.js +166 -0
  11. package/dist/_baseUniq-CyOGXr0t.js +682 -0
  12. package/dist/arc-DULIiw5L.js +80 -0
  13. package/dist/architecture-PBZL5I3N-DT4oHaWT.js +3 -0
  14. package/dist/architectureDiagram-2XIMDMQ5-CqinFxzU.js +4045 -0
  15. package/dist/array-DHiPsILf.js +6 -0
  16. package/dist/blockDiagram-WCTKOSBZ-4JAhKeqm.js +3025 -0
  17. package/dist/c4Diagram-IC4MRINW-DtmtzsQQ.js +2964 -0
  18. package/dist/channel-BPONoOHQ.js +5 -0
  19. package/dist/chunk-4BX2VUAB-Bv5NGtUU.js +8 -0
  20. package/dist/chunk-55IACEB6-BXL-F-QI.js +8 -0
  21. package/dist/chunk-7E7YKBS2-CuTUVGrY.js +23 -0
  22. package/dist/chunk-7R4GIKGN-Qkaxl46X.js +2596 -0
  23. package/dist/chunk-C72U2L5F-42ScKBi2.js +23 -0
  24. package/dist/chunk-EGIJ26TM-D9jfybGA.js +23 -0
  25. package/dist/chunk-FMBD7UC4-DZXaweDk.js +5 -0
  26. package/dist/chunk-GEFDOKGD-OXBFFBXI.js +1121 -0
  27. package/dist/chunk-GLR3WWYH-BNwKwdNm.js +41 -0
  28. package/dist/chunk-HHEYEP7N-BQ3EJT5G.js +9 -0
  29. package/dist/chunk-JSJVCQXG-DNkHiMyV.js +60 -0
  30. package/dist/chunk-KX2RTZJC-DuTfSwwu.js +25 -0
  31. package/dist/chunk-KYZI473N-COpLSX52.js +3434 -0
  32. package/dist/chunk-L3YUKLVL-BdSnx12A.js +23 -0
  33. package/dist/chunk-MX3YWQON-CrwNXQjz.js +80 -0
  34. package/dist/chunk-NBPlniwU.js +23 -0
  35. package/dist/chunk-NQ4KR5QH-Y07nfCMJ.js +2002 -0
  36. package/dist/chunk-O4XLMI2P-CuexQiBs.js +511 -0
  37. package/dist/chunk-OZEHJAEY-D6vfkGpv.js +64 -0
  38. package/dist/chunk-PQ6SQG4A-6cI0SCcc.js +67 -0
  39. package/dist/chunk-PU5JKC2W-an2DzREj.js +1885 -0
  40. package/dist/chunk-QZHKN3VN-BKMQ36H3.js +15 -0
  41. package/dist/chunk-R5LLSJPH-DOyud7qN.js +35 -0
  42. package/dist/chunk-WL4C6EOR-y1gU9zpd.js +3194 -0
  43. package/dist/chunk-XIRO2GV7-BD1Cp5pB.js +30 -0
  44. package/dist/chunk-XPW4576I-DOBR2ORN.js +1146 -0
  45. package/dist/chunk-XZSTWKYB-BQ9uqNJe.js +15797 -0
  46. package/dist/chunk-YBOYWFTD-BT3l76Xm.js +32 -0
  47. package/dist/classDiagram-VBA2DB6C-AUxID939.js +29 -0
  48. package/dist/classDiagram-v2-RAHNMMFH-tupy2OPi.js +29 -0
  49. package/dist/clone-CRTZj7kp.js +8 -0
  50. package/dist/cose-bilkent-S5V4N54A-Bbd2d2j7.js +2250 -0
  51. package/dist/cytoscape.esm-CQKQOqRt.js +18100 -0
  52. package/dist/dagre-Cyr5_x2X.js +1483 -0
  53. package/dist/dagre-KLK3FWXG-Bjsq-TtB.js +294 -0
  54. package/dist/defaultLocale-P2nWjZJu.js +201 -0
  55. package/dist/diagram-E7M64L7V-CCTuI46e.js +527 -0
  56. package/dist/diagram-IFDJBPK2-DI_KTvRx.js +213 -0
  57. package/dist/diagram-P4PSJMXO-D3SeWDdU.js +133 -0
  58. package/dist/dist-CSS39H68.js +50 -0
  59. package/dist/docs-app.es.js +1 -1
  60. package/dist/erDiagram-INFDFZHY-Db_DAoTf.js +1666 -0
  61. package/dist/flowDiagram-PKNHOUZH-TqyNp9Dn.js +4161 -0
  62. package/dist/ganttDiagram-A5KZAMGK-DqNVbtHo.js +3072 -0
  63. package/dist/gitGraph-HDMCJU4V-DQudxfzL.js +3 -0
  64. package/dist/gitGraphDiagram-K3NZZRJ6-Cga9Wfgb.js +625 -0
  65. package/dist/graphlib-CexrUFs9.js +225 -0
  66. package/dist/info-3K5VOQVL-DiuN3kw6.js +3 -0
  67. package/dist/infoDiagram-LFFYTUFH-bvABxJph.js +19 -0
  68. package/dist/init-GWRygwCo.js +15 -0
  69. package/dist/isArrayLikeObject-CG2kGrxR.js +578 -0
  70. package/dist/isEmpty-C8iIdTg-.js +35 -0
  71. package/dist/ishikawaDiagram-PHBUUO56-DKGPu-hu.js +717 -0
  72. package/dist/journeyDiagram-4ABVD52K-DefcNau0.js +883 -0
  73. package/dist/kanban-definition-K7BYSVSG-BXvFQzdZ.js +971 -0
  74. package/dist/line-ChPoSgrf.js +34 -0
  75. package/dist/linear-BeQrMQNe.js +289 -0
  76. package/dist/math-CgS6d5p2.js +10 -0
  77. package/dist/{shiki-highlighter-BmQSSJpS.js → mdx-components-Bz45lgrV.js} +1387 -1288
  78. package/dist/mermaid-parser.core-CDTyVXPe.js +59 -0
  79. package/dist/mermaid.core-CHJrGTZ9.js +919 -0
  80. package/dist/mindmap-definition-YRQLILUH-CqsMcFhX.js +964 -0
  81. package/dist/ordinal-DUEC8Lr4.js +65 -0
  82. package/dist/packet-RMMSAZCW-ZLaHU0Ov.js +3 -0
  83. package/dist/path-CzRXOvk1.js +85 -0
  84. package/dist/pie-UPGHQEXC-COgIbE0j.js +3 -0
  85. package/dist/pieDiagram-SKSYHLDU-C8Y5Bc8d.js +165 -0
  86. package/dist/quadrantDiagram-337W2JSQ-DRWBX5cn.js +1974 -0
  87. package/dist/radar-KQ55EAFF-ABFVVcns.js +3 -0
  88. package/dist/react-docs-ui.css +1 -1
  89. package/dist/react-docs-ui.es.js +19 -19
  90. package/dist/requirementDiagram-Z7DCOOCP-EkyUnFq8.js +2201 -0
  91. package/dist/rough.esm-qTNNhHn7.js +1352 -0
  92. package/dist/sankeyDiagram-WA2Y5GQK-Cmas7IuZ.js +920 -0
  93. package/dist/sequenceDiagram-2WXFIKYE-B7TrFw3o.js +4109 -0
  94. package/dist/src-B8kKzJ6p.js +2146 -0
  95. package/dist/stateDiagram-RAJIS63D-DyqZyFdt.js +217 -0
  96. package/dist/stateDiagram-v2-FVOUBMTO-5UjWXgt6.js +27 -0
  97. package/dist/timeline-definition-YZTLITO2-qhoXPOhL.js +830 -0
  98. package/dist/treemap-KZPCXAKY-CRdRsoRo.js +3 -0
  99. package/dist/types/components/AnnouncementBar.d.ts +12 -0
  100. package/dist/types/components/AnnouncementBar.d.ts.map +1 -0
  101. package/dist/types/components/DocsLayout.d.ts +8 -2
  102. package/dist/types/components/DocsLayout.d.ts.map +1 -1
  103. package/dist/types/components/HeaderNav.d.ts +17 -1
  104. package/dist/types/components/HeaderNav.d.ts.map +1 -1
  105. package/dist/types/components/MdxContent.d.ts.map +1 -1
  106. package/dist/types/components/MobileSidebar.d.ts +2 -1
  107. package/dist/types/components/MobileSidebar.d.ts.map +1 -1
  108. package/dist/types/components/PageFeedback.d.ts +11 -0
  109. package/dist/types/components/PageFeedback.d.ts.map +1 -0
  110. package/dist/types/components/PageMetaActions.d.ts +15 -0
  111. package/dist/types/components/PageMetaActions.d.ts.map +1 -0
  112. package/dist/types/components/PageNavigation.d.ts +2 -1
  113. package/dist/types/components/PageNavigation.d.ts.map +1 -1
  114. package/dist/types/components/SearchLauncher.d.ts +2 -1
  115. package/dist/types/components/SearchLauncher.d.ts.map +1 -1
  116. package/dist/types/components/SidebarNav.d.ts +2 -1
  117. package/dist/types/components/SidebarNav.d.ts.map +1 -1
  118. package/dist/types/components/mdx-components/Mermaid.d.ts +6 -0
  119. package/dist/types/components/mdx-components/Mermaid.d.ts.map +1 -0
  120. package/dist/types/components/mdx-components/Tabs.d.ts +13 -0
  121. package/dist/types/components/mdx-components/Tabs.d.ts.map +1 -0
  122. package/dist/types/components/mdx-components/index.d.ts +2 -0
  123. package/dist/types/components/mdx-components/index.d.ts.map +1 -1
  124. package/dist/types/components/search/SearchProvider.d.ts +2 -1
  125. package/dist/types/components/search/SearchProvider.d.ts.map +1 -1
  126. package/dist/types/components/search/SearchRuntime.d.ts +2 -1
  127. package/dist/types/components/search/SearchRuntime.d.ts.map +1 -1
  128. package/dist/types/lib/component-scanner.d.ts.map +1 -1
  129. package/dist/types/lib/config.d.ts +42 -0
  130. package/dist/types/lib/config.d.ts.map +1 -1
  131. package/dist/types/lib/navigation.d.ts +1 -1
  132. package/dist/types/lib/navigation.d.ts.map +1 -1
  133. package/dist/types/lib/page-meta.d.ts +16 -0
  134. package/dist/types/lib/page-meta.d.ts.map +1 -0
  135. package/dist/types/lib/search/build/index-generator.d.ts.map +1 -1
  136. package/dist/types/lib/search/build/types.d.ts +1 -0
  137. package/dist/types/lib/search/build/types.d.ts.map +1 -1
  138. package/dist/types/lib/search/runtime/search-engine.d.ts.map +1 -1
  139. package/dist/types/lib/search/runtime/types.d.ts +1 -0
  140. package/dist/types/lib/search/runtime/types.d.ts.map +1 -1
  141. package/dist/types/lib/versioning.d.ts +6 -0
  142. package/dist/types/lib/versioning.d.ts.map +1 -0
  143. package/dist/vennDiagram-LZ73GAT5-DlUUn7LI.js +1858 -0
  144. package/dist/xychartDiagram-JWTSCODW-oT2IR7c0.js +2041 -0
  145. package/package.json +4 -1
  146. /package/dist/{AIProvider-C1_b1iKH.js → AIProvider-niZNPSGi.js} +0 -0
  147. /package/dist/{context-menu-CB7erSoV.js → context-menu-BIQsQup7.js} +0 -0
  148. /package/dist/{dialog-DQ6nkP0y.js → dialog-D8otbqQL.js} +0 -0
  149. /package/dist/{mdx-components-Dxpipc50.js → mdx-components-TEc3uhbY.js} +0 -0
  150. /package/dist/{use-toast-d9VPBjMn.js → use-toast-DK69oadB.js} +0 -0
@@ -0,0 +1,511 @@
1
+ import { C as e, D as t, E as n, O as r, S as i, T as a, _ as o, b as s, h as c, v as l, w as u, x as d, y as f } from "./chunk-GEFDOKGD-OXBFFBXI.js";
2
+ import { g as p, h as m, p as h } from "./src-B8kKzJ6p.js";
3
+ import { b as g, w as _ } from "./chunk-7R4GIKGN-Qkaxl46X.js";
4
+ import { t as v } from "./line-ChPoSgrf.js";
5
+ import { n as y } from "./chunk-PU5JKC2W-an2DzREj.js";
6
+ import { i as b, n as x, r as S, t as C } from "./chunk-MX3YWQON-CrwNXQjz.js";
7
+ import { n as w } from "./chunk-YBOYWFTD-BT3l76Xm.js";
8
+ import { i as T, n as ee } from "./chunk-PQ6SQG4A-6cI0SCcc.js";
9
+ import { t as te } from "./rough.esm-qTNNhHn7.js";
10
+ import { r as E } from "./chunk-KYZI473N-COpLSX52.js";
11
+ //#region node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O4XLMI2P.mjs
12
+ var D = /* @__PURE__ */ m((e, t, n, r, i, a) => {
13
+ t.arrowTypeStart && k(e, "start", t.arrowTypeStart, n, r, i, a), t.arrowTypeEnd && k(e, "end", t.arrowTypeEnd, n, r, i, a);
14
+ }, "addEdgeMarkers"), O = {
15
+ arrow_cross: {
16
+ type: "cross",
17
+ fill: !1
18
+ },
19
+ arrow_point: {
20
+ type: "point",
21
+ fill: !0
22
+ },
23
+ arrow_barb: {
24
+ type: "barb",
25
+ fill: !0
26
+ },
27
+ arrow_circle: {
28
+ type: "circle",
29
+ fill: !1
30
+ },
31
+ aggregation: {
32
+ type: "aggregation",
33
+ fill: !1
34
+ },
35
+ extension: {
36
+ type: "extension",
37
+ fill: !1
38
+ },
39
+ composition: {
40
+ type: "composition",
41
+ fill: !0
42
+ },
43
+ dependency: {
44
+ type: "dependency",
45
+ fill: !0
46
+ },
47
+ lollipop: {
48
+ type: "lollipop",
49
+ fill: !1
50
+ },
51
+ only_one: {
52
+ type: "onlyOne",
53
+ fill: !1
54
+ },
55
+ zero_or_one: {
56
+ type: "zeroOrOne",
57
+ fill: !1
58
+ },
59
+ one_or_more: {
60
+ type: "oneOrMore",
61
+ fill: !1
62
+ },
63
+ zero_or_more: {
64
+ type: "zeroOrMore",
65
+ fill: !1
66
+ },
67
+ requirement_arrow: {
68
+ type: "requirement_arrow",
69
+ fill: !1
70
+ },
71
+ requirement_contains: {
72
+ type: "requirement_contains",
73
+ fill: !1
74
+ }
75
+ }, k = /* @__PURE__ */ m((e, t, n, r, i, a, o) => {
76
+ let s = O[n];
77
+ if (!s) {
78
+ p.warn(`Unknown arrow type: ${n}`);
79
+ return;
80
+ }
81
+ let c = `${i}_${a}-${s.type}${t === "start" ? "Start" : "End"}`;
82
+ if (o && o.trim() !== "") {
83
+ let n = `${c}_${o.replace(/[^\dA-Za-z]/g, "_")}`;
84
+ if (!document.getElementById(n)) {
85
+ let e = document.getElementById(c);
86
+ if (e) {
87
+ let t = e.cloneNode(!0);
88
+ t.id = n, t.querySelectorAll("path, circle, line").forEach((e) => {
89
+ e.setAttribute("stroke", o), s.fill && e.setAttribute("fill", o);
90
+ }), e.parentNode?.appendChild(t);
91
+ }
92
+ }
93
+ e.attr(`marker-${t}`, `url(${r}#${n})`);
94
+ } else e.attr(`marker-${t}`, `url(${r}#${c})`);
95
+ }, "addEdgeMarker"), ne = /* @__PURE__ */ m((e) => typeof e == "string" ? e : g()?.flowchart?.curve, "resolveEdgeCurveType"), A = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), M = /* @__PURE__ */ m(() => {
96
+ A.clear(), j.clear();
97
+ }, "clear"), N = /* @__PURE__ */ m((e) => e ? typeof e == "string" ? e : e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), P = /* @__PURE__ */ m(async (e, t) => {
98
+ let n = g(), r = _(n), { labelStyles: i } = T(t);
99
+ t.labelStyle = i;
100
+ let a = e.insert("g").attr("class", "edgeLabel"), o = a.insert("g").attr("class", "label").attr("data-id", t.id), s = t.labelType === "markdown", c = await y(e, t.label, {
101
+ style: N(t.labelStyle),
102
+ useHtmlLabels: r,
103
+ addSvgBackground: !0,
104
+ isNode: !1,
105
+ markdown: s,
106
+ width: void 0
107
+ }, n);
108
+ o.node().appendChild(c), p.info("abc82", t, t.labelType);
109
+ let l = c.getBBox(), u = l;
110
+ if (r) {
111
+ let e = c.children[0], t = h(c);
112
+ l = e.getBoundingClientRect(), u = l, t.attr("width", l.width), t.attr("height", l.height);
113
+ } else {
114
+ let e = h(c).select("text").node();
115
+ e && typeof e.getBBox == "function" && (u = e.getBBox());
116
+ }
117
+ o.attr("transform", C(u, r)), A.set(t.id, a), t.width = l.width, t.height = l.height;
118
+ let d;
119
+ if (t.startLabelLeft) {
120
+ let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await E(i, t.startLabelLeft, N(t.labelStyle) || "", !1, !1);
121
+ d = a;
122
+ let o = a.getBBox();
123
+ if (r) {
124
+ let e = a.children[0], t = h(a);
125
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
126
+ }
127
+ i.attr("transform", C(o, r)), j.get(t.id) || j.set(t.id, {}), j.get(t.id).startLeft = n, F(d, t.startLabelLeft);
128
+ }
129
+ if (t.startLabelRight) {
130
+ let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await E(i, t.startLabelRight, N(t.labelStyle) || "", !1, !1);
131
+ d = a, i.node().appendChild(a);
132
+ let o = a.getBBox();
133
+ if (r) {
134
+ let e = a.children[0], t = h(a);
135
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
136
+ }
137
+ i.attr("transform", C(o, r)), j.get(t.id) || j.set(t.id, {}), j.get(t.id).startRight = n, F(d, t.startLabelRight);
138
+ }
139
+ if (t.endLabelLeft) {
140
+ let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await E(i, t.endLabelLeft, N(t.labelStyle) || "", !1, !1);
141
+ d = a;
142
+ let o = a.getBBox();
143
+ if (r) {
144
+ let e = a.children[0], t = h(a);
145
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
146
+ }
147
+ i.attr("transform", C(o, r)), n.node().appendChild(a), j.get(t.id) || j.set(t.id, {}), j.get(t.id).endLeft = n, F(d, t.endLabelLeft);
148
+ }
149
+ if (t.endLabelRight) {
150
+ let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await E(i, t.endLabelRight, N(t.labelStyle) || "", !1, !1);
151
+ d = a;
152
+ let o = a.getBBox();
153
+ if (r) {
154
+ let e = a.children[0], t = h(a);
155
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
156
+ }
157
+ i.attr("transform", C(o, r)), n.node().appendChild(a), j.get(t.id) || j.set(t.id, {}), j.get(t.id).endRight = n, F(d, t.endLabelRight);
158
+ }
159
+ return c;
160
+ }, "insertEdgeLabel");
161
+ function F(e, t) {
162
+ _(g()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
163
+ }
164
+ m(F, "setTerminalWidth");
165
+ var I = /* @__PURE__ */ m((e, t) => {
166
+ p.debug("Moving label abc88 ", e.id, e.label, A.get(e.id), t);
167
+ let n = t.updatedPath ? t.updatedPath : t.originalPath, { subGraphTitleTotalMargin: r } = w(g());
168
+ if (e.label) {
169
+ let i = A.get(e.id), a = e.x, o = e.y;
170
+ if (n) {
171
+ let r = c.calcLabelPosition(n);
172
+ p.debug("Moving label " + e.label + " from (", a, ",", o, ") to (", r.x, ",", r.y, ") abc88"), t.updatedPath && (a = r.x, o = r.y);
173
+ }
174
+ i.attr("transform", `translate(${a}, ${o + r / 2})`);
175
+ }
176
+ if (e.startLabelLeft) {
177
+ let t = j.get(e.id).startLeft, r = e.x, i = e.y;
178
+ if (n) {
179
+ let t = c.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", n);
180
+ r = t.x, i = t.y;
181
+ }
182
+ t.attr("transform", `translate(${r}, ${i})`);
183
+ }
184
+ if (e.startLabelRight) {
185
+ let t = j.get(e.id).startRight, r = e.x, i = e.y;
186
+ if (n) {
187
+ let t = c.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", n);
188
+ r = t.x, i = t.y;
189
+ }
190
+ t.attr("transform", `translate(${r}, ${i})`);
191
+ }
192
+ if (e.endLabelLeft) {
193
+ let t = j.get(e.id).endLeft, r = e.x, i = e.y;
194
+ if (n) {
195
+ let t = c.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", n);
196
+ r = t.x, i = t.y;
197
+ }
198
+ t.attr("transform", `translate(${r}, ${i})`);
199
+ }
200
+ if (e.endLabelRight) {
201
+ let t = j.get(e.id).endRight, r = e.x, i = e.y;
202
+ if (n) {
203
+ let t = c.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", n);
204
+ r = t.x, i = t.y;
205
+ }
206
+ t.attr("transform", `translate(${r}, ${i})`);
207
+ }
208
+ }, "positionEdgeLabel"), L = /* @__PURE__ */ m((e, t) => {
209
+ let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
210
+ return i >= o || a >= s;
211
+ }, "outsideNode"), R = /* @__PURE__ */ m((e, t, n) => {
212
+ p.debug(`intersection calc abc89:
213
+ outsidePoint: ${JSON.stringify(t)}
214
+ insidePoint : ${JSON.stringify(n)}
215
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
216
+ let r = e.x, i = e.y, a = Math.abs(r - n.x), o = e.width / 2, s = n.x < t.x ? o - a : o + a, c = e.height / 2, l = Math.abs(t.y - n.y), u = Math.abs(t.x - n.x);
217
+ if (Math.abs(i - t.y) * o > Math.abs(r - t.x) * c) {
218
+ let e = n.y < t.y ? t.y - c - i : i - c - t.y;
219
+ s = u * e / l;
220
+ let r = {
221
+ x: n.x < t.x ? n.x + s : n.x - u + s,
222
+ y: n.y < t.y ? n.y + l - e : n.y - l + e
223
+ };
224
+ return s === 0 && (r.x = t.x, r.y = t.y), u === 0 && (r.x = t.x), l === 0 && (r.y = t.y), p.debug(`abc89 top/bottom calc, Q ${l}, q ${e}, R ${u}, r ${s}`, r), r;
225
+ } else {
226
+ s = n.x < t.x ? t.x - o - r : r - o - t.x;
227
+ let e = l * s / u, i = n.x < t.x ? n.x + u - s : n.x - u + s, a = n.y < t.y ? n.y + e : n.y - e;
228
+ return p.debug(`sides calc abc89, Q ${l}, q ${e}, R ${u}, r ${s}`, {
229
+ _x: i,
230
+ _y: a
231
+ }), s === 0 && (i = t.x, a = t.y), u === 0 && (i = t.x), l === 0 && (a = t.y), {
232
+ x: i,
233
+ y: a
234
+ };
235
+ }
236
+ }, "intersection"), z = /* @__PURE__ */ m((e, t) => {
237
+ p.warn("abc88 cutPathAtIntersect", e, t);
238
+ let n = [], r = e[0], i = !1;
239
+ return e.forEach((e) => {
240
+ if (p.info("abc88 checking point", e, t), !L(t, e) && !i) {
241
+ let a = R(t, r, e);
242
+ p.debug("abc88 inside", e, r, a), p.debug("abc88 intersection", a, t);
243
+ let o = !1;
244
+ n.forEach((e) => {
245
+ o ||= e.x === a.x && e.y === a.y;
246
+ }), n.some((e) => e.x === a.x && e.y === a.y) ? p.warn("abc88 no intersect", a, n) : n.push(a), i = !0;
247
+ } else p.warn("abc88 outside", e, r), r = e, i || n.push(e);
248
+ }), p.debug("returning points", n), n;
249
+ }, "cutPathAtIntersect");
250
+ function B(e) {
251
+ let t = [], n = [];
252
+ for (let r = 1; r < e.length - 1; r++) {
253
+ let i = e[r - 1], a = e[r], o = e[r + 1];
254
+ (i.x === a.x && a.y === o.y && Math.abs(a.x - o.x) > 5 && Math.abs(a.y - i.y) > 5 || i.y === a.y && a.x === o.x && Math.abs(a.x - i.x) > 5 && Math.abs(a.y - o.y) > 5) && (t.push(a), n.push(r));
255
+ }
256
+ return {
257
+ cornerPoints: t,
258
+ cornerPointPositions: n
259
+ };
260
+ }
261
+ m(B, "extractCornerPoints");
262
+ var V = /* @__PURE__ */ m(function(e, t, n) {
263
+ let r = t.x - e.x, i = t.y - e.y, a = n / Math.sqrt(r * r + i * i);
264
+ return {
265
+ x: t.x - a * r,
266
+ y: t.y - a * i
267
+ };
268
+ }, "findAdjacentPoint"), H = /* @__PURE__ */ m(function(e) {
269
+ let { cornerPointPositions: t } = B(e), n = [];
270
+ for (let r = 0; r < e.length; r++) if (t.includes(r)) {
271
+ let t = e[r - 1], i = e[r + 1], a = e[r], o = V(t, a, 5), s = V(i, a, 5), c = s.x - o.x, l = s.y - o.y;
272
+ n.push(o);
273
+ let u = Math.sqrt(2) * 2, d = {
274
+ x: a.x,
275
+ y: a.y
276
+ };
277
+ Math.abs(i.x - t.x) > 10 && Math.abs(i.y - t.y) >= 10 ? (p.debug("Corner point fixing", Math.abs(i.x - t.x), Math.abs(i.y - t.y)), d = a.x === o.x ? {
278
+ x: c < 0 ? o.x - 5 + u : o.x + 5 - u,
279
+ y: l < 0 ? o.y - u : o.y + u
280
+ } : {
281
+ x: c < 0 ? o.x - u : o.x + u,
282
+ y: l < 0 ? o.y - 5 + u : o.y + 5 - u
283
+ }) : p.debug("Corner point skipping fixing", Math.abs(i.x - t.x), Math.abs(i.y - t.y)), n.push(d, s);
284
+ } else n.push(e[r]);
285
+ return n;
286
+ }, "fixCorners"), re = /* @__PURE__ */ m((e, t, n) => {
287
+ let r = e - t - n, i = Math.floor(r / 4);
288
+ return `0 ${t} ${Array(i).fill("2 2").join(" ")} ${n}`;
289
+ }, "generateDashArray"), U = /* @__PURE__ */ m(function(m, _, y, S, C, w, T, E = !1) {
290
+ let { handDrawnSeed: O } = g(), k = _.points, A = !1, j = C;
291
+ var M = w;
292
+ let N = [];
293
+ for (let e in _.cssCompiledStyles) ee(e) || N.push(_.cssCompiledStyles[e]);
294
+ p.debug("UIO intersect check", _.points, M.x, j.x), M.intersect && j.intersect && !E && (k = k.slice(1, _.points.length - 1), k.unshift(j.intersect(k[0])), p.debug("Last point UIO", _.start, "-->", _.end, k[k.length - 1], M, M.intersect(k[k.length - 1])), k.push(M.intersect(k[k.length - 1])));
295
+ let P = btoa(JSON.stringify(k));
296
+ _.toCluster && (p.info("to cluster abc88", y.get(_.toCluster)), k = z(_.points, y.get(_.toCluster).node), A = !0), _.fromCluster && (p.debug("from cluster abc88", y.get(_.fromCluster), JSON.stringify(k, null, 2)), k = z(k.reverse(), y.get(_.fromCluster).node).reverse(), A = !0);
297
+ let F = k.filter((e) => !Number.isNaN(e.y)), I = ne(_.curve);
298
+ I !== "rounded" && (F = H(F));
299
+ let L = r;
300
+ switch (I) {
301
+ case "linear":
302
+ L = r;
303
+ break;
304
+ case "basis":
305
+ L = a;
306
+ break;
307
+ case "cardinal":
308
+ L = u;
309
+ break;
310
+ case "bumpX":
311
+ L = n;
312
+ break;
313
+ case "bumpY":
314
+ L = t;
315
+ break;
316
+ case "catmullRom":
317
+ L = e;
318
+ break;
319
+ case "monotoneX":
320
+ L = d;
321
+ break;
322
+ case "monotoneY":
323
+ L = i;
324
+ break;
325
+ case "natural":
326
+ L = s;
327
+ break;
328
+ case "step":
329
+ L = f;
330
+ break;
331
+ case "stepAfter":
332
+ L = o;
333
+ break;
334
+ case "stepBefore":
335
+ L = l;
336
+ break;
337
+ case "rounded":
338
+ L = r;
339
+ break;
340
+ default: L = a;
341
+ }
342
+ let { x: R, y: B } = x(_), V = v().x(R).y(B).curve(L), U;
343
+ switch (_.thickness) {
344
+ case "normal":
345
+ U = "edge-thickness-normal";
346
+ break;
347
+ case "thick":
348
+ U = "edge-thickness-thick";
349
+ break;
350
+ case "invisible":
351
+ U = "edge-thickness-invisible";
352
+ break;
353
+ default: U = "edge-thickness-normal";
354
+ }
355
+ switch (_.pattern) {
356
+ case "solid":
357
+ U += " edge-pattern-solid";
358
+ break;
359
+ case "dotted":
360
+ U += " edge-pattern-dotted";
361
+ break;
362
+ case "dashed":
363
+ U += " edge-pattern-dashed";
364
+ break;
365
+ default: U += " edge-pattern-solid";
366
+ }
367
+ let G, q = I === "rounded" ? W(K(F, _), 5) : V(F), J = Array.isArray(_.style) ? _.style : [_.style], Y = J.find((e) => e?.startsWith("stroke:")), X = "";
368
+ _.animate && (X = "edge-animation-fast"), _.animation && (X = "edge-animation-" + _.animation);
369
+ let Z = !1;
370
+ if (_.look === "handDrawn") {
371
+ let e = te.svg(m);
372
+ Object.assign([], F);
373
+ let t = e.path(q, {
374
+ roughness: .3,
375
+ seed: O
376
+ });
377
+ U += " transition", G = h(t).select("path").attr("id", _.id).attr("class", " " + U + (_.classes ? " " + _.classes : "") + (X ? " " + X : "")).attr("style", J ? J.reduce((e, t) => e + ";" + t, "") : "");
378
+ let n = G.attr("d");
379
+ G.attr("d", n), m.node().appendChild(G.node());
380
+ } else {
381
+ let e = N.join(";"), t = J ? J.reduce((e, t) => e + t + ";", "") : "", n = (e ? e + ";" + t + ";" : t) + ";" + (J ? J.reduce((e, t) => e + ";" + t, "") : "");
382
+ G = m.append("path").attr("d", q).attr("id", _.id).attr("class", " " + U + (_.classes ? " " + _.classes : "") + (X ? " " + X : "")).attr("style", n), Y = n.match(/stroke:([^;]+)/)?.[1], Z = _.animate === !0 || !!_.animation || e.includes("animation");
383
+ let r = G.node(), i = typeof r.getTotalLength == "function" ? r.getTotalLength() : 0, a = b[_.arrowTypeStart] || 0, o = b[_.arrowTypeEnd] || 0;
384
+ if (_.look === "neo" && !Z) {
385
+ let e = `stroke-dasharray: ${_.pattern === "dotted" || _.pattern === "dashed" ? re(i, a, o) : `0 ${a} ${i - a - o} ${o}`}; stroke-dashoffset: 0;`;
386
+ G.attr("style", e + G.attr("style"));
387
+ }
388
+ }
389
+ G.attr("data-edge", !0), G.attr("data-et", "edge"), G.attr("data-id", _.id), G.attr("data-points", P), _.showPoints && F.forEach((e) => {
390
+ m.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", e.x).attr("cy", e.y);
391
+ });
392
+ let Q = "";
393
+ (g().flowchart.arrowMarkerAbsolute || g().state.arrowMarkerAbsolute) && (Q = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, Q = Q.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), p.info("arrowTypeStart", _.arrowTypeStart), p.info("arrowTypeEnd", _.arrowTypeEnd), D(G, _, Q, T, S, Y);
394
+ let ie = Math.floor(k.length / 2), ae = k[ie];
395
+ c.isLabelCoordinateInPath(ae, G.attr("d")) || (A = !0);
396
+ let $ = {};
397
+ return A && ($.updatedPath = k), $.originalPath = _.points, $;
398
+ }, "insertEdge");
399
+ function W(e, t) {
400
+ if (e.length < 2) return "";
401
+ let n = "", r = e.length, i = 1e-5;
402
+ for (let a = 0; a < r; a++) {
403
+ let o = e[a], s = e[a - 1], c = e[a + 1];
404
+ if (a === 0) n += `M${o.x},${o.y}`;
405
+ else if (a === r - 1) n += `L${o.x},${o.y}`;
406
+ else {
407
+ let e = o.x - s.x, r = o.y - s.y, a = c.x - o.x, l = c.y - o.y, u = Math.hypot(e, r), d = Math.hypot(a, l);
408
+ if (u < i || d < i) {
409
+ n += `L${o.x},${o.y}`;
410
+ continue;
411
+ }
412
+ let f = e / u, p = r / u, m = a / d, h = l / d, g = f * m + p * h, _ = Math.acos(Math.max(-1, Math.min(1, g)));
413
+ if (_ < i || Math.abs(Math.PI - _) < i) {
414
+ n += `L${o.x},${o.y}`;
415
+ continue;
416
+ }
417
+ let v = Math.min(t / Math.sin(_ / 2), u / 2, d / 2), y = o.x - f * v, b = o.y - p * v, x = o.x + m * v, S = o.y + h * v;
418
+ n += `L${y},${b}`, n += `Q${o.x},${o.y} ${x},${S}`;
419
+ }
420
+ }
421
+ return n;
422
+ }
423
+ m(W, "generateRoundedPath");
424
+ function G(e, t) {
425
+ if (!e || !t) return {
426
+ angle: 0,
427
+ deltaX: 0,
428
+ deltaY: 0
429
+ };
430
+ let n = t.x - e.x, r = t.y - e.y;
431
+ return {
432
+ angle: Math.atan2(r, n),
433
+ deltaX: n,
434
+ deltaY: r
435
+ };
436
+ }
437
+ m(G, "calculateDeltaAndAngle");
438
+ function K(e, t) {
439
+ let n = e.map((e) => ({ ...e }));
440
+ if (e.length >= 2 && S[t.arrowTypeStart]) {
441
+ let r = S[t.arrowTypeStart], i = e[0], a = e[1], { angle: o } = G(i, a), s = r * Math.cos(o), c = r * Math.sin(o);
442
+ n[0].x = i.x + s, n[0].y = i.y + c;
443
+ }
444
+ let r = e.length;
445
+ if (r >= 2 && S[t.arrowTypeEnd]) {
446
+ let i = S[t.arrowTypeEnd], a = e[r - 1], o = e[r - 2], { angle: s } = G(o, a), c = i * Math.cos(s), l = i * Math.sin(s);
447
+ n[r - 1].x = a.x - c, n[r - 1].y = a.y - l;
448
+ }
449
+ return n;
450
+ }
451
+ m(K, "applyMarkerOffsetsToPoints");
452
+ var q = /* @__PURE__ */ m((e, t, n, r) => {
453
+ t.forEach((t) => {
454
+ J[t](e, n, r);
455
+ });
456
+ }, "insertMarkers"), J = {
457
+ extension: /* @__PURE__ */ m((e, t, n) => {
458
+ p.trace("Making markers for ", n), e.append("defs").append("marker").attr("id", n + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
459
+ }, "extension"),
460
+ composition: /* @__PURE__ */ m((e, t, n) => {
461
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
462
+ }, "composition"),
463
+ aggregation: /* @__PURE__ */ m((e, t, n) => {
464
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
465
+ }, "aggregation"),
466
+ dependency: /* @__PURE__ */ m((e, t, n) => {
467
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
468
+ }, "dependency"),
469
+ lollipop: /* @__PURE__ */ m((e, t, n) => {
470
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
471
+ }, "lollipop"),
472
+ point: /* @__PURE__ */ m((e, t, n) => {
473
+ e.append("marker").attr("id", n + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
474
+ }, "point"),
475
+ circle: /* @__PURE__ */ m((e, t, n) => {
476
+ e.append("marker").attr("id", n + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
477
+ }, "circle"),
478
+ cross: /* @__PURE__ */ m((e, t, n) => {
479
+ e.append("marker").attr("id", n + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
480
+ }, "cross"),
481
+ barb: /* @__PURE__ */ m((e, t, n) => {
482
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
483
+ }, "barb"),
484
+ only_one: /* @__PURE__ */ m((e, t, n) => {
485
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18"), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18");
486
+ }, "only_one"),
487
+ zero_or_one: /* @__PURE__ */ m((e, t, n) => {
488
+ let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
489
+ r.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("d", "M9,0 L9,18");
490
+ let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
491
+ i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), i.append("path").attr("d", "M21,0 L21,18");
492
+ }, "zero_or_one"),
493
+ one_or_more: /* @__PURE__ */ m((e, t, n) => {
494
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18");
495
+ }, "one_or_more"),
496
+ zero_or_more: /* @__PURE__ */ m((e, t, n) => {
497
+ let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
498
+ r.append("circle").attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18");
499
+ let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
500
+ i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), i.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
501
+ }, "zero_or_more"),
502
+ requirement_arrow: /* @__PURE__ */ m((e, t, n) => {
503
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20");
504
+ }, "requirement_arrow"),
505
+ requirement_contains: /* @__PURE__ */ m((e, t, n) => {
506
+ let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("g");
507
+ r.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), r.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), r.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10);
508
+ }, "requirement_contains")
509
+ }, Y = q;
510
+ //#endregion
511
+ export { I as a, Y as i, U as n, P as r, M as t };
@@ -0,0 +1,64 @@
1
+ import { d as e, f as t, g as n, h as r, m as i, n as a, p as o, s, t as c } from "./chunk-XZSTWKYB-BQ9uqNJe.js";
2
+ //#region node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-OZEHJAEY.mjs
3
+ var l = class extends c {
4
+ static {
5
+ t(this, "TreemapTokenBuilder");
6
+ }
7
+ constructor() {
8
+ super(["treemap"]);
9
+ }
10
+ }, u = /classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/, d = class extends a {
11
+ static {
12
+ t(this, "TreemapValueConverter");
13
+ }
14
+ runCustomConverter(e, t, n) {
15
+ if (e.name === "NUMBER2") return parseFloat(t.replace(/,/g, ""));
16
+ if (e.name === "SEPARATOR" || e.name === "STRING2") return t.substring(1, t.length - 1);
17
+ if (e.name === "INDENTATION") return t.length;
18
+ if (e.name === "ClassDef") {
19
+ if (typeof t != "string") return t;
20
+ let e = u.exec(t);
21
+ if (e) return {
22
+ $type: "ClassDefStatement",
23
+ className: e[1],
24
+ styleText: e[2] || void 0
25
+ };
26
+ }
27
+ }
28
+ };
29
+ function f(e) {
30
+ let t = e.validation.TreemapValidator, n = e.validation.ValidationRegistry;
31
+ if (n) {
32
+ let e = { Treemap: t.checkSingleRoot.bind(t) };
33
+ n.register(e, t);
34
+ }
35
+ }
36
+ t(f, "registerValidationChecks");
37
+ var p = class {
38
+ static {
39
+ t(this, "TreemapValidator");
40
+ }
41
+ checkSingleRoot(e, t) {
42
+ let n;
43
+ for (let r of e.TreemapRows) r.item && (n === void 0 && r.indent === void 0 ? n = 0 : (r.indent === void 0 || n !== void 0 && n >= parseInt(r.indent, 10)) && t("error", "Multiple root nodes are not allowed in a treemap.", {
44
+ node: r,
45
+ property: "item"
46
+ }));
47
+ }
48
+ }, m = {
49
+ parser: {
50
+ TokenBuilder: /* @__PURE__ */ t(() => new l(), "TokenBuilder"),
51
+ ValueConverter: /* @__PURE__ */ t(() => new d(), "ValueConverter")
52
+ },
53
+ validation: { TreemapValidator: /* @__PURE__ */ t(() => new p(), "TreemapValidator") }
54
+ };
55
+ function h(t = o) {
56
+ let a = i(n(t), s), c = i(r({ shared: a }), e, m);
57
+ return a.ServiceRegistry.register(c), f(c), {
58
+ shared: a,
59
+ Treemap: c
60
+ };
61
+ }
62
+ t(h, "createTreemapServices");
63
+ //#endregion
64
+ export { h as n, m as t };
@@ -0,0 +1,67 @@
1
+ import { h as e } from "./src-B8kKzJ6p.js";
2
+ import { b as t } from "./chunk-7R4GIKGN-Qkaxl46X.js";
3
+ //#region node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-PQ6SQG4A.mjs
4
+ var n = /* @__PURE__ */ e((e) => {
5
+ let { handDrawnSeed: n } = t();
6
+ return {
7
+ fill: e,
8
+ hachureAngle: 120,
9
+ hachureGap: 4,
10
+ fillWeight: 2,
11
+ roughness: .7,
12
+ stroke: e,
13
+ seed: n
14
+ };
15
+ }, "solidStateFill"), r = /* @__PURE__ */ e((e) => {
16
+ let t = i([
17
+ ...e.cssCompiledStyles || [],
18
+ ...e.cssStyles || [],
19
+ ...e.labelStyle || []
20
+ ]);
21
+ return {
22
+ stylesMap: t,
23
+ stylesArray: [...t]
24
+ };
25
+ }, "compileStyles"), i = /* @__PURE__ */ e((e) => {
26
+ let t = /* @__PURE__ */ new Map();
27
+ return e.forEach((e) => {
28
+ let [n, r] = e.split(":");
29
+ t.set(n.trim(), r?.trim());
30
+ }), t;
31
+ }, "styles2Map"), a = /* @__PURE__ */ e((e) => e === "color" || e === "font-size" || e === "font-family" || e === "font-weight" || e === "font-style" || e === "text-decoration" || e === "text-align" || e === "text-transform" || e === "line-height" || e === "letter-spacing" || e === "word-spacing" || e === "text-shadow" || e === "text-overflow" || e === "white-space" || e === "word-wrap" || e === "word-break" || e === "overflow-wrap" || e === "hyphens", "isLabelStyle"), o = /* @__PURE__ */ e((e) => {
32
+ let { stylesArray: t } = r(e), n = [], i = [], o = [], s = [];
33
+ return t.forEach((e) => {
34
+ let t = e[0];
35
+ a(t) ? n.push(e.join(":") + " !important") : (i.push(e.join(":") + " !important"), t.includes("stroke") && o.push(e.join(":") + " !important"), t === "fill" && s.push(e.join(":") + " !important"));
36
+ }), {
37
+ labelStyles: n.join(";"),
38
+ nodeStyles: i.join(";"),
39
+ stylesArray: t,
40
+ borderStyles: o,
41
+ backgroundStyles: s
42
+ };
43
+ }, "styles2String"), s = /* @__PURE__ */ e((e, n) => {
44
+ let { themeVariables: i, handDrawnSeed: a } = t(), { nodeBorder: o, mainBkg: s } = i, { stylesMap: l } = r(e);
45
+ return Object.assign({
46
+ roughness: .7,
47
+ fill: l.get("fill") || s,
48
+ fillStyle: "hachure",
49
+ fillWeight: 4,
50
+ hachureGap: 5.2,
51
+ stroke: l.get("stroke") || o,
52
+ seed: a,
53
+ strokeWidth: l.get("stroke-width")?.replace("px", "") || 1.3,
54
+ fillLineDash: [0, 0],
55
+ strokeLineDash: c(l.get("stroke-dasharray"))
56
+ }, n);
57
+ }, "userNodeOverrides"), c = /* @__PURE__ */ e((e) => {
58
+ if (!e) return [0, 0];
59
+ let t = e.trim().split(/\s+/).map(Number);
60
+ if (t.length === 1) {
61
+ let e = isNaN(t[0]) ? 0 : t[0];
62
+ return [e, e];
63
+ }
64
+ return [isNaN(t[0]) ? 0 : t[0], isNaN(t[1]) ? 0 : t[1]];
65
+ }, "getStrokeDashArray");
66
+ //#endregion
67
+ export { s as a, o as i, a as n, n as r, r as t };