@amateescu/portal-ui-components 0.0.33 → 0.0.35-beta0

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.
Files changed (35) hide show
  1. package/dist/{Box-D-aleOLf.js → Box-C-zPAMZN.js} +1 -1
  2. package/dist/{Button-xgiLW4_3.js → Button-DG4uye8X.js} +3 -3
  3. package/dist/{ButtonBase-DUKuDCWw.js → ButtonBase-DrxMtoTW.js} +1 -1
  4. package/dist/{CircularProgress-Dq_bUtxt.js → CircularProgress-DpvktFBW.js} +1 -1
  5. package/dist/{EllipsisOutlined-CmR4hXJ_.js → EllipsisOutlined-DfCu6q_b.js} +816 -816
  6. package/dist/{PurePanel-CykVuv66.js → PurePanel-DvQTygSo.js} +487 -491
  7. package/dist/{Skeleton-BBwDqRB3.js → Skeleton-Bh0A9xju.js} +15 -18
  8. package/dist/{UserInfoDropdown-GTCkmg6H.js → UserInfoDropdown-CWTcdnqL.js} +1186 -1221
  9. package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
  10. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
  11. package/dist/components/CustomButton/CustomButton.js +1 -1
  12. package/dist/components/CustomButton/CustomButton.stories.js +1 -1
  13. package/dist/components/CustomPagination/CustomPagination.js +4 -4
  14. package/dist/components/ErrorModal/ErrorModal.js +1 -1
  15. package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
  16. package/dist/components/InfoModal/InfoModal.js +1 -1
  17. package/dist/components/InfoModal/InfoModal.stories.js +1 -1
  18. package/dist/components/KpiCard/KpiCard.js +715 -682
  19. package/dist/components/LoadingAnimation/LoadingAnimation.js +2 -2
  20. package/dist/components/Login/Login.js +775 -760
  21. package/dist/components/Login/Login.stories.js +4 -1
  22. package/dist/components/SideMenu/SideMenu.js +9 -9
  23. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
  24. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
  25. package/dist/components/index.js +1 -1
  26. package/dist/context-dCWAMvX5.js +7320 -0
  27. package/dist/createSimplePaletteValueFilter-CwLqlaaZ.js +3457 -0
  28. package/dist/{createSvgIcon-CgFXfzFk.js → createSvgIcon-DNSRtm3a.js} +1 -1
  29. package/dist/index-B00P9-H3.js +1681 -0
  30. package/dist/main.js +1 -1
  31. package/dist/{useSlot-Baxtq84W.js → useSlot-B4sbbhYz.js} +2 -2
  32. package/package.json +28 -28
  33. package/dist/context-4ttylmIf.js +0 -7356
  34. package/dist/createSimplePaletteValueFilter-evt-Xthj.js +0 -3444
  35. package/dist/index-Dz00OoV7.js +0 -1687
@@ -1,10 +1,10 @@
1
- import { a6 as Tr, a7 as Lr, a8 as Ar, a9 as $r, a3 as $n, a4 as zn, n as ur, e as T, ag as Gn, h as zr, x as Vr, M as Zn, K as Lt, H as ba, p as De, c as ke, w as Ht, _ as k, k as Kt, ah as it, q as cr, a2 as fr, ai as pa, aj as Qn, a5 as Wr, l as Rt, ak as Yn, N as Ca, P as Fr, j as st, i as he, al as wa, am as Hr, r as un, s as Dn, o as vr, I as Ma } from "./context-4ttylmIf.js";
1
+ import { a6 as Tr, a7 as Lr, a8 as Ar, a9 as $r, a3 as $n, a4 as zn, n as ur, e as T, ag as Gn, h as zr, x as Vr, M as Zn, K as $t, H as ba, p as ke, c as Oe, w as Jt, _ as O, k as Lt, ah as st, q as cr, a2 as fr, ai as pa, aj as Qn, a5 as Wr, l as Nt, ak as Yn, N as Ca, P as Fr, j as ut, i as fe, al as wa, am as Hr, r as fn, s as Dn, o as vr, I as Ma } from "./context-dCWAMvX5.js";
2
2
  import * as a from "react";
3
- import qe, { useState as Jn, useMemo as Xn, useCallback as Tt, forwardRef as Ra, useRef as xn, useImperativeHandle as Ea } from "react";
3
+ import je, { useState as Jn, useMemo as Xn, useCallback as At, forwardRef as Ra, useRef as xn, useImperativeHandle as Sa } from "react";
4
4
  import { _ as ae } from "./objectWithoutPropertiesLoose-BTau6TOn.js";
5
5
  import { r as Br } from "./index-BBBjHj3B.js";
6
6
  var er = /* @__PURE__ */ a.createContext(null);
