@stonecrop/node-editor 0.4.35 → 0.4.36

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as me, createPropsRestProxy as yr, toRef as be, ref as ge, computed as ne, onMounted as Ue, createElementBlock as he, openBlock as oe, normalizeClass as dt, unref as J, renderSlot as qe, h as pe, getCurrentScope as ii, inject as wt, effectScope as ri, watch as ve, provide as ft, getCurrentInstance as Bt, resolveComponent as li, nextTick as $e, createBlock as Re, Teleport as _r, useSlots as wr, onUnmounted as br, createVNode as Me, withCtx as ht, createElementVNode as _e, useAttrs as Er, Fragment as Te, createCommentVNode as Ne, mergeProps as en, reactive as xr, onScopeDispose as Wt, shallowRef as tn, toValue as ce, onBeforeMount as Sr, renderList as eo, normalizeStyle as He, onBeforeUnmount as to, isMemoSame as Nr, toDisplayString as gt, resolveDynamicComponent as Cr, createTextVNode as ai, isRef as no, toRefs as Mr, customRef as Ir, markRaw as Mt, readonly as kr, useTemplateRef as si, withDirectives as ui, withKeys as ci, vModelText as di, withModifiers as Pr, mergeModels as po, useModel as $r } from "vue";
1
+ import { defineComponent as me, createPropsRestProxy as yr, toRef as be, ref as ge, computed as ne, onMounted as Ue, createElementBlock as he, openBlock as oe, normalizeClass as dt, unref as J, renderSlot as qe, h as pe, getCurrentScope as ii, inject as _t, effectScope as ri, watch as ve, provide as ft, getCurrentInstance as Bt, resolveComponent as li, nextTick as $e, createBlock as Re, Teleport as wr, useSlots as _r, onUnmounted as br, createVNode as Me, withCtx as ht, createElementVNode as we, useAttrs as Er, Fragment as Te, createCommentVNode as Ne, mergeProps as en, reactive as xr, onScopeDispose as Wt, shallowRef as tn, toValue as ce, onBeforeMount as Sr, renderList as eo, normalizeStyle as He, onBeforeUnmount as to, isMemoSame as Nr, toDisplayString as gt, resolveDynamicComponent as Cr, createTextVNode as ai, isRef as no, toRefs as Mr, customRef as Ir, markRaw as Mt, readonly as kr, useTemplateRef as si, withDirectives as ui, withKeys as ci, vModelText as di, withModifiers as Pr, mergeModels as po, useModel as $r } from "vue";
2
2
  function hn(e) {
3
3
  return ii() ? (Wt(e), !0) : !1;
4
4
  }
