lowcoder-comps 0.0.26 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/000297fb.js +5 -0
  2. package/{92fb34a2.js → 0205ce17.js} +27 -27
  3. package/{3f63d12d.js → 1269154d.js} +32711 -34763
  4. package/{6fbc4c21.js → 1f088099.js} +18 -18
  5. package/{2b3b3386.js → 2ae47d58.js} +548 -548
  6. package/2ff7471d.js +9 -0
  7. package/{44cd1a62.js → 42b75267.js} +11 -11
  8. package/{ed8c376c.js → 45a7c119.js} +286 -293
  9. package/4bc5ef7f.js +881 -0
  10. package/{90d3581f.js → 4c822e6b.js} +133 -132
  11. package/5bb002c8.js +64 -0
  12. package/{82c8e71b.js → 6517e88b.js} +12 -10
  13. package/65d3daa9.js +391 -0
  14. package/{87b4699c.js → 6909d829.js} +1 -1
  15. package/{b28dda80.js → 711961f8.js} +13 -12
  16. package/77491f00.js +86 -0
  17. package/7805c934.js +455 -0
  18. package/7dc7ce37.js +19104 -0
  19. package/{c3caea77.js → 83feec48.js} +45 -43
  20. package/{c66d9114.js → 8c8fb30b.js} +25 -24
  21. package/{3220cb2e.js → 945d7302.js} +2 -1
  22. package/{4891fa68.js → 9a9b397d.js} +6 -5
  23. package/{3ebbaeae.js → a2d32dbb.js} +18 -18
  24. package/{2c0287e1.js → a39d3869.js} +2 -2
  25. package/a40faea7.js +11624 -0
  26. package/b7bda09a.js +237 -0
  27. package/{5f138044.js → b99f5b2a.js} +158 -147
  28. package/bcc07d29.js +1536 -0
  29. package/c2bf7d82.js +819 -0
  30. package/c4bd6ed7.js +1269 -0
  31. package/c4c5f13b.js +8 -0
  32. package/d2bae1f4.js +2284 -0
  33. package/d4b9d281.js +1089 -0
  34. package/{11b36d97.js → d4ba48b2.js} +148 -145
  35. package/dd0ec77a.js +48428 -0
  36. package/{c889073f.js → e0bacb89.js} +1 -1
  37. package/{b70abaaf.js → e437d53e.js} +1 -1
  38. package/e95fa522.js +1102 -0
  39. package/ed46c11a.js +1276 -0
  40. package/f2b8cbc8.js +25 -0
  41. package/index.js +2 -2
  42. package/package.json +1 -1
  43. package/33035c6f.js +0 -86
  44. package/3f82489c.js +0 -2396
  45. package/454ca826.js +0 -46724
  46. package/4938ecf8.js +0 -22
  47. package/558b96ef.js +0 -18798
  48. package/596b7f71.js +0 -365
  49. package/637a168a.js +0 -235
  50. package/765a2a38.js +0 -1055
  51. package/8ed940ee.js +0 -786
  52. package/9c1ceb2f.js +0 -448
  53. package/aad4f2fa.js +0 -1235
  54. package/b053e17f.js +0 -1000
  55. package/bed24264.js +0 -2192
  56. package/d3478475.js +0 -64
@@ -1,8 +1,8 @@
1
- import { U as H, V as at, B as lt, D as ct, s as ot, g as ht, b as ut, a as yt, E as ft, d as pt, c as et, l as it, W as gt, T as dt, i as mt, X as _t } from "./3f63d12d.js";
2
- import { a as tt } from "./33035c6f.js";
3
- import { o as vt } from "./92e85b65.js";
4
- import { a as xt } from "./2ff2c7a6.js";
5
- import { c as z } from "./256b619e.js";
1
+ import { U as H, V as at, C as lt, D as ct, s as ot, g as ht, b as ut, a as yt, E as ft, d as pt, c as et, l as it, W as gt, T as dt, X as mt, i as _t } from "./1269154d.js";
2
+ import { a as tt } from "./77491f00.js";
3
+ import { o as xt } from "./92e85b65.js";
4
+ import { a as vt } from "./2ff2c7a6.js";
5
+ import { c as F } from "./256b619e.js";
6
6
  import "./f9637058.js";
