drizzle-cube 0.2.0 → 0.2.2

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 (47) hide show
  1. package/dist/client/charts.js +15 -15
  2. package/dist/client/chunks/{chart-activitygridchart-BRk9BNnp.js → chart-activitygridchart--4a5X5eV.js} +12 -12
  3. package/dist/client/chunks/{chart-activitygridchart-BRk9BNnp.js.map → chart-activitygridchart--4a5X5eV.js.map} +1 -1
  4. package/dist/client/chunks/{chart-areachart-Beu8sO9v.js → chart-areachart-C_luzpU9.js} +3 -3
  5. package/dist/client/chunks/{chart-areachart-Beu8sO9v.js.map → chart-areachart-C_luzpU9.js.map} +1 -1
  6. package/dist/client/chunks/{chart-barchart-BzoejYkT.js → chart-barchart-CJzMunji.js} +4 -4
  7. package/dist/client/chunks/{chart-barchart-BzoejYkT.js.map → chart-barchart-CJzMunji.js.map} +1 -1
  8. package/dist/client/chunks/{chart-bubblechart-Dg7sT_Mm.js → chart-bubblechart-DPyYu4B-.js} +2 -2
  9. package/dist/client/chunks/{chart-bubblechart-Dg7sT_Mm.js.map → chart-bubblechart-DPyYu4B-.js.map} +1 -1
  10. package/dist/client/chunks/{chart-charttooltip-NrFVM1cJ.js → chart-charttooltip-CyhJAnW_.js} +2 -2
  11. package/dist/client/chunks/{chart-charttooltip-NrFVM1cJ.js.map → chart-charttooltip-CyhJAnW_.js.map} +1 -1
  12. package/dist/client/chunks/{chart-datatable-BvV7gLPZ.js → chart-datatable-xonQ9udl.js} +2 -2
  13. package/dist/client/chunks/{chart-datatable-BvV7gLPZ.js.map → chart-datatable-xonQ9udl.js.map} +1 -1
  14. package/dist/client/chunks/{chart-kpidelta-p1lVVG5v.js → chart-kpidelta-DTq92DyT.js} +2 -2
  15. package/dist/client/chunks/{chart-kpidelta-p1lVVG5v.js.map → chart-kpidelta-DTq92DyT.js.map} +1 -1
  16. package/dist/client/chunks/{chart-kpinumber-BFtxFeqq.js → chart-kpinumber-CiOvJAlz.js} +4 -4
  17. package/dist/client/chunks/{chart-kpinumber-BFtxFeqq.js.map → chart-kpinumber-CiOvJAlz.js.map} +1 -1
  18. package/dist/client/chunks/{chart-kpitext-CX1s1u8B.js → chart-kpitext-D5kNrcSl.js} +3 -3
  19. package/dist/client/chunks/{chart-kpitext-CX1s1u8B.js.map → chart-kpitext-D5kNrcSl.js.map} +1 -1
  20. package/dist/client/chunks/{chart-linechart-Dgb10zbj.js → chart-linechart-4AF7Q_zF.js} +4 -4
  21. package/dist/client/chunks/{chart-linechart-Dgb10zbj.js.map → chart-linechart-4AF7Q_zF.js.map} +1 -1
  22. package/dist/client/chunks/{chart-piechart-B-0BQh-d.js → chart-piechart-Bf4TMIJP.js} +3 -3
  23. package/dist/client/chunks/{chart-piechart-B-0BQh-d.js.map → chart-piechart-Bf4TMIJP.js.map} +1 -1
  24. package/dist/client/chunks/{chart-radarchart-BwZM1yTd.js → chart-radarchart-DYar9VDH.js} +3 -3
  25. package/dist/client/chunks/{chart-radarchart-BwZM1yTd.js.map → chart-radarchart-DYar9VDH.js.map} +1 -1
  26. package/dist/client/chunks/{chart-radialbarchart-CythI1zx.js → chart-radialbarchart-BzRlxNfh.js} +3 -3
  27. package/dist/client/chunks/{chart-radialbarchart-CythI1zx.js.map → chart-radialbarchart-BzRlxNfh.js.map} +1 -1
  28. package/dist/client/chunks/{chart-scatterchart-om9-qmtE.js → chart-scatterchart-DNVKc7nQ.js} +2 -2
  29. package/dist/client/chunks/{chart-scatterchart-om9-qmtE.js.map → chart-scatterchart-DNVKc7nQ.js.map} +1 -1
  30. package/dist/client/chunks/{chart-treemapchart-Dc35Miif.js → chart-treemapchart-CworQneQ.js} +3 -3
  31. package/dist/client/chunks/{chart-treemapchart-Dc35Miif.js.map → chart-treemapchart-CworQneQ.js.map} +1 -1
  32. package/dist/client/chunks/{charts-DL9XOlaK.js → charts-Cjl5gNIQ.js} +27 -27
  33. package/dist/client/chunks/{charts-DL9XOlaK.js.map → charts-Cjl5gNIQ.js.map} +1 -1
  34. package/dist/client/chunks/{index-DpEuGmcW.js → index-Cn50vSlx.js} +236 -236
  35. package/dist/client/chunks/{index-DpEuGmcW.js.map → index-Cn50vSlx.js.map} +1 -1
  36. package/dist/client/components.js +9117 -16
  37. package/dist/client/components.js.map +1 -1
  38. package/dist/client/hooks.js +3 -3
  39. package/dist/client/index.d.ts +0 -16
  40. package/dist/client/index.js +37 -9135
  41. package/dist/client/index.js.map +1 -1
  42. package/dist/client/providers.d.ts +1 -0
  43. package/dist/client/providers.js +8 -4
  44. package/dist/client/providers.js.map +1 -1
  45. package/dist/client/styles.css +1 -1
  46. package/dist/client-bundle-stats.html +1 -1
  47. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { jsxs as de, jsx as J, Fragment as wm } from "react/jsx-runtime";
2
2
  import M, { forwardRef as Bp, useState as He, useCallback as oe, memo as se, useContext as Xt, createContext as Fp, useMemo as Ce, useEffect as ae, useRef as ee } from "react";
3
- import { v as at, z as Hp, s as iu, x as $p, y as Sm, u as xm } from "./chart-activitygridchart-BRk9BNnp.js";
3
+ import { D as at, E as Hp, s as iu, F as $p, G as Sm, u as xm } from "./chart-activitygridchart--4a5X5eV.js";
4
4
  import { createPortal as Cm } from "react-dom";
5
5
  var Dt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6
6
  function zp(e) {
@@ -114,14 +114,14 @@ function Nm() {
114
114
  })()), xr;
115
115
  }
116
116
  var $u;
