@ashwin_droid/notion-stream 1.0.0 → 1.0.1

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 (152) hide show
  1. package/dist/{_baseUniq-DSwfPiGC.js → _baseUniq-CWfjzMhC.js} +1 -1
  2. package/dist/{_baseUniq-CT-tc-CG.mjs → _baseUniq-Db9ouzA-.mjs} +51 -51
  3. package/dist/{arc-DmoYXidQ.mjs → arc-CHlsWOEE.mjs} +1 -1
  4. package/dist/{arc-BBnIBs2j.js → arc-DxDH4CNq.js} +1 -1
  5. package/dist/{architecture-U656AL7Q-CMPtJMZ-.mjs → architecture-U656AL7Q-DpmenltQ.mjs} +1 -1
  6. package/dist/{architecture-U656AL7Q-C0ZB2O9M.js → architecture-U656AL7Q-DqUhwOXk.js} +1 -1
  7. package/dist/{architectureDiagram-VXUJARFQ-BYzpbF40.mjs → architectureDiagram-VXUJARFQ-C2hauZCK.mjs} +1846 -1850
  8. package/dist/architectureDiagram-VXUJARFQ-LwDhoqXa.js +36 -0
  9. package/dist/blockDiagram-VD42YOAC-Cws7af6P.js +122 -0
  10. package/dist/{blockDiagram-VD42YOAC-DPVTCHn5.mjs → blockDiagram-VD42YOAC-yWS4_TxE.mjs} +913 -922
  11. package/dist/c4Diagram-YG6GDRKO-DLoBqiir.js +10 -0
  12. package/dist/{c4Diagram-YG6GDRKO-C2Y4q08p.mjs → c4Diagram-YG6GDRKO-K4ShvkML.mjs} +169 -170
  13. package/dist/channel-BqjR_aPb.js +1 -0
  14. package/dist/{channel-DVpqhnow.mjs → channel-_5jzmP-I.mjs} +1 -1
  15. package/dist/chunk-4BX2VUAB-6hr5PCkV.js +1 -0
  16. package/dist/chunk-4BX2VUAB-DBTu5W6L.mjs +8 -0
  17. package/dist/{chunk-55IACEB6-P_FVKIbW.js → chunk-55IACEB6-BLs0Xswy.js} +1 -1
  18. package/dist/{chunk-55IACEB6-Du1Simcj.mjs → chunk-55IACEB6-_brNODlK.mjs} +1 -1
  19. package/dist/chunk-B4BG7PRW-6HdbiUFA.js +165 -0
  20. package/dist/{chunk-B4BG7PRW-BUKsa2yH.mjs → chunk-B4BG7PRW-CWohxZt0.mjs} +251 -252
  21. package/dist/chunk-DI55MBZ5-DehdsbpI.js +220 -0
  22. package/dist/{chunk-DI55MBZ5-C9h0qLVI.mjs → chunk-DI55MBZ5-db62NlMD.mjs} +444 -456
  23. package/dist/{chunk-FMBD7UC4-48-zdz-1.js → chunk-FMBD7UC4-B2j81cAo.js} +1 -1
  24. package/dist/{chunk-FMBD7UC4-C08-zA06.mjs → chunk-FMBD7UC4-BegOwXuP.mjs} +1 -1
  25. package/dist/chunk-QN33PNHL-CJ1oa0p-.js +1 -0
  26. package/dist/chunk-QN33PNHL-CpBQYWWf.mjs +19 -0
  27. package/dist/{chunk-QZHKN3VN-DbO6TJSK.mjs → chunk-QZHKN3VN-BG9vC9tQ.mjs} +1 -1
  28. package/dist/{chunk-QZHKN3VN-Dy2264ui.js → chunk-QZHKN3VN-DV3-w0rK.js} +1 -1
  29. package/dist/{chunk-TZMSLE5B-BPmI9i6R.mjs → chunk-TZMSLE5B-D3cmOS_D.mjs} +20 -20
  30. package/dist/{chunk-TZMSLE5B-COENnLAZ.js → chunk-TZMSLE5B-DtKjE4RE.js} +1 -1
  31. package/dist/{classDiagram-v2-WZHVMYZB-mzvV1Ifg.mjs → classDiagram-2ON5EDUG-DAL3V7Dx.mjs} +2 -2
  32. package/dist/{classDiagram-2ON5EDUG-CFFwYK87.js → classDiagram-2ON5EDUG-uOMmrtgR.js} +1 -1
  33. package/dist/{classDiagram-2ON5EDUG-mzvV1Ifg.mjs → classDiagram-v2-WZHVMYZB-DAL3V7Dx.mjs} +2 -2
  34. package/dist/{classDiagram-v2-WZHVMYZB-CFFwYK87.js → classDiagram-v2-WZHVMYZB-uOMmrtgR.js} +1 -1
  35. package/dist/{clone-KtLCwiKH.mjs → clone-BiSDKkgs.mjs} +1 -1
  36. package/dist/clone-Bl9s3LR9.js +1 -0
  37. package/dist/{code-block-37QAKDTI-sxlq94xm.js → code-block-37QAKDTI-BILtfzQC.js} +1 -1
  38. package/dist/{code-block-37QAKDTI-CmykMxjQ.mjs → code-block-37QAKDTI-MauA-22z.mjs} +1 -1
  39. package/dist/cose-bilkent-S5V4N54A-CPJoKUiO.js +1 -0
  40. package/dist/{cose-bilkent-S5V4N54A-BXcldnso.mjs → cose-bilkent-S5V4N54A-rUEUYQdF.mjs} +592 -589
  41. package/dist/cytoscape.esm-CNUX3VTg.js +321 -0
  42. package/dist/{cytoscape.esm-ZmItrg9y.mjs → cytoscape.esm-Cvf3sx9F.mjs} +56 -83
  43. package/dist/dagre-6UL2VRFP-b0VfOp5y.mjs +443 -0
  44. package/dist/dagre-6UL2VRFP-r_ADTb0O.js +4 -0
  45. package/dist/diagram-PSM6KHXK-CuHqLGUt.js +24 -0
  46. package/dist/{diagram-PSM6KHXK-DIV3jw9d.mjs → diagram-PSM6KHXK-ax3IfFcX.mjs} +45 -48
  47. package/dist/diagram-QEK2KX5R-B5Lo9E-s.js +43 -0
  48. package/dist/{diagram-QEK2KX5R-Q0M2_YtR.mjs → diagram-QEK2KX5R-Dn47K2He.mjs} +10 -14
  49. package/dist/diagram-S2PKOQOG-B0W-tWPV.js +24 -0
  50. package/dist/{diagram-S2PKOQOG-_WGA6s2-.mjs → diagram-S2PKOQOG-C5jPENyu.mjs} +22 -23
  51. package/dist/{erDiagram-Q2GNP2WA-CW0D_QGb.mjs → erDiagram-Q2GNP2WA-XP6-Fsuy.mjs} +77 -78
  52. package/dist/erDiagram-Q2GNP2WA-k7niLq9H.js +60 -0
  53. package/dist/flowDiagram-NV44I4VS-BAdaW0zG.js +162 -0
  54. package/dist/{flowDiagram-NV44I4VS-DVQ8Ntc4.mjs → flowDiagram-NV44I4VS-DzHvKZ3e.mjs} +442 -449
  55. package/dist/{ganttDiagram-JELNMOA3-Bk-dX6qT.mjs → ganttDiagram-JELNMOA3-BRenKPXr.mjs} +1049 -1041
  56. package/dist/ganttDiagram-JELNMOA3-CddDOxeO.js +267 -0
  57. package/dist/{gitGraph-F6HP7TQM-DvIgo2TM.js → gitGraph-F6HP7TQM-BLshE7A8.js} +1 -1
  58. package/dist/{gitGraph-F6HP7TQM-CsdwxYUE.mjs → gitGraph-F6HP7TQM-Dq8gDI5R.mjs} +1 -1
  59. package/dist/gitGraphDiagram-NY62KEGX-B-rSecLz.mjs +699 -0
  60. package/dist/gitGraphDiagram-NY62KEGX-C980oVrU.js +65 -0
  61. package/dist/{graph-BNpx6ebg.js → graph-BlL96kLy.js} +1 -1
  62. package/dist/{graph-C_T4ZBuC.mjs → graph-DxtCPktv.mjs} +8 -8
  63. package/dist/index-DIQbvlIr.js +670 -0
  64. package/dist/{index-oe4HpmeG.mjs → index-yf1-93v5.mjs} +22534 -22642
  65. package/dist/index.js +1 -1
  66. package/dist/index.mjs +3 -3
  67. package/dist/info-NVLQJR56-BQNoY6_p.mjs +5 -0
  68. package/dist/{info-NVLQJR56-BwFQRguW.js → info-NVLQJR56-Bls_Dqxs.js} +1 -1
  69. package/dist/{infoDiagram-WHAUD3N6-CCb5k_S7.js → infoDiagram-WHAUD3N6-DwsUlSxN.js} +1 -1
  70. package/dist/{infoDiagram-WHAUD3N6-C-gzsm95.mjs → infoDiagram-WHAUD3N6-FnUO4LNo.mjs} +2 -2
  71. package/dist/journeyDiagram-XKPGCS4Q-7k1g8rPF.js +139 -0
  72. package/dist/{journeyDiagram-XKPGCS4Q-DzkUL_YG.mjs → journeyDiagram-XKPGCS4Q-Bvn5lhxn.mjs} +24 -26
  73. package/dist/kanban-definition-3W4ZIXB7-Cqf7XpzW.js +89 -0
  74. package/dist/kanban-definition-3W4ZIXB7-D29d9Rl2.mjs +719 -0
  75. package/dist/{layout-CuWQnP5Y.js → layout-B_kkbzwQ.js} +1 -1
  76. package/dist/{layout-Cd98WJ7r.mjs → layout-BlUfzTib.mjs} +22 -22
  77. package/dist/{linear-SU4e8MRt.mjs → linear-CC_oUBkf.mjs} +20 -20
  78. package/dist/{linear-DFDw13y6.js → linear-DF2d9TVq.js} +1 -1
  79. package/dist/{mermaid-4DMBBIKO-BihEtyib.js → mermaid-4DMBBIKO-2ufyMRt4.js} +1 -1
  80. package/dist/mermaid-4DMBBIKO-BizANXE3.mjs +4 -0
  81. package/dist/{mermaid-parser.core-C8Sxzqul.mjs → mermaid-parser.core-CkXMNpV7.mjs} +3404 -3369
  82. package/dist/mermaid-parser.core-DQkQZAvG.js +128 -0
  83. package/dist/{min-CppMRDFn.js → min-I7eFb2cg.js} +1 -1
  84. package/dist/{min-C2k771MZ.mjs → min-VPOHWCTf.mjs} +2 -2
  85. package/dist/{mindmap-definition-VGOIOE7T-BUd354uH.mjs → mindmap-definition-VGOIOE7T-CawQ5XYo.mjs} +170 -172
  86. package/dist/mindmap-definition-VGOIOE7T-d8uGKtHO.js +68 -0
  87. package/dist/{ordinal-C0oynhte.mjs → ordinal-B-KqvkJf.mjs} +1 -1
  88. package/dist/{packet-BFZMPI3H-Cz_A86d3.mjs → packet-BFZMPI3H-BbdhMsyD.mjs} +1 -1
  89. package/dist/{packet-BFZMPI3H-CFx3kSkL.js → packet-BFZMPI3H-CiqPNXx_.js} +1 -1
  90. package/dist/{pie-7BOR55EZ-_1MqisBd.js → pie-7BOR55EZ-BfYvvrxF.js} +1 -1
  91. package/dist/pie-7BOR55EZ-CkKpjIfF.mjs +5 -0
  92. package/dist/{pieDiagram-ADFJNKIX-Bg0_gu43.js → pieDiagram-ADFJNKIX-BlNrJLdh.js} +2 -2
  93. package/dist/{pieDiagram-ADFJNKIX-lRs_rpwI.mjs → pieDiagram-ADFJNKIX-TQppVIgS.mjs} +21 -21
  94. package/dist/{quadrantDiagram-AYHSOK5B-D9kypJt6.mjs → quadrantDiagram-AYHSOK5B-CysN5Kyu.mjs} +230 -232
  95. package/dist/quadrantDiagram-AYHSOK5B-fy7-bMNk.js +7 -0
  96. package/dist/{radar-NHE76QYJ-CdtC4C8F.js → radar-NHE76QYJ-BjbmLxde.js} +1 -1
  97. package/dist/{radar-NHE76QYJ-B-PvZD0K.mjs → radar-NHE76QYJ-BlbyKqWL.mjs} +1 -1
  98. package/dist/requirementDiagram-UZGBJVZJ-CGgt75Rl.js +64 -0
  99. package/dist/{requirementDiagram-UZGBJVZJ-B5ulaHjE.mjs → requirementDiagram-UZGBJVZJ-CfMcIbMc.mjs} +190 -192
  100. package/dist/{sankeyDiagram-TZEHDZUN-DprIPFbe.mjs → sankeyDiagram-TZEHDZUN-aFz48-W2.mjs} +189 -189
  101. package/dist/sankeyDiagram-TZEHDZUN-q-r70ybp.js +10 -0
  102. package/dist/{sequenceDiagram-WL72ISMW-B4m4oag0.mjs → sequenceDiagram-WL72ISMW-B9w1iL31.mjs} +222 -229
  103. package/dist/sequenceDiagram-WL72ISMW-nlFlEmNQ.js +145 -0
  104. package/dist/{stateDiagram-FKZM4ZOC-BD4tnS-V.js → stateDiagram-FKZM4ZOC-C9DXFs3P.js} +1 -1
  105. package/dist/{stateDiagram-FKZM4ZOC-DjkdDbQ2.mjs → stateDiagram-FKZM4ZOC-e4SGJ8oh.mjs} +4 -4
  106. package/dist/{stateDiagram-v2-4FDKWEC3-sybMoxOk.js → stateDiagram-v2-4FDKWEC3-FoEBCoPy.js} +1 -1
  107. package/dist/{stateDiagram-v2-4FDKWEC3-AK86F3i6.mjs → stateDiagram-v2-4FDKWEC3-QUPk_c9P.mjs} +2 -2
  108. package/dist/timeline-definition-IT6M3QCI-BqUt3ka4.js +61 -0
  109. package/dist/{timeline-definition-IT6M3QCI-BFuQEeZP.mjs → timeline-definition-IT6M3QCI-Br9KrJcU.mjs} +217 -223
  110. package/dist/{treemap-KMMF4GRG-DTnRa789.js → treemap-KMMF4GRG-DTii969M.js} +1 -1
  111. package/dist/{treemap-KMMF4GRG-gtrnY16v.mjs → treemap-KMMF4GRG-DVxjgEhu.mjs} +1 -1
  112. package/dist/xychartDiagram-PRI3JC2R-Bi02nVw4.js +7 -0
  113. package/dist/{xychartDiagram-PRI3JC2R-CjXiy6m0.mjs → xychartDiagram-PRI3JC2R-BygtBGgX.mjs} +7 -7
  114. package/package.json +4 -4
  115. package/dist/architectureDiagram-VXUJARFQ-BPQoZmaM.js +0 -36
  116. package/dist/blockDiagram-VD42YOAC-Z3Fc3Bew.js +0 -122
  117. package/dist/c4Diagram-YG6GDRKO-LzDuCZ2V.js +0 -10
  118. package/dist/channel-6dUO0MQi.js +0 -1
  119. package/dist/chunk-4BX2VUAB-BwubFldI.js +0 -1
  120. package/dist/chunk-4BX2VUAB-DldMXCTt.mjs +0 -9
  121. package/dist/chunk-B4BG7PRW-CKX0VJ-S.js +0 -165
  122. package/dist/chunk-DI55MBZ5-CMq-O8k2.js +0 -220
  123. package/dist/chunk-QN33PNHL-B0sO38bZ.js +0 -1
  124. package/dist/chunk-QN33PNHL-B_PGnTkk.mjs +0 -20
  125. package/dist/clone-B0UaPT2Z.js +0 -1
  126. package/dist/cose-bilkent-S5V4N54A-BCaAPmuF.js +0 -1
  127. package/dist/cytoscape.esm-DkGgpG6d.js +0 -331
  128. package/dist/dagre-6UL2VRFP-By42zbLA.mjs +0 -446
  129. package/dist/dagre-6UL2VRFP-DCwfkcWi.js +0 -4
  130. package/dist/diagram-PSM6KHXK-hjXN9n1N.js +0 -24
  131. package/dist/diagram-QEK2KX5R-B04ODMim.js +0 -43
  132. package/dist/diagram-S2PKOQOG-BmCs4MZE.js +0 -24
  133. package/dist/erDiagram-Q2GNP2WA-4KtQUUuI.js +0 -60
  134. package/dist/flowDiagram-NV44I4VS-BwpfJE0U.js +0 -162
  135. package/dist/ganttDiagram-JELNMOA3-D7rI7u8B.js +0 -267
  136. package/dist/gitGraphDiagram-NY62KEGX-BDTsbSkO.mjs +0 -712
  137. package/dist/gitGraphDiagram-NY62KEGX-IQ8KriUw.js +0 -65
  138. package/dist/index-CkYZRBYn.js +0 -676
  139. package/dist/info-NVLQJR56-B5gDnSIT.mjs +0 -5
  140. package/dist/journeyDiagram-XKPGCS4Q-POnSekz9.js +0 -139
  141. package/dist/kanban-definition-3W4ZIXB7-BPr0_7wG.mjs +0 -720
  142. package/dist/kanban-definition-3W4ZIXB7-Bm064qrf.js +0 -89
  143. package/dist/mermaid-4DMBBIKO-DDxvQcE9.mjs +0 -4
  144. package/dist/mermaid-parser.core-BHAgLMGa.js +0 -128
  145. package/dist/mindmap-definition-VGOIOE7T-CV7bD4HY.js +0 -68
  146. package/dist/pie-7BOR55EZ-B0-atE_o.mjs +0 -5
  147. package/dist/quadrantDiagram-AYHSOK5B-B4gVakRV.js +0 -7
  148. package/dist/requirementDiagram-UZGBJVZJ-0zMPj-SD.js +0 -64
  149. package/dist/sankeyDiagram-TZEHDZUN-Cl8-L83T.js +0 -10
  150. package/dist/sequenceDiagram-WL72ISMW-DRQn7Fe4.js +0 -145
  151. package/dist/timeline-definition-IT6M3QCI-2X4dfyLj.js +0 -61
  152. package/dist/xychartDiagram-PRI3JC2R-BaFd1In8.js +0 -7
