@omg-dev/app 0.5.0 → 0.6.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.
- package/dist-lib/{ChangelogPage-8lbvM9Pz.js → ChangelogPage-Cjj_DiYL.js} +57 -1
- package/dist-lib/{File-B-qYa2zY.js → File-DQRr5F_e.js} +1761 -1826
- package/dist-lib/FileEditor-BrI3dfcp.js +6895 -0
- package/dist-lib/FileTreePane-J8P-OiHb.js +8413 -0
- package/dist-lib/{FileViewer-Clmf04v1.js → FileViewer-DRrfus7c.js} +1 -1
- package/dist-lib/{SessionFilesPanel-BKcTU57t.js → SessionFilesPanel-DxVJ43fE.js} +69 -69
- package/dist-lib/{TermView-gazV6UMU.js → TermView-B4V-DyD-.js} +521 -530
- package/dist-lib/{abnfDiagram-VRR7QNED-Chn1Z_p9.js → abnfDiagram-VRR7QNED-CiXfOnAu.js} +4 -4
- package/dist-lib/{arc-B652oHQ-.js → arc-QOMNKQA5.js} +1 -1
- package/dist-lib/{architectureDiagram-ZJ3FMSHR-CMatArpz.js → architectureDiagram-ZJ3FMSHR-BcFBTmfD.js} +2059 -2064
- package/dist-lib/{blockDiagram-677ZJIJ3-CEOPfI9A.js → blockDiagram-677ZJIJ3-Qj8-RIV3.js} +920 -925
- package/dist-lib/{c4Diagram-LMCZKHZV-DcUHrESL.js → c4Diagram-LMCZKHZV-BpinEmj4.js} +598 -593
- package/dist-lib/{channel-B5lJFbed.js → channel-D6YHMmF7.js} +1 -1
- package/dist-lib/{chat-engine-83mwx0z2.js → chat-engine-CUiDTHFP.js} +1173 -1218
- package/dist-lib/chunk-2Q5K7J3B-CFSi414U.js +18 -0
- package/dist-lib/{chunk-32BRIVSS-IYmNSvH8.js → chunk-32BRIVSS-DvywQiCk.js} +1 -1
- package/dist-lib/{chunk-5VM5RSS4-DO2g-xIj.js → chunk-5VM5RSS4-xd6XuI9Q.js} +1 -1
- package/dist-lib/{chunk-BO2N2NFS-kYiI5SD9.js → chunk-BO2N2NFS-BbJdm-59.js} +4892 -4903
- package/dist-lib/{chunk-EX3LRPZG-N96wfks9.js → chunk-EX3LRPZG-BLDKx-Yg.js} +507 -514
- package/dist-lib/chunk-JWPE2WC7-DnwG7Xzp.js +8 -0
- package/dist-lib/chunk-MOJQB5TN-BrENeFT5.js +670 -0
- package/dist-lib/chunk-RYQCIY6F-I-J4fVFd.js +313 -0
- package/dist-lib/{chunk-V7JOEXUC-DQwf2vkP.js → chunk-V7JOEXUC-Bkakcs1-.js} +458 -453
- package/dist-lib/chunk-VR4S4FIN-BDq3jZ0m.js +19 -0
- package/dist-lib/{chunk-XXDRQBXY-Ccv4aRcn.js → chunk-XXDRQBXY-DRKeYnrF.js} +1 -1
- package/dist-lib/{classDiagram-v2-EOCWNBFH-DOn-rhuL.js → classDiagram-OUVF2IWQ-DISUfvR5.js} +2 -2
- package/dist-lib/{classDiagram-OUVF2IWQ-DOn-rhuL.js → classDiagram-v2-EOCWNBFH-DISUfvR5.js} +2 -2
- package/dist-lib/{coding-agents-page-8Nf-IuE2.js → coding-agents-page-DtxZ0nbQ.js} +152 -131
- package/dist-lib/computer-page-DIJeFOZz.js +8860 -0
- package/dist-lib/{cose-bilkent-JH36ORCC-C-tACTrT.js → cose-bilkent-JH36ORCC-DCfmoChv.js} +281 -281
- package/dist-lib/{create-BrnHvSDE.js → create-CBk9uwJH.js} +2 -2
- package/dist-lib/cynefin-VYW2F7L2-XAY3mHv8.js +24430 -0
- package/dist-lib/{cynefinDiagram-TSTJHNR4-Be7CamD2.js → cynefinDiagram-TSTJHNR4-CrgvPEr1.js} +3 -3
- package/dist-lib/{cytoscape.esm-B0ledd6M.js → cytoscape.esm-BB6Ga9He.js} +3 -3
- package/dist-lib/dagre-VKFMJZFB-CE5k06mJ.js +343 -0
- package/dist-lib/{diagram-FQU43EPY-Jg12ow4Z.js → diagram-FQU43EPY-gOcCiJEN.js} +136 -139
- package/dist-lib/diagram-G47NLZAW-BVJLfRsd.js +531 -0
- package/dist-lib/diagram-NH7WQ7WH-u6QnHasL.js +145 -0
- package/dist-lib/diagram-OA4YK3LP-D4Kcl3uM.js +350 -0
- package/dist-lib/{diagram-WEI45ONY-D1kKPOc_.js → diagram-WEI45ONY-6a__oIb0.js} +38 -42
- package/dist-lib/{ebnfDiagram-CCIWWBDH-BhQWrGMc.js → ebnfDiagram-CCIWWBDH-PXSrB6lG.js} +4 -4
- package/dist-lib/{embedded-BmrQsEvQ.js → embedded-PUsgcSTE.js} +13043 -13082
- package/dist-lib/{engine-compile-BeDRSL6Y.js → engine-compile-D_stzVMa.js} +2939 -2991
- package/dist-lib/{erDiagram-Q63AITRT-D2q6Nmwa.js → erDiagram-Q63AITRT-BbsttUCs.js} +286 -284
- package/dist-lib/flowDiagram-23GEKE2U-CX5x3zVA.js +1641 -0
- package/dist-lib/{ganttDiagram-NO4QXBWP-C_Lj-cJB.js → ganttDiagram-NO4QXBWP-Bq0aSPs8.js} +2 -2
- package/dist-lib/gitGraphDiagram-IHSO6WYX-BjAezjIv.js +815 -0
- package/dist-lib/{graph-B68L3K2T.js → graph-DAHC4kPm.js} +2 -2
- package/dist-lib/{highlighted-body-OFNGDK62-C2DGVKV8.js → highlighted-body-OFNGDK62-DWhG_ijx.js} +1 -1
- package/dist-lib/index-B0neMIbR.js +16520 -0
- package/dist-lib/index-BBC0E3Qg.js +4994 -0
- package/dist-lib/{index-Dtkd4mEk.js → index-CE7H8LiZ.js} +2 -2
- package/dist-lib/{index-DWkBvb-9.js → index-FgVvPpIY.js} +2 -2
- package/dist-lib/index.js +1 -1
- package/dist-lib/{infoDiagram-FWYZ7A6U-BbUkT0KS.js → infoDiagram-FWYZ7A6U-Bo_FNR91.js} +2 -2
- package/dist-lib/ishikawaDiagram-FXEZZL3T-C5bGD-Eb.js +624 -0
- package/dist-lib/{journeyDiagram-5HDEW3XC-CgykmVSC.js → journeyDiagram-5HDEW3XC-C8qM7SxF.js} +4 -4
- package/dist-lib/kanban-definition-HUTT4EX6-C-EK5Puz.js +724 -0
- package/dist-lib/{katex-jHfnQmlp.js → katex-DoRnZ_sp.js} +1 -1
- package/dist-lib/{layout-BGrtsiRL.js → layout-DBbo_M5I.js} +2 -2
- package/dist-lib/{linear-B5ZSwawJ.js → linear-zGzX0-I0.js} +1 -1
- package/dist-lib/{map-hbfFlSln.js → map-DRdzG8Ho.js} +1 -1
- package/dist-lib/mermaid-GHXKKRXX-hOE9C3qW.js +4 -0
- package/dist-lib/{mindmap-definition-LN4V7U3C-CfhfeEht.js → mindmap-definition-LN4V7U3C-DlVCRx6k.js} +310 -311
- package/dist-lib/{pegDiagram-2B236MQR-CYDAJHPF.js → pegDiagram-2B236MQR-DrKNikeG.js} +4 -4
- package/dist-lib/{pieDiagram-ENE6RG2P-udKxQm4p.js → pieDiagram-ENE6RG2P-Fm_jc0HL.js} +83 -84
- package/dist-lib/quadrantDiagram-ABIIQ3AL-zDRY0VtB.js +1029 -0
- package/dist-lib/{railroadDiagram-RFXS5EU6-q0Svkmuy.js → railroadDiagram-RFXS5EU6-BQuFX39y.js} +4 -4
- package/dist-lib/{requirementDiagram-TGXJPOKE-tNxRI1gc.js → requirementDiagram-TGXJPOKE-BWwBQZXn.js} +269 -268
- package/dist-lib/{resume-session-sheet-Dr_81Gfm.js → resume-session-sheet-DTe_2QtJ.js} +2 -3
- package/dist-lib/sankeyDiagram-HTMAVEWB-BjRyuB6L.js +859 -0
- package/dist-lib/{sequenceDiagram-DBY2YBRQ-Dvl2_CXL.js → sequenceDiagram-DBY2YBRQ-69pcw_2M.js} +892 -899
- package/dist-lib/{session-token-usage-CGhHZ3lT.js → session-token-usage-DY4vFlfs.js} +82 -83
- package/dist-lib/{shadow-text-size-CBCTdbYU.js → shadow-text-size-smWA4wIU.js} +1 -2
- package/dist-lib/{shipped-page-p3oulUiM.js → shipped-page-B-ruG8li.js} +233 -236
- package/dist-lib/sizeCapture-X5ZJPWSS-DqkV8s1N.js +46 -0
- package/dist-lib/{stateDiagram-2N3HPSRC-CnWB7HvU.js → stateDiagram-2N3HPSRC-0vE3REl_.js} +4 -4
- package/dist-lib/{stateDiagram-v2-6OUMAXLB-DnZ0UI2p.js → stateDiagram-v2-6OUMAXLB-u_56Obsh.js} +2 -2
- package/dist-lib/{streamdown-response-Dbn0PKUH.js → streamdown-response-BQy3geXs.js} +290 -297
- package/dist-lib/styles.css +1 -1
- package/dist-lib/swimlanes-5IMT3BWC-H0raIBd1.js +5332 -0
- package/dist-lib/{swimlanesDiagram-G3AALYLV-CKyOeqF_.js → swimlanesDiagram-G3AALYLV-By52HaDu.js} +2 -2
- package/dist-lib/timeline-definition-FHXFAJF6-h1LLYUQk.js +1055 -0
- package/dist-lib/vennDiagram-L72KCM5P-B4wDw_Kh.js +1578 -0
- package/dist-lib/wardleyDiagram-EHGQE667-DLMBGiwD.js +678 -0
- package/dist-lib/{xychartDiagram-FW5EYKEG-m3s7caPv.js → xychartDiagram-FW5EYKEG-BHvf5Noj.js} +526 -496
- package/package.json +4 -3
- package/dist-lib/FileEditor-BIz0qCyW.js +0 -6892
- package/dist-lib/FileTreePane-BG2k7gTc.js +0 -8422
- package/dist-lib/chunk-2Q5K7J3B-Ex8Ly28R.js +0 -15
- package/dist-lib/chunk-JWPE2WC7-DFPBClX_.js +0 -9
- package/dist-lib/chunk-MOJQB5TN-dusfI9ob.js +0 -664
- package/dist-lib/chunk-RYQCIY6F-fkeERzIG.js +0 -315
- package/dist-lib/chunk-VR4S4FIN-hOZG7eF3.js +0 -20
- package/dist-lib/cynefin-VYW2F7L2-DQXPWaog.js +0 -23853
- package/dist-lib/dagre-VKFMJZFB-BhCjK7XQ.js +0 -346
- package/dist-lib/diagram-G47NLZAW-C3_z2t6T.js +0 -530
- package/dist-lib/diagram-NH7WQ7WH-DUdK08IT.js +0 -143
- package/dist-lib/diagram-OA4YK3LP-TUUyRYY3.js +0 -353
- package/dist-lib/flowDiagram-23GEKE2U-DU3S3biU.js +0 -1645
- package/dist-lib/gitGraphDiagram-IHSO6WYX-CvGu0XAR.js +0 -828
- package/dist-lib/index-DcwavxA1.js +0 -5062
- package/dist-lib/index-JkCQXUYs.js +0 -16566
- package/dist-lib/ishikawaDiagram-FXEZZL3T-D_Y6Tuyb.js +0 -622
- package/dist-lib/kanban-definition-HUTT4EX6-CPFLTskY.js +0 -726
- package/dist-lib/mermaid-GHXKKRXX-Ox_2d3uB.js +0 -4
- package/dist-lib/quadrantDiagram-ABIIQ3AL-BmDmLczk.js +0 -1025
- package/dist-lib/sankeyDiagram-HTMAVEWB-B9Bl7f2P.js +0 -847
- package/dist-lib/sizeCapture-X5ZJPWSS-B1EeO3N9.js +0 -47
- package/dist-lib/swimlanes-5IMT3BWC-CvqDJcS9.js +0 -5353
- package/dist-lib/timeline-definition-FHXFAJF6-b15X0Oru.js +0 -1066
- package/dist-lib/vennDiagram-L72KCM5P-C4lh5m77.js +0 -1585
- package/dist-lib/wardleyDiagram-EHGQE667-Cev6fT_D.js +0 -684
package/dist-lib/{mindmap-definition-LN4V7U3C-CfhfeEht.js → mindmap-definition-LN4V7U3C-DlVCRx6k.js}
RENAMED
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
import { g as oe } from "./chunk-XXDRQBXY-
|
|
2
|
-
import { s as
|
|
3
|
-
import { _ as
|
|
4
|
-
const
|
|
5
|
-
for (let
|
|
6
|
-
|
|
7
|
-
function
|
|
8
|
-
return (
|
|
1
|
+
import { g as oe } from "./chunk-XXDRQBXY-DRKeYnrF.js";
|
|
2
|
+
import { s as ae } from "./chunk-VR4S4FIN-BDq3jZ0m.js";
|
|
3
|
+
import { _ as l, l as C, v as ce, x as le, z as he, D as G, c as B, i as F, b6 as de, aa as ge, ab as ue, ac as pe } from "./index-B0neMIbR.js";
|
|
4
|
+
const E = [];
|
|
5
|
+
for (let e = 0; e < 256; ++e)
|
|
6
|
+
E.push((e + 256).toString(16).slice(1));
|
|
7
|
+
function fe(e, n = 0) {
|
|
8
|
+
return (E[e[n + 0]] + E[e[n + 1]] + E[e[n + 2]] + E[e[n + 3]] + "-" + E[e[n + 4]] + E[e[n + 5]] + "-" + E[e[n + 6]] + E[e[n + 7]] + "-" + E[e[n + 8]] + E[e[n + 9]] + "-" + E[e[n + 10]] + E[e[n + 11]] + E[e[n + 12]] + E[e[n + 13]] + E[e[n + 14]] + E[e[n + 15]]).toLowerCase();
|
|
9
9
|
}
|
|
10
|
-
const
|
|
11
|
-
function
|
|
12
|
-
return crypto.getRandomValues(
|
|
10
|
+
const me = new Uint8Array(16);
|
|
11
|
+
function ye() {
|
|
12
|
+
return crypto.getRandomValues(me);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
return crypto.randomUUID ? crypto.randomUUID() :
|
|
14
|
+
function Ee(e, n, g) {
|
|
15
|
+
return crypto.randomUUID ? crypto.randomUUID() : _e(e);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
if (l.length < 16)
|
|
17
|
+
function _e(e, n, g) {
|
|
18
|
+
e = e || {};
|
|
19
|
+
const a = e.random ?? e.rng?.() ?? ye();
|
|
20
|
+
if (a.length < 16)
|
|
22
21
|
throw new Error("Random bytes length must be >= 16");
|
|
23
|
-
return
|
|
22
|
+
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, fe(a);
|
|
24
23
|
}
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
for (i = i || {},
|
|
24
|
+
var Y = (function() {
|
|
25
|
+
var e = /* @__PURE__ */ l(function(D, s, i, o) {
|
|
26
|
+
for (i = i || {}, o = D.length; o--; i[D[o]] = s) ;
|
|
28
27
|
return i;
|
|
29
|
-
}, "o"),
|
|
30
|
-
trace: /* @__PURE__ */
|
|
28
|
+
}, "o"), n = [1, 4], g = [1, 13], a = [1, 12], t = [1, 15], h = [1, 16], f = [1, 20], m = [1, 19], _ = [6, 7, 8], T = [1, 26], I = [1, 24], w = [1, 25], d = [6, 7, 11], R = [1, 6, 13, 15, 16, 19, 22], q = [1, 33], J = [1, 34], A = [1, 6, 7, 11, 13, 15, 16, 19, 22], j = {
|
|
29
|
+
trace: /* @__PURE__ */ l(function() {
|
|
31
30
|
}, "trace"),
|
|
32
31
|
yy: {},
|
|
33
32
|
symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, MINDMAP: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, ICON: 15, CLASS: 16, nodeWithId: 17, nodeWithoutId: 18, NODE_DSTART: 19, NODE_DESCR: 20, NODE_DEND: 21, NODE_ID: 22, $accept: 0, $end: 1 },
|
|
34
33
|
terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
|
|
35
34
|
productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
|
|
36
|
-
performAction: /* @__PURE__ */
|
|
37
|
-
var
|
|
38
|
-
switch (
|
|
35
|
+
performAction: /* @__PURE__ */ l(function(s, i, o, c, p, r, $) {
|
|
36
|
+
var u = r.length - 1;
|
|
37
|
+
switch (p) {
|
|
39
38
|
case 6:
|
|
40
39
|
case 7:
|
|
41
40
|
return c;
|
|
@@ -52,105 +51,105 @@ var K = (function() {
|
|
|
52
51
|
c.getLogger().trace("Stop EOF2 ");
|
|
53
52
|
break;
|
|
54
53
|
case 15:
|
|
55
|
-
c.getLogger().info("Node: ", r[
|
|
54
|
+
c.getLogger().info("Node: ", r[u].id), c.addNode(r[u - 1].length, r[u].id, r[u].descr, r[u].type);
|
|
56
55
|
break;
|
|
57
56
|
case 16:
|
|
58
|
-
c.getLogger().trace("Icon: ", r[
|
|
57
|
+
c.getLogger().trace("Icon: ", r[u]), c.decorateNode({ icon: r[u] });
|
|
59
58
|
break;
|
|
60
59
|
case 17:
|
|
61
60
|
case 21:
|
|
62
|
-
c.decorateNode({ class: r[
|
|
61
|
+
c.decorateNode({ class: r[u] });
|
|
63
62
|
break;
|
|
64
63
|
case 18:
|
|
65
64
|
c.getLogger().trace("SPACELIST");
|
|
66
65
|
break;
|
|
67
66
|
case 19:
|
|
68
|
-
c.getLogger().trace("Node: ", r[
|
|
67
|
+
c.getLogger().trace("Node: ", r[u].id), c.addNode(0, r[u].id, r[u].descr, r[u].type);
|
|
69
68
|
break;
|
|
70
69
|
case 20:
|
|
71
|
-
c.decorateNode({ icon: r[
|
|
70
|
+
c.decorateNode({ icon: r[u] });
|
|
72
71
|
break;
|
|
73
72
|
case 25:
|
|
74
|
-
c.getLogger().trace("node found ..", r[
|
|
73
|
+
c.getLogger().trace("node found ..", r[u - 2]), this.$ = { id: r[u - 1], descr: r[u - 1], type: c.getType(r[u - 2], r[u]) };
|
|
75
74
|
break;
|
|
76
75
|
case 26:
|
|
77
|
-
this.$ = { id: r[
|
|
76
|
+
this.$ = { id: r[u], descr: r[u], type: c.nodeType.DEFAULT };
|
|
78
77
|
break;
|
|
79
78
|
case 27:
|
|
80
|
-
c.getLogger().trace("node found ..", r[
|
|
79
|
+
c.getLogger().trace("node found ..", r[u - 3]), this.$ = { id: r[u - 3], descr: r[u - 1], type: c.getType(r[u - 2], r[u]) };
|
|
81
80
|
break;
|
|
82
81
|
}
|
|
83
82
|
}, "anonymous"),
|
|
84
|
-
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8:
|
|
83
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: n }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: n }, { 6: g, 7: [1, 10], 9: 9, 12: 11, 13: a, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, e(_, [2, 3]), { 1: [2, 2] }, e(_, [2, 4]), e(_, [2, 5]), { 1: [2, 6], 6: g, 12: 21, 13: a, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, { 6: g, 9: 22, 12: 11, 13: a, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, { 6: T, 7: I, 10: 23, 11: w }, e(d, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: f, 22: m }), e(d, [2, 18]), e(d, [2, 19]), e(d, [2, 20]), e(d, [2, 21]), e(d, [2, 23]), e(d, [2, 24]), e(d, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: T, 7: I, 10: 32, 11: w }, { 1: [2, 7], 6: g, 12: 21, 13: a, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, e(R, [2, 14], { 7: q, 11: J }), e(A, [2, 8]), e(A, [2, 9]), e(A, [2, 10]), e(d, [2, 15]), e(d, [2, 16]), e(d, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, e(R, [2, 13], { 7: q, 11: J }), e(A, [2, 11]), e(A, [2, 12]), { 21: [1, 37] }, e(d, [2, 25]), e(d, [2, 27])],
|
|
85
84
|
defaultActions: { 2: [2, 1], 6: [2, 2] },
|
|
86
|
-
parseError: /* @__PURE__ */
|
|
85
|
+
parseError: /* @__PURE__ */ l(function(s, i) {
|
|
87
86
|
if (i.recoverable)
|
|
88
87
|
this.trace(s);
|
|
89
88
|
else {
|
|
90
|
-
var
|
|
91
|
-
throw
|
|
89
|
+
var o = new Error(s);
|
|
90
|
+
throw o.hash = i, o;
|
|
92
91
|
}
|
|
93
92
|
}, "parseError"),
|
|
94
|
-
parse: /* @__PURE__ */
|
|
95
|
-
var i = this,
|
|
96
|
-
for (var
|
|
97
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
98
|
-
|
|
99
|
-
var
|
|
100
|
-
r.push(
|
|
101
|
-
var
|
|
102
|
-
typeof
|
|
103
|
-
function
|
|
104
|
-
|
|
93
|
+
parse: /* @__PURE__ */ l(function(s) {
|
|
94
|
+
var i = this, o = [0], c = [], p = [null], r = [], $ = this.table, u = "", M = 0, K = 0, ne = 2, Q = 1, ie = r.slice.call(arguments, 1), y = Object.create(this.lexer), L = { yy: {} };
|
|
95
|
+
for (var H in this.yy)
|
|
96
|
+
Object.prototype.hasOwnProperty.call(this.yy, H) && (L.yy[H] = this.yy[H]);
|
|
97
|
+
y.setInput(s, L.yy), L.yy.lexer = y, L.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
|
|
98
|
+
var z = y.yylloc;
|
|
99
|
+
r.push(z);
|
|
100
|
+
var se = y.options && y.options.ranges;
|
|
101
|
+
typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
102
|
+
function re(k) {
|
|
103
|
+
o.length = o.length - 2 * k, p.length = p.length - k, r.length = r.length - k;
|
|
105
104
|
}
|
|
106
|
-
|
|
107
|
-
function
|
|
108
|
-
var
|
|
109
|
-
return
|
|
105
|
+
l(re, "popStack");
|
|
106
|
+
function Z() {
|
|
107
|
+
var k;
|
|
108
|
+
return k = c.pop() || y.lex() || Q, typeof k != "number" && (k instanceof Array && (c = k, k = c.pop()), k = i.symbols_[k] || k), k;
|
|
110
109
|
}
|
|
111
|
-
|
|
112
|
-
for (var
|
|
113
|
-
if (
|
|
114
|
-
var
|
|
115
|
-
|
|
116
|
-
for (
|
|
117
|
-
this.terminals_[
|
|
118
|
-
|
|
119
|
-
` +
|
|
120
|
-
Expecting ` +
|
|
121
|
-
text:
|
|
122
|
-
token: this.terminals_[
|
|
123
|
-
line:
|
|
124
|
-
loc:
|
|
125
|
-
expected:
|
|
110
|
+
l(Z, "lex");
|
|
111
|
+
for (var b, v, S, W, O = {}, U, x, ee, V; ; ) {
|
|
112
|
+
if (v = o[o.length - 1], this.defaultActions[v] ? S = this.defaultActions[v] : ((b === null || typeof b > "u") && (b = Z()), S = $[v] && $[v][b]), typeof S > "u" || !S.length || !S[0]) {
|
|
113
|
+
var X = "";
|
|
114
|
+
V = [];
|
|
115
|
+
for (U in $[v])
|
|
116
|
+
this.terminals_[U] && U > ne && V.push("'" + this.terminals_[U] + "'");
|
|
117
|
+
y.showPosition ? X = "Parse error on line " + (M + 1) + `:
|
|
118
|
+
` + y.showPosition() + `
|
|
119
|
+
Expecting ` + V.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : X = "Parse error on line " + (M + 1) + ": Unexpected " + (b == Q ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(X, {
|
|
120
|
+
text: y.match,
|
|
121
|
+
token: this.terminals_[b] || b,
|
|
122
|
+
line: y.yylineno,
|
|
123
|
+
loc: z,
|
|
124
|
+
expected: V
|
|
126
125
|
});
|
|
127
126
|
}
|
|
128
|
-
if (
|
|
129
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
130
|
-
switch (
|
|
127
|
+
if (S[0] instanceof Array && S.length > 1)
|
|
128
|
+
throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + b);
|
|
129
|
+
switch (S[0]) {
|
|
131
130
|
case 1:
|
|
132
|
-
|
|
131
|
+
o.push(b), p.push(y.yytext), r.push(y.yylloc), o.push(S[1]), b = null, K = y.yyleng, u = y.yytext, M = y.yylineno, z = y.yylloc;
|
|
133
132
|
break;
|
|
134
133
|
case 2:
|
|
135
|
-
if (
|
|
136
|
-
first_line: r[r.length - (
|
|
134
|
+
if (x = this.productions_[S[1]][1], O.$ = p[p.length - x], O._$ = {
|
|
135
|
+
first_line: r[r.length - (x || 1)].first_line,
|
|
137
136
|
last_line: r[r.length - 1].last_line,
|
|
138
|
-
first_column: r[r.length - (
|
|
137
|
+
first_column: r[r.length - (x || 1)].first_column,
|
|
139
138
|
last_column: r[r.length - 1].last_column
|
|
140
|
-
},
|
|
141
|
-
r[r.length - (
|
|
139
|
+
}, se && (O._$.range = [
|
|
140
|
+
r[r.length - (x || 1)].range[0],
|
|
142
141
|
r[r.length - 1].range[1]
|
|
143
|
-
]),
|
|
144
|
-
g,
|
|
145
|
-
Q,
|
|
146
|
-
F,
|
|
147
|
-
C.yy,
|
|
148
|
-
N[1],
|
|
142
|
+
]), W = this.performAction.apply(O, [
|
|
149
143
|
u,
|
|
144
|
+
K,
|
|
145
|
+
M,
|
|
146
|
+
L.yy,
|
|
147
|
+
S[1],
|
|
148
|
+
p,
|
|
150
149
|
r
|
|
151
|
-
].concat(
|
|
152
|
-
return
|
|
153
|
-
|
|
150
|
+
].concat(ie)), typeof W < "u")
|
|
151
|
+
return W;
|
|
152
|
+
x && (o = o.slice(0, -1 * x * 2), p = p.slice(0, -1 * x), r = r.slice(0, -1 * x)), o.push(this.productions_[S[1]][0]), p.push(O.$), r.push(O._$), ee = $[o[o.length - 2]][o[o.length - 1]], o.push(ee);
|
|
154
153
|
break;
|
|
155
154
|
case 3:
|
|
156
155
|
return !0;
|
|
@@ -158,17 +157,17 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : J = "
|
|
|
158
157
|
}
|
|
159
158
|
return !0;
|
|
160
159
|
}, "parse")
|
|
161
|
-
},
|
|
162
|
-
var
|
|
160
|
+
}, te = /* @__PURE__ */ (function() {
|
|
161
|
+
var D = {
|
|
163
162
|
EOF: 1,
|
|
164
|
-
parseError: /* @__PURE__ */
|
|
163
|
+
parseError: /* @__PURE__ */ l(function(i, o) {
|
|
165
164
|
if (this.yy.parser)
|
|
166
|
-
this.yy.parser.parseError(i,
|
|
165
|
+
this.yy.parser.parseError(i, o);
|
|
167
166
|
else
|
|
168
167
|
throw new Error(i);
|
|
169
168
|
}, "parseError"),
|
|
170
169
|
// resets the lexer, sets new input
|
|
171
|
-
setInput: /* @__PURE__ */
|
|
170
|
+
setInput: /* @__PURE__ */ l(function(s, i) {
|
|
172
171
|
return this.yy = i || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
173
172
|
first_line: 1,
|
|
174
173
|
first_column: 0,
|
|
@@ -177,32 +176,32 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : J = "
|
|
|
177
176
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
178
177
|
}, "setInput"),
|
|
179
178
|
// consumes and returns one char from the input
|
|
180
|
-
input: /* @__PURE__ */
|
|
179
|
+
input: /* @__PURE__ */ l(function() {
|
|
181
180
|
var s = this._input[0];
|
|
182
181
|
this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
|
|
183
182
|
var i = s.match(/(?:\r\n?|\n).*/g);
|
|
184
183
|
return i ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
|
|
185
184
|
}, "input"),
|
|
186
185
|
// unshifts one char (or a string) into the input
|
|
187
|
-
unput: /* @__PURE__ */
|
|
188
|
-
var i = s.length,
|
|
186
|
+
unput: /* @__PURE__ */ l(function(s) {
|
|
187
|
+
var i = s.length, o = s.split(/(?:\r\n?|\n)/g);
|
|
189
188
|
this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
|
|
190
189
|
var c = this.match.split(/(?:\r\n?|\n)/g);
|
|
191
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
192
|
-
var
|
|
190
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
|
|
191
|
+
var p = this.yylloc.range;
|
|
193
192
|
return this.yylloc = {
|
|
194
193
|
first_line: this.yylloc.first_line,
|
|
195
194
|
last_line: this.yylineno + 1,
|
|
196
195
|
first_column: this.yylloc.first_column,
|
|
197
|
-
last_column:
|
|
198
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
196
|
+
last_column: o ? (o.length === c.length ? this.yylloc.first_column : 0) + c[c.length - o.length].length - o[0].length : this.yylloc.first_column - i
|
|
197
|
+
}, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
|
|
199
198
|
}, "unput"),
|
|
200
199
|
// When called from action, caches matched text and appends it on next action
|
|
201
|
-
more: /* @__PURE__ */
|
|
200
|
+
more: /* @__PURE__ */ l(function() {
|
|
202
201
|
return this._more = !0, this;
|
|
203
202
|
}, "more"),
|
|
204
203
|
// 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.
|
|
205
|
-
reject: /* @__PURE__ */
|
|
204
|
+
reject: /* @__PURE__ */ l(function() {
|
|
206
205
|
if (this.options.backtrack_lexer)
|
|
207
206
|
this._backtrack = !0;
|
|
208
207
|
else
|
|
@@ -215,29 +214,29 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : J = "
|
|
|
215
214
|
return this;
|
|
216
215
|
}, "reject"),
|
|
217
216
|
// retain first n characters of the match
|
|
218
|
-
less: /* @__PURE__ */
|
|
217
|
+
less: /* @__PURE__ */ l(function(s) {
|
|
219
218
|
this.unput(this.match.slice(s));
|
|
220
219
|
}, "less"),
|
|
221
220
|
// displays already matched input, i.e. for error messages
|
|
222
|
-
pastInput: /* @__PURE__ */
|
|
221
|
+
pastInput: /* @__PURE__ */ l(function() {
|
|
223
222
|
var s = this.matched.substr(0, this.matched.length - this.match.length);
|
|
224
223
|
return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
|
|
225
224
|
}, "pastInput"),
|
|
226
225
|
// displays upcoming input, i.e. for error messages
|
|
227
|
-
upcomingInput: /* @__PURE__ */
|
|
226
|
+
upcomingInput: /* @__PURE__ */ l(function() {
|
|
228
227
|
var s = this.match;
|
|
229
228
|
return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
230
229
|
}, "upcomingInput"),
|
|
231
230
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
232
|
-
showPosition: /* @__PURE__ */
|
|
231
|
+
showPosition: /* @__PURE__ */ l(function() {
|
|
233
232
|
var s = this.pastInput(), i = new Array(s.length + 1).join("-");
|
|
234
233
|
return s + this.upcomingInput() + `
|
|
235
234
|
` + i + "^";
|
|
236
235
|
}, "showPosition"),
|
|
237
236
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
238
|
-
test_match: /* @__PURE__ */
|
|
239
|
-
var
|
|
240
|
-
if (this.options.backtrack_lexer && (
|
|
237
|
+
test_match: /* @__PURE__ */ l(function(s, i) {
|
|
238
|
+
var o, c, p;
|
|
239
|
+
if (this.options.backtrack_lexer && (p = {
|
|
241
240
|
yylineno: this.yylineno,
|
|
242
241
|
yylloc: {
|
|
243
242
|
first_line: this.yylloc.first_line,
|
|
@@ -256,31 +255,31 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : J = "
|
|
|
256
255
|
yy: this.yy,
|
|
257
256
|
conditionStack: this.conditionStack.slice(0),
|
|
258
257
|
done: this.done
|
|
259
|
-
}, this.options.ranges && (
|
|
258
|
+
}, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), c = s[0].match(/(?:\r\n?|\n).*/g), c && (this.yylineno += c.length), this.yylloc = {
|
|
260
259
|
first_line: this.yylloc.last_line,
|
|
261
260
|
last_line: this.yylineno + 1,
|
|
262
261
|
first_column: this.yylloc.last_column,
|
|
263
262
|
last_column: c ? c[c.length - 1].length - c[c.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
|
|
264
|
-
}, this.yytext += s[0], this.match += s[0], this.matches = s, 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(s[0].length), this.matched += s[0],
|
|
265
|
-
return
|
|
263
|
+
}, this.yytext += s[0], this.match += s[0], this.matches = s, 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(s[0].length), this.matched += s[0], o = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
|
|
264
|
+
return o;
|
|
266
265
|
if (this._backtrack) {
|
|
267
|
-
for (var r in
|
|
268
|
-
this[r] =
|
|
266
|
+
for (var r in p)
|
|
267
|
+
this[r] = p[r];
|
|
269
268
|
return !1;
|
|
270
269
|
}
|
|
271
270
|
return !1;
|
|
272
271
|
}, "test_match"),
|
|
273
272
|
// return next match in input
|
|
274
|
-
next: /* @__PURE__ */
|
|
273
|
+
next: /* @__PURE__ */ l(function() {
|
|
275
274
|
if (this.done)
|
|
276
275
|
return this.EOF;
|
|
277
276
|
this._input || (this.done = !0);
|
|
278
|
-
var s, i,
|
|
277
|
+
var s, i, o, c;
|
|
279
278
|
this._more || (this.yytext = "", this.match = "");
|
|
280
|
-
for (var
|
|
281
|
-
if (
|
|
282
|
-
if (i =
|
|
283
|
-
if (s = this.test_match(
|
|
279
|
+
for (var p = this._currentRules(), r = 0; r < p.length; r++)
|
|
280
|
+
if (o = this._input.match(this.rules[p[r]]), o && (!i || o[0].length > i[0].length)) {
|
|
281
|
+
if (i = o, c = r, this.options.backtrack_lexer) {
|
|
282
|
+
if (s = this.test_match(o, p[r]), s !== !1)
|
|
284
283
|
return s;
|
|
285
284
|
if (this._backtrack) {
|
|
286
285
|
i = !1;
|
|
@@ -290,7 +289,7 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : J = "
|
|
|
290
289
|
} else if (!this.options.flex)
|
|
291
290
|
break;
|
|
292
291
|
}
|
|
293
|
-
return i ? (s = this.test_match(i,
|
|
292
|
+
return i ? (s = this.test_match(i, p[c]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
294
293
|
` + this.showPosition(), {
|
|
295
294
|
text: "",
|
|
296
295
|
token: null,
|
|
@@ -298,40 +297,40 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : J = "
|
|
|
298
297
|
});
|
|
299
298
|
}, "next"),
|
|
300
299
|
// return next match that has a token
|
|
301
|
-
lex: /* @__PURE__ */
|
|
300
|
+
lex: /* @__PURE__ */ l(function() {
|
|
302
301
|
var i = this.next();
|
|
303
302
|
return i || this.lex();
|
|
304
303
|
}, "lex"),
|
|
305
304
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
306
|
-
begin: /* @__PURE__ */
|
|
305
|
+
begin: /* @__PURE__ */ l(function(i) {
|
|
307
306
|
this.conditionStack.push(i);
|
|
308
307
|
}, "begin"),
|
|
309
308
|
// pop the previously active lexer condition state off the condition stack
|
|
310
|
-
popState: /* @__PURE__ */
|
|
309
|
+
popState: /* @__PURE__ */ l(function() {
|
|
311
310
|
var i = this.conditionStack.length - 1;
|
|
312
311
|
return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
313
312
|
}, "popState"),
|
|
314
313
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
315
|
-
_currentRules: /* @__PURE__ */
|
|
314
|
+
_currentRules: /* @__PURE__ */ l(function() {
|
|
316
315
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
317
316
|
}, "_currentRules"),
|
|
318
317
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
319
|
-
topState: /* @__PURE__ */
|
|
318
|
+
topState: /* @__PURE__ */ l(function(i) {
|
|
320
319
|
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
|
321
320
|
}, "topState"),
|
|
322
321
|
// alias for begin(condition)
|
|
323
|
-
pushState: /* @__PURE__ */
|
|
322
|
+
pushState: /* @__PURE__ */ l(function(i) {
|
|
324
323
|
this.begin(i);
|
|
325
324
|
}, "pushState"),
|
|
326
325
|
// return the number of states currently on the stack
|
|
327
|
-
stateStackSize: /* @__PURE__ */
|
|
326
|
+
stateStackSize: /* @__PURE__ */ l(function() {
|
|
328
327
|
return this.conditionStack.length;
|
|
329
328
|
}, "stateStackSize"),
|
|
330
329
|
options: { "case-insensitive": !0 },
|
|
331
|
-
performAction: /* @__PURE__ */
|
|
330
|
+
performAction: /* @__PURE__ */ l(function(i, o, c, p) {
|
|
332
331
|
switch (c) {
|
|
333
332
|
case 0:
|
|
334
|
-
return i.getLogger().trace("Found comment",
|
|
333
|
+
return i.getLogger().trace("Found comment", o.yytext), 6;
|
|
335
334
|
case 1:
|
|
336
335
|
return 8;
|
|
337
336
|
case 2:
|
|
@@ -388,7 +387,7 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : J = "
|
|
|
388
387
|
i.getLogger().trace("Starting NSTR"), this.begin("NSTR");
|
|
389
388
|
break;
|
|
390
389
|
case 25:
|
|
391
|
-
return i.getLogger().trace("description:",
|
|
390
|
+
return i.getLogger().trace("description:", o.yytext), "NODE_DESCR";
|
|
392
391
|
case 26:
|
|
393
392
|
this.popState();
|
|
394
393
|
break;
|
|
@@ -397,7 +396,7 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : J = "
|
|
|
397
396
|
case 28:
|
|
398
397
|
return this.popState(), i.getLogger().trace("node end )"), "NODE_DEND";
|
|
399
398
|
case 29:
|
|
400
|
-
return this.popState(), i.getLogger().trace("node end ...",
|
|
399
|
+
return this.popState(), i.getLogger().trace("node end ...", o.yytext), "NODE_DEND";
|
|
401
400
|
case 30:
|
|
402
401
|
return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
|
|
403
402
|
case 31:
|
|
@@ -409,24 +408,24 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : J = "
|
|
|
409
408
|
case 34:
|
|
410
409
|
return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
|
|
411
410
|
case 35:
|
|
412
|
-
return i.getLogger().trace("Long description:",
|
|
411
|
+
return i.getLogger().trace("Long description:", o.yytext), 20;
|
|
413
412
|
case 36:
|
|
414
|
-
return i.getLogger().trace("Long description:",
|
|
413
|
+
return i.getLogger().trace("Long description:", o.yytext), 20;
|
|
415
414
|
}
|
|
416
415
|
}, "anonymous"),
|
|
417
416
|
rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
|
|
418
417
|
conditions: { CLASS: { rules: [3, 4], inclusive: !1 }, ICON: { rules: [8, 9], inclusive: !1 }, NSTR2: { rules: [22, 23], inclusive: !1 }, NSTR: { rules: [25, 26], inclusive: !1 }, NODE: { rules: [21, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], inclusive: !0 } }
|
|
419
418
|
};
|
|
420
|
-
return
|
|
419
|
+
return D;
|
|
421
420
|
})();
|
|
422
|
-
|
|
423
|
-
function
|
|
421
|
+
j.lexer = te;
|
|
422
|
+
function P() {
|
|
424
423
|
this.yy = {};
|
|
425
424
|
}
|
|
426
|
-
return
|
|
425
|
+
return l(P, "Parser"), P.prototype = j, j.Parser = P, new P();
|
|
427
426
|
})();
|
|
428
|
-
|
|
429
|
-
var
|
|
427
|
+
Y.parser = Y;
|
|
428
|
+
var be = Y, ke = 12, N = {
|
|
430
429
|
DEFAULT: 0,
|
|
431
430
|
NO_BORDER: 0,
|
|
432
431
|
ROUNDED_RECT: 1,
|
|
@@ -435,62 +434,64 @@ var ke = K, Se = 12, T = {
|
|
|
435
434
|
CLOUD: 4,
|
|
436
435
|
BANG: 5,
|
|
437
436
|
HEXAGON: 6
|
|
438
|
-
},
|
|
437
|
+
}, Se = class {
|
|
439
438
|
constructor() {
|
|
440
|
-
this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType =
|
|
439
|
+
this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = N, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
|
|
440
|
+
}
|
|
441
|
+
static {
|
|
442
|
+
l(this, "MindmapDB");
|
|
441
443
|
}
|
|
442
444
|
clear() {
|
|
443
445
|
this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
|
|
444
446
|
}
|
|
445
447
|
getParent(e) {
|
|
446
|
-
for (let
|
|
447
|
-
if (this.nodes[
|
|
448
|
-
return this.nodes[
|
|
448
|
+
for (let n = this.nodes.length - 1; n >= 0; n--)
|
|
449
|
+
if (this.nodes[n].level < e)
|
|
450
|
+
return this.nodes[n];
|
|
449
451
|
return null;
|
|
450
452
|
}
|
|
451
453
|
getMindmap() {
|
|
452
454
|
return this.nodes.length > 0 ? this.nodes[0] : null;
|
|
453
455
|
}
|
|
454
|
-
addNode(e,
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
switch (n) {
|
|
456
|
+
addNode(e, n, g, a) {
|
|
457
|
+
C.info("addNode", e, n, g, a);
|
|
458
|
+
let t = !1;
|
|
459
|
+
this.nodes.length === 0 ? (this.baseLevel = e, e = 0, t = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, t = !1);
|
|
460
|
+
const h = B();
|
|
461
|
+
let f = h.mindmap?.padding ?? G.mindmap.padding;
|
|
462
|
+
switch (a) {
|
|
462
463
|
case this.nodeType.ROUNDED_RECT:
|
|
463
464
|
case this.nodeType.RECT:
|
|
464
465
|
case this.nodeType.HEXAGON:
|
|
465
|
-
|
|
466
|
+
f *= 2;
|
|
466
467
|
break;
|
|
467
468
|
}
|
|
468
|
-
const
|
|
469
|
+
const m = {
|
|
469
470
|
id: this.count++,
|
|
470
|
-
nodeId:
|
|
471
|
+
nodeId: F(n, h),
|
|
471
472
|
level: e,
|
|
472
|
-
descr:
|
|
473
|
-
type:
|
|
473
|
+
descr: F(g, h),
|
|
474
|
+
type: a,
|
|
474
475
|
children: [],
|
|
475
|
-
width:
|
|
476
|
-
padding:
|
|
477
|
-
isRoot:
|
|
478
|
-
},
|
|
479
|
-
if (
|
|
480
|
-
|
|
481
|
-
else if (
|
|
482
|
-
this.nodes.push(
|
|
476
|
+
width: h.mindmap?.maxNodeWidth ?? G.mindmap.maxNodeWidth,
|
|
477
|
+
padding: f,
|
|
478
|
+
isRoot: t
|
|
479
|
+
}, _ = this.getParent(e);
|
|
480
|
+
if (_)
|
|
481
|
+
_.children.push(m), this.nodes.push(m);
|
|
482
|
+
else if (t)
|
|
483
|
+
this.nodes.push(m);
|
|
483
484
|
else
|
|
484
485
|
throw new Error(
|
|
485
|
-
`There can be only one root. No parent could be found for ("${
|
|
486
|
+
`There can be only one root. No parent could be found for ("${m.descr}")`
|
|
486
487
|
);
|
|
487
488
|
}
|
|
488
|
-
getType(e,
|
|
489
|
-
switch (
|
|
489
|
+
getType(e, n) {
|
|
490
|
+
switch (C.debug("In get type", e, n), e) {
|
|
490
491
|
case "[":
|
|
491
492
|
return this.nodeType.RECT;
|
|
492
493
|
case "(":
|
|
493
|
-
return
|
|
494
|
+
return n === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
|
|
494
495
|
case "((":
|
|
495
496
|
return this.nodeType.CIRCLE;
|
|
496
497
|
case ")":
|
|
@@ -503,8 +504,8 @@ var ke = K, Se = 12, T = {
|
|
|
503
504
|
return this.nodeType.DEFAULT;
|
|
504
505
|
}
|
|
505
506
|
}
|
|
506
|
-
setElementForId(e,
|
|
507
|
-
this.elements[e] =
|
|
507
|
+
setElementForId(e, n) {
|
|
508
|
+
this.elements[e] = n;
|
|
508
509
|
}
|
|
509
510
|
getElementById(e) {
|
|
510
511
|
return this.elements[e];
|
|
@@ -512,8 +513,8 @@ var ke = K, Se = 12, T = {
|
|
|
512
513
|
decorateNode(e) {
|
|
513
514
|
if (!e)
|
|
514
515
|
return;
|
|
515
|
-
const
|
|
516
|
-
e.icon && (
|
|
516
|
+
const n = B(), g = this.nodes[this.nodes.length - 1];
|
|
517
|
+
e.icon && (g.icon = F(e.icon, n)), e.class && (g.class = F(e.class, n));
|
|
517
518
|
}
|
|
518
519
|
type2Str(e) {
|
|
519
520
|
switch (e) {
|
|
@@ -541,11 +542,11 @@ var ke = K, Se = 12, T = {
|
|
|
541
542
|
* @param node - The mindmap node to process
|
|
542
543
|
* @param sectionNumber - The section number to assign (undefined for root)
|
|
543
544
|
*/
|
|
544
|
-
assignSections(e,
|
|
545
|
-
if (e.level === 0 ? e.section = void 0 : e.section =
|
|
546
|
-
for (const [
|
|
547
|
-
const
|
|
548
|
-
this.assignSections(
|
|
545
|
+
assignSections(e, n) {
|
|
546
|
+
if (e.level === 0 ? e.section = void 0 : e.section = n, e.children)
|
|
547
|
+
for (const [g, a] of e.children.entries()) {
|
|
548
|
+
const t = e.level === 0 ? g % (ke - 1) : n;
|
|
549
|
+
this.assignSections(a, t);
|
|
549
550
|
}
|
|
550
551
|
}
|
|
551
552
|
/**
|
|
@@ -553,44 +554,43 @@ var ke = K, Se = 12, T = {
|
|
|
553
554
|
* @param node - The mindmap node to process
|
|
554
555
|
* @param processedNodes - Array to collect processed nodes
|
|
555
556
|
*/
|
|
556
|
-
flattenNodes(e,
|
|
557
|
-
const
|
|
558
|
-
e.isRoot === !0 ?
|
|
559
|
-
const
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
case T.CIRCLE:
|
|
557
|
+
flattenNodes(e, n) {
|
|
558
|
+
const g = B(), a = ["mindmap-node"];
|
|
559
|
+
e.isRoot === !0 ? a.push("section-root", "section--1") : e.section !== void 0 && a.push(`section-${e.section}`), e.class && a.push(e.class);
|
|
560
|
+
const t = a.join(" "), h = /* @__PURE__ */ l((m) => {
|
|
561
|
+
const T = (g.theme?.toLowerCase() ?? "").includes("redux");
|
|
562
|
+
switch (m) {
|
|
563
|
+
case N.CIRCLE:
|
|
564
564
|
return "mindmapCircle";
|
|
565
|
-
case
|
|
565
|
+
case N.RECT:
|
|
566
566
|
return "rect";
|
|
567
|
-
case
|
|
567
|
+
case N.ROUNDED_RECT:
|
|
568
568
|
return "rounded";
|
|
569
|
-
case
|
|
569
|
+
case N.CLOUD:
|
|
570
570
|
return "cloud";
|
|
571
|
-
case
|
|
571
|
+
case N.BANG:
|
|
572
572
|
return "bang";
|
|
573
|
-
case
|
|
573
|
+
case N.HEXAGON:
|
|
574
574
|
return "hexagon";
|
|
575
|
-
case
|
|
576
|
-
return
|
|
577
|
-
case
|
|
575
|
+
case N.DEFAULT:
|
|
576
|
+
return T ? "rounded" : "defaultMindmapNode";
|
|
577
|
+
case N.NO_BORDER:
|
|
578
578
|
default:
|
|
579
579
|
return "rect";
|
|
580
580
|
}
|
|
581
|
-
}, "getShapeFromType"),
|
|
581
|
+
}, "getShapeFromType"), f = {
|
|
582
582
|
id: e.id.toString(),
|
|
583
583
|
domId: "node_" + e.id.toString(),
|
|
584
584
|
label: e.descr,
|
|
585
585
|
labelType: "markdown",
|
|
586
586
|
isGroup: !1,
|
|
587
|
-
shape:
|
|
587
|
+
shape: h(e.type),
|
|
588
588
|
width: e.width,
|
|
589
589
|
height: e.height ?? 0,
|
|
590
590
|
padding: e.padding,
|
|
591
|
-
cssClasses:
|
|
591
|
+
cssClasses: t,
|
|
592
592
|
cssStyles: [],
|
|
593
|
-
look:
|
|
593
|
+
look: g.look,
|
|
594
594
|
icon: e.icon,
|
|
595
595
|
x: e.x,
|
|
596
596
|
y: e.y,
|
|
@@ -600,38 +600,38 @@ var ke = K, Se = 12, T = {
|
|
|
600
600
|
type: e.type,
|
|
601
601
|
section: e.section
|
|
602
602
|
};
|
|
603
|
-
if (
|
|
604
|
-
for (const
|
|
605
|
-
this.flattenNodes(
|
|
603
|
+
if (n.push(f), e.children)
|
|
604
|
+
for (const m of e.children)
|
|
605
|
+
this.flattenNodes(m, n);
|
|
606
606
|
}
|
|
607
607
|
/**
|
|
608
608
|
* Generate edges from parent-child relationships in mindmap tree
|
|
609
609
|
* @param node - The mindmap node to process
|
|
610
610
|
* @param edges - Array to collect edges
|
|
611
611
|
*/
|
|
612
|
-
generateEdges(e,
|
|
612
|
+
generateEdges(e, n) {
|
|
613
613
|
if (!e.children)
|
|
614
614
|
return;
|
|
615
|
-
const
|
|
616
|
-
for (const
|
|
617
|
-
let
|
|
618
|
-
|
|
619
|
-
const
|
|
620
|
-
|
|
621
|
-
const
|
|
622
|
-
id: `edge_${e.id}_${
|
|
615
|
+
const g = B();
|
|
616
|
+
for (const a of e.children) {
|
|
617
|
+
let t = "edge";
|
|
618
|
+
a.section !== void 0 && (t += ` section-edge-${a.section}`);
|
|
619
|
+
const h = e.level + 1;
|
|
620
|
+
t += ` edge-depth-${h}`;
|
|
621
|
+
const f = {
|
|
622
|
+
id: `edge_${e.id}_${a.id}`,
|
|
623
623
|
start: e.id.toString(),
|
|
624
|
-
end:
|
|
624
|
+
end: a.id.toString(),
|
|
625
625
|
type: "normal",
|
|
626
626
|
curve: "basis",
|
|
627
627
|
thickness: "normal",
|
|
628
|
-
look:
|
|
629
|
-
classes:
|
|
628
|
+
look: g.look,
|
|
629
|
+
classes: t,
|
|
630
630
|
// Store mindmap-specific data
|
|
631
631
|
depth: e.level,
|
|
632
|
-
section:
|
|
632
|
+
section: a.section
|
|
633
633
|
};
|
|
634
|
-
|
|
634
|
+
n.push(f), this.generateEdges(a, n);
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
637
|
/**
|
|
@@ -640,30 +640,30 @@ var ke = K, Se = 12, T = {
|
|
|
640
640
|
* @returns Structured data containing nodes, edges, and config
|
|
641
641
|
*/
|
|
642
642
|
getData() {
|
|
643
|
-
const e = this.getMindmap(),
|
|
644
|
-
if (
|
|
643
|
+
const e = this.getMindmap(), n = B(), a = de().layout !== void 0, t = n;
|
|
644
|
+
if (a || (t.layout = "cose-bilkent"), !e)
|
|
645
645
|
return {
|
|
646
646
|
nodes: [],
|
|
647
647
|
edges: [],
|
|
648
|
-
config:
|
|
648
|
+
config: t
|
|
649
649
|
};
|
|
650
|
-
|
|
651
|
-
const
|
|
652
|
-
this.flattenNodes(e,
|
|
653
|
-
`getData: processed ${
|
|
650
|
+
C.debug("getData: mindmapRoot", e, n), this.assignSections(e);
|
|
651
|
+
const h = [], f = [];
|
|
652
|
+
this.flattenNodes(e, h), this.generateEdges(e, f), C.debug(
|
|
653
|
+
`getData: processed ${h.length} nodes and ${f.length} edges`
|
|
654
654
|
);
|
|
655
|
-
const
|
|
656
|
-
for (const
|
|
657
|
-
|
|
658
|
-
shape:
|
|
659
|
-
width:
|
|
660
|
-
height:
|
|
661
|
-
padding:
|
|
655
|
+
const m = /* @__PURE__ */ new Map();
|
|
656
|
+
for (const _ of h)
|
|
657
|
+
m.set(_.id, {
|
|
658
|
+
shape: _.shape,
|
|
659
|
+
width: _.width,
|
|
660
|
+
height: _.height,
|
|
661
|
+
padding: _.padding
|
|
662
662
|
});
|
|
663
663
|
return {
|
|
664
|
-
nodes:
|
|
665
|
-
edges:
|
|
666
|
-
config:
|
|
664
|
+
nodes: h,
|
|
665
|
+
edges: f,
|
|
666
|
+
config: t,
|
|
667
667
|
// Store the root node for mindmap-specific layout algorithms
|
|
668
668
|
rootNode: e,
|
|
669
669
|
// Properties required by dagre layout algorithm
|
|
@@ -676,70 +676,69 @@ var ke = K, Se = 12, T = {
|
|
|
676
676
|
rankSpacing: 50,
|
|
677
677
|
// Default spacing between ranks
|
|
678
678
|
// Add shapes for ELK compatibility
|
|
679
|
-
shapes: Object.fromEntries(
|
|
679
|
+
shapes: Object.fromEntries(m),
|
|
680
680
|
// Additional properties that layout algorithms might expect
|
|
681
681
|
type: "mindmap",
|
|
682
|
-
diagramId: "mindmap-" +
|
|
682
|
+
diagramId: "mindmap-" + Ee()
|
|
683
683
|
};
|
|
684
684
|
}
|
|
685
685
|
// Expose logger to grammar
|
|
686
686
|
getLogger() {
|
|
687
|
-
return
|
|
687
|
+
return C;
|
|
688
688
|
}
|
|
689
|
-
},
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
if (d.type = l.type, d.layoutAlgorithm = le(d.config.layout, {
|
|
689
|
+
}, xe = /* @__PURE__ */ l(async (e, n, g, a) => {
|
|
690
|
+
C.debug(`Rendering mindmap diagram
|
|
691
|
+
` + e);
|
|
692
|
+
const t = a.db, h = t.getData(), f = oe(n, h.config.securityLevel);
|
|
693
|
+
if (h.type = a.type, h.layoutAlgorithm = ce(h.config.layout, {
|
|
695
694
|
fallback: "cose-bilkent"
|
|
696
|
-
}),
|
|
695
|
+
}), h.diagramId = n, !t.getMindmap())
|
|
697
696
|
return;
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
}), await
|
|
701
|
-
const { themeVariables:
|
|
702
|
-
if (
|
|
703
|
-
const
|
|
704
|
-
|
|
697
|
+
h.nodes.forEach((d) => {
|
|
698
|
+
d.shape === "rounded" ? (d.radius = 15, d.taper = 15, d.stroke = "none", d.width = 0, d.padding = 15) : d.shape === "circle" ? d.padding = 10 : d.shape === "rect" ? (d.width = 0, d.padding = 10) : d.shape === "hexagon" && (d.width = 0, d.height = 0);
|
|
699
|
+
}), await le(h, f);
|
|
700
|
+
const { themeVariables: _ } = he(), { useGradient: T, gradientStart: I, gradientStop: w } = _;
|
|
701
|
+
if (T && I && w) {
|
|
702
|
+
const d = f.attr("id"), R = f.append("defs").append("linearGradient").attr("id", `${d}-gradient`).attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
703
|
+
R.append("stop").attr("offset", "0%").attr("stop-color", I).attr("stop-opacity", 1), R.append("stop").attr("offset", "100%").attr("stop-color", w).attr("stop-opacity", 1);
|
|
705
704
|
}
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
705
|
+
ae(
|
|
706
|
+
f,
|
|
707
|
+
h.config.mindmap?.padding ?? G.mindmap.padding,
|
|
709
708
|
"mindmapDiagram",
|
|
710
|
-
|
|
709
|
+
h.config.mindmap?.useMaxWidth ?? G.mindmap.useMaxWidth
|
|
711
710
|
);
|
|
712
|
-
}, "draw"),
|
|
713
|
-
draw:
|
|
714
|
-
},
|
|
715
|
-
const { theme:
|
|
716
|
-
let
|
|
717
|
-
for (let
|
|
718
|
-
|
|
719
|
-
for (let
|
|
720
|
-
const
|
|
721
|
-
|
|
722
|
-
.section-${
|
|
723
|
-
fill: ${
|
|
711
|
+
}, "draw"), Ne = {
|
|
712
|
+
draw: xe
|
|
713
|
+
}, De = /* @__PURE__ */ l((e) => {
|
|
714
|
+
const { theme: n, look: g } = e;
|
|
715
|
+
let a = "";
|
|
716
|
+
for (let t = 0; t < e.THEME_COLOR_LIMIT; t++)
|
|
717
|
+
e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], ge(e["lineColor" + t]) ? e["lineColor" + t] = ue(e["lineColor" + t], 20) : e["lineColor" + t] = pe(e["lineColor" + t], 20);
|
|
718
|
+
for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) {
|
|
719
|
+
const h = "" + (g === "neo" ? Math.max(10 - (t - 1) * 2, 2) : 17 - 3 * t);
|
|
720
|
+
a += `
|
|
721
|
+
.section-${t - 1} rect, .section-${t - 1} path, .section-${t - 1} circle, .section-${t - 1} polygon, .section-${t - 1} path {
|
|
722
|
+
fill: ${e["cScale" + t]};
|
|
724
723
|
}
|
|
725
|
-
.section-${
|
|
726
|
-
fill: ${
|
|
724
|
+
.section-${t - 1} text {
|
|
725
|
+
fill: ${e["cScaleLabel" + t]};
|
|
727
726
|
}
|
|
728
|
-
.section-${
|
|
729
|
-
color: ${
|
|
727
|
+
.section-${t - 1} span {
|
|
728
|
+
color: ${e["cScaleLabel" + t]};
|
|
730
729
|
}
|
|
731
|
-
.node-icon-${
|
|
730
|
+
.node-icon-${t - 1} {
|
|
732
731
|
font-size: 40px;
|
|
733
|
-
color: ${
|
|
732
|
+
color: ${e["cScaleLabel" + t]};
|
|
734
733
|
}
|
|
735
|
-
.section-edge-${
|
|
736
|
-
stroke: ${
|
|
734
|
+
.section-edge-${t - 1}{
|
|
735
|
+
stroke: ${e["cScale" + t]};
|
|
737
736
|
}
|
|
738
|
-
.edge-depth-${
|
|
739
|
-
stroke-width: ${
|
|
737
|
+
.edge-depth-${t - 1}{
|
|
738
|
+
stroke-width: ${h};
|
|
740
739
|
}
|
|
741
|
-
.section-${
|
|
742
|
-
stroke: ${
|
|
740
|
+
.section-${t - 1} line {
|
|
741
|
+
stroke: ${e["cScaleInv" + t]} ;
|
|
743
742
|
stroke-width: 3;
|
|
744
743
|
}
|
|
745
744
|
|
|
@@ -749,47 +748,47 @@ var ke = K, Se = 12, T = {
|
|
|
749
748
|
.disabled text {
|
|
750
749
|
fill: #efefef;
|
|
751
750
|
}
|
|
752
|
-
[data-look="neo"].mindmap-node.section-${
|
|
753
|
-
fill: ${
|
|
754
|
-
stroke: ${
|
|
755
|
-
stroke-width: ${
|
|
751
|
+
[data-look="neo"].mindmap-node.section-${t - 1} rect, [data-look="neo"].mindmap-node.section-${t - 1} path, [data-look="neo"].mindmap-node.section-${t - 1} circle, [data-look="neo"].mindmap-node.section-${t - 1} polygon {
|
|
752
|
+
fill: ${n === "redux" || n === "redux-dark" || n === "neutral" ? e.mainBkg : e["cScale" + t]};
|
|
753
|
+
stroke: ${n === "redux" || n === "redux-dark" ? e.nodeBorder : e["cScale" + t]};
|
|
754
|
+
stroke-width: ${e.strokeWidth ?? 2}px;
|
|
756
755
|
}
|
|
757
|
-
[data-look="neo"].section-edge-${
|
|
758
|
-
stroke: ${
|
|
756
|
+
[data-look="neo"].section-edge-${t - 1}{
|
|
757
|
+
stroke: ${n?.includes("redux") || n === "neo-dark" ? e.nodeBorder : e["cScale" + t]};
|
|
759
758
|
}
|
|
760
|
-
[data-look="neo"].mindmap-node.section-${
|
|
761
|
-
fill: ${
|
|
759
|
+
[data-look="neo"].mindmap-node.section-${t - 1} text {
|
|
760
|
+
fill: ${n === "redux" || n === "redux-dark" ? e.nodeBorder : e["cScaleLabel" + (n === "neutral" ? 1 : t)]};
|
|
762
761
|
}
|
|
763
762
|
`;
|
|
764
763
|
}
|
|
765
|
-
return
|
|
766
|
-
}, "genSections"),
|
|
767
|
-
let
|
|
768
|
-
for (let
|
|
769
|
-
|
|
770
|
-
[data-look="neo"].mindmap-node.section-${
|
|
771
|
-
stroke: url(${
|
|
772
|
-
fill: ${
|
|
764
|
+
return a;
|
|
765
|
+
}, "genSections"), Le = /* @__PURE__ */ l((e, n, g) => {
|
|
766
|
+
let a = "";
|
|
767
|
+
for (let t = 0; t < e; t++)
|
|
768
|
+
a += `
|
|
769
|
+
[data-look="neo"].mindmap-node.section-${t - 1} rect, [data-look="neo"].mindmap-node.section-${t - 1} path, [data-look="neo"].mindmap-node.section-${t - 1} circle, [data-look="neo"].mindmap-node.section-${t - 1} polygon {
|
|
770
|
+
stroke: url(${n}-gradient);
|
|
771
|
+
fill: ${g};
|
|
773
772
|
}
|
|
774
|
-
.section-${
|
|
773
|
+
.section-${t - 1} line {
|
|
775
774
|
stroke-width: 0;
|
|
776
775
|
}`;
|
|
777
|
-
return
|
|
778
|
-
}, "genGradient"),
|
|
779
|
-
const { theme:
|
|
776
|
+
return a;
|
|
777
|
+
}, "genGradient"), ve = /* @__PURE__ */ l((e) => {
|
|
778
|
+
const { theme: n } = e, g = e.svgId, a = e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${g}-drop-shadow)`) : "none";
|
|
780
779
|
return `
|
|
781
780
|
.edge {
|
|
782
781
|
stroke-width: 3;
|
|
783
782
|
}
|
|
784
|
-
${
|
|
783
|
+
${De(e)}
|
|
785
784
|
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
786
|
-
fill: ${
|
|
785
|
+
fill: ${e.git0};
|
|
787
786
|
}
|
|
788
787
|
.section-root text {
|
|
789
|
-
fill: ${
|
|
788
|
+
fill: ${e.gitBranchLabel0};
|
|
790
789
|
}
|
|
791
790
|
.section-root span {
|
|
792
|
-
color: ${
|
|
791
|
+
color: ${n?.includes("redux") ? e.nodeBorder : e.gitBranchLabel0};
|
|
793
792
|
}
|
|
794
793
|
.icon-container {
|
|
795
794
|
height:100%;
|
|
@@ -808,24 +807,24 @@ var ke = K, Se = 12, T = {
|
|
|
808
807
|
text-align: center;
|
|
809
808
|
}
|
|
810
809
|
[data-look="neo"].mindmap-node {
|
|
811
|
-
filter: ${
|
|
810
|
+
filter: ${a};
|
|
812
811
|
}
|
|
813
812
|
[data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
|
|
814
|
-
fill: ${
|
|
813
|
+
fill: ${n?.includes("redux") ? e.mainBkg : e.git0};
|
|
815
814
|
}
|
|
816
815
|
[data-look="neo"].mindmap-node.section-root .text-inner-tspan {
|
|
817
|
-
fill: ${
|
|
816
|
+
fill: ${n?.includes("redux") ? e.nodeBorder : e["cScaleLabel" + (n === "neutral" ? 1 : 0)]};
|
|
818
817
|
}
|
|
819
|
-
${
|
|
818
|
+
${e.useGradient && g && e.mainBkg ? Le(e.THEME_COLOR_LIMIT, g, e.mainBkg) : ""}
|
|
820
819
|
`;
|
|
821
|
-
}, "getStyles"),
|
|
820
|
+
}, "getStyles"), Te = ve, we = {
|
|
822
821
|
get db() {
|
|
823
|
-
return new
|
|
822
|
+
return new Se();
|
|
824
823
|
},
|
|
825
|
-
renderer:
|
|
826
|
-
parser:
|
|
827
|
-
styles:
|
|
824
|
+
renderer: Ne,
|
|
825
|
+
parser: be,
|
|
826
|
+
styles: Te
|
|
828
827
|
};
|
|
829
828
|
export {
|
|
830
|
-
|
|
829
|
+
we as diagram
|
|
831
830
|
};
|