@squeed/flow-sdk 2.0.11 → 2.0.12

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
@@ -2,8 +2,8 @@ var uv = Object.defineProperty;
2
2
  var lv = (e, t, r) => t in e ? uv(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var zr = (e, t, r) => lv(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import { jsx as b, jsxs as z, Fragment as Re } from "react/jsx-runtime";
5
- import { IconButton as $u, Tooltip as _t, Portal as dv, chakra as lt, Text as qr, Icon as Te, Tabs as Cn, HStack as an, Box as ke, Input as $y, Flex as sr, Textarea as fv } from "@chakra-ui/react";
6
- import { useState as re, useRef as ue, useEffect as qe, createContext as Uu, useContext as Nr, useMemo as Le, useCallback as Xe, forwardRef as Hu, cloneElement as hv, useId as pt, Children as pv, isValidElement as gv, useLayoutEffect as $r, memo as gt, Fragment as yv, createElement as bv } from "react";
5
+ import { IconButton as $u, Tooltip as _t, Portal as dv, chakra as lt, Text as $r, Icon as Te, Tabs as Cn, HStack as an, Box as ke, Input as $y, Flex as sr, Textarea as fv } from "@chakra-ui/react";
6
+ import { useState as re, useRef as ue, useEffect as Le, createContext as Uu, useContext as Nr, useMemo as Ne, useCallback as Xe, forwardRef as Hu, cloneElement as hv, useId as pt, Children as pv, isValidElement as gv, useLayoutEffect as Pr, memo as gt, Fragment as yv, createElement as bv } from "react";
7
7
  import { PiXLight as mv, PiCaretUp as Ny, PiCheck as Rn, PiArrowsIn as vv, PiSelection as wv, PiSquareFill as Ly, PiLineSegments as Ku, PiGridFour as xv, PiDotsNine as Cv, PiArrowsOutCardinal as jy, PiBezierCurve as zy, PiLink as _v, PiCaretDown as Pn, PiTrash as yt, PiPlus as ft, PiX as Fy, PiListNumbers as Sv, PiBracketsCurly as Dy, PiMagnifyingGlass as Ev, PiArrowUp as By, PiArrowDown as Vy, PiArrowCounterClockwise as Wy, PiFile as kv, PiUploadSimple as Zu, PiShapes as Av, PiCaretLeft as Gy, PiCaretRight as Uy, PiArrowRight as Hy, PiLineSegment as Ky, PiFastForward as Rv, PiImage as Pv, PiSquare as Ov, PiBoundingBox as Tv, PiSpinnerGap as Iv, PiArrowsOutLineVertical as Mv, PiArrowsInLineVertical as Zy, PiEraser as qv, PiLineVerticalThin as Ar, PiDownloadSimpleFill as $v, PiWarningCircle as Nv, PiGraph as Jy, PiTable as Lv, PiTreeStructure as jv, PiArrowLeft as zv, PiPushPinFill as Fv, PiPushPin as Dv, PiMinus as Bv, PiMagnifyingGlassPlus as Vv, PiSelectionPlus as Wv, PiHandGrabbing as Gv, PiPencilSimpleLine as Uv, PiBracketsSquare as Hv, PiAlignCenterHorizontal as Kv, PiCircleFill as Ju, PiPlusBold as Nu, PiMinusBold as Pl } from "react-icons/pi";
8
8
  import { keyframes as Yy } from "@emotion/react";
9
9
  import Ln from "@emotion/styled";
@@ -18,7 +18,7 @@ function Yv({
18
18
  threshold: o = 80
19
19
  }) {
20
20
  const [i, s] = re(!1), [a, u] = re(!1), c = ue(n);
21
- return c.current = n, qe(() => {
21
+ return c.current = n, Le(() => {
22
22
  if (!t) return;
23
23
  const l = () => {
24
24
  const f = document.querySelectorAll(
@@ -40,7 +40,7 @@ function Yv({
40
40
  }), document.addEventListener("toggle", l, !0), l(), () => {
41
41
  d.disconnect(), document.removeEventListener("toggle", l, !0);
42
42
  };
43
- }, [t]), qe(() => {
43
+ }, [t]), Le(() => {
44
44
  const l = (f) => {
45
45
  var y;
46
46
  const h = (y = r.current) == null ? void 0 : y.getBoundingClientRect();
@@ -56,7 +56,7 @@ function Yv({
56
56
  };
57
57
  }, [e, r, o]), t && (i || a);
58
58
  }
59
- const pn = "#8c8c8d";
59
+ const pn = "#c6c6c6";
60
60
  function Lu(e, t = 0.2) {
61
61
  const r = e.replace(/^#/, ""), n = parseInt(r, 16);
62
62
  let o = n >> 16 & 255, i = n >> 8 & 255, s = n & 255;
@@ -324,92 +324,92 @@ function r0({
324
324
  edges: n = [],
325
325
  children: o
326
326
  }) {
327
- const i = Le(() => {
327
+ const i = Ne(() => {
328
328
  var Ge, mr, Q;
329
- const oe = /* @__PURE__ */ new Map();
330
- for (const j of r) (Ge = j.data) != null && Ge.id && oe.set(j.data.id, j);
329
+ const ie = /* @__PURE__ */ new Map();
330
+ for (const j of r) (Ge = j.data) != null && Ge.id && ie.set(j.data.id, j);
331
331
  const We = /* @__PURE__ */ new Map();
332
332
  for (const j of n) (mr = j.data) != null && mr.id && We.set(j.data.id, j);
333
333
  const rr = /* @__PURE__ */ new Set();
334
334
  for (const j of r) (Q = j.data) != null && Q.parent && rr.add(j.data.parent);
335
- return { nodeById: oe, edgeById: We, parentIds: rr };
335
+ return { nodeById: ie, edgeById: We, parentIds: rr };
336
336
  }, [r, n]), s = ue(null), [a, u] = re([]), [c, l] = re(null), [d, f] = re(!0), [h, g] = re(!1), [p, m] = re(!0), [w, y] = re(!1), [x, v] = re(!1), [C, S] = re(!0), [E, O] = re(!1), [A, M] = re("auto"), [k, _] = re(!1), P = e.compactPropertyLayout ?? k, [I, q] = re({}), T = e.nodeViewModes ?? I, V = [...i.nodeById.values()].filter(
337
- (oe) => {
337
+ (ie) => {
338
338
  var We;
339
- return i.parentIds.has(oe.data.id) || ((We = oe.data.config) == null ? void 0 : We.parentContainer) || oe.data.type === "objectView" || oe.data.type === "arrayView";
339
+ return i.parentIds.has(ie.data.id) || ((We = ie.data.config) == null ? void 0 : We.parentContainer) || ie.data.type === "objectView" || ie.data.type === "arrayView";
340
340
  }
341
341
  ), B = !!V.length && V.every(
342
- (oe) => {
342
+ (ie) => {
343
343
  var We, rr, Ge;
344
- return i.parentIds.has(oe.data.id) || (We = oe.data.config) != null && We.parentContainer ? !!((rr = oe.data.config) != null && rr.collapsed) : T[oe.data.id] === "icon-label" || ((Ge = oe.data.config) == null ? void 0 : Ge.labelBelow) && T[oe.data.id] !== "properties";
344
+ return i.parentIds.has(ie.data.id) || (We = ie.data.config) != null && We.parentContainer ? !!((rr = ie.data.config) != null && rr.collapsed) : T[ie.data.id] === "icon-label" || ((Ge = ie.data.config) == null ? void 0 : Ge.labelBelow) && T[ie.data.id] !== "properties";
345
345
  }
346
- ), [ce, te] = re("normal"), [Y, he] = re(), le = e.edgeRadius ?? Y, N = le !== void 0 && Number.isFinite(le) ? Math.min(500, Math.max(0, le)) : void 0, [D, W] = re(), $ = e.spacing ?? ce, X = typeof $ == "number" ? Number.isFinite($) ? Math.min(2, Math.max(0.5, $)) : 1 : $ === "compact" ? 0.5 : $ === "spacious" ? 2 : 1, ge = e.backgroundVariant ?? D ?? (e.backgroundPattern === "none" && e.backgroundColor === "transparent" ? "transparent" : e.backgroundPattern ?? "dot"), [ye, H] = re(), J = Object.prototype.hasOwnProperty.call(
346
+ ), [ce, te] = re("normal"), [Y, pe] = re(), le = e.edgeRadius ?? Y, N = le !== void 0 && Number.isFinite(le) ? Math.min(500, Math.max(0, le)) : void 0, [D, W] = re(), $ = e.spacing ?? ce, X = typeof $ == "number" ? Number.isFinite($) ? Math.min(2, Math.max(0.5, $)) : 1 : $ === "compact" ? 0.5 : $ === "spacious" ? 2 : 1, ye = e.backgroundVariant ?? D ?? (e.backgroundPattern === "none" && e.backgroundColor === "transparent" ? "transparent" : e.backgroundPattern ?? "dot"), [fe, H] = re(), Z = Object.prototype.hasOwnProperty.call(
347
347
  e,
348
348
  "workflowContract"
349
- ) ? e.workflowContract : ye, [G, ae] = re("blue.500"), [ee, we] = re(!1), pe = ue(t);
350
- pe.current = t;
351
- const He = Le(() => {
352
- const oe = (We) => (...rr) => {
349
+ ) ? e.workflowContract : fe, [G, ae] = re("blue.500"), [ee, we] = re(!1), ge = ue(t);
350
+ ge.current = t;
351
+ const He = Ne(() => {
352
+ const ie = (We) => (...rr) => {
353
353
  var Ge, mr;
354
- return (mr = (Ge = pe.current) == null ? void 0 : Ge[We]) == null ? void 0 : mr.call(Ge, ...rr);
354
+ return (mr = (Ge = ge.current) == null ? void 0 : Ge[We]) == null ? void 0 : mr.call(Ge, ...rr);
355
355
  };
356
356
  return {
357
357
  // Node events
358
- onNodeSelect: oe("onNodeSelect"),
359
- onBackgroundClick: oe("onBackgroundClick"),
360
- onNodeDeselect: oe("onNodeDeselect"),
361
- onNodeDoubleClick: oe("onNodeDoubleClick"),
362
- onNodeViewToggle: oe("onNodeViewToggle"),
363
- onNodeTypeViewChange: oe("onNodeTypeViewChange"),
364
- onNodeCreate: oe("onNodeCreate"),
365
- onNodeCreateRequest: oe("onNodeCreateRequest"),
366
- onNodeDelete: oe("onNodeDelete"),
367
- onNodeLabelChange: oe("onNodeLabelChange"),
368
- onNodeContentChange: oe("onNodeContentChange"),
369
- onNodeCollapse: oe("onNodeCollapse"),
370
- onNodeColorChange: oe("onNodeColorChange"),
371
- onNodeBorderColorChange: oe("onNodeBorderColorChange"),
372
- onNodeBorderStyleChange: oe("onNodeBorderStyleChange"),
373
- onNodeBorderWidthChange: oe("onNodeBorderWidthChange"),
374
- onNodeBorderRadiusChange: oe("onNodeBorderRadiusChange"),
375
- onNodeIconChange: oe("onNodeIconChange"),
376
- onNodeOutlineChange: oe("onNodeOutlineChange"),
377
- onNodeAnimationChange: oe("onNodeAnimationChange"),
378
- onNodeAnimationVariantChange: oe("onNodeAnimationVariantChange"),
379
- onEdgeAnimationVariantChange: oe("onEdgeAnimationVariantChange"),
380
- onNodeHoverAction: oe("onNodeHoverAction"),
358
+ onNodeSelect: ie("onNodeSelect"),
359
+ onBackgroundClick: ie("onBackgroundClick"),
360
+ onNodeDeselect: ie("onNodeDeselect"),
361
+ onNodeDoubleClick: ie("onNodeDoubleClick"),
362
+ onNodeViewToggle: ie("onNodeViewToggle"),
363
+ onNodeTypeViewChange: ie("onNodeTypeViewChange"),
364
+ onNodeCreate: ie("onNodeCreate"),
365
+ onNodeCreateRequest: ie("onNodeCreateRequest"),
366
+ onNodeDelete: ie("onNodeDelete"),
367
+ onNodeLabelChange: ie("onNodeLabelChange"),
368
+ onNodeContentChange: ie("onNodeContentChange"),
369
+ onNodeCollapse: ie("onNodeCollapse"),
370
+ onNodeColorChange: ie("onNodeColorChange"),
371
+ onNodeBorderColorChange: ie("onNodeBorderColorChange"),
372
+ onNodeBorderStyleChange: ie("onNodeBorderStyleChange"),
373
+ onNodeBorderWidthChange: ie("onNodeBorderWidthChange"),
374
+ onNodeBorderRadiusChange: ie("onNodeBorderRadiusChange"),
375
+ onNodeIconChange: ie("onNodeIconChange"),
376
+ onNodeOutlineChange: ie("onNodeOutlineChange"),
377
+ onNodeAnimationChange: ie("onNodeAnimationChange"),
378
+ onNodeAnimationVariantChange: ie("onNodeAnimationVariantChange"),
379
+ onEdgeAnimationVariantChange: ie("onEdgeAnimationVariantChange"),
380
+ onNodeHoverAction: ie("onNodeHoverAction"),
381
381
  // Edge events
382
- onEdgeCreate: oe("onEdgeCreate"),
383
- onEdgeSelect: oe("onEdgeSelect"),
384
- onEdgeDeselect: oe("onEdgeDeselect"),
385
- onEdgeRemove: oe("onEdgeRemove"),
386
- onEdgeDelete: oe("onEdgeDelete"),
387
- onEdgeColorChange: oe("onEdgeColorChange"),
388
- onEdgeTypeChange: oe("onEdgeTypeChange"),
389
- onEdgeIconChange: oe("onEdgeIconChange"),
390
- onEdgeLabelChange: oe("onEdgeLabelChange"),
391
- onEdgeStyleChange: oe("onEdgeStyleChange"),
382
+ onEdgeCreate: ie("onEdgeCreate"),
383
+ onEdgeSelect: ie("onEdgeSelect"),
384
+ onEdgeDeselect: ie("onEdgeDeselect"),
385
+ onEdgeRemove: ie("onEdgeRemove"),
386
+ onEdgeDelete: ie("onEdgeDelete"),
387
+ onEdgeColorChange: ie("onEdgeColorChange"),
388
+ onEdgeTypeChange: ie("onEdgeTypeChange"),
389
+ onEdgeIconChange: ie("onEdgeIconChange"),
390
+ onEdgeLabelChange: ie("onEdgeLabelChange"),
391
+ onEdgeStyleChange: ie("onEdgeStyleChange"),
392
392
  // Diagram events
393
- onViewportChange: oe("onViewportChange"),
394
- onDirectionChange: oe("onDirectionChange"),
395
- onThemeColorChange: oe("onThemeColorChange"),
396
- onSpacingChange: oe("onSpacingChange"),
397
- onEdgeRadiusChange: oe("onEdgeRadiusChange"),
398
- onBackgroundVariantChange: oe("onBackgroundVariantChange"),
399
- onEdgeModeChange: oe("onEdgeModeChange"),
400
- onCompactPropertyLayoutChange: oe("onCompactPropertyLayoutChange"),
401
- onWorkflowContractChange: oe("onWorkflowContractChange"),
402
- onArrayModeChange: oe("onArrayModeChange"),
403
- onInit: oe("onInit"),
404
- onLayoutComplete: oe("onLayoutComplete"),
405
- onJsonChange: oe("onJsonChange")
393
+ onViewportChange: ie("onViewportChange"),
394
+ onDirectionChange: ie("onDirectionChange"),
395
+ onThemeColorChange: ie("onThemeColorChange"),
396
+ onSpacingChange: ie("onSpacingChange"),
397
+ onEdgeRadiusChange: ie("onEdgeRadiusChange"),
398
+ onBackgroundVariantChange: ie("onBackgroundVariantChange"),
399
+ onEdgeModeChange: ie("onEdgeModeChange"),
400
+ onCompactPropertyLayoutChange: ie("onCompactPropertyLayoutChange"),
401
+ onWorkflowContractChange: ie("onWorkflowContractChange"),
402
+ onArrayModeChange: ie("onArrayModeChange"),
403
+ onInit: ie("onInit"),
404
+ onLayoutComplete: ie("onLayoutComplete"),
405
+ onJsonChange: ie("onJsonChange")
406
406
  };
407
- }, []), K = e.themeColor || G, [de, Ce] = re(""), je = e.edgeColor ?? de, Fe = e.colorMode || "light", Je = e.direction || "LR", or = e.nodeAlignment ?? "center", Ke = e.edgeMode === "workflow" ? "nodes" : e.edgeMode ?? A, xe = e.readOnly ?? !1, _e = JSON.stringify(e.parentNodeStyle ?? null), Ye = Le(
407
+ }, []), K = e.themeColor || G, [de, Ce] = re(""), je = e.edgeColor ?? de, Fe = e.colorMode || "light", Je = e.direction || "LR", or = e.nodeAlignment ?? "center", Ke = e.edgeMode === "workflow" ? "nodes" : e.edgeMode ?? A, xe = e.readOnly ?? !1, _e = JSON.stringify(e.parentNodeStyle ?? null), Ye = Ne(
408
408
  () => e.parentNodeStyle,
409
409
  [_e]
410
410
  ), tr = e.isZoomMode !== void 0 ? e.isZoomMode : d, pr = e.isMultiSelectMode !== void 0 ? e.isMultiSelectMode : h, ir = e.isEdgeHandlesEnabled !== void 0 ? e.isEdgeHandlesEnabled : w, hr = e.isDragMode !== void 0 ? e.isDragMode : p, Ee = ue(e);
411
411
  Ee.current = e;
412
- const Ct = Le(
412
+ const Ct = Ne(
413
413
  () => ({
414
414
  get direction() {
415
415
  return Ee.current.direction;
@@ -513,46 +513,46 @@ function r0({
513
513
  }),
514
514
  []
515
515
  ), br = Xe(
516
- (oe, We) => {
516
+ (ie, We) => {
517
517
  var rr;
518
518
  if (We !== "default" && We !== "properties" && We !== "icon-label")
519
519
  throw new Error("Unknown node view mode.");
520
520
  q(
521
- (Ge) => Ge[oe] === We ? Ge : { ...Ge, [oe]: We }
522
- ), (rr = t.onNodeViewModeChange) == null || rr.call(t, oe, We);
521
+ (Ge) => Ge[ie] === We ? Ge : { ...Ge, [ie]: We }
522
+ ), (rr = t.onNodeViewModeChange) == null || rr.call(t, ie, We);
523
523
  },
524
524
  [t.onNodeViewModeChange]
525
- ), Bt = Le(
525
+ ), Bt = Ne(
526
526
  () => ({
527
527
  allNodesIconLabel: B,
528
- setAllNodesIconLabel: (oe) => {
528
+ setAllNodesIconLabel: (ie) => {
529
529
  var We, rr, Ge, mr, Q;
530
- if (!oe)
531
- for (const [j, Z] of Object.entries(T))
532
- Z === "icon-label" && !i.nodeById.has(j) && br(j, "default");
530
+ if (!ie)
531
+ for (const [j, J] of Object.entries(T))
532
+ J === "icon-label" && !i.nodeById.has(j) && br(j, "default");
533
533
  for (const j of V)
534
- i.parentIds.has(j.data.id) || (We = j.data.config) != null && We.parentContainer ? !xe && !!((rr = j.data.config) != null && rr.collapsed) !== oe && ((Ge = t.onNodeCollapse) == null || Ge.call(t, j.data.id, oe)) : br(
534
+ i.parentIds.has(j.data.id) || (We = j.data.config) != null && We.parentContainer ? !xe && !!((rr = j.data.config) != null && rr.collapsed) !== ie && ((Ge = t.onNodeCollapse) == null || Ge.call(t, j.data.id, ie)) : br(
535
535
  j.data.id,
536
- oe ? "icon-label" : (mr = j.data.config) != null && mr.labelBelow ? "properties" : "default"
536
+ ie ? "icon-label" : (mr = j.data.config) != null && mr.labelBelow ? "properties" : "default"
537
537
  );
538
- (Q = t.onAllNodesIconLabelChange) == null || Q.call(t, oe);
538
+ (Q = t.onAllNodesIconLabelChange) == null || Q.call(t, ie);
539
539
  },
540
540
  nodeViewModes: T,
541
541
  setNodeViewMode: br,
542
542
  spacing: X,
543
543
  setSpacing: te,
544
544
  edgeRadius: N,
545
- setEdgeRadius: he,
546
- backgroundVariant: ge,
545
+ setEdgeRadius: pe,
546
+ backgroundVariant: ye,
547
547
  setBackgroundVariant: W,
548
548
  themeColor: K,
549
549
  setThemeColor: ae,
550
550
  backgroundSelected: ee,
551
551
  setBackgroundSelected: we,
552
552
  edgeColor: je,
553
- setEdgeColor: (oe) => {
553
+ setEdgeColor: (ie) => {
554
554
  var We;
555
- Ce(oe), (We = t.onGraphEdgeColorChange) == null || We.call(t, oe);
555
+ Ce(ie), (We = t.onGraphEdgeColorChange) == null || We.call(t, ie);
556
556
  },
557
557
  colorMode: Fe,
558
558
  direction: Je,
@@ -561,7 +561,7 @@ function r0({
561
561
  setEdgeMode: M,
562
562
  compactPropertyLayout: P,
563
563
  setCompactPropertyLayout: _,
564
- workflowContract: J,
564
+ workflowContract: Z,
565
565
  setWorkflowContract: H,
566
566
  parentNodeStyle: Ye,
567
567
  selectedNodeIds: a,
@@ -598,7 +598,7 @@ function r0({
598
598
  t.onNodeViewModeChange,
599
599
  K,
600
600
  X,
601
- ge,
601
+ ye,
602
602
  N,
603
603
  e.backgroundColor,
604
604
  ee,
@@ -607,7 +607,7 @@ function r0({
607
607
  Je,
608
608
  or,
609
609
  Ke,
610
- J,
610
+ Z,
611
611
  Ye,
612
612
  a,
613
613
  c,
@@ -1018,7 +1018,7 @@ function Mw(e) {
1018
1018
  var Rr = Mw(function(e, t, r) {
1019
1019
  return e + (r ? " " : "") + W0(t);
1020
1020
  });
1021
- function Ne({
1021
+ function $e({
1022
1022
  label: e,
1023
1023
  children: t
1024
1024
  }) {
@@ -1055,7 +1055,7 @@ function kn() {
1055
1055
  }
1056
1056
  );
1057
1057
  }
1058
- function Pr({
1058
+ function Or({
1059
1059
  children: e,
1060
1060
  value: t,
1061
1061
  onValueChange: r,
@@ -1070,7 +1070,7 @@ function Pr({
1070
1070
  }) {
1071
1071
  var k;
1072
1072
  const { colorMode: d } = Ve(), { background: f, border: h, colorText: g, colorInactive: p } = nr(), m = d === "dark", w = pt(), y = ue(null), x = ue(null), [v, C] = re(!1);
1073
- qe(() => {
1073
+ Le(() => {
1074
1074
  const _ = x.current;
1075
1075
  _.setAttribute("popover", "auto");
1076
1076
  const P = (I) => C(I.newState === "open");
@@ -1108,7 +1108,7 @@ function Pr({
1108
1108
  '[aria-selected="true"]:not(:disabled)'
1109
1109
  )) ?? (_ == null ? void 0 : _[0])) == null || ce.focus();
1110
1110
  };
1111
- qe(() => {
1111
+ Le(() => {
1112
1112
  if (v) {
1113
1113
  if (n) {
1114
1114
  E();
@@ -1121,7 +1121,7 @@ function Pr({
1121
1121
  }, [v, n]);
1122
1122
  const M = `var(--chakra-colors-${f.replace(".", "-")})`;
1123
1123
  return /* @__PURE__ */ z(Re, { children: [
1124
- /* @__PURE__ */ b(Ne, { label: i ?? c, children: /* @__PURE__ */ b(
1124
+ /* @__PURE__ */ b($e, { label: i ?? c, children: /* @__PURE__ */ b(
1125
1125
  lt.button,
1126
1126
  {
1127
1127
  ...l,
@@ -1288,7 +1288,7 @@ const Fu = {
1288
1288
  );
1289
1289
  }), gn = Hu(function(t, r) {
1290
1290
  const { themeColor: n } = Ve();
1291
- return /* @__PURE__ */ b(Ne, { label: "Close", children: /* @__PURE__ */ b(
1291
+ return /* @__PURE__ */ b($e, { label: "Close", children: /* @__PURE__ */ b(
1292
1292
  Se,
1293
1293
  {
1294
1294
  ref: r,
@@ -1310,7 +1310,7 @@ function Xu({
1310
1310
  disabled: o
1311
1311
  }) {
1312
1312
  const { themeColor: i, readOnly: s } = Ve(), { colorInactive: a } = nr();
1313
- return /* @__PURE__ */ b(Ne, { label: e, children: /* @__PURE__ */ b(
1313
+ return /* @__PURE__ */ b($e, { label: e, children: /* @__PURE__ */ b(
1314
1314
  Se,
1315
1315
  {
1316
1316
  "aria-label": e,
@@ -1318,7 +1318,7 @@ function Xu({
1318
1318
  icon: /* @__PURE__ */ z(Re, { children: [
1319
1319
  t,
1320
1320
  /* @__PURE__ */ b(
1321
- qr,
1321
+ $r,
1322
1322
  {
1323
1323
  as: "span",
1324
1324
  fontSize: "16px",
@@ -1487,7 +1487,7 @@ function Lw() {
1487
1487
  return /* @__PURE__ */ z(Re, { children: [
1488
1488
  /* @__PURE__ */ b(kn, {}),
1489
1489
  /* @__PURE__ */ b(
1490
- Pr,
1490
+ Or,
1491
1491
  {
1492
1492
  "aria-label": "Node spacing",
1493
1493
  title: `Spacing: ${Math.round(e * 100)}%`,
@@ -1517,7 +1517,7 @@ function Lw() {
1517
1517
  ),
1518
1518
  /* @__PURE__ */ b(kn, {}),
1519
1519
  /* @__PURE__ */ b(
1520
- Pr,
1520
+ Or,
1521
1521
  {
1522
1522
  "aria-label": "Edge radius",
1523
1523
  title: `Edge radius: ${r ?? "Default"}`,
@@ -1547,7 +1547,7 @@ function Lw() {
1547
1547
  ),
1548
1548
  /* @__PURE__ */ b(kn, {}),
1549
1549
  /* @__PURE__ */ z(
1550
- Pr,
1550
+ Or,
1551
1551
  {
1552
1552
  "aria-label": "Background variant",
1553
1553
  title: `Background: ${Fl[o].label}`,
@@ -2869,7 +2869,7 @@ function rn(e) {
2869
2869
  value: n.value
2870
2870
  }));
2871
2871
  }
2872
- function Mr(e, t, r) {
2872
+ function qr(e, t, r) {
2873
2873
  if (t === void 0 || t === "")
2874
2874
  return r ? "Required" : void 0;
2875
2875
  if (e.kind === "json") {
@@ -2886,16 +2886,16 @@ function Mr(e, t, r) {
2886
2886
  return o(t) ? void 0 : "Expected a JSON value";
2887
2887
  }
2888
2888
  if (e.kind === "union")
2889
- return e.types.some((n) => !Mr(n, t, !0)) ? void 0 : "Choose a valid value";
2889
+ return e.types.some((n) => !qr(n, t, !0)) ? void 0 : "Choose a valid value";
2890
2890
  if (e.kind === "literal")
2891
2891
  return t === e.value ? void 0 : "Choose a valid value";
2892
2892
  if (e.kind === "array")
2893
- return Array.isArray(t) && t.every((n) => !Mr(e.items, n, !0)) ? void 0 : "Invalid list value";
2893
+ return Array.isArray(t) && t.every((n) => !qr(e.items, n, !0)) ? void 0 : "Invalid list value";
2894
2894
  if (e.kind === "object")
2895
2895
  return !t || typeof t != "object" || Array.isArray(t) ? "Expected an object" : e.additionalProperties && Object.entries(t).some(
2896
- ([n, o]) => !Object.prototype.hasOwnProperty.call(e.properties, n) && Mr(e.additionalProperties, o, !0)
2896
+ ([n, o]) => !Object.prototype.hasOwnProperty.call(e.properties, n) && qr(e.additionalProperties, o, !0)
2897
2897
  ) ? "Invalid dictionary value" : Object.entries(e.properties).some(
2898
- ([n, o]) => Mr(
2898
+ ([n, o]) => qr(
2899
2899
  o.type,
2900
2900
  t[n],
2901
2901
  !o.optional
@@ -2989,7 +2989,7 @@ async function rx(e) {
2989
2989
  }
2990
2990
  const Br = ({ name: e, svg: t = !1, ...r }) => {
2991
2991
  const [n, o] = re(null), [i, s] = re(!0), [a, u] = re(!1), c = typeof e == "string" && Kr(e);
2992
- if (qe(() => {
2992
+ if (Le(() => {
2993
2993
  if (c || !e || e.length < 2) {
2994
2994
  o(null), s(!1);
2995
2995
  return;
@@ -3765,7 +3765,7 @@ function ux(e, t, r) {
3765
3765
  ([a, u]) => u.optional && s[a] === void 0 || o(u.type, s[a])
3766
3766
  ) && Object.entries(s).every(
3767
3767
  ([a, u]) => Object.prototype.hasOwnProperty.call(i.properties, a) || !i.additionalProperties || o(i.additionalProperties, u)
3768
- ) : s === "" ? i.kind === "string" || i.kind === "json" || i.kind === "literal" && i.value === "" : !Mr(i, s, !0);
3768
+ ) : s === "" ? i.kind === "string" || i.kind === "json" || i.kind === "literal" && i.value === "" : !qr(i, s, !0);
3769
3769
  if (o(r.type, n))
3770
3770
  return structuredClone(n);
3771
3771
  }
@@ -3839,12 +3839,12 @@ function lx(e, t, r, n) {
3839
3839
  };
3840
3840
  continue;
3841
3841
  }
3842
- const Y = s.get(I) ?? cx(I), he = w.kind === "array" ? `Item ${Number(_) + 1}` : _, le = {
3842
+ const Y = s.get(I) ?? cx(I), pe = w.kind === "array" ? `Item ${Number(_) + 1}` : _, le = {
3843
3843
  address: I,
3844
3844
  owner: l,
3845
3845
  field: _,
3846
3846
  type: P.type,
3847
- label: he,
3847
+ label: pe,
3848
3848
  nodeId: Y,
3849
3849
  present: q !== void 0
3850
3850
  };
@@ -3869,8 +3869,8 @@ function lx(e, t, r, n) {
3869
3869
  data: {
3870
3870
  id: Y,
3871
3871
  type: "objectView",
3872
- label: he,
3873
- headerTitle: he,
3872
+ label: pe,
3873
+ headerTitle: pe,
3874
3874
  description: {},
3875
3875
  config: {
3876
3876
  form: !0,
@@ -3982,7 +3982,7 @@ function dx({
3982
3982
  m.length > 1 && /* @__PURE__ */ z("label", { children: [
3983
3983
  "Value type",
3984
3984
  /* @__PURE__ */ b("span", { "data-form-select": "", style: { display: "block" }, children: /* @__PURE__ */ b(
3985
- Pr,
3985
+ Or,
3986
3986
  {
3987
3987
  "aria-label": "Value type",
3988
3988
  disabled: g,
@@ -4112,7 +4112,7 @@ function dx({
4112
4112
  children: [
4113
4113
  "New value type",
4114
4114
  /* @__PURE__ */ b("span", { "data-form-select": "", style: { display: "block" }, children: /* @__PURE__ */ z(
4115
- Pr,
4115
+ Or,
4116
4116
  {
4117
4117
  "aria-label": "New value type",
4118
4118
  value: c,
@@ -4314,13 +4314,13 @@ function Jl({
4314
4314
  value: n,
4315
4315
  disabled: o
4316
4316
  }) {
4317
- var ae, ee, we, pe, He;
4317
+ var ae, ee, we, ge, He;
4318
4318
  const {
4319
4319
  callbacks: i,
4320
4320
  structured: s,
4321
4321
  references: a
4322
4322
  } = Nr(Vr), { themeColor: u } = Ve(), { background: c } = nr(), l = pt(), d = t.type.kind === "object" || t.type.kind === "array" || t.type.kind === "json", f = n === void 0 ? "" : d ? JSON.stringify(n, null, 2) : String(n), [h, g] = re(f), [p, m] = re(""), [w, y] = re(0), x = ue(null), v = ue(), [C, S] = re(!1), [E, O] = re(!1), [A, M] = re(), k = ((ae = r.$options) == null ? void 0 : ae.$source) === "callback", _ = i.resolveFormOptions, { data: P, address: I, nodeAddress: q, nodeId: T } = e;
4323
- qe(() => (S(!1), O(!1), () => {
4323
+ Le(() => (S(!1), O(!1), () => {
4324
4324
  var K;
4325
4325
  (K = v.current) == null || K.abort(), v.current = void 0;
4326
4326
  }), [
@@ -4338,13 +4338,13 @@ function Jl({
4338
4338
  const B = JSON.stringify([
4339
4339
  I,
4340
4340
  T,
4341
- (pe = r.$options) != null && pe.$dependsOn ? r.$options.$dependsOn.map(
4341
+ (ge = r.$options) != null && ge.$dependsOn ? r.$options.$dependsOn.map(
4342
4342
  (K) => Ae(P, K)
4343
4343
  ) : Ae(P, q)
4344
4344
  ]);
4345
- qe(() => {
4345
+ Le(() => {
4346
4346
  g(f), m("");
4347
- }, [f, I, T]), qe(() => {
4347
+ }, [f, I, T]), Le(() => {
4348
4348
  if (!k) return;
4349
4349
  const K = new AbortController();
4350
4350
  return Promise.resolve().then(() => {
@@ -4373,7 +4373,7 @@ function Jl({
4373
4373
  const ce = k && (A == null ? void 0 : A.key) !== B, te = k ? (A == null ? void 0 : A.key) === B ? A.options : [] : t.type.kind === "null" ? [{ label: "Null", value: null }] : t.type.kind === "boolean" ? [
4374
4374
  { label: "Yes", value: !0 },
4375
4375
  { label: "No", value: !1 }
4376
- ] : rn(t.type), Y = t.type.kind === "array", he = (r.$control === "upload" ? "upload" : s && d || r.$control === "checkbox" ? "pills" : r.$control) ?? (te ? Y || t.type.kind === "boolean" ? "pills" : "select" : t.type.kind === "boolean" ? "checkbox" : d ? "textarea" : "input"), le = !t.optional || !!r.$requiredWhen && Bn(r.$requiredWhen, P), N = le ? "Required" : "Optional", D = he !== "upload" && !!(a != null && a.length) && typeof n == "string" && n.includes("{{"), W = p || k && (A == null ? void 0 : A.key) === B && A.error || !D && Mr(t.type, n, le), $ = Rr(r.$label ?? I.split(".").pop()), X = (K) => {
4376
+ ] : rn(t.type), Y = t.type.kind === "array", pe = (r.$control === "upload" ? "upload" : s && d || r.$control === "checkbox" ? "pills" : r.$control) ?? (te ? Y || t.type.kind === "boolean" ? "pills" : "select" : t.type.kind === "boolean" ? "checkbox" : d ? "textarea" : "input"), le = !t.optional || !!r.$requiredWhen && Bn(r.$requiredWhen, P), N = le ? "Required" : "Optional", D = pe !== "upload" && !!(a != null && a.length) && typeof n == "string" && n.includes("{{"), W = p || k && (A == null ? void 0 : A.key) === B && A.error || !D && qr(t.type, n, le), $ = Rr(r.$label ?? I.split(".").pop()), X = (K) => {
4377
4377
  var de;
4378
4378
  if (!(o || Object.is(K, n)))
4379
4379
  try {
@@ -4387,14 +4387,14 @@ function Jl({
4387
4387
  Ce instanceof Error ? Ce.message : "Unable to update field"
4388
4388
  );
4389
4389
  }
4390
- }, ge = ue(X);
4391
- $r(() => {
4392
- ge.current = X;
4390
+ }, ye = ue(X);
4391
+ Pr(() => {
4392
+ ye.current = X;
4393
4393
  });
4394
- const ye = () => {
4394
+ const fe = () => {
4395
4395
  if (d) {
4396
4396
  try {
4397
- const je = h === "" && t.optional ? void 0 : JSON.parse(h), Fe = Mr(t.type, je, le);
4397
+ const je = h === "" && t.optional ? void 0 : JSON.parse(h), Fe = qr(t.type, je, le);
4398
4398
  if (Fe) {
4399
4399
  m(Fe);
4400
4400
  return;
@@ -4405,7 +4405,7 @@ function Jl({
4405
4405
  }
4406
4406
  return;
4407
4407
  }
4408
- const K = t.type.kind === "number" || t.type.kind === "integer", de = h === "" && t.optional ? void 0 : K && h !== "" ? Number(h) : h, Ce = Mr(t.type, de, le);
4408
+ const K = t.type.kind === "number" || t.type.kind === "integer", de = h === "" && t.optional ? void 0 : K && h !== "" ? Number(h) : h, Ce = qr(t.type, de, le);
4409
4409
  if (K && Ce && h !== "") {
4410
4410
  m(Ce);
4411
4411
  return;
@@ -4455,9 +4455,9 @@ function Jl({
4455
4455
  );
4456
4456
  if (de.signal.aborted || v.current !== de)
4457
4457
  return;
4458
- const Ke = Y ? [...Array.isArray(n) ? n : [], ...or] : or[0], xe = Mr(t.type, Ke, le);
4458
+ const Ke = Y ? [...Array.isArray(n) ? n : [], ...or] : or[0], xe = qr(t.type, Ke, le);
4459
4459
  if (xe) throw new Error(xe);
4460
- ge.current(Ke);
4460
+ ye.current(Ke);
4461
4461
  } catch (Je) {
4462
4462
  de.signal.aborted || m(
4463
4463
  Je instanceof Error ? Je.message : "Unable to upload file."
@@ -4465,7 +4465,7 @@ function Jl({
4465
4465
  } finally {
4466
4466
  v.current === de && (v.current = void 0, S(!1));
4467
4467
  }
4468
- }, J = {
4468
+ }, Z = {
4469
4469
  id: l,
4470
4470
  disabled: o,
4471
4471
  "aria-label": $,
@@ -4518,7 +4518,7 @@ function Jl({
4518
4518
  ]
4519
4519
  }
4520
4520
  ),
4521
- !!(a != null && a.length) && !d && he !== "upload" && /* @__PURE__ */ b(
4521
+ !!(a != null && a.length) && !d && pe !== "upload" && /* @__PURE__ */ b(
4522
4522
  ax,
4523
4523
  {
4524
4524
  label: $,
@@ -4528,7 +4528,7 @@ function Jl({
4528
4528
  onChange: X
4529
4529
  }
4530
4530
  ),
4531
- he === "upload" ? /* @__PURE__ */ z(
4531
+ pe === "upload" ? /* @__PURE__ */ z(
4532
4532
  "div",
4533
4533
  {
4534
4534
  "data-form-upload": Y ? "multiple" : "single",
@@ -4623,7 +4623,7 @@ function Jl({
4623
4623
  (Y || !n) && /* @__PURE__ */ b(
4624
4624
  "button",
4625
4625
  {
4626
- ...J,
4626
+ ...Z,
4627
4627
  type: "button",
4628
4628
  "data-upload-drop": "",
4629
4629
  title: `Upload ${$}`,
@@ -4639,10 +4639,10 @@ function Jl({
4639
4639
  C && /* @__PURE__ */ b("span", { role: "status", children: "Uploading..." })
4640
4640
  ]
4641
4641
  }
4642
- ) : D ? null : he === "select" ? /* @__PURE__ */ b("div", { "data-form-select": "", children: /* @__PURE__ */ z(
4643
- Pr,
4642
+ ) : D ? null : pe === "select" ? /* @__PURE__ */ b("div", { "data-form-select": "", children: /* @__PURE__ */ z(
4643
+ Or,
4644
4644
  {
4645
- ...J,
4645
+ ...Z,
4646
4646
  disabled: o || ce || !!(A != null && A.error),
4647
4647
  labelCase: "preserve",
4648
4648
  value: String(
@@ -4657,13 +4657,13 @@ function Jl({
4657
4657
  te == null ? void 0 : te.map((K, de) => /* @__PURE__ */ b("option", { value: de, children: Rr(K.label) || K.label }, de))
4658
4658
  ]
4659
4659
  }
4660
- ) }) : he === "pills" ? /* @__PURE__ */ z(
4660
+ ) }) : pe === "pills" ? /* @__PURE__ */ z(
4661
4661
  "div",
4662
4662
  {
4663
4663
  id: l,
4664
4664
  role: "group",
4665
4665
  "aria-label": $,
4666
- "aria-describedby": J["aria-describedby"],
4666
+ "aria-describedby": Z["aria-describedby"],
4667
4667
  style: { display: "flex", flexWrap: "wrap", gap: 8 },
4668
4668
  children: [
4669
4669
  te == null ? void 0 : te.map((K, de) => {
@@ -4694,27 +4694,27 @@ function Jl({
4694
4694
  ce && /* @__PURE__ */ b("span", { role: "status", children: "Loading..." })
4695
4695
  ]
4696
4696
  }
4697
- ) : he === "textarea" ? /* @__PURE__ */ b(
4697
+ ) : pe === "textarea" ? /* @__PURE__ */ b(
4698
4698
  "textarea",
4699
4699
  {
4700
- ...J,
4700
+ ...Z,
4701
4701
  placeholder: N,
4702
4702
  value: h,
4703
4703
  onChange: (K) => g(K.target.value),
4704
- onBlur: ye
4704
+ onBlur: fe
4705
4705
  }
4706
4706
  ) : /* @__PURE__ */ b(
4707
4707
  "input",
4708
4708
  {
4709
- ...J,
4709
+ ...Z,
4710
4710
  placeholder: N,
4711
4711
  type: t.type.kind === "number" || t.type.kind === "integer" ? "number" : "text",
4712
4712
  step: t.type.kind === "integer" ? 1 : "any",
4713
4713
  value: h,
4714
4714
  onChange: (K) => g(K.target.value),
4715
- onBlur: ye,
4715
+ onBlur: fe,
4716
4716
  onKeyDown: (K) => {
4717
- K.key === "Enter" && ye(), K.key === "Escape" && g(n === void 0 ? "" : String(n));
4717
+ K.key === "Enter" && fe(), K.key === "Escape" && g(n === void 0 ? "" : String(n));
4718
4718
  }
4719
4719
  }
4720
4720
  ),
@@ -4862,7 +4862,7 @@ function $b({
4862
4862
  }) {
4863
4863
  var i;
4864
4864
  return /* @__PURE__ */ z(
4865
- Pr,
4865
+ Or,
4866
4866
  {
4867
4867
  "aria-label": e,
4868
4868
  title: `Animation: ${((i = r.find((s) => s.value === t)) == null ? void 0 : i.label) ?? "Mixed"}`,
@@ -4888,28 +4888,28 @@ function Nb({
4888
4888
  onOpenChange: o
4889
4889
  }) {
4890
4890
  const { callbacks: i, readOnly: s, themeColor: a, colorMode: u } = Ve(), { background: c, backgroundSecondary: l, border: d, colorText: f, colorInactive: h } = nr(), g = u === "dark" ? pn : ve(h), p = ue(null), m = ue(null), w = ue(0), [y, x] = re(!1), [v, C] = re("icons"), [S, E] = re([]), [O, A] = re("loading"), [M, k] = re(""), [_, P] = re(0), [I, q] = re(""), [T, V] = re(""), [B, ce] = re(!1);
4891
- qe(
4891
+ Le(
4892
4892
  () => () => {
4893
4893
  w.current++;
4894
4894
  },
4895
4895
  []
4896
- ), qe(() => {
4896
+ ), Le(() => {
4897
4897
  if (!y) return;
4898
4898
  let $ = !0;
4899
4899
  return import("react-icons/pi").then((X) => {
4900
4900
  $ && (E(
4901
- Object.keys(X).filter((ge) => ge.startsWith("Pi")).sort()
4901
+ Object.keys(X).filter((ye) => ye.startsWith("Pi")).sort()
4902
4902
  ), A("ready"));
4903
4903
  }).catch(() => {
4904
4904
  $ && A("unavailable");
4905
4905
  }), () => {
4906
4906
  $ = !1;
4907
4907
  };
4908
- }, [y]), qe(() => {
4908
+ }, [y]), Le(() => {
4909
4909
  var $;
4910
4910
  s && (($ = p.current) == null || $.close());
4911
- }, [s]), qe(() => {
4912
- var $, X, ge;
4911
+ }, [s]), Le(() => {
4912
+ var $, X, ye;
4913
4913
  if (n !== void 0) {
4914
4914
  if (!n || s) {
4915
4915
  ($ = p.current) == null || $.close();
@@ -4919,17 +4919,17 @@ function Nb({
4919
4919
  r === "PiFileSvg" || r && Kr(r) ? "custom" : "icons"
4920
4920
  ), q(
4921
4921
  r && !r.startsWith(tn) && Kr(r) ? r : ""
4922
- ), x(!0), (ge = p.current) == null || ge.showModal());
4922
+ ), x(!0), (ye = p.current) == null || ye.showModal());
4923
4923
  }
4924
4924
  }, [n, s, r]);
4925
4925
  const te = ($) => {
4926
- var X, ge, ye;
4927
- s || (t ? (X = i.onEdgeIconChange) == null || X.call(i, t, $) : e && ((ge = i.onNodeIconChange) == null || ge.call(i, e, $)), o == null || o(!1), (ye = p.current) == null || ye.close());
4926
+ var X, ye, fe;
4927
+ s || (t ? (X = i.onEdgeIconChange) == null || X.call(i, t, $) : e && ((ye = i.onNodeIconChange) == null || ye.call(i, e, $)), o == null || o(!1), (fe = p.current) == null || fe.close());
4928
4928
  }, Y = S.filter(
4929
4929
  ($) => $.replace(/([a-z])([A-Z])/g, "$1 $2").toLowerCase().includes(M.trim().toLowerCase())
4930
- ), he = 36, le = Math.max(1, Math.ceil(Y.length / he)), N = Math.min(_, le - 1), D = Y.slice(
4931
- N * he,
4932
- (N + 1) * he
4930
+ ), pe = 36, le = Math.max(1, Math.ceil(Y.length / pe)), N = Math.min(_, le - 1), D = Y.slice(
4931
+ N * pe,
4932
+ (N + 1) * pe
4933
4933
  ), W = {
4934
4934
  width: "100%",
4935
4935
  padding: "8px 14px",
@@ -4940,7 +4940,7 @@ function Nb({
4940
4940
  };
4941
4941
  return /* @__PURE__ */ z(Re, { children: [
4942
4942
  n === void 0 && /* @__PURE__ */ b(
4943
- Ne,
4943
+ $e,
4944
4944
  {
4945
4945
  label: t ? "Choose edge icon" : "Choose node icon",
4946
4946
  children: /* @__PURE__ */ b(
@@ -5011,7 +5011,7 @@ function Nb({
5011
5011
  gap: 4
5012
5012
  },
5013
5013
  children: [
5014
- r && /* @__PURE__ */ b(Ne, { label: "Remove icon", children: /* @__PURE__ */ b(
5014
+ r && /* @__PURE__ */ b($e, { label: "Remove icon", children: /* @__PURE__ */ b(
5015
5015
  Se,
5016
5016
  {
5017
5017
  "aria-label": t ? "Remove edge icon" : "Remove node icon",
@@ -5085,20 +5085,20 @@ function Nb({
5085
5085
  hidden: !0,
5086
5086
  disabled: B || s,
5087
5087
  onChange: async ($) => {
5088
- var ye;
5089
- const X = (ye = $.target.files) == null ? void 0 : ye[0];
5088
+ var fe;
5089
+ const X = (fe = $.target.files) == null ? void 0 : fe[0];
5090
5090
  if ($.target.value = "", !X) return;
5091
- const ge = ++w.current;
5091
+ const ye = ++w.current;
5092
5092
  ce(!0), V("");
5093
5093
  try {
5094
5094
  const H = await rx(X);
5095
- ge === w.current && te(H);
5095
+ ye === w.current && te(H);
5096
5096
  } catch (H) {
5097
- ge === w.current && V(
5097
+ ye === w.current && V(
5098
5098
  H instanceof Error ? H.message : "Unable to read SVG."
5099
5099
  );
5100
5100
  } finally {
5101
- ge === w.current && ce(!1);
5101
+ ye === w.current && ce(!1);
5102
5102
  }
5103
5103
  }
5104
5104
  }
@@ -5179,7 +5179,7 @@ function Nb({
5179
5179
  le
5180
5180
  ] }),
5181
5181
  /* @__PURE__ */ z("div", { style: { display: "flex", gap: 4 }, children: [
5182
- /* @__PURE__ */ b(Ne, { label: "Previous icons", children: /* @__PURE__ */ b(
5182
+ /* @__PURE__ */ b($e, { label: "Previous icons", children: /* @__PURE__ */ b(
5183
5183
  Se,
5184
5184
  {
5185
5185
  "aria-label": "Previous icons",
@@ -5190,7 +5190,7 @@ function Nb({
5190
5190
  onClick: () => P(N - 1)
5191
5191
  }
5192
5192
  ) }),
5193
- /* @__PURE__ */ b(Ne, { label: "Next icons", children: /* @__PURE__ */ b(
5193
+ /* @__PURE__ */ b($e, { label: "Next icons", children: /* @__PURE__ */ b(
5194
5194
  Se,
5195
5195
  {
5196
5196
  "aria-label": "Next icons",
@@ -5255,7 +5255,7 @@ function Nb({
5255
5255
  style: { ...W, flex: 1, minWidth: 0 }
5256
5256
  }
5257
5257
  ),
5258
- /* @__PURE__ */ b(Ne, { label: "Apply URL", children: /* @__PURE__ */ b(
5258
+ /* @__PURE__ */ b($e, { label: "Apply URL", children: /* @__PURE__ */ b(
5259
5259
  Se,
5260
5260
  {
5261
5261
  type: "submit",
@@ -5322,7 +5322,7 @@ function It({
5322
5322
  onCommit: s
5323
5323
  }) {
5324
5324
  const { colorText: a } = nr(), [u, c] = re(e), l = ue(!1);
5325
- qe(() => c(e), [e]);
5325
+ Le(() => c(e), [e]);
5326
5326
  const d = () => {
5327
5327
  if (l.current) return;
5328
5328
  l.current = !0;
@@ -5379,7 +5379,7 @@ function hn({
5379
5379
  h.key === "Escape" && (c(!1), (g = d.current) == null || g.focus());
5380
5380
  },
5381
5381
  children: [
5382
- /* @__PURE__ */ b(Ne, { label: `${r}: ${f}`, children: /* @__PURE__ */ b(
5382
+ /* @__PURE__ */ b($e, { label: `${r}: ${f}`, children: /* @__PURE__ */ b(
5383
5383
  lt.button,
5384
5384
  {
5385
5385
  ref: d,
@@ -5412,7 +5412,7 @@ function hn({
5412
5412
  ])
5413
5413
  ].map((h) => {
5414
5414
  const g = t === h;
5415
- return /* @__PURE__ */ b(Ne, { label: `${r}: ${h}`, children: /* @__PURE__ */ b(
5415
+ return /* @__PURE__ */ b($e, { label: `${r}: ${h}`, children: /* @__PURE__ */ b(
5416
5416
  ke,
5417
5417
  {
5418
5418
  as: "button",
@@ -5440,7 +5440,7 @@ function hn({
5440
5440
  }
5441
5441
  ) }, h);
5442
5442
  }),
5443
- o && /* @__PURE__ */ b(Ne, { label: `Reset ${r.toLowerCase()}`, children: /* @__PURE__ */ b(
5443
+ o && /* @__PURE__ */ b($e, { label: `Reset ${r.toLowerCase()}`, children: /* @__PURE__ */ b(
5444
5444
  Se,
5445
5445
  {
5446
5446
  "aria-label": `Reset ${r}`,
@@ -5497,7 +5497,7 @@ function px({
5497
5497
  ] }),
5498
5498
  u("style") && /* @__PURE__ */ z(Re, { children: [
5499
5499
  /* @__PURE__ */ b(yr, {}),
5500
- f.map((g) => /* @__PURE__ */ b(Ne, { label: g.label, children: /* @__PURE__ */ b(
5500
+ f.map((g) => /* @__PURE__ */ b($e, { label: g.label, children: /* @__PURE__ */ b(
5501
5501
  Se,
5502
5502
  {
5503
5503
  "aria-label": `Edge style ${g.key}`,
@@ -5529,7 +5529,7 @@ function px({
5529
5529
  }
5530
5530
  ),
5531
5531
  /* @__PURE__ */ z(
5532
- Pr,
5532
+ Or,
5533
5533
  {
5534
5534
  "aria-label": "Edge shape",
5535
5535
  title: `Edge shape: ${(c == null ? void 0 : c.type) ?? "Default"}`,
@@ -5585,7 +5585,7 @@ function px({
5585
5585
  ] }),
5586
5586
  u("delete") && /* @__PURE__ */ z(Re, { children: [
5587
5587
  /* @__PURE__ */ b(yr, {}),
5588
- /* @__PURE__ */ b(Ne, { label: "Delete edge", children: /* @__PURE__ */ b(
5588
+ /* @__PURE__ */ b($e, { label: "Delete edge", children: /* @__PURE__ */ b(
5589
5589
  Se,
5590
5590
  {
5591
5591
  "aria-label": "Delete edge",
@@ -5624,7 +5624,7 @@ function gx({
5624
5624
  display: "grid",
5625
5625
  placeItems: "center",
5626
5626
  children: /* @__PURE__ */ z(
5627
- Pr,
5627
+ Or,
5628
5628
  {
5629
5629
  icon: /* @__PURE__ */ b(
5630
5630
  Te,
@@ -5680,42 +5680,42 @@ function yx({
5680
5680
  ids: e,
5681
5681
  onClose: t
5682
5682
  }) {
5683
- var le, N, D, W, $, X, ge, ye;
5683
+ var le, N, D, W, $, X, ye, fe;
5684
5684
  const { callbacks: r, colorMode: n, themeColor: o, config: i, setNodeViewMode: s } = Ve(), { colorText: a, colorInactive: u } = nr(), { nodeById: c, parentIds: l } = bt(), { palette: d, show: f } = Lb(), h = e.length === 1, g = h ? (le = c.get(e[0])) == null ? void 0 : le.data : void 0, p = e.map(
5685
5685
  (H) => {
5686
- var J, G;
5687
- return ((G = (J = c.get(H)) == null ? void 0 : J.data.config) == null ? void 0 : G.typeView) ?? "";
5686
+ var Z, G;
5687
+ return ((G = (Z = c.get(H)) == null ? void 0 : Z.data.config) == null ? void 0 : G.typeView) ?? "";
5688
5688
  }
5689
5689
  ), m = p.some((H) => H !== p[0]), w = m ? "mixed" : p[0] ?? "", y = e.some((H) => {
5690
5690
  var G, ae;
5691
- const J = (G = c.get(H)) == null ? void 0 : G.data;
5692
- return J && (l.has(H) || ((ae = J.config) == null ? void 0 : ae.parentContainer) || Object.prototype.hasOwnProperty.call(
5691
+ const Z = (G = c.get(H)) == null ? void 0 : G.data;
5692
+ return Z && (l.has(H) || ((ae = Z.config) == null ? void 0 : ae.parentContainer) || Object.prototype.hasOwnProperty.call(
5693
5693
  i.customViews ?? {},
5694
- J.type
5694
+ Z.type
5695
5695
  ));
5696
5696
  }), x = (N = g == null ? void 0 : g.config) == null ? void 0 : N.collapsed, v = qb(e[0]), C = (H) => {
5697
- var J, G, ae;
5698
- return (((G = (J = c.get(H)) == null ? void 0 : J.data.viewProps) == null ? void 0 : G.outline) ?? (l.has(H) ? (ae = i.parentNodeStyle) == null ? void 0 : ae.outline : !1)) === !0;
5697
+ var Z, G, ae;
5698
+ return (((G = (Z = c.get(H)) == null ? void 0 : Z.data.viewProps) == null ? void 0 : G.outline) ?? (l.has(H) ? (ae = i.parentNodeStyle) == null ? void 0 : ae.outline : !1)) === !0;
5699
5699
  }, S = e.every(C), E = !S && e.some(C), O = (H) => {
5700
- var J;
5701
- return ((J = c.get(H)) == null ? void 0 : J.data.isNodeAnimated) === !0;
5700
+ var Z;
5701
+ return ((Z = c.get(H)) == null ? void 0 : Z.data.isNodeAnimated) === !0;
5702
5702
  }, A = e.every(O), M = !A && e.some(O), k = e.map(
5703
5703
  (H) => {
5704
- var J;
5705
- return ((J = c.get(H)) == null ? void 0 : J.data.nodeAnimationVariant) ?? "traveling";
5704
+ var Z;
5705
+ return ((Z = c.get(H)) == null ? void 0 : Z.data.nodeAnimationVariant) ?? "traveling";
5706
5706
  }
5707
5707
  ), _ = k.every(
5708
5708
  (H) => H === k[0]
5709
5709
  ) ? k[0] : "", P = (H) => e.forEach(H), [I, q] = re(!1), T = I && f("color") && f("borderColor"), V = (H) => {
5710
- var J, G, ae;
5711
- return (((G = (J = c.get(H)) == null ? void 0 : J.data.viewProps) == null ? void 0 : G.borderStyle) ?? (l.has(H) ? (ae = i.parentNodeStyle) == null ? void 0 : ae.borderStyle : "solid")) === "dashed";
5710
+ var Z, G, ae;
5711
+ return (((G = (Z = c.get(H)) == null ? void 0 : Z.data.viewProps) == null ? void 0 : G.borderStyle) ?? (l.has(H) ? (ae = i.parentNodeStyle) == null ? void 0 : ae.borderStyle : "solid")) === "dashed";
5712
5712
  }, B = e.every(V), ce = !B && e.some(V), te = e.map((H) => {
5713
5713
  var ae, ee, we;
5714
- const J = (ae = c.get(H)) == null ? void 0 : ae.data, G = l.has(H) ? fn((ee = i.parentNodeStyle) == null ? void 0 : ee.borderWidth, 6) : (J == null ? void 0 : J.type) === "objectView" ? 3 : 2;
5715
- return fn((we = J == null ? void 0 : J.viewProps) == null ? void 0 : we.borderWidth, G);
5716
- }), Y = te.every((H) => H === te[0]) ? String(te[0] ?? "") : "", he = (H) => P((J) => {
5714
+ const Z = (ae = c.get(H)) == null ? void 0 : ae.data, G = l.has(H) ? fn((ee = i.parentNodeStyle) == null ? void 0 : ee.borderWidth, 6) : (Z == null ? void 0 : Z.type) === "objectView" ? 3 : 2;
5715
+ return fn((we = Z == null ? void 0 : Z.viewProps) == null ? void 0 : we.borderWidth, G);
5716
+ }), Y = te.every((H) => H === te[0]) ? String(te[0] ?? "") : "", pe = (H) => P((Z) => {
5717
5717
  var G, ae;
5718
- T ? (G = r.onNodeBorderColorChange) == null || G.call(r, J, H) : (ae = r.onNodeColorChange) == null || ae.call(r, J, "bg", H);
5718
+ T ? (G = r.onNodeBorderColorChange) == null || G.call(r, Z, H) : (ae = r.onNodeColorChange) == null || ae.call(r, Z, "bg", H);
5719
5719
  });
5720
5720
  return /* @__PURE__ */ z(Re, { children: [
5721
5721
  /* @__PURE__ */ b(gn, { onClick: t }),
@@ -5727,16 +5727,16 @@ function yx({
5727
5727
  placeholder: "Node label",
5728
5728
  value: (g == null ? void 0 : g.label) ?? (g == null ? void 0 : g.headerTitle) ?? "",
5729
5729
  onCommit: (H) => {
5730
- var J;
5731
- return (J = r.onNodeLabelChange) == null ? void 0 : J.call(r, e[0], H);
5730
+ var Z;
5731
+ return (Z = r.onNodeLabelChange) == null ? void 0 : Z.call(r, e[0], H);
5732
5732
  }
5733
5733
  }
5734
- ) : /* @__PURE__ */ z(qr, { fontSize: "xs", color: a, whiteSpace: "nowrap", px: 1, children: [
5734
+ ) : /* @__PURE__ */ z($r, { fontSize: "xs", color: a, whiteSpace: "nowrap", px: 1, children: [
5735
5735
  e.length,
5736
5736
  " selected"
5737
5737
  ] }),
5738
5738
  f("typeView") && /* @__PURE__ */ z(
5739
- Pr,
5739
+ Or,
5740
5740
  {
5741
5741
  "aria-label": "Type view",
5742
5742
  title: y ? "Type view is managed by the custom renderer or container" : `Type view: ${w || "None (default)"}`,
@@ -5745,13 +5745,13 @@ function yx({
5745
5745
  value: w,
5746
5746
  disabled: i.readOnly || i.editable === !1 || y,
5747
5747
  onValueChange: (H) => {
5748
- On.includes(H) && P((J) => {
5748
+ On.includes(H) && P((Z) => {
5749
5749
  var G, ae;
5750
5750
  (G = r.onNodeTypeViewChange) == null || G.call(
5751
5751
  r,
5752
- J,
5752
+ Z,
5753
5753
  H || void 0
5754
- ), s(J, "default"), (ae = r.onNodeViewToggle) == null || ae.call(r, J);
5754
+ ), s(Z, "default"), (ae = r.onNodeViewToggle) == null || ae.call(r, Z);
5755
5755
  });
5756
5756
  },
5757
5757
  children: [
@@ -5764,7 +5764,7 @@ function yx({
5764
5764
  f("outline") && /* @__PURE__ */ z(Re, { children: [
5765
5765
  /* @__PURE__ */ b(yr, {}),
5766
5766
  /* @__PURE__ */ b(
5767
- Ne,
5767
+ $e,
5768
5768
  {
5769
5769
  label: S ? "Restore node fill" : "Remove node fill",
5770
5770
  children: /* @__PURE__ */ b(
@@ -5777,8 +5777,8 @@ function yx({
5777
5777
  variant: "ghost",
5778
5778
  color: S ? o : u,
5779
5779
  onClick: () => P((H) => {
5780
- var J;
5781
- return (J = r.onNodeOutlineChange) == null ? void 0 : J.call(r, H, !S);
5780
+ var Z;
5781
+ return (Z = r.onNodeOutlineChange) == null ? void 0 : Z.call(r, H, !S);
5782
5782
  })
5783
5783
  }
5784
5784
  )
@@ -5788,7 +5788,7 @@ function yx({
5788
5788
  f("color") && /* @__PURE__ */ z(Re, { children: [
5789
5789
  /* @__PURE__ */ b(yr, {}),
5790
5790
  f("borderColor") && /* @__PURE__ */ b(
5791
- Ne,
5791
+ $e,
5792
5792
  {
5793
5793
  label: T ? "Edit node colors" : "Edit node border",
5794
5794
  children: /* @__PURE__ */ b(
@@ -5812,13 +5812,13 @@ function yx({
5812
5812
  label: T ? "Border color" : "Background",
5813
5813
  colors: d,
5814
5814
  value: T ? ((D = g == null ? void 0 : g.viewProps) == null ? void 0 : D.borderColor) ?? (h && l.has(e[0]) ? (W = i.parentNodeStyle) == null ? void 0 : W.borderColor : void 0) : ($ = g == null ? void 0 : g.viewProps) == null ? void 0 : $.bgColor,
5815
- onPick: he,
5816
- onReset: () => he("")
5815
+ onPick: pe,
5816
+ onReset: () => pe("")
5817
5817
  }
5818
5818
  ),
5819
5819
  T && f("style") && /* @__PURE__ */ z(Re, { children: [
5820
5820
  /* @__PURE__ */ b(yr, {}),
5821
- /* @__PURE__ */ b(Ne, { label: B ? "Solid border" : "Dashed border", children: /* @__PURE__ */ b(
5821
+ /* @__PURE__ */ b($e, { label: B ? "Solid border" : "Dashed border", children: /* @__PURE__ */ b(
5822
5822
  Se,
5823
5823
  {
5824
5824
  "aria-label": "Toggle dashed border",
@@ -5835,8 +5835,8 @@ function yx({
5835
5835
  color: B ? o : u,
5836
5836
  onClick: () => P(
5837
5837
  (H) => {
5838
- var J;
5839
- return (J = r.onNodeBorderStyleChange) == null ? void 0 : J.call(
5838
+ var Z;
5839
+ return (Z = r.onNodeBorderStyleChange) == null ? void 0 : Z.call(
5840
5840
  r,
5841
5841
  H,
5842
5842
  B ? "solid" : "dashed"
@@ -5855,11 +5855,11 @@ function yx({
5855
5855
  min: 0,
5856
5856
  value: Y,
5857
5857
  onCommit: (H) => P(
5858
- (J) => {
5858
+ (Z) => {
5859
5859
  var G;
5860
5860
  return (G = r.onNodeBorderWidthChange) == null ? void 0 : G.call(
5861
5861
  r,
5862
- J,
5862
+ Z,
5863
5863
  H === "" ? void 0 : Number(H)
5864
5864
  );
5865
5865
  }
@@ -5871,7 +5871,7 @@ function yx({
5871
5871
  f("animation") && /* @__PURE__ */ z(Re, { children: [
5872
5872
  /* @__PURE__ */ b(yr, {}),
5873
5873
  /* @__PURE__ */ b(
5874
- Ne,
5874
+ $e,
5875
5875
  {
5876
5876
  label: A ? "Stop border animation" : "Animate node border",
5877
5877
  children: /* @__PURE__ */ b(
@@ -5884,8 +5884,8 @@ function yx({
5884
5884
  variant: "ghost",
5885
5885
  color: A ? o : u,
5886
5886
  onClick: () => P((H) => {
5887
- var J;
5888
- return (J = r.onNodeAnimationChange) == null ? void 0 : J.call(r, H, !A);
5887
+ var Z;
5888
+ return (Z = r.onNodeAnimationChange) == null ? void 0 : Z.call(r, H, !A);
5889
5889
  })
5890
5890
  }
5891
5891
  )
@@ -5902,9 +5902,9 @@ function yx({
5902
5902
  ],
5903
5903
  disabled: i.readOnly,
5904
5904
  onChange: (H) => P(
5905
- (J) => {
5905
+ (Z) => {
5906
5906
  var G;
5907
- return (G = r.onNodeAnimationVariantChange) == null ? void 0 : G.call(r, J, H);
5907
+ return (G = r.onNodeAnimationVariantChange) == null ? void 0 : G.call(r, Z, H);
5908
5908
  }
5909
5909
  )
5910
5910
  }
@@ -5918,13 +5918,13 @@ function yx({
5918
5918
  label: "Text color",
5919
5919
  colors: hx,
5920
5920
  value: (X = g == null ? void 0 : g.viewProps) == null ? void 0 : X.textColor,
5921
- onPick: (H) => P((J) => {
5921
+ onPick: (H) => P((Z) => {
5922
5922
  var G;
5923
- return (G = r.onNodeColorChange) == null ? void 0 : G.call(r, J, "text", H);
5923
+ return (G = r.onNodeColorChange) == null ? void 0 : G.call(r, Z, "text", H);
5924
5924
  }),
5925
5925
  onReset: () => P((H) => {
5926
- var J;
5927
- return (J = r.onNodeColorChange) == null ? void 0 : J.call(r, H, "text", "");
5926
+ var Z;
5927
+ return (Z = r.onNodeColorChange) == null ? void 0 : Z.call(r, H, "text", "");
5928
5928
  })
5929
5929
  }
5930
5930
  )
@@ -5935,7 +5935,7 @@ function yx({
5935
5935
  Nb,
5936
5936
  {
5937
5937
  nodeId: e[0],
5938
- value: (ge = g == null ? void 0 : g.config) == null ? void 0 : ge.icon
5938
+ value: (ye = g == null ? void 0 : g.config) == null ? void 0 : ye.icon
5939
5939
  },
5940
5940
  e[0]
5941
5941
  ),
@@ -5945,17 +5945,17 @@ function yx({
5945
5945
  ariaLabel: "Node icon",
5946
5946
  placeholder: "(e.g. PiGear)",
5947
5947
  width: "120px",
5948
- value: ((ye = g == null ? void 0 : g.config) == null ? void 0 : ye.icon) || "",
5948
+ value: ((fe = g == null ? void 0 : g.config) == null ? void 0 : fe.icon) || "",
5949
5949
  onCommit: (H) => {
5950
- var J;
5951
- return (J = r.onNodeIconChange) == null ? void 0 : J.call(r, e[0], H);
5950
+ var Z;
5951
+ return (Z = r.onNodeIconChange) == null ? void 0 : Z.call(r, e[0], H);
5952
5952
  }
5953
5953
  }
5954
5954
  )
5955
5955
  ] }),
5956
5956
  h && v && f("collapse") && x !== void 0 && /* @__PURE__ */ z(Re, { children: [
5957
5957
  /* @__PURE__ */ b(yr, {}),
5958
- /* @__PURE__ */ b(Ne, { label: x ? "Expand" : "Collapse", children: /* @__PURE__ */ b(
5958
+ /* @__PURE__ */ b($e, { label: x ? "Expand" : "Collapse", children: /* @__PURE__ */ b(
5959
5959
  Se,
5960
5960
  {
5961
5961
  "aria-label": x ? "Expand node" : "Collapse node",
@@ -5979,7 +5979,7 @@ function yx({
5979
5979
  f("delete") && /* @__PURE__ */ z(Re, { children: [
5980
5980
  /* @__PURE__ */ b(yr, {}),
5981
5981
  /* @__PURE__ */ b(
5982
- Ne,
5982
+ $e,
5983
5983
  {
5984
5984
  label: h ? "Delete node" : `Delete ${e.length} nodes`,
5985
5985
  children: /* @__PURE__ */ b(
@@ -5993,11 +5993,11 @@ function yx({
5993
5993
  onClick: () => {
5994
5994
  P(
5995
5995
  (H) => {
5996
- var J, G;
5996
+ var Z, G;
5997
5997
  return (G = r.onNodeDelete) == null ? void 0 : G.call(
5998
5998
  r,
5999
5999
  H,
6000
- ((J = c.get(H)) == null ? void 0 : J.data) || { id: H }
6000
+ ((Z = c.get(H)) == null ? void 0 : Z.data) || { id: H }
6001
6001
  );
6002
6002
  }
6003
6003
  ), t();
@@ -6031,7 +6031,7 @@ async function mx(e, t = "squeed.svg") {
6031
6031
  function vx() {
6032
6032
  const { themeColor: e } = Ve(), [t, r] = re(!1), [n, o] = re("");
6033
6033
  return /* @__PURE__ */ z(Re, { children: [
6034
- /* @__PURE__ */ b(Ne, { label: "Download SVG (current view)", children: /* @__PURE__ */ b(
6034
+ /* @__PURE__ */ b($e, { label: "Download SVG (current view)", children: /* @__PURE__ */ b(
6035
6035
  Se,
6036
6036
  {
6037
6037
  "aria-label": "Download SVG",
@@ -6069,7 +6069,7 @@ function wx({
6069
6069
  border: r
6070
6070
  }) {
6071
6071
  const n = ue(null), [o, i] = re({ left: !1, right: !1 });
6072
- $r(() => {
6072
+ Pr(() => {
6073
6073
  const a = n.current, u = () => {
6074
6074
  const l = a.scrollLeft > 1, d = a.scrollWidth - a.clientWidth - a.scrollLeft > 1;
6075
6075
  i(
@@ -6244,12 +6244,12 @@ function _x({
6244
6244
  bindings: h,
6245
6245
  structured: g
6246
6246
  } = Nr(Vr), p = (g == null ? void 0 : g.sourceBindings) ?? h, m = (g == null ? void 0 : g.sourceSchema) ?? d, { colorText: w } = nr(), y = ue(null), x = ue(0), [v, C] = re(!1), [S, E] = re("");
6247
- qe(
6247
+ Le(
6248
6248
  () => () => {
6249
6249
  x.current++;
6250
6250
  },
6251
6251
  []
6252
- ), qe(() => {
6252
+ ), Le(() => {
6253
6253
  x.current++, C(!1);
6254
6254
  }, [a, l, p]);
6255
6255
  const O = o ? [...c.values()].filter(
@@ -6259,7 +6259,7 @@ function _x({
6259
6259
  /* @__PURE__ */ b(Cx, { message: S, onDismiss: () => E("") }),
6260
6260
  e && /* @__PURE__ */ b(kn, {}),
6261
6261
  /* @__PURE__ */ z(
6262
- Pr,
6262
+ Or,
6263
6263
  {
6264
6264
  "aria-label": "Edge mode",
6265
6265
  title: r === "auto" ? "Connections: Auto" : r === "properties" ? "Connections: Properties" : "Connections: Nodes",
@@ -6287,7 +6287,7 @@ function _x({
6287
6287
  },
6288
6288
  children: [
6289
6289
  /* @__PURE__ */ b(
6290
- Ne,
6290
+ $e,
6291
6291
  {
6292
6292
  label: o ? `Replace ${o.name}` : "Upload workflow interface",
6293
6293
  children: /* @__PURE__ */ b(
@@ -6383,7 +6383,7 @@ function _x({
6383
6383
  children: v ? "Loading interface..." : A
6384
6384
  }
6385
6385
  ),
6386
- !t && o && /* @__PURE__ */ b(Ne, { label: "Remove workflow interface", children: /* @__PURE__ */ b(
6386
+ !t && o && /* @__PURE__ */ b($e, { label: "Remove workflow interface", children: /* @__PURE__ */ b(
6387
6387
  Se,
6388
6388
  {
6389
6389
  "aria-label": "Remove workflow interface",
@@ -6459,12 +6459,12 @@ const Sx = [
6459
6459
  callbacks: k,
6460
6460
  config: _,
6461
6461
  readOnly: P
6462
- } = Ve(), { nodeById: I, edgeById: q, parentIds: T } = bt(), V = _.colorMode === "dark", { background: B, border: ce, colorInactive: te, colorText: Y, colorActive: he } = nr(), le = V ? ce : "gray.300", N = `var(--chakra-colors-${B.replace(".", "-")})`, D = `var(--chakra-colors-${(V ? ce : "gray.300").replace(".", "-")})`, [W, $] = re(!1), [X, ge] = re(!0), ye = ue(null), H = Yv({
6462
+ } = Ve(), { nodeById: I, edgeById: q, parentIds: T } = bt(), V = _.colorMode === "dark", { background: B, border: ce, colorInactive: te, colorText: Y, colorActive: pe } = nr(), le = V ? ce : "gray.300", N = `var(--chakra-colors-${B.replace(".", "-")})`, D = `var(--chakra-colors-${(V ? ce : "gray.300").replace(".", "-")})`, [W, $] = re(!1), [X, ye] = re(!0), fe = ue(null), H = Yv({
6463
6463
  edge: "bottom",
6464
6464
  enabled: !A,
6465
- bounds: ye,
6466
- inside: [ye]
6467
- }), J = Xe(
6465
+ bounds: fe,
6466
+ inside: [fe]
6467
+ }), Z = Xe(
6468
6468
  (xe) => {
6469
6469
  const _e = e.current;
6470
6470
  if (!_e) return;
@@ -6483,21 +6483,21 @@ const Sx = [
6483
6483
  }
6484
6484
  },
6485
6485
  [e, _.minZoom, _.maxZoom]
6486
- ), G = _.renderSelectedNodeToolbar, ae = d.length > 0 && !!G, ee = Le(() => ae ? d.map((xe) => {
6486
+ ), G = _.renderSelectedNodeToolbar, ae = d.length > 0 && !!G, ee = Ne(() => ae ? d.map((xe) => {
6487
6487
  var Ye;
6488
6488
  return { ...((Ye = I.get(xe)) == null ? void 0 : Ye.data) ?? { id: xe }, isParent: T.has(xe) };
6489
6489
  }) : [], [ae, d, I, T]), we = Xe(() => {
6490
6490
  var xe;
6491
6491
  f([]), (xe = k.onNodeDeselect) == null || xe.call(k);
6492
- }, [f, k]), pe = _.renderSelectedEdgeToolbar, He = !!h && !!pe, K = Le(() => {
6492
+ }, [f, k]), ge = _.renderSelectedEdgeToolbar, He = !!h && !!ge, K = Ne(() => {
6493
6493
  var xe;
6494
6494
  return !He || !h ? null : ((xe = q.get(h)) == null ? void 0 : xe.data) ?? { id: h };
6495
6495
  }, [He, h, q]), de = Xe(() => {
6496
6496
  var xe;
6497
6497
  g(null), (xe = k.onEdgeDeselect) == null || xe.call(k);
6498
- }, [g, k]), Ce = _.selectionToolbar !== !1 && !P, je = Ce && !!h && !pe, Fe = Ce && !je && d.length > 0 && !G, Je = je || Fe, or = A || H || W || Je;
6499
- qe(() => {
6500
- d.length || h ? s(!1) : i && !P && (M(!0), ge(!1));
6498
+ }, [g, k]), Ce = _.selectionToolbar !== !1 && !P, je = Ce && !!h && !ge, Fe = Ce && !je && d.length > 0 && !G, Je = je || Fe, or = A || H || W || Je;
6499
+ Le(() => {
6500
+ d.length || h ? s(!1) : i && !P && (M(!0), ye(!1));
6501
6501
  }, [
6502
6502
  i,
6503
6503
  d.length,
@@ -6531,7 +6531,7 @@ const Sx = [
6531
6531
  left: "50%",
6532
6532
  transform: "translateX(-50%)",
6533
6533
  zIndex: 101,
6534
- children: pe({
6534
+ children: ge({
6535
6535
  edgeId: h,
6536
6536
  edgeData: K,
6537
6537
  onDeselect: de
@@ -6548,9 +6548,9 @@ const Sx = [
6548
6548
  zIndex: 100,
6549
6549
  w: "100%",
6550
6550
  children: Ke({
6551
- zoomIn: () => J("increase"),
6552
- zoomOut: () => J("decrease"),
6553
- resetZoom: () => J("reset"),
6551
+ zoomIn: () => Z("increase"),
6552
+ zoomOut: () => Z("decrease"),
6553
+ resetZoom: () => Z("reset"),
6554
6554
  direction: a,
6555
6555
  isZoomMode: p,
6556
6556
  setIsZoomMode: m,
@@ -6596,7 +6596,7 @@ const Sx = [
6596
6596
  left: "50%",
6597
6597
  transform: "translateX(-50%)",
6598
6598
  zIndex: 101,
6599
- children: pe({
6599
+ children: ge({
6600
6600
  edgeId: h,
6601
6601
  edgeData: K,
6602
6602
  onDeselect: de
@@ -6606,7 +6606,7 @@ const Sx = [
6606
6606
  /* @__PURE__ */ b(
6607
6607
  ke,
6608
6608
  {
6609
- ref: ye,
6609
+ ref: fe,
6610
6610
  role: "toolbar",
6611
6611
  "aria-label": "Diagram controls",
6612
6612
  position: "absolute",
@@ -6670,7 +6670,7 @@ const Sx = [
6670
6670
  display: je || Fe ? "none" : "contents"
6671
6671
  },
6672
6672
  children: [
6673
- /* @__PURE__ */ b(Ne, { label: A ? "Unpin" : "Pin", children: /* @__PURE__ */ b(
6673
+ /* @__PURE__ */ b($e, { label: A ? "Unpin" : "Pin", children: /* @__PURE__ */ b(
6674
6674
  Se,
6675
6675
  {
6676
6676
  "aria-label": "Pin",
@@ -6698,7 +6698,7 @@ const Sx = [
6698
6698
  color: le
6699
6699
  }
6700
6700
  ),
6701
- /* @__PURE__ */ b(Ne, { label: "Zoom Out", children: /* @__PURE__ */ b(
6701
+ /* @__PURE__ */ b($e, { label: "Zoom Out", children: /* @__PURE__ */ b(
6702
6702
  Se,
6703
6703
  {
6704
6704
  "aria-label": "Zoom out",
@@ -6706,10 +6706,10 @@ const Sx = [
6706
6706
  size: "sm",
6707
6707
  variant: "ghost",
6708
6708
  color: Y,
6709
- onClick: () => J("decrease")
6709
+ onClick: () => Z("decrease")
6710
6710
  }
6711
6711
  ) }),
6712
- /* @__PURE__ */ b(Ne, { label: "Zoom In", children: /* @__PURE__ */ b(
6712
+ /* @__PURE__ */ b($e, { label: "Zoom In", children: /* @__PURE__ */ b(
6713
6713
  Se,
6714
6714
  {
6715
6715
  "aria-label": "Zoom in",
@@ -6717,10 +6717,10 @@ const Sx = [
6717
6717
  size: "sm",
6718
6718
  variant: "ghost",
6719
6719
  color: Y,
6720
- onClick: () => J("increase")
6720
+ onClick: () => Z("increase")
6721
6721
  }
6722
6722
  ) }),
6723
- /* @__PURE__ */ b(Ne, { label: "Reset Zoom", children: /* @__PURE__ */ b(
6723
+ /* @__PURE__ */ b($e, { label: "Reset Zoom", children: /* @__PURE__ */ b(
6724
6724
  Se,
6725
6725
  {
6726
6726
  "aria-label": "Reset zoom",
@@ -6728,7 +6728,7 @@ const Sx = [
6728
6728
  size: "sm",
6729
6729
  variant: "ghost",
6730
6730
  color: Y,
6731
- onClick: () => J("reset")
6731
+ onClick: () => Z("reset")
6732
6732
  }
6733
6733
  ) }),
6734
6734
  !X && /* @__PURE__ */ z(Re, { children: [
@@ -6742,7 +6742,7 @@ const Sx = [
6742
6742
  }
6743
6743
  ),
6744
6744
  /* @__PURE__ */ b(
6745
- Ne,
6745
+ $e,
6746
6746
  {
6747
6747
  label: p ? "Zoom Mode (z)" : "Pan Mode (z)",
6748
6748
  children: /* @__PURE__ */ b(
@@ -6774,7 +6774,7 @@ const Sx = [
6774
6774
  }
6775
6775
  ),
6776
6776
  /* @__PURE__ */ b(
6777
- Ne,
6777
+ $e,
6778
6778
  {
6779
6779
  label: w ? "Multi-Select On (m)" : "Multi-Select Off (m)",
6780
6780
  children: /* @__PURE__ */ b(
@@ -6800,7 +6800,7 @@ const Sx = [
6800
6800
  }
6801
6801
  ),
6802
6802
  /* @__PURE__ */ b(
6803
- Ne,
6803
+ $e,
6804
6804
  {
6805
6805
  label: x ? "Drag Mode On (d)" : "Drag Mode Off (d)",
6806
6806
  children: /* @__PURE__ */ b(
@@ -6827,7 +6827,7 @@ const Sx = [
6827
6827
  }
6828
6828
  ),
6829
6829
  /* @__PURE__ */ b(
6830
- Ne,
6830
+ $e,
6831
6831
  {
6832
6832
  label: C ? "Draw Mode On" : "Draw Mode Off",
6833
6833
  children: /* @__PURE__ */ b(
@@ -6890,7 +6890,7 @@ const Sx = [
6890
6890
  }
6891
6891
  ),
6892
6892
  /* @__PURE__ */ b(
6893
- Ne,
6893
+ $e,
6894
6894
  {
6895
6895
  label: E ? "Array Mode [ ]" : "Set Mode { }",
6896
6896
  children: /* @__PURE__ */ b(
@@ -6964,7 +6964,7 @@ const Sx = [
6964
6964
  }
6965
6965
  ),
6966
6966
  /* @__PURE__ */ b(
6967
- Ne,
6967
+ $e,
6968
6968
  {
6969
6969
  label: X ? "Expand toolbar" : "Collapse toolbar",
6970
6970
  children: /* @__PURE__ */ b(
@@ -6981,7 +6981,7 @@ const Sx = [
6981
6981
  size: "sm",
6982
6982
  variant: "ghost",
6983
6983
  color: te,
6984
- onClick: () => ge(!X)
6984
+ onClick: () => ye(!X)
6985
6985
  }
6986
6986
  )
6987
6987
  }
@@ -7008,7 +7008,7 @@ const Sx = [
7008
7008
  cursor: "pointer",
7009
7009
  onClick: () => $(!W),
7010
7010
  children: /* @__PURE__ */ z(sr, { align: "center", h: "100%", children: [
7011
- /* @__PURE__ */ b(Ne, { label: "Flow Direction", children: /* @__PURE__ */ b(
7011
+ /* @__PURE__ */ b($e, { label: "Flow Direction", children: /* @__PURE__ */ b(
7012
7012
  Se,
7013
7013
  {
7014
7014
  "aria-label": "Direction",
@@ -7019,7 +7019,7 @@ const Sx = [
7019
7019
  }
7020
7020
  ) }),
7021
7021
  /* @__PURE__ */ b(
7022
- qr,
7022
+ $r,
7023
7023
  {
7024
7024
  fontSize: "xs",
7025
7025
  color: V ? "whiteAlpha.600" : "blackAlpha.500",
@@ -7066,7 +7066,7 @@ const Sx = [
7066
7066
  children: [
7067
7067
  /* @__PURE__ */ b(Te, { as: xe.icon, boxSize: 5, color: Y }),
7068
7068
  /* @__PURE__ */ b(
7069
- qr,
7069
+ $r,
7070
7070
  {
7071
7071
  fontSize: "sm",
7072
7072
  color: Y,
@@ -7075,7 +7075,7 @@ const Sx = [
7075
7075
  children: xe.label
7076
7076
  }
7077
7077
  ),
7078
- a === xe.value && /* @__PURE__ */ b(Te, { as: Rn, boxSize: 4, color: he })
7078
+ a === xe.value && /* @__PURE__ */ b(Te, { as: Rn, boxSize: 4, color: pe })
7079
7079
  ]
7080
7080
  },
7081
7081
  xe.value
@@ -7106,7 +7106,7 @@ const Sx = [
7106
7106
  }
7107
7107
  ),
7108
7108
  /* @__PURE__ */ b(
7109
- qr,
7109
+ $r,
7110
7110
  {
7111
7111
  fontSize: "sm",
7112
7112
  color: Y,
@@ -7115,7 +7115,7 @@ const Sx = [
7115
7115
  children: "Center"
7116
7116
  }
7117
7117
  ),
7118
- a === "C" && /* @__PURE__ */ b(Te, { as: Rn, boxSize: 4, color: he })
7118
+ a === "C" && /* @__PURE__ */ b(Te, { as: Rn, boxSize: 4, color: pe })
7119
7119
  ]
7120
7120
  }
7121
7121
  )
@@ -7239,7 +7239,7 @@ function Rx(e, t, r) {
7239
7239
  throw new Error("Form creation must target an object-array field.");
7240
7240
  const l = r[o.$type], d = o.$defaults ?? {};
7241
7241
  for (const [x, v] of Object.entries(d))
7242
- if (!Object.prototype.hasOwnProperty.call(l.properties, x) || Mr(
7242
+ if (!Object.prototype.hasOwnProperty.call(l.properties, x) || qr(
7243
7243
  l.properties[x].type,
7244
7244
  v,
7245
7245
  !l.properties[x].optional
@@ -7575,12 +7575,12 @@ function qx({
7575
7575
  onComplete: o
7576
7576
  }) {
7577
7577
  const i = `flow-edge-reveal-${pt().replace(/:/g, "")}`, s = ue(null), [a, u] = re({ x: 0, y: 0, width: 1, height: 1 });
7578
- return qe(() => {
7578
+ return Le(() => {
7579
7579
  const c = matchMedia("(prefers-reduced-motion: reduce)"), l = () => {
7580
7580
  c.matches && (o == null || o());
7581
7581
  };
7582
7582
  return l(), c.addEventListener("change", l), () => c.removeEventListener("change", l);
7583
- }, [o]), $r(() => {
7583
+ }, [o]), Pr(() => {
7584
7584
  var l;
7585
7585
  const c = (l = s.current) == null ? void 0 : l.getBBox();
7586
7586
  c && u({
@@ -8313,7 +8313,7 @@ function Jx({
8313
8313
  height: 48,
8314
8314
  "data-flow-content-toggle": "",
8315
8315
  style: { pointerEvents: "auto" },
8316
- children: /* @__PURE__ */ b(Ne, { label: "Show icon", children: /* @__PURE__ */ b(
8316
+ children: /* @__PURE__ */ b($e, { label: "Show icon", children: /* @__PURE__ */ b(
8317
8317
  Se,
8318
8318
  {
8319
8319
  "aria-label": "Show icon",
@@ -8497,10 +8497,10 @@ function o1({
8497
8497
  iconWidth: B,
8498
8498
  contentWidth: ce,
8499
8499
  contentHeight: te
8500
- } = Le(
8500
+ } = Ne(
8501
8501
  () => Hb(A, q, T),
8502
8502
  [A, q, T]
8503
- ), Y = Le(() => {
8503
+ ), Y = Ne(() => {
8504
8504
  const G = {
8505
8505
  srcDist: An,
8506
8506
  tgtDist: An,
@@ -8518,14 +8518,14 @@ function o1({
8518
8518
  f,
8519
8519
  h,
8520
8520
  0
8521
- ), we = f === void 0 && h === void 0 && (w === "downward" || w === "upward"), pe = g ?? {
8521
+ ), we = f === void 0 && h === void 0 && (w === "downward" || w === "upward"), ge = g ?? {
8522
8522
  ...ee.sourcePoint,
8523
8523
  side: we ? w === "upward" ? "top" : "bottom" : w === "leftward" ? "left" : "right"
8524
8524
  }, He = p ?? {
8525
8525
  ...ee.targetPoint,
8526
8526
  side: we ? w === "upward" ? "bottom" : "top" : w === "leftward" ? "right" : "left"
8527
8527
  }, K = u.x === c.x && u.y === c.y, de = g || p ? Vx(
8528
- pe,
8528
+ ge,
8529
8529
  He,
8530
8530
  { ...G, srcDist: 18, tgtDist: 18 },
8531
8531
  i
@@ -8609,7 +8609,7 @@ function o1({
8609
8609
  ce
8610
8610
  ]);
8611
8611
  if (!Y) return null;
8612
- const he = (w === "rightward" || w === "leftward") && !Object.prototype.hasOwnProperty.call(a ?? {}, i) && !(m && (f !== void 0 || h !== void 0 || g || p)), le = he ? `translate(${Y.label.x} ${Y.label.y - te / 2 - 2 * at})` : `translate(${Y.label.x} ${Y.label.y}) rotate(${Y.label.angle}) translate(${x || Object.prototype.hasOwnProperty.call(a ?? {}, i) ? 0 : Ub} 0)`, N = o != null && o.startsWith("Unverified:") ? "#b45309" : "#dc2626", D = o ? N : C, W = o ? /* @__PURE__ */ z(
8612
+ const pe = (w === "rightward" || w === "leftward") && !Object.prototype.hasOwnProperty.call(a ?? {}, i) && !(m && (f !== void 0 || h !== void 0 || g || p)), le = pe ? `translate(${Y.label.x} ${Y.label.y - te / 2 - 2 * at})` : `translate(${Y.label.x} ${Y.label.y}) rotate(${Y.label.angle}) translate(${x || Object.prototype.hasOwnProperty.call(a ?? {}, i) ? 0 : Ub} 0)`, N = o != null && o.startsWith("Unverified:") ? "#b45309" : "#dc2626", D = o ? N : C, W = o ? /* @__PURE__ */ z(
8613
8613
  "g",
8614
8614
  {
8615
8615
  className: "flow-sdk-edge-validation",
@@ -8631,21 +8631,21 @@ function o1({
8631
8631
  )
8632
8632
  ]
8633
8633
  }
8634
- ) : null, $ = k && (n == null ? void 0 : n.edgeAnimationVariant) === "traveling", X = !$ && (M || k) ? t1 : void 0, ge = k && !$ ? `flow-sdk-edge-anim${_ ? " flow-sdk-edge-anim-rev" : ""}` : void 0;
8635
- let ye = null;
8634
+ ) : null, $ = k && (n == null ? void 0 : n.edgeAnimationVariant) === "traveling", X = !$ && (M || k) ? t1 : void 0, ye = k && !$ ? `flow-sdk-edge-anim${_ ? " flow-sdk-edge-anim-rev" : ""}` : void 0;
8635
+ let fe = null;
8636
8636
  const H = t ? {
8637
8637
  "--flow-edge-reveal-duration": `${t.durationMs ?? 600}ms`,
8638
8638
  "--flow-edge-reveal-state": t.paused ? "paused" : "running"
8639
8639
  } : void 0;
8640
8640
  if (V.length || q) {
8641
8641
  const G = ce, ae = te;
8642
- ye = /* @__PURE__ */ z(
8642
+ fe = /* @__PURE__ */ z(
8643
8643
  "g",
8644
8644
  {
8645
8645
  className: `flow-sdk-edge-label${t ? " flow-sdk-edge-reveal-end" : ""}`,
8646
8646
  style: H,
8647
8647
  "data-label-transform": le,
8648
- "data-label-horizontal": he || void 0,
8648
+ "data-label-horizontal": pe || void 0,
8649
8649
  "data-edge-id": e,
8650
8650
  "data-source-property": l,
8651
8651
  "data-target-property": d,
@@ -8719,7 +8719,7 @@ function o1({
8719
8719
  }
8720
8720
  );
8721
8721
  }
8722
- const J = /* @__PURE__ */ z(Re, { children: [
8722
+ const Z = /* @__PURE__ */ z(Re, { children: [
8723
8723
  /* @__PURE__ */ b(
8724
8724
  "path",
8725
8725
  {
@@ -8729,7 +8729,7 @@ function o1({
8729
8729
  strokeWidth: on,
8730
8730
  strokeOpacity: $ ? 0.35 : void 0,
8731
8731
  strokeDasharray: X,
8732
- className: ge
8732
+ className: ye
8733
8733
  }
8734
8734
  ),
8735
8735
  $ && /* @__PURE__ */ b(
@@ -8764,9 +8764,9 @@ function o1({
8764
8764
  width: on * 4,
8765
8765
  reversed: _,
8766
8766
  onComplete: () => r == null ? void 0 : r(e),
8767
- children: J
8767
+ children: Z
8768
8768
  }
8769
- ) : J,
8769
+ ) : Z,
8770
8770
  Y.arrow && /* @__PURE__ */ b(
8771
8771
  "path",
8772
8772
  {
@@ -8775,7 +8775,7 @@ function o1({
8775
8775
  fill: o ? N : S ?? D
8776
8776
  }
8777
8777
  ),
8778
- O && ye ? sn(ye, O) : ye,
8778
+ O && fe ? sn(fe, O) : fe,
8779
8779
  O && W ? sn(W, O) : W,
8780
8780
  /* @__PURE__ */ b(
8781
8781
  "path",
@@ -9018,7 +9018,7 @@ function Jb() {
9018
9018
  return Ro = e, Ro;
9019
9019
  }
9020
9020
  var Po, wd;
9021
- function Tr() {
9021
+ function Ir() {
9022
9022
  if (wd) return Po;
9023
9023
  wd = 1;
9024
9024
  var e = Jb(), t = typeof self == "object" && self && self.Object === Object && self, r = e || t || Function("return this")();
@@ -9028,7 +9028,7 @@ var Oo, xd;
9028
9028
  function jt() {
9029
9029
  if (xd) return Oo;
9030
9030
  xd = 1;
9031
- var e = Tr(), t = e.Symbol;
9031
+ var e = Ir(), t = e.Symbol;
9032
9032
  return Oo = t, Oo;
9033
9033
  }
9034
9034
  var To, Cd;
@@ -9095,7 +9095,7 @@ var No, Ad;
9095
9095
  function m1() {
9096
9096
  if (Ad) return No;
9097
9097
  Ad = 1;
9098
- var e = Tr(), t = e["__core-js_shared__"];
9098
+ var e = Ir(), t = e["__core-js_shared__"];
9099
9099
  return No = t, No;
9100
9100
  }
9101
9101
  var Lo, Rd;
@@ -9170,7 +9170,7 @@ var Bo, Md;
9170
9170
  function il() {
9171
9171
  if (Md) return Bo;
9172
9172
  Md = 1;
9173
- var e = vt(), t = Tr(), r = e(t, "Map");
9173
+ var e = vt(), t = Ir(), r = e(t, "Map");
9174
9174
  return Bo = r, Bo;
9175
9175
  }
9176
9176
  var Vo, qd;
@@ -9497,7 +9497,7 @@ Zt.exports;
9497
9497
  var uf;
9498
9498
  function zt() {
9499
9499
  return uf || (uf = 1, (function(e, t) {
9500
- var r = Tr(), n = L1(), o = t && !t.nodeType && t, i = o && !0 && e && !e.nodeType && e, s = i && i.exports === o, a = s ? r.Buffer : void 0, u = a ? a.isBuffer : void 0, c = u || n;
9500
+ var r = Ir(), n = L1(), o = t && !t.nodeType && t, i = o && !0 && e && !e.nodeType && e, s = i && i.exports === o, a = s ? r.Buffer : void 0, u = a ? a.isBuffer : void 0, c = u || n;
9501
9501
  e.exports = c;
9502
9502
  })(Zt, Zt.exports)), Zt.exports;
9503
9503
  }
@@ -9710,7 +9710,7 @@ Yt.exports;
9710
9710
  var Rf;
9711
9711
  function rm() {
9712
9712
  return Rf || (Rf = 1, (function(e, t) {
9713
- var r = Tr(), n = t && !t.nodeType && t, o = n && !0 && e && !e.nodeType && e, i = o && o.exports === n, s = i ? r.Buffer : void 0, a = s ? s.allocUnsafe : void 0;
9713
+ var r = Ir(), n = t && !t.nodeType && t, o = n && !0 && e && !e.nodeType && e, i = o && o.exports === n, s = i ? r.Buffer : void 0, a = s ? s.allocUnsafe : void 0;
9714
9714
  function u(c, l) {
9715
9715
  if (l)
9716
9716
  return c.slice();
@@ -9849,28 +9849,28 @@ var Ui, Df;
9849
9849
  function H1() {
9850
9850
  if (Df) return Ui;
9851
9851
  Df = 1;
9852
- var e = vt(), t = Tr(), r = e(t, "DataView");
9852
+ var e = vt(), t = Ir(), r = e(t, "DataView");
9853
9853
  return Ui = r, Ui;
9854
9854
  }
9855
9855
  var Hi, Bf;
9856
9856
  function K1() {
9857
9857
  if (Bf) return Hi;
9858
9858
  Bf = 1;
9859
- var e = vt(), t = Tr(), r = e(t, "Promise");
9859
+ var e = vt(), t = Ir(), r = e(t, "Promise");
9860
9860
  return Hi = r, Hi;
9861
9861
  }
9862
9862
  var Ki, Vf;
9863
9863
  function cm() {
9864
9864
  if (Vf) return Ki;
9865
9865
  Vf = 1;
9866
- var e = vt(), t = Tr(), r = e(t, "Set");
9866
+ var e = vt(), t = Ir(), r = e(t, "Set");
9867
9867
  return Ki = r, Ki;
9868
9868
  }
9869
9869
  var Zi, Wf;
9870
9870
  function Z1() {
9871
9871
  if (Wf) return Zi;
9872
9872
  Wf = 1;
9873
- var e = vt(), t = Tr(), r = e(t, "WeakMap");
9873
+ var e = vt(), t = Ir(), r = e(t, "WeakMap");
9874
9874
  return Zi = r, Zi;
9875
9875
  }
9876
9876
  var Ji, Gf;
@@ -9911,7 +9911,7 @@ var Xi, Hf;
9911
9911
  function um() {
9912
9912
  if (Hf) return Xi;
9913
9913
  Hf = 1;
9914
- var e = Tr(), t = e.Uint8Array;
9914
+ var e = Ir(), t = e.Uint8Array;
9915
9915
  return Xi = t, Xi;
9916
9916
  }
9917
9917
  var Qi, Kf;
@@ -10075,43 +10075,43 @@ var da, ah;
10075
10075
  function hm() {
10076
10076
  if (ah) return da;
10077
10077
  ah = 1;
10078
- var e = Zn(), t = sl(), r = Yn(), n = F1(), o = V1(), i = rm(), s = tm(), a = W1(), u = G1(), c = sm(), l = U1(), d = Ft(), f = J1(), h = eC(), g = fm(), p = cr(), m = zt(), w = tC(), y = Er(), x = oC(), v = rt(), C = wt(), S = 1, E = 2, O = 4, A = "[object Arguments]", M = "[object Array]", k = "[object Boolean]", _ = "[object Date]", P = "[object Error]", I = "[object Function]", q = "[object GeneratorFunction]", T = "[object Map]", V = "[object Number]", B = "[object Object]", ce = "[object RegExp]", te = "[object Set]", Y = "[object String]", he = "[object Symbol]", le = "[object WeakMap]", N = "[object ArrayBuffer]", D = "[object DataView]", W = "[object Float32Array]", $ = "[object Float64Array]", X = "[object Int8Array]", ge = "[object Int16Array]", ye = "[object Int32Array]", H = "[object Uint8Array]", J = "[object Uint8ClampedArray]", G = "[object Uint16Array]", ae = "[object Uint32Array]", ee = {};
10079
- ee[A] = ee[M] = ee[N] = ee[D] = ee[k] = ee[_] = ee[W] = ee[$] = ee[X] = ee[ge] = ee[ye] = ee[T] = ee[V] = ee[B] = ee[ce] = ee[te] = ee[Y] = ee[he] = ee[H] = ee[J] = ee[G] = ee[ae] = !0, ee[P] = ee[I] = ee[le] = !1;
10080
- function we(pe, He, K, de, Ce, je) {
10078
+ var e = Zn(), t = sl(), r = Yn(), n = F1(), o = V1(), i = rm(), s = tm(), a = W1(), u = G1(), c = sm(), l = U1(), d = Ft(), f = J1(), h = eC(), g = fm(), p = cr(), m = zt(), w = tC(), y = Er(), x = oC(), v = rt(), C = wt(), S = 1, E = 2, O = 4, A = "[object Arguments]", M = "[object Array]", k = "[object Boolean]", _ = "[object Date]", P = "[object Error]", I = "[object Function]", q = "[object GeneratorFunction]", T = "[object Map]", V = "[object Number]", B = "[object Object]", ce = "[object RegExp]", te = "[object Set]", Y = "[object String]", pe = "[object Symbol]", le = "[object WeakMap]", N = "[object ArrayBuffer]", D = "[object DataView]", W = "[object Float32Array]", $ = "[object Float64Array]", X = "[object Int8Array]", ye = "[object Int16Array]", fe = "[object Int32Array]", H = "[object Uint8Array]", Z = "[object Uint8ClampedArray]", G = "[object Uint16Array]", ae = "[object Uint32Array]", ee = {};
10079
+ ee[A] = ee[M] = ee[N] = ee[D] = ee[k] = ee[_] = ee[W] = ee[$] = ee[X] = ee[ye] = ee[fe] = ee[T] = ee[V] = ee[B] = ee[ce] = ee[te] = ee[Y] = ee[pe] = ee[H] = ee[Z] = ee[G] = ee[ae] = !0, ee[P] = ee[I] = ee[le] = !1;
10080
+ function we(ge, He, K, de, Ce, je) {
10081
10081
  var Fe, Je = He & S, or = He & E, Ke = He & O;
10082
- if (K && (Fe = Ce ? K(pe, de, Ce, je) : K(pe)), Fe !== void 0)
10082
+ if (K && (Fe = Ce ? K(ge, de, Ce, je) : K(ge)), Fe !== void 0)
10083
10083
  return Fe;
10084
- if (!y(pe))
10085
- return pe;
10086
- var xe = p(pe);
10084
+ if (!y(ge))
10085
+ return ge;
10086
+ var xe = p(ge);
10087
10087
  if (xe) {
10088
- if (Fe = f(pe), !Je)
10089
- return s(pe, Fe);
10088
+ if (Fe = f(ge), !Je)
10089
+ return s(ge, Fe);
10090
10090
  } else {
10091
- var _e = d(pe), Ye = _e == I || _e == q;
10092
- if (m(pe))
10093
- return i(pe, Je);
10091
+ var _e = d(ge), Ye = _e == I || _e == q;
10092
+ if (m(ge))
10093
+ return i(ge, Je);
10094
10094
  if (_e == B || _e == A || Ye && !Ce) {
10095
- if (Fe = or || Ye ? {} : g(pe), !Je)
10096
- return or ? u(pe, o(Fe, pe)) : a(pe, n(Fe, pe));
10095
+ if (Fe = or || Ye ? {} : g(ge), !Je)
10096
+ return or ? u(ge, o(Fe, ge)) : a(ge, n(Fe, ge));
10097
10097
  } else {
10098
10098
  if (!ee[_e])
10099
- return Ce ? pe : {};
10100
- Fe = h(pe, _e, Je);
10099
+ return Ce ? ge : {};
10100
+ Fe = h(ge, _e, Je);
10101
10101
  }
10102
10102
  }
10103
10103
  je || (je = new e());
10104
- var tr = je.get(pe);
10104
+ var tr = je.get(ge);
10105
10105
  if (tr)
10106
10106
  return tr;
10107
- je.set(pe, Fe), x(pe) ? pe.forEach(function(hr) {
10108
- Fe.add(we(hr, He, K, hr, pe, je));
10109
- }) : w(pe) && pe.forEach(function(hr, Ee) {
10110
- Fe.set(Ee, we(hr, He, K, Ee, pe, je));
10107
+ je.set(ge, Fe), x(ge) ? ge.forEach(function(hr) {
10108
+ Fe.add(we(hr, He, K, hr, ge, je));
10109
+ }) : w(ge) && ge.forEach(function(hr, Ee) {
10110
+ Fe.set(Ee, we(hr, He, K, Ee, ge, je));
10111
10111
  });
10112
- var pr = Ke ? or ? l : c : or ? C : v, ir = xe ? void 0 : pr(pe);
10113
- return t(ir || pe, function(hr, Ee) {
10114
- ir && (Ee = hr, hr = pe[Ee]), r(Fe, Ee, we(hr, He, K, Ee, pe, je));
10112
+ var pr = Ke ? or ? l : c : or ? C : v, ir = xe ? void 0 : pr(ge);
10113
+ return t(ir || ge, function(hr, Ee) {
10114
+ ir && (Ee = hr, hr = ge[Ee]), r(Fe, Ee, we(hr, He, K, Ee, ge, je));
10115
10115
  }), Fe;
10116
10116
  }
10117
10117
  return da = we, da;
@@ -11896,7 +11896,7 @@ function d_() {
11896
11896
  }, lc;
11897
11897
  }
11898
11898
  var dc, ag;
11899
- function Or() {
11899
+ function Tr() {
11900
11900
  if (ag) return dc;
11901
11901
  ag = 1;
11902
11902
  var e;
@@ -12278,7 +12278,7 @@ var Dc, Ng;
12278
12278
  function q_() {
12279
12279
  if (Ng) return Dc;
12280
12280
  Ng = 1;
12281
- var e = Tr(), t = function() {
12281
+ var e = Ir(), t = function() {
12282
12282
  return e.Date.now();
12283
12283
  };
12284
12284
  return Dc = t, Dc;
@@ -12573,7 +12573,7 @@ var au, ry;
12573
12573
  function X_() {
12574
12574
  if (ry) return au;
12575
12575
  ry = 1;
12576
- var e = er(), t = Or().Graph, r = Y_();
12576
+ var e = er(), t = Tr().Graph, r = Y_();
12577
12577
  au = o;
12578
12578
  var n = e.constant(1);
12579
12579
  function o(c, l) {
@@ -12676,7 +12676,7 @@ var cu, ny;
12676
12676
  function wr() {
12677
12677
  if (ny) return cu;
12678
12678
  ny = 1;
12679
- var e = er(), t = Or().Graph;
12679
+ var e = er(), t = Tr().Graph;
12680
12680
  cu = {
12681
12681
  addDummyNode: r,
12682
12682
  simplify: n,
@@ -12884,7 +12884,7 @@ var du, ay;
12884
12884
  function Km() {
12885
12885
  if (ay) return du;
12886
12886
  ay = 1;
12887
- var e = er(), t = Or().Graph, r = $n().slack;
12887
+ var e = er(), t = Tr().Graph, r = $n().slack;
12888
12888
  du = n;
12889
12889
  function n(a) {
12890
12890
  var u = new t({ directed: !1 }), c = a.nodes()[0], l = a.nodeCount();
@@ -12919,7 +12919,7 @@ var fu, sy;
12919
12919
  function rS() {
12920
12920
  if (sy) return fu;
12921
12921
  sy = 1;
12922
- var e = er(), t = Km(), r = $n().slack, n = $n().longestPath, o = Or().alg.preorder, i = Or().alg.postorder, s = wr().simplify;
12922
+ var e = er(), t = Km(), r = $n().slack, n = $n().longestPath, o = Tr().alg.preorder, i = Tr().alg.postorder, s = wr().simplify;
12923
12923
  fu = a, a.initLowLimValues = d, a.initCutValues = u, a.calcCutValue = l, a.leaveEdge = h, a.enterEdge = g, a.exchangeEdges = p;
12924
12924
  function a(x) {
12925
12925
  x = s(x), n(x);
@@ -13437,7 +13437,7 @@ var Su, vy;
13437
13437
  function hS() {
13438
13438
  if (vy) return Su;
13439
13439
  vy = 1;
13440
- var e = er(), t = Or().Graph;
13440
+ var e = er(), t = Tr().Graph;
13441
13441
  Su = r;
13442
13442
  function r(o, i, s) {
13443
13443
  var a = n(o), u = new t({ compound: !0 }).setGraph({ root: a }).setDefaultNodeLabel(function(c) {
@@ -13484,7 +13484,7 @@ var ku, xy;
13484
13484
  function gS() {
13485
13485
  if (xy) return ku;
13486
13486
  xy = 1;
13487
- var e = er(), t = sS(), r = cS(), n = fS(), o = hS(), i = pS(), s = Or().Graph, a = wr();
13487
+ var e = er(), t = sS(), r = cS(), n = fS(), o = hS(), i = pS(), s = Tr().Graph, a = wr();
13488
13488
  ku = u;
13489
13489
  function u(f) {
13490
13490
  var h = a.maxRank(f), g = c(f, e.range(1, h + 1), "inEdges"), p = c(f, e.range(h - 1, -1, -1), "outEdges"), m = t(f);
@@ -13523,7 +13523,7 @@ var Au, Cy;
13523
13523
  function yS() {
13524
13524
  if (Cy) return Au;
13525
13525
  Cy = 1;
13526
- var e = er(), t = Or().Graph, r = wr();
13526
+ var e = er(), t = Tr().Graph, r = wr();
13527
13527
  Au = {
13528
13528
  positionX: g,
13529
13529
  findType1Conflicts: n,
@@ -13766,7 +13766,7 @@ var Pu, Sy;
13766
13766
  function mS() {
13767
13767
  if (Sy) return Pu;
13768
13768
  Sy = 1;
13769
- var e = er(), t = Q_(), r = eS(), n = tS(), o = wr().normalizeRanks, i = nS(), s = wr().removeEmptyRanks, a = oS(), u = iS(), c = aS(), l = gS(), d = bS(), f = wr(), h = Or().Graph;
13769
+ var e = er(), t = Q_(), r = eS(), n = tS(), o = wr().normalizeRanks, i = nS(), s = wr().removeEmptyRanks, a = oS(), u = iS(), c = aS(), l = gS(), d = bS(), f = wr(), h = Tr().Graph;
13770
13770
  Pu = g;
13771
13771
  function g(N, D) {
13772
13772
  var W = D && D.debugTiming ? f.time : f.notime;
@@ -13860,17 +13860,17 @@ function mS() {
13860
13860
  return D.setGraph(e.merge(
13861
13861
  {},
13862
13862
  y,
13863
- he(W, w),
13863
+ pe(W, w),
13864
13864
  e.pick(W, x)
13865
13865
  )), e.forEach(N.nodes(), function($) {
13866
13866
  var X = le(N.node($));
13867
- D.setNode($, e.defaults(he(X, v), C)), D.setParent($, N.parent($));
13867
+ D.setNode($, e.defaults(pe(X, v), C)), D.setParent($, N.parent($));
13868
13868
  }), e.forEach(N.edges(), function($) {
13869
13869
  var X = le(N.edge($));
13870
13870
  D.setEdge($, e.merge(
13871
13871
  {},
13872
13872
  E,
13873
- he(X, S),
13873
+ pe(X, S),
13874
13874
  e.pick(X, O)
13875
13875
  ));
13876
13876
  }), D;
@@ -13886,8 +13886,8 @@ function mS() {
13886
13886
  e.forEach(N.edges(), function(D) {
13887
13887
  var W = N.edge(D);
13888
13888
  if (W.width && W.height) {
13889
- var $ = N.node(D.v), X = N.node(D.w), ge = { rank: (X.rank - $.rank) / 2 + $.rank, e: D };
13890
- f.addDummyNode(N, "edge-proxy", ge, "_ep");
13889
+ var $ = N.node(D.v), X = N.node(D.w), ye = { rank: (X.rank - $.rank) / 2 + $.rank, e: D };
13890
+ f.addDummyNode(N, "edge-proxy", ye, "_ep");
13891
13891
  }
13892
13892
  });
13893
13893
  }
@@ -13905,17 +13905,17 @@ function mS() {
13905
13905
  });
13906
13906
  }
13907
13907
  function I(N) {
13908
- var D = Number.POSITIVE_INFINITY, W = 0, $ = Number.POSITIVE_INFINITY, X = 0, ge = N.graph(), ye = ge.marginx || 0, H = ge.marginy || 0;
13909
- function J(G) {
13910
- var ae = G.x, ee = G.y, we = G.width, pe = G.height;
13911
- D = Math.min(D, ae - we / 2), W = Math.max(W, ae + we / 2), $ = Math.min($, ee - pe / 2), X = Math.max(X, ee + pe / 2);
13908
+ var D = Number.POSITIVE_INFINITY, W = 0, $ = Number.POSITIVE_INFINITY, X = 0, ye = N.graph(), fe = ye.marginx || 0, H = ye.marginy || 0;
13909
+ function Z(G) {
13910
+ var ae = G.x, ee = G.y, we = G.width, ge = G.height;
13911
+ D = Math.min(D, ae - we / 2), W = Math.max(W, ae + we / 2), $ = Math.min($, ee - ge / 2), X = Math.max(X, ee + ge / 2);
13912
13912
  }
13913
13913
  e.forEach(N.nodes(), function(G) {
13914
- J(N.node(G));
13914
+ Z(N.node(G));
13915
13915
  }), e.forEach(N.edges(), function(G) {
13916
13916
  var ae = N.edge(G);
13917
- e.has(ae, "x") && J(ae);
13918
- }), D -= ye, $ -= H, e.forEach(N.nodes(), function(G) {
13917
+ e.has(ae, "x") && Z(ae);
13918
+ }), D -= fe, $ -= H, e.forEach(N.nodes(), function(G) {
13919
13919
  var ae = N.node(G);
13920
13920
  ae.x -= D, ae.y -= $;
13921
13921
  }), e.forEach(N.edges(), function(G) {
@@ -13923,12 +13923,12 @@ function mS() {
13923
13923
  e.forEach(ae.points, function(ee) {
13924
13924
  ee.x -= D, ee.y -= $;
13925
13925
  }), e.has(ae, "x") && (ae.x -= D), e.has(ae, "y") && (ae.y -= $);
13926
- }), ge.width = W - D + ye, ge.height = X - $ + H;
13926
+ }), ye.width = W - D + fe, ye.height = X - $ + H;
13927
13927
  }
13928
13928
  function q(N) {
13929
13929
  e.forEach(N.edges(), function(D) {
13930
- var W = N.edge(D), $ = N.node(D.v), X = N.node(D.w), ge, ye;
13931
- W.points ? (ge = W.points[0], ye = W.points[W.points.length - 1]) : (W.points = [], ge = X, ye = $), W.points.unshift(f.intersectRect($, ge)), W.points.push(f.intersectRect(X, ye));
13930
+ var W = N.edge(D), $ = N.node(D.v), X = N.node(D.w), ye, fe;
13931
+ W.points ? (ye = W.points[0], fe = W.points[W.points.length - 1]) : (W.points = [], ye = X, fe = $), W.points.unshift(f.intersectRect($, ye)), W.points.push(f.intersectRect(X, fe));
13932
13932
  });
13933
13933
  }
13934
13934
  function T(N) {
@@ -13954,8 +13954,8 @@ function mS() {
13954
13954
  function B(N) {
13955
13955
  e.forEach(N.nodes(), function(D) {
13956
13956
  if (N.children(D).length) {
13957
- var W = N.node(D), $ = N.node(W.borderTop), X = N.node(W.borderBottom), ge = N.node(e.last(W.borderLeft)), ye = N.node(e.last(W.borderRight));
13958
- W.width = Math.abs(ye.x - ge.x), W.height = Math.abs(X.y - $.y), W.x = ge.x + W.width / 2, W.y = $.y + W.height / 2;
13957
+ var W = N.node(D), $ = N.node(W.borderTop), X = N.node(W.borderBottom), ye = N.node(e.last(W.borderLeft)), fe = N.node(e.last(W.borderRight));
13958
+ W.width = Math.abs(fe.x - ye.x), W.height = Math.abs(X.y - $.y), W.x = ye.x + W.width / 2, W.y = $.y + W.height / 2;
13959
13959
  }
13960
13960
  }), e.forEach(N.nodes(), function(D) {
13961
13961
  N.node(D).dummy === "border" && N.removeNode(D);
@@ -13973,18 +13973,18 @@ function mS() {
13973
13973
  var D = f.buildLayerMatrix(N);
13974
13974
  e.forEach(D, function(W) {
13975
13975
  var $ = 0;
13976
- e.forEach(W, function(X, ge) {
13977
- var ye = N.node(X);
13978
- ye.order = ge + $, e.forEach(ye.selfEdges, function(H) {
13976
+ e.forEach(W, function(X, ye) {
13977
+ var fe = N.node(X);
13978
+ fe.order = ye + $, e.forEach(fe.selfEdges, function(H) {
13979
13979
  f.addDummyNode(N, "selfedge", {
13980
13980
  width: H.label.width,
13981
13981
  height: H.label.height,
13982
- rank: ye.rank,
13983
- order: ge + ++$,
13982
+ rank: fe.rank,
13983
+ order: ye + ++$,
13984
13984
  e: H.e,
13985
13985
  label: H.label
13986
13986
  }, "_se");
13987
- }), delete ye.selfEdges;
13987
+ }), delete fe.selfEdges;
13988
13988
  });
13989
13989
  });
13990
13990
  }
@@ -13992,18 +13992,18 @@ function mS() {
13992
13992
  e.forEach(N.nodes(), function(D) {
13993
13993
  var W = N.node(D);
13994
13994
  if (W.dummy === "selfedge") {
13995
- var $ = N.node(W.e.v), X = $.x + $.width / 2, ge = $.y, ye = W.x - X, H = $.height / 2;
13995
+ var $ = N.node(W.e.v), X = $.x + $.width / 2, ye = $.y, fe = W.x - X, H = $.height / 2;
13996
13996
  N.setEdge(W.e, W.label), N.removeNode(D), W.label.points = [
13997
- { x: X + 2 * ye / 3, y: ge - H },
13998
- { x: X + 5 * ye / 6, y: ge - H },
13999
- { x: X + ye, y: ge },
14000
- { x: X + 5 * ye / 6, y: ge + H },
14001
- { x: X + 2 * ye / 3, y: ge + H }
13997
+ { x: X + 2 * fe / 3, y: ye - H },
13998
+ { x: X + 5 * fe / 6, y: ye - H },
13999
+ { x: X + fe, y: ye },
14000
+ { x: X + 5 * fe / 6, y: ye + H },
14001
+ { x: X + 2 * fe / 3, y: ye + H }
14002
14002
  ], W.label.x = W.x, W.label.y = W.y;
14003
14003
  }
14004
14004
  });
14005
14005
  }
14006
- function he(N, D) {
14006
+ function pe(N, D) {
14007
14007
  return e.mapValues(e.pick(N, D), Number);
14008
14008
  }
14009
14009
  function le(N) {
@@ -14018,7 +14018,7 @@ var Ou, Ey;
14018
14018
  function vS() {
14019
14019
  if (Ey) return Ou;
14020
14020
  Ey = 1;
14021
- var e = er(), t = wr(), r = Or().Graph;
14021
+ var e = er(), t = wr(), r = Tr().Graph;
14022
14022
  Ou = {
14023
14023
  debugOrdering: n
14024
14024
  };
@@ -14044,7 +14044,7 @@ function wS() {
14044
14044
  var Iu, Ay;
14045
14045
  function xS() {
14046
14046
  return Ay || (Ay = 1, Iu = {
14047
- graphlib: Or(),
14047
+ graphlib: Tr(),
14048
14048
  layout: mS(),
14049
14049
  debug: vS(),
14050
14050
  util: {
@@ -14259,7 +14259,7 @@ function kS({
14259
14259
  children: E
14260
14260
  }) {
14261
14261
  const O = ue(null), [A, M] = re([]), k = c ?? A, [_, P] = re();
14262
- return $r(() => {
14262
+ return Pr(() => {
14263
14263
  const I = O.current;
14264
14264
  if (!I) return;
14265
14265
  const q = () => {
@@ -14273,15 +14273,15 @@ function kS({
14273
14273
  T.observe(I);
14274
14274
  const V = I.querySelector("[data-flow-node-surface]");
14275
14275
  return V && T.observe(V), () => T.disconnect();
14276
- }, [e, E, S]), $r(() => (i(e, O.current), () => {
14276
+ }, [e, E, S]), Pr(() => (i(e, O.current), () => {
14277
14277
  i(e, null), S == null || S(e, void 0);
14278
- }), [e, i, S]), $r(() => {
14278
+ }), [e, i, S]), Pr(() => {
14279
14279
  const I = O.current;
14280
14280
  if (!I) return;
14281
14281
  let q = "";
14282
14282
  const T = () => {
14283
- const te = ES(I), Y = y ? te : te.filter((le) => le.anchor), he = JSON.stringify(Y);
14284
- he !== q && (q = he, M(Y), C == null || C(e, Y));
14283
+ const te = ES(I), Y = y ? te : te.filter((le) => le.anchor), pe = JSON.stringify(Y);
14284
+ pe !== q && (q = pe, M(Y), C == null || C(e, Y));
14285
14285
  };
14286
14286
  if (T(), !y && !I.querySelector("[data-flow-port-side]")) return;
14287
14287
  const V = new ResizeObserver(T), B = () => {
@@ -14392,7 +14392,7 @@ function RS(e, t, r) {
14392
14392
  const [n, o] = re(() => ({
14393
14393
  nodes: /* @__PURE__ */ new Set(),
14394
14394
  edges: /* @__PURE__ */ new Set()
14395
- })), i = Le(() => {
14395
+ })), i = Ne(() => {
14396
14396
  const a = new Set(e.map((h) => h.id)), u = t.filter((h) => a.has(h.source) && a.has(h.target)).map((h) => ({
14397
14397
  id: h.id,
14398
14398
  source: h.inverted ? h.target : h.source,
@@ -14416,7 +14416,7 @@ function RS(e, t, r) {
14416
14416
  }
14417
14417
  return { nodes: l, edges: d, ready: f };
14418
14418
  }, [e, t, r, n]);
14419
- $r(() => {
14419
+ Pr(() => {
14420
14420
  o((a) => {
14421
14421
  const u = r ? i : { nodes: /* @__PURE__ */ new Set(), edges: /* @__PURE__ */ new Set() }, c = (l, d) => l.size === d.size && [...l].every((f) => d.has(f));
14422
14422
  return c(a.nodes, u.nodes) && c(a.edges, u.edges) ? a : { nodes: u.nodes, edges: u.edges };
@@ -14599,19 +14599,19 @@ function $S(e) {
14599
14599
  dragMode: w,
14600
14600
  multiSelect: y,
14601
14601
  isPerformanceMode: x
14602
- } = e, [v, C] = re(null), S = Le(
14602
+ } = e, [v, C] = re(null), S = Ne(
14603
14603
  () => v ? (v.mode === "connections" ? od : Xl)(
14604
14604
  v.id,
14605
14605
  t,
14606
14606
  r
14607
14607
  ) : null,
14608
14608
  [v, t, r]
14609
- ), E = i === "auto" || i === "properties", O = Le(
14609
+ ), E = i === "auto" || i === "properties", O = Ne(
14610
14610
  () => r.filter(
14611
14611
  (R) => Wu(R, i) && (!S || S.has(R.source) && S.has(R.target))
14612
14612
  ),
14613
14613
  [r, i, S]
14614
- ), A = Le(
14614
+ ), A = Ne(
14615
14615
  () => e1(
14616
14616
  t,
14617
14617
  r,
@@ -14624,19 +14624,19 @@ function $S(e) {
14624
14624
  M.current = A;
14625
14625
  const k = ue(e);
14626
14626
  k.current = e;
14627
- const _ = ue(null), P = ue(null), I = ue(null), q = ue(null), T = Le(
14627
+ const _ = ue(null), P = ue(null), I = ue(null), q = ue(null), T = Ne(
14628
14628
  () => new PS(h, d, f),
14629
14629
  // eslint-disable-next-line react-hooks/exhaustive-deps
14630
14630
  []
14631
14631
  );
14632
- qe(() => {
14632
+ Le(() => {
14633
14633
  T.minZoom = d, T.maxZoom = f;
14634
14634
  }, [T, d, f]);
14635
- const V = ue(/* @__PURE__ */ new Map()), B = ue(/* @__PURE__ */ new Map()), ce = ue(/* @__PURE__ */ new Map()), te = ue(null), [Y, he] = re(
14635
+ const V = ue(/* @__PURE__ */ new Map()), B = ue(/* @__PURE__ */ new Map()), ce = ue(/* @__PURE__ */ new Map()), te = ue(null), [Y, pe] = re(
14636
14636
  /* @__PURE__ */ new Map()
14637
14637
  ), le = Xe(
14638
14638
  (R, L) => {
14639
- he((F) => {
14639
+ pe((F) => {
14640
14640
  if (JSON.stringify(F.get(R)) === JSON.stringify(L))
14641
14641
  return F;
14642
14642
  const U = new Map(F);
@@ -14653,49 +14653,49 @@ function $S(e) {
14653
14653
  const U = new Map(F);
14654
14654
  return L.length ? U.set(R, L) : U.delete(R), U;
14655
14655
  });
14656
- }, []), [X, ge] = re(
14656
+ }, []), [X, ye] = re(
14657
14657
  () => /* @__PURE__ */ new Map()
14658
- ), ye = ue(X);
14659
- ye.current = X;
14660
- const H = ue(/* @__PURE__ */ new Map()), J = ue(!1), [G, ae] = re(0), ee = ue(), we = ue(), pe = ue(null), He = ue(), K = ue(!1), de = ue(null), Ce = ue(c), je = s, Fe = ue(je), [Je, or] = re(!0), Ke = ue(null);
14658
+ ), fe = ue(X);
14659
+ fe.current = X;
14660
+ const H = ue(/* @__PURE__ */ new Map()), Z = ue(!1), [G, ae] = re(0), ee = ue(), we = ue(), ge = ue(null), He = ue(), K = ue(!1), de = ue(null), Ce = ue(c), je = s, Fe = ue(je), [Je, or] = re(!0), Ke = ue(null);
14661
14661
  Ke.current = S;
14662
14662
  const xe = ue(1);
14663
14663
  xe.current = (v == null ? void 0 : v.mode) === "connections" ? 1.25 : 1;
14664
14664
  const _e = ue(null), Ye = ue(t), tr = ue([]), pr = ue(!1), ir = () => {
14665
- pe.current !== null && cancelAnimationFrame(pe.current), pe.current = null, clearTimeout(He.current);
14665
+ ge.current !== null && cancelAnimationFrame(ge.current), ge.current = null, clearTimeout(He.current);
14666
14666
  }, hr = () => {
14667
- tr.current.length && (pr.current = !0), !J.current && k.current.fitOnInit !== !1 && (K.current = !0), clearTimeout(we.current), we.current = setTimeout(() => {
14668
- J.current = !0, ae((R) => R + 1);
14667
+ tr.current.length && (pr.current = !0), !Z.current && k.current.fitOnInit !== !1 && (K.current = !0), clearTimeout(we.current), we.current = setTimeout(() => {
14668
+ Z.current = fe.current.size > 0, ae((R) => R + 1);
14669
14669
  }, IS);
14670
14670
  }, Ee = (R) => {
14671
14671
  ir();
14672
- const L = new Map(ye.current), F = performance.now(), U = () => {
14673
- ir(), ge(R), hr();
14674
- }, ie = (be) => {
14675
- const $e = Math.min(1, (be - F) / Oy);
14676
- if ($e >= 1) return U();
14677
- const Be = qS($e), ne = /* @__PURE__ */ new Map();
14678
- R.forEach((se, fe) => {
14679
- const me = L.get(fe);
14680
- ne.set(
14681
- fe,
14672
+ const L = new Map(fe.current), F = performance.now(), U = () => {
14673
+ ir(), ye(R), hr();
14674
+ }, ne = (be) => {
14675
+ const qe = Math.min(1, (be - F) / Oy);
14676
+ if (qe >= 1) return U();
14677
+ const Be = qS(qe), oe = /* @__PURE__ */ new Map();
14678
+ R.forEach((se, he) => {
14679
+ const me = L.get(he);
14680
+ oe.set(
14681
+ he,
14682
14682
  me ? { x: me.x + (se.x - me.x) * Be, y: me.y + (se.y - me.y) * Be } : se
14683
14683
  );
14684
- }), ge(ne), pe.current = requestAnimationFrame(ie);
14684
+ }), ye(oe), ge.current = requestAnimationFrame(ne);
14685
14685
  };
14686
- pe.current = requestAnimationFrame(ie), He.current = setTimeout(U, Oy + 100);
14686
+ ge.current = requestAnimationFrame(ne), He.current = setTimeout(U, Oy + 100);
14687
14687
  }, Ct = () => {
14688
14688
  const R = k.current, L = xe.current, F = M.current, U = F.nodes.map((be) => {
14689
- const $e = V.current.get(be.id) || Mu;
14690
- return { id: be.id, parent: be.parent, width: $e.w, height: $e.h };
14689
+ const qe = V.current.get(be.id) || Mu;
14690
+ return { id: be.id, parent: be.parent, width: qe.w, height: qe.h };
14691
14691
  });
14692
- let ie;
14692
+ let ne;
14693
14693
  try {
14694
- const be = R.compactPropertyLayout, $e = R.edgeMode !== "nodes" && R.edgeMode !== "workflow", Be = F.edges.map((ne) => ({
14695
- ...ne,
14696
- connectorClearance: be ? $e && (ne.sourceProperty !== void 0 || ne.targetProperty !== void 0) ? Qx : Xx : 0
14694
+ const be = R.compactPropertyLayout, qe = R.edgeMode !== "nodes" && R.edgeMode !== "workflow", Be = F.edges.map((oe) => ({
14695
+ ...oe,
14696
+ connectorClearance: be ? qe && (oe.sourceProperty !== void 0 || oe.targetProperty !== void 0) ? Qx : Xx : 0
14697
14697
  }));
14698
- ie = _S(U, Be, {
14698
+ ne = _S(U, Be, {
14699
14699
  edgeLabelFontSize: R.edgeMode === "nodes" || R.edgeMode === "workflow" ? Gb : qn,
14700
14700
  rankDir: R.direction,
14701
14701
  compact: be,
@@ -14710,16 +14710,16 @@ function $S(e) {
14710
14710
  console.warn("[flow-sdk] layout failed", be);
14711
14711
  return;
14712
14712
  }
14713
- for (const [be, $e] of H.current)
14714
- ie.has(be) ? ie.set(be, $e) : R.nodes.some((Be) => Be.id === be) || H.current.delete(be);
14715
- J.current && !R.isPerformanceMode ? Ee(ie) : (ir(), ge(ie), hr());
14713
+ for (const [be, qe] of H.current)
14714
+ ne.has(be) ? ne.set(be, qe) : R.nodes.some((Be) => Be.id === be) || H.current.delete(be);
14715
+ Z.current && !R.isPerformanceMode ? Ee(ne) : (ir(), ye(ne), hr());
14716
14716
  }, br = Xe(() => {
14717
14717
  clearTimeout(we.current), clearTimeout(ee.current), ee.current = setTimeout(
14718
14718
  Ct,
14719
14719
  k.current.layoutDebounce
14720
14720
  );
14721
14721
  }, []);
14722
- qe(() => {
14722
+ Le(() => {
14723
14723
  const R = new Map(
14724
14724
  Ye.current.map((L) => [L.id, L])
14725
14725
  );
@@ -14728,7 +14728,7 @@ function $S(e) {
14728
14728
  var F;
14729
14729
  return ((F = R.get(L.id)) == null ? void 0 : F.collapsed) === !0 && !L.collapsed;
14730
14730
  }
14731
- ) && (tr.current = t.filter((L) => !R.has(L.id)).map((L) => L.id)), Ye.current = t, Ce.current !== c && ye.current.size > 0 && (J.current = !0, K.current = !1, clearTimeout(we.current)), Ce.current = c, Fe.current !== je && (K.current = !de.current), Fe.current = je, br();
14731
+ ) && (tr.current = t.filter((L) => !R.has(L.id)).map((L) => L.id)), Ye.current = t, Ce.current !== c && fe.current.size > 0 && (Z.current = !0, K.current = !1, clearTimeout(we.current)), Ce.current = c, Fe.current !== je && (K.current = !de.current), Fe.current = je, br();
14732
14732
  }, [
14733
14733
  t,
14734
14734
  r,
@@ -14742,7 +14742,7 @@ function $S(e) {
14742
14742
  br,
14743
14743
  c,
14744
14744
  l
14745
- ]), qe(
14745
+ ]), Le(
14746
14746
  () => () => {
14747
14747
  clearTimeout(ee.current), clearTimeout(we.current), ir();
14748
14748
  },
@@ -14751,45 +14751,45 @@ function $S(e) {
14751
14751
  const Bt = Xe(
14752
14752
  (R, L) => {
14753
14753
  var F, U;
14754
- if (!te.current && typeof ResizeObserver < "u" && (te.current = new ResizeObserver((ie) => {
14754
+ if (!te.current && typeof ResizeObserver < "u" && (te.current = new ResizeObserver((ne) => {
14755
14755
  let be = !1;
14756
- for (const $e of ie) {
14757
- const Be = ce.current.get($e.target);
14756
+ for (const qe of ne) {
14757
+ const Be = ce.current.get(qe.target);
14758
14758
  if (!Be) continue;
14759
- const ne = $e.target, se = ne.offsetWidth, fe = ne.offsetHeight;
14760
- if (!se && !fe) continue;
14759
+ const oe = qe.target, se = oe.offsetWidth, he = oe.offsetHeight;
14760
+ if (!se && !he) continue;
14761
14761
  const me = V.current.get(Be);
14762
- me && me.w === se && me.h === fe || (V.current.set(Be, { w: se, h: fe }), be = !0);
14762
+ me && me.w === se && me.h === he || (V.current.set(Be, { w: se, h: he }), be = !0);
14763
14763
  }
14764
14764
  be && br();
14765
14765
  })), L) {
14766
14766
  B.current.set(R, L), ce.current.set(L, R), (F = te.current) == null || F.observe(L);
14767
- const ie = L.offsetWidth, be = L.offsetHeight;
14768
- (ie || be) && V.current.set(R, { w: ie, h: be });
14767
+ const ne = L.offsetWidth, be = L.offsetHeight;
14768
+ (ne || be) && V.current.set(R, { w: ne, h: be });
14769
14769
  } else {
14770
- const ie = B.current.get(R);
14771
- ie && ((U = te.current) == null || U.unobserve(ie), ce.current.delete(ie)), B.current.delete(R), V.current.delete(R), W.current.has(R) && $(R, []);
14770
+ const ne = B.current.get(R);
14771
+ ne && ((U = te.current) == null || U.unobserve(ne), ce.current.delete(ne)), B.current.delete(R), V.current.delete(R), W.current.has(R) && $(R, []);
14772
14772
  }
14773
14773
  br();
14774
14774
  },
14775
14775
  [br, $]
14776
14776
  );
14777
- qe(() => () => {
14777
+ Le(() => () => {
14778
14778
  var R;
14779
14779
  return (R = te.current) == null ? void 0 : R.disconnect();
14780
14780
  }, []);
14781
- const oe = Le(() => {
14781
+ const ie = Ne(() => {
14782
14782
  const R = /* @__PURE__ */ new Map();
14783
14783
  for (const L of t) L.label && R.set(L.id, L.label);
14784
14784
  return R;
14785
- }, [t]), We = Le(
14785
+ }, [t]), We = Ne(
14786
14786
  () => SS(
14787
14787
  A.nodes,
14788
14788
  X,
14789
14789
  V.current,
14790
14790
  (R) => g(R).padding,
14791
14791
  (R) => {
14792
- const L = oe.get(R);
14792
+ const L = ie.get(R);
14793
14793
  if (!L) return;
14794
14794
  const F = g(R);
14795
14795
  return { w: Wn(
@@ -14798,17 +14798,17 @@ function $S(e) {
14798
14798
  ) + 2 * MS, h: 0 };
14799
14799
  }
14800
14800
  ),
14801
- [A.nodes, X, g, oe]
14801
+ [A.nodes, X, g, ie]
14802
14802
  ), rr = ue(We);
14803
14803
  rr.current = We;
14804
14804
  const Ge = Xe((R) => {
14805
14805
  const L = rr.current.get(R);
14806
14806
  if (L) return jx(L);
14807
- const F = ye.current.get(R);
14807
+ const F = fe.current.get(R);
14808
14808
  if (!F) return;
14809
14809
  const U = V.current.get(R) || Mu;
14810
14810
  return { x: F.x, y: F.y, w: U.w, h: U.h };
14811
- }, []), mr = Le(() => {
14811
+ }, []), mr = Ne(() => {
14812
14812
  const R = /* @__PURE__ */ new Map();
14813
14813
  for (const L of t) {
14814
14814
  const F = Ge(L.id);
@@ -14833,25 +14833,25 @@ function $S(e) {
14833
14833
  ]);
14834
14834
  W.current = mr;
14835
14835
  const Q = (R, L) => {
14836
- var ie;
14836
+ var ne;
14837
14837
  if (!E || L === void 0) return;
14838
- const F = (ie = mr.get(R)) == null ? void 0 : ie.find((be) => be.property === L), U = Ge(R);
14838
+ const F = (ne = mr.get(R)) == null ? void 0 : ne.find((be) => be.property === L), U = Ge(R);
14839
14839
  return F && !F.anchor && U ? U.y - U.h / 2 + F.top + F.height / 2 : void 0;
14840
14840
  }, j = (R, L) => {
14841
- var ie, be;
14841
+ var ne, be;
14842
14842
  if (L === void 0) return;
14843
- const F = (be = (ie = mr.get(R)) == null ? void 0 : ie.find(($e) => $e.property === L)) == null ? void 0 : be.anchor, U = Ge(R);
14843
+ const F = (be = (ne = mr.get(R)) == null ? void 0 : ne.find((qe) => qe.property === L)) == null ? void 0 : be.anchor, U = Ge(R);
14844
14844
  return F && U ? {
14845
14845
  x: U.x - U.w / 2 + F.x,
14846
14846
  y: U.y - U.h / 2 + F.y,
14847
14847
  side: F.side
14848
14848
  } : void 0;
14849
- }, Z = (R, L) => {
14849
+ }, J = (R, L) => {
14850
14850
  const F = Ge(R), U = Y.get(R);
14851
14851
  return F && U && !We.has(R) && Q(R, L) === void 0 ? nn(F, U) : F;
14852
14852
  }, Pe = () => {
14853
14853
  const R = [];
14854
- ye.current.forEach((L, F) => {
14854
+ fe.current.forEach((L, F) => {
14855
14855
  if (rr.current.has(F)) return;
14856
14856
  const U = V.current.get(F) || Mu;
14857
14857
  R.push(kt({ x: L.x, y: L.y, w: U.w, h: U.h }));
@@ -14880,7 +14880,7 @@ function $S(e) {
14880
14880
  `translate(${R.x} ${R.y}) scale(${L})`
14881
14881
  );
14882
14882
  };
14883
- qe(() => {
14883
+ Le(() => {
14884
14884
  Ie();
14885
14885
  let R = null, L;
14886
14886
  const F = T.onChange(() => {
@@ -14890,32 +14890,32 @@ function $S(e) {
14890
14890
  () => U.classList.remove("flow-sdk-busy"),
14891
14891
  150
14892
14892
  )), R === null && (R = requestAnimationFrame(() => {
14893
- var ie, be;
14894
- R = null, (be = (ie = k.current).onViewportChange) == null || be.call(ie, T.state);
14893
+ var ne, be;
14894
+ R = null, (be = (ne = k.current).onViewportChange) == null || be.call(ne, T.state);
14895
14895
  }));
14896
14896
  });
14897
14897
  return () => {
14898
14898
  F(), clearTimeout(L), R !== null && cancelAnimationFrame(R);
14899
14899
  };
14900
- }, []), $r(() => {
14900
+ }, []), Pr(() => {
14901
14901
  const R = _.current;
14902
14902
  if (!R) return;
14903
14903
  const L = () => {
14904
- let U = R.clientWidth, ie = R.clientHeight;
14905
- ie || (ie = Math.max(
14904
+ let U = R.clientWidth, ne = R.clientHeight;
14905
+ ne || (ne = Math.max(
14906
14906
  0,
14907
14907
  window.innerHeight - R.getBoundingClientRect().top - 100
14908
- ), ie && (R.style.height = `${ie}px`)), U || (U = window.innerWidth, U && (R.style.width = `${U}px`)), T.size = { w: U, h: ie };
14908
+ ), ne && (R.style.height = `${ne}px`)), U || (U = window.innerWidth, U && (R.style.width = `${U}px`)), T.size = { w: U, h: ne }, !Z.current && !fe.current.size && k.current.fitOnInit !== !1 && (T.set({ x: U / 2, y: ne / 2 }), Ie());
14909
14909
  };
14910
14910
  if (L(), typeof ResizeObserver > "u") return;
14911
14911
  const F = new ResizeObserver(L);
14912
14912
  return F.observe(R), () => F.disconnect();
14913
- }, [T]), qe(() => {
14913
+ }, [T]), Pr(() => {
14914
14914
  if (pr.current) {
14915
14915
  pr.current = !1;
14916
14916
  const L = tr.current.flatMap((U) => {
14917
- const ie = Ge(U);
14918
- return ie ? [kt(ie)] : [];
14917
+ const ne = Ge(U);
14918
+ return ne ? [kt(ne)] : [];
14919
14919
  });
14920
14920
  tr.current = [];
14921
14921
  const F = go(L);
@@ -14927,12 +14927,12 @@ function $S(e) {
14927
14927
  if (!K.current) return;
14928
14928
  K.current = !1;
14929
14929
  const R = Pe();
14930
- R && T.fit(R, 50, k.current.animateViewport);
14930
+ R && (T.fit(R, 50, Z.current && k.current.animateViewport), Z.current || Ie());
14931
14931
  }, [X]);
14932
- const Oe = Le(() => {
14933
- const R = (ne) => Xl(ne, k.current.nodes, k.current.edges), L = (ne, se = 50, fe = k.current.animateViewport, me = 1) => {
14932
+ const Oe = Ne(() => {
14933
+ const R = (oe) => Xl(oe, k.current.nodes, k.current.edges), L = (oe, se = 50, he = k.current.animateViewport, me = 1) => {
14934
14934
  const ur = go(
14935
- [...ne].flatMap((nt) => {
14935
+ [...oe].flatMap((nt) => {
14936
14936
  const ot = Ge(nt);
14937
14937
  return ot ? [kt(ot)] : [];
14938
14938
  })
@@ -14940,116 +14940,116 @@ function $S(e) {
14940
14940
  ur && (K.current = !1, T.fit(
14941
14941
  ur,
14942
14942
  Number.isFinite(se) ? Math.max(0, se) : 50,
14943
- fe,
14943
+ he,
14944
14944
  me
14945
14945
  ));
14946
- }, F = (ne, se, fe, me) => {
14946
+ }, F = (oe, se, he, me) => {
14947
14947
  var nt;
14948
- if (!Ge(ne)) return;
14949
- const ur = se === "connections" ? ie(ne) : R(ne);
14948
+ if (!Ge(oe)) return;
14949
+ const ur = se === "connections" ? ne(oe) : R(oe);
14950
14950
  if (se === "connections" && xe.current === 1.25 && ((nt = Ke.current) == null ? void 0 : nt.size) === ur.size && [...ur].every((ot) => Ke.current.has(ot))) {
14951
- C({ id: ne, mode: se });
14951
+ C({ id: oe, mode: se });
14952
14952
  return;
14953
14953
  }
14954
14954
  _e.current || (_e.current = {
14955
14955
  pan: { ...T.pan },
14956
14956
  zoom: T.zoom
14957
- }), Ke.current = ur, k.current.compactPropertyLayout && (K.current = !1, de.current = () => L(Ke.current ?? ur, fe, me)), C({ id: ne, mode: se }), k.current.compactPropertyLayout || L(ur, fe, me);
14958
- }, U = (ne) => {
14959
- de.current ? de.current = ne : ne();
14960
- }, ie = (ne) => od(ne, k.current.nodes, k.current.edges), be = ((ne) => {
14961
- if (ne === void 0) return T.zoom;
14962
- T.set(void 0, ne);
14963
- }), $e = ((ne) => {
14964
- if (ne === void 0) return T.pan;
14965
- T.set(ne);
14966
- }), Be = (ne, se) => {
14957
+ }), Ke.current = ur, k.current.compactPropertyLayout && (K.current = !1, de.current = () => L(Ke.current ?? ur, he, me)), C({ id: oe, mode: se }), k.current.compactPropertyLayout || L(ur, he, me);
14958
+ }, U = (oe) => {
14959
+ de.current ? de.current = oe : oe();
14960
+ }, ne = (oe) => od(oe, k.current.nodes, k.current.edges), be = ((oe) => {
14961
+ if (oe === void 0) return T.zoom;
14962
+ T.set(void 0, oe);
14963
+ }), qe = ((oe) => {
14964
+ if (oe === void 0) return T.pan;
14965
+ T.set(oe);
14966
+ }), Be = (oe, se) => {
14967
14967
  var me;
14968
- const fe = (me = _.current) == null ? void 0 : me.getBoundingClientRect();
14969
- return { x: ne - ((fe == null ? void 0 : fe.left) ?? 0), y: se - ((fe == null ? void 0 : fe.top) ?? 0) };
14968
+ const he = (me = _.current) == null ? void 0 : me.getBoundingClientRect();
14969
+ return { x: oe - ((he == null ? void 0 : he.left) ?? 0), y: se - ((he == null ? void 0 : he.top) ?? 0) };
14970
14970
  };
14971
14971
  return {
14972
14972
  zoom: be,
14973
- pan: $e,
14973
+ pan: qe,
14974
14974
  setEdgesVisible: or,
14975
- focusNode: (ne, se, fe) => U(() => L(/* @__PURE__ */ new Set([ne]), se, fe, 0.6)),
14976
- focusBranch: (ne, se, fe) => U(() => L(R(ne), se, fe)),
14977
- focusConnections: (ne, se, fe) => U(() => L(ie(ne), se, fe)),
14978
- isolateConnections: (ne, se, fe) => F(ne, "connections", se, fe),
14979
- isolateBranch: (ne, se, fe) => F(ne, "branch", se, fe),
14980
- restoreView: (ne = k.current.animateViewport, se) => {
14981
- const fe = k.current.compactPropertyLayout && !!Ke.current;
14975
+ focusNode: (oe, se, he) => U(() => L(/* @__PURE__ */ new Set([oe]), se, he, 0.6)),
14976
+ focusBranch: (oe, se, he) => U(() => L(R(oe), se, he)),
14977
+ focusConnections: (oe, se, he) => U(() => L(ne(oe), se, he)),
14978
+ isolateConnections: (oe, se, he) => F(oe, "connections", se, he),
14979
+ isolateBranch: (oe, se, he) => F(oe, "branch", se, he),
14980
+ restoreView: (oe = k.current.animateViewport, se) => {
14981
+ const he = k.current.compactPropertyLayout && !!Ke.current;
14982
14982
  Ke.current = null, C(null);
14983
14983
  const me = se ?? _e.current;
14984
- _e.current = null, fe ? de.current = () => {
14985
- me && T.transition(me, ne);
14986
- } : me && U(() => T.transition(me, ne));
14984
+ _e.current = null, he ? de.current = () => {
14985
+ me && T.transition(me, oe);
14986
+ } : me && U(() => T.transition(me, oe));
14987
14987
  },
14988
- zoomAt: (ne, se) => T.zoomAt(ne, se),
14989
- fit: (ne = 0, se = k.current.animateViewport) => {
14988
+ zoomAt: (oe, se) => T.zoomAt(oe, se),
14989
+ fit: (oe = 0, se = k.current.animateViewport) => {
14990
14990
  U(() => {
14991
- const fe = Pe();
14992
- fe && T.fit(fe, ne, se);
14991
+ const he = Pe();
14992
+ he && T.fit(he, oe, se);
14993
14993
  });
14994
14994
  },
14995
- centerAndFit: (ne = 0, se = k.current.animateViewport) => {
14995
+ centerAndFit: (oe = 0, se = k.current.animateViewport) => {
14996
14996
  U(() => {
14997
- const fe = Pe();
14998
- fe && T.fit(fe, ne, se);
14997
+ const he = Pe();
14998
+ he && T.fit(he, oe, se);
14999
14999
  });
15000
15000
  },
15001
- center: (ne = k.current.animateViewport) => {
15001
+ center: (oe = k.current.animateViewport) => {
15002
15002
  const se = Pe();
15003
- se && T.center(se, ne);
15003
+ se && T.center(se, oe);
15004
15004
  },
15005
- clientToModel: (ne, se) => T.renderedToModel(Be(ne, se)),
15006
- modelToClient: (ne) => {
15005
+ clientToModel: (oe, se) => T.renderedToModel(Be(oe, se)),
15006
+ modelToClient: (oe) => {
15007
15007
  var me;
15008
- const se = (me = _.current) == null ? void 0 : me.getBoundingClientRect(), fe = T.modelToRendered(ne);
15009
- return { x: fe.x + ((se == null ? void 0 : se.left) ?? 0), y: fe.y + ((se == null ? void 0 : se.top) ?? 0) };
15008
+ const se = (me = _.current) == null ? void 0 : me.getBoundingClientRect(), he = T.modelToRendered(oe);
15009
+ return { x: he.x + ((se == null ? void 0 : se.left) ?? 0), y: he.y + ((se == null ? void 0 : se.top) ?? 0) };
15010
15010
  },
15011
- getNodeBox: (ne) => Ge(ne),
15012
- setNodePosition: (ne, se, fe) => {
15013
- if (!ye.current.has(ne) || se && (!Number.isFinite(se.x) || !Number.isFinite(se.y)))
15011
+ getNodeBox: (oe) => Ge(oe),
15012
+ setNodePosition: (oe, se, he) => {
15013
+ if (!fe.current.has(oe) || se && (!Number.isFinite(se.x) || !Number.isFinite(se.y)))
15014
15014
  return !1;
15015
15015
  if (ir(), !se)
15016
- return H.current.delete(ne), br(), !0;
15017
- const me = new Map(ye.current);
15018
- return me.set(ne, { ...se }), (fe == null ? void 0 : fe.persist) === !1 ? H.current.delete(ne) : H.current.set(ne, { ...se }), ye.current = me, ge(me), (fe == null ? void 0 : fe.persist) === !1 && br(), !0;
15016
+ return H.current.delete(oe), br(), !0;
15017
+ const me = new Map(fe.current);
15018
+ return me.set(oe, { ...se }), (he == null ? void 0 : he.persist) === !1 ? H.current.delete(oe) : H.current.set(oe, { ...se }), fe.current = me, ye(me), (he == null ? void 0 : he.persist) === !1 && br(), !0;
15019
15019
  },
15020
- onViewportChange: (ne) => T.onChange(ne)
15020
+ onViewportChange: (oe) => T.onChange(oe)
15021
15021
  };
15022
15022
  }, []);
15023
- qe(() => {
15023
+ Le(() => {
15024
15024
  var R, L;
15025
15025
  return (L = (R = k.current).onInit) == null || L.call(R, Oe), () => T.cancelAnimation();
15026
- }, [Oe]), qe(() => {
15026
+ }, [Oe]), Le(() => {
15027
15027
  var R, L;
15028
15028
  if (G > 0) {
15029
15029
  const F = de.current;
15030
15030
  de.current = null, F == null || F(), (L = (R = k.current).onLayoutComplete) == null || L.call(R, Oe);
15031
15031
  }
15032
15032
  }, [Oe, G]);
15033
- const ze = ue(null), Ue = ue(/* @__PURE__ */ new Map()), Qe = ue(!1), [Ze, Ir] = re(null), [Me, xr] = re(null), Ur = (R) => {
15033
+ const ze = ue(null), Ue = ue(/* @__PURE__ */ new Map()), Qe = ue(!1), [Ze, Mr] = re(null), [Me, xr] = re(null), Ur = (R) => {
15034
15034
  const L = _.current.getBoundingClientRect();
15035
15035
  return { x: R.clientX - L.left, y: R.clientY - L.top };
15036
15036
  }, jr = (R, L) => {
15037
15037
  const F = k.current.nodes;
15038
15038
  for (let U = F.length - 1; U >= 0; U--) {
15039
- const ie = F[U].id;
15040
- if (!At(ie, k.current.edges, k.current.edgeMode) || Ke.current && !Ke.current.has(ie) || ie === L || rr.current.has(ie)) continue;
15041
- const be = Ge(ie);
15042
- if (be && Ql(R, kt(be))) return ie;
15039
+ const ne = F[U].id;
15040
+ if (!At(ne, k.current.edges, k.current.edgeMode) || Ke.current && !Ke.current.has(ne) || ne === L || rr.current.has(ne)) continue;
15041
+ const be = Ge(ne);
15042
+ if (be && Ql(R, kt(be))) return ne;
15043
15043
  }
15044
- for (const [U, ie] of rr.current)
15045
- if (At(U, k.current.edges, k.current.edgeMode) && !(Ke.current && !Ke.current.has(U)) && U !== L && Ql(R, ie))
15044
+ for (const [U, ne] of rr.current)
15045
+ if (At(U, k.current.edges, k.current.edgeMode) && !(Ke.current && !Ke.current.has(U)) && U !== L && Ql(R, ne))
15046
15046
  return U;
15047
15047
  return null;
15048
15048
  }, Hr = (R, L) => {
15049
15049
  if (k.current.edgeMode === "nodes" || k.current.edgeMode === "workflow")
15050
15050
  return null;
15051
15051
  const F = k.current.direction === "RL", U = Math.max(16, 6 / T.zoom);
15052
- let ie = null;
15052
+ let ne = null;
15053
15053
  for (const be of [...k.current.nodes].reverse()) {
15054
15054
  if (!At(
15055
15055
  be.id,
@@ -15057,22 +15057,22 @@ function $S(e) {
15057
15057
  k.current.edgeMode
15058
15058
  ) || Ke.current && !Ke.current.has(be.id))
15059
15059
  continue;
15060
- const $e = Ge(be.id), Be = W.current.get(be.id);
15061
- if (!$e || !Be || rr.current.has(be.id)) continue;
15062
- const ne = $e.x + (L === "source" !== F ? 1 : -1) * $e.w / 2;
15060
+ const qe = Ge(be.id), Be = W.current.get(be.id);
15061
+ if (!qe || !Be || rr.current.has(be.id)) continue;
15062
+ const oe = qe.x + (L === "source" !== F ? 1 : -1) * qe.w / 2;
15063
15063
  for (const se of Be) {
15064
15064
  if (se.role && se.role !== L) continue;
15065
- const fe = $e.y - $e.h / 2 + se.top, me = Math.hypot(
15066
- R.x - (se.anchor ? $e.x - $e.w / 2 + se.anchor.x : ne),
15067
- R.y - fe - se.height / 2
15065
+ const he = qe.y - qe.h / 2 + se.top, me = Math.hypot(
15066
+ R.x - (se.anchor ? qe.x - qe.w / 2 + se.anchor.x : oe),
15067
+ R.y - he - se.height / 2
15068
15068
  );
15069
- if (!se.anchor && R.x >= $e.x - $e.w / 2 && R.x <= $e.x + $e.w / 2 && R.y >= fe && R.y <= fe + se.height) return { nodeId: be.id, property: se.property };
15070
- me <= U && (!ie || me < ie.distance) && (ie = { nodeId: be.id, property: se.property, distance: me });
15069
+ if (!se.anchor && R.x >= qe.x - qe.w / 2 && R.x <= qe.x + qe.w / 2 && R.y >= he && R.y <= he + se.height) return { nodeId: be.id, property: se.property };
15070
+ me <= U && (!ne || me < ne.distance) && (ne = { nodeId: be.id, property: se.property, distance: me });
15071
15071
  }
15072
15072
  }
15073
- return ie;
15073
+ return ne;
15074
15074
  }, tv = (R) => {
15075
- var $e;
15075
+ var qe;
15076
15076
  if (!R.currentTarget.contains(R.target) || R.button !== 0 || k.current.readOnly) return;
15077
15077
  ze.current || (Qe.current = !1);
15078
15078
  const L = R.target;
@@ -15090,25 +15090,25 @@ function $S(e) {
15090
15090
  distance: Be.distance,
15091
15091
  zoom: T.zoom,
15092
15092
  anchor: T.renderedToModel(Be.center)
15093
- }, xr(null), Ir(null), Qe.current = !0;
15094
- for (const ne of Ue.current.keys())
15095
- R.currentTarget.setPointerCapture(ne);
15093
+ }, xr(null), Mr(null), Qe.current = !0;
15094
+ for (const oe of Ue.current.keys())
15095
+ R.currentTarget.setPointerCapture(oe);
15096
15096
  return;
15097
15097
  }
15098
15098
  }
15099
15099
  if (ze.current) return;
15100
- const ie = F.drawHandles && L.closest(".flow-sdk-handle"), be = F.drawHandles && L.closest(".flow-sdk-property-port");
15101
- if (F.drawMode || ie || be) {
15102
- const Be = T.renderedToModel(U), ne = F.drawMode ? Hr(Be, "source") : null, se = be || ie, fe = se ? ($e = se.closest("[data-node-id]")) == null ? void 0 : $e.dataset.nodeId : (ne == null ? void 0 : ne.nodeId) ?? jr(Be), me = be ? be.dataset.property : ne == null ? void 0 : ne.property;
15103
- if (fe) {
15100
+ const ne = F.drawHandles && L.closest(".flow-sdk-handle"), be = F.drawHandles && L.closest(".flow-sdk-property-port");
15101
+ if (F.drawMode || ne || be) {
15102
+ const Be = T.renderedToModel(U), oe = F.drawMode ? Hr(Be, "source") : null, se = be || ne, he = se ? (qe = se.closest("[data-node-id]")) == null ? void 0 : qe.dataset.nodeId : (oe == null ? void 0 : oe.nodeId) ?? jr(Be), me = be ? be.dataset.property : oe == null ? void 0 : oe.property;
15103
+ if (he) {
15104
15104
  ze.current = {
15105
15105
  kind: "draw",
15106
15106
  pointerId: R.pointerId,
15107
- source: fe,
15107
+ source: he,
15108
15108
  sourceProperty: me,
15109
15109
  reverse: (be == null ? void 0 : be.dataset.portRole) === "target",
15110
15110
  startClient: { x: R.clientX, y: R.clientY }
15111
- }, Qe.current = !0, xr({ source: fe, sourceProperty: me, point: Be, target: null }), R.currentTarget.setPointerCapture(R.pointerId);
15111
+ }, Qe.current = !0, xr({ source: he, sourceProperty: me, point: Be, target: null }), R.currentTarget.setPointerCapture(R.pointerId);
15112
15112
  return;
15113
15113
  }
15114
15114
  }
@@ -15138,25 +15138,25 @@ function $S(e) {
15138
15138
  if (Ue.current.has(R.pointerId) && Ue.current.set(R.pointerId, F), L.kind === "pinch") {
15139
15139
  const U = Ty(Ue.current);
15140
15140
  if (!U) return;
15141
- const ie = Math.max(
15141
+ const ne = Math.max(
15142
15142
  T.minZoom,
15143
15143
  Math.min(T.maxZoom, L.zoom * U.distance / L.distance)
15144
15144
  );
15145
15145
  T.set(
15146
15146
  {
15147
- x: U.center.x - L.anchor.x * ie,
15148
- y: U.center.y - L.anchor.y * ie
15147
+ x: U.center.x - L.anchor.x * ne,
15148
+ y: U.center.y - L.anchor.y * ne
15149
15149
  },
15150
- ie
15150
+ ne
15151
15151
  );
15152
15152
  return;
15153
15153
  }
15154
15154
  if (L.pointerId === R.pointerId)
15155
15155
  switch (L.kind) {
15156
15156
  case "pan": {
15157
- const U = F.x - L.start.x, ie = F.y - L.start.y;
15158
- if (!L.moved && Math.hypot(U, ie) <= Py) return;
15159
- L.moved = !0, Qe.current = !0, T.set({ x: L.pan0.x + U, y: L.pan0.y + ie });
15157
+ const U = F.x - L.start.x, ne = F.y - L.start.y;
15158
+ if (!L.moved && Math.hypot(U, ne) <= Py) return;
15159
+ L.moved = !0, Qe.current = !0, T.set({ x: L.pan0.x + U, y: L.pan0.y + ne });
15160
15160
  break;
15161
15161
  }
15162
15162
  case "tap": {
@@ -15164,7 +15164,7 @@ function $S(e) {
15164
15164
  break;
15165
15165
  }
15166
15166
  case "box": {
15167
- Qe.current = !0, L.current = F, Ir({
15167
+ Qe.current = !0, L.current = F, Mr({
15168
15168
  x1: Math.min(L.start.x, F.x),
15169
15169
  y1: Math.min(L.start.y, F.y),
15170
15170
  x2: Math.max(L.start.x, F.x),
@@ -15173,11 +15173,11 @@ function $S(e) {
15173
15173
  break;
15174
15174
  }
15175
15175
  case "draw": {
15176
- const U = T.renderedToModel(F), ie = Hr(U, L.reverse ? "source" : "target");
15176
+ const U = T.renderedToModel(F), ne = Hr(U, L.reverse ? "source" : "target");
15177
15177
  xr(
15178
- L.reverse && ie ? {
15179
- source: ie.nodeId,
15180
- sourceProperty: ie.property,
15178
+ L.reverse && ne ? {
15179
+ source: ne.nodeId,
15180
+ sourceProperty: ne.property,
15181
15181
  point: U,
15182
15182
  target: L.source,
15183
15183
  targetProperty: L.sourceProperty
@@ -15185,15 +15185,15 @@ function $S(e) {
15185
15185
  source: L.source,
15186
15186
  sourceProperty: L.sourceProperty,
15187
15187
  point: U,
15188
- target: (ie == null ? void 0 : ie.nodeId) ?? jr(U, L.source),
15189
- targetProperty: ie == null ? void 0 : ie.property
15188
+ target: (ne == null ? void 0 : ne.nodeId) ?? jr(U, L.source),
15189
+ targetProperty: ne == null ? void 0 : ne.property
15190
15190
  }
15191
15191
  );
15192
15192
  break;
15193
15193
  }
15194
15194
  }
15195
15195
  }, El = (R, L) => {
15196
- var ie, be, $e, Be, ne;
15196
+ var ne, be, qe, Be, oe;
15197
15197
  Ue.current.delete(R.pointerId);
15198
15198
  const F = ze.current;
15199
15199
  if (!F) return;
@@ -15218,15 +15218,15 @@ function $S(e) {
15218
15218
  switch (L = L || !!U.readOnly, F.kind) {
15219
15219
  case "pan":
15220
15220
  case "tap":
15221
- !L && !F.moved && ((ie = U.onBackgroundTap) == null || ie.call(U));
15221
+ !L && !F.moved && ((ne = U.onBackgroundTap) == null || ne.call(U));
15222
15222
  break;
15223
15223
  case "box": {
15224
- if (Ir(null), L) break;
15225
- const se = T.renderedToModel(F.start), fe = T.renderedToModel(F.current), me = {
15226
- x1: Math.min(se.x, fe.x),
15227
- y1: Math.min(se.y, fe.y),
15228
- x2: Math.max(se.x, fe.x),
15229
- y2: Math.max(se.y, fe.y)
15224
+ if (Mr(null), L) break;
15225
+ const se = T.renderedToModel(F.start), he = T.renderedToModel(F.current), me = {
15226
+ x1: Math.min(se.x, he.x),
15227
+ y1: Math.min(se.y, he.y),
15228
+ x2: Math.max(se.x, he.x),
15229
+ y2: Math.max(se.y, he.y)
15230
15230
  };
15231
15231
  if (me.x2 - me.x1 < 1 && me.y2 - me.y1 < 1) {
15232
15232
  (be = U.onBackgroundTap) == null || be.call(U);
@@ -15237,12 +15237,12 @@ function $S(e) {
15237
15237
  const ot = Ge(nt.id);
15238
15238
  ot && zx(kt(ot), me) && ur.push(nt.id);
15239
15239
  }
15240
- ur.length && (($e = U.onBoxSelect) == null || $e.call(U, ur));
15240
+ ur.length && ((qe = U.onBoxSelect) == null || qe.call(U, ur));
15241
15241
  break;
15242
15242
  }
15243
15243
  case "draw": {
15244
15244
  if (xr(null), L) break;
15245
- const se = Ur(R), fe = T.renderedToModel(se), me = Hr(fe, F.reverse ? "source" : "target"), ur = (me == null ? void 0 : me.nodeId) ?? jr(fe);
15245
+ const se = Ur(R), he = T.renderedToModel(se), me = Hr(he, F.reverse ? "source" : "target"), ur = (me == null ? void 0 : me.nodeId) ?? jr(he);
15246
15246
  if (ur === F.source && (F.sourceProperty === void 0 || (me == null ? void 0 : me.property) === void 0 || me.property === F.sourceProperty))
15247
15247
  break;
15248
15248
  ur ? (Be = U.onEdgeDraw) == null || Be.call(
@@ -15256,25 +15256,25 @@ function $S(e) {
15256
15256
  ) : Math.max(
15257
15257
  Math.abs(R.clientX - F.startClient.x),
15258
15258
  Math.abs(R.clientY - F.startClient.y)
15259
- ) > TS && ((ne = U.onDrawIntoSpace) == null || ne.call(U, F.source, fe, F.sourceProperty, F.reverse));
15259
+ ) > TS && ((oe = U.onDrawIntoSpace) == null || oe.call(U, F.source, he, F.sourceProperty, F.reverse));
15260
15260
  break;
15261
15261
  }
15262
15262
  }
15263
15263
  }, tt = Xe(() => {
15264
15264
  var F;
15265
15265
  const R = ze.current, L = [...Ue.current.keys()];
15266
- R && R.kind !== "pinch" && L.push(R.pointerId), ze.current = null, Ue.current.clear(), xr(null), Ir(null);
15266
+ R && R.kind !== "pinch" && L.push(R.pointerId), ze.current = null, Ue.current.clear(), xr(null), Mr(null);
15267
15267
  for (const U of L)
15268
15268
  (F = _.current) != null && F.hasPointerCapture(U) && _.current.releasePointerCapture(U);
15269
15269
  }, []);
15270
- qe(() => {
15270
+ Le(() => {
15271
15271
  const R = (L) => {
15272
15272
  L.key === "Escape" && tt();
15273
15273
  };
15274
15274
  return window.addEventListener("keydown", R), window.addEventListener("blur", tt), () => {
15275
15275
  window.removeEventListener("keydown", R), window.removeEventListener("blur", tt), ze.current = null, Ue.current.clear();
15276
15276
  };
15277
- }, [tt]), qe(() => {
15277
+ }, [tt]), Le(() => {
15278
15278
  tt();
15279
15279
  }, [
15280
15280
  m,
@@ -15286,7 +15286,7 @@ function $S(e) {
15286
15286
  e.readOnly,
15287
15287
  tt
15288
15288
  ]);
15289
- const ov = Le(() => {
15289
+ const ov = Ne(() => {
15290
15290
  const R = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map();
15291
15291
  for (const F of O) {
15292
15292
  if (F.source !== F.target) continue;
@@ -15299,15 +15299,15 @@ function $S(e) {
15299
15299
  O,
15300
15300
  !!((Rl = e.edgeReveal) != null && Rl.revealNodes)
15301
15301
  );
15302
- $r(() => {
15302
+ Pr(() => {
15303
15303
  _.current && uo && i1(_.current);
15304
15304
  });
15305
- const fo = Lx(O, Z, co), av = e.onEdgeSelect, sv = e.onContainerSelect, kl = Me ? Me.target && Z(Me.target, Me.targetProperty) || {
15305
+ const fo = Lx(O, J, co), av = e.onEdgeSelect, sv = e.onContainerSelect, kl = Me ? Me.target && J(Me.target, Me.targetProperty) || {
15306
15306
  x: Me.point.x,
15307
15307
  y: Me.point.y,
15308
15308
  w: 1,
15309
15309
  h: 1
15310
- } : null, Al = Me ? Z(Me.source, Me.sourceProperty) : null, cv = [
15310
+ } : null, Al = Me ? J(Me.source, Me.sourceProperty) : null, cv = [
15311
15311
  "flow-sdk-canvas",
15312
15312
  m ? "flow-sdk-draw" : "",
15313
15313
  x ? "flow-sdk-perf" : ""
@@ -15338,7 +15338,7 @@ function $S(e) {
15338
15338
  {
15339
15339
  id: R,
15340
15340
  rect: L,
15341
- label: oe.get(R),
15341
+ label: ie.get(R),
15342
15342
  labelLayer: uo,
15343
15343
  style: g(R),
15344
15344
  onSelect: sv,
@@ -15349,10 +15349,10 @@ function $S(e) {
15349
15349
  );
15350
15350
  }) }),
15351
15351
  /* @__PURE__ */ b("g", { className: "flow-sdk-edges", children: Je && O.map((R) => {
15352
- var U, ie, be;
15352
+ var U, ne, be;
15353
15353
  if (!lo.ready.has(R.id) || S && (!S.has(R.source) || !S.has(R.target)))
15354
15354
  return null;
15355
- const L = Z(R.source, R.sourceProperty), F = Z(R.target, R.targetProperty);
15355
+ const L = J(R.source, R.sourceProperty), F = J(R.target, R.targetProperty);
15356
15356
  return !L || !F ? null : /* @__PURE__ */ b(
15357
15357
  id,
15358
15358
  {
@@ -15375,7 +15375,7 @@ function $S(e) {
15375
15375
  targetPort: j(R.target, R.targetProperty),
15376
15376
  dir: co,
15377
15377
  turn: ((U = fo.get(R.id)) == null ? void 0 : U.turn) ?? R.turn,
15378
- labelAtTarget: (ie = fo.get(R.id)) == null ? void 0 : ie.labelAtTarget,
15378
+ labelAtTarget: (ne = fo.get(R.id)) == null ? void 0 : ne.labelAtTarget,
15379
15379
  labelFraction: (be = fo.get(R.id)) == null ? void 0 : be.labelFraction,
15380
15380
  color: R.color,
15381
15381
  connectorColor: R.connectorColor,
@@ -15422,14 +15422,14 @@ function $S(e) {
15422
15422
  ) })
15423
15423
  ] }) }),
15424
15424
  /* @__PURE__ */ b("div", { ref: q, className: "flow-sdk-nodes", children: t.map((R) => {
15425
- var be, $e;
15426
- const L = X.get(R.id), F = We.get(R.id), U = (L == null ? void 0 : L.x) ?? (F ? (F.x1 + F.x2) / 2 : 0), ie = (L == null ? void 0 : L.y) ?? (F ? (F.y1 + F.y2) / 2 : 0);
15425
+ var be, qe;
15426
+ const L = X.get(R.id), F = We.get(R.id), U = (L == null ? void 0 : L.x) ?? (F ? (F.x1 + F.x2) / 2 : 0), ne = (L == null ? void 0 : L.y) ?? (F ? (F.y1 + F.y2) / 2 : 0);
15427
15427
  return /* @__PURE__ */ b(
15428
15428
  AS,
15429
15429
  {
15430
15430
  id: R.id,
15431
15431
  x: U,
15432
- y: ie,
15432
+ y: ne,
15433
15433
  placed: !!L || !!F,
15434
15434
  hidden: !lo.shown.has(R.id) || !At(R.id, r, i) || !!S && !S.has(R.id),
15435
15435
  onMount: Bt,
@@ -15448,7 +15448,7 @@ function $S(e) {
15448
15448
  animationWidth: R.animationWidth,
15449
15449
  animationVariant: R.animationVariant,
15450
15450
  width: (be = V.current.get(R.id)) == null ? void 0 : be.w,
15451
- height: ($e = V.current.get(R.id)) == null ? void 0 : $e.h,
15451
+ height: (qe = V.current.get(R.id)) == null ? void 0 : qe.h,
15452
15452
  propertyMode: E,
15453
15453
  resolvedRows: mr.get(R.id),
15454
15454
  reversePorts: n === "RL",
@@ -15614,7 +15614,7 @@ function FS({
15614
15614
  height: a
15615
15615
  }) {
15616
15616
  const { background: u, border: c, colorText: l } = nr(), { colorMode: d } = Ve(), f = ue(null), h = pt(), { data: g, schema: p, bindings: m } = Nr(Vr), w = i !== void 0 || !!(g && p && (m ? yn(m, e, p) : Nt(g, e, p)));
15617
- qe(() => {
15617
+ Le(() => {
15618
15618
  var x, v, C, S, E;
15619
15619
  !t || !w || !n ? (x = f.current) == null || x.close() : (v = f.current) != null && v.open || ((C = f.current) == null || C.showModal(), (E = (S = f.current) == null ? void 0 : S.querySelector("[data-form-filter] input")) == null || E.focus());
15620
15620
  }, [t, w, n]);
@@ -15709,7 +15709,7 @@ const Iy = ({
15709
15709
  ...i
15710
15710
  }) => {
15711
15711
  const { background: s, border: a, colorText: u } = nr();
15712
- return /* @__PURE__ */ b(Ne, { label: t, children: /* @__PURE__ */ b(sr, { children: /* @__PURE__ */ b(
15712
+ return /* @__PURE__ */ b($e, { label: t, children: /* @__PURE__ */ b(sr, { children: /* @__PURE__ */ b(
15713
15713
  Te,
15714
15714
  {
15715
15715
  as: e,
@@ -15727,7 +15727,7 @@ const Iy = ({
15727
15727
  onOpenView: o,
15728
15728
  editOnMount: i = !1
15729
15729
  }) => {
15730
- var $, X, ge, ye, H, J;
15730
+ var $, X, ye, fe, H, Z;
15731
15731
  const {
15732
15732
  selectedNodeIds: s,
15733
15733
  setSelectedNodeIds: a,
@@ -15753,7 +15753,7 @@ const Iy = ({
15753
15753
  }
15754
15754
  })(), ce = Xe(
15755
15755
  (G) => {
15756
- var ee, we, pe, He;
15756
+ var ee, we, ge, He;
15757
15757
  if (A || g.readOnly) return;
15758
15758
  const ae = {
15759
15759
  shiftKey: G.shiftKey,
@@ -15763,7 +15763,7 @@ const Iy = ({
15763
15763
  };
15764
15764
  if (u && (c(null), (ee = h.onEdgeDeselect) == null || ee.call(h)), l) {
15765
15765
  const K = s.includes(P), de = K ? s.filter((Ce) => Ce !== P) : [...s, P];
15766
- a(de), K ? (we = h.onNodeDeselect) == null || we.call(h) : (pe = h.onNodeSelect) == null || pe.call(h, P, e, ae);
15766
+ a(de), K ? (we = h.onNodeDeselect) == null || we.call(h) : (ge = h.onNodeSelect) == null || ge.call(h, P, e, ae);
15767
15767
  } else
15768
15768
  a([P]), (He = h.onNodeSelect) == null || He.call(h, P, e, ae);
15769
15769
  },
@@ -15784,7 +15784,7 @@ const Iy = ({
15784
15784
  A || g.readOnly || (G = h.onNodeDoubleClick) == null || G.call(h, P, e);
15785
15785
  }, [P, e, A, h, g]), Y = Xe(() => {
15786
15786
  S.current && clearTimeout(S.current), S.current = setTimeout(() => O(!0), 100);
15787
- }, []), he = Xe(() => {
15787
+ }, []), pe = Xe(() => {
15788
15788
  S.current && clearTimeout(S.current), O(!1);
15789
15789
  }, []), le = !!(($ = e == null ? void 0 : e.config) != null && $.form), N = {
15790
15790
  tabIndex: le ? 0 : void 0,
@@ -15820,7 +15820,7 @@ const Iy = ({
15820
15820
  onClick: ce,
15821
15821
  onDoubleClick: te,
15822
15822
  onMouseEnter: Y,
15823
- onMouseLeave: he,
15823
+ onMouseLeave: pe,
15824
15824
  cursor: "pointer",
15825
15825
  position: "relative",
15826
15826
  children: [
@@ -15836,7 +15836,7 @@ const Iy = ({
15836
15836
  height: "150px",
15837
15837
  pointerEvents: "auto",
15838
15838
  onMouseEnter: () => O(!0),
15839
- onMouseLeave: he
15839
+ onMouseLeave: pe
15840
15840
  }
15841
15841
  ),
15842
15842
  V ? /* @__PURE__ */ b(
@@ -15849,7 +15849,7 @@ const Iy = ({
15849
15849
  pointerEvents: "auto",
15850
15850
  transform: "translateX(-50%) scale3d(3, 3, 1)",
15851
15851
  onMouseEnter: () => O(!0),
15852
- onMouseLeave: he,
15852
+ onMouseLeave: pe,
15853
15853
  willChange: "transform",
15854
15854
  children: V({
15855
15855
  nodeId: P,
@@ -15876,7 +15876,7 @@ const Iy = ({
15876
15876
  transform: "translateX(-50%) scale3d(3, 3, 1)",
15877
15877
  boxShadow: "lg",
15878
15878
  onMouseEnter: () => O(!0),
15879
- onMouseLeave: he,
15879
+ onMouseLeave: pe,
15880
15880
  willChange: "transform",
15881
15881
  children: /* @__PURE__ */ b(an, { px: 2, gap: 2, children: T.map((G, ae) => /* @__PURE__ */ z(ke, { display: "contents", children: [
15882
15882
  ae > 0 && /* @__PURE__ */ b(
@@ -15921,7 +15921,7 @@ const Iy = ({
15921
15921
  onEditStart: () => M(!0),
15922
15922
  onEditEnd: () => M(!1)
15923
15923
  }),
15924
- I && !((ge = e == null ? void 0 : e.config) != null && ge.parentContainer) && ((ye = e == null ? void 0 : e.config) == null ? void 0 : ye.collapsed) !== void 0 && (() => {
15924
+ I && !((ye = e == null ? void 0 : e.config) != null && ye.parentContainer) && ((fe = e == null ? void 0 : e.config) == null ? void 0 : fe.collapsed) !== void 0 && (() => {
15925
15925
  var ee;
15926
15926
  const G = m === "TB" || m === "BT", ae = r || m === "RL";
15927
15927
  return /* @__PURE__ */ b(
@@ -15941,8 +15941,8 @@ const Iy = ({
15941
15941
  "aria-label": e.config.collapsed ? "Expand" : "Collapse",
15942
15942
  disabled: g.readOnly,
15943
15943
  onClick: (we) => {
15944
- var pe;
15945
- we.stopPropagation(), (pe = h.onNodeCollapse) == null || pe.call(h, P, !e.config.collapsed);
15944
+ var ge;
15945
+ we.stopPropagation(), (ge = h.onNodeCollapse) == null || ge.call(h, P, !e.config.collapsed);
15946
15946
  },
15947
15947
  bgColor: ve(
15948
15948
  ((ee = e == null ? void 0 : e.viewProps) == null ? void 0 : ee.bgColor) || p
@@ -15973,7 +15973,7 @@ const Iy = ({
15973
15973
  onClick: ce,
15974
15974
  onDoubleClick: te,
15975
15975
  onMouseEnter: Y,
15976
- onMouseLeave: he,
15976
+ onMouseLeave: pe,
15977
15977
  cursor: "pointer",
15978
15978
  transition: "transform 0.1s ease",
15979
15979
  position: "relative",
@@ -15991,7 +15991,7 @@ const Iy = ({
15991
15991
  height: "150px",
15992
15992
  pointerEvents: "auto",
15993
15993
  onMouseEnter: () => O(!0),
15994
- onMouseLeave: he
15994
+ onMouseLeave: pe
15995
15995
  }
15996
15996
  ),
15997
15997
  V ? /* @__PURE__ */ b(
@@ -16004,7 +16004,7 @@ const Iy = ({
16004
16004
  pointerEvents: "auto",
16005
16005
  transform: "translateX(-50%) scale3d(3, 3, 1)",
16006
16006
  onMouseEnter: () => O(!0),
16007
- onMouseLeave: he,
16007
+ onMouseLeave: pe,
16008
16008
  willChange: "transform",
16009
16009
  children: V({
16010
16010
  nodeId: P,
@@ -16031,7 +16031,7 @@ const Iy = ({
16031
16031
  transform: "translateX(-50%) scale3d(3, 3, 1)",
16032
16032
  boxShadow: "lg",
16033
16033
  onMouseEnter: () => O(!0),
16034
- onMouseLeave: he,
16034
+ onMouseLeave: pe,
16035
16035
  willChange: "transform",
16036
16036
  children: /* @__PURE__ */ b(an, { px: 2, gap: 2, children: T.map((G, ae) => /* @__PURE__ */ z(ke, { display: "contents", children: [
16037
16037
  ae > 0 && /* @__PURE__ */ b(
@@ -16068,9 +16068,9 @@ const Iy = ({
16068
16068
  )
16069
16069
  ] }),
16070
16070
  /* @__PURE__ */ z(ke, { position: "relative", display: "flex", h: "100%", w: "100%", children: [
16071
- I && !((H = e == null ? void 0 : e.config) != null && H.parentContainer) && ((J = e == null ? void 0 : e.config) == null ? void 0 : J.collapsed) !== void 0 && !n && (() => {
16072
- var we, pe, He;
16073
- const G = m === "TB" || m === "BT", ae = r || m === "RL", ee = (we = e == null ? void 0 : e.config) != null && we.labelBelow && w[P] !== "properties" ? ((((pe = e == null ? void 0 : e.viewProps) == null ? void 0 : pe.fontSize) || 1) * 100 + 100) / 2 : void 0;
16071
+ I && !((H = e == null ? void 0 : e.config) != null && H.parentContainer) && ((Z = e == null ? void 0 : e.config) == null ? void 0 : Z.collapsed) !== void 0 && !n && (() => {
16072
+ var we, ge, He;
16073
+ const G = m === "TB" || m === "BT", ae = r || m === "RL", ee = (we = e == null ? void 0 : e.config) != null && we.labelBelow && w[P] !== "properties" ? ((((ge = e == null ? void 0 : e.viewProps) == null ? void 0 : ge.fontSize) || 1) * 100 + 100) / 2 : void 0;
16074
16074
  return /* @__PURE__ */ b(
16075
16075
  $u,
16076
16076
  {
@@ -16128,7 +16128,7 @@ const Iy = ({
16128
16128
  }, Cl = gt(DS);
16129
16129
  function Zm(e = !0) {
16130
16130
  const t = ue(null);
16131
- return qe(() => {
16131
+ return Le(() => {
16132
16132
  if (!e || !t.current) return;
16133
16133
  const r = (i) => {
16134
16134
  i.stopPropagation();
@@ -16158,7 +16158,7 @@ const Nn = ({
16158
16158
  onEditEnd: u
16159
16159
  }) => {
16160
16160
  const { callbacks: c, config: l, readOnly: d } = Ve(), f = l.editable && !d, [h, g] = re(t), [p, m] = re(), w = ue(null), y = ue(!1), x = Zm(s);
16161
- qe(() => {
16161
+ Le(() => {
16162
16162
  s && (y.current = !1, w.current && (w.current.focus(), w.current.select()));
16163
16163
  }, [s]);
16164
16164
  const v = () => {
@@ -16169,7 +16169,7 @@ const Nn = ({
16169
16169
  C && C !== t && ((S = c.onNodeLabelChange) == null || S.call(c, e, C)), u();
16170
16170
  };
16171
16171
  return !f || !s ? /* @__PURE__ */ b(
16172
- qr,
16172
+ $r,
16173
16173
  {
16174
16174
  color: r,
16175
16175
  fontWeight: n,
@@ -16203,7 +16203,7 @@ const Nn = ({
16203
16203
  },
16204
16204
  children: [
16205
16205
  /* @__PURE__ */ b(
16206
- qr,
16206
+ $r,
16207
16207
  {
16208
16208
  as: "span",
16209
16209
  "aria-hidden": "true",
@@ -16397,7 +16397,7 @@ const VS = ({
16397
16397
  }
16398
16398
  ),
16399
16399
  typeof ((I = r.config) == null ? void 0 : I.subtitle) == "string" && r.config.subtitle !== "" && /* @__PURE__ */ b(
16400
- qr,
16400
+ $r,
16401
16401
  {
16402
16402
  "data-flow-node-subtitle": "",
16403
16403
  color: ve(
@@ -16489,7 +16489,7 @@ function Jm({
16489
16489
  top: "-24px",
16490
16490
  right: "-48px",
16491
16491
  "data-flow-content-toggle": "",
16492
- children: /* @__PURE__ */ b(Ne, { label: t, children: /* @__PURE__ */ b(
16492
+ children: /* @__PURE__ */ b($e, { label: t, children: /* @__PURE__ */ b(
16493
16493
  Se,
16494
16494
  {
16495
16495
  "aria-label": t,
@@ -16517,10 +16517,10 @@ function WS({
16517
16517
  color: r
16518
16518
  }) {
16519
16519
  const { callbacks: n, config: o, readOnly: i } = Ve(), s = !!o.editable && !i, [a, u] = re(!1), [c, l] = re(t), [d, f] = re(), h = ue(null), g = ue(!1), p = Zm(a);
16520
- $r(() => {
16520
+ Pr(() => {
16521
16521
  const y = h.current;
16522
16522
  !a || !y || (y.style.height = "auto", y.style.height = `${Math.max((d == null ? void 0 : d.height) ?? 0, y.scrollHeight)}px`);
16523
- }, [c, a, d]), qe(() => {
16523
+ }, [c, a, d]), Le(() => {
16524
16524
  var y;
16525
16525
  s ? a && (g.current = !1, (y = h.current) == null || y.focus()) : u(!1);
16526
16526
  }, [a, s]);
@@ -16753,7 +16753,7 @@ function JS({
16753
16753
  onEditEnd: l
16754
16754
  }
16755
16755
  ),
16756
- a && (t || m) && /* @__PURE__ */ b(ke, { ml: "auto", pl: 6, flexShrink: 0, "data-flow-content-toggle": "", children: /* @__PURE__ */ b(Ne, { label: w, children: /* @__PURE__ */ b(
16756
+ a && (t || m) && /* @__PURE__ */ b(ke, { ml: "auto", pl: 6, flexShrink: 0, "data-flow-content-toggle": "", children: /* @__PURE__ */ b($e, { label: w, children: /* @__PURE__ */ b(
16757
16757
  Se,
16758
16758
  {
16759
16759
  "aria-label": w,
@@ -16813,7 +16813,7 @@ function YS({
16813
16813
  borderRightColor: s.hexborderColor,
16814
16814
  borderRightWidth: S ? 0 : 1,
16815
16815
  children: /* @__PURE__ */ b(
16816
- qr,
16816
+ $r,
16817
16817
  {
16818
16818
  py: 5,
16819
16819
  px: 10,
@@ -16839,7 +16839,7 @@ function YS({
16839
16839
  w: Ym,
16840
16840
  maxH: 200,
16841
16841
  children: /* @__PURE__ */ b(
16842
- qr,
16842
+ $r,
16843
16843
  {
16844
16844
  overflow: "hidden",
16845
16845
  py: 3,
@@ -16942,8 +16942,8 @@ const Sl = (e) => {
16942
16942
  onExpand: () => f.restoreNodeView(e.data.id)
16943
16943
  }
16944
16944
  ) : /* @__PURE__ */ b(Cl, { ...e, data: { ...e.data, description: c }, children: ({ id: x, data: v, isActive: C, isEditing: S, onEditStart: E, onEditEnd: O }) => {
16945
- var B, ce, te, Y, he, le;
16946
- const A = GS(v, t, r), M = v.label ?? v.headerTitle, k = Object.entries(v.description || {}).length > 0, _ = ZS(v.description), P = (ce = (B = e.data) == null ? void 0 : B.config) == null ? void 0 : ce.icon, I = (Y = (te = e.data) == null ? void 0 : te.config) == null ? void 0 : Y.content, q = typeof I == "string" && !e.onShowIcon, T = ((he = v == null ? void 0 : v.viewProps) == null ? void 0 : he.borderRadius) ?? "53px", V = Mn(
16945
+ var B, ce, te, Y, pe, le;
16946
+ const A = GS(v, t, r), M = v.label ?? v.headerTitle, k = Object.entries(v.description || {}).length > 0, _ = ZS(v.description), P = (ce = (B = e.data) == null ? void 0 : B.config) == null ? void 0 : ce.icon, I = (Y = (te = e.data) == null ? void 0 : te.config) == null ? void 0 : Y.content, q = typeof I == "string" && !e.onShowIcon, T = ((pe = v == null ? void 0 : v.viewProps) == null ? void 0 : pe.borderRadius) ?? "53px", V = Mn(
16947
16947
  v == null ? void 0 : v.viewProps,
16948
16948
  A.hexborderColor,
16949
16949
  C,
@@ -17043,7 +17043,7 @@ const Xm = (e) => {
17043
17043
  const t = _l(), [r, n] = re(!1), o = t.getNodeViewMode(e.data.id) === "properties", i = (A) => {
17044
17044
  n(A), t.setNodeViewMode(e.data.id, A ? "properties" : "default");
17045
17045
  }, { callbacks: s, readOnly: a, selectedNodeIds: u } = Ve(), c = (p = (g = e.data) == null ? void 0 : g.config) == null ? void 0 : p.parentContainer, l = u.includes(e.data.id), d = ue(l);
17046
- qe(() => {
17046
+ Le(() => {
17047
17047
  var A, M;
17048
17048
  d.current && !l && o && ((M = (A = e.data) == null ? void 0 : A.config) != null && M.labelBelow) && !c && !a && i(!1), d.current = l;
17049
17049
  }, [l, o, (w = (m = e.data) == null ? void 0 : m.config) == null ? void 0 : w.labelBelow, c, a]);
@@ -17179,17 +17179,17 @@ const QS = {
17179
17179
  setIsEdgeHandlesEnabled: P,
17180
17180
  isArrayNodeMode: I
17181
17181
  } = Ve(), q = ue(null), [T, V] = re(null), B = e.length > 200;
17182
- qe(() => {
17182
+ Le(() => {
17183
17183
  C(B);
17184
17184
  }, [B, C]);
17185
- const { edgeSep: ce, rankSep: te, spacingFactor: Y } = Le(() => {
17185
+ const { edgeSep: ce, rankSep: te, spacingFactor: Y } = Ne(() => {
17186
17186
  const Q = Nx(e.length), j = n < 1 ? 0.3 + 0.7 * n : 0.5 + 0.5 * n;
17187
17187
  return {
17188
17188
  edgeSep: Q.edgeSep * j,
17189
17189
  rankSep: Q.rankSep * j,
17190
17190
  spacingFactor: 1.3 + (n - 1) * (n < 1 ? 0.4 : 0.3)
17191
17191
  };
17192
- }, [e.length, n]), { bgColor: he } = jn(r), {
17192
+ }, [e.length, n]), { bgColor: pe } = jn(r), {
17193
17193
  canvas: le,
17194
17194
  borderSecondary: N,
17195
17195
  colorText: D
@@ -17206,7 +17206,7 @@ const QS = {
17206
17206
  }
17207
17207
  },
17208
17208
  [r, W, N]
17209
- ), X = m.colorMode === "dark", ge = X ? ve("gray.500") : pn, ye = X ? he != null && he.includes("gray") ? "whitesmoke" : $(he) : ge, H = a ? $(a) : ge, J = Le(
17209
+ ), X = m.colorMode === "dark", ye = X ? ve("gray.500") : pn, fe = X ? pe != null && pe.includes("gray") ? "whitesmoke" : $(pe) : ye, H = a ? $(a) : ye, Z = Ne(
17210
17210
  () => m.initialViewport || { pan: { x: 0, y: 0 }, zoom: 0.01 },
17211
17211
  // eslint-disable-next-line react-hooks/exhaustive-deps
17212
17212
  []
@@ -17220,39 +17220,39 @@ const QS = {
17220
17220
  };
17221
17221
  },
17222
17222
  [h, r]
17223
- ), ee = Le(() => {
17223
+ ), ee = Ne(() => {
17224
17224
  var j;
17225
17225
  const Q = /* @__PURE__ */ new Map();
17226
- for (const Z of e) (j = Z.data) != null && j.id && Q.set(Z.data.id, Z);
17226
+ for (const J of e) (j = J.data) != null && j.id && Q.set(J.data.id, J);
17227
17227
  return Q;
17228
- }, [e]), we = Le(() => {
17228
+ }, [e]), we = Ne(() => {
17229
17229
  var j;
17230
17230
  const Q = /* @__PURE__ */ new Map();
17231
- for (const Z of t) (j = Z.data) != null && j.id && Q.set(Z.data.id, Z);
17231
+ for (const J of t) (j = J.data) != null && j.id && Q.set(J.data.id, J);
17232
17232
  return Q;
17233
- }, [t]), pe = Xe(
17233
+ }, [t]), ge = Xe(
17234
17234
  (Q) => {
17235
17235
  var Ie;
17236
- const j = (Ie = ee.get(Q)) == null ? void 0 : Ie.data, Z = ae(j == null ? void 0 : j.viewProps), Pe = ve(Z.bgColor);
17236
+ const j = (Ie = ee.get(Q)) == null ? void 0 : Ie.data, J = ae(j == null ? void 0 : j.viewProps), Pe = ve(J.bgColor);
17237
17237
  return {
17238
17238
  animated: !!(j != null && j.isNodeAnimated) && !B,
17239
17239
  animationVariant: j == null ? void 0 : j.nodeAnimationVariant,
17240
- animationColor: ve(Z.borderColor || r),
17241
- bgColor: Z.outline ? "transparent" : Pe,
17242
- bgOpacity: Z.bgOpacity,
17243
- borderColor: Z.borderColor ? ve(Z.borderColor) : Z.outline && Z.bgColor === "transparent" ? ve(r) : Pe,
17240
+ animationColor: ve(J.borderColor || r),
17241
+ bgColor: J.outline ? "transparent" : Pe,
17242
+ bgOpacity: J.bgOpacity,
17243
+ borderColor: J.borderColor ? ve(J.borderColor) : J.outline && J.bgColor === "transparent" ? ve(r) : Pe,
17244
17244
  borderWidth: fn(
17245
- Z.borderWidth,
17245
+ J.borderWidth,
17246
17246
  it.borderWidth
17247
17247
  ),
17248
- borderStyle: Z.borderStyle ?? it.borderStyle,
17249
- borderRadius: Z.borderRadius ?? it.borderRadius,
17250
- textColor: Z.textColor ? ve(Z.textColor) : Z.outline || Z.bgColor === "transparent" ? ve(D) : Pe,
17251
- fontSize: Z.fontSize ?? it.fontSize,
17252
- labelPosition: Z.labelPosition ?? it.labelPosition,
17248
+ borderStyle: J.borderStyle ?? it.borderStyle,
17249
+ borderRadius: J.borderRadius ?? it.borderRadius,
17250
+ textColor: J.textColor ? ve(J.textColor) : J.outline || J.bgColor === "transparent" ? ve(D) : Pe,
17251
+ fontSize: J.fontSize ?? it.fontSize,
17252
+ labelPosition: J.labelPosition ?? it.labelPosition,
17253
17253
  labelMargin: it.labelMargin,
17254
- labelBg: Ol($("dark"), Pe, Z.bgOpacity) ?? $("dark"),
17255
- padding: Z.padding ?? it.padding
17254
+ labelBg: Ol($("dark"), Pe, J.bgOpacity) ?? $("dark"),
17255
+ padding: J.padding ?? it.padding
17256
17256
  };
17257
17257
  },
17258
17258
  [
@@ -17263,11 +17263,11 @@ const QS = {
17263
17263
  B,
17264
17264
  $
17265
17265
  ]
17266
- ), He = Le(() => {
17267
- var Z, Pe;
17266
+ ), He = Ne(() => {
17267
+ var J, Pe;
17268
17268
  const Q = /* @__PURE__ */ new Map();
17269
17269
  for (const Ie of t) {
17270
- const Oe = (Z = Ie.data) == null ? void 0 : Z.source, ze = (Pe = Ie.data) == null ? void 0 : Pe.target;
17270
+ const Oe = (J = Ie.data) == null ? void 0 : J.source, ze = (Pe = Ie.data) == null ? void 0 : Pe.target;
17271
17271
  if (!Oe || !ze || Oe === ze) continue;
17272
17272
  const Ue = Oe < ze ? `${Oe}|${ze}` : `${ze}|${Oe}`, Qe = Q.get(Ue);
17273
17273
  Qe ? Qe.push({ id: Ie.data.id, source: Oe }) : Q.set(Ue, [{ id: Ie.data.id, source: Oe }]);
@@ -17276,28 +17276,28 @@ const QS = {
17276
17276
  for (const [Ie, Oe] of Q) {
17277
17277
  if (Oe.length < 2) continue;
17278
17278
  const ze = Ie.split("|")[0], Ue = Math.min(20, 70 / Oe.length);
17279
- Oe.forEach(({ id: Qe, source: Ze }, Ir) => {
17280
- const Me = 50 + (Ir - (Oe.length - 1) / 2) * Ue;
17279
+ Oe.forEach(({ id: Qe, source: Ze }, Mr) => {
17280
+ const Me = 50 + (Mr - (Oe.length - 1) / 2) * Ue;
17281
17281
  j.set(Qe, (Ze === ze ? Me : 100 - Me) / 100);
17282
17282
  });
17283
17283
  }
17284
17284
  return j;
17285
- }, [t]), K = Le(() => {
17285
+ }, [t]), K = Ne(() => {
17286
17286
  const Q = $("dark");
17287
17287
  return t.filter((j) => {
17288
- var Z;
17289
- return ((Z = j.data) == null ? void 0 : Z.id) && j.data.source && j.data.target;
17288
+ var J;
17289
+ return ((J = j.data) == null ? void 0 : J.id) && j.data.source && j.data.target;
17290
17290
  }).map(({ data: j }) => {
17291
- var Oe, ze, Ue, Qe, Ze, Ir;
17292
- let Z = Q;
17291
+ var Oe, ze, Ue, Qe, Ze, Mr;
17292
+ let J = Q;
17293
17293
  const Pe = (ze = (Oe = ee.get(j.source)) == null ? void 0 : Oe.data) == null ? void 0 : ze.parent, Ie = (Qe = (Ue = ee.get(j.target)) == null ? void 0 : Ue.data) == null ? void 0 : Qe.parent;
17294
17294
  if (Pe && Pe === Ie) {
17295
- const Me = ae((Ir = (Ze = ee.get(Pe)) == null ? void 0 : Ze.data) == null ? void 0 : Ir.viewProps), xr = Ol(
17295
+ const Me = ae((Mr = (Ze = ee.get(Pe)) == null ? void 0 : Ze.data) == null ? void 0 : Mr.viewProps), xr = Ol(
17296
17296
  Q,
17297
17297
  ve(Me.bgColor),
17298
17298
  Me.bgOpacity
17299
17299
  );
17300
- xr && (Z = xr);
17300
+ xr && (J = xr);
17301
17301
  }
17302
17302
  return {
17303
17303
  id: j.id,
@@ -17310,8 +17310,8 @@ const QS = {
17310
17310
  label: j.label,
17311
17311
  validationIssue: (l === "auto" || l === "properties") && (j.sourceProperty !== void 0 || j.targetProperty !== void 0) && f ? Tb(f, j) : void 0,
17312
17312
  color: a ? H : j.color ? ve(j.color) : H,
17313
- connectorColor: a ? H : j.color ? ve(j.color) : ye,
17314
- labelBg: Z,
17313
+ connectorColor: a ? H : j.color ? ve(j.color) : fe,
17314
+ labelBg: J,
17315
17315
  dashed: !!j.isEdgeDashed,
17316
17316
  animated: !!j.isEdgeAnimated,
17317
17317
  inverted: !!j.isInverted,
@@ -17321,7 +17321,7 @@ const QS = {
17321
17321
  }, [
17322
17322
  t,
17323
17323
  H,
17324
- ye,
17324
+ fe,
17325
17325
  a,
17326
17326
  He,
17327
17327
  m.edgeType,
@@ -17330,26 +17330,26 @@ const QS = {
17330
17330
  ee,
17331
17331
  ae,
17332
17332
  $
17333
- ]), de = Le(() => {
17333
+ ]), de = Ne(() => {
17334
17334
  var j;
17335
17335
  const Q = /* @__PURE__ */ new Set();
17336
- for (const Z of e)
17337
- (j = Z.data) != null && j.parent && Q.add(Z.data.parent);
17336
+ for (const J of e)
17337
+ (j = J.data) != null && j.parent && Q.add(J.data.parent);
17338
17338
  return Q;
17339
- }, [e]), Ce = Le(() => {
17339
+ }, [e]), Ce = Ne(() => {
17340
17340
  var j;
17341
17341
  const Q = /* @__PURE__ */ new Map();
17342
- for (const Z of t)
17343
- (j = Z.data) != null && j.source && !Q.has(Z.data.source) && Q.set(Z.data.source, Z.data);
17342
+ for (const J of t)
17343
+ (j = J.data) != null && j.source && !Q.has(J.data.source) && Q.set(J.data.source, J.data);
17344
17344
  return Q;
17345
- }, [t]), je = Le(() => {
17345
+ }, [t]), je = Ne(() => {
17346
17346
  const Q = { ...QS, ...m.customViews };
17347
17347
  return e.filter((j) => {
17348
- var Z;
17349
- return (Z = j.data) == null ? void 0 : Z.id;
17348
+ var J;
17349
+ return (J = j.data) == null ? void 0 : J.id;
17350
17350
  }).map((j) => {
17351
17351
  var ze, Ue, Qe, Ze;
17352
- const Z = de.has(j.data.id) && !j.data.parent, Pe = Z ? j.data.label ?? j.data.headerTitle ?? "Container" : void 0, Ie = Z ? Q.parentContainer : Q[j.data.type] || Q.text, Oe = Ce.get(j.data.id);
17352
+ const J = de.has(j.data.id) && !j.data.parent, Pe = J ? j.data.label ?? j.data.headerTitle ?? "Container" : void 0, Ie = J ? Q.parentContainer : Q[j.data.type] || Q.text, Oe = Ce.get(j.data.id);
17353
17353
  return {
17354
17354
  id: j.data.id,
17355
17355
  collapsed: (ze = j.data.config) == null ? void 0 : ze.collapsed,
@@ -17370,13 +17370,13 @@ const QS = {
17370
17370
  {
17371
17371
  ...j,
17372
17372
  isInverted: Oe == null ? void 0 : Oe.isInverted,
17373
- isParent: Z,
17373
+ isParent: J,
17374
17374
  key: `${j.data.id}-${r}`
17375
17375
  }
17376
17376
  )
17377
17377
  };
17378
17378
  });
17379
- }, [e, de, Ce, r, m.customViews]), Fe = Le(() => B ? 300 : e.length > 50 ? 150 : e.length > 20 ? 100 : 50, [e.length, B]), Je = ue(m);
17379
+ }, [e, de, Ce, r, m.customViews]), Fe = Ne(() => B ? 300 : e.length > 50 ? 150 : e.length > 20 ? 100 : 50, [e.length, B]), Je = ue(m);
17380
17380
  Je.current = m;
17381
17381
  const or = ue(S);
17382
17382
  or.current = S;
@@ -17393,8 +17393,8 @@ const QS = {
17393
17393
  const pr = ue(we);
17394
17394
  pr.current = we;
17395
17395
  const ir = ue(/* @__PURE__ */ new Map());
17396
- qe(() => {
17397
- var Z, Pe;
17396
+ Le(() => {
17397
+ var J, Pe;
17398
17398
  const Q = new Map(
17399
17399
  [...we].filter(
17400
17400
  ([, Ie]) => ee.has(Ie.data.source) && ee.has(Ie.data.target)
@@ -17402,15 +17402,15 @@ const QS = {
17402
17402
  ), j = ir.current;
17403
17403
  ir.current = Q;
17404
17404
  for (const [Ie, Oe] of j)
17405
- Q.has(Ie) || (_e.current === Ie && (v(null), (Z = p.onEdgeDeselect) == null || Z.call(p)), (Pe = p.onEdgeRemove) == null || Pe.call(p, Ie, Oe.data));
17406
- }, [we, ee, p, v]), qe(() => {
17405
+ Q.has(Ie) || (_e.current === Ie && (v(null), (J = p.onEdgeDeselect) == null || J.call(p)), (Pe = p.onEdgeRemove) == null || Pe.call(p, Ie, Oe.data));
17406
+ }, [we, ee, p, v]), Le(() => {
17407
17407
  const Q = q.current;
17408
17408
  if (!T || !Q) return;
17409
- let j = null, Z = null, Pe = 0, Ie = 0, Oe = 0, ze = 0, Ue = 0;
17409
+ let j = null, J = null, Pe = 0, Ie = 0, Oe = 0, ze = 0, Ue = 0;
17410
17410
  const Qe = (Ze) => {
17411
17411
  if (Je.current.readOnly) return;
17412
- Ze.preventDefault(), Ze.stopPropagation(), or.current || Ze.metaKey || Ze.ctrlKey ? (Oe += Ze.deltaY, ze = Ze.clientX, Ue = Ze.clientY, Z === null && (Z = requestAnimationFrame(() => {
17413
- Z = null;
17412
+ Ze.preventDefault(), Ze.stopPropagation(), or.current || Ze.metaKey || Ze.ctrlKey ? (Oe += Ze.deltaY, ze = Ze.clientX, Ue = Ze.clientY, J === null && (J = requestAnimationFrame(() => {
17413
+ J = null;
17414
17414
  const Me = Je.current, xr = T.zoom(), Ur = Oe;
17415
17415
  Oe = 0;
17416
17416
  let jr = xr - Ur * 0.05 / 100;
@@ -17433,16 +17433,16 @@ const QS = {
17433
17433
  })));
17434
17434
  };
17435
17435
  return Q.addEventListener("wheel", Qe, { passive: !1 }), () => {
17436
- Q.removeEventListener("wheel", Qe), j !== null && cancelAnimationFrame(j), Z !== null && cancelAnimationFrame(Z);
17436
+ Q.removeEventListener("wheel", Qe), j !== null && cancelAnimationFrame(j), J !== null && cancelAnimationFrame(J);
17437
17437
  };
17438
- }, [T]), qe(() => {
17438
+ }, [T]), Le(() => {
17439
17439
  if (m.disableKeyboardShortcuts) return;
17440
17440
  const Q = (j) => {
17441
17441
  var Pe, Ie, Oe, ze;
17442
17442
  if (Je.current.readOnly) return;
17443
- const Z = j.target;
17444
- if (!(Z.tagName === "INPUT" || Z.tagName === "TEXTAREA" || Z.isContentEditable)) {
17445
- if ((j.key === "z" || j.key === "Z") && E(!or.current), (j.key === "m" || j.key === "M") && A(!O), (j.key === "d" || j.key === "D") && k(!M), (j.key === "v" || j.key === "V") && !j.repeat && !j.metaKey && !j.ctrlKey && !j.altKey && Z.tagName !== "SELECT" && P(!_), (j.key === "Delete" || j.key === "Backspace") && _e.current) {
17443
+ const J = j.target;
17444
+ if (!(J.tagName === "INPUT" || J.tagName === "TEXTAREA" || J.isContentEditable)) {
17445
+ if ((j.key === "z" || j.key === "Z") && E(!or.current), (j.key === "m" || j.key === "M") && A(!O), (j.key === "d" || j.key === "D") && k(!M), (j.key === "v" || j.key === "V") && !j.repeat && !j.metaKey && !j.ctrlKey && !j.altKey && J.tagName !== "SELECT" && P(!_), (j.key === "Delete" || j.key === "Backspace") && _e.current) {
17446
17446
  j.preventDefault();
17447
17447
  const Ue = _e.current;
17448
17448
  (Ie = p.onEdgeDelete) == null || Ie.call(
@@ -17492,8 +17492,8 @@ const QS = {
17492
17492
  [p]
17493
17493
  ), Ct = Xe(
17494
17494
  (Q) => {
17495
- var Z, Pe, Ie;
17496
- const j = ((Z = pr.current.get(Q)) == null ? void 0 : Z.data) ?? { id: Q };
17495
+ var J, Pe, Ie;
17496
+ const j = ((J = pr.current.get(Q)) == null ? void 0 : J.data) ?? { id: Q };
17497
17497
  if (_e.current === Q && Ye.current) {
17498
17498
  v(null), (Pe = p.onEdgeDeselect) == null || Pe.call(p);
17499
17499
  return;
@@ -17502,15 +17502,15 @@ const QS = {
17502
17502
  },
17503
17503
  [p, v, y]
17504
17504
  ), br = Xe(() => {
17505
- var Q, j, Z;
17506
- s(!0), (Q = p.onBackgroundClick) == null || Q.call(p), xe.current.length && (y([]), (j = p.onNodeDeselect) == null || j.call(p)), _e.current && (v(null), (Z = p.onEdgeDeselect) == null || Z.call(p));
17505
+ var Q, j, J;
17506
+ s(!0), (Q = p.onBackgroundClick) == null || Q.call(p), xe.current.length && (y([]), (j = p.onNodeDeselect) == null || j.call(p)), _e.current && (v(null), (J = p.onEdgeDeselect) == null || J.call(p));
17507
17507
  }, [p, y, v, s]), Bt = Xe(
17508
17508
  (Q) => {
17509
17509
  var Pe, Ie;
17510
- const j = xe.current, Z = Q.filter((Oe) => !j.includes(Oe));
17511
- if (Z.length) {
17512
- y([...j, ...Z]);
17513
- for (const Oe of Z)
17510
+ const j = xe.current, J = Q.filter((Oe) => !j.includes(Oe));
17511
+ if (J.length) {
17512
+ y([...j, ...J]);
17513
+ for (const Oe of J)
17514
17514
  (Ie = p.onNodeSelect) == null || Ie.call(
17515
17515
  p,
17516
17516
  Oe,
@@ -17519,32 +17519,32 @@ const QS = {
17519
17519
  }
17520
17520
  },
17521
17521
  [p, y]
17522
- ), oe = Xe(
17522
+ ), ie = Xe(
17523
17523
  (Q, j) => {
17524
- var Z, Pe;
17524
+ var J, Pe;
17525
17525
  y([Q]), (Pe = p.onNodeSelect) == null || Pe.call(
17526
17526
  p,
17527
17527
  Q,
17528
- ((Z = tr.current.get(Q)) == null ? void 0 : Z.data) ?? { id: Q },
17528
+ ((J = tr.current.get(Q)) == null ? void 0 : J.data) ?? { id: Q },
17529
17529
  j
17530
17530
  );
17531
17531
  },
17532
17532
  [p, y]
17533
17533
  ), We = Xe(
17534
- (Q, j, Z) => {
17534
+ (Q, j, J) => {
17535
17535
  var Pe;
17536
- return (Pe = p.onEdgeCreate) == null ? void 0 : Pe.call(p, Q, j, Z);
17536
+ return (Pe = p.onEdgeCreate) == null ? void 0 : Pe.call(p, Q, j, J);
17537
17537
  },
17538
17538
  [p]
17539
17539
  ), rr = Xe(
17540
- (Q, j, Z, Pe = !1) => {
17540
+ (Q, j, J, Pe = !1) => {
17541
17541
  var Ie, Oe;
17542
17542
  l === "properties" && ((Ie = p.onNodeCreateRequest) == null ? void 0 : Ie.call(p, {
17543
17543
  sourceNodeId: Q,
17544
17544
  position: j,
17545
- sourceProperty: Z,
17545
+ sourceProperty: J,
17546
17546
  reverse: Pe
17547
- })) === !0 || Z !== void 0 || Pe || (Oe = p.onNodeCreate) == null || Oe.call(p, {
17547
+ })) === !0 || J !== void 0 || Pe || (Oe = p.onNodeCreate) == null || Oe.call(p, {
17548
17548
  type: "text",
17549
17549
  sourceNodeId: Q,
17550
17550
  position: j,
@@ -17575,8 +17575,8 @@ const QS = {
17575
17575
  direction: G,
17576
17576
  nodeAlignment: c,
17577
17577
  onContainerCollapse: (Q) => {
17578
- var j, Z;
17579
- (j = p.onNodeCollapse) == null || j.call(p, Q, !0), (Z = p.onNodeViewToggle) == null || Z.call(p, Q);
17578
+ var j, J;
17579
+ (j = p.onNodeCollapse) == null || j.call(p, Q, !0), (J = p.onNodeViewToggle) == null || J.call(p, Q);
17580
17580
  },
17581
17581
  selectedNodeIds: w,
17582
17582
  edgeMode: l,
@@ -17593,11 +17593,11 @@ const QS = {
17593
17593
  isPerformanceMode: B,
17594
17594
  minZoom: m.minZoom ?? 0.01,
17595
17595
  maxZoom: m.maxZoom ?? 1.5,
17596
- initialViewport: J,
17596
+ initialViewport: Z,
17597
17597
  fitOnInit: !m.initialViewport,
17598
17598
  readOnly: !!m.readOnly,
17599
- containerStyle: pe,
17600
- lineColor: a ? H : ye,
17599
+ containerStyle: ge,
17600
+ lineColor: a ? H : fe,
17601
17601
  drawMode: Ge,
17602
17602
  drawHandles: !m.readOnly && m.edgeHandles !== !1,
17603
17603
  dragMode: M,
@@ -17609,7 +17609,7 @@ const QS = {
17609
17609
  onBackgroundTap: br,
17610
17610
  onBoxSelect: Bt,
17611
17611
  onEdgeSelect: Ct,
17612
- onContainerSelect: oe,
17612
+ onContainerSelect: ie,
17613
17613
  onEdgeDraw: We,
17614
17614
  onDrawIntoSpace: rr
17615
17615
  }
@@ -17631,13 +17631,13 @@ function wE({
17631
17631
  ...r
17632
17632
  }) {
17633
17633
  var u, c;
17634
- const [n, o] = re(null), i = Le(
17634
+ const [n, o] = re(null), i = Ne(
17635
17635
  () => !!(n != null && n.json) && !!r.json && kx(n.json, r.json),
17636
17636
  [n == null ? void 0 : n.json, r.json]
17637
17637
  ), s = n === null || n.json !== r.json && !i, a = e || s;
17638
- return qe(() => {
17638
+ return Le(() => {
17639
17639
  !e && i && (n == null ? void 0 : n.json) !== r.json && o(r);
17640
- }, [e, i, n == null ? void 0 : n.json, r.json]), qe(() => {
17640
+ }, [e, i, n == null ? void 0 : n.json, r.json]), Le(() => {
17641
17641
  if (e || !s) return;
17642
17642
  let l;
17643
17643
  const d = requestAnimationFrame(() => {
@@ -17707,16 +17707,16 @@ function aE({
17707
17707
  children: l
17708
17708
  }) {
17709
17709
  iE();
17710
- const [d, f] = re(), [h, g] = re(!1), p = i.formSchema ?? d, m = Le(
17710
+ const [d, f] = re(), [h, g] = re(!1), p = i.formSchema ?? d, m = Ne(
17711
17711
  () => t && r ? nx(t, r.state) : t,
17712
17712
  [t, r == null ? void 0 : r.state]
17713
- ), w = i.direction === "C", y = Le(() => {
17713
+ ), w = i.direction === "C", y = Ne(() => {
17714
17714
  let k, _;
17715
17715
  return (P) => (_ = k && _ ? Ax(k, P, _) ?? Gl(P, { title: e, isCenter: w }) : Gl(P, { title: e, isCenter: w }), k = P, _);
17716
- }, [e, w]), x = Le(
17716
+ }, [e, w]), x = Ne(
17717
17717
  () => m ? y(m) : null,
17718
17718
  [m, y]
17719
- ), v = Le(
17719
+ ), v = Ne(
17720
17720
  () => r != null && r.structured && !h && p ? lx(
17721
17721
  r.state,
17722
17722
  r.bindings,
@@ -17732,12 +17732,12 @@ function aE({
17732
17732
  x,
17733
17733
  n
17734
17734
  ]
17735
- ), C = (v == null ? void 0 : v.schema) ?? p, S = (v == null ? void 0 : v.bindings) ?? (r == null ? void 0 : r.bindings), E = Le(() => [
17735
+ ), C = (v == null ? void 0 : v.schema) ?? p, S = (v == null ? void 0 : v.bindings) ?? (r == null ? void 0 : r.bindings), E = Ne(() => [
17736
17736
  ...(x == null ? void 0 : x.nodes) ?? n ?? [],
17737
17737
  ...(v == null ? void 0 : v.nodes) ?? []
17738
17738
  ].map((_) => {
17739
- var ce, te, Y, he;
17740
- const P = t ? (ce = Ae(t, _.data.id)) == null ? void 0 : ce.$view : (te = _.data.config) == null ? void 0 : te.typeView, I = P && On.includes(P) ? P : void 0, q = I ? I === "icon-label" : (Y = _.data.config) == null ? void 0 : Y.labelBelow, T = I === "object" ? "objectView" : I === "text" ? "text" : q ? "arrayView" : _.data.type, V = C && (r ? yn(S, _.data.id, C) : t && Nt(t, _.data.id, C)), B = (((he = _.data.config) == null ? void 0 : he.ports) ?? []).map((le) => ({
17739
+ var ce, te, Y, pe;
17740
+ const P = t ? (ce = Ae(t, _.data.id)) == null ? void 0 : ce.$view : (te = _.data.config) == null ? void 0 : te.typeView, I = P && On.includes(P) ? P : void 0, q = I ? I === "icon-label" : (Y = _.data.config) == null ? void 0 : Y.labelBelow, T = I === "object" ? "objectView" : I === "text" ? "text" : q ? "arrayView" : _.data.type, V = C && (r ? yn(S, _.data.id, C) : t && Nt(t, _.data.id, C)), B = (((pe = _.data.config) == null ? void 0 : pe.ports) ?? []).map((le) => ({
17741
17741
  ...le
17742
17742
  }));
17743
17743
  if (v && V) {
@@ -17805,7 +17805,7 @@ function aE({
17805
17805
  ]), O = [
17806
17806
  ...(x == null ? void 0 : x.edges) ?? o ?? [],
17807
17807
  ...(v == null ? void 0 : v.edges) ?? []
17808
- ], A = Le(() => {
17808
+ ], A = Ne(() => {
17809
17809
  const k = t && x ? Ox(
17810
17810
  t,
17811
17811
  x.edges,
@@ -17833,7 +17833,7 @@ function aE({
17833
17833
  g(_), (P = k.onAllNodesIconLabelChange) == null || P.call(k, _);
17834
17834
  }
17835
17835
  };
17836
- }, [t, x, s, p, v]), M = Le(() => {
17836
+ }, [t, x, s, p, v]), M = Ne(() => {
17837
17837
  if (!r) return A;
17838
17838
  let k = r.state;
17839
17839
  const _ = (I) => {
@@ -17868,11 +17868,11 @@ function aE({
17868
17868
  }), !0) : ((B = A.onNodeCreateRequest) == null ? void 0 : B.call(A, I)) ?? !1;
17869
17869
  },
17870
17870
  onNodeDelete: (I, q) => {
17871
- var Y, he;
17871
+ var Y, pe;
17872
17872
  if (!(v != null && v.nodes.some((le) => le.data.id === I)))
17873
17873
  return (Y = A.onNodeDelete) == null ? void 0 : Y.call(A, I, q);
17874
17874
  const T = v && [...v.slots.values()].find((le) => le.nodeId === I);
17875
- if (!T) return (he = A.onNodeDelete) == null ? void 0 : he.call(A, I, q);
17875
+ if (!T) return (pe = A.onNodeDelete) == null ? void 0 : pe.call(A, I, q);
17876
17876
  const V = T.address.split("."), B = V.pop(), ce = V.join("."), te = Ae(k, ce);
17877
17877
  _(
17878
17878
  Array.isArray(te) ? {
@@ -17911,9 +17911,9 @@ function aE({
17911
17911
  ) || (te = A.onEdgeCreate) == null || te.call(A, I, q, T);
17912
17912
  },
17913
17913
  onEdgeDelete: (I, q) => {
17914
- var he;
17914
+ var pe;
17915
17915
  const T = v == null ? void 0 : v.edges.find((le) => le.data.id === I);
17916
- if (!T) return (he = A.onEdgeDelete) == null ? void 0 : he.call(A, I, q);
17916
+ if (!T) return (pe = A.onEdgeDelete) == null ? void 0 : pe.call(A, I, q);
17917
17917
  const V = v.slots.get(
17918
17918
  Ht(T.data.target, T.data.targetProperty.slice(7))
17919
17919
  ), B = V.address.split("."), ce = B.pop(), te = B.join("."), Y = Ae(k, te);
@@ -18251,8 +18251,8 @@ export {
18251
18251
  Se as ToolbarIconButton,
18252
18252
  Nw as ToolbarRangeInput,
18253
18253
  wx as ToolbarScrollContainer,
18254
- Pr as ToolbarSelect,
18255
- Ne as ToolbarTooltip,
18254
+ Or as ToolbarSelect,
18255
+ $e as ToolbarTooltip,
18256
18256
  Iy as TooltipIconButton,
18257
18257
  _x as WorkflowControls,
18258
18258
  Ab as addChild,
@@ -18273,7 +18273,7 @@ export {
18273
18273
  qu as createJsonStream,
18274
18274
  mx as downloadSvg,
18275
18275
  bx as exportSvg,
18276
- Mr as formValueError,
18276
+ qr as formValueError,
18277
18277
  ve as getChakraColorHex,
18278
18278
  Xv as getColorVariant,
18279
18279
  Lu as getDarkerHexColor,