@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 { Q as l, e as S, p as E, E as I, v as F, h as B, B as z, al as P, F as R, X as y, L as w, T as j, s as D, as as G } from "./index-DlxA4QQ9.js";
2
- import { m as Q } from "./chunk-4BX2VUAB-DAh9ktmY-CF6YTNXg.js";
3
- import { j as V } from "./mermaid-parser.core-3GIbpcw--KxsyRnD0.js";
1
+ import { e as S, f as I, t as E, s as F, g as P, h as z, M as l, al as D, N as R, K as y, _ as j, P as w, a as B, as as G } from "./index-DU3Jqd59.js";
2
+ import { m as N } from "./chunk-4BX2VUAB-CX67kh_B-JdLaNmBY.js";
3
+ import { j as _ } from "./mermaid-parser.core-C88_DDui-CHG6v5qB.js";
4
4
  typeof window < "u" && (window.global = window);
5
5
  var x = {
6
6
  showLegend: !0,
@@ -12,173 +12,173 @@ var x = {
12
12
  axes: [],
13
13
  curves: [],
14
14
  options: x
15
- }, p = structuredClone(b), W = j.radar, X = /* @__PURE__ */ l(() => y({
16
- ...W,
15
+ }, p = structuredClone(b), V = j.radar, W = /* @__PURE__ */ l(() => y({
16
+ ...V,
17
17
  ...w().radar
18
- }), "getConfig"), M = /* @__PURE__ */ l(() => p.axes, "getAxes"), J = /* @__PURE__ */ l(() => p.curves, "getCurves"), N = /* @__PURE__ */ l(() => p.options, "getOptions"), Z = /* @__PURE__ */ l((a) => {
18
+ }), "getConfig"), M = /* @__PURE__ */ l(() => p.axes, "getAxes"), q = /* @__PURE__ */ l(() => p.curves, "getCurves"), J = /* @__PURE__ */ l(() => p.options, "getOptions"), K = /* @__PURE__ */ l((a) => {
19
19
  p.axes = a.map((t) => ({
20
20
  name: t.name,
21
21
  label: t.label ?? t.name
22
22
  }));
23
- }, "setAxes"), _ = /* @__PURE__ */ l((a) => {
23
+ }, "setAxes"), U = /* @__PURE__ */ l((a) => {
24
24
  p.curves = a.map((t) => ({
25
25
  name: t.name,
26
26
  label: t.label ?? t.name,
27
- entries: q(t.entries)
27
+ entries: Z(t.entries)
28
28
  }));
29
- }, "setCurves"), q = /* @__PURE__ */ l((a) => {
29
+ }, "setCurves"), Z = /* @__PURE__ */ l((a) => {
30
30
  if (a[0].axis == null)
31
31
  return a.map((e) => e.value);
32
32
  const t = M();
33
33
  if (t.length === 0)
34
34
  throw new Error("Axes must be populated before curves for reference entries");
35
35
  return t.map((e) => {
36
- const r = a.find((s) => {
36
+ const r = a.find((i) => {
37
37
  var n;
38
- return ((n = s.axis) == null ? void 0 : n.$refText) === e.name;
38
+ return ((n = i.axis) == null ? void 0 : n.$refText) === e.name;
39
39
  });
40
40
  if (r === void 0)
41
41
  throw new Error("Missing entry for axis " + e.label);
42
42
  return r.value;
43
43
  });
44
44
  }, "computeCurveEntries"), H = /* @__PURE__ */ l((a) => {
45
- var t, e, r, s, n;
45
+ var t, e, r, i, n;
46
46
  const o = a.reduce(
47
- (i, c) => (i[c.name] = c, i),
47
+ (s, c) => (s[c.name] = c, s),
48
48
  {}
49
49
  );
50
50
  p.options = {
51
51
  showLegend: ((t = o.showLegend) == null ? void 0 : t.value) ?? x.showLegend,
52
52
  ticks: ((e = o.ticks) == null ? void 0 : e.value) ?? x.ticks,
53
53
  max: ((r = o.max) == null ? void 0 : r.value) ?? x.max,
54
- min: ((s = o.min) == null ? void 0 : s.value) ?? x.min,
54
+ min: ((i = o.min) == null ? void 0 : i.value) ?? x.min,
55
55
  graticule: ((n = o.graticule) == null ? void 0 : n.value) ?? x.graticule
56
56
  };
57
- }, "setOptions"), K = /* @__PURE__ */ l(() => {
57
+ }, "setOptions"), Q = /* @__PURE__ */ l(() => {
58
58
  R(), p = structuredClone(b);
59
59
  }, "clear"), $ = {
60
60
  getAxes: M,
61
- getCurves: J,
62
- getOptions: N,
63
- setAxes: Z,
64
- setCurves: _,
61
+ getCurves: q,
62
+ getOptions: J,
63
+ setAxes: K,
64
+ setCurves: U,
65
65
  setOptions: H,
66
- getConfig: X,
67
- clear: K,
66
+ getConfig: W,
67
+ clear: Q,
68
68
  setAccTitle: z,
69
- getAccTitle: B,
69
+ getAccTitle: P,
70
70
  setDiagramTitle: F,
71
- getDiagramTitle: I,
72
- getAccDescription: E,
71
+ getDiagramTitle: E,
72
+ getAccDescription: I,
73
73
  setAccDescription: S
74
- }, U = /* @__PURE__ */ l((a) => {
75
- Q(a, $);
74
+ }, X = /* @__PURE__ */ l((a) => {
75
+ N(a, $);
76
76
  const { axes: t, curves: e, options: r } = a;
77
77
  $.setAxes(t), $.setCurves(e), $.setOptions(r);
78
78
  }, "populate"), Y = {
79
79
  parse: /* @__PURE__ */ l(async (a) => {
80
- const t = await V("radar", a);
81
- D.debug(t), U(t);
80
+ const t = await _("radar", a);
81
+ B.debug(t), X(t);
82
82
  }, "parse")
83
83
  }, tt = /* @__PURE__ */ l((a, t, e, r) => {
84
- const s = r.db, n = s.getAxes(), o = s.getCurves(), i = s.getOptions(), c = s.getConfig(), d = s.getDiagramTitle(), g = P(t), u = et(g, c), h = i.max ?? Math.max(...o.map((v) => Math.max(...v.entries))), m = i.min, f = Math.min(c.width, c.height) / 2;
85
- at(u, n, f, i.ticks, i.graticule), rt(u, n, f, c), C(u, n, o, m, h, i.graticule, c), A(u, o, i.showLegend, c), u.append("text").attr("class", "radarTitle").text(d).attr("x", 0).attr("y", -c.height / 2 - c.marginTop);
84
+ const i = r.db, n = i.getAxes(), o = i.getCurves(), s = i.getOptions(), c = i.getConfig(), d = i.getDiagramTitle(), g = D(t), u = et(g, c), h = s.max ?? Math.max(...o.map((v) => Math.max(...v.entries))), m = s.min, f = Math.min(c.width, c.height) / 2;
85
+ at(u, n, f, s.ticks, s.graticule), rt(u, n, f, c), C(u, n, o, m, h, s.graticule, c), T(u, o, s.showLegend, c), u.append("text").attr("class", "radarTitle").text(d).attr("x", 0).attr("y", -c.height / 2 - c.marginTop);
86
86
  }, "draw"), et = /* @__PURE__ */ l((a, t) => {
87
- const e = t.width + t.marginLeft + t.marginRight, r = t.height + t.marginTop + t.marginBottom, s = {
87
+ const e = t.width + t.marginLeft + t.marginRight, r = t.height + t.marginTop + t.marginBottom, i = {
88
88
  x: t.marginLeft + t.width / 2,
89
89
  y: t.marginTop + t.height / 2
90
90
  };
91
- return a.attr("viewbox", `0 0 ${e} ${r}`).attr("width", e).attr("height", r), a.append("g").attr("transform", `translate(${s.x}, ${s.y})`);
92
- }, "drawFrame"), at = /* @__PURE__ */ l((a, t, e, r, s) => {
93
- if (s === "circle")
91
+ return a.attr("viewbox", `0 0 ${e} ${r}`).attr("width", e).attr("height", r), a.append("g").attr("transform", `translate(${i.x}, ${i.y})`);
92
+ }, "drawFrame"), at = /* @__PURE__ */ l((a, t, e, r, i) => {
93
+ if (i === "circle")
94
94
  for (let n = 0; n < r; n++) {
95
95
  const o = e * (n + 1) / r;
96
96
  a.append("circle").attr("r", o).attr("class", "radarGraticule");
97
97
  }
98
- else if (s === "polygon") {
98
+ else if (i === "polygon") {
99
99
  const n = t.length;
100
100
  for (let o = 0; o < r; o++) {
101
- const i = e * (o + 1) / r, c = t.map((d, g) => {
102
- const u = 2 * g * Math.PI / n - Math.PI / 2, h = i * Math.cos(u), m = i * Math.sin(u);
101
+ const s = e * (o + 1) / r, c = t.map((d, g) => {
102
+ const u = 2 * g * Math.PI / n - Math.PI / 2, h = s * Math.cos(u), m = s * Math.sin(u);
103
103
  return `${h},${m}`;
104
104
  }).join(" ");
105
105
  a.append("polygon").attr("points", c).attr("class", "radarGraticule");
106
106
  }
107
107
  }
108
108
  }, "drawGraticule"), rt = /* @__PURE__ */ l((a, t, e, r) => {
109
- const s = t.length;
110
- for (let n = 0; n < s; n++) {
111
- const o = t[n].label, i = 2 * n * Math.PI / s - Math.PI / 2;
112
- a.append("line").attr("x1", 0).attr("y1", 0).attr("x2", e * r.axisScaleFactor * Math.cos(i)).attr("y2", e * r.axisScaleFactor * Math.sin(i)).attr("class", "radarAxisLine"), a.append("text").text(o).attr("x", e * r.axisLabelFactor * Math.cos(i)).attr("y", e * r.axisLabelFactor * Math.sin(i)).attr("class", "radarAxisLabel");
109
+ const i = t.length;
110
+ for (let n = 0; n < i; n++) {
111
+ const o = t[n].label, s = 2 * n * Math.PI / i - Math.PI / 2;
112
+ a.append("line").attr("x1", 0).attr("y1", 0).attr("x2", e * r.axisScaleFactor * Math.cos(s)).attr("y2", e * r.axisScaleFactor * Math.sin(s)).attr("class", "radarAxisLine"), a.append("text").text(o).attr("x", e * r.axisLabelFactor * Math.cos(s)).attr("y", e * r.axisLabelFactor * Math.sin(s)).attr("class", "radarAxisLabel");
113
113
  }
114
114
  }, "drawAxes");
115
- function C(a, t, e, r, s, n, o) {
116
- const i = t.length, c = Math.min(o.width, o.height) / 2;
115
+ function C(a, t, e, r, i, n, o) {
116
+ const s = t.length, c = Math.min(o.width, o.height) / 2;
117
117
  e.forEach((d, g) => {
118
- if (d.entries.length !== i)
118
+ if (d.entries.length !== s)
119
119
  return;
120
120
  const u = d.entries.map((h, m) => {
121
- const f = 2 * Math.PI * m / i - Math.PI / 2, v = L(h, r, s, c), k = v * Math.cos(f), O = v * Math.sin(f);
121
+ const f = 2 * Math.PI * m / s - Math.PI / 2, v = L(h, r, i, c), k = v * Math.cos(f), O = v * Math.sin(f);
122
122
  return { x: k, y: O };
123
123
  });
124
- n === "circle" ? a.append("path").attr("d", T(u, o.curveTension)).attr("class", `radarCurve-${g}`) : n === "polygon" && a.append("polygon").attr("points", u.map((h) => `${h.x},${h.y}`).join(" ")).attr("class", `radarCurve-${g}`);
124
+ n === "circle" ? a.append("path").attr("d", A(u, o.curveTension)).attr("class", `radarCurve-${g}`) : n === "polygon" && a.append("polygon").attr("points", u.map((h) => `${h.x},${h.y}`).join(" ")).attr("class", `radarCurve-${g}`);
125
125
  });
126
126
  }
127
127
  l(C, "drawCurves");
128
128
  function L(a, t, e, r) {
129
- const s = Math.min(Math.max(a, t), e);
130
- return r * (s - t) / (e - t);
129
+ const i = Math.min(Math.max(a, t), e);
130
+ return r * (i - t) / (e - t);
131
131
  }
132
132
  l(L, "relativeRadius");
133
- function T(a, t) {
133
+ function A(a, t) {
134
134
  const e = a.length;
135
135
  let r = `M${a[0].x},${a[0].y}`;
136
- for (let s = 0; s < e; s++) {
137
- const n = a[(s - 1 + e) % e], o = a[s], i = a[(s + 1) % e], c = a[(s + 2) % e], d = {
138
- x: o.x + (i.x - n.x) * t,
139
- y: o.y + (i.y - n.y) * t
136
+ for (let i = 0; i < e; i++) {
137
+ const n = a[(i - 1 + e) % e], o = a[i], s = a[(i + 1) % e], c = a[(i + 2) % e], d = {
138
+ x: o.x + (s.x - n.x) * t,
139
+ y: o.y + (s.y - n.y) * t
140
140
  }, g = {
141
- x: i.x - (c.x - o.x) * t,
142
- y: i.y - (c.y - o.y) * t
141
+ x: s.x - (c.x - o.x) * t,
142
+ y: s.y - (c.y - o.y) * t
143
143
  };
144
- r += ` C${d.x},${d.y} ${g.x},${g.y} ${i.x},${i.y}`;
144
+ r += ` C${d.x},${d.y} ${g.x},${g.y} ${s.x},${s.y}`;
145
145
  }
146
146
  return `${r} Z`;
147
147
  }
148
- l(T, "closedRoundCurve");
149
- function A(a, t, e, r) {
148
+ l(A, "closedRoundCurve");
149
+ function T(a, t, e, r) {
150
150
  if (!e)
151
151
  return;
152
- const s = (r.width / 2 + r.marginRight) * 3 / 4, n = -(r.height / 2 + r.marginTop) * 3 / 4, o = 20;
153
- t.forEach((i, c) => {
154
- const d = a.append("g").attr("transform", `translate(${s}, ${n + c * o})`);
155
- d.append("rect").attr("width", 12).attr("height", 12).attr("class", `radarLegendBox-${c}`), d.append("text").attr("x", 16).attr("y", 0).attr("class", "radarLegendText").text(i.label);
152
+ const i = (r.width / 2 + r.marginRight) * 3 / 4, n = -(r.height / 2 + r.marginTop) * 3 / 4, o = 20;
153
+ t.forEach((s, c) => {
154
+ const d = a.append("g").attr("transform", `translate(${i}, ${n + c * o})`);
155
+ d.append("rect").attr("width", 12).attr("height", 12).attr("class", `radarLegendBox-${c}`), d.append("text").attr("x", 16).attr("y", 0).attr("class", "radarLegendText").text(s.label);
156
156
  });
157
157
  }
158
- l(A, "drawLegend");
159
- var st = { draw: tt }, it = /* @__PURE__ */ l((a, t) => {
158
+ l(T, "drawLegend");
159
+ var it = { draw: tt }, st = /* @__PURE__ */ l((a, t) => {
160
160
  let e = "";
161
161
  for (let r = 0; r < a.THEME_COLOR_LIMIT; r++) {
162
- const s = a[`cScale${r}`];
162
+ const i = a[`cScale${r}`];
163
163
  e += `
164
164
  .radarCurve-${r} {
165
- color: ${s};
166
- fill: ${s};
165
+ color: ${i};
166
+ fill: ${i};
167
167
  fill-opacity: ${t.curveOpacity};
168
- stroke: ${s};
168
+ stroke: ${i};
169
169
  stroke-width: ${t.curveStrokeWidth};
170
170
  }
171
171
  .radarLegendBox-${r} {
172
- fill: ${s};
172
+ fill: ${i};
173
173
  fill-opacity: ${t.curveOpacity};
174
- stroke: ${s};
174
+ stroke: ${i};
175
175
  }
176
176
  `;
177
177
  }
178
178
  return e;
179
179
  }, "genIndexStyles"), nt = /* @__PURE__ */ l((a) => {
180
- const t = G(), e = w(), r = y(t, e.themeVariables), s = y(r.radar, a);
181
- return { themeVariables: r, radarOptions: s };
180
+ const t = G(), e = w(), r = y(t, e.themeVariables), i = y(r.radar, a);
181
+ return { themeVariables: r, radarOptions: i };
182
182
  }, "buildRadarStyleOptions"), ot = /* @__PURE__ */ l(({ radar: a } = {}) => {
183
183
  const { themeVariables: t, radarOptions: e } = nt(a);
184
184
  return `
@@ -209,12 +209,12 @@ var st = { draw: tt }, it = /* @__PURE__ */ l((a, t) => {
209
209
  font-size: ${e.legendFontSize}px;
210
210
  dominant-baseline: hanging;
211
211
  }
212
- ${it(t, e)}
212
+ ${st(t, e)}
213
213
  `;
214
214
  }, "styles"), ut = {
215
215
  parser: Y,
216
216
  db: $,
217
- renderer: st,
217
+ renderer: it,
218
218
  styles: ot
219
219
  };
220
220
  export {
@@ -1,15 +1,15 @@
1
- import { Q as g, X as u, al as v, f as C, s as m, B as P, h as E, v as z, E as F, p as S, e as T, L as W, T as D, F as A } from "./index-DlxA4QQ9.js";
2
- import { m as j } from "./chunk-4BX2VUAB-DAh9ktmY-CF6YTNXg.js";
3
- import { j as L } from "./mermaid-parser.core-3GIbpcw--KxsyRnD0.js";
1
+ import { M as g, K as u, al as B, i as C, a as m, h as P, g as S, s as z, t as F, f as W, e as D, _ as E, P as T, N as A } from "./index-DU3Jqd59.js";
2
+ import { m as M } from "./chunk-4BX2VUAB-CX67kh_B-JdLaNmBY.js";
3
+ import { j } from "./mermaid-parser.core-C88_DDui-CHG6v5qB.js";
4
4
  typeof window < "u" && (window.global = window);
5
- var X = D.packet, w, y = (w = class {
5
+ var N = E.packet, w, y = (w = class {
6
6
  constructor() {
7
- this.packet = [], this.setAccTitle = P, this.getAccTitle = E, this.setDiagramTitle = z, this.getDiagramTitle = F, this.getAccDescription = S, this.setAccDescription = T;
7
+ this.packet = [], this.setAccTitle = P, this.getAccTitle = S, this.setDiagramTitle = z, this.getDiagramTitle = F, this.getAccDescription = W, this.setAccDescription = D;
8
8
  }
9
9
  getConfig() {
10
10
  const t = u({
11
- ...X,
12
- ...W().packet
11
+ ...N,
12
+ ...T().packet
13
13
  });
14
14
  return t.showBits && (t.paddingY += 10), t;
15
15
  }
@@ -23,7 +23,7 @@ var X = D.packet, w, y = (w = class {
23
23
  A(), this.packet = [];
24
24
  }
25
25
  }, g(w, "PacketDB"), w), Y = 1e4, H = /* @__PURE__ */ g((t, e) => {
26
- j(t, e);
26
+ M(t, e);
27
27
  let o = -1, r = [], n = 1;
28
28
  const { bitsPerRow: l } = e.getConfig();
29
29
  for (let { start: a, end: s, bits: d, label: c } of t.blocks) {
@@ -36,14 +36,14 @@ var X = D.packet, w, y = (w = class {
36
36
  if (d === 0)
37
37
  throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);
38
38
  for (s ?? (s = a + (d ?? 1) - 1), d ?? (d = s - a + 1), o = s, m.debug(`Packet block ${a} - ${o} with label ${c}`); r.length <= l + 1 && e.getPacket().length < Y; ) {
39
- const [h, i] = M({ start: a, end: s, bits: d, label: c }, n, l);
39
+ const [h, i] = L({ start: a, end: s, bits: d, label: c }, n, l);
40
40
  if (r.push(h), h.end + 1 === n * l && (e.pushWord(r), r = [], n++), !i)
41
41
  break;
42
42
  ({ start: a, end: s, bits: d, label: c } = i);
43
43
  }
44
44
  }
45
45
  e.pushWord(r);
46
- }, "populate"), M = /* @__PURE__ */ g((t, e, o) => {
46
+ }, "populate"), L = /* @__PURE__ */ g((t, e, o) => {
47
47
  if (t.start === void 0)
48
48
  throw new Error("start should have been set during first phase");
49
49
  if (t.end === void 0)
@@ -72,20 +72,20 @@ var X = D.packet, w, y = (w = class {
72
72
  parser: { yy: void 0 },
73
73
  parse: /* @__PURE__ */ g(async (t) => {
74
74
  var e;
75
- const o = await L("packet", t), r = (e = x.parser) == null ? void 0 : e.yy;
75
+ const o = await j("packet", t), r = (e = x.parser) == null ? void 0 : e.yy;
76
76
  if (!(r instanceof y))
77
77
  throw new Error(
78
78
  "parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues."
79
79
  );
80
80
  m.debug(o), H(o, r);
81
81
  }, "parse")
82
- }, R = /* @__PURE__ */ g((t, e, o, r) => {
83
- const n = r.db, l = n.getConfig(), { rowHeight: a, paddingY: s, bitWidth: d, bitsPerRow: c } = l, h = n.getPacket(), i = n.getDiagramTitle(), b = a + s, p = b * (h.length + 1) - (i ? 0 : a), k = d * c + 2, f = v(e);
82
+ }, O = /* @__PURE__ */ g((t, e, o, r) => {
83
+ const n = r.db, l = n.getConfig(), { rowHeight: a, paddingY: s, bitWidth: d, bitsPerRow: c } = l, h = n.getPacket(), i = n.getDiagramTitle(), b = a + s, p = b * (h.length + 1) - (i ? 0 : a), k = d * c + 2, f = B(e);
84
84
  f.attr("viewbox", `0 0 ${k} ${p}`), C(f, p, k, l.useMaxWidth);
85
- for (const [$, B] of h.entries())
86
- I(f, B, $, l);
85
+ for (const [$, v] of h.entries())
86
+ R(f, v, $, l);
87
87
  f.append("text").text(i).attr("x", k / 2).attr("y", p - b / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
88
- }, "draw"), I = /* @__PURE__ */ g((t, e, o, { rowHeight: r, paddingX: n, paddingY: l, bitWidth: a, bitsPerRow: s, showBits: d }) => {
88
+ }, "draw"), R = /* @__PURE__ */ g((t, e, o, { rowHeight: r, paddingX: n, paddingY: l, bitWidth: a, bitsPerRow: s, showBits: d }) => {
89
89
  const c = t.append("g"), h = o * (r + l) + l;
90
90
  for (const i of e) {
91
91
  const b = i.start % s * a + 1, p = (i.end - i.start + 1) * a - n;
@@ -94,7 +94,7 @@ var X = D.packet, w, y = (w = class {
94
94
  const k = i.end === i.start, f = h - 2;
95
95
  c.append("text").attr("x", b + (k ? p / 2 : 0)).attr("y", f).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", k ? "middle" : "start").text(i.start), k || c.append("text").attr("x", b + p).attr("y", f).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(i.end);
96
96
  }
97
- }, "drawWord"), J = { draw: R }, N = {
97
+ }, "drawWord"), I = { draw: O }, X = {
98
98
  byteFontSize: "10px",
99
99
  startByteColor: "black",
100
100
  endByteColor: "black",
@@ -105,8 +105,8 @@ var X = D.packet, w, y = (w = class {
105
105
  blockStrokeColor: "black",
106
106
  blockStrokeWidth: "1",
107
107
  blockFillColor: "#efefef"
108
- }, q = /* @__PURE__ */ g(({ packet: t } = {}) => {
109
- const e = u(N, t);
108
+ }, _ = /* @__PURE__ */ g(({ packet: t } = {}) => {
109
+ const e = u(X, t);
110
110
  return `
111
111
  .packetByte {
112
112
  font-size: ${e.byteFontSize};
@@ -136,8 +136,8 @@ var X = D.packet, w, y = (w = class {
136
136
  get db() {
137
137
  return new y();
138
138
  },
139
- renderer: J,
140
- styles: q
139
+ renderer: I,
140
+ styles: _
141
141
  };
142
142
  export {
143
143
  K as diagram
@@ -1,7 +1,7 @@
1
- import { d as vt } from "./chunk-55IACEB6-Cza7pcpr-C1E53ZSc.js";
2
- import { d as $t } from "./chunk-QN33PNHL-v6AkzOl1-DrzKpDUJ.js";
3
- import { Q as o, B as Dt, h as wt, e as Lt, p as Mt, v as Bt, E as Ft, k as H, s as $, F as Yt, D as Pt, I as Kt, $ as Zt, r as zt, u as Gt, w as Ut, O as jt } from "./index-DlxA4QQ9.js";
4
- import { t as Wt } from "./channel-CUIutAfm-COC3Ib4R.js";
1
+ import { d as vt } from "./chunk-55IACEB6-BocSyyvr--btUJ1po.js";
2
+ import { d as $t } from "./chunk-QN33PNHL-vP2PqfVG-ByquTp49.js";
3
+ import { M as o, h as Dt, g as wt, e as Lt, f as Mt, s as Bt, t as Ft, C as H, a as $, N as Yt, E as Pt, I as Kt, J as Zt, p as zt, q as Gt, d as Ut, r as jt } from "./index-DU3Jqd59.js";
4
+ import { t as Wt } from "./channel-HKsfPa5q-B30_3C0d.js";
5
5
  typeof window < "u" && (window.global = window);
6
6
  var ut = function() {
7
7
  var e = /* @__PURE__ */ o(function(m, r, a, n) {
@@ -201,14 +201,14 @@ var ut = function() {
201
201
  }
202
202
  }, "parseError"),
203
203
  parse: /* @__PURE__ */ o(function(m) {
204
- var r = this, a = [0], n = [], h = [null], t = [], p = this.table, s = "", Q = 0, kt = 0, Rt = 2, Ot = 1, It = t.slice.call(arguments, 1), d = Object.create(this.lexer), I = { yy: {} };
204
+ var r = this, a = [0], n = [], h = [null], t = [], p = this.table, s = "", X = 0, kt = 0, Rt = 2, Ot = 1, Ct = t.slice.call(arguments, 1), d = Object.create(this.lexer), C = { yy: {} };
205
205
  for (var at in this.yy)
206
- Object.prototype.hasOwnProperty.call(this.yy, at) && (I.yy[at] = this.yy[at]);
207
- d.setInput(m, I.yy), I.yy.lexer = d, I.yy.parser = this, typeof d.yylloc > "u" && (d.yylloc = {});
206
+ Object.prototype.hasOwnProperty.call(this.yy, at) && (C.yy[at] = this.yy[at]);
207
+ d.setInput(m, C.yy), C.yy.lexer = d, C.yy.parser = this, typeof d.yylloc > "u" && (d.yylloc = {});
208
208
  var ct = d.yylloc;
209
209
  t.push(ct);
210
- var Ct = d.options && d.options.ranges;
211
- typeof I.yy.parseError == "function" ? this.parseError = I.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
210
+ var It = d.options && d.options.ranges;
211
+ typeof C.yy.parseError == "function" ? this.parseError = C.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
212
212
  function xt(f) {
213
213
  a.length = a.length - 2 * f, h.length = h.length - f, t.length = t.length - f;
214
214
  }
@@ -218,15 +218,15 @@ var ut = function() {
218
218
  return f = n.pop() || d.lex() || Ot, typeof f != "number" && (f instanceof Array && (n = f, f = n.pop()), f = r.symbols_[f] || f), f;
219
219
  }
220
220
  o(St, "lex");
221
- for (var _, C, g, ot, v = {}, X, k, Tt, q; ; ) {
222
- if (C = a[a.length - 1], this.defaultActions[C] ? g = this.defaultActions[C] : ((_ === null || typeof _ > "u") && (_ = St()), g = p[C] && p[C][_]), typeof g > "u" || !g.length || !g[0]) {
221
+ for (var _, I, g, ot, v = {}, Q, k, Tt, q; ; ) {
222
+ if (I = a[a.length - 1], this.defaultActions[I] ? g = this.defaultActions[I] : ((_ === null || typeof _ > "u") && (_ = St()), g = p[I] && p[I][_]), typeof g > "u" || !g.length || !g[0]) {
223
223
  var lt = "";
224
224
  q = [];
225
- for (X in p[C])
226
- this.terminals_[X] && X > Rt && q.push("'" + this.terminals_[X] + "'");
227
- d.showPosition ? lt = "Parse error on line " + (Q + 1) + `:
225
+ for (Q in p[I])
226
+ this.terminals_[Q] && Q > Rt && q.push("'" + this.terminals_[Q] + "'");
227
+ d.showPosition ? lt = "Parse error on line " + (X + 1) + `:
228
228
  ` + d.showPosition() + `
229
- Expecting ` + q.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : lt = "Parse error on line " + (Q + 1) + ": Unexpected " + (_ == Ot ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(lt, {
229
+ Expecting ` + q.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : lt = "Parse error on line " + (X + 1) + ": Unexpected " + (_ == Ot ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(lt, {
230
230
  text: d.match,
231
231
  token: this.terminals_[_] || _,
232
232
  line: d.yylineno,
@@ -235,10 +235,10 @@ Expecting ` + q.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : lt =
235
235
  });
236
236
  }
237
237
  if (g[0] instanceof Array && g.length > 1)
238
- throw new Error("Parse Error: multiple actions possible at state: " + C + ", token: " + _);
238
+ throw new Error("Parse Error: multiple actions possible at state: " + I + ", token: " + _);
239
239
  switch (g[0]) {
240
240
  case 1:
241
- a.push(_), h.push(d.yytext), t.push(d.yylloc), a.push(g[1]), _ = null, kt = d.yyleng, s = d.yytext, Q = d.yylineno, ct = d.yylloc;
241
+ a.push(_), h.push(d.yytext), t.push(d.yylloc), a.push(g[1]), _ = null, kt = d.yyleng, s = d.yytext, X = d.yylineno, ct = d.yylloc;
242
242
  break;
243
243
  case 2:
244
244
  if (k = this.productions_[g[1]][1], v.$ = h[h.length - k], v._$ = {
@@ -246,18 +246,18 @@ Expecting ` + q.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : lt =
246
246
  last_line: t[t.length - 1].last_line,
247
247
  first_column: t[t.length - (k || 1)].first_column,
248
248
  last_column: t[t.length - 1].last_column
249
- }, Ct && (v._$.range = [
249
+ }, It && (v._$.range = [
250
250
  t[t.length - (k || 1)].range[0],
251
251
  t[t.length - 1].range[1]
252
252
  ]), ot = this.performAction.apply(v, [
253
253
  s,
254
254
  kt,
255
- Q,
256
- I.yy,
255
+ X,
256
+ C.yy,
257
257
  g[1],
258
258
  h,
259
259
  t
260
- ].concat(It)), typeof ot < "u")
260
+ ].concat(Ct)), typeof ot < "u")
261
261
  return ot;
262
262
  k && (a = a.slice(0, -1 * k * 2), h = h.slice(0, -1 * k), t = t.slice(0, -1 * k)), a.push(this.productions_[g[1]][0]), h.push(v.$), t.push(v._$), Tt = p[a[a.length - 2]][a[a.length - 1]], a.push(Tt);
263
263
  break;
@@ -605,7 +605,7 @@ Expecting ` + q.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : lt =
605
605
  return o(W, "Parser"), W.prototype = rt, rt.Parser = W, new W();
606
606
  }();
607
607
  ut.parser = ut;
608
- var Qt = ut, ht, Xt = (ht = class {
608
+ var Xt = ut, ht, Qt = (ht = class {
609
609
  constructor() {
610
610
  this.entities = /* @__PURE__ */ new Map(), this.relationships = [], this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.Cardinality = {
611
611
  ZERO_OR_ONE: "ZERO_OR_ONE",
@@ -829,9 +829,9 @@ var qt = /* @__PURE__ */ o(async function(e, i, u, c) {
829
829
  stroke-width: 1;
830
830
  }
831
831
  `, "getStyles"), Jt = Vt, ne = {
832
- parser: Qt,
832
+ parser: Xt,
833
833
  get db() {
834
- return new Xt();
834
+ return new Qt();
835
835
  },
836
836
  renderer: Nt,
837
837
  styles: Jt