117
- function jp() {
117
+ function Gp() {
118
118
  return $u || ($u = 1, process.env.NODE_ENV === "production" ? Ft.exports = /* @__PURE__ */ qm() : Ft.exports = /* @__PURE__ */ Nm()), Ft.exports;
119
119
  }
120
120
  var zu;
121
121
  function Rm() {
122
122
  if (zu) return wr;
123
123
  zu = 1;
124
- var e = M, t = /* @__PURE__ */ jp();
124
+ var e = M, t = /* @__PURE__ */ Gp();
125
125
  function r(d, u) {
126
126
  return d === u && (d !== 0 || 1 / d === 1 / u) || d !== d && u !== u;
127
127
  }
@@ -169,14 +169,14 @@ function Rm() {
169
169
  }, wr;
170
170
  }
171
171
  var Cr = {};
172
- var ju;
172
+ var Gu;
173
173
  function Am() {
174
- return ju || (ju = 1, process.env.NODE_ENV !== "production" && (function() {
174
+ return Gu || (Gu = 1, process.env.NODE_ENV !== "production" && (function() {
175
175
  function e(d, u) {
176
176
  return d === u && (d !== 0 || 1 / d === 1 / u) || d !== d && u !== u;
177
177
  }
178
178
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
179
- var t = M, r = /* @__PURE__ */ jp(), n = typeof Object.is == "function" ? Object.is : e, a = r.useSyncExternalStore, i = t.useRef, o = t.useEffect, s = t.useMemo, c = t.useDebugValue;
179
+ var t = M, r = /* @__PURE__ */ Gp(), n = typeof Object.is == "function" ? Object.is : e, a = r.useSyncExternalStore, i = t.useRef, o = t.useEffect, s = t.useMemo, c = t.useDebugValue;
180
180
  Cr.useSyncExternalStoreWithSelector = function(d, u, l, h, f) {
181
181
  var m = i(null);
182
182
  if (m.current === null) {
@@ -221,9 +221,9 @@ function Am() {
221
221
  }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
222
222
  })()), Cr;
223
223
  }
224
- var Gu;
224
+ var ju;
225
225
  function Im() {
226
- return Gu || (Gu = 1, process.env.NODE_ENV === "production" ? Bt.exports = /* @__PURE__ */ Rm() : Bt.exports = /* @__PURE__ */ Am()), Bt.exports;
226
+ return ju || (ju = 1, process.env.NODE_ENV === "production" ? Bt.exports = /* @__PURE__ */ Rm() : Bt.exports = /* @__PURE__ */ Am()), Bt.exports;
227
227
  }
228
228
  var Mm = /* @__PURE__ */ Im();
229
229
  const Tm = /* @__PURE__ */ zp(Mm), Om = {}, Vu = (e) => {
@@ -241,7 +241,7 @@ const Tm = /* @__PURE__ */ zp(Mm), Om = {}, Vu = (e) => {
241
241
  } }, d = t = e(n, a, c);
242
242
  return c;
243
243
  }, Pm = (e) => e ? Vu(e) : Vu, { useDebugValue: km } = M, { useSyncExternalStoreWithSelector: Lm } = Tm, Dm = (e) => e;
244
- function Gp(e, t = Dm, r) {
244
+ function jp(e, t = Dm, r) {
245
245
  const n = Lm(
246
246
  e.subscribe,
247
247
  e.getState,
@@ -252,7 +252,7 @@ function Gp(e, t = Dm, r) {
252
252
  return km(n), n;
253
253
  }
254
254
  const Uu = (e, t) => {
255
- const r = Pm(e), n = (a, i = t) => Gp(r, a, i);
255
+ const r = Pm(e), n = (a, i = t) => jp(r, a, i);
256
256
  return Object.assign(n, r), n;
257
257
  }, Bm = (e, t) => e ? Uu(e, t) : Uu;
258
258
  function ve(e, t) {
@@ -300,7 +300,7 @@ function ie(e, t) {
300
300
  const r = Xt(Jt);
301
301
  if (r === null)
302
302
  throw new Error(Vp);
303
- return Gp(r, e, t);
303
+ return jp(r, e, t);
304
304
  }
305
305
  const me = () => {
306
306
  const e = Xt(Jt);
@@ -344,7 +344,7 @@ const zm = ({ x: e, y: t, label: r, labelStyle: n = {}, labelShowBg: a = !0, lab
344
344
  c
345
345
  );
346
346
  };
347
- var jm = se(zm);
347
+ var Gm = se(zm);
348
348
  const su = (e) => ({
349
349
  width: e.offsetWidth,
350
350
  height: e.offsetHeight
@@ -373,7 +373,7 @@ const su = (e) => ({
373
373
  ...e.positionAbsolute || { x: 0, y: 0 },
374
374
  width: e.width || 0,
375
375
  height: e.height || 0
376
- }), Gm = (e, t) => Yp(Wp(At(e), At(t))), Xs = (e, t) => {
376
+ }), jm = (e, t) => Yp(Wp(At(e), At(t))), Xs = (e, t) => {
377
377
  const r = Math.max(0, Math.min(e.x + e.width, t.x + t.width) - Math.max(e.x, t.x)), n = Math.max(0, Math.min(e.y + e.height, t.y + t.height) - Math.max(e.y, t.y));
378
378
  return Math.ceil(r * n);
379
379
  }, Vm = (e) => Re(e.width) && Re(e.height) && Re(e.x) && Re(e.y), Re = (e) => !isNaN(e) && isFinite(e), fe = /* @__PURE__ */ Symbol.for("internals"), Zp = ["Enter", " ", "Escape"], Xp = (e, t) => {
@@ -394,7 +394,7 @@ const Jp = (e) => "clientX" in e, Xe = (e, t) => {
394
394
  null,
395
395
  M.createElement("path", { id: e, style: u, d: t, fill: "none", className: "react-flow__edge-path", markerEnd: l, markerStart: h }),
396
396
  f && M.createElement("path", { d: t, fill: "none", strokeOpacity: 0, strokeWidth: f, className: "react-flow__edge-interaction" }),
397
- a && Re(r) && Re(n) ? M.createElement(jm, { x: r, y: n, label: a, labelStyle: i, labelShowBg: o, labelBgStyle: s, labelBgPadding: c, labelBgBorderRadius: d }) : null
397
+ a && Re(r) && Re(n) ? M.createElement(Gm, { x: r, y: n, label: a, labelStyle: i, labelShowBg: o, labelBgStyle: s, labelBgPadding: c, labelBgBorderRadius: d }) : null
398
398
  );
399
399
  yt.displayName = "BaseEdge";
400
400
  function Ct(e, t, r) {
@@ -431,14 +431,14 @@ var Wt;
431
431
  (function(e) {
432
432
  e.Arrow = "arrow", e.ArrowClosed = "arrowclosed";
433
433
  })(Wt || (Wt = {}));
434
- var j;
434
+ var G;
435
435
  (function(e) {
436
436
  e.Left = "left", e.Top = "top", e.Right = "right", e.Bottom = "bottom";
437
- })(j || (j = {}));
437
+ })(G || (G = {}));
438
438
  function Yu({ pos: e, x1: t, y1: r, x2: n, y2: a }) {
439
- return e === j.Left || e === j.Right ? [0.5 * (t + n), r] : [t, 0.5 * (r + a)];
439
+ return e === G.Left || e === G.Right ? [0.5 * (t + n), r] : [t, 0.5 * (r + a)];
440
440
  }
441
- function tg({ sourceX: e, sourceY: t, sourcePosition: r = j.Bottom, targetX: n, targetY: a, targetPosition: i = j.Top }) {
441
+ function tg({ sourceX: e, sourceY: t, sourcePosition: r = G.Bottom, targetX: n, targetY: a, targetPosition: i = G.Top }) {
442
442
  const [o, s] = Yu({
443
443
  pos: r,
444
444
  x1: e,
@@ -469,7 +469,7 @@ function tg({ sourceX: e, sourceY: t, sourcePosition: r = j.Bottom, targetX: n,
469
469
  f
470
470
  ];
471
471
  }
472
- const cu = se(({ sourceX: e, sourceY: t, targetX: r, targetY: n, sourcePosition: a = j.Bottom, targetPosition: i = j.Top, label: o, labelStyle: s, labelShowBg: c, labelBgStyle: d, labelBgPadding: u, labelBgBorderRadius: l, style: h, markerEnd: f, markerStart: m, interactionWidth: p }) => {
472
+ const cu = se(({ sourceX: e, sourceY: t, targetX: r, targetY: n, sourcePosition: a = G.Bottom, targetPosition: i = G.Top, label: o, labelStyle: s, labelShowBg: c, labelBgStyle: d, labelBgPadding: u, labelBgBorderRadius: l, style: h, markerEnd: f, markerStart: m, interactionWidth: p }) => {
473
473
  const [g, v, y] = tg({
474
474
  sourceX: e,
475
475
  sourceY: t,
@@ -482,12 +482,12 @@ const cu = se(({ sourceX: e, sourceY: t, targetX: r, targetY: n, sourcePosition:
482
482
  });
483
483
  cu.displayName = "SimpleBezierEdge";
484
484
  const Zu = {
485
- [j.Left]: { x: -1, y: 0 },
486
- [j.Right]: { x: 1, y: 0 },
487
- [j.Top]: { x: 0, y: -1 },
488
- [j.Bottom]: { x: 0, y: 1 }
489
- }, Km = ({ source: e, sourcePosition: t = j.Bottom, target: r }) => t === j.Left || t === j.Right ? e.x < r.x ? { x: 1, y: 0 } : { x: -1, y: 0 } : e.y < r.y ? { x: 0, y: 1 } : { x: 0, y: -1 }, Xu = (e, t) => Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
490
- function Wm({ source: e, sourcePosition: t = j.Bottom, target: r, targetPosition: n = j.Top, center: a, offset: i }) {
485
+ [G.Left]: { x: -1, y: 0 },
486
+ [G.Right]: { x: 1, y: 0 },
487
+ [G.Top]: { x: 0, y: -1 },
488
+ [G.Bottom]: { x: 0, y: 1 }
489
+ }, Km = ({ source: e, sourcePosition: t = G.Bottom, target: r }) => t === G.Left || t === G.Right ? e.x < r.x ? { x: 1, y: 0 } : { x: -1, y: 0 } : e.y < r.y ? { x: 0, y: 1 } : { x: 0, y: -1 }, Xu = (e, t) => Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
490
+ function Wm({ source: e, sourcePosition: t = G.Bottom, target: r, targetPosition: n = G.Top, center: a, offset: i }) {
491
491
  const o = Zu[t], s = Zu[n], c = { x: e.x + o.x * i, y: e.y + o.y * i }, d = { x: r.x + s.x * i, y: r.y + s.y * i }, u = Km({
492
492
  source: c,
493
493
  sourcePosition: t,
@@ -545,7 +545,7 @@ function Ym(e, t, r, n) {
545
545
  const s = e.x < r.x ? 1 : -1, c = e.y < r.y ? -1 : 1;
546
546
  return `L ${i},${o + a * c}Q ${i},${o} ${i + a * s},${o}`;
547
547
  }
548
- function Qs({ sourceX: e, sourceY: t, sourcePosition: r = j.Bottom, targetX: n, targetY: a, targetPosition: i = j.Top, borderRadius: o = 5, centerX: s, centerY: c, offset: d = 20 }) {
548
+ function Qs({ sourceX: e, sourceY: t, sourcePosition: r = G.Bottom, targetX: n, targetY: a, targetPosition: i = G.Top, borderRadius: o = 5, centerX: s, centerY: c, offset: d = 20 }) {
549
549
  const [u, l, h, f, m] = Wm({
550
550
  source: { x: e, y: t },
551
551
  sourcePosition: r,
@@ -559,7 +559,7 @@ function Qs({ sourceX: e, sourceY: t, sourcePosition: r = j.Bottom, targetX: n,
559
559
  return y > 0 && y < u.length - 1 ? b = Ym(u[y - 1], v, u[y + 1], o) : b = `${y === 0 ? "M" : "L"}${v.x} ${v.y}`, g += b, g;
560
560
  }, ""), l, h, f, m];
561
561
  }
562
- const Qt = se(({ sourceX: e, sourceY: t, targetX: r, targetY: n, label: a, labelStyle: i, labelShowBg: o, labelBgStyle: s, labelBgPadding: c, labelBgBorderRadius: d, style: u, sourcePosition: l = j.Bottom, targetPosition: h = j.Top, markerEnd: f, markerStart: m, pathOptions: p, interactionWidth: g }) => {
562
+ const Qt = se(({ sourceX: e, sourceY: t, targetX: r, targetY: n, label: a, labelStyle: i, labelShowBg: o, labelBgStyle: s, labelBgPadding: c, labelBgBorderRadius: d, style: u, sourcePosition: l = G.Bottom, targetPosition: h = G.Top, markerEnd: f, markerStart: m, pathOptions: p, interactionWidth: g }) => {
563
563
  const [v, y, b] = Qs({
564
564
  sourceX: e,
565
565
  sourceY: t,
@@ -594,17 +594,17 @@ function Ht(e, t) {
594
594
  }
595
595
  function Ju({ pos: e, x1: t, y1: r, x2: n, y2: a, c: i }) {
596
596
  switch (e) {
597
- case j.Left:
597
+ case G.Left:
598
598
  return [t - Ht(t - n, i), r];
599
- case j.Right:
599
+ case G.Right:
600
600
  return [t + Ht(n - t, i), r];
601
- case j.Top:
601
+ case G.Top:
602
602
  return [t, r - Ht(r - a, i)];
603
- case j.Bottom:
603
+ case G.Bottom:
604
604
  return [t, r + Ht(a - r, i)];
605
605
  }
606
606
  }
607
- function fu({ sourceX: e, sourceY: t, sourcePosition: r = j.Bottom, targetX: n, targetY: a, targetPosition: i = j.Top, curvature: o = 0.25 }) {
607
+ function fu({ sourceX: e, sourceY: t, sourcePosition: r = G.Bottom, targetX: n, targetY: a, targetPosition: i = G.Top, curvature: o = 0.25 }) {
608
608
  const [s, c] = Ju({
609
609
  pos: r,
610
610
  x1: e,
@@ -637,7 +637,7 @@ function fu({ sourceX: e, sourceY: t, sourcePosition: r = j.Bottom, targetX: n,
637
637
  m
638
638
  ];
639
639
  }
640
- const Yt = se(({ sourceX: e, sourceY: t, targetX: r, targetY: n, sourcePosition: a = j.Bottom, targetPosition: i = j.Top, label: o, labelStyle: s, labelShowBg: c, labelBgStyle: d, labelBgPadding: u, labelBgBorderRadius: l, style: h, markerEnd: f, markerStart: m, pathOptions: p, interactionWidth: g }) => {
640
+ const Yt = se(({ sourceX: e, sourceY: t, targetX: r, targetY: n, sourcePosition: a = G.Bottom, targetPosition: i = G.Top, label: o, labelStyle: s, labelShowBg: c, labelBgStyle: d, labelBgPadding: u, labelBgBorderRadius: l, style: h, markerEnd: f, markerStart: m, pathOptions: p, interactionWidth: g }) => {
641
641
  const [v, y, b] = fu({
642
642
  sourceX: e,
643
643
  sourceY: t,
@@ -855,7 +855,7 @@ function dg({ event: e, handleId: t, nodeId: r, onConnect: n, isTarget: a, getSt
855
855
  },
856
856
  connectionEndHandle: null
857
857
  }), p?.(e, { nodeId: r, handleId: t, handleType: N });
858
- function G(H) {
858
+ function j(H) {
859
859
  const { transform: $ } = i();
860
860
  R = Xe(H, x);
861
861
  const { handle: z, validHandleResult: W } = ry(H, u, tu(R, $, !1, [1, 1]), m, B, (C) => cg(C, l, r, t, a ? "target" : "source", s, u));
@@ -871,9 +871,9 @@ function dg({ event: e, handleId: t, nodeId: r, onConnect: n, isTarget: a, getSt
871
871
  T.source !== T.target && L && (qr(q), q = L, L.classList.add("connecting", "react-flow__handle-connecting"), L.classList.toggle("valid", A), L.classList.toggle("react-flow__handle-valid", A));
872
872
  }
873
873
  function P(H) {
874
- (_ || L) && T && A && n?.(T), i().onConnectEnd?.(H), c && d?.(H), qr(q), y(), cancelAnimationFrame(b), O = !1, A = !1, T = null, L = null, u.removeEventListener("mousemove", G), u.removeEventListener("mouseup", P), u.removeEventListener("touchmove", G), u.removeEventListener("touchend", P);
874
+ (_ || L) && T && A && n?.(T), i().onConnectEnd?.(H), c && d?.(H), qr(q), y(), cancelAnimationFrame(b), O = !1, A = !1, T = null, L = null, u.removeEventListener("mousemove", j), u.removeEventListener("mouseup", P), u.removeEventListener("touchmove", j), u.removeEventListener("touchend", P);
875
875
  }
876
- u.addEventListener("mousemove", G), u.addEventListener("mouseup", P), u.addEventListener("touchmove", G), u.addEventListener("touchend", P);
876
+ u.addEventListener("mousemove", j), u.addEventListener("mouseup", P), u.addEventListener("touchmove", j), u.addEventListener("touchend", P);
877
877
  }
878
878
  const ec = () => !0, oy = (e) => ({
879
879
  connectionStartHandle: e.connectionStartHandle,
@@ -885,7 +885,7 @@ const ec = () => !0, oy = (e) => ({
885
885
  connecting: a?.nodeId === e && a?.handleId === t && a?.type === r || i?.nodeId === e && i?.handleId === t && i?.type === r,
886
886
  clickConnecting: o?.nodeId === e && o?.handleId === t && o?.type === r
887
887
  };
888
- }, lg = Bp(({ type: e = "source", position: t = j.Top, isValidConnection: r, isConnectable: n = !0, isConnectableStart: a = !0, isConnectableEnd: i = !0, id: o, onConnect: s, children: c, className: d, onMouseDown: u, onTouchStart: l, ...h }, f) => {
888
+ }, lg = Bp(({ type: e = "source", position: t = G.Top, isValidConnection: r, isConnectable: n = !0, isConnectableStart: a = !0, isConnectableEnd: i = !0, id: o, onConnect: s, children: c, className: d, onMouseDown: u, onTouchStart: l, ...h }, f) => {
889
889
  const m = o || null, p = e === "target", g = me(), v = Jm(), { connectOnClick: y, noPanClassName: b } = ie(oy, ve), { connecting: _, clickConnecting: w } = ie(sy(v, m, e), ve);
890
890
  v || g.getState().onError?.("010", Pe.error010());
891
891
  const E = (x) => {
@@ -920,12 +920,12 @@ const ec = () => !0, oy = (e) => ({
920
920
  q?.(x, { nodeId: v, handleId: m, handleType: e }), g.setState({ connectionClickStartHandle: { nodeId: v, type: e, handleId: m } });
921
921
  return;
922
922
  }
923
- const L = Kp(x.target), B = r || A || ec, { connection: F, isValid: G } = cg({
923
+ const L = Kp(x.target), B = r || A || ec, { connection: F, isValid: j } = cg({
924
924
  nodeId: v,
925
925
  id: m,
926
926
  type: e
927
927
  }, T, O.nodeId, O.handleId || null, O.type, B, L);
928
- G && E(F), R?.(x), g.setState({ connectionClickStartHandle: null });
928
+ j && E(F), R?.(x), g.setState({ connectionClickStartHandle: null });
929
929
  };
930
930
  return M.createElement("div", { "data-handleid": m, "data-nodeid": v, "data-handlepos": t, "data-id": `${v}-${m}-${e}`, className: be([
931
931
  "react-flow__handle",
@@ -947,7 +947,7 @@ const ec = () => !0, oy = (e) => ({
947
947
  });
948
948
  lg.displayName = "Handle";
949
949
  var Ze = se(lg);
950
- const fg = ({ data: e, isConnectable: t, targetPosition: r = j.Top, sourcePosition: n = j.Bottom }) => M.createElement(
950
+ const fg = ({ data: e, isConnectable: t, targetPosition: r = G.Top, sourcePosition: n = G.Bottom }) => M.createElement(
951
951
  M.Fragment,
952
952
  null,
953
953
  M.createElement(Ze, { type: "target", position: r, isConnectable: t }),
@@ -956,7 +956,7 @@ const fg = ({ data: e, isConnectable: t, targetPosition: r = j.Top, sourcePositi
956
956
  );
957
957
  fg.displayName = "DefaultNode";
958
958
  var ru = se(fg);
959
- const hg = ({ data: e, isConnectable: t, sourcePosition: r = j.Bottom }) => M.createElement(
959
+ const hg = ({ data: e, isConnectable: t, sourcePosition: r = G.Bottom }) => M.createElement(
960
960
  M.Fragment,
961
961
  null,
962
962
  e?.label,
@@ -964,7 +964,7 @@ const hg = ({ data: e, isConnectable: t, sourcePosition: r = j.Bottom }) => M.cr
964
964
  );
965
965
  hg.displayName = "InputNode";
966
966
  var pg = se(hg);
967
- const gg = ({ data: e, isConnectable: t, targetPosition: r = j.Top }) => M.createElement(
967
+ const gg = ({ data: e, isConnectable: t, targetPosition: r = G.Top }) => M.createElement(
968
968
  M.Fragment,
969
969
  null,
970
970
  M.createElement(Ze, { type: "target", position: r, isConnectable: t }),
@@ -1014,14 +1014,14 @@ function Q(e, t, r) {
1014
1014
  typeof t < "u" && r({ [e]: t });
1015
1015
  }, [t]);
1016
1016
  }
1017
- const hy = ({ nodes: e, edges: t, defaultNodes: r, defaultEdges: n, onConnect: a, onConnectStart: i, onConnectEnd: o, onClickConnectStart: s, onClickConnectEnd: c, nodesDraggable: d, nodesConnectable: u, nodesFocusable: l, edgesFocusable: h, edgesUpdatable: f, elevateNodesOnSelect: m, minZoom: p, maxZoom: g, nodeExtent: v, onNodesChange: y, onEdgesChange: b, elementsSelectable: _, connectionMode: w, snapGrid: E, snapToGrid: S, translateExtent: N, connectOnClick: x, defaultEdgeOptions: q, fitView: R, fitViewOptions: O, onNodesDelete: T, onEdgesDelete: A, onNodeDrag: L, onNodeDragStart: B, onNodeDragStop: F, onSelectionDrag: G, onSelectionDragStart: P, onSelectionDragStop: H, noPanClassName: $, nodeOrigin: z, rfId: W, autoPanOnConnect: C, autoPanOnNodeDrag: I, onError: k, connectionRadius: D, isValidConnection: K, nodeDragThreshold: X }) => {
1017
+ const hy = ({ nodes: e, edges: t, defaultNodes: r, defaultEdges: n, onConnect: a, onConnectStart: i, onConnectEnd: o, onClickConnectStart: s, onClickConnectEnd: c, nodesDraggable: d, nodesConnectable: u, nodesFocusable: l, edgesFocusable: h, edgesUpdatable: f, elevateNodesOnSelect: m, minZoom: p, maxZoom: g, nodeExtent: v, onNodesChange: y, onEdgesChange: b, elementsSelectable: _, connectionMode: w, snapGrid: E, snapToGrid: S, translateExtent: N, connectOnClick: x, defaultEdgeOptions: q, fitView: R, fitViewOptions: O, onNodesDelete: T, onEdgesDelete: A, onNodeDrag: L, onNodeDragStart: B, onNodeDragStop: F, onSelectionDrag: j, onSelectionDragStart: P, onSelectionDragStop: H, noPanClassName: $, nodeOrigin: z, rfId: W, autoPanOnConnect: C, autoPanOnNodeDrag: I, onError: k, connectionRadius: D, isValidConnection: K, nodeDragThreshold: X }) => {
1018
1018
  const { setNodes: Y, setEdges: re, setDefaultNodesAndEdges: ue, setMinZoom: ne, setMaxZoom: te, setTranslateExtent: Z, setNodeExtent: he, reset: V } = ie(fy, ve), U = me();
1019
1019
  return ae(() => {
1020
1020
  const le = n?.map((Te) => ({ ...Te, ...q }));
1021
1021
  return ue(r, le), () => {
1022
1022
  V();
1023
1023
  };
1024
- }, []), Q("defaultEdgeOptions", q, U.setState), Q("connectionMode", w, U.setState), Q("onConnect", a, U.setState), Q("onConnectStart", i, U.setState), Q("onConnectEnd", o, U.setState), Q("onClickConnectStart", s, U.setState), Q("onClickConnectEnd", c, U.setState), Q("nodesDraggable", d, U.setState), Q("nodesConnectable", u, U.setState), Q("nodesFocusable", l, U.setState), Q("edgesFocusable", h, U.setState), Q("edgesUpdatable", f, U.setState), Q("elementsSelectable", _, U.setState), Q("elevateNodesOnSelect", m, U.setState), Q("snapToGrid", S, U.setState), Q("snapGrid", E, U.setState), Q("onNodesChange", y, U.setState), Q("onEdgesChange", b, U.setState), Q("connectOnClick", x, U.setState), Q("fitViewOnInit", R, U.setState), Q("fitViewOnInitOptions", O, U.setState), Q("onNodesDelete", T, U.setState), Q("onEdgesDelete", A, U.setState), Q("onNodeDrag", L, U.setState), Q("onNodeDragStart", B, U.setState), Q("onNodeDragStop", F, U.setState), Q("onSelectionDrag", G, U.setState), Q("onSelectionDragStart", P, U.setState), Q("onSelectionDragStop", H, U.setState), Q("noPanClassName", $, U.setState), Q("nodeOrigin", z, U.setState), Q("rfId", W, U.setState), Q("autoPanOnConnect", C, U.setState), Q("autoPanOnNodeDrag", I, U.setState), Q("onError", k, U.setState), Q("connectionRadius", D, U.setState), Q("isValidConnection", K, U.setState), Q("nodeDragThreshold", X, U.setState), lt(e, Y), lt(t, re), lt(p, ne), lt(g, te), lt(N, Z), lt(v, he), null;
1024
+ }, []), Q("defaultEdgeOptions", q, U.setState), Q("connectionMode", w, U.setState), Q("onConnect", a, U.setState), Q("onConnectStart", i, U.setState), Q("onConnectEnd", o, U.setState), Q("onClickConnectStart", s, U.setState), Q("onClickConnectEnd", c, U.setState), Q("nodesDraggable", d, U.setState), Q("nodesConnectable", u, U.setState), Q("nodesFocusable", l, U.setState), Q("edgesFocusable", h, U.setState), Q("edgesUpdatable", f, U.setState), Q("elementsSelectable", _, U.setState), Q("elevateNodesOnSelect", m, U.setState), Q("snapToGrid", S, U.setState), Q("snapGrid", E, U.setState), Q("onNodesChange", y, U.setState), Q("onEdgesChange", b, U.setState), Q("connectOnClick", x, U.setState), Q("fitViewOnInit", R, U.setState), Q("fitViewOnInitOptions", O, U.setState), Q("onNodesDelete", T, U.setState), Q("onEdgesDelete", A, U.setState), Q("onNodeDrag", L, U.setState), Q("onNodeDragStart", B, U.setState), Q("onNodeDragStop", F, U.setState), Q("onSelectionDrag", j, U.setState), Q("onSelectionDragStart", P, U.setState), Q("onSelectionDragStop", H, U.setState), Q("noPanClassName", $, U.setState), Q("nodeOrigin", z, U.setState), Q("rfId", W, U.setState), Q("autoPanOnConnect", C, U.setState), Q("autoPanOnNodeDrag", I, U.setState), Q("onError", k, U.setState), Q("connectionRadius", D, U.setState), Q("isValidConnection", K, U.setState), Q("nodeDragThreshold", X, U.setState), lt(e, Y), lt(t, re), lt(p, ne), lt(g, te), lt(N, Z), lt(v, he), null;
1025
1025
  }, tc = { display: "none" }, py = {
1026
1026
  position: "absolute",
1027
1027
  width: 1,
@@ -1295,23 +1295,23 @@ function gu() {
1295
1295
  };
1296
1296
  }, []), l = oe(({ nodes: p, edges: g }) => {
1297
1297
  const { nodeInternals: v, getNodes: y, edges: b, hasDefaultNodes: _, hasDefaultEdges: w, onNodesDelete: E, onEdgesDelete: S, onNodesChange: N, onEdgesChange: x } = t.getState(), q = (p || []).map((L) => L.id), R = (g || []).map((L) => L.id), O = y().reduce((L, B) => {
1298
- const F = B.parentNode || B.parentId, G = !q.includes(B.id) && F && L.find((H) => H.id === F);
1299
- return (typeof B.deletable != "boolean" || B.deletable) && (q.includes(B.id) || G) && L.push(B), L;
1298
+ const F = B.parentNode || B.parentId, j = !q.includes(B.id) && F && L.find((H) => H.id === F);
1299
+ return (typeof B.deletable != "boolean" || B.deletable) && (q.includes(B.id) || j) && L.push(B), L;
1300
1300
  }, []), T = b.filter((L) => typeof L.deletable == "boolean" ? L.deletable : !0), A = T.filter((L) => R.includes(L.id));
1301
1301
  if (O || A) {
1302
- const L = og(O, T), B = [...A, ...L], F = B.reduce((G, P) => (G.includes(P.id) || G.push(P.id), G), []);
1302
+ const L = og(O, T), B = [...A, ...L], F = B.reduce((j, P) => (j.includes(P.id) || j.push(P.id), j), []);
1303
1303
  if ((w || _) && (w && t.setState({
1304
- edges: b.filter((G) => !F.includes(G.id))
1305
- }), _ && (O.forEach((G) => {
1306
- v.delete(G.id);
1304
+ edges: b.filter((j) => !F.includes(j.id))
1305
+ }), _ && (O.forEach((j) => {
1306
+ v.delete(j.id);
1307
1307
  }), t.setState({
1308
1308
  nodeInternals: new Map(v)
1309
- }))), F.length > 0 && (S?.(B), x && x(F.map((G) => ({
1310
- id: G,
1309
+ }))), F.length > 0 && (S?.(B), x && x(F.map((j) => ({
1310
+ id: j,
1311
1311
  type: "remove"
1312
1312
  })))), O.length > 0 && (E?.(O), N)) {
1313
- const G = O.map((P) => ({ id: P.id, type: "remove" }));
1314
- N(G);
1313
+ const j = O.map((P) => ({ id: P.id, type: "remove" }));
1314
+ N(j);
1315
1315
  }
1316
1316
  }
1317
1317
  }, []), h = oe((p) => {
@@ -1395,7 +1395,7 @@ const vu = {
1395
1395
  height: "100%",
1396
1396
  top: 0,
1397
1397
  left: 0
1398
- }, Ny = (e, t) => e.x !== t.x || e.y !== t.y || e.zoom !== t.k, jt = (e) => ({
1398
+ }, Ny = (e, t) => e.x !== t.x || e.y !== t.y || e.zoom !== t.k, Gt = (e) => ({
1399
1399
  x: e.x,
1400
1400
  y: e.y,
1401
1401
  zoom: e.k
@@ -1408,7 +1408,7 @@ const vu = {
1408
1408
  d3ZoomHandler: e.d3ZoomHandler,
1409
1409
  userSelectionActive: e.userSelectionActive
1410
1410
  }), Ay = ({ onMove: e, onMoveStart: t, onMoveEnd: r, onPaneContextMenu: n, zoomOnScroll: a = !0, zoomOnPinch: i = !0, panOnScroll: o = !1, panOnScrollSpeed: s = 0.5, panOnScrollMode: c = nt.Free, zoomOnDoubleClick: d = !0, elementsSelectable: u, panOnDrag: l = !0, defaultViewport: h, translateExtent: f, minZoom: m, maxZoom: p, zoomActivationKeyCode: g, preventScrolling: v = !0, children: y, noWheelClassName: b, noPanClassName: _ }) => {
1411
- const w = ee(), E = me(), S = ee(!1), N = ee(!1), x = ee(null), q = ee({ x: 0, y: 0, zoom: 0 }), { d3Zoom: R, d3Selection: O, d3ZoomHandler: T, userSelectionActive: A } = ie(Ry, ve), L = Mt(g), B = ee(0), F = ee(!1), G = ee();
1411
+ const w = ee(), E = me(), S = ee(!1), N = ee(!1), x = ee(null), q = ee({ x: 0, y: 0, zoom: 0 }), { d3Zoom: R, d3Selection: O, d3ZoomHandler: T, userSelectionActive: A } = ie(Ry, ve), L = Mt(g), B = ee(0), F = ee(!1), j = ee();
1412
1412
  return qy(x), ae(() => {
1413
1413
  if (x.current) {
1414
1414
  const P = x.current.getBoundingClientRect(), H = Hp().scaleExtent([m, p]).translateExtent(f), $ = iu(x.current).call(H), z = at.translate(h.x, h.y).scale(mt(h.zoom, m, p)), W = [
@@ -1444,8 +1444,8 @@ const vu = {
1444
1444
  // @ts-ignore
1445
1445
  { internal: !0 }
1446
1446
  );
1447
- const C = jt(O.property("__zoom")), { onViewportChangeStart: I, onViewportChange: k, onViewportChangeEnd: D } = E.getState();
1448
- clearTimeout(G.current), F.current || (F.current = !0, t?.(P, C), I?.(C)), F.current && (e?.(P, C), k?.(C), G.current = setTimeout(() => {
1447
+ const C = Gt(O.property("__zoom")), { onViewportChangeStart: I, onViewportChange: k, onViewportChangeEnd: D } = E.getState();
1448
+ clearTimeout(j.current), F.current || (F.current = !0, t?.(P, C), I?.(C)), F.current && (e?.(P, C), k?.(C), j.current = setTimeout(() => {
1449
1449
  r?.(P, C), D?.(C), F.current = !1;
1450
1450
  }, 150));
1451
1451
  }, { passive: !1 }) : typeof T < "u" && O.on("wheel.zoom", function(P, H) {
@@ -1472,14 +1472,14 @@ const vu = {
1472
1472
  if (!P.sourceEvent || P.sourceEvent.internal)
1473
1473
  return null;
1474
1474
  B.current = P.sourceEvent?.button;
1475
- const { onViewportChangeStart: H } = E.getState(), $ = jt(P.transform);
1475
+ const { onViewportChangeStart: H } = E.getState(), $ = Gt(P.transform);
1476
1476
  S.current = !0, q.current = $, P.sourceEvent?.type === "mousedown" && E.setState({ paneDragging: !0 }), H?.($), t?.(P.sourceEvent, $);
1477
1477
  });
1478
1478
  }, [R, t]), ae(() => {
1479
1479
  R && (A && !S.current ? R.on("zoom", null) : A || R.on("zoom", (P) => {
1480
1480
  const { onViewportChange: H } = E.getState();
1481
1481
  if (E.setState({ transform: [P.transform.x, P.transform.y, P.transform.k] }), N.current = !!(n && ac(l, B.current ?? 0)), (e || H) && !P.sourceEvent?.internal) {
1482
- const $ = jt(P.transform);
1482
+ const $ = Gt(P.transform);
1483
1483
  H?.($), e?.(P.sourceEvent, $);
1484
1484
  }
1485
1485
  }));
@@ -1489,7 +1489,7 @@ const vu = {
1489
1489
  return null;
1490
1490
  const { onViewportChangeEnd: H } = E.getState();
1491
1491
  if (S.current = !1, E.setState({ paneDragging: !1 }), n && ac(l, B.current ?? 0) && !N.current && n(P.sourceEvent), N.current = !1, (r || H) && Ny(q.current, P.transform)) {
1492
- const $ = jt(P.transform);
1492
+ const $ = Gt(P.transform);
1493
1493
  q.current = $, clearTimeout(w.current), w.current = setTimeout(() => {
1494
1494
  H?.($), r?.(P.sourceEvent, $);
1495
1495
  }, o ? 150 : 0);
@@ -1625,7 +1625,7 @@ const Rr = (e, t) => (r) => {
1625
1625
  }
1626
1626
  }), n?.(T);
1627
1627
  }, x = (T) => {
1628
- const { userSelectionRect: A, nodeInternals: L, edges: B, transform: F, onNodesChange: G, onEdgesChange: P, nodeOrigin: H, getNodes: $ } = f.getState();
1628
+ const { userSelectionRect: A, nodeInternals: L, edges: B, transform: F, onNodesChange: j, onEdgesChange: P, nodeOrigin: H, getNodes: $ } = f.getState();
1629
1629
  if (!e || !g.current || !A)
1630
1630
  return;
1631
1631
  f.setState({ userSelectionActive: !0, nodesSelectionActive: !1 });
@@ -1639,7 +1639,7 @@ const Rr = (e, t) => (r) => {
1639
1639
  if (m.current !== X.length) {
1640
1640
  m.current = X.length;
1641
1641
  const Y = gt(k, X);
1642
- Y.length && G?.(Y);
1642
+ Y.length && j?.(Y);
1643
1643
  }
1644
1644
  if (p.current !== K.length) {
1645
1645
  p.current = K.length;
@@ -1807,7 +1807,7 @@ function Rg({ nodeRef: e, disabled: t = !1, noDragClassName: r, handleSelector:
1807
1807
  return ae(() => {
1808
1808
  if (e?.current) {
1809
1809
  const _ = iu(e.current), w = ({ x: N, y: x }) => {
1810
- const { nodeInternals: q, onNodeDrag: R, onSelectionDrag: O, updateNodePositions: T, nodeExtent: A, snapGrid: L, snapToGrid: B, nodeOrigin: F, onError: G } = s.getState();
1810
+ const { nodeInternals: q, onNodeDrag: R, onSelectionDrag: O, updateNodePositions: T, nodeExtent: A, snapGrid: L, snapToGrid: B, nodeOrigin: F, onError: j } = s.getState();
1811
1811
  l.current = { x: N, y: x };
1812
1812
  let P = !1, H = { x: 0, y: 0, x2: 0, y2: 0 };
1813
1813
  if (u.current.length > 1 && A) {
@@ -1822,7 +1822,7 @@ function Rg({ nodeRef: e, disabled: t = !1, noDragClassName: r, handleSelector:
1822
1822
  [A[1][0], A[1][1]]
1823
1823
  ];
1824
1824
  u.current.length > 1 && A && !z.extent && (C[0][0] = z.positionAbsolute.x - H.x + A[0][0], C[1][0] = z.positionAbsolute.x + (z.width ?? 0) - H.x2 + A[1][0], C[0][1] = z.positionAbsolute.y - H.y + A[0][1], C[1][1] = z.positionAbsolute.y + (z.height ?? 0) - H.y2 + A[1][1]);
1825
- const I = Ng(z, W, q, C, F, G);
1825
+ const I = Ng(z, W, q, C, F, j);
1826
1826
  return P = P || z.position.x !== I.position.x || z.position.y !== I.position.y, z.position = I.position, z.positionAbsolute = I.positionAbsolute, z;
1827
1827
  }), !P)
1828
1828
  return;
@@ -1856,12 +1856,12 @@ function Rg({ nodeRef: e, disabled: t = !1, noDragClassName: r, handleSelector:
1856
1856
  });
1857
1857
  const B = b(N);
1858
1858
  if (l.current = B, u.current = Py(x, R, B, a), L && u.current) {
1859
- const [F, G] = Ar({
1859
+ const [F, j] = Ar({
1860
1860
  nodeId: a,
1861
1861
  dragItems: u.current,
1862
1862
  nodeInternals: x
1863
1863
  });
1864
- L(N.sourceEvent, F, G);
1864
+ L(N.sourceEvent, F, j);
1865
1865
  }
1866
1866
  };
1867
1867
  if (t)
@@ -1936,7 +1936,7 @@ const vt = {
1936
1936
  ArrowRight: { x: 1, y: 0 }
1937
1937
  };
1938
1938
  var Nt = (e) => {
1939
- const t = ({ id: r, type: n, data: a, xPos: i, yPos: o, xPosOrigin: s, yPosOrigin: c, selected: d, onClick: u, onMouseEnter: l, onMouseMove: h, onMouseLeave: f, onContextMenu: m, onDoubleClick: p, style: g, className: v, isDraggable: y, isSelectable: b, isConnectable: _, isFocusable: w, selectNodesOnDrag: E, sourcePosition: S, targetPosition: N, hidden: x, resizeObserver: q, dragHandle: R, zIndex: O, isParent: T, noDragClassName: A, noPanClassName: L, initialized: B, disableKeyboardA11y: F, ariaLabel: G, rfId: P, hasHandleBounds: H }) => {
1939
+ const t = ({ id: r, type: n, data: a, xPos: i, yPos: o, xPosOrigin: s, yPosOrigin: c, selected: d, onClick: u, onMouseEnter: l, onMouseMove: h, onMouseLeave: f, onContextMenu: m, onDoubleClick: p, style: g, className: v, isDraggable: y, isSelectable: b, isConnectable: _, isFocusable: w, selectNodesOnDrag: E, sourcePosition: S, targetPosition: N, hidden: x, resizeObserver: q, dragHandle: R, zIndex: O, isParent: T, noDragClassName: A, noPanClassName: L, initialized: B, disableKeyboardA11y: F, ariaLabel: j, rfId: P, hasHandleBounds: H }) => {
1940
1940
  const $ = me(), z = ee(null), W = ee(null), C = ee(S), I = ee(N), k = ee(n), D = b || y || u || l || h || f, K = Ag(), X = qt(r, $.getState, l), Y = qt(r, $.getState, h), re = qt(r, $.getState, f), ue = qt(r, $.getState, m), ne = qt(r, $.getState, p), te = (V) => {
1941
1941
  const { nodeDragThreshold: U } = $.getState();
1942
1942
  if (b && (!E || !y || U > 0) && nu({
@@ -2007,7 +2007,7 @@ var Nt = (e) => {
2007
2007
  pointerEvents: D ? "all" : "none",
2008
2008
  visibility: B ? "visible" : "hidden",
2009
2009
  ...g
2010
- }, "data-id": r, "data-testid": `rf__node-${r}`, onMouseEnter: X, onMouseMove: Y, onMouseLeave: re, onContextMenu: ue, onClick: te, onDoubleClick: ne, onKeyDown: w ? Z : void 0, tabIndex: w ? 0 : void 0, role: w ? "button" : void 0, "aria-describedby": F ? void 0 : `${yg}-${P}`, "aria-label": G },
2010
+ }, "data-id": r, "data-testid": `rf__node-${r}`, onMouseEnter: X, onMouseMove: Y, onMouseLeave: re, onContextMenu: ue, onClick: te, onDoubleClick: ne, onKeyDown: w ? Z : void 0, tabIndex: w ? 0 : void 0, role: w ? "button" : void 0, "aria-describedby": F ? void 0 : `${yg}-${P}`, "aria-label": j },
2011
2011
  M.createElement(
2012
2012
  Xm,
2013
2013
  { value: r },
@@ -2059,16 +2059,16 @@ function By({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y:
2059
2059
  );
2060
2060
  }
2061
2061
  var Fy = se(By);
2062
- const Hy = (e) => e.nodesSelectionActive, Ig = ({ children: e, onPaneClick: t, onPaneMouseEnter: r, onPaneMouseMove: n, onPaneMouseLeave: a, onPaneContextMenu: i, onPaneScroll: o, deleteKeyCode: s, onMove: c, onMoveStart: d, onMoveEnd: u, selectionKeyCode: l, selectionOnDrag: h, selectionMode: f, onSelectionStart: m, onSelectionEnd: p, multiSelectionKeyCode: g, panActivationKeyCode: v, zoomActivationKeyCode: y, elementsSelectable: b, zoomOnScroll: _, zoomOnPinch: w, panOnScroll: E, panOnScrollSpeed: S, panOnScrollMode: N, zoomOnDoubleClick: x, panOnDrag: q, defaultViewport: R, translateExtent: O, minZoom: T, maxZoom: A, preventScrolling: L, onSelectionContextMenu: B, noWheelClassName: F, noPanClassName: G, disableKeyboardA11y: P }) => {
2062
+ const Hy = (e) => e.nodesSelectionActive, Ig = ({ children: e, onPaneClick: t, onPaneMouseEnter: r, onPaneMouseMove: n, onPaneMouseLeave: a, onPaneContextMenu: i, onPaneScroll: o, deleteKeyCode: s, onMove: c, onMoveStart: d, onMoveEnd: u, selectionKeyCode: l, selectionOnDrag: h, selectionMode: f, onSelectionStart: m, onSelectionEnd: p, multiSelectionKeyCode: g, panActivationKeyCode: v, zoomActivationKeyCode: y, elementsSelectable: b, zoomOnScroll: _, zoomOnPinch: w, panOnScroll: E, panOnScrollSpeed: S, panOnScrollMode: N, zoomOnDoubleClick: x, panOnDrag: q, defaultViewport: R, translateExtent: O, minZoom: T, maxZoom: A, preventScrolling: L, onSelectionContextMenu: B, noWheelClassName: F, noPanClassName: j, disableKeyboardA11y: P }) => {
2063
2063
  const H = ie(Hy), $ = Mt(l), z = Mt(v), W = z || q, C = z || E, I = $ || h && W !== !0;
2064
2064
  return Cy({ deleteKeyCode: s, multiSelectionKeyCode: g }), M.createElement(
2065
2065
  Ay,
2066
- { onMove: c, onMoveStart: d, onMoveEnd: u, onPaneContextMenu: i, elementsSelectable: b, zoomOnScroll: _, zoomOnPinch: w, panOnScroll: C, panOnScrollSpeed: S, panOnScrollMode: N, zoomOnDoubleClick: x, panOnDrag: !$ && W, defaultViewport: R, translateExtent: O, minZoom: T, maxZoom: A, zoomActivationKeyCode: y, preventScrolling: L, noWheelClassName: F, noPanClassName: G },
2066
+ { onMove: c, onMoveStart: d, onMoveEnd: u, onPaneContextMenu: i, elementsSelectable: b, zoomOnScroll: _, zoomOnPinch: w, panOnScroll: C, panOnScrollSpeed: S, panOnScrollMode: N, zoomOnDoubleClick: x, panOnDrag: !$ && W, defaultViewport: R, translateExtent: O, minZoom: T, maxZoom: A, zoomActivationKeyCode: y, preventScrolling: L, noWheelClassName: F, noPanClassName: j },
2067
2067
  M.createElement(
2068
2068
  Cg,
2069
2069
  { onSelectionStart: m, onSelectionEnd: p, onPaneClick: t, onPaneMouseEnter: r, onPaneMouseMove: n, onPaneMouseLeave: a, onPaneContextMenu: i, onPaneScroll: o, panOnDrag: W, isSelecting: !!I, selectionMode: f },
2070
2070
  e,
2071
- H && M.createElement(Fy, { onSelectionContextMenu: B, noPanClassName: G, disableKeyboardA11y: P })
2071
+ H && M.createElement(Fy, { onSelectionContextMenu: B, noPanClassName: j, disableKeyboardA11y: P })
2072
2072
  )
2073
2073
  );
2074
2074
  };
@@ -2077,7 +2077,7 @@ var $y = se(Ig);
2077
2077
  function zy(e) {
2078
2078
  return ie(oe((r) => e ? ig(r.nodeInternals, { x: 0, y: 0, width: r.width, height: r.height }, r.transform, !0) : r.getNodes(), [e]));
2079
2079
  }
2080
- function jy(e) {
2080
+ function Gy(e) {
2081
2081
  const t = {
2082
2082
  input: Nt(e.input || pg),
2083
2083
  default: Nt(e.default || ru),
@@ -2089,7 +2089,7 @@ function jy(e) {
2089
2089
  ...n
2090
2090
  };
2091
2091
  }
2092
- const Gy = ({ x: e, y: t, width: r, height: n, origin: a }) => !r || !n ? { x: e, y: t } : a[0] < 0 || a[1] < 0 || a[0] > 1 || a[1] > 1 ? { x: e, y: t } : {
2092
+ const jy = ({ x: e, y: t, width: r, height: n, origin: a }) => !r || !n ? { x: e, y: t } : a[0] < 0 || a[1] < 0 || a[0] > 1 || a[1] > 1 ? { x: e, y: t } : {
2093
2093
  x: e - r * a[0],
2094
2094
  y: t - n * a[1]
2095
2095
  }, Vy = (e) => ({
@@ -2118,21 +2118,21 @@ const Gy = ({ x: e, y: t, width: r, height: n, origin: a }) => !r || !n ? { x: e
2118
2118
  }, []), M.createElement("div", { className: "react-flow__nodes", style: vu }, s.map((u) => {
2119
2119
  let l = u.type || "default";
2120
2120
  e.nodeTypes[l] || (o?.("003", Pe.error003(l)), l = "default");
2121
- const h = e.nodeTypes[l] || e.nodeTypes.default, f = !!(u.draggable || t && typeof u.draggable > "u"), m = !!(u.selectable || a && typeof u.selectable > "u"), p = !!(u.connectable || r && typeof u.connectable > "u"), g = !!(u.focusable || n && typeof u.focusable > "u"), v = e.nodeExtent ? uu(u.positionAbsolute, e.nodeExtent) : u.positionAbsolute, y = v?.x ?? 0, b = v?.y ?? 0, _ = Gy({
2121
+ const h = e.nodeTypes[l] || e.nodeTypes.default, f = !!(u.draggable || t && typeof u.draggable > "u"), m = !!(u.selectable || a && typeof u.selectable > "u"), p = !!(u.connectable || r && typeof u.connectable > "u"), g = !!(u.focusable || n && typeof u.focusable > "u"), v = e.nodeExtent ? uu(u.positionAbsolute, e.nodeExtent) : u.positionAbsolute, y = v?.x ?? 0, b = v?.y ?? 0, _ = jy({
2122
2122
  x: y,
2123
2123
  y: b,
2124
2124
  width: u.width ?? 0,
2125
2125
  height: u.height ?? 0,
2126
2126
  origin: e.nodeOrigin
2127
2127
  });
2128
- return M.createElement(h, { key: u.id, id: u.id, className: u.className, style: u.style, type: l, data: u.data, sourcePosition: u.sourcePosition || j.Bottom, targetPosition: u.targetPosition || j.Top, hidden: u.hidden, xPos: y, yPos: b, xPosOrigin: _.x, yPosOrigin: _.y, selectNodesOnDrag: e.selectNodesOnDrag, onClick: e.onNodeClick, onMouseEnter: e.onNodeMouseEnter, onMouseMove: e.onNodeMouseMove, onMouseLeave: e.onNodeMouseLeave, onContextMenu: e.onNodeContextMenu, onDoubleClick: e.onNodeDoubleClick, selected: !!u.selected, isDraggable: f, isSelectable: m, isConnectable: p, isFocusable: g, resizeObserver: d, dragHandle: u.dragHandle, zIndex: u[fe]?.z ?? 0, isParent: !!u[fe]?.isParent, noDragClassName: e.noDragClassName, noPanClassName: e.noPanClassName, initialized: !!u.width && !!u.height, rfId: e.rfId, disableKeyboardA11y: e.disableKeyboardA11y, ariaLabel: u.ariaLabel, hasHandleBounds: !!u[fe]?.handleBounds });
2128
+ return M.createElement(h, { key: u.id, id: u.id, className: u.className, style: u.style, type: l, data: u.data, sourcePosition: u.sourcePosition || G.Bottom, targetPosition: u.targetPosition || G.Top, hidden: u.hidden, xPos: y, yPos: b, xPosOrigin: _.x, yPosOrigin: _.y, selectNodesOnDrag: e.selectNodesOnDrag, onClick: e.onNodeClick, onMouseEnter: e.onNodeMouseEnter, onMouseMove: e.onNodeMouseMove, onMouseLeave: e.onNodeMouseLeave, onContextMenu: e.onNodeContextMenu, onDoubleClick: e.onNodeDoubleClick, selected: !!u.selected, isDraggable: f, isSelectable: m, isConnectable: p, isFocusable: g, resizeObserver: d, dragHandle: u.dragHandle, zIndex: u[fe]?.z ?? 0, isParent: !!u[fe]?.isParent, noDragClassName: e.noDragClassName, noPanClassName: e.noPanClassName, initialized: !!u.width && !!u.height, rfId: e.rfId, disableKeyboardA11y: e.disableKeyboardA11y, ariaLabel: u.ariaLabel, hasHandleBounds: !!u[fe]?.handleBounds });
2129
2129
  }));
2130
2130
  };
2131
2131
  Mg.displayName = "NodeRenderer";
2132
2132
  var Uy = se(Mg);
2133
- const Ky = (e, t, r) => r === j.Left ? e - t : r === j.Right ? e + t : e, Wy = (e, t, r) => r === j.Top ? e - t : r === j.Bottom ? e + t : e, cc = "react-flow__edgeupdater", dc = ({ position: e, centerX: t, centerY: r, radius: n = 10, onMouseDown: a, onMouseEnter: i, onMouseOut: o, type: s }) => M.createElement("circle", { onMouseDown: a, onMouseEnter: i, onMouseOut: o, className: be([cc, `${cc}-${s}`]), cx: Ky(t, n, e), cy: Wy(r, n, e), r: n, stroke: "transparent", fill: "transparent" }), Yy = () => !0;
2133
+ const Ky = (e, t, r) => r === G.Left ? e - t : r === G.Right ? e + t : e, Wy = (e, t, r) => r === G.Top ? e - t : r === G.Bottom ? e + t : e, cc = "react-flow__edgeupdater", dc = ({ position: e, centerX: t, centerY: r, radius: n = 10, onMouseDown: a, onMouseEnter: i, onMouseOut: o, type: s }) => M.createElement("circle", { onMouseDown: a, onMouseEnter: i, onMouseOut: o, className: be([cc, `${cc}-${s}`]), cx: Ky(t, n, e), cy: Wy(r, n, e), r: n, stroke: "transparent", fill: "transparent" }), Yy = () => !0;
2134
2134
  var pt = (e) => {
2135
- const t = ({ id: r, className: n, type: a, data: i, onClick: o, onEdgeDoubleClick: s, selected: c, animated: d, label: u, labelStyle: l, labelShowBg: h, labelBgStyle: f, labelBgPadding: m, labelBgBorderRadius: p, style: g, source: v, target: y, sourceX: b, sourceY: _, targetX: w, targetY: E, sourcePosition: S, targetPosition: N, elementsSelectable: x, hidden: q, sourceHandleId: R, targetHandleId: O, onContextMenu: T, onMouseEnter: A, onMouseMove: L, onMouseLeave: B, reconnectRadius: F, onReconnect: G, onReconnectStart: P, onReconnectEnd: H, markerEnd: $, markerStart: z, rfId: W, ariaLabel: C, isFocusable: I, isReconnectable: k, pathOptions: D, interactionWidth: K, disableKeyboardA11y: X }) => {
2135
+ const t = ({ id: r, className: n, type: a, data: i, onClick: o, onEdgeDoubleClick: s, selected: c, animated: d, label: u, labelStyle: l, labelShowBg: h, labelBgStyle: f, labelBgPadding: m, labelBgBorderRadius: p, style: g, source: v, target: y, sourceX: b, sourceY: _, targetX: w, targetY: E, sourcePosition: S, targetPosition: N, elementsSelectable: x, hidden: q, sourceHandleId: R, targetHandleId: O, onContextMenu: T, onMouseEnter: A, onMouseMove: L, onMouseLeave: B, reconnectRadius: F, onReconnect: j, onReconnectStart: P, onReconnectEnd: H, markerEnd: $, markerStart: z, rfId: W, ariaLabel: C, isFocusable: I, isReconnectable: k, pathOptions: D, interactionWidth: K, disableKeyboardA11y: X }) => {
2136
2136
  const Y = ee(null), [re, ue] = He(!1), [ne, te] = He(!1), Z = me(), he = Ce(() => `url('#${eu(z, W)}')`, [z, W]), V = Ce(() => `url('#${eu($, W)}')`, [$, W]);
2137
2137
  if (q)
2138
2138
  return null;
@@ -2151,7 +2151,7 @@ var pt = (e) => {
2151
2151
  event: ye,
2152
2152
  handleId: Fe,
2153
2153
  nodeId: dt,
2154
- onConnect: (tt) => G?.(xt, tt),
2154
+ onConnect: (tt) => j?.(xt, tt),
2155
2155
  isTarget: br,
2156
2156
  getState: Z.getState,
2157
2157
  setState: Z.setState,
@@ -2159,7 +2159,7 @@ var pt = (e) => {
2159
2159
  edgeUpdaterType: et,
2160
2160
  onReconnectEnd: _r
2161
2161
  });
2162
- }, Oe = (ye) => Se(ye, !0), ze = (ye) => Se(ye, !1), Be = () => ue(!0), qe = () => ue(!1), je = !x && !o, Ue = (ye) => {
2162
+ }, Oe = (ye) => Se(ye, !0), ze = (ye) => Se(ye, !1), Be = () => ue(!0), qe = () => ue(!1), Ge = !x && !o, Ue = (ye) => {
2163
2163
  if (!X && Zp.includes(ye.key) && x) {
2164
2164
  const { unselectNodesAndEdges: Ne, addSelectedEdges: _e, edges: we } = Z.getState();
2165
2165
  ye.key === "Escape" ? (Y.current?.blur(), Ne({ edges: [we.find((Fe) => Fe.id === r)] })) : _e([r]);
@@ -2171,7 +2171,7 @@ var pt = (e) => {
2171
2171
  "react-flow__edge",
2172
2172
  `react-flow__edge-${a}`,
2173
2173
  n,
2174
- { selected: c, animated: d, inactive: je, updating: re }
2174
+ { selected: c, animated: d, inactive: Ge, updating: re }
2175
2175
  ]), onClick: U, onDoubleClick: le, onContextMenu: Te, onMouseEnter: De, onMouseMove: Ee, onMouseLeave: pe, onKeyDown: I ? Ue : void 0, tabIndex: I ? 0 : void 0, role: I ? "button" : "img", "data-testid": `rf__edge-${r}`, "aria-label": C === null ? void 0 : C || `Edge from ${v} to ${y}`, "aria-describedby": I ? `${bg}-${W}` : void 0, ref: Y },
2176
2176
  !ne && M.createElement(e, { id: r, source: v, target: y, selected: c, animated: d, label: u, labelStyle: l, labelShowBg: h, labelBgStyle: f, labelBgPadding: m, labelBgBorderRadius: p, data: i, style: g, sourceX: b, sourceY: _, targetX: w, targetY: E, sourcePosition: S, targetPosition: N, sourceHandleId: R, targetHandleId: O, markerStart: he, markerEnd: V, pathOptions: D, interactionWidth: K }),
2177
2177
  k && M.createElement(
@@ -2200,22 +2200,22 @@ function Zy(e) {
2200
2200
  function lc(e, t, r = null) {
2201
2201
  const n = (r?.x || 0) + t.x, a = (r?.y || 0) + t.y, i = r?.width || t.width, o = r?.height || t.height;
2202
2202
  switch (e) {
2203
- case j.Top:
2203
+ case G.Top:
2204
2204
  return {
2205
2205
  x: n + i / 2,
2206
2206
  y: a
2207
2207
  };
2208
- case j.Right:
2208
+ case G.Right:
2209
2209
  return {
2210
2210
  x: n + i,
2211
2211
  y: a + o / 2
2212
2212
  };
2213
- case j.Bottom:
2213
+ case G.Bottom:
2214
2214
  return {
2215
2215
  x: n + i / 2,
2216
2216
  y: a + o
2217
2217
  };
2218
- case j.Left:
2218
+ case G.Left:
2219
2219
  return {
2220
2220
  x: n,
2221
2221
  y: a + o / 2
@@ -2361,15 +2361,15 @@ const ub = (e) => ({
2361
2361
  { key: R, style: { zIndex: R }, width: w, height: E, className: "react-flow__edges react-flow__container" },
2362
2362
  T && M.createElement(sb, { defaultColor: e, rfId: n }),
2363
2363
  M.createElement("g", null, O.map((A) => {
2364
- const [L, B, F] = hc(N.get(A.source)), [G, P, H] = hc(N.get(A.target));
2364
+ const [L, B, F] = hc(N.get(A.source)), [j, P, H] = hc(N.get(A.target));
2365
2365
  if (!F || !H)
2366
2366
  return null;
2367
2367
  let $ = A.type || "default";
2368
2368
  a[$] || (x?.("011", Pe.error011($)), $ = "default");
2369
- const z = a[$] || a.default, W = S === Je.Strict ? P.target : (P.target ?? []).concat(P.source ?? []), C = fc(B.source, A.sourceHandle), I = fc(W, A.targetHandle), k = C?.position || j.Bottom, D = I?.position || j.Top, K = !!(A.focusable || y && typeof A.focusable > "u"), X = A.reconnectable || A.updatable, Y = typeof h < "u" && (X || b && typeof X > "u");
2369
+ const z = a[$] || a.default, W = S === Je.Strict ? P.target : (P.target ?? []).concat(P.source ?? []), C = fc(B.source, A.sourceHandle), I = fc(W, A.targetHandle), k = C?.position || G.Bottom, D = I?.position || G.Top, K = !!(A.focusable || y && typeof A.focusable > "u"), X = A.reconnectable || A.updatable, Y = typeof h < "u" && (X || b && typeof X > "u");
2370
2370
  if (!C || !I)
2371
2371
  return x?.("008", Pe.error008(C, A)), null;
2372
- const { sourceX: re, sourceY: ue, targetX: ne, targetY: te } = Xy(L, C, k, G, I, D);
2372
+ const { sourceX: re, sourceY: ue, targetX: ne, targetY: te } = Xy(L, C, k, j, I, D);
2373
2373
  return M.createElement(z, { key: A.id, id: A.id, className: be([A.className, i]), type: $, data: A.data, selected: !!A.selected, animated: !!A.animated, hidden: !!A.hidden, label: A.label, labelStyle: A.labelStyle, labelShowBg: A.labelShowBg, labelBgStyle: A.labelBgStyle, labelBgPadding: A.labelBgPadding, labelBgBorderRadius: A.labelBgBorderRadius, style: A.style, source: A.source, target: A.target, sourceHandleId: A.sourceHandle, targetHandleId: A.targetHandle, markerEnd: A.markerEnd, markerStart: A.markerStart, sourceX: re, sourceY: ue, targetX: ne, targetY: te, sourcePosition: k, targetPosition: D, elementsSelectable: _, onContextMenu: o, onMouseEnter: s, onMouseMove: c, onMouseLeave: d, onClick: u, onEdgeDoubleClick: l, onReconnect: h, onReconnectStart: f, onReconnectEnd: m, reconnectRadius: p, rfId: n, ariaLabel: A.ariaLabel, isFocusable: K, isReconnectable: Y, pathOptions: "pathOptions" in A ? A.pathOptions : void 0, interactionWidth: A.interactionWidth, disableKeyboardA11y: v });
2374
2374
  }))
2375
2375
  )),
@@ -2390,10 +2390,10 @@ function fb(e) {
2390
2390
  }, [e, t.viewportInitialized]);
2391
2391
  }
2392
2392
  const hb = {
2393
- [j.Left]: j.Right,
2394
- [j.Right]: j.Left,
2395
- [j.Top]: j.Bottom,
2396
- [j.Bottom]: j.Top
2393
+ [G.Left]: G.Right,
2394
+ [G.Right]: G.Left,
2395
+ [G.Top]: G.Bottom,
2396
+ [G.Bottom]: G.Top
2397
2397
  }, Pg = ({ nodeId: e, handleType: t, style: r, type: n = Ye.Bezier, CustomComponent: a, connectionStatus: i }) => {
2398
2398
  const { fromNode: o, handleId: s, toX: c, toY: d, connectionMode: u } = ie(oe((E) => ({
2399
2399
  fromNode: E.nodeInternals.get(e),
@@ -2455,21 +2455,21 @@ function gc(e, t) {
2455
2455
  return t(e);
2456
2456
  }, [e]);
2457
2457
  }
2458
- const kg = ({ nodeTypes: e, edgeTypes: t, onMove: r, onMoveStart: n, onMoveEnd: a, onInit: i, onNodeClick: o, onEdgeClick: s, onNodeDoubleClick: c, onEdgeDoubleClick: d, onNodeMouseEnter: u, onNodeMouseMove: l, onNodeMouseLeave: h, onNodeContextMenu: f, onSelectionContextMenu: m, onSelectionStart: p, onSelectionEnd: g, connectionLineType: v, connectionLineStyle: y, connectionLineComponent: b, connectionLineContainerStyle: _, selectionKeyCode: w, selectionOnDrag: E, selectionMode: S, multiSelectionKeyCode: N, panActivationKeyCode: x, zoomActivationKeyCode: q, deleteKeyCode: R, onlyRenderVisibleElements: O, elementsSelectable: T, selectNodesOnDrag: A, defaultViewport: L, translateExtent: B, minZoom: F, maxZoom: G, preventScrolling: P, defaultMarkerColor: H, zoomOnScroll: $, zoomOnPinch: z, panOnScroll: W, panOnScrollSpeed: C, panOnScrollMode: I, zoomOnDoubleClick: k, panOnDrag: D, onPaneClick: K, onPaneMouseEnter: X, onPaneMouseMove: Y, onPaneMouseLeave: re, onPaneScroll: ue, onPaneContextMenu: ne, onEdgeContextMenu: te, onEdgeMouseEnter: Z, onEdgeMouseMove: he, onEdgeMouseLeave: V, onReconnect: U, onReconnectStart: le, onReconnectEnd: Te, reconnectRadius: De, noDragClassName: Ee, noWheelClassName: pe, noPanClassName: Se, elevateEdgesOnSelect: Oe, disableKeyboardA11y: ze, nodeOrigin: Be, nodeExtent: qe, rfId: je }) => {
2459
- const Ue = gc(e, jy), ye = gc(t, Zy);
2458
+ const kg = ({ nodeTypes: e, edgeTypes: t, onMove: r, onMoveStart: n, onMoveEnd: a, onInit: i, onNodeClick: o, onEdgeClick: s, onNodeDoubleClick: c, onEdgeDoubleClick: d, onNodeMouseEnter: u, onNodeMouseMove: l, onNodeMouseLeave: h, onNodeContextMenu: f, onSelectionContextMenu: m, onSelectionStart: p, onSelectionEnd: g, connectionLineType: v, connectionLineStyle: y, connectionLineComponent: b, connectionLineContainerStyle: _, selectionKeyCode: w, selectionOnDrag: E, selectionMode: S, multiSelectionKeyCode: N, panActivationKeyCode: x, zoomActivationKeyCode: q, deleteKeyCode: R, onlyRenderVisibleElements: O, elementsSelectable: T, selectNodesOnDrag: A, defaultViewport: L, translateExtent: B, minZoom: F, maxZoom: j, preventScrolling: P, defaultMarkerColor: H, zoomOnScroll: $, zoomOnPinch: z, panOnScroll: W, panOnScrollSpeed: C, panOnScrollMode: I, zoomOnDoubleClick: k, panOnDrag: D, onPaneClick: K, onPaneMouseEnter: X, onPaneMouseMove: Y, onPaneMouseLeave: re, onPaneScroll: ue, onPaneContextMenu: ne, onEdgeContextMenu: te, onEdgeMouseEnter: Z, onEdgeMouseMove: he, onEdgeMouseLeave: V, onReconnect: U, onReconnectStart: le, onReconnectEnd: Te, reconnectRadius: De, noDragClassName: Ee, noWheelClassName: pe, noPanClassName: Se, elevateEdgesOnSelect: Oe, disableKeyboardA11y: ze, nodeOrigin: Be, nodeExtent: qe, rfId: Ge }) => {
2459
+ const Ue = gc(e, Gy), ye = gc(t, Zy);
2460
2460
  return fb(i), M.createElement(
2461
2461
  $y,
2462
- { onPaneClick: K, onPaneMouseEnter: X, onPaneMouseMove: Y, onPaneMouseLeave: re, onPaneContextMenu: ne, onPaneScroll: ue, deleteKeyCode: R, selectionKeyCode: w, selectionOnDrag: E, selectionMode: S, onSelectionStart: p, onSelectionEnd: g, multiSelectionKeyCode: N, panActivationKeyCode: x, zoomActivationKeyCode: q, elementsSelectable: T, onMove: r, onMoveStart: n, onMoveEnd: a, zoomOnScroll: $, zoomOnPinch: z, zoomOnDoubleClick: k, panOnScroll: W, panOnScrollSpeed: C, panOnScrollMode: I, panOnDrag: D, defaultViewport: L, translateExtent: B, minZoom: F, maxZoom: G, onSelectionContextMenu: m, preventScrolling: P, noDragClassName: Ee, noWheelClassName: pe, noPanClassName: Se, disableKeyboardA11y: ze },
2462
+ { onPaneClick: K, onPaneMouseEnter: X, onPaneMouseMove: Y, onPaneMouseLeave: re, onPaneContextMenu: ne, onPaneScroll: ue, deleteKeyCode: R, selectionKeyCode: w, selectionOnDrag: E, selectionMode: S, onSelectionStart: p, onSelectionEnd: g, multiSelectionKeyCode: N, panActivationKeyCode: x, zoomActivationKeyCode: q, elementsSelectable: T, onMove: r, onMoveStart: n, onMoveEnd: a, zoomOnScroll: $, zoomOnPinch: z, zoomOnDoubleClick: k, panOnScroll: W, panOnScrollSpeed: C, panOnScrollMode: I, panOnDrag: D, defaultViewport: L, translateExtent: B, minZoom: F, maxZoom: j, onSelectionContextMenu: m, preventScrolling: P, noDragClassName: Ee, noWheelClassName: pe, noPanClassName: Se, disableKeyboardA11y: ze },
2463
2463
  M.createElement(
2464
2464
  lb,
2465
2465
  null,
2466
2466
  M.createElement(
2467
2467
  cb,
2468
- { edgeTypes: ye, onEdgeClick: s, onEdgeDoubleClick: d, onlyRenderVisibleElements: O, onEdgeContextMenu: te, onEdgeMouseEnter: Z, onEdgeMouseMove: he, onEdgeMouseLeave: V, onReconnect: U, onReconnectStart: le, onReconnectEnd: Te, reconnectRadius: De, defaultMarkerColor: H, noPanClassName: Se, elevateEdgesOnSelect: !!Oe, disableKeyboardA11y: ze, rfId: je },
2468
+ { edgeTypes: ye, onEdgeClick: s, onEdgeDoubleClick: d, onlyRenderVisibleElements: O, onEdgeContextMenu: te, onEdgeMouseEnter: Z, onEdgeMouseMove: he, onEdgeMouseLeave: V, onReconnect: U, onReconnectStart: le, onReconnectEnd: Te, reconnectRadius: De, defaultMarkerColor: H, noPanClassName: Se, elevateEdgesOnSelect: !!Oe, disableKeyboardA11y: ze, rfId: Ge },
2469
2469
  M.createElement(gb, { style: y, type: v, component: b, containerStyle: _ })
2470
2470
  ),
2471
2471
  M.createElement("div", { className: "react-flow__edgelabel-renderer" }),
2472
- M.createElement(Uy, { nodeTypes: Ue, onNodeClick: o, onNodeDoubleClick: c, onNodeMouseEnter: u, onNodeMouseMove: l, onNodeMouseLeave: h, onNodeContextMenu: f, selectNodesOnDrag: A, onlyRenderVisibleElements: O, noPanClassName: Se, noDragClassName: Ee, disableKeyboardA11y: ze, nodeOrigin: Be, nodeExtent: qe, rfId: je })
2472
+ M.createElement(Uy, { nodeTypes: Ue, onNodeClick: o, onNodeDoubleClick: c, onNodeMouseEnter: u, onNodeMouseMove: l, onNodeMouseLeave: h, onNodeContextMenu: f, selectNodesOnDrag: A, onlyRenderVisibleElements: O, noPanClassName: Se, noDragClassName: Ee, disableKeyboardA11y: ze, nodeOrigin: Be, nodeExtent: qe, rfId: Ge })
2473
2473
  )
2474
2474
  );
2475
2475
  };
@@ -2711,7 +2711,7 @@ const yb = {
2711
2711
  overflow: "hidden",
2712
2712
  position: "relative",
2713
2713
  zIndex: 0
2714
- }, Bg = Bp(({ nodes: e, edges: t, defaultNodes: r, defaultEdges: n, className: a, nodeTypes: i = yb, edgeTypes: o = bb, onNodeClick: s, onEdgeClick: c, onInit: d, onMove: u, onMoveStart: l, onMoveEnd: h, onConnect: f, onConnectStart: m, onConnectEnd: p, onClickConnectStart: g, onClickConnectEnd: v, onNodeMouseEnter: y, onNodeMouseMove: b, onNodeMouseLeave: _, onNodeContextMenu: w, onNodeDoubleClick: E, onNodeDragStart: S, onNodeDrag: N, onNodeDragStop: x, onNodesDelete: q, onEdgesDelete: R, onSelectionChange: O, onSelectionDragStart: T, onSelectionDrag: A, onSelectionDragStop: L, onSelectionContextMenu: B, onSelectionStart: F, onSelectionEnd: G, connectionMode: P = Je.Strict, connectionLineType: H = Ye.Bezier, connectionLineStyle: $, connectionLineComponent: z, connectionLineContainerStyle: W, deleteKeyCode: C = "Backspace", selectionKeyCode: I = "Shift", selectionOnDrag: k = !1, selectionMode: D = It.Full, panActivationKeyCode: K = "Space", multiSelectionKeyCode: X = Kt() ? "Meta" : "Control", zoomActivationKeyCode: Y = Kt() ? "Meta" : "Control", snapToGrid: re = !1, snapGrid: ue = Eb, onlyRenderVisibleElements: ne = !1, selectNodesOnDrag: te = !0, nodesDraggable: Z, nodesConnectable: he, nodesFocusable: V, nodeOrigin: U = _b, edgesFocusable: le, edgesUpdatable: Te, elementsSelectable: De, defaultViewport: Ee = wb, minZoom: pe = 0.5, maxZoom: Se = 2, translateExtent: Oe = au, preventScrolling: ze = !0, nodeExtent: Be, defaultMarkerColor: qe = "#b1b1b7", zoomOnScroll: je = !0, zoomOnPinch: Ue = !0, panOnScroll: ye = !1, panOnScrollSpeed: Ne = 0.5, panOnScrollMode: _e = nt.Free, zoomOnDoubleClick: we = !0, panOnDrag: dt = !0, onPaneClick: Fe, onPaneMouseEnter: et, onPaneMouseMove: yr, onPaneMouseLeave: br, onPaneScroll: xt, onPaneContextMenu: _r, children: ku, onEdgeContextMenu: tt, onEdgeDoubleClick: jv, onEdgeMouseEnter: Gv, onEdgeMouseMove: Vv, onEdgeMouseLeave: Uv, onEdgeUpdate: Kv, onEdgeUpdateStart: Wv, onEdgeUpdateEnd: Yv, onReconnect: Zv, onReconnectStart: Xv, onReconnectEnd: Jv, reconnectRadius: Qv = 10, edgeUpdaterRadius: em = 10, onNodesChange: tm, onEdgesChange: rm, noDragClassName: nm = "nodrag", noWheelClassName: am = "nowheel", noPanClassName: Lu = "nopan", fitView: im = !1, fitViewOptions: om, connectOnClick: sm = !0, attributionPosition: um, proOptions: cm, defaultEdgeOptions: dm, elevateNodesOnSelect: lm = !0, elevateEdgesOnSelect: fm = !1, disableKeyboardA11y: Du = !1, autoPanOnConnect: hm = !0, autoPanOnNodeDrag: pm = !0, connectionRadius: gm = 20, isValidConnection: vm, onError: mm, style: ym, id: Bu, nodeDragThreshold: bm, ..._m }, Em) => {
2714
+ }, Bg = Bp(({ nodes: e, edges: t, defaultNodes: r, defaultEdges: n, className: a, nodeTypes: i = yb, edgeTypes: o = bb, onNodeClick: s, onEdgeClick: c, onInit: d, onMove: u, onMoveStart: l, onMoveEnd: h, onConnect: f, onConnectStart: m, onConnectEnd: p, onClickConnectStart: g, onClickConnectEnd: v, onNodeMouseEnter: y, onNodeMouseMove: b, onNodeMouseLeave: _, onNodeContextMenu: w, onNodeDoubleClick: E, onNodeDragStart: S, onNodeDrag: N, onNodeDragStop: x, onNodesDelete: q, onEdgesDelete: R, onSelectionChange: O, onSelectionDragStart: T, onSelectionDrag: A, onSelectionDragStop: L, onSelectionContextMenu: B, onSelectionStart: F, onSelectionEnd: j, connectionMode: P = Je.Strict, connectionLineType: H = Ye.Bezier, connectionLineStyle: $, connectionLineComponent: z, connectionLineContainerStyle: W, deleteKeyCode: C = "Backspace", selectionKeyCode: I = "Shift", selectionOnDrag: k = !1, selectionMode: D = It.Full, panActivationKeyCode: K = "Space", multiSelectionKeyCode: X = Kt() ? "Meta" : "Control", zoomActivationKeyCode: Y = Kt() ? "Meta" : "Control", snapToGrid: re = !1, snapGrid: ue = Eb, onlyRenderVisibleElements: ne = !1, selectNodesOnDrag: te = !0, nodesDraggable: Z, nodesConnectable: he, nodesFocusable: V, nodeOrigin: U = _b, edgesFocusable: le, edgesUpdatable: Te, elementsSelectable: De, defaultViewport: Ee = wb, minZoom: pe = 0.5, maxZoom: Se = 2, translateExtent: Oe = au, preventScrolling: ze = !0, nodeExtent: Be, defaultMarkerColor: qe = "#b1b1b7", zoomOnScroll: Ge = !0, zoomOnPinch: Ue = !0, panOnScroll: ye = !1, panOnScrollSpeed: Ne = 0.5, panOnScrollMode: _e = nt.Free, zoomOnDoubleClick: we = !0, panOnDrag: dt = !0, onPaneClick: Fe, onPaneMouseEnter: et, onPaneMouseMove: yr, onPaneMouseLeave: br, onPaneScroll: xt, onPaneContextMenu: _r, children: ku, onEdgeContextMenu: tt, onEdgeDoubleClick: Gv, onEdgeMouseEnter: jv, onEdgeMouseMove: Vv, onEdgeMouseLeave: Uv, onEdgeUpdate: Kv, onEdgeUpdateStart: Wv, onEdgeUpdateEnd: Yv, onReconnect: Zv, onReconnectStart: Xv, onReconnectEnd: Jv, reconnectRadius: Qv = 10, edgeUpdaterRadius: em = 10, onNodesChange: tm, onEdgesChange: rm, noDragClassName: nm = "nodrag", noWheelClassName: am = "nowheel", noPanClassName: Lu = "nopan", fitView: im = !1, fitViewOptions: om, connectOnClick: sm = !0, attributionPosition: um, proOptions: cm, defaultEdgeOptions: dm, elevateNodesOnSelect: lm = !0, elevateEdgesOnSelect: fm = !1, disableKeyboardA11y: Du = !1, autoPanOnConnect: hm = !0, autoPanOnNodeDrag: pm = !0, connectionRadius: gm = 20, isValidConnection: vm, onError: mm, style: ym, id: Bu, nodeDragThreshold: bm, ..._m }, Em) => {
2715
2715
  const Er = Bu || "1";
2716
2716
  return M.createElement(
2717
2717
  "div",
@@ -2719,7 +2719,7 @@ const yb = {
2719
2719
  M.createElement(
2720
2720
  Dg,
2721
2721
  null,
2722
- M.createElement(vb, { onInit: d, onMove: u, onMoveStart: l, onMoveEnd: h, onNodeClick: s, onEdgeClick: c, onNodeMouseEnter: y, onNodeMouseMove: b, onNodeMouseLeave: _, onNodeContextMenu: w, onNodeDoubleClick: E, nodeTypes: i, edgeTypes: o, connectionLineType: H, connectionLineStyle: $, connectionLineComponent: z, connectionLineContainerStyle: W, selectionKeyCode: I, selectionOnDrag: k, selectionMode: D, deleteKeyCode: C, multiSelectionKeyCode: X, panActivationKeyCode: K, zoomActivationKeyCode: Y, onlyRenderVisibleElements: ne, selectNodesOnDrag: te, defaultViewport: Ee, translateExtent: Oe, minZoom: pe, maxZoom: Se, preventScrolling: ze, zoomOnScroll: je, zoomOnPinch: Ue, zoomOnDoubleClick: we, panOnScroll: ye, panOnScrollSpeed: Ne, panOnScrollMode: _e, panOnDrag: dt, onPaneClick: Fe, onPaneMouseEnter: et, onPaneMouseMove: yr, onPaneMouseLeave: br, onPaneScroll: xt, onPaneContextMenu: _r, onSelectionContextMenu: B, onSelectionStart: F, onSelectionEnd: G, onEdgeContextMenu: tt, onEdgeDoubleClick: jv, onEdgeMouseEnter: Gv, onEdgeMouseMove: Vv, onEdgeMouseLeave: Uv, onReconnect: Zv ?? Kv, onReconnectStart: Xv ?? Wv, onReconnectEnd: Jv ?? Yv, reconnectRadius: Qv ?? em, defaultMarkerColor: qe, noDragClassName: nm, noWheelClassName: am, noPanClassName: Lu, elevateEdgesOnSelect: fm, rfId: Er, disableKeyboardA11y: Du, nodeOrigin: U, nodeExtent: Be }),
2722
+ M.createElement(vb, { onInit: d, onMove: u, onMoveStart: l, onMoveEnd: h, onNodeClick: s, onEdgeClick: c, onNodeMouseEnter: y, onNodeMouseMove: b, onNodeMouseLeave: _, onNodeContextMenu: w, onNodeDoubleClick: E, nodeTypes: i, edgeTypes: o, connectionLineType: H, connectionLineStyle: $, connectionLineComponent: z, connectionLineContainerStyle: W, selectionKeyCode: I, selectionOnDrag: k, selectionMode: D, deleteKeyCode: C, multiSelectionKeyCode: X, panActivationKeyCode: K, zoomActivationKeyCode: Y, onlyRenderVisibleElements: ne, selectNodesOnDrag: te, defaultViewport: Ee, translateExtent: Oe, minZoom: pe, maxZoom: Se, preventScrolling: ze, zoomOnScroll: Ge, zoomOnPinch: Ue, zoomOnDoubleClick: we, panOnScroll: ye, panOnScrollSpeed: Ne, panOnScrollMode: _e, panOnDrag: dt, onPaneClick: Fe, onPaneMouseEnter: et, onPaneMouseMove: yr, onPaneMouseLeave: br, onPaneScroll: xt, onPaneContextMenu: _r, onSelectionContextMenu: B, onSelectionStart: F, onSelectionEnd: j, onEdgeContextMenu: tt, onEdgeDoubleClick: Gv, onEdgeMouseEnter: jv, onEdgeMouseMove: Vv, onEdgeMouseLeave: Uv, onReconnect: Zv ?? Kv, onReconnectStart: Xv ?? Wv, onReconnectEnd: Jv ?? Yv, reconnectRadius: Qv ?? em, defaultMarkerColor: qe, noDragClassName: nm, noWheelClassName: am, noPanClassName: Lu, elevateEdgesOnSelect: fm, rfId: Er, disableKeyboardA11y: Du, nodeOrigin: U, nodeExtent: Be }),
2723
2723
  M.createElement(hy, { nodes: e, edges: t, defaultNodes: r, defaultEdges: n, onConnect: f, onConnectStart: m, onConnectEnd: p, onClickConnectStart: g, onClickConnectEnd: v, nodesDraggable: Z, nodesConnectable: he, nodesFocusable: V, edgesFocusable: le, edgesUpdatable: Te, elementsSelectable: De, elevateNodesOnSelect: lm, minZoom: pe, maxZoom: Se, nodeExtent: Be, onNodesChange: tm, onEdgesChange: rm, snapToGrid: re, snapGrid: ue, connectionMode: P, translateExtent: Oe, connectOnClick: sm, defaultEdgeOptions: dm, fitView: im, fitViewOptions: om, onNodesDelete: q, onEdgesDelete: R, onNodeDragStart: S, onNodeDrag: N, onNodeDragStop: x, onSelectionDrag: A, onSelectionDragStart: T, onSelectionDragStop: L, noPanClassName: Lu, nodeOrigin: U, rfId: Er, autoPanOnConnect: hm, autoPanOnNodeDrag: pm, onError: mm, connectionRadius: gm, isValidConnection: vm, nodeDragThreshold: bm }),
2724
2724
  M.createElement(ly, { onSelectionChange: O }),
2725
2725
  ku,
@@ -2774,7 +2774,7 @@ const Ob = 200, Pb = 150, kb = (e) => {
2774
2774
  };
2775
2775
  return {
2776
2776
  viewBB: r,
2777
- boundingRect: t.length > 0 ? Gm(er(t, e.nodeOrigin), r) : r,
2777
+ boundingRect: t.length > 0 ? jm(er(t, e.nodeOrigin), r) : r,
2778
2778
  rfId: e.rfId
2779
2779
  };
2780
2780
  }, Lb = "react-flow__minimap-desc";
@@ -2802,7 +2802,7 @@ function $g({
2802
2802
  zoomStep: y = 10,
2803
2803
  offsetScale: b = 5
2804
2804
  }) {
2805
- const _ = me(), w = ee(null), { boundingRect: E, viewBB: S, rfId: N } = ie(kb, ve), x = e?.width ?? Ob, q = e?.height ?? Pb, R = E.width / x, O = E.height / q, T = Math.max(R, O), A = T * x, L = T * q, B = b * T, F = E.x - (A - E.width) / 2 - B, G = E.y - (L - E.height) / 2 - B, P = A + B * 2, H = L + B * 2, $ = `${Lb}-${N}`, z = ee(0);
2805
+ const _ = me(), w = ee(null), { boundingRect: E, viewBB: S, rfId: N } = ie(kb, ve), x = e?.width ?? Ob, q = e?.height ?? Pb, R = E.width / x, O = E.height / q, T = Math.max(R, O), A = T * x, L = T * q, B = b * T, F = E.x - (A - E.width) / 2 - B, j = E.y - (L - E.height) / 2 - B, P = A + B * 2, H = L + B * 2, $ = `${Lb}-${N}`, z = ee(0);
2806
2806
  z.current = T, ae(() => {
2807
2807
  if (w.current) {
2808
2808
  const I = iu(w.current), k = (X) => {
@@ -2841,10 +2841,10 @@ function $g({
2841
2841
  { position: l, style: e, className: be(["react-flow__minimap", t]), "data-testid": "rf__minimap" },
2842
2842
  M.createElement(
2843
2843
  "svg",
2844
- { width: x, height: q, viewBox: `${F} ${G} ${P} ${H}`, role: "img", "aria-labelledby": $, ref: w, onClick: W },
2844
+ { width: x, height: q, viewBox: `${F} ${j} ${P} ${H}`, role: "img", "aria-labelledby": $, ref: w, onClick: W },
2845
2845
  g && M.createElement("title", { id: $ }, g),
2846
2846
  M.createElement(Tb, { onClick: C, nodeColor: n, nodeStrokeColor: r, nodeBorderRadius: i, nodeClassName: a, nodeStrokeWidth: o, nodeComponent: s }),
2847
- M.createElement("path", { className: "react-flow__minimap-mask", d: `M${F - B},${G - B}h${P + B * 2}v${H + B * 2}h${-P - B * 2}z
2847
+ M.createElement("path", { className: "react-flow__minimap-mask", d: `M${F - B},${j - B}h${P + B * 2}v${H + B * 2}h${-P - B * 2}z
2848
2848
  M${S.x},${S.y}h${S.width}v${S.height}h${-S.width}z`, fill: c, fillRule: "evenodd", stroke: d, strokeWidth: u, pointerEvents: "none" })
2849
2849
  )
2850
2850
  );
@@ -2888,12 +2888,12 @@ function zb() {
2888
2888
  }
2889
2889
  const Rt = ({ children: e, className: t, ...r }) => M.createElement("button", { type: "button", className: be(["react-flow__controls-button", t]), ...r }, e);
2890
2890
  Rt.displayName = "ControlButton";
2891
- const jb = (e) => ({
2891
+ const Gb = (e) => ({
2892
2892
  isInteractive: e.nodesDraggable || e.nodesConnectable || e.elementsSelectable,
2893
2893
  minZoomReached: e.transform[2] <= e.minZoom,
2894
2894
  maxZoomReached: e.transform[2] >= e.maxZoom
2895
2895
  }), zg = ({ style: e, showZoom: t = !0, showFitView: r = !0, showInteractive: n = !0, fitViewOptions: a, onZoomIn: i, onZoomOut: o, onFitView: s, onInteractiveChange: c, className: d, children: u, position: l = "bottom-left" }) => {
2896
- const h = me(), [f, m] = He(!1), { isInteractive: p, minZoomReached: g, maxZoomReached: v } = ie(jb, ve), { zoomIn: y, zoomOut: b, fitView: _ } = gu();
2896
+ const h = me(), [f, m] = He(!1), { isInteractive: p, minZoomReached: g, maxZoomReached: v } = ie(Gb, ve), { zoomIn: y, zoomOut: b, fitView: _ } = gu();
2897
2897
  if (ae(() => {
2898
2898
  m(!0);
2899
2899
  }, []), !f)
@@ -2938,7 +2938,7 @@ const jb = (e) => ({
2938
2938
  );
2939
2939
  };
2940
2940
  zg.displayName = "Controls";
2941
- var Gb = se(zg), Ae;
2941
+ var jb = se(zg), Ae;
2942
2942
  (function(e) {
2943
2943
  e.Lines = "lines", e.Dots = "dots", e.Cross = "cross";
2944
2944
  })(Ae || (Ae = {}));
@@ -2957,7 +2957,7 @@ const Kb = {
2957
2957
  [Ae.Lines]: 1,
2958
2958
  [Ae.Cross]: 6
2959
2959
  }, Yb = (e) => ({ transform: e.transform, patternId: `pattern-${e.rfId}` });
2960
- function jg({
2960
+ function Gg({
2961
2961
  id: e,
2962
2962
  variant: t = Ae.Dots,
2963
2963
  // only used for dots and cross
@@ -2985,8 +2985,8 @@ function jg({
2985
2985
  M.createElement("rect", { x: "0", y: "0", width: "100%", height: "100%", fill: `url(#${l + e})` })
2986
2986
  );
2987
2987
  }
2988
- jg.displayName = "Background";
2989
- var Zb = se(jg);
2988
+ Gg.displayName = "Background";
2989
+ var Zb = se(Gg);
2990
2990
  function Xb({ data: e }) {
2991
2991
  const { cube: t, onFieldClick: r, isHighlighted: n, highlightedFields: a, searchTerm: i } = e, o = () => {
2992
2992
  }, s = (f, m) => {
@@ -3136,7 +3136,7 @@ function Xb({ data: e }) {
3136
3136
  Ze,
3137
3137
  {
3138
3138
  type: "source",
3139
- position: j.Right,
3139
+ position: G.Right,
3140
3140
  id: "right",
3141
3141
  className: "opacity-0",
3142
3142
  isConnectable: !1
@@ -3146,7 +3146,7 @@ function Xb({ data: e }) {
3146
3146
  Ze,
3147
3147
  {
3148
3148
  type: "target",
3149
- position: j.Left,
3149
+ position: G.Left,
3150
3150
  id: "left",
3151
3151
  className: "opacity-0",
3152
3152
  isConnectable: !1
@@ -3156,7 +3156,7 @@ function Xb({ data: e }) {
3156
3156
  Ze,
3157
3157
  {
3158
3158
  type: "source",
3159
- position: j.Bottom,
3159
+ position: G.Bottom,
3160
3160
  id: "bottom",
3161
3161
  className: "opacity-0",
3162
3162
  isConnectable: !1
@@ -3166,7 +3166,7 @@ function Xb({ data: e }) {
3166
3166
  Ze,
3167
3167
  {
3168
3168
  type: "target",
3169
- position: j.Top,
3169
+ position: G.Top,
3170
3170
  id: "top",
3171
3171
  className: "opacity-0",
3172
3172
  isConnectable: !1
@@ -3387,27 +3387,27 @@ function o_() {
3387
3387
  }
3388
3388
  return zr = e, zr;
3389
3389
  }
3390
- var jr, Nc;
3390
+ var Gr, Nc;
3391
3391
  function s_() {
3392
- if (Nc) return jr;
3392
+ if (Nc) return Gr;
3393
3393
  Nc = 1;
3394
3394
  function e(t) {
3395
3395
  return this.__data__.has(t);
3396
3396
  }
3397
- return jr = e, jr;
3397
+ return Gr = e, Gr;
3398
3398
  }
3399
- var Gr, Rc;
3400
- function Gg() {
3401
- if (Rc) return Gr;
3399
+ var jr, Rc;
3400
+ function jg() {
3401
+ if (Rc) return jr;
3402
3402
  Rc = 1;
3403
3403
  var e = typeof Dt == "object" && Dt && Dt.Object === Object && Dt;
3404
- return Gr = e, Gr;
3404
+ return jr = e, jr;
3405
3405
  }
3406
3406
  var Vr, Ac;
3407
3407
  function Le() {
3408
3408
  if (Ac) return Vr;
3409
3409
  Ac = 1;
3410
- var e = /* @__PURE__ */ Gg(), t = typeof self == "object" && self && self.Object === Object && self, r = e || t || Function("return this")();
3410
+ var e = /* @__PURE__ */ jg(), t = typeof self == "object" && self && self.Object === Object && self, r = e || t || Function("return this")();
3411
3411
  return Vr = r, Vr;
3412
3412
  }
3413
3413
  var Ur, Ic;
@@ -3559,17 +3559,17 @@ function yu() {
3559
3559
  var e = /* @__PURE__ */ st(), t = /* @__PURE__ */ Le(), r = e(t, "Map");
3560
3560
  return an = r, an;
3561
3561
  }
3562
- var on, jc;
3562
+ var on, Gc;
3563
3563
  function nr() {
3564
- if (jc) return on;
3565
- jc = 1;
3564
+ if (Gc) return on;
3565
+ Gc = 1;
3566
3566
  var e = /* @__PURE__ */ st(), t = e(Object, "create");
3567
3567
  return on = t, on;
3568
3568
  }
3569
- var sn, Gc;
3569
+ var sn, jc;
3570
3570
  function p_() {
3571
- if (Gc) return sn;
3572
- Gc = 1;
3571
+ if (jc) return sn;
3572
+ jc = 1;
3573
3573
  var e = /* @__PURE__ */ nr();
3574
3574
  function t() {
3575
3575
  this.__data__ = e ? e(null) : {}, this.size = 0;
@@ -3870,7 +3870,7 @@ function ge() {
3870
3870
  var e = Array.isArray;
3871
3871
  return Tn = e, Tn;
3872
3872
  }
3873
- var Gt = { exports: {} }, On, vd;
3873
+ var jt = { exports: {} }, On, vd;
3874
3874
  function A_() {
3875
3875
  if (vd) return On;
3876
3876
  vd = 1;
@@ -3884,7 +3884,7 @@ function Et() {
3884
3884
  return md || (md = 1, (function(e, t) {
3885
3885
  var r = /* @__PURE__ */ Le(), n = /* @__PURE__ */ A_(), a = t && !t.nodeType && t, i = a && !0 && e && !e.nodeType && e, o = i && i.exports === a, s = o ? r.Buffer : void 0, c = s ? s.isBuffer : void 0, d = c || n;
3886
3886
  e.exports = d;
3887
- })(Gt, Gt.exports)), Gt.exports;
3887
+ })(jt, jt.exports)), jt.exports;
3888
3888
  }
3889
3889
  var Pn, yd;
3890
3890
  function ur() {
@@ -3932,7 +3932,7 @@ function cr() {
3932
3932
  var Vt = { exports: {} }, wd;
3933
3933
  function wu() {
3934
3934
  return wd || (wd = 1, (function(e, t) {
3935
- var r = /* @__PURE__ */ Gg(), n = t && !t.nodeType && t, a = n && !0 && e && !e.nodeType && e, i = a && a.exports === n, o = i && r.process, s = (function() {
3935
+ var r = /* @__PURE__ */ jg(), n = t && !t.nodeType && t, a = n && !0 && e && !e.nodeType && e, i = a && a.exports === n, o = i && r.process, s = (function() {
3936
3936
  try {
3937
3937
  var c = a && a.require && a.require("util").types;
3938
3938
  return c || o && o.binding && o.binding("util");
@@ -3995,9 +3995,9 @@ function M_() {
3995
3995
  var e = /* @__PURE__ */ Wg(), t = e(Object.keys, Object);
3996
3996
  return zn = t, zn;
3997
3997
  }
3998
- var jn, Rd;
3998
+ var Gn, Rd;
3999
3999
  function Su() {
4000
- if (Rd) return jn;
4000
+ if (Rd) return Gn;
4001
4001
  Rd = 1;
4002
4002
  var e = /* @__PURE__ */ dr(), t = /* @__PURE__ */ M_(), r = Object.prototype, n = r.hasOwnProperty;
4003
4003
  function a(i) {
@@ -4008,23 +4008,23 @@ function Su() {
4008
4008
  n.call(i, s) && s != "constructor" && o.push(s);
4009
4009
  return o;
4010
4010
  }
4011
- return jn = a, jn;
4011
+ return Gn = a, Gn;
4012
4012
  }
4013
- var Gn, Ad;
4014
- function Ge() {
4015
- if (Ad) return Gn;
4013
+ var jn, Ad;
4014
+ function je() {
4015
+ if (Ad) return jn;
4016
4016
  Ad = 1;
4017
4017
  var e = /* @__PURE__ */ Tt(), t = /* @__PURE__ */ Eu();
4018
4018
  function r(n) {
4019
4019
  return n != null && t(n.length) && !e(n);
4020
4020
  }
4021
- return Gn = r, Gn;
4021
+ return jn = r, jn;
4022
4022
  }
4023
4023
  var Vn, Id;
4024
4024
  function Qe() {
4025
4025
  if (Id) return Vn;
4026
4026
  Id = 1;
4027
- var e = /* @__PURE__ */ Kg(), t = /* @__PURE__ */ Su(), r = /* @__PURE__ */ Ge();
4027
+ var e = /* @__PURE__ */ Kg(), t = /* @__PURE__ */ Su(), r = /* @__PURE__ */ je();
4028
4028
  function n(a) {
4029
4029
  return r(a) ? e(a) : t(a);
4030
4030
  }
@@ -4072,7 +4072,7 @@ var Yn, Pd;
4072
4072
  function ut() {
4073
4073
  if (Pd) return Yn;
4074
4074
  Pd = 1;
4075
- var e = /* @__PURE__ */ Kg(), t = /* @__PURE__ */ P_(), r = /* @__PURE__ */ Ge();
4075
+ var e = /* @__PURE__ */ Kg(), t = /* @__PURE__ */ P_(), r = /* @__PURE__ */ je();
4076
4076
  function n(a) {
4077
4077
  return r(a) ? e(a, !0) : t(a);
4078
4078
  }
@@ -4167,17 +4167,17 @@ function Cu() {
4167
4167
  }
4168
4168
  return ra = e, ra;
4169
4169
  }
4170
- var na, jd;
4170
+ var na, Gd;
4171
4171
  function lr() {
4172
- if (jd) return na;
4173
- jd = 1;
4172
+ if (Gd) return na;
4173
+ Gd = 1;
4174
4174
  var e = /* @__PURE__ */ Wg(), t = e(Object.getPrototypeOf, Object);
4175
4175
  return na = t, na;
4176
4176
  }
4177
- var aa, Gd;
4177
+ var aa, jd;
4178
4178
  function Qg() {
4179
- if (Gd) return aa;
4180
- Gd = 1;
4179
+ if (jd) return aa;
4180
+ jd = 1;
4181
4181
  var e = /* @__PURE__ */ Cu(), t = /* @__PURE__ */ lr(), r = /* @__PURE__ */ xu(), n = /* @__PURE__ */ Jg(), a = Object.getOwnPropertySymbols, i = a ? function(o) {
4182
4182
  for (var s = []; o; )
4183
4183
  e(s, r(o)), o = t(o);
@@ -4307,7 +4307,7 @@ function qu() {
4307
4307
  return va = t, va;
4308
4308
  }
4309
4309
  var ma, nl;
4310
- function j_() {
4310
+ function G_() {
4311
4311
  if (nl) return ma;
4312
4312
  nl = 1;
4313
4313
  var e = /* @__PURE__ */ qu();
@@ -4318,7 +4318,7 @@ function j_() {
4318
4318
  return ma = t, ma;
4319
4319
  }
4320
4320
  var ya, al;
4321
- function G_() {
4321
+ function j_() {
4322
4322
  if (al) return ya;
4323
4323
  al = 1;
4324
4324
  var e = /\w*$/;
@@ -4353,7 +4353,7 @@ var Ea, sl;
4353
4353
  function U_() {
4354
4354
  if (sl) return Ea;
4355
4355
  sl = 1;
4356
- var e = /* @__PURE__ */ qu(), t = /* @__PURE__ */ j_(), r = /* @__PURE__ */ G_(), n = /* @__PURE__ */ V_(), a = /* @__PURE__ */ av(), i = "[object Boolean]", o = "[object Date]", s = "[object Map]", c = "[object Number]", d = "[object RegExp]", u = "[object Set]", l = "[object String]", h = "[object Symbol]", f = "[object ArrayBuffer]", m = "[object DataView]", p = "[object Float32Array]", g = "[object Float64Array]", v = "[object Int8Array]", y = "[object Int16Array]", b = "[object Int32Array]", _ = "[object Uint8Array]", w = "[object Uint8ClampedArray]", E = "[object Uint16Array]", S = "[object Uint32Array]";
4356
+ var e = /* @__PURE__ */ qu(), t = /* @__PURE__ */ G_(), r = /* @__PURE__ */ j_(), n = /* @__PURE__ */ V_(), a = /* @__PURE__ */ av(), i = "[object Boolean]", o = "[object Date]", s = "[object Map]", c = "[object Number]", d = "[object RegExp]", u = "[object Set]", l = "[object String]", h = "[object Symbol]", f = "[object ArrayBuffer]", m = "[object DataView]", p = "[object Float32Array]", g = "[object Float64Array]", v = "[object Int8Array]", y = "[object Int16Array]", b = "[object Int32Array]", _ = "[object Uint8Array]", w = "[object Uint8ClampedArray]", E = "[object Uint16Array]", S = "[object Uint32Array]";
4357
4357
  function N(x, q, R) {
4358
4358
  var O = x.constructor;
4359
4359
  switch (q) {
@@ -4456,8 +4456,8 @@ var Ra, pl;
4456
4456
  function sv() {
4457
4457
  if (pl) return Ra;
4458
4458
  pl = 1;
4459
- var e = /* @__PURE__ */ ir(), t = /* @__PURE__ */ _u(), r = /* @__PURE__ */ sr(), n = /* @__PURE__ */ T_(), a = /* @__PURE__ */ k_(), i = /* @__PURE__ */ Yg(), o = /* @__PURE__ */ Zg(), s = /* @__PURE__ */ L_(), c = /* @__PURE__ */ D_(), d = /* @__PURE__ */ tv(), u = /* @__PURE__ */ B_(), l = /* @__PURE__ */ wt(), h = /* @__PURE__ */ z_(), f = /* @__PURE__ */ U_(), m = /* @__PURE__ */ ov(), p = /* @__PURE__ */ ge(), g = /* @__PURE__ */ Et(), v = /* @__PURE__ */ W_(), y = /* @__PURE__ */ Ie(), b = /* @__PURE__ */ Z_(), _ = /* @__PURE__ */ Qe(), w = /* @__PURE__ */ ut(), E = 1, S = 2, N = 4, x = "[object Arguments]", q = "[object Array]", R = "[object Boolean]", O = "[object Date]", T = "[object Error]", A = "[object Function]", L = "[object GeneratorFunction]", B = "[object Map]", F = "[object Number]", G = "[object Object]", P = "[object RegExp]", H = "[object Set]", $ = "[object String]", z = "[object Symbol]", W = "[object WeakMap]", C = "[object ArrayBuffer]", I = "[object DataView]", k = "[object Float32Array]", D = "[object Float64Array]", K = "[object Int8Array]", X = "[object Int16Array]", Y = "[object Int32Array]", re = "[object Uint8Array]", ue = "[object Uint8ClampedArray]", ne = "[object Uint16Array]", te = "[object Uint32Array]", Z = {};
4460
- Z[x] = Z[q] = Z[C] = Z[I] = Z[R] = Z[O] = Z[k] = Z[D] = Z[K] = Z[X] = Z[Y] = Z[B] = Z[F] = Z[G] = Z[P] = Z[H] = Z[$] = Z[z] = Z[re] = Z[ue] = Z[ne] = Z[te] = !0, Z[T] = Z[A] = Z[W] = !1;
4459
+ var e = /* @__PURE__ */ ir(), t = /* @__PURE__ */ _u(), r = /* @__PURE__ */ sr(), n = /* @__PURE__ */ T_(), a = /* @__PURE__ */ k_(), i = /* @__PURE__ */ Yg(), o = /* @__PURE__ */ Zg(), s = /* @__PURE__ */ L_(), c = /* @__PURE__ */ D_(), d = /* @__PURE__ */ tv(), u = /* @__PURE__ */ B_(), l = /* @__PURE__ */ wt(), h = /* @__PURE__ */ z_(), f = /* @__PURE__ */ U_(), m = /* @__PURE__ */ ov(), p = /* @__PURE__ */ ge(), g = /* @__PURE__ */ Et(), v = /* @__PURE__ */ W_(), y = /* @__PURE__ */ Ie(), b = /* @__PURE__ */ Z_(), _ = /* @__PURE__ */ Qe(), w = /* @__PURE__ */ ut(), E = 1, S = 2, N = 4, x = "[object Arguments]", q = "[object Array]", R = "[object Boolean]", O = "[object Date]", T = "[object Error]", A = "[object Function]", L = "[object GeneratorFunction]", B = "[object Map]", F = "[object Number]", j = "[object Object]", P = "[object RegExp]", H = "[object Set]", $ = "[object String]", z = "[object Symbol]", W = "[object WeakMap]", C = "[object ArrayBuffer]", I = "[object DataView]", k = "[object Float32Array]", D = "[object Float64Array]", K = "[object Int8Array]", X = "[object Int16Array]", Y = "[object Int32Array]", re = "[object Uint8Array]", ue = "[object Uint8ClampedArray]", ne = "[object Uint16Array]", te = "[object Uint32Array]", Z = {};
4460
+ Z[x] = Z[q] = Z[C] = Z[I] = Z[R] = Z[O] = Z[k] = Z[D] = Z[K] = Z[X] = Z[Y] = Z[B] = Z[F] = Z[j] = Z[P] = Z[H] = Z[$] = Z[z] = Z[re] = Z[ue] = Z[ne] = Z[te] = !0, Z[T] = Z[A] = Z[W] = !1;
4461
4461
  function he(V, U, le, Te, De, Ee) {
4462
4462
  var pe, Se = U & E, Oe = U & S, ze = U & N;
4463
4463
  if (le && (pe = De ? le(V, Te, De, Ee) : le(V)), pe !== void 0)
@@ -4469,11 +4469,11 @@ function sv() {
4469
4469
  if (pe = h(V), !Se)
4470
4470
  return o(V, pe);
4471
4471
  } else {
4472
- var qe = l(V), je = qe == A || qe == L;
4472
+ var qe = l(V), Ge = qe == A || qe == L;
4473
4473
  if (g(V))
4474
4474
  return i(V, Se);
4475
- if (qe == G || qe == x || je && !De) {
4476
- if (pe = Oe || je ? {} : m(V), !Se)
4475
+ if (qe == j || qe == x || Ge && !De) {
4476
+ if (pe = Oe || Ge ? {} : m(V), !Se)
4477
4477
  return Oe ? c(V, a(pe, V)) : s(V, n(pe, V));
4478
4478
  } else {
4479
4479
  if (!Z[qe])
@@ -4555,7 +4555,7 @@ var Pa, _l;
4555
4555
  function Q_() {
4556
4556
  if (_l) return Pa;
4557
4557
  _l = 1;
4558
- var e = /* @__PURE__ */ Ge();
4558
+ var e = /* @__PURE__ */ je();
4559
4559
  function t(r, n) {
4560
4560
  return function(a, i) {
4561
4561
  if (a == null)
@@ -4642,9 +4642,9 @@ function r0() {
4642
4642
  }
4643
4643
  return za = e, za;
4644
4644
  }
4645
- var ja, Al;
4645
+ var Ga, Al;
4646
4646
  function lv() {
4647
- if (Al) return ja;
4647
+ if (Al) return Ga;
4648
4648
  Al = 1;
4649
4649
  var e = /* @__PURE__ */ bu(), t = /* @__PURE__ */ t0(), r = /* @__PURE__ */ r0();
4650
4650
  function n(a) {
@@ -4652,11 +4652,11 @@ function lv() {
4652
4652
  for (this.__data__ = new e(); ++i < o; )
4653
4653
  this.add(a[i]);
4654
4654
  }
4655
- return n.prototype.add = n.prototype.push = t, n.prototype.has = r, ja = n, ja;
4655
+ return n.prototype.add = n.prototype.push = t, n.prototype.has = r, Ga = n, Ga;
4656
4656
  }
4657
- var Ga, Il;
4657
+ var ja, Il;
4658
4658
  function n0() {
4659
- if (Il) return Ga;
4659
+ if (Il) return ja;
4660
4660
  Il = 1;
4661
4661
  function e(t, r) {
4662
4662
  for (var n = -1, a = t == null ? 0 : t.length; ++n < a; )
@@ -4664,7 +4664,7 @@ function n0() {
4664
4664
  return !0;
4665
4665
  return !1;
4666
4666
  }
4667
- return Ga = e, Ga;
4667
+ return ja = e, ja;
4668
4668
  }
4669
4669
  var Va, Ml;
4670
4670
  function fv() {
@@ -4923,10 +4923,10 @@ function vv() {
4923
4923
  }
4924
4924
  return ri = e, ri;
4925
4925
  }
4926
- var ni, jl;
4926
+ var ni, Gl;
4927
4927
  function d0() {
4928
- if (jl) return ni;
4929
- jl = 1;
4928
+ if (Gl) return ni;
4929
+ Gl = 1;
4930
4930
  var e = /* @__PURE__ */ u0(), t = /* @__PURE__ */ c0(), r = /* @__PURE__ */ vv();
4931
4931
  function n(a) {
4932
4932
  var i = t(a);
@@ -4936,10 +4936,10 @@ function d0() {
4936
4936
  }
4937
4937
  return ni = n, ni;
4938
4938
  }
4939
- var ai, Gl;
4939
+ var ai, jl;
4940
4940
  function St() {
4941
- if (Gl) return ai;
4942
- Gl = 1;
4941
+ if (jl) return ai;
4942
+ jl = 1;
4943
4943
  var e = /* @__PURE__ */ ot(), t = /* @__PURE__ */ $e(), r = "[object Symbol]";
4944
4944
  function n(a) {
4945
4945
  return typeof a == "symbol" || t(a) && e(a) == r;
@@ -5215,7 +5215,7 @@ var Ni, pf;
5215
5215
  function E0() {
5216
5216
  if (pf) return Ni;
5217
5217
  pf = 1;
5218
- var e = /* @__PURE__ */ Su(), t = /* @__PURE__ */ wt(), r = /* @__PURE__ */ Pt(), n = /* @__PURE__ */ ge(), a = /* @__PURE__ */ Ge(), i = /* @__PURE__ */ Et(), o = /* @__PURE__ */ dr(), s = /* @__PURE__ */ kt(), c = "[object Map]", d = "[object Set]", u = Object.prototype, l = u.hasOwnProperty;
5218
+ var e = /* @__PURE__ */ Su(), t = /* @__PURE__ */ wt(), r = /* @__PURE__ */ Pt(), n = /* @__PURE__ */ ge(), a = /* @__PURE__ */ je(), i = /* @__PURE__ */ Et(), o = /* @__PURE__ */ dr(), s = /* @__PURE__ */ kt(), c = "[object Map]", d = "[object Set]", u = Object.prototype, l = u.hasOwnProperty;
5219
5219
  function h(f) {
5220
5220
  if (f == null)
5221
5221
  return !0;
@@ -5246,7 +5246,7 @@ var Ai, vf;
5246
5246
  function xv() {
5247
5247
  if (vf) return Ai;
5248
5248
  vf = 1;
5249
- var e = /* @__PURE__ */ fr(), t = /* @__PURE__ */ Ge();
5249
+ var e = /* @__PURE__ */ fr(), t = /* @__PURE__ */ je();
5250
5250
  function r(n, a) {
5251
5251
  var i = -1, o = t(n) ? Array(n.length) : [];
5252
5252
  return e(n, function(s, c, d) {
@@ -5353,7 +5353,7 @@ var Fi, qf;
5353
5353
  function A0() {
5354
5354
  if (qf) return Fi;
5355
5355
  qf = 1;
5356
- var e = /* @__PURE__ */ Su(), t = /* @__PURE__ */ wt(), r = /* @__PURE__ */ Ge(), n = /* @__PURE__ */ x0(), a = /* @__PURE__ */ R0(), i = "[object Map]", o = "[object Set]";
5356
+ var e = /* @__PURE__ */ Su(), t = /* @__PURE__ */ wt(), r = /* @__PURE__ */ je(), n = /* @__PURE__ */ x0(), a = /* @__PURE__ */ R0(), i = "[object Map]", o = "[object Set]";
5357
5357
  function s(c) {
5358
5358
  if (c == null)
5359
5359
  return 0;
@@ -5406,9 +5406,9 @@ function Tu() {
5406
5406
  }
5407
5407
  return zi = r, zi;
5408
5408
  }
5409
- var ji, If;
5409
+ var Gi, If;
5410
5410
  function T0() {
5411
- if (If) return ji;
5411
+ if (If) return Gi;
5412
5412
  If = 1;
5413
5413
  function e(t, r, n) {
5414
5414
  switch (n.length) {
@@ -5423,11 +5423,11 @@ function T0() {
5423
5423
  }
5424
5424
  return t.apply(r, n);
5425
5425
  }
5426
- return ji = e, ji;
5426
+ return Gi = e, Gi;
5427
5427
  }
5428
- var Gi, Mf;
5428
+ var ji, Mf;
5429
5429
  function Nv() {
5430
- if (Mf) return Gi;
5430
+ if (Mf) return ji;
5431
5431
  Mf = 1;
5432
5432
  var e = /* @__PURE__ */ T0(), t = Math.max;
5433
5433
  function r(n, a, i) {
@@ -5440,7 +5440,7 @@ function Nv() {
5440
5440
  return u[a] = i(d), e(n, this, u);
5441
5441
  };
5442
5442
  }
5443
- return Gi = r, Gi;
5443
+ return ji = r, ji;
5444
5444
  }
5445
5445
  var Vi, Tf;
5446
5446
  function O0() {
@@ -5566,19 +5566,19 @@ function H0() {
5566
5566
  }
5567
5567
  return to = e, to;
5568
5568
  }
5569
- var ro, jf;
5569
+ var ro, Gf;
5570
5570
  function $0() {
5571
- if (jf) return ro;
5572
- jf = 1;
5571
+ if (Gf) return ro;
5572
+ Gf = 1;
5573
5573
  var e = /* @__PURE__ */ rv(), t = /* @__PURE__ */ H0(), r = /* @__PURE__ */ Iu(), n = 1 / 0, a = e && 1 / r(new e([, -0]))[1] == n ? function(i) {
5574
5574
  return new e(i);
5575
5575
  } : t;
5576
5576
  return ro = a, ro;
5577
5577
  }
5578
- var no, Gf;
5578
+ var no, jf;
5579
5579
  function z0() {
5580
- if (Gf) return no;
5581
- Gf = 1;
5580
+ if (jf) return no;
5581
+ jf = 1;
5582
5582
  var e = /* @__PURE__ */ lv(), t = /* @__PURE__ */ B0(), r = /* @__PURE__ */ F0(), n = /* @__PURE__ */ fv(), a = /* @__PURE__ */ $0(), i = /* @__PURE__ */ Iu(), o = 200;
5583
5583
  function s(c, d, u) {
5584
5584
  var l = -1, h = t, f = c.length, m = !0, p = [], g = p;
@@ -5609,14 +5609,14 @@ var ao, Vf;
5609
5609
  function Iv() {
5610
5610
  if (Vf) return ao;
5611
5611
  Vf = 1;
5612
- var e = /* @__PURE__ */ Ge(), t = /* @__PURE__ */ $e();
5612
+ var e = /* @__PURE__ */ je(), t = /* @__PURE__ */ $e();
5613
5613
  function r(n) {
5614
5614
  return t(n) && e(n);
5615
5615
  }
5616
5616
  return ao = r, ao;
5617
5617
  }
5618
5618
  var io, Uf;
5619
- function j0() {
5619
+ function G0() {
5620
5620
  if (Uf) return io;
5621
5621
  Uf = 1;
5622
5622
  var e = /* @__PURE__ */ Tu(), t = /* @__PURE__ */ vr(), r = /* @__PURE__ */ z0(), n = /* @__PURE__ */ Iv(), a = t(function(i) {
@@ -5625,7 +5625,7 @@ function j0() {
5625
5625
  return io = a, io;
5626
5626
  }
5627
5627
  var oo, Kf;
5628
- function G0() {
5628
+ function j0() {
5629
5629
  if (Kf) return oo;
5630
5630
  Kf = 1;
5631
5631
  var e = /* @__PURE__ */ hr();
@@ -5640,7 +5640,7 @@ var so, Wf;
5640
5640
  function Mv() {
5641
5641
  if (Wf) return so;
5642
5642
  Wf = 1;
5643
- var e = /* @__PURE__ */ G0(), t = /* @__PURE__ */ Qe();
5643
+ var e = /* @__PURE__ */ j0(), t = /* @__PURE__ */ Qe();
5644
5644
  function r(n) {
5645
5645
  return n == null ? [] : e(n, t(n));
5646
5646
  }
@@ -5668,7 +5668,7 @@ function Me() {
5668
5668
  reduce: /* @__PURE__ */ qv(),
5669
5669
  size: /* @__PURE__ */ A0(),
5670
5670
  transform: /* @__PURE__ */ I0(),
5671
- union: /* @__PURE__ */ j0(),
5671
+ union: /* @__PURE__ */ G0(),
5672
5672
  values: /* @__PURE__ */ Mv()
5673
5673
  };
5674
5674
  } catch {
@@ -6302,7 +6302,7 @@ var Mo, mh;
6302
6302
  function mr() {
6303
6303
  if (mh) return Mo;
6304
6304
  mh = 1;
6305
- var e = /* @__PURE__ */ bt(), t = /* @__PURE__ */ Ge(), r = /* @__PURE__ */ ur(), n = /* @__PURE__ */ Ie();
6305
+ var e = /* @__PURE__ */ bt(), t = /* @__PURE__ */ je(), r = /* @__PURE__ */ ur(), n = /* @__PURE__ */ Ie();
6306
6306
  function a(i, o, s) {
6307
6307
  if (!n(s))
6308
6308
  return !1;
@@ -6331,7 +6331,7 @@ var Oo, bh;
6331
6331
  function oE() {
6332
6332
  if (bh) return Oo;
6333
6333
  bh = 1;
6334
- var e = /* @__PURE__ */ Ve(), t = /* @__PURE__ */ Ge(), r = /* @__PURE__ */ Qe();
6334
+ var e = /* @__PURE__ */ Ve(), t = /* @__PURE__ */ je(), r = /* @__PURE__ */ Qe();
6335
6335
  function n(a) {
6336
6336
  return function(i, o, s) {
6337
6337
  var c = Object(i);
@@ -6460,19 +6460,19 @@ function hE() {
6460
6460
  }
6461
6461
  return zo = n, zo;
6462
6462
  }
6463
- var jo, Ah;
6463
+ var Go, Ah;
6464
6464
  function pE() {
6465
- if (Ah) return jo;
6465
+ if (Ah) return Go;
6466
6466
  Ah = 1;
6467
6467
  function e(t) {
6468
6468
  var r = t == null ? 0 : t.length;
6469
6469
  return r ? t[r - 1] : void 0;
6470
6470
  }
6471
- return jo = e, jo;
6471
+ return Go = e, Go;
6472
6472
  }
6473
- var Go, Ih;
6473
+ var jo, Ih;
6474
6474
  function gE() {
6475
- if (Ih) return Go;
6475
+ if (Ih) return jo;
6476
6476
  Ih = 1;
6477
6477
  var e = /* @__PURE__ */ or(), t = /* @__PURE__ */ Au(), r = /* @__PURE__ */ Ve();
6478
6478
  function n(a, i) {
@@ -6481,7 +6481,7 @@ function gE() {
6481
6481
  e(o, c, i(s, c, d));
6482
6482
  }), o;
6483
6483
  }
6484
- return Go = n, Go;
6484
+ return jo = n, jo;
6485
6485
  }
6486
6486
  var Vo, Mh;
6487
6487
  function Pu() {
@@ -6635,20 +6635,20 @@ function $v() {
6635
6635
  }
6636
6636
  return rs = e, rs;
6637
6637
  }
6638
- var ns, jh;
6638
+ var ns, Gh;
6639
6639
  function xE() {
6640
- if (jh) return ns;
6641
- jh = 1;
6640
+ if (Gh) return ns;
6641
+ Gh = 1;
6642
6642
  var e = /* @__PURE__ */ Pu(), t = /* @__PURE__ */ $v(), r = /* @__PURE__ */ ct();
6643
6643
  function n(a) {
6644
6644
  return a && a.length ? e(a, r, t) : void 0;
6645
6645
  }
6646
6646
  return ns = n, ns;
6647
6647
  }
6648
- var as, Gh;
6648
+ var as, jh;
6649
6649
  function CE() {
6650
- if (Gh) return as;
6651
- Gh = 1;
6650
+ if (jh) return as;
6651
+ jh = 1;
6652
6652
  var e = /* @__PURE__ */ Pu(), t = /* @__PURE__ */ Ve(), r = /* @__PURE__ */ $v();
6653
6653
  function n(a, i) {
6654
6654
  return a && a.length ? e(a, t(i, 2), r) : void 0;
@@ -6922,7 +6922,7 @@ function ce() {
6922
6922
  return e || (e = window._), ws = e, ws;
6923
6923
  }
6924
6924
  var Ss, cp;
6925
- function jE() {
6925
+ function GE() {
6926
6926
  if (cp) return Ss;
6927
6927
  cp = 1, Ss = e;
6928
6928
  function e() {
@@ -6951,10 +6951,10 @@ function jE() {
6951
6951
  return Ss;
6952
6952
  }
6953
6953
  var xs, dp;
6954
- function GE() {
6954
+ function jE() {
6955
6955
  if (dp) return xs;
6956
6956
  dp = 1;
6957
- var e = /* @__PURE__ */ ce(), t = ke().Graph, r = /* @__PURE__ */ jE();
6957
+ var e = /* @__PURE__ */ ce(), t = ke().Graph, r = /* @__PURE__ */ GE();
6958
6958
  xs = a;
6959
6959
  var n = e.constant(1);
6960
6960
  function a(d, u) {
@@ -7015,7 +7015,7 @@ var Cs, lp;
7015
7015
  function VE() {
7016
7016
  if (lp) return Cs;
7017
7017
  lp = 1;
7018
- var e = /* @__PURE__ */ ce(), t = /* @__PURE__ */ GE();
7018
+ var e = /* @__PURE__ */ ce(), t = /* @__PURE__ */ jE();
7019
7019
  Cs = {
7020
7020
  run: r,
7021
7021
  undo: a
@@ -7841,12 +7841,12 @@ function i1() {
7841
7841
  }
7842
7842
  return zs;
7843
7843
  }
7844
- var js, Ap;
7844
+ var Gs, Ap;
7845
7845
  function o1() {
7846
- if (Ap) return js;
7846
+ if (Ap) return Gs;
7847
7847
  Ap = 1;
7848
7848
  var e = /* @__PURE__ */ ce();
7849
- js = t;
7849
+ Gs = t;
7850
7850
  function t(r, n, a) {
7851
7851
  var i = {}, o;
7852
7852
  e.forEach(a, function(s) {
@@ -7859,14 +7859,14 @@ function o1() {
7859
7859
  }
7860
7860
  });
7861
7861
  }
7862
- return js;
7862
+ return Gs;
7863
7863
  }
7864
- var Gs, Ip;
7864
+ var js, Ip;
7865
7865
  function s1() {
7866
- if (Ip) return Gs;
7866
+ if (Ip) return js;
7867
7867
  Ip = 1;
7868
7868
  var e = /* @__PURE__ */ ce(), t = /* @__PURE__ */ QE(), r = /* @__PURE__ */ e1(), n = /* @__PURE__ */ a1(), a = /* @__PURE__ */ i1(), i = /* @__PURE__ */ o1(), o = ke().Graph, s = /* @__PURE__ */ xe();
7869
- Gs = c;
7869
+ js = c;
7870
7870
  function c(h) {
7871
7871
  var f = s.maxRank(h), m = d(h, e.range(1, f + 1), "inEdges"), p = d(h, e.range(f - 1, -1, -1), "outEdges"), g = t(h);
7872
7872
  l(h, g);
@@ -7898,7 +7898,7 @@ function s1() {
7898
7898
  });
7899
7899
  });
7900
7900
  }
7901
- return Gs;
7901
+ return js;
7902
7902
  }
7903
7903
  var Vs, Mp;
7904
7904
  function u1() {
@@ -7925,8 +7925,8 @@ function u1() {
7925
7925
  var T = i(v, R), A = T ? v.node(T).order : x;
7926
7926
  (T || R === q) && (e.forEach(E.slice(N, O + 1), function(L) {
7927
7927
  e.forEach(v.predecessors(L), function(B) {
7928
- var F = v.node(B), G = F.order;
7929
- (G < S || A < G) && !(F.dummy && v.node(L).dummy) && o(b, B, L);
7928
+ var F = v.node(B), j = F.order;
7929
+ (j < S || A < j) && !(F.dummy && v.node(L).dummy) && o(b, B, L);
7930
7930
  });
7931
7931
  }), N = O + 1, S = A);
7932
7932
  }), E;
@@ -8202,7 +8202,7 @@ function d1() {
8202
8202
  }), I(" positionSelfEdges", function() {
8203
8203
  $(C);
8204
8204
  }), I(" removeBorderNodes", function() {
8205
- G(C);
8205
+ j(C);
8206
8206
  }), I(" normalize.undo", function() {
8207
8207
  r.undo(C);
8208
8208
  }), I(" fixupEdgeLabelCoords", function() {
@@ -8332,7 +8332,7 @@ function d1() {
8332
8332
  k.reversed && k.points.reverse();
8333
8333
  });
8334
8334
  }
8335
- function G(C) {
8335
+ function j(C) {
8336
8336
  e.forEach(C.nodes(), function(I) {
8337
8337
  if (C.children(I).length) {
8338
8338
  var k = C.node(I), D = C.node(k.borderTop), K = C.node(k.borderBottom), X = C.node(e.last(k.borderLeft)), Y = C.node(e.last(k.borderRight));
@@ -8482,29 +8482,29 @@ function v1(e, t, r = {}) {
8482
8482
  function m1(e) {
8483
8483
  switch (e) {
8484
8484
  case "TB":
8485
- return j.Top;
8485
+ return G.Top;
8486
8486
  case "BT":
8487
- return j.Bottom;
8487
+ return G.Bottom;
8488
8488
  case "LR":
8489
- return j.Left;
8489
+ return G.Left;
8490
8490
  case "RL":
8491
- return j.Right;
8491
+ return G.Right;
8492
8492
  default:
8493
- return j.Top;
8493
+ return G.Top;
8494
8494
  }
8495
8495
  }
8496
8496
  function y1(e) {
8497
8497
  switch (e) {
8498
8498
  case "TB":
8499
- return j.Bottom;
8499
+ return G.Bottom;
8500
8500
  case "BT":
8501
- return j.Top;
8501
+ return G.Top;
8502
8502
  case "LR":
8503
- return j.Right;
8503
+ return G.Right;
8504
8504
  case "RL":
8505
- return j.Left;
8505
+ return G.Left;
8506
8506
  default:
8507
- return j.Bottom;
8507
+ return G.Bottom;
8508
8508
  }
8509
8509
  }
8510
8510
  const b1 = {
@@ -8530,7 +8530,7 @@ function q1({
8530
8530
  }, []);
8531
8531
  const { nodes: p, edges: g } = Ce(() => {
8532
8532
  if (!o) return { nodes: [], edges: [] };
8533
- const F = [], G = [];
8533
+ const F = [], j = [];
8534
8534
  return o.cubes.forEach((P, H) => {
8535
8535
  F.push({
8536
8536
  id: P.name,
@@ -8551,7 +8551,7 @@ function q1({
8551
8551
  if (H.relationship === "belongsTo")
8552
8552
  return;
8553
8553
  const z = `${P.name}-${H.targetCube}-${$}`;
8554
- G.push({
8554
+ j.push({
8555
8555
  id: z,
8556
8556
  source: P.name,
8557
8557
  target: H.targetCube,
@@ -8567,18 +8567,18 @@ function q1({
8567
8567
  }
8568
8568
  });
8569
8569
  });
8570
- }), { nodes: F, edges: G };
8570
+ }), { nodes: F, edges: j };
8571
8571
  }, [o, t, r, d]), v = l || Object.keys(d).length === 0, { nodes: y, edges: b } = v1(p, g, {
8572
8572
  direction: "LR",
8573
8573
  nodeWidth: 320,
8574
8574
  nodeHeight: 220,
8575
8575
  nodeSep: 100,
8576
8576
  rankSep: 200
8577
- }), _ = Ce(() => (v ? y : p).map((G) => ({
8578
- ...G,
8577
+ }), _ = Ce(() => (v ? y : p).map((j) => ({
8578
+ ...j,
8579
8579
  data: {
8580
- ...G.data,
8581
- isHighlighted: n.includes(G.id),
8580
+ ...j.data,
8581
+ isHighlighted: n.includes(j.id),
8582
8582
  highlightedFields: a,
8583
8583
  searchTerm: i
8584
8584
  }
@@ -8612,7 +8612,7 @@ function q1({
8612
8612
  return u(H), P;
8613
8613
  });
8614
8614
  }, [N, S]), T = oe(
8615
- (F) => q((G) => ng(F, G)),
8615
+ (F) => q((j) => ng(F, j)),
8616
8616
  [q]
8617
8617
  ), A = oe((F) => {
8618
8618
  F.preventDefault(), F.stopPropagation(), console.log("Context menu triggered at:", F.clientX, F.clientY), m({
@@ -8653,7 +8653,7 @@ function q1({
8653
8653
  onPaneContextMenu: A,
8654
8654
  onPaneClick: L,
8655
8655
  children: [
8656
- /* @__PURE__ */ J(Gb, {}),
8656
+ /* @__PURE__ */ J(jb, {}),
8657
8657
  /* @__PURE__ */ J(
8658
8658
  Db,
8659
8659
  {
@@ -8704,4 +8704,4 @@ export {
8704
8704
  q1 as CubeRelationshipDiagram,
8705
8705
  q1 as default
8706
8706
  };
8707
- //# sourceMappingURL=index-DpEuGmcW.js.map
8707
+ //# sourceMappingURL=index-Cn50vSlx.js.map