bg-editor 0.0.1

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 (67) hide show
  1. package/LICENSE +8 -0
  2. package/README.md +51 -0
  3. package/README.zh-CN.md +51 -0
  4. package/dist/_basePickBy-4kmg42pS.js +158 -0
  5. package/dist/_baseUniq-WOvvCHTI.js +621 -0
  6. package/dist/arc-wItjmL5I.js +90 -0
  7. package/dist/architecture-U656AL7Q-FYDwFSxk.js +12 -0
  8. package/dist/architectureDiagram-VXUJARFQ-iG5MkBjx.js +4666 -0
  9. package/dist/blockDiagram-VD42YOAC-i2GlXmWy.js +2268 -0
  10. package/dist/c4Diagram-YG6GDRKO-IufO7T1R.js +1587 -0
  11. package/dist/channel-Dah4F59k.js +12 -0
  12. package/dist/chunk-4BX2VUAB-5_v9rnje.js +15 -0
  13. package/dist/chunk-55IACEB6-BDNtSypP.js +15 -0
  14. package/dist/chunk-B4BG7PRW-DzaYPsfW.js +1382 -0
  15. package/dist/chunk-DI55MBZ5-Buwrprkw.js +1377 -0
  16. package/dist/chunk-FMBD7UC4-BaEPEIWb.js +26 -0
  17. package/dist/chunk-QN33PNHL-DhbA7i5G.js +26 -0
  18. package/dist/chunk-QZHKN3VN-BAb_D1oz.js +22 -0
  19. package/dist/chunk-TZMSLE5B-OU1MJ2do.js +71 -0
  20. package/dist/classDiagram-2ON5EDUG-KStC8v09.js +23 -0
  21. package/dist/classDiagram-v2-WZHVMYZB-KStC8v09.js +23 -0
  22. package/dist/clone-C74UiRbr.js +15 -0
  23. package/dist/cose-bilkent-S5V4N54A-eRXCoix2.js +2612 -0
  24. package/dist/cytoscape.esm-BG3R4uVs.js +18738 -0
  25. package/dist/dagre-6UL2VRFP-Bi83jPQf.js +451 -0
  26. package/dist/defaultLocale-DgmhL6Re.js +178 -0
  27. package/dist/diagram-PSM6KHXK-aW98k2-4.js +539 -0
  28. package/dist/diagram-QEK2KX5R-BR--iNM5.js +224 -0
  29. package/dist/diagram-S2PKOQOG-NTnEy5_O.js +149 -0
  30. package/dist/erDiagram-Q2GNP2WA-C8oZ5c-S.js +848 -0
  31. package/dist/flowDiagram-NV44I4VS-DiKad3Bb.js +1627 -0
  32. package/dist/ganttDiagram-LVOFAZNH-CthzjjJq.js +2506 -0
  33. package/dist/gitGraph-F6HP7TQM-CuXAC0XT.js +12 -0
  34. package/dist/gitGraphDiagram-NY62KEGX-d4KszKqi.js +706 -0
  35. package/dist/graph-CnOTx4E0.js +254 -0
  36. package/dist/index-D6-Wf75-.js +122127 -0
  37. package/dist/info-NVLQJR56-Dhmtdc7O.js +12 -0
  38. package/dist/infoDiagram-ER5ION4S-DedidjTu.js +31 -0
  39. package/dist/init-d639unba.js +23 -0
  40. package/dist/journeyDiagram-XKPGCS4Q-BylvmUWL.js +843 -0
  41. package/dist/kanban-definition-3W4ZIXB7-DGV_aVgU.js +725 -0
  42. package/dist/layout-OXk4OSoz.js +1342 -0
  43. package/dist/linear-CO_vz87n.js +266 -0
  44. package/dist/mermaid-parser.core-CYtF6phW.js +12928 -0
  45. package/dist/mindmap-definition-VGOIOE7T-BU05Y6Vz.js +790 -0
  46. package/dist/ordinal-CofNqUw2.js +68 -0
  47. package/dist/packet-BFZMPI3H-D7H_8Q-U.js +12 -0
  48. package/dist/pie-7BOR55EZ-BNWNcO5Z.js +12 -0
  49. package/dist/pieDiagram-ADFJNKIX-reGTUsiW.js +168 -0
  50. package/dist/quadrantDiagram-AYHSOK5B-NeHOJ0lX.js +1029 -0
  51. package/dist/radar-NHE76QYJ-DrVEcvh1.js +12 -0
  52. package/dist/requirementDiagram-UZGBJVZJ-BE76XNaT.js +857 -0
  53. package/dist/sankeyDiagram-TZEHDZUN-UHfMLEKl.js +817 -0
  54. package/dist/sequenceDiagram-WL72ISMW-62KWnVbh.js +2518 -0
  55. package/dist/stateDiagram-FKZM4ZOC--_CkWvu6.js +270 -0
  56. package/dist/stateDiagram-v2-4FDKWEC3-Dj7ZjAmI.js +23 -0
  57. package/dist/style.css +1 -0
  58. package/dist/timeline-definition-IT6M3QCI-C3Wb0xMN.js +804 -0
  59. package/dist/treemap-KMMF4GRG-Bc8F2dFd.js +12 -0
  60. package/dist/umo-editor.js +16 -0
  61. package/dist/xychartDiagram-PRI3JC2R-D2J307cO.js +1347 -0
  62. package/package.json +200 -0
  63. package/types/index.d.ts +277 -0
  64. package/types/src/components/index.d.ts +9 -0
  65. package/types/src/components/menus/button.vue.d.ts +583 -0
  66. package/types/src/components/modal.vue.d.ts +2 -0
  67. package/types/src/components/tooltip.vue.d.ts +27 -0