@@ -90,11 +90,11 @@ function Hr(e, t = {}) {
90
90
  function Vn(e, t = !1) {
91
91
  function n(d, { flush: f = "sync", deep: g = !1, timeout: x, throwOnTimeout: E } = {}) {
92
92
  let S = null;
93
- const M = [new Promise((_) => {
93
+ const M = [new Promise((w) => {
94
94
  S = ve(
95
95
  e,
96
96
  (N) => {
97
- d(N) !== t && (S?.(), _(N));
97
+ d(N) !== t && (S?.(), w(N));
98
98
  },
99
99
  {
100
100
  flush: f,
@@ -112,7 +112,7 @@ function Vn(e, t = !1) {
112
112
  return n((N) => N === d, f);
113
113
  const { flush: g = "sync", deep: x = !1, timeout: E, throwOnTimeout: S } = f ?? {};
114
114
  let C = null;
115
- const _ = [new Promise((N) => {
115
+ const w = [new Promise((N) => {
116
116
  C = ve(
117
117
  [e, d],
118
118
  ([z, Y]) => {
@@ -125,9 +125,9 @@ function Vn(e, t = !1) {
125
125
  }
126
126
  );
127
127
  })];
128
- return E != null && _.push(
128
+ return E != null && w.push(
129
129
  mo(E, S).then(() => Ye(e)).finally(() => (C?.(), Ye(e)))
130
- ), Promise.race(_);
130
+ ), Promise.race(w);
131
131
  }
132
132
  function i(d) {
133
133
  return n((f) => !!f, d);
@@ -239,11 +239,11 @@ function Cn(e, t, n, o = {}) {
239
239
  } = o, g = Bt(), x = n || g?.emit || ((i = g?.$emit) == null ? void 0 : i.bind(g)) || ((l = (r = g?.proxy) == null ? void 0 : r.$emit) == null ? void 0 : l.bind(g?.proxy));
240
240
  let E = u;
241
241
  t || (t = "modelValue"), E = E || `update:${t.toString()}`;
242
- const S = (_) => a ? typeof a == "function" ? a(_) : Yr(_) : _, C = () => Dr(e[t]) ? S(e[t]) : d, M = (_) => {
243
- f ? f(_) && x(E, _) : x(E, _);
242
+ const S = (w) => a ? typeof a == "function" ? a(w) : Yr(w) : w, C = () => Dr(e[t]) ? S(e[t]) : d, M = (w) => {
243
+ f ? f(w) && x(E, w) : x(E, w);
244
244
  };
245
245
  if (s) {
246
- const _ = C(), N = ge(_);
246
+ const w = C(), N = ge(w);
247
247
  let z = !1;
248
248
  return ve(
249
249
  () => e[t],
@@ -262,8 +262,8 @@ function Cn(e, t, n, o = {}) {
262
262
  get() {
263
263
  return C();
264
264
  },
265
- set(_) {
266
- M(_);
265
+ set(w) {
266
+ M(w);
267
267
  }
268
268
  });
269
269
  }
@@ -302,10 +302,10 @@ Kt.prototype = gn.prototype = {
302
302
  throw new Error("invalid callback: " + t);
303
303
  for (; ++r < l; )
304
304
  if (i = (e = o[r]).type)
305
- n[i] = _o(n[i], e.name, t);
305
+ n[i] = wo(n[i], e.name, t);
306
306
  else if (t == null)
307
307
  for (i in n)
308
- n[i] = _o(n[i], e.name, null);
308
+ n[i] = wo(n[i], e.name, null);
309
309
  return this;
310
310
  },
311
311
  copy: function() {
@@ -335,7 +335,7 @@ function Ur(e, t) {
335
335
  if ((i = e[n]).name === t)
336
336
  return i.value;
337
337
  }
338
- function _o(e, t, n) {
338
+ function wo(e, t, n) {
339
339
  for (var o = 0, i = e.length; o < i; ++o)
340
340
  if (e[o].name === t) {
341
341
  e[o] = Gr, e = e.slice(0, o).concat(e.slice(o + 1));
@@ -344,7 +344,7 @@ function _o(e, t, n) {
344
344
  return n != null && e.push({ name: t, value: n }), e;
345
345
  }
346
346
  var Hn = "http://www.w3.org/1999/xhtml";
347
- const wo = {
347
+ const _o = {
348
348
  svg: "http://www.w3.org/2000/svg",
349
349
  xhtml: Hn,
350
350
  xlink: "http://www.w3.org/1999/xlink",
@@ -353,7 +353,7 @@ const wo = {
353
353
  };
354
354
  function vn(e) {
355
355
  var t = e += "", n = t.indexOf(":");
356
- return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)), wo.hasOwnProperty(t) ? { space: wo[t], local: e } : e;
356
+ return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)), _o.hasOwnProperty(t) ? { space: _o[t], local: e } : e;
357
357
  }
358
358
  function Zr(e) {
359
359
  return function() {
@@ -448,11 +448,11 @@ function ul(e) {
448
448
  (s = r[u]) && e.call(s, s.__data__, u, r) && a.push(s);
449
449
  return new Ie(o, this._parents);
450
450
  }
451
- function _i(e) {
451
+ function wi(e) {
452
452
  return new Array(e.length);
453
453
  }
454
454
  function cl() {
455
- return new Ie(this._enter || this._groups.map(_i), this._parents);
455
+ return new Ie(this._enter || this._groups.map(wi), this._parents);
456
456
  }
457
457
  function nn(e, t) {
458
458
  this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t;
@@ -503,9 +503,9 @@ function vl(e, t) {
503
503
  for (var r = i.length, l = new Array(r), a = new Array(r), s = new Array(r), u = 0; u < r; ++u) {
504
504
  var c = o[u], d = i[u], f = d.length, g = pl(e.call(c, c && c.__data__, u, o)), x = g.length, E = a[u] = new Array(x), S = l[u] = new Array(x), C = s[u] = new Array(f);
505
505
  n(c, d, E, S, C, g, t);
506
- for (var M = 0, _ = 0, N, z; M < x; ++M)
506
+ for (var M = 0, w = 0, N, z; M < x; ++M)
507
507
  if (N = E[M]) {
508
- for (M >= _ && (_ = M + 1); !(z = S[_]) && ++_ < x; )
508
+ for (M >= w && (w = M + 1); !(z = S[w]) && ++w < x; )
509
509
  ;
510
510
  N._next = z || null;
511
511
  }
@@ -516,13 +516,13 @@ function pl(e) {
516
516
  return typeof e == "object" && "length" in e ? e : Array.from(e);
517
517
  }
518
518
  function ml() {
519
- return new Ie(this._exit || this._groups.map(_i), this._parents);
519
+ return new Ie(this._exit || this._groups.map(wi), this._parents);
520
520
  }
521
521
  function yl(e, t, n) {
522
522
  var o = this.enter(), i = this, r = this.exit();
523
523
  return typeof e == "function" ? (o = e(o), o && (o = o.selection())) : o = o.append(e + ""), t != null && (i = t(i), i && (i = i.selection())), n == null ? r.remove() : n(r), o && i ? o.merge(i).order() : i;
524
524
  }
525
- function _l(e) {
525
+ function wl(e) {
526
526
  for (var t = e.selection ? e.selection() : e, n = this._groups, o = t._groups, i = n.length, r = o.length, l = Math.min(i, r), a = new Array(i), s = 0; s < l; ++s)
527
527
  for (var u = n[s], c = o[s], d = u.length, f = a[s] = new Array(d), g, x = 0; x < d; ++x)
528
528
  (g = u[x] || c[x]) && (f[x] = g);
@@ -530,7 +530,7 @@ function _l(e) {
530
530
  a[s] = n[s];
531
531
  return new Ie(a, this._parents);
532
532
  }
533
- function wl() {
533
+ function _l() {
534
534
  for (var e = this._groups, t = -1, n = e.length; ++t < n; )
535
535
  for (var o = e[t], i = o.length - 1, r = o[i], l; --i >= 0; )
536
536
  (l = o[i]) && (r && l.compareDocumentPosition(r) ^ 4 && r.parentNode.insertBefore(l, r), r = l);
@@ -622,7 +622,7 @@ function Ol(e, t) {
622
622
  }
623
623
  return this.each((t == null ? n.local ? Pl : kl : typeof t == "function" ? n.local ? Al : Dl : n.local ? Tl : $l)(n, t));
624
624
  }
625
- function wi(e) {
625
+ function _i(e) {
626
626
  return e.ownerDocument && e.ownerDocument.defaultView || e.document && e || e.defaultView;
627
627
  }
628
628
  function zl(e) {
@@ -645,7 +645,7 @@ function Rl(e, t, n) {
645
645
  return arguments.length > 1 ? this.each((t == null ? zl : typeof t == "function" ? Vl : Bl)(e, t, n ?? "")) : vt(this.node(), e);
646
646
  }
647
647
  function vt(e, t) {
648
- return e.style.getPropertyValue(t) || wi(e).getComputedStyle(e, null).getPropertyValue(t);
648
+ return e.style.getPropertyValue(t) || _i(e).getComputedStyle(e, null).getPropertyValue(t);
649
649
  }
650
650
  function Hl(e) {
651
651
  return function() {
@@ -837,7 +837,7 @@ function ya(e, t, n) {
837
837
  this.addEventListener(e.type, r, n), i = { type: e.type, name: e.name, value: t, listener: r, options: n }, o ? o.push(i) : this.__on = [i];
838
838
  };
839
839
  }
840
- function _a(e, t, n) {
840
+ function wa(e, t, n) {
841
841
  var o = pa(e + ""), i, r = o.length, l;
842
842
  if (arguments.length < 2) {
843
843
  var a = this.node().__on;
@@ -854,10 +854,10 @@ function _a(e, t, n) {
854
854
  return this;
855
855
  }
856
856
  function Ni(e, t, n) {
857
- var o = wi(e), i = o.CustomEvent;
857
+ var o = _i(e), i = o.CustomEvent;
858
858
  typeof i == "function" ? i = new i(t, n) : (i = o.document.createEvent("Event"), n ? (i.initEvent(t, n.bubbles, n.cancelable), i.detail = n.detail) : i.initEvent(t, !1, !1)), e.dispatchEvent(i);
859
859
  }
860
- function wa(e, t) {
860
+ function _a(e, t) {
861
861
  return function() {
862
862
  return Ni(this, e, t);
863
863
  };
@@ -868,7 +868,7 @@ function ba(e, t) {
868
868
  };
869
869
  }
870
870
  function Ea(e, t) {
871
- return this.each((typeof t == "function" ? ba : wa)(e, t));
871
+ return this.each((typeof t == "function" ? ba : _a)(e, t));
872
872
  }
873
873
  function* xa() {
874
874
  for (var e = this._groups, t = 0, n = e.length; t < n; ++t)
@@ -896,9 +896,9 @@ Ie.prototype = Vt.prototype = {
896
896
  enter: cl,
897
897
  exit: ml,
898
898
  join: yl,
899
- merge: _l,
899
+ merge: wl,
900
900
  selection: Sa,
901
- order: wl,
901
+ order: _l,
902
902
  sort: bl,
903
903
  call: xl,
904
904
  nodes: Sl,
@@ -919,7 +919,7 @@ Ie.prototype = Vt.prototype = {
919
919
  remove: ca,
920
920
  clone: ha,
921
921
  datum: ga,
922
- on: _a,
922
+ on: wa,
923
923
  dispatch: Ea,
924
924
  [Symbol.iterator]: xa
925
925
  };
@@ -1013,7 +1013,7 @@ function $a() {
1013
1013
  }
1014
1014
  function g(N, z) {
1015
1015
  if (!(c || !e.call(this, N, z))) {
1016
- var Y = _(this, t.call(this, N, z), N, z, "mouse");
1016
+ var Y = w(this, t.call(this, N, z), N, z, "mouse");
1017
1017
  Y && (ke(N.view).on("mousemove.drag", x, $t).on("mouseup.drag", E, $t), Mi(N.view), Mn(N), u = !1, a = N.clientX, s = N.clientY, Y("start", N));
1018
1018
  }
1019
1019
  }
@@ -1031,7 +1031,7 @@ function $a() {
1031
1031
  if (e.call(this, N, z)) {
1032
1032
  var Y = N.changedTouches, F = t.call(this, N, z), I = Y.length, T, O;
1033
1033
  for (T = 0; T < I; ++T)
1034
- (O = _(this, F, N, z, Y[T].identifier, Y[T])) && (Mn(N), O("start", N, Y[T]));
1034
+ (O = w(this, F, N, z, Y[T].identifier, Y[T])) && (Mn(N), O("start", N, Y[T]));
1035
1035
  }
1036
1036
  }
1037
1037
  function C(N) {
@@ -1046,8 +1046,8 @@ function $a() {
1046
1046
  }, 500), F = 0; F < Y; ++F)
1047
1047
  (I = i[z[F].identifier]) && (Mn(N), I("end", N, z[F]));
1048
1048
  }
1049
- function _(N, z, Y, F, I, T) {
1050
- var O = r.copy(), D = Oe(T || Y, z), w, Z, y;
1049
+ function w(N, z, Y, F, I, T) {
1050
+ var O = r.copy(), D = Oe(T || Y, z), _, Z, y;
1051
1051
  if ((y = n.call(N, new Ln("beforestart", {
1052
1052
  sourceEvent: Y,
1053
1053
  target: f,
@@ -1059,7 +1059,7 @@ function $a() {
1059
1059
  dy: 0,
1060
1060
  dispatch: O
1061
1061
  }), F)) != null)
1062
- return w = y.x - D[0] || 0, Z = y.y - D[1] || 0, function P(b, $, A) {
1062
+ return _ = y.x - D[0] || 0, Z = y.y - D[1] || 0, function P(b, $, A) {
1063
1063
  var V = D, B;
1064
1064
  switch (b) {
1065
1065
  case "start":
@@ -1080,7 +1080,7 @@ function $a() {
1080
1080
  target: f,
1081
1081
  identifier: I,
1082
1082
  active: B,
1083
- x: D[0] + w,
1083
+ x: D[0] + _,
1084
1084
  y: D[1] + Z,
1085
1085
  dx: D[0] - V[0],
1086
1086
  dy: D[1] - V[1],
@@ -1430,7 +1430,7 @@ function $i(e, t) {
1430
1430
  var n = t - e;
1431
1431
  return n ? Ga(e, n) : lo(isNaN(e) ? t : e);
1432
1432
  }
1433
- const ln = function e(t) {
1433
+ const ln = (function e(t) {
1434
1434
  var n = Ua(t);
1435
1435
  function o(i, r) {
1436
1436
  var l = n((i = Fn(i)).r, (r = Fn(r)).r), a = n(i.g, r.g), s = n(i.b, r.b), u = $i(i.opacity, r.opacity);
@@ -1439,7 +1439,7 @@ const ln = function e(t) {
1439
1439
  };
1440
1440
  }
1441
1441
  return o.gamma = e, o;
1442
- }(1);
1442
+ })(1);
1443
1443
  function Za(e, t) {
1444
1444
  t || (t = []);
1445
1445
  var n = e ? Math.min(t.length, e.length) : 0, o = t.slice(), i;
@@ -1579,7 +1579,7 @@ function rs(e) {
1579
1579
  function ls(e) {
1580
1580
  return ((e = Math.exp(2 * e)) - 1) / (e + 1);
1581
1581
  }
1582
- const qt = function e(t, n, o) {
1582
+ const qt = (function e(t, n, o) {
1583
1583
  function i(r, l) {
1584
1584
  var a = r[0], s = r[1], u = r[2], c = l[0], d = l[1], f = l[2], g = c - a, x = d - s, E = g * g + x * x, S, C;
1585
1585
  if (E < is)
@@ -1591,7 +1591,7 @@ const qt = function e(t, n, o) {
1591
1591
  ];
1592
1592
  };
1593
1593
  else {
1594
- var M = Math.sqrt(E), _ = (f * f - u * u + o * E) / (2 * u * n * M), N = (f * f - u * u - o * E) / (2 * f * n * M), z = Math.log(Math.sqrt(_ * _ + 1) - _), Y = Math.log(Math.sqrt(N * N + 1) - N);
1594
+ var M = Math.sqrt(E), w = (f * f - u * u + o * E) / (2 * u * n * M), N = (f * f - u * u - o * E) / (2 * f * n * M), z = Math.log(Math.sqrt(w * w + 1) - w), Y = Math.log(Math.sqrt(N * N + 1) - N);
1595
1595
  C = (Y - z) / t, S = function(F) {
1596
1596
  var I = F * C, T = Po(z), O = u / (n * M) * (T * ls(t * I + z) - rs(z));
1597
1597
  return [
@@ -1607,7 +1607,7 @@ const qt = function e(t, n, o) {
1607
1607
  var l = Math.max(1e-3, +r), a = l * l, s = a * a;
1608
1608
  return e(l, a, s);
1609
1609
  }, i;
1610
- }(Math.SQRT2, 2, 4);
1610
+ })(Math.SQRT2, 2, 4);
1611
1611
  var pt = 0, St = 0, Et = 0, Oi = 1e3, an, Nt, sn = 0, rt = 0, pn = 0, At = typeof performance == "object" && performance.now ? performance : Date, zi = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
1612
1612
  setTimeout(e, 17);
1613
1613
  };
@@ -1828,12 +1828,12 @@ function ys(e) {
1828
1828
  this.removeAttribute(e);
1829
1829
  };
1830
1830
  }
1831
- function _s(e) {
1831
+ function ws(e) {
1832
1832
  return function() {
1833
1833
  this.removeAttributeNS(e.space, e.local);
1834
1834
  };
1835
1835
  }
1836
- function ws(e, t, n) {
1836
+ function _s(e, t, n) {
1837
1837
  var o, i = n + "", r;
1838
1838
  return function() {
1839
1839
  var l = this.getAttribute(e);
@@ -1863,7 +1863,7 @@ function xs(e, t, n) {
1863
1863
  }
1864
1864
  function Ss(e, t) {
1865
1865
  var n = vn(e), o = n === "transform" ? os : Ri;
1866
- return this.attrTween(e, typeof t == "function" ? (n.local ? xs : Es)(n, o, uo(this, "attr." + e, t)) : t == null ? (n.local ? _s : ys)(n) : (n.local ? bs : ws)(n, o, t));
1866
+ return this.attrTween(e, typeof t == "function" ? (n.local ? xs : Es)(n, o, uo(this, "attr." + e, t)) : t == null ? (n.local ? ws : ys)(n) : (n.local ? bs : _s)(n, o, t));
1867
1867
  }
1868
1868
  function Ns(e, t) {
1869
1869
  return function(n) {
@@ -2275,10 +2275,10 @@ function Pn(e) {
2275
2275
  function xt(e) {
2276
2276
  e.preventDefault(), e.stopImmediatePropagation();
2277
2277
  }
2278
- function _u(e) {
2278
+ function wu(e) {
2279
2279
  return (!e.ctrlKey || e.type === "wheel") && !e.button;
2280
2280
  }
2281
- function wu() {
2281
+ function _u() {
2282
2282
  var e = this;
2283
2283
  return e instanceof SVGElement ? (e = e.ownerSVGElement || e, e.hasAttribute("viewBox") ? (e = e.viewBox.baseVal, [[e.x, e.y], [e.x + e.width, e.y + e.height]]) : [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]]) : [[0, 0], [e.clientWidth, e.clientHeight]];
2284
2284
  }
@@ -2299,9 +2299,9 @@ function xu(e, t, n) {
2299
2299
  );
2300
2300
  }
2301
2301
  function Su() {
2302
- var e = _u, t = wu, n = xu, o = bu, i = Eu, r = [0, 1 / 0], l = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], a = 250, s = qt, u = gn("start", "zoom", "end"), c, d, f, g = 500, x = 150, E = 0, S = 10;
2302
+ var e = wu, t = _u, n = xu, o = bu, i = Eu, r = [0, 1 / 0], l = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], a = 250, s = qt, u = gn("start", "zoom", "end"), c, d, f, g = 500, x = 150, E = 0, S = 10;
2303
2303
  function C(y) {
2304
- y.property("__zoom", Oo).on("wheel.zoom", I, { passive: !1 }).on("mousedown.zoom", T).on("dblclick.zoom", O).filter(i).on("touchstart.zoom", D).on("touchmove.zoom", w).on("touchend.zoom touchcancel.zoom", Z).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
2304
+ y.property("__zoom", Oo).on("wheel.zoom", I, { passive: !1 }).on("mousedown.zoom", T).on("dblclick.zoom", O).filter(i).on("touchstart.zoom", D).on("touchmove.zoom", _).on("touchend.zoom touchcancel.zoom", Z).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
2305
2305
  }
2306
2306
  C.transform = function(y, P, b, $) {
2307
2307
  var A = y.selection ? y.selection() : y;
@@ -2316,7 +2316,7 @@ function Su() {
2316
2316
  }, C.scaleTo = function(y, P, b, $) {
2317
2317
  C.transform(y, function() {
2318
2318
  var A = t.apply(this, arguments), V = this.__zoom, B = b == null ? N(A) : typeof b == "function" ? b.apply(this, arguments) : b, W = V.invert(B), j = typeof P == "function" ? P.apply(this, arguments) : P;
2319
- return n(_(M(V, j), B, W), A, l);
2319
+ return n(w(M(V, j), B, W), A, l);
2320
2320
  }, b, $);
2321
2321
  }, C.translateBy = function(y, P, b, $) {
2322
2322
  C.transform(y, function() {
@@ -2337,7 +2337,7 @@ function Su() {
2337
2337
  function M(y, P) {
2338
2338
  return P = Math.max(r[0], Math.min(r[1], P)), P === y.k ? y : new Ge(P, y.x, y.y);
2339
2339
  }
2340
- function _(y, P, b) {
2340
+ function w(y, P, b) {
2341
2341
  var $ = P[0] - b[0] * y.k, A = P[1] - b[1] * y.k;
2342
2342
  return $ === y.x && A === y.y ? y : new Ge(y.k, $, A);
2343
2343
  }
@@ -2407,7 +2407,7 @@ function Su() {
2407
2407
  return;
2408
2408
  b.mouse = [V, $.invert(V)], jt(this), b.start();
2409
2409
  }
2410
- xt(y), b.wheel = setTimeout(B, x), b.zoom("mouse", n(_(M($, A), b.mouse[0], b.mouse[1]), b.extent, l));
2410
+ xt(y), b.wheel = setTimeout(B, x), b.zoom("mouse", n(w(M($, A), b.mouse[0], b.mouse[1]), b.extent, l));
2411
2411
  function B() {
2412
2412
  b.wheel = null, b.end();
2413
2413
  }
@@ -2422,7 +2422,7 @@ function Su() {
2422
2422
  var G = H.clientX - B, q = H.clientY - W;
2423
2423
  $.moved = G * G + q * q > E;
2424
2424
  }
2425
- $.event(H).zoom("mouse", n(_($.that.__zoom, $.mouse[0] = Oe(H, b), $.mouse[1]), $.extent, l));
2425
+ $.event(H).zoom("mouse", n(w($.that.__zoom, $.mouse[0] = Oe(H, b), $.mouse[1]), $.extent, l));
2426
2426
  }
2427
2427
  function re(H) {
2428
2428
  A.on("mousemove.zoom mouseup.zoom", null), Ii(H.view, $.moved), xt(H), $.event(H).end();
@@ -2430,7 +2430,7 @@ function Su() {
2430
2430
  }
2431
2431
  function O(y, ...P) {
2432
2432
  if (e.apply(this, arguments)) {
2433
- var b = this.__zoom, $ = Oe(y.changedTouches ? y.changedTouches[0] : y, this), A = b.invert($), V = b.k * (y.shiftKey ? 0.5 : 2), B = n(_(M(b, V), $, A), t.apply(this, P), l);
2433
+ var b = this.__zoom, $ = Oe(y.changedTouches ? y.changedTouches[0] : y, this), A = b.invert($), V = b.k * (y.shiftKey ? 0.5 : 2), B = n(w(M(b, V), $, A), t.apply(this, P), l);
2434
2434
  xt(y), a > 0 ? ke(this).transition().duration(a).call(z, B, $, y) : ke(this).call(C.transform, B, $, y);
2435
2435
  }
2436
2436
  }
@@ -2444,7 +2444,7 @@ function Su() {
2444
2444
  }, g)), jt(this), A.start());
2445
2445
  }
2446
2446
  }
2447
- function w(y, ...P) {
2447
+ function _(y, ...P) {
2448
2448
  if (this.__zooming) {
2449
2449
  var b = Y(this, P).event(y), $ = y.changedTouches, A = $.length, V, B, W, j;
2450
2450
  for (xt(y), V = 0; V < A; ++V)
@@ -2456,7 +2456,7 @@ function Su() {
2456
2456
  W = b.touch0[0], j = b.touch0[1];
2457
2457
  else
2458
2458
  return;
2459
- b.zoom("touch", n(_(B, W, j), b.extent, l));
2459
+ b.zoom("touch", n(w(B, W, j), b.extent, l));
2460
2460
  }
2461
2461
  }
2462
2462
  function Z(y, ...P) {
@@ -2728,7 +2728,7 @@ function Ot({ x: e, y: t }, { x: n, y: o, zoom: i }, r = !1, l = [1, 1]) {
2728
2728
  x: (e - n) / i,
2729
2729
  y: (t - o) / i
2730
2730
  };
2731
- return r ? _n(a, l) : a;
2731
+ return r ? wn(a, l) : a;
2732
2732
  }
2733
2733
  function zu(e, t) {
2734
2734
  return {
@@ -3202,7 +3202,7 @@ function Uu(e) {
3202
3202
  height: ((n = e.dimensions) == null ? void 0 : n.height) ?? e.height ?? 0
3203
3203
  };
3204
3204
  }
3205
- function _n(e, t = [1, 1]) {
3205
+ function wn(e, t = [1, 1]) {
3206
3206
  return {
3207
3207
  x: t[0] * Math.round(e.x / t[0]),
3208
3208
  y: t[1] * Math.round(e.y / t[1])
@@ -3256,7 +3256,7 @@ function Zo(e, {
3256
3256
  flowId: s,
3257
3257
  isValidConnection: u = Zu
3258
3258
  }, c, d, f) {
3259
- const g = r === "target", x = t ? l.querySelector(`.${a}-flow__handle[data-id="${s}-${t?.nodeId}-${t?.id}-${t?.type}"]`) : null, { x: E, y: S } = Be(e), C = l.elementFromPoint(E, S), M = C?.classList.contains(`${a}-flow__handle`) ? C : x, _ = {
3259
+ const g = r === "target", x = t ? l.querySelector(`.${a}-flow__handle[data-id="${s}-${t?.nodeId}-${t?.id}-${t?.type}"]`) : null, { x: E, y: S } = Be(e), C = l.elementFromPoint(E, S), M = C?.classList.contains(`${a}-flow__handle`) ? C : x, w = {
3260
3260
  handleDomNode: M,
3261
3261
  isValid: !1,
3262
3262
  connection: null,
@@ -3265,23 +3265,23 @@ function Zo(e, {
3265
3265
  if (M) {
3266
3266
  const N = nr(void 0, M), z = M.getAttribute("data-nodeid"), Y = M.getAttribute("data-handleid"), F = M.classList.contains("connectable"), I = M.classList.contains("connectableend");
3267
3267
  if (!z || !N)
3268
- return _;
3268
+ return w;
3269
3269
  const T = {
3270
3270
  source: g ? z : o,
3271
3271
  sourceHandle: g ? Y : i,
3272
3272
  target: g ? o : z,
3273
3273
  targetHandle: g ? i : Y
3274
3274
  };
3275
- _.connection = T;
3275
+ w.connection = T;
3276
3276
  const D = F && I && (n === Je.Strict ? g && N === "source" || !g && N === "target" : z !== o || Y !== i);
3277
- _.isValid = D && u(T, {
3277
+ w.isValid = D && u(T, {
3278
3278
  nodes: d,
3279
3279
  edges: c,
3280
3280
  sourceNode: f(o),
3281
3281
  targetNode: f(z)
3282
- }), _.toHandle = t;
3282
+ }), w.toHandle = t;
3283
3283
  }
3284
- return _;
3284
+ return w;
3285
3285
  }
3286
3286
  function nr(e, t) {
3287
3287
  return e || (t?.classList.contains("target") ? "target" : t?.classList.contains("source") ? "source" : null);
@@ -3308,7 +3308,7 @@ const Jn = {
3308
3308
  [R.Top]: R.Bottom,
3309
3309
  [R.Bottom]: R.Top
3310
3310
  }, ec = ["production", "prod"];
3311
- function wn(e, ...t) {
3311
+ function _n(e, ...t) {
3312
3312
  or() && console.warn(`[Vue Flow]: ${e}`, ...t);
3313
3313
  }
3314
3314
  function or() {
@@ -3464,9 +3464,9 @@ function lr(e) {
3464
3464
  selectNodesOnDrag: S,
3465
3465
  removeSelectedElements: C,
3466
3466
  addSelectedNodes: M,
3467
- updateNodePositions: _,
3467
+ updateNodePositions: w,
3468
3468
  emits: N
3469
- } = we(), { onStart: z, onDrag: Y, onStop: F, onClick: I, el: T, disabled: O, id: D, selectable: w, dragHandle: Z } = e, y = tn(!1);
3469
+ } = _e(), { onStart: z, onDrag: Y, onStop: F, onClick: I, el: T, disabled: O, id: D, selectable: _, dragHandle: Z } = e, y = tn(!1);
3470
3470
  let P = [], b, $ = null, A = { x: void 0, y: void 0 }, V = { x: 0, y: 0 }, B = null, W = !1, j = 0, re = !1;
3471
3471
  const H = ac(), G = ({ x: Q, y: ie }) => {
3472
3472
  A = { x: Q, y: ie };
@@ -3474,13 +3474,13 @@ function lr(e) {
3474
3474
  if (P = P.map((v) => {
3475
3475
  const h = { x: Q - v.distance.x, y: ie - v.distance.y }, { computedPosition: m } = fo(
3476
3476
  v,
3477
- n.value ? _n(h, o.value) : h,
3477
+ n.value ? wn(h, o.value) : h,
3478
3478
  N.error,
3479
3479
  l.value,
3480
3480
  v.parentNode ? g(v.parentNode) : void 0
3481
3481
  );
3482
3482
  return le = le || v.position.x !== m.x || v.position.y !== m.y, v.position = m, v;
3483
- }), !!le && (_(P, !0, !0), y.value = !0, B)) {
3483
+ }), !!le && (w(P, !0, !0), y.value = !0, B)) {
3484
3484
  const [v, h] = Tn({
3485
3485
  id: D,
3486
3486
  dragItems: P,
@@ -3503,7 +3503,7 @@ function lr(e) {
3503
3503
  }, se = (Q, ie) => {
3504
3504
  W = !0;
3505
3505
  const le = g(D);
3506
- !S.value && !x.value && le && (le.selected || C()), le && ce(w) && S.value && Qn(
3506
+ !S.value && !x.value && le && (le.selected || C()), le && ce(_) && S.value && Qn(
3507
3507
  le,
3508
3508
  x.value,
3509
3509
  M,
@@ -3538,7 +3538,7 @@ function lr(e) {
3538
3538
  p !== 0 && p <= a.value && (I?.(le), ie = !0);
3539
3539
  }
3540
3540
  if (P.length && !ie) {
3541
- _(P, !1, !1);
3541
+ w(P, !1, !1);
3542
3542
  const [le, v] = Tn({
3543
3543
  id: D,
3544
3544
  dragItems: P,
@@ -3608,10 +3608,10 @@ function lc(e, t) {
3608
3608
  );
3609
3609
  }
3610
3610
  function ac() {
3611
- const { viewport: e, snapGrid: t, snapToGrid: n, vueFlowRef: o } = we();
3611
+ const { viewport: e, snapGrid: t, snapToGrid: n, vueFlowRef: o } = _e();
3612
3612
  return (i) => {
3613
3613
  var r;
3614
- const l = ((r = o.value) == null ? void 0 : r.getBoundingClientRect()) ?? { left: 0, top: 0 }, a = Xu(i) ? i.sourceEvent : i, { x: s, y: u } = Be(a, l), c = Ot({ x: s, y: u }, e.value), { x: d, y: f } = n.value ? _n(c, t.value) : c;
3614
+ const l = ((r = o.value) == null ? void 0 : r.getBoundingClientRect()) ?? { left: 0, top: 0 }, a = Xu(i) ? i.sourceEvent : i, { x: s, y: u } = Be(a, l), c = Ot({ x: s, y: u }, e.value), { x: d, y: f } = n.value ? wn(c, t.value) : c;
3615
3615
  return {
3616
3616
  xSnapped: d,
3617
3617
  ySnapped: f,
@@ -3644,7 +3644,7 @@ function ar({
3644
3644
  findNode: S,
3645
3645
  panBy: C,
3646
3646
  startConnection: M,
3647
- updateConnection: _,
3647
+ updateConnection: w,
3648
3648
  endConnection: N,
3649
3649
  emits: z,
3650
3650
  viewport: Y,
@@ -3652,8 +3652,8 @@ function ar({
3652
3652
  nodes: I,
3653
3653
  isValidConnection: T,
3654
3654
  nodeLookup: O
3655
- } = we();
3656
- let D = null, w = !1, Z = null;
3655
+ } = _e();
3656
+ let D = null, _ = !1, Z = null;
3657
3657
  function y(b) {
3658
3658
  var $;
3659
3659
  const A = ce(n) === "target", V = ho(b), B = Bo(b.target);
@@ -3683,19 +3683,19 @@ function ar({
3683
3683
  I.value,
3684
3684
  S
3685
3685
  );
3686
- Z = ae.handleDomNode, D = ae.connection, w = Qu(!!G, ae.isValid);
3686
+ Z = ae.handleDomNode, D = ae.connection, _ = Qu(!!G, ae.isValid);
3687
3687
  const de = {
3688
3688
  // from stays the same
3689
3689
  ...U,
3690
- isValid: w,
3691
- to: ae.toHandle && w ? qn({ x: ae.toHandle.x, y: ae.toHandle.y }, Y.value) : v,
3690
+ isValid: _,
3691
+ to: ae.toHandle && _ ? qn({ x: ae.toHandle.x, y: ae.toHandle.y }, Y.value) : v,
3692
3692
  toHandle: ae.toHandle,
3693
- toPosition: w && ae.toHandle ? ae.toHandle.position : Jn[p.position],
3693
+ toPosition: _ && ae.toHandle ? ae.toHandle.position : Jn[p.position],
3694
3694
  toNode: ae.toHandle ? O.value.get(ae.toHandle.nodeId) : null
3695
3695
  };
3696
- if (!(w && G && U?.toHandle && de.toHandle && U.toHandle.type === de.toHandle.type && U.toHandle.nodeId === de.toHandle.nodeId && U.toHandle.id === de.toHandle.id && U.to.x === de.to.x && U.to.y === de.to.y)) {
3697
- if (_(
3698
- G && w ? qn(
3696
+ if (!(_ && G && U?.toHandle && de.toHandle && U.toHandle.type === de.toHandle.type && U.toHandle.nodeId === de.toHandle.nodeId && U.toHandle.id === de.toHandle.id && U.to.x === de.to.x && U.to.y === de.to.y)) {
3697
+ if (w(
3698
+ G && _ ? qn(
3699
3699
  {
3700
3700
  x: G.x,
3701
3701
  y: G.y
@@ -3703,13 +3703,13 @@ function ar({
3703
3703
  Y.value
3704
3704
  ) : v,
3705
3705
  ae.toHandle,
3706
- Ju(!!G, w)
3707
- ), U = de, !G && !w && !Z)
3706
+ Ju(!!G, _)
3707
+ ), U = de, !G && !_ && !Z)
3708
3708
  return Dn(le);
3709
- D && D.source !== D.target && Z && (Dn(le), le = Z, Z.classList.add("connecting", "vue-flow__handle-connecting"), Z.classList.toggle("valid", !!w), Z.classList.toggle("vue-flow__handle-valid", !!w));
3709
+ D && D.source !== D.target && Z && (Dn(le), le = Z, Z.classList.add("connecting", "vue-flow__handle-connecting"), Z.classList.toggle("valid", !!_), Z.classList.toggle("vue-flow__handle-valid", !!_));
3710
3710
  }
3711
3711
  }, j = function(ee) {
3712
- (G || Z) && D && w && (r ? r(ee, D) : z.connect(D)), z.connectEnd(ee), i && l?.(ee), Dn(le), cancelAnimationFrame(q), N(ee), h = !1, w = !1, D = null, Z = null, B.removeEventListener("mousemove", W), B.removeEventListener("mouseup", j), B.removeEventListener("touchmove", W), B.removeEventListener("touchend", j);
3712
+ (G || Z) && D && _ && (r ? r(ee, D) : z.connect(D)), z.connectEnd(ee), i && l?.(ee), Dn(le), cancelAnimationFrame(q), N(ee), h = !1, _ = !1, D = null, Z = null, B.removeEventListener("mousemove", W), B.removeEventListener("mouseup", j), B.removeEventListener("touchmove", W), B.removeEventListener("touchend", j);
3713
3713
  };
3714
3714
  const re = S(ce(t));
3715
3715
  let H = ce(o) || T.value || Ut;
@@ -3816,10 +3816,10 @@ function ar({
3816
3816
  };
3817
3817
  }
3818
3818
  function sc() {
3819
- return wt(ir, "");
3819
+ return _t(ir, "");
3820
3820
  }
3821
3821
  function sr(e) {
3822
- const t = e ?? sc() ?? "", n = wt(rr, ge(null)), { findNode: o, edges: i, emits: r } = we(), l = o(t);
3822
+ const t = e ?? sc() ?? "", n = _t(rr, ge(null)), { findNode: o, edges: i, emits: r } = _e(), l = o(t);
3823
3823
  return l || r.error(new Se(xe.NODE_NOT_FOUND, t)), {
3824
3824
  id: t,
3825
3825
  nodeEl: n,
@@ -3876,7 +3876,7 @@ function cc(e, t) {
3876
3876
  );
3877
3877
  }
3878
3878
  function ur() {
3879
- const { getSelectedNodes: e, nodeExtent: t, updateNodePositions: n, findNode: o, snapGrid: i, snapToGrid: r, nodesDraggable: l, emits: a } = we();
3879
+ const { getSelectedNodes: e, nodeExtent: t, updateNodePositions: n, findNode: o, snapGrid: i, snapToGrid: r, nodesDraggable: l, emits: a } = _e();
3880
3880
  return (s, u = !1) => {
3881
3881
  const c = r.value ? i.value[0] : 5, d = r.value ? i.value[1] : 5, f = u ? 4 : 1, g = s.x * c * f, x = s.y * d * f, E = [];
3882
3882
  for (const S of e.value)
@@ -3901,7 +3901,7 @@ function ur() {
3901
3901
  }
3902
3902
  const zn = 0.1, dc = (e) => ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
3903
3903
  function Ze() {
3904
- return wn("Viewport not initialized yet."), Promise.resolve(!1);
3904
+ return _n("Viewport not initialized yet."), Promise.resolve(!1);
3905
3905
  }
3906
3906
  const fc = {
3907
3907
  zoomIn: Ze,
@@ -4039,15 +4039,15 @@ function gc(e, t, n) {
4039
4039
  o.run(() => {
4040
4040
  let E, S, C = !!(n.nodes.value.length || n.edges.value.length);
4041
4041
  E = at([e.modelValue, () => {
4042
- var M, _;
4043
- return (_ = (M = e.modelValue) == null ? void 0 : M.value) == null ? void 0 : _.length;
4042
+ var M, w;
4043
+ return (w = (M = e.modelValue) == null ? void 0 : M.value) == null ? void 0 : w.length;
4044
4044
  }], ([M]) => {
4045
4045
  M && Array.isArray(M) && (S?.pause(), n.setElements(M), !S && !C && M.length ? C = !0 : S?.resume());
4046
4046
  }), S = at(
4047
4047
  [n.nodes, n.edges, () => n.edges.value.length, () => n.nodes.value.length],
4048
- ([M, _]) => {
4048
+ ([M, w]) => {
4049
4049
  var N;
4050
- (N = e.modelValue) != null && N.value && Array.isArray(e.modelValue.value) && (E?.pause(), e.modelValue.value = [...M, ..._], $e(() => {
4050
+ (N = e.modelValue) != null && N.value && Array.isArray(e.modelValue.value) && (E?.pause(), e.modelValue.value = [...M, ...w], $e(() => {
4051
4051
  E?.resume();
4052
4052
  }));
4053
4053
  },
@@ -4060,15 +4060,15 @@ function gc(e, t, n) {
4060
4060
  o.run(() => {
4061
4061
  let E, S, C = !!n.nodes.value.length;
4062
4062
  E = at([e.nodes, () => {
4063
- var M, _;
4064
- return (_ = (M = e.nodes) == null ? void 0 : M.value) == null ? void 0 : _.length;
4063
+ var M, w;
4064
+ return (w = (M = e.nodes) == null ? void 0 : M.value) == null ? void 0 : w.length;
4065
4065
  }], ([M]) => {
4066
4066
  M && Array.isArray(M) && (S?.pause(), n.setNodes(M), !S && !C && M.length ? C = !0 : S?.resume());
4067
4067
  }), S = at(
4068
4068
  [n.nodes, () => n.nodes.value.length],
4069
4069
  ([M]) => {
4070
- var _;
4071
- (_ = e.nodes) != null && _.value && Array.isArray(e.nodes.value) && (E?.pause(), e.nodes.value = [...M], $e(() => {
4070
+ var w;
4071
+ (w = e.nodes) != null && w.value && Array.isArray(e.nodes.value) && (E?.pause(), e.nodes.value = [...M], $e(() => {
4072
4072
  E?.resume();
4073
4073
  }));
4074
4074
  },
@@ -4081,15 +4081,15 @@ function gc(e, t, n) {
4081
4081
  o.run(() => {
4082
4082
  let E, S, C = !!n.edges.value.length;
4083
4083
  E = at([e.edges, () => {
4084
- var M, _;
4085
- return (_ = (M = e.edges) == null ? void 0 : M.value) == null ? void 0 : _.length;
4084
+ var M, w;
4085
+ return (w = (M = e.edges) == null ? void 0 : M.value) == null ? void 0 : w.length;
4086
4086
  }], ([M]) => {
4087
4087
  M && Array.isArray(M) && (S?.pause(), n.setEdges(M), !S && !C && M.length ? C = !0 : S?.resume());
4088
4088
  }), S = at(
4089
4089
  [n.edges, () => n.edges.value.length],
4090
4090
  ([M]) => {
4091
- var _;
4092
- (_ = e.edges) != null && _.value && Array.isArray(e.edges.value) && (E?.pause(), e.edges.value = [...M], $e(() => {
4091
+ var w;
4092
+ (w = e.edges) != null && w.value && Array.isArray(e.edges.value) && (E?.pause(), e.edges.value = [...M], $e(() => {
4093
4093
  E?.resume();
4094
4094
  }));
4095
4095
  },
@@ -4194,12 +4194,12 @@ function gc(e, t, n) {
4194
4194
  for (const S of Object.keys(t)) {
4195
4195
  const C = S;
4196
4196
  if (!E.includes(C)) {
4197
- const M = be(() => t[C]), _ = n[C];
4198
- no(_) && o.run(() => {
4197
+ const M = be(() => t[C]), w = n[C];
4198
+ no(w) && o.run(() => {
4199
4199
  ve(
4200
4200
  M,
4201
4201
  (N) => {
4202
- Ee(N) && (_.value = N);
4202
+ Ee(N) && (w.value = N);
4203
4203
  },
4204
4204
  { immediate: !0 }
4205
4205
  );
@@ -4266,7 +4266,7 @@ function vc() {
4266
4266
  edgeUpdate: L(),
4267
4267
  edgeUpdateEnd: L(),
4268
4268
  updateNodeInternals: L(),
4269
- error: L((e) => wn(e.message))
4269
+ error: L((e) => _n(e.message))
4270
4270
  };
4271
4271
  }
4272
4272
  function pc(e, t) {
@@ -4481,7 +4481,7 @@ function yc(e, t, n) {
4481
4481
  }, M = (v) => {
4482
4482
  const m = (v || e.edges).map((p) => (p.selected = !1, We(p.id, !1)));
4483
4483
  e.hooks.edgesChange.trigger(m);
4484
- }, _ = (v) => {
4484
+ }, w = (v) => {
4485
4485
  if (!v || !v.length)
4486
4486
  return g([], !1);
4487
4487
  const h = v.reduce(
@@ -4526,7 +4526,7 @@ function yc(e, t, n) {
4526
4526
  e.edges
4527
4527
  );
4528
4528
  An(e.connectionLookup, n.value, m), e.edges = m;
4529
- }, w = (v) => {
4529
+ }, _ = (v) => {
4530
4530
  const h = v instanceof Function ? v([...e.nodes, ...e.edges]) : v;
4531
4531
  !e.initialized && !h.length || (O(h.filter(ot)), D(h.filter(Qe)));
4532
4532
  }, Z = (v) => {
@@ -4679,7 +4679,7 @@ function yc(e, t, n) {
4679
4679
  ];
4680
4680
  Ee(h.defaultEdgeOptions) && (e.defaultEdgeOptions = h.defaultEdgeOptions);
4681
4681
  const p = h.modelValue || h.nodes || h.edges ? [] : void 0;
4682
- p && (h.modelValue && p.push(...h.modelValue), h.nodes && p.push(...h.nodes), h.edges && p.push(...h.edges), w(p));
4682
+ p && (h.modelValue && p.push(...h.modelValue), h.nodes && p.push(...h.nodes), h.edges && p.push(...h.edges), _(p));
4683
4683
  const k = () => {
4684
4684
  Ee(h.maxZoom) && z(h.maxZoom), Ee(h.minZoom) && N(h.minZoom), Ee(h.translateExtent) && Y(h.translateExtent);
4685
4685
  };
@@ -4692,7 +4692,7 @@ function yc(e, t, n) {
4692
4692
  return {
4693
4693
  updateNodePositions: d,
4694
4694
  updateNodeDimensions: f,
4695
- setElements: w,
4695
+ setElements: _,
4696
4696
  setNodes: O,
4697
4697
  setEdges: D,
4698
4698
  addNodes: Z,
@@ -4715,7 +4715,7 @@ function yc(e, t, n) {
4715
4715
  setTranslateExtent: Y,
4716
4716
  setNodeExtent: F,
4717
4717
  setPaneClickDistance: I,
4718
- removeSelectedElements: _,
4718
+ removeSelectedElements: w,
4719
4719
  removeSelectedNodes: C,
4720
4720
  removeSelectedEdges: M,
4721
4721
  startConnection: re,
@@ -4806,11 +4806,11 @@ function yc(e, t, n) {
4806
4806
  }
4807
4807
  };
4808
4808
  }
4809
- const _c = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], wc = {
4809
+ const wc = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], _c = {
4810
4810
  name: "Handle",
4811
4811
  compatConfig: { MODE: 3 }
4812
- }, _t = /* @__PURE__ */ me({
4813
- ...wc,
4812
+ }, wt = /* @__PURE__ */ me({
4813
+ ..._c,
4814
4814
  props: {
4815
4815
  id: { default: null },
4816
4816
  type: {},
@@ -4830,15 +4830,15 @@ const _c = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], wc = {
4830
4830
  nodesConnectable: c,
4831
4831
  noDragClassName: d,
4832
4832
  noPanClassName: f
4833
- } = we(), { id: g, node: x, nodeEl: E, connectedEdges: S } = sr(), C = ge(), M = be(() => typeof e.connectableStart < "u" ? e.connectableStart : !0), _ = be(() => typeof e.connectableEnd < "u" ? e.connectableEnd : !0), N = be(
4833
+ } = _e(), { id: g, node: x, nodeEl: E, connectedEdges: S } = sr(), C = ge(), M = be(() => typeof e.connectableStart < "u" ? e.connectableStart : !0), w = be(() => typeof e.connectableEnd < "u" ? e.connectableEnd : !0), N = be(
4834
4834
  () => {
4835
- var D, w, Z, y, P, b;
4836
- return ((D = l.value) == null ? void 0 : D.nodeId) === g && ((w = l.value) == null ? void 0 : w.id) === e.id && ((Z = l.value) == null ? void 0 : Z.type) === o.value || ((y = s.value) == null ? void 0 : y.nodeId) === g && ((P = s.value) == null ? void 0 : P.id) === e.id && ((b = s.value) == null ? void 0 : b.type) === o.value;
4835
+ var D, _, Z, y, P, b;
4836
+ return ((D = l.value) == null ? void 0 : D.nodeId) === g && ((_ = l.value) == null ? void 0 : _.id) === e.id && ((Z = l.value) == null ? void 0 : Z.type) === o.value || ((y = s.value) == null ? void 0 : y.nodeId) === g && ((P = s.value) == null ? void 0 : P.id) === e.id && ((b = s.value) == null ? void 0 : b.type) === o.value;
4837
4837
  }
4838
4838
  ), z = be(
4839
4839
  () => {
4840
- var D, w, Z;
4841
- return ((D = a.value) == null ? void 0 : D.nodeId) === g && ((w = a.value) == null ? void 0 : w.id) === e.id && ((Z = a.value) == null ? void 0 : Z.type) === o.value;
4840
+ var D, _, Z;
4841
+ return ((D = a.value) == null ? void 0 : D.nodeId) === g && ((_ = a.value) == null ? void 0 : _.id) === e.id && ((Z = a.value) == null ? void 0 : Z.type) === o.value;
4842
4842
  }
4843
4843
  ), { handlePointerDown: Y, handleClick: F } = ar({
4844
4844
  nodeId: g,
@@ -4846,18 +4846,18 @@ const _c = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], wc = {
4846
4846
  isValidConnection: i,
4847
4847
  type: o
4848
4848
  }), I = ne(() => typeof e.connectable == "string" && e.connectable === "single" ? !S.value.some((D) => {
4849
- const w = D[`${o.value}Handle`];
4850
- return D[o.value] !== g ? !1 : w ? w === e.id : !0;
4849
+ const _ = D[`${o.value}Handle`];
4850
+ return D[o.value] !== g ? !1 : _ ? _ === e.id : !0;
4851
4851
  }) : typeof e.connectable == "number" ? S.value.filter((D) => {
4852
- const w = D[`${o.value}Handle`];
4853
- return D[o.value] !== g ? !1 : w ? w === e.id : !0;
4852
+ const _ = D[`${o.value}Handle`];
4853
+ return D[o.value] !== g ? !1 : _ ? _ === e.id : !0;
4854
4854
  }).length < e.connectable : typeof e.connectable == "function" ? e.connectable(x, S.value) : Ee(e.connectable) ? e.connectable : c.value);
4855
4855
  Ue(() => {
4856
4856
  var D;
4857
4857
  if (!x.dimensions.width || !x.dimensions.height)
4858
4858
  return;
4859
- const w = (D = x.handleBounds[o.value]) == null ? void 0 : D.find((V) => V.id === e.id);
4860
- if (!u.value || w)
4859
+ const _ = (D = x.handleBounds[o.value]) == null ? void 0 : D.find((V) => V.id === e.id);
4860
+ if (!u.value || _)
4861
4861
  return;
4862
4862
  const Z = u.value.querySelector(".vue-flow__transformationpane");
4863
4863
  if (!E.value || !C.value || !Z || !e.id)
@@ -4874,8 +4874,8 @@ const _c = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], wc = {
4874
4874
  x.handleBounds[o.value] = [...x.handleBounds[o.value] ?? [], A];
4875
4875
  });
4876
4876
  function T(D) {
4877
- const w = ho(D);
4878
- I.value && M.value && (w && D.button === 0 || !w) && Y(D);
4877
+ const _ = ho(D);
4878
+ I.value && M.value && (_ && D.button === 0 || !_) && Y(D);
4879
4879
  }
4880
4880
  function O(D) {
4881
4881
  !g || !a.value && !M.value || I.value && F(D);
@@ -4885,7 +4885,7 @@ const _c = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], wc = {
4885
4885
  handlePointerDown: Y,
4886
4886
  onClick: O,
4887
4887
  onPointerDown: T
4888
- }), (D, w) => (oe(), he("div", {
4888
+ }), (D, _) => (oe(), he("div", {
4889
4889
  ref_key: "handle",
4890
4890
  ref: C,
4891
4891
  "data-id": `${J(r)}-${J(g)}-${e.id}-${o.value}`,
@@ -4902,8 +4902,8 @@ const _c = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], wc = {
4902
4902
  connectable: I.value,
4903
4903
  connecting: z.value,
4904
4904
  connectablestart: M.value,
4905
- connectableend: _.value,
4906
- connectionindicator: I.value && (M.value && !N.value || _.value && N.value)
4905
+ connectableend: w.value,
4906
+ connectionindicator: I.value && (M.value && !N.value || w.value && N.value)
4907
4907
  }
4908
4908
  ]]),
4909
4909
  onMousedown: T,
@@ -4911,7 +4911,7 @@ const _c = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], wc = {
4911
4911
  onClick: O
4912
4912
  }, [
4913
4913
  qe(D.$slots, "default", { id: D.id })
4914
- ], 42, _c));
4914
+ ], 42, wc));
4915
4915
  }
4916
4916
  }), En = function({
4917
4917
  sourcePosition: e = R.Bottom,
@@ -4924,9 +4924,9 @@ const _c = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], wc = {
4924
4924
  }) {
4925
4925
  const a = l.label ?? n;
4926
4926
  return [
4927
- pe(_t, { type: "target", position: t, connectable: o, isValidConnection: i }),
4927
+ pe(wt, { type: "target", position: t, connectable: o, isValidConnection: i }),
4928
4928
  typeof a != "string" && a ? pe(a) : pe(Te, [a]),
4929
- pe(_t, { type: "source", position: e, connectable: o, isValidConnection: r })
4929
+ pe(wt, { type: "source", position: e, connectable: o, isValidConnection: r })
4930
4930
  ];
4931
4931
  };
4932
4932
  En.props = ["sourcePosition", "targetPosition", "label", "isValidTargetPos", "isValidSourcePos", "connectable", "data"];
@@ -4941,7 +4941,7 @@ const bc = En, xn = function({
4941
4941
  }) {
4942
4942
  const r = i.label ?? t;
4943
4943
  return [
4944
- pe(_t, { type: "target", position: e, connectable: n, isValidConnection: o }),
4944
+ pe(wt, { type: "target", position: e, connectable: n, isValidConnection: o }),
4945
4945
  typeof r != "string" && r ? pe(r) : pe(Te, [r])
4946
4946
  ];
4947
4947
  };
@@ -4958,7 +4958,7 @@ const Ec = xn, Sn = function({
4958
4958
  const r = i.label ?? t;
4959
4959
  return [
4960
4960
  typeof r != "string" && r ? pe(r) : pe(Te, [r]),
4961
- pe(_t, { type: "source", position: e, connectable: n, isValidConnection: o })
4961
+ pe(wt, { type: "source", position: e, connectable: n, isValidConnection: o })
4962
4962
  ];
4963
4963
  };
4964
4964
  Sn.props = ["sourcePosition", "label", "isValidSourcePos", "connectable", "data"];
@@ -5003,7 +5003,7 @@ const xc = Sn, Sc = ["transform"], Nc = ["width", "height", "x", "y", "rx", "ry"
5003
5003
  rx: r.labelBgBorderRadius,
5004
5004
  ry: r.labelBgBorderRadius
5005
5005
  }, null, 12, Nc)) : Ne("", !0),
5006
- _e("text", en(r.$attrs, {
5006
+ we("text", en(r.$attrs, {
5007
5007
  ref_key: "el",
5008
5008
  ref: n,
5009
5009
  class: "vue-flow__edge-text",
@@ -5047,7 +5047,7 @@ const xc = Sn, Sc = ["transform"], Nc = ["width", "height", "x", "y", "rx", "ry"
5047
5047
  interactionEl: o,
5048
5048
  labelEl: i
5049
5049
  }), (l, a) => (oe(), he(Te, null, [
5050
- _e("path", en(J(r), {
5050
+ we("path", en(J(r), {
5051
5051
  id: l.id,
5052
5052
  ref_key: "pathEl",
5053
5053
  ref: n,
@@ -5248,14 +5248,14 @@ function Dc({
5248
5248
  target: u
5249
5249
  }), d = c.x !== 0 ? "x" : "y", f = c[d];
5250
5250
  let g, x, E;
5251
- const S = { x: 0, y: 0 }, C = { x: 0, y: 0 }, [M, _, N, z] = dr({
5251
+ const S = { x: 0, y: 0 }, C = { x: 0, y: 0 }, [M, w, N, z] = dr({
5252
5252
  sourceX: e.x,
5253
5253
  sourceY: e.y,
5254
5254
  targetX: n.x,
5255
5255
  targetY: n.y
5256
5256
  });
5257
5257
  if (l[d] * a[d] === -1) {
5258
- x = i.x ?? M, E = i.y ?? _;
5258
+ x = i.x ?? M, E = i.y ?? w;
5259
5259
  const F = [
5260
5260
  { x, y: s.y },
5261
5261
  { x, y: u.y }
@@ -5277,8 +5277,8 @@ function Dc({
5277
5277
  const Z = d === "x" ? "y" : "x", y = l[d] === a[Z], P = s[Z] > u[Z], b = s[Z] < u[Z];
5278
5278
  (l[d] === 1 && (!y && P || y && b) || l[d] !== 1 && (!y && b || y && P)) && (g = d === "x" ? F : I);
5279
5279
  }
5280
- const T = { x: s.x + S.x, y: s.y + S.y }, O = { x: u.x + C.x, y: u.y + C.y }, D = Math.max(Math.abs(T.x - g[0].x), Math.abs(O.x - g[0].x)), w = Math.max(Math.abs(T.y - g[0].y), Math.abs(O.y - g[0].y));
5281
- D >= w ? (x = (T.x + O.x) / 2, E = g[0].y) : (x = g[0].x, E = (T.y + O.y) / 2);
5280
+ const T = { x: s.x + S.x, y: s.y + S.y }, O = { x: u.x + C.x, y: u.y + C.y }, D = Math.max(Math.abs(T.x - g[0].x), Math.abs(O.x - g[0].x)), _ = Math.max(Math.abs(T.y - g[0].y), Math.abs(O.y - g[0].y));
5281
+ D >= _ ? (x = (T.x + O.x) / 2, E = g[0].y) : (x = g[0].x, E = (T.y + O.y) / 2);
5282
5282
  }
5283
5283
  return [[
5284
5284
  e,
@@ -5319,9 +5319,9 @@ function jn(e) {
5319
5319
  center: { x: s, y: u },
5320
5320
  offset: c
5321
5321
  });
5322
- return [d.reduce((C, M, _) => {
5322
+ return [d.reduce((C, M, w) => {
5323
5323
  let N;
5324
- return _ > 0 && _ < d.length - 1 ? N = Ac(d[_ - 1], M, d[_ + 1], a) : N = `${_ === 0 ? "M" : "L"}${M.x} ${M.y}`, C += N, C;
5324
+ return w > 0 && w < d.length - 1 ? N = Ac(d[w - 1], M, d[w + 1], a) : N = `${w === 0 ? "M" : "L"}${M.x} ${M.y}`, C += N, C;
5325
5325
  }, ""), f, g, x, E];
5326
5326
  }
5327
5327
  function Oc(e) {
@@ -5649,11 +5649,11 @@ class et {
5649
5649
  return `vue-flow-${this.currentId++}`;
5650
5650
  }
5651
5651
  }
5652
- function we(e) {
5652
+ function _e(e) {
5653
5653
  const t = et.getInstance(), n = ii(), o = typeof e == "object", i = o ? e : { id: e }, r = i.id, l = r ?? n?.vueFlowId;
5654
5654
  let a;
5655
5655
  if (n) {
5656
- const s = wt(Qo, null);
5656
+ const s = _t(Qo, null);
5657
5657
  typeof s < "u" && s !== null && (!l || s.id === l) && (a = s);
5658
5658
  }
5659
5659
  if (a || l && (a = t.get(l)), !a || l && a.id !== l) {
@@ -5675,7 +5675,7 @@ function we(e) {
5675
5675
  ), hn(() => {
5676
5676
  if (a) {
5677
5677
  const d = t.get(a.id);
5678
- d ? d.$destroy() : wn(`No store instance found for id ${a.id} in storage.`);
5678
+ d ? d.$destroy() : _n(`No store instance found for id ${a.id} in storage.`);
5679
5679
  }
5680
5680
  });
5681
5681
  });
@@ -5688,7 +5688,7 @@ function we(e) {
5688
5688
  return a;
5689
5689
  }
5690
5690
  function Wc(e) {
5691
- const { emits: t, dimensions: n } = we();
5691
+ const { emits: t, dimensions: n } = _e();
5692
5692
  let o;
5693
5693
  Ue(() => {
5694
5694
  const i = e.value, r = () => {
@@ -5726,7 +5726,7 @@ const Kc = {
5726
5726
  }, jc = /* @__PURE__ */ me({
5727
5727
  ...Qc,
5728
5728
  setup(e) {
5729
- const { emits: t, viewport: n, getSelectedNodes: o, noPanClassName: i, disableKeyboardA11y: r, userSelectionActive: l } = we(), a = ur(), s = ge(null), u = lr({
5729
+ const { emits: t, viewport: n, getSelectedNodes: o, noPanClassName: i, disableKeyboardA11y: r, userSelectionActive: l } = _e(), a = ur(), s = ge(null), u = lr({
5730
5730
  el: s,
5731
5731
  onStart(x) {
5732
5732
  t.selectionDragStart(x);
@@ -5765,7 +5765,7 @@ const Kc = {
5765
5765
  class: dt(["vue-flow__nodesselection vue-flow__container", J(i)]),
5766
5766
  style: He({ transform: `translate(${J(n).x}px,${J(n).y}px) scale(${J(n).zoom})` })
5767
5767
  }, [
5768
- _e("div", {
5768
+ we("div", {
5769
5769
  ref_key: "el",
5770
5770
  ref: s,
5771
5771
  class: dt([{ dragging: J(u) }, "vue-flow__nodesselection-rect"]),
@@ -5812,11 +5812,11 @@ const td = {
5812
5812
  multiSelectionKeyCode: S,
5813
5813
  multiSelectionActive: C,
5814
5814
  edgeLookup: M,
5815
- nodeLookup: _,
5815
+ nodeLookup: w,
5816
5816
  connectionLookup: N,
5817
5817
  defaultEdgeOptions: z,
5818
5818
  connectionStartHandle: Y
5819
- } = we(), F = ge(null), I = ge(/* @__PURE__ */ new Set()), T = ge(/* @__PURE__ */ new Set()), O = ge(), D = be(() => s.value && (e.isSelecting || r.value)), w = be(() => Y.value !== null);
5819
+ } = _e(), F = ge(null), I = ge(/* @__PURE__ */ new Set()), T = ge(/* @__PURE__ */ new Set()), O = ge(), D = be(() => s.value && (e.isSelecting || r.value)), _ = be(() => Y.value !== null);
5820
5820
  let Z = !1, y = !1;
5821
5821
  const P = Pt(E, { actInsideInputWithModifier: !1 }), b = Pt(S);
5822
5822
  ve(P, (H) => {
@@ -5830,7 +5830,7 @@ const td = {
5830
5830
  };
5831
5831
  }
5832
5832
  function A(H) {
5833
- if (Z || w.value) {
5833
+ if (Z || _.value) {
5834
5834
  Z = !1;
5835
5835
  return;
5836
5836
  }
@@ -5885,7 +5885,7 @@ const td = {
5885
5885
  }
5886
5886
  }
5887
5887
  if (!Jo(Q, I.value)) {
5888
- const v = Ke(_.value, I.value, !0);
5888
+ const v = Ke(w.value, I.value, !0);
5889
5889
  i.nodesChange(v);
5890
5890
  }
5891
5891
  if (!Jo(ie, T.value)) {
@@ -5925,7 +5925,7 @@ const td = {
5925
5925
  }, id = /* @__PURE__ */ me({
5926
5926
  ...od,
5927
5927
  setup(e) {
5928
- const { viewport: t, fitViewOnInit: n, fitViewOnInitDone: o } = we(), i = ne(() => n.value ? !o.value : !1), r = ne(() => `translate(${t.value.x}px,${t.value.y}px) scale(${t.value.zoom})`);
5928
+ const { viewport: t, fitViewOnInit: n, fitViewOnInitDone: o } = _e(), i = ne(() => n.value ? !o.value : !1), r = ne(() => `translate(${t.value.x}px,${t.value.y}px) scale(${t.value.zoom})`);
5929
5929
  return (l, a) => (oe(), he("div", {
5930
5930
  class: "vue-flow__transformationpane vue-flow__container",
5931
5931
  style: He({ transform: r.value, opacity: i.value ? 0 : void 0 })
@@ -5958,7 +5958,7 @@ const td = {
5958
5958
  noWheelClassName: S,
5959
5959
  noPanClassName: C,
5960
5960
  emits: M,
5961
- connectionStartHandle: _,
5961
+ connectionStartHandle: w,
5962
5962
  userSelectionActive: N,
5963
5963
  paneDragging: z,
5964
5964
  d3Zoom: Y,
@@ -5967,9 +5967,9 @@ const td = {
5967
5967
  viewport: T,
5968
5968
  viewportRef: O,
5969
5969
  paneClickDistance: D
5970
- } = we();
5970
+ } = _e();
5971
5971
  Wc(O);
5972
- const w = tn(!1), Z = tn(!1);
5972
+ const _ = tn(!1), Z = tn(!1);
5973
5973
  let y = null, P = !1, b = 0, $ = {
5974
5974
  x: 0,
5975
5975
  y: 0,
@@ -5980,7 +5980,7 @@ const td = {
5980
5980
  ), j = be(() => A.value || s.value), re = be(() => V.value || l.value === !0 && W.value !== !0);
5981
5981
  Ue(() => {
5982
5982
  if (!O.value) {
5983
- wn("Viewport element is missing");
5983
+ _n("Viewport element is missing");
5984
5984
  return;
5985
5985
  }
5986
5986
  const te = O.value, fe = te.getBoundingClientRect(), Q = Su().clickDistance(D.value).scaleExtent([t.value, n.value]).translateExtent(i.value), ie = ke(te).call(Q), le = ie.on("wheel.zoom"), v = mt.translate(o.value.x ?? 0, o.value.y ?? 0).scale(lt(o.value.zoom ?? 1, t.value, n.value)), h = [
@@ -5991,13 +5991,13 @@ const td = {
5991
5991
  var k;
5992
5992
  if (!p.sourceEvent)
5993
5993
  return null;
5994
- b = p.sourceEvent.button, w.value = !0;
5994
+ b = p.sourceEvent.button, _.value = !0;
5995
5995
  const K = se(p.transform);
5996
5996
  ((k = p.sourceEvent) == null ? void 0 : k.type) === "mousedown" && (z.value = !0), $ = K, M.viewportChangeStart(K), M.moveStart({ event: p, flowTransform: K });
5997
5997
  }), Q.on("end", (p) => {
5998
5998
  if (!p.sourceEvent)
5999
5999
  return null;
6000
- if (w.value = !1, z.value = !1, H(W.value, b ?? 0) && !P && M.paneContextMenu(p.sourceEvent), P = !1, q($, p.transform)) {
6000
+ if (_.value = !1, z.value = !1, H(W.value, b ?? 0) && !P && M.paneContextMenu(p.sourceEvent), P = !1, q($, p.transform)) {
6001
6001
  const k = se(p.transform);
6002
6002
  $ = k, M.viewportChangeEnd(k), M.moveEnd({ event: p, flowTransform: k });
6003
6003
  }
@@ -6017,7 +6017,7 @@ const td = {
6017
6017
  }), ve(
6018
6018
  [N, W],
6019
6019
  () => {
6020
- N.value && !w.value ? Q.on("zoom", null) : N.value || Q.on("zoom", (p) => {
6020
+ N.value && !_.value ? Q.on("zoom", null) : N.value || Q.on("zoom", (p) => {
6021
6021
  T.value = { x: p.transform.x, y: p.transform.y, zoom: p.transform.k };
6022
6022
  const k = se(p.transform);
6023
6023
  P = H(W.value, b ?? 0), M.viewportChange(k), M.move({ event: p, flowTransform: k });
@@ -6098,7 +6098,7 @@ const td = {
6098
6098
  "is-selecting": re.value,
6099
6099
  "selection-key-pressed": J(V),
6100
6100
  class: dt({
6101
- connecting: !!J(_),
6101
+ connecting: !!J(w),
6102
6102
  dragging: J(z),
6103
6103
  draggable: J(d) === !0 || Array.isArray(J(d)) && J(d).includes(0)
6104
6104
  })
@@ -6121,13 +6121,13 @@ const td = {
6121
6121
  }, dd = /* @__PURE__ */ me({
6122
6122
  ...cd,
6123
6123
  setup(e) {
6124
- const { id: t, disableKeyboardA11y: n, ariaLiveMessage: o } = we();
6124
+ const { id: t, disableKeyboardA11y: n, ariaLiveMessage: o } = _e();
6125
6125
  return (i, r) => (oe(), he(Te, null, [
6126
- _e("div", {
6126
+ we("div", {
6127
6127
  id: `${J(Fi)}-${J(t)}`,
6128
6128
  style: { display: "none" }
6129
6129
  }, " Press enter or space to select a node. " + gt(J(n) ? "" : "You can then use the arrow keys to move the node around.") + " You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ", 9, ad),
6130
- _e("div", {
6130
+ we("div", {
6131
6131
  id: `${J(Yi)}-${J(t)}`,
6132
6132
  style: { display: "none" }
6133
6133
  }, " Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ", 8, sd),
@@ -6142,7 +6142,7 @@ const td = {
6142
6142
  }
6143
6143
  });
6144
6144
  function fd() {
6145
- const e = we();
6145
+ const e = _e();
6146
6146
  ve(
6147
6147
  () => e.viewportHelper.value.viewportInitialized,
6148
6148
  (t) => {
@@ -6200,15 +6200,15 @@ const oi = vo, vd = me({
6200
6200
  edgesUpdatable: S,
6201
6201
  edgesFocusable: C,
6202
6202
  hooks: M
6203
- } = we(), _ = ne(() => c(e.id)), { emit: N, on: z } = lc(_.value, r), Y = wt(bn), F = Bt(), I = ge(!1), T = ge(!1), O = ge(""), D = ge(null), w = ge("source"), Z = ge(null), y = be(
6204
- () => typeof _.value.selectable > "u" ? E.value : _.value.selectable
6205
- ), P = be(() => typeof _.value.updatable > "u" ? S.value : _.value.updatable), b = be(() => typeof _.value.focusable > "u" ? C.value : _.value.focusable);
6203
+ } = _e(), w = ne(() => c(e.id)), { emit: N, on: z } = lc(w.value, r), Y = _t(bn), F = Bt(), I = ge(!1), T = ge(!1), O = ge(""), D = ge(null), _ = ge("source"), Z = ge(null), y = be(
6204
+ () => typeof w.value.selectable > "u" ? E.value : w.value.selectable
6205
+ ), P = be(() => typeof w.value.updatable > "u" ? S.value : w.value.updatable), b = be(() => typeof w.value.focusable > "u" ? C.value : w.value.focusable);
6206
6206
  ft(oc, e.id), ft(ic, Z);
6207
- const $ = ne(() => _.value.class instanceof Function ? _.value.class(_.value) : _.value.class), A = ne(() => _.value.style instanceof Function ? _.value.style(_.value) : _.value.style), V = ne(() => {
6208
- const h = _.value.type || "default", m = Y?.[`edge-${h}`];
6207
+ const $ = ne(() => w.value.class instanceof Function ? w.value.class(w.value) : w.value.class), A = ne(() => w.value.style instanceof Function ? w.value.style(w.value) : w.value.style), V = ne(() => {
6208
+ const h = w.value.type || "default", m = Y?.[`edge-${h}`];
6209
6209
  if (m)
6210
6210
  return m;
6211
- let p = _.value.template ?? s.value[h];
6211
+ let p = w.value.template ?? s.value[h];
6212
6212
  if (typeof p == "string" && F) {
6213
6213
  const k = Object.keys(F.appContext.components);
6214
6214
  k && k.includes(h) && (p = li(h, !1));
@@ -6217,29 +6217,29 @@ const oi = vo, vd = me({
6217
6217
  }), { handlePointerDown: B } = ar({
6218
6218
  nodeId: O,
6219
6219
  handleId: D,
6220
- type: w,
6220
+ type: _,
6221
6221
  isValidConnection: f,
6222
- edgeUpdaterType: w,
6222
+ edgeUpdaterType: _,
6223
6223
  onEdgeUpdate: re,
6224
6224
  onEdgeUpdateEnd: H
6225
6225
  });
6226
6226
  return () => {
6227
- const h = d(_.value.source), m = d(_.value.target), p = "pathOptions" in _.value ? _.value.pathOptions : {};
6227
+ const h = d(w.value.source), m = d(w.value.target), p = "pathOptions" in w.value ? w.value.pathOptions : {};
6228
6228
  if (!h && !m)
6229
- return r.error(new Se(xe.EDGE_SOURCE_TARGET_MISSING, _.value.id, _.value.source, _.value.target)), null;
6229
+ return r.error(new Se(xe.EDGE_SOURCE_TARGET_MISSING, w.value.id, w.value.source, w.value.target)), null;
6230
6230
  if (!h)
6231
- return r.error(new Se(xe.EDGE_SOURCE_MISSING, _.value.id, _.value.source)), null;
6231
+ return r.error(new Se(xe.EDGE_SOURCE_MISSING, w.value.id, w.value.source)), null;
6232
6232
  if (!m)
6233
- return r.error(new Se(xe.EDGE_TARGET_MISSING, _.value.id, _.value.target)), null;
6234
- if (!_.value || _.value.hidden || h.hidden || m.hidden)
6233
+ return r.error(new Se(xe.EDGE_TARGET_MISSING, w.value.id, w.value.target)), null;
6234
+ if (!w.value || w.value.hidden || h.hidden || m.hidden)
6235
6235
  return null;
6236
6236
  let k;
6237
6237
  o.value === Je.Strict ? k = h.handleBounds.source : k = [...h.handleBounds.source || [], ...h.handleBounds.target || []];
6238
- const K = Xo(k, _.value.sourceHandle);
6238
+ const K = Xo(k, w.value.sourceHandle);
6239
6239
  let X;
6240
6240
  o.value === Je.Strict ? X = m.handleBounds.target : X = [...m.handleBounds.target || [], ...m.handleBounds.source || []];
6241
- const U = Xo(X, _.value.targetHandle), ee = K?.position || R.Bottom, ae = U?.position || R.Top, { x: de, y: ye } = yt(h, K, ee), { x: Ae, y: bt } = yt(m, U, ae);
6242
- return _.value.sourceX = de, _.value.sourceY = ye, _.value.targetX = Ae, _.value.targetY = bt, pe(
6241
+ const U = Xo(X, w.value.targetHandle), ee = K?.position || R.Bottom, ae = U?.position || R.Top, { x: de, y: ye } = yt(h, K, ee), { x: Ae, y: bt } = yt(m, U, ae);
6242
+ return w.value.sourceX = de, w.value.sourceY = ye, w.value.targetX = Ae, w.value.targetY = bt, pe(
6243
6243
  "g",
6244
6244
  {
6245
6245
  ref: Z,
@@ -6247,22 +6247,22 @@ const oi = vo, vd = me({
6247
6247
  "data-id": e.id,
6248
6248
  class: [
6249
6249
  "vue-flow__edge",
6250
- `vue-flow__edge-${V.value === !1 ? "default" : _.value.type || "default"}`,
6250
+ `vue-flow__edge-${V.value === !1 ? "default" : w.value.type || "default"}`,
6251
6251
  a.value,
6252
6252
  $.value,
6253
6253
  {
6254
6254
  updating: I.value,
6255
- selected: _.value.selected,
6256
- animated: _.value.animated,
6255
+ selected: w.value.selected,
6256
+ animated: w.value.animated,
6257
6257
  inactive: !y.value && !M.value.edgeClick.hasListeners()
6258
6258
  }
6259
6259
  ],
6260
6260
  tabIndex: b.value ? 0 : void 0,
6261
- "aria-label": _.value.ariaLabel === null ? void 0 : _.value.ariaLabel ?? `Edge from ${_.value.source} to ${_.value.target}`,
6261
+ "aria-label": w.value.ariaLabel === null ? void 0 : w.value.ariaLabel ?? `Edge from ${w.value.source} to ${w.value.target}`,
6262
6262
  "aria-describedby": b.value ? `${Yi}-${t}` : void 0,
6263
6263
  "aria-roledescription": "edge",
6264
6264
  role: b.value ? "group" : "img",
6265
- ..._.value.domAttributes,
6265
+ ...w.value.domAttributes,
6266
6266
  onClick: q,
6267
6267
  onContextmenu: se,
6268
6268
  onDblclick: ue,
@@ -6276,32 +6276,32 @@ const oi = vo, vd = me({
6276
6276
  id: e.id,
6277
6277
  sourceNode: h,
6278
6278
  targetNode: m,
6279
- source: _.value.source,
6280
- target: _.value.target,
6281
- type: _.value.type,
6279
+ source: w.value.source,
6280
+ target: w.value.target,
6281
+ type: w.value.type,
6282
6282
  updatable: P.value,
6283
- selected: _.value.selected,
6284
- animated: _.value.animated,
6285
- label: _.value.label,
6286
- labelStyle: _.value.labelStyle,
6287
- labelShowBg: _.value.labelShowBg,
6288
- labelBgStyle: _.value.labelBgStyle,
6289
- labelBgPadding: _.value.labelBgPadding,
6290
- labelBgBorderRadius: _.value.labelBgBorderRadius,
6291
- data: _.value.data,
6292
- events: { ..._.value.events, ...z },
6283
+ selected: w.value.selected,
6284
+ animated: w.value.animated,
6285
+ label: w.value.label,
6286
+ labelStyle: w.value.labelStyle,
6287
+ labelShowBg: w.value.labelShowBg,
6288
+ labelBgStyle: w.value.labelBgStyle,
6289
+ labelBgPadding: w.value.labelBgPadding,
6290
+ labelBgBorderRadius: w.value.labelBgBorderRadius,
6291
+ data: w.value.data,
6292
+ events: { ...w.value.events, ...z },
6293
6293
  style: A.value,
6294
- markerStart: `url('#${zt(_.value.markerStart, t)}')`,
6295
- markerEnd: `url('#${zt(_.value.markerEnd, t)}')`,
6294
+ markerStart: `url('#${zt(w.value.markerStart, t)}')`,
6295
+ markerEnd: `url('#${zt(w.value.markerEnd, t)}')`,
6296
6296
  sourcePosition: ee,
6297
6297
  targetPosition: ae,
6298
6298
  sourceX: de,
6299
6299
  sourceY: ye,
6300
6300
  targetX: Ae,
6301
6301
  targetY: bt,
6302
- sourceHandleId: _.value.sourceHandle,
6303
- targetHandleId: _.value.targetHandle,
6304
- interactionWidth: _.value.interactionWidth,
6302
+ sourceHandleId: w.value.sourceHandle,
6303
+ targetHandleId: w.value.targetHandle,
6304
+ interactionWidth: w.value.interactionWidth,
6305
6305
  ...p
6306
6306
  }),
6307
6307
  [
@@ -6352,33 +6352,33 @@ const oi = vo, vd = me({
6352
6352
  I.value = !1;
6353
6353
  }
6354
6354
  function re(h, m) {
6355
- N.update({ event: h, edge: _.value, connection: m });
6355
+ N.update({ event: h, edge: w.value, connection: m });
6356
6356
  }
6357
6357
  function H(h) {
6358
- N.updateEnd({ event: h, edge: _.value }), T.value = !1;
6358
+ N.updateEnd({ event: h, edge: w.value }), T.value = !1;
6359
6359
  }
6360
6360
  function G(h, m) {
6361
- h.button === 0 && (T.value = !0, O.value = m ? _.value.target : _.value.source, D.value = (m ? _.value.targetHandle : _.value.sourceHandle) ?? null, w.value = m ? "target" : "source", N.updateStart({ event: h, edge: _.value }), B(h));
6361
+ h.button === 0 && (T.value = !0, O.value = m ? w.value.target : w.value.source, D.value = (m ? w.value.targetHandle : w.value.sourceHandle) ?? null, _.value = m ? "target" : "source", N.updateStart({ event: h, edge: w.value }), B(h));
6362
6362
  }
6363
6363
  function q(h) {
6364
6364
  var m;
6365
- const p = { event: h, edge: _.value };
6366
- y.value && (l.value = !1, _.value.selected && g.value ? (u([_.value]), (m = Z.value) == null || m.blur()) : n([_.value])), N.click(p);
6365
+ const p = { event: h, edge: w.value };
6366
+ y.value && (l.value = !1, w.value.selected && g.value ? (u([w.value]), (m = Z.value) == null || m.blur()) : n([w.value])), N.click(p);
6367
6367
  }
6368
6368
  function se(h) {
6369
- N.contextMenu({ event: h, edge: _.value });
6369
+ N.contextMenu({ event: h, edge: w.value });
6370
6370
  }
6371
6371
  function ue(h) {
6372
- N.doubleClick({ event: h, edge: _.value });
6372
+ N.doubleClick({ event: h, edge: w.value });
6373
6373
  }
6374
6374
  function te(h) {
6375
- N.mouseEnter({ event: h, edge: _.value });
6375
+ N.mouseEnter({ event: h, edge: w.value });
6376
6376
  }
6377
6377
  function fe(h) {
6378
- N.mouseMove({ event: h, edge: _.value });
6378
+ N.mouseMove({ event: h, edge: w.value });
6379
6379
  }
6380
6380
  function Q(h) {
6381
- N.mouseLeave({ event: h, edge: _.value });
6381
+ N.mouseLeave({ event: h, edge: w.value });
6382
6382
  }
6383
6383
  function ie(h) {
6384
6384
  G(h, !0);
@@ -6408,7 +6408,7 @@ const oi = vo, vd = me({
6408
6408
  connectionStatus: u,
6409
6409
  viewport: c,
6410
6410
  findNode: d
6411
- } = we(), f = (e = wt(bn)) == null ? void 0 : e["connection-line"], g = ne(() => {
6411
+ } = _e(), f = (e = _t(bn)) == null ? void 0 : e["connection-line"], g = ne(() => {
6412
6412
  var M;
6413
6413
  return d((M = o.value) == null ? void 0 : M.nodeId);
6414
6414
  }), x = ne(() => {
@@ -6423,7 +6423,7 @@ const oi = vo, vd = me({
6423
6423
  () => s.value.markerEnd ? `url(#${zt(s.value.markerEnd, t)})` : ""
6424
6424
  );
6425
6425
  return () => {
6426
- var M, _, N;
6426
+ var M, w, N;
6427
6427
  if (!g.value || !o.value)
6428
6428
  return null;
6429
6429
  const z = o.value.id, Y = o.value.type, F = g.value.handleBounds;
@@ -6434,14 +6434,14 @@ const oi = vo, vd = me({
6434
6434
  }
6435
6435
  if (!I)
6436
6436
  return null;
6437
- const T = (z ? I.find((A) => A.id === z) : I[0]) ?? null, O = T?.position ?? R.Top, { x: D, y: w } = yt(g.value, T, O);
6437
+ const T = (z ? I.find((A) => A.id === z) : I[0]) ?? null, O = T?.position ?? R.Top, { x: D, y: _ } = yt(g.value, T, O);
6438
6438
  let Z = null;
6439
6439
  x.value && (n.value === Je.Strict ? Z = ((M = x.value.handleBounds[Y === "source" ? "target" : "source"]) == null ? void 0 : M.find(
6440
6440
  (A) => {
6441
6441
  var V;
6442
6442
  return A.id === ((V = i.value) == null ? void 0 : V.id);
6443
6443
  }
6444
- )) || null : Z = ((_ = [...x.value.handleBounds.source ?? [], ...x.value.handleBounds.target ?? []]) == null ? void 0 : _.find(
6444
+ )) || null : Z = ((w = [...x.value.handleBounds.source ?? [], ...x.value.handleBounds.target ?? []]) == null ? void 0 : w.find(
6445
6445
  (A) => {
6446
6446
  var V;
6447
6447
  return A.id === ((V = i.value) == null ? void 0 : V.id);
@@ -6454,7 +6454,7 @@ const oi = vo, vd = me({
6454
6454
  let b = "";
6455
6455
  const $ = {
6456
6456
  sourceX: D,
6457
- sourceY: w,
6457
+ sourceY: _,
6458
6458
  sourcePosition: O,
6459
6459
  targetX: E.value.x,
6460
6460
  targetY: E.value.y,
@@ -6463,7 +6463,7 @@ const oi = vo, vd = me({
6463
6463
  return P === je.Bezier ? [b] = go($) : P === je.Step ? [b] = jn({
6464
6464
  ...$,
6465
6465
  borderRadius: 0
6466
- }) : P === je.SmoothStep ? [b] = jn($) : P === je.SimpleBezier ? [b] = hr($) : b = `M${D},${w} ${E.value.x},${E.value.y}`, pe(
6466
+ }) : P === je.SmoothStep ? [b] = jn($) : P === je.SimpleBezier ? [b] = hr($) : b = `M${D},${_} ${E.value.x},${E.value.y}`, pe(
6467
6467
  "svg",
6468
6468
  { class: "vue-flow__edges vue-flow__connectionline vue-flow__container" },
6469
6469
  pe(
@@ -6471,7 +6471,7 @@ const oi = vo, vd = me({
6471
6471
  { class: "vue-flow__connection" },
6472
6472
  f ? pe(f, {
6473
6473
  sourceX: D,
6474
- sourceY: w,
6474
+ sourceY: _,
6475
6475
  sourcePosition: O,
6476
6476
  targetX: E.value.x,
6477
6477
  targetY: E.value.y,
@@ -6497,11 +6497,11 @@ const oi = vo, vd = me({
6497
6497
  );
6498
6498
  };
6499
6499
  }
6500
- }), yd = md, _d = ["id", "markerWidth", "markerHeight", "markerUnits", "orient"], wd = {
6500
+ }), yd = md, wd = ["id", "markerWidth", "markerHeight", "markerUnits", "orient"], _d = {
6501
6501
  name: "MarkerType",
6502
6502
  compatConfig: { MODE: 3 }
6503
6503
  }, bd = /* @__PURE__ */ me({
6504
- ...wd,
6504
+ ..._d,
6505
6505
  props: {
6506
6506
  id: {},
6507
6507
  type: {},
@@ -6546,7 +6546,7 @@ const oi = vo, vd = me({
6546
6546
  fill: "none",
6547
6547
  points: "-5,-4 0,0 -5,4"
6548
6548
  }, null, 4)) : Ne("", !0)
6549
- ], 8, _d));
6549
+ ], 8, wd));
6550
6550
  }
6551
6551
  }), Ed = {
6552
6552
  class: "vue-flow__marker vue-flow__container",
@@ -6557,7 +6557,7 @@ const oi = vo, vd = me({
6557
6557
  }, Sd = /* @__PURE__ */ me({
6558
6558
  ...xd,
6559
6559
  setup(e) {
6560
- const { id: t, edges: n, connectionLineOptions: o, defaultMarkerColor: i } = we(), r = ne(() => {
6560
+ const { id: t, edges: n, connectionLineOptions: o, defaultMarkerColor: i } = _e(), r = ne(() => {
6561
6561
  const l = /* @__PURE__ */ new Set(), a = [], s = (u) => {
6562
6562
  if (u) {
6563
6563
  const c = zt(u, t);
@@ -6572,7 +6572,7 @@ const oi = vo, vd = me({
6572
6572
  return a.sort((u, c) => u.id.localeCompare(c.id));
6573
6573
  });
6574
6574
  return (l, a) => (oe(), he("svg", Ed, [
6575
- _e("defs", null, [
6575
+ we("defs", null, [
6576
6576
  (oe(!0), he(Te, null, eo(r.value, (s) => (oe(), Re(bd, {
6577
6577
  id: s.id,
6578
6578
  key: s.id,
@@ -6593,7 +6593,7 @@ const oi = vo, vd = me({
6593
6593
  }, Cd = /* @__PURE__ */ me({
6594
6594
  ...Nd,
6595
6595
  setup(e) {
6596
- const { findNode: t, getEdges: n, elevateEdgesOnSelect: o } = we();
6596
+ const { findNode: t, getEdges: n, elevateEdgesOnSelect: o } = _e();
6597
6597
  return (i, r) => (oe(), he(Te, null, [
6598
6598
  Me(Sd),
6599
6599
  (oe(!0), he(Te, null, eo(J(n), (l) => (oe(), he("svg", {
@@ -6632,20 +6632,20 @@ const oi = vo, vd = me({
6632
6632
  snapToGrid: S,
6633
6633
  snapGrid: C,
6634
6634
  nodeDragThreshold: M,
6635
- nodesDraggable: _,
6635
+ nodesDraggable: w,
6636
6636
  elementsSelectable: N,
6637
6637
  nodesConnectable: z,
6638
6638
  nodesFocusable: Y,
6639
6639
  hooks: F
6640
- } = we(), I = ge(null);
6640
+ } = _e(), I = ge(null);
6641
6641
  ft(rr, I), ft(ir, e.id);
6642
- const T = wt(bn), O = Bt(), D = ur(), { node: w, parentNode: Z } = sr(e.id), { emit: y, on: P } = cc(w, l), b = be(() => typeof w.draggable > "u" ? _.value : w.draggable), $ = be(() => typeof w.selectable > "u" ? N.value : w.selectable), A = be(() => typeof w.connectable > "u" ? z.value : w.connectable), V = be(() => typeof w.focusable > "u" ? Y.value : w.focusable), B = ne(
6642
+ const T = _t(bn), O = Bt(), D = ur(), { node: _, parentNode: Z } = sr(e.id), { emit: y, on: P } = cc(_, l), b = be(() => typeof _.draggable > "u" ? w.value : _.draggable), $ = be(() => typeof _.selectable > "u" ? N.value : _.selectable), A = be(() => typeof _.connectable > "u" ? z.value : _.connectable), V = be(() => typeof _.focusable > "u" ? Y.value : _.focusable), B = ne(
6643
6643
  () => $.value || b.value || F.value.nodeClick.hasListeners() || F.value.nodeDoubleClick.hasListeners() || F.value.nodeMouseEnter.hasListeners() || F.value.nodeMouseMove.hasListeners() || F.value.nodeMouseLeave.hasListeners()
6644
- ), W = be(() => !!w.dimensions.width && !!w.dimensions.height), j = ne(() => {
6645
- const m = w.type || "default", p = T?.[`node-${m}`];
6644
+ ), W = be(() => !!_.dimensions.width && !!_.dimensions.height), j = ne(() => {
6645
+ const m = _.type || "default", p = T?.[`node-${m}`];
6646
6646
  if (p)
6647
6647
  return p;
6648
- let k = w.template || d.value[m];
6648
+ let k = _.template || d.value[m];
6649
6649
  if (typeof k == "string" && O) {
6650
6650
  const K = Object.keys(O.appContext.components);
6651
6651
  K && K.includes(m) && (k = li(m, !1));
@@ -6656,7 +6656,7 @@ const oi = vo, vd = me({
6656
6656
  el: I,
6657
6657
  disabled: () => !b.value,
6658
6658
  selectable: $,
6659
- dragHandle: () => w.dragHandle,
6659
+ dragHandle: () => _.dragHandle,
6660
6660
  onStart(m) {
6661
6661
  y.dragStart(m);
6662
6662
  },
@@ -6669,15 +6669,15 @@ const oi = vo, vd = me({
6669
6669
  onClick(m) {
6670
6670
  v(m);
6671
6671
  }
6672
- }), H = ne(() => w.class instanceof Function ? w.class(w) : w.class), G = ne(() => {
6673
- const m = (w.style instanceof Function ? w.style(w) : w.style) || {}, p = w.width instanceof Function ? w.width(w) : w.width, k = w.height instanceof Function ? w.height(w) : w.height;
6672
+ }), H = ne(() => _.class instanceof Function ? _.class(_) : _.class), G = ne(() => {
6673
+ const m = (_.style instanceof Function ? _.style(_) : _.style) || {}, p = _.width instanceof Function ? _.width(_) : _.width, k = _.height instanceof Function ? _.height(_) : _.height;
6674
6674
  return !m.width && p && (m.width = typeof p == "string" ? p : `${p}px`), !m.height && k && (m.height = typeof k == "string" ? k : `${k}px`), m;
6675
- }), q = be(() => Number(w.zIndex ?? G.value.zIndex ?? 0));
6675
+ }), q = be(() => Number(_.zIndex ?? G.value.zIndex ?? 0));
6676
6676
  return c((m) => {
6677
6677
  (m.includes(e.id) || !m.length) && ue();
6678
6678
  }), Ue(() => {
6679
6679
  ve(
6680
- () => w.hidden,
6680
+ () => _.hidden,
6681
6681
  (m = !1, p, k) => {
6682
6682
  !m && I.value && (e.resizeObserver.observe(I.value), k(() => {
6683
6683
  I.value && e.resizeObserver.unobserve(I.value);
@@ -6685,14 +6685,14 @@ const oi = vo, vd = me({
6685
6685
  },
6686
6686
  { immediate: !0, flush: "post" }
6687
6687
  );
6688
- }), ve([() => w.type, () => w.sourcePosition, () => w.targetPosition], () => {
6688
+ }), ve([() => _.type, () => _.sourcePosition, () => _.targetPosition], () => {
6689
6689
  $e(() => {
6690
6690
  u([{ id: e.id, nodeElement: I.value, forceUpdate: !0 }]);
6691
6691
  });
6692
6692
  }), ve(
6693
6693
  [
6694
- () => w.position.x,
6695
- () => w.position.y,
6694
+ () => _.position.x,
6695
+ () => _.position.y,
6696
6696
  () => {
6697
6697
  var m;
6698
6698
  return (m = Z.value) == null ? void 0 : m.computedPosition.x;
@@ -6706,9 +6706,9 @@ const oi = vo, vd = me({
6706
6706
  return (m = Z.value) == null ? void 0 : m.computedPosition.z;
6707
6707
  },
6708
6708
  q,
6709
- () => w.selected,
6710
- () => w.dimensions.height,
6711
- () => w.dimensions.width,
6709
+ () => _.selected,
6710
+ () => _.dimensions.height,
6711
+ () => _.dimensions.width,
6712
6712
  () => {
6713
6713
  var m;
6714
6714
  return (m = Z.value) == null ? void 0 : m.dimensions.height;
@@ -6722,44 +6722,44 @@ const oi = vo, vd = me({
6722
6722
  const ee = {
6723
6723
  x: m,
6724
6724
  y: p,
6725
- z: U + (g.value && w.selected ? 1e3 : 0)
6725
+ z: U + (g.value && _.selected ? 1e3 : 0)
6726
6726
  };
6727
- typeof k < "u" && typeof K < "u" ? w.computedPosition = Vu({ x: k, y: K, z: X }, ee) : w.computedPosition = ee;
6727
+ typeof k < "u" && typeof K < "u" ? _.computedPosition = Vu({ x: k, y: K, z: X }, ee) : _.computedPosition = ee;
6728
6728
  },
6729
6729
  { flush: "post", immediate: !0 }
6730
- ), ve([() => w.extent, f], ([m, p], [k, K]) => {
6730
+ ), ve([() => _.extent, f], ([m, p], [k, K]) => {
6731
6731
  (m !== k || p !== K) && se();
6732
- }), w.extent === "parent" || typeof w.extent == "object" && "range" in w.extent && w.extent.range === "parent" ? Rn(() => W).toBe(!0).then(se) : se(), () => w.hidden ? null : pe(
6732
+ }), _.extent === "parent" || typeof _.extent == "object" && "range" in _.extent && _.extent.range === "parent" ? Rn(() => W).toBe(!0).then(se) : se(), () => _.hidden ? null : pe(
6733
6733
  "div",
6734
6734
  {
6735
6735
  ref: I,
6736
- "data-id": w.id,
6736
+ "data-id": _.id,
6737
6737
  class: [
6738
6738
  "vue-flow__node",
6739
- `vue-flow__node-${j.value === !1 ? "default" : w.type || "default"}`,
6739
+ `vue-flow__node-${j.value === !1 ? "default" : _.type || "default"}`,
6740
6740
  {
6741
6741
  [n.value]: b.value,
6742
6742
  dragging: re?.value,
6743
6743
  draggable: b.value,
6744
- selected: w.selected,
6744
+ selected: _.selected,
6745
6745
  selectable: $.value,
6746
- parent: w.isParent
6746
+ parent: _.isParent
6747
6747
  },
6748
6748
  H.value
6749
6749
  ],
6750
6750
  style: {
6751
6751
  visibility: W.value ? "visible" : "hidden",
6752
- zIndex: w.computedPosition.z ?? q.value,
6753
- transform: `translate(${w.computedPosition.x}px,${w.computedPosition.y}px)`,
6752
+ zIndex: _.computedPosition.z ?? q.value,
6753
+ transform: `translate(${_.computedPosition.x}px,${_.computedPosition.y}px)`,
6754
6754
  pointerEvents: B.value ? "all" : "none",
6755
6755
  ...G.value
6756
6756
  },
6757
6757
  tabIndex: V.value ? 0 : void 0,
6758
6758
  role: V.value ? "group" : void 0,
6759
6759
  "aria-describedby": x.value ? void 0 : `${Fi}-${t}`,
6760
- "aria-label": w.ariaLabel,
6760
+ "aria-label": _.ariaLabel,
6761
6761
  "aria-roledescription": "node",
6762
- ...w.domAttributes,
6762
+ ..._.domAttributes,
6763
6763
  onMouseenter: te,
6764
6764
  onMousemove: fe,
6765
6765
  onMouseleave: Q,
@@ -6770,74 +6770,74 @@ const oi = vo, vd = me({
6770
6770
  },
6771
6771
  [
6772
6772
  pe(j.value === !1 ? d.value.default : j.value, {
6773
- id: w.id,
6774
- type: w.type,
6775
- data: w.data,
6776
- events: { ...w.events, ...P },
6777
- selected: w.selected,
6778
- resizing: w.resizing,
6773
+ id: _.id,
6774
+ type: _.type,
6775
+ data: _.data,
6776
+ events: { ..._.events, ...P },
6777
+ selected: _.selected,
6778
+ resizing: _.resizing,
6779
6779
  dragging: re.value,
6780
6780
  connectable: A.value,
6781
- position: w.computedPosition,
6782
- dimensions: w.dimensions,
6783
- isValidTargetPos: w.isValidTargetPos,
6784
- isValidSourcePos: w.isValidSourcePos,
6785
- parent: w.parentNode,
6786
- parentNodeId: w.parentNode,
6787
- zIndex: w.computedPosition.z ?? q.value,
6788
- targetPosition: w.targetPosition,
6789
- sourcePosition: w.sourcePosition,
6790
- label: w.label,
6791
- dragHandle: w.dragHandle,
6781
+ position: _.computedPosition,
6782
+ dimensions: _.dimensions,
6783
+ isValidTargetPos: _.isValidTargetPos,
6784
+ isValidSourcePos: _.isValidSourcePos,
6785
+ parent: _.parentNode,
6786
+ parentNodeId: _.parentNode,
6787
+ zIndex: _.computedPosition.z ?? q.value,
6788
+ targetPosition: _.targetPosition,
6789
+ sourcePosition: _.sourcePosition,
6790
+ label: _.label,
6791
+ dragHandle: _.dragHandle,
6792
6792
  onUpdateNodeInternals: ue
6793
6793
  })
6794
6794
  ]
6795
6795
  );
6796
6796
  function se() {
6797
- const m = w.computedPosition, { computedPosition: p, position: k } = fo(
6798
- w,
6799
- S.value ? _n(m, C.value) : m,
6797
+ const m = _.computedPosition, { computedPosition: p, position: k } = fo(
6798
+ _,
6799
+ S.value ? wn(m, C.value) : m,
6800
6800
  l.error,
6801
6801
  f.value,
6802
6802
  Z.value
6803
6803
  );
6804
- (w.computedPosition.x !== p.x || w.computedPosition.y !== p.y) && (w.computedPosition = { ...w.computedPosition, ...p }), (w.position.x !== k.x || w.position.y !== k.y) && (w.position = k);
6804
+ (_.computedPosition.x !== p.x || _.computedPosition.y !== p.y) && (_.computedPosition = { ..._.computedPosition, ...p }), (_.position.x !== k.x || _.position.y !== k.y) && (_.position = k);
6805
6805
  }
6806
6806
  function ue() {
6807
6807
  I.value && u([{ id: e.id, nodeElement: I.value, forceUpdate: !0 }]);
6808
6808
  }
6809
6809
  function te(m) {
6810
- re?.value || y.mouseEnter({ event: m, node: w });
6810
+ re?.value || y.mouseEnter({ event: m, node: _ });
6811
6811
  }
6812
6812
  function fe(m) {
6813
- re?.value || y.mouseMove({ event: m, node: w });
6813
+ re?.value || y.mouseMove({ event: m, node: _ });
6814
6814
  }
6815
6815
  function Q(m) {
6816
- re?.value || y.mouseLeave({ event: m, node: w });
6816
+ re?.value || y.mouseLeave({ event: m, node: _ });
6817
6817
  }
6818
6818
  function ie(m) {
6819
- return y.contextMenu({ event: m, node: w });
6819
+ return y.contextMenu({ event: m, node: _ });
6820
6820
  }
6821
6821
  function le(m) {
6822
- return y.doubleClick({ event: m, node: w });
6822
+ return y.doubleClick({ event: m, node: _ });
6823
6823
  }
6824
6824
  function v(m) {
6825
6825
  $.value && (!o.value || !b.value || M.value > 0) && Qn(
6826
- w,
6826
+ _,
6827
6827
  r.value,
6828
6828
  s,
6829
6829
  a,
6830
6830
  i,
6831
6831
  !1,
6832
6832
  I.value
6833
- ), y.click({ event: m, node: w });
6833
+ ), y.click({ event: m, node: _ });
6834
6834
  }
6835
6835
  function h(m) {
6836
6836
  if (!(Kn(m) || x.value))
6837
6837
  if (Gi.includes(m.key) && $.value) {
6838
6838
  const p = m.key === "Escape";
6839
6839
  Qn(
6840
- w,
6840
+ _,
6841
6841
  r.value,
6842
6842
  s,
6843
6843
  a,
@@ -6845,7 +6845,7 @@ const oi = vo, vd = me({
6845
6845
  p,
6846
6846
  I.value
6847
6847
  );
6848
- } else b.value && w.selected && ct[m.key] && (m.preventDefault(), E.value = `Moved selected node ${m.key.replace("Arrow", "").toLowerCase()}. New position, x: ${~~w.position.x}, y: ${~~w.position.y}`, D(
6848
+ } else b.value && _.selected && ct[m.key] && (m.preventDefault(), E.value = `Moved selected node ${m.key.replace("Arrow", "").toLowerCase()}. New position, x: ${~~_.position.x}, y: ${~~_.position.y}`, D(
6849
6849
  {
6850
6850
  x: ct[m.key].x,
6851
6851
  y: ct[m.key].y
@@ -6863,13 +6863,13 @@ const oi = vo, vd = me({
6863
6863
  }, $d = /* @__PURE__ */ me({
6864
6864
  ...Pd,
6865
6865
  setup(e) {
6866
- const { viewportRef: t } = we(), n = be(() => {
6866
+ const { viewportRef: t } = _e(), n = be(() => {
6867
6867
  var o;
6868
6868
  return (o = t.value) == null ? void 0 : o.getElementsByClassName("vue-flow__edge-labels")[0];
6869
6869
  });
6870
6870
  return (o, i) => (oe(), he("svg", null, [
6871
6871
  (oe(), he("foreignObject", kd, [
6872
- (oe(), Re(_r, {
6872
+ (oe(), Re(wr, {
6873
6873
  to: n.value,
6874
6874
  disabled: !n.value
6875
6875
  }, [
@@ -6880,7 +6880,7 @@ const oi = vo, vd = me({
6880
6880
  }
6881
6881
  });
6882
6882
  function Td(e = { includeHiddenNodes: !1 }) {
6883
- const { nodes: t } = we();
6883
+ const { nodes: t } = _e();
6884
6884
  return ne(() => {
6885
6885
  if (t.value.length === 0)
6886
6886
  return !1;
@@ -6896,7 +6896,7 @@ const Dd = { class: "vue-flow__nodes vue-flow__container" }, Ad = {
6896
6896
  }, Od = /* @__PURE__ */ me({
6897
6897
  ...Ad,
6898
6898
  setup(e) {
6899
- const { getNodes: t, updateNodeDimensions: n, emits: o } = we(), i = Td(), r = ge();
6899
+ const { getNodes: t, updateNodeDimensions: n, emits: o } = _e(), i = Td(), r = ge();
6900
6900
  return ve(
6901
6901
  i,
6902
6902
  (l) => {
@@ -6933,7 +6933,7 @@ const Dd = { class: "vue-flow__nodes vue-flow__container" }, Ad = {
6933
6933
  }
6934
6934
  });
6935
6935
  function zd() {
6936
- const { emits: e } = we();
6936
+ const { emits: e } = _e();
6937
6937
  Ue(() => {
6938
6938
  if (or()) {
6939
6939
  const t = document.querySelector(".vue-flow__pane");
@@ -6941,7 +6941,7 @@ function zd() {
6941
6941
  }
6942
6942
  });
6943
6943
  }
6944
- const Bd = /* @__PURE__ */ _e("div", { class: "vue-flow__edge-labels" }, null, -1), Vd = {
6944
+ const Bd = /* @__PURE__ */ we("div", { class: "vue-flow__edge-labels" }, null, -1), Vd = {
6945
6945
  name: "VueFlow",
6946
6946
  compatConfig: { MODE: 3 }
6947
6947
  }, Rd = /* @__PURE__ */ me({
@@ -7009,7 +7009,7 @@ const Bd = /* @__PURE__ */ _e("div", { class: "vue-flow__edge-labels" }, null, -
7009
7009
  },
7010
7010
  emits: ["nodesChange", "edgesChange", "nodesInitialized", "paneReady", "init", "updateNodeInternals", "error", "connect", "connectStart", "connectEnd", "clickConnectStart", "clickConnectEnd", "moveStart", "move", "moveEnd", "selectionDragStart", "selectionDrag", "selectionDragStop", "selectionContextMenu", "selectionStart", "selectionEnd", "viewportChangeStart", "viewportChange", "viewportChangeEnd", "paneScroll", "paneClick", "paneContextMenu", "paneMouseEnter", "paneMouseMove", "paneMouseLeave", "edgeUpdate", "edgeContextMenu", "edgeMouseEnter", "edgeMouseMove", "edgeMouseLeave", "edgeDoubleClick", "edgeClick", "edgeUpdateStart", "edgeUpdateEnd", "nodeContextMenu", "nodeMouseEnter", "nodeMouseMove", "nodeMouseLeave", "nodeDoubleClick", "nodeClick", "nodeDragStart", "nodeDrag", "nodeDragStop", "miniMapNodeClick", "miniMapNodeDoubleClick", "miniMapNodeMouseEnter", "miniMapNodeMouseMove", "miniMapNodeMouseLeave", "update:modelValue", "update:nodes", "update:edges"],
7011
7011
  setup(e, { expose: t, emit: n }) {
7012
- const o = e, i = wr(), r = Cn(o, "modelValue", n), l = Cn(o, "nodes", n), a = Cn(o, "edges", n), s = we(o), u = gc({ modelValue: r, nodes: l, edges: a }, o, s);
7012
+ const o = e, i = _r(), r = Cn(o, "modelValue", n), l = Cn(o, "nodes", n), a = Cn(o, "edges", n), s = _e(o), u = gc({ modelValue: r, nodes: l, edges: a }, o, s);
7013
7013
  return pc(n, s.hooks), fd(), zd(), ft(bn, i), br(() => {
7014
7014
  u();
7015
7015
  }), t(s), (c, d) => (oe(), he("div", {
@@ -7044,7 +7044,7 @@ const Bd = /* @__PURE__ */ _e("div", { class: "vue-flow__edge-labels" }, null, -
7044
7044
  source: {},
7045
7045
  target: {},
7046
7046
  type: {},
7047
- label: {},
7047
+ label: { type: [String, Object, Function] },
7048
7048
  style: {},
7049
7049
  selected: { type: Boolean },
7050
7050
  sourcePosition: {},
@@ -7082,16 +7082,16 @@ const Bd = /* @__PURE__ */ _e("div", { class: "vue-flow__edge-labels" }, null, -
7082
7082
  l.value = !1, o("change", r.value);
7083
7083
  }, d = ne(() => go(n));
7084
7084
  return (f, g) => (oe(), he(Te, null, [
7085
- _e("path", {
7086
- id: f.id,
7087
- style: He(f.style),
7085
+ we("path", {
7086
+ id: e.id,
7087
+ style: He(e.style),
7088
7088
  class: "vue-flow__edge-path",
7089
7089
  d: d.value[0],
7090
- "marker-end": f.markerEnd
7090
+ "marker-end": e.markerEnd
7091
7091
  }, null, 12, Hd),
7092
7092
  Me(J($d), null, {
7093
7093
  default: ht(() => [
7094
- _e("div", {
7094
+ we("div", {
7095
7095
  style: He({
7096
7096
  pointerEvents: "all",
7097
7097
  position: "absolute",
@@ -7100,9 +7100,9 @@ const Bd = /* @__PURE__ */ _e("div", { class: "vue-flow__edge-labels" }, null, -
7100
7100
  class: "nodrag nopan editable-edge-label",
7101
7101
  onClick: g[2] || (g[2] = (x) => s())
7102
7102
  }, [
7103
- _e("div", Ld, gt(f.label), 1),
7103
+ we("div", Ld, gt(e.label), 1),
7104
7104
  l.value ? (oe(), he("div", Fd, [
7105
- ui(_e("input", {
7105
+ ui(we("input", {
7106
7106
  ref: "labelInput",
7107
7107
  class: "label-input",
7108
7108
  "onUpdate:modelValue": g[0] || (g[0] = (x) => r.value = x),
@@ -7159,9 +7159,9 @@ const Bd = /* @__PURE__ */ _e("div", { class: "vue-flow__edge-labels" }, null, -
7159
7159
  return (d, f) => (oe(), he("div", {
7160
7160
  onClick: f[2] || (f[2] = (g) => s())
7161
7161
  }, [
7162
- _e("div", null, gt(d.label), 1),
7162
+ we("div", null, gt(e.label), 1),
7163
7163
  l.value ? (oe(), he("div", Xd, [
7164
- ui(_e("input", {
7164
+ ui(we("input", {
7165
7165
  ref: "labelInput",
7166
7166
  class: "label-input",
7167
7167
  "onUpdate:modelValue": f[0] || (f[0] = (g) => r.value = g),
@@ -7171,17 +7171,17 @@ const Bd = /* @__PURE__ */ _e("div", { class: "vue-flow__edge-labels" }, null, -
7171
7171
  [di, r.value]
7172
7172
  ])
7173
7173
  ])) : Ne("", !0),
7174
- d.data.hasInput ? (oe(), Re(J(_t), {
7174
+ e.data.hasInput ? (oe(), Re(J(wt), {
7175
7175
  key: 1,
7176
7176
  id: "a",
7177
7177
  type: "target",
7178
- position: d.targetPosition
7178
+ position: e.targetPosition
7179
7179
  }, null, 8, ["position"])) : Ne("", !0),
7180
- d.data.hasOutput ? (oe(), Re(J(_t), {
7180
+ e.data.hasOutput ? (oe(), Re(J(wt), {
7181
7181
  key: 2,
7182
7182
  id: "b",
7183
7183
  type: "source",
7184
- position: d.sourcePosition
7184
+ position: e.sourcePosition
7185
7185
  }, null, 8, ["position"])) : Ne("", !0)
7186
7186
  ]));
7187
7187
  }
@@ -7212,7 +7212,7 @@ const Bd = /* @__PURE__ */ _e("div", { class: "vue-flow__edge-labels" }, null, -
7212
7212
  set: (I) => {
7213
7213
  n("update:modelValue", JSON.parse(JSON.stringify(I)));
7214
7214
  }
7215
- }), { onConnect: u, addEdges: c, onEdgeContextMenu: d, onPaneReady: f, removeEdges: g } = we();
7215
+ }), { onConnect: u, addEdges: c, onEdgeContextMenu: d, onPaneReady: f, removeEdges: g } = _e();
7216
7216
  Ue(() => {
7217
7217
  document.removeEventListener("keypress", M), document.addEventListener("keypress", M);
7218
7218
  }), to(() => {
@@ -7239,13 +7239,13 @@ const Bd = /* @__PURE__ */ _e("div", { class: "vue-flow__edge-labels" }, null, -
7239
7239
  window.scrollBy(0, I.deltaY);
7240
7240
  }, M = (I) => {
7241
7241
  o.value && I.ctrlKey == !0 && ((I.key == "+" || I.key == "=") && r.value.zoomIn(), I.key == "-" && r.value.zoomOut());
7242
- }, _ = async () => {
7242
+ }, w = async () => {
7243
7243
  await r.value.fitView();
7244
7244
  }, N = () => {
7245
7245
  let I = !1, T = { x: Math.random() * 200, y: Math.random() * 200 };
7246
7246
  if (a.value > -1) {
7247
- const w = i.value[a.value];
7248
- w.data.hasOutput && (T = { x: w.position.x + 200, y: w.position.y + 50 }, I = !0);
7247
+ const _ = i.value[a.value];
7248
+ _.data.hasOutput && (T = { x: _.position.x + 200, y: _.position.y + 50 }, I = !0);
7249
7249
  }
7250
7250
  const O = i.value.length, D = `node-${O}`;
7251
7251
  if (i.value.push({
@@ -7267,9 +7267,9 @@ const Bd = /* @__PURE__ */ _e("div", { class: "vue-flow__edge-labels" }, null, -
7267
7267
  // position: { x: Math.random() * vueFlowInstance.value.dimensions.width, y: Math.random() * vueFlowInstance.value.dimensions.height }
7268
7268
  position: T
7269
7269
  }), I) {
7270
- let w = `edge-${O + 1}`;
7270
+ let _ = `edge-${O + 1}`;
7271
7271
  i.value.push({
7272
- id: w,
7272
+ id: _,
7273
7273
  source: l.value,
7274
7274
  target: D,
7275
7275
  type: "editable",
@@ -7277,7 +7277,7 @@ const Bd = /* @__PURE__ */ _e("div", { class: "vue-flow__edge-labels" }, null, -
7277
7277
  animated: !0,
7278
7278
  events: {
7279
7279
  click: () => {
7280
- l.value = w;
7280
+ l.value = _;
7281
7281
  }
7282
7282
  }
7283
7283
  });
@@ -7312,38 +7312,38 @@ const Bd = /* @__PURE__ */ _e("div", { class: "vue-flow__edge-labels" }, null, -
7312
7312
  return d(({ event: I, edge: T }) => {
7313
7313
  F(T.id);
7314
7314
  }), (I, T) => (oe(), he("div", {
7315
- class: dt(["node-editor-wrapper", I.nodeContainerClass]),
7315
+ class: dt(["node-editor-wrapper", e.nodeContainerClass]),
7316
7316
  onMouseover: T[1] || (T[1] = (O) => o.value = !0),
7317
7317
  onMouseleave: T[2] || (T[2] = (O) => o.value = !1)
7318
7318
  }, [
7319
- _e("div", Zd, [
7320
- _e("div", Wd, [
7321
- _e("div", null, [
7322
- T[3] || (T[3] = _e("b", null, "Selected Node:", -1)),
7319
+ we("div", Zd, [
7320
+ we("div", Wd, [
7321
+ we("div", null, [
7322
+ T[3] || (T[3] = we("b", null, "Selected Node:", -1)),
7323
7323
  ai(" " + gt(l.value ? l.value : "none"), 1)
7324
7324
  ])
7325
7325
  ]),
7326
- _e("div", Kd, [
7327
- _e("div", null, [
7328
- _e("button", {
7326
+ we("div", Kd, [
7327
+ we("div", null, [
7328
+ we("button", {
7329
7329
  class: "button-default",
7330
7330
  onClick: N
7331
7331
  }, "Add Node")
7332
7332
  ]),
7333
- _e("div", null, [
7334
- _e("button", {
7333
+ we("div", null, [
7334
+ we("button", {
7335
7335
  class: "button-default",
7336
- onClick: _
7336
+ onClick: w
7337
7337
  }, "Center")
7338
7338
  ]),
7339
7339
  a.value > -1 ? (oe(), he("div", qd, [
7340
- _e("button", {
7340
+ we("button", {
7341
7341
  class: "button-default",
7342
7342
  onClick: S
7343
7343
  }, "Shift Input Position")
7344
7344
  ])) : Ne("", !0),
7345
7345
  a.value > -1 ? (oe(), he("div", Jd, [
7346
- _e("button", {
7346
+ we("button", {
7347
7347
  class: "button-default",
7348
7348
  onClick: E
7349
7349
  }, "Shift Output Position")
@@ -7447,7 +7447,7 @@ const Bd = /* @__PURE__ */ _e("div", { class: "vue-flow__edge-labels" }, null, -
7447
7447
  Me(vr, {
7448
7448
  modelValue: i.value,
7449
7449
  "onUpdate:modelValue": a[0] || (a[0] = (s) => i.value = s),
7450
- "node-container-class": l.nodeContainerClass
7450
+ "node-container-class": e.nodeContainerClass
7451
7451
  }, null, 8, ["modelValue", "node-container-class"])
7452
7452
  ]));
7453
7453
  }