@devtable/dashboard 8.36.0 → 8.37.0

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.
@@ -214,14 +214,14 @@ function CS() {
214
214
  return typeof ne == "function" ? ne : null;
215
215
  }
216
216
  var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
217
- function S(L) {
217
+ function w(L) {
218
218
  {
219
219
  for (var ne = arguments.length, te = new Array(ne > 1 ? ne - 1 : 0), be = 1; be < ne; be++)
220
220
  te[be - 1] = arguments[be];
221
- w("error", L, te);
221
+ S("error", L, te);
222
222
  }
223
223
  }
224
- function w(L, ne, te) {
224
+ function S(L, ne, te) {
225
225
  {
226
226
  var be = y.ReactDebugCurrentFrame, Ce = be.getStackAddendum();
227
227
  Ce !== "" && (ne += "%s", te = te.concat([Ce]));
@@ -249,7 +249,7 @@ function CS() {
249
249
  function V(L) {
250
250
  if (L == null)
251
251
  return null;
252
- if (typeof L.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof L == "function")
252
+ if (typeof L.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof L == "function")
253
253
  return L.displayName || L.name || null;
254
254
  if (typeof L == "string")
255
255
  return L;
@@ -350,7 +350,7 @@ function CS() {
350
350
  })
351
351
  });
352
352
  }
353
- P < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
353
+ P < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
354
354
  }
355
355
  }
356
356
  var me = y.ReactCurrentDispatcher, ge;
@@ -502,7 +502,7 @@ function CS() {
502
502
  } catch (Ue) {
503
503
  ze = Ue;
504
504
  }
505
- ze && !(ze instanceof Error) && (Ie(Ce), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", be || "React class", te, Ke, typeof ze), Ie(null)), ze instanceof Error && !(ze.message in we) && (we[ze.message] = !0, Ie(Ce), S("Failed %s type: %s", te, ze.message), Ie(null));
505
+ ze && !(ze instanceof Error) && (Ie(Ce), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", be || "React class", te, Ke, typeof ze), Ie(null)), ze instanceof Error && !(ze.message in we) && (we[ze.message] = !0, Ie(Ce), w("Failed %s type: %s", te, ze.message), Ie(null));
506
506
  }
507
507
  }
508
508
  }
@@ -528,7 +528,7 @@ function CS() {
528
528
  }
529
529
  function We(L) {
530
530
  if ($e(L))
531
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", at(L)), Xe(L);
531
+ return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", at(L)), Xe(L);
532
532
  }
533
533
  var qe = y.ReactCurrentOwner, wt = {
534
534
  key: !0,
@@ -556,13 +556,13 @@ function CS() {
556
556
  function ct(L, ne) {
557
557
  if (typeof L.ref == "string" && qe.current && ne && qe.current.stateNode !== ne) {
558
558
  var te = V(qe.current.type);
559
- yt[te] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', V(qe.current.type), L.ref), yt[te] = !0);
559
+ yt[te] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', V(qe.current.type), L.ref), yt[te] = !0);
560
560
  }
561
561
  }
562
562
  function Bt(L, ne) {
563
563
  {
564
564
  var te = function() {
565
- pt || (pt = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ne));
565
+ pt || (pt = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ne));
566
566
  };
567
567
  te.isReactWarning = !0, Object.defineProperty(L, "key", {
568
568
  get: te,
@@ -573,7 +573,7 @@ function CS() {
573
573
  function bt(L, ne) {
574
574
  {
575
575
  var te = function() {
576
- tt || (tt = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ne));
576
+ tt || (tt = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ne));
577
577
  };
578
578
  te.isReactWarning = !0, Object.defineProperty(L, "ref", {
579
579
  get: te,
@@ -684,7 +684,7 @@ Check the top-level render call using <` + te + ">.");
684
684
  return;
685
685
  Jt[te] = !0;
686
686
  var be = "";
687
- L && L._owner && L._owner !== un.current && (be = " It was passed a child from " + V(L._owner.type) + "."), Rt(L), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', te, be), Rt(null);
687
+ L && L._owner && L._owner !== un.current && (be = " It was passed a child from " + V(L._owner.type) + "."), Rt(L), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', te, be), Rt(null);
688
688
  }
689
689
  }
690
690
  function _e(L, ne) {
@@ -724,9 +724,9 @@ Check the top-level render call using <` + te + ">.");
724
724
  } else if (ne.PropTypes !== void 0 && !Ft) {
725
725
  Ft = !0;
726
726
  var Ce = V(ne);
727
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Ce || "Unknown");
727
+ w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Ce || "Unknown");
728
728
  }
729
- typeof ne.getDefaultProps == "function" && !ne.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
729
+ typeof ne.getDefaultProps == "function" && !ne.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
730
730
  }
731
731
  }
732
732
  function st(L) {
@@ -734,11 +734,11 @@ Check the top-level render call using <` + te + ">.");
734
734
  for (var ne = Object.keys(L.props), te = 0; te < ne.length; te++) {
735
735
  var be = ne[te];
736
736
  if (be !== "children" && be !== "key") {
737
- Rt(L), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", be), Rt(null);
737
+ Rt(L), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", be), Rt(null);
738
738
  break;
739
739
  }
740
740
  }
741
- L.ref !== null && (Rt(L), S("Invalid attribute `ref` supplied to `React.Fragment`."), Rt(null));
741
+ L.ref !== null && (Rt(L), w("Invalid attribute `ref` supplied to `React.Fragment`."), Rt(null));
742
742
  }
743
743
  }
744
744
  function _t(L, ne, te, be, Ce, Pe) {
@@ -750,7 +750,7 @@ Check the top-level render call using <` + te + ">.");
750
750
  var Ze = $n(Ce);
751
751
  Ze ? ze += Ze : ze += Ct();
752
752
  var Ue;
753
- L === null ? Ue = "null" : Be(L) ? Ue = "array" : L !== void 0 && L.$$typeof === t ? (Ue = "<" + (V(L.type) || "Unknown") + " />", ze = " Did you accidentally export a JSX literal instead of a component?") : Ue = typeof L, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ue, ze);
753
+ L === null ? Ue = "null" : Be(L) ? Ue = "array" : L !== void 0 && L.$$typeof === t ? (Ue = "<" + (V(L.type) || "Unknown") + " />", ze = " Did you accidentally export a JSX literal instead of a component?") : Ue = typeof L, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ue, ze);
754
754
  }
755
755
  var ot = St(L, ne, te, Ce, Pe);
756
756
  if (ot == null)
@@ -764,7 +764,7 @@ Check the top-level render call using <` + te + ">.");
764
764
  _e(Nt[_n], L);
765
765
  Object.freeze && Object.freeze(Nt);
766
766
  } else
767
- S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
767
+ w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
768
768
  else
769
769
  _e(Nt, L);
770
770
  }
@@ -1639,8 +1639,8 @@ var Km = {};
1639
1639
  for (var c, u = t(t({}, n), l), d = [], h = {}, f = u.throwIfOrphans ? /* @__PURE__ */ new Set() : null, p = 0, g = a; p < g.length; p++) {
1640
1640
  var m = g[p], b = u.nestedIds ? i(m, u.id) : m[u.id], y = u.nestedIds ? i(m, u.parentId) : m[u.parentId];
1641
1641
  if (u.rootParentIds[b])
1642
- throw new Error("The item array contains a node whose parentId both exists in another node and is in " + '`rootParentIds` (`itemId`: "'.concat(b, '", `rootParentIds`: ').concat(Object.keys(u.rootParentIds).map(function(S) {
1643
- return '"'.concat(S, '"');
1642
+ throw new Error("The item array contains a node whose parentId both exists in another node and is in " + '`rootParentIds` (`itemId`: "'.concat(b, '", `rootParentIds`: ').concat(Object.keys(u.rootParentIds).map(function(w) {
1643
+ return '"'.concat(w, '"');
1644
1644
  }).join(", "), ")."));
1645
1645
  Object.prototype.hasOwnProperty.call(h, b) || (h[b] = ((c = {})[u.childrenField] = [], c)), f && f.delete(b), u.dataField ? h[b][u.dataField] = m : u.assign ? h[b] = Object.assign(m, ((c = {})[u.childrenField] = h[b][u.childrenField], c)) : h[b] = t(t({}, m), ((m = {})[u.childrenField] = h[b][u.childrenField], m)), m = h[b], y == null || u.rootParentIds[y] ? d.push(m) : (Object.prototype.hasOwnProperty.call(h, y) || (h[y] = ((b = {})[u.childrenField] = [], b), f && f.add(y)), h[y][u.childrenField].push(m));
1646
1646
  }
@@ -2042,15 +2042,15 @@ function ia(e, t) {
2042
2042
  return Ul(o) ? o : Ul(r) ? typeof r == "function" ? r() : r : typeof e == "function" ? e() : e;
2043
2043
  }), c = rr(l, 2), u = c[0], d = c[1], h = o !== void 0 ? o : u, f = a ? a(h) : h, p = Yf(i), g = io([h]), m = rr(g, 2), b = m[0], y = m[1];
2044
2044
  Xf(function() {
2045
- var w = b[0];
2046
- u !== w && p(u, w);
2045
+ var S = b[0];
2046
+ u !== S && p(u, S);
2047
2047
  }, [b]), Xf(function() {
2048
2048
  Ul(o) || d(o);
2049
2049
  }, [o]);
2050
- var S = Yf(function(w, x) {
2051
- d(w, x), y([h], x);
2050
+ var w = Yf(function(S, x) {
2051
+ d(S, x), y([h], x);
2052
2052
  });
2053
- return [f, S];
2053
+ return [f, w];
2054
2054
  }
2055
2055
  var Qf = {};
2056
2056
  function Cs(e, t) {
@@ -2297,8 +2297,8 @@ function Y_() {
2297
2297
  if (Jf)
2298
2298
  return Et;
2299
2299
  Jf = 1;
2300
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
2301
- function w(_) {
2300
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
2301
+ function S(_) {
2302
2302
  if (typeof _ == "object" && _ !== null) {
2303
2303
  var k = _.$$typeof;
2304
2304
  switch (k) {
@@ -2329,35 +2329,35 @@ function Y_() {
2329
2329
  }
2330
2330
  }
2331
2331
  function x(_) {
2332
- return w(_) === u;
2332
+ return S(_) === u;
2333
2333
  }
2334
2334
  return Et.AsyncMode = c, Et.ConcurrentMode = u, Et.ContextConsumer = l, Et.ContextProvider = a, Et.Element = t, Et.ForwardRef = d, Et.Fragment = r, Et.Lazy = g, Et.Memo = p, Et.Portal = n, Et.Profiler = i, Et.StrictMode = o, Et.Suspense = h, Et.isAsyncMode = function(_) {
2335
- return x(_) || w(_) === c;
2335
+ return x(_) || S(_) === c;
2336
2336
  }, Et.isConcurrentMode = x, Et.isContextConsumer = function(_) {
2337
- return w(_) === l;
2337
+ return S(_) === l;
2338
2338
  }, Et.isContextProvider = function(_) {
2339
- return w(_) === a;
2339
+ return S(_) === a;
2340
2340
  }, Et.isElement = function(_) {
2341
2341
  return typeof _ == "object" && _ !== null && _.$$typeof === t;
2342
2342
  }, Et.isForwardRef = function(_) {
2343
- return w(_) === d;
2343
+ return S(_) === d;
2344
2344
  }, Et.isFragment = function(_) {
2345
- return w(_) === r;
2345
+ return S(_) === r;
2346
2346
  }, Et.isLazy = function(_) {
2347
- return w(_) === g;
2347
+ return S(_) === g;
2348
2348
  }, Et.isMemo = function(_) {
2349
- return w(_) === p;
2349
+ return S(_) === p;
2350
2350
  }, Et.isPortal = function(_) {
2351
- return w(_) === n;
2351
+ return S(_) === n;
2352
2352
  }, Et.isProfiler = function(_) {
2353
- return w(_) === i;
2353
+ return S(_) === i;
2354
2354
  }, Et.isStrictMode = function(_) {
2355
- return w(_) === o;
2355
+ return S(_) === o;
2356
2356
  }, Et.isSuspense = function(_) {
2357
- return w(_) === h;
2357
+ return S(_) === h;
2358
2358
  }, Et.isValidElementType = function(_) {
2359
- return typeof _ == "string" || typeof _ == "function" || _ === r || _ === u || _ === i || _ === o || _ === h || _ === f || typeof _ == "object" && _ !== null && (_.$$typeof === g || _.$$typeof === p || _.$$typeof === a || _.$$typeof === l || _.$$typeof === d || _.$$typeof === b || _.$$typeof === y || _.$$typeof === S || _.$$typeof === m);
2360
- }, Et.typeOf = w, Et;
2359
+ return typeof _ == "string" || typeof _ == "function" || _ === r || _ === u || _ === i || _ === o || _ === h || _ === f || typeof _ == "object" && _ !== null && (_.$$typeof === g || _.$$typeof === p || _.$$typeof === a || _.$$typeof === l || _.$$typeof === d || _.$$typeof === b || _.$$typeof === y || _.$$typeof === w || _.$$typeof === m);
2360
+ }, Et.typeOf = S, Et;
2361
2361
  }
2362
2362
  var kt = {};
2363
2363
  /** @license React v16.13.1
@@ -2371,9 +2371,9 @@ var kt = {};
2371
2371
  var eh;
2372
2372
  function X_() {
2373
2373
  return eh || (eh = 1, process.env.NODE_ENV !== "production" && function() {
2374
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
2375
- function w(Z) {
2376
- return typeof Z == "string" || typeof Z == "function" || Z === r || Z === u || Z === i || Z === o || Z === h || Z === f || typeof Z == "object" && Z !== null && (Z.$$typeof === g || Z.$$typeof === p || Z.$$typeof === a || Z.$$typeof === l || Z.$$typeof === d || Z.$$typeof === b || Z.$$typeof === y || Z.$$typeof === S || Z.$$typeof === m);
2374
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
2375
+ function S(Z) {
2376
+ return typeof Z == "string" || typeof Z == "function" || Z === r || Z === u || Z === i || Z === o || Z === h || Z === f || typeof Z == "object" && Z !== null && (Z.$$typeof === g || Z.$$typeof === p || Z.$$typeof === a || Z.$$typeof === l || Z.$$typeof === d || Z.$$typeof === b || Z.$$typeof === y || Z.$$typeof === w || Z.$$typeof === m);
2377
2377
  }
2378
2378
  function x(Z) {
2379
2379
  if (typeof Z == "object" && Z !== null) {
@@ -2447,7 +2447,7 @@ function X_() {
2447
2447
  function Te(Z) {
2448
2448
  return x(Z) === h;
2449
2449
  }
2450
- kt.AsyncMode = _, kt.ConcurrentMode = k, kt.ContextConsumer = O, kt.ContextProvider = I, kt.Element = H, kt.ForwardRef = D, kt.Fragment = T, kt.Lazy = $, kt.Memo = V, kt.Portal = E, kt.Profiler = P, kt.StrictMode = A, kt.Suspense = M, kt.isAsyncMode = j, kt.isConcurrentMode = W, kt.isContextConsumer = U, kt.isContextProvider = oe, kt.isElement = ae, kt.isForwardRef = Q, kt.isFragment = ee, kt.isLazy = me, kt.isMemo = ge, kt.isPortal = he, kt.isProfiler = de, kt.isStrictMode = Oe, kt.isSuspense = Te, kt.isValidElementType = w, kt.typeOf = x;
2450
+ kt.AsyncMode = _, kt.ConcurrentMode = k, kt.ContextConsumer = O, kt.ContextProvider = I, kt.Element = H, kt.ForwardRef = D, kt.Fragment = T, kt.Lazy = $, kt.Memo = V, kt.Portal = E, kt.Profiler = P, kt.StrictMode = A, kt.Suspense = M, kt.isAsyncMode = j, kt.isConcurrentMode = W, kt.isContextConsumer = U, kt.isContextProvider = oe, kt.isElement = ae, kt.isForwardRef = Q, kt.isFragment = ee, kt.isLazy = me, kt.isMemo = ge, kt.isPortal = he, kt.isProfiler = de, kt.isStrictMode = Oe, kt.isSuspense = Te, kt.isValidElementType = S, kt.typeOf = x;
2451
2451
  }()), kt;
2452
2452
  }
2453
2453
  (function(e) {
@@ -3192,7 +3192,7 @@ function jC(e) {
3192
3192
  }, [d, r]), f = C.useRef(e);
3193
3193
  f.current = e;
3194
3194
  var p = C.useCallback(function(g) {
3195
- var m = f.current, b = m.onResize, y = m.data, S = g.getBoundingClientRect(), w = S.width, x = S.height, _ = g.offsetWidth, k = g.offsetHeight, O = Math.floor(w), I = Math.floor(x);
3195
+ var m = f.current, b = m.onResize, y = m.data, w = g.getBoundingClientRect(), S = w.width, x = w.height, _ = g.offsetWidth, k = g.offsetHeight, O = Math.floor(S), I = Math.floor(x);
3196
3196
  if (c.current.width !== O || c.current.height !== I || c.current.offsetWidth !== _ || c.current.offsetHeight !== k) {
3197
3197
  var H = {
3198
3198
  width: O,
@@ -3201,7 +3201,7 @@ function jC(e) {
3201
3201
  offsetHeight: k
3202
3202
  };
3203
3203
  c.current = H;
3204
- var D = _ === Math.round(w) ? w : _, T = k === Math.round(x) ? x : k, $ = ah(ah({}, H), {}, {
3204
+ var D = _ === Math.round(S) ? S : _, T = k === Math.round(x) ? x : k, $ = ah(ah({}, H), {}, {
3205
3205
  offsetWidth: D,
3206
3206
  offsetHeight: T
3207
3207
  });
@@ -3236,26 +3236,26 @@ function pl(e) {
3236
3236
  pl.Collection = BC;
3237
3237
  var WC = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"], Ho = void 0;
3238
3238
  function GC(e, t) {
3239
- var n = e.prefixCls, r = e.invalidate, o = e.item, i = e.renderItem, a = e.responsive, l = e.responsiveDisabled, c = e.registerSize, u = e.itemKey, d = e.className, h = e.style, f = e.children, p = e.display, g = e.order, m = e.component, b = m === void 0 ? "div" : m, y = Xi(e, WC), S = a && !p;
3240
- function w(I) {
3239
+ var n = e.prefixCls, r = e.invalidate, o = e.item, i = e.renderItem, a = e.responsive, l = e.responsiveDisabled, c = e.registerSize, u = e.itemKey, d = e.className, h = e.style, f = e.children, p = e.display, g = e.order, m = e.component, b = m === void 0 ? "div" : m, y = Xi(e, WC), w = a && !p;
3240
+ function S(I) {
3241
3241
  c(u, I);
3242
3242
  }
3243
3243
  C.useEffect(function() {
3244
3244
  return function() {
3245
- w(null);
3245
+ S(null);
3246
3246
  };
3247
3247
  }, []);
3248
3248
  var x = i && o !== Ho ? i(o) : f, _;
3249
3249
  r || (_ = {
3250
- opacity: S ? 0 : 1,
3251
- height: S ? 0 : Ho,
3252
- overflowY: S ? "hidden" : Ho,
3250
+ opacity: w ? 0 : 1,
3251
+ height: w ? 0 : Ho,
3252
+ overflowY: w ? "hidden" : Ho,
3253
3253
  order: a ? g : Ho,
3254
- pointerEvents: S ? "none" : Ho,
3255
- position: S ? "absolute" : Ho
3254
+ pointerEvents: w ? "none" : Ho,
3255
+ position: w ? "absolute" : Ho
3256
3256
  });
3257
3257
  var k = {};
3258
- S && (k["aria-hidden"] = !0);
3258
+ w && (k["aria-hidden"] = !0);
3259
3259
  var O = /* @__PURE__ */ s(b, {
3260
3260
  className: Tt(!r && n, d),
3261
3261
  style: Uo(Uo({}, _), h),
@@ -3267,7 +3267,7 @@ function GC(e, t) {
3267
3267
  return a && (O = /* @__PURE__ */ s(pl, {
3268
3268
  onResize: function(H) {
3269
3269
  var D = H.offsetWidth;
3270
- w(D);
3270
+ S(D);
3271
3271
  },
3272
3272
  disabled: l,
3273
3273
  children: O
@@ -3350,7 +3350,7 @@ function JC(e) {
3350
3350
  return "+ ".concat(e.length, " ...");
3351
3351
  }
3352
3352
  function e1(e, t) {
3353
- 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, h = e.ssr, f = e.style, p = e.className, g = e.maxCount, m = e.renderRest, b = e.renderRawRest, y = e.suffix, S = e.component, w = S === void 0 ? "div" : S, x = e.itemComponent, _ = e.onVisibleChange, k = Xi(e, ZC), O = qC(), I = h === "full", H = O(null), D = Or(H, 2), T = D[0], $ = D[1], V = T || 0, E = O(/* @__PURE__ */ new Map()), P = Or(E, 2), A = P[0], M = P[1], B = O(0), j = Or(B, 2), W = j[0], U = j[1], oe = O(0), ae = Or(oe, 2), Q = ae[0], ee = ae[1], me = O(0), ge = Or(me, 2), he = ge[0], de = ge[1], Oe = Ve(null), Te = Or(Oe, 2), Z = Te[0], se = Te[1], Re = Ve(null), X = Or(Re, 2), Me = X[0], we = X[1], Ae = C.useMemo(function() {
3353
+ 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, h = e.ssr, f = e.style, p = e.className, g = e.maxCount, m = e.renderRest, b = e.renderRawRest, y = e.suffix, w = e.component, S = w === void 0 ? "div" : w, x = e.itemComponent, _ = e.onVisibleChange, k = Xi(e, ZC), O = qC(), I = h === "full", H = O(null), D = Or(H, 2), T = D[0], $ = D[1], V = T || 0, E = O(/* @__PURE__ */ new Map()), P = Or(E, 2), A = P[0], M = P[1], B = O(0), j = Or(B, 2), W = j[0], U = j[1], oe = O(0), ae = Or(oe, 2), Q = ae[0], ee = ae[1], me = O(0), ge = Or(me, 2), he = ge[0], de = ge[1], Oe = Ve(null), Te = Or(Oe, 2), Z = Te[0], se = Te[1], Re = Ve(null), X = Or(Re, 2), Me = X[0], we = X[1], Ae = C.useMemo(function() {
3354
3354
  return Me === null && I ? Number.MAX_SAFE_INTEGER : Me || 0;
3355
3355
  }, [Me, T]), Ie = Ve(!1), xe = Or(Ie, 2), et = xe[0], Be = xe[1], at = "".concat(r, "-item"), $e = Math.max(W, Q), Xe = g === vv, We = i.length && Xe, qe = g === yv, wt = We || typeof g == "number" && i.length > g, pt = Y(function() {
3356
3356
  var le = i;
@@ -3462,7 +3462,7 @@ function e1(e, t) {
3462
3462
  children: typeof $n == "function" ? $n(tt) : $n
3463
3463
  });
3464
3464
  }
3465
- var Jt = /* @__PURE__ */ v(w, {
3465
+ var Jt = /* @__PURE__ */ v(S, {
3466
3466
  className: Tt(!qe && r, p),
3467
3467
  style: f,
3468
3468
  ref: t,
@@ -3512,7 +3512,7 @@ var Os = function(t) {
3512
3512
  })
3513
3513
  });
3514
3514
  }, t1 = function(t, n) {
3515
- var r, o, i = t.prefixCls, a = t.id, l = t.inputElement, c = t.disabled, u = t.tabIndex, d = t.autoFocus, h = t.autoComplete, f = t.editable, p = t.activeDescendantId, g = t.value, m = t.maxLength, b = t.onKeyDown, y = t.onMouseDown, S = t.onChange, w = t.onPaste, x = t.onCompositionStart, _ = t.onCompositionEnd, k = t.open, O = t.attrs, I = l || /* @__PURE__ */ s("input", {}), H = I, D = H.ref, T = H.props, $ = T.onKeyDown, V = T.onChange, E = T.onMouseDown, P = T.onCompositionStart, A = T.onCompositionEnd, M = T.style;
3515
+ var r, o, i = t.prefixCls, a = t.id, l = t.inputElement, c = t.disabled, u = t.tabIndex, d = t.autoFocus, h = t.autoComplete, f = t.editable, p = t.activeDescendantId, g = t.value, m = t.maxLength, b = t.onKeyDown, y = t.onMouseDown, w = t.onChange, S = t.onPaste, x = t.onCompositionStart, _ = t.onCompositionEnd, k = t.open, O = t.attrs, I = l || /* @__PURE__ */ s("input", {}), H = I, D = H.ref, T = H.props, $ = T.onKeyDown, V = T.onChange, E = T.onMouseDown, P = T.onCompositionStart, A = T.onCompositionEnd, M = T.style;
3516
3516
  return Cs(!("maxLength" in I.props), "Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."), I = /* @__PURE__ */ C.cloneElement(I, Qt(Qt(Qt({
3517
3517
  type: "search"
3518
3518
  }, T), {}, {
@@ -3545,7 +3545,7 @@ var Os = function(t) {
3545
3545
  y(j), E && E(j);
3546
3546
  },
3547
3547
  onChange: function(j) {
3548
- S(j), V && V(j);
3548
+ w(j), V && V(j);
3549
3549
  },
3550
3550
  onCompositionStart: function(j) {
3551
3551
  x(j), P && P(j);
@@ -3553,7 +3553,7 @@ var Os = function(t) {
3553
3553
  onCompositionEnd: function(j) {
3554
3554
  _(j), A && A(j);
3555
3555
  },
3556
- onPaste: w
3556
+ onPaste: S
3557
3557
  })), I;
3558
3558
  }, nd = /* @__PURE__ */ C.forwardRef(t1);
3559
3559
  nd.displayName = "Input";
@@ -3581,7 +3581,7 @@ function a1(e) {
3581
3581
  var dh = function(t) {
3582
3582
  t.preventDefault(), t.stopPropagation();
3583
3583
  }, s1 = function(t) {
3584
- 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, h = t.mode, f = t.showSearch, p = t.autoFocus, g = t.autoComplete, m = t.activeDescendantId, b = t.tabIndex, y = t.removeIcon, S = t.maxTagCount, w = t.maxTagTextLength, x = t.maxTagPlaceholder, _ = x === void 0 ? function(se) {
3584
+ 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, h = t.mode, f = t.showSearch, p = t.autoFocus, g = t.autoComplete, m = t.activeDescendantId, b = t.tabIndex, y = t.removeIcon, w = t.maxTagCount, S = t.maxTagTextLength, x = t.maxTagPlaceholder, _ = x === void 0 ? function(se) {
3585
3585
  return "+ ".concat(se.length, " ...");
3586
3586
  } : x, k = t.tagRender, O = t.onToggleOpen, I = t.onRemove, H = t.onInputChange, D = t.onInputPaste, T = t.onInputKeyDown, $ = t.onInputMouseDown, V = t.onInputCompositionStart, E = t.onInputCompositionEnd, P = C.useRef(null), A = Ve(0), M = rn(A, 2), B = M[0], j = M[1], W = Ve(!1), U = rn(W, 2), oe = U[0], ae = U[1], Q = "".concat(r, "-selection"), ee = i || h === "multiple" && l === !1 || h === "tags" ? a : "", me = h === "tags" || h === "multiple" && l === !1 || f && (i || oe);
3587
3587
  i1(function() {
@@ -3620,9 +3620,9 @@ var dh = function(t) {
3620
3620
  }
3621
3621
  function de(se) {
3622
3622
  var Re = se.disabled, X = se.label, Me = se.value, we = !d && !Re, Ae = X;
3623
- if (typeof w == "number" && (typeof X == "string" || typeof X == "number")) {
3623
+ if (typeof S == "number" && (typeof X == "string" || typeof X == "number")) {
3624
3624
  var Ie = String(Ae);
3625
- Ie.length > w && (Ae = "".concat(Ie.slice(0, w), "..."));
3625
+ Ie.length > S && (Ae = "".concat(Ie.slice(0, S), "..."));
3626
3626
  }
3627
3627
  var xe = function(Be) {
3628
3628
  Be && Be.stopPropagation(), I(se);
@@ -3679,7 +3679,7 @@ var dh = function(t) {
3679
3679
  renderRest: Oe,
3680
3680
  suffix: Te,
3681
3681
  itemKey: a1,
3682
- maxCount: S
3682
+ maxCount: w
3683
3683
  });
3684
3684
  return /* @__PURE__ */ v(ke, {
3685
3685
  children: [Z, !o.length && !ee && /* @__PURE__ */ s("span", {
@@ -3688,7 +3688,7 @@ var dh = function(t) {
3688
3688
  })]
3689
3689
  });
3690
3690
  }, l1 = function(t) {
3691
- 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, h = t.open, f = t.values, p = t.placeholder, g = t.tabIndex, m = t.showSearch, b = t.searchValue, y = t.activeValue, S = t.maxLength, w = t.onInputKeyDown, x = t.onInputMouseDown, _ = t.onInputChange, k = t.onInputPaste, O = t.onInputCompositionStart, I = t.onInputCompositionEnd, H = C.useState(!1), D = rn(H, 2), T = D[0], $ = D[1], V = d === "combobox", E = V || m, P = f[0], A = b || "";
3691
+ 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, h = t.open, f = t.values, p = t.placeholder, g = t.tabIndex, m = t.showSearch, b = t.searchValue, y = t.activeValue, w = t.maxLength, S = t.onInputKeyDown, x = t.onInputMouseDown, _ = t.onInputChange, k = t.onInputPaste, O = t.onInputCompositionStart, I = t.onInputCompositionEnd, H = C.useState(!1), D = rn(H, 2), T = D[0], $ = D[1], V = d === "combobox", E = V || m, P = f[0], A = b || "";
3692
3692
  V && y && !T && (A = y), C.useEffect(function() {
3693
3693
  V && $(!1);
3694
3694
  }, [V, y]);
@@ -3719,7 +3719,7 @@ var dh = function(t) {
3719
3719
  editable: E,
3720
3720
  activeDescendantId: u,
3721
3721
  value: A,
3722
- onKeyDown: w,
3722
+ onKeyDown: S,
3723
3723
  onMouseDown: x,
3724
3724
  onChange: function(U) {
3725
3725
  $(!0), _(U);
@@ -3729,7 +3729,7 @@ var dh = function(t) {
3729
3729
  onCompositionEnd: I,
3730
3730
  tabIndex: g,
3731
3731
  attrs: li(t, !0),
3732
- maxLength: V ? S : void 0
3732
+ maxLength: V ? w : void 0
3733
3733
  })
3734
3734
  }), !V && P && !M && /* @__PURE__ */ s("span", {
3735
3735
  className: "".concat(r, "-selection-item"),
@@ -3779,11 +3779,11 @@ var u1 = function(t, n) {
3779
3779
  }
3780
3780
  };
3781
3781
  });
3782
- var b = rv(0), y = rn(b, 2), S = y[0], w = y[1], x = function(M) {
3782
+ var b = rv(0), y = rn(b, 2), w = y[0], S = y[1], x = function(M) {
3783
3783
  var B = M.which;
3784
3784
  (B === ce.UP || B === ce.DOWN) && M.preventDefault(), g && g(M), B === ce.ENTER && l === "tags" && !o.current && !a && (f == null || f(M.target.value)), c1(B) && p(!0);
3785
3785
  }, _ = function() {
3786
- w(!0);
3786
+ S(!0);
3787
3787
  }, k = Ee(null), O = function(M) {
3788
3788
  h(M, !0, o.current) !== !1 && p(!0);
3789
3789
  }, I = function() {
@@ -3809,7 +3809,7 @@ var u1 = function(t, n) {
3809
3809
  }) : r.current.focus();
3810
3810
  }
3811
3811
  }, V = function(M) {
3812
- var B = S();
3812
+ var B = w();
3813
3813
  M.target !== r.current && !B && l !== "combobox" && M.preventDefault(), (l !== "combobox" && (!c || !B) || !a) && (a && d !== !1 && h("", !0, !1), p());
3814
3814
  }, E = {
3815
3815
  inputRef: r,
@@ -4194,7 +4194,7 @@ const P1 = function(e, t) {
4194
4194
  }, []), [i, o];
4195
4195
  };
4196
4196
  function I1(e, t, n, r) {
4197
- 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, h = r.motionLeaveImmediately, f = r.onAppearPrepare, p = r.onEnterPrepare, g = r.onLeavePrepare, m = r.onAppearStart, b = r.onEnterStart, y = r.onLeaveStart, S = r.onAppearActive, w = r.onEnterActive, x = r.onLeaveActive, _ = r.onAppearEnd, k = r.onEnterEnd, O = r.onLeaveEnd, I = r.onVisibleChanged, H = io(), D = Jr(H, 2), T = D[0], $ = D[1], V = io(Go), E = Jr(V, 2), P = E[0], A = E[1], M = io(null), B = Jr(M, 2), j = B[0], W = B[1], U = Ee(!1), oe = Ee(null);
4197
+ 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, h = r.motionLeaveImmediately, f = r.onAppearPrepare, p = r.onEnterPrepare, g = r.onLeavePrepare, m = r.onAppearStart, b = r.onEnterStart, y = r.onLeaveStart, w = r.onAppearActive, S = r.onEnterActive, x = r.onLeaveActive, _ = r.onAppearEnd, k = r.onEnterEnd, O = r.onLeaveEnd, I = r.onVisibleChanged, H = io(), D = Jr(H, 2), T = D[0], $ = D[1], V = io(Go), E = Jr(V, 2), P = E[0], A = E[1], M = io(null), B = Jr(M, 2), j = B[0], W = B[1], U = Ee(!1), oe = Ee(null);
4198
4198
  function ae() {
4199
4199
  return n();
4200
4200
  }
@@ -4210,9 +4210,9 @@ function I1(e, t, n, r) {
4210
4210
  var we, Ae, Ie;
4211
4211
  switch (P) {
4212
4212
  case Ga:
4213
- return we = {}, Gn(we, Rr, f), Gn(we, Yo, m), Gn(we, Xo, S), we;
4213
+ return we = {}, Gn(we, Rr, f), Gn(we, Yo, m), Gn(we, Xo, w), we;
4214
4214
  case qa:
4215
- return Ae = {}, Gn(Ae, Rr, p), Gn(Ae, Yo, b), Gn(Ae, Xo, w), Ae;
4215
+ return Ae = {}, Gn(Ae, Rr, p), Gn(Ae, Yo, b), Gn(Ae, Xo, S), Ae;
4216
4216
  case Ua:
4217
4217
  return Ie = {}, Gn(Ie, Rr, g), Gn(Ie, Yo, y), Gn(Ie, Xo, x), Ie;
4218
4218
  default:
@@ -4351,14 +4351,14 @@ function W1(e) {
4351
4351
  }
4352
4352
  var r = /* @__PURE__ */ C.forwardRef(function(o, i) {
4353
4353
  var a = o.visible, l = a === void 0 ? !0 : a, c = o.removeOnLeave, u = c === void 0 ? !0 : c, d = o.forceRender, h = o.children, f = o.motionName, p = o.leavedClassName, g = o.eventProps, m = n(o), b = Ee(), y = Ee();
4354
- function S() {
4354
+ function w() {
4355
4355
  try {
4356
4356
  return b.current instanceof HTMLElement ? b.current : la(y.current);
4357
4357
  } catch {
4358
4358
  return null;
4359
4359
  }
4360
4360
  }
4361
- var w = I1(m, l, S, o), x = Jr(w, 4), _ = x[0], k = x[1], O = x[2], I = x[3], H = C.useRef(I);
4361
+ var S = I1(m, l, w, o), x = Jr(S, 4), _ = x[0], k = x[1], O = x[2], I = x[3], H = C.useRef(I);
4362
4362
  I && (H.current = !0);
4363
4363
  var D = C.useCallback(function(M) {
4364
4364
  b.current = M, ev(i, M);
@@ -4699,10 +4699,10 @@ function Mh(e, t, n) {
4699
4699
  }
4700
4700
  ei(e, f), kh(e), ("left" in t || "top" in t) && Eh(e, u);
4701
4701
  var y = {};
4702
- for (var S in t)
4703
- if (t.hasOwnProperty(S)) {
4704
- var w = Ya(S, n), x = t[S] - d[S];
4705
- S === w ? y[w] = f[w] + x : y[w] = f[w] - x;
4702
+ for (var w in t)
4703
+ if (t.hasOwnProperty(w)) {
4704
+ var S = Ya(w, n), x = t[w] - d[w];
4705
+ w === S ? y[S] = f[S] + x : y[S] = f[S] - x;
4706
4706
  }
4707
4707
  ei(e, y);
4708
4708
  }
@@ -4910,10 +4910,10 @@ function sd(e, t) {
4910
4910
  if (y.overflowX === "hidden" && (m = i.innerWidth), y.overflowY === "hidden" && (b = i.innerHeight), e.style && (e.style.position = u), t || bE(e))
4911
4911
  n.left = Math.max(n.left, h), n.top = Math.max(n.top, f), n.right = Math.min(n.right, h + p), n.bottom = Math.min(n.bottom, f + g);
4912
4912
  else {
4913
- var S = Math.max(m, h + p);
4914
- n.right = Math.min(n.right, S);
4915
- var w = Math.max(b, f + g);
4916
- n.bottom = Math.min(n.bottom, w);
4913
+ var w = Math.max(m, h + p);
4914
+ n.right = Math.min(n.right, w);
4915
+ var S = Math.max(b, f + g);
4916
+ n.bottom = Math.min(n.bottom, S);
4917
4917
  }
4918
4918
  return n.top >= 0 && n.left >= 0 && n.bottom > n.top && n.right > n.left ? n : null;
4919
4919
  }
@@ -4992,8 +4992,8 @@ function Vv(e, t, n, r) {
4992
4992
  var b = Qa(o, /[lr]/gi, {
4993
4993
  l: "r",
4994
4994
  r: "l"
4995
- }), y = Za(i, 0), S = Za(a, 0), w = Xa(p, t, b, y, S);
4996
- wE(w, p, f) || (d = 1, o = b, i = y, a = S);
4995
+ }), y = Za(i, 0), w = Za(a, 0), S = Xa(p, t, b, y, w);
4996
+ wE(S, p, f) || (d = 1, o = b, i = y, a = w);
4997
4997
  }
4998
4998
  if (l.adjustY && Ph(g, p, f)) {
4999
4999
  var x = Qa(o, /[tb]/gi, {
@@ -5348,9 +5348,9 @@ function N2(e, t, n, r, o, i) {
5348
5348
  break;
5349
5349
  }
5350
5350
  if (p) {
5351
- if (!D2(t, function(y, S) {
5352
- if (!A2(p, S) && (g === y || o(g, y, n, r, i)))
5353
- return p.push(S);
5351
+ if (!D2(t, function(y, w) {
5352
+ if (!A2(p, w) && (g === y || o(g, y, n, r, i)))
5353
+ return p.push(w);
5354
5354
  })) {
5355
5355
  f = !1;
5356
5356
  break;
@@ -5554,10 +5554,10 @@ function hR(e, t, n, r, o, i) {
5554
5554
  i.set(e, t), i.set(t, e);
5555
5555
  for (var b = a; ++h < c; ) {
5556
5556
  f = l[h];
5557
- var y = e[f], S = t[f];
5557
+ var y = e[f], w = t[f];
5558
5558
  if (r)
5559
- var w = a ? r(S, y, f, t, e, i) : r(y, S, f, e, t, i);
5560
- if (!(w === void 0 ? y === S || o(y, S, n, r, i) : w)) {
5559
+ var S = a ? r(w, y, f, t, e, i) : r(y, w, f, e, t, i);
5560
+ if (!(S === void 0 ? y === w || o(y, w, n, r, i) : S)) {
5561
5561
  m = !1;
5562
5562
  break;
5563
5563
  }
@@ -5681,7 +5681,7 @@ var eD = function(t, n) {
5681
5681
  return V && Q1(V) ? $ = cd(T, V, H) : E && ($ = CE(T, E, H)), ZR(A, T), D && $ && D(T, $), !0;
5682
5682
  }
5683
5683
  return !1;
5684
- }, d), b = Rv(m, 2), y = b[0], S = b[1], w = J.useRef({
5684
+ }, d), b = Rv(m, 2), y = b[0], w = b[1], S = J.useRef({
5685
5685
  cancel: function() {
5686
5686
  }
5687
5687
  }), x = J.useRef({
@@ -5690,16 +5690,16 @@ var eD = function(t, n) {
5690
5690
  });
5691
5691
  J.useEffect(function() {
5692
5692
  var k = up(i), O = dp(i);
5693
- f.current !== x.current.element && (x.current.cancel(), x.current.element = f.current, x.current.cancel = cp(f.current, y)), (h.current.element !== k || !QR(h.current.point, O) || !XR(h.current.align, a)) && (y(), w.current.element !== k && (w.current.cancel(), w.current.element = k, w.current.cancel = cp(k, y)));
5693
+ f.current !== x.current.element && (x.current.cancel(), x.current.element = f.current, x.current.cancel = cp(f.current, y)), (h.current.element !== k || !QR(h.current.point, O) || !XR(h.current.align, a)) && (y(), S.current.element !== k && (S.current.cancel(), S.current.element = k, S.current.cancel = cp(k, y)));
5694
5694
  }), J.useEffect(function() {
5695
- o ? S() : y();
5695
+ o ? w() : y();
5696
5696
  }, [o]);
5697
5697
  var _ = J.useRef(null);
5698
5698
  return J.useEffect(function() {
5699
5699
  c ? _.current || (_.current = ji(window, "resize", y)) : _.current && (_.current.remove(), _.current = null);
5700
5700
  }, [c]), J.useEffect(function() {
5701
5701
  return function() {
5702
- w.current.cancel(), x.current.cancel(), _.current && _.current.remove(), S();
5702
+ S.current.cancel(), x.current.cancel(), _.current && _.current.remove(), w();
5703
5703
  };
5704
5704
  }, []), J.useImperativeHandle(n, function() {
5705
5705
  return {
@@ -5806,14 +5806,14 @@ function eu() {
5806
5806
  var m = Object.getPrototypeOf, b = m && m(m(I([])));
5807
5807
  b && b !== t && n.call(b, o) && (g = b);
5808
5808
  var y = p.prototype = h.prototype = Object.create(g);
5809
- function S(D) {
5809
+ function w(D) {
5810
5810
  ["next", "throw", "return"].forEach(function(T) {
5811
5811
  l(D, T, function($) {
5812
5812
  return this._invoke(T, $);
5813
5813
  });
5814
5814
  });
5815
5815
  }
5816
- function w(D, T) {
5816
+ function S(D, T) {
5817
5817
  function $(E, P, A, M) {
5818
5818
  var B = u(D[E], D, P);
5819
5819
  if (B.type !== "throw") {
@@ -5907,15 +5907,15 @@ function eu() {
5907
5907
  return {
5908
5908
  __await: D
5909
5909
  };
5910
- }, S(w.prototype), l(w.prototype, i, function() {
5910
+ }, w(S.prototype), l(S.prototype, i, function() {
5911
5911
  return this;
5912
- }), e.AsyncIterator = w, e.async = function(D, T, $, V, E) {
5912
+ }), e.AsyncIterator = S, e.async = function(D, T, $, V, E) {
5913
5913
  E === void 0 && (E = Promise);
5914
- var P = new w(c(D, T, $, V), E);
5914
+ var P = new S(c(D, T, $, V), E);
5915
5915
  return e.isGeneratorFunction(T) ? P : P.next().then(function(A) {
5916
5916
  return A.done ? A.value : P.next();
5917
5917
  });
5918
- }, S(y), l(y, a, "Generator"), l(y, o, function() {
5918
+ }, w(y), l(y, a, "Generator"), l(y, o, function() {
5919
5919
  return this;
5920
5920
  }), l(y, "toString", function() {
5921
5921
  return "[object Generator]";
@@ -6117,7 +6117,7 @@ const nD = function(e, t) {
6117
6117
  return [a, i];
6118
6118
  };
6119
6119
  var Jv = /* @__PURE__ */ C.forwardRef(function(e, t) {
6120
- 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, h = e.align, f = e.point, p = e.getRootDomNode, g = e.getClassNameFromAlign, m = e.onAlign, b = e.onMouseEnter, y = e.onMouseLeave, S = e.onMouseDown, w = e.onTouchStart, x = e.onClick, _ = Ee(), k = Ee(), O = Ve(), I = rr(O, 2), H = I[0], D = I[1], T = rD(c), $ = rr(T, 2), V = $[0], E = $[1];
6120
+ 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, h = e.align, f = e.point, p = e.getRootDomNode, g = e.getClassNameFromAlign, m = e.onAlign, b = e.onMouseEnter, y = e.onMouseLeave, w = e.onMouseDown, S = e.onTouchStart, x = e.onClick, _ = Ee(), k = Ee(), O = Ve(), I = rr(O, 2), H = I[0], D = I[1], T = rD(c), $ = rr(T, 2), V = $[0], E = $[1];
6121
6121
  function P() {
6122
6122
  c && E(p());
6123
6123
  }
@@ -6199,8 +6199,8 @@ var Jv = /* @__PURE__ */ C.forwardRef(function(e, t) {
6199
6199
  className: we,
6200
6200
  onMouseEnter: b,
6201
6201
  onMouseLeave: y,
6202
- onMouseDownCapture: S,
6203
- onTouchStartCapture: w,
6202
+ onMouseDownCapture: w,
6203
+ onTouchStartCapture: S,
6204
6204
  onClick: x,
6205
6205
  style: En(En({}, Me), Oe),
6206
6206
  children: Z
@@ -6235,12 +6235,12 @@ var ey = /* @__PURE__ */ C.forwardRef(function(e, t) {
6235
6235
  removeOnLeave: !0,
6236
6236
  ...d,
6237
6237
  children: function(b, y) {
6238
- var S = b.className, w = b.style, x = Tt(n, l, S);
6238
+ var w = b.className, S = b.style, x = Tt(n, l, w);
6239
6239
  return /* @__PURE__ */ s("div", {
6240
6240
  ref: y,
6241
6241
  className: x,
6242
6242
  onClick: f,
6243
- style: En(En({}, w), g),
6243
+ style: En(En({}, S), g),
6244
6244
  children: m
6245
6245
  });
6246
6246
  }
@@ -6346,7 +6346,7 @@ function lD(e) {
6346
6346
  var u = [], d = a.props, h = d.popupPlacement, f = d.builtinPlacements, p = d.prefixCls, g = d.alignPoint, m = d.getPopupClassNameFromAlign;
6347
6347
  return h && f && u.push(x1(f, p, c, g)), m && u.push(m(c)), u.join(" ");
6348
6348
  }), lt(ut(a), "getComponent", function() {
6349
- var c = a.props, u = c.prefixCls, d = c.destroyPopupOnHide, h = c.popupClassName, f = c.onPopupAlign, p = c.popupMotion, g = c.popupAnimation, m = c.popupTransitionName, b = c.popupStyle, y = c.mask, S = c.maskAnimation, w = c.maskTransitionName, x = c.maskMotion, _ = c.zIndex, k = c.popup, O = c.stretch, I = c.alignPoint, H = c.mobile, D = c.forceRender, T = c.onPopupClick, $ = a.state, V = $.popupVisible, E = $.point, P = a.getPopupAlign(), A = {};
6349
+ var c = a.props, u = c.prefixCls, d = c.destroyPopupOnHide, h = c.popupClassName, f = c.onPopupAlign, p = c.popupMotion, g = c.popupAnimation, m = c.popupTransitionName, b = c.popupStyle, y = c.mask, w = c.maskAnimation, S = c.maskTransitionName, x = c.maskMotion, _ = c.zIndex, k = c.popup, O = c.stretch, I = c.alignPoint, H = c.mobile, D = c.forceRender, T = c.onPopupClick, $ = a.state, V = $.popupVisible, E = $.point, P = a.getPopupAlign(), A = {};
6350
6350
  return a.isMouseEnterToShow() && (A.onMouseEnter = a.onPopupMouseEnter), a.isMouseLeaveToHide() && (A.onMouseLeave = a.onPopupMouseLeave), A.onMouseDown = a.onPopupMouseDown, A.onTouchStart = a.onPopupMouseDown, /* @__PURE__ */ s(ty, {
6351
6351
  prefixCls: u,
6352
6352
  destroyPopupOnHide: d,
@@ -6364,8 +6364,8 @@ function lD(e) {
6364
6364
  mask: y,
6365
6365
  zIndex: _,
6366
6366
  transitionName: m,
6367
- maskAnimation: S,
6368
- maskTransitionName: w,
6367
+ maskAnimation: w,
6368
+ maskTransitionName: S,
6369
6369
  maskMotion: x,
6370
6370
  ref: a.popupRef,
6371
6371
  motion: p,
@@ -6562,14 +6562,14 @@ function lD(e) {
6562
6562
  m && (g.className = m);
6563
6563
  var b = En({}, g);
6564
6564
  ed(p) && (b.ref = Aa(this.triggerRef, p.ref));
6565
- var y = /* @__PURE__ */ C.cloneElement(p, b), S;
6566
- return (a || this.popupRef.current || u) && (S = /* @__PURE__ */ s(e, {
6565
+ var y = /* @__PURE__ */ C.cloneElement(p, b), w;
6566
+ return (a || this.popupRef.current || u) && (w = /* @__PURE__ */ s(e, {
6567
6567
  getContainer: this.getContainer,
6568
6568
  didUpdate: this.handlePortalUpdate,
6569
6569
  children: this.getComponent()
6570
- }, "portal")), !a && f && (S = null), /* @__PURE__ */ v(pp.Provider, {
6570
+ }, "portal")), !a && f && (w = null), /* @__PURE__ */ v(pp.Provider, {
6571
6571
  value: this.triggerContextValue,
6572
- children: [y, S]
6572
+ children: [y, w]
6573
6573
  });
6574
6574
  }
6575
6575
  }], [{
@@ -6644,7 +6644,7 @@ var uD = ["prefixCls", "disabled", "visible", "children", "popupElement", "conta
6644
6644
  }, fD = function(t, n) {
6645
6645
  var r = t.prefixCls;
6646
6646
  t.disabled;
6647
- var o = t.visible, i = t.children, a = t.popupElement, l = t.containerWidth, c = t.animation, u = t.transitionName, d = t.dropdownStyle, h = t.dropdownClassName, f = t.direction, p = f === void 0 ? "ltr" : f, g = t.placement, m = t.dropdownMatchSelectWidth, b = t.dropdownRender, y = t.dropdownAlign, S = t.getPopupContainer, w = t.empty, x = t.getTriggerDOMNode, _ = t.onPopupVisibleChange, k = t.onPopupMouseEnter, O = wi(t, uD), I = "".concat(r, "-dropdown"), H = a;
6647
+ var o = t.visible, i = t.children, a = t.popupElement, l = t.containerWidth, c = t.animation, u = t.transitionName, d = t.dropdownStyle, h = t.dropdownClassName, f = t.direction, p = f === void 0 ? "ltr" : f, g = t.placement, m = t.dropdownMatchSelectWidth, b = t.dropdownRender, y = t.dropdownAlign, w = t.getPopupContainer, S = t.empty, x = t.getTriggerDOMNode, _ = t.onPopupVisibleChange, k = t.onPopupMouseEnter, O = wi(t, uD), I = "".concat(r, "-dropdown"), H = a;
6648
6648
  b && (H = b(a));
6649
6649
  var D = C.useMemo(function() {
6650
6650
  return dD(m);
@@ -6674,8 +6674,8 @@ var uD = ["prefixCls", "disabled", "visible", "children", "popupElement", "conta
6674
6674
  }),
6675
6675
  popupAlign: y,
6676
6676
  popupVisible: o,
6677
- getPopupContainer: S,
6678
- popupClassName: Tt(h, Xt({}, "".concat(I, "-empty"), w)),
6677
+ getPopupContainer: w,
6678
+ popupClassName: Tt(h, Xt({}, "".concat(I, "-empty"), S)),
6679
6679
  popupStyle: V,
6680
6680
  getTriggerDOMNode: x,
6681
6681
  onPopupVisibleChange: _,
@@ -6756,7 +6756,7 @@ function Ns(e) {
6756
6756
  return e === "tags" || e === "multiple";
6757
6757
  }
6758
6758
  var hd = /* @__PURE__ */ C.forwardRef(function(e, t) {
6759
- var n, r, o = e.id, i = e.prefixCls, a = e.className, l = e.showSearch, c = e.tagRender, u = e.direction, d = e.omitDomProps, h = e.displayValues, f = e.onDisplayValuesChange, p = e.emptyOptions, g = e.notFoundContent, m = g === void 0 ? "Not Found" : g, b = e.onClear, y = e.mode, S = e.disabled, w = e.loading, x = e.getInputElement, _ = e.getRawInputElement, k = e.open, O = e.defaultOpen, I = e.onDropdownVisibleChange, H = e.activeValue, D = e.onActiveValueChange, T = e.activeDescendantId, $ = e.searchValue, V = e.autoClearSearchValue, E = e.onSearch, P = e.onSearchSplit, A = e.tokenSeparators, M = e.allowClear, B = e.showArrow, j = e.inputIcon, W = e.clearIcon, U = e.OptionList, oe = e.animation, ae = e.transitionName, Q = e.dropdownStyle, ee = e.dropdownClassName, me = e.dropdownMatchSelectWidth, ge = e.dropdownRender, he = e.dropdownAlign, de = e.placement, Oe = e.getPopupContainer, Te = e.showAction, Z = Te === void 0 ? [] : Te, se = e.onFocus, Re = e.onBlur, X = e.onKeyUp, Me = e.onKeyDown, we = e.onMouseDown, Ae = wi(e, mD), Ie = Ns(y), xe = (l !== void 0 ? l : Ie) || y === "combobox", et = Qt({}, Ae);
6759
+ var n, r, o = e.id, i = e.prefixCls, a = e.className, l = e.showSearch, c = e.tagRender, u = e.direction, d = e.omitDomProps, h = e.displayValues, f = e.onDisplayValuesChange, p = e.emptyOptions, g = e.notFoundContent, m = g === void 0 ? "Not Found" : g, b = e.onClear, y = e.mode, w = e.disabled, S = e.loading, x = e.getInputElement, _ = e.getRawInputElement, k = e.open, O = e.defaultOpen, I = e.onDropdownVisibleChange, H = e.activeValue, D = e.onActiveValueChange, T = e.activeDescendantId, $ = e.searchValue, V = e.autoClearSearchValue, E = e.onSearch, P = e.onSearchSplit, A = e.tokenSeparators, M = e.allowClear, B = e.showArrow, j = e.inputIcon, W = e.clearIcon, U = e.OptionList, oe = e.animation, ae = e.transitionName, Q = e.dropdownStyle, ee = e.dropdownClassName, me = e.dropdownMatchSelectWidth, ge = e.dropdownRender, he = e.dropdownAlign, de = e.placement, Oe = e.getPopupContainer, Te = e.showAction, Z = Te === void 0 ? [] : Te, se = e.onFocus, Re = e.onBlur, X = e.onKeyUp, Me = e.onKeyDown, we = e.onMouseDown, Ae = wi(e, mD), Ie = Ns(y), xe = (l !== void 0 ? l : Ie) || y === "combobox", et = Qt({}, Ae);
6760
6760
  vD.forEach(function(it) {
6761
6761
  delete et[it];
6762
6762
  }), d == null || d.forEach(function(it) {
@@ -6788,11 +6788,11 @@ var hd = /* @__PURE__ */ C.forwardRef(function(e, t) {
6788
6788
  defaultValue: O,
6789
6789
  value: k
6790
6790
  }), Rt = rn(qt, 2), Ft = Rt[0], hn = Rt[1], Ct = Ft, $n = !m && p;
6791
- (S || $n && Ct && y === "combobox") && (Ct = !1);
6791
+ (w || $n && Ct && y === "combobox") && (Ct = !1);
6792
6792
  var Jt = $n ? !1 : Ct, le = C.useCallback(function(it) {
6793
6793
  var Qe = it !== void 0 ? it : !Ct;
6794
- S || (hn(Qe), Ct !== Qe && (I == null || I(Qe)));
6795
- }, [S, Ct, hn, I]), ye = C.useMemo(function() {
6794
+ w || (hn(Qe), Ct !== Qe && (I == null || I(Qe)));
6795
+ }, [w, Ct, hn, I]), ye = C.useMemo(function() {
6796
6796
  return (A || []).some(function(it) {
6797
6797
  return [`
