@kong-ui-public/documentation 1.8.13 → 1.8.14-pr.4048.7a10d83bb.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/package.json +2 -2
  2. package/dist/abnfDiagram-VCTEODGH-Bzbg7AHk-DFERbIEu.js +0 -92
  3. package/dist/arc-CKhg5DVn-BIpMje7c.js +0 -80
  4. package/dist/architectureDiagram-5GKGNRK7-CqHVyBRI-CLWcRmoG.js +0 -4149
  5. package/dist/astro-DdQ3Kp7Q-BDE5qFXd.js +0 -18
  6. package/dist/blockDiagram-I7D4REHJ-DWFqHR0L-D8v5LhXM.js +0 -2029
  7. package/dist/c-lfOsiBpu-DMPKLUI8.js +0 -4
  8. package/dist/c4Diagram-7LVT6UL2-DXHigzTJ-BR9440iK.js +0 -3067
  9. package/dist/catppuccin-latte-D9NPLB7Y-sAlQrrP2.js +0 -4
  10. package/dist/channel-DUDXYB-g-BsX3Acdu.js +0 -5
  11. package/dist/chunk-2Q5K7J3B-CQFXhYzi-C3CTUgHo.js +0 -12
  12. package/dist/chunk-5VM5RSS4-DF_fkndM-uFSHkP_V.js +0 -19
  13. package/dist/chunk-F27PBJKO-Bf2CKIqN-CUI4z39H.js +0 -65
  14. package/dist/chunk-IMKFNOWR-DIsz_YLV-B6u2fLNJ.js +0 -2116
  15. package/dist/chunk-JWPE2WC7-DI69CthA-D_FsPQj-.js +0 -8
  16. package/dist/chunk-POPQ4Y6H-DycI9Jzm-BWixWzlU.js +0 -24
  17. package/dist/chunk-SHT3W25Y-CKxDgOBI-OOdqZuVE.js +0 -4307
  18. package/dist/chunk-SVP7TREG-tW_qYlvV-vP5bsK2H.js +0 -500
  19. package/dist/chunk-TICWLB2K-CuiDrX3P-WR-FPNea.js +0 -3451
  20. package/dist/chunk-XXDRQBXY-CSrEKR2C-C6SaSSCC.js +0 -8
  21. package/dist/classDiagram-ZZMXUADV-WzcguFxl-CKKn1Tfx.js +0 -17
  22. package/dist/classDiagram-v2-VYDZK3BY-jdAXYY7W-CKKn1Tfx.js +0 -17
  23. package/dist/cose-bilkent-JH36ORCC-DbS7GVMv-bbQOsy5Y.js +0 -2256
  24. package/dist/csharp-RRkgh3c4-lim_vKPd.js +0 -4
  25. package/dist/css-BbwcBM_4-B_2PRTA_.js +0 -4
  26. package/dist/csv-DFU5sVkH-BPWcOTV4.js +0 -4
  27. package/dist/cynefin-OW5HDTMX-CmxQwqmf-D_GdoNIu.js +0 -21781
  28. package/dist/cynefinDiagram-5FMLGOSQ-BNb88xpJ-DfS9O7P4.js +0 -351
  29. package/dist/cytoscape.esm-YSf_2rtb-CoO8mT3p.js +0 -18279
  30. package/dist/dagre-C9xJrfGe-Di-1Ikh0.js +0 -1667
  31. package/dist/dagre-GXQ25YYZ-uiXfyLw2-PU-qeT6_.js +0 -429
  32. package/dist/defaultLocale-TbxLDlcU-BrdwcF9K.js +0 -180
  33. package/dist/diagram-S7CK7UJ4-g67BXvGR-Cp9bzjGj.js +0 -303
  34. package/dist/diagram-UQ7AKVKN-DfJJIsVs-CC7ekguS.js +0 -210
  35. package/dist/diagram-VSXAHHWV-DmtFfqWN-C9ZLHKzj.js +0 -439
  36. package/dist/diagram-VX7I27RA--gfQ90BY-QNtwG6Ck.js +0 -477
  37. package/dist/diagram-Z3DM3KII-Cu_rSHu0-CCCsIuz4.js +0 -127
  38. package/dist/diff-D_LJiFgV-DenOJuyV.js +0 -4
  39. package/dist/docker-DMpUQ2UE-xX8PDoIv.js +0 -4
  40. package/dist/documentation.es.js +0 -7
  41. package/dist/documentation.umd.js +0 -3715
  42. package/dist/ebnfDiagram-PWID7BFC-B_qfACMJ-D_Xjruh2.js +0 -109
  43. package/dist/erDiagram-RLTQ6QDP-Dt9efGmz-BPS1Iwl5.js +0 -2042
  44. package/dist/flowDiagram-HODETNUW-sAcaB3rt-Ci8x-zG0.js +0 -6
  45. package/dist/ganttDiagram-EL5Y4UJY-CtWGP-hX-qar4oLEq.js +0 -3098
  46. package/dist/git-commit--2NDNcyW-Dw9_h8sQ.js +0 -5
  47. package/dist/git-rebase-CbNvxADk-DAgBrkyL.js +0 -5
  48. package/dist/gitGraphDiagram-WWUBYQGX-B7B7IG_5-x8UcOce8.js +0 -737
  49. package/dist/go-BEdBk4fh-DqSXHrGo.js +0 -4
  50. package/dist/graphql-BMuT9GwB-BP9pcQru.js +0 -14
  51. package/dist/haml-D3QmTYiV-BTaBXoPr.js +0 -10
  52. package/dist/handlebars-C_aYHp26-CWcrQHYv.js +0 -14
  53. package/dist/haskell-DSSJ-2AO-BlmVjKNy.js +0 -4
  54. package/dist/html-derivative-DgZQ_xNe-BAs__2u-.js +0 -5
  55. package/dist/html-zcQqUZxh-Dg8OkMBp.js +0 -10
  56. package/dist/http-BGkfDG8i-lqXytFlH.js +0 -14
  57. package/dist/index-BaAWoj3P.js +0 -43522
  58. package/dist/infoDiagram-27XIBGKW-DAx9hub5-CDUrF89O.js +0 -18
  59. package/dist/ini-CmgEGOBJ-70PBzbbb.js +0 -4
  60. package/dist/init-Cgg2UTSf-BsHkAom2.js +0 -15
  61. package/dist/ishikawaDiagram-5VMMS53U-CnBB9iXH-2YyZ3Nxy.js +0 -729
  62. package/dist/java-CaG1IqbK-D6YBp1XX.js +0 -4
  63. package/dist/javascript--0qAxhnA-BRPKgr3C.js +0 -4
  64. package/dist/journeyDiagram-3NMN7TZE-B0a4pOJX-CgtsuE-Y.js +0 -909
  65. package/dist/json-DVwBUiza-D8uacQj0.js +0 -4
  66. package/dist/json5-D2Eltym1-Biib5ALh.js +0 -4
  67. package/dist/jsonc-BPIJyZ7u-BZEKkMok.js +0 -4
  68. package/dist/jsonl-BGkjXns2-BG2V-IA2.js +0 -4
  69. package/dist/jsx-cVAJ0Z2c-Cl0AMtmu.js +0 -4
  70. package/dist/kanban-definition-UXKFOSKX-BGnOZMUl-CHT2EG_7.js +0 -1029
  71. package/dist/katex-Be3DWdAP-BWcdC2Xb.js +0 -22287
  72. package/dist/kotlin-CQsNEM2o-Dy_91eL4.js +0 -4
  73. package/dist/latex-g3NZbvcl-tKQf8TuW.js +0 -5
  74. package/dist/less-9LYkHheD-tcNg8M2_.js +0 -4
  75. package/dist/linear-Cf872ac2-BjGvLlX5.js +0 -254
  76. package/dist/liquid-CG3ph2-5-wZo8nDay.js +0 -14
  77. package/dist/lua-BdA7_iyX-Fg4s9W4F.js +0 -5
  78. package/dist/make-CE9Hryyp-CrUl7LOH.js +0 -4
  79. package/dist/markdown-Gqx6-FHJ-Bcqt-5kX.js +0 -4
  80. package/dist/material-theme-darker-DL4lHZSa-DMHCIvq5.js +0 -4
  81. package/dist/mdc-C-RLGlI2-DzcUIqJQ.js +0 -12
  82. package/dist/mdx-DswfiFg4-CK6jOqmu.js +0 -4
  83. package/dist/mermaid-CAl3BhSL-CpQh0Vft.js +0 -4
  84. package/dist/mindmap-definition-YA3MSWOX-D0iYuN9C-B3uI77eT.js +0 -1026
  85. package/dist/nginx-CokYOiS8-DjML3dpY.js +0 -5
  86. package/dist/objective-c-DK-EKgyd-C809HPrX.js +0 -4
  87. package/dist/ordinal-CNzaYghg-B_JXdapq.js +0 -63
  88. package/dist/pascal-CRtegPzh-a8whuidZ.js +0 -4
  89. package/dist/pegDiagram-XKGWAZYB-6oG4KeYC-CG27veJ_.js +0 -104
  90. package/dist/perl-C45KUBhP-Q6opd9qO.js +0 -16
  91. package/dist/php-COzTb61D-DW91EkjY.js +0 -18
  92. package/dist/pieDiagram-E7YTZNPT-DsNO0m7t-CMKObJlC.js +0 -191
  93. package/dist/plsql-Bx7tup_v-BJoF2Vrf.js +0 -4
  94. package/dist/postcss-DjDdOEzv-DaHMm3XW.js +0 -4
  95. package/dist/powershell-BeUvHe6o-BC3uPZPS.js +0 -4
  96. package/dist/proto-DGLklcji-w0B_itsp.js +0 -4
  97. package/dist/pug-BQ5MM2xz-DMZvJUHt.js +0 -12
  98. package/dist/python-C_6ySqsv-D_5pfY__.js +0 -4
  99. package/dist/quadrantDiagram-AXDQQJYC-B6Dc7fje-C23uvcHP.js +0 -2046
  100. package/dist/r-CNL4a0Qi-pixge7f9.js +0 -4
  101. package/dist/railroadDiagram-O6MQD6OU-D8qLcD4O-B_Hr3s-n.js +0 -80
  102. package/dist/reg-D6txjqBF-bHAwx9Pm.js +0 -4
  103. package/dist/requirementDiagram-BXWQKSXE-Cx28BZaS-Bu-h1fa9.js +0 -2283
  104. package/dist/rst-xmthoFSf-BdN-iqJu.js +0 -20
  105. package/dist/ruby-CmwqiOyg-B5qGUHPy.js +0 -44
  106. package/dist/rust-BrRMzTsN-CaZtBt24.js +0 -4
  107. package/dist/sankeyDiagram-P5KCCOFB-CqEXebJJ-BrChTi-e.js +0 -948
  108. package/dist/sass-CL6GLiPQ-pslLeRRb.js +0 -4
  109. package/dist/scss-CiLZCexj-CladYQkr.js +0 -5
  110. package/dist/sequenceDiagram-WJ2MYXX4-Bs_1V5D1-Da6JW3KG.js +0 -4263
  111. package/dist/shellscript-Dfpezy65-BtH46UX7.js +0 -4
  112. package/dist/shellsession-CRcAC04a-BFLTslz7.js +0 -5
  113. package/dist/sizeCapture-INFHLROL-Bc4fS2u3-DMniWWy4.js +0 -46
  114. package/dist/splunk-MGILMmew-BP8P7eWt.js +0 -4
  115. package/dist/sql-D_W5grEC-Dcn2WLbD.js +0 -4
  116. package/dist/ssh-config-CFmUyPR7-BB1rrGb9.js +0 -4
  117. package/dist/stateDiagram-D77RDMKH-oTiwIYVV-BphZk0uR.js +0 -210
  118. package/dist/stateDiagram-v2-MP3YSRHH-gbAY2cmo-D78HyGx1.js +0 -17
  119. package/dist/style.css +0 -1
  120. package/dist/stylus-Kh83dApl-DAu5PNZ9.js +0 -4
  121. package/dist/svelte-HVIHTyhe-BdPJXyv7.js +0 -14
  122. package/dist/swift-B7Z-rXzN-CQtmhAMw.js +0 -4
  123. package/dist/swimlanes-42K2YHIH-BSXAPn2j-C7pTnVuk.js +0 -4983
  124. package/dist/swimlanesDiagram-VR7AAH4N-Ror_0lre-Di8OVgei.js +0 -17
  125. package/dist/timeline-definition-24CTP7MA-gOHmAY1H-aIgAzo7s.js +0 -1096
  126. package/dist/toml-CIQJnU5u-DjT9Bjqu.js +0 -4
  127. package/dist/tsx-DiMnnori-B-5hSr15.js +0 -4
  128. package/dist/twig-BXXOiPVV-CmgmU-L-.js +0 -18
  129. package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -35
  130. package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
  131. package/dist/types/components/DocumentationContent.vue.d.ts +0 -186
  132. package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
  133. package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -105
  134. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
  135. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -31
  136. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
  137. package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -72
  138. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
  139. package/dist/types/composables/index.d.ts +0 -6
  140. package/dist/types/composables/index.d.ts.map +0 -1
  141. package/dist/types/composables/useI18n.d.ts +0 -9
  142. package/dist/types/composables/useI18n.d.ts.map +0 -1
  143. package/dist/types/external-links.d.ts +0 -5
  144. package/dist/types/external-links.d.ts.map +0 -1
  145. package/dist/types/helpers.d.ts +0 -8
  146. package/dist/types/helpers.d.ts.map +0 -1
  147. package/dist/types/index.d.ts +0 -7
  148. package/dist/types/index.d.ts.map +0 -1
  149. package/dist/types/types/document-list.d.ts +0 -28
  150. package/dist/types/types/document-list.d.ts.map +0 -1
  151. package/dist/types/types/document-modal.d.ts +0 -8
  152. package/dist/types/types/document-modal.d.ts.map +0 -1
  153. package/dist/types/types/index.d.ts +0 -3
  154. package/dist/types/types/index.d.ts.map +0 -1
  155. package/dist/typescript-DFf19o_s-B0ag8pir.js +0 -4
  156. package/dist/v-DbYZLS97-CAPuTPjr.js +0 -4
  157. package/dist/vb-DRaXf86R-Bx9Rwnco.js +0 -4
  158. package/dist/vennDiagram-4TSXK5OY-Cr4BWMuk-BjBvyxCC.js +0 -1911
  159. package/dist/viml-DgaHry3T-BeYQ8dZh.js +0 -4
  160. package/dist/vue-DPI5F0qT-D-Ahkoja.js +0 -22
  161. package/dist/vue-html-D7FCsiW2-DLSUNIPr.js +0 -5
  162. package/dist/wardleyDiagram-VM6X3IG4-a6H91k9Q-CsH4gQQ0.js +0 -639
  163. package/dist/wasm-DXa1gtBd-CfuK9YWP.js +0 -4
  164. package/dist/wgsl-Vcm3Lg52-C2IZ7ENh.js +0 -4
  165. package/dist/xml-DnOpIvRK-C-akVYiK.js +0 -5
  166. package/dist/xsl-K_2BlT3G-D3eRZGNO.js +0 -5
  167. package/dist/xychartDiagram-S5SC5T6Z-7mX_nPmO-CoM4SG9q.js +0 -2218
  168. package/dist/yaml-BswqmnDe-X78l_Ibz.js +0 -4
