@openbkn/workshop 0.2.2-rc.5 → 0.2.2

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 (158) hide show
  1. package/README.md +83 -13
  2. package/component.d.ts +10 -0
  3. package/dist/ActionConfirm-DJ91X3ml.js +236 -0
  4. package/dist/ActionFailure-ZgPt_3B-.js +37 -0
  5. package/dist/AgentChat-CRYai8ge.js +1062 -0
  6. package/dist/AppFormModal-D73ucaHK.js +4282 -0
  7. package/dist/AppListPage-D87piiOw.js +1364 -0
  8. package/dist/AskDrawer-BUMYsRnt.js +38 -0
  9. package/dist/ComputedView-CgYrDbx1.js +3221 -0
  10. package/dist/ConclusionApply-sjGfoEBY.js +153 -0
  11. package/dist/CypherEditor-lus6FA5L.js +485 -0
  12. package/dist/LandingList-6JI6864C.js +230 -0
  13. package/dist/MenuUnfoldOutlined-Cdg24l2h.js +27 -0
  14. package/dist/ModelTrial-ClHFGTpQ.js +359 -0
  15. package/dist/PageRenderer-DBd_g6mN.js +85480 -0
  16. package/dist/README-DjRyTQSR.js +76 -0
  17. package/dist/ScenarioApply-DtW_hh47.js +590 -0
  18. package/dist/SimulateForm-C-i08Jjd.js +153 -0
  19. package/dist/Subgraph-CnrkH9AN.js +32586 -0
  20. package/dist/WorkshopLabPage-DiVXQL9e.js +11364 -0
  21. package/dist/WorkshopRunPage-6hjRUf64.js +253 -0
  22. package/dist/abnfDiagram-WEYOIA3C-beRNhN3c.js +87 -0
  23. package/dist/action-type-tool.service-B2B74fKC.js +1060 -0
  24. package/dist/actionButton-DA5CNEzx.js +94 -0
  25. package/dist/actionButton.en-US-qjeqA7hs.js +94 -0
  26. package/dist/agentChat-EoDznd58.js +116 -0
  27. package/dist/agentChat.en-US-B6-pFd9Y.js +116 -0
  28. package/dist/alertList-DqditwM8.js +84 -0
  29. package/dist/alertList.en-US-BAXAgltP.js +84 -0
  30. package/dist/architectureDiagram-ZHVYKT53-DY2l1qxx.js +4779 -0
  31. package/dist/asOfSlider-QPvHWUMV.js +83 -0
  32. package/dist/asOfSlider.en-US-BI4jVfSn.js +83 -0
  33. package/dist/bkn-agent-execution.service-DVh-SHyl.js +205 -0
  34. package/dist/blockDiagram-RJAE7QA3-DR0mjN2h.js +1435 -0
  35. package/dist/c4Diagram-XDPPPE54-DH5zsGug.js +1518 -0
  36. package/dist/channel-B034hcOF.js +5 -0
  37. package/dist/china-C6m7zXIv.js +9 -0
  38. package/dist/chunk-2E7WHVMD-Ba3svxgx.js +664 -0
  39. package/dist/chunk-2Q5K7J3B-rT4eU6_y.js +15 -0
  40. package/dist/chunk-4EMNKR2T-C1kQZYHK.js +262 -0
  41. package/dist/chunk-55XCU76K-dcpLOktb.js +68 -0
  42. package/dist/chunk-5VM5RSS4-BdpQuzmO.js +19 -0
  43. package/dist/chunk-JWPE2WC7-CDBrSjU7.js +8 -0
  44. package/dist/chunk-VQ5W62QI-BiVKc40w.js +19 -0
  45. package/dist/chunk-XXDRQBXY-CPYrcdVW.js +8 -0
  46. package/dist/chunk-ZCHMQSOR-BG8OLpvb.js +451 -0
  47. package/dist/classDiagram-v2-4MYWR3UA-DqbpQpwI.js +1564 -0
  48. package/dist/component.d-DFoMKuUv.js +179 -0
  49. package/dist/cose-bilkent-JH36ORCC-CdXk4sPf.js +2609 -0
  50. package/dist/customComponents-DasaZ6pq.js +4 -0
  51. package/dist/customComponents.en-US-CkabuCXg.js +79 -0
  52. package/dist/customParseFormat-C0uLEpdq.js +182 -0
  53. package/dist/cynefin-EF2NZ3EQ-D7MVnMHu.js +21746 -0
  54. package/dist/cynefinDiagram-WF24UDRP-BYT_KpDL.js +299 -0
  55. package/dist/cytoscape.esm-BCV9V6aO.js +18760 -0
  56. package/dist/d3-scale-DA8IHmf0.js +1841 -0
  57. package/dist/dagre-NK4GIZVX-l-ghPdM8.js +2154 -0
  58. package/dist/dateRange-BbkLMg8L.js +79 -0
  59. package/dist/dateRange.en-US-CV12Q02G.js +79 -0
  60. package/dist/dayjs.min-DZ-YV8Mv.js +284 -0
  61. package/dist/diagram-CBK3MWTC-Bt3HiwvA.js +542 -0
  62. package/dist/diagram-I5XIIV2D-DcbqfBjx.js +150 -0
  63. package/dist/diagram-ODIL2UCW-9PC1n3n5.js +346 -0
  64. package/dist/diagram-PFBEJUXE-DGhr2kc7.js +478 -0
  65. package/dist/diagram-RJA3I4VV-DwzpOjZ_.js +219 -0
  66. package/dist/diagram-TYUNFSNR-B3Bd3TDU.js +2583 -0
  67. package/dist/dropdownFilter-DOi_8-ZT.js +76 -0
  68. package/dist/dropdownFilter.en-US-BiXpvXtF.js +76 -0
  69. package/dist/ebnfDiagram-V4P3TTPT-E5NN2oKc.js +109 -0
  70. package/dist/elk-QONTBCTQ-dFjcujl_.js +49170 -0
  71. package/dist/erDiagram-KYQIGQAA-BMrasBzB.js +1061 -0
  72. package/dist/eventList-CnsAwfDS.js +115 -0
  73. package/dist/eventList.en-US-Cof3rCLq.js +115 -0
  74. package/dist/eventReport-XS-HegnH.js +76 -0
  75. package/dist/eventReport.en-US-DTx4vzWT.js +76 -0
  76. package/dist/flowDiagram-IUGLLWBU-BGIBH0q0.js +1769 -0
  77. package/dist/ganttChart-DEeSvTJA.js +77 -0
  78. package/dist/ganttChart.en-US-SwRKrnoD.js +77 -0
  79. package/dist/ganttDiagram-R7GPNTJY-C0tb1Lpp.js +1741 -0
  80. package/dist/generateCypher-Ch9_lQa6.js +399 -0
  81. package/dist/gitGraphDiagram-PDYL7XHY-DBqcOa-c.js +815 -0
  82. package/dist/graph-CKJmgLki.js +1541 -0
  83. package/dist/index-BA-GzCXt.js +441 -0
  84. package/dist/infoDiagram-MVDRKAX5-Bwuki4JA.js +24 -0
  85. package/dist/ishikawaDiagram-HPEHV2GE-Dz4d6ygx.js +622 -0
  86. package/dist/journeyDiagram-BOSHW7O7-C99m34Bb.js +834 -0
  87. package/dist/kanban-definition-FNSA4HC5-mdqjODsT.js +724 -0
  88. package/dist/katex-BsrBVQKd.js +11314 -0
  89. package/dist/manifest-BjV1PJ6u.js +41 -0
  90. package/dist/mermaid.core-yQghUlIz.js +17642 -0
  91. package/dist/metricCards-CSb-_cT2.js +104 -0
  92. package/dist/metricCards.en-US-BLLhRsQU.js +104 -0
  93. package/dist/mindmap-definition-6OY57UG3-BZhO2wX4.js +834 -0
  94. package/dist/modelTrial-Bvb-RhGt.js +137 -0
  95. package/dist/modelTrial.en-US-DYcuor-G.js +137 -0
  96. package/dist/models-DekiCOuZ.js +6 -0
  97. package/dist/object-metric-numeric-vs3BeDkH.js +42 -0
  98. package/dist/object-metric.service-flZgBMRX.js +233 -0
  99. package/dist/objectDetail-SQUbp4Py.js +117 -0
  100. package/dist/objectDetail.en-US-DW3mlONM.js +117 -0
  101. package/dist/objectList-D99wPtJH.js +97 -0
  102. package/dist/objectList.en-US-PBBNyVLW.js +97 -0
  103. package/dist/objectTable-0jsFFMN3.js +127 -0
  104. package/dist/objectTable.en-US-yWEs8qc_.js +127 -0
  105. package/dist/pegDiagram-ECIUJNBX-BDa5RfZt.js +95 -0
  106. package/dist/pieDiagram-GNMPY74T-DNVtzXPv.js +165 -0
  107. package/dist/pivotTable-CHmQw18-.js +102 -0
  108. package/dist/pivotTable.en-US-B4uv4P08.js +102 -0
  109. package/dist/prompt-DYrjlEFr.js +373 -0
  110. package/dist/quadrantDiagram-D57K4MC3-vK0f2OvQ.js +1023 -0
  111. package/dist/railroadDiagram-Y72NRBL7-j6ZrTmRp.js +77 -0
  112. package/dist/regionMap-Cme-JyV_.js +128 -0
  113. package/dist/regionMap.en-US-Bwr2_p32.js +128 -0
  114. package/dist/requirementDiagram-EQYSW5RA-DgfEyljA.js +886 -0
  115. package/dist/sankeyDiagram-SY24JHO5-CImx-IX0.js +1160 -0
  116. package/dist/scenarioBar-BV43p7n-.js +122 -0
  117. package/dist/scenarioBar.en-US-5KqMQ2Bg.js +122 -0
  118. package/dist/scheduleGantt-CTYO-zYP.js +180 -0
  119. package/dist/scheduleGantt.en-US-hE7mvVUW.js +180 -0
  120. package/dist/searchBox-Ca7w0f_6.js +67 -0
  121. package/dist/searchBox.en-US-ArS_XBvB.js +67 -0
  122. package/dist/segmentedFilter-MhjVcWo0.js +80 -0
  123. package/dist/segmentedFilter.en-US-BxNrQO5T.js +80 -0
  124. package/dist/sequenceDiagram-BLEHNHQU-nWmjd1ci.js +2969 -0
  125. package/dist/sizeCapture-INFHLROL-D3jlbt7h.js +46 -0
  126. package/dist/stageChain-BxBafwjD.js +74 -0
  127. package/dist/stageChain.en-US-CP0G27n8.js +74 -0
  128. package/dist/stateDiagram-v2-A6IESKWZ-DG1ZetEu.js +1514 -0
  129. package/dist/subgraph-7n4SwliR.js +71 -0
  130. package/dist/subgraph.en-US-BNvY18IW.js +71 -0
  131. package/dist/swimlanes-B3ENRKFQ-cCmJE8AU.js +4991 -0
  132. package/dist/swimlanesDiagram-AYQRV4AK-CtuhyguU.js +14 -0
  133. package/dist/taskInbox-DGWYeI2b.js +118 -0
  134. package/dist/taskInbox.en-US-B-OzDmVl.js +118 -0
  135. package/dist/text-BqSVQKS6.js +78 -0
  136. package/dist/text.en-US-BhAxy_LE.js +78 -0
  137. package/dist/timeline-definition-JXYKGLGB-Cc-INsOv.js +1057 -0
  138. package/dist/trendChart-BjEeRS5_.js +135 -0
  139. package/dist/trendChart.en-US-BBGqWUKM.js +135 -0
  140. package/dist/useLabData-Df-jEHKs.js +20470 -0
  141. package/dist/usecaseDiagram-WPOLBNNX-r8wVjopm.js +7920 -0
  142. package/dist/vennDiagram-Q3Y3IDCW-BZiOcgrj.js +1579 -0
  143. package/dist/wardleyDiagram-IVAIDKWA-16jd07C_.js +675 -0
  144. package/dist/workshop-app-DnHNjBqy.js +86038 -0
  145. package/dist/workshop-app.css +1 -0
  146. package/dist/workshop-app.js +4 -0
  147. package/dist/world-Djau1JyJ.js +9 -0
  148. package/dist/xychartDiagram-4URNHDU4-C8DwWQNh.js +1460 -0
  149. package/dist-cli/workshop.js +341 -218
  150. package/example/host.js +109 -0
  151. package/example/index.html +93 -0
  152. package/example/server.mjs +237 -0
  153. package/index.d.ts +48 -0
  154. package/lib/validate.js +47 -1
  155. package/package.json +17 -5
  156. package/runtime/frame-runtime.js +13 -1
  157. package/workshop-component.js +32 -12
  158. package/workshop.js +2 -0
