@marimo-team/islands 0.14.11-dev39 → 0.14.11-dev4
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/{ConnectedDataExplorerComponent-Sd9Nxepm.js → ConnectedDataExplorerComponent-B3jU38aR.js} +4 -4
- package/dist/{ImageComparisonComponent-5Y_UPK-4.js → ImageComparisonComponent-CUfFulP7.js} +1 -1
- package/dist/{VegaLite-xEnU6x-s.js → VegaLite-CT_m2Gns.js} +7180 -6961
- package/dist/{_baseUniq-hectrKF-.js → _baseUniq-DVXzAxqW.js} +36 -36
- package/dist/{any-language-editor-CFSQwvzE.js → any-language-editor-Bm5ppbnQ.js} +1 -1
- package/dist/{architectureDiagram-NQ2NVSRB-CCXJjFvh.js → architectureDiagram-IEHRJDOE-Buq1PEDd.js} +894 -897
- package/dist/assets/{worker-Bfk1FrzG.js → save-worker-BIDtxCd1.js} +1724 -1604
- package/dist/assets/{save-worker-fI5ofStJ.js → worker-BcyuOSTi.js} +1649 -1076
- package/dist/assets/worker-Dz6PPEGc.js +4115 -0
- package/dist/{blockDiagram-PHRCVELO-BjyOlQ-1.js → blockDiagram-JOT3LUYC-Baj8O4gb.js} +522 -534
- package/dist/{c4Diagram-6F6E4RAY-Dekfu0nv.js → c4Diagram-VJAJSXHY-CBDfWUzS.js} +4 -4
- package/dist/{channel-3ZP1Ahsx.js → channel-Cy0SmgpI.js} +1 -1
- package/dist/{chunk-353BL4L5-DAFgStCL.js → chunk-4BMEZGHF-BnpEqs6S.js} +1 -1
- package/dist/{chunk-QEP2MXWD-B3Qy_0QF.js → chunk-A2AXSNBT-i8l7moUJ.js} +27 -30
- package/dist/chunk-AEK57VVT-BxuW_6WB.js +1416 -0
- package/dist/{chunk-67H74DCK-DZpdsEFc.js → chunk-D6G4REZN-DwIklRV0.js} +1 -1
- package/dist/chunk-RZ5BOZE2-CNoeotZt.js +24 -0
- package/dist/{chunk-AACKK3MU-B95hL8py.js → chunk-XZIHB7SX-Cr4T9caJ.js} +1 -1
- package/dist/{classDiagram-v2-O24JOBDK-CRnOnb_r.js → classDiagram-GIVACNV2-CbFkMOFI.js} +2 -2
- package/dist/{classDiagram-BGRH5UQR-CRnOnb_r.js → classDiagram-v2-COTLJTTW-CbFkMOFI.js} +2 -2
- package/dist/{clone-CFt3Dbsx.js → clone-BeXSGgDB.js} +1 -1
- package/dist/{dagre-FFZHY6LT-BCZYCsTf.js → dagre-OKDRZEBW-Bo2roBvL.js} +8 -8
- package/dist/{data-editor-DJm7TwNK.js → data-editor-Dnm_K2_c.js} +201 -213
- package/dist/{diagram-ZTM2IBQH-CZn2HwdK.js → diagram-SSKATNLV-6e7ZOneB.js} +3 -3
- package/dist/diagram-VNBRO52H-VcG5htt_.js +126 -0
- package/dist/{erDiagram-R3QVA2FD-CgONUTHE.js → erDiagram-Q7BY3M3F-DObb1KYA.js} +5 -6
- package/dist/{flowDiagram-PKI6S5ZS-Dk7_9UWG.js → flowDiagram-4HSFHLVR-BAvIkIMr.js} +278 -283
- package/dist/{ganttDiagram-EK5VF46D-CRpVp1Tv.js → ganttDiagram-APWFNJXF-BUabt1F7.js} +439 -453
- package/dist/{gitGraphDiagram-GW3U2K7C-C62qVSS0.js → gitGraphDiagram-7IBYFJ6S-Bs-H6FAX.js} +35 -35
- package/dist/{graph-Bmg6ThvY.js → graph-B7tbSSJp.js} +3 -3
- package/dist/{index-DjyV3XsQ.js → index-CiG5v3ld.js} +3 -3
- package/dist/{index-CpMCQprO.js → index-DI-1MlWW.js} +1 -1
- package/dist/{index-DOW7j8QD.js → index-DpepA-b-.js} +3 -6
- package/dist/{index-BmXq13zt.js → index-phTQQwAJ.js} +4 -4
- package/dist/{infoDiagram-RLU2ROGC-BxV_L_v4.js → infoDiagram-PH2N3AL5-7fwphtgP.js} +3 -5
- package/dist/journeyDiagram-U35MCT3I-C4s4ilvs.js +809 -0
- package/dist/{kanban-definition-ILFWEQ3N-Czy4NHmp.js → kanban-definition-NDS4AKOZ-DcxIaLdv.js} +39 -41
- package/dist/{layout-oDYqqouw.js → layout-v4OeDCTb.js} +49 -49
- package/dist/{linear-B2w8crqt.js → linear-xHimOevt.js} +22 -22
- package/dist/{main-WBPEOYUW.js → main-C7CuKeJY.js} +47637 -47530
- package/dist/main.js +1 -1
- package/dist/{mermaid-BrDUrAOA.js → mermaid-C9S7GU2b.js} +4855 -4927
- package/dist/min-BT9mkTQN.js +80 -0
- package/dist/{mindmap-definition-CZNETY7S-DwnN0Xtd.js → mindmap-definition-ALO5MXBD-CVFEcHZK.js} +3 -3
- package/dist/{pieDiagram-NIOCPIFQ-C6DftsTF.js → pieDiagram-IB7DONF6-Co1Ma8jK.js} +3 -3
- package/dist/{quadrantDiagram-2OG54O6I-D_F4-y3O.js → quadrantDiagram-7GDLP6J5-DQlP2K2y.js} +2 -2
- package/dist/{treemap-FKARHQ26-BdRtb6Jl.js → radar-MK3ICKWK-BhkTFShi.js} +2330 -2469
- package/dist/{react-plotly-DyGjmGkP.js → react-plotly-Bh6GaXqm.js} +1 -1
- package/dist/{requirementDiagram-SO3GGRV7-B0B6nUaZ.js → requirementDiagram-KVF5MWMF-BygiWyL4.js} +4 -5
- package/dist/{sankeyDiagram-4UZDY2LN-Dc9a_ZCf.js → sankeyDiagram-QLVOVGJD-Ch4TJi_X.js} +11 -11
- package/dist/{sequenceDiagram-ZIKVLSP4-CK0IGm4R.js → sequenceDiagram-X6HHIX6F-DuQdesWk.js} +149 -151
- package/dist/{slides-component-Dnp9jsH4.js → slides-component-BA1GLkbQ.js} +962 -969
- package/dist/stateDiagram-DGXRK772-CG6dTG8s.js +271 -0
- package/dist/{stateDiagram-v2-GD6S3NHB-z7eMLBFB.js → stateDiagram-v2-YXO3MK2T-ChBhvPue.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-CsAbaoLW.js → time-BImtLwbp.js} +2 -2
- package/dist/{timeline-definition-RI47OAVP-BClUsJ6N.js → timeline-definition-BDJGKUSR-DDxqWt73.js} +102 -99
- package/dist/{vega-component-B4kFG0mV.js → vega-component-ClHul7Ph.js} +21 -21
- package/dist/{xychartDiagram-H2YORKM3-DKa9A91j.js → xychartDiagram-VJFVF3MP-DsuROm2x.js} +375 -409
- package/package.json +42 -42
- package/dist/assets/worker-BldghCZh.js +0 -3752
- package/dist/chunk-6OLS64BW-Brmt-SZS.js +0 -1383
- package/dist/chunk-BFAMUDN2-BT75CqeT.js +0 -8
- package/dist/chunk-E2GYISFI-C0R6djsG.js +0 -19
- package/dist/chunk-SKB7J2MH-CW_LVmrE.js +0 -20
- package/dist/diagram-3EMPZRKU-K1apRbx_.js +0 -313
- package/dist/diagram-5UYTHUR4-CDt_HKgG.js +0 -137
- package/dist/index-pBmAzQJl.js +0 -235
- package/dist/journeyDiagram-EWQZEKCU-BmLTz9kg.js +0 -836
- package/dist/min-DrafC17d.js +0 -80
- package/dist/stateDiagram-XX37X6EN-BvfpfSgz.js +0 -264
|
@@ -1,216 +1,216 @@
|
|
|
1
1
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i2, _j;
|
|
2
|
-
import { _ as a, s as
|
|
3
|
-
import { i as
|
|
4
|
-
import { o as
|
|
2
|
+
import { _ as a, s as ii, g as ei, t as Pt, q as si, a as ni, b as ai, l as Lt, K as oi, e as ri, z as hi, G as ct, F as Et, H as li, M as ci, i as ui, a9 as gi } from "./mermaid-C9S7GU2b.js";
|
|
3
|
+
import { i as xi } from "./init-DxzjmxYy.js";
|
|
4
|
+
import { o as di } from "./ordinal-CYN5qNoq.js";
|
|
5
5
|
import { r as pi } from "./range-DdOGybNB.js";
|
|
6
|
-
import { l as
|
|
7
|
-
import { l as
|
|
8
|
-
function
|
|
9
|
-
var t =
|
|
6
|
+
import { l as Rt } from "./linear-xHimOevt.js";
|
|
7
|
+
import { l as Tt } from "./timer-BYwnU4DF.js";
|
|
8
|
+
function at() {
|
|
9
|
+
var t = di().unknown(void 0), i = t.domain, e = t.range, s = 0, n = 1, x, u, p = false, C = 0, T = 0, k = 0.5;
|
|
10
10
|
delete t.unknown;
|
|
11
|
-
function
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
return
|
|
11
|
+
function A() {
|
|
12
|
+
var m = i().length, D = n < s, S = D ? n : s, v = D ? s : n;
|
|
13
|
+
x = (v - S) / Math.max(1, m - C + T * 2), p && (x = Math.floor(x)), S += (v - S - x * (m - C)) * k, u = x * (1 - C), p && (S = Math.round(S), u = Math.round(u));
|
|
14
|
+
var f = pi(m).map(function(_) {
|
|
15
|
+
return S + x * _;
|
|
16
16
|
});
|
|
17
|
-
return e(
|
|
17
|
+
return e(D ? f.reverse() : f);
|
|
18
18
|
}
|
|
19
|
-
return t.domain = function(
|
|
20
|
-
return arguments.length ? (i(
|
|
21
|
-
}, t.range = function(
|
|
22
|
-
return arguments.length ? ([s, n] =
|
|
23
|
-
}, t.rangeRound = function(
|
|
24
|
-
return [s, n] =
|
|
19
|
+
return t.domain = function(m) {
|
|
20
|
+
return arguments.length ? (i(m), A()) : i();
|
|
21
|
+
}, t.range = function(m) {
|
|
22
|
+
return arguments.length ? ([s, n] = m, s = +s, n = +n, A()) : [s, n];
|
|
23
|
+
}, t.rangeRound = function(m) {
|
|
24
|
+
return [s, n] = m, s = +s, n = +n, p = true, A();
|
|
25
25
|
}, t.bandwidth = function() {
|
|
26
|
-
return
|
|
26
|
+
return u;
|
|
27
27
|
}, t.step = function() {
|
|
28
|
-
return
|
|
29
|
-
}, t.round = function(
|
|
30
|
-
return arguments.length ? (
|
|
31
|
-
}, t.padding = function(
|
|
32
|
-
return arguments.length ? (
|
|
33
|
-
}, t.paddingInner = function(
|
|
34
|
-
return arguments.length ? (
|
|
35
|
-
}, t.paddingOuter = function(
|
|
36
|
-
return arguments.length ? (
|
|
37
|
-
}, t.align = function(
|
|
38
|
-
return arguments.length ? (
|
|
28
|
+
return x;
|
|
29
|
+
}, t.round = function(m) {
|
|
30
|
+
return arguments.length ? (p = !!m, A()) : p;
|
|
31
|
+
}, t.padding = function(m) {
|
|
32
|
+
return arguments.length ? (C = Math.min(1, T = +m), A()) : C;
|
|
33
|
+
}, t.paddingInner = function(m) {
|
|
34
|
+
return arguments.length ? (C = Math.min(1, m), A()) : C;
|
|
35
|
+
}, t.paddingOuter = function(m) {
|
|
36
|
+
return arguments.length ? (T = +m, A()) : T;
|
|
37
|
+
}, t.align = function(m) {
|
|
38
|
+
return arguments.length ? (k = Math.max(0, Math.min(1, m)), A()) : k;
|
|
39
39
|
}, t.copy = function() {
|
|
40
|
-
return
|
|
41
|
-
},
|
|
40
|
+
return at(i(), [s, n]).round(p).paddingInner(C).paddingOuter(T).align(k);
|
|
41
|
+
}, xi.apply(A(), arguments);
|
|
42
42
|
}
|
|
43
|
-
var
|
|
44
|
-
var t = /* @__PURE__ */ a(function(
|
|
45
|
-
for (
|
|
46
|
-
return
|
|
47
|
-
}, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], n = [1, 5],
|
|
43
|
+
var ot = function() {
|
|
44
|
+
var t = /* @__PURE__ */ a(function(B, r, l, c) {
|
|
45
|
+
for (l = l || {}, c = B.length; c--; l[B[c]] = r) ;
|
|
46
|
+
return l;
|
|
47
|
+
}, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], n = [1, 5], x = [1, 6], u = [1, 7], p = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], C = [1, 25], T = [1, 26], k = [1, 28], A = [1, 29], m = [1, 30], D = [1, 31], S = [1, 32], v = [1, 33], f = [1, 34], _ = [1, 35], h = [1, 36], E = [1, 37], X = [1, 43], bt = [1, 42], At = [1, 47], $ = [1, 50], w = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], J = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], I = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], wt = [1, 64], tt = {
|
|
48
48
|
trace: /* @__PURE__ */ a(function() {
|
|
49
49
|
}, "trace"),
|
|
50
50
|
yy: {},
|
|
51
51
|
symbols_: { error: 2, start: 3, eol: 4, XYCHART: 5, chartConfig: 6, document: 7, CHART_ORIENTATION: 8, statement: 9, title: 10, text: 11, X_AXIS: 12, parseXAxis: 13, Y_AXIS: 14, parseYAxis: 15, LINE: 16, plotData: 17, BAR: 18, acc_title: 19, acc_title_value: 20, acc_descr: 21, acc_descr_value: 22, acc_descr_multiline_value: 23, SQUARE_BRACES_START: 24, commaSeparatedNumbers: 25, SQUARE_BRACES_END: 26, NUMBER_WITH_DECIMAL: 27, COMMA: 28, xAxisData: 29, bandData: 30, ARROW_DELIMITER: 31, commaSeparatedTexts: 32, yAxisData: 33, NEWLINE: 34, SEMI: 35, EOF: 36, alphaNum: 37, STR: 38, MD_STR: 39, alphaNumToken: 40, AMP: 41, NUM: 42, ALPHA: 43, PLUS: 44, EQUALS: 45, MULT: 46, DOT: 47, BRKT: 48, MINUS: 49, UNDERSCORE: 50, $accept: 0, $end: 1 },
|
|
52
52
|
terminals_: { 2: "error", 5: "XYCHART", 8: "CHART_ORIENTATION", 10: "title", 12: "X_AXIS", 14: "Y_AXIS", 16: "LINE", 18: "BAR", 19: "acc_title", 20: "acc_title_value", 21: "acc_descr", 22: "acc_descr_value", 23: "acc_descr_multiline_value", 24: "SQUARE_BRACES_START", 26: "SQUARE_BRACES_END", 27: "NUMBER_WITH_DECIMAL", 28: "COMMA", 31: "ARROW_DELIMITER", 34: "NEWLINE", 35: "SEMI", 36: "EOF", 38: "STR", 39: "MD_STR", 41: "AMP", 42: "NUM", 43: "ALPHA", 44: "PLUS", 45: "EQUALS", 46: "MULT", 47: "DOT", 48: "BRKT", 49: "MINUS", 50: "UNDERSCORE" },
|
|
53
53
|
productions_: [0, [3, 2], [3, 3], [3, 2], [3, 1], [6, 1], [7, 0], [7, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 3], [9, 2], [9, 3], [9, 2], [9, 2], [9, 1], [17, 3], [25, 3], [25, 1], [13, 1], [13, 2], [13, 1], [29, 1], [29, 3], [30, 3], [32, 3], [32, 1], [15, 1], [15, 2], [15, 1], [33, 3], [4, 1], [4, 1], [4, 1], [11, 1], [11, 1], [11, 1], [37, 1], [37, 2], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1]],
|
|
54
|
-
performAction: /* @__PURE__ */ a(function(r,
|
|
55
|
-
var
|
|
56
|
-
switch (
|
|
54
|
+
performAction: /* @__PURE__ */ a(function(r, l, c, g, b, o, N) {
|
|
55
|
+
var d = o.length - 1;
|
|
56
|
+
switch (b) {
|
|
57
57
|
case 5:
|
|
58
|
-
|
|
58
|
+
g.setOrientation(o[d]);
|
|
59
59
|
break;
|
|
60
60
|
case 9:
|
|
61
|
-
|
|
61
|
+
g.setDiagramTitle(o[d].text.trim());
|
|
62
62
|
break;
|
|
63
63
|
case 12:
|
|
64
|
-
|
|
64
|
+
g.setLineData({ text: "", type: "text" }, o[d]);
|
|
65
65
|
break;
|
|
66
66
|
case 13:
|
|
67
|
-
|
|
67
|
+
g.setLineData(o[d - 1], o[d]);
|
|
68
68
|
break;
|
|
69
69
|
case 14:
|
|
70
|
-
|
|
70
|
+
g.setBarData({ text: "", type: "text" }, o[d]);
|
|
71
71
|
break;
|
|
72
72
|
case 15:
|
|
73
|
-
|
|
73
|
+
g.setBarData(o[d - 1], o[d]);
|
|
74
74
|
break;
|
|
75
75
|
case 16:
|
|
76
|
-
this.$ = o[
|
|
76
|
+
this.$ = o[d].trim(), g.setAccTitle(this.$);
|
|
77
77
|
break;
|
|
78
78
|
case 17:
|
|
79
79
|
case 18:
|
|
80
|
-
this.$ = o[
|
|
80
|
+
this.$ = o[d].trim(), g.setAccDescription(this.$);
|
|
81
81
|
break;
|
|
82
82
|
case 19:
|
|
83
|
-
this.$ = o[
|
|
83
|
+
this.$ = o[d - 1];
|
|
84
84
|
break;
|
|
85
85
|
case 20:
|
|
86
|
-
this.$ = [Number(o[
|
|
86
|
+
this.$ = [Number(o[d - 2]), ...o[d]];
|
|
87
87
|
break;
|
|
88
88
|
case 21:
|
|
89
|
-
this.$ = [Number(o[
|
|
89
|
+
this.$ = [Number(o[d])];
|
|
90
90
|
break;
|
|
91
91
|
case 22:
|
|
92
|
-
|
|
92
|
+
g.setXAxisTitle(o[d]);
|
|
93
93
|
break;
|
|
94
94
|
case 23:
|
|
95
|
-
|
|
95
|
+
g.setXAxisTitle(o[d - 1]);
|
|
96
96
|
break;
|
|
97
97
|
case 24:
|
|
98
|
-
|
|
98
|
+
g.setXAxisTitle({ type: "text", text: "" });
|
|
99
99
|
break;
|
|
100
100
|
case 25:
|
|
101
|
-
|
|
101
|
+
g.setXAxisBand(o[d]);
|
|
102
102
|
break;
|
|
103
103
|
case 26:
|
|
104
|
-
|
|
104
|
+
g.setXAxisRangeData(Number(o[d - 2]), Number(o[d]));
|
|
105
105
|
break;
|
|
106
106
|
case 27:
|
|
107
|
-
this.$ = o[
|
|
107
|
+
this.$ = o[d - 1];
|
|
108
108
|
break;
|
|
109
109
|
case 28:
|
|
110
|
-
this.$ = [o[
|
|
110
|
+
this.$ = [o[d - 2], ...o[d]];
|
|
111
111
|
break;
|
|
112
112
|
case 29:
|
|
113
|
-
this.$ = [o[
|
|
113
|
+
this.$ = [o[d]];
|
|
114
114
|
break;
|
|
115
115
|
case 30:
|
|
116
|
-
|
|
116
|
+
g.setYAxisTitle(o[d]);
|
|
117
117
|
break;
|
|
118
118
|
case 31:
|
|
119
|
-
|
|
119
|
+
g.setYAxisTitle(o[d - 1]);
|
|
120
120
|
break;
|
|
121
121
|
case 32:
|
|
122
|
-
|
|
122
|
+
g.setYAxisTitle({ type: "text", text: "" });
|
|
123
123
|
break;
|
|
124
124
|
case 33:
|
|
125
|
-
|
|
125
|
+
g.setYAxisRangeData(Number(o[d - 2]), Number(o[d]));
|
|
126
126
|
break;
|
|
127
127
|
case 37:
|
|
128
|
-
this.$ = { text: o[
|
|
128
|
+
this.$ = { text: o[d], type: "text" };
|
|
129
129
|
break;
|
|
130
130
|
case 38:
|
|
131
|
-
this.$ = { text: o[
|
|
131
|
+
this.$ = { text: o[d], type: "text" };
|
|
132
132
|
break;
|
|
133
133
|
case 39:
|
|
134
|
-
this.$ = { text: o[
|
|
134
|
+
this.$ = { text: o[d], type: "markdown" };
|
|
135
135
|
break;
|
|
136
136
|
case 40:
|
|
137
|
-
this.$ = o[
|
|
137
|
+
this.$ = o[d];
|
|
138
138
|
break;
|
|
139
139
|
case 41:
|
|
140
|
-
this.$ = o[
|
|
140
|
+
this.$ = o[d - 1] + "" + o[d];
|
|
141
141
|
break;
|
|
142
142
|
}
|
|
143
143
|
}, "anonymous"),
|
|
144
|
-
table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35:
|
|
144
|
+
table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35: x, 36: u }), { 1: [3] }, t(i, e, { 4: 2, 7: 4, 3: 8, 5: s, 34: n, 35: x, 36: u }), t(i, e, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: n, 35: x, 36: u }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, t(p, [2, 34]), t(p, [2, 35]), t(p, [2, 36]), { 1: [2, 1] }, t(i, e, { 4: 2, 7: 4, 3: 21, 5: s, 34: n, 35: x, 36: u }), { 1: [2, 3] }, t(p, [2, 5]), t(i, [2, 7], { 4: 22, 34: n, 35: x, 36: u }), { 11: 23, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 11: 39, 13: 38, 24: X, 27: bt, 29: 40, 30: 41, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 11: 45, 15: 44, 27: At, 33: 46, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 11: 49, 17: 48, 24: $, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 11: 52, 17: 51, 24: $, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 20: [1, 53] }, { 22: [1, 54] }, t(w, [2, 18]), { 1: [2, 2] }, t(w, [2, 8]), t(w, [2, 9]), t(J, [2, 37], { 40: 55, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }), t(J, [2, 38]), t(J, [2, 39]), t(I, [2, 40]), t(I, [2, 42]), t(I, [2, 43]), t(I, [2, 44]), t(I, [2, 45]), t(I, [2, 46]), t(I, [2, 47]), t(I, [2, 48]), t(I, [2, 49]), t(I, [2, 50]), t(I, [2, 51]), t(w, [2, 10]), t(w, [2, 22], { 30: 41, 29: 56, 24: X, 27: bt }), t(w, [2, 24]), t(w, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, t(w, [2, 11]), t(w, [2, 30], { 33: 60, 27: At }), t(w, [2, 32]), { 31: [1, 61] }, t(w, [2, 12]), { 17: 62, 24: $ }, { 25: 63, 27: wt }, t(w, [2, 14]), { 17: 65, 24: $ }, t(w, [2, 16]), t(w, [2, 17]), t(I, [2, 41]), t(w, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, t(w, [2, 31]), { 27: [1, 69] }, t(w, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, t(w, [2, 15]), t(w, [2, 26]), t(w, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, t(w, [2, 33]), t(w, [2, 19]), { 25: 73, 27: wt }, { 26: [2, 28] }, { 26: [2, 20] }],
|
|
145
145
|
defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
|
|
146
|
-
parseError: /* @__PURE__ */ a(function(r,
|
|
147
|
-
if (
|
|
146
|
+
parseError: /* @__PURE__ */ a(function(r, l) {
|
|
147
|
+
if (l.recoverable)
|
|
148
148
|
this.trace(r);
|
|
149
149
|
else {
|
|
150
|
-
var
|
|
151
|
-
throw
|
|
150
|
+
var c = new Error(r);
|
|
151
|
+
throw c.hash = l, c;
|
|
152
152
|
}
|
|
153
153
|
}, "parseError"),
|
|
154
154
|
parse: /* @__PURE__ */ a(function(r) {
|
|
155
|
-
var
|
|
156
|
-
for (var
|
|
157
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
158
|
-
R.setInput(r,
|
|
159
|
-
var
|
|
160
|
-
o.push(
|
|
161
|
-
var
|
|
162
|
-
typeof
|
|
163
|
-
function
|
|
164
|
-
|
|
155
|
+
var l = this, c = [0], g = [], b = [null], o = [], N = this.table, d = "", G = 0, Ct = 0, Kt = 2, St = 1, Zt = o.slice.call(arguments, 1), R = Object.create(this.lexer), W = { yy: {} };
|
|
156
|
+
for (var it in this.yy)
|
|
157
|
+
Object.prototype.hasOwnProperty.call(this.yy, it) && (W.yy[it] = this.yy[it]);
|
|
158
|
+
R.setInput(r, W.yy), W.yy.lexer = R, W.yy.parser = this, typeof R.yylloc > "u" && (R.yylloc = {});
|
|
159
|
+
var et = R.yylloc;
|
|
160
|
+
o.push(et);
|
|
161
|
+
var Jt = R.options && R.options.ranges;
|
|
162
|
+
typeof W.yy.parseError == "function" ? this.parseError = W.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
163
|
+
function ti(L) {
|
|
164
|
+
c.length = c.length - 2 * L, b.length = b.length - L, o.length = o.length - L;
|
|
165
165
|
}
|
|
166
|
-
a(
|
|
167
|
-
function
|
|
168
|
-
var
|
|
169
|
-
return
|
|
166
|
+
a(ti, "popStack");
|
|
167
|
+
function _t() {
|
|
168
|
+
var L;
|
|
169
|
+
return L = g.pop() || R.lex() || St, typeof L != "number" && (L instanceof Array && (g = L, L = g.pop()), L = l.symbols_[L] || L), L;
|
|
170
170
|
}
|
|
171
|
-
a(
|
|
172
|
-
for (var
|
|
173
|
-
if (
|
|
174
|
-
var
|
|
175
|
-
|
|
176
|
-
for (
|
|
177
|
-
this.terminals_[
|
|
178
|
-
R.showPosition ?
|
|
171
|
+
a(_t, "lex");
|
|
172
|
+
for (var P, O, M, st, z = {}, j, V, kt, Q; ; ) {
|
|
173
|
+
if (O = c[c.length - 1], this.defaultActions[O] ? M = this.defaultActions[O] : ((P === null || typeof P > "u") && (P = _t()), M = N[O] && N[O][P]), typeof M > "u" || !M.length || !M[0]) {
|
|
174
|
+
var nt = "";
|
|
175
|
+
Q = [];
|
|
176
|
+
for (j in N[O])
|
|
177
|
+
this.terminals_[j] && j > Kt && Q.push("'" + this.terminals_[j] + "'");
|
|
178
|
+
R.showPosition ? nt = "Parse error on line " + (G + 1) + `:
|
|
179
179
|
` + R.showPosition() + `
|
|
180
|
-
Expecting ` +
|
|
180
|
+
Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt = "Parse error on line " + (G + 1) + ": Unexpected " + (P == St ? "end of input" : "'" + (this.terminals_[P] || P) + "'"), this.parseError(nt, {
|
|
181
181
|
text: R.match,
|
|
182
|
-
token: this.terminals_[
|
|
182
|
+
token: this.terminals_[P] || P,
|
|
183
183
|
line: R.yylineno,
|
|
184
|
-
loc:
|
|
185
|
-
expected:
|
|
184
|
+
loc: et,
|
|
185
|
+
expected: Q
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
if (
|
|
189
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
190
|
-
switch (
|
|
188
|
+
if (M[0] instanceof Array && M.length > 1)
|
|
189
|
+
throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + P);
|
|
190
|
+
switch (M[0]) {
|
|
191
191
|
case 1:
|
|
192
|
-
|
|
192
|
+
c.push(P), b.push(R.yytext), o.push(R.yylloc), c.push(M[1]), P = null, Ct = R.yyleng, d = R.yytext, G = R.yylineno, et = R.yylloc;
|
|
193
193
|
break;
|
|
194
194
|
case 2:
|
|
195
|
-
if (
|
|
196
|
-
first_line: o[o.length - (
|
|
195
|
+
if (V = this.productions_[M[1]][1], z.$ = b[b.length - V], z._$ = {
|
|
196
|
+
first_line: o[o.length - (V || 1)].first_line,
|
|
197
197
|
last_line: o[o.length - 1].last_line,
|
|
198
|
-
first_column: o[o.length - (
|
|
198
|
+
first_column: o[o.length - (V || 1)].first_column,
|
|
199
199
|
last_column: o[o.length - 1].last_column
|
|
200
|
-
},
|
|
201
|
-
o[o.length - (
|
|
200
|
+
}, Jt && (z._$.range = [
|
|
201
|
+
o[o.length - (V || 1)].range[0],
|
|
202
202
|
o[o.length - 1].range[1]
|
|
203
|
-
]),
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
203
|
+
]), st = this.performAction.apply(z, [
|
|
204
|
+
d,
|
|
205
|
+
Ct,
|
|
206
|
+
G,
|
|
207
|
+
W.yy,
|
|
208
|
+
M[1],
|
|
209
|
+
b,
|
|
210
210
|
o
|
|
211
|
-
].concat(
|
|
212
|
-
return
|
|
213
|
-
|
|
211
|
+
].concat(Zt)), typeof st < "u")
|
|
212
|
+
return st;
|
|
213
|
+
V && (c = c.slice(0, -1 * V * 2), b = b.slice(0, -1 * V), o = o.slice(0, -1 * V)), c.push(this.productions_[M[1]][0]), b.push(z.$), o.push(z._$), kt = N[c[c.length - 2]][c[c.length - 1]], c.push(kt);
|
|
214
214
|
break;
|
|
215
215
|
case 3:
|
|
216
216
|
return true;
|
|
@@ -218,18 +218,18 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : rt =
|
|
|
218
218
|
}
|
|
219
219
|
return true;
|
|
220
220
|
}, "parse")
|
|
221
|
-
},
|
|
222
|
-
var
|
|
221
|
+
}, Qt = /* @__PURE__ */ function() {
|
|
222
|
+
var B = {
|
|
223
223
|
EOF: 1,
|
|
224
|
-
parseError: /* @__PURE__ */ a(function(
|
|
224
|
+
parseError: /* @__PURE__ */ a(function(l, c) {
|
|
225
225
|
if (this.yy.parser)
|
|
226
|
-
this.yy.parser.parseError(
|
|
226
|
+
this.yy.parser.parseError(l, c);
|
|
227
227
|
else
|
|
228
|
-
throw new Error(
|
|
228
|
+
throw new Error(l);
|
|
229
229
|
}, "parseError"),
|
|
230
230
|
// resets the lexer, sets new input
|
|
231
|
-
setInput: /* @__PURE__ */ a(function(r,
|
|
232
|
-
return this.yy =
|
|
231
|
+
setInput: /* @__PURE__ */ a(function(r, l) {
|
|
232
|
+
return this.yy = l || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
233
233
|
first_line: 1,
|
|
234
234
|
first_column: 0,
|
|
235
235
|
last_line: 1,
|
|
@@ -240,22 +240,22 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : rt =
|
|
|
240
240
|
input: /* @__PURE__ */ a(function() {
|
|
241
241
|
var r = this._input[0];
|
|
242
242
|
this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
|
|
243
|
-
var
|
|
244
|
-
return
|
|
243
|
+
var l = r.match(/(?:\r\n?|\n).*/g);
|
|
244
|
+
return l ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
|
|
245
245
|
}, "input"),
|
|
246
246
|
// unshifts one char (or a string) into the input
|
|
247
247
|
unput: /* @__PURE__ */ a(function(r) {
|
|
248
|
-
var
|
|
249
|
-
this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length -
|
|
250
|
-
var
|
|
251
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
252
|
-
var
|
|
248
|
+
var l = r.length, c = r.split(/(?:\r\n?|\n)/g);
|
|
249
|
+
this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
|
|
250
|
+
var g = this.match.split(/(?:\r\n?|\n)/g);
|
|
251
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
|
|
252
|
+
var b = this.yylloc.range;
|
|
253
253
|
return this.yylloc = {
|
|
254
254
|
first_line: this.yylloc.first_line,
|
|
255
255
|
last_line: this.yylineno + 1,
|
|
256
256
|
first_column: this.yylloc.first_column,
|
|
257
|
-
last_column:
|
|
258
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
257
|
+
last_column: c ? (c.length === g.length ? this.yylloc.first_column : 0) + g[g.length - c.length].length - c[0].length : this.yylloc.first_column - l
|
|
258
|
+
}, this.options.ranges && (this.yylloc.range = [b[0], b[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
|
|
259
259
|
}, "unput"),
|
|
260
260
|
// When called from action, caches matched text and appends it on next action
|
|
261
261
|
more: /* @__PURE__ */ a(function() {
|
|
@@ -290,14 +290,14 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : rt =
|
|
|
290
290
|
}, "upcomingInput"),
|
|
291
291
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
292
292
|
showPosition: /* @__PURE__ */ a(function() {
|
|
293
|
-
var r = this.pastInput(),
|
|
293
|
+
var r = this.pastInput(), l = new Array(r.length + 1).join("-");
|
|
294
294
|
return r + this.upcomingInput() + `
|
|
295
|
-
` +
|
|
295
|
+
` + l + "^";
|
|
296
296
|
}, "showPosition"),
|
|
297
297
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
298
|
-
test_match: /* @__PURE__ */ a(function(r,
|
|
299
|
-
var
|
|
300
|
-
if (this.options.backtrack_lexer && (
|
|
298
|
+
test_match: /* @__PURE__ */ a(function(r, l) {
|
|
299
|
+
var c, g, b;
|
|
300
|
+
if (this.options.backtrack_lexer && (b = {
|
|
301
301
|
yylineno: this.yylineno,
|
|
302
302
|
yylloc: {
|
|
303
303
|
first_line: this.yylloc.first_line,
|
|
@@ -316,16 +316,16 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : rt =
|
|
|
316
316
|
yy: this.yy,
|
|
317
317
|
conditionStack: this.conditionStack.slice(0),
|
|
318
318
|
done: this.done
|
|
319
|
-
}, this.options.ranges && (
|
|
319
|
+
}, this.options.ranges && (b.yylloc.range = this.yylloc.range.slice(0))), g = r[0].match(/(?:\r\n?|\n).*/g), g && (this.yylineno += g.length), this.yylloc = {
|
|
320
320
|
first_line: this.yylloc.last_line,
|
|
321
321
|
last_line: this.yylineno + 1,
|
|
322
322
|
first_column: this.yylloc.last_column,
|
|
323
|
-
last_column:
|
|
324
|
-
}, 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 = false, this._backtrack = false, this._input = this._input.slice(r[0].length), this.matched += r[0],
|
|
325
|
-
return
|
|
323
|
+
last_column: g ? g[g.length - 1].length - g[g.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
|
|
324
|
+
}, 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 = false, this._backtrack = false, this._input = this._input.slice(r[0].length), this.matched += r[0], c = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), c)
|
|
325
|
+
return c;
|
|
326
326
|
if (this._backtrack) {
|
|
327
|
-
for (var o in
|
|
328
|
-
this[o] =
|
|
327
|
+
for (var o in b)
|
|
328
|
+
this[o] = b[o];
|
|
329
329
|
return false;
|
|
330
330
|
}
|
|
331
331
|
return false;
|
|
@@ -335,22 +335,22 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : rt =
|
|
|
335
335
|
if (this.done)
|
|
336
336
|
return this.EOF;
|
|
337
337
|
this._input || (this.done = true);
|
|
338
|
-
var r,
|
|
338
|
+
var r, l, c, g;
|
|
339
339
|
this._more || (this.yytext = "", this.match = "");
|
|
340
|
-
for (var
|
|
341
|
-
if (
|
|
342
|
-
if (
|
|
343
|
-
if (r = this.test_match(
|
|
340
|
+
for (var b = this._currentRules(), o = 0; o < b.length; o++)
|
|
341
|
+
if (c = this._input.match(this.rules[b[o]]), c && (!l || c[0].length > l[0].length)) {
|
|
342
|
+
if (l = c, g = o, this.options.backtrack_lexer) {
|
|
343
|
+
if (r = this.test_match(c, b[o]), r !== false)
|
|
344
344
|
return r;
|
|
345
345
|
if (this._backtrack) {
|
|
346
|
-
|
|
346
|
+
l = false;
|
|
347
347
|
continue;
|
|
348
348
|
} else
|
|
349
349
|
return false;
|
|
350
350
|
} else if (!this.options.flex)
|
|
351
351
|
break;
|
|
352
352
|
}
|
|
353
|
-
return
|
|
353
|
+
return l ? (r = this.test_match(l, b[g]), r !== false ? r : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
354
354
|
` + this.showPosition(), {
|
|
355
355
|
text: "",
|
|
356
356
|
token: null,
|
|
@@ -359,37 +359,37 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : rt =
|
|
|
359
359
|
}, "next"),
|
|
360
360
|
// return next match that has a token
|
|
361
361
|
lex: /* @__PURE__ */ a(function() {
|
|
362
|
-
var
|
|
363
|
-
return
|
|
362
|
+
var l = this.next();
|
|
363
|
+
return l || this.lex();
|
|
364
364
|
}, "lex"),
|
|
365
365
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
366
|
-
begin: /* @__PURE__ */ a(function(
|
|
367
|
-
this.conditionStack.push(
|
|
366
|
+
begin: /* @__PURE__ */ a(function(l) {
|
|
367
|
+
this.conditionStack.push(l);
|
|
368
368
|
}, "begin"),
|
|
369
369
|
// pop the previously active lexer condition state off the condition stack
|
|
370
370
|
popState: /* @__PURE__ */ a(function() {
|
|
371
|
-
var
|
|
372
|
-
return
|
|
371
|
+
var l = this.conditionStack.length - 1;
|
|
372
|
+
return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
373
373
|
}, "popState"),
|
|
374
374
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
375
375
|
_currentRules: /* @__PURE__ */ a(function() {
|
|
376
376
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
377
377
|
}, "_currentRules"),
|
|
378
378
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
379
|
-
topState: /* @__PURE__ */ a(function(
|
|
380
|
-
return
|
|
379
|
+
topState: /* @__PURE__ */ a(function(l) {
|
|
380
|
+
return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
|
|
381
381
|
}, "topState"),
|
|
382
382
|
// alias for begin(condition)
|
|
383
|
-
pushState: /* @__PURE__ */ a(function(
|
|
384
|
-
this.begin(
|
|
383
|
+
pushState: /* @__PURE__ */ a(function(l) {
|
|
384
|
+
this.begin(l);
|
|
385
385
|
}, "pushState"),
|
|
386
386
|
// return the number of states currently on the stack
|
|
387
387
|
stateStackSize: /* @__PURE__ */ a(function() {
|
|
388
388
|
return this.conditionStack.length;
|
|
389
389
|
}, "stateStackSize"),
|
|
390
390
|
options: { "case-insensitive": true },
|
|
391
|
-
performAction: /* @__PURE__ */ a(function(
|
|
392
|
-
switch (
|
|
391
|
+
performAction: /* @__PURE__ */ a(function(l, c, g, b) {
|
|
392
|
+
switch (g) {
|
|
393
393
|
case 0:
|
|
394
394
|
break;
|
|
395
395
|
case 1:
|
|
@@ -492,36 +492,36 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : rt =
|
|
|
492
492
|
rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:(\r?\n))/i, /^(?:(\r?\n))/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:\{)/i, /^(?:[^\}]*)/i, /^(?:xychart-beta\b)/i, /^(?:(?:vertical|horizontal))/i, /^(?:x-axis\b)/i, /^(?:y-axis\b)/i, /^(?:\[)/i, /^(?:-->)/i, /^(?:line\b)/i, /^(?:bar\b)/i, /^(?:\[)/i, /^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i, /^(?:\])/i, /^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s+)/i, /^(?:;)/i, /^(?:$)/i],
|
|
493
493
|
conditions: { data_inner: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 23, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, data: { rules: [0, 1, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 22, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, axis_band_data: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, axis_data: { rules: [0, 1, 2, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, acc_descr_multiline: { rules: [12, 13], inclusive: false }, acc_descr: { rules: [10], inclusive: false }, acc_title: { rules: [8], inclusive: false }, title: { rules: [], inclusive: false }, md_string: { rules: [], inclusive: false }, string: { rules: [27, 28], inclusive: false }, INITIAL: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true } }
|
|
494
494
|
};
|
|
495
|
-
return
|
|
495
|
+
return B;
|
|
496
496
|
}();
|
|
497
|
-
|
|
498
|
-
function
|
|
497
|
+
tt.lexer = Qt;
|
|
498
|
+
function q() {
|
|
499
499
|
this.yy = {};
|
|
500
500
|
}
|
|
501
|
-
return a(
|
|
501
|
+
return a(q, "Parser"), q.prototype = tt, tt.Parser = q, new q();
|
|
502
502
|
}();
|
|
503
|
-
|
|
504
|
-
var
|
|
505
|
-
function
|
|
503
|
+
ot.parser = ot;
|
|
504
|
+
var fi = ot;
|
|
505
|
+
function rt(t) {
|
|
506
506
|
return t.type === "bar";
|
|
507
507
|
}
|
|
508
|
-
a(
|
|
509
|
-
function
|
|
508
|
+
a(rt, "isBarPlot");
|
|
509
|
+
function ut(t) {
|
|
510
510
|
return t.type === "band";
|
|
511
511
|
}
|
|
512
|
-
a(
|
|
513
|
-
function
|
|
512
|
+
a(ut, "isBandAxisData");
|
|
513
|
+
function F(t) {
|
|
514
514
|
return t.type === "linear";
|
|
515
515
|
}
|
|
516
|
-
a(
|
|
517
|
-
var
|
|
516
|
+
a(F, "isLinearAxisData");
|
|
517
|
+
var It = (_a = class {
|
|
518
518
|
constructor(t) {
|
|
519
519
|
this.parentGroup = t;
|
|
520
520
|
}
|
|
521
521
|
getMaxDimension(t, i) {
|
|
522
522
|
if (!this.parentGroup)
|
|
523
523
|
return {
|
|
524
|
-
width: t.reduce((n,
|
|
524
|
+
width: t.reduce((n, x) => Math.max(x.length, n), 0) * i,
|
|
525
525
|
height: i
|
|
526
526
|
};
|
|
527
527
|
const e = {
|
|
@@ -529,12 +529,12 @@ var Mt = (_a = class {
|
|
|
529
529
|
height: 0
|
|
530
530
|
}, s = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
|
|
531
531
|
for (const n of t) {
|
|
532
|
-
const
|
|
533
|
-
e.width = Math.max(e.width,
|
|
532
|
+
const x = gi(s, 1, n), u = x ? x.width : n.length * i, p = x ? x.height : i;
|
|
533
|
+
e.width = Math.max(e.width, u), e.height = Math.max(e.height, p);
|
|
534
534
|
}
|
|
535
535
|
return s.remove(), e;
|
|
536
536
|
}
|
|
537
|
-
}, a(_a, "TextDimensionCalculatorWithFont"), _a),
|
|
537
|
+
}, a(_a, "TextDimensionCalculatorWithFont"), _a), Dt = 0.7, vt = 0.2, Mt = (_b = class {
|
|
538
538
|
constructor(t, i, e, s) {
|
|
539
539
|
this.axisConfig = t, this.title = i, this.textDimensionCalculator = e, this.axisThemeConfig = s, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = false, this.showLabel = false, this.showTick = false, this.showAxisLine = false, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left";
|
|
540
540
|
}
|
|
@@ -561,12 +561,12 @@ var Mt = (_a = class {
|
|
|
561
561
|
);
|
|
562
562
|
}
|
|
563
563
|
recalculateOuterPaddingToDrawBar() {
|
|
564
|
-
|
|
564
|
+
Dt * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Dt * this.getTickDistance() / 2)), this.recalculateScale();
|
|
565
565
|
}
|
|
566
566
|
calculateSpaceIfDrawnHorizontally(t) {
|
|
567
567
|
let i = t.height;
|
|
568
568
|
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = true), this.axisConfig.showLabel) {
|
|
569
|
-
const e = this.getLabelDimension(), s =
|
|
569
|
+
const e = this.getLabelDimension(), s = vt * t.width;
|
|
570
570
|
this.outerPadding = Math.min(e.width / 2, s);
|
|
571
571
|
const n = e.height + this.axisConfig.labelPadding * 2;
|
|
572
572
|
this.labelTextHeight = e.height, n <= i && (i -= n, this.showLabel = true);
|
|
@@ -583,7 +583,7 @@ var Mt = (_a = class {
|
|
|
583
583
|
calculateSpaceIfDrawnVertical(t) {
|
|
584
584
|
let i = t.width;
|
|
585
585
|
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = true), this.axisConfig.showLabel) {
|
|
586
|
-
const e = this.getLabelDimension(), s =
|
|
586
|
+
const e = this.getLabelDimension(), s = vt * t.height;
|
|
587
587
|
this.outerPadding = Math.min(e.height / 2, s);
|
|
588
588
|
const n = e.width + this.axisConfig.labelPadding * 2;
|
|
589
589
|
n <= i && (i -= n, this.showLabel = true);
|
|
@@ -787,15 +787,15 @@ var Mt = (_a = class {
|
|
|
787
787
|
throw Error("Drawing of right axis is not implemented");
|
|
788
788
|
return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
|
|
789
789
|
}
|
|
790
|
-
}, a(_b, "BaseAxis"), _b),
|
|
790
|
+
}, a(_b, "BaseAxis"), _b), mi = (_c = class extends Mt {
|
|
791
791
|
constructor(t, i, e, s, n) {
|
|
792
|
-
super(t, s, n, i), this.categories = e, this.scale =
|
|
792
|
+
super(t, s, n, i), this.categories = e, this.scale = at().domain(this.categories).range(this.getRange());
|
|
793
793
|
}
|
|
794
794
|
setRange(t) {
|
|
795
795
|
super.setRange(t);
|
|
796
796
|
}
|
|
797
797
|
recalculateScale() {
|
|
798
|
-
this.scale =
|
|
798
|
+
this.scale = at().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Lt.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
|
|
799
799
|
}
|
|
800
800
|
getTickValues() {
|
|
801
801
|
return this.categories;
|
|
@@ -803,30 +803,30 @@ var Mt = (_a = class {
|
|
|
803
803
|
getScaleValue(t) {
|
|
804
804
|
return this.scale(t) ?? this.getRange()[0];
|
|
805
805
|
}
|
|
806
|
-
}, a(_c, "BandAxis"), _c),
|
|
806
|
+
}, a(_c, "BandAxis"), _c), yi = (_d = class extends Mt {
|
|
807
807
|
constructor(t, i, e, s, n) {
|
|
808
|
-
super(t, s, n, i), this.domain = e, this.scale =
|
|
808
|
+
super(t, s, n, i), this.domain = e, this.scale = Rt().domain(this.domain).range(this.getRange());
|
|
809
809
|
}
|
|
810
810
|
getTickValues() {
|
|
811
811
|
return this.scale.ticks();
|
|
812
812
|
}
|
|
813
813
|
recalculateScale() {
|
|
814
814
|
const t = [...this.domain];
|
|
815
|
-
this.axisPosition === "left" && t.reverse(), this.scale =
|
|
815
|
+
this.axisPosition === "left" && t.reverse(), this.scale = Rt().domain(t).range(this.getRange());
|
|
816
816
|
}
|
|
817
817
|
getScaleValue(t) {
|
|
818
818
|
return this.scale(t);
|
|
819
819
|
}
|
|
820
820
|
}, a(_d, "LinearAxis"), _d);
|
|
821
|
-
function
|
|
822
|
-
const n = new
|
|
823
|
-
return
|
|
821
|
+
function ht(t, i, e, s) {
|
|
822
|
+
const n = new It(s);
|
|
823
|
+
return ut(t) ? new mi(
|
|
824
824
|
i,
|
|
825
825
|
e,
|
|
826
826
|
t.categories,
|
|
827
827
|
t.title,
|
|
828
828
|
n
|
|
829
|
-
) : new
|
|
829
|
+
) : new yi(
|
|
830
830
|
i,
|
|
831
831
|
e,
|
|
832
832
|
[t.min, t.max],
|
|
@@ -834,8 +834,8 @@ function ut(t, i, e, s) {
|
|
|
834
834
|
n
|
|
835
835
|
);
|
|
836
836
|
}
|
|
837
|
-
a(
|
|
838
|
-
var
|
|
837
|
+
a(ht, "getAxis");
|
|
838
|
+
var bi = (_e = class {
|
|
839
839
|
constructor(t, i, e, s) {
|
|
840
840
|
this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = e, this.chartThemeConfig = s, this.boundingRect = {
|
|
841
841
|
x: 0,
|
|
@@ -877,12 +877,12 @@ var Ai = (_e = class {
|
|
|
877
877
|
}), t;
|
|
878
878
|
}
|
|
879
879
|
}, a(_e, "ChartTitle"), _e);
|
|
880
|
-
function
|
|
881
|
-
const n = new
|
|
882
|
-
return new
|
|
880
|
+
function Vt(t, i, e, s) {
|
|
881
|
+
const n = new It(s);
|
|
882
|
+
return new bi(n, t, i, e);
|
|
883
883
|
}
|
|
884
|
-
a(
|
|
885
|
-
var
|
|
884
|
+
a(Vt, "getChartTitleComponent");
|
|
885
|
+
var Ai = (_f = class {
|
|
886
886
|
constructor(t, i, e, s, n) {
|
|
887
887
|
this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = s, this.plotIndex = n;
|
|
888
888
|
}
|
|
@@ -892,7 +892,7 @@ var wi = (_f = class {
|
|
|
892
892
|
this.yAxis.getScaleValue(e[1])
|
|
893
893
|
]);
|
|
894
894
|
let i;
|
|
895
|
-
return this.orientation === "horizontal" ? i =
|
|
895
|
+
return this.orientation === "horizontal" ? i = Tt().y((e) => e[0]).x((e) => e[1])(t) : i = Tt().x((e) => e[0]).y((e) => e[1])(t), i ? [
|
|
896
896
|
{
|
|
897
897
|
groupTexts: ["plot", `line-plot-${this.plotIndex}`],
|
|
898
898
|
type: "path",
|
|
@@ -906,9 +906,9 @@ var wi = (_f = class {
|
|
|
906
906
|
}
|
|
907
907
|
] : [];
|
|
908
908
|
}
|
|
909
|
-
}, a(_f, "LinePlot"), _f),
|
|
910
|
-
constructor(t, i, e, s, n,
|
|
911
|
-
this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = n, this.plotIndex =
|
|
909
|
+
}, a(_f, "LinePlot"), _f), wi = (_g = class {
|
|
910
|
+
constructor(t, i, e, s, n, x) {
|
|
911
|
+
this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = n, this.plotIndex = x;
|
|
912
912
|
}
|
|
913
913
|
getDrawableElement() {
|
|
914
914
|
const t = this.barData.data.map((n) => [
|
|
@@ -945,7 +945,7 @@ var wi = (_f = class {
|
|
|
945
945
|
}
|
|
946
946
|
];
|
|
947
947
|
}
|
|
948
|
-
}, a(_g, "BarPlot"), _g),
|
|
948
|
+
}, a(_g, "BarPlot"), _g), Ci = (_h = class {
|
|
949
949
|
constructor(t, i, e) {
|
|
950
950
|
this.chartConfig = t, this.chartData = i, this.chartThemeConfig = e, this.boundingRect = {
|
|
951
951
|
x: 0,
|
|
@@ -974,7 +974,7 @@ var wi = (_f = class {
|
|
|
974
974
|
switch (e.type) {
|
|
975
975
|
case "line":
|
|
976
976
|
{
|
|
977
|
-
const s = new
|
|
977
|
+
const s = new Ai(
|
|
978
978
|
e,
|
|
979
979
|
this.xAxis,
|
|
980
980
|
this.yAxis,
|
|
@@ -986,7 +986,7 @@ var wi = (_f = class {
|
|
|
986
986
|
break;
|
|
987
987
|
case "bar":
|
|
988
988
|
{
|
|
989
|
-
const s = new
|
|
989
|
+
const s = new wi(
|
|
990
990
|
e,
|
|
991
991
|
this.boundingRect,
|
|
992
992
|
this.xAxis,
|
|
@@ -1001,16 +1001,16 @@ var wi = (_f = class {
|
|
|
1001
1001
|
return t;
|
|
1002
1002
|
}
|
|
1003
1003
|
}, a(_h, "BasePlot"), _h);
|
|
1004
|
-
function
|
|
1005
|
-
return new
|
|
1004
|
+
function Bt(t, i, e) {
|
|
1005
|
+
return new Ci(t, i, e);
|
|
1006
1006
|
}
|
|
1007
|
-
a(
|
|
1008
|
-
var
|
|
1007
|
+
a(Bt, "getPlotComponent");
|
|
1008
|
+
var Si = (_i2 = class {
|
|
1009
1009
|
constructor(t, i, e, s) {
|
|
1010
1010
|
this.chartConfig = t, this.chartData = i, this.componentStore = {
|
|
1011
|
-
title:
|
|
1012
|
-
plot:
|
|
1013
|
-
xAxis:
|
|
1011
|
+
title: Vt(t, i, e, s),
|
|
1012
|
+
plot: Bt(t, i, e),
|
|
1013
|
+
xAxis: ht(
|
|
1014
1014
|
i.xAxis,
|
|
1015
1015
|
t.xAxis,
|
|
1016
1016
|
{
|
|
@@ -1021,7 +1021,7 @@ var _i = (_i2 = class {
|
|
|
1021
1021
|
},
|
|
1022
1022
|
s
|
|
1023
1023
|
),
|
|
1024
|
-
yAxis:
|
|
1024
|
+
yAxis: ht(
|
|
1025
1025
|
i.yAxis,
|
|
1026
1026
|
t.yAxis,
|
|
1027
1027
|
{
|
|
@@ -1035,46 +1035,46 @@ var _i = (_i2 = class {
|
|
|
1035
1035
|
};
|
|
1036
1036
|
}
|
|
1037
1037
|
calculateVerticalSpace() {
|
|
1038
|
-
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100),
|
|
1038
|
+
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), x = Math.floor(
|
|
1039
1039
|
i * this.chartConfig.plotReservedSpacePercent / 100
|
|
1040
|
-
),
|
|
1040
|
+
), u = this.componentStore.plot.calculateSpace({
|
|
1041
1041
|
width: n,
|
|
1042
|
-
height:
|
|
1042
|
+
height: x
|
|
1043
1043
|
});
|
|
1044
|
-
t -=
|
|
1044
|
+
t -= u.width, i -= u.height, u = this.componentStore.title.calculateSpace({
|
|
1045
1045
|
width: this.chartConfig.width,
|
|
1046
1046
|
height: i
|
|
1047
|
-
}), s =
|
|
1047
|
+
}), s = u.height, i -= u.height, this.componentStore.xAxis.setAxisPosition("bottom"), u = this.componentStore.xAxis.calculateSpace({
|
|
1048
1048
|
width: t,
|
|
1049
1049
|
height: i
|
|
1050
|
-
}), i -=
|
|
1050
|
+
}), i -= u.height, this.componentStore.yAxis.setAxisPosition("left"), u = this.componentStore.yAxis.calculateSpace({
|
|
1051
1051
|
width: t,
|
|
1052
1052
|
height: i
|
|
1053
|
-
}), e =
|
|
1053
|
+
}), e = u.width, t -= u.width, t > 0 && (n += t, t = 0), i > 0 && (x += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1054
1054
|
width: n,
|
|
1055
|
-
height:
|
|
1056
|
-
}), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + n]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: s +
|
|
1055
|
+
height: x
|
|
1056
|
+
}), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + n]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: s + x }), this.componentStore.yAxis.setRange([s, s + x]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((p) => rt(p)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1057
1057
|
}
|
|
1058
1058
|
calculateHorizontalSpace() {
|
|
1059
|
-
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = 0,
|
|
1059
|
+
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = 0, x = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), u = Math.floor(
|
|
1060
1060
|
i * this.chartConfig.plotReservedSpacePercent / 100
|
|
1061
|
-
),
|
|
1062
|
-
width:
|
|
1063
|
-
height:
|
|
1061
|
+
), p = this.componentStore.plot.calculateSpace({
|
|
1062
|
+
width: x,
|
|
1063
|
+
height: u
|
|
1064
1064
|
});
|
|
1065
|
-
t -=
|
|
1065
|
+
t -= p.width, i -= p.height, p = this.componentStore.title.calculateSpace({
|
|
1066
1066
|
width: this.chartConfig.width,
|
|
1067
1067
|
height: i
|
|
1068
|
-
}), e =
|
|
1068
|
+
}), e = p.height, i -= p.height, this.componentStore.xAxis.setAxisPosition("left"), p = this.componentStore.xAxis.calculateSpace({
|
|
1069
1069
|
width: t,
|
|
1070
1070
|
height: i
|
|
1071
|
-
}), t -=
|
|
1071
|
+
}), t -= p.width, s = p.width, this.componentStore.yAxis.setAxisPosition("top"), p = this.componentStore.yAxis.calculateSpace({
|
|
1072
1072
|
width: t,
|
|
1073
1073
|
height: i
|
|
1074
|
-
}), i -=
|
|
1075
|
-
width:
|
|
1076
|
-
height:
|
|
1077
|
-
}), this.componentStore.plot.setBoundingBoxXY({ x: s, y: n }), this.componentStore.yAxis.setRange([s, s +
|
|
1074
|
+
}), i -= p.height, n = e + p.height, t > 0 && (x += t, t = 0), i > 0 && (u += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1075
|
+
width: x,
|
|
1076
|
+
height: u
|
|
1077
|
+
}), this.componentStore.plot.setBoundingBoxXY({ x: s, y: n }), this.componentStore.yAxis.setRange([s, s + x]), this.componentStore.yAxis.setBoundingBoxXY({ x: s, y: e }), this.componentStore.xAxis.setRange([n, n + u]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: n }), this.chartData.plots.some((C) => rt(C)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1078
1078
|
}
|
|
1079
1079
|
calculateSpace() {
|
|
1080
1080
|
this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
|
|
@@ -1087,25 +1087,25 @@ var _i = (_i2 = class {
|
|
|
1087
1087
|
t.push(...i.getDrawableElements());
|
|
1088
1088
|
return t;
|
|
1089
1089
|
}
|
|
1090
|
-
}, a(_i2, "Orchestrator"), _i2),
|
|
1090
|
+
}, a(_i2, "Orchestrator"), _i2), _i = (_j = class {
|
|
1091
1091
|
static build(t, i, e, s) {
|
|
1092
|
-
return new
|
|
1092
|
+
return new Si(t, i, e, s).getDrawableElement();
|
|
1093
1093
|
}
|
|
1094
|
-
}, a(_j, "XYChartBuilder"), _j),
|
|
1095
|
-
function
|
|
1096
|
-
const t =
|
|
1097
|
-
return
|
|
1094
|
+
}, a(_j, "XYChartBuilder"), _j), Y = 0, Wt, H = dt(), U = xt(), y = pt(), lt = U.plotColorPalette.split(",").map((t) => t.trim()), K = false, gt = false;
|
|
1095
|
+
function xt() {
|
|
1096
|
+
const t = ci(), i = ct();
|
|
1097
|
+
return Et(t.xyChart, i.themeVariables.xyChart);
|
|
1098
1098
|
}
|
|
1099
|
-
a(
|
|
1100
|
-
function
|
|
1101
|
-
const t =
|
|
1102
|
-
return
|
|
1103
|
-
|
|
1099
|
+
a(xt, "getChartDefaultThemeConfig");
|
|
1100
|
+
function dt() {
|
|
1101
|
+
const t = ct();
|
|
1102
|
+
return Et(
|
|
1103
|
+
li.xyChart,
|
|
1104
1104
|
t.xyChart
|
|
1105
1105
|
);
|
|
1106
1106
|
}
|
|
1107
|
-
a(
|
|
1108
|
-
function
|
|
1107
|
+
a(dt, "getChartDefaultConfig");
|
|
1108
|
+
function pt() {
|
|
1109
1109
|
return {
|
|
1110
1110
|
yAxis: {
|
|
1111
1111
|
type: "linear",
|
|
@@ -1122,214 +1122,180 @@ function yt() {
|
|
|
1122
1122
|
plots: []
|
|
1123
1123
|
};
|
|
1124
1124
|
}
|
|
1125
|
-
a(
|
|
1126
|
-
function
|
|
1127
|
-
const i =
|
|
1128
|
-
return
|
|
1129
|
-
}
|
|
1130
|
-
a(st, "textSanitizer");
|
|
1131
|
-
function Ft(t) {
|
|
1132
|
-
zt = t;
|
|
1125
|
+
a(pt, "getChartDefaultData");
|
|
1126
|
+
function Z(t) {
|
|
1127
|
+
const i = ct();
|
|
1128
|
+
return ui(t.trim(), i);
|
|
1133
1129
|
}
|
|
1134
|
-
a(
|
|
1130
|
+
a(Z, "textSanitizer");
|
|
1135
1131
|
function Ot(t) {
|
|
1136
|
-
|
|
1132
|
+
Wt = t;
|
|
1137
1133
|
}
|
|
1138
|
-
a(Ot, "
|
|
1139
|
-
function
|
|
1140
|
-
|
|
1134
|
+
a(Ot, "setTmpSVGG");
|
|
1135
|
+
function zt(t) {
|
|
1136
|
+
t === "horizontal" ? H.chartOrientation = "horizontal" : H.chartOrientation = "vertical";
|
|
1141
1137
|
}
|
|
1142
|
-
a(
|
|
1143
|
-
function
|
|
1144
|
-
|
|
1138
|
+
a(zt, "setOrientation");
|
|
1139
|
+
function Ft(t) {
|
|
1140
|
+
y.xAxis.title = Z(t.text);
|
|
1145
1141
|
}
|
|
1146
|
-
a(
|
|
1147
|
-
function
|
|
1148
|
-
|
|
1142
|
+
a(Ft, "setXAxisTitle");
|
|
1143
|
+
function ft(t, i) {
|
|
1144
|
+
y.xAxis = { type: "linear", title: y.xAxis.title, min: t, max: i }, K = true;
|
|
1145
|
+
}
|
|
1146
|
+
a(ft, "setXAxisRangeData");
|
|
1147
|
+
function Xt(t) {
|
|
1148
|
+
y.xAxis = {
|
|
1149
1149
|
type: "band",
|
|
1150
|
-
title:
|
|
1151
|
-
categories: t.map((i) =>
|
|
1152
|
-
},
|
|
1150
|
+
title: y.xAxis.title,
|
|
1151
|
+
categories: t.map((i) => Z(i.text))
|
|
1152
|
+
}, K = true;
|
|
1153
1153
|
}
|
|
1154
|
-
a(
|
|
1155
|
-
function
|
|
1156
|
-
|
|
1154
|
+
a(Xt, "setXAxisBand");
|
|
1155
|
+
function Nt(t) {
|
|
1156
|
+
y.yAxis.title = Z(t.text);
|
|
1157
1157
|
}
|
|
1158
|
-
a(
|
|
1159
|
-
function
|
|
1160
|
-
|
|
1158
|
+
a(Nt, "setYAxisTitle");
|
|
1159
|
+
function Yt(t, i) {
|
|
1160
|
+
y.yAxis = { type: "linear", title: y.yAxis.title, min: t, max: i }, gt = true;
|
|
1161
1161
|
}
|
|
1162
|
-
a(
|
|
1163
|
-
function
|
|
1164
|
-
const i = Math.min(...t), e = Math.max(...t), s =
|
|
1165
|
-
|
|
1162
|
+
a(Yt, "setYAxisRangeData");
|
|
1163
|
+
function Ht(t) {
|
|
1164
|
+
const i = Math.min(...t), e = Math.max(...t), s = F(y.yAxis) ? y.yAxis.min : 1 / 0, n = F(y.yAxis) ? y.yAxis.max : -1 / 0;
|
|
1165
|
+
y.yAxis = {
|
|
1166
1166
|
type: "linear",
|
|
1167
|
-
title:
|
|
1167
|
+
title: y.yAxis.title,
|
|
1168
1168
|
min: Math.min(s, i),
|
|
1169
1169
|
max: Math.max(n, e)
|
|
1170
1170
|
};
|
|
1171
1171
|
}
|
|
1172
|
-
a(
|
|
1173
|
-
function
|
|
1172
|
+
a(Ht, "setYAxisRangeFromPlotData");
|
|
1173
|
+
function mt(t) {
|
|
1174
1174
|
let i = [];
|
|
1175
1175
|
if (t.length === 0)
|
|
1176
1176
|
return i;
|
|
1177
|
-
if (!
|
|
1178
|
-
const e =
|
|
1179
|
-
|
|
1177
|
+
if (!K) {
|
|
1178
|
+
const e = F(y.xAxis) ? y.xAxis.min : 1 / 0, s = F(y.xAxis) ? y.xAxis.max : -1 / 0;
|
|
1179
|
+
ft(Math.min(e, 1), Math.max(s, t.length));
|
|
1180
1180
|
}
|
|
1181
|
-
if (
|
|
1182
|
-
const e =
|
|
1183
|
-
for (let
|
|
1184
|
-
|
|
1185
|
-
i =
|
|
1181
|
+
if (gt || Ht(t), ut(y.xAxis) && (i = y.xAxis.categories.map((e, s) => [e, t[s]])), F(y.xAxis)) {
|
|
1182
|
+
const e = y.xAxis.min, s = y.xAxis.max, n = (s - e) / (t.length - 1), x = [];
|
|
1183
|
+
for (let u = e; u <= s; u += n)
|
|
1184
|
+
x.push(`${u}`);
|
|
1185
|
+
i = x.map((u, p) => [u, t[p]]);
|
|
1186
1186
|
}
|
|
1187
1187
|
return i;
|
|
1188
1188
|
}
|
|
1189
|
-
a(
|
|
1190
|
-
function
|
|
1191
|
-
return
|
|
1189
|
+
a(mt, "transformDataWithoutCategory");
|
|
1190
|
+
function yt(t) {
|
|
1191
|
+
return lt[t === 0 ? 0 : t % lt.length];
|
|
1192
1192
|
}
|
|
1193
|
-
a(
|
|
1194
|
-
function
|
|
1195
|
-
const e =
|
|
1196
|
-
|
|
1193
|
+
a(yt, "getPlotColorFromPalette");
|
|
1194
|
+
function Ut(t, i) {
|
|
1195
|
+
const e = mt(i);
|
|
1196
|
+
y.plots.push({
|
|
1197
1197
|
type: "line",
|
|
1198
|
-
strokeFill:
|
|
1198
|
+
strokeFill: yt(Y),
|
|
1199
1199
|
strokeWidth: 2,
|
|
1200
1200
|
data: e
|
|
1201
|
-
}),
|
|
1201
|
+
}), Y++;
|
|
1202
1202
|
}
|
|
1203
|
-
a(
|
|
1204
|
-
function
|
|
1205
|
-
const e =
|
|
1206
|
-
|
|
1203
|
+
a(Ut, "setLineData");
|
|
1204
|
+
function $t(t, i) {
|
|
1205
|
+
const e = mt(i);
|
|
1206
|
+
y.plots.push({
|
|
1207
1207
|
type: "bar",
|
|
1208
|
-
fill:
|
|
1208
|
+
fill: yt(Y),
|
|
1209
1209
|
data: e
|
|
1210
|
-
}),
|
|
1210
|
+
}), Y++;
|
|
1211
1211
|
}
|
|
1212
|
-
a(
|
|
1213
|
-
function
|
|
1214
|
-
if (
|
|
1212
|
+
a($t, "setBarData");
|
|
1213
|
+
function qt() {
|
|
1214
|
+
if (y.plots.length === 0)
|
|
1215
1215
|
throw Error("No Plot to render, please provide a plot with some data");
|
|
1216
|
-
return
|
|
1216
|
+
return y.title = Pt(), _i.build(H, y, U, Wt);
|
|
1217
1217
|
}
|
|
1218
|
-
a(
|
|
1219
|
-
function
|
|
1220
|
-
return
|
|
1221
|
-
}
|
|
1222
|
-
a(jt, "getChartThemeConfig");
|
|
1223
|
-
function Qt() {
|
|
1224
|
-
return K;
|
|
1218
|
+
a(qt, "getDrawableElem");
|
|
1219
|
+
function Gt() {
|
|
1220
|
+
return U;
|
|
1225
1221
|
}
|
|
1226
|
-
a(
|
|
1227
|
-
function
|
|
1228
|
-
return
|
|
1222
|
+
a(Gt, "getChartThemeConfig");
|
|
1223
|
+
function jt() {
|
|
1224
|
+
return H;
|
|
1229
1225
|
}
|
|
1230
|
-
a(
|
|
1231
|
-
var
|
|
1232
|
-
|
|
1233
|
-
}, "clear"),
|
|
1234
|
-
getDrawableElem:
|
|
1235
|
-
clear:
|
|
1236
|
-
setAccTitle:
|
|
1237
|
-
getAccTitle:
|
|
1238
|
-
setDiagramTitle:
|
|
1239
|
-
getDiagramTitle:
|
|
1240
|
-
getAccDescription:
|
|
1241
|
-
setAccDescription:
|
|
1242
|
-
setOrientation:
|
|
1243
|
-
setXAxisTitle:
|
|
1244
|
-
setXAxisRangeData:
|
|
1245
|
-
setXAxisBand:
|
|
1246
|
-
setYAxisTitle:
|
|
1247
|
-
setYAxisRangeData:
|
|
1248
|
-
setLineData:
|
|
1249
|
-
setBarData:
|
|
1250
|
-
setTmpSVGG:
|
|
1251
|
-
getChartThemeConfig:
|
|
1252
|
-
getChartConfig:
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
return p === "top" ? "text-before-edge" : "middle";
|
|
1226
|
+
a(jt, "getChartConfig");
|
|
1227
|
+
var ki = /* @__PURE__ */ a(function() {
|
|
1228
|
+
hi(), Y = 0, H = dt(), y = pt(), U = xt(), lt = U.plotColorPalette.split(",").map((t) => t.trim()), K = false, gt = false;
|
|
1229
|
+
}, "clear"), Ri = {
|
|
1230
|
+
getDrawableElem: qt,
|
|
1231
|
+
clear: ki,
|
|
1232
|
+
setAccTitle: ai,
|
|
1233
|
+
getAccTitle: ni,
|
|
1234
|
+
setDiagramTitle: si,
|
|
1235
|
+
getDiagramTitle: Pt,
|
|
1236
|
+
getAccDescription: ei,
|
|
1237
|
+
setAccDescription: ii,
|
|
1238
|
+
setOrientation: zt,
|
|
1239
|
+
setXAxisTitle: Ft,
|
|
1240
|
+
setXAxisRangeData: ft,
|
|
1241
|
+
setXAxisBand: Xt,
|
|
1242
|
+
setYAxisTitle: Nt,
|
|
1243
|
+
setYAxisRangeData: Yt,
|
|
1244
|
+
setLineData: Ut,
|
|
1245
|
+
setBarData: $t,
|
|
1246
|
+
setTmpSVGG: Ot,
|
|
1247
|
+
getChartThemeConfig: Gt,
|
|
1248
|
+
getChartConfig: jt
|
|
1249
|
+
}, Ti = /* @__PURE__ */ a((t, i, e, s) => {
|
|
1250
|
+
const n = s.db, x = n.getChartThemeConfig(), u = n.getChartConfig();
|
|
1251
|
+
function p(f) {
|
|
1252
|
+
return f === "top" ? "text-before-edge" : "middle";
|
|
1258
1253
|
}
|
|
1259
|
-
a(
|
|
1260
|
-
function
|
|
1261
|
-
return
|
|
1254
|
+
a(p, "getDominantBaseLine");
|
|
1255
|
+
function C(f) {
|
|
1256
|
+
return f === "left" ? "start" : f === "right" ? "end" : "middle";
|
|
1262
1257
|
}
|
|
1263
|
-
a(
|
|
1264
|
-
function
|
|
1265
|
-
return `translate(${
|
|
1258
|
+
a(C, "getTextAnchor");
|
|
1259
|
+
function T(f) {
|
|
1260
|
+
return `translate(${f.x}, ${f.y}) rotate(${f.rotation || 0})`;
|
|
1266
1261
|
}
|
|
1267
|
-
a(
|
|
1262
|
+
a(T, "getTextTransformation"), Lt.debug(`Rendering xychart chart
|
|
1268
1263
|
` + t);
|
|
1269
|
-
const
|
|
1270
|
-
|
|
1271
|
-
const
|
|
1272
|
-
function
|
|
1273
|
-
let _ =
|
|
1274
|
-
for (const [
|
|
1275
|
-
let
|
|
1276
|
-
|
|
1264
|
+
const k = oi(i), A = k.append("g").attr("class", "main"), m = A.append("rect").attr("width", u.width).attr("height", u.height).attr("class", "background");
|
|
1265
|
+
ri(k, u.height, u.width, true), k.attr("viewBox", `0 0 ${u.width} ${u.height}`), m.attr("fill", x.backgroundColor), n.setTmpSVGG(k.append("g").attr("class", "mermaid-tmp-group"));
|
|
1266
|
+
const D = n.getDrawableElem(), S = {};
|
|
1267
|
+
function v(f) {
|
|
1268
|
+
let _ = A, h = "";
|
|
1269
|
+
for (const [E] of f.entries()) {
|
|
1270
|
+
let X = A;
|
|
1271
|
+
E > 0 && S[h] && (X = S[h]), h += f[E], _ = S[h], _ || (_ = S[h] = X.append("g").attr("class", f[E]));
|
|
1277
1272
|
}
|
|
1278
1273
|
return _;
|
|
1279
1274
|
}
|
|
1280
|
-
a(
|
|
1281
|
-
for (const
|
|
1282
|
-
if (
|
|
1275
|
+
a(v, "getGroup");
|
|
1276
|
+
for (const f of D) {
|
|
1277
|
+
if (f.data.length === 0)
|
|
1283
1278
|
continue;
|
|
1284
|
-
const _ =
|
|
1285
|
-
switch (
|
|
1279
|
+
const _ = v(f.groupTexts);
|
|
1280
|
+
switch (f.type) {
|
|
1286
1281
|
case "rect":
|
|
1287
|
-
|
|
1288
|
-
if (g.chartOrientation === "horizontal") {
|
|
1289
|
-
let l = function(h, L) {
|
|
1290
|
-
const { data: C, label: k } = h;
|
|
1291
|
-
return L * k.length * W <= C.width - 10;
|
|
1292
|
-
};
|
|
1293
|
-
a(l, "fitsHorizontally");
|
|
1294
|
-
const W = 0.7, z = p.data.map((h, L) => ({ data: h, label: m[L].toString() })).filter((h) => h.data.width > 0 && h.data.height > 0), U = z.map((h) => {
|
|
1295
|
-
const { data: L } = h;
|
|
1296
|
-
let C = L.height * 0.7;
|
|
1297
|
-
for (; !l(h, C) && C > 0; )
|
|
1298
|
-
C -= 1;
|
|
1299
|
-
return C;
|
|
1300
|
-
}), X = Math.floor(Math.min(...U));
|
|
1301
|
-
_.selectAll("text").data(z).enter().append("text").attr("x", (h) => h.data.x + h.data.width - 10).attr("y", (h) => h.data.y + h.data.height / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").attr("fill", "black").attr("font-size", `${X}px`).text((h) => h.label);
|
|
1302
|
-
} else {
|
|
1303
|
-
let l = function(h, L, C) {
|
|
1304
|
-
const { data: k, label: $ } = h, N = L * $.length * 0.7, F = k.x + k.width / 2, r = F - N / 2, c = F + N / 2, u = r >= k.x && c <= k.x + k.width, x = k.y + C + L <= k.y + k.height;
|
|
1305
|
-
return u && x;
|
|
1306
|
-
};
|
|
1307
|
-
a(l, "fitsInBar");
|
|
1308
|
-
const W = 10, z = p.data.map((h, L) => ({ data: h, label: m[L].toString() })).filter((h) => h.data.width > 0 && h.data.height > 0), U = z.map((h) => {
|
|
1309
|
-
const { data: L, label: C } = h;
|
|
1310
|
-
let k = L.width / (C.length * 0.7);
|
|
1311
|
-
for (; !l(h, k, W) && k > 0; )
|
|
1312
|
-
k -= 1;
|
|
1313
|
-
return k;
|
|
1314
|
-
}), X = Math.floor(Math.min(...U));
|
|
1315
|
-
_.selectAll("text").data(z).enter().append("text").attr("x", (h) => h.data.x + h.data.width / 2).attr("y", (h) => h.data.y + W).attr("text-anchor", "middle").attr("dominant-baseline", "hanging").attr("fill", "black").attr("font-size", `${X}px`).text((h) => h.label);
|
|
1316
|
-
}
|
|
1282
|
+
_.selectAll("rect").data(f.data).enter().append("rect").attr("x", (h) => h.x).attr("y", (h) => h.y).attr("width", (h) => h.width).attr("height", (h) => h.height).attr("fill", (h) => h.fill).attr("stroke", (h) => h.strokeFill).attr("stroke-width", (h) => h.strokeWidth);
|
|
1317
1283
|
break;
|
|
1318
1284
|
case "text":
|
|
1319
|
-
_.selectAll("text").data(
|
|
1285
|
+
_.selectAll("text").data(f.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (h) => h.fill).attr("font-size", (h) => h.fontSize).attr("dominant-baseline", (h) => p(h.verticalPos)).attr("text-anchor", (h) => C(h.horizontalPos)).attr("transform", (h) => T(h)).text((h) => h.text);
|
|
1320
1286
|
break;
|
|
1321
1287
|
case "path":
|
|
1322
|
-
_.selectAll("path").data(
|
|
1288
|
+
_.selectAll("path").data(f.data).enter().append("path").attr("d", (h) => h.path).attr("fill", (h) => h.fill ? h.fill : "none").attr("stroke", (h) => h.strokeFill).attr("stroke-width", (h) => h.strokeWidth);
|
|
1323
1289
|
break;
|
|
1324
1290
|
}
|
|
1325
1291
|
}
|
|
1326
|
-
}, "draw"),
|
|
1327
|
-
draw:
|
|
1328
|
-
},
|
|
1329
|
-
parser:
|
|
1330
|
-
db:
|
|
1331
|
-
renderer:
|
|
1292
|
+
}, "draw"), Di = {
|
|
1293
|
+
draw: Ti
|
|
1294
|
+
}, Vi = {
|
|
1295
|
+
parser: fi,
|
|
1296
|
+
db: Ri,
|
|
1297
|
+
renderer: Di
|
|
1332
1298
|
};
|
|
1333
1299
|
export {
|
|
1334
|
-
|
|
1300
|
+
Vi as diagram
|
|
1335
1301
|
};
|