@@ -1,909 +0,0 @@
1
- import { r as gt, n as mt, t as xt, e as kt, k as _t, j as bt, a as s, c as j, G as et, V as vt, $ as $t } from "./index-BaAWoj3P.js";
2
- import { x as it } from "./arc-CKhg5DVn-BIpMje7c.js";
3
- import { t as wt } from "./chunk-5VM5RSS4-DF_fkndM-uFSHkP_V.js";
4
- import { o as Mt, u as ot, s as Tt, a as Ct } from "./chunk-F27PBJKO-Bf2CKIqN-CUI4z39H.js";
5
- var X = (function() {
6
- var t = /* @__PURE__ */ s(function(i, a, r, c) {
7
- for (r ||= {}, c = i.length; c--; r[i[c]] = a) ;
8
- return r;
9
- }, "o"), e = [
10
- 6,
11
- 8,
12
- 10,
13
- 11,
14
- 12,
15
- 14,
16
- 16,
17
- 17,
18
- 18
19
- ], l = [1, 9], y = [1, 10], n = [1, 11], h = [1, 12], u = [1, 13], p = [1, 14], f = {
20
- trace: /* @__PURE__ */ s(function() {
21
- }, "trace"),
22
- yy: {},
23
- symbols_: {
24
- error: 2,
25
- start: 3,
26
- journey: 4,
27
- document: 5,
28
- EOF: 6,
29
- line: 7,
30
- SPACE: 8,
31
- statement: 9,
32
- NEWLINE: 10,
33
- title: 11,
34
- acc_title: 12,
35
- acc_title_value: 13,
36
- acc_descr: 14,
37
- acc_descr_value: 15,
38
- acc_descr_multiline_value: 16,
39
- section: 17,
40
- taskName: 18,
41
- taskData: 19,
42
- $accept: 0,
43
- $end: 1
44
- },
45
- terminals_: {
46
- 2: "error",
47
- 4: "journey",
48
- 6: "EOF",
49
- 8: "SPACE",
50
- 10: "NEWLINE",
51
- 11: "title",
52
- 12: "acc_title",
53
- 13: "acc_title_value",
54
- 14: "acc_descr",
55
- 15: "acc_descr_value",
56
- 16: "acc_descr_multiline_value",
57
- 17: "section",
58
- 18: "taskName",
59
- 19: "taskData"
60
- },
61
- productions_: [
62
- 0,
63
- [3, 3],
64
- [5, 0],
65
- [5, 2],
66
- [7, 2],
67
- [7, 1],
68
- [7, 1],
69
- [7, 1],
70
- [9, 1],
71
- [9, 2],
72
- [9, 2],
73
- [9, 1],
74
- [9, 1],
75
- [9, 2]
76
- ],
77
- performAction: /* @__PURE__ */ s(function(i, a, r, c, d, o, k) {
78
- var m = o.length - 1;
79
- switch (d) {
80
- case 1:
81
- return o[m - 1];
82
- case 2:
83
- this.$ = [];
84
- break;
85
- case 3:
86
- o[m - 1].push(o[m]), this.$ = o[m - 1];
87
- break;
88
- case 4:
89
- case 5:
90
- this.$ = o[m];
91
- break;
92
- case 6:
93
- case 7:
94
- this.$ = [];
95
- break;
96
- case 8:
97
- c.setDiagramTitle(o[m].substr(6)), this.$ = o[m].substr(6);
98
- break;
99
- case 9:
100
- this.$ = o[m].trim(), c.setAccTitle(this.$);
101
- break;
102
- case 10:
103
- case 11:
104
- this.$ = o[m].trim(), c.setAccDescription(this.$);
105
- break;
106
- case 12:
107
- c.addSection(o[m].substr(8)), this.$ = o[m].substr(8);
108
- break;
109
- case 13:
110
- c.addTask(o[m - 1], o[m]), this.$ = "task";
111
- }
112
- }, "anonymous"),
113
- table: [
114
- {
115
- 3: 1,
116
- 4: [1, 2]
117
- },
118
- { 1: [3] },
119
- t(e, [2, 2], { 5: 3 }),
120
- {
121
- 6: [1, 4],
122
- 7: 5,
123
- 8: [1, 6],
124
- 9: 7,
125
- 10: [1, 8],
126
- 11: l,
127
- 12: y,
128
- 14: n,
129
- 16: h,
130
- 17: u,
131
- 18: p
132
- },
133
- t(e, [2, 7], { 1: [2, 1] }),
134
- t(e, [2, 3]),
135
- {
136
- 9: 15,
137
- 11: l,
138
- 12: y,
139
- 14: n,
140
- 16: h,
141
- 17: u,
142
- 18: p
143
- },
144
- t(e, [2, 5]),
145
- t(e, [2, 6]),
146
- t(e, [2, 8]),
147
- { 13: [1, 16] },
148
- { 15: [1, 17] },
149
- t(e, [2, 11]),
150
- t(e, [2, 12]),
151
- { 19: [1, 18] },
152
- t(e, [2, 4]),
153
- t(e, [2, 9]),
154
- t(e, [2, 10]),
155
- t(e, [2, 13])
156
- ],
157
- defaultActions: {},
158
- parseError: /* @__PURE__ */ s(function(i, a) {
159
- if (a.recoverable) this.trace(i);
160
- else {
161
- var r = Error(i);
162
- throw r.hash = a, r;
163
- }
164
- }, "parseError"),
165
- parse: /* @__PURE__ */ s(function(i) {
166
- var a = this, r = [0], c = [], d = [null], o = [], k = this.table, m = "", b = 0, V = 0, F = 0, pt = 2, J = 1, yt = o.slice.call(arguments, 1), x = Object.create(this.lexer), I = { yy: {} };
167
- for (var D in this.yy) Object.prototype.hasOwnProperty.call(this.yy, D) && (I.yy[D] = this.yy[D]);
168
- x.setInput(i, I.yy), I.yy.lexer = x, I.yy.parser = this, x.yylloc === void 0 && (x.yylloc = {});
169
- var Y = x.yylloc;
170
- o.push(Y);
171
- var dt = x.options && x.options.ranges;
172
- this.parseError = typeof I.yy.parseError == "function" ? I.yy.parseError : Object.getPrototypeOf(this).parseError;
173
- function ft($) {
174
- r.length -= 2 * $, d.length -= $, o.length -= $;
175
- }
176
- s(ft, "popStack");
177
- function K() {
178
- var $ = c.pop() || x.lex() || J;
179
- return typeof $ != "number" && ($ instanceof Array && (c = $, $ = c.pop()), $ = a.symbols_[$] || $), $;
180
- }
181
- s(K, "lex");
182
- for (var _, G, S, v, W, A = {}, N, T, Q, O; ; ) {
183
- if (S = r[r.length - 1], this.defaultActions[S] ? v = this.defaultActions[S] : (_ ??= K(), v = k[S] && k[S][_]), v === void 0 || !v.length || !v[0]) {
184
- var tt = "";
185
- for (N in O = [], k[S]) this.terminals_[N] && N > pt && O.push("'" + this.terminals_[N] + "'");
186
- tt = x.showPosition ? "Parse error on line " + (b + 1) + `:
187
- ` + x.showPosition() + `
188
- Expecting ` + O.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : "Parse error on line " + (b + 1) + ": Unexpected " + (_ == J ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(tt, {
189
- text: x.match,
190
- token: this.terminals_[_] || _,
191
- line: x.yylineno,
192
- loc: Y,
193
- expected: O
194
- });
195
- }
196
- if (v[0] instanceof Array && v.length > 1) throw Error("Parse Error: multiple actions possible at state: " + S + ", token: " + _);
197
- switch (v[0]) {
198
- case 1:
199
- r.push(_), d.push(x.yytext), o.push(x.yylloc), r.push(v[1]), _ = null, G ? (_ = G, G = null) : (V = x.yyleng, m = x.yytext, b = x.yylineno, Y = x.yylloc, F > 0);
200
- break;
201
- case 2:
202
- if (T = this.productions_[v[1]][1], A.$ = d[d.length - T], A._$ = {
203
- first_line: o[o.length - (T || 1)].first_line,
204
- last_line: o[o.length - 1].last_line,
205
- first_column: o[o.length - (T || 1)].first_column,
206
- last_column: o[o.length - 1].last_column
207
- }, dt && (A._$.range = [o[o.length - (T || 1)].range[0], o[o.length - 1].range[1]]), W = this.performAction.apply(A, [
208
- m,
209
- V,
210
- b,
211
- I.yy,
212
- v[1],
213
- d,
214
- o
215
- ].concat(yt)), W !== void 0) return W;
216
- T && (r = r.slice(0, -1 * T * 2), d = d.slice(0, -1 * T), o = o.slice(0, -1 * T)), r.push(this.productions_[v[1]][0]), d.push(A.$), o.push(A._$), Q = k[r[r.length - 2]][r[r.length - 1]], r.push(Q);
217
- break;
218
- case 3:
219
- return !0;
220
- }
221
- }
222
- return !0;
223
- }, "parse")
224
- };
225
- f.lexer = /* @__PURE__ */ (function() {
226
- return {
227
- EOF: 1,
228
- parseError: /* @__PURE__ */ s(function(i, a) {
229
- if (this.yy.parser) this.yy.parser.parseError(i, a);
230
- else throw Error(i);
231
- }, "parseError"),
232
- setInput: /* @__PURE__ */ s(function(i, a) {
233
- return this.yy = a || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
234
- first_line: 1,
235
- first_column: 0,
236
- last_line: 1,
237
- last_column: 0
238
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
239
- }, "setInput"),
240
- input: /* @__PURE__ */ s(function() {
241
- var i = this._input[0];
242
- return this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i, i.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), i;
243
- }, "input"),
244
- unput: /* @__PURE__ */ s(function(i) {
245
- var a = i.length, r = i.split(/(?:\r\n?|\n)/g);
246
- this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
247
- var c = this.match.split(/(?:\r\n?|\n)/g);
248
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), r.length - 1 && (this.yylineno -= r.length - 1);
249
- var d = this.yylloc.range;
250
- return this.yylloc = {
251
- first_line: this.yylloc.first_line,
252
- last_line: this.yylineno + 1,
253
- first_column: this.yylloc.first_column,
254
- last_column: r ? (r.length === c.length ? this.yylloc.first_column : 0) + c[c.length - r.length].length - r[0].length : this.yylloc.first_column - a
255
- }, this.options.ranges && (this.yylloc.range = [d[0], d[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
256
- }, "unput"),
257
- more: /* @__PURE__ */ s(function() {
258
- return this._more = !0, this;
259
- }, "more"),
260
- reject: /* @__PURE__ */ s(function() {
261
- if (this.options.backtrack_lexer) this._backtrack = !0;
262
- 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).
263
- ` + this.showPosition(), {
264
- text: "",
265
- token: null,
266
- line: this.yylineno
267
- });
268
- return this;
269
- }, "reject"),
270
- less: /* @__PURE__ */ s(function(i) {
271
- this.unput(this.match.slice(i));
272
- }, "less"),
273
- pastInput: /* @__PURE__ */ s(function() {
274
- var i = this.matched.substr(0, this.matched.length - this.match.length);
275
- return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
276
- }, "pastInput"),
277
- upcomingInput: /* @__PURE__ */ s(function() {
278
- var i = this.match;
279
- return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
280
- }, "upcomingInput"),
281
- showPosition: /* @__PURE__ */ s(function() {
282
- var i = this.pastInput(), a = Array(i.length + 1).join("-");
283
- return i + this.upcomingInput() + `
284
- ` + a + "^";
285
- }, "showPosition"),
286
- test_match: /* @__PURE__ */ s(function(i, a) {
287
- var r, c, d;
288
- if (this.options.backtrack_lexer && (d = {
289
- yylineno: this.yylineno,
290
- yylloc: {
291
- first_line: this.yylloc.first_line,
292
- last_line: this.last_line,
293
- first_column: this.yylloc.first_column,
294
- last_column: this.yylloc.last_column
295
- },
296
- yytext: this.yytext,
297
- match: this.match,
298
- matches: this.matches,
299
- matched: this.matched,
300
- yyleng: this.yyleng,
301
- offset: this.offset,
302
- _more: this._more,
303
- _input: this._input,
304
- yy: this.yy,
305
- conditionStack: this.conditionStack.slice(0),
306
- done: this.done
307
- }, this.options.ranges && (d.yylloc.range = this.yylloc.range.slice(0))), c = i[0].match(/(?:\r\n?|\n).*/g), c && (this.yylineno += c.length), this.yylloc = {
308
- first_line: this.yylloc.last_line,
309
- last_line: this.yylineno + 1,
310
- first_column: this.yylloc.last_column,
311
- last_column: c ? c[c.length - 1].length - c[c.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
312
- }, this.yytext += i[0], this.match += i[0], this.matches = i, 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(i[0].length), this.matched += i[0], r = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r) return r;
313
- if (this._backtrack) {
314
- for (var o in d) this[o] = d[o];
315
- return !1;
316
- }
317
- return !1;
318
- }, "test_match"),
319
- next: /* @__PURE__ */ s(function() {
320
- if (this.done) return this.EOF;
321
- this._input || (this.done = !0);
322
- var i, a, r, c;
323
- this._more || (this.yytext = "", this.match = "");
324
- for (var d = this._currentRules(), o = 0; o < d.length; o++) if (r = this._input.match(this.rules[d[o]]), r && (!a || r[0].length > a[0].length)) {
325
- if (a = r, c = o, this.options.backtrack_lexer) {
326
- if (i = this.test_match(r, d[o]), i !== !1) return i;
327
- if (this._backtrack) {
328
- a = !1;
329
- continue;
330
- }
331
- return !1;
332
- }
333
- if (!this.options.flex) break;
334
- }
335
- return a ? (i = this.test_match(a, d[c]), i !== !1 && i) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
336
- ` + this.showPosition(), {
337
- text: "",
338
- token: null,
339
- line: this.yylineno
340
- });
341
- }, "next"),
342
- lex: /* @__PURE__ */ s(function() {
343
- return this.next() || this.lex();
344
- }, "lex"),
345
- begin: /* @__PURE__ */ s(function(i) {
346
- this.conditionStack.push(i);
347
- }, "begin"),
348
- popState: /* @__PURE__ */ s(function() {
349
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
350
- }, "popState"),
351
- _currentRules: /* @__PURE__ */ s(function() {
352
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
353
- }, "_currentRules"),
354
- topState: /* @__PURE__ */ s(function(i) {
355
- return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
356
- }, "topState"),
357
- pushState: /* @__PURE__ */ s(function(i) {
358
- this.begin(i);
359
- }, "pushState"),
360
- stateStackSize: /* @__PURE__ */ s(function() {
361
- return this.conditionStack.length;
362
- }, "stateStackSize"),
363
- options: { "case-insensitive": !0 },
364
- performAction: /* @__PURE__ */ s(function(i, a, r, c) {
365
- switch (r) {
366
- case 0:
367
- break;
368
- case 1:
369
- break;
370
- case 2:
371
- return 10;
372
- case 3:
373
- break;
374
- case 4:
375
- break;
376
- case 5:
377
- return 4;
378
- case 6:
379
- return 11;
380
- case 7:
381
- return this.begin("acc_title"), 12;
382
- case 8:
383
- return this.popState(), "acc_title_value";
384
- case 9:
385
- return this.begin("acc_descr"), 14;
386
- case 10:
387
- return this.popState(), "acc_descr_value";
388
- case 11:
389
- this.begin("acc_descr_multiline");
390
- break;
391
- case 12:
392
- this.popState();
393
- break;
394
- case 13:
395
- return "acc_descr_multiline_value";
396
- case 14:
397
- return 17;
398
- case 15:
399
- return 18;
400
- case 16:
401
- return 19;
402
- case 17:
403
- return ":";
404
- case 18:
405
- return 6;
406
- case 19:
407
- return "INVALID";
408
- }
409
- }, "anonymous"),
410
- rules: [
411
- /^(?:%(?!\{)[^\n]*)/i,
412
- /^(?:[^\}]%%[^\n]*)/i,
413
- /^(?:[\n]+)/i,
414
- /^(?:\s+)/i,
415
- /^(?:#[^\n]*)/i,
416
- /^(?:journey\b)/i,
417
- /^(?:title\s[^#\n;]+)/i,
418
- /^(?:accTitle\s*:\s*)/i,
419
- /^(?:(?!\n||)*[^\n]*)/i,
420
- /^(?:accDescr\s*:\s*)/i,
421
- /^(?:(?!\n||)*[^\n]*)/i,
422
- /^(?:accDescr\s*\{\s*)/i,
423
- /^(?:[\}])/i,
424
- /^(?:[^\}]*)/i,
425
- /^(?:section\s[^#:\n;]+)/i,
426
- /^(?:[^#:\n;]+)/i,
427
- /^(?::[^#\n;]+)/i,
428
- /^(?::)/i,
429
- /^(?:$)/i,
430
- /^(?:.)/i
431
- ],
432
- conditions: {
433
- acc_descr_multiline: {
434
- rules: [12, 13],
435
- inclusive: !1
436
- },
437
- acc_descr: {
438
- rules: [10],
439
- inclusive: !1
440
- },
441
- acc_title: {
442
- rules: [8],
443
- inclusive: !1
444
- },
445
- INITIAL: {
446
- rules: [
447
- 0,
448
- 1,
449
- 2,
450
- 3,
451
- 4,
452
- 5,
453
- 6,
454
- 7,
455
- 9,
456
- 11,
457
- 14,
458
- 15,
459
- 16,
460
- 17,
461
- 18,
462
- 19
463
- ],
464
- inclusive: !0
465
- }
466
- }
467
- };
468
- })();
469
- function g() {
470
- this.yy = {};
471
- }
472
- return s(g, "Parser"), g.prototype = f, f.Parser = g, new g();
473
- })();
474
- X.parser = X;
475
- var Et = X, P = "", H = [], B = [], L = [], It = /* @__PURE__ */ s(function() {
476
- H.length = 0, B.length = 0, P = "", L.length = 0, $t();
477
- }, "clear"), St = /* @__PURE__ */ s(function(t) {
478
- P = t, H.push(t);
479
- }, "addSection"), At = /* @__PURE__ */ s(function() {
480
- return H;
481
- }, "getSections"), Pt = /* @__PURE__ */ s(function() {
482
- let t = nt(), e = 0;
483
- for (; !t && e < 100; ) t = nt(), e++;
484
- return B.push(...L), B;
485
- }, "getTasks"), jt = /* @__PURE__ */ s(function() {
486
- let t = [];
487
- return B.forEach((e) => {
488
- e.people && t.push(...e.people);
489
- }), [...new Set(t)].sort();
490
- }, "updateActors"), Vt = /* @__PURE__ */ s(function(t, e) {
491
- let l = e.substr(1).split(":"), y = 0, n = [];
492
- l.length === 1 ? (y = Number(l[0]), n = []) : (y = Number(l[0]), n = l[1].split(","));
493
- let h = n.map((p) => p.trim()), u = {
494
- section: P,
495
- type: P,
496
- people: h,
497
- task: t,
498
- score: y
499
- };
500
- L.push(u);
501
- }, "addTask"), Ft = /* @__PURE__ */ s(function(t) {
502
- let e = {
503
- section: P,
504
- type: P,
505
- description: t,
506
- task: t,
507
- classes: []
508
- };
509
- B.push(e);
510
- }, "addTaskOrg"), nt = /* @__PURE__ */ s(function() {
511
- let t = /* @__PURE__ */ s(function(l) {
512
- return L[l].processed;
513
- }, "compileTask"), e = !0;
514
- for (let [l, y] of L.entries()) t(l), e &&= y.processed;
515
- return e;
516
- }, "compileTasks"), rt = {
517
- getConfig: /* @__PURE__ */ s(() => j().journey, "getConfig"),
518
- clear: It,
519
- setDiagramTitle: bt,
520
- getDiagramTitle: _t,
521
- setAccTitle: kt,
522
- getAccTitle: xt,
523
- setAccDescription: mt,
524
- getAccDescription: gt,
525
- addSection: St,
526
- getSections: At,
527
- getTasks: Pt,
528
- addTask: Vt,
529
- addTaskOrg: Ft,
530
- getActors: /* @__PURE__ */ s(function() {
531
- return jt();
532
- }, "getActors")
533
- }, Bt = /* @__PURE__ */ s((t) => `.label {
534
- font-family: ${t.fontFamily};
535
- color: ${t.textColor};
536
- }
537
- .mouth {
538
- stroke: #666;
539
- }
540
-
541
- line {
542
- stroke: ${t.textColor}
543
- }
544
-
545
- .legend {
546
- fill: ${t.textColor};
547
- font-family: ${t.fontFamily};
548
- }
549
-
550
- .label text {
551
- fill: #333;
552
- }
553
- .label {
554
- color: ${t.textColor}
555
- }
556
-
557
- .face {
558
- ${t.faceColor ? `fill: ${t.faceColor}` : "fill: #FFF8DC"};
559
- stroke: #999;
560
- }
561
-
562
- .node rect,
563
- .node circle,
564
- .node ellipse,
565
- .node polygon,
566
- .node path {
567
- fill: ${t.mainBkg};
568
- stroke: ${t.nodeBorder};
569
- stroke-width: 1px;
570
- }
571
-
572
- .node .label {
573
- text-align: center;
574
- }
575
- .node.clickable {
576
- cursor: pointer;
577
- }
578
-
579
- .arrowheadPath {
580
- fill: ${t.arrowheadColor};
581
- }
582
-
583
- .edgePaths .path {
584
- stroke: ${t.lineColor};
585
- stroke-width: 1.5px;
586
- }
587
-
588
- .flowchart-link {
589
- stroke: ${t.lineColor};
590
- fill: none;
591
- }
592
-
593
- .edgeLabel {
594
- background-color: ${t.edgeLabelBackground};
595
- rect {
596
- opacity: 0.5;
597
- }
598
- text-align: center;
599
- }
600
-
601
- .cluster rect {
602
- }
603
-
604
- .cluster text {
605
- fill: ${t.titleColor};
606
- }
607
-
608
- div.mermaidTooltip {
609
- position: absolute;
610
- text-align: center;
611
- max-width: 200px;
612
- padding: 2px;
613
- font-family: ${t.fontFamily};
614
- font-size: 12px;
615
- background: ${t.tertiaryColor};
616
- border: 1px solid ${t.border2};
617
- border-radius: 2px;
618
- pointer-events: none;
619
- z-index: 100;
620
- }
621
-
622
- .task-type-0, .section-type-0 {
623
- ${t.fillType0 ? `fill: ${t.fillType0}` : ""};
624
- }
625
- .task-type-1, .section-type-1 {
626
- ${t.fillType0 ? `fill: ${t.fillType1}` : ""};
627
- }
628
- .task-type-2, .section-type-2 {
629
- ${t.fillType0 ? `fill: ${t.fillType2}` : ""};
630
- }
631
- .task-type-3, .section-type-3 {
632
- ${t.fillType0 ? `fill: ${t.fillType3}` : ""};
633
- }
634
- .task-type-4, .section-type-4 {
635
- ${t.fillType0 ? `fill: ${t.fillType4}` : ""};
636
- }
637
- .task-type-5, .section-type-5 {
638
- ${t.fillType0 ? `fill: ${t.fillType5}` : ""};
639
- }
640
- .task-type-6, .section-type-6 {
641
- ${t.fillType0 ? `fill: ${t.fillType6}` : ""};
642
- }
643
- .task-type-7, .section-type-7 {
644
- ${t.fillType0 ? `fill: ${t.fillType7}` : ""};
645
- }
646
-
647
- .actor-0 {
648
- ${t.actor0 ? `fill: ${t.actor0}` : ""};
649
- }
650
- .actor-1 {
651
- ${t.actor1 ? `fill: ${t.actor1}` : ""};
652
- }
653
- .actor-2 {
654
- ${t.actor2 ? `fill: ${t.actor2}` : ""};
655
- }
656
- .actor-3 {
657
- ${t.actor3 ? `fill: ${t.actor3}` : ""};
658
- }
659
- .actor-4 {
660
- ${t.actor4 ? `fill: ${t.actor4}` : ""};
661
- }
662
- .actor-5 {
663
- ${t.actor5 ? `fill: ${t.actor5}` : ""};
664
- }
665
- ${wt()}
666
- `, "getStyles"), Z = /* @__PURE__ */ s(function(t, e) {
667
- return Ct(t, e);
668
- }, "drawRect"), Lt = /* @__PURE__ */ s(function(t, e) {
669
- let l = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), y = t.append("g");
670
- y.append("circle").attr("cx", e.cx - 5).attr("cy", e.cy - 5).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), y.append("circle").attr("cx", e.cx + 5).attr("cy", e.cy - 5).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
671
- function n(p) {
672
- let f = it().startAngle(Math.PI / 2).endAngle(Math.PI / 2 * 3).innerRadius(7.5).outerRadius(6.8181818181818175);
673
- p.append("path").attr("class", "mouth").attr("d", f).attr("transform", "translate(" + e.cx + "," + (e.cy + 2) + ")");
674
- }
675
- s(n, "smile");
676
- function h(p) {
677
- let f = it().startAngle(3 * Math.PI / 2).endAngle(Math.PI / 2 * 5).innerRadius(7.5).outerRadius(6.8181818181818175);
678
- p.append("path").attr("class", "mouth").attr("d", f).attr("transform", "translate(" + e.cx + "," + (e.cy + 7) + ")");
679
- }
680
- s(h, "sad");
681
- function u(p) {
682
- p.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", e.cx - 5).attr("y1", e.cy + 7).attr("x2", e.cx + 5).attr("y2", e.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
683
- }
684
- return s(u, "ambivalent"), e.score > 3 ? n(y) : e.score < 3 ? h(y) : u(y), l;
685
- }, "drawFace"), lt = /* @__PURE__ */ s(function(t, e) {
686
- let l = t.append("circle");
687
- return l.attr("cx", e.cx), l.attr("cy", e.cy), l.attr("class", "actor-" + e.pos), l.attr("fill", e.fill), l.attr("stroke", e.stroke), l.attr("r", e.r), l.class !== void 0 && l.attr("class", l.class), e.title !== void 0 && l.append("title").text(e.title), l;
688
- }, "drawCircle"), ct = /* @__PURE__ */ s(function(t, e) {
689
- return Tt(t, e);
690
- }, "drawText"), Rt = /* @__PURE__ */ s(function(t, e) {
691
- function l(n, h, u, p, f) {
692
- return n + "," + h + " " + (n + u) + "," + h + " " + (n + u) + "," + (h + p - f) + " " + (n + u - f * 1.2) + "," + (h + p) + " " + n + "," + (h + p);
693
- }
694
- s(l, "genPoints");
695
- let y = t.append("polygon");
696
- y.attr("points", l(e.x, e.y, 50, 20, 7)), y.attr("class", "labelBox"), e.y += e.labelMargin, e.x += 0.5 * e.labelMargin, ct(t, e);
697
- }, "drawLabel"), Nt = /* @__PURE__ */ s(function(t, e, l) {
698
- let y = t.append("g"), n = ot();
699
- n.x = e.x, n.y = e.y, n.fill = e.fill, n.width = l.width * e.taskCount + l.diagramMarginX * (e.taskCount - 1), n.height = l.height, n.class = "journey-section section-type-" + e.num, n.rx = 3, n.ry = 3, Z(y, n), ht(l)(e.text, y, n.x, n.y, n.width, n.height, { class: "journey-section section-type-" + e.num }, l, e.colour);
700
- }, "drawSection"), U = -1, Ot = /* @__PURE__ */ s(function(t, e, l, y) {
701
- let n = e.x + l.width / 2, h = t.append("g");
702
- U++, h.append("line").attr("id", y + "-task" + U).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Lt(h, {
703
- cx: n,
704
- cy: 300 + (5 - e.score) * 30,
705
- score: e.score
706
- });
707
- let u = ot();
708
- u.x = e.x, u.y = e.y, u.fill = e.fill, u.width = l.width, u.height = l.height, u.class = "task task-type-" + e.num, u.rx = 3, u.ry = 3, Z(h, u);
709
- let p = e.x + 14;
710
- e.people.forEach((f) => {
711
- let g = e.actors[f].color, i = {
712
- cx: p,
713
- cy: e.y,
714
- r: 7,
715
- fill: g,
716
- stroke: "#000",
717
- title: f,
718
- pos: e.actors[f].position
719
- };
720
- lt(h, i), p += 10;
721
- }), ht(l)(e.task, h, u.x, u.y, u.width, u.height, { class: "task" }, l, e.colour);
722
- }, "drawTask"), zt = /* @__PURE__ */ s(function(t, e) {
723
- Mt(t, e);
724
- }, "drawBackgroundRect"), ht = /* @__PURE__ */ (function() {
725
- function t(n, h, u, p, f, g, i, a) {
726
- y(h.append("text").attr("x", u + f / 2).attr("y", p + g / 2 + 5).style("font-color", a).style("text-anchor", "middle").text(n), i);
727
- }
728
- s(t, "byText");
729
- function e(n, h, u, p, f, g, i, a, r) {
730
- let { taskFontSize: c, taskFontFamily: d } = a, o = n.split(/<br\s*\/?>/gi);
731
- for (let k = 0; k < o.length; k++) {
732
- let m = k * c - c * (o.length - 1) / 2, b = h.append("text").attr("x", u + f / 2).attr("y", p).attr("fill", r).style("text-anchor", "middle").style("font-size", c).style("font-family", d);
733
- b.append("tspan").attr("x", u + f / 2).attr("dy", m).text(o[k]), b.attr("y", p + g / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), y(b, i);
734
- }
735
- }
736
- s(e, "byTspan");
737
- function l(n, h, u, p, f, g, i, a) {
738
- let r = h.append("switch"), c = r.append("foreignObject").attr("x", u).attr("y", p).attr("width", f).attr("height", g).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
739
- c.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(n), e(n, r, u, p, f, g, i, a), y(c, i);
740
- }
741
- s(l, "byFo");
742
- function y(n, h) {
743
- for (let u in h) u in h && n.attr(u, h[u]);
744
- }
745
- return s(y, "_setTextAttrs"), function(n) {
746
- return n.textPlacement === "fo" ? l : n.textPlacement === "old" ? t : e;
747
- };
748
- })(), R = {
749
- drawRect: Z,
750
- drawCircle: lt,
751
- drawSection: Nt,
752
- drawText: ct,
753
- drawLabel: Rt,
754
- drawTask: Ot,
755
- drawBackgroundRect: zt,
756
- initGraphics: /* @__PURE__ */ s(function(t, e) {
757
- U = -1, t.append("defs").append("marker").attr("id", e + "-arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
758
- }, "initGraphics")
759
- }, Dt = /* @__PURE__ */ s(function(t) {
760
- Object.keys(t).forEach(function(e) {
761
- M[e] = t[e];
762
- });
763
- }, "setConf"), C = {}, z = 0;
764
- function ut(t) {
765
- let e = j().journey, l = e.maxLabelWidth;
766
- z = 0;
767
- let y = 60;
768
- Object.keys(C).forEach((n) => {
769
- let h = C[n].color, u = {
770
- cx: 20,
771
- cy: y,
772
- r: 7,
773
- fill: h,
774
- stroke: "#000",
775
- pos: C[n].position
776
- };
777
- R.drawCircle(t, u);
778
- let p = t.append("text").attr("visibility", "hidden").text(n), f = p.node().getBoundingClientRect().width;
779
- p.remove();
780
- let g = [];
781
- if (f <= l) g = [n];
782
- else {
783
- let i = n.split(" "), a = "";
784
- p = t.append("text").attr("visibility", "hidden"), i.forEach((r) => {
785
- let c = a ? `${a} ${r}` : r;
786
- if (p.text(c), p.node().getBoundingClientRect().width > l) {
787
- if (a && g.push(a), a = r, p.text(r), p.node().getBoundingClientRect().width > l) {
788
- let d = "";
789
- for (let o of r) d += o, p.text(d + "-"), p.node().getBoundingClientRect().width > l && (g.push(d.slice(0, -1) + "-"), d = o);
790
- a = d;
791
- }
792
- } else a = c;
793
- }), a && g.push(a), p.remove();
794
- }
795
- g.forEach((i, a) => {
796
- let r = {
797
- x: 40,
798
- y: y + 7 + a * 20,
799
- fill: "#666",
800
- text: i,
801
- textMargin: e.boxTextMargin ?? 5
802
- }, c = R.drawText(t, r).node().getBoundingClientRect().width;
803
- c > z && c > e.leftMargin - c && (z = c);
804
- }), y += Math.max(20, g.length * 20);
805
- });
806
- }
807
- s(ut, "drawActorLegend");
808
- var M = j().journey, E = 0, Yt = /* @__PURE__ */ s(function(t, e, l, y) {
809
- let n = j(), h = n.journey.titleColor, u = n.journey.titleFontSize, p = n.journey.titleFontFamily, f = n.securityLevel, g;
810
- f === "sandbox" && (g = et("#i" + e));
811
- let i = et(f === "sandbox" ? g.nodes()[0].contentDocument.body : "body");
812
- w.init();
813
- let a = i.select("#" + e);
814
- R.initGraphics(a, e);
815
- let r = y.db.getTasks(), c = y.db.getDiagramTitle(), d = y.db.getActors();
816
- for (let F in C) delete C[F];
817
- let o = 0;
818
- d.forEach((F) => {
819
- C[F] = {
820
- color: M.actorColours[o % M.actorColours.length],
821
- position: o
822
- }, o++;
823
- }), ut(a), E = M.leftMargin + z, w.insert(0, 0, E, Object.keys(C).length * 50), Gt(a, r, 0, e);
824
- let k = w.getBounds();
825
- c && a.append("text").text(c).attr("x", E).attr("font-size", u).attr("font-weight", "bold").attr("y", 25).attr("fill", h).attr("font-family", p);
826
- let m = k.stopy - k.starty + 2 * M.diagramMarginY, b = E + k.stopx + 2 * M.diagramMarginX;
827
- vt(a, m, b, M.useMaxWidth), a.append("line").attr("x1", E).attr("y1", M.height * 4).attr("x2", b - E - 4).attr("y2", M.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#" + e + "-arrowhead)");
828
- let V = c ? 70 : 0;
829
- a.attr("viewBox", `${k.startx} -25 ${b} ${m + V}`), a.attr("preserveAspectRatio", "xMinYMin meet"), a.attr("height", m + V + 25);
830
- }, "draw"), w = {
831
- data: {
832
- startx: void 0,
833
- stopx: void 0,
834
- starty: void 0,
835
- stopy: void 0
836
- },
837
- verticalPos: 0,
838
- sequenceItems: [],
839
- init: /* @__PURE__ */ s(function() {
840
- this.sequenceItems = [], this.data = {
841
- startx: void 0,
842
- stopx: void 0,
843
- starty: void 0,
844
- stopy: void 0
845
- }, this.verticalPos = 0;
846
- }, "init"),
847
- updateVal: /* @__PURE__ */ s(function(t, e, l, y) {
848
- t[e] = t[e] === void 0 ? l : y(l, t[e]);
849
- }, "updateVal"),
850
- updateBounds: /* @__PURE__ */ s(function(t, e, l, y) {
851
- let n = j().journey, h = this, u = 0;
852
- function p(f) {
853
- return /* @__PURE__ */ s(function(g) {
854
- u++;
855
- let i = h.sequenceItems.length - u + 1;
856
- h.updateVal(g, "starty", e - i * n.boxMargin, Math.min), h.updateVal(g, "stopy", y + i * n.boxMargin, Math.max), h.updateVal(w.data, "startx", t - i * n.boxMargin, Math.min), h.updateVal(w.data, "stopx", l + i * n.boxMargin, Math.max), f !== "activation" && (h.updateVal(g, "startx", t - i * n.boxMargin, Math.min), h.updateVal(g, "stopx", l + i * n.boxMargin, Math.max), h.updateVal(w.data, "starty", e - i * n.boxMargin, Math.min), h.updateVal(w.data, "stopy", y + i * n.boxMargin, Math.max));
857
- }, "updateItemBounds");
858
- }
859
- s(p, "updateFn"), this.sequenceItems.forEach(p());
860
- }, "updateBounds"),
861
- insert: /* @__PURE__ */ s(function(t, e, l, y) {
862
- let n = Math.min(t, l), h = Math.max(t, l), u = Math.min(e, y), p = Math.max(e, y);
863
- this.updateVal(w.data, "startx", n, Math.min), this.updateVal(w.data, "starty", u, Math.min), this.updateVal(w.data, "stopx", h, Math.max), this.updateVal(w.data, "stopy", p, Math.max), this.updateBounds(n, u, h, p);
864
- }, "insert"),
865
- bumpVerticalPos: /* @__PURE__ */ s(function(t) {
866
- this.verticalPos += t, this.data.stopy = this.verticalPos;
867
- }, "bumpVerticalPos"),
868
- getVerticalPos: /* @__PURE__ */ s(function() {
869
- return this.verticalPos;
870
- }, "getVerticalPos"),
871
- getBounds: /* @__PURE__ */ s(function() {
872
- return this.data;
873
- }, "getBounds")
874
- }, q = M.sectionFills, st = M.sectionColours, Gt = /* @__PURE__ */ s(function(t, e, l, y) {
875
- let n = j().journey, h = "", u = l + (n.height * 2 + n.diagramMarginY), p = 0, f = "#CCC", g = "black", i = 0;
876
- for (let [a, r] of e.entries()) {
877
- if (h !== r.section) {
878
- f = q[p % q.length], i = p % q.length, g = st[p % st.length];
879
- let d = 0, o = r.section;
880
- for (let m = a; m < e.length && e[m].section == o; m++) d += 1;
881
- let k = {
882
- x: a * n.taskMargin + a * n.width + E,
883
- y: 50,
884
- text: r.section,
885
- fill: f,
886
- num: i,
887
- colour: g,
888
- taskCount: d
889
- };
890
- R.drawSection(t, k, n), h = r.section, p++;
891
- }
892
- let c = r.people.reduce((d, o) => (C[o] && (d[o] = C[o]), d), {});
893
- r.x = a * n.taskMargin + a * n.width + E, r.y = u, r.width = n.diagramMarginX, r.height = n.diagramMarginY, r.colour = g, r.fill = f, r.num = i, r.actors = c, R.drawTask(t, r, n, y), w.insert(r.x, r.y, r.x + r.width + n.taskMargin, 450);
894
- }
895
- }, "drawTasks"), at = {
896
- setConf: Dt,
897
- draw: Yt
898
- }, Ht = {
899
- parser: Et,
900
- db: rt,
901
- renderer: at,
902
- styles: Bt,
903
- init: /* @__PURE__ */ s((t) => {
904
- at.setConf(t.journey), rt.clear();
905
- }, "init")
906
- };
907
- export {
908
- Ht as diagram
909
- };