@kong-ui-public/documentation 1.1.2 → 1.1.3

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 (50) hide show
  1. package/dist/{_basePickBy-zlkqRmFy-CQP0PMRw.js → _basePickBy-zlkqRmFy-Dq-PK6tA.js} +27 -27
  2. package/dist/_baseUniq-SAfYgIkf-DhYxnvgt.js +614 -0
  3. package/dist/{arc-CK9P6CkJ-B3oiAYoG.js → arc-CK9P6CkJ-lihx_wEv.js} +31 -31
  4. package/dist/{architecture-I3QFYML2-DJzmbE4M-BYAx4I-4.js → architecture-I3QFYML2-DJzmbE4M-B5s0Q1wg.js} +1 -1
  5. package/dist/{architectureDiagram-UYN6MBPD-DkZdgpXi-BC7nb0IZ.js → architectureDiagram-UYN6MBPD-DkZdgpXi-CC-fAW7y.js} +850 -850
  6. package/dist/{blockDiagram-ZHA2E4KO-DnCMGCMN-CU7ARVHN.js → blockDiagram-ZHA2E4KO-DnCMGCMN-B9tod6Dk.js} +477 -477
  7. package/dist/{c4Diagram-6F5ED5ID-D5yqWyf0-DEuKG0sN.js → c4Diagram-6F5ED5ID-D5yqWyf0-B1iuFSQ1.js} +203 -203
  8. package/dist/{channel-bVcNKbrJ-C4S-4qV3.js → channel-bVcNKbrJ-DEGmvXXN.js} +1 -1
  9. package/dist/{chunk-5HRBRIJM-BjQ8go1b-733bxiZ-.js → chunk-5HRBRIJM-BjQ8go1b-BszOhLz8.js} +4 -4
  10. package/dist/{chunk-7U56Z5CX-awhAxjZ0-DpUJ4fo1.js → chunk-7U56Z5CX-awhAxjZ0-CHd4qyz3.js} +120 -120
  11. package/dist/{chunk-ASOPGD6M-B5bA_saK-C3yF9T7p.js → chunk-ASOPGD6M-B5bA_saK-RaS3hIfR.js} +1 -1
  12. package/dist/{chunk-KFBOBJHC-nixdujtH-B4639Jmi.js → chunk-KFBOBJHC-nixdujtH-DCajFn7e.js} +1 -1
  13. package/dist/{chunk-T2TOU4HS-DqOVhIzl-piSN2Cjl.js → chunk-T2TOU4HS-DqOVhIzl-1waDvYDY.js} +229 -229
  14. package/dist/{chunk-TMUBEWPD-BRIzn5gH-SlHeKBx9.js → chunk-TMUBEWPD-BRIzn5gH-Ch1SRQ7H.js} +1 -1
  15. package/dist/{classDiagram-LNE6IOMH-fQzyXfo--C9LjXboP.js → classDiagram-LNE6IOMH-fQzyXfo--BpuwdnmV.js} +4 -4
  16. package/dist/{classDiagram-v2-MQ7JQ4JX-fQzyXfo--C9LjXboP.js → classDiagram-v2-MQ7JQ4JX-fQzyXfo--BpuwdnmV.js} +4 -4
  17. package/dist/{clone-_5SW34SG-DtUOH1l1.js → clone-_5SW34SG-BWxdvZXA.js} +1 -1
  18. package/dist/{cytoscape.esm-DAyNQ0qu-B7WxGuVh.js → cytoscape.esm-DAyNQ0qu-i5PnoWfE.js} +976 -976
  19. package/dist/{dagre-4EVJKHTY-CcAruc30-DaOjmyb6.js → dagre-4EVJKHTY-CcAruc30-H9W22Yky.js} +85 -85
  20. package/dist/{diagram-QW4FP2JN-DZT_0aFO-YCKYx1k-.js → diagram-QW4FP2JN-DZT_0aFO-AmG94tp5.js} +21 -21
  21. package/dist/documentation.es.js +1 -1
  22. package/dist/{erDiagram-6RL3IURR-BfgUC5jv-CS9Q9iKF.js → erDiagram-6RL3IURR-BfgUC5jv-BNzxBFoY.js} +201 -201
  23. package/dist/{flowDiagram-7ASYPVHJ-Bo9CnsE7-CkM-DJdr.js → flowDiagram-7ASYPVHJ-Bo9CnsE7-CSLq7kw9.js} +222 -222
  24. package/dist/{ganttDiagram-NTVNEXSI-8E9hjd6N-iN-VNXrV.js → ganttDiagram-NTVNEXSI-8E9hjd6N-CjQQCbaM.js} +16 -16
  25. package/dist/{gitGraph-YCYPL57B-BnErPIwo-DWobPBzL.js → gitGraph-YCYPL57B-BnErPIwo-DxQPpoWq.js} +1 -1
  26. package/dist/{gitGraphDiagram-NRZ2UAAF-B-t90-9e-Co4q5oQK.js → gitGraphDiagram-NRZ2UAAF-B-t90-9e-B6JY8bWo.js} +17 -17
  27. package/dist/{graph-BYZMvqpu-BpeF1PUA.js → graph-BYZMvqpu-CWGqkYZM.js} +43 -43
  28. package/dist/{index-ZM4BlVwk.js → index-BXOX6oou.js} +3487 -3487
  29. package/dist/{info-46DW6VJ7-DPpbx_vA-CnDg11wg.js → info-46DW6VJ7-DPpbx_vA-BmAPar7H.js} +1 -1
  30. package/dist/{infoDiagram-A4XQUW5V-Bo9uoOcA-WvvF1295.js → infoDiagram-A4XQUW5V-Bo9uoOcA-CtFRRRot.js} +2 -2
  31. package/dist/{journeyDiagram-G5WM74LC-BE7U42Ad-BFF_wJwi.js → journeyDiagram-G5WM74LC-BE7U42Ad-of9fN5Vr.js} +173 -173
  32. package/dist/{kanban-definition-QRCXZQQD-C-5-UNRm-LjA3yK5r.js → kanban-definition-QRCXZQQD-C-5-UNRm-DecJsseT.js} +168 -168
  33. package/dist/{katex-Qk2jHgyB-CF_fuFJb.js → katex-Qk2jHgyB-_qyJ_37x.js} +1054 -1054
  34. package/dist/{layout-BHI4imdk-DgoNZaqw.js → layout-BHI4imdk-BlkmyDbe.js} +19 -19
  35. package/dist/{linear-C2PheBya-wGRbEA3e.js → linear-C2PheBya-DijeUNjP.js} +2 -2
  36. package/dist/{mermaid-parser.core-Ce96PX3Q-DPc-bPXG.js → mermaid-parser.core-Ce96PX3Q-DtNzRUJ7.js} +32 -32
  37. package/dist/{mindmap-definition-GWI6TPTV-C98Syvj2-DOvfo2r8.js → mindmap-definition-GWI6TPTV-C98Syvj2-Btvji3Oh.js} +421 -421
  38. package/dist/{packet-W2GHVCYJ-BLiQbm7T-DbS7CM6G.js → packet-W2GHVCYJ-BLiQbm7T-E8ztaW67.js} +1 -1
  39. package/dist/{pie-BEWT4RHE-D3Mbo3mT-DB-aeuYE.js → pie-BEWT4RHE-D3Mbo3mT-BGVGE8TE.js} +1 -1
  40. package/dist/{pieDiagram-YF2LJOPJ-BJV27s9B-DS-nBsbY.js → pieDiagram-YF2LJOPJ-BJV27s9B-DVrzAwZP.js} +20 -20
  41. package/dist/{quadrantDiagram-OS5C2QUG-M57vVPSx-DMjI1wdt.js → quadrantDiagram-OS5C2QUG-M57vVPSx-DrN-qVPg.js} +131 -131
  42. package/dist/{requirementDiagram-MIRIMTAZ-D0KDg7rf-DeEsJ26T.js → requirementDiagram-MIRIMTAZ-D0KDg7rf-FCJNuddX.js} +77 -77
  43. package/dist/{sankeyDiagram-Y46BX6SQ-D6EdYPdp-BA6cRE1h.js → sankeyDiagram-Y46BX6SQ-D6EdYPdp-ClC_w0Hg.js} +108 -108
  44. package/dist/{sequenceDiagram-G6AWOVSC-B171TAb1-DMtStdxJ.js → sequenceDiagram-G6AWOVSC-B171TAb1-B6jBix6L.js} +181 -181
  45. package/dist/{stateDiagram-MAYHULR4-D7FUnT9_-Du3mnoL2.js → stateDiagram-MAYHULR4-D7FUnT9_-B7dSTUAT.js} +81 -81
  46. package/dist/{stateDiagram-v2-4JROLMXI-Cyc74STT-DR1h52WB.js → stateDiagram-v2-4JROLMXI-Cyc74STT-BhUBvhmS.js} +4 -4
  47. package/dist/{timeline-definition-U7ZMHBDA-Bw-dp1yf-BO9wUMSJ.js → timeline-definition-U7ZMHBDA-Bw-dp1yf-DAx9hgzp.js} +126 -126
  48. package/dist/{xychartDiagram-6QU3TZC5-CqbTSF5W-CwiL6udJ.js → xychartDiagram-6QU3TZC5-CqbTSF5W-Dy5Ia8cd.js} +70 -70
  49. package/package.json +2 -2
  50. package/dist/_baseUniq-SAfYgIkf-BO_CV6Oz.js +0 -614
