@digipair/skill-web-chatbot 0.8.37 → 0.8.40

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 (129) hide show
  1. package/Tableau10-558cc280.cjs.js +9 -0
  2. package/Tableau10-558cc280.esm.js +7 -0
  3. package/arc-d1f6357e.cjs.js +88 -0
  4. package/arc-d1f6357e.esm.js +86 -0
  5. package/blockDiagram-5dc23a45.cjs.js +2921 -0
  6. package/blockDiagram-5dc23a45.esm.js +2919 -0
  7. package/{c4Diagram-1bdb45a8.cjs.js → c4Diagram-1e775db3.cjs.js} +1904 -2130
  8. package/{c4Diagram-1bdb45a8.esm.js → c4Diagram-1e775db3.esm.js} +1906 -2132
  9. package/channel-ebbc4130.cjs.js +9 -0
  10. package/channel-ebbc4130.esm.js +7 -0
  11. package/classDiagram-f52caa06.cjs.js +209 -0
  12. package/classDiagram-f52caa06.esm.js +207 -0
  13. package/{classDiagram-v2-6dc3b9c3.cjs.js → classDiagram-v2-640c694e.cjs.js} +74 -76
  14. package/{classDiagram-v2-6dc3b9c3.esm.js → classDiagram-v2-640c694e.esm.js} +75 -77
  15. package/clone-afc2f047.cjs.js +10 -0
  16. package/clone-afc2f047.esm.js +8 -0
  17. package/createText-03b82060.cjs.js +2936 -0
  18. package/createText-03b82060.esm.js +2933 -0
  19. package/edges-16357fde.cjs.js +1998 -0
  20. package/edges-16357fde.esm.js +1981 -0
  21. package/erDiagram-c7ff1bec.cjs.js +1807 -0
  22. package/erDiagram-c7ff1bec.esm.js +1805 -0
  23. package/flowDb-9a89ea33.cjs.js +5542 -0
  24. package/flowDb-9a89ea33.esm.js +5538 -0
  25. package/flowDiagram-aadb13b0.cjs.js +1351 -0
  26. package/flowDiagram-aadb13b0.esm.js +1349 -0
  27. package/flowDiagram-v2-f2119625.cjs.js +31 -0
  28. package/flowDiagram-v2-f2119625.esm.js +29 -0
  29. package/flowchart-elk-definition-cf813a97.cjs.js +50257 -0
  30. package/flowchart-elk-definition-cf813a97.esm.js +50255 -0
  31. package/ganttDiagram-3c2fde2b.cjs.js +3710 -0
  32. package/ganttDiagram-3c2fde2b.esm.js +3708 -0
  33. package/{gitGraphDiagram-c3fe571f.cjs.js → gitGraphDiagram-c3a0619c.cjs.js} +1608 -1651
  34. package/{gitGraphDiagram-c3fe571f.esm.js → gitGraphDiagram-c3a0619c.esm.js} +1609 -1652
  35. package/graph-0ee63739.cjs.js +961 -0
  36. package/graph-0ee63739.esm.js +938 -0
  37. package/index-bb6d8841.cjs.js +648 -0
  38. package/index-bb6d8841.esm.js +646 -0
  39. package/index.cjs2.js +5410 -4623
  40. package/index.esm.js +1 -1
  41. package/index.esm2.js +5291 -4527
  42. package/{infoDiagram-9c10eab1.cjs.js → infoDiagram-2f5c50c0.cjs.js} +63 -70
  43. package/{infoDiagram-9c10eab1.esm.js → infoDiagram-2f5c50c0.esm.js} +64 -71
  44. package/journeyDiagram-14fe341a.cjs.js +1061 -0
  45. package/journeyDiagram-14fe341a.esm.js +1059 -0
  46. package/katex-d90b6d29.cjs.js +25690 -0
  47. package/katex-d90b6d29.esm.js +25688 -0
  48. package/layout-fd473db2.cjs.js +1626 -0
  49. package/layout-fd473db2.esm.js +1619 -0
  50. package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +0 -2
  51. package/line-24d93f1b.cjs.js +34 -0
  52. package/line-24d93f1b.esm.js +32 -0
  53. package/linear-9bcf74c4.cjs.js +537 -0
  54. package/linear-9bcf74c4.esm.js +531 -0
  55. package/{mindmap-definition-a9d0f378.cjs.js → mindmap-definition-9399c7e6.cjs.js} +7874 -7610
  56. package/{mindmap-definition-a9d0f378.esm.js → mindmap-definition-9399c7e6.esm.js} +7875 -7611
  57. package/package.json +1 -1
  58. package/path-428ebac9.cjs.js +317 -0
  59. package/path-428ebac9.esm.js +314 -0
  60. package/pieDiagram-828dae43.cjs.js +951 -0
  61. package/pieDiagram-828dae43.esm.js +949 -0
  62. package/{quadrantDiagram-1763608a.cjs.js → quadrantDiagram-5fa00455.cjs.js} +1117 -1340
  63. package/{quadrantDiagram-1763608a.esm.js → quadrantDiagram-5fa00455.esm.js} +1118 -1341
  64. package/{requirementDiagram-779d93b3.cjs.js → requirementDiagram-03163dc4.cjs.js} +1044 -1228
  65. package/{requirementDiagram-779d93b3.esm.js → requirementDiagram-03163dc4.esm.js} +1045 -1229
  66. package/{sankeyDiagram-86a66bae.cjs.js → sankeyDiagram-52ec8976.cjs.js} +337 -339
  67. package/{sankeyDiagram-86a66bae.esm.js → sankeyDiagram-52ec8976.esm.js} +338 -340
  68. package/sequenceDiagram-b517d154.cjs.js +5949 -0
  69. package/sequenceDiagram-b517d154.esm.js +5947 -0
  70. package/{stateDiagram-6f4bb19d.cjs.js → stateDiagram-fca82b5b.cjs.js} +62 -61
  71. package/{stateDiagram-6f4bb19d.esm.js → stateDiagram-fca82b5b.esm.js} +65 -64
  72. package/{stateDiagram-v2-d72c79bd.cjs.js → stateDiagram-v2-ed04200a.cjs.js} +96 -100
  73. package/{stateDiagram-v2-d72c79bd.esm.js → stateDiagram-v2-ed04200a.esm.js} +98 -102
  74. package/{styles-659d7242.cjs.js → styles-11e81fdd.cjs.js} +1990 -1965
  75. package/{styles-659d7242.esm.js → styles-11e81fdd.esm.js} +1989 -1964
  76. package/{styles-3fb7b9cf.cjs.js → styles-cacbff60.cjs.js} +935 -1192
  77. package/{styles-3fb7b9cf.esm.js → styles-cacbff60.esm.js} +929 -1186
  78. package/styles-e75131e4.cjs.js +671 -0
  79. package/styles-e75131e4.esm.js +661 -0
  80. package/svgDrawCommon-ecc5f780.cjs.js +68 -0
  81. package/svgDrawCommon-ecc5f780.esm.js +60 -0
  82. package/timeline-definition-4ee9bff4.cjs.js +1161 -0
  83. package/timeline-definition-4ee9bff4.esm.js +1159 -0
  84. package/xychartDiagram-e5e6b652.cjs.js +3150 -0
  85. package/xychartDiagram-e5e6b652.esm.js +3148 -0
  86. package/arc-da8fd8d8.cjs.js +0 -88
  87. package/arc-da8fd8d8.esm.js +0 -86
  88. package/classDiagram-185c1a10.cjs.js +0 -96
  89. package/classDiagram-185c1a10.esm.js +0 -94
  90. package/constant-2fe7eae5.cjs.js +0 -58
  91. package/constant-2fe7eae5.esm.js +0 -55
  92. package/createText-94e3ebbf.cjs.js +0 -2775
  93. package/createText-94e3ebbf.esm.js +0 -2773
  94. package/edges-558884ee.cjs.js +0 -1450
  95. package/edges-558884ee.esm.js +0 -1436
  96. package/erDiagram-97139f44.cjs.js +0 -1949
  97. package/erDiagram-97139f44.esm.js +0 -1947
  98. package/flowDb-a4faf166.cjs.js +0 -6918
  99. package/flowDb-a4faf166.esm.js +0 -6914
  100. package/flowDiagram-ccbbb58d.cjs.js +0 -999
  101. package/flowDiagram-ccbbb58d.esm.js +0 -997
  102. package/flowDiagram-v2-79ccd6da.cjs.js +0 -29
  103. package/flowDiagram-v2-79ccd6da.esm.js +0 -27
  104. package/flowchart-elk-definition-7863a61f.cjs.js +0 -48577
  105. package/flowchart-elk-definition-7863a61f.esm.js +0 -48575
  106. package/ganttDiagram-3eff0dd8.cjs.js +0 -3855
  107. package/ganttDiagram-3eff0dd8.esm.js +0 -3853
  108. package/index-d0b453e2.cjs.js +0 -609
  109. package/index-d0b453e2.esm.js +0 -607
  110. package/journeyDiagram-b6904cec.cjs.js +0 -1292
  111. package/journeyDiagram-b6904cec.esm.js +0 -1290
  112. package/layout-c5a37d74.cjs.js +0 -2808
  113. package/layout-c5a37d74.esm.js +0 -2795
  114. package/line-ce5d1152.cjs.js +0 -34
  115. package/line-ce5d1152.esm.js +0 -32
  116. package/linear-db016d0c.cjs.js +0 -485
  117. package/linear-db016d0c.esm.js +0 -479
  118. package/pieDiagram-fd367f1f.cjs.js +0 -1157
  119. package/pieDiagram-fd367f1f.esm.js +0 -1155
  120. package/sequenceDiagram-169f11ec.cjs.js +0 -4805
  121. package/sequenceDiagram-169f11ec.esm.js +0 -4803
  122. package/styles-3814544c.cjs.js +0 -534
  123. package/styles-3814544c.esm.js +0 -524
  124. package/svgDraw-af99a425.cjs.js +0 -144
  125. package/svgDraw-af99a425.esm.js +0 -141
  126. package/svgDrawCommon-ebe6c236.cjs.js +0 -70
  127. package/svgDrawCommon-ebe6c236.esm.js +0 -62
  128. package/timeline-definition-65183566.cjs.js +0 -1394
  129. package/timeline-definition-65183566.esm.js +0 -1392