7
7
  function kt(e, u) {
8
8
  return u < e ? -1 : u > e ? 1 : u >= e ? 0 : NaN;
@@ -11,80 +11,80 @@ function bt(e) {
11
11
  return e;
12
12
  }
13
13
  function St() {
14
- var e = bt, u = kt, $ = null, f = z(0), b = z(H), w = z(0);
15
- function o(r) {
16
- var l, g = (r = xt(r)).length, S, T, V = 0, d = new Array(g), x = new Array(g), m = +f.apply(this, arguments), h = Math.min(H, Math.max(-H, b.apply(this, arguments) - m)), A, I = Math.min(Math.abs(h) / g, w.apply(this, arguments)), p = I * (h < 0 ? -1 : 1), t;
17
- for (l = 0; l < g; ++l)
18
- (t = x[d[l] = l] = +e(r[l], l, r)) > 0 && (V += t);
19
- for (u != null ? d.sort(function(i, n) {
20
- return u(x[i], x[n]);
21
- }) : $ != null && d.sort(function(i, n) {
22
- return $(r[i], r[n]);
23
- }), l = 0, T = V ? (h - g * p) / V : 0; l < g; ++l, m = A)
24
- S = d[l], t = x[S], A = m + (t > 0 ? t * T : 0) + p, x[S] = {
25
- data: r[S],
14
+ var e = bt, u = kt, E = null, p = F(0), g = F(H), A = F(0);
15
+ function y(a) {
16
+ var l, d = (a = vt(a)).length, m, D, T = 0, _ = new Array(d), k = new Array(d), o = +p.apply(this, arguments), b = Math.min(H, Math.max(-H, g.apply(this, arguments) - o)), V, w = Math.min(Math.abs(b) / d, A.apply(this, arguments)), S = w * (b < 0 ? -1 : 1), t;
17
+ for (l = 0; l < d; ++l)
18
+ (t = k[_[l] = l] = +e(a[l], l, a)) > 0 && (T += t);
19
+ for (u != null ? _.sort(function(i, n) {
20
+ return u(k[i], k[n]);
21
+ }) : E != null && _.sort(function(i, n) {
22
+ return E(a[i], a[n]);
23
+ }), l = 0, D = T ? (b - d * S) / T : 0; l < d; ++l, o = V)
24
+ m = _[l], t = k[m], V = o + (t > 0 ? t * D : 0) + S, k[m] = {
25
+ data: a[m],
26
26
  index: l,
27
27
  value: t,
28
- startAngle: m,
29
- endAngle: A,
30
- padAngle: I
28
+ startAngle: o,
29
+ endAngle: V,
30
+ padAngle: w
31
31
  };
32
- return x;
32
+ return k;
33
33
  }
34
- return o.value = function(r) {
35
- return arguments.length ? (e = typeof r == "function" ? r : z(+r), o) : e;
36
- }, o.sortValues = function(r) {
37
- return arguments.length ? (u = r, $ = null, o) : u;
38
- }, o.sort = function(r) {
39
- return arguments.length ? ($ = r, u = null, o) : $;
40
- }, o.startAngle = function(r) {
41
- return arguments.length ? (f = typeof r == "function" ? r : z(+r), o) : f;
42
- }, o.endAngle = function(r) {
43
- return arguments.length ? (b = typeof r == "function" ? r : z(+r), o) : b;
44
- }, o.padAngle = function(r) {
45
- return arguments.length ? (w = typeof r == "function" ? r : z(+r), o) : w;
46
- }, o;
34
+ return y.value = function(a) {
35
+ return arguments.length ? (e = typeof a == "function" ? a : F(+a), y) : e;
36
+ }, y.sortValues = function(a) {
37
+ return arguments.length ? (u = a, E = null, y) : u;
38
+ }, y.sort = function(a) {
39
+ return arguments.length ? (E = a, u = null, y) : E;
40
+ }, y.startAngle = function(a) {
41
+ return arguments.length ? (p = typeof a == "function" ? a : F(+a), y) : p;
42
+ }, y.endAngle = function(a) {
43
+ return arguments.length ? (g = typeof a == "function" ? a : F(+a), y) : g;
44
+ }, y.padAngle = function(a) {
45
+ return arguments.length ? (A = typeof a == "function" ? a : F(+a), y) : A;
46
+ }, y;
47
47
  }
48
48
  var J = function() {
49
- var e = function(p, t, i, n) {
50
- for (i = i || {}, n = p.length; n--; i[p[n]] = t)
49
+ var e = function(S, t, i, n) {
50
+ for (i = i || {}, n = S.length; n--; i[S[n]] = t)
51
51
  ;
52
52
  return i;
53
- }, u = [1, 3], $ = [1, 4], f = [1, 5], b = [1, 6], w = [1, 10, 12, 14, 16, 18, 19, 20, 21, 22], o = [2, 4], r = [1, 5, 10, 12, 14, 16, 18, 19, 20, 21, 22], l = [20, 21, 22], g = [2, 7], S = [1, 12], T = [1, 13], V = [1, 14], d = [1, 15], x = [1, 16], m = [1, 17], h = {
53
+ }, u = [1, 3], E = [1, 4], p = [1, 5], g = [1, 6], A = [1, 10, 12, 14, 16, 18, 19, 20, 21, 22], y = [2, 4], a = [1, 5, 10, 12, 14, 16, 18, 19, 20, 21, 22], l = [20, 21, 22], d = [2, 7], m = [1, 12], D = [1, 13], T = [1, 14], _ = [1, 15], k = [1, 16], o = [1, 17], b = {
54
54
  trace: function() {
55
55
  },
56
56
  yy: {},
57
57
  symbols_: { error: 2, start: 3, eol: 4, PIE: 5, document: 6, showData: 7, line: 8, statement: 9, txt: 10, value: 11, title: 12, title_value: 13, acc_title: 14, acc_title_value: 15, acc_descr: 16, acc_descr_value: 17, acc_descr_multiline_value: 18, section: 19, NEWLINE: 20, ";": 21, EOF: 22, $accept: 0, $end: 1 },
58
58
  terminals_: { 2: "error", 5: "PIE", 7: "showData", 10: "txt", 11: "value", 12: "title", 13: "title_value", 14: "acc_title", 15: "acc_title_value", 16: "acc_descr", 17: "acc_descr_value", 18: "acc_descr_multiline_value", 19: "section", 20: "NEWLINE", 21: ";", 22: "EOF" },
59
59
  productions_: [0, [3, 2], [3, 2], [3, 3], [6, 0], [6, 2], [8, 2], [9, 0], [9, 2], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [4, 1], [4, 1], [4, 1]],
60
- performAction: function(t, i, n, a, c, s, P) {
61
- var _ = s.length - 1;
60
+ performAction: function(t, i, n, r, c, s, P) {
61
+ var x = s.length - 1;
62
62
  switch (c) {
63
63
  case 3:
64
- a.setShowData(!0);
64
+ r.setShowData(!0);
65
65
  break;
66
66
  case 6:
67
- this.$ = s[_ - 1];
67
+ this.$ = s[x - 1];
68
68
  break;
69
69
  case 8:
70
- a.addSection(s[_ - 1], a.cleanupValue(s[_]));
70
+ r.addSection(s[x - 1], r.cleanupValue(s[x]));
71
71
  break;
72
72
  case 9:
73
- this.$ = s[_].trim(), a.setDiagramTitle(this.$);
73
+ this.$ = s[x].trim(), r.setDiagramTitle(this.$);
74
74
  break;
75
75
  case 10:
76
- this.$ = s[_].trim(), a.setAccTitle(this.$);
76
+ this.$ = s[x].trim(), r.setAccTitle(this.$);
77
77
  break;
78
78
  case 11:
79
79
  case 12:
80
- this.$ = s[_].trim(), a.setAccDescription(this.$);
80
+ this.$ = s[x].trim(), r.setAccDescription(this.$);
81
81
  break;
82
82
  case 13:
83
- a.addSection(s[_].substr(8)), this.$ = s[_].substr(8);
83
+ r.addSection(s[x].substr(8)), this.$ = s[x].substr(8);
84
84
  break;
85
85
  }
86
86
  },
87
- table: [{ 3: 1, 4: 2, 5: u, 20: $, 21: f, 22: b }, { 1: [3] }, { 3: 7, 4: 2, 5: u, 20: $, 21: f, 22: b }, e(w, o, { 6: 8, 7: [1, 9] }), e(r, [2, 14]), e(r, [2, 15]), e(r, [2, 16]), { 1: [2, 1] }, e(l, g, { 8: 10, 9: 11, 1: [2, 2], 10: S, 12: T, 14: V, 16: d, 18: x, 19: m }), e(w, o, { 6: 18 }), e(w, [2, 5]), { 4: 19, 20: $, 21: f, 22: b }, { 11: [1, 20] }, { 13: [1, 21] }, { 15: [1, 22] }, { 17: [1, 23] }, e(l, [2, 12]), e(l, [2, 13]), e(l, g, { 8: 10, 9: 11, 1: [2, 3], 10: S, 12: T, 14: V, 16: d, 18: x, 19: m }), e(w, [2, 6]), e(l, [2, 8]), e(l, [2, 9]), e(l, [2, 10]), e(l, [2, 11])],
87
+ table: [{ 3: 1, 4: 2, 5: u, 20: E, 21: p, 22: g }, { 1: [3] }, { 3: 7, 4: 2, 5: u, 20: E, 21: p, 22: g }, e(A, y, { 6: 8, 7: [1, 9] }), e(a, [2, 14]), e(a, [2, 15]), e(a, [2, 16]), { 1: [2, 1] }, e(l, d, { 8: 10, 9: 11, 1: [2, 2], 10: m, 12: D, 14: T, 16: _, 18: k, 19: o }), e(A, y, { 6: 18 }), e(A, [2, 5]), { 4: 19, 20: E, 21: p, 22: g }, { 11: [1, 20] }, { 13: [1, 21] }, { 15: [1, 22] }, { 17: [1, 23] }, e(l, [2, 12]), e(l, [2, 13]), e(l, d, { 8: 10, 9: 11, 1: [2, 3], 10: m, 12: D, 14: T, 16: _, 18: k, 19: o }), e(A, [2, 6]), e(l, [2, 8]), e(l, [2, 9]), e(l, [2, 10]), e(l, [2, 11])],
88
88
  defaultActions: { 7: [2, 1] },
89
89
  parseError: function(t, i) {
90
90
  if (i.recoverable)
@@ -95,60 +95,60 @@ var J = function() {
95
95
  }
96
96
  },
97
97
  parse: function(t) {
98
- var i = this, n = [0], a = [], c = [null], s = [], P = this.table, _ = "", N = 0, k = 0, R = 2, L = 1, B = s.slice.call(arguments, 1), y = Object.create(this.lexer), D = { yy: {} };
98
+ var i = this, n = [0], r = [], c = [null], s = [], P = this.table, x = "", f = 0, I = 0, R = 2, M = 1, B = s.slice.call(arguments, 1), h = Object.create(this.lexer), N = { yy: {} };
99
99
  for (var Y in this.yy)
100
- Object.prototype.hasOwnProperty.call(this.yy, Y) && (D.yy[Y] = this.yy[Y]);
101
- y.setInput(t, D.yy), D.yy.lexer = y, D.yy.parser = this, typeof y.yylloc == "undefined" && (y.yylloc = {});
102
- var X = y.yylloc;
100
+ Object.prototype.hasOwnProperty.call(this.yy, Y) && (N.yy[Y] = this.yy[Y]);
101
+ h.setInput(t, N.yy), N.yy.lexer = h, N.yy.parser = this, typeof h.yylloc == "undefined" && (h.yylloc = {});
102
+ var X = h.yylloc;
103
103
  s.push(X);
104
- var st = y.options && y.options.ranges;
105
- typeof D.yy.parseError == "function" ? this.parseError = D.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
104
+ var st = h.options && h.options.ranges;
105
+ typeof N.yy.parseError == "function" ? this.parseError = N.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
106
106
  function rt() {
107
107
  var O;
108
- return O = a.pop() || y.lex() || L, typeof O != "number" && (O instanceof Array && (a = O, O = a.pop()), O = i.symbols_[O] || O), O;
108
+ return O = r.pop() || h.lex() || M, typeof O != "number" && (O instanceof Array && (r = O, O = r.pop()), O = i.symbols_[O] || O), O;
109
109
  }
110
- for (var v, F, E, Z, j = {}, M, C, Q, G; ; ) {
111
- if (F = n[n.length - 1], this.defaultActions[F] ? E = this.defaultActions[F] : ((v === null || typeof v == "undefined") && (v = rt()), E = P[F] && P[F][v]), typeof E == "undefined" || !E.length || !E[0]) {
110
+ for (var v, L, $, Z, z = {}, j, C, Q, W; ; ) {
111
+ if (L = n[n.length - 1], this.defaultActions[L] ? $ = this.defaultActions[L] : ((v === null || typeof v == "undefined") && (v = rt()), $ = P[L] && P[L][v]), typeof $ == "undefined" || !$.length || !$[0]) {
112
112
  var q = "";
113
- G = [];
114
- for (M in P[F])
115
- this.terminals_[M] && M > R && G.push("'" + this.terminals_[M] + "'");
116
- y.showPosition ? q = "Parse error on line " + (N + 1) + `:
117
- ` + y.showPosition() + `
118
- Expecting ` + G.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "Parse error on line " + (N + 1) + ": Unexpected " + (v == L ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(q, {
119
- text: y.match,
113
+ W = [];
114
+ for (j in P[L])
115
+ this.terminals_[j] && j > R && W.push("'" + this.terminals_[j] + "'");
116
+ h.showPosition ? q = "Parse error on line " + (f + 1) + `:
117
+ ` + h.showPosition() + `
118
+ Expecting ` + W.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "Parse error on line " + (f + 1) + ": Unexpected " + (v == M ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(q, {
119
+ text: h.match,
120
120
  token: this.terminals_[v] || v,
121
- line: y.yylineno,
121
+ line: h.yylineno,
122
122
  loc: X,
123
- expected: G
123
+ expected: W
124
124
  });
125
125
  }
126
- if (E[0] instanceof Array && E.length > 1)
127
- throw new Error("Parse Error: multiple actions possible at state: " + F + ", token: " + v);
128
- switch (E[0]) {
126
+ if ($[0] instanceof Array && $.length > 1)
127
+ throw new Error("Parse Error: multiple actions possible at state: " + L + ", token: " + v);
128
+ switch ($[0]) {
129
129
  case 1:
130
- n.push(v), c.push(y.yytext), s.push(y.yylloc), n.push(E[1]), v = null, k = y.yyleng, _ = y.yytext, N = y.yylineno, X = y.yylloc;
130
+ n.push(v), c.push(h.yytext), s.push(h.yylloc), n.push($[1]), v = null, I = h.yyleng, x = h.yytext, f = h.yylineno, X = h.yylloc;
131
131
  break;
132
132
  case 2:
133
- if (C = this.productions_[E[1]][1], j.$ = c[c.length - C], j._$ = {
133
+ if (C = this.productions_[$[1]][1], z.$ = c[c.length - C], z._$ = {
134
134
  first_line: s[s.length - (C || 1)].first_line,
135
135
  last_line: s[s.length - 1].last_line,
136
136
  first_column: s[s.length - (C || 1)].first_column,
137
137
  last_column: s[s.length - 1].last_column
138
- }, st && (j._$.range = [
138
+ }, st && (z._$.range = [
139
139
  s[s.length - (C || 1)].range[0],
140
140
  s[s.length - 1].range[1]
141
- ]), Z = this.performAction.apply(j, [
142
- _,
143
- k,
144
- N,
145
- D.yy,
146
- E[1],
141
+ ]), Z = this.performAction.apply(z, [
142
+ x,
143
+ I,
144
+ f,
145
+ N.yy,
146
+ $[1],
147
147
  c,
148
148
  s
149
149
  ].concat(B)), typeof Z != "undefined")
150
150
  return Z;
151
- C && (n = n.slice(0, -1 * C * 2), c = c.slice(0, -1 * C), s = s.slice(0, -1 * C)), n.push(this.productions_[E[1]][0]), c.push(j.$), s.push(j._$), Q = P[n[n.length - 2]][n[n.length - 1]], n.push(Q);
151
+ C && (n = n.slice(0, -1 * C * 2), c = c.slice(0, -1 * C), s = s.slice(0, -1 * C)), n.push(this.productions_[$[1]][0]), c.push(z.$), s.push(z._$), Q = P[n[n.length - 2]][n[n.length - 1]], n.push(Q);
152
152
  break;
153
153
  case 3:
154
154
  return !0;
@@ -156,8 +156,8 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
156
156
  }
157
157
  return !0;
158
158
  }
159
- }, A = function() {
160
- var p = {
159
+ }, V = function() {
160
+ var S = {
161
161
  EOF: 1,
162
162
  parseError: function(i, n) {
163
163
  if (this.yy.parser)
@@ -185,14 +185,14 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
185
185
  unput: function(t) {
186
186
  var i = t.length, n = t.split(/(?:\r\n?|\n)/g);
187
187
  this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
188
- var a = this.match.split(/(?:\r\n?|\n)/g);
188
+ var r = this.match.split(/(?:\r\n?|\n)/g);
189
189
  this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
190
190
  var c = this.yylloc.range;
191
191
  return this.yylloc = {
192
192
  first_line: this.yylloc.first_line,
193
193
  last_line: this.yylineno + 1,
194
194
  first_column: this.yylloc.first_column,
195
- last_column: n ? (n.length === a.length ? this.yylloc.first_column : 0) + a[a.length - n.length].length - n[0].length : this.yylloc.first_column - i
195
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - i
196
196
  }, this.options.ranges && (this.yylloc.range = [c[0], c[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
197
197
  },
198
198
  // When called from action, caches matched text and appends it on next action
@@ -234,7 +234,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
234
234
  },
235
235
  // test the lexed token: return FALSE when not a match, otherwise return token
236
236
  test_match: function(t, i) {
237
- var n, a, c;
237
+ var n, r, c;
238
238
  if (this.options.backtrack_lexer && (c = {
239
239
  yylineno: this.yylineno,
240
240
  yylloc: {
@@ -254,11 +254,11 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
254
254
  yy: this.yy,
255
255
  conditionStack: this.conditionStack.slice(0),
256
256
  done: this.done
257
- }, this.options.ranges && (c.yylloc.range = this.yylloc.range.slice(0))), a = t[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
257
+ }, this.options.ranges && (c.yylloc.range = this.yylloc.range.slice(0))), r = t[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
258
258
  first_line: this.yylloc.last_line,
259
259
  last_line: this.yylineno + 1,
260
260
  first_column: this.yylloc.last_column,
261
- last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
261
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
262
262
  }, this.yytext += t[0], this.match += t[0], this.matches = t, 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(t[0].length), this.matched += t[0], n = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n)
263
263
  return n;
264
264
  if (this._backtrack) {
@@ -273,11 +273,11 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
273
273
  if (this.done)
274
274
  return this.EOF;
275
275
  this._input || (this.done = !0);
276
- var t, i, n, a;
276
+ var t, i, n, r;
277
277
  this._more || (this.yytext = "", this.match = "");
278
278
  for (var c = this._currentRules(), s = 0; s < c.length; s++)
279
279
  if (n = this._input.match(this.rules[c[s]]), n && (!i || n[0].length > i[0].length)) {
280
- if (i = n, a = s, this.options.backtrack_lexer) {
280
+ if (i = n, r = s, this.options.backtrack_lexer) {
281
281
  if (t = this.test_match(n, c[s]), t !== !1)
282
282
  return t;
283
283
  if (this._backtrack) {
@@ -288,7 +288,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
288
288
  } else if (!this.options.flex)
289
289
  break;
290
290
  }
291
- return i ? (t = this.test_match(i, c[a]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
291
+ return i ? (t = this.test_match(i, c[r]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
292
292
  ` + this.showPosition(), {
293
293
  text: "",
294
294
  token: null,
@@ -326,8 +326,8 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
326
326
  return this.conditionStack.length;
327
327
  },
328
328
  options: { "case-insensitive": !0 },
329
- performAction: function(i, n, a, c) {
330
- switch (a) {
329
+ performAction: function(i, n, r, c) {
330
+ switch (r) {
331
331
  case 0:
332
332
  break;
333
333
  case 1:
@@ -379,30 +379,30 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
379
379
  rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:[\s]+)/i, /^(?:title\b)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:pie\b)/i, /^(?:showData\b)/i, /^(?::[\s]*[\d]+(?:\.[\d]+)?)/i, /^(?:$)/i],
380
380
  conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, title: { rules: [6], inclusive: !1 }, string: { rules: [15, 16], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 7, 9, 11, 14, 17, 18, 19, 20], inclusive: !0 } }
381
381
  };
382
- return p;
382
+ return S;
383
383
  }();
384
- h.lexer = A;
385
- function I() {
384
+ b.lexer = V;
385
+ function w() {
386
386
  this.yy = {};
387
387
  }
388
- return I.prototype = h, h.Parser = I, new I();
388
+ return w.prototype = b, b.Parser = w, new w();
389
389
  }();
390
390
  J.parser = J;
391
- const Et = J, nt = at.pie, W = {
391
+ const $t = J, nt = at.pie, G = {
392
392
  sections: {},
393
393
  showData: !1,
394
394
  config: nt
395
395
  };
396
- let U = W.sections, K = W.showData;
397
- const $t = structuredClone(nt), wt = () => structuredClone($t), At = () => {
398
- U = structuredClone(W.sections), K = W.showData, ft();
396
+ let U = G.sections, K = G.showData;
397
+ const Et = structuredClone(nt), At = () => structuredClone(Et), wt = () => {
398
+ U = structuredClone(G.sections), K = G.showData, ft();
399
399
  }, Tt = (e, u) => {
400
400
  e = pt(e, et()), U[e] === void 0 && (U[e] = u, it.debug(`added new section: ${e}, with value: ${u}`));
401
401
  }, It = () => U, Dt = (e) => (e.substring(0, 1) === ":" && (e = e.substring(1).trim()), Number(e.trim())), Ct = (e) => {
402
402
  K = e;
403
403
  }, Ot = () => K, Vt = {
404
- getConfig: wt,
405
- clear: At,
404
+ getConfig: At,
405
+ clear: wt,
406
406
  setDiagramTitle: lt,
407
407
  getDiagramTitle: ct,
408
408
  setAccTitle: ot,
@@ -443,58 +443,61 @@ const $t = structuredClone(nt), wt = () => structuredClone($t), At = () => {
443
443
  font-size: ${e.pieLegendTextSize};
444
444
  }
445
445
  `, Nt = Pt, Lt = (e) => {
446
- const u = Object.entries(e).map((f) => ({
447
- label: f[0],
448
- value: f[1]
449
- })).sort((f, b) => b.value - f.value);
446
+ const u = Object.entries(e).map((p) => ({
447
+ label: p[0],
448
+ value: p[1]
449
+ })).sort((p, g) => g.value - p.value);
450
450
  return St().value(
451
- (f) => f.value
451
+ (p) => p.value
452
452
  )(u);
453
- }, Ft = (e, u, $, f) => {
454
- var N;
455
- var b, w;
453
+ }, Ft = (e, u, E, p) => {
456
454
  it.debug(`rendering pie chart
457
455
  ` + e);
458
- const o = f.db, r = et(), l = gt(o.getConfig(), r.pie), g = 450, S = (N = (w = (b = document.getElementById(u)) == null ? void 0 : b.parentElement) == null ? void 0 : w.offsetWidth) != null ? N : l.useWidth, T = dt(u);
459
- T.attr("viewBox", `0 0 ${S} ${g}`), mt(T, g, S, l.useMaxWidth);
460
- const V = 40, d = 18, x = 4, m = T.append("g");
461
- m.attr("transform", "translate(" + S / 2 + "," + g / 2 + ")");
462
- const { themeVariables: h } = r;
463
- let [A] = _t(h.pieOuterStrokeWidth);
464
- A != null || (A = 2);
465
- const I = l.textPosition, p = Math.min(S, g) / 2 - V, t = tt().innerRadius(0).outerRadius(p), i = tt().innerRadius(p * I).outerRadius(p * I);
466
- m.append("circle").attr("cx", 0).attr("cy", 0).attr("r", p + A / 2).attr("class", "pieOuterCircle");
467
- const n = o.getSections(), a = Lt(n), c = [
468
- h.pie1,
469
- h.pie2,
470
- h.pie3,
471
- h.pie4,
472
- h.pie5,
473
- h.pie6,
474
- h.pie7,
475
- h.pie8,
476
- h.pie9,
477
- h.pie10,
478
- h.pie11,
479
- h.pie12
480
- ], s = vt(c);
481
- m.selectAll("mySlices").data(a).enter().append("path").attr("d", t).attr("fill", (k) => s(k.data.label)).attr("class", "pieCircle");
482
- let P = 0;
483
- Object.keys(n).forEach((k) => {
484
- P += n[k];
485
- }), m.selectAll("mySlices").data(a).enter().append("text").text((k) => (k.data.value / P * 100).toFixed(0) + "%").attr("transform", (k) => "translate(" + i.centroid(k) + ")").style("text-anchor", "middle").attr("class", "slice"), m.append("text").text(o.getDiagramTitle()).attr("x", 0).attr("y", -(g - 50) / 2).attr("class", "pieTitleText");
486
- const _ = m.selectAll(".legend").data(s.domain()).enter().append("g").attr("class", "legend").attr("transform", (k, R) => {
487
- const L = d + x, B = L * s.domain().length / 2, y = 12 * d, D = R * L - B;
488
- return "translate(" + y + "," + D + ")";
456
+ const g = p.db, A = et(), y = gt(g.getConfig(), A.pie), a = 40, l = 18, d = 4, m = 450, D = m, T = dt(u), _ = T.append("g"), k = g.getSections();
457
+ _.attr("transform", "translate(" + D / 2 + "," + m / 2 + ")");
458
+ const { themeVariables: o } = A;
459
+ let [b] = mt(o.pieOuterStrokeWidth);
460
+ b != null || (b = 2);
461
+ const V = y.textPosition, w = Math.min(D, m) / 2 - a, S = tt().innerRadius(0).outerRadius(w), t = tt().innerRadius(w * V).outerRadius(w * V);
462
+ _.append("circle").attr("cx", 0).attr("cy", 0).attr("r", w + b / 2).attr("class", "pieOuterCircle");
463
+ const i = Lt(k), n = [
464
+ o.pie1,
465
+ o.pie2,
466
+ o.pie3,
467
+ o.pie4,
468
+ o.pie5,
469
+ o.pie6,
470
+ o.pie7,
471
+ o.pie8,
472
+ o.pie9,
473
+ o.pie10,
474
+ o.pie11,
475
+ o.pie12
476
+ ], r = xt(n);
477
+ _.selectAll("mySlices").data(i).enter().append("path").attr("d", S).attr("fill", (f) => r(f.data.label)).attr("class", "pieCircle");
478
+ let c = 0;
479
+ Object.keys(k).forEach((f) => {
480
+ c += k[f];
481
+ }), _.selectAll("mySlices").data(i).enter().append("text").text((f) => (f.data.value / c * 100).toFixed(0) + "%").attr("transform", (f) => "translate(" + t.centroid(f) + ")").style("text-anchor", "middle").attr("class", "slice"), _.append("text").text(g.getDiagramTitle()).attr("x", 0).attr("y", -(m - 50) / 2).attr("class", "pieTitleText");
482
+ const s = _.selectAll(".legend").data(r.domain()).enter().append("g").attr("class", "legend").attr("transform", (f, I) => {
483
+ const R = l + d, M = R * r.domain().length / 2, B = 12 * l, h = I * R - M;
484
+ return "translate(" + B + "," + h + ")";
489
485
  });
490
- _.append("rect").attr("width", d).attr("height", d).style("fill", s).style("stroke", s), _.data(a).append("text").attr("x", d + x).attr("y", d - x).text((k) => {
491
- const { label: R, value: L } = k.data;
492
- return o.getShowData() ? `${R} [${L}]` : R;
486
+ s.append("rect").attr("width", l).attr("height", l).style("fill", r).style("stroke", r), s.data(i).append("text").attr("x", l + d).attr("y", l - d).text((f) => {
487
+ const { label: I, value: R } = f.data;
488
+ return g.getShowData() ? `${I} [${R}]` : I;
493
489
  });
494
- }, zt = { draw: Ft }, Bt = {
495
- parser: Et,
490
+ const P = Math.max(
491
+ ...s.selectAll("text").nodes().map((f) => {
492
+ var I;
493
+ return (I = f == null ? void 0 : f.getBoundingClientRect().width) != null ? I : 0;
494
+ })
495
+ ), x = D + a + l + d + P;
496
+ T.attr("viewBox", `0 0 ${x} ${m}`), _t(T, m, x, y.useMaxWidth);
497
+ }, Rt = { draw: Ft }, Bt = {
498
+ parser: $t,
496
499
  db: Vt,
497
- renderer: zt,
500
+ renderer: Rt,
498
501
  styles: Nt
499
502
  };
500
503
  export {