@kong-ui-public/documentation 1.4.20 → 1.4.21-pr.2722.b1aa23ae4.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 (163) hide show
  1. package/package.json +2 -2
  2. package/dist/_basePickBy-BCsiP0lE-DJBdvZNn.js +0 -151
  3. package/dist/_baseUniq-CsvgMmt0-CCBG5z_B.js +0 -614
  4. package/dist/arc-DYb5Ak6k-js8YHzj6.js +0 -83
  5. package/dist/architecture-U656AL7Q-LZu-yAfZ-CQD6AyxA.js +0 -5
  6. package/dist/architectureDiagram-KFL7JDKH-BK_an8l5-D20M_MXF.js +0 -4665
  7. package/dist/astro-Uf8_VxKJ-CZxoSljj.js +0 -16
  8. package/dist/blockDiagram-ZYB65J3Q-C0KtqCEe-pwEm3-ie.js +0 -2265
  9. package/dist/c-DASdrs7p-DASdrs7p.js +0 -6
  10. package/dist/c4Diagram-AAMF2YG6-DYHWlrmc-C6NWDsTV.js +0 -1581
  11. package/dist/channel-3QVQMCTA-BwyrTaJi.js +0 -5
  12. package/dist/chunk-ANTBXLJU-BhR1MDfy-Bec7kb00.js +0 -9
  13. package/dist/chunk-FHKO5MBM-z_nuC8Da-Dge2Nbr5.js +0 -15
  14. package/dist/chunk-GLLZNHP4-DgwBbAOT-BUrsAxH8.js +0 -19
  15. package/dist/chunk-JBRWN2VN-CHua2TSC-BYWS19Oz.js +0 -1374
  16. package/dist/chunk-LXBSTHXV-CoED0jHL-Cc8w4JL1.js +0 -1382
  17. package/dist/chunk-NRVI72HA-DxsqT4Dt-Bo_vu9qn.js +0 -20
  18. package/dist/chunk-OMD6QJNC-_VI6zVGr-Bb4P7zNG.js +0 -64
  19. package/dist/chunk-WVR4S24B-C4HIWky3-CkJ0DHSJ.js +0 -8
  20. package/dist/classDiagram-3BZAVTQC-DrmNjTt_-CS9fxl_R.js +0 -16
  21. package/dist/classDiagram-v2-QTMF73CY-DrmNjTt_-CS9fxl_R.js +0 -16
  22. package/dist/clone-C0dvnYv6-BozdSvey.js +0 -8
  23. package/dist/csharp-CYWRhZ2R-CYWRhZ2R.js +0 -6
  24. package/dist/css-D1aVdRIU-D1aVdRIU.js +0 -6
  25. package/dist/csv-DvCncUGQ-Tno401i9.js +0 -6
  26. package/dist/cytoscape.esm-CjI2IsL8-DYIumutE.js +0 -18721
  27. package/dist/dagre-2BBEFEWP-Bh_bYuL8-Cej31YXN.js +0 -447
  28. package/dist/defaultLocale-D7EN2tov-CK6dgF7Y.js +0 -171
  29. package/dist/diagram-4IRLE6MV-34TaesxP-XfF-gcP2.js +0 -533
  30. package/dist/diagram-GUPCWM2R-Cr4-5_uX-B8mxM1Uc.js +0 -143
  31. package/dist/diagram-RP2FKANI-COpvHjzI-C-_mZxuk.js +0 -221
  32. package/dist/diff-XmNrvgM1-XmNrvgM1.js +0 -6
  33. package/dist/docker-DWH2onkn-DWH2onkn.js +0 -6
  34. package/dist/documentation.es.js +0 -7
  35. package/dist/documentation.umd.js +0 -2865
  36. package/dist/erDiagram-HZWUO2LU-Cu2MerRS-KziSgDQg.js +0 -840
  37. package/dist/flowDiagram-THRYKUMA-CfrQTB8C-BYn8LF24.js +0 -1627
  38. package/dist/ganttDiagram-WV7ZQ7D5-gkieebY_-C7YOriZ4.js +0 -2504
  39. package/dist/git-commit-BspYIY3P-VkbIfR3L.js +0 -8
  40. package/dist/git-rebase--zLBTjUa-DEW2tfKx.js +0 -8
  41. package/dist/gitGraph-F6HP7TQM-suE5ufvy-CQDQV2yP.js +0 -5
  42. package/dist/gitGraphDiagram-OJR772UL-CYA7EIoU-Bqc1qZk4.js +0 -712
  43. package/dist/go-BErP6iv1-BErP6iv1.js +0 -6
  44. package/dist/graph-B_1gOUDz-Dm6REFzZ.js +0 -247
  45. package/dist/graphql-DWpQF4JI-C-3VJmtp.js +0 -14
  46. package/dist/haml-CMN0hQaL-BV5BsZTy.js +0 -10
  47. package/dist/handlebars-Cc-7fXX5-B9YgDKzT.js +0 -14
  48. package/dist/haskell-CtlGos0K-CtlGos0K.js +0 -6
  49. package/dist/html-B0P_v3yU-BojM9zZg.js +0 -10
  50. package/dist/html-derivative-BJFFAxYV-iD6NAoKm.js +0 -8
  51. package/dist/http-Dcjm_K1m-1LFSbOE1.js +0 -14
  52. package/dist/index-BDD0CD9m.js +0 -37385
  53. package/dist/info-NVLQJR56-CdsHk-Jf-tf8zb8tD.js +0 -5
  54. package/dist/infoDiagram-6WOFNB3A-ajp3t5Lm-D80dGo5F.js +0 -24
  55. package/dist/ini-BUcvsX-U-BUcvsX-U.js +0 -6
  56. package/dist/init-DjUOC4st-C8Nwz6AJ.js +0 -16
  57. package/dist/java-B7odJ7Ap-B7odJ7Ap.js +0 -6
  58. package/dist/javascript-fa8UlHZE-fa8UlHZE.js +0 -6
  59. package/dist/journeyDiagram-FFXJYRFH-kgCEEPLo-CakI8CyJ.js +0 -834
  60. package/dist/json-71t8ZF9g-71t8ZF9g.js +0 -6
  61. package/dist/json5-Z7F6rA6a-Z7F6rA6a.js +0 -6
  62. package/dist/jsonc-Dphhs4m2-Dphhs4m2.js +0 -6
  63. package/dist/jsonl-D9jj92Gg-D9jj92Gg.js +0 -6
  64. package/dist/jsx-Bkesy5tT-Bkesy5tT.js +0 -6
  65. package/dist/kanban-definition-KOZQBZVT-CmM4CHe6-rjuufCiO.js +0 -720
  66. package/dist/katex-C0Lgw_Sx-CbX2I1cQ.js +0 -11687
  67. package/dist/kotlin-DCgZY7Ii-DCgZY7Ii.js +0 -6
  68. package/dist/latex-CZXk8SiZ-DbjDPp_f.js +0 -11
  69. package/dist/layout-9vIfpCf3-FfABA43y.js +0 -1321
  70. package/dist/less-DQA4v-Nm-DQA4v-Nm.js +0 -6
  71. package/dist/linear-C-k9vokG-Md9dfBfB.js +0 -259
  72. package/dist/liquid-CvufO3kO-D90bBAdm.js +0 -14
  73. package/dist/lua-BVfhNLDr-DAa90qLN.js +0 -8
  74. package/dist/make-BjuHP00g-BjuHP00g.js +0 -6
  75. package/dist/markdown-B6guhLWd-B6guhLWd.js +0 -6
  76. package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +0 -4
  77. package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +0 -4
  78. package/dist/mdc-Bq810vct-Dr8CpN8f.js +0 -12
  79. package/dist/mdx-DIoECIFU-DIoECIFU.js +0 -6
  80. package/dist/mermaid-BZ7WHNIe-BZ7WHNIe.js +0 -6
  81. package/dist/mermaid-parser.core-DHL9WXVx-DeKF3RZx.js +0 -12890
  82. package/dist/mindmap-definition-LNHGMQRG-BsypuFYj-DSVrvuog.js +0 -3231
  83. package/dist/nginx-Can2eAjw-DKMoypYC.js +0 -8
  84. package/dist/objective-c-BGg9R27G-BGg9R27G.js +0 -6
  85. package/dist/ordinal-DfAQgscy-BEJTu10r.js +0 -61
  86. package/dist/packet-BFZMPI3H-BcK9kJ-B-BxxCPBGn.js +0 -5
  87. package/dist/pascal-l2bqd7Dz-l2bqd7Dz.js +0 -6
  88. package/dist/perl-DaMQyPwp-Cxx4wmV7.js +0 -16
  89. package/dist/php-BL3EfPBi-BZu5YwDX.js +0 -18
  90. package/dist/pie-7BOR55EZ-Vt5px0F3-BM7egbMh.js +0 -5
  91. package/dist/pieDiagram-DBDJKBY4-Bam6gKTi-BOqYeC6c.js +0 -161
  92. package/dist/plsql-oVq_K_wH-oVq_K_wH.js +0 -6
  93. package/dist/postcss-BZ3MNRIJ-BZ3MNRIJ.js +0 -6
  94. package/dist/powershell-Diwyv8Eh-Diwyv8Eh.js +0 -6
  95. package/dist/proto-o9HLmF90-o9HLmF90.js +0 -6
  96. package/dist/pug-HKe4Luo3-BYb0El_4.js +0 -12
  97. package/dist/python-xYxLFJY--xYxLFJY-.js +0 -6
  98. package/dist/quadrantDiagram-YPSRARAO-CJwMw09m-CN2OO-Le.js +0 -1024
  99. package/dist/r-F-9I-ITZ-F-9I-ITZ.js +0 -6
  100. package/dist/radar-NHE76QYJ-Br11XWE4-4RP4MPFA.js +0 -5
  101. package/dist/reg-CMUdAgIP-CMUdAgIP.js +0 -6
  102. package/dist/requirementDiagram-EGVEC5DT-DkRytT0X-C2zigskn.js +0 -850
  103. package/dist/rst-B8JEEtLI-Dyxh6LOj.js +0 -22
  104. package/dist/ruby-FDlfLkNa-nf7VLvCK.js +0 -50
  105. package/dist/rust-Pc7DCsZD-Pc7DCsZD.js +0 -6
  106. package/dist/sankeyDiagram-HRAUVNP4-08s1UHMk-2j8idkNs.js +0 -810
  107. package/dist/sass-iCyS6eP9-iCyS6eP9.js +0 -6
  108. package/dist/scss-DhHc4lxB-D1lMETuy.js +0 -8
  109. package/dist/sequenceDiagram-WFGC7UMF-6_s7-CN7-D-oTpLFJ.js +0 -2283
  110. package/dist/shellscript-Dn0-btNd-Dn0-btNd.js +0 -6
  111. package/dist/shellsession-8OLo3sB6-DD6AdPYk.js +0 -8
  112. package/dist/splunk-CTqDjQdo-CTqDjQdo.js +0 -6
  113. package/dist/sql-DCkt643--DCkt643-.js +0 -6
  114. package/dist/ssh-config-DHHGll-v-DHHGll-v.js +0 -6
  115. package/dist/stateDiagram-UUKSUZ4H-eWajY90l-BlM614AN.js +0 -263
  116. package/dist/stateDiagram-v2-EYPG3UTE-Dh7Ngu1O-YVMiocHE.js +0 -16
  117. package/dist/style.css +0 -1
  118. package/dist/stylus-n_9f0QQ5-n_9f0QQ5.js +0 -6
  119. package/dist/svelte-01qw6Rxm-Cjp5Srko.js +0 -14
  120. package/dist/swift-BAWqNR8A-BAWqNR8A.js +0 -6
  121. package/dist/timeline-definition-3HZDQTIS-4TPEOhE8-fDDLVlO8.js +0 -799
  122. package/dist/toml-CQSfOn0e-CQSfOn0e.js +0 -6
  123. package/dist/treemap-KMMF4GRG-nu7WEuPi-C1YG24W8.js +0 -5
  124. package/dist/tsx-DiGsgWT8-DiGsgWT8.js +0 -6
  125. package/dist/twig-DxrNSc26-BIWbKTFO.js +0 -18
  126. package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -34
  127. package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
  128. package/dist/types/components/DocumentationContent.vue.d.ts +0 -174
  129. package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
  130. package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -93
  131. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
  132. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -30
  133. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
  134. package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -71
  135. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
  136. package/dist/types/composables/index.d.ts +0 -6
  137. package/dist/types/composables/index.d.ts.map +0 -1
  138. package/dist/types/composables/useI18n.d.ts +0 -9
  139. package/dist/types/composables/useI18n.d.ts.map +0 -1
  140. package/dist/types/external-links.d.ts +0 -5
  141. package/dist/types/external-links.d.ts.map +0 -1
  142. package/dist/types/helpers.d.ts +0 -8
  143. package/dist/types/helpers.d.ts.map +0 -1
  144. package/dist/types/index.d.ts +0 -7
  145. package/dist/types/index.d.ts.map +0 -1
  146. package/dist/types/types/document-list.d.ts +0 -28
  147. package/dist/types/types/document-list.d.ts.map +0 -1
  148. package/dist/types/types/document-modal.d.ts +0 -8
  149. package/dist/types/types/document-modal.d.ts.map +0 -1
  150. package/dist/types/types/index.d.ts +0 -3
  151. package/dist/types/types/index.d.ts.map +0 -1
  152. package/dist/typescript-buWNZFwO-buWNZFwO.js +0 -6
  153. package/dist/v-wa8Orrdd-wa8Orrdd.js +0 -6
  154. package/dist/vb-E2_-jk4M-E2_-jk4M.js +0 -6
  155. package/dist/viml-B-zWOd7Z-B-zWOd7Z.js +0 -6
  156. package/dist/vue-DdqTpW8B-BrYVXV7A.js +0 -31
  157. package/dist/vue-html-B9t4RWro-D1UeMTSX.js +0 -10
  158. package/dist/wasm-Bv5f0gKv-Bv5f0gKv.js +0 -6
  159. package/dist/wgsl-DnPoPGDU-DnPoPGDU.js +0 -6
  160. package/dist/xml-ChBsf5uy-0Ovnixsj.js +0 -8
  161. package/dist/xsl-BefjlXrd-CZ7IlB9K.js +0 -8
  162. package/dist/xychartDiagram-FDP5SA34-BbtKlU7T-D1BI5nWs.js +0 -1340
  163. package/dist/yaml-Bbg74JKr-Bbg74JKr.js +0 -6