@@ -0,0 +1,817 @@
1
+ import "./style.css";
2
+ import { _ as g, p as _t, q as xt, s as vt, g as bt, b as wt, a as St, c as lt, z as Lt, d as H, V as Et, y as At, k as Tt } from "./index-D6-Wf75-.js";
3
+ import { o as Mt } from "./ordinal-CofNqUw2.js";
4
+ /**
5
+ * @umoteam/editor 9.0.1
6
+ * @license MIT
7
+ * @author umodoc https://www.umodoc.com
8
+ * @see https://www.umodoc.com
9
+ **/
10
+ function Nt(t) {
11
+ for (var e = t.length / 6 | 0, i = new Array(e), a = 0; a < e; ) i[a] = "#" + t.slice(a * 6, ++a * 6);
12
+ return i;
13
+ }
14
+ const It = Nt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
15
+ function ct(t, e) {
16
+ let i;
17
+ if (e === void 0)
18
+ for (const a of t)
19
+ a != null && (i < a || i === void 0 && a >= a) && (i = a);
20
+ else {
21
+ let a = -1;
22
+ for (let h of t)
23
+ (h = e(h, ++a, t)) != null && (i < h || i === void 0 && h >= h) && (i = h);
24
+ }
25
+ return i;
26
+ }
27
+ function pt(t, e) {
28
+ let i;
29
+ if (e === void 0)
30
+ for (const a of t)
31
+ a != null && (i > a || i === void 0 && a >= a) && (i = a);
32
+ else {
33
+ let a = -1;
34
+ for (let h of t)
35
+ (h = e(h, ++a, t)) != null && (i > h || i === void 0 && h >= h) && (i = h);
36
+ }
37
+ return i;
38
+ }
39
+ function nt(t, e) {
40
+ let i = 0;
41
+ if (e === void 0)
42
+ for (let a of t)
43
+ (a = +a) && (i += a);
44
+ else {
45
+ let a = -1;
46
+ for (let h of t)
47
+ (h = +e(h, ++a, t)) && (i += h);
48
+ }
49
+ return i;
50
+ }
51
+ function Pt(t) {
52
+ return t.target.depth;
53
+ }
54
+ function Ct(t) {
55
+ return t.depth;
56
+ }
57
+ function Ot(t, e) {
58
+ return e - 1 - t.height;
59
+ }
60
+ function mt(t, e) {
61
+ return t.sourceLinks.length ? t.depth : e - 1;
62
+ }
63
+ function zt(t) {
64
+ return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks, Pt) - 1 : 0;
65
+ }
66
+ function X(t) {
67
+ return function() {
68
+ return t;
69
+ };
70
+ }
71
+ function ut(t, e) {
72
+ return Q(t.source, e.source) || t.index - e.index;
73
+ }
74
+ function ht(t, e) {
75
+ return Q(t.target, e.target) || t.index - e.index;
76
+ }
77
+ function Q(t, e) {
78
+ return t.y0 - e.y0;
79
+ }
80
+ function it(t) {
81
+ return t.value;
82
+ }
83
+ function Dt(t) {
84
+ return t.index;
85
+ }
86
+ function $t(t) {
87
+ return t.nodes;
88
+ }
89
+ function jt(t) {
90
+ return t.links;
91
+ }
92
+ function ft(t, e) {
93
+ const i = t.get(e);
94
+ if (!i) throw new Error("missing: " + e);
95
+ return i;
96
+ }
97
+ function yt({ nodes: t }) {
98
+ for (const e of t) {
99
+ let i = e.y0, a = i;
100
+ for (const h of e.sourceLinks)
101
+ h.y0 = i + h.width / 2, i += h.width;
102
+ for (const h of e.targetLinks)
103
+ h.y1 = a + h.width / 2, a += h.width;
104
+ }
105
+ }
106
+ function Bt() {
107
+ let t = 0, e = 0, i = 1, a = 1, h = 24, b = 8, p, k = Dt, s = mt, o, l, _ = $t, x = jt, y = 6;
108
+ function v() {
109
+ const n = { nodes: _.apply(null, arguments), links: x.apply(null, arguments) };
110
+ return M(n), T(n), N(n), C(n), S(n), yt(n), n;
111
+ }
112
+ v.update = function(n) {
113
+ return yt(n), n;
114
+ }, v.nodeId = function(n) {
115
+ return arguments.length ? (k = typeof n == "function" ? n : X(n), v) : k;
116
+ }, v.nodeAlign = function(n) {
117
+ return arguments.length ? (s = typeof n == "function" ? n : X(n), v) : s;
118
+ }, v.nodeSort = function(n) {
119
+ return arguments.length ? (o = n, v) : o;
120
+ }, v.nodeWidth = function(n) {
121
+ return arguments.length ? (h = +n, v) : h;
122
+ }, v.nodePadding = function(n) {
123
+ return arguments.length ? (b = p = +n, v) : b;
124
+ }, v.nodes = function(n) {
125
+ return arguments.length ? (_ = typeof n == "function" ? n : X(n), v) : _;
126
+ }, v.links = function(n) {
127
+ return arguments.length ? (x = typeof n == "function" ? n : X(n), v) : x;
128
+ }, v.linkSort = function(n) {
129
+ return arguments.length ? (l = n, v) : l;
130
+ }, v.size = function(n) {
131
+ return arguments.length ? (t = e = 0, i = +n[0], a = +n[1], v) : [i - t, a - e];
132
+ }, v.extent = function(n) {
133
+ return arguments.length ? (t = +n[0][0], i = +n[1][0], e = +n[0][1], a = +n[1][1], v) : [[t, e], [i, a]];
134
+ }, v.iterations = function(n) {
135
+ return arguments.length ? (y = +n, v) : y;
136
+ };
137
+ function M({ nodes: n, links: f }) {
138
+ for (const [c, r] of n.entries())
139
+ r.index = c, r.sourceLinks = [], r.targetLinks = [];
140
+ const u = new Map(n.map((c, r) => [k(c, r, n), c]));
141
+ for (const [c, r] of f.entries()) {
142
+ r.index = c;
143
+ let { source: m, target: w } = r;
144
+ typeof m != "object" && (m = r.source = ft(u, m)), typeof w != "object" && (w = r.target = ft(u, w)), m.sourceLinks.push(r), w.targetLinks.push(r);
145
+ }
146
+ if (l != null)
147
+ for (const { sourceLinks: c, targetLinks: r } of n)
148
+ c.sort(l), r.sort(l);
149
+ }
150
+ function T({ nodes: n }) {
151
+ for (const f of n)
152
+ f.value = f.fixedValue === void 0 ? Math.max(nt(f.sourceLinks, it), nt(f.targetLinks, it)) : f.fixedValue;
153
+ }
154
+ function N({ nodes: n }) {
155
+ const f = n.length;
156
+ let u = new Set(n), c = /* @__PURE__ */ new Set(), r = 0;
157
+ for (; u.size; ) {
158
+ for (const m of u) {
159
+ m.depth = r;
160
+ for (const { target: w } of m.sourceLinks)
161
+ c.add(w);
162
+ }
163
+ if (++r > f) throw new Error("circular link");
164
+ u = c, c = /* @__PURE__ */ new Set();
165
+ }
166
+ }
167
+ function C({ nodes: n }) {
168
+ const f = n.length;
169
+ let u = new Set(n), c = /* @__PURE__ */ new Set(), r = 0;
170
+ for (; u.size; ) {
171
+ for (const m of u) {
172
+ m.height = r;
173
+ for (const { source: w } of m.targetLinks)
174
+ c.add(w);
175
+ }
176
+ if (++r > f) throw new Error("circular link");
177
+ u = c, c = /* @__PURE__ */ new Set();
178
+ }
179
+ }
180
+ function D({ nodes: n }) {
181
+ const f = ct(n, (r) => r.depth) + 1, u = (i - t - h) / (f - 1), c = new Array(f);
182
+ for (const r of n) {
183
+ const m = Math.max(0, Math.min(f - 1, Math.floor(s.call(null, r, f))));
184
+ r.layer = m, r.x0 = t + m * u, r.x1 = r.x0 + h, c[m] ? c[m].push(r) : c[m] = [r];
185
+ }
186
+ if (o) for (const r of c)
187
+ r.sort(o);
188
+ return c;
189
+ }
190
+ function R(n) {
191
+ const f = pt(n, (u) => (a - e - (u.length - 1) * p) / nt(u, it));
192
+ for (const u of n) {
193
+ let c = e;
194
+ for (const r of u) {
195
+ r.y0 = c, r.y1 = c + r.value * f, c = r.y1 + p;
196
+ for (const m of r.sourceLinks)
197
+ m.width = m.value * f;
198
+ }
199
+ c = (a - c + p) / (u.length + 1);
200
+ for (let r = 0; r < u.length; ++r) {
201
+ const m = u[r];
202
+ m.y0 += c * (r + 1), m.y1 += c * (r + 1);
203
+ }
204
+ A(u);
205
+ }
206
+ }
207
+ function S(n) {
208
+ const f = D(n);
209
+ p = Math.min(b, (a - e) / (ct(f, (u) => u.length) - 1)), R(f);
210
+ for (let u = 0; u < y; ++u) {
211
+ const c = Math.pow(0.99, u), r = Math.max(1 - c, (u + 1) / y);
212
+ B(f, c, r), P(f, c, r);
213
+ }
214
+ }
215
+ function P(n, f, u) {
216
+ for (let c = 1, r = n.length; c < r; ++c) {
217
+ const m = n[c];
218
+ for (const w of m) {
219
+ let L = 0, V = 0;
220
+ for (const { source: Y, value: et } of w.targetLinks) {
221
+ let q = et * (w.layer - Y.layer);
222
+ L += $(Y, w) * q, V += q;
223
+ }
224
+ if (!(V > 0)) continue;
225
+ let G = (L / V - w.y0) * f;
226
+ w.y0 += G, w.y1 += G, E(w);
227
+ }
228
+ o === void 0 && m.sort(Q), O(m, u);
229
+ }
230
+ }
231
+ function B(n, f, u) {
232
+ for (let c = n.length, r = c - 2; r >= 0; --r) {
233
+ const m = n[r];
234
+ for (const w of m) {
235
+ let L = 0, V = 0;
236
+ for (const { target: Y, value: et } of w.sourceLinks) {
237
+ let q = et * (Y.layer - w.layer);
238
+ L += I(w, Y) * q, V += q;
239
+ }
240
+ if (!(V > 0)) continue;
241
+ let G = (L / V - w.y0) * f;
242
+ w.y0 += G, w.y1 += G, E(w);
243
+ }
244
+ o === void 0 && m.sort(Q), O(m, u);
245
+ }
246
+ }
247
+ function O(n, f) {
248
+ const u = n.length >> 1, c = n[u];
249
+ d(n, c.y0 - p, u - 1, f), z(n, c.y1 + p, u + 1, f), d(n, a, n.length - 1, f), z(n, e, 0, f);
250
+ }
251
+ function z(n, f, u, c) {
252
+ for (; u < n.length; ++u) {
253
+ const r = n[u], m = (f - r.y0) * c;
254
+ m > 1e-6 && (r.y0 += m, r.y1 += m), f = r.y1 + p;
255
+ }
256
+ }
257
+ function d(n, f, u, c) {
258
+ for (; u >= 0; --u) {
259
+ const r = n[u], m = (r.y1 - f) * c;
260
+ m > 1e-6 && (r.y0 -= m, r.y1 -= m), f = r.y0 - p;
261
+ }
262
+ }
263
+ function E({ sourceLinks: n, targetLinks: f }) {
264
+ if (l === void 0) {
265
+ for (const { source: { sourceLinks: u } } of f)
266
+ u.sort(ht);
267
+ for (const { target: { targetLinks: u } } of n)
268
+ u.sort(ut);
269
+ }
270
+ }
271
+ function A(n) {
272
+ if (l === void 0)
273
+ for (const { sourceLinks: f, targetLinks: u } of n)
274
+ f.sort(ht), u.sort(ut);
275
+ }
276
+ function $(n, f) {
277
+ let u = n.y0 - (n.sourceLinks.length - 1) * p / 2;
278
+ for (const { target: c, width: r } of n.sourceLinks) {
279
+ if (c === f) break;
280
+ u += r + p;
281
+ }
282
+ for (const { source: c, width: r } of f.targetLinks) {
283
+ if (c === n) break;
284
+ u -= r;
285
+ }
286
+ return u;
287
+ }
288
+ function I(n, f) {
289
+ let u = f.y0 - (f.targetLinks.length - 1) * p / 2;
290
+ for (const { source: c, width: r } of f.targetLinks) {
291
+ if (c === n) break;
292
+ u += r + p;
293
+ }
294
+ for (const { target: c, width: r } of n.sourceLinks) {
295
+ if (c === f) break;
296
+ u -= r;
297
+ }
298
+ return u;
299
+ }
300
+ return v;
301
+ }
302
+ var st = Math.PI, rt = 2 * st, F = 1e-6, Rt = rt - F;
303
+ function ot() {
304
+ this._x0 = this._y0 = // start of current subpath
305
+ this._x1 = this._y1 = null, this._ = "";
306
+ }
307
+ function kt() {
308
+ return new ot();
309
+ }
310
+ ot.prototype = kt.prototype = {
311
+ constructor: ot,
312
+ moveTo: function(t, e) {
313
+ this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e);
314
+ },
315
+ closePath: function() {
316
+ this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
317
+ },
318
+ lineTo: function(t, e) {
319
+ this._ += "L" + (this._x1 = +t) + "," + (this._y1 = +e);
320
+ },
321
+ quadraticCurveTo: function(t, e, i, a) {
322
+ this._ += "Q" + +t + "," + +e + "," + (this._x1 = +i) + "," + (this._y1 = +a);
323
+ },
324
+ bezierCurveTo: function(t, e, i, a, h, b) {
325
+ this._ += "C" + +t + "," + +e + "," + +i + "," + +a + "," + (this._x1 = +h) + "," + (this._y1 = +b);
326
+ },
327
+ arcTo: function(t, e, i, a, h) {
328
+ t = +t, e = +e, i = +i, a = +a, h = +h;
329
+ var b = this._x1, p = this._y1, k = i - t, s = a - e, o = b - t, l = p - e, _ = o * o + l * l;
330
+ if (h < 0) throw new Error("negative radius: " + h);
331
+ if (this._x1 === null)
332
+ this._ += "M" + (this._x1 = t) + "," + (this._y1 = e);
333
+ else if (_ > F) if (!(Math.abs(l * k - s * o) > F) || !h)
334
+ this._ += "L" + (this._x1 = t) + "," + (this._y1 = e);
335
+ else {
336
+ var x = i - b, y = a - p, v = k * k + s * s, M = x * x + y * y, T = Math.sqrt(v), N = Math.sqrt(_), C = h * Math.tan((st - Math.acos((v + _ - M) / (2 * T * N))) / 2), D = C / N, R = C / T;
337
+ Math.abs(D - 1) > F && (this._ += "L" + (t + D * o) + "," + (e + D * l)), this._ += "A" + h + "," + h + ",0,0," + +(l * x > o * y) + "," + (this._x1 = t + R * k) + "," + (this._y1 = e + R * s);
338
+ }
339
+ },
340
+ arc: function(t, e, i, a, h, b) {
341
+ t = +t, e = +e, i = +i, b = !!b;
342
+ var p = i * Math.cos(a), k = i * Math.sin(a), s = t + p, o = e + k, l = 1 ^ b, _ = b ? a - h : h - a;
343
+ if (i < 0) throw new Error("negative radius: " + i);
344
+ this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) > F || Math.abs(this._y1 - o) > F) && (this._ += "L" + s + "," + o), i && (_ < 0 && (_ = _ % rt + rt), _ > Rt ? this._ += "A" + i + "," + i + ",0,1," + l + "," + (t - p) + "," + (e - k) + "A" + i + "," + i + ",0,1," + l + "," + (this._x1 = s) + "," + (this._y1 = o) : _ > F && (this._ += "A" + i + "," + i + ",0," + +(_ >= st) + "," + l + "," + (this._x1 = t + i * Math.cos(h)) + "," + (this._y1 = e + i * Math.sin(h))));
345
+ },
346
+ rect: function(t, e, i, a) {
347
+ this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e) + "h" + +i + "v" + +a + "h" + -i + "Z";
348
+ },
349
+ toString: function() {
350
+ return this._;
351
+ }
352
+ };
353
+ function dt(t) {
354
+ return function() {
355
+ return t;
356
+ };
357
+ }
358
+ function Vt(t) {
359
+ return t[0];
360
+ }
361
+ function Ft(t) {
362
+ return t[1];
363
+ }
364
+ var Wt = Array.prototype.slice;
365
+ function Ut(t) {
366
+ return t.source;
367
+ }
368
+ function Gt(t) {
369
+ return t.target;
370
+ }
371
+ function Yt(t) {
372
+ var e = Ut, i = Gt, a = Vt, h = Ft, b = null;
373
+ function p() {
374
+ var k, s = Wt.call(arguments), o = e.apply(this, s), l = i.apply(this, s);
375
+ if (b || (b = k = kt()), t(b, +a.apply(this, (s[0] = o, s)), +h.apply(this, s), +a.apply(this, (s[0] = l, s)), +h.apply(this, s)), k) return b = null, k + "" || null;
376
+ }
377
+ return p.source = function(k) {
378
+ return arguments.length ? (e = k, p) : e;
379
+ }, p.target = function(k) {
380
+ return arguments.length ? (i = k, p) : i;
381
+ }, p.x = function(k) {
382
+ return arguments.length ? (a = typeof k == "function" ? k : dt(+k), p) : a;
383
+ }, p.y = function(k) {
384
+ return arguments.length ? (h = typeof k == "function" ? k : dt(+k), p) : h;
385
+ }, p.context = function(k) {
386
+ return arguments.length ? (b = k ?? null, p) : b;
387
+ }, p;
388
+ }
389
+ function qt(t, e, i, a, h) {
390
+ t.moveTo(e, i), t.bezierCurveTo(e = (e + a) / 2, i, e, h, a, h);
391
+ }
392
+ function Ht() {
393
+ return Yt(qt);
394
+ }
395
+ function Xt(t) {
396
+ return [t.source.x1, t.y0];
397
+ }
398
+ function Qt(t) {
399
+ return [t.target.x0, t.y1];
400
+ }
401
+ function Kt() {
402
+ return Ht().source(Xt).target(Qt);
403
+ }
404
+ var at = function() {
405
+ var t = /* @__PURE__ */ g(function(k, s, o, l) {
406
+ for (o = o || {}, l = k.length; l--; o[k[l]] = s) ;
407
+ return o;
408
+ }, "o"), e = [1, 9], i = [1, 10], a = [1, 5, 10, 12], h = {
409
+ trace: /* @__PURE__ */ g(function() {
410
+ }, "trace"),
411
+ yy: {},
412
+ symbols_: { error: 2, start: 3, SANKEY: 4, NEWLINE: 5, csv: 6, opt_eof: 7, record: 8, csv_tail: 9, EOF: 10, "field[source]": 11, COMMA: 12, "field[target]": 13, "field[value]": 14, field: 15, escaped: 16, non_escaped: 17, DQUOTE: 18, ESCAPED_TEXT: 19, NON_ESCAPED_TEXT: 20, $accept: 0, $end: 1 },
413
+ terminals_: { 2: "error", 4: "SANKEY", 5: "NEWLINE", 10: "EOF", 11: "field[source]", 12: "COMMA", 13: "field[target]", 14: "field[value]", 18: "DQUOTE", 19: "ESCAPED_TEXT", 20: "NON_ESCAPED_TEXT" },
414
+ productions_: [0, [3, 4], [6, 2], [9, 2], [9, 0], [7, 1], [7, 0], [8, 5], [15, 1], [15, 1], [16, 3], [17, 1]],
415
+ performAction: /* @__PURE__ */ g(function(s, o, l, _, x, y, v) {
416
+ var M = y.length - 1;
417
+ switch (x) {
418
+ case 7:
419
+ const T = _.findOrCreateNode(y[M - 4].trim().replaceAll('""', '"')), N = _.findOrCreateNode(y[M - 2].trim().replaceAll('""', '"')), C = parseFloat(y[M].trim());
420
+ _.addLink(T, N, C);
421
+ break;
422
+ case 8:
423
+ case 9:
424
+ case 11:
425
+ this.$ = y[M];
426
+ break;
427
+ case 10:
428
+ this.$ = y[M - 1];
429
+ break;
430
+ }
431
+ }, "anonymous"),
432
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, { 5: [1, 3] }, { 6: 4, 8: 5, 15: 6, 16: 7, 17: 8, 18: e, 20: i }, { 1: [2, 6], 7: 11, 10: [1, 12] }, t(i, [2, 4], { 9: 13, 5: [1, 14] }), { 12: [1, 15] }, t(a, [2, 8]), t(a, [2, 9]), { 19: [1, 16] }, t(a, [2, 11]), { 1: [2, 1] }, { 1: [2, 5] }, t(i, [2, 2]), { 6: 17, 8: 5, 15: 6, 16: 7, 17: 8, 18: e, 20: i }, { 15: 18, 16: 7, 17: 8, 18: e, 20: i }, { 18: [1, 19] }, t(i, [2, 3]), { 12: [1, 20] }, t(a, [2, 10]), { 15: 21, 16: 7, 17: 8, 18: e, 20: i }, t([1, 5, 10], [2, 7])],
433
+ defaultActions: { 11: [2, 1], 12: [2, 5] },
434
+ parseError: /* @__PURE__ */ g(function(s, o) {
435
+ if (o.recoverable)
436
+ this.trace(s);
437
+ else {
438
+ var l = new Error(s);
439
+ throw l.hash = o, l;
440
+ }
441
+ }, "parseError"),
442
+ parse: /* @__PURE__ */ g(function(s) {
443
+ var o = this, l = [0], _ = [], x = [null], y = [], v = this.table, M = "", T = 0, N = 0, C = 2, D = 1, R = y.slice.call(arguments, 1), S = Object.create(this.lexer), P = { yy: {} };
444
+ for (var B in this.yy)
445
+ Object.prototype.hasOwnProperty.call(this.yy, B) && (P.yy[B] = this.yy[B]);
446
+ S.setInput(s, P.yy), P.yy.lexer = S, P.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
447
+ var O = S.yylloc;
448
+ y.push(O);
449
+ var z = S.options && S.options.ranges;
450
+ typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
451
+ function d(L) {
452
+ l.length = l.length - 2 * L, x.length = x.length - L, y.length = y.length - L;
453
+ }
454
+ g(d, "popStack");
455
+ function E() {
456
+ var L;
457
+ return L = _.pop() || S.lex() || D, typeof L != "number" && (L instanceof Array && (_ = L, L = _.pop()), L = o.symbols_[L] || L), L;
458
+ }
459
+ g(E, "lex");
460
+ for (var A, $, I, n, f = {}, u, c, r, m; ; ) {
461
+ if ($ = l[l.length - 1], this.defaultActions[$] ? I = this.defaultActions[$] : ((A === null || typeof A > "u") && (A = E()), I = v[$] && v[$][A]), typeof I > "u" || !I.length || !I[0]) {
462
+ var w = "";
463
+ m = [];
464
+ for (u in v[$])
465
+ this.terminals_[u] && u > C && m.push("'" + this.terminals_[u] + "'");
466
+ S.showPosition ? w = "Parse error on line " + (T + 1) + `:
467
+ ` + S.showPosition() + `
468
+ Expecting ` + m.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "Parse error on line " + (T + 1) + ": Unexpected " + (A == D ? "end of input" : "'" + (this.terminals_[A] || A) + "'"), this.parseError(w, {
469
+ text: S.match,
470
+ token: this.terminals_[A] || A,
471
+ line: S.yylineno,
472
+ loc: O,
473
+ expected: m
474
+ });
475
+ }
476
+ if (I[0] instanceof Array && I.length > 1)
477
+ throw new Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + A);
478
+ switch (I[0]) {
479
+ case 1:
480
+ l.push(A), x.push(S.yytext), y.push(S.yylloc), l.push(I[1]), A = null, N = S.yyleng, M = S.yytext, T = S.yylineno, O = S.yylloc;
481
+ break;
482
+ case 2:
483
+ if (c = this.productions_[I[1]][1], f.$ = x[x.length - c], f._$ = {
484
+ first_line: y[y.length - (c || 1)].first_line,
485
+ last_line: y[y.length - 1].last_line,
486
+ first_column: y[y.length - (c || 1)].first_column,
487
+ last_column: y[y.length - 1].last_column
488
+ }, z && (f._$.range = [
489
+ y[y.length - (c || 1)].range[0],
490
+ y[y.length - 1].range[1]
491
+ ]), n = this.performAction.apply(f, [
492
+ M,
493
+ N,
494
+ T,
495
+ P.yy,
496
+ I[1],
497
+ x,
498
+ y
499
+ ].concat(R)), typeof n < "u")
500
+ return n;
501
+ c && (l = l.slice(0, -1 * c * 2), x = x.slice(0, -1 * c), y = y.slice(0, -1 * c)), l.push(this.productions_[I[1]][0]), x.push(f.$), y.push(f._$), r = v[l[l.length - 2]][l[l.length - 1]], l.push(r);
502
+ break;
503
+ case 3:
504
+ return !0;
505
+ }
506
+ }
507
+ return !0;
508
+ }, "parse")
509
+ }, b = /* @__PURE__ */ function() {
510
+ var k = {
511
+ EOF: 1,
512
+ parseError: /* @__PURE__ */ g(function(o, l) {
513
+ if (this.yy.parser)
514
+ this.yy.parser.parseError(o, l);
515
+ else
516
+ throw new Error(o);
517
+ }, "parseError"),
518
+ // resets the lexer, sets new input
519
+ setInput: /* @__PURE__ */ g(function(s, o) {
520
+ return this.yy = o || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
521
+ first_line: 1,
522
+ first_column: 0,
523
+ last_line: 1,
524
+ last_column: 0
525
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
526
+ }, "setInput"),
527
+ // consumes and returns one char from the input
528
+ input: /* @__PURE__ */ g(function() {
529
+ var s = this._input[0];
530
+ this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
531
+ var o = s.match(/(?:\r\n?|\n).*/g);
532
+ return o ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
533
+ }, "input"),
534
+ // unshifts one char (or a string) into the input
535
+ unput: /* @__PURE__ */ g(function(s) {
536
+ var o = s.length, l = s.split(/(?:\r\n?|\n)/g);
537
+ this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - o), this.offset -= o;
538
+ var _ = this.match.split(/(?:\r\n?|\n)/g);
539
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
540
+ var x = this.yylloc.range;
541
+ return this.yylloc = {
542
+ first_line: this.yylloc.first_line,
543
+ last_line: this.yylineno + 1,
544
+ first_column: this.yylloc.first_column,
545
+ last_column: l ? (l.length === _.length ? this.yylloc.first_column : 0) + _[_.length - l.length].length - l[0].length : this.yylloc.first_column - o
546
+ }, this.options.ranges && (this.yylloc.range = [x[0], x[0] + this.yyleng - o]), this.yyleng = this.yytext.length, this;
547
+ }, "unput"),
548
+ // When called from action, caches matched text and appends it on next action
549
+ more: /* @__PURE__ */ g(function() {
550
+ return this._more = !0, this;
551
+ }, "more"),
552
+ // 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.
553
+ reject: /* @__PURE__ */ g(function() {
554
+ if (this.options.backtrack_lexer)
555
+ this._backtrack = !0;
556
+ else
557
+ 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).
558
+ ` + this.showPosition(), {
559
+ text: "",
560
+ token: null,
561
+ line: this.yylineno
562
+ });
563
+ return this;
564
+ }, "reject"),
565
+ // retain first n characters of the match
566
+ less: /* @__PURE__ */ g(function(s) {
567
+ this.unput(this.match.slice(s));
568
+ }, "less"),
569
+ // displays already matched input, i.e. for error messages
570
+ pastInput: /* @__PURE__ */ g(function() {
571
+ var s = this.matched.substr(0, this.matched.length - this.match.length);
572
+ return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
573
+ }, "pastInput"),
574
+ // displays upcoming input, i.e. for error messages
575
+ upcomingInput: /* @__PURE__ */ g(function() {
576
+ var s = this.match;
577
+ return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
578
+ }, "upcomingInput"),
579
+ // displays the character position where the lexing error occurred, i.e. for error messages
580
+ showPosition: /* @__PURE__ */ g(function() {
581
+ var s = this.pastInput(), o = new Array(s.length + 1).join("-");
582
+ return s + this.upcomingInput() + `
583
+ ` + o + "^";
584
+ }, "showPosition"),
585
+ // test the lexed token: return FALSE when not a match, otherwise return token
586
+ test_match: /* @__PURE__ */ g(function(s, o) {
587
+ var l, _, x;
588
+ if (this.options.backtrack_lexer && (x = {
589
+ yylineno: this.yylineno,
590
+ yylloc: {
591
+ first_line: this.yylloc.first_line,
592
+ last_line: this.last_line,
593
+ first_column: this.yylloc.first_column,
594
+ last_column: this.yylloc.last_column
595
+ },
596
+ yytext: this.yytext,
597
+ match: this.match,
598
+ matches: this.matches,
599
+ matched: this.matched,
600
+ yyleng: this.yyleng,
601
+ offset: this.offset,
602
+ _more: this._more,
603
+ _input: this._input,
604
+ yy: this.yy,
605
+ conditionStack: this.conditionStack.slice(0),
606
+ done: this.done
607
+ }, this.options.ranges && (x.yylloc.range = this.yylloc.range.slice(0))), _ = s[0].match(/(?:\r\n?|\n).*/g), _ && (this.yylineno += _.length), this.yylloc = {
608
+ first_line: this.yylloc.last_line,
609
+ last_line: this.yylineno + 1,
610
+ first_column: this.yylloc.last_column,
611
+ last_column: _ ? _[_.length - 1].length - _[_.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
612
+ }, this.yytext += s[0], this.match += s[0], this.matches = s, 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(s[0].length), this.matched += s[0], l = this.performAction.call(this, this.yy, this, o, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l)
613
+ return l;
614
+ if (this._backtrack) {
615
+ for (var y in x)
616
+ this[y] = x[y];
617
+ return !1;
618
+ }
619
+ return !1;
620
+ }, "test_match"),
621
+ // return next match in input
622
+ next: /* @__PURE__ */ g(function() {
623
+ if (this.done)
624
+ return this.EOF;
625
+ this._input || (this.done = !0);
626
+ var s, o, l, _;
627
+ this._more || (this.yytext = "", this.match = "");
628
+ for (var x = this._currentRules(), y = 0; y < x.length; y++)
629
+ if (l = this._input.match(this.rules[x[y]]), l && (!o || l[0].length > o[0].length)) {
630
+ if (o = l, _ = y, this.options.backtrack_lexer) {
631
+ if (s = this.test_match(l, x[y]), s !== !1)
632
+ return s;
633
+ if (this._backtrack) {
634
+ o = !1;
635
+ continue;
636
+ } else
637
+ return !1;
638
+ } else if (!this.options.flex)
639
+ break;
640
+ }
641
+ return o ? (s = this.test_match(o, x[_]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
642
+ ` + this.showPosition(), {
643
+ text: "",
644
+ token: null,
645
+ line: this.yylineno
646
+ });
647
+ }, "next"),
648
+ // return next match that has a token
649
+ lex: /* @__PURE__ */ g(function() {
650
+ var o = this.next();
651
+ return o || this.lex();
652
+ }, "lex"),
653
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
654
+ begin: /* @__PURE__ */ g(function(o) {
655
+ this.conditionStack.push(o);
656
+ }, "begin"),
657
+ // pop the previously active lexer condition state off the condition stack
658
+ popState: /* @__PURE__ */ g(function() {
659
+ var o = this.conditionStack.length - 1;
660
+ return o > 0 ? this.conditionStack.pop() : this.conditionStack[0];
661
+ }, "popState"),
662
+ // produce the lexer rule set which is active for the currently active lexer condition state
663
+ _currentRules: /* @__PURE__ */ g(function() {
664
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
665
+ }, "_currentRules"),
666
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
667
+ topState: /* @__PURE__ */ g(function(o) {
668
+ return o = this.conditionStack.length - 1 - Math.abs(o || 0), o >= 0 ? this.conditionStack[o] : "INITIAL";
669
+ }, "topState"),
670
+ // alias for begin(condition)
671
+ pushState: /* @__PURE__ */ g(function(o) {
672
+ this.begin(o);
673
+ }, "pushState"),
674
+ // return the number of states currently on the stack
675
+ stateStackSize: /* @__PURE__ */ g(function() {
676
+ return this.conditionStack.length;
677
+ }, "stateStackSize"),
678
+ options: { "case-insensitive": !0 },
679
+ performAction: /* @__PURE__ */ g(function(o, l, _, x) {
680
+ switch (_) {
681
+ case 0:
682
+ return this.pushState("csv"), 4;
683
+ case 1:
684
+ return this.pushState("csv"), 4;
685
+ case 2:
686
+ return 10;
687
+ case 3:
688
+ return 5;
689
+ case 4:
690
+ return 12;
691
+ case 5:
692
+ return this.pushState("escaped_text"), 18;
693
+ case 6:
694
+ return 20;
695
+ case 7:
696
+ return this.popState("escaped_text"), 18;
697
+ case 8:
698
+ return 19;
699
+ }
700
+ }, "anonymous"),
701
+ rules: [/^(?:sankey-beta\b)/i, /^(?:sankey\b)/i, /^(?:$)/i, /^(?:((\u000D\u000A)|(\u000A)))/i, /^(?:(\u002C))/i, /^(?:(\u0022))/i, /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i, /^(?:(\u0022)(?!(\u0022)))/i, /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],
702
+ conditions: { csv: { rules: [2, 3, 4, 5, 6, 7, 8], inclusive: !1 }, escaped_text: { rules: [7, 8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8], inclusive: !0 } }
703
+ };
704
+ return k;
705
+ }();
706
+ h.lexer = b;
707
+ function p() {
708
+ this.yy = {};
709
+ }
710
+ return g(p, "Parser"), p.prototype = h, h.Parser = p, new p();
711
+ }();
712
+ at.parser = at;
713
+ var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */ g(() => {
714
+ J = [], tt = [], Z = /* @__PURE__ */ new Map(), At();
715
+ }, "clear"), W, Jt = (W = class {
716
+ constructor(e, i, a = 0) {
717
+ this.source = e, this.target = i, this.value = a;
718
+ }
719
+ }, g(W, "SankeyLink"), W), te = /* @__PURE__ */ g((t, e, i) => {
720
+ J.push(new Jt(t, e, i));
721
+ }, "addLink"), U, ee = (U = class {
722
+ constructor(e) {
723
+ this.ID = e;
724
+ }
725
+ }, g(U, "SankeyNode"), U), ne = /* @__PURE__ */ g((t) => {
726
+ t = Tt.sanitizeText(t, lt());
727
+ let e = Z.get(t);
728
+ return e === void 0 && (e = new ee(t), Z.set(t, e), tt.push(e)), e;
729
+ }, "findOrCreateNode"), ie = /* @__PURE__ */ g(() => tt, "getNodes"), se = /* @__PURE__ */ g(() => J, "getLinks"), re = /* @__PURE__ */ g(() => ({
730
+ nodes: tt.map((t) => ({ id: t.ID })),
731
+ links: J.map((t) => ({
732
+ source: t.source.ID,
733
+ target: t.target.ID,
734
+ value: t.value
735
+ }))
736
+ }), "getGraph"), oe = {
737
+ nodesMap: Z,
738
+ getConfig: /* @__PURE__ */ g(() => lt().sankey, "getConfig"),
739
+ getNodes: ie,
740
+ getLinks: se,
741
+ getGraph: re,
742
+ addLink: te,
743
+ findOrCreateNode: ne,
744
+ getAccTitle: St,
745
+ setAccTitle: wt,
746
+ getAccDescription: bt,
747
+ setAccDescription: vt,
748
+ getDiagramTitle: xt,
749
+ setDiagramTitle: _t,
750
+ clear: Zt
751
+ }, j, gt = (j = class {
752
+ static next(e) {
753
+ return new j(e + ++j.count);
754
+ }
755
+ constructor(e) {
756
+ this.id = e, this.href = `#${e}`;
757
+ }
758
+ toString() {
759
+ return "url(" + this.href + ")";
760
+ }
761
+ }, g(j, "Uid"), j.count = 0, j), ae = {
762
+ left: Ct,
763
+ right: Ot,
764
+ center: zt,
765
+ justify: mt
766
+ }, le = /* @__PURE__ */ g(function(t, e, i, a) {
767
+ const { securityLevel: h, sankey: b } = lt(), p = Lt.sankey;
768
+ let k;
769
+ h === "sandbox" && (k = H("#i" + e));
770
+ const s = h === "sandbox" ? H(k.nodes()[0].contentDocument.body) : H("body"), o = h === "sandbox" ? s.select(`[id="${e}"]`) : H(`[id="${e}"]`), l = b?.width ?? p.width, _ = b?.height ?? p.width, x = b?.useMaxWidth ?? p.useMaxWidth, y = b?.nodeAlignment ?? p.nodeAlignment, v = b?.prefix ?? p.prefix, M = b?.suffix ?? p.suffix, T = b?.showValues ?? p.showValues, N = a.db.getGraph(), C = ae[y];
771
+ Bt().nodeId((d) => d.id).nodeWidth(10).nodePadding(10 + (T ? 15 : 0)).nodeAlign(C).extent([
772
+ [0, 0],
773
+ [l, _]
774
+ ])(N);
775
+ const S = Mt(It);
776
+ o.append("g").attr("class", "nodes").selectAll(".node").data(N.nodes).join("g").attr("class", "node").attr("id", (d) => (d.uid = gt.next("node-")).id).attr("transform", function(d) {
777
+ return "translate(" + d.x0 + "," + d.y0 + ")";
778
+ }).attr("x", (d) => d.x0).attr("y", (d) => d.y0).append("rect").attr("height", (d) => d.y1 - d.y0).attr("width", (d) => d.x1 - d.x0).attr("fill", (d) => S(d.id));
779
+ const P = /* @__PURE__ */ g(({ id: d, value: E }) => T ? `${d}
780
+ ${v}${Math.round(E * 100) / 100}${M}` : d, "getText");
781
+ o.append("g").attr("class", "node-labels").attr("font-size", 14).selectAll("text").data(N.nodes).join("text").attr("x", (d) => d.x0 < l / 2 ? d.x1 + 6 : d.x0 - 6).attr("y", (d) => (d.y1 + d.y0) / 2).attr("dy", `${T ? "0" : "0.35"}em`).attr("text-anchor", (d) => d.x0 < l / 2 ? "start" : "end").text(P);
782
+ const B = o.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(N.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), O = b?.linkColor ?? "gradient";
783
+ if (O === "gradient") {
784
+ const d = B.append("linearGradient").attr("id", (E) => (E.uid = gt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (E) => E.source.x1).attr("x2", (E) => E.target.x0);
785
+ d.append("stop").attr("offset", "0%").attr("stop-color", (E) => S(E.source.id)), d.append("stop").attr("offset", "100%").attr("stop-color", (E) => S(E.target.id));
786
+ }
787
+ let z;
788
+ switch (O) {
789
+ case "gradient":
790
+ z = /* @__PURE__ */ g((d) => d.uid, "coloring");
791
+ break;
792
+ case "source":
793
+ z = /* @__PURE__ */ g((d) => S(d.source.id), "coloring");
794
+ break;
795
+ case "target":
796
+ z = /* @__PURE__ */ g((d) => S(d.target.id), "coloring");
797
+ break;
798
+ default:
799
+ z = O;
800
+ }
801
+ B.append("path").attr("d", Kt()).attr("stroke", z).attr("stroke-width", (d) => Math.max(1, d.width)), Et(void 0, o, 0, x);
802
+ }, "draw"), ce = {
803
+ draw: le
804
+ }, ue = /* @__PURE__ */ g((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
805
+ `).trim(), "prepareTextForParsing"), he = /* @__PURE__ */ g((t) => `.label {
806
+ font-family: ${t.fontFamily};
807
+ }`, "getStyles"), fe = he, ye = K.parse.bind(K);
808
+ K.parse = (t) => ye(ue(t));
809
+ var me = {
810
+ styles: fe,
811
+ parser: K,
812
+ db: oe,
813
+ renderer: ce
814
+ };
815
+ export {
816
+ me as diagram
817
+ };