@@ -1,5 +1,6 @@
1
- import { U as Ut$1, A as Aa, L as La, M as Ma, E as Ea, I as Ia, c as Oa, F as Fa, B as Bn, t as ti, a as At$1, Y as Yg } from './index.esm2.js';
1
+ import { V as Vn, A as A_, F as F_, E as E_, L as L_, h as O_, M as M_, j as B_, $ as $n, w as w1, b as bt, k as k_ } from './index.esm2.js';
2
2
  import { h } from './ordinal-5695958c.esm.js';
3
+ import { r } from './Tableau10-558cc280.esm.js';
3
4
  import './init-f9637058.esm.js';
4
5
 
5
6
  function _array_like_to_array(arr, len) {
@@ -78,19 +79,14 @@ function _unsupported_iterable_to_array(o, minLen) {
78
79
  if (n === "Map" || n === "Set") return Array.from(n);
79
80
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
80
81
  }
81
- function At(t) {
82
- for(var n = t.length / 6 | 0, i = new Array(n), a = 0; a < n;)i[a] = "#" + t.slice(a * 6, ++a * 6);
83
- return i;
84
- }
85
- var Tt = At("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
86
82
  var tt = function() {
87
- var t = function t(p, s, o, c) {
88
- for(o = o || {}, c = p.length; c--; o[p[c]] = s);
83
+ var t = function t(m, i, o, c) {
84
+ for(o = o || {}, c = m.length; c--; o[m[c]] = i);
89
85
  return o;
90
86
  }, n = [
91
87
  1,
92
88
  9
93
- ], i = [
89
+ ], s = [
94
90
  1,
95
91
  10
96
92
  ], a = [
@@ -184,12 +180,12 @@ var tt = function() {
184
180
  1
185
181
  ]
186
182
  ],
187
- performAction: function performAction(s, o, c, g, b, d, x) {
183
+ performAction: function performAction(i, o, c, k, b, d, x) {
188
184
  var E = d.length - 1;
189
185
  switch(b){
190
186
  case 7:
191
- var M = g.findOrCreateNode(d[E - 4].trim().replaceAll('""', '"')), P = g.findOrCreateNode(d[E - 2].trim().replaceAll('""', '"')), A = parseFloat(d[E].trim());
192
- g.addLink(M, P, A);
187
+ var L = k.findOrCreateNode(d[E - 4].trim().replaceAll('""', '"')), A = k.findOrCreateNode(d[E - 2].trim().replaceAll('""', '"')), N = parseFloat(d[E].trim());
188
+ k.addLink(L, A, N);
193
189
  break;
194
190
  case 8:
195
191
  case 9:
@@ -227,7 +223,7 @@ var tt = function() {
227
223
  16: 7,
228
224
  17: 8,
229
225
  18: n,
230
- 20: i
226
+ 20: s
231
227
  },
232
228
  {
233
229
  1: [
@@ -240,7 +236,7 @@ var tt = function() {
240
236
  12
241
237
  ]
242
238
  },
243
- t(i, [
239
+ t(s, [
244
240
  2,
245
241
  4
246
242
  ], {
@@ -286,7 +282,7 @@ var tt = function() {
286
282
  5
287
283
  ]
288
284
  },
289
- t(i, [
285
+ t(s, [
290
286
  2,
291
287
  2
292
288
  ]),
@@ -297,14 +293,14 @@ var tt = function() {
297
293
  16: 7,
298
294
  17: 8,
299
295
  18: n,
300
- 20: i
296
+ 20: s
301
297
  },
302
298
  {
303
299
  15: 18,
304
300
  16: 7,
305
301
  17: 8,
306
302
  18: n,
307
- 20: i
303
+ 20: s
308
304
  },
309
305
  {
310
306
  18: [
@@ -312,7 +308,7 @@ var tt = function() {
312
308
  19
313
309
  ]
314
310
  },
315
- t(i, [
311
+ t(s, [
316
312
  2,
317
313
  3
318
314
  ]),
@@ -331,7 +327,7 @@ var tt = function() {
331
327
  16: 7,
332
328
  17: 8,
333
329
  18: n,
334
- 20: i
330
+ 20: s
335
331
  },
336
332
  t([
337
333
  1,
@@ -352,48 +348,48 @@ var tt = function() {
352
348
  5
353
349
  ]
354
350
  },
355
- parseError: function parseError(s, o) {
356
- if (o.recoverable) this.trace(s);
351
+ parseError: function parseError(i, o) {
352
+ if (o.recoverable) this.trace(i);
357
353
  else {
358
- var c = new Error(s);
354
+ var c = new Error(i);
359
355
  throw c.hash = o, c;
360
356
  }
361
357
  },
362
- parse: function parse(s) {
358
+ parse: function parse(i) {
363
359
  var o = this, c = [
364
360
  0
365
- ], g = [], b = [
361
+ ], k = [], b = [
366
362
  null
367
- ], d = [], x = this.table, E = "", M = 0, P = 0, A = 2, N = 1, C = d.slice.call(arguments, 1), w = Object.create(this.lexer), y = {
363
+ ], d = [], x = this.table, E = "", L = 0, A = 0, N = 2, C = 1, j = d.slice.call(arguments, 1), S = Object.create(this.lexer), M = {
368
364
  yy: {}
369
365
  };
370
- for(var L in this.yy)Object.prototype.hasOwnProperty.call(this.yy, L) && (y.yy[L] = this.yy[L]);
371
- w.setInput(s, y.yy), y.yy.lexer = w, y.yy.parser = this, _type_of(w.yylloc) > "u" && (w.yylloc = {});
372
- var j = w.yylloc;
373
- d.push(j);
374
- var W = w.options && w.options.ranges;
375
- typeof y.yy.parseError == "function" ? this.parseError = y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
376
- function V() {
366
+ for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy, $) && (M.yy[$] = this.yy[$]);
367
+ S.setInput(i, M.yy), M.yy.lexer = S, M.yy.parser = this, _type_of(S.yylloc) > "u" && (S.yylloc = {});
368
+ var P = S.yylloc;
369
+ d.push(P);
370
+ var I = S.options && S.options.ranges;
371
+ typeof M.yy.parseError == "function" ? this.parseError = M.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
372
+ function g() {
377
373
  var v;
378
- return v = g.pop() || w.lex() || N, typeof v != "number" && (_instanceof(v, Array) && (g = v, v = g.pop()), v = o.symbols_[v] || v), v;
374
+ return v = k.pop() || S.lex() || C, typeof v != "number" && (_instanceof(v, Array) && (k = v, v = k.pop()), v = o.symbols_[v] || v), v;
379
375
  }
380
- for(var S, I, T, $, e = {}, f, l, h, r;;){
381
- if (I = c[c.length - 1], this.defaultActions[I] ? T = this.defaultActions[I] : ((S === null || (typeof S === "undefined" ? "undefined" : _type_of(S)) > "u") && (S = V()), T = x[I] && x[I][S]), (typeof T === "undefined" ? "undefined" : _type_of(T)) > "u" || !T.length || !T[0]) {
382
- var m = "";
376
+ for(var w, O, T, V, e = {}, f, l, h, r;;){
377
+ if (O = c[c.length - 1], this.defaultActions[O] ? T = this.defaultActions[O] : ((w === null || (typeof w === "undefined" ? "undefined" : _type_of(w)) > "u") && (w = g()), T = x[O] && x[O][w]), (typeof T === "undefined" ? "undefined" : _type_of(T)) > "u" || !T.length || !T[0]) {
378
+ var _ = "";
383
379
  r = [];
384
- for(f in x[I])this.terminals_[f] && f > A && r.push("'" + this.terminals_[f] + "'");
385
- w.showPosition ? m = "Parse error on line " + (M + 1) + ":\n" + w.showPosition() + "\nExpecting " + r.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : m = "Parse error on line " + (M + 1) + ": Unexpected " + (S == N ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(m, {
386
- text: w.match,
387
- token: this.terminals_[S] || S,
388
- line: w.yylineno,
389
- loc: j,
380
+ for(f in x[O])this.terminals_[f] && f > N && r.push("'" + this.terminals_[f] + "'");
381
+ S.showPosition ? _ = "Parse error on line " + (L + 1) + ":\n" + S.showPosition() + "\nExpecting " + r.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : _ = "Parse error on line " + (L + 1) + ": Unexpected " + (w == C ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(_, {
382
+ text: S.match,
383
+ token: this.terminals_[w] || w,
384
+ line: S.yylineno,
385
+ loc: P,
390
386
  expected: r
391
387
  });
392
388
  }
393
- if (_instanceof(T[0], Array) && T.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + I + ", token: " + S);
389
+ if (_instanceof(T[0], Array) && T.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + w);
394
390
  switch(T[0]){
395
391
  case 1:
396
- c.push(S), b.push(w.yytext), d.push(w.yylloc), c.push(T[1]), S = null, P = w.yyleng, E = w.yytext, M = w.yylineno, j = w.yylloc;
392
+ c.push(w), b.push(S.yytext), d.push(S.yylloc), c.push(T[1]), w = null, A = S.yyleng, E = S.yytext, L = S.yylineno, P = S.yylloc;
397
393
  break;
398
394
  case 2:
399
395
  if (l = this.productions_[T[1]][1], e.$ = b[b.length - l], e._$ = {
@@ -401,18 +397,18 @@ var tt = function() {
401
397
  last_line: d[d.length - 1].last_line,
402
398
  first_column: d[d.length - (l || 1)].first_column,
403
399
  last_column: d[d.length - 1].last_column
404
- }, W && (e._$.range = [
400
+ }, I && (e._$.range = [
405
401
  d[d.length - (l || 1)].range[0],
406
402
  d[d.length - 1].range[1]
407
- ]), $ = this.performAction.apply(e, [
403
+ ]), V = this.performAction.apply(e, [
408
404
  E,
409
- P,
410
- M,
411
- y.yy,
405
+ A,
406
+ L,
407
+ M.yy,
412
408
  T[1],
413
409
  b,
414
410
  d
415
- ].concat(C)), (typeof $ === "undefined" ? "undefined" : _type_of($)) < "u") return $;
411
+ ].concat(j)), (typeof V === "undefined" ? "undefined" : _type_of(V)) < "u") return V;
416
412
  l && (c = c.slice(0, -1 * l * 2), b = b.slice(0, -1 * l), d = d.slice(0, -1 * l)), c.push(this.productions_[T[1]][0]), b.push(e.$), d.push(e._$), h = x[c[c.length - 2]][c[c.length - 1]], c.push(h);
417
413
  break;
418
414
  case 3:
@@ -421,16 +417,16 @@ var tt = function() {
421
417
  }
422
418
  return !0;
423
419
  }
424
- }, k = function() {
425
- var p = {
420
+ }, y = function() {
421
+ var m = {
426
422
  EOF: 1,
427
423
  parseError: function parseError(o, c) {
428
424
  if (this.yy.parser) this.yy.parser.parseError(o, c);
429
425
  else throw new Error(o);
430
426
  },
431
427
  // resets the lexer, sets new input
432
- setInput: function setInput(s, o) {
433
- 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 = [
428
+ setInput: function setInput(i, o) {
429
+ return this.yy = o || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
434
430
  "INITIAL"
435
431
  ], this.yylloc = {
436
432
  first_line: 1,
@@ -444,23 +440,23 @@ var tt = function() {
444
440
  },
445
441
  // consumes and returns one char from the input
446
442
  input: function input() {
447
- var s = this._input[0];
448
- this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
449
- var o = s.match(/(?:\r\n?|\n).*/g);
450
- 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;
443
+ var i = this._input[0];
444
+ this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
445
+ var o = i.match(/(?:\r\n?|\n).*/g);
446
+ 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), i;
451
447
  },
452
448
  // unshifts one char (or a string) into the input
453
- unput: function unput(s) {
454
- var o = s.length, c = s.split(/(?:\r\n?|\n)/g);
455
- this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - o), this.offset -= o;
456
- var g = this.match.split(/(?:\r\n?|\n)/g);
449
+ unput: function unput(i) {
450
+ var o = i.length, c = i.split(/(?:\r\n?|\n)/g);
451
+ this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - o), this.offset -= o;
452
+ var k = this.match.split(/(?:\r\n?|\n)/g);
457
453
  this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
458
454
  var b = this.yylloc.range;
459
455
  return this.yylloc = {
460
456
  first_line: this.yylloc.first_line,
461
457
  last_line: this.yylineno + 1,
462
458
  first_column: this.yylloc.first_column,
463
- last_column: c ? (c.length === g.length ? this.yylloc.first_column : 0) + g[g.length - c.length].length - c[0].length : this.yylloc.first_column - o
459
+ last_column: c ? (c.length === k.length ? this.yylloc.first_column : 0) + k[k.length - c.length].length - c[0].length : this.yylloc.first_column - o
464
460
  }, this.options.ranges && (this.yylloc.range = [
465
461
  b[0],
466
462
  b[0] + this.yyleng - o
@@ -481,27 +477,27 @@ var tt = function() {
481
477
  return this;
482
478
  },
483
479
  // retain first n characters of the match
484
- less: function less(s) {
485
- this.unput(this.match.slice(s));
480
+ less: function less(i) {
481
+ this.unput(this.match.slice(i));
486
482
  },
487
483
  // displays already matched input, i.e. for error messages
488
484
  pastInput: function pastInput() {
489
- var s = this.matched.substr(0, this.matched.length - this.match.length);
490
- return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
485
+ var i = this.matched.substr(0, this.matched.length - this.match.length);
486
+ return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
491
487
  },
492
488
  // displays upcoming input, i.e. for error messages
493
489
  upcomingInput: function upcomingInput() {
494
- var s = this.match;
495
- return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
490
+ var i = this.match;
491
+ return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
496
492
  },
497
493
  // displays the character position where the lexing error occurred, i.e. for error messages
498
494
  showPosition: function showPosition() {
499
- var s = this.pastInput(), o = new Array(s.length + 1).join("-");
500
- return s + this.upcomingInput() + "\n" + o + "^";
495
+ var i = this.pastInput(), o = new Array(i.length + 1).join("-");
496
+ return i + this.upcomingInput() + "\n" + o + "^";
501
497
  },
502
498
  // test the lexed token: return FALSE when not a match, otherwise return token
503
- test_match: function test_match(s, o) {
504
- var c, g, b;
499
+ test_match: function test_match(i, o) {
500
+ var c, k, b;
505
501
  if (this.options.backtrack_lexer && (b = {
506
502
  yylineno: this.yylineno,
507
503
  yylloc: {
@@ -521,15 +517,15 @@ var tt = function() {
521
517
  yy: this.yy,
522
518
  conditionStack: this.conditionStack.slice(0),
523
519
  done: this.done
524
- }, this.options.ranges && (b.yylloc.range = this.yylloc.range.slice(0))), g = s[0].match(/(?:\r\n?|\n).*/g), g && (this.yylineno += g.length), this.yylloc = {
520
+ }, this.options.ranges && (b.yylloc.range = this.yylloc.range.slice(0))), k = i[0].match(/(?:\r\n?|\n).*/g), k && (this.yylineno += k.length), this.yylloc = {
525
521
  first_line: this.yylloc.last_line,
526
522
  last_line: this.yylineno + 1,
527
523
  first_column: this.yylloc.last_column,
528
- last_column: g ? g[g.length - 1].length - g[g.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
529
- }, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
524
+ last_column: k ? k[k.length - 1].length - k[k.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
525
+ }, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
530
526
  this.offset,
531
527
  this.offset += this.yyleng
532
- ]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], c = this.performAction.call(this, this.yy, this, o, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c) return c;
528
+ ]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], c = this.performAction.call(this, this.yy, this, o, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c) return c;
533
529
  if (this._backtrack) {
534
530
  for(var d in b)this[d] = b[d];
535
531
  return !1;
@@ -540,18 +536,18 @@ var tt = function() {
540
536
  next: function next() {
541
537
  if (this.done) return this.EOF;
542
538
  this._input || (this.done = !0);
543
- var s, o, c, g;
539
+ var i, o, c, k;
544
540
  this._more || (this.yytext = "", this.match = "");
545
541
  for(var b = this._currentRules(), d = 0; d < b.length; d++)if (c = this._input.match(this.rules[b[d]]), c && (!o || c[0].length > o[0].length)) {
546
- if (o = c, g = d, this.options.backtrack_lexer) {
547
- if (s = this.test_match(c, b[d]), s !== !1) return s;
542
+ if (o = c, k = d, this.options.backtrack_lexer) {
543
+ if (i = this.test_match(c, b[d]), i !== !1) return i;
548
544
  if (this._backtrack) {
549
545
  o = !1;
550
546
  continue;
551
547
  } else return !1;
552
548
  } else if (!this.options.flex) break;
553
549
  }
554
- return o ? (s = this.test_match(o, b[g]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
550
+ return o ? (i = this.test_match(o, b[k]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
555
551
  text: "",
556
552
  token: null,
557
553
  line: this.yylineno
@@ -588,10 +584,10 @@ var tt = function() {
588
584
  return this.conditionStack.length;
589
585
  },
590
586
  options: {
591
- easy_keword_rules: !0
587
+ "case-insensitive": !0
592
588
  },
593
- performAction: function performAction(o, c, g, b) {
594
- switch(g){
589
+ performAction: function performAction(o, c, k, b) {
590
+ switch(k){
595
591
  case 0:
596
592
  return this.pushState("csv"), 4;
597
593
  case 1:
@@ -611,14 +607,14 @@ var tt = function() {
611
607
  }
612
608
  },
613
609
  rules: [
614
- /^(?:sankey-beta\b)/,
615
- /^(?:$)/,
616
- /^(?:((\u000D\u000A)|(\u000A)))/,
617
- /^(?:(\u002C))/,
618
- /^(?:(\u0022))/,
619
- /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/,
620
- /^(?:(\u0022)(?!(\u0022)))/,
621
- /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/
610
+ /^(?:sankey-beta\b)/i,
611
+ /^(?:$)/i,
612
+ /^(?:((\u000D\u000A)|(\u000A)))/i,
613
+ /^(?:(\u002C))/i,
614
+ /^(?:(\u0022))/i,
615
+ /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,
616
+ /^(?:(\u0022)(?!(\u0022)))/i,
617
+ /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i
622
618
  ],
623
619
  conditions: {
624
620
  csv: {
@@ -655,37 +651,37 @@ var tt = function() {
655
651
  }
656
652
  }
657
653
  };
658
- return p;
654
+ return m;
659
655
  }();
660
- u.lexer = k;
661
- function _() {
656
+ u.lexer = y;
657
+ function p() {
662
658
  this.yy = {};
663
659
  }
664
- return _.prototype = u, u.Parser = _, new _();
660
+ return p.prototype = u, u.Parser = p, new p();
665
661
  }();
666
662
  tt.parser = tt;
667
663
  var H = tt;
668
- var q = [], Q = [], D = {};
664
+ var q = [], Q = [], B = {};
669
665
  var Mt = function() {
670
- q = [], Q = [], D = {}, Fa();
666
+ q = [], Q = [], B = {}, B_();
671
667
  };
672
- var Nt = function Nt(n, i) {
668
+ var Nt = function Nt(n, s) {
673
669
  var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
674
670
  _class_call_check(this, Nt);
675
- this.source = n, this.target = i, this.value = a;
671
+ this.source = n, this.target = s, this.value = a;
676
672
  };
677
- var Pt = function(t, n, i) {
678
- q.push(new Nt(t, n, i));
673
+ var Ct = function(t, n, s) {
674
+ q.push(new Nt(t, n, s));
679
675
  };
680
- var Ct = function Ct(n) {
681
- _class_call_check(this, Ct);
676
+ var Pt = function Pt(n) {
677
+ _class_call_check(this, Pt);
682
678
  this.ID = n;
683
679
  };
684
680
  var It = function(t) {
685
- return t = Bn.sanitizeText(t, Ut$1()), D[t] || (D[t] = new Ct(t), Q.push(D[t])), D[t];
681
+ return t = $n.sanitizeText(t, Vn()), B[t] || (B[t] = new Pt(t), Q.push(B[t])), B[t];
686
682
  }, Ot = function() {
687
683
  return Q;
688
- }, zt = function() {
684
+ }, $t = function() {
689
685
  return q;
690
686
  }, jt = function() {
691
687
  return {
@@ -702,31 +698,31 @@ var It = function(t) {
702
698
  };
703
699
  })
704
700
  };
705
- }, Dt = {
706
- nodesMap: D,
701
+ }, zt = {
702
+ nodesMap: B,
707
703
  getConfig: function() {
708
- return Ut$1().sankey;
704
+ return Vn().sankey;
709
705
  },
710
706
  getNodes: Ot,
711
- getLinks: zt,
707
+ getLinks: $t,
712
708
  getGraph: jt,
713
- addLink: Pt,
709
+ addLink: Ct,
714
710
  findOrCreateNode: It,
715
- getAccTitle: Aa,
716
- setAccTitle: La,
717
- getAccDescription: Ma,
718
- setAccDescription: Ea,
719
- getDiagramTitle: Ia,
720
- setDiagramTitle: Oa,
711
+ getAccTitle: A_,
712
+ setAccTitle: F_,
713
+ getAccDescription: E_,
714
+ setAccDescription: L_,
715
+ getDiagramTitle: O_,
716
+ setDiagramTitle: M_,
721
717
  clear: Mt
722
718
  };
723
- function at(t, n) {
724
- var i;
719
+ function ot(t, n) {
720
+ var s;
725
721
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
726
722
  if (n === void 0) try {
727
723
  for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
728
724
  var a = _step.value;
729
- a != null && (i < a || i === void 0 && a >= a) && (i = a);
725
+ a != null && (s < a || s === void 0 && a >= a) && (s = a);
730
726
  }
731
727
  } catch (err) {
732
728
  _didIteratorError = true;
@@ -748,7 +744,7 @@ function at(t, n) {
748
744
  try {
749
745
  for(var _iterator1 = t[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
750
746
  var u = _step1.value;
751
- (u = n(u, ++a1, t)) != null && (i < u || i === void 0 && u >= u) && (i = u);
747
+ (u = n(u, ++a1, t)) != null && (s < u || s === void 0 && u >= u) && (s = u);
752
748
  }
753
749
  } catch (err) {
754
750
  _didIteratorError1 = true;
@@ -765,15 +761,15 @@ function at(t, n) {
765
761
  }
766
762
  }
767
763
  }
768
- return i;
764
+ return s;
769
765
  }
770
766
  function yt(t, n) {
771
- var i;
767
+ var s;
772
768
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
773
769
  if (n === void 0) try {
774
770
  for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
775
771
  var a = _step.value;
776
- a != null && (i > a || i === void 0 && a >= a) && (i = a);
772
+ a != null && (s > a || s === void 0 && a >= a) && (s = a);
777
773
  }
778
774
  } catch (err) {
779
775
  _didIteratorError = true;
@@ -795,7 +791,7 @@ function yt(t, n) {
795
791
  try {
796
792
  for(var _iterator1 = t[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
797
793
  var u = _step1.value;
798
- (u = n(u, ++a1, t)) != null && (i > u || i === void 0 && u >= u) && (i = u);
794
+ (u = n(u, ++a1, t)) != null && (s > u || s === void 0 && u >= u) && (s = u);
799
795
  }
800
796
  } catch (err) {
801
797
  _didIteratorError1 = true;
@@ -812,15 +808,15 @@ function yt(t, n) {
812
808
  }
813
809
  }
814
810
  }
815
- return i;
811
+ return s;
816
812
  }
817
813
  function Z(t, n) {
818
- var i = 0;
814
+ var s = 0;
819
815
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
820
816
  if (n === void 0) try {
821
817
  for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
822
818
  var a = _step.value;
823
- (a = +a) && (i += a);
819
+ (a = +a) && (s += a);
824
820
  }
825
821
  } catch (err) {
826
822
  _didIteratorError = true;
@@ -842,7 +838,7 @@ function Z(t, n) {
842
838
  try {
843
839
  for(var _iterator1 = t[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
844
840
  var u = _step1.value;
845
- (u = +n(u, ++a1, t)) && (i += u);
841
+ (u = +n(u, ++a1, t)) && (s += u);
846
842
  }
847
843
  } catch (err) {
848
844
  _didIteratorError1 = true;
@@ -859,24 +855,24 @@ function Z(t, n) {
859
855
  }
860
856
  }
861
857
  }
862
- return i;
858
+ return s;
863
859
  }
864
- function $t(t) {
860
+ function Dt(t) {
865
861
  return t.target.depth;
866
862
  }
867
863
  function Bt(t) {
868
864
  return t.depth;
869
865
  }
870
- function Rt(t, n) {
866
+ function Vt(t, n) {
871
867
  return n - 1 - t.height;
872
868
  }
873
869
  function dt(t, n) {
874
870
  return t.sourceLinks.length ? t.depth : n - 1;
875
871
  }
876
- function Ft(t) {
877
- return t.targetLinks.length ? t.depth : t.sourceLinks.length ? yt(t.sourceLinks, $t) - 1 : 0;
872
+ function Rt(t) {
873
+ return t.targetLinks.length ? t.depth : t.sourceLinks.length ? yt(t.sourceLinks, Dt) - 1 : 0;
878
874
  }
879
- function G(t) {
875
+ function Y(t) {
880
876
  return function() {
881
877
  return t;
882
878
  };
@@ -884,7 +880,7 @@ function G(t) {
884
880
  function lt(t, n) {
885
881
  return X(t.source, n.source) || t.index - n.index;
886
882
  }
887
- function ct(t, n) {
883
+ function at(t, n) {
888
884
  return X(t.target, n.target) || t.index - n.index;
889
885
  }
890
886
  function X(t, n) {
@@ -896,29 +892,29 @@ function J(t) {
896
892
  function Ut(t) {
897
893
  return t.index;
898
894
  }
899
- function Wt(t) {
895
+ function Ft(t) {
900
896
  return t.nodes;
901
897
  }
902
- function Vt(t) {
898
+ function Wt(t) {
903
899
  return t.links;
904
900
  }
905
- function ut(t, n) {
906
- var i = t.get(n);
907
- if (!i) throw new Error("missing: " + n);
908
- return i;
901
+ function ct(t, n) {
902
+ var s = t.get(n);
903
+ if (!s) throw new Error("missing: " + n);
904
+ return s;
909
905
  }
910
- function ht(param) {
906
+ function ut(param) {
911
907
  var t = param.nodes;
912
908
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
913
909
  try {
914
910
  for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
915
911
  var n = _step.value;
916
- var i = n.y0, a = i;
912
+ var s = n.y0, a = s;
917
913
  var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
918
914
  try {
919
915
  for(var _iterator1 = n.sourceLinks[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
920
916
  var u = _step1.value;
921
- u.y0 = i + u.width / 2, i += u.width;
917
+ u.y0 = s + u.width / 2, s += u.width;
922
918
  }
923
919
  } catch (err) {
924
920
  _didIteratorError1 = true;
@@ -970,46 +966,46 @@ function ht(param) {
970
966
  }
971
967
  }
972
968
  }
973
- function Yt() {
974
- var t = 0, n = 0, i = 1, a = 1, u = 24, k = 8, _, p = Ut, s = dt, o, c, g = Wt, b = Vt, d = 6;
969
+ function Gt() {
970
+ var t = 0, n = 0, s = 1, a = 1, u = 24, y = 8, p, m = Ut, i = dt, o, c, k = Ft, b = Wt, d = 6;
975
971
  function x() {
976
972
  var e = {
977
- nodes: g.apply(null, arguments),
973
+ nodes: k.apply(null, arguments),
978
974
  links: b.apply(null, arguments)
979
975
  };
980
- return E(e), M(e), P(e), A(e), w(e), ht(e), e;
976
+ return E(e), L(e), A(e), N(e), S(e), ut(e), e;
981
977
  }
982
978
  x.update = function(e) {
983
- return ht(e), e;
979
+ return ut(e), e;
984
980
  }, x.nodeId = function(e) {
985
- return arguments.length ? (p = typeof e == "function" ? e : G(e), x) : p;
981
+ return arguments.length ? (m = typeof e == "function" ? e : Y(e), x) : m;
986
982
  }, x.nodeAlign = function(e) {
987
- return arguments.length ? (s = typeof e == "function" ? e : G(e), x) : s;
983
+ return arguments.length ? (i = typeof e == "function" ? e : Y(e), x) : i;
988
984
  }, x.nodeSort = function(e) {
989
985
  return arguments.length ? (o = e, x) : o;
990
986
  }, x.nodeWidth = function(e) {
991
987
  return arguments.length ? (u = +e, x) : u;
992
988
  }, x.nodePadding = function(e) {
993
- return arguments.length ? (k = _ = +e, x) : k;
989
+ return arguments.length ? (y = p = +e, x) : y;
994
990
  }, x.nodes = function(e) {
995
- return arguments.length ? (g = typeof e == "function" ? e : G(e), x) : g;
991
+ return arguments.length ? (k = typeof e == "function" ? e : Y(e), x) : k;
996
992
  }, x.links = function(e) {
997
- return arguments.length ? (b = typeof e == "function" ? e : G(e), x) : b;
993
+ return arguments.length ? (b = typeof e == "function" ? e : Y(e), x) : b;
998
994
  }, x.linkSort = function(e) {
999
995
  return arguments.length ? (c = e, x) : c;
1000
996
  }, x.size = function(e) {
1001
- return arguments.length ? (t = n = 0, i = +e[0], a = +e[1], x) : [
1002
- i - t,
997
+ return arguments.length ? (t = n = 0, s = +e[0], a = +e[1], x) : [
998
+ s - t,
1003
999
  a - n
1004
1000
  ];
1005
1001
  }, x.extent = function(e) {
1006
- return arguments.length ? (t = +e[0][0], i = +e[1][0], n = +e[0][1], a = +e[1][1], x) : [
1002
+ return arguments.length ? (t = +e[0][0], s = +e[1][0], n = +e[0][1], a = +e[1][1], x) : [
1007
1003
  [
1008
1004
  t,
1009
1005
  n
1010
1006
  ],
1011
1007
  [
1012
- i,
1008
+ s,
1013
1009
  a
1014
1010
  ]
1015
1011
  ];
@@ -1040,7 +1036,7 @@ function Yt() {
1040
1036
  }
1041
1037
  var l = new Map(e.map(function(h, r) {
1042
1038
  return [
1043
- p(h, r, e),
1039
+ m(h, r, e),
1044
1040
  h
1045
1041
  ];
1046
1042
  }));
@@ -1049,8 +1045,8 @@ function Yt() {
1049
1045
  for(var _iterator1 = f.entries()[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
1050
1046
  var _step_value1 = _sliced_to_array(_step1.value, 2), h1 = _step_value1[0], r1 = _step_value1[1];
1051
1047
  r1.index = h1;
1052
- var m = r1.source, v = r1.target;
1053
- typeof m != "object" && (m = r1.source = ut(l, m)), typeof v != "object" && (v = r1.target = ut(l, v)), m.sourceLinks.push(r1), v.targetLinks.push(r1);
1048
+ var _ = r1.source, v = r1.target;
1049
+ typeof _ != "object" && (_ = r1.source = ct(l, _)), typeof v != "object" && (v = r1.target = ct(l, v)), _.sourceLinks.push(r1), v.targetLinks.push(r1);
1054
1050
  }
1055
1051
  } catch (err) {
1056
1052
  _didIteratorError1 = true;
@@ -1087,7 +1083,7 @@ function Yt() {
1087
1083
  }
1088
1084
  }
1089
1085
  }
1090
- function M(param) {
1086
+ function L(param) {
1091
1087
  var e = param.nodes;
1092
1088
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1093
1089
  try {
@@ -1110,7 +1106,7 @@ function Yt() {
1110
1106
  }
1111
1107
  }
1112
1108
  }
1113
- function P(param) {
1109
+ function A(param) {
1114
1110
  var e = param.nodes;
1115
1111
  var f = e.length;
1116
1112
  var l = new Set(e), h = /* @__PURE__ */ new Set(), r = 0;
@@ -1118,11 +1114,11 @@ function Yt() {
1118
1114
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1119
1115
  try {
1120
1116
  for(var _iterator = l[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1121
- var m = _step.value;
1122
- m.depth = r;
1117
+ var _ = _step.value;
1118
+ _.depth = r;
1123
1119
  var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
1124
1120
  try {
1125
- for(var _iterator1 = m.sourceLinks[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
1121
+ for(var _iterator1 = _.sourceLinks[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
1126
1122
  var _step_value = _step1.value, v = _step_value.target;
1127
1123
  h.add(v);
1128
1124
  }
@@ -1159,7 +1155,7 @@ function Yt() {
1159
1155
  l = h, h = /* @__PURE__ */ new Set();
1160
1156
  }
1161
1157
  }
1162
- function A(param) {
1158
+ function N(param) {
1163
1159
  var e = param.nodes;
1164
1160
  var f = e.length;
1165
1161
  var l = new Set(e), h = /* @__PURE__ */ new Set(), r = 0;
@@ -1167,11 +1163,11 @@ function Yt() {
1167
1163
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1168
1164
  try {
1169
1165
  for(var _iterator = l[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1170
- var m = _step.value;
1171
- m.height = r;
1166
+ var _ = _step.value;
1167
+ _.height = r;
1172
1168
  var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
1173
1169
  try {
1174
- for(var _iterator1 = m.targetLinks[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
1170
+ for(var _iterator1 = _.targetLinks[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
1175
1171
  var _step_value = _step1.value, v = _step_value.source;
1176
1172
  h.add(v);
1177
1173
  }
@@ -1208,17 +1204,17 @@ function Yt() {
1208
1204
  l = h, h = /* @__PURE__ */ new Set();
1209
1205
  }
1210
1206
  }
1211
- function N(param) {
1207
+ function C(param) {
1212
1208
  var e = param.nodes;
1213
- var f = at(e, function(r) {
1209
+ var f = ot(e, function(r) {
1214
1210
  return r.depth;
1215
- }) + 1, l = (i - t - u) / (f - 1), h = new Array(f);
1211
+ }) + 1, l = (s - t - u) / (f - 1), h = new Array(f);
1216
1212
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1217
1213
  try {
1218
1214
  for(var _iterator = e[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1219
1215
  var r = _step.value;
1220
- var m = Math.max(0, Math.min(f - 1, Math.floor(s.call(null, r, f))));
1221
- r.layer = m, r.x0 = t + m * l, r.x1 = r.x0 + u, h[m] ? h[m].push(r) : h[m] = [
1216
+ var _ = Math.max(0, Math.min(f - 1, Math.floor(i.call(null, r, f))));
1217
+ r.layer = _, r.x0 = t + _ * l, r.x1 = r.x0 + u, h[_] ? h[_].push(r) : h[_] = [
1222
1218
  r
1223
1219
  ];
1224
1220
  }
@@ -1258,9 +1254,9 @@ function Yt() {
1258
1254
  }
1259
1255
  return h;
1260
1256
  }
1261
- function C(e) {
1257
+ function j(e) {
1262
1258
  var f = yt(e, function(l) {
1263
- return (a - n - (l.length - 1) * _) / Z(l, J);
1259
+ return (a - n - (l.length - 1) * p) / Z(l, J);
1264
1260
  });
1265
1261
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1266
1262
  try {
@@ -1271,12 +1267,12 @@ function Yt() {
1271
1267
  try {
1272
1268
  for(var _iterator1 = l[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
1273
1269
  var r = _step1.value;
1274
- r.y0 = h, r.y1 = h + r.value * f, h = r.y1 + _;
1270
+ r.y0 = h, r.y1 = h + r.value * f, h = r.y1 + p;
1275
1271
  var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
1276
1272
  try {
1277
1273
  for(var _iterator2 = r.sourceLinks[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){
1278
- var m = _step2.value;
1279
- m.width = m.value * f;
1274
+ var _ = _step2.value;
1275
+ _.width = _.value * f;
1280
1276
  }
1281
1277
  } catch (err) {
1282
1278
  _didIteratorError2 = true;
@@ -1307,12 +1303,12 @@ function Yt() {
1307
1303
  }
1308
1304
  }
1309
1305
  }
1310
- h = (a - h + _) / (l.length + 1);
1306
+ h = (a - h + p) / (l.length + 1);
1311
1307
  for(var r1 = 0; r1 < l.length; ++r1){
1312
- var m1 = l[r1];
1313
- m1.y0 += h * (r1 + 1), m1.y1 += h * (r1 + 1);
1308
+ var _1 = l[r1];
1309
+ _1.y0 += h * (r1 + 1), _1.y1 += h * (r1 + 1);
1314
1310
  }
1315
- I(l);
1311
+ O(l);
1316
1312
  }
1317
1313
  } catch (err) {
1318
1314
  _didIteratorError = true;
@@ -1329,30 +1325,30 @@ function Yt() {
1329
1325
  }
1330
1326
  }
1331
1327
  }
1332
- function w(e) {
1333
- var f = N(e);
1334
- _ = Math.min(k, (a - n) / (at(f, function(l) {
1328
+ function S(e) {
1329
+ var f = C(e);
1330
+ p = Math.min(y, (a - n) / (ot(f, function(l) {
1335
1331
  return l.length;
1336
- }) - 1)), C(f);
1332
+ }) - 1)), j(f);
1337
1333
  for(var l = 0; l < d; ++l){
1338
1334
  var h = Math.pow(0.99, l), r = Math.max(1 - h, (l + 1) / d);
1339
- L(f, h, r), y(f, h, r);
1335
+ $(f, h, r), M(f, h, r);
1340
1336
  }
1341
1337
  }
1342
- function y(e, f, l) {
1338
+ function M(e, f, l) {
1343
1339
  for(var h = 1, r = e.length; h < r; ++h){
1344
- var m = e[h];
1340
+ var _ = e[h];
1345
1341
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1346
1342
  try {
1347
- for(var _iterator = m[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1343
+ for(var _iterator = _[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1348
1344
  var v = _step.value;
1349
- var B = 0, O = 0;
1345
+ var R = 0, z = 0;
1350
1346
  var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
1351
1347
  try {
1352
1348
  for(var _iterator1 = v.targetLinks[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
1353
1349
  var _step_value = _step1.value, F = _step_value.source, K = _step_value.value;
1354
- var U = K * (v.layer - F.layer);
1355
- B += T(F, v) * U, O += U;
1350
+ var W = K * (v.layer - F.layer);
1351
+ R += T(F, v) * W, z += W;
1356
1352
  }
1357
1353
  } catch (err) {
1358
1354
  _didIteratorError1 = true;
@@ -1368,9 +1364,9 @@ function Yt() {
1368
1364
  }
1369
1365
  }
1370
1366
  }
1371
- if (!(O > 0)) continue;
1372
- var R = (B / O - v.y0) * f;
1373
- v.y0 += R, v.y1 += R, S(v);
1367
+ if (!(z > 0)) continue;
1368
+ var U = (R / z - v.y0) * f;
1369
+ v.y0 += U, v.y1 += U, w(v);
1374
1370
  }
1375
1371
  } catch (err) {
1376
1372
  _didIteratorError = true;
@@ -1386,23 +1382,23 @@ function Yt() {
1386
1382
  }
1387
1383
  }
1388
1384
  }
1389
- o === void 0 && m.sort(X), j(m, l);
1385
+ o === void 0 && _.sort(X), P(_, l);
1390
1386
  }
1391
1387
  }
1392
- function L(e, f, l) {
1388
+ function $(e, f, l) {
1393
1389
  for(var h = e.length, r = h - 2; r >= 0; --r){
1394
- var m = e[r];
1390
+ var _ = e[r];
1395
1391
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1396
1392
  try {
1397
- for(var _iterator = m[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1393
+ for(var _iterator = _[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1398
1394
  var v = _step.value;
1399
- var B = 0, O = 0;
1395
+ var R = 0, z = 0;
1400
1396
  var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
1401
1397
  try {
1402
1398
  for(var _iterator1 = v.sourceLinks[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
1403
1399
  var _step_value = _step1.value, F = _step_value.target, K = _step_value.value;
1404
- var U = K * (F.layer - v.layer);
1405
- B += $(v, F) * U, O += U;
1400
+ var W = K * (F.layer - v.layer);
1401
+ R += V(v, F) * W, z += W;
1406
1402
  }
1407
1403
  } catch (err) {
1408
1404
  _didIteratorError1 = true;
@@ -1418,9 +1414,9 @@ function Yt() {
1418
1414
  }
1419
1415
  }
1420
1416
  }
1421
- if (!(O > 0)) continue;
1422
- var R = (B / O - v.y0) * f;
1423
- v.y0 += R, v.y1 += R, S(v);
1417
+ if (!(z > 0)) continue;
1418
+ var U = (R / z - v.y0) * f;
1419
+ v.y0 += U, v.y1 += U, w(v);
1424
1420
  }
1425
1421
  } catch (err) {
1426
1422
  _didIteratorError = true;
@@ -1436,33 +1432,33 @@ function Yt() {
1436
1432
  }
1437
1433
  }
1438
1434
  }
1439
- o === void 0 && m.sort(X), j(m, l);
1435
+ o === void 0 && _.sort(X), P(_, l);
1440
1436
  }
1441
1437
  }
1442
- function j(e, f) {
1438
+ function P(e, f) {
1443
1439
  var l = e.length >> 1, h = e[l];
1444
- V(e, h.y0 - _, l - 1, f), W(e, h.y1 + _, l + 1, f), V(e, a, e.length - 1, f), W(e, n, 0, f);
1440
+ g(e, h.y0 - p, l - 1, f), I(e, h.y1 + p, l + 1, f), g(e, a, e.length - 1, f), I(e, n, 0, f);
1445
1441
  }
1446
- function W(e, f, l, h) {
1442
+ function I(e, f, l, h) {
1447
1443
  for(; l < e.length; ++l){
1448
- var r = e[l], m = (f - r.y0) * h;
1449
- m > 1e-6 && (r.y0 += m, r.y1 += m), f = r.y1 + _;
1444
+ var r = e[l], _ = (f - r.y0) * h;
1445
+ _ > 1e-6 && (r.y0 += _, r.y1 += _), f = r.y1 + p;
1450
1446
  }
1451
1447
  }
1452
- function V(e, f, l, h) {
1448
+ function g(e, f, l, h) {
1453
1449
  for(; l >= 0; --l){
1454
- var r = e[l], m = (r.y1 - f) * h;
1455
- m > 1e-6 && (r.y0 -= m, r.y1 -= m), f = r.y0 - _;
1450
+ var r = e[l], _ = (r.y1 - f) * h;
1451
+ _ > 1e-6 && (r.y0 -= _, r.y1 -= _), f = r.y0 - p;
1456
1452
  }
1457
1453
  }
1458
- function S(param) {
1454
+ function w(param) {
1459
1455
  var e = param.sourceLinks, f = param.targetLinks;
1460
1456
  if (c === void 0) {
1461
1457
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1462
1458
  try {
1463
1459
  for(var _iterator = f[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1464
1460
  var _step_value = _step.value, _step_value_source = _step_value.source, l = _step_value_source.sourceLinks;
1465
- l.sort(ct);
1461
+ l.sort(at);
1466
1462
  }
1467
1463
  } catch (err) {
1468
1464
  _didIteratorError = true;
@@ -1500,12 +1496,12 @@ function Yt() {
1500
1496
  }
1501
1497
  }
1502
1498
  }
1503
- function I(e) {
1499
+ function O(e) {
1504
1500
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1505
1501
  if (c === void 0) try {
1506
1502
  for(var _iterator = e[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1507
1503
  var _step_value = _step.value, f = _step_value.sourceLinks, l = _step_value.targetLinks;
1508
- f.sort(ct), l.sort(lt);
1504
+ f.sort(at), l.sort(lt);
1509
1505
  }
1510
1506
  } catch (err) {
1511
1507
  _didIteratorError = true;
@@ -1523,13 +1519,13 @@ function Yt() {
1523
1519
  }
1524
1520
  }
1525
1521
  function T(e, f) {
1526
- var l = e.y0 - (e.sourceLinks.length - 1) * _ / 2;
1522
+ var l = e.y0 - (e.sourceLinks.length - 1) * p / 2;
1527
1523
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1528
1524
  try {
1529
1525
  for(var _iterator = e.sourceLinks[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1530
1526
  var _step_value = _step.value, h = _step_value.target, r = _step_value.width;
1531
1527
  if (h === f) break;
1532
- l += r + _;
1528
+ l += r + p;
1533
1529
  }
1534
1530
  } catch (err) {
1535
1531
  _didIteratorError = true;
@@ -1568,14 +1564,14 @@ function Yt() {
1568
1564
  }
1569
1565
  return l;
1570
1566
  }
1571
- function $(e, f) {
1572
- var l = f.y0 - (f.targetLinks.length - 1) * _ / 2;
1567
+ function V(e, f) {
1568
+ var l = f.y0 - (f.targetLinks.length - 1) * p / 2;
1573
1569
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1574
1570
  try {
1575
1571
  for(var _iterator = f.targetLinks[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1576
1572
  var _step_value = _step.value, h = _step_value.source, r = _step_value.width;
1577
1573
  if (h === e) break;
1578
- l += r + _;
1574
+ l += r + p;
1579
1575
  }
1580
1576
  } catch (err) {
1581
1577
  _didIteratorError = true;
@@ -1616,7 +1612,7 @@ function Yt() {
1616
1612
  }
1617
1613
  return x;
1618
1614
  }
1619
- var et = Math.PI, nt = 2 * et, z = 1e-6, Gt = nt - z;
1615
+ var et = Math.PI, nt = 2 * et, D = 1e-6, Yt = nt - D;
1620
1616
  function it() {
1621
1617
  this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
1622
1618
  }
@@ -1634,37 +1630,37 @@ it.prototype = gt.prototype = {
1634
1630
  lineTo: function lineTo(t, n) {
1635
1631
  this._ += "L" + (this._x1 = +t) + "," + (this._y1 = +n);
1636
1632
  },
1637
- quadraticCurveTo: function quadraticCurveTo(t, n, i, a) {
1638
- this._ += "Q" + +t + "," + +n + "," + (this._x1 = +i) + "," + (this._y1 = +a);
1633
+ quadraticCurveTo: function quadraticCurveTo(t, n, s, a) {
1634
+ this._ += "Q" + +t + "," + +n + "," + (this._x1 = +s) + "," + (this._y1 = +a);
1639
1635
  },
1640
- bezierCurveTo: function bezierCurveTo(t, n, i, a, u, k) {
1641
- this._ += "C" + +t + "," + +n + "," + +i + "," + +a + "," + (this._x1 = +u) + "," + (this._y1 = +k);
1636
+ bezierCurveTo: function bezierCurveTo(t, n, s, a, u, y) {
1637
+ this._ += "C" + +t + "," + +n + "," + +s + "," + +a + "," + (this._x1 = +u) + "," + (this._y1 = +y);
1642
1638
  },
1643
- arcTo: function arcTo(t, n, i, a, u) {
1644
- t = +t, n = +n, i = +i, a = +a, u = +u;
1645
- var k = this._x1, _ = this._y1, p = i - t, s = a - n, o = k - t, c = _ - n, g = o * o + c * c;
1639
+ arcTo: function arcTo(t, n, s, a, u) {
1640
+ t = +t, n = +n, s = +s, a = +a, u = +u;
1641
+ var y = this._x1, p = this._y1, m = s - t, i = a - n, o = y - t, c = p - n, k = o * o + c * c;
1646
1642
  if (u < 0) throw new Error("negative radius: " + u);
1647
1643
  if (this._x1 === null) this._ += "M" + (this._x1 = t) + "," + (this._y1 = n);
1648
- else if (g > z) if (!(Math.abs(c * p - s * o) > z) || !u) this._ += "L" + (this._x1 = t) + "," + (this._y1 = n);
1644
+ else if (k > D) if (!(Math.abs(c * m - i * o) > D) || !u) this._ += "L" + (this._x1 = t) + "," + (this._y1 = n);
1649
1645
  else {
1650
- var b = i - k, d = a - _, x = p * p + s * s, E = b * b + d * d, M = Math.sqrt(x), P = Math.sqrt(g), A = u * Math.tan((et - Math.acos((x + g - E) / (2 * M * P))) / 2), N = A / P, C = A / M;
1651
- Math.abs(N - 1) > z && (this._ += "L" + (t + N * o) + "," + (n + N * c)), this._ += "A" + u + "," + u + ",0,0," + +(c * b > o * d) + "," + (this._x1 = t + C * p) + "," + (this._y1 = n + C * s);
1646
+ var b = s - y, d = a - p, x = m * m + i * i, E = b * b + d * d, L = Math.sqrt(x), A = Math.sqrt(k), N = u * Math.tan((et - Math.acos((x + k - E) / (2 * L * A))) / 2), C = N / A, j = N / L;
1647
+ Math.abs(C - 1) > D && (this._ += "L" + (t + C * o) + "," + (n + C * c)), this._ += "A" + u + "," + u + ",0,0," + +(c * b > o * d) + "," + (this._x1 = t + j * m) + "," + (this._y1 = n + j * i);
1652
1648
  }
1653
1649
  },
1654
- arc: function arc(t, n, i, a, u, k) {
1655
- t = +t, n = +n, i = +i, k = !!k;
1656
- var _ = i * Math.cos(a), p = i * Math.sin(a), s = t + _, o = n + p, c = 1 ^ k, g = k ? a - u : u - a;
1657
- if (i < 0) throw new Error("negative radius: " + i);
1658
- this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) > z || Math.abs(this._y1 - o) > z) && (this._ += "L" + s + "," + o), i && (g < 0 && (g = g % nt + nt), g > Gt ? this._ += "A" + i + "," + i + ",0,1," + c + "," + (t - _) + "," + (n - p) + "A" + i + "," + i + ",0,1," + c + "," + (this._x1 = s) + "," + (this._y1 = o) : g > z && (this._ += "A" + i + "," + i + ",0," + +(g >= et) + "," + c + "," + (this._x1 = t + i * Math.cos(u)) + "," + (this._y1 = n + i * Math.sin(u))));
1650
+ arc: function arc(t, n, s, a, u, y) {
1651
+ t = +t, n = +n, s = +s, y = !!y;
1652
+ var p = s * Math.cos(a), m = s * Math.sin(a), i = t + p, o = n + m, c = 1 ^ y, k = y ? a - u : u - a;
1653
+ if (s < 0) throw new Error("negative radius: " + s);
1654
+ this._x1 === null ? this._ += "M" + i + "," + o : (Math.abs(this._x1 - i) > D || Math.abs(this._y1 - o) > D) && (this._ += "L" + i + "," + o), s && (k < 0 && (k = k % nt + nt), k > Yt ? this._ += "A" + s + "," + s + ",0,1," + c + "," + (t - p) + "," + (n - m) + "A" + s + "," + s + ",0,1," + c + "," + (this._x1 = i) + "," + (this._y1 = o) : k > D && (this._ += "A" + s + "," + s + ",0," + +(k >= et) + "," + c + "," + (this._x1 = t + s * Math.cos(u)) + "," + (this._y1 = n + s * Math.sin(u))));
1659
1655
  },
1660
- rect: function rect(t, n, i, a) {
1661
- this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +n) + "h" + +i + "v" + +a + "h" + -i + "Z";
1656
+ rect: function rect(t, n, s, a) {
1657
+ this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +n) + "h" + +s + "v" + +a + "h" + -s + "Z";
1662
1658
  },
1663
1659
  toString: function toString() {
1664
1660
  return this._;
1665
1661
  }
1666
1662
  };
1667
- function ft(t) {
1663
+ function ht(t) {
1668
1664
  return function() {
1669
1665
  return t;
1670
1666
  };
@@ -1683,25 +1679,25 @@ function Kt(t) {
1683
1679
  return t.target;
1684
1680
  }
1685
1681
  function Zt(t) {
1686
- var n = Qt, i = Kt, a = Ht, u = Xt, k = null;
1687
- function _() {
1688
- var p, s = qt.call(arguments), o = n.apply(this, s), c = i.apply(this, s);
1689
- if (k || (k = p = gt()), t(k, +a.apply(this, (s[0] = o, s)), +u.apply(this, s), +a.apply(this, (s[0] = c, s)), +u.apply(this, s)), p) return k = null, p + "" || null;
1682
+ var n = Qt, s = Kt, a = Ht, u = Xt, y = null;
1683
+ function p() {
1684
+ var m, i = qt.call(arguments), o = n.apply(this, i), c = s.apply(this, i);
1685
+ if (y || (y = m = gt()), t(y, +a.apply(this, (i[0] = o, i)), +u.apply(this, i), +a.apply(this, (i[0] = c, i)), +u.apply(this, i)), m) return y = null, m + "" || null;
1690
1686
  }
1691
- return _.source = function(p) {
1692
- return arguments.length ? (n = p, _) : n;
1693
- }, _.target = function(p) {
1694
- return arguments.length ? (i = p, _) : i;
1695
- }, _.x = function(p) {
1696
- return arguments.length ? (a = typeof p == "function" ? p : ft(+p), _) : a;
1697
- }, _.y = function(p) {
1698
- return arguments.length ? (u = typeof p == "function" ? p : ft(+p), _) : u;
1699
- }, _.context = function(p) {
1700
- return arguments.length ? (k = p !== null && p !== void 0 ? p : null, _) : k;
1701
- }, _;
1687
+ return p.source = function(m) {
1688
+ return arguments.length ? (n = m, p) : n;
1689
+ }, p.target = function(m) {
1690
+ return arguments.length ? (s = m, p) : s;
1691
+ }, p.x = function(m) {
1692
+ return arguments.length ? (a = typeof m == "function" ? m : ht(+m), p) : a;
1693
+ }, p.y = function(m) {
1694
+ return arguments.length ? (u = typeof m == "function" ? m : ht(+m), p) : u;
1695
+ }, p.context = function(m) {
1696
+ return arguments.length ? (y = m !== null && m !== void 0 ? m : null, p) : y;
1697
+ }, p;
1702
1698
  }
1703
- function Jt(t, n, i, a, u) {
1704
- t.moveTo(n, i), t.bezierCurveTo(n = (n + a) / 2, i, n, u, a, u);
1699
+ function Jt(t, n, s, a, u) {
1700
+ t.moveTo(n, s), t.bezierCurveTo(n = (n + a) / 2, s, n, u, a, u);
1705
1701
  }
1706
1702
  function te() {
1707
1703
  return Zt(Jt);
@@ -1721,12 +1717,12 @@ function ne(t) {
1721
1717
  function ie() {
1722
1718
  return te().source(ee).target(ne);
1723
1719
  }
1724
- var st = /*#__PURE__*/ function() {
1725
- function st1(t) {
1726
- _class_call_check(this, st1);
1727
- this.id = t, this.href = "#".concat(t);
1720
+ var pt = /*#__PURE__*/ function() {
1721
+ function st(n) {
1722
+ _class_call_check(this, st);
1723
+ this.id = n, this.href = "#".concat(n);
1728
1724
  }
1729
- _create_class(st1, [
1725
+ _create_class(st, [
1730
1726
  {
1731
1727
  key: "toString",
1732
1728
  value: function toString() {
@@ -1736,113 +1732,115 @@ var st = /*#__PURE__*/ function() {
1736
1732
  ], [
1737
1733
  {
1738
1734
  key: "next",
1739
- value: function next(t) {
1740
- return new st(t + ++st.count);
1735
+ value: function next(n) {
1736
+ return new st(n + ++st.count);
1741
1737
  }
1742
1738
  }
1743
1739
  ]);
1744
- return st1;
1740
+ return st;
1745
1741
  }();
1746
- var rt = st;
1747
- rt.count = 0;
1742
+ pt.count = 0;
1743
+ var ft = pt;
1748
1744
  var se = {
1749
1745
  left: Bt,
1750
- right: Rt,
1751
- center: Ft,
1746
+ right: Vt,
1747
+ center: Rt,
1752
1748
  justify: dt
1753
- }, re = function re(t, n, i, a) {
1754
- var _ot = Ut$1(), u = _ot.securityLevel, k = _ot.sankey, _ = ti.sankey;
1755
- var p;
1756
- u === "sandbox" && (p = At$1("#i" + n));
1757
- var s = u === "sandbox" ? At$1(p.nodes()[0].contentDocument.body) : At$1("body"), o = u === "sandbox" ? s.select('[id="'.concat(n, '"]')) : At$1('[id="'.concat(n, '"]')), c = (k == null ? void 0 : k.width) || _.width, g = (k == null ? void 0 : k.height) || _.width, b = (k == null ? void 0 : k.useMaxWidth) || _.useMaxWidth, d = (k == null ? void 0 : k.nodeAlignment) || _.nodeAlignment;
1758
- Yg(o, g, c, b);
1759
- var x = a.db.getGraph(), E = se[d], M = 10;
1760
- Yt().nodeId(function(y) {
1761
- return y.id;
1762
- }).nodeWidth(M).nodePadding(10).nodeAlign(E).extent([
1749
+ }, re = function re(t, n, s, a) {
1750
+ var _rt = Vn(), u = _rt.securityLevel, y = _rt.sankey, p = w1.sankey;
1751
+ var m;
1752
+ u === "sandbox" && (m = bt("#i" + n));
1753
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
1754
+ var i = u === "sandbox" ? bt(m.nodes()[0].contentDocument.body) : bt("body"), o = u === "sandbox" ? i.select('[id="'.concat(n, '"]')) : bt('[id="'.concat(n, '"]')), c = (_ref = y == null ? void 0 : y.width) !== null && _ref !== void 0 ? _ref : p.width, k = (_ref1 = y == null ? void 0 : y.height) !== null && _ref1 !== void 0 ? _ref1 : p.width, b = (_ref2 = y == null ? void 0 : y.useMaxWidth) !== null && _ref2 !== void 0 ? _ref2 : p.useMaxWidth, d = (_ref3 = y == null ? void 0 : y.nodeAlignment) !== null && _ref3 !== void 0 ? _ref3 : p.nodeAlignment, x = (_ref4 = y == null ? void 0 : y.prefix) !== null && _ref4 !== void 0 ? _ref4 : p.prefix, E = (_ref5 = y == null ? void 0 : y.suffix) !== null && _ref5 !== void 0 ? _ref5 : p.suffix, L = (_ref6 = y == null ? void 0 : y.showValues) !== null && _ref6 !== void 0 ? _ref6 : p.showValues, A = a.db.getGraph(), N = se[d], C = 10;
1755
+ Gt().nodeId(function(g) {
1756
+ return g.id;
1757
+ }).nodeWidth(C).nodePadding(10 + (L ? 15 : 0)).nodeAlign(N).extent([
1763
1758
  [
1764
1759
  0,
1765
1760
  0
1766
1761
  ],
1767
1762
  [
1768
1763
  c,
1769
- g
1764
+ k
1770
1765
  ]
1771
- ])(x);
1772
- var A = h(Tt);
1773
- o.append("g").attr("class", "nodes").selectAll(".node").data(x.nodes).join("g").attr("class", "node").attr("id", function(y) {
1774
- return (y.uid = rt.next("node-")).id;
1775
- }).attr("transform", function(y) {
1776
- return "translate(" + y.x0 + "," + y.y0 + ")";
1777
- }).attr("x", function(y) {
1778
- return y.x0;
1779
- }).attr("y", function(y) {
1780
- return y.y0;
1781
- }).append("rect").attr("height", function(y) {
1782
- return y.y1 - y.y0;
1783
- }).attr("width", function(y) {
1784
- return y.x1 - y.x0;
1785
- }).attr("fill", function(y) {
1786
- return A(y.id);
1787
- }), o.append("g").attr("class", "node-labels").attr("font-family", "sans-serif").attr("font-size", 14).selectAll("text").data(x.nodes).join("text").attr("x", function(y) {
1788
- return y.x0 < c / 2 ? y.x1 + 6 : y.x0 - 6;
1789
- }).attr("y", function(y) {
1790
- return (y.y1 + y.y0) / 2;
1791
- }).attr("dy", "0.35em").attr("text-anchor", function(y) {
1792
- return y.x0 < c / 2 ? "start" : "end";
1793
- }).text(function(y) {
1794
- return y.id;
1766
+ ])(A);
1767
+ var S = h(r);
1768
+ o.append("g").attr("class", "nodes").selectAll(".node").data(A.nodes).join("g").attr("class", "node").attr("id", function(g) {
1769
+ return (g.uid = ft.next("node-")).id;
1770
+ }).attr("transform", function(g) {
1771
+ return "translate(" + g.x0 + "," + g.y0 + ")";
1772
+ }).attr("x", function(g) {
1773
+ return g.x0;
1774
+ }).attr("y", function(g) {
1775
+ return g.y0;
1776
+ }).append("rect").attr("height", function(g) {
1777
+ return g.y1 - g.y0;
1778
+ }).attr("width", function(g) {
1779
+ return g.x1 - g.x0;
1780
+ }).attr("fill", function(g) {
1781
+ return S(g.id);
1795
1782
  });
1796
- var N = o.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(x.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), C = (k == null ? void 0 : k.linkColor) || "gradient";
1797
- if (C === "gradient") {
1798
- var y = N.append("linearGradient").attr("id", function(L) {
1799
- return (L.uid = rt.next("linearGradient-")).id;
1800
- }).attr("gradientUnits", "userSpaceOnUse").attr("x1", function(L) {
1801
- return L.source.x1;
1802
- }).attr("x2", function(L) {
1803
- return L.target.x0;
1783
+ var M = function(param) {
1784
+ var g = param.id, w = param.value;
1785
+ return L ? "".concat(g, "\n").concat(x).concat(Math.round(w * 100) / 100).concat(E) : g;
1786
+ };
1787
+ o.append("g").attr("class", "node-labels").attr("font-family", "sans-serif").attr("font-size", 14).selectAll("text").data(A.nodes).join("text").attr("x", function(g) {
1788
+ return g.x0 < c / 2 ? g.x1 + 6 : g.x0 - 6;
1789
+ }).attr("y", function(g) {
1790
+ return (g.y1 + g.y0) / 2;
1791
+ }).attr("dy", "".concat(L ? "0" : "0.35", "em")).attr("text-anchor", function(g) {
1792
+ return g.x0 < c / 2 ? "start" : "end";
1793
+ }).text(M);
1794
+ var $ = o.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(A.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), P = (y == null ? void 0 : y.linkColor) || "gradient";
1795
+ if (P === "gradient") {
1796
+ var g = $.append("linearGradient").attr("id", function(w) {
1797
+ return (w.uid = ft.next("linearGradient-")).id;
1798
+ }).attr("gradientUnits", "userSpaceOnUse").attr("x1", function(w) {
1799
+ return w.source.x1;
1800
+ }).attr("x2", function(w) {
1801
+ return w.target.x0;
1804
1802
  });
1805
- y.append("stop").attr("offset", "0%").attr("stop-color", function(L) {
1806
- return A(L.source.id);
1807
- }), y.append("stop").attr("offset", "100%").attr("stop-color", function(L) {
1808
- return A(L.target.id);
1803
+ g.append("stop").attr("offset", "0%").attr("stop-color", function(w) {
1804
+ return S(w.source.id);
1805
+ }), g.append("stop").attr("offset", "100%").attr("stop-color", function(w) {
1806
+ return S(w.target.id);
1809
1807
  });
1810
1808
  }
1811
- var w;
1812
- switch(C){
1809
+ var I;
1810
+ switch(P){
1813
1811
  case "gradient":
1814
- w = function(y) {
1815
- return y.uid;
1812
+ I = function(g) {
1813
+ return g.uid;
1816
1814
  };
1817
1815
  break;
1818
1816
  case "source":
1819
- w = function(y) {
1820
- return A(y.source.id);
1817
+ I = function(g) {
1818
+ return S(g.source.id);
1821
1819
  };
1822
1820
  break;
1823
1821
  case "target":
1824
- w = function(y) {
1825
- return A(y.target.id);
1822
+ I = function(g) {
1823
+ return S(g.target.id);
1826
1824
  };
1827
1825
  break;
1828
1826
  default:
1829
- w = C;
1827
+ I = P;
1830
1828
  }
1831
- N.append("path").attr("d", ie()).attr("stroke", w).attr("stroke-width", function(y) {
1832
- return Math.max(1, y.width);
1833
- });
1829
+ $.append("path").attr("d", ie()).attr("stroke", I).attr("stroke-width", function(g) {
1830
+ return Math.max(1, g.width);
1831
+ }), k_(void 0, o, 0, b);
1834
1832
  }, oe = {
1835
1833
  draw: re
1836
- }, ae = function(t) {
1834
+ }, le = function(t) {
1837
1835
  return t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, "\n").trim();
1838
- }, le = H.parse.bind(H);
1836
+ }, ae = H.parse.bind(H);
1839
1837
  H.parse = function(t) {
1840
- return le(ae(t));
1838
+ return ae(le(t));
1841
1839
  };
1842
- var fe = {
1840
+ var ye = {
1843
1841
  parser: H,
1844
- db: Dt,
1842
+ db: zt,
1845
1843
  renderer: oe
1846
1844
  };
1847
1845
 
1848
- export { fe as diagram };
1846
+ export { ye as diagram };