// Metro module 4038 (f4039). import Module689 from "../../_bundle/Module689"; const _excluded = ["#94E0CF", "#9AF0B1", "#9A90FF", "#9A53FF", "#FDA6E4", "#FFE6C0", "#EFB4AA", "#56B69F", "#29C566", "#5348CA", "#6D24D4", "#CA48C8", "#F0AE29", "#DF4232"]; let c2315_3 = [0, 45, 90, 135, 180, 225, 270, 315]; let c2315_4 = [20, 40, 60, 80]; let c2315_5 = { SOLID: "solid", GRADIENT: "gradient" }; let c2315_6 = { TWO_COLOR: "two-color", ANALOGOUS: "analogous", COMPLEMENTARY: "complementary", SPLIT_COMPLEMENTARY: "split-complementary", TRIADIC: "triadic" }; let c2315_7 = [c2315_6.ANALOGOUS, c2315_6.COMPLEMENTARY, c2315_6.SPLIT_COMPLEMENTARY, c2315_6.TRIADIC]; export { _excluded as COLOR_PALETTE }; export { c2315_5 as ColorType }; export { c2315_6 as GradientType }; export function generateRandomColorOptions() { const intensity = c2315_4[Math.floor(Math.random() * c2315_4.length)]; const angle = c2315_3[Math.floor(Math.random() * c2315_3.length)]; if ((Math.random() < 0.2 ? "path1" : "path2") === "path1") { const r65 = Math.floor(Math.random() * _excluded.length); let r73 = Math.floor(Math.random() * _excluded.length); while (r73 === r65) { r73 = Math.floor(Math.random() * _excluded.length); } return { type: c2315_5.GRADIENT, colors: [_excluded[r65], _excluded[r73]], angle, intensity, gradientType: c2315_6.TWO_COLOR }; } const r41 = _excluded[Math.floor(Math.random() * _excluded.length)]; const gradientType = c2315_7[Math.floor(Math.random() * c2315_7.length)]; return { type: c2315_5.GRADIENT, colors: (function generateColorHarmony(a0, a1) { let r32, r34, r41, r48, r55; L14: { L12: { L10: { L8: { try { const r17 = Module689(a0); const r20 = r17.get("hsl.h"); const r23 = r17.get("hsl.s"); const r26 = r17.get("hsl.l"); if (c2315_6.ANALOGOUS === a1) { r55 = (function generateAnalogousColors(a0, a1, a2, a3) { return [Module689.hsl(a3 - 30, a1, a2).hex(), a0, Module689.hsl(a3 + 30, a1, a2).hex()]; })(a0, r23, r26, r20); break L14; } if (c2315_6.COMPLEMENTARY === a1) { r48 = (function generateComplementaryColors(a0, a1, a2, a3) { const r17 = Module689.hsl((a3 + 180) % 360, a1, a2).hex(); return [a0, Module689.mix(a0, r17, 0.5).hex(), r17]; })(a0, r23, r26, r20); break L12; } if (c2315_6.SPLIT_COMPLEMENTARY === a1) { r41 = (function generateSplitComplementaryColors(a0, a1, a2, a3) { return [a0, Module689.hsl((a3 + 150) % 360, a1, a2).hex(), Module689.hsl((a3 + 210) % 360, a1, a2).hex()]; })(a0, r23, r26, r20); break L10; } if (c2315_6.TRIADIC === a1) { r34 = (function generateTriadicColors(a0, a1, a2, a3) { return [a0, Module689.hsl((a3 + 120) % 360, a1, a2).hex(), Module689.hsl((a3 + 240) % 360, a1, a2).hex()]; })(a0, r23, r26, r20); break L8; } r32 = [a0]; } catch ($e) { return [a0]; } return r32; } return r34; } return r41; } return r48; } return r55; })(r41, gradientType), angle, intensity, gradientType }; }