react-docs-ui 0.6.16 → 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-CUrnKwOU.js → DocsApp-CNVM_Zcf.js} +3505 -3212
  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/mdx-components-TEc3uhbY.js +4 -0
  79. package/dist/mermaid-parser.core-CDTyVXPe.js +59 -0
  80. package/dist/mermaid.core-CHJrGTZ9.js +919 -0
  81. package/dist/mindmap-definition-YRQLILUH-CqsMcFhX.js +964 -0
  82. package/dist/ordinal-DUEC8Lr4.js +65 -0
  83. package/dist/packet-RMMSAZCW-ZLaHU0Ov.js +3 -0
  84. package/dist/path-CzRXOvk1.js +85 -0
  85. package/dist/pie-UPGHQEXC-COgIbE0j.js +3 -0
  86. package/dist/pieDiagram-SKSYHLDU-C8Y5Bc8d.js +165 -0
  87. package/dist/quadrantDiagram-337W2JSQ-DRWBX5cn.js +1974 -0
  88. package/dist/radar-KQ55EAFF-ABFVVcns.js +3 -0
  89. package/dist/react-docs-ui.css +1 -1
  90. package/dist/react-docs-ui.es.js +19 -19
  91. package/dist/requirementDiagram-Z7DCOOCP-EkyUnFq8.js +2201 -0
  92. package/dist/rough.esm-qTNNhHn7.js +1352 -0
  93. package/dist/sankeyDiagram-WA2Y5GQK-Cmas7IuZ.js +920 -0
  94. package/dist/sequenceDiagram-2WXFIKYE-B7TrFw3o.js +4109 -0
  95. package/dist/src-B8kKzJ6p.js +2146 -0
  96. package/dist/stateDiagram-RAJIS63D-DyqZyFdt.js +217 -0
  97. package/dist/stateDiagram-v2-FVOUBMTO-5UjWXgt6.js +27 -0
  98. package/dist/timeline-definition-YZTLITO2-qhoXPOhL.js +830 -0
  99. package/dist/treemap-KZPCXAKY-CRdRsoRo.js +3 -0
  100. package/dist/types/components/AnnouncementBar.d.ts +12 -0
  101. package/dist/types/components/AnnouncementBar.d.ts.map +1 -0
  102. package/dist/types/components/DocsLayout.d.ts +8 -2
  103. package/dist/types/components/DocsLayout.d.ts.map +1 -1
  104. package/dist/types/components/HeaderNav.d.ts +17 -1
  105. package/dist/types/components/HeaderNav.d.ts.map +1 -1
  106. package/dist/types/components/MdxContent.d.ts.map +1 -1
  107. package/dist/types/components/MobileSidebar.d.ts +2 -1
  108. package/dist/types/components/MobileSidebar.d.ts.map +1 -1
  109. package/dist/types/components/PageFeedback.d.ts +11 -0
  110. package/dist/types/components/PageFeedback.d.ts.map +1 -0
  111. package/dist/types/components/PageMetaActions.d.ts +15 -0
  112. package/dist/types/components/PageMetaActions.d.ts.map +1 -0
  113. package/dist/types/components/PageNavigation.d.ts +2 -1
  114. package/dist/types/components/PageNavigation.d.ts.map +1 -1
  115. package/dist/types/components/SearchLauncher.d.ts +2 -1
  116. package/dist/types/components/SearchLauncher.d.ts.map +1 -1
  117. package/dist/types/components/SidebarNav.d.ts +2 -1
  118. package/dist/types/components/SidebarNav.d.ts.map +1 -1
  119. package/dist/types/components/mdx-components/Mermaid.d.ts +6 -0
  120. package/dist/types/components/mdx-components/Mermaid.d.ts.map +1 -0
  121. package/dist/types/components/mdx-components/Tabs.d.ts +13 -0
  122. package/dist/types/components/mdx-components/Tabs.d.ts.map +1 -0
  123. package/dist/types/components/mdx-components/index.d.ts +2 -0
  124. package/dist/types/components/mdx-components/index.d.ts.map +1 -1
  125. package/dist/types/components/search/SearchProvider.d.ts +2 -1
  126. package/dist/types/components/search/SearchProvider.d.ts.map +1 -1
  127. package/dist/types/components/search/SearchRuntime.d.ts +2 -1
  128. package/dist/types/components/search/SearchRuntime.d.ts.map +1 -1
  129. package/dist/types/lib/component-scanner.d.ts.map +1 -1
  130. package/dist/types/lib/config.d.ts +42 -0
  131. package/dist/types/lib/config.d.ts.map +1 -1
  132. package/dist/types/lib/navigation.d.ts +1 -1
  133. package/dist/types/lib/navigation.d.ts.map +1 -1
  134. package/dist/types/lib/page-meta.d.ts +16 -0
  135. package/dist/types/lib/page-meta.d.ts.map +1 -0
  136. package/dist/types/lib/search/build/index-generator.d.ts.map +1 -1
  137. package/dist/types/lib/search/build/types.d.ts +1 -0
  138. package/dist/types/lib/search/build/types.d.ts.map +1 -1
  139. package/dist/types/lib/search/runtime/search-engine.d.ts.map +1 -1
  140. package/dist/types/lib/search/runtime/types.d.ts +1 -0
  141. package/dist/types/lib/search/runtime/types.d.ts.map +1 -1
  142. package/dist/types/lib/versioning.d.ts +6 -0
  143. package/dist/types/lib/versioning.d.ts.map +1 -0
  144. package/dist/vennDiagram-LZ73GAT5-DlUUn7LI.js +1858 -0
  145. package/dist/xychartDiagram-JWTSCODW-oT2IR7c0.js +2041 -0
  146. package/package.json +4 -1
  147. /package/dist/{AIProvider-C1_b1iKH.js → AIProvider-niZNPSGi.js} +0 -0
  148. /package/dist/{context-menu-CB7erSoV.js → context-menu-BIQsQup7.js} +0 -0
  149. /package/dist/{dialog-DQ6nkP0y.js → dialog-D8otbqQL.js} +0 -0
  150. /package/dist/{use-toast-d9VPBjMn.js → use-toast-DK69oadB.js} +0 -0
