@kong-ui-public/documentation 0.8.27-pr.2132.c7fba69a4.0 → 0.8.27

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 (154) hide show
  1. package/dist/_basePickBy-DF_KwdVi-HVXnmpaQ.js +151 -0
  2. package/dist/_baseUniq-DefQzZRT-CTix3bMY.js +614 -0
  3. package/dist/arc-B4xWw-B6-BGnuysbe.js +83 -0
  4. package/dist/architecture-I3QFYML2-7TNhn42L-52ENK4nk.js +5 -0
  5. package/dist/architectureDiagram-UYN6MBPD-Bg70hFZ--BirbHF75.js +4592 -0
  6. package/dist/astro-Uf8_VxKJ-CZxoSljj.js +16 -0
  7. package/dist/blockDiagram-ZHA2E4KO-Ylh05M-x-AVJfewxx.js +2247 -0
  8. package/dist/c-DASdrs7p-DASdrs7p.js +6 -0
  9. package/dist/c4Diagram-6F5ED5ID-BA0B_CmS-WdUKqC7Z.js +1581 -0
  10. package/dist/channel-B5uWur4x-BHu9WG2d.js +5 -0
  11. package/dist/chunk-5HRBRIJM-B7MbirM8-YDLjZbXN.js +24 -0
  12. package/dist/chunk-7U56Z5CX-CfNu7Hr2-BQzILIp1.js +1213 -0
  13. package/dist/chunk-ASOPGD6M-CwvgmaRl-BZAjlsEd.js +64 -0
  14. package/dist/chunk-KFBOBJHC-BB675Bua-GRhe6aGs.js +15 -0
  15. package/dist/chunk-T2TOU4HS-BgV1wucS-5Sa82KgW.js +1301 -0
  16. package/dist/chunk-TMUBEWPD-C22TGOO0-Bl2u--DY.js +9 -0
  17. package/dist/classDiagram-LNE6IOMH-D5SiSVyM-BbV9LB8E.js +14 -0
  18. package/dist/classDiagram-v2-MQ7JQ4JX-D5SiSVyM-BbV9LB8E.js +14 -0
  19. package/dist/clone-CmU1hwye-Lu5-ol5h.js +8 -0
  20. package/dist/csharp-CYWRhZ2R-CYWRhZ2R.js +6 -0
  21. package/dist/css-D1aVdRIU-D1aVdRIU.js +6 -0
  22. package/dist/csv-DvCncUGQ-Tno401i9.js +6 -0
  23. package/dist/cytoscape.esm-DAyNQ0qu-B7WxGuVh.js +16110 -0
  24. package/dist/dagre-4EVJKHTY-DMTVcQfE-C1Tr0EYY.js +447 -0
  25. package/dist/diagram-QW4FP2JN-jc61JuWr-DOMFELfS.js +126 -0
  26. package/dist/diff-XmNrvgM1-XmNrvgM1.js +6 -0
  27. package/dist/docker-DWH2onkn-DWH2onkn.js +6 -0
  28. package/dist/documentation.es.js +7 -0
  29. package/dist/documentation.umd.js +2404 -0
  30. package/dist/erDiagram-6RL3IURR-1byskxwI-B-wzYh8R.js +937 -0
  31. package/dist/flowDiagram-7ASYPVHJ-B3phEI8o-CVXSVDmh.js +1484 -0
  32. package/dist/ganttDiagram-NTVNEXSI-vYnO_T5c-Ccxkb7aQ.js +2491 -0
  33. package/dist/git-commit-BspYIY3P-VkbIfR3L.js +8 -0
  34. package/dist/git-rebase--zLBTjUa-DEW2tfKx.js +8 -0
  35. package/dist/gitGraph-YCYPL57B-DPx67Iu5-BPrLSH0g.js +5 -0
  36. package/dist/gitGraphDiagram-NRZ2UAAF-BHxB7Gjs-CeRxz6oW.js +712 -0
  37. package/dist/go-BErP6iv1-BErP6iv1.js +6 -0
  38. package/dist/graph-_eClejaU-DigE4Bf5.js +247 -0
  39. package/dist/graphql-DWpQF4JI-C-3VJmtp.js +14 -0
  40. package/dist/haml-CMN0hQaL-BV5BsZTy.js +10 -0
  41. package/dist/handlebars-Cc-7fXX5-B9YgDKzT.js +14 -0
  42. package/dist/haskell-CtlGos0K-CtlGos0K.js +6 -0
  43. package/dist/html-B0P_v3yU-BojM9zZg.js +10 -0
  44. package/dist/html-derivative-BJFFAxYV-iD6NAoKm.js +8 -0
  45. package/dist/http-Dcjm_K1m-1LFSbOE1.js +14 -0
  46. package/dist/index-B_RqyDIa.js +37033 -0
  47. package/dist/info-46DW6VJ7-DeIQKKyY-CVPexu5P.js +5 -0
  48. package/dist/infoDiagram-A4XQUW5V-Cx0WE_JZ-B_t8JIcX.js +22 -0
  49. package/dist/ini-BUcvsX-U-BUcvsX-U.js +6 -0
  50. package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
  51. package/dist/java-B7odJ7Ap-B7odJ7Ap.js +6 -0
  52. package/dist/javascript-fa8UlHZE-fa8UlHZE.js +6 -0
  53. package/dist/journeyDiagram-G5WM74LC-CUWL5R5G-DWlpHybW.js +810 -0
  54. package/dist/json-71t8ZF9g-71t8ZF9g.js +6 -0
  55. package/dist/json5-Z7F6rA6a-Z7F6rA6a.js +6 -0
  56. package/dist/jsonc-Dphhs4m2-Dphhs4m2.js +6 -0
  57. package/dist/jsonl-D9jj92Gg-D9jj92Gg.js +6 -0
  58. package/dist/jsx-Bkesy5tT-Bkesy5tT.js +6 -0
  59. package/dist/kanban-definition-QRCXZQQD-r5CdvT2h-BUkOeUnm.js +718 -0
  60. package/dist/katex-Qk2jHgyB-CF_fuFJb.js +11637 -0
  61. package/dist/kotlin-DCgZY7Ii-DCgZY7Ii.js +6 -0
  62. package/dist/latex-CZXk8SiZ-DbjDPp_f.js +11 -0
  63. package/dist/layout-DfjmtgNY-Bw6LFOXt.js +1321 -0
  64. package/dist/less-DQA4v-Nm-DQA4v-Nm.js +6 -0
  65. package/dist/linear-BGmbGdcc-C--Nxp9Q.js +423 -0
  66. package/dist/liquid-CvufO3kO-D90bBAdm.js +14 -0
  67. package/dist/lua-BVfhNLDr-DAa90qLN.js +8 -0
  68. package/dist/make-BjuHP00g-BjuHP00g.js +6 -0
  69. package/dist/markdown-B6guhLWd-B6guhLWd.js +6 -0
  70. package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +4 -0
  71. package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +4 -0
  72. package/dist/mdc-Bq810vct-Dr8CpN8f.js +12 -0
  73. package/dist/mdx-DIoECIFU-DIoECIFU.js +6 -0
  74. package/dist/mermaid-BZ7WHNIe-BZ7WHNIe.js +6 -0
  75. package/dist/mermaid-parser.core-DxgZuQQq-uP-grJig.js +12400 -0
  76. package/dist/mindmap-definition-GWI6TPTV-DX5GL05M-B8Eu6UCe.js +3219 -0
  77. package/dist/nginx-Can2eAjw-DKMoypYC.js +8 -0
  78. package/dist/objective-c-BGg9R27G-BGg9R27G.js +6 -0
  79. package/dist/ordinal-DfAQgscy-BEJTu10r.js +61 -0
  80. package/dist/packet-W2GHVCYJ-CI_-E3C--D1lo2o0i.js +5 -0
  81. package/dist/pascal-l2bqd7Dz-l2bqd7Dz.js +6 -0
  82. package/dist/perl-DaMQyPwp-Cxx4wmV7.js +16 -0
  83. package/dist/php-BL3EfPBi-BZu5YwDX.js +18 -0
  84. package/dist/pie-BEWT4RHE-B52QOymI-BoBX6ZnD.js +5 -0
  85. package/dist/pieDiagram-YF2LJOPJ-IHpbN7M9-BBPOh3m7.js +161 -0
  86. package/dist/plsql-oVq_K_wH-oVq_K_wH.js +6 -0
  87. package/dist/postcss-BZ3MNRIJ-BZ3MNRIJ.js +6 -0
  88. package/dist/powershell-Diwyv8Eh-Diwyv8Eh.js +6 -0
  89. package/dist/proto-o9HLmF90-o9HLmF90.js +6 -0
  90. package/dist/pug-HKe4Luo3-BYb0El_4.js +12 -0
  91. package/dist/python-xYxLFJY--xYxLFJY-.js +6 -0
  92. package/dist/quadrantDiagram-OS5C2QUG-DyfTAjs0-CvYOplDG.js +1024 -0
  93. package/dist/r-F-9I-ITZ-F-9I-ITZ.js +6 -0
  94. package/dist/reg-CMUdAgIP-CMUdAgIP.js +6 -0
  95. package/dist/requirementDiagram-MIRIMTAZ-DpFia6HM-BNS6fGqi.js +768 -0
  96. package/dist/rst-B8JEEtLI-Dyxh6LOj.js +22 -0
  97. package/dist/ruby-FDlfLkNa-nf7VLvCK.js +50 -0
  98. package/dist/rust-Pc7DCsZD-Pc7DCsZD.js +6 -0
  99. package/dist/sankeyDiagram-Y46BX6SQ-a6p3ZaX0-Cwasp0IA.js +805 -0
  100. package/dist/sass-iCyS6eP9-iCyS6eP9.js +6 -0
  101. package/dist/scss-DhHc4lxB-D1lMETuy.js +8 -0
  102. package/dist/sequenceDiagram-G6AWOVSC-DlZ7du4U-z70BwBnZ.js +2274 -0
  103. package/dist/shellscript-Dn0-btNd-Dn0-btNd.js +6 -0
  104. package/dist/shellsession-8OLo3sB6-DD6AdPYk.js +8 -0
  105. package/dist/splunk-CTqDjQdo-CTqDjQdo.js +6 -0
  106. package/dist/sql-DCkt643--DCkt643-.js +6 -0
  107. package/dist/ssh-config-DHHGll-v-DHHGll-v.js +6 -0
  108. package/dist/stateDiagram-MAYHULR4-tK3TdntS-PielUO6n.js +268 -0
  109. package/dist/stateDiagram-v2-4JROLMXI-Ib4sJL3A--uDyhxdT.js +14 -0
  110. package/dist/style.css +1 -0
  111. package/dist/stylus-n_9f0QQ5-n_9f0QQ5.js +6 -0
  112. package/dist/svelte-01qw6Rxm-Cjp5Srko.js +14 -0
  113. package/dist/swift-BAWqNR8A-BAWqNR8A.js +6 -0
  114. package/dist/timeline-definition-U7ZMHBDA-Db9d-9_E-kHwjVd5T.js +804 -0
  115. package/dist/toml-CQSfOn0e-CQSfOn0e.js +6 -0
  116. package/dist/tsx-DiGsgWT8-DiGsgWT8.js +6 -0
  117. package/dist/twig-DxrNSc26-BIWbKTFO.js +18 -0
  118. package/dist/types/components/DocumentationContent.vue.d.ts +177 -0
  119. package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -0
  120. package/dist/types/components/DocumentationDisplay.vue.d.ts +323 -0
  121. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -0
  122. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +30 -0
  123. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +1 -0
  124. package/dist/types/components/ProductDocumentModal.vue.d.ts +71 -0
  125. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -0
  126. package/dist/types/composables/index.d.ts +6 -0
  127. package/dist/types/composables/index.d.ts.map +1 -0
  128. package/dist/types/composables/useI18n.d.ts +9 -0
  129. package/dist/types/composables/useI18n.d.ts.map +1 -0
  130. package/dist/types/external-links.d.ts +5 -0
  131. package/dist/types/external-links.d.ts.map +1 -0
  132. package/dist/types/helpers.d.ts +8 -0
  133. package/dist/types/helpers.d.ts.map +1 -0
  134. package/dist/types/index.d.ts +7 -0
  135. package/dist/types/index.d.ts.map +1 -0
  136. package/dist/types/types/document-list.d.ts +28 -0
  137. package/dist/types/types/document-list.d.ts.map +1 -0
  138. package/dist/types/types/document-modal.d.ts +8 -0
  139. package/dist/types/types/document-modal.d.ts.map +1 -0
  140. package/dist/types/types/index.d.ts +3 -0
  141. package/dist/types/types/index.d.ts.map +1 -0
  142. package/dist/typescript-buWNZFwO-buWNZFwO.js +6 -0
  143. package/dist/v-wa8Orrdd-wa8Orrdd.js +6 -0
  144. package/dist/vb-E2_-jk4M-E2_-jk4M.js +6 -0
  145. package/dist/viml-B-zWOd7Z-B-zWOd7Z.js +6 -0
  146. package/dist/vue-DdqTpW8B-BrYVXV7A.js +31 -0
  147. package/dist/vue-html-B9t4RWro-D1UeMTSX.js +10 -0
  148. package/dist/wasm-Bv5f0gKv-Bv5f0gKv.js +6 -0
  149. package/dist/wgsl-DnPoPGDU-DnPoPGDU.js +6 -0
  150. package/dist/xml-ChBsf5uy-0Ovnixsj.js +8 -0
  151. package/dist/xsl-BefjlXrd-CZ7IlB9K.js +8 -0
  152. package/dist/xychartDiagram-6QU3TZC5-L2EgHpF7-Dbx9eZ7M.js +1304 -0
  153. package/dist/yaml-Bbg74JKr-Bbg74JKr.js +6 -0
  154. package/package.json +2 -2