7
- function Sa(e) {
7
+ function Ea(e) {
8
8
  var n = e.children, t = e.onBatchResize, r = a.useRef(0), i = a.useRef([]), o = a.useContext(er), s = a.useCallback(function(l, u, c) {
9
9
  r.current += 1;
10
10
  var b = r.current;
@@ -145,7 +145,7 @@ var Ia = 20, xa = ["top", "right", "bottom", "left", "width", "height", "size",
145
145
  });
146
146
  }
147
147
  return e;
148
- }, ln = function(e) {
148
+ }, cn = function(e) {
149
149
  var n = e && e.ownerDocument && e.ownerDocument.defaultView;
150
150
  return n || Kn;
151
151
  }, qr = Vn(0, 0, 0, 0);
@@ -175,7 +175,7 @@ function Ta(e) {
175
175
  var n = e.clientWidth, t = e.clientHeight;
176
176
  if (!n && !t)
177
177
  return qr;
178
- var r = ln(e).getComputedStyle(e), i = Oa(r), o = i.left + i.right, s = i.top + i.bottom, l = Tn(r.width), u = Tn(r.height);
178
+ var r = cn(e).getComputedStyle(e), i = Oa(r), o = i.left + i.right, s = i.top + i.bottom, l = Tn(r.width), u = Tn(r.height);
179
179
  if (r.boxSizing === "border-box" && (Math.round(l + o) !== n && (l -= wr(r, "left", "right") + o), Math.round(u + s) !== t && (u -= wr(r, "top", "bottom") + s)), !Aa(e)) {
180
180
  var c = Math.round(l + o) - n, b = Math.round(u + s) - t;
181
181
  Math.abs(c) !== 1 && (l -= c), Math.abs(b) !== 1 && (u -= b);
@@ -184,13 +184,13 @@ function Ta(e) {
184
184
  }
185
185
  var La = /* @__PURE__ */ function() {
186
186
  return typeof SVGGraphicsElement < "u" ? function(e) {
187
- return e instanceof ln(e).SVGGraphicsElement;
187
+ return e instanceof cn(e).SVGGraphicsElement;
188
188
  } : function(e) {
189
- return e instanceof ln(e).SVGElement && typeof e.getBBox == "function";
189
+ return e instanceof cn(e).SVGElement && typeof e.getBBox == "function";
190
190
  };
191
191
  }();
192
192
  function Aa(e) {
193
- return e === ln(e).document.documentElement;
193
+ return e === cn(e).document.documentElement;
194
194
  }
195
195
  function $a(e) {
196
196
  return tr ? La(e) ? Ka(e) : Ta(e) : qr;
@@ -246,7 +246,7 @@ var Va = (
246
246
  if (!arguments.length)
247
247
  throw new TypeError("1 argument required, but only 0 present.");
248
248
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
249
- if (!(n instanceof ln(n).Element))
249
+ if (!(n instanceof cn(n).Element))
250
250
  throw new TypeError('parameter 1 is not of type "Element".');
251
251
  var t = this.observations_;
252
252
  t.has(n) || (t.set(n, new Va(n)), this.controller_.addObserver(this), this.controller_.refresh());
@@ -255,7 +255,7 @@ var Va = (
255
255
  if (!arguments.length)
256
256
  throw new TypeError("1 argument required, but only 0 present.");
257
257
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
258
- if (!(n instanceof ln(n).Element))
258
+ if (!(n instanceof cn(n).Element))
259
259
  throw new TypeError('parameter 1 is not of type "Element".');
260
260
  var t = this.observations_;
261
261
  t.has(n) && (t.delete(n), t.size || this.controller_.removeObserver(this));
@@ -306,11 +306,11 @@ var Va = (
306
306
  });
307
307
  var Ha = function() {
308
308
  return typeof Kn.ResizeObserver < "u" ? Kn.ResizeObserver : Jr;
309
- }(), wt = /* @__PURE__ */ new Map();
309
+ }(), Et = /* @__PURE__ */ new Map();
310
310
  function Zr(e) {
311
311
  e.forEach(function(n) {
312
312
  var t, r = n.target;
313
- (t = wt.get(r)) === null || t === void 0 || t.forEach(function(i) {
313
+ (t = Et.get(r)) === null || t === void 0 || t.forEach(function(i) {
314
314
  return i(r);
315
315
  });
316
316
  });
@@ -319,10 +319,10 @@ var Qr = new Ha(Zr);
319
319
  process.env.NODE_ENV;
320
320
  process.env.NODE_ENV;
321
321
  function Ba(e, n) {
322
- wt.has(e) || (wt.set(e, /* @__PURE__ */ new Set()), Qr.observe(e)), wt.get(e).add(n);
322
+ Et.has(e) || (Et.set(e, /* @__PURE__ */ new Set()), Qr.observe(e)), Et.get(e).add(n);
323
323
  }
324
324
  function Ua(e, n) {
325
- wt.has(e) && (wt.get(e).delete(n), wt.get(e).size || (Qr.unobserve(e), wt.delete(e)));
325
+ Et.has(e) && (Et.get(e).delete(n), Et.get(e).size || (Qr.unobserve(e), Et.delete(e)));
326
326
  }
327
327
  var ja = /* @__PURE__ */ function(e) {
328
328
  Tr(t, e);
@@ -353,19 +353,19 @@ function qa(e, n) {
353
353
  });
354
354
  var h = a.useRef(e);
355
355
  h.current = e;
356
- var E = a.useCallback(function(g) {
357
- var M = h.current, S = M.onResize, y = M.data, w = g.getBoundingClientRect(), C = w.width, v = w.height, N = g.offsetWidth, O = g.offsetHeight, D = Math.floor(C), B = Math.floor(v);
358
- if (c.current.width !== D || c.current.height !== B || c.current.offsetWidth !== N || c.current.offsetHeight !== O) {
359
- var $ = {
360
- width: D,
361
- height: B,
362
- offsetWidth: N,
363
- offsetHeight: O
356
+ var R = a.useCallback(function(g) {
357
+ var M = h.current, S = M.onResize, y = M.data, w = g.getBoundingClientRect(), C = w.width, v = w.height, E = g.offsetWidth, D = g.offsetHeight, K = Math.floor(C), U = Math.floor(v);
358
+ if (c.current.width !== K || c.current.height !== U || c.current.offsetWidth !== E || c.current.offsetHeight !== D) {
359
+ var z = {
360
+ width: K,
361
+ height: U,
362
+ offsetWidth: E,
363
+ offsetHeight: D
364
364
  };
365
- c.current = $;
366
- var z = N === Math.round(C) ? C : N, L = O === Math.round(v) ? v : O, j = T(T({}, $), {}, {
367
- offsetWidth: z,
368
- offsetHeight: L
365
+ c.current = z;
366
+ var F = E === Math.round(C) ? C : E, A = D === Math.round(v) ? v : D, j = T(T({}, z), {}, {
367
+ offsetWidth: F,
368
+ offsetHeight: A
369
369
  });
370
370
  s == null || s(j, g, y), S && Promise.resolve().then(function() {
371
371
  S(j, g);
@@ -374,8 +374,8 @@ function qa(e, n) {
374
374
  }, []);
375
375
  return a.useEffect(function() {
376
376
  var g = m();
377
- return g && !r && Ba(g, E), function() {
378
- return Ua(g, E);
377
+ return g && !r && Ba(g, R), function() {
378
+ return Ua(g, R);
379
379
  };
380
380
  }, [i.current, r]), /* @__PURE__ */ a.createElement(ja, {
381
381
  ref: o
@@ -396,10 +396,10 @@ function Ja(e, n) {
396
396
  }), i);
397
397
  });
398
398
  }
399
- var cn = /* @__PURE__ */ a.forwardRef(Ja);
400
- process.env.NODE_ENV !== "production" && (cn.displayName = "ResizeObserver");
401
- cn.Collection = Sa;
402
- const Za = new Lt("antSlideUpIn", {
399
+ var vn = /* @__PURE__ */ a.forwardRef(Ja);
400
+ process.env.NODE_ENV !== "production" && (vn.displayName = "ResizeObserver");
401
+ vn.Collection = Ea;
402
+ const Za = new $t("antSlideUpIn", {
403
403
  "0%": {
404
404
  transform: "scaleY(0.8)",
405
405
  transformOrigin: "0% 0%",
@@ -410,7 +410,7 @@ const Za = new Lt("antSlideUpIn", {
410
410
  transformOrigin: "0% 0%",
411
411
  opacity: 1
412
412
  }
413
- }), Qa = new Lt("antSlideUpOut", {
413
+ }), Qa = new $t("antSlideUpOut", {
414
414
  "0%": {
415
415
  transform: "scaleY(1)",
416
416
  transformOrigin: "0% 0%",
@@ -421,7 +421,7 @@ const Za = new Lt("antSlideUpIn", {
421
421
  transformOrigin: "0% 0%",
422
422
  opacity: 0
423
423
  }
424
- }), Ya = new Lt("antSlideDownIn", {
424
+ }), Ya = new $t("antSlideDownIn", {
425
425
  "0%": {
426
426
  transform: "scaleY(0.8)",
427
427
  transformOrigin: "100% 100%",
@@ -432,7 +432,7 @@ const Za = new Lt("antSlideUpIn", {
432
432
  transformOrigin: "100% 100%",
433
433
  opacity: 1
434
434
  }
435
- }), Xa = new Lt("antSlideDownOut", {
435
+ }), Xa = new $t("antSlideDownOut", {
436
436
  "0%": {
437
437
  transform: "scaleY(1)",
438
438
  transformOrigin: "100% 100%",
@@ -443,7 +443,7 @@ const Za = new Lt("antSlideUpIn", {
443
443
  transformOrigin: "100% 100%",
444
444
  opacity: 0
445
445
  }
446
- }), ei = new Lt("antSlideLeftIn", {
446
+ }), ei = new $t("antSlideLeftIn", {
447
447
  "0%": {
448
448
  transform: "scaleX(0.8)",
449
449
  transformOrigin: "0% 0%",
@@ -454,7 +454,7 @@ const Za = new Lt("antSlideUpIn", {
454
454
  transformOrigin: "0% 0%",
455
455
  opacity: 1
456
456
  }
457
- }), ti = new Lt("antSlideLeftOut", {
457
+ }), ti = new $t("antSlideLeftOut", {
458
458
  "0%": {
459
459
  transform: "scaleX(1)",
460
460
  transformOrigin: "0% 0%",
@@ -465,7 +465,7 @@ const Za = new Lt("antSlideUpIn", {
465
465
  transformOrigin: "0% 0%",
466
466
  opacity: 0
467
467
  }
468
- }), ni = new Lt("antSlideRightIn", {
468
+ }), ni = new $t("antSlideRightIn", {
469
469
  "0%": {
470
470
  transform: "scaleX(0.8)",
471
471
  transformOrigin: "100% 0%",
@@ -476,7 +476,7 @@ const Za = new Lt("antSlideUpIn", {
476
476
  transformOrigin: "100% 0%",
477
477
  opacity: 1
478
478
  }
479
- }), ri = new Lt("antSlideRightOut", {
479
+ }), ri = new $t("antSlideRightOut", {
480
480
  "0%": {
481
481
  transform: "scaleX(1)",
482
482
  transformOrigin: "100% 0%",
@@ -534,49 +534,49 @@ const Za = new Lt("antSlideUpIn", {
534
534
  var e = navigator.userAgent || navigator.vendor || window.opera;
535
535
  return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e == null ? void 0 : e.substr(0, 4));
536
536
  };
537
- var oi = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"], rn = void 0;
537
+ var oi = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"], on = void 0;
538
538
  function si(e, n) {
539
- var t = e.prefixCls, r = e.invalidate, i = e.item, o = e.renderItem, s = e.responsive, l = e.responsiveDisabled, u = e.registerSize, c = e.itemKey, b = e.className, f = e.style, d = e.children, m = e.display, h = e.order, E = e.component, g = E === void 0 ? "div" : E, M = De(e, oi), S = s && !m;
540
- function y(O) {
541
- u(c, O);
539
+ var t = e.prefixCls, r = e.invalidate, i = e.item, o = e.renderItem, s = e.responsive, l = e.responsiveDisabled, u = e.registerSize, c = e.itemKey, b = e.className, f = e.style, d = e.children, m = e.display, h = e.order, R = e.component, g = R === void 0 ? "div" : R, M = ke(e, oi), S = s && !m;
540
+ function y(D) {
541
+ u(c, D);
542
542
  }
543
543
  a.useEffect(function() {
544
544
  return function() {
545
545
  y(null);
546
546
  };
547
547
  }, []);
548
- var w = o && i !== rn ? o(i, {
548
+ var w = o && i !== on ? o(i, {
549
549
  index: h
550
550
  }) : d, C;
551
551
  r || (C = {
552
552
  opacity: S ? 0 : 1,
553
- height: S ? 0 : rn,
554
- overflowY: S ? "hidden" : rn,
555
- order: s ? h : rn,
556
- pointerEvents: S ? "none" : rn,
557
- position: S ? "absolute" : rn
553
+ height: S ? 0 : on,
554
+ overflowY: S ? "hidden" : on,
555
+ order: s ? h : on,
556
+ pointerEvents: S ? "none" : on,
557
+ position: S ? "absolute" : on
558
558
  });
559
559
  var v = {};
560
560
  S && (v["aria-hidden"] = !0);
561
- var N = /* @__PURE__ */ a.createElement(g, ae({
562
- className: ke(!r && t, b),
561
+ var E = /* @__PURE__ */ a.createElement(g, ae({
562
+ className: Oe(!r && t, b),
563
563
  style: T(T({}, C), f)
564
564
  }, v, M, {
565
565
  ref: n
566
566
  }), w);
567
- return s && (N = /* @__PURE__ */ a.createElement(cn, {
568
- onResize: function(D) {
569
- var B = D.offsetWidth;
570
- y(B);
567
+ return s && (E = /* @__PURE__ */ a.createElement(vn, {
568
+ onResize: function(K) {
569
+ var U = K.offsetWidth;
570
+ y(U);
571
571
  },
572
572
  disabled: l
573
- }, N)), N;
573
+ }, E)), E;
574
574
  }
575
575
  var wn = /* @__PURE__ */ a.forwardRef(si);
576
576
  wn.displayName = "Item";
577
577
  function li(e) {
578
578
  if (typeof MessageChannel > "u")
579
- Ht(e);
579
+ Jt(e);
580
580
  else {
581
581
  var n = new MessageChannel();
582
582
  n.port1.onmessage = function() {
@@ -597,27 +597,27 @@ function ui() {
597
597
  return n;
598
598
  }
599
599
  function gn(e, n) {
600
- var t = a.useState(n), r = k(t, 2), i = r[0], o = r[1], s = Kt(function(l) {
600
+ var t = a.useState(n), r = O(t, 2), i = r[0], o = r[1], s = Lt(function(l) {
601
601
  e(function() {
602
602
  o(l);
603
603
  });
604
604
  });
605
605
  return [i, s];
606
606
  }
607
- var Ln = /* @__PURE__ */ qe.createContext(null), ci = ["component"], fi = ["className"], vi = ["className"], di = function(n, t) {
607
+ var Ln = /* @__PURE__ */ je.createContext(null), ci = ["component"], fi = ["className"], vi = ["className"], di = function(n, t) {
608
608
  var r = a.useContext(Ln);
609
609
  if (!r) {
610
- var i = n.component, o = i === void 0 ? "div" : i, s = De(n, ci);
610
+ var i = n.component, o = i === void 0 ? "div" : i, s = ke(n, ci);
611
611
  return /* @__PURE__ */ a.createElement(o, ae({}, s, {
612
612
  ref: t
613
613
  }));
614
614
  }
615
- var l = r.className, u = De(r, fi), c = n.className, b = De(n, vi);
615
+ var l = r.className, u = ke(r, fi), c = n.className, b = ke(n, vi);
616
616
  return /* @__PURE__ */ a.createElement(Ln.Provider, {
617
617
  value: null
618
618
  }, /* @__PURE__ */ a.createElement(wn, ae({
619
619
  ref: t,
620
- className: ke(l, c)
620
+ className: Oe(l, c)
621
621
  }, u, b)));
622
622
  }, Xr = /* @__PURE__ */ a.forwardRef(di);
623
623
  Xr.displayName = "RawItem";
@@ -626,130 +626,130 @@ function hi(e) {
626
626
  return "+ ".concat(e.length, " ...");
627
627
  }
628
628
  function gi(e, n) {
629
- var t = e.prefixCls, r = t === void 0 ? "rc-overflow" : t, i = e.data, o = i === void 0 ? [] : i, s = e.renderItem, l = e.renderRawItem, u = e.itemKey, c = e.itemWidth, b = c === void 0 ? 10 : c, f = e.ssr, d = e.style, m = e.className, h = e.maxCount, E = e.renderRest, g = e.renderRawRest, M = e.suffix, S = e.component, y = S === void 0 ? "div" : S, w = e.itemComponent, C = e.onVisibleChange, v = De(e, mi), N = f === "full", O = ui(), D = gn(O, null), B = k(D, 2), $ = B[0], z = B[1], L = $ || 0, j = gn(O, /* @__PURE__ */ new Map()), Z = k(j, 2), q = Z[0], Q = Z[1], V = gn(O, 0), A = k(V, 2), x = A[0], Me = A[1], ue = gn(O, 0), G = k(ue, 2), K = G[0], W = G[1], ie = gn(O, 0), be = k(ie, 2), F = be[0], Y = be[1], te = Jn(null), pe = k(te, 2), oe = pe[0], _e = pe[1], Re = Jn(null), se = k(Re, 2), He = se[0], Be = se[1], ce = a.useMemo(function() {
630
- return He === null && N ? Number.MAX_SAFE_INTEGER : He || 0;
631
- }, [He, $]), Ie = Jn(!1), Ve = k(Ie, 2), de = Ve[0], ht = Ve[1], H = "".concat(r, "-item"), Ge = Math.max(x, K), Ce = h === ea, J = o.length && Ce, We = h === ta, Te = J || typeof h == "number" && o.length > h, Le = Xn(function() {
632
- var P = o;
633
- return J ? $ === null && N ? P = o : P = o.slice(0, Math.min(o.length, L / b)) : typeof h == "number" && (P = o.slice(0, h)), P;
634
- }, [o, b, $, h, J]), Je = Xn(function() {
635
- return J ? o.slice(ce + 1) : o.slice(Le.length);
636
- }, [o, Le, J, ce]), Ae = Tt(function(P, R) {
629
+ var t = e.prefixCls, r = t === void 0 ? "rc-overflow" : t, i = e.data, o = i === void 0 ? [] : i, s = e.renderItem, l = e.renderRawItem, u = e.itemKey, c = e.itemWidth, b = c === void 0 ? 10 : c, f = e.ssr, d = e.style, m = e.className, h = e.maxCount, R = e.renderRest, g = e.renderRawRest, M = e.suffix, S = e.component, y = S === void 0 ? "div" : S, w = e.itemComponent, C = e.onVisibleChange, v = ke(e, mi), E = f === "full", D = ui(), K = gn(D, null), U = O(K, 2), z = U[0], F = U[1], A = z || 0, j = gn(D, /* @__PURE__ */ new Map()), Z = O(j, 2), $ = Z[0], V = Z[1], N = gn(D, 0), q = O(N, 2), Q = q[0], ne = q[1], k = gn(D, 0), me = O(k, 2), Me = me[0], Y = me[1], G = gn(D, 0), he = O(G, 2), H = he[0], X = he[1], ie = Jn(null), ge = O(ie, 2), ve = ge[0], Ie = ge[1], ye = Jn(null), le = O(ye, 2), xe = le[0], He = le[1], Re = a.useMemo(function() {
630
+ return xe === null && E ? Number.MAX_SAFE_INTEGER : xe || 0;
631
+ }, [xe, z]), be = Jn(!1), We = O(be, 2), Se = We[0], qe = We[1], tt = "".concat(r, "-item"), W = Math.max(Q, Me), Ne = h === ea, J = o.length && Ne, nt = h === ta, Ae = J || typeof h == "number" && o.length > h, pe = Xn(function() {
632
+ var _ = o;
633
+ return J ? z === null && E ? _ = o : _ = o.slice(0, Math.min(o.length, A / b)) : typeof h == "number" && (_ = o.slice(0, h)), _;
634
+ }, [o, b, z, h, J]), Ge = Xn(function() {
635
+ return J ? o.slice(Re + 1) : o.slice(pe.length);
636
+ }, [o, pe, J, Re]), $e = At(function(_, x) {
637
637
  var I;
638
- return typeof u == "function" ? u(P) : (I = u && (P == null ? void 0 : P[u])) !== null && I !== void 0 ? I : R;
639
- }, [u]), we = Tt(s || function(P) {
640
- return P;
638
+ return typeof u == "function" ? u(_) : (I = u && (_ == null ? void 0 : _[u])) !== null && I !== void 0 ? I : x;
639
+ }, [u]), Ee = At(s || function(_) {
640
+ return _;
641
641
  }, [s]);
642
- function fe(P, R, I) {
643
- He === P && (R === void 0 || R === oe) || (Be(P), I || (ht(P < o.length - 1), C == null || C(P)), R !== void 0 && _e(R));
642
+ function Ke(_, x, I) {
643
+ xe === _ && (x === void 0 || x === ve) || (He(_), I || (qe(_ < o.length - 1), C == null || C(_)), x !== void 0 && Ie(x));
644
644
  }
645
- function Ee(P, R) {
646
- z(R.clientWidth);
645
+ function Pe(_, x) {
646
+ F(x.clientWidth);
647
647
  }
648
- function Ze(P, R) {
649
- Q(function(I) {
650
- var le = new Map(I);
651
- return R === null ? le.delete(P) : le.set(P, R), le;
648
+ function Ce(_, x) {
649
+ V(function(I) {
650
+ var L = new Map(I);
651
+ return x === null ? L.delete(_) : L.set(_, x), L;
652
652
  });
653
653
  }
654
- function ne(P, R) {
655
- W(R), Me(K);
654
+ function oe(_, x) {
655
+ Y(x), ne(Me);
656
656
  }
657
- function re(P, R) {
658
- Y(R);
657
+ function ee(_, x) {
658
+ X(x);
659
659
  }
660
- function $e(P) {
661
- return q.get(Ae(Le[P], P));
660
+ function ze(_) {
661
+ return $.get($e(pe[_], _));
662
662
  }
663
- it(function() {
664
- if (L && typeof Ge == "number" && Le) {
665
- var P = F, R = Le.length, I = R - 1;
666
- if (!R) {
667
- fe(0, null);
663
+ st(function() {
664
+ if (A && typeof W == "number" && pe) {
665
+ var _ = H, x = pe.length, I = x - 1;
666
+ if (!x) {
667
+ Ke(0, null);
668
668
  return;
669
669
  }
670
- for (var le = 0; le < R; le += 1) {
671
- var ge = $e(le);
672
- if (N && (ge = ge || 0), ge === void 0) {
673
- fe(le - 1, void 0, !0);
670
+ for (var L = 0; L < x; L += 1) {
671
+ var se = ze(L);
672
+ if (E && (se = se || 0), se === void 0) {
673
+ Ke(L - 1, void 0, !0);
674
674
  break;
675
675
  }
676
- if (P += ge, // Only one means `totalWidth` is the final width
677
- I === 0 && P <= L || // Last two width will be the final width
678
- le === I - 1 && P + $e(I) <= L) {
679
- fe(I, null);
676
+ if (_ += se, // Only one means `totalWidth` is the final width
677
+ I === 0 && _ <= A || // Last two width will be the final width
678
+ L === I - 1 && _ + ze(I) <= A) {
679
+ Ke(I, null);
680
680
  break;
681
- } else if (P + Ge > L) {
682
- fe(le - 1, P - ge - F + K);
681
+ } else if (_ + W > A) {
682
+ Ke(L - 1, _ - se - H + Me);
683
683
  break;
684
684
  }
685
685
  }
686
- M && $e(0) + F > L && _e(null);
686
+ M && ze(0) + H > A && Ie(null);
687
687
  }
688
- }, [L, q, K, F, Ae, Le]);
689
- var Et = de && !!Je.length, lt = {};
690
- oe !== null && J && (lt = {
688
+ }, [A, $, Me, H, $e, pe]);
689
+ var _t = Se && !!Ge.length, vt = {};
690
+ ve !== null && J && (vt = {
691
691
  position: "absolute",
692
- left: oe,
692
+ left: ve,
693
693
  top: 0
694
694
  });
695
- var rt = {
696
- prefixCls: H,
695
+ var Ze = {
696
+ prefixCls: tt,
697
697
  responsive: J,
698
698
  component: w,
699
- invalidate: We
700
- }, At = l ? function(P, R) {
701
- var I = Ae(P, R);
699
+ invalidate: nt
700
+ }, zt = l ? function(_, x) {
701
+ var I = $e(_, x);
702
702
  return /* @__PURE__ */ a.createElement(Ln.Provider, {
703
703
  key: I,
704
- value: T(T({}, rt), {}, {
705
- order: R,
706
- item: P,
704
+ value: T(T({}, Ze), {}, {
705
+ order: x,
706
+ item: _,
707
707
  itemKey: I,
708
- registerSize: Ze,
709
- display: R <= ce
708
+ registerSize: Ce,
709
+ display: x <= Re
710
710
  })
711
- }, l(P, R));
712
- } : function(P, R) {
713
- var I = Ae(P, R);
714
- return /* @__PURE__ */ a.createElement(wn, ae({}, rt, {
715
- order: R,
711
+ }, l(_, x));
712
+ } : function(_, x) {
713
+ var I = $e(_, x);
714
+ return /* @__PURE__ */ a.createElement(wn, ae({}, Ze, {
715
+ order: x,
716
716
  key: I,
717
- item: P,
718
- renderItem: we,
717
+ item: _,
718
+ renderItem: Ee,
719
719
  itemKey: I,
720
- registerSize: Ze,
721
- display: R <= ce
720
+ registerSize: Ce,
721
+ display: x <= Re
722
722
  }));
723
- }, Oe = {
724
- order: Et ? ce : Number.MAX_SAFE_INTEGER,
725
- className: "".concat(H, "-rest"),
726
- registerSize: ne,
727
- display: Et
728
- }, Pe = E || hi, ut = g ? /* @__PURE__ */ a.createElement(Ln.Provider, {
729
- value: T(T({}, rt), Oe)
730
- }, g(Je)) : /* @__PURE__ */ a.createElement(wn, ae({}, rt, Oe), typeof Pe == "function" ? Pe(Je) : Pe), me = /* @__PURE__ */ a.createElement(y, ae({
731
- className: ke(!We && r, m),
723
+ }, rt = {
724
+ order: _t ? Re : Number.MAX_SAFE_INTEGER,
725
+ className: "".concat(tt, "-rest"),
726
+ registerSize: oe,
727
+ display: _t
728
+ }, Fe = R || hi, _e = g ? /* @__PURE__ */ a.createElement(Ln.Provider, {
729
+ value: T(T({}, Ze), rt)
730
+ }, g(Ge)) : /* @__PURE__ */ a.createElement(wn, ae({}, Ze, rt), typeof Fe == "function" ? Fe(Ge) : Fe), ce = /* @__PURE__ */ a.createElement(y, ae({
731
+ className: Oe(!nt && r, m),
732
732
  style: d,
733
733
  ref: n
734
- }, v), Le.map(At), Te ? ut : null, M && /* @__PURE__ */ a.createElement(wn, ae({}, rt, {
735
- responsive: Ce,
734
+ }, v), pe.map(zt), Ae ? _e : null, M && /* @__PURE__ */ a.createElement(wn, ae({}, Ze, {
735
+ responsive: Ne,
736
736
  responsiveDisabled: !J,
737
- order: ce,
738
- className: "".concat(H, "-suffix"),
739
- registerSize: re,
737
+ order: Re,
738
+ className: "".concat(tt, "-suffix"),
739
+ registerSize: ee,
740
740
  display: !0,
741
- style: lt
741
+ style: vt
742
742
  }), M));
743
- return Ce ? /* @__PURE__ */ a.createElement(cn, {
744
- onResize: Ee,
743
+ return Ne ? /* @__PURE__ */ a.createElement(vn, {
744
+ onResize: Pe,
745
745
  disabled: !J
746
- }, me) : me;
746
+ }, ce) : ce;
747
747
  }
748
- var Mt = /* @__PURE__ */ a.forwardRef(gi);
749
- Mt.displayName = "Overflow";
750
- Mt.Item = Xr;
751
- Mt.RESPONSIVE = ea;
752
- Mt.INVALIDATE = ta;
748
+ var Pt = /* @__PURE__ */ a.forwardRef(gi);
749
+ Pt.displayName = "Overflow";
750
+ Pt.Item = Xr;
751
+ Pt.RESPONSIVE = ea;
752
+ Pt.INVALIDATE = ta;
753
753
  function yi(e) {
754
754
  var n = e.prefixCls, t = e.align, r = e.arrow, i = e.arrowPos, o = r || {}, s = o.className, l = o.content, u = i.x, c = u === void 0 ? 0 : u, b = i.y, f = b === void 0 ? 0 : b, d = a.useRef();
755
755
  if (!t || !t.points)
@@ -758,12 +758,12 @@ function yi(e) {
758
758
  position: "absolute"
759
759
  };
760
760
  if (t.autoArrow !== !1) {
761
- var h = t.points[0], E = t.points[1], g = h[0], M = h[1], S = E[0], y = E[1];
761
+ var h = t.points[0], R = t.points[1], g = h[0], M = h[1], S = R[0], y = R[1];
762
762
  g === S || !["t", "b"].includes(g) ? m.top = f : g === "t" ? m.top = 0 : m.bottom = 0, M === y || !["l", "r"].includes(M) ? m.left = c : M === "l" ? m.left = 0 : m.right = 0;
763
763
  }
764
764
  return /* @__PURE__ */ a.createElement("div", {
765
765
  ref: d,
766
- className: ke("".concat(n, "-arrow"), s),
766
+ className: Oe("".concat(n, "-arrow"), s),
767
767
  style: m
768
768
  }, l);
769
769
  }
@@ -779,7 +779,7 @@ function bi(e) {
779
779
  style: {
780
780
  zIndex: r
781
781
  },
782
- className: ke("".concat(n, "-mask"), l)
782
+ className: Oe("".concat(n, "-mask"), l)
783
783
  });
784
784
  }) : null;
785
785
  }
@@ -791,24 +791,24 @@ var na = /* @__PURE__ */ a.memo(function(e) {
791
791
  });
792
792
  process.env.NODE_ENV !== "production" && (na.displayName = "PopupContent");
793
793
  var ra = /* @__PURE__ */ a.forwardRef(function(e, n) {
794
- var t = e.popup, r = e.className, i = e.prefixCls, o = e.style, s = e.target, l = e.onVisibleChanged, u = e.open, c = e.keepDom, b = e.fresh, f = e.onClick, d = e.mask, m = e.arrow, h = e.arrowPos, E = e.align, g = e.motion, M = e.maskMotion, S = e.forceRender, y = e.getPopupContainer, w = e.autoDestroy, C = e.portal, v = e.zIndex, N = e.onMouseEnter, O = e.onMouseLeave, D = e.onPointerEnter, B = e.onPointerDownCapture, $ = e.ready, z = e.offsetX, L = e.offsetY, j = e.offsetR, Z = e.offsetB, q = e.onAlign, Q = e.onPrepare, V = e.stretch, A = e.targetWidth, x = e.targetHeight, Me = typeof t == "function" ? t() : t, ue = u || c, G = (y == null ? void 0 : y.length) > 0, K = a.useState(!y || !G), W = k(K, 2), ie = W[0], be = W[1];
795
- if (it(function() {
796
- !ie && G && s && be(!0);
797
- }, [ie, G, s]), !ie)
794
+ var t = e.popup, r = e.className, i = e.prefixCls, o = e.style, s = e.target, l = e.onVisibleChanged, u = e.open, c = e.keepDom, b = e.fresh, f = e.onClick, d = e.mask, m = e.arrow, h = e.arrowPos, R = e.align, g = e.motion, M = e.maskMotion, S = e.forceRender, y = e.getPopupContainer, w = e.autoDestroy, C = e.portal, v = e.zIndex, E = e.onMouseEnter, D = e.onMouseLeave, K = e.onPointerEnter, U = e.onPointerDownCapture, z = e.ready, F = e.offsetX, A = e.offsetY, j = e.offsetR, Z = e.offsetB, $ = e.onAlign, V = e.onPrepare, N = e.stretch, q = e.targetWidth, Q = e.targetHeight, ne = typeof t == "function" ? t() : t, k = u || c, me = (y == null ? void 0 : y.length) > 0, Me = a.useState(!y || !me), Y = O(Me, 2), G = Y[0], he = Y[1];
795
+ if (st(function() {
796
+ !G && me && s && he(!0);
797
+ }, [G, me, s]), !G)
798
798
  return null;
799
- var F = "auto", Y = {
799
+ var H = "auto", X = {
800
800
  left: "-1000vw",
801
801
  top: "-1000vh",
802
- right: F,
803
- bottom: F
802
+ right: H,
803
+ bottom: H
804
804
  };
805
- if ($ || !u) {
806
- var te, pe = E.points, oe = E.dynamicInset || ((te = E._experimental) === null || te === void 0 ? void 0 : te.dynamicInset), _e = oe && pe[0][1] === "r", Re = oe && pe[0][0] === "b";
807
- _e ? (Y.right = j, Y.left = F) : (Y.left = z, Y.right = F), Re ? (Y.bottom = Z, Y.top = F) : (Y.top = L, Y.bottom = F);
805
+ if (z || !u) {
806
+ var ie, ge = R.points, ve = R.dynamicInset || ((ie = R._experimental) === null || ie === void 0 ? void 0 : ie.dynamicInset), Ie = ve && ge[0][1] === "r", ye = ve && ge[0][0] === "b";
807
+ Ie ? (X.right = j, X.left = H) : (X.left = F, X.right = H), ye ? (X.bottom = Z, X.top = H) : (X.top = A, X.bottom = H);
808
808
  }
809
- var se = {};
810
- return V && (V.includes("height") && x ? se.height = x : V.includes("minHeight") && x && (se.minHeight = x), V.includes("width") && A ? se.width = A : V.includes("minWidth") && A && (se.minWidth = A)), u || (se.pointerEvents = "none"), /* @__PURE__ */ a.createElement(C, {
811
- open: S || ue,
809
+ var le = {};
810
+ return N && (N.includes("height") && Q ? le.height = Q : N.includes("minHeight") && Q && (le.minHeight = Q), N.includes("width") && q ? le.width = q : N.includes("minWidth") && q && (le.minWidth = q)), u || (le.pointerEvents = "none"), /* @__PURE__ */ a.createElement(C, {
811
+ open: S || k,
812
812
  getContainer: y && function() {
813
813
  return y(s);
814
814
  },
@@ -819,10 +819,10 @@ var ra = /* @__PURE__ */ a.forwardRef(function(e, n) {
819
819
  zIndex: v,
820
820
  mask: d,
821
821
  motion: M
822
- }), /* @__PURE__ */ a.createElement(cn, {
823
- onResize: q,
822
+ }), /* @__PURE__ */ a.createElement(vn, {
823
+ onResize: $,
824
824
  disabled: !u
825
- }, function(He) {
825
+ }, function(xe) {
826
826
  return /* @__PURE__ */ a.createElement(cr, ae({
827
827
  motionAppear: !0,
828
828
  motionEnter: !0,
@@ -831,38 +831,38 @@ var ra = /* @__PURE__ */ a.forwardRef(function(e, n) {
831
831
  forceRender: S,
832
832
  leavedClassName: "".concat(i, "-hidden")
833
833
  }, g, {
834
- onAppearPrepare: Q,
835
- onEnterPrepare: Q,
834
+ onAppearPrepare: V,
835
+ onEnterPrepare: V,
836
836
  visible: u,
837
- onVisibleChanged: function(ce) {
838
- var Ie;
839
- g == null || (Ie = g.onVisibleChanged) === null || Ie === void 0 || Ie.call(g, ce), l(ce);
837
+ onVisibleChanged: function(Re) {
838
+ var be;
839
+ g == null || (be = g.onVisibleChanged) === null || be === void 0 || be.call(g, Re), l(Re);
840
840
  }
841
- }), function(Be, ce) {
842
- var Ie = Be.className, Ve = Be.style, de = ke(i, Ie, r);
841
+ }), function(He, Re) {
842
+ var be = He.className, We = He.style, Se = Oe(i, be, r);
843
843
  return /* @__PURE__ */ a.createElement("div", {
844
- ref: fr(He, n, ce),
845
- className: de,
844
+ ref: fr(xe, n, Re),
845
+ className: Se,
846
846
  style: T(T(T(T({
847
847
  "--arrow-x": "".concat(h.x || 0, "px"),
848
848
  "--arrow-y": "".concat(h.y || 0, "px")
849
- }, Y), se), Ve), {}, {
849
+ }, X), le), We), {}, {
850
850
  boxSizing: "border-box",
851
851
  zIndex: v
852
852
  }, o),
853
- onMouseEnter: N,
854
- onMouseLeave: O,
855
- onPointerEnter: D,
853
+ onMouseEnter: E,
854
+ onMouseLeave: D,
855
+ onPointerEnter: K,
856
856
  onClick: f,
857
- onPointerDownCapture: B
857
+ onPointerDownCapture: U
858
858
  }, m && /* @__PURE__ */ a.createElement(yi, {
859
859
  prefixCls: i,
860
860
  arrow: m,
861
861
  arrowPos: h,
862
- align: E
862
+ align: R
863
863
  }), /* @__PURE__ */ a.createElement(na, {
864
864
  cache: !u && !b
865
- }, Me));
865
+ }, ne));
866
866
  });
867
867
  }));
868
868
  });
@@ -898,19 +898,19 @@ function wi(e, n, t, r) {
898
898
  }
899
899
  return "";
900
900
  }
901
- function Er(e, n, t, r) {
901
+ function Sr(e, n, t, r) {
902
902
  return n || (t ? {
903
903
  motionName: "".concat(e, "-").concat(t)
904
904
  } : r ? {
905
905
  motionName: r
906
906
  } : null);
907
907
  }
908
- function En(e) {
908
+ function Sn(e) {
909
909
  return e.ownerDocument.defaultView;
910
910
  }
911
911
  function nr(e) {
912
912
  for (var n = [], t = e == null ? void 0 : e.parentElement, r = ["hidden", "scroll", "clip", "auto"]; t; ) {
913
- var i = En(t).getComputedStyle(t), o = i.overflowX, s = i.overflowY, l = i.overflow;
913
+ var i = Sn(t).getComputedStyle(t), o = i.overflowX, s = i.overflowY, l = i.overflow;
914
914
  [o, s, l].some(function(u) {
915
915
  return r.includes(u);
916
916
  }) && n.push(t), t = t.parentElement;
@@ -924,17 +924,17 @@ function Mn(e) {
924
924
  function yn(e) {
925
925
  return Mn(parseFloat(e), 0);
926
926
  }
927
- function Sr(e, n) {
927
+ function Er(e, n) {
928
928
  var t = T({}, e);
929
929
  return (n || []).forEach(function(r) {
930
930
  if (!(r instanceof HTMLBodyElement || r instanceof HTMLHtmlElement)) {
931
- var i = En(r).getComputedStyle(r), o = i.overflow, s = i.overflowClipMargin, l = i.borderTopWidth, u = i.borderBottomWidth, c = i.borderLeftWidth, b = i.borderRightWidth, f = r.getBoundingClientRect(), d = r.offsetHeight, m = r.clientHeight, h = r.offsetWidth, E = r.clientWidth, g = yn(l), M = yn(u), S = yn(c), y = yn(b), w = Mn(Math.round(f.width / h * 1e3) / 1e3), C = Mn(Math.round(f.height / d * 1e3) / 1e3), v = (h - E - S - y) * w, N = (d - m - g - M) * C, O = g * C, D = M * C, B = S * w, $ = y * w, z = 0, L = 0;
931
+ var i = Sn(r).getComputedStyle(r), o = i.overflow, s = i.overflowClipMargin, l = i.borderTopWidth, u = i.borderBottomWidth, c = i.borderLeftWidth, b = i.borderRightWidth, f = r.getBoundingClientRect(), d = r.offsetHeight, m = r.clientHeight, h = r.offsetWidth, R = r.clientWidth, g = yn(l), M = yn(u), S = yn(c), y = yn(b), w = Mn(Math.round(f.width / h * 1e3) / 1e3), C = Mn(Math.round(f.height / d * 1e3) / 1e3), v = (h - R - S - y) * w, E = (d - m - g - M) * C, D = g * C, K = M * C, U = S * w, z = y * w, F = 0, A = 0;
932
932
  if (o === "clip") {
933
933
  var j = yn(s);
934
- z = j * w, L = j * C;
934
+ F = j * w, A = j * C;
935
935
  }
936
- var Z = f.x + B - z, q = f.y + O - L, Q = Z + f.width + 2 * z - B - $ - v, V = q + f.height + 2 * L - O - D - N;
937
- t.left = Math.max(t.left, Z), t.top = Math.max(t.top, q), t.right = Math.min(t.right, Q), t.bottom = Math.min(t.bottom, V);
936
+ var Z = f.x + U - F, $ = f.y + D - A, V = Z + f.width + 2 * F - U - z - v, N = $ + f.height + 2 * A - D - K - E;
937
+ t.left = Math.max(t.left, Z), t.top = Math.max(t.top, $), t.right = Math.min(t.right, V), t.bottom = Math.min(t.bottom, N);
938
938
  }
939
939
  }), t;
940
940
  }
@@ -943,21 +943,21 @@ function Pr(e) {
943
943
  return r ? e * (parseFloat(r[1]) / 100) : parseFloat(t);
944
944
  }
945
945
  function Nr(e, n) {
946
- var t = n || [], r = k(t, 2), i = r[0], o = r[1];
946
+ var t = n || [], r = O(t, 2), i = r[0], o = r[1];
947
947
  return [Pr(e.width, i), Pr(e.height, o)];
948
948
  }
949
949
  function _r() {
950
950
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
951
951
  return [e[0], e[1]];
952
952
  }
953
- function an(e, n) {
953
+ function sn(e, n) {
954
954
  var t = n[0], r = n[1], i, o;
955
955
  return t === "t" ? o = e.y : t === "b" ? o = e.y + e.height : o = e.y + e.height / 2, r === "l" ? i = e.x : r === "r" ? i = e.x + e.width : i = e.x + e.width / 2, {
956
956
  x: i,
957
957
  y: o
958
958
  };
959
959
  }
960
- function Ot(e, n) {
960
+ function Tt(e, n) {
961
961
  var t = {
962
962
  t: "b",
963
963
  b: "t",
@@ -980,128 +980,128 @@ function Mi(e, n, t, r, i, o, s) {
980
980
  scaleX: 1,
981
981
  scaleY: 1,
982
982
  align: i[r] || {}
983
- }), u = k(l, 2), c = u[0], b = u[1], f = a.useRef(0), d = a.useMemo(function() {
983
+ }), u = O(l, 2), c = u[0], b = u[1], f = a.useRef(0), d = a.useMemo(function() {
984
984
  return n ? nr(n) : [];
985
985
  }, [n]), m = a.useRef({}), h = function() {
986
986
  m.current = {};
987
987
  };
988
988
  e || h();
989
- var E = Kt(function() {
989
+ var R = Lt(function() {
990
990
  if (n && t && e) {
991
- let nt = function(nn, Dt) {
992
- var kt = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ge, hn = K.x + nn, Nn = K.y + Dt, Bn = hn + _e, Un = Nn + oe, jn = Math.max(hn, kt.left), p = Math.max(Nn, kt.top), _ = Math.min(Bn, kt.right), ve = Math.min(Un, kt.bottom);
993
- return Math.max(0, (_ - jn) * (ve - p));
994
- }, Pn = function() {
995
- Fe = K.y + I, vt = Fe + oe, Ye = K.x + R, Pt = Ye + _e;
991
+ let et = function(hn, St) {
992
+ var qt = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ne, Pn = k.x + hn, Nn = k.y + St, Un = Pn + ye, jn = Nn + Ie, p = Math.max(Pn, qt.left), P = Math.max(Nn, qt.top), ue = Math.min(Un, qt.right), we = Math.min(jn, qt.bottom);
993
+ return Math.max(0, (ue - p) * (we - P));
994
+ }, an = function() {
995
+ at = k.y + L, it = at + Ie, yt = k.x + I, Ye = yt + ye;
996
996
  };
997
- var S, y, w, C, v = n, N = v.ownerDocument, O = En(v), D = O.getComputedStyle(v), B = D.width, $ = D.height, z = D.position, L = v.style.left, j = v.style.top, Z = v.style.right, q = v.style.bottom, Q = v.style.overflow, V = T(T({}, i[r]), o), A = N.createElement("div");
998
- (S = v.parentElement) === null || S === void 0 || S.appendChild(A), A.style.left = "".concat(v.offsetLeft, "px"), A.style.top = "".concat(v.offsetTop, "px"), A.style.position = z, A.style.height = "".concat(v.offsetHeight, "px"), A.style.width = "".concat(v.offsetWidth, "px"), v.style.left = "0", v.style.top = "0", v.style.right = "auto", v.style.bottom = "auto", v.style.overflow = "hidden";
999
- var x;
997
+ var S, y, w, C, v = n, E = v.ownerDocument, D = Sn(v), K = D.getComputedStyle(v), U = K.position, z = v.style.left, F = v.style.top, A = v.style.right, j = v.style.bottom, Z = v.style.overflow, $ = T(T({}, i[r]), o), V = E.createElement("div");
998
+ (S = v.parentElement) === null || S === void 0 || S.appendChild(V), V.style.left = "".concat(v.offsetLeft, "px"), V.style.top = "".concat(v.offsetTop, "px"), V.style.position = U, V.style.height = "".concat(v.offsetHeight, "px"), V.style.width = "".concat(v.offsetWidth, "px"), v.style.left = "0", v.style.top = "0", v.style.right = "auto", v.style.bottom = "auto", v.style.overflow = "hidden";
999
+ var N;
1000
1000
  if (Array.isArray(t))
1001
- x = {
1001
+ N = {
1002
1002
  x: t[0],
1003
1003
  y: t[1],
1004
1004
  width: 0,
1005
1005
  height: 0
1006
1006
  };
1007
1007
  else {
1008
- var Me, ue, G = t.getBoundingClientRect();
1009
- G.x = (Me = G.x) !== null && Me !== void 0 ? Me : G.left, G.y = (ue = G.y) !== null && ue !== void 0 ? ue : G.top, x = {
1010
- x: G.x,
1011
- y: G.y,
1012
- width: G.width,
1013
- height: G.height
1008
+ var q, Q, ne = t.getBoundingClientRect();
1009
+ ne.x = (q = ne.x) !== null && q !== void 0 ? q : ne.left, ne.y = (Q = ne.y) !== null && Q !== void 0 ? Q : ne.top, N = {
1010
+ x: ne.x,
1011
+ y: ne.y,
1012
+ width: ne.width,
1013
+ height: ne.height
1014
1014
  };
1015
1015
  }
1016
- var K = v.getBoundingClientRect();
1017
- K.x = (y = K.x) !== null && y !== void 0 ? y : K.left, K.y = (w = K.y) !== null && w !== void 0 ? w : K.top;
1018
- var W = N.documentElement, ie = W.clientWidth, be = W.clientHeight, F = W.scrollWidth, Y = W.scrollHeight, te = W.scrollTop, pe = W.scrollLeft, oe = K.height, _e = K.width, Re = x.height, se = x.width, He = {
1016
+ var k = v.getBoundingClientRect(), me = D.getComputedStyle(v), Me = me.height, Y = me.width;
1017
+ k.x = (y = k.x) !== null && y !== void 0 ? y : k.left, k.y = (w = k.y) !== null && w !== void 0 ? w : k.top;
1018
+ var G = E.documentElement, he = G.clientWidth, H = G.clientHeight, X = G.scrollWidth, ie = G.scrollHeight, ge = G.scrollTop, ve = G.scrollLeft, Ie = k.height, ye = k.width, le = N.height, xe = N.width, He = {
1019
1019
  left: 0,
1020
1020
  top: 0,
1021
- right: ie,
1022
- bottom: be
1023
- }, Be = {
1024
- left: -pe,
1025
- top: -te,
1026
- right: F - pe,
1027
- bottom: Y - te
1028
- }, ce = V.htmlRegion, Ie = "visible", Ve = "visibleFirst";
1029
- ce !== "scroll" && ce !== Ve && (ce = Ie);
1030
- var de = ce === Ve, ht = Sr(Be, d), H = Sr(He, d), Ge = ce === Ie ? H : ht, Ce = de ? H : Ge;
1021
+ right: he,
1022
+ bottom: H
1023
+ }, Re = {
1024
+ left: -ve,
1025
+ top: -ge,
1026
+ right: X - ve,
1027
+ bottom: ie - ge
1028
+ }, be = $.htmlRegion, We = "visible", Se = "visibleFirst";
1029
+ be !== "scroll" && be !== Se && (be = We);
1030
+ var qe = be === Se, tt = Er(Re, d), W = Er(He, d), Ne = be === We ? W : tt, J = qe ? W : Ne;
1031
1031
  v.style.left = "auto", v.style.top = "auto", v.style.right = "0", v.style.bottom = "0";
1032
- var J = v.getBoundingClientRect();
1033
- v.style.left = L, v.style.top = j, v.style.right = Z, v.style.bottom = q, v.style.overflow = Q, (C = v.parentElement) === null || C === void 0 || C.removeChild(A);
1034
- var We = Mn(Math.round(_e / parseFloat(B) * 1e3) / 1e3), Te = Mn(Math.round(oe / parseFloat($) * 1e3) / 1e3);
1035
- if (We === 0 || Te === 0 || Qn(t) && !Wr(t))
1032
+ var nt = v.getBoundingClientRect();
1033
+ v.style.left = z, v.style.top = F, v.style.right = A, v.style.bottom = j, v.style.overflow = Z, (C = v.parentElement) === null || C === void 0 || C.removeChild(V);
1034
+ var Ae = Mn(Math.round(ye / parseFloat(Y) * 1e3) / 1e3), pe = Mn(Math.round(Ie / parseFloat(Me) * 1e3) / 1e3);
1035
+ if (Ae === 0 || pe === 0 || Qn(t) && !Wr(t))
1036
1036
  return;
1037
- var Le = V.offset, Je = V.targetOffset, Ae = Nr(K, Le), we = k(Ae, 2), fe = we[0], Ee = we[1], Ze = Nr(x, Je), ne = k(Ze, 2), re = ne[0], $e = ne[1];
1038
- x.x -= re, x.y -= $e;
1039
- var Et = V.points || [], lt = k(Et, 2), rt = lt[0], At = lt[1], Oe = _r(At), Pe = _r(rt), ut = an(x, Oe), me = an(K, Pe), P = T({}, V), R = ut.x - me.x + fe, I = ut.y - me.y + Ee, le = nt(R, I), ge = nt(R, I, H), $t = an(x, ["t", "l"]), Ue = an(K, ["t", "l"]), zt = an(x, ["b", "r"]), Vt = an(K, ["b", "r"]), ct = V.overflow || {}, Bt = ct.adjustX, Ut = ct.adjustY, ft = ct.shiftX, St = ct.shiftY, gt = function(Dt) {
1040
- return typeof Dt == "boolean" ? Dt : Dt >= 0;
1041
- }, Fe, vt, Ye, Pt;
1042
- Pn();
1043
- var dt = gt(Ut), jt = Pe[0] === Oe[0];
1044
- if (dt && Pe[0] === "t" && (vt > Ce.bottom || m.current.bt)) {
1045
- var Se = I;
1046
- jt ? Se -= oe - Re : Se = $t.y - Vt.y - Ee;
1047
- var qt = nt(R, Se), fn = nt(R, Se, H);
1037
+ var Ge = $.offset, $e = $.targetOffset, Ee = Nr(k, Ge), Ke = O(Ee, 2), Pe = Ke[0], Ce = Ke[1], oe = Nr(N, $e), ee = O(oe, 2), ze = ee[0], _t = ee[1];
1038
+ N.x -= ze, N.y -= _t;
1039
+ var vt = $.points || [], Ze = O(vt, 2), zt = Ze[0], rt = Ze[1], Fe = _r(rt), _e = _r(zt), ce = sn(N, Fe), _ = sn(k, _e), x = T({}, $), I = ce.x - _.x + Pe, L = ce.y - _.y + Ce, se = et(I, L), dt = et(I, L, W), Be = sn(N, ["t", "l"]), Vt = sn(k, ["t", "l"]), Wt = sn(N, ["b", "r"]), It = sn(k, ["b", "r"]), mt = $.overflow || {}, Zt = mt.adjustX, ht = mt.adjustY, xt = mt.shiftX, gt = mt.shiftY, Qe = function(St) {
1040
+ return typeof St == "boolean" ? St : St >= 0;
1041
+ }, at, it, yt, Ye;
1042
+ an();
1043
+ var Qt = Qe(ht), Te = _e[0] === Fe[0];
1044
+ if (Qt && _e[0] === "t" && (it > J.bottom || m.current.bt)) {
1045
+ var bt = L;
1046
+ Te ? bt -= Ie - le : bt = Be.y - It.y - Ce;
1047
+ var Yt = et(I, bt), dn = et(I, bt, W);
1048
1048
  // Of course use larger one
1049
- qt > le || qt === le && (!de || // Choose recommend one
1050
- fn >= ge) ? (m.current.bt = !0, I = Se, Ee = -Ee, P.points = [Ot(Pe, 0), Ot(Oe, 0)]) : m.current.bt = !1;
1049
+ Yt > se || Yt === se && (!qe || // Choose recommend one
1050
+ dn >= dt) ? (m.current.bt = !0, L = bt, Ce = -Ce, x.points = [Tt(_e, 0), Tt(Fe, 0)]) : m.current.bt = !1;
1051
1051
  }
1052
- if (dt && Pe[0] === "b" && (Fe < Ce.top || m.current.tb)) {
1053
- var yt = I;
1054
- jt ? yt += oe - Re : yt = zt.y - Ue.y - Ee;
1055
- var Gt = nt(R, yt), Jt = nt(R, yt, H);
1052
+ if (Qt && _e[0] === "b" && (at < J.top || m.current.tb)) {
1053
+ var pt = L;
1054
+ Te ? pt += Ie - le : pt = Wt.y - Vt.y - Ce;
1055
+ var Ft = et(I, pt), Ct = et(I, pt, W);
1056
1056
  // Of course use larger one
1057
- Gt > le || Gt === le && (!de || // Choose recommend one
1058
- Jt >= ge) ? (m.current.tb = !0, I = yt, Ee = -Ee, P.points = [Ot(Pe, 0), Ot(Oe, 0)]) : m.current.tb = !1;
1057
+ Ft > se || Ft === se && (!qe || // Choose recommend one
1058
+ Ct >= dt) ? (m.current.tb = !0, L = pt, Ce = -Ce, x.points = [Tt(_e, 0), Tt(Fe, 0)]) : m.current.tb = !1;
1059
1059
  }
1060
- var mt = gt(Bt), Nt = Pe[1] === Oe[1];
1061
- if (mt && Pe[1] === "l" && (Pt > Ce.right || m.current.rl)) {
1062
- var bt = R;
1063
- Nt ? bt -= _e - se : bt = $t.x - Vt.x - fe;
1064
- var Zt = nt(bt, I), _t = nt(bt, I, H);
1060
+ var Dt = Qe(Zt), Xt = _e[1] === Fe[1];
1061
+ if (Dt && _e[1] === "l" && (Ye > J.right || m.current.rl)) {
1062
+ var wt = I;
1063
+ Xt ? wt -= ye - xe : wt = Be.x - It.x - Pe;
1064
+ var Mt = et(wt, L), kt = et(wt, L, W);
1065
1065
  // Of course use larger one
1066
- Zt > le || Zt === le && (!de || // Choose recommend one
1067
- _t >= ge) ? (m.current.rl = !0, R = bt, fe = -fe, P.points = [Ot(Pe, 1), Ot(Oe, 1)]) : m.current.rl = !1;
1066
+ Mt > se || Mt === se && (!qe || // Choose recommend one
1067
+ kt >= dt) ? (m.current.rl = !0, I = wt, Pe = -Pe, x.points = [Tt(_e, 1), Tt(Fe, 1)]) : m.current.rl = !1;
1068
1068
  }
1069
- if (mt && Pe[1] === "r" && (Ye < Ce.left || m.current.lr)) {
1070
- var Xe = R;
1071
- Nt ? Xe += _e - se : Xe = zt.x - Ue.x - fe;
1072
- var pt = nt(Xe, I), Qt = nt(Xe, I, H);
1069
+ if (Dt && _e[1] === "r" && (yt < J.left || m.current.lr)) {
1070
+ var Xe = I;
1071
+ Xt ? Xe += ye - xe : Xe = Wt.x - Vt.x - Pe;
1072
+ var Ht = et(Xe, L), Ot = et(Xe, L, W);
1073
1073
  // Of course use larger one
1074
- pt > le || pt === le && (!de || // Choose recommend one
1075
- Qt >= ge) ? (m.current.lr = !0, R = Xe, fe = -fe, P.points = [Ot(Pe, 1), Ot(Oe, 1)]) : m.current.lr = !1;
1074
+ Ht > se || Ht === se && (!qe || // Choose recommend one
1075
+ Ot >= dt) ? (m.current.lr = !0, I = Xe, Pe = -Pe, x.points = [Tt(_e, 1), Tt(Fe, 1)]) : m.current.lr = !1;
1076
1076
  }
1077
- Pn();
1078
- var et = ft === !0 ? 0 : ft;
1079
- typeof et == "number" && (Ye < H.left && (R -= Ye - H.left - fe, x.x + se < H.left + et && (R += x.x - H.left + se - et)), Pt > H.right && (R -= Pt - H.right - fe, x.x > H.right - et && (R += x.x - H.right + et)));
1080
- var Qe = St === !0 ? 0 : St;
1081
- typeof Qe == "number" && (Fe < H.top && (I -= Fe - H.top - Ee, x.y + Re < H.top + Qe && (I += x.y - H.top + Re - Qe)), vt > H.bottom && (I -= vt - H.bottom - Ee, x.y > H.bottom - Qe && (I += x.y - H.bottom + Qe)));
1082
- var Ct = K.x + R, It = Ct + _e, tt = K.y + I, vn = tt + oe, Yt = x.x, dn = Yt + se, X = x.y, U = X + Re, ee = Math.max(Ct, Yt), Ke = Math.min(It, dn), xe = (ee + Ke) / 2, xt = xe - Ct, Wt = Math.max(tt, X), Xt = Math.min(vn, U), en = (Wt + Xt) / 2, tn = en - tt;
1083
- s == null || s(n, P);
1084
- var at = J.right - K.x - (R + K.width), je = J.bottom - K.y - (I + K.height);
1085
- We === 1 && (R = Math.round(R), at = Math.round(at)), Te === 1 && (I = Math.round(I), je = Math.round(je));
1086
- var mn = {
1077
+ an();
1078
+ var Je = xt === !0 ? 0 : xt;
1079
+ typeof Je == "number" && (yt < W.left && (I -= yt - W.left - Pe, N.x + xe < W.left + Je && (I += N.x - W.left + xe - Je)), Ye > W.right && (I -= Ye - W.right - Pe, N.x > W.right - Je && (I += N.x - W.right + Je)));
1080
+ var ot = gt === !0 ? 0 : gt;
1081
+ typeof ot == "number" && (at < W.top && (L -= at - W.top - Ce, N.y + le < W.top + ot && (L += N.y - W.top + le - ot)), it > W.bottom && (L -= it - W.bottom - Ce, N.y > W.bottom - ot && (L += N.y - W.bottom + ot)));
1082
+ var ct = k.x + I, ft = ct + ye, Bt = k.y + L, mn = Bt + Ie, en = N.x, re = en + xe, B = N.y, te = B + le, Le = Math.max(ct, en), De = Math.min(ft, re), Kt = (Le + De) / 2, Ut = Kt - ct, tn = Math.max(Bt, B), nn = Math.min(mn, te), rn = (tn + nn) / 2, Rt = rn - Bt;
1083
+ s == null || s(n, x);
1084
+ var Ue = nt.right - k.x - (I + k.width), jt = nt.bottom - k.y - (L + k.height);
1085
+ Ae === 1 && (I = Math.round(I), Ue = Math.round(Ue)), pe === 1 && (L = Math.round(L), jt = Math.round(jt));
1086
+ var Bn = {
1087
1087
  ready: !0,
1088
- offsetX: R / We,
1089
- offsetY: I / Te,
1090
- offsetR: at / We,
1091
- offsetB: je / Te,
1092
- arrowX: xt / We,
1093
- arrowY: tn / Te,
1094
- scaleX: We,
1095
- scaleY: Te,
1096
- align: P
1088
+ offsetX: I / Ae,
1089
+ offsetY: L / pe,
1090
+ offsetR: Ue / Ae,
1091
+ offsetB: jt / pe,
1092
+ arrowX: Ut / Ae,
1093
+ arrowY: Rt / pe,
1094
+ scaleX: Ae,
1095
+ scaleY: pe,
1096
+ align: x
1097
1097
  };
1098
- b(mn);
1098
+ b(Bn);
1099
1099
  }
1100
1100
  }), g = function() {
1101
1101
  f.current += 1;
1102
1102
  var y = f.current;
1103
1103
  Promise.resolve().then(function() {
1104
- f.current === y && E();
1104
+ f.current === y && R();
1105
1105
  });
1106
1106
  }, M = function() {
1107
1107
  b(function(y) {
@@ -1110,17 +1110,17 @@ function Mi(e, n, t, r, i, o, s) {
1110
1110
  });
1111
1111
  });
1112
1112
  };
1113
- return it(M, [r]), it(function() {
1113
+ return st(M, [r]), st(function() {
1114
1114
  e || M();
1115
1115
  }, [e]), [c.ready, c.offsetX, c.offsetY, c.offsetR, c.offsetB, c.arrowX, c.arrowY, c.scaleX, c.scaleY, c.align, g];
1116
1116
  }
1117
1117
  function Ri(e, n, t, r, i) {
1118
- it(function() {
1118
+ st(function() {
1119
1119
  if (e && n && t) {
1120
1120
  let f = function() {
1121
1121
  r(), i();
1122
1122
  };
1123
- var o = n, s = t, l = nr(o), u = nr(s), c = En(s), b = new Set([c].concat(Rt(l), Rt(u)));
1123
+ var o = n, s = t, l = nr(o), u = nr(s), c = Sn(s), b = new Set([c].concat(Nt(l), Nt(u)));
1124
1124
  return b.forEach(function(d) {
1125
1125
  d.addEventListener("scroll", f, {
1126
1126
  passive: !0
@@ -1135,7 +1135,7 @@ function Ri(e, n, t, r, i) {
1135
1135
  }
1136
1136
  }, [e, n, t]);
1137
1137
  }
1138
- function Ei(e, n, t, r, i, o, s, l) {
1138
+ function Si(e, n, t, r, i, o, s, l) {
1139
1139
  var u = a.useRef(e);
1140
1140
  u.current = e;
1141
1141
  var c = a.useRef(!1);
@@ -1146,11 +1146,11 @@ function Ei(e, n, t, r, i, o, s, l) {
1146
1146
  }, d = function(w) {
1147
1147
  var C;
1148
1148
  u.current && !s(((C = w.composedPath) === null || C === void 0 || (C = C.call(w)) === null || C === void 0 ? void 0 : C[0]) || w.target) && !c.current && l(!1);
1149
- }, m = En(r);
1149
+ }, m = Sn(r);
1150
1150
  m.addEventListener("pointerdown", f, !0), m.addEventListener("mousedown", d, !0), m.addEventListener("contextmenu", d, !0);
1151
1151
  var h = Yn(t);
1152
1152
  if (h && (h.addEventListener("mousedown", d, !0), h.addEventListener("contextmenu", d, !0)), process.env.NODE_ENV !== "production") {
1153
- var E, g, M = t == null || (E = t.getRootNode) === null || E === void 0 ? void 0 : E.call(t), S = (g = r.getRootNode) === null || g === void 0 ? void 0 : g.call(r);
1153
+ var R, g, M = t == null || (R = t.getRootNode) === null || R === void 0 ? void 0 : R.call(t), S = (g = r.getRootNode) === null || g === void 0 ? void 0 : g.call(r);
1154
1154
  Zn(M === S, "trigger element and popup element should in same shadow root.");
1155
1155
  }
1156
1156
  return function() {
@@ -1163,196 +1163,196 @@ function Ei(e, n, t, r, i, o, s, l) {
1163
1163
  }
1164
1164
  return b;
1165
1165
  }
1166
- var Si = ["prefixCls", "children", "action", "showAction", "hideAction", "popupVisible", "defaultPopupVisible", "onPopupVisibleChange", "afterPopupVisibleChange", "mouseEnterDelay", "mouseLeaveDelay", "focusDelay", "blurDelay", "mask", "maskClosable", "getPopupContainer", "forceRender", "autoDestroy", "destroyPopupOnHide", "popup", "popupClassName", "popupStyle", "popupPlacement", "builtinPlacements", "popupAlign", "zIndex", "stretch", "getPopupClassNameFromAlign", "fresh", "alignPoint", "onPopupClick", "onPopupAlign", "arrow", "popupMotion", "maskMotion", "popupTransitionName", "popupAnimation", "maskTransitionName", "maskAnimation", "className", "getTriggerDOMNode"];
1166
+ var Ei = ["prefixCls", "children", "action", "showAction", "hideAction", "popupVisible", "defaultPopupVisible", "onPopupVisibleChange", "afterPopupVisibleChange", "mouseEnterDelay", "mouseLeaveDelay", "focusDelay", "blurDelay", "mask", "maskClosable", "getPopupContainer", "forceRender", "autoDestroy", "destroyPopupOnHide", "popup", "popupClassName", "popupStyle", "popupPlacement", "builtinPlacements", "popupAlign", "zIndex", "stretch", "getPopupClassNameFromAlign", "fresh", "alignPoint", "onPopupClick", "onPopupAlign", "arrow", "popupMotion", "maskMotion", "popupTransitionName", "popupAnimation", "maskTransitionName", "maskAnimation", "className", "getTriggerDOMNode"];
1167
1167
  function Pi() {
1168
1168
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Fr, n = /* @__PURE__ */ a.forwardRef(function(t, r) {
1169
- var i = t.prefixCls, o = i === void 0 ? "rc-trigger-popup" : i, s = t.children, l = t.action, u = l === void 0 ? "hover" : l, c = t.showAction, b = t.hideAction, f = t.popupVisible, d = t.defaultPopupVisible, m = t.onPopupVisibleChange, h = t.afterPopupVisibleChange, E = t.mouseEnterDelay, g = t.mouseLeaveDelay, M = g === void 0 ? 0.1 : g, S = t.focusDelay, y = t.blurDelay, w = t.mask, C = t.maskClosable, v = C === void 0 ? !0 : C, N = t.getPopupContainer, O = t.forceRender, D = t.autoDestroy, B = t.destroyPopupOnHide, $ = t.popup, z = t.popupClassName, L = t.popupStyle, j = t.popupPlacement, Z = t.builtinPlacements, q = Z === void 0 ? {} : Z, Q = t.popupAlign, V = t.zIndex, A = t.stretch, x = t.getPopupClassNameFromAlign, Me = t.fresh, ue = t.alignPoint, G = t.onPopupClick, K = t.onPopupAlign, W = t.arrow, ie = t.popupMotion, be = t.maskMotion, F = t.popupTransitionName, Y = t.popupAnimation, te = t.maskTransitionName, pe = t.maskAnimation, oe = t.className, _e = t.getTriggerDOMNode, Re = De(t, Si), se = D || B || !1, He = a.useState(!1), Be = k(He, 2), ce = Be[0], Ie = Be[1];
1170
- it(function() {
1171
- Ie(ii());
1169
+ var i = t.prefixCls, o = i === void 0 ? "rc-trigger-popup" : i, s = t.children, l = t.action, u = l === void 0 ? "hover" : l, c = t.showAction, b = t.hideAction, f = t.popupVisible, d = t.defaultPopupVisible, m = t.onPopupVisibleChange, h = t.afterPopupVisibleChange, R = t.mouseEnterDelay, g = t.mouseLeaveDelay, M = g === void 0 ? 0.1 : g, S = t.focusDelay, y = t.blurDelay, w = t.mask, C = t.maskClosable, v = C === void 0 ? !0 : C, E = t.getPopupContainer, D = t.forceRender, K = t.autoDestroy, U = t.destroyPopupOnHide, z = t.popup, F = t.popupClassName, A = t.popupStyle, j = t.popupPlacement, Z = t.builtinPlacements, $ = Z === void 0 ? {} : Z, V = t.popupAlign, N = t.zIndex, q = t.stretch, Q = t.getPopupClassNameFromAlign, ne = t.fresh, k = t.alignPoint, me = t.onPopupClick, Me = t.onPopupAlign, Y = t.arrow, G = t.popupMotion, he = t.maskMotion, H = t.popupTransitionName, X = t.popupAnimation, ie = t.maskTransitionName, ge = t.maskAnimation, ve = t.className, Ie = t.getTriggerDOMNode, ye = ke(t, Ei), le = K || U || !1, xe = a.useState(!1), He = O(xe, 2), Re = He[0], be = He[1];
1170
+ st(function() {
1171
+ be(ii());
1172
1172
  }, []);
1173
- var Ve = a.useRef({}), de = a.useContext(Mr), ht = a.useMemo(function() {
1173
+ var We = a.useRef({}), Se = a.useContext(Mr), qe = a.useMemo(function() {
1174
1174
  return {
1175
- registerSubPopup: function(_, ve) {
1176
- Ve.current[_] = ve, de == null || de.registerSubPopup(_, ve);
1175
+ registerSubPopup: function(P, ue) {
1176
+ We.current[P] = ue, Se == null || Se.registerSubPopup(P, ue);
1177
1177
  }
1178
1178
  };
1179
- }, [de]), H = Ca(), Ge = a.useState(null), Ce = k(Ge, 2), J = Ce[0], We = Ce[1], Te = a.useRef(null), Le = Kt(function(p) {
1180
- Te.current = p, Qn(p) && J !== p && We(p), de == null || de.registerSubPopup(H, p);
1181
- }), Je = a.useState(null), Ae = k(Je, 2), we = Ae[0], fe = Ae[1], Ee = a.useRef(null), Ze = Kt(function(p) {
1182
- Qn(p) && we !== p && (fe(p), Ee.current = p);
1183
- }), ne = a.Children.only(s), re = (ne == null ? void 0 : ne.props) || {}, $e = {}, Et = Kt(function(p) {
1184
- var _, ve, Ne = we;
1185
- return (Ne == null ? void 0 : Ne.contains(p)) || ((_ = Yn(Ne)) === null || _ === void 0 ? void 0 : _.host) === p || p === Ne || (J == null ? void 0 : J.contains(p)) || ((ve = Yn(J)) === null || ve === void 0 ? void 0 : ve.host) === p || p === J || Object.values(Ve.current).some(function(ye) {
1186
- return (ye == null ? void 0 : ye.contains(p)) || p === ye;
1179
+ }, [Se]), tt = Ca(), W = a.useState(null), Ne = O(W, 2), J = Ne[0], nt = Ne[1], Ae = a.useRef(null), pe = Lt(function(p) {
1180
+ Ae.current = p, Qn(p) && J !== p && nt(p), Se == null || Se.registerSubPopup(tt, p);
1181
+ }), Ge = a.useState(null), $e = O(Ge, 2), Ee = $e[0], Ke = $e[1], Pe = a.useRef(null), Ce = Lt(function(p) {
1182
+ Qn(p) && Ee !== p && (Ke(p), Pe.current = p);
1183
+ }), oe = a.Children.only(s), ee = (oe == null ? void 0 : oe.props) || {}, ze = {}, _t = Lt(function(p) {
1184
+ var P, ue, we = Ee;
1185
+ return (we == null ? void 0 : we.contains(p)) || ((P = Yn(we)) === null || P === void 0 ? void 0 : P.host) === p || p === we || (J == null ? void 0 : J.contains(p)) || ((ue = Yn(J)) === null || ue === void 0 ? void 0 : ue.host) === p || p === J || Object.values(We.current).some(function(de) {
1186
+ return (de == null ? void 0 : de.contains(p)) || p === de;
1187
1187
  });
1188
- }), lt = Er(o, ie, Y, F), rt = Er(o, be, pe, te), At = a.useState(d || !1), Oe = k(At, 2), Pe = Oe[0], ut = Oe[1], me = f ?? Pe, P = Kt(function(p) {
1189
- f === void 0 && ut(p);
1188
+ }), vt = Sr(o, G, X, H), Ze = Sr(o, he, ge, ie), zt = a.useState(d || !1), rt = O(zt, 2), Fe = rt[0], _e = rt[1], ce = f ?? Fe, _ = Lt(function(p) {
1189
+ f === void 0 && _e(p);
1190
1190
  });
1191
- it(function() {
1192
- ut(f || !1);
1191
+ st(function() {
1192
+ _e(f || !1);
1193
1193
  }, [f]);
1194
- var R = a.useRef(me);
1195
- R.current = me;
1194
+ var x = a.useRef(ce);
1195
+ x.current = ce;
1196
1196
  var I = a.useRef([]);
1197
1197
  I.current = [];
1198
- var le = Kt(function(p) {
1199
- var _;
1200
- P(p), ((_ = I.current[I.current.length - 1]) !== null && _ !== void 0 ? _ : me) !== p && (I.current.push(p), m == null || m(p));
1201
- }), ge = a.useRef(), $t = function() {
1202
- clearTimeout(ge.current);
1203
- }, Ue = function(_) {
1204
- var ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1205
- $t(), ve === 0 ? le(_) : ge.current = setTimeout(function() {
1206
- le(_);
1207
- }, ve * 1e3);
1198
+ var L = Lt(function(p) {
1199
+ var P;
1200
+ _(p), ((P = I.current[I.current.length - 1]) !== null && P !== void 0 ? P : ce) !== p && (I.current.push(p), m == null || m(p));
1201
+ }), se = a.useRef(), dt = function() {
1202
+ clearTimeout(se.current);
1203
+ }, Be = function(P) {
1204
+ var ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1205
+ dt(), ue === 0 ? L(P) : se.current = setTimeout(function() {
1206
+ L(P);
1207
+ }, ue * 1e3);
1208
1208
  };
1209
1209
  a.useEffect(function() {
1210
- return $t;
1210
+ return dt;
1211
1211
  }, []);
1212
- var zt = a.useState(!1), Vt = k(zt, 2), ct = Vt[0], Bt = Vt[1];
1213
- it(function(p) {
1214
- (!p || me) && Bt(!0);
1215
- }, [me]);
1216
- var Ut = a.useState(null), ft = k(Ut, 2), St = ft[0], gt = ft[1], Fe = a.useState(null), vt = k(Fe, 2), Ye = vt[0], Pt = vt[1], dt = function(_) {
1217
- Pt([_.clientX, _.clientY]);
1218
- }, jt = Mi(me, J, ue && Ye !== null ? Ye : we, j, q, Q, K), Se = k(jt, 11), qt = Se[0], fn = Se[1], yt = Se[2], Gt = Se[3], Jt = Se[4], mt = Se[5], Nt = Se[6], bt = Se[7], Zt = Se[8], _t = Se[9], Xe = Se[10], pt = pi(ce, u, c, b), Qt = k(pt, 2), et = Qt[0], Qe = Qt[1], Ct = et.has("click"), It = Qe.has("click") || Qe.has("contextMenu"), tt = Kt(function() {
1219
- ct || Xe();
1220
- }), vn = function() {
1221
- R.current && ue && It && Ue(!1);
1212
+ var Vt = a.useState(!1), Wt = O(Vt, 2), It = Wt[0], mt = Wt[1];
1213
+ st(function(p) {
1214
+ (!p || ce) && mt(!0);
1215
+ }, [ce]);
1216
+ var Zt = a.useState(null), ht = O(Zt, 2), xt = ht[0], gt = ht[1], Qe = a.useState(null), at = O(Qe, 2), it = at[0], yt = at[1], Ye = function(P) {
1217
+ yt([P.clientX, P.clientY]);
1218
+ }, Qt = Mi(ce, J, k && it !== null ? it : Ee, j, $, V, Me), Te = O(Qt, 11), bt = Te[0], Yt = Te[1], dn = Te[2], pt = Te[3], Ft = Te[4], Ct = Te[5], Dt = Te[6], Xt = Te[7], wt = Te[8], Mt = Te[9], kt = Te[10], Xe = pi(Re, u, c, b), Ht = O(Xe, 2), Ot = Ht[0], Je = Ht[1], ot = Ot.has("click"), ct = Je.has("click") || Je.has("contextMenu"), ft = Lt(function() {
1219
+ It || kt();
1220
+ }), Bt = function() {
1221
+ x.current && k && ct && Be(!1);
1222
1222
  };
1223
- Ri(me, we, J, tt, vn), it(function() {
1224
- tt();
1225
- }, [Ye, j]), it(function() {
1226
- me && !(q != null && q[j]) && tt();
1227
- }, [JSON.stringify(Q)]);
1228
- var Yt = a.useMemo(function() {
1229
- var p = wi(q, o, _t, ue);
1230
- return ke(p, x == null ? void 0 : x(_t));
1231
- }, [_t, x, q, o, ue]);
1223
+ Ri(ce, Ee, J, ft, Bt), st(function() {
1224
+ ft();
1225
+ }, [it, j]), st(function() {
1226
+ ce && !($ != null && $[j]) && ft();
1227
+ }, [JSON.stringify(V)]);
1228
+ var mn = a.useMemo(function() {
1229
+ var p = wi($, o, Mt, k);
1230
+ return Oe(p, Q == null ? void 0 : Q(Mt));
1231
+ }, [Mt, Q, $, o, k]);
1232
1232
  a.useImperativeHandle(r, function() {
1233
1233
  return {
1234
- nativeElement: Ee.current,
1235
- popupElement: Te.current,
1236
- forceAlign: tt
1234
+ nativeElement: Pe.current,
1235
+ popupElement: Ae.current,
1236
+ forceAlign: ft
1237
1237
  };
1238
1238
  });
1239
- var dn = a.useState(0), X = k(dn, 2), U = X[0], ee = X[1], Ke = a.useState(0), xe = k(Ke, 2), xt = xe[0], Wt = xe[1], Xt = function() {
1240
- if (A && we) {
1241
- var _ = we.getBoundingClientRect();
1242
- ee(_.width), Wt(_.height);
1239
+ var en = a.useState(0), re = O(en, 2), B = re[0], te = re[1], Le = a.useState(0), De = O(Le, 2), Kt = De[0], Ut = De[1], tn = function() {
1240
+ if (q && Ee) {
1241
+ var P = Ee.getBoundingClientRect();
1242
+ te(P.width), Ut(P.height);
1243
1243
  }
1244
- }, en = function() {
1245
- Xt(), tt();
1246
- }, tn = function(_) {
1247
- Bt(!1), Xe(), h == null || h(_);
1248
- }, at = function() {
1249
- return new Promise(function(_) {
1250
- Xt(), gt(function() {
1251
- return _;
1244
+ }, nn = function() {
1245
+ tn(), ft();
1246
+ }, rn = function(P) {
1247
+ mt(!1), kt(), h == null || h(P);
1248
+ }, Rt = function() {
1249
+ return new Promise(function(P) {
1250
+ tn(), gt(function() {
1251
+ return P;
1252
1252
  });
1253
1253
  });
1254
1254
  };
1255
- it(function() {
1256
- St && (Xe(), St(), gt(null));
1257
- }, [St]);
1258
- function je(p, _, ve, Ne) {
1259
- $e[p] = function(ye) {
1255
+ st(function() {
1256
+ xt && (kt(), xt(), gt(null));
1257
+ }, [xt]);
1258
+ function Ue(p, P, ue, we) {
1259
+ ze[p] = function(de) {
1260
1260
  var _n;
1261
- Ne == null || Ne(ye), Ue(_, ve);
1261
+ we == null || we(de), Be(P, ue);
1262
1262
  for (var qn = arguments.length, Cr = new Array(qn > 1 ? qn - 1 : 0), In = 1; In < qn; In++)
1263
1263
  Cr[In - 1] = arguments[In];
1264
- (_n = re[p]) === null || _n === void 0 || _n.call.apply(_n, [re, ye].concat(Cr));
1264
+ (_n = ee[p]) === null || _n === void 0 || _n.call.apply(_n, [ee, de].concat(Cr));
1265
1265
  };
1266
1266
  }
1267
- (Ct || It) && ($e.onClick = function(p) {
1268
- var _;
1269
- R.current && It ? Ue(!1) : !R.current && Ct && (dt(p), Ue(!0));
1270
- for (var ve = arguments.length, Ne = new Array(ve > 1 ? ve - 1 : 0), ye = 1; ye < ve; ye++)
1271
- Ne[ye - 1] = arguments[ye];
1272
- (_ = re.onClick) === null || _ === void 0 || _.call.apply(_, [re, p].concat(Ne));
1267
+ (ot || ct) && (ze.onClick = function(p) {
1268
+ var P;
1269
+ x.current && ct ? Be(!1) : !x.current && ot && (Ye(p), Be(!0));
1270
+ for (var ue = arguments.length, we = new Array(ue > 1 ? ue - 1 : 0), de = 1; de < ue; de++)
1271
+ we[de - 1] = arguments[de];
1272
+ (P = ee.onClick) === null || P === void 0 || P.call.apply(P, [ee, p].concat(we));
1273
1273
  });
1274
- var mn = Ei(me, It, we, J, w, v, Et, Ue), nt = et.has("hover"), Pn = Qe.has("hover"), nn, Dt;
1275
- nt && (je("onMouseEnter", !0, E, function(p) {
1276
- dt(p);
1277
- }), je("onPointerEnter", !0, E, function(p) {
1278
- dt(p);
1279
- }), nn = function(_) {
1280
- (me || ct) && J !== null && J !== void 0 && J.contains(_.target) && Ue(!0, E);
1281
- }, ue && ($e.onMouseMove = function(p) {
1282
- var _;
1283
- (_ = re.onMouseMove) === null || _ === void 0 || _.call(re, p);
1284
- })), Pn && (je("onMouseLeave", !1, M), je("onPointerLeave", !1, M), Dt = function() {
1285
- Ue(!1, M);
1286
- }), et.has("focus") && je("onFocus", !0, S), Qe.has("focus") && je("onBlur", !1, y), et.has("contextMenu") && ($e.onContextMenu = function(p) {
1287
- var _;
1288
- R.current && Qe.has("contextMenu") ? Ue(!1) : (dt(p), Ue(!0)), p.preventDefault();
1289
- for (var ve = arguments.length, Ne = new Array(ve > 1 ? ve - 1 : 0), ye = 1; ye < ve; ye++)
1290
- Ne[ye - 1] = arguments[ye];
1291
- (_ = re.onContextMenu) === null || _ === void 0 || _.call.apply(_, [re, p].concat(Ne));
1292
- }), oe && ($e.className = ke(re.className, oe));
1293
- var kt = T(T({}, re), $e), hn = {}, Nn = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"];
1294
- Nn.forEach(function(p) {
1295
- Re[p] && (hn[p] = function() {
1296
- for (var _, ve = arguments.length, Ne = new Array(ve), ye = 0; ye < ve; ye++)
1297
- Ne[ye] = arguments[ye];
1298
- (_ = kt[p]) === null || _ === void 0 || _.call.apply(_, [kt].concat(Ne)), Re[p].apply(Re, Ne);
1274
+ var jt = Si(ce, ct, Ee, J, w, v, _t, Be), Bn = Ot.has("hover"), et = Je.has("hover"), an, hn;
1275
+ Bn && (Ue("onMouseEnter", !0, R, function(p) {
1276
+ Ye(p);
1277
+ }), Ue("onPointerEnter", !0, R, function(p) {
1278
+ Ye(p);
1279
+ }), an = function(P) {
1280
+ (ce || It) && J !== null && J !== void 0 && J.contains(P.target) && Be(!0, R);
1281
+ }, k && (ze.onMouseMove = function(p) {
1282
+ var P;
1283
+ (P = ee.onMouseMove) === null || P === void 0 || P.call(ee, p);
1284
+ })), et && (Ue("onMouseLeave", !1, M), Ue("onPointerLeave", !1, M), hn = function() {
1285
+ Be(!1, M);
1286
+ }), Ot.has("focus") && Ue("onFocus", !0, S), Je.has("focus") && Ue("onBlur", !1, y), Ot.has("contextMenu") && (ze.onContextMenu = function(p) {
1287
+ var P;
1288
+ x.current && Je.has("contextMenu") ? Be(!1) : (Ye(p), Be(!0)), p.preventDefault();
1289
+ for (var ue = arguments.length, we = new Array(ue > 1 ? ue - 1 : 0), de = 1; de < ue; de++)
1290
+ we[de - 1] = arguments[de];
1291
+ (P = ee.onContextMenu) === null || P === void 0 || P.call.apply(P, [ee, p].concat(we));
1292
+ }), ve && (ze.className = Oe(ee.className, ve));
1293
+ var St = T(T({}, ee), ze), qt = {}, Pn = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"];
1294
+ Pn.forEach(function(p) {
1295
+ ye[p] && (qt[p] = function() {
1296
+ for (var P, ue = arguments.length, we = new Array(ue), de = 0; de < ue; de++)
1297
+ we[de] = arguments[de];
1298
+ (P = St[p]) === null || P === void 0 || P.call.apply(P, [St].concat(we)), ye[p].apply(ye, we);
1299
1299
  });
1300
1300
  });
1301
- var Bn = /* @__PURE__ */ a.cloneElement(ne, T(T({}, kt), hn)), Un = {
1302
- x: mt,
1303
- y: Nt
1304
- }, jn = W ? T({}, W !== !0 ? W : {}) : null;
1305
- return /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(cn, {
1306
- disabled: !me,
1307
- ref: Ze,
1308
- onResize: en
1301
+ var Nn = /* @__PURE__ */ a.cloneElement(oe, T(T({}, St), qt)), Un = {
1302
+ x: Ct,
1303
+ y: Dt
1304
+ }, jn = Y ? T({}, Y !== !0 ? Y : {}) : null;
1305
+ return /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(vn, {
1306
+ disabled: !ce,
1307
+ ref: Ce,
1308
+ onResize: nn
1309
1309
  }, /* @__PURE__ */ a.createElement(aa, {
1310
- getTriggerDOMNode: _e
1311
- }, Bn)), /* @__PURE__ */ a.createElement(Mr.Provider, {
1312
- value: ht
1310
+ getTriggerDOMNode: Ie
1311
+ }, Nn)), /* @__PURE__ */ a.createElement(Mr.Provider, {
1312
+ value: qe
1313
1313
  }, /* @__PURE__ */ a.createElement(ra, {
1314
1314
  portal: e,
1315
- ref: Le,
1315
+ ref: pe,
1316
1316
  prefixCls: o,
1317
- popup: $,
1318
- className: ke(z, Yt),
1319
- style: L,
1320
- target: we,
1321
- onMouseEnter: nn,
1322
- onMouseLeave: Dt,
1323
- onPointerEnter: nn,
1324
- zIndex: V,
1325
- open: me,
1326
- keepDom: ct,
1327
- fresh: Me,
1328
- onClick: G,
1329
- onPointerDownCapture: mn,
1317
+ popup: z,
1318
+ className: Oe(F, mn),
1319
+ style: A,
1320
+ target: Ee,
1321
+ onMouseEnter: an,
1322
+ onMouseLeave: hn,
1323
+ onPointerEnter: an,
1324
+ zIndex: N,
1325
+ open: ce,
1326
+ keepDom: It,
1327
+ fresh: ne,
1328
+ onClick: me,
1329
+ onPointerDownCapture: jt,
1330
1330
  mask: w,
1331
- motion: lt,
1332
- maskMotion: rt,
1333
- onVisibleChanged: tn,
1334
- onPrepare: at,
1335
- forceRender: O,
1336
- autoDestroy: se,
1337
- getPopupContainer: N,
1338
- align: _t,
1331
+ motion: vt,
1332
+ maskMotion: Ze,
1333
+ onVisibleChanged: rn,
1334
+ onPrepare: Rt,
1335
+ forceRender: D,
1336
+ autoDestroy: le,
1337
+ getPopupContainer: E,
1338
+ align: Mt,
1339
1339
  arrow: jn,
1340
1340
  arrowPos: Un,
1341
- ready: qt,
1342
- offsetX: fn,
1343
- offsetY: yt,
1344
- offsetR: Gt,
1345
- offsetB: Jt,
1346
- onAlign: tt,
1347
- stretch: A,
1348
- targetWidth: U / bt,
1349
- targetHeight: xt / Zt
1341
+ ready: bt,
1342
+ offsetX: Yt,
1343
+ offsetY: dn,
1344
+ offsetR: pt,
1345
+ offsetB: Ft,
1346
+ onAlign: ft,
1347
+ stretch: q,
1348
+ targetWidth: B / Xt,
1349
+ targetHeight: Kt / wt
1350
1350
  })));
1351
1351
  });
1352
1352
  return process.env.NODE_ENV !== "production" && (n.displayName = "Trigger"), n;
1353
1353
  }
1354
1354
  const ia = Pi(Fr);
1355
- var Ni = st.ESC, _i = st.TAB;
1355
+ var Ni = ut.ESC, _i = ut.TAB;
1356
1356
  function Ii(e) {
1357
1357
  var n = e.visible, t = e.triggerRef, r = e.onVisibleChange, i = e.autoFocus, o = e.overlayRef, s = a.useRef(!1), l = function() {
1358
1358
  if (n) {
@@ -1375,7 +1375,7 @@ function Ii(e) {
1375
1375
  }
1376
1376
  };
1377
1377
  a.useEffect(function() {
1378
- return n ? (window.addEventListener("keydown", c), i && Ht(u, 3), function() {
1378
+ return n ? (window.addEventListener("keydown", c), i && Jt(u, 3), function() {
1379
1379
  window.removeEventListener("keydown", c), s.current = !1;
1380
1380
  }) : function() {
1381
1381
  s.current = !1;
@@ -1387,112 +1387,112 @@ var xi = /* @__PURE__ */ Ra(function(e, n) {
1387
1387
  var l;
1388
1388
  return typeof t == "function" ? l = t() : l = t, l;
1389
1389
  }, [t]), s = fr(n, zn(o));
1390
- return /* @__PURE__ */ qe.createElement(qe.Fragment, null, r && /* @__PURE__ */ qe.createElement("div", {
1390
+ return /* @__PURE__ */ je.createElement(je.Fragment, null, r && /* @__PURE__ */ je.createElement("div", {
1391
1391
  className: "".concat(i, "-arrow")
1392
- }), /* @__PURE__ */ qe.cloneElement(o, {
1392
+ }), /* @__PURE__ */ je.cloneElement(o, {
1393
1393
  ref: $n(o) ? s : void 0
1394
1394
  }));
1395
- }), on = {
1395
+ }), ln = {
1396
1396
  adjustX: 1,
1397
1397
  adjustY: 1
1398
- }, sn = [0, 0], Di = {
1398
+ }, un = [0, 0], Di = {
1399
1399
  topLeft: {
1400
1400
  points: ["bl", "tl"],
1401
- overflow: on,
1401
+ overflow: ln,
1402
1402
  offset: [0, -4],
1403
- targetOffset: sn
1403
+ targetOffset: un
1404
1404
  },
1405
1405
  top: {
1406
1406
  points: ["bc", "tc"],
1407
- overflow: on,
1407
+ overflow: ln,
1408
1408
  offset: [0, -4],
1409
- targetOffset: sn
1409
+ targetOffset: un
1410
1410
  },
1411
1411
  topRight: {
1412
1412
  points: ["br", "tr"],
1413
- overflow: on,
1413
+ overflow: ln,
1414
1414
  offset: [0, -4],
1415
- targetOffset: sn
1415
+ targetOffset: un
1416
1416
  },
1417
1417
  bottomLeft: {
1418
1418
  points: ["tl", "bl"],
1419
- overflow: on,
1419
+ overflow: ln,
1420
1420
  offset: [0, 4],
1421
- targetOffset: sn
1421
+ targetOffset: un
1422
1422
  },
1423
1423
  bottom: {
1424
1424
  points: ["tc", "bc"],
1425
- overflow: on,
1425
+ overflow: ln,
1426
1426
  offset: [0, 4],
1427
- targetOffset: sn
1427
+ targetOffset: un
1428
1428
  },
1429
1429
  bottomRight: {
1430
1430
  points: ["tr", "br"],
1431
- overflow: on,
1431
+ overflow: ln,
1432
1432
  offset: [0, 4],
1433
- targetOffset: sn
1433
+ targetOffset: un
1434
1434
  }
1435
1435
  }, ki = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
1436
1436
  function Oi(e, n) {
1437
- var t, r = e.arrow, i = r === void 0 ? !1 : r, o = e.prefixCls, s = o === void 0 ? "rc-dropdown" : o, l = e.transitionName, u = e.animation, c = e.align, b = e.placement, f = b === void 0 ? "bottomLeft" : b, d = e.placements, m = d === void 0 ? Di : d, h = e.getPopupContainer, E = e.showAction, g = e.hideAction, M = e.overlayClassName, S = e.overlayStyle, y = e.visible, w = e.trigger, C = w === void 0 ? ["hover"] : w, v = e.autoFocus, N = e.overlay, O = e.children, D = e.onVisibleChange, B = De(e, ki), $ = qe.useState(), z = k($, 2), L = z[0], j = z[1], Z = "visible" in e ? y : L, q = qe.useRef(null), Q = qe.useRef(null), V = qe.useRef(null);
1438
- qe.useImperativeHandle(n, function() {
1439
- return q.current;
1437
+ var t, r = e.arrow, i = r === void 0 ? !1 : r, o = e.prefixCls, s = o === void 0 ? "rc-dropdown" : o, l = e.transitionName, u = e.animation, c = e.align, b = e.placement, f = b === void 0 ? "bottomLeft" : b, d = e.placements, m = d === void 0 ? Di : d, h = e.getPopupContainer, R = e.showAction, g = e.hideAction, M = e.overlayClassName, S = e.overlayStyle, y = e.visible, w = e.trigger, C = w === void 0 ? ["hover"] : w, v = e.autoFocus, E = e.overlay, D = e.children, K = e.onVisibleChange, U = ke(e, ki), z = je.useState(), F = O(z, 2), A = F[0], j = F[1], Z = "visible" in e ? y : A, $ = je.useRef(null), V = je.useRef(null), N = je.useRef(null);
1438
+ je.useImperativeHandle(n, function() {
1439
+ return $.current;
1440
1440
  });
1441
- var A = function(F) {
1442
- j(F), D == null || D(F);
1441
+ var q = function(H) {
1442
+ j(H), K == null || K(H);
1443
1443
  };
1444
1444
  Ii({
1445
1445
  visible: Z,
1446
- triggerRef: V,
1447
- onVisibleChange: A,
1446
+ triggerRef: N,
1447
+ onVisibleChange: q,
1448
1448
  autoFocus: v,
1449
- overlayRef: Q
1449
+ overlayRef: V
1450
1450
  });
1451
- var x = function(F) {
1452
- var Y = e.onOverlayClick;
1453
- j(!1), Y && Y(F);
1454
- }, Me = function() {
1455
- return /* @__PURE__ */ qe.createElement(xi, {
1456
- ref: Q,
1457
- overlay: N,
1451
+ var Q = function(H) {
1452
+ var X = e.onOverlayClick;
1453
+ j(!1), X && X(H);
1454
+ }, ne = function() {
1455
+ return /* @__PURE__ */ je.createElement(xi, {
1456
+ ref: V,
1457
+ overlay: E,
1458
1458
  prefixCls: s,
1459
1459
  arrow: i
1460
1460
  });
1461
- }, ue = function() {
1462
- return typeof N == "function" ? Me : Me();
1463
- }, G = function() {
1464
- var F = e.minOverlayWidthMatchTrigger, Y = e.alignPoint;
1465
- return "minOverlayWidthMatchTrigger" in e ? F : !Y;
1466
- }, K = function() {
1467
- var F = e.openClassName;
1468
- return F !== void 0 ? F : "".concat(s, "-open");
1469
- }, W = /* @__PURE__ */ qe.cloneElement(O, {
1470
- className: ke((t = O.props) === null || t === void 0 ? void 0 : t.className, Z && K()),
1471
- ref: $n(O) ? fr(V, zn(O)) : void 0
1472
- }), ie = g;
1473
- return !ie && C.indexOf("contextMenu") !== -1 && (ie = ["click"]), /* @__PURE__ */ qe.createElement(ia, ae({
1461
+ }, k = function() {
1462
+ return typeof E == "function" ? ne : ne();
1463
+ }, me = function() {
1464
+ var H = e.minOverlayWidthMatchTrigger, X = e.alignPoint;
1465
+ return "minOverlayWidthMatchTrigger" in e ? H : !X;
1466
+ }, Me = function() {
1467
+ var H = e.openClassName;
1468
+ return H !== void 0 ? H : "".concat(s, "-open");
1469
+ }, Y = /* @__PURE__ */ je.cloneElement(D, {
1470
+ className: Oe((t = D.props) === null || t === void 0 ? void 0 : t.className, Z && Me()),
1471
+ ref: $n(D) ? fr(N, zn(D)) : void 0
1472
+ }), G = g;
1473
+ return !G && C.indexOf("contextMenu") !== -1 && (G = ["click"]), /* @__PURE__ */ je.createElement(ia, ae({
1474
1474
  builtinPlacements: m
1475
- }, B, {
1475
+ }, U, {
1476
1476
  prefixCls: s,
1477
- ref: q,
1478
- popupClassName: ke(M, he({}, "".concat(s, "-show-arrow"), i)),
1477
+ ref: $,
1478
+ popupClassName: Oe(M, fe({}, "".concat(s, "-show-arrow"), i)),
1479
1479
  popupStyle: S,
1480
1480
  action: C,
1481
- showAction: E,
1482
- hideAction: ie,
1481
+ showAction: R,
1482
+ hideAction: G,
1483
1483
  popupPlacement: f,
1484
1484
  popupAlign: c,
1485
1485
  popupTransitionName: l,
1486
1486
  popupAnimation: u,
1487
1487
  popupVisible: Z,
1488
- stretch: G() ? "minWidth" : "",
1489
- popup: ue(),
1490
- onPopupVisibleChange: A,
1491
- onPopupClick: x,
1488
+ stretch: me() ? "minWidth" : "",
1489
+ popup: k(),
1490
+ onPopupVisibleChange: q,
1491
+ onPopupClick: Q,
1492
1492
  getPopupContainer: h
1493
- }), W);
1493
+ }), Y);
1494
1494
  }
1495
- const Eo = /* @__PURE__ */ qe.forwardRef(Oi);
1495
+ const So = /* @__PURE__ */ je.forwardRef(Oi);
1496
1496
  var oa = /* @__PURE__ */ a.createContext(null);
1497
1497
  function sa(e, n) {
1498
1498
  return e === void 0 ? null : "".concat(e, "-").concat(n);
@@ -1501,7 +1501,7 @@ function la(e) {
1501
1501
  var n = a.useContext(oa);
1502
1502
  return sa(n, e);
1503
1503
  }
1504
- var Ki = ["children", "locked"], ot = /* @__PURE__ */ a.createContext(null);
1504
+ var Ki = ["children", "locked"], lt = /* @__PURE__ */ a.createContext(null);
1505
1505
  function Ti(e, n) {
1506
1506
  var t = T({}, e);
1507
1507
  return Object.keys(n).forEach(function(r) {
@@ -1510,12 +1510,12 @@ function Ti(e, n) {
1510
1510
  }), t;
1511
1511
  }
1512
1512
  function Rn(e) {
1513
- var n = e.children, t = e.locked, r = De(e, Ki), i = a.useContext(ot), o = wa(function() {
1513
+ var n = e.children, t = e.locked, r = ke(e, Ki), i = a.useContext(lt), o = wa(function() {
1514
1514
  return Ti(i, r);
1515
1515
  }, [i, r], function(s, l) {
1516
1516
  return !t && (s[0] !== l[0] || !Hr(s[1], l[1], !0));
1517
1517
  });
1518
- return /* @__PURE__ */ a.createElement(ot.Provider, {
1518
+ return /* @__PURE__ */ a.createElement(lt.Provider, {
1519
1519
  value: o
1520
1520
  }, n);
1521
1521
  }
@@ -1524,10 +1524,10 @@ function Wn() {
1524
1524
  return a.useContext(ua);
1525
1525
  }
1526
1526
  var ca = /* @__PURE__ */ a.createContext(Li);
1527
- function Sn(e) {
1527
+ function En(e) {
1528
1528
  var n = a.useContext(ca);
1529
1529
  return a.useMemo(function() {
1530
- return e !== void 0 ? [].concat(Rt(n), [e]) : n;
1530
+ return e !== void 0 ? [].concat(Nt(n), [e]) : n;
1531
1531
  }, [n, e]);
1532
1532
  }
1533
1533
  var fa = /* @__PURE__ */ a.createContext(null), dr = /* @__PURE__ */ a.createContext({});
@@ -1545,19 +1545,19 @@ function Ir(e) {
1545
1545
  return !1;
1546
1546
  }
1547
1547
  function Ai(e) {
1548
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = Rt(e.querySelectorAll("*")).filter(function(r) {
1548
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = Nt(e.querySelectorAll("*")).filter(function(r) {
1549
1549
  return Ir(r, n);
1550
1550
  });
1551
1551
  return Ir(e, n) && t.unshift(e), t;
1552
1552
  }
1553
- var rr = st.LEFT, ar = st.RIGHT, ir = st.UP, kn = st.DOWN, On = st.ENTER, va = st.ESC, bn = st.HOME, pn = st.END, xr = [ir, kn, rr, ar];
1553
+ var rr = ut.LEFT, ar = ut.RIGHT, ir = ut.UP, kn = ut.DOWN, On = ut.ENTER, va = ut.ESC, bn = ut.HOME, pn = ut.END, xr = [ir, kn, rr, ar];
1554
1554
  function $i(e, n, t, r) {
1555
1555
  var i, o = "prev", s = "next", l = "children", u = "parent";
1556
1556
  if (e === "inline" && r === On)
1557
1557
  return {
1558
1558
  inlineTrigger: !0
1559
1559
  };
1560
- var c = he(he({}, ir, o), kn, s), b = he(he(he(he({}, rr, t ? s : o), ar, t ? o : s), kn, l), On, l), f = he(he(he(he(he(he({}, ir, o), kn, s), On, l), va, u), rr, t ? l : u), ar, t ? u : l), d = {
1560
+ var c = fe(fe({}, ir, o), kn, s), b = fe(fe(fe(fe({}, rr, t ? s : o), ar, t ? o : s), kn, l), On, l), f = fe(fe(fe(fe(fe(fe({}, ir, o), kn, s), On, l), va, u), rr, t ? l : u), ar, t ? u : l), d = {
1561
1561
  inline: c,
1562
1562
  horizontal: b,
1563
1563
  vertical: f,
@@ -1636,7 +1636,7 @@ function Wi(e, n, t, r, i, o, s, l, u, c) {
1636
1636
  var b = a.useRef(), f = a.useRef();
1637
1637
  f.current = n;
1638
1638
  var d = function() {
1639
- Ht.cancel(b.current);
1639
+ Jt.cancel(b.current);
1640
1640
  };
1641
1641
  return a.useEffect(function() {
1642
1642
  return function() {
@@ -1645,36 +1645,36 @@ function Wi(e, n, t, r, i, o, s, l, u, c) {
1645
1645
  }, []), function(m) {
1646
1646
  var h = m.which;
1647
1647
  if ([].concat(xr, [On, va, bn, pn]).includes(h)) {
1648
- var E = o(), g = or(E, r), M = g, S = M.elements, y = M.key2element, w = M.element2key, C = y.get(n), v = Vi(C, S), N = w.get(v), O = $i(e, s(N, !0).length === 1, t, h);
1649
- if (!O && h !== bn && h !== pn)
1648
+ var R = o(), g = or(R, r), M = g, S = M.elements, y = M.key2element, w = M.element2key, C = y.get(n), v = Vi(C, S), E = w.get(v), D = $i(e, s(E, !0).length === 1, t, h);
1649
+ if (!D && h !== bn && h !== pn)
1650
1650
  return;
1651
1651
  (xr.includes(h) || [bn, pn].includes(h)) && m.preventDefault();
1652
- var D = function(Q) {
1653
- if (Q) {
1654
- var V = Q, A = Q.querySelector("a");
1655
- A != null && A.getAttribute("href") && (V = A);
1656
- var x = w.get(Q);
1657
- l(x), d(), b.current = Ht(function() {
1658
- f.current === x && V.focus();
1652
+ var K = function(V) {
1653
+ if (V) {
1654
+ var N = V, q = V.querySelector("a");
1655
+ q != null && q.getAttribute("href") && (N = q);
1656
+ var Q = w.get(V);
1657
+ l(Q), d(), b.current = Jt(function() {
1658
+ f.current === Q && N.focus();
1659
1659
  });
1660
1660
  }
1661
1661
  };
1662
- if ([bn, pn].includes(h) || O.sibling || !v) {
1663
- var B;
1664
- !v || e === "inline" ? B = i.current : B = zi(v);
1665
- var $, z = mr(B, S);
1666
- h === bn ? $ = z[0] : h === pn ? $ = z[z.length - 1] : $ = Dr(B, S, v, O.offset), D($);
1667
- } else if (O.inlineTrigger)
1668
- u(N);
1669
- else if (O.offset > 0)
1670
- u(N, !0), d(), b.current = Ht(function() {
1671
- g = or(E, r);
1672
- var q = v.getAttribute("aria-controls"), Q = document.getElementById(q), V = Dr(Q, g.elements);
1673
- D(V);
1662
+ if ([bn, pn].includes(h) || D.sibling || !v) {
1663
+ var U;
1664
+ !v || e === "inline" ? U = i.current : U = zi(v);
1665
+ var z, F = mr(U, S);
1666
+ h === bn ? z = F[0] : h === pn ? z = F[F.length - 1] : z = Dr(U, S, v, D.offset), K(z);
1667
+ } else if (D.inlineTrigger)
1668
+ u(E);
1669
+ else if (D.offset > 0)
1670
+ u(E, !0), d(), b.current = Jt(function() {
1671
+ g = or(R, r);
1672
+ var $ = v.getAttribute("aria-controls"), V = document.getElementById($), N = Dr(V, g.elements);
1673
+ K(N);
1674
1674
  }, 5);
1675
- else if (O.offset < 0) {
1676
- var L = s(N, !0), j = L[L.length - 2], Z = y.get(j);
1677
- u(j, !1), D(Z);
1675
+ else if (D.offset < 0) {
1676
+ var A = s(E, !0), j = A[A.length - 2], Z = y.get(j);
1677
+ u(j, !1), K(Z);
1678
1678
  }
1679
1679
  }
1680
1680
  c == null || c(m);
@@ -1689,37 +1689,37 @@ var hr = "__RC_UTIL_PATH_SPLIT__", kr = function(n) {
1689
1689
  return n.split(hr);
1690
1690
  }, sr = "rc-menu-more";
1691
1691
  function Bi() {
1692
- var e = a.useState({}), n = k(e, 2), t = n[1], r = xn(/* @__PURE__ */ new Map()), i = xn(/* @__PURE__ */ new Map()), o = a.useState([]), s = k(o, 2), l = s[0], u = s[1], c = xn(0), b = xn(!1), f = function() {
1692
+ var e = a.useState({}), n = O(e, 2), t = n[1], r = xn(/* @__PURE__ */ new Map()), i = xn(/* @__PURE__ */ new Map()), o = a.useState([]), s = O(o, 2), l = s[0], u = s[1], c = xn(0), b = xn(!1), f = function() {
1693
1693
  b.current || t({});
1694
- }, d = Tt(function(y, w) {
1695
- process.env.NODE_ENV !== "production" && un(!r.current.has(y), "Duplicated key '".concat(y, "' used in Menu by path [").concat(w.join(" > "), "]"));
1694
+ }, d = At(function(y, w) {
1695
+ process.env.NODE_ENV !== "production" && fn(!r.current.has(y), "Duplicated key '".concat(y, "' used in Menu by path [").concat(w.join(" > "), "]"));
1696
1696
  var C = kr(w);
1697
1697
  i.current.set(C, y), r.current.set(y, C), c.current += 1;
1698
1698
  var v = c.current;
1699
1699
  Fi(function() {
1700
1700
  v === c.current && f();
1701
1701
  });
1702
- }, []), m = Tt(function(y, w) {
1702
+ }, []), m = At(function(y, w) {
1703
1703
  var C = kr(w);
1704
1704
  i.current.delete(C), r.current.delete(y);
1705
- }, []), h = Tt(function(y) {
1705
+ }, []), h = At(function(y) {
1706
1706
  u(y);
1707
- }, []), E = Tt(function(y, w) {
1707
+ }, []), R = At(function(y, w) {
1708
1708
  var C = r.current.get(y) || "", v = Hi(C);
1709
1709
  return w && l.includes(v[0]) && v.unshift(sr), v;
1710
- }, [l]), g = Tt(function(y, w) {
1710
+ }, [l]), g = At(function(y, w) {
1711
1711
  return y.filter(function(C) {
1712
1712
  return C !== void 0;
1713
1713
  }).some(function(C) {
1714
- var v = E(C, !0);
1714
+ var v = R(C, !0);
1715
1715
  return v.includes(w);
1716
1716
  });
1717
- }, [E]), M = function() {
1718
- var w = Rt(r.current.keys());
1717
+ }, [R]), M = function() {
1718
+ var w = Nt(r.current.keys());
1719
1719
  return l.length && w.push(sr), w;
1720
- }, S = Tt(function(y) {
1720
+ }, S = At(function(y) {
1721
1721
  var w = "".concat(r.current.get(y)).concat(hr), C = /* @__PURE__ */ new Set();
1722
- return Rt(i.current.keys()).forEach(function(v) {
1722
+ return Nt(i.current.keys()).forEach(function(v) {
1723
1723
  v.startsWith(w) && C.add(i.current.get(v));
1724
1724
  }), C;
1725
1725
  }, []);
@@ -1734,7 +1734,7 @@ function Bi() {
1734
1734
  refreshOverflowKeys: h,
1735
1735
  // Util
1736
1736
  isSubPathKey: g,
1737
- getKeyPath: E,
1737
+ getKeyPath: R,
1738
1738
  getKeys: M,
1739
1739
  getSubPathKeys: S
1740
1740
  };
@@ -1753,7 +1753,7 @@ var Ui = Math.random().toFixed(5).toString().slice(2), Or = 0;
1753
1753
  function ji(e) {
1754
1754
  var n = Dn(e, {
1755
1755
  value: e
1756
- }), t = k(n, 2), r = t[0], i = t[1];
1756
+ }), t = O(n, 2), r = t[0], i = t[1];
1757
1757
  return a.useEffect(function() {
1758
1758
  Or += 1;
1759
1759
  var o = process.env.NODE_ENV === "test" ? "test" : "".concat(Ui, "-").concat(Or);
@@ -1761,7 +1761,7 @@ function ji(e) {
1761
1761
  }, []), r;
1762
1762
  }
1763
1763
  function da(e, n, t, r) {
1764
- var i = a.useContext(ot), o = i.activeKey, s = i.onActive, l = i.onInactive, u = {
1764
+ var i = a.useContext(lt), o = i.activeKey, s = i.onActive, l = i.onInactive, u = {
1765
1765
  active: o === e
1766
1766
  };
1767
1767
  return n || (u.onMouseEnter = function(c) {
@@ -1777,7 +1777,7 @@ function da(e, n, t, r) {
1777
1777
  }), u;
1778
1778
  }
1779
1779
  function ma(e) {
1780
- var n = a.useContext(ot), t = n.mode, r = n.rtl, i = n.inlineIndent;
1780
+ var n = a.useContext(lt), t = n.mode, r = n.rtl, i = n.inlineIndent;
1781
1781
  if (t !== "inline")
1782
1782
  return null;
1783
1783
  var o = e;
@@ -1793,10 +1793,10 @@ function ha(e) {
1793
1793
  }
1794
1794
  var qi = ["item"];
1795
1795
  function An(e) {
1796
- var n = e.item, t = De(e, qi);
1796
+ var n = e.item, t = ke(e, qi);
1797
1797
  return Object.defineProperty(t, "item", {
1798
1798
  get: function() {
1799
- return un(!1, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future."), n;
1799
+ return fn(!1, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future."), n;
1800
1800
  }
1801
1801
  }), t;
1802
1802
  }
@@ -1809,8 +1809,8 @@ var Gi = ["title", "attribute", "elementRef"], Ji = ["style", "className", "even
1809
1809
  return $r(t, [{
1810
1810
  key: "render",
1811
1811
  value: function() {
1812
- var i = this.props, o = i.title, s = i.attribute, l = i.elementRef, u = De(i, Gi), c = vr(u, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
1813
- return un(!s, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ a.createElement(Mt.Item, ae({}, s, {
1812
+ var i = this.props, o = i.title, s = i.attribute, l = i.elementRef, u = ke(i, Gi), c = vr(u, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
1813
+ return fn(!s, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ a.createElement(Pt.Item, ae({}, s, {
1814
1814
  title: typeof o == "string" ? o : void 0
1815
1815
  }, c, {
1816
1816
  ref: l
@@ -1818,56 +1818,56 @@ var Gi = ["title", "attribute", "elementRef"], Ji = ["style", "className", "even
1818
1818
  }
1819
1819
  }]), t;
1820
1820
  }(a.Component), Yi = /* @__PURE__ */ a.forwardRef(function(e, n) {
1821
- var t = e.style, r = e.className, i = e.eventKey, o = e.warnKey, s = e.disabled, l = e.itemIcon, u = e.children, c = e.role, b = e.onMouseEnter, f = e.onMouseLeave, d = e.onClick, m = e.onKeyDown, h = e.onFocus, E = De(e, Ji), g = la(i), M = a.useContext(ot), S = M.prefixCls, y = M.onItemClick, w = M.disabled, C = M.overflowDisabled, v = M.itemIcon, N = M.selectedKeys, O = M.onActive, D = a.useContext(dr), B = D._internalRenderMenuItem, $ = "".concat(S, "-item"), z = a.useRef(), L = a.useRef(), j = w || s, Z = ur(n, L), q = Sn(i);
1822
- process.env.NODE_ENV !== "production" && o && un(!1, "MenuItem should not leave undefined `key`.");
1823
- var Q = function(te) {
1821
+ var t = e.style, r = e.className, i = e.eventKey, o = e.warnKey, s = e.disabled, l = e.itemIcon, u = e.children, c = e.role, b = e.onMouseEnter, f = e.onMouseLeave, d = e.onClick, m = e.onKeyDown, h = e.onFocus, R = ke(e, Ji), g = la(i), M = a.useContext(lt), S = M.prefixCls, y = M.onItemClick, w = M.disabled, C = M.overflowDisabled, v = M.itemIcon, E = M.selectedKeys, D = M.onActive, K = a.useContext(dr), U = K._internalRenderMenuItem, z = "".concat(S, "-item"), F = a.useRef(), A = a.useRef(), j = w || s, Z = ur(n, A), $ = En(i);
1822
+ process.env.NODE_ENV !== "production" && o && fn(!1, "MenuItem should not leave undefined `key`.");
1823
+ var V = function(ie) {
1824
1824
  return {
1825
1825
  key: i,
1826
1826
  // Note: For legacy code is reversed which not like other antd component
1827
- keyPath: Rt(q).reverse(),
1828
- item: z.current,
1829
- domEvent: te
1827
+ keyPath: Nt($).reverse(),
1828
+ item: F.current,
1829
+ domEvent: ie
1830
1830
  };
1831
- }, V = l || v, A = da(i, j, b, f), x = A.active, Me = De(A, Zi), ue = N.includes(i), G = ma(q.length), K = function(te) {
1831
+ }, N = l || v, q = da(i, j, b, f), Q = q.active, ne = ke(q, Zi), k = E.includes(i), me = ma($.length), Me = function(ie) {
1832
1832
  if (!j) {
1833
- var pe = Q(te);
1834
- d == null || d(An(pe)), y(pe);
1833
+ var ge = V(ie);
1834
+ d == null || d(An(ge)), y(ge);
1835
1835
  }
1836
- }, W = function(te) {
1837
- if (m == null || m(te), te.which === st.ENTER) {
1838
- var pe = Q(te);
1839
- d == null || d(An(pe)), y(pe);
1836
+ }, Y = function(ie) {
1837
+ if (m == null || m(ie), ie.which === ut.ENTER) {
1838
+ var ge = V(ie);
1839
+ d == null || d(An(ge)), y(ge);
1840
1840
  }
1841
- }, ie = function(te) {
1842
- O(i), h == null || h(te);
1843
- }, be = {};
1844
- e.role === "option" && (be["aria-selected"] = ue);
1845
- var F = /* @__PURE__ */ a.createElement(Qi, ae({
1846
- ref: z,
1841
+ }, G = function(ie) {
1842
+ D(i), h == null || h(ie);
1843
+ }, he = {};
1844
+ e.role === "option" && (he["aria-selected"] = k);
1845
+ var H = /* @__PURE__ */ a.createElement(Qi, ae({
1846
+ ref: F,
1847
1847
  elementRef: Z,
1848
1848
  role: c === null ? "none" : c || "menuitem",
1849
1849
  tabIndex: s ? null : -1,
1850
1850
  "data-menu-id": C && g ? null : g
1851
- }, vr(E, ["extra"]), Me, be, {
1851
+ }, vr(R, ["extra"]), ne, he, {
1852
1852
  component: "li",
1853
1853
  "aria-disabled": s,
1854
- style: T(T({}, G), t),
1855
- className: ke($, he(he(he({}, "".concat($, "-active"), x), "".concat($, "-selected"), ue), "".concat($, "-disabled"), j), r),
1856
- onClick: K,
1857
- onKeyDown: W,
1858
- onFocus: ie
1854
+ style: T(T({}, me), t),
1855
+ className: Oe(z, fe(fe(fe({}, "".concat(z, "-active"), Q), "".concat(z, "-selected"), k), "".concat(z, "-disabled"), j), r),
1856
+ onClick: Me,
1857
+ onKeyDown: Y,
1858
+ onFocus: G
1859
1859
  }), u, /* @__PURE__ */ a.createElement(ha, {
1860
1860
  props: T(T({}, e), {}, {
1861
- isSelected: ue
1861
+ isSelected: k
1862
1862
  }),
1863
- icon: V
1863
+ icon: N
1864
1864
  }));
1865
- return B && (F = B(F, e, {
1866
- selected: ue
1867
- })), F;
1865
+ return U && (H = U(H, e, {
1866
+ selected: k
1867
+ })), H;
1868
1868
  });
1869
1869
  function Xi(e, n) {
1870
- var t = e.eventKey, r = Wn(), i = Sn(t);
1870
+ var t = e.eventKey, r = Wn(), i = En(t);
1871
1871
  return a.useEffect(function() {
1872
1872
  if (r)
1873
1873
  return r.registerPath(t, i), function() {
@@ -1879,9 +1879,9 @@ function Xi(e, n) {
1879
1879
  }
1880
1880
  const gr = /* @__PURE__ */ a.forwardRef(Xi);
1881
1881
  var eo = ["className", "children"], to = function(n, t) {
1882
- var r = n.className, i = n.children, o = De(n, eo), s = a.useContext(ot), l = s.prefixCls, u = s.mode, c = s.rtl;
1882
+ var r = n.className, i = n.children, o = ke(n, eo), s = a.useContext(lt), l = s.prefixCls, u = s.mode, c = s.rtl;
1883
1883
  return /* @__PURE__ */ a.createElement("ul", ae({
1884
- className: ke(l, c && "".concat(l, "-rtl"), "".concat(l, "-sub"), "".concat(l, "-").concat(u === "inline" ? "inline" : "vertical"), r),
1884
+ className: Oe(l, c && "".concat(l, "-rtl"), "".concat(l, "-sub"), "".concat(l, "-").concat(u === "inline" ? "inline" : "vertical"), r),
1885
1885
  role: "menu"
1886
1886
  }, o, {
1887
1887
  "data-menu-list": !0,
@@ -1893,7 +1893,7 @@ function br(e, n) {
1893
1893
  return Vr(e).map(function(t, r) {
1894
1894
  if (/* @__PURE__ */ a.isValidElement(t)) {
1895
1895
  var i, o, s = t.key, l = (i = (o = t.props) === null || o === void 0 ? void 0 : o.eventKey) !== null && i !== void 0 ? i : s, u = l == null;
1896
- u && (l = "tmp_key-".concat([].concat(Rt(n), [r]).join("-")));
1896
+ u && (l = "tmp_key-".concat([].concat(Nt(n), [r]).join("-")));
1897
1897
  var c = {
1898
1898
  key: l,
1899
1899
  eventKey: l
@@ -1903,74 +1903,74 @@ function br(e, n) {
1903
1903
  return t;
1904
1904
  });
1905
1905
  }
1906
- var ze = {
1906
+ var Ve = {
1907
1907
  adjustX: 1,
1908
1908
  adjustY: 1
1909
1909
  }, no = {
1910
1910
  topLeft: {
1911
1911
  points: ["bl", "tl"],
1912
- overflow: ze
1912
+ overflow: Ve
1913
1913
  },
1914
1914
  topRight: {
1915
1915
  points: ["br", "tr"],
1916
- overflow: ze
1916
+ overflow: Ve
1917
1917
  },
1918
1918
  bottomLeft: {
1919
1919
  points: ["tl", "bl"],
1920
- overflow: ze
1920
+ overflow: Ve
1921
1921
  },
1922
1922
  bottomRight: {
1923
1923
  points: ["tr", "br"],
1924
- overflow: ze
1924
+ overflow: Ve
1925
1925
  },
1926
1926
  leftTop: {
1927
1927
  points: ["tr", "tl"],
1928
- overflow: ze
1928
+ overflow: Ve
1929
1929
  },
1930
1930
  leftBottom: {
1931
1931
  points: ["br", "bl"],
1932
- overflow: ze
1932
+ overflow: Ve
1933
1933
  },
1934
1934
  rightTop: {
1935
1935
  points: ["tl", "tr"],
1936
- overflow: ze
1936
+ overflow: Ve
1937
1937
  },
1938
1938
  rightBottom: {
1939
1939
  points: ["bl", "br"],
1940
- overflow: ze
1940
+ overflow: Ve
1941
1941
  }
1942
1942
  }, ro = {
1943
1943
  topLeft: {
1944
1944
  points: ["bl", "tl"],
1945
- overflow: ze
1945
+ overflow: Ve
1946
1946
  },
1947
1947
  topRight: {
1948
1948
  points: ["br", "tr"],
1949
- overflow: ze
1949
+ overflow: Ve
1950
1950
  },
1951
1951
  bottomLeft: {
1952
1952
  points: ["tl", "bl"],
1953
- overflow: ze
1953
+ overflow: Ve
1954
1954
  },
1955
1955
  bottomRight: {
1956
1956
  points: ["tr", "br"],
1957
- overflow: ze
1957
+ overflow: Ve
1958
1958
  },
1959
1959
  rightTop: {
1960
1960
  points: ["tr", "tl"],
1961
- overflow: ze
1961
+ overflow: Ve
1962
1962
  },
1963
1963
  rightBottom: {
1964
1964
  points: ["br", "bl"],
1965
- overflow: ze
1965
+ overflow: Ve
1966
1966
  },
1967
1967
  leftTop: {
1968
1968
  points: ["tl", "tr"],
1969
- overflow: ze
1969
+ overflow: Ve
1970
1970
  },
1971
1971
  leftBottom: {
1972
1972
  points: ["bl", "br"],
1973
- overflow: ze
1973
+ overflow: Ve
1974
1974
  }
1975
1975
  };
1976
1976
  function ga(e, n, t) {
@@ -1986,27 +1986,27 @@ var ao = {
1986
1986
  "vertical-right": "leftTop"
1987
1987
  };
1988
1988
  function io(e) {
1989
- var n = e.prefixCls, t = e.visible, r = e.children, i = e.popup, o = e.popupStyle, s = e.popupClassName, l = e.popupOffset, u = e.disabled, c = e.mode, b = e.onVisibleChange, f = a.useContext(ot), d = f.getPopupContainer, m = f.rtl, h = f.subMenuOpenDelay, E = f.subMenuCloseDelay, g = f.builtinPlacements, M = f.triggerSubMenuAction, S = f.forceSubMenuRender, y = f.rootClassName, w = f.motion, C = f.defaultMotions, v = a.useState(!1), N = k(v, 2), O = N[0], D = N[1], B = m ? T(T({}, ro), g) : T(T({}, no), g), $ = ao[c], z = ga(c, w, C), L = a.useRef(z);
1990
- c !== "inline" && (L.current = z);
1991
- var j = T(T({}, L.current), {}, {
1989
+ var n = e.prefixCls, t = e.visible, r = e.children, i = e.popup, o = e.popupStyle, s = e.popupClassName, l = e.popupOffset, u = e.disabled, c = e.mode, b = e.onVisibleChange, f = a.useContext(lt), d = f.getPopupContainer, m = f.rtl, h = f.subMenuOpenDelay, R = f.subMenuCloseDelay, g = f.builtinPlacements, M = f.triggerSubMenuAction, S = f.forceSubMenuRender, y = f.rootClassName, w = f.motion, C = f.defaultMotions, v = a.useState(!1), E = O(v, 2), D = E[0], K = E[1], U = m ? T(T({}, ro), g) : T(T({}, no), g), z = ao[c], F = ga(c, w, C), A = a.useRef(F);
1990
+ c !== "inline" && (A.current = F);
1991
+ var j = T(T({}, A.current), {}, {
1992
1992
  leavedClassName: "".concat(n, "-hidden"),
1993
1993
  removeOnLeave: !1,
1994
1994
  motionAppear: !0
1995
1995
  }), Z = a.useRef();
1996
1996
  return a.useEffect(function() {
1997
- return Z.current = Ht(function() {
1998
- D(t);
1997
+ return Z.current = Jt(function() {
1998
+ K(t);
1999
1999
  }), function() {
2000
- Ht.cancel(Z.current);
2000
+ Jt.cancel(Z.current);
2001
2001
  };
2002
2002
  }, [t]), /* @__PURE__ */ a.createElement(ia, {
2003
2003
  prefixCls: n,
2004
- popupClassName: ke("".concat(n, "-popup"), he({}, "".concat(n, "-rtl"), m), s, y),
2004
+ popupClassName: Oe("".concat(n, "-popup"), fe({}, "".concat(n, "-rtl"), m), s, y),
2005
2005
  stretch: c === "horizontal" ? "minWidth" : null,
2006
2006
  getPopupContainer: d,
2007
- builtinPlacements: B,
2008
- popupPlacement: $,
2009
- popupVisible: O,
2007
+ builtinPlacements: U,
2008
+ popupPlacement: z,
2009
+ popupVisible: D,
2010
2010
  popup: i,
2011
2011
  popupStyle: o,
2012
2012
  popupAlign: l && {
@@ -2014,7 +2014,7 @@ function io(e) {
2014
2014
  },
2015
2015
  action: u ? [] : [M],
2016
2016
  mouseEnterDelay: h,
2017
- mouseLeaveDelay: E,
2017
+ mouseLeaveDelay: R,
2018
2018
  onPopupVisibleChange: b,
2019
2019
  forceRender: S,
2020
2020
  popupMotion: j,
@@ -2022,9 +2022,9 @@ function io(e) {
2022
2022
  }, r);
2023
2023
  }
2024
2024
  function oo(e) {
2025
- var n = e.id, t = e.open, r = e.keyPath, i = e.children, o = "inline", s = a.useContext(ot), l = s.prefixCls, u = s.forceSubMenuRender, c = s.motion, b = s.defaultMotions, f = s.mode, d = a.useRef(!1);
2025
+ var n = e.id, t = e.open, r = e.keyPath, i = e.children, o = "inline", s = a.useContext(lt), l = s.prefixCls, u = s.forceSubMenuRender, c = s.motion, b = s.defaultMotions, f = s.mode, d = a.useRef(!1);
2026
2026
  d.current = f === o;
2027
- var m = a.useState(!d.current), h = k(m, 2), E = h[0], g = h[1], M = d.current ? t : !1;
2027
+ var m = a.useState(!d.current), h = O(m, 2), R = h[0], g = h[1], M = d.current ? t : !1;
2028
2028
  a.useEffect(function() {
2029
2029
  d.current && g(!1);
2030
2030
  }, [f]);
@@ -2033,7 +2033,7 @@ function oo(e) {
2033
2033
  var y = S.onVisibleChanged;
2034
2034
  return S.onVisibleChanged = function(w) {
2035
2035
  return !d.current && !w && g(!0), y == null ? void 0 : y(w);
2036
- }, E ? null : /* @__PURE__ */ a.createElement(Rn, {
2036
+ }, R ? null : /* @__PURE__ */ a.createElement(Rn, {
2037
2037
  mode: o,
2038
2038
  locked: !d.current
2039
2039
  }, /* @__PURE__ */ a.createElement(cr, ae({
@@ -2052,109 +2052,109 @@ function oo(e) {
2052
2052
  }));
2053
2053
  }
2054
2054
  var so = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], lo = ["active"], uo = /* @__PURE__ */ a.forwardRef(function(e, n) {
2055
- var t = e.style, r = e.className, i = e.title, o = e.eventKey, s = e.warnKey, l = e.disabled, u = e.internalPopupClose, c = e.children, b = e.itemIcon, f = e.expandIcon, d = e.popupClassName, m = e.popupOffset, h = e.popupStyle, E = e.onClick, g = e.onMouseEnter, M = e.onMouseLeave, S = e.onTitleClick, y = e.onTitleMouseEnter, w = e.onTitleMouseLeave, C = De(e, so), v = la(o), N = a.useContext(ot), O = N.prefixCls, D = N.mode, B = N.openKeys, $ = N.disabled, z = N.overflowDisabled, L = N.activeKey, j = N.selectedKeys, Z = N.itemIcon, q = N.expandIcon, Q = N.onItemClick, V = N.onOpenChange, A = N.onActive, x = a.useContext(dr), Me = x._internalRenderSubMenuItem, ue = a.useContext(fa), G = ue.isSubPathKey, K = Sn(), W = "".concat(O, "-submenu"), ie = $ || l, be = a.useRef(), F = a.useRef();
2056
- process.env.NODE_ENV !== "production" && s && un(!1, "SubMenu should not leave undefined `key`.");
2057
- var Y = b ?? Z, te = f ?? q, pe = B.includes(o), oe = !z && pe, _e = G(j, o), Re = da(o, ie, y, w), se = Re.active, He = De(Re, lo), Be = a.useState(!1), ce = k(Be, 2), Ie = ce[0], Ve = ce[1], de = function(re) {
2058
- ie || Ve(re);
2059
- }, ht = function(re) {
2060
- de(!0), g == null || g({
2055
+ var t = e.style, r = e.className, i = e.title, o = e.eventKey, s = e.warnKey, l = e.disabled, u = e.internalPopupClose, c = e.children, b = e.itemIcon, f = e.expandIcon, d = e.popupClassName, m = e.popupOffset, h = e.popupStyle, R = e.onClick, g = e.onMouseEnter, M = e.onMouseLeave, S = e.onTitleClick, y = e.onTitleMouseEnter, w = e.onTitleMouseLeave, C = ke(e, so), v = la(o), E = a.useContext(lt), D = E.prefixCls, K = E.mode, U = E.openKeys, z = E.disabled, F = E.overflowDisabled, A = E.activeKey, j = E.selectedKeys, Z = E.itemIcon, $ = E.expandIcon, V = E.onItemClick, N = E.onOpenChange, q = E.onActive, Q = a.useContext(dr), ne = Q._internalRenderSubMenuItem, k = a.useContext(fa), me = k.isSubPathKey, Me = En(), Y = "".concat(D, "-submenu"), G = z || l, he = a.useRef(), H = a.useRef();
2056
+ process.env.NODE_ENV !== "production" && s && fn(!1, "SubMenu should not leave undefined `key`.");
2057
+ var X = b ?? Z, ie = f ?? $, ge = U.includes(o), ve = !F && ge, Ie = me(j, o), ye = da(o, G, y, w), le = ye.active, xe = ke(ye, lo), He = a.useState(!1), Re = O(He, 2), be = Re[0], We = Re[1], Se = function(ee) {
2058
+ G || We(ee);
2059
+ }, qe = function(ee) {
2060
+ Se(!0), g == null || g({
2061
2061
  key: o,
2062
- domEvent: re
2062
+ domEvent: ee
2063
2063
  });
2064
- }, H = function(re) {
2065
- de(!1), M == null || M({
2064
+ }, tt = function(ee) {
2065
+ Se(!1), M == null || M({
2066
2066
  key: o,
2067
- domEvent: re
2067
+ domEvent: ee
2068
2068
  });
2069
- }, Ge = a.useMemo(function() {
2070
- return se || (D !== "inline" ? Ie || G([L], o) : !1);
2071
- }, [D, se, L, Ie, o, G]), Ce = ma(K.length), J = function(re) {
2072
- ie || (S == null || S({
2069
+ }, W = a.useMemo(function() {
2070
+ return le || (K !== "inline" ? be || me([A], o) : !1);
2071
+ }, [K, le, A, be, o, me]), Ne = ma(Me.length), J = function(ee) {
2072
+ G || (S == null || S({
2073
2073
  key: o,
2074
- domEvent: re
2075
- }), D === "inline" && V(o, !pe));
2076
- }, We = Cn(function(ne) {
2077
- E == null || E(An(ne)), Q(ne);
2078
- }), Te = function(re) {
2079
- D !== "inline" && V(o, re);
2080
- }, Le = function() {
2081
- A(o);
2082
- }, Je = v && "".concat(v, "-popup"), Ae = a.useMemo(function() {
2074
+ domEvent: ee
2075
+ }), K === "inline" && N(o, !ge));
2076
+ }, nt = Cn(function(oe) {
2077
+ R == null || R(An(oe)), V(oe);
2078
+ }), Ae = function(ee) {
2079
+ K !== "inline" && N(o, ee);
2080
+ }, pe = function() {
2081
+ q(o);
2082
+ }, Ge = v && "".concat(v, "-popup"), $e = a.useMemo(function() {
2083
2083
  return /* @__PURE__ */ a.createElement(ha, {
2084
- icon: D !== "horizontal" ? te : void 0,
2084
+ icon: K !== "horizontal" ? ie : void 0,
2085
2085
  props: T(T({}, e), {}, {
2086
- isOpen: oe,
2086
+ isOpen: ve,
2087
2087
  // [Legacy] Not sure why need this mark
2088
2088
  isSubMenu: !0
2089
2089
  })
2090
2090
  }, /* @__PURE__ */ a.createElement("i", {
2091
- className: "".concat(W, "-arrow")
2091
+ className: "".concat(Y, "-arrow")
2092
2092
  }));
2093
- }, [D, te, e, oe, W]), we = /* @__PURE__ */ a.createElement("div", ae({
2093
+ }, [K, ie, e, ve, Y]), Ee = /* @__PURE__ */ a.createElement("div", ae({
2094
2094
  role: "menuitem",
2095
- style: Ce,
2096
- className: "".concat(W, "-title"),
2097
- tabIndex: ie ? null : -1,
2098
- ref: be,
2095
+ style: Ne,
2096
+ className: "".concat(Y, "-title"),
2097
+ tabIndex: G ? null : -1,
2098
+ ref: he,
2099
2099
  title: typeof i == "string" ? i : null,
2100
- "data-menu-id": z && v ? null : v,
2101
- "aria-expanded": oe,
2100
+ "data-menu-id": F && v ? null : v,
2101
+ "aria-expanded": ve,
2102
2102
  "aria-haspopup": !0,
2103
- "aria-controls": Je,
2104
- "aria-disabled": ie,
2103
+ "aria-controls": Ge,
2104
+ "aria-disabled": G,
2105
2105
  onClick: J,
2106
- onFocus: Le
2107
- }, He), i, Ae), fe = a.useRef(D);
2108
- if (D !== "inline" && K.length > 1 ? fe.current = "vertical" : fe.current = D, !z) {
2109
- var Ee = fe.current;
2110
- we = /* @__PURE__ */ a.createElement(io, {
2111
- mode: Ee,
2112
- prefixCls: W,
2113
- visible: !u && oe && D !== "inline",
2106
+ onFocus: pe
2107
+ }, xe), i, $e), Ke = a.useRef(K);
2108
+ if (K !== "inline" && Me.length > 1 ? Ke.current = "vertical" : Ke.current = K, !F) {
2109
+ var Pe = Ke.current;
2110
+ Ee = /* @__PURE__ */ a.createElement(io, {
2111
+ mode: Pe,
2112
+ prefixCls: Y,
2113
+ visible: !u && ve && K !== "inline",
2114
2114
  popupClassName: d,
2115
2115
  popupOffset: m,
2116
2116
  popupStyle: h,
2117
2117
  popup: /* @__PURE__ */ a.createElement(
2118
2118
  Rn,
2119
2119
  {
2120
- mode: Ee === "horizontal" ? "vertical" : Ee
2120
+ mode: Pe === "horizontal" ? "vertical" : Pe
2121
2121
  },
2122
2122
  /* @__PURE__ */ a.createElement(yr, {
2123
- id: Je,
2124
- ref: F
2123
+ id: Ge,
2124
+ ref: H
2125
2125
  }, c)
2126
2126
  ),
2127
- disabled: ie,
2128
- onVisibleChange: Te
2129
- }, we);
2127
+ disabled: G,
2128
+ onVisibleChange: Ae
2129
+ }, Ee);
2130
2130
  }
2131
- var Ze = /* @__PURE__ */ a.createElement(Mt.Item, ae({
2131
+ var Ce = /* @__PURE__ */ a.createElement(Pt.Item, ae({
2132
2132
  ref: n,
2133
2133
  role: "none"
2134
2134
  }, C, {
2135
2135
  component: "li",
2136
2136
  style: t,
2137
- className: ke(W, "".concat(W, "-").concat(D), r, he(he(he(he({}, "".concat(W, "-open"), oe), "".concat(W, "-active"), Ge), "".concat(W, "-selected"), _e), "".concat(W, "-disabled"), ie)),
2138
- onMouseEnter: ht,
2139
- onMouseLeave: H
2140
- }), we, !z && /* @__PURE__ */ a.createElement(oo, {
2141
- id: Je,
2142
- open: oe,
2143
- keyPath: K
2137
+ className: Oe(Y, "".concat(Y, "-").concat(K), r, fe(fe(fe(fe({}, "".concat(Y, "-open"), ve), "".concat(Y, "-active"), W), "".concat(Y, "-selected"), Ie), "".concat(Y, "-disabled"), G)),
2138
+ onMouseEnter: qe,
2139
+ onMouseLeave: tt
2140
+ }), Ee, !F && /* @__PURE__ */ a.createElement(oo, {
2141
+ id: Ge,
2142
+ open: ve,
2143
+ keyPath: Me
2144
2144
  }, c));
2145
- return Me && (Ze = Me(Ze, e, {
2146
- selected: _e,
2147
- active: Ge,
2148
- open: oe,
2149
- disabled: ie
2145
+ return ne && (Ce = ne(Ce, e, {
2146
+ selected: Ie,
2147
+ active: W,
2148
+ open: ve,
2149
+ disabled: G
2150
2150
  })), /* @__PURE__ */ a.createElement(Rn, {
2151
- onItemClick: We,
2152
- mode: D === "horizontal" ? "vertical" : D,
2153
- itemIcon: Y,
2154
- expandIcon: te
2155
- }, Ze);
2151
+ onItemClick: nt,
2152
+ mode: K === "horizontal" ? "vertical" : K,
2153
+ itemIcon: X,
2154
+ expandIcon: ie
2155
+ }, Ce);
2156
2156
  }), Fn = /* @__PURE__ */ a.forwardRef(function(e, n) {
2157
- var t = e.eventKey, r = e.children, i = Sn(t), o = br(r, i), s = Wn();
2157
+ var t = e.eventKey, r = e.children, i = En(t), o = br(r, i), s = Wn();
2158
2158
  a.useEffect(function() {
2159
2159
  if (s)
2160
2160
  return s.registerPath(t, i), function() {
@@ -2170,17 +2170,17 @@ var so = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
2170
2170
  });
2171
2171
  process.env.NODE_ENV !== "production" && (Fn.displayName = "SubMenu");
2172
2172
  function ya(e) {
2173
- var n = e.className, t = e.style, r = a.useContext(ot), i = r.prefixCls, o = Wn();
2173
+ var n = e.className, t = e.style, r = a.useContext(lt), i = r.prefixCls, o = Wn();
2174
2174
  return o ? null : /* @__PURE__ */ a.createElement("li", {
2175
2175
  role: "separator",
2176
- className: ke("".concat(i, "-item-divider"), n),
2176
+ className: Oe("".concat(i, "-item-divider"), n),
2177
2177
  style: t
2178
2178
  });
2179
2179
  }
2180
2180
  var co = ["className", "title", "eventKey", "children"], fo = /* @__PURE__ */ a.forwardRef(function(e, n) {
2181
2181
  var t = e.className, r = e.title;
2182
2182
  e.eventKey;
2183
- var i = e.children, o = De(e, co), s = a.useContext(ot), l = s.prefixCls, u = "".concat(l, "-item-group");
2183
+ var i = e.children, o = ke(e, co), s = a.useContext(lt), l = s.prefixCls, u = "".concat(l, "-item-group");
2184
2184
  return /* @__PURE__ */ a.createElement("li", ae({
2185
2185
  ref: n,
2186
2186
  role: "presentation"
@@ -2188,7 +2188,7 @@ var co = ["className", "title", "eventKey", "children"], fo = /* @__PURE__ */ a.
2188
2188
  onClick: function(b) {
2189
2189
  return b.stopPropagation();
2190
2190
  },
2191
- className: ke(u, t)
2191
+ className: Oe(u, t)
2192
2192
  }), /* @__PURE__ */ a.createElement("div", {
2193
2193
  role: "presentation",
2194
2194
  className: "".concat(u, "-title"),
@@ -2198,7 +2198,7 @@ var co = ["className", "title", "eventKey", "children"], fo = /* @__PURE__ */ a.
2198
2198
  className: "".concat(u, "-list")
2199
2199
  }, i));
2200
2200
  }), pr = /* @__PURE__ */ a.forwardRef(function(e, n) {
2201
- var t = e.eventKey, r = e.children, i = Sn(t), o = br(r, i), s = Wn();
2201
+ var t = e.eventKey, r = e.children, i = En(t), o = br(r, i), s = Wn();
2202
2202
  return s ? o : /* @__PURE__ */ a.createElement(fo, ae({
2203
2203
  ref: n
2204
2204
  }, vr(e, ["warnKey"])), o);
@@ -2209,20 +2209,20 @@ function lr(e, n, t) {
2209
2209
  var r = n.item, i = n.group, o = n.submenu, s = n.divider;
2210
2210
  return (e || []).map(function(l, u) {
2211
2211
  if (l && zr(l) === "object") {
2212
- var c = l, b = c.label, f = c.children, d = c.key, m = c.type, h = c.extra, E = De(c, vo), g = d ?? "tmp-".concat(u);
2212
+ var c = l, b = c.label, f = c.children, d = c.key, m = c.type, h = c.extra, R = ke(c, vo), g = d ?? "tmp-".concat(u);
2213
2213
  return f || m === "group" ? m === "group" ? /* @__PURE__ */ a.createElement(i, ae({
2214
2214
  key: g
2215
- }, E, {
2215
+ }, R, {
2216
2216
  title: b
2217
2217
  }), lr(f, n, t)) : /* @__PURE__ */ a.createElement(o, ae({
2218
2218
  key: g
2219
- }, E, {
2219
+ }, R, {
2220
2220
  title: b
2221
2221
  }), lr(f, n, t)) : m === "divider" ? /* @__PURE__ */ a.createElement(s, ae({
2222
2222
  key: g
2223
- }, E)) : /* @__PURE__ */ a.createElement(r, ae({
2223
+ }, R)) : /* @__PURE__ */ a.createElement(r, ae({
2224
2224
  key: g
2225
- }, E, {
2225
+ }, R, {
2226
2226
  extra: h
2227
2227
  }), b, (!!h || h === 0) && /* @__PURE__ */ a.createElement("span", {
2228
2228
  className: "".concat(t, "-item-extra")
@@ -2242,198 +2242,198 @@ function Kr(e, n, t, r, i) {
2242
2242
  }, r);
2243
2243
  return n && (o = lr(n, s, i)), br(o, t);
2244
2244
  }
2245
- var mo = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], Ft = [], ho = /* @__PURE__ */ a.forwardRef(function(e, n) {
2246
- var t, r = e, i = r.prefixCls, o = i === void 0 ? "rc-menu" : i, s = r.rootClassName, l = r.style, u = r.className, c = r.tabIndex, b = c === void 0 ? 0 : c, f = r.items, d = r.children, m = r.direction, h = r.id, E = r.mode, g = E === void 0 ? "vertical" : E, M = r.inlineCollapsed, S = r.disabled, y = r.disabledOverflow, w = r.subMenuOpenDelay, C = w === void 0 ? 0.1 : w, v = r.subMenuCloseDelay, N = v === void 0 ? 0.1 : v, O = r.forceSubMenuRender, D = r.defaultOpenKeys, B = r.openKeys, $ = r.activeKey, z = r.defaultActiveFirst, L = r.selectable, j = L === void 0 ? !0 : L, Z = r.multiple, q = Z === void 0 ? !1 : Z, Q = r.defaultSelectedKeys, V = r.selectedKeys, A = r.onSelect, x = r.onDeselect, Me = r.inlineIndent, ue = Me === void 0 ? 24 : Me, G = r.motion, K = r.defaultMotions, W = r.triggerSubMenuAction, ie = W === void 0 ? "hover" : W, be = r.builtinPlacements, F = r.itemIcon, Y = r.expandIcon, te = r.overflowedIndicator, pe = te === void 0 ? "..." : te, oe = r.overflowedIndicatorPopupClassName, _e = r.getPopupContainer, Re = r.onClick, se = r.onOpenChange, He = r.onKeyDown, Be = r.openAnimation, ce = r.openTransitionName, Ie = r._internalRenderMenuItem, Ve = r._internalRenderSubMenuItem, de = r._internalComponents, ht = De(r, mo), H = a.useMemo(function() {
2247
- return [Kr(d, f, Ft, de, o), Kr(d, f, Ft, {}, o)];
2248
- }, [d, f, de]), Ge = k(H, 2), Ce = Ge[0], J = Ge[1], We = a.useState(!1), Te = k(We, 2), Le = Te[0], Je = Te[1], Ae = a.useRef(), we = ji(h), fe = m === "rtl";
2249
- process.env.NODE_ENV !== "production" && un(!Be && !ce, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
2250
- var Ee = Dn(D, {
2251
- value: B,
2252
- postState: function(U) {
2253
- return U || Ft;
2245
+ var mo = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], Gt = [], ho = /* @__PURE__ */ a.forwardRef(function(e, n) {
2246
+ var t, r = e, i = r.prefixCls, o = i === void 0 ? "rc-menu" : i, s = r.rootClassName, l = r.style, u = r.className, c = r.tabIndex, b = c === void 0 ? 0 : c, f = r.items, d = r.children, m = r.direction, h = r.id, R = r.mode, g = R === void 0 ? "vertical" : R, M = r.inlineCollapsed, S = r.disabled, y = r.disabledOverflow, w = r.subMenuOpenDelay, C = w === void 0 ? 0.1 : w, v = r.subMenuCloseDelay, E = v === void 0 ? 0.1 : v, D = r.forceSubMenuRender, K = r.defaultOpenKeys, U = r.openKeys, z = r.activeKey, F = r.defaultActiveFirst, A = r.selectable, j = A === void 0 ? !0 : A, Z = r.multiple, $ = Z === void 0 ? !1 : Z, V = r.defaultSelectedKeys, N = r.selectedKeys, q = r.onSelect, Q = r.onDeselect, ne = r.inlineIndent, k = ne === void 0 ? 24 : ne, me = r.motion, Me = r.defaultMotions, Y = r.triggerSubMenuAction, G = Y === void 0 ? "hover" : Y, he = r.builtinPlacements, H = r.itemIcon, X = r.expandIcon, ie = r.overflowedIndicator, ge = ie === void 0 ? "..." : ie, ve = r.overflowedIndicatorPopupClassName, Ie = r.getPopupContainer, ye = r.onClick, le = r.onOpenChange, xe = r.onKeyDown, He = r.openAnimation, Re = r.openTransitionName, be = r._internalRenderMenuItem, We = r._internalRenderSubMenuItem, Se = r._internalComponents, qe = ke(r, mo), tt = a.useMemo(function() {
2247
+ return [Kr(d, f, Gt, Se, o), Kr(d, f, Gt, {}, o)];
2248
+ }, [d, f, Se]), W = O(tt, 2), Ne = W[0], J = W[1], nt = a.useState(!1), Ae = O(nt, 2), pe = Ae[0], Ge = Ae[1], $e = a.useRef(), Ee = ji(h), Ke = m === "rtl";
2249
+ process.env.NODE_ENV !== "production" && fn(!He && !Re, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
2250
+ var Pe = Dn(K, {
2251
+ value: U,
2252
+ postState: function(B) {
2253
+ return B || Gt;
2254
2254
  }
2255
- }), Ze = k(Ee, 2), ne = Ze[0], re = Ze[1], $e = function(U) {
2256
- var ee = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
2257
- function Ke() {
2258
- re(U), se == null || se(U);
2255
+ }), Ce = O(Pe, 2), oe = Ce[0], ee = Ce[1], ze = function(B) {
2256
+ var te = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
2257
+ function Le() {
2258
+ ee(B), le == null || le(B);
2259
2259
  }
2260
- ee ? Br.flushSync(Ke) : Ke();
2261
- }, Et = a.useState(ne), lt = k(Et, 2), rt = lt[0], At = lt[1], Oe = a.useRef(!1), Pe = a.useMemo(function() {
2260
+ te ? Br.flushSync(Le) : Le();
2261
+ }, _t = a.useState(oe), vt = O(_t, 2), Ze = vt[0], zt = vt[1], rt = a.useRef(!1), Fe = a.useMemo(function() {
2262
2262
  return (g === "inline" || g === "vertical") && M ? ["vertical", M] : [g, !1];
2263
- }, [g, M]), ut = k(Pe, 2), me = ut[0], P = ut[1], R = me === "inline", I = a.useState(me), le = k(I, 2), ge = le[0], $t = le[1], Ue = a.useState(P), zt = k(Ue, 2), Vt = zt[0], ct = zt[1];
2263
+ }, [g, M]), _e = O(Fe, 2), ce = _e[0], _ = _e[1], x = ce === "inline", I = a.useState(ce), L = O(I, 2), se = L[0], dt = L[1], Be = a.useState(_), Vt = O(Be, 2), Wt = Vt[0], It = Vt[1];
2264
2264
  a.useEffect(function() {
2265
- $t(me), ct(P), Oe.current && (R ? re(rt) : $e(Ft));
2266
- }, [me, P]);
2267
- var Bt = a.useState(0), Ut = k(Bt, 2), ft = Ut[0], St = Ut[1], gt = ft >= Ce.length - 1 || ge !== "horizontal" || y;
2265
+ dt(ce), It(_), rt.current && (x ? ee(Ze) : ze(Gt));
2266
+ }, [ce, _]);
2267
+ var mt = a.useState(0), Zt = O(mt, 2), ht = Zt[0], xt = Zt[1], gt = ht >= Ne.length - 1 || se !== "horizontal" || y;
2268
2268
  a.useEffect(function() {
2269
- R && At(ne);
2270
- }, [ne]), a.useEffect(function() {
2271
- return Oe.current = !0, function() {
2272
- Oe.current = !1;
2269
+ x && zt(oe);
2270
+ }, [oe]), a.useEffect(function() {
2271
+ return rt.current = !0, function() {
2272
+ rt.current = !1;
2273
2273
  };
2274
2274
  }, []);
2275
- var Fe = Bi(), vt = Fe.registerPath, Ye = Fe.unregisterPath, Pt = Fe.refreshOverflowKeys, dt = Fe.isSubPathKey, jt = Fe.getKeyPath, Se = Fe.getKeys, qt = Fe.getSubPathKeys, fn = a.useMemo(function() {
2275
+ var Qe = Bi(), at = Qe.registerPath, it = Qe.unregisterPath, yt = Qe.refreshOverflowKeys, Ye = Qe.isSubPathKey, Qt = Qe.getKeyPath, Te = Qe.getKeys, bt = Qe.getSubPathKeys, Yt = a.useMemo(function() {
2276
2276
  return {
2277
- registerPath: vt,
2278
- unregisterPath: Ye
2277
+ registerPath: at,
2278
+ unregisterPath: it
2279
2279
  };
2280
- }, [vt, Ye]), yt = a.useMemo(function() {
2280
+ }, [at, it]), dn = a.useMemo(function() {
2281
2281
  return {
2282
- isSubPathKey: dt
2282
+ isSubPathKey: Ye
2283
2283
  };
2284
- }, [dt]);
2284
+ }, [Ye]);
2285
2285
  a.useEffect(function() {
2286
- Pt(gt ? Ft : Ce.slice(ft + 1).map(function(X) {
2287
- return X.key;
2286
+ yt(gt ? Gt : Ne.slice(ht + 1).map(function(re) {
2287
+ return re.key;
2288
2288
  }));
2289
- }, [ft, gt]);
2290
- var Gt = Dn($ || z && ((t = Ce[0]) === null || t === void 0 ? void 0 : t.key), {
2291
- value: $
2292
- }), Jt = k(Gt, 2), mt = Jt[0], Nt = Jt[1], bt = Cn(function(X) {
2293
- Nt(X);
2294
- }), Zt = Cn(function() {
2295
- Nt(void 0);
2289
+ }, [ht, gt]);
2290
+ var pt = Dn(z || F && ((t = Ne[0]) === null || t === void 0 ? void 0 : t.key), {
2291
+ value: z
2292
+ }), Ft = O(pt, 2), Ct = Ft[0], Dt = Ft[1], Xt = Cn(function(re) {
2293
+ Dt(re);
2294
+ }), wt = Cn(function() {
2295
+ Dt(void 0);
2296
2296
  });
2297
- Ea(n, function() {
2297
+ Sa(n, function() {
2298
2298
  return {
2299
- list: Ae.current,
2300
- focus: function(U) {
2301
- var ee, Ke = Se(), xe = or(Ke, we), xt = xe.elements, Wt = xe.key2element, Xt = xe.element2key, en = mr(Ae.current, xt), tn = mt ?? (en[0] ? Xt.get(en[0]) : (ee = Ce.find(function(mn) {
2302
- return !mn.props.disabled;
2303
- })) === null || ee === void 0 ? void 0 : ee.key), at = Wt.get(tn);
2304
- if (tn && at) {
2305
- var je;
2306
- at == null || (je = at.focus) === null || je === void 0 || je.call(at, U);
2299
+ list: $e.current,
2300
+ focus: function(B) {
2301
+ var te, Le = Te(), De = or(Le, Ee), Kt = De.elements, Ut = De.key2element, tn = De.element2key, nn = mr($e.current, Kt), rn = Ct ?? (nn[0] ? tn.get(nn[0]) : (te = Ne.find(function(jt) {
2302
+ return !jt.props.disabled;
2303
+ })) === null || te === void 0 ? void 0 : te.key), Rt = Ut.get(rn);
2304
+ if (rn && Rt) {
2305
+ var Ue;
2306
+ Rt == null || (Ue = Rt.focus) === null || Ue === void 0 || Ue.call(Rt, B);
2307
2307
  }
2308
2308
  }
2309
2309
  };
2310
2310
  });
2311
- var _t = Dn(Q || [], {
2312
- value: V,
2311
+ var Mt = Dn(V || [], {
2312
+ value: N,
2313
2313
  // Legacy convert key to array
2314
- postState: function(U) {
2315
- return Array.isArray(U) ? U : U == null ? Ft : [U];
2314
+ postState: function(B) {
2315
+ return Array.isArray(B) ? B : B == null ? Gt : [B];
2316
2316
  }
2317
- }), Xe = k(_t, 2), pt = Xe[0], Qt = Xe[1], et = function(U) {
2317
+ }), kt = O(Mt, 2), Xe = kt[0], Ht = kt[1], Ot = function(B) {
2318
2318
  if (j) {
2319
- var ee = U.key, Ke = pt.includes(ee), xe;
2320
- q ? Ke ? xe = pt.filter(function(Wt) {
2321
- return Wt !== ee;
2322
- }) : xe = [].concat(Rt(pt), [ee]) : xe = [ee], Qt(xe);
2323
- var xt = T(T({}, U), {}, {
2324
- selectedKeys: xe
2319
+ var te = B.key, Le = Xe.includes(te), De;
2320
+ $ ? Le ? De = Xe.filter(function(Ut) {
2321
+ return Ut !== te;
2322
+ }) : De = [].concat(Nt(Xe), [te]) : De = [te], Ht(De);
2323
+ var Kt = T(T({}, B), {}, {
2324
+ selectedKeys: De
2325
2325
  });
2326
- Ke ? x == null || x(xt) : A == null || A(xt);
2326
+ Le ? Q == null || Q(Kt) : q == null || q(Kt);
2327
2327
  }
2328
- !q && ne.length && ge !== "inline" && $e(Ft);
2329
- }, Qe = Cn(function(X) {
2330
- Re == null || Re(An(X)), et(X);
2331
- }), Ct = Cn(function(X, U) {
2332
- var ee = ne.filter(function(xe) {
2333
- return xe !== X;
2328
+ !$ && oe.length && se !== "inline" && ze(Gt);
2329
+ }, Je = Cn(function(re) {
2330
+ ye == null || ye(An(re)), Ot(re);
2331
+ }), ot = Cn(function(re, B) {
2332
+ var te = oe.filter(function(De) {
2333
+ return De !== re;
2334
2334
  });
2335
- if (U)
2336
- ee.push(X);
2337
- else if (ge !== "inline") {
2338
- var Ke = qt(X);
2339
- ee = ee.filter(function(xe) {
2340
- return !Ke.has(xe);
2335
+ if (B)
2336
+ te.push(re);
2337
+ else if (se !== "inline") {
2338
+ var Le = bt(re);
2339
+ te = te.filter(function(De) {
2340
+ return !Le.has(De);
2341
2341
  });
2342
2342
  }
2343
- Hr(ne, ee, !0) || $e(ee, !0);
2344
- }), It = function(U, ee) {
2345
- var Ke = ee ?? !ne.includes(U);
2346
- Ct(U, Ke);
2347
- }, tt = Wi(ge, mt, fe, we, Ae, Se, jt, Nt, It, He);
2343
+ Hr(oe, te, !0) || ze(te, !0);
2344
+ }), ct = function(B, te) {
2345
+ var Le = te ?? !oe.includes(B);
2346
+ ot(B, Le);
2347
+ }, ft = Wi(se, Ct, Ke, Ee, $e, Te, Qt, Dt, ct, xe);
2348
2348
  a.useEffect(function() {
2349
- Je(!0);
2349
+ Ge(!0);
2350
2350
  }, []);
2351
- var vn = a.useMemo(function() {
2351
+ var Bt = a.useMemo(function() {
2352
2352
  return {
2353
- _internalRenderMenuItem: Ie,
2354
- _internalRenderSubMenuItem: Ve
2353
+ _internalRenderMenuItem: be,
2354
+ _internalRenderSubMenuItem: We
2355
2355
  };
2356
- }, [Ie, Ve]), Yt = ge !== "horizontal" || y ? Ce : (
2356
+ }, [be, We]), mn = se !== "horizontal" || y ? Ne : (
2357
2357
  // Need wrap for overflow dropdown that do not response for open
2358
- Ce.map(function(X, U) {
2358
+ Ne.map(function(re, B) {
2359
2359
  return (
2360
2360
  // Always wrap provider to avoid sub node re-mount
2361
2361
  /* @__PURE__ */ a.createElement(Rn, {
2362
- key: X.key,
2363
- overflowDisabled: U > ft
2364
- }, X)
2362
+ key: re.key,
2363
+ overflowDisabled: B > ht
2364
+ }, re)
2365
2365
  );
2366
2366
  })
2367
- ), dn = /* @__PURE__ */ a.createElement(Mt, ae({
2367
+ ), en = /* @__PURE__ */ a.createElement(Pt, ae({
2368
2368
  id: h,
2369
- ref: Ae,
2369
+ ref: $e,
2370
2370
  prefixCls: "".concat(o, "-overflow"),
2371
2371
  component: "ul",
2372
2372
  itemComponent: gr,
2373
- className: ke(o, "".concat(o, "-root"), "".concat(o, "-").concat(ge), u, he(he({}, "".concat(o, "-inline-collapsed"), Vt), "".concat(o, "-rtl"), fe), s),
2373
+ className: Oe(o, "".concat(o, "-root"), "".concat(o, "-").concat(se), u, fe(fe({}, "".concat(o, "-inline-collapsed"), Wt), "".concat(o, "-rtl"), Ke), s),
2374
2374
  dir: m,
2375
2375
  style: l,
2376
2376
  role: "menu",
2377
2377
  tabIndex: b,
2378
- data: Yt,
2379
- renderRawItem: function(U) {
2380
- return U;
2378
+ data: mn,
2379
+ renderRawItem: function(B) {
2380
+ return B;
2381
2381
  },
2382
- renderRawRest: function(U) {
2383
- var ee = U.length, Ke = ee ? Ce.slice(-ee) : null;
2382
+ renderRawRest: function(B) {
2383
+ var te = B.length, Le = te ? Ne.slice(-te) : null;
2384
2384
  return /* @__PURE__ */ a.createElement(Fn, {
2385
2385
  eventKey: sr,
2386
- title: pe,
2386
+ title: ge,
2387
2387
  disabled: gt,
2388
- internalPopupClose: ee === 0,
2389
- popupClassName: oe
2390
- }, Ke);
2388
+ internalPopupClose: te === 0,
2389
+ popupClassName: ve
2390
+ }, Le);
2391
2391
  },
2392
- maxCount: ge !== "horizontal" || y ? Mt.INVALIDATE : Mt.RESPONSIVE,
2392
+ maxCount: se !== "horizontal" || y ? Pt.INVALIDATE : Pt.RESPONSIVE,
2393
2393
  ssr: "full",
2394
2394
  "data-menu-list": !0,
2395
- onVisibleChange: function(U) {
2396
- St(U);
2395
+ onVisibleChange: function(B) {
2396
+ xt(B);
2397
2397
  },
2398
- onKeyDown: tt
2399
- }, ht));
2398
+ onKeyDown: ft
2399
+ }, qe));
2400
2400
  return /* @__PURE__ */ a.createElement(dr.Provider, {
2401
- value: vn
2401
+ value: Bt
2402
2402
  }, /* @__PURE__ */ a.createElement(oa.Provider, {
2403
- value: we
2403
+ value: Ee
2404
2404
  }, /* @__PURE__ */ a.createElement(Rn, {
2405
2405
  prefixCls: o,
2406
2406
  rootClassName: s,
2407
- mode: ge,
2408
- openKeys: ne,
2409
- rtl: fe,
2407
+ mode: se,
2408
+ openKeys: oe,
2409
+ rtl: Ke,
2410
2410
  disabled: S,
2411
- motion: Le ? G : null,
2412
- defaultMotions: Le ? K : null,
2413
- activeKey: mt,
2414
- onActive: bt,
2415
- onInactive: Zt,
2416
- selectedKeys: pt,
2417
- inlineIndent: ue,
2411
+ motion: pe ? me : null,
2412
+ defaultMotions: pe ? Me : null,
2413
+ activeKey: Ct,
2414
+ onActive: Xt,
2415
+ onInactive: wt,
2416
+ selectedKeys: Xe,
2417
+ inlineIndent: k,
2418
2418
  subMenuOpenDelay: C,
2419
- subMenuCloseDelay: N,
2420
- forceSubMenuRender: O,
2421
- builtinPlacements: be,
2422
- triggerSubMenuAction: ie,
2423
- getPopupContainer: _e,
2424
- itemIcon: F,
2425
- expandIcon: Y,
2426
- onItemClick: Qe,
2427
- onOpenChange: Ct
2419
+ subMenuCloseDelay: E,
2420
+ forceSubMenuRender: D,
2421
+ builtinPlacements: he,
2422
+ triggerSubMenuAction: G,
2423
+ getPopupContainer: Ie,
2424
+ itemIcon: H,
2425
+ expandIcon: X,
2426
+ onItemClick: Je,
2427
+ onOpenChange: ot
2428
2428
  }, /* @__PURE__ */ a.createElement(fa.Provider, {
2429
- value: yt
2430
- }, dn), /* @__PURE__ */ a.createElement("div", {
2429
+ value: dn
2430
+ }, en), /* @__PURE__ */ a.createElement("div", {
2431
2431
  style: {
2432
2432
  display: "none"
2433
2433
  },
2434
2434
  "aria-hidden": !0
2435
2435
  }, /* @__PURE__ */ a.createElement(ua.Provider, {
2436
- value: fn
2436
+ value: Yt
2437
2437
  }, J)))));
2438
2438
  }), Hn = ho;
2439
2439
  Hn.Item = gr;
@@ -2448,10 +2448,10 @@ var go = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "fa
2448
2448
  }, bo = /* @__PURE__ */ a.forwardRef(yo);
2449
2449
  process.env.NODE_ENV !== "production" && (bo.displayName = "EllipsisOutlined");
2450
2450
  export {
2451
- Eo as D,
2451
+ So as D,
2452
2452
  Hn as E,
2453
2453
  gr as M,
2454
- cn as R,
2454
+ vn as R,
2455
2455
  Fn as S,
2456
2456
  ia as T,
2457
2457
  Ro as a,
@@ -2463,5 +2463,5 @@ export {
2463
2463
  Za as g,
2464
2464
  ii as i,
2465
2465
  Xa as s,
2466
- Sn as u
2466
+ En as u
2467
2467
  };