@iterms/tinyflow-ai-vue 0.2.15 → 0.2.16

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.
package/dist/index.js CHANGED
@@ -5453,8 +5453,8 @@ function cd() {
5453
5453
  return function(ne) {
5454
5454
  if (ne === 1) ne = X;
5455
5455
  else {
5456
- var xe = oe(ne), Pe = q / xe[2];
5457
- ne = new Bn(Pe, J[0] - xe[0] * Pe, J[1] - xe[1] * Pe);
5456
+ var we = oe(ne), Pe = q / we[2];
5457
+ ne = new Bn(Pe, J[0] - we[0] * Pe, J[1] - we[1] * Pe);
5458
5458
  }
5459
5459
  B.zoom(null, ne);
5460
5460
  };
@@ -5545,8 +5545,8 @@ function cd() {
5545
5545
  for (Vo(k), H = 0; H < M; ++H)
5546
5546
  B = T[H], W = vn(B, this), P.touch0 && P.touch0[2] === B.identifier ? P.touch0[0] = W : P.touch1 && P.touch1[2] === B.identifier && (P.touch1[0] = W);
5547
5547
  if (B = P.that.__zoom, P.touch1) {
5548
- var q = P.touch0[0], G = P.touch0[1], X = P.touch1[0], oe = P.touch1[1], ne = (ne = X[0] - q[0]) * ne + (ne = X[1] - q[1]) * ne, xe = (xe = oe[0] - G[0]) * xe + (xe = oe[1] - G[1]) * xe;
5549
- B = p(B, Math.sqrt(ne / xe)), W = [(q[0] + X[0]) / 2, (q[1] + X[1]) / 2], J = [(G[0] + oe[0]) / 2, (G[1] + oe[1]) / 2];
5548
+ var q = P.touch0[0], G = P.touch0[1], X = P.touch1[0], oe = P.touch1[1], ne = (ne = X[0] - q[0]) * ne + (ne = X[1] - q[1]) * ne, we = (we = oe[0] - G[0]) * we + (we = oe[1] - G[1]) * we;
5549
+ B = p(B, Math.sqrt(ne / we)), W = [(q[0] + X[0]) / 2, (q[1] + X[1]) / 2], J = [(G[0] + oe[0]) / 2, (G[1] + oe[1]) / 2];
5550
5550
  } else if (P.touch0) W = P.touch0[0], J = P.touch0[1];
5551
5551
  else return;
5552
5552
  P.zoom("touch", n(x(B, W, J), P.extent, s));
@@ -6563,13 +6563,13 @@ function $p({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: r, o
6563
6563
  [k[1][0], k[1][1]]
6564
6564
  ];
6565
6565
  if (a.size > 1 && k && !X.extent) {
6566
- const { positionAbsolute: Ae } = X.internals, we = Ae.x - q.x + k[0][0], be = Ae.x + X.measured.width - q.x2 + k[1][0], ce = Ae.y - q.y + k[0][1], Q = Ae.y + X.measured.height - q.y2 + k[1][1];
6566
+ const { positionAbsolute: Ae } = X.internals, _e = Ae.x - q.x + k[0][0], be = Ae.x + X.measured.width - q.x2 + k[1][0], ce = Ae.y - q.y + k[0][1], Q = Ae.y + X.measured.height - q.y2 + k[1][1];
6567
6567
  ne = [
6568
- [we, ce],
6568
+ [_e, ce],
6569
6569
  [be, Q]
6570
6570
  ];
6571
6571
  }
6572
- const { position: xe, positionAbsolute: Pe } = q2({
6572
+ const { position: we, positionAbsolute: Pe } = q2({
6573
6573
  nodeId: G,
6574
6574
  nextPosition: oe,
6575
6575
  nodeLookup: Y,
@@ -6577,7 +6577,7 @@ function $p({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: r, o
6577
6577
  nodeOrigin: T,
6578
6578
  onError: B
6579
6579
  });
6580
- J = J || X.position.x !== xe.x || X.position.y !== xe.y, X.position = xe, X.internals.positionAbsolute = Pe;
6580
+ J = J || X.position.x !== we.x || X.position.y !== we.y, X.position = we, X.internals.positionAbsolute = Pe;
6581
6581
  }
6582
6582
  if (J && (W(a, !0), F && (r || M || !m && H))) {
6583
6583
  const [G, X] = Xs({
@@ -6740,12 +6740,12 @@ function Np(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: o,
6740
6740
  v == null || v(e, { nodeId: o, handleId: r, handleType: Y });
6741
6741
  function ne(Pe) {
6742
6742
  if (!E() || !J) {
6743
- xe(Pe);
6743
+ we(Pe);
6744
6744
  return;
6745
6745
  }
6746
6746
  const Ae = m();
6747
6747
  P = jn(Pe, k), O = Sp(gi(P, Ae, !1, [1, 1]), n, l, J), T || (W(), T = !0);
6748
- const we = Sd(Pe, {
6748
+ const _e = Sd(Pe, {
6749
6749
  handle: O,
6750
6750
  connectionMode: t,
6751
6751
  fromNodeId: o,
@@ -6757,27 +6757,27 @@ function Np(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: o,
6757
6757
  flowId: g,
6758
6758
  nodeLookup: l
6759
6759
  });
6760
- B = we.handleDomNode, M = we.connection, H = Pp(!!O, we.isValid);
6760
+ B = _e.handleDomNode, M = _e.connection, H = Pp(!!O, _e.isValid);
6761
6761
  const be = {
6762
6762
  // from stays the same
6763
6763
  ...oe,
6764
6764
  isValid: H,
6765
6765
  to: O && H ? Qi({ x: O.x, y: O.y }, Ae) : P,
6766
- toHandle: we.toHandle,
6767
- toPosition: H && we.toHandle ? we.toHandle.position : au[J.position],
6768
- toNode: we.toHandle ? l.get(we.toHandle.nodeId) : null
6766
+ toHandle: _e.toHandle,
6767
+ toPosition: H && _e.toHandle ? _e.toHandle.position : au[J.position],
6768
+ toNode: _e.toHandle ? l.get(_e.toHandle.nodeId) : null
6769
6769
  };
6770
6770
  H && O && oe.toHandle && be.toHandle && oe.toHandle.type === be.toHandle.type && oe.toHandle.nodeId === be.toHandle.nodeId && oe.toHandle.id === be.toHandle.id && oe.to.x === be.to.x && oe.to.y === be.to.y || (x(be), oe = be);
6771
6771
  }
6772
- function xe(Pe) {
6772
+ function we(Pe) {
6773
6773
  (O || B) && M && H && (y == null || y(M));
6774
- const { inProgress: Ae, ...we } = oe, be = {
6775
- ...we,
6774
+ const { inProgress: Ae, ..._e } = oe, be = {
6775
+ ..._e,
6776
6776
  toPosition: oe.toHandle ? oe.toPosition : null
6777
6777
  };
6778
- C == null || C(Pe, be), i && (p == null || p(Pe, be)), h(), cancelAnimationFrame(L), T = !1, H = !1, M = null, B = null, S.removeEventListener("mousemove", ne), S.removeEventListener("mouseup", xe), S.removeEventListener("touchmove", ne), S.removeEventListener("touchend", xe);
6778
+ C == null || C(Pe, be), i && (p == null || p(Pe, be)), h(), cancelAnimationFrame(L), T = !1, H = !1, M = null, B = null, S.removeEventListener("mousemove", ne), S.removeEventListener("mouseup", we), S.removeEventListener("touchmove", ne), S.removeEventListener("touchend", we);
6779
6779
  }
6780
- S.addEventListener("mousemove", ne), S.addEventListener("mouseup", xe), S.addEventListener("touchmove", ne), S.addEventListener("touchend", xe);
6780
+ S.addEventListener("mousemove", ne), S.addEventListener("mouseup", we), S.addEventListener("touchmove", ne), S.addEventListener("touchend", we);
6781
6781
  }
6782
6782
  function Sd(e, { handle: t, connectionMode: n, fromNodeId: r, fromHandleId: o, fromType: i, doc: s, lib: a, flowId: l, isValidConnection: u = Ed, nodeLookup: c }) {
6783
6783
  const g = i === "target", f = t ? s.querySelector(`.${a}-flow__handle[data-id="${l}-${t == null ? void 0 : t.nodeId}-${t == null ? void 0 : t.id}-${t == null ? void 0 : t.type}"]`) : null, { x: h, y: v } = jn(e), y = s.elementFromPoint(h, v), C = y != null && y.classList.contains(`${a}-flow__handle`) ? y : f, b = {
@@ -6974,7 +6974,7 @@ function zp({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: r, translat
6974
6974
  }
6975
6975
  function b({ noWheelClassName: F, noPanClassName: Y, onPaneContextMenu: k, userSelectionActive: $, panOnScroll: P, panOnDrag: T, panOnScrollMode: M, panOnScrollSpeed: H, preventScrolling: B, zoomOnPinch: W, zoomOnScroll: J, zoomOnDoubleClick: q, zoomActivationKeyPressed: G, lib: X, onTransformChange: oe }) {
6976
6976
  $ && !c.isZoomingOrPanning && p();
6977
- const xe = P && !G && !$ ? Vp({
6977
+ const we = P && !G && !$ ? Vp({
6978
6978
  zoomPanValues: c,
6979
6979
  noWheelClassName: F,
6980
6980
  d3Selection: h,
@@ -6990,21 +6990,21 @@ function zp({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: r, translat
6990
6990
  preventScrolling: B,
6991
6991
  d3ZoomHandler: v
6992
6992
  });
6993
- if (h.on("wheel.zoom", xe, { passive: !1 }), !$) {
6993
+ if (h.on("wheel.zoom", we, { passive: !1 }), !$) {
6994
6994
  const Ae = Ap({
6995
6995
  zoomPanValues: c,
6996
6996
  onDraggingChange: u,
6997
6997
  onPanZoomStart: a
6998
6998
  });
6999
6999
  f.on("start", Ae);
7000
- const we = Lp({
7000
+ const _e = Lp({
7001
7001
  zoomPanValues: c,
7002
7002
  panOnDrag: T,
7003
7003
  onPaneContextMenu: !!k,
7004
7004
  onPanZoom: s,
7005
7005
  onTransformChange: oe
7006
7006
  });
7007
- f.on("zoom", we);
7007
+ f.on("zoom", _e);
7008
7008
  const be = Op({
7009
7009
  zoomPanValues: c,
7010
7010
  panOnDrag: T,
@@ -7091,16 +7091,16 @@ var xu;
7091
7091
  var Rp = /* @__PURE__ */ se('<div role="button" tabindex="-1"><!></div>');
7092
7092
  function fr(e, t) {
7093
7093
  ge(t, !1);
7094
- const [n, r] = ut(), o = () => ie(q, "$connectable", n), i = () => ie(xe, "$connectionRadius", n), s = () => ie(oe, "$domNode", n), a = () => ie(ne, "$nodeLookup", n), l = () => ie(X, "$connectionMode", n), u = () => ie(we, "$lib", n), c = () => ie(ve, "$autoPanOnConnect", n), g = () => ie(ze, "$flowId", n), f = () => ie(Ae, "$isValidConnectionStore", n), h = () => ie(ce, "$onedgecreate", n), v = () => ie(Be, "$onConnectAction", n), y = () => ie(Le, "$onConnectStartAction", n), C = () => ie(_e, "$onConnectEndAction", n), b = () => ie(Pe, "$viewport", n), p = () => ie(qe, "$connection", n), x = () => ie(pe, "$edges", n), m = () => ie(ae, "$connectionLookup", n), E = /* @__PURE__ */ ue(), N = /* @__PURE__ */ ue(), S = /* @__PURE__ */ ue(), L = /* @__PURE__ */ ue(), O = /* @__PURE__ */ ue(), D = /* @__PURE__ */ ue(), R = /* @__PURE__ */ ue(), F = /* @__PURE__ */ ue();
7094
+ const [n, r] = ut(), o = () => ie(q, "$connectable", n), i = () => ie(we, "$connectionRadius", n), s = () => ie(oe, "$domNode", n), a = () => ie(ne, "$nodeLookup", n), l = () => ie(X, "$connectionMode", n), u = () => ie(_e, "$lib", n), c = () => ie(ve, "$autoPanOnConnect", n), g = () => ie(ze, "$flowId", n), f = () => ie(Ae, "$isValidConnectionStore", n), h = () => ie(ce, "$onedgecreate", n), v = () => ie(Be, "$onConnectAction", n), y = () => ie(Le, "$onConnectStartAction", n), C = () => ie(xe, "$onConnectEndAction", n), b = () => ie(Pe, "$viewport", n), p = () => ie(qe, "$connection", n), x = () => ie(pe, "$edges", n), m = () => ie(ae, "$connectionLookup", n), E = /* @__PURE__ */ ue(), N = /* @__PURE__ */ ue(), S = /* @__PURE__ */ ue(), L = /* @__PURE__ */ ue(), O = /* @__PURE__ */ ue(), D = /* @__PURE__ */ ue(), R = /* @__PURE__ */ ue(), F = /* @__PURE__ */ ue();
7095
7095
  let Y = _(t, "id", 12, void 0), k = _(t, "type", 12, "source"), $ = _(t, "position", 28, () => Me.Top), P = _(t, "style", 12, void 0), T = _(t, "isValidConnection", 12, void 0), M = _(t, "onconnect", 12, void 0), H = _(t, "ondisconnect", 12, void 0), B = _(t, "isConnectable", 12, void 0), W = _(t, "class", 12, void 0);
7096
7096
  const J = Pr("svelteflow__node_id"), q = Pr("svelteflow__node_connectable"), G = ot(), {
7097
7097
  connectionMode: X,
7098
7098
  domNode: oe,
7099
7099
  nodeLookup: ne,
7100
- connectionRadius: xe,
7100
+ connectionRadius: we,
7101
7101
  viewport: Pe,
7102
7102
  isValidConnection: Ae,
7103
- lib: we,
7103
+ lib: _e,
7104
7104
  addEdge: be,
7105
7105
  onedgecreate: ce,
7106
7106
  panBy: Q,
@@ -7111,7 +7111,7 @@ function fr(e, t) {
7111
7111
  connectionLookup: ae,
7112
7112
  onconnect: Be,
7113
7113
  onconnectstart: Le,
7114
- onconnectend: _e,
7114
+ onconnectend: xe,
7115
7115
  flowId: ze,
7116
7116
  connection: qe
7117
7117
  } = G;
@@ -8914,10 +8914,10 @@ function Yd(e, t) {
8914
8914
  y: Q.y < Z ? Q.y : Z,
8915
8915
  width: Math.abs(Q.x - le),
8916
8916
  height: Math.abs(Q.y - Z)
8917
- }, pe = B.map((_e) => _e.id), ae = _a(B, c()).map((_e) => _e.id);
8917
+ }, pe = B.map((xe) => xe.id), ae = _a(B, c()).map((xe) => xe.id);
8918
8918
  B = dd(g(), ve, [f().x, f().y, f().zoom], h() === Ui.Partial, !0);
8919
- const Be = _a(B, c()).map((_e) => _e.id), Le = B.map((_e) => _e.id);
8920
- (pe.length !== Le.length || Le.some((_e) => !pe.includes(_e))) && E.update((_e) => _e.map($u(Le))), (ae.length !== Be.length || Be.some((_e) => !ae.includes(_e))) && S.update((_e) => _e.map($u(Be))), F.set("user"), R.set(ve);
8919
+ const Be = _a(B, c()).map((xe) => xe.id), Le = B.map((xe) => xe.id);
8920
+ (pe.length !== Le.length || Le.some((xe) => !pe.includes(xe))) && E.update((xe) => xe.map($u(Le))), (ae.length !== Be.length || Be.some((xe) => !ae.includes(xe))) && S.update((xe) => xe.map($u(Be))), F.set("user"), R.set(ve);
8921
8921
  }
8922
8922
  function X(ce) {
8923
8923
  var Q, le;
@@ -8944,10 +8944,10 @@ function Yd(e, t) {
8944
8944
  re(b, a() && (d(C) || l() === "user"));
8945
8945
  }
8946
8946
  ), Mt(), Fe();
8947
- var ne = im(), xe = /* @__PURE__ */ $e(() => d(b) ? void 0 : Cu(J, d(M))), Pe = /* @__PURE__ */ $e(() => Cu(oe, d(M)));
8947
+ var ne = im(), we = /* @__PURE__ */ $e(() => d(b) ? void 0 : Cu(J, d(M))), Pe = /* @__PURE__ */ $e(() => Cu(oe, d(M)));
8948
8948
  let Ae;
8949
- var we = z(ne);
8950
- Dt(we, t, "default", {}), I(ne), wn(ne, (ce) => re(M, ce), () => d(M)), He((ce) => Ae = Tt(ne, 1, "svelte-flow__pane svelte-1esy7hx", null, Ae, ce), [
8949
+ var _e = z(ne);
8950
+ Dt(_e, t, "default", {}), I(ne), wn(ne, (ce) => re(M, ce), () => d(M)), He((ce) => Ae = Tt(ne, 1, "svelte-flow__pane svelte-1esy7hx", null, Ae, ce), [
8951
8951
  () => ({
8952
8952
  draggable: p() === !0 || Array.isArray(p()) && p().includes(0),
8953
8953
  dragging: v(),
@@ -8955,7 +8955,7 @@ function Yd(e, t) {
8955
8955
  })
8956
8956
  ]), dt("click", ne, function(...ce) {
8957
8957
  var Q;
8958
- (Q = d(xe)) == null || Q.apply(this, ce);
8958
+ (Q = d(we)) == null || Q.apply(this, ce);
8959
8959
  }), dt("pointerdown", ne, function(...ce) {
8960
8960
  var Q;
8961
8961
  (Q = d(b) ? q : void 0) == null || Q.apply(this, ce);
@@ -9071,10 +9071,10 @@ function Xd(e, t) {
9071
9071
  let f = _(t, "node", 13), h = _(t, "id", 13), v = _(t, "data", 29, () => ({})), y = _(t, "selected", 13, !1), C = _(t, "draggable", 13, void 0), b = _(t, "selectable", 13, void 0), p = _(t, "connectable", 13, !0), x = _(t, "deletable", 13, !0), m = _(t, "hidden", 13, !1), E = _(t, "dragging", 13, !1), N = _(t, "resizeObserver", 13, null), S = _(t, "style", 13, void 0), L = _(t, "type", 13, "default"), O = _(t, "isParent", 13, !1), D = _(t, "positionX", 13), R = _(t, "positionY", 13), F = _(t, "sourcePosition", 13, void 0), Y = _(t, "targetPosition", 13, void 0), k = _(t, "zIndex", 13), $ = _(t, "measuredWidth", 13, void 0), P = _(t, "measuredHeight", 13, void 0), T = _(t, "initialWidth", 13, void 0), M = _(t, "initialHeight", 13, void 0), H = _(t, "width", 13, void 0), B = _(t, "height", 13, void 0), W = _(t, "dragHandle", 13, void 0), J = _(t, "initialized", 13, !1), q = _(t, "parentId", 13, void 0), G = _(t, "nodeClickDistance", 13, void 0), X = _(t, "class", 13, "");
9072
9072
  const oe = ot(), {
9073
9073
  nodeTypes: ne,
9074
- nodeDragThreshold: xe,
9074
+ nodeDragThreshold: we,
9075
9075
  selectNodesOnDrag: Pe,
9076
9076
  handleNodeSelection: Ae,
9077
- updateNodeInternals: we,
9077
+ updateNodeInternals: _e,
9078
9078
  elementsSelectable: be,
9079
9079
  nodesDraggable: ce
9080
9080
  } = oe;
@@ -9086,7 +9086,7 @@ function Xd(e, t) {
9086
9086
  d(le) && ((U = N()) == null || U.unobserve(d(le)));
9087
9087
  });
9088
9088
  function Le(U) {
9089
- b() && (!te(Pe) || !C() || te(xe) > 0) && Ae(h()), Z("nodeclick", { node: f().internals.userNode, event: U });
9089
+ b() && (!te(Pe) || !C() || te(we) > 0) && Ae(h()), Z("nodeclick", { node: f().internals.userNode, event: U });
9090
9090
  }
9091
9091
  me(() => j(L()), () => {
9092
9092
  re(l, L() || "default");
@@ -9116,7 +9116,7 @@ function Xd(e, t) {
9116
9116
  }), me(
9117
9117
  () => (d(pe), d(l), d(ae), j(F()), d(Be), j(Y()), j(h()), d(Q)),
9118
9118
  () => {
9119
- (d(pe) && d(l) !== d(pe) || d(ae) && F() !== d(ae) || d(Be) && Y() !== d(Be)) && requestAnimationFrame(() => we(/* @__PURE__ */ new Map([
9119
+ (d(pe) && d(l) !== d(pe) || d(ae) && F() !== d(ae) || d(Be) && Y() !== d(Be)) && requestAnimationFrame(() => _e(/* @__PURE__ */ new Map([
9120
9120
  [h(), { id: h(), nodeElement: d(Q), force: !0 }]
9121
9121
  ]))), re(pe, d(l)), re(ae, F()), re(Be, Y());
9122
9122
  }
@@ -9126,7 +9126,7 @@ function Xd(e, t) {
9126
9126
  N() && (d(Q) !== d(le) || !J()) && (d(le) && N().unobserve(d(le)), d(Q) && N().observe(d(Q)), re(le, d(Q)));
9127
9127
  }
9128
9128
  ), Mt(), Fe(!0);
9129
- var _e = Xe(), ze = fe(_e);
9129
+ var xe = Xe(), ze = fe(xe);
9130
9130
  {
9131
9131
  var qe = (U) => {
9132
9132
  var Ke = cm();
@@ -9247,7 +9247,7 @@ function Xd(e, t) {
9247
9247
  m() || U(qe);
9248
9248
  });
9249
9249
  }
9250
- V(e, _e);
9250
+ V(e, xe);
9251
9251
  var it = he({
9252
9252
  get node() {
9253
9253
  return f();
@@ -9637,14 +9637,14 @@ function Wd(e, t) {
9637
9637
  const [n, r] = ut(), o = () => ie(X, "$edgeTypes", n), i = () => ie(oe, "$flowId", n), s = () => ie(ne, "$elementsSelectable", n), a = () => ie(G, "$edgeLookup", n), l = /* @__PURE__ */ ue(void 0, !0), u = /* @__PURE__ */ ue(void 0, !0), c = /* @__PURE__ */ ue(void 0, !0), g = /* @__PURE__ */ ue(void 0, !0), f = /* @__PURE__ */ ue(void 0, !0);
9638
9638
  let h = _(t, "id", 13), v = _(t, "type", 13, "default"), y = _(t, "source", 13, ""), C = _(t, "target", 13, ""), b = _(t, "data", 29, () => ({})), p = _(t, "style", 13, void 0), x = _(t, "zIndex", 13, void 0), m = _(t, "animated", 13, !1), E = _(t, "selected", 13, !1), N = _(t, "selectable", 13, void 0), S = _(t, "deletable", 13, void 0), L = _(t, "hidden", 13, !1), O = _(t, "label", 13, void 0), D = _(t, "labelStyle", 13, void 0), R = _(t, "markerStart", 13, void 0), F = _(t, "markerEnd", 13, void 0), Y = _(t, "sourceHandle", 13, void 0), k = _(t, "targetHandle", 13, void 0), $ = _(t, "sourceX", 13), P = _(t, "sourceY", 13), T = _(t, "targetX", 13), M = _(t, "targetY", 13), H = _(t, "sourcePosition", 13), B = _(t, "targetPosition", 13), W = _(t, "ariaLabel", 13, void 0), J = _(t, "interactionWidth", 13, void 0), q = _(t, "class", 13, "");
9639
9639
  lo("svelteflow__edge_id", h());
9640
- const { edgeLookup: G, edgeTypes: X, flowId: oe, elementsSelectable: ne } = ot(), xe = ys(), Pe = Dd();
9640
+ const { edgeLookup: G, edgeTypes: X, flowId: oe, elementsSelectable: ne } = ot(), we = ys(), Pe = Dd();
9641
9641
  function Ae(Z) {
9642
9642
  const ve = a().get(h());
9643
- ve && (Pe(h()), xe("edgeclick", { event: Z, edge: ve }));
9643
+ ve && (Pe(h()), we("edgeclick", { event: Z, edge: ve }));
9644
9644
  }
9645
- function we(Z, ve) {
9645
+ function _e(Z, ve) {
9646
9646
  const pe = a().get(h());
9647
- pe && xe(ve, { event: Z, edge: pe });
9647
+ pe && we(ve, { event: Z, edge: pe });
9648
9648
  }
9649
9649
  me(() => j(v()), () => {
9650
9650
  re(l, v() || "default");
@@ -9666,7 +9666,7 @@ function Wd(e, t) {
9666
9666
  let Be;
9667
9667
  var Le = z(ae);
9668
9668
  {
9669
- let _e = /* @__PURE__ */ Ve(() => S() ?? !0);
9669
+ let xe = /* @__PURE__ */ Ve(() => S() ?? !0);
9670
9670
  Pc(Le, () => d(u), (ze, qe) => {
9671
9671
  qe(ze, {
9672
9672
  get id() {
@@ -9721,7 +9721,7 @@ function Wd(e, t) {
9721
9721
  return d(f);
9722
9722
  },
9723
9723
  get deletable() {
9724
- return d(_e);
9724
+ return d(xe);
9725
9725
  },
9726
9726
  get type() {
9727
9727
  return d(l);
@@ -9742,8 +9742,8 @@ function Wd(e, t) {
9742
9742
  });
9743
9743
  }
9744
9744
  I(ae), I(ve), He(
9745
- (_e, ze, qe) => {
9746
- pe = pt(ve, "", pe, _e), Be = Tt(ae, 0, ze, null, Be, qe), Ce(ae, "data-id", h()), Ce(ae, "aria-label", W() === null ? void 0 : W() ? W() : `Edge from ${y()} to ${C()}`);
9745
+ (xe, ze, qe) => {
9746
+ pe = pt(ve, "", pe, xe), Be = Tt(ae, 0, ze, null, Be, qe), Ce(ae, "data-id", h()), Ce(ae, "aria-label", W() === null ? void 0 : W() ? W() : `Edge from ${y()} to ${C()}`);
9747
9747
  },
9748
9748
  [
9749
9749
  () => ({ "z-index": x() }),
@@ -9754,12 +9754,12 @@ function Wd(e, t) {
9754
9754
  selectable: d(f)
9755
9755
  })
9756
9756
  ]
9757
- ), dt("click", ae, Ae), dt("contextmenu", ae, (_e) => {
9758
- we(_e, "edgecontextmenu");
9759
- }), dt("mouseenter", ae, (_e) => {
9760
- we(_e, "edgemouseenter");
9761
- }), dt("mouseleave", ae, (_e) => {
9762
- we(_e, "edgemouseleave");
9757
+ ), dt("click", ae, Ae), dt("contextmenu", ae, (xe) => {
9758
+ _e(xe, "edgecontextmenu");
9759
+ }), dt("mouseenter", ae, (xe) => {
9760
+ _e(xe, "edgemouseenter");
9761
+ }), dt("mouseleave", ae, (xe) => {
9762
+ _e(xe, "edgemouseleave");
9763
9763
  }), V(Z, ve);
9764
9764
  };
9765
9765
  ye(ce, (Z) => {
@@ -10843,7 +10843,7 @@ function rf(e, t) {
10843
10843
  ]);
10844
10844
  ge(t, !1), rt(e, Vm);
10845
10845
  const [i, s] = ut(), a = () => ie(x(), "$viewport", i), l = () => ie(Vs, "$initialized", i), u = () => ie(d(c), "$colorModeClass", i), c = /* @__PURE__ */ ue();
10846
- let g = _(t, "id", 12, "1"), f = _(t, "nodes", 12), h = _(t, "edges", 12), v = _(t, "fitView", 12, void 0), y = _(t, "fitViewOptions", 12, void 0), C = _(t, "minZoom", 12, void 0), b = _(t, "maxZoom", 12, void 0), p = _(t, "initialViewport", 12, void 0), x = _(t, "viewport", 12, void 0), m = _(t, "nodeTypes", 12, void 0), E = _(t, "edgeTypes", 12, void 0), N = _(t, "selectionKey", 12, void 0), S = _(t, "selectionMode", 12, void 0), L = _(t, "panActivationKey", 12, void 0), O = _(t, "multiSelectionKey", 12, void 0), D = _(t, "zoomActivationKey", 12, void 0), R = _(t, "nodesDraggable", 12, void 0), F = _(t, "nodesConnectable", 12, void 0), Y = _(t, "nodeDragThreshold", 12, void 0), k = _(t, "elementsSelectable", 12, void 0), $ = _(t, "snapGrid", 12, void 0), P = _(t, "deleteKey", 12, void 0), T = _(t, "connectionRadius", 12, void 0), M = _(t, "connectionLineType", 12, void 0), H = _(t, "connectionMode", 28, () => Mr.Strict), B = _(t, "connectionLineStyle", 12, ""), W = _(t, "connectionLineContainerStyle", 12, ""), J = _(t, "onMoveStart", 12, void 0), q = _(t, "onMove", 12, void 0), G = _(t, "onMoveEnd", 12, void 0), X = _(t, "isValidConnection", 12, void 0), oe = _(t, "translateExtent", 12, void 0), ne = _(t, "nodeExtent", 12, void 0), xe = _(t, "onlyRenderVisibleElements", 12, void 0), Pe = _(t, "panOnScrollMode", 28, () => Yn.Free), Ae = _(t, "preventScrolling", 12, !0), we = _(t, "zoomOnScroll", 12, !0), be = _(t, "zoomOnDoubleClick", 12, !0), ce = _(t, "zoomOnPinch", 12, !0), Q = _(t, "panOnScroll", 12, !1), le = _(t, "panOnDrag", 12, !0), Z = _(t, "selectionOnDrag", 12, void 0), ve = _(t, "autoPanOnConnect", 12, !0), pe = _(t, "autoPanOnNodeDrag", 12, !0), ae = _(t, "onerror", 12, void 0), Be = _(t, "ondelete", 12, void 0), Le = _(t, "onedgecreate", 12, void 0), _e = _(t, "attributionPosition", 12, void 0), ze = _(t, "proOptions", 12, void 0), qe = _(t, "defaultEdgeOptions", 12, void 0), it = _(t, "width", 12, void 0), U = _(t, "height", 12, void 0), Ke = _(t, "colorMode", 12, "light"), Je = _(t, "onconnect", 12, void 0), ft = _(t, "onconnectstart", 12, void 0), Gt = _(t, "onconnectend", 12, void 0), et = _(t, "onbeforedelete", 12, void 0), Se = _(t, "oninit", 12, void 0), je = _(t, "nodeOrigin", 12, void 0), Oe = _(t, "paneClickDistance", 12, 0), St = _(t, "nodeClickDistance", 12, 0), wt = _(t, "defaultMarkerColor", 12, "#b1b1b7"), Eo = _(t, "style", 12, void 0), pr = _(t, "class", 12, void 0), So = /* @__PURE__ */ ue(), Pt = /* @__PURE__ */ ue(), Lt = /* @__PURE__ */ ue();
10846
+ let g = _(t, "id", 12, "1"), f = _(t, "nodes", 12), h = _(t, "edges", 12), v = _(t, "fitView", 12, void 0), y = _(t, "fitViewOptions", 12, void 0), C = _(t, "minZoom", 12, void 0), b = _(t, "maxZoom", 12, void 0), p = _(t, "initialViewport", 12, void 0), x = _(t, "viewport", 12, void 0), m = _(t, "nodeTypes", 12, void 0), E = _(t, "edgeTypes", 12, void 0), N = _(t, "selectionKey", 12, void 0), S = _(t, "selectionMode", 12, void 0), L = _(t, "panActivationKey", 12, void 0), O = _(t, "multiSelectionKey", 12, void 0), D = _(t, "zoomActivationKey", 12, void 0), R = _(t, "nodesDraggable", 12, void 0), F = _(t, "nodesConnectable", 12, void 0), Y = _(t, "nodeDragThreshold", 12, void 0), k = _(t, "elementsSelectable", 12, void 0), $ = _(t, "snapGrid", 12, void 0), P = _(t, "deleteKey", 12, void 0), T = _(t, "connectionRadius", 12, void 0), M = _(t, "connectionLineType", 12, void 0), H = _(t, "connectionMode", 28, () => Mr.Strict), B = _(t, "connectionLineStyle", 12, ""), W = _(t, "connectionLineContainerStyle", 12, ""), J = _(t, "onMoveStart", 12, void 0), q = _(t, "onMove", 12, void 0), G = _(t, "onMoveEnd", 12, void 0), X = _(t, "isValidConnection", 12, void 0), oe = _(t, "translateExtent", 12, void 0), ne = _(t, "nodeExtent", 12, void 0), we = _(t, "onlyRenderVisibleElements", 12, void 0), Pe = _(t, "panOnScrollMode", 28, () => Yn.Free), Ae = _(t, "preventScrolling", 12, !0), _e = _(t, "zoomOnScroll", 12, !0), be = _(t, "zoomOnDoubleClick", 12, !0), ce = _(t, "zoomOnPinch", 12, !0), Q = _(t, "panOnScroll", 12, !1), le = _(t, "panOnDrag", 12, !0), Z = _(t, "selectionOnDrag", 12, void 0), ve = _(t, "autoPanOnConnect", 12, !0), pe = _(t, "autoPanOnNodeDrag", 12, !0), ae = _(t, "onerror", 12, void 0), Be = _(t, "ondelete", 12, void 0), Le = _(t, "onedgecreate", 12, void 0), xe = _(t, "attributionPosition", 12, void 0), ze = _(t, "proOptions", 12, void 0), qe = _(t, "defaultEdgeOptions", 12, void 0), it = _(t, "width", 12, void 0), U = _(t, "height", 12, void 0), Ke = _(t, "colorMode", 12, "light"), Je = _(t, "onconnect", 12, void 0), ft = _(t, "onconnectstart", 12, void 0), Gt = _(t, "onconnectend", 12, void 0), et = _(t, "onbeforedelete", 12, void 0), Se = _(t, "oninit", 12, void 0), je = _(t, "nodeOrigin", 12, void 0), Oe = _(t, "paneClickDistance", 12, 0), St = _(t, "nodeClickDistance", 12, 0), wt = _(t, "defaultMarkerColor", 12, "#b1b1b7"), Eo = _(t, "style", 12, void 0), pr = _(t, "class", 12, void 0), So = /* @__PURE__ */ ue(), Pt = /* @__PURE__ */ ue(), Lt = /* @__PURE__ */ ue();
10847
10847
  const Br = a() || p(), Qe = ig(Ps) ? ot() : nm({
10848
10848
  nodes: te(f()),
10849
10849
  edges: te(h()),
@@ -10874,7 +10874,7 @@ function rf(e, t) {
10874
10874
  !d(Po) && l() && ((K = Se()) == null || K(), re(Po, !0));
10875
10875
  }
10876
10876
  ), me(
10877
- () => (j(g()), j(M()), j(T()), j(S()), j($()), j(wt()), j(R()), j(F()), j(k()), j(xe()), j(X()), j(ve()), j(pe()), j(ae()), j(Be()), j(Le()), j(H()), j(Y()), j(Je()), j(ft()), j(Gt()), j(et()), j(je()), Eu),
10877
+ () => (j(g()), j(M()), j(T()), j(S()), j($()), j(wt()), j(R()), j(F()), j(k()), j(we()), j(X()), j(ve()), j(pe()), j(ae()), j(Be()), j(Le()), j(H()), j(Y()), j(Je()), j(ft()), j(Gt()), j(et()), j(je()), Eu),
10878
10878
  () => {
10879
10879
  const K = {
10880
10880
  flowId: g(),
@@ -10886,7 +10886,7 @@ function rf(e, t) {
10886
10886
  nodesDraggable: R(),
10887
10887
  nodesConnectable: F(),
10888
10888
  elementsSelectable: k(),
10889
- onlyRenderVisibleElements: xe(),
10889
+ onlyRenderVisibleElements: we(),
10890
10890
  isValidConnection: X(),
10891
10891
  autoPanOnConnect: ve(),
10892
10892
  autoPanOnNodeDrag: pe(),
@@ -10954,7 +10954,7 @@ function rf(e, t) {
10954
10954
  });
10955
10955
  var _i = A(wi, 2);
10956
10956
  {
10957
- let K = /* @__PURE__ */ Ve(() => (j(Pe()), j(Yn), ee(() => Pe() === void 0 ? Yn.Free : Pe()))), r1 = /* @__PURE__ */ Ve(() => Ae() === void 0 ? !0 : Ae()), o1 = /* @__PURE__ */ Ve(() => we() === void 0 ? !0 : we()), i1 = /* @__PURE__ */ Ve(() => be() === void 0 ? !0 : be()), s1 = /* @__PURE__ */ Ve(() => ce() === void 0 ? !0 : ce()), a1 = /* @__PURE__ */ Ve(() => Q() === void 0 ? !1 : Q()), l1 = /* @__PURE__ */ Ve(() => le() === void 0 ? !0 : le()), u1 = /* @__PURE__ */ Ve(() => Oe() === void 0 ? 0 : Oe());
10957
+ let K = /* @__PURE__ */ Ve(() => (j(Pe()), j(Yn), ee(() => Pe() === void 0 ? Yn.Free : Pe()))), r1 = /* @__PURE__ */ Ve(() => Ae() === void 0 ? !0 : Ae()), o1 = /* @__PURE__ */ Ve(() => _e() === void 0 ? !0 : _e()), i1 = /* @__PURE__ */ Ve(() => be() === void 0 ? !0 : be()), s1 = /* @__PURE__ */ Ve(() => ce() === void 0 ? !0 : ce()), a1 = /* @__PURE__ */ Ve(() => Q() === void 0 ? !1 : Q()), l1 = /* @__PURE__ */ Ve(() => le() === void 0 ? !0 : le()), u1 = /* @__PURE__ */ Ve(() => Oe() === void 0 ? 0 : Oe());
10958
10958
  Fd(_i, {
10959
10959
  get initialViewport() {
10960
10960
  return Br;
@@ -11121,7 +11121,7 @@ function rf(e, t) {
11121
11121
  return ze();
11122
11122
  },
11123
11123
  get position() {
11124
- return _e();
11124
+ return xe();
11125
11125
  }
11126
11126
  });
11127
11127
  var Ds = A(xi, 2);
@@ -11330,10 +11330,10 @@ function rf(e, t) {
11330
11330
  ne(K), w();
11331
11331
  },
11332
11332
  get onlyRenderVisibleElements() {
11333
- return xe();
11333
+ return we();
11334
11334
  },
11335
11335
  set onlyRenderVisibleElements(K) {
11336
- xe(K), w();
11336
+ we(K), w();
11337
11337
  },
11338
11338
  get panOnScrollMode() {
11339
11339
  return Pe();
@@ -11348,10 +11348,10 @@ function rf(e, t) {
11348
11348
  Ae(K), w();
11349
11349
  },
11350
11350
  get zoomOnScroll() {
11351
- return we();
11351
+ return _e();
11352
11352
  },
11353
11353
  set zoomOnScroll(K) {
11354
- we(K), w();
11354
+ _e(K), w();
11355
11355
  },
11356
11356
  get zoomOnDoubleClick() {
11357
11357
  return be();
@@ -11414,10 +11414,10 @@ function rf(e, t) {
11414
11414
  Le(K), w();
11415
11415
  },
11416
11416
  get attributionPosition() {
11417
- return _e();
11417
+ return xe();
11418
11418
  },
11419
11419
  set attributionPosition(K) {
11420
- _e(K), w();
11420
+ xe(K), w();
11421
11421
  },
11422
11422
  get proOptions() {
11423
11423
  return ze();
@@ -11815,7 +11815,7 @@ function df(e, t) {
11815
11815
  "svelte-flow__controls",
11816
11816
  d(h),
11817
11817
  R()
11818
- ])))), xe = /* @__PURE__ */ Ve(() => S() ?? "Svelte Flow controls");
11818
+ ])))), we = /* @__PURE__ */ Ve(() => S() ?? "Svelte Flow controls");
11819
11819
  vi(e, {
11820
11820
  get class() {
11821
11821
  return d(ne);
@@ -11825,18 +11825,18 @@ function df(e, t) {
11825
11825
  },
11826
11826
  "data-testid": "svelte-flow__controls",
11827
11827
  get "aria-label"() {
11828
- return d(xe);
11828
+ return d(we);
11829
11829
  },
11830
11830
  get style() {
11831
11831
  return L();
11832
11832
  },
11833
11833
  children: (Pe, Ae) => {
11834
- var we = Bm(), be = fe(we);
11834
+ var _e = Bm(), be = fe(_e);
11835
11835
  Dt(be, t, "before", {});
11836
11836
  var ce = A(be, 2);
11837
11837
  {
11838
11838
  var Q = (Le) => {
11839
- var _e = Rm(), ze = fe(_e);
11839
+ var xe = Rm(), ze = fe(xe);
11840
11840
  Oo(ze, gt(
11841
11841
  {
11842
11842
  class: "svelte-flow__controls-zoomin",
@@ -11873,7 +11873,7 @@ function df(e, t) {
11873
11873
  },
11874
11874
  $$slots: { default: !0 }
11875
11875
  }
11876
- )), V(Le, _e);
11876
+ )), V(Le, xe);
11877
11877
  };
11878
11878
  ye(ce, (Le) => {
11879
11879
  y() && Le(Q);
@@ -11891,8 +11891,8 @@ function df(e, t) {
11891
11891
  () => W,
11892
11892
  {
11893
11893
  $$events: { click: G },
11894
- children: (_e, ze) => {
11895
- lf(_e);
11894
+ children: (xe, ze) => {
11895
+ lf(xe);
11896
11896
  },
11897
11897
  $$slots: { default: !0 }
11898
11898
  }
@@ -11914,7 +11914,7 @@ function df(e, t) {
11914
11914
  () => W,
11915
11915
  {
11916
11916
  $$events: { click: X },
11917
- children: (_e, ze) => {
11917
+ children: (xe, ze) => {
11918
11918
  var qe = Xe(), it = fe(qe);
11919
11919
  {
11920
11920
  var U = (Je) => {
@@ -11926,7 +11926,7 @@ function df(e, t) {
11926
11926
  d(c) ? Je(U) : Je(Ke, !1);
11927
11927
  });
11928
11928
  }
11929
- V(_e, qe);
11929
+ V(xe, qe);
11930
11930
  },
11931
11931
  $$slots: { default: !0 }
11932
11932
  }
@@ -11939,7 +11939,7 @@ function df(e, t) {
11939
11939
  var ae = A(ve, 2);
11940
11940
  Dt(ae, t, "default", {});
11941
11941
  var Be = A(ae, 2);
11942
- Dt(Be, t, "after", {}), V(Pe, we);
11942
+ Dt(Be, t, "after", {}), V(Pe, _e);
11943
11943
  },
11944
11944
  $$slots: { default: !0 }
11945
11945
  });
@@ -12420,11 +12420,11 @@ const Gs = (e) => e instanceof Function ? e : () => e;
12420
12420
  var qm = /* @__PURE__ */ Ee("<title> </title>"), Km = /* @__PURE__ */ Ee('<svg class="svelte-flow__minimap-svg" role="img"><!><!><path class="svelte-flow__minimap-mask" fill-rule="evenodd" pointer-events="none"></path></svg>');
12421
12421
  function pf(e, t) {
12422
12422
  ge(t, !1);
12423
- const [n, r] = ut(), o = () => ie(le, "$flowId", n), i = () => ie(be, "$viewport", n), s = () => ie(ce, "$containerWidth", n), a = () => ie(Q, "$containerHeight", n), l = () => ie(we, "$nodeLookup", n), u = () => ie(Ae, "$nodes", n), c = () => ie(Z, "$panZoom", n), g = () => ie(ve, "$translateExtent", n), f = /* @__PURE__ */ ue(), h = /* @__PURE__ */ ue(), v = /* @__PURE__ */ ue(), y = /* @__PURE__ */ ue(), C = /* @__PURE__ */ ue(), b = /* @__PURE__ */ ue(), p = /* @__PURE__ */ ue(), x = /* @__PURE__ */ ue(), m = /* @__PURE__ */ ue(), E = /* @__PURE__ */ ue(), N = /* @__PURE__ */ ue(), S = /* @__PURE__ */ ue(), L = /* @__PURE__ */ ue();
12423
+ const [n, r] = ut(), o = () => ie(le, "$flowId", n), i = () => ie(be, "$viewport", n), s = () => ie(ce, "$containerWidth", n), a = () => ie(Q, "$containerHeight", n), l = () => ie(_e, "$nodeLookup", n), u = () => ie(Ae, "$nodes", n), c = () => ie(Z, "$panZoom", n), g = () => ie(ve, "$translateExtent", n), f = /* @__PURE__ */ ue(), h = /* @__PURE__ */ ue(), v = /* @__PURE__ */ ue(), y = /* @__PURE__ */ ue(), C = /* @__PURE__ */ ue(), b = /* @__PURE__ */ ue(), p = /* @__PURE__ */ ue(), x = /* @__PURE__ */ ue(), m = /* @__PURE__ */ ue(), E = /* @__PURE__ */ ue(), N = /* @__PURE__ */ ue(), S = /* @__PURE__ */ ue(), L = /* @__PURE__ */ ue();
12424
12424
  let O = _(t, "position", 12, "bottom-right"), D = _(t, "ariaLabel", 12, "Mini map"), R = _(t, "nodeStrokeColor", 12, "transparent"), F = _(t, "nodeColor", 12, void 0), Y = _(t, "nodeClass", 12, ""), k = _(t, "nodeBorderRadius", 12, 5), $ = _(t, "nodeStrokeWidth", 12, 2), P = _(t, "bgColor", 12, void 0), T = _(t, "maskColor", 12, void 0), M = _(t, "maskStrokeColor", 12, void 0), H = _(t, "maskStrokeWidth", 12, void 0), B = _(t, "width", 12, void 0), W = _(t, "height", 12, void 0), J = _(t, "pannable", 12, !0), q = _(t, "zoomable", 12, !0), G = _(t, "inversePan", 12, void 0), X = _(t, "zoomStep", 12, void 0), oe = _(t, "style", 12, ""), ne = _(t, "class", 12, "");
12425
- const xe = 200, Pe = 150, {
12425
+ const we = 200, Pe = 150, {
12426
12426
  nodes: Ae,
12427
- nodeLookup: we,
12427
+ nodeLookup: _e,
12428
12428
  viewport: be,
12429
12429
  width: ce,
12430
12430
  height: Q,
@@ -12434,7 +12434,7 @@ function pf(e, t) {
12434
12434
  } = ot(), pe = F() === void 0 ? void 0 : Gs(F()), ae = Gs(R()), Be = Gs(Y()), Le = (
12435
12435
  // @ts-expect-error - TS doesn't know about chrome
12436
12436
  typeof window > "u" || window.chrome ? "crispEdges" : "geometricPrecision"
12437
- ), _e = `svelte-flow__minimap-desc-${o()}`;
12437
+ ), xe = `svelte-flow__minimap-desc-${o()}`;
12438
12438
  let ze = /* @__PURE__ */ ue(d(f));
12439
12439
  const qe = () => d(b);
12440
12440
  me(() => (i(), s(), a()), () => {
@@ -12450,7 +12450,7 @@ function pf(e, t) {
12450
12450
  re(ze, l().size > 0 ? vd(fi(l(), { filter: (U) => !U.hidden }), d(f)) : d(f)), u();
12451
12451
  }
12452
12452
  ), me(() => j(B()), () => {
12453
- re(h, B() ?? xe);
12453
+ re(h, B() ?? we);
12454
12454
  }), me(() => j(W()), () => {
12455
12455
  re(v, W() ?? Pe);
12456
12456
  }), me(() => (d(ze), d(h)), () => {
@@ -12498,7 +12498,7 @@ function pf(e, t) {
12498
12498
  var Eo = (Pt) => {
12499
12499
  var Lt = qm(), Br = z(Lt, !0);
12500
12500
  I(Lt), He(() => {
12501
- Ce(Lt, "id", _e), tt(Br, D());
12501
+ Ce(Lt, "id", xe), tt(Br, D());
12502
12502
  }), V(Pt, Lt);
12503
12503
  };
12504
12504
  ye(wt, (Pt) => {
@@ -12571,7 +12571,7 @@ function pf(e, t) {
12571
12571
  zoomable: q()
12572
12572
  })), He(
12573
12573
  (Pt) => {
12574
- Ce(Oe, "width", d(h)), Ce(Oe, "height", d(v)), Ce(Oe, "viewBox", `${d(E) ?? ""} ${d(N) ?? ""} ${d(S) ?? ""} ${d(L) ?? ""}`), Ce(Oe, "aria-labelledby", _e), St = pt(Oe, "", St, Pt), Ce(So, "d", `M${d(E) - d(m)},${d(N) - d(m)}h${d(S) + d(m) * 2}v${d(L) + d(m) * 2}h${-d(S) - d(m) * 2}z
12574
+ Ce(Oe, "width", d(h)), Ce(Oe, "height", d(v)), Ce(Oe, "viewBox", `${d(E) ?? ""} ${d(N) ?? ""} ${d(S) ?? ""} ${d(L) ?? ""}`), Ce(Oe, "aria-labelledby", xe), St = pt(Oe, "", St, Pt), Ce(So, "d", `M${d(E) - d(m)},${d(N) - d(m)}h${d(S) + d(m) * 2}v${d(L) + d(m) * 2}h${-d(S) - d(m) * 2}z
12575
12575
  M${d(f), ee(() => d(f).x) ?? ""},${d(f), ee(() => d(f).y) ?? ""}h${d(f), ee(() => d(f).width) ?? ""}v${d(f), ee(() => d(f).height) ?? ""}h${d(f), ee(() => -d(f).width) ?? ""}z`);
12576
12576
  },
12577
12577
  [
@@ -14998,8 +14998,8 @@ function hn(e, t) {
14998
14998
  children: (B, W) => {
14999
14999
  var J = Lw(), q = z(J);
15000
15000
  {
15001
- var G = (we) => {
15002
- Ue(we, {
15001
+ var G = (_e) => {
15002
+ Ue(_e, {
15003
15003
  class: "tf-node-toolbar-item",
15004
15004
  onclick: () => {
15005
15005
  x(r());
@@ -15011,14 +15011,14 @@ function hn(e, t) {
15011
15011
  $$slots: { default: !0 }
15012
15012
  });
15013
15013
  };
15014
- ye(q, (we) => {
15015
- u() && we(G);
15014
+ ye(q, (_e) => {
15015
+ u() && _e(G);
15016
15016
  });
15017
15017
  }
15018
15018
  var X = A(q, 2);
15019
15019
  {
15020
- var oe = (we) => {
15021
- Ue(we, {
15020
+ var oe = (_e) => {
15021
+ Ue(_e, {
15022
15022
  class: "tf-node-toolbar-item",
15023
15023
  onclick: () => {
15024
15024
  m(r());
@@ -15030,14 +15030,14 @@ function hn(e, t) {
15030
15030
  $$slots: { default: !0 }
15031
15031
  });
15032
15032
  };
15033
- ye(X, (we) => {
15034
- l() && we(oe);
15033
+ ye(X, (_e) => {
15034
+ l() && _e(oe);
15035
15035
  });
15036
15036
  }
15037
15037
  var ne = A(X, 2);
15038
15038
  {
15039
- var xe = (we) => {
15040
- Ue(we, {
15039
+ var we = (_e) => {
15040
+ Ue(_e, {
15041
15041
  class: "tf-node-toolbar-item",
15042
15042
  onclick: N,
15043
15043
  children: (be, ce) => {
@@ -15047,14 +15047,14 @@ function hn(e, t) {
15047
15047
  $$slots: { default: !0 }
15048
15048
  });
15049
15049
  };
15050
- ye(ne, (we) => {
15051
- a() && we(xe);
15050
+ ye(ne, (_e) => {
15051
+ a() && _e(we);
15052
15052
  });
15053
15053
  }
15054
15054
  var Pe = A(ne, 2);
15055
15055
  {
15056
- var Ae = (we) => {
15057
- ko(we, {
15056
+ var Ae = (_e) => {
15057
+ ko(_e, {
15058
15058
  placement: "bottom",
15059
15059
  floating: (ce) => {
15060
15060
  var Q = Dw(), le = z(Q), Z = A(z(le));
@@ -15100,11 +15100,11 @@ function hn(e, t) {
15100
15100
  g() && qe(Be);
15101
15101
  });
15102
15102
  }
15103
- var Le = A(ae, 2), _e = A(z(Le), 2);
15104
- dr(_e), _e.__change = [Hw, C, S];
15105
- var ze = A(_e, 4);
15103
+ var Le = A(ae, 2), xe = A(z(Le), 2);
15104
+ dr(xe), xe.__change = [Hw, C, S];
15105
+ var ze = A(xe, 4);
15106
15106
  dr(ze), ze.__change = [Vw, C, S], I(Le), I(Q), He(() => {
15107
- Il(_e, !!n().async), Il(ze, !!n().loop);
15107
+ Il(xe, !!n().async), Il(ze, !!n().loop);
15108
15108
  }), V(ce, Q);
15109
15109
  },
15110
15110
  children: (ce, Q) => {
@@ -15120,8 +15120,8 @@ function hn(e, t) {
15120
15120
  $$slots: { floating: !0, default: !0 }
15121
15121
  });
15122
15122
  };
15123
- ye(Pe, (we) => {
15124
- c() && we(Ae);
15123
+ ye(Pe, (_e) => {
15124
+ c() && _e(Ae);
15125
15125
  });
15126
15126
  }
15127
15127
  I(J), V(B, J);
@@ -15805,8 +15805,8 @@ function Bf(e, t) {
15805
15805
  onclick: x,
15806
15806
  children: (oe, ne) => {
15807
15807
  Te();
15808
- var xe = Ie("删除");
15809
- V(oe, xe);
15808
+ var we = Ie("删除");
15809
+ V(oe, we);
15810
15810
  },
15811
15811
  $$slots: { default: !0 }
15812
15812
  }), I(G), I(T), V(P, T);
@@ -16171,8 +16171,8 @@ function Yf(e, t) {
16171
16171
  onclick: C,
16172
16172
  children: (oe, ne) => {
16173
16173
  Te();
16174
- var xe = Ie("删除");
16175
- V(oe, xe);
16174
+ var we = Ie("删除");
16175
+ V(oe, we);
16176
16176
  },
16177
16177
  $$slots: { default: !0 }
16178
16178
  }), I(G), V(q, G);
@@ -16329,7 +16329,6 @@ function jf(e, t) {
16329
16329
  let a = /* @__PURE__ */ xt(dn([])), l = /* @__PURE__ */ xt(dn([]));
16330
16330
  Kt(async () => {
16331
16331
  var y, C, b, p;
16332
- console.log("LLMNode.svelte", "onMount", "options.provider", s.provider);
16333
16332
  const h = await ((C = (y = s.provider) == null ? void 0 : y.llm) == null ? void 0 : C.call(y)), v = await ((p = (b = s.provider) == null ? void 0 : b.llmGroup) == null ? void 0 : p.call(b));
16334
16333
  d(a).push(...h || []), d(l).push(...v || []), n() && (n().enableThinking = n().enableThinking !== void 0 ? n().enableThinking : !1);
16335
16334
  });
@@ -16415,7 +16414,7 @@ function jf(e, t) {
16415
16414
  ae >= -2 && ae <= 2 ? u(o, { presencePenalty: ae }) : ar.warning("Presence Penalty的范围是[-2.0, 2.0]");
16416
16415
  }
16417
16416
  }), I(q), I(B), I(H);
16418
- var X = A(H, 2), oe = z(X), ne = z(oe), xe = z(ne);
16417
+ var X = A(H, 2), oe = z(X), ne = z(oe), we = z(ne);
16419
16418
  I(ne);
16420
16419
  var Pe = A(ne, 2), Ae = z(Pe);
16421
16420
  ct(Ae, {
@@ -16429,11 +16428,11 @@ function jf(e, t) {
16429
16428
  ae >= -2 && ae <= 2 ? u(o, { frequencyPenalty: ae }) : ar.warning("Frequency Penalty的范围是[-2.0, 2.0]");
16430
16429
  }
16431
16430
  }), I(Pe), I(oe), I(X);
16432
- var we = A(X, 2), be = z(we), ce = z(be), Q = z(ce);
16431
+ var _e = A(X, 2), be = z(_e), ce = z(be), Q = z(ce);
16433
16432
  I(ce);
16434
16433
  var le = A(ce, 2), Z = z(le), ve = z(Z);
16435
- dr(ve), ve.__change = [x_, u, o, n], Te(2), I(Z), I(le), I(be), I(we), He(() => {
16436
- tt(m, `Temperature: ${n().temperature ?? ""}`), tt(D, `Top P: ${n().topP ?? ""}`), tt(P, `Max Tokens: ${n().maxTokens ?? ""}`), tt(J, `Presence Penalty: ${n().presencePenalty ?? ""}`), tt(xe, `Frequency Penalty: ${n().frequencyPenalty ?? ""}`), tt(Q, `Enable Thinking: ${n().enableThinking ?? ""}`);
16434
+ dr(ve), ve.__change = [x_, u, o, n], Te(2), I(Z), I(le), I(be), I(_e), He(() => {
16435
+ tt(m, `Temperature: ${n().temperature ?? ""}`), tt(D, `Top P: ${n().topP ?? ""}`), tt(P, `Max Tokens: ${n().maxTokens ?? ""}`), tt(J, `Presence Penalty: ${n().presencePenalty ?? ""}`), tt(we, `Frequency Penalty: ${n().frequencyPenalty ?? ""}`), tt(Q, `Enable Thinking: ${n().enableThinking ?? ""}`);
16437
16436
  }), Vc(ve, () => n().enableThinking, (pe) => n().enableThinking = pe), V(y, C);
16438
16437
  };
16439
16438
  hn(e, gt(
@@ -16494,7 +16493,7 @@ function jf(e, t) {
16494
16493
  placeholder: "请选择模型组",
16495
16494
  onSelect: (X) => {
16496
16495
  const oe = X.value;
16497
- f(oe), u(o, () => ({ modelGroupId: oe })), u(o, () => ({ modelId: void 0 }));
16496
+ f(oe), u(o, (ne) => ({ ...ne, modelGroupId: oe, modelId: null }));
16498
16497
  },
16499
16498
  get value() {
16500
16499
  return d(G);
@@ -16514,10 +16513,7 @@ function jf(e, t) {
16514
16513
  placeholder: "请选择模型",
16515
16514
  onSelect: (X) => {
16516
16515
  const oe = X.value;
16517
- u(o, () => ({
16518
- // llmId: newValue,
16519
- modelId: oe
16520
- }));
16516
+ u(o, () => ({ modelId: oe }));
16521
16517
  },
16522
16518
  get value() {
16523
16519
  return d(G);
@@ -16756,7 +16752,7 @@ function Xf(e, t) {
16756
16752
  ae >= -2 && ae <= 2 ? u(o, { presencePenalty: ae }) : ar.warning("Presence Penalty的范围是[-2.0, 2.0]");
16757
16753
  }
16758
16754
  }), I(q), I(B), I(H);
16759
- var X = A(H, 2), oe = z(X), ne = z(oe), xe = z(ne);
16755
+ var X = A(H, 2), oe = z(X), ne = z(oe), we = z(ne);
16760
16756
  I(ne);
16761
16757
  var Pe = A(ne, 2), Ae = z(Pe);
16762
16758
  ct(Ae, {
@@ -16770,11 +16766,11 @@ function Xf(e, t) {
16770
16766
  ae >= -2 && ae <= 2 ? u(o, { frequencyPenalty: ae }) : ar.warning("Frequency Penalty的范围是[-2.0, 2.0]");
16771
16767
  }
16772
16768
  }), I(Pe), I(oe), I(X);
16773
- var we = A(X, 2), be = z(we), ce = z(be), Q = z(ce);
16769
+ var _e = A(X, 2), be = z(_e), ce = z(be), Q = z(ce);
16774
16770
  I(ce);
16775
16771
  var le = A(ce, 2), Z = z(le), ve = z(Z);
16776
- dr(ve), ve.__change = [P_, u, o, n], Te(2), I(Z), I(le), I(be), I(we), He(() => {
16777
- tt(m, `Temperature: ${n().temperature ?? ""}`), tt(D, `Top P: ${n().topP ?? ""}`), tt(P, `Max Tokens: ${n().maxTokens ?? ""}`), tt(J, `Presence Penalty: ${n().presencePenalty ?? ""}`), tt(xe, `Frequency Penalty: ${n().frequencyPenalty ?? ""}`), tt(Q, `Enable Thinking: ${n().enableThinking ?? ""}`);
16772
+ dr(ve), ve.__change = [P_, u, o, n], Te(2), I(Z), I(le), I(be), I(_e), He(() => {
16773
+ tt(m, `Temperature: ${n().temperature ?? ""}`), tt(D, `Top P: ${n().topP ?? ""}`), tt(P, `Max Tokens: ${n().maxTokens ?? ""}`), tt(J, `Presence Penalty: ${n().presencePenalty ?? ""}`), tt(we, `Frequency Penalty: ${n().frequencyPenalty ?? ""}`), tt(Q, `Enable Thinking: ${n().enableThinking ?? ""}`);
16778
16774
  }), Vc(ve, () => n().enableThinking, (pe) => n().enableThinking = pe), V(y, C);
16779
16775
  };
16780
16776
  hn(e, gt(
@@ -17451,8 +17447,8 @@ function qf(e, t) {
17451
17447
  level: 3,
17452
17448
  children: (Be, Le) => {
17453
17449
  Te();
17454
- var _e = Ie("参数");
17455
- V(Be, _e);
17450
+ var xe = Ie("参数");
17451
+ V(Be, xe);
17456
17452
  },
17457
17453
  $$slots: { default: !0 }
17458
17454
  });
@@ -17464,8 +17460,8 @@ function qf(e, t) {
17464
17460
  s(i, "formData");
17465
17461
  },
17466
17462
  children: (Be, Le) => {
17467
- var _e = Z_();
17468
- V(Be, _e);
17463
+ var xe = Z_();
17464
+ V(Be, xe);
17469
17465
  },
17470
17466
  $$slots: { default: !0 }
17471
17467
  }), I(Z);
@@ -17484,8 +17480,8 @@ function qf(e, t) {
17484
17480
  level: 3,
17485
17481
  children: (Be, Le) => {
17486
17482
  Te();
17487
- var _e = Ie("Body 参数");
17488
- V(Be, _e);
17483
+ var xe = Ie("Body 参数");
17484
+ V(Be, xe);
17489
17485
  },
17490
17486
  $$slots: { default: !0 }
17491
17487
  });
@@ -17497,8 +17493,8 @@ function qf(e, t) {
17497
17493
  s(i, "formUrlencoded");
17498
17494
  },
17499
17495
  children: (Be, Le) => {
17500
- var _e = q_();
17501
- V(Be, _e);
17496
+ var xe = q_();
17497
+ V(Be, xe);
17502
17498
  },
17503
17499
  $$slots: { default: !0 }
17504
17500
  }), I(Z);
@@ -17529,7 +17525,7 @@ function qf(e, t) {
17529
17525
  n().bodyType === "json" && Q(ne);
17530
17526
  });
17531
17527
  }
17532
- var xe = A(oe, 2);
17528
+ var we = A(oe, 2);
17533
17529
  {
17534
17530
  var Pe = (Q) => {
17535
17531
  var le = U_(), Z = z(le);
@@ -17545,12 +17541,12 @@ function qf(e, t) {
17545
17541
  }
17546
17542
  }), I(le), V(Q, le);
17547
17543
  };
17548
- ye(xe, (Q) => {
17544
+ ye(we, (Q) => {
17549
17545
  n().bodyType === "raw" && Q(Pe);
17550
17546
  });
17551
17547
  }
17552
- var Ae = A(xe, 2), we = z(Ae);
17553
- nt(we, {
17548
+ var Ae = A(we, 2), _e = z(Ae);
17549
+ nt(_e, {
17554
17550
  level: 3,
17555
17551
  mt: "10px",
17556
17552
  children: (Q, le) => {
@@ -17560,7 +17556,7 @@ function qf(e, t) {
17560
17556
  },
17561
17557
  $$slots: { default: !0 }
17562
17558
  });
17563
- var be = A(we, 2);
17559
+ var be = A(_e, 2);
17564
17560
  Ue(be, {
17565
17561
  class: "input-btn-more",
17566
17562
  style: "margin-left: auto",
@@ -18307,7 +18303,7 @@ function e1(e, t) {
18307
18303
  I(G);
18308
18304
  var oe = A(G, 2), ne = z(oe);
18309
18305
  {
18310
- let xe = /* @__PURE__ */ $e(() => n()[d(T).name] || d(T).defaultValue);
18306
+ let we = /* @__PURE__ */ $e(() => n()[d(T).name] || d(T).defaultValue);
18311
18307
  ct(ne, gt(
18312
18308
  {
18313
18309
  get placeholder() {
@@ -18315,7 +18311,7 @@ function e1(e, t) {
18315
18311
  },
18316
18312
  style: "width: 100%",
18317
18313
  get value() {
18318
- return d(xe);
18314
+ return d(we);
18319
18315
  }
18320
18316
  },
18321
18317
  () => d(T).attrs,
@@ -18331,9 +18327,9 @@ function e1(e, t) {
18331
18327
  var q = Xe(), G = fe(q);
18332
18328
  {
18333
18329
  var X = (ne) => {
18334
- var xe = bx(), Pe = fe(xe), Ae = z(Pe, !0);
18330
+ var we = bx(), Pe = fe(we), Ae = z(Pe, !0);
18335
18331
  I(Pe);
18336
- var we = A(Pe, 2), be = z(we);
18332
+ var _e = A(Pe, 2), be = z(_e);
18337
18333
  {
18338
18334
  let ce = /* @__PURE__ */ $e(() => n()[d(T).name] || d(T).defaultValue);
18339
18335
  mt(be, gt(
@@ -18355,9 +18351,9 @@ function e1(e, t) {
18355
18351
  }
18356
18352
  ));
18357
18353
  }
18358
- I(we), He(() => tt(Ae, d(T).label)), V(ne, xe);
18354
+ I(_e), He(() => tt(Ae, d(T).label)), V(ne, we);
18359
18355
  }, oe = (ne) => {
18360
- var xe = Xe(), Pe = fe(xe);
18356
+ var we = Xe(), Pe = fe(we);
18361
18357
  {
18362
18358
  var Ae = (be) => {
18363
18359
  var ce = Cx(), Q = fe(ce), le = z(Q, !0);
@@ -18366,7 +18362,7 @@ function e1(e, t) {
18366
18362
  I(pe);
18367
18363
  var Be = A(pe, 2);
18368
18364
  dr(Be);
18369
- var Le = (_e) => l({ [d(T).name]: parseFloat(_e.target.value) });
18365
+ var Le = (xe) => l({ [d(T).name]: parseFloat(xe.target.value) });
18370
18366
  on(
18371
18367
  Be,
18372
18368
  () => ({
@@ -18382,16 +18378,16 @@ function e1(e, t) {
18382
18378
  ), I(ve), I(Z), He(() => {
18383
18379
  tt(le, d(T).label), tt(ae, `${d(T).description ?? ""}: ${n()[d(T).name] ?? d(T).defaultValue ?? ""}`);
18384
18380
  }), V(be, ce);
18385
- }, we = (be) => {
18381
+ }, _e = (be) => {
18386
18382
  var ce = Xe(), Q = fe(ce);
18387
18383
  {
18388
18384
  var le = (ve) => {
18389
18385
  var pe = $x(), ae = fe(pe), Be = z(ae, !0);
18390
18386
  I(ae);
18391
- var Le = A(ae, 2), _e = z(Le);
18387
+ var Le = A(ae, 2), xe = z(Le);
18392
18388
  {
18393
18389
  let ze = /* @__PURE__ */ $e(() => d(T).options || []), qe = /* @__PURE__ */ $e(() => n()[d(T).name] ? [n()[d(T).name]] : [d(T).defaultValue]);
18394
- qt(_e, {
18390
+ qt(xe, {
18395
18391
  get items() {
18396
18392
  return d(ze);
18397
18393
  },
@@ -18412,7 +18408,7 @@ function e1(e, t) {
18412
18408
  }, Z = (ve) => {
18413
18409
  var pe = Xe(), ae = fe(pe);
18414
18410
  {
18415
- var Be = (_e) => {
18411
+ var Be = (xe) => {
18416
18412
  var ze = kx(), qe = fe(ze), it = z(qe, !0);
18417
18413
  I(qe);
18418
18414
  var U = A(qe, 2), Ke = z(U);
@@ -18443,8 +18439,8 @@ function e1(e, t) {
18443
18439
  }
18444
18440
  });
18445
18441
  }
18446
- I(U), He(() => tt(it, d(T).label)), V(_e, ze);
18447
- }, Le = (_e) => {
18442
+ I(U), He(() => tt(it, d(T).label)), V(xe, ze);
18443
+ }, Le = (xe) => {
18448
18444
  var ze = Xe(), qe = fe(ze);
18449
18445
  {
18450
18446
  var it = (U) => {
@@ -18465,12 +18461,12 @@ function e1(e, t) {
18465
18461
  !0
18466
18462
  );
18467
18463
  }
18468
- V(_e, ze);
18464
+ V(xe, ze);
18469
18465
  };
18470
18466
  ye(
18471
18467
  ae,
18472
- (_e) => {
18473
- d(T).type === "chosen" ? _e(Be) : _e(Le, !1);
18468
+ (xe) => {
18469
+ d(T).type === "chosen" ? xe(Be) : xe(Le, !1);
18474
18470
  },
18475
18471
  !0
18476
18472
  );
@@ -18490,12 +18486,12 @@ function e1(e, t) {
18490
18486
  ye(
18491
18487
  Pe,
18492
18488
  (be) => {
18493
- d(T).type === "slider" ? be(Ae) : be(we, !1);
18489
+ d(T).type === "slider" ? be(Ae) : be(_e, !1);
18494
18490
  },
18495
18491
  !0
18496
18492
  );
18497
18493
  }
18498
- V(ne, xe);
18494
+ V(ne, we);
18499
18495
  };
18500
18496
  ye(
18501
18497
  G,
@@ -18665,8 +18661,8 @@ function t1(e, t) {
18665
18661
  else {
18666
18662
  let X = !1;
18667
18663
  for (let oe = 0; oe < q.length; oe++) {
18668
- const ne = q[oe], xe = v(ne.source);
18669
- if (xe.parentId || xe.type === "loopNode") {
18664
+ const ne = q[oe], we = v(ne.source);
18665
+ if (we.parentId || we.type === "loopNode") {
18670
18666
  X = !0;
18671
18667
  break;
18672
18668
  }
@@ -18741,10 +18737,10 @@ function t1(e, t) {
18741
18737
  pf(X, {});
18742
18738
  var oe = A(X, 2);
18743
18739
  {
18744
- var ne = (xe) => {
18745
- vi(xe, {
18740
+ var ne = (we) => {
18741
+ vi(we, {
18746
18742
  children: (Pe, Ae) => {
18747
- var we = Hx(), be = A(z(we), 4), ce = z(be);
18743
+ var _e = Hx(), be = A(z(_e), 4), ce = z(be);
18748
18744
  {
18749
18745
  let ve = /* @__PURE__ */ $e(() => {
18750
18746
  var pe, ae;
@@ -18789,13 +18785,13 @@ function t1(e, t) {
18789
18785
  V(ve, ae);
18790
18786
  },
18791
18787
  $$slots: { default: !0 }
18792
- }), I(Q), I(we), V(Pe, we);
18788
+ }), I(Q), I(_e), V(Pe, _e);
18793
18789
  },
18794
18790
  $$slots: { default: !0 }
18795
18791
  });
18796
18792
  };
18797
- ye(oe, (xe) => {
18798
- d(u) && xe(ne);
18793
+ ye(oe, (we) => {
18794
+ d(u) && we(ne);
18799
18795
  });
18800
18796
  }
18801
18797
  V(B, J);