@qwen-code/web-shell 0.27.1 → 0.27.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/NOTICES.txt +10721 -958
  2. package/dist/{PierreFilePreview-BT_JRIvF.js → PierreFilePreview-CVi_Wsf-.js} +1 -1
  3. package/dist/SpreadsheetPreview-CTyYrLmD.js +379 -0
  4. package/dist/{WorkspaceFileBrowser-G1yA2eBf.js → WorkspaceFileBrowser-DkQgnDFv.js} +2 -2
  5. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  6. package/dist/abnfDiagram-VCTEODGH-CQWhk3bg.js +87 -0
  7. package/dist/abnfDiagram-VCTEODGH-DXK3iWaN.js +87 -0
  8. package/dist/{agents-route-bkxyBAkN.js → agents-route-ZD8W2lTb.js} +2 -2
  9. package/dist/arc-BcP3aO-G.js +83 -0
  10. package/dist/arc-DkZAOzaU.js +83 -0
  11. package/dist/architectureDiagram-5GKGNRK7-DhcVEkLQ.js +4775 -0
  12. package/dist/architectureDiagram-5GKGNRK7-DusU8ybk.js +4776 -0
  13. package/dist/blockDiagram-NRAW4CY4-BMOuo5wl.js +1414 -0
  14. package/dist/blockDiagram-NRAW4CY4-YciA8-8I.js +1414 -0
  15. package/dist/c4Diagram-UCG6FXSJ-BJxpHO4v.js +1508 -0
  16. package/dist/c4Diagram-UCG6FXSJ-DNpq-cdF.js +1508 -0
  17. package/dist/channel-CfhQTpjX.js +5 -0
  18. package/dist/channel-QZAYPfF8.js +5 -0
  19. package/dist/chunk-2Q5K7J3B-EGbMOnEe.js +15 -0
  20. package/dist/chunk-2Q5K7J3B-mtpkChaF.js +15 -0
  21. package/dist/chunk-5VM5RSS4-CP4Q2W8n.js +19 -0
  22. package/dist/chunk-5VM5RSS4-CucJ3wyB.js +19 -0
  23. package/dist/chunk-F27PBJKO-CS9kzvAx.js +68 -0
  24. package/dist/chunk-F27PBJKO-Cfw_29T-.js +68 -0
  25. package/dist/chunk-G27WJ6UU-BZzmQ8FW.js +1408 -0
  26. package/dist/chunk-G27WJ6UU-DdeEiwmL.js +1408 -0
  27. package/dist/chunk-JWPE2WC7-BL_hjRLf.js +8 -0
  28. package/dist/chunk-JWPE2WC7-C03UDQBx.js +8 -0
  29. package/dist/chunk-LCL6LL3I-CNn3XyuL.js +1533 -0
  30. package/dist/chunk-LCL6LL3I-CR-IGGIM.js +1533 -0
  31. package/dist/chunk-POPQ4Y6H-BVQbxVHz.js +19 -0
  32. package/dist/chunk-POPQ4Y6H-UJK1fYGP.js +19 -0
  33. package/dist/chunk-SVP7TREG-B-E-xFG8.js +664 -0
  34. package/dist/chunk-SVP7TREG-BUmyTmov.js +664 -0
  35. package/dist/chunk-XXDRQBXY-BDcf4DQz.js +8 -0
  36. package/dist/chunk-XXDRQBXY-BHAq0mtL.js +8 -0
  37. package/dist/classDiagram-DTDB5LWJ-CVA3J-EH.js +16 -0
  38. package/dist/classDiagram-DTDB5LWJ-Dh121Rlt.js +16 -0
  39. package/dist/classDiagram-v2-JRS7N3AN-CVA3J-EH.js +16 -0
  40. package/dist/classDiagram-v2-JRS7N3AN-Dh121Rlt.js +16 -0
  41. package/dist/cose-bilkent-JH36ORCC-CLe0kcHa.js +2605 -0
  42. package/dist/cose-bilkent-JH36ORCC-DpMM48hA.js +2606 -0
  43. package/dist/cynefin-OW5HDTMX-CyO3b088.js +23750 -0
  44. package/dist/cynefinDiagram-5FMLGOSQ-C5xaWeuA.js +299 -0
  45. package/dist/cynefinDiagram-5FMLGOSQ-mLaK-3R3.js +299 -0
  46. package/dist/cytoscape.esm-DCrf4dL8.js +18782 -0
  47. package/dist/daemon-react-sdk.js +1 -1
  48. package/dist/dagre-3AP2YEHR-CmNFrtW9.js +456 -0
  49. package/dist/dagre-3AP2YEHR-zDm3fBQq.js +456 -0
  50. package/dist/defaultLocale-BgPVtth8.js +171 -0
  51. package/dist/diagram-S7CK7UJ4-BQtgRcGU.js +346 -0
  52. package/dist/diagram-S7CK7UJ4-Clojnf04.js +346 -0
  53. package/dist/diagram-UQ7AKVKN-B3Ll3rB4.js +219 -0
  54. package/dist/diagram-UQ7AKVKN-CTn4O0fd.js +219 -0
  55. package/dist/diagram-VSXAHHWV-BeYXDVEh.js +463 -0
  56. package/dist/diagram-VSXAHHWV-mdxkNEZP.js +463 -0
  57. package/dist/diagram-VX7I27RA-C3bzQYLd.js +529 -0
  58. package/dist/diagram-VX7I27RA-DaPLIQOr.js +529 -0
  59. package/dist/diagram-Z3DM3KII-BImvaL3c.js +142 -0
  60. package/dist/diagram-Z3DM3KII-CkkdGhWO.js +142 -0
  61. package/dist/{docx-preview-BucJeYCm.js → docx-preview-BfV4m8Qp.js} +503 -506
  62. package/dist/ebnfDiagram-PWID7BFC-C8RUggbp.js +109 -0
  63. package/dist/ebnfDiagram-PWID7BFC-gJHJx-lt.js +109 -0
  64. package/dist/erDiagram-SSCWMZ5O-CKFzjLCd.js +1059 -0
  65. package/dist/erDiagram-SSCWMZ5O-DLJjXFG9.js +1059 -0
  66. package/dist/flowDiagram-A5DVABFB-BHAeEzG1.js +1689 -0
  67. package/dist/flowDiagram-A5DVABFB-BOdsfJ-4.js +1689 -0
  68. package/dist/ganttDiagram-EL5Y4UJY-CtL6LAbW.js +2703 -0
  69. package/dist/ganttDiagram-EL5Y4UJY-D0hNphpF.js +2704 -0
  70. package/dist/gitGraphDiagram-WWUBYQGX-8XcPnT4w.js +815 -0
  71. package/dist/gitGraphDiagram-WWUBYQGX-DxHtQ0ba.js +815 -0
  72. package/dist/{index-B6wNHUaX.js → index-BGsppGgG.js} +69284 -64504
  73. package/dist/index.js +3 -3
  74. package/dist/infoDiagram-RXCK75RN-B-Ds06LN.js +24 -0
  75. package/dist/infoDiagram-RXCK75RN-Dhirg4if.js +24 -0
  76. package/dist/init-DjUOC4st.js +16 -0
  77. package/dist/ishikawaDiagram-5VMMS53U-BJPKneVd.js +621 -0
  78. package/dist/ishikawaDiagram-5VMMS53U-CsttzTkq.js +621 -0
  79. package/dist/journeyDiagram-EYS64GPL-BBAEhOQ9.js +836 -0
  80. package/dist/journeyDiagram-EYS64GPL-DfXS6tI_.js +836 -0
  81. package/dist/kanban-definition-3QL26DDD-Bh1Jz01C.js +723 -0
  82. package/dist/kanban-definition-3QL26DDD-C8yOTG02.js +723 -0
  83. package/dist/layout-Dxab-q-T.js +1704 -0
  84. package/dist/layout-sTbo9v3C.js +1704 -0
  85. package/dist/linear-BhTDfwHZ.js +259 -0
  86. package/dist/linear-CjDL9r_e.js +259 -0
  87. package/dist/mermaid.core-CFV16zMl.js +19742 -0
  88. package/dist/mermaid.core-DBp8atac.js +19747 -0
  89. package/dist/mindmap-definition-FBJOCRG2-KPo1Z4it.js +826 -0
  90. package/dist/mindmap-definition-FBJOCRG2-vau9OLMK.js +826 -0
  91. package/dist/ordinal-DfAQgscy.js +61 -0
  92. package/dist/pegDiagram-XKGWAZYB-CFjH6RoO.js +95 -0
  93. package/dist/pegDiagram-XKGWAZYB-EeXt14MX.js +95 -0
  94. package/dist/pieDiagram-E7YTZNPT-CJa9GbCV.js +208 -0
  95. package/dist/pieDiagram-E7YTZNPT-JyO_8fWF.js +208 -0
  96. package/dist/quadrantDiagram-AXDQQJYC-B7tyPD89.js +1023 -0
  97. package/dist/quadrantDiagram-AXDQQJYC-G9wAekw0.js +1023 -0
  98. package/dist/railroadDiagram-O6MQD6OU-3-cuTnqH.js +77 -0
  99. package/dist/railroadDiagram-O6MQD6OU-SyM4QCMp.js +77 -0
  100. package/dist/requirementDiagram-EFPCY7ZU-BJal3W63.js +882 -0
  101. package/dist/requirementDiagram-EFPCY7ZU-bMW72Av_.js +882 -0
  102. package/dist/sankeyDiagram-P5KCCOFB-BKP8fccK.js +847 -0
  103. package/dist/sankeyDiagram-P5KCCOFB-C4KDi8Ty.js +847 -0
  104. package/dist/sequenceDiagram-WJ2MYXX4-DFvbPjPG.js +2888 -0
  105. package/dist/sequenceDiagram-WJ2MYXX4-DvgRoXFL.js +2888 -0
  106. package/dist/sizeCapture-X5ZJPWSS-DPkvpCxM.js +46 -0
  107. package/dist/sizeCapture-X5ZJPWSS-DU4nf5aV.js +46 -0
  108. package/dist/stateDiagram-HBIQ2CUA-CWp0mOcF.js +262 -0
  109. package/dist/stateDiagram-HBIQ2CUA-DkN3hNFV.js +262 -0
  110. package/dist/stateDiagram-v2-4QOOHH4V-Bh7H2ZBJ.js +16 -0
  111. package/dist/stateDiagram-v2-4QOOHH4V-DX-OvV9U.js +16 -0
  112. package/dist/sw.js +1 -1
  113. package/dist/swimlanes-XN3QIQJK-2s4fbN8J.js +5219 -0
  114. package/dist/swimlanes-XN3QIQJK-CI3ENZQA.js +5219 -0
  115. package/dist/swimlanesDiagram-VK2B7HYN-BEjeqDmx.js +13 -0
  116. package/dist/swimlanesDiagram-VK2B7HYN-DWJY6BGD.js +13 -0
  117. package/dist/timeline-definition-24CTP7MA-C_tZHri9.js +1057 -0
  118. package/dist/timeline-definition-24CTP7MA-DYXEracn.js +1057 -0
  119. package/dist/transcript.js +14564 -11549
  120. package/dist/types/App.d.ts +10 -1
  121. package/dist/types/components/ComposerUsageStats.d.ts +34 -0
  122. package/dist/types/components/WelcomeHeader.d.ts +8 -0
  123. package/dist/types/components/artifacts/tokenUsageTotals.d.ts +36 -0
  124. package/dist/types/components/channels/ChannelEditorDialog.d.ts +10 -1
  125. package/dist/types/components/channels/ChannelQrLogin.d.ts +13 -0
  126. package/dist/types/components/channels/WeixinLoginPanel.d.ts +17 -0
  127. package/dist/types/components/channels/channel-editor-state.d.ts +8 -1
  128. package/dist/types/components/channels/channel-platform.d.ts +2 -1
  129. package/dist/types/components/channels/weixin-auth-api.d.ts +32 -0
  130. package/dist/types/components/managed/ManagedRuntimeSkillsImporter.d.ts +10 -0
  131. package/dist/types/components/managed/ManagedSideQueryPanel.d.ts +5 -0
  132. package/dist/types/components/managed/WorkspaceBindingCreator.d.ts +26 -1
  133. package/dist/types/components/managed/generated/managed-agent-api.d.ts +605 -0
  134. package/dist/types/components/managed/java-managed-agent-client.d.ts +122 -1
  135. package/dist/types/components/managed/managed-agent-provider.d.ts +14 -1
  136. package/dist/types/components/managed/managed-diagnostics-messages.d.ts +14 -1
  137. package/dist/types/components/managed/managed-extension-install.d.ts +5 -2
  138. package/dist/types/components/managed/managed-extension-messages.d.ts +7 -0
  139. package/dist/types/components/managed/managed-extension-types.d.ts +4 -0
  140. package/dist/types/components/managed/managed-session-storage.d.ts +35 -0
  141. package/dist/types/components/managed/managed-side-query-command.d.ts +5 -0
  142. package/dist/types/components/managed/managed-side-query-types.d.ts +21 -0
  143. package/dist/types/components/managed/managed-side-query.test-fixtures.d.ts +3 -0
  144. package/dist/types/components/managed/use-managed-side-queries.d.ts +26 -0
  145. package/dist/types/customization.d.ts +31 -0
  146. package/dist/types/daemon/workspace/hooks/useDaemonChannels.d.ts +2 -1
  147. package/dist/types/daemon/workspace/types.d.ts +8 -1
  148. package/dist/types/index.d.ts +1 -0
  149. package/dist/{useDaemonMidTurnInjected-tBzI77Ar.js → useDaemonMidTurnInjected-B7dPEdqk.js} +2040 -1825
  150. package/dist/vennDiagram-4TSXK5OY-Bi3e_aHN.js +1578 -0
  151. package/dist/vennDiagram-4TSXK5OY-DZCe1Ffi.js +1578 -0
  152. package/dist/wardleyDiagram-VM6X3IG4-BNV5jzew.js +675 -0
  153. package/dist/wardleyDiagram-VM6X3IG4-DqFJHRmt.js +675 -0
  154. package/dist/xychartDiagram-S5SC5T6Z-BVIJ86ch.js +1492 -0
  155. package/dist/xychartDiagram-S5SC5T6Z-J8xP-hcH.js +1492 -0
  156. package/package.json +19 -9
  157. package/dist/SpreadsheetPreview-d5XL70Ho.js +0 -379
  158. package/dist/types/components/artifacts/excel-preview-parser.d.ts +0 -5