@@ -1,12 +1,12 @@
1
- import { g as Dt } from "./chunk-55IACEB6-Du1Simcj.mjs";
2
- import { s as wt } from "./chunk-QN33PNHL-B_PGnTkk.mjs";
3
- import { _ as u, e as Vt, d as Lt, s as Mt, g as Bt, y as Ft, z as Yt, f as tt, l as D, D as Pt, C as zt, F as Gt, H as Kt, u as Zt, v as Ut, h as jt, x as Wt } from "./index-oe4HpmeG.mjs";
4
- import { c as Qt } from "./channel-DVpqhnow.mjs";
5
- var dt = function() {
1
+ import { g as Dt } from "./chunk-55IACEB6-_brNODlK.mjs";
2
+ import { s as wt } from "./chunk-QN33PNHL-CpBQYWWf.mjs";
3
+ import { _ as u, e as Vt, d as Lt, s as Mt, g as Bt, y as Ft, z as Yt, f as tt, l as D, D as Pt, C as zt, F as Gt, H as Kt, u as Zt, v as Ut, h as jt, x as Wt } from "./index-yf1-93v5.mjs";
4
+ import { c as Qt } from "./channel-_5jzmP-I.mjs";
5
+ var dt = (function() {
6
6
  var s = /* @__PURE__ */ u(function(R, n, a, c) {
7
7
  for (a = a || {}, c = R.length; c--; a[R[c]] = n) ;
8
8
  return a;
9
- }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50], h = [1, 10], d = [1, 11], o = [1, 12], l = [1, 13], f = [1, 20], _ = [1, 21], E = [1, 22], V = [1, 23], Z = [1, 24], S = [1, 19], et = [1, 25], U = [1, 26], T = [1, 18], L = [1, 33], st = [1, 34], it = [1, 35], rt = [1, 36], nt = [1, 37], pt = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50, 63, 64, 65, 66, 67], O = [1, 42], A = [1, 43], M = [1, 52], B = [40, 50, 68, 69], F = [1, 63], Y = [1, 61], N = [1, 58], P = [1, 62], z = [1, 64], j = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 63, 64, 65, 66, 67], yt = [63, 64, 65, 66, 67], ft = [1, 81], _t = [1, 80], gt = [1, 78], bt = [1, 79], mt = [6, 10, 42, 47], v = [6, 10, 13, 41, 42, 47, 48, 49], W = [1, 89], Q = [1, 88], X = [1, 87], G = [19, 56], Et = [1, 98], kt = [1, 97], at = [19, 56, 58, 60], ct = {
9
+ }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50], l = [1, 10], d = [1, 11], o = [1, 12], h = [1, 13], y = [1, 20], _ = [1, 21], E = [1, 22], V = [1, 23], Z = [1, 24], S = [1, 19], et = [1, 25], U = [1, 26], T = [1, 18], L = [1, 33], st = [1, 34], it = [1, 35], rt = [1, 36], nt = [1, 37], pt = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50, 63, 64, 65, 66, 67], O = [1, 42], A = [1, 43], M = [1, 52], B = [40, 50, 68, 69], F = [1, 63], Y = [1, 61], N = [1, 58], P = [1, 62], z = [1, 64], j = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 63, 64, 65, 66, 67], ft = [63, 64, 65, 66, 67], yt = [1, 81], _t = [1, 80], gt = [1, 78], bt = [1, 79], mt = [6, 10, 42, 47], C = [6, 10, 13, 41, 42, 47, 48, 49], W = [1, 89], Q = [1, 88], X = [1, 87], G = [19, 56], Et = [1, 98], kt = [1, 97], at = [19, 56, 58, 60], ct = {
10
10
  trace: /* @__PURE__ */ u(function() {
11
11
  }, "trace"),
12
12
  yy: {},
@@ -189,7 +189,7 @@ var dt = function() {
189
189
  break;
190
190
  }
191
191
  }, "anonymous"),
