@kong-ui-public/documentation 1.7.21 → 1.7.22-pr.3646.2d80ddaf3.0
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/package.json +4 -4
- package/dist/arc-DZdQjcG8-CduayE88.js +0 -79
- package/dist/architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js +0 -4065
- package/dist/astro-D8QEIUE9-nzvtSwAQ.js +0 -18
- package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +0 -3268
- package/dist/c-GOwUpV7U-DMPKLUI8.js +0 -4
- package/dist/c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js +0 -3035
- package/dist/catppuccin-latte-BcV8jije-D8pvGdu1.js +0 -4
- package/dist/channel-DM9j7IFL-DxqBUxfY.js +0 -5
- package/dist/chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js +0 -24
- package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +0 -8
- package/dist/chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js +0 -8
- package/dist/chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js +0 -3445
- package/dist/chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js +0 -2096
- package/dist/chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js +0 -19
- package/dist/chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js +0 -65
- package/dist/chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js +0 -12
- package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +0 -17
- package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +0 -17
- package/dist/cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js +0 -2260
- package/dist/csharp-Cy04UeDC-OaGPefhL.js +0 -4
- package/dist/css-CJQ-rcMF-B_2PRTA_.js +0 -4
- package/dist/csv-Bx_Umlp--BPWcOTV4.js +0 -4
- package/dist/cytoscape.esm-BDIiOYYO-C1jMBhD8.js +0 -18220
- package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +0 -288
- package/dist/dagre-DJxg_nfI-hVOVexz-.js +0 -1687
- package/dist/defaultLocale-mtMQ0U8A-D6jPixjH.js +0 -182
- package/dist/diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js +0 -210
- package/dist/diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js +0 -99
- package/dist/diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js +0 -439
- package/dist/diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js +0 -127
- package/dist/diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js +0 -475
- package/dist/diff-DZRtXnMG-DenOJuyV.js +0 -4
- package/dist/docker-DQBBDNmU-xX8PDoIv.js +0 -4
- package/dist/documentation.es.js +0 -7
- package/dist/documentation.umd.js +0 -3474
- package/dist/erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js +0 -1773
- package/dist/flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js +0 -4258
- package/dist/ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js +0 -3099
- package/dist/git-commit-BOgnKaZ8-Csu8eMzs.js +0 -5
- package/dist/git-rebase-0v-YFIjP-D701iWbX.js +0 -5
- package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +0 -734
- package/dist/go-DpaXbCNA-DqSXHrGo.js +0 -4
- package/dist/graphlib-D2YdGpuK-CnQPmzkS.js +0 -1071
- package/dist/graphql-BSO8hVnT-C6Okg5tI.js +0 -14
- package/dist/haml-DizLz-gS-BWwS-eha.js +0 -10
- package/dist/handlebars-tnt1-4s--xVtJSIx5.js +0 -14
- package/dist/haskell-BDLr0yXS-BlmVjKNy.js +0 -4
- package/dist/html-DdIT5Pi9-C35UyBqr.js +0 -10
- package/dist/html-derivative-BHAKSQcK-BChKhjnv.js +0 -5
- package/dist/http-DRk-iX-V-DQ76ihB0.js +0 -14
- package/dist/index-DfVKdDwj.js +0 -40029
- package/dist/infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js +0 -18
- package/dist/ini-D-uG5DCC-70PBzbbb.js +0 -4
- package/dist/init-8lPFe2y8-B2MlpiqM.js +0 -16
- package/dist/ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js +0 -728
- package/dist/java-CQQr73XR-D6YBp1XX.js +0 -4
- package/dist/javascript-CXmFGv-C-BRPKgr3C.js +0 -4
- package/dist/journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js +0 -908
- package/dist/json-BXFRNzj8-D8uacQj0.js +0 -4
- package/dist/json5-B5-J7v9w-Biib5ALh.js +0 -4
- package/dist/jsonc-CeA7x8NU-BZEKkMok.js +0 -4
- package/dist/jsonl-BBlxch9W-BG2V-IA2.js +0 -4
- package/dist/jsx-DucQCby8-Cl0AMtmu.js +0 -4
- package/dist/kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js +0 -1028
- package/dist/katex-D7tFlpqA-BOSQxXe1.js +0 -22315
- package/dist/kotlin-CDXyBjvc-Dy_91eL4.js +0 -4
- package/dist/latex-COX74REd-l1quglTx.js +0 -5
- package/dist/less-QqooI0UQ-tcNg8M2_.js +0 -4
- package/dist/linear-1MXhYum8-9C1jno9G.js +0 -255
- package/dist/liquid-CsynDTV--Bdhb3gsJ.js +0 -14
- package/dist/lua-B3xrKnOz-Coo0MCwO.js +0 -5
- package/dist/make-eFBmESRY-CrUl7LOH.js +0 -4
- package/dist/markdown-DkQv9NwM-Bcqt-5kX.js +0 -4
- package/dist/material-theme-darker-Bp7Jj852-DMHCIvq5.js +0 -4
- package/dist/mdc-BK-Z5Xv--aFc-Oyv5.js +0 -12
- package/dist/mdx-CjbEMaEg-CK6jOqmu.js +0 -4
- package/dist/mermaid-Ccfpee4A-BgbNnQO5.js +0 -4
- package/dist/mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js +0 -1026
- package/dist/nginx-DQrs__jO-BS9Jcr4V.js +0 -5
- package/dist/objective-c-CXg1TPY9-C809HPrX.js +0 -4
- package/dist/ordinal-D9ksOc8y-2hZwLyEk.js +0 -63
- package/dist/pascal-C6L9Tn1x-a8whuidZ.js +0 -4
- package/dist/perl-Dbi-SlHs-DsZjIGqU.js +0 -16
- package/dist/php-J5w8HAya-DnRg4f-g.js +0 -18
- package/dist/pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js +0 -153
- package/dist/plsql-Ba_yrVwL-BJoF2Vrf.js +0 -4
- package/dist/postcss-Bsoc__IZ-DaHMm3XW.js +0 -4
- package/dist/powershell-CKvM5hOe-Box9VSDW.js +0 -4
- package/dist/proto-iweZN-Ks-w0B_itsp.js +0 -4
- package/dist/pug-DUPsoXbW-BFHDRSax.js +0 -12
- package/dist/python-MxhgNM12-D_5pfY__.js +0 -4
- package/dist/quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js +0 -2046
- package/dist/r-CoGPXt5G-BrbXTU3W.js +0 -4
- package/dist/reg-CHAl2UuA-bHAwx9Pm.js +0 -4
- package/dist/requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js +0 -2281
- package/dist/rst-D-Zcnz0t-C3PGnqgH.js +0 -20
- package/dist/ruby-CQp7mk0v-B3KpG-9E.js +0 -46
- package/dist/rust-W9HETclW-CaZtBt24.js +0 -4
- package/dist/sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js +0 -946
- package/dist/sass-DzGfEb5u-pslLeRRb.js +0 -4
- package/dist/scss-cWHTb1-d-DN6jMR75.js +0 -5
- package/dist/sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js +0 -4266
- package/dist/shellscript-BvJBBLP1-BtH46UX7.js +0 -4
- package/dist/shellsession-CXHk-hsk-D-2JR5oU.js +0 -5
- package/dist/splunk-TtOhH_8h-BP8P7eWt.js +0 -4
- package/dist/sql-B-h_q34g-uWwuAxg_.js +0 -4
- package/dist/ssh-config-B7jk1vQp-BB1rrGb9.js +0 -4
- package/dist/stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js +0 -210
- package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +0 -16
- package/dist/style.css +0 -1
- package/dist/stylus-Ccd_7r3J-DAu5PNZ9.js +0 -4
- package/dist/svelte-CYqtuUsn-Cf97VB5J.js +0 -14
- package/dist/swift-CzsQqA0L-BPF2ddNF.js +0 -4
- package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +0 -1095
- package/dist/toml-CRTROHRr-DjT9Bjqu.js +0 -4
- package/dist/tsx-CE8dfKwK-B-5hSr15.js +0 -4
- package/dist/twig-Bst4uh7S-C3aA9tng.js +0 -18
- package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -35
- package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
- package/dist/types/components/DocumentationContent.vue.d.ts +0 -186
- package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
- package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -105
- package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
- package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -31
- package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
- package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -72
- package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
- package/dist/types/composables/index.d.ts +0 -6
- package/dist/types/composables/index.d.ts.map +0 -1
- package/dist/types/composables/useI18n.d.ts +0 -9
- package/dist/types/composables/useI18n.d.ts.map +0 -1
- package/dist/types/external-links.d.ts +0 -5
- package/dist/types/external-links.d.ts.map +0 -1
- package/dist/types/helpers.d.ts +0 -8
- package/dist/types/helpers.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -7
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/types/document-list.d.ts +0 -28
- package/dist/types/types/document-list.d.ts.map +0 -1
- package/dist/types/types/document-modal.d.ts +0 -8
- package/dist/types/types/document-modal.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -3
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/typescript-8ogSSNer-B0ag8pir.js +0 -4
- package/dist/v-NeSnRB8V-CYSa2rJN.js +0 -4
- package/dist/vb-Dz72yc4q-B6FpM2Kc.js +0 -4
- package/dist/vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js +0 -1889
- package/dist/viml-DB1flIhL-BeYQ8dZh.js +0 -4
- package/dist/vue-Bq4JA_WT-CGBUDahs.js +0 -22
- package/dist/vue-html-BygQzR-9-BPez-Otx.js +0 -5
- package/dist/wardley-L42UT6IY-BjAkE_cs-C-giFqos.js +0 -20731
- package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +0 -639
- package/dist/wasm-BmZuu1vu-CfuK9YWP.js +0 -4
- package/dist/wgsl-D-vNyw6e-C2IZ7ENh.js +0 -4
- package/dist/xml-juAhGoTG-khG3jjDl.js +0 -5
- package/dist/xsl-CHgyQG2O-CiMa9sUf.js +0 -5
- package/dist/xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js +0 -2055
- package/dist/yaml-BK_xXVzk-X78l_Ibz.js +0 -4
|
@@ -1,2055 +0,0 @@
|
|
|
1
|
-
import { G as gi, K as xi, i as Ft, f as di, W as pi, U as fi, p as n, g as Xt, a0 as mi, A as yi, H as bi, o as Ct, s as Nt, F as Ai, ah as wi, c as Ci, ai as Si, aj as Bt } from "./index-DfVKdDwj.js";
|
|
2
|
-
import { q as zt } from "./linear-1MXhYum8-9C1jno9G.js";
|
|
3
|
-
import { s as ki } from "./ordinal-D9ksOc8y-2hZwLyEk.js";
|
|
4
|
-
import { e as _i } from "./init-8lPFe2y8-B2MlpiqM.js";
|
|
5
|
-
function Ti(e, t, i) {
|
|
6
|
-
e = +e, t = +t, i = (a = arguments.length) < 2 ? (t = e, e = 0, 1) : a < 3 ? 1 : +i;
|
|
7
|
-
for (var s = -1, a = Math.max(0, Math.ceil((t - e) / i)) | 0, l = Array(a); ++s < a; ) l[s] = e + s * i;
|
|
8
|
-
return l;
|
|
9
|
-
}
|
|
10
|
-
function mt() {
|
|
11
|
-
var e = ki().unknown(void 0), t = e.domain, i = e.range, s = 0, a = 1, l, c, p = !1, d = 0, R = 0, v = 0.5;
|
|
12
|
-
delete e.unknown;
|
|
13
|
-
function S() {
|
|
14
|
-
var m = t().length, M = a < s, P = M ? a : s, E = M ? s : a;
|
|
15
|
-
l = (E - P) / Math.max(1, m - d + R * 2), p && (l = Math.floor(l)), P += (E - P - l * (m - d)) * v, c = l * (1 - d), p && (P = Math.round(P), c = Math.round(c));
|
|
16
|
-
var I = Ti(m).map(function(f) {
|
|
17
|
-
return P + l * f;
|
|
18
|
-
});
|
|
19
|
-
return i(M ? I.reverse() : I);
|
|
20
|
-
}
|
|
21
|
-
return e.domain = function(m) {
|
|
22
|
-
return arguments.length ? (t(m), S()) : t();
|
|
23
|
-
}, e.range = function(m) {
|
|
24
|
-
return arguments.length ? ([s, a] = m, s = +s, a = +a, S()) : [s, a];
|
|
25
|
-
}, e.rangeRound = function(m) {
|
|
26
|
-
return [s, a] = m, s = +s, a = +a, p = !0, S();
|
|
27
|
-
}, e.bandwidth = function() {
|
|
28
|
-
return c;
|
|
29
|
-
}, e.step = function() {
|
|
30
|
-
return l;
|
|
31
|
-
}, e.round = function(m) {
|
|
32
|
-
return arguments.length ? (p = !!m, S()) : p;
|
|
33
|
-
}, e.padding = function(m) {
|
|
34
|
-
return arguments.length ? (d = Math.min(1, R = +m), S()) : d;
|
|
35
|
-
}, e.paddingInner = function(m) {
|
|
36
|
-
return arguments.length ? (d = Math.min(1, m), S()) : d;
|
|
37
|
-
}, e.paddingOuter = function(m) {
|
|
38
|
-
return arguments.length ? (R = +m, S()) : R;
|
|
39
|
-
}, e.align = function(m) {
|
|
40
|
-
return arguments.length ? (v = Math.max(0, Math.min(1, m)), S()) : v;
|
|
41
|
-
}, e.copy = function() {
|
|
42
|
-
return mt(t(), [s, a]).round(p).paddingInner(d).paddingOuter(R).align(v);
|
|
43
|
-
}, _i.apply(S(), arguments);
|
|
44
|
-
}
|
|
45
|
-
var yt = (function() {
|
|
46
|
-
var e = /* @__PURE__ */ n(function(h, y, g, u) {
|
|
47
|
-
for (g ||= {}, u = h.length; u--; g[h[u]] = y) ;
|
|
48
|
-
return g;
|
|
49
|
-
}, "o"), t = [
|
|
50
|
-
1,
|
|
51
|
-
10,
|
|
52
|
-
12,
|
|
53
|
-
14,
|
|
54
|
-
16,
|
|
55
|
-
18,
|
|
56
|
-
19,
|
|
57
|
-
21,
|
|
58
|
-
23
|
|
59
|
-
], i = [2, 6], s = [1, 3], a = [1, 5], l = [1, 6], c = [1, 7], p = [
|
|
60
|
-
1,
|
|
61
|
-
5,
|
|
62
|
-
10,
|
|
63
|
-
12,
|
|
64
|
-
14,
|
|
65
|
-
16,
|
|
66
|
-
18,
|
|
67
|
-
19,
|
|
68
|
-
21,
|
|
69
|
-
23,
|
|
70
|
-
34,
|
|
71
|
-
35,
|
|
72
|
-
36
|
|
73
|
-
], d = [1, 25], R = [1, 26], v = [1, 28], S = [1, 29], m = [1, 30], M = [1, 31], P = [1, 32], E = [1, 33], I = [1, 34], f = [1, 35], D = [1, 36], r = [1, 37], z = [1, 43], F = [1, 42], H = [1, 47], X = [1, 50], A = [
|
|
74
|
-
1,
|
|
75
|
-
10,
|
|
76
|
-
12,
|
|
77
|
-
14,
|
|
78
|
-
16,
|
|
79
|
-
18,
|
|
80
|
-
19,
|
|
81
|
-
21,
|
|
82
|
-
23,
|
|
83
|
-
34,
|
|
84
|
-
35,
|
|
85
|
-
36
|
|
86
|
-
], k = [
|
|
87
|
-
1,
|
|
88
|
-
10,
|
|
89
|
-
12,
|
|
90
|
-
14,
|
|
91
|
-
16,
|
|
92
|
-
18,
|
|
93
|
-
19,
|
|
94
|
-
21,
|
|
95
|
-
23,
|
|
96
|
-
24,
|
|
97
|
-
26,
|
|
98
|
-
27,
|
|
99
|
-
28,
|
|
100
|
-
34,
|
|
101
|
-
35,
|
|
102
|
-
36
|
|
103
|
-
], T = [
|
|
104
|
-
1,
|
|
105
|
-
10,
|
|
106
|
-
12,
|
|
107
|
-
14,
|
|
108
|
-
16,
|
|
109
|
-
18,
|
|
110
|
-
19,
|
|
111
|
-
21,
|
|
112
|
-
23,
|
|
113
|
-
24,
|
|
114
|
-
26,
|
|
115
|
-
27,
|
|
116
|
-
28,
|
|
117
|
-
34,
|
|
118
|
-
35,
|
|
119
|
-
36,
|
|
120
|
-
41,
|
|
121
|
-
42,
|
|
122
|
-
43,
|
|
123
|
-
44,
|
|
124
|
-
45,
|
|
125
|
-
46,
|
|
126
|
-
47,
|
|
127
|
-
48,
|
|
128
|
-
49,
|
|
129
|
-
50
|
|
130
|
-
], w = [1, 64], _ = {
|
|
131
|
-
trace: /* @__PURE__ */ n(function() {
|
|
132
|
-
}, "trace"),
|
|
133
|
-
yy: {},
|
|
134
|
-
symbols_: {
|
|
135
|
-
error: 2,
|
|
136
|
-
start: 3,
|
|
137
|
-
eol: 4,
|
|
138
|
-
XYCHART: 5,
|
|
139
|
-
chartConfig: 6,
|
|
140
|
-
document: 7,
|
|
141
|
-
CHART_ORIENTATION: 8,
|
|
142
|
-
statement: 9,
|
|
143
|
-
title: 10,
|
|
144
|
-
text: 11,
|
|
145
|
-
X_AXIS: 12,
|
|
146
|
-
parseXAxis: 13,
|
|
147
|
-
Y_AXIS: 14,
|
|
148
|
-
parseYAxis: 15,
|
|
149
|
-
LINE: 16,
|
|
150
|
-
plotData: 17,
|
|
151
|
-
BAR: 18,
|
|
152
|
-
acc_title: 19,
|
|
153
|
-
acc_title_value: 20,
|
|
154
|
-
acc_descr: 21,
|
|
155
|
-
acc_descr_value: 22,
|
|
156
|
-
acc_descr_multiline_value: 23,
|
|
157
|
-
SQUARE_BRACES_START: 24,
|
|
158
|
-
commaSeparatedNumbers: 25,
|
|
159
|
-
SQUARE_BRACES_END: 26,
|
|
160
|
-
NUMBER_WITH_DECIMAL: 27,
|
|
161
|
-
COMMA: 28,
|
|
162
|
-
xAxisData: 29,
|
|
163
|
-
bandData: 30,
|
|
164
|
-
ARROW_DELIMITER: 31,
|
|
165
|
-
commaSeparatedTexts: 32,
|
|
166
|
-
yAxisData: 33,
|
|
167
|
-
NEWLINE: 34,
|
|
168
|
-
SEMI: 35,
|
|
169
|
-
EOF: 36,
|
|
170
|
-
alphaNum: 37,
|
|
171
|
-
STR: 38,
|
|
172
|
-
MD_STR: 39,
|
|
173
|
-
alphaNumToken: 40,
|
|
174
|
-
AMP: 41,
|
|
175
|
-
NUM: 42,
|
|
176
|
-
ALPHA: 43,
|
|
177
|
-
PLUS: 44,
|
|
178
|
-
EQUALS: 45,
|
|
179
|
-
MULT: 46,
|
|
180
|
-
DOT: 47,
|
|
181
|
-
BRKT: 48,
|
|
182
|
-
MINUS: 49,
|
|
183
|
-
UNDERSCORE: 50,
|
|
184
|
-
$accept: 0,
|
|
185
|
-
$end: 1
|
|
186
|
-
},
|
|
187
|
-
terminals_: {
|
|
188
|
-
2: "error",
|
|
189
|
-
5: "XYCHART",
|
|
190
|
-
8: "CHART_ORIENTATION",
|
|
191
|
-
10: "title",
|
|
192
|
-
12: "X_AXIS",
|
|
193
|
-
14: "Y_AXIS",
|
|
194
|
-
16: "LINE",
|
|
195
|
-
18: "BAR",
|
|
196
|
-
19: "acc_title",
|
|
197
|
-
20: "acc_title_value",
|
|
198
|
-
21: "acc_descr",
|
|
199
|
-
22: "acc_descr_value",
|
|
200
|
-
23: "acc_descr_multiline_value",
|
|
201
|
-
24: "SQUARE_BRACES_START",
|
|
202
|
-
26: "SQUARE_BRACES_END",
|
|
203
|
-
27: "NUMBER_WITH_DECIMAL",
|
|
204
|
-
28: "COMMA",
|
|
205
|
-
31: "ARROW_DELIMITER",
|
|
206
|
-
34: "NEWLINE",
|
|
207
|
-
35: "SEMI",
|
|
208
|
-
36: "EOF",
|
|
209
|
-
38: "STR",
|
|
210
|
-
39: "MD_STR",
|
|
211
|
-
41: "AMP",
|
|
212
|
-
42: "NUM",
|
|
213
|
-
43: "ALPHA",
|
|
214
|
-
44: "PLUS",
|
|
215
|
-
45: "EQUALS",
|
|
216
|
-
46: "MULT",
|
|
217
|
-
47: "DOT",
|
|
218
|
-
48: "BRKT",
|
|
219
|
-
49: "MINUS",
|
|
220
|
-
50: "UNDERSCORE"
|
|
221
|
-
},
|
|
222
|
-
productions_: [
|
|
223
|
-
0,
|
|
224
|
-
[3, 2],
|
|
225
|
-
[3, 3],
|
|
226
|
-
[3, 2],
|
|
227
|
-
[3, 1],
|
|
228
|
-
[6, 1],
|
|
229
|
-
[7, 0],
|
|
230
|
-
[7, 2],
|
|
231
|
-
[9, 2],
|
|
232
|
-
[9, 2],
|
|
233
|
-
[9, 2],
|
|
234
|
-
[9, 2],
|
|
235
|
-
[9, 2],
|
|
236
|
-
[9, 3],
|
|
237
|
-
[9, 2],
|
|
238
|
-
[9, 3],
|
|
239
|
-
[9, 2],
|
|
240
|
-
[9, 2],
|
|
241
|
-
[9, 1],
|
|
242
|
-
[17, 3],
|
|
243
|
-
[25, 3],
|
|
244
|
-
[25, 1],
|
|
245
|
-
[13, 1],
|
|
246
|
-
[13, 2],
|
|
247
|
-
[13, 1],
|
|
248
|
-
[29, 1],
|
|
249
|
-
[29, 3],
|
|
250
|
-
[30, 3],
|
|
251
|
-
[32, 3],
|
|
252
|
-
[32, 1],
|
|
253
|
-
[15, 1],
|
|
254
|
-
[15, 2],
|
|
255
|
-
[15, 1],
|
|
256
|
-
[33, 3],
|
|
257
|
-
[4, 1],
|
|
258
|
-
[4, 1],
|
|
259
|
-
[4, 1],
|
|
260
|
-
[11, 1],
|
|
261
|
-
[11, 1],
|
|
262
|
-
[11, 1],
|
|
263
|
-
[37, 1],
|
|
264
|
-
[37, 2],
|
|
265
|
-
[40, 1],
|
|
266
|
-
[40, 1],
|
|
267
|
-
[40, 1],
|
|
268
|
-
[40, 1],
|
|
269
|
-
[40, 1],
|
|
270
|
-
[40, 1],
|
|
271
|
-
[40, 1],
|
|
272
|
-
[40, 1],
|
|
273
|
-
[40, 1],
|
|
274
|
-
[40, 1]
|
|
275
|
-
],
|
|
276
|
-
performAction: /* @__PURE__ */ n(function(h, y, g, u, C, o, at) {
|
|
277
|
-
var x = o.length - 1;
|
|
278
|
-
switch (C) {
|
|
279
|
-
case 5:
|
|
280
|
-
u.setOrientation(o[x]);
|
|
281
|
-
break;
|
|
282
|
-
case 9:
|
|
283
|
-
u.setDiagramTitle(o[x].text.trim());
|
|
284
|
-
break;
|
|
285
|
-
case 12:
|
|
286
|
-
u.setLineData({
|
|
287
|
-
text: "",
|
|
288
|
-
type: "text"
|
|
289
|
-
}, o[x]);
|
|
290
|
-
break;
|
|
291
|
-
case 13:
|
|
292
|
-
u.setLineData(o[x - 1], o[x]);
|
|
293
|
-
break;
|
|
294
|
-
case 14:
|
|
295
|
-
u.setBarData({
|
|
296
|
-
text: "",
|
|
297
|
-
type: "text"
|
|
298
|
-
}, o[x]);
|
|
299
|
-
break;
|
|
300
|
-
case 15:
|
|
301
|
-
u.setBarData(o[x - 1], o[x]);
|
|
302
|
-
break;
|
|
303
|
-
case 16:
|
|
304
|
-
this.$ = o[x].trim(), u.setAccTitle(this.$);
|
|
305
|
-
break;
|
|
306
|
-
case 17:
|
|
307
|
-
case 18:
|
|
308
|
-
this.$ = o[x].trim(), u.setAccDescription(this.$);
|
|
309
|
-
break;
|
|
310
|
-
case 19:
|
|
311
|
-
this.$ = o[x - 1];
|
|
312
|
-
break;
|
|
313
|
-
case 20:
|
|
314
|
-
this.$ = [Number(o[x - 2]), ...o[x]];
|
|
315
|
-
break;
|
|
316
|
-
case 21:
|
|
317
|
-
this.$ = [Number(o[x])];
|
|
318
|
-
break;
|
|
319
|
-
case 22:
|
|
320
|
-
u.setXAxisTitle(o[x]);
|
|
321
|
-
break;
|
|
322
|
-
case 23:
|
|
323
|
-
u.setXAxisTitle(o[x - 1]);
|
|
324
|
-
break;
|
|
325
|
-
case 24:
|
|
326
|
-
u.setXAxisTitle({
|
|
327
|
-
type: "text",
|
|
328
|
-
text: ""
|
|
329
|
-
});
|
|
330
|
-
break;
|
|
331
|
-
case 25:
|
|
332
|
-
u.setXAxisBand(o[x]);
|
|
333
|
-
break;
|
|
334
|
-
case 26:
|
|
335
|
-
u.setXAxisRangeData(Number(o[x - 2]), Number(o[x]));
|
|
336
|
-
break;
|
|
337
|
-
case 27:
|
|
338
|
-
this.$ = o[x - 1];
|
|
339
|
-
break;
|
|
340
|
-
case 28:
|
|
341
|
-
this.$ = [o[x - 2], ...o[x]];
|
|
342
|
-
break;
|
|
343
|
-
case 29:
|
|
344
|
-
this.$ = [o[x]];
|
|
345
|
-
break;
|
|
346
|
-
case 30:
|
|
347
|
-
u.setYAxisTitle(o[x]);
|
|
348
|
-
break;
|
|
349
|
-
case 31:
|
|
350
|
-
u.setYAxisTitle(o[x - 1]);
|
|
351
|
-
break;
|
|
352
|
-
case 32:
|
|
353
|
-
u.setYAxisTitle({
|
|
354
|
-
type: "text",
|
|
355
|
-
text: ""
|
|
356
|
-
});
|
|
357
|
-
break;
|
|
358
|
-
case 33:
|
|
359
|
-
u.setYAxisRangeData(Number(o[x - 2]), Number(o[x]));
|
|
360
|
-
break;
|
|
361
|
-
case 37:
|
|
362
|
-
this.$ = {
|
|
363
|
-
text: o[x],
|
|
364
|
-
type: "text"
|
|
365
|
-
};
|
|
366
|
-
break;
|
|
367
|
-
case 38:
|
|
368
|
-
this.$ = {
|
|
369
|
-
text: o[x],
|
|
370
|
-
type: "text"
|
|
371
|
-
};
|
|
372
|
-
break;
|
|
373
|
-
case 39:
|
|
374
|
-
this.$ = {
|
|
375
|
-
text: o[x],
|
|
376
|
-
type: "markdown"
|
|
377
|
-
};
|
|
378
|
-
break;
|
|
379
|
-
case 40:
|
|
380
|
-
this.$ = o[x];
|
|
381
|
-
break;
|
|
382
|
-
case 41:
|
|
383
|
-
this.$ = o[x - 1] + "" + o[x];
|
|
384
|
-
break;
|
|
385
|
-
}
|
|
386
|
-
}, "anonymous"),
|
|
387
|
-
table: [
|
|
388
|
-
e(t, i, {
|
|
389
|
-
3: 1,
|
|
390
|
-
4: 2,
|
|
391
|
-
7: 4,
|
|
392
|
-
5: s,
|
|
393
|
-
34: a,
|
|
394
|
-
35: l,
|
|
395
|
-
36: c
|
|
396
|
-
}),
|
|
397
|
-
{ 1: [3] },
|
|
398
|
-
e(t, i, {
|
|
399
|
-
4: 2,
|
|
400
|
-
7: 4,
|
|
401
|
-
3: 8,
|
|
402
|
-
5: s,
|
|
403
|
-
34: a,
|
|
404
|
-
35: l,
|
|
405
|
-
36: c
|
|
406
|
-
}),
|
|
407
|
-
e(t, i, {
|
|
408
|
-
4: 2,
|
|
409
|
-
7: 4,
|
|
410
|
-
6: 9,
|
|
411
|
-
3: 10,
|
|
412
|
-
5: s,
|
|
413
|
-
8: [1, 11],
|
|
414
|
-
34: a,
|
|
415
|
-
35: l,
|
|
416
|
-
36: c
|
|
417
|
-
}),
|
|
418
|
-
{
|
|
419
|
-
1: [2, 4],
|
|
420
|
-
9: 12,
|
|
421
|
-
10: [1, 13],
|
|
422
|
-
12: [1, 14],
|
|
423
|
-
14: [1, 15],
|
|
424
|
-
16: [1, 16],
|
|
425
|
-
18: [1, 17],
|
|
426
|
-
19: [1, 18],
|
|
427
|
-
21: [1, 19],
|
|
428
|
-
23: [1, 20]
|
|
429
|
-
},
|
|
430
|
-
e(p, [2, 34]),
|
|
431
|
-
e(p, [2, 35]),
|
|
432
|
-
e(p, [2, 36]),
|
|
433
|
-
{ 1: [2, 1] },
|
|
434
|
-
e(t, i, {
|
|
435
|
-
4: 2,
|
|
436
|
-
7: 4,
|
|
437
|
-
3: 21,
|
|
438
|
-
5: s,
|
|
439
|
-
34: a,
|
|
440
|
-
35: l,
|
|
441
|
-
36: c
|
|
442
|
-
}),
|
|
443
|
-
{ 1: [2, 3] },
|
|
444
|
-
e(p, [2, 5]),
|
|
445
|
-
e(t, [2, 7], {
|
|
446
|
-
4: 22,
|
|
447
|
-
34: a,
|
|
448
|
-
35: l,
|
|
449
|
-
36: c
|
|
450
|
-
}),
|
|
451
|
-
{
|
|
452
|
-
11: 23,
|
|
453
|
-
37: 24,
|
|
454
|
-
38: d,
|
|
455
|
-
39: R,
|
|
456
|
-
40: 27,
|
|
457
|
-
41: v,
|
|
458
|
-
42: S,
|
|
459
|
-
43: m,
|
|
460
|
-
44: M,
|
|
461
|
-
45: P,
|
|
462
|
-
46: E,
|
|
463
|
-
47: I,
|
|
464
|
-
48: f,
|
|
465
|
-
49: D,
|
|
466
|
-
50: r
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
11: 39,
|
|
470
|
-
13: 38,
|
|
471
|
-
24: z,
|
|
472
|
-
27: F,
|
|
473
|
-
29: 40,
|
|
474
|
-
30: 41,
|
|
475
|
-
37: 24,
|
|
476
|
-
38: d,
|
|
477
|
-
39: R,
|
|
478
|
-
40: 27,
|
|
479
|
-
41: v,
|
|
480
|
-
42: S,
|
|
481
|
-
43: m,
|
|
482
|
-
44: M,
|
|
483
|
-
45: P,
|
|
484
|
-
46: E,
|
|
485
|
-
47: I,
|
|
486
|
-
48: f,
|
|
487
|
-
49: D,
|
|
488
|
-
50: r
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
11: 45,
|
|
492
|
-
15: 44,
|
|
493
|
-
27: H,
|
|
494
|
-
33: 46,
|
|
495
|
-
37: 24,
|
|
496
|
-
38: d,
|
|
497
|
-
39: R,
|
|
498
|
-
40: 27,
|
|
499
|
-
41: v,
|
|
500
|
-
42: S,
|
|
501
|
-
43: m,
|
|
502
|
-
44: M,
|
|
503
|
-
45: P,
|
|
504
|
-
46: E,
|
|
505
|
-
47: I,
|
|
506
|
-
48: f,
|
|
507
|
-
49: D,
|
|
508
|
-
50: r
|
|
509
|
-
},
|
|
510
|
-
{
|
|
511
|
-
11: 49,
|
|
512
|
-
17: 48,
|
|
513
|
-
24: X,
|
|
514
|
-
37: 24,
|
|
515
|
-
38: d,
|
|
516
|
-
39: R,
|
|
517
|
-
40: 27,
|
|
518
|
-
41: v,
|
|
519
|
-
42: S,
|
|
520
|
-
43: m,
|
|
521
|
-
44: M,
|
|
522
|
-
45: P,
|
|
523
|
-
46: E,
|
|
524
|
-
47: I,
|
|
525
|
-
48: f,
|
|
526
|
-
49: D,
|
|
527
|
-
50: r
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
11: 52,
|
|
531
|
-
17: 51,
|
|
532
|
-
24: X,
|
|
533
|
-
37: 24,
|
|
534
|
-
38: d,
|
|
535
|
-
39: R,
|
|
536
|
-
40: 27,
|
|
537
|
-
41: v,
|
|
538
|
-
42: S,
|
|
539
|
-
43: m,
|
|
540
|
-
44: M,
|
|
541
|
-
45: P,
|
|
542
|
-
46: E,
|
|
543
|
-
47: I,
|
|
544
|
-
48: f,
|
|
545
|
-
49: D,
|
|
546
|
-
50: r
|
|
547
|
-
},
|
|
548
|
-
{ 20: [1, 53] },
|
|
549
|
-
{ 22: [1, 54] },
|
|
550
|
-
e(A, [2, 18]),
|
|
551
|
-
{ 1: [2, 2] },
|
|
552
|
-
e(A, [2, 8]),
|
|
553
|
-
e(A, [2, 9]),
|
|
554
|
-
e(k, [2, 37], {
|
|
555
|
-
40: 55,
|
|
556
|
-
41: v,
|
|
557
|
-
42: S,
|
|
558
|
-
43: m,
|
|
559
|
-
44: M,
|
|
560
|
-
45: P,
|
|
561
|
-
46: E,
|
|
562
|
-
47: I,
|
|
563
|
-
48: f,
|
|
564
|
-
49: D,
|
|
565
|
-
50: r
|
|
566
|
-
}),
|
|
567
|
-
e(k, [2, 38]),
|
|
568
|
-
e(k, [2, 39]),
|
|
569
|
-
e(T, [2, 40]),
|
|
570
|
-
e(T, [2, 42]),
|
|
571
|
-
e(T, [2, 43]),
|
|
572
|
-
e(T, [2, 44]),
|
|
573
|
-
e(T, [2, 45]),
|
|
574
|
-
e(T, [2, 46]),
|
|
575
|
-
e(T, [2, 47]),
|
|
576
|
-
e(T, [2, 48]),
|
|
577
|
-
e(T, [2, 49]),
|
|
578
|
-
e(T, [2, 50]),
|
|
579
|
-
e(T, [2, 51]),
|
|
580
|
-
e(A, [2, 10]),
|
|
581
|
-
e(A, [2, 22], {
|
|
582
|
-
30: 41,
|
|
583
|
-
29: 56,
|
|
584
|
-
24: z,
|
|
585
|
-
27: F
|
|
586
|
-
}),
|
|
587
|
-
e(A, [2, 24]),
|
|
588
|
-
e(A, [2, 25]),
|
|
589
|
-
{ 31: [1, 57] },
|
|
590
|
-
{
|
|
591
|
-
11: 59,
|
|
592
|
-
32: 58,
|
|
593
|
-
37: 24,
|
|
594
|
-
38: d,
|
|
595
|
-
39: R,
|
|
596
|
-
40: 27,
|
|
597
|
-
41: v,
|
|
598
|
-
42: S,
|
|
599
|
-
43: m,
|
|
600
|
-
44: M,
|
|
601
|
-
45: P,
|
|
602
|
-
46: E,
|
|
603
|
-
47: I,
|
|
604
|
-
48: f,
|
|
605
|
-
49: D,
|
|
606
|
-
50: r
|
|
607
|
-
},
|
|
608
|
-
e(A, [2, 11]),
|
|
609
|
-
e(A, [2, 30], {
|
|
610
|
-
33: 60,
|
|
611
|
-
27: H
|
|
612
|
-
}),
|
|
613
|
-
e(A, [2, 32]),
|
|
614
|
-
{ 31: [1, 61] },
|
|
615
|
-
e(A, [2, 12]),
|
|
616
|
-
{
|
|
617
|
-
17: 62,
|
|
618
|
-
24: X
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
25: 63,
|
|
622
|
-
27: w
|
|
623
|
-
},
|
|
624
|
-
e(A, [2, 14]),
|
|
625
|
-
{
|
|
626
|
-
17: 65,
|
|
627
|
-
24: X
|
|
628
|
-
},
|
|
629
|
-
e(A, [2, 16]),
|
|
630
|
-
e(A, [2, 17]),
|
|
631
|
-
e(T, [2, 41]),
|
|
632
|
-
e(A, [2, 23]),
|
|
633
|
-
{ 27: [1, 66] },
|
|
634
|
-
{ 26: [1, 67] },
|
|
635
|
-
{
|
|
636
|
-
26: [2, 29],
|
|
637
|
-
28: [1, 68]
|
|
638
|
-
},
|
|
639
|
-
e(A, [2, 31]),
|
|
640
|
-
{ 27: [1, 69] },
|
|
641
|
-
e(A, [2, 13]),
|
|
642
|
-
{ 26: [1, 70] },
|
|
643
|
-
{
|
|
644
|
-
26: [2, 21],
|
|
645
|
-
28: [1, 71]
|
|
646
|
-
},
|
|
647
|
-
e(A, [2, 15]),
|
|
648
|
-
e(A, [2, 26]),
|
|
649
|
-
e(A, [2, 27]),
|
|
650
|
-
{
|
|
651
|
-
11: 59,
|
|
652
|
-
32: 72,
|
|
653
|
-
37: 24,
|
|
654
|
-
38: d,
|
|
655
|
-
39: R,
|
|
656
|
-
40: 27,
|
|
657
|
-
41: v,
|
|
658
|
-
42: S,
|
|
659
|
-
43: m,
|
|
660
|
-
44: M,
|
|
661
|
-
45: P,
|
|
662
|
-
46: E,
|
|
663
|
-
47: I,
|
|
664
|
-
48: f,
|
|
665
|
-
49: D,
|
|
666
|
-
50: r
|
|
667
|
-
},
|
|
668
|
-
e(A, [2, 33]),
|
|
669
|
-
e(A, [2, 19]),
|
|
670
|
-
{
|
|
671
|
-
25: 73,
|
|
672
|
-
27: w
|
|
673
|
-
},
|
|
674
|
-
{ 26: [2, 28] },
|
|
675
|
-
{ 26: [2, 20] }
|
|
676
|
-
],
|
|
677
|
-
defaultActions: {
|
|
678
|
-
8: [2, 1],
|
|
679
|
-
10: [2, 3],
|
|
680
|
-
21: [2, 2],
|
|
681
|
-
72: [2, 28],
|
|
682
|
-
73: [2, 20]
|
|
683
|
-
},
|
|
684
|
-
parseError: /* @__PURE__ */ n(function(h, y) {
|
|
685
|
-
if (y.recoverable) this.trace(h);
|
|
686
|
-
else {
|
|
687
|
-
var g = Error(h);
|
|
688
|
-
throw g.hash = y, g;
|
|
689
|
-
}
|
|
690
|
-
}, "parseError"),
|
|
691
|
-
parse: /* @__PURE__ */ n(function(h) {
|
|
692
|
-
var y = this, g = [0], u = [], C = [null], o = [], at = this.table, x = "", rt = 0, vt = 0, oi = 0, ri = 2, Et = 1, li = o.slice.call(arguments, 1), L = Object.create(this.lexer), V = { yy: {} };
|
|
693
|
-
for (var xt in this.yy) Object.prototype.hasOwnProperty.call(this.yy, xt) && (V.yy[xt] = this.yy[xt]);
|
|
694
|
-
L.setInput(h, V.yy), V.yy.lexer = L, V.yy.parser = this, L.yylloc === void 0 && (L.yylloc = {});
|
|
695
|
-
var dt = L.yylloc;
|
|
696
|
-
o.push(dt);
|
|
697
|
-
var ci = L.options && L.options.ranges;
|
|
698
|
-
typeof V.yy.parseError == "function" ? this.parseError = V.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
699
|
-
function ui(W) {
|
|
700
|
-
g.length -= 2 * W, C.length -= W, o.length -= W;
|
|
701
|
-
}
|
|
702
|
-
n(ui, "popStack");
|
|
703
|
-
function Mt() {
|
|
704
|
-
var W = u.pop() || L.lex() || Et;
|
|
705
|
-
return typeof W != "number" && (W instanceof Array && (u = W, W = u.pop()), W = y.symbols_[W] || W), W;
|
|
706
|
-
}
|
|
707
|
-
n(Mt, "lex");
|
|
708
|
-
for (var B, pt, Y, O, ft, U = {}, lt, N, It, ct; ; ) {
|
|
709
|
-
if (Y = g[g.length - 1], this.defaultActions[Y] ? O = this.defaultActions[Y] : (B ??= Mt(), O = at[Y] && at[Y][B]), O === void 0 || !O.length || !O[0]) {
|
|
710
|
-
var $t = "";
|
|
711
|
-
for (lt in ct = [], at[Y]) this.terminals_[lt] && lt > ri && ct.push("'" + this.terminals_[lt] + "'");
|
|
712
|
-
$t = L.showPosition ? "Parse error on line " + (rt + 1) + `:
|
|
713
|
-
` + L.showPosition() + `
|
|
714
|
-
Expecting ` + ct.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : "Parse error on line " + (rt + 1) + ": Unexpected " + (B == Et ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError($t, {
|
|
715
|
-
text: L.match,
|
|
716
|
-
token: this.terminals_[B] || B,
|
|
717
|
-
line: L.yylineno,
|
|
718
|
-
loc: dt,
|
|
719
|
-
expected: ct
|
|
720
|
-
});
|
|
721
|
-
}
|
|
722
|
-
if (O[0] instanceof Array && O.length > 1) throw Error("Parse Error: multiple actions possible at state: " + Y + ", token: " + B);
|
|
723
|
-
switch (O[0]) {
|
|
724
|
-
case 1:
|
|
725
|
-
g.push(B), C.push(L.yytext), o.push(L.yylloc), g.push(O[1]), B = null, pt ? (B = pt, pt = null) : (vt = L.yyleng, x = L.yytext, rt = L.yylineno, dt = L.yylloc, oi > 0);
|
|
726
|
-
break;
|
|
727
|
-
case 2:
|
|
728
|
-
if (N = this.productions_[O[1]][1], U.$ = C[C.length - N], U._$ = {
|
|
729
|
-
first_line: o[o.length - (N || 1)].first_line,
|
|
730
|
-
last_line: o[o.length - 1].last_line,
|
|
731
|
-
first_column: o[o.length - (N || 1)].first_column,
|
|
732
|
-
last_column: o[o.length - 1].last_column
|
|
733
|
-
}, ci && (U._$.range = [o[o.length - (N || 1)].range[0], o[o.length - 1].range[1]]), ft = this.performAction.apply(U, [
|
|
734
|
-
x,
|
|
735
|
-
vt,
|
|
736
|
-
rt,
|
|
737
|
-
V.yy,
|
|
738
|
-
O[1],
|
|
739
|
-
C,
|
|
740
|
-
o
|
|
741
|
-
].concat(li)), ft !== void 0) return ft;
|
|
742
|
-
N && (g = g.slice(0, -1 * N * 2), C = C.slice(0, -1 * N), o = o.slice(0, -1 * N)), g.push(this.productions_[O[1]][0]), C.push(U.$), o.push(U._$), It = at[g[g.length - 2]][g[g.length - 1]], g.push(It);
|
|
743
|
-
break;
|
|
744
|
-
case 3:
|
|
745
|
-
return !0;
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
return !0;
|
|
749
|
-
}, "parse")
|
|
750
|
-
};
|
|
751
|
-
_.lexer = /* @__PURE__ */ (function() {
|
|
752
|
-
return {
|
|
753
|
-
EOF: 1,
|
|
754
|
-
parseError: /* @__PURE__ */ n(function(h, y) {
|
|
755
|
-
if (this.yy.parser) this.yy.parser.parseError(h, y);
|
|
756
|
-
else throw Error(h);
|
|
757
|
-
}, "parseError"),
|
|
758
|
-
setInput: /* @__PURE__ */ n(function(h, y) {
|
|
759
|
-
return this.yy = y || this.yy || {}, this._input = h, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
760
|
-
first_line: 1,
|
|
761
|
-
first_column: 0,
|
|
762
|
-
last_line: 1,
|
|
763
|
-
last_column: 0
|
|
764
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
765
|
-
}, "setInput"),
|
|
766
|
-
input: /* @__PURE__ */ n(function() {
|
|
767
|
-
var h = this._input[0];
|
|
768
|
-
return this.yytext += h, this.yyleng++, this.offset++, this.match += h, this.matched += h, h.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), h;
|
|
769
|
-
}, "input"),
|
|
770
|
-
unput: /* @__PURE__ */ n(function(h) {
|
|
771
|
-
var y = h.length, g = h.split(/(?:\r\n?|\n)/g);
|
|
772
|
-
this._input = h + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - y), this.offset -= y;
|
|
773
|
-
var u = this.match.split(/(?:\r\n?|\n)/g);
|
|
774
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), g.length - 1 && (this.yylineno -= g.length - 1);
|
|
775
|
-
var C = this.yylloc.range;
|
|
776
|
-
return this.yylloc = {
|
|
777
|
-
first_line: this.yylloc.first_line,
|
|
778
|
-
last_line: this.yylineno + 1,
|
|
779
|
-
first_column: this.yylloc.first_column,
|
|
780
|
-
last_column: g ? (g.length === u.length ? this.yylloc.first_column : 0) + u[u.length - g.length].length - g[0].length : this.yylloc.first_column - y
|
|
781
|
-
}, this.options.ranges && (this.yylloc.range = [C[0], C[0] + this.yyleng - y]), this.yyleng = this.yytext.length, this;
|
|
782
|
-
}, "unput"),
|
|
783
|
-
more: /* @__PURE__ */ n(function() {
|
|
784
|
-
return this._more = !0, this;
|
|
785
|
-
}, "more"),
|
|
786
|
-
reject: /* @__PURE__ */ n(function() {
|
|
787
|
-
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
788
|
-
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
789
|
-
` + this.showPosition(), {
|
|
790
|
-
text: "",
|
|
791
|
-
token: null,
|
|
792
|
-
line: this.yylineno
|
|
793
|
-
});
|
|
794
|
-
return this;
|
|
795
|
-
}, "reject"),
|
|
796
|
-
less: /* @__PURE__ */ n(function(h) {
|
|
797
|
-
this.unput(this.match.slice(h));
|
|
798
|
-
}, "less"),
|
|
799
|
-
pastInput: /* @__PURE__ */ n(function() {
|
|
800
|
-
var h = this.matched.substr(0, this.matched.length - this.match.length);
|
|
801
|
-
return (h.length > 20 ? "..." : "") + h.substr(-20).replace(/\n/g, "");
|
|
802
|
-
}, "pastInput"),
|
|
803
|
-
upcomingInput: /* @__PURE__ */ n(function() {
|
|
804
|
-
var h = this.match;
|
|
805
|
-
return h.length < 20 && (h += this._input.substr(0, 20 - h.length)), (h.substr(0, 20) + (h.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
806
|
-
}, "upcomingInput"),
|
|
807
|
-
showPosition: /* @__PURE__ */ n(function() {
|
|
808
|
-
var h = this.pastInput(), y = Array(h.length + 1).join("-");
|
|
809
|
-
return h + this.upcomingInput() + `
|
|
810
|
-
` + y + "^";
|
|
811
|
-
}, "showPosition"),
|
|
812
|
-
test_match: /* @__PURE__ */ n(function(h, y) {
|
|
813
|
-
var g, u, C;
|
|
814
|
-
if (this.options.backtrack_lexer && (C = {
|
|
815
|
-
yylineno: this.yylineno,
|
|
816
|
-
yylloc: {
|
|
817
|
-
first_line: this.yylloc.first_line,
|
|
818
|
-
last_line: this.last_line,
|
|
819
|
-
first_column: this.yylloc.first_column,
|
|
820
|
-
last_column: this.yylloc.last_column
|
|
821
|
-
},
|
|
822
|
-
yytext: this.yytext,
|
|
823
|
-
match: this.match,
|
|
824
|
-
matches: this.matches,
|
|
825
|
-
matched: this.matched,
|
|
826
|
-
yyleng: this.yyleng,
|
|
827
|
-
offset: this.offset,
|
|
828
|
-
_more: this._more,
|
|
829
|
-
_input: this._input,
|
|
830
|
-
yy: this.yy,
|
|
831
|
-
conditionStack: this.conditionStack.slice(0),
|
|
832
|
-
done: this.done
|
|
833
|
-
}, this.options.ranges && (C.yylloc.range = this.yylloc.range.slice(0))), u = h[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
|
|
834
|
-
first_line: this.yylloc.last_line,
|
|
835
|
-
last_line: this.yylineno + 1,
|
|
836
|
-
first_column: this.yylloc.last_column,
|
|
837
|
-
last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + h[0].length
|
|
838
|
-
}, this.yytext += h[0], this.match += h[0], this.matches = h, 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(h[0].length), this.matched += h[0], g = this.performAction.call(this, this.yy, this, y, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g) return g;
|
|
839
|
-
if (this._backtrack) {
|
|
840
|
-
for (var o in C) this[o] = C[o];
|
|
841
|
-
return !1;
|
|
842
|
-
}
|
|
843
|
-
return !1;
|
|
844
|
-
}, "test_match"),
|
|
845
|
-
next: /* @__PURE__ */ n(function() {
|
|
846
|
-
if (this.done) return this.EOF;
|
|
847
|
-
this._input || (this.done = !0);
|
|
848
|
-
var h, y, g, u;
|
|
849
|
-
this._more || (this.yytext = "", this.match = "");
|
|
850
|
-
for (var C = this._currentRules(), o = 0; o < C.length; o++) if (g = this._input.match(this.rules[C[o]]), g && (!y || g[0].length > y[0].length)) {
|
|
851
|
-
if (y = g, u = o, this.options.backtrack_lexer) {
|
|
852
|
-
if (h = this.test_match(g, C[o]), h !== !1) return h;
|
|
853
|
-
if (this._backtrack) {
|
|
854
|
-
y = !1;
|
|
855
|
-
continue;
|
|
856
|
-
} else return !1;
|
|
857
|
-
} else if (!this.options.flex) break;
|
|
858
|
-
}
|
|
859
|
-
return y ? (h = this.test_match(y, C[u]), h === !1 ? !1 : h) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
860
|
-
` + this.showPosition(), {
|
|
861
|
-
text: "",
|
|
862
|
-
token: null,
|
|
863
|
-
line: this.yylineno
|
|
864
|
-
});
|
|
865
|
-
}, "next"),
|
|
866
|
-
lex: /* @__PURE__ */ n(function() {
|
|
867
|
-
return this.next() || this.lex();
|
|
868
|
-
}, "lex"),
|
|
869
|
-
begin: /* @__PURE__ */ n(function(h) {
|
|
870
|
-
this.conditionStack.push(h);
|
|
871
|
-
}, "begin"),
|
|
872
|
-
popState: /* @__PURE__ */ n(function() {
|
|
873
|
-
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
874
|
-
}, "popState"),
|
|
875
|
-
_currentRules: /* @__PURE__ */ n(function() {
|
|
876
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
877
|
-
}, "_currentRules"),
|
|
878
|
-
topState: /* @__PURE__ */ n(function(h) {
|
|
879
|
-
return h = this.conditionStack.length - 1 - Math.abs(h || 0), h >= 0 ? this.conditionStack[h] : "INITIAL";
|
|
880
|
-
}, "topState"),
|
|
881
|
-
pushState: /* @__PURE__ */ n(function(h) {
|
|
882
|
-
this.begin(h);
|
|
883
|
-
}, "pushState"),
|
|
884
|
-
stateStackSize: /* @__PURE__ */ n(function() {
|
|
885
|
-
return this.conditionStack.length;
|
|
886
|
-
}, "stateStackSize"),
|
|
887
|
-
options: { "case-insensitive": !0 },
|
|
888
|
-
performAction: /* @__PURE__ */ n(function(h, y, g, u) {
|
|
889
|
-
switch (g) {
|
|
890
|
-
case 0:
|
|
891
|
-
break;
|
|
892
|
-
case 1:
|
|
893
|
-
break;
|
|
894
|
-
case 2:
|
|
895
|
-
return this.popState(), 34;
|
|
896
|
-
case 3:
|
|
897
|
-
return this.popState(), 34;
|
|
898
|
-
case 4:
|
|
899
|
-
return 34;
|
|
900
|
-
case 5:
|
|
901
|
-
break;
|
|
902
|
-
case 6:
|
|
903
|
-
return 10;
|
|
904
|
-
case 7:
|
|
905
|
-
return this.pushState("acc_title"), 19;
|
|
906
|
-
case 8:
|
|
907
|
-
return this.popState(), "acc_title_value";
|
|
908
|
-
case 9:
|
|
909
|
-
return this.pushState("acc_descr"), 21;
|
|
910
|
-
case 10:
|
|
911
|
-
return this.popState(), "acc_descr_value";
|
|
912
|
-
case 11:
|
|
913
|
-
this.pushState("acc_descr_multiline");
|
|
914
|
-
break;
|
|
915
|
-
case 12:
|
|
916
|
-
this.popState();
|
|
917
|
-
break;
|
|
918
|
-
case 13:
|
|
919
|
-
return "acc_descr_multiline_value";
|
|
920
|
-
case 14:
|
|
921
|
-
return 5;
|
|
922
|
-
case 15:
|
|
923
|
-
return 5;
|
|
924
|
-
case 16:
|
|
925
|
-
return 8;
|
|
926
|
-
case 17:
|
|
927
|
-
return this.pushState("axis_data"), "X_AXIS";
|
|
928
|
-
case 18:
|
|
929
|
-
return this.pushState("axis_data"), "Y_AXIS";
|
|
930
|
-
case 19:
|
|
931
|
-
return this.pushState("axis_band_data"), 24;
|
|
932
|
-
case 20:
|
|
933
|
-
return 31;
|
|
934
|
-
case 21:
|
|
935
|
-
return this.pushState("data"), 16;
|
|
936
|
-
case 22:
|
|
937
|
-
return this.pushState("data"), 18;
|
|
938
|
-
case 23:
|
|
939
|
-
return this.pushState("data_inner"), 24;
|
|
940
|
-
case 24:
|
|
941
|
-
return 27;
|
|
942
|
-
case 25:
|
|
943
|
-
return this.popState(), 26;
|
|
944
|
-
case 26:
|
|
945
|
-
this.popState();
|
|
946
|
-
break;
|
|
947
|
-
case 27:
|
|
948
|
-
this.pushState("string");
|
|
949
|
-
break;
|
|
950
|
-
case 28:
|
|
951
|
-
this.popState();
|
|
952
|
-
break;
|
|
953
|
-
case 29:
|
|
954
|
-
return "STR";
|
|
955
|
-
case 30:
|
|
956
|
-
return 24;
|
|
957
|
-
case 31:
|
|
958
|
-
return 26;
|
|
959
|
-
case 32:
|
|
960
|
-
return 43;
|
|
961
|
-
case 33:
|
|
962
|
-
return "COLON";
|
|
963
|
-
case 34:
|
|
964
|
-
return 44;
|
|
965
|
-
case 35:
|
|
966
|
-
return 28;
|
|
967
|
-
case 36:
|
|
968
|
-
return 45;
|
|
969
|
-
case 37:
|
|
970
|
-
return 46;
|
|
971
|
-
case 38:
|
|
972
|
-
return 48;
|
|
973
|
-
case 39:
|
|
974
|
-
return 50;
|
|
975
|
-
case 40:
|
|
976
|
-
return 47;
|
|
977
|
-
case 41:
|
|
978
|
-
return 41;
|
|
979
|
-
case 42:
|
|
980
|
-
return 49;
|
|
981
|
-
case 43:
|
|
982
|
-
return 42;
|
|
983
|
-
case 44:
|
|
984
|
-
break;
|
|
985
|
-
case 45:
|
|
986
|
-
return 35;
|
|
987
|
-
case 46:
|
|
988
|
-
return 36;
|
|
989
|
-
}
|
|
990
|
-
}, "anonymous"),
|
|
991
|
-
rules: [
|
|
992
|
-
/^(?:%%(?!\{)[^\n]*)/i,
|
|
993
|
-
/^(?:[^\}]%%[^\n]*)/i,
|
|
994
|
-
/^(?:(\r?\n))/i,
|
|
995
|
-
/^(?:(\r?\n))/i,
|
|
996
|
-
/^(?:[\n\r]+)/i,
|
|
997
|
-
/^(?:%%[^\n]*)/i,
|
|
998
|
-
/^(?:title\b)/i,
|
|
999
|
-
/^(?:accTitle\s*:\s*)/i,
|
|
1000
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
1001
|
-
/^(?:accDescr\s*:\s*)/i,
|
|
1002
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
1003
|
-
/^(?:accDescr\s*\{\s*)/i,
|
|
1004
|
-
/^(?:\})/i,
|
|
1005
|
-
/^(?:[^\}]*)/i,
|
|
1006
|
-
/^(?:xychart-beta\b)/i,
|
|
1007
|
-
/^(?:xychart\b)/i,
|
|
1008
|
-
/^(?:(?:vertical|horizontal))/i,
|
|
1009
|
-
/^(?:x-axis\b)/i,
|
|
1010
|
-
/^(?:y-axis\b)/i,
|
|
1011
|
-
/^(?:\[)/i,
|
|
1012
|
-
/^(?:-->)/i,
|
|
1013
|
-
/^(?:line\b)/i,
|
|
1014
|
-
/^(?:bar\b)/i,
|
|
1015
|
-
/^(?:\[)/i,
|
|
1016
|
-
/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,
|
|
1017
|
-
/^(?:\])/i,
|
|
1018
|
-
/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,
|
|
1019
|
-
/^(?:["])/i,
|
|
1020
|
-
/^(?:["])/i,
|
|
1021
|
-
/^(?:[^"]*)/i,
|
|
1022
|
-
/^(?:\[)/i,
|
|
1023
|
-
/^(?:\])/i,
|
|
1024
|
-
/^(?:[A-Za-z]+)/i,
|
|
1025
|
-
/^(?::)/i,
|
|
1026
|
-
/^(?:\+)/i,
|
|
1027
|
-
/^(?:,)/i,
|
|
1028
|
-
/^(?:=)/i,
|
|
1029
|
-
/^(?:\*)/i,
|
|
1030
|
-
/^(?:#)/i,
|
|
1031
|
-
/^(?:[\_])/i,
|
|
1032
|
-
/^(?:\.)/i,
|
|
1033
|
-
/^(?:&)/i,
|
|
1034
|
-
/^(?:-)/i,
|
|
1035
|
-
/^(?:[0-9]+)/i,
|
|
1036
|
-
/^(?:\s+)/i,
|
|
1037
|
-
/^(?:;)/i,
|
|
1038
|
-
/^(?:$)/i
|
|
1039
|
-
],
|
|
1040
|
-
conditions: {
|
|
1041
|
-
data_inner: {
|
|
1042
|
-
rules: [
|
|
1043
|
-
0,
|
|
1044
|
-
1,
|
|
1045
|
-
4,
|
|
1046
|
-
5,
|
|
1047
|
-
6,
|
|
1048
|
-
7,
|
|
1049
|
-
9,
|
|
1050
|
-
11,
|
|
1051
|
-
14,
|
|
1052
|
-
15,
|
|
1053
|
-
16,
|
|
1054
|
-
17,
|
|
1055
|
-
18,
|
|
1056
|
-
21,
|
|
1057
|
-
22,
|
|
1058
|
-
24,
|
|
1059
|
-
25,
|
|
1060
|
-
26,
|
|
1061
|
-
27,
|
|
1062
|
-
30,
|
|
1063
|
-
31,
|
|
1064
|
-
32,
|
|
1065
|
-
33,
|
|
1066
|
-
34,
|
|
1067
|
-
35,
|
|
1068
|
-
36,
|
|
1069
|
-
37,
|
|
1070
|
-
38,
|
|
1071
|
-
39,
|
|
1072
|
-
40,
|
|
1073
|
-
41,
|
|
1074
|
-
42,
|
|
1075
|
-
43,
|
|
1076
|
-
44,
|
|
1077
|
-
45,
|
|
1078
|
-
46
|
|
1079
|
-
],
|
|
1080
|
-
inclusive: !0
|
|
1081
|
-
},
|
|
1082
|
-
data: {
|
|
1083
|
-
rules: [
|
|
1084
|
-
0,
|
|
1085
|
-
1,
|
|
1086
|
-
3,
|
|
1087
|
-
4,
|
|
1088
|
-
5,
|
|
1089
|
-
6,
|
|
1090
|
-
7,
|
|
1091
|
-
9,
|
|
1092
|
-
11,
|
|
1093
|
-
14,
|
|
1094
|
-
15,
|
|
1095
|
-
16,
|
|
1096
|
-
17,
|
|
1097
|
-
18,
|
|
1098
|
-
21,
|
|
1099
|
-
22,
|
|
1100
|
-
23,
|
|
1101
|
-
26,
|
|
1102
|
-
27,
|
|
1103
|
-
30,
|
|
1104
|
-
31,
|
|
1105
|
-
32,
|
|
1106
|
-
33,
|
|
1107
|
-
34,
|
|
1108
|
-
35,
|
|
1109
|
-
36,
|
|
1110
|
-
37,
|
|
1111
|
-
38,
|
|
1112
|
-
39,
|
|
1113
|
-
40,
|
|
1114
|
-
41,
|
|
1115
|
-
42,
|
|
1116
|
-
43,
|
|
1117
|
-
44,
|
|
1118
|
-
45,
|
|
1119
|
-
46
|
|
1120
|
-
],
|
|
1121
|
-
inclusive: !0
|
|
1122
|
-
},
|
|
1123
|
-
axis_band_data: {
|
|
1124
|
-
rules: [
|
|
1125
|
-
0,
|
|
1126
|
-
1,
|
|
1127
|
-
4,
|
|
1128
|
-
5,
|
|
1129
|
-
6,
|
|
1130
|
-
7,
|
|
1131
|
-
9,
|
|
1132
|
-
11,
|
|
1133
|
-
14,
|
|
1134
|
-
15,
|
|
1135
|
-
16,
|
|
1136
|
-
17,
|
|
1137
|
-
18,
|
|
1138
|
-
21,
|
|
1139
|
-
22,
|
|
1140
|
-
25,
|
|
1141
|
-
26,
|
|
1142
|
-
27,
|
|
1143
|
-
30,
|
|
1144
|
-
31,
|
|
1145
|
-
32,
|
|
1146
|
-
33,
|
|
1147
|
-
34,
|
|
1148
|
-
35,
|
|
1149
|
-
36,
|
|
1150
|
-
37,
|
|
1151
|
-
38,
|
|
1152
|
-
39,
|
|
1153
|
-
40,
|
|
1154
|
-
41,
|
|
1155
|
-
42,
|
|
1156
|
-
43,
|
|
1157
|
-
44,
|
|
1158
|
-
45,
|
|
1159
|
-
46
|
|
1160
|
-
],
|
|
1161
|
-
inclusive: !0
|
|
1162
|
-
},
|
|
1163
|
-
axis_data: {
|
|
1164
|
-
rules: [
|
|
1165
|
-
0,
|
|
1166
|
-
1,
|
|
1167
|
-
2,
|
|
1168
|
-
4,
|
|
1169
|
-
5,
|
|
1170
|
-
6,
|
|
1171
|
-
7,
|
|
1172
|
-
9,
|
|
1173
|
-
11,
|
|
1174
|
-
14,
|
|
1175
|
-
15,
|
|
1176
|
-
16,
|
|
1177
|
-
17,
|
|
1178
|
-
18,
|
|
1179
|
-
19,
|
|
1180
|
-
20,
|
|
1181
|
-
21,
|
|
1182
|
-
22,
|
|
1183
|
-
24,
|
|
1184
|
-
26,
|
|
1185
|
-
27,
|
|
1186
|
-
30,
|
|
1187
|
-
31,
|
|
1188
|
-
32,
|
|
1189
|
-
33,
|
|
1190
|
-
34,
|
|
1191
|
-
35,
|
|
1192
|
-
36,
|
|
1193
|
-
37,
|
|
1194
|
-
38,
|
|
1195
|
-
39,
|
|
1196
|
-
40,
|
|
1197
|
-
41,
|
|
1198
|
-
42,
|
|
1199
|
-
43,
|
|
1200
|
-
44,
|
|
1201
|
-
45,
|
|
1202
|
-
46
|
|
1203
|
-
],
|
|
1204
|
-
inclusive: !0
|
|
1205
|
-
},
|
|
1206
|
-
acc_descr_multiline: {
|
|
1207
|
-
rules: [12, 13],
|
|
1208
|
-
inclusive: !1
|
|
1209
|
-
},
|
|
1210
|
-
acc_descr: {
|
|
1211
|
-
rules: [10],
|
|
1212
|
-
inclusive: !1
|
|
1213
|
-
},
|
|
1214
|
-
acc_title: {
|
|
1215
|
-
rules: [8],
|
|
1216
|
-
inclusive: !1
|
|
1217
|
-
},
|
|
1218
|
-
title: {
|
|
1219
|
-
rules: [],
|
|
1220
|
-
inclusive: !1
|
|
1221
|
-
},
|
|
1222
|
-
md_string: {
|
|
1223
|
-
rules: [],
|
|
1224
|
-
inclusive: !1
|
|
1225
|
-
},
|
|
1226
|
-
string: {
|
|
1227
|
-
rules: [28, 29],
|
|
1228
|
-
inclusive: !1
|
|
1229
|
-
},
|
|
1230
|
-
INITIAL: {
|
|
1231
|
-
rules: [
|
|
1232
|
-
0,
|
|
1233
|
-
1,
|
|
1234
|
-
4,
|
|
1235
|
-
5,
|
|
1236
|
-
6,
|
|
1237
|
-
7,
|
|
1238
|
-
9,
|
|
1239
|
-
11,
|
|
1240
|
-
14,
|
|
1241
|
-
15,
|
|
1242
|
-
16,
|
|
1243
|
-
17,
|
|
1244
|
-
18,
|
|
1245
|
-
21,
|
|
1246
|
-
22,
|
|
1247
|
-
26,
|
|
1248
|
-
27,
|
|
1249
|
-
30,
|
|
1250
|
-
31,
|
|
1251
|
-
32,
|
|
1252
|
-
33,
|
|
1253
|
-
34,
|
|
1254
|
-
35,
|
|
1255
|
-
36,
|
|
1256
|
-
37,
|
|
1257
|
-
38,
|
|
1258
|
-
39,
|
|
1259
|
-
40,
|
|
1260
|
-
41,
|
|
1261
|
-
42,
|
|
1262
|
-
43,
|
|
1263
|
-
44,
|
|
1264
|
-
45,
|
|
1265
|
-
46
|
|
1266
|
-
],
|
|
1267
|
-
inclusive: !0
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
};
|
|
1271
|
-
})();
|
|
1272
|
-
function $() {
|
|
1273
|
-
this.yy = {};
|
|
1274
|
-
}
|
|
1275
|
-
return n($, "Parser"), $.prototype = _, _.Parser = $, new $();
|
|
1276
|
-
})();
|
|
1277
|
-
yt.parser = yt;
|
|
1278
|
-
var Ri = yt;
|
|
1279
|
-
function bt(e) {
|
|
1280
|
-
return e.type === "bar";
|
|
1281
|
-
}
|
|
1282
|
-
n(bt, "isBarPlot");
|
|
1283
|
-
function St(e) {
|
|
1284
|
-
return e.type === "band";
|
|
1285
|
-
}
|
|
1286
|
-
n(St, "isBandAxisData");
|
|
1287
|
-
function G(e) {
|
|
1288
|
-
return e.type === "linear";
|
|
1289
|
-
}
|
|
1290
|
-
n(G, "isLinearAxisData");
|
|
1291
|
-
var j, Vt = (j = class {
|
|
1292
|
-
constructor(t) {
|
|
1293
|
-
this.parentGroup = t;
|
|
1294
|
-
}
|
|
1295
|
-
getMaxDimension(t, i) {
|
|
1296
|
-
if (!this.parentGroup) return {
|
|
1297
|
-
width: t.reduce((l, c) => Math.max(c.length, l), 0) * i,
|
|
1298
|
-
height: i
|
|
1299
|
-
};
|
|
1300
|
-
let s = {
|
|
1301
|
-
width: 0,
|
|
1302
|
-
height: 0
|
|
1303
|
-
}, a = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
|
|
1304
|
-
for (let l of t) {
|
|
1305
|
-
let c = Si(a, 1, l), p = c ? c.width : l.length * i, d = c ? c.height : i;
|
|
1306
|
-
s.width = Math.max(s.width, p), s.height = Math.max(s.height, d);
|
|
1307
|
-
}
|
|
1308
|
-
return a.remove(), s;
|
|
1309
|
-
}
|
|
1310
|
-
}, n(j, "TextDimensionCalculatorWithFont"), j), Ot = 0.7, Wt = 0.2, Q, Yt = (Q = class {
|
|
1311
|
-
constructor(t, i, s, a) {
|
|
1312
|
-
this.axisConfig = t, this.title = i, this.textDimensionCalculator = s, this.axisThemeConfig = a, this.boundingRect = {
|
|
1313
|
-
x: 0,
|
|
1314
|
-
y: 0,
|
|
1315
|
-
width: 0,
|
|
1316
|
-
height: 0
|
|
1317
|
-
}, this.axisPosition = "left", this.showTitle = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = {
|
|
1318
|
-
x: 0,
|
|
1319
|
-
y: 0,
|
|
1320
|
-
width: 0,
|
|
1321
|
-
height: 0
|
|
1322
|
-
}, this.axisPosition = "left";
|
|
1323
|
-
}
|
|
1324
|
-
setRange(t) {
|
|
1325
|
-
this.range = t, this.axisPosition === "left" || this.axisPosition === "right" ? this.boundingRect.height = t[1] - t[0] : this.boundingRect.width = t[1] - t[0], this.recalculateScale();
|
|
1326
|
-
}
|
|
1327
|
-
getRange() {
|
|
1328
|
-
return [this.range[0] + this.outerPadding, this.range[1] - this.outerPadding];
|
|
1329
|
-
}
|
|
1330
|
-
setAxisPosition(t) {
|
|
1331
|
-
this.axisPosition = t, this.setRange(this.range);
|
|
1332
|
-
}
|
|
1333
|
-
getTickDistance() {
|
|
1334
|
-
let t = this.getRange();
|
|
1335
|
-
return Math.abs(t[0] - t[1]) / this.getTickValues().length;
|
|
1336
|
-
}
|
|
1337
|
-
getAxisOuterPadding() {
|
|
1338
|
-
return this.outerPadding;
|
|
1339
|
-
}
|
|
1340
|
-
getLabelDimension() {
|
|
1341
|
-
return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map((t) => t.toString()), this.axisConfig.labelFontSize);
|
|
1342
|
-
}
|
|
1343
|
-
recalculateOuterPaddingToDrawBar() {
|
|
1344
|
-
Ot * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Ot * this.getTickDistance() / 2)), this.recalculateScale();
|
|
1345
|
-
}
|
|
1346
|
-
calculateSpaceIfDrawnHorizontally(t) {
|
|
1347
|
-
let i = t.height;
|
|
1348
|
-
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
|
|
1349
|
-
let s = this.getLabelDimension(), a = Wt * t.width;
|
|
1350
|
-
this.outerPadding = Math.min(s.width / 2, a);
|
|
1351
|
-
let l = s.height + this.axisConfig.labelPadding * 2;
|
|
1352
|
-
this.labelTextHeight = s.height, l <= i && (i -= l, this.showLabel = !0);
|
|
1353
|
-
}
|
|
1354
|
-
if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
|
|
1355
|
-
let s = this.textDimensionCalculator.getMaxDimension([this.title], this.axisConfig.titleFontSize), a = s.height + this.axisConfig.titlePadding * 2;
|
|
1356
|
-
this.titleTextHeight = s.height, a <= i && (i -= a, this.showTitle = !0);
|
|
1357
|
-
}
|
|
1358
|
-
this.boundingRect.width = t.width, this.boundingRect.height = t.height - i;
|
|
1359
|
-
}
|
|
1360
|
-
calculateSpaceIfDrawnVertical(t) {
|
|
1361
|
-
let i = t.width;
|
|
1362
|
-
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
|
|
1363
|
-
let s = this.getLabelDimension(), a = Wt * t.height;
|
|
1364
|
-
this.outerPadding = Math.min(s.height / 2, a);
|
|
1365
|
-
let l = s.width + this.axisConfig.labelPadding * 2;
|
|
1366
|
-
l <= i && (i -= l, this.showLabel = !0);
|
|
1367
|
-
}
|
|
1368
|
-
if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
|
|
1369
|
-
let s = this.textDimensionCalculator.getMaxDimension([this.title], this.axisConfig.titleFontSize), a = s.height + this.axisConfig.titlePadding * 2;
|
|
1370
|
-
this.titleTextHeight = s.height, a <= i && (i -= a, this.showTitle = !0);
|
|
1371
|
-
}
|
|
1372
|
-
this.boundingRect.width = t.width - i, this.boundingRect.height = t.height;
|
|
1373
|
-
}
|
|
1374
|
-
calculateSpace(t) {
|
|
1375
|
-
return this.axisPosition === "left" || this.axisPosition === "right" ? this.calculateSpaceIfDrawnVertical(t) : this.calculateSpaceIfDrawnHorizontally(t), this.recalculateScale(), {
|
|
1376
|
-
width: this.boundingRect.width,
|
|
1377
|
-
height: this.boundingRect.height
|
|
1378
|
-
};
|
|
1379
|
-
}
|
|
1380
|
-
setBoundingBoxXY(t) {
|
|
1381
|
-
this.boundingRect.x = t.x, this.boundingRect.y = t.y;
|
|
1382
|
-
}
|
|
1383
|
-
getDrawableElementsForLeftAxis() {
|
|
1384
|
-
let t = [];
|
|
1385
|
-
if (this.showAxisLine) {
|
|
1386
|
-
let i = this.boundingRect.x + this.boundingRect.width - this.axisConfig.axisLineWidth / 2;
|
|
1387
|
-
t.push({
|
|
1388
|
-
type: "path",
|
|
1389
|
-
groupTexts: ["left-axis", "axisl-line"],
|
|
1390
|
-
data: [{
|
|
1391
|
-
path: `M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y + this.boundingRect.height} `,
|
|
1392
|
-
strokeFill: this.axisThemeConfig.axisLineColor,
|
|
1393
|
-
strokeWidth: this.axisConfig.axisLineWidth
|
|
1394
|
-
}]
|
|
1395
|
-
});
|
|
1396
|
-
}
|
|
1397
|
-
if (this.showLabel && t.push({
|
|
1398
|
-
type: "text",
|
|
1399
|
-
groupTexts: ["left-axis", "label"],
|
|
1400
|
-
data: this.getTickValues().map((i) => ({
|
|
1401
|
-
text: i.toString(),
|
|
1402
|
-
x: this.boundingRect.x + this.boundingRect.width - (this.showLabel ? this.axisConfig.labelPadding : 0) - (this.showTick ? this.axisConfig.tickLength : 0) - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
|
|
1403
|
-
y: this.getScaleValue(i),
|
|
1404
|
-
fill: this.axisThemeConfig.labelColor,
|
|
1405
|
-
fontSize: this.axisConfig.labelFontSize,
|
|
1406
|
-
rotation: 0,
|
|
1407
|
-
verticalPos: "middle",
|
|
1408
|
-
horizontalPos: "right"
|
|
1409
|
-
}))
|
|
1410
|
-
}), this.showTick) {
|
|
1411
|
-
let i = this.boundingRect.x + this.boundingRect.width - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
|
|
1412
|
-
t.push({
|
|
1413
|
-
type: "path",
|
|
1414
|
-
groupTexts: ["left-axis", "ticks"],
|
|
1415
|
-
data: this.getTickValues().map((s) => ({
|
|
1416
|
-
path: `M ${i},${this.getScaleValue(s)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(s)}`,
|
|
1417
|
-
strokeFill: this.axisThemeConfig.tickColor,
|
|
1418
|
-
strokeWidth: this.axisConfig.tickWidth
|
|
1419
|
-
}))
|
|
1420
|
-
});
|
|
1421
|
-
}
|
|
1422
|
-
return this.showTitle && t.push({
|
|
1423
|
-
type: "text",
|
|
1424
|
-
groupTexts: ["left-axis", "title"],
|
|
1425
|
-
data: [{
|
|
1426
|
-
text: this.title,
|
|
1427
|
-
x: this.boundingRect.x + this.axisConfig.titlePadding,
|
|
1428
|
-
y: this.boundingRect.y + this.boundingRect.height / 2,
|
|
1429
|
-
fill: this.axisThemeConfig.titleColor,
|
|
1430
|
-
fontSize: this.axisConfig.titleFontSize,
|
|
1431
|
-
rotation: 270,
|
|
1432
|
-
verticalPos: "top",
|
|
1433
|
-
horizontalPos: "center"
|
|
1434
|
-
}]
|
|
1435
|
-
}), t;
|
|
1436
|
-
}
|
|
1437
|
-
getDrawableElementsForBottomAxis() {
|
|
1438
|
-
let t = [];
|
|
1439
|
-
if (this.showAxisLine) {
|
|
1440
|
-
let i = this.boundingRect.y + this.axisConfig.axisLineWidth / 2;
|
|
1441
|
-
t.push({
|
|
1442
|
-
type: "path",
|
|
1443
|
-
groupTexts: ["bottom-axis", "axis-line"],
|
|
1444
|
-
data: [{
|
|
1445
|
-
path: `M ${this.boundingRect.x},${i} L ${this.boundingRect.x + this.boundingRect.width},${i}`,
|
|
1446
|
-
strokeFill: this.axisThemeConfig.axisLineColor,
|
|
1447
|
-
strokeWidth: this.axisConfig.axisLineWidth
|
|
1448
|
-
}]
|
|
1449
|
-
});
|
|
1450
|
-
}
|
|
1451
|
-
if (this.showLabel && t.push({
|
|
1452
|
-
type: "text",
|
|
1453
|
-
groupTexts: ["bottom-axis", "label"],
|
|
1454
|
-
data: this.getTickValues().map((i) => ({
|
|
1455
|
-
text: i.toString(),
|
|
1456
|
-
x: this.getScaleValue(i),
|
|
1457
|
-
y: this.boundingRect.y + this.axisConfig.labelPadding + (this.showTick ? this.axisConfig.tickLength : 0) + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
|
|
1458
|
-
fill: this.axisThemeConfig.labelColor,
|
|
1459
|
-
fontSize: this.axisConfig.labelFontSize,
|
|
1460
|
-
rotation: 0,
|
|
1461
|
-
verticalPos: "top",
|
|
1462
|
-
horizontalPos: "center"
|
|
1463
|
-
}))
|
|
1464
|
-
}), this.showTick) {
|
|
1465
|
-
let i = this.boundingRect.y + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
|
|
1466
|
-
t.push({
|
|
1467
|
-
type: "path",
|
|
1468
|
-
groupTexts: ["bottom-axis", "ticks"],
|
|
1469
|
-
data: this.getTickValues().map((s) => ({
|
|
1470
|
-
path: `M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i + this.axisConfig.tickLength}`,
|
|
1471
|
-
strokeFill: this.axisThemeConfig.tickColor,
|
|
1472
|
-
strokeWidth: this.axisConfig.tickWidth
|
|
1473
|
-
}))
|
|
1474
|
-
});
|
|
1475
|
-
}
|
|
1476
|
-
return this.showTitle && t.push({
|
|
1477
|
-
type: "text",
|
|
1478
|
-
groupTexts: ["bottom-axis", "title"],
|
|
1479
|
-
data: [{
|
|
1480
|
-
text: this.title,
|
|
1481
|
-
x: this.range[0] + (this.range[1] - this.range[0]) / 2,
|
|
1482
|
-
y: this.boundingRect.y + this.boundingRect.height - this.axisConfig.titlePadding - this.titleTextHeight,
|
|
1483
|
-
fill: this.axisThemeConfig.titleColor,
|
|
1484
|
-
fontSize: this.axisConfig.titleFontSize,
|
|
1485
|
-
rotation: 0,
|
|
1486
|
-
verticalPos: "top",
|
|
1487
|
-
horizontalPos: "center"
|
|
1488
|
-
}]
|
|
1489
|
-
}), t;
|
|
1490
|
-
}
|
|
1491
|
-
getDrawableElementsForTopAxis() {
|
|
1492
|
-
let t = [];
|
|
1493
|
-
if (this.showAxisLine) {
|
|
1494
|
-
let i = this.boundingRect.y + this.boundingRect.height - this.axisConfig.axisLineWidth / 2;
|
|
1495
|
-
t.push({
|
|
1496
|
-
type: "path",
|
|
1497
|
-
groupTexts: ["top-axis", "axis-line"],
|
|
1498
|
-
data: [{
|
|
1499
|
-
path: `M ${this.boundingRect.x},${i} L ${this.boundingRect.x + this.boundingRect.width},${i}`,
|
|
1500
|
-
strokeFill: this.axisThemeConfig.axisLineColor,
|
|
1501
|
-
strokeWidth: this.axisConfig.axisLineWidth
|
|
1502
|
-
}]
|
|
1503
|
-
});
|
|
1504
|
-
}
|
|
1505
|
-
if (this.showLabel && t.push({
|
|
1506
|
-
type: "text",
|
|
1507
|
-
groupTexts: ["top-axis", "label"],
|
|
1508
|
-
data: this.getTickValues().map((i) => ({
|
|
1509
|
-
text: i.toString(),
|
|
1510
|
-
x: this.getScaleValue(i),
|
|
1511
|
-
y: this.boundingRect.y + (this.showTitle ? this.titleTextHeight + this.axisConfig.titlePadding * 2 : 0) + this.axisConfig.labelPadding,
|
|
1512
|
-
fill: this.axisThemeConfig.labelColor,
|
|
1513
|
-
fontSize: this.axisConfig.labelFontSize,
|
|
1514
|
-
rotation: 0,
|
|
1515
|
-
verticalPos: "top",
|
|
1516
|
-
horizontalPos: "center"
|
|
1517
|
-
}))
|
|
1518
|
-
}), this.showTick) {
|
|
1519
|
-
let i = this.boundingRect.y;
|
|
1520
|
-
t.push({
|
|
1521
|
-
type: "path",
|
|
1522
|
-
groupTexts: ["top-axis", "ticks"],
|
|
1523
|
-
data: this.getTickValues().map((s) => ({
|
|
1524
|
-
path: `M ${this.getScaleValue(s)},${i + this.boundingRect.height - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)} L ${this.getScaleValue(s)},${i + this.boundingRect.height - this.axisConfig.tickLength - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)}`,
|
|
1525
|
-
strokeFill: this.axisThemeConfig.tickColor,
|
|
1526
|
-
strokeWidth: this.axisConfig.tickWidth
|
|
1527
|
-
}))
|
|
1528
|
-
});
|
|
1529
|
-
}
|
|
1530
|
-
return this.showTitle && t.push({
|
|
1531
|
-
type: "text",
|
|
1532
|
-
groupTexts: ["top-axis", "title"],
|
|
1533
|
-
data: [{
|
|
1534
|
-
text: this.title,
|
|
1535
|
-
x: this.boundingRect.x + this.boundingRect.width / 2,
|
|
1536
|
-
y: this.boundingRect.y + this.axisConfig.titlePadding,
|
|
1537
|
-
fill: this.axisThemeConfig.titleColor,
|
|
1538
|
-
fontSize: this.axisConfig.titleFontSize,
|
|
1539
|
-
rotation: 0,
|
|
1540
|
-
verticalPos: "top",
|
|
1541
|
-
horizontalPos: "center"
|
|
1542
|
-
}]
|
|
1543
|
-
}), t;
|
|
1544
|
-
}
|
|
1545
|
-
getDrawableElements() {
|
|
1546
|
-
if (this.axisPosition === "left") return this.getDrawableElementsForLeftAxis();
|
|
1547
|
-
if (this.axisPosition === "right") throw Error("Drawing of right axis is not implemented");
|
|
1548
|
-
return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
|
|
1549
|
-
}
|
|
1550
|
-
}, n(Q, "BaseAxis"), Q), K, Di = (K = class extends Yt {
|
|
1551
|
-
constructor(t, i, s, a, l) {
|
|
1552
|
-
super(t, a, l, i), this.categories = s, this.scale = mt().domain(this.categories).range(this.getRange());
|
|
1553
|
-
}
|
|
1554
|
-
setRange(t) {
|
|
1555
|
-
super.setRange(t);
|
|
1556
|
-
}
|
|
1557
|
-
recalculateScale() {
|
|
1558
|
-
this.scale = mt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Xt.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
|
|
1559
|
-
}
|
|
1560
|
-
getTickValues() {
|
|
1561
|
-
return this.categories;
|
|
1562
|
-
}
|
|
1563
|
-
getScaleValue(t) {
|
|
1564
|
-
return this.scale(t) ?? this.getRange()[0];
|
|
1565
|
-
}
|
|
1566
|
-
}, n(K, "BandAxis"), K), q, Li = (q = class extends Yt {
|
|
1567
|
-
constructor(t, i, s, a, l) {
|
|
1568
|
-
super(t, a, l, i), this.domain = s, this.scale = zt().domain(this.domain).range(this.getRange());
|
|
1569
|
-
}
|
|
1570
|
-
getTickValues() {
|
|
1571
|
-
return this.scale.ticks();
|
|
1572
|
-
}
|
|
1573
|
-
recalculateScale() {
|
|
1574
|
-
let t = [...this.domain];
|
|
1575
|
-
this.axisPosition === "left" && t.reverse(), this.scale = zt().domain(t).range(this.getRange());
|
|
1576
|
-
}
|
|
1577
|
-
getScaleValue(t) {
|
|
1578
|
-
return this.scale(t);
|
|
1579
|
-
}
|
|
1580
|
-
}, n(q, "LinearAxis"), q);
|
|
1581
|
-
function At(e, t, i, s) {
|
|
1582
|
-
let a = new Vt(s);
|
|
1583
|
-
return St(e) ? new Di(t, i, e.categories, e.title, a) : new Li(t, i, [e.min, e.max], e.title, a);
|
|
1584
|
-
}
|
|
1585
|
-
n(At, "getAxis");
|
|
1586
|
-
var J, Pi = (J = class {
|
|
1587
|
-
constructor(t, i, s, a) {
|
|
1588
|
-
this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = s, this.chartThemeConfig = a, this.boundingRect = {
|
|
1589
|
-
x: 0,
|
|
1590
|
-
y: 0,
|
|
1591
|
-
width: 0,
|
|
1592
|
-
height: 0
|
|
1593
|
-
}, this.showChartTitle = !1;
|
|
1594
|
-
}
|
|
1595
|
-
setBoundingBoxXY(t) {
|
|
1596
|
-
this.boundingRect.x = t.x, this.boundingRect.y = t.y;
|
|
1597
|
-
}
|
|
1598
|
-
calculateSpace(t) {
|
|
1599
|
-
let i = this.textDimensionCalculator.getMaxDimension([this.chartData.title], this.chartConfig.titleFontSize), s = Math.max(i.width, t.width), a = i.height + 2 * this.chartConfig.titlePadding;
|
|
1600
|
-
return i.width <= s && i.height <= a && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = s, this.boundingRect.height = a, this.showChartTitle = !0), {
|
|
1601
|
-
width: this.boundingRect.width,
|
|
1602
|
-
height: this.boundingRect.height
|
|
1603
|
-
};
|
|
1604
|
-
}
|
|
1605
|
-
getDrawableElements() {
|
|
1606
|
-
let t = [];
|
|
1607
|
-
return this.showChartTitle && t.push({
|
|
1608
|
-
groupTexts: ["chart-title"],
|
|
1609
|
-
type: "text",
|
|
1610
|
-
data: [{
|
|
1611
|
-
fontSize: this.chartConfig.titleFontSize,
|
|
1612
|
-
text: this.chartData.title,
|
|
1613
|
-
verticalPos: "middle",
|
|
1614
|
-
horizontalPos: "center",
|
|
1615
|
-
x: this.boundingRect.x + this.boundingRect.width / 2,
|
|
1616
|
-
y: this.boundingRect.y + this.boundingRect.height / 2,
|
|
1617
|
-
fill: this.chartThemeConfig.titleColor,
|
|
1618
|
-
rotation: 0
|
|
1619
|
-
}]
|
|
1620
|
-
}), t;
|
|
1621
|
-
}
|
|
1622
|
-
}, n(J, "ChartTitle"), J);
|
|
1623
|
-
function Ht(e, t, i, s) {
|
|
1624
|
-
return new Pi(new Vt(s), e, t, i);
|
|
1625
|
-
}
|
|
1626
|
-
n(Ht, "getChartTitleComponent");
|
|
1627
|
-
var Z, vi = (Z = class {
|
|
1628
|
-
constructor(t, i, s, a, l) {
|
|
1629
|
-
this.plotData = t, this.xAxis = i, this.yAxis = s, this.orientation = a, this.plotIndex = l;
|
|
1630
|
-
}
|
|
1631
|
-
getDrawableElement() {
|
|
1632
|
-
let t = this.plotData.data.map((s) => [this.xAxis.getScaleValue(s[0]), this.yAxis.getScaleValue(s[1])]), i;
|
|
1633
|
-
return i = this.orientation === "horizontal" ? Bt().y((s) => s[0]).x((s) => s[1])(t) : Bt().x((s) => s[0]).y((s) => s[1])(t), i ? [{
|
|
1634
|
-
groupTexts: ["plot", `line-plot-${this.plotIndex}`],
|
|
1635
|
-
type: "path",
|
|
1636
|
-
data: [{
|
|
1637
|
-
path: i,
|
|
1638
|
-
strokeFill: this.plotData.strokeFill,
|
|
1639
|
-
strokeWidth: this.plotData.strokeWidth
|
|
1640
|
-
}]
|
|
1641
|
-
}] : [];
|
|
1642
|
-
}
|
|
1643
|
-
}, n(Z, "LinePlot"), Z), tt, Ei = (tt = class {
|
|
1644
|
-
constructor(t, i, s, a, l, c) {
|
|
1645
|
-
this.barData = t, this.boundingRect = i, this.xAxis = s, this.yAxis = a, this.orientation = l, this.plotIndex = c;
|
|
1646
|
-
}
|
|
1647
|
-
getDrawableElement() {
|
|
1648
|
-
let t = this.barData.data.map((a) => [this.xAxis.getScaleValue(a[0]), this.yAxis.getScaleValue(a[1])]), i = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * 0.95, s = i / 2;
|
|
1649
|
-
return this.orientation === "horizontal" ? [{
|
|
1650
|
-
groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
|
|
1651
|
-
type: "rect",
|
|
1652
|
-
data: t.map((a) => ({
|
|
1653
|
-
x: this.boundingRect.x,
|
|
1654
|
-
y: a[0] - s,
|
|
1655
|
-
height: i,
|
|
1656
|
-
width: a[1] - this.boundingRect.x,
|
|
1657
|
-
fill: this.barData.fill,
|
|
1658
|
-
strokeWidth: 0,
|
|
1659
|
-
strokeFill: this.barData.fill
|
|
1660
|
-
}))
|
|
1661
|
-
}] : [{
|
|
1662
|
-
groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
|
|
1663
|
-
type: "rect",
|
|
1664
|
-
data: t.map((a) => ({
|
|
1665
|
-
x: a[0] - s,
|
|
1666
|
-
y: a[1],
|
|
1667
|
-
width: i,
|
|
1668
|
-
height: this.boundingRect.y + this.boundingRect.height - a[1],
|
|
1669
|
-
fill: this.barData.fill,
|
|
1670
|
-
strokeWidth: 0,
|
|
1671
|
-
strokeFill: this.barData.fill
|
|
1672
|
-
}))
|
|
1673
|
-
}];
|
|
1674
|
-
}
|
|
1675
|
-
}, n(tt, "BarPlot"), tt), it, Mi = (it = class {
|
|
1676
|
-
constructor(t, i, s) {
|
|
1677
|
-
this.chartConfig = t, this.chartData = i, this.chartThemeConfig = s, this.boundingRect = {
|
|
1678
|
-
x: 0,
|
|
1679
|
-
y: 0,
|
|
1680
|
-
width: 0,
|
|
1681
|
-
height: 0
|
|
1682
|
-
};
|
|
1683
|
-
}
|
|
1684
|
-
setAxes(t, i) {
|
|
1685
|
-
this.xAxis = t, this.yAxis = i;
|
|
1686
|
-
}
|
|
1687
|
-
setBoundingBoxXY(t) {
|
|
1688
|
-
this.boundingRect.x = t.x, this.boundingRect.y = t.y;
|
|
1689
|
-
}
|
|
1690
|
-
calculateSpace(t) {
|
|
1691
|
-
return this.boundingRect.width = t.width, this.boundingRect.height = t.height, {
|
|
1692
|
-
width: this.boundingRect.width,
|
|
1693
|
-
height: this.boundingRect.height
|
|
1694
|
-
};
|
|
1695
|
-
}
|
|
1696
|
-
getDrawableElements() {
|
|
1697
|
-
if (!(this.xAxis && this.yAxis)) throw Error("Axes must be passed to render Plots");
|
|
1698
|
-
let t = [];
|
|
1699
|
-
for (let [i, s] of this.chartData.plots.entries()) switch (s.type) {
|
|
1700
|
-
case "line":
|
|
1701
|
-
{
|
|
1702
|
-
let a = new vi(s, this.xAxis, this.yAxis, this.chartConfig.chartOrientation, i);
|
|
1703
|
-
t.push(...a.getDrawableElement());
|
|
1704
|
-
}
|
|
1705
|
-
break;
|
|
1706
|
-
case "bar":
|
|
1707
|
-
{
|
|
1708
|
-
let a = new Ei(s, this.boundingRect, this.xAxis, this.yAxis, this.chartConfig.chartOrientation, i);
|
|
1709
|
-
t.push(...a.getDrawableElement());
|
|
1710
|
-
}
|
|
1711
|
-
break;
|
|
1712
|
-
}
|
|
1713
|
-
return t;
|
|
1714
|
-
}
|
|
1715
|
-
}, n(it, "BasePlot"), it);
|
|
1716
|
-
function Ut(e, t, i) {
|
|
1717
|
-
return new Mi(e, t, i);
|
|
1718
|
-
}
|
|
1719
|
-
n(Ut, "getPlotComponent");
|
|
1720
|
-
var et, Ii = (et = class {
|
|
1721
|
-
constructor(t, i, s, a) {
|
|
1722
|
-
this.chartConfig = t, this.chartData = i, this.componentStore = {
|
|
1723
|
-
title: Ht(t, i, s, a),
|
|
1724
|
-
plot: Ut(t, i, s),
|
|
1725
|
-
xAxis: At(i.xAxis, t.xAxis, {
|
|
1726
|
-
titleColor: s.xAxisTitleColor,
|
|
1727
|
-
labelColor: s.xAxisLabelColor,
|
|
1728
|
-
tickColor: s.xAxisTickColor,
|
|
1729
|
-
axisLineColor: s.xAxisLineColor
|
|
1730
|
-
}, a),
|
|
1731
|
-
yAxis: At(i.yAxis, t.yAxis, {
|
|
1732
|
-
titleColor: s.yAxisTitleColor,
|
|
1733
|
-
labelColor: s.yAxisLabelColor,
|
|
1734
|
-
tickColor: s.yAxisTickColor,
|
|
1735
|
-
axisLineColor: s.yAxisLineColor
|
|
1736
|
-
}, a)
|
|
1737
|
-
};
|
|
1738
|
-
}
|
|
1739
|
-
calculateVerticalSpace() {
|
|
1740
|
-
let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, a = 0, l = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), c = Math.floor(i * this.chartConfig.plotReservedSpacePercent / 100), p = this.componentStore.plot.calculateSpace({
|
|
1741
|
-
width: l,
|
|
1742
|
-
height: c
|
|
1743
|
-
});
|
|
1744
|
-
t -= p.width, i -= p.height, p = this.componentStore.title.calculateSpace({
|
|
1745
|
-
width: this.chartConfig.width,
|
|
1746
|
-
height: i
|
|
1747
|
-
}), a = p.height, i -= p.height, this.componentStore.xAxis.setAxisPosition("bottom"), p = this.componentStore.xAxis.calculateSpace({
|
|
1748
|
-
width: t,
|
|
1749
|
-
height: i
|
|
1750
|
-
}), i -= p.height, this.componentStore.yAxis.setAxisPosition("left"), p = this.componentStore.yAxis.calculateSpace({
|
|
1751
|
-
width: t,
|
|
1752
|
-
height: i
|
|
1753
|
-
}), s = p.width, t -= p.width, t > 0 && (l += t, t = 0), i > 0 && (c += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1754
|
-
width: l,
|
|
1755
|
-
height: c
|
|
1756
|
-
}), this.componentStore.plot.setBoundingBoxXY({
|
|
1757
|
-
x: s,
|
|
1758
|
-
y: a
|
|
1759
|
-
}), this.componentStore.xAxis.setRange([s, s + l]), this.componentStore.xAxis.setBoundingBoxXY({
|
|
1760
|
-
x: s,
|
|
1761
|
-
y: a + c
|
|
1762
|
-
}), this.componentStore.yAxis.setRange([a, a + c]), this.componentStore.yAxis.setBoundingBoxXY({
|
|
1763
|
-
x: 0,
|
|
1764
|
-
y: a
|
|
1765
|
-
}), this.chartData.plots.some((d) => bt(d)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1766
|
-
}
|
|
1767
|
-
calculateHorizontalSpace() {
|
|
1768
|
-
let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, a = 0, l = 0, c = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), p = Math.floor(i * this.chartConfig.plotReservedSpacePercent / 100), d = this.componentStore.plot.calculateSpace({
|
|
1769
|
-
width: c,
|
|
1770
|
-
height: p
|
|
1771
|
-
});
|
|
1772
|
-
t -= d.width, i -= d.height, d = this.componentStore.title.calculateSpace({
|
|
1773
|
-
width: this.chartConfig.width,
|
|
1774
|
-
height: i
|
|
1775
|
-
}), s = d.height, i -= d.height, this.componentStore.xAxis.setAxisPosition("left"), d = this.componentStore.xAxis.calculateSpace({
|
|
1776
|
-
width: t,
|
|
1777
|
-
height: i
|
|
1778
|
-
}), t -= d.width, a = d.width, this.componentStore.yAxis.setAxisPosition("top"), d = this.componentStore.yAxis.calculateSpace({
|
|
1779
|
-
width: t,
|
|
1780
|
-
height: i
|
|
1781
|
-
}), i -= d.height, l = s + d.height, t > 0 && (c += t, t = 0), i > 0 && (p += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1782
|
-
width: c,
|
|
1783
|
-
height: p
|
|
1784
|
-
}), this.componentStore.plot.setBoundingBoxXY({
|
|
1785
|
-
x: a,
|
|
1786
|
-
y: l
|
|
1787
|
-
}), this.componentStore.yAxis.setRange([a, a + c]), this.componentStore.yAxis.setBoundingBoxXY({
|
|
1788
|
-
x: a,
|
|
1789
|
-
y: s
|
|
1790
|
-
}), this.componentStore.xAxis.setRange([l, l + p]), this.componentStore.xAxis.setBoundingBoxXY({
|
|
1791
|
-
x: 0,
|
|
1792
|
-
y: l
|
|
1793
|
-
}), this.chartData.plots.some((R) => bt(R)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1794
|
-
}
|
|
1795
|
-
calculateSpace() {
|
|
1796
|
-
this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
|
|
1797
|
-
}
|
|
1798
|
-
getDrawableElement() {
|
|
1799
|
-
this.calculateSpace();
|
|
1800
|
-
let t = [];
|
|
1801
|
-
this.componentStore.plot.setAxes(this.componentStore.xAxis, this.componentStore.yAxis);
|
|
1802
|
-
for (let i of Object.values(this.componentStore)) t.push(...i.getDrawableElements());
|
|
1803
|
-
return t;
|
|
1804
|
-
}
|
|
1805
|
-
}, n(et, "Orchestrator"), et), st, $i = (st = class {
|
|
1806
|
-
static build(t, i, s, a) {
|
|
1807
|
-
return new Ii(t, i, s, a).getDrawableElement();
|
|
1808
|
-
}
|
|
1809
|
-
}, n(st, "XYChartBuilder"), st), nt = 0, Gt, ht = Tt(), ot = _t(), b = Rt(), wt = ot.plotColorPalette.split(",").map((e) => e.trim()), ut = !1, kt = !1;
|
|
1810
|
-
function _t() {
|
|
1811
|
-
let e = wi(), t = Ct();
|
|
1812
|
-
return Nt(e.xyChart, t.themeVariables.xyChart);
|
|
1813
|
-
}
|
|
1814
|
-
n(_t, "getChartDefaultThemeConfig");
|
|
1815
|
-
function Tt() {
|
|
1816
|
-
let e = Ct();
|
|
1817
|
-
return Nt(Ai.xyChart, e.xyChart);
|
|
1818
|
-
}
|
|
1819
|
-
n(Tt, "getChartDefaultConfig");
|
|
1820
|
-
function Rt() {
|
|
1821
|
-
return {
|
|
1822
|
-
yAxis: {
|
|
1823
|
-
type: "linear",
|
|
1824
|
-
title: "",
|
|
1825
|
-
min: 1 / 0,
|
|
1826
|
-
max: -1 / 0
|
|
1827
|
-
},
|
|
1828
|
-
xAxis: {
|
|
1829
|
-
type: "band",
|
|
1830
|
-
title: "",
|
|
1831
|
-
categories: []
|
|
1832
|
-
},
|
|
1833
|
-
title: "",
|
|
1834
|
-
plots: []
|
|
1835
|
-
};
|
|
1836
|
-
}
|
|
1837
|
-
n(Rt, "getChartDefaultData");
|
|
1838
|
-
function gt(e) {
|
|
1839
|
-
let t = Ct();
|
|
1840
|
-
return Ci(e.trim(), t);
|
|
1841
|
-
}
|
|
1842
|
-
n(gt, "textSanitizer");
|
|
1843
|
-
function jt(e) {
|
|
1844
|
-
Gt = e;
|
|
1845
|
-
}
|
|
1846
|
-
n(jt, "setTmpSVGG");
|
|
1847
|
-
function Qt(e) {
|
|
1848
|
-
e === "horizontal" ? ht.chartOrientation = "horizontal" : ht.chartOrientation = "vertical";
|
|
1849
|
-
}
|
|
1850
|
-
n(Qt, "setOrientation");
|
|
1851
|
-
function Kt(e) {
|
|
1852
|
-
b.xAxis.title = gt(e.text);
|
|
1853
|
-
}
|
|
1854
|
-
n(Kt, "setXAxisTitle");
|
|
1855
|
-
function Dt(e, t) {
|
|
1856
|
-
b.xAxis = {
|
|
1857
|
-
type: "linear",
|
|
1858
|
-
title: b.xAxis.title,
|
|
1859
|
-
min: e,
|
|
1860
|
-
max: t
|
|
1861
|
-
}, ut = !0;
|
|
1862
|
-
}
|
|
1863
|
-
n(Dt, "setXAxisRangeData");
|
|
1864
|
-
function qt(e) {
|
|
1865
|
-
b.xAxis = {
|
|
1866
|
-
type: "band",
|
|
1867
|
-
title: b.xAxis.title,
|
|
1868
|
-
categories: e.map((t) => gt(t.text))
|
|
1869
|
-
}, ut = !0;
|
|
1870
|
-
}
|
|
1871
|
-
n(qt, "setXAxisBand");
|
|
1872
|
-
function Jt(e) {
|
|
1873
|
-
b.yAxis.title = gt(e.text);
|
|
1874
|
-
}
|
|
1875
|
-
n(Jt, "setYAxisTitle");
|
|
1876
|
-
function Zt(e, t) {
|
|
1877
|
-
b.yAxis = {
|
|
1878
|
-
type: "linear",
|
|
1879
|
-
title: b.yAxis.title,
|
|
1880
|
-
min: e,
|
|
1881
|
-
max: t
|
|
1882
|
-
}, kt = !0;
|
|
1883
|
-
}
|
|
1884
|
-
n(Zt, "setYAxisRangeData");
|
|
1885
|
-
function ti(e) {
|
|
1886
|
-
let t = Math.min(...e), i = Math.max(...e), s = G(b.yAxis) ? b.yAxis.min : 1 / 0, a = G(b.yAxis) ? b.yAxis.max : -1 / 0;
|
|
1887
|
-
b.yAxis = {
|
|
1888
|
-
type: "linear",
|
|
1889
|
-
title: b.yAxis.title,
|
|
1890
|
-
min: Math.min(s, t),
|
|
1891
|
-
max: Math.max(a, i)
|
|
1892
|
-
};
|
|
1893
|
-
}
|
|
1894
|
-
n(ti, "setYAxisRangeFromPlotData");
|
|
1895
|
-
function Lt(e) {
|
|
1896
|
-
let t = [];
|
|
1897
|
-
if (e.length === 0) return t;
|
|
1898
|
-
if (!ut) {
|
|
1899
|
-
let i = G(b.xAxis) ? b.xAxis.min : 1 / 0, s = G(b.xAxis) ? b.xAxis.max : -1 / 0;
|
|
1900
|
-
Dt(Math.min(i, 1), Math.max(s, e.length));
|
|
1901
|
-
}
|
|
1902
|
-
if (kt || ti(e), St(b.xAxis) && (t = b.xAxis.categories.map((i, s) => [i, e[s]])), G(b.xAxis)) {
|
|
1903
|
-
let i = b.xAxis.min, s = b.xAxis.max, a = (s - i) / (e.length - 1), l = [];
|
|
1904
|
-
for (let c = i; c <= s; c += a) l.push(`${c}`);
|
|
1905
|
-
t = l.map((c, p) => [c, e[p]]);
|
|
1906
|
-
}
|
|
1907
|
-
return t;
|
|
1908
|
-
}
|
|
1909
|
-
n(Lt, "transformDataWithoutCategory");
|
|
1910
|
-
function Pt(e) {
|
|
1911
|
-
return wt[e === 0 ? 0 : e % wt.length];
|
|
1912
|
-
}
|
|
1913
|
-
n(Pt, "getPlotColorFromPalette");
|
|
1914
|
-
function ii(e, t) {
|
|
1915
|
-
let i = Lt(t);
|
|
1916
|
-
b.plots.push({
|
|
1917
|
-
type: "line",
|
|
1918
|
-
strokeFill: Pt(nt),
|
|
1919
|
-
strokeWidth: 2,
|
|
1920
|
-
data: i
|
|
1921
|
-
}), nt++;
|
|
1922
|
-
}
|
|
1923
|
-
n(ii, "setLineData");
|
|
1924
|
-
function ei(e, t) {
|
|
1925
|
-
let i = Lt(t);
|
|
1926
|
-
b.plots.push({
|
|
1927
|
-
type: "bar",
|
|
1928
|
-
fill: Pt(nt),
|
|
1929
|
-
data: i
|
|
1930
|
-
}), nt++;
|
|
1931
|
-
}
|
|
1932
|
-
n(ei, "setBarData");
|
|
1933
|
-
function si() {
|
|
1934
|
-
if (b.plots.length === 0) throw Error("No Plot to render, please provide a plot with some data");
|
|
1935
|
-
return b.title = Ft(), $i.build(ht, b, ot, Gt);
|
|
1936
|
-
}
|
|
1937
|
-
n(si, "getDrawableElem");
|
|
1938
|
-
function ai() {
|
|
1939
|
-
return ot;
|
|
1940
|
-
}
|
|
1941
|
-
n(ai, "getChartThemeConfig");
|
|
1942
|
-
function ni() {
|
|
1943
|
-
return ht;
|
|
1944
|
-
}
|
|
1945
|
-
n(ni, "getChartConfig");
|
|
1946
|
-
function hi() {
|
|
1947
|
-
return b;
|
|
1948
|
-
}
|
|
1949
|
-
n(hi, "getXYChartData");
|
|
1950
|
-
var Fi = {
|
|
1951
|
-
parser: Ri,
|
|
1952
|
-
db: {
|
|
1953
|
-
getDrawableElem: si,
|
|
1954
|
-
clear: /* @__PURE__ */ n(function() {
|
|
1955
|
-
bi(), nt = 0, ht = Tt(), b = Rt(), ot = _t(), wt = ot.plotColorPalette.split(",").map((e) => e.trim()), ut = !1, kt = !1;
|
|
1956
|
-
}, "clear"),
|
|
1957
|
-
setAccTitle: fi,
|
|
1958
|
-
getAccTitle: pi,
|
|
1959
|
-
setDiagramTitle: di,
|
|
1960
|
-
getDiagramTitle: Ft,
|
|
1961
|
-
getAccDescription: xi,
|
|
1962
|
-
setAccDescription: gi,
|
|
1963
|
-
setOrientation: Qt,
|
|
1964
|
-
setXAxisTitle: Kt,
|
|
1965
|
-
setXAxisRangeData: Dt,
|
|
1966
|
-
setXAxisBand: qt,
|
|
1967
|
-
setYAxisTitle: Jt,
|
|
1968
|
-
setYAxisRangeData: Zt,
|
|
1969
|
-
setLineData: ii,
|
|
1970
|
-
setBarData: ei,
|
|
1971
|
-
setTmpSVGG: jt,
|
|
1972
|
-
getChartThemeConfig: ai,
|
|
1973
|
-
getChartConfig: ni,
|
|
1974
|
-
getXYChartData: hi
|
|
1975
|
-
},
|
|
1976
|
-
renderer: { draw: /* @__PURE__ */ n((e, t, i, s) => {
|
|
1977
|
-
let a = s.db, l = a.getChartThemeConfig(), c = a.getChartConfig(), p = a.getXYChartData().plots[0].data.map((f) => f[1]);
|
|
1978
|
-
function d(f) {
|
|
1979
|
-
return f === "top" ? "text-before-edge" : "middle";
|
|
1980
|
-
}
|
|
1981
|
-
n(d, "getDominantBaseLine");
|
|
1982
|
-
function R(f) {
|
|
1983
|
-
return f === "left" ? "start" : f === "right" ? "end" : "middle";
|
|
1984
|
-
}
|
|
1985
|
-
n(R, "getTextAnchor");
|
|
1986
|
-
function v(f) {
|
|
1987
|
-
return `translate(${f.x}, ${f.y}) rotate(${f.rotation || 0})`;
|
|
1988
|
-
}
|
|
1989
|
-
n(v, "getTextTransformation"), Xt.debug(`Rendering xychart chart
|
|
1990
|
-
` + e);
|
|
1991
|
-
let S = mi(t), m = S.append("g").attr("class", "main"), M = m.append("rect").attr("width", c.width).attr("height", c.height).attr("class", "background");
|
|
1992
|
-
yi(S, c.height, c.width, !0), S.attr("viewBox", `0 0 ${c.width} ${c.height}`), M.attr("fill", l.backgroundColor), a.setTmpSVGG(S.append("g").attr("class", "mermaid-tmp-group"));
|
|
1993
|
-
let P = a.getDrawableElem(), E = {};
|
|
1994
|
-
function I(f) {
|
|
1995
|
-
let D = m, r = "";
|
|
1996
|
-
for (let [z] of f.entries()) {
|
|
1997
|
-
let F = m;
|
|
1998
|
-
z > 0 && E[r] && (F = E[r]), r += f[z], D = E[r], D ||= E[r] = F.append("g").attr("class", f[z]);
|
|
1999
|
-
}
|
|
2000
|
-
return D;
|
|
2001
|
-
}
|
|
2002
|
-
n(I, "getGroup");
|
|
2003
|
-
for (let f of P) {
|
|
2004
|
-
if (f.data.length === 0) continue;
|
|
2005
|
-
let D = I(f.groupTexts);
|
|
2006
|
-
switch (f.type) {
|
|
2007
|
-
case "rect":
|
|
2008
|
-
if (D.selectAll("rect").data(f.data).enter().append("rect").attr("x", (r) => r.x).attr("y", (r) => r.y).attr("width", (r) => r.width).attr("height", (r) => r.height).attr("fill", (r) => r.fill).attr("stroke", (r) => r.strokeFill).attr("stroke-width", (r) => r.strokeWidth), c.showDataLabel) {
|
|
2009
|
-
let r = c.showDataLabelOutsideBar;
|
|
2010
|
-
if (c.chartOrientation === "horizontal") {
|
|
2011
|
-
let z = function(w, _) {
|
|
2012
|
-
let { data: $, label: h } = w;
|
|
2013
|
-
return _ * h.length * F <= $.width - H;
|
|
2014
|
-
};
|
|
2015
|
-
n(z, "fitsHorizontally");
|
|
2016
|
-
let F = 0.7, H = 10, X = f.data.map((w, _) => ({
|
|
2017
|
-
data: w,
|
|
2018
|
-
label: p[_].toString()
|
|
2019
|
-
})).filter((w) => w.data.width > 0 && w.data.height > 0), A = X.map((w) => {
|
|
2020
|
-
let { data: _ } = w, $ = _.height * 0.7;
|
|
2021
|
-
for (; !z(w, $) && $ > 0; ) --$;
|
|
2022
|
-
return $;
|
|
2023
|
-
}), k = Math.floor(Math.min(...A)), T = /* @__PURE__ */ n((w) => r ? w.data.x + w.data.width + 10 : w.data.x + w.data.width - 10, "determineLabelXPosition");
|
|
2024
|
-
D.selectAll("text").data(X).enter().append("text").attr("x", T).attr("y", (w) => w.data.y + w.data.height / 2).attr("text-anchor", r ? "start" : "end").attr("dominant-baseline", "middle").attr("fill", l.dataLabelColor).attr("font-size", `${k}px`).text((w) => w.label);
|
|
2025
|
-
} else {
|
|
2026
|
-
let z = function(k, T, w) {
|
|
2027
|
-
let { data: _, label: $ } = k, h = T * $.length * 0.7, y = _.x + _.width / 2, g = y - h / 2, u = y + h / 2, C = g >= _.x && u <= _.x + _.width, o = _.y + w + T <= _.y + _.height;
|
|
2028
|
-
return C && o;
|
|
2029
|
-
};
|
|
2030
|
-
n(z, "fitsInBar");
|
|
2031
|
-
let F = f.data.map((k, T) => ({
|
|
2032
|
-
data: k,
|
|
2033
|
-
label: p[T].toString()
|
|
2034
|
-
})).filter((k) => k.data.width > 0 && k.data.height > 0), H = F.map((k) => {
|
|
2035
|
-
let { data: T, label: w } = k, _ = T.width / (w.length * 0.7);
|
|
2036
|
-
for (; !z(k, _, 10) && _ > 0; ) --_;
|
|
2037
|
-
return _;
|
|
2038
|
-
}), X = Math.floor(Math.min(...H)), A = /* @__PURE__ */ n((k) => r ? k.data.y - 10 : k.data.y + 10, "determineLabelYPosition");
|
|
2039
|
-
D.selectAll("text").data(F).enter().append("text").attr("x", (k) => k.data.x + k.data.width / 2).attr("y", A).attr("text-anchor", "middle").attr("dominant-baseline", r ? "auto" : "hanging").attr("fill", l.dataLabelColor).attr("font-size", `${X}px`).text((k) => k.label);
|
|
2040
|
-
}
|
|
2041
|
-
}
|
|
2042
|
-
break;
|
|
2043
|
-
case "text":
|
|
2044
|
-
D.selectAll("text").data(f.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (r) => r.fill).attr("font-size", (r) => r.fontSize).attr("dominant-baseline", (r) => d(r.verticalPos)).attr("text-anchor", (r) => R(r.horizontalPos)).attr("transform", (r) => v(r)).text((r) => r.text);
|
|
2045
|
-
break;
|
|
2046
|
-
case "path":
|
|
2047
|
-
D.selectAll("path").data(f.data).enter().append("path").attr("d", (r) => r.path).attr("fill", (r) => r.fill ? r.fill : "none").attr("stroke", (r) => r.strokeFill).attr("stroke-width", (r) => r.strokeWidth);
|
|
2048
|
-
break;
|
|
2049
|
-
}
|
|
2050
|
-
}
|
|
2051
|
-
}, "draw") }
|
|
2052
|
-
};
|
|
2053
|
-
export {
|
|
2054
|
-
Fi as diagram
|
|
2055
|
-
};
|