@kong-ui-public/documentation 1.8.13 → 1.8.14-pr.4048.7a10d83bb.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 +2 -2
- package/dist/abnfDiagram-VCTEODGH-Bzbg7AHk-DFERbIEu.js +0 -92
- package/dist/arc-CKhg5DVn-BIpMje7c.js +0 -80
- package/dist/architectureDiagram-5GKGNRK7-CqHVyBRI-CLWcRmoG.js +0 -4149
- package/dist/astro-DdQ3Kp7Q-BDE5qFXd.js +0 -18
- package/dist/blockDiagram-I7D4REHJ-DWFqHR0L-D8v5LhXM.js +0 -2029
- package/dist/c-lfOsiBpu-DMPKLUI8.js +0 -4
- package/dist/c4Diagram-7LVT6UL2-DXHigzTJ-BR9440iK.js +0 -3067
- package/dist/catppuccin-latte-D9NPLB7Y-sAlQrrP2.js +0 -4
- package/dist/channel-DUDXYB-g-BsX3Acdu.js +0 -5
- package/dist/chunk-2Q5K7J3B-CQFXhYzi-C3CTUgHo.js +0 -12
- package/dist/chunk-5VM5RSS4-DF_fkndM-uFSHkP_V.js +0 -19
- package/dist/chunk-F27PBJKO-Bf2CKIqN-CUI4z39H.js +0 -65
- package/dist/chunk-IMKFNOWR-DIsz_YLV-B6u2fLNJ.js +0 -2116
- package/dist/chunk-JWPE2WC7-DI69CthA-D_FsPQj-.js +0 -8
- package/dist/chunk-POPQ4Y6H-DycI9Jzm-BWixWzlU.js +0 -24
- package/dist/chunk-SHT3W25Y-CKxDgOBI-OOdqZuVE.js +0 -4307
- package/dist/chunk-SVP7TREG-tW_qYlvV-vP5bsK2H.js +0 -500
- package/dist/chunk-TICWLB2K-CuiDrX3P-WR-FPNea.js +0 -3451
- package/dist/chunk-XXDRQBXY-CSrEKR2C-C6SaSSCC.js +0 -8
- package/dist/classDiagram-ZZMXUADV-WzcguFxl-CKKn1Tfx.js +0 -17
- package/dist/classDiagram-v2-VYDZK3BY-jdAXYY7W-CKKn1Tfx.js +0 -17
- package/dist/cose-bilkent-JH36ORCC-DbS7GVMv-bbQOsy5Y.js +0 -2256
- package/dist/csharp-RRkgh3c4-lim_vKPd.js +0 -4
- package/dist/css-BbwcBM_4-B_2PRTA_.js +0 -4
- package/dist/csv-DFU5sVkH-BPWcOTV4.js +0 -4
- package/dist/cynefin-OW5HDTMX-CmxQwqmf-D_GdoNIu.js +0 -21781
- package/dist/cynefinDiagram-5FMLGOSQ-BNb88xpJ-DfS9O7P4.js +0 -351
- package/dist/cytoscape.esm-YSf_2rtb-CoO8mT3p.js +0 -18279
- package/dist/dagre-C9xJrfGe-Di-1Ikh0.js +0 -1667
- package/dist/dagre-GXQ25YYZ-uiXfyLw2-PU-qeT6_.js +0 -429
- package/dist/defaultLocale-TbxLDlcU-BrdwcF9K.js +0 -180
- package/dist/diagram-S7CK7UJ4-g67BXvGR-Cp9bzjGj.js +0 -303
- package/dist/diagram-UQ7AKVKN-DfJJIsVs-CC7ekguS.js +0 -210
- package/dist/diagram-VSXAHHWV-DmtFfqWN-C9ZLHKzj.js +0 -439
- package/dist/diagram-VX7I27RA--gfQ90BY-QNtwG6Ck.js +0 -477
- package/dist/diagram-Z3DM3KII-Cu_rSHu0-CCCsIuz4.js +0 -127
- package/dist/diff-D_LJiFgV-DenOJuyV.js +0 -4
- package/dist/docker-DMpUQ2UE-xX8PDoIv.js +0 -4
- package/dist/documentation.es.js +0 -7
- package/dist/documentation.umd.js +0 -3715
- package/dist/ebnfDiagram-PWID7BFC-B_qfACMJ-D_Xjruh2.js +0 -109
- package/dist/erDiagram-RLTQ6QDP-Dt9efGmz-BPS1Iwl5.js +0 -2042
- package/dist/flowDiagram-HODETNUW-sAcaB3rt-Ci8x-zG0.js +0 -6
- package/dist/ganttDiagram-EL5Y4UJY-CtWGP-hX-qar4oLEq.js +0 -3098
- package/dist/git-commit--2NDNcyW-Dw9_h8sQ.js +0 -5
- package/dist/git-rebase-CbNvxADk-DAgBrkyL.js +0 -5
- package/dist/gitGraphDiagram-WWUBYQGX-B7B7IG_5-x8UcOce8.js +0 -737
- package/dist/go-BEdBk4fh-DqSXHrGo.js +0 -4
- package/dist/graphql-BMuT9GwB-BP9pcQru.js +0 -14
- package/dist/haml-D3QmTYiV-BTaBXoPr.js +0 -10
- package/dist/handlebars-C_aYHp26-CWcrQHYv.js +0 -14
- package/dist/haskell-DSSJ-2AO-BlmVjKNy.js +0 -4
- package/dist/html-derivative-DgZQ_xNe-BAs__2u-.js +0 -5
- package/dist/html-zcQqUZxh-Dg8OkMBp.js +0 -10
- package/dist/http-BGkfDG8i-lqXytFlH.js +0 -14
- package/dist/index-BaAWoj3P.js +0 -43522
- package/dist/infoDiagram-27XIBGKW-DAx9hub5-CDUrF89O.js +0 -18
- package/dist/ini-CmgEGOBJ-70PBzbbb.js +0 -4
- package/dist/init-Cgg2UTSf-BsHkAom2.js +0 -15
- package/dist/ishikawaDiagram-5VMMS53U-CnBB9iXH-2YyZ3Nxy.js +0 -729
- package/dist/java-CaG1IqbK-D6YBp1XX.js +0 -4
- package/dist/javascript--0qAxhnA-BRPKgr3C.js +0 -4
- package/dist/journeyDiagram-3NMN7TZE-B0a4pOJX-CgtsuE-Y.js +0 -909
- package/dist/json-DVwBUiza-D8uacQj0.js +0 -4
- package/dist/json5-D2Eltym1-Biib5ALh.js +0 -4
- package/dist/jsonc-BPIJyZ7u-BZEKkMok.js +0 -4
- package/dist/jsonl-BGkjXns2-BG2V-IA2.js +0 -4
- package/dist/jsx-cVAJ0Z2c-Cl0AMtmu.js +0 -4
- package/dist/kanban-definition-UXKFOSKX-BGnOZMUl-CHT2EG_7.js +0 -1029
- package/dist/katex-Be3DWdAP-BWcdC2Xb.js +0 -22287
- package/dist/kotlin-CQsNEM2o-Dy_91eL4.js +0 -4
- package/dist/latex-g3NZbvcl-tKQf8TuW.js +0 -5
- package/dist/less-9LYkHheD-tcNg8M2_.js +0 -4
- package/dist/linear-Cf872ac2-BjGvLlX5.js +0 -254
- package/dist/liquid-CG3ph2-5-wZo8nDay.js +0 -14
- package/dist/lua-BdA7_iyX-Fg4s9W4F.js +0 -5
- package/dist/make-CE9Hryyp-CrUl7LOH.js +0 -4
- package/dist/markdown-Gqx6-FHJ-Bcqt-5kX.js +0 -4
- package/dist/material-theme-darker-DL4lHZSa-DMHCIvq5.js +0 -4
- package/dist/mdc-C-RLGlI2-DzcUIqJQ.js +0 -12
- package/dist/mdx-DswfiFg4-CK6jOqmu.js +0 -4
- package/dist/mermaid-CAl3BhSL-CpQh0Vft.js +0 -4
- package/dist/mindmap-definition-YA3MSWOX-D0iYuN9C-B3uI77eT.js +0 -1026
- package/dist/nginx-CokYOiS8-DjML3dpY.js +0 -5
- package/dist/objective-c-DK-EKgyd-C809HPrX.js +0 -4
- package/dist/ordinal-CNzaYghg-B_JXdapq.js +0 -63
- package/dist/pascal-CRtegPzh-a8whuidZ.js +0 -4
- package/dist/pegDiagram-XKGWAZYB-6oG4KeYC-CG27veJ_.js +0 -104
- package/dist/perl-C45KUBhP-Q6opd9qO.js +0 -16
- package/dist/php-COzTb61D-DW91EkjY.js +0 -18
- package/dist/pieDiagram-E7YTZNPT-DsNO0m7t-CMKObJlC.js +0 -191
- package/dist/plsql-Bx7tup_v-BJoF2Vrf.js +0 -4
- package/dist/postcss-DjDdOEzv-DaHMm3XW.js +0 -4
- package/dist/powershell-BeUvHe6o-BC3uPZPS.js +0 -4
- package/dist/proto-DGLklcji-w0B_itsp.js +0 -4
- package/dist/pug-BQ5MM2xz-DMZvJUHt.js +0 -12
- package/dist/python-C_6ySqsv-D_5pfY__.js +0 -4
- package/dist/quadrantDiagram-AXDQQJYC-B6Dc7fje-C23uvcHP.js +0 -2046
- package/dist/r-CNL4a0Qi-pixge7f9.js +0 -4
- package/dist/railroadDiagram-O6MQD6OU-D8qLcD4O-B_Hr3s-n.js +0 -80
- package/dist/reg-D6txjqBF-bHAwx9Pm.js +0 -4
- package/dist/requirementDiagram-BXWQKSXE-Cx28BZaS-Bu-h1fa9.js +0 -2283
- package/dist/rst-xmthoFSf-BdN-iqJu.js +0 -20
- package/dist/ruby-CmwqiOyg-B5qGUHPy.js +0 -44
- package/dist/rust-BrRMzTsN-CaZtBt24.js +0 -4
- package/dist/sankeyDiagram-P5KCCOFB-CqEXebJJ-BrChTi-e.js +0 -948
- package/dist/sass-CL6GLiPQ-pslLeRRb.js +0 -4
- package/dist/scss-CiLZCexj-CladYQkr.js +0 -5
- package/dist/sequenceDiagram-WJ2MYXX4-Bs_1V5D1-Da6JW3KG.js +0 -4263
- package/dist/shellscript-Dfpezy65-BtH46UX7.js +0 -4
- package/dist/shellsession-CRcAC04a-BFLTslz7.js +0 -5
- package/dist/sizeCapture-INFHLROL-Bc4fS2u3-DMniWWy4.js +0 -46
- package/dist/splunk-MGILMmew-BP8P7eWt.js +0 -4
- package/dist/sql-D_W5grEC-Dcn2WLbD.js +0 -4
- package/dist/ssh-config-CFmUyPR7-BB1rrGb9.js +0 -4
- package/dist/stateDiagram-D77RDMKH-oTiwIYVV-BphZk0uR.js +0 -210
- package/dist/stateDiagram-v2-MP3YSRHH-gbAY2cmo-D78HyGx1.js +0 -17
- package/dist/style.css +0 -1
- package/dist/stylus-Kh83dApl-DAu5PNZ9.js +0 -4
- package/dist/svelte-HVIHTyhe-BdPJXyv7.js +0 -14
- package/dist/swift-B7Z-rXzN-CQtmhAMw.js +0 -4
- package/dist/swimlanes-42K2YHIH-BSXAPn2j-C7pTnVuk.js +0 -4983
- package/dist/swimlanesDiagram-VR7AAH4N-Ror_0lre-Di8OVgei.js +0 -17
- package/dist/timeline-definition-24CTP7MA-gOHmAY1H-aIgAzo7s.js +0 -1096
- package/dist/toml-CIQJnU5u-DjT9Bjqu.js +0 -4
- package/dist/tsx-DiMnnori-B-5hSr15.js +0 -4
- package/dist/twig-BXXOiPVV-CmgmU-L-.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-DFf19o_s-B0ag8pir.js +0 -4
- package/dist/v-DbYZLS97-CAPuTPjr.js +0 -4
- package/dist/vb-DRaXf86R-Bx9Rwnco.js +0 -4
- package/dist/vennDiagram-4TSXK5OY-Cr4BWMuk-BjBvyxCC.js +0 -1911
- package/dist/viml-DgaHry3T-BeYQ8dZh.js +0 -4
- package/dist/vue-DPI5F0qT-D-Ahkoja.js +0 -22
- package/dist/vue-html-D7FCsiW2-DLSUNIPr.js +0 -5
- package/dist/wardleyDiagram-VM6X3IG4-a6H91k9Q-CsH4gQQ0.js +0 -639
- package/dist/wasm-DXa1gtBd-CfuK9YWP.js +0 -4
- package/dist/wgsl-Vcm3Lg52-C2IZ7ENh.js +0 -4
- package/dist/xml-DnOpIvRK-C-akVYiK.js +0 -5
- package/dist/xsl-K_2BlT3G-D3eRZGNO.js +0 -5
- package/dist/xychartDiagram-S5SC5T6Z-7mX_nPmO-CoM4SG9q.js +0 -2218
- package/dist/yaml-BswqmnDe-X78l_Ibz.js +0 -4
|
@@ -1,2218 +0,0 @@
|
|
|
1
|
-
import { n as fi, r as mi, k as Yt, j as yi, t as bi, e as Ai, a as n, m as Ht, a2 as wi, V as Ci, $ as Si, X as _t, z as Ut, L as ki, aj as Ri, Q as _i, ak as Ti, al as Wt } from "./index-BaAWoj3P.js";
|
|
2
|
-
import { q as Xt } from "./linear-Cf872ac2-BjGvLlX5.js";
|
|
3
|
-
import { s as Di } from "./ordinal-CNzaYghg-B_JXdapq.js";
|
|
4
|
-
import { e as Li } from "./init-Cgg2UTSf-BsHkAom2.js";
|
|
5
|
-
function Pi(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, h = Array(a); ++s < a; ) h[s] = e + s * i;
|
|
8
|
-
return h;
|
|
9
|
-
}
|
|
10
|
-
function wt() {
|
|
11
|
-
var e = Di().unknown(void 0), t = e.domain, i = e.range, s = 0, a = 1, h, l, x = !1, g = 0, p = 0, R = 0.5;
|
|
12
|
-
delete e.unknown;
|
|
13
|
-
function A() {
|
|
14
|
-
var m = t().length, E = a < s, v = E ? a : s, M = E ? s : a;
|
|
15
|
-
h = (M - v) / Math.max(1, m - g + p * 2), x && (h = Math.floor(h)), v += (M - v - h * (m - g)) * R, l = h * (1 - g), x && (v = Math.round(v), l = Math.round(l));
|
|
16
|
-
var I = Pi(m).map(function(y) {
|
|
17
|
-
return v + h * y;
|
|
18
|
-
});
|
|
19
|
-
return i(E ? I.reverse() : I);
|
|
20
|
-
}
|
|
21
|
-
return e.domain = function(m) {
|
|
22
|
-
return arguments.length ? (t(m), A()) : t();
|
|
23
|
-
}, e.range = function(m) {
|
|
24
|
-
return arguments.length ? ([s, a] = m, s = +s, a = +a, A()) : [s, a];
|
|
25
|
-
}, e.rangeRound = function(m) {
|
|
26
|
-
return [s, a] = m, s = +s, a = +a, x = !0, A();
|
|
27
|
-
}, e.bandwidth = function() {
|
|
28
|
-
return l;
|
|
29
|
-
}, e.step = function() {
|
|
30
|
-
return h;
|
|
31
|
-
}, e.round = function(m) {
|
|
32
|
-
return arguments.length ? (x = !!m, A()) : x;
|
|
33
|
-
}, e.padding = function(m) {
|
|
34
|
-
return arguments.length ? (g = Math.min(1, p = +m), A()) : g;
|
|
35
|
-
}, e.paddingInner = function(m) {
|
|
36
|
-
return arguments.length ? (g = Math.min(1, m), A()) : g;
|
|
37
|
-
}, e.paddingOuter = function(m) {
|
|
38
|
-
return arguments.length ? (p = +m, A()) : p;
|
|
39
|
-
}, e.align = function(m) {
|
|
40
|
-
return arguments.length ? (R = Math.max(0, Math.min(1, m)), A()) : R;
|
|
41
|
-
}, e.copy = function() {
|
|
42
|
-
return wt(t(), [s, a]).round(x).paddingInner(g).paddingOuter(p).align(R);
|
|
43
|
-
}, Li.apply(A(), arguments);
|
|
44
|
-
}
|
|
45
|
-
var Ct = (function() {
|
|
46
|
-
var e = /* @__PURE__ */ n(function(o, w, d, u) {
|
|
47
|
-
for (d ||= {}, u = o.length; u--; d[o[u]] = w) ;
|
|
48
|
-
return d;
|
|
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], h = [1, 6], l = [1, 7], x = [
|
|
60
|
-
1,
|
|
61
|
-
5,
|
|
62
|
-
10,
|
|
63
|
-
12,
|
|
64
|
-
14,
|
|
65
|
-
16,
|
|
66
|
-
18,
|
|
67
|
-
19,
|
|
68
|
-
21,
|
|
69
|
-
23,
|
|
70
|
-
36,
|
|
71
|
-
37,
|
|
72
|
-
38
|
|
73
|
-
], g = [1, 25], p = [1, 26], R = [1, 28], A = [1, 29], m = [1, 30], E = [1, 31], v = [1, 32], M = [1, 33], I = [1, 34], y = [1, 35], L = [1, 36], c = [1, 37], z = [1, 43], W = [1, 42], G = [1, 47], X = [1, 50], C = [
|
|
74
|
-
1,
|
|
75
|
-
10,
|
|
76
|
-
12,
|
|
77
|
-
14,
|
|
78
|
-
16,
|
|
79
|
-
18,
|
|
80
|
-
19,
|
|
81
|
-
21,
|
|
82
|
-
23,
|
|
83
|
-
36,
|
|
84
|
-
37,
|
|
85
|
-
38
|
|
86
|
-
], _ = [
|
|
87
|
-
1,
|
|
88
|
-
10,
|
|
89
|
-
12,
|
|
90
|
-
14,
|
|
91
|
-
16,
|
|
92
|
-
18,
|
|
93
|
-
19,
|
|
94
|
-
21,
|
|
95
|
-
23,
|
|
96
|
-
24,
|
|
97
|
-
26,
|
|
98
|
-
28,
|
|
99
|
-
29,
|
|
100
|
-
36,
|
|
101
|
-
37,
|
|
102
|
-
38
|
|
103
|
-
], D = [
|
|
104
|
-
1,
|
|
105
|
-
10,
|
|
106
|
-
12,
|
|
107
|
-
14,
|
|
108
|
-
16,
|
|
109
|
-
18,
|
|
110
|
-
19,
|
|
111
|
-
21,
|
|
112
|
-
23,
|
|
113
|
-
24,
|
|
114
|
-
26,
|
|
115
|
-
28,
|
|
116
|
-
29,
|
|
117
|
-
36,
|
|
118
|
-
37,
|
|
119
|
-
38,
|
|
120
|
-
42,
|
|
121
|
-
43,
|
|
122
|
-
44,
|
|
123
|
-
45,
|
|
124
|
-
46,
|
|
125
|
-
47,
|
|
126
|
-
48,
|
|
127
|
-
49,
|
|
128
|
-
50,
|
|
129
|
-
51
|
|
130
|
-
], S = [1, 65], T = [26, 28], B = {
|
|
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
|
-
dataPoints: 25,
|
|
159
|
-
SQUARE_BRACES_END: 26,
|
|
160
|
-
dataPoint: 27,
|
|
161
|
-
COMMA: 28,
|
|
162
|
-
NUMBER_WITH_DECIMAL: 29,
|
|
163
|
-
STR: 30,
|
|
164
|
-
xAxisData: 31,
|
|
165
|
-
bandData: 32,
|
|
166
|
-
ARROW_DELIMITER: 33,
|
|
167
|
-
commaSeparatedTexts: 34,
|
|
168
|
-
yAxisData: 35,
|
|
169
|
-
NEWLINE: 36,
|
|
170
|
-
SEMI: 37,
|
|
171
|
-
EOF: 38,
|
|
172
|
-
alphaNum: 39,
|
|
173
|
-
MD_STR: 40,
|
|
174
|
-
alphaNumToken: 41,
|
|
175
|
-
AMP: 42,
|
|
176
|
-
NUM: 43,
|
|
177
|
-
ALPHA: 44,
|
|
178
|
-
PLUS: 45,
|
|
179
|
-
EQUALS: 46,
|
|
180
|
-
MULT: 47,
|
|
181
|
-
DOT: 48,
|
|
182
|
-
BRKT: 49,
|
|
183
|
-
MINUS: 50,
|
|
184
|
-
UNDERSCORE: 51,
|
|
185
|
-
$accept: 0,
|
|
186
|
-
$end: 1
|
|
187
|
-
},
|
|
188
|
-
terminals_: {
|
|
189
|
-
2: "error",
|
|
190
|
-
5: "XYCHART",
|
|
191
|
-
8: "CHART_ORIENTATION",
|
|
192
|
-
10: "title",
|
|
193
|
-
12: "X_AXIS",
|
|
194
|
-
14: "Y_AXIS",
|
|
195
|
-
16: "LINE",
|
|
196
|
-
18: "BAR",
|
|
197
|
-
19: "acc_title",
|
|
198
|
-
20: "acc_title_value",
|
|
199
|
-
21: "acc_descr",
|
|
200
|
-
22: "acc_descr_value",
|
|
201
|
-
23: "acc_descr_multiline_value",
|
|
202
|
-
24: "SQUARE_BRACES_START",
|
|
203
|
-
26: "SQUARE_BRACES_END",
|
|
204
|
-
28: "COMMA",
|
|
205
|
-
29: "NUMBER_WITH_DECIMAL",
|
|
206
|
-
30: "STR",
|
|
207
|
-
33: "ARROW_DELIMITER",
|
|
208
|
-
36: "NEWLINE",
|
|
209
|
-
37: "SEMI",
|
|
210
|
-
38: "EOF",
|
|
211
|
-
40: "MD_STR",
|
|
212
|
-
42: "AMP",
|
|
213
|
-
43: "NUM",
|
|
214
|
-
44: "ALPHA",
|
|
215
|
-
45: "PLUS",
|
|
216
|
-
46: "EQUALS",
|
|
217
|
-
47: "MULT",
|
|
218
|
-
48: "DOT",
|
|
219
|
-
49: "BRKT",
|
|
220
|
-
50: "MINUS",
|
|
221
|
-
51: "UNDERSCORE"
|
|
222
|
-
},
|
|
223
|
-
productions_: [
|
|
224
|
-
0,
|
|
225
|
-
[3, 2],
|
|
226
|
-
[3, 3],
|
|
227
|
-
[3, 2],
|
|
228
|
-
[3, 1],
|
|
229
|
-
[6, 1],
|
|
230
|
-
[7, 0],
|
|
231
|
-
[7, 2],
|
|
232
|
-
[9, 2],
|
|
233
|
-
[9, 2],
|
|
234
|
-
[9, 2],
|
|
235
|
-
[9, 2],
|
|
236
|
-
[9, 2],
|
|
237
|
-
[9, 3],
|
|
238
|
-
[9, 2],
|
|
239
|
-
[9, 3],
|
|
240
|
-
[9, 2],
|
|
241
|
-
[9, 2],
|
|
242
|
-
[9, 1],
|
|
243
|
-
[17, 3],
|
|
244
|
-
[25, 3],
|
|
245
|
-
[25, 1],
|
|
246
|
-
[27, 2],
|
|
247
|
-
[27, 1],
|
|
248
|
-
[13, 1],
|
|
249
|
-
[13, 2],
|
|
250
|
-
[13, 1],
|
|
251
|
-
[31, 1],
|
|
252
|
-
[31, 3],
|
|
253
|
-
[32, 3],
|
|
254
|
-
[34, 3],
|
|
255
|
-
[34, 1],
|
|
256
|
-
[15, 1],
|
|
257
|
-
[15, 2],
|
|
258
|
-
[15, 1],
|
|
259
|
-
[35, 3],
|
|
260
|
-
[4, 1],
|
|
261
|
-
[4, 1],
|
|
262
|
-
[4, 1],
|
|
263
|
-
[11, 1],
|
|
264
|
-
[11, 1],
|
|
265
|
-
[11, 1],
|
|
266
|
-
[39, 1],
|
|
267
|
-
[39, 2],
|
|
268
|
-
[41, 1],
|
|
269
|
-
[41, 1],
|
|
270
|
-
[41, 1],
|
|
271
|
-
[41, 1],
|
|
272
|
-
[41, 1],
|
|
273
|
-
[41, 1],
|
|
274
|
-
[41, 1],
|
|
275
|
-
[41, 1],
|
|
276
|
-
[41, 1],
|
|
277
|
-
[41, 1]
|
|
278
|
-
],
|
|
279
|
-
performAction: /* @__PURE__ */ n(function(o, w, d, u, k, r, ot) {
|
|
280
|
-
var f = r.length - 1;
|
|
281
|
-
switch (k) {
|
|
282
|
-
case 5:
|
|
283
|
-
u.setOrientation(r[f]);
|
|
284
|
-
break;
|
|
285
|
-
case 9:
|
|
286
|
-
u.setDiagramTitle(r[f].text.trim());
|
|
287
|
-
break;
|
|
288
|
-
case 12:
|
|
289
|
-
u.setLineData({
|
|
290
|
-
text: "",
|
|
291
|
-
type: "text"
|
|
292
|
-
}, r[f]);
|
|
293
|
-
break;
|
|
294
|
-
case 13:
|
|
295
|
-
u.setLineData(r[f - 1], r[f]);
|
|
296
|
-
break;
|
|
297
|
-
case 14:
|
|
298
|
-
u.setBarData({
|
|
299
|
-
text: "",
|
|
300
|
-
type: "text"
|
|
301
|
-
}, r[f]);
|
|
302
|
-
break;
|
|
303
|
-
case 15:
|
|
304
|
-
u.setBarData(r[f - 1], r[f]);
|
|
305
|
-
break;
|
|
306
|
-
case 16:
|
|
307
|
-
this.$ = r[f].trim(), u.setAccTitle(this.$);
|
|
308
|
-
break;
|
|
309
|
-
case 17:
|
|
310
|
-
case 18:
|
|
311
|
-
this.$ = r[f].trim(), u.setAccDescription(this.$);
|
|
312
|
-
break;
|
|
313
|
-
case 19:
|
|
314
|
-
this.$ = r[f - 1];
|
|
315
|
-
break;
|
|
316
|
-
case 20:
|
|
317
|
-
case 30:
|
|
318
|
-
this.$ = [r[f - 2], ...r[f]];
|
|
319
|
-
break;
|
|
320
|
-
case 21:
|
|
321
|
-
case 31:
|
|
322
|
-
this.$ = [r[f]];
|
|
323
|
-
break;
|
|
324
|
-
case 22:
|
|
325
|
-
this.$ = {
|
|
326
|
-
value: Number(r[f - 1]),
|
|
327
|
-
label: r[f]
|
|
328
|
-
};
|
|
329
|
-
break;
|
|
330
|
-
case 23:
|
|
331
|
-
this.$ = {
|
|
332
|
-
value: Number(r[f]),
|
|
333
|
-
label: ""
|
|
334
|
-
};
|
|
335
|
-
break;
|
|
336
|
-
case 24:
|
|
337
|
-
u.setXAxisTitle(r[f]);
|
|
338
|
-
break;
|
|
339
|
-
case 25:
|
|
340
|
-
u.setXAxisTitle(r[f - 1]);
|
|
341
|
-
break;
|
|
342
|
-
case 26:
|
|
343
|
-
u.setXAxisTitle({
|
|
344
|
-
type: "text",
|
|
345
|
-
text: ""
|
|
346
|
-
});
|
|
347
|
-
break;
|
|
348
|
-
case 27:
|
|
349
|
-
u.setXAxisBand(r[f]);
|
|
350
|
-
break;
|
|
351
|
-
case 28:
|
|
352
|
-
u.setXAxisRangeData(Number(r[f - 2]), Number(r[f]));
|
|
353
|
-
break;
|
|
354
|
-
case 29:
|
|
355
|
-
this.$ = r[f - 1];
|
|
356
|
-
break;
|
|
357
|
-
case 32:
|
|
358
|
-
u.setYAxisTitle(r[f]);
|
|
359
|
-
break;
|
|
360
|
-
case 33:
|
|
361
|
-
u.setYAxisTitle(r[f - 1]);
|
|
362
|
-
break;
|
|
363
|
-
case 34:
|
|
364
|
-
u.setYAxisTitle({
|
|
365
|
-
type: "text",
|
|
366
|
-
text: ""
|
|
367
|
-
});
|
|
368
|
-
break;
|
|
369
|
-
case 35:
|
|
370
|
-
u.setYAxisRangeData(Number(r[f - 2]), Number(r[f]));
|
|
371
|
-
break;
|
|
372
|
-
case 39:
|
|
373
|
-
this.$ = {
|
|
374
|
-
text: r[f],
|
|
375
|
-
type: "text"
|
|
376
|
-
};
|
|
377
|
-
break;
|
|
378
|
-
case 40:
|
|
379
|
-
this.$ = {
|
|
380
|
-
text: r[f],
|
|
381
|
-
type: "text"
|
|
382
|
-
};
|
|
383
|
-
break;
|
|
384
|
-
case 41:
|
|
385
|
-
this.$ = {
|
|
386
|
-
text: r[f],
|
|
387
|
-
type: "markdown"
|
|
388
|
-
};
|
|
389
|
-
break;
|
|
390
|
-
case 42:
|
|
391
|
-
this.$ = r[f];
|
|
392
|
-
break;
|
|
393
|
-
case 43:
|
|
394
|
-
this.$ = r[f - 1] + "" + r[f];
|
|
395
|
-
}
|
|
396
|
-
}, "anonymous"),
|
|
397
|
-
table: [
|
|
398
|
-
e(t, i, {
|
|
399
|
-
3: 1,
|
|
400
|
-
4: 2,
|
|
401
|
-
7: 4,
|
|
402
|
-
5: s,
|
|
403
|
-
36: a,
|
|
404
|
-
37: h,
|
|
405
|
-
38: l
|
|
406
|
-
}),
|
|
407
|
-
{ 1: [3] },
|
|
408
|
-
e(t, i, {
|
|
409
|
-
4: 2,
|
|
410
|
-
7: 4,
|
|
411
|
-
3: 8,
|
|
412
|
-
5: s,
|
|
413
|
-
36: a,
|
|
414
|
-
37: h,
|
|
415
|
-
38: l
|
|
416
|
-
}),
|
|
417
|
-
e(t, i, {
|
|
418
|
-
4: 2,
|
|
419
|
-
7: 4,
|
|
420
|
-
6: 9,
|
|
421
|
-
3: 10,
|
|
422
|
-
5: s,
|
|
423
|
-
8: [1, 11],
|
|
424
|
-
36: a,
|
|
425
|
-
37: h,
|
|
426
|
-
38: l
|
|
427
|
-
}),
|
|
428
|
-
{
|
|
429
|
-
1: [2, 4],
|
|
430
|
-
9: 12,
|
|
431
|
-
10: [1, 13],
|
|
432
|
-
12: [1, 14],
|
|
433
|
-
14: [1, 15],
|
|
434
|
-
16: [1, 16],
|
|
435
|
-
18: [1, 17],
|
|
436
|
-
19: [1, 18],
|
|
437
|
-
21: [1, 19],
|
|
438
|
-
23: [1, 20]
|
|
439
|
-
},
|
|
440
|
-
e(x, [2, 36]),
|
|
441
|
-
e(x, [2, 37]),
|
|
442
|
-
e(x, [2, 38]),
|
|
443
|
-
{ 1: [2, 1] },
|
|
444
|
-
e(t, i, {
|
|
445
|
-
4: 2,
|
|
446
|
-
7: 4,
|
|
447
|
-
3: 21,
|
|
448
|
-
5: s,
|
|
449
|
-
36: a,
|
|
450
|
-
37: h,
|
|
451
|
-
38: l
|
|
452
|
-
}),
|
|
453
|
-
{ 1: [2, 3] },
|
|
454
|
-
e(x, [2, 5]),
|
|
455
|
-
e(t, [2, 7], {
|
|
456
|
-
4: 22,
|
|
457
|
-
36: a,
|
|
458
|
-
37: h,
|
|
459
|
-
38: l
|
|
460
|
-
}),
|
|
461
|
-
{
|
|
462
|
-
11: 23,
|
|
463
|
-
30: g,
|
|
464
|
-
39: 24,
|
|
465
|
-
40: p,
|
|
466
|
-
41: 27,
|
|
467
|
-
42: R,
|
|
468
|
-
43: A,
|
|
469
|
-
44: m,
|
|
470
|
-
45: E,
|
|
471
|
-
46: v,
|
|
472
|
-
47: M,
|
|
473
|
-
48: I,
|
|
474
|
-
49: y,
|
|
475
|
-
50: L,
|
|
476
|
-
51: c
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
11: 39,
|
|
480
|
-
13: 38,
|
|
481
|
-
24: z,
|
|
482
|
-
29: W,
|
|
483
|
-
30: g,
|
|
484
|
-
31: 40,
|
|
485
|
-
32: 41,
|
|
486
|
-
39: 24,
|
|
487
|
-
40: p,
|
|
488
|
-
41: 27,
|
|
489
|
-
42: R,
|
|
490
|
-
43: A,
|
|
491
|
-
44: m,
|
|
492
|
-
45: E,
|
|
493
|
-
46: v,
|
|
494
|
-
47: M,
|
|
495
|
-
48: I,
|
|
496
|
-
49: y,
|
|
497
|
-
50: L,
|
|
498
|
-
51: c
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
11: 45,
|
|
502
|
-
15: 44,
|
|
503
|
-
29: G,
|
|
504
|
-
30: g,
|
|
505
|
-
35: 46,
|
|
506
|
-
39: 24,
|
|
507
|
-
40: p,
|
|
508
|
-
41: 27,
|
|
509
|
-
42: R,
|
|
510
|
-
43: A,
|
|
511
|
-
44: m,
|
|
512
|
-
45: E,
|
|
513
|
-
46: v,
|
|
514
|
-
47: M,
|
|
515
|
-
48: I,
|
|
516
|
-
49: y,
|
|
517
|
-
50: L,
|
|
518
|
-
51: c
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
11: 49,
|
|
522
|
-
17: 48,
|
|
523
|
-
24: X,
|
|
524
|
-
30: g,
|
|
525
|
-
39: 24,
|
|
526
|
-
40: p,
|
|
527
|
-
41: 27,
|
|
528
|
-
42: R,
|
|
529
|
-
43: A,
|
|
530
|
-
44: m,
|
|
531
|
-
45: E,
|
|
532
|
-
46: v,
|
|
533
|
-
47: M,
|
|
534
|
-
48: I,
|
|
535
|
-
49: y,
|
|
536
|
-
50: L,
|
|
537
|
-
51: c
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
11: 52,
|
|
541
|
-
17: 51,
|
|
542
|
-
24: X,
|
|
543
|
-
30: g,
|
|
544
|
-
39: 24,
|
|
545
|
-
40: p,
|
|
546
|
-
41: 27,
|
|
547
|
-
42: R,
|
|
548
|
-
43: A,
|
|
549
|
-
44: m,
|
|
550
|
-
45: E,
|
|
551
|
-
46: v,
|
|
552
|
-
47: M,
|
|
553
|
-
48: I,
|
|
554
|
-
49: y,
|
|
555
|
-
50: L,
|
|
556
|
-
51: c
|
|
557
|
-
},
|
|
558
|
-
{ 20: [1, 53] },
|
|
559
|
-
{ 22: [1, 54] },
|
|
560
|
-
e(C, [2, 18]),
|
|
561
|
-
{ 1: [2, 2] },
|
|
562
|
-
e(C, [2, 8]),
|
|
563
|
-
e(C, [2, 9]),
|
|
564
|
-
e(_, [2, 39], {
|
|
565
|
-
41: 55,
|
|
566
|
-
42: R,
|
|
567
|
-
43: A,
|
|
568
|
-
44: m,
|
|
569
|
-
45: E,
|
|
570
|
-
46: v,
|
|
571
|
-
47: M,
|
|
572
|
-
48: I,
|
|
573
|
-
49: y,
|
|
574
|
-
50: L,
|
|
575
|
-
51: c
|
|
576
|
-
}),
|
|
577
|
-
e(_, [2, 40]),
|
|
578
|
-
e(_, [2, 41]),
|
|
579
|
-
e(D, [2, 42]),
|
|
580
|
-
e(D, [2, 44]),
|
|
581
|
-
e(D, [2, 45]),
|
|
582
|
-
e(D, [2, 46]),
|
|
583
|
-
e(D, [2, 47]),
|
|
584
|
-
e(D, [2, 48]),
|
|
585
|
-
e(D, [2, 49]),
|
|
586
|
-
e(D, [2, 50]),
|
|
587
|
-
e(D, [2, 51]),
|
|
588
|
-
e(D, [2, 52]),
|
|
589
|
-
e(D, [2, 53]),
|
|
590
|
-
e(C, [2, 10]),
|
|
591
|
-
e(C, [2, 24], {
|
|
592
|
-
32: 41,
|
|
593
|
-
31: 56,
|
|
594
|
-
24: z,
|
|
595
|
-
29: W
|
|
596
|
-
}),
|
|
597
|
-
e(C, [2, 26]),
|
|
598
|
-
e(C, [2, 27]),
|
|
599
|
-
{ 33: [1, 57] },
|
|
600
|
-
{
|
|
601
|
-
11: 59,
|
|
602
|
-
30: g,
|
|
603
|
-
34: 58,
|
|
604
|
-
39: 24,
|
|
605
|
-
40: p,
|
|
606
|
-
41: 27,
|
|
607
|
-
42: R,
|
|
608
|
-
43: A,
|
|
609
|
-
44: m,
|
|
610
|
-
45: E,
|
|
611
|
-
46: v,
|
|
612
|
-
47: M,
|
|
613
|
-
48: I,
|
|
614
|
-
49: y,
|
|
615
|
-
50: L,
|
|
616
|
-
51: c
|
|
617
|
-
},
|
|
618
|
-
e(C, [2, 11]),
|
|
619
|
-
e(C, [2, 32], {
|
|
620
|
-
35: 60,
|
|
621
|
-
29: G
|
|
622
|
-
}),
|
|
623
|
-
e(C, [2, 34]),
|
|
624
|
-
{ 33: [1, 61] },
|
|
625
|
-
e(C, [2, 12]),
|
|
626
|
-
{
|
|
627
|
-
17: 62,
|
|
628
|
-
24: X
|
|
629
|
-
},
|
|
630
|
-
{
|
|
631
|
-
25: 63,
|
|
632
|
-
27: 64,
|
|
633
|
-
29: S
|
|
634
|
-
},
|
|
635
|
-
e(C, [2, 14]),
|
|
636
|
-
{
|
|
637
|
-
17: 66,
|
|
638
|
-
24: X
|
|
639
|
-
},
|
|
640
|
-
e(C, [2, 16]),
|
|
641
|
-
e(C, [2, 17]),
|
|
642
|
-
e(D, [2, 43]),
|
|
643
|
-
e(C, [2, 25]),
|
|
644
|
-
{ 29: [1, 67] },
|
|
645
|
-
{ 26: [1, 68] },
|
|
646
|
-
{
|
|
647
|
-
26: [2, 31],
|
|
648
|
-
28: [1, 69]
|
|
649
|
-
},
|
|
650
|
-
e(C, [2, 33]),
|
|
651
|
-
{ 29: [1, 70] },
|
|
652
|
-
e(C, [2, 13]),
|
|
653
|
-
{ 26: [1, 71] },
|
|
654
|
-
{
|
|
655
|
-
26: [2, 21],
|
|
656
|
-
28: [1, 72]
|
|
657
|
-
},
|
|
658
|
-
e(T, [2, 23], { 30: [1, 73] }),
|
|
659
|
-
e(C, [2, 15]),
|
|
660
|
-
e(C, [2, 28]),
|
|
661
|
-
e(C, [2, 29]),
|
|
662
|
-
{
|
|
663
|
-
11: 59,
|
|
664
|
-
30: g,
|
|
665
|
-
34: 74,
|
|
666
|
-
39: 24,
|
|
667
|
-
40: p,
|
|
668
|
-
41: 27,
|
|
669
|
-
42: R,
|
|
670
|
-
43: A,
|
|
671
|
-
44: m,
|
|
672
|
-
45: E,
|
|
673
|
-
46: v,
|
|
674
|
-
47: M,
|
|
675
|
-
48: I,
|
|
676
|
-
49: y,
|
|
677
|
-
50: L,
|
|
678
|
-
51: c
|
|
679
|
-
},
|
|
680
|
-
e(C, [2, 35]),
|
|
681
|
-
e(C, [2, 19]),
|
|
682
|
-
{
|
|
683
|
-
25: 75,
|
|
684
|
-
27: 64,
|
|
685
|
-
29: S
|
|
686
|
-
},
|
|
687
|
-
e(T, [2, 22]),
|
|
688
|
-
{ 26: [2, 30] },
|
|
689
|
-
{ 26: [2, 20] }
|
|
690
|
-
],
|
|
691
|
-
defaultActions: {
|
|
692
|
-
8: [2, 1],
|
|
693
|
-
10: [2, 3],
|
|
694
|
-
21: [2, 2],
|
|
695
|
-
74: [2, 30],
|
|
696
|
-
75: [2, 20]
|
|
697
|
-
},
|
|
698
|
-
parseError: /* @__PURE__ */ n(function(o, w) {
|
|
699
|
-
if (w.recoverable) this.trace(o);
|
|
700
|
-
else {
|
|
701
|
-
var d = Error(o);
|
|
702
|
-
throw d.hash = w, d;
|
|
703
|
-
}
|
|
704
|
-
}, "parseError"),
|
|
705
|
-
parse: /* @__PURE__ */ n(function(o) {
|
|
706
|
-
var w = this, d = [0], u = [], k = [null], r = [], ot = this.table, f = "", gt = 0, $t = 0, gi = 0, ui = 2, zt = 1, di = r.slice.call(arguments, 1), P = Object.create(this.lexer), Y = { yy: {} };
|
|
707
|
-
for (var mt in this.yy) Object.prototype.hasOwnProperty.call(this.yy, mt) && (Y.yy[mt] = this.yy[mt]);
|
|
708
|
-
P.setInput(o, Y.yy), Y.yy.lexer = P, Y.yy.parser = this, P.yylloc === void 0 && (P.yylloc = {});
|
|
709
|
-
var yt = P.yylloc;
|
|
710
|
-
r.push(yt);
|
|
711
|
-
var xi = P.options && P.options.ranges;
|
|
712
|
-
this.parseError = typeof Y.yy.parseError == "function" ? Y.yy.parseError : Object.getPrototypeOf(this).parseError;
|
|
713
|
-
function pi(O) {
|
|
714
|
-
d.length -= 2 * O, k.length -= O, r.length -= O;
|
|
715
|
-
}
|
|
716
|
-
n(pi, "popStack");
|
|
717
|
-
function Bt() {
|
|
718
|
-
var O = u.pop() || P.lex() || zt;
|
|
719
|
-
return typeof O != "number" && (O instanceof Array && (u = O, O = u.pop()), O = w.symbols_[O] || O), O;
|
|
720
|
-
}
|
|
721
|
-
n(Bt, "lex");
|
|
722
|
-
for (var $, bt, H, F, At, j = {}, ut, N, Ft, dt; ; ) {
|
|
723
|
-
if (H = d[d.length - 1], this.defaultActions[H] ? F = this.defaultActions[H] : ($ ??= Bt(), F = ot[H] && ot[H][$]), F === void 0 || !F.length || !F[0]) {
|
|
724
|
-
var Ot = "";
|
|
725
|
-
for (ut in dt = [], ot[H]) this.terminals_[ut] && ut > ui && dt.push("'" + this.terminals_[ut] + "'");
|
|
726
|
-
Ot = P.showPosition ? "Parse error on line " + (gt + 1) + `:
|
|
727
|
-
` + P.showPosition() + `
|
|
728
|
-
Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : "Parse error on line " + (gt + 1) + ": Unexpected " + ($ == zt ? "end of input" : "'" + (this.terminals_[$] || $) + "'"), this.parseError(Ot, {
|
|
729
|
-
text: P.match,
|
|
730
|
-
token: this.terminals_[$] || $,
|
|
731
|
-
line: P.yylineno,
|
|
732
|
-
loc: yt,
|
|
733
|
-
expected: dt
|
|
734
|
-
});
|
|
735
|
-
}
|
|
736
|
-
if (F[0] instanceof Array && F.length > 1) throw Error("Parse Error: multiple actions possible at state: " + H + ", token: " + $);
|
|
737
|
-
switch (F[0]) {
|
|
738
|
-
case 1:
|
|
739
|
-
d.push($), k.push(P.yytext), r.push(P.yylloc), d.push(F[1]), $ = null, bt ? ($ = bt, bt = null) : ($t = P.yyleng, f = P.yytext, gt = P.yylineno, yt = P.yylloc, gi > 0);
|
|
740
|
-
break;
|
|
741
|
-
case 2:
|
|
742
|
-
if (N = this.productions_[F[1]][1], j.$ = k[k.length - N], j._$ = {
|
|
743
|
-
first_line: r[r.length - (N || 1)].first_line,
|
|
744
|
-
last_line: r[r.length - 1].last_line,
|
|
745
|
-
first_column: r[r.length - (N || 1)].first_column,
|
|
746
|
-
last_column: r[r.length - 1].last_column
|
|
747
|
-
}, xi && (j._$.range = [r[r.length - (N || 1)].range[0], r[r.length - 1].range[1]]), At = this.performAction.apply(j, [
|
|
748
|
-
f,
|
|
749
|
-
$t,
|
|
750
|
-
gt,
|
|
751
|
-
Y.yy,
|
|
752
|
-
F[1],
|
|
753
|
-
k,
|
|
754
|
-
r
|
|
755
|
-
].concat(di)), At !== void 0) return At;
|
|
756
|
-
N && (d = d.slice(0, -1 * N * 2), k = k.slice(0, -1 * N), r = r.slice(0, -1 * N)), d.push(this.productions_[F[1]][0]), k.push(j.$), r.push(j._$), Ft = ot[d[d.length - 2]][d[d.length - 1]], d.push(Ft);
|
|
757
|
-
break;
|
|
758
|
-
case 3:
|
|
759
|
-
return !0;
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
return !0;
|
|
763
|
-
}, "parse")
|
|
764
|
-
};
|
|
765
|
-
B.lexer = /* @__PURE__ */ (function() {
|
|
766
|
-
return {
|
|
767
|
-
EOF: 1,
|
|
768
|
-
parseError: /* @__PURE__ */ n(function(o, w) {
|
|
769
|
-
if (this.yy.parser) this.yy.parser.parseError(o, w);
|
|
770
|
-
else throw Error(o);
|
|
771
|
-
}, "parseError"),
|
|
772
|
-
setInput: /* @__PURE__ */ n(function(o, w) {
|
|
773
|
-
return this.yy = w || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
774
|
-
first_line: 1,
|
|
775
|
-
first_column: 0,
|
|
776
|
-
last_line: 1,
|
|
777
|
-
last_column: 0
|
|
778
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
779
|
-
}, "setInput"),
|
|
780
|
-
input: /* @__PURE__ */ n(function() {
|
|
781
|
-
var o = this._input[0];
|
|
782
|
-
return this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o, o.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), o;
|
|
783
|
-
}, "input"),
|
|
784
|
-
unput: /* @__PURE__ */ n(function(o) {
|
|
785
|
-
var w = o.length, d = o.split(/(?:\r\n?|\n)/g);
|
|
786
|
-
this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - w), this.offset -= w;
|
|
787
|
-
var u = this.match.split(/(?:\r\n?|\n)/g);
|
|
788
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), d.length - 1 && (this.yylineno -= d.length - 1);
|
|
789
|
-
var k = this.yylloc.range;
|
|
790
|
-
return this.yylloc = {
|
|
791
|
-
first_line: this.yylloc.first_line,
|
|
792
|
-
last_line: this.yylineno + 1,
|
|
793
|
-
first_column: this.yylloc.first_column,
|
|
794
|
-
last_column: d ? (d.length === u.length ? this.yylloc.first_column : 0) + u[u.length - d.length].length - d[0].length : this.yylloc.first_column - w
|
|
795
|
-
}, this.options.ranges && (this.yylloc.range = [k[0], k[0] + this.yyleng - w]), this.yyleng = this.yytext.length, this;
|
|
796
|
-
}, "unput"),
|
|
797
|
-
more: /* @__PURE__ */ n(function() {
|
|
798
|
-
return this._more = !0, this;
|
|
799
|
-
}, "more"),
|
|
800
|
-
reject: /* @__PURE__ */ n(function() {
|
|
801
|
-
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
802
|
-
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).
|
|
803
|
-
` + this.showPosition(), {
|
|
804
|
-
text: "",
|
|
805
|
-
token: null,
|
|
806
|
-
line: this.yylineno
|
|
807
|
-
});
|
|
808
|
-
return this;
|
|
809
|
-
}, "reject"),
|
|
810
|
-
less: /* @__PURE__ */ n(function(o) {
|
|
811
|
-
this.unput(this.match.slice(o));
|
|
812
|
-
}, "less"),
|
|
813
|
-
pastInput: /* @__PURE__ */ n(function() {
|
|
814
|
-
var o = this.matched.substr(0, this.matched.length - this.match.length);
|
|
815
|
-
return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
|
|
816
|
-
}, "pastInput"),
|
|
817
|
-
upcomingInput: /* @__PURE__ */ n(function() {
|
|
818
|
-
var o = this.match;
|
|
819
|
-
return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
820
|
-
}, "upcomingInput"),
|
|
821
|
-
showPosition: /* @__PURE__ */ n(function() {
|
|
822
|
-
var o = this.pastInput(), w = Array(o.length + 1).join("-");
|
|
823
|
-
return o + this.upcomingInput() + `
|
|
824
|
-
` + w + "^";
|
|
825
|
-
}, "showPosition"),
|
|
826
|
-
test_match: /* @__PURE__ */ n(function(o, w) {
|
|
827
|
-
var d, u, k;
|
|
828
|
-
if (this.options.backtrack_lexer && (k = {
|
|
829
|
-
yylineno: this.yylineno,
|
|
830
|
-
yylloc: {
|
|
831
|
-
first_line: this.yylloc.first_line,
|
|
832
|
-
last_line: this.last_line,
|
|
833
|
-
first_column: this.yylloc.first_column,
|
|
834
|
-
last_column: this.yylloc.last_column
|
|
835
|
-
},
|
|
836
|
-
yytext: this.yytext,
|
|
837
|
-
match: this.match,
|
|
838
|
-
matches: this.matches,
|
|
839
|
-
matched: this.matched,
|
|
840
|
-
yyleng: this.yyleng,
|
|
841
|
-
offset: this.offset,
|
|
842
|
-
_more: this._more,
|
|
843
|
-
_input: this._input,
|
|
844
|
-
yy: this.yy,
|
|
845
|
-
conditionStack: this.conditionStack.slice(0),
|
|
846
|
-
done: this.done
|
|
847
|
-
}, this.options.ranges && (k.yylloc.range = this.yylloc.range.slice(0))), u = o[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
|
|
848
|
-
first_line: this.yylloc.last_line,
|
|
849
|
-
last_line: this.yylineno + 1,
|
|
850
|
-
first_column: this.yylloc.last_column,
|
|
851
|
-
last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
|
|
852
|
-
}, this.yytext += o[0], this.match += o[0], this.matches = o, 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(o[0].length), this.matched += o[0], d = this.performAction.call(this, this.yy, this, w, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), d) return d;
|
|
853
|
-
if (this._backtrack) {
|
|
854
|
-
for (var r in k) this[r] = k[r];
|
|
855
|
-
return !1;
|
|
856
|
-
}
|
|
857
|
-
return !1;
|
|
858
|
-
}, "test_match"),
|
|
859
|
-
next: /* @__PURE__ */ n(function() {
|
|
860
|
-
if (this.done) return this.EOF;
|
|
861
|
-
this._input || (this.done = !0);
|
|
862
|
-
var o, w, d, u;
|
|
863
|
-
this._more || (this.yytext = "", this.match = "");
|
|
864
|
-
for (var k = this._currentRules(), r = 0; r < k.length; r++) if (d = this._input.match(this.rules[k[r]]), d && (!w || d[0].length > w[0].length)) {
|
|
865
|
-
if (w = d, u = r, this.options.backtrack_lexer) {
|
|
866
|
-
if (o = this.test_match(d, k[r]), o !== !1) return o;
|
|
867
|
-
if (this._backtrack) {
|
|
868
|
-
w = !1;
|
|
869
|
-
continue;
|
|
870
|
-
}
|
|
871
|
-
return !1;
|
|
872
|
-
}
|
|
873
|
-
if (!this.options.flex) break;
|
|
874
|
-
}
|
|
875
|
-
return w ? (o = this.test_match(w, k[u]), o !== !1 && o) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
876
|
-
` + this.showPosition(), {
|
|
877
|
-
text: "",
|
|
878
|
-
token: null,
|
|
879
|
-
line: this.yylineno
|
|
880
|
-
});
|
|
881
|
-
}, "next"),
|
|
882
|
-
lex: /* @__PURE__ */ n(function() {
|
|
883
|
-
return this.next() || this.lex();
|
|
884
|
-
}, "lex"),
|
|
885
|
-
begin: /* @__PURE__ */ n(function(o) {
|
|
886
|
-
this.conditionStack.push(o);
|
|
887
|
-
}, "begin"),
|
|
888
|
-
popState: /* @__PURE__ */ n(function() {
|
|
889
|
-
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
890
|
-
}, "popState"),
|
|
891
|
-
_currentRules: /* @__PURE__ */ n(function() {
|
|
892
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
893
|
-
}, "_currentRules"),
|
|
894
|
-
topState: /* @__PURE__ */ n(function(o) {
|
|
895
|
-
return o = this.conditionStack.length - 1 - Math.abs(o || 0), o >= 0 ? this.conditionStack[o] : "INITIAL";
|
|
896
|
-
}, "topState"),
|
|
897
|
-
pushState: /* @__PURE__ */ n(function(o) {
|
|
898
|
-
this.begin(o);
|
|
899
|
-
}, "pushState"),
|
|
900
|
-
stateStackSize: /* @__PURE__ */ n(function() {
|
|
901
|
-
return this.conditionStack.length;
|
|
902
|
-
}, "stateStackSize"),
|
|
903
|
-
options: { "case-insensitive": !0 },
|
|
904
|
-
performAction: /* @__PURE__ */ n(function(o, w, d, u) {
|
|
905
|
-
switch (d) {
|
|
906
|
-
case 0:
|
|
907
|
-
break;
|
|
908
|
-
case 1:
|
|
909
|
-
break;
|
|
910
|
-
case 2:
|
|
911
|
-
return this.popState(), 36;
|
|
912
|
-
case 3:
|
|
913
|
-
return this.popState(), 36;
|
|
914
|
-
case 4:
|
|
915
|
-
return 36;
|
|
916
|
-
case 5:
|
|
917
|
-
break;
|
|
918
|
-
case 6:
|
|
919
|
-
return 10;
|
|
920
|
-
case 7:
|
|
921
|
-
return this.pushState("acc_title"), 19;
|
|
922
|
-
case 8:
|
|
923
|
-
return this.popState(), "acc_title_value";
|
|
924
|
-
case 9:
|
|
925
|
-
return this.pushState("acc_descr"), 21;
|
|
926
|
-
case 10:
|
|
927
|
-
return this.popState(), "acc_descr_value";
|
|
928
|
-
case 11:
|
|
929
|
-
this.pushState("acc_descr_multiline");
|
|
930
|
-
break;
|
|
931
|
-
case 12:
|
|
932
|
-
this.popState();
|
|
933
|
-
break;
|
|
934
|
-
case 13:
|
|
935
|
-
return "acc_descr_multiline_value";
|
|
936
|
-
case 14:
|
|
937
|
-
return 5;
|
|
938
|
-
case 15:
|
|
939
|
-
return 5;
|
|
940
|
-
case 16:
|
|
941
|
-
return 8;
|
|
942
|
-
case 17:
|
|
943
|
-
return this.pushState("axis_data"), "X_AXIS";
|
|
944
|
-
case 18:
|
|
945
|
-
return this.pushState("axis_data"), "Y_AXIS";
|
|
946
|
-
case 19:
|
|
947
|
-
return this.pushState("axis_band_data"), 24;
|
|
948
|
-
case 20:
|
|
949
|
-
return 33;
|
|
950
|
-
case 21:
|
|
951
|
-
return this.pushState("data"), 16;
|
|
952
|
-
case 22:
|
|
953
|
-
return this.pushState("data"), 18;
|
|
954
|
-
case 23:
|
|
955
|
-
return this.pushState("data_inner"), 24;
|
|
956
|
-
case 24:
|
|
957
|
-
return 29;
|
|
958
|
-
case 25:
|
|
959
|
-
return this.popState(), 26;
|
|
960
|
-
case 26:
|
|
961
|
-
this.popState();
|
|
962
|
-
break;
|
|
963
|
-
case 27:
|
|
964
|
-
this.pushState("string");
|
|
965
|
-
break;
|
|
966
|
-
case 28:
|
|
967
|
-
this.popState();
|
|
968
|
-
break;
|
|
969
|
-
case 29:
|
|
970
|
-
return "STR";
|
|
971
|
-
case 30:
|
|
972
|
-
return 24;
|
|
973
|
-
case 31:
|
|
974
|
-
return 26;
|
|
975
|
-
case 32:
|
|
976
|
-
return 44;
|
|
977
|
-
case 33:
|
|
978
|
-
return "COLON";
|
|
979
|
-
case 34:
|
|
980
|
-
return 45;
|
|
981
|
-
case 35:
|
|
982
|
-
return 28;
|
|
983
|
-
case 36:
|
|
984
|
-
return 46;
|
|
985
|
-
case 37:
|
|
986
|
-
return 47;
|
|
987
|
-
case 38:
|
|
988
|
-
return 49;
|
|
989
|
-
case 39:
|
|
990
|
-
return 51;
|
|
991
|
-
case 40:
|
|
992
|
-
return 48;
|
|
993
|
-
case 41:
|
|
994
|
-
return 42;
|
|
995
|
-
case 42:
|
|
996
|
-
return 50;
|
|
997
|
-
case 43:
|
|
998
|
-
return 43;
|
|
999
|
-
case 44:
|
|
1000
|
-
break;
|
|
1001
|
-
case 45:
|
|
1002
|
-
return 37;
|
|
1003
|
-
case 46:
|
|
1004
|
-
return 38;
|
|
1005
|
-
}
|
|
1006
|
-
}, "anonymous"),
|
|
1007
|
-
rules: [
|
|
1008
|
-
/^(?:%%(?!\{)[^\n]*)/i,
|
|
1009
|
-
/^(?:[^\}]%%[^\n]*)/i,
|
|
1010
|
-
/^(?:(\r?\n))/i,
|
|
1011
|
-
/^(?:(\r?\n))/i,
|
|
1012
|
-
/^(?:[\n\r]+)/i,
|
|
1013
|
-
/^(?:%%[^\n]*)/i,
|
|
1014
|
-
/^(?:title\b)/i,
|
|
1015
|
-
/^(?:accTitle\s*:\s*)/i,
|
|
1016
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
1017
|
-
/^(?:accDescr\s*:\s*)/i,
|
|
1018
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
1019
|
-
/^(?:accDescr\s*\{\s*)/i,
|
|
1020
|
-
/^(?:\})/i,
|
|
1021
|
-
/^(?:[^\}]*)/i,
|
|
1022
|
-
/^(?:xychart-beta\b)/i,
|
|
1023
|
-
/^(?:xychart\b)/i,
|
|
1024
|
-
/^(?:(?:vertical|horizontal))/i,
|
|
1025
|
-
/^(?:x-axis\b)/i,
|
|
1026
|
-
/^(?:y-axis\b)/i,
|
|
1027
|
-
/^(?:\[)/i,
|
|
1028
|
-
/^(?:-->)/i,
|
|
1029
|
-
/^(?:line\b)/i,
|
|
1030
|
-
/^(?:bar\b)/i,
|
|
1031
|
-
/^(?:\[)/i,
|
|
1032
|
-
/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,
|
|
1033
|
-
/^(?:\])/i,
|
|
1034
|
-
/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,
|
|
1035
|
-
/^(?:["])/i,
|
|
1036
|
-
/^(?:["])/i,
|
|
1037
|
-
/^(?:[^"]*)/i,
|
|
1038
|
-
/^(?:\[)/i,
|
|
1039
|
-
/^(?:\])/i,
|
|
1040
|
-
/^(?:[A-Za-z]+)/i,
|
|
1041
|
-
/^(?::)/i,
|
|
1042
|
-
/^(?:\+)/i,
|
|
1043
|
-
/^(?:,)/i,
|
|
1044
|
-
/^(?:=)/i,
|
|
1045
|
-
/^(?:\*)/i,
|
|
1046
|
-
/^(?:#)/i,
|
|
1047
|
-
/^(?:[\_])/i,
|
|
1048
|
-
/^(?:\.)/i,
|
|
1049
|
-
/^(?:&)/i,
|
|
1050
|
-
/^(?:-)/i,
|
|
1051
|
-
/^(?:[0-9]+)/i,
|
|
1052
|
-
/^(?:\s+)/i,
|
|
1053
|
-
/^(?:;)/i,
|
|
1054
|
-
/^(?:$)/i
|
|
1055
|
-
],
|
|
1056
|
-
conditions: {
|
|
1057
|
-
data_inner: {
|
|
1058
|
-
rules: [
|
|
1059
|
-
0,
|
|
1060
|
-
1,
|
|
1061
|
-
4,
|
|
1062
|
-
5,
|
|
1063
|
-
6,
|
|
1064
|
-
7,
|
|
1065
|
-
9,
|
|
1066
|
-
11,
|
|
1067
|
-
14,
|
|
1068
|
-
15,
|
|
1069
|
-
16,
|
|
1070
|
-
17,
|
|
1071
|
-
18,
|
|
1072
|
-
21,
|
|
1073
|
-
22,
|
|
1074
|
-
24,
|
|
1075
|
-
25,
|
|
1076
|
-
26,
|
|
1077
|
-
27,
|
|
1078
|
-
30,
|
|
1079
|
-
31,
|
|
1080
|
-
32,
|
|
1081
|
-
33,
|
|
1082
|
-
34,
|
|
1083
|
-
35,
|
|
1084
|
-
36,
|
|
1085
|
-
37,
|
|
1086
|
-
38,
|
|
1087
|
-
39,
|
|
1088
|
-
40,
|
|
1089
|
-
41,
|
|
1090
|
-
42,
|
|
1091
|
-
43,
|
|
1092
|
-
44,
|
|
1093
|
-
45,
|
|
1094
|
-
46
|
|
1095
|
-
],
|
|
1096
|
-
inclusive: !0
|
|
1097
|
-
},
|
|
1098
|
-
data: {
|
|
1099
|
-
rules: [
|
|
1100
|
-
0,
|
|
1101
|
-
1,
|
|
1102
|
-
3,
|
|
1103
|
-
4,
|
|
1104
|
-
5,
|
|
1105
|
-
6,
|
|
1106
|
-
7,
|
|
1107
|
-
9,
|
|
1108
|
-
11,
|
|
1109
|
-
14,
|
|
1110
|
-
15,
|
|
1111
|
-
16,
|
|
1112
|
-
17,
|
|
1113
|
-
18,
|
|
1114
|
-
21,
|
|
1115
|
-
22,
|
|
1116
|
-
23,
|
|
1117
|
-
26,
|
|
1118
|
-
27,
|
|
1119
|
-
30,
|
|
1120
|
-
31,
|
|
1121
|
-
32,
|
|
1122
|
-
33,
|
|
1123
|
-
34,
|
|
1124
|
-
35,
|
|
1125
|
-
36,
|
|
1126
|
-
37,
|
|
1127
|
-
38,
|
|
1128
|
-
39,
|
|
1129
|
-
40,
|
|
1130
|
-
41,
|
|
1131
|
-
42,
|
|
1132
|
-
43,
|
|
1133
|
-
44,
|
|
1134
|
-
45,
|
|
1135
|
-
46
|
|
1136
|
-
],
|
|
1137
|
-
inclusive: !0
|
|
1138
|
-
},
|
|
1139
|
-
axis_band_data: {
|
|
1140
|
-
rules: [
|
|
1141
|
-
0,
|
|
1142
|
-
1,
|
|
1143
|
-
4,
|
|
1144
|
-
5,
|
|
1145
|
-
6,
|
|
1146
|
-
7,
|
|
1147
|
-
9,
|
|
1148
|
-
11,
|
|
1149
|
-
14,
|
|
1150
|
-
15,
|
|
1151
|
-
16,
|
|
1152
|
-
17,
|
|
1153
|
-
18,
|
|
1154
|
-
21,
|
|
1155
|
-
22,
|
|
1156
|
-
25,
|
|
1157
|
-
26,
|
|
1158
|
-
27,
|
|
1159
|
-
30,
|
|
1160
|
-
31,
|
|
1161
|
-
32,
|
|
1162
|
-
33,
|
|
1163
|
-
34,
|
|
1164
|
-
35,
|
|
1165
|
-
36,
|
|
1166
|
-
37,
|
|
1167
|
-
38,
|
|
1168
|
-
39,
|
|
1169
|
-
40,
|
|
1170
|
-
41,
|
|
1171
|
-
42,
|
|
1172
|
-
43,
|
|
1173
|
-
44,
|
|
1174
|
-
45,
|
|
1175
|
-
46
|
|
1176
|
-
],
|
|
1177
|
-
inclusive: !0
|
|
1178
|
-
},
|
|
1179
|
-
axis_data: {
|
|
1180
|
-
rules: [
|
|
1181
|
-
0,
|
|
1182
|
-
1,
|
|
1183
|
-
2,
|
|
1184
|
-
4,
|
|
1185
|
-
5,
|
|
1186
|
-
6,
|
|
1187
|
-
7,
|
|
1188
|
-
9,
|
|
1189
|
-
11,
|
|
1190
|
-
14,
|
|
1191
|
-
15,
|
|
1192
|
-
16,
|
|
1193
|
-
17,
|
|
1194
|
-
18,
|
|
1195
|
-
19,
|
|
1196
|
-
20,
|
|
1197
|
-
21,
|
|
1198
|
-
22,
|
|
1199
|
-
24,
|
|
1200
|
-
26,
|
|
1201
|
-
27,
|
|
1202
|
-
30,
|
|
1203
|
-
31,
|
|
1204
|
-
32,
|
|
1205
|
-
33,
|
|
1206
|
-
34,
|
|
1207
|
-
35,
|
|
1208
|
-
36,
|
|
1209
|
-
37,
|
|
1210
|
-
38,
|
|
1211
|
-
39,
|
|
1212
|
-
40,
|
|
1213
|
-
41,
|
|
1214
|
-
42,
|
|
1215
|
-
43,
|
|
1216
|
-
44,
|
|
1217
|
-
45,
|
|
1218
|
-
46
|
|
1219
|
-
],
|
|
1220
|
-
inclusive: !0
|
|
1221
|
-
},
|
|
1222
|
-
acc_descr_multiline: {
|
|
1223
|
-
rules: [12, 13],
|
|
1224
|
-
inclusive: !1
|
|
1225
|
-
},
|
|
1226
|
-
acc_descr: {
|
|
1227
|
-
rules: [10],
|
|
1228
|
-
inclusive: !1
|
|
1229
|
-
},
|
|
1230
|
-
acc_title: {
|
|
1231
|
-
rules: [8],
|
|
1232
|
-
inclusive: !1
|
|
1233
|
-
},
|
|
1234
|
-
title: {
|
|
1235
|
-
rules: [],
|
|
1236
|
-
inclusive: !1
|
|
1237
|
-
},
|
|
1238
|
-
md_string: {
|
|
1239
|
-
rules: [],
|
|
1240
|
-
inclusive: !1
|
|
1241
|
-
},
|
|
1242
|
-
string: {
|
|
1243
|
-
rules: [28, 29],
|
|
1244
|
-
inclusive: !1
|
|
1245
|
-
},
|
|
1246
|
-
INITIAL: {
|
|
1247
|
-
rules: [
|
|
1248
|
-
0,
|
|
1249
|
-
1,
|
|
1250
|
-
4,
|
|
1251
|
-
5,
|
|
1252
|
-
6,
|
|
1253
|
-
7,
|
|
1254
|
-
9,
|
|
1255
|
-
11,
|
|
1256
|
-
14,
|
|
1257
|
-
15,
|
|
1258
|
-
16,
|
|
1259
|
-
17,
|
|
1260
|
-
18,
|
|
1261
|
-
21,
|
|
1262
|
-
22,
|
|
1263
|
-
26,
|
|
1264
|
-
27,
|
|
1265
|
-
30,
|
|
1266
|
-
31,
|
|
1267
|
-
32,
|
|
1268
|
-
33,
|
|
1269
|
-
34,
|
|
1270
|
-
35,
|
|
1271
|
-
36,
|
|
1272
|
-
37,
|
|
1273
|
-
38,
|
|
1274
|
-
39,
|
|
1275
|
-
40,
|
|
1276
|
-
41,
|
|
1277
|
-
42,
|
|
1278
|
-
43,
|
|
1279
|
-
44,
|
|
1280
|
-
45,
|
|
1281
|
-
46
|
|
1282
|
-
],
|
|
1283
|
-
inclusive: !0
|
|
1284
|
-
}
|
|
1285
|
-
}
|
|
1286
|
-
};
|
|
1287
|
-
})();
|
|
1288
|
-
function V() {
|
|
1289
|
-
this.yy = {};
|
|
1290
|
-
}
|
|
1291
|
-
return n(V, "Parser"), V.prototype = B, B.Parser = V, new V();
|
|
1292
|
-
})();
|
|
1293
|
-
Ct.parser = Ct;
|
|
1294
|
-
var vi = Ct;
|
|
1295
|
-
function xt(e) {
|
|
1296
|
-
return e.type === "bar";
|
|
1297
|
-
}
|
|
1298
|
-
n(xt, "isBarPlot");
|
|
1299
|
-
function pt(e) {
|
|
1300
|
-
return e.type === "band";
|
|
1301
|
-
}
|
|
1302
|
-
n(pt, "isBandAxisData");
|
|
1303
|
-
function Q(e) {
|
|
1304
|
-
return e.type === "linear";
|
|
1305
|
-
}
|
|
1306
|
-
n(Q, "isLinearAxisData");
|
|
1307
|
-
var q, Tt = (q = class {
|
|
1308
|
-
constructor(t) {
|
|
1309
|
-
this.parentGroup = t;
|
|
1310
|
-
}
|
|
1311
|
-
getMaxDimension(t, i) {
|
|
1312
|
-
if (!this.parentGroup) return {
|
|
1313
|
-
width: t.reduce((h, l) => Math.max(l.length, h), 0) * i,
|
|
1314
|
-
height: i
|
|
1315
|
-
};
|
|
1316
|
-
let s = {
|
|
1317
|
-
width: 0,
|
|
1318
|
-
height: 0
|
|
1319
|
-
}, a = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
|
|
1320
|
-
for (let h of t) {
|
|
1321
|
-
let l = Ti(a, 1, h), x = l ? l.width : h.length * i, g = l ? l.height : i;
|
|
1322
|
-
s.width = Math.max(s.width, x), s.height = Math.max(s.height, g);
|
|
1323
|
-
}
|
|
1324
|
-
return a.remove(), s;
|
|
1325
|
-
}
|
|
1326
|
-
}, n(q, "TextDimensionCalculatorWithFont"), q), Vt = 0.7, Nt = 0.2, K, Gt = (K = class {
|
|
1327
|
-
constructor(t, i, s, a) {
|
|
1328
|
-
this.axisConfig = t, this.title = i, this.textDimensionCalculator = s, this.axisThemeConfig = a, this.boundingRect = {
|
|
1329
|
-
x: 0,
|
|
1330
|
-
y: 0,
|
|
1331
|
-
width: 0,
|
|
1332
|
-
height: 0
|
|
1333
|
-
}, 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.normalizedLabelRotationInRad = 0, this.range = [0, 10], this.boundingRect = {
|
|
1334
|
-
x: 0,
|
|
1335
|
-
y: 0,
|
|
1336
|
-
width: 0,
|
|
1337
|
-
height: 0
|
|
1338
|
-
}, this.axisPosition = "left", this.normalizedLabelRotationInRad = this.axisConfig.labelRotation >= -90 && this.axisConfig.labelRotation <= 90 ? this.axisConfig.labelRotation * Math.PI / 180 : 0;
|
|
1339
|
-
}
|
|
1340
|
-
setRange(t) {
|
|
1341
|
-
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();
|
|
1342
|
-
}
|
|
1343
|
-
getRange() {
|
|
1344
|
-
return [this.range[0] + this.outerPadding, this.range[1] - this.outerPadding];
|
|
1345
|
-
}
|
|
1346
|
-
setAxisPosition(t) {
|
|
1347
|
-
this.axisPosition = t, this.setRange(this.range);
|
|
1348
|
-
}
|
|
1349
|
-
getTickDistance() {
|
|
1350
|
-
let t = this.getRange();
|
|
1351
|
-
return Math.abs(t[0] - t[1]) / this.getTickValues().length;
|
|
1352
|
-
}
|
|
1353
|
-
getAxisOuterPadding() {
|
|
1354
|
-
return this.outerPadding;
|
|
1355
|
-
}
|
|
1356
|
-
getLabelDimension() {
|
|
1357
|
-
return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map((t) => t.toString()), this.axisConfig.labelFontSize);
|
|
1358
|
-
}
|
|
1359
|
-
recalculateOuterPaddingToDrawBar() {
|
|
1360
|
-
Vt * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Vt * this.getTickDistance() / 2)), this.recalculateScale();
|
|
1361
|
-
}
|
|
1362
|
-
calculateSpaceIfDrawnHorizontally(t) {
|
|
1363
|
-
let i = t.height;
|
|
1364
|
-
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
|
|
1365
|
-
let s = this.getLabelDimension(), a = Nt * t.width;
|
|
1366
|
-
this.outerPadding = Math.min(s.width / 2, a);
|
|
1367
|
-
let h = s.height;
|
|
1368
|
-
this.axisPosition === "bottom" && this.normalizedLabelRotationInRad !== 0 && (h = Math.max(h, Math.abs(Math.sin(this.normalizedLabelRotationInRad) * s.width) + Math.abs(Math.cos(this.normalizedLabelRotationInRad) * s.height))), h += this.axisConfig.labelPadding * 2, this.labelTextHeight = s.height, h <= i && (i -= h, this.showLabel = !0);
|
|
1369
|
-
}
|
|
1370
|
-
if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
|
|
1371
|
-
let s = this.textDimensionCalculator.getMaxDimension([this.title], this.axisConfig.titleFontSize), a = s.height + this.axisConfig.titlePadding * 2;
|
|
1372
|
-
this.titleTextHeight = s.height, a <= i && (i -= a, this.showTitle = !0);
|
|
1373
|
-
}
|
|
1374
|
-
this.boundingRect.width = t.width, this.boundingRect.height = t.height - i;
|
|
1375
|
-
}
|
|
1376
|
-
calculateSpaceIfDrawnVertical(t) {
|
|
1377
|
-
let i = t.width;
|
|
1378
|
-
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
|
|
1379
|
-
let s = this.getLabelDimension(), a = Nt * t.height;
|
|
1380
|
-
this.outerPadding = Math.min(s.height / 2, a);
|
|
1381
|
-
let h = s.width + this.axisConfig.labelPadding * 2;
|
|
1382
|
-
h <= i && (i -= h, this.showLabel = !0);
|
|
1383
|
-
}
|
|
1384
|
-
if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
|
|
1385
|
-
let s = this.textDimensionCalculator.getMaxDimension([this.title], this.axisConfig.titleFontSize), a = s.height + this.axisConfig.titlePadding * 2;
|
|
1386
|
-
this.titleTextHeight = s.height, a <= i && (i -= a, this.showTitle = !0);
|
|
1387
|
-
}
|
|
1388
|
-
this.boundingRect.width = t.width - i, this.boundingRect.height = t.height;
|
|
1389
|
-
}
|
|
1390
|
-
calculateSpace(t) {
|
|
1391
|
-
return this.axisPosition === "left" || this.axisPosition === "right" ? this.calculateSpaceIfDrawnVertical(t) : this.calculateSpaceIfDrawnHorizontally(t), this.recalculateScale(), {
|
|
1392
|
-
width: this.boundingRect.width,
|
|
1393
|
-
height: this.boundingRect.height
|
|
1394
|
-
};
|
|
1395
|
-
}
|
|
1396
|
-
setBoundingBoxXY(t) {
|
|
1397
|
-
this.boundingRect.x = t.x, this.boundingRect.y = t.y;
|
|
1398
|
-
}
|
|
1399
|
-
calculateOffsetByRotation(t) {
|
|
1400
|
-
let i = this.normalizedLabelRotationInRad;
|
|
1401
|
-
return i === 0 ? 0 : Math.sin(i) * this.getLabelDimension()[t] / 2;
|
|
1402
|
-
}
|
|
1403
|
-
getDrawableElementsForLeftAxis() {
|
|
1404
|
-
let t = [];
|
|
1405
|
-
if (this.showAxisLine) {
|
|
1406
|
-
let i = this.boundingRect.x + this.boundingRect.width - this.axisConfig.axisLineWidth / 2;
|
|
1407
|
-
t.push({
|
|
1408
|
-
type: "path",
|
|
1409
|
-
groupTexts: ["left-axis", "axisl-line"],
|
|
1410
|
-
data: [{
|
|
1411
|
-
path: `M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y + this.boundingRect.height} `,
|
|
1412
|
-
strokeFill: this.axisThemeConfig.axisLineColor,
|
|
1413
|
-
strokeWidth: this.axisConfig.axisLineWidth
|
|
1414
|
-
}]
|
|
1415
|
-
});
|
|
1416
|
-
}
|
|
1417
|
-
if (this.showLabel && t.push({
|
|
1418
|
-
type: "text",
|
|
1419
|
-
groupTexts: ["left-axis", "label"],
|
|
1420
|
-
data: this.getTickValues().map((i) => ({
|
|
1421
|
-
text: i.toString(),
|
|
1422
|
-
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),
|
|
1423
|
-
y: this.getScaleValue(i),
|
|
1424
|
-
fill: this.axisThemeConfig.labelColor,
|
|
1425
|
-
fontSize: this.axisConfig.labelFontSize,
|
|
1426
|
-
rotation: 0,
|
|
1427
|
-
verticalPos: "middle",
|
|
1428
|
-
horizontalPos: "right"
|
|
1429
|
-
}))
|
|
1430
|
-
}), this.showTick) {
|
|
1431
|
-
let i = this.boundingRect.x + this.boundingRect.width - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
|
|
1432
|
-
t.push({
|
|
1433
|
-
type: "path",
|
|
1434
|
-
groupTexts: ["left-axis", "ticks"],
|
|
1435
|
-
data: this.getTickValues().map((s) => ({
|
|
1436
|
-
path: `M ${i},${this.getScaleValue(s)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(s)}`,
|
|
1437
|
-
strokeFill: this.axisThemeConfig.tickColor,
|
|
1438
|
-
strokeWidth: this.axisConfig.tickWidth
|
|
1439
|
-
}))
|
|
1440
|
-
});
|
|
1441
|
-
}
|
|
1442
|
-
return this.showTitle && t.push({
|
|
1443
|
-
type: "text",
|
|
1444
|
-
groupTexts: ["left-axis", "title"],
|
|
1445
|
-
data: [{
|
|
1446
|
-
text: this.title,
|
|
1447
|
-
x: this.boundingRect.x + this.axisConfig.titlePadding,
|
|
1448
|
-
y: this.boundingRect.y + this.boundingRect.height / 2,
|
|
1449
|
-
fill: this.axisThemeConfig.titleColor,
|
|
1450
|
-
fontSize: this.axisConfig.titleFontSize,
|
|
1451
|
-
rotation: 270,
|
|
1452
|
-
verticalPos: "top",
|
|
1453
|
-
horizontalPos: "center"
|
|
1454
|
-
}]
|
|
1455
|
-
}), t;
|
|
1456
|
-
}
|
|
1457
|
-
getDrawableElementsForBottomAxis() {
|
|
1458
|
-
let t = [];
|
|
1459
|
-
if (this.showAxisLine) {
|
|
1460
|
-
let i = this.boundingRect.y + this.axisConfig.axisLineWidth / 2;
|
|
1461
|
-
t.push({
|
|
1462
|
-
type: "path",
|
|
1463
|
-
groupTexts: ["bottom-axis", "axis-line"],
|
|
1464
|
-
data: [{
|
|
1465
|
-
path: `M ${this.boundingRect.x},${i} L ${this.boundingRect.x + this.boundingRect.width},${i}`,
|
|
1466
|
-
strokeFill: this.axisThemeConfig.axisLineColor,
|
|
1467
|
-
strokeWidth: this.axisConfig.axisLineWidth
|
|
1468
|
-
}]
|
|
1469
|
-
});
|
|
1470
|
-
}
|
|
1471
|
-
if (this.showLabel && t.push({
|
|
1472
|
-
type: "text",
|
|
1473
|
-
groupTexts: ["bottom-axis", "label"],
|
|
1474
|
-
data: this.getTickValues().map((i) => ({
|
|
1475
|
-
text: i.toString(),
|
|
1476
|
-
x: this.getScaleValue(i) + this.calculateOffsetByRotation("height"),
|
|
1477
|
-
y: this.boundingRect.y + this.axisConfig.labelPadding + (this.showTick ? this.axisConfig.tickLength : 0) + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0) + Math.abs(this.calculateOffsetByRotation("width")),
|
|
1478
|
-
fill: this.axisThemeConfig.labelColor,
|
|
1479
|
-
fontSize: this.axisConfig.labelFontSize,
|
|
1480
|
-
rotation: this.normalizedLabelRotationInRad * 180 / Math.PI,
|
|
1481
|
-
verticalPos: "top",
|
|
1482
|
-
horizontalPos: "center"
|
|
1483
|
-
}))
|
|
1484
|
-
}), this.showTick) {
|
|
1485
|
-
let i = this.boundingRect.y + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
|
|
1486
|
-
t.push({
|
|
1487
|
-
type: "path",
|
|
1488
|
-
groupTexts: ["bottom-axis", "ticks"],
|
|
1489
|
-
data: this.getTickValues().map((s) => ({
|
|
1490
|
-
path: `M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i + this.axisConfig.tickLength}`,
|
|
1491
|
-
strokeFill: this.axisThemeConfig.tickColor,
|
|
1492
|
-
strokeWidth: this.axisConfig.tickWidth
|
|
1493
|
-
}))
|
|
1494
|
-
});
|
|
1495
|
-
}
|
|
1496
|
-
return this.showTitle && t.push({
|
|
1497
|
-
type: "text",
|
|
1498
|
-
groupTexts: ["bottom-axis", "title"],
|
|
1499
|
-
data: [{
|
|
1500
|
-
text: this.title,
|
|
1501
|
-
x: this.range[0] + (this.range[1] - this.range[0]) / 2,
|
|
1502
|
-
y: this.boundingRect.y + this.boundingRect.height - this.axisConfig.titlePadding - this.titleTextHeight,
|
|
1503
|
-
fill: this.axisThemeConfig.titleColor,
|
|
1504
|
-
fontSize: this.axisConfig.titleFontSize,
|
|
1505
|
-
rotation: 0,
|
|
1506
|
-
verticalPos: "top",
|
|
1507
|
-
horizontalPos: "center"
|
|
1508
|
-
}]
|
|
1509
|
-
}), t;
|
|
1510
|
-
}
|
|
1511
|
-
getDrawableElementsForTopAxis() {
|
|
1512
|
-
let t = [];
|
|
1513
|
-
if (this.showAxisLine) {
|
|
1514
|
-
let i = this.boundingRect.y + this.boundingRect.height - this.axisConfig.axisLineWidth / 2;
|
|
1515
|
-
t.push({
|
|
1516
|
-
type: "path",
|
|
1517
|
-
groupTexts: ["top-axis", "axis-line"],
|
|
1518
|
-
data: [{
|
|
1519
|
-
path: `M ${this.boundingRect.x},${i} L ${this.boundingRect.x + this.boundingRect.width},${i}`,
|
|
1520
|
-
strokeFill: this.axisThemeConfig.axisLineColor,
|
|
1521
|
-
strokeWidth: this.axisConfig.axisLineWidth
|
|
1522
|
-
}]
|
|
1523
|
-
});
|
|
1524
|
-
}
|
|
1525
|
-
if (this.showLabel && t.push({
|
|
1526
|
-
type: "text",
|
|
1527
|
-
groupTexts: ["top-axis", "label"],
|
|
1528
|
-
data: this.getTickValues().map((i) => ({
|
|
1529
|
-
text: i.toString(),
|
|
1530
|
-
x: this.getScaleValue(i),
|
|
1531
|
-
y: this.boundingRect.y + (this.showTitle ? this.titleTextHeight + this.axisConfig.titlePadding * 2 : 0) + this.axisConfig.labelPadding,
|
|
1532
|
-
fill: this.axisThemeConfig.labelColor,
|
|
1533
|
-
fontSize: this.axisConfig.labelFontSize,
|
|
1534
|
-
rotation: 0,
|
|
1535
|
-
verticalPos: "top",
|
|
1536
|
-
horizontalPos: "center"
|
|
1537
|
-
}))
|
|
1538
|
-
}), this.showTick) {
|
|
1539
|
-
let i = this.boundingRect.y;
|
|
1540
|
-
t.push({
|
|
1541
|
-
type: "path",
|
|
1542
|
-
groupTexts: ["top-axis", "ticks"],
|
|
1543
|
-
data: this.getTickValues().map((s) => ({
|
|
1544
|
-
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)}`,
|
|
1545
|
-
strokeFill: this.axisThemeConfig.tickColor,
|
|
1546
|
-
strokeWidth: this.axisConfig.tickWidth
|
|
1547
|
-
}))
|
|
1548
|
-
});
|
|
1549
|
-
}
|
|
1550
|
-
return this.showTitle && t.push({
|
|
1551
|
-
type: "text",
|
|
1552
|
-
groupTexts: ["top-axis", "title"],
|
|
1553
|
-
data: [{
|
|
1554
|
-
text: this.title,
|
|
1555
|
-
x: this.boundingRect.x + this.boundingRect.width / 2,
|
|
1556
|
-
y: this.boundingRect.y + this.axisConfig.titlePadding,
|
|
1557
|
-
fill: this.axisThemeConfig.titleColor,
|
|
1558
|
-
fontSize: this.axisConfig.titleFontSize,
|
|
1559
|
-
rotation: 0,
|
|
1560
|
-
verticalPos: "top",
|
|
1561
|
-
horizontalPos: "center"
|
|
1562
|
-
}]
|
|
1563
|
-
}), t;
|
|
1564
|
-
}
|
|
1565
|
-
getDrawableElements() {
|
|
1566
|
-
if (this.axisPosition === "left") return this.getDrawableElementsForLeftAxis();
|
|
1567
|
-
if (this.axisPosition === "right") throw Error("Drawing of right axis is not implemented");
|
|
1568
|
-
return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
|
|
1569
|
-
}
|
|
1570
|
-
}, n(K, "BaseAxis"), K), Z, Mi = (Z = class extends Gt {
|
|
1571
|
-
constructor(t, i, s, a, h) {
|
|
1572
|
-
super(t, a, h, i), this.categories = s, this.scale = wt().domain(this.categories).range(this.getRange());
|
|
1573
|
-
}
|
|
1574
|
-
setRange(t) {
|
|
1575
|
-
super.setRange(t);
|
|
1576
|
-
}
|
|
1577
|
-
recalculateScale() {
|
|
1578
|
-
this.scale = wt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Ht.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
|
|
1579
|
-
}
|
|
1580
|
-
getTickValues() {
|
|
1581
|
-
return this.categories;
|
|
1582
|
-
}
|
|
1583
|
-
getScaleValue(t) {
|
|
1584
|
-
return this.scale(t) ?? this.getRange()[0];
|
|
1585
|
-
}
|
|
1586
|
-
}, n(Z, "BandAxis"), Z), J, Ei = (J = class extends Gt {
|
|
1587
|
-
constructor(t, i, s, a, h) {
|
|
1588
|
-
super(t, a, h, i), this.domain = s, this.scale = Xt().domain(this.domain).range(this.getRange());
|
|
1589
|
-
}
|
|
1590
|
-
getTickValues() {
|
|
1591
|
-
return this.scale.ticks();
|
|
1592
|
-
}
|
|
1593
|
-
recalculateScale() {
|
|
1594
|
-
let t = [...this.domain];
|
|
1595
|
-
this.axisPosition === "left" && t.reverse(), this.scale = Xt().domain(t).range(this.getRange());
|
|
1596
|
-
}
|
|
1597
|
-
getScaleValue(t) {
|
|
1598
|
-
return this.scale(t);
|
|
1599
|
-
}
|
|
1600
|
-
}, n(J, "LinearAxis"), J);
|
|
1601
|
-
function St(e, t, i, s) {
|
|
1602
|
-
let a = new Tt(s);
|
|
1603
|
-
return pt(e) ? new Mi(t, i, e.categories, e.title, a) : new Ei(t, i, [e.min, e.max], e.title, a);
|
|
1604
|
-
}
|
|
1605
|
-
n(St, "getAxis");
|
|
1606
|
-
var tt, Ii = (tt = class {
|
|
1607
|
-
constructor(t, i, s, a) {
|
|
1608
|
-
this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = s, this.chartThemeConfig = a, this.boundingRect = {
|
|
1609
|
-
x: 0,
|
|
1610
|
-
y: 0,
|
|
1611
|
-
width: 0,
|
|
1612
|
-
height: 0
|
|
1613
|
-
}, this.showChartTitle = !1;
|
|
1614
|
-
}
|
|
1615
|
-
setBoundingBoxXY(t) {
|
|
1616
|
-
this.boundingRect.x = t.x, this.boundingRect.y = t.y;
|
|
1617
|
-
}
|
|
1618
|
-
calculateSpace(t) {
|
|
1619
|
-
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;
|
|
1620
|
-
return i.width <= s && i.height <= a && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = s, this.boundingRect.height = a, this.showChartTitle = !0), {
|
|
1621
|
-
width: this.boundingRect.width,
|
|
1622
|
-
height: this.boundingRect.height
|
|
1623
|
-
};
|
|
1624
|
-
}
|
|
1625
|
-
getDrawableElements() {
|
|
1626
|
-
let t = [];
|
|
1627
|
-
return this.showChartTitle && t.push({
|
|
1628
|
-
groupTexts: ["chart-title"],
|
|
1629
|
-
type: "text",
|
|
1630
|
-
data: [{
|
|
1631
|
-
fontSize: this.chartConfig.titleFontSize,
|
|
1632
|
-
text: this.chartData.title,
|
|
1633
|
-
verticalPos: "middle",
|
|
1634
|
-
horizontalPos: "center",
|
|
1635
|
-
x: this.boundingRect.x + this.boundingRect.width / 2,
|
|
1636
|
-
y: this.boundingRect.y + this.boundingRect.height / 2,
|
|
1637
|
-
fill: this.chartThemeConfig.titleColor,
|
|
1638
|
-
rotation: 0
|
|
1639
|
-
}]
|
|
1640
|
-
}), t;
|
|
1641
|
-
}
|
|
1642
|
-
}, n(tt, "ChartTitle"), tt);
|
|
1643
|
-
function jt(e, t, i, s) {
|
|
1644
|
-
return new Ii(new Tt(s), e, t, i);
|
|
1645
|
-
}
|
|
1646
|
-
n(jt, "getChartTitleComponent");
|
|
1647
|
-
var $i = 0.75, zi = 0.5, Bi = 0.35;
|
|
1648
|
-
function kt(e) {
|
|
1649
|
-
return {
|
|
1650
|
-
fontSize: e,
|
|
1651
|
-
markerSize: e * $i,
|
|
1652
|
-
markerSpacing: e * Bi,
|
|
1653
|
-
itemSpacing: e * zi
|
|
1654
|
-
};
|
|
1655
|
-
}
|
|
1656
|
-
n(kt, "getLegendLayout");
|
|
1657
|
-
var it, Fi = (it = class {
|
|
1658
|
-
constructor(t, i, s, a) {
|
|
1659
|
-
this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = s, this.chartThemeConfig = a, this.boundingRect = {
|
|
1660
|
-
x: 0,
|
|
1661
|
-
y: 0,
|
|
1662
|
-
width: 0,
|
|
1663
|
-
height: 0
|
|
1664
|
-
}, this.visiblePlots = [];
|
|
1665
|
-
}
|
|
1666
|
-
setBoundingBoxXY(t) {
|
|
1667
|
-
this.boundingRect.x = t.x, this.boundingRect.y = t.y;
|
|
1668
|
-
}
|
|
1669
|
-
calculateSpace(t) {
|
|
1670
|
-
if (this.visiblePlots = this.chartConfig.showLegend ? this.chartData.plots.filter((p) => p.title) : [], this.visiblePlots.length === 0) return this.boundingRect.width = 0, this.boundingRect.height = 0, {
|
|
1671
|
-
width: 0,
|
|
1672
|
-
height: 0
|
|
1673
|
-
};
|
|
1674
|
-
let { fontSize: i, markerSize: s, markerSpacing: a, itemSpacing: h } = kt(this.chartConfig.legendFontSize), l = this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map((p) => p.title), i), x = this.chartConfig.legendPadding * 2 + s + a + l.width, g = this.chartConfig.legendPadding * 2 + this.visiblePlots.length * i + (this.visiblePlots.length - 1) * h;
|
|
1675
|
-
return x <= t.width && g <= t.height ? (this.boundingRect.width = x, this.boundingRect.height = g) : (this.visiblePlots = [], this.boundingRect.width = 0, this.boundingRect.height = 0), {
|
|
1676
|
-
width: this.boundingRect.width,
|
|
1677
|
-
height: this.boundingRect.height
|
|
1678
|
-
};
|
|
1679
|
-
}
|
|
1680
|
-
getDrawableElements() {
|
|
1681
|
-
if (this.visiblePlots.length === 0) return [];
|
|
1682
|
-
let { fontSize: t, markerSize: i, markerSpacing: s, itemSpacing: a } = kt(this.chartConfig.legendFontSize), h = t + a, l = this.boundingRect.x + this.chartConfig.legendPadding, x = this.boundingRect.y + this.chartConfig.legendPadding, g = [], p = [];
|
|
1683
|
-
for (let [R, A] of this.visiblePlots.entries()) if (xt(A)) g.push({
|
|
1684
|
-
x: l,
|
|
1685
|
-
y: x + R * h,
|
|
1686
|
-
width: i,
|
|
1687
|
-
height: i,
|
|
1688
|
-
fill: A.fill,
|
|
1689
|
-
strokeFill: A.fill,
|
|
1690
|
-
strokeWidth: 0
|
|
1691
|
-
});
|
|
1692
|
-
else {
|
|
1693
|
-
let m = x + R * h + i / 2;
|
|
1694
|
-
p.push({
|
|
1695
|
-
path: `M ${l},${m} L ${l + i},${m}`,
|
|
1696
|
-
strokeFill: A.strokeFill,
|
|
1697
|
-
strokeWidth: A.strokeWidth
|
|
1698
|
-
});
|
|
1699
|
-
}
|
|
1700
|
-
return [
|
|
1701
|
-
{
|
|
1702
|
-
groupTexts: ["legend", "markers"],
|
|
1703
|
-
type: "rect",
|
|
1704
|
-
data: g
|
|
1705
|
-
},
|
|
1706
|
-
{
|
|
1707
|
-
groupTexts: ["legend", "markers"],
|
|
1708
|
-
type: "path",
|
|
1709
|
-
data: p
|
|
1710
|
-
},
|
|
1711
|
-
{
|
|
1712
|
-
groupTexts: ["legend", "label"],
|
|
1713
|
-
type: "text",
|
|
1714
|
-
data: this.visiblePlots.map((R, A) => ({
|
|
1715
|
-
text: R.title,
|
|
1716
|
-
x: l + i + s,
|
|
1717
|
-
y: x + A * h + i / 2,
|
|
1718
|
-
fill: this.chartThemeConfig.legendTextColor,
|
|
1719
|
-
fontSize: t,
|
|
1720
|
-
rotation: 0,
|
|
1721
|
-
verticalPos: "middle",
|
|
1722
|
-
horizontalPos: "left"
|
|
1723
|
-
}))
|
|
1724
|
-
}
|
|
1725
|
-
];
|
|
1726
|
-
}
|
|
1727
|
-
}, n(it, "ChartLegend"), it);
|
|
1728
|
-
function Qt(e, t, i, s) {
|
|
1729
|
-
return new Fi(new Tt(s), e, t, i);
|
|
1730
|
-
}
|
|
1731
|
-
n(Qt, "getChartLegendComponent");
|
|
1732
|
-
var et, Oi = (et = class {
|
|
1733
|
-
constructor(t, i, s, a, h) {
|
|
1734
|
-
this.plotData = t, this.xAxis = i, this.yAxis = s, this.orientation = a, this.plotIndex = h;
|
|
1735
|
-
}
|
|
1736
|
-
getDrawableElement() {
|
|
1737
|
-
let t = this.plotData.data.map((a) => [this.xAxis.getScaleValue(a[0]), this.yAxis.getScaleValue(a[1])]), i;
|
|
1738
|
-
if (i = this.orientation === "horizontal" ? Wt().y((a) => a[0]).x((a) => a[1])(t) : Wt().x((a) => a[0]).y((a) => a[1])(t), !i) return [];
|
|
1739
|
-
let s = [{
|
|
1740
|
-
groupTexts: ["plot", `line-plot-${this.plotIndex}`],
|
|
1741
|
-
type: "path",
|
|
1742
|
-
data: [{
|
|
1743
|
-
path: i,
|
|
1744
|
-
strokeFill: this.plotData.strokeFill,
|
|
1745
|
-
strokeWidth: this.plotData.strokeWidth
|
|
1746
|
-
}]
|
|
1747
|
-
}];
|
|
1748
|
-
if (this.plotData.pointLabels && this.plotData.pointLabels.length > 0) {
|
|
1749
|
-
let a = [];
|
|
1750
|
-
for (let [h, [l, x]] of t.entries()) {
|
|
1751
|
-
let g = this.plotData.pointLabels[h];
|
|
1752
|
-
g && (this.orientation === "horizontal" ? a.push({
|
|
1753
|
-
x: x + 10,
|
|
1754
|
-
y: l,
|
|
1755
|
-
text: g,
|
|
1756
|
-
fill: this.plotData.strokeFill,
|
|
1757
|
-
verticalPos: "middle",
|
|
1758
|
-
horizontalPos: "left",
|
|
1759
|
-
fontSize: 12,
|
|
1760
|
-
rotation: 0
|
|
1761
|
-
}) : a.push({
|
|
1762
|
-
x: l,
|
|
1763
|
-
y: x - 10,
|
|
1764
|
-
text: g,
|
|
1765
|
-
fill: this.plotData.strokeFill,
|
|
1766
|
-
verticalPos: "middle",
|
|
1767
|
-
horizontalPos: "center",
|
|
1768
|
-
fontSize: 12,
|
|
1769
|
-
rotation: 0
|
|
1770
|
-
}));
|
|
1771
|
-
}
|
|
1772
|
-
a.length > 0 && s.push({
|
|
1773
|
-
groupTexts: [
|
|
1774
|
-
"plot",
|
|
1775
|
-
`line-plot-${this.plotIndex}`,
|
|
1776
|
-
"labels"
|
|
1777
|
-
],
|
|
1778
|
-
type: "text",
|
|
1779
|
-
data: a
|
|
1780
|
-
});
|
|
1781
|
-
}
|
|
1782
|
-
return s;
|
|
1783
|
-
}
|
|
1784
|
-
}, n(et, "LinePlot"), et), st, Wi = (st = class {
|
|
1785
|
-
constructor(t, i, s, a, h, l) {
|
|
1786
|
-
this.barData = t, this.boundingRect = i, this.xAxis = s, this.yAxis = a, this.orientation = h, this.plotIndex = l;
|
|
1787
|
-
}
|
|
1788
|
-
getDrawableElement() {
|
|
1789
|
-
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;
|
|
1790
|
-
return this.orientation === "horizontal" ? [{
|
|
1791
|
-
groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
|
|
1792
|
-
type: "rect",
|
|
1793
|
-
data: t.map((a) => ({
|
|
1794
|
-
x: this.boundingRect.x,
|
|
1795
|
-
y: a[0] - s,
|
|
1796
|
-
height: i,
|
|
1797
|
-
width: a[1] - this.boundingRect.x,
|
|
1798
|
-
fill: this.barData.fill,
|
|
1799
|
-
strokeWidth: 0,
|
|
1800
|
-
strokeFill: this.barData.fill
|
|
1801
|
-
}))
|
|
1802
|
-
}] : [{
|
|
1803
|
-
groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
|
|
1804
|
-
type: "rect",
|
|
1805
|
-
data: t.map((a) => ({
|
|
1806
|
-
x: a[0] - s,
|
|
1807
|
-
y: a[1],
|
|
1808
|
-
width: i,
|
|
1809
|
-
height: this.boundingRect.y + this.boundingRect.height - a[1],
|
|
1810
|
-
fill: this.barData.fill,
|
|
1811
|
-
strokeWidth: 0,
|
|
1812
|
-
strokeFill: this.barData.fill
|
|
1813
|
-
}))
|
|
1814
|
-
}];
|
|
1815
|
-
}
|
|
1816
|
-
}, n(st, "BarPlot"), st), at, Xi = (at = class {
|
|
1817
|
-
constructor(t, i, s) {
|
|
1818
|
-
this.chartConfig = t, this.chartData = i, this.chartThemeConfig = s, this.boundingRect = {
|
|
1819
|
-
x: 0,
|
|
1820
|
-
y: 0,
|
|
1821
|
-
width: 0,
|
|
1822
|
-
height: 0
|
|
1823
|
-
};
|
|
1824
|
-
}
|
|
1825
|
-
setAxes(t, i) {
|
|
1826
|
-
this.xAxis = t, this.yAxis = i;
|
|
1827
|
-
}
|
|
1828
|
-
setBoundingBoxXY(t) {
|
|
1829
|
-
this.boundingRect.x = t.x, this.boundingRect.y = t.y;
|
|
1830
|
-
}
|
|
1831
|
-
calculateSpace(t) {
|
|
1832
|
-
return this.boundingRect.width = t.width, this.boundingRect.height = t.height, {
|
|
1833
|
-
width: this.boundingRect.width,
|
|
1834
|
-
height: this.boundingRect.height
|
|
1835
|
-
};
|
|
1836
|
-
}
|
|
1837
|
-
getDrawableElements() {
|
|
1838
|
-
if (!(this.xAxis && this.yAxis)) throw Error("Axes must be passed to render Plots");
|
|
1839
|
-
let t = [];
|
|
1840
|
-
for (let [i, s] of this.chartData.plots.entries()) switch (s.type) {
|
|
1841
|
-
case "line":
|
|
1842
|
-
{
|
|
1843
|
-
let a = new Oi(s, this.xAxis, this.yAxis, this.chartConfig.chartOrientation, i);
|
|
1844
|
-
t.push(...a.getDrawableElement());
|
|
1845
|
-
}
|
|
1846
|
-
break;
|
|
1847
|
-
case "bar": {
|
|
1848
|
-
let a = new Wi(s, this.boundingRect, this.xAxis, this.yAxis, this.chartConfig.chartOrientation, i);
|
|
1849
|
-
t.push(...a.getDrawableElement());
|
|
1850
|
-
}
|
|
1851
|
-
}
|
|
1852
|
-
return t;
|
|
1853
|
-
}
|
|
1854
|
-
}, n(at, "BasePlot"), at);
|
|
1855
|
-
function qt(e, t, i) {
|
|
1856
|
-
return new Xi(e, t, i);
|
|
1857
|
-
}
|
|
1858
|
-
n(qt, "getPlotComponent");
|
|
1859
|
-
var nt, Vi = (nt = class {
|
|
1860
|
-
constructor(t, i, s, a) {
|
|
1861
|
-
this.chartConfig = t, this.chartData = i, this.componentStore = {
|
|
1862
|
-
title: jt(t, i, s, a),
|
|
1863
|
-
plot: qt(t, i, s),
|
|
1864
|
-
legend: Qt(t, i, s, a),
|
|
1865
|
-
xAxis: St(i.xAxis, t.xAxis, {
|
|
1866
|
-
titleColor: s.xAxisTitleColor,
|
|
1867
|
-
labelColor: s.xAxisLabelColor,
|
|
1868
|
-
tickColor: s.xAxisTickColor,
|
|
1869
|
-
axisLineColor: s.xAxisLineColor
|
|
1870
|
-
}, a),
|
|
1871
|
-
yAxis: St(i.yAxis, t.yAxis, {
|
|
1872
|
-
titleColor: s.yAxisTitleColor,
|
|
1873
|
-
labelColor: s.yAxisLabelColor,
|
|
1874
|
-
tickColor: s.yAxisTickColor,
|
|
1875
|
-
axisLineColor: s.yAxisLineColor
|
|
1876
|
-
}, a)
|
|
1877
|
-
};
|
|
1878
|
-
}
|
|
1879
|
-
calculateVerticalSpace() {
|
|
1880
|
-
let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, a = 0, h = {
|
|
1881
|
-
width: 0,
|
|
1882
|
-
height: 0
|
|
1883
|
-
}, l = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), x = Math.floor(i * this.chartConfig.plotReservedSpacePercent / 100), g = this.componentStore.plot.calculateSpace({
|
|
1884
|
-
width: l,
|
|
1885
|
-
height: x
|
|
1886
|
-
});
|
|
1887
|
-
t -= g.width, i -= g.height, g = this.componentStore.title.calculateSpace({
|
|
1888
|
-
width: this.chartConfig.width,
|
|
1889
|
-
height: i
|
|
1890
|
-
}), a = g.height, i -= g.height, this.componentStore.xAxis.setAxisPosition("bottom"), g = this.componentStore.xAxis.calculateSpace({
|
|
1891
|
-
width: t,
|
|
1892
|
-
height: i
|
|
1893
|
-
}), i -= g.height, this.componentStore.yAxis.setAxisPosition("left"), g = this.componentStore.yAxis.calculateSpace({
|
|
1894
|
-
width: t,
|
|
1895
|
-
height: i
|
|
1896
|
-
}), s = g.width, t -= g.width, h = this.componentStore.legend.calculateSpace({
|
|
1897
|
-
width: t,
|
|
1898
|
-
height: x
|
|
1899
|
-
}), t -= h.width, t > 0 && (l += t, t = 0), i > 0 && (x += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1900
|
-
width: l,
|
|
1901
|
-
height: x
|
|
1902
|
-
}), this.componentStore.plot.setBoundingBoxXY({
|
|
1903
|
-
x: s,
|
|
1904
|
-
y: a
|
|
1905
|
-
}), this.componentStore.legend.setBoundingBoxXY({
|
|
1906
|
-
x: s + l,
|
|
1907
|
-
y: a + Math.max((x - h.height) / 2, 0)
|
|
1908
|
-
}), this.componentStore.xAxis.setRange([s, s + l]), this.componentStore.xAxis.setBoundingBoxXY({
|
|
1909
|
-
x: s,
|
|
1910
|
-
y: a + x
|
|
1911
|
-
}), this.componentStore.yAxis.setRange([a, a + x]), this.componentStore.yAxis.setBoundingBoxXY({
|
|
1912
|
-
x: 0,
|
|
1913
|
-
y: a
|
|
1914
|
-
}), this.chartData.plots.some((p) => xt(p)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1915
|
-
}
|
|
1916
|
-
calculateHorizontalSpace() {
|
|
1917
|
-
let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, a = 0, h = 0, l = {
|
|
1918
|
-
width: 0,
|
|
1919
|
-
height: 0
|
|
1920
|
-
}, x = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), g = Math.floor(i * this.chartConfig.plotReservedSpacePercent / 100), p = this.componentStore.plot.calculateSpace({
|
|
1921
|
-
width: x,
|
|
1922
|
-
height: g
|
|
1923
|
-
});
|
|
1924
|
-
t -= p.width, i -= p.height, p = this.componentStore.title.calculateSpace({
|
|
1925
|
-
width: this.chartConfig.width,
|
|
1926
|
-
height: i
|
|
1927
|
-
}), s = p.height, i -= p.height, this.componentStore.xAxis.setAxisPosition("left"), p = this.componentStore.xAxis.calculateSpace({
|
|
1928
|
-
width: t,
|
|
1929
|
-
height: i
|
|
1930
|
-
}), t -= p.width, a = p.width, this.componentStore.yAxis.setAxisPosition("top"), p = this.componentStore.yAxis.calculateSpace({
|
|
1931
|
-
width: t,
|
|
1932
|
-
height: i
|
|
1933
|
-
}), i -= p.height, h = s + p.height, l = this.componentStore.legend.calculateSpace({
|
|
1934
|
-
width: t,
|
|
1935
|
-
height: g
|
|
1936
|
-
}), t -= l.width, t > 0 && (x += t, t = 0), i > 0 && (g += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1937
|
-
width: x,
|
|
1938
|
-
height: g
|
|
1939
|
-
}), this.componentStore.plot.setBoundingBoxXY({
|
|
1940
|
-
x: a,
|
|
1941
|
-
y: h
|
|
1942
|
-
}), this.componentStore.legend.setBoundingBoxXY({
|
|
1943
|
-
x: a + x,
|
|
1944
|
-
y: h + Math.max((g - l.height) / 2, 0)
|
|
1945
|
-
}), this.componentStore.yAxis.setRange([a, a + x]), this.componentStore.yAxis.setBoundingBoxXY({
|
|
1946
|
-
x: a,
|
|
1947
|
-
y: s
|
|
1948
|
-
}), this.componentStore.xAxis.setRange([h, h + g]), this.componentStore.xAxis.setBoundingBoxXY({
|
|
1949
|
-
x: 0,
|
|
1950
|
-
y: h
|
|
1951
|
-
}), this.chartData.plots.some((R) => xt(R)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1952
|
-
}
|
|
1953
|
-
calculateSpace() {
|
|
1954
|
-
this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
|
|
1955
|
-
}
|
|
1956
|
-
getDrawableElement() {
|
|
1957
|
-
this.calculateSpace();
|
|
1958
|
-
let t = [];
|
|
1959
|
-
this.componentStore.plot.setAxes(this.componentStore.xAxis, this.componentStore.yAxis);
|
|
1960
|
-
for (let i of Object.values(this.componentStore)) t.push(...i.getDrawableElements());
|
|
1961
|
-
return t;
|
|
1962
|
-
}
|
|
1963
|
-
}, n(nt, "Orchestrator"), nt), ht, Ni = (ht = class {
|
|
1964
|
-
static build(t, i, s, a) {
|
|
1965
|
-
return new Vi(t, i, s, a).getDrawableElement();
|
|
1966
|
-
}
|
|
1967
|
-
}, n(ht, "XYChartBuilder"), ht), rt = 0, Kt, lt = Pt(), ct = Lt(), b = vt(), Rt = ct.plotColorPalette.split(",").map((e) => e.trim()), ft = !1, Dt = !1;
|
|
1968
|
-
function Lt() {
|
|
1969
|
-
let e = Ri(), t = _t();
|
|
1970
|
-
return Ut(e.xyChart, t.themeVariables.xyChart);
|
|
1971
|
-
}
|
|
1972
|
-
n(Lt, "getChartDefaultThemeConfig");
|
|
1973
|
-
function Pt() {
|
|
1974
|
-
let e = _t();
|
|
1975
|
-
return Ut(ki.xyChart, e.xyChart);
|
|
1976
|
-
}
|
|
1977
|
-
n(Pt, "getChartDefaultConfig");
|
|
1978
|
-
function vt() {
|
|
1979
|
-
return {
|
|
1980
|
-
yAxis: {
|
|
1981
|
-
type: "linear",
|
|
1982
|
-
title: "",
|
|
1983
|
-
min: 1 / 0,
|
|
1984
|
-
max: -1 / 0
|
|
1985
|
-
},
|
|
1986
|
-
xAxis: {
|
|
1987
|
-
type: "band",
|
|
1988
|
-
title: "",
|
|
1989
|
-
categories: []
|
|
1990
|
-
},
|
|
1991
|
-
title: "",
|
|
1992
|
-
plots: []
|
|
1993
|
-
};
|
|
1994
|
-
}
|
|
1995
|
-
n(vt, "getChartDefaultData");
|
|
1996
|
-
function U(e) {
|
|
1997
|
-
let t = _t();
|
|
1998
|
-
return _i(e.trim(), t);
|
|
1999
|
-
}
|
|
2000
|
-
n(U, "textSanitizer");
|
|
2001
|
-
function Zt(e) {
|
|
2002
|
-
Kt = e;
|
|
2003
|
-
}
|
|
2004
|
-
n(Zt, "setTmpSVGG");
|
|
2005
|
-
function Jt(e) {
|
|
2006
|
-
e === "horizontal" ? lt.chartOrientation = "horizontal" : lt.chartOrientation = "vertical";
|
|
2007
|
-
}
|
|
2008
|
-
n(Jt, "setOrientation");
|
|
2009
|
-
function ti(e) {
|
|
2010
|
-
b.xAxis.title = U(e.text);
|
|
2011
|
-
}
|
|
2012
|
-
n(ti, "setXAxisTitle");
|
|
2013
|
-
function Mt(e, t) {
|
|
2014
|
-
b.xAxis = {
|
|
2015
|
-
type: "linear",
|
|
2016
|
-
title: b.xAxis.title,
|
|
2017
|
-
min: e,
|
|
2018
|
-
max: t
|
|
2019
|
-
}, ft = !0;
|
|
2020
|
-
}
|
|
2021
|
-
n(Mt, "setXAxisRangeData");
|
|
2022
|
-
function ii(e) {
|
|
2023
|
-
b.xAxis = {
|
|
2024
|
-
type: "band",
|
|
2025
|
-
title: b.xAxis.title,
|
|
2026
|
-
categories: e.map((t) => U(t.text))
|
|
2027
|
-
}, ft = !0;
|
|
2028
|
-
}
|
|
2029
|
-
n(ii, "setXAxisBand");
|
|
2030
|
-
function ei(e) {
|
|
2031
|
-
b.yAxis.title = U(e.text);
|
|
2032
|
-
}
|
|
2033
|
-
n(ei, "setYAxisTitle");
|
|
2034
|
-
function si(e, t) {
|
|
2035
|
-
b.yAxis = {
|
|
2036
|
-
type: "linear",
|
|
2037
|
-
title: b.yAxis.title,
|
|
2038
|
-
min: e,
|
|
2039
|
-
max: t
|
|
2040
|
-
}, Dt = !0;
|
|
2041
|
-
}
|
|
2042
|
-
n(si, "setYAxisRangeData");
|
|
2043
|
-
function ai(e) {
|
|
2044
|
-
let t = Math.min(...e), i = Math.max(...e), s = Q(b.yAxis) ? b.yAxis.min : 1 / 0, a = Q(b.yAxis) ? b.yAxis.max : -1 / 0;
|
|
2045
|
-
b.yAxis = {
|
|
2046
|
-
type: "linear",
|
|
2047
|
-
title: b.yAxis.title,
|
|
2048
|
-
min: Math.min(s, t),
|
|
2049
|
-
max: Math.max(a, i)
|
|
2050
|
-
};
|
|
2051
|
-
}
|
|
2052
|
-
n(ai, "setYAxisRangeFromPlotData");
|
|
2053
|
-
function Et(e) {
|
|
2054
|
-
let t = [];
|
|
2055
|
-
if (e.length === 0) return t;
|
|
2056
|
-
if (!ft) {
|
|
2057
|
-
let i = Q(b.xAxis) ? b.xAxis.min : 1 / 0, s = Q(b.xAxis) ? b.xAxis.max : -1 / 0;
|
|
2058
|
-
Mt(Math.min(i, 1), Math.max(s, e.length));
|
|
2059
|
-
}
|
|
2060
|
-
if (pt(b.xAxis) && e.length > b.xAxis.categories.length && (e = e.slice(0, b.xAxis.categories.length)), Dt || ai(e), pt(b.xAxis) && (t = b.xAxis.categories.map((i, s) => [i, e[s]])), Q(b.xAxis)) {
|
|
2061
|
-
let i = b.xAxis.min, s = b.xAxis.max;
|
|
2062
|
-
if (e.length === 1) t = [[`${i}`, e[0]]];
|
|
2063
|
-
else {
|
|
2064
|
-
let a = (s - i) / (e.length - 1);
|
|
2065
|
-
t = e.map((h, l) => [`${i + l * a}`, h]);
|
|
2066
|
-
}
|
|
2067
|
-
}
|
|
2068
|
-
return t;
|
|
2069
|
-
}
|
|
2070
|
-
n(Et, "transformDataWithoutCategory");
|
|
2071
|
-
function It(e) {
|
|
2072
|
-
return Rt[e === 0 ? 0 : e % Rt.length];
|
|
2073
|
-
}
|
|
2074
|
-
n(It, "getPlotColorFromPalette");
|
|
2075
|
-
function ni(e, t) {
|
|
2076
|
-
let i = t.map((l) => l.value), s = t.map((l) => l.label ? U(l.label) : ""), a = Et(i), h = s.some((l) => l !== "");
|
|
2077
|
-
b.plots.push({
|
|
2078
|
-
type: "line",
|
|
2079
|
-
title: U(e.text),
|
|
2080
|
-
strokeFill: It(rt),
|
|
2081
|
-
strokeWidth: 2,
|
|
2082
|
-
data: a,
|
|
2083
|
-
...h ? { pointLabels: s } : {}
|
|
2084
|
-
}), rt++;
|
|
2085
|
-
}
|
|
2086
|
-
n(ni, "setLineData");
|
|
2087
|
-
function hi(e, t) {
|
|
2088
|
-
let i = Et(t.map((s) => s.value));
|
|
2089
|
-
b.plots.push({
|
|
2090
|
-
type: "bar",
|
|
2091
|
-
title: U(e.text),
|
|
2092
|
-
fill: It(rt),
|
|
2093
|
-
data: i
|
|
2094
|
-
}), rt++;
|
|
2095
|
-
}
|
|
2096
|
-
n(hi, "setBarData");
|
|
2097
|
-
function oi() {
|
|
2098
|
-
if (b.plots.length === 0) throw Error("No Plot to render, please provide a plot with some data");
|
|
2099
|
-
return b.title = Yt(), Ni.build(lt, b, ct, Kt);
|
|
2100
|
-
}
|
|
2101
|
-
n(oi, "getDrawableElem");
|
|
2102
|
-
function ri() {
|
|
2103
|
-
return ct;
|
|
2104
|
-
}
|
|
2105
|
-
n(ri, "getChartThemeConfig");
|
|
2106
|
-
function li() {
|
|
2107
|
-
return lt;
|
|
2108
|
-
}
|
|
2109
|
-
n(li, "getChartConfig");
|
|
2110
|
-
function ci() {
|
|
2111
|
-
return b;
|
|
2112
|
-
}
|
|
2113
|
-
n(ci, "getXYChartData");
|
|
2114
|
-
var ji = {
|
|
2115
|
-
parser: vi,
|
|
2116
|
-
db: {
|
|
2117
|
-
getDrawableElem: oi,
|
|
2118
|
-
clear: /* @__PURE__ */ n(function() {
|
|
2119
|
-
Si(), rt = 0, lt = Pt(), b = vt(), ct = Lt(), Rt = ct.plotColorPalette.split(",").map((e) => e.trim()), ft = !1, Dt = !1;
|
|
2120
|
-
}, "clear"),
|
|
2121
|
-
setAccTitle: Ai,
|
|
2122
|
-
getAccTitle: bi,
|
|
2123
|
-
setDiagramTitle: yi,
|
|
2124
|
-
getDiagramTitle: Yt,
|
|
2125
|
-
getAccDescription: mi,
|
|
2126
|
-
setAccDescription: fi,
|
|
2127
|
-
setOrientation: Jt,
|
|
2128
|
-
setXAxisTitle: ti,
|
|
2129
|
-
setXAxisRangeData: Mt,
|
|
2130
|
-
setXAxisBand: ii,
|
|
2131
|
-
setYAxisTitle: ei,
|
|
2132
|
-
setYAxisRangeData: si,
|
|
2133
|
-
setLineData: ni,
|
|
2134
|
-
setBarData: hi,
|
|
2135
|
-
setTmpSVGG: Zt,
|
|
2136
|
-
getChartThemeConfig: ri,
|
|
2137
|
-
getChartConfig: li,
|
|
2138
|
-
getXYChartData: ci
|
|
2139
|
-
},
|
|
2140
|
-
renderer: { draw: /* @__PURE__ */ n((e, t, i, s) => {
|
|
2141
|
-
let a = s.db, h = a.getChartThemeConfig(), l = a.getChartConfig(), x = a.getXYChartData().plots[0].data.map((y) => y[1]);
|
|
2142
|
-
function g(y) {
|
|
2143
|
-
return y === "top" ? "text-before-edge" : "middle";
|
|
2144
|
-
}
|
|
2145
|
-
n(g, "getDominantBaseLine");
|
|
2146
|
-
function p(y) {
|
|
2147
|
-
return y === "left" ? "start" : y === "right" ? "end" : "middle";
|
|
2148
|
-
}
|
|
2149
|
-
n(p, "getTextAnchor");
|
|
2150
|
-
function R(y) {
|
|
2151
|
-
return `translate(${y.x}, ${y.y}) rotate(${y.rotation || 0})`;
|
|
2152
|
-
}
|
|
2153
|
-
n(R, "getTextTransformation"), Ht.debug(`Rendering xychart chart
|
|
2154
|
-
` + e);
|
|
2155
|
-
let A = wi(t), m = A.append("g").attr("class", "main"), E = m.append("rect").attr("width", l.width).attr("height", l.height).attr("class", "background");
|
|
2156
|
-
Ci(A, l.height, l.width, !0), A.attr("viewBox", `0 0 ${l.width} ${l.height}`), E.attr("fill", h.backgroundColor), a.setTmpSVGG(A.append("g").attr("class", "mermaid-tmp-group"));
|
|
2157
|
-
let v = a.getDrawableElem(), M = {};
|
|
2158
|
-
function I(y) {
|
|
2159
|
-
let L = m, c = "";
|
|
2160
|
-
for (let [z] of y.entries()) {
|
|
2161
|
-
let W = m;
|
|
2162
|
-
z > 0 && M[c] && (W = M[c]), c += y[z], L = M[c], L ||= M[c] = W.append("g").attr("class", y[z]);
|
|
2163
|
-
}
|
|
2164
|
-
return L;
|
|
2165
|
-
}
|
|
2166
|
-
n(I, "getGroup");
|
|
2167
|
-
for (let y of v) {
|
|
2168
|
-
if (y.data.length === 0) continue;
|
|
2169
|
-
let L = I(y.groupTexts);
|
|
2170
|
-
switch (y.type) {
|
|
2171
|
-
case "rect":
|
|
2172
|
-
if (L.selectAll("rect").data(y.data).enter().append("rect").attr("x", (c) => c.x).attr("y", (c) => c.y).attr("width", (c) => c.width).attr("height", (c) => c.height).attr("fill", (c) => c.fill).attr("stroke", (c) => c.strokeFill).attr("stroke-width", (c) => c.strokeWidth), l.showDataLabel) {
|
|
2173
|
-
let c = l.showDataLabelOutsideBar;
|
|
2174
|
-
if (l.chartOrientation === "horizontal") {
|
|
2175
|
-
let z = function(S, T) {
|
|
2176
|
-
let { data: B, label: V } = S;
|
|
2177
|
-
return T * V.length * W <= B.width - G;
|
|
2178
|
-
};
|
|
2179
|
-
n(z, "fitsHorizontally");
|
|
2180
|
-
let W = 0.7, G = 10, X = y.data.map((S, T) => ({
|
|
2181
|
-
data: S,
|
|
2182
|
-
label: x[T].toString()
|
|
2183
|
-
})).filter((S) => S.data.width > 0 && S.data.height > 0), C = X.map((S) => {
|
|
2184
|
-
let { data: T } = S, B = T.height * 0.7;
|
|
2185
|
-
for (; !z(S, B) && B > 0; ) --B;
|
|
2186
|
-
return B;
|
|
2187
|
-
}), _ = Math.floor(Math.min(...C)), D = /* @__PURE__ */ n((S) => c ? S.data.x + S.data.width + 10 : S.data.x + S.data.width - 10, "determineLabelXPosition");
|
|
2188
|
-
L.selectAll("text").data(X).enter().append("text").attr("x", D).attr("y", (S) => S.data.y + S.data.height / 2).attr("text-anchor", c ? "start" : "end").attr("dominant-baseline", "middle").attr("fill", h.dataLabelColor).attr("font-size", `${_}px`).text((S) => S.label);
|
|
2189
|
-
} else {
|
|
2190
|
-
let z = function(_, D, S) {
|
|
2191
|
-
let { data: T, label: B } = _, V = D * B.length * 0.7, o = T.x + T.width / 2, w = o - V / 2, d = o + V / 2, u = w >= T.x && d <= T.x + T.width, k = T.y + S + D <= T.y + T.height;
|
|
2192
|
-
return u && k;
|
|
2193
|
-
};
|
|
2194
|
-
n(z, "fitsInBar");
|
|
2195
|
-
let W = y.data.map((_, D) => ({
|
|
2196
|
-
data: _,
|
|
2197
|
-
label: x[D].toString()
|
|
2198
|
-
})).filter((_) => _.data.width > 0 && _.data.height > 0), G = W.map((_) => {
|
|
2199
|
-
let { data: D, label: S } = _, T = D.width / (S.length * 0.7);
|
|
2200
|
-
for (; !z(_, T, 10) && T > 0; ) --T;
|
|
2201
|
-
return T;
|
|
2202
|
-
}), X = Math.floor(Math.min(...G)), C = /* @__PURE__ */ n((_) => c ? _.data.y - 10 : _.data.y + 10, "determineLabelYPosition");
|
|
2203
|
-
L.selectAll("text").data(W).enter().append("text").attr("x", (_) => _.data.x + _.data.width / 2).attr("y", C).attr("text-anchor", "middle").attr("dominant-baseline", c ? "auto" : "hanging").attr("fill", h.dataLabelColor).attr("font-size", `${X}px`).text((_) => _.label);
|
|
2204
|
-
}
|
|
2205
|
-
}
|
|
2206
|
-
break;
|
|
2207
|
-
case "text":
|
|
2208
|
-
L.selectAll("text").data(y.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (c) => c.fill).attr("font-size", (c) => c.fontSize).attr("dominant-baseline", (c) => g(c.verticalPos)).attr("text-anchor", (c) => p(c.horizontalPos)).attr("transform", (c) => R(c)).text((c) => c.text);
|
|
2209
|
-
break;
|
|
2210
|
-
case "path":
|
|
2211
|
-
L.selectAll("path").data(y.data).enter().append("path").attr("d", (c) => c.path).attr("fill", (c) => c.fill ? c.fill : "none").attr("stroke", (c) => c.strokeFill).attr("stroke-width", (c) => c.strokeWidth);
|
|
2212
|
-
}
|
|
2213
|
-
}
|
|
2214
|
-
}, "draw") }
|
|
2215
|
-
};
|
|
2216
|
-
export {
|
|
2217
|
-
ji as diagram
|
|
2218
|
-
};
|