@kong-ui-public/documentation 1.7.21 → 1.7.22-pr.3646.2d80ddaf3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/dist/arc-DZdQjcG8-CduayE88.js +0 -79
- package/dist/architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js +0 -4065
- package/dist/astro-D8QEIUE9-nzvtSwAQ.js +0 -18
- package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +0 -3268
- package/dist/c-GOwUpV7U-DMPKLUI8.js +0 -4
- package/dist/c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js +0 -3035
- package/dist/catppuccin-latte-BcV8jije-D8pvGdu1.js +0 -4
- package/dist/channel-DM9j7IFL-DxqBUxfY.js +0 -5
- package/dist/chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js +0 -24
- package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +0 -8
- package/dist/chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js +0 -8
- package/dist/chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js +0 -3445
- package/dist/chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js +0 -2096
- package/dist/chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js +0 -19
- package/dist/chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js +0 -65
- package/dist/chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js +0 -12
- package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +0 -17
- package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +0 -17
- package/dist/cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js +0 -2260
- package/dist/csharp-Cy04UeDC-OaGPefhL.js +0 -4
- package/dist/css-CJQ-rcMF-B_2PRTA_.js +0 -4
- package/dist/csv-Bx_Umlp--BPWcOTV4.js +0 -4
- package/dist/cytoscape.esm-BDIiOYYO-C1jMBhD8.js +0 -18220
- package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +0 -288
- package/dist/dagre-DJxg_nfI-hVOVexz-.js +0 -1687
- package/dist/defaultLocale-mtMQ0U8A-D6jPixjH.js +0 -182
- package/dist/diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js +0 -210
- package/dist/diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js +0 -99
- package/dist/diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js +0 -439
- package/dist/diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js +0 -127
- package/dist/diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js +0 -475
- package/dist/diff-DZRtXnMG-DenOJuyV.js +0 -4
- package/dist/docker-DQBBDNmU-xX8PDoIv.js +0 -4
- package/dist/documentation.es.js +0 -7
- package/dist/documentation.umd.js +0 -3474
- package/dist/erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js +0 -1773
- package/dist/flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js +0 -4258
- package/dist/ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js +0 -3099
- package/dist/git-commit-BOgnKaZ8-Csu8eMzs.js +0 -5
- package/dist/git-rebase-0v-YFIjP-D701iWbX.js +0 -5
- package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +0 -734
- package/dist/go-DpaXbCNA-DqSXHrGo.js +0 -4
- package/dist/graphlib-D2YdGpuK-CnQPmzkS.js +0 -1071
- package/dist/graphql-BSO8hVnT-C6Okg5tI.js +0 -14
- package/dist/haml-DizLz-gS-BWwS-eha.js +0 -10
- package/dist/handlebars-tnt1-4s--xVtJSIx5.js +0 -14
- package/dist/haskell-BDLr0yXS-BlmVjKNy.js +0 -4
- package/dist/html-DdIT5Pi9-C35UyBqr.js +0 -10
- package/dist/html-derivative-BHAKSQcK-BChKhjnv.js +0 -5
- package/dist/http-DRk-iX-V-DQ76ihB0.js +0 -14
- package/dist/index-DfVKdDwj.js +0 -40029
- package/dist/infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js +0 -18
- package/dist/ini-D-uG5DCC-70PBzbbb.js +0 -4
- package/dist/init-8lPFe2y8-B2MlpiqM.js +0 -16
- package/dist/ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js +0 -728
- package/dist/java-CQQr73XR-D6YBp1XX.js +0 -4
- package/dist/javascript-CXmFGv-C-BRPKgr3C.js +0 -4
- package/dist/journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js +0 -908
- package/dist/json-BXFRNzj8-D8uacQj0.js +0 -4
- package/dist/json5-B5-J7v9w-Biib5ALh.js +0 -4
- package/dist/jsonc-CeA7x8NU-BZEKkMok.js +0 -4
- package/dist/jsonl-BBlxch9W-BG2V-IA2.js +0 -4
- package/dist/jsx-DucQCby8-Cl0AMtmu.js +0 -4
- package/dist/kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js +0 -1028
- package/dist/katex-D7tFlpqA-BOSQxXe1.js +0 -22315
- package/dist/kotlin-CDXyBjvc-Dy_91eL4.js +0 -4
- package/dist/latex-COX74REd-l1quglTx.js +0 -5
- package/dist/less-QqooI0UQ-tcNg8M2_.js +0 -4
- package/dist/linear-1MXhYum8-9C1jno9G.js +0 -255
- package/dist/liquid-CsynDTV--Bdhb3gsJ.js +0 -14
- package/dist/lua-B3xrKnOz-Coo0MCwO.js +0 -5
- package/dist/make-eFBmESRY-CrUl7LOH.js +0 -4
- package/dist/markdown-DkQv9NwM-Bcqt-5kX.js +0 -4
- package/dist/material-theme-darker-Bp7Jj852-DMHCIvq5.js +0 -4
- package/dist/mdc-BK-Z5Xv--aFc-Oyv5.js +0 -12
- package/dist/mdx-CjbEMaEg-CK6jOqmu.js +0 -4
- package/dist/mermaid-Ccfpee4A-BgbNnQO5.js +0 -4
- package/dist/mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js +0 -1026
- package/dist/nginx-DQrs__jO-BS9Jcr4V.js +0 -5
- package/dist/objective-c-CXg1TPY9-C809HPrX.js +0 -4
- package/dist/ordinal-D9ksOc8y-2hZwLyEk.js +0 -63
- package/dist/pascal-C6L9Tn1x-a8whuidZ.js +0 -4
- package/dist/perl-Dbi-SlHs-DsZjIGqU.js +0 -16
- package/dist/php-J5w8HAya-DnRg4f-g.js +0 -18
- package/dist/pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js +0 -153
- package/dist/plsql-Ba_yrVwL-BJoF2Vrf.js +0 -4
- package/dist/postcss-Bsoc__IZ-DaHMm3XW.js +0 -4
- package/dist/powershell-CKvM5hOe-Box9VSDW.js +0 -4
- package/dist/proto-iweZN-Ks-w0B_itsp.js +0 -4
- package/dist/pug-DUPsoXbW-BFHDRSax.js +0 -12
- package/dist/python-MxhgNM12-D_5pfY__.js +0 -4
- package/dist/quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js +0 -2046
- package/dist/r-CoGPXt5G-BrbXTU3W.js +0 -4
- package/dist/reg-CHAl2UuA-bHAwx9Pm.js +0 -4
- package/dist/requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js +0 -2281
- package/dist/rst-D-Zcnz0t-C3PGnqgH.js +0 -20
- package/dist/ruby-CQp7mk0v-B3KpG-9E.js +0 -46
- package/dist/rust-W9HETclW-CaZtBt24.js +0 -4
- package/dist/sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js +0 -946
- package/dist/sass-DzGfEb5u-pslLeRRb.js +0 -4
- package/dist/scss-cWHTb1-d-DN6jMR75.js +0 -5
- package/dist/sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js +0 -4266
- package/dist/shellscript-BvJBBLP1-BtH46UX7.js +0 -4
- package/dist/shellsession-CXHk-hsk-D-2JR5oU.js +0 -5
- package/dist/splunk-TtOhH_8h-BP8P7eWt.js +0 -4
- package/dist/sql-B-h_q34g-uWwuAxg_.js +0 -4
- package/dist/ssh-config-B7jk1vQp-BB1rrGb9.js +0 -4
- package/dist/stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js +0 -210
- package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +0 -16
- package/dist/style.css +0 -1
- package/dist/stylus-Ccd_7r3J-DAu5PNZ9.js +0 -4
- package/dist/svelte-CYqtuUsn-Cf97VB5J.js +0 -14
- package/dist/swift-CzsQqA0L-BPF2ddNF.js +0 -4
- package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +0 -1095
- package/dist/toml-CRTROHRr-DjT9Bjqu.js +0 -4
- package/dist/tsx-CE8dfKwK-B-5hSr15.js +0 -4
- package/dist/twig-Bst4uh7S-C3aA9tng.js +0 -18
- package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -35
- package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
- package/dist/types/components/DocumentationContent.vue.d.ts +0 -186
- package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
- package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -105
- package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
- package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -31
- package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
- package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -72
- package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
- package/dist/types/composables/index.d.ts +0 -6
- package/dist/types/composables/index.d.ts.map +0 -1
- package/dist/types/composables/useI18n.d.ts +0 -9
- package/dist/types/composables/useI18n.d.ts.map +0 -1
- package/dist/types/external-links.d.ts +0 -5
- package/dist/types/external-links.d.ts.map +0 -1
- package/dist/types/helpers.d.ts +0 -8
- package/dist/types/helpers.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -7
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/types/document-list.d.ts +0 -28
- package/dist/types/types/document-list.d.ts.map +0 -1
- package/dist/types/types/document-modal.d.ts +0 -8
- package/dist/types/types/document-modal.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -3
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/typescript-8ogSSNer-B0ag8pir.js +0 -4
- package/dist/v-NeSnRB8V-CYSa2rJN.js +0 -4
- package/dist/vb-Dz72yc4q-B6FpM2Kc.js +0 -4
- package/dist/vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js +0 -1889
- package/dist/viml-DB1flIhL-BeYQ8dZh.js +0 -4
- package/dist/vue-Bq4JA_WT-CGBUDahs.js +0 -22
- package/dist/vue-html-BygQzR-9-BPez-Otx.js +0 -5
- package/dist/wardley-L42UT6IY-BjAkE_cs-C-giFqos.js +0 -20731
- package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +0 -639
- package/dist/wasm-BmZuu1vu-CfuK9YWP.js +0 -4
- package/dist/wgsl-D-vNyw6e-C2IZ7ENh.js +0 -4
- package/dist/xml-juAhGoTG-khG3jjDl.js +0 -5
- package/dist/xsl-CHgyQG2O-CiMa9sUf.js +0 -5
- package/dist/xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js +0 -2055
- package/dist/yaml-BK_xXVzk-X78l_Ibz.js +0 -4
|
@@ -1,728 +0,0 @@
|
|
|
1
|
-
import { p as r, Z as ht, a1 as ut, a0 as dt, ba as yt, H as pt, a as ft, f as it, W as gt, U as mt, K as kt, G as xt, i as wt, A as bt } from "./index-DfVKdDwj.js";
|
|
2
|
-
var J = (function() {
|
|
3
|
-
var e = /* @__PURE__ */ r(function(t, y, n, h) {
|
|
4
|
-
for (n ||= {}, h = t.length; h--; n[t[h]] = y) ;
|
|
5
|
-
return n;
|
|
6
|
-
}, "o"), l = [1, 4], a = [1, 14], s = [1, 12], i = [1, 13], d = [
|
|
7
|
-
6,
|
|
8
|
-
7,
|
|
9
|
-
8
|
|
10
|
-
], p = [1, 20], u = [1, 18], f = [1, 19], g = [
|
|
11
|
-
6,
|
|
12
|
-
7,
|
|
13
|
-
11
|
|
14
|
-
], x = [
|
|
15
|
-
1,
|
|
16
|
-
6,
|
|
17
|
-
13,
|
|
18
|
-
14
|
|
19
|
-
], m = [1, 23], $ = [1, 24], I = [
|
|
20
|
-
1,
|
|
21
|
-
6,
|
|
22
|
-
7,
|
|
23
|
-
11,
|
|
24
|
-
13,
|
|
25
|
-
14
|
|
26
|
-
], C = {
|
|
27
|
-
trace: /* @__PURE__ */ r(function() {
|
|
28
|
-
}, "trace"),
|
|
29
|
-
yy: {},
|
|
30
|
-
symbols_: {
|
|
31
|
-
error: 2,
|
|
32
|
-
start: 3,
|
|
33
|
-
ishikawa: 4,
|
|
34
|
-
spaceLines: 5,
|
|
35
|
-
SPACELINE: 6,
|
|
36
|
-
NL: 7,
|
|
37
|
-
ISHIKAWA: 8,
|
|
38
|
-
document: 9,
|
|
39
|
-
stop: 10,
|
|
40
|
-
EOF: 11,
|
|
41
|
-
statement: 12,
|
|
42
|
-
SPACELIST: 13,
|
|
43
|
-
TEXT: 14,
|
|
44
|
-
$accept: 0,
|
|
45
|
-
$end: 1
|
|
46
|
-
},
|
|
47
|
-
terminals_: {
|
|
48
|
-
2: "error",
|
|
49
|
-
6: "SPACELINE",
|
|
50
|
-
7: "NL",
|
|
51
|
-
8: "ISHIKAWA",
|
|
52
|
-
11: "EOF",
|
|
53
|
-
13: "SPACELIST",
|
|
54
|
-
14: "TEXT"
|
|
55
|
-
},
|
|
56
|
-
productions_: [
|
|
57
|
-
0,
|
|
58
|
-
[3, 1],
|
|
59
|
-
[3, 2],
|
|
60
|
-
[5, 1],
|
|
61
|
-
[5, 2],
|
|
62
|
-
[5, 2],
|
|
63
|
-
[4, 2],
|
|
64
|
-
[4, 3],
|
|
65
|
-
[10, 1],
|
|
66
|
-
[10, 1],
|
|
67
|
-
[10, 1],
|
|
68
|
-
[10, 2],
|
|
69
|
-
[10, 2],
|
|
70
|
-
[9, 3],
|
|
71
|
-
[9, 2],
|
|
72
|
-
[12, 2],
|
|
73
|
-
[12, 1],
|
|
74
|
-
[12, 1],
|
|
75
|
-
[12, 1]
|
|
76
|
-
],
|
|
77
|
-
performAction: /* @__PURE__ */ r(function(t, y, n, h, c, o, B) {
|
|
78
|
-
var b = o.length - 1;
|
|
79
|
-
switch (c) {
|
|
80
|
-
case 6:
|
|
81
|
-
case 7:
|
|
82
|
-
return h;
|
|
83
|
-
case 15:
|
|
84
|
-
h.addNode(o[b - 1].length, o[b].trim());
|
|
85
|
-
break;
|
|
86
|
-
case 16:
|
|
87
|
-
h.addNode(0, o[b].trim());
|
|
88
|
-
break;
|
|
89
|
-
}
|
|
90
|
-
}, "anonymous"),
|
|
91
|
-
table: [
|
|
92
|
-
{
|
|
93
|
-
3: 1,
|
|
94
|
-
4: 2,
|
|
95
|
-
5: 3,
|
|
96
|
-
6: [1, 5],
|
|
97
|
-
8: l
|
|
98
|
-
},
|
|
99
|
-
{ 1: [3] },
|
|
100
|
-
{ 1: [2, 1] },
|
|
101
|
-
{
|
|
102
|
-
4: 6,
|
|
103
|
-
6: [1, 7],
|
|
104
|
-
7: [1, 8],
|
|
105
|
-
8: l
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
6: a,
|
|
109
|
-
7: [1, 10],
|
|
110
|
-
9: 9,
|
|
111
|
-
12: 11,
|
|
112
|
-
13: s,
|
|
113
|
-
14: i
|
|
114
|
-
},
|
|
115
|
-
e(d, [2, 3]),
|
|
116
|
-
{ 1: [2, 2] },
|
|
117
|
-
e(d, [2, 4]),
|
|
118
|
-
e(d, [2, 5]),
|
|
119
|
-
{
|
|
120
|
-
1: [2, 6],
|
|
121
|
-
6: a,
|
|
122
|
-
12: 15,
|
|
123
|
-
13: s,
|
|
124
|
-
14: i
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
6: a,
|
|
128
|
-
9: 16,
|
|
129
|
-
12: 11,
|
|
130
|
-
13: s,
|
|
131
|
-
14: i
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
6: p,
|
|
135
|
-
7: u,
|
|
136
|
-
10: 17,
|
|
137
|
-
11: f
|
|
138
|
-
},
|
|
139
|
-
e(g, [2, 18], { 14: [1, 21] }),
|
|
140
|
-
e(g, [2, 16]),
|
|
141
|
-
e(g, [2, 17]),
|
|
142
|
-
{
|
|
143
|
-
6: p,
|
|
144
|
-
7: u,
|
|
145
|
-
10: 22,
|
|
146
|
-
11: f
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
1: [2, 7],
|
|
150
|
-
6: a,
|
|
151
|
-
12: 15,
|
|
152
|
-
13: s,
|
|
153
|
-
14: i
|
|
154
|
-
},
|
|
155
|
-
e(x, [2, 14], {
|
|
156
|
-
7: m,
|
|
157
|
-
11: $
|
|
158
|
-
}),
|
|
159
|
-
e(I, [2, 8]),
|
|
160
|
-
e(I, [2, 9]),
|
|
161
|
-
e(I, [2, 10]),
|
|
162
|
-
e(g, [2, 15]),
|
|
163
|
-
e(x, [2, 13], {
|
|
164
|
-
7: m,
|
|
165
|
-
11: $
|
|
166
|
-
}),
|
|
167
|
-
e(I, [2, 11]),
|
|
168
|
-
e(I, [2, 12])
|
|
169
|
-
],
|
|
170
|
-
defaultActions: {
|
|
171
|
-
2: [2, 1],
|
|
172
|
-
6: [2, 2]
|
|
173
|
-
},
|
|
174
|
-
parseError: /* @__PURE__ */ r(function(t, y) {
|
|
175
|
-
if (y.recoverable) this.trace(t);
|
|
176
|
-
else {
|
|
177
|
-
var n = Error(t);
|
|
178
|
-
throw n.hash = y, n;
|
|
179
|
-
}
|
|
180
|
-
}, "parseError"),
|
|
181
|
-
parse: /* @__PURE__ */ r(function(t) {
|
|
182
|
-
var y = this, n = [0], h = [], c = [null], o = [], B = this.table, b = "", w = 0, v = 0, N = 0, S = 2, E = 1, L = o.slice.call(arguments, 1), k = Object.create(this.lexer), _ = { yy: {} };
|
|
183
|
-
for (var M in this.yy) Object.prototype.hasOwnProperty.call(this.yy, M) && (_.yy[M] = this.yy[M]);
|
|
184
|
-
k.setInput(t, _.yy), _.yy.lexer = k, _.yy.parser = this, k.yylloc === void 0 && (k.yylloc = {});
|
|
185
|
-
var R = k.yylloc;
|
|
186
|
-
o.push(R);
|
|
187
|
-
var Z = k.options && k.options.ranges;
|
|
188
|
-
typeof _.yy.parseError == "function" ? this.parseError = _.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
189
|
-
function V(O) {
|
|
190
|
-
n.length -= 2 * O, c.length -= O, o.length -= O;
|
|
191
|
-
}
|
|
192
|
-
r(V, "popStack");
|
|
193
|
-
function Q() {
|
|
194
|
-
var O = h.pop() || k.lex() || E;
|
|
195
|
-
return typeof O != "number" && (O instanceof Array && (h = O, O = h.pop()), O = y.symbols_[O] || O), O;
|
|
196
|
-
}
|
|
197
|
-
r(Q, "lex");
|
|
198
|
-
for (var P, X, T, W, q, j = {}, G, z, tt, K; ; ) {
|
|
199
|
-
if (T = n[n.length - 1], this.defaultActions[T] ? W = this.defaultActions[T] : (P ??= Q(), W = B[T] && B[T][P]), W === void 0 || !W.length || !W[0]) {
|
|
200
|
-
var et = "";
|
|
201
|
-
for (G in K = [], B[T]) this.terminals_[G] && G > S && K.push("'" + this.terminals_[G] + "'");
|
|
202
|
-
et = k.showPosition ? "Parse error on line " + (w + 1) + `:
|
|
203
|
-
` + k.showPosition() + `
|
|
204
|
-
Expecting ` + K.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : "Parse error on line " + (w + 1) + ": Unexpected " + (P == E ? "end of input" : "'" + (this.terminals_[P] || P) + "'"), this.parseError(et, {
|
|
205
|
-
text: k.match,
|
|
206
|
-
token: this.terminals_[P] || P,
|
|
207
|
-
line: k.yylineno,
|
|
208
|
-
loc: R,
|
|
209
|
-
expected: K
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
if (W[0] instanceof Array && W.length > 1) throw Error("Parse Error: multiple actions possible at state: " + T + ", token: " + P);
|
|
213
|
-
switch (W[0]) {
|
|
214
|
-
case 1:
|
|
215
|
-
n.push(P), c.push(k.yytext), o.push(k.yylloc), n.push(W[1]), P = null, X ? (P = X, X = null) : (v = k.yyleng, b = k.yytext, w = k.yylineno, R = k.yylloc, N > 0);
|
|
216
|
-
break;
|
|
217
|
-
case 2:
|
|
218
|
-
if (z = this.productions_[W[1]][1], j.$ = c[c.length - z], j._$ = {
|
|
219
|
-
first_line: o[o.length - (z || 1)].first_line,
|
|
220
|
-
last_line: o[o.length - 1].last_line,
|
|
221
|
-
first_column: o[o.length - (z || 1)].first_column,
|
|
222
|
-
last_column: o[o.length - 1].last_column
|
|
223
|
-
}, Z && (j._$.range = [o[o.length - (z || 1)].range[0], o[o.length - 1].range[1]]), q = this.performAction.apply(j, [
|
|
224
|
-
b,
|
|
225
|
-
v,
|
|
226
|
-
w,
|
|
227
|
-
_.yy,
|
|
228
|
-
W[1],
|
|
229
|
-
c,
|
|
230
|
-
o
|
|
231
|
-
].concat(L)), q !== void 0) return q;
|
|
232
|
-
z && (n = n.slice(0, -1 * z * 2), c = c.slice(0, -1 * z), o = o.slice(0, -1 * z)), n.push(this.productions_[W[1]][0]), c.push(j.$), o.push(j._$), tt = B[n[n.length - 2]][n[n.length - 1]], n.push(tt);
|
|
233
|
-
break;
|
|
234
|
-
case 3:
|
|
235
|
-
return !0;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
return !0;
|
|
239
|
-
}, "parse")
|
|
240
|
-
};
|
|
241
|
-
C.lexer = /* @__PURE__ */ (function() {
|
|
242
|
-
return {
|
|
243
|
-
EOF: 1,
|
|
244
|
-
parseError: /* @__PURE__ */ r(function(t, y) {
|
|
245
|
-
if (this.yy.parser) this.yy.parser.parseError(t, y);
|
|
246
|
-
else throw Error(t);
|
|
247
|
-
}, "parseError"),
|
|
248
|
-
setInput: /* @__PURE__ */ r(function(t, y) {
|
|
249
|
-
return this.yy = y || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
250
|
-
first_line: 1,
|
|
251
|
-
first_column: 0,
|
|
252
|
-
last_line: 1,
|
|
253
|
-
last_column: 0
|
|
254
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
255
|
-
}, "setInput"),
|
|
256
|
-
input: /* @__PURE__ */ r(function() {
|
|
257
|
-
var t = this._input[0];
|
|
258
|
-
return this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t, t.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), t;
|
|
259
|
-
}, "input"),
|
|
260
|
-
unput: /* @__PURE__ */ r(function(t) {
|
|
261
|
-
var y = t.length, n = t.split(/(?:\r\n?|\n)/g);
|
|
262
|
-
this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - y), this.offset -= y;
|
|
263
|
-
var h = this.match.split(/(?:\r\n?|\n)/g);
|
|
264
|
-
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);
|
|
265
|
-
var c = this.yylloc.range;
|
|
266
|
-
return this.yylloc = {
|
|
267
|
-
first_line: this.yylloc.first_line,
|
|
268
|
-
last_line: this.yylineno + 1,
|
|
269
|
-
first_column: this.yylloc.first_column,
|
|
270
|
-
last_column: n ? (n.length === h.length ? this.yylloc.first_column : 0) + h[h.length - n.length].length - n[0].length : this.yylloc.first_column - y
|
|
271
|
-
}, this.options.ranges && (this.yylloc.range = [c[0], c[0] + this.yyleng - y]), this.yyleng = this.yytext.length, this;
|
|
272
|
-
}, "unput"),
|
|
273
|
-
more: /* @__PURE__ */ r(function() {
|
|
274
|
-
return this._more = !0, this;
|
|
275
|
-
}, "more"),
|
|
276
|
-
reject: /* @__PURE__ */ r(function() {
|
|
277
|
-
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
278
|
-
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).
|
|
279
|
-
` + this.showPosition(), {
|
|
280
|
-
text: "",
|
|
281
|
-
token: null,
|
|
282
|
-
line: this.yylineno
|
|
283
|
-
});
|
|
284
|
-
return this;
|
|
285
|
-
}, "reject"),
|
|
286
|
-
less: /* @__PURE__ */ r(function(t) {
|
|
287
|
-
this.unput(this.match.slice(t));
|
|
288
|
-
}, "less"),
|
|
289
|
-
pastInput: /* @__PURE__ */ r(function() {
|
|
290
|
-
var t = this.matched.substr(0, this.matched.length - this.match.length);
|
|
291
|
-
return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
|
|
292
|
-
}, "pastInput"),
|
|
293
|
-
upcomingInput: /* @__PURE__ */ r(function() {
|
|
294
|
-
var t = this.match;
|
|
295
|
-
return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
296
|
-
}, "upcomingInput"),
|
|
297
|
-
showPosition: /* @__PURE__ */ r(function() {
|
|
298
|
-
var t = this.pastInput(), y = Array(t.length + 1).join("-");
|
|
299
|
-
return t + this.upcomingInput() + `
|
|
300
|
-
` + y + "^";
|
|
301
|
-
}, "showPosition"),
|
|
302
|
-
test_match: /* @__PURE__ */ r(function(t, y) {
|
|
303
|
-
var n, h, c;
|
|
304
|
-
if (this.options.backtrack_lexer && (c = {
|
|
305
|
-
yylineno: this.yylineno,
|
|
306
|
-
yylloc: {
|
|
307
|
-
first_line: this.yylloc.first_line,
|
|
308
|
-
last_line: this.last_line,
|
|
309
|
-
first_column: this.yylloc.first_column,
|
|
310
|
-
last_column: this.yylloc.last_column
|
|
311
|
-
},
|
|
312
|
-
yytext: this.yytext,
|
|
313
|
-
match: this.match,
|
|
314
|
-
matches: this.matches,
|
|
315
|
-
matched: this.matched,
|
|
316
|
-
yyleng: this.yyleng,
|
|
317
|
-
offset: this.offset,
|
|
318
|
-
_more: this._more,
|
|
319
|
-
_input: this._input,
|
|
320
|
-
yy: this.yy,
|
|
321
|
-
conditionStack: this.conditionStack.slice(0),
|
|
322
|
-
done: this.done
|
|
323
|
-
}, this.options.ranges && (c.yylloc.range = this.yylloc.range.slice(0))), h = t[0].match(/(?:\r\n?|\n).*/g), h && (this.yylineno += h.length), this.yylloc = {
|
|
324
|
-
first_line: this.yylloc.last_line,
|
|
325
|
-
last_line: this.yylineno + 1,
|
|
326
|
-
first_column: this.yylloc.last_column,
|
|
327
|
-
last_column: h ? h[h.length - 1].length - h[h.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
|
|
328
|
-
}, 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, y, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
|
|
329
|
-
if (this._backtrack) {
|
|
330
|
-
for (var o in c) this[o] = c[o];
|
|
331
|
-
return !1;
|
|
332
|
-
}
|
|
333
|
-
return !1;
|
|
334
|
-
}, "test_match"),
|
|
335
|
-
next: /* @__PURE__ */ r(function() {
|
|
336
|
-
if (this.done) return this.EOF;
|
|
337
|
-
this._input || (this.done = !0);
|
|
338
|
-
var t, y, n, h;
|
|
339
|
-
this._more || (this.yytext = "", this.match = "");
|
|
340
|
-
for (var c = this._currentRules(), o = 0; o < c.length; o++) if (n = this._input.match(this.rules[c[o]]), n && (!y || n[0].length > y[0].length)) {
|
|
341
|
-
if (y = n, h = o, this.options.backtrack_lexer) {
|
|
342
|
-
if (t = this.test_match(n, c[o]), t !== !1) return t;
|
|
343
|
-
if (this._backtrack) {
|
|
344
|
-
y = !1;
|
|
345
|
-
continue;
|
|
346
|
-
} else return !1;
|
|
347
|
-
} else if (!this.options.flex) break;
|
|
348
|
-
}
|
|
349
|
-
return y ? (t = this.test_match(y, c[h]), t === !1 ? !1 : t) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
350
|
-
` + this.showPosition(), {
|
|
351
|
-
text: "",
|
|
352
|
-
token: null,
|
|
353
|
-
line: this.yylineno
|
|
354
|
-
});
|
|
355
|
-
}, "next"),
|
|
356
|
-
lex: /* @__PURE__ */ r(function() {
|
|
357
|
-
return this.next() || this.lex();
|
|
358
|
-
}, "lex"),
|
|
359
|
-
begin: /* @__PURE__ */ r(function(t) {
|
|
360
|
-
this.conditionStack.push(t);
|
|
361
|
-
}, "begin"),
|
|
362
|
-
popState: /* @__PURE__ */ r(function() {
|
|
363
|
-
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
364
|
-
}, "popState"),
|
|
365
|
-
_currentRules: /* @__PURE__ */ r(function() {
|
|
366
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
367
|
-
}, "_currentRules"),
|
|
368
|
-
topState: /* @__PURE__ */ r(function(t) {
|
|
369
|
-
return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
|
|
370
|
-
}, "topState"),
|
|
371
|
-
pushState: /* @__PURE__ */ r(function(t) {
|
|
372
|
-
this.begin(t);
|
|
373
|
-
}, "pushState"),
|
|
374
|
-
stateStackSize: /* @__PURE__ */ r(function() {
|
|
375
|
-
return this.conditionStack.length;
|
|
376
|
-
}, "stateStackSize"),
|
|
377
|
-
options: { "case-insensitive": !0 },
|
|
378
|
-
performAction: /* @__PURE__ */ r(function(t, y, n, h) {
|
|
379
|
-
switch (n) {
|
|
380
|
-
case 0:
|
|
381
|
-
return 6;
|
|
382
|
-
case 1:
|
|
383
|
-
return 8;
|
|
384
|
-
case 2:
|
|
385
|
-
return 8;
|
|
386
|
-
case 3:
|
|
387
|
-
return 6;
|
|
388
|
-
case 4:
|
|
389
|
-
return 7;
|
|
390
|
-
case 5:
|
|
391
|
-
return 13;
|
|
392
|
-
case 6:
|
|
393
|
-
return 14;
|
|
394
|
-
case 7:
|
|
395
|
-
return 11;
|
|
396
|
-
}
|
|
397
|
-
}, "anonymous"),
|
|
398
|
-
rules: [
|
|
399
|
-
/^(?:\s*%%.*)/i,
|
|
400
|
-
/^(?:ishikawa-beta\b)/i,
|
|
401
|
-
/^(?:ishikawa\b)/i,
|
|
402
|
-
/^(?:[\s]+[\n])/i,
|
|
403
|
-
/^(?:[\n]+)/i,
|
|
404
|
-
/^(?:[\s]+)/i,
|
|
405
|
-
/^(?:[^\n]+)/i,
|
|
406
|
-
/^(?:$)/i
|
|
407
|
-
],
|
|
408
|
-
conditions: { INITIAL: {
|
|
409
|
-
rules: [
|
|
410
|
-
0,
|
|
411
|
-
1,
|
|
412
|
-
2,
|
|
413
|
-
3,
|
|
414
|
-
4,
|
|
415
|
-
5,
|
|
416
|
-
6,
|
|
417
|
-
7
|
|
418
|
-
],
|
|
419
|
-
inclusive: !0
|
|
420
|
-
} }
|
|
421
|
-
};
|
|
422
|
-
})();
|
|
423
|
-
function A() {
|
|
424
|
-
this.yy = {};
|
|
425
|
-
}
|
|
426
|
-
return r(A, "Parser"), A.prototype = C, C.Parser = A, new A();
|
|
427
|
-
})();
|
|
428
|
-
J.parser = J;
|
|
429
|
-
var _t = J, H, vt = (H = class {
|
|
430
|
-
constructor() {
|
|
431
|
-
this.stack = [], this.clear = this.clear.bind(this), this.addNode = this.addNode.bind(this), this.getRoot = this.getRoot.bind(this);
|
|
432
|
-
}
|
|
433
|
-
clear() {
|
|
434
|
-
this.root = void 0, this.stack = [], this.baseLevel = void 0, pt();
|
|
435
|
-
}
|
|
436
|
-
getRoot() {
|
|
437
|
-
return this.root;
|
|
438
|
-
}
|
|
439
|
-
addNode(l, a) {
|
|
440
|
-
let s = ft.sanitizeText(a, ht());
|
|
441
|
-
if (!this.root) {
|
|
442
|
-
this.root = {
|
|
443
|
-
text: s,
|
|
444
|
-
children: []
|
|
445
|
-
}, this.stack = [{
|
|
446
|
-
level: 0,
|
|
447
|
-
node: this.root
|
|
448
|
-
}], it(s);
|
|
449
|
-
return;
|
|
450
|
-
}
|
|
451
|
-
this.baseLevel ??= l;
|
|
452
|
-
let i = l - this.baseLevel + 1;
|
|
453
|
-
for (i <= 0 && (i = 1); this.stack.length > 1 && this.stack[this.stack.length - 1].level >= i; ) this.stack.pop();
|
|
454
|
-
let d = this.stack[this.stack.length - 1].node, p = {
|
|
455
|
-
text: s,
|
|
456
|
-
children: []
|
|
457
|
-
};
|
|
458
|
-
d.children.push(p), this.stack.push({
|
|
459
|
-
level: i,
|
|
460
|
-
node: p
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
getAccTitle() {
|
|
464
|
-
return gt();
|
|
465
|
-
}
|
|
466
|
-
setAccTitle(l) {
|
|
467
|
-
mt(l);
|
|
468
|
-
}
|
|
469
|
-
getAccDescription() {
|
|
470
|
-
return kt();
|
|
471
|
-
}
|
|
472
|
-
setAccDescription(l) {
|
|
473
|
-
xt(l);
|
|
474
|
-
}
|
|
475
|
-
getDiagramTitle() {
|
|
476
|
-
return wt();
|
|
477
|
-
}
|
|
478
|
-
setDiagramTitle(l) {
|
|
479
|
-
it(l);
|
|
480
|
-
}
|
|
481
|
-
}, r(H, "IshikawaDB"), H), St = 14, D = 250, $t = 30, It = 60, At = 5, ot = 82 * Math.PI / 180, st = Math.cos(ot), nt = Math.sin(ot), at = /* @__PURE__ */ r((e, l, a) => {
|
|
482
|
-
let s = e.node().getBBox(), i = s.width + l * 2, d = s.height + l * 2;
|
|
483
|
-
bt(e, d, i, a), e.attr("viewBox", `${s.x - l} ${s.y - l} ${i} ${d}`);
|
|
484
|
-
}, "applyPaddedViewBox"), Et = /* @__PURE__ */ r((e, l, a, s) => {
|
|
485
|
-
let i = s.db.getRoot();
|
|
486
|
-
if (!i) return;
|
|
487
|
-
let d = ht(), { look: p, handDrawnSeed: u, themeVariables: f } = d, g = ut(d.fontSize)[0] ?? St, x = p === "handDrawn", m = i.children ?? [], $ = d.ishikawa?.diagramPadding ?? 20, I = d.ishikawa?.useMaxWidth ?? !1, C = dt(l), A = C.append("g").attr("class", "ishikawa"), t = x ? yt.svg(C.node()) : void 0, y = t ? {
|
|
488
|
-
roughSvg: t,
|
|
489
|
-
seed: u ?? 0,
|
|
490
|
-
lineColor: f?.lineColor ?? "#333",
|
|
491
|
-
fillColor: f?.mainBkg ?? "#fff"
|
|
492
|
-
} : void 0, n = `ishikawa-arrow-${l}`;
|
|
493
|
-
x || A.append("defs").append("marker").attr("id", n).attr("viewBox", "0 0 10 10").attr("refX", 0).attr("refY", 5).attr("markerWidth", 6).attr("markerHeight", 6).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 Z").attr("class", "ishikawa-arrow");
|
|
494
|
-
let h = 0, c = D, o = x ? void 0 : F(A, h, c, h, c, "ishikawa-spine");
|
|
495
|
-
if (Ct(A, h, c, i.text, g, y), !m.length) {
|
|
496
|
-
x && F(A, h, c, h, c, "ishikawa-spine", y), at(C, $, I);
|
|
497
|
-
return;
|
|
498
|
-
}
|
|
499
|
-
h -= 20;
|
|
500
|
-
let B = m.filter((_, M) => M % 2 == 0), b = m.filter((_, M) => M % 2 == 1), w = rt(B), v = rt(b), N = w.total + v.total, S = D, E = D;
|
|
501
|
-
if (N > 0) {
|
|
502
|
-
let _ = D * 2, M = D * 0.3;
|
|
503
|
-
S = Math.max(M, _ * (w.total / N)), E = Math.max(M, _ * (v.total / N));
|
|
504
|
-
}
|
|
505
|
-
let L = g * 2;
|
|
506
|
-
S = Math.max(S, w.max * L), E = Math.max(E, v.max * L), c = Math.max(S, D), o && o.attr("y1", c).attr("y2", c), A.select(".ishikawa-head-group").attr("transform", `translate(0,${c})`);
|
|
507
|
-
let k = Math.ceil(m.length / 2);
|
|
508
|
-
for (let _ = 0; _ < k; _++) {
|
|
509
|
-
let M = A.append("g").attr("class", "ishikawa-pair");
|
|
510
|
-
for (let [R, Z, V] of [[
|
|
511
|
-
m[_ * 2],
|
|
512
|
-
-1,
|
|
513
|
-
S
|
|
514
|
-
], [
|
|
515
|
-
m[_ * 2 + 1],
|
|
516
|
-
1,
|
|
517
|
-
E
|
|
518
|
-
]]) R && Pt(M, R, h, c, Z, V, g, y);
|
|
519
|
-
h = M.selectAll("text").nodes().reduce((R, Z) => Math.min(R, Z.getBBox().x), 1 / 0);
|
|
520
|
-
}
|
|
521
|
-
if (x) F(A, h, c, 0, c, "ishikawa-spine", y);
|
|
522
|
-
else {
|
|
523
|
-
o.attr("x1", h);
|
|
524
|
-
let _ = `url(#${n})`;
|
|
525
|
-
A.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start", _);
|
|
526
|
-
}
|
|
527
|
-
at(C, $, I);
|
|
528
|
-
}, "draw"), rt = /* @__PURE__ */ r((e) => {
|
|
529
|
-
let l = /* @__PURE__ */ r((a) => a.children.reduce((s, i) => s + 1 + l(i), 0), "countDescendants");
|
|
530
|
-
return e.reduce((a, s) => {
|
|
531
|
-
let i = l(s);
|
|
532
|
-
return a.total += i, a.max = Math.max(a.max, i), a;
|
|
533
|
-
}, {
|
|
534
|
-
total: 0,
|
|
535
|
-
max: 0
|
|
536
|
-
});
|
|
537
|
-
}, "sideStats"), Ct = /* @__PURE__ */ r((e, l, a, s, i, d) => {
|
|
538
|
-
let p = Math.max(6, Math.floor(110 / (i * 0.6))), u = e.append("g").attr("class", "ishikawa-head-group").attr("transform", `translate(${l},${a})`), f = U(u, ct(s, p), 0, 0, "ishikawa-head-label", "start", i), g = f.node().getBBox(), x = Math.max(60, g.width + 6), m = Math.max(40, g.height * 2 + 40), $ = `M 0 ${-m / 2} L 0 ${m / 2} Q ${x * 2.4} 0 0 ${-m / 2} Z`;
|
|
539
|
-
if (d) {
|
|
540
|
-
let I = d.roughSvg.path($, {
|
|
541
|
-
roughness: 1.5,
|
|
542
|
-
seed: d.seed,
|
|
543
|
-
fill: d.fillColor,
|
|
544
|
-
fillStyle: "hachure",
|
|
545
|
-
fillWeight: 2.5,
|
|
546
|
-
hachureGap: 5,
|
|
547
|
-
stroke: d.lineColor,
|
|
548
|
-
strokeWidth: 2
|
|
549
|
-
});
|
|
550
|
-
u.insert(() => I, ":first-child").attr("class", "ishikawa-head");
|
|
551
|
-
} else u.insert("path", ":first-child").attr("class", "ishikawa-head").attr("d", $);
|
|
552
|
-
f.attr("transform", `translate(${(x - g.width) / 2 - g.x + 3},${-g.y - g.height / 2})`);
|
|
553
|
-
}, "drawHead"), Lt = /* @__PURE__ */ r((e, l) => {
|
|
554
|
-
let a = [], s = [], i = /* @__PURE__ */ r((d, p, u) => {
|
|
555
|
-
let f = l === -1 ? [...d].reverse() : d;
|
|
556
|
-
for (let g of f) {
|
|
557
|
-
let x = a.length, m = g.children ?? [];
|
|
558
|
-
a.push({
|
|
559
|
-
depth: u,
|
|
560
|
-
text: ct(g.text, 15),
|
|
561
|
-
parentIndex: p,
|
|
562
|
-
childCount: m.length
|
|
563
|
-
}), u % 2 == 0 ? (s.push(x), m.length && i(m, x, u + 1)) : (m.length && i(m, x, u + 1), s.push(x));
|
|
564
|
-
}
|
|
565
|
-
}, "walk");
|
|
566
|
-
return i(e, -1, 2), {
|
|
567
|
-
entries: a,
|
|
568
|
-
yOrder: s
|
|
569
|
-
};
|
|
570
|
-
}, "flattenTree"), Mt = /* @__PURE__ */ r((e, l, a, s, i, d, p) => {
|
|
571
|
-
let u = e.append("g").attr("class", "ishikawa-label-group"), f = U(u, l, a, s + 11 * i, "ishikawa-label cause", "middle", d).node().getBBox();
|
|
572
|
-
if (p) {
|
|
573
|
-
let g = p.roughSvg.rectangle(f.x - 20, f.y - 2, f.width + 40, f.height + 4, {
|
|
574
|
-
roughness: 1.5,
|
|
575
|
-
seed: p.seed,
|
|
576
|
-
fill: p.fillColor,
|
|
577
|
-
fillStyle: "hachure",
|
|
578
|
-
fillWeight: 2.5,
|
|
579
|
-
hachureGap: 5,
|
|
580
|
-
stroke: p.lineColor,
|
|
581
|
-
strokeWidth: 2
|
|
582
|
-
});
|
|
583
|
-
u.insert(() => g, ":first-child").attr("class", "ishikawa-label-box");
|
|
584
|
-
} else u.insert("rect", ":first-child").attr("class", "ishikawa-label-box").attr("x", f.x - 20).attr("y", f.y - 2).attr("width", f.width + 40).attr("height", f.height + 4);
|
|
585
|
-
}, "drawCauseLabel"), Y = /* @__PURE__ */ r((e, l, a, s, i, d) => {
|
|
586
|
-
let p = Math.sqrt(s * s + i * i);
|
|
587
|
-
if (p === 0) return;
|
|
588
|
-
let u = s / p, f = i / p, g = -f * 6, x = u * 6, m = l, $ = a, I = `M ${m} ${$} L ${m - u * 6 * 2 + g} ${$ - f * 6 * 2 + x} L ${m - u * 6 * 2 - g} ${$ - f * 6 * 2 - x} Z`, C = d.roughSvg.path(I, {
|
|
589
|
-
roughness: 1,
|
|
590
|
-
seed: d.seed,
|
|
591
|
-
fill: d.lineColor,
|
|
592
|
-
fillStyle: "solid",
|
|
593
|
-
stroke: d.lineColor,
|
|
594
|
-
strokeWidth: 1
|
|
595
|
-
});
|
|
596
|
-
e.append(() => C);
|
|
597
|
-
}, "drawArrowMarker"), Pt = /* @__PURE__ */ r((e, l, a, s, i, d, p, u) => {
|
|
598
|
-
let f = l.children ?? [], g = d * (f.length ? 1 : 0.2), x = -st * g, m = nt * g * i, $ = a + x, I = s + m;
|
|
599
|
-
if (F(e, a, s, $, I, "ishikawa-branch", u), u && Y(e, a, s, a - $, s - I, u), Mt(e, l.text, $, I, i, p, u), !f.length) return;
|
|
600
|
-
let { entries: C, yOrder: A } = Lt(f, i), t = C.length, y = Array(t);
|
|
601
|
-
for (let [B, b] of A.entries()) y[b] = s + m * ((B + 1) / (t + 1));
|
|
602
|
-
let n = /* @__PURE__ */ new Map();
|
|
603
|
-
n.set(-1, {
|
|
604
|
-
x0: a,
|
|
605
|
-
y0: s,
|
|
606
|
-
x1: $,
|
|
607
|
-
y1: I,
|
|
608
|
-
childCount: f.length,
|
|
609
|
-
childrenDrawn: 0
|
|
610
|
-
});
|
|
611
|
-
let h = -st, c = nt * i, o = i < 0 ? "ishikawa-label up" : "ishikawa-label down";
|
|
612
|
-
for (let [B, b] of C.entries()) {
|
|
613
|
-
let w = y[B], v = n.get(b.parentIndex), N = e.append("g").attr("class", "ishikawa-sub-group"), S = 0, E = 0, L = 0;
|
|
614
|
-
if (b.depth % 2 == 0) {
|
|
615
|
-
let k = v.y1 - v.y0;
|
|
616
|
-
S = lt(v.x0, v.x1, k ? (w - v.y0) / k : 0.5), E = w, L = S - (b.childCount > 0 ? It + b.childCount * At : $t), F(N, S, w, L, w, "ishikawa-sub-branch", u), u && Y(N, S, w, 1, 0, u), U(N, b.text, L, w, "ishikawa-label align", "end", p);
|
|
617
|
-
} else {
|
|
618
|
-
let k = v.childrenDrawn++;
|
|
619
|
-
S = lt(v.x0, v.x1, (v.childCount - k) / (v.childCount + 1)), E = v.y0, L = S + h * ((w - E) / c), F(N, S, E, L, w, "ishikawa-sub-branch", u), u && Y(N, S, E, S - L, E - w, u), U(N, b.text, L, w, o, "end", p);
|
|
620
|
-
}
|
|
621
|
-
b.childCount > 0 && n.set(B, {
|
|
622
|
-
x0: S,
|
|
623
|
-
y0: E,
|
|
624
|
-
x1: L,
|
|
625
|
-
y1: w,
|
|
626
|
-
childCount: b.childCount,
|
|
627
|
-
childrenDrawn: 0
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
}, "drawBranch"), Bt = /* @__PURE__ */ r((e) => e.split(/<br\s*\/?>|\n/), "splitLines"), ct = /* @__PURE__ */ r((e, l) => {
|
|
631
|
-
if (e.length <= l) return e;
|
|
632
|
-
let a = [];
|
|
633
|
-
for (let s of e.split(/\s+/)) {
|
|
634
|
-
let i = a.length - 1;
|
|
635
|
-
i >= 0 && a[i].length + 1 + s.length <= l ? a[i] += " " + s : a.push(s);
|
|
636
|
-
}
|
|
637
|
-
return a.join(`
|
|
638
|
-
`);
|
|
639
|
-
}, "wrapText"), U = /* @__PURE__ */ r((e, l, a, s, i, d, p) => {
|
|
640
|
-
let u = Bt(l), f = p * 1.05, g = e.append("text").attr("class", i).attr("text-anchor", d).attr("x", a).attr("y", s - (u.length - 1) * f / 2);
|
|
641
|
-
for (let [x, m] of u.entries()) g.append("tspan").attr("x", a).attr("dy", x === 0 ? 0 : f).text(m);
|
|
642
|
-
return g;
|
|
643
|
-
}, "drawMultilineText"), lt = /* @__PURE__ */ r((e, l, a) => e + (l - e) * a, "lerp"), F = /* @__PURE__ */ r((e, l, a, s, i, d, p) => {
|
|
644
|
-
if (p) {
|
|
645
|
-
let u = p.roughSvg.line(l, a, s, i, {
|
|
646
|
-
roughness: 1.5,
|
|
647
|
-
seed: p.seed,
|
|
648
|
-
stroke: p.lineColor,
|
|
649
|
-
strokeWidth: 2
|
|
650
|
-
});
|
|
651
|
-
e.append(() => u).attr("class", d);
|
|
652
|
-
return;
|
|
653
|
-
}
|
|
654
|
-
return e.append("line").attr("class", d).attr("x1", l).attr("y1", a).attr("x2", s).attr("y2", i);
|
|
655
|
-
}, "drawLine"), Wt = {
|
|
656
|
-
parser: _t,
|
|
657
|
-
get db() {
|
|
658
|
-
return new vt();
|
|
659
|
-
},
|
|
660
|
-
renderer: { draw: Et },
|
|
661
|
-
styles: /* @__PURE__ */ r((e) => `
|
|
662
|
-
.ishikawa .ishikawa-spine,
|
|
663
|
-
.ishikawa .ishikawa-branch,
|
|
664
|
-
.ishikawa .ishikawa-sub-branch {
|
|
665
|
-
stroke: ${e.lineColor};
|
|
666
|
-
stroke-width: 2;
|
|
667
|
-
fill: none;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
.ishikawa .ishikawa-sub-branch {
|
|
671
|
-
stroke-width: 1;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
.ishikawa .ishikawa-arrow {
|
|
675
|
-
fill: ${e.lineColor};
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
.ishikawa .ishikawa-head {
|
|
679
|
-
fill: ${e.mainBkg};
|
|
680
|
-
stroke: ${e.lineColor};
|
|
681
|
-
stroke-width: 2;
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
.ishikawa .ishikawa-label-box {
|
|
685
|
-
fill: ${e.mainBkg};
|
|
686
|
-
stroke: ${e.lineColor};
|
|
687
|
-
stroke-width: 2;
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
.ishikawa text {
|
|
691
|
-
font-family: ${e.fontFamily};
|
|
692
|
-
font-size: ${e.fontSize};
|
|
693
|
-
fill: ${e.textColor};
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
.ishikawa .ishikawa-head-label {
|
|
697
|
-
font-weight: 600;
|
|
698
|
-
text-anchor: middle;
|
|
699
|
-
dominant-baseline: middle;
|
|
700
|
-
font-size: 14px;
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
.ishikawa .ishikawa-label {
|
|
704
|
-
text-anchor: end;
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
.ishikawa .ishikawa-label.cause {
|
|
708
|
-
text-anchor: middle;
|
|
709
|
-
dominant-baseline: middle;
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
.ishikawa .ishikawa-label.align {
|
|
713
|
-
text-anchor: end;
|
|
714
|
-
dominant-baseline: middle;
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
.ishikawa .ishikawa-label.up {
|
|
718
|
-
dominant-baseline: baseline;
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
.ishikawa .ishikawa-label.down {
|
|
722
|
-
dominant-baseline: hanging;
|
|
723
|
-
}
|
|
724
|
-
`, "getStyles")
|
|
725
|
-
};
|
|
726
|
-
export {
|
|
727
|
-
Wt as diagram
|
|
728
|
-
};
|