@@ -0,0 +1,1059 @@
1
+ import { g as Ut } from "./chunk-XXDRQBXY-BDcf4DQz.js";
2
+ import { s as Kt } from "./chunk-POPQ4Y6H-BVQbxVHz.js";
3
+ import { _ as f, b as Zt, a as jt, s as qt, g as Wt, p as Ht, q as Qt, c as tt, l as F, k as Xt, r as Jt, t as $t, u as te, v as ee, x as se, y as ie, j as re, z as ne } from "./mermaid.core-CFV16zMl.js";
4
+ import { c as ae } from "./channel-CfhQTpjX.js";
5
+ var Ot = 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], h = [1, 10], y = [1, 11], b = [1, 12], k = [1, 30], R = [1, 23], p = [1, 24], g = [1, 25], C = [1, 26], v = [1, 27], O = [1, 19], x = [1, 28], A = [1, 29], N = [1, 20], D = [1, 18], L = [1, 21], w = [1, 22], xt = [2, 6], u = [6, 9, 21, 23, 25, 27, 33, 34, 37, 38, 39, 40, 41, 43, 46, 47, 51, 53, 54, 55], pt = [1, 36], ft = [1, 37], bt = [1, 38], gt = [1, 39], yt = [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], Nt = [69, 70, 71, 72, 73], Ct = [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], _t = [18, 61, 64, 66], kt = {
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: h, 25: y, 27: b, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 34: k, 37: R, 38: p, 39: g, 40: C, 41: v, 43: O, 46: x, 47: A, 51: N, 53: D, 54: L, 55: w }, s(n, xt, { 1: [2, 1] }), s(u, [2, 3]), s(u, [2, 4]), s(u, [2, 5]), s(u, [2, 15], { 11: 31, 67: 35, 14: [1, 32], 16: [1, 33], 19: [1, 34], 69: pt, 70: ft, 71: bt, 72: gt, 73: yt }), { 22: [1, 41] }, { 24: [1, 42] }, { 26: [1, 43] }, s(u, [2, 26]), s(u, [2, 27]), s(u, [2, 28]), s(u, [2, 29]), s(u, [2, 30]), s(u, o, { 5: 44 }), s(Z, [2, 58]), s(Z, [2, 59]), s(Z, [2, 60]), s(Z, [2, 61]), s(Z, [2, 62]), s(u, [2, 36]), s(u, [2, 37]), s(u, [2, 38]), s(u, [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: N, 53: D, 54: L, 55: w }, { 10: 51, 43: O, 51: N, 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: N, 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(u, [2, 23]), s(u, [2, 24]), s(u, [2, 25]), { 6: [1, 63], 7: 5, 8: 6, 9: c, 10: 8, 21: r, 23: h, 25: y, 27: b, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: [1, 62], 34: k, 37: R, 38: p, 39: g, 40: C, 41: v, 43: O, 46: x, 47: A, 51: N, 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(u, [2, 16], { 67: 35, 11: 81, 16: [1, 82], 45: B, 69: pt, 70: ft, 71: bt, 72: gt, 73: yt }), { 18: [1, 83] }, s(u, [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: pt, 70: ft, 71: bt, 72: gt, 73: yt }, s(Nt, [2, 82]), s(Nt, [2, 83]), s(u, [2, 31]), s(u, xt), { 6: st, 9: it, 35: 90, 45: Ct, 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(u, [2, 45], { 45: B }), { 6: st, 9: it, 35: 95, 45: Ct, 50: rt }, s(u, [2, 32]), { 10: 97, 36: 96, 43: O, 51: N, 53: D, 54: L, 55: w }, s(u, [2, 51]), s(u, [2, 52]), s(u, [2, 53]), { 13: 98, 43: nt, 53: at, 76: ot }, { 15: 102, 43: V, 44: M }, { 10: 103, 43: O, 51: N, 53: D, 54: L, 55: w }, { 17: 104, 18: [1, 105], 56: 55, 57: 56, 61: j }, s(u, [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(u, [2, 21], { 14: [1, 112], 16: [1, 111] }), s([43, 51, 53, 54, 55], [2, 76]), s(u, [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(u, [2, 46]), { 10: 115, 20: [1, 114], 43: O, 51: N, 53: D, 54: L, 55: w }, s(vt, [2, 34]), s(u, [2, 7]), s(u, [2, 84]), s(u, [2, 85]), s(u, [2, 86]), { 12: [1, 116], 45: B }, { 12: [1, 118], 14: [1, 117] }, { 18: [1, 119] }, s(u, [2, 14]), s(J, [2, 66], { 60: 120, 64: [1, 121], 66: Rt }), s(J, [2, 67]), s(_t, [2, 72]), s(J, [2, 75]), s(_t, [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(u, [2, 12]), s(J, [2, 68]), { 63: 129, 65: It }, { 18: [1, 130] }, s(u, [2, 19]), s(u, [2, 22], { 16: [1, 131], 45: B }), s(u, [2, 33]), s(u, [2, 10]), { 12: [1, 132], 45: B }, s(u, [2, 9]), s(_t, [2, 73]), s(u, [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(u, [2, 20]), s(u, [2, 8]), s(u, [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 mt in this.yy)
226
+ Object.prototype.hasOwnProperty.call(this.yy, mt) && (Y.yy[mt] = this.yy[mt]);
227
+ m.setInput(a, Y.yy), Y.yy.lexer = m, Y.yy.parser = this, typeof m.yylloc > "u" && (m.yylloc = {});
228
+ var Et = m.yylloc;
229
+ t.push(Et);
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, St, U = {}, ht, I, 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 Tt = "";
244
+ ut = [];
245
+ for (ht in $[P])
246
+ this.terminals_[ht] && ht > Ft && ut.push("'" + this.terminals_[ht] + "'");
247
+ m.showPosition ? Tt = "Parse error on line " + (lt + 1) + `:
248
+ ` + m.showPosition() + `
249
+ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Tt = "Parse error on line " + (lt + 1) + ": Unexpected " + (E == Lt ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(Tt, {
250
+ text: m.match,
251
+ token: this.terminals_[E] || E,
252
+ line: m.yylineno,
253
+ loc: Et,
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, Et = m.yylloc;
262
+ break;
263
+ case 2:
264
+ if (I = this.productions_[T[1]][1], U.$ = _[_.length - I], U._$ = {
265
+ first_line: t[t.length - (I || 1)].first_line,
266
+ last_line: t[t.length - 1].last_line,
267
+ first_column: t[t.length - (I || 1)].first_column,
268
+ last_column: t[t.length - 1].last_column
269
+ }, Pt && (U._$.range = [
270
+ t[t.length - (I || 1)].range[0],
271
+ t[t.length - 1].range[1]
272
+ ]), St = this.performAction.apply(U, [
273
+ e,
274
+ Dt,
275
+ lt,
276
+ Y.yy,
277
+ T[1],
278
+ _,
279
+ t
280
+ ].concat(Yt)), typeof St < "u")
281
+ return St;
282
+ I && (d = d.slice(0, -1 * I * 2), _ = _.slice(0, -1 * I), t = t.slice(0, -1 * I)), 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
+ kt.lexer = Gt;
640
+ function ct() {
641
+ this.yy = {};
642
+ }
643
+ return f(ct, "Parser"), ct.prototype = kt, kt.Parser = ct, new ct();
644
+ }();
645
+ Ot.parser = Ot;
646
+ var oe = Ot, K, ce = (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 h;
702
+ if (this.subGraphLookup.has(n))
703
+ h = n;
704
+ else {
705
+ const k = this.addEntity(n);
706
+ if (!k)
707
+ return;
708
+ h = 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 b = {
720
+ entityA: h,
721
+ roleA: o,
722
+ entityB: y,
723
+ relSpec: r
724
+ };
725
+ this.relationships.push(b), F.debug("Added new relationship :", b);
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((h) => h.trim())), r?.textStyles && (o = [...o, ...r.textStyles ?? []].map((h) => h.trim()));
741
+ }
742
+ return o;
743
+ }
744
+ addCssStyles(n, o) {
745
+ for (const c of n) {
746
+ const r = this.entities.get(c), h = this.subGraphLookup.get(c);
747
+ if (o) {
748
+ if (r)
749
+ for (const y of o)
750
+ r.cssStyles.push(y);
751
+ if (h) {
752
+ h.cssStyles || (h.cssStyles = []);
753
+ for (const y of o)
754
+ h.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(h) {
763
+ if (/color/.exec(h)) {
764
+ const y = h.replace("fill", "bgFill");
765
+ r.textStyles.push(y);
766
+ }
767
+ r.styles.push(h);
768
+ });
769
+ });
770
+ }
771
+ addSubGraph(n, o, c) {
772
+ let r = n.text.trim(), h = c.text;
773
+ const b = (/* @__PURE__ */ f((g) => {
774
+ const C = /* @__PURE__ */ new Set();
775
+ let v;
776
+ return { nodeList: g.filter((x) => {
777
+ if (x?.stmt)
778
+ return x.stmt === "dir" && (v = x.value), !1;
779
+ if (typeof x != "string")
780
+ return !1;
781
+ const A = x.trim();
782
+ return !A || C.has(A) ? !1 : (C.add(A), !0);
783
+ }), dir: v };
784
+ }, "uniq"))(o.flat()), k = b.nodeList, R = b.dir;
785
+ r = r ?? "subGraph" + this.subCount, h = h || "", h = this.sanitizeText(h), this.subCount = this.subCount + 1;
786
+ const p = {
787
+ id: r,
788
+ nodes: k,
789
+ title: h.trim(),
790
+ classes: [],
791
+ cssStyles: [],
792
+ dir: R,
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 h = this.subGraphLookup.get(c);
807
+ if (h)
808
+ for (const y of o)
809
+ h.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((h, y) => {
829
+ c.has(h) ? F.warn(`Entity '${h}' 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(), h = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map();
850
+ for (let p = r.length - 1; p >= 0; p--) {
851
+ const g = r[p];
852
+ g.nodes.length > 0 && y.set(g.id, !0);
853
+ for (const C of g.nodes)
854
+ h.set(C, g.id);
855
+ }
856
+ for (let p = r.length - 1; p >= 0; p--) {
857
+ const g = r[p];
858
+ n.push({
859
+ id: g.id,
860
+ label: g.title,
861
+ labelStyle: "",
862
+ labelType: g.labelType,
863
+ parentId: h.get(g.id),
864
+ padding: 8,
865
+ cssCompiledStyles: this.getCompiledStyles(g.classes),
866
+ cssStyles: g.cssStyles,
867
+ cssClasses: g.classes.join(" "),
868
+ shape: "rect",
869
+ dir: g.dir,
870
+ isGroup: !0,
871
+ look: c.look
872
+ });
873
+ }
874
+ const b = new Set(r.map((p) => p.id));
875
+ let k = 0;
876
+ for (const p of this.entities.keys()) {
877
+ if (b.has(p))
878
+ continue;
879
+ const g = this.entities.get(p);
880
+ g && (g.cssCompiledStyles = this.getCompiledStyles(g.cssClasses.split(" ")), g.colorIndex = k++, n.push({
881
+ ...g,
882
+ parentId: h.get(p),
883
+ isGroup: !1
884
+ }));
885
+ }
886
+ let R = 0;
887
+ for (const p of this.relationships) {
888
+ const g = {
889
+ id: $t(p.entityA, p.entityB, {
890
+ prefix: "id",
891
+ counter: R++
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(g);
908
+ }
909
+ return { nodes: n, edges: o, other: {}, config: c, direction: this.direction };
910
+ }
911
+ }, f(K, "ErDB"), K), Bt = {};
912
+ ee(Bt, {
913
+ draw: () => le
914
+ });
915
+ var le = /* @__PURE__ */ f(async function(s, n, o, c) {
916
+ F.info("REF0:"), F.info("Drawing er diagram (unified)", n);
917
+ const { securityLevel: r, er: h, layout: y } = tt(), b = c.db.getData(), k = Ut(n, r);
918
+ b.type = c.type, b.layoutAlgorithm = se(y), b.config.flowchart.nodeSpacing = h?.nodeSpacing || 140, b.config.flowchart.rankSpacing = h?.rankSpacing || 80, b.direction = c.db.getDirection();
919
+ const { config: R } = b, { look: p } = R;
920
+ p === "neo" ? b.markers = [
921
+ "only_one_neo",
922
+ "zero_or_one_neo",
923
+ "one_or_more_neo",
924
+ "zero_or_more_neo"
925
+ ] : b.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], b.diagramId = n, await ie(b, k), b.layoutAlgorithm === "elk" && k.select(".edges").lower();
926
+ const g = k.selectAll('[id*="-background"]');
927
+ Array.from(g).length > 0 && g.each(function() {
928
+ const v = re(this), x = v.attr("id").replace("-background", ""), A = k.select(`#${CSS.escape(x)}`);
929
+ if (!A.empty()) {
930
+ const N = A.attr("transform");
931
+ v.attr("transform", N);
932
+ }
933
+ });
934
+ const C = 8;
935
+ ne.insertTitle(
936
+ k,
937
+ "erDiagramTitleText",
938
+ h?.titleTopMargin ?? 25,
939
+ c.db.getDiagramTitle()
940
+ ), Kt(k, C, "erDiagram", h?.useMaxWidth ?? !0);
941
+ }, "draw"), Mt = /* @__PURE__ */ f((s, n) => {
942
+ const o = ae, c = o(s, "r"), r = o(s, "g"), h = o(s, "b");
943
+ return te(c, r, h, n);
944
+ }, "fade"), dt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), he = /* @__PURE__ */ f((s) => {
945
+ const { theme: n, look: o, bkgColorArray: c, borderColorArray: r } = s;
946
+ if (!dt.has(n))
947
+ return "";
948
+ const h = c?.length > 0;
949
+ let y = "";
950
+ for (let b = 0; b < s.THEME_COLOR_LIMIT; b++)
951
+ y += `
952
+
953
+ [data-look="${o}"][data-color-id="color-${b}"].node path {
954
+ stroke: ${r[b]};
955
+ ${h ? `fill: ${c[b]};` : ""}
956
+ }
957
+
958
+ [data-look="${o}"][data-color-id="color-${b}"].node rect {
959
+ stroke: ${r[b]};
960
+ ${h ? `fill: ${c[b]};` : ""}
961
+ }
962
+ `;
963
+ return y;
964
+ }, "genColor"), ue = /* @__PURE__ */ f((s) => {
965
+ const { look: n, theme: o, erEdgeLabelBackground: c, strokeWidth: r } = s;
966
+ return `
967
+ ${he(s)}
968
+ .entityBox {
969
+ fill: ${s.mainBkg};
970
+ stroke: ${s.nodeBorder};
971
+ }
972
+
973
+ .relationshipLabelBox {
974
+ fill: ${s.tertiaryColor};
975
+ opacity: 0.7;
976
+ background-color: ${s.tertiaryColor};
977
+ rect {
978
+ opacity: 0.5;
979
+ }
980
+ }
981
+
982
+ .labelBkg {
983
+ background-color: ${dt.has(o) && c ? c : Mt(s.tertiaryColor, 0.5)};
984
+ }
985
+
986
+ .edgeLabel {
987
+ background-color: ${dt.has(o) && c ? c : s.edgeLabelBackground};
988
+ }
989
+ .edgeLabel .label rect {
990
+ fill: ${dt.has(o) && c ? c : s.edgeLabelBackground};
991
+ }
992
+ .edgeLabel .label text {
993
+ fill: ${s.textColor};
994
+ }
995
+
996
+ .edgeLabel .label {
997
+ fill: ${s.nodeBorder};
998
+ font-size: 14px;
999
+ }
1000
+
1001
+ .label {
1002
+ font-family: ${s.fontFamily};
1003
+ color: ${s.nodeTextColor || s.textColor};
1004
+ }
1005
+
1006
+ .edge-pattern-dashed {
1007
+ stroke-dasharray: 8,8;
1008
+ }
1009
+
1010
+ .node rect,
1011
+ .node circle,
1012
+ .node ellipse,
1013
+ .node polygon
1014
+ {
1015
+ fill: ${s.mainBkg};
1016
+ stroke: ${s.nodeBorder};
1017
+ stroke-width: ${n === "neo" ? r : "1px"};
1018
+ }
1019
+
1020
+ .relationshipLine {
1021
+ stroke: ${s.lineColor};
1022
+ stroke-width: ${n === "neo" ? r : "1px"};
1023
+ fill: none;
1024
+ }
1025
+
1026
+ .marker {
1027
+ fill: none !important;
1028
+ stroke: ${s.lineColor} !important;
1029
+ stroke-width: 1;
1030
+ }
1031
+ [data-look=neo].labelBkg {
1032
+ background-color: ${Mt(s.tertiaryColor, 0.5)};
1033
+ }
1034
+
1035
+ .cluster rect {
1036
+ fill: ${s.clusterBkg ?? s.mainBkg};
1037
+ stroke: ${s.clusterBorder ?? s.nodeBorder};
1038
+ stroke-width: 1px;
1039
+ }
1040
+
1041
+ .cluster text {
1042
+ fill: ${s.titleColor ?? s.textColor};
1043
+ }
1044
+
1045
+ .cluster-label text {
1046
+ fill: ${s.titleColor ?? s.textColor};
1047
+ }
1048
+ `;
1049
+ }, "getStyles"), de = ue, ye = {
1050
+ parser: oe,
1051
+ get db() {
1052
+ return new ce();
1053
+ },
1054
+ renderer: Bt,
1055
+ styles: de
1056
+ };
1057
+ export {
1058
+ ye as diagram
1059
+ };