@@ -0,0 +1,1061 @@
1
+ import { g as Ut } from "./chunk-XXDRQBXY-CPYrcdVW.js";
2
+ import { s as Kt } from "./chunk-VQ5W62QI-BiVKc40w.js";
3
+ import { _ as f, L as Tt, b as Zt, a as jt, s as qt, g as Wt, v as Ht, x as Qt, c as tt, l as F, m as Xt, D as Jt, A as $t, F as te, G as ee, H as se, M as ie, K as re, N as ne, r as ae, t as oe, k as ce, u as le } from "./mermaid.core-yQghUlIz.js";
4
+ import { c as he } from "./channel-B034hcOF.js";
5
+ var Nt = (function() {
6
+ var s = /* @__PURE__ */ f(function(G, a, l, d) {
7
+ for (l = l || {}, d = G.length; d--; l[G[d]] = a) ;
8
+ return l;
9
+ }, "o"), n = [6, 9, 21, 23, 25, 27, 34, 37, 38, 39, 40, 41, 43, 46, 47, 51, 53, 54, 55], o = [2, 2], c = [1, 7], r = [1, 9], u = [1, 10], y = [1, 11], g = [1, 12], k = [1, 30], N = [1, 23], p = [1, 24], b = [1, 25], A = [1, 26], v = [1, 27], O = [1, 19], C = [1, 28], I = [1, 29], x = [1, 20], D = [1, 18], L = [1, 21], w = [1, 22], Ot = [2, 6], h = [6, 9, 21, 23, 25, 27, 33, 34, 37, 38, 39, 40, 41, 43, 46, 47, 51, 53, 54, 55], dt = [1, 36], pt = [1, 37], ft = [1, 38], bt = [1, 39], gt = [1, 40], Z = [6, 9, 12, 14, 16, 19, 20, 21, 23, 25, 27, 33, 34, 37, 38, 39, 40, 41, 43, 46, 47, 50, 51, 53, 54, 55, 69, 70, 71, 72, 73], V = [1, 46], M = [1, 47], j = [1, 57], q = [43, 51, 53, 54, 55, 74, 75], W = [1, 70], H = [1, 68], B = [1, 65], Q = [1, 69], X = [1, 71], et = [6, 9, 12, 16, 21, 23, 25, 27, 33, 34, 37, 38, 39, 40, 41, 43, 44, 45, 46, 47, 51, 52, 53, 54, 55, 69, 70, 71, 72, 73], st = [1, 78], it = [1, 77], rt = [1, 76], Ct = [69, 70, 71, 72, 73], xt = [1, 91], At = [6, 9, 45, 50], z = [6, 9, 12, 44, 45, 50, 51, 52], nt = [1, 101], at = [1, 100], ot = [1, 99], J = [18, 61], It = [1, 110], Rt = [1, 109], vt = [20, 43, 51, 53, 54, 55], yt = [18, 61, 64, 66], _t = {
10
+ trace: /* @__PURE__ */ f(function() {
11
+ }, "trace"),
12
+ yy: {},
13
+ symbols_: { error: 2, start: 3, ER_DIAGRAM: 4, document: 5, EOF: 6, line: 7, statement: 8, NEWLINE: 9, entityName: 10, relSpec: 11, COLON: 12, role: 13, STYLE_SEPARATOR: 14, idList: 15, BLOCK_START: 16, attributes: 17, BLOCK_STOP: 18, SQS: 19, SQE: 20, title: 21, title_value: 22, acc_title: 23, acc_title_value: 24, acc_descr: 25, acc_descr_value: 26, acc_descr_multiline_value: 27, direction: 28, classDefStatement: 29, classStatement: 30, styleStatement: 31, subgraphHeader: 32, END: 33, SUBGRAPH: 34, separator: 35, subgraphTitle: 36, direction_tb: 37, direction_bt: 38, direction_rl: 39, direction_lr: 40, CLASSDEF: 41, stylesOpt: 42, UNICODE_TEXT: 43, STYLE_TEXT: 44, COMMA: 45, CLASS: 46, STYLE: 47, style: 48, styleComponent: 49, SEMI: 50, NUM: 51, BRKT: 52, ENTITY_NAME: 53, DECIMAL_NUM: 54, ENTITY_ONE: 55, attribute: 56, attributeType: 57, attributeName: 58, attributeKeyTypeList: 59, attributeComment: 60, ATTRIBUTE_WORD: 61, "?": 62, attributeKeyType: 63, ",": 64, ATTRIBUTE_KEY: 65, COMMENT: 66, cardinality: 67, relType: 68, ZERO_OR_ONE: 69, ZERO_OR_MORE: 70, ONE_OR_MORE: 71, ONLY_ONE: 72, MD_PARENT: 73, NON_IDENTIFYING: 74, IDENTIFYING: 75, WORD: 76, $accept: 0, $end: 1 },
14
+ terminals_: { 2: "error", 4: "ER_DIAGRAM", 6: "EOF", 9: "NEWLINE", 12: "COLON", 14: "STYLE_SEPARATOR", 16: "BLOCK_START", 18: "BLOCK_STOP", 19: "SQS", 20: "SQE", 21: "title", 22: "title_value", 23: "acc_title", 24: "acc_title_value", 25: "acc_descr", 26: "acc_descr_value", 27: "acc_descr_multiline_value", 33: "END", 34: "SUBGRAPH", 37: "direction_tb", 38: "direction_bt", 39: "direction_rl", 40: "direction_lr", 41: "CLASSDEF", 43: "UNICODE_TEXT", 44: "STYLE_TEXT", 45: "COMMA", 46: "CLASS", 47: "STYLE", 50: "SEMI", 51: "NUM", 52: "BRKT", 53: "ENTITY_NAME", 54: "DECIMAL_NUM", 55: "ENTITY_ONE", 61: "ATTRIBUTE_WORD", 62: "?", 64: ",", 65: "ATTRIBUTE_KEY", 66: "COMMENT", 69: "ZERO_OR_ONE", 70: "ZERO_OR_MORE", 71: "ONE_OR_MORE", 72: "ONLY_ONE", 73: "MD_PARENT", 74: "NON_IDENTIFYING", 75: "IDENTIFYING", 76: "WORD" },
15
+ productions_: [0, [3, 3], [5, 0], [5, 2], [7, 1], [7, 1], [7, 1], [8, 5], [8, 9], [8, 7], [8, 7], [8, 4], [8, 6], [8, 3], [8, 5], [8, 1], [8, 3], [8, 7], [8, 9], [8, 6], [8, 8], [8, 4], [8, 6], [8, 2], [8, 2], [8, 2], [8, 1], [8, 1], [8, 1], [8, 1], [8, 1], [8, 3], [32, 3], [32, 6], [36, 1], [36, 2], [28, 1], [28, 1], [28, 1], [28, 1], [29, 4], [15, 1], [15, 1], [15, 3], [15, 3], [30, 3], [31, 4], [42, 1], [42, 3], [48, 1], [48, 2], [35, 1], [35, 1], [35, 1], [49, 1], [49, 1], [49, 1], [49, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [17, 1], [17, 2], [56, 2], [56, 3], [56, 3], [56, 4], [57, 1], [57, 2], [58, 1], [59, 1], [59, 3], [63, 1], [60, 1], [11, 3], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [68, 1], [68, 1], [13, 1], [13, 1], [13, 1]],
16
+ performAction: /* @__PURE__ */ f(function(a, l, d, i, _, t, $) {
17
+ var e = t.length - 1;
18
+ switch (_) {
19
+ case 1:
20
+ break;
21
+ case 2:
22
+ this.$ = [];
23
+ break;
24
+ case 3:
25
+ this.$ = t[e - 1].concat(t[e]);
26
+ break;
27
+ case 4:
28
+ this.$ = t[e];
29
+ break;
30
+ case 5:
31
+ case 6:
32
+ this.$ = [];
33
+ break;
34
+ case 7:
35
+ i.addEntity(t[e - 4]), i.addEntity(t[e - 2]), i.addRelationship(t[e - 4], t[e], t[e - 2], t[e - 3]), this.$ = [t[e - 4], t[e - 2]];
36
+ break;
37
+ case 8:
38
+ i.addEntity(t[e - 8]), i.addEntity(t[e - 4]), i.addRelationship(t[e - 8], t[e], t[e - 4], t[e - 5]), i.setClass([t[e - 8]], t[e - 6]), i.setClass([t[e - 4]], t[e - 2]), this.$ = [t[e - 8], t[e - 4]];
39
+ break;
40
+ case 9:
41
+ i.addEntity(t[e - 6]), i.addEntity(t[e - 2]), i.addRelationship(t[e - 6], t[e], t[e - 2], t[e - 3]), i.setClass([t[e - 6]], t[e - 4]), this.$ = [t[e - 6], t[e - 2]];
42
+ break;
43
+ case 10:
44
+ i.addEntity(t[e - 6]), i.addEntity(t[e - 4]), i.addRelationship(t[e - 6], t[e], t[e - 4], t[e - 5]), i.setClass([t[e - 4]], t[e - 2]), this.$ = [t[e - 6], t[e - 4]];
45
+ break;
46
+ case 11:
47
+ i.addEntity(t[e - 3]), i.addAttributes(t[e - 3], t[e - 1]), this.$ = [t[e - 3]];
48
+ break;
49
+ case 12:
50
+ i.addEntity(t[e - 5]), i.addAttributes(t[e - 5], t[e - 1]), i.setClass([t[e - 5]], t[e - 3]), this.$ = [t[e - 5]];
51
+ break;
52
+ case 13:
53
+ i.addEntity(t[e - 2]), this.$ = [t[e - 2]];
54
+ break;
55
+ case 14:
56
+ i.addEntity(t[e - 4]), i.setClass([t[e - 4]], t[e - 2]), this.$ = [t[e - 4]];
57
+ break;
58
+ case 15:
59
+ i.addEntity(t[e]), this.$ = [t[e]];
60
+ break;
61
+ case 16:
62
+ i.addEntity(t[e - 2]), i.setClass([t[e - 2]], t[e]), this.$ = [t[e - 2]];
63
+ break;
64
+ case 17:
65
+ i.addEntity(t[e - 6], t[e - 4]), i.addAttributes(t[e - 6], t[e - 1]), this.$ = [t[e - 6]];
66
+ break;
67
+ case 18:
68
+ i.addEntity(t[e - 8], t[e - 6]), i.addAttributes(t[e - 8], t[e - 1]), i.setClass([t[e - 8]], t[e - 3]), this.$ = [t[e - 8]];
69
+ break;
70
+ case 19:
71
+ i.addEntity(t[e - 5], t[e - 3]), this.$ = [t[e - 5]];
72
+ break;
73
+ case 20:
74
+ i.addEntity(t[e - 7], t[e - 5]), i.setClass([t[e - 7]], t[e - 2]), this.$ = [t[e - 7]];
75
+ break;
76
+ case 21:
77
+ i.addEntity(t[e - 3], t[e - 1]);
78
+ break;
79
+ case 22:
80
+ i.addEntity(t[e - 5], t[e - 3]), i.setClass([t[e - 5]], t[e]);
81
+ break;
82
+ case 23:
83
+ case 24:
84
+ this.$ = t[e].trim(), i.setAccTitle(this.$);
85
+ break;
86
+ case 25:
87
+ case 26:
88
+ this.$ = t[e].trim(), i.setAccDescription(this.$);
89
+ break;
90
+ case 27:
91
+ i.subgraphDepth ? this.$ = t[e] : (i.setDirection(t[e].value), this.$ = []);
92
+ break;
93
+ case 31:
94
+ i.subgraphDepth = (i.subgraphDepth || 1) - 1, this.$ = i.addSubGraph({ text: t[e - 2].id }, t[e - 1], { text: t[e - 2].text });
95
+ break;
96
+ case 32:
97
+ i.subgraphDepth = (i.subgraphDepth || 0) + 1, this.$ = { id: t[e - 1], text: t[e - 1] };
98
+ break;
99
+ case 33:
100
+ i.subgraphDepth = (i.subgraphDepth || 0) + 1, this.$ = { id: t[e - 4], text: t[e - 2] };
101
+ break;
102
+ case 34:
103
+ case 59:
104
+ case 60:
105
+ case 61:
106
+ case 62:
107
+ case 86:
108
+ this.$ = t[e];
109
+ break;
110
+ case 35:
111
+ this.$ = t[e - 1] + " " + t[e];
112
+ break;
113
+ case 36:
114
+ this.$ = { stmt: "dir", value: "TB" };
115
+ break;
116
+ case 37:
117
+ this.$ = { stmt: "dir", value: "BT" };
118
+ break;
119
+ case 38:
120
+ this.$ = { stmt: "dir", value: "RL" };
121
+ break;
122
+ case 39:
123
+ this.$ = { stmt: "dir", value: "LR" };
124
+ break;
125
+ case 40:
126
+ this.$ = t[e - 3], i.addClass(t[e - 2], t[e - 1]);
127
+ break;
128
+ case 41:
129
+ case 42:
130
+ case 63:
131
+ case 72:
132
+ this.$ = [t[e]];
133
+ break;
134
+ case 43:
135
+ case 44:
136
+ this.$ = t[e - 2].concat([t[e]]);
137
+ break;
138
+ case 45:
139
+ this.$ = t[e - 2], i.setClass(t[e - 1], t[e]);
140
+ break;
141
+ case 46:
142
+ this.$ = t[e - 3], i.addCssStyles(t[e - 2], t[e - 1]);
143
+ break;
144
+ case 47:
145
+ this.$ = [t[e]];
146
+ break;
147
+ case 48:
148
+ t[e - 2].push(t[e]), this.$ = t[e - 2];
149
+ break;
150
+ case 50:
151
+ this.$ = t[e - 1] + t[e];
152
+ break;
153
+ case 58:
154
+ case 84:
155
+ case 85:
156
+ this.$ = t[e].replace(/"/g, "");
157
+ break;
158
+ case 64:
159
+ t[e].push(t[e - 1]), this.$ = t[e];
160
+ break;
161
+ case 65:
162
+ this.$ = { type: t[e - 1], name: t[e] };
163
+ break;
164
+ case 66:
165
+ this.$ = { type: t[e - 2], name: t[e - 1], keys: t[e] };
166
+ break;
167
+ case 67:
168
+ this.$ = { type: t[e - 2], name: t[e - 1], comment: t[e] };
169
+ break;
170
+ case 68:
171
+ this.$ = { type: t[e - 3], name: t[e - 2], keys: t[e - 1], comment: t[e] };
172
+ break;
173
+ case 69:
174
+ case 71:
175
+ case 74:
176
+ this.$ = t[e];
177
+ break;
178
+ case 70:
179
+ this.$ = t[e - 1] + t[e];
180
+ break;
181
+ case 73:
182
+ t[e - 2].push(t[e]), this.$ = t[e - 2];
183
+ break;
184
+ case 75:
185
+ this.$ = t[e].replace(/"/g, "");
186
+ break;
187
+ case 76:
188
+ this.$ = { cardA: t[e], relType: t[e - 1], cardB: t[e - 2] };
189
+ break;
190
+ case 77:
191
+ this.$ = i.Cardinality.ZERO_OR_ONE;
192
+ break;
193
+ case 78:
194
+ this.$ = i.Cardinality.ZERO_OR_MORE;
195
+ break;
196
+ case 79:
197
+ this.$ = i.Cardinality.ONE_OR_MORE;
198
+ break;
199
+ case 80:
200
+ this.$ = i.Cardinality.ONLY_ONE;
201
+ break;
202
+ case 81:
203
+ this.$ = i.Cardinality.MD_PARENT;
204
+ break;
205
+ case 82:
206
+ this.$ = i.Identification.NON_IDENTIFYING;
207
+ break;
208
+ case 83:
209
+ this.$ = i.Identification.IDENTIFYING;
210
+ break;
211
+ }
212
+ }, "anonymous"),
213
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, s(n, o, { 5: 3 }), { 6: [1, 4], 7: 5, 8: 6, 9: c, 10: 8, 21: r, 23: u, 25: y, 27: g, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 34: k, 37: N, 38: p, 39: b, 40: A, 41: v, 43: O, 46: C, 47: I, 51: x, 53: D, 54: L, 55: w }, s(n, Ot, { 1: [2, 1] }), s(h, [2, 3]), s(h, [2, 4]), s(h, [2, 5]), s(h, [2, 15], { 11: 31, 67: 35, 14: [1, 32], 16: [1, 33], 19: [1, 34], 69: dt, 70: pt, 71: ft, 72: bt, 73: gt }), { 22: [1, 41] }, { 24: [1, 42] }, { 26: [1, 43] }, s(h, [2, 26]), s(h, [2, 27]), s(h, [2, 28]), s(h, [2, 29]), s(h, [2, 30]), s(h, o, { 5: 44 }), s(Z, [2, 58]), s(Z, [2, 59]), s(Z, [2, 60]), s(Z, [2, 61]), s(Z, [2, 62]), s(h, [2, 36]), s(h, [2, 37]), s(h, [2, 38]), s(h, [2, 39]), { 15: 45, 43: V, 44: M }, { 15: 48, 43: V, 44: M }, { 15: 49, 43: V, 44: M }, { 10: 50, 43: O, 51: x, 53: D, 54: L, 55: w }, { 10: 51, 43: O, 51: x, 53: D, 54: L, 55: w }, { 15: 52, 43: V, 44: M }, { 17: 53, 18: [1, 54], 56: 55, 57: 56, 61: j }, { 10: 58, 43: O, 51: x, 53: D, 54: L, 55: w }, { 68: 59, 74: [1, 60], 75: [1, 61] }, s(q, [2, 77]), s(q, [2, 78]), s(q, [2, 79]), s(q, [2, 80]), s(q, [2, 81]), s(h, [2, 23]), s(h, [2, 24]), s(h, [2, 25]), { 6: [1, 63], 7: 5, 8: 6, 9: c, 10: 8, 21: r, 23: u, 25: y, 27: g, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: [1, 62], 34: k, 37: N, 38: p, 39: b, 40: A, 41: v, 43: O, 46: C, 47: I, 51: x, 53: D, 54: L, 55: w }, { 12: W, 42: 64, 44: H, 45: B, 48: 66, 49: 67, 51: Q, 52: X }, s(et, [2, 41]), s(et, [2, 42]), { 15: 72, 43: V, 44: M, 45: B }, { 12: W, 42: 73, 44: H, 45: B, 48: 66, 49: 67, 51: Q, 52: X }, { 6: st, 9: it, 19: [1, 75], 35: 74, 50: rt }, { 12: [1, 79], 14: [1, 80] }, s(h, [2, 16], { 67: 35, 11: 81, 16: [1, 82], 45: B, 69: dt, 70: pt, 71: ft, 72: bt, 73: gt }), { 18: [1, 83] }, s(h, [2, 13]), { 17: 84, 18: [2, 63], 56: 55, 57: 56, 61: j }, { 58: 85, 61: [1, 86] }, { 61: [2, 69], 62: [1, 87] }, { 20: [1, 88] }, { 67: 89, 69: dt, 70: pt, 71: ft, 72: bt, 73: gt }, s(Ct, [2, 82]), s(Ct, [2, 83]), s(h, [2, 31]), s(h, Ot), { 6: st, 9: it, 35: 90, 45: xt, 50: rt }, { 43: [1, 92], 44: [1, 93] }, s(At, [2, 47], { 49: 94, 12: W, 44: H, 51: Q, 52: X }), s(z, [2, 49]), s(z, [2, 54]), s(z, [2, 55]), s(z, [2, 56]), s(z, [2, 57]), s(h, [2, 45], { 45: B }), { 6: st, 9: it, 35: 95, 45: xt, 50: rt }, s(h, [2, 32]), { 10: 97, 36: 96, 43: O, 51: x, 53: D, 54: L, 55: w }, s(h, [2, 51]), s(h, [2, 52]), s(h, [2, 53]), { 13: 98, 43: nt, 53: at, 76: ot }, { 15: 102, 43: V, 44: M }, { 10: 103, 43: O, 51: x, 53: D, 54: L, 55: w }, { 17: 104, 18: [1, 105], 56: 55, 57: 56, 61: j }, s(h, [2, 11]), { 18: [2, 64] }, s(J, [2, 65], { 59: 106, 60: 107, 63: 108, 65: It, 66: Rt }), s([18, 61, 65, 66], [2, 71]), { 61: [2, 70] }, s(h, [2, 21], { 14: [1, 112], 16: [1, 111] }), s([43, 51, 53, 54, 55], [2, 76]), s(h, [2, 40]), { 12: W, 44: H, 48: 113, 49: 67, 51: Q, 52: X }, s(et, [2, 43]), s(et, [2, 44]), s(z, [2, 50]), s(h, [2, 46]), { 10: 115, 20: [1, 114], 43: O, 51: x, 53: D, 54: L, 55: w }, s(vt, [2, 34]), s(h, [2, 7]), s(h, [2, 84]), s(h, [2, 85]), s(h, [2, 86]), { 12: [1, 116], 45: B }, { 12: [1, 118], 14: [1, 117] }, { 18: [1, 119] }, s(h, [2, 14]), s(J, [2, 66], { 60: 120, 64: [1, 121], 66: Rt }), s(J, [2, 67]), s(yt, [2, 72]), s(J, [2, 75]), s(yt, [2, 74]), { 17: 122, 18: [1, 123], 56: 55, 57: 56, 61: j }, { 15: 124, 43: V, 44: M }, s(At, [2, 48], { 49: 94, 12: W, 44: H, 51: Q, 52: X }), { 6: st, 9: it, 35: 125, 50: rt }, s(vt, [2, 35]), { 13: 126, 43: nt, 53: at, 76: ot }, { 15: 127, 43: V, 44: M }, { 13: 128, 43: nt, 53: at, 76: ot }, s(h, [2, 12]), s(J, [2, 68]), { 63: 129, 65: It }, { 18: [1, 130] }, s(h, [2, 19]), s(h, [2, 22], { 16: [1, 131], 45: B }), s(h, [2, 33]), s(h, [2, 10]), { 12: [1, 132], 45: B }, s(h, [2, 9]), s(yt, [2, 73]), s(h, [2, 17]), { 17: 133, 18: [1, 134], 56: 55, 57: 56, 61: j }, { 13: 135, 43: nt, 53: at, 76: ot }, { 18: [1, 136] }, s(h, [2, 20]), s(h, [2, 8]), s(h, [2, 18])],
214
+ defaultActions: { 84: [2, 64], 87: [2, 70] },
215
+ parseError: /* @__PURE__ */ f(function(a, l) {
216
+ if (l.recoverable)
217
+ this.trace(a);
218
+ else {
219
+ var d = new Error(a);
220
+ throw d.hash = l, d;
221
+ }
222
+ }, "parseError"),
223
+ parse: /* @__PURE__ */ f(function(a) {
224
+ var l = this, d = [0], i = [], _ = [null], t = [], $ = this.table, e = "", lt = 0, Dt = 0, Ft = 2, Lt = 1, Yt = t.slice.call(arguments, 1), m = Object.create(this.lexer), Y = { yy: {} };
225
+ for (var kt in this.yy)
226
+ Object.prototype.hasOwnProperty.call(this.yy, kt) && (Y.yy[kt] = this.yy[kt]);
227
+ m.setInput(a, Y.yy), Y.yy.lexer = m, Y.yy.parser = this, typeof m.yylloc > "u" && (m.yylloc = {});
228
+ var mt = m.yylloc;
229
+ t.push(mt);
230
+ var Pt = m.options && m.options.ranges;
231
+ typeof Y.yy.parseError == "function" ? this.parseError = Y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
232
+ function zt(S) {
233
+ d.length = d.length - 2 * S, _.length = _.length - S, t.length = t.length - S;
234
+ }
235
+ f(zt, "popStack");
236
+ function wt() {
237
+ var S;
238
+ return S = i.pop() || m.lex() || Lt, typeof S != "number" && (S instanceof Array && (i = S, S = i.pop()), S = l.symbols_[S] || S), S;
239
+ }
240
+ f(wt, "lex");
241
+ for (var E, P, T, Et, U = {}, ht, R, Vt, ut; ; ) {
242
+ if (P = d[d.length - 1], this.defaultActions[P] ? T = this.defaultActions[P] : ((E === null || typeof E > "u") && (E = wt()), T = $[P] && $[P][E]), typeof T > "u" || !T.length || !T[0]) {
243
+ var St = "";
244
+ ut = [];
245
+ for (ht in $[P])
246
+ this.terminals_[ht] && ht > Ft && ut.push("'" + this.terminals_[ht] + "'");
247
+ m.showPosition ? St = "Parse error on line " + (lt + 1) + `:
248
+ ` + m.showPosition() + `
249
+ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : St = "Parse error on line " + (lt + 1) + ": Unexpected " + (E == Lt ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(St, {
250
+ text: m.match,
251
+ token: this.terminals_[E] || E,
252
+ line: m.yylineno,
253
+ loc: mt,
254
+ expected: ut
255
+ });
256
+ }
257
+ if (T[0] instanceof Array && T.length > 1)
258
+ throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + E);
259
+ switch (T[0]) {
260
+ case 1:
261
+ d.push(E), _.push(m.yytext), t.push(m.yylloc), d.push(T[1]), E = null, Dt = m.yyleng, e = m.yytext, lt = m.yylineno, mt = m.yylloc;
262
+ break;
263
+ case 2:
264
+ if (R = this.productions_[T[1]][1], U.$ = _[_.length - R], U._$ = {
265
+ first_line: t[t.length - (R || 1)].first_line,
266
+ last_line: t[t.length - 1].last_line,
267
+ first_column: t[t.length - (R || 1)].first_column,
268
+ last_column: t[t.length - 1].last_column
269
+ }, Pt && (U._$.range = [
270
+ t[t.length - (R || 1)].range[0],
271
+ t[t.length - 1].range[1]
272
+ ]), Et = this.performAction.apply(U, [
273
+ e,
274
+ Dt,
275
+ lt,
276
+ Y.yy,
277
+ T[1],
278
+ _,
279
+ t
280
+ ].concat(Yt)), typeof Et < "u")
281
+ return Et;
282
+ R && (d = d.slice(0, -1 * R * 2), _ = _.slice(0, -1 * R), t = t.slice(0, -1 * R)), d.push(this.productions_[T[1]][0]), _.push(U.$), t.push(U._$), Vt = $[d[d.length - 2]][d[d.length - 1]], d.push(Vt);
283
+ break;
284
+ case 3:
285
+ return !0;
286
+ }
287
+ }
288
+ return !0;
289
+ }, "parse")
290
+ }, Gt = /* @__PURE__ */ (function() {
291
+ var G = {
292
+ EOF: 1,
293
+ parseError: /* @__PURE__ */ f(function(l, d) {
294
+ if (this.yy.parser)
295
+ this.yy.parser.parseError(l, d);
296
+ else
297
+ throw new Error(l);
298
+ }, "parseError"),
299
+ // resets the lexer, sets new input
300
+ setInput: /* @__PURE__ */ f(function(a, l) {
301
+ return this.yy = l || this.yy || {}, this._input = a, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
302
+ first_line: 1,
303
+ first_column: 0,
304
+ last_line: 1,
305
+ last_column: 0
306
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
307
+ }, "setInput"),
308
+ // consumes and returns one char from the input
309
+ input: /* @__PURE__ */ f(function() {
310
+ var a = this._input[0];
311
+ this.yytext += a, this.yyleng++, this.offset++, this.match += a, this.matched += a;
312
+ var l = a.match(/(?:\r\n?|\n).*/g);
313
+ return l ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), a;
314
+ }, "input"),
315
+ // unshifts one char (or a string) into the input
316
+ unput: /* @__PURE__ */ f(function(a) {
317
+ var l = a.length, d = a.split(/(?:\r\n?|\n)/g);
318
+ this._input = a + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
319
+ var i = this.match.split(/(?:\r\n?|\n)/g);
320
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), d.length - 1 && (this.yylineno -= d.length - 1);
321
+ var _ = this.yylloc.range;
322
+ return this.yylloc = {
323
+ first_line: this.yylloc.first_line,
324
+ last_line: this.yylineno + 1,
325
+ first_column: this.yylloc.first_column,
326
+ last_column: d ? (d.length === i.length ? this.yylloc.first_column : 0) + i[i.length - d.length].length - d[0].length : this.yylloc.first_column - l
327
+ }, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
328
+ }, "unput"),
329
+ // When called from action, caches matched text and appends it on next action
330
+ more: /* @__PURE__ */ f(function() {
331
+ return this._more = !0, this;
332
+ }, "more"),
333
+ // 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.
334
+ reject: /* @__PURE__ */ f(function() {
335
+ if (this.options.backtrack_lexer)
336
+ this._backtrack = !0;
337
+ else
338
+ 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).
339
+ ` + this.showPosition(), {
340
+ text: "",
341
+ token: null,
342
+ line: this.yylineno
343
+ });
344
+ return this;
345
+ }, "reject"),
346
+ // retain first n characters of the match
347
+ less: /* @__PURE__ */ f(function(a) {
348
+ this.unput(this.match.slice(a));
349
+ }, "less"),
350
+ // displays already matched input, i.e. for error messages
351
+ pastInput: /* @__PURE__ */ f(function() {
352
+ var a = this.matched.substr(0, this.matched.length - this.match.length);
353
+ return (a.length > 20 ? "..." : "") + a.substr(-20).replace(/\n/g, "");
354
+ }, "pastInput"),
355
+ // displays upcoming input, i.e. for error messages
356
+ upcomingInput: /* @__PURE__ */ f(function() {
357
+ var a = this.match;
358
+ return a.length < 20 && (a += this._input.substr(0, 20 - a.length)), (a.substr(0, 20) + (a.length > 20 ? "..." : "")).replace(/\n/g, "");
359
+ }, "upcomingInput"),
360
+ // displays the character position where the lexing error occurred, i.e. for error messages
361
+ showPosition: /* @__PURE__ */ f(function() {
362
+ var a = this.pastInput(), l = new Array(a.length + 1).join("-");
363
+ return a + this.upcomingInput() + `
364
+ ` + l + "^";
365
+ }, "showPosition"),
366
+ // test the lexed token: return FALSE when not a match, otherwise return token
367
+ test_match: /* @__PURE__ */ f(function(a, l) {
368
+ var d, i, _;
369
+ if (this.options.backtrack_lexer && (_ = {
370
+ yylineno: this.yylineno,
371
+ yylloc: {
372
+ first_line: this.yylloc.first_line,
373
+ last_line: this.last_line,
374
+ first_column: this.yylloc.first_column,
375
+ last_column: this.yylloc.last_column
376
+ },
377
+ yytext: this.yytext,
378
+ match: this.match,
379
+ matches: this.matches,
380
+ matched: this.matched,
381
+ yyleng: this.yyleng,
382
+ offset: this.offset,
383
+ _more: this._more,
384
+ _input: this._input,
385
+ yy: this.yy,
386
+ conditionStack: this.conditionStack.slice(0),
387
+ done: this.done
388
+ }, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), i = a[0].match(/(?:\r\n?|\n).*/g), i && (this.yylineno += i.length), this.yylloc = {
389
+ first_line: this.yylloc.last_line,
390
+ last_line: this.yylineno + 1,
391
+ first_column: this.yylloc.last_column,
392
+ last_column: i ? i[i.length - 1].length - i[i.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + a[0].length
393
+ }, this.yytext += a[0], this.match += a[0], this.matches = a, 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(a[0].length), this.matched += a[0], d = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), d)
394
+ return d;
395
+ if (this._backtrack) {
396
+ for (var t in _)
397
+ this[t] = _[t];
398
+ return !1;
399
+ }
400
+ return !1;
401
+ }, "test_match"),
402
+ // return next match in input
403
+ next: /* @__PURE__ */ f(function() {
404
+ if (this.done)
405
+ return this.EOF;
406
+ this._input || (this.done = !0);
407
+ var a, l, d, i;
408
+ this._more || (this.yytext = "", this.match = "");
409
+ for (var _ = this._currentRules(), t = 0; t < _.length; t++)
410
+ if (d = this._input.match(this.rules[_[t]]), d && (!l || d[0].length > l[0].length)) {
411
+ if (l = d, i = t, this.options.backtrack_lexer) {
412
+ if (a = this.test_match(d, _[t]), a !== !1)
413
+ return a;
414
+ if (this._backtrack) {
415
+ l = !1;
416
+ continue;
417
+ } else
418
+ return !1;
419
+ } else if (!this.options.flex)
420
+ break;
421
+ }
422
+ return l ? (a = this.test_match(l, _[i]), a !== !1 ? a : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
423
+ ` + this.showPosition(), {
424
+ text: "",
425
+ token: null,
426
+ line: this.yylineno
427
+ });
428
+ }, "next"),
429
+ // return next match that has a token
430
+ lex: /* @__PURE__ */ f(function() {
431
+ var l = this.next();
432
+ return l || this.lex();
433
+ }, "lex"),
434
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
435
+ begin: /* @__PURE__ */ f(function(l) {
436
+ this.conditionStack.push(l);
437
+ }, "begin"),
438
+ // pop the previously active lexer condition state off the condition stack
439
+ popState: /* @__PURE__ */ f(function() {
440
+ var l = this.conditionStack.length - 1;
441
+ return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
442
+ }, "popState"),
443
+ // produce the lexer rule set which is active for the currently active lexer condition state
444
+ _currentRules: /* @__PURE__ */ f(function() {
445
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
446
+ }, "_currentRules"),
447
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
448
+ topState: /* @__PURE__ */ f(function(l) {
449
+ return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
450
+ }, "topState"),
451
+ // alias for begin(condition)
452
+ pushState: /* @__PURE__ */ f(function(l) {
453
+ this.begin(l);
454
+ }, "pushState"),
455
+ // return the number of states currently on the stack
456
+ stateStackSize: /* @__PURE__ */ f(function() {
457
+ return this.conditionStack.length;
458
+ }, "stateStackSize"),
459
+ options: { "case-insensitive": !0 },
460
+ performAction: /* @__PURE__ */ f(function(l, d, i, _) {
461
+ switch (i) {
462
+ case 0:
463
+ return this.begin("acc_title"), 23;
464
+ case 1:
465
+ return this.popState(), "acc_title_value";
466
+ case 2:
467
+ return this.begin("acc_descr"), 25;
468
+ case 3:
469
+ return this.popState(), "acc_descr_value";
470
+ case 4:
471
+ this.begin("acc_descr_multiline");
472
+ break;
473
+ case 5:
474
+ this.popState();
475
+ break;
476
+ case 6:
477
+ return "acc_descr_multiline_value";
478
+ case 7:
479
+ return 37;
480
+ case 8:
481
+ return 38;
482
+ case 9:
483
+ return 39;
484
+ case 10:
485
+ return 40;
486
+ case 11:
487
+ break;
488
+ case 12:
489
+ return 9;
490
+ case 13:
491
+ return 53;
492
+ case 14:
493
+ return 76;
494
+ case 15:
495
+ return 4;
496
+ case 16:
497
+ return this.begin("block"), 16;
498
+ case 17:
499
+ return 52;
500
+ case 18:
501
+ return 52;
502
+ case 19:
503
+ return 45;
504
+ case 20:
505
+ return 14;
506
+ case 21:
507
+ return 12;
508
+ case 22:
509
+ break;
510
+ case 23:
511
+ return 65;
512
+ case 24:
513
+ return 61;
514
+ case 25:
515
+ return 61;
516
+ case 26:
517
+ this.begin("block_bq");
518
+ break;
519
+ case 27:
520
+ return 61;
521
+ case 28:
522
+ this.popState();
523
+ break;
524
+ case 29:
525
+ return 66;
526
+ case 30:
527
+ break;
528
+ case 31:
529
+ return this.popState(), 18;
530
+ case 32:
531
+ return d.yytext[0];
532
+ case 33:
533
+ return 19;
534
+ case 34:
535
+ return 20;
536
+ case 35:
537
+ return this.begin("style"), 47;
538
+ case 36:
539
+ return this.popState(), 9;
540
+ case 37:
541
+ break;
542
+ case 38:
543
+ return 12;
544
+ case 39:
545
+ return 45;
546
+ case 40:
547
+ return 52;
548
+ case 41:
549
+ return this.begin("style"), 41;
550
+ case 42:
551
+ return 46;
552
+ case 43:
553
+ return 34;
554
+ case 44:
555
+ return 33;
556
+ case 45:
557
+ return 69;
558
+ case 46:
559
+ return 71;
560
+ case 47:
561
+ return 71;
562
+ case 48:
563
+ return 71;
564
+ case 49:
565
+ return 69;
566
+ case 50:
567
+ return 69;
568
+ case 51:
569
+ return 70;
570
+ case 52:
571
+ return 70;
572
+ case 53:
573
+ return 70;
574
+ case 54:
575
+ return 70;
576
+ case 55:
577
+ return 70;
578
+ case 56:
579
+ return 71;
580
+ case 57:
581
+ return 70;
582
+ case 58:
583
+ return 71;
584
+ case 59:
585
+ return 72;
586
+ case 60:
587
+ return 72;
588
+ case 61:
589
+ return 54;
590
+ case 62:
591
+ return 72;
592
+ case 63:
593
+ return 72;
594
+ case 64:
595
+ return 72;
596
+ case 65:
597
+ return 55;
598
+ case 66:
599
+ return 51;
600
+ case 67:
601
+ return 72;
602
+ case 68:
603
+ return 69;
604
+ case 69:
605
+ return 70;
606
+ case 70:
607
+ return 71;
608
+ case 71:
609
+ return 73;
610
+ case 72:
611
+ return 74;
612
+ case 73:
613
+ return 75;
614
+ case 74:
615
+ return 75;
616
+ case 75:
617
+ return 74;
618
+ case 76:
619
+ return 74;
620
+ case 77:
621
+ return 74;
622
+ case 78:
623
+ return 44;
624
+ case 79:
625
+ return 50;
626
+ case 80:
627
+ return 43;
628
+ case 81:
629
+ return d.yytext[0];
630
+ case 82:
631
+ return 6;
632
+ }
633
+ }, "anonymous"),
634
+ rules: [/^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:[ \t\r]+)/i, /^(?:[\n]+)/i, /^(?:"[^"%\r\n\v\b\\]+")/i, /^(?:"[^"]*")/i, /^(?:erDiagram\b)/i, /^(?:\{)/i, /^(?:#)/i, /^(?:#)/i, /^(?:,)/i, /^(?::::)/i, /^(?::)/i, /^(?:\s+)/i, /^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i, /^(?:([^\s]*)[~].*[~]([^\s]*))/i, /^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i, /^(?:[`])/i, /^(?:[^`]+)/i, /^(?:[`])/i, /^(?:"[^"]*")/i, /^(?:[\n]+)/i, /^(?:\})/i, /^(?:.)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:style\b)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?::)/i, /^(?:,)/i, /^(?:#)/i, /^(?:classDef\b)/i, /^(?:class\b)/i, /^(?:subgraph\b)/i, /^(?:end\b\s*)/i, /^(?:one or zero\b)/i, /^(?:one or more\b)/i, /^(?:one or many\b)/i, /^(?:1\+)/i, /^(?:\|o\b)/i, /^(?:zero or one\b)/i, /^(?:zero or more\b)/i, /^(?:zero or many\b)/i, /^(?:0\+)/i, /^(?:\}o\b)/i, /^(?:many\(0\))/i, /^(?:many\(1\))/i, /^(?:many\b)/i, /^(?:\}\|)/i, /^(?:one\b)/i, /^(?:only one\b)/i, /^(?:[0-9]+\.[0-9]+)/i, /^(?:1(?=\s+[A-Za-z_"']))/i, /^(?:1(?=\s+[0-9]))/i, /^(?:1(?=(--|\.\.|\.-|-\.)))/i, /^(?:1\b)/i, /^(?:[0-9]+)/i, /^(?:\|\|)/i, /^(?:o\|)/i, /^(?:o\{)/i, /^(?:\|\{)/i, /^(?:u(?=[\.\-\|]))/i, /^(?:\.\.)/i, /^(?:--)/i, /^(?:to\b)/i, /^(?:optionally to\b)/i, /^(?:\.-)/i, /^(?:-\.)/i, /^(?:([^\x00-\x7F]|\w|-|\*)+)/i, /^(?:;)/i, /^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i, /^(?:.)/i, /^(?:$)/i],
635
+ conditions: { style: { rules: [36, 37, 38, 39, 40, 78, 79], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, block_bq: { rules: [27, 28], inclusive: !1 }, block: { rules: [22, 23, 24, 25, 26, 29, 30, 31, 32], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 33, 34, 35, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 80, 81, 82], inclusive: !0 } }
636
+ };
637
+ return G;
638
+ })();
639
+ _t.lexer = Gt;
640
+ function ct() {
641
+ this.yy = {};
642
+ }
643
+ return f(ct, "Parser"), ct.prototype = _t, _t.Parser = ct, new ct();
644
+ })();
645
+ Nt.parser = Nt;
646
+ var ue = Nt, K, de = (K = class {
647
+ constructor() {
648
+ this.entities = /* @__PURE__ */ new Map(), this.relationships = [], this.classes = /* @__PURE__ */ new Map(), this.subgraphDepth = 0, this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.subCount = 0, this.direction = "TB", this.Cardinality = {
649
+ ZERO_OR_ONE: "ZERO_OR_ONE",
650
+ ZERO_OR_MORE: "ZERO_OR_MORE",
651
+ ONE_OR_MORE: "ONE_OR_MORE",
652
+ ONLY_ONE: "ONLY_ONE",
653
+ MD_PARENT: "MD_PARENT"
654
+ }, this.Identification = {
655
+ NON_IDENTIFYING: "NON_IDENTIFYING",
656
+ IDENTIFYING: "IDENTIFYING"
657
+ }, this.setAccTitle = Zt, this.getAccTitle = jt, this.setAccDescription = qt, this.getAccDescription = Wt, this.setDiagramTitle = Ht, this.getDiagramTitle = Qt, this.getConfig = /* @__PURE__ */ f(() => tt().er, "getConfig"), this.clear(), this.addEntity = this.addEntity.bind(this), this.addAttributes = this.addAttributes.bind(this), this.addRelationship = this.addRelationship.bind(this), this.setDirection = this.setDirection.bind(this), this.addCssStyles = this.addCssStyles.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.setAccTitle = this.setAccTitle.bind(this), this.setAccDescription = this.setAccDescription.bind(this), this.addSubGraph = this.addSubGraph.bind(this);
658
+ }
659
+ /**
660
+ * Add entity
661
+ * @param name - The name of the entity
662
+ * @param alias - The alias of the entity
663
+ */
664
+ addEntity(n, o = "") {
665
+ return this.entities.has(n) ? !this.entities.get(n)?.alias && o && (this.entities.get(n).alias = o, F.info(`Add alias '${o}' to entity '${n}'`)) : (this.entities.set(n, {
666
+ id: `entity-${n}-${this.entities.size}`,
667
+ label: n,
668
+ attributes: [],
669
+ alias: o,
670
+ shape: "erBox",
671
+ look: tt().look ?? "default",
672
+ cssClasses: "default",
673
+ cssStyles: [],
674
+ labelType: "markdown"
675
+ }), F.info("Added new entity :", n)), this.entities.get(n);
676
+ }
677
+ getEntity(n) {
678
+ return this.entities.get(n);
679
+ }
680
+ getEntities() {
681
+ return this.entities;
682
+ }
683
+ getClasses() {
684
+ return this.classes;
685
+ }
686
+ addAttributes(n, o) {
687
+ const c = this.addEntity(n);
688
+ let r;
689
+ for (r = o.length - 1; r >= 0; r--)
690
+ o[r].keys || (o[r].keys = []), o[r].comment || (o[r].comment = ""), c.attributes.push(o[r]), F.debug("Added attribute ", o[r].name);
691
+ }
692
+ /**
693
+ * Add a relationship
694
+ *
695
+ * @param entA - The first entity in the relationship
696
+ * @param rolA - The role played by the first entity in relation to the second
697
+ * @param entB - The second entity in the relationship
698
+ * @param rSpec - The details of the relationship between the two entities
699
+ */
700
+ addRelationship(n, o, c, r) {
701
+ let u;
702
+ if (this.subGraphLookup.has(n))
703
+ u = n;
704
+ else {
705
+ const k = this.addEntity(n);
706
+ if (!k)
707
+ return;
708
+ u = k.id;
709
+ }
710
+ let y;
711
+ if (this.subGraphLookup.has(c))
712
+ y = c;
713
+ else {
714
+ const k = this.addEntity(c);
715
+ if (!k)
716
+ return;
717
+ y = k.id;
718
+ }
719
+ const g = {
720
+ entityA: u,
721
+ roleA: o,
722
+ entityB: y,
723
+ relSpec: r
724
+ };
725
+ this.relationships.push(g), F.debug("Added new relationship :", g);
726
+ }
727
+ getRelationships() {
728
+ return this.relationships;
729
+ }
730
+ getDirection() {
731
+ return this.direction;
732
+ }
733
+ setDirection(n) {
734
+ this.direction = n;
735
+ }
736
+ getCompiledStyles(n) {
737
+ let o = [];
738
+ for (const c of n) {
739
+ const r = this.classes.get(c);
740
+ r?.styles && (o = [...o, ...r.styles ?? []].map((u) => u.trim())), r?.textStyles && (o = [...o, ...r.textStyles ?? []].map((u) => u.trim()));
741
+ }
742
+ return o;
743
+ }
744
+ addCssStyles(n, o) {
745
+ for (const c of n) {
746
+ const r = this.entities.get(c), u = this.subGraphLookup.get(c);
747
+ if (o) {
748
+ if (r)
749
+ for (const y of o)
750
+ r.cssStyles.push(y);
751
+ if (u) {
752
+ u.cssStyles || (u.cssStyles = []);
753
+ for (const y of o)
754
+ u.cssStyles.push(y);
755
+ }
756
+ }
757
+ }
758
+ }
759
+ addClass(n, o) {
760
+ n.forEach((c) => {
761
+ let r = this.classes.get(c);
762
+ r === void 0 && (r = { id: c, styles: [], textStyles: [] }, this.classes.set(c, r)), o && o.forEach(function(u) {
763
+ if (/color/.exec(u)) {
764
+ const y = u.replace("fill", "bgFill");
765
+ r.textStyles.push(y);
766
+ }
767
+ r.styles.push(u);
768
+ });
769
+ });
770
+ }
771
+ addSubGraph(n, o, c) {
772
+ let r = n.text.trim(), u = c.text;
773
+ const g = (/* @__PURE__ */ f((b) => {
774
+ const A = /* @__PURE__ */ new Set();
775
+ let v;
776
+ return { nodeList: b.filter((C) => {
777
+ if (C?.stmt)
778
+ return C.stmt === "dir" && (v = C.value), !1;
779
+ if (typeof C != "string")
780
+ return !1;
781
+ const I = C.trim();
782
+ return !I || A.has(I) ? !1 : (A.add(I), !0);
783
+ }), dir: v };
784
+ }, "uniq"))(o.flat()), k = g.nodeList, N = g.dir;
785
+ r = r ?? "subGraph" + this.subCount, u = u || "", u = this.sanitizeText(u), this.subCount = this.subCount + 1;
786
+ const p = {
787
+ id: r,
788
+ nodes: k,
789
+ title: u.trim(),
790
+ classes: [],
791
+ cssStyles: [],
792
+ dir: N,
793
+ labelType: this.sanitizeNodeLabelType(c?.type)
794
+ };
795
+ return F.info("Adding", p.id, p.nodes, p.dir), p.nodes = this.makeUniq(p, this.subGraphs).nodes, this.subGraphs.push(p), this.subGraphLookup.set(r, p), r;
796
+ }
797
+ getSubGraphs() {
798
+ return this.subGraphs;
799
+ }
800
+ setClass(n, o) {
801
+ for (const c of n) {
802
+ const r = this.entities.get(c);
803
+ if (r)
804
+ for (const y of o)
805
+ r.cssClasses += " " + y;
806
+ const u = this.subGraphLookup.get(c);
807
+ if (u)
808
+ for (const y of o)
809
+ u.classes.push(y);
810
+ }
811
+ }
812
+ /**
813
+ * Build a quick lookup for all node IDs already assigned to existing subgraphs.
814
+ */
815
+ subgraphNodeCache(n) {
816
+ const o = /* @__PURE__ */ new Set();
817
+ for (const c of n)
818
+ for (const r of c.nodes)
819
+ o.add(r);
820
+ return o;
821
+ }
822
+ /**
823
+ * Filter out nodes that are already part of another subgraph,
824
+ * keeping subgraph membership unique.
825
+ */
826
+ makeUniq(n, o) {
827
+ const c = this.subgraphNodeCache(o), r = [];
828
+ return n.nodes.forEach((u, y) => {
829
+ c.has(u) ? F.warn(`Entity '${u}' already belongs to another subgraph and will be ignored`) : r.push(n.nodes[y]);
830
+ }), { nodes: r };
831
+ }
832
+ sanitizeText(n) {
833
+ return Xt.sanitizeText(n, tt());
834
+ }
835
+ sanitizeNodeLabelType(n) {
836
+ switch (n) {
837
+ case "markdown":
838
+ case "string":
839
+ case "text":
840
+ return n;
841
+ default:
842
+ return "markdown";
843
+ }
844
+ }
845
+ clear() {
846
+ this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [], this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.subCount = 0, this.subgraphDepth = 0, Jt();
847
+ }
848
+ getData() {
849
+ const n = [], o = [], c = tt(), r = this.getSubGraphs(), u = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map();
850
+ for (let p = r.length - 1; p >= 0; p--) {
851
+ const b = r[p];
852
+ b.nodes.length > 0 && y.set(b.id, !0);
853
+ for (const A of b.nodes)
854
+ u.set(A, b.id);
855
+ }
856
+ for (let p = r.length - 1; p >= 0; p--) {
857
+ const b = r[p];
858
+ n.push({
859
+ id: b.id,
860
+ label: b.title,
861
+ labelStyle: "",
862
+ labelType: b.labelType,
863
+ parentId: u.get(b.id),
864
+ padding: 8,
865
+ cssCompiledStyles: this.getCompiledStyles(b.classes),
866
+ cssStyles: b.cssStyles,
867
+ cssClasses: b.classes.join(" "),
868
+ shape: "rect",
869
+ dir: b.dir,
870
+ isGroup: !0,
871
+ look: c.look
872
+ });
873
+ }
874
+ const g = new Set(r.map((p) => p.id));
875
+ let k = 0;
876
+ for (const p of this.entities.keys()) {
877
+ if (g.has(p))
878
+ continue;
879
+ const b = this.entities.get(p);
880
+ b && (b.cssCompiledStyles = this.getCompiledStyles(b.cssClasses.split(" ")), b.colorIndex = k++, n.push({
881
+ ...b,
882
+ parentId: u.get(p),
883
+ isGroup: !1
884
+ }));
885
+ }
886
+ let N = 0;
887
+ for (const p of this.relationships) {
888
+ const b = {
889
+ id: $t(p.entityA, p.entityB, {
890
+ prefix: "id",
891
+ counter: N++
892
+ }),
893
+ type: "normal",
894
+ curve: "basis",
895
+ start: p.entityA,
896
+ end: p.entityB,
897
+ label: p.roleA,
898
+ labelpos: "c",
899
+ thickness: "normal",
900
+ classes: "relationshipLine",
901
+ arrowTypeStart: p.relSpec.cardB.toLowerCase(),
902
+ arrowTypeEnd: p.relSpec.cardA.toLowerCase(),
903
+ pattern: p.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
904
+ look: c.look,
905
+ labelType: "markdown"
906
+ };
907
+ o.push(b);
908
+ }
909
+ return { nodes: n, edges: o, other: {}, config: c, direction: this.direction };
910
+ }
911
+ }, f(K, "ErDB"), K), Bt = {};
912
+ ne(Bt, {
913
+ draw: () => pe
914
+ });
915
+ var pe = /* @__PURE__ */ f(async function(s, n, o, c) {
916
+ F.info("REF0:"), F.info("Drawing er diagram (unified)", n);
917
+ const { securityLevel: r, er: u, layout: y } = tt(), g = c.db.getData(), k = Ut(n, r);
918
+ g.type = c.type, g.layoutAlgorithm = ae(y), g.config.flowchart.nodeSpacing = u?.nodeSpacing || 140, g.config.flowchart.rankSpacing = u?.rankSpacing || 80, g.direction = c.db.getDirection();
919
+ const { config: N } = g, { look: p } = N;
920
+ p === "neo" ? g.markers = [
921
+ "only_one_neo",
922
+ "zero_or_one_neo",
923
+ "one_or_more_neo",
924
+ "zero_or_more_neo"
925
+ ] : g.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], g.diagramId = n, await oe(g, k);
926
+ const b = k.selectAll('[id*="-background"]');
927
+ Array.from(b).length > 0 && b.each(function() {
928
+ const v = ce(this), C = v.attr("id").replace("-background", ""), I = k.select(`#${CSS.escape(C)}`);
929
+ if (!I.empty()) {
930
+ const x = I.attr("transform");
931
+ v.attr("transform", x);
932
+ }
933
+ });
934
+ const A = 8;
935
+ le.insertTitle(
936
+ k,
937
+ "erDiagramTitleText",
938
+ u?.titleTopMargin ?? 25,
939
+ c.db.getDiagramTitle()
940
+ ), Kt(k, A, "erDiagram", u?.useMaxWidth ?? !0);
941
+ }, "draw"), Mt = /* @__PURE__ */ f((s, n) => {
942
+ const o = he, c = o(s, "r"), r = o(s, "g"), u = o(s, "b");
943
+ return re(c, r, u, n);
944
+ }, "fade"), fe = /* @__PURE__ */ f((s) => {
945
+ const { theme: n, bkgColorArray: o, borderColorArray: c } = s;
946
+ if (!te(n, c))
947
+ return "";
948
+ const r = ee(s.look), u = se(o);
949
+ let y = "";
950
+ for (let g = 0; g < ie(c); g++) {
951
+ const k = c[g], N = u ? `fill: ${o[g % o.length]};` : "";
952
+ y += `
953
+
954
+ [data-look="${r}"][data-color-id="color-${g}"].node path {
955
+ stroke: ${k};
956
+ ${N}
957
+ }
958
+
959
+ [data-look="${r}"][data-color-id="color-${g}"].node rect {
960
+ stroke: ${k};
961
+ ${N}
962
+ }
963
+ `;
964
+ }
965
+ return y;
966
+ }, "genColor"), be = /* @__PURE__ */ f((s) => {
967
+ const { look: n, theme: o, erEdgeLabelBackground: c, strokeWidth: r } = s;
968
+ return `
969
+ ${fe(s)}
970
+ .entityBox {
971
+ fill: ${s.mainBkg};
972
+ stroke: ${s.nodeBorder};
973
+ }
974
+
975
+ .relationshipLabelBox {
976
+ fill: ${s.tertiaryColor};
977
+ opacity: 0.7;
978
+ background-color: ${s.tertiaryColor};
979
+ rect {
980
+ opacity: 0.5;
981
+ }
982
+ }
983
+
984
+ .labelBkg {
985
+ background-color: ${Tt.has(o) && c ? c : Mt(s.tertiaryColor, 0.5)};
986
+ }
987
+
988
+ .edgeLabel {
989
+ background-color: ${Tt.has(o) && c ? c : s.edgeLabelBackground};
990
+ }
991
+ .edgeLabel .label rect {
992
+ fill: ${Tt.has(o) && c ? c : s.edgeLabelBackground};
993
+ }
994
+ .edgeLabel .label text {
995
+ fill: ${s.textColor};
996
+ }
997
+
998
+ .edgeLabel .label {
999
+ fill: ${s.nodeBorder};
1000
+ font-size: 14px;
1001
+ }
1002
+
1003
+ .label {
1004
+ font-family: ${s.fontFamily};
1005
+ color: ${s.nodeTextColor || s.textColor};
1006
+ }
1007
+
1008
+ .edge-pattern-dashed {
1009
+ stroke-dasharray: 8,8;
1010
+ }
1011
+
1012
+ .node rect,
1013
+ .node circle,
1014
+ .node ellipse,
1015
+ .node polygon
1016
+ {
1017
+ fill: ${s.mainBkg};
1018
+ stroke: ${s.nodeBorder};
1019
+ stroke-width: ${n === "neo" ? r : "1px"};
1020
+ }
1021
+
1022
+ .relationshipLine {
1023
+ stroke: ${s.lineColor};
1024
+ stroke-width: ${n === "neo" ? r : "1px"};
1025
+ fill: none;
1026
+ }
1027
+
1028
+ .marker {
1029
+ fill: none !important;
1030
+ stroke: ${s.lineColor} !important;
1031
+ stroke-width: 1;
1032
+ }
1033
+ [data-look=neo].labelBkg {
1034
+ background-color: ${Mt(s.tertiaryColor, 0.5)};
1035
+ }
1036
+
1037
+ .cluster rect {
1038
+ fill: ${s.clusterBkg ?? s.mainBkg};
1039
+ stroke: ${s.clusterBorder ?? s.nodeBorder};
1040
+ stroke-width: 1px;
1041
+ }
1042
+
1043
+ .cluster text {
1044
+ fill: ${s.titleColor ?? s.textColor};
1045
+ }
1046
+
1047
+ .cluster-label text {
1048
+ fill: ${s.titleColor ?? s.textColor};
1049
+ }
1050
+ `;
1051
+ }, "getStyles"), ge = be, Ee = {
1052
+ parser: ue,
1053
+ get db() {
1054
+ return new de();
1055
+ },
1056
+ renderer: Bt,
1057
+ styles: ge
1058
+ };
1059
+ export {
1060
+ Ee as diagram
1061
+ };