@@ -0,0 +1,971 @@
1
+ import "./chunk-GEFDOKGD-OXBFFBXI.js";
2
+ import { g as e, h as t } from "./src-B8kKzJ6p.js";
3
+ import { $ as n, K as r, L as i, Q as a, b as o, d as s, tt as c } from "./chunk-7R4GIKGN-Qkaxl46X.js";
4
+ import { t as l } from "./chunk-HHEYEP7N-BQ3EJT5G.js";
5
+ import "./chunk-PU5JKC2W-an2DzREj.js";
6
+ import { t as u } from "./chunk-FMBD7UC4-DZXaweDk.js";
7
+ import "./chunk-YBOYWFTD-BT3l76Xm.js";
8
+ import "./chunk-PQ6SQG4A-6cI0SCcc.js";
9
+ import { a as d, c as f, i as p } from "./chunk-KYZI473N-COpLSX52.js";
10
+ import { n as m, t as h } from "./chunk-XPW4576I-DOBR2ORN.js";
11
+ //#region node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-K7BYSVSG.mjs
12
+ var g = (function() {
13
+ var e = /* @__PURE__ */ t(function(e, t, n, r) {
14
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
15
+ return n;
16
+ }, "o"), n = [1, 4], r = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
17
+ 6,
18
+ 7,
19
+ 8
20
+ ], u = [1, 26], d = [1, 24], f = [1, 25], p = [
21
+ 6,
22
+ 7,
23
+ 11
24
+ ], m = [1, 31], h = [
25
+ 6,
26
+ 7,
27
+ 11,
28
+ 24
29
+ ], g = [
30
+ 1,
31
+ 6,
32
+ 13,
33
+ 16,
34
+ 17,
35
+ 20,
36
+ 23
37
+ ], _ = [1, 35], v = [1, 36], y = [
38
+ 1,
39
+ 6,
40
+ 7,
41
+ 11,
42
+ 13,
43
+ 16,
44
+ 17,
45
+ 20,
46
+ 23
47
+ ], b = [1, 38], x = {
48
+ trace: /* @__PURE__ */ t(function() {}, "trace"),
49
+ yy: {},
50
+ symbols_: {
51
+ error: 2,
52
+ start: 3,
53
+ mindMap: 4,
54
+ spaceLines: 5,
55
+ SPACELINE: 6,
56
+ NL: 7,
57
+ KANBAN: 8,
58
+ document: 9,
59
+ stop: 10,
60
+ EOF: 11,
61
+ statement: 12,
62
+ SPACELIST: 13,
63
+ node: 14,
64
+ shapeData: 15,
65
+ ICON: 16,
66
+ CLASS: 17,
67
+ nodeWithId: 18,
68
+ nodeWithoutId: 19,
69
+ NODE_DSTART: 20,
70
+ NODE_DESCR: 21,
71
+ NODE_DEND: 22,
72
+ NODE_ID: 23,
73
+ SHAPE_DATA: 24,
74
+ $accept: 0,
75
+ $end: 1
76
+ },
77
+ terminals_: {
78
+ 2: "error",
79
+ 6: "SPACELINE",
80
+ 7: "NL",
81
+ 8: "KANBAN",
82
+ 11: "EOF",
83
+ 13: "SPACELIST",
84
+ 16: "ICON",
85
+ 17: "CLASS",
86
+ 20: "NODE_DSTART",
87
+ 21: "NODE_DESCR",
88
+ 22: "NODE_DEND",
89
+ 23: "NODE_ID",
90
+ 24: "SHAPE_DATA"
91
+ },
92
+ productions_: [
93
+ 0,
94
+ [3, 1],
95
+ [3, 2],
96
+ [5, 1],
97
+ [5, 2],
98
+ [5, 2],
99
+ [4, 2],
100
+ [4, 3],
101
+ [10, 1],
102
+ [10, 1],
103
+ [10, 1],
104
+ [10, 2],
105
+ [10, 2],
106
+ [9, 3],
107
+ [9, 2],
108
+ [12, 3],
109
+ [12, 2],
110
+ [12, 2],
111
+ [12, 2],
112
+ [12, 1],
113
+ [12, 2],
114
+ [12, 1],
115
+ [12, 1],
116
+ [12, 1],
117
+ [12, 1],
118
+ [14, 1],
119
+ [14, 1],
120
+ [19, 3],
121
+ [18, 1],
122
+ [18, 4],
123
+ [15, 2],
124
+ [15, 1]
125
+ ],
126
+ performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
127
+ var s = a.length - 1;
128
+ switch (i) {
129
+ case 6:
130
+ case 7: return r;
131
+ case 8:
132
+ r.getLogger().trace("Stop NL ");
133
+ break;
134
+ case 9:
135
+ r.getLogger().trace("Stop EOF ");
136
+ break;
137
+ case 11:
138
+ r.getLogger().trace("Stop NL2 ");
139
+ break;
140
+ case 12:
141
+ r.getLogger().trace("Stop EOF2 ");
142
+ break;
143
+ case 15:
144
+ r.getLogger().info("Node: ", a[s - 1].id), r.addNode(a[s - 2].length, a[s - 1].id, a[s - 1].descr, a[s - 1].type, a[s]);
145
+ break;
146
+ case 16:
147
+ r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
148
+ break;
149
+ case 17:
150
+ r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
151
+ break;
152
+ case 18:
153
+ case 23:
154
+ r.decorateNode({ class: a[s] });
155
+ break;
156
+ case 19:
157
+ r.getLogger().trace("SPACELIST");
158
+ break;
159
+ case 20:
160
+ r.getLogger().trace("Node: ", a[s - 1].id), r.addNode(0, a[s - 1].id, a[s - 1].descr, a[s - 1].type, a[s]);
161
+ break;
162
+ case 21:
163
+ r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
164
+ break;
165
+ case 22:
166
+ r.decorateNode({ icon: a[s] });
167
+ break;
168
+ case 27:
169
+ r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
170
+ id: a[s - 1],
171
+ descr: a[s - 1],
172
+ type: r.getType(a[s - 2], a[s])
173
+ };
174
+ break;
175
+ case 28:
176
+ this.$ = {
177
+ id: a[s],
178
+ descr: a[s],
179
+ type: 0
180
+ };
181
+ break;
182
+ case 29:
183
+ r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
184
+ id: a[s - 3],
185
+ descr: a[s - 1],
186
+ type: r.getType(a[s - 2], a[s])
187
+ };
188
+ break;
189
+ case 30:
190
+ this.$ = a[s - 1] + a[s];
191
+ break;
192
+ case 31:
193
+ this.$ = a[s];
194
+ break;
195
+ }
196
+ }, "anonymous"),
197
+ table: [
198
+ {
199
+ 3: 1,
200
+ 4: 2,
201
+ 5: 3,
202
+ 6: [1, 5],
203
+ 8: n
204
+ },
205
+ { 1: [3] },
206
+ { 1: [2, 1] },
207
+ {
208
+ 4: 6,
209
+ 6: [1, 7],
210
+ 7: [1, 8],
211
+ 8: n
212
+ },
213
+ {
214
+ 6: r,
215
+ 7: [1, 10],
216
+ 9: 9,
217
+ 12: 11,
218
+ 13: i,
219
+ 14: 14,
220
+ 16: a,
221
+ 17: o,
222
+ 18: 17,
223
+ 19: 18,
224
+ 20: s,
225
+ 23: c
226
+ },
227
+ e(l, [2, 3]),
228
+ { 1: [2, 2] },
229
+ e(l, [2, 4]),
230
+ e(l, [2, 5]),
231
+ {
232
+ 1: [2, 6],
233
+ 6: r,
234
+ 12: 21,
235
+ 13: i,
236
+ 14: 14,
237
+ 16: a,
238
+ 17: o,
239
+ 18: 17,
240
+ 19: 18,
241
+ 20: s,
242
+ 23: c
243
+ },
244
+ {
245
+ 6: r,
246
+ 9: 22,
247
+ 12: 11,
248
+ 13: i,
249
+ 14: 14,
250
+ 16: a,
251
+ 17: o,
252
+ 18: 17,
253
+ 19: 18,
254
+ 20: s,
255
+ 23: c
256
+ },
257
+ {
258
+ 6: u,
259
+ 7: d,
260
+ 10: 23,
261
+ 11: f
262
+ },
263
+ e(p, [2, 24], {
264
+ 18: 17,
265
+ 19: 18,
266
+ 14: 27,
267
+ 16: [1, 28],
268
+ 17: [1, 29],
269
+ 20: s,
270
+ 23: c
271
+ }),
272
+ e(p, [2, 19]),
273
+ e(p, [2, 21], {
274
+ 15: 30,
275
+ 24: m
276
+ }),
277
+ e(p, [2, 22]),
278
+ e(p, [2, 23]),
279
+ e(h, [2, 25]),
280
+ e(h, [2, 26]),
281
+ e(h, [2, 28], { 20: [1, 32] }),
282
+ { 21: [1, 33] },
283
+ {
284
+ 6: u,
285
+ 7: d,
286
+ 10: 34,
287
+ 11: f
288
+ },
289
+ {
290
+ 1: [2, 7],
291
+ 6: r,
292
+ 12: 21,
293
+ 13: i,
294
+ 14: 14,
295
+ 16: a,
296
+ 17: o,
297
+ 18: 17,
298
+ 19: 18,
299
+ 20: s,
300
+ 23: c
301
+ },
302
+ e(g, [2, 14], {
303
+ 7: _,
304
+ 11: v
305
+ }),
306
+ e(y, [2, 8]),
307
+ e(y, [2, 9]),
308
+ e(y, [2, 10]),
309
+ e(p, [2, 16], {
310
+ 15: 37,
311
+ 24: m
312
+ }),
313
+ e(p, [2, 17]),
314
+ e(p, [2, 18]),
315
+ e(p, [2, 20], { 24: b }),
316
+ e(h, [2, 31]),
317
+ { 21: [1, 39] },
318
+ { 22: [1, 40] },
319
+ e(g, [2, 13], {
320
+ 7: _,
321
+ 11: v
322
+ }),
323
+ e(y, [2, 11]),
324
+ e(y, [2, 12]),
325
+ e(p, [2, 15], { 24: b }),
326
+ e(h, [2, 30]),
327
+ { 22: [1, 41] },
328
+ e(h, [2, 27]),
329
+ e(h, [2, 29])
330
+ ],
331
+ defaultActions: {
332
+ 2: [2, 1],
333
+ 6: [2, 2]
334
+ },
335
+ parseError: /* @__PURE__ */ t(function(e, t) {
336
+ if (t.recoverable) this.trace(e);
337
+ else {
338
+ var n = Error(e);
339
+ throw n.hash = t, n;
340
+ }
341
+ }, "parseError"),
342
+ parse: /* @__PURE__ */ t(function(e) {
343
+ var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
344
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
345
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
346
+ var v = h.yylloc;
347
+ o.push(v);
348
+ var y = h.options && h.options.ranges;
349
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
350
+ function b(e) {
351
+ r.length -= 2 * e, a.length -= e, o.length -= e;
352
+ }
353
+ t(b, "popStack");
354
+ function x() {
355
+ var e = i.pop() || h.lex() || p;
356
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
357
+ }
358
+ t(x, "lex");
359
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
360
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
361
+ var M = "";
362
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
363
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
364
+ text: h.match,
365
+ token: this.terminals_[S] || S,
366
+ line: h.yylineno,
367
+ loc: v,
368
+ expected: j
369
+ });
370
+ }
371
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
372
+ switch (T[0]) {
373
+ case 1:
374
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
375
+ break;
376
+ case 2:
377
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
378
+ first_line: o[o.length - (k || 1)].first_line,
379
+ last_line: o[o.length - 1].last_line,
380
+ first_column: o[o.length - (k || 1)].first_column,
381
+ last_column: o[o.length - 1].last_column
382
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
383
+ c,
384
+ u,
385
+ l,
386
+ g.yy,
387
+ T[1],
388
+ a,
389
+ o
390
+ ].concat(m)), E !== void 0) return E;
391
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
392
+ break;
393
+ case 3: return !0;
394
+ }
395
+ }
396
+ return !0;
397
+ }, "parse")
398
+ };
399
+ x.lexer = /* @__PURE__ */ (function() {
400
+ return {
401
+ EOF: 1,
402
+ parseError: /* @__PURE__ */ t(function(e, t) {
403
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
404
+ else throw Error(e);
405
+ }, "parseError"),
406
+ setInput: /* @__PURE__ */ t(function(e, t) {
407
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
408
+ first_line: 1,
409
+ first_column: 0,
410
+ last_line: 1,
411
+ last_column: 0
412
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
413
+ }, "setInput"),
414
+ input: /* @__PURE__ */ t(function() {
415
+ var e = this._input[0];
416
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
417
+ }, "input"),
418
+ unput: /* @__PURE__ */ t(function(e) {
419
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
420
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
421
+ var r = this.match.split(/(?:\r\n?|\n)/g);
422
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
423
+ var i = this.yylloc.range;
424
+ return this.yylloc = {
425
+ first_line: this.yylloc.first_line,
426
+ last_line: this.yylineno + 1,
427
+ first_column: this.yylloc.first_column,
428
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
429
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
430
+ }, "unput"),
431
+ more: /* @__PURE__ */ t(function() {
432
+ return this._more = !0, this;
433
+ }, "more"),
434
+ reject: /* @__PURE__ */ t(function() {
435
+ if (this.options.backtrack_lexer) this._backtrack = !0;
436
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
437
+ text: "",
438
+ token: null,
439
+ line: this.yylineno
440
+ });
441
+ return this;
442
+ }, "reject"),
443
+ less: /* @__PURE__ */ t(function(e) {
444
+ this.unput(this.match.slice(e));
445
+ }, "less"),
446
+ pastInput: /* @__PURE__ */ t(function() {
447
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
448
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
449
+ }, "pastInput"),
450
+ upcomingInput: /* @__PURE__ */ t(function() {
451
+ var e = this.match;
452
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
453
+ }, "upcomingInput"),
454
+ showPosition: /* @__PURE__ */ t(function() {
455
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
456
+ return e + this.upcomingInput() + "\n" + t + "^";
457
+ }, "showPosition"),
458
+ test_match: /* @__PURE__ */ t(function(e, t) {
459
+ var n, r, i;
460
+ if (this.options.backtrack_lexer && (i = {
461
+ yylineno: this.yylineno,
462
+ yylloc: {
463
+ first_line: this.yylloc.first_line,
464
+ last_line: this.last_line,
465
+ first_column: this.yylloc.first_column,
466
+ last_column: this.yylloc.last_column
467
+ },
468
+ yytext: this.yytext,
469
+ match: this.match,
470
+ matches: this.matches,
471
+ matched: this.matched,
472
+ yyleng: this.yyleng,
473
+ offset: this.offset,
474
+ _more: this._more,
475
+ _input: this._input,
476
+ yy: this.yy,
477
+ conditionStack: this.conditionStack.slice(0),
478
+ done: this.done
479
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
480
+ first_line: this.yylloc.last_line,
481
+ last_line: this.yylineno + 1,
482
+ first_column: this.yylloc.last_column,
483
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
484
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
485
+ if (this._backtrack) {
486
+ for (var a in i) this[a] = i[a];
487
+ return !1;
488
+ }
489
+ return !1;
490
+ }, "test_match"),
491
+ next: /* @__PURE__ */ t(function() {
492
+ if (this.done) return this.EOF;
493
+ this._input || (this.done = !0);
494
+ var e, t, n, r;
495
+ this._more || (this.yytext = "", this.match = "");
496
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
497
+ if (t = n, r = a, this.options.backtrack_lexer) {
498
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
499
+ if (this._backtrack) {
500
+ t = !1;
501
+ continue;
502
+ } else return !1;
503
+ } else if (!this.options.flex) break;
504
+ }
505
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
506
+ text: "",
507
+ token: null,
508
+ line: this.yylineno
509
+ });
510
+ }, "next"),
511
+ lex: /* @__PURE__ */ t(function() {
512
+ return this.next() || this.lex();
513
+ }, "lex"),
514
+ begin: /* @__PURE__ */ t(function(e) {
515
+ this.conditionStack.push(e);
516
+ }, "begin"),
517
+ popState: /* @__PURE__ */ t(function() {
518
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
519
+ }, "popState"),
520
+ _currentRules: /* @__PURE__ */ t(function() {
521
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
522
+ }, "_currentRules"),
523
+ topState: /* @__PURE__ */ t(function(e) {
524
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
525
+ }, "topState"),
526
+ pushState: /* @__PURE__ */ t(function(e) {
527
+ this.begin(e);
528
+ }, "pushState"),
529
+ stateStackSize: /* @__PURE__ */ t(function() {
530
+ return this.conditionStack.length;
531
+ }, "stateStackSize"),
532
+ options: { "case-insensitive": !0 },
533
+ performAction: /* @__PURE__ */ t(function(e, t, n, r) {
534
+ switch (n) {
535
+ case 0: return this.pushState("shapeData"), t.yytext = "", 24;
536
+ case 1: return this.pushState("shapeDataStr"), 24;
537
+ case 2: return this.popState(), 24;
538
+ case 3: return t.yytext = t.yytext.replace(/\n\s*/g, "<br/>"), 24;
539
+ case 4: return 24;
540
+ case 5:
541
+ this.popState();
542
+ break;
543
+ case 6: return e.getLogger().trace("Found comment", t.yytext), 6;
544
+ case 7: return 8;
545
+ case 8:
546
+ this.begin("CLASS");
547
+ break;
548
+ case 9: return this.popState(), 17;
549
+ case 10:
550
+ this.popState();
551
+ break;
552
+ case 11:
553
+ e.getLogger().trace("Begin icon"), this.begin("ICON");
554
+ break;
555
+ case 12: return e.getLogger().trace("SPACELINE"), 6;
556
+ case 13: return 7;
557
+ case 14: return 16;
558
+ case 15:
559
+ e.getLogger().trace("end icon"), this.popState();
560
+ break;
561
+ case 16: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
562
+ case 17: return e.getLogger().trace("Cloud"), this.begin("NODE"), 20;
563
+ case 18: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
564
+ case 19: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
565
+ case 20: return this.begin("NODE"), 20;
566
+ case 21: return this.begin("NODE"), 20;
567
+ case 22: return this.begin("NODE"), 20;
568
+ case 23: return this.begin("NODE"), 20;
569
+ case 24: return 13;
570
+ case 25: return 23;
571
+ case 26: return 11;
572
+ case 27:
573
+ this.begin("NSTR2");
574
+ break;
575
+ case 28: return "NODE_DESCR";
576
+ case 29:
577
+ this.popState();
578
+ break;
579
+ case 30:
580
+ e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
581
+ break;
582
+ case 31: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
583
+ case 32:
584
+ this.popState();
585
+ break;
586
+ case 33: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
587
+ case 34: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
588
+ case 35: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
589
+ case 36: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
590
+ case 37: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
591
+ case 38: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
592
+ case 39: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
593
+ case 40: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
594
+ case 41: return e.getLogger().trace("Long description:", t.yytext), 21;
595
+ case 42: return e.getLogger().trace("Long description:", t.yytext), 21;
596
+ }
597
+ }, "anonymous"),
598
+ rules: [
599
+ /^(?:@\{)/i,
600
+ /^(?:["])/i,
601
+ /^(?:["])/i,
602
+ /^(?:[^\"]+)/i,
603
+ /^(?:[^}^"]+)/i,
604
+ /^(?:\})/i,
605
+ /^(?:\s*%%.*)/i,
606
+ /^(?:kanban\b)/i,
607
+ /^(?::::)/i,
608
+ /^(?:.+)/i,
609
+ /^(?:\n)/i,
610
+ /^(?:::icon\()/i,
611
+ /^(?:[\s]+[\n])/i,
612
+ /^(?:[\n]+)/i,
613
+ /^(?:[^\)]+)/i,
614
+ /^(?:\))/i,
615
+ /^(?:-\))/i,
616
+ /^(?:\(-)/i,
617
+ /^(?:\)\))/i,
618
+ /^(?:\))/i,
619
+ /^(?:\(\()/i,
620
+ /^(?:\{\{)/i,
621
+ /^(?:\()/i,
622
+ /^(?:\[)/i,
623
+ /^(?:[\s]+)/i,
624
+ /^(?:[^\(\[\n\)\{\}@]+)/i,
625
+ /^(?:$)/i,
626
+ /^(?:["][`])/i,
627
+ /^(?:[^`"]+)/i,
628
+ /^(?:[`]["])/i,
629
+ /^(?:["])/i,
630
+ /^(?:[^"]+)/i,
631
+ /^(?:["])/i,
632
+ /^(?:[\)]\))/i,
633
+ /^(?:[\)])/i,
634
+ /^(?:[\]])/i,
635
+ /^(?:\}\})/i,
636
+ /^(?:\(-)/i,
637
+ /^(?:-\))/i,
638
+ /^(?:\(\()/i,
639
+ /^(?:\()/i,
640
+ /^(?:[^\)\]\(\}]+)/i,
641
+ /^(?:.+(?!\(\())/i
642
+ ],
643
+ conditions: {
644
+ shapeDataEndBracket: {
645
+ rules: [],
646
+ inclusive: !1
647
+ },
648
+ shapeDataStr: {
649
+ rules: [2, 3],
650
+ inclusive: !1
651
+ },
652
+ shapeData: {
653
+ rules: [
654
+ 1,
655
+ 4,
656
+ 5
657
+ ],
658
+ inclusive: !1
659
+ },
660
+ CLASS: {
661
+ rules: [9, 10],
662
+ inclusive: !1
663
+ },
664
+ ICON: {
665
+ rules: [14, 15],
666
+ inclusive: !1
667
+ },
668
+ NSTR2: {
669
+ rules: [28, 29],
670
+ inclusive: !1
671
+ },
672
+ NSTR: {
673
+ rules: [31, 32],
674
+ inclusive: !1
675
+ },
676
+ NODE: {
677
+ rules: [
678
+ 27,
679
+ 30,
680
+ 33,
681
+ 34,
682
+ 35,
683
+ 36,
684
+ 37,
685
+ 38,
686
+ 39,
687
+ 40,
688
+ 41,
689
+ 42
690
+ ],
691
+ inclusive: !1
692
+ },
693
+ INITIAL: {
694
+ rules: [
695
+ 0,
696
+ 6,
697
+ 7,
698
+ 8,
699
+ 11,
700
+ 12,
701
+ 13,
702
+ 16,
703
+ 17,
704
+ 18,
705
+ 19,
706
+ 20,
707
+ 21,
708
+ 22,
709
+ 23,
710
+ 24,
711
+ 25,
712
+ 26
713
+ ],
714
+ inclusive: !0
715
+ }
716
+ }
717
+ };
718
+ })();
719
+ function S() {
720
+ this.yy = {};
721
+ }
722
+ return t(S, "Parser"), S.prototype = x, x.Parser = S, new S();
723
+ })();
724
+ g.parser = g;
725
+ var _ = g, v = [], y = [], b = 0, x = {}, S = /* @__PURE__ */ t(() => {
726
+ v = [], y = [], b = 0, x = {};
727
+ }, "clear"), C = /* @__PURE__ */ t((e) => {
728
+ if (v.length === 0) return null;
729
+ let t = v[0].level, n = null;
730
+ for (let e = v.length - 1; e >= 0; e--) if (v[e].level === t && !n && (n = v[e]), v[e].level < t) throw Error("Items without section detected, found section (\"" + v[e].label + "\")");
731
+ return e === n?.level ? null : n;
732
+ }, "getSection"), w = /* @__PURE__ */ t(function() {
733
+ return y;
734
+ }, "getSections"), T = /* @__PURE__ */ t(function() {
735
+ let e = [], t = [], n = w(), r = o();
736
+ for (let e of n) {
737
+ let n = {
738
+ id: e.id,
739
+ label: i(e.label ?? "", r),
740
+ labelType: "markdown",
741
+ isGroup: !0,
742
+ ticket: e.ticket,
743
+ shape: "kanbanSection",
744
+ level: e.level,
745
+ look: r.look
746
+ };
747
+ t.push(n);
748
+ let a = v.filter((t) => t.parentId === e.id);
749
+ for (let n of a) {
750
+ let a = {
751
+ id: n.id,
752
+ parentId: e.id,
753
+ label: i(n.label ?? "", r),
754
+ labelType: "markdown",
755
+ isGroup: !1,
756
+ ticket: n?.ticket,
757
+ priority: n?.priority,
758
+ assigned: n?.assigned,
759
+ icon: n?.icon,
760
+ shape: "kanbanItem",
761
+ level: n.level,
762
+ rx: 5,
763
+ ry: 5,
764
+ cssStyles: ["text-align: left"]
765
+ };
766
+ t.push(a);
767
+ }
768
+ }
769
+ return {
770
+ nodes: t,
771
+ edges: e,
772
+ other: {},
773
+ config: o()
774
+ };
775
+ }, "getData"), E = /* @__PURE__ */ t((e, t, n, r, a) => {
776
+ let c = o(), l = c.mindmap?.padding ?? s.mindmap.padding;
777
+ switch (r) {
778
+ case D.ROUNDED_RECT:
779
+ case D.RECT:
780
+ case D.HEXAGON: l *= 2;
781
+ }
782
+ let u = {
783
+ id: i(t, c) || "kbn" + b++,
784
+ level: e,
785
+ label: i(n, c),
786
+ width: c.mindmap?.maxNodeWidth ?? s.mindmap.maxNodeWidth,
787
+ padding: l,
788
+ isGroup: !1
789
+ };
790
+ if (a !== void 0) {
791
+ let e;
792
+ e = a.includes("\n") ? a + "\n" : "{\n" + a + "\n}";
793
+ let t = m(e, { schema: h });
794
+ if (t.shape && (t.shape !== t.shape.toLowerCase() || t.shape.includes("_"))) throw Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);
795
+ t?.shape && t.shape === "kanbanItem" && (u.shape = t?.shape), t?.label && (u.label = t?.label), t?.icon && (u.icon = t?.icon.toString()), t?.assigned && (u.assigned = t?.assigned.toString()), t?.ticket && (u.ticket = t?.ticket.toString()), t?.priority && (u.priority = t?.priority);
796
+ }
797
+ let d = C(e);
798
+ d ? u.parentId = d.id || "kbn" + b++ : y.push(u), v.push(u);
799
+ }, "addNode"), D = {
800
+ DEFAULT: 0,
801
+ NO_BORDER: 0,
802
+ ROUNDED_RECT: 1,
803
+ RECT: 2,
804
+ CIRCLE: 3,
805
+ CLOUD: 4,
806
+ BANG: 5,
807
+ HEXAGON: 6
808
+ }, O = {
809
+ clear: S,
810
+ addNode: E,
811
+ getSections: w,
812
+ getData: T,
813
+ nodeType: D,
814
+ getType: /* @__PURE__ */ t((t, n) => {
815
+ switch (e.debug("In get type", t, n), t) {
816
+ case "[": return D.RECT;
817
+ case "(": return n === ")" ? D.ROUNDED_RECT : D.CLOUD;
818
+ case "((": return D.CIRCLE;
819
+ case ")": return D.CLOUD;
820
+ case "))": return D.BANG;
821
+ case "{{": return D.HEXAGON;
822
+ default: return D.DEFAULT;
823
+ }
824
+ }, "getType"),
825
+ setElementForId: /* @__PURE__ */ t((e, t) => {
826
+ x[e] = t;
827
+ }, "setElementForId"),
828
+ decorateNode: /* @__PURE__ */ t((e) => {
829
+ if (!e) return;
830
+ let t = o(), n = v[v.length - 1];
831
+ e.icon && (n.icon = i(e.icon, t)), e.class && (n.cssClasses = i(e.class, t));
832
+ }, "decorateNode"),
833
+ type2Str: /* @__PURE__ */ t((e) => {
834
+ switch (e) {
835
+ case D.DEFAULT: return "no-border";
836
+ case D.RECT: return "rect";
837
+ case D.ROUNDED_RECT: return "rounded-rect";
838
+ case D.CIRCLE: return "circle";
839
+ case D.CLOUD: return "cloud";
840
+ case D.BANG: return "bang";
841
+ case D.HEXAGON: return "hexgon";
842
+ default: return "no-border";
843
+ }
844
+ }, "type2Str"),
845
+ getLogger: /* @__PURE__ */ t(() => e, "getLogger"),
846
+ getElementById: /* @__PURE__ */ t((e) => x[e], "getElementById")
847
+ }, k = { draw: /* @__PURE__ */ t(async (t, n, i, a) => {
848
+ e.debug("Rendering kanban diagram\n" + t);
849
+ let c = a.db.getData(), u = o();
850
+ u.htmlLabels = !1;
851
+ let m = l(n), h = m.append("g");
852
+ h.attr("class", "sections");
853
+ let g = m.append("g");
854
+ g.attr("class", "items");
855
+ let _ = c.nodes.filter((e) => e.isGroup), v = 0, y = [], b = 25;
856
+ for (let e of _) {
857
+ let t = u?.kanban?.sectionWidth || 200;
858
+ v += 1, e.x = t * v + (v - 1) * 10 / 2, e.width = t, e.y = 0, e.height = t * 3, e.rx = 5, e.ry = 5, e.cssClasses = e.cssClasses + " section-" + v;
859
+ let n = await p(h, e);
860
+ b = Math.max(b, n?.labelBBox?.height), y.push(n);
861
+ }
862
+ let x = 0;
863
+ for (let e of _) {
864
+ let t = y[x];
865
+ x += 1;
866
+ let n = u?.kanban?.sectionWidth || 200, r = -n * 3 / 2 + b, i = r, a = c.nodes.filter((t) => t.parentId === e.id);
867
+ for (let t of a) {
868
+ if (t.isGroup) throw Error("Groups within groups are not allowed in Kanban diagrams");
869
+ t.x = e.x, t.width = n - 1.5 * 10;
870
+ let r = (await d(g, t, { config: u })).node().getBBox();
871
+ t.y = i + r.height / 2, await f(t), i = t.y + r.height / 2 + 10 / 2;
872
+ }
873
+ let o = t.cluster.select("rect"), s = Math.max(i - r + 30, 50) + (b - 25);
874
+ o.attr("height", s);
875
+ }
876
+ r(void 0, m, u.mindmap?.padding ?? s.kanban.padding, u.mindmap?.useMaxWidth ?? s.kanban.useMaxWidth);
877
+ }, "draw") }, A = /* @__PURE__ */ t((e) => {
878
+ let r = "";
879
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], c(e["lineColor" + t]) ? e["lineColor" + t] = n(e["lineColor" + t], 20) : e["lineColor" + t] = a(e["lineColor" + t], 20);
880
+ let i = /* @__PURE__ */ t((t, r) => e.darkMode ? a(t, r) : n(t, r), "adjuster");
881
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) {
882
+ let n = "" + (17 - 3 * t);
883
+ r += `
884
+ .section-${t - 1} rect, .section-${t - 1} path, .section-${t - 1} circle, .section-${t - 1} polygon, .section-${t - 1} path {
885
+ fill: ${i(e["cScale" + t], 10)};
886
+ stroke: ${i(e["cScale" + t], 10)};
887
+
888
+ }
889
+ .section-${t - 1} text {
890
+ fill: ${e["cScaleLabel" + t]};
891
+ }
892
+ .node-icon-${t - 1} {
893
+ font-size: 40px;
894
+ color: ${e["cScaleLabel" + t]};
895
+ }
896
+ .section-edge-${t - 1}{
897
+ stroke: ${e["cScale" + t]};
898
+ }
899
+ .edge-depth-${t - 1}{
900
+ stroke-width: ${n};
901
+ }
902
+ .section-${t - 1} line {
903
+ stroke: ${e["cScaleInv" + t]} ;
904
+ stroke-width: 3;
905
+ }
906
+
907
+ .disabled, .disabled circle, .disabled text {
908
+ fill: lightgray;
909
+ }
910
+ .disabled text {
911
+ fill: #efefef;
912
+ }
913
+
914
+ .node rect,
915
+ .node circle,
916
+ .node ellipse,
917
+ .node polygon,
918
+ .node path {
919
+ fill: ${e.background};
920
+ stroke: ${e.nodeBorder};
921
+ stroke-width: 1px;
922
+ }
923
+
924
+ .kanban-ticket-link {
925
+ fill: ${e.background};
926
+ stroke: ${e.nodeBorder};
927
+ text-decoration: underline;
928
+ }
929
+ `;
930
+ }
931
+ return r;
932
+ }, "genSections"), j = {
933
+ db: O,
934
+ renderer: k,
935
+ parser: _,
936
+ styles: /* @__PURE__ */ t((e) => `
937
+ .edge {
938
+ stroke-width: 3;
939
+ }
940
+ ${A(e)}
941
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
942
+ fill: ${e.git0};
943
+ }
944
+ .section-root text {
945
+ fill: ${e.gitBranchLabel0};
946
+ }
947
+ .icon-container {
948
+ height:100%;
949
+ display: flex;
950
+ justify-content: center;
951
+ align-items: center;
952
+ }
953
+ .edge {
954
+ fill: none;
955
+ }
956
+ .cluster-label, .label {
957
+ color: ${e.textColor};
958
+ fill: ${e.textColor};
959
+ }
960
+ .kanban-label {
961
+ dy: 1em;
962
+ alignment-baseline: middle;
963
+ text-anchor: middle;
964
+ dominant-baseline: middle;
965
+ text-align: center;
966
+ }
967
+ ${u()}
968
+ `, "getStyles")
969
+ };
970
+ //#endregion
971
+ export { j as diagram };