import "../../../../../@ant-design/colors/es/index.mjs";
import { defaultPresetColors as l } from "../seed.mjs";
import c from "../shared/genColorMapToken.mjs";
import { generateColorPalettes as m, generateNeutralColorPalettes as g } from "./colors.mjs";
import d from "../default/index.mjs";
import u from "../../../../../@ant-design/colors/es/generate.mjs";
const f = (o, s) => {
  const n = Object.keys(l).map((e) => {
    const t = u(o[e], {
      theme: "dark"
    });
    return new Array(10).fill(1).reduce((a, b, r) => (a[`${e}-${r + 1}`] = t[r], a[`${e}${r + 1}`] = t[r], a), {});
  }).reduce((e, t) => (e = Object.assign(Object.assign({}, e), t), e), {}), i = s ?? d(o);
  return Object.assign(Object.assign(Object.assign({}, i), n), c(o, {
    generateColorPalettes: m,
    generateNeutralColorPalettes: g
  }));
}, h = f;
export {
  h as default
};
