@devtable/dashboard 8.44.0 → 8.44.1

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.
@@ -40,7 +40,7 @@ import { Prism as ui } from "@mantine/prism";
40
40
  import { useVirtual as E_ } from "react-virtual";
41
41
  import Mo from "axios";
42
42
  import Rm from "crypto-js";
43
- import { types as R, getParent as yo, getRoot as Tn, cast as Si, addDisposer as fa, addMiddleware as k_, getType as T_, isAlive as Yf, flow as ea, toGenerator as ta, detach as M_, clone as O_, getSnapshot as gr, applySnapshot as zn, getParentOfType as Xf, castToSnapshot as Dm } from "mobx-state-tree";
43
+ import { types as O, getParent as yo, getRoot as Tn, cast as Si, addDisposer as fa, addMiddleware as k_, getType as T_, isAlive as Yf, flow as ea, toGenerator as ta, detach as M_, clone as O_, getSnapshot as gr, applySnapshot as zn, getParentOfType as Xf, castToSnapshot as Dm } from "mobx-state-tree";
44
44
  import R_ from "jszip";
45
45
  function Am(e, t) {
46
46
  ue(() => {
@@ -230,10 +230,10 @@ function P_() {
230
230
  Ne.unshift("Warning: " + re), Function.prototype.apply.call(console[z], console, Ne);
231
231
  }
232
232
  }
233
- var x = !1, S = !1, k = !1, O = !1, L = !1, H;
233
+ var x = !1, S = !1, k = !1, R = !1, L = !1, H;
234
234
  H = Symbol.for("react.module.reference");
235
235
  function A(z) {
236
- return !!(typeof z == "string" || typeof z == "function" || z === r || z === i || L || z === o || z === u || z === d || O || z === p || x || S || k || typeof z == "object" && z !== null && (z.$$typeof === h || z.$$typeof === f || z.$$typeof === a || z.$$typeof === l || z.$$typeof === c || z.$$typeof === H || z.getModuleId !== void 0));
236
+ return !!(typeof z == "string" || typeof z == "function" || z === r || z === i || L || z === o || z === u || z === d || R || z === p || x || S || k || typeof z == "object" && z !== null && (z.$$typeof === h || z.$$typeof === f || z.$$typeof === a || z.$$typeof === l || z.$$typeof === c || z.$$typeof === H || z.getModuleId !== void 0));
237
237
  }
238
238
  function T(z, re, ne) {
239
239
  var be = z.displayName;
@@ -2416,7 +2416,7 @@ function uC() {
2416
2416
  }
2417
2417
  }
2418
2418
  }
2419
- var S = c, k = u, O = l, L = a, H = t, A = d, T = r, P = g, V = p, E = n, N = i, $ = o, M = f, B = !1;
2419
+ var S = c, k = u, R = l, L = a, H = t, A = d, T = r, P = g, V = p, E = n, N = i, $ = o, M = f, B = !1;
2420
2420
  function j(J) {
2421
2421
  return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), G(J) || x(J) === c;
2422
2422
  }
@@ -2456,7 +2456,7 @@ function uC() {
2456
2456
  function Te(J) {
2457
2457
  return x(J) === f;
2458
2458
  }
2459
- Tt.AsyncMode = S, Tt.ConcurrentMode = k, Tt.ContextConsumer = O, Tt.ContextProvider = L, Tt.Element = H, Tt.ForwardRef = A, Tt.Fragment = T, Tt.Lazy = P, Tt.Memo = V, Tt.Portal = E, Tt.Profiler = N, Tt.StrictMode = $, Tt.Suspense = M, Tt.isAsyncMode = j, Tt.isConcurrentMode = G, Tt.isContextConsumer = U, Tt.isContextProvider = oe, Tt.isElement = ae, Tt.isForwardRef = Q, Tt.isFragment = te, Tt.isLazy = me, Tt.isMemo = ge, Tt.isPortal = he, Tt.isProfiler = de, Tt.isStrictMode = Oe, Tt.isSuspense = Te, Tt.isValidElementType = _, Tt.typeOf = x;
2459
+ Tt.AsyncMode = S, Tt.ConcurrentMode = k, Tt.ContextConsumer = R, Tt.ContextProvider = L, Tt.Element = H, Tt.ForwardRef = A, Tt.Fragment = T, Tt.Lazy = P, Tt.Memo = V, Tt.Portal = E, Tt.Profiler = N, Tt.StrictMode = $, Tt.Suspense = M, Tt.isAsyncMode = j, Tt.isConcurrentMode = G, Tt.isContextConsumer = U, Tt.isContextProvider = oe, Tt.isElement = ae, Tt.isForwardRef = Q, Tt.isFragment = te, Tt.isLazy = me, Tt.isMemo = ge, Tt.isPortal = he, Tt.isProfiler = de, Tt.isStrictMode = Oe, Tt.isSuspense = Te, Tt.isValidElementType = _, Tt.typeOf = x;
2460
2460
  }()), Tt;
2461
2461
  }
