@kong-ui-public/documentation 1.5.78 → 1.6.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/dist/{arc-DZdQjcG8-C_2Dx6GQ.js → arc-DZdQjcG8-CduayE88.js} +2 -2
- package/dist/{architectureDiagram-3BPJPVTR-By_DXDyu-DTj86bUZ.js → architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js} +1506 -1513
- package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +3268 -0
- package/dist/{c4Diagram-AAUBKEIU-ftdwlfdB-CYiERTWJ.js → c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js} +11 -12
- package/dist/{channel-DM9j7IFL-CjNPz4Hd.js → channel-DM9j7IFL-DxqBUxfY.js} +1 -1
- package/dist/{chunk-2J33WTMH-CBbjVzWb-BAAd-TK5.js → chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js} +7 -8
- package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +8 -0
- package/dist/{chunk-55IACEB6-DZn1aNO0-_bs5ibIB.js → chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js} +1 -1
- package/dist/{chunk-727SXJPM-B2_6_WLv-CzbzsbtK.js → chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js} +548 -549
- package/dist/{chunk-AQP2D5EJ-DEAEiJjW-BPr5JvkB.js → chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js} +446 -458
- package/dist/{chunk-FMBD7UC4-D_tZ4Dxg-BUygZnCT.js → chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js} +1 -1
- package/dist/{chunk-ND2GUHAM-Duw3k8MU-Dr8SD23L.js → chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js} +1 -1
- package/dist/{chunk-QZHKN3VN-DN6nBdn0-DxWE5zsM.js → chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js} +1 -1
- package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +17 -0
- package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +17 -0
- package/dist/{cose-bilkent-S5V4N54A-0ZumbVgj-BKcFQWbE.js → cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js} +465 -465
- package/dist/{cytoscape.esm-BDIiOYYO-BbddfVIJ.js → cytoscape.esm-BDIiOYYO-C1jMBhD8.js} +356 -371
- package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +288 -0
- package/dist/{dagre-DJxg_nfI-BzVw7cNP.js → dagre-DJxg_nfI-hVOVexz-.js} +9 -9
- package/dist/{diagram-2AECGRRQ-B2gF_dHe-DCRSlKG-.js → diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js} +10 -14
- package/dist/{diagram-5GNKFQAL-DJ9WwRrD-DtSWJY6-.js → diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js} +4 -4
- package/dist/{diagram-KO2AKTUF-RfkqD-VW-ZR9mxccc.js → diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js} +153 -156
- package/dist/{diagram-LMA3HP47-Ct7s9hIt-DXtPBRn4.js → diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js} +21 -22
- package/dist/{diagram-OG6HWLK6-BSYJ2CoI-DX1BfXw6.js → diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js} +79 -81
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +374 -374
- package/dist/{erDiagram-TEJ5UH35-BudwiSYX-BPA5-1u6.js → erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js} +134 -135
- package/dist/{flowDiagram-I6XJVG4X-B23Smlxp-Cb24VZnb.js → flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js} +842 -849
- package/dist/{ganttDiagram-6RSMTGT7-C-i89z_P-DEdTFlTH.js → ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js} +46 -46
- package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +734 -0
- package/dist/{graphlib-D2YdGpuK-CM8PX5pf.js → graphlib-D2YdGpuK-CnQPmzkS.js} +17 -17
- package/dist/{index-Dpyqhws4.js → index-DfVKdDwj.js} +16258 -16515
- package/dist/{infoDiagram-5YYISTIA-CDUwzFql-BsbTK2Me.js → infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js} +2 -2
- package/dist/{ishikawaDiagram-YF4QCWOH-MfYdx0rK-DsWP0O6d.js → ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js} +137 -138
- package/dist/{journeyDiagram-JHISSGLW-C_udOPtJ-BkIf9B4Q.js → journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js} +13 -13
- package/dist/{kanban-definition-UN3LZRKU-C1Su-UOY-6sw-wDwK.js → kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js} +334 -336
- package/dist/{katex-D7tFlpqA-B7yKriH4.js → katex-D7tFlpqA-BOSQxXe1.js} +254 -256
- package/dist/{linear-1MXhYum8-CfR5ywK4.js → linear-1MXhYum8-9C1jno9G.js} +5 -5
- package/dist/{mindmap-definition-RKZ34NQL-MuSV765K-Cv2rDIFS.js → mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js} +94 -97
- package/dist/{ordinal-D9ksOc8y-CrGveXkB.js → ordinal-D9ksOc8y-2hZwLyEk.js} +1 -1
- package/dist/{pieDiagram-4H26LBE5-TgFp7J6_-C8m2xJbj.js → pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js} +43 -44
- package/dist/{quadrantDiagram-W4KKPZXB-DKPne3o_-D0Tfl8NQ.js → quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js} +351 -353
- package/dist/{requirementDiagram-4Y6WPE33-vh8uUAp_-C5zLx-_o.js → requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js} +384 -386
- package/dist/{sankeyDiagram-5OEKKPKP-Cgs6W_El-DBrv4QL_.js → sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js} +178 -178
- package/dist/{sequenceDiagram-3UESZ5HK-C5F57Dkt-D6DqZiJP.js → sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js} +643 -653
- package/dist/{stateDiagram-AJRCARHV-09dUKG6Y-9QhAIhCk.js → stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js} +5 -5
- package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +16 -0
- package/dist/style.css +1 -1
- package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +1095 -0
- package/dist/{vennDiagram-CIIHVFJN-DQfKxM3L-086u82L3.js → vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js} +596 -603
- package/dist/{wardley-L42UT6IY-BjAkE_cs-li1xYed9.js → wardley-L42UT6IY-BjAkE_cs-C-giFqos.js} +5760 -5809
- package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +639 -0
- package/dist/{xychartDiagram-2RQKCTM6-ChNH3q1U--vbcTXH5.js → xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js} +10 -10
- package/package.json +4 -4
- package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CSQRWfog.js +0 -3278
- package/dist/chunk-4BX2VUAB-C_NnimAy-B-8x_g6K.js +0 -9
- package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-DLmqgbj1.js +0 -17
- package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-DLmqgbj1.js +0 -17
- package/dist/dagre-BM42HDAG-qMWMsyLb-BzK2-5zM.js +0 -291
- package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-BtfdBLxW.js +0 -747
- package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-Br5eF-5b.js +0 -16
- package/dist/timeline-definition-PNZ67QCA-CCndyx0V-CkhwKYjQ.js +0 -1106
- package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-CCMCDU5F.js +0 -647
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { G as Se, K as ke, i as ae, f as Fe, W as Pe, U as Ce, p as r, Z as
|
|
2
|
-
import { q as ie } from "./linear-1MXhYum8-
|
|
3
|
-
var
|
|
4
|
-
var t = /* @__PURE__ */ r(function(n,
|
|
5
|
-
for (
|
|
6
|
-
return
|
|
7
|
-
}, "o"), l = [1, 3],
|
|
1
|
+
import { G as Se, K as ke, i as ae, f as Fe, W as Pe, U as Ce, p as r, Z as Lt, g as Tt, q as ee, A as Le, H as ve, F as D, c as Ee, ah as ze } from "./index-DfVKdDwj.js";
|
|
2
|
+
import { q as ie } from "./linear-1MXhYum8-9C1jno9G.js";
|
|
3
|
+
var Pt = (function() {
|
|
4
|
+
var t = /* @__PURE__ */ r(function(n, A, u, o) {
|
|
5
|
+
for (u ||= {}, o = n.length; o--; u[n[o]] = A) ;
|
|
6
|
+
return u;
|
|
7
|
+
}, "o"), l = [1, 3], x = [1, 4], c = [1, 5], h = [1, 6], f = [1, 7], g = [
|
|
8
8
|
1,
|
|
9
9
|
4,
|
|
10
10
|
5,
|
|
@@ -73,7 +73,7 @@ var vt = function() {
|
|
|
73
73
|
55,
|
|
74
74
|
56,
|
|
75
75
|
57
|
|
76
|
-
], m = [2, 36], p = [1, 37], y = [1, 36], q = [1, 38], T = [1, 35], d = [1, 43],
|
|
76
|
+
], m = [2, 36], p = [1, 37], y = [1, 36], q = [1, 38], T = [1, 35], d = [1, 43], b = [1, 41], k = [1, 45], dt = [1, 14], ut = [1, 23], xt = [1, 18], ot = [1, 19], ht = [1, 20], i = [1, 21], vt = [1, 22], Et = [1, 24], zt = [1, 25], Dt = [1, 26], It = [1, 27], Nt = [1, 28], wt = [1, 29], U = [1, 32], Q = [1, 33], F = [1, 34], P = [1, 39], C = [1, 40], L = [1, 42], v = [1, 44], X = [1, 63], O = [1, 62], E = [
|
|
77
77
|
4,
|
|
78
78
|
5,
|
|
79
79
|
8,
|
|
@@ -108,7 +108,7 @@ var vt = function() {
|
|
|
108
108
|
14,
|
|
109
109
|
15,
|
|
110
110
|
18
|
|
111
|
-
],
|
|
111
|
+
], G = [1, 91], K = [1, 92], Z = [1, 93], J = [1, 100], V = [1, 94], tt = [1, 97], et = [1, 95], it = [1, 96], at = [1, 98], nt = [1, 99], At = [1, 103], Gt = [
|
|
112
112
|
10,
|
|
113
113
|
55,
|
|
114
114
|
56,
|
|
@@ -128,7 +128,7 @@ var vt = function() {
|
|
|
128
128
|
55,
|
|
129
129
|
56,
|
|
130
130
|
57
|
|
131
|
-
],
|
|
131
|
+
], bt = {
|
|
132
132
|
trace: /* @__PURE__ */ r(function() {
|
|
133
133
|
}, "trace"),
|
|
134
134
|
yy: {},
|
|
@@ -339,9 +339,9 @@ var vt = function() {
|
|
|
339
339
|
[59, 1],
|
|
340
340
|
[59, 1]
|
|
341
341
|
],
|
|
342
|
-
performAction: /* @__PURE__ */ r(function(n,
|
|
342
|
+
performAction: /* @__PURE__ */ r(function(n, A, u, o, S, e, ct) {
|
|
343
343
|
var s = e.length - 1;
|
|
344
|
-
switch (
|
|
344
|
+
switch (S) {
|
|
345
345
|
case 23:
|
|
346
346
|
this.$ = e[s];
|
|
347
347
|
break;
|
|
@@ -358,65 +358,65 @@ var vt = function() {
|
|
|
358
358
|
e[s - 2].push(e[s].trim()), this.$ = e[s - 2];
|
|
359
359
|
break;
|
|
360
360
|
case 29:
|
|
361
|
-
this.$ = e[s - 4],
|
|
361
|
+
this.$ = e[s - 4], o.addClass(e[s - 2], e[s]);
|
|
362
362
|
break;
|
|
363
363
|
case 37:
|
|
364
364
|
this.$ = [];
|
|
365
365
|
break;
|
|
366
366
|
case 42:
|
|
367
|
-
this.$ = e[s].trim(),
|
|
367
|
+
this.$ = e[s].trim(), o.setDiagramTitle(this.$);
|
|
368
368
|
break;
|
|
369
369
|
case 43:
|
|
370
|
-
this.$ = e[s].trim(),
|
|
370
|
+
this.$ = e[s].trim(), o.setAccTitle(this.$);
|
|
371
371
|
break;
|
|
372
372
|
case 44:
|
|
373
373
|
case 45:
|
|
374
|
-
this.$ = e[s].trim(),
|
|
374
|
+
this.$ = e[s].trim(), o.setAccDescription(this.$);
|
|
375
375
|
break;
|
|
376
376
|
case 46:
|
|
377
|
-
|
|
377
|
+
o.addSection(e[s].substr(8)), this.$ = e[s].substr(8);
|
|
378
378
|
break;
|
|
379
379
|
case 47:
|
|
380
|
-
|
|
380
|
+
o.addPoint(e[s - 3], "", e[s - 1], e[s], []);
|
|
381
381
|
break;
|
|
382
382
|
case 48:
|
|
383
|
-
|
|
383
|
+
o.addPoint(e[s - 4], e[s - 3], e[s - 1], e[s], []);
|
|
384
384
|
break;
|
|
385
385
|
case 49:
|
|
386
|
-
|
|
386
|
+
o.addPoint(e[s - 4], "", e[s - 2], e[s - 1], e[s]);
|
|
387
387
|
break;
|
|
388
388
|
case 50:
|
|
389
|
-
|
|
389
|
+
o.addPoint(e[s - 5], e[s - 4], e[s - 2], e[s - 1], e[s]);
|
|
390
390
|
break;
|
|
391
391
|
case 51:
|
|
392
|
-
|
|
392
|
+
o.setXAxisLeftText(e[s - 2]), o.setXAxisRightText(e[s]);
|
|
393
393
|
break;
|
|
394
394
|
case 52:
|
|
395
|
-
e[s - 1].text += " ⟶ ",
|
|
395
|
+
e[s - 1].text += " ⟶ ", o.setXAxisLeftText(e[s - 1]);
|
|
396
396
|
break;
|
|
397
397
|
case 53:
|
|
398
|
-
|
|
398
|
+
o.setXAxisLeftText(e[s]);
|
|
399
399
|
break;
|
|
400
400
|
case 54:
|
|
401
|
-
|
|
401
|
+
o.setYAxisBottomText(e[s - 2]), o.setYAxisTopText(e[s]);
|
|
402
402
|
break;
|
|
403
403
|
case 55:
|
|
404
|
-
e[s - 1].text += " ⟶ ",
|
|
404
|
+
e[s - 1].text += " ⟶ ", o.setYAxisBottomText(e[s - 1]);
|
|
405
405
|
break;
|
|
406
406
|
case 56:
|
|
407
|
-
|
|
407
|
+
o.setYAxisBottomText(e[s]);
|
|
408
408
|
break;
|
|
409
409
|
case 57:
|
|
410
|
-
|
|
410
|
+
o.setQuadrant1Text(e[s]);
|
|
411
411
|
break;
|
|
412
412
|
case 58:
|
|
413
|
-
|
|
413
|
+
o.setQuadrant2Text(e[s]);
|
|
414
414
|
break;
|
|
415
415
|
case 59:
|
|
416
|
-
|
|
416
|
+
o.setQuadrant3Text(e[s]);
|
|
417
417
|
break;
|
|
418
418
|
case 60:
|
|
419
|
-
|
|
419
|
+
o.setQuadrant4Text(e[s]);
|
|
420
420
|
break;
|
|
421
421
|
case 64:
|
|
422
422
|
this.$ = {
|
|
@@ -455,31 +455,31 @@ var vt = function() {
|
|
|
455
455
|
18: l,
|
|
456
456
|
26: 1,
|
|
457
457
|
27: 2,
|
|
458
|
-
28:
|
|
458
|
+
28: x,
|
|
459
459
|
55: c,
|
|
460
|
-
56:
|
|
461
|
-
57:
|
|
460
|
+
56: h,
|
|
461
|
+
57: f
|
|
462
462
|
},
|
|
463
463
|
{ 1: [3] },
|
|
464
464
|
{
|
|
465
465
|
18: l,
|
|
466
466
|
26: 8,
|
|
467
467
|
27: 2,
|
|
468
|
-
28:
|
|
468
|
+
28: x,
|
|
469
469
|
55: c,
|
|
470
|
-
56:
|
|
471
|
-
57:
|
|
470
|
+
56: h,
|
|
471
|
+
57: f
|
|
472
472
|
},
|
|
473
473
|
{
|
|
474
474
|
18: l,
|
|
475
475
|
26: 9,
|
|
476
476
|
27: 2,
|
|
477
|
-
28:
|
|
477
|
+
28: x,
|
|
478
478
|
55: c,
|
|
479
|
-
56:
|
|
480
|
-
57:
|
|
479
|
+
56: h,
|
|
480
|
+
57: f
|
|
481
481
|
},
|
|
482
|
-
t(
|
|
482
|
+
t(g, [2, 33], { 29: 10 }),
|
|
483
483
|
t(_, [2, 61]),
|
|
484
484
|
t(_, [2, 62]),
|
|
485
485
|
t(_, [2, 63]),
|
|
@@ -500,17 +500,17 @@ var vt = function() {
|
|
|
500
500
|
10: q,
|
|
501
501
|
12: T,
|
|
502
502
|
13: d,
|
|
503
|
-
14:
|
|
504
|
-
15:
|
|
505
|
-
18:
|
|
506
|
-
25:
|
|
507
|
-
35:
|
|
508
|
-
37:
|
|
509
|
-
39:
|
|
510
|
-
41:
|
|
511
|
-
42:
|
|
512
|
-
48:
|
|
513
|
-
50:
|
|
503
|
+
14: b,
|
|
504
|
+
15: k,
|
|
505
|
+
18: dt,
|
|
506
|
+
25: ut,
|
|
507
|
+
35: xt,
|
|
508
|
+
37: ot,
|
|
509
|
+
39: ht,
|
|
510
|
+
41: i,
|
|
511
|
+
42: vt,
|
|
512
|
+
48: Et,
|
|
513
|
+
50: zt,
|
|
514
514
|
51: Dt,
|
|
515
515
|
52: It,
|
|
516
516
|
53: Nt,
|
|
@@ -523,12 +523,12 @@ var vt = function() {
|
|
|
523
523
|
66: L,
|
|
524
524
|
67: v
|
|
525
525
|
}),
|
|
526
|
-
t(
|
|
526
|
+
t(g, [2, 34]),
|
|
527
527
|
{
|
|
528
528
|
27: 46,
|
|
529
529
|
55: c,
|
|
530
|
-
56:
|
|
531
|
-
57:
|
|
530
|
+
56: h,
|
|
531
|
+
57: f
|
|
532
532
|
},
|
|
533
533
|
t(a, [2, 37]),
|
|
534
534
|
t(a, m, {
|
|
@@ -544,17 +544,17 @@ var vt = function() {
|
|
|
544
544
|
10: q,
|
|
545
545
|
12: T,
|
|
546
546
|
13: d,
|
|
547
|
-
14:
|
|
548
|
-
15:
|
|
549
|
-
18:
|
|
550
|
-
25:
|
|
551
|
-
35:
|
|
552
|
-
37:
|
|
553
|
-
39:
|
|
554
|
-
41:
|
|
555
|
-
42:
|
|
556
|
-
48:
|
|
557
|
-
50:
|
|
547
|
+
14: b,
|
|
548
|
+
15: k,
|
|
549
|
+
18: dt,
|
|
550
|
+
25: ut,
|
|
551
|
+
35: xt,
|
|
552
|
+
37: ot,
|
|
553
|
+
39: ht,
|
|
554
|
+
41: i,
|
|
555
|
+
42: vt,
|
|
556
|
+
48: Et,
|
|
557
|
+
50: zt,
|
|
558
558
|
51: Dt,
|
|
559
559
|
52: It,
|
|
560
560
|
53: Nt,
|
|
@@ -582,8 +582,8 @@ var vt = function() {
|
|
|
582
582
|
10: q,
|
|
583
583
|
12: T,
|
|
584
584
|
13: d,
|
|
585
|
-
14:
|
|
586
|
-
15:
|
|
585
|
+
14: b,
|
|
586
|
+
15: k,
|
|
587
587
|
43: 52,
|
|
588
588
|
58: 31,
|
|
589
589
|
60: U,
|
|
@@ -600,8 +600,8 @@ var vt = function() {
|
|
|
600
600
|
10: q,
|
|
601
601
|
12: T,
|
|
602
602
|
13: d,
|
|
603
|
-
14:
|
|
604
|
-
15:
|
|
603
|
+
14: b,
|
|
604
|
+
15: k,
|
|
605
605
|
43: 53,
|
|
606
606
|
58: 31,
|
|
607
607
|
60: U,
|
|
@@ -618,8 +618,8 @@ var vt = function() {
|
|
|
618
618
|
10: q,
|
|
619
619
|
12: T,
|
|
620
620
|
13: d,
|
|
621
|
-
14:
|
|
622
|
-
15:
|
|
621
|
+
14: b,
|
|
622
|
+
15: k,
|
|
623
623
|
43: 54,
|
|
624
624
|
58: 31,
|
|
625
625
|
60: U,
|
|
@@ -636,8 +636,8 @@ var vt = function() {
|
|
|
636
636
|
10: q,
|
|
637
637
|
12: T,
|
|
638
638
|
13: d,
|
|
639
|
-
14:
|
|
640
|
-
15:
|
|
639
|
+
14: b,
|
|
640
|
+
15: k,
|
|
641
641
|
43: 55,
|
|
642
642
|
58: 31,
|
|
643
643
|
60: U,
|
|
@@ -654,8 +654,8 @@ var vt = function() {
|
|
|
654
654
|
10: q,
|
|
655
655
|
12: T,
|
|
656
656
|
13: d,
|
|
657
|
-
14:
|
|
658
|
-
15:
|
|
657
|
+
14: b,
|
|
658
|
+
15: k,
|
|
659
659
|
43: 56,
|
|
660
660
|
58: 31,
|
|
661
661
|
60: U,
|
|
@@ -672,8 +672,8 @@ var vt = function() {
|
|
|
672
672
|
10: q,
|
|
673
673
|
12: T,
|
|
674
674
|
13: d,
|
|
675
|
-
14:
|
|
676
|
-
15:
|
|
675
|
+
14: b,
|
|
676
|
+
15: k,
|
|
677
677
|
43: 57,
|
|
678
678
|
58: 31,
|
|
679
679
|
60: U,
|
|
@@ -691,8 +691,8 @@ var vt = function() {
|
|
|
691
691
|
10: q,
|
|
692
692
|
12: T,
|
|
693
693
|
13: d,
|
|
694
|
-
14:
|
|
695
|
-
15:
|
|
694
|
+
14: b,
|
|
695
|
+
15: k,
|
|
696
696
|
18: O,
|
|
697
697
|
44: [1, 58],
|
|
698
698
|
47: [1, 59],
|
|
@@ -719,7 +719,7 @@ var vt = function() {
|
|
|
719
719
|
t(E, [2, 79]),
|
|
720
720
|
t(E, [2, 80]),
|
|
721
721
|
t(E, [2, 81]),
|
|
722
|
-
t(
|
|
722
|
+
t(g, [2, 35]),
|
|
723
723
|
t(a, [2, 38]),
|
|
724
724
|
t(a, [2, 42]),
|
|
725
725
|
t(a, [2, 43]),
|
|
@@ -749,8 +749,8 @@ var vt = function() {
|
|
|
749
749
|
10: q,
|
|
750
750
|
12: T,
|
|
751
751
|
13: d,
|
|
752
|
-
14:
|
|
753
|
-
15:
|
|
752
|
+
14: b,
|
|
753
|
+
15: k,
|
|
754
754
|
18: O,
|
|
755
755
|
49: [1, 78],
|
|
756
756
|
63: F,
|
|
@@ -768,8 +768,8 @@ var vt = function() {
|
|
|
768
768
|
10: q,
|
|
769
769
|
12: T,
|
|
770
770
|
13: d,
|
|
771
|
-
14:
|
|
772
|
-
15:
|
|
771
|
+
14: b,
|
|
772
|
+
15: k,
|
|
773
773
|
18: O,
|
|
774
774
|
49: [1, 79],
|
|
775
775
|
63: F,
|
|
@@ -787,8 +787,8 @@ var vt = function() {
|
|
|
787
787
|
10: q,
|
|
788
788
|
12: T,
|
|
789
789
|
13: d,
|
|
790
|
-
14:
|
|
791
|
-
15:
|
|
790
|
+
14: b,
|
|
791
|
+
15: k,
|
|
792
792
|
18: O,
|
|
793
793
|
63: F,
|
|
794
794
|
64: P,
|
|
@@ -805,8 +805,8 @@ var vt = function() {
|
|
|
805
805
|
10: q,
|
|
806
806
|
12: T,
|
|
807
807
|
13: d,
|
|
808
|
-
14:
|
|
809
|
-
15:
|
|
808
|
+
14: b,
|
|
809
|
+
15: k,
|
|
810
810
|
18: O,
|
|
811
811
|
63: F,
|
|
812
812
|
64: P,
|
|
@@ -823,8 +823,8 @@ var vt = function() {
|
|
|
823
823
|
10: q,
|
|
824
824
|
12: T,
|
|
825
825
|
13: d,
|
|
826
|
-
14:
|
|
827
|
-
15:
|
|
826
|
+
14: b,
|
|
827
|
+
15: k,
|
|
828
828
|
18: O,
|
|
829
829
|
63: F,
|
|
830
830
|
64: P,
|
|
@@ -841,8 +841,8 @@ var vt = function() {
|
|
|
841
841
|
10: q,
|
|
842
842
|
12: T,
|
|
843
843
|
13: d,
|
|
844
|
-
14:
|
|
845
|
-
15:
|
|
844
|
+
14: b,
|
|
845
|
+
15: k,
|
|
846
846
|
18: O,
|
|
847
847
|
63: F,
|
|
848
848
|
64: P,
|
|
@@ -893,8 +893,8 @@ var vt = function() {
|
|
|
893
893
|
10: q,
|
|
894
894
|
12: T,
|
|
895
895
|
13: d,
|
|
896
|
-
14:
|
|
897
|
-
15:
|
|
896
|
+
14: b,
|
|
897
|
+
15: k,
|
|
898
898
|
60: U,
|
|
899
899
|
61: Q,
|
|
900
900
|
63: F,
|
|
@@ -911,8 +911,8 @@ var vt = function() {
|
|
|
911
911
|
10: q,
|
|
912
912
|
12: T,
|
|
913
913
|
13: d,
|
|
914
|
-
14:
|
|
915
|
-
15:
|
|
914
|
+
14: b,
|
|
915
|
+
15: k,
|
|
916
916
|
60: U,
|
|
917
917
|
61: Q,
|
|
918
918
|
63: F,
|
|
@@ -924,17 +924,17 @@ var vt = function() {
|
|
|
924
924
|
{ 46: [1, 86] },
|
|
925
925
|
{ 45: [1, 87] },
|
|
926
926
|
{
|
|
927
|
-
4:
|
|
928
|
-
5:
|
|
929
|
-
6:
|
|
930
|
-
8:
|
|
931
|
-
11:
|
|
932
|
-
13:
|
|
927
|
+
4: G,
|
|
928
|
+
5: K,
|
|
929
|
+
6: Z,
|
|
930
|
+
8: J,
|
|
931
|
+
11: V,
|
|
932
|
+
13: tt,
|
|
933
933
|
16: 90,
|
|
934
|
-
17:
|
|
935
|
-
18:
|
|
936
|
-
19:
|
|
937
|
-
20:
|
|
934
|
+
17: et,
|
|
935
|
+
18: it,
|
|
936
|
+
19: at,
|
|
937
|
+
20: nt,
|
|
938
938
|
22: 89,
|
|
939
939
|
23: 88
|
|
940
940
|
},
|
|
@@ -948,8 +948,8 @@ var vt = function() {
|
|
|
948
948
|
10: q,
|
|
949
949
|
12: T,
|
|
950
950
|
13: d,
|
|
951
|
-
14:
|
|
952
|
-
15:
|
|
951
|
+
14: b,
|
|
952
|
+
15: k,
|
|
953
953
|
18: O,
|
|
954
954
|
63: F,
|
|
955
955
|
64: P,
|
|
@@ -966,8 +966,8 @@ var vt = function() {
|
|
|
966
966
|
10: q,
|
|
967
967
|
12: T,
|
|
968
968
|
13: d,
|
|
969
|
-
14:
|
|
970
|
-
15:
|
|
969
|
+
14: b,
|
|
970
|
+
15: k,
|
|
971
971
|
18: O,
|
|
972
972
|
63: F,
|
|
973
973
|
64: P,
|
|
@@ -979,31 +979,31 @@ var vt = function() {
|
|
|
979
979
|
22: 89,
|
|
980
980
|
16: 90,
|
|
981
981
|
23: 101,
|
|
982
|
-
4:
|
|
983
|
-
5:
|
|
984
|
-
6:
|
|
985
|
-
8:
|
|
986
|
-
11:
|
|
987
|
-
13:
|
|
988
|
-
17:
|
|
989
|
-
18:
|
|
990
|
-
19:
|
|
991
|
-
20:
|
|
982
|
+
4: G,
|
|
983
|
+
5: K,
|
|
984
|
+
6: Z,
|
|
985
|
+
8: J,
|
|
986
|
+
11: V,
|
|
987
|
+
13: tt,
|
|
988
|
+
17: et,
|
|
989
|
+
18: it,
|
|
990
|
+
19: at,
|
|
991
|
+
20: nt
|
|
992
992
|
}),
|
|
993
993
|
{ 46: [1, 102] },
|
|
994
|
-
t(a, [2, 29], { 10:
|
|
994
|
+
t(a, [2, 29], { 10: At }),
|
|
995
995
|
t(Gt, [2, 27], {
|
|
996
996
|
16: 104,
|
|
997
|
-
4:
|
|
998
|
-
5:
|
|
999
|
-
6:
|
|
1000
|
-
8:
|
|
1001
|
-
11:
|
|
1002
|
-
13:
|
|
1003
|
-
17:
|
|
1004
|
-
18:
|
|
1005
|
-
19:
|
|
1006
|
-
20:
|
|
997
|
+
4: G,
|
|
998
|
+
5: K,
|
|
999
|
+
6: Z,
|
|
1000
|
+
8: J,
|
|
1001
|
+
11: V,
|
|
1002
|
+
13: tt,
|
|
1003
|
+
17: et,
|
|
1004
|
+
18: it,
|
|
1005
|
+
19: at,
|
|
1006
|
+
20: nt
|
|
1007
1007
|
}),
|
|
1008
1008
|
t($, [2, 25]),
|
|
1009
1009
|
t($, [2, 13]),
|
|
@@ -1016,115 +1016,115 @@ var vt = function() {
|
|
|
1016
1016
|
t($, [2, 20]),
|
|
1017
1017
|
t($, [2, 21]),
|
|
1018
1018
|
t($, [2, 22]),
|
|
1019
|
-
t(a, [2, 49], { 10:
|
|
1019
|
+
t(a, [2, 49], { 10: At }),
|
|
1020
1020
|
t(a, [2, 48], {
|
|
1021
1021
|
22: 89,
|
|
1022
1022
|
16: 90,
|
|
1023
1023
|
23: 105,
|
|
1024
|
-
4:
|
|
1025
|
-
5:
|
|
1026
|
-
6:
|
|
1027
|
-
8:
|
|
1028
|
-
11:
|
|
1029
|
-
13:
|
|
1030
|
-
17:
|
|
1031
|
-
18:
|
|
1032
|
-
19:
|
|
1033
|
-
20:
|
|
1024
|
+
4: G,
|
|
1025
|
+
5: K,
|
|
1026
|
+
6: Z,
|
|
1027
|
+
8: J,
|
|
1028
|
+
11: V,
|
|
1029
|
+
13: tt,
|
|
1030
|
+
17: et,
|
|
1031
|
+
18: it,
|
|
1032
|
+
19: at,
|
|
1033
|
+
20: nt
|
|
1034
1034
|
}),
|
|
1035
1035
|
{
|
|
1036
|
-
4:
|
|
1037
|
-
5:
|
|
1038
|
-
6:
|
|
1039
|
-
8:
|
|
1040
|
-
11:
|
|
1041
|
-
13:
|
|
1036
|
+
4: G,
|
|
1037
|
+
5: K,
|
|
1038
|
+
6: Z,
|
|
1039
|
+
8: J,
|
|
1040
|
+
11: V,
|
|
1041
|
+
13: tt,
|
|
1042
1042
|
16: 90,
|
|
1043
|
-
17:
|
|
1044
|
-
18:
|
|
1045
|
-
19:
|
|
1046
|
-
20:
|
|
1043
|
+
17: et,
|
|
1044
|
+
18: it,
|
|
1045
|
+
19: at,
|
|
1046
|
+
20: nt,
|
|
1047
1047
|
22: 106
|
|
1048
1048
|
},
|
|
1049
1049
|
t($, [2, 26]),
|
|
1050
|
-
t(a, [2, 50], { 10:
|
|
1050
|
+
t(a, [2, 50], { 10: At }),
|
|
1051
1051
|
t(Gt, [2, 28], {
|
|
1052
1052
|
16: 104,
|
|
1053
|
-
4:
|
|
1054
|
-
5:
|
|
1055
|
-
6:
|
|
1056
|
-
8:
|
|
1057
|
-
11:
|
|
1058
|
-
13:
|
|
1059
|
-
17:
|
|
1060
|
-
18:
|
|
1061
|
-
19:
|
|
1062
|
-
20:
|
|
1053
|
+
4: G,
|
|
1054
|
+
5: K,
|
|
1055
|
+
6: Z,
|
|
1056
|
+
8: J,
|
|
1057
|
+
11: V,
|
|
1058
|
+
13: tt,
|
|
1059
|
+
17: et,
|
|
1060
|
+
18: it,
|
|
1061
|
+
19: at,
|
|
1062
|
+
20: nt
|
|
1063
1063
|
})
|
|
1064
1064
|
],
|
|
1065
1065
|
defaultActions: {
|
|
1066
1066
|
8: [2, 30],
|
|
1067
1067
|
9: [2, 31]
|
|
1068
1068
|
},
|
|
1069
|
-
parseError: /* @__PURE__ */ r(function(n,
|
|
1070
|
-
if (
|
|
1069
|
+
parseError: /* @__PURE__ */ r(function(n, A) {
|
|
1070
|
+
if (A.recoverable) this.trace(n);
|
|
1071
1071
|
else {
|
|
1072
|
-
var
|
|
1073
|
-
throw
|
|
1072
|
+
var u = Error(n);
|
|
1073
|
+
throw u.hash = A, u;
|
|
1074
1074
|
}
|
|
1075
1075
|
}, "parseError"),
|
|
1076
1076
|
parse: /* @__PURE__ */ r(function(n) {
|
|
1077
|
-
var
|
|
1078
|
-
for (var
|
|
1079
|
-
z.setInput(n,
|
|
1080
|
-
var
|
|
1081
|
-
e.push(
|
|
1077
|
+
var A = this, u = [0], o = [], S = [null], e = [], ct = this.table, s = "", gt = 0, Kt = 0, Te = 0, qe = 2, Zt = 1, Ae = e.slice.call(arguments, 1), z = Object.create(this.lexer), Y = { yy: {} };
|
|
1078
|
+
for (var _t in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _t) && (Y.yy[_t] = this.yy[_t]);
|
|
1079
|
+
z.setInput(n, Y.yy), Y.yy.lexer = z, Y.yy.parser = this, z.yylloc === void 0 && (z.yylloc = {});
|
|
1080
|
+
var St = z.yylloc;
|
|
1081
|
+
e.push(St);
|
|
1082
1082
|
var be = z.options && z.options.ranges;
|
|
1083
|
-
typeof
|
|
1083
|
+
typeof Y.yy.parseError == "function" ? this.parseError = Y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
1084
1084
|
function _e(R) {
|
|
1085
|
-
|
|
1085
|
+
u.length -= 2 * R, S.length -= R, e.length -= R;
|
|
1086
1086
|
}
|
|
1087
1087
|
r(_e, "popStack");
|
|
1088
1088
|
function Jt() {
|
|
1089
|
-
var R =
|
|
1090
|
-
return typeof R != "number" && (R instanceof Array && (
|
|
1089
|
+
var R = o.pop() || z.lex() || Zt;
|
|
1090
|
+
return typeof R != "number" && (R instanceof Array && (o = R, R = o.pop()), R = A.symbols_[R] || R), R;
|
|
1091
1091
|
}
|
|
1092
1092
|
r(Jt, "lex");
|
|
1093
|
-
for (var W,
|
|
1094
|
-
if (
|
|
1093
|
+
for (var W, kt, j, B, Ft, st = {}, pt, M, Vt, yt; ; ) {
|
|
1094
|
+
if (j = u[u.length - 1], this.defaultActions[j] ? B = this.defaultActions[j] : (W ??= Jt(), B = ct[j] && ct[j][W]), B === void 0 || !B.length || !B[0]) {
|
|
1095
1095
|
var te = "";
|
|
1096
|
-
for (
|
|
1097
|
-
te = z.showPosition ? "Parse error on line " + (
|
|
1096
|
+
for (pt in yt = [], ct[j]) this.terminals_[pt] && pt > qe && yt.push("'" + this.terminals_[pt] + "'");
|
|
1097
|
+
te = z.showPosition ? "Parse error on line " + (gt + 1) + `:
|
|
1098
1098
|
` + z.showPosition() + `
|
|
1099
|
-
Expecting ` +
|
|
1099
|
+
Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : "Parse error on line " + (gt + 1) + ": Unexpected " + (W == Zt ? "end of input" : "'" + (this.terminals_[W] || W) + "'"), this.parseError(te, {
|
|
1100
1100
|
text: z.match,
|
|
1101
1101
|
token: this.terminals_[W] || W,
|
|
1102
1102
|
line: z.yylineno,
|
|
1103
|
-
loc:
|
|
1104
|
-
expected:
|
|
1103
|
+
loc: St,
|
|
1104
|
+
expected: yt
|
|
1105
1105
|
});
|
|
1106
1106
|
}
|
|
1107
|
-
if (B[0] instanceof Array && B.length > 1) throw Error("Parse Error: multiple actions possible at state: " +
|
|
1107
|
+
if (B[0] instanceof Array && B.length > 1) throw Error("Parse Error: multiple actions possible at state: " + j + ", token: " + W);
|
|
1108
1108
|
switch (B[0]) {
|
|
1109
1109
|
case 1:
|
|
1110
|
-
|
|
1110
|
+
u.push(W), S.push(z.yytext), e.push(z.yylloc), u.push(B[1]), W = null, kt ? (W = kt, kt = null) : (Kt = z.yyleng, s = z.yytext, gt = z.yylineno, St = z.yylloc, Te > 0);
|
|
1111
1111
|
break;
|
|
1112
1112
|
case 2:
|
|
1113
|
-
if (M = this.productions_[B[1]][1],
|
|
1113
|
+
if (M = this.productions_[B[1]][1], st.$ = S[S.length - M], st._$ = {
|
|
1114
1114
|
first_line: e[e.length - (M || 1)].first_line,
|
|
1115
1115
|
last_line: e[e.length - 1].last_line,
|
|
1116
1116
|
first_column: e[e.length - (M || 1)].first_column,
|
|
1117
1117
|
last_column: e[e.length - 1].last_column
|
|
1118
|
-
}, be && (
|
|
1118
|
+
}, be && (st._$.range = [e[e.length - (M || 1)].range[0], e[e.length - 1].range[1]]), Ft = this.performAction.apply(st, [
|
|
1119
1119
|
s,
|
|
1120
1120
|
Kt,
|
|
1121
|
-
|
|
1122
|
-
|
|
1121
|
+
gt,
|
|
1122
|
+
Y.yy,
|
|
1123
1123
|
B[1],
|
|
1124
|
-
|
|
1124
|
+
S,
|
|
1125
1125
|
e
|
|
1126
|
-
].concat(Ae)),
|
|
1127
|
-
M && (
|
|
1126
|
+
].concat(Ae)), Ft !== void 0) return Ft;
|
|
1127
|
+
M && (u = u.slice(0, -1 * M * 2), S = S.slice(0, -1 * M), e = e.slice(0, -1 * M)), u.push(this.productions_[B[1]][0]), S.push(st.$), e.push(st._$), Vt = ct[u[u.length - 2]][u[u.length - 1]], u.push(Vt);
|
|
1128
1128
|
break;
|
|
1129
1129
|
case 3:
|
|
1130
1130
|
return !0;
|
|
@@ -1133,15 +1133,15 @@ Expecting ` + qt.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : "Par
|
|
|
1133
1133
|
return !0;
|
|
1134
1134
|
}, "parse")
|
|
1135
1135
|
};
|
|
1136
|
-
|
|
1136
|
+
bt.lexer = /* @__PURE__ */ (function() {
|
|
1137
1137
|
return {
|
|
1138
1138
|
EOF: 1,
|
|
1139
|
-
parseError: /* @__PURE__ */ r(function(n,
|
|
1140
|
-
if (this.yy.parser) this.yy.parser.parseError(n,
|
|
1139
|
+
parseError: /* @__PURE__ */ r(function(n, A) {
|
|
1140
|
+
if (this.yy.parser) this.yy.parser.parseError(n, A);
|
|
1141
1141
|
else throw Error(n);
|
|
1142
1142
|
}, "parseError"),
|
|
1143
|
-
setInput: /* @__PURE__ */ r(function(n,
|
|
1144
|
-
return this.yy =
|
|
1143
|
+
setInput: /* @__PURE__ */ r(function(n, A) {
|
|
1144
|
+
return this.yy = A || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
1145
1145
|
first_line: 1,
|
|
1146
1146
|
first_column: 0,
|
|
1147
1147
|
last_line: 1,
|
|
@@ -1153,17 +1153,17 @@ Expecting ` + qt.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : "Par
|
|
|
1153
1153
|
return this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n, n.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), n;
|
|
1154
1154
|
}, "input"),
|
|
1155
1155
|
unput: /* @__PURE__ */ r(function(n) {
|
|
1156
|
-
var
|
|
1157
|
-
this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length -
|
|
1158
|
-
var
|
|
1159
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
1160
|
-
var
|
|
1156
|
+
var A = n.length, u = n.split(/(?:\r\n?|\n)/g);
|
|
1157
|
+
this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - A), this.offset -= A;
|
|
1158
|
+
var o = this.match.split(/(?:\r\n?|\n)/g);
|
|
1159
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), u.length - 1 && (this.yylineno -= u.length - 1);
|
|
1160
|
+
var S = this.yylloc.range;
|
|
1161
1161
|
return this.yylloc = {
|
|
1162
1162
|
first_line: this.yylloc.first_line,
|
|
1163
1163
|
last_line: this.yylineno + 1,
|
|
1164
1164
|
first_column: this.yylloc.first_column,
|
|
1165
|
-
last_column:
|
|
1166
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
1165
|
+
last_column: u ? (u.length === o.length ? this.yylloc.first_column : 0) + o[o.length - u.length].length - u[0].length : this.yylloc.first_column - A
|
|
1166
|
+
}, this.options.ranges && (this.yylloc.range = [S[0], S[0] + this.yyleng - A]), this.yyleng = this.yytext.length, this;
|
|
1167
1167
|
}, "unput"),
|
|
1168
1168
|
more: /* @__PURE__ */ r(function() {
|
|
1169
1169
|
return this._more = !0, this;
|
|
@@ -1190,13 +1190,13 @@ Expecting ` + qt.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : "Par
|
|
|
1190
1190
|
return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
1191
1191
|
}, "upcomingInput"),
|
|
1192
1192
|
showPosition: /* @__PURE__ */ r(function() {
|
|
1193
|
-
var n = this.pastInput(),
|
|
1193
|
+
var n = this.pastInput(), A = Array(n.length + 1).join("-");
|
|
1194
1194
|
return n + this.upcomingInput() + `
|
|
1195
|
-
` +
|
|
1195
|
+
` + A + "^";
|
|
1196
1196
|
}, "showPosition"),
|
|
1197
|
-
test_match: /* @__PURE__ */ r(function(n,
|
|
1198
|
-
var
|
|
1199
|
-
if (this.options.backtrack_lexer && (
|
|
1197
|
+
test_match: /* @__PURE__ */ r(function(n, A) {
|
|
1198
|
+
var u, o, S;
|
|
1199
|
+
if (this.options.backtrack_lexer && (S = {
|
|
1200
1200
|
yylineno: this.yylineno,
|
|
1201
1201
|
yylloc: {
|
|
1202
1202
|
first_line: this.yylloc.first_line,
|
|
@@ -1215,14 +1215,14 @@ Expecting ` + qt.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : "Par
|
|
|
1215
1215
|
yy: this.yy,
|
|
1216
1216
|
conditionStack: this.conditionStack.slice(0),
|
|
1217
1217
|
done: this.done
|
|
1218
|
-
}, this.options.ranges && (
|
|
1218
|
+
}, this.options.ranges && (S.yylloc.range = this.yylloc.range.slice(0))), o = n[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
|
|
1219
1219
|
first_line: this.yylloc.last_line,
|
|
1220
1220
|
last_line: this.yylineno + 1,
|
|
1221
1221
|
first_column: this.yylloc.last_column,
|
|
1222
|
-
last_column:
|
|
1223
|
-
}, this.yytext += n[0], this.match += n[0], this.matches = n, 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(n[0].length), this.matched += n[0],
|
|
1222
|
+
last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
|
|
1223
|
+
}, this.yytext += n[0], this.match += n[0], this.matches = n, 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(n[0].length), this.matched += n[0], u = this.performAction.call(this, this.yy, this, A, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), u) return u;
|
|
1224
1224
|
if (this._backtrack) {
|
|
1225
|
-
for (var e in
|
|
1225
|
+
for (var e in S) this[e] = S[e];
|
|
1226
1226
|
return !1;
|
|
1227
1227
|
}
|
|
1228
1228
|
return !1;
|
|
@@ -1230,18 +1230,18 @@ Expecting ` + qt.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : "Par
|
|
|
1230
1230
|
next: /* @__PURE__ */ r(function() {
|
|
1231
1231
|
if (this.done) return this.EOF;
|
|
1232
1232
|
this._input || (this.done = !0);
|
|
1233
|
-
var n,
|
|
1233
|
+
var n, A, u, o;
|
|
1234
1234
|
this._more || (this.yytext = "", this.match = "");
|
|
1235
|
-
for (var
|
|
1236
|
-
if (
|
|
1237
|
-
if (n = this.test_match(
|
|
1235
|
+
for (var S = this._currentRules(), e = 0; e < S.length; e++) if (u = this._input.match(this.rules[S[e]]), u && (!A || u[0].length > A[0].length)) {
|
|
1236
|
+
if (A = u, o = e, this.options.backtrack_lexer) {
|
|
1237
|
+
if (n = this.test_match(u, S[e]), n !== !1) return n;
|
|
1238
1238
|
if (this._backtrack) {
|
|
1239
|
-
|
|
1239
|
+
A = !1;
|
|
1240
1240
|
continue;
|
|
1241
1241
|
} else return !1;
|
|
1242
1242
|
} else if (!this.options.flex) break;
|
|
1243
1243
|
}
|
|
1244
|
-
return
|
|
1244
|
+
return A ? (n = this.test_match(A, S[o]), n === !1 ? !1 : n) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
1245
1245
|
` + this.showPosition(), {
|
|
1246
1246
|
text: "",
|
|
1247
1247
|
token: null,
|
|
@@ -1270,8 +1270,8 @@ Expecting ` + qt.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : "Par
|
|
|
1270
1270
|
return this.conditionStack.length;
|
|
1271
1271
|
}, "stateStackSize"),
|
|
1272
1272
|
options: { "case-insensitive": !0 },
|
|
1273
|
-
performAction: /* @__PURE__ */ r(function(n,
|
|
1274
|
-
switch (
|
|
1273
|
+
performAction: /* @__PURE__ */ r(function(n, A, u, o) {
|
|
1274
|
+
switch (u) {
|
|
1275
1275
|
case 0:
|
|
1276
1276
|
break;
|
|
1277
1277
|
case 1:
|
|
@@ -1531,14 +1531,14 @@ Expecting ` + qt.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : "Par
|
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
1533
1533
|
};
|
|
1534
|
-
}();
|
|
1535
|
-
function
|
|
1534
|
+
})();
|
|
1535
|
+
function ft() {
|
|
1536
1536
|
this.yy = {};
|
|
1537
1537
|
}
|
|
1538
|
-
return r(
|
|
1539
|
-
}();
|
|
1540
|
-
|
|
1541
|
-
var De =
|
|
1538
|
+
return r(ft, "Parser"), ft.prototype = bt, bt.Parser = ft, new ft();
|
|
1539
|
+
})();
|
|
1540
|
+
Pt.parser = Pt;
|
|
1541
|
+
var De = Pt, N = ze(), rt, Ie = (rt = class {
|
|
1542
1542
|
constructor() {
|
|
1543
1543
|
this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
|
|
1544
1544
|
}
|
|
@@ -1557,29 +1557,28 @@ var De = vt, N = ze(), ot, Ie = (ot = class {
|
|
|
1557
1557
|
};
|
|
1558
1558
|
}
|
|
1559
1559
|
getDefaultConfig() {
|
|
1560
|
-
var l, u, c, o, x, f, _, a, m, p, y, q, T, d, A, S, Y, j;
|
|
1561
1560
|
return {
|
|
1562
1561
|
showXAxis: !0,
|
|
1563
1562
|
showYAxis: !0,
|
|
1564
1563
|
showTitle: !0,
|
|
1565
|
-
chartHeight:
|
|
1566
|
-
chartWidth:
|
|
1567
|
-
titlePadding:
|
|
1568
|
-
titleFontSize:
|
|
1569
|
-
quadrantPadding:
|
|
1570
|
-
xAxisLabelPadding:
|
|
1571
|
-
yAxisLabelPadding:
|
|
1572
|
-
xAxisLabelFontSize:
|
|
1573
|
-
yAxisLabelFontSize:
|
|
1574
|
-
quadrantLabelFontSize:
|
|
1575
|
-
quadrantTextTopPadding:
|
|
1576
|
-
pointTextPadding:
|
|
1577
|
-
pointLabelFontSize:
|
|
1578
|
-
pointRadius:
|
|
1579
|
-
xAxisPosition:
|
|
1580
|
-
yAxisPosition:
|
|
1581
|
-
quadrantInternalBorderStrokeWidth:
|
|
1582
|
-
quadrantExternalBorderStrokeWidth:
|
|
1564
|
+
chartHeight: D.quadrantChart?.chartWidth || 500,
|
|
1565
|
+
chartWidth: D.quadrantChart?.chartHeight || 500,
|
|
1566
|
+
titlePadding: D.quadrantChart?.titlePadding || 10,
|
|
1567
|
+
titleFontSize: D.quadrantChart?.titleFontSize || 20,
|
|
1568
|
+
quadrantPadding: D.quadrantChart?.quadrantPadding || 5,
|
|
1569
|
+
xAxisLabelPadding: D.quadrantChart?.xAxisLabelPadding || 5,
|
|
1570
|
+
yAxisLabelPadding: D.quadrantChart?.yAxisLabelPadding || 5,
|
|
1571
|
+
xAxisLabelFontSize: D.quadrantChart?.xAxisLabelFontSize || 16,
|
|
1572
|
+
yAxisLabelFontSize: D.quadrantChart?.yAxisLabelFontSize || 16,
|
|
1573
|
+
quadrantLabelFontSize: D.quadrantChart?.quadrantLabelFontSize || 16,
|
|
1574
|
+
quadrantTextTopPadding: D.quadrantChart?.quadrantTextTopPadding || 5,
|
|
1575
|
+
pointTextPadding: D.quadrantChart?.pointTextPadding || 5,
|
|
1576
|
+
pointLabelFontSize: D.quadrantChart?.pointLabelFontSize || 12,
|
|
1577
|
+
pointRadius: D.quadrantChart?.pointRadius || 5,
|
|
1578
|
+
xAxisPosition: D.quadrantChart?.xAxisPosition || "top",
|
|
1579
|
+
yAxisPosition: D.quadrantChart?.yAxisPosition || "left",
|
|
1580
|
+
quadrantInternalBorderStrokeWidth: D.quadrantChart?.quadrantInternalBorderStrokeWidth || 1,
|
|
1581
|
+
quadrantExternalBorderStrokeWidth: D.quadrantChart?.quadrantExternalBorderStrokeWidth || 2
|
|
1583
1582
|
};
|
|
1584
1583
|
}
|
|
1585
1584
|
getDefaultThemeConfig() {
|
|
@@ -1602,7 +1601,7 @@ var De = vt, N = ze(), ot, Ie = (ot = class {
|
|
|
1602
1601
|
};
|
|
1603
1602
|
}
|
|
1604
1603
|
clear() {
|
|
1605
|
-
this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), this.classes = /* @__PURE__ */ new Map(),
|
|
1604
|
+
this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), this.classes = /* @__PURE__ */ new Map(), Tt.info("clear called");
|
|
1606
1605
|
}
|
|
1607
1606
|
setData(l) {
|
|
1608
1607
|
this.data = {
|
|
@@ -1613,31 +1612,31 @@ var De = vt, N = ze(), ot, Ie = (ot = class {
|
|
|
1613
1612
|
addPoints(l) {
|
|
1614
1613
|
this.data.points = [...l, ...this.data.points];
|
|
1615
1614
|
}
|
|
1616
|
-
addClass(l,
|
|
1617
|
-
this.classes.set(l,
|
|
1615
|
+
addClass(l, x) {
|
|
1616
|
+
this.classes.set(l, x);
|
|
1618
1617
|
}
|
|
1619
1618
|
setConfig(l) {
|
|
1620
|
-
|
|
1619
|
+
Tt.trace("setConfig called with: ", l), this.config = {
|
|
1621
1620
|
...this.config,
|
|
1622
1621
|
...l
|
|
1623
1622
|
};
|
|
1624
1623
|
}
|
|
1625
1624
|
setThemeConfig(l) {
|
|
1626
|
-
|
|
1625
|
+
Tt.trace("setThemeConfig called with: ", l), this.themeConfig = {
|
|
1627
1626
|
...this.themeConfig,
|
|
1628
1627
|
...l
|
|
1629
1628
|
};
|
|
1630
1629
|
}
|
|
1631
|
-
calculateSpace(l,
|
|
1632
|
-
let
|
|
1633
|
-
top: l === "top" &&
|
|
1634
|
-
bottom: l === "bottom" &&
|
|
1630
|
+
calculateSpace(l, x, c, h) {
|
|
1631
|
+
let f = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, g = {
|
|
1632
|
+
top: l === "top" && x ? f : 0,
|
|
1633
|
+
bottom: l === "bottom" && x ? f : 0
|
|
1635
1634
|
}, _ = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, a = {
|
|
1636
1635
|
left: this.config.yAxisPosition === "left" && c ? _ : 0,
|
|
1637
1636
|
right: this.config.yAxisPosition === "right" && c ? _ : 0
|
|
1638
|
-
}, m = this.config.titleFontSize + this.config.titlePadding * 2, p = { top:
|
|
1637
|
+
}, m = this.config.titleFontSize + this.config.titlePadding * 2, p = { top: h ? m : 0 }, y = this.config.quadrantPadding + a.left, q = this.config.quadrantPadding + g.top + p.top, T = this.config.chartWidth - this.config.quadrantPadding * 2 - a.left - a.right, d = this.config.chartHeight - this.config.quadrantPadding * 2 - g.top - g.bottom - p.top;
|
|
1639
1638
|
return {
|
|
1640
|
-
xAxisSpace:
|
|
1639
|
+
xAxisSpace: g,
|
|
1641
1640
|
yAxisSpace: a,
|
|
1642
1641
|
titleSpace: p,
|
|
1643
1642
|
quadrantSpace: {
|
|
@@ -1650,27 +1649,27 @@ var De = vt, N = ze(), ot, Ie = (ot = class {
|
|
|
1650
1649
|
}
|
|
1651
1650
|
};
|
|
1652
1651
|
}
|
|
1653
|
-
getAxisLabels(l,
|
|
1654
|
-
let { quadrantSpace:
|
|
1655
|
-
return this.data.xAxisLeftText &&
|
|
1652
|
+
getAxisLabels(l, x, c, h) {
|
|
1653
|
+
let { quadrantSpace: f, titleSpace: g } = h, { quadrantHalfHeight: _, quadrantHeight: a, quadrantLeft: m, quadrantHalfWidth: p, quadrantTop: y, quadrantWidth: q } = f, T = !!this.data.xAxisRightText, d = !!this.data.yAxisTopText, b = [];
|
|
1654
|
+
return this.data.xAxisLeftText && x && b.push({
|
|
1656
1655
|
text: this.data.xAxisLeftText,
|
|
1657
1656
|
fill: this.themeConfig.quadrantXAxisTextFill,
|
|
1658
1657
|
x: m + (T ? p / 2 : 0),
|
|
1659
|
-
y: l === "top" ? this.config.xAxisLabelPadding +
|
|
1658
|
+
y: l === "top" ? this.config.xAxisLabelPadding + g.top : this.config.xAxisLabelPadding + y + a + this.config.quadrantPadding,
|
|
1660
1659
|
fontSize: this.config.xAxisLabelFontSize,
|
|
1661
1660
|
verticalPos: T ? "center" : "left",
|
|
1662
1661
|
horizontalPos: "top",
|
|
1663
1662
|
rotation: 0
|
|
1664
|
-
}), this.data.xAxisRightText &&
|
|
1663
|
+
}), this.data.xAxisRightText && x && b.push({
|
|
1665
1664
|
text: this.data.xAxisRightText,
|
|
1666
1665
|
fill: this.themeConfig.quadrantXAxisTextFill,
|
|
1667
1666
|
x: m + p + (T ? p / 2 : 0),
|
|
1668
|
-
y: l === "top" ? this.config.xAxisLabelPadding +
|
|
1667
|
+
y: l === "top" ? this.config.xAxisLabelPadding + g.top : this.config.xAxisLabelPadding + y + a + this.config.quadrantPadding,
|
|
1669
1668
|
fontSize: this.config.xAxisLabelFontSize,
|
|
1670
1669
|
verticalPos: T ? "center" : "left",
|
|
1671
1670
|
horizontalPos: "top",
|
|
1672
1671
|
rotation: 0
|
|
1673
|
-
}), this.data.yAxisBottomText && c &&
|
|
1672
|
+
}), this.data.yAxisBottomText && c && b.push({
|
|
1674
1673
|
text: this.data.yAxisBottomText,
|
|
1675
1674
|
fill: this.themeConfig.quadrantYAxisTextFill,
|
|
1676
1675
|
x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + m + q + this.config.quadrantPadding,
|
|
@@ -1679,7 +1678,7 @@ var De = vt, N = ze(), ot, Ie = (ot = class {
|
|
|
1679
1678
|
verticalPos: d ? "center" : "left",
|
|
1680
1679
|
horizontalPos: "top",
|
|
1681
1680
|
rotation: -90
|
|
1682
|
-
}), this.data.yAxisTopText && c &&
|
|
1681
|
+
}), this.data.yAxisTopText && c && b.push({
|
|
1683
1682
|
text: this.data.yAxisTopText,
|
|
1684
1683
|
fill: this.themeConfig.quadrantYAxisTextFill,
|
|
1685
1684
|
x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + m + q + this.config.quadrantPadding,
|
|
@@ -1688,10 +1687,10 @@ var De = vt, N = ze(), ot, Ie = (ot = class {
|
|
|
1688
1687
|
verticalPos: d ? "center" : "left",
|
|
1689
1688
|
horizontalPos: "top",
|
|
1690
1689
|
rotation: -90
|
|
1691
|
-
}),
|
|
1690
|
+
}), b;
|
|
1692
1691
|
}
|
|
1693
1692
|
getQuadrants(l) {
|
|
1694
|
-
let { quadrantSpace:
|
|
1693
|
+
let { quadrantSpace: x } = l, { quadrantHalfHeight: c, quadrantLeft: h, quadrantHalfWidth: f, quadrantTop: g } = x, _ = [
|
|
1695
1694
|
{
|
|
1696
1695
|
text: {
|
|
1697
1696
|
text: this.data.quadrant1Text,
|
|
@@ -1703,9 +1702,9 @@ var De = vt, N = ze(), ot, Ie = (ot = class {
|
|
|
1703
1702
|
horizontalPos: "middle",
|
|
1704
1703
|
rotation: 0
|
|
1705
1704
|
},
|
|
1706
|
-
x:
|
|
1707
|
-
y:
|
|
1708
|
-
width:
|
|
1705
|
+
x: h + f,
|
|
1706
|
+
y: g,
|
|
1707
|
+
width: f,
|
|
1709
1708
|
height: c,
|
|
1710
1709
|
fill: this.themeConfig.quadrant1Fill
|
|
1711
1710
|
},
|
|
@@ -1720,9 +1719,9 @@ var De = vt, N = ze(), ot, Ie = (ot = class {
|
|
|
1720
1719
|
horizontalPos: "middle",
|
|
1721
1720
|
rotation: 0
|
|
1722
1721
|
},
|
|
1723
|
-
x:
|
|
1724
|
-
y:
|
|
1725
|
-
width:
|
|
1722
|
+
x: h,
|
|
1723
|
+
y: g,
|
|
1724
|
+
width: f,
|
|
1726
1725
|
height: c,
|
|
1727
1726
|
fill: this.themeConfig.quadrant2Fill
|
|
1728
1727
|
},
|
|
@@ -1737,9 +1736,9 @@ var De = vt, N = ze(), ot, Ie = (ot = class {
|
|
|
1737
1736
|
horizontalPos: "middle",
|
|
1738
1737
|
rotation: 0
|
|
1739
1738
|
},
|
|
1740
|
-
x:
|
|
1741
|
-
y:
|
|
1742
|
-
width:
|
|
1739
|
+
x: h,
|
|
1740
|
+
y: g + c,
|
|
1741
|
+
width: f,
|
|
1743
1742
|
height: c,
|
|
1744
1743
|
fill: this.themeConfig.quadrant3Fill
|
|
1745
1744
|
},
|
|
@@ -1754,9 +1753,9 @@ var De = vt, N = ze(), ot, Ie = (ot = class {
|
|
|
1754
1753
|
horizontalPos: "middle",
|
|
1755
1754
|
rotation: 0
|
|
1756
1755
|
},
|
|
1757
|
-
x:
|
|
1758
|
-
y:
|
|
1759
|
-
width:
|
|
1756
|
+
x: h + f,
|
|
1757
|
+
y: g + c,
|
|
1758
|
+
width: f,
|
|
1760
1759
|
height: c,
|
|
1761
1760
|
fill: this.themeConfig.quadrant4Fill
|
|
1762
1761
|
}
|
|
@@ -1765,7 +1764,7 @@ var De = vt, N = ze(), ot, Ie = (ot = class {
|
|
|
1765
1764
|
return _;
|
|
1766
1765
|
}
|
|
1767
1766
|
getQuadrantPoints(l) {
|
|
1768
|
-
let { quadrantSpace:
|
|
1767
|
+
let { quadrantSpace: x } = l, { quadrantHeight: c, quadrantLeft: h, quadrantTop: f, quadrantWidth: g } = x, _ = ie().domain([0, 1]).range([h, g + h]), a = ie().domain([0, 1]).range([c + f, f]);
|
|
1769
1768
|
return this.data.points.map((m) => {
|
|
1770
1769
|
let p = this.classes.get(m.className);
|
|
1771
1770
|
return p && (m = {
|
|
@@ -1792,55 +1791,55 @@ var De = vt, N = ze(), ot, Ie = (ot = class {
|
|
|
1792
1791
|
});
|
|
1793
1792
|
}
|
|
1794
1793
|
getBorders(l) {
|
|
1795
|
-
let
|
|
1794
|
+
let x = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: c } = l, { quadrantHalfHeight: h, quadrantHeight: f, quadrantLeft: g, quadrantHalfWidth: _, quadrantTop: a, quadrantWidth: m } = c;
|
|
1796
1795
|
return [
|
|
1797
1796
|
{
|
|
1798
1797
|
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
1799
1798
|
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
1800
|
-
x1:
|
|
1799
|
+
x1: g - x,
|
|
1801
1800
|
y1: a,
|
|
1802
|
-
x2:
|
|
1801
|
+
x2: g + m + x,
|
|
1803
1802
|
y2: a
|
|
1804
1803
|
},
|
|
1805
1804
|
{
|
|
1806
1805
|
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
1807
1806
|
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
1808
|
-
x1:
|
|
1809
|
-
y1: a +
|
|
1810
|
-
x2:
|
|
1811
|
-
y2: a +
|
|
1807
|
+
x1: g + m,
|
|
1808
|
+
y1: a + x,
|
|
1809
|
+
x2: g + m,
|
|
1810
|
+
y2: a + f - x
|
|
1812
1811
|
},
|
|
1813
1812
|
{
|
|
1814
1813
|
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
1815
1814
|
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
1816
|
-
x1:
|
|
1817
|
-
y1: a +
|
|
1818
|
-
x2:
|
|
1819
|
-
y2: a +
|
|
1815
|
+
x1: g - x,
|
|
1816
|
+
y1: a + f,
|
|
1817
|
+
x2: g + m + x,
|
|
1818
|
+
y2: a + f
|
|
1820
1819
|
},
|
|
1821
1820
|
{
|
|
1822
1821
|
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
1823
1822
|
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
1824
|
-
x1:
|
|
1825
|
-
y1: a +
|
|
1826
|
-
x2:
|
|
1827
|
-
y2: a +
|
|
1823
|
+
x1: g,
|
|
1824
|
+
y1: a + x,
|
|
1825
|
+
x2: g,
|
|
1826
|
+
y2: a + f - x
|
|
1828
1827
|
},
|
|
1829
1828
|
{
|
|
1830
1829
|
strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
|
|
1831
1830
|
strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
|
|
1832
|
-
x1:
|
|
1833
|
-
y1: a +
|
|
1834
|
-
x2:
|
|
1835
|
-
y2: a +
|
|
1831
|
+
x1: g + _,
|
|
1832
|
+
y1: a + x,
|
|
1833
|
+
x2: g + _,
|
|
1834
|
+
y2: a + f - x
|
|
1836
1835
|
},
|
|
1837
1836
|
{
|
|
1838
1837
|
strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
|
|
1839
1838
|
strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
|
|
1840
|
-
x1:
|
|
1841
|
-
y1: a +
|
|
1842
|
-
x2:
|
|
1843
|
-
y2: a +
|
|
1839
|
+
x1: g + x,
|
|
1840
|
+
y1: a + h,
|
|
1841
|
+
x2: g + m - x,
|
|
1842
|
+
y2: a + h
|
|
1844
1843
|
}
|
|
1845
1844
|
];
|
|
1846
1845
|
}
|
|
@@ -1857,24 +1856,24 @@ var De = vt, N = ze(), ot, Ie = (ot = class {
|
|
|
1857
1856
|
};
|
|
1858
1857
|
}
|
|
1859
1858
|
build() {
|
|
1860
|
-
let l = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText),
|
|
1859
|
+
let l = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), x = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), c = this.config.showTitle && !!this.data.titleText, h = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, f = this.calculateSpace(h, l, x, c);
|
|
1861
1860
|
return {
|
|
1862
|
-
points: this.getQuadrantPoints(
|
|
1863
|
-
quadrants: this.getQuadrants(
|
|
1864
|
-
axisLabels: this.getAxisLabels(
|
|
1865
|
-
borderLines: this.getBorders(
|
|
1861
|
+
points: this.getQuadrantPoints(f),
|
|
1862
|
+
quadrants: this.getQuadrants(f),
|
|
1863
|
+
axisLabels: this.getAxisLabels(h, l, x, f),
|
|
1864
|
+
borderLines: this.getBorders(f),
|
|
1866
1865
|
title: this.getTitle(c)
|
|
1867
1866
|
};
|
|
1868
1867
|
}
|
|
1869
|
-
}, r(
|
|
1870
|
-
constructor(l,
|
|
1871
|
-
super(`value for ${l} ${
|
|
1868
|
+
}, r(rt, "QuadrantBuilder"), rt), lt, mt = (lt = class extends Error {
|
|
1869
|
+
constructor(l, x, c) {
|
|
1870
|
+
super(`value for ${l} ${x} is invalid, please use a valid ${c}`), this.name = "InvalidStyleError";
|
|
1872
1871
|
}
|
|
1873
|
-
}, r(
|
|
1874
|
-
function
|
|
1872
|
+
}, r(lt, "InvalidStyleError"), lt);
|
|
1873
|
+
function Ct(t) {
|
|
1875
1874
|
return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t);
|
|
1876
1875
|
}
|
|
1877
|
-
r(
|
|
1876
|
+
r(Ct, "validateHexCode");
|
|
1878
1877
|
function ne(t) {
|
|
1879
1878
|
return !/^\d+$/.test(t);
|
|
1880
1879
|
}
|
|
@@ -1883,7 +1882,7 @@ function se(t) {
|
|
|
1883
1882
|
return !/^\d+px$/.test(t);
|
|
1884
1883
|
}
|
|
1885
1884
|
r(se, "validateSizeInPixels");
|
|
1886
|
-
var Ne =
|
|
1885
|
+
var Ne = Lt();
|
|
1887
1886
|
function H(t) {
|
|
1888
1887
|
return Ee(t.trim(), Ne);
|
|
1889
1888
|
}
|
|
@@ -1921,40 +1920,40 @@ function xe(t) {
|
|
|
1921
1920
|
I.setData({ yAxisBottomText: H(t.text) });
|
|
1922
1921
|
}
|
|
1923
1922
|
r(xe, "setYAxisBottomText");
|
|
1924
|
-
function
|
|
1923
|
+
function qt(t) {
|
|
1925
1924
|
let l = {};
|
|
1926
|
-
for (let
|
|
1927
|
-
let [c,
|
|
1925
|
+
for (let x of t) {
|
|
1926
|
+
let [c, h] = x.trim().split(/\s*:\s*/);
|
|
1928
1927
|
if (c === "radius") {
|
|
1929
|
-
if (ne(
|
|
1930
|
-
l.radius = parseInt(
|
|
1928
|
+
if (ne(h)) throw new mt(c, h, "number");
|
|
1929
|
+
l.radius = parseInt(h);
|
|
1931
1930
|
} else if (c === "color") {
|
|
1932
|
-
if (
|
|
1933
|
-
l.color =
|
|
1931
|
+
if (Ct(h)) throw new mt(c, h, "hex code");
|
|
1932
|
+
l.color = h;
|
|
1934
1933
|
} else if (c === "stroke-color") {
|
|
1935
|
-
if (
|
|
1936
|
-
l.strokeColor =
|
|
1934
|
+
if (Ct(h)) throw new mt(c, h, "hex code");
|
|
1935
|
+
l.strokeColor = h;
|
|
1937
1936
|
} else if (c === "stroke-width") {
|
|
1938
|
-
if (se(
|
|
1939
|
-
l.strokeWidth =
|
|
1937
|
+
if (se(h)) throw new mt(c, h, "number of pixels (eg. 10px)");
|
|
1938
|
+
l.strokeWidth = h;
|
|
1940
1939
|
} else throw Error(`style named ${c} is not supported.`);
|
|
1941
1940
|
}
|
|
1942
1941
|
return l;
|
|
1943
1942
|
}
|
|
1944
|
-
r(
|
|
1945
|
-
function fe(t, l,
|
|
1946
|
-
let
|
|
1943
|
+
r(qt, "parseStyles");
|
|
1944
|
+
function fe(t, l, x, c, h) {
|
|
1945
|
+
let f = qt(h);
|
|
1947
1946
|
I.addPoints([{
|
|
1948
|
-
x
|
|
1947
|
+
x,
|
|
1949
1948
|
y: c,
|
|
1950
1949
|
text: H(t.text),
|
|
1951
1950
|
className: l,
|
|
1952
|
-
...
|
|
1951
|
+
...f
|
|
1953
1952
|
}]);
|
|
1954
1953
|
}
|
|
1955
1954
|
r(fe, "addPoint");
|
|
1956
1955
|
function ge(t, l) {
|
|
1957
|
-
I.addClass(t,
|
|
1956
|
+
I.addClass(t, qt(l));
|
|
1958
1957
|
}
|
|
1959
1958
|
r(ge, "addClass");
|
|
1960
1959
|
function pe(t) {
|
|
@@ -1966,7 +1965,7 @@ function ye(t) {
|
|
|
1966
1965
|
}
|
|
1967
1966
|
r(ye, "setHeight");
|
|
1968
1967
|
function me() {
|
|
1969
|
-
let { themeVariables: t, quadrantChart: l } =
|
|
1968
|
+
let { themeVariables: t, quadrantChart: l } = Lt();
|
|
1970
1969
|
return l && I.setConfig(l), I.setThemeConfig({
|
|
1971
1970
|
quadrant1Fill: t.quadrant1Fill,
|
|
1972
1971
|
quadrant2Fill: t.quadrant2Fill,
|
|
@@ -1999,7 +1998,7 @@ var $e = {
|
|
|
1999
1998
|
setXAxisRightText: de,
|
|
2000
1999
|
setYAxisTopText: ue,
|
|
2001
2000
|
setYAxisBottomText: xe,
|
|
2002
|
-
parseStyles:
|
|
2001
|
+
parseStyles: qt,
|
|
2003
2002
|
addPoint: fe,
|
|
2004
2003
|
addClass: ge,
|
|
2005
2004
|
getQuadrantData: me,
|
|
@@ -2013,33 +2012,32 @@ var $e = {
|
|
|
2013
2012
|
getAccDescription: ke,
|
|
2014
2013
|
setAccDescription: Se
|
|
2015
2014
|
},
|
|
2016
|
-
renderer: { draw: /* @__PURE__ */ r((t, l,
|
|
2017
|
-
|
|
2018
|
-
function o(i) {
|
|
2015
|
+
renderer: { draw: /* @__PURE__ */ r((t, l, x, c) => {
|
|
2016
|
+
function h(i) {
|
|
2019
2017
|
return i === "top" ? "hanging" : "middle";
|
|
2020
2018
|
}
|
|
2021
|
-
r(
|
|
2022
|
-
function
|
|
2019
|
+
r(h, "getDominantBaseLine");
|
|
2020
|
+
function f(i) {
|
|
2023
2021
|
return i === "left" ? "start" : "middle";
|
|
2024
2022
|
}
|
|
2025
|
-
r(
|
|
2026
|
-
function
|
|
2023
|
+
r(f, "getTextAnchor");
|
|
2024
|
+
function g(i) {
|
|
2027
2025
|
return `translate(${i.x}, ${i.y}) rotate(${i.rotation || 0})`;
|
|
2028
2026
|
}
|
|
2029
|
-
r(
|
|
2030
|
-
let _ =
|
|
2031
|
-
|
|
2027
|
+
r(g, "getTransformation");
|
|
2028
|
+
let _ = Lt();
|
|
2029
|
+
Tt.debug(`Rendering quadrant chart
|
|
2032
2030
|
` + t);
|
|
2033
2031
|
let a = _.securityLevel, m;
|
|
2034
2032
|
a === "sandbox" && (m = ee("#i" + l));
|
|
2035
|
-
let p = ee(a === "sandbox" ? m.nodes()[0].contentDocument.body : "body").select(`[id="${l}"]`), y = p.append("g").attr("class", "main"), q =
|
|
2036
|
-
Le(p, T, q,
|
|
2037
|
-
let d = c.db.getQuadrantData(),
|
|
2038
|
-
d.title &&
|
|
2039
|
-
let
|
|
2040
|
-
|
|
2041
|
-
let
|
|
2042
|
-
|
|
2033
|
+
let p = ee(a === "sandbox" ? m.nodes()[0].contentDocument.body : "body").select(`[id="${l}"]`), y = p.append("g").attr("class", "main"), q = _.quadrantChart?.chartWidth ?? 500, T = _.quadrantChart?.chartHeight ?? 500;
|
|
2034
|
+
Le(p, T, q, _.quadrantChart?.useMaxWidth ?? !0), p.attr("viewBox", "0 0 " + q + " " + T), c.db.setHeight(T), c.db.setWidth(q);
|
|
2035
|
+
let d = c.db.getQuadrantData(), b = y.append("g").attr("class", "quadrants"), k = y.append("g").attr("class", "border"), dt = y.append("g").attr("class", "data-points"), ut = y.append("g").attr("class", "labels"), xt = y.append("g").attr("class", "title");
|
|
2036
|
+
d.title && xt.append("text").attr("x", 0).attr("y", 0).attr("fill", d.title.fill).attr("font-size", d.title.fontSize).attr("dominant-baseline", h(d.title.horizontalPos)).attr("text-anchor", f(d.title.verticalPos)).attr("transform", g(d.title)).text(d.title.text), d.borderLines && k.selectAll("line").data(d.borderLines).enter().append("line").attr("x1", (i) => i.x1).attr("y1", (i) => i.y1).attr("x2", (i) => i.x2).attr("y2", (i) => i.y2).style("stroke", (i) => i.strokeFill).style("stroke-width", (i) => i.strokeWidth);
|
|
2037
|
+
let ot = b.selectAll("g.quadrant").data(d.quadrants).enter().append("g").attr("class", "quadrant");
|
|
2038
|
+
ot.append("rect").attr("x", (i) => i.x).attr("y", (i) => i.y).attr("width", (i) => i.width).attr("height", (i) => i.height).attr("fill", (i) => i.fill), ot.append("text").attr("x", 0).attr("y", 0).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr("dominant-baseline", (i) => h(i.text.horizontalPos)).attr("text-anchor", (i) => f(i.text.verticalPos)).attr("transform", (i) => g(i.text)).text((i) => i.text.text), ut.selectAll("g.label").data(d.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text((i) => i.text).attr("fill", (i) => i.fill).attr("font-size", (i) => i.fontSize).attr("dominant-baseline", (i) => h(i.horizontalPos)).attr("text-anchor", (i) => f(i.verticalPos)).attr("transform", (i) => g(i));
|
|
2039
|
+
let ht = dt.selectAll("g.data-point").data(d.points).enter().append("g").attr("class", "data-point");
|
|
2040
|
+
ht.append("circle").attr("cx", (i) => i.x).attr("cy", (i) => i.y).attr("r", (i) => i.radius).attr("fill", (i) => i.fill).attr("stroke", (i) => i.strokeColor).attr("stroke-width", (i) => i.strokeWidth), ht.append("text").attr("x", 0).attr("y", 0).text((i) => i.text.text).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr("dominant-baseline", (i) => h(i.text.horizontalPos)).attr("text-anchor", (i) => f(i.text.verticalPos)).attr("transform", (i) => g(i.text));
|
|
2043
2041
|
}, "draw") },
|
|
2044
2042
|
styles: /* @__PURE__ */ r(() => "", "styles")
|
|
2045
2043
|
};
|