@@ -1,5 +1,5 @@
1
- import { aI as en, aJ as nn, aK as rn, aL as an, _ as d, aM as et, aN as xe, g as _t, a5 as Fn, a6 as Un, al as En, am as In, a8 as Ln, a7 as Wn, aO as Hn, ar as Pn, ah as Nn, l as Jt, af as Bt, ag as On, ab as zn, aq as Vn, aP as ne, aQ as Bn } from "./index-ZM4BlVwk.js";
2
- import { Z as Zn, X as jn, O as qn, _ as Gn, w as Le } from "./linear-C2PheBya-wGRbEA3e.js";
1
+ import { _ as d, a6 as Fn, a5 as Un, aj as En, ak as In, a7 as Ln, a8 as Wn, g as _t, a9 as Bt, aa as Hn, aI as et, l as Jt, ag as Pn, ae as Nn, aq as On, aJ as ne, ao as zn, aK as en, aL as Vn, aM as nn, aN as rn, aO as an, aP as Bn, aQ as xe } from "./index-BXOX6oou.js";
2
+ import { Z as Zn, X as jn, O as qn, _ as Gn, w as Le } from "./linear-C2PheBya-DijeUNjP.js";
3
3
  import { t as Jn } from "./init-DjUOC4st-C8Nwz6AJ.js";
