@schmitech/chatbot-widget 0.6.3 → 0.7.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 (82) hide show
  1. package/dist/ChatWidget.d.ts +11 -0
  2. package/dist/{_baseUniq-BPMphbq5-xiRWQlDn.js → _baseUniq-BRKsqoH--HqBVqMpT.js} +126 -126
  3. package/dist/arc-pab_su9s-DkImmxyv.js +84 -0
  4. package/dist/architecture-U656AL7Q-CRlU-eNB-vFayp_Gk.js +7 -0
  5. package/dist/{architectureDiagram-VXUJARFQ-BiqZtsDe-rYpYn0Hz.js → architectureDiagram-VXUJARFQ-DqQ8r_6g-DTzMoAeY.js} +5 -5
  6. package/dist/{blockDiagram-VD42YOAC-zcRIdFTD-B54KiQJD.js → blockDiagram-VD42YOAC-B-dKfcH3-DKPGmrNb.js} +50 -50
  7. package/dist/{c4Diagram-YG6GDRKO-DYXNcDX4-B9fXQAMg.js → c4Diagram-YG6GDRKO-DMUPaBEl-CXjiCiKq.js} +63 -63
  8. package/dist/channel-HKsfPa5q-B30_3C0d.js +6 -0
  9. package/dist/chatbot-widget.bundle.js +11596 -0
  10. package/dist/chatbot-widget.es.js +1 -1
  11. package/dist/chatbot-widget.umd.js +4342 -3550
  12. package/dist/{chunk-4BX2VUAB-DAh9ktmY-CF6YTNXg.js → chunk-4BX2VUAB-CX67kh_B-JdLaNmBY.js} +1 -1
  13. package/dist/chunk-55IACEB6-BocSyyvr--btUJ1po.js +9 -0
  14. package/dist/{chunk-B4BG7PRW-BTUSpeKy-CXaYsx4a.js → chunk-B4BG7PRW-CO8QAyfE-p5mLBzD4.js} +30 -30
  15. package/dist/{chunk-DI55MBZ5-DKt4WII7-CjsnNRFb.js → chunk-DI55MBZ5-Dw1L6Eos-zQC2oI_e.js} +149 -149
  16. package/dist/{chunk-FMBD7UC4-DdcCR8w3-BbYkKjQZ.js → chunk-FMBD7UC4-dPK7Boav-C-fxYlU9.js} +1 -1
  17. package/dist/{chunk-QN33PNHL-v6AkzOl1-DrzKpDUJ.js → chunk-QN33PNHL-vP2PqfVG-ByquTp49.js} +5 -5
  18. package/dist/{chunk-QZHKN3VN-DVJOrqBZ-BQORk0pj.js → chunk-QZHKN3VN-Bcidzu63-ukwvi4Mt.js} +1 -1
  19. package/dist/{chunk-TZMSLE5B-G2jJHqli-B_BRSOS0.js → chunk-TZMSLE5B-BtljMjlg-DP4v1MME.js} +1 -1
  20. package/dist/{classDiagram-v2-WZHVMYZB-CxmgTanh-ByLirDpd.js → classDiagram-2ON5EDUG-C7cYN9hv-CtX4c_16.js} +2 -2
  21. package/dist/{classDiagram-2ON5EDUG-CxmgTanh-ByLirDpd.js → classDiagram-v2-WZHVMYZB-C7cYN9hv-CtX4c_16.js} +2 -2
  22. package/dist/{clone-CsNB4mMi-B2bGL_Hr.js → clone-DoPb9X13-BkFPVisk.js} +1 -1
  23. package/dist/config/index.d.ts +81 -0
  24. package/dist/{cose-bilkent-S5V4N54A-BRr2Y6dg-C4O3AMLV.js → cose-bilkent-S5V4N54A-BGzO4EsH-BNoSF82N.js} +1 -1
  25. package/dist/{dagre-6UL2VRFP-DX8gNHmJ-BSzSR8Xh.js → dagre-6UL2VRFP-TzNvXCds-Dnr2OGZv.js} +45 -45
  26. package/dist/{diagram-PSM6KHXK-DNX818To-D60Hp_rL.js → diagram-PSM6KHXK-BqY4RpUg-BAHxSfLA.js} +119 -119
  27. package/dist/{diagram-QEK2KX5R-BDO6hKtm-BHvRInjZ.js → diagram-QEK2KX5R-CTjgBsne-D-9APhrR.js} +74 -74
  28. package/dist/{diagram-S2PKOQOG-IEqaDwzi-CZZkmLuc.js → diagram-S2PKOQOG-BqrhTIpA-DvsAaFEx.js} +21 -21
  29. package/dist/{erDiagram-Q2GNP2WA-DbLpN8Jp-902zC-_U.js → erDiagram-Q2GNP2WA-B2hsi_Tl-CQQl2KTS.js} +24 -24
  30. package/dist/{flowDiagram-NV44I4VS-pJlHae8Y-hM8e9jah.js → flowDiagram-NV44I4VS-C03vtt_F-Ds5DxRz1.js} +37 -37
  31. package/dist/{ganttDiagram-JELNMOA3-J0Tkq5TR-C8n0Mtt1.js → ganttDiagram-JELNMOA3-B3hAg964-D9cHQTuZ.js} +110 -110
  32. package/dist/gitGraph-F6HP7TQM-B-XXB6PA-CXOJho2m.js +7 -0
  33. package/dist/{gitGraphDiagram-NY62KEGX-DgYonpsZ-CAVA4-Vo.js → gitGraphDiagram-NY62KEGX-ByhMH0yZ-DTWIR_Gp.js} +238 -238
  34. package/dist/{graph-BpcfrHXY-Dllj_YdG.js → graph-BmNkcFEM-CTJN7Ty_.js} +67 -67
  35. package/dist/hooks/useAnimationManagement.d.ts +16 -0
  36. package/dist/hooks/useInputManagement.d.ts +21 -0
  37. package/dist/hooks/useScrollManagement.d.ts +17 -0
  38. package/dist/index-BXexqYFc-Bn0M0HQB.js +13693 -0
  39. package/dist/{index-DlxA4QQ9.js → index-DU3Jqd59.js} +80142 -50172
  40. package/dist/index.d.ts +19 -0
  41. package/dist/info-NVLQJR56-BJV_yXNb-CH_hMh0K.js +7 -0
  42. package/dist/infoDiagram-WHAUD3N6-is6Ho4-T-E3qEjHYs.js +25 -0
  43. package/dist/{journeyDiagram-XKPGCS4Q-CfjB2Qdf-nD3bX36U.js → journeyDiagram-XKPGCS4Q-CRTOL26C-VvuJ7JPc.js} +71 -71
  44. package/dist/{kanban-definition-3W4ZIXB7-CrW8yVmd-C_Okjmcp.js → kanban-definition-3W4ZIXB7-CNnO_t6O-BsqhwZAY.js} +88 -88
  45. package/dist/{layout-bsfAhWjc-fb3F3QBs.js → layout-C0kZPebx-CrIgKtBd.js} +109 -109
  46. package/dist/{mermaid-parser.core-3GIbpcw--KxsyRnD0.js → mermaid-parser.core-C88_DDui-CHG6v5qB.js} +10 -10
  47. package/dist/min-7Gb0pNxh-Cd_K7Lpk.js +39 -0
  48. package/dist/{mindmap-definition-VGOIOE7T-Dj37RkY_-BXffQH_4.js → mindmap-definition-VGOIOE7T-CJZ2wTTa-D4yK-MK1.js} +40 -40
  49. package/dist/packet-BFZMPI3H-DPt2EftX-Bgsdgnv-.js +7 -0
  50. package/dist/pie-7BOR55EZ-aEOtXZZV-CT0TLfil.js +7 -0
  51. package/dist/{pieDiagram-ADFJNKIX-BiQvDx8I-DnApOdvY.js → pieDiagram-ADFJNKIX-C9OSknjr-DguaGmOm.js} +49 -49
  52. package/dist/{quadrantDiagram-AYHSOK5B-D4b-YFzI-DrTslixM.js → quadrantDiagram-AYHSOK5B-CW8yuAqv-Dp9c_xnT.js} +54 -54
  53. package/dist/radar-NHE76QYJ-Dv7iPziq-DzohugO5.js +7 -0
  54. package/dist/{requirementDiagram-UZGBJVZJ-km07nlVd-C-mMa1KG.js → requirementDiagram-UZGBJVZJ-nGPhruO1-DINXeP9u.js} +5 -5
  55. package/dist/{sankeyDiagram-TZEHDZUN-LfuSRRbf-4X6kl_ss.js → sankeyDiagram-TZEHDZUN-CmL90u-m-YTiy7xgb.js} +146 -146
  56. package/dist/{sequenceDiagram-WL72ISMW-CQ4J-0_7-CEQiE3WJ.js → sequenceDiagram-WL72ISMW-B02VRcnM-B0n6W8Zi.js} +3 -3
  57. package/dist/shared/styles.d.ts +76 -0
  58. package/dist/{stateDiagram-FKZM4ZOC-JtogJwt6-YmKguJGd.js → stateDiagram-FKZM4ZOC-DjoyLUdz-BEUNa8-U.js} +14 -14
  59. package/dist/{stateDiagram-v2-4FDKWEC3-DuQ7UaeU-D6r92VaJ.js → stateDiagram-v2-4FDKWEC3-Bq76BTB7-DJxNsvnB.js} +2 -2
  60. package/dist/store/chatStore.d.ts +19 -0
  61. package/dist/{timeline-definition-IT6M3QCI-Cs3NnF2M-BigQwSNM.js → timeline-definition-IT6M3QCI-CTn0Gm3T-sHrk-A3B.js} +78 -78
  62. package/dist/treemap-KMMF4GRG-BjgLKKyi-CXHyJ_sr.js +7 -0
  63. package/dist/ui/ChatInput.d.ts +17 -0
  64. package/dist/ui/Message.d.ts +22 -0
  65. package/dist/ui/MessagesList.d.ts +32 -0
  66. package/dist/utils/contentFiltering.d.ts +12 -0
  67. package/dist/utils/sessionManager.d.ts +2 -0
  68. package/dist/{xychartDiagram-PRI3JC2R-JzAaXa5z-k94imfkQ.js → xychartDiagram-PRI3JC2R-Cgg6Uija-BysdxdV7.js} +79 -79
  69. package/package.json +9 -9
  70. package/dist/arc-D9rhTKV0-3XdW6Lry.js +0 -84
  71. package/dist/architecture-U656AL7Q-BFNI3st4-ChEUjpe5.js +0 -6
  72. package/dist/channel-CUIutAfm-COC3Ib4R.js +0 -6
  73. package/dist/chunk-55IACEB6-Cza7pcpr-C1E53ZSc.js +0 -9
  74. package/dist/gitGraph-F6HP7TQM-CD3YuciB-WOZqeAgY.js +0 -6
  75. package/dist/index-DvNpGWs7-CTu7Fgm8.js +0 -13251
  76. package/dist/info-NVLQJR56-yPC6AWqF-CQWIUnLc.js +0 -6
  77. package/dist/infoDiagram-WHAUD3N6-C3JLOAnb-o3ipZ1gK.js +0 -25
  78. package/dist/min-C2aDz5ZK-NndI1eE7.js +0 -39
  79. package/dist/packet-BFZMPI3H-3ROFuof--C96yO55O.js +0 -6
  80. package/dist/pie-7BOR55EZ-BZ_QeD6P-Bs0c_r6N.js +0 -6
  81. package/dist/radar-NHE76QYJ-BkSncUeS-jHSdaVBc.js +0 -6
  82. package/dist/treemap-KMMF4GRG-CkW25-tn-CkfndsG5.js +0 -6