192
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, s(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: h, 24: d, 26: o, 28: l, 29: 14, 30: 15, 31: 16, 32: 17, 33: f, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 27, 11: 9, 22: h, 24: d, 26: o, 28: l, 29: 14, 30: 15, 31: 16, 32: 17, 33: f, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 28, 61: 32, 15: [1, 29], 17: [1, 30], 20: [1, 31], 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 23: [1, 38] }, { 25: [1, 39] }, { 27: [1, 40] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(pt, [2, 54]), s(pt, [2, 55]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 41, 40: O, 41: A }, { 16: 44, 40: O, 41: A }, { 16: 45, 40: O, 41: A }, s(i, [2, 4]), { 11: 46, 40: S, 50: T }, { 16: 47, 40: O, 41: A }, { 18: 48, 19: [1, 49], 51: 50, 52: 51, 56: M }, { 11: 53, 40: S, 50: T }, { 62: 54, 68: [1, 55], 69: [1, 56] }, s(B, [2, 69]), s(B, [2, 70]), s(B, [2, 71]), s(B, [2, 72]), s(B, [2, 73]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: F, 38: 57, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: z }, s(j, [2, 37]), s(j, [2, 38]), { 16: 65, 40: O, 41: A, 42: N }, { 13: F, 38: 66, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: z }, { 13: [1, 67], 15: [1, 68] }, s(i, [2, 17], { 61: 32, 12: 69, 17: [1, 70], 42: N, 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 19: [1, 71] }, s(i, [2, 14]), { 18: 72, 19: [2, 56], 51: 50, 52: 51, 56: M }, { 53: 73, 56: [1, 74] }, { 56: [2, 62] }, { 21: [1, 75] }, { 61: 76, 63: L, 64: st, 65: it, 66: rt, 67: nt }, s(yt, [2, 74]), s(yt, [2, 75]), { 6: ft, 10: _t, 39: 77, 42: gt, 47: bt }, { 40: [1, 82], 41: [1, 83] }, s(mt, [2, 43], { 46: 84, 13: F, 41: Y, 48: P, 49: z }), s(v, [2, 45]), s(v, [2, 50]), s(v, [2, 51]), s(v, [2, 52]), s(v, [2, 53]), s(i, [2, 41], { 42: N }), { 6: ft, 10: _t, 39: 85, 42: gt, 47: bt }, { 14: 86, 40: W, 50: Q, 70: X }, { 16: 90, 40: O, 41: A }, { 11: 91, 40: S, 50: T }, { 18: 92, 19: [1, 93], 51: 50, 52: 51, 56: M }, s(i, [2, 12]), { 19: [2, 57] }, s(G, [2, 58], { 54: 94, 55: 95, 57: 96, 59: Et, 60: kt }), s([19, 56, 59, 60], [2, 63]), s(i, [2, 22], { 15: [1, 100], 17: [1, 99] }), s([40, 50], [2, 68]), s(i, [2, 36]), { 13: F, 41: Y, 45: 101, 46: 60, 48: P, 49: z }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(j, [2, 39]), s(j, [2, 40]), s(v, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 76]), s(i, [2, 77]), s(i, [2, 78]), { 13: [1, 102], 42: N }, { 13: [1, 104], 15: [1, 103] }, { 19: [1, 105] }, s(i, [2, 15]), s(G, [2, 59], { 55: 106, 58: [1, 107], 60: kt }), s(G, [2, 60]), s(at, [2, 64]), s(G, [2, 67]), s(at, [2, 66]), { 18: 108, 19: [1, 109], 51: 50, 52: 51, 56: M }, { 16: 110, 40: O, 41: A }, s(mt, [2, 44], { 46: 84, 13: F, 41: Y, 48: P, 49: z }), { 14: 111, 40: W, 50: Q, 70: X }, { 16: 112, 40: O, 41: A }, { 14: 113, 40: W, 50: Q, 70: X }, s(i, [2, 13]), s(G, [2, 61]), { 57: 114, 59: Et }, { 19: [1, 115] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 116], 42: N }), s(i, [2, 11]), { 13: [1, 117], 42: N }, s(i, [2, 10]), s(at, [2, 65]), s(i, [2, 18]), { 18: 118, 19: [1, 119], 51: 50, 52: 51, 56: M }, { 14: 120, 40: W, 50: Q, 70: X }, { 19: [1, 121] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
192
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, s(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: l, 24: d, 26: o, 28: h, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 27, 11: 9, 22: l, 24: d, 26: o, 28: h, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 28, 61: 32, 15: [1, 29], 17: [1, 30], 20: [1, 31], 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 23: [1, 38] }, { 25: [1, 39] }, { 27: [1, 40] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(pt, [2, 54]), s(pt, [2, 55]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 41, 40: O, 41: A }, { 16: 44, 40: O, 41: A }, { 16: 45, 40: O, 41: A }, s(i, [2, 4]), { 11: 46, 40: S, 50: T }, { 16: 47, 40: O, 41: A }, { 18: 48, 19: [1, 49], 51: 50, 52: 51, 56: M }, { 11: 53, 40: S, 50: T }, { 62: 54, 68: [1, 55], 69: [1, 56] }, s(B, [2, 69]), s(B, [2, 70]), s(B, [2, 71]), s(B, [2, 72]), s(B, [2, 73]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: F, 38: 57, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: z }, s(j, [2, 37]), s(j, [2, 38]), { 16: 65, 40: O, 41: A, 42: N }, { 13: F, 38: 66, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: z }, { 13: [1, 67], 15: [1, 68] }, s(i, [2, 17], { 61: 32, 12: 69, 17: [1, 70], 42: N, 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 19: [1, 71] }, s(i, [2, 14]), { 18: 72, 19: [2, 56], 51: 50, 52: 51, 56: M }, { 53: 73, 56: [1, 74] }, { 56: [2, 62] }, { 21: [1, 75] }, { 61: 76, 63: L, 64: st, 65: it, 66: rt, 67: nt }, s(ft, [2, 74]), s(ft, [2, 75]), { 6: yt, 10: _t, 39: 77, 42: gt, 47: bt }, { 40: [1, 82], 41: [1, 83] }, s(mt, [2, 43], { 46: 84, 13: F, 41: Y, 48: P, 49: z }), s(C, [2, 45]), s(C, [2, 50]), s(C, [2, 51]), s(C, [2, 52]), s(C, [2, 53]), s(i, [2, 41], { 42: N }), { 6: yt, 10: _t, 39: 85, 42: gt, 47: bt }, { 14: 86, 40: W, 50: Q, 70: X }, { 16: 90, 40: O, 41: A }, { 11: 91, 40: S, 50: T }, { 18: 92, 19: [1, 93], 51: 50, 52: 51, 56: M }, s(i, [2, 12]), { 19: [2, 57] }, s(G, [2, 58], { 54: 94, 55: 95, 57: 96, 59: Et, 60: kt }), s([19, 56, 59, 60], [2, 63]), s(i, [2, 22], { 15: [1, 100], 17: [1, 99] }), s([40, 50], [2, 68]), s(i, [2, 36]), { 13: F, 41: Y, 45: 101, 46: 60, 48: P, 49: z }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(j, [2, 39]), s(j, [2, 40]), s(C, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 76]), s(i, [2, 77]), s(i, [2, 78]), { 13: [1, 102], 42: N }, { 13: [1, 104], 15: [1, 103] }, { 19: [1, 105] }, s(i, [2, 15]), s(G, [2, 59], { 55: 106, 58: [1, 107], 60: kt }), s(G, [2, 60]), s(at, [2, 64]), s(G, [2, 67]), s(at, [2, 66]), { 18: 108, 19: [1, 109], 51: 50, 52: 51, 56: M }, { 16: 110, 40: O, 41: A }, s(mt, [2, 44], { 46: 84, 13: F, 41: Y, 48: P, 49: z }), { 14: 111, 40: W, 50: Q, 70: X }, { 16: 112, 40: O, 41: A }, { 14: 113, 40: W, 50: Q, 70: X }, s(i, [2, 13]), s(G, [2, 61]), { 57: 114, 59: Et }, { 19: [1, 115] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 116], 42: N }), s(i, [2, 11]), { 13: [1, 117], 42: N }, s(i, [2, 10]), s(at, [2, 65]), s(i, [2, 18]), { 18: 118, 19: [1, 119], 51: 50, 52: 51, 56: M }, { 14: 120, 40: W, 50: Q, 70: X }, { 19: [1, 121] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
193
193
  defaultActions: { 52: [2, 62], 72: [2, 57] },
194
194
  parseError: /* @__PURE__ */ u(function(n, a) {
195
195
  if (a.recoverable)
@@ -200,35 +200,35 @@ var dt = function() {
200
200
  }
201
201
  }, "parseError"),
202
202
  parse: /* @__PURE__ */ u(function(n) {
203
- var a = this, c = [0], r = [], p = [null], t = [], K = this.table, e = "", q = 0, St = 0, xt = 2, Tt = 1, It = t.slice.call(arguments, 1), y = Object.create(this.lexer), x = { yy: {} };
203
+ var a = this, c = [0], r = [], p = [null], t = [], K = this.table, e = "", q = 0, St = 0, xt = 2, Tt = 1, It = t.slice.call(arguments, 1), f = Object.create(this.lexer), x = { yy: {} };
204
204
  for (var lt in this.yy)
205
205
  Object.prototype.hasOwnProperty.call(this.yy, lt) && (x.yy[lt] = this.yy[lt]);
206
- y.setInput(n, x.yy), x.yy.lexer = y, x.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
207
- var ot = y.yylloc;
206
+ f.setInput(n, x.yy), x.yy.lexer = f, x.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
207
+ var ot = f.yylloc;
208
208
  t.push(ot);
209
- var vt = y.options && y.options.ranges;
209
+ var Ct = f.options && f.options.ranges;
210
210
  typeof x.yy.parseError == "function" ? this.parseError = x.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
211
- function Ct(b) {
211
+ function vt(b) {
212
212
  c.length = c.length - 2 * b, p.length = p.length - b, t.length = t.length - b;
213
213
  }
214
- u(Ct, "popStack");
214
+ u(vt, "popStack");
215
215
  function Ot() {
216
216
  var b;
217
- return b = r.pop() || y.lex() || Tt, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = a.symbols_[b] || b), b;
217
+ return b = r.pop() || f.lex() || Tt, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = a.symbols_[b] || b), b;
218
218
  }
219
219
  u(Ot, "lex");
220
- for (var g, I, m, ht, C = {}, J, k, At, $; ; ) {
220
+ for (var g, I, m, ht, v = {}, J, k, At, $; ; ) {
221
221
  if (I = c[c.length - 1], this.defaultActions[I] ? m = this.defaultActions[I] : ((g === null || typeof g > "u") && (g = Ot()), m = K[I] && K[I][g]), typeof m > "u" || !m.length || !m[0]) {
222
222
  var ut = "";
223
223
  $ = [];
224
224
  for (J in K[I])
225
225
  this.terminals_[J] && J > xt && $.push("'" + this.terminals_[J] + "'");
226
- y.showPosition ? ut = "Parse error on line " + (q + 1) + `:
227
- ` + y.showPosition() + `
226
+ f.showPosition ? ut = "Parse error on line " + (q + 1) + `:
227
+ ` + f.showPosition() + `
228
228
  Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut = "Parse error on line " + (q + 1) + ": Unexpected " + (g == Tt ? "end of input" : "'" + (this.terminals_[g] || g) + "'"), this.parseError(ut, {
229
- text: y.match,
229
+ text: f.match,
230
230
  token: this.terminals_[g] || g,
231
- line: y.yylineno,
231
+ line: f.yylineno,
232
232
  loc: ot,
233
233
  expected: $
234
234
  });
@@ -237,18 +237,18 @@ Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut =
237
237
  throw new Error("Parse Error: multiple actions possible at state: " + I + ", token: " + g);
238
238
  switch (m[0]) {
239
239
  case 1:
240
- c.push(g), p.push(y.yytext), t.push(y.yylloc), c.push(m[1]), g = null, St = y.yyleng, e = y.yytext, q = y.yylineno, ot = y.yylloc;
240
+ c.push(g), p.push(f.yytext), t.push(f.yylloc), c.push(m[1]), g = null, St = f.yyleng, e = f.yytext, q = f.yylineno, ot = f.yylloc;
241
241
  break;
242
242
  case 2:
243
- if (k = this.productions_[m[1]][1], C.$ = p[p.length - k], C._$ = {
243
+ if (k = this.productions_[m[1]][1], v.$ = p[p.length - k], v._$ = {
244
244
  first_line: t[t.length - (k || 1)].first_line,
245
245
  last_line: t[t.length - 1].last_line,
246
246
  first_column: t[t.length - (k || 1)].first_column,
247
247
  last_column: t[t.length - 1].last_column
248
- }, vt && (C._$.range = [
248
+ }, Ct && (v._$.range = [
249
249
  t[t.length - (k || 1)].range[0],
250
250
  t[t.length - 1].range[1]
251
- ]), ht = this.performAction.apply(C, [
251
+ ]), ht = this.performAction.apply(v, [
252
252
  e,
253
253
  St,
254
254
  q,
@@ -258,7 +258,7 @@ Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut =
258
258
  t
259
259
  ].concat(It)), typeof ht < "u")
260
260
  return ht;
261
- k && (c = c.slice(0, -1 * k * 2), p = p.slice(0, -1 * k), t = t.slice(0, -1 * k)), c.push(this.productions_[m[1]][0]), p.push(C.$), t.push(C._$), At = K[c[c.length - 2]][c[c.length - 1]], c.push(At);
261
+ k && (c = c.slice(0, -1 * k * 2), p = p.slice(0, -1 * k), t = t.slice(0, -1 * k)), c.push(this.productions_[m[1]][0]), p.push(v.$), t.push(v._$), At = K[c[c.length - 2]][c[c.length - 1]], c.push(At);
262
262
  break;
263
263
  case 3:
264
264
  return !0;
@@ -266,7 +266,7 @@ Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut =
266
266
  }
267
267
  return !0;
268
268
  }, "parse")
269
- }, Rt = /* @__PURE__ */ function() {
269
+ }, Rt = /* @__PURE__ */ (function() {
270
270
  var R = {
271
271
  EOF: 1,
272
272
  parseError: /* @__PURE__ */ u(function(a, c) {
@@ -596,13 +596,13 @@ Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut =
596
596
  conditions: { style: { rules: [34, 35, 36, 37, 38, 69, 70], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, block: { rules: [23, 24, 25, 26, 27, 28, 29, 30], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 31, 32, 33, 39, 40, 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, 71, 72, 73, 74], inclusive: !0 } }
597
597
  };
598
598
  return R;
599
- }();
599
+ })();
600
600
  ct.lexer = Rt;
601
601
  function H() {
602
602
  this.yy = {};
603
603
  }
604
604
  return u(H, "Parser"), H.prototype = ct, ct.Parser = H, new H();
605
- }();
605
+ })();
606
606
  dt.parser = dt;
607
607
  var Xt = dt, w, Ht = (w = class {
608
608
  constructor() {
@@ -622,13 +622,12 @@ var Xt = dt, w, Ht = (w = class {
622
622
  * @param name - The name of the entity
623
623
  * @param alias - The alias of the entity
624
624
  */
625
- addEntity(i, h = "") {
626
- var d;
627
- return this.entities.has(i) ? !((d = this.entities.get(i)) != null && d.alias) && h && (this.entities.get(i).alias = h, D.info(`Add alias '${h}' to entity '${i}'`)) : (this.entities.set(i, {
625
+ addEntity(i, l = "") {
626
+ return this.entities.has(i) ? !this.entities.get(i)?.alias && l && (this.entities.get(i).alias = l, D.info(`Add alias '${l}' to entity '${i}'`)) : (this.entities.set(i, {
628
627
  id: `entity-${i}-${this.entities.size}`,
629
628
  label: i,
630
629
  attributes: [],
631
- alias: h,
630
+ alias: l,
632
631
  shape: "erBox",
633
632
  look: tt().look ?? "default",
634
633
  cssClasses: "default",
@@ -644,11 +643,11 @@ var Xt = dt, w, Ht = (w = class {
644
643
  getClasses() {
645
644
  return this.classes;
646
645
  }
647
- addAttributes(i, h) {
646
+ addAttributes(i, l) {
648
647
  const d = this.addEntity(i);
649
648
  let o;
650
- for (o = h.length - 1; o >= 0; o--)
651
- h[o].keys || (h[o].keys = []), h[o].comment || (h[o].comment = ""), d.attributes.push(h[o]), D.debug("Added attribute ", h[o].name);
649
+ for (o = l.length - 1; o >= 0; o--)
650
+ l[o].keys || (l[o].keys = []), l[o].comment || (l[o].comment = ""), d.attributes.push(l[o]), D.debug("Added attribute ", l[o].name);
652
651
  }
653
652
  /**
654
653
  * Add a relationship
@@ -658,14 +657,14 @@ var Xt = dt, w, Ht = (w = class {
658
657
  * @param entB - The second entity in the relationship
659
658
  * @param rSpec - The details of the relationship between the two entities
660
659
  */
661
- addRelationship(i, h, d, o) {
662
- const l = this.entities.get(i), f = this.entities.get(d);
663
- if (!l || !f)
660
+ addRelationship(i, l, d, o) {
661
+ const h = this.entities.get(i), y = this.entities.get(d);
662
+ if (!h || !y)
664
663
  return;
665
664
  const _ = {
666
- entityA: l.id,
667
- roleA: h,
668
- entityB: f.id,
665
+ entityA: h.id,
666
+ roleA: l,
667
+ entityB: y.id,
669
668
  relSpec: o
670
669
  };
671
670
  this.relationships.push(_), D.debug("Added new relationship :", _);
@@ -680,83 +679,83 @@ var Xt = dt, w, Ht = (w = class {
680
679
  this.direction = i;
681
680
  }
682
681
  getCompiledStyles(i) {
683
- let h = [];
682
+ let l = [];
684
683
  for (const d of i) {
685
684
  const o = this.classes.get(d);
686
- o != null && o.styles && (h = [...h, ...o.styles ?? []].map((l) => l.trim())), o != null && o.textStyles && (h = [...h, ...o.textStyles ?? []].map((l) => l.trim()));
685
+ o?.styles && (l = [...l, ...o.styles ?? []].map((h) => h.trim())), o?.textStyles && (l = [...l, ...o.textStyles ?? []].map((h) => h.trim()));
687
686
  }
688
- return h;
687
+ return l;
689
688
  }
690
- addCssStyles(i, h) {
689
+ addCssStyles(i, l) {
691
690
  for (const d of i) {
692
691
  const o = this.entities.get(d);
693
- if (!h || !o)
692
+ if (!l || !o)
694
693
  return;
695
- for (const l of h)
696
- o.cssStyles.push(l);
694
+ for (const h of l)
695
+ o.cssStyles.push(h);
697
696
  }
698
697
  }
699
- addClass(i, h) {
698
+ addClass(i, l) {
700
699
  i.forEach((d) => {
701
700
  let o = this.classes.get(d);
702
- o === void 0 && (o = { id: d, styles: [], textStyles: [] }, this.classes.set(d, o)), h && h.forEach(function(l) {
703
- if (/color/.exec(l)) {
704
- const f = l.replace("fill", "bgFill");
705
- o.textStyles.push(f);
701
+ o === void 0 && (o = { id: d, styles: [], textStyles: [] }, this.classes.set(d, o)), l && l.forEach(function(h) {
702
+ if (/color/.exec(h)) {
703
+ const y = h.replace("fill", "bgFill");
704
+ o.textStyles.push(y);
706
705
  }
707
- o.styles.push(l);
706
+ o.styles.push(h);
708
707
  });
709
708
  });
710
709
  }
711
- setClass(i, h) {
710
+ setClass(i, l) {
712
711
  for (const d of i) {
713
712
  const o = this.entities.get(d);
714
713
  if (o)
715
- for (const l of h)
716
- o.cssClasses += " " + l;
714
+ for (const h of l)
715
+ o.cssClasses += " " + h;
717
716
  }
718
717
  }
719
718
  clear() {
720
719
  this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [], Pt();
721
720
  }
722
721
  getData() {
723
- const i = [], h = [], d = tt();
724
- for (const l of this.entities.keys()) {
725
- const f = this.entities.get(l);
726
- f && (f.cssCompiledStyles = this.getCompiledStyles(f.cssClasses.split(" ")), i.push(f));
722
+ const i = [], l = [], d = tt();
723
+ for (const h of this.entities.keys()) {
724
+ const y = this.entities.get(h);
725
+ y && (y.cssCompiledStyles = this.getCompiledStyles(y.cssClasses.split(" ")), i.push(y));
727
726
  }
728
727
  let o = 0;
729
- for (const l of this.relationships) {
730
- const f = {
731
- id: zt(l.entityA, l.entityB, {
728
+ for (const h of this.relationships) {
729
+ const y = {
730
+ id: zt(h.entityA, h.entityB, {
732
731
  prefix: "id",
733
732
  counter: o++
734
733
  }),
735
734
  type: "normal",
736
735
  curve: "basis",
737
- start: l.entityA,
738
- end: l.entityB,
739
- label: l.roleA,
736
+ start: h.entityA,
737
+ end: h.entityB,
738
+ label: h.roleA,
740
739
  labelpos: "c",
741
740
  thickness: "normal",
742
741
  classes: "relationshipLine",
743
- arrowTypeStart: l.relSpec.cardB.toLowerCase(),
744
- arrowTypeEnd: l.relSpec.cardA.toLowerCase(),
745
- pattern: l.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
742
+ arrowTypeStart: h.relSpec.cardB.toLowerCase(),
743
+ arrowTypeEnd: h.relSpec.cardA.toLowerCase(),
744
+ pattern: h.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
746
745
  look: d.look
747
746
  };
748
- h.push(f);
747
+ l.push(y);
749
748
  }
750
- return { nodes: i, edges: h, other: {}, config: d, direction: "TB" };
749
+ return { nodes: i, edges: l, other: {}, config: d, direction: "TB" };
751
750
  }
752
751
  }, u(w, "ErDB"), w), Nt = {};
753
752
  Kt(Nt, {
754
753
  draw: () => qt
755
754
  });
756
- var qt = /* @__PURE__ */ u(async function(s, i, h, d) {
755
+ var qt = /* @__PURE__ */ u(async function(s, i, l, d) {
757
756
  D.info("REF0:"), D.info("Drawing er diagram (unified)", i);
758
- const { securityLevel: o, er: l, layout: f } = tt(), _ = d.db.getData(), E = Dt(i, o);
759
- _.type = d.type, _.layoutAlgorithm = Zt(f), _.config.flowchart.nodeSpacing = (l == null ? void 0 : l.nodeSpacing) || 140, _.config.flowchart.rankSpacing = (l == null ? void 0 : l.rankSpacing) || 80, _.direction = d.db.getDirection(), _.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], _.diagramId = i, await Ut(_, E), _.layoutAlgorithm === "elk" && E.select(".edges").lower();
757
+ const { securityLevel: o, er: h, layout: y } = tt(), _ = d.db.getData(), E = Dt(i, o);
758
+ _.type = d.type, _.layoutAlgorithm = Zt(y), _.config.flowchart.nodeSpacing = h?.nodeSpacing || 140, _.config.flowchart.rankSpacing = h?.rankSpacing || 80, _.direction = d.db.getDirection(), _.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], _.diagramId = i, await Ut(_, E), _.layoutAlgorithm === "elk" && E.select(".edges").lower();
760
759
  const V = E.selectAll('[id*="-background"]');
761
760
  Array.from(V).length > 0 && V.each(function() {
762
761
  const S = jt(this), U = S.attr("id").replace("-background", ""), T = E.select(`#${CSS.escape(U)}`);
@@ -769,12 +768,12 @@ var qt = /* @__PURE__ */ u(async function(s, i, h, d) {
769
768
  Wt.insertTitle(
770
769
  E,
771
770
  "erDiagramTitleText",
772
- (l == null ? void 0 : l.titleTopMargin) ?? 25,
771
+ h?.titleTopMargin ?? 25,
773
772
  d.db.getDiagramTitle()
774
- ), wt(E, Z, "erDiagram", (l == null ? void 0 : l.useMaxWidth) ?? !0);
773
+ ), wt(E, Z, "erDiagram", h?.useMaxWidth ?? !0);
775
774
  }, "draw"), Jt = /* @__PURE__ */ u((s, i) => {
776
- const h = Qt, d = h(s, "r"), o = h(s, "g"), l = h(s, "b");
777
- return Gt(d, o, l, i);
775
+ const l = Qt, d = l(s, "r"), o = l(s, "g"), h = l(s, "b");
776
+ return Gt(d, o, h, i);
778
777
  }, "fade"), $t = /* @__PURE__ */ u((s) => `
779
778
  .entityBox {
780
779
  fill: ${s.mainBkg};
@@ -0,0 +1,60 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const xt=require("./chunk-55IACEB6-BLs0Xswy.js"),vt=require("./chunk-QN33PNHL-CJ1oa0p-.js"),a=require("./index-DIQbvlIr.js"),Dt=require("./channel-BqjR_aPb.js");var ht=(function(){var s=a.__name(function(R,r,c,l){for(c=c||{},l=R.length;l--;c[R[l]]=r);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],o=[1,10],d=[1,11],h=[1,12],u=[1,13],f=[1,20],y=[1,21],k=[1,22],w=[1,23],K=[1,24],S=[1,19],$=[1,25],Z=[1,26],T=[1,18],L=[1,33],tt=[1,34],et=[1,35],st=[1,36],it=[1,37],ut=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],O=[1,42],N=[1,43],V=[1,52],M=[40,50,68,69],B=[1,63],F=[1,61],A=[1,58],P=[1,62],Y=[1,64],U=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],dt=[63,64,65,66,67],_t=[1,81],pt=[1,80],ft=[1,78],yt=[1,79],gt=[6,10,42,47],x=[6,10,13,41,42,47,48,49],j=[1,89],W=[1,88],q=[1,87],z=[19,56],mt=[1,98],bt=[1,97],nt=[19,56,58,60],rt={trace:a.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes: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:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:a.__name(function(r,c,l,n,_,t,G){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:n.addEntity(t[e-4]),n.addEntity(t[e-2]),n.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:n.addEntity(t[e-8]),n.addEntity(t[e-4]),n.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),n.setClass([t[e-8]],t[e-6]),n.setClass([t[e-4]],t[e-2]);break;case 10:n.addEntity(t[e-6]),n.addEntity(t[e-2]),n.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),n.setClass([t[e-6]],t[e-4]);break;case 11:n.addEntity(t[e-6]),n.addEntity(t[e-4]),n.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),n.setClass([t[e-4]],t[e-2]);break;case 12:n.addEntity(t[e-3]),n.addAttributes(t[e-3],t[e-1]);break;case 13:n.addEntity(t[e-5]),n.addAttributes(t[e-5],t[e-1]),n.setClass([t[e-5]],t[e-3]);break;case 14:n.addEntity(t[e-2]);break;case 15:n.addEntity(t[e-4]),n.setClass([t[e-4]],t[e-2]);break;case 16:n.addEntity(t[e]);break;case 17:n.addEntity(t[e-2]),n.setClass([t[e-2]],t[e]);break;case 18:n.addEntity(t[e-6],t[e-4]),n.addAttributes(t[e-6],t[e-1]);break;case 19:n.addEntity(t[e-8],t[e-6]),n.addAttributes(t[e-8],t[e-1]),n.setClass([t[e-8]],t[e-3]);break;case 20:n.addEntity(t[e-5],t[e-3]);break;case 21:n.addEntity(t[e-7],t[e-5]),n.setClass([t[e-7]],t[e-2]);break;case 22:n.addEntity(t[e-3],t[e-1]);break;case 23:n.addEntity(t[e-5],t[e-3]),n.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),n.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),n.setAccDescription(this.$);break;case 32:n.setDirection("TB");break;case 33:n.setDirection("BT");break;case 34:n.setDirection("RL");break;case 35:n.setDirection("LR");break;case 36:this.$=t[e-3],n.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 56:case 64:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],n.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],n.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 76:case 77:this.$=t[e].replace(/"/g,"");break;case 55:case 78:this.$=t[e];break;case 57:t[e].push(t[e-1]),this.$=t[e];break;case 58:this.$={type:t[e-1],name:t[e]};break;case 59:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 60:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 61:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 62:case 63:case 66:this.$=t[e];break;case 65:t[e-2].push(t[e]),this.$=t[e-2];break;case 67:this.$=t[e].replace(/"/g,"");break;case 68:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 69:this.$=n.Cardinality.ZERO_OR_ONE;break;case 70:this.$=n.Cardinality.ZERO_OR_MORE;break;case 71:this.$=n.Cardinality.ONE_OR_MORE;break;case 72:this.$=n.Cardinality.ONLY_ONE;break;case 73:this.$=n.Cardinality.MD_PARENT;break;case 74:this.$=n.Identification.NON_IDENTIFYING;break;case 75:this.$=n.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:o,24:d,26:h,28:u,29:14,30:15,31:16,32:17,33:f,34:y,35:k,36:w,37:K,40:S,43:$,44:Z,50:T},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:27,11:9,22:o,24:d,26:h,28:u,29:14,30:15,31:16,32:17,33:f,34:y,35:k,36:w,37:K,40:S,43:$,44:Z,50:T},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:L,64:tt,65:et,66:st,67:it}),{23:[1,38]},{25:[1,39]},{27:[1,40]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(ut,[2,54]),s(ut,[2,55]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:41,40:O,41:N},{16:44,40:O,41:N},{16:45,40:O,41:N},s(i,[2,4]),{11:46,40:S,50:T},{16:47,40:O,41:N},{18:48,19:[1,49],51:50,52:51,56:V},{11:53,40:S,50:T},{62:54,68:[1,55],69:[1,56]},s(M,[2,69]),s(M,[2,70]),s(M,[2,71]),s(M,[2,72]),s(M,[2,73]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:B,38:57,41:F,42:A,45:59,46:60,48:P,49:Y},s(U,[2,37]),s(U,[2,38]),{16:65,40:O,41:N,42:A},{13:B,38:66,41:F,42:A,45:59,46:60,48:P,49:Y},{13:[1,67],15:[1,68]},s(i,[2,17],{61:32,12:69,17:[1,70],42:A,63:L,64:tt,65:et,66:st,67:it}),{19:[1,71]},s(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:V},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:L,64:tt,65:et,66:st,67:it},s(dt,[2,74]),s(dt,[2,75]),{6:_t,10:pt,39:77,42:ft,47:yt},{40:[1,82],41:[1,83]},s(gt,[2,43],{46:84,13:B,41:F,48:P,49:Y}),s(x,[2,45]),s(x,[2,50]),s(x,[2,51]),s(x,[2,52]),s(x,[2,53]),s(i,[2,41],{42:A}),{6:_t,10:pt,39:85,42:ft,47:yt},{14:86,40:j,50:W,70:q},{16:90,40:O,41:N},{11:91,40:S,50:T},{18:92,19:[1,93],51:50,52:51,56:V},s(i,[2,12]),{19:[2,57]},s(z,[2,58],{54:94,55:95,57:96,59:mt,60:bt}),s([19,56,59,60],[2,63]),s(i,[2,22],{15:[1,100],17:[1,99]}),s([40,50],[2,68]),s(i,[2,36]),{13:B,41:F,45:101,46:60,48:P,49:Y},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(U,[2,39]),s(U,[2,40]),s(x,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,76]),s(i,[2,77]),s(i,[2,78]),{13:[1,102],42:A},{13:[1,104],15:[1,103]},{19:[1,105]},s(i,[2,15]),s(z,[2,59],{55:106,58:[1,107],60:bt}),s(z,[2,60]),s(nt,[2,64]),s(z,[2,67]),s(nt,[2,66]),{18:108,19:[1,109],51:50,52:51,56:V},{16:110,40:O,41:N},s(gt,[2,44],{46:84,13:B,41:F,48:P,49:Y}),{14:111,40:j,50:W,70:q},{16:112,40:O,41:N},{14:113,40:j,50:W,70:q},s(i,[2,13]),s(z,[2,61]),{57:114,59:mt},{19:[1,115]},s(i,[2,20]),s(i,[2,23],{17:[1,116],42:A}),s(i,[2,11]),{13:[1,117],42:A},s(i,[2,10]),s(nt,[2,65]),s(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:V},{14:120,40:j,50:W,70:q},{19:[1,121]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:a.__name(function(r,c){if(c.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=c,l}},"parseError"),parse:a.__name(function(r){var c=this,l=[0],n=[],_=[null],t=[],G=this.table,e="",X=0,kt=0,At=2,Et=1,Rt=t.slice.call(arguments,1),p=Object.create(this.lexer),C={yy:{}};for(var at in this.yy)Object.prototype.hasOwnProperty.call(this.yy,at)&&(C.yy[at]=this.yy[at]);p.setInput(r,C.yy),C.yy.lexer=p,C.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var ct=p.yylloc;t.push(ct);var Ct=p.options&&p.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function It(m){l.length=l.length-2*m,_.length=_.length-m,t.length=t.length-m}a.__name(It,"popStack");function St(){var m;return m=n.pop()||p.lex()||Et,typeof m!="number"&&(m instanceof Array&&(n=m,m=n.pop()),m=c.symbols_[m]||m),m}a.__name(St,"lex");for(var g,I,b,lt,v={},H,E,Tt,J;;){if(I=l[l.length-1],this.defaultActions[I]?b=this.defaultActions[I]:((g===null||typeof g>"u")&&(g=St()),b=G[I]&&G[I][g]),typeof b>"u"||!b.length||!b[0]){var ot="";J=[];for(H in G[I])this.terminals_[H]&&H>At&&J.push("'"+this.terminals_[H]+"'");p.showPosition?ot="Parse error on line "+(X+1)+`:
2
+ `+p.showPosition()+`
3
+ Expecting `+J.join(", ")+", got '"+(this.terminals_[g]||g)+"'":ot="Parse error on line "+(X+1)+": Unexpected "+(g==Et?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(ot,{text:p.match,token:this.terminals_[g]||g,line:p.yylineno,loc:ct,expected:J})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+g);switch(b[0]){case 1:l.push(g),_.push(p.yytext),t.push(p.yylloc),l.push(b[1]),g=null,kt=p.yyleng,e=p.yytext,X=p.yylineno,ct=p.yylloc;break;case 2:if(E=this.productions_[b[1]][1],v.$=_[_.length-E],v._$={first_line:t[t.length-(E||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(E||1)].first_column,last_column:t[t.length-1].last_column},Ct&&(v._$.range=[t[t.length-(E||1)].range[0],t[t.length-1].range[1]]),lt=this.performAction.apply(v,[e,kt,X,C.yy,b[1],_,t].concat(Rt)),typeof lt<"u")return lt;E&&(l=l.slice(0,-1*E*2),_=_.slice(0,-1*E),t=t.slice(0,-1*E)),l.push(this.productions_[b[1]][0]),_.push(v.$),t.push(v._$),Tt=G[l[l.length-2]][l[l.length-1]],l.push(Tt);break;case 3:return!0}}return!0},"parse")},Nt=(function(){var R={EOF:1,parseError:a.__name(function(c,l){if(this.yy.parser)this.yy.parser.parseError(c,l);else throw new Error(c)},"parseError"),setInput:a.__name(function(r,c){return this.yy=c||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a.__name(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var c=r.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:a.__name(function(r){var c=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===n.length?this.yylloc.first_column:0)+n[n.length-l.length].length-l[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:a.__name(function(){return this._more=!0,this},"more"),reject:a.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a.__name(function(r){this.unput(this.match.slice(r))},"less"),pastInput:a.__name(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a.__name(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a.__name(function(){var r=this.pastInput(),c=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
5
+ `+c+"^"},"showPosition"),test_match:a.__name(function(r,c){var l,n,_;if(this.options.backtrack_lexer&&(_={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_.yylloc.range=this.yylloc.range.slice(0))),n=r[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,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(r[0].length),this.matched+=r[0],l=this.performAction.call(this,this.yy,this,c,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var t in _)this[t]=_[t];return!1}return!1},"test_match"),next:a.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,c,l,n;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),t=0;t<_.length;t++)if(l=this._input.match(this.rules[_[t]]),l&&(!c||l[0].length>c[0].length)){if(c=l,n=t,this.options.backtrack_lexer){if(r=this.test_match(l,_[t]),r!==!1)return r;if(this._backtrack){c=!1;continue}else return!1}else if(!this.options.flex)break}return c?(r=this.test_match(c,_[n]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a.__name(function(){var c=this.next();return c||this.lex()},"lex"),begin:a.__name(function(c){this.conditionStack.push(c)},"begin"),popState:a.__name(function(){var c=this.conditionStack.length-1;return c>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a.__name(function(c){return c=this.conditionStack.length-1-Math.abs(c||0),c>=0?this.conditionStack[c]:"INITIAL"},"topState"),pushState:a.__name(function(c){this.begin(c)},"pushState"),stateStackSize:a.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a.__name(function(c,l,n,_){switch(n){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 70;case 16:return 4;case 17:return this.begin("block"),17;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 59;case 25:return 56;case 26:return 56;case 27:return 60;case 28:break;case 29:return this.popState(),19;case 30:return l.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;case 40:return 43;case 41:return 63;case 42:return 65;case 43:return 65;case 44:return 65;case 45:return 63;case 46:return 63;case 47:return 64;case 48:return 64;case 49:return 64;case 50:return 64;case 51:return 64;case 52:return 65;case 53:return 64;case 54:return 65;case 55:return 66;case 56:return 66;case 57:return 66;case 58:return 66;case 59:return 63;case 60:return 64;case 61:return 65;case 62:return 67;case 63:return 68;case 64:return 69;case 65:return 69;case 66:return 68;case 67:return 68;case 68:return 68;case 69:return 41;case 70:return 47;case 71:return 40;case 72:return 48;case 73:return l.yytext[0];case 74:return 6}},"anonymous"),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,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/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,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/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,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:[0-9])/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,69,70],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,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,71,72,73,74],inclusive:!0}}};return R})();rt.lexer=Nt;function Q(){this.yy={}}return a.__name(Q,"Parser"),Q.prototype=rt,rt.Parser=Q,new Q})();ht.parser=ht;var wt=ht,D,Lt=(D=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=a.setAccTitle,this.getAccTitle=a.getAccTitle,this.setAccDescription=a.setAccDescription,this.getAccDescription=a.getAccDescription,this.setDiagramTitle=a.setDiagramTitle,this.getDiagramTitle=a.getDiagramTitle,this.getConfig=a.__name(()=>a.getConfig2().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)}addEntity(i,o=""){return this.entities.has(i)?!this.entities.get(i)?.alias&&o&&(this.entities.get(i).alias=o,a.log.info(`Add alias '${o}' to entity '${i}'`)):(this.entities.set(i,{id:`entity-${i}-${this.entities.size}`,label:i,attributes:[],alias:o,shape:"erBox",look:a.getConfig2().look??"default",cssClasses:"default",cssStyles:[]}),a.log.info("Added new entity :",i)),this.entities.get(i)}getEntity(i){return this.entities.get(i)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(i,o){const d=this.addEntity(i);let h;for(h=o.length-1;h>=0;h--)o[h].keys||(o[h].keys=[]),o[h].comment||(o[h].comment=""),d.attributes.push(o[h]),a.log.debug("Added attribute ",o[h].name)}addRelationship(i,o,d,h){const u=this.entities.get(i),f=this.entities.get(d);if(!u||!f)return;const y={entityA:u.id,roleA:o,entityB:f.id,relSpec:h};this.relationships.push(y),a.log.debug("Added new relationship :",y)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(i){this.direction=i}getCompiledStyles(i){let o=[];for(const d of i){const h=this.classes.get(d);h?.styles&&(o=[...o,...h.styles??[]].map(u=>u.trim())),h?.textStyles&&(o=[...o,...h.textStyles??[]].map(u=>u.trim()))}return o}addCssStyles(i,o){for(const d of i){const h=this.entities.get(d);if(!o||!h)return;for(const u of o)h.cssStyles.push(u)}}addClass(i,o){i.forEach(d=>{let h=this.classes.get(d);h===void 0&&(h={id:d,styles:[],textStyles:[]},this.classes.set(d,h)),o&&o.forEach(function(u){if(/color/.exec(u)){const f=u.replace("fill","bgFill");h.textStyles.push(f)}h.styles.push(u)})})}setClass(i,o){for(const d of i){const h=this.entities.get(d);if(h)for(const u of o)h.cssClasses+=" "+u}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],a.clear()}getData(){const i=[],o=[],d=a.getConfig2();for(const u of this.entities.keys()){const f=this.entities.get(u);f&&(f.cssCompiledStyles=this.getCompiledStyles(f.cssClasses.split(" ")),i.push(f))}let h=0;for(const u of this.relationships){const f={id:a.getEdgeId(u.entityA,u.entityB,{prefix:"id",counter:h++}),type:"normal",curve:"basis",start:u.entityA,end:u.entityB,label:u.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:u.relSpec.cardB.toLowerCase(),arrowTypeEnd:u.relSpec.cardA.toLowerCase(),pattern:u.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:d.look};o.push(f)}return{nodes:i,edges:o,other:{},config:d,direction:"TB"}}},a.__name(D,"ErDB"),D),Ot={};a.__export(Ot,{draw:()=>Vt});var Vt=a.__name(async function(s,i,o,d){a.log.info("REF0:"),a.log.info("Drawing er diagram (unified)",i);const{securityLevel:h,er:u,layout:f}=a.getConfig2(),y=d.db.getData(),k=xt.getDiagramElement(i,h);y.type=d.type,y.layoutAlgorithm=a.getRegisteredLayoutAlgorithm(f),y.config.flowchart.nodeSpacing=u?.nodeSpacing||140,y.config.flowchart.rankSpacing=u?.rankSpacing||80,y.direction=d.db.getDirection(),y.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],y.diagramId=i,await a.render(y,k),y.layoutAlgorithm==="elk"&&k.select(".edges").lower();const w=k.selectAll('[id*="-background"]');Array.from(w).length>0&&w.each(function(){const S=a.select(this),Z=S.attr("id").replace("-background",""),T=k.select(`#${CSS.escape(Z)}`);if(!T.empty()){const L=T.attr("transform");S.attr("transform",L)}});const K=8;a.utils_default.insertTitle(k,"erDiagramTitleText",u?.titleTopMargin??25,d.db.getDiagramTitle()),vt.setupViewPortForSVG(k,K,"erDiagram",u?.useMaxWidth??!0)},"draw"),Mt=a.__name((s,i)=>{const o=Dt.channel,d=o(s,"r"),h=o(s,"g"),u=o(s,"b");return a.rgba(d,h,u,i)},"fade"),Bt=a.__name(s=>`
7
+ .entityBox {
8
+ fill: ${s.mainBkg};
9
+ stroke: ${s.nodeBorder};
10
+ }
11
+
12
+ .relationshipLabelBox {
13
+ fill: ${s.tertiaryColor};
14
+ opacity: 0.7;
15
+ background-color: ${s.tertiaryColor};
16
+ rect {
17
+ opacity: 0.5;
18
+ }
19
+ }
20
+
21
+ .labelBkg {
22
+ background-color: ${Mt(s.tertiaryColor,.5)};
23
+ }
24
+
25
+ .edgeLabel .label {
26
+ fill: ${s.nodeBorder};
27
+ font-size: 14px;
28
+ }
29
+
30
+ .label {
31
+ font-family: ${s.fontFamily};
32
+ color: ${s.nodeTextColor||s.textColor};
33
+ }
34
+
35
+ .edge-pattern-dashed {
36
+ stroke-dasharray: 8,8;
37
+ }
38
+
39
+ .node rect,
40
+ .node circle,
41
+ .node ellipse,
42
+ .node polygon
43
+ {
44
+ fill: ${s.mainBkg};
45
+ stroke: ${s.nodeBorder};
46
+ stroke-width: 1px;
47
+ }
48
+
49
+ .relationshipLine {
50
+ stroke: ${s.lineColor};
51
+ stroke-width: 1;
52
+ fill: none;
53
+ }
54
+
55
+ .marker {
56
+ fill: none !important;
57
+ stroke: ${s.lineColor} !important;
58
+ stroke-width: 1;
59
+ }
60
+ `,"getStyles"),Ft=Bt,Pt={parser:wt,get db(){return new Lt},renderer:Ot,styles:Ft};exports.diagram=Pt;