4
4
  function Rn(t, e) {
5
5
  let n;
@@ -91,7 +91,7 @@ const sr = Math.PI / 180, or = 180 / Math.PI, Rt = 18, on = 0.96422, cn = 1, ln
91
91
  function hn(t) {
92
92
  if (t instanceof ot) return new ot(t.l, t.a, t.b, t.opacity);
93
93
  if (t instanceof dt) return fn(t);
94
- t instanceof rn || (t = Hn(t));
94
+ t instanceof en || (t = Vn(t));
95
95
  var e = oe(t.r), n = oe(t.g), r = oe(t.b), a = ie((0.2225045 * e + 0.7168786 * n + 0.0606169 * r) / cn), s, c;
96
96
  return e === n && n === r ? s = c = a : (s = ie((0.4360747 * e + 0.3850649 * n + 0.1430804 * r) / on), c = ie((0.0139322 * e + 0.0971045 * n + 0.7141733 * r) / ln)), new ot(116 * a - 16, 500 * (s - a), 200 * (a - c), t.opacity);
97
97
  }
@@ -101,7 +101,7 @@ function lr(t, e, n, r) {
101
101
  function ot(t, e, n, r) {
102
102
  this.l = +t, this.a = +e, this.b = +n, this.opacity = +r;
103
103
  }
104
- en(ot, lr, nn(an, {
104
+ nn(ot, lr, rn(an, {
105
105
  brighter(t) {
106
106
  return new ot(this.l + Rt * (t ?? 1), this.a, this.b, this.opacity);
107
107
  },
@@ -110,7 +110,7 @@ en(ot, lr, nn(an, {
110
110
  },
111
111
  rgb() {
112
112
  var t = (this.l + 16) / 116, e = isNaN(this.a) ? t : t + this.a / 500, n = isNaN(this.b) ? t : t - this.b / 200;
113
- return e = on * ae(e), t = cn * ae(t), n = ln * ae(n), new rn(
113
+ return e = on * ae(e), t = cn * ae(t), n = ln * ae(n), new en(
114
114
  se(3.1338561 * e - 1.6168667 * t - 0.4906146 * n),
115
115
  se(-0.9787684 * e + 1.9161415 * t + 0.033454 * n),
116
116
  se(0.0719453 * e - 0.2289914 * t + 1.4052427 * n),
@@ -147,7 +147,7 @@ function fn(t) {
147
147
  var e = t.h * sr;
148
148
  return new ot(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity);
149
149
  }
150
- en(dt, ge, nn(an, {
150
+ nn(dt, ge, rn(an, {
151
151
  brighter(t) {
152
152
  return new dt(this.h, this.c, this.l + Rt * (t ?? 1), this.opacity);
153
153
  },
@@ -1599,7 +1599,7 @@ et.extend(Fi);
1599
1599
  et.extend(Li);
1600
1600
  et.extend(Ni);
1601
1601
  var Qe = { friday: 5, saturday: 6 }, st = "", Ce = "", _e = void 0, Me = "", Nt = [], Ot = [], Se = /* @__PURE__ */ new Map(), $e = [], Xt = [], At = "", Ye = "", Dn = ["active", "done", "crit", "milestone"], Ae = [], zt = !1, Fe = !1, Ue = "sunday", te = "saturday", ve = 0, zi = /* @__PURE__ */ d(function() {
1602
- $e = [], Xt = [], At = "", Ae = [], qt = 0, be = void 0, Gt = void 0, K = [], st = "", Ce = "", Ye = "", _e = void 0, Me = "", Nt = [], Ot = [], zt = !1, Fe = !1, ve = 0, Se = /* @__PURE__ */ new Map(), Pn(), Ue = "sunday", te = "saturday";
1602
+ $e = [], Xt = [], At = "", Ae = [], qt = 0, be = void 0, Gt = void 0, K = [], st = "", Ce = "", Ye = "", _e = void 0, Me = "", Nt = [], Ot = [], zt = !1, Fe = !1, ve = 0, Se = /* @__PURE__ */ new Map(), On(), Ue = "sunday", te = "saturday";
1603
1603
  }, "clear"), Vi = /* @__PURE__ */ d(function(t) {
1604
1604
  Ce = t;
1605
1605
  }, "setAxisFormat"), Bi = /* @__PURE__ */ d(function() {
@@ -1868,7 +1868,7 @@ var Qe = { friday: 5, saturday: 6 }, st = "", Ce = "", _e = void 0, Me = "", Nt
1868
1868
  }
1869
1869
  }
1870
1870
  r.length === 0 && r.push(t), Dt(t) !== void 0 && An(t, () => {
1871
- Vn.runFunc(e, ...r);
1871
+ zn.runFunc(e, ...r);
1872
1872
  });
1873
1873
  }, "setClickFun"), An = /* @__PURE__ */ d(function(t, e) {
1874
1874
  Ae.push(
@@ -1908,14 +1908,14 @@ var Qe = { friday: 5, saturday: 6 }, st = "", Ce = "", _e = void 0, Me = "", Nt
1908
1908
  getTickInterval: ji,
1909
1909
  setTodayMarker: qi,
1910
1910
  getTodayMarker: Gi,
1911
- setAccTitle: Fn,
1912
- getAccTitle: Un,
1913
- setDiagramTitle: En,
1914
- getDiagramTitle: In,
1911
+ setAccTitle: Wn,
1912
+ getAccTitle: Ln,
1913
+ setDiagramTitle: In,
1914
+ getDiagramTitle: En,
1915
1915
  setDisplayMode: ta,
1916
1916
  getDisplayMode: ea,
1917
- setAccDescription: Ln,
1918
- getAccDescription: Wn,
1917
+ setAccDescription: Un,
1918
+ getAccDescription: Fn,
1919
1919
  addSection: ca,
1920
1920
  getSections: la,
1921
1921
  getTasks: ua,
@@ -2005,7 +2005,7 @@ var Da = /* @__PURE__ */ d(function() {
2005
2005
  let k = 0;
2006
2006
  return M > C ? k = 1 : M < C && (k = -1), k;
2007
2007
  }
2008
- d(F, "taskCompare"), D.sort(F), P(D, ut, w), On(j, w, ut, a.useMaxWidth), j.append("text").text(r.db.getDiagramTitle()).attr("x", ut / 2).attr("y", a.titleTopMargin).attr("class", "titleText");
2008
+ d(F, "taskCompare"), D.sort(F), P(D, ut, w), Hn(j, w, ut, a.useMaxWidth), j.append("text").text(r.db.getDiagramTitle()).attr("x", ut / 2).attr("y", a.titleTopMargin).attr("class", "titleText");
2009
2009
  function P(T, Y, M) {
2010
2010
  const C = a.barHeight, k = C + a.barGap, _ = a.topPadding, o = a.leftPadding, g = Zn().domain([0, A.length]).range(["#00B9FA", "#F95002"]).interpolate(hr);
2011
2011
  V(
@@ -2190,7 +2190,7 @@ var Da = /* @__PURE__ */ d(function() {
2190
2190
  let M = 0;
2191
2191
  const C = Object.keys(x).map((k) => [k, x[k]]);
2192
2192
  j.append("g").selectAll("text").data(C).enter().append(function(k) {
2193
- const _ = k[0].split(zn.lineBreakRegex), o = -(_.length - 1) / 2, g = $.createElementNS("http://www.w3.org/2000/svg", "text");
2193
+ const _ = k[0].split(Pn.lineBreakRegex), o = -(_.length - 1) / 2, g = $.createElementNS("http://www.w3.org/2000/svg", "text");
2194
2194
  g.setAttribute("dy", o + "em");
2195
2195
  for (const [h, S] of _.entries()) {
2196
2196
  const i = $.createElementNS("http://www.w3.org/2000/svg", "tspan");
@@ -1,4 +1,4 @@
1
- import { A as a, E as t } from "./mermaid-parser.core-Ce96PX3Q-DPc-bPXG.js";
1
+ import { A as a, E as t } from "./mermaid-parser.core-Ce96PX3Q-DtNzRUJ7.js";
2
2
  export {
3
3
  a as GitGraphModule,
4
4
  t as createGitGraphServices
@@ -1,16 +1,16 @@
1
- import { m as Q } from "./chunk-TMUBEWPD-BRIzn5gH-SlHeKBx9.js";
2
- import { e as X } from "./chunk-KFBOBJHC-nixdujtH-B4639Jmi.js";
3
- import { aB as Z, _ as $, g as tt, aC as rt, aD as et, aE as ot, l as w, a5 as nt, a6 as at, a7 as ct, a8 as it, al as st, am as dt, ab as k, ar as ht, af as mt, aq as $t, aF as lt } from "./index-ZM4BlVwk.js";
4
- import { D as gt } from "./mermaid-parser.core-Ce96PX3Q-DPc-bPXG.js";
1
+ import { m as Q } from "./chunk-TMUBEWPD-BRIzn5gH-Ch1SRQ7H.js";
2
+ import { e as X } from "./chunk-KFBOBJHC-nixdujtH-DCajFn7e.js";
3
+ import { _ as $, aj as Z, ak as tt, a5 as rt, a6 as et, a7 as ot, a8 as nt, l as w, g as at, a9 as ct, ao as it, aB as st, aq as dt, ag as k, aC as ht, aD as mt, aE as $t, aF as lt } from "./index-BXOX6oou.js";
4
+ import { D as gt } from "./mermaid-parser.core-Ce96PX3Q-DtNzRUJ7.js";
5
5
  var x = {
6
6
  NORMAL: 0,
7
7
  REVERSE: 1,
8
8
  HIGHLIGHT: 2,
9
9
  MERGE: 3,
10
10
  CHERRY_PICK: 4
11
- }, yt = Z.gitGraph, O = /* @__PURE__ */ $(() => rt({
11
+ }, yt = $t.gitGraph, O = /* @__PURE__ */ $(() => ht({
12
12
  ...yt,
13
- ...et().gitGraph
13
+ ...mt().gitGraph
14
14
  }), "getConfig"), s = new X(() => {
15
15
  const r = O(), t = r.mainBranchName, e = r.mainBranchOrder;
16
16
  return {
@@ -26,7 +26,7 @@ var x = {
26
26
  };
27
27
  });
28
28
  function S() {
29
- return ot({ length: 7 });
29
+ return lt({ length: 7 });
30
30
  }
31
31
  $(S, "getID");
32
32
  function F(r, t) {
@@ -271,7 +271,7 @@ var Et = /* @__PURE__ */ $(function() {
271
271
  const r = Y()[0];
272
272
  _([r]);
273
273
  }, "prettyPrint"), vt = /* @__PURE__ */ $(function() {
274
- s.reset(), ht();
274
+ s.reset(), dt();
275
275
  }, "clear"), Ct = /* @__PURE__ */ $(function() {
276
276
  return [...s.records.branchConfig.values()].map((r, t) => r.order !== null && r.order !== void 0 ? r : {
277
277
  ...r,
@@ -314,11 +314,11 @@ var Et = /* @__PURE__ */ $(function() {
314
314
  getDirection: Mt,
315
315
  getHead: Pt,
316
316
  setAccTitle: nt,
317
- getAccTitle: at,
318
- getAccDescription: ct,
319
- setAccDescription: it,
320
- setDiagramTitle: st,
321
- getDiagramTitle: dt
317
+ getAccTitle: ot,
318
+ getAccDescription: et,
319
+ setAccDescription: rt,
320
+ setDiagramTitle: tt,
321
+ getDiagramTitle: Z
322
322
  }, Rt = /* @__PURE__ */ $((r, t) => {
323
323
  Q(r, t), r.dir && t.setDirection(r.dir);
324
324
  for (const e of r.statements)
@@ -358,7 +358,7 @@ var Et = /* @__PURE__ */ $(function() {
358
358
  const t = await gt("gitGraph", r);
359
359
  w.debug(t), Rt(t, V);
360
360
  }, "parse")
361
- }, W = tt(), E = W == null ? void 0 : W.gitGraph, A = 10, I = 40, T = 4, M = 2, G = 8, v = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), H = 30, q = /* @__PURE__ */ new Map(), z = [], R = 0, f = "LR", zt = /* @__PURE__ */ $(() => {
361
+ }, W = at(), E = W == null ? void 0 : W.gitGraph, A = 10, I = 40, T = 4, M = 2, G = 8, v = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), H = 30, q = /* @__PURE__ */ new Map(), z = [], R = 0, f = "LR", zt = /* @__PURE__ */ $(() => {
362
362
  v.clear(), C.clear(), q.clear(), R = 0, z = [], f = "LR";
363
363
  }, "clear"), U = /* @__PURE__ */ $((r) => {
364
364
  const t = document.createElementNS("http://www.w3.org/2000/svg", "text");
@@ -627,7 +627,7 @@ var Et = /* @__PURE__ */ $(function() {
627
627
  q = i.getCommits();
628
628
  const h = i.getBranchesAsObjArray();
629
629
  f = i.getDirection();
630
- const d = mt(`[id="${t}"]`);
630
+ const d = ct(`[id="${t}"]`);
631
631
  let l = 0;
632
632
  h.forEach((o, n) => {
633
633
  var u;
@@ -635,12 +635,12 @@ var Et = /* @__PURE__ */ $(function() {
635
635
  (u = y.node()) == null || u.appendChild(m);
636
636
  const L = m.getBBox();
637
637
  l = er(o.name, l, n, L, c), y.remove(), p.remove(), g.remove();
638
- }), j(d, q, !1), E.showBranches && rr(d, h), tr(d, q), j(d, q, !0), $t.insertTitle(
638
+ }), j(d, q, !1), E.showBranches && rr(d, h), tr(d, q), j(d, q, !0), it.insertTitle(
639
639
  d,
640
640
  "gitTitleText",
641
641
  E.titleTopMargin ?? 0,
642
642
  i.getDiagramTitle()
643
- ), lt(
643
+ ), st(
644
644
  void 0,
645
645
  d,
646
646
  E.diagramPadding,
@@ -1,7 +1,7 @@
1
- import { k as E, n as g, o as v, q as L, r as b } from "./index-ZM4BlVwk.js";
2
- import { I as N, O as j, $ as _, _ as p, a, E as l, S as m, P } from "./_baseUniq-SAfYgIkf-BO_CV6Oz.js";
1
+ import { k as g, n as v, o as E, q as L, r as b } from "./index-BXOX6oou.js";
2
+ import { $ as _, _ as p, a, E as l, S as f, P as N, I as j, O as P } from "./_baseUniq-SAfYgIkf-DhYxnvgt.js";
3
3
  var D = E(function(o) {
4
- return N(j(o, 1, L, !0));
4
+ return j(P(o, 1, L, !0));
5
5
  }), F = "\0", d = "\0", O = "";
6
6
  class y {
7
7
  constructor(t = {}) {
@@ -46,9 +46,9 @@ class y {
46
46
  });
47
47
  }
48
48
  setNodes(t, e) {
49
- var s = arguments, i = this;
50
- return a(t, function(r) {
51
- s.length > 1 ? i.setNode(r, e) : i.setNode(r);
49
+ var s = arguments, r = this;
50
+ return a(t, function(i) {
51
+ s.length > 1 ? r.setNode(i, e) : r.setNode(i);
52
52
  }), this;
53
53
  }
54
54
  setNode(t, e) {
@@ -137,13 +137,13 @@ class y {
137
137
  }), a(this._edgeObjs, function(n) {
138
138
  e.hasNode(n.v) && e.hasNode(n.w) && e.setEdge(n, s.edge(n));
139
139
  });
140
- var i = {};
141
- function r(n) {
140
+ var r = {};
141
+ function i(n) {
142
142
  var h = s.parent(n);
143
- return h === void 0 || e.hasNode(h) ? (i[n] = h, h) : h in i ? i[h] : r(h);
143
+ return h === void 0 || e.hasNode(h) ? (r[n] = h, h) : h in r ? r[h] : i(h);
144
144
  }
145
145
  return this._isCompound && a(e.nodes(), function(n) {
146
- e.setParent(n, r(n));
146
+ e.setParent(n, i(n));
147
147
  }), e;
148
148
  }
149
149
  /* === Edge functions ========== */
@@ -154,12 +154,12 @@ class y {
154
154
  return this._edgeCount;
155
155
  }
156
156
  edges() {
157
- return m(this._edgeObjs);
157
+ return f(this._edgeObjs);
158
158
  }
159
159
  setPath(t, e) {
160
- var s = this, i = arguments;
161
- return P(t, function(r, n) {
162
- return i.length > 1 ? s.setEdge(r, n, e) : s.setEdge(r, n), n;
160
+ var s = this, r = arguments;
161
+ return N(t, function(i, n) {
162
+ return r.length > 1 ? s.setEdge(i, n, e) : s.setEdge(i, n), n;
163
163
  }), this;
164
164
  }
165
165
  /*
@@ -167,45 +167,45 @@ class y {
167
167
  * setEdge({ v, w, [name] }, [value])
168
168
  */
169
169
  setEdge() {
170
- var t, e, s, i, r = !1, n = arguments[0];
171
- typeof n == "object" && n !== null && "v" in n ? (t = n.v, e = n.w, s = n.name, arguments.length === 2 && (i = arguments[1], r = !0)) : (t = n, e = arguments[1], s = arguments[3], arguments.length > 2 && (i = arguments[2], r = !0)), t = "" + t, e = "" + e, l(s) || (s = "" + s);
170
+ var t, e, s, r, i = !1, n = arguments[0];
171
+ typeof n == "object" && n !== null && "v" in n ? (t = n.v, e = n.w, s = n.name, arguments.length === 2 && (r = arguments[1], i = !0)) : (t = n, e = arguments[1], s = arguments[3], arguments.length > 2 && (r = arguments[2], i = !0)), t = "" + t, e = "" + e, l(s) || (s = "" + s);
172
172
  var h = c(this._isDirected, t, e, s);
173
173
  if (Object.prototype.hasOwnProperty.call(this._edgeLabels, h))
174
- return r && (this._edgeLabels[h] = i), this;
174
+ return i && (this._edgeLabels[h] = r), this;
175
175
  if (!l(s) && !this._isMultigraph)
176
176
  throw new Error("Cannot set a named edge when isMultigraph = false");
177
- this.setNode(t), this.setNode(e), this._edgeLabels[h] = r ? i : this._defaultEdgeLabelFn(t, e, s);
177
+ this.setNode(t), this.setNode(e), this._edgeLabels[h] = i ? r : this._defaultEdgeLabelFn(t, e, s);
178
178
  var u = M(this._isDirected, t, e, s);
179
179
  return t = u.v, e = u.w, Object.freeze(u), this._edgeObjs[h] = u, C(this._preds[e], t), C(this._sucs[t], e), this._in[e][h] = u, this._out[t][h] = u, this._edgeCount++, this;
180
180
  }
181
181
  edge(t, e, s) {
182
- var i = arguments.length === 1 ? f(this._isDirected, arguments[0]) : c(this._isDirected, t, e, s);
183
- return this._edgeLabels[i];
182
+ var r = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, t, e, s);
183
+ return this._edgeLabels[r];
184
184
  }
185
185
  hasEdge(t, e, s) {
186
- var i = arguments.length === 1 ? f(this._isDirected, arguments[0]) : c(this._isDirected, t, e, s);
187
- return Object.prototype.hasOwnProperty.call(this._edgeLabels, i);
186
+ var r = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, t, e, s);
187
+ return Object.prototype.hasOwnProperty.call(this._edgeLabels, r);
188
188
  }
189
189
  removeEdge(t, e, s) {
190
- var i = arguments.length === 1 ? f(this._isDirected, arguments[0]) : c(this._isDirected, t, e, s), r = this._edgeObjs[i];
191
- return r && (t = r.v, e = r.w, delete this._edgeLabels[i], delete this._edgeObjs[i], w(this._preds[e], t), w(this._sucs[t], e), delete this._in[e][i], delete this._out[t][i], this._edgeCount--), this;
190
+ var r = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, t, e, s), i = this._edgeObjs[r];
191
+ return i && (t = i.v, e = i.w, delete this._edgeLabels[r], delete this._edgeObjs[r], w(this._preds[e], t), w(this._sucs[t], e), delete this._in[e][r], delete this._out[t][r], this._edgeCount--), this;
192
192
  }
193
193
  inEdges(t, e) {
194
194
  var s = this._in[t];
195
195
  if (s) {
196
- var i = m(s);
197
- return e ? p(i, function(r) {
198
- return r.v === e;
199
- }) : i;
196
+ var r = f(s);
197
+ return e ? p(r, function(i) {
198
+ return i.v === e;
199
+ }) : r;
200
200
  }
201
201
  }
202
202
  outEdges(t, e) {
203
203
  var s = this._out[t];
204
204
  if (s) {
205
- var i = m(s);
206
- return e ? p(i, function(r) {
207
- return r.w === e;
208
- }) : i;
205
+ var r = f(s);
206
+ return e ? p(r, function(i) {
207
+ return i.w === e;
208
+ }) : r;
209
209
  }
210
210
  }
211
211
  nodeEdges(t, e) {
@@ -223,23 +223,23 @@ function w(o, t) {
223
223
  --o[t] || delete o[t];
224
224
  }
225
225
  function c(o, t, e, s) {
226
- var i = "" + t, r = "" + e;
227
- if (!o && i > r) {
228
- var n = i;
229
- i = r, r = n;
226
+ var r = "" + t, i = "" + e;
227
+ if (!o && r > i) {
228
+ var n = r;
229
+ r = i, i = n;
230
230
  }
231
- return i + O + r + O + (l(s) ? F : s);
231
+ return r + O + i + O + (l(s) ? F : s);
232
232
  }
233
233
  function M(o, t, e, s) {
234
- var i = "" + t, r = "" + e;
235
- if (!o && i > r) {
236
- var n = i;
237
- i = r, r = n;
234
+ var r = "" + t, i = "" + e;
235
+ if (!o && r > i) {
236
+ var n = r;
237
+ r = i, i = n;
238
238
  }
239
- var h = { v: i, w: r };
239
+ var h = { v: r, w: i };
240
240
  return s && (h.name = s), h;
241
241
  }
242
- function f(o, t) {
242
+ function m(o, t) {
243
243
  return c(o, t.v, t.w, t.name);
244
244
  }
245
245
  export {