2462
2462
  (function(e) {
@@ -3201,10 +3201,10 @@ function r1(e) {
3201
3201
  }, [d, r]), h = C.useRef(e);
3202
3202
  h.current = e;
3203
3203
  var p = C.useCallback(function(g) {
3204
- var m = h.current, b = m.onResize, y = m.data, w = g.getBoundingClientRect(), _ = w.width, x = w.height, S = g.offsetWidth, k = g.offsetHeight, O = Math.floor(_), L = Math.floor(x);
3205
- if (c.current.width !== O || c.current.height !== L || c.current.offsetWidth !== S || c.current.offsetHeight !== k) {
3204
+ var m = h.current, b = m.onResize, y = m.data, w = g.getBoundingClientRect(), _ = w.width, x = w.height, S = g.offsetWidth, k = g.offsetHeight, R = Math.floor(_), L = Math.floor(x);
3205
+ if (c.current.width !== R || c.current.height !== L || c.current.offsetWidth !== S || c.current.offsetHeight !== k) {
3206
3206
  var H = {
3207
- width: O,
3207
+ width: R,
3208
3208
  height: L,
3209
3209
  offsetWidth: S,
3210
3210
  offsetHeight: k
@@ -3265,7 +3265,7 @@ function a1(e, t) {
3265
3265
  });
3266
3266
  var k = {};
3267
3267
  w && (k["aria-hidden"] = !0);
3268
- var O = /* @__PURE__ */ s(b, {
3268
+ var R = /* @__PURE__ */ s(b, {
3269
3269
  className: Mt(!r && n, d),
3270
3270
  style: Zo(Zo({}, S), f),
3271
3271
  ...k,
@@ -3273,14 +3273,14 @@ function a1(e, t) {
3273
3273
  ref: t,
3274
3274
  children: x
3275
3275
  });
3276
- return a && (O = /* @__PURE__ */ s(wl, {
3276
+ return a && (R = /* @__PURE__ */ s(wl, {
3277
3277
  onResize: function(H) {
3278
3278
  var A = H.offsetWidth;
3279
3279
  _(A);
3280
3280
  },
3281
3281
  disabled: l,
3282
- children: O
3283
- })), O;
3282
+ children: R
3283
+ })), R;
3284
3284
  }
3285
3285
  var ra = /* @__PURE__ */ C.forwardRef(a1);
3286
3286
  ra.displayName = "Item";
@@ -3359,7 +3359,7 @@ function h1(e) {
3359
3359
  return "+ ".concat(e.length, " ...");
3360
3360
  }
3361
3361
  function p1(e, t) {
3362
- var n = e.prefixCls, r = n === void 0 ? "rc-overflow" : n, o = e.data, i = o === void 0 ? [] : o, a = e.renderItem, l = e.renderRawItem, c = e.itemKey, u = e.itemWidth, d = u === void 0 ? 10 : u, f = e.ssr, h = e.style, p = e.className, g = e.maxCount, m = e.renderRest, b = e.renderRawRest, y = e.suffix, w = e.component, _ = w === void 0 ? "div" : w, x = e.itemComponent, S = e.onVisibleChange, k = na(e, f1), O = s1(), L = f === "full", H = O(null), A = $r(H, 2), T = A[0], P = A[1], V = T || 0, E = O(/* @__PURE__ */ new Map()), N = $r(E, 2), $ = N[0], M = N[1], B = O(0), j = $r(B, 2), G = j[0], U = j[1], oe = O(0), ae = $r(oe, 2), Q = ae[0], te = ae[1], me = O(0), ge = $r(me, 2), he = ge[0], de = ge[1], Oe = ze(null), Te = $r(Oe, 2), J = Te[0], se = Te[1], Re = ze(null), X = $r(Re, 2), Me = X[0], _e = X[1], $e = C.useMemo(function() {
3362
+ var n = e.prefixCls, r = n === void 0 ? "rc-overflow" : n, o = e.data, i = o === void 0 ? [] : o, a = e.renderItem, l = e.renderRawItem, c = e.itemKey, u = e.itemWidth, d = u === void 0 ? 10 : u, f = e.ssr, h = e.style, p = e.className, g = e.maxCount, m = e.renderRest, b = e.renderRawRest, y = e.suffix, w = e.component, _ = w === void 0 ? "div" : w, x = e.itemComponent, S = e.onVisibleChange, k = na(e, f1), R = s1(), L = f === "full", H = R(null), A = $r(H, 2), T = A[0], P = A[1], V = T || 0, E = R(/* @__PURE__ */ new Map()), N = $r(E, 2), $ = N[0], M = N[1], B = R(0), j = $r(B, 2), G = j[0], U = j[1], oe = R(0), ae = $r(oe, 2), Q = ae[0], te = ae[1], me = R(0), ge = $r(me, 2), he = ge[0], de = ge[1], Oe = ze(null), Te = $r(Oe, 2), J = Te[0], se = Te[1], Re = ze(null), X = $r(Re, 2), Me = X[0], _e = X[1], $e = C.useMemo(function() {
3363
3363
  return Me === null && L ? Number.MAX_SAFE_INTEGER : Me || 0;
3364
3364
  }, [Me, T]), Le = ze(!1), we = $r(Le, 2), et = we[0], je = we[1], at = "".concat(r, "-item"), Pe = Math.max(G, Q), Xe = g === kv, Ge = i.length && Xe, qe = g === Tv, wt = Ge || typeof g == "number" && i.length > g, pt = Y(function() {
3365
3365
  var le = i;
@@ -3521,7 +3521,7 @@ var zs = function(t) {
3521
3521
  })
3522
3522
  });
3523
3523
  }, g1 = function(t, n) {
3524
- var r, o, i = t.prefixCls, a = t.id, l = t.inputElement, c = t.disabled, u = t.tabIndex, d = t.autoFocus, f = t.autoComplete, h = t.editable, p = t.activeDescendantId, g = t.value, m = t.maxLength, b = t.onKeyDown, y = t.onMouseDown, w = t.onChange, _ = t.onPaste, x = t.onCompositionStart, S = t.onCompositionEnd, k = t.open, O = t.attrs, L = l || /* @__PURE__ */ s("input", {}), H = L, A = H.ref, T = H.props, P = T.onKeyDown, V = T.onChange, E = T.onMouseDown, N = T.onCompositionStart, $ = T.onCompositionEnd, M = T.style;
3524
+ var r, o, i = t.prefixCls, a = t.id, l = t.inputElement, c = t.disabled, u = t.tabIndex, d = t.autoFocus, f = t.autoComplete, h = t.editable, p = t.activeDescendantId, g = t.value, m = t.maxLength, b = t.onKeyDown, y = t.onMouseDown, w = t.onChange, _ = t.onPaste, x = t.onCompositionStart, S = t.onCompositionEnd, k = t.open, R = t.attrs, L = l || /* @__PURE__ */ s("input", {}), H = L, A = H.ref, T = H.props, P = T.onKeyDown, V = T.onChange, E = T.onMouseDown, N = T.onCompositionStart, $ = T.onCompositionEnd, M = T.style;
3525
3525
  return $s(!("maxLength" in L.props), "Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."), L = /* @__PURE__ */ C.cloneElement(L, Jt(Jt(Jt({
3526
3526
  type: "search"
3527
3527
  }, T), {}, {
@@ -3539,7 +3539,7 @@ var zs = function(t) {
3539
3539
  "aria-autocomplete": "list",
3540
3540
  "aria-controls": "".concat(a, "_list"),
3541
3541
  "aria-activedescendant": p
3542
- }, O), {}, {
3542
+ }, R), {}, {
3543
3543
  value: h ? g : "",
3544
3544
  maxLength: m,
3545
3545
  readOnly: !h,
@@ -3592,7 +3592,7 @@ var bh = function(t) {
3592
3592
  }, w1 = function(t) {
3593
3593
  var n = t.id, r = t.prefixCls, o = t.values, i = t.open, a = t.searchValue, l = t.autoClearSearchValue, c = t.inputRef, u = t.placeholder, d = t.disabled, f = t.mode, h = t.showSearch, p = t.autoFocus, g = t.autoComplete, m = t.activeDescendantId, b = t.tabIndex, y = t.removeIcon, w = t.maxTagCount, _ = t.maxTagTextLength, x = t.maxTagPlaceholder, S = x === void 0 ? function(se) {
3594
3594
  return "+ ".concat(se.length, " ...");
3595
- } : x, k = t.tagRender, O = t.onToggleOpen, L = t.onRemove, H = t.onInputChange, A = t.onInputPaste, T = t.onInputKeyDown, P = t.onInputMouseDown, V = t.onInputCompositionStart, E = t.onInputCompositionEnd, N = C.useRef(null), $ = ze(0), M = sn($, 2), B = M[0], j = M[1], G = ze(!1), U = sn(G, 2), oe = U[0], ae = U[1], Q = "".concat(r, "-selection"), te = i || f === "multiple" && l === !1 || f === "tags" ? a : "", me = f === "tags" || f === "multiple" && l === !1 || h && (i || oe);
3595
+ } : x, k = t.tagRender, R = t.onToggleOpen, L = t.onRemove, H = t.onInputChange, A = t.onInputPaste, T = t.onInputKeyDown, P = t.onInputMouseDown, V = t.onInputCompositionStart, E = t.onInputCompositionEnd, N = C.useRef(null), $ = ze(0), M = sn($, 2), B = M[0], j = M[1], G = ze(!1), U = sn(G, 2), oe = U[0], ae = U[1], Q = "".concat(r, "-selection"), te = i || f === "multiple" && l === !1 || f === "tags" ? a : "", me = f === "tags" || f === "multiple" && l === !1 || h && (i || oe);
3596
3596
  b1(function() {
3597
3597
  j(N.current.scrollWidth);
3598
3598
  }, [te]);
@@ -3614,7 +3614,7 @@ var bh = function(t) {
3614
3614
  }
3615
3615
  function he(se, Re, X, Me, _e) {
3616
3616
  var $e = function(we) {
3617
- bh(we), O(!i);
3617
+ bh(we), R(!i);
3618
3618
  };
3619
3619
  return /* @__PURE__ */ s("span", {
3620
3620
  onMouseDown: $e,
@@ -3697,7 +3697,7 @@ var bh = function(t) {
3697
3697
  })]
3698
3698
  });
3699
3699
  }, _1 = function(t) {
3700
- var n = t.inputElement, r = t.prefixCls, o = t.id, i = t.inputRef, a = t.disabled, l = t.autoFocus, c = t.autoComplete, u = t.activeDescendantId, d = t.mode, f = t.open, h = t.values, p = t.placeholder, g = t.tabIndex, m = t.showSearch, b = t.searchValue, y = t.activeValue, w = t.maxLength, _ = t.onInputKeyDown, x = t.onInputMouseDown, S = t.onInputChange, k = t.onInputPaste, O = t.onInputCompositionStart, L = t.onInputCompositionEnd, H = C.useState(!1), A = sn(H, 2), T = A[0], P = A[1], V = d === "combobox", E = V || m, N = h[0], $ = b || "";
3700
+ var n = t.inputElement, r = t.prefixCls, o = t.id, i = t.inputRef, a = t.disabled, l = t.autoFocus, c = t.autoComplete, u = t.activeDescendantId, d = t.mode, f = t.open, h = t.values, p = t.placeholder, g = t.tabIndex, m = t.showSearch, b = t.searchValue, y = t.activeValue, w = t.maxLength, _ = t.onInputKeyDown, x = t.onInputMouseDown, S = t.onInputChange, k = t.onInputPaste, R = t.onInputCompositionStart, L = t.onInputCompositionEnd, H = C.useState(!1), A = sn(H, 2), T = A[0], P = A[1], V = d === "combobox", E = V || m, N = h[0], $ = b || "";
3701
3701
  V && y && !T && ($ = y), C.useEffect(function() {
3702
3702
  V && P(!1);
3703
3703
  }, [V, y]);
@@ -3734,7 +3734,7 @@ var bh = function(t) {
3734
3734
  P(!0), S(U);
3735
3735
  },
3736
3736
  onPaste: k,
3737
- onCompositionStart: O,
3737
+ onCompositionStart: R,
3738
3738
  onCompositionEnd: L,
3739
3739
  tabIndex: g,
3740
3740
  attrs: fi(t, !0),
@@ -3793,19 +3793,19 @@ var C1 = function(t, n) {
3793
3793
  (B === ce.UP || B === ce.DOWN) && M.preventDefault(), g && g(M), B === ce.ENTER && l === "tags" && !o.current && !a && (h == null || h(M.target.value)), S1(B) && p(!0);
3794
3794
  }, S = function() {
3795
3795
  _(!0);
3796
- }, k = Ee(null), O = function(M) {
3796
+ }, k = Ee(null), R = function(M) {
3797
3797
  f(M, !0, o.current) !== !1 && p(!0);
3798
3798
  }, L = function() {
3799
3799
  o.current = !0;
3800
3800
  }, H = function(M) {
3801
- o.current = !1, l !== "combobox" && O(M.target.value);
3801
+ o.current = !1, l !== "combobox" && R(M.target.value);
3802
3802
  }, A = function(M) {
3803
3803
  var B = M.target.value;
3804
3804
  if (u && k.current && /[\r\n]/.test(k.current)) {
3805
3805
  var j = k.current.replace(/[\r\n]+$/, "").replace(/\r\n/g, " ").replace(/[\r\n]/g, " ");
3806
3806
  B = B.replace(j, k.current);
3807
3807
  }
3808
- k.current = null, O(B);
3808
+ k.current = null, R(B);
3809
3809
  }, T = function(M) {
3810
3810
  var B = M.clipboardData, j = B.getData("text");
3811
3811
  k.current = j;
@@ -4203,7 +4203,7 @@ const U1 = function(e, t) {
4203
4203
  }, []), [i, o];
4204
4204
  };
4205
4205
  function X1(e, t, n, r) {
4206
- var o = r.motionEnter, i = o === void 0 ? !0 : o, a = r.motionAppear, l = a === void 0 ? !0 : a, c = r.motionLeave, u = c === void 0 ? !0 : c, d = r.motionDeadline, f = r.motionLeaveImmediately, h = r.onAppearPrepare, p = r.onEnterPrepare, g = r.onLeavePrepare, m = r.onAppearStart, b = r.onEnterStart, y = r.onLeaveStart, w = r.onAppearActive, _ = r.onEnterActive, x = r.onLeaveActive, S = r.onAppearEnd, k = r.onEnterEnd, O = r.onLeaveEnd, L = r.onVisibleChanged, H = so(), A = to(H, 2), T = A[0], P = A[1], V = so(Xo), E = to(V, 2), N = E[0], $ = E[1], M = so(null), B = to(M, 2), j = B[0], G = B[1], U = Ee(!1), oe = Ee(null);
4206
+ var o = r.motionEnter, i = o === void 0 ? !0 : o, a = r.motionAppear, l = a === void 0 ? !0 : a, c = r.motionLeave, u = c === void 0 ? !0 : c, d = r.motionDeadline, f = r.motionLeaveImmediately, h = r.onAppearPrepare, p = r.onEnterPrepare, g = r.onLeavePrepare, m = r.onAppearStart, b = r.onEnterStart, y = r.onLeaveStart, w = r.onAppearActive, _ = r.onEnterActive, x = r.onLeaveActive, S = r.onAppearEnd, k = r.onEnterEnd, R = r.onLeaveEnd, L = r.onVisibleChanged, H = so(), A = to(H, 2), T = A[0], P = A[1], V = so(Xo), E = to(V, 2), N = E[0], $ = E[1], M = so(null), B = to(M, 2), j = B[0], G = B[1], U = Ee(!1), oe = Ee(null);
4207
4207
  function ae() {
4208
4208
  return n();
4209
4209
  }
@@ -4212,7 +4212,7 @@ function X1(e, t, n, r) {
4212
4212
  var $e = ae();
4213
4213
  if (!(_e && !_e.deadline && _e.target !== $e)) {
4214
4214
  var Le = Q.current, we;
4215
- N === es && Le ? we = S == null ? void 0 : S($e, _e) : N === ts && Le ? we = k == null ? void 0 : k($e, _e) : N === ns && Le && (we = O == null ? void 0 : O($e, _e)), N !== Xo && Le && we !== !1 && ($(Xo, !0), G(null, !0));
4215
+ N === es && Le ? we = S == null ? void 0 : S($e, _e) : N === ts && Le ? we = k == null ? void 0 : k($e, _e) : N === ns && Le && (we = R == null ? void 0 : R($e, _e)), N !== Xo && Le && we !== !1 && ($(Xo, !0), G(null, !0));
4216
4216
  }
4217
4217
  }
4218
4218
  var me = Y1(te), ge = to(me, 1), he = ge[0], de = C.useMemo(function() {
@@ -4367,7 +4367,7 @@ function iE(e) {
4367
4367
  return null;
4368
4368
  }
4369
4369
  }
4370
- var _ = X1(m, l, w, o), x = to(_, 4), S = x[0], k = x[1], O = x[2], L = x[3], H = C.useRef(L);
4370
+ var _ = X1(m, l, w, o), x = to(_, 4), S = x[0], k = x[1], R = x[2], L = x[3], H = C.useRef(L);
4371
4371
  L && (H.current = !0);
4372
4372
  var A = C.useCallback(function(M) {
4373
4373
  b.current = M, cv(i, M);
@@ -4388,7 +4388,7 @@ function iE(e) {
4388
4388
  var V, E;
4389
4389
  k === Pr ? E = "prepare" : Lv(k) ? E = "active" : k === Jo && (E = "start"), T = f(pr(pr({}, P), {}, {
4390
4390
  className: Mt(kh(h, S), (V = {}, Un(V, kh(h, "".concat(S, "-").concat(E)), E), Un(V, h, typeof h == "string"), V)),
4391
- style: O
4391
+ style: R
4392
4392
  }), A);
4393
4393
  }
4394
4394
  if (/* @__PURE__ */ C.isValidElement(T) && sd(T)) {
@@ -5008,8 +5008,8 @@ function qv(e, t, n, r) {
5008
5008
  var x = is(o, /[tb]/gi, {
5009
5009
  t: "b",
5010
5010
  b: "t"
5011
- }), S = as(i, 1), k = as(a, 1), O = os(p, t, x, S, k);
5012
- IE(O, p, h) || (d = 1, o = x, i = S, a = k);
5011
+ }), S = as(i, 1), k = as(a, 1), R = os(p, t, x, S, k);
5012
+ IE(R, p, h) || (d = 1, o = x, i = S, a = k);
5013
5013
  }
5014
5014
  d && (g = os(p, t, o, i, a), Je.mix(m, g));
5015
5015
  var L = Hh(g, p, h), H = Bh(g, p, h);
@@ -5682,8 +5682,8 @@ var pD = function(t, n) {
5682
5682
  var r = t.children, o = t.disabled, i = t.target, a = t.align, l = t.onAlign, c = t.monitorWindowResize, u = t.monitorBufferTime, d = u === void 0 ? 0 : u, f = Z.useRef({}), h = Z.useRef(), p = Z.Children.only(r), g = Z.useRef({});
5683
5683
  g.current.disabled = o, g.current.target = i, g.current.align = a, g.current.onAlign = l;
5684
5684
  var m = hD(function() {
5685
- var k = g.current, O = k.disabled, L = k.target, H = k.align, A = k.onAlign;
5686
- if (!O && L) {
5685
+ var k = g.current, R = k.disabled, L = k.target, H = k.align, A = k.onAlign;
5686
+ if (!R && L) {
5687
5687
  var T = h.current, P, V = yp(L), E = bp(L);
5688
5688
  f.current.element = V, f.current.point = E, f.current.align = H;
5689
5689
  var N = document, $ = N.activeElement;
@@ -5698,8 +5698,8 @@ var pD = function(t, n) {
5698
5698
  }
5699
5699
  });
5700
5700
  Z.useEffect(function() {
5701
- var k = yp(i), O = bp(i);
5702
- h.current !== x.current.element && (x.current.cancel(), x.current.element = h.current, x.current.cancel = vp(h.current, y)), (f.current.element !== k || !dD(f.current.point, O) || !uD(f.current.align, a)) && (y(), _.current.element !== k && (_.current.cancel(), _.current.element = k, _.current.cancel = vp(k, y)));
5701
+ var k = yp(i), R = bp(i);
5702
+ h.current !== x.current.element && (x.current.cancel(), x.current.element = h.current, x.current.cancel = vp(h.current, y)), (f.current.element !== k || !dD(f.current.point, R) || !uD(f.current.align, a)) && (y(), _.current.element !== k && (_.current.cancel(), _.current.element = k, _.current.cancel = vp(k, y)));
5703
5703
  }), Z.useEffect(function() {
5704
5704
  o ? w() : y();
5705
5705
  }, [o]);
@@ -5743,7 +5743,7 @@ function cu() {
5743
5743
  };
5744
5744
  }
5745
5745
  function c(A, T, P, V) {
5746
- var E = T && T.prototype instanceof f ? T : f, N = Object.create(E.prototype), $ = new O(V || []);
5746
+ var E = T && T.prototype instanceof f ? T : f, N = Object.create(E.prototype), $ = new R(V || []);
5747
5747
  return N._invoke = function(M, B, j) {
5748
5748
  var G = "suspendedStart";
5749
5749
  return function(U, oe) {
@@ -5875,7 +5875,7 @@ function cu() {
5875
5875
  var T = A.completion || {};
5876
5876
  T.type = "normal", delete T.arg, A.completion = T;
5877
5877
  }
5878
- function O(A) {
5878
+ function R(A) {
5879
5879
  this.tryEntries = [{
5880
5880
  tryLoc: "root"
5881
5881
  }], A.forEach(S, this), this.reset(!0);
@@ -5940,8 +5940,8 @@ function cu() {
5940
5940
  }
5941
5941
  return V.done = !0, V;
5942
5942
  };
5943
- }, e.values = L, O.prototype = {
5944
- constructor: O,
5943
+ }, e.values = L, R.prototype = {
5944
+ constructor: R,
5945
5945
  reset: function(T) {
5946
5946
  if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(k), !T)
5947
5947
  for (var P in this)
@@ -6126,7 +6126,7 @@ const mD = function(e, t) {
6126
6126
  return [a, i];
6127
6127
  };
6128
6128
  var ly = /* @__PURE__ */ C.forwardRef(function(e, t) {
6129
- var n = e.visible, r = e.prefixCls, o = e.className, i = e.style, a = e.children, l = e.zIndex, c = e.stretch, u = e.destroyPopupOnHide, d = e.forceRender, f = e.align, h = e.point, p = e.getRootDomNode, g = e.getClassNameFromAlign, m = e.onAlign, b = e.onMouseEnter, y = e.onMouseLeave, w = e.onMouseDown, _ = e.onTouchStart, x = e.onClick, S = Ee(), k = Ee(), O = ze(), L = ir(O, 2), H = L[0], A = L[1], T = vD(c), P = ir(T, 2), V = P[0], E = P[1];
6129
+ var n = e.visible, r = e.prefixCls, o = e.className, i = e.style, a = e.children, l = e.zIndex, c = e.stretch, u = e.destroyPopupOnHide, d = e.forceRender, f = e.align, h = e.point, p = e.getRootDomNode, g = e.getClassNameFromAlign, m = e.onAlign, b = e.onMouseEnter, y = e.onMouseLeave, w = e.onMouseDown, _ = e.onTouchStart, x = e.onClick, S = Ee(), k = Ee(), R = ze(), L = ir(R, 2), H = L[0], A = L[1], T = vD(c), P = ir(T, 2), V = P[0], E = P[1];
6130
6130
  function N() {
6131
6131
  c && E(p());
6132
6132
  }
@@ -6355,7 +6355,7 @@ function _D(e) {
6355
6355
  var u = [], d = a.props, f = d.popupPlacement, h = d.builtinPlacements, p = d.prefixCls, g = d.alignPoint, m = d.getPopupClassNameFromAlign;
6356
6356
  return f && h && u.push(P1(h, p, c, g)), m && u.push(m(c)), u.join(" ");
6357
6357
  }), lt(ut(a), "getComponent", function() {
6358
- var c = a.props, u = c.prefixCls, d = c.destroyPopupOnHide, f = c.popupClassName, h = c.onPopupAlign, p = c.popupMotion, g = c.popupAnimation, m = c.popupTransitionName, b = c.popupStyle, y = c.mask, w = c.maskAnimation, _ = c.maskTransitionName, x = c.maskMotion, S = c.zIndex, k = c.popup, O = c.stretch, L = c.alignPoint, H = c.mobile, A = c.forceRender, T = c.onPopupClick, P = a.state, V = P.popupVisible, E = P.point, N = a.getPopupAlign(), $ = {};
6358
+ var c = a.props, u = c.prefixCls, d = c.destroyPopupOnHide, f = c.popupClassName, h = c.onPopupAlign, p = c.popupMotion, g = c.popupAnimation, m = c.popupTransitionName, b = c.popupStyle, y = c.mask, w = c.maskAnimation, _ = c.maskTransitionName, x = c.maskMotion, S = c.zIndex, k = c.popup, R = c.stretch, L = c.alignPoint, H = c.mobile, A = c.forceRender, T = c.onPopupClick, P = a.state, V = P.popupVisible, E = P.point, N = a.getPopupAlign(), $ = {};
6359
6359
  return a.isMouseEnterToShow() && ($.onMouseEnter = a.onPopupMouseEnter), a.isMouseLeaveToHide() && ($.onMouseLeave = a.onPopupMouseLeave), $.onMouseDown = a.onPopupMouseDown, $.onTouchStart = a.onPopupMouseDown, /* @__PURE__ */ s(uy, {
6360
6360
  prefixCls: u,
6361
6361
  destroyPopupOnHide: d,
@@ -6367,7 +6367,7 @@ function _D(e) {
6367
6367
  animation: g,
6368
6368
  getClassNameFromAlign: a.getPopupClassNameFromAlign,
6369
6369
  ...$,
6370
- stretch: O,
6370
+ stretch: R,
6371
6371
  getRootDomNode: a.getRootDomNode,
6372
6372
  style: b,
6373
6373
  mask: y,
@@ -6653,7 +6653,7 @@ var CD = ["prefixCls", "disabled", "visible", "children", "popupElement", "conta
6653
6653
  }, kD = function(t, n) {
6654
6654
  var r = t.prefixCls;
6655
6655
  t.disabled;
6656
- var o = t.visible, i = t.children, a = t.popupElement, l = t.containerWidth, c = t.animation, u = t.transitionName, d = t.dropdownStyle, f = t.dropdownClassName, h = t.direction, p = h === void 0 ? "ltr" : h, g = t.placement, m = t.dropdownMatchSelectWidth, b = t.dropdownRender, y = t.dropdownAlign, w = t.getPopupContainer, _ = t.empty, x = t.getTriggerDOMNode, S = t.onPopupVisibleChange, k = t.onPopupMouseEnter, O = Ei(t, CD), L = "".concat(r, "-dropdown"), H = a;
6656
+ var o = t.visible, i = t.children, a = t.popupElement, l = t.containerWidth, c = t.animation, u = t.transitionName, d = t.dropdownStyle, f = t.dropdownClassName, h = t.direction, p = h === void 0 ? "ltr" : h, g = t.placement, m = t.dropdownMatchSelectWidth, b = t.dropdownRender, y = t.dropdownAlign, w = t.getPopupContainer, _ = t.empty, x = t.getTriggerDOMNode, S = t.onPopupVisibleChange, k = t.onPopupMouseEnter, R = Ei(t, CD), L = "".concat(r, "-dropdown"), H = a;
6657
6657
  b && (H = b(a));
6658
6658
  var A = C.useMemo(function() {
6659
6659
  return ED(m);
@@ -6669,7 +6669,7 @@ var CD = ["prefixCls", "disabled", "visible", "children", "popupElement", "conta
6669
6669
  minWidth: l
6670
6670
  }, d);
6671
6671
  return typeof m == "number" ? V.width = m : m && (V.width = l), /* @__PURE__ */ s(SD, {
6672
- ...O,
6672
+ ...R,
6673
6673
  showAction: S ? ["click"] : [],
6674
6674
  hideAction: S ? ["click"] : [],
6675
6675
  popupPlacement: g || (p === "rtl" ? "bottomRight" : "bottomLeft"),
@@ -6765,7 +6765,7 @@ function Ks(e) {
6765
6765
  return e === "tags" || e === "multiple";
6766
6766
  }
6767
6767
  var xd = /* @__PURE__ */ C.forwardRef(function(e, t) {
6768
- var n, r, o = e.id, i = e.prefixCls, a = e.className, l = e.showSearch, c = e.tagRender, u = e.direction, d = e.omitDomProps, f = e.displayValues, h = e.onDisplayValuesChange, p = e.emptyOptions, g = e.notFoundContent, m = g === void 0 ? "Not Found" : g, b = e.onClear, y = e.mode, w = e.disabled, _ = e.loading, x = e.getInputElement, S = e.getRawInputElement, k = e.open, O = e.defaultOpen, L = e.onDropdownVisibleChange, H = e.activeValue, A = e.onActiveValueChange, T = e.activeDescendantId, P = e.searchValue, V = e.autoClearSearchValue, E = e.onSearch, N = e.onSearchSplit, $ = e.tokenSeparators, M = e.allowClear, B = e.showArrow, j = e.inputIcon, G = e.clearIcon, U = e.OptionList, oe = e.animation, ae = e.transitionName, Q = e.dropdownStyle, te = e.dropdownClassName, me = e.dropdownMatchSelectWidth, ge = e.dropdownRender, he = e.dropdownAlign, de = e.placement, Oe = e.getPopupContainer, Te = e.showAction, J = Te === void 0 ? [] : Te, se = e.onFocus, Re = e.onBlur, X = e.onKeyUp, Me = e.onKeyDown, _e = e.onMouseDown, $e = Ei(e, RD), Le = Ks(y), we = (l !== void 0 ? l : Le) || y === "combobox", et = Jt({}, $e);
6768
+ var n, r, o = e.id, i = e.prefixCls, a = e.className, l = e.showSearch, c = e.tagRender, u = e.direction, d = e.omitDomProps, f = e.displayValues, h = e.onDisplayValuesChange, p = e.emptyOptions, g = e.notFoundContent, m = g === void 0 ? "Not Found" : g, b = e.onClear, y = e.mode, w = e.disabled, _ = e.loading, x = e.getInputElement, S = e.getRawInputElement, k = e.open, R = e.defaultOpen, L = e.onDropdownVisibleChange, H = e.activeValue, A = e.onActiveValueChange, T = e.activeDescendantId, P = e.searchValue, V = e.autoClearSearchValue, E = e.onSearch, N = e.onSearchSplit, $ = e.tokenSeparators, M = e.allowClear, B = e.showArrow, j = e.inputIcon, G = e.clearIcon, U = e.OptionList, oe = e.animation, ae = e.transitionName, Q = e.dropdownStyle, te = e.dropdownClassName, me = e.dropdownMatchSelectWidth, ge = e.dropdownRender, he = e.dropdownAlign, de = e.placement, Oe = e.getPopupContainer, Te = e.showAction, J = Te === void 0 ? [] : Te, se = e.onFocus, Re = e.onBlur, X = e.onKeyUp, Me = e.onKeyDown, _e = e.onMouseDown, $e = Ei(e, RD), Le = Ks(y), we = (l !== void 0 ? l : Le) || y === "combobox", et = Jt({}, $e);
6769
6769
  DD.forEach(function(it) {
6770
6770
  delete et[it];
6771
6771
  }), d == null || d.forEach(function(it) {
@@ -6794,7 +6794,7 @@ var xd = /* @__PURE__ */ C.forwardRef(function(e, t) {
6794
6794
  var Qe = (it = f[0]) === null || it === void 0 ? void 0 : it.value;
6795
6795
  return typeof Qe == "string" || typeof Qe == "number" ? String(Qe) : "";
6796
6796
  }, [P, y, f]), qt = y === "combobox" && typeof x == "function" && x() || null, St = typeof S == "function" && S(), dn = dC(qe, St == null || (n = St.props) === null || n === void 0 ? void 0 : n.ref), Ut = ha(void 0, {
6797
- defaultValue: O,
6797
+ defaultValue: R,
6798
6798
  value: k
6799
6799
  }), Rt = sn(Ut, 2), Ht = Rt[0], pn = Rt[1], Et = Ht, Nn = !m && p;
6800
6800
  (w || Nn && Et && y === "combobox") && (Et = !1);
@@ -7593,23 +7593,23 @@ function oA(e, t, n, r, o, i, a, l) {
7593
7593
  if (!(b < 0 || !e.current)) {
7594
7594
  var w = e.current.clientHeight, _ = !1, x = y;
7595
7595
  if (w) {
7596
- for (var S = y || f, k = 0, O = 0, L = 0, H = Math.min(t.length, d), A = 0; A <= H; A += 1) {
7596
+ for (var S = y || f, k = 0, R = 0, L = 0, H = Math.min(t.length, d), A = 0; A <= H; A += 1) {
7597
7597
  var T = o(t[A]);
7598
- O = k;
7598
+ R = k;
7599
7599
  var P = n.get(T);
7600
- L = O + (P === void 0 ? r : P), k = L, A === d && P === void 0 && (_ = !0);
7600
+ L = R + (P === void 0 ? r : P), k = L, A === d && P === void 0 && (_ = !0);
7601
7601
  }
7602
7602
  var V = null;
7603
7603
  switch (S) {
7604
7604
  case "top":
7605
- V = O - p;
7605
+ V = R - p;
7606
7606
  break;
7607
7607
  case "bottom":
7608
7608
  V = L - w + p;
7609
7609
  break;
7610
7610
  default: {
7611
7611
  var E = e.current.scrollTop, N = E + w;
7612
- O < E ? x = "top" : L > N && (x = "bottom");
7612
+ R < E ? x = "top" : L > N && (x = "bottom");
7613
7613
  }
7614
7614
  }
7615
7615
  V !== null && V !== e.current.scrollTop && a(V);
@@ -7715,7 +7715,7 @@ var dA = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style
7715
7715
  overflowAnchor: "none"
7716
7716
  };
7717
7717
  function pA(e, t) {
7718
- var n = e.prefixCls, r = n === void 0 ? "rc-virtual-list" : n, o = e.className, i = e.height, a = e.itemHeight, l = e.fullHeight, c = l === void 0 ? !0 : l, u = e.style, d = e.data, f = e.children, h = e.itemKey, p = e.virtual, g = e.component, m = g === void 0 ? "div" : g, b = e.onScroll, y = e.onVisibleChange, w = GD(e, dA), _ = !!(p !== !1 && i && a), x = _ && d && a * d.length > i, S = ze(0), k = no(S, 2), O = k[0], L = k[1], H = ze(!1), A = no(H, 2), T = A[0], P = A[1], V = Mt(r, o), E = d || fA, N = Ee(), $ = Ee(), M = Ee(), B = C.useCallback(function(De) {
7718
+ var n = e.prefixCls, r = n === void 0 ? "rc-virtual-list" : n, o = e.className, i = e.height, a = e.itemHeight, l = e.fullHeight, c = l === void 0 ? !0 : l, u = e.style, d = e.data, f = e.children, h = e.itemKey, p = e.virtual, g = e.component, m = g === void 0 ? "div" : g, b = e.onScroll, y = e.onVisibleChange, w = GD(e, dA), _ = !!(p !== !1 && i && a), x = _ && d && a * d.length > i, S = ze(0), k = no(S, 2), R = k[0], L = k[1], H = ze(!1), A = no(H, 2), T = A[0], P = A[1], V = Mt(r, o), E = d || fA, N = Ee(), $ = Ee(), M = Ee(), B = C.useCallback(function(De) {
7719
7719
  return typeof h == "function" ? h(De) : De == null ? void 0 : De[h];
7720
7720
  }, [h]), j = {
7721
7721
  getKey: B
@@ -7752,7 +7752,7 @@ function pA(e, t) {
7752
7752
  }
7753
7753
  for (var Ke = 0, ct, jt, xt, qt = E.length, St = 0; St < qt; St += 1) {
7754
7754
  var dn = E[St], Ut = B(dn), Rt = Oe.get(Ut), Ht = Ke + (Rt === void 0 ? a : Rt);
7755
- Ht >= O && ct === void 0 && (ct = St, jt = Ke), Ht > O + i && xt === void 0 && (xt = St), Ke = Ht;
7755
+ Ht >= R && ct === void 0 && (ct = St, jt = Ke), Ht > R + i && xt === void 0 && (xt = St), Ke = Ht;
7756
7756
  }
7757
7757
  return ct === void 0 && (ct = 0, jt = 0, xt = Math.ceil(i / a)), xt === void 0 && (xt = E.length - 1), xt = Math.min(xt + 1, E.length), {
7758
7758
  scrollHeight: Ke,
@@ -7760,7 +7760,7 @@ function pA(e, t) {
7760
7760
  end: xt,
7761
7761
  offset: jt
7762
7762
  };
7763
- }, [x, _, O, E, Te, i]), se = J.scrollHeight, Re = J.start, X = J.end, Me = J.offset;
7763
+ }, [x, _, R, E, Te, i]), se = J.scrollHeight, Re = J.start, X = J.end, Me = J.offset;
7764
7764
  U.current.start = Re, U.current.end = X;
7765
7765
  var _e = se - i, $e = Ee(_e);
7766
7766
  $e.current = _e;
@@ -7768,14 +7768,14 @@ function pA(e, t) {
7768
7768
  var Ke = De;
7769
7769
  return Number.isNaN($e.current) || (Ke = Math.min(Ke, $e.current)), Ke = Math.max(Ke, 0), Ke;
7770
7770
  }
7771
- var we = O <= 0, et = O >= _e, je = wy(we, et);
7771
+ var we = R <= 0, et = R >= _e, je = wy(we, et);
7772
7772
  function at(De) {
7773
7773
  var Ke = De;
7774
7774
  G(Ke);
7775
7775
  }
7776
7776
  function Pe(De) {
7777
7777
  var Ke = De.currentTarget.scrollTop;
7778
- Ke !== O && G(Ke), b == null || b(De);
7778
+ Ke !== R && G(Ke), b == null || b(De);
7779
7779
  }
7780
7780
  var Xe = lA(_, we, et, function(De) {
7781
7781
  G(function(Ke) {
@@ -7834,7 +7834,7 @@ function pA(e, t) {
7834
7834
  }), _ && /* @__PURE__ */ s(JD, {
7835
7835
  ref: M,
7836
7836
  prefixCls: r,
7837
- scrollTop: O,
7837
+ scrollTop: R,
7838
7838
  height: i,
7839
7839
  scrollHeight: se,
7840
7840
  count: E.length,
@@ -7858,7 +7858,7 @@ function Rp(e) {
7858
7858
  return typeof e == "string" || typeof e == "number";
7859
7859
  }
7860
7860
  var vA = function(t, n) {
7861
- var r = dv(), o = r.prefixCls, i = r.id, a = r.open, l = r.multiple, c = r.mode, u = r.searchValue, d = r.toggleOpen, f = r.notFoundContent, h = r.onPopupScroll, p = C.useContext(_y), g = p.flattenOptions, m = p.onActiveValue, b = p.defaultActiveFirstOption, y = p.onSelect, w = p.menuItemSelectedIcon, _ = p.rawValues, x = p.fieldNames, S = p.virtual, k = p.listHeight, O = p.listItemHeight, L = "".concat(o, "-item"), H = ad(function() {
7861
+ var r = dv(), o = r.prefixCls, i = r.id, a = r.open, l = r.multiple, c = r.mode, u = r.searchValue, d = r.toggleOpen, f = r.notFoundContent, h = r.onPopupScroll, p = C.useContext(_y), g = p.flattenOptions, m = p.onActiveValue, b = p.defaultActiveFirstOption, y = p.onSelect, w = p.menuItemSelectedIcon, _ = p.rawValues, x = p.fieldNames, S = p.virtual, k = p.listHeight, R = p.listItemHeight, L = "".concat(o, "-item"), H = ad(function() {
7862
7862
  return g;
7863
7863
  }, [a, g], function(Q, te) {
7864
7864
  return te[0] && Q[1] !== te[1];
@@ -7990,7 +7990,7 @@ var vA = function(t, n) {
7990
7990
  ref: A,
7991
7991
  data: H,
7992
7992
  height: k,
7993
- itemHeight: O,
7993
+ itemHeight: R,
7994
7994
  fullHeight: !1,
7995
7995
  onMouseDown: T,
7996
7996
  onScroll: h,
@@ -8043,8 +8043,8 @@ function yA(e) {
8043
8043
  return !k.disabled;
8044
8044
  }), "Please avoid setting option to disabled in tags mode since user can always type text as tag."), t === "tags" || t === "combobox") {
8045
8045
  var _ = w.some(function(k) {
8046
- return k.options ? k.options.some(function(O) {
8047
- return typeof ("value" in O ? O.value : O.key) == "number";
8046
+ return k.options ? k.options.some(function(R) {
8047
+ return typeof ("value" in R ? R.value : R.key) == "number";
8048
8048
  }) : typeof ("value" in k ? k.value : k.key) == "number";
8049
8049
  });
8050
8050
  yt(!_, "`value` of Option should not use number type when `mode` is `tags` or `combobox`.");
@@ -8060,7 +8060,7 @@ function yA(e) {
8060
8060
  co(r).some(function(k) {
8061
8061
  if (!/* @__PURE__ */ C.isValidElement(k) || !k.type)
8062
8062
  return !1;
8063
- var O = k, L = O.type;
8063
+ var R = k, L = R.type;
8064
8064
  if (L.isSelectOption)
8065
8065
  return !1;
8066
8066
  if (L.isSelectOptGroup) {
@@ -8092,7 +8092,7 @@ function _A(e) {
8092
8092
  return !e || Fr(e) !== "object";
8093
8093
  }
8094
8094
  var Cy = /* @__PURE__ */ C.forwardRef(function(e, t) {
8095
- var n = e.id, r = e.mode, o = e.prefixCls, i = o === void 0 ? "rc-select" : o, a = e.backfill, l = e.fieldNames, c = e.inputValue, u = e.searchValue, d = e.onSearch, f = e.autoClearSearchValue, h = f === void 0 ? !0 : f, p = e.onSelect, g = e.onDeselect, m = e.dropdownMatchSelectWidth, b = m === void 0 ? !0 : m, y = e.filterOption, w = e.filterSort, _ = e.optionFilterProp, x = e.optionLabelProp, S = e.options, k = e.children, O = e.defaultActiveFirstOption, L = e.menuItemSelectedIcon, H = e.virtual, A = e.listHeight, T = A === void 0 ? 200 : A, P = e.listItemHeight, V = P === void 0 ? 20 : P, E = e.value, N = e.defaultValue, $ = e.labelInValue, M = e.onChange, B = Ei(e, xA), j = hy(n), G = Ks(r), U = !!(!S && k), oe = C.useMemo(function() {
8095
+ var n = e.id, r = e.mode, o = e.prefixCls, i = o === void 0 ? "rc-select" : o, a = e.backfill, l = e.fieldNames, c = e.inputValue, u = e.searchValue, d = e.onSearch, f = e.autoClearSearchValue, h = f === void 0 ? !0 : f, p = e.onSelect, g = e.onDeselect, m = e.dropdownMatchSelectWidth, b = m === void 0 ? !0 : m, y = e.filterOption, w = e.filterSort, _ = e.optionFilterProp, x = e.optionLabelProp, S = e.options, k = e.children, R = e.defaultActiveFirstOption, L = e.menuItemSelectedIcon, H = e.virtual, A = e.listHeight, T = A === void 0 ? 200 : A, P = e.listItemHeight, V = P === void 0 ? 20 : P, E = e.value, N = e.defaultValue, $ = e.labelInValue, M = e.onChange, B = Ei(e, xA), j = hy(n), G = Ks(r), U = !!(!S && k), oe = C.useMemo(function() {
8096
8096
  return y === void 0 && r === "combobox" ? !1 : y;
8097
8097
  }, [y, r]), ae = C.useMemo(
8098
8098
  function() {
@@ -8205,7 +8205,7 @@ var Cy = /* @__PURE__ */ C.forwardRef(function(e, t) {
8205
8205
  G ? st : st[0]
8206
8206
  );
8207
8207
  }
8208
- }, bt = C.useState(null), De = sn(bt, 2), Ke = De[0], ct = De[1], jt = C.useState(0), xt = sn(jt, 2), qt = xt[0], St = xt[1], dn = O !== void 0 ? O : r !== "combobox", Ut = C.useCallback(function(le, ye) {
8208
+ }, bt = C.useState(null), De = sn(bt, 2), Ke = De[0], ct = De[1], jt = C.useState(0), xt = sn(jt, 2), qt = xt[0], St = xt[1], dn = R !== void 0 ? R : r !== "combobox", Ut = C.useCallback(function(le, ye) {
8209
8209
  var Se = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, Fe = Se.source, st = Fe === void 0 ? "keyboard" : Fe;
8210
8210
  St(ye), a && r === "combobox" && le !== null && st === "keyboard" && ct(String(le));
8211
8211
  }, [a, r]), Rt = function(ye, Se, Fe) {
@@ -8699,8 +8699,8 @@ function zA(e, t, n) {
8699
8699
  };
8700
8700
  t(k);
8701
8701
  }
8702
- w && w.forEach(function(O, L) {
8703
- p(O, L, {
8702
+ w && w.forEach(function(R, L) {
8703
+ p(R, L, {
8704
8704
  node: g,
8705
8705
  pos: _,
8706
8706
  level: b ? b.level + 1 : -1
@@ -8904,10 +8904,10 @@ var VA = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
8904
8904
  }, r.renderSelector = function() {
8905
8905
  var l = r.state.dragNodeHighlight, c = r.props, u = c.title, d = c.selected, f = c.icon, h = c.loading, p = c.data, g = r.props.context, m = g.prefixCls, b = g.showIcon, y = g.icon, w = g.loadData, _ = g.titleRender, x = r.isDisabled(), S = "".concat(m, "-node-content-wrapper"), k;
8906
8906
  if (b) {
8907
- var O = f || y;
8908
- k = O ? /* @__PURE__ */ s("span", {
8907
+ var R = f || y;
8908
+ k = R ? /* @__PURE__ */ s("span", {
8909
8909
  className: Mt("".concat(m, "-iconEle"), "".concat(m, "-icon__customize")),
8910
- children: typeof O == "function" ? O(r.props) : O
8910
+ children: typeof R == "function" ? R(r.props) : R
8911
8911
  }) : r.renderIcon();
8912
8912
  } else
8913
8913
  w && h && (k = r.renderIcon());
@@ -8960,11 +8960,11 @@ var VA = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
8960
8960
  value: function() {
8961
8961
  var o, i = this.props, a = i.eventKey, l = i.className, c = i.style, u = i.dragOver, d = i.dragOverGapTop, f = i.dragOverGapBottom, h = i.isLeaf, p = i.isStart, g = i.isEnd, m = i.expanded, b = i.selected, y = i.checked, w = i.halfChecked, _ = i.loading, x = i.domRef, S = i.active;
8962
8962
  i.data;
8963
- var k = i.onMouseMove, O = i.selectable, L = Rl(i, VA), H = this.props.context, A = H.prefixCls, T = H.filterTreeNode, P = H.keyEntities, V = H.dropContainerKey, E = H.dropTargetKey, N = H.draggingNodeKey, $ = this.isDisabled(), M = fi(L, {
8963
+ var k = i.onMouseMove, R = i.selectable, L = Rl(i, VA), H = this.props.context, A = H.prefixCls, T = H.filterTreeNode, P = H.keyEntities, V = H.dropContainerKey, E = H.dropTargetKey, N = H.draggingNodeKey, $ = this.isDisabled(), M = fi(L, {
8964
8964
  aria: !0,
8965
8965
  data: !0
8966
- }), B = P[a] || {}, j = B.level, G = g[g.length - 1], U = this.isDraggable(), oe = !$ && U, ae = N === a, Q = O !== void 0 ? {
8967
- "aria-selected": !!O
8966
+ }), B = P[a] || {}, j = B.level, G = g[g.length - 1], U = this.isDraggable(), oe = !$ && U, ae = N === a, Q = R !== void 0 ? {
8967
+ "aria-selected": !!R
8968
8968
  } : void 0;
8969
8969
  return /* @__PURE__ */ v("div", {
8970
8970
  ref: x,
@@ -9054,7 +9054,7 @@ function Np(e, t, n, r, o, i, a, l, c, u) {
9054
9054
  }), x = _ <= 0 ? 0 : _ - 1, S = a[x].key;
9055
9055
  w = l[S];
9056
9056
  }
9057
- var k = w.key, O = w, L = w.key, H = 0, A = 0;
9057
+ var k = w.key, R = w, L = w.key, H = 0, A = 0;
9058
9058
  if (!c.includes(k))
9059
9059
  for (var T = 0; T < y && KA(w); T += 1)
9060
9060
  w = w.parent, A += 1;
@@ -9063,7 +9063,7 @@ function Np(e, t, n, r, o, i, a, l, c, u) {
9063
9063
  dragNode: P,
9064
9064
  dropNode: V,
9065
9065
  dropPosition: -1
9066
- }) && w.key === n.props.eventKey ? H = -1 : (O.children || []).length && c.includes(L) ? i({
9066
+ }) && w.key === n.props.eventKey ? H = -1 : (R.children || []).length && c.includes(L) ? i({
9067
9067
  dragNode: P,
9068
9068
  dropNode: V,
9069
9069
  dropPosition: 0
@@ -9192,10 +9192,10 @@ var YA = ["className", "style", "motion", "motionNodes", "motionType", "onMotion
9192
9192
  onAppearEnd: x,
9193
9193
  onLeaveEnd: x,
9194
9194
  children: function(S, k) {
9195
- var O = S.className, L = S.style;
9195
+ var R = S.className, L = S.style;
9196
9196
  return /* @__PURE__ */ s("div", {
9197
9197
  ref: k,
9198
- className: Mt("".concat(w, "-treenode-motion"), O),
9198
+ className: Mt("".concat(w, "-treenode-motion"), R),
9199
9199
  style: L,
9200
9200
  children: a.map(function(H) {
9201
9201
  var A = Gs({}, (Ny(H.data), H.data)), T = H.title, P = H.key, V = H.isStart, E = H.isEnd;
@@ -9307,7 +9307,7 @@ function e$(e) {
9307
9307
  var zy = /* @__PURE__ */ C.forwardRef(function(e, t) {
9308
9308
  var n = e.prefixCls, r = e.data;
9309
9309
  e.selectable, e.checkable;
9310
- var o = e.expandedKeys, i = e.selectedKeys, a = e.checkedKeys, l = e.loadedKeys, c = e.loadingKeys, u = e.halfCheckedKeys, d = e.keyEntities, f = e.disabled, h = e.dragging, p = e.dragOverNodeKey, g = e.dropPosition, m = e.motion, b = e.height, y = e.itemHeight, w = e.virtual, _ = e.focusable, x = e.activeItem, S = e.focused, k = e.tabIndex, O = e.onKeyDown, L = e.onFocus, H = e.onBlur, A = e.onActiveChange, T = e.onListChangeStart, P = e.onListChangeEnd, V = Rl(e, ZA), E = C.useRef(null), N = C.useRef(null);
9310
+ var o = e.expandedKeys, i = e.selectedKeys, a = e.checkedKeys, l = e.loadedKeys, c = e.loadingKeys, u = e.halfCheckedKeys, d = e.keyEntities, f = e.disabled, h = e.dragging, p = e.dragOverNodeKey, g = e.dropPosition, m = e.motion, b = e.height, y = e.itemHeight, w = e.virtual, _ = e.focusable, x = e.activeItem, S = e.focused, k = e.tabIndex, R = e.onKeyDown, L = e.onFocus, H = e.onBlur, A = e.onActiveChange, T = e.onListChangeStart, P = e.onListChangeEnd, V = Rl(e, ZA), E = C.useRef(null), N = C.useRef(null);
9311
9311
  C.useImperativeHandle(t, function() {
9312
9312
  return {
9313
9313
  scrollTo: function(et) {
@@ -9367,7 +9367,7 @@ var zy = /* @__PURE__ */ C.forwardRef(function(e, t) {
9367
9367
  style: Vp,
9368
9368
  disabled: _ === !1 || f,
9369
9369
  tabIndex: _ !== !1 ? k : null,
9370
- onKeyDown: O,
9370
+ onKeyDown: R,
9371
9371
  onFocus: L,
9372
9372
  onBlur: H,
9373
9373
  value: "",
@@ -9511,7 +9511,7 @@ var n$ = 10, Ed = /* @__PURE__ */ function(e) {
9511
9511
  node: on(c.props)
9512
9512
  });
9513
9513
  }, r.onNodeDragEnter = function(l, c) {
9514
- var u = r.state, d = u.expandedKeys, f = u.keyEntities, h = u.dragChildrenKeys, p = u.flattenNodes, g = u.indent, m = r.props, b = m.onDragEnter, y = m.onExpand, w = m.allowDrop, _ = m.direction, x = c.props, S = x.pos, k = x.eventKey, O = Nr(r), L = O.dragNode;
9514
+ var u = r.state, d = u.expandedKeys, f = u.keyEntities, h = u.dragChildrenKeys, p = u.flattenNodes, g = u.indent, m = r.props, b = m.onDragEnter, y = m.onExpand, w = m.allowDrop, _ = m.direction, x = c.props, S = x.pos, k = x.eventKey, R = Nr(r), L = R.dragNode;
9515
9515
  if (r.currentMouseOverDroppableNodeKey !== k && (r.currentMouseOverDroppableNodeKey = k), !L) {
9516
9516
  r.resetDragState();
9517
9517
  return;
@@ -9552,10 +9552,10 @@ var n$ = 10, Ed = /* @__PURE__ */ function(e) {
9552
9552
  }, r.onNodeDragOver = function(l, c) {
9553
9553
  var u = r.state, d = u.dragChildrenKeys, f = u.flattenNodes, h = u.keyEntities, p = u.expandedKeys, g = u.indent, m = r.props, b = m.onDragOver, y = m.allowDrop, w = m.direction, _ = Nr(r), x = _.dragNode;
9554
9554
  if (!!x) {
9555
- var S = Np(l, x, c, g, r.dragStartMousePosition, y, f, h, p, w), k = S.dropPosition, O = S.dropLevelOffset, L = S.dropTargetKey, H = S.dropContainerKey, A = S.dropAllowed, T = S.dropTargetPos, P = S.dragOverNodeKey;
9556
- d.indexOf(L) !== -1 || !A || (x.props.eventKey === L && O === 0 ? r.state.dropPosition === null && r.state.dropLevelOffset === null && r.state.dropTargetKey === null && r.state.dropContainerKey === null && r.state.dropTargetPos === null && r.state.dropAllowed === !1 && r.state.dragOverNodeKey === null || r.resetDragState() : k === r.state.dropPosition && O === r.state.dropLevelOffset && L === r.state.dropTargetKey && H === r.state.dropContainerKey && T === r.state.dropTargetPos && A === r.state.dropAllowed && P === r.state.dragOverNodeKey || r.setState({
9555
+ var S = Np(l, x, c, g, r.dragStartMousePosition, y, f, h, p, w), k = S.dropPosition, R = S.dropLevelOffset, L = S.dropTargetKey, H = S.dropContainerKey, A = S.dropAllowed, T = S.dropTargetPos, P = S.dragOverNodeKey;
9556
+ d.indexOf(L) !== -1 || !A || (x.props.eventKey === L && R === 0 ? r.state.dropPosition === null && r.state.dropLevelOffset === null && r.state.dropTargetKey === null && r.state.dropContainerKey === null && r.state.dropTargetPos === null && r.state.dropAllowed === !1 && r.state.dragOverNodeKey === null || r.resetDragState() : k === r.state.dropPosition && R === r.state.dropLevelOffset && L === r.state.dropTargetKey && H === r.state.dropContainerKey && T === r.state.dropTargetPos && A === r.state.dropAllowed && P === r.state.dragOverNodeKey || r.setState({
9557
9557
  dropPosition: k,
9558
- dropLevelOffset: O,
9558
+ dropLevelOffset: R,
9559
9559
  dropTargetKey: L,
9560
9560
  dropContainerKey: H,
9561
9561
  dropTargetPos: T,
@@ -9673,17 +9673,17 @@ var n$ = 10, Ed = /* @__PURE__ */ function(e) {
9673
9673
  checkedKeys: x
9674
9674
  });
9675
9675
  } else {
9676
- var k = ii([].concat(Oo(h), [y]), !0, f), O = k.checkedKeys, L = k.halfCheckedKeys;
9676
+ var k = ii([].concat(Oo(h), [y]), !0, f), R = k.checkedKeys, L = k.halfCheckedKeys;
9677
9677
  if (!u) {
9678
- var H = new Set(O);
9678
+ var H = new Set(R);
9679
9679
  H.delete(y);
9680
9680
  var A = ii(Array.from(H), {
9681
9681
  checked: !1,
9682
9682
  halfCheckedKeys: L
9683
9683
  }, f);
9684
- O = A.checkedKeys, L = A.halfCheckedKeys;
9684
+ R = A.checkedKeys, L = A.halfCheckedKeys;
9685
9685
  }
9686
- w = O, _.checkedNodes = [], _.checkedNodesPositions = [], _.halfCheckedKeys = L, O.forEach(function(T) {
9686
+ w = R, _.checkedNodes = [], _.checkedNodesPositions = [], _.halfCheckedKeys = L, R.forEach(function(T) {
9687
9687
  var P = f[T];
9688
9688
  if (!!P) {
9689
9689
  var V = P.node, E = P.pos;
@@ -9693,7 +9693,7 @@ var n$ = 10, Ed = /* @__PURE__ */ function(e) {
9693
9693
  });
9694
9694
  }
9695
9695
  }), r.setUncontrolledState({
9696
- checkedKeys: O
9696
+ checkedKeys: R
9697
9697
  }, !1, {
9698
9698
  halfCheckedKeys: L
9699
9699
  });
@@ -9713,15 +9713,15 @@ var n$ = 10, Ed = /* @__PURE__ */ function(e) {
9713
9713
  node: l
9714
9714
  }), r.setUncontrolledState({
9715
9715
  loadedKeys: k
9716
- }), r.setState(function(O) {
9716
+ }), r.setState(function(R) {
9717
9717
  return {
9718
- loadingKeys: Rr(O.loadingKeys, c)
9718
+ loadingKeys: Rr(R.loadingKeys, c)
9719
9719
  };
9720
9720
  }), d();
9721
9721
  }).catch(function(S) {
9722
- if (r.setState(function(O) {
9722
+ if (r.setState(function(R) {
9723
9723
  return {
9724
- loadingKeys: Rr(O.loadingKeys, c)
9724
+ loadingKeys: Rr(R.loadingKeys, c)
9725
9725
  };
9726
9726
  }), r.loadingRetryTimes[c] = (r.loadingRetryTimes[c] || 0) + 1, r.loadingRetryTimes[c] >= n$) {
9727
9727
  var k = r.state.loadedKeys;
@@ -9938,7 +9938,7 @@ var n$ = 10, Ed = /* @__PURE__ */ function(e) {
9938
9938
  }, {
9939
9939
  key: "render",
9940
9940
  value: function() {
9941
- var o, i = this.state, a = i.focused, l = i.flattenNodes, c = i.keyEntities, u = i.draggingNodeKey, d = i.activeKey, f = i.dropLevelOffset, h = i.dropContainerKey, p = i.dropTargetKey, g = i.dropPosition, m = i.dragOverNodeKey, b = i.indent, y = this.props, w = y.prefixCls, _ = y.className, x = y.style, S = y.showLine, k = y.focusable, O = y.tabIndex, L = O === void 0 ? 0 : O, H = y.selectable, A = y.showIcon, T = y.icon, P = y.switcherIcon, V = y.draggable, E = y.checkable, N = y.checkStrictly, $ = y.disabled, M = y.motion, B = y.loadData, j = y.filterTreeNode, G = y.height, U = y.itemHeight, oe = y.virtual, ae = y.titleRender, Q = y.dropIndicatorRender, te = y.onContextMenu, me = y.onScroll, ge = y.direction, he = y.rootClassName, de = y.rootStyle, Oe = fi(this.props, {
9941
+ var o, i = this.state, a = i.focused, l = i.flattenNodes, c = i.keyEntities, u = i.draggingNodeKey, d = i.activeKey, f = i.dropLevelOffset, h = i.dropContainerKey, p = i.dropTargetKey, g = i.dropPosition, m = i.dragOverNodeKey, b = i.indent, y = this.props, w = y.prefixCls, _ = y.className, x = y.style, S = y.showLine, k = y.focusable, R = y.tabIndex, L = R === void 0 ? 0 : R, H = y.selectable, A = y.showIcon, T = y.icon, P = y.switcherIcon, V = y.draggable, E = y.checkable, N = y.checkStrictly, $ = y.disabled, M = y.motion, B = y.loadData, j = y.filterTreeNode, G = y.height, U = y.itemHeight, oe = y.virtual, ae = y.titleRender, Q = y.dropIndicatorRender, te = y.onContextMenu, me = y.onScroll, ge = y.direction, he = y.rootClassName, de = y.rootStyle, Oe = fi(this.props, {
9942
9942
  aria: !0,
9943
9943
  data: !0
9944
9944
  }), Te;
@@ -10130,7 +10130,7 @@ var i$ = {
10130
10130
  padding: 0,
10131
10131
  margin: 0
10132
10132
  }, a$ = function(t, n) {
10133
- var r = dv(), o = r.prefixCls, i = r.multiple, a = r.searchValue, l = r.toggleOpen, c = r.open, u = r.notFoundContent, d = C.useContext(Fy), f = d.virtual, h = d.listHeight, p = d.listItemHeight, g = d.treeData, m = d.fieldNames, b = d.onSelect, y = d.dropdownMatchSelectWidth, w = d.treeExpandAction, _ = C.useContext(Vy), x = _.checkable, S = _.checkedKeys, k = _.halfCheckedKeys, O = _.treeExpandedKeys, L = _.treeDefaultExpandAll, H = _.treeDefaultExpandedKeys, A = _.onTreeExpand, T = _.treeIcon, P = _.showTreeIcon, V = _.switcherIcon, E = _.treeLine, N = _.treeNodeFilterProp, $ = _.loadData, M = _.treeLoadedKeys, B = _.treeMotion, j = _.onTreeLoad, G = _.keyEntities, U = C.useRef(), oe = ad(function() {
10133
+ var r = dv(), o = r.prefixCls, i = r.multiple, a = r.searchValue, l = r.toggleOpen, c = r.open, u = r.notFoundContent, d = C.useContext(Fy), f = d.virtual, h = d.listHeight, p = d.listItemHeight, g = d.treeData, m = d.fieldNames, b = d.onSelect, y = d.dropdownMatchSelectWidth, w = d.treeExpandAction, _ = C.useContext(Vy), x = _.checkable, S = _.checkedKeys, k = _.halfCheckedKeys, R = _.treeExpandedKeys, L = _.treeDefaultExpandAll, H = _.treeDefaultExpandedKeys, A = _.onTreeExpand, T = _.treeIcon, P = _.showTreeIcon, V = _.switcherIcon, E = _.treeLine, N = _.treeNodeFilterProp, $ = _.loadData, M = _.treeLoadedKeys, B = _.treeMotion, j = _.onTreeLoad, G = _.keyEntities, U = C.useRef(), oe = ad(function() {
10134
10134
  return g;
10135
10135
  }, [c, g], function(Pe, Xe) {
10136
10136
  return Xe[0] && Pe[1] !== Xe[1];
@@ -10151,8 +10151,8 @@ var i$ = {
10151
10151
  var Q = String(a).toLowerCase(), te = function(Xe) {
10152
10152
  return Q ? String(Xe[N]).toLowerCase().includes(Q) : !1;
10153
10153
  }, me = C.useState(H), ge = eo(me, 2), he = ge[0], de = ge[1], Oe = C.useState(null), Te = eo(Oe, 2), J = Te[0], se = Te[1], Re = C.useMemo(function() {
10154
- return O ? Jr(O) : a ? J : he;
10155
- }, [he, J, O, a]);
10154
+ return R ? Jr(R) : a ? J : he;
10155
+ }, [he, J, R, a]);
10156
10156
  C.useEffect(function() {
10157
10157
  a && se(o$(g, m));
10158
10158
  }, [a]);
@@ -10454,7 +10454,7 @@ function y$(e) {
10454
10454
  return !e || No(e) !== "object";
10455
10455
  }
10456
10456
  var Wy = /* @__PURE__ */ C.forwardRef(function(e, t) {
10457
- var n = e.id, r = e.prefixCls, o = r === void 0 ? "rc-tree-select" : r, i = e.value, a = e.defaultValue, l = e.onChange, c = e.onSelect, u = e.onDeselect, d = e.searchValue, f = e.inputValue, h = e.onSearch, p = e.autoClearSearchValue, g = p === void 0 ? !0 : p, m = e.filterTreeNode, b = e.treeNodeFilterProp, y = b === void 0 ? "value" : b, w = e.showCheckedStrategy, _ = w === void 0 ? Td : w, x = e.treeNodeLabelProp, S = e.multiple, k = e.treeCheckable, O = e.treeCheckStrictly, L = e.labelInValue, H = e.fieldNames, A = e.treeDataSimpleMode, T = e.treeData, P = e.children, V = e.loadData, E = e.treeLoadedKeys, N = e.onTreeLoad, $ = e.treeDefaultExpandAll, M = e.treeExpandedKeys, B = e.treeDefaultExpandedKeys, j = e.onTreeExpand, G = e.treeExpandAction, U = e.virtual, oe = e.listHeight, ae = oe === void 0 ? 200 : oe, Q = e.listItemHeight, te = Q === void 0 ? 20 : Q, me = e.onDropdownVisibleChange, ge = e.dropdownMatchSelectWidth, he = ge === void 0 ? !0 : ge, de = e.treeLine, Oe = e.treeIcon, Te = e.showTreeIcon, J = e.switcherIcon, se = e.treeMotion, Re = nv(e, v$), X = hy(n), Me = k && !O, _e = k || O, $e = O || L, Le = _e || S, we = ha(a, {
10457
+ var n = e.id, r = e.prefixCls, o = r === void 0 ? "rc-tree-select" : r, i = e.value, a = e.defaultValue, l = e.onChange, c = e.onSelect, u = e.onDeselect, d = e.searchValue, f = e.inputValue, h = e.onSearch, p = e.autoClearSearchValue, g = p === void 0 ? !0 : p, m = e.filterTreeNode, b = e.treeNodeFilterProp, y = b === void 0 ? "value" : b, w = e.showCheckedStrategy, _ = w === void 0 ? Td : w, x = e.treeNodeLabelProp, S = e.multiple, k = e.treeCheckable, R = e.treeCheckStrictly, L = e.labelInValue, H = e.fieldNames, A = e.treeDataSimpleMode, T = e.treeData, P = e.children, V = e.loadData, E = e.treeLoadedKeys, N = e.onTreeLoad, $ = e.treeDefaultExpandAll, M = e.treeExpandedKeys, B = e.treeDefaultExpandedKeys, j = e.onTreeExpand, G = e.treeExpandAction, U = e.virtual, oe = e.listHeight, ae = oe === void 0 ? 200 : oe, Q = e.listItemHeight, te = Q === void 0 ? 20 : Q, me = e.onDropdownVisibleChange, ge = e.dropdownMatchSelectWidth, he = ge === void 0 ? !0 : ge, de = e.treeLine, Oe = e.treeIcon, Te = e.showTreeIcon, J = e.switcherIcon, se = e.treeMotion, Re = nv(e, v$), X = hy(n), Me = k && !R, _e = k || R, $e = R || L, Le = _e || S, we = ha(a, {
10458
10458
  value: i
10459
10459
  }), et = eo(we, 2), je = et[0], at = et[1];
10460
10460
  process.env.NODE_ENV !== "production" && m$(e);
@@ -10564,7 +10564,7 @@ var Wy = /* @__PURE__ */ C.forwardRef(function(e, t) {
10564
10564
  triggerValue: void 0,
10565
10565
  selected: void 0
10566
10566
  }, Ue = Ze.triggerValue, ot = Ze.selected, Nt = We;
10567
- if (O) {
10567
+ if (R) {
10568
10568
  var Cn = pn.filter(function(Rn) {
10569
10569
  return !We.includes(Rn.value);
10570
10570
  });
@@ -10574,7 +10574,7 @@ var Wy = /* @__PURE__ */ C.forwardRef(function(e, t) {
10574
10574
  preValue: Ht,
10575
10575
  triggerValue: Ue
10576
10576
  }, hr = !0;
10577
- (O || Ce === "selection" && !ot) && (hr = !1), c$(Yt, Ue, ne, tt, hr, Pe), _e ? Yt.checked = ot : Yt.selected = ot;
10577
+ (R || Ce === "selection" && !ot) && (hr = !1), c$(Yt, Ue, ne, tt, hr, Pe), _e ? Yt.checked = ot : Yt.selected = ot;
10578
10578
  var Tr = $e ? Bn : Bn.map(function(Rn) {
10579
10579
  return Rn.value;
10580
10580
  });
@@ -11677,7 +11677,7 @@ const $$ = (e) => {
11677
11677
  getColor: Dl(["#fff7f1", "darkorange", "#b60000"]),
11678
11678
  name: "orange",
11679
11679
  category: "sequential"
11680
- }, Zy = "@devtable/dashboard", Od = "8.44.0", Jy = "Apache-2.0", eb = {
11680
+ }, Zy = "@devtable/dashboard", Od = "8.44.1", Jy = "Apache-2.0", eb = {
11681
11681
  access: "public",
11682
11682
  registry: "https://registry.npmjs.org/"
11683
11683
  }, tb = [
@@ -25380,8 +25380,8 @@ const fs = {
25380
25380
  var y, w;
25381
25381
  const _ = g - ((y = b == null ? void 0 : b.startOffset) != null ? y : 0), x = Math.max(_ / ((w = b == null ? void 0 : b.startSize) != null ? w : 0), -0.999999);
25382
25382
  return b.columnSizingStart.forEach((S) => {
25383
- let [k, O] = S;
25384
- m[k] = Math.round(Math.max(O + O * x, 0) * 100) / 100;
25383
+ let [k, R] = S;
25384
+ m[k] = Math.round(Math.max(R + R * x, 0) * 100) / 100;
25385
25385
  }), {
25386
25386
  ...b,
25387
25387
  deltaOffset: _,
@@ -27281,7 +27281,7 @@ function P4({
27281
27281
  }), {
27282
27282
  virtualItems: x,
27283
27283
  totalSize: S
27284
- } = _, k = x.length > 0 && ((V = x == null ? void 0 : x[0]) == null ? void 0 : V.start) || 0, O = x.length > 0 ? S - (((E = x == null ? void 0 : x[x.length - 1]) == null ? void 0 : E.end) || 0) : 0, L = y.length, H = L > 0, A = H ? r - 22 : r, T = H ? 22 : 0;
27284
+ } = _, k = x.length > 0 && ((V = x == null ? void 0 : x[0]) == null ? void 0 : V.start) || 0, R = x.length > 0 ? S - (((E = x == null ? void 0 : x[x.length - 1]) == null ? void 0 : E.end) || 0) : 0, L = y.length, H = L > 0, A = H ? r - 22 : r, T = H ? 22 : 0;
27285
27285
  return !Array.isArray(n) || n.length === 0 ? /* @__PURE__ */ s(K, {
27286
27286
  color: "gray",
27287
27287
  align: "center",
@@ -27346,10 +27346,10 @@ function P4({
27346
27346
  children: Js(M.column.columnDef.cell, M.getContext())
27347
27347
  }, M.id))
27348
27348
  }, $.id);
27349
- }), O > 0 && /* @__PURE__ */ s("tr", {
27349
+ }), R > 0 && /* @__PURE__ */ s("tr", {
27350
27350
  children: /* @__PURE__ */ s("td", {
27351
27351
  style: {
27352
- height: `${O}px`
27352
+ height: `${R}px`
27353
27353
  }
27354
27354
  })
27355
27355
  })]
@@ -32718,10 +32718,10 @@ const yr = {
32718
32718
  function v0(e) {
32719
32719
  yr.baseURL !== e.apiBaseURL && (yr.baseURL = e.apiBaseURL), e.app_id && (yr.app_id = e.app_id), e.app_secret && (yr.app_secret = e.app_secret);
32720
32720
  }
32721
- const y0 = R.model("FilterConfigModel_Checkbox", {
32722
- _name: R.literal("checkbox"),
32723
- description: R.optional(R.string, ""),
32724
- default_value: R.boolean
32721
+ const y0 = O.model("FilterConfigModel_Checkbox", {
32722
+ _name: O.literal("checkbox"),
32723
+ description: O.optional(O.string, ""),
32724
+ default_value: O.boolean
32725
32725
  }).views((e) => ({
32726
32726
  get json() {
32727
32727
  const { _name: t, description: n, default_value: r } = e;
@@ -32748,10 +32748,10 @@ const y0 = R.model("FilterConfigModel_Checkbox", {
32748
32748
  default_value: !1
32749
32749
  });
32750
32750
  var Wt = /* @__PURE__ */ ((e) => (e.Postgresql = "postgresql", e.MySQL = "mysql", e.HTTP = "http", e))(Wt || {}), bn = /* @__PURE__ */ ((e) => (e.Select = "select", e.MultiSelect = "multi-select", e.TreeSelect = "tree-select", e.TextInput = "text-input", e.Checkbox = "checkbox", e.DateRange = "date-range", e))(bn || {});
32751
- R.model({
32752
- type: R.enumeration("DataSourceType", [Wt.Postgresql, Wt.MySQL, Wt.HTTP]),
32753
- key: R.string,
32754
- sql: R.string
32751
+ O.model({
32752
+ type: O.enumeration("DataSourceType", [Wt.Postgresql, Wt.MySQL, Wt.HTTP]),
32753
+ key: O.string,
32754
+ sql: O.string
32755
32755
  });
32756
32756
  function b0(e, t) {
32757
32757
  return e.map((n) => {
@@ -32762,14 +32762,14 @@ function b0(e, t) {
32762
32762
  }
32763
32763
  });
32764
32764
  }
32765
- const QH = R.model("FilterConfigModel_DateRange", {
32766
- _name: R.literal("date-range"),
32767
- required: R.boolean,
32768
- inputFormat: R.enumeration("DateRangeInputFormat", ["YYYY", "YYYYMM", "YYYYMMDD", "YYYY-MM", "YYYY-MM-DD"]),
32769
- default_value: R.optional(R.array(R.union(R.string, R.null)), [null, null]),
32770
- clearable: R.boolean,
32771
- max_days: R.optional(R.number, 0),
32772
- allowSingleDateInRange: R.optional(R.boolean, !1)
32765
+ const QH = O.model("FilterConfigModel_DateRange", {
32766
+ _name: O.literal("date-range"),
32767
+ required: O.boolean,
32768
+ inputFormat: O.enumeration("DateRangeInputFormat", ["YYYY", "YYYYMM", "YYYYMMDD", "YYYY-MM", "YYYY-MM-DD"]),
32769
+ default_value: O.optional(O.array(O.union(O.string, O.null)), [null, null]),
32770
+ clearable: O.boolean,
32771
+ max_days: O.optional(O.number, 0),
32772
+ allowSingleDateInRange: O.optional(O.boolean, !1)
32773
32773
  }).views((e) => ({
32774
32774
  get json() {
32775
32775
  const { _name: t, max_days: n, required: r, clearable: o, inputFormat: i, default_value: a, allowSingleDateInRange: l } = e;
@@ -32825,7 +32825,7 @@ const QH = R.model("FilterConfigModel_DateRange", {
32825
32825
  setAllowSingleDateInRange(t) {
32826
32826
  e.allowSingleDateInRange = t;
32827
32827
  }
32828
- })), x0 = R.snapshotProcessor(QH, {
32828
+ })), x0 = O.snapshotProcessor(QH, {
32829
32829
  preProcessor({ default_value: e, ...t }) {
32830
32830
  return {
32831
32831
  ...t,
@@ -32844,9 +32844,9 @@ const QH = R.model("FilterConfigModel_DateRange", {
32844
32844
  inputFormat: "YYYY-MM-DD",
32845
32845
  clearable: !1,
32846
32846
  default_value: [null, null]
32847
- }), JH = R.model({
32848
- label: R.string,
32849
- value: R.string
32847
+ }), JH = O.model({
32848
+ label: O.string,
32849
+ value: O.string
32850
32850
  }).actions((e) => ({
32851
32851
  setLabel(t) {
32852
32852
  e.label = t;
@@ -32854,10 +32854,10 @@ const QH = R.model("FilterConfigModel_DateRange", {
32854
32854
  setValue(t) {
32855
32855
  e.value = t;
32856
32856
  }
32857
- })), ff = R.model("FilterConfigModel_BaseSelect", {
32858
- static_options: R.optional(R.array(JH), []),
32859
- options_query_id: R.optional(R.string, ""),
32860
- default_selection_count: R.optional(R.number, 0)
32857
+ })), ff = O.model("FilterConfigModel_BaseSelect", {
32858
+ static_options: O.optional(O.array(JH), []),
32859
+ options_query_id: O.optional(O.string, ""),
32860
+ default_selection_count: O.optional(O.number, 0)
32861
32861
  }).views((e) => ({
32862
32862
  get usingQuery() {
32863
32863
  return !!e.options_query_id;
@@ -32885,12 +32885,12 @@ const QH = R.model("FilterConfigModel_DateRange", {
32885
32885
  })), Bl = (e) => dm(e, (t, n) => {
32886
32886
  if (n !== void 0 && t)
32887
32887
  return vo(t);
32888
- }), w0 = R.compose(
32888
+ }), w0 = O.compose(
32889
32889
  "FilterConfigModel_MultiSelect",
32890
- R.model({
32891
- _name: R.literal("multi-select"),
32892
- min_width: R.optional(R.string, ""),
32893
- default_value: R.optional(R.array(R.string), [])
32890
+ O.model({
32891
+ _name: O.literal("multi-select"),
32892
+ min_width: O.optional(O.string, ""),
32893
+ default_value: O.optional(O.array(O.string), [])
32894
32894
  }),
32895
32895
  ff
32896
32896
  ).views((e) => ({
@@ -32935,12 +32935,12 @@ const QH = R.model("FilterConfigModel_DateRange", {
32935
32935
  static_options: [],
32936
32936
  options_query_id: "",
32937
32937
  default_selection_count: 0
32938
- }), _0 = R.compose(
32938
+ }), _0 = O.compose(
32939
32939
  "FilterConfigModel_TreeSelect",
32940
- R.model({
32941
- _name: R.literal("tree-select"),
32942
- min_width: R.optional(R.string, ""),
32943
- default_value: R.optional(R.array(R.string), [])
32940
+ O.model({
32941
+ _name: O.literal("tree-select"),
32942
+ min_width: O.optional(O.string, ""),
32943
+ default_value: O.optional(O.array(O.string), [])
32944
32944
  }),
32945
32945
  ff
32946
32946
  ).views((e) => ({
@@ -32968,13 +32968,13 @@ const QH = R.model("FilterConfigModel_DateRange", {
32968
32968
  static_options: [],
32969
32969
  options_query_id: "",
32970
32970
  default_selection_count: 0
32971
- }), S0 = R.compose(
32971
+ }), S0 = O.compose(
32972
32972
  "FilterConfigModel_Select",
32973
- R.model({
32974
- _name: R.literal("select"),
32975
- default_value: R.string,
32976
- required: R.boolean,
32977
- width: R.optional(R.string, "")
32973
+ O.model({
32974
+ _name: O.literal("select"),
32975
+ default_value: O.string,
32976
+ required: O.boolean,
32977
+ width: O.optional(O.string, "")
32978
32978
  }),
32979
32979
  ff
32980
32980
  ).views((e) => ({
@@ -33010,10 +33010,10 @@ const QH = R.model("FilterConfigModel_DateRange", {
33010
33010
  static_options: [],
33011
33011
  options_query_id: "",
33012
33012
  default_selection_count: 0
33013
- }), C0 = R.model("FilterConfigModel_TextInput", {
33014
- _name: R.literal("text-input"),
33015
- required: R.boolean,
33016
- default_value: R.string
33013
+ }), C0 = O.model("FilterConfigModel_TextInput", {
33014
+ _name: O.literal("text-input"),
33015
+ required: O.boolean,
33016
+ default_value: O.string
33017
33017
  }).views((e) => ({
33018
33018
  get json() {
33019
33019
  const { _name: t, required: n, default_value: r } = e;
@@ -33037,14 +33037,14 @@ const QH = R.model("FilterConfigModel_DateRange", {
33037
33037
  _name: "text-input",
33038
33038
  required: !1,
33039
33039
  default_value: ""
33040
- }), lg = R.model("FilterModel", {
33041
- id: R.identifier,
33042
- key: R.string,
33043
- label: R.string,
33044
- order: R.number,
33045
- visibleInViewsIDs: R.array(R.string),
33046
- auto_submit: R.optional(R.boolean, !1),
33047
- type: R.enumeration("DashboardFilterType", [
33040
+ }), lg = O.model("FilterModel", {
33041
+ id: O.identifier,
33042
+ key: O.string,
33043
+ label: O.string,
33044
+ order: O.number,
33045
+ visibleInViewsIDs: O.array(O.string),
33046
+ auto_submit: O.optional(O.boolean, !1),
33047
+ type: O.enumeration("DashboardFilterType", [
33048
33048
  bn.Select,
33049
33049
  bn.MultiSelect,
33050
33050
  bn.TreeSelect,
@@ -33052,7 +33052,7 @@ const QH = R.model("FilterConfigModel_DateRange", {
33052
33052
  bn.Checkbox,
33053
33053
  bn.DateRange
33054
33054
  ]),
33055
- config: R.union(
33055
+ config: O.union(
33056
33056
  S0,
33057
33057
  w0,
33058
33058
  _0,
@@ -33163,10 +33163,10 @@ function rB(e, t, n) {
33163
33163
  })
33164
33164
  );
33165
33165
  }
33166
- const oB = R.model("FiltersModel", {
33167
- current: R.optional(R.array(lg), []),
33168
- values: R.optional(R.frozen(), {}),
33169
- previewValues: R.optional(R.frozen(), {})
33166
+ const oB = O.model("FiltersModel", {
33167
+ current: O.optional(O.array(lg), []),
33168
+ values: O.optional(O.frozen(), {}),
33169
+ previewValues: O.optional(O.frozen(), {})
33170
33170
  }).views((e) => ({
33171
33171
  get json() {
33172
33172
  return e.current.map((t) => t.json);
@@ -33552,15 +33552,15 @@ async function gf() {
33552
33552
  return console.error(e), [];
33553
33553
  }
33554
33554
  }
33555
- const wB = R.model("QueryModel", {
33556
- id: R.string,
33557
- name: R.string,
33558
- type: R.enumeration("DataSourceType", [Wt.Postgresql, Wt.MySQL, Wt.HTTP]),
33559
- key: R.string,
33560
- sql: R.string,
33561
- pre_process: R.optional(R.string, ""),
33562
- post_process: R.optional(R.string, ""),
33563
- run_by: R.optional(R.array(R.string), [])
33555
+ const wB = O.model("QueryModel", {
33556
+ id: O.string,
33557
+ name: O.string,
33558
+ type: O.enumeration("DataSourceType", [Wt.Postgresql, Wt.MySQL, Wt.HTTP]),
33559
+ key: O.string,
33560
+ sql: O.string,
33561
+ pre_process: O.optional(O.string, ""),
33562
+ post_process: O.optional(O.string, ""),
33563
+ run_by: O.optional(O.array(O.string), [])
33564
33564
  }).views((e) => ({
33565
33565
  get valid() {
33566
33566
  return e.id && e.type && e.key && e.name ? e.type === Wt.HTTP ? !!e.pre_process : !!e.sql : !1;
@@ -33632,13 +33632,13 @@ const wB = R.model("QueryModel", {
33632
33632
  setPostProcess(t) {
33633
33633
  e.post_process = t;
33634
33634
  }
33635
- })), _B = R.compose(
33635
+ })), _B = O.compose(
33636
33636
  "QueryModel",
33637
33637
  wB,
33638
- R.model({
33639
- state: R.optional(R.enumeration(["idle", "loading", "error"]), "idle"),
33640
- data: R.optional(R.array(R.frozen()), []),
33641
- error: R.frozen()
33638
+ O.model({
33639
+ state: O.optional(O.enumeration(["idle", "loading", "error"]), "idle"),
33640
+ data: O.optional(O.array(O.frozen()), []),
33641
+ error: O.frozen()
33642
33642
  })
33643
33643
  ).views((e) => ({
33644
33644
  get formattedSQL() {
@@ -33749,8 +33749,8 @@ const wB = R.model("QueryModel", {
33749
33749
  )
33750
33750
  );
33751
33751
  }
33752
- })), SB = R.model("QueriesModel", {
33753
- current: R.optional(R.array(_B), [])
33752
+ })), SB = O.model("QueriesModel", {
33753
+ current: O.optional(O.array(_B), [])
33754
33754
  }).views((e) => ({
33755
33755
  get firstID() {
33756
33756
  if (e.current.length !== 0)
@@ -33814,9 +33814,9 @@ const wB = R.model("QueryModel", {
33814
33814
  const n = e.current.find((r) => r.id === t);
33815
33815
  n && (M_(n), e.current.remove(n));
33816
33816
  }
33817
- })), CB = R.model("SQLSnippetModel", {
33818
- key: R.string,
33819
- value: R.string
33817
+ })), CB = O.model("SQLSnippetModel", {
33818
+ key: O.string,
33819
+ value: O.string
33820
33820
  }).views((e) => ({
33821
33821
  get json() {
33822
33822
  const { key: t, value: n } = e;
@@ -33835,8 +33835,8 @@ const wB = R.model("QueryModel", {
33835
33835
  setValue(t) {
33836
33836
  e.value = t;
33837
33837
  }
33838
- })), EB = R.model("SQLSnippetsModel", {
33839
- current: R.optional(R.array(CB), [])
33838
+ })), EB = O.model("SQLSnippetsModel", {
33839
+ current: O.optional(O.array(CB), [])
33840
33840
  }).views((e) => ({
33841
33841
  get json() {
33842
33842
  return e.current.map((t) => t.json);
@@ -33878,8 +33878,8 @@ const wB = R.model("QueryModel", {
33878
33878
  replaceByIndex(t, n) {
33879
33879
  e.current.splice(t, 1, n);
33880
33880
  }
33881
- })), kB = R.model("ContextModel", {
33882
- current: R.optional(R.frozen(), {})
33881
+ })), kB = O.model("ContextModel", {
33882
+ current: O.optional(O.frozen(), {})
33883
33883
  }).views((e) => ({
33884
33884
  get keys() {
33885
33885
  return Object.keys(e.current);
@@ -33897,10 +33897,10 @@ const wB = R.model("QueryModel", {
33897
33897
  set(t, n) {
33898
33898
  e.current[t] = n;
33899
33899
  }
33900
- })), TB = R.model({
33901
- data: R.optional(R.frozen(), []),
33902
- state: R.optional(R.enumeration(["idle", "loading", "error"]), "idle"),
33903
- error: R.frozen()
33900
+ })), TB = O.model({
33901
+ data: O.optional(O.frozen(), []),
33902
+ state: O.optional(O.enumeration(["idle", "loading", "error"]), "idle"),
33903
+ error: O.frozen()
33904
33904
  }).views((e) => ({
33905
33905
  get loading() {
33906
33906
  return e.state === "loading";
@@ -33939,10 +33939,10 @@ const wB = R.model("QueryModel", {
33939
33939
  }
33940
33940
  return "";
33941
33941
  }
33942
- })), MB = R.model({
33943
- data: R.optional(R.frozen(), []),
33944
- state: R.optional(R.enumeration(["idle", "loading", "error"]), "idle"),
33945
- error: R.frozen()
33942
+ })), MB = O.model({
33943
+ data: O.optional(O.frozen(), []),
33944
+ state: O.optional(O.enumeration(["idle", "loading", "error"]), "idle"),
33945
+ error: O.frozen()
33946
33946
  }).views((e) => ({
33947
33947
  get loading() {
33948
33948
  return e.state === "loading";
@@ -33989,10 +33989,10 @@ const wB = R.model("QueryModel", {
33989
33989
  t.relname = '${r}' AND n.nspname = '${o}';
33990
33990
  ` : "";
33991
33991
  }
33992
- })), OB = R.model({
33993
- data: R.optional(R.frozen(), {}),
33994
- state: R.optional(R.enumeration(["idle", "loading", "error"]), "idle"),
33995
- error: R.frozen()
33992
+ })), OB = O.model({
33993
+ data: O.optional(O.frozen(), {}),
33994
+ state: O.optional(O.enumeration(["idle", "loading", "error"]), "idle"),
33995
+ error: O.frozen()
33996
33996
  }).views((e) => ({
33997
33997
  get loading() {
33998
33998
  return e.state === "loading";
@@ -34004,16 +34004,16 @@ const wB = R.model("QueryModel", {
34004
34004
  const t = yo(e, 1).type;
34005
34005
  return t === Wt.MySQL || t === Wt.Postgresql ? "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name" : "";
34006
34006
  }
34007
- })), RB = R.model("DataSourceModel", {
34008
- id: R.string,
34009
- type: R.enumeration("DataSourceType", [Wt.HTTP, Wt.MySQL, Wt.Postgresql]),
34010
- key: R.string,
34011
- config: R.frozen(),
34012
- tables: R.optional(OB, {}),
34013
- columns: R.optional(TB, {}),
34014
- indexes: R.optional(MB, {}),
34015
- table_schema: R.optional(R.string, ""),
34016
- table_name: R.optional(R.string, "")
34007
+ })), RB = O.model("DataSourceModel", {
34008
+ id: O.string,
34009
+ type: O.enumeration("DataSourceType", [Wt.HTTP, Wt.MySQL, Wt.Postgresql]),
34010
+ key: O.string,
34011
+ config: O.frozen(),
34012
+ tables: O.optional(OB, {}),
34013
+ columns: O.optional(TB, {}),
34014
+ indexes: O.optional(MB, {}),
34015
+ table_schema: O.optional(O.string, ""),
34016
+ table_name: O.optional(O.string, "")
34017
34017
  }).volatile(() => ({
34018
34018
  controllers: {
34019
34019
  tables: new AbortController(),
@@ -34120,8 +34120,8 @@ const wB = R.model("QueryModel", {
34120
34120
  })
34121
34121
  );
34122
34122
  }
34123
- })), DB = R.model("DataSourcesModel", {
34124
- list: R.optional(R.array(RB), [])
34123
+ })), DB = O.model("DataSourcesModel", {
34124
+ list: O.optional(O.array(RB), [])
34125
34125
  }).views((e) => ({
34126
34126
  find({ type: t, key: n }) {
34127
34127
  return e.list.find((r) => r.key === n && r.type === t);
@@ -34161,9 +34161,9 @@ function AB(e) {
34161
34161
  return e.parentID ? ["_VIEWS_", e.parentID, "_PANELS_", e.value] : (console.error("[getPathFromOption] parentID is required"), null);
34162
34162
  }
34163
34163
  }
34164
- const $B = R.model("EditorModel", {
34165
- path: R.optional(R.frozen(), []),
34166
- settings_open: R.optional(R.boolean, !1)
34164
+ const $B = O.model("EditorModel", {
34165
+ path: O.optional(O.frozen(), []),
34166
+ settings_open: O.optional(O.boolean, !1)
34167
34167
  }).views((e) => ({
34168
34168
  get navOptions() {
34169
34169
  const { filters: t, views: n, sqlSnippets: r, queries: o } = Tn(e);
@@ -34235,8 +34235,8 @@ const $B = R.model("EditorModel", {
34235
34235
  const n = AB(t);
34236
34236
  n && e.setPath(n);
34237
34237
  }
34238
- })), PB = R.model("MockContextModel", {
34239
- current: R.optional(R.frozen(), {})
34238
+ })), PB = O.model("MockContextModel", {
34239
+ current: O.optional(O.frozen(), {})
34240
34240
  }).views((e) => ({
34241
34241
  get keys() {
34242
34242
  return Object.keys(e.current);
@@ -34254,13 +34254,13 @@ const $B = R.model("EditorModel", {
34254
34254
  set(t, n) {
34255
34255
  e.current[t] = n;
34256
34256
  }
34257
- })), NB = R.model("PanelLayoutModel", {
34258
- x: R.number,
34259
- y: R.number,
34260
- w: R.number,
34261
- h: R.number,
34262
- moved: R.optional(R.boolean, !1),
34263
- static: R.optional(R.boolean, !1)
34257
+ })), NB = O.model("PanelLayoutModel", {
34258
+ x: O.number,
34259
+ y: O.optional(O.number, 0),
34260
+ w: O.number,
34261
+ h: O.number,
34262
+ moved: O.optional(O.boolean, !1),
34263
+ static: O.optional(O.boolean, !1)
34264
34264
  }).views((e) => ({
34265
34265
  get json() {
34266
34266
  const { x: t, y: n, w: r, h: o, moved: i } = e;
@@ -34278,8 +34278,8 @@ const $B = R.model("EditorModel", {
34278
34278
  const { x: n, y: r, w: o, h: i, moved: a } = t;
34279
34279
  e.x = n, e.y = r, e.w = o, e.h = i, e.moved = !!a, e.static = !!t.static;
34280
34280
  }
34281
- })), IB = R.model("PanelStyleBorderModel", {
34282
- enabled: R.boolean
34281
+ })), IB = O.model("PanelStyleBorderModel", {
34282
+ enabled: O.boolean
34283
34283
  }).views((e) => ({
34284
34284
  get json() {
34285
34285
  const { enabled: t } = e;
@@ -34291,7 +34291,7 @@ const $B = R.model("EditorModel", {
34291
34291
  setEnabled(t) {
34292
34292
  e.enabled = t;
34293
34293
  }
34294
- })), LB = R.model("PanelStyleModel", {
34294
+ })), LB = O.model("PanelStyleModel", {
34295
34295
  border: IB
34296
34296
  }).views((e) => ({
34297
34297
  get json() {
@@ -34300,9 +34300,9 @@ const $B = R.model("EditorModel", {
34300
34300
  border: t.json
34301
34301
  };
34302
34302
  }
34303
- })).actions((e) => ({})), zB = R.model("PanelVizModel", {
34304
- type: R.string,
34305
- conf: R.frozen()
34303
+ })).actions((e) => ({})), zB = O.model("PanelVizModel", {
34304
+ type: O.string,
34305
+ conf: O.frozen()
34306
34306
  }).views((e) => ({
34307
34307
  get json() {
34308
34308
  return {
@@ -34317,34 +34317,34 @@ const $B = R.model("EditorModel", {
34317
34317
  setConf(t) {
34318
34318
  e.conf = t;
34319
34319
  }
34320
- })), VB = R.model("VariableModel", {
34321
- name: R.string,
34322
- size: R.string,
34323
- weight: R.string,
34324
- color: R.union(
34325
- R.model({ type: R.literal("static"), staticColor: R.string }),
34326
- R.model({
34327
- type: R.literal("continuous"),
34328
- valueRange: R.array(R.number),
34329
- colorRange: R.array(R.string)
34320
+ })), VB = O.model("VariableModel", {
34321
+ name: O.string,
34322
+ size: O.string,
34323
+ weight: O.string,
34324
+ color: O.union(
34325
+ O.model({ type: O.literal("static"), staticColor: O.string }),
34326
+ O.model({
34327
+ type: O.literal("continuous"),
34328
+ valueRange: O.array(O.number),
34329
+ colorRange: O.array(O.string)
34330
34330
  }),
34331
- R.model({ type: R.literal("piecewise") })
34331
+ O.model({ type: O.literal("piecewise") })
34332
34332
  ),
34333
- formatter: R.model({
34334
- output: R.enumeration("Output", ["number", "percent"]),
34335
- average: R.optional(R.boolean, !1),
34336
- mantissa: R.number,
34337
- trimMantissa: R.optional(R.boolean, !1)
34333
+ formatter: O.model({
34334
+ output: O.enumeration("Output", ["number", "percent"]),
34335
+ average: O.optional(O.boolean, !1),
34336
+ mantissa: O.number,
34337
+ trimMantissa: O.optional(O.boolean, !1)
34338
34338
  }),
34339
- data_field: R.string,
34340
- aggregation: R.union(
34341
- R.model({
34342
- type: R.enumeration(["none", "sum", "mean", "median", "min", "max"]),
34343
- config: R.frozen()
34339
+ data_field: O.string,
34340
+ aggregation: O.union(
34341
+ O.model({
34342
+ type: O.enumeration(["none", "sum", "mean", "median", "min", "max"]),
34343
+ config: O.frozen()
34344
34344
  }),
34345
- R.model({
34346
- type: R.literal("quantile"),
34347
- config: R.model({ p: R.number })
34345
+ O.model({
34346
+ type: O.literal("quantile"),
34347
+ config: O.model({ p: O.number })
34348
34348
  })
34349
34349
  )
34350
34350
  }).views((e) => ({
@@ -34377,15 +34377,15 @@ class FB {
34377
34377
  zn(this.copy, t);
34378
34378
  }
34379
34379
  }
34380
- const HB = (e) => new FB(e), BB = R.model({
34381
- id: R.string,
34382
- title: R.string,
34383
- description: R.string,
34380
+ const HB = (e) => new FB(e), BB = O.model({
34381
+ id: O.string,
34382
+ title: O.string,
34383
+ description: O.string,
34384
34384
  layout: NB,
34385
- queryID: R.string,
34385
+ queryID: O.string,
34386
34386
  viz: zB,
34387
34387
  style: LB,
34388
- variables: R.optional(R.array(VB), [])
34388
+ variables: O.optional(O.array(VB), [])
34389
34389
  }).views((e) => ({
34390
34390
  get query() {
34391
34391
  return Xf(e, Mu).queries.findByID(e.queryID);
@@ -34456,8 +34456,8 @@ function jB(e) {
34456
34456
  }
34457
34457
  };
34458
34458
  }
34459
- const KB = R.model("PanelsModel", {
34460
- list: R.optional(R.array(BB), [])
34459
+ const KB = O.model("PanelsModel", {
34460
+ list: O.optional(O.array(BB), [])
34461
34461
  }).views((e) => ({
34462
34462
  get json() {
34463
34463
  return e.list.map((t) => t.json);
@@ -34540,8 +34540,8 @@ const KB = R.model("PanelsModel", {
34540
34540
  replaceByIndex(t, n) {
34541
34541
  e.list.splice(t, 1, n);
34542
34542
  }
34543
- })), D0 = R.model("ViewModel_Division", {
34544
- _name: R.literal(ft.Division)
34543
+ })), D0 = O.model("ViewModel_Division", {
34544
+ _name: O.literal(ft.Division)
34545
34545
  }).views((e) => ({
34546
34546
  get json() {
34547
34547
  const { _name: t } = e;
@@ -34557,9 +34557,9 @@ const KB = R.model("PanelsModel", {
34557
34557
  `
34558
34558
  `
34559
34559
  )
34560
- }, GB = R.model("CustomModalTitleModel", {
34561
- enabled: R.optional(R.boolean, !1),
34562
- func_content: R.optional(R.string, "")
34560
+ }, GB = O.model("CustomModalTitleModel", {
34561
+ enabled: O.optional(O.boolean, !1),
34562
+ func_content: O.optional(O.string, "")
34563
34563
  }).views((e) => ({
34564
34564
  get json() {
34565
34565
  const { enabled: t, func_content: n } = e;
@@ -34592,11 +34592,11 @@ const KB = R.model("PanelsModel", {
34592
34592
  replace({ enabled: t, func_content: n }) {
34593
34593
  e.enabled = t, e.func_content = n;
34594
34594
  }
34595
- })), A0 = R.model("ViewModel_Modal", {
34596
- _name: R.literal(ft.Modal),
34597
- width: R.string,
34598
- height: R.string,
34599
- custom_modal_title: R.optional(GB, Tu)
34595
+ })), A0 = O.model("ViewModel_Modal", {
34596
+ _name: O.literal(ft.Modal),
34597
+ width: O.string,
34598
+ height: O.string,
34599
+ custom_modal_title: O.optional(GB, Tu)
34600
34600
  }).views((e) => ({
34601
34601
  get json() {
34602
34602
  const { _name: t, width: n, height: r, custom_modal_title: o } = e;
@@ -34618,11 +34618,11 @@ const KB = R.model("PanelsModel", {
34618
34618
  _name: ft.Modal,
34619
34619
  width: "90vw",
34620
34620
  height: "90vh"
34621
- }), UB = R.model("ViewModel_Tabs_Tab", {
34622
- id: R.identifier,
34623
- name: R.string,
34624
- view_id: R.string,
34625
- color: R.optional(R.string, "")
34621
+ }), UB = O.model("ViewModel_Tabs_Tab", {
34622
+ id: O.identifier,
34623
+ name: O.string,
34624
+ view_id: O.string,
34625
+ color: O.optional(O.string, "")
34626
34626
  }).views((e) => ({
34627
34627
  get json() {
34628
34628
  const { id: t, name: n, view_id: r, color: o } = e;
@@ -34643,15 +34643,15 @@ const KB = R.model("PanelsModel", {
34643
34643
  setColor(t) {
34644
34644
  e.color = t;
34645
34645
  }
34646
- })), $0 = R.model("ViewModel_Tabs", {
34647
- _name: R.literal(ft.Modal),
34648
- tabs: R.optional(R.array(UB), []),
34649
- variant: R.optional(R.enumeration("variant", ["default", "outline", "pills"]), "default"),
34650
- orientation: R.optional(
34651
- R.enumeration("orientation", ["horizontal", "vertical"]),
34646
+ })), $0 = O.model("ViewModel_Tabs", {
34647
+ _name: O.literal(ft.Modal),
34648
+ tabs: O.optional(O.array(UB), []),
34649
+ variant: O.optional(O.enumeration("variant", ["default", "outline", "pills"]), "default"),
34650
+ orientation: O.optional(
34651
+ O.enumeration("orientation", ["horizontal", "vertical"]),
34652
34652
  "horizontal"
34653
34653
  ),
34654
- grow: R.optional(R.boolean, !1)
34654
+ grow: O.optional(O.boolean, !1)
34655
34655
  }).views((e) => ({
34656
34656
  get json() {
34657
34657
  const { _name: t, variant: n, orientation: r, tabs: o, grow: i } = e;
@@ -34690,16 +34690,16 @@ const KB = R.model("PanelsModel", {
34690
34690
  })), YB = () => $0.create({
34691
34691
  _name: ft.Modal,
34692
34692
  tabs: []
34693
- }), XB = R.model({
34694
- id: R.identifier,
34695
- name: R.string,
34696
- type: R.enumeration("EViewComponentType", [
34693
+ }), XB = O.model({
34694
+ id: O.identifier,
34695
+ name: O.string,
34696
+ type: O.enumeration("EViewComponentType", [
34697
34697
  ft.Division,
34698
34698
  ft.Modal,
34699
34699
  ft.Tabs
34700
34700
  ]),
34701
- config: R.union(D0, A0, $0),
34702
- panelIDs: R.optional(R.array(R.string), [])
34701
+ config: O.union(D0, A0, $0),
34702
+ panelIDs: O.optional(O.array(O.string), [])
34703
34703
  }).views((e) => ({
34704
34704
  get json() {
34705
34705
  const { id: t, name: n, type: r, config: o } = e;
@@ -34738,10 +34738,10 @@ const KB = R.model("PanelsModel", {
34738
34738
  const n = e.panelIDs.filter((r) => r !== t);
34739
34739
  e.panelIDs.length = 0, e.panelIDs.push(...n);
34740
34740
  }
34741
- })).actions((e) => ({})), QB = R.model("ViewsModel", {
34742
- current: R.optional(R.array(XB), []),
34743
- visibleViewIDs: R.array(R.string),
34744
- idOfVIE: R.string
34741
+ })).actions((e) => ({})), QB = O.model("ViewsModel", {
34742
+ current: O.optional(O.array(XB), []),
34743
+ visibleViewIDs: O.array(O.string),
34744
+ idOfVIE: O.string
34745
34745
  }).views((e) => ({
34746
34746
  get json() {
34747
34747
  return e.current.map((t) => Bl(t.json));
@@ -34852,11 +34852,11 @@ function P0(e) {
34852
34852
  idOfVIE: n
34853
34853
  };
34854
34854
  }
34855
- const ZB = R.model({
34856
- id: R.identifier,
34857
- name: R.string,
34858
- group: R.string,
34859
- version: R.string,
34855
+ const ZB = O.model({
34856
+ id: O.identifier,
34857
+ name: O.string,
34858
+ group: O.string,
34859
+ version: O.string,
34860
34860
  datasources: DB,
34861
34861
  filters: oB,
34862
34862
  queries: SB,
@@ -34866,7 +34866,7 @@ const ZB = R.model({
34866
34866
  context: kB,
34867
34867
  mock_context: PB,
34868
34868
  editor: $B,
34869
- origin: R.maybe(R.frozen())
34869
+ origin: O.maybe(O.frozen())
34870
34870
  }).views((e) => ({
34871
34871
  get json() {
34872
34872
  return {
@@ -35012,7 +35012,7 @@ const ZB = R.model({
35012
35012
  } = t;
35013
35013
  e.name = n, e.group = r, e.version = o, zn(e.filters.current, i), zn(e.views.current, P0(a).current), zn(e.panels.list, l), zn(e.queries.current, c), zn(e.sqlSnippets.current, u), e.mock_context.current = d;
35014
35014
  }
35015
- })), Mu = R.snapshotProcessor(ZB, {
35015
+ })), Mu = O.snapshotProcessor(ZB, {
35016
35016
  preProcessor(e) {
35017
35017
  return {
35018
35018
  ...e,
@@ -35458,8 +35458,8 @@ function d6() {
35458
35458
  }
35459
35459
  function r(_, x, S) {
35460
35460
  {
35461
- var k = t.ReactDebugCurrentFrame, O = k.getStackAddendum();
35462
- O !== "" && (x += "%s", S = S.concat([O]));
35461
+ var k = t.ReactDebugCurrentFrame, R = k.getStackAddendum();
35462
+ R !== "" && (x += "%s", S = S.concat([R]));
35463
35463
  var L = S.map(function(H) {
35464
35464
  return String(H);
35465
35465
  });
@@ -35474,8 +35474,8 @@ function d6() {
35474
35474
  d || e.startTransition !== void 0 && (d = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
35475
35475
  var k = x();
35476
35476
  if (!f) {
35477
- var O = x();
35478
- i(k, O) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), f = !0);
35477
+ var R = x();
35478
+ i(k, R) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), f = !0);
35479
35479
  }
35480
35480
  var L = a({
35481
35481
  inst: {
@@ -35551,16 +35551,16 @@ function f6() {
35551
35551
  function y(k) {
35552
35552
  if (!w) {
35553
35553
  if (w = !0, _ = k, k = h(k), p !== void 0 && m.hasValue) {
35554
- var O = m.value;
35555
- if (p(O, k))
35556
- return x = O;
35554
+ var R = m.value;
35555
+ if (p(R, k))
35556
+ return x = R;
35557
35557
  }
35558
35558
  return x = k;
35559
35559
  }
35560
- if (O = x, r(_, k))
35561
- return O;
35560
+ if (R = x, r(_, k))
35561
+ return R;
35562
35562
  var L = h(k);
35563
- return p !== void 0 && p(O, L) ? O : (_ = k, x = L);
35563
+ return p !== void 0 && p(R, L) ? R : (_ = k, x = L);
35564
35564
  }
35565
35565
  var w = !1, _, x, S = f === void 0 ? null : f;
35566
35566
  return [function() {
@@ -35601,22 +35601,22 @@ function h6() {
35601
35601
  value: null
35602
35602
  }, m.current = b) : b = m.current;
35603
35603
  var y = l(function() {
35604
- var S = !1, k, O, L = function(P) {
35604
+ var S = !1, k, R, L = function(P) {
35605
35605
  if (!S) {
35606
35606
  S = !0, k = P;
35607
35607
  var V = p(P);
35608
35608
  if (g !== void 0 && b.hasValue) {
35609
35609
  var E = b.value;
35610
35610
  if (g(E, V))
35611
- return O = E, E;
35611
+ return R = E, E;
35612
35612
  }
35613
- return O = V, V;
35613
+ return R = V, V;
35614
35614
  }
35615
- var N = k, $ = O;
35615
+ var N = k, $ = R;
35616
35616
  if (r(N, P))
35617
35617
  return $;
35618
35618
  var M = p(P);
35619
- return g !== void 0 && g($, M) ? $ : (k = P, O = M, M);
35619
+ return g !== void 0 && g($, M) ? $ : (k = P, R = M, M);
35620
35620
  }, H = h === void 0 ? null : h, A = function() {
35621
35621
  return L(f());
35622
35622
  }, T = H === null ? void 0 : function() {
@@ -36436,24 +36436,24 @@ function o8() {
36436
36436
  }
36437
36437
  function b(x, S) {
36438
36438
  if (!!e.call(this, x, S)) {
36439
- var k = x.changedTouches, O = t.call(this, x, S), L = k.length, H, A;
36439
+ var k = x.changedTouches, R = t.call(this, x, S), L = k.length, H, A;
36440
36440
  for (H = 0; H < L; ++H)
36441
- (A = _(this, O, x, S, k[H].identifier, k[H])) && (Oc(x), A("start", x, k[H]));
36441
+ (A = _(this, R, x, S, k[H].identifier, k[H])) && (Oc(x), A("start", x, k[H]));
36442
36442
  }
36443
36443
  }
36444
36444
  function y(x) {
36445
- var S = x.changedTouches, k = S.length, O, L;
36446
- for (O = 0; O < k; ++O)
36447
- (L = o[S[O].identifier]) && (ai(x), L("drag", x, S[O]));
36445
+ var S = x.changedTouches, k = S.length, R, L;
36446
+ for (R = 0; R < k; ++R)
36447
+ (L = o[S[R].identifier]) && (ai(x), L("drag", x, S[R]));
36448
36448
  }
36449
36449
  function w(x) {
36450
- var S = x.changedTouches, k = S.length, O, L;
36450
+ var S = x.changedTouches, k = S.length, R, L;
36451
36451
  for (d && clearTimeout(d), d = setTimeout(function() {
36452
36452
  d = null;
36453
- }, 500), O = 0; O < k; ++O)
36454
- (L = o[S[O].identifier]) && (Oc(x), L("end", x, S[O]));
36453
+ }, 500), R = 0; R < k; ++R)
36454
+ (L = o[S[R].identifier]) && (Oc(x), L("end", x, S[R]));
36455
36455
  }
36456
- function _(x, S, k, O, L, H) {
36456
+ function _(x, S, k, R, L, H) {
36457
36457
  var A = i.copy(), T = rr(H || k, S), P, V, E;
36458
36458
  if ((E = n.call(x, new Ru("beforestart", {
36459
36459
  sourceEvent: k,
@@ -36465,7 +36465,7 @@ function o8() {
36465
36465
  dx: 0,
36466
36466
  dy: 0,
36467
36467
  dispatch: A
36468
- }), O)) != null)
36468
+ }), R)) != null)
36469
36469
  return P = E.x - T[0] || 0, V = E.y - T[1] || 0, function N($, M, B) {
36470
36470
  var j = T, G;
36471
36471
  switch ($) {
@@ -36493,7 +36493,7 @@ function o8() {
36493
36493
  dy: T[1] - j[1],
36494
36494
  dispatch: A
36495
36495
  }),
36496
- O
36496
+ R
36497
36497
  );
36498
36498
  };
36499
36499
  }
@@ -36945,17 +36945,17 @@ const R8 = function e(t, n, r) {
36945
36945
  function o(i, a) {
36946
36946
  var l = i[0], c = i[1], u = i[2], d = a[0], f = a[1], h = a[2], p = d - l, g = f - c, m = p * p + g * g, b, y;
36947
36947
  if (m < T8)
36948
- y = Math.log(h / u) / t, b = function(O) {
36948
+ y = Math.log(h / u) / t, b = function(R) {
36949
36949
  return [
36950
- l + O * p,
36951
- c + O * g,
36952
- u * Math.exp(t * O * y)
36950
+ l + R * p,
36951
+ c + R * g,
36952
+ u * Math.exp(t * R * y)
36953
36953
  ];
36954
36954
  };
36955
36955
  else {
36956
36956
  var w = Math.sqrt(m), _ = (h * h - u * u + r * m) / (2 * u * n * w), x = (h * h - u * u - r * m) / (2 * h * n * w), S = Math.log(Math.sqrt(_ * _ + 1) - _), k = Math.log(Math.sqrt(x * x + 1) - x);
36957
- y = (k - S) / t, b = function(O) {
36958
- var L = O * y, H = Mg(S), A = u / (n * w) * (H * O8(t * L + S) - M8(S));
36957
+ y = (k - S) / t, b = function(R) {
36958
+ var L = R * y, H = Mg(S), A = u / (n * w) * (H * O8(t * L + S) - M8(S));
36959
36959
  return [
36960
36960
  l + A * p,
36961
36961
  c + A * g,
@@ -37722,12 +37722,12 @@ function vx() {
37722
37722
  });
37723
37723
  }
37724
37724
  function k(E, N, $) {
37725
- return !$ && E.__zooming || new O(E, N);
37725
+ return !$ && E.__zooming || new R(E, N);
37726
37726
  }
37727
- function O(E, N) {
37727
+ function R(E, N) {
37728
37728
  this.that = E, this.args = N, this.active = 0, this.sourceEvent = null, this.extent = t.apply(E, N), this.taps = 0;
37729
37729
  }
37730
- O.prototype = {
37730
+ R.prototype = {
37731
37731
  event: function(E) {
37732
37732
  return E && (this.sourceEvent = E), this;
37733
37733
  },
@@ -38080,7 +38080,7 @@ function rW({ source: e, sourcePosition: t = Ae.Bottom, target: n, targetPositio
38080
38080
  } else {
38081
38081
  const S = [{ x: c.x, y: u.y }], k = [{ x: u.x, y: c.y }];
38082
38082
  if (f === "x" ? p = a.x === h ? k : S : p = a.y === h ? S : k, t !== r) {
38083
- const O = f === "x" ? "y" : "x", L = a[f] === l[O], H = c[O] > u[O], A = c[O] < u[O];
38083
+ const R = f === "x" ? "y" : "x", L = a[f] === l[R], H = c[R] > u[R], A = c[R] < u[R];
38084
38084
  (a[f] === 1 && (!L && H || L && A) || a[f] !== 1 && (!L && A || L && H)) && (p = f === "x" ? S : k);
38085
38085
  }
38086
38086
  g = p[0].x, m = p[0].y;
@@ -38352,7 +38352,7 @@ function mW(e, t) {
38352
38352
  function Nx({ event: e, handleId: t, nodeId: n, onConnect: r, isTarget: o, getState: i, setState: a, isValidConnection: l, edgeUpdaterType: c, onEdgeUpdateEnd: u }) {
38353
38353
  const d = xx(e.target), { connectionMode: f, domNode: h, autoPanOnConnect: p, connectionRadius: g, onConnectStart: m, panBy: b, getNodes: y, cancelConnection: w } = i();
38354
38354
  let _ = 0, x;
38355
- const { x: S, y: k } = lo(e), O = d == null ? void 0 : d.elementFromPoint(S, k), L = Px(c, O), H = h == null ? void 0 : h.getBoundingClientRect();
38355
+ const { x: S, y: k } = lo(e), R = d == null ? void 0 : d.elementFromPoint(S, k), L = Px(c, R), H = h == null ? void 0 : h.getBoundingClientRect();
38356
38356
  if (!H || !L)
38357
38357
  return;
38358
38358
  let A, T = lo(e, H), P = !1, V = null, E = !1;
@@ -38399,10 +38399,10 @@ const vW = () => !0, yW = (e) => ({
38399
38399
  connectOnClick: e.connectOnClick,
38400
38400
  noPanClassName: e.noPanClassName
38401
38401
  }), Ix = Vt(({ type: e = "source", position: t = Ae.Top, isValidConnection: n = vW, isConnectable: r = !0, id: o, onConnect: i, children: a, className: l, onMouseDown: c, onTouchStart: u, ...d }, f) => {
38402
- var k, O;
38402
+ var k, R;
38403
38403
  const h = yn(), p = sW();
38404
38404
  if (!p)
38405
- return (O = (k = h.getState()).onError) == null || O.call(k, "010", wr["010"]()), null;
38405
+ return (R = (k = h.getState()).onError) == null || R.call(k, "010", wr["010"]()), null;
38406
38406
  const { connectionStartHandle: g, connectOnClick: m, noPanClassName: b } = Gt(yW, Mn), y = o || null, w = e === "target", _ = (L) => {
38407
38407
  const { defaultEdgeOptions: H, onConnect: A, hasDefaultEdges: T } = h.getState(), P = {
38408
38408
  ...H,
@@ -38506,14 +38506,14 @@ function gt(e, t, n) {
38506
38506
  typeof t < "u" && n({ [e]: t });
38507
38507
  }, [t]);
38508
38508
  }
38509
- const CW = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: o, onConnectStart: i, onConnectEnd: a, onClickConnectStart: l, onClickConnectEnd: c, nodesDraggable: u, nodesConnectable: d, nodesFocusable: f, edgesFocusable: h, elevateNodesOnSelect: p, minZoom: g, maxZoom: m, nodeExtent: b, onNodesChange: y, onEdgesChange: w, elementsSelectable: _, connectionMode: x, snapGrid: S, snapToGrid: k, translateExtent: O, connectOnClick: L, defaultEdgeOptions: H, fitView: A, fitViewOptions: T, onNodesDelete: P, onEdgesDelete: V, onNodeDrag: E, onNodeDragStart: N, onNodeDragStop: $, onSelectionDrag: M, onSelectionDragStart: B, onSelectionDragStop: j, noPanClassName: G, nodeOrigin: U, rfId: oe, autoPanOnConnect: ae, autoPanOnNodeDrag: Q, onError: te, connectionRadius: me }) => {
38509
+ const CW = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: o, onConnectStart: i, onConnectEnd: a, onClickConnectStart: l, onClickConnectEnd: c, nodesDraggable: u, nodesConnectable: d, nodesFocusable: f, edgesFocusable: h, elevateNodesOnSelect: p, minZoom: g, maxZoom: m, nodeExtent: b, onNodesChange: y, onEdgesChange: w, elementsSelectable: _, connectionMode: x, snapGrid: S, snapToGrid: k, translateExtent: R, connectOnClick: L, defaultEdgeOptions: H, fitView: A, fitViewOptions: T, onNodesDelete: P, onEdgesDelete: V, onNodeDrag: E, onNodeDragStart: N, onNodeDragStop: $, onSelectionDrag: M, onSelectionDragStart: B, onSelectionDragStop: j, noPanClassName: G, nodeOrigin: U, rfId: oe, autoPanOnConnect: ae, autoPanOnNodeDrag: Q, onError: te, connectionRadius: me }) => {
38510
38510
  const { setNodes: ge, setEdges: he, setDefaultNodesAndEdges: de, setMinZoom: Oe, setMaxZoom: Te, setTranslateExtent: J, setNodeExtent: se, reset: Re } = Gt(SW, Mn), X = yn();
38511
38511
  return ue(() => {
38512
38512
  const Me = r == null ? void 0 : r.map((_e) => ({ ..._e, ...H }));
38513
38513
  return de(n, Me), () => {
38514
38514
  Re();
38515
38515
  };
38516
- }, []), gt("defaultEdgeOptions", H, X.setState), gt("connectionMode", x, X.setState), gt("onConnect", o, X.setState), gt("onConnectStart", i, X.setState), gt("onConnectEnd", a, X.setState), gt("onClickConnectStart", l, X.setState), gt("onClickConnectEnd", c, X.setState), gt("nodesDraggable", u, X.setState), gt("nodesConnectable", d, X.setState), gt("nodesFocusable", f, X.setState), gt("edgesFocusable", h, X.setState), gt("elementsSelectable", _, X.setState), gt("elevateNodesOnSelect", p, X.setState), gt("snapToGrid", k, X.setState), gt("snapGrid", S, X.setState), gt("onNodesChange", y, X.setState), gt("onEdgesChange", w, X.setState), gt("connectOnClick", L, X.setState), gt("fitViewOnInit", A, X.setState), gt("fitViewOnInitOptions", T, X.setState), gt("onNodesDelete", P, X.setState), gt("onEdgesDelete", V, X.setState), gt("onNodeDrag", E, X.setState), gt("onNodeDragStart", N, X.setState), gt("onNodeDragStop", $, X.setState), gt("onSelectionDrag", M, X.setState), gt("onSelectionDragStart", B, X.setState), gt("onSelectionDragStop", j, X.setState), gt("noPanClassName", G, X.setState), gt("nodeOrigin", U, X.setState), gt("rfId", oe, X.setState), gt("autoPanOnConnect", ae, X.setState), gt("autoPanOnNodeDrag", Q, X.setState), gt("onError", te, X.setState), gt("connectionRadius", me, X.setState), Go(e, ge), Go(t, he), Go(g, Oe), Go(m, Te), Go(O, J), Go(b, se), null;
38516
+ }, []), gt("defaultEdgeOptions", H, X.setState), gt("connectionMode", x, X.setState), gt("onConnect", o, X.setState), gt("onConnectStart", i, X.setState), gt("onConnectEnd", a, X.setState), gt("onClickConnectStart", l, X.setState), gt("onClickConnectEnd", c, X.setState), gt("nodesDraggable", u, X.setState), gt("nodesConnectable", d, X.setState), gt("nodesFocusable", f, X.setState), gt("edgesFocusable", h, X.setState), gt("elementsSelectable", _, X.setState), gt("elevateNodesOnSelect", p, X.setState), gt("snapToGrid", k, X.setState), gt("snapGrid", S, X.setState), gt("onNodesChange", y, X.setState), gt("onEdgesChange", w, X.setState), gt("connectOnClick", L, X.setState), gt("fitViewOnInit", A, X.setState), gt("fitViewOnInitOptions", T, X.setState), gt("onNodesDelete", P, X.setState), gt("onEdgesDelete", V, X.setState), gt("onNodeDrag", E, X.setState), gt("onNodeDragStart", N, X.setState), gt("onNodeDragStop", $, X.setState), gt("onSelectionDrag", M, X.setState), gt("onSelectionDragStart", B, X.setState), gt("onSelectionDragStop", j, X.setState), gt("noPanClassName", G, X.setState), gt("nodeOrigin", U, X.setState), gt("rfId", oe, X.setState), gt("autoPanOnConnect", ae, X.setState), gt("autoPanOnNodeDrag", Q, X.setState), gt("onError", te, X.setState), gt("connectionRadius", me, X.setState), Go(e, ge), Go(t, he), Go(g, Oe), Go(m, Te), Go(R, J), Go(b, se), null;
38517
38517
  }, Hg = { display: "none" }, EW = {
38518
38518
  position: "absolute",
38519
38519
  width: 1,
@@ -38534,7 +38534,7 @@ function OW({ rfId: e, disableKeyboardA11y: t }) {
38534
38534
  }
38535
38535
  const RW = (e, t, n) => n === Ae.Left ? e - t : n === Ae.Right ? e + t : e, DW = (e, t, n) => n === Ae.Top ? e - t : n === Ae.Bottom ? e + t : e, Bg = "react-flow__edgeupdater", jg = ({ position: e, centerX: t, centerY: n, radius: r = 10, onMouseDown: o, onMouseEnter: i, onMouseOut: a, type: l }) => s("circle", { onMouseDown: o, onMouseEnter: i, onMouseOut: a, className: Sn([Bg, `${Bg}-${l}`]), cx: RW(t, r, e), cy: DW(n, r, e), r, stroke: "transparent", fill: "transparent" });
38536
38536
  var qo = (e) => {
38537
- const t = ({ id: n, className: r, type: o, data: i, onClick: a, onEdgeDoubleClick: l, selected: c, animated: u, label: d, labelStyle: f, labelShowBg: h, labelBgStyle: p, labelBgPadding: g, labelBgBorderRadius: m, style: b, source: y, target: w, sourceX: _, sourceY: x, targetX: S, targetY: k, sourcePosition: O, targetPosition: L, elementsSelectable: H, hidden: A, sourceHandleId: T, targetHandleId: P, onContextMenu: V, onMouseEnter: E, onMouseMove: N, onMouseLeave: $, edgeUpdaterRadius: M, onEdgeUpdate: B, onEdgeUpdateStart: j, onEdgeUpdateEnd: G, markerEnd: U, markerStart: oe, rfId: ae, ariaLabel: Q, isFocusable: te, pathOptions: me, interactionWidth: ge }) => {
38537
+ const t = ({ id: n, className: r, type: o, data: i, onClick: a, onEdgeDoubleClick: l, selected: c, animated: u, label: d, labelStyle: f, labelShowBg: h, labelBgStyle: p, labelBgPadding: g, labelBgBorderRadius: m, style: b, source: y, target: w, sourceX: _, sourceY: x, targetX: S, targetY: k, sourcePosition: R, targetPosition: L, elementsSelectable: H, hidden: A, sourceHandleId: T, targetHandleId: P, onContextMenu: V, onMouseEnter: E, onMouseMove: N, onMouseLeave: $, edgeUpdaterRadius: M, onEdgeUpdate: B, onEdgeUpdateStart: j, onEdgeUpdateEnd: G, markerEnd: U, markerStart: oe, rfId: ae, ariaLabel: Q, isFocusable: te, pathOptions: me, interactionWidth: ge }) => {
38538
38538
  const he = Ee(null), [de, Oe] = ze(!1), [Te, J] = ze(!1), se = yn(), Re = Y(() => `url(#${Fu(oe, ae)})`, [oe, ae]), X = Y(() => `url(#${Fu(U, ae)})`, [U, ae]);
38539
38539
  if (A)
38540
38540
  return null;
@@ -38574,7 +38574,7 @@ var qo = (e) => {
38574
38574
  `react-flow__edge-${o}`,
38575
38575
  r,
38576
38576
  { selected: c, animated: u, inactive: qe, updating: de }
38577
- ]), onClick: Me, onDoubleClick: _e, onContextMenu: $e, onMouseEnter: Le, onMouseMove: we, onMouseLeave: et, onKeyDown: te ? pt : void 0, tabIndex: te ? 0 : void 0, role: te ? "button" : void 0, "data-testid": `rf__edge-${n}`, "aria-label": Q === null ? void 0 : Q || `Edge from ${y} to ${w}`, "aria-describedby": te ? `${Kx}-${ae}` : void 0, ref: he, children: [!Te && s(e, { id: n, source: y, target: w, selected: c, animated: u, label: d, labelStyle: f, labelShowBg: h, labelBgStyle: p, labelBgPadding: g, labelBgBorderRadius: m, data: i, style: b, sourceX: _, sourceY: x, targetX: S, targetY: k, sourcePosition: O, targetPosition: L, sourceHandleId: T, targetHandleId: P, markerStart: Re, markerEnd: X, pathOptions: me, interactionWidth: ge }), wt && v(ke, { children: [s(jg, { position: O, centerX: _, centerY: x, radius: M, onMouseDown: at, onMouseEnter: Xe, onMouseOut: Ge, type: "source" }), s(jg, { position: L, centerX: S, centerY: k, radius: M, onMouseDown: Pe, onMouseEnter: Xe, onMouseOut: Ge, type: "target" })] })] });
38577
+ ]), onClick: Me, onDoubleClick: _e, onContextMenu: $e, onMouseEnter: Le, onMouseMove: we, onMouseLeave: et, onKeyDown: te ? pt : void 0, tabIndex: te ? 0 : void 0, role: te ? "button" : void 0, "data-testid": `rf__edge-${n}`, "aria-label": Q === null ? void 0 : Q || `Edge from ${y} to ${w}`, "aria-describedby": te ? `${Kx}-${ae}` : void 0, ref: he, children: [!Te && s(e, { id: n, source: y, target: w, selected: c, animated: u, label: d, labelStyle: f, labelShowBg: h, labelBgStyle: p, labelBgPadding: g, labelBgBorderRadius: m, data: i, style: b, sourceX: _, sourceY: x, targetX: S, targetY: k, sourcePosition: R, targetPosition: L, sourceHandleId: T, targetHandleId: P, markerStart: Re, markerEnd: X, pathOptions: me, interactionWidth: ge }), wt && v(ke, { children: [s(jg, { position: R, centerX: _, centerY: x, radius: M, onMouseDown: at, onMouseEnter: Xe, onMouseOut: Ge, type: "source" }), s(jg, { position: L, centerX: S, centerY: k, radius: M, onMouseDown: Pe, onMouseEnter: Xe, onMouseOut: Ge, type: "target" })] })] });
38578
38578
  };
38579
38579
  return t.displayName = "EdgeWrapper", Ft(t);
38580
38580
  };
@@ -38791,13 +38791,13 @@ function qx({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
38791
38791
  return ue(() => {
38792
38792
  if (e != null && e.current) {
38793
38793
  const w = Xn(e.current), _ = ({ x: S, y: k }) => {
38794
- const { nodeInternals: O, onNodeDrag: L, onSelectionDrag: H, updateNodePositions: A, nodeExtent: T, snapGrid: P, snapToGrid: V, nodeOrigin: E, onError: N } = l.getState();
38794
+ const { nodeInternals: R, onNodeDrag: L, onSelectionDrag: H, updateNodePositions: A, nodeExtent: T, snapGrid: P, snapToGrid: V, nodeOrigin: E, onError: N } = l.getState();
38795
38795
  f.current = { x: S, y: k };
38796
38796
  let $ = !1;
38797
38797
  if (d.current = d.current.map((B) => {
38798
38798
  const j = { x: S - B.distance.x, y: k - B.distance.y };
38799
38799
  V && (j.x = P[0] * Math.round(j.x / P[0]), j.y = P[1] * Math.round(j.y / P[1]));
38800
- const G = Gx(B, j, O, T, E, N);
38800
+ const G = Gx(B, j, R, T, E, N);
38801
38801
  return $ = $ || B.position.x !== G.position.x || B.position.y !== G.position.y, B.position = G.position, B.positionAbsolute = G.positionAbsolute, B;
38802
38802
  }), !$)
38803
38803
  return;
@@ -38807,18 +38807,18 @@ function qx({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
38807
38807
  const [B, j] = Pc({
38808
38808
  nodeId: o,
38809
38809
  dragItems: d.current,
38810
- nodeInternals: O
38810
+ nodeInternals: R
38811
38811
  });
38812
38812
  M(m.current, B, j);
38813
38813
  }
38814
38814
  }, x = () => {
38815
- var O, L;
38815
+ var R, L;
38816
38816
  if (!p.current)
38817
38817
  return;
38818
38818
  const [S, k] = bx(g.current, p.current);
38819
38819
  if (S !== 0 || k !== 0) {
38820
38820
  const { transform: H, panBy: A } = l.getState();
38821
- f.current.x = ((O = f.current.x) != null ? O : 0) - S / H[2], f.current.y = ((L = f.current.y) != null ? L : 0) - k / H[2], _(f.current), A({ x: S, y: k });
38821
+ f.current.x = ((R = f.current.x) != null ? R : 0) - S / H[2], f.current.y = ((L = f.current.y) != null ? L : 0) - k / H[2], _(f.current), A({ x: S, y: k });
38822
38822
  }
38823
38823
  h.current = requestAnimationFrame(x);
38824
38824
  };
@@ -38827,28 +38827,28 @@ function qx({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
38827
38827
  else {
38828
38828
  const S = o8().on("start", (k) => {
38829
38829
  var $;
38830
- const { nodeInternals: O, multiSelectionActive: L, domNode: H, nodesDraggable: A, unselectNodesAndEdges: T, onNodeDragStart: P, onSelectionDragStart: V } = l.getState(), E = o ? P : Nc(V);
38831
- !a && !L && o && (($ = O.get(o)) != null && $.selected || T()), o && i && a && Bu({
38830
+ const { nodeInternals: R, multiSelectionActive: L, domNode: H, nodesDraggable: A, unselectNodesAndEdges: T, onNodeDragStart: P, onSelectionDragStart: V } = l.getState(), E = o ? P : Nc(V);
38831
+ !a && !L && o && (($ = R.get(o)) != null && $.selected || T()), o && i && a && Bu({
38832
38832
  id: o,
38833
38833
  store: l
38834
38834
  });
38835
38835
  const N = y(k);
38836
- if (f.current = N, d.current = NW(O, A, N, o), E && d.current) {
38836
+ if (f.current = N, d.current = NW(R, A, N, o), E && d.current) {
38837
38837
  const [M, B] = Pc({
38838
38838
  nodeId: o,
38839
38839
  dragItems: d.current,
38840
- nodeInternals: O
38840
+ nodeInternals: R
38841
38841
  });
38842
38842
  E(k.sourceEvent, M, B);
38843
38843
  }
38844
38844
  p.current = (H == null ? void 0 : H.getBoundingClientRect()) || null, g.current = lo(k.sourceEvent, p.current);
38845
38845
  }).on("drag", (k) => {
38846
- const O = y(k), { autoPanOnNodeDrag: L } = l.getState();
38847
- !b.current && L && (b.current = !0, x()), (f.current.x !== O.xSnapped || f.current.y !== O.ySnapped) && d.current && (m.current = k.sourceEvent, g.current = lo(k.sourceEvent, p.current), _(O));
38846
+ const R = y(k), { autoPanOnNodeDrag: L } = l.getState();
38847
+ !b.current && L && (b.current = !0, x()), (f.current.x !== R.xSnapped || f.current.y !== R.ySnapped) && d.current && (m.current = k.sourceEvent, g.current = lo(k.sourceEvent, p.current), _(R));
38848
38848
  }).on("end", (k) => {
38849
38849
  if (u(!1), b.current = !1, cancelAnimationFrame(h.current), d.current) {
38850
- const { updateNodePositions: O, nodeInternals: L, onNodeDragStop: H, onSelectionDragStop: A } = l.getState(), T = o ? H : Nc(A);
38851
- if (O(d.current, !1, !1), T) {
38850
+ const { updateNodePositions: R, nodeInternals: L, onNodeDragStop: H, onSelectionDragStop: A } = l.getState(), T = o ? H : Nc(A);
38851
+ if (R(d.current, !1, !1), T) {
38852
38852
  const [P, V] = Pc({
38853
38853
  nodeId: o,
38854
38854
  dragItems: d.current,
@@ -38858,8 +38858,8 @@ function qx({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
38858
38858
  }
38859
38859
  }
38860
38860
  }).filter((k) => {
38861
- const O = k.target;
38862
- return !k.button && (!n || !qg(O, `.${n}`, e)) && (!r || qg(O, r, e));
38861
+ const R = k.target;
38862
+ return !k.button && (!n || !qg(R, `.${n}`, e)) && (!r || qg(R, r, e));
38863
38863
  });
38864
38864
  return w.call(S), () => {
38865
38865
  w.on(".drag", null);
@@ -38900,8 +38900,8 @@ const ci = {
38900
38900
  ArrowRight: { x: 1, y: 0 }
38901
38901
  };
38902
38902
  var Gi = (e) => {
38903
- const t = ({ id: n, type: r, data: o, xPos: i, yPos: a, xPosOrigin: l, yPosOrigin: c, selected: u, onClick: d, onMouseEnter: f, onMouseMove: h, onMouseLeave: p, onContextMenu: g, onDoubleClick: m, style: b, className: y, isDraggable: w, isSelectable: _, isConnectable: x, isFocusable: S, selectNodesOnDrag: k, sourcePosition: O, targetPosition: L, hidden: H, resizeObserver: A, dragHandle: T, zIndex: P, isParent: V, noDragClassName: E, noPanClassName: N, initialized: $, disableKeyboardA11y: M, ariaLabel: B, rfId: j }) => {
38904
- const G = yn(), U = Ee(null), oe = Ee(O), ae = Ee(L), Q = Ee(r), te = _ || w || d || f || h || p, me = Ux(), ge = Wi(n, G.getState, f), he = Wi(n, G.getState, h), de = Wi(n, G.getState, p), Oe = Wi(n, G.getState, g), Te = Wi(n, G.getState, m), J = (X) => {
38903
+ const t = ({ id: n, type: r, data: o, xPos: i, yPos: a, xPosOrigin: l, yPosOrigin: c, selected: u, onClick: d, onMouseEnter: f, onMouseMove: h, onMouseLeave: p, onContextMenu: g, onDoubleClick: m, style: b, className: y, isDraggable: w, isSelectable: _, isConnectable: x, isFocusable: S, selectNodesOnDrag: k, sourcePosition: R, targetPosition: L, hidden: H, resizeObserver: A, dragHandle: T, zIndex: P, isParent: V, noDragClassName: E, noPanClassName: N, initialized: $, disableKeyboardA11y: M, ariaLabel: B, rfId: j }) => {
38904
+ const G = yn(), U = Ee(null), oe = Ee(R), ae = Ee(L), Q = Ee(r), te = _ || w || d || f || h || p, me = Ux(), ge = Wi(n, G.getState, f), he = Wi(n, G.getState, h), de = Wi(n, G.getState, p), Oe = Wi(n, G.getState, g), Te = Wi(n, G.getState, m), J = (X) => {
38905
38905
  if (_ && (!k || !w) && Bu({
38906
38906
  id: n,
38907
38907
  store: G
@@ -38934,9 +38934,9 @@ var Gi = (e) => {
38934
38934
  return A == null || A.observe(X), () => A == null ? void 0 : A.unobserve(X);
38935
38935
  }
38936
38936
  }, [H]), ue(() => {
38937
- const X = Q.current !== r, Me = oe.current !== O, _e = ae.current !== L;
38938
- U.current && (X || Me || _e) && (X && (Q.current = r), Me && (oe.current = O), _e && (ae.current = L), G.getState().updateNodeDimensions([{ id: n, nodeElement: U.current, forceUpdate: !0 }]));
38939
- }, [n, r, O, L]);
38937
+ const X = Q.current !== r, Me = oe.current !== R, _e = ae.current !== L;
38938
+ U.current && (X || Me || _e) && (X && (Q.current = r), Me && (oe.current = R), _e && (ae.current = L), G.getState().updateNodeDimensions([{ id: n, nodeElement: U.current, forceUpdate: !0 }]));
38939
+ }, [n, r, R, L]);
38940
38940
  const Re = qx({
38941
38941
  nodeRef: U,
38942
38942
  disabled: H || !w,
@@ -38965,7 +38965,7 @@ var Gi = (e) => {
38965
38965
  pointerEvents: te ? "all" : "none",
38966
38966
  visibility: $ ? "visible" : "hidden",
38967
38967
  ...b
38968
- }, "data-id": n, "data-testid": `rf__node-${n}`, onMouseEnter: ge, onMouseMove: he, onMouseLeave: de, onContextMenu: Oe, onClick: J, onDoubleClick: Te, onKeyDown: S ? se : void 0, tabIndex: S ? 0 : void 0, role: S ? "button" : void 0, "aria-describedby": M ? void 0 : `${jx}-${j}`, "aria-label": B, children: s(aW, { value: n, children: s(e, { id: n, data: o, type: r, xPos: i, yPos: a, selected: u, isConnectable: x, sourcePosition: O, targetPosition: L, dragging: Re, dragHandle: T, zIndex: P }) }) });
38968
+ }, "data-id": n, "data-testid": `rf__node-${n}`, onMouseEnter: ge, onMouseMove: he, onMouseLeave: de, onContextMenu: Oe, onClick: J, onDoubleClick: Te, onKeyDown: S ? se : void 0, tabIndex: S ? 0 : void 0, role: S ? "button" : void 0, "aria-describedby": M ? void 0 : `${jx}-${j}`, "aria-label": B, children: s(aW, { value: n, children: s(e, { id: n, data: o, type: r, xPos: i, yPos: a, selected: u, isConnectable: x, sourcePosition: R, targetPosition: L, dragging: Re, dragHandle: T, zIndex: P }) }) });
38969
38969
  };
38970
38970
  return t.displayName = "NodeWrapper", Ft(t);
38971
38971
  };
@@ -39165,7 +39165,7 @@ function $f() {
39165
39165
  if (w)
39166
39166
  y(S);
39167
39167
  else if (_) {
39168
- const k = S.length === 0 ? x.map((O) => ({ type: "remove", id: O.id })) : S.map((O) => ({ item: O, type: "reset" }));
39168
+ const k = S.length === 0 ? x.map((R) => ({ type: "remove", id: R.id })) : S.map((R) => ({ item: R, type: "reset" }));
39169
39169
  _(k);
39170
39170
  }
39171
39171
  }, []), l = dt((m) => {
@@ -39205,7 +39205,7 @@ function $f() {
39205
39205
  }
39206
39206
  };
39207
39207
  }, []), f = dt(({ nodes: m, edges: b }) => {
39208
- const { nodeInternals: y, getNodes: w, edges: _, hasDefaultNodes: x, hasDefaultEdges: S, onNodesDelete: k, onEdgesDelete: O, onNodesChange: L, onEdgesChange: H } = t.getState(), A = (m || []).map((N) => N.id), T = (b || []).map((N) => N.id), P = w().reduce((N, $) => {
39208
+ const { nodeInternals: y, getNodes: w, edges: _, hasDefaultNodes: x, hasDefaultEdges: S, onNodesDelete: k, onEdgesDelete: R, onNodesChange: L, onEdgesChange: H } = t.getState(), A = (m || []).map((N) => N.id), T = (b || []).map((N) => N.id), P = w().reduce((N, $) => {
39209
39209
  const M = !A.includes($.id) && $.parentNode && N.find((j) => j.id === $.parentNode);
39210
39210
  return (typeof $.deletable == "boolean" ? $.deletable : !0) && (A.includes($.id) || M) && N.push($), N;
39211
39211
  }, []), V = _.filter((N) => typeof N.deletable == "boolean" ? N.deletable : !0), E = V.filter((N) => T.includes(N.id));
@@ -39217,7 +39217,7 @@ function $f() {
39217
39217
  y.delete(B.id);
39218
39218
  }), t.setState({
39219
39219
  nodeInternals: new Map(y)
39220
- }))), M.length > 0 && (O == null || O($), H && H(M.map((B) => ({
39220
+ }))), M.length > 0 && (R == null || R($), H && H(M.map((B) => ({
39221
39221
  id: B,
39222
39222
  type: "remove"
39223
39223
  })))), P.length > 0 && (k == null || k(P), L)) {
@@ -39233,8 +39233,8 @@ function $f() {
39233
39233
  return w ? (y || t.getState().getNodes()).filter((S) => {
39234
39234
  if (!x && (S.id === _.id || !S.positionAbsolute))
39235
39235
  return !1;
39236
- const k = Ng(S), O = Lu(k, w);
39237
- return b && O > 0 || O >= m.width * m.height;
39236
+ const k = Ng(S), R = Lu(k, w);
39237
+ return b && R > 0 || R >= m.width * m.height;
39238
39238
  }) : [];
39239
39239
  }, []), g = dt((m, b, y = !0) => {
39240
39240
  const [w] = h(m);
@@ -39316,7 +39316,7 @@ const Pf = {
39316
39316
  d3ZoomHandler: e.d3ZoomHandler,
39317
39317
  userSelectionActive: e.userSelectionActive
39318
39318
  }), YW = ({ onMove: e, onMoveStart: t, onMoveEnd: n, onPaneContextMenu: r, zoomOnScroll: o = !0, zoomOnPinch: i = !0, panOnScroll: a = !1, panOnScrollSpeed: l = 0.5, panOnScrollMode: c = li.Free, zoomOnDoubleClick: u = !0, elementsSelectable: d, panOnDrag: f = !0, defaultViewport: h, translateExtent: p, minZoom: g, maxZoom: m, zoomActivationKeyCode: b, preventScrolling: y = !0, children: w, noWheelClassName: _, noPanClassName: x }) => {
39319
- const S = Ee(), k = yn(), O = Ee(!1), L = Ee(!1), H = Ee(null), A = Ee({ x: 0, y: 0, zoom: 0 }), { d3Zoom: T, d3Selection: P, d3ZoomHandler: V, userSelectionActive: E } = Gt(UW, Mn), N = Ma(b), $ = Ee(0);
39319
+ const S = Ee(), k = yn(), R = Ee(!1), L = Ee(!1), H = Ee(null), A = Ee({ x: 0, y: 0, zoom: 0 }), { d3Zoom: T, d3Selection: P, d3ZoomHandler: V, userSelectionActive: E } = Gt(UW, Mn), N = Ma(b), $ = Ee(0);
39320
39320
  return GW(H), ue(() => {
39321
39321
  if (H.current) {
39322
39322
  const M = H.current.getBoundingClientRect(), B = vx().scaleExtent([g, m]).translateExtent(p), j = Xn(H.current).call(B), G = Vr.translate(h.x, h.y).scale(yi(h.zoom, g, m)), U = [
@@ -39367,13 +39367,13 @@ const Pf = {
39367
39367
  return null;
39368
39368
  $.current = M.sourceEvent.button;
39369
39369
  const { onViewportChangeStart: B } = k.getState();
39370
- if (O.current = !0, ((j = M.sourceEvent) == null ? void 0 : j.type) === "mousedown" && k.setState({ paneDragging: !0 }), t || B) {
39370
+ if (R.current = !0, ((j = M.sourceEvent) == null ? void 0 : j.type) === "mousedown" && k.setState({ paneDragging: !0 }), t || B) {
39371
39371
  const G = Lc(M.transform);
39372
39372
  A.current = G, B == null || B(G), t == null || t(M.sourceEvent, G);
39373
39373
  }
39374
39374
  });
39375
39375
  }, [T, t]), ue(() => {
39376
- T && (E && !O.current ? T.on("zoom", null) : E || T.on("zoom", (M) => {
39376
+ T && (E && !R.current ? T.on("zoom", null) : E || T.on("zoom", (M) => {
39377
39377
  var j;
39378
39378
  const { onViewportChange: B } = k.getState();
39379
39379
  if (k.setState({ transform: [M.transform.x, M.transform.y, M.transform.k] }), L.current = !!(r && Qg(f, (j = $.current) != null ? j : 0)), e || B) {
@@ -39387,7 +39387,7 @@ const Pf = {
39387
39387
  if (!M.sourceEvent)
39388
39388
  return null;
39389
39389
  const { onViewportChangeEnd: B } = k.getState();
39390
- if (O.current = !1, k.setState({ paneDragging: !1 }), r && Qg(f, (j = $.current) != null ? j : 0) && !L.current && r(M.sourceEvent), L.current = !1, (n || B) && qW(A.current, M.transform)) {
39390
+ if (R.current = !1, k.setState({ paneDragging: !1 }), r && Qg(f, (j = $.current) != null ? j : 0) && !L.current && r(M.sourceEvent), L.current = !1, (n || B) && qW(A.current, M.transform)) {
39391
39391
  const G = Lc(M.transform);
39392
39392
  A.current = G, clearTimeout(S.current), S.current = setTimeout(() => {
39393
39393
  B == null || B(G), n == null || n(M.sourceEvent, G);
@@ -39506,7 +39506,7 @@ const zc = (e, t) => (n) => {
39506
39506
  return;
39507
39507
  }
39508
39508
  a == null || a(V);
39509
- }, O = l ? (V) => l(V) : void 0, L = (V) => {
39509
+ }, R = l ? (V) => l(V) : void 0, L = (V) => {
39510
39510
  const { resetSelectedElements: E, domNode: N } = p.getState();
39511
39511
  if (b.current = N == null ? void 0 : N.getBoundingClientRect(), !w || !e || V.button !== 0 || V.target !== h.current || !b.current)
39512
39512
  return;
@@ -39555,7 +39555,7 @@ const zc = (e, t) => (n) => {
39555
39555
  }, T = (V) => {
39556
39556
  y && (p.setState({ nodesSelectionActive: g.current > 0 }), o == null || o(V)), x();
39557
39557
  }, P = w && (e || y);
39558
- return v("div", { className: Sn(["react-flow__pane", { dragging: _, selection: e }]), onClick: P ? void 0 : zc(S, h), onContextMenu: zc(k, h), onWheel: zc(O, h), onMouseEnter: P ? void 0 : c, onMouseDown: P ? L : void 0, onMouseMove: P ? H : u, onMouseUp: P ? A : void 0, onMouseLeave: P ? T : d, ref: h, style: Pf, children: [f, s(QW, {})] });
39558
+ return v("div", { className: Sn(["react-flow__pane", { dragging: _, selection: e }]), onClick: P ? void 0 : zc(S, h), onContextMenu: zc(k, h), onWheel: zc(R, h), onMouseEnter: P ? void 0 : c, onMouseDown: P ? L : void 0, onMouseMove: P ? H : u, onMouseUp: P ? A : void 0, onMouseLeave: P ? T : d, ref: h, style: Pf, children: [f, s(QW, {})] });
39559
39559
  });
39560
39560
  Zx.displayName = "Pane";
39561
39561
  const tG = (e) => {
@@ -39597,9 +39597,9 @@ function nG({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y:
39597
39597
  } }) });
39598
39598
  }
39599
39599
  var rG = Ft(nG);
39600
- const oG = (e) => e.nodesSelectionActive, Jx = ({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: a, deleteKeyCode: l, onMove: c, onMoveStart: u, onMoveEnd: d, selectionKeyCode: f, selectionOnDrag: h, selectionMode: p, onSelectionStart: g, onSelectionEnd: m, multiSelectionKeyCode: b, panActivationKeyCode: y, zoomActivationKeyCode: w, elementsSelectable: _, zoomOnScroll: x, zoomOnPinch: S, panOnScroll: k, panOnScrollSpeed: O, panOnScrollMode: L, zoomOnDoubleClick: H, panOnDrag: A, defaultViewport: T, translateExtent: P, minZoom: V, maxZoom: E, preventScrolling: N, onSelectionContextMenu: $, noWheelClassName: M, noPanClassName: B, disableKeyboardA11y: j }) => {
39600
+ const oG = (e) => e.nodesSelectionActive, Jx = ({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: a, deleteKeyCode: l, onMove: c, onMoveStart: u, onMoveEnd: d, selectionKeyCode: f, selectionOnDrag: h, selectionMode: p, onSelectionStart: g, onSelectionEnd: m, multiSelectionKeyCode: b, panActivationKeyCode: y, zoomActivationKeyCode: w, elementsSelectable: _, zoomOnScroll: x, zoomOnPinch: S, panOnScroll: k, panOnScrollSpeed: R, panOnScrollMode: L, zoomOnDoubleClick: H, panOnDrag: A, defaultViewport: T, translateExtent: P, minZoom: V, maxZoom: E, preventScrolling: N, onSelectionContextMenu: $, noWheelClassName: M, noPanClassName: B, disableKeyboardA11y: j }) => {
39601
39601
  const G = Gt(oG), U = Ma(f), ae = Ma(y) || A, Q = U || h && ae !== !0;
39602
- return WW({ deleteKeyCode: l, multiSelectionKeyCode: b }), s(YW, { onMove: c, onMoveStart: u, onMoveEnd: d, onPaneContextMenu: i, elementsSelectable: _, zoomOnScroll: x, zoomOnPinch: S, panOnScroll: k, panOnScrollSpeed: O, panOnScrollMode: L, zoomOnDoubleClick: H, panOnDrag: !U && ae, defaultViewport: T, translateExtent: P, minZoom: V, maxZoom: E, zoomActivationKeyCode: w, preventScrolling: N, noWheelClassName: M, noPanClassName: B, children: v(Zx, { onSelectionStart: g, onSelectionEnd: m, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: a, panOnDrag: ae, isSelecting: !!Q, selectionMode: p, children: [e, G && s(rG, { onSelectionContextMenu: $, noPanClassName: B, disableKeyboardA11y: j })] }) });
39602
+ return WW({ deleteKeyCode: l, multiSelectionKeyCode: b }), s(YW, { onMove: c, onMoveStart: u, onMoveEnd: d, onPaneContextMenu: i, elementsSelectable: _, zoomOnScroll: x, zoomOnPinch: S, panOnScroll: k, panOnScrollSpeed: R, panOnScrollMode: L, zoomOnDoubleClick: H, panOnDrag: !U && ae, defaultViewport: T, translateExtent: P, minZoom: V, maxZoom: E, zoomActivationKeyCode: w, preventScrolling: N, noWheelClassName: M, noPanClassName: B, children: v(Zx, { onSelectionStart: g, onSelectionEnd: m, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: a, panOnDrag: ae, isSelecting: !!Q, selectionMode: p, children: [e, G && s(rG, { onSelectionContextMenu: $, noPanClassName: B, disableKeyboardA11y: j })] }) });
39603
39603
  };
39604
39604
  Jx.displayName = "FlowRenderer";
39605
39605
  var iG = Ft(Jx);
@@ -39631,13 +39631,13 @@ const sG = (e) => ({
39631
39631
  var d;
39632
39632
  (d = c == null ? void 0 : c.current) == null || d.disconnect();
39633
39633
  }, []), s("div", { className: "react-flow__nodes", style: Pf, children: l.map((d) => {
39634
- var S, k, O, L, H, A, T;
39634
+ var S, k, R, L, H, A, T;
39635
39635
  let f = d.type || "default";
39636
39636
  e.nodeTypes[f] || (a == null || a("003", wr["003"](f)), f = "default");
39637
39637
  const h = e.nodeTypes[f] || e.nodeTypes.default, p = !!(d.draggable || t && typeof d.draggable > "u"), g = !!(d.selectable || o && typeof d.selectable > "u"), m = !!(d.connectable || n && typeof d.connectable > "u"), b = !!(d.focusable || r && typeof d.focusable > "u"), y = e.nodeExtent ? Ef(d.positionAbsolute, e.nodeExtent) : d.positionAbsolute, w = (S = y == null ? void 0 : y.x) != null ? S : 0, _ = (k = y == null ? void 0 : y.y) != null ? k : 0, x = zW({
39638
39638
  x: w,
39639
39639
  y: _,
39640
- width: (O = d.width) != null ? O : 0,
39640
+ width: (R = d.width) != null ? R : 0,
39641
39641
  height: (L = d.height) != null ? L : 0,
39642
39642
  origin: e.nodeOrigin
39643
39643
  });
@@ -39722,17 +39722,17 @@ const yG = (e) => ({
39722
39722
  nodeInternals: e.nodeInternals,
39723
39723
  onError: e.onError
39724
39724
  }), nw = ({ defaultMarkerColor: e, onlyRenderVisibleElements: t, elevateEdgesOnSelect: n, rfId: r, edgeTypes: o, noPanClassName: i, onEdgeUpdate: a, onEdgeContextMenu: l, onEdgeMouseEnter: c, onEdgeMouseMove: u, onEdgeMouseLeave: d, onEdgeClick: f, edgeUpdaterRadius: h, onEdgeDoubleClick: p, onEdgeUpdateStart: g, onEdgeUpdateEnd: m, children: b }) => {
39725
- const { edgesFocusable: y, elementsSelectable: w, width: _, height: x, connectionMode: S, nodeInternals: k, onError: O } = Gt(yG, Mn), L = dG(t, k, n);
39725
+ const { edgesFocusable: y, elementsSelectable: w, width: _, height: x, connectionMode: S, nodeInternals: k, onError: R } = Gt(yG, Mn), L = dG(t, k, n);
39726
39726
  return _ ? v(ke, { children: [L.map(({ level: H, edges: A, isMaxLevel: T }) => v("svg", { style: { zIndex: H }, width: _, height: x, className: "react-flow__edges react-flow__container", children: [T && s(vG, { defaultColor: e, rfId: r }), s("g", { children: A.map((P) => {
39727
39727
  var Te, J;
39728
39728
  const [V, E, N] = Gg(k.get(P.source)), [$, M, B] = Gg(k.get(P.target));
39729
39729
  if (!N || !B)
39730
39730
  return null;
39731
39731
  let j = P.type || "default";
39732
- o[j] || (O == null || O("011", wr["011"](j)), j = "default");
39732
+ o[j] || (R == null || R("011", wr["011"](j)), j = "default");
39733
39733
  const G = o[j] || o.default, U = S === zo.Strict ? M.target : ((Te = M.target) != null ? Te : []).concat((J = M.source) != null ? J : []), oe = Wg(E.source, P.sourceHandle), ae = Wg(U, P.targetHandle), Q = (oe == null ? void 0 : oe.position) || Ae.Bottom, te = (ae == null ? void 0 : ae.position) || Ae.Top, me = !!(P.focusable || y && typeof P.focusable > "u");
39734
39734
  if (!oe || !ae)
39735
- return O == null || O("008", wr["008"](oe, P)), null;
39735
+ return R == null || R("008", wr["008"](oe, P)), null;
39736
39736
  const { sourceX: ge, sourceY: he, targetX: de, targetY: Oe } = $W(V, oe, Q, $, ae, te);
39737
39737
  return s(G, { id: P.id, className: Sn([P.className, i]), type: j, data: P.data, selected: !!P.selected, animated: !!P.animated, hidden: !!P.hidden, label: P.label, labelStyle: P.labelStyle, labelShowBg: P.labelShowBg, labelBgStyle: P.labelBgStyle, labelBgPadding: P.labelBgPadding, labelBgBorderRadius: P.labelBgBorderRadius, style: P.style, source: P.source, target: P.target, sourceHandleId: P.sourceHandle, targetHandleId: P.targetHandle, markerEnd: P.markerEnd, markerStart: P.markerStart, sourceX: ge, sourceY: he, targetX: de, targetY: Oe, sourcePosition: Q, targetPosition: te, elementsSelectable: w, onEdgeUpdate: a, onContextMenu: l, onMouseEnter: c, onMouseMove: u, onMouseLeave: d, onClick: f, edgeUpdaterRadius: h, onEdgeDoubleClick: p, onEdgeUpdateStart: g, onEdgeUpdateEnd: m, rfId: r, ariaLabel: P.ariaLabel, isFocusable: me, pathOptions: "pathOptions" in P ? P.pathOptions : void 0, interactionWidth: P.interactionWidth }, P.id);
39738
39738
  }) })] }, H)), b] }) : null;
@@ -39756,7 +39756,7 @@ const SG = {
39756
39756
  [Ae.Top]: Ae.Bottom,
39757
39757
  [Ae.Bottom]: Ae.Top
39758
39758
  }, rw = ({ nodeId: e, handleType: t, style: n, type: r = ro.Bezier, CustomComponent: o, connectionStatus: i }) => {
39759
- var k, O, L, H, A, T, P;
39759
+ var k, R, L, H, A, T, P;
39760
39760
  const { fromNode: a, handleId: l, toX: c, toY: u, connectionMode: d } = Gt(dt((V) => ({
39761
39761
  fromNode: V.nodeInternals.get(e),
39762
39762
  handleId: V.connectionHandleId,
@@ -39767,7 +39767,7 @@ const SG = {
39767
39767
  let h = f == null ? void 0 : f[t];
39768
39768
  if (d === zo.Loose && (h = h || (f == null ? void 0 : f[t === "source" ? "target" : "source"])), !a || !h)
39769
39769
  return null;
39770
- const p = l ? h.find((V) => V.id === l) : h[0], g = p ? p.x + p.width / 2 : ((O = a.width) != null ? O : 0) / 2, m = p ? p.y + p.height / 2 : (L = a.height) != null ? L : 0, b = ((A = (H = a.positionAbsolute) == null ? void 0 : H.x) != null ? A : 0) + g, y = ((P = (T = a.positionAbsolute) == null ? void 0 : T.y) != null ? P : 0) + m, w = p == null ? void 0 : p.position, _ = w ? SG[w] : null;
39770
+ const p = l ? h.find((V) => V.id === l) : h[0], g = p ? p.x + p.width / 2 : ((R = a.width) != null ? R : 0) / 2, m = p ? p.y + p.height / 2 : (L = a.height) != null ? L : 0, b = ((A = (H = a.positionAbsolute) == null ? void 0 : H.x) != null ? A : 0) + g, y = ((P = (T = a.positionAbsolute) == null ? void 0 : T.y) != null ? P : 0) + m, w = p == null ? void 0 : p.position, _ = w ? SG[w] : null;
39771
39771
  if (!w || !_)
39772
39772
  return null;
39773
39773
  if (o)
@@ -39799,7 +39799,7 @@ function EG({ containerStyle: e, style: t, type: n, component: r }) {
39799
39799
  const { nodeId: o, handleType: i, nodesConnectable: a, width: l, height: c, connectionStatus: u } = Gt(CG, Mn);
39800
39800
  return !(o && i && l && a) ? null : s("svg", { style: e, width: l, height: c, className: "react-flow__edges react-flow__connectionline react-flow__container", children: s("g", { className: Sn(["react-flow__connection", u]), children: s(rw, { nodeId: o, handleType: i, style: t, type: n, CustomComponent: r, connectionStatus: u }) }) });
39801
39801
  }
39802
- const ow = ({ nodeTypes: e, edgeTypes: t, onMove: n, onMoveStart: r, onMoveEnd: o, onInit: i, onNodeClick: a, onEdgeClick: l, onNodeDoubleClick: c, onEdgeDoubleClick: u, onNodeMouseEnter: d, onNodeMouseMove: f, onNodeMouseLeave: h, onNodeContextMenu: p, onSelectionContextMenu: g, onSelectionStart: m, onSelectionEnd: b, connectionLineType: y, connectionLineStyle: w, connectionLineComponent: _, connectionLineContainerStyle: x, selectionKeyCode: S, selectionOnDrag: k, selectionMode: O, multiSelectionKeyCode: L, panActivationKeyCode: H, zoomActivationKeyCode: A, deleteKeyCode: T, onlyRenderVisibleElements: P, elementsSelectable: V, selectNodesOnDrag: E, defaultViewport: N, translateExtent: $, minZoom: M, maxZoom: B, preventScrolling: j, defaultMarkerColor: G, zoomOnScroll: U, zoomOnPinch: oe, panOnScroll: ae, panOnScrollSpeed: Q, panOnScrollMode: te, zoomOnDoubleClick: me, panOnDrag: ge, onPaneClick: he, onPaneMouseEnter: de, onPaneMouseMove: Oe, onPaneMouseLeave: Te, onPaneScroll: J, onPaneContextMenu: se, onEdgeUpdate: Re, onEdgeContextMenu: X, onEdgeMouseEnter: Me, onEdgeMouseMove: _e, onEdgeMouseLeave: $e, edgeUpdaterRadius: Le, onEdgeUpdateStart: we, onEdgeUpdateEnd: et, noDragClassName: je, noWheelClassName: at, noPanClassName: Pe, elevateEdgesOnSelect: Xe, disableKeyboardA11y: Ge, nodeOrigin: qe, nodeExtent: wt, rfId: pt }) => (_G(i), s(iG, { onPaneClick: he, onPaneMouseEnter: de, onPaneMouseMove: Oe, onPaneMouseLeave: Te, onPaneContextMenu: se, onPaneScroll: J, deleteKeyCode: T, selectionKeyCode: S, selectionOnDrag: k, selectionMode: O, onSelectionStart: m, onSelectionEnd: b, multiSelectionKeyCode: L, panActivationKeyCode: H, zoomActivationKeyCode: A, elementsSelectable: V, onMove: n, onMoveStart: r, onMoveEnd: o, zoomOnScroll: U, zoomOnPinch: oe, zoomOnDoubleClick: me, panOnScroll: ae, panOnScrollSpeed: Q, panOnScrollMode: te, panOnDrag: ge, defaultViewport: N, translateExtent: $, minZoom: M, maxZoom: B, onSelectionContextMenu: g, preventScrolling: j, noDragClassName: je, noWheelClassName: at, noPanClassName: Pe, disableKeyboardA11y: Ge, children: v(wG, { children: [s(bG, { edgeTypes: t, onEdgeClick: l, onEdgeDoubleClick: u, onEdgeUpdate: Re, onlyRenderVisibleElements: P, onEdgeContextMenu: X, onEdgeMouseEnter: Me, onEdgeMouseMove: _e, onEdgeMouseLeave: $e, onEdgeUpdateStart: we, onEdgeUpdateEnd: et, edgeUpdaterRadius: Le, defaultMarkerColor: G, noPanClassName: Pe, elevateEdgesOnSelect: !!Xe, disableKeyboardA11y: Ge, rfId: pt, children: s(EG, { style: w, type: y, component: _, containerStyle: x }) }), s("div", { className: "react-flow__edgelabel-renderer" }), s(lG, { nodeTypes: e, onNodeClick: a, onNodeDoubleClick: c, onNodeMouseEnter: d, onNodeMouseMove: f, onNodeMouseLeave: h, onNodeContextMenu: p, selectNodesOnDrag: E, onlyRenderVisibleElements: P, noPanClassName: Pe, noDragClassName: je, disableKeyboardA11y: Ge, nodeOrigin: qe, nodeExtent: wt, rfId: pt })] }) }));
39802
+ const ow = ({ nodeTypes: e, edgeTypes: t, onMove: n, onMoveStart: r, onMoveEnd: o, onInit: i, onNodeClick: a, onEdgeClick: l, onNodeDoubleClick: c, onEdgeDoubleClick: u, onNodeMouseEnter: d, onNodeMouseMove: f, onNodeMouseLeave: h, onNodeContextMenu: p, onSelectionContextMenu: g, onSelectionStart: m, onSelectionEnd: b, connectionLineType: y, connectionLineStyle: w, connectionLineComponent: _, connectionLineContainerStyle: x, selectionKeyCode: S, selectionOnDrag: k, selectionMode: R, multiSelectionKeyCode: L, panActivationKeyCode: H, zoomActivationKeyCode: A, deleteKeyCode: T, onlyRenderVisibleElements: P, elementsSelectable: V, selectNodesOnDrag: E, defaultViewport: N, translateExtent: $, minZoom: M, maxZoom: B, preventScrolling: j, defaultMarkerColor: G, zoomOnScroll: U, zoomOnPinch: oe, panOnScroll: ae, panOnScrollSpeed: Q, panOnScrollMode: te, zoomOnDoubleClick: me, panOnDrag: ge, onPaneClick: he, onPaneMouseEnter: de, onPaneMouseMove: Oe, onPaneMouseLeave: Te, onPaneScroll: J, onPaneContextMenu: se, onEdgeUpdate: Re, onEdgeContextMenu: X, onEdgeMouseEnter: Me, onEdgeMouseMove: _e, onEdgeMouseLeave: $e, edgeUpdaterRadius: Le, onEdgeUpdateStart: we, onEdgeUpdateEnd: et, noDragClassName: je, noWheelClassName: at, noPanClassName: Pe, elevateEdgesOnSelect: Xe, disableKeyboardA11y: Ge, nodeOrigin: qe, nodeExtent: wt, rfId: pt }) => (_G(i), s(iG, { onPaneClick: he, onPaneMouseEnter: de, onPaneMouseMove: Oe, onPaneMouseLeave: Te, onPaneContextMenu: se, onPaneScroll: J, deleteKeyCode: T, selectionKeyCode: S, selectionOnDrag: k, selectionMode: R, onSelectionStart: m, onSelectionEnd: b, multiSelectionKeyCode: L, panActivationKeyCode: H, zoomActivationKeyCode: A, elementsSelectable: V, onMove: n, onMoveStart: r, onMoveEnd: o, zoomOnScroll: U, zoomOnPinch: oe, zoomOnDoubleClick: me, panOnScroll: ae, panOnScrollSpeed: Q, panOnScrollMode: te, panOnDrag: ge, defaultViewport: N, translateExtent: $, minZoom: M, maxZoom: B, onSelectionContextMenu: g, preventScrolling: j, noDragClassName: je, noWheelClassName: at, noPanClassName: Pe, disableKeyboardA11y: Ge, children: v(wG, { children: [s(bG, { edgeTypes: t, onEdgeClick: l, onEdgeDoubleClick: u, onEdgeUpdate: Re, onlyRenderVisibleElements: P, onEdgeContextMenu: X, onEdgeMouseEnter: Me, onEdgeMouseMove: _e, onEdgeMouseLeave: $e, onEdgeUpdateStart: we, onEdgeUpdateEnd: et, edgeUpdaterRadius: Le, defaultMarkerColor: G, noPanClassName: Pe, elevateEdgesOnSelect: !!Xe, disableKeyboardA11y: Ge, rfId: pt, children: s(EG, { style: w, type: y, component: _, containerStyle: x }) }), s("div", { className: "react-flow__edgelabel-renderer" }), s(lG, { nodeTypes: e, onNodeClick: a, onNodeDoubleClick: c, onNodeMouseEnter: d, onNodeMouseMove: f, onNodeMouseLeave: h, onNodeContextMenu: p, selectNodesOnDrag: E, onlyRenderVisibleElements: P, noPanClassName: Pe, noDragClassName: je, disableKeyboardA11y: Ge, nodeOrigin: qe, nodeExtent: wt, rfId: pt })] }) }));
39803
39803
  ow.displayName = "GraphView";
39804
39804
  var kG = Ft(ow);
39805
39805
  const ju = [
@@ -40031,9 +40031,9 @@ const MG = {
40031
40031
  overflow: "hidden",
40032
40032
  position: "relative",
40033
40033
  zIndex: 0
40034
- }, sw = Vt(({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: o, nodeTypes: i = MG, edgeTypes: a = OG, onNodeClick: l, onEdgeClick: c, onInit: u, onMove: d, onMoveStart: f, onMoveEnd: h, onConnect: p, onConnectStart: g, onConnectEnd: m, onClickConnectStart: b, onClickConnectEnd: y, onNodeMouseEnter: w, onNodeMouseMove: _, onNodeMouseLeave: x, onNodeContextMenu: S, onNodeDoubleClick: k, onNodeDragStart: O, onNodeDrag: L, onNodeDragStop: H, onNodesDelete: A, onEdgesDelete: T, onSelectionChange: P, onSelectionDragStart: V, onSelectionDrag: E, onSelectionDragStop: N, onSelectionContextMenu: $, onSelectionStart: M, onSelectionEnd: B, connectionMode: j = zo.Strict, connectionLineType: G = ro.Bezier, connectionLineStyle: U, connectionLineComponent: oe, connectionLineContainerStyle: ae, deleteKeyCode: Q = "Backspace", selectionKeyCode: te = "Shift", selectionOnDrag: me = !1, selectionMode: ge = Ta.Full, panActivationKeyCode: he = "Space", multiSelectionKeyCode: de = "Meta", zoomActivationKeyCode: Oe = "Meta", snapToGrid: Te = !1, snapGrid: J = DG, onlyRenderVisibleElements: se = !1, selectNodesOnDrag: Re = !0, nodesDraggable: X, nodesConnectable: Me, nodesFocusable: _e, nodeOrigin: $e = RG, edgesFocusable: Le, elementsSelectable: we, defaultViewport: et = AG, minZoom: je = 0.5, maxZoom: at = 2, translateExtent: Pe = ju, preventScrolling: Xe = !0, nodeExtent: Ge, defaultMarkerColor: qe = "#b1b1b7", zoomOnScroll: wt = !0, zoomOnPinch: pt = !0, panOnScroll: tt = !1, panOnScrollSpeed: bt = 0.5, panOnScrollMode: De = li.Free, zoomOnDoubleClick: Ke = !0, panOnDrag: ct = !0, onPaneClick: jt, onPaneMouseEnter: xt, onPaneMouseMove: qt, onPaneMouseLeave: St, onPaneScroll: dn, onPaneContextMenu: Ut, children: Rt, onEdgeUpdate: Ht, onEdgeContextMenu: pn, onEdgeDoubleClick: Et, onEdgeMouseEnter: Nn, onEdgeMouseMove: nn, onEdgeMouseLeave: le, onEdgeUpdateStart: ye, onEdgeUpdateEnd: Se, edgeUpdaterRadius: Fe = 10, onNodesChange: st, onEdgesChange: Ct, noDragClassName: gn = "nodrag", noWheelClassName: mn = "nowheel", noPanClassName: In = "nopan", fitView: Pt = !1, fitViewOptions: z, connectOnClick: re = !0, attributionPosition: ne, proOptions: be, defaultEdgeOptions: Ce, elevateNodesOnSelect: Ne = !0, elevateEdgesOnSelect: We = !1, disableKeyboardA11y: Ve = !1, autoPanOnConnect: Ze = !0, autoPanOnNodeDrag: Ue = !0, connectionRadius: ot = 20, onError: Nt, style: Cn, id: Bn, ...Yt }, hr) => {
40034
+ }, sw = Vt(({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: o, nodeTypes: i = MG, edgeTypes: a = OG, onNodeClick: l, onEdgeClick: c, onInit: u, onMove: d, onMoveStart: f, onMoveEnd: h, onConnect: p, onConnectStart: g, onConnectEnd: m, onClickConnectStart: b, onClickConnectEnd: y, onNodeMouseEnter: w, onNodeMouseMove: _, onNodeMouseLeave: x, onNodeContextMenu: S, onNodeDoubleClick: k, onNodeDragStart: R, onNodeDrag: L, onNodeDragStop: H, onNodesDelete: A, onEdgesDelete: T, onSelectionChange: P, onSelectionDragStart: V, onSelectionDrag: E, onSelectionDragStop: N, onSelectionContextMenu: $, onSelectionStart: M, onSelectionEnd: B, connectionMode: j = zo.Strict, connectionLineType: G = ro.Bezier, connectionLineStyle: U, connectionLineComponent: oe, connectionLineContainerStyle: ae, deleteKeyCode: Q = "Backspace", selectionKeyCode: te = "Shift", selectionOnDrag: me = !1, selectionMode: ge = Ta.Full, panActivationKeyCode: he = "Space", multiSelectionKeyCode: de = "Meta", zoomActivationKeyCode: Oe = "Meta", snapToGrid: Te = !1, snapGrid: J = DG, onlyRenderVisibleElements: se = !1, selectNodesOnDrag: Re = !0, nodesDraggable: X, nodesConnectable: Me, nodesFocusable: _e, nodeOrigin: $e = RG, edgesFocusable: Le, elementsSelectable: we, defaultViewport: et = AG, minZoom: je = 0.5, maxZoom: at = 2, translateExtent: Pe = ju, preventScrolling: Xe = !0, nodeExtent: Ge, defaultMarkerColor: qe = "#b1b1b7", zoomOnScroll: wt = !0, zoomOnPinch: pt = !0, panOnScroll: tt = !1, panOnScrollSpeed: bt = 0.5, panOnScrollMode: De = li.Free, zoomOnDoubleClick: Ke = !0, panOnDrag: ct = !0, onPaneClick: jt, onPaneMouseEnter: xt, onPaneMouseMove: qt, onPaneMouseLeave: St, onPaneScroll: dn, onPaneContextMenu: Ut, children: Rt, onEdgeUpdate: Ht, onEdgeContextMenu: pn, onEdgeDoubleClick: Et, onEdgeMouseEnter: Nn, onEdgeMouseMove: nn, onEdgeMouseLeave: le, onEdgeUpdateStart: ye, onEdgeUpdateEnd: Se, edgeUpdaterRadius: Fe = 10, onNodesChange: st, onEdgesChange: Ct, noDragClassName: gn = "nodrag", noWheelClassName: mn = "nowheel", noPanClassName: In = "nopan", fitView: Pt = !1, fitViewOptions: z, connectOnClick: re = !0, attributionPosition: ne, proOptions: be, defaultEdgeOptions: Ce, elevateNodesOnSelect: Ne = !0, elevateEdgesOnSelect: We = !1, disableKeyboardA11y: Ve = !1, autoPanOnConnect: Ze = !0, autoPanOnNodeDrag: Ue = !0, connectionRadius: ot = 20, onError: Nt, style: Cn, id: Bn, ...Yt }, hr) => {
40035
40035
  const Tr = em(i, LW), Rn = em(a, AW), Dn = Bn || "1";
40036
- return s("div", { ...Yt, style: { ...Cn, ...$G }, ref: hr, className: Sn(["react-flow", o]), "data-testid": "rf__wrapper", id: Bn, children: v(aw, { children: [s(kG, { onInit: u, onMove: d, onMoveStart: f, onMoveEnd: h, onNodeClick: l, onEdgeClick: c, onNodeMouseEnter: w, onNodeMouseMove: _, onNodeMouseLeave: x, onNodeContextMenu: S, onNodeDoubleClick: k, nodeTypes: Tr, edgeTypes: Rn, connectionLineType: G, connectionLineStyle: U, connectionLineComponent: oe, connectionLineContainerStyle: ae, selectionKeyCode: te, selectionOnDrag: me, selectionMode: ge, deleteKeyCode: Q, multiSelectionKeyCode: de, panActivationKeyCode: he, zoomActivationKeyCode: Oe, onlyRenderVisibleElements: se, selectNodesOnDrag: Re, defaultViewport: et, translateExtent: Pe, minZoom: je, maxZoom: at, preventScrolling: Xe, zoomOnScroll: wt, zoomOnPinch: pt, zoomOnDoubleClick: Ke, panOnScroll: tt, panOnScrollSpeed: bt, panOnScrollMode: De, panOnDrag: ct, onPaneClick: jt, onPaneMouseEnter: xt, onPaneMouseMove: qt, onPaneMouseLeave: St, onPaneScroll: dn, onPaneContextMenu: Ut, onSelectionContextMenu: $, onSelectionStart: M, onSelectionEnd: B, onEdgeUpdate: Ht, onEdgeContextMenu: pn, onEdgeDoubleClick: Et, onEdgeMouseEnter: Nn, onEdgeMouseMove: nn, onEdgeMouseLeave: le, onEdgeUpdateStart: ye, onEdgeUpdateEnd: Se, edgeUpdaterRadius: Fe, defaultMarkerColor: qe, noDragClassName: gn, noWheelClassName: mn, noPanClassName: In, elevateEdgesOnSelect: We, rfId: Dn, disableKeyboardA11y: Ve, nodeOrigin: $e, nodeExtent: Ge }), s(CW, { nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: p, onConnectStart: g, onConnectEnd: m, onClickConnectStart: b, onClickConnectEnd: y, nodesDraggable: X, nodesConnectable: Me, nodesFocusable: _e, edgesFocusable: Le, elementsSelectable: we, elevateNodesOnSelect: Ne, minZoom: je, maxZoom: at, nodeExtent: Ge, onNodesChange: st, onEdgesChange: Ct, snapToGrid: Te, snapGrid: J, connectionMode: j, translateExtent: Pe, connectOnClick: re, defaultEdgeOptions: Ce, fitView: Pt, fitViewOptions: z, onNodesDelete: A, onEdgesDelete: T, onNodeDragStart: O, onNodeDrag: L, onNodeDragStop: H, onSelectionDrag: E, onSelectionDragStart: V, onSelectionDragStop: N, noPanClassName: In, nodeOrigin: $e, rfId: Dn, autoPanOnConnect: Ze, autoPanOnNodeDrag: Ue, onError: Nt, connectionRadius: ot }), s(_W, { onSelectionChange: P }), Rt, s(XK, { proOptions: be, position: ne }), s(OW, { rfId: Dn, disableKeyboardA11y: Ve })] }) });
40036
+ return s("div", { ...Yt, style: { ...Cn, ...$G }, ref: hr, className: Sn(["react-flow", o]), "data-testid": "rf__wrapper", id: Bn, children: v(aw, { children: [s(kG, { onInit: u, onMove: d, onMoveStart: f, onMoveEnd: h, onNodeClick: l, onEdgeClick: c, onNodeMouseEnter: w, onNodeMouseMove: _, onNodeMouseLeave: x, onNodeContextMenu: S, onNodeDoubleClick: k, nodeTypes: Tr, edgeTypes: Rn, connectionLineType: G, connectionLineStyle: U, connectionLineComponent: oe, connectionLineContainerStyle: ae, selectionKeyCode: te, selectionOnDrag: me, selectionMode: ge, deleteKeyCode: Q, multiSelectionKeyCode: de, panActivationKeyCode: he, zoomActivationKeyCode: Oe, onlyRenderVisibleElements: se, selectNodesOnDrag: Re, defaultViewport: et, translateExtent: Pe, minZoom: je, maxZoom: at, preventScrolling: Xe, zoomOnScroll: wt, zoomOnPinch: pt, zoomOnDoubleClick: Ke, panOnScroll: tt, panOnScrollSpeed: bt, panOnScrollMode: De, panOnDrag: ct, onPaneClick: jt, onPaneMouseEnter: xt, onPaneMouseMove: qt, onPaneMouseLeave: St, onPaneScroll: dn, onPaneContextMenu: Ut, onSelectionContextMenu: $, onSelectionStart: M, onSelectionEnd: B, onEdgeUpdate: Ht, onEdgeContextMenu: pn, onEdgeDoubleClick: Et, onEdgeMouseEnter: Nn, onEdgeMouseMove: nn, onEdgeMouseLeave: le, onEdgeUpdateStart: ye, onEdgeUpdateEnd: Se, edgeUpdaterRadius: Fe, defaultMarkerColor: qe, noDragClassName: gn, noWheelClassName: mn, noPanClassName: In, elevateEdgesOnSelect: We, rfId: Dn, disableKeyboardA11y: Ve, nodeOrigin: $e, nodeExtent: Ge }), s(CW, { nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: p, onConnectStart: g, onConnectEnd: m, onClickConnectStart: b, onClickConnectEnd: y, nodesDraggable: X, nodesConnectable: Me, nodesFocusable: _e, edgesFocusable: Le, elementsSelectable: we, elevateNodesOnSelect: Ne, minZoom: je, maxZoom: at, nodeExtent: Ge, onNodesChange: st, onEdgesChange: Ct, snapToGrid: Te, snapGrid: J, connectionMode: j, translateExtent: Pe, connectOnClick: re, defaultEdgeOptions: Ce, fitView: Pt, fitViewOptions: z, onNodesDelete: A, onEdgesDelete: T, onNodeDragStart: R, onNodeDrag: L, onNodeDragStop: H, onSelectionDrag: E, onSelectionDragStart: V, onSelectionDragStop: N, noPanClassName: In, nodeOrigin: $e, rfId: Dn, autoPanOnConnect: Ze, autoPanOnNodeDrag: Ue, onError: Nt, connectionRadius: ot }), s(_W, { onSelectionChange: P }), Rt, s(XK, { proOptions: be, position: ne }), s(OW, { rfId: Dn, disableKeyboardA11y: Ve })] }) });
40037
40037
  });
40038
40038
  sw.displayName = "ReactFlow";
40039
40039
  const lw = ({ id: e, x: t, y: n, width: r, height: o, style: i, color: a, strokeColor: l, strokeWidth: c, className: u, borderRadius: d, shapeRendering: f, onClick: h }) => {
@@ -40059,7 +40059,7 @@ const NG = 200, IG = 150, LG = (e) => {
40059
40059
  }, Vc = (e) => e instanceof Function ? e : () => e, zG = "react-flow__minimap-desc";
40060
40060
  function cw({ style: e, className: t, nodeStrokeColor: n = "transparent", nodeColor: r = "#e2e2e2", nodeClassName: o = "", nodeBorderRadius: i = 5, nodeStrokeWidth: a = 2, maskColor: l = "rgb(240, 240, 240, 0.6)", maskStrokeColor: c = "none", maskStrokeWidth: u = 1, position: d = "bottom-right", onClick: f, onNodeClick: h, pannable: p = !1, zoomable: g = !1, ariaLabel: m = "React Flow mini map" }) {
40061
40061
  var ge, he;
40062
- const b = yn(), y = Ee(null), { boundingRect: w, viewBB: _, nodes: x, rfId: S, nodeOrigin: k } = Gt(LG, Mn), O = (ge = e == null ? void 0 : e.width) != null ? ge : NG, L = (he = e == null ? void 0 : e.height) != null ? he : IG, H = Vc(r), A = Vc(n), T = Vc(o), P = w.width / O, V = w.height / L, E = Math.max(P, V), N = E * O, $ = E * L, M = 5 * E, B = w.x - (N - w.width) / 2 - M, j = w.y - ($ - w.height) / 2 - M, G = N + M * 2, U = $ + M * 2, oe = typeof window > "u" || !!window.chrome ? "crispEdges" : "geometricPrecision", ae = `${zG}-${S}`, Q = Ee(0);
40062
+ const b = yn(), y = Ee(null), { boundingRect: w, viewBB: _, nodes: x, rfId: S, nodeOrigin: k } = Gt(LG, Mn), R = (ge = e == null ? void 0 : e.width) != null ? ge : NG, L = (he = e == null ? void 0 : e.height) != null ? he : IG, H = Vc(r), A = Vc(n), T = Vc(o), P = w.width / R, V = w.height / L, E = Math.max(P, V), N = E * R, $ = E * L, M = 5 * E, B = w.x - (N - w.width) / 2 - M, j = w.y - ($ - w.height) / 2 - M, G = N + M * 2, U = $ + M * 2, oe = typeof window > "u" || !!window.chrome ? "crispEdges" : "geometricPrecision", ae = `${zG}-${S}`, Q = Ee(0);
40063
40063
  Q.current = E, ue(() => {
40064
40064
  if (y.current) {
40065
40065
  const de = Xn(y.current), Oe = (se) => {
@@ -40093,7 +40093,7 @@ function cw({ style: e, className: t, nodeStrokeColor: n = "transparent", nodeCo
40093
40093
  const Te = b.getState().nodeInternals.get(Oe);
40094
40094
  h(de, Te);
40095
40095
  } : void 0;
40096
- return s(Sf, { position: d, style: e, className: Sn(["react-flow__minimap", t]), children: v("svg", { width: O, height: L, viewBox: `${B} ${j} ${G} ${U}`, role: "img", "aria-labelledby": ae, ref: y, onClick: te, children: [m && s("title", { id: ae, children: m }), x.map((de) => {
40096
+ return s(Sf, { position: d, style: e, className: Sn(["react-flow__minimap", t]), children: v("svg", { width: R, height: L, viewBox: `${B} ${j} ${G} ${U}`, role: "img", "aria-labelledby": ae, ref: y, onClick: te, children: [m && s("title", { id: ae, children: m }), x.map((de) => {
40097
40097
  const { x: Oe, y: Te } = Do(de, k).positionAbsolute;
40098
40098
  return s(PG, { x: Oe, y: Te, width: de.width, height: de.height, style: de.style, className: T(de), color: H(de), borderRadius: i, strokeColor: A(de), strokeWidth: a, shapeRendering: oe, onClick: me, id: de.id }, de.id);
40099
40099
  }), s("path", { className: "react-flow__minimap-mask", d: `M${B - M},${j - M}h${G + M * 2}v${U + M * 2}h${-G - M * 2}z
@@ -44734,8 +44734,8 @@ var Cw = { exports: {} };
44734
44734
  var y = g[b], w = y.type, _ = y.value, x = n[w];
44735
44735
  x >= 0 && (m[x] = parseInt(_, 10));
44736
44736
  }
44737
- var S = m[3], k = S === 24 ? 0 : S, O = m[0] + "-" + m[1] + "-" + m[2] + " " + k + ":" + m[4] + ":" + m[5] + ":000", L = +h;
44738
- return (a.utc(O).valueOf() - (L -= L % 1e3)) / 6e4;
44737
+ var S = m[3], k = S === 24 ? 0 : S, R = m[0] + "-" + m[1] + "-" + m[2] + " " + k + ":" + m[4] + ":" + m[5] + ":000", L = +h;
44738
+ return (a.utc(R).valueOf() - (L -= L % 1e3)) / 6e4;
44739
44739
  }, d = i.prototype;
44740
44740
  d.tz = function(h, p) {
44741
44741
  h === void 0 && (h = l);
@@ -44761,11 +44761,11 @@ var Cw = { exports: {} };
44761
44761
  var m = g && p, b = g || p || l, y = u(+a(), b);
44762
44762
  if (typeof h != "string")
44763
44763
  return a(h).tz(b);
44764
- var w = function(k, O, L) {
44765
- var H = k - 60 * O * 1e3, A = u(H, L);
44766
- if (O === A)
44767
- return [H, O];
44768
- var T = u(H -= 60 * (A - O) * 1e3, L);
44764
+ var w = function(k, R, L) {
44765
+ var H = k - 60 * R * 1e3, A = u(H, L);
44766
+ if (R === A)
44767
+ return [H, R];
44768
+ var T = u(H -= 60 * (A - R) * 1e3, L);
44769
44769
  return A === T ? [H, A] : [k - 60 * Math.min(A, T) * 1e3, Math.max(A, T)];
44770
44770
  }(a.utc(h, m).valueOf(), y, b), _ = w[0], x = w[1], S = a(_).utcOffset(x);
44771
44771
  return S.$x.$timezone = b, S;
@@ -44817,7 +44817,7 @@ var Ew = { exports: {} };
44817
44817
  var k = S.match(r);
44818
44818
  if (!k)
44819
44819
  return null;
44820
- var O = ("" + k[0]).match(o) || ["-", 0, 0], L = O[0], H = 60 * +O[1] + +O[2];
44820
+ var R = ("" + k[0]).match(o) || ["-", 0, 0], L = R[0], H = 60 * +R[1] + +R[2];
44821
44821
  return H === 0 ? 0 : L === "+" ? H : -H;
44822
44822
  }(m), m === null))
44823
44823
  return this;