(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
  [6161],
  {
    48293: function (e, t) {
      "use strict";
      Object.defineProperty(t, "__esModule", { value: !0 }),
        (t.default = {
          icon: {
            tag: "svg",
            attrs: { viewBox: "64 64 896 896", focusable: "false" },
            children: [
              {
                tag: "defs",
                attrs: {},
                children: [{ tag: "style", attrs: {} }],
              },
              {
                tag: "path",
                attrs: {
                  d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z",
                },
              },
              {
                tag: "path",
                attrs: {
                  d: "M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z",
                },
              },
            ],
          },
          name: "plus",
          theme: "outlined",
        });
    },
    41377: function (e, t, n) {
      "use strict";
      Object.defineProperty(t, "__esModule", { value: !0 }),
        (t.default = void 0);
      var a,
        r = ((a = n(89358)), a && a.__esModule ? a : { default: a });
      (t.default = r), (e.exports = r);
    },
    89358: function (e, t, n) {
      "use strict";
      var a = n(12132),
        r = n(99903);
      Object.defineProperty(t, "__esModule", { value: !0 }),
        (t.default = void 0);
      var o = a(n(28927)),
        i = (function (e, t) {
          if (!t && e && e.__esModule) return e;
          if (null === e || ("object" !== r(e) && "function" != typeof e))
            return { default: e };
          var n = u(t);
          if (n && n.has(e)) return n.get(e);
          var a = {},
            o = Object.defineProperty && Object.getOwnPropertyDescriptor;
          for (var i in e)
            if ("default" !== i && Object.prototype.hasOwnProperty.call(e, i)) {
              var c = o ? Object.getOwnPropertyDescriptor(e, i) : null;
              c && (c.get || c.set)
                ? Object.defineProperty(a, i, c)
                : (a[i] = e[i]);
            }
          return (a.default = e), n && n.set(e, a), a;
        })(n(59496)),
        c = a(n(48293)),
        l = a(n(74925));
      function u(e) {
        if ("function" != typeof WeakMap) return null;
        var t = new WeakMap(),
          n = new WeakMap();
        return (u = function (e) {
          return e ? n : t;
        })(e);
      }
      var f = function (e, t) {
        return i.createElement(
          l.default,
          (0, o.default)((0, o.default)({}, e), {}, { ref: t, icon: c.default })
        );
      };
      f.displayName = "PlusOutlined";
      var s = i.forwardRef(f);
      t.default = s;
    },
    45204: function (e, t) {
      "use strict";
      Object.defineProperty(t, "__esModule", { value: !0 }),
        (t.default = void 0);
      var n = function () {
        return null;
      };
      t.default = n;
    },
    33767: function (e, t, n) {
      "use strict";
      var a = n(98772).default;
      Object.defineProperty(t, "__esModule", { value: !0 }),
        (t.default = function (e) {
          var t,
            n =
              arguments.length > 1 && void 0 !== arguments[1]
                ? arguments[1]
                : { inkBar: !0, tabPane: !1 };
          return (
            (t =
              !1 === n
                ? { inkBar: !1, tabPane: !1 }
                : !0 === n
                ? { inkBar: !0, tabPane: !0 }
                : (0, o.default)(
                    { inkBar: !0 },
                    "object" === (0, r.default)(n) ? n : {}
                  )).tabPane &&
              (t.tabPaneMotion = (0, o.default)((0, o.default)({}, c), {
                motionName: (0, i.getTransitionName)(e, "switch"),
              })),
            t
          );
        });
      var r = a(n(37635)),
        o = a(n(60799)),
        i = n(70718),
        c = { motionAppear: !1, motionEnter: !0, motionLeave: !0 };
    },
    73951: function (e, t, n) {
      "use strict";
      var a = n(66356).default,
        r = n(98772).default;
      Object.defineProperty(t, "__esModule", { value: !0 }),
        (t.default = function (e, t) {
          var n;
          return e
            ? e
            : (n = (0, c.default)(t).map(function (e) {
                if (i.isValidElement(e)) {
                  var t = e.key,
                    n = e.props || {},
                    a = n.tab,
                    r = l(n, ["tab"]);
                  return (0, o.default)((0, o.default)({ key: String(t) }, r), {
                    label: a,
                  });
                }
                return null;
              })).filter(function (e) {
                return e;
              });
        });
      var o = r(n(60799)),
        i = a(n(59496)),
        c = r(n(79756));
      r(n(99565));
      var l = function (e, t) {
        var n = {};
        for (var a in e)
          Object.prototype.hasOwnProperty.call(e, a) &&
            0 > t.indexOf(a) &&
            (n[a] = e[a]);
        if (null != e && "function" == typeof Object.getOwnPropertySymbols)
          for (
            var r = 0, a = Object.getOwnPropertySymbols(e);
            r < a.length;
            r++
          )
            0 > t.indexOf(a[r]) &&
              Object.prototype.propertyIsEnumerable.call(e, a[r]) &&
              (n[a[r]] = e[a[r]]);
        return n;
      };
    },
    68741: function (e, t, n) {
      "use strict";
      var a = n(66356).default,
        r = n(98772).default;
      t.Z = void 0;
      var o = r(n(52510)),
        i = r(n(60799)),
        c = r(n(46306)),
        l = r(n(36025)),
        u = r(n(41377)),
        f = r(n(84875)),
        s = r(n(94449)),
        d = a(n(59496)),
        v = n(88714),
        b = r(n(19249));
      r(n(99565));
      var m = r(n(33767)),
        p = r(n(73951)),
        h = r(n(45204)),
        y = function (e, t) {
          var n = {};
          for (var a in e)
            Object.prototype.hasOwnProperty.call(e, a) &&
              0 > t.indexOf(a) &&
              (n[a] = e[a]);
          if (null != e && "function" == typeof Object.getOwnPropertySymbols)
            for (
              var r = 0, a = Object.getOwnPropertySymbols(e);
              r < a.length;
              r++
            )
              0 > t.indexOf(a[r]) &&
                Object.prototype.propertyIsEnumerable.call(e, a[r]) &&
                (n[a[r]] = e[a[r]]);
          return n;
        };
      function g(e) {
        var t,
          n = e.type,
          a = e.className,
          r = e.size,
          h = e.onEdit,
          g = e.hideAdd,
          E = e.centered,
          Z = e.addIcon,
          k = e.children,
          x = e.items,
          C = e.animated,
          w = y(e, [
            "type",
            "className",
            "size",
            "onEdit",
            "hideAdd",
            "centered",
            "addIcon",
            "children",
            "items",
            "animated",
          ]),
          P = w.prefixCls,
          N = w.moreIcon,
          M = void 0 === N ? d.createElement(l.default, null) : N,
          T = d.useContext(v.ConfigContext),
          S = T.getPrefixCls,
          I = T.direction,
          O = T.getPopupContainer,
          R = S("tabs", P);
        "editable-card" === n &&
          (t = {
            onEdit: function (e, t) {
              var n = t.key,
                a = t.event;
              null == h || h("add" === e ? a : n, e);
            },
            removeIcon: d.createElement(c.default, null),
            addIcon: Z || d.createElement(u.default, null),
            showAdd: !0 !== g,
          });
        var j = S(),
          B = (0, p.default)(x, k),
          _ = (0, m.default)(R, C);
        return d.createElement(b.default.Consumer, null, function (e) {
          var c,
            l = void 0 !== r ? r : e;
          return d.createElement(
            s.default,
            (0, i.default)(
              {
                direction: I,
                getPopupContainer: O,
                moreTransitionName: "".concat(j, "-slide-up"),
              },
              w,
              {
                items: B,
                className: (0, f.default)(
                  ((c = {}),
                  (0, o.default)(c, "".concat(R, "-").concat(l), l),
                  (0, o.default)(
                    c,
                    "".concat(R, "-card"),
                    ["card", "editable-card"].includes(n)
                  ),
                  (0, o.default)(
                    c,
                    "".concat(R, "-editable-card"),
                    "editable-card" === n
                  ),
                  (0, o.default)(c, "".concat(R, "-centered"), E),
                  c),
                  a
                ),
                editable: t,
                moreIcon: M,
                prefixCls: R,
                animated: _,
              }
            )
          );
        });
      }
      (g.TabPane = h.default), (t.Z = g);
    },
    28106: function (e, t, n) {
      "use strict";
      n(57890), n(41423);
    },
    41423: function () {},
    94449: function (e, t, n) {
      "use strict";
      n.r(t),
        n.d(t, {
          default: function () {
            return H;
          },
        });
      var a = n(51163),
        r = n(24572),
        o = n(75782),
        i = n(91600),
        c = n(26143),
        l = n(68901),
        u = n(59496),
        f = n(84875),
        s = n.n(f),
        d = n(64314),
        v = n(82172),
        b = n(86090),
        m = (0, u.createContext)(null),
        p = u.forwardRef(function (e, t) {
          var n = e.prefixCls,
            a = e.className,
            r = e.style,
            o = e.id,
            i = e.active,
            c = e.tabKey,
            l = e.children;
          return u.createElement(
            "div",
            {
              id: o && "".concat(o, "-panel-").concat(c),
              role: "tabpanel",
              tabIndex: i ? 0 : -1,
              "aria-labelledby": o && "".concat(o, "-tab-").concat(c),
              "aria-hidden": !i,
              style: r,
              className: s()(n, i && "".concat(n, "-active"), a),
              ref: t,
            },
            l
          );
        }),
        h = ["key", "forceRender", "style", "className"];
      function y(e) {
        var t = e.id,
          n = e.activeKey,
          i = e.animated,
          c = e.tabPosition,
          f = e.destroyInactiveTabPane,
          d = u.useContext(m),
          v = d.prefixCls,
          y = d.tabs,
          g = i.tabPane,
          E = "".concat(v, "-tabpane");
        return u.createElement(
          "div",
          { className: s()("".concat(v, "-content-holder")) },
          u.createElement(
            "div",
            {
              className: s()(
                "".concat(v, "-content"),
                "".concat(v, "-content-").concat(c),
                (0, r.Z)({}, "".concat(v, "-content-animated"), g)
              ),
            },
            y.map(function (e) {
              var r = e.key,
                c = e.forceRender,
                d = e.style,
                v = e.className,
                m = (0, l.Z)(e, h),
                y = r === n;
              return u.createElement(
                b.default,
                (0, a.Z)(
                  {
                    key: r,
                    visible: y,
                    forceRender: c,
                    removeOnLeave: !!f,
                    leavedClassName: "".concat(E, "-hidden"),
                  },
                  i.tabPaneMotion
                ),
                function (e, n) {
                  var i = e.style,
                    c = e.className;
                  return u.createElement(
                    p,
                    (0, a.Z)({}, m, {
                      prefixCls: E,
                      id: t,
                      tabKey: r,
                      animated: g,
                      active: y,
                      style: (0, o.Z)((0, o.Z)({}, d), i),
                      className: s()(v, c),
                      ref: n,
                    })
                  );
                }
              );
            })
          )
        );
      }
      var g = n(49544),
        E = n(48487),
        Z = n(64333),
        k = n(25532),
        x = n(75729),
        C = { width: 0, height: 0, left: 0, top: 0 };
      function w(e, t) {
        var n = u.useRef(e),
          a = u.useState({}),
          r = (0, i.Z)(a, 2)[1];
        return [
          n.current,
          function (e) {
            var a = "function" == typeof e ? e(n.current) : e;
            a !== n.current && t(a, n.current), (n.current = a), r({});
          },
        ];
      }
      var P = n(33750);
      function N(e) {
        var t = (0, u.useState)(0),
          n = (0, i.Z)(t, 2),
          a = n[0],
          r = n[1],
          o = (0, u.useRef)(0),
          c = (0, u.useRef)();
        return (
          (c.current = e),
          (0, P.o)(
            function () {
              var e;
              null === (e = c.current) || void 0 === e || e.call(c);
            },
            [a]
          ),
          function () {
            o.current === a && ((o.current += 1), r(o.current));
          }
        );
      }
      var M = { width: 0, height: 0, left: 0, top: 0, right: 0 };
      function T(e) {
        var t;
        return (
          e instanceof Map
            ? ((t = {}),
              e.forEach(function (e, n) {
                t[n] = e;
              }))
            : (t = e),
          JSON.stringify(t)
        );
      }
      function S(e) {
        return String(e).replace(/"/g, "TABS_DQ");
      }
      var I = u.forwardRef(function (e, t) {
          var n = e.prefixCls,
            a = e.editable,
            r = e.locale,
            o = e.style;
          return a && !1 !== a.showAdd
            ? u.createElement(
                "button",
                {
                  ref: t,
                  type: "button",
                  className: "".concat(n, "-nav-add"),
                  style: o,
                  "aria-label":
                    (null == r ? void 0 : r.addAriaLabel) || "Add tab",
                  onClick: function (e) {
                    a.onEdit("add", { event: e });
                  },
                },
                a.addIcon || "+"
              )
            : null;
        }),
        O = u.forwardRef(function (e, t) {
          var n,
            a = e.position,
            r = e.prefixCls,
            o = e.extra;
          if (!o) return null;
          var i = {};
          return (
            "object" !== (0, c.Z)(o) || u.isValidElement(o)
              ? (i.right = o)
              : (i = o),
            "right" === a && (n = i.right),
            "left" === a && (n = i.left),
            n
              ? u.createElement(
                  "div",
                  { className: "".concat(r, "-extra-content"), ref: t },
                  n
                )
              : null
          );
        }),
        R = n(44921),
        j = n(71162),
        B = n(61950),
        _ = u.memo(
          u.forwardRef(function (e, t) {
            var n = e.prefixCls,
              a = e.id,
              o = e.tabs,
              c = e.locale,
              l = e.mobile,
              f = e.moreIcon,
              d = e.moreTransitionName,
              v = e.style,
              b = e.className,
              m = e.editable,
              p = e.tabBarGutter,
              h = e.rtl,
              y = e.removeAriaLabel,
              g = e.onTabClick,
              E = e.getPopupContainer,
              Z = e.popupClassName,
              k = (0, u.useState)(!1),
              x = (0, i.Z)(k, 2),
              C = x[0],
              w = x[1],
              P = (0, u.useState)(null),
              N = (0, i.Z)(P, 2),
              M = N[0],
              T = N[1],
              S = "".concat(a, "-more-popup"),
              O = "".concat(n, "-dropdown"),
              _ = null !== M ? "".concat(S, "-").concat(M) : null,
              L = null == c ? void 0 : c.dropdownAriaLabel,
              A = u.createElement(
                j.default,
                {
                  onClick: function (e) {
                    var t;
                    g(e.key, e.domEvent), w(!1);
                  },
                  prefixCls: "".concat(O, "-menu"),
                  id: S,
                  tabIndex: -1,
                  role: "listbox",
                  "aria-activedescendant": _,
                  selectedKeys: [M],
                  "aria-label": void 0 !== L ? L : "expanded dropdown",
                },
                o.map(function (e) {
                  var t = m && !1 !== e.closable && !e.disabled;
                  return u.createElement(
                    j.MenuItem,
                    {
                      key: e.key,
                      id: "".concat(S, "-").concat(e.key),
                      role: "option",
                      "aria-controls":
                        a && "".concat(a, "-panel-").concat(e.key),
                      disabled: e.disabled,
                    },
                    u.createElement("span", null, e.label),
                    t &&
                      u.createElement(
                        "button",
                        {
                          type: "button",
                          "aria-label": y || "remove",
                          tabIndex: 0,
                          className: "".concat(O, "-menu-item-remove"),
                          onClick: function (t) {
                            var n, a;
                            t.stopPropagation(),
                              (a = e.key),
                              t.preventDefault(),
                              t.stopPropagation(),
                              m.onEdit("remove", { key: a, event: t });
                          },
                        },
                        e.closeIcon || m.removeIcon || "\xd7"
                      )
                  );
                })
              );
            function D(e) {
              for (
                var t = o.filter(function (e) {
                    return !e.disabled;
                  }),
                  n =
                    t.findIndex(function (e) {
                      return e.key === M;
                    }) || 0,
                  a = t.length,
                  r = 0;
                r < a;
                r += 1
              ) {
                var i = t[(n = (n + e + a) % a)];
                if (!i.disabled) {
                  T(i.key);
                  return;
                }
              }
            }
            (0, u.useEffect)(
              function () {
                var e = document.getElementById(_);
                e && e.scrollIntoView && e.scrollIntoView(!1);
              },
              [M]
            ),
              (0, u.useEffect)(
                function () {
                  C || T(null);
                },
                [C]
              );
            var K = (0, r.Z)({}, h ? "marginRight" : "marginLeft", p);
            o.length || ((K.visibility = "hidden"), (K.order = 1));
            var W = s()((0, r.Z)({}, "".concat(O, "-rtl"), h)),
              q = l
                ? null
                : u.createElement(
                    R.default,
                    {
                      prefixCls: O,
                      overlay: A,
                      trigger: ["hover"],
                      visible: !!o.length && C,
                      transitionName: d,
                      onVisibleChange: w,
                      overlayClassName: s()(W, Z),
                      mouseEnterDelay: 0.1,
                      mouseLeaveDelay: 0.1,
                      getPopupContainer: E,
                    },
                    u.createElement(
                      "button",
                      {
                        type: "button",
                        className: "".concat(n, "-nav-more"),
                        style: K,
                        tabIndex: -1,
                        "aria-hidden": "true",
                        "aria-haspopup": "listbox",
                        "aria-controls": S,
                        id: "".concat(a, "-more"),
                        "aria-expanded": C,
                        onKeyDown: function (e) {
                          var t = e.which;
                          if (!C) {
                            [B.Z.DOWN, B.Z.SPACE, B.Z.ENTER].includes(t) &&
                              (w(!0), e.preventDefault());
                            return;
                          }
                          switch (t) {
                            case B.Z.UP:
                              D(-1), e.preventDefault();
                              break;
                            case B.Z.DOWN:
                              D(1), e.preventDefault();
                              break;
                            case B.Z.ESC:
                              w(!1);
                              break;
                            case B.Z.SPACE:
                            case B.Z.ENTER:
                              null !== M && g(M, e);
                          }
                        },
                      },
                      void 0 === f ? "More" : f
                    )
                  );
            return u.createElement(
              "div",
              {
                className: s()("".concat(n, "-nav-operations"), b),
                style: v,
                ref: t,
              },
              q,
              u.createElement(I, { prefixCls: n, locale: c, editable: m })
            );
          }),
          function (e, t) {
            return t.tabMoving;
          }
        ),
        L = function (e) {
          var t,
            n = e.prefixCls,
            a = e.id,
            o = e.active,
            i = e.tab,
            c = i.key,
            l = i.label,
            f = i.disabled,
            d = i.closeIcon,
            v = e.closable,
            b = e.renderWrapper,
            m = e.removeAriaLabel,
            p = e.editable,
            h = e.onClick,
            y = e.onFocus,
            g = e.style,
            E = "".concat(n, "-tab"),
            Z = p && !1 !== v && !f;
          function k(e) {
            !f && h(e);
          }
          var x = u.createElement(
            "div",
            {
              key: c,
              "data-node-key": S(c),
              className: s()(
                E,
                ((t = {}),
                (0, r.Z)(t, "".concat(E, "-with-remove"), Z),
                (0, r.Z)(t, "".concat(E, "-active"), o),
                (0, r.Z)(t, "".concat(E, "-disabled"), f),
                t)
              ),
              style: g,
              onClick: k,
            },
            u.createElement(
              "div",
              {
                role: "tab",
                "aria-selected": o,
                id: a && "".concat(a, "-tab-").concat(c),
                className: "".concat(E, "-btn"),
                "aria-controls": a && "".concat(a, "-panel-").concat(c),
                "aria-disabled": f,
                tabIndex: f ? null : 0,
                onClick: function (e) {
                  e.stopPropagation(), k(e);
                },
                onKeyDown: function (e) {
                  [B.Z.SPACE, B.Z.ENTER].includes(e.which) &&
                    (e.preventDefault(), k(e));
                },
                onFocus: y,
              },
              l
            ),
            Z &&
              u.createElement(
                "button",
                {
                  type: "button",
                  "aria-label": m || "remove",
                  tabIndex: 0,
                  className: "".concat(E, "-remove"),
                  onClick: function (e) {
                    var t;
                    e.stopPropagation(),
                      e.preventDefault(),
                      e.stopPropagation(),
                      p.onEdit("remove", { key: c, event: e });
                  },
                },
                d || p.removeIcon || "\xd7"
              )
          );
          return b ? b(x) : x;
        },
        A = function (e) {
          var t = e.current || {},
            n = t.offsetWidth,
            a = t.offsetHeight;
          return [void 0 === n ? 0 : n, void 0 === a ? 0 : a];
        },
        D = function (e, t) {
          return e[t ? 0 : 1];
        },
        K = u.forwardRef(function (e, t) {
          var n,
            c,
            l,
            f,
            d,
            v,
            b,
            p,
            h,
            y,
            P,
            R,
            j,
            B,
            K,
            W,
            q,
            V,
            z,
            G,
            F,
            H,
            X,
            Y,
            J,
            Q,
            U,
            $,
            ee,
            et,
            en,
            ea,
            er,
            eo,
            ei,
            ec,
            el,
            eu,
            ef,
            es,
            ed,
            ev,
            eb,
            em,
            ep,
            eh,
            ey,
            eg,
            eE = u.useContext(m),
            eZ = eE.prefixCls,
            ek = eE.tabs,
            ex = e.className,
            eC = e.style,
            ew = e.id,
            eP = e.animated,
            eN = e.activeKey,
            eM = e.rtl,
            eT = e.extra,
            eS = e.editable,
            eI = e.locale,
            eO = e.tabPosition,
            eR = e.tabBarGutter,
            ej = e.children,
            eB = e.onTabClick,
            e_ = e.onTabScroll,
            eL = (0, u.useRef)(),
            eA = (0, u.useRef)(),
            eD = (0, u.useRef)(),
            eK = (0, u.useRef)(),
            eW = (0, u.useRef)(),
            eq = (0, u.useRef)(),
            eV = (0, u.useRef)(),
            ez = "top" === eO || "bottom" === eO,
            eG = w(0, function (e, t) {
              ez && e_ && e_({ direction: e > t ? "left" : "right" });
            }),
            eF = (0, i.Z)(eG, 2),
            eH = eF[0],
            eX = eF[1],
            eY = w(0, function (e, t) {
              !ez && e_ && e_({ direction: e > t ? "top" : "bottom" });
            }),
            eJ = (0, i.Z)(eY, 2),
            eQ = eJ[0],
            eU = eJ[1],
            e$ = (0, u.useState)([0, 0]),
            e0 = (0, i.Z)(e$, 2),
            e1 = e0[0],
            e2 = e0[1],
            e8 = (0, u.useState)([0, 0]),
            e4 = (0, i.Z)(e8, 2),
            e7 = e4[0],
            e6 = e4[1],
            e9 = (0, u.useState)([0, 0]),
            e5 = (0, i.Z)(e9, 2),
            e3 = e5[0],
            te = e5[1],
            tt = (0, u.useState)([0, 0]),
            tn = (0, i.Z)(tt, 2),
            ta = tn[0],
            tr = tn[1],
            to =
              ((es = new Map()),
              (ed = (0, u.useRef)([])),
              (ev = (0, u.useState)({})),
              (eb = (0, i.Z)(ev, 2)[1]),
              (em = (0, u.useRef)("function" == typeof es ? es() : es)),
              (ep = N(function () {
                var e = em.current;
                ed.current.forEach(function (t) {
                  e = t(e);
                }),
                  (ed.current = []),
                  (em.current = e),
                  eb({});
              })),
              [
                em.current,
                function (e) {
                  ed.current.push(e), ep();
                },
              ]),
            ti = (0, i.Z)(to, 2),
            tc = ti[0],
            tl = ti[1],
            tu =
              ((eg = e7[0]),
              (0, u.useMemo)(
                function () {
                  for (
                    var e = new Map(),
                      t =
                        tc.get(
                          null === (r = ek[0]) || void 0 === r ? void 0 : r.key
                        ) || C,
                      n = t.left + t.width,
                      a = 0;
                    a < ek.length;
                    a += 1
                  ) {
                    var r,
                      i,
                      c = ek[a].key,
                      l = tc.get(c);
                    l ||
                      (l =
                        tc.get(
                          null === (i = ek[a - 1]) || void 0 === i
                            ? void 0
                            : i.key
                        ) || C);
                    var u = e.get(c) || (0, o.Z)({}, l);
                    (u.right = n - u.left - u.width), e.set(c, u);
                  }
                  return e;
                },
                [
                  ek
                    .map(function (e) {
                      return e.key;
                    })
                    .join("_"),
                  tc,
                  eg,
                ]
              )),
            tf = D(e1, ez),
            ts = D(e7, ez),
            td = D(e3, ez),
            tv = D(ta, ez),
            tb = tf < ts + td,
            tm = tb ? tf - tv : tf - td,
            tp = "".concat(eZ, "-nav-operations-hidden"),
            th = 0,
            ty = 0;
          function tg(e) {
            return e < th ? th : e > ty ? ty : e;
          }
          ez && eM
            ? ((th = 0), (ty = Math.max(0, ts - tm)))
            : ((th = Math.min(0, tm - ts)), (ty = 0));
          var tE = (0, u.useRef)(),
            tZ = (0, u.useState)(),
            tk = (0, i.Z)(tZ, 2),
            tx = tk[0],
            tC = tk[1];
          function tw() {
            tC(Date.now());
          }
          function tP() {
            window.clearTimeout(tE.current);
          }
          (c = function (e, t) {
            function n(e, t) {
              e(function (e) {
                return tg(e + t);
              });
            }
            return !!tb && (ez ? n(eX, e) : n(eU, t), tP(), tw(), !0);
          }),
            (l = (0, u.useState)()),
            (d = (f = (0, i.Z)(l, 2))[0]),
            (v = f[1]),
            (b = (0, u.useState)(0)),
            (h = (p = (0, i.Z)(b, 2))[0]),
            (y = p[1]),
            (P = (0, u.useState)(0)),
            (j = (R = (0, i.Z)(P, 2))[0]),
            (B = R[1]),
            (K = (0, u.useState)()),
            (q = (W = (0, i.Z)(K, 2))[0]),
            (V = W[1]),
            (z = (0, u.useRef)()),
            (G = (0, u.useRef)()),
            ((F = (0, u.useRef)(null)).current = {
              onTouchStart: function (e) {
                var t,
                  n = e.touches[0];
                v({ x: n.screenX, y: n.screenY }),
                  window.clearInterval(z.current);
              },
              onTouchMove: function (e) {
                if (d) {
                  e.preventDefault();
                  var t = e.touches[0],
                    n = t.screenX,
                    a = t.screenY;
                  v({ x: n, y: a });
                  var r = n - d.x,
                    o = a - d.y;
                  c(r, o);
                  var i = Date.now();
                  y(i), B(i - h), V({ x: r, y: o });
                }
              },
              onTouchEnd: function () {
                if (d && (v(null), V(null), q)) {
                  var e = q.x / j,
                    t = q.y / j;
                  if (!(0.1 > Math.max(Math.abs(e), Math.abs(t)))) {
                    var n = e,
                      a = t;
                    z.current = window.setInterval(function () {
                      if (0.01 > Math.abs(n) && 0.01 > Math.abs(a)) {
                        window.clearInterval(z.current);
                        return;
                      }
                      c(
                        20 * (n *= 0.9046104802746175),
                        20 * (a *= 0.9046104802746175)
                      );
                    }, 20);
                  }
                }
              },
              onWheel: function (e) {
                var t = e.deltaX,
                  n = e.deltaY,
                  a = 0,
                  r = Math.abs(t),
                  o = Math.abs(n);
                r === o
                  ? (a = "x" === G.current ? t : n)
                  : r > o
                  ? ((a = t), (G.current = "x"))
                  : ((a = n), (G.current = "y")),
                  c(-a, -a) && e.preventDefault();
              },
            }),
            u.useEffect(function () {
              function e(e) {
                F.current.onTouchMove(e);
              }
              function t(e) {
                F.current.onTouchEnd(e);
              }
              return (
                document.addEventListener("touchmove", e, { passive: !1 }),
                document.addEventListener("touchend", t, { passive: !1 }),
                eK.current.addEventListener(
                  "touchstart",
                  function (e) {
                    F.current.onTouchStart(e);
                  },
                  { passive: !1 }
                ),
                eK.current.addEventListener("wheel", function (e) {
                  F.current.onWheel(e);
                }),
                function () {
                  document.removeEventListener("touchmove", e),
                    document.removeEventListener("touchend", t);
                }
              );
            }, []),
            (0, u.useEffect)(
              function () {
                return (
                  tP(),
                  tx &&
                    (tE.current = window.setTimeout(function () {
                      tC(0);
                    }, 100)),
                  tP
                );
              },
              [tx]
            );
          var tN =
              ((Y = ez ? eH : eQ),
              (ea = ($ = (0, o.Z)((0, o.Z)({}, e), {}, { tabs: ek })).tabs),
              (er = $.tabPosition),
              (eo = $.rtl),
              ["top", "bottom"].includes(er)
                ? ((ee = "width"),
                  (et = eo ? "right" : "left"),
                  (en = Math.abs(Y)))
                : ((ee = "height"), (et = "top"), (en = -Y)),
              (0, u.useMemo)(
                function () {
                  if (!ea.length) return [0, 0];
                  for (var e = ea.length, t = e, n = 0; n < e; n += 1) {
                    var a = tu.get(ea[n].key) || M;
                    if (a[et] + a[ee] > en + tm) {
                      t = n - 1;
                      break;
                    }
                  }
                  for (var r = 0, o = e - 1; o >= 0; o -= 1)
                    if ((tu.get(ea[o].key) || M)[et] < en) {
                      r = o + 1;
                      break;
                    }
                  return [r, t];
                },
                [
                  tu,
                  tm,
                  ts,
                  td,
                  tv,
                  en,
                  er,
                  ea
                    .map(function (e) {
                      return e.key;
                    })
                    .join("_"),
                  eo,
                ]
              )),
            tM = (0, i.Z)(tN, 2),
            tT = tM[0],
            tS = tM[1],
            tI = (0, Z.Z)(function () {
              var e =
                  arguments.length > 0 && void 0 !== arguments[0]
                    ? arguments[0]
                    : eN,
                t = tu.get(e) || {
                  width: 0,
                  height: 0,
                  left: 0,
                  right: 0,
                  top: 0,
                };
              if (ez) {
                var n = eH;
                eM
                  ? t.right < eH
                    ? (n = t.right)
                    : t.right + t.width > eH + tm &&
                      (n = t.right + t.width - tm)
                  : t.left < -eH
                  ? (n = -t.left)
                  : t.left + t.width > -eH + tm &&
                    (n = -(t.left + t.width - tm)),
                  eU(0),
                  eX(tg(n));
              } else {
                var a = eQ;
                t.top < -eQ
                  ? (a = -t.top)
                  : t.top + t.height > -eQ + tm &&
                    (a = -(t.top + t.height - tm)),
                  eX(0),
                  eU(tg(a));
              }
            }),
            tO = {};
          "top" === eO || "bottom" === eO
            ? (tO[eM ? "marginRight" : "marginLeft"] = eR)
            : (tO.marginTop = eR);
          var tR = ek.map(function (e, t) {
              var n = e.key;
              return u.createElement(L, {
                id: ew,
                prefixCls: eZ,
                key: n,
                tab: e,
                style: 0 === t ? void 0 : tO,
                closable: e.closable,
                editable: eS,
                active: n === eN,
                renderWrapper: ej,
                removeAriaLabel: null == eI ? void 0 : eI.removeAriaLabel,
                onClick: function (e) {
                  eB(n, e);
                },
                onFocus: function () {
                  tI(n),
                    tw(),
                    eK.current &&
                      (eM || (eK.current.scrollLeft = 0),
                      (eK.current.scrollTop = 0));
                },
              });
            }),
            tj = function () {
              return tl(function () {
                var e = new Map();
                return (
                  ek.forEach(function (t) {
                    var n,
                      a = t.key,
                      r =
                        null === (n = eW.current) || void 0 === n
                          ? void 0
                          : n.querySelector(
                              '[data-node-key="'.concat(S(a), '"]')
                            );
                    r &&
                      e.set(a, {
                        width: r.offsetWidth,
                        height: r.offsetHeight,
                        left: r.offsetLeft,
                        top: r.offsetTop,
                      });
                  }),
                  e
                );
              });
            };
          (0, u.useEffect)(
            function () {
              tj();
            },
            [
              ek
                .map(function (e) {
                  return e.key;
                })
                .join("_"),
            ]
          );
          var tB = N(function () {
              var e = A(eL),
                t = A(eA),
                n = A(eD);
              e2([e[0] - t[0] - n[0], e[1] - t[1] - n[1]]);
              var a = A(eV);
              te(a);
              var r = A(eq);
              tr(r);
              var o = A(eW);
              e6([o[0] - a[0], o[1] - a[1]]), tj();
            }),
            t_ = ek.slice(0, tT),
            tL = ek.slice(tS + 1),
            tA = [].concat((0, g.Z)(t_), (0, g.Z)(tL)),
            tD = (0, u.useState)(),
            tK = (0, i.Z)(tD, 2),
            tW = tK[0],
            tq = tK[1],
            tV = tu.get(eN),
            tz = (0, u.useRef)();
          function tG() {
            k.Z.cancel(tz.current);
          }
          (0, u.useEffect)(
            function () {
              var e = {};
              return (
                tV &&
                  (ez
                    ? (eM ? (e.right = tV.right) : (e.left = tV.left),
                      (e.width = tV.width))
                    : ((e.top = tV.top), (e.height = tV.height))),
                tG(),
                (tz.current = (0, k.Z)(function () {
                  tq(e);
                })),
                tG
              );
            },
            [tV, ez, eM]
          ),
            (0, u.useEffect)(
              function () {
                tI();
              },
              [eN, th, ty, T(tV), T(tu), ez]
            ),
            (0, u.useEffect)(
              function () {
                tB();
              },
              [eM]
            );
          var tF = !!tA.length,
            tH = "".concat(eZ, "-nav-wrap");
          return (
            ez
              ? eM
                ? ((el = eH > 0), (ec = eH !== ty))
                : ((ec = eH < 0), (el = eH !== th))
              : ((eu = eQ < 0), (ef = eQ !== th)),
            u.createElement(
              E.default,
              { onResize: tB },
              u.createElement(
                "div",
                {
                  ref: (0, x.x1)(t, eL),
                  role: "tablist",
                  className: s()("".concat(eZ, "-nav"), ex),
                  style: eC,
                  onKeyDown: function () {
                    tw();
                  },
                },
                u.createElement(O, {
                  ref: eA,
                  position: "left",
                  extra: eT,
                  prefixCls: eZ,
                }),
                u.createElement(
                  "div",
                  {
                    className: s()(
                      tH,
                      ((ei = {}),
                      (0, r.Z)(ei, "".concat(tH, "-ping-left"), ec),
                      (0, r.Z)(ei, "".concat(tH, "-ping-right"), el),
                      (0, r.Z)(ei, "".concat(tH, "-ping-top"), eu),
                      (0, r.Z)(ei, "".concat(tH, "-ping-bottom"), ef),
                      ei)
                    ),
                    ref: eK,
                  },
                  u.createElement(
                    E.default,
                    { onResize: tB },
                    u.createElement(
                      "div",
                      {
                        ref: eW,
                        className: "".concat(eZ, "-nav-list"),
                        style: {
                          transform: "translate("
                            .concat(eH, "px, ")
                            .concat(eQ, "px)"),
                          transition: tx ? "none" : void 0,
                        },
                      },
                      tR,
                      u.createElement(I, {
                        ref: eV,
                        prefixCls: eZ,
                        locale: eI,
                        editable: eS,
                        style: (0, o.Z)(
                          (0, o.Z)({}, 0 === tR.length ? void 0 : tO),
                          {},
                          { visibility: tF ? "hidden" : null }
                        ),
                      }),
                      u.createElement("div", {
                        className: s()(
                          "".concat(eZ, "-ink-bar"),
                          (0, r.Z)(
                            {},
                            "".concat(eZ, "-ink-bar-animated"),
                            eP.inkBar
                          )
                        ),
                        style: tW,
                      })
                    )
                  )
                ),
                u.createElement(
                  _,
                  (0, a.Z)({}, e, {
                    removeAriaLabel: null == eI ? void 0 : eI.removeAriaLabel,
                    ref: eq,
                    prefixCls: eZ,
                    tabs: tA,
                    className: !tF && tp,
                    tabMoving: !!tx,
                  })
                ),
                u.createElement(O, {
                  ref: eD,
                  position: "right",
                  extra: eT,
                  prefixCls: eZ,
                })
              )
            )
          );
        }),
        W = ["renderTabBar"],
        q = ["label", "key"];
      function V(e) {
        var t = e.renderTabBar,
          n = (0, l.Z)(e, W),
          r = u.useContext(m).tabs;
        if (t) {
          var i = (0, o.Z)(
            (0, o.Z)({}, n),
            {},
            {
              panes: r.map(function (e) {
                var t = e.label,
                  n = e.key,
                  r = (0, l.Z)(e, q);
                return u.createElement(
                  p,
                  (0, a.Z)({ tab: t, key: n, tabKey: n }, r)
                );
              }),
            }
          );
          return t(i, K);
        }
        return u.createElement(K, n);
      }
      n(11317);
      var z,
        G = [
          "id",
          "prefixCls",
          "className",
          "items",
          "direction",
          "activeKey",
          "defaultActiveKey",
          "editable",
          "animated",
          "tabPosition",
          "tabBarGutter",
          "tabBarStyle",
          "tabBarExtraContent",
          "locale",
          "moreIcon",
          "moreTransitionName",
          "destroyInactiveTabPane",
          "renderTabBar",
          "onChange",
          "onTabClick",
          "onTabScroll",
          "getPopupContainer",
          "popupClassName",
        ],
        F = 0,
        H = u.forwardRef(function (e, t) {
          var n,
            f,
            b = e.id,
            p = e.prefixCls,
            h = void 0 === p ? "rc-tabs" : p,
            g = e.className,
            E = e.items,
            Z = e.direction,
            k = e.activeKey,
            x = e.defaultActiveKey,
            C = e.editable,
            w = e.animated,
            P = e.tabPosition,
            N = void 0 === P ? "top" : P,
            M = e.tabBarGutter,
            T = e.tabBarStyle,
            S = e.tabBarExtraContent,
            I = e.locale,
            O = e.moreIcon,
            R = e.moreTransitionName,
            j = e.destroyInactiveTabPane,
            B = e.renderTabBar,
            _ = e.onChange,
            L = e.onTabClick,
            A = e.onTabScroll,
            D = e.getPopupContainer,
            K = e.popupClassName,
            W = (0, l.Z)(e, G),
            q = u.useMemo(
              function () {
                return (E || []).filter(function (e) {
                  return e && "object" === (0, c.Z)(e) && "key" in e;
                });
              },
              [E]
            ),
            z = "rtl" === Z,
            H = (function () {
              var e,
                t =
                  arguments.length > 0 && void 0 !== arguments[0]
                    ? arguments[0]
                    : { inkBar: !0, tabPane: !1 };
              return (
                (e =
                  !1 === t
                    ? { inkBar: !1, tabPane: !1 }
                    : !0 === t
                    ? { inkBar: !0, tabPane: !1 }
                    : (0, o.Z)(
                        { inkBar: !0 },
                        "object" === (0, c.Z)(t) ? t : {}
                      )).tabPaneMotion &&
                  void 0 === e.tabPane &&
                  (e.tabPane = !0),
                !e.tabPaneMotion && e.tabPane && (e.tabPane = !1),
                e
              );
            })(w),
            X = (0, u.useState)(!1),
            Y = (0, i.Z)(X, 2),
            J = Y[0],
            Q = Y[1];
          (0, u.useEffect)(function () {
            Q((0, d.Z)());
          }, []);
          var U = (0, v.Z)(
              function () {
                var e;
                return null === (e = q[0]) || void 0 === e ? void 0 : e.key;
              },
              { value: k, defaultValue: x }
            ),
            $ = (0, i.Z)(U, 2),
            ee = $[0],
            et = $[1],
            en = (0, u.useState)(function () {
              return q.findIndex(function (e) {
                return e.key === ee;
              });
            }),
            ea = (0, i.Z)(en, 2),
            er = ea[0],
            eo = ea[1];
          (0, u.useEffect)(
            function () {
              var e,
                t = q.findIndex(function (e) {
                  return e.key === ee;
                });
              -1 === t &&
                et(
                  null ===
                    (e = q[(t = Math.max(0, Math.min(er, q.length - 1)))]) ||
                    void 0 === e
                    ? void 0
                    : e.key
                ),
                eo(t);
            },
            [
              q
                .map(function (e) {
                  return e.key;
                })
                .join("_"),
              ee,
              er,
            ]
          );
          var ei = (0, v.Z)(null, { value: b }),
            ec = (0, i.Z)(ei, 2),
            el = ec[0],
            eu = ec[1];
          (0, u.useEffect)(function () {
            b || (eu("rc-tabs-".concat(F)), (F += 1));
          }, []);
          var ef = {
              id: el,
              activeKey: ee,
              animated: H,
              tabPosition: N,
              rtl: z,
              mobile: J,
            },
            es = (0, o.Z)(
              (0, o.Z)({}, ef),
              {},
              {
                editable: C,
                locale: I,
                moreIcon: O,
                moreTransitionName: R,
                tabBarGutter: M,
                onTabClick: function (e, t) {
                  null == L || L(e, t), et(e), e !== ee && (null == _ || _(e));
                },
                onTabScroll: A,
                extra: S,
                style: T,
                panes: null,
                getPopupContainer: D,
                popupClassName: K,
              }
            );
          return u.createElement(
            m.Provider,
            { value: { tabs: q, prefixCls: h } },
            u.createElement(
              "div",
              (0, a.Z)(
                {
                  ref: t,
                  id: b,
                  className: s()(
                    h,
                    "".concat(h, "-").concat(N),
                    ((n = {}),
                    (0, r.Z)(n, "".concat(h, "-mobile"), J),
                    (0, r.Z)(n, "".concat(h, "-editable"), C),
                    (0, r.Z)(n, "".concat(h, "-rtl"), z),
                    n),
                    g
                  ),
                },
                W
              ),
              f,
              u.createElement(V, (0, a.Z)({}, es, { renderTabBar: B })),
              u.createElement(
                y,
                (0, a.Z)({ destroyInactiveTabPane: j }, ef, { animated: H })
              )
            )
          );
        });
    },
  },
]);