6798
6798
  `, `\r
@@ -6813,8 +6813,8 @@ var hd = /* @__PURE__ */ C.forwardRef(function(e, t) {
6813
6813
  C.useEffect(function() {
6814
6814
  !Ct && !Ie && y !== "combobox" && _e("", !1, !1);
6815
6815
  }, [Ct]), C.useEffect(function() {
6816
- Ft && S && hn(!1), S && ct(!1);
6817
- }, [S]);
6816
+ Ft && w && hn(!1), w && ct(!1);
6817
+ }, [w]);
6818
6818
  var st = rv(), _t = rn(st, 2), pn = _t[0], gn = _t[1], Pn = function(Qe) {
6819
6819
  var Cn = pn(), Nn = Qe.which;
6820
6820
  if (Nn === ce.ENTER && (y !== "combobox" && Qe.preventDefault(), Ct || le(!0)), gn(!!bt), Nn === ce.BACKSPACE && !Cn && Ie && !bt && h.length) {
@@ -6854,11 +6854,11 @@ var hd = /* @__PURE__ */ C.forwardRef(function(e, t) {
6854
6854
  values: [Qe]
6855
6855
  });
6856
6856
  }, ne = C.useRef(!1), te = function() {
6857
- ct(!0), S || (se && !ne.current && se.apply(void 0, arguments), Z.includes("focus") && le(!0)), ne.current = !0;
6857
+ ct(!0), w || (se && !ne.current && se.apply(void 0, arguments), Z.includes("focus") && le(!0)), ne.current = !0;
6858
6858
  }, be = function() {
6859
6859
  ct(!1, function() {
6860
6860
  ne.current = !1, le(!1);
6861
- }), !S && (bt && (y === "tags" ? E(bt, {
6861
+ }), !w && (bt && (y === "tags" ? E(bt, {
6862
6862
  source: "submit"
6863
6863
  }) : y === "multiple" && E("", {
6864
6864
  source: "blur"
@@ -6913,12 +6913,12 @@ var hd = /* @__PURE__ */ C.forwardRef(function(e, t) {
6913
6913
  multiple: Ie,
6914
6914
  toggleOpen: le
6915
6915
  });
6916
- }, [e, m, Jt, Ct, o, xe, Ie, le]), _r = B !== void 0 ? B : w || !Ie && y !== "combobox", Mn;
6916
+ }, [e, m, Jt, Ct, o, xe, Ie, le]), _r = B !== void 0 ? B : S || !Ie && y !== "combobox", Mn;
6917
6917
  _r && (Mn = /* @__PURE__ */ s(Os, {
6918
- className: Tt("".concat(i, "-arrow"), Xt({}, "".concat(i, "-arrow-loading"), w)),
6918
+ className: Tt("".concat(i, "-arrow"), Xt({}, "".concat(i, "-arrow-loading"), S)),
6919
6919
  customizeIcon: j,
6920
6920
  customizeIconProps: {
6921
- loading: w,
6921
+ loading: S,
6922
6922
  searchValue: bt,
6923
6923
  open: Ct,
6924
6924
  focused: je,
@@ -6932,7 +6932,7 @@ var hd = /* @__PURE__ */ C.forwardRef(function(e, t) {
6932
6932
  values: h
6933
6933
  }), _e("", !1, !1);
6934
6934
  };
6935
- !S && M && (h.length || bt) && !(y === "combobox" && bt === "") && (On = /* @__PURE__ */ s(Os, {
6935
+ !w && M && (h.length || bt) && !(y === "combobox" && bt === "") && (On = /* @__PURE__ */ s(Os, {
6936
6936
  className: "".concat(i, "-clear"),
6937
6937
  onMouseDown: hw,
6938
6938
  customizeIcon: W,
@@ -6940,9 +6940,9 @@ var hd = /* @__PURE__ */ C.forwardRef(function(e, t) {
6940
6940
  }));
6941
6941
  var pw = /* @__PURE__ */ s(U, {
6942
6942
  ref: tt
6943
- }), gw = Tt(i, a, (r = {}, Xt(r, "".concat(i, "-focused"), je), Xt(r, "".concat(i, "-multiple"), Ie), Xt(r, "".concat(i, "-single"), !Ie), Xt(r, "".concat(i, "-allow-clear"), M), Xt(r, "".concat(i, "-show-arrow"), _r), Xt(r, "".concat(i, "-disabled"), S), Xt(r, "".concat(i, "-loading"), w), Xt(r, "".concat(i, "-open"), Ct), Xt(r, "".concat(i, "-customize-input"), Gt), Xt(r, "".concat(i, "-show-search"), xe), r)), $f = /* @__PURE__ */ s(ny, {
6943
+ }), gw = Tt(i, a, (r = {}, Xt(r, "".concat(i, "-focused"), je), Xt(r, "".concat(i, "-multiple"), Ie), Xt(r, "".concat(i, "-single"), !Ie), Xt(r, "".concat(i, "-allow-clear"), M), Xt(r, "".concat(i, "-show-arrow"), _r), Xt(r, "".concat(i, "-disabled"), w), Xt(r, "".concat(i, "-loading"), S), Xt(r, "".concat(i, "-open"), Ct), Xt(r, "".concat(i, "-customize-input"), Gt), Xt(r, "".concat(i, "-show-search"), xe), r)), $f = /* @__PURE__ */ s(ny, {
6944
6944
  ref: wt,
6945
- disabled: S,
6945
+ disabled: w,
6946
6946
  prefixCls: i,
6947
6947
  visible: Jt,
6948
6948
  popupElement: pw,
@@ -7423,9 +7423,9 @@ var zD = /* @__PURE__ */ function(e) {
7423
7423
  }, r.onMouseMove = function(l) {
7424
7424
  var c = r.state, u = c.dragging, d = c.pageY, h = c.startTop, f = r.props.onScroll;
7425
7425
  if (an.cancel(r.moveRaf), u) {
7426
- var p = wp(l) - d, g = h + p, m = r.getEnableScrollRange(), b = r.getEnableHeightRange(), y = b ? g / b : 0, S = Math.ceil(y * m);
7426
+ var p = wp(l) - d, g = h + p, m = r.getEnableScrollRange(), b = r.getEnableHeightRange(), y = b ? g / b : 0, w = Math.ceil(y * m);
7427
7427
  r.moveRaf = an(function() {
7428
- f(S);
7428
+ f(w);
7429
7429
  });
7430
7430
  }
7431
7431
  }, r.onMouseUp = function() {
@@ -7582,13 +7582,13 @@ function KD(e, t, n, r, o, i, a, l) {
7582
7582
  });
7583
7583
  var f = u.offset, p = f === void 0 ? 0 : f, g = function m(b, y) {
7584
7584
  if (!(b < 0 || !e.current)) {
7585
- var S = e.current.clientHeight, w = !1, x = y;
7586
- if (S) {
7585
+ var w = e.current.clientHeight, S = !1, x = y;
7586
+ if (w) {
7587
7587
  for (var _ = y || h, k = 0, O = 0, I = 0, H = Math.min(t.length, d), D = 0; D <= H; D += 1) {
7588
7588
  var T = o(t[D]);
7589
7589
  O = k;
7590
7590
  var $ = n.get(T);
7591
- I = O + ($ === void 0 ? r : $), k = I, D === d && $ === void 0 && (w = !0);
7591
+ I = O + ($ === void 0 ? r : $), k = I, D === d && $ === void 0 && (S = !0);
7592
7592
  }
7593
7593
  var V = null;
7594
7594
  switch (_) {
@@ -7596,17 +7596,17 @@ function KD(e, t, n, r, o, i, a, l) {
7596
7596
  V = O - p;
7597
7597
  break;
7598
7598
  case "bottom":
7599
- V = I - S + p;
7599
+ V = I - w + p;
7600
7600
  break;
7601
7601
  default: {
7602
- var E = e.current.scrollTop, P = E + S;
7602
+ var E = e.current.scrollTop, P = E + w;
7603
7603
  O < E ? x = "top" : I > P && (x = "bottom");
7604
7604
  }
7605
7605
  }
7606
7606
  V !== null && V !== e.current.scrollTop && a(V);
7607
7607
  }
7608
7608
  c.current = an(function() {
7609
- w && i(), m(b - 1, x);
7609
+ S && i(), m(b - 1, x);
7610
7610
  });
7611
7611
  }
7612
7612
  };
@@ -7706,7 +7706,7 @@ var QD = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style
7706
7706
  overflowAnchor: "none"
7707
7707
  };
7708
7708
  function eA(e, t) {
7709
- 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, h = e.children, f = e.itemKey, p = e.virtual, g = e.component, m = g === void 0 ? "div" : g, b = e.onScroll, y = e.onVisibleChange, S = AD(e, QD), w = !!(p !== !1 && i && a), x = w && d && a * d.length > i, _ = Ve(0), k = eo(_, 2), O = k[0], I = k[1], H = Ve(!1), D = eo(H, 2), T = D[0], $ = D[1], V = Tt(r, o), E = d || ZD, P = Ee(), A = Ee(), M = Ee(), B = C.useCallback(function(De) {
7709
+ 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, h = e.children, f = e.itemKey, p = e.virtual, g = e.component, m = g === void 0 ? "div" : g, b = e.onScroll, y = e.onVisibleChange, w = AD(e, QD), S = !!(p !== !1 && i && a), x = S && d && a * d.length > i, _ = Ve(0), k = eo(_, 2), O = k[0], I = k[1], H = Ve(!1), D = eo(H, 2), T = D[0], $ = D[1], V = Tt(r, o), E = d || ZD, P = Ee(), A = Ee(), M = Ee(), B = C.useCallback(function(De) {
7710
7710
  return typeof f == "function" ? f(De) : De == null ? void 0 : De[f];
7711
7711
  }, [f]), j = {
7712
7712
  getKey: B
@@ -7725,7 +7725,7 @@ function eA(e, t) {
7725
7725
  }), oe = Ee(), ae = GD(E, B), Q = eo(ae, 1), ee = Q[0];
7726
7726
  oe.current = ee;
7727
7727
  var me = jD(B, null, null), ge = eo(me, 4), he = ge[0], de = ge[1], Oe = ge[2], Te = ge[3], Z = C.useMemo(function() {
7728
- if (!w)
7728
+ if (!S)
7729
7729
  return {
7730
7730
  scrollHeight: void 0,
7731
7731
  start: 0,
@@ -7751,7 +7751,7 @@ function eA(e, t) {
7751
7751
  end: bt,
7752
7752
  offset: Bt
7753
7753
  };
7754
- }, [x, w, O, E, Te, i]), se = Z.scrollHeight, Re = Z.start, X = Z.end, Me = Z.offset;
7754
+ }, [x, S, O, E, Te, i]), se = Z.scrollHeight, Re = Z.start, X = Z.end, Me = Z.offset;
7755
7755
  U.current.start = Re, U.current.end = X;
7756
7756
  var we = se - i, Ae = Ee(we);
7757
7757
  Ae.current = we;
@@ -7768,13 +7768,13 @@ function eA(e, t) {
7768
7768
  var je = De.currentTarget.scrollTop;
7769
7769
  je !== O && W(je), b == null || b(De);
7770
7770
  }
7771
- var Xe = UD(w, xe, et, function(De) {
7771
+ var Xe = UD(S, xe, et, function(De) {
7772
7772
  W(function(je) {
7773
7773
  var ct = je + De;
7774
7774
  return ct;
7775
7775
  });
7776
7776
  }), We = eo(Xe, 2), qe = We[0], wt = We[1];
7777
- XD(w, P, function(De, je) {
7777
+ XD(S, P, function(De, je) {
7778
7778
  return Be(De, je) ? !1 : (qe({
7779
7779
  preventDefault: function() {
7780
7780
  },
@@ -7782,12 +7782,12 @@ function eA(e, t) {
7782
7782
  }), !0);
7783
7783
  }), zr(function() {
7784
7784
  function De(je) {
7785
- w && je.preventDefault();
7785
+ S && je.preventDefault();
7786
7786
  }
7787
7787
  return P.current.addEventListener("wheel", qe), P.current.addEventListener("DOMMouseScroll", wt), P.current.addEventListener("MozMousePixelScroll", De), function() {
7788
7788
  P.current && (P.current.removeEventListener("wheel", qe), P.current.removeEventListener("DOMMouseScroll", wt), P.current.removeEventListener("MozMousePixelScroll", De));
7789
7789
  };
7790
- }, [w]);
7790
+ }, [S]);
7791
7791
  var pt = KD(P, E, Oe, a, B, de, W, function() {
7792
7792
  var De;
7793
7793
  (De = M.current) === null || De === void 0 || De.delayHidden();
@@ -7803,12 +7803,12 @@ function eA(e, t) {
7803
7803
  }
7804
7804
  }, [Re, X, E]);
7805
7805
  var tt = HD(E, Re, X, he, h, j), yt = null;
7806
- return i && (yt = Zi(ua({}, c ? "height" : "maxHeight", i), JD), w && (yt.overflowY = "hidden", T && (yt.pointerEvents = "none"))), /* @__PURE__ */ v("div", {
7806
+ return i && (yt = Zi(ua({}, c ? "height" : "maxHeight", i), JD), S && (yt.overflowY = "hidden", T && (yt.pointerEvents = "none"))), /* @__PURE__ */ v("div", {
7807
7807
  style: Zi(Zi({}, u), {}, {
7808
7808
  position: "relative"
7809
7809
  }),
7810
7810
  className: V,
7811
- ...S,
7811
+ ...w,
7812
7812
  children: [/* @__PURE__ */ s(m, {
7813
7813
  className: "".concat(r, "-holder"),
7814
7814
  style: yt,
@@ -7822,7 +7822,7 @@ function eA(e, t) {
7822
7822
  ref: A,
7823
7823
  children: tt
7824
7824
  })
7825
- }), w && /* @__PURE__ */ s(zD, {
7825
+ }), S && /* @__PURE__ */ s(zD, {
7826
7826
  ref: M,
7827
7827
  prefixCls: r,
7828
7828
  scrollTop: O,
@@ -7849,7 +7849,7 @@ function Sp(e) {
7849
7849
  return typeof e == "string" || typeof e == "number";
7850
7850
  }
7851
7851
  var rA = function(t, n) {
7852
- var r = nv(), o = r.prefixCls, i = r.id, a = r.open, l = r.multiple, c = r.mode, u = r.searchValue, d = r.toggleOpen, h = r.notFoundContent, f = r.onPopupScroll, p = C.useContext(hy), g = p.flattenOptions, m = p.onActiveValue, b = p.defaultActiveFirstOption, y = p.onSelect, S = p.menuItemSelectedIcon, w = p.rawValues, x = p.fieldNames, _ = p.virtual, k = p.listHeight, O = p.listItemHeight, I = "".concat(o, "-item"), H = Ju(function() {
7852
+ var r = nv(), o = r.prefixCls, i = r.id, a = r.open, l = r.multiple, c = r.mode, u = r.searchValue, d = r.toggleOpen, h = r.notFoundContent, f = r.onPopupScroll, p = C.useContext(hy), g = p.flattenOptions, m = p.onActiveValue, b = p.defaultActiveFirstOption, y = p.onSelect, w = p.menuItemSelectedIcon, S = p.rawValues, x = p.fieldNames, _ = p.virtual, k = p.listHeight, O = p.listItemHeight, I = "".concat(o, "-item"), H = Ju(function() {
7853
7853
  return g;
7854
7854
  }, [a, g], function(Q, ee) {
7855
7855
  return ee[0] && Q[1] !== ee[1];
@@ -7884,12 +7884,12 @@ var rA = function(t, n) {
7884
7884
  B(b !== !1 ? V(0) : -1);
7885
7885
  }, [H.length, u]);
7886
7886
  var j = C.useCallback(function(Q) {
7887
- return w.has(Q) && c !== "combobox";
7888
- }, [c, qn(w).toString(), w.size]);
7887
+ return S.has(Q) && c !== "combobox";
7888
+ }, [c, qn(S).toString(), S.size]);
7889
7889
  ue(function() {
7890
7890
  var Q = setTimeout(function() {
7891
- if (!l && a && w.size === 1) {
7892
- var me = Array.from(w)[0], ge = H.findIndex(function(he) {
7891
+ if (!l && a && S.size === 1) {
7892
+ var me = Array.from(S)[0], ge = H.findIndex(function(he) {
7893
7893
  var de = he.data;
7894
7894
  return de.value === me;
7895
7895
  });
@@ -7906,7 +7906,7 @@ var rA = function(t, n) {
7906
7906
  }, [a, u]);
7907
7907
  var W = function(ee) {
7908
7908
  ee !== void 0 && y(ee, {
7909
- selected: !w.has(ee)
7909
+ selected: !S.has(ee)
7910
7910
  }), l || d(!1);
7911
7911
  };
7912
7912
  if (C.useImperativeHandle(n, function() {
@@ -7998,7 +7998,7 @@ var rA = function(t, n) {
7998
7998
  }
7999
7999
  var X = de.disabled, Me = de.title;
8000
8000
  de.children;
8001
- var we = de.style, Ae = de.className, Ie = wi(de, nA), xe = sy(Ie, U), et = j(Te), Be = "".concat(I, "-option"), at = Tt(I, Be, Ae, (me = {}, Xt(me, "".concat(Be, "-grouped"), he), Xt(me, "".concat(Be, "-active"), A === ee && !X), Xt(me, "".concat(Be, "-disabled"), X), Xt(me, "".concat(Be, "-selected"), et), me)), $e = oe(Q), Xe = !S || typeof S == "function" || et, We = typeof $e == "number" ? $e : $e || Te, qe = Sp(We) ? We.toString() : void 0;
8001
+ var we = de.style, Ae = de.className, Ie = wi(de, nA), xe = sy(Ie, U), et = j(Te), Be = "".concat(I, "-option"), at = Tt(I, Be, Ae, (me = {}, Xt(me, "".concat(Be, "-grouped"), he), Xt(me, "".concat(Be, "-active"), A === ee && !X), Xt(me, "".concat(Be, "-disabled"), X), Xt(me, "".concat(Be, "-selected"), et), me)), $e = oe(Q), Xe = !w || typeof w == "function" || et, We = typeof $e == "number" ? $e : $e || Te, qe = Sp(We) ? We.toString() : void 0;
8002
8002
  return Me !== void 0 && (qe = Me), /* @__PURE__ */ v("div", {
8003
8003
  ...li(xe),
8004
8004
  "aria-selected": et,
@@ -8014,9 +8014,9 @@ var rA = function(t, n) {
8014
8014
  children: [/* @__PURE__ */ s("div", {
8015
8015
  className: "".concat(Be, "-content"),
8016
8016
  children: We
8017
- }), /* @__PURE__ */ C.isValidElement(S) || et, Xe && /* @__PURE__ */ s(Os, {
8017
+ }), /* @__PURE__ */ C.isValidElement(w) || et, Xe && /* @__PURE__ */ s(Os, {
8018
8018
  className: "".concat(I, "-option-state"),
8019
- customizeIcon: S,
8019
+ customizeIcon: w,
8020
8020
  customizeIconProps: {
8021
8021
  isSelected: et
8022
8022
  },
@@ -8029,16 +8029,16 @@ var rA = function(t, n) {
8029
8029
  }, py = /* @__PURE__ */ C.forwardRef(rA);
8030
8030
  py.displayName = "OptionList";
8031
8031
  function oA(e) {
8032
- var t = e.mode, n = e.options, r = e.children, o = e.backfill, i = e.allowClear, a = e.placeholder, l = e.getInputElement, c = e.showSearch, u = e.onSearch, d = e.defaultOpen, h = e.autoFocus, f = e.labelInValue, p = e.value, g = e.inputValue, m = e.optionLabelProp, b = Ns(t), y = c !== void 0 ? c : b || t === "combobox", S = n || pd(r);
8033
- if (vt(t !== "tags" || S.every(function(k) {
8032
+ var t = e.mode, n = e.options, r = e.children, o = e.backfill, i = e.allowClear, a = e.placeholder, l = e.getInputElement, c = e.showSearch, u = e.onSearch, d = e.defaultOpen, h = e.autoFocus, f = e.labelInValue, p = e.value, g = e.inputValue, m = e.optionLabelProp, b = Ns(t), y = c !== void 0 ? c : b || t === "combobox", w = n || pd(r);
8033
+ if (vt(t !== "tags" || w.every(function(k) {
8034
8034
  return !k.disabled;
8035
8035
  }), "Please avoid setting option to disabled in tags mode since user can always type text as tag."), t === "tags" || t === "combobox") {
8036
- var w = S.some(function(k) {
8036
+ var S = w.some(function(k) {
8037
8037
  return k.options ? k.options.some(function(O) {
8038
8038
  return typeof ("value" in O ? O.value : O.key) == "number";
8039
8039
  }) : typeof ("value" in k ? k.value : k.key) == "number";
8040
8040
  });
8041
- vt(!w, "`value` of Option should not use number type when `mode` is `tags` or `combobox`.");
8041
+ vt(!S, "`value` of Option should not use number type when `mode` is `tags` or `combobox`.");
8042
8042
  }
8043
8043
  if (vt(t !== "combobox" || !m, "`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."), vt(t === "combobox" || !o, "`backfill` only works with `combobox` mode."), vt(t === "combobox" || !l, "`getInputElement` only work with `combobox` mode."), Zf(t !== "combobox" || !l || !i || !a, "Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."), u && !y && t !== "combobox" && t !== "tags" && vt(!1, "`onSearch` should work with `showSearch` instead of use alone."), Zf(!d || h, "`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."), p != null) {
8044
8044
  var x = rd(p);
@@ -8083,7 +8083,7 @@ function lA(e) {
8083
8083
  return !e || Vr(e) !== "object";
8084
8084
  }
8085
8085
  var gy = /* @__PURE__ */ C.forwardRef(function(e, t) {
8086
- 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, h = e.autoClearSearchValue, f = h === void 0 ? !0 : h, p = e.onSelect, g = e.onDeselect, m = e.dropdownMatchSelectWidth, b = m === void 0 ? !0 : m, y = e.filterOption, S = e.filterSort, w = e.optionFilterProp, x = e.optionLabelProp, _ = e.options, k = e.children, O = e.defaultActiveFirstOption, I = e.menuItemSelectedIcon, H = e.virtual, D = e.listHeight, T = D === void 0 ? 200 : D, $ = e.listItemHeight, V = $ === void 0 ? 20 : $, E = e.value, P = e.defaultValue, A = e.labelInValue, M = e.onChange, B = wi(e, aA), j = oy(n), W = Ns(r), U = !!(!_ && k), oe = C.useMemo(function() {
8086
+ 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, h = e.autoClearSearchValue, f = h === void 0 ? !0 : h, p = e.onSelect, g = e.onDeselect, m = e.dropdownMatchSelectWidth, b = m === void 0 ? !0 : m, y = e.filterOption, w = e.filterSort, S = e.optionFilterProp, x = e.optionLabelProp, _ = e.options, k = e.children, O = e.defaultActiveFirstOption, I = e.menuItemSelectedIcon, H = e.virtual, D = e.listHeight, T = D === void 0 ? 200 : D, $ = e.listItemHeight, V = $ === void 0 ? 20 : $, E = e.value, P = e.defaultValue, A = e.labelInValue, M = e.onChange, B = wi(e, aA), j = oy(n), W = Ns(r), U = !!(!_ && k), oe = C.useMemo(function() {
8087
8087
  return y === void 0 && r === "combobox" ? !1 : y;
8088
8088
  }, [y, r]), ae = C.useMemo(
8089
8089
  function() {
@@ -8098,7 +8098,7 @@ var gy = /* @__PURE__ */ C.forwardRef(function(e, t) {
8098
8098
  postState: function(ye) {
8099
8099
  return ye || "";
8100
8100
  }
8101
- }), ee = rn(Q, 2), me = ee[0], ge = ee[1], he = ED(_, k, ae, w, x), de = he.valueOptions, Oe = he.labelOptions, Te = he.options, Z = C.useCallback(function(le) {
8101
+ }), ee = rn(Q, 2), me = ee[0], ge = ee[1], he = ED(_, k, ae, S, x), de = he.valueOptions, Oe = he.labelOptions, Te = he.options, Z = C.useCallback(function(le) {
8102
8102
  var ye = rd(le);
8103
8103
  return ye.map(function(_e) {
8104
8104
  var Fe, st, _t, pn, gn;
@@ -8167,15 +8167,15 @@ var gy = /* @__PURE__ */ C.forwardRef(function(e, t) {
8167
8167
  var Fe = _e.value;
8168
8168
  ye(Fe) || le.push($e(Fe, _e.label));
8169
8169
  }), le;
8170
- }, [$e, Te, de, xe, r]), We = bD(Xe, ae, me, oe, w), qe = C.useMemo(function() {
8170
+ }, [$e, Te, de, xe, r]), We = bD(Xe, ae, me, oe, S), qe = C.useMemo(function() {
8171
8171
  return r !== "tags" || !me || We.some(function(le) {
8172
- return le[w || "value"] === me;
8172
+ return le[S || "value"] === me;
8173
8173
  }) ? We : [$e(me)].concat(qn(We));
8174
- }, [$e, w, r, We, me]), wt = C.useMemo(function() {
8175
- return S ? qn(qe).sort(function(le, ye) {
8176
- return S(le, ye);
8174
+ }, [$e, S, r, We, me]), wt = C.useMemo(function() {
8175
+ return w ? qn(qe).sort(function(le, ye) {
8176
+ return w(le, ye);
8177
8177
  }) : qe;
8178
- }, [qe, S]), pt = C.useMemo(function() {
8178
+ }, [qe, w]), pt = C.useMemo(function() {
8179
8179
  return pD(wt, {
8180
8180
  fieldNames: ae,
8181
8181
  childrenAsData: U
@@ -8326,8 +8326,8 @@ function uA(e, t, n, r) {
8326
8326
  (f.children || []).filter(function(b) {
8327
8327
  return !r(b.node);
8328
8328
  }).forEach(function(b) {
8329
- var y = b.key, S = o.has(y);
8330
- g && !S && (g = !1), !m && (S || i.has(y)) && (m = !0);
8329
+ var y = b.key, w = o.has(y);
8330
+ g && !w && (g = !1), !m && (w || i.has(y)) && (m = !0);
8331
8331
  }), g && o.add(f.key), m && i.add(f.key), c.add(f.key);
8332
8332
  }
8333
8333
  });
@@ -8363,8 +8363,8 @@ function dA(e, t, n, r, o) {
8363
8363
  (p.children || []).filter(function(y) {
8364
8364
  return !o(y.node);
8365
8365
  }).forEach(function(y) {
8366
- var S = y.key, w = i.has(S);
8367
- m && !w && (m = !1), !b && (w || a.has(S)) && (b = !0);
8366
+ var w = y.key, S = i.has(w);
8367
+ m && !S && (m = !1), !b && (S || a.has(w)) && (b = !0);
8368
8368
  }), m || i.delete(p.key), b && a.add(p.key), u.add(p.key);
8369
8369
  }
8370
8370
  });
@@ -8642,13 +8642,13 @@ function oc(e, t, n) {
8642
8642
  var h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
8643
8643
  return d.map(function(f, p) {
8644
8644
  for (var g = Ey(h ? h.pos : "0", p), m = Na(f[i], g), b, y = 0; y < o.length; y += 1) {
8645
- var S = o[y];
8646
- if (f[S] !== void 0) {
8647
- b = f[S];
8645
+ var w = o[y];
8646
+ if (f[w] !== void 0) {
8647
+ b = f[w];
8648
8648
  break;
8649
8649
  }
8650
8650
  }
8651
- var w = bn(bn({}, sy(f, [].concat(To(o), [i, a]))), {}, {
8651
+ var S = bn(bn({}, sy(f, [].concat(To(o), [i, a]))), {}, {
8652
8652
  title: b,
8653
8653
  key: m,
8654
8654
  parent: h,
@@ -8658,7 +8658,7 @@ function oc(e, t, n) {
8658
8658
  isStart: [].concat(To(h ? h.isStart : []), [p === 0]),
8659
8659
  isEnd: [].concat(To(h ? h.isEnd : []), [p === d.length - 1])
8660
8660
  });
8661
- return c.push(w), t === !0 || l.has(m) ? w.children = u(f[a] || [], w) : w.children = [], w;
8661
+ return c.push(S), t === !0 || l.has(m) ? S.children = u(f[a] || [], S) : S.children = [], S;
8662
8662
  });
8663
8663
  }
8664
8664
  return u(e), c;
@@ -8677,12 +8677,12 @@ function CA(e, t, n) {
8677
8677
  return Na(m[u], b);
8678
8678
  };
8679
8679
  function p(g, m, b, y) {
8680
- var S = g ? g[h] : e, w = g ? Ey(b.pos, m) : "0", x = g ? [].concat(To(y), [g]) : [];
8680
+ var w = g ? g[h] : e, S = g ? Ey(b.pos, m) : "0", x = g ? [].concat(To(y), [g]) : [];
8681
8681
  if (g) {
8682
- var _ = f(g, w), k = {
8682
+ var _ = f(g, S), k = {
8683
8683
  node: g,
8684
8684
  index: m,
8685
- pos: w,
8685
+ pos: S,
8686
8686
  key: _,
8687
8687
  parentPos: b.node ? b.pos : null,
8688
8688
  level: b.level + 1,
@@ -8690,10 +8690,10 @@ function CA(e, t, n) {
8690
8690
  };
8691
8691
  t(k);
8692
8692
  }
8693
- S && S.forEach(function(O, I) {
8693
+ w && w.forEach(function(O, I) {
8694
8694
  p(O, I, {
8695
8695
  node: g,
8696
- pos: w,
8696
+ pos: S,
8697
8697
  level: b ? b.level + 1 : -1
8698
8698
  }, x);
8699
8699
  });
@@ -8706,15 +8706,15 @@ function Cy(e) {
8706
8706
  keyEntities: h
8707
8707
  };
8708
8708
  return n && (f = n(f) || f), CA(e, function(p) {
8709
- var g = p.node, m = p.index, b = p.pos, y = p.key, S = p.parentPos, w = p.level, x = p.nodes, _ = {
8709
+ var g = p.node, m = p.index, b = p.pos, y = p.key, w = p.parentPos, S = p.level, x = p.nodes, _ = {
8710
8710
  node: g,
8711
8711
  nodes: x,
8712
8712
  index: m,
8713
8713
  key: y,
8714
8714
  pos: b,
8715
- level: w
8715
+ level: S
8716
8716
  }, k = Na(y, b);
8717
- d[b] = _, h[k] = _, _.parent = d[S], _.parent && (_.parent.children = _.parent.children || [], _.parent.children.push(_)), r && r(_, f);
8717
+ d[b] = _, h[k] = _, _.parent = d[w], _.parent && (_.parent.children = _.parent.children || [], _.parent.children.push(_)), r && r(_, f);
8718
8718
  }, {
8719
8719
  externalGetKey: u,
8720
8720
  childrenPropName: a,
@@ -8893,7 +8893,7 @@ var EA = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
8893
8893
  className: Tt("".concat(c, "-iconEle"), "".concat(c, "-icon__").concat(r.getNodeState() || "docu"), l && "".concat(c, "-icon_loading"))
8894
8894
  });
8895
8895
  }, r.renderSelector = function() {
8896
- var l = r.state.dragNodeHighlight, c = r.props, u = c.title, d = c.selected, h = c.icon, f = c.loading, p = c.data, g = r.props.context, m = g.prefixCls, b = g.showIcon, y = g.icon, S = g.loadData, w = g.titleRender, x = r.isDisabled(), _ = "".concat(m, "-node-content-wrapper"), k;
8896
+ var l = r.state.dragNodeHighlight, c = r.props, u = c.title, d = c.selected, h = c.icon, f = c.loading, p = c.data, g = r.props.context, m = g.prefixCls, b = g.showIcon, y = g.icon, w = g.loadData, S = g.titleRender, x = r.isDisabled(), _ = "".concat(m, "-node-content-wrapper"), k;
8897
8897
  if (b) {
8898
8898
  var O = h || y;
8899
8899
  k = O ? /* @__PURE__ */ s("span", {
@@ -8901,9 +8901,9 @@ var EA = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
8901
8901
  children: typeof O == "function" ? O(r.props) : O
8902
8902
  }) : r.renderIcon();
8903
8903
  } else
8904
- S && f && (k = r.renderIcon());
8904
+ w && f && (k = r.renderIcon());
8905
8905
  var I;
8906
- typeof u == "function" ? I = u(p) : w ? I = w(p) : I = u;
8906
+ typeof u == "function" ? I = u(p) : S ? I = S(p) : I = u;
8907
8907
  var H = /* @__PURE__ */ s("span", {
8908
8908
  className: "".concat(m, "-title"),
8909
8909
  children: I
@@ -8920,13 +8920,13 @@ var EA = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
8920
8920
  children: [k, H, r.renderDropIndicator()]
8921
8921
  });
8922
8922
  }, r.renderDropIndicator = function() {
8923
- var l = r.props, c = l.disabled, u = l.eventKey, d = r.props.context, h = d.draggable, f = d.dropLevelOffset, p = d.dropPosition, g = d.prefixCls, m = d.indent, b = d.dropIndicatorRender, y = d.dragOverNodeKey, S = d.direction, w = !!h, x = !c && w && y === u;
8923
+ var l = r.props, c = l.disabled, u = l.eventKey, d = r.props.context, h = d.draggable, f = d.dropLevelOffset, p = d.dropPosition, g = d.prefixCls, m = d.indent, b = d.dropIndicatorRender, y = d.dragOverNodeKey, w = d.direction, S = !!h, x = !c && S && y === u;
8924
8924
  return x ? b({
8925
8925
  dropPosition: p,
8926
8926
  dropLevelOffset: f,
8927
8927
  indent: m,
8928
8928
  prefixCls: g,
8929
- direction: S
8929
+ direction: w
8930
8930
  }) : null;
8931
8931
  }, r;
8932
8932
  }
@@ -8949,7 +8949,7 @@ var EA = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
8949
8949
  }, {
8950
8950
  key: "render",
8951
8951
  value: function() {
8952
- var o, i = this.props, a = i.eventKey, l = i.className, c = i.style, u = i.dragOver, d = i.dragOverGapTop, h = i.dragOverGapBottom, f = i.isLeaf, p = i.isStart, g = i.isEnd, m = i.expanded, b = i.selected, y = i.checked, S = i.halfChecked, w = i.loading, x = i.domRef, _ = i.active;
8952
+ var o, i = this.props, a = i.eventKey, l = i.className, c = i.style, u = i.dragOver, d = i.dragOverGapTop, h = i.dragOverGapBottom, f = i.isLeaf, p = i.isStart, g = i.isEnd, m = i.expanded, b = i.selected, y = i.checked, w = i.halfChecked, S = i.loading, x = i.domRef, _ = i.active;
8953
8953
  i.data;
8954
8954
  var k = i.onMouseMove, O = i.selectable, I = _l(i, EA), H = this.props.context, D = H.prefixCls, T = H.filterTreeNode, $ = H.keyEntities, V = H.dropContainerKey, E = H.dropTargetKey, P = H.draggingNodeKey, A = this.isDisabled(), M = li(I, {
8955
8955
  aria: !0,
@@ -8959,7 +8959,7 @@ var EA = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
8959
8959
  } : void 0;
8960
8960
  return /* @__PURE__ */ v("div", {
8961
8961
  ref: x,
8962
- className: Tt(l, "".concat(D, "-treenode"), (o = {}, jt(o, "".concat(D, "-treenode-disabled"), A), jt(o, "".concat(D, "-treenode-switcher-").concat(m ? "open" : "close"), !f), jt(o, "".concat(D, "-treenode-checkbox-checked"), y), jt(o, "".concat(D, "-treenode-checkbox-indeterminate"), S), jt(o, "".concat(D, "-treenode-selected"), b), jt(o, "".concat(D, "-treenode-loading"), w), jt(o, "".concat(D, "-treenode-active"), _), jt(o, "".concat(D, "-treenode-leaf-last"), W), jt(o, "".concat(D, "-treenode-draggable"), U), jt(o, "dragging", ae), jt(o, "drop-target", E === a), jt(o, "drop-container", V === a), jt(o, "drag-over", !A && u), jt(o, "drag-over-gap-top", !A && d), jt(o, "drag-over-gap-bottom", !A && h), jt(o, "filter-node", T && T(tn(this.props))), o)),
8962
+ className: Tt(l, "".concat(D, "-treenode"), (o = {}, jt(o, "".concat(D, "-treenode-disabled"), A), jt(o, "".concat(D, "-treenode-switcher-").concat(m ? "open" : "close"), !f), jt(o, "".concat(D, "-treenode-checkbox-checked"), y), jt(o, "".concat(D, "-treenode-checkbox-indeterminate"), w), jt(o, "".concat(D, "-treenode-selected"), b), jt(o, "".concat(D, "-treenode-loading"), S), jt(o, "".concat(D, "-treenode-active"), _), jt(o, "".concat(D, "-treenode-leaf-last"), W), jt(o, "".concat(D, "-treenode-draggable"), U), jt(o, "dragging", ae), jt(o, "drop-target", E === a), jt(o, "drop-container", V === a), jt(o, "drag-over", !A && u), jt(o, "drag-over-gap-top", !A && d), jt(o, "drag-over-gap-bottom", !A && h), jt(o, "filter-node", T && T(tn(this.props))), o)),
8963
8963
  style: c,
8964
8964
  draggable: oe,
8965
8965
  "aria-grabbed": ae,
@@ -9038,23 +9038,23 @@ function DA(e) {
9038
9038
  return Number(t[t.length - 1]) === 0;
9039
9039
  }
9040
9040
  function Tp(e, t, n, r, o, i, a, l, c, u) {
9041
- var d, h = e.clientX, f = e.clientY, p = e.target.getBoundingClientRect(), g = p.top, m = p.height, b = (u === "rtl" ? -1 : 1) * (((o == null ? void 0 : o.x) || 0) - h), y = (b - 12) / r, S = l[n.props.eventKey];
9041
+ var d, h = e.clientX, f = e.clientY, p = e.target.getBoundingClientRect(), g = p.top, m = p.height, b = (u === "rtl" ? -1 : 1) * (((o == null ? void 0 : o.x) || 0) - h), y = (b - 12) / r, w = l[n.props.eventKey];
9042
9042
  if (f < g + m / 2) {
9043
- var w = a.findIndex(function(P) {
9044
- return P.key === S.key;
9045
- }), x = w <= 0 ? 0 : w - 1, _ = a[x].key;
9046
- S = l[_];
9043
+ var S = a.findIndex(function(P) {
9044
+ return P.key === w.key;
9045
+ }), x = S <= 0 ? 0 : S - 1, _ = a[x].key;
9046
+ w = l[_];
9047
9047
  }
9048
- var k = S.key, O = S, I = S.key, H = 0, D = 0;
9048
+ var k = w.key, O = w, I = w.key, H = 0, D = 0;
9049
9049
  if (!c.includes(k))
9050
- for (var T = 0; T < y && RA(S); T += 1)
9051
- S = S.parent, D += 1;
9052
- var $ = t.props.data, V = S.node, E = !0;
9053
- return DA(S) && S.level === 0 && f < g + m / 2 && i({
9050
+ for (var T = 0; T < y && RA(w); T += 1)
9051
+ w = w.parent, D += 1;
9052
+ var $ = t.props.data, V = w.node, E = !0;
9053
+ return DA(w) && w.level === 0 && f < g + m / 2 && i({
9054
9054
  dragNode: $,
9055
9055
  dropNode: V,
9056
9056
  dropPosition: -1
9057
- }) && S.key === n.props.eventKey ? H = -1 : (O.children || []).length && c.includes(I) ? i({
9057
+ }) && w.key === n.props.eventKey ? H = -1 : (O.children || []).length && c.includes(I) ? i({
9058
9058
  dragNode: $,
9059
9059
  dropNode: V,
9060
9060
  dropPosition: 0
@@ -9077,10 +9077,10 @@ function Tp(e, t, n, r, o, i, a, l, c, u) {
9077
9077
  }) ? H = 1 : E = !1, {
9078
9078
  dropPosition: H,
9079
9079
  dropLevelOffset: D,
9080
- dropTargetKey: S.key,
9081
- dropTargetPos: S.pos,
9080
+ dropTargetKey: w.key,
9081
+ dropTargetPos: w.pos,
9082
9082
  dragOverNodeKey: I,
9083
- dropContainerKey: H === 0 ? null : ((d = S.parent) === null || d === void 0 ? void 0 : d.key) || null,
9083
+ dropContainerKey: H === 0 ? null : ((d = w.parent) === null || d === void 0 ? void 0 : d.key) || null,
9084
9084
  dropAllowed: E
9085
9085
  };
9086
9086
  }
@@ -9166,8 +9166,8 @@ function qo(e, t) {
9166
9166
  return AA(e) || $A(e, t) || by(e, t) || PA();
9167
9167
  }
9168
9168
  var NA = ["className", "style", "motion", "motionNodes", "motionType", "onMotionStart", "onMotionEnd", "active", "treeNodeRequiredProps"], Ty = function(t, n) {
9169
- var r = t.className, o = t.style, i = t.motion, a = t.motionNodes, l = t.motionType, c = t.onMotionStart, u = t.onMotionEnd, d = t.active, h = t.treeNodeRequiredProps, f = _l(t, NA), p = C.useState(!0), g = qo(p, 2), m = g[0], b = g[1], y = C.useContext(md), S = y.prefixCls, w = C.useRef(!1), x = function() {
9170
- w.current || u(), w.current = !0;
9169
+ var r = t.className, o = t.style, i = t.motion, a = t.motionNodes, l = t.motionType, c = t.onMotionStart, u = t.onMotionEnd, d = t.active, h = t.treeNodeRequiredProps, f = _l(t, NA), p = C.useState(!0), g = qo(p, 2), m = g[0], b = g[1], y = C.useContext(md), w = y.prefixCls, S = C.useRef(!1), x = function() {
9170
+ S.current || u(), S.current = !0;
9171
9171
  };
9172
9172
  return ue(function() {
9173
9173
  a && l === "hide" && m && b(!1);
@@ -9186,7 +9186,7 @@ var NA = ["className", "style", "motion", "motionNodes", "motionType", "onMotion
9186
9186
  var O = _.className, I = _.style;
9187
9187
  return /* @__PURE__ */ s("div", {
9188
9188
  ref: k,
9189
- className: Tt("".concat(S, "-treenode-motion"), O),
9189
+ className: Tt("".concat(w, "-treenode-motion"), O),
9190
9190
  style: I,
9191
9191
  children: a.map(function(H) {
9192
9192
  var D = Ls({}, (ky(H.data), H.data)), T = H.title, $ = H.key, V = H.isStart, E = H.isEnd;
@@ -9298,7 +9298,7 @@ function FA(e) {
9298
9298
  var Oy = /* @__PURE__ */ C.forwardRef(function(e, t) {
9299
9299
  var n = e.prefixCls, r = e.data;
9300
9300
  e.selectable, e.checkable;
9301
- var o = e.expandedKeys, i = e.selectedKeys, a = e.checkedKeys, l = e.loadedKeys, c = e.loadingKeys, u = e.halfCheckedKeys, d = e.keyEntities, h = e.disabled, f = e.dragging, p = e.dragOverNodeKey, g = e.dropPosition, m = e.motion, b = e.height, y = e.itemHeight, S = e.virtual, w = e.focusable, x = e.activeItem, _ = e.focused, k = e.tabIndex, O = e.onKeyDown, I = e.onFocus, H = e.onBlur, D = e.onActiveChange, T = e.onListChangeStart, $ = e.onListChangeEnd, V = _l(e, VA), E = C.useRef(null), P = C.useRef(null);
9301
+ var o = e.expandedKeys, i = e.selectedKeys, a = e.checkedKeys, l = e.loadedKeys, c = e.loadingKeys, u = e.halfCheckedKeys, d = e.keyEntities, h = e.disabled, f = e.dragging, p = e.dragOverNodeKey, g = e.dropPosition, m = e.motion, b = e.height, y = e.itemHeight, w = e.virtual, S = e.focusable, x = e.activeItem, _ = e.focused, k = e.tabIndex, O = e.onKeyDown, I = e.onFocus, H = e.onBlur, D = e.onActiveChange, T = e.onListChangeStart, $ = e.onListChangeEnd, V = _l(e, VA), E = C.useRef(null), P = C.useRef(null);
9302
9302
  C.useImperativeHandle(t, function() {
9303
9303
  return {
9304
9304
  scrollTo: function(et) {
@@ -9323,13 +9323,13 @@ var Oy = /* @__PURE__ */ C.forwardRef(function(e, t) {
9323
9323
  var et = oe.findIndex(function(qe) {
9324
9324
  var wt = qe.key;
9325
9325
  return wt === xe.key;
9326
- }), Be = $p(Rp(oe, r, xe.key), S, b, y), at = oe.slice();
9326
+ }), Be = $p(Rp(oe, r, xe.key), w, b, y), at = oe.slice();
9327
9327
  at.splice(et + 1, 0, Ap), ge(at), Te(Be), X("show");
9328
9328
  } else {
9329
9329
  var $e = r.findIndex(function(qe) {
9330
9330
  var wt = qe.key;
9331
9331
  return wt === xe.key;
9332
- }), Xe = $p(Rp(r, oe, xe.key), S, b, y), We = r.slice();
9332
+ }), Xe = $p(Rp(r, oe, xe.key), w, b, y), We = r.slice();
9333
9333
  We.splice($e + 1, 0, Ap), ge(We), Te(Xe), X("hide");
9334
9334
  }
9335
9335
  else
@@ -9356,8 +9356,8 @@ var Oy = /* @__PURE__ */ C.forwardRef(function(e, t) {
9356
9356
  }), /* @__PURE__ */ s("div", {
9357
9357
  children: /* @__PURE__ */ s("input", {
9358
9358
  style: Dp,
9359
- disabled: w === !1 || h,
9360
- tabIndex: w !== !1 ? k : null,
9359
+ disabled: S === !1 || h,
9360
+ tabIndex: S !== !1 ? k : null,
9361
9361
  onKeyDown: O,
9362
9362
  onFocus: I,
9363
9363
  onBlur: H,
@@ -9390,7 +9390,7 @@ var Oy = /* @__PURE__ */ C.forwardRef(function(e, t) {
9390
9390
  itemKey: Pp,
9391
9391
  height: b,
9392
9392
  fullHeight: !1,
9393
- virtual: S,
9393
+ virtual: w,
9394
9394
  itemHeight: y,
9395
9395
  prefixCls: "".concat(n, "-list"),
9396
9396
  ref: E,
@@ -9502,12 +9502,12 @@ var BA = 10, yd = /* @__PURE__ */ function(e) {
9502
9502
  node: tn(c.props)
9503
9503
  });
9504
9504
  }, r.onNodeDragEnter = function(l, c) {
9505
- var u = r.state, d = u.expandedKeys, h = u.keyEntities, f = u.dragChildrenKeys, p = u.flattenNodes, g = u.indent, m = r.props, b = m.onDragEnter, y = m.onExpand, S = m.allowDrop, w = m.direction, x = c.props, _ = x.pos, k = x.eventKey, O = Dr(r), I = O.dragNode;
9505
+ var u = r.state, d = u.expandedKeys, h = u.keyEntities, f = u.dragChildrenKeys, p = u.flattenNodes, g = u.indent, m = r.props, b = m.onDragEnter, y = m.onExpand, w = m.allowDrop, S = m.direction, x = c.props, _ = x.pos, k = x.eventKey, O = Dr(r), I = O.dragNode;
9506
9506
  if (r.currentMouseOverDroppableNodeKey !== k && (r.currentMouseOverDroppableNodeKey = k), !I) {
9507
9507
  r.resetDragState();
9508
9508
  return;
9509
9509
  }
9510
- var H = Tp(l, I, c, g, r.dragStartMousePosition, S, p, h, d, w), D = H.dropPosition, T = H.dropLevelOffset, $ = H.dropTargetKey, V = H.dropContainerKey, E = H.dropTargetPos, P = H.dropAllowed, A = H.dragOverNodeKey;
9510
+ var H = Tp(l, I, c, g, r.dragStartMousePosition, w, p, h, d, S), D = H.dropPosition, T = H.dropLevelOffset, $ = H.dropTargetKey, V = H.dropContainerKey, E = H.dropTargetPos, P = H.dropAllowed, A = H.dragOverNodeKey;
9511
9511
  if (f.indexOf($) !== -1 || !P) {
9512
9512
  r.resetDragState();
9513
9513
  return;
@@ -9541,9 +9541,9 @@ var BA = 10, yd = /* @__PURE__ */ function(e) {
9541
9541
  expandedKeys: d
9542
9542
  });
9543
9543
  }, r.onNodeDragOver = function(l, c) {
9544
- var u = r.state, d = u.dragChildrenKeys, h = u.flattenNodes, f = u.keyEntities, p = u.expandedKeys, g = u.indent, m = r.props, b = m.onDragOver, y = m.allowDrop, S = m.direction, w = Dr(r), x = w.dragNode;
9544
+ var u = r.state, d = u.dragChildrenKeys, h = u.flattenNodes, f = u.keyEntities, p = u.expandedKeys, g = u.indent, m = r.props, b = m.onDragOver, y = m.allowDrop, w = m.direction, S = Dr(r), x = S.dragNode;
9545
9545
  if (!!x) {
9546
- var _ = Tp(l, x, c, g, r.dragStartMousePosition, y, h, f, p, S), k = _.dropPosition, O = _.dropLevelOffset, I = _.dropTargetKey, H = _.dropContainerKey, D = _.dropAllowed, T = _.dropTargetPos, $ = _.dragOverNodeKey;
9546
+ var _ = Tp(l, x, c, g, r.dragStartMousePosition, y, h, f, p, w), k = _.dropPosition, O = _.dropLevelOffset, I = _.dropTargetKey, H = _.dropContainerKey, D = _.dropAllowed, T = _.dropTargetPos, $ = _.dragOverNodeKey;
9547
9547
  d.indexOf(I) !== -1 || !D || (x.props.eventKey === I && 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 && I === r.state.dropTargetKey && H === r.state.dropContainerKey && T === r.state.dropTargetPos && D === r.state.dropAllowed && $ === r.state.dragOverNodeKey || r.setState({
9548
9548
  dropPosition: k,
9549
9549
  dropLevelOffset: O,
@@ -9581,14 +9581,14 @@ var BA = 10, yd = /* @__PURE__ */ function(e) {
9581
9581
  if (r.setState({
9582
9582
  dragOverNodeKey: null
9583
9583
  }), r.cleanDragState(), g !== null) {
9584
- var S = bn(bn({}, Ji(g, r.getTreeNodeRequiredProps())), {}, {
9584
+ var w = bn(bn({}, Ji(g, r.getTreeNodeRequiredProps())), {}, {
9585
9585
  active: ((u = r.getActiveItem()) === null || u === void 0 ? void 0 : u.key) === g,
9586
9586
  data: r.state.keyEntities[g].node
9587
- }), w = f.indexOf(g) !== -1;
9588
- vt(!w, "Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");
9587
+ }), S = f.indexOf(g) !== -1;
9588
+ vt(!S, "Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");
9589
9589
  var x = vd(m), _ = {
9590
9590
  event: l,
9591
- node: tn(S),
9591
+ node: tn(w),
9592
9592
  dragNode: r.dragNode ? tn(r.dragNode.props) : null,
9593
9593
  dragNodesKeys: [r.dragNode.props.eventKey].concat(f),
9594
9594
  dropToGap: p !== 0,
@@ -9625,9 +9625,9 @@ var BA = 10, yd = /* @__PURE__ */ function(e) {
9625
9625
  var u = r.props, d = u.onDoubleClick, h = u.expandAction;
9626
9626
  h === "doubleClick" && r.triggerExpandActionExpand(l, c), d == null || d(l, c);
9627
9627
  }, r.onNodeSelect = function(l, c) {
9628
- var u = r.state.selectedKeys, d = r.state, h = d.keyEntities, f = d.fieldNames, p = r.props, g = p.onSelect, m = p.multiple, b = c.selected, y = c[f.key], S = !b;
9629
- S ? m ? u = Ur(u, y) : u = [y] : u = kr(u, y);
9630
- var w = u.map(function(x) {
9628
+ var u = r.state.selectedKeys, d = r.state, h = d.keyEntities, f = d.fieldNames, p = r.props, g = p.onSelect, m = p.multiple, b = c.selected, y = c[f.key], w = !b;
9629
+ w ? m ? u = Ur(u, y) : u = [y] : u = kr(u, y);
9630
+ var S = u.map(function(x) {
9631
9631
  var _ = h[x];
9632
9632
  return _ ? _.node : null;
9633
9633
  }).filter(function(x) {
@@ -9637,13 +9637,13 @@ var BA = 10, yd = /* @__PURE__ */ function(e) {
9637
9637
  selectedKeys: u
9638
9638
  }), g == null || g(u, {
9639
9639
  event: "select",
9640
- selected: S,
9640
+ selected: w,
9641
9641
  node: c,
9642
- selectedNodes: w,
9642
+ selectedNodes: S,
9643
9643
  nativeEvent: l.nativeEvent
9644
9644
  });
9645
9645
  }, r.onNodeCheck = function(l, c, u) {
9646
- var d = r.state, h = d.keyEntities, f = d.checkedKeys, p = d.halfCheckedKeys, g = r.props, m = g.checkStrictly, b = g.onCheck, y = c.key, S, w = {
9646
+ var d = r.state, h = d.keyEntities, f = d.checkedKeys, p = d.halfCheckedKeys, g = r.props, m = g.checkStrictly, b = g.onCheck, y = c.key, w, S = {
9647
9647
  event: "check",
9648
9648
  node: c,
9649
9649
  checked: u,
@@ -9651,10 +9651,10 @@ var BA = 10, yd = /* @__PURE__ */ function(e) {
9651
9651
  };
9652
9652
  if (m) {
9653
9653
  var x = u ? Ur(f, y) : kr(f, y), _ = kr(p, y);
9654
- S = {
9654
+ w = {
9655
9655
  checked: x,
9656
9656
  halfChecked: _
9657
- }, w.checkedNodes = x.map(function(T) {
9657
+ }, S.checkedNodes = x.map(function(T) {
9658
9658
  return h[T];
9659
9659
  }).filter(function(T) {
9660
9660
  return T;
@@ -9674,11 +9674,11 @@ var BA = 10, yd = /* @__PURE__ */ function(e) {
9674
9674
  }, h);
9675
9675
  O = D.checkedKeys, I = D.halfCheckedKeys;
9676
9676
  }
9677
- S = O, w.checkedNodes = [], w.checkedNodesPositions = [], w.halfCheckedKeys = I, O.forEach(function(T) {
9677
+ w = O, S.checkedNodes = [], S.checkedNodesPositions = [], S.halfCheckedKeys = I, O.forEach(function(T) {
9678
9678
  var $ = h[T];
9679
9679
  if (!!$) {
9680
9680
  var V = $.node, E = $.pos;
9681
- w.checkedNodes.push(V), w.checkedNodesPositions.push({
9681
+ S.checkedNodes.push(V), S.checkedNodesPositions.push({
9682
9682
  node: V,
9683
9683
  pos: E
9684
9684
  });
@@ -9689,17 +9689,17 @@ var BA = 10, yd = /* @__PURE__ */ function(e) {
9689
9689
  halfCheckedKeys: I
9690
9690
  });
9691
9691
  }
9692
- b == null || b(S, w);
9692
+ b == null || b(w, S);
9693
9693
  }, r.onNodeLoad = function(l) {
9694
9694
  var c = l.key, u = new Promise(function(d, h) {
9695
9695
  r.setState(function(f) {
9696
- var p = f.loadedKeys, g = p === void 0 ? [] : p, m = f.loadingKeys, b = m === void 0 ? [] : m, y = r.props, S = y.loadData, w = y.onLoad;
9697
- if (!S || g.indexOf(c) !== -1 || b.indexOf(c) !== -1)
9696
+ var p = f.loadedKeys, g = p === void 0 ? [] : p, m = f.loadingKeys, b = m === void 0 ? [] : m, y = r.props, w = y.loadData, S = y.onLoad;
9697
+ if (!w || g.indexOf(c) !== -1 || b.indexOf(c) !== -1)
9698
9698
  return null;
9699
- var x = S(l);
9699
+ var x = w(l);
9700
9700
  return x.then(function() {
9701
9701
  var _ = r.state.loadedKeys, k = Ur(_, c);
9702
- w == null || w(k, {
9702
+ S == null || S(k, {
9703
9703
  event: "load",
9704
9704
  node: l
9705
9705
  }), r.setUncontrolledState({
@@ -9784,12 +9784,12 @@ var BA = 10, yd = /* @__PURE__ */ function(e) {
9784
9784
  }, r.onNodeExpand = function(l, c) {
9785
9785
  var u = r.state.expandedKeys, d = r.state, h = d.listChanging, f = d.fieldNames, p = r.props, g = p.onExpand, m = p.loadData, b = c.expanded, y = c[f.key];
9786
9786
  if (!h) {
9787
- var S = u.indexOf(y), w = !b;
9788
- if (vt(b && S !== -1 || !b && S === -1, "Expand state not sync with index check"), w ? u = Ur(u, y) : u = kr(u, y), r.setExpandedKeys(u), g == null || g(u, {
9787
+ var w = u.indexOf(y), S = !b;
9788
+ if (vt(b && w !== -1 || !b && w === -1, "Expand state not sync with index check"), S ? u = Ur(u, y) : u = kr(u, y), r.setExpandedKeys(u), g == null || g(u, {
9789
9789
  node: c,
9790
- expanded: w,
9790
+ expanded: S,
9791
9791
  nativeEvent: l.nativeEvent
9792
- }), w && m) {
9792
+ }), S && m) {
9793
9793
  var x = r.onNodeLoad(c);
9794
9794
  x && x.then(function() {
9795
9795
  var _ = oc(r.state.treeData, u, f);
@@ -9851,17 +9851,17 @@ var BA = 10, yd = /* @__PURE__ */ function(e) {
9851
9851
  }
9852
9852
  var y = r.getActiveItem();
9853
9853
  if (y && y.data) {
9854
- var S = r.getTreeNodeRequiredProps(), w = y.data.isLeaf === !1 || !!(y.data[f.children] || []).length, x = tn(bn(bn({}, Ji(u, S)), {}, {
9854
+ var w = r.getTreeNodeRequiredProps(), S = y.data.isLeaf === !1 || !!(y.data[f.children] || []).length, x = tn(bn(bn({}, Ji(u, w)), {}, {
9855
9855
  data: y.data,
9856
9856
  active: !0
9857
9857
  }));
9858
9858
  switch (l.which) {
9859
9859
  case ce.LEFT: {
9860
- w && d.includes(u) ? r.onNodeExpand({}, x) : y.parent && r.onActiveChange(y.parent.key), l.preventDefault();
9860
+ S && d.includes(u) ? r.onNodeExpand({}, x) : y.parent && r.onActiveChange(y.parent.key), l.preventDefault();
9861
9861
  break;
9862
9862
  }
9863
9863
  case ce.RIGHT: {
9864
- w && !d.includes(u) ? r.onNodeExpand({}, x) : y.children && y.children.length && r.onActiveChange(y.children[0].key), l.preventDefault();
9864
+ S && !d.includes(u) ? r.onNodeExpand({}, x) : y.children && y.children.length && r.onActiveChange(y.children[0].key), l.preventDefault();
9865
9865
  break;
9866
9866
  }
9867
9867
  case ce.ENTER:
@@ -9929,7 +9929,7 @@ var BA = 10, yd = /* @__PURE__ */ function(e) {
9929
9929
  }, {
9930
9930
  key: "render",
9931
9931
  value: function() {
9932
- var o, i = this.state, a = i.focused, l = i.flattenNodes, c = i.keyEntities, u = i.draggingNodeKey, d = i.activeKey, h = i.dropLevelOffset, f = i.dropContainerKey, p = i.dropTargetKey, g = i.dropPosition, m = i.dragOverNodeKey, b = i.indent, y = this.props, S = y.prefixCls, w = y.className, x = y.style, _ = y.showLine, k = y.focusable, O = y.tabIndex, I = O === void 0 ? 0 : O, H = y.selectable, D = y.showIcon, T = y.icon, $ = y.switcherIcon, V = y.draggable, E = y.checkable, P = y.checkStrictly, A = y.disabled, M = y.motion, B = y.loadData, j = y.filterTreeNode, W = y.height, U = y.itemHeight, oe = y.virtual, ae = y.titleRender, Q = y.dropIndicatorRender, ee = y.onContextMenu, me = y.onScroll, ge = y.direction, he = y.rootClassName, de = y.rootStyle, Oe = li(this.props, {
9932
+ var o, i = this.state, a = i.focused, l = i.flattenNodes, c = i.keyEntities, u = i.draggingNodeKey, d = i.activeKey, h = i.dropLevelOffset, f = i.dropContainerKey, p = i.dropTargetKey, g = i.dropPosition, m = i.dragOverNodeKey, b = i.indent, y = this.props, w = y.prefixCls, S = y.className, x = y.style, _ = y.showLine, k = y.focusable, O = y.tabIndex, I = O === void 0 ? 0 : O, H = y.selectable, D = y.showIcon, T = y.icon, $ = y.switcherIcon, V = y.draggable, E = y.checkable, P = y.checkStrictly, A = y.disabled, M = y.motion, B = y.loadData, j = y.filterTreeNode, W = y.height, U = y.itemHeight, oe = y.virtual, ae = y.titleRender, Q = y.dropIndicatorRender, ee = y.onContextMenu, me = y.onScroll, ge = y.direction, he = y.rootClassName, de = y.rootStyle, Oe = li(this.props, {
9933
9933
  aria: !0,
9934
9934
  data: !0
9935
9935
  }), Te;
@@ -9937,7 +9937,7 @@ var BA = 10, yd = /* @__PURE__ */ function(e) {
9937
9937
  nodeDraggable: V
9938
9938
  } : Te = {}), /* @__PURE__ */ s(md.Provider, {
9939
9939
  value: {
9940
- prefixCls: S,
9940
+ prefixCls: w,
9941
9941
  selectable: H,
9942
9942
  showIcon: D,
9943
9943
  icon: T,
@@ -9977,11 +9977,11 @@ var BA = 10, yd = /* @__PURE__ */ function(e) {
9977
9977
  },
9978
9978
  children: /* @__PURE__ */ s("div", {
9979
9979
  role: "tree",
9980
- className: Tt(S, w, he, (o = {}, jt(o, "".concat(S, "-show-line"), _), jt(o, "".concat(S, "-focused"), a), jt(o, "".concat(S, "-active-focused"), d !== null), o)),
9980
+ className: Tt(w, S, he, (o = {}, jt(o, "".concat(w, "-show-line"), _), jt(o, "".concat(w, "-focused"), a), jt(o, "".concat(w, "-active-focused"), d !== null), o)),
9981
9981
  style: de,
9982
9982
  children: /* @__PURE__ */ s(Oy, {
9983
9983
  ref: this.listRef,
9984
- prefixCls: S,
9984
+ prefixCls: w,
9985
9985
  style: x,
9986
9986
  data: l,
9987
9987
  disabled: A,
@@ -10047,12 +10047,12 @@ var BA = 10, yd = /* @__PURE__ */ function(e) {
10047
10047
  checkedKeys: i.checkedKeys,
10048
10048
  halfCheckedKeys: i.halfCheckedKeys
10049
10049
  }), m) {
10050
- var b = m, y = b.checkedKeys, S = y === void 0 ? [] : y, w = b.halfCheckedKeys, x = w === void 0 ? [] : w;
10050
+ var b = m, y = b.checkedKeys, w = y === void 0 ? [] : y, S = b.halfCheckedKeys, x = S === void 0 ? [] : S;
10051
10051
  if (!o.checkStrictly) {
10052
- var _ = ti(S, !0, f);
10053
- S = _.checkedKeys, x = _.halfCheckedKeys;
10052
+ var _ = ti(w, !0, f);
10053
+ w = _.checkedKeys, x = _.halfCheckedKeys;
10054
10054
  }
10055
- l.checkedKeys = S, l.halfCheckedKeys = x;
10055
+ l.checkedKeys = w, l.halfCheckedKeys = x;
10056
10056
  }
10057
10057
  }
10058
10058
  return c("loadedKeys") && (l.loadedKeys = o.loadedKeys), l;
@@ -10121,7 +10121,7 @@ var WA = {
10121
10121
  padding: 0,
10122
10122
  margin: 0
10123
10123
  }, GA = function(t, n) {
10124
- var r = nv(), o = r.prefixCls, i = r.multiple, a = r.searchValue, l = r.toggleOpen, c = r.open, u = r.notFoundContent, d = C.useContext(Dy), h = d.virtual, f = d.listHeight, p = d.listItemHeight, g = d.treeData, m = d.fieldNames, b = d.onSelect, y = d.dropdownMatchSelectWidth, S = d.treeExpandAction, w = C.useContext(Ry), x = w.checkable, _ = w.checkedKeys, k = w.halfCheckedKeys, O = w.treeExpandedKeys, I = w.treeDefaultExpandAll, H = w.treeDefaultExpandedKeys, D = w.onTreeExpand, T = w.treeIcon, $ = w.showTreeIcon, V = w.switcherIcon, E = w.treeLine, P = w.treeNodeFilterProp, A = w.loadData, M = w.treeLoadedKeys, B = w.treeMotion, j = w.onTreeLoad, W = w.keyEntities, U = C.useRef(), oe = Ju(function() {
10124
+ var r = nv(), o = r.prefixCls, i = r.multiple, a = r.searchValue, l = r.toggleOpen, c = r.open, u = r.notFoundContent, d = C.useContext(Dy), h = d.virtual, f = d.listHeight, p = d.listItemHeight, g = d.treeData, m = d.fieldNames, b = d.onSelect, y = d.dropdownMatchSelectWidth, w = d.treeExpandAction, S = C.useContext(Ry), x = S.checkable, _ = S.checkedKeys, k = S.halfCheckedKeys, O = S.treeExpandedKeys, I = S.treeDefaultExpandAll, H = S.treeDefaultExpandedKeys, D = S.onTreeExpand, T = S.treeIcon, $ = S.showTreeIcon, V = S.switcherIcon, E = S.treeLine, P = S.treeNodeFilterProp, A = S.loadData, M = S.treeLoadedKeys, B = S.treeMotion, j = S.onTreeLoad, W = S.keyEntities, U = C.useRef(), oe = Ju(function() {
10125
10125
  return g;
10126
10126
  }, [c, g], function($e, Xe) {
10127
10127
  return Xe[0] && $e[1] !== Xe[1];
@@ -10233,7 +10233,7 @@ var WA = {
10233
10233
  onExpand: X,
10234
10234
  onLoad: j,
10235
10235
  filterTreeNode: ee,
10236
- expandAction: S
10236
+ expandAction: w
10237
10237
  })]
10238
10238
  });
10239
10239
  }, $y = /* @__PURE__ */ C.forwardRef(GA);
@@ -10287,17 +10287,17 @@ function YA(e, t, n, r, o, i) {
10287
10287
  function u(d) {
10288
10288
  var h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "0", f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
10289
10289
  return d.map(function(p, g) {
10290
- var m = "".concat(h, "-").concat(g), b = p[i.value], y = n.includes(b), S = u(p[i.children] || [], m, y), w = /* @__PURE__ */ s(Py, {
10290
+ var m = "".concat(h, "-").concat(g), b = p[i.value], y = n.includes(b), w = u(p[i.children] || [], m, y), S = /* @__PURE__ */ s(Py, {
10291
10291
  ...p,
10292
- children: S.map(function(_) {
10292
+ children: w.map(function(_) {
10293
10293
  return _.node;
10294
10294
  })
10295
10295
  });
10296
- if (t === b && (a = w), y) {
10296
+ if (t === b && (a = S), y) {
10297
10297
  var x = {
10298
10298
  pos: m,
10299
- node: w,
10300
- children: S
10299
+ node: S,
10300
+ children: w
10301
10301
  };
10302
10302
  return f || l.push(x), x;
10303
10303
  }
@@ -10445,7 +10445,7 @@ function o$(e) {
10445
10445
  return !e || Ao(e) !== "object";
10446
10446
  }
10447
10447
  var Iy = /* @__PURE__ */ C.forwardRef(function(e, t) {
10448
- 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, h = e.inputValue, f = e.onSearch, p = e.autoClearSearchValue, g = p === void 0 ? !0 : p, m = e.filterTreeNode, b = e.treeNodeFilterProp, y = b === void 0 ? "value" : b, S = e.showCheckedStrategy, w = S === void 0 ? xd : S, x = e.treeNodeLabelProp, _ = e.multiple, k = e.treeCheckable, O = e.treeCheckStrictly, I = e.labelInValue, H = e.fieldNames, D = e.treeDataSimpleMode, T = e.treeData, $ = e.children, V = e.loadData, E = e.treeLoadedKeys, P = e.onTreeLoad, A = e.treeDefaultExpandAll, M = e.treeExpandedKeys, B = e.treeDefaultExpandedKeys, j = e.onTreeExpand, W = e.treeExpandAction, U = e.virtual, oe = e.listHeight, ae = oe === void 0 ? 200 : oe, Q = e.listItemHeight, ee = 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, Z = e.switcherIcon, se = e.treeMotion, Re = qm(e, r$), X = oy(n), Me = k && !O, we = k || O, Ae = O || I, Ie = we || _, xe = ia(a, {
10448
+ 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, h = e.inputValue, f = 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, S = w === void 0 ? xd : w, x = e.treeNodeLabelProp, _ = e.multiple, k = e.treeCheckable, O = e.treeCheckStrictly, I = e.labelInValue, H = e.fieldNames, D = e.treeDataSimpleMode, T = e.treeData, $ = e.children, V = e.loadData, E = e.treeLoadedKeys, P = e.onTreeLoad, A = e.treeDefaultExpandAll, M = e.treeExpandedKeys, B = e.treeDefaultExpandedKeys, j = e.onTreeExpand, W = e.treeExpandAction, U = e.virtual, oe = e.listHeight, ae = oe === void 0 ? 200 : oe, Q = e.listItemHeight, ee = 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, Z = e.switcherIcon, se = e.treeMotion, Re = qm(e, r$), X = oy(n), Me = k && !O, we = k || O, Ae = O || I, Ie = we || _, xe = ia(a, {
10449
10449
  value: i
10450
10450
  }), et = Zr(xe, 2), Be = et[0], at = et[1];
10451
10451
  process.env.NODE_ENV !== "production" && n$(e);
@@ -10522,7 +10522,7 @@ var Iy = /* @__PURE__ */ C.forwardRef(function(e, t) {
10522
10522
  return te.value;
10523
10523
  });
10524
10524
  }, [Ft]), $n = e$(Ft, hn, Me, De), Jt = Zr($n, 2), le = Jt[0], ye = Jt[1], _e = C.useMemo(function() {
10525
- var te = Np(le, w, De, $e), be = te.map(function(ze) {
10525
+ var te = Np(le, S, De, $e), be = te.map(function(ze) {
10526
10526
  var Ze, Ue, ot;
10527
10527
  return (Ze = (Ue = De[ze]) === null || Ue === void 0 || (ot = Ue.node) === null || ot === void 0 ? void 0 : ot[$e.value]) !== null && Ze !== void 0 ? Ze : ze;
10528
10528
  }), Ce = be.map(function(ze) {
@@ -10540,12 +10540,12 @@ var Iy = /* @__PURE__ */ C.forwardRef(function(e, t) {
10540
10540
  label: (Ze = ze.label) !== null && Ze !== void 0 ? Ze : ze.value
10541
10541
  });
10542
10542
  });
10543
- }, [$e, Ie, le, Ft, St, w, De]), Fe = ZA(_e), st = Zr(Fe, 1), _t = st[0], pn = Ip(function(te, be, Ce) {
10543
+ }, [$e, Ie, le, Ft, St, S, De]), Fe = ZA(_e), st = Zr(Fe, 1), _t = st[0], pn = Ip(function(te, be, Ce) {
10544
10544
  var Pe = St(te);
10545
10545
  if (at(Pe), g && wt(""), l) {
10546
10546
  var Ke = te;
10547
10547
  if (Me) {
10548
- var ze = Np(te, w, De, $e);
10548
+ var ze = Np(te, S, De, $e);
10549
10549
  Ke = ze.map(function(Mn) {
10550
10550
  var On = je.get(Mn);
10551
10551
  return On ? On.node[$e.value] : Mn;
@@ -11668,7 +11668,7 @@ const b$ = (e) => {
11668
11668
  getColor: Cl(["#fff7f1", "darkorange", "#b60000"]),
11669
11669
  name: "orange",
11670
11670
  category: "sequential"
11671
- }, jy = "@devtable/dashboard", Sd = "8.36.0", Ky = "Apache-2.0", Wy = {
11671
+ }, jy = "@devtable/dashboard", Sd = "8.37.0", Ky = "Apache-2.0", Wy = {
11672
11672
  access: "public",
11673
11673
  registry: "https://registry.npmjs.org/"
11674
11674
  }, Gy = [
@@ -13417,8 +13417,8 @@ function EP({ config: e }) {
13417
13417
  }
13418
13418
  function kP(e, t) {
13419
13419
  return Object.entries(e).map(([r, o]) => {
13420
- var m, b, y, S;
13421
- const i = o.map((w) => w[t]).sort((w, x) => w - x), a = (m = ms(i, 0.25)) != null ? m : 0, l = (b = ms(i, 0.5)) != null ? b : 0, c = (y = ms(i, 0.75)) != null ? y : 0, u = c - a, d = a - 1.5 * u, h = c + 1.5 * u, f = Math.max(i[0], d), p = Math.min((S = q.last(i)) != null ? S : 0, h), g = i.filter((w) => w < f || w > p).map((w) => [r, w]);
13420
+ var m, b, y, w;
13421
+ const i = o.map((S) => S[t]).sort((S, x) => S - x), a = (m = ms(i, 0.25)) != null ? m : 0, l = (b = ms(i, 0.5)) != null ? b : 0, c = (y = ms(i, 0.75)) != null ? y : 0, u = c - a, d = a - 1.5 * u, h = c + 1.5 * u, f = Math.max(i[0], d), p = Math.min((w = q.last(i)) != null ? w : 0, h), g = i.filter((S) => S < f || S > p).map((S) => [r, S]);
13422
13422
  return {
13423
13423
  name: r,
13424
13424
  min: f,
@@ -14836,7 +14836,7 @@ function vN({ x_axis_data_key: e }, {
14836
14836
  hide_in_legend: h,
14837
14837
  ...f
14838
14838
  }, p, g, m, b, y) {
14839
- const S = {
14839
+ const w = {
14840
14840
  label: {
14841
14841
  show: !!r,
14842
14842
  position: r,
@@ -14854,28 +14854,28 @@ function vN({ x_axis_data_key: e }, {
14854
14854
  },
14855
14855
  ...f
14856
14856
  };
14857
- if (u && (S.endLabel = {
14857
+ if (u && (w.endLabel = {
14858
14858
  show: !0,
14859
14859
  formatter: o,
14860
14860
  offset: [-12, 12],
14861
14861
  align: "right"
14862
14862
  }), !i || i === e)
14863
- return S.data = gN({
14863
+ return w.data = gN({
14864
14864
  dataTemplate: p,
14865
14865
  data: m,
14866
14866
  aggregation_on_value: a,
14867
14867
  x_axis_data_key: e,
14868
14868
  y_axis_data_key: t,
14869
14869
  valueTypedXAxis: g
14870
- }), S;
14871
- const w = mN({
14870
+ }), w;
14871
+ const S = mN({
14872
14872
  group_by_key: i,
14873
14873
  data: m,
14874
14874
  x_axis_data_key: e,
14875
14875
  y_axis_data_key: t
14876
14876
  });
14877
- return Object.entries(w).map(([x, _]) => {
14878
- const k = mn(S);
14877
+ return Object.entries(S).map(([x, _]) => {
14878
+ const k = mn(w);
14879
14879
  return k.name = x, k.color = void 0, k.data = _, k;
14880
14880
  });
14881
14881
  }
@@ -25227,15 +25227,15 @@ function rs(e, t, n, r) {
25227
25227
  headers: []
25228
25228
  }, m = [];
25229
25229
  f.forEach((b) => {
25230
- const y = [...m].reverse()[0], S = b.column.depth === g.depth;
25231
- let w, x = !1;
25232
- if (S && b.column.parent ? w = b.column.parent : (w = b.column, x = !0), y && (y == null ? void 0 : y.column) === w)
25230
+ const y = [...m].reverse()[0], w = b.column.depth === g.depth;
25231
+ let S, x = !1;
25232
+ if (w && b.column.parent ? S = b.column.parent : (S = b.column, x = !0), y && (y == null ? void 0 : y.column) === S)
25233
25233
  y.subHeaders.push(b);
25234
25234
  else {
25235
- const _ = Kp(n, w, {
25236
- id: [r, p, w.id, b == null ? void 0 : b.id].filter(Boolean).join("_"),
25235
+ const _ = Kp(n, S, {
25236
+ id: [r, p, S.id, b == null ? void 0 : b.id].filter(Boolean).join("_"),
25237
25237
  isPlaceholder: x,
25238
- placeholderId: x ? "" + m.filter((k) => k.column === w).length : void 0,
25238
+ placeholderId: x ? "" + m.filter((k) => k.column === S).length : void 0,
25239
25239
  depth: p,
25240
25240
  index: m.length
25241
25241
  });
@@ -25250,15 +25250,15 @@ function rs(e, t, n, r) {
25250
25250
  u(d, a - 1), c.reverse();
25251
25251
  const h = (f) => f.filter((g) => g.column.getIsVisible()).map((g) => {
25252
25252
  let m = 0, b = 0, y = [0];
25253
- g.subHeaders && g.subHeaders.length ? (y = [], h(g.subHeaders).forEach((w) => {
25253
+ g.subHeaders && g.subHeaders.length ? (y = [], h(g.subHeaders).forEach((S) => {
25254
25254
  let {
25255
25255
  colSpan: x,
25256
25256
  rowSpan: _
25257
- } = w;
25257
+ } = S;
25258
25258
  m += x, y.push(_);
25259
25259
  })) : m = 1;
25260
- const S = Math.min(...y);
25261
- return b = b + S, g.colSpan = m, g.rowSpan = b, {
25260
+ const w = Math.min(...y);
25261
+ return b = b + w, g.colSpan = m, g.rowSpan = b, {
25262
25262
  colSpan: m,
25263
25263
  rowSpan: b
25264
25264
  };
@@ -25347,14 +25347,14 @@ const os = {
25347
25347
  return;
25348
25348
  let m = {};
25349
25349
  t.setColumnSizingInfo((b) => {
25350
- var y, S;
25351
- const w = g - ((y = b == null ? void 0 : b.startOffset) != null ? y : 0), x = Math.max(w / ((S = b == null ? void 0 : b.startSize) != null ? S : 0), -0.999999);
25350
+ var y, w;
25351
+ const S = g - ((y = b == null ? void 0 : b.startOffset) != null ? y : 0), x = Math.max(S / ((w = b == null ? void 0 : b.startSize) != null ? w : 0), -0.999999);
25352
25352
  return b.columnSizingStart.forEach((_) => {
25353
25353
  let [k, O] = _;
25354
25354
  m[k] = Math.round(Math.max(O + O * x, 0) * 100) / 100;
25355
25355
  }), {
25356
25356
  ...b,
25357
- deltaOffset: w,
25357
+ deltaOffset: S,
25358
25358
  deltaPercentage: x
25359
25359
  };
25360
25360
  }), (t.options.columnResizeMode === "onChange" || p === "end") && t.setColumnSizing((b) => ({
@@ -26780,7 +26780,7 @@ function UF() {
26780
26780
  var f;
26781
26781
  const g = i[p], m = a[g.id], b = (f = g == null ? void 0 : g.desc) != null ? f : !1;
26782
26782
  if (m.sortUndefined) {
26783
- const S = d.getValue(g.id), w = h.getValue(g.id), x = typeof S > "u", _ = typeof w > "u";
26783
+ const w = d.getValue(g.id), S = h.getValue(g.id), x = typeof w > "u", _ = typeof S > "u";
26784
26784
  if (x || _)
26785
26785
  return x && _ ? 0 : x ? m.sortUndefined : -m.sortUndefined;
26786
26786
  }
@@ -27243,17 +27243,17 @@ function b4({
27243
27243
  getSortedRowModel: UF()
27244
27244
  }), {
27245
27245
  rows: y
27246
- } = b.getRowModel(), S = J.useRef(null), w = gS({
27247
- parentRef: S,
27246
+ } = b.getRowModel(), w = J.useRef(null), S = gS({
27247
+ parentRef: w,
27248
27248
  size: y.length,
27249
27249
  estimateSize: dt(() => 28, []),
27250
27250
  overscan: 20
27251
27251
  }), {
27252
27252
  virtualItems: x,
27253
27253
  totalSize: _
27254
- } = w, k = x.length > 0 && ((V = x == null ? void 0 : x[0]) == null ? void 0 : V.start) || 0, O = x.length > 0 ? _ - (((E = x == null ? void 0 : x[x.length - 1]) == null ? void 0 : E.end) || 0) : 0, I = y.length, H = I > 0, D = H ? r - 22 : r, T = H ? 22 : 0;
27254
+ } = S, k = x.length > 0 && ((V = x == null ? void 0 : x[0]) == null ? void 0 : V.start) || 0, O = x.length > 0 ? _ - (((E = x == null ? void 0 : x[x.length - 1]) == null ? void 0 : E.end) || 0) : 0, I = y.length, H = I > 0, D = H ? r - 22 : r, T = H ? 22 : 0;
27255
27255
  return /* @__PURE__ */ v("div", {
27256
- ref: S,
27256
+ ref: w,
27257
27257
  style: {
27258
27258
  height: r,
27259
27259
  width: o
@@ -29488,7 +29488,7 @@ function $3(e, t, n, r) {
29488
29488
  });
29489
29489
  }
29490
29490
  function Zd(e, t, n) {
29491
- return e.map((r) => [r[t], r[n]]);
29491
+ return e.map((r) => [r[n], r[t]]);
29492
29492
  }
29493
29493
  function P3(e, t, n, r) {
29494
29494
  const o = Zd(t, n, r);
@@ -29501,7 +29501,7 @@ function N3({
29501
29501
  value_data_key: r,
29502
29502
  valueTypedXAxis: o
29503
29503
  }) {
29504
- return o ? P3(e, t, n, r) : t.map((i) => i[r]);
29504
+ return o ? P3(e, t, n, r) : t.map((i) => [i[r], i[n]]);
29505
29505
  }
29506
29506
  function I3({
29507
29507
  dataTemplate: e,
@@ -29536,13 +29536,14 @@ function V3({ y_axis: e }, {
29536
29536
  color: c,
29537
29537
  hide_in_legend: u,
29538
29538
  invisible: d,
29539
- ...h
29540
- }, f, p, g, m, b) {
29541
- const y = {
29539
+ id: h,
29540
+ ...f
29541
+ }, p, g, m, b, y) {
29542
+ const w = {
29542
29543
  label: {
29543
29544
  show: !!r,
29544
29545
  position: r,
29545
- formatter: b[n != null ? n : "default"]
29546
+ formatter: y[n != null ? n : "default"]
29546
29547
  },
29547
29548
  name: o,
29548
29549
  yAxisId: "main-y-axis",
@@ -29556,26 +29557,26 @@ function V3({ y_axis: e }, {
29556
29557
  emphasis: {
29557
29558
  disabled: !0
29558
29559
  },
29559
- ...h
29560
+ ...f
29560
29561
  };
29561
29562
  if (!i || i === e.data_key)
29562
- return y.data = I3({
29563
- dataTemplate: f,
29564
- data: g,
29563
+ return w.data = I3({
29564
+ dataTemplate: p,
29565
+ data: m,
29565
29566
  aggregation_on_value: a,
29566
29567
  name_data_key: e.data_key,
29567
29568
  value_data_key: t,
29568
- valueTypedXAxis: p
29569
- }), y;
29569
+ valueTypedXAxis: g
29570
+ }), w;
29570
29571
  const S = L3({
29571
29572
  group_by_key: i,
29572
- data: g,
29573
+ data: m,
29573
29574
  name_data_key: e.data_key,
29574
29575
  value_data_key: t
29575
29576
  });
29576
- return Object.entries(S).map(([w, x]) => {
29577
- const _ = mn(y);
29578
- return _.name = w, _.color = void 0, _.data = x, _;
29577
+ return Object.entries(S).map(([x, _]) => {
29578
+ const k = mn(w);
29579
+ return k.name = x, k.color = void 0, k.data = _, k;
29579
29580
  });
29580
29581
  }
29581
29582
  function z3(e, t, n, r, o, i, a) {
@@ -29602,7 +29603,7 @@ function H3(e, t, n) {
29602
29603
  return "";
29603
29604
  const a = i.map(({ seriesName: u, marker: d, value: h }) => {
29604
29605
  var g;
29605
- if (Array.isArray(h) && h.length === 2 && (h = h[1]), !u)
29606
+ if (Array.isArray(h) && h.length === 2 && (h = h[0]), !u)
29606
29607
  return h;
29607
29608
  const f = r[u], p = (g = n[f]) != null ? g : n.default;
29608
29609
  return `
@@ -29630,7 +29631,7 @@ function B3(e) {
29630
29631
  return e.x_axes.reduce(
29631
29632
  (n, { label_formatter: r }, o) => (n[o] = function(a) {
29632
29633
  let l = a;
29633
- if (typeof a == "object" && (Array.isArray(a.value) && a.value.length === 2 ? l = a.value[1] : l = a.value), !r)
29634
+ if (typeof a == "object" && (Array.isArray(a.value) && a.value.length === 2 ? l = a.value[0] : l = a.value), !r)
29634
29635
  return l;
29635
29636
  try {
29636
29637
  return Vt(l).format(r);
@@ -33276,13 +33277,13 @@ var Nl = { exports: {} };
33276
33277
  if ((m || p && g || l) && typeof FileReader < "u") {
33277
33278
  var b = new FileReader();
33278
33279
  b.onloadend = function() {
33279
- var w = b.result;
33280
- w = m ? w : w.replace(/^data:[^;]*;/, "data:attachment/file;"), f ? f.location.href = w : location = w, f = null;
33280
+ var S = b.result;
33281
+ S = m ? S : S.replace(/^data:[^;]*;/, "data:attachment/file;"), f ? f.location.href = S : location = S, f = null;
33281
33282
  }, b.readAsDataURL(u);
33282
33283
  } else {
33283
- var y = a.URL || a.webkitURL, S = y.createObjectURL(u);
33284
- f ? f.location = S : location.href = S, f = null, setTimeout(function() {
33285
- y.revokeObjectURL(S);
33284
+ var y = a.URL || a.webkitURL, w = y.createObjectURL(u);
33285
+ f ? f.location = w : location.href = w, f = null, setTimeout(function() {
33286
+ y.revokeObjectURL(w);
33286
33287
  }, 4e4);
33287
33288
  }
33288
33289
  });
@@ -35091,28 +35092,28 @@ function GB() {
35091
35092
  return rg || (rg = 1, process.env.NODE_ENV !== "production" && function() {
35092
35093
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
35093
35094
  var e = J, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
35094
- function n(w) {
35095
+ function n(S) {
35095
35096
  {
35096
35097
  for (var x = arguments.length, _ = new Array(x > 1 ? x - 1 : 0), k = 1; k < x; k++)
35097
35098
  _[k - 1] = arguments[k];
35098
- r("error", w, _);
35099
+ r("error", S, _);
35099
35100
  }
35100
35101
  }
35101
- function r(w, x, _) {
35102
+ function r(S, x, _) {
35102
35103
  {
35103
35104
  var k = t.ReactDebugCurrentFrame, O = k.getStackAddendum();
35104
35105
  O !== "" && (x += "%s", _ = _.concat([O]));
35105
35106
  var I = _.map(function(H) {
35106
35107
  return String(H);
35107
35108
  });
35108
- I.unshift("Warning: " + x), Function.prototype.apply.call(console[w], console, I);
35109
+ I.unshift("Warning: " + x), Function.prototype.apply.call(console[S], console, I);
35109
35110
  }
35110
35111
  }
35111
- function o(w, x) {
35112
- return w === x && (w !== 0 || 1 / w === 1 / x) || w !== w && x !== x;
35112
+ function o(S, x) {
35113
+ return S === x && (S !== 0 || 1 / S === 1 / x) || S !== S && x !== x;
35113
35114
  }
35114
35115
  var i = typeof Object.is == "function" ? Object.is : o, a = e.useState, l = e.useEffect, c = e.useLayoutEffect, u = e.useDebugValue, d = !1, h = !1;
35115
- function f(w, x, _) {
35116
+ function f(S, x, _) {
35116
35117
  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."));
35117
35118
  var k = x();
35118
35119
  if (!h) {
@@ -35129,7 +35130,7 @@ function GB() {
35129
35130
  H.value = k, H.getSnapshot = x, p(H) && D({
35130
35131
  inst: H
35131
35132
  });
35132
- }, [w, k, x]), l(function() {
35133
+ }, [S, k, x]), l(function() {
35133
35134
  p(H) && D({
35134
35135
  inst: H
35135
35136
  });
@@ -35138,11 +35139,11 @@ function GB() {
35138
35139
  inst: H
35139
35140
  });
35140
35141
  };
35141
- return w(T);
35142
- }, [w]), u(k), k;
35142
+ return S(T);
35143
+ }, [S]), u(k), k;
35143
35144
  }
35144
- function p(w) {
35145
- var x = w.getSnapshot, _ = w.value;
35145
+ function p(S) {
35146
+ var x = S.getSnapshot, _ = S.value;
35146
35147
  try {
35147
35148
  var k = x();
35148
35149
  return !i(_, k);
@@ -35150,11 +35151,11 @@ function GB() {
35150
35151
  return !0;
35151
35152
  }
35152
35153
  }
35153
- function g(w, x, _) {
35154
+ function g(S, x, _) {
35154
35155
  return x();
35155
35156
  }
35156
- var m = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", b = !m, y = b ? g : f, S = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : y;
35157
- bc.useSyncExternalStore = S, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
35157
+ var m = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", b = !m, y = b ? g : f, w = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : y;
35158
+ bc.useSyncExternalStore = w, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
35158
35159
  }()), bc;
35159
35160
  }
35160
35161
  var og;
@@ -35191,20 +35192,20 @@ function qB() {
35191
35192
  m = g.current;
35192
35193
  g = l(function() {
35193
35194
  function y(k) {
35194
- if (!S) {
35195
- if (S = !0, w = k, k = f(k), p !== void 0 && m.hasValue) {
35195
+ if (!w) {
35196
+ if (w = !0, S = k, k = f(k), p !== void 0 && m.hasValue) {
35196
35197
  var O = m.value;
35197
35198
  if (p(O, k))
35198
35199
  return x = O;
35199
35200
  }
35200
35201
  return x = k;
35201
35202
  }
35202
- if (O = x, r(w, k))
35203
+ if (O = x, r(S, k))
35203
35204
  return O;
35204
35205
  var I = f(k);
35205
- return p !== void 0 && p(O, I) ? O : (w = k, x = I);
35206
+ return p !== void 0 && p(O, I) ? O : (S = k, x = I);
35206
35207
  }
35207
- var S = !1, w, x, _ = h === void 0 ? null : h;
35208
+ var w = !1, S, x, _ = h === void 0 ? null : h;
35208
35209
  return [function() {
35209
35210
  return y(d());
35210
35211
  }, _ === null ? void 0 : function() {
@@ -35265,7 +35266,7 @@ function UB() {
35265
35266
  return I(H());
35266
35267
  };
35267
35268
  return [D, T];
35268
- }, [h, f, p, g]), S = y[0], w = y[1], x = o(d, S, w);
35269
+ }, [h, f, p, g]), w = y[0], S = y[1], x = o(d, w, S);
35269
35270
  return a(function() {
35270
35271
  b.hasValue = !0, b.value = x;
35271
35272
  }, [x]), c(x), x;
@@ -35552,9 +35553,9 @@ function _6(e, t) {
35552
35553
  for (var i = o.length, a = new Array(i), l = new Array(i), c = new Array(i), u = 0; u < i; ++u) {
35553
35554
  var d = r[u], h = o[u], f = h.length, p = C6(e.call(d, d && d.__data__, u, r)), g = p.length, m = l[u] = new Array(g), b = a[u] = new Array(g), y = c[u] = new Array(f);
35554
35555
  n(d, h, m, b, y, p, t);
35555
- for (var S = 0, w = 0, x, _; S < g; ++S)
35556
- if (x = m[S]) {
35557
- for (S >= w && (w = S + 1); !(_ = b[w]) && ++w < g; )
35556
+ for (var w = 0, S = 0, x, _; w < g; ++w)
35557
+ if (x = m[w]) {
35558
+ for (w >= S && (S = w + 1); !(_ = b[S]) && ++S < g; )
35558
35559
  ;
35559
35560
  x._next = _ || null;
35560
35561
  }
@@ -36058,11 +36059,11 @@ function Vj() {
36058
36059
  function zj() {
36059
36060
  var e = Nj, t = Ij, n = Lj, r = Vj, o = {}, i = Il("start", "drag", "end"), a = 0, l, c, u, d, h = 0;
36060
36061
  function f(x) {
36061
- x.on("mousedown.drag", p).filter(r).on("touchstart.drag", b).on("touchmove.drag", y, Pj).on("touchend.drag touchcancel.drag", S).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
36062
+ x.on("mousedown.drag", p).filter(r).on("touchstart.drag", b).on("touchmove.drag", y, Pj).on("touchend.drag touchcancel.drag", w).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
36062
36063
  }
36063
36064
  function p(x, _) {
36064
36065
  if (!(d || !e.call(this, x, _))) {
36065
- var k = w(this, t.call(this, x, _), x, _, "mouse");
36066
+ var k = S(this, t.call(this, x, _), x, _, "mouse");
36066
36067
  !k || (Un(x.view).on("mousemove.drag", g, pa).on("mouseup.drag", m, pa), W0(x.view), wc(x), u = !1, l = x.clientX, c = x.clientY, k("start", x));
36067
36068
  }
36068
36069
  }
@@ -36080,7 +36081,7 @@ function zj() {
36080
36081
  if (!!e.call(this, x, _)) {
36081
36082
  var k = x.changedTouches, O = t.call(this, x, _), I = k.length, H, D;
36082
36083
  for (H = 0; H < I; ++H)
36083
- (D = w(this, O, x, _, k[H].identifier, k[H])) && (wc(x), D("start", x, k[H]));
36084
+ (D = S(this, O, x, _, k[H].identifier, k[H])) && (wc(x), D("start", x, k[H]));
36084
36085
  }
36085
36086
  }
36086
36087
  function y(x) {
@@ -36088,14 +36089,14 @@ function zj() {
36088
36089
  for (O = 0; O < k; ++O)
36089
36090
  (I = o[_[O].identifier]) && (ni(x), I("drag", x, _[O]));
36090
36091
  }
36091
- function S(x) {
36092
+ function w(x) {
36092
36093
  var _ = x.changedTouches, k = _.length, O, I;
36093
36094
  for (d && clearTimeout(d), d = setTimeout(function() {
36094
36095
  d = null;
36095
36096
  }, 500), O = 0; O < k; ++O)
36096
36097
  (I = o[_[O].identifier]) && (wc(x), I("end", x, _[O]));
36097
36098
  }
36098
- function w(x, _, k, O, I, H) {
36099
+ function S(x, _, k, O, I, H) {
36099
36100
  var D = i.copy(), T = tr(H || k, _), $, V, E;
36100
36101
  if ((E = n.call(x, new wu("beforestart", {
36101
36102
  sourceEvent: k,
@@ -36595,9 +36596,9 @@ const d8 = function e(t, n, r) {
36595
36596
  ];
36596
36597
  };
36597
36598
  else {
36598
- var S = Math.sqrt(m), w = (f * f - u * u + r * m) / (2 * u * n * S), x = (f * f - u * u - r * m) / (2 * f * n * S), _ = Math.log(Math.sqrt(w * w + 1) - w), k = Math.log(Math.sqrt(x * x + 1) - x);
36599
+ var w = Math.sqrt(m), S = (f * f - u * u + r * m) / (2 * u * n * w), x = (f * f - u * u - r * m) / (2 * f * n * w), _ = Math.log(Math.sqrt(S * S + 1) - S), k = Math.log(Math.sqrt(x * x + 1) - x);
36599
36600
  y = (k - _) / t, b = function(O) {
36600
- var I = O * y, H = bg(_), D = u / (n * S) * (H * u8(t * I + _) - c8(_));
36601
+ var I = O * y, H = bg(_), D = u / (n * w) * (H * u8(t * I + _) - c8(_));
36601
36602
  return [
36602
36603
  l + D * p,
36603
36604
  c + D * g,
@@ -37317,7 +37318,7 @@ function ax() {
37317
37318
  }, y.scaleTo = function(E, P, A, M) {
37318
37319
  y.transform(E, function() {
37319
37320
  var B = t.apply(this, arguments), j = this.__zoom, W = A == null ? x(B) : typeof A == "function" ? A.apply(this, arguments) : A, U = j.invert(W), oe = typeof P == "function" ? P.apply(this, arguments) : P;
37320
- return n(w(S(j, oe), W, U), B, a);
37321
+ return n(S(w(j, oe), W, U), B, a);
37321
37322
  }, A, M);
37322
37323
  }, y.translateBy = function(E, P, A, M) {
37323
37324
  y.transform(E, function() {
@@ -37335,10 +37336,10 @@ function ax() {
37335
37336
  ), j, a);
37336
37337
  }, M, B);
37337
37338
  };
37338
- function S(E, P) {
37339
+ function w(E, P) {
37339
37340
  return P = Math.max(i[0], Math.min(i[1], P)), P === E.k ? E : new Nr(P, E.x, E.y);
37340
37341
  }
37341
- function w(E, P, A) {
37342
+ function S(E, P, A) {
37342
37343
  var M = P[0] - A[0] * E.k, B = P[1] - A[1] * E.k;
37343
37344
  return M === E.x && B === E.y ? E : new Nr(E.k, M, B);
37344
37345
  }
@@ -37409,7 +37410,7 @@ function ax() {
37409
37410
  return;
37410
37411
  A.mouse = [j, M.invert(j)], Ss(this), A.start();
37411
37412
  }
37412
- zi(E), A.wheel = setTimeout(W, g), A.zoom("mouse", n(w(S(M, B), A.mouse[0], A.mouse[1]), A.extent, a));
37413
+ zi(E), A.wheel = setTimeout(W, g), A.zoom("mouse", n(S(w(M, B), A.mouse[0], A.mouse[1]), A.extent, a));
37413
37414
  function W() {
37414
37415
  A.wheel = null, A.end();
37415
37416
  }
@@ -37424,7 +37425,7 @@ function ax() {
37424
37425
  var ee = Q.clientX - W, me = Q.clientY - U;
37425
37426
  M.moved = ee * ee + me * me > m;
37426
37427
  }
37427
- M.event(Q).zoom("mouse", n(w(M.that.__zoom, M.mouse[0] = tr(Q, A), M.mouse[1]), M.extent, a));
37428
+ M.event(Q).zoom("mouse", n(S(M.that.__zoom, M.mouse[0] = tr(Q, A), M.mouse[1]), M.extent, a));
37428
37429
  }
37429
37430
  function ae(Q) {
37430
37431
  B.on("mousemove.zoom mouseup.zoom", null), G0(Q.view, M.moved), zi(Q), M.event(Q).end();
@@ -37432,7 +37433,7 @@ function ax() {
37432
37433
  }
37433
37434
  function D(E, ...P) {
37434
37435
  if (!!e.apply(this, arguments)) {
37435
- var A = this.__zoom, M = tr(E.changedTouches ? E.changedTouches[0] : E, this), B = A.invert(M), j = A.k * (E.shiftKey ? 0.5 : 2), W = n(w(S(A, j), M, B), t.apply(this, P), a);
37436
+ var A = this.__zoom, M = tr(E.changedTouches ? E.changedTouches[0] : E, this), B = A.invert(M), j = A.k * (E.shiftKey ? 0.5 : 2), W = n(S(w(A, j), M, B), t.apply(this, P), a);
37436
37437
  zi(E), l > 0 ? Un(this).transition().duration(l).call(_, W, M, E) : Un(this).call(y.transform, W, M, E);
37437
37438
  }
37438
37439
  }
@@ -37453,12 +37454,12 @@ function ax() {
37453
37454
  W = M[j], U = tr(W, this), A.touch0 && A.touch0[2] === W.identifier ? A.touch0[0] = U : A.touch1 && A.touch1[2] === W.identifier && (A.touch1[0] = U);
37454
37455
  if (W = A.that.__zoom, A.touch1) {
37455
37456
  var ae = A.touch0[0], Q = A.touch0[1], ee = A.touch1[0], me = A.touch1[1], ge = (ge = ee[0] - ae[0]) * ge + (ge = ee[1] - ae[1]) * ge, he = (he = me[0] - Q[0]) * he + (he = me[1] - Q[1]) * he;
37456
- W = S(W, Math.sqrt(ge / he)), U = [(ae[0] + ee[0]) / 2, (ae[1] + ee[1]) / 2], oe = [(Q[0] + me[0]) / 2, (Q[1] + me[1]) / 2];
37457
+ W = w(W, Math.sqrt(ge / he)), U = [(ae[0] + ee[0]) / 2, (ae[1] + ee[1]) / 2], oe = [(Q[0] + me[0]) / 2, (Q[1] + me[1]) / 2];
37457
37458
  } else if (A.touch0)
37458
37459
  U = A.touch0[0], oe = A.touch0[1];
37459
37460
  else
37460
37461
  return;
37461
- A.zoom("touch", n(w(W, U, oe), A.extent, a));
37462
+ A.zoom("touch", n(S(W, U, oe), A.extent, a));
37462
37463
  }
37463
37464
  }
37464
37465
  function V(E, ...P) {
@@ -37679,7 +37680,7 @@ function mx({ sourceX: e, sourceY: t, sourcePosition: n = Le.Bottom, targetX: r,
37679
37680
  ];
37680
37681
  }
37681
37682
  const xf = zt(({ sourceX: e, sourceY: t, targetX: n, targetY: r, sourcePosition: o = Le.Bottom, targetPosition: i = Le.Top, label: a, labelStyle: l, labelShowBg: c, labelBgStyle: u, labelBgPadding: d, labelBgBorderRadius: h, style: f, markerEnd: p, markerStart: g, interactionWidth: m }) => {
37682
- const [b, y, S] = mx({
37683
+ const [b, y, w] = mx({
37683
37684
  sourceX: e,
37684
37685
  sourceY: t,
37685
37686
  sourcePosition: o,
@@ -37687,7 +37688,7 @@ const xf = zt(({ sourceX: e, sourceY: t, targetX: n, targetY: r, sourcePosition:
37687
37688
  targetY: r,
37688
37689
  targetPosition: i
37689
37690
  });
37690
- return s(Ka, { path: b, labelX: y, labelY: S, label: a, labelStyle: l, labelShowBg: c, labelBgStyle: u, labelBgPadding: d, labelBgBorderRadius: h, style: f, markerEnd: p, markerStart: g, interactionWidth: m });
37691
+ return s(Ka, { path: b, labelX: y, labelY: w, label: a, labelStyle: l, labelShowBg: c, labelBgStyle: u, labelBgPadding: d, labelBgBorderRadius: h, style: f, markerEnd: p, markerStart: g, interactionWidth: m });
37691
37692
  });
37692
37693
  xf.displayName = "SimpleBezierEdge";
37693
37694
  const Mg = {
@@ -37703,7 +37704,7 @@ function VK({ source: e, sourcePosition: t = Le.Bottom, target: n, targetPositio
37703
37704
  target: u
37704
37705
  }), h = d.x !== 0 ? "x" : "y", f = d[h];
37705
37706
  let p = [], g, m;
37706
- const [b, y, S, w] = px({
37707
+ const [b, y, w, S] = px({
37707
37708
  sourceX: e.x,
37708
37709
  sourceY: e.y,
37709
37710
  targetX: n.x,
@@ -37727,7 +37728,7 @@ function VK({ source: e, sourcePosition: t = Le.Bottom, target: n, targetPositio
37727
37728
  }
37728
37729
  g = p[0].x, m = p[0].y;
37729
37730
  }
37730
- return [[e, c, ...p, u, n], g, m, S, w];
37731
+ return [[e, c, ...p, u, n], g, m, w, S];
37731
37732
  }
37732
37733
  function zK(e, t, n, r) {
37733
37734
  const o = Math.min(Og(e, t) / 2, Og(t, n) / 2, r), { x: i, y: a } = t;
@@ -37749,13 +37750,13 @@ function Ru({ sourceX: e, sourceY: t, sourcePosition: n = Le.Bottom, targetX: r,
37749
37750
  center: { x: l, y: c },
37750
37751
  offset: u
37751
37752
  });
37752
- return [d.reduce((b, y, S) => {
37753
- let w = "";
37754
- return S > 0 && S < d.length - 1 ? w = zK(d[S - 1], y, d[S + 1], a) : w = `${S === 0 ? "M" : "L"}${y.x} ${y.y}`, b += w, b;
37753
+ return [d.reduce((b, y, w) => {
37754
+ let S = "";
37755
+ return w > 0 && w < d.length - 1 ? S = zK(d[w - 1], y, d[w + 1], a) : S = `${w === 0 ? "M" : "L"}${y.x} ${y.y}`, b += S, b;
37755
37756
  }, ""), h, f, p, g];
37756
37757
  }
37757
37758
  const Hl = zt(({ sourceX: e, sourceY: t, targetX: n, targetY: r, label: o, labelStyle: i, labelShowBg: a, labelBgStyle: l, labelBgPadding: c, labelBgBorderRadius: u, style: d, sourcePosition: h = Le.Bottom, targetPosition: f = Le.Top, markerEnd: p, markerStart: g, pathOptions: m, interactionWidth: b }) => {
37758
- const [y, S, w] = Ru({
37759
+ const [y, w, S] = Ru({
37759
37760
  sourceX: e,
37760
37761
  sourceY: t,
37761
37762
  sourcePosition: h,
@@ -37765,7 +37766,7 @@ const Hl = zt(({ sourceX: e, sourceY: t, targetX: n, targetY: r, label: o, label
37765
37766
  borderRadius: m == null ? void 0 : m.borderRadius,
37766
37767
  offset: m == null ? void 0 : m.offset
37767
37768
  });
37768
- return s(Ka, { path: y, labelX: S, labelY: w, label: o, labelStyle: i, labelShowBg: a, labelBgStyle: l, labelBgPadding: c, labelBgBorderRadius: u, style: d, markerEnd: p, markerStart: g, interactionWidth: b });
37769
+ return s(Ka, { path: y, labelX: w, labelY: S, label: o, labelStyle: i, labelShowBg: a, labelBgStyle: l, labelBgPadding: c, labelBgBorderRadius: u, style: d, markerEnd: p, markerStart: g, interactionWidth: b });
37769
37770
  });
37770
37771
  Hl.displayName = "SmoothStepEdge";
37771
37772
  const wf = zt((e) => {
@@ -37839,7 +37840,7 @@ function vx({ sourceX: e, sourceY: t, sourcePosition: n = Le.Bottom, targetX: r,
37839
37840
  ];
37840
37841
  }
37841
37842
  const el = zt(({ sourceX: e, sourceY: t, targetX: n, targetY: r, sourcePosition: o = Le.Bottom, targetPosition: i = Le.Top, label: a, labelStyle: l, labelShowBg: c, labelBgStyle: u, labelBgPadding: d, labelBgBorderRadius: h, style: f, markerEnd: p, markerStart: g, pathOptions: m, interactionWidth: b }) => {
37842
- const [y, S, w] = vx({
37843
+ const [y, w, S] = vx({
37843
37844
  sourceX: e,
37844
37845
  sourceY: t,
37845
37846
  sourcePosition: o,
@@ -37848,7 +37849,7 @@ const el = zt(({ sourceX: e, sourceY: t, targetX: n, targetY: r, sourcePosition:
37848
37849
  targetPosition: i,
37849
37850
  curvature: m == null ? void 0 : m.curvature
37850
37851
  });
37851
- return s(Ka, { path: y, labelX: S, labelY: w, label: a, labelStyle: l, labelShowBg: c, labelBgStyle: u, labelBgPadding: d, labelBgBorderRadius: h, style: f, markerEnd: p, markerStart: g, interactionWidth: b });
37852
+ return s(Ka, { path: y, labelX: w, labelY: S, label: a, labelStyle: l, labelShowBg: c, labelBgStyle: u, labelBgPadding: d, labelBgBorderRadius: h, style: f, markerEnd: p, markerStart: g, interactionWidth: b });
37852
37853
  });
37853
37854
  el.displayName = "BezierEdge";
37854
37855
  const _f = Lo(null), HK = _f.Provider;
@@ -37924,8 +37925,8 @@ const BK = () => xn(_f), jK = (e) => "id" in e && "source" in e && "target" in e
37924
37925
  y: m.y,
37925
37926
  width: h || 0,
37926
37927
  height: f || 0
37927
- }, y = Mu(c, b), S = typeof h > "u" || typeof f > "u" || h === null || f === null, w = i && y > 0, x = (h || 0) * (f || 0);
37928
- (S || w || y >= x || d.dragging) && u.push(d);
37928
+ }, y = Mu(c, b), w = typeof h > "u" || typeof f > "u" || h === null || f === null, S = i && y > 0, x = (h || 0) * (f || 0);
37929
+ (w || S || y >= x || d.dragging) && u.push(d);
37929
37930
  }), u;
37930
37931
  }, xx = (e, t) => {
37931
37932
  const n = e.map((r) => r.id);
@@ -37961,13 +37962,13 @@ function Sx(e, t, n, r, o, i, a, l) {
37961
37962
  connection: YK
37962
37963
  };
37963
37964
  if (p) {
37964
- const m = _x(void 0, p), b = p.getAttribute("data-nodeid"), y = p.getAttribute("data-handleid"), S = {
37965
+ const m = _x(void 0, p), b = p.getAttribute("data-nodeid"), y = p.getAttribute("data-handleid"), w = {
37965
37966
  source: c ? b : r,
37966
37967
  sourceHandle: c ? y : o,
37967
37968
  target: c ? r : b,
37968
37969
  targetHandle: c ? o : y
37969
37970
  };
37970
- g.connection = S, (n === No.Strict ? c && m === "source" || !c && m === "target" : b !== r || y !== o) && (g.isValid = a(S));
37971
+ g.connection = w, (n === No.Strict ? c && m === "source" || !c && m === "target" : b !== r || y !== o) && (g.isValid = a(w));
37971
37972
  }
37972
37973
  return g;
37973
37974
  }
@@ -37992,8 +37993,8 @@ function QK(e, t) {
37992
37993
  return t ? n = "valid" : e && !t && (n = "invalid"), n;
37993
37994
  }
37994
37995
  function Cx({ event: e, handleId: t, nodeId: n, onConnect: r, isTarget: o, getState: i, setState: a, isValidConnection: l, edgeUpdaterType: c, onEdgeUpdateEnd: u }) {
37995
- const d = cx(e.target), { connectionMode: h, domNode: f, autoPanOnConnect: p, connectionRadius: g, onConnectStart: m, panBy: b, getNodes: y, cancelConnection: S } = i();
37996
- let w = 0, x;
37996
+ const d = cx(e.target), { connectionMode: h, domNode: f, autoPanOnConnect: p, connectionRadius: g, onConnectStart: m, panBy: b, getNodes: y, cancelConnection: w } = i();
37997
+ let S = 0, x;
37997
37998
  const { x: _, y: k } = ao(e), O = d == null ? void 0 : d.elementFromPoint(_, k), I = _x(c, O), H = f == null ? void 0 : f.getBoundingClientRect();
37998
37999
  if (!H || !I)
37999
38000
  return;
@@ -38007,7 +38008,7 @@ function Cx({ event: e, handleId: t, nodeId: n, onConnect: r, isTarget: o, getSt
38007
38008
  if (!p)
38008
38009
  return;
38009
38010
  const [j, W] = lx(T, H);
38010
- b({ x: j, y: W }), w = requestAnimationFrame(A);
38011
+ b({ x: j, y: W }), S = requestAnimationFrame(A);
38011
38012
  };
38012
38013
  a({
38013
38014
  connectionPosition: T,
@@ -38032,7 +38033,7 @@ function Cx({ event: e, handleId: t, nodeId: n, onConnect: r, isTarget: o, getSt
38032
38033
  }
38033
38034
  function B(j) {
38034
38035
  var W, U;
38035
- V && E && x && (r == null || r(V)), (U = (W = i()).onConnectEnd) == null || U.call(W, j), c && (u == null || u(j)), Ec(D), S(), cancelAnimationFrame(w), $ = !1, E = !1, V = null, x = null, d.removeEventListener("mousemove", M), d.removeEventListener("mouseup", B), d.removeEventListener("touchmove", M), d.removeEventListener("touchend", B);
38036
+ V && E && x && (r == null || r(V)), (U = (W = i()).onConnectEnd) == null || U.call(W, j), c && (u == null || u(j)), Ec(D), w(), cancelAnimationFrame(S), $ = !1, E = !1, V = null, x = null, d.removeEventListener("mousemove", M), d.removeEventListener("mouseup", B), d.removeEventListener("touchmove", M), d.removeEventListener("touchend", B);
38036
38037
  }
38037
38038
  d.addEventListener("mousemove", M), d.addEventListener("mouseup", B), d.addEventListener("touchmove", M), d.addEventListener("touchend", B);
38038
38039
  }
@@ -38045,7 +38046,7 @@ const ZK = () => !0, JK = (e) => ({
38045
38046
  const f = vn(), p = BK();
38046
38047
  if (!p)
38047
38048
  return (O = (k = f.getState()).onError) == null || O.call(k, "010", vr["010"]()), null;
38048
- const { connectionStartHandle: g, connectOnClick: m, noPanClassName: b } = Wt(JK, kn), y = o || null, S = e === "target", w = (I) => {
38049
+ const { connectionStartHandle: g, connectOnClick: m, noPanClassName: b } = Wt(JK, kn), y = o || null, w = e === "target", S = (I) => {
38049
38050
  const { defaultEdgeOptions: H, onConnect: D, hasDefaultEdges: T } = f.getState(), $ = {
38050
38051
  ...H,
38051
38052
  ...I
@@ -38061,8 +38062,8 @@ const ZK = () => !0, JK = (e) => ({
38061
38062
  event: I,
38062
38063
  handleId: y,
38063
38064
  nodeId: p,
38064
- onConnect: w,
38065
- isTarget: S,
38065
+ onConnect: S,
38066
+ isTarget: w,
38066
38067
  getState: f.getState,
38067
38068
  setState: f.setState,
38068
38069
  isValidConnection: n
@@ -38078,7 +38079,7 @@ const ZK = () => !0, JK = (e) => ({
38078
38079
  id: y,
38079
38080
  type: e
38080
38081
  }, T, g.nodeId, g.handleId || null, g.type, n, $);
38081
- E && w(V), D == null || D(I), f.setState({ connectionStartHandle: null });
38082
+ E && S(V), D == null || D(I), f.setState({ connectionStartHandle: null });
38082
38083
  };
38083
38084
  return s("div", { "data-handleid": y, "data-nodeid": p, "data-handlepos": t, "data-id": `${p}-${y}-${e}`, className: Sn([
38084
38085
  "react-flow__handle",
@@ -38087,8 +38088,8 @@ const ZK = () => !0, JK = (e) => ({
38087
38088
  b,
38088
38089
  l,
38089
38090
  {
38090
- source: !S,
38091
- target: S,
38091
+ source: !w,
38092
+ target: w,
38092
38093
  connectable: r,
38093
38094
  connecting: (g == null ? void 0 : g.nodeId) === p && (g == null ? void 0 : g.handleId) === y && (g == null ? void 0 : g.type) === e
38094
38095
  }
@@ -38148,14 +38149,14 @@ function gt(e, t, n) {
38148
38149
  typeof t < "u" && n({ [e]: t });
38149
38150
  }, [t]);
38150
38151
  }
38151
- const iW = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: o, onConnectStart: i, onConnectEnd: a, onClickConnectStart: l, onClickConnectEnd: c, nodesDraggable: u, nodesConnectable: d, nodesFocusable: h, edgesFocusable: f, elevateNodesOnSelect: p, minZoom: g, maxZoom: m, nodeExtent: b, onNodesChange: y, onEdgesChange: S, elementsSelectable: w, connectionMode: x, snapGrid: _, snapToGrid: k, translateExtent: O, connectOnClick: I, defaultEdgeOptions: H, fitView: D, fitViewOptions: T, onNodesDelete: $, onEdgesDelete: V, onNodeDrag: E, onNodeDragStart: P, onNodeDragStop: A, onSelectionDrag: M, onSelectionDragStart: B, onSelectionDragStop: j, noPanClassName: W, nodeOrigin: U, rfId: oe, autoPanOnConnect: ae, autoPanOnNodeDrag: Q, onError: ee, connectionRadius: me }) => {
38152
+ const iW = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: o, onConnectStart: i, onConnectEnd: a, onClickConnectStart: l, onClickConnectEnd: c, nodesDraggable: u, nodesConnectable: d, nodesFocusable: h, edgesFocusable: f, elevateNodesOnSelect: p, minZoom: g, maxZoom: m, nodeExtent: b, onNodesChange: y, onEdgesChange: w, elementsSelectable: S, connectionMode: x, snapGrid: _, snapToGrid: k, translateExtent: O, connectOnClick: I, defaultEdgeOptions: H, fitView: D, fitViewOptions: T, onNodesDelete: $, onEdgesDelete: V, onNodeDrag: E, onNodeDragStart: P, onNodeDragStop: A, onSelectionDrag: M, onSelectionDragStart: B, onSelectionDragStop: j, noPanClassName: W, nodeOrigin: U, rfId: oe, autoPanOnConnect: ae, autoPanOnNodeDrag: Q, onError: ee, connectionRadius: me }) => {
38152
38153
  const { setNodes: ge, setEdges: he, setDefaultNodesAndEdges: de, setMinZoom: Oe, setMaxZoom: Te, setTranslateExtent: Z, setNodeExtent: se, reset: Re } = Wt(oW, kn), X = vn();
38153
38154
  return ue(() => {
38154
38155
  const Me = r == null ? void 0 : r.map((we) => ({ ...we, ...H }));
38155
38156
  return de(n, Me), () => {
38156
38157
  Re();
38157
38158
  };
38158
- }, []), 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", h, X.setState), gt("edgesFocusable", f, X.setState), gt("elementsSelectable", w, X.setState), gt("elevateNodesOnSelect", p, X.setState), gt("snapToGrid", k, X.setState), gt("snapGrid", _, X.setState), gt("onNodesChange", y, X.setState), gt("onEdgesChange", S, X.setState), gt("connectOnClick", I, X.setState), gt("fitViewOnInit", D, X.setState), gt("fitViewOnInitOptions", T, X.setState), gt("onNodesDelete", $, X.setState), gt("onEdgesDelete", V, X.setState), gt("onNodeDrag", E, X.setState), gt("onNodeDragStart", P, X.setState), gt("onNodeDragStop", A, X.setState), gt("onSelectionDrag", M, X.setState), gt("onSelectionDragStart", B, X.setState), gt("onSelectionDragStop", j, X.setState), gt("noPanClassName", W, X.setState), gt("nodeOrigin", U, X.setState), gt("rfId", oe, X.setState), gt("autoPanOnConnect", ae, X.setState), gt("autoPanOnNodeDrag", Q, X.setState), gt("onError", ee, X.setState), gt("connectionRadius", me, X.setState), Bo(e, ge), Bo(t, he), Bo(g, Oe), Bo(m, Te), Bo(O, Z), Bo(b, se), null;
38159
+ }, []), 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", h, X.setState), gt("edgesFocusable", f, X.setState), gt("elementsSelectable", S, X.setState), gt("elevateNodesOnSelect", p, X.setState), gt("snapToGrid", k, X.setState), gt("snapGrid", _, X.setState), gt("onNodesChange", y, X.setState), gt("onEdgesChange", w, X.setState), gt("connectOnClick", I, X.setState), gt("fitViewOnInit", D, X.setState), gt("fitViewOnInitOptions", T, X.setState), gt("onNodesDelete", $, X.setState), gt("onEdgesDelete", V, X.setState), gt("onNodeDrag", E, X.setState), gt("onNodeDragStart", P, X.setState), gt("onNodeDragStop", A, X.setState), gt("onSelectionDrag", M, X.setState), gt("onSelectionDragStart", B, X.setState), gt("onSelectionDragStop", j, X.setState), gt("noPanClassName", W, X.setState), gt("nodeOrigin", U, X.setState), gt("rfId", oe, X.setState), gt("autoPanOnConnect", ae, X.setState), gt("autoPanOnNodeDrag", Q, X.setState), gt("onError", ee, X.setState), gt("connectionRadius", me, X.setState), Bo(e, ge), Bo(t, he), Bo(g, Oe), Bo(m, Te), Bo(O, Z), Bo(b, se), null;
38159
38160
  }, Ag = { display: "none" }, aW = {
38160
38161
  position: "absolute",
38161
38162
  width: 1,
@@ -38176,7 +38177,7 @@ function uW({ rfId: e, disableKeyboardA11y: t }) {
38176
38177
  }
38177
38178
  const dW = (e, t, n) => n === Le.Left ? e - t : n === Le.Right ? e + t : e, fW = (e, t, n) => n === Le.Top ? e - t : n === Le.Bottom ? e + t : e, $g = "react-flow__edgeupdater", Pg = ({ 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([$g, `${$g}-${l}`]), cx: dW(t, r, e), cy: fW(n, r, e), r, stroke: "transparent", fill: "transparent" });
38178
38179
  var jo = (e) => {
38179
- const t = ({ id: n, className: r, type: o, data: i, onClick: a, onEdgeDoubleClick: l, selected: c, animated: u, label: d, labelStyle: h, labelShowBg: f, labelBgStyle: p, labelBgPadding: g, labelBgBorderRadius: m, style: b, source: y, target: S, sourceX: w, sourceY: x, targetX: _, targetY: k, sourcePosition: O, targetPosition: I, elementsSelectable: H, hidden: D, sourceHandleId: T, targetHandleId: $, onContextMenu: V, onMouseEnter: E, onMouseMove: P, onMouseLeave: A, edgeUpdaterRadius: M, onEdgeUpdate: B, onEdgeUpdateStart: j, onEdgeUpdateEnd: W, markerEnd: U, markerStart: oe, rfId: ae, ariaLabel: Q, isFocusable: ee, pathOptions: me, interactionWidth: ge }) => {
38180
+ const t = ({ id: n, className: r, type: o, data: i, onClick: a, onEdgeDoubleClick: l, selected: c, animated: u, label: d, labelStyle: h, labelShowBg: f, labelBgStyle: p, labelBgPadding: g, labelBgBorderRadius: m, style: b, source: y, target: w, sourceX: S, sourceY: x, targetX: _, targetY: k, sourcePosition: O, targetPosition: I, elementsSelectable: H, hidden: D, sourceHandleId: T, targetHandleId: $, onContextMenu: V, onMouseEnter: E, onMouseMove: P, onMouseLeave: A, edgeUpdaterRadius: M, onEdgeUpdate: B, onEdgeUpdateStart: j, onEdgeUpdateEnd: W, markerEnd: U, markerStart: oe, rfId: ae, ariaLabel: Q, isFocusable: ee, pathOptions: me, interactionWidth: ge }) => {
38180
38181
  const he = Ee(null), [de, Oe] = Ve(!1), [Te, Z] = Ve(!1), se = vn(), Re = Y(() => `url(#${Du(oe, ae)})`, [oe, ae]), X = Y(() => `url(#${Du(U, ae)})`, [U, ae]);
38181
38182
  if (D)
38182
38183
  return null;
@@ -38187,7 +38188,7 @@ var jo = (e) => {
38187
38188
  a(tt, je);
38188
38189
  }
38189
38190
  }, we = Fi(n, se.getState, l), Ae = Fi(n, se.getState, V), Ie = Fi(n, se.getState, E), xe = Fi(n, se.getState, P), et = Fi(n, se.getState, A), Be = (tt, yt) => {
38190
- const De = yt ? S : y, je = (yt ? $ : T) || null, ct = yt ? "target" : "source", Bt = () => !0, bt = yt, Gt = se.getState().edges.find((qt) => qt.id === n);
38191
+ const De = yt ? w : y, je = (yt ? $ : T) || null, ct = yt ? "target" : "source", Bt = () => !0, bt = yt, Gt = se.getState().edges.find((qt) => qt.id === n);
38191
38192
  Z(!0), j == null || j(tt, Gt, ct);
38192
38193
  const St = (qt) => {
38193
38194
  Z(!1), W == null || W(qt, Gt, ct);
@@ -38216,7 +38217,7 @@ var jo = (e) => {
38216
38217
  `react-flow__edge-${o}`,
38217
38218
  r,
38218
38219
  { selected: c, animated: u, inactive: qe, updating: de }
38219
- ]), onClick: Me, onDoubleClick: we, onContextMenu: Ae, onMouseEnter: Ie, onMouseMove: xe, onMouseLeave: et, onKeyDown: ee ? pt : void 0, tabIndex: ee ? 0 : void 0, role: ee ? "button" : void 0, "data-testid": `rf__edge-${n}`, "aria-label": Q === null ? void 0 : Q || `Edge from ${y} to ${S}`, "aria-describedby": ee ? `${$x}-${ae}` : void 0, ref: he, children: [!Te && s(e, { id: n, source: y, target: S, selected: c, animated: u, label: d, labelStyle: h, labelShowBg: f, labelBgStyle: p, labelBgPadding: g, labelBgBorderRadius: m, data: i, style: b, sourceX: w, sourceY: x, targetX: _, targetY: k, sourcePosition: O, targetPosition: I, sourceHandleId: T, targetHandleId: $, markerStart: Re, markerEnd: X, pathOptions: me, interactionWidth: ge }), wt && v(ke, { children: [s(Pg, { position: O, centerX: w, centerY: x, radius: M, onMouseDown: at, onMouseEnter: Xe, onMouseOut: We, type: "source" }), s(Pg, { position: I, centerX: _, centerY: k, radius: M, onMouseDown: $e, onMouseEnter: Xe, onMouseOut: We, type: "target" })] })] });
38220
+ ]), onClick: Me, onDoubleClick: we, onContextMenu: Ae, onMouseEnter: Ie, onMouseMove: xe, onMouseLeave: et, onKeyDown: ee ? pt : void 0, tabIndex: ee ? 0 : void 0, role: ee ? "button" : void 0, "data-testid": `rf__edge-${n}`, "aria-label": Q === null ? void 0 : Q || `Edge from ${y} to ${w}`, "aria-describedby": ee ? `${$x}-${ae}` : void 0, ref: he, children: [!Te && s(e, { id: n, source: y, target: w, selected: c, animated: u, label: d, labelStyle: h, labelShowBg: f, labelBgStyle: p, labelBgPadding: g, labelBgBorderRadius: m, data: i, style: b, sourceX: S, sourceY: x, targetX: _, targetY: k, sourcePosition: O, targetPosition: I, sourceHandleId: T, targetHandleId: $, markerStart: Re, markerEnd: X, pathOptions: me, interactionWidth: ge }), wt && v(ke, { children: [s(Pg, { position: O, centerX: S, centerY: x, radius: M, onMouseDown: at, onMouseEnter: Xe, onMouseOut: We, type: "source" }), s(Pg, { position: I, centerX: _, centerY: k, radius: M, onMouseDown: $e, onMouseEnter: Xe, onMouseOut: We, type: "target" })] })] });
38220
38221
  };
38221
38222
  return t.displayName = "EdgeWrapper", zt(t);
38222
38223
  };
@@ -38432,7 +38433,7 @@ function Ix({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
38432
38433
  const l = vn(), [c, u] = Ve(!1), d = Ee([]), h = Ee({ x: null, y: null }), f = Ee(0), p = Ee(null), g = Ee({ x: 0, y: 0 }), m = Ee(null), b = Ee(!1), y = vW();
38433
38434
  return ue(() => {
38434
38435
  if (e != null && e.current) {
38435
- const S = Un(e.current), w = ({ x: _, y: k }) => {
38436
+ const w = Un(e.current), S = ({ x: _, y: k }) => {
38436
38437
  const { nodeInternals: O, onNodeDrag: I, onSelectionDrag: H, updateNodePositions: D, nodeExtent: T, snapGrid: $, snapToGrid: V, nodeOrigin: E, onError: P } = l.getState();
38437
38438
  h.current = { x: _, y: k };
38438
38439
  let A = !1;
@@ -38460,12 +38461,12 @@ function Ix({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
38460
38461
  const [_, k] = lx(g.current, p.current);
38461
38462
  if (_ !== 0 || k !== 0) {
38462
38463
  const { transform: H, panBy: D } = l.getState();
38463
- h.current.x = ((O = h.current.x) != null ? O : 0) - _ / H[2], h.current.y = ((I = h.current.y) != null ? I : 0) - k / H[2], w(h.current), D({ x: _, y: k });
38464
+ h.current.x = ((O = h.current.x) != null ? O : 0) - _ / H[2], h.current.y = ((I = h.current.y) != null ? I : 0) - k / H[2], S(h.current), D({ x: _, y: k });
38464
38465
  }
38465
38466
  f.current = requestAnimationFrame(x);
38466
38467
  };
38467
38468
  if (t)
38468
- S.on(".drag", null);
38469
+ w.on(".drag", null);
38469
38470
  else {
38470
38471
  const _ = zj().on("start", (k) => {
38471
38472
  var A;
@@ -38486,7 +38487,7 @@ function Ix({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
38486
38487
  p.current = (H == null ? void 0 : H.getBoundingClientRect()) || null, g.current = ao(k.sourceEvent, p.current);
38487
38488
  }).on("drag", (k) => {
38488
38489
  const O = y(k), { autoPanOnNodeDrag: I } = l.getState();
38489
- !b.current && I && (b.current = !0, x()), (h.current.x !== O.xSnapped || h.current.y !== O.ySnapped) && d.current && (m.current = k.sourceEvent, g.current = ao(k.sourceEvent, p.current), w(O));
38490
+ !b.current && I && (b.current = !0, x()), (h.current.x !== O.xSnapped || h.current.y !== O.ySnapped) && d.current && (m.current = k.sourceEvent, g.current = ao(k.sourceEvent, p.current), S(O));
38490
38491
  }).on("end", (k) => {
38491
38492
  if (u(!1), b.current = !1, cancelAnimationFrame(f.current), d.current) {
38492
38493
  const { updateNodePositions: O, nodeInternals: I, onNodeDragStop: H, onSelectionDragStop: D } = l.getState(), T = o ? H : Tc(D);
@@ -38503,8 +38504,8 @@ function Ix({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
38503
38504
  const O = k.target;
38504
38505
  return !k.button && (!n || !Vg(O, `.${n}`, e)) && (!r || Vg(O, r, e));
38505
38506
  });
38506
- return S.call(_), () => {
38507
- S.on(".drag", null);
38507
+ return w.call(_), () => {
38508
+ w.on(".drag", null);
38508
38509
  };
38509
38510
  }
38510
38511
  }
@@ -38523,14 +38524,14 @@ function Ix({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
38523
38524
  function Lx() {
38524
38525
  const e = vn();
38525
38526
  return dt((n) => {
38526
- const { nodeInternals: r, nodeExtent: o, updateNodePositions: i, getNodes: a, snapToGrid: l, snapGrid: c, onError: u, nodesDraggable: d } = e.getState(), h = a().filter((S) => S.selected && (S.draggable || d && typeof S.draggable > "u")), f = l ? c[0] : 5, p = l ? c[1] : 5, g = n.isShiftPressed ? 4 : 1, m = n.x * f * g, b = n.y * p * g, y = h.map((S) => {
38527
- if (S.positionAbsolute) {
38528
- const w = { x: S.positionAbsolute.x + m, y: S.positionAbsolute.y + b };
38529
- l && (w.x = c[0] * Math.round(w.x / c[0]), w.y = c[1] * Math.round(w.y / c[1]));
38530
- const { positionAbsolute: x, position: _ } = Nx(S, w, r, o, void 0, u);
38531
- S.position = _, S.positionAbsolute = x;
38532
- }
38533
- return S;
38527
+ const { nodeInternals: r, nodeExtent: o, updateNodePositions: i, getNodes: a, snapToGrid: l, snapGrid: c, onError: u, nodesDraggable: d } = e.getState(), h = a().filter((w) => w.selected && (w.draggable || d && typeof w.draggable > "u")), f = l ? c[0] : 5, p = l ? c[1] : 5, g = n.isShiftPressed ? 4 : 1, m = n.x * f * g, b = n.y * p * g, y = h.map((w) => {
38528
+ if (w.positionAbsolute) {
38529
+ const S = { x: w.positionAbsolute.x + m, y: w.positionAbsolute.y + b };
38530
+ l && (S.x = c[0] * Math.round(S.x / c[0]), S.y = c[1] * Math.round(S.y / c[1]));
38531
+ const { positionAbsolute: x, position: _ } = Nx(w, S, r, o, void 0, u);
38532
+ w.position = _, w.positionAbsolute = x;
38533
+ }
38534
+ return w;
38534
38535
  });
38535
38536
  i(y, !0, !1);
38536
38537
  }, []);
@@ -38542,9 +38543,9 @@ const ii = {
38542
38543
  ArrowRight: { x: 1, y: 0 }
38543
38544
  };
38544
38545
  var Bi = (e) => {
38545
- const t = ({ id: n, type: r, data: o, xPos: i, yPos: a, xPosOrigin: l, yPosOrigin: c, selected: u, onClick: d, onMouseEnter: h, onMouseMove: f, onMouseLeave: p, onContextMenu: g, onDoubleClick: m, style: b, className: y, isDraggable: S, isSelectable: w, isConnectable: x, isFocusable: _, selectNodesOnDrag: k, sourcePosition: O, targetPosition: I, hidden: H, resizeObserver: D, dragHandle: T, zIndex: $, isParent: V, noDragClassName: E, noPanClassName: P, initialized: A, disableKeyboardA11y: M, ariaLabel: B, rfId: j }) => {
38546
- const W = vn(), U = Ee(null), oe = Ee(O), ae = Ee(I), Q = Ee(r), ee = w || S || d || h || f || p, me = Lx(), ge = Hi(n, W.getState, h), he = Hi(n, W.getState, f), de = Hi(n, W.getState, p), Oe = Hi(n, W.getState, g), Te = Hi(n, W.getState, m), Z = (X) => {
38547
- if (w && (!k || !S) && $u({
38546
+ const t = ({ id: n, type: r, data: o, xPos: i, yPos: a, xPosOrigin: l, yPosOrigin: c, selected: u, onClick: d, onMouseEnter: h, onMouseMove: f, onMouseLeave: p, onContextMenu: g, onDoubleClick: m, style: b, className: y, isDraggable: w, isSelectable: S, isConnectable: x, isFocusable: _, selectNodesOnDrag: k, sourcePosition: O, targetPosition: I, hidden: H, resizeObserver: D, dragHandle: T, zIndex: $, isParent: V, noDragClassName: E, noPanClassName: P, initialized: A, disableKeyboardA11y: M, ariaLabel: B, rfId: j }) => {
38547
+ const W = vn(), U = Ee(null), oe = Ee(O), ae = Ee(I), Q = Ee(r), ee = S || w || d || h || f || p, me = Lx(), ge = Hi(n, W.getState, h), he = Hi(n, W.getState, f), de = Hi(n, W.getState, p), Oe = Hi(n, W.getState, g), Te = Hi(n, W.getState, m), Z = (X) => {
38548
+ if (S && (!k || !w) && $u({
38548
38549
  id: n,
38549
38550
  store: W
38550
38551
  }), d) {
@@ -38554,7 +38555,7 @@ var Bi = (e) => {
38554
38555
  }, se = (X) => {
38555
38556
  var Me;
38556
38557
  if (!Ou(X))
38557
- if (fx.includes(X.key) && w) {
38558
+ if (fx.includes(X.key) && S) {
38558
38559
  const we = X.key === "Escape";
38559
38560
  we && ((Me = U.current) == null || Me.blur()), $u({
38560
38561
  id: n,
@@ -38562,7 +38563,7 @@ var Bi = (e) => {
38562
38563
  unselect: we
38563
38564
  });
38564
38565
  } else
38565
- !M && S && u && Object.prototype.hasOwnProperty.call(ii, X.key) && (W.setState({
38566
+ !M && w && u && Object.prototype.hasOwnProperty.call(ii, X.key) && (W.setState({
38566
38567
  ariaLiveMessage: `Moved selected node ${X.key.replace("Arrow", "").toLowerCase()}. New position, x: ${~~i}, y: ${~~a}`
38567
38568
  }), me({
38568
38569
  x: ii[X.key].x,
@@ -38581,23 +38582,23 @@ var Bi = (e) => {
38581
38582
  }, [n, r, O, I]);
38582
38583
  const Re = Ix({
38583
38584
  nodeRef: U,
38584
- disabled: H || !S,
38585
+ disabled: H || !w,
38585
38586
  noDragClassName: E,
38586
38587
  handleSelector: T,
38587
38588
  nodeId: n,
38588
- isSelectable: w,
38589
+ isSelectable: S,
38589
38590
  selectNodesOnDrag: k
38590
38591
  });
38591
38592
  return H ? null : s("div", { className: Sn([
38592
38593
  "react-flow__node",
38593
38594
  `react-flow__node-${r}`,
38594
38595
  {
38595
- [P]: S
38596
+ [P]: w
38596
38597
  },
38597
38598
  y,
38598
38599
  {
38599
38600
  selected: u,
38600
- selectable: w,
38601
+ selectable: S,
38601
38602
  parent: V,
38602
38603
  dragging: Re
38603
38604
  }
@@ -38720,7 +38721,7 @@ function Fx(e, t = {}) {
38720
38721
  if ((t.initial && !u && d || !t.initial) && l && c) {
38721
38722
  const m = n().filter((y) => t.includeHiddenNodes ? y.width && y.height : !y.hidden), b = m.every((y) => y.width && y.height);
38722
38723
  if (m.length > 0 && b) {
38723
- const y = Cf(m, h), [S, w, x] = wx(y, r, o, (f = t.minZoom) != null ? f : i, (p = t.maxZoom) != null ? p : a, (g = t.padding) != null ? g : 0.1), _ = Ir.translate(S, w).scale(x);
38724
+ const y = Cf(m, h), [w, S, x] = wx(y, r, o, (f = t.minZoom) != null ? f : i, (p = t.maxZoom) != null ? p : a, (g = t.padding) != null ? g : 0.1), _ = Ir.translate(w, S).scale(x);
38724
38725
  return typeof t.duration == "number" && t.duration > 0 ? l.transform(So(c, t.duration), _) : l.transform(c, _), !0;
38725
38726
  }
38726
38727
  }
@@ -38803,58 +38804,58 @@ function kf() {
38803
38804
  const { edges: b = [] } = t.getState();
38804
38805
  return b.find((y) => y.id === m);
38805
38806
  }, []), a = dt((m) => {
38806
- const { getNodes: b, setNodes: y, hasDefaultNodes: S, onNodesChange: w } = t.getState(), x = b(), _ = typeof m == "function" ? m(x) : m;
38807
- if (S)
38807
+ const { getNodes: b, setNodes: y, hasDefaultNodes: w, onNodesChange: S } = t.getState(), x = b(), _ = typeof m == "function" ? m(x) : m;
38808
+ if (w)
38808
38809
  y(_);
38809
- else if (w) {
38810
+ else if (S) {
38810
38811
  const k = _.length === 0 ? x.map((O) => ({ type: "remove", id: O.id })) : _.map((O) => ({ item: O, type: "reset" }));
38811
- w(k);
38812
+ S(k);
38812
38813
  }
38813
38814
  }, []), l = dt((m) => {
38814
- const { edges: b = [], setEdges: y, hasDefaultEdges: S, onEdgesChange: w } = t.getState(), x = typeof m == "function" ? m(b) : m;
38815
- if (S)
38815
+ const { edges: b = [], setEdges: y, hasDefaultEdges: w, onEdgesChange: S } = t.getState(), x = typeof m == "function" ? m(b) : m;
38816
+ if (w)
38816
38817
  y(x);
38817
- else if (w) {
38818
+ else if (S) {
38818
38819
  const _ = x.length === 0 ? b.map((k) => ({ type: "remove", id: k.id })) : x.map((k) => ({ item: k, type: "reset" }));
38819
- w(_);
38820
+ S(_);
38820
38821
  }
38821
38822
  }, []), c = dt((m) => {
38822
- const b = Array.isArray(m) ? m : [m], { getNodes: y, setNodes: S, hasDefaultNodes: w, onNodesChange: x } = t.getState();
38823
- if (w) {
38823
+ const b = Array.isArray(m) ? m : [m], { getNodes: y, setNodes: w, hasDefaultNodes: S, onNodesChange: x } = t.getState();
38824
+ if (S) {
38824
38825
  const k = [...y(), ...b];
38825
- S(k);
38826
+ w(k);
38826
38827
  } else if (x) {
38827
38828
  const _ = b.map((k) => ({ item: k, type: "add" }));
38828
38829
  x(_);
38829
38830
  }
38830
38831
  }, []), u = dt((m) => {
38831
- const b = Array.isArray(m) ? m : [m], { edges: y = [], setEdges: S, hasDefaultEdges: w, onEdgesChange: x } = t.getState();
38832
- if (w)
38833
- S([...y, ...b]);
38832
+ const b = Array.isArray(m) ? m : [m], { edges: y = [], setEdges: w, hasDefaultEdges: S, onEdgesChange: x } = t.getState();
38833
+ if (S)
38834
+ w([...y, ...b]);
38834
38835
  else if (x) {
38835
38836
  const _ = b.map((k) => ({ item: k, type: "add" }));
38836
38837
  x(_);
38837
38838
  }
38838
38839
  }, []), d = dt(() => {
38839
- const { getNodes: m, edges: b = [], transform: y } = t.getState(), [S, w, x] = y;
38840
+ const { getNodes: m, edges: b = [], transform: y } = t.getState(), [w, S, x] = y;
38840
38841
  return {
38841
38842
  nodes: m().map((_) => ({ ..._ })),
38842
38843
  edges: b.map((_) => ({ ..._ })),
38843
38844
  viewport: {
38844
- x: S,
38845
- y: w,
38845
+ x: w,
38846
+ y: S,
38846
38847
  zoom: x
38847
38848
  }
38848
38849
  };
38849
38850
  }, []), h = dt(({ nodes: m, edges: b }) => {
38850
- const { nodeInternals: y, getNodes: S, edges: w, hasDefaultNodes: x, hasDefaultEdges: _, onNodesDelete: k, onEdgesDelete: O, onNodesChange: I, onEdgesChange: H } = t.getState(), D = (m || []).map((P) => P.id), T = (b || []).map((P) => P.id), $ = S().reduce((P, A) => {
38851
+ const { nodeInternals: y, getNodes: w, edges: S, hasDefaultNodes: x, hasDefaultEdges: _, onNodesDelete: k, onEdgesDelete: O, onNodesChange: I, onEdgesChange: H } = t.getState(), D = (m || []).map((P) => P.id), T = (b || []).map((P) => P.id), $ = w().reduce((P, A) => {
38851
38852
  const M = !D.includes(A.id) && A.parentNode && P.find((j) => j.id === A.parentNode);
38852
38853
  return (typeof A.deletable == "boolean" ? A.deletable : !0) && (D.includes(A.id) || M) && P.push(A), P;
38853
- }, []), V = w.filter((P) => typeof P.deletable == "boolean" ? P.deletable : !0), E = V.filter((P) => T.includes(P.id));
38854
+ }, []), V = S.filter((P) => typeof P.deletable == "boolean" ? P.deletable : !0), E = V.filter((P) => T.includes(P.id));
38854
38855
  if ($ || E) {
38855
38856
  const P = xx($, V), A = [...E, ...P], M = A.reduce((B, j) => (B.includes(j.id) || B.push(j.id), B), []);
38856
38857
  if ((_ || x) && (_ && t.setState({
38857
- edges: w.filter((B) => !M.includes(B.id))
38858
+ edges: S.filter((B) => !M.includes(B.id))
38858
38859
  }), x && ($.forEach((B) => {
38859
38860
  y.delete(B.id);
38860
38861
  }), t.setState({
@@ -38871,19 +38872,19 @@ function kf() {
38871
38872
  const b = NK(m), y = b ? null : t.getState().nodeInternals.get(m.id);
38872
38873
  return [b ? m : kg(y), y, b];
38873
38874
  }, []), p = dt((m, b = !0, y) => {
38874
- const [S, w, x] = f(m);
38875
- return S ? (y || t.getState().getNodes()).filter((_) => {
38876
- if (!x && (_.id === w.id || !_.positionAbsolute))
38875
+ const [w, S, x] = f(m);
38876
+ return w ? (y || t.getState().getNodes()).filter((_) => {
38877
+ if (!x && (_.id === S.id || !_.positionAbsolute))
38877
38878
  return !1;
38878
- const k = kg(_), O = Mu(k, S);
38879
+ const k = kg(_), O = Mu(k, w);
38879
38880
  return b && O > 0 || O >= m.width * m.height;
38880
38881
  }) : [];
38881
38882
  }, []), g = dt((m, b, y = !0) => {
38882
- const [S] = f(m);
38883
- if (!S)
38883
+ const [w] = f(m);
38884
+ if (!w)
38884
38885
  return !1;
38885
- const w = Mu(S, b);
38886
- return y && w > 0 || w >= m.width * m.height;
38886
+ const S = Mu(w, b);
38887
+ return y && S > 0 || S >= m.width * m.height;
38887
38888
  }, []);
38888
38889
  return Y(() => ({
38889
38890
  ...e,
@@ -38957,7 +38958,7 @@ const Tf = {
38957
38958
  d3Selection: e.d3Selection,
38958
38959
  d3ZoomHandler: e.d3ZoomHandler,
38959
38960
  userSelectionActive: e.userSelectionActive
38960
- }), RW = ({ onMove: e, onMoveStart: t, onMoveEnd: n, onPaneContextMenu: r, zoomOnScroll: o = !0, zoomOnPinch: i = !0, panOnScroll: a = !1, panOnScrollSpeed: l = 0.5, panOnScrollMode: c = oi.Free, zoomOnDoubleClick: u = !0, elementsSelectable: d, panOnDrag: h = !0, defaultViewport: f, translateExtent: p, minZoom: g, maxZoom: m, zoomActivationKeyCode: b, preventScrolling: y = !0, children: S, noWheelClassName: w, noPanClassName: x }) => {
38961
+ }), RW = ({ onMove: e, onMoveStart: t, onMoveEnd: n, onPaneContextMenu: r, zoomOnScroll: o = !0, zoomOnPinch: i = !0, panOnScroll: a = !1, panOnScrollSpeed: l = 0.5, panOnScrollMode: c = oi.Free, zoomOnDoubleClick: u = !0, elementsSelectable: d, panOnDrag: h = !0, defaultViewport: f, translateExtent: p, minZoom: g, maxZoom: m, zoomActivationKeyCode: b, preventScrolling: y = !0, children: w, noWheelClassName: S, noPanClassName: x }) => {
38961
38962
  const _ = Ee(), k = vn(), O = Ee(!1), I = Ee(!1), H = Ee(null), D = Ee({ x: 0, y: 0, zoom: 0 }), { d3Zoom: T, d3Selection: $, d3ZoomHandler: V, userSelectionActive: E } = Wt(OW, kn), P = xa(b), A = Ee(0);
38962
38963
  return TW(H), ue(() => {
38963
38964
  if (H.current) {
@@ -38975,7 +38976,7 @@ const Tf = {
38975
38976
  }
38976
38977
  }, []), ue(() => {
38977
38978
  $ && T && (a && !P && !E ? $.on("wheel.zoom", (M) => {
38978
- if (Ko(M, w))
38979
+ if (Ko(M, S))
38979
38980
  return !1;
38980
38981
  M.preventDefault(), M.stopImmediatePropagation();
38981
38982
  const B = $.property("__zoom").k || 1;
@@ -38987,7 +38988,7 @@ const Tf = {
38987
38988
  const j = M.deltaMode === 1 ? 20 : 1, W = c === oi.Vertical ? 0 : M.deltaX * j, U = c === oi.Horizontal ? 0 : M.deltaY * j;
38988
38989
  T.translateBy($, -(W / B) * l, -(U / B) * l);
38989
38990
  }) : typeof V < "u" && $.on("wheel.zoom", function(M, B) {
38990
- if (!y || Ko(M, w))
38991
+ if (!y || Ko(M, S))
38991
38992
  return null;
38992
38993
  M.preventDefault(), V.call(this, M, B);
38993
38994
  }));
@@ -39001,7 +39002,7 @@ const Tf = {
39001
39002
  P,
39002
39003
  i,
39003
39004
  y,
39004
- w
39005
+ S
39005
39006
  ]), ue(() => {
39006
39007
  T && T.on("start", (M) => {
39007
39008
  var j;
@@ -39041,7 +39042,7 @@ const Tf = {
39041
39042
  const B = P || o, j = i && M.ctrlKey;
39042
39043
  if (M.button === 1 && M.type === "mousedown" && (Ko(M, "react-flow__node") || Ko(M, "react-flow__edge")))
39043
39044
  return !0;
39044
- if (!h && !B && !a && !u && !i || E || !u && M.type === "dblclick" || Ko(M, w) && M.type === "wheel" || Ko(M, x) && M.type !== "wheel" || !i && M.ctrlKey && M.type === "wheel" || !B && !a && !j && M.type === "wheel" || !h && (M.type === "mousedown" || M.type === "touchstart") || Array.isArray(h) && !h.includes(M.button) && (M.type === "mousedown" || M.type === "touchstart"))
39045
+ if (!h && !B && !a && !u && !i || E || !u && M.type === "dblclick" || Ko(M, S) && M.type === "wheel" || Ko(M, x) && M.type !== "wheel" || !i && M.ctrlKey && M.type === "wheel" || !B && !a && !j && M.type === "wheel" || !h && (M.type === "mousedown" || M.type === "touchstart") || Array.isArray(h) && !h.includes(M.button) && (M.type === "mousedown" || M.type === "touchstart"))
39045
39046
  return !1;
39046
39047
  const W = Array.isArray(h) && h.includes(M.button) || !M.button || M.button <= 1;
39047
39048
  return (!M.ctrlKey || M.type === "wheel") && W;
@@ -39056,7 +39057,7 @@ const Tf = {
39056
39057
  h,
39057
39058
  d,
39058
39059
  P
39059
- ]), s("div", { className: "react-flow__renderer", ref: H, style: Tf, children: S });
39060
+ ]), s("div", { className: "react-flow__renderer", ref: H, style: Tf, children: w });
39060
39061
  }, DW = (e) => ({
39061
39062
  userSelectionActive: e.userSelectionActive,
39062
39063
  userSelectionRect: e.userSelectionRect
@@ -39138,7 +39139,7 @@ const Rc = (e, t) => (n) => {
39138
39139
  elementsSelectable: e.elementsSelectable,
39139
39140
  dragging: e.paneDragging
39140
39141
  }), Hx = zt(({ isSelecting: e, selectionMode: t = ba.Full, panOnDrag: n, onSelectionStart: r, onSelectionEnd: o, onPaneClick: i, onPaneContextMenu: a, onPaneScroll: l, onPaneMouseEnter: c, onPaneMouseMove: u, onPaneMouseLeave: d, children: h }) => {
39141
- const f = Ee(null), p = vn(), g = Ee(0), m = Ee(0), b = Ee(), { userSelectionActive: y, elementsSelectable: S, dragging: w } = Wt(NW, kn), x = () => {
39142
+ const f = Ee(null), p = vn(), g = Ee(0), m = Ee(0), b = Ee(), { userSelectionActive: y, elementsSelectable: w, dragging: S } = Wt(NW, kn), x = () => {
39142
39143
  p.setState({ userSelectionActive: !1, userSelectionRect: null }), g.current = 0, m.current = 0;
39143
39144
  }, _ = (V) => {
39144
39145
  i == null || i(V), p.getState().resetSelectedElements(), p.setState({ nodesSelectionActive: !1 });
@@ -39150,7 +39151,7 @@ const Rc = (e, t) => (n) => {
39150
39151
  a == null || a(V);
39151
39152
  }, O = l ? (V) => l(V) : void 0, I = (V) => {
39152
39153
  const { resetSelectedElements: E, domNode: P } = p.getState();
39153
- if (b.current = P == null ? void 0 : P.getBoundingClientRect(), !S || !e || V.button !== 0 || V.target !== f.current || !b.current)
39154
+ if (b.current = P == null ? void 0 : P.getBoundingClientRect(), !w || !e || V.button !== 0 || V.target !== f.current || !b.current)
39154
39155
  return;
39155
39156
  const { x: A, y: M } = ao(V, b.current);
39156
39157
  E(), p.setState({
@@ -39196,8 +39197,8 @@ const Rc = (e, t) => (n) => {
39196
39197
  !y && E && V.target === f.current && (_ == null || _(V)), p.setState({ nodesSelectionActive: g.current > 0 }), x(), o == null || o(V);
39197
39198
  }, T = (V) => {
39198
39199
  y && (p.setState({ nodesSelectionActive: g.current > 0 }), o == null || o(V)), x();
39199
- }, $ = S && (e || y);
39200
- return v("div", { className: Sn(["react-flow__pane", { dragging: w, selection: e }]), onClick: $ ? void 0 : Rc(_, f), onContextMenu: Rc(k, f), onWheel: Rc(O, f), onMouseEnter: $ ? void 0 : c, onMouseDown: $ ? I : void 0, onMouseMove: $ ? H : u, onMouseUp: $ ? D : void 0, onMouseLeave: $ ? T : d, ref: f, style: Tf, children: [h, s(AW, {})] });
39200
+ }, $ = w && (e || y);
39201
+ return v("div", { className: Sn(["react-flow__pane", { dragging: S, selection: e }]), onClick: $ ? void 0 : Rc(_, f), onContextMenu: Rc(k, f), onWheel: Rc(O, f), onMouseEnter: $ ? void 0 : c, onMouseDown: $ ? I : void 0, onMouseMove: $ ? H : u, onMouseUp: $ ? D : void 0, onMouseLeave: $ ? T : d, ref: f, style: Tf, children: [h, s(AW, {})] });
39201
39202
  });
39202
39203
  Hx.displayName = "Pane";
39203
39204
  const IW = (e) => {
@@ -39239,9 +39240,9 @@ function LW({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y:
39239
39240
  } }) });
39240
39241
  }
39241
39242
  var VW = zt(LW);
39242
- const zW = (e) => e.nodesSelectionActive, Bx = ({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: a, deleteKeyCode: l, onMove: c, onMoveStart: u, onMoveEnd: d, selectionKeyCode: h, selectionOnDrag: f, selectionMode: p, onSelectionStart: g, onSelectionEnd: m, multiSelectionKeyCode: b, panActivationKeyCode: y, zoomActivationKeyCode: S, elementsSelectable: w, zoomOnScroll: x, zoomOnPinch: _, panOnScroll: k, panOnScrollSpeed: O, panOnScrollMode: I, zoomOnDoubleClick: H, panOnDrag: D, defaultViewport: T, translateExtent: $, minZoom: V, maxZoom: E, preventScrolling: P, onSelectionContextMenu: A, noWheelClassName: M, noPanClassName: B, disableKeyboardA11y: j }) => {
39243
+ const zW = (e) => e.nodesSelectionActive, Bx = ({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: a, deleteKeyCode: l, onMove: c, onMoveStart: u, onMoveEnd: d, selectionKeyCode: h, selectionOnDrag: f, selectionMode: p, onSelectionStart: g, onSelectionEnd: m, multiSelectionKeyCode: b, panActivationKeyCode: y, zoomActivationKeyCode: w, elementsSelectable: S, zoomOnScroll: x, zoomOnPinch: _, panOnScroll: k, panOnScrollSpeed: O, panOnScrollMode: I, zoomOnDoubleClick: H, panOnDrag: D, defaultViewport: T, translateExtent: $, minZoom: V, maxZoom: E, preventScrolling: P, onSelectionContextMenu: A, noWheelClassName: M, noPanClassName: B, disableKeyboardA11y: j }) => {
39243
39244
  const W = Wt(zW), U = xa(h), ae = xa(y) || D, Q = U || f && ae !== !0;
39244
- return kW({ deleteKeyCode: l, multiSelectionKeyCode: b }), s(RW, { onMove: c, onMoveStart: u, onMoveEnd: d, onPaneContextMenu: i, elementsSelectable: w, zoomOnScroll: x, zoomOnPinch: _, panOnScroll: k, panOnScrollSpeed: O, panOnScrollMode: I, zoomOnDoubleClick: H, panOnDrag: !U && ae, defaultViewport: T, translateExtent: $, minZoom: V, maxZoom: E, zoomActivationKeyCode: S, preventScrolling: P, noWheelClassName: M, noPanClassName: B, children: v(Hx, { onSelectionStart: g, onSelectionEnd: m, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: a, panOnDrag: ae, isSelecting: !!Q, selectionMode: p, children: [e, W && s(VW, { onSelectionContextMenu: A, noPanClassName: B, disableKeyboardA11y: j })] }) });
39245
+ return kW({ deleteKeyCode: l, multiSelectionKeyCode: b }), s(RW, { onMove: c, onMoveStart: u, onMoveEnd: d, onPaneContextMenu: i, elementsSelectable: S, zoomOnScroll: x, zoomOnPinch: _, panOnScroll: k, panOnScrollSpeed: O, panOnScrollMode: I, zoomOnDoubleClick: H, panOnDrag: !U && ae, defaultViewport: T, translateExtent: $, minZoom: V, maxZoom: E, zoomActivationKeyCode: w, preventScrolling: P, noWheelClassName: M, noPanClassName: B, children: v(Hx, { onSelectionStart: g, onSelectionEnd: m, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: a, panOnDrag: ae, isSelecting: !!Q, selectionMode: p, children: [e, W && s(VW, { onSelectionContextMenu: A, noPanClassName: B, disableKeyboardA11y: j })] }) });
39245
39246
  };
39246
39247
  Bx.displayName = "FlowRenderer";
39247
39248
  var FW = zt(Bx);
@@ -39276,14 +39277,14 @@ const BW = (e) => ({
39276
39277
  var _, k, O, I, H, D, T;
39277
39278
  let h = d.type || "default";
39278
39279
  e.nodeTypes[h] || (a == null || a("003", vr["003"](h)), h = "default");
39279
- const f = e.nodeTypes[h] || 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 ? yf(d.positionAbsolute, e.nodeExtent) : d.positionAbsolute, S = (_ = y == null ? void 0 : y.x) != null ? _ : 0, w = (k = y == null ? void 0 : y.y) != null ? k : 0, x = bW({
39280
- x: S,
39281
- y: w,
39280
+ const f = e.nodeTypes[h] || 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 ? yf(d.positionAbsolute, e.nodeExtent) : d.positionAbsolute, w = (_ = y == null ? void 0 : y.x) != null ? _ : 0, S = (k = y == null ? void 0 : y.y) != null ? k : 0, x = bW({
39281
+ x: w,
39282
+ y: S,
39282
39283
  width: (O = d.width) != null ? O : 0,
39283
39284
  height: (I = d.height) != null ? I : 0,
39284
39285
  origin: e.nodeOrigin
39285
39286
  });
39286
- return s(f, { id: d.id, className: d.className, style: d.style, type: h, data: d.data, sourcePosition: d.sourcePosition || Le.Bottom, targetPosition: d.targetPosition || Le.Top, hidden: d.hidden, xPos: S, yPos: w, xPosOrigin: x.x, yPosOrigin: x.y, selectNodesOnDrag: e.selectNodesOnDrag, onClick: e.onNodeClick, onMouseEnter: e.onNodeMouseEnter, onMouseMove: e.onNodeMouseMove, onMouseLeave: e.onNodeMouseLeave, onContextMenu: e.onNodeContextMenu, onDoubleClick: e.onNodeDoubleClick, selected: !!d.selected, isDraggable: p, isSelectable: g, isConnectable: m, isFocusable: b, resizeObserver: u, dragHandle: d.dragHandle, zIndex: (D = (H = d[dn]) == null ? void 0 : H.z) != null ? D : 0, isParent: !!((T = d[dn]) != null && T.isParent), noDragClassName: e.noDragClassName, noPanClassName: e.noPanClassName, initialized: !!d.width && !!d.height, rfId: e.rfId, disableKeyboardA11y: e.disableKeyboardA11y, ariaLabel: d.ariaLabel }, d.id);
39287
+ return s(f, { id: d.id, className: d.className, style: d.style, type: h, data: d.data, sourcePosition: d.sourcePosition || Le.Bottom, targetPosition: d.targetPosition || Le.Top, hidden: d.hidden, xPos: w, yPos: S, xPosOrigin: x.x, yPosOrigin: x.y, selectNodesOnDrag: e.selectNodesOnDrag, onClick: e.onNodeClick, onMouseEnter: e.onNodeMouseEnter, onMouseMove: e.onNodeMouseMove, onMouseLeave: e.onNodeMouseLeave, onContextMenu: e.onNodeContextMenu, onDoubleClick: e.onNodeDoubleClick, selected: !!d.selected, isDraggable: p, isSelectable: g, isConnectable: m, isFocusable: b, resizeObserver: u, dragHandle: d.dragHandle, zIndex: (D = (H = d[dn]) == null ? void 0 : H.z) != null ? D : 0, isParent: !!((T = d[dn]) != null && T.isParent), noDragClassName: e.noDragClassName, noPanClassName: e.noPanClassName, initialized: !!d.width && !!d.height, rfId: e.rfId, disableKeyboardA11y: e.disableKeyboardA11y, ariaLabel: d.ariaLabel }, d.id);
39287
39288
  }) });
39288
39289
  };
39289
39290
  jx.displayName = "NodeRenderer";
@@ -39364,8 +39365,8 @@ const JW = (e) => ({
39364
39365
  nodeInternals: e.nodeInternals,
39365
39366
  onError: e.onError
39366
39367
  }), Wx = ({ defaultMarkerColor: e, onlyRenderVisibleElements: t, elevateEdgesOnSelect: n, rfId: r, edgeTypes: o, noPanClassName: i, onEdgeUpdate: a, onEdgeContextMenu: l, onEdgeMouseEnter: c, onEdgeMouseMove: u, onEdgeMouseLeave: d, onEdgeClick: h, edgeUpdaterRadius: f, onEdgeDoubleClick: p, onEdgeUpdateStart: g, onEdgeUpdateEnd: m, children: b }) => {
39367
- const { edgesFocusable: y, elementsSelectable: S, width: w, height: x, connectionMode: _, nodeInternals: k, onError: O } = Wt(JW, kn), I = GW(t, k, n);
39368
- return w ? v(ke, { children: [I.map(({ level: H, edges: D, isMaxLevel: T }) => v("svg", { style: { zIndex: H }, width: w, height: x, className: "react-flow__edges react-flow__container", children: [T && s(ZW, { defaultColor: e, rfId: r }), s("g", { children: D.map(($) => {
39368
+ const { edgesFocusable: y, elementsSelectable: w, width: S, height: x, connectionMode: _, nodeInternals: k, onError: O } = Wt(JW, kn), I = GW(t, k, n);
39369
+ return S ? v(ke, { children: [I.map(({ level: H, edges: D, isMaxLevel: T }) => v("svg", { style: { zIndex: H }, width: S, height: x, className: "react-flow__edges react-flow__container", children: [T && s(ZW, { defaultColor: e, rfId: r }), s("g", { children: D.map(($) => {
39369
39370
  var Te, Z;
39370
39371
  const [V, E, P] = Lg(k.get($.source)), [A, M, B] = Lg(k.get($.target));
39371
39372
  if (!P || !B)
@@ -39376,7 +39377,7 @@ const JW = (e) => ({
39376
39377
  if (!oe || !ae)
39377
39378
  return O == null || O("008", vr["008"](oe, $)), null;
39378
39379
  const { sourceX: ge, sourceY: he, targetX: de, targetY: Oe } = pW(V, oe, Q, A, ae, ee);
39379
- return s(W, { id: $.id, className: Sn([$.className, i]), type: j, data: $.data, selected: !!$.selected, animated: !!$.animated, hidden: !!$.hidden, label: $.label, labelStyle: $.labelStyle, labelShowBg: $.labelShowBg, labelBgStyle: $.labelBgStyle, labelBgPadding: $.labelBgPadding, labelBgBorderRadius: $.labelBgBorderRadius, style: $.style, source: $.source, target: $.target, sourceHandleId: $.sourceHandle, targetHandleId: $.targetHandle, markerEnd: $.markerEnd, markerStart: $.markerStart, sourceX: ge, sourceY: he, targetX: de, targetY: Oe, sourcePosition: Q, targetPosition: ee, elementsSelectable: S, onEdgeUpdate: a, onContextMenu: l, onMouseEnter: c, onMouseMove: u, onMouseLeave: d, onClick: h, edgeUpdaterRadius: f, onEdgeDoubleClick: p, onEdgeUpdateStart: g, onEdgeUpdateEnd: m, rfId: r, ariaLabel: $.ariaLabel, isFocusable: me, pathOptions: "pathOptions" in $ ? $.pathOptions : void 0, interactionWidth: $.interactionWidth }, $.id);
39380
+ return s(W, { id: $.id, className: Sn([$.className, i]), type: j, data: $.data, selected: !!$.selected, animated: !!$.animated, hidden: !!$.hidden, label: $.label, labelStyle: $.labelStyle, labelShowBg: $.labelShowBg, labelBgStyle: $.labelBgStyle, labelBgPadding: $.labelBgPadding, labelBgBorderRadius: $.labelBgBorderRadius, style: $.style, source: $.source, target: $.target, sourceHandleId: $.sourceHandle, targetHandleId: $.targetHandle, markerEnd: $.markerEnd, markerStart: $.markerStart, sourceX: ge, sourceY: he, targetX: de, targetY: Oe, sourcePosition: Q, targetPosition: ee, elementsSelectable: w, onEdgeUpdate: a, onContextMenu: l, onMouseEnter: c, onMouseMove: u, onMouseLeave: d, onClick: h, edgeUpdaterRadius: f, onEdgeDoubleClick: p, onEdgeUpdateStart: g, onEdgeUpdateEnd: m, rfId: r, ariaLabel: $.ariaLabel, isFocusable: me, pathOptions: "pathOptions" in $ ? $.pathOptions : void 0, interactionWidth: $.interactionWidth }, $.id);
39380
39381
  }) })] }, H)), b] }) : null;
39381
39382
  };
39382
39383
  Wx.displayName = "EdgeRenderer";
@@ -39409,19 +39410,19 @@ const oG = {
39409
39410
  let f = h == null ? void 0 : h[t];
39410
39411
  if (d === No.Loose && (f = f || (h == null ? void 0 : h[t === "source" ? "target" : "source"])), !a || !f)
39411
39412
  return null;
39412
- const p = l ? f.find((V) => V.id === l) : f[0], g = p ? p.x + p.width / 2 : ((O = a.width) != null ? O : 0) / 2, m = p ? p.y + p.height / 2 : (I = a.height) != null ? I : 0, b = ((D = (H = a.positionAbsolute) == null ? void 0 : H.x) != null ? D : 0) + g, y = (($ = (T = a.positionAbsolute) == null ? void 0 : T.y) != null ? $ : 0) + m, S = p == null ? void 0 : p.position, w = S ? oG[S] : null;
39413
- if (!S || !w)
39413
+ const p = l ? f.find((V) => V.id === l) : f[0], g = p ? p.x + p.width / 2 : ((O = a.width) != null ? O : 0) / 2, m = p ? p.y + p.height / 2 : (I = a.height) != null ? I : 0, b = ((D = (H = a.positionAbsolute) == null ? void 0 : H.x) != null ? D : 0) + g, y = (($ = (T = a.positionAbsolute) == null ? void 0 : T.y) != null ? $ : 0) + m, w = p == null ? void 0 : p.position, S = w ? oG[w] : null;
39414
+ if (!w || !S)
39414
39415
  return null;
39415
39416
  if (o)
39416
- return s(o, { connectionLineType: r, connectionLineStyle: n, fromNode: a, fromHandle: p, fromX: b, fromY: y, toX: c, toY: u, fromPosition: S, toPosition: w, connectionStatus: i });
39417
+ return s(o, { connectionLineType: r, connectionLineStyle: n, fromNode: a, fromHandle: p, fromX: b, fromY: y, toX: c, toY: u, fromPosition: w, toPosition: S, connectionStatus: i });
39417
39418
  let x = "";
39418
39419
  const _ = {
39419
39420
  sourceX: b,
39420
39421
  sourceY: y,
39421
- sourcePosition: S,
39422
+ sourcePosition: w,
39422
39423
  targetX: c,
39423
39424
  targetY: u,
39424
- targetPosition: w
39425
+ targetPosition: S
39425
39426
  };
39426
39427
  return r === to.Bezier ? [x] = vx(_) : r === to.Step ? [x] = Ru({
39427
39428
  ..._,
@@ -39441,7 +39442,7 @@ function aG({ containerStyle: e, style: t, type: n, component: r }) {
39441
39442
  const { nodeId: o, handleType: i, nodesConnectable: a, width: l, height: c, connectionStatus: u } = Wt(iG, kn);
39442
39443
  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(Gx, { nodeId: o, handleType: i, style: t, type: n, CustomComponent: r, connectionStatus: u }) }) });
39443
39444
  }
39444
- const qx = ({ nodeTypes: e, edgeTypes: t, onMove: n, onMoveStart: r, onMoveEnd: o, onInit: i, onNodeClick: a, onEdgeClick: l, onNodeDoubleClick: c, onEdgeDoubleClick: u, onNodeMouseEnter: d, onNodeMouseMove: h, onNodeMouseLeave: f, onNodeContextMenu: p, onSelectionContextMenu: g, onSelectionStart: m, onSelectionEnd: b, connectionLineType: y, connectionLineStyle: S, connectionLineComponent: w, connectionLineContainerStyle: x, selectionKeyCode: _, selectionOnDrag: k, selectionMode: O, multiSelectionKeyCode: I, panActivationKeyCode: H, zoomActivationKeyCode: D, deleteKeyCode: T, onlyRenderVisibleElements: $, elementsSelectable: V, selectNodesOnDrag: E, defaultViewport: P, translateExtent: A, minZoom: M, maxZoom: B, preventScrolling: j, defaultMarkerColor: W, zoomOnScroll: U, zoomOnPinch: oe, panOnScroll: ae, panOnScrollSpeed: Q, panOnScrollMode: ee, zoomOnDoubleClick: me, panOnDrag: ge, onPaneClick: he, onPaneMouseEnter: de, onPaneMouseMove: Oe, onPaneMouseLeave: Te, onPaneScroll: Z, onPaneContextMenu: se, onEdgeUpdate: Re, onEdgeContextMenu: X, onEdgeMouseEnter: Me, onEdgeMouseMove: we, onEdgeMouseLeave: Ae, edgeUpdaterRadius: Ie, onEdgeUpdateStart: xe, onEdgeUpdateEnd: et, noDragClassName: Be, noWheelClassName: at, noPanClassName: $e, elevateEdgesOnSelect: Xe, disableKeyboardA11y: We, nodeOrigin: qe, nodeExtent: wt, rfId: pt }) => (rG(i), s(FW, { onPaneClick: he, onPaneMouseEnter: de, onPaneMouseMove: Oe, onPaneMouseLeave: Te, onPaneContextMenu: se, onPaneScroll: Z, deleteKeyCode: T, selectionKeyCode: _, selectionOnDrag: k, selectionMode: O, onSelectionStart: m, onSelectionEnd: b, multiSelectionKeyCode: I, panActivationKeyCode: H, zoomActivationKeyCode: D, elementsSelectable: V, onMove: n, onMoveStart: r, onMoveEnd: o, zoomOnScroll: U, zoomOnPinch: oe, zoomOnDoubleClick: me, panOnScroll: ae, panOnScrollSpeed: Q, panOnScrollMode: ee, panOnDrag: ge, defaultViewport: P, translateExtent: A, minZoom: M, maxZoom: B, onSelectionContextMenu: g, preventScrolling: j, noDragClassName: Be, noWheelClassName: at, noPanClassName: $e, disableKeyboardA11y: We, children: v(nG, { children: [s(eG, { edgeTypes: t, onEdgeClick: l, onEdgeDoubleClick: u, onEdgeUpdate: Re, onlyRenderVisibleElements: $, onEdgeContextMenu: X, onEdgeMouseEnter: Me, onEdgeMouseMove: we, onEdgeMouseLeave: Ae, onEdgeUpdateStart: xe, onEdgeUpdateEnd: et, edgeUpdaterRadius: Ie, defaultMarkerColor: W, noPanClassName: $e, elevateEdgesOnSelect: !!Xe, disableKeyboardA11y: We, rfId: pt, children: s(aG, { style: S, type: y, component: w, containerStyle: x }) }), s("div", { className: "react-flow__edgelabel-renderer" }), s(jW, { nodeTypes: e, onNodeClick: a, onNodeDoubleClick: c, onNodeMouseEnter: d, onNodeMouseMove: h, onNodeMouseLeave: f, onNodeContextMenu: p, selectNodesOnDrag: E, onlyRenderVisibleElements: $, noPanClassName: $e, noDragClassName: Be, disableKeyboardA11y: We, nodeOrigin: qe, nodeExtent: wt, rfId: pt })] }) }));
39445
+ const qx = ({ nodeTypes: e, edgeTypes: t, onMove: n, onMoveStart: r, onMoveEnd: o, onInit: i, onNodeClick: a, onEdgeClick: l, onNodeDoubleClick: c, onEdgeDoubleClick: u, onNodeMouseEnter: d, onNodeMouseMove: h, onNodeMouseLeave: f, onNodeContextMenu: p, onSelectionContextMenu: g, onSelectionStart: m, onSelectionEnd: b, connectionLineType: y, connectionLineStyle: w, connectionLineComponent: S, connectionLineContainerStyle: x, selectionKeyCode: _, selectionOnDrag: k, selectionMode: O, multiSelectionKeyCode: I, panActivationKeyCode: H, zoomActivationKeyCode: D, deleteKeyCode: T, onlyRenderVisibleElements: $, elementsSelectable: V, selectNodesOnDrag: E, defaultViewport: P, translateExtent: A, minZoom: M, maxZoom: B, preventScrolling: j, defaultMarkerColor: W, zoomOnScroll: U, zoomOnPinch: oe, panOnScroll: ae, panOnScrollSpeed: Q, panOnScrollMode: ee, zoomOnDoubleClick: me, panOnDrag: ge, onPaneClick: he, onPaneMouseEnter: de, onPaneMouseMove: Oe, onPaneMouseLeave: Te, onPaneScroll: Z, onPaneContextMenu: se, onEdgeUpdate: Re, onEdgeContextMenu: X, onEdgeMouseEnter: Me, onEdgeMouseMove: we, onEdgeMouseLeave: Ae, edgeUpdaterRadius: Ie, onEdgeUpdateStart: xe, onEdgeUpdateEnd: et, noDragClassName: Be, noWheelClassName: at, noPanClassName: $e, elevateEdgesOnSelect: Xe, disableKeyboardA11y: We, nodeOrigin: qe, nodeExtent: wt, rfId: pt }) => (rG(i), s(FW, { onPaneClick: he, onPaneMouseEnter: de, onPaneMouseMove: Oe, onPaneMouseLeave: Te, onPaneContextMenu: se, onPaneScroll: Z, deleteKeyCode: T, selectionKeyCode: _, selectionOnDrag: k, selectionMode: O, onSelectionStart: m, onSelectionEnd: b, multiSelectionKeyCode: I, panActivationKeyCode: H, zoomActivationKeyCode: D, elementsSelectable: V, onMove: n, onMoveStart: r, onMoveEnd: o, zoomOnScroll: U, zoomOnPinch: oe, zoomOnDoubleClick: me, panOnScroll: ae, panOnScrollSpeed: Q, panOnScrollMode: ee, panOnDrag: ge, defaultViewport: P, translateExtent: A, minZoom: M, maxZoom: B, onSelectionContextMenu: g, preventScrolling: j, noDragClassName: Be, noWheelClassName: at, noPanClassName: $e, disableKeyboardA11y: We, children: v(nG, { children: [s(eG, { edgeTypes: t, onEdgeClick: l, onEdgeDoubleClick: u, onEdgeUpdate: Re, onlyRenderVisibleElements: $, onEdgeContextMenu: X, onEdgeMouseEnter: Me, onEdgeMouseMove: we, onEdgeMouseLeave: Ae, onEdgeUpdateStart: xe, onEdgeUpdateEnd: et, edgeUpdaterRadius: Ie, defaultMarkerColor: W, noPanClassName: $e, elevateEdgesOnSelect: !!Xe, disableKeyboardA11y: We, rfId: pt, children: s(aG, { style: w, type: y, component: S, containerStyle: x }) }), s("div", { className: "react-flow__edgelabel-renderer" }), s(jW, { nodeTypes: e, onNodeClick: a, onNodeDoubleClick: c, onNodeMouseEnter: d, onNodeMouseMove: h, onNodeMouseLeave: f, onNodeContextMenu: p, selectNodesOnDrag: E, onlyRenderVisibleElements: $, noPanClassName: $e, noDragClassName: Be, disableKeyboardA11y: We, nodeOrigin: qe, nodeExtent: wt, rfId: pt })] }) }));
39445
39446
  qx.displayName = "GraphView";
39446
39447
  var sG = zt(qx);
39447
39448
  const Pu = [
@@ -39519,8 +39520,8 @@ const Pu = [
39519
39520
  const h = window.getComputedStyle(d), { m22: f } = new window.DOMMatrixReadOnly(h.transform), p = n.reduce((m, b) => {
39520
39521
  const y = o.get(b.id);
39521
39522
  if (y) {
39522
- const S = vf(b.nodeElement);
39523
- !!(S.width && S.height && (y.width !== S.width || y.height !== S.height || b.forceUpdate)) && (o.set(y.id, {
39523
+ const w = vf(b.nodeElement);
39524
+ !!(w.width && w.height && (y.width !== w.width || y.height !== w.height || b.forceUpdate)) && (o.set(y.id, {
39524
39525
  ...y,
39525
39526
  [dn]: {
39526
39527
  ...y[dn],
@@ -39529,11 +39530,11 @@ const Pu = [
39529
39530
  target: zg(".target", b.nodeElement, f, u)
39530
39531
  }
39531
39532
  },
39532
- ...S
39533
+ ...w
39533
39534
  }), m.push({
39534
39535
  id: y.id,
39535
39536
  type: "dimensions",
39536
- dimensions: S
39537
+ dimensions: w
39537
39538
  }));
39538
39539
  }
39539
39540
  return m;
@@ -39673,9 +39674,9 @@ const cG = {
39673
39674
  overflow: "hidden",
39674
39675
  position: "relative",
39675
39676
  zIndex: 0
39676
- }, Xx = Ht(({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: o, nodeTypes: i = cG, edgeTypes: a = uG, onNodeClick: l, onEdgeClick: c, onInit: u, onMove: d, onMoveStart: h, onMoveEnd: f, onConnect: p, onConnectStart: g, onConnectEnd: m, onClickConnectStart: b, onClickConnectEnd: y, onNodeMouseEnter: S, onNodeMouseMove: w, onNodeMouseLeave: x, onNodeContextMenu: _, onNodeDoubleClick: k, onNodeDragStart: O, onNodeDrag: I, onNodeDragStop: H, onNodesDelete: D, onEdgesDelete: T, onSelectionChange: $, onSelectionDragStart: V, onSelectionDrag: E, onSelectionDragStop: P, onSelectionContextMenu: A, onSelectionStart: M, onSelectionEnd: B, connectionMode: j = No.Strict, connectionLineType: W = to.Bezier, connectionLineStyle: U, connectionLineComponent: oe, connectionLineContainerStyle: ae, deleteKeyCode: Q = "Backspace", selectionKeyCode: ee = "Shift", selectionOnDrag: me = !1, selectionMode: ge = ba.Full, panActivationKeyCode: he = "Space", multiSelectionKeyCode: de = "Meta", zoomActivationKeyCode: Oe = "Meta", snapToGrid: Te = !1, snapGrid: Z = fG, onlyRenderVisibleElements: se = !1, selectNodesOnDrag: Re = !0, nodesDraggable: X, nodesConnectable: Me, nodesFocusable: we, nodeOrigin: Ae = dG, edgesFocusable: Ie, elementsSelectable: xe, defaultViewport: et = hG, minZoom: Be = 0.5, maxZoom: at = 2, translateExtent: $e = Pu, preventScrolling: Xe = !0, nodeExtent: We, defaultMarkerColor: qe = "#b1b1b7", zoomOnScroll: wt = !0, zoomOnPinch: pt = !0, panOnScroll: tt = !1, panOnScrollSpeed: yt = 0.5, panOnScrollMode: De = oi.Free, zoomOnDoubleClick: je = !0, panOnDrag: ct = !0, onPaneClick: Bt, onPaneMouseEnter: bt, onPaneMouseMove: Gt, onPaneMouseLeave: St, onPaneScroll: un, onPaneContextMenu: qt, children: Rt, onEdgeUpdate: Ft, onEdgeContextMenu: hn, onEdgeDoubleClick: Ct, onEdgeMouseEnter: $n, onEdgeMouseMove: Jt, onEdgeMouseLeave: le, onEdgeUpdateStart: ye, onEdgeUpdateEnd: _e, edgeUpdaterRadius: Fe = 10, onNodesChange: st, onEdgesChange: _t, noDragClassName: pn = "nodrag", noWheelClassName: gn = "nowheel", noPanClassName: Pn = "nopan", fitView: Pt = !1, fitViewOptions: L, connectOnClick: ne = !0, attributionPosition: te, proOptions: be, defaultEdgeOptions: Ce, elevateNodesOnSelect: Pe = !0, elevateEdgesOnSelect: Ke = !1, disableKeyboardA11y: ze = !1, autoPanOnConnect: Ze = !0, autoPanOnNodeDrag: Ue = !0, connectionRadius: ot = 20, onError: Nt, style: _n, id: Fn, ...Ut }, dr) => {
39677
+ }, Xx = Ht(({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: o, nodeTypes: i = cG, edgeTypes: a = uG, onNodeClick: l, onEdgeClick: c, onInit: u, onMove: d, onMoveStart: h, onMoveEnd: f, onConnect: p, onConnectStart: g, onConnectEnd: m, onClickConnectStart: b, onClickConnectEnd: y, onNodeMouseEnter: w, onNodeMouseMove: S, onNodeMouseLeave: x, onNodeContextMenu: _, onNodeDoubleClick: k, onNodeDragStart: O, onNodeDrag: I, onNodeDragStop: H, onNodesDelete: D, onEdgesDelete: T, onSelectionChange: $, onSelectionDragStart: V, onSelectionDrag: E, onSelectionDragStop: P, onSelectionContextMenu: A, onSelectionStart: M, onSelectionEnd: B, connectionMode: j = No.Strict, connectionLineType: W = to.Bezier, connectionLineStyle: U, connectionLineComponent: oe, connectionLineContainerStyle: ae, deleteKeyCode: Q = "Backspace", selectionKeyCode: ee = "Shift", selectionOnDrag: me = !1, selectionMode: ge = ba.Full, panActivationKeyCode: he = "Space", multiSelectionKeyCode: de = "Meta", zoomActivationKeyCode: Oe = "Meta", snapToGrid: Te = !1, snapGrid: Z = fG, onlyRenderVisibleElements: se = !1, selectNodesOnDrag: Re = !0, nodesDraggable: X, nodesConnectable: Me, nodesFocusable: we, nodeOrigin: Ae = dG, edgesFocusable: Ie, elementsSelectable: xe, defaultViewport: et = hG, minZoom: Be = 0.5, maxZoom: at = 2, translateExtent: $e = Pu, preventScrolling: Xe = !0, nodeExtent: We, defaultMarkerColor: qe = "#b1b1b7", zoomOnScroll: wt = !0, zoomOnPinch: pt = !0, panOnScroll: tt = !1, panOnScrollSpeed: yt = 0.5, panOnScrollMode: De = oi.Free, zoomOnDoubleClick: je = !0, panOnDrag: ct = !0, onPaneClick: Bt, onPaneMouseEnter: bt, onPaneMouseMove: Gt, onPaneMouseLeave: St, onPaneScroll: un, onPaneContextMenu: qt, children: Rt, onEdgeUpdate: Ft, onEdgeContextMenu: hn, onEdgeDoubleClick: Ct, onEdgeMouseEnter: $n, onEdgeMouseMove: Jt, onEdgeMouseLeave: le, onEdgeUpdateStart: ye, onEdgeUpdateEnd: _e, edgeUpdaterRadius: Fe = 10, onNodesChange: st, onEdgesChange: _t, noDragClassName: pn = "nodrag", noWheelClassName: gn = "nowheel", noPanClassName: Pn = "nopan", fitView: Pt = !1, fitViewOptions: L, connectOnClick: ne = !0, attributionPosition: te, proOptions: be, defaultEdgeOptions: Ce, elevateNodesOnSelect: Pe = !0, elevateEdgesOnSelect: Ke = !1, disableKeyboardA11y: ze = !1, autoPanOnConnect: Ze = !0, autoPanOnNodeDrag: Ue = !0, connectionRadius: ot = 20, onError: Nt, style: _n, id: Fn, ...Ut }, dr) => {
39677
39678
  const _r = Wg(i, yW), Mn = Wg(a, hW), On = Fn || "1";
39678
- return s("div", { ...Ut, style: { ..._n, ...pG }, ref: dr, className: Sn(["react-flow", o]), "data-testid": "rf__wrapper", id: Fn, children: v(Yx, { children: [s(sG, { onInit: u, onMove: d, onMoveStart: h, onMoveEnd: f, onNodeClick: l, onEdgeClick: c, onNodeMouseEnter: S, onNodeMouseMove: w, onNodeMouseLeave: x, onNodeContextMenu: _, onNodeDoubleClick: k, nodeTypes: _r, edgeTypes: Mn, connectionLineType: W, connectionLineStyle: U, connectionLineComponent: oe, connectionLineContainerStyle: ae, selectionKeyCode: ee, selectionOnDrag: me, selectionMode: ge, deleteKeyCode: Q, multiSelectionKeyCode: de, panActivationKeyCode: he, zoomActivationKeyCode: Oe, onlyRenderVisibleElements: se, selectNodesOnDrag: Re, defaultViewport: et, translateExtent: $e, minZoom: Be, maxZoom: at, preventScrolling: Xe, zoomOnScroll: wt, zoomOnPinch: pt, zoomOnDoubleClick: je, panOnScroll: tt, panOnScrollSpeed: yt, panOnScrollMode: De, panOnDrag: ct, onPaneClick: Bt, onPaneMouseEnter: bt, onPaneMouseMove: Gt, onPaneMouseLeave: St, onPaneScroll: un, onPaneContextMenu: qt, onSelectionContextMenu: A, onSelectionStart: M, onSelectionEnd: B, onEdgeUpdate: Ft, onEdgeContextMenu: hn, onEdgeDoubleClick: Ct, onEdgeMouseEnter: $n, onEdgeMouseMove: Jt, onEdgeMouseLeave: le, onEdgeUpdateStart: ye, onEdgeUpdateEnd: _e, edgeUpdaterRadius: Fe, defaultMarkerColor: qe, noDragClassName: pn, noWheelClassName: gn, noPanClassName: Pn, elevateEdgesOnSelect: Ke, rfId: On, disableKeyboardA11y: ze, nodeOrigin: Ae, nodeExtent: We }), s(iW, { nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: p, onConnectStart: g, onConnectEnd: m, onClickConnectStart: b, onClickConnectEnd: y, nodesDraggable: X, nodesConnectable: Me, nodesFocusable: we, edgesFocusable: Ie, elementsSelectable: xe, elevateNodesOnSelect: Pe, minZoom: Be, maxZoom: at, nodeExtent: We, onNodesChange: st, onEdgesChange: _t, snapToGrid: Te, snapGrid: Z, connectionMode: j, translateExtent: $e, connectOnClick: ne, defaultEdgeOptions: Ce, fitView: Pt, fitViewOptions: L, onNodesDelete: D, onEdgesDelete: T, onNodeDragStart: O, onNodeDrag: I, onNodeDragStop: H, onSelectionDrag: E, onSelectionDragStart: V, onSelectionDragStop: P, noPanClassName: Pn, nodeOrigin: Ae, rfId: On, autoPanOnConnect: Ze, autoPanOnNodeDrag: Ue, onError: Nt, connectionRadius: ot }), s(rW, { onSelectionChange: $ }), Rt, s(DK, { proOptions: be, position: te }), s(uW, { rfId: On, disableKeyboardA11y: ze })] }) });
39679
+ return s("div", { ...Ut, style: { ..._n, ...pG }, ref: dr, className: Sn(["react-flow", o]), "data-testid": "rf__wrapper", id: Fn, children: v(Yx, { children: [s(sG, { onInit: u, onMove: d, onMoveStart: h, onMoveEnd: f, onNodeClick: l, onEdgeClick: c, onNodeMouseEnter: w, onNodeMouseMove: S, onNodeMouseLeave: x, onNodeContextMenu: _, onNodeDoubleClick: k, nodeTypes: _r, edgeTypes: Mn, connectionLineType: W, connectionLineStyle: U, connectionLineComponent: oe, connectionLineContainerStyle: ae, selectionKeyCode: ee, selectionOnDrag: me, selectionMode: ge, deleteKeyCode: Q, multiSelectionKeyCode: de, panActivationKeyCode: he, zoomActivationKeyCode: Oe, onlyRenderVisibleElements: se, selectNodesOnDrag: Re, defaultViewport: et, translateExtent: $e, minZoom: Be, maxZoom: at, preventScrolling: Xe, zoomOnScroll: wt, zoomOnPinch: pt, zoomOnDoubleClick: je, panOnScroll: tt, panOnScrollSpeed: yt, panOnScrollMode: De, panOnDrag: ct, onPaneClick: Bt, onPaneMouseEnter: bt, onPaneMouseMove: Gt, onPaneMouseLeave: St, onPaneScroll: un, onPaneContextMenu: qt, onSelectionContextMenu: A, onSelectionStart: M, onSelectionEnd: B, onEdgeUpdate: Ft, onEdgeContextMenu: hn, onEdgeDoubleClick: Ct, onEdgeMouseEnter: $n, onEdgeMouseMove: Jt, onEdgeMouseLeave: le, onEdgeUpdateStart: ye, onEdgeUpdateEnd: _e, edgeUpdaterRadius: Fe, defaultMarkerColor: qe, noDragClassName: pn, noWheelClassName: gn, noPanClassName: Pn, elevateEdgesOnSelect: Ke, rfId: On, disableKeyboardA11y: ze, nodeOrigin: Ae, nodeExtent: We }), s(iW, { nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: p, onConnectStart: g, onConnectEnd: m, onClickConnectStart: b, onClickConnectEnd: y, nodesDraggable: X, nodesConnectable: Me, nodesFocusable: we, edgesFocusable: Ie, elementsSelectable: xe, elevateNodesOnSelect: Pe, minZoom: Be, maxZoom: at, nodeExtent: We, onNodesChange: st, onEdgesChange: _t, snapToGrid: Te, snapGrid: Z, connectionMode: j, translateExtent: $e, connectOnClick: ne, defaultEdgeOptions: Ce, fitView: Pt, fitViewOptions: L, onNodesDelete: D, onEdgesDelete: T, onNodeDragStart: O, onNodeDrag: I, onNodeDragStop: H, onSelectionDrag: E, onSelectionDragStart: V, onSelectionDragStop: P, noPanClassName: Pn, nodeOrigin: Ae, rfId: On, autoPanOnConnect: Ze, autoPanOnNodeDrag: Ue, onError: Nt, connectionRadius: ot }), s(rW, { onSelectionChange: $ }), Rt, s(DK, { proOptions: be, position: te }), s(uW, { rfId: On, disableKeyboardA11y: ze })] }) });
39679
39680
  });
39680
39681
  Xx.displayName = "ReactFlow";
39681
39682
  const Qx = ({ id: e, x: t, y: n, width: r, height: o, style: i, color: a, strokeColor: l, strokeWidth: c, className: u, borderRadius: d, shapeRendering: h, onClick: f }) => {
@@ -39701,7 +39702,7 @@ const mG = 200, vG = 150, yG = (e) => {
39701
39702
  }, Dc = (e) => e instanceof Function ? e : () => e, bG = "react-flow__minimap-desc";
39702
39703
  function Zx({ 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: h, onNodeClick: f, pannable: p = !1, zoomable: g = !1, ariaLabel: m = "React Flow mini map" }) {
39703
39704
  var ge, he;
39704
- const b = vn(), y = Ee(null), { boundingRect: S, viewBB: w, nodes: x, rfId: _, nodeOrigin: k } = Wt(yG, kn), O = (ge = e == null ? void 0 : e.width) != null ? ge : mG, I = (he = e == null ? void 0 : e.height) != null ? he : vG, H = Dc(r), D = Dc(n), T = Dc(o), $ = S.width / O, V = S.height / I, E = Math.max($, V), P = E * O, A = E * I, M = 5 * E, B = S.x - (P - S.width) / 2 - M, j = S.y - (A - S.height) / 2 - M, W = P + M * 2, U = A + M * 2, oe = typeof window > "u" || !!window.chrome ? "crispEdges" : "geometricPrecision", ae = `${bG}-${_}`, Q = Ee(0);
39705
+ const b = vn(), y = Ee(null), { boundingRect: w, viewBB: S, nodes: x, rfId: _, nodeOrigin: k } = Wt(yG, kn), O = (ge = e == null ? void 0 : e.width) != null ? ge : mG, I = (he = e == null ? void 0 : e.height) != null ? he : vG, H = Dc(r), D = Dc(n), T = Dc(o), $ = w.width / O, V = w.height / I, E = Math.max($, V), P = E * O, A = E * I, M = 5 * E, B = w.x - (P - w.width) / 2 - M, j = w.y - (A - w.height) / 2 - M, W = P + M * 2, U = A + M * 2, oe = typeof window > "u" || !!window.chrome ? "crispEdges" : "geometricPrecision", ae = `${bG}-${_}`, Q = Ee(0);
39705
39706
  Q.current = E, ue(() => {
39706
39707
  if (y.current) {
39707
39708
  const de = Un(y.current), Oe = (se) => {
@@ -39739,7 +39740,7 @@ function Zx({ style: e, className: t, nodeStrokeColor: n = "transparent", nodeCo
39739
39740
  const { x: Oe, y: Te } = Oo(de, k).positionAbsolute;
39740
39741
  return s(gG, { x: Oe, y: Te, width: de.width, height: de.height, style: de.style, className: T(de), color: H(de), borderRadius: i, strokeColor: D(de), strokeWidth: a, shapeRendering: oe, onClick: me, id: de.id }, de.id);
39741
39742
  }), s("path", { className: "react-flow__minimap-mask", d: `M${B - M},${j - M}h${W + M * 2}v${U + M * 2}h${-W - M * 2}z
39742
- M${w.x},${w.y}h${w.width}v${w.height}h${-w.width}z`, fill: l, fillRule: "evenodd", stroke: c, strokeWidth: u, pointerEvents: "none" })] }) });
39743
+ M${S.x},${S.y}h${S.width}v${S.height}h${-S.width}z`, fill: l, fillRule: "evenodd", stroke: c, strokeWidth: u, pointerEvents: "none" })] }) });
39743
39744
  }
39744
39745
  Zx.displayName = "MiniMap";
39745
39746
  var xG = zt(Zx);
@@ -39761,17 +39762,17 @@ function EG() {
39761
39762
  const Ui = ({ children: e, className: t, ...n }) => s("button", { type: "button", className: Sn(["react-flow__controls-button", t]), ...n, children: e });
39762
39763
  Ui.displayName = "ControlButton";
39763
39764
  const kG = (e) => e.nodesDraggable && e.nodesConnectable && e.elementsSelectable, Jx = ({ style: e, showZoom: t = !0, showFitView: n = !0, showInteractive: r = !0, fitViewOptions: o, onZoomIn: i, onZoomOut: a, onFitView: l, onInteractiveChange: c, className: u, children: d, position: h = "bottom-left" }) => {
39764
- const f = vn(), [p, g] = Ve(!1), m = Wt(kG), { zoomIn: b, zoomOut: y, fitView: S } = kf();
39765
+ const f = vn(), [p, g] = Ve(!1), m = Wt(kG), { zoomIn: b, zoomOut: y, fitView: w } = kf();
39765
39766
  if (ue(() => {
39766
39767
  g(!0);
39767
39768
  }, []), !p)
39768
39769
  return null;
39769
- const w = () => {
39770
+ const S = () => {
39770
39771
  b(), i == null || i();
39771
39772
  }, x = () => {
39772
39773
  y(), a == null || a();
39773
39774
  }, _ = () => {
39774
- S(o), l == null || l();
39775
+ w(o), l == null || l();
39775
39776
  }, k = () => {
39776
39777
  f.setState({
39777
39778
  nodesDraggable: !m,
@@ -39779,7 +39780,7 @@ const kG = (e) => e.nodesDraggable && e.nodesConnectable && e.elementsSelectable
39779
39780
  elementsSelectable: !m
39780
39781
  }), c == null || c(!m);
39781
39782
  };
39782
- return v(mf, { className: Sn(["react-flow__controls", u]), position: h, style: e, children: [t && v(ke, { children: [s(Ui, { onClick: w, className: "react-flow__controls-zoomin", title: "zoom in", "aria-label": "zoom in", children: s(wG, {}) }), s(Ui, { onClick: x, className: "react-flow__controls-zoomout", title: "zoom out", "aria-label": "zoom out", children: s(SG, {}) })] }), n && s(Ui, { className: "react-flow__controls-fitview", onClick: _, title: "fit view", "aria-label": "fit view", children: s(_G, {}) }), r && s(Ui, { className: "react-flow__controls-interactive", onClick: k, title: "toggle interactivity", "aria-label": "toggle interactivity", children: m ? s(EG, {}) : s(CG, {}) }), d] });
39783
+ return v(mf, { className: Sn(["react-flow__controls", u]), position: h, style: e, children: [t && v(ke, { children: [s(Ui, { onClick: S, className: "react-flow__controls-zoomin", title: "zoom in", "aria-label": "zoom in", children: s(wG, {}) }), s(Ui, { onClick: x, className: "react-flow__controls-zoomout", title: "zoom out", "aria-label": "zoom out", children: s(SG, {}) })] }), n && s(Ui, { className: "react-flow__controls-fitview", onClick: _, title: "fit view", "aria-label": "fit view", children: s(_G, {}) }), r && s(Ui, { className: "react-flow__controls-interactive", onClick: k, title: "toggle interactivity", "aria-label": "toggle interactivity", children: m ? s(EG, {}) : s(CG, {}) }), d] });
39783
39784
  };
39784
39785
  Jx.displayName = "Controls";
39785
39786
  var TG = zt(Jx), ir;
@@ -39810,7 +39811,7 @@ function ew({
39810
39811
  style: i,
39811
39812
  className: a
39812
39813
  }) {
39813
- const l = Ee(null), { transform: c, patternId: u } = Wt(AG, kn), d = o || RG[e], h = n || DG[e], f = e === ir.Dots, p = e === ir.Cross, g = Array.isArray(t) ? t : [t, t], m = [g[0] * c[2] || 1, g[1] * c[2] || 1], b = h * c[2], y = p ? [b, b] : m, S = f ? [b / 2, b / 2] : [y[0] / 2, y[1] / 2];
39814
+ const l = Ee(null), { transform: c, patternId: u } = Wt(AG, kn), d = o || RG[e], h = n || DG[e], f = e === ir.Dots, p = e === ir.Cross, g = Array.isArray(t) ? t : [t, t], m = [g[0] * c[2] || 1, g[1] * c[2] || 1], b = h * c[2], y = p ? [b, b] : m, w = f ? [b / 2, b / 2] : [y[0] / 2, y[1] / 2];
39814
39815
  return v("svg", { className: Sn(["react-flow__background", a]), style: {
39815
39816
  ...i,
39816
39817
  position: "absolute",
@@ -39818,7 +39819,7 @@ function ew({
39818
39819
  height: "100%",
39819
39820
  top: 0,
39820
39821
  left: 0
39821
- }, ref: l, children: [s("pattern", { id: u, x: c[0] % m[0], y: c[1] % m[1], width: m[0], height: m[1], patternUnits: "userSpaceOnUse", patternTransform: `translate(-${S[0]},-${S[1]})`, children: f ? s(OG, { color: d, radius: b / 2 }) : s(MG, { dimensions: y, color: d, lineWidth: r }) }), s("rect", { x: "0", y: "0", width: "100%", height: "100%", fill: `url(#${u})` })] });
39822
+ }, ref: l, children: [s("pattern", { id: u, x: c[0] % m[0], y: c[1] % m[1], width: m[0], height: m[1], patternUnits: "userSpaceOnUse", patternTransform: `translate(-${w[0]},-${w[1]})`, children: f ? s(OG, { color: d, radius: b / 2 }) : s(MG, { dimensions: y, color: d, lineWidth: r }) }), s("rect", { x: "0", y: "0", width: "100%", height: "100%", fill: `url(#${u})` })] });
39822
39823
  }
39823
39824
  ew.displayName = "Background";
39824
39825
  var $G = zt(ew);
@@ -43819,28 +43820,28 @@ var dw = { exports: {} };
43819
43820
  return function(o, i, a) {
43820
43821
  var l, c = function(f, p, g) {
43821
43822
  g === void 0 && (g = {});
43822
- var m = new Date(f), b = function(y, S) {
43823
- S === void 0 && (S = {});
43824
- var w = S.timeZoneName || "short", x = y + "|" + w, _ = r[x];
43825
- return _ || (_ = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: y, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: w }), r[x] = _), _;
43823
+ var m = new Date(f), b = function(y, w) {
43824
+ w === void 0 && (w = {});
43825
+ var S = w.timeZoneName || "short", x = y + "|" + S, _ = r[x];
43826
+ return _ || (_ = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: y, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: S }), r[x] = _), _;
43826
43827
  }(p, g);
43827
43828
  return b.formatToParts(m);
43828
43829
  }, u = function(f, p) {
43829
43830
  for (var g = c(f, p), m = [], b = 0; b < g.length; b += 1) {
43830
- var y = g[b], S = y.type, w = y.value, x = n[S];
43831
- x >= 0 && (m[x] = parseInt(w, 10));
43831
+ var y = g[b], w = y.type, S = y.value, x = n[w];
43832
+ x >= 0 && (m[x] = parseInt(S, 10));
43832
43833
  }
43833
43834
  var _ = m[3], k = _ === 24 ? 0 : _, O = m[0] + "-" + m[1] + "-" + m[2] + " " + k + ":" + m[4] + ":" + m[5] + ":000", I = +f;
43834
43835
  return (a.utc(O).valueOf() - (I -= I % 1e3)) / 6e4;
43835
43836
  }, d = i.prototype;
43836
43837
  d.tz = function(f, p) {
43837
43838
  f === void 0 && (f = l);
43838
- var g = this.utcOffset(), m = this.toDate(), b = m.toLocaleString("en-US", { timeZone: f }), y = Math.round((m - new Date(b)) / 1e3 / 60), S = a(b).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(m.getTimezoneOffset() / 15) - y, !0);
43839
+ var g = this.utcOffset(), m = this.toDate(), b = m.toLocaleString("en-US", { timeZone: f }), y = Math.round((m - new Date(b)) / 1e3 / 60), w = a(b).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(m.getTimezoneOffset() / 15) - y, !0);
43839
43840
  if (p) {
43840
- var w = S.utcOffset();
43841
- S = S.add(g - w, "minute");
43841
+ var S = w.utcOffset();
43842
+ w = w.add(g - S, "minute");
43842
43843
  }
43843
- return S.$x.$timezone = f, S;
43844
+ return w.$x.$timezone = f, w;
43844
43845
  }, d.offsetName = function(f) {
43845
43846
  var p = this.$x.$timezone || a.tz.guess(), g = c(this.valueOf(), p, { timeZoneName: f }).find(function(m) {
43846
43847
  return m.type.toLowerCase() === "timezonename";
@@ -43857,13 +43858,13 @@ var dw = { exports: {} };
43857
43858
  var m = g && p, b = g || p || l, y = u(+a(), b);
43858
43859
  if (typeof f != "string")
43859
43860
  return a(f).tz(b);
43860
- var S = function(k, O, I) {
43861
+ var w = function(k, O, I) {
43861
43862
  var H = k - 60 * O * 1e3, D = u(H, I);
43862
43863
  if (O === D)
43863
43864
  return [H, O];
43864
43865
  var T = u(H -= 60 * (D - O) * 1e3, I);
43865
43866
  return D === T ? [H, D] : [k - 60 * Math.min(D, T) * 1e3, Math.max(D, T)];
43866
- }(a.utc(f, m).valueOf(), y, b), w = S[0], x = S[1], _ = a(w).utcOffset(x);
43867
+ }(a.utc(f, m).valueOf(), y, b), S = w[0], x = w[1], _ = a(S).utcOffset(x);
43867
43868
  return _.$x.$timezone = b, _;
43868
43869
  }, a.tz.guess = function() {
43869
43870
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -43917,15 +43918,15 @@ var fw = { exports: {} };
43917
43918
  return H === 0 ? 0 : I === "+" ? H : -H;
43918
43919
  }(m), m === null))
43919
43920
  return this;
43920
- var S = Math.abs(m) <= 16 ? 60 * m : m, w = this;
43921
+ var w = Math.abs(m) <= 16 ? 60 * m : m, S = this;
43921
43922
  if (b)
43922
- return w.$offset = S, w.$u = m === 0, w;
43923
+ return S.$offset = w, S.$u = m === 0, S;
43923
43924
  if (m !== 0) {
43924
43925
  var x = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
43925
- (w = this.local().add(S + x, n)).$offset = S, w.$x.$localOffset = x;
43926
+ (S = this.local().add(w + x, n)).$offset = w, S.$x.$localOffset = x;
43926
43927
  } else
43927
- w = this.utc();
43928
- return w;
43928
+ S = this.utc();
43929
+ return S;
43929
43930
  };
43930
43931
  var f = c.format;
43931
43932
  c.format = function(m) {
@@ -43949,8 +43950,8 @@ var fw = { exports: {} };
43949
43950
  c.diff = function(m, b, y) {
43950
43951
  if (m && this.$u === m.$u)
43951
43952
  return g.call(this, m, b, y);
43952
- var S = this.local(), w = l(m).local();
43953
- return g.call(S, w, b, y);
43953
+ var w = this.local(), S = l(m).local();
43954
+ return g.call(w, S, b, y);
43954
43955
  };
43955
43956
  };
43956
43957
  });