@@ -1,6 +1,6 @@
1
- import { M as ot, L as mp, k as gp } from "./min-C2aDz5ZK-NndI1eE7.js";
2
- import { Y as bu, q as Ua, Z as yp, B as vp, J as Tp, a as Rp } from "./_baseUniq-BPMphbq5-xiRWQlDn.js";
3
- import { bA as Ap } from "./index-DlxA4QQ9.js";
1
+ import { M as ot, L as mp, k as gp } from "./min-7Gb0pNxh-Cd_K7Lpk.js";
2
+ import { Y as bu, q as Ua, Z as yp, B as vp, J as Tp, a as Rp } from "./_baseUniq-BRKsqoH--HqBVqMpT.js";
3
+ import { bA as Ap } from "./index-DU3Jqd59.js";
4
4
  typeof window < "u" && (window.global = window);
5
5
  var At = {}, Ep = Object.defineProperty, $p = (t, e, r) => e in t ? Ep(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Gt = (t, e, r) => $p(t, typeof e != "symbol" ? e + "" : e, r);
6
6
  function kp(t, e) {
@@ -15037,31 +15037,31 @@ function j0(t = Dt) {
15037
15037
  E(j0, "createTreemapServices");
15038
15038
  var it = {}, U0 = {
15039
15039
  info: /* @__PURE__ */ E(async () => {
15040
- const { createInfoServices: t } = await import("./info-NVLQJR56-yPC6AWqF-CQWIUnLc.js"), e = t().Info.parser.LangiumParser;
15040
+ const { createInfoServices: t } = await import("./info-NVLQJR56-BJV_yXNb-CH_hMh0K.js"), e = t().Info.parser.LangiumParser;
15041
15041
  it.info = e;
15042
15042
  }, "info"),
15043
15043
  packet: /* @__PURE__ */ E(async () => {
15044
- const { createPacketServices: t } = await import("./packet-BFZMPI3H-3ROFuof--C96yO55O.js"), e = t().Packet.parser.LangiumParser;
15044
+ const { createPacketServices: t } = await import("./packet-BFZMPI3H-DPt2EftX-Bgsdgnv-.js"), e = t().Packet.parser.LangiumParser;
15045
15045
  it.packet = e;
15046
15046
  }, "packet"),
15047
15047
  pie: /* @__PURE__ */ E(async () => {
15048
- const { createPieServices: t } = await import("./pie-7BOR55EZ-BZ_QeD6P-Bs0c_r6N.js"), e = t().Pie.parser.LangiumParser;
15048
+ const { createPieServices: t } = await import("./pie-7BOR55EZ-aEOtXZZV-CT0TLfil.js"), e = t().Pie.parser.LangiumParser;
15049
15049
  it.pie = e;
15050
15050
  }, "pie"),
15051
15051
  architecture: /* @__PURE__ */ E(async () => {
15052
- const { createArchitectureServices: t } = await import("./architecture-U656AL7Q-BFNI3st4-ChEUjpe5.js"), e = t().Architecture.parser.LangiumParser;
15052
+ const { createArchitectureServices: t } = await import("./architecture-U656AL7Q-CRlU-eNB-vFayp_Gk.js"), e = t().Architecture.parser.LangiumParser;
15053
15053
  it.architecture = e;
15054
15054
  }, "architecture"),
15055
15055
  gitGraph: /* @__PURE__ */ E(async () => {
15056
- const { createGitGraphServices: t } = await import("./gitGraph-F6HP7TQM-CD3YuciB-WOZqeAgY.js"), e = t().GitGraph.parser.LangiumParser;
15056
+ const { createGitGraphServices: t } = await import("./gitGraph-F6HP7TQM-B-XXB6PA-CXOJho2m.js"), e = t().GitGraph.parser.LangiumParser;
15057
15057
  it.gitGraph = e;
15058
15058
  }, "gitGraph"),
15059
15059
  radar: /* @__PURE__ */ E(async () => {
15060
- const { createRadarServices: t } = await import("./radar-NHE76QYJ-BkSncUeS-jHSdaVBc.js"), e = t().Radar.parser.LangiumParser;
15060
+ const { createRadarServices: t } = await import("./radar-NHE76QYJ-Dv7iPziq-DzohugO5.js"), e = t().Radar.parser.LangiumParser;
15061
15061
  it.radar = e;
15062
15062
  }, "radar"),
15063
15063
  treemap: /* @__PURE__ */ E(async () => {
15064
- const { createTreemapServices: t } = await import("./treemap-KMMF4GRG-CkW25-tn-CkfndsG5.js"), e = t().Treemap.parser.LangiumParser;
15064
+ const { createTreemapServices: t } = await import("./treemap-KMMF4GRG-BjgLKKyi-CXHyJ_sr.js"), e = t().Treemap.parser.LangiumParser;
15065
15065
  it.treemap = e;
15066
15066
  }, "treemap")
15067
15067
  };
@@ -0,0 +1,39 @@
1
+ import { a as l, v as s, g as e, B as d, x as c } from "./_baseUniq-BRKsqoH--HqBVqMpT.js";
2
+ import { aK as g, aS as w, aL as h } from "./index-DU3Jqd59.js";
3
+ typeof window < "u" && (window.global = window);
4
+ function A(n) {
5
+ var r = n == null ? 0 : n.length;
6
+ return r ? d(n) : [];
7
+ }
8
+ function m(n, r) {
9
+ var o = -1, i = w(n) ? Array(n.length) : [];
10
+ return e(n, function(f, u, t) {
11
+ i[++o] = r(f, u, t);
12
+ }), i;
13
+ }
14
+ function B(n, r) {
15
+ var o = g(n) ? s : m;
16
+ return o(n, l(r));
17
+ }
18
+ function p(n, r) {
19
+ return n < r;
20
+ }
21
+ function x(n, r, o) {
22
+ for (var i = -1, f = n.length; ++i < f; ) {
23
+ var u = n[i], t = r(u);
24
+ if (t != null && (a === void 0 ? t === t && !c(t) : o(t, a)))
25
+ var a = t, v = u;
26
+ }
27
+ return v;
28
+ }
29
+ function L(n) {
30
+ return n && n.length ? x(n, h, p) : void 0;
31
+ }
32
+ export {
33
+ x as A,
34
+ A as L,
35
+ B as M,
36
+ L as k,
37
+ m as v,
38
+ p as x
39
+ };
@@ -1,6 +1,6 @@
1
- import { d as ce } from "./chunk-55IACEB6-Cza7pcpr-C1E53ZSc.js";
2
- import { d as he } from "./chunk-QN33PNHL-v6AkzOl1-DrzKpDUJ.js";
3
- import { Q as a, s as I, r as le, u as de, T as M, k as X, Y as P, bc as ge, aX as ue, aY as pe, aZ as ye } from "./index-DlxA4QQ9.js";
1
+ import { d as ce } from "./chunk-55IACEB6-BocSyyvr--btUJ1po.js";
2
+ import { d as he } from "./chunk-QN33PNHL-vP2PqfVG-ByquTp49.js";
3
+ import { M as a, a as I, p as le, q as de, _ as M, C as X, j as P, bc as ge, aX as ue, aY as pe, aZ as ye } from "./index-DU3Jqd59.js";
4
4
  typeof window < "u" && (window.global = window);
5
5
  const m = [];
6
6
  for (let e = 0; e < 256; ++e)
@@ -8,39 +8,39 @@ for (let e = 0; e < 256; ++e)
8
8
  function fe(e, s = 0) {
9
9
  return (m[e[s + 0]] + m[e[s + 1]] + m[e[s + 2]] + m[e[s + 3]] + "-" + m[e[s + 4]] + m[e[s + 5]] + "-" + m[e[s + 6]] + m[e[s + 7]] + "-" + m[e[s + 8]] + m[e[s + 9]] + "-" + m[e[s + 10]] + m[e[s + 11]] + m[e[s + 12]] + m[e[s + 13]] + m[e[s + 14]] + m[e[s + 15]]).toLowerCase();
10
10
  }
11
- let Y;
11
+ let W;
12
12
  const me = new Uint8Array(16);
13
- function Ee() {
14
- if (!Y) {
13
+ function _e() {
14
+ if (!W) {
15
15
  if (typeof crypto > "u" || !crypto.getRandomValues)
16
16
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
17
- Y = crypto.getRandomValues.bind(crypto);
17
+ W = crypto.getRandomValues.bind(crypto);
18
18
  }
19
- return Y(me);
19
+ return W(me);
20
20
  }
21
- const _e = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ne = { randomUUID: _e };
21
+ const Ee = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ne = { randomUUID: Ee };
22
22
  function be(e, s, i) {
23
23
  var c;
24
24
  if (ne.randomUUID && !e)
25
25
  return ne.randomUUID();
26
26
  e = e || {};
27
- const h = e.random ?? ((c = e.rng) == null ? void 0 : c.call(e)) ?? Ee();
27
+ const h = e.random ?? ((c = e.rng) == null ? void 0 : c.call(e)) ?? _e();
28
28
  if (h.length < 16)
29
29
  throw new Error("Random bytes length must be >= 16");
30
30
  return h[6] = h[6] & 15 | 64, h[8] = h[8] & 63 | 128, fe(h);
31
31
  }
32
- var J = function() {
32
+ var q = function() {
33
33
  var e = /* @__PURE__ */ a(function(S, t, r, o) {
34
34
  for (r = r || {}, o = S.length; o--; r[S[o]] = t) ;
35
35
  return r;
36
- }, "o"), s = [1, 4], i = [1, 13], c = [1, 12], h = [1, 15], y = [1, 16], u = [1, 20], g = [1, 19], L = [6, 7, 8], p = [1, 26], C = [1, 24], z = [1, 25], b = [6, 7, 11], Q = [1, 6, 13, 15, 16, 19, 22], Z = [1, 33], q = [1, 34], w = [1, 6, 7, 11, 13, 15, 16, 19, 22], B = {
36
+ }, "o"), s = [1, 4], i = [1, 13], c = [1, 12], h = [1, 15], y = [1, 16], u = [1, 20], g = [1, 19], L = [6, 7, 8], p = [1, 26], C = [1, 24], z = [1, 25], b = [6, 7, 11], J = [1, 6, 13, 15, 16, 19, 22], Z = [1, 33], K = [1, 34], w = [1, 6, 7, 11, 13, 15, 16, 19, 22], B = {
37
37
  trace: /* @__PURE__ */ a(function() {
38
38
  }, "trace"),
39
39
  yy: {},
40
40
  symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, MINDMAP: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, ICON: 15, CLASS: 16, nodeWithId: 17, nodeWithoutId: 18, NODE_DSTART: 19, NODE_DESCR: 20, NODE_DEND: 21, NODE_ID: 22, $accept: 0, $end: 1 },
41
41
  terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
42
42
  productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
43
- performAction: /* @__PURE__ */ a(function(S, t, r, o, l, n, E) {
43
+ performAction: /* @__PURE__ */ a(function(S, t, r, o, l, n, _) {
44
44
  var d = n.length - 1;
45
45
  switch (l) {
46
46
  case 6:
@@ -88,7 +88,7 @@ var J = function() {
88
88
  break;
89
89
  }
90
90
  }, "anonymous"),
91
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: s }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: s }, { 6: i, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15: h, 16: y, 17: 17, 18: 18, 19: u, 22: g }, e(L, [2, 3]), { 1: [2, 2] }, e(L, [2, 4]), e(L, [2, 5]), { 1: [2, 6], 6: i, 12: 21, 13: c, 14: 14, 15: h, 16: y, 17: 17, 18: 18, 19: u, 22: g }, { 6: i, 9: 22, 12: 11, 13: c, 14: 14, 15: h, 16: y, 17: 17, 18: 18, 19: u, 22: g }, { 6: p, 7: C, 10: 23, 11: z }, e(b, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: u, 22: g }), e(b, [2, 18]), e(b, [2, 19]), e(b, [2, 20]), e(b, [2, 21]), e(b, [2, 23]), e(b, [2, 24]), e(b, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: p, 7: C, 10: 32, 11: z }, { 1: [2, 7], 6: i, 12: 21, 13: c, 14: 14, 15: h, 16: y, 17: 17, 18: 18, 19: u, 22: g }, e(Q, [2, 14], { 7: Z, 11: q }), e(w, [2, 8]), e(w, [2, 9]), e(w, [2, 10]), e(b, [2, 15]), e(b, [2, 16]), e(b, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, e(Q, [2, 13], { 7: Z, 11: q }), e(w, [2, 11]), e(w, [2, 12]), { 21: [1, 37] }, e(b, [2, 25]), e(b, [2, 27])],
91
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: s }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: s }, { 6: i, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15: h, 16: y, 17: 17, 18: 18, 19: u, 22: g }, e(L, [2, 3]), { 1: [2, 2] }, e(L, [2, 4]), e(L, [2, 5]), { 1: [2, 6], 6: i, 12: 21, 13: c, 14: 14, 15: h, 16: y, 17: 17, 18: 18, 19: u, 22: g }, { 6: i, 9: 22, 12: 11, 13: c, 14: 14, 15: h, 16: y, 17: 17, 18: 18, 19: u, 22: g }, { 6: p, 7: C, 10: 23, 11: z }, e(b, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: u, 22: g }), e(b, [2, 18]), e(b, [2, 19]), e(b, [2, 20]), e(b, [2, 21]), e(b, [2, 23]), e(b, [2, 24]), e(b, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: p, 7: C, 10: 32, 11: z }, { 1: [2, 7], 6: i, 12: 21, 13: c, 14: 14, 15: h, 16: y, 17: 17, 18: 18, 19: u, 22: g }, e(J, [2, 14], { 7: Z, 11: K }), e(w, [2, 8]), e(w, [2, 9]), e(w, [2, 10]), e(b, [2, 15]), e(b, [2, 16]), e(b, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, e(J, [2, 13], { 7: Z, 11: K }), e(w, [2, 11]), e(w, [2, 12]), { 21: [1, 37] }, e(b, [2, 25]), e(b, [2, 27])],
92
92
  defaultActions: { 2: [2, 1], 6: [2, 2] },
93
93
  parseError: /* @__PURE__ */ a(function(S, t) {
94
94
  if (t.recoverable)
@@ -99,14 +99,14 @@ var J = function() {
99
99
  }
100
100
  }, "parseError"),
101
101
  parse: /* @__PURE__ */ a(function(S) {
102
- var t = this, r = [0], o = [], l = [null], n = [], E = this.table, d = "", A = 0, K = 0, se = 2, V = 1, re = n.slice.call(arguments, 1), f = Object.create(this.lexer), T = { yy: {} };
102
+ var t = this, r = [0], o = [], l = [null], n = [], _ = this.table, d = "", A = 0, Q = 0, se = 2, V = 1, re = n.slice.call(arguments, 1), f = Object.create(this.lexer), x = { yy: {} };
103
103
  for (var j in this.yy)
104
- Object.prototype.hasOwnProperty.call(this.yy, j) && (T.yy[j] = this.yy[j]);
105
- f.setInput(S, T.yy), T.yy.lexer = f, T.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
104
+ Object.prototype.hasOwnProperty.call(this.yy, j) && (x.yy[j] = this.yy[j]);
105
+ f.setInput(S, x.yy), x.yy.lexer = f, x.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
106
106
  var F = f.yylloc;
107
107
  n.push(F);
108
108
  var oe = f.options && f.options.ranges;
109
- typeof T.yy.parseError == "function" ? this.parseError = T.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
109
+ typeof x.yy.parseError == "function" ? this.parseError = x.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
110
110
  function ae(N) {
111
111
  r.length = r.length - 2 * N, l.length = l.length - N, n.length = n.length - N;
112
112
  }
@@ -116,27 +116,27 @@ var J = function() {
116
116
  return N = o.pop() || f.lex() || V, typeof N != "number" && (N instanceof Array && (o = N, N = o.pop()), N = t.symbols_[N] || N), N;
117
117
  }
118
118
  a(ee, "lex");
119
- for (var _, x, D, G, O = {}, $, k, te, U; ; ) {
120
- if (x = r[r.length - 1], this.defaultActions[x] ? D = this.defaultActions[x] : ((_ === null || typeof _ > "u") && (_ = ee()), D = E[x] && E[x][_]), typeof D > "u" || !D.length || !D[0]) {
119
+ for (var E, T, D, G, O = {}, $, k, te, U; ; ) {
120
+ if (T = r[r.length - 1], this.defaultActions[T] ? D = this.defaultActions[T] : ((E === null || typeof E > "u") && (E = ee()), D = _[T] && _[T][E]), typeof D > "u" || !D.length || !D[0]) {
121
121
  var H = "";
122
122
  U = [];
123
- for ($ in E[x])
123
+ for ($ in _[T])
124
124
  this.terminals_[$] && $ > se && U.push("'" + this.terminals_[$] + "'");
125
125
  f.showPosition ? H = "Parse error on line " + (A + 1) + `:
126
126
  ` + f.showPosition() + `
127
- Expecting ` + U.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : H = "Parse error on line " + (A + 1) + ": Unexpected " + (_ == V ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(H, {
127
+ Expecting ` + U.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : H = "Parse error on line " + (A + 1) + ": Unexpected " + (E == V ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(H, {
128
128
  text: f.match,
129
- token: this.terminals_[_] || _,
129
+ token: this.terminals_[E] || E,
130
130
  line: f.yylineno,
131
131
  loc: F,
132
132
  expected: U
133
133
  });
134
134
  }
135
135
  if (D[0] instanceof Array && D.length > 1)
136
- throw new Error("Parse Error: multiple actions possible at state: " + x + ", token: " + _);
136
+ throw new Error("Parse Error: multiple actions possible at state: " + T + ", token: " + E);
137
137
  switch (D[0]) {
138
138
  case 1:
139
- r.push(_), l.push(f.yytext), n.push(f.yylloc), r.push(D[1]), _ = null, K = f.yyleng, d = f.yytext, A = f.yylineno, F = f.yylloc;
139
+ r.push(E), l.push(f.yytext), n.push(f.yylloc), r.push(D[1]), E = null, Q = f.yyleng, d = f.yytext, A = f.yylineno, F = f.yylloc;
140
140
  break;
141
141
  case 2:
142
142
  if (k = this.productions_[D[1]][1], O.$ = l[l.length - k], O._$ = {
@@ -149,15 +149,15 @@ Expecting ` + U.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : H = "
149
149
  n[n.length - 1].range[1]
150
150
  ]), G = this.performAction.apply(O, [
151
151
  d,
152
- K,
152
+ Q,
153
153
  A,
154
- T.yy,
154
+ x.yy,
155
155
  D[1],
156
156
  l,
157
157
  n
158
158
  ].concat(re)), typeof G < "u")
159
159
  return G;
160
- k && (r = r.slice(0, -1 * k * 2), l = l.slice(0, -1 * k), n = n.slice(0, -1 * k)), r.push(this.productions_[D[1]][0]), l.push(O.$), n.push(O._$), te = E[r[r.length - 2]][r[r.length - 1]], r.push(te);
160
+ k && (r = r.slice(0, -1 * k * 2), l = l.slice(0, -1 * k), n = n.slice(0, -1 * k)), r.push(this.productions_[D[1]][0]), l.push(O.$), n.push(O._$), te = _[r[r.length - 2]][r[r.length - 1]], r.push(te);
161
161
  break;
162
162
  case 3:
163
163
  return !0;
@@ -271,8 +271,8 @@ Expecting ` + U.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : H = "
271
271
  }, 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], o = this.performAction.call(this, this.yy, this, r, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
272
272
  return o;
273
273
  if (this._backtrack) {
274
- for (var E in n)
275
- this[E] = n[E];
274
+ for (var _ in n)
275
+ this[_] = n[_];
276
276
  return !1;
277
277
  }
278
278
  return !1;
@@ -284,10 +284,10 @@ Expecting ` + U.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : H = "
284
284
  this._input || (this.done = !0);
285
285
  var t, r, o, l;
286
286
  this._more || (this.yytext = "", this.match = "");
287
- for (var n = this._currentRules(), E = 0; E < n.length; E++)
288
- if (o = this._input.match(this.rules[n[E]]), o && (!r || o[0].length > r[0].length)) {
289
- if (r = o, l = E, this.options.backtrack_lexer) {
290
- if (t = this.test_match(o, n[E]), t !== !1)
287
+ for (var n = this._currentRules(), _ = 0; _ < n.length; _++)
288
+ if (o = this._input.match(this.rules[n[_]]), o && (!r || o[0].length > r[0].length)) {
289
+ if (r = o, l = _, this.options.backtrack_lexer) {
290
+ if (t = this.test_match(o, n[_]), t !== !1)
291
291
  return t;
292
292
  if (this._backtrack) {
293
293
  r = !1;
@@ -432,8 +432,8 @@ Expecting ` + U.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : H = "
432
432
  }
433
433
  return a(R, "Parser"), R.prototype = B, B.Parser = R, new R();
434
434
  }();
435
- J.parser = J;
436
- var Ne = J, v = {
435
+ q.parser = q;
436
+ var Ne = q, v = {
437
437
  DEFAULT: 0,
438
438
  NO_BORDER: 0,
439
439
  ROUNDED_RECT: 1,
@@ -442,7 +442,7 @@ var Ne = J, v = {
442
442
  CLOUD: 4,
443
443
  BANG: 5,
444
444
  HEXAGON: 6
445
- }, W, De = (W = class {
445
+ }, Y, De = (Y = class {
446
446
  constructor() {
447
447
  this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = v, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
448
448
  }
@@ -687,7 +687,7 @@ var Ne = J, v = {
687
687
  getLogger() {
688
688
  return I;
689
689
  }
690
- }, a(W, "MindmapDB"), W), Se = /* @__PURE__ */ a(async (e, s, i, c) => {
690
+ }, a(Y, "MindmapDB"), Y), Se = /* @__PURE__ */ a(async (e, s, i, c) => {
691
691
  var h, y;
692
692
  I.debug(`Rendering mindmap diagram
693
693
  ` + e);
@@ -774,13 +774,13 @@ var Ne = J, v = {
774
774
  dominant-baseline: middle;
775
775
  text-align: center;
776
776
  }
777
- `, "getStyles"), Te = ve, Ce = {
777
+ `, "getStyles"), xe = ve, Ce = {
778
778
  get db() {
779
779
  return new De();
780
780
  },
781
781
  renderer: Le,
782
782
  parser: Ne,
783
- styles: Te
783
+ styles: xe
784
784
  };
785
785
  export {
786
786
  Ce as diagram
@@ -0,0 +1,7 @@
1
+ import { E as o } from "./mermaid-parser.core-C88_DDui-CHG6v5qB.js";
2
+ import { A as r } from "./mermaid-parser.core-C88_DDui-CHG6v5qB.js";
3
+ typeof window < "u" && (window.global = window);
4
+ export {
5
+ r as PacketModule,
6
+ o as createPacketServices
7
+ };
@@ -0,0 +1,7 @@
1
+ import { w as o } from "./mermaid-parser.core-C88_DDui-CHG6v5qB.js";
2
+ import { I as r } from "./mermaid-parser.core-C88_DDui-CHG6v5qB.js";
3
+ typeof window < "u" && (window.global = window);
4
+ export {
5
+ r as PieModule,
6
+ o as createPieServices
7
+ };
@@ -1,7 +1,7 @@
1
- import { Q as p, p as q, e as G, h as Q, B as Y, E as _, v as H, s as E, k as I, X as K, al as Z, an as ee, ao as te, f as ae, F as ne, T as ie, ap as x, aq as re, ar as z } from "./index-DlxA4QQ9.js";
2
- import { m as le } from "./chunk-4BX2VUAB-DAh9ktmY-CF6YTNXg.js";
3
- import { j as se } from "./mermaid-parser.core-3GIbpcw--KxsyRnD0.js";
4
- import { h as J } from "./arc-D9rhTKV0-3XdW6Lry.js";
1
+ import { f as Y, e as q, g as J, h as K, t as H, s as I, M as p, a as z, C as Q, K as X, al as Z, an as ee, ao as te, i as ae, N as ne, _ as ie, ap as x, aq as re, ar as N } from "./index-DU3Jqd59.js";
2
+ import { m as le } from "./chunk-4BX2VUAB-CX67kh_B-JdLaNmBY.js";
3
+ import { j as se } from "./mermaid-parser.core-C88_DDui-CHG6v5qB.js";
4
+ import { h as E } from "./arc-pab_su9s-DkImmxyv.js";
5
5
  typeof window < "u" && (window.global = window);
6
6
  function oe(e, a) {
7
7
  return a < e ? -1 : a > e ? 1 : a >= e ? 0 : NaN;
@@ -10,23 +10,23 @@ function ce(e) {
10
10
  return e;
11
11
  }
12
12
  function ue() {
13
- var e = ce, a = oe, g = null, s = x(0), o = x(z), y = x(0);
13
+ var e = ce, a = oe, g = null, s = x(0), o = x(N), y = x(0);
14
14
  function l(t) {
15
- var i, c = (t = re(t)).length, d, v, w = 0, u = new Array(c), r = new Array(c), h = +s.apply(this, arguments), $ = Math.min(z, Math.max(-z, o.apply(this, arguments) - h)), m, T = Math.min(Math.abs($) / c, y.apply(this, arguments)), b = T * ($ < 0 ? -1 : 1), f;
15
+ var i, c = (t = re(t)).length, d, v, w = 0, u = new Array(c), r = new Array(c), h = +s.apply(this, arguments), S = Math.min(N, Math.max(-N, o.apply(this, arguments) - h)), m, A = Math.min(Math.abs(S) / c, y.apply(this, arguments)), C = A * (S < 0 ? -1 : 1), f;
16
16
  for (i = 0; i < c; ++i)
17
17
  (f = r[u[i] = i] = +e(t[i], i, t)) > 0 && (w += f);
18
- for (a != null ? u.sort(function(S, A) {
19
- return a(r[S], r[A]);
20
- }) : g != null && u.sort(function(S, A) {
21
- return g(t[S], t[A]);
22
- }), i = 0, v = w ? ($ - c * b) / w : 0; i < c; ++i, h = m)
23
- d = u[i], f = r[d], m = h + (f > 0 ? f * v : 0) + b, r[d] = {
18
+ for (a != null ? u.sort(function($, b) {
19
+ return a(r[$], r[b]);
20
+ }) : g != null && u.sort(function($, b) {
21
+ return g(t[$], t[b]);
22
+ }), i = 0, v = w ? (S - c * C) / w : 0; i < c; ++i, h = m)
23
+ d = u[i], f = r[d], m = h + (f > 0 ? f * v : 0) + C, r[d] = {
24
24
  data: t[d],
25
25
  index: i,
26
26
  value: f,
27
27
  startAngle: h,
28
28
  endAngle: m,
29
- padAngle: T
29
+ padAngle: A
30
30
  };
31
31
  return r;
32
32
  }
@@ -44,28 +44,28 @@ function ue() {
44
44
  return arguments.length ? (y = typeof t == "function" ? t : x(+t), l) : y;
45
45
  }, l;
46
46
  }
47
- var pe = ie.pie, F = {
47
+ var pe = ie.pie, R = {
48
48
  sections: /* @__PURE__ */ new Map(),
49
49
  showData: !1
50
- }, C = F.sections, N = F.showData, de = structuredClone(pe), fe = /* @__PURE__ */ p(() => structuredClone(de), "getConfig"), ge = /* @__PURE__ */ p(() => {
51
- C = /* @__PURE__ */ new Map(), N = F.showData, ne();
50
+ }, D = R.sections, F = R.showData, de = structuredClone(pe), fe = /* @__PURE__ */ p(() => structuredClone(de), "getConfig"), ge = /* @__PURE__ */ p(() => {
51
+ D = /* @__PURE__ */ new Map(), F = R.showData, ne();
52
52
  }, "clear"), he = /* @__PURE__ */ p(({ label: e, value: a }) => {
53
53
  if (a < 0)
54
54
  throw new Error(
55
55
  `"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`
56
56
  );
57
- C.has(e) || (C.set(e, a), E.debug(`added new section: ${e}, with value: ${a}`));
58
- }, "addSection"), me = /* @__PURE__ */ p(() => C, "getSections"), we = /* @__PURE__ */ p((e) => {
59
- N = e;
60
- }, "setShowData"), xe = /* @__PURE__ */ p(() => N, "getShowData"), L = {
57
+ D.has(e) || (D.set(e, a), z.debug(`added new section: ${e}, with value: ${a}`));
58
+ }, "addSection"), me = /* @__PURE__ */ p(() => D, "getSections"), we = /* @__PURE__ */ p((e) => {
59
+ F = e;
60
+ }, "setShowData"), xe = /* @__PURE__ */ p(() => F, "getShowData"), P = {
61
61
  getConfig: fe,
62
62
  clear: ge,
63
- setDiagramTitle: H,
64
- getDiagramTitle: _,
65
- setAccTitle: Y,
66
- getAccTitle: Q,
67
- setAccDescription: G,
68
- getAccDescription: q,
63
+ setDiagramTitle: I,
64
+ getDiagramTitle: H,
65
+ setAccTitle: K,
66
+ getAccTitle: J,
67
+ setAccDescription: q,
68
+ getAccDescription: Y,
69
69
  addSection: he,
70
70
  getSections: me,
71
71
  setShowData: we,
@@ -75,9 +75,9 @@ var pe = ie.pie, F = {
75
75
  }, "populateDb"), ve = {
76
76
  parse: /* @__PURE__ */ p(async (e) => {
77
77
  const a = await se("pie", e);
78
- E.debug(a), ye(a, L);
78
+ z.debug(a), ye(a, P);
79
79
  }, "parse")
80
- }, $e = /* @__PURE__ */ p((e) => `
80
+ }, Se = /* @__PURE__ */ p((e) => `
81
81
  .pieCircle{
82
82
  stroke: ${e.pieStrokeColor};
83
83
  stroke-width : ${e.pieStrokeWidth};
@@ -105,20 +105,20 @@ var pe = ie.pie, F = {
105
105
  font-family: ${e.fontFamily};
106
106
  font-size: ${e.pieLegendTextSize};
107
107
  }
108
- `, "getStyles"), Se = $e, Ae = /* @__PURE__ */ p((e) => {
108
+ `, "getStyles"), $e = Se, be = /* @__PURE__ */ p((e) => {
109
109
  const a = [...e.values()].reduce((s, o) => s + o, 0), g = [...e.entries()].map(([s, o]) => ({ label: s, value: o })).filter((s) => s.value / a * 100 >= 1).sort((s, o) => o.value - s.value);
110
110
  return ue().value((s) => s.value)(g);
111
- }, "createPieArcs"), Te = /* @__PURE__ */ p((e, a, g, s) => {
112
- E.debug(`rendering pie chart
111
+ }, "createPieArcs"), Ae = /* @__PURE__ */ p((e, a, g, s) => {
112
+ z.debug(`rendering pie chart
113
113
  ` + e);
114
- const o = s.db, y = I(), l = K(o.getConfig(), y.pie), t = 40, i = 18, c = 4, d = 450, v = d, w = Z(a), u = w.append("g");
114
+ const o = s.db, y = Q(), l = X(o.getConfig(), y.pie), t = 40, i = 18, c = 4, d = 450, v = d, w = Z(a), u = w.append("g");
115
115
  u.attr("transform", "translate(" + v / 2 + "," + d / 2 + ")");
116
116
  const { themeVariables: r } = y;
117
117
  let [h] = ee(r.pieOuterStrokeWidth);
118
118
  h ?? (h = 2);
119
- const $ = l.textPosition, m = Math.min(v, d) / 2 - t, T = J().innerRadius(0).outerRadius(m), b = J().innerRadius(m * $).outerRadius(m * $);
119
+ const S = l.textPosition, m = Math.min(v, d) / 2 - t, A = E().innerRadius(0).outerRadius(m), C = E().innerRadius(m * S).outerRadius(m * S);
120
120
  u.append("circle").attr("cx", 0).attr("cy", 0).attr("r", m + h / 2).attr("class", "pieOuterCircle");
121
- const f = o.getSections(), S = Ae(f), A = [
121
+ const f = o.getSections(), $ = be(f), b = [
122
122
  r.pie1,
123
123
  r.pie2,
124
124
  r.pie3,
@@ -132,29 +132,29 @@ var pe = ie.pie, F = {
132
132
  r.pie11,
133
133
  r.pie12
134
134
  ];
135
- let D = 0;
135
+ let T = 0;
136
136
  f.forEach((n) => {
137
- D += n;
137
+ T += n;
138
138
  });
139
- const R = S.filter((n) => (n.data.value / D * 100).toFixed(0) !== "0"), k = te(A);
140
- u.selectAll("mySlices").data(R).enter().append("path").attr("d", T).attr("fill", (n) => k(n.data.label)).attr("class", "pieCircle"), u.selectAll("mySlices").data(R).enter().append("text").text((n) => (n.data.value / D * 100).toFixed(0) + "%").attr("transform", (n) => "translate(" + b.centroid(n) + ")").style("text-anchor", "middle").attr("class", "slice"), u.append("text").text(o.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText");
141
- const B = [...f.entries()].map(([n, O]) => ({
139
+ const W = $.filter((n) => (n.data.value / T * 100).toFixed(0) !== "0"), k = te(b);
140
+ u.selectAll("mySlices").data(W).enter().append("path").attr("d", A).attr("fill", (n) => k(n.data.label)).attr("class", "pieCircle"), u.selectAll("mySlices").data(W).enter().append("text").text((n) => (n.data.value / T * 100).toFixed(0) + "%").attr("transform", (n) => "translate(" + C.centroid(n) + ")").style("text-anchor", "middle").attr("class", "slice"), u.append("text").text(o.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText");
141
+ const L = [...f.entries()].map(([n, O]) => ({
142
142
  label: n,
143
143
  value: O
144
- })), M = u.selectAll(".legend").data(B).enter().append("g").attr("class", "legend").attr("transform", (n, O) => {
145
- const P = i + c, j = P * B.length / 2, U = 12 * i, X = O * P - j;
146
- return "translate(" + U + "," + X + ")";
144
+ })), M = u.selectAll(".legend").data(L).enter().append("g").attr("class", "legend").attr("transform", (n, O) => {
145
+ const B = i + c, j = B * L.length / 2, G = 12 * i, U = O * B - j;
146
+ return "translate(" + G + "," + U + ")";
147
147
  });
148
148
  M.append("rect").attr("width", i).attr("height", i).style("fill", (n) => k(n.label)).style("stroke", (n) => k(n.label)), M.append("text").attr("x", i + c).attr("y", i - c).text((n) => o.getShowData() ? `${n.label} [${n.value}]` : n.label);
149
- const V = Math.max(
149
+ const _ = Math.max(
150
150
  ...M.selectAll("text").nodes().map((n) => (n == null ? void 0 : n.getBoundingClientRect().width) ?? 0)
151
- ), W = v + t + i + c + V;
152
- w.attr("viewBox", `0 0 ${W} ${d}`), ae(w, d, W, l.useMaxWidth);
153
- }, "draw"), be = { draw: Te }, Oe = {
151
+ ), V = v + t + i + c + _;
152
+ w.attr("viewBox", `0 0 ${V} ${d}`), ae(w, d, V, l.useMaxWidth);
153
+ }, "draw"), Ce = { draw: Ae }, Oe = {
154
154
  parser: ve,
155
- db: L,
156
- renderer: be,
157
- styles: Se
155
+ db: P,
156
+ renderer: Ce,
157
+ styles: $e
158
158
  };
159
159
  export {
160
160
  Oe as diagram