@@ -0,0 +1,718 @@
1
+ import { _ as a, l as tt, g as G, aW as pt, f as yt, i as ft, p as mt, bm as bt, aB as q, ae as M, an as _t, ao as Et, bn as St, bo as at, bp as lt } from "./index-B_RqyDIa.js";
2
+ var Q = function() {
3
+ var i = /* @__PURE__ */ a(function(k, t, n, r) {
4
+ for (n = n || {}, r = k.length; r--; n[k[r]] = t) ;
5
+ return n;
6
+ }, "o"), u = [1, 4], d = [1, 13], s = [1, 12], g = [1, 15], D = [1, 16], S = [1, 20], h = [1, 19], v = [6, 7, 8], b = [1, 26], _ = [1, 24], C = [1, 25], o = [6, 7, 11], j = [1, 31], w = [6, 7, 11, 24], T = [1, 6, 13, 16, 17, 20, 23], $ = [1, 35], H = [1, 36], A = [1, 6, 7, 11, 13, 16, 17, 20, 23], U = [1, 38], y = {
7
+ trace: /* @__PURE__ */ a(function() {
8
+ }, "trace"),
9
+ yy: {},
10
+ symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, KANBAN: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, shapeData: 15, ICON: 16, CLASS: 17, nodeWithId: 18, nodeWithoutId: 19, NODE_DSTART: 20, NODE_DESCR: 21, NODE_DEND: 22, NODE_ID: 23, SHAPE_DATA: 24, $accept: 0, $end: 1 },
11
+ terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "KANBAN", 11: "EOF", 13: "SPACELIST", 16: "ICON", 17: "CLASS", 20: "NODE_DSTART", 21: "NODE_DESCR", 22: "NODE_DEND", 23: "NODE_ID", 24: "SHAPE_DATA" },
12
+ productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 3], [12, 2], [12, 2], [12, 2], [12, 1], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [19, 3], [18, 1], [18, 4], [15, 2], [15, 1]],
13
+ performAction: /* @__PURE__ */ a(function(k, t, n, r, c, e, m) {
14
+ var l = e.length - 1;
15
+ switch (c) {
16
+ case 6:
17
+ case 7:
18
+ return r;
19
+ case 8:
20
+ r.getLogger().trace("Stop NL ");
21
+ break;
22
+ case 9:
23
+ r.getLogger().trace("Stop EOF ");
24
+ break;
25
+ case 11:
26
+ r.getLogger().trace("Stop NL2 ");
27
+ break;
28
+ case 12:
29
+ r.getLogger().trace("Stop EOF2 ");
30
+ break;
31
+ case 15:
32
+ r.getLogger().info("Node: ", e[l - 1].id), r.addNode(e[l - 2].length, e[l - 1].id, e[l - 1].descr, e[l - 1].type, e[l]);
33
+ break;
34
+ case 16:
35
+ r.getLogger().info("Node: ", e[l].id), r.addNode(e[l - 1].length, e[l].id, e[l].descr, e[l].type);
36
+ break;
37
+ case 17:
38
+ r.getLogger().trace("Icon: ", e[l]), r.decorateNode({ icon: e[l] });
39
+ break;
40
+ case 18:
41
+ case 23:
42
+ r.decorateNode({ class: e[l] });
43
+ break;
44
+ case 19:
45
+ r.getLogger().trace("SPACELIST");
46
+ break;
47
+ case 20:
48
+ r.getLogger().trace("Node: ", e[l - 1].id), r.addNode(0, e[l - 1].id, e[l - 1].descr, e[l - 1].type, e[l]);
49
+ break;
50
+ case 21:
51
+ r.getLogger().trace("Node: ", e[l].id), r.addNode(0, e[l].id, e[l].descr, e[l].type);
52
+ break;
53
+ case 22:
54
+ r.decorateNode({ icon: e[l] });
55
+ break;
56
+ case 27:
57
+ r.getLogger().trace("node found ..", e[l - 2]), this.$ = { id: e[l - 1], descr: e[l - 1], type: r.getType(e[l - 2], e[l]) };
58
+ break;
59
+ case 28:
60
+ this.$ = { id: e[l], descr: e[l], type: 0 };
61
+ break;
62
+ case 29:
63
+ r.getLogger().trace("node found ..", e[l - 3]), this.$ = { id: e[l - 3], descr: e[l - 1], type: r.getType(e[l - 2], e[l]) };
64
+ break;
65
+ case 30:
66
+ this.$ = e[l - 1] + e[l];
67
+ break;
68
+ case 31:
69
+ this.$ = e[l];
70
+ break;
71
+ }
72
+ }, "anonymous"),
73
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: u }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: u }, { 6: d, 7: [1, 10], 9: 9, 12: 11, 13: s, 14: 14, 16: g, 17: D, 18: 17, 19: 18, 20: S, 23: h }, i(v, [2, 3]), { 1: [2, 2] }, i(v, [2, 4]), i(v, [2, 5]), { 1: [2, 6], 6: d, 12: 21, 13: s, 14: 14, 16: g, 17: D, 18: 17, 19: 18, 20: S, 23: h }, { 6: d, 9: 22, 12: 11, 13: s, 14: 14, 16: g, 17: D, 18: 17, 19: 18, 20: S, 23: h }, { 6: b, 7: _, 10: 23, 11: C }, i(o, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: S, 23: h }), i(o, [2, 19]), i(o, [2, 21], { 15: 30, 24: j }), i(o, [2, 22]), i(o, [2, 23]), i(w, [2, 25]), i(w, [2, 26]), i(w, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: b, 7: _, 10: 34, 11: C }, { 1: [2, 7], 6: d, 12: 21, 13: s, 14: 14, 16: g, 17: D, 18: 17, 19: 18, 20: S, 23: h }, i(T, [2, 14], { 7: $, 11: H }), i(A, [2, 8]), i(A, [2, 9]), i(A, [2, 10]), i(o, [2, 16], { 15: 37, 24: j }), i(o, [2, 17]), i(o, [2, 18]), i(o, [2, 20], { 24: U }), i(w, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, i(T, [2, 13], { 7: $, 11: H }), i(A, [2, 11]), i(A, [2, 12]), i(o, [2, 15], { 24: U }), i(w, [2, 30]), { 22: [1, 41] }, i(w, [2, 27]), i(w, [2, 29])],
74
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
75
+ parseError: /* @__PURE__ */ a(function(k, t) {
76
+ if (t.recoverable)
77
+ this.trace(k);
78
+ else {
79
+ var n = new Error(k);
80
+ throw n.hash = t, n;
81
+ }
82
+ }, "parseError"),
83
+ parse: /* @__PURE__ */ a(function(k) {
84
+ var t = this, n = [0], r = [], c = [null], e = [], m = this.table, l = "", W = 0, nt = 0, ht = 2, st = 1, ut = e.slice.call(arguments, 1), f = Object.create(this.lexer), P = { yy: {} };
85
+ for (var X in this.yy)
86
+ Object.prototype.hasOwnProperty.call(this.yy, X) && (P.yy[X] = this.yy[X]);
87
+ f.setInput(k, P.yy), P.yy.lexer = f, P.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
88
+ var Y = f.yylloc;
89
+ e.push(Y);
90
+ var gt = f.options && f.options.ranges;
91
+ typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
92
+ function dt(N) {
93
+ n.length = n.length - 2 * N, c.length = c.length - N, e.length = e.length - N;
94
+ }
95
+ a(dt, "popStack");
96
+ function rt() {
97
+ var N;
98
+ return N = r.pop() || f.lex() || st, typeof N != "number" && (N instanceof Array && (r = N, N = r.pop()), N = t.symbols_[N] || N), N;
99
+ }
100
+ a(rt, "lex");
101
+ for (var E, B, x, K, F = {}, z, I, ot, V; ; ) {
102
+ if (B = n[n.length - 1], this.defaultActions[B] ? x = this.defaultActions[B] : ((E === null || typeof E > "u") && (E = rt()), x = m[B] && m[B][E]), typeof x > "u" || !x.length || !x[0]) {
103
+ var J = "";
104
+ V = [];
105
+ for (z in m[B])
106
+ this.terminals_[z] && z > ht && V.push("'" + this.terminals_[z] + "'");
107
+ f.showPosition ? J = "Parse error on line " + (W + 1) + `:
108
+ ` + f.showPosition() + `
109
+ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : J = "Parse error on line " + (W + 1) + ": Unexpected " + (E == st ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(J, {
110
+ text: f.match,
111
+ token: this.terminals_[E] || E,
112
+ line: f.yylineno,
113
+ loc: Y,
114
+ expected: V
115
+ });
116
+ }
117
+ if (x[0] instanceof Array && x.length > 1)
118
+ throw new Error("Parse Error: multiple actions possible at state: " + B + ", token: " + E);
119
+ switch (x[0]) {
120
+ case 1:
121
+ n.push(E), c.push(f.yytext), e.push(f.yylloc), n.push(x[1]), E = null, nt = f.yyleng, l = f.yytext, W = f.yylineno, Y = f.yylloc;
122
+ break;
123
+ case 2:
124
+ if (I = this.productions_[x[1]][1], F.$ = c[c.length - I], F._$ = {
125
+ first_line: e[e.length - (I || 1)].first_line,
126
+ last_line: e[e.length - 1].last_line,
127
+ first_column: e[e.length - (I || 1)].first_column,
128
+ last_column: e[e.length - 1].last_column
129
+ }, gt && (F._$.range = [
130
+ e[e.length - (I || 1)].range[0],
131
+ e[e.length - 1].range[1]
132
+ ]), K = this.performAction.apply(F, [
133
+ l,
134
+ nt,
135
+ W,
136
+ P.yy,
137
+ x[1],
138
+ c,
139
+ e
140
+ ].concat(ut)), typeof K < "u")
141
+ return K;
142
+ I && (n = n.slice(0, -1 * I * 2), c = c.slice(0, -1 * I), e = e.slice(0, -1 * I)), n.push(this.productions_[x[1]][0]), c.push(F.$), e.push(F._$), ot = m[n[n.length - 2]][n[n.length - 1]], n.push(ot);
143
+ break;
144
+ case 3:
145
+ return !0;
146
+ }
147
+ }
148
+ return !0;
149
+ }, "parse")
150
+ }, R = /* @__PURE__ */ function() {
151
+ var k = {
152
+ EOF: 1,
153
+ parseError: /* @__PURE__ */ a(function(t, n) {
154
+ if (this.yy.parser)
155
+ this.yy.parser.parseError(t, n);
156
+ else
157
+ throw new Error(t);
158
+ }, "parseError"),
159
+ // resets the lexer, sets new input
160
+ setInput: /* @__PURE__ */ a(function(t, n) {
161
+ return this.yy = n || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
162
+ first_line: 1,
163
+ first_column: 0,
164
+ last_line: 1,
165
+ last_column: 0
166
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
167
+ }, "setInput"),
168
+ // consumes and returns one char from the input
169
+ input: /* @__PURE__ */ a(function() {
170
+ var t = this._input[0];
171
+ this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
172
+ var n = t.match(/(?:\r\n?|\n).*/g);
173
+ return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), t;
174
+ }, "input"),
175
+ // unshifts one char (or a string) into the input
176
+ unput: /* @__PURE__ */ a(function(t) {
177
+ var n = t.length, r = t.split(/(?:\r\n?|\n)/g);
178
+ this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
179
+ var c = this.match.split(/(?:\r\n?|\n)/g);
180
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), r.length - 1 && (this.yylineno -= r.length - 1);
181
+ var e = this.yylloc.range;
182
+ return this.yylloc = {
183
+ first_line: this.yylloc.first_line,
184
+ last_line: this.yylineno + 1,
185
+ first_column: this.yylloc.first_column,
186
+ last_column: r ? (r.length === c.length ? this.yylloc.first_column : 0) + c[c.length - r.length].length - r[0].length : this.yylloc.first_column - n
187
+ }, this.options.ranges && (this.yylloc.range = [e[0], e[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
188
+ }, "unput"),
189
+ // When called from action, caches matched text and appends it on next action
190
+ more: /* @__PURE__ */ a(function() {
191
+ return this._more = !0, this;
192
+ }, "more"),
193
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
194
+ reject: /* @__PURE__ */ a(function() {
195
+ if (this.options.backtrack_lexer)
196
+ this._backtrack = !0;
197
+ else
198
+ 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).
199
+ ` + this.showPosition(), {
200
+ text: "",
201
+ token: null,
202
+ line: this.yylineno
203
+ });
204
+ return this;
205
+ }, "reject"),
206
+ // retain first n characters of the match
207
+ less: /* @__PURE__ */ a(function(t) {
208
+ this.unput(this.match.slice(t));
209
+ }, "less"),
210
+ // displays already matched input, i.e. for error messages
211
+ pastInput: /* @__PURE__ */ a(function() {
212
+ var t = this.matched.substr(0, this.matched.length - this.match.length);
213
+ return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
214
+ }, "pastInput"),
215
+ // displays upcoming input, i.e. for error messages
216
+ upcomingInput: /* @__PURE__ */ a(function() {
217
+ var t = this.match;
218
+ return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
219
+ }, "upcomingInput"),
220
+ // displays the character position where the lexing error occurred, i.e. for error messages
221
+ showPosition: /* @__PURE__ */ a(function() {
222
+ var t = this.pastInput(), n = new Array(t.length + 1).join("-");
223
+ return t + this.upcomingInput() + `
224
+ ` + n + "^";
225
+ }, "showPosition"),
226
+ // test the lexed token: return FALSE when not a match, otherwise return token
227
+ test_match: /* @__PURE__ */ a(function(t, n) {
228
+ var r, c, e;
229
+ if (this.options.backtrack_lexer && (e = {
230
+ yylineno: this.yylineno,
231
+ yylloc: {
232
+ first_line: this.yylloc.first_line,
233
+ last_line: this.last_line,
234
+ first_column: this.yylloc.first_column,
235
+ last_column: this.yylloc.last_column
236
+ },
237
+ yytext: this.yytext,
238
+ match: this.match,
239
+ matches: this.matches,
240
+ matched: this.matched,
241
+ yyleng: this.yyleng,
242
+ offset: this.offset,
243
+ _more: this._more,
244
+ _input: this._input,
245
+ yy: this.yy,
246
+ conditionStack: this.conditionStack.slice(0),
247
+ done: this.done
248
+ }, this.options.ranges && (e.yylloc.range = this.yylloc.range.slice(0))), c = t[0].match(/(?:\r\n?|\n).*/g), c && (this.yylineno += c.length), this.yylloc = {
249
+ first_line: this.yylloc.last_line,
250
+ last_line: this.yylineno + 1,
251
+ first_column: this.yylloc.last_column,
252
+ last_column: c ? c[c.length - 1].length - c[c.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
253
+ }, this.yytext += t[0], this.match += t[0], this.matches = t, 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(t[0].length), this.matched += t[0], r = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r)
254
+ return r;
255
+ if (this._backtrack) {
256
+ for (var m in e)
257
+ this[m] = e[m];
258
+ return !1;
259
+ }
260
+ return !1;
261
+ }, "test_match"),
262
+ // return next match in input
263
+ next: /* @__PURE__ */ a(function() {
264
+ if (this.done)
265
+ return this.EOF;
266
+ this._input || (this.done = !0);
267
+ var t, n, r, c;
268
+ this._more || (this.yytext = "", this.match = "");
269
+ for (var e = this._currentRules(), m = 0; m < e.length; m++)
270
+ if (r = this._input.match(this.rules[e[m]]), r && (!n || r[0].length > n[0].length)) {
271
+ if (n = r, c = m, this.options.backtrack_lexer) {
272
+ if (t = this.test_match(r, e[m]), t !== !1)
273
+ return t;
274
+ if (this._backtrack) {
275
+ n = !1;
276
+ continue;
277
+ } else
278
+ return !1;
279
+ } else if (!this.options.flex)
280
+ break;
281
+ }
282
+ return n ? (t = this.test_match(n, e[c]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
283
+ ` + this.showPosition(), {
284
+ text: "",
285
+ token: null,
286
+ line: this.yylineno
287
+ });
288
+ }, "next"),
289
+ // return next match that has a token
290
+ lex: /* @__PURE__ */ a(function() {
291
+ var t = this.next();
292
+ return t || this.lex();
293
+ }, "lex"),
294
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
295
+ begin: /* @__PURE__ */ a(function(t) {
296
+ this.conditionStack.push(t);
297
+ }, "begin"),
298
+ // pop the previously active lexer condition state off the condition stack
299
+ popState: /* @__PURE__ */ a(function() {
300
+ var t = this.conditionStack.length - 1;
301
+ return t > 0 ? this.conditionStack.pop() : this.conditionStack[0];
302
+ }, "popState"),
303
+ // produce the lexer rule set which is active for the currently active lexer condition state
304
+ _currentRules: /* @__PURE__ */ a(function() {
305
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
306
+ }, "_currentRules"),
307
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
308
+ topState: /* @__PURE__ */ a(function(t) {
309
+ return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
310
+ }, "topState"),
311
+ // alias for begin(condition)
312
+ pushState: /* @__PURE__ */ a(function(t) {
313
+ this.begin(t);
314
+ }, "pushState"),
315
+ // return the number of states currently on the stack
316
+ stateStackSize: /* @__PURE__ */ a(function() {
317
+ return this.conditionStack.length;
318
+ }, "stateStackSize"),
319
+ options: { "case-insensitive": !0 },
320
+ performAction: /* @__PURE__ */ a(function(t, n, r, c) {
321
+ switch (r) {
322
+ case 0:
323
+ return this.pushState("shapeData"), n.yytext = "", 24;
324
+ case 1:
325
+ return this.pushState("shapeDataStr"), 24;
326
+ case 2:
327
+ return this.popState(), 24;
328
+ case 3:
329
+ const e = /\n\s*/g;
330
+ return n.yytext = n.yytext.replace(e, "<br/>"), 24;
331
+ case 4:
332
+ return 24;
333
+ case 5:
334
+ this.popState();
335
+ break;
336
+ case 6:
337
+ return t.getLogger().trace("Found comment", n.yytext), 6;
338
+ case 7:
339
+ return 8;
340
+ case 8:
341
+ this.begin("CLASS");
342
+ break;
343
+ case 9:
344
+ return this.popState(), 17;
345
+ case 10:
346
+ this.popState();
347
+ break;
348
+ case 11:
349
+ t.getLogger().trace("Begin icon"), this.begin("ICON");
350
+ break;
351
+ case 12:
352
+ return t.getLogger().trace("SPACELINE"), 6;
353
+ case 13:
354
+ return 7;
355
+ case 14:
356
+ return 16;
357
+ case 15:
358
+ t.getLogger().trace("end icon"), this.popState();
359
+ break;
360
+ case 16:
361
+ return t.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
362
+ case 17:
363
+ return t.getLogger().trace("Cloud"), this.begin("NODE"), 20;
364
+ case 18:
365
+ return t.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
366
+ case 19:
367
+ return t.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
368
+ case 20:
369
+ return this.begin("NODE"), 20;
370
+ case 21:
371
+ return this.begin("NODE"), 20;
372
+ case 22:
373
+ return this.begin("NODE"), 20;
374
+ case 23:
375
+ return this.begin("NODE"), 20;
376
+ case 24:
377
+ return 13;
378
+ case 25:
379
+ return 23;
380
+ case 26:
381
+ return 11;
382
+ case 27:
383
+ this.begin("NSTR2");
384
+ break;
385
+ case 28:
386
+ return "NODE_DESCR";
387
+ case 29:
388
+ this.popState();
389
+ break;
390
+ case 30:
391
+ t.getLogger().trace("Starting NSTR"), this.begin("NSTR");
392
+ break;
393
+ case 31:
394
+ return t.getLogger().trace("description:", n.yytext), "NODE_DESCR";
395
+ case 32:
396
+ this.popState();
397
+ break;
398
+ case 33:
399
+ return this.popState(), t.getLogger().trace("node end ))"), "NODE_DEND";
400
+ case 34:
401
+ return this.popState(), t.getLogger().trace("node end )"), "NODE_DEND";
402
+ case 35:
403
+ return this.popState(), t.getLogger().trace("node end ...", n.yytext), "NODE_DEND";
404
+ case 36:
405
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
406
+ case 37:
407
+ return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
408
+ case 38:
409
+ return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
410
+ case 39:
411
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
412
+ case 40:
413
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
414
+ case 41:
415
+ return t.getLogger().trace("Long description:", n.yytext), 21;
416
+ case 42:
417
+ return t.getLogger().trace("Long description:", n.yytext), 21;
418
+ }
419
+ }, "anonymous"),
420
+ rules: [/^(?:@\{)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^\"]+)/i, /^(?:[^}^"]+)/i, /^(?:\})/i, /^(?:\s*%%.*)/i, /^(?:kanban\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}@]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
421
+ conditions: { shapeDataEndBracket: { rules: [], inclusive: !1 }, shapeDataStr: { rules: [2, 3], inclusive: !1 }, shapeData: { rules: [1, 4, 5], inclusive: !1 }, CLASS: { rules: [9, 10], inclusive: !1 }, ICON: { rules: [14, 15], inclusive: !1 }, NSTR2: { rules: [28, 29], inclusive: !1 }, NSTR: { rules: [31, 32], inclusive: !1 }, NODE: { rules: [27, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], inclusive: !1 }, INITIAL: { rules: [0, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], inclusive: !0 } }
422
+ };
423
+ return k;
424
+ }();
425
+ y.lexer = R;
426
+ function O() {
427
+ this.yy = {};
428
+ }
429
+ return a(O, "Parser"), O.prototype = y, y.Parser = O, new O();
430
+ }();
431
+ Q.parser = Q;
432
+ var kt = Q, L = [], et = [], Z = 0, it = {}, Nt = /* @__PURE__ */ a(() => {
433
+ L = [], et = [], Z = 0, it = {};
434
+ }, "clear"), Dt = /* @__PURE__ */ a((i) => {
435
+ if (L.length === 0)
436
+ return null;
437
+ const u = L[0].level;
438
+ let d = null;
439
+ for (let s = L.length - 1; s >= 0; s--)
440
+ if (L[s].level === u && !d && (d = L[s]), L[s].level < u)
441
+ throw new Error('Items without section detected, found section ("' + L[s].label + '")');
442
+ return i === (d == null ? void 0 : d.level) ? null : d;
443
+ }, "getSection"), ct = /* @__PURE__ */ a(function() {
444
+ return et;
445
+ }, "getSections"), xt = /* @__PURE__ */ a(function() {
446
+ const i = [], u = [], d = ct(), s = G();
447
+ for (const g of d) {
448
+ const D = {
449
+ id: g.id,
450
+ label: M(g.label ?? "", s),
451
+ isGroup: !0,
452
+ ticket: g.ticket,
453
+ shape: "kanbanSection",
454
+ level: g.level,
455
+ look: s.look
456
+ };
457
+ u.push(D);
458
+ const S = L.filter((h) => h.parentId === g.id);
459
+ for (const h of S) {
460
+ const v = {
461
+ id: h.id,
462
+ parentId: g.id,
463
+ label: M(h.label ?? "", s),
464
+ isGroup: !1,
465
+ ticket: h == null ? void 0 : h.ticket,
466
+ priority: h == null ? void 0 : h.priority,
467
+ assigned: h == null ? void 0 : h.assigned,
468
+ icon: h == null ? void 0 : h.icon,
469
+ shape: "kanbanItem",
470
+ level: h.level,
471
+ rx: 5,
472
+ ry: 5,
473
+ cssStyles: ["text-align: left"]
474
+ };
475
+ u.push(v);
476
+ }
477
+ }
478
+ return { nodes: u, edges: i, other: {}, config: G() };
479
+ }, "getData"), Lt = /* @__PURE__ */ a((i, u, d, s, g) => {
480
+ var D, S;
481
+ const h = G();
482
+ let v = ((D = h.mindmap) == null ? void 0 : D.padding) ?? q.mindmap.padding;
483
+ switch (s) {
484
+ case p.ROUNDED_RECT:
485
+ case p.RECT:
486
+ case p.HEXAGON:
487
+ v *= 2;
488
+ }
489
+ const b = {
490
+ id: M(u, h) || "kbn" + Z++,
491
+ level: i,
492
+ label: M(d, h),
493
+ width: ((S = h.mindmap) == null ? void 0 : S.maxNodeWidth) ?? q.mindmap.maxNodeWidth,
494
+ padding: v,
495
+ isGroup: !1
496
+ };
497
+ if (g !== void 0) {
498
+ let C;
499
+ g.includes(`
500
+ `) ? C = g + `
501
+ ` : C = `{
502
+ ` + g + `
503
+ }`;
504
+ const o = _t(C, { schema: Et });
505
+ if (o.shape && (o.shape !== o.shape.toLowerCase() || o.shape.includes("_")))
506
+ throw new Error(`No such shape: ${o.shape}. Shape names should be lowercase.`);
507
+ o != null && o.shape && o.shape === "kanbanItem" && (b.shape = o == null ? void 0 : o.shape), o != null && o.label && (b.label = o == null ? void 0 : o.label), o != null && o.icon && (b.icon = o == null ? void 0 : o.icon.toString()), o != null && o.assigned && (b.assigned = o == null ? void 0 : o.assigned.toString()), o != null && o.ticket && (b.ticket = o == null ? void 0 : o.ticket.toString()), o != null && o.priority && (b.priority = o == null ? void 0 : o.priority);
508
+ }
509
+ const _ = Dt(i);
510
+ _ ? b.parentId = _.id || "kbn" + Z++ : et.push(b), L.push(b);
511
+ }, "addNode"), p = {
512
+ DEFAULT: 0,
513
+ NO_BORDER: 0,
514
+ ROUNDED_RECT: 1,
515
+ RECT: 2,
516
+ CIRCLE: 3,
517
+ CLOUD: 4,
518
+ BANG: 5,
519
+ HEXAGON: 6
520
+ }, vt = /* @__PURE__ */ a((i, u) => {
521
+ switch (tt.debug("In get type", i, u), i) {
522
+ case "[":
523
+ return p.RECT;
524
+ case "(":
525
+ return u === ")" ? p.ROUNDED_RECT : p.CLOUD;
526
+ case "((":
527
+ return p.CIRCLE;
528
+ case ")":
529
+ return p.CLOUD;
530
+ case "))":
531
+ return p.BANG;
532
+ case "{{":
533
+ return p.HEXAGON;
534
+ default:
535
+ return p.DEFAULT;
536
+ }
537
+ }, "getType"), Ot = /* @__PURE__ */ a((i, u) => {
538
+ it[i] = u;
539
+ }, "setElementForId"), Ct = /* @__PURE__ */ a((i) => {
540
+ if (!i)
541
+ return;
542
+ const u = G(), d = L[L.length - 1];
543
+ i.icon && (d.icon = M(i.icon, u)), i.class && (d.cssClasses = M(i.class, u));
544
+ }, "decorateNode"), wt = /* @__PURE__ */ a((i) => {
545
+ switch (i) {
546
+ case p.DEFAULT:
547
+ return "no-border";
548
+ case p.RECT:
549
+ return "rect";
550
+ case p.ROUNDED_RECT:
551
+ return "rounded-rect";
552
+ case p.CIRCLE:
553
+ return "circle";
554
+ case p.CLOUD:
555
+ return "cloud";
556
+ case p.BANG:
557
+ return "bang";
558
+ case p.HEXAGON:
559
+ return "hexgon";
560
+ default:
561
+ return "no-border";
562
+ }
563
+ }, "type2Str"), At = /* @__PURE__ */ a(() => tt, "getLogger"), It = /* @__PURE__ */ a((i) => it[i], "getElementById"), Tt = {
564
+ clear: Nt,
565
+ addNode: Lt,
566
+ getSections: ct,
567
+ getData: xt,
568
+ nodeType: p,
569
+ getType: vt,
570
+ setElementForId: Ot,
571
+ decorateNode: Ct,
572
+ type2Str: wt,
573
+ getLogger: At,
574
+ getElementById: It
575
+ }, $t = Tt, Rt = /* @__PURE__ */ a(async (i, u, d, s) => {
576
+ var g, D, S, h, v;
577
+ tt.debug(`Rendering kanban diagram
578
+ ` + i);
579
+ const b = s.db.getData(), _ = G();
580
+ _.htmlLabels = !1;
581
+ const C = pt(u), o = C.append("g");
582
+ o.attr("class", "sections");
583
+ const j = C.append("g");
584
+ j.attr("class", "items");
585
+ const w = b.nodes.filter(
586
+ // TODO: TypeScript 5.5 will infer this predicate automatically
587
+ (y) => y.isGroup
588
+ );
589
+ let T = 0;
590
+ const $ = 10, H = [];
591
+ let A = 25;
592
+ for (const y of w) {
593
+ const R = ((g = _ == null ? void 0 : _.kanban) == null ? void 0 : g.sectionWidth) || 200;
594
+ T = T + 1, y.x = R * T + (T - 1) * $ / 2, y.width = R, y.y = 0, y.height = R * 3, y.rx = 5, y.ry = 5, y.cssClasses = y.cssClasses + " section-" + T;
595
+ const O = await yt(o, y);
596
+ A = Math.max(A, (D = O == null ? void 0 : O.labelBBox) == null ? void 0 : D.height), H.push(O);
597
+ }
598
+ let U = 0;
599
+ for (const y of w) {
600
+ const R = H[U];
601
+ U = U + 1;
602
+ const O = ((S = _ == null ? void 0 : _.kanban) == null ? void 0 : S.sectionWidth) || 200, k = -O * 3 / 2 + A;
603
+ let t = k;
604
+ const n = b.nodes.filter((e) => e.parentId === y.id);
605
+ for (const e of n) {
606
+ if (e.isGroup)
607
+ throw new Error("Groups within groups are not allowed in Kanban diagrams");
608
+ e.x = y.x, e.width = O - 1.5 * $;
609
+ const m = (await ft(j, e, { config: _ })).node().getBBox();
610
+ e.y = t + m.height / 2, await mt(e), t = e.y + m.height / 2 + $ / 2;
611
+ }
612
+ const r = R.cluster.select("rect"), c = Math.max(t - k + 3 * $, 50) + (A - 25);
613
+ r.attr("height", c);
614
+ }
615
+ bt(
616
+ void 0,
617
+ C,
618
+ ((h = _.mindmap) == null ? void 0 : h.padding) ?? q.kanban.padding,
619
+ ((v = _.mindmap) == null ? void 0 : v.useMaxWidth) ?? q.kanban.useMaxWidth
620
+ );
621
+ }, "draw"), Pt = {
622
+ draw: Rt
623
+ }, Bt = /* @__PURE__ */ a((i) => {
624
+ let u = "";
625
+ for (let s = 0; s < i.THEME_COLOR_LIMIT; s++)
626
+ i["lineColor" + s] = i["lineColor" + s] || i["cScaleInv" + s], St(i["lineColor" + s]) ? i["lineColor" + s] = at(i["lineColor" + s], 20) : i["lineColor" + s] = lt(i["lineColor" + s], 20);
627
+ const d = /* @__PURE__ */ a((s, g) => i.darkMode ? lt(s, g) : at(s, g), "adjuster");
628
+ for (let s = 0; s < i.THEME_COLOR_LIMIT; s++) {
629
+ const g = "" + (17 - 3 * s);
630
+ u += `
631
+ .section-${s - 1} rect, .section-${s - 1} path, .section-${s - 1} circle, .section-${s - 1} polygon, .section-${s - 1} path {
632
+ fill: ${d(i["cScale" + s], 10)};
633
+ stroke: ${d(i["cScale" + s], 10)};
634
+
635
+ }
636
+ .section-${s - 1} text {
637
+ fill: ${i["cScaleLabel" + s]};
638
+ }
639
+ .node-icon-${s - 1} {
640
+ font-size: 40px;
641
+ color: ${i["cScaleLabel" + s]};
642
+ }
643
+ .section-edge-${s - 1}{
644
+ stroke: ${i["cScale" + s]};
645
+ }
646
+ .edge-depth-${s - 1}{
647
+ stroke-width: ${g};
648
+ }
649
+ .section-${s - 1} line {
650
+ stroke: ${i["cScaleInv" + s]} ;
651
+ stroke-width: 3;
652
+ }
653
+
654
+ .disabled, .disabled circle, .disabled text {
655
+ fill: lightgray;
656
+ }
657
+ .disabled text {
658
+ fill: #efefef;
659
+ }
660
+
661
+ .node rect,
662
+ .node circle,
663
+ .node ellipse,
664
+ .node polygon,
665
+ .node path {
666
+ fill: ${i.background};
667
+ stroke: ${i.nodeBorder};
668
+ stroke-width: 1px;
669
+ }
670
+
671
+ .kanban-ticket-link {
672
+ fill: ${i.background};
673
+ stroke: ${i.nodeBorder};
674
+ text-decoration: underline;
675
+ }
676
+ `;
677
+ }
678
+ return u;
679
+ }, "genSections"), Ut = /* @__PURE__ */ a((i) => `
680
+ .edge {
681
+ stroke-width: 3;
682
+ }
683
+ ${Bt(i)}
684
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
685
+ fill: ${i.git0};
686
+ }
687
+ .section-root text {
688
+ fill: ${i.gitBranchLabel0};
689
+ }
690
+ .icon-container {
691
+ height:100%;
692
+ display: flex;
693
+ justify-content: center;
694
+ align-items: center;
695
+ }
696
+ .edge {
697
+ fill: none;
698
+ }
699
+ .cluster-label, .label {
700
+ color: ${i.textColor};
701
+ fill: ${i.textColor};
702
+ }
703
+ .kanban-label {
704
+ dy: 1em;
705
+ alignment-baseline: middle;
706
+ text-anchor: middle;
707
+ dominant-baseline: middle;
708
+ text-align: center;
709
+ }
710
+ `, "getStyles"), Ft = Ut, jt = {
711
+ db: $t,
712
+ renderer: Pt,
713
+ parser: kt,
714
+ styles: Ft
715
+ };
716
+ export {
717
+ jt as diagram
718
+ };