import '@das-fed/upf-ui/packages/components/menu-aside/style.css';
import { withInstall as _e } from "@das-fed/upf-utils/with-install/index";
import { h as Ce, nextTick as qe, createVNode as S, defineComponent as pe, computed as G, openBlock as f, createElementBlock as v, normalizeStyle as ue, ref as J, createBlock as P, unref as l, mergeProps as de, withCtx as j, createElementVNode as m, renderSlot as H, createCommentVNode as y, withDirectives as $, createTextVNode as K, toDisplayString as x, Fragment as O, withModifiers as R, renderList as _, normalizeClass as E, watch as ke, onMounted as Ge, isRef as Je } from "vue";
import { t as B, setI18nRule as Ye } from "@das-fed/upf-web/packages/i18n/index";
import { DasScrollbar as Ze } from "@das-fed/upf-ui/packages/components/scrollbar/index";
import { DasTooltip as Qe } from "@das-fed/upf-ui/packages/components/tooltip/index";
import { vDasTooltip as N } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
import { pureImageSrc as re } from "@das-fed/upf-utils/pure-image-src";
import { SubMenu as Xe, MenuItem as ne, Menu as en } from "ant-design-vue";
import "ant-design-vue/es/menu/style/css";
import { vOverlay as xe } from "@das-fed/upf-ui/packages/components/overlay/index";
import { DasAutoRegisterIcon as nn, DasIcon as Z } from "@das-fed/upf-ui/packages/components/icon/index";
import "@das-fed/upf-utils/hooks/popup-manager/use-zindex";
function A(e, t) {
  tn(e) && (e = "100%");
  var n = rn(e);
  return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), n && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e);
}
function tn(e) {
  return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
}
function rn(e) {
  return typeof e == "string" && e.indexOf("%") !== -1;
}
function an(e) {
  return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
}
function Q(e) {
  return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
}
function ae(e) {
  return e.length === 1 ? "0" + e : String(e);
}
function on(e, t, n) {
  return {
    r: A(e, 255) * 255,
    g: A(t, 255) * 255,
    b: A(n, 255) * 255
  };
}
function oe(e, t, n) {
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * (6 * n) : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
}
function ln(e, t, n) {
  var r, a, o;
  if (e = A(e, 360), t = A(t, 100), n = A(n, 100), t === 0)
    a = n, o = n, r = n;
  else {
    var d = n < 0.5 ? n * (1 + t) : n + t - n * t, s = 2 * n - d;
    r = oe(s, d, e + 1 / 3), a = oe(s, d, e), o = oe(s, d, e - 1 / 3);
  }
  return { r: r * 255, g: a * 255, b: o * 255 };
}
function sn(e, t, n) {
  e = A(e, 255), t = A(t, 255), n = A(n, 255);
  var r = Math.max(e, t, n), a = Math.min(e, t, n), o = 0, d = r, s = r - a, g = r === 0 ? 0 : s / r;
  if (r === a)
    o = 0;
  else {
    switch (r) {
      case e:
        o = (t - n) / s + (t < n ? 6 : 0);
        break;
      case t:
        o = (n - e) / s + 2;
        break;
      case n:
        o = (e - t) / s + 4;
        break;
    }
    o /= 6;
  }
  return { h: o, s: g, v: d };
}
function cn(e, t, n) {
  e = A(e, 360) * 6, t = A(t, 100), n = A(n, 100);
  var r = Math.floor(e), a = e - r, o = n * (1 - t), d = n * (1 - a * t), s = n * (1 - (1 - a) * t), g = r % 6, u = [n, d, o, o, s, n][g], p = [s, n, n, d, o, o][g], c = [o, o, s, n, n, d][g];
  return { r: u * 255, g: p * 255, b: c * 255 };
}
function fn(e, t, n, r) {
  var a = [
    ae(Math.round(e).toString(16)),
    ae(Math.round(t).toString(16)),
    ae(Math.round(n).toString(16))
  ];
  return a.join("");
}
function Se(e) {
  return k(e) / 255;
}
function k(e) {
  return parseInt(e, 16);
}
var we = {
  aliceblue: "#f0f8ff",
  antiquewhite: "#faebd7",
  aqua: "#00ffff",
  aquamarine: "#7fffd4",
  azure: "#f0ffff",
  beige: "#f5f5dc",
  bisque: "#ffe4c4",
  black: "#000000",
  blanchedalmond: "#ffebcd",
  blue: "#0000ff",
  blueviolet: "#8a2be2",
  brown: "#a52a2a",
  burlywood: "#deb887",
  cadetblue: "#5f9ea0",
  chartreuse: "#7fff00",
  chocolate: "#d2691e",
  coral: "#ff7f50",
  cornflowerblue: "#6495ed",
  cornsilk: "#fff8dc",
  crimson: "#dc143c",
  cyan: "#00ffff",
  darkblue: "#00008b",
  darkcyan: "#008b8b",
  darkgoldenrod: "#b8860b",
  darkgray: "#a9a9a9",
  darkgreen: "#006400",
  darkgrey: "#a9a9a9",
  darkkhaki: "#bdb76b",
  darkmagenta: "#8b008b",
  darkolivegreen: "#556b2f",
  darkorange: "#ff8c00",
  darkorchid: "#9932cc",
  darkred: "#8b0000",
  darksalmon: "#e9967a",
  darkseagreen: "#8fbc8f",
  darkslateblue: "#483d8b",
  darkslategray: "#2f4f4f",
  darkslategrey: "#2f4f4f",
  darkturquoise: "#00ced1",
  darkviolet: "#9400d3",
  deeppink: "#ff1493",
  deepskyblue: "#00bfff",
  dimgray: "#696969",
  dimgrey: "#696969",
  dodgerblue: "#1e90ff",
  firebrick: "#b22222",
  floralwhite: "#fffaf0",
  forestgreen: "#228b22",
  fuchsia: "#ff00ff",
  gainsboro: "#dcdcdc",
  ghostwhite: "#f8f8ff",
  goldenrod: "#daa520",
  gold: "#ffd700",
  gray: "#808080",
  green: "#008000",
  greenyellow: "#adff2f",
  grey: "#808080",
  honeydew: "#f0fff0",
  hotpink: "#ff69b4",
  indianred: "#cd5c5c",
  indigo: "#4b0082",
  ivory: "#fffff0",
  khaki: "#f0e68c",
  lavenderblush: "#fff0f5",
  lavender: "#e6e6fa",
  lawngreen: "#7cfc00",
  lemonchiffon: "#fffacd",
  lightblue: "#add8e6",
  lightcoral: "#f08080",
  lightcyan: "#e0ffff",
  lightgoldenrodyellow: "#fafad2",
  lightgray: "#d3d3d3",
  lightgreen: "#90ee90",
  lightgrey: "#d3d3d3",
  lightpink: "#ffb6c1",
  lightsalmon: "#ffa07a",
  lightseagreen: "#20b2aa",
  lightskyblue: "#87cefa",
  lightslategray: "#778899",
  lightslategrey: "#778899",
  lightsteelblue: "#b0c4de",
  lightyellow: "#ffffe0",
  lime: "#00ff00",
  limegreen: "#32cd32",
  linen: "#faf0e6",
  magenta: "#ff00ff",
  maroon: "#800000",
  mediumaquamarine: "#66cdaa",
  mediumblue: "#0000cd",
  mediumorchid: "#ba55d3",
  mediumpurple: "#9370db",
  mediumseagreen: "#3cb371",
  mediumslateblue: "#7b68ee",
  mediumspringgreen: "#00fa9a",
  mediumturquoise: "#48d1cc",
  mediumvioletred: "#c71585",
  midnightblue: "#191970",
  mintcream: "#f5fffa",
  mistyrose: "#ffe4e1",
  moccasin: "#ffe4b5",
  navajowhite: "#ffdead",
  navy: "#000080",
  oldlace: "#fdf5e6",
  olive: "#808000",
  olivedrab: "#6b8e23",
  orange: "#ffa500",
  orangered: "#ff4500",
  orchid: "#da70d6",
  palegoldenrod: "#eee8aa",
  palegreen: "#98fb98",
  paleturquoise: "#afeeee",
  palevioletred: "#db7093",
  papayawhip: "#ffefd5",
  peachpuff: "#ffdab9",
  peru: "#cd853f",
  pink: "#ffc0cb",
  plum: "#dda0dd",
  powderblue: "#b0e0e6",
  purple: "#800080",
  rebeccapurple: "#663399",
  red: "#ff0000",
  rosybrown: "#bc8f8f",
  royalblue: "#4169e1",
  saddlebrown: "#8b4513",
  salmon: "#fa8072",
  sandybrown: "#f4a460",
  seagreen: "#2e8b57",
  seashell: "#fff5ee",
  sienna: "#a0522d",
  silver: "#c0c0c0",
  skyblue: "#87ceeb",
  slateblue: "#6a5acd",
  slategray: "#708090",
  slategrey: "#708090",
  snow: "#fffafa",
  springgreen: "#00ff7f",
  steelblue: "#4682b4",
  tan: "#d2b48c",
  teal: "#008080",
  thistle: "#d8bfd8",
  tomato: "#ff6347",
  turquoise: "#40e0d0",
  violet: "#ee82ee",
  wheat: "#f5deb3",
  white: "#ffffff",
  whitesmoke: "#f5f5f5",
  yellow: "#ffff00",
  yellowgreen: "#9acd32"
};
function V(e) {
  var t = { r: 0, g: 0, b: 0 }, n = 1, r = null, a = null, o = null, d = !1, s = !1;
  return typeof e == "string" && (e = vn(e)), typeof e == "object" && (M(e.r) && M(e.g) && M(e.b) ? (t = on(e.r, e.g, e.b), d = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : M(e.h) && M(e.s) && M(e.v) ? (r = Q(e.s), a = Q(e.v), t = cn(e.h, r, a), d = !0, s = "hsv") : M(e.h) && M(e.s) && M(e.l) && (r = Q(e.s), o = Q(e.l), t = ln(e.h, r, o), d = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (n = e.a)), n = an(n), {
    ok: d,
    format: e.format || s,
    r: Math.min(255, Math.max(t.r, 0)),
    g: Math.min(255, Math.max(t.g, 0)),
    b: Math.min(255, Math.max(t.b, 0)),
    a: n
  };
}
var un = "[-\\+]?\\d+%?", dn = "[-\\+]?\\d*\\.\\d+%?", I = "(?:".concat(dn, ")|(?:").concat(un, ")"), ie = "[\\s|\\(]+(".concat(I, ")[,|\\s]+(").concat(I, ")[,|\\s]+(").concat(I, ")\\s*\\)?"), le = "[\\s|\\(]+(".concat(I, ")[,|\\s]+(").concat(I, ")[,|\\s]+(").concat(I, ")[,|\\s]+(").concat(I, ")\\s*\\)?"), T = {
  CSS_UNIT: new RegExp(I),
  rgb: new RegExp("rgb" + ie),
  rgba: new RegExp("rgba" + le),
  hsl: new RegExp("hsl" + ie),
  hsla: new RegExp("hsla" + le),
  hsv: new RegExp("hsv" + ie),
  hsva: new RegExp("hsva" + le),
  hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
  hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
};
function vn(e) {
  if (e = e.trim().toLowerCase(), e.length === 0)
    return !1;
  var t = !1;
  if (we[e])
    e = we[e], t = !0;
  else if (e === "transparent")
    return { r: 0, g: 0, b: 0, a: 0, format: "name" };
  var n = T.rgb.exec(e);
  return n ? { r: n[1], g: n[2], b: n[3] } : (n = T.rgba.exec(e), n ? { r: n[1], g: n[2], b: n[3], a: n[4] } : (n = T.hsl.exec(e), n ? { h: n[1], s: n[2], l: n[3] } : (n = T.hsla.exec(e), n ? { h: n[1], s: n[2], l: n[3], a: n[4] } : (n = T.hsv.exec(e), n ? { h: n[1], s: n[2], v: n[3] } : (n = T.hsva.exec(e), n ? { h: n[1], s: n[2], v: n[3], a: n[4] } : (n = T.hex8.exec(e), n ? {
    r: k(n[1]),
    g: k(n[2]),
    b: k(n[3]),
    a: Se(n[4]),
    format: t ? "name" : "hex8"
  } : (n = T.hex6.exec(e), n ? {
    r: k(n[1]),
    g: k(n[2]),
    b: k(n[3]),
    format: t ? "name" : "hex"
  } : (n = T.hex4.exec(e), n ? {
    r: k(n[1] + n[1]),
    g: k(n[2] + n[2]),
    b: k(n[3] + n[3]),
    a: Se(n[4] + n[4]),
    format: t ? "name" : "hex8"
  } : (n = T.hex3.exec(e), n ? {
    r: k(n[1] + n[1]),
    g: k(n[2] + n[2]),
    b: k(n[3] + n[3]),
    format: t ? "name" : "hex"
  } : !1)))))))));
}
function M(e) {
  return !!T.CSS_UNIT.exec(String(e));
}
var X = 2, Oe = 0.16, gn = 0.05, yn = 0.05, pn = 0.15, Re = 5, Be = 4, mn = [{
  index: 7,
  opacity: 0.15
}, {
  index: 6,
  opacity: 0.25
}, {
  index: 5,
  opacity: 0.3
}, {
  index: 5,
  opacity: 0.45
}, {
  index: 5,
  opacity: 0.65
}, {
  index: 5,
  opacity: 0.85
}, {
  index: 4,
  opacity: 0.9
}, {
  index: 3,
  opacity: 0.95
}, {
  index: 2,
  opacity: 0.97
}, {
  index: 1,
  opacity: 0.98
}];
function Ae(e) {
  var t = e.r, n = e.g, r = e.b, a = sn(t, n, r);
  return {
    h: a.h * 360,
    s: a.s,
    v: a.v
  };
}
function ee(e) {
  var t = e.r, n = e.g, r = e.b;
  return "#".concat(fn(t, n, r));
}
function hn(e, t, n) {
  var r = n / 100, a = {
    r: (t.r - e.r) * r + e.r,
    g: (t.g - e.g) * r + e.g,
    b: (t.b - e.b) * r + e.b
  };
  return a;
}
function Te(e, t, n) {
  var r;
  return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? r = n ? Math.round(e.h) - X * t : Math.round(e.h) + X * t : r = n ? Math.round(e.h) + X * t : Math.round(e.h) - X * t, r < 0 ? r += 360 : r >= 360 && (r -= 360), r;
}
function Me(e, t, n) {
  if (e.h === 0 && e.s === 0)
    return e.s;
  var r;
  return n ? r = e.s - Oe * t : t === Be ? r = e.s + Oe : r = e.s + gn * t, r > 1 && (r = 1), n && t === Re && r > 0.1 && (r = 0.1), r < 0.06 && (r = 0.06), Number(r.toFixed(2));
}
function $e(e, t, n) {
  var r;
  return n ? r = e.v + yn * t : r = e.v - pn * t, r > 1 && (r = 1), Number(r.toFixed(2));
}
function ve(e) {
  for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [], r = V(e), a = Re; a > 0; a -= 1) {
    var o = Ae(r), d = ee(V({
      h: Te(o, a, !0),
      s: Me(o, a, !0),
      v: $e(o, a, !0)
    }));
    n.push(d);
  }
  n.push(ee(r));
  for (var s = 1; s <= Be; s += 1) {
    var g = Ae(r), u = ee(V({
      h: Te(g, s),
      s: Me(g, s),
      v: $e(g, s)
    }));
    n.push(u);
  }
  return t.theme === "dark" ? mn.map(function(p) {
    var c = p.index, w = p.opacity, h = ee(hn(V(t.backgroundColor || "#141414"), V(n[c]), w * 100));
    return h;
  }) : n;
}
var se = {
  red: "#F5222D",
  volcano: "#FA541C",
  orange: "#FA8C16",
  gold: "#FAAD14",
  yellow: "#FADB14",
  lime: "#A0D911",
  green: "#52C41A",
  cyan: "#13C2C2",
  blue: "#1890FF",
  geekblue: "#2F54EB",
  purple: "#722ED1",
  magenta: "#EB2F96",
  grey: "#666666"
}, ce = {}, fe = {};
Object.keys(se).forEach(function(e) {
  ce[e] = ve(se[e]), ce[e].primary = ce[e][5], fe[e] = ve(se[e], {
    theme: "dark",
    backgroundColor: "#141414"
  }), fe[e].primary = fe[e][5];
});
var je = [], W = [], bn = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
function Cn() {
  var e = document.createElement("style");
  return e.setAttribute("type", "text/css"), e;
}
function kn(e, t) {
  if (t = t || {}, e === void 0)
    throw new Error(bn);
  var n = t.prepend === !0 ? "prepend" : "append", r = t.container !== void 0 ? t.container : document.querySelector("head"), a = je.indexOf(r);
  a === -1 && (a = je.push(r) - 1, W[a] = {});
  var o;
  return W[a] !== void 0 && W[a][n] !== void 0 ? o = W[a][n] : (o = W[a][n] = Cn(), n === "prepend" ? r.insertBefore(o, r.childNodes[0]) : r.appendChild(o)), e.charCodeAt(0) === 65279 && (e = e.substr(1, e.length)), o.styleSheet ? o.styleSheet.cssText += e : o.textContent += e, o;
}
function Pe(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, r = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
      return Object.getOwnPropertyDescriptor(n, a).enumerable;
    }))), r.forEach(function(a) {
      xn(e, a, n[a]);
    });
  }
  return e;
}
function xn(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
function Sn(e, t) {
  process.env.NODE_ENV;
}
function wn(e, t) {
  Sn(e, "[@ant-design/icons-vue] ".concat(t));
}
function Ee(e) {
  return typeof e == "object" && typeof e.name == "string" && typeof e.theme == "string" && (typeof e.icon == "object" || typeof e.icon == "function");
}
function ge(e, t, n) {
  return n ? Ce(e.tag, Pe({
    key: t
  }, n, e.attrs), (e.children || []).map(function(r, a) {
    return ge(r, "".concat(t, "-").concat(e.tag, "-").concat(a));
  })) : Ce(e.tag, Pe({
    key: t
  }, e.attrs), (e.children || []).map(function(r, a) {
    return ge(r, "".concat(t, "-").concat(e.tag, "-").concat(a));
  }));
}
function He(e) {
  return ve(e)[0];
}
function Ue(e) {
  return e ? Array.isArray(e) ? e : [e] : [];
}
var On = `
.anticon {
  display: inline-block;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`, Ie = !1, An = function() {
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : On;
  qe(function() {
    Ie || (typeof window < "u" && window.document && window.document.documentElement && kn(t, {
      prepend: !0
    }), Ie = !0);
  });
}, Tn = ["icon", "primaryColor", "secondaryColor"];
function Mn(e, t) {
  if (e == null) return {};
  var n = $n(e, t), r, a;
  if (Object.getOwnPropertySymbols) {
    var o = Object.getOwnPropertySymbols(e);
    for (a = 0; a < o.length; a++)
      r = o[a], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
  }
  return n;
}
function $n(e, t) {
  if (e == null) return {};
  var n = {}, r = Object.keys(e), a, o;
  for (o = 0; o < r.length; o++)
    a = r[o], !(t.indexOf(a) >= 0) && (n[a] = e[a]);
  return n;
}
function te(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, r = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
      return Object.getOwnPropertyDescriptor(n, a).enumerable;
    }))), r.forEach(function(a) {
      jn(e, a, n[a]);
    });
  }
  return e;
}
function jn(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var q = {
  primaryColor: "#333",
  secondaryColor: "#E6E6E6",
  calculated: !1
};
function Pn(e) {
  var t = e.primaryColor, n = e.secondaryColor;
  q.primaryColor = t, q.secondaryColor = n || He(t), q.calculated = !!n;
}
function En() {
  return te({}, q);
}
var F = function(t, n) {
  var r = te({}, t, n.attrs), a = r.icon, o = r.primaryColor, d = r.secondaryColor, s = Mn(r, Tn), g = q;
  if (o && (g = {
    primaryColor: o,
    secondaryColor: d || He(o)
  }), An(), wn(Ee(a), "icon should be icon definiton, but got ".concat(a)), !Ee(a))
    return null;
  var u = a;
  return u && typeof u.icon == "function" && (u = te({}, u, {
    icon: u.icon(g.primaryColor, g.secondaryColor)
  })), ge(u.icon, "svg-".concat(u.name), te({}, s, {
    "data-icon": u.name,
    width: "1em",
    height: "1em",
    fill: "currentColor",
    "aria-hidden": "true"
  }));
};
F.props = {
  icon: Object,
  primaryColor: String,
  secondaryColor: String,
  focusable: String
};
F.inheritAttrs = !1;
F.displayName = "IconBase";
F.getTwoToneColors = En;
F.setTwoToneColors = Pn;
function In(e, t) {
  return Dn(e) || Nn(e, t) || Kn(e, t) || Fn();
}
function Fn() {
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function Kn(e, t) {
  if (e) {
    if (typeof e == "string") return Fe(e, t);
    var n = Object.prototype.toString.call(e).slice(8, -1);
    if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
    if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Fe(e, t);
  }
}
function Fe(e, t) {
  (t == null || t > e.length) && (t = e.length);
  for (var n = 0, r = new Array(t); n < t; n++)
    r[n] = e[n];
  return r;
}
function Nn(e, t) {
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
  if (n != null) {
    var r = [], a = !0, o = !1, d, s;
    try {
      for (n = n.call(e); !(a = (d = n.next()).done) && (r.push(d.value), !(t && r.length === t)); a = !0)
        ;
    } catch (g) {
      o = !0, s = g;
    } finally {
      try {
        !a && n.return != null && n.return();
      } finally {
        if (o) throw s;
      }
    }
    return r;
  }
}
function Dn(e) {
  if (Array.isArray(e)) return e;
}
function Le(e) {
  var t = Ue(e), n = In(t, 2), r = n[0], a = n[1];
  return F.setTwoToneColors({
    primaryColor: r,
    secondaryColor: a
  });
}
function zn() {
  var e = F.getTwoToneColors();
  return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
}
var Rn = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
function Bn(e, t) {
  return Vn(e) || Ln(e, t) || Un(e, t) || Hn();
}
function Hn() {
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function Un(e, t) {
  if (e) {
    if (typeof e == "string") return Ke(e, t);
    var n = Object.prototype.toString.call(e).slice(8, -1);
    if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
    if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Ke(e, t);
  }
}
function Ke(e, t) {
  (t == null || t > e.length) && (t = e.length);
  for (var n = 0, r = new Array(t); n < t; n++)
    r[n] = e[n];
  return r;
}
function Ln(e, t) {
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
  if (n != null) {
    var r = [], a = !0, o = !1, d, s;
    try {
      for (n = n.call(e); !(a = (d = n.next()).done) && (r.push(d.value), !(t && r.length === t)); a = !0)
        ;
    } catch (g) {
      o = !0, s = g;
    } finally {
      try {
        !a && n.return != null && n.return();
      } finally {
        if (o) throw s;
      }
    }
    return r;
  }
}
function Vn(e) {
  if (Array.isArray(e)) return e;
}
function Ne(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, r = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
      return Object.getOwnPropertyDescriptor(n, a).enumerable;
    }))), r.forEach(function(a) {
      ye(e, a, n[a]);
    });
  }
  return e;
}
function ye(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
function Wn(e, t) {
  if (e == null) return {};
  var n = _n(e, t), r, a;
  if (Object.getOwnPropertySymbols) {
    var o = Object.getOwnPropertySymbols(e);
    for (a = 0; a < o.length; a++)
      r = o[a], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
  }
  return n;
}
function _n(e, t) {
  if (e == null) return {};
  var n = {}, r = Object.keys(e), a, o;
  for (o = 0; o < r.length; o++)
    a = r[o], !(t.indexOf(a) >= 0) && (n[a] = e[a]);
  return n;
}
Le("#1890ff");
var D = function(t, n) {
  var r, a = Ne({}, t, n.attrs), o = a.class, d = a.icon, s = a.spin, g = a.rotate, u = a.tabindex, p = a.twoToneColor, c = a.onClick, w = Wn(a, Rn), h = (r = {
    anticon: !0
  }, ye(r, "anticon-".concat(d.name), !!d.name), ye(r, o, o), r), U = s === "" || s || d.name === "loading" ? "anticon-spin" : "", L = u;
  L === void 0 && c && (L = -1, w.tabindex = L);
  var b = g ? {
    msTransform: "rotate(".concat(g, "deg)"),
    transform: "rotate(".concat(g, "deg)")
  } : void 0, C = Ue(p), i = Bn(C, 2), z = i[0], Y = i[1];
  return S("span", Ne({
    role: "img",
    "aria-label": d.name
  }, w, {
    onClick: c,
    class: h
  }), [S(F, {
    class: U,
    icon: d,
    primaryColor: z,
    secondaryColor: Y,
    style: b
  }, null)]);
};
D.props = {
  spin: Boolean,
  rotate: Number,
  icon: Object,
  twoToneColor: String
};
D.displayName = "AntdIcon";
D.inheritAttrs = !1;
D.getTwoToneColor = zn;
D.setTwoToneColor = Le;
var qn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z" } }] }, name: "menu-fold", theme: "outlined" };
function De(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, r = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
      return Object.getOwnPropertyDescriptor(n, a).enumerable;
    }))), r.forEach(function(a) {
      Gn(e, a, n[a]);
    });
  }
  return e;
}
function Gn(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var me = function(t, n) {
  var r = De({}, t, n.attrs);
  return S(D, De({}, r, {
    icon: qn
  }), null);
};
me.displayName = "MenuFoldOutlined";
me.inheritAttrs = !1;
var Jn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z" } }] }, name: "menu-unfold", theme: "outlined" };
function ze(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? Object(arguments[t]) : {}, r = Object.keys(n);
    typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
      return Object.getOwnPropertyDescriptor(n, a).enumerable;
    }))), r.forEach(function(a) {
      Yn(e, a, n[a]);
    });
  }
  return e;
}
function Yn(e, t, n) {
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
}
var he = function(t, n) {
  var r = ze({}, t, n.attrs);
  return S(D, ze({}, r, {
    icon: Jn
  }), null);
};
he.displayName = "MenuUnfoldOutlined";
he.inheritAttrs = !1;
const Zn = ["src"], Ve = /* @__PURE__ */ pe({
  __name: "menu-icon",
  props: {
    data: { default: () => ({}) },
    status: { default: "default" }
  },
  setup(e) {
    const t = e, n = G(() => {
      var o, d, s, g;
      return t.status === "default" ? (((o = t.data) == null ? void 0 : o.host) || "") + re(t.data.iconUrl) : (d = t.data) != null && d.hoverIcon ? (((s = t.data) == null ? void 0 : s.host) || "") + re(t.data.hoverIcon) : (((g = t.data) == null ? void 0 : g.host) || "") + re(t.data.iconUrl);
    }), r = G(() => ({
      display: "block",
      "background-color": "currentColor",
      "mask-image": `url(${n.value})`
    }));
    return (a, o) => n.value.endsWith(".svg") ? (f(), v(
      "i",
      {
        key: 0,
        style: ue(r.value)
      },
      null,
      4
      /* STYLE */
    )) : (f(), v("img", {
      key: 1,
      src: n.value,
      alt: ""
    }, null, 8, Zn));
  }
}), Qn = (e, t) => ({
  menuClick: (a, o) => {
    var d;
    (d = e.selectedKeys) != null && d.includes(o.id) || t("menuClick", { domEvent: a, item: o, key: o.id, keyPath: [o.parentId, o.id] });
  },
  toggleAffix: (a, o) => {
    t("toggleAffix", a, o);
  }
}), We = (e, t = "children") => e.map((r) => (r[t] && r[t].length && (r[t] = We(r[t], t)), (!r[t] || !r[t].length) && (r[t] = null), r)), Xn = (e, t) => {
  for (var n = [], r = 0; r < e.length; r += t)
    n.push(e.slice(r, r + t));
  return n;
}, et = { class: "aside-menu-title has-children" }, nt = {
  key: 0,
  class: "icon-box"
}, tt = {
  key: 1,
  class: "menu-title"
}, rt = { class: "submenu-container" }, at = { class: "title-bar" }, ot = { class: "title-left" }, it = { class: "title" }, lt = { class: "item-container" }, st = ["onClick"], ct = { class: "name" }, ft = {
  key: 0,
  class: "expired"
}, ut = { class: "name" }, dt = {
  key: 0,
  class: "expired"
}, vt = { class: "submenu-container is-collapse" }, gt = { class: "title-bar is-collapse" }, yt = { class: "title-left" }, pt = { class: "title" }, mt = { class: "icon-title" }, ht = { class: "icon-title" }, bt = { class: "item-collapse-container" }, Ct = ["onClick"], kt = { class: "name" }, xt = {
  key: 0,
  class: "expired"
}, St = {
  name: "SubMenu"
}, wt = /* @__PURE__ */ pe({
  ...St,
  props: {
    mode: { default: "vertical" },
    collapse: { type: Boolean },
    menuInfo: { default: () => ({
      id: "",
      name: ""
    }) },
    parentSelectKeys: { default: () => [] },
    affixKeys: { default: () => [] },
    selectedKeys: { default: () => [] }
  },
  emits: ["menuClick", "toggleAffix"],
  setup(e, { emit: t }) {
    const r = J(!0), a = J(""), o = e, d = t;
    nn({
      unlock: import("@das-fed/upf-ui/packages/icons/unlock"),
      lock: import("@das-fed/upf-ui/packages/icons/lock")
    });
    const { toggleAffix: s, menuClick: g } = Qn(o, d);
    return (u, p) => (f(), P(l(Xe), de({
      class: ["das-ui-sub-menu", e.parentSelectKeys.includes(e.menuInfo.id) ? "is-active" : ""],
      key: e.menuInfo.id,
      "popup-offset": [0, 0]
    }, u.$attrs, {
      onMouseover: p[4] || (p[4] = (c) => a.value = e.menuInfo.id),
      onMouseleave: p[5] || (p[5] = (c) => a.value = -1)
    }), {
      icon: j(() => {
        var c;
        return [
          m("div", et, [
            e.menuInfo.hideIcon ? y("v-if", !0) : (f(), v("div", nt, [
              H(u.$slots, "icon", { menuInfo: e.menuInfo }, () => [
                S(Ve, {
                  data: e.menuInfo,
                  status: e.parentSelectKeys.includes(e.menuInfo.id) || a.value === e.menuInfo.id ? "hover" : "default"
                }, null, 8, ["data", "status"])
              ])
            ])),
            e.collapse ? y("v-if", !0) : (f(), v("div", tt, [
              H(u.$slots, ((c = e.menuInfo) == null ? void 0 : c.code) + "-name", {}, () => [
                $((f(), v("div", null, [
                  K(
                    x(e.menuInfo.name),
                    1
                    /* TEXT */
                  )
                ])), [
                  [l(N)]
                ])
              ])
            ]))
          ])
        ];
      }),
      default: j(() => [
        e.menuInfo.children.length ? (f(), v(
          O,
          { key: 0 },
          [
            y(" 展开 "),
            e.collapse ? (f(), v(
              O,
              { key: 1 },
              [
                y(" 收起 "),
                S(l(ne), null, {
                  default: j(() => [
                    m("div", vt, [
                      m("div", gt, [
                        m("div", yt, [
                          $((f(), v("div", pt, [
                            K(
                              x(e.menuInfo.name),
                              1
                              /* TEXT */
                            )
                          ])), [
                            [l(N)]
                          ])
                        ]),
                        l(!1) && r.value ? (f(), v(
                          O,
                          { key: 0 },
                          [
                            e.affixKeys.includes(e.menuInfo.id) ? (f(), v("div", {
                              key: 0,
                              class: "title-right",
                              onClick: p[2] || (p[2] = R((c) => l(s)(e.menuInfo.id, !1), ["stop"]))
                            }, [
                              S(l(Z), {
                                icon: "unlock",
                                size: "small"
                              }),
                              m(
                                "div",
                                mt,
                                x(l(B)("解锁")),
                                1
                                /* TEXT */
                              )
                            ])) : y("v-if", !0),
                            e.affixKeys.includes(e.menuInfo.id) ? y("v-if", !0) : (f(), v("div", {
                              key: 1,
                              class: "title-right affix",
                              onClick: p[3] || (p[3] = R((c) => l(s)(e.menuInfo.id, !0), ["stop"]))
                            }, [
                              S(l(Z), {
                                icon: "lock",
                                size: "small"
                              }),
                              m(
                                "div",
                                ht,
                                x(l(B)("锁住")),
                                1
                                /* TEXT */
                              )
                            ]))
                          ],
                          64
                          /* STABLE_FRAGMENT */
                        )) : y("v-if", !0)
                      ]),
                      $((f(), v("div", bt, [
                        (f(!0), v(
                          O,
                          null,
                          _(e.menuInfo.children, (c) => (f(), v("div", {
                            key: c.id,
                            class: E([
                              "sub-menu-item",
                              e.selectedKeys.includes(c.id) ? "is-active" : "",
                              c != null && c.disable ? "is-disable" : ""
                            ]),
                            onClick: R((w) => l(g)(w, c), ["stop"])
                          }, [
                            $((f(), v("div", kt, [
                              K(
                                x(c.name),
                                1
                                /* TEXT */
                              )
                            ])), [
                              [l(N)]
                            ]),
                            c != null && c.expired ? (f(), v(
                              "div",
                              xt,
                              x(l(B)("已到期")),
                              1
                              /* TEXT */
                            )) : y("v-if", !0)
                          ], 10, Ct))),
                          128
                          /* KEYED_FRAGMENT */
                        ))
                      ])), [
                        [l(xe), { x: !1 }]
                      ])
                    ])
                  ]),
                  _: 1
                  /* STABLE */
                })
              ],
              2112
              /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
            )) : (f(), v(
              O,
              { key: 0 },
              [
                e.mode === "vertical" ? (f(), P(l(ne), { key: 0 }, {
                  default: j(() => [
                    m("div", rt, [
                      m("div", at, [
                        m("div", ot, [
                          $((f(), v("div", it, [
                            K(
                              x(e.menuInfo.name),
                              1
                              /* TEXT */
                            )
                          ])), [
                            [l(N)]
                          ])
                        ]),
                        l(!1) && r.value ? (f(), v(
                          O,
                          { key: 0 },
                          [
                            e.affixKeys.includes(e.menuInfo.id) ? (f(), v("div", {
                              key: 0,
                              class: "title-right",
                              onClick: p[0] || (p[0] = R((c) => l(s)(e.menuInfo.id, !1), ["stop"]))
                            }, [
                              S(l(Z), {
                                icon: "unlock",
                                size: "small"
                              }),
                              p[6] || (p[6] = m(
                                "div",
                                { class: "icon-title" },
                                "解锁",
                                -1
                                /* CACHED */
                              ))
                            ])) : y("v-if", !0),
                            e.affixKeys.includes(e.menuInfo.id) ? y("v-if", !0) : (f(), v("div", {
                              key: 1,
                              class: "title-right affix",
                              onClick: p[1] || (p[1] = R((c) => l(s)(e.menuInfo.id, !0), ["stop"]))
                            }, [
                              S(l(Z), {
                                icon: "lock",
                                size: "small"
                              }),
                              p[7] || (p[7] = m(
                                "div",
                                { class: "icon-title" },
                                "锁住",
                                -1
                                /* CACHED */
                              ))
                            ]))
                          ],
                          64
                          /* STABLE_FRAGMENT */
                        )) : y("v-if", !0)
                      ]),
                      $((f(), v("div", lt, [
                        (f(!0), v(
                          O,
                          null,
                          _(l(Xn)(e.menuInfo.children, 4), (c, w) => (f(), v("div", {
                            key: w,
                            class: "sub-menu-row"
                          }, [
                            (f(!0), v(
                              O,
                              null,
                              _(c, (h) => (f(), v("div", {
                                key: h.id,
                                class: E([
                                  "sub-menu-item",
                                  e.selectedKeys.includes(h.id) ? "is-active" : "",
                                  h != null && h.disable ? "is-disable" : ""
                                ]),
                                onClick: R((U) => l(g)(U, h), ["stop"])
                              }, [
                                $((f(), v("div", ct, [
                                  K(
                                    x(h.name),
                                    1
                                    /* TEXT */
                                  )
                                ])), [
                                  [l(N)]
                                ]),
                                h != null && h.expired ? (f(), v(
                                  "div",
                                  ft,
                                  x(l(B)("已到期")),
                                  1
                                  /* TEXT */
                                )) : y("v-if", !0)
                              ], 10, st))),
                              128
                              /* KEYED_FRAGMENT */
                            ))
                          ]))),
                          128
                          /* KEYED_FRAGMENT */
                        ))
                      ])), [
                        [l(xe), { x: !1 }]
                      ])
                    ])
                  ]),
                  _: 1
                  /* STABLE */
                })) : y("v-if", !0),
                e.mode === "inline" ? (f(!0), v(
                  O,
                  { key: 1 },
                  _(e.menuInfo.children, (c) => (f(), P(
                    l(ne),
                    {
                      key: c.id
                    },
                    {
                      default: j(() => [
                        m(
                          "div",
                          {
                            class: E([
                              "sub-menu-item_inline",
                              e.selectedKeys.includes(c.id) ? "is-active" : "",
                              c != null && c.expired ? "is-expired" : "",
                              c != null && c.disable ? "is-disable" : ""
                            ])
                          },
                          [
                            $((f(), v("div", ut, [
                              K(
                                x(c.name),
                                1
                                /* TEXT */
                              )
                            ])), [
                              [l(N)]
                            ]),
                            c != null && c.expired ? (f(), v(
                              "div",
                              dt,
                              x(l(B)("已到期")),
                              1
                              /* TEXT */
                            )) : y("v-if", !0)
                          ],
                          2
                          /* CLASS */
                        )
                      ]),
                      _: 2
                      /* DYNAMIC */
                    },
                    1024
                    /* DYNAMIC_SLOTS */
                  ))),
                  128
                  /* KEYED_FRAGMENT */
                )) : y("v-if", !0)
              ],
              64
              /* STABLE_FRAGMENT */
            ))
          ],
          64
          /* STABLE_FRAGMENT */
        )) : y("v-if", !0)
      ]),
      _: 3
      /* FORWARDED */
    }, 16, ["class"]));
  }
}), Ot = (e, t) => {
  const n = J([]), r = J([]);
  ke(
    () => n.value,
    (u) => {
      t("update:currentOpenKeys", u);
    }
  ), ke(
    () => e.currentOpenKeys,
    (u) => {
      u && n.value !== u && (n.value = e.currentOpenKeys || []);
    },
    { immediate: !0 }
  );
  const a = (u, p) => {
    p ? (r.value.push(u), r.value = Array.from(new Set(r.value))) : r.value.map((c, w) => {
      c === u && r.value.splice(w, 1);
    });
  };
  Ge(() => {
    document.documentElement.style.setProperty("--das-menu-submenu-popup-z-index", "999998");
  });
  const o = (u) => {
    if (e.mode === "inline") {
      if (!s.value) {
        const p = r.value.filter((c) => !u.includes(c));
        r.value = r.value.filter((c) => !p.includes(c));
      }
      n.value = [u[u.length - 1]];
    }
    e.mode === "vertical" && (n.value = Array.from(new Set(u.concat(r.value))));
  }, d = (u) => {
    !u || !u.key || t("menuClick", u);
  }, s = G({
    get: () => !!e.collapse,
    set: (u) => {
      t("update:collapse", u);
    }
  });
  return {
    isCollapse: s,
    openKeys: n,
    affixKeys: r,
    toggleAffix: a,
    openChange: o,
    menuClick: d,
    toggleCollapse: (u) => {
      s.value = u, t("toggleCollapse", u);
    }
  };
}, At = {
  key: 0,
  class: "icon-box"
}, Tt = {
  key: 1,
  class: "custom-left-icon"
}, Mt = { class: "menu-item-content" }, $t = {
  key: 1,
  class: "expired"
}, jt = {
  key: 2,
  class: "ant-menu-submenu-arrow",
  custom: "true"
}, Pt = { class: "das-aside-menu-bottom-container" }, Et = {
  name: "DasMenuAside"
}, It = /* @__PURE__ */ pe({
  ...Et,
  props: {
    mode: { default: "vertical" },
    collapse: { type: Boolean },
    menus: {},
    currentOpenKeys: { default: () => [] },
    currentSelectKeys: { default: () => [] },
    parentSelectKeys: { default: () => [] },
    subMenuAttrs: { default: () => ({}) }
  },
  emits: ["update:collapse", "update:currentOpenKeys", "menuClick", "toggleCollapse"],
  setup(e, { emit: t }) {
    const n = J(""), r = e, a = t, o = "das-aside-menu-submenu", d = G(() => {
      var C;
      let b = o;
      return (C = r == null ? void 0 : r.subMenuAttrs) != null && C.popupClassName && (b = `${b} ${r.subMenuAttrs.popupClassName}`), {
        popupClassName: b
      };
    }), s = G(() => {
      const b = r.menus || [], C = JSON.parse(JSON.stringify(b));
      return !C || !C.length ? [] : We(C);
    }), { isCollapse: g, openKeys: u, affixKeys: p, toggleAffix: c, openChange: w, menuClick: h, toggleCollapse: U } = Ot(
      r,
      a
    ), L = (b) => w(b.map(String));
    return (b, C) => (f(), v(
      "div",
      {
        class: E(["das-ui-menu-aside", e.collapse ? "is-collapse" : ""])
      },
      [
        (f(), v(
          "div",
          {
            key: e.collapse + "",
            class: E(["das-ui-aside-menu", e.collapse ? "is-collapse" : ""])
          },
          [
            S(l(Ze), { style: { height: "100%" } }, {
              default: j(() => [
                s.value && s.value.length ? (f(), P(l(en), de({
                  key: 0,
                  class: ["das-menu", e.collapse ? "is-collapse" : ""],
                  mode: e.mode,
                  openKeys: l(u),
                  "onUpdate:openKeys": C[1] || (C[1] = (i) => Je(u) ? u.value = i : null),
                  selectedKeys: e.currentSelectKeys,
                  theme: "dark",
                  "inline-collapsed": l(g)
                }, b.$attrs, {
                  onOpenChange: L,
                  onClick: l(h)
                }), {
                  default: j(() => [
                    (f(!0), v(
                      O,
                      null,
                      _(s.value, (i) => (f(), v(
                        O,
                        null,
                        [
                          y(" 只有一级菜单 "),
                          i.children ? (f(), v(
                            O,
                            { key: 1 },
                            [
                              y(" 有二级菜单 "),
                              (f(), P(wt, de({
                                key: i.id,
                                mode: e.mode,
                                menuInfo: i,
                                collapse: l(g),
                                affixKeys: l(p),
                                parentSelectKeys: e.parentSelectKeys,
                                selectedKeys: e.currentSelectKeys
                              }, { ref_for: !0 }, d.value, {
                                onMenuClick: l(h),
                                onToggleAffix: l(c)
                              }), null, 16, ["mode", "menuInfo", "collapse", "affixKeys", "parentSelectKeys", "selectedKeys", "onMenuClick", "onToggleAffix"]))
                            ],
                            64
                            /* STABLE_FRAGMENT */
                          )) : (f(), P(l(ne), {
                            class: E({ "divise-menu-item": i.divise }),
                            key: i.id,
                            onMouseover: (z) => n.value = i.id,
                            onMouseleave: C[0] || (C[0] = (z) => n.value = "")
                          }, {
                            icon: j(() => [
                              S(l(Qe), {
                                content: i.name,
                                placement: "right",
                                disabled: !l(g)
                              }, {
                                default: j(() => {
                                  var z, Y, be;
                                  return [
                                    m(
                                      "div",
                                      {
                                        class: E([
                                          "aside-menu-title",
                                          (z = i == null ? void 0 : i.originalChildren) != null && z.length ? "has-children" : "",
                                          i != null && i.expired ? "is-expired" : "",
                                          i != null && i.disable ? "is-disable" : "",
                                          e.currentSelectKeys.includes(i.id) ? "is-active" : ""
                                        ])
                                      },
                                      [
                                        y(" 自定义leftIcon "),
                                        i.hideIcon ? y("v-if", !0) : (f(), v("div", At, [
                                          y(" 第一种icon插槽 "),
                                          b.$slots[`${i == null ? void 0 : i.code}-leftIcon`] ? (f(), v("div", Tt, [
                                            y(" 第二种icon插槽 "),
                                            H(b.$slots, `${i == null ? void 0 : i.code}-leftIcon`)
                                          ])) : H(b.$slots, "icon", {
                                            key: 0,
                                            menuInfo: i
                                          }, () => [
                                            S(Ve, {
                                              data: i,
                                              status: e.currentSelectKeys.includes(i.id) || n.value === i.id ? "hover" : "default"
                                            }, null, 8, ["data", "status"])
                                          ])
                                        ])),
                                        m("div", Mt, [
                                          l(g) ? y("v-if", !0) : $((f(), v(
                                            "div",
                                            {
                                              key: 0,
                                              class: "menu-title",
                                              style: ue({
                                                "padding-right": b.$slots[(i == null ? void 0 : i.code) + "-rightIcon"] || i != null && i.expired ? "0" : i != null && i.disable && ((Y = i == null ? void 0 : i.originalChildren) != null && Y.length) ? "30px" : "15px"
                                              })
                                            },
                                            [
                                              K(
                                                x(i.name),
                                                1
                                                /* TEXT */
                                              )
                                            ],
                                            4
                                            /* STYLE */
                                          )), [
                                            [l(N)]
                                          ]),
                                          y(" 已到期标识 "),
                                          i != null && i.expired ? (f(), v(
                                            "div",
                                            $t,
                                            x(l(B)("已到期")),
                                            1
                                            /* TEXT */
                                          )) : y("v-if", !0),
                                          y(" 箭头 "),
                                          i != null && i.disable && ((be = i == null ? void 0 : i.originalChildren) != null && be.length) ? (f(), v("i", jt)) : y("v-if", !0),
                                          y("@slots 右侧icon "),
                                          H(b.$slots, (i == null ? void 0 : i.code) + "-rightIcon")
                                        ])
                                      ],
                                      2
                                      /* CLASS */
                                    )
                                  ];
                                }),
                                _: 2
                                /* DYNAMIC */
                              }, 1032, ["content", "disabled"])
                            ]),
                            _: 2
                            /* DYNAMIC */
                          }, 1032, ["class", "onMouseover"]))
                        ],
                        64
                        /* STABLE_FRAGMENT */
                      ))),
                      256
                      /* UNKEYED_FRAGMENT */
                    ))
                  ]),
                  _: 3
                  /* FORWARDED */
                }, 16, ["class", "mode", "openKeys", "selectedKeys", "inline-collapsed", "onClick"])) : y("v-if", !0),
                y(" 底部插槽 "),
                m("div", Pt, [
                  H(b.$slots, "bottom")
                ])
              ]),
              _: 3
              /* FORWARDED */
            })
          ],
          2
          /* CLASS */
        )),
        m(
          "div",
          {
            class: E(["icon-container", l(g) ? "is-collapse" : ""])
          },
          [
            m(
              "div",
              {
                style: ue({ "padding-left": l(g) ? "0" : "16px" }),
                onClick: C[2] || (C[2] = (i) => l(U)(!l(g)))
              },
              [
                m("div", null, [
                  l(g) ? (f(), P(l(he), {
                    key: 0,
                    class: "collapse-icon"
                  })) : (f(), P(l(me), {
                    key: 1,
                    class: "collapse-icon"
                  }))
                ])
              ],
              4
              /* STYLE */
            )
          ],
          2
          /* CLASS */
        )
      ],
      2
      /* CLASS */
    ));
  }
}), Ft = { 已到期: { "zh-CN": "已到期", en: "Expired", "zh-MO": "已到期", _appCode: "framework" } };
Ye(Ft);
const qt = _e(It), Gt = { title: "Menu-Aside 垂直导航栏" };
export {
  qt as DasMenuAside,
  Gt as default
};