@@ -1,834 +0,0 @@
1
- import { d as ft, y as rt, g as gt, x as mt } from "./chunk-OMD6QJNC-_VI6zVGr-Bb4P7zNG.js";
2
- import { l as xt } from "./chunk-GLLZNHP4-DgwBbAOT-BUrsAxH8.js";
3
- import { _ as s, a6 as kt, a5 as _t, a7 as bt, a8 as wt, ao as $t, an as vt, g as B, a9 as X, aa as St, at as Tt } from "./index-BDD0CD9m.js";
4
- import { h as tt } from "./arc-DYb5Ak6k-js8YHzj6.js";
5
- var U = function() {
6
- var t = /* @__PURE__ */ s(function(y, i, a, u) {
7
- for (a = a || {}, u = y.length; u--; a[y[u]] = i) ;
8
- return a;
9
- }, "o"), e = [6, 8, 10, 11, 12, 14, 16, 17, 18], r = [1, 9], l = [1, 10], n = [1, 11], c = [1, 12], d = [1, 13], h = [1, 14], f = {
10
- trace: /* @__PURE__ */ s(function() {
11
- }, "trace"),
12
- yy: {},
13
- symbols_: { error: 2, start: 3, journey: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, title: 11, acc_title: 12, acc_title_value: 13, acc_descr: 14, acc_descr_value: 15, acc_descr_multiline_value: 16, section: 17, taskName: 18, taskData: 19, $accept: 0, $end: 1 },
14
- terminals_: { 2: "error", 4: "journey", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 11: "title", 12: "acc_title", 13: "acc_title_value", 14: "acc_descr", 15: "acc_descr_value", 16: "acc_descr_multiline_value", 17: "section", 18: "taskName", 19: "taskData" },
15
- productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 2]],
16
- performAction: /* @__PURE__ */ s(function(y, i, a, u, p, o, x) {
17
- var k = o.length - 1;
18
- switch (p) {
19
- case 1:
20
- return o[k - 1];
21
- case 2:
22
- this.$ = [];
23
- break;
24
- case 3:
25
- o[k - 1].push(o[k]), this.$ = o[k - 1];
26
- break;
27
- case 4:
28
- case 5:
29
- this.$ = o[k];
30
- break;
31
- case 6:
32
- case 7:
33
- this.$ = [];
34
- break;
35
- case 8:
36
- u.setDiagramTitle(o[k].substr(6)), this.$ = o[k].substr(6);
37
- break;
38
- case 9:
39
- this.$ = o[k].trim(), u.setAccTitle(this.$);
40
- break;
41
- case 10:
42
- case 11:
43
- this.$ = o[k].trim(), u.setAccDescription(this.$);
44
- break;
45
- case 12:
46
- u.addSection(o[k].substr(8)), this.$ = o[k].substr(8);
47
- break;
48
- case 13:
49
- u.addTask(o[k - 1], o[k]), this.$ = "task";
50
- break;
51
- }
52
- }, "anonymous"),
53
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: r, 12: l, 14: n, 16: c, 17: d, 18: h }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 15, 11: r, 12: l, 14: n, 16: c, 17: d, 18: h }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 8]), { 13: [1, 16] }, { 15: [1, 17] }, t(e, [2, 11]), t(e, [2, 12]), { 19: [1, 18] }, t(e, [2, 4]), t(e, [2, 9]), t(e, [2, 10]), t(e, [2, 13])],
54
- defaultActions: {},
55
- parseError: /* @__PURE__ */ s(function(y, i) {
56
- if (i.recoverable)
57
- this.trace(y);
58
- else {
59
- var a = new Error(y);
60
- throw a.hash = i, a;
61
- }
62
- }, "parseError"),
63
- parse: /* @__PURE__ */ s(function(y) {
64
- var i = this, a = [0], u = [], p = [null], o = [], x = this.table, k = "", E = 0, A = 0, ut = 2, J = 1, pt = o.slice.call(arguments, 1), _ = Object.create(this.lexer), I = { yy: {} };
65
- for (var z in this.yy)
66
- Object.prototype.hasOwnProperty.call(this.yy, z) && (I.yy[z] = this.yy[z]);
67
- _.setInput(y, I.yy), I.yy.lexer = _, I.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
68
- var Y = _.yylloc;
69
- o.push(Y);
70
- var yt = _.options && _.options.ranges;
71
- typeof I.yy.parseError == "function" ? this.parseError = I.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
72
- function dt(w) {
73
- a.length = a.length - 2 * w, p.length = p.length - w, o.length = o.length - w;
74
- }
75
- s(dt, "popStack");
76
- function K() {
77
- var w;
78
- return w = u.pop() || _.lex() || J, typeof w != "number" && (w instanceof Array && (u = w, w = u.pop()), w = i.symbols_[w] || w), w;
79
- }
80
- s(K, "lex");
81
- for (var b, P, $, W, j = {}, F, T, H, O; ; ) {
82
- if (P = a[a.length - 1], this.defaultActions[P] ? $ = this.defaultActions[P] : ((b === null || typeof b > "u") && (b = K()), $ = x[P] && x[P][b]), typeof $ > "u" || !$.length || !$[0]) {
83
- var G = "";
84
- O = [];
85
- for (F in x[P])
86
- this.terminals_[F] && F > ut && O.push("'" + this.terminals_[F] + "'");
87
- _.showPosition ? G = "Parse error on line " + (E + 1) + `:
88
- ` + _.showPosition() + `
89
- Expecting ` + O.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : G = "Parse error on line " + (E + 1) + ": Unexpected " + (b == J ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(G, {
90
- text: _.match,
91
- token: this.terminals_[b] || b,
92
- line: _.yylineno,
93
- loc: Y,
94
- expected: O
95
- });
96
- }
97
- if ($[0] instanceof Array && $.length > 1)
98
- throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + b);
99
- switch ($[0]) {
100
- case 1:
101
- a.push(b), p.push(_.yytext), o.push(_.yylloc), a.push($[1]), b = null, A = _.yyleng, k = _.yytext, E = _.yylineno, Y = _.yylloc;
102
- break;
103
- case 2:
104
- if (T = this.productions_[$[1]][1], j.$ = p[p.length - T], j._$ = {
105
- first_line: o[o.length - (T || 1)].first_line,
106
- last_line: o[o.length - 1].last_line,
107
- first_column: o[o.length - (T || 1)].first_column,
108
- last_column: o[o.length - 1].last_column
109
- }, yt && (j._$.range = [
110
- o[o.length - (T || 1)].range[0],
111
- o[o.length - 1].range[1]
112
- ]), W = this.performAction.apply(j, [
113
- k,
114
- A,
115
- E,
116
- I.yy,
117
- $[1],
118
- p,
119
- o
120
- ].concat(pt)), typeof W < "u")
121
- return W;
122
- T && (a = a.slice(0, -1 * T * 2), p = p.slice(0, -1 * T), o = o.slice(0, -1 * T)), a.push(this.productions_[$[1]][0]), p.push(j.$), o.push(j._$), H = x[a[a.length - 2]][a[a.length - 1]], a.push(H);
123
- break;
124
- case 3:
125
- return !0;
126
- }
127
- }
128
- return !0;
129
- }, "parse")
130
- }, m = /* @__PURE__ */ function() {
131
- var y = {
132
- EOF: 1,
133
- parseError: /* @__PURE__ */ s(function(i, a) {
134
- if (this.yy.parser)
135
- this.yy.parser.parseError(i, a);
136
- else
137
- throw new Error(i);
138
- }, "parseError"),
139
- // resets the lexer, sets new input
140
- setInput: /* @__PURE__ */ s(function(i, a) {
141
- 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 = {
142
- first_line: 1,
143
- first_column: 0,
144
- last_line: 1,
145
- last_column: 0
146
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
147
- }, "setInput"),
148
- // consumes and returns one char from the input
149
- input: /* @__PURE__ */ s(function() {
150
- var i = this._input[0];
151
- this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
152
- var a = i.match(/(?:\r\n?|\n).*/g);
153
- return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
154
- }, "input"),
155
- // unshifts one char (or a string) into the input
156
- unput: /* @__PURE__ */ s(function(i) {
157
- var a = i.length, u = i.split(/(?:\r\n?|\n)/g);
158
- this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
159
- var p = this.match.split(/(?:\r\n?|\n)/g);
160
- 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);
161
- var o = this.yylloc.range;
162
- return this.yylloc = {
163
- first_line: this.yylloc.first_line,
164
- last_line: this.yylineno + 1,
165
- first_column: this.yylloc.first_column,
166
- last_column: u ? (u.length === p.length ? this.yylloc.first_column : 0) + p[p.length - u.length].length - u[0].length : this.yylloc.first_column - a
167
- }, this.options.ranges && (this.yylloc.range = [o[0], o[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
168
- }, "unput"),
169
- // When called from action, caches matched text and appends it on next action
170
- more: /* @__PURE__ */ s(function() {
171
- return this._more = !0, this;
172
- }, "more"),
173
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
174
- reject: /* @__PURE__ */ s(function() {
175
- if (this.options.backtrack_lexer)
176
- this._backtrack = !0;
177
- else
178
- 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).
179
- ` + this.showPosition(), {
180
- text: "",
181
- token: null,
182
- line: this.yylineno
183
- });
184
- return this;
185
- }, "reject"),
186
- // retain first n characters of the match
187
- less: /* @__PURE__ */ s(function(i) {
188
- this.unput(this.match.slice(i));
189
- }, "less"),
190
- // displays already matched input, i.e. for error messages
191
- pastInput: /* @__PURE__ */ s(function() {
192
- var i = this.matched.substr(0, this.matched.length - this.match.length);
193
- return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
194
- }, "pastInput"),
195
- // displays upcoming input, i.e. for error messages
196
- upcomingInput: /* @__PURE__ */ s(function() {
197
- var i = this.match;
198
- return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
199
- }, "upcomingInput"),
200
- // displays the character position where the lexing error occurred, i.e. for error messages
201
- showPosition: /* @__PURE__ */ s(function() {
202
- var i = this.pastInput(), a = new Array(i.length + 1).join("-");
203
- return i + this.upcomingInput() + `
204
- ` + a + "^";
205
- }, "showPosition"),
206
- // test the lexed token: return FALSE when not a match, otherwise return token
207
- test_match: /* @__PURE__ */ s(function(i, a) {
208
- var u, p, o;
209
- if (this.options.backtrack_lexer && (o = {
210
- yylineno: this.yylineno,
211
- yylloc: {
212
- first_line: this.yylloc.first_line,
213
- last_line: this.last_line,
214
- first_column: this.yylloc.first_column,
215
- last_column: this.yylloc.last_column
216
- },
217
- yytext: this.yytext,
218
- match: this.match,
219
- matches: this.matches,
220
- matched: this.matched,
221
- yyleng: this.yyleng,
222
- offset: this.offset,
223
- _more: this._more,
224
- _input: this._input,
225
- yy: this.yy,
226
- conditionStack: this.conditionStack.slice(0),
227
- done: this.done
228
- }, this.options.ranges && (o.yylloc.range = this.yylloc.range.slice(0))), p = i[0].match(/(?:\r\n?|\n).*/g), p && (this.yylineno += p.length), this.yylloc = {
229
- first_line: this.yylloc.last_line,
230
- last_line: this.yylineno + 1,
231
- first_column: this.yylloc.last_column,
232
- last_column: p ? p[p.length - 1].length - p[p.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
233
- }, 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], u = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), u)
234
- return u;
235
- if (this._backtrack) {
236
- for (var x in o)
237
- this[x] = o[x];
238
- return !1;
239
- }
240
- return !1;
241
- }, "test_match"),
242
- // return next match in input
243
- next: /* @__PURE__ */ s(function() {
244
- if (this.done)
245
- return this.EOF;
246
- this._input || (this.done = !0);
247
- var i, a, u, p;
248
- this._more || (this.yytext = "", this.match = "");
249
- for (var o = this._currentRules(), x = 0; x < o.length; x++)
250
- if (u = this._input.match(this.rules[o[x]]), u && (!a || u[0].length > a[0].length)) {
251
- if (a = u, p = x, this.options.backtrack_lexer) {
252
- if (i = this.test_match(u, o[x]), i !== !1)
253
- return i;
254
- if (this._backtrack) {
255
- a = !1;
256
- continue;
257
- } else
258
- return !1;
259
- } else if (!this.options.flex)
260
- break;
261
- }
262
- return a ? (i = this.test_match(a, o[p]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
263
- ` + this.showPosition(), {
264
- text: "",
265
- token: null,
266
- line: this.yylineno
267
- });
268
- }, "next"),
269
- // return next match that has a token
270
- lex: /* @__PURE__ */ s(function() {
271
- var i = this.next();
272
- return i || this.lex();
273
- }, "lex"),
274
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
275
- begin: /* @__PURE__ */ s(function(i) {
276
- this.conditionStack.push(i);
277
- }, "begin"),
278
- // pop the previously active lexer condition state off the condition stack
279
- popState: /* @__PURE__ */ s(function() {
280
- var i = this.conditionStack.length - 1;
281
- return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
282
- }, "popState"),
283
- // produce the lexer rule set which is active for the currently active lexer condition state
284
- _currentRules: /* @__PURE__ */ s(function() {
285
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
286
- }, "_currentRules"),
287
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
288
- topState: /* @__PURE__ */ s(function(i) {
289
- return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
290
- }, "topState"),
291
- // alias for begin(condition)
292
- pushState: /* @__PURE__ */ s(function(i) {
293
- this.begin(i);
294
- }, "pushState"),
295
- // return the number of states currently on the stack
296
- stateStackSize: /* @__PURE__ */ s(function() {
297
- return this.conditionStack.length;
298
- }, "stateStackSize"),
299
- options: { "case-insensitive": !0 },
300
- performAction: /* @__PURE__ */ s(function(i, a, u, p) {
301
- switch (u) {
302
- case 0:
303
- break;
304
- case 1:
305
- break;
306
- case 2:
307
- return 10;
308
- case 3:
309
- break;
310
- case 4:
311
- break;
312
- case 5:
313
- return 4;
314
- case 6:
315
- return 11;
316
- case 7:
317
- return this.begin("acc_title"), 12;
318
- case 8:
319
- return this.popState(), "acc_title_value";
320
- case 9:
321
- return this.begin("acc_descr"), 14;
322
- case 10:
323
- return this.popState(), "acc_descr_value";
324
- case 11:
325
- this.begin("acc_descr_multiline");
326
- break;
327
- case 12:
328
- this.popState();
329
- break;
330
- case 13:
331
- return "acc_descr_multiline_value";
332
- case 14:
333
- return 17;
334
- case 15:
335
- return 18;
336
- case 16:
337
- return 19;
338
- case 17:
339
- return ":";
340
- case 18:
341
- return 6;
342
- case 19:
343
- return "INVALID";
344
- }
345
- }, "anonymous"),
346
- rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:journey\b)/i, /^(?:title\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:section\s[^#:\n;]+)/i, /^(?:[^#:\n;]+)/i, /^(?::[^#\n;]+)/i, /^(?::)/i, /^(?:$)/i, /^(?:.)/i],
347
- conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19], inclusive: !0 } }
348
- };
349
- return y;
350
- }();
351
- f.lexer = m;
352
- function g() {
353
- this.yy = {};
354
- }
355
- return s(g, "Parser"), g.prototype = f, f.Parser = g, new g();
356
- }();
357
- U.parser = U;
358
- var Ct = U, V = "", Q = [], D = [], L = [], Mt = /* @__PURE__ */ s(function() {
359
- Q.length = 0, D.length = 0, V = "", L.length = 0, Tt();
360
- }, "clear"), Et = /* @__PURE__ */ s(function(t) {
361
- V = t, Q.push(t);
362
- }, "addSection"), It = /* @__PURE__ */ s(function() {
363
- return Q;
364
- }, "getSections"), Pt = /* @__PURE__ */ s(function() {
365
- let t = et();
366
- const e = 100;
367
- let r = 0;
368
- for (; !t && r < e; )
369
- t = et(), r++;
370
- return D.push(...L), D;
371
- }, "getTasks"), At = /* @__PURE__ */ s(function() {
372
- const t = [];
373
- return D.forEach((e) => {
374
- e.people && t.push(...e.people);
375
- }), [...new Set(t)].sort();
376
- }, "updateActors"), jt = /* @__PURE__ */ s(function(t, e) {
377
- const r = e.substr(1).split(":");
378
- let l = 0, n = [];
379
- r.length === 1 ? (l = Number(r[0]), n = []) : (l = Number(r[0]), n = r[1].split(","));
380
- const c = n.map((h) => h.trim()), d = {
381
- section: V,
382
- type: V,
383
- people: c,
384
- task: t,
385
- score: l
386
- };
387
- L.push(d);
388
- }, "addTask"), Vt = /* @__PURE__ */ s(function(t) {
389
- const e = {
390
- section: V,
391
- type: V,
392
- description: t,
393
- task: t,
394
- classes: []
395
- };
396
- D.push(e);
397
- }, "addTaskOrg"), et = /* @__PURE__ */ s(function() {
398
- const t = /* @__PURE__ */ s(function(r) {
399
- return L[r].processed;
400
- }, "compileTask");
401
- let e = !0;
402
- for (const [r, l] of L.entries())
403
- t(r), e = e && l.processed;
404
- return e;
405
- }, "compileTasks"), Bt = /* @__PURE__ */ s(function() {
406
- return At();
407
- }, "getActors"), it = {
408
- getConfig: /* @__PURE__ */ s(() => B().journey, "getConfig"),
409
- clear: Mt,
410
- setDiagramTitle: vt,
411
- getDiagramTitle: $t,
412
- setAccTitle: wt,
413
- getAccTitle: bt,
414
- setAccDescription: _t,
415
- getAccDescription: kt,
416
- addSection: Et,
417
- getSections: It,
418
- getTasks: Pt,
419
- addTask: jt,
420
- addTaskOrg: Vt,
421
- getActors: Bt
422
- }, Dt = /* @__PURE__ */ s((t) => `.label {
423
- font-family: ${t.fontFamily};
424
- color: ${t.textColor};
425
- }
426
- .mouth {
427
- stroke: #666;
428
- }
429
-
430
- line {
431
- stroke: ${t.textColor}
432
- }
433
-
434
- .legend {
435
- fill: ${t.textColor};
436
- font-family: ${t.fontFamily};
437
- }
438
-
439
- .label text {
440
- fill: #333;
441
- }
442
- .label {
443
- color: ${t.textColor}
444
- }
445
-
446
- .face {
447
- ${t.faceColor ? `fill: ${t.faceColor}` : "fill: #FFF8DC"};
448
- stroke: #999;
449
- }
450
-
451
- .node rect,
452
- .node circle,
453
- .node ellipse,
454
- .node polygon,
455
- .node path {
456
- fill: ${t.mainBkg};
457
- stroke: ${t.nodeBorder};
458
- stroke-width: 1px;
459
- }
460
-
461
- .node .label {
462
- text-align: center;
463
- }
464
- .node.clickable {
465
- cursor: pointer;
466
- }
467
-
468
- .arrowheadPath {
469
- fill: ${t.arrowheadColor};
470
- }
471
-
472
- .edgePath .path {
473
- stroke: ${t.lineColor};
474
- stroke-width: 1.5px;
475
- }
476
-
477
- .flowchart-link {
478
- stroke: ${t.lineColor};
479
- fill: none;
480
- }
481
-
482
- .edgeLabel {
483
- background-color: ${t.edgeLabelBackground};
484
- rect {
485
- opacity: 0.5;
486
- }
487
- text-align: center;
488
- }
489
-
490
- .cluster rect {
491
- }
492
-
493
- .cluster text {
494
- fill: ${t.titleColor};
495
- }
496
-
497
- div.mermaidTooltip {
498
- position: absolute;
499
- text-align: center;
500
- max-width: 200px;
501
- padding: 2px;
502
- font-family: ${t.fontFamily};
503
- font-size: 12px;
504
- background: ${t.tertiaryColor};
505
- border: 1px solid ${t.border2};
506
- border-radius: 2px;
507
- pointer-events: none;
508
- z-index: 100;
509
- }
510
-
511
- .task-type-0, .section-type-0 {
512
- ${t.fillType0 ? `fill: ${t.fillType0}` : ""};
513
- }
514
- .task-type-1, .section-type-1 {
515
- ${t.fillType0 ? `fill: ${t.fillType1}` : ""};
516
- }
517
- .task-type-2, .section-type-2 {
518
- ${t.fillType0 ? `fill: ${t.fillType2}` : ""};
519
- }
520
- .task-type-3, .section-type-3 {
521
- ${t.fillType0 ? `fill: ${t.fillType3}` : ""};
522
- }
523
- .task-type-4, .section-type-4 {
524
- ${t.fillType0 ? `fill: ${t.fillType4}` : ""};
525
- }
526
- .task-type-5, .section-type-5 {
527
- ${t.fillType0 ? `fill: ${t.fillType5}` : ""};
528
- }
529
- .task-type-6, .section-type-6 {
530
- ${t.fillType0 ? `fill: ${t.fillType6}` : ""};
531
- }
532
- .task-type-7, .section-type-7 {
533
- ${t.fillType0 ? `fill: ${t.fillType7}` : ""};
534
- }
535
-
536
- .actor-0 {
537
- ${t.actor0 ? `fill: ${t.actor0}` : ""};
538
- }
539
- .actor-1 {
540
- ${t.actor1 ? `fill: ${t.actor1}` : ""};
541
- }
542
- .actor-2 {
543
- ${t.actor2 ? `fill: ${t.actor2}` : ""};
544
- }
545
- .actor-3 {
546
- ${t.actor3 ? `fill: ${t.actor3}` : ""};
547
- }
548
- .actor-4 {
549
- ${t.actor4 ? `fill: ${t.actor4}` : ""};
550
- }
551
- .actor-5 {
552
- ${t.actor5 ? `fill: ${t.actor5}` : ""};
553
- }
554
- ${xt()}
555
- `, "getStyles"), Lt = Dt, Z = /* @__PURE__ */ s(function(t, e) {
556
- return mt(t, e);
557
- }, "drawRect"), Rt = /* @__PURE__ */ s(function(t, e) {
558
- const r = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), l = t.append("g");
559
- l.append("circle").attr("cx", e.cx - 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), l.append("circle").attr("cx", e.cx + 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
560
- function n(h) {
561
- const f = tt().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
562
- h.append("path").attr("class", "mouth").attr("d", f).attr("transform", "translate(" + e.cx + "," + (e.cy + 2) + ")");
563
- }
564
- s(n, "smile");
565
- function c(h) {
566
- const f = tt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
567
- h.append("path").attr("class", "mouth").attr("d", f).attr("transform", "translate(" + e.cx + "," + (e.cy + 7) + ")");
568
- }
569
- s(c, "sad");
570
- function d(h) {
571
- h.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");
572
- }
573
- return s(d, "ambivalent"), e.score > 3 ? n(l) : e.score < 3 ? c(l) : d(l), r;
574
- }, "drawFace"), ot = /* @__PURE__ */ s(function(t, e) {
575
- const r = t.append("circle");
576
- return r.attr("cx", e.cx), r.attr("cy", e.cy), r.attr("class", "actor-" + e.pos), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("r", e.r), r.class !== void 0 && r.attr("class", r.class), e.title !== void 0 && r.append("title").text(e.title), r;
577
- }, "drawCircle"), lt = /* @__PURE__ */ s(function(t, e) {
578
- return gt(t, e);
579
- }, "drawText"), Ft = /* @__PURE__ */ s(function(t, e) {
580
- function r(n, c, d, h, f) {
581
- return n + "," + c + " " + (n + d) + "," + c + " " + (n + d) + "," + (c + h - f) + " " + (n + d - f * 1.2) + "," + (c + h) + " " + n + "," + (c + h);
582
- }
583
- s(r, "genPoints");
584
- const l = t.append("polygon");
585
- l.attr("points", r(e.x, e.y, 50, 20, 7)), l.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, lt(t, e);
586
- }, "drawLabel"), Ot = /* @__PURE__ */ s(function(t, e, r) {
587
- const l = t.append("g"), n = rt();
588
- n.x = e.x, n.y = e.y, n.fill = e.fill, n.width = r.width * e.taskCount + // width of the tasks
589
- r.diagramMarginX * (e.taskCount - 1), n.height = r.height, n.class = "journey-section section-type-" + e.num, n.rx = 3, n.ry = 3, Z(l, n), ct(r)(
590
- e.text,
591
- l,
592
- n.x,
593
- n.y,
594
- n.width,
595
- n.height,
596
- { class: "journey-section section-type-" + e.num },
597
- r,
598
- e.colour
599
- );
600
- }, "drawSection"), nt = -1, Nt = /* @__PURE__ */ s(function(t, e, r) {
601
- const l = e.x + r.width / 2, n = t.append("g");
602
- nt++, n.append("line").attr("id", "task" + nt).attr("x1", l).attr("y1", e.y).attr("x2", l).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Rt(n, {
603
- cx: l,
604
- cy: 300 + (5 - e.score) * 30,
605
- score: e.score
606
- });
607
- const c = rt();
608
- c.x = e.x, c.y = e.y, c.fill = e.fill, c.width = r.width, c.height = r.height, c.class = "task task-type-" + e.num, c.rx = 3, c.ry = 3, Z(n, c);
609
- let d = e.x + 14;
610
- e.people.forEach((h) => {
611
- const f = e.actors[h].color, m = {
612
- cx: d,
613
- cy: e.y,
614
- r: 7,
615
- fill: f,
616
- stroke: "#000",
617
- title: h,
618
- pos: e.actors[h].position
619
- };
620
- ot(n, m), d += 10;
621
- }), ct(r)(
622
- e.task,
623
- n,
624
- c.x,
625
- c.y,
626
- c.width,
627
- c.height,
628
- { class: "task" },
629
- r,
630
- e.colour
631
- );
632
- }, "drawTask"), zt = /* @__PURE__ */ s(function(t, e) {
633
- ft(t, e);
634
- }, "drawBackgroundRect"), ct = /* @__PURE__ */ function() {
635
- function t(n, c, d, h, f, m, g, y) {
636
- const i = c.append("text").attr("x", d + f / 2).attr("y", h + m / 2 + 5).style("font-color", y).style("text-anchor", "middle").text(n);
637
- l(i, g);
638
- }
639
- s(t, "byText");
640
- function e(n, c, d, h, f, m, g, y, i) {
641
- const { taskFontSize: a, taskFontFamily: u } = y, p = n.split(/<br\s*\/?>/gi);
642
- for (let o = 0; o < p.length; o++) {
643
- const x = o * a - a * (p.length - 1) / 2, k = c.append("text").attr("x", d + f / 2).attr("y", h).attr("fill", i).style("text-anchor", "middle").style("font-size", a).style("font-family", u);
644
- k.append("tspan").attr("x", d + f / 2).attr("dy", x).text(p[o]), k.attr("y", h + m / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(k, g);
645
- }
646
- }
647
- s(e, "byTspan");
648
- function r(n, c, d, h, f, m, g, y) {
649
- const i = c.append("switch"), a = i.append("foreignObject").attr("x", d).attr("y", h).attr("width", f).attr("height", m).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
650
- a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(n), e(n, i, d, h, f, m, g, y), l(a, g);
651
- }
652
- s(r, "byFo");
653
- function l(n, c) {
654
- for (const d in c)
655
- d in c && n.attr(d, c[d]);
656
- }
657
- return s(l, "_setTextAttrs"), function(n) {
658
- return n.textPlacement === "fo" ? r : n.textPlacement === "old" ? t : e;
659
- };
660
- }(), Yt = /* @__PURE__ */ s(function(t) {
661
- t.append("defs").append("marker").attr("id", "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");
662
- }, "initGraphics"), R = {
663
- drawRect: Z,
664
- drawCircle: ot,
665
- drawSection: Ot,
666
- drawText: lt,
667
- drawLabel: Ft,
668
- drawTask: Nt,
669
- drawBackgroundRect: zt,
670
- initGraphics: Yt
671
- }, Wt = /* @__PURE__ */ s(function(t) {
672
- Object.keys(t).forEach(function(e) {
673
- S[e] = t[e];
674
- });
675
- }, "setConf"), C = {}, N = 0;
676
- function ht(t) {
677
- const e = B().journey, r = e.maxLabelWidth;
678
- N = 0;
679
- let l = 60;
680
- Object.keys(C).forEach((n) => {
681
- const c = C[n].color, d = {
682
- cx: 20,
683
- cy: l,
684
- r: 7,
685
- fill: c,
686
- stroke: "#000",
687
- pos: C[n].position
688
- };
689
- R.drawCircle(t, d);
690
- let h = t.append("text").attr("visibility", "hidden").text(n);
691
- const f = h.node().getBoundingClientRect().width;
692
- h.remove();
693
- let m = [];
694
- if (f <= r)
695
- m = [n];
696
- else {
697
- const g = n.split(" ");
698
- let y = "";
699
- h = t.append("text").attr("visibility", "hidden"), g.forEach((i) => {
700
- const a = y ? `${y} ${i}` : i;
701
- if (h.text(a), h.node().getBoundingClientRect().width > r) {
702
- if (y && m.push(y), y = i, h.text(i), h.node().getBoundingClientRect().width > r) {
703
- let u = "";
704
- for (const p of i)
705
- u += p, h.text(u + "-"), h.node().getBoundingClientRect().width > r && (m.push(u.slice(0, -1) + "-"), u = p);
706
- y = u;
707
- }
708
- } else
709
- y = a;
710
- }), y && m.push(y), h.remove();
711
- }
712
- m.forEach((g, y) => {
713
- const i = {
714
- x: 40,
715
- y: l + 7 + y * 20,
716
- fill: "#666",
717
- text: g,
718
- textMargin: e.boxTextMargin ?? 5
719
- }, a = R.drawText(t, i).node().getBoundingClientRect().width;
720
- a > N && a > e.leftMargin - a && (N = a);
721
- }), l += Math.max(20, m.length * 20);
722
- });
723
- }
724
- s(ht, "drawActorLegend");
725
- var S = B().journey, M = 0, Gt = /* @__PURE__ */ s(function(t, e, r, l) {
726
- const n = B(), c = n.journey.titleColor, d = n.journey.titleFontSize, h = n.journey.titleFontFamily, f = n.securityLevel;
727
- let m;
728
- f === "sandbox" && (m = X("#i" + e));
729
- const g = f === "sandbox" ? X(m.nodes()[0].contentDocument.body) : X("body");
730
- v.init();
731
- const y = g.select("#" + e);
732
- R.initGraphics(y);
733
- const i = l.db.getTasks(), a = l.db.getDiagramTitle(), u = l.db.getActors();
734
- for (const A in C)
735
- delete C[A];
736
- let p = 0;
737
- u.forEach((A) => {
738
- C[A] = {
739
- color: S.actorColours[p % S.actorColours.length],
740
- position: p
741
- }, p++;
742
- }), ht(y), M = S.leftMargin + N, v.insert(0, 0, M, Object.keys(C).length * 50), Xt(y, i, 0);
743
- const o = v.getBounds();
744
- a && y.append("text").text(a).attr("x", M).attr("font-size", d).attr("font-weight", "bold").attr("y", 25).attr("fill", c).attr("font-family", h);
745
- const x = o.stopy - o.starty + 2 * S.diagramMarginY, k = M + o.stopx + 2 * S.diagramMarginX;
746
- St(y, x, k, S.useMaxWidth), y.append("line").attr("x1", M).attr("y1", S.height * 4).attr("x2", k - M - 4).attr("y2", S.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)");
747
- const E = a ? 70 : 0;
748
- y.attr("viewBox", `${o.startx} -25 ${k} ${x + E}`), y.attr("preserveAspectRatio", "xMinYMin meet"), y.attr("height", x + E + 25);
749
- }, "draw"), v = {
750
- data: {
751
- startx: void 0,
752
- stopx: void 0,
753
- starty: void 0,
754
- stopy: void 0
755
- },
756
- verticalPos: 0,
757
- sequenceItems: [],
758
- init: /* @__PURE__ */ s(function() {
759
- this.sequenceItems = [], this.data = {
760
- startx: void 0,
761
- stopx: void 0,
762
- starty: void 0,
763
- stopy: void 0
764
- }, this.verticalPos = 0;
765
- }, "init"),
766
- updateVal: /* @__PURE__ */ s(function(t, e, r, l) {
767
- t[e] === void 0 ? t[e] = r : t[e] = l(r, t[e]);
768
- }, "updateVal"),
769
- updateBounds: /* @__PURE__ */ s(function(t, e, r, l) {
770
- const n = B().journey, c = this;
771
- let d = 0;
772
- function h(f) {
773
- return /* @__PURE__ */ s(function(m) {
774
- d++;
775
- const g = c.sequenceItems.length - d + 1;
776
- c.updateVal(m, "starty", e - g * n.boxMargin, Math.min), c.updateVal(m, "stopy", l + g * n.boxMargin, Math.max), c.updateVal(v.data, "startx", t - g * n.boxMargin, Math.min), c.updateVal(v.data, "stopx", r + g * n.boxMargin, Math.max), f !== "activation" && (c.updateVal(m, "startx", t - g * n.boxMargin, Math.min), c.updateVal(m, "stopx", r + g * n.boxMargin, Math.max), c.updateVal(v.data, "starty", e - g * n.boxMargin, Math.min), c.updateVal(v.data, "stopy", l + g * n.boxMargin, Math.max));
777
- }, "updateItemBounds");
778
- }
779
- s(h, "updateFn"), this.sequenceItems.forEach(h());
780
- }, "updateBounds"),
781
- insert: /* @__PURE__ */ s(function(t, e, r, l) {
782
- const n = Math.min(t, r), c = Math.max(t, r), d = Math.min(e, l), h = Math.max(e, l);
783
- this.updateVal(v.data, "startx", n, Math.min), this.updateVal(v.data, "starty", d, Math.min), this.updateVal(v.data, "stopx", c, Math.max), this.updateVal(v.data, "stopy", h, Math.max), this.updateBounds(n, d, c, h);
784
- }, "insert"),
785
- bumpVerticalPos: /* @__PURE__ */ s(function(t) {
786
- this.verticalPos = this.verticalPos + t, this.data.stopy = this.verticalPos;
787
- }, "bumpVerticalPos"),
788
- getVerticalPos: /* @__PURE__ */ s(function() {
789
- return this.verticalPos;
790
- }, "getVerticalPos"),
791
- getBounds: /* @__PURE__ */ s(function() {
792
- return this.data;
793
- }, "getBounds")
794
- }, q = S.sectionFills, st = S.sectionColours, Xt = /* @__PURE__ */ s(function(t, e, r) {
795
- const l = B().journey;
796
- let n = "";
797
- const c = l.height * 2 + l.diagramMarginY, d = r + c;
798
- let h = 0, f = "#CCC", m = "black", g = 0;
799
- for (const [y, i] of e.entries()) {
800
- if (n !== i.section) {
801
- f = q[h % q.length], g = h % q.length, m = st[h % st.length];
802
- let u = 0;
803
- const p = i.section;
804
- for (let x = y; x < e.length && e[x].section == p; x++)
805
- u = u + 1;
806
- const o = {
807
- x: y * l.taskMargin + y * l.width + M,
808
- y: 50,
809
- text: i.section,
810
- fill: f,
811
- num: g,
812
- colour: m,
813
- taskCount: u
814
- };
815
- R.drawSection(t, o, l), n = i.section, h++;
816
- }
817
- const a = i.people.reduce((u, p) => (C[p] && (u[p] = C[p]), u), {});
818
- i.x = y * l.taskMargin + y * l.width + M, i.y = d, i.width = l.diagramMarginX, i.height = l.diagramMarginY, i.colour = m, i.fill = f, i.num = g, i.actors = a, R.drawTask(t, i, l), v.insert(i.x, i.y, i.x + i.width + l.taskMargin, 450);
819
- }
820
- }, "drawTasks"), at = {
821
- setConf: Wt,
822
- draw: Gt
823
- }, Jt = {
824
- parser: Ct,
825
- db: it,
826
- renderer: at,
827
- styles: Lt,
828
- init: /* @__PURE__ */ s((t) => {
829
- at.setConf(t.journey), it.clear();
830
- }, "init")
831
- };
832
- export {
833
- Jt as diagram
834
- };