@m3ui-vue/m3ui-vue 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/README.md +41 -0
  2. package/dist/API.md +199 -54
  3. package/dist/{MTextField-pJU1vFaR.js → MTextField-Ck0oWDMk.js} +8 -2
  4. package/dist/MTextField-Ck0oWDMk.js.map +1 -0
  5. package/dist/api.json +1 -1
  6. package/dist/code-editor.js +1 -1
  7. package/dist/components/MBox.vue.d.ts +3 -3
  8. package/dist/components/MColorPicker.vue.d.ts +13 -1
  9. package/dist/components/MColorPickerModal.vue.d.ts +14 -2
  10. package/dist/components/MDragHandle.vue.d.ts +12 -0
  11. package/dist/components/MEmojiSelector.vue.d.ts +1 -1
  12. package/dist/components/MFab.vue.d.ts +1 -1
  13. package/dist/components/MFabMenu.vue.d.ts +1 -1
  14. package/dist/components/MListItem.vue.d.ts +5 -5
  15. package/dist/components/MOverlay.vue.d.ts +1 -1
  16. package/dist/components/MScrollField.vue.d.ts +40 -0
  17. package/dist/components/MScrollable.vue.d.ts +9 -0
  18. package/dist/components/MSplitter.vue.d.ts +2 -2
  19. package/dist/components/MSwipeToDismiss.vue.d.ts +49 -0
  20. package/dist/components/MTransition.vue.d.ts +34 -0
  21. package/dist/components/MWindow.vue.d.ts +1 -1
  22. package/dist/components/_MColorPanel.vue.d.ts +18 -0
  23. package/dist/composables/_colorUtils.d.ts +34 -0
  24. package/dist/composables/_themeColor.d.ts +1 -0
  25. package/dist/composables/_useSpring.d.ts +15 -0
  26. package/dist/composables/dynamicColor.d.ts +18 -0
  27. package/dist/composables/useColorPalette.d.ts +27 -0
  28. package/dist/composables/useLocale.d.ts +10 -0
  29. package/dist/index.d.ts +9 -1
  30. package/dist/locales/index.js +70 -0
  31. package/dist/locales/index.js.map +1 -1
  32. package/dist/m3ui-vue.css +1 -1
  33. package/dist/m3ui.js +4808 -3622
  34. package/dist/m3ui.js.map +1 -1
  35. package/dist/material-color-utilities-Cktu8DBU.js +3160 -0
  36. package/dist/material-color-utilities-Cktu8DBU.js.map +1 -0
  37. package/dist/plugin.d.ts +18 -0
  38. package/dist/rich-text-editor.js +2 -2
  39. package/dist/styles/palettes.css +546 -0
  40. package/dist/styles/theme.css +77 -0
  41. package/dist/styles.css +1 -1
  42. package/dist/{useLocale-Drihe5G2.js → useLocale-CFW8cIzL.js} +11 -1
  43. package/dist/useLocale-CFW8cIzL.js.map +1 -0
  44. package/package.json +2 -1
  45. package/src/__tests__/MButtonGroup.test.ts +51 -0
  46. package/src/__tests__/MColorPicker.test.ts +141 -0
  47. package/src/__tests__/MDragHandle.test.ts +57 -0
  48. package/src/__tests__/MListItemShape.test.ts +76 -0
  49. package/src/__tests__/MScrollField.test.ts +41 -0
  50. package/src/__tests__/MScrollable.test.ts +42 -0
  51. package/src/__tests__/MSwipeToDismiss.test.ts +104 -0
  52. package/src/__tests__/MTransition.test.ts +27 -0
  53. package/src/__tests__/dynamicColor.test.ts +191 -0
  54. package/src/components/MBox.vue +4 -2
  55. package/src/components/MButtonGroup.vue +116 -35
  56. package/src/components/MColorPicker.vue +114 -210
  57. package/src/components/MColorPickerModal.vue +50 -251
  58. package/src/components/MDragHandle.vue +54 -0
  59. package/src/components/MList.vue +33 -3
  60. package/src/components/MListItem.vue +75 -5
  61. package/src/components/MScrollField.vue +302 -0
  62. package/src/components/MScrollable.vue +160 -5
  63. package/src/components/MSplitter.vue +33 -10
  64. package/src/components/MSwipeToDismiss.vue +247 -0
  65. package/src/components/MTransition.vue +149 -0
  66. package/src/components/_MColorPanel.vue +478 -0
  67. package/src/composables/_colorUtils.ts +107 -0
  68. package/src/composables/_themeColor.ts +33 -0
  69. package/src/composables/_useSpring.ts +89 -0
  70. package/src/composables/dynamicColor.ts +85 -0
  71. package/src/composables/useColorPalette.ts +171 -25
  72. package/src/composables/useFieldBg.ts +6 -0
  73. package/src/composables/useLocale.ts +22 -0
  74. package/src/index.ts +9 -1
  75. package/src/locales/de.ts +10 -0
  76. package/src/locales/es.ts +10 -0
  77. package/src/locales/fr.ts +10 -0
  78. package/src/locales/ja.ts +10 -0
  79. package/src/locales/ko.ts +10 -0
  80. package/src/locales/pt.ts +10 -0
  81. package/src/locales/zh.ts +10 -0
  82. package/src/plugin.ts +28 -7
  83. package/src/styles/palettes.css +546 -0
  84. package/src/styles/theme.css +77 -0
  85. package/dist/MTextField-pJU1vFaR.js.map +0 -1
  86. package/dist/useLocale-Drihe5G2.js.map +0 -1
@@ -0,0 +1,3160 @@
1
+ //#region node_modules/.pnpm/@material+material-color-utilities@0.4.0/node_modules/@material/material-color-utilities/utils/math_utils.js
2
+ function e(e) {
3
+ return e < 0 ? -1 : e === 0 ? 0 : 1;
4
+ }
5
+ function t(e, t, n) {
6
+ return (1 - n) * e + n * t;
7
+ }
8
+ function n(e, t, n) {
9
+ return n < e ? e : n > t ? t : n;
10
+ }
11
+ function r(e, t, n) {
12
+ return n < e ? e : n > t ? t : n;
13
+ }
14
+ function i(e) {
15
+ return e %= 360, e < 0 && (e += 360), e;
16
+ }
17
+ function a(e) {
18
+ return e %= 360, e < 0 && (e += 360), e;
19
+ }
20
+ function o(e, t) {
21
+ return [
22
+ e[0] * t[0][0] + e[1] * t[0][1] + e[2] * t[0][2],
23
+ e[0] * t[1][0] + e[1] * t[1][1] + e[2] * t[1][2],
24
+ e[0] * t[2][0] + e[1] * t[2][1] + e[2] * t[2][2]
25
+ ];
26
+ }
27
+ //#endregion
28
+ //#region node_modules/.pnpm/@material+material-color-utilities@0.4.0/node_modules/@material/material-color-utilities/utils/color_utils.js
29
+ var s = [
30
+ [
31
+ .41233895,
32
+ .35762064,
33
+ .18051042
34
+ ],
35
+ [
36
+ .2126,
37
+ .7152,
38
+ .0722
39
+ ],
40
+ [
41
+ .01932141,
42
+ .11916382,
43
+ .95034478
44
+ ]
45
+ ], c = [
46
+ [
47
+ 3.2413774792388685,
48
+ -1.5376652402851851,
49
+ -.49885366846268053
50
+ ],
51
+ [
52
+ -.9691452513005321,
53
+ 1.8758853451067872,
54
+ .04156585616912061
55
+ ],
56
+ [
57
+ .05562093689691305,
58
+ -.20395524564742123,
59
+ 1.0571799111220335
60
+ ]
61
+ ], l = [
62
+ 95.047,
63
+ 100,
64
+ 108.883
65
+ ];
66
+ function u(e, t, n) {
67
+ return (255 << 24 | (e & 255) << 16 | (t & 255) << 8 | n & 255) >>> 0;
68
+ }
69
+ function d(e) {
70
+ return u(C(e[0]), C(e[1]), C(e[2]));
71
+ }
72
+ function f(e) {
73
+ return e >> 16 & 255;
74
+ }
75
+ function p(e) {
76
+ return e >> 8 & 255;
77
+ }
78
+ function m(e) {
79
+ return e & 255;
80
+ }
81
+ function h(e, t, n) {
82
+ let r = c, i = r[0][0] * e + r[0][1] * t + r[0][2] * n, a = r[1][0] * e + r[1][1] * t + r[1][2] * n, o = r[2][0] * e + r[2][1] * t + r[2][2] * n;
83
+ return u(C(i), C(a), C(o));
84
+ }
85
+ function g(e) {
86
+ return o([
87
+ S(f(e)),
88
+ S(p(e)),
89
+ S(m(e))
90
+ ], s);
91
+ }
92
+ function _(e) {
93
+ let t = S(f(e)), n = S(p(e)), r = S(m(e)), i = s, a = i[0][0] * t + i[0][1] * n + i[0][2] * r, o = i[1][0] * t + i[1][1] * n + i[1][2] * r, c = i[2][0] * t + i[2][1] * n + i[2][2] * r, u = l, d = a / u[0], h = o / u[1], g = c / u[2], _ = T(d), v = T(h), y = T(g);
94
+ return [
95
+ 116 * v - 16,
96
+ 500 * (_ - v),
97
+ 200 * (v - y)
98
+ ];
99
+ }
100
+ function v(e) {
101
+ let t = C(b(e));
102
+ return u(t, t, t);
103
+ }
104
+ function y(e) {
105
+ let t = g(e)[1];
106
+ return 116 * T(t / 100) - 16;
107
+ }
108
+ function b(e) {
109
+ return 100 * E((e + 16) / 116);
110
+ }
111
+ function x(e) {
112
+ return T(e / 100) * 116 - 16;
113
+ }
114
+ function S(e) {
115
+ let t = e / 255;
116
+ return t <= .040449936 ? t / 12.92 * 100 : ((t + .055) / 1.055) ** 2.4 * 100;
117
+ }
118
+ function C(e) {
119
+ let t = e / 100, r = 0;
120
+ return r = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055, n(0, 255, Math.round(r * 255));
121
+ }
122
+ function w() {
123
+ return l;
124
+ }
125
+ function T(e) {
126
+ return e > .008856451679035631 ? e ** (1 / 3) : (903.2962962962963 * e + 16) / 116;
127
+ }
128
+ function E(e) {
129
+ let t = e * e * e;
130
+ return t > .008856451679035631 ? t : (116 * e - 16) / 903.2962962962963;
131
+ }
132
+ //#endregion
133
+ //#region node_modules/.pnpm/@material+material-color-utilities@0.4.0/node_modules/@material/material-color-utilities/hct/viewing_conditions.js
134
+ var D = class e {
135
+ static make(n = w(), r = 200 / Math.PI * b(50) / 100, i = 50, a = 2, o = !1) {
136
+ let s = n, c = s[0] * .401288 + s[1] * .650173 + s[2] * -.051461, l = s[0] * -.250268 + s[1] * 1.204414 + s[2] * .045854, u = s[0] * -.002079 + s[1] * .048952 + s[2] * .953127, d = .8 + a / 10, f = d >= .9 ? t(.59, .69, (d - .9) * 10) : t(.525, .59, (d - .8) * 10), p = o ? 1 : d * (1 - 1 / 3.6 * Math.exp((-r - 42) / 92));
137
+ p = p > 1 ? 1 : p < 0 ? 0 : p;
138
+ let m = d, h = [
139
+ 100 / c * p + 1 - p,
140
+ 100 / l * p + 1 - p,
141
+ 100 / u * p + 1 - p
142
+ ], g = 1 / (5 * r + 1), _ = g * g * g * g, v = 1 - _, y = _ * r + .1 * v * v * Math.cbrt(5 * r), x = b(i) / n[1], S = 1.48 + Math.sqrt(x), C = .725 / x ** .2, T = C, E = [
143
+ (y * h[0] * c / 100) ** .42,
144
+ (y * h[1] * l / 100) ** .42,
145
+ (y * h[2] * u / 100) ** .42
146
+ ], D = [
147
+ 400 * E[0] / (E[0] + 27.13),
148
+ 400 * E[1] / (E[1] + 27.13),
149
+ 400 * E[2] / (E[2] + 27.13)
150
+ ], O = (2 * D[0] + D[1] + .05 * D[2]) * C;
151
+ return new e(x, O, C, T, f, m, h, y, y ** .25, S);
152
+ }
153
+ constructor(e, t, n, r, i, a, o, s, c, l) {
154
+ this.n = e, this.aw = t, this.nbb = n, this.ncb = r, this.c = i, this.nc = a, this.rgbD = o, this.fl = s, this.fLRoot = c, this.z = l;
155
+ }
156
+ };
157
+ D.DEFAULT = D.make();
158
+ //#endregion
159
+ //#region node_modules/.pnpm/@material+material-color-utilities@0.4.0/node_modules/@material/material-color-utilities/hct/cam16.js
160
+ var O = class t {
161
+ constructor(e, t, n, r, i, a, o, s, c) {
162
+ this.hue = e, this.chroma = t, this.j = n, this.q = r, this.m = i, this.s = a, this.jstar = o, this.astar = s, this.bstar = c;
163
+ }
164
+ distance(e) {
165
+ let t = this.jstar - e.jstar, n = this.astar - e.astar, r = this.bstar - e.bstar;
166
+ return 1.41 * Math.sqrt(t * t + n * n + r * r) ** .63;
167
+ }
168
+ static fromInt(e) {
169
+ return t.fromIntInViewingConditions(e, D.DEFAULT);
170
+ }
171
+ static fromIntInViewingConditions(n, r) {
172
+ let i = (n & 16711680) >> 16, o = (n & 65280) >> 8, s = n & 255, c = S(i), l = S(o), u = S(s), d = .41233895 * c + .35762064 * l + .18051042 * u, f = .2126 * c + .7152 * l + .0722 * u, p = .01932141 * c + .11916382 * l + .95034478 * u, m = .401288 * d + .650173 * f - .051461 * p, h = -.250268 * d + 1.204414 * f + .045854 * p, g = -.002079 * d + .048952 * f + .953127 * p, _ = r.rgbD[0] * m, v = r.rgbD[1] * h, y = r.rgbD[2] * g, b = (r.fl * Math.abs(_) / 100) ** .42, x = (r.fl * Math.abs(v) / 100) ** .42, C = (r.fl * Math.abs(y) / 100) ** .42, w = e(_) * 400 * b / (b + 27.13), T = e(v) * 400 * x / (x + 27.13), E = e(y) * 400 * C / (C + 27.13), D = (11 * w + -12 * T + E) / 11, O = (w + T - 2 * E) / 9, k = (20 * w + 20 * T + 21 * E) / 20, A = (40 * w + 20 * T + E) / 20, j = a(Math.atan2(O, D) * 180 / Math.PI), M = j * Math.PI / 180, N = 100 * (A * r.nbb / r.aw) ** +(r.c * r.z), P = 4 / r.c * Math.sqrt(N / 100) * (r.aw + 4) * r.fLRoot, F = j < 20.14 ? j + 360 : j, I = (5e4 / 13 * (.25 * (Math.cos(F * Math.PI / 180 + 2) + 3.8)) * r.nc * r.ncb * Math.sqrt(D * D + O * O) / (k + .305)) ** .9 * (1.64 - .29 ** r.n) ** .73, L = I * Math.sqrt(N / 100), R = L * r.fLRoot, ee = 50 * Math.sqrt(I * r.c / (r.aw + 4)), z = (1 + 100 * .007) * N / (1 + .007 * N), B = 1 / .0228 * Math.log(1 + .0228 * R), te = B * Math.cos(M), V = B * Math.sin(M);
173
+ return new t(j, L, N, P, R, ee, z, te, V);
174
+ }
175
+ static fromJch(e, n, r) {
176
+ return t.fromJchInViewingConditions(e, n, r, D.DEFAULT);
177
+ }
178
+ static fromJchInViewingConditions(e, n, r, i) {
179
+ let a = 4 / i.c * Math.sqrt(e / 100) * (i.aw + 4) * i.fLRoot, o = n * i.fLRoot, s = n / Math.sqrt(e / 100), c = 50 * Math.sqrt(s * i.c / (i.aw + 4)), l = r * Math.PI / 180, u = (1 + 100 * .007) * e / (1 + .007 * e), d = 1 / .0228 * Math.log(1 + .0228 * o), f = d * Math.cos(l), p = d * Math.sin(l);
180
+ return new t(r, n, e, a, o, c, u, f, p);
181
+ }
182
+ static fromUcs(e, n, r) {
183
+ return t.fromUcsInViewingConditions(e, n, r, D.DEFAULT);
184
+ }
185
+ static fromUcsInViewingConditions(e, n, r, i) {
186
+ let a = n, o = r, s = Math.sqrt(a * a + o * o), c = (Math.exp(s * .0228) - 1) / .0228 / i.fLRoot, l = 180 / Math.PI * Math.atan2(o, a);
187
+ l < 0 && (l += 360);
188
+ let u = e / (1 - (e - 100) * .007);
189
+ return t.fromJchInViewingConditions(u, c, l, i);
190
+ }
191
+ toInt() {
192
+ return this.viewed(D.DEFAULT);
193
+ }
194
+ viewed(t) {
195
+ let n = ((this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100)) / (1.64 - .29 ** t.n) ** .73) ** (1 / .9), r = this.hue * Math.PI / 180, i = .25 * (Math.cos(r + 2) + 3.8), a = t.aw * (this.j / 100) ** (1 / t.c / t.z), o = 5e4 / 13 * i * t.nc * t.ncb, s = a / t.nbb, c = Math.sin(r), l = Math.cos(r), u = 23 * (s + .305) * n / (23 * o + 11 * n * l + 108 * n * c), d = u * l, f = u * c, p = (460 * s + 451 * d + 288 * f) / 1403, m = (460 * s - 891 * d - 261 * f) / 1403, g = (460 * s - 220 * d - 6300 * f) / 1403, _ = Math.max(0, 27.13 * Math.abs(p) / (400 - Math.abs(p))), v = e(p) * (100 / t.fl) * _ ** (1 / .42), y = Math.max(0, 27.13 * Math.abs(m) / (400 - Math.abs(m))), b = e(m) * (100 / t.fl) * y ** (1 / .42), x = Math.max(0, 27.13 * Math.abs(g) / (400 - Math.abs(g))), S = e(g) * (100 / t.fl) * x ** (1 / .42), C = v / t.rgbD[0], w = b / t.rgbD[1], T = S / t.rgbD[2];
196
+ return h(1.86206786 * C - 1.01125463 * w + .14918677 * T, .38752654 * C + .62144744 * w - .00897398 * T, -.0158415 * C - .03412294 * w + 1.04996444 * T);
197
+ }
198
+ static fromXyzInViewingConditions(n, r, i, a) {
199
+ let o = .401288 * n + .650173 * r - .051461 * i, s = -.250268 * n + 1.204414 * r + .045854 * i, c = -.002079 * n + .048952 * r + .953127 * i, l = a.rgbD[0] * o, u = a.rgbD[1] * s, d = a.rgbD[2] * c, f = (a.fl * Math.abs(l) / 100) ** .42, p = (a.fl * Math.abs(u) / 100) ** .42, m = (a.fl * Math.abs(d) / 100) ** .42, h = e(l) * 400 * f / (f + 27.13), g = e(u) * 400 * p / (p + 27.13), _ = e(d) * 400 * m / (m + 27.13), v = (11 * h + -12 * g + _) / 11, y = (h + g - 2 * _) / 9, b = (20 * h + 20 * g + 21 * _) / 20, x = (40 * h + 20 * g + _) / 20, S = Math.atan2(y, v) * 180 / Math.PI, C = S < 0 ? S + 360 : S >= 360 ? S - 360 : S, w = C * Math.PI / 180, T = 100 * (x * a.nbb / a.aw) ** +(a.c * a.z), E = 4 / a.c * Math.sqrt(T / 100) * (a.aw + 4) * a.fLRoot, D = C < 20.14 ? C + 360 : C, O = (5e4 / 13 * (1 / 4 * (Math.cos(D * Math.PI / 180 + 2) + 3.8)) * a.nc * a.ncb * Math.sqrt(v * v + y * y) / (b + .305)) ** .9 * (1.64 - .29 ** a.n) ** .73, k = O * Math.sqrt(T / 100), A = k * a.fLRoot, j = 50 * Math.sqrt(O * a.c / (a.aw + 4)), M = (1 + 100 * .007) * T / (1 + .007 * T), N = Math.log(1 + .0228 * A) / .0228, P = N * Math.cos(w), F = N * Math.sin(w);
200
+ return new t(C, k, T, E, A, j, M, P, F);
201
+ }
202
+ xyzInViewingConditions(t) {
203
+ let n = ((this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100)) / (1.64 - .29 ** t.n) ** .73) ** (1 / .9), r = this.hue * Math.PI / 180, i = .25 * (Math.cos(r + 2) + 3.8), a = t.aw * (this.j / 100) ** (1 / t.c / t.z), o = 5e4 / 13 * i * t.nc * t.ncb, s = a / t.nbb, c = Math.sin(r), l = Math.cos(r), u = 23 * (s + .305) * n / (23 * o + 11 * n * l + 108 * n * c), d = u * l, f = u * c, p = (460 * s + 451 * d + 288 * f) / 1403, m = (460 * s - 891 * d - 261 * f) / 1403, h = (460 * s - 220 * d - 6300 * f) / 1403, g = Math.max(0, 27.13 * Math.abs(p) / (400 - Math.abs(p))), _ = e(p) * (100 / t.fl) * g ** (1 / .42), v = Math.max(0, 27.13 * Math.abs(m) / (400 - Math.abs(m))), y = e(m) * (100 / t.fl) * v ** (1 / .42), b = Math.max(0, 27.13 * Math.abs(h) / (400 - Math.abs(h))), x = e(h) * (100 / t.fl) * b ** (1 / .42), S = _ / t.rgbD[0], C = y / t.rgbD[1], w = x / t.rgbD[2];
204
+ return [
205
+ 1.86206786 * S - 1.01125463 * C + .14918677 * w,
206
+ .38752654 * S + .62144744 * C - .00897398 * w,
207
+ -.0158415 * S - .03412294 * C + 1.04996444 * w
208
+ ];
209
+ }
210
+ }, k = class t {
211
+ static sanitizeRadians(e) {
212
+ return (e + Math.PI * 8) % (Math.PI * 2);
213
+ }
214
+ static trueDelinearized(e) {
215
+ let t = e / 100, n = 0;
216
+ return n = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055, n * 255;
217
+ }
218
+ static chromaticAdaptation(t) {
219
+ let n = Math.abs(t) ** .42;
220
+ return e(t) * 400 * n / (n + 27.13);
221
+ }
222
+ static hueOf(e) {
223
+ let n = o(e, t.SCALED_DISCOUNT_FROM_LINRGB), r = t.chromaticAdaptation(n[0]), i = t.chromaticAdaptation(n[1]), a = t.chromaticAdaptation(n[2]), s = (11 * r + -12 * i + a) / 11, c = (r + i - 2 * a) / 9;
224
+ return Math.atan2(c, s);
225
+ }
226
+ static areInCyclicOrder(e, n, r) {
227
+ return t.sanitizeRadians(n - e) < t.sanitizeRadians(r - e);
228
+ }
229
+ static intercept(e, t, n) {
230
+ return (t - e) / (n - e);
231
+ }
232
+ static lerpPoint(e, t, n) {
233
+ return [
234
+ e[0] + (n[0] - e[0]) * t,
235
+ e[1] + (n[1] - e[1]) * t,
236
+ e[2] + (n[2] - e[2]) * t
237
+ ];
238
+ }
239
+ static setCoordinate(e, n, r, i) {
240
+ let a = t.intercept(e[i], n, r[i]);
241
+ return t.lerpPoint(e, a, r);
242
+ }
243
+ static isBounded(e) {
244
+ return 0 <= e && e <= 100;
245
+ }
246
+ static nthVertex(e, n) {
247
+ let r = t.Y_FROM_LINRGB[0], i = t.Y_FROM_LINRGB[1], a = t.Y_FROM_LINRGB[2], o = n % 4 <= 1 ? 0 : 100, s = n % 2 == 0 ? 0 : 100;
248
+ if (n < 4) {
249
+ let n = o, c = s, l = (e - n * i - c * a) / r;
250
+ return t.isBounded(l) ? [
251
+ l,
252
+ n,
253
+ c
254
+ ] : [
255
+ -1,
256
+ -1,
257
+ -1
258
+ ];
259
+ }
260
+ if (n < 8) {
261
+ let n = o, c = s, l = (e - c * r - n * a) / i;
262
+ return t.isBounded(l) ? [
263
+ c,
264
+ l,
265
+ n
266
+ ] : [
267
+ -1,
268
+ -1,
269
+ -1
270
+ ];
271
+ }
272
+ {
273
+ let n = o, c = s, l = (e - n * r - c * i) / a;
274
+ return t.isBounded(l) ? [
275
+ n,
276
+ c,
277
+ l
278
+ ] : [
279
+ -1,
280
+ -1,
281
+ -1
282
+ ];
283
+ }
284
+ }
285
+ static bisectToSegment(e, n) {
286
+ let r = [
287
+ -1,
288
+ -1,
289
+ -1
290
+ ], i = r, a = 0, o = 0, s = !1, c = !0;
291
+ for (let l = 0; l < 12; l++) {
292
+ let u = t.nthVertex(e, l);
293
+ if (u[0] < 0) continue;
294
+ let d = t.hueOf(u);
295
+ if (!s) {
296
+ r = u, i = u, a = d, o = d, s = !0;
297
+ continue;
298
+ }
299
+ (c || t.areInCyclicOrder(a, d, o)) && (c = !1, t.areInCyclicOrder(a, n, d) ? (i = u, o = d) : (r = u, a = d));
300
+ }
301
+ return [r, i];
302
+ }
303
+ static midpoint(e, t) {
304
+ return [
305
+ (e[0] + t[0]) / 2,
306
+ (e[1] + t[1]) / 2,
307
+ (e[2] + t[2]) / 2
308
+ ];
309
+ }
310
+ static criticalPlaneBelow(e) {
311
+ return Math.floor(e - .5);
312
+ }
313
+ static criticalPlaneAbove(e) {
314
+ return Math.ceil(e - .5);
315
+ }
316
+ static bisectToLimit(e, n) {
317
+ let r = t.bisectToSegment(e, n), i = r[0], a = t.hueOf(i), o = r[1];
318
+ for (let e = 0; e < 3; e++) if (i[e] !== o[e]) {
319
+ let r = -1, s = 255;
320
+ i[e] < o[e] ? (r = t.criticalPlaneBelow(t.trueDelinearized(i[e])), s = t.criticalPlaneAbove(t.trueDelinearized(o[e]))) : (r = t.criticalPlaneAbove(t.trueDelinearized(i[e])), s = t.criticalPlaneBelow(t.trueDelinearized(o[e])));
321
+ for (let c = 0; c < 8 && !(Math.abs(s - r) <= 1); c++) {
322
+ let c = Math.floor((r + s) / 2), l = t.CRITICAL_PLANES[c], u = t.setCoordinate(i, l, o, e), d = t.hueOf(u);
323
+ t.areInCyclicOrder(a, n, d) ? (o = u, s = c) : (i = u, a = d, r = c);
324
+ }
325
+ }
326
+ return t.midpoint(i, o);
327
+ }
328
+ static inverseChromaticAdaptation(t) {
329
+ let n = Math.abs(t), r = Math.max(0, 27.13 * n / (400 - n));
330
+ return e(t) * r ** (1 / .42);
331
+ }
332
+ static findResultByJ(e, n, r) {
333
+ let i = Math.sqrt(r) * 11, a = D.DEFAULT, s = 1 / (1.64 - .29 ** a.n) ** .73, c = .25 * (Math.cos(e + 2) + 3.8) * (5e4 / 13) * a.nc * a.ncb, l = Math.sin(e), u = Math.cos(e);
334
+ for (let e = 0; e < 5; e++) {
335
+ let f = i / 100, p = ((n === 0 || i === 0 ? 0 : n / Math.sqrt(f)) * s) ** (1 / .9), m = a.aw * f ** (1 / a.c / a.z) / a.nbb, h = 23 * (m + .305) * p / (23 * c + 11 * p * u + 108 * p * l), g = h * u, _ = h * l, v = (460 * m + 451 * g + 288 * _) / 1403, y = (460 * m - 891 * g - 261 * _) / 1403, b = (460 * m - 220 * g - 6300 * _) / 1403, x = o([
336
+ t.inverseChromaticAdaptation(v),
337
+ t.inverseChromaticAdaptation(y),
338
+ t.inverseChromaticAdaptation(b)
339
+ ], t.LINRGB_FROM_SCALED_DISCOUNT);
340
+ if (x[0] < 0 || x[1] < 0 || x[2] < 0) return 0;
341
+ let S = t.Y_FROM_LINRGB[0], C = t.Y_FROM_LINRGB[1], w = t.Y_FROM_LINRGB[2], T = S * x[0] + C * x[1] + w * x[2];
342
+ if (T <= 0) return 0;
343
+ if (e === 4 || Math.abs(T - r) < .002) return x[0] > 100.01 || x[1] > 100.01 || x[2] > 100.01 ? 0 : d(x);
344
+ i -= (T - r) * i / (2 * T);
345
+ }
346
+ return 0;
347
+ }
348
+ static solveToInt(e, n, r) {
349
+ if (n < 1e-4 || r < 1e-4 || r > 99.9999) return v(r);
350
+ e = a(e);
351
+ let i = e / 180 * Math.PI, o = b(r), s = t.findResultByJ(i, n, o);
352
+ return s === 0 ? d(t.bisectToLimit(o, i)) : s;
353
+ }
354
+ static solveToCam(e, n, r) {
355
+ return O.fromInt(t.solveToInt(e, n, r));
356
+ }
357
+ };
358
+ k.SCALED_DISCOUNT_FROM_LINRGB = [
359
+ [
360
+ .001200833568784504,
361
+ .002389694492170889,
362
+ .0002795742885861124
363
+ ],
364
+ [
365
+ .0005891086651375999,
366
+ .0029785502573438758,
367
+ .0003270666104008398
368
+ ],
369
+ [
370
+ .00010146692491640572,
371
+ .0005364214359186694,
372
+ .0032979401770712076
373
+ ]
374
+ ], k.LINRGB_FROM_SCALED_DISCOUNT = [
375
+ [
376
+ 1373.2198709594231,
377
+ -1100.4251190754821,
378
+ -7.278681089101213
379
+ ],
380
+ [
381
+ -271.815969077903,
382
+ 559.6580465940733,
383
+ -32.46047482791194
384
+ ],
385
+ [
386
+ 1.9622899599665666,
387
+ -57.173814538844006,
388
+ 308.7233197812385
389
+ ]
390
+ ], k.Y_FROM_LINRGB = [
391
+ .2126,
392
+ .7152,
393
+ .0722
394
+ ], k.CRITICAL_PLANES = [
395
+ .015176349177441876,
396
+ .045529047532325624,
397
+ .07588174588720938,
398
+ .10623444424209313,
399
+ .13658714259697685,
400
+ .16693984095186062,
401
+ .19729253930674434,
402
+ .2276452376616281,
403
+ .2579979360165119,
404
+ .28835063437139563,
405
+ .3188300904430532,
406
+ .350925934958123,
407
+ .3848314933096426,
408
+ .42057480301049466,
409
+ .458183274052838,
410
+ .4976837250274023,
411
+ .5391024159806381,
412
+ .5824650784040898,
413
+ .6277969426914107,
414
+ .6751227633498623,
415
+ .7244668422128921,
416
+ .775853049866786,
417
+ .829304845476233,
418
+ .8848452951698498,
419
+ .942497089126609,
420
+ 1.0022825574869039,
421
+ 1.0642236851973577,
422
+ 1.1283421258858297,
423
+ 1.1946592148522128,
424
+ 1.2631959812511864,
425
+ 1.3339731595349034,
426
+ 1.407011200216447,
427
+ 1.4823302800086415,
428
+ 1.5599503113873272,
429
+ 1.6398909516233677,
430
+ 1.7221716113234105,
431
+ 1.8068114625156377,
432
+ 1.8938294463134073,
433
+ 1.9832442801866852,
434
+ 2.075074464868551,
435
+ 2.1693382909216234,
436
+ 2.2660538449872063,
437
+ 2.36523901573795,
438
+ 2.4669114995532007,
439
+ 2.5710888059345764,
440
+ 2.6777882626779785,
441
+ 2.7870270208169257,
442
+ 2.898822059350997,
443
+ 3.0131901897720907,
444
+ 3.1301480604002863,
445
+ 3.2497121605402226,
446
+ 3.3718988244681087,
447
+ 3.4967242352587946,
448
+ 3.624204428461639,
449
+ 3.754355295633311,
450
+ 3.887192587735158,
451
+ 4.022731918402185,
452
+ 4.160988767090289,
453
+ 4.301978482107941,
454
+ 4.445716283538092,
455
+ 4.592217266055746,
456
+ 4.741496401646282,
457
+ 4.893568542229298,
458
+ 5.048448422192488,
459
+ 5.20615066083972,
460
+ 5.3666897647573375,
461
+ 5.5300801301023865,
462
+ 5.696336044816294,
463
+ 5.865471690767354,
464
+ 6.037501145825082,
465
+ 6.212438385869475,
466
+ 6.390297286737924,
467
+ 6.571091626112461,
468
+ 6.7548350853498045,
469
+ 6.941541251256611,
470
+ 7.131223617812143,
471
+ 7.323895587840543,
472
+ 7.5195704746346665,
473
+ 7.7182615035334345,
474
+ 7.919981813454504,
475
+ 8.124744458384042,
476
+ 8.332562408825165,
477
+ 8.543448553206703,
478
+ 8.757415699253682,
479
+ 8.974476575321063,
480
+ 9.194643831691977,
481
+ 9.417930041841839,
482
+ 9.644347703669503,
483
+ 9.873909240696694,
484
+ 10.106627003236781,
485
+ 10.342513269534024,
486
+ 10.58158024687427,
487
+ 10.8238400726681,
488
+ 11.069304815507364,
489
+ 11.317986476196008,
490
+ 11.569896988756009,
491
+ 11.825048221409341,
492
+ 12.083451977536606,
493
+ 12.345119996613247,
494
+ 12.610063955123938,
495
+ 12.878295467455942,
496
+ 13.149826086772048,
497
+ 13.42466730586372,
498
+ 13.702830557985108,
499
+ 13.984327217668513,
500
+ 14.269168601521828,
501
+ 14.55736596900856,
502
+ 14.848930523210871,
503
+ 15.143873411576273,
504
+ 15.44220572664832,
505
+ 15.743938506781891,
506
+ 16.04908273684337,
507
+ 16.35764934889634,
508
+ 16.66964922287304,
509
+ 16.985093187232053,
510
+ 17.30399201960269,
511
+ 17.62635644741625,
512
+ 17.95219714852476,
513
+ 18.281524751807332,
514
+ 18.614349837764564,
515
+ 18.95068293910138,
516
+ 19.290534541298456,
517
+ 19.633915083172692,
518
+ 19.98083495742689,
519
+ 20.331304511189067,
520
+ 20.685334046541502,
521
+ 21.042933821039977,
522
+ 21.404114048223256,
523
+ 21.76888489811322,
524
+ 22.137256497705877,
525
+ 22.50923893145328,
526
+ 22.884842241736916,
527
+ 23.264076429332462,
528
+ 23.6469514538663,
529
+ 24.033477234264016,
530
+ 24.42366364919083,
531
+ 24.817520537484558,
532
+ 25.21505769858089,
533
+ 25.61628489293138,
534
+ 26.021211842414342,
535
+ 26.429848230738664,
536
+ 26.842203703840827,
537
+ 27.258287870275353,
538
+ 27.678110301598522,
539
+ 28.10168053274597,
540
+ 28.529008062403893,
541
+ 28.96010235337422,
542
+ 29.39497283293396,
543
+ 29.83362889318845,
544
+ 30.276079891419332,
545
+ 30.722335150426627,
546
+ 31.172403958865512,
547
+ 31.62629557157785,
548
+ 32.08401920991837,
549
+ 32.54558406207592,
550
+ 33.010999283389665,
551
+ 33.4802739966603,
552
+ 33.953417292456834,
553
+ 34.430438229418264,
554
+ 34.911345834551085,
555
+ 35.39614910352207,
556
+ 35.88485700094671,
557
+ 36.37747846067349,
558
+ 36.87402238606382,
559
+ 37.37449765026789,
560
+ 37.87891309649659,
561
+ 38.38727753828926,
562
+ 38.89959975977785,
563
+ 39.41588851594697,
564
+ 39.93615253289054,
565
+ 40.460400508064545,
566
+ 40.98864111053629,
567
+ 41.520882981230194,
568
+ 42.05713473317016,
569
+ 42.597404951718396,
570
+ 43.141702194811224,
571
+ 43.6900349931913,
572
+ 44.24241185063697,
573
+ 44.798841244188324,
574
+ 45.35933162437017,
575
+ 45.92389141541209,
576
+ 46.49252901546552,
577
+ 47.065252796817916,
578
+ 47.64207110610409,
579
+ 48.22299226451468,
580
+ 48.808024568002054,
581
+ 49.3971762874833,
582
+ 49.9904556690408,
583
+ 50.587870934119984,
584
+ 51.189430279724725,
585
+ 51.79514187861014,
586
+ 52.40501387947288,
587
+ 53.0190544071392,
588
+ 53.637271562750364,
589
+ 54.259673423945976,
590
+ 54.88626804504493,
591
+ 55.517063457223934,
592
+ 56.15206766869424,
593
+ 56.79128866487574,
594
+ 57.43473440856916,
595
+ 58.08241284012621,
596
+ 58.734331877617365,
597
+ 59.39049941699807,
598
+ 60.05092333227251,
599
+ 60.715611475655585,
600
+ 61.38457167773311,
601
+ 62.057811747619894,
602
+ 62.7353394731159,
603
+ 63.417162620860914,
604
+ 64.10328893648692,
605
+ 64.79372614476921,
606
+ 65.48848194977529,
607
+ 66.18756403501224,
608
+ 66.89098006357258,
609
+ 67.59873767827808,
610
+ 68.31084450182222,
611
+ 69.02730813691093,
612
+ 69.74813616640164,
613
+ 70.47333615344107,
614
+ 71.20291564160104,
615
+ 71.93688215501312,
616
+ 72.67524319850172,
617
+ 73.41800625771542,
618
+ 74.16517879925733,
619
+ 74.9167682708136,
620
+ 75.67278210128072,
621
+ 76.43322770089146,
622
+ 77.1981124613393,
623
+ 77.96744375590167,
624
+ 78.74122893956174,
625
+ 79.51947534912904,
626
+ 80.30219030335869,
627
+ 81.08938110306934,
628
+ 81.88105503125999,
629
+ 82.67721935322541,
630
+ 83.4778813166706,
631
+ 84.28304815182372,
632
+ 85.09272707154808,
633
+ 85.90692527145302,
634
+ 86.72564993000343,
635
+ 87.54890820862819,
636
+ 88.3767072518277,
637
+ 89.2090541872801,
638
+ 90.04595612594655,
639
+ 90.88742016217518,
640
+ 91.73345337380438,
641
+ 92.58406282226491,
642
+ 93.43925555268066,
643
+ 94.29903859396902,
644
+ 95.16341895893969,
645
+ 96.03240364439274,
646
+ 96.9059996312159,
647
+ 97.78421388448044,
648
+ 98.6670533535366,
649
+ 99.55452497210776
650
+ ];
651
+ //#endregion
652
+ //#region node_modules/.pnpm/@material+material-color-utilities@0.4.0/node_modules/@material/material-color-utilities/hct/hct.js
653
+ var A = class e {
654
+ static from(t, n, r) {
655
+ return new e(k.solveToInt(t, n, r));
656
+ }
657
+ static fromInt(t) {
658
+ return new e(t);
659
+ }
660
+ toInt() {
661
+ return this.argb;
662
+ }
663
+ get hue() {
664
+ return this.internalHue;
665
+ }
666
+ set hue(e) {
667
+ this.setInternalState(k.solveToInt(e, this.internalChroma, this.internalTone));
668
+ }
669
+ get chroma() {
670
+ return this.internalChroma;
671
+ }
672
+ set chroma(e) {
673
+ this.setInternalState(k.solveToInt(this.internalHue, e, this.internalTone));
674
+ }
675
+ get tone() {
676
+ return this.internalTone;
677
+ }
678
+ set tone(e) {
679
+ this.setInternalState(k.solveToInt(this.internalHue, this.internalChroma, e));
680
+ }
681
+ setValue(e, t) {
682
+ this[e] = t;
683
+ }
684
+ toString() {
685
+ return `HCT(${this.hue.toFixed(0)}, ${this.chroma.toFixed(0)}, ${this.tone.toFixed(0)})`;
686
+ }
687
+ static isBlue(e) {
688
+ return e >= 250 && e < 270;
689
+ }
690
+ static isYellow(e) {
691
+ return e >= 105 && e < 125;
692
+ }
693
+ static isCyan(e) {
694
+ return e >= 170 && e < 207;
695
+ }
696
+ constructor(e) {
697
+ this.argb = e;
698
+ let t = O.fromInt(e);
699
+ this.internalHue = t.hue, this.internalChroma = t.chroma, this.internalTone = y(e), this.argb = e;
700
+ }
701
+ setInternalState(e) {
702
+ let t = O.fromInt(e);
703
+ this.internalHue = t.hue, this.internalChroma = t.chroma, this.internalTone = y(e), this.argb = e;
704
+ }
705
+ inViewingConditions(t) {
706
+ let n = O.fromInt(this.toInt()).xyzInViewingConditions(t), r = O.fromXyzInViewingConditions(n[0], n[1], n[2], D.make());
707
+ return e.from(r.hue, r.chroma, x(n[1]));
708
+ }
709
+ }, j = class e {
710
+ static ratioOfTones(t, n) {
711
+ return t = r(0, 100, t), n = r(0, 100, n), e.ratioOfYs(b(t), b(n));
712
+ }
713
+ static ratioOfYs(e, t) {
714
+ let n = e > t ? e : t, r = n === t ? e : t;
715
+ return (n + 5) / (r + 5);
716
+ }
717
+ static lighter(t, n) {
718
+ if (t < 0 || t > 100) return -1;
719
+ let r = b(t), i = n * (r + 5) - 5, a = e.ratioOfYs(i, r), o = Math.abs(a - n);
720
+ if (a < n && o > .04) return -1;
721
+ let s = x(i) + .4;
722
+ return s < 0 || s > 100 ? -1 : s;
723
+ }
724
+ static darker(t, n) {
725
+ if (t < 0 || t > 100) return -1;
726
+ let r = b(t), i = (r + 5) / n - 5, a = e.ratioOfYs(r, i), o = Math.abs(a - n);
727
+ if (a < n && o > .04) return -1;
728
+ let s = x(i) - .4;
729
+ return s < 0 || s > 100 ? -1 : s;
730
+ }
731
+ static lighterUnsafe(t, n) {
732
+ let r = e.lighter(t, n);
733
+ return r < 0 ? 100 : r;
734
+ }
735
+ static darkerUnsafe(t, n) {
736
+ let r = e.darker(t, n);
737
+ return r < 0 ? 0 : r;
738
+ }
739
+ }, M = class e {
740
+ static isDisliked(e) {
741
+ let t = Math.round(e.hue) >= 90 && Math.round(e.hue) <= 111, n = Math.round(e.chroma) > 16, r = Math.round(e.tone) < 65;
742
+ return t && n && r;
743
+ }
744
+ static fixIfDisliked(t) {
745
+ return e.isDisliked(t) ? A.from(t.hue, t.chroma, 70) : t;
746
+ }
747
+ };
748
+ //#endregion
749
+ //#region node_modules/.pnpm/@material+material-color-utilities@0.4.0/node_modules/@material/material-color-utilities/dynamiccolor/dynamic_color.js
750
+ function N(e, t, n) {
751
+ if (e.name !== n.name) throw Error(`Attempting to extend color ${e.name} with color ${n.name} of different name for spec version ${t}.`);
752
+ if (e.isBackground !== n.isBackground) throw Error(`Attempting to extend color ${e.name} as a ${e.isBackground ? "background" : "foreground"} with color ${n.name} as a ${n.isBackground ? "background" : "foreground"} for spec version ${t}.`);
753
+ }
754
+ function P(e, t, n) {
755
+ return N(e, t, n), F.fromPalette({
756
+ name: e.name,
757
+ palette: (r) => r.specVersion === t ? n.palette(r) : e.palette(r),
758
+ tone: (r) => r.specVersion === t ? n.tone(r) : e.tone(r),
759
+ isBackground: e.isBackground,
760
+ chromaMultiplier: (r) => {
761
+ let i = r.specVersion === t ? n.chromaMultiplier : e.chromaMultiplier;
762
+ return i === void 0 ? 1 : i(r);
763
+ },
764
+ background: (r) => {
765
+ let i = r.specVersion === t ? n.background : e.background;
766
+ return i === void 0 ? void 0 : i(r);
767
+ },
768
+ secondBackground: (r) => {
769
+ let i = r.specVersion === t ? n.secondBackground : e.secondBackground;
770
+ return i === void 0 ? void 0 : i(r);
771
+ },
772
+ contrastCurve: (r) => {
773
+ let i = r.specVersion === t ? n.contrastCurve : e.contrastCurve;
774
+ return i === void 0 ? void 0 : i(r);
775
+ },
776
+ toneDeltaPair: (r) => {
777
+ let i = r.specVersion === t ? n.toneDeltaPair : e.toneDeltaPair;
778
+ return i === void 0 ? void 0 : i(r);
779
+ }
780
+ });
781
+ }
782
+ var F = class e {
783
+ static fromPalette(t) {
784
+ return new e(t.name ?? "", t.palette, t.tone ?? e.getInitialToneFromBackground(t.background), t.isBackground ?? !1, t.chromaMultiplier, t.background, t.secondBackground, t.contrastCurve, t.toneDeltaPair);
785
+ }
786
+ static getInitialToneFromBackground(e) {
787
+ return e === void 0 ? (e) => 50 : (t) => e(t) ? e(t).getTone(t) : 50;
788
+ }
789
+ constructor(e, t, n, r, i, a, o, s, c) {
790
+ if (this.name = e, this.palette = t, this.tone = n, this.isBackground = r, this.chromaMultiplier = i, this.background = a, this.secondBackground = o, this.contrastCurve = s, this.toneDeltaPair = c, this.hctCache = /* @__PURE__ */ new Map(), !a && o) throw Error(`Color ${e} has secondBackgrounddefined, but background is not defined.`);
791
+ if (!a && s) throw Error(`Color ${e} has contrastCurvedefined, but background is not defined.`);
792
+ if (a && !s) throw Error(`Color ${e} has backgrounddefined, but contrastCurve is not defined.`);
793
+ }
794
+ clone() {
795
+ return e.fromPalette({
796
+ name: this.name,
797
+ palette: this.palette,
798
+ tone: this.tone,
799
+ isBackground: this.isBackground,
800
+ chromaMultiplier: this.chromaMultiplier,
801
+ background: this.background,
802
+ secondBackground: this.secondBackground,
803
+ contrastCurve: this.contrastCurve,
804
+ toneDeltaPair: this.toneDeltaPair
805
+ });
806
+ }
807
+ clearCache() {
808
+ this.hctCache.clear();
809
+ }
810
+ getArgb(e) {
811
+ return this.getHct(e).toInt();
812
+ }
813
+ getHct(e) {
814
+ let t = this.hctCache.get(e);
815
+ if (t != null) return t;
816
+ let n = z(e.specVersion).getHct(e, this);
817
+ return this.hctCache.size > 4 && this.hctCache.clear(), this.hctCache.set(e, n), n;
818
+ }
819
+ getTone(e) {
820
+ return z(e.specVersion).getTone(e, this);
821
+ }
822
+ static foregroundTone(t, n) {
823
+ let r = j.lighterUnsafe(t, n), i = j.darkerUnsafe(t, n), a = j.ratioOfTones(r, t), o = j.ratioOfTones(i, t);
824
+ if (e.tonePrefersLightForeground(t)) {
825
+ let e = Math.abs(a - o) < .1 && a < n && o < n;
826
+ return a >= n || a >= o || e ? r : i;
827
+ }
828
+ return o >= n || o >= a ? i : r;
829
+ }
830
+ static tonePrefersLightForeground(e) {
831
+ return Math.round(e) < 60;
832
+ }
833
+ static toneAllowsLightForeground(e) {
834
+ return Math.round(e) <= 49;
835
+ }
836
+ static enableLightForeground(t) {
837
+ return e.tonePrefersLightForeground(t) && !e.toneAllowsLightForeground(t) ? 49 : t;
838
+ }
839
+ }, I = class {
840
+ getHct(e, t) {
841
+ let n = t.getTone(e);
842
+ return t.palette(e).getHct(n);
843
+ }
844
+ getTone(e, t) {
845
+ let n = e.contrastLevel < 0, i = t.toneDeltaPair ? t.toneDeltaPair(e) : void 0;
846
+ if (i) {
847
+ let a = i.roleA, o = i.roleB, s = i.delta, c = i.polarity, l = i.stayTogether, u = c === "nearer" || c === "lighter" && !e.isDark || c === "darker" && e.isDark, d = u ? a : o, f = u ? o : a, p = t.name === d.name, m = e.isDark ? 1 : -1, h = d.tone(e), g = f.tone(e);
848
+ if (t.background && d.contrastCurve && f.contrastCurve) {
849
+ let r = t.background(e), i = d.contrastCurve(e), a = f.contrastCurve(e);
850
+ if (r && i && a) {
851
+ let t = r.getTone(e), o = i.get(e.contrastLevel), s = a.get(e.contrastLevel);
852
+ j.ratioOfTones(t, h) < o && (h = F.foregroundTone(t, o)), j.ratioOfTones(t, g) < s && (g = F.foregroundTone(t, s)), n && (h = F.foregroundTone(t, o), g = F.foregroundTone(t, s));
853
+ }
854
+ }
855
+ return (g - h) * m < s && (g = r(0, 100, h + s * m), (g - h) * m >= s || (h = r(0, 100, g - s * m))), 50 <= h && h < 60 ? m > 0 ? (h = 60, g = Math.max(g, h + s * m)) : (h = 49, g = Math.min(g, h + s * m)) : 50 <= g && g < 60 && (l ? m > 0 ? (h = 60, g = Math.max(g, h + s * m)) : (h = 49, g = Math.min(g, h + s * m)) : g = m > 0 ? 60 : 49), p ? h : g;
856
+ }
857
+ {
858
+ let r = t.tone(e);
859
+ if (t.background == null || t.background(e) === void 0 || t.contrastCurve == null || t.contrastCurve(e) === void 0) return r;
860
+ let i = t.background(e).getTone(e), a = t.contrastCurve(e).get(e.contrastLevel);
861
+ if (j.ratioOfTones(i, r) >= a || (r = F.foregroundTone(i, a)), n && (r = F.foregroundTone(i, a)), t.isBackground && 50 <= r && r < 60 && (r = j.ratioOfTones(49, i) >= a ? 49 : 60), t.secondBackground == null || t.secondBackground(e) === void 0) return r;
862
+ let [o, s] = [t.background, t.secondBackground], [c, l] = [o(e).getTone(e), s(e).getTone(e)], [u, d] = [Math.max(c, l), Math.min(c, l)];
863
+ if (j.ratioOfTones(u, r) >= a && j.ratioOfTones(d, r) >= a) return r;
864
+ let f = j.lighter(u, a), p = j.darker(d, a), m = [];
865
+ return f !== -1 && m.push(f), p !== -1 && m.push(p), F.tonePrefersLightForeground(c) || F.tonePrefersLightForeground(l) ? f < 0 ? 100 : f : m.length === 1 ? m[0] : p < 0 ? 0 : p;
866
+ }
867
+ }
868
+ }, L = class {
869
+ getHct(e, t) {
870
+ let n = t.palette(e), r = t.getTone(e), i = n.hue, a = n.chroma * (t.chromaMultiplier ? t.chromaMultiplier(e) : 1);
871
+ return A.from(i, a, r);
872
+ }
873
+ getTone(e, t) {
874
+ let n = t.toneDeltaPair ? t.toneDeltaPair(e) : void 0;
875
+ if (n) {
876
+ let i = n.roleA, a = n.roleB, o = n.polarity, s = n.constraint, c = o === "darker" || o === "relative_lighter" && e.isDark || o === "relative_darker" && !e.isDark ? -n.delta : n.delta, l = t.name === i.name, u = l ? i : a, d = l ? a : i, f = u.tone(e), p = d.getTone(e), m = c * (l ? 1 : -1);
877
+ if (s === "exact" ? f = r(0, 100, p + m) : s === "nearer" ? f = m > 0 ? r(0, 100, r(p, p + m, f)) : r(0, 100, r(p + m, p, f)) : s === "farther" && (f = m > 0 ? r(p + m, 100, f) : r(0, p + m, f)), t.background && t.contrastCurve) {
878
+ let n = t.background(e), r = t.contrastCurve(e);
879
+ if (n && r) {
880
+ let t = n.getTone(e), i = r.get(e.contrastLevel);
881
+ f = j.ratioOfTones(t, f) >= i && e.contrastLevel >= 0 ? f : F.foregroundTone(t, i);
882
+ }
883
+ }
884
+ return t.isBackground && !t.name.endsWith("_fixed_dim") && (f = f >= 57 ? r(65, 100, f) : r(0, 49, f)), f;
885
+ }
886
+ {
887
+ let n = t.tone(e);
888
+ if (t.background == null || t.background(e) === void 0 || t.contrastCurve == null || t.contrastCurve(e) === void 0) return n;
889
+ let i = t.background(e).getTone(e), a = t.contrastCurve(e).get(e.contrastLevel);
890
+ if (n = j.ratioOfTones(i, n) >= a && e.contrastLevel >= 0 ? n : F.foregroundTone(i, a), t.isBackground && !t.name.endsWith("_fixed_dim") && (n = n >= 57 ? r(65, 100, n) : r(0, 49, n)), t.secondBackground == null || t.secondBackground(e) === void 0) return n;
891
+ let [o, s] = [t.background, t.secondBackground], [c, l] = [o(e).getTone(e), s(e).getTone(e)], [u, d] = [Math.max(c, l), Math.min(c, l)];
892
+ if (j.ratioOfTones(u, n) >= a && j.ratioOfTones(d, n) >= a) return n;
893
+ let f = j.lighter(u, a), p = j.darker(d, a), m = [];
894
+ return f !== -1 && m.push(f), p !== -1 && m.push(p), F.tonePrefersLightForeground(c) || F.tonePrefersLightForeground(l) ? f < 0 ? 100 : f : m.length === 1 ? m[0] : p < 0 ? 0 : p;
895
+ }
896
+ }
897
+ }, R = new I(), ee = new L();
898
+ function z(e) {
899
+ return e === "2025" ? ee : R;
900
+ }
901
+ //#endregion
902
+ //#region node_modules/.pnpm/@material+material-color-utilities@0.4.0/node_modules/@material/material-color-utilities/palettes/tonal_palette.js
903
+ var B = class e {
904
+ static fromInt(t) {
905
+ let n = A.fromInt(t);
906
+ return e.fromHct(n);
907
+ }
908
+ static fromHct(t) {
909
+ return new e(t.hue, t.chroma, t);
910
+ }
911
+ static fromHueAndChroma(t, n) {
912
+ let r = new te(t, n).create();
913
+ return new e(t, n, r);
914
+ }
915
+ constructor(e, t, n) {
916
+ this.hue = e, this.chroma = t, this.keyColor = n, this.cache = /* @__PURE__ */ new Map();
917
+ }
918
+ tone(e) {
919
+ let t = this.cache.get(e);
920
+ return t === void 0 && (t = e == 99 && A.isYellow(this.hue) ? this.averageArgb(this.tone(98), this.tone(100)) : A.from(this.hue, this.chroma, e).toInt(), this.cache.set(e, t)), t;
921
+ }
922
+ getHct(e) {
923
+ return A.fromInt(this.tone(e));
924
+ }
925
+ averageArgb(e, t) {
926
+ let n = e >>> 16 & 255, r = e >>> 8 & 255, i = e & 255, a = t >>> 16 & 255, o = t >>> 8 & 255, s = t & 255, c = Math.round((n + a) / 2), l = Math.round((r + o) / 2), u = Math.round((i + s) / 2);
927
+ return (255 << 24 | (c & 255) << 16 | (l & 255) << 8 | u & 255) >>> 0;
928
+ }
929
+ }, te = class {
930
+ constructor(e, t) {
931
+ this.hue = e, this.requestedChroma = t, this.chromaCache = /* @__PURE__ */ new Map(), this.maxChromaValue = 200;
932
+ }
933
+ create() {
934
+ let e = 0, t = 100;
935
+ for (; e < t;) {
936
+ let n = Math.floor((e + t) / 2), r = this.maxChroma(n) < this.maxChroma(n + 1);
937
+ if (this.maxChroma(n) >= this.requestedChroma - .01) {
938
+ if (Math.abs(e - 50) < Math.abs(t - 50)) t = n;
939
+ else {
940
+ if (e === n) return A.from(this.hue, this.requestedChroma, e);
941
+ e = n;
942
+ }
943
+ } else r ? e = n + 1 : t = n;
944
+ }
945
+ return A.from(this.hue, this.requestedChroma, e);
946
+ }
947
+ maxChroma(e) {
948
+ if (this.chromaCache.has(e)) return this.chromaCache.get(e);
949
+ let t = A.from(this.hue, this.maxChromaValue, e).chroma;
950
+ return this.chromaCache.set(e, t), t;
951
+ }
952
+ }, V = class e {
953
+ constructor(e) {
954
+ this.input = e, this.hctsByTempCache = [], this.hctsByHueCache = [], this.tempsByHctCache = /* @__PURE__ */ new Map(), this.inputRelativeTemperatureCache = -1, this.complementCache = null;
955
+ }
956
+ get hctsByTemp() {
957
+ if (this.hctsByTempCache.length > 0) return this.hctsByTempCache;
958
+ let e = this.hctsByHue.concat([this.input]), t = this.tempsByHct;
959
+ return e.sort((e, n) => t.get(e) - t.get(n)), this.hctsByTempCache = e, e;
960
+ }
961
+ get warmest() {
962
+ return this.hctsByTemp[this.hctsByTemp.length - 1];
963
+ }
964
+ get coldest() {
965
+ return this.hctsByTemp[0];
966
+ }
967
+ analogous(e = 5, t = 12) {
968
+ let n = Math.round(this.input.hue), r = this.hctsByHue[n], a = this.relativeTemperature(r), o = [r], s = 0;
969
+ for (let e = 0; e < 360; e++) {
970
+ let t = i(n + e), r = this.hctsByHue[t], o = this.relativeTemperature(r), c = Math.abs(o - a);
971
+ a = o, s += c;
972
+ }
973
+ let c = 1, l = s / t, u = 0;
974
+ for (a = this.relativeTemperature(r); o.length < t;) {
975
+ let e = i(n + c), r = this.hctsByHue[e], s = this.relativeTemperature(r), d = Math.abs(s - a);
976
+ u += d;
977
+ let f = o.length * l, p = u >= f, m = 1;
978
+ for (; p && o.length < t;) {
979
+ o.push(r);
980
+ let e = (o.length + m) * l;
981
+ p = u >= e, m++;
982
+ }
983
+ if (a = s, c++, c > 360) {
984
+ for (; o.length < t;) o.push(r);
985
+ break;
986
+ }
987
+ }
988
+ let d = [this.input], f = Math.floor((e - 1) / 2);
989
+ for (let e = 1; e < f + 1; e++) {
990
+ let t = 0 - e;
991
+ for (; t < 0;) t = o.length + t;
992
+ t >= o.length && (t %= o.length), d.splice(0, 0, o[t]);
993
+ }
994
+ let p = e - f - 1;
995
+ for (let e = 1; e < p + 1; e++) {
996
+ let t = e;
997
+ for (; t < 0;) t = o.length + t;
998
+ t >= o.length && (t %= o.length), d.push(o[t]);
999
+ }
1000
+ return d;
1001
+ }
1002
+ get complement() {
1003
+ if (this.complementCache != null) return this.complementCache;
1004
+ let t = this.coldest.hue, n = this.tempsByHct.get(this.coldest), r = this.warmest.hue, i = this.tempsByHct.get(this.warmest) - n, o = e.isBetween(this.input.hue, t, r), s = o ? r : t, c = o ? t : r, l = 1e3, u = this.hctsByHue[Math.round(this.input.hue)], d = 1 - this.inputRelativeTemperature;
1005
+ for (let t = 0; t <= 360; t += 1) {
1006
+ let r = a(s + 1 * t);
1007
+ if (!e.isBetween(r, s, c)) continue;
1008
+ let o = this.hctsByHue[Math.round(r)], f = (this.tempsByHct.get(o) - n) / i, p = Math.abs(d - f);
1009
+ p < l && (l = p, u = o);
1010
+ }
1011
+ return this.complementCache = u, this.complementCache;
1012
+ }
1013
+ relativeTemperature(e) {
1014
+ let t = this.tempsByHct.get(this.warmest) - this.tempsByHct.get(this.coldest), n = this.tempsByHct.get(e) - this.tempsByHct.get(this.coldest);
1015
+ return t === 0 ? .5 : n / t;
1016
+ }
1017
+ get inputRelativeTemperature() {
1018
+ return this.inputRelativeTemperatureCache >= 0 || (this.inputRelativeTemperatureCache = this.relativeTemperature(this.input)), this.inputRelativeTemperatureCache;
1019
+ }
1020
+ get tempsByHct() {
1021
+ if (this.tempsByHctCache.size > 0) return this.tempsByHctCache;
1022
+ let t = this.hctsByHue.concat([this.input]), n = /* @__PURE__ */ new Map();
1023
+ for (let r of t) n.set(r, e.rawTemperature(r));
1024
+ return this.tempsByHctCache = n, n;
1025
+ }
1026
+ get hctsByHue() {
1027
+ if (this.hctsByHueCache.length > 0) return this.hctsByHueCache;
1028
+ let e = [];
1029
+ for (let t = 0; t <= 360; t += 1) {
1030
+ let n = A.from(t, this.input.chroma, this.input.tone);
1031
+ e.push(n);
1032
+ }
1033
+ return this.hctsByHueCache = e, this.hctsByHueCache;
1034
+ }
1035
+ static isBetween(e, t, n) {
1036
+ return t < n ? t <= e && e <= n : t <= e || e <= n;
1037
+ }
1038
+ static rawTemperature(e) {
1039
+ let t = _(e.toInt()), n = a(Math.atan2(t[2], t[1]) * 180 / Math.PI);
1040
+ return -.5 + .02 * Math.sqrt(t[1] * t[1] + t[2] * t[2]) ** 1.07 * Math.cos(a(n - 50) * Math.PI / 180);
1041
+ }
1042
+ }, H = class {
1043
+ constructor(e, t, n, r) {
1044
+ this.low = e, this.normal = t, this.medium = n, this.high = r;
1045
+ }
1046
+ get(e) {
1047
+ return e <= -1 ? this.low : e < 0 ? t(this.low, this.normal, (e - -1) / 1) : e < .5 ? t(this.normal, this.medium, (e - 0) / .5) : e < 1 ? t(this.medium, this.high, (e - .5) / .5) : this.high;
1048
+ }
1049
+ }, U = class {
1050
+ constructor(e, t, n, r, i, a) {
1051
+ this.roleA = e, this.roleB = t, this.delta = n, this.polarity = r, this.stayTogether = i, this.constraint = a, this.constraint = a ?? "exact";
1052
+ }
1053
+ }, W;
1054
+ (function(e) {
1055
+ e[e.MONOCHROME = 0] = "MONOCHROME", e[e.NEUTRAL = 1] = "NEUTRAL", e[e.TONAL_SPOT = 2] = "TONAL_SPOT", e[e.VIBRANT = 3] = "VIBRANT", e[e.EXPRESSIVE = 4] = "EXPRESSIVE", e[e.FIDELITY = 5] = "FIDELITY", e[e.CONTENT = 6] = "CONTENT", e[e.RAINBOW = 7] = "RAINBOW", e[e.FRUIT_SALAD = 8] = "FRUIT_SALAD";
1056
+ })(W ||= {});
1057
+ //#endregion
1058
+ //#region node_modules/.pnpm/@material+material-color-utilities@0.4.0/node_modules/@material/material-color-utilities/dynamiccolor/color_spec_2021.js
1059
+ function G(e) {
1060
+ return e.variant === W.FIDELITY || e.variant === W.CONTENT;
1061
+ }
1062
+ function K(e) {
1063
+ return e.variant === W.MONOCHROME;
1064
+ }
1065
+ function ne(e, t, n, r) {
1066
+ let i = n, a = A.from(e, t, n);
1067
+ if (a.chroma < t) {
1068
+ let n = a.chroma;
1069
+ for (; a.chroma < t;) {
1070
+ i += r ? -1 : 1;
1071
+ let o = A.from(e, t, i);
1072
+ if (n > o.chroma || Math.abs(o.chroma - t) < .4) break;
1073
+ Math.abs(o.chroma - t) < Math.abs(a.chroma - t) && (a = o), n = Math.max(n, o.chroma);
1074
+ }
1075
+ }
1076
+ return i;
1077
+ }
1078
+ var re = class {
1079
+ primaryPaletteKeyColor() {
1080
+ return F.fromPalette({
1081
+ name: "primary_palette_key_color",
1082
+ palette: (e) => e.primaryPalette,
1083
+ tone: (e) => e.primaryPalette.keyColor.tone
1084
+ });
1085
+ }
1086
+ secondaryPaletteKeyColor() {
1087
+ return F.fromPalette({
1088
+ name: "secondary_palette_key_color",
1089
+ palette: (e) => e.secondaryPalette,
1090
+ tone: (e) => e.secondaryPalette.keyColor.tone
1091
+ });
1092
+ }
1093
+ tertiaryPaletteKeyColor() {
1094
+ return F.fromPalette({
1095
+ name: "tertiary_palette_key_color",
1096
+ palette: (e) => e.tertiaryPalette,
1097
+ tone: (e) => e.tertiaryPalette.keyColor.tone
1098
+ });
1099
+ }
1100
+ neutralPaletteKeyColor() {
1101
+ return F.fromPalette({
1102
+ name: "neutral_palette_key_color",
1103
+ palette: (e) => e.neutralPalette,
1104
+ tone: (e) => e.neutralPalette.keyColor.tone
1105
+ });
1106
+ }
1107
+ neutralVariantPaletteKeyColor() {
1108
+ return F.fromPalette({
1109
+ name: "neutral_variant_palette_key_color",
1110
+ palette: (e) => e.neutralVariantPalette,
1111
+ tone: (e) => e.neutralVariantPalette.keyColor.tone
1112
+ });
1113
+ }
1114
+ errorPaletteKeyColor() {
1115
+ return F.fromPalette({
1116
+ name: "error_palette_key_color",
1117
+ palette: (e) => e.errorPalette,
1118
+ tone: (e) => e.errorPalette.keyColor.tone
1119
+ });
1120
+ }
1121
+ background() {
1122
+ return F.fromPalette({
1123
+ name: "background",
1124
+ palette: (e) => e.neutralPalette,
1125
+ tone: (e) => e.isDark ? 6 : 98,
1126
+ isBackground: !0
1127
+ });
1128
+ }
1129
+ onBackground() {
1130
+ return F.fromPalette({
1131
+ name: "on_background",
1132
+ palette: (e) => e.neutralPalette,
1133
+ tone: (e) => e.isDark ? 90 : 10,
1134
+ background: (e) => this.background(),
1135
+ contrastCurve: (e) => new H(3, 3, 4.5, 7)
1136
+ });
1137
+ }
1138
+ surface() {
1139
+ return F.fromPalette({
1140
+ name: "surface",
1141
+ palette: (e) => e.neutralPalette,
1142
+ tone: (e) => e.isDark ? 6 : 98,
1143
+ isBackground: !0
1144
+ });
1145
+ }
1146
+ surfaceDim() {
1147
+ return F.fromPalette({
1148
+ name: "surface_dim",
1149
+ palette: (e) => e.neutralPalette,
1150
+ tone: (e) => e.isDark ? 6 : new H(87, 87, 80, 75).get(e.contrastLevel),
1151
+ isBackground: !0
1152
+ });
1153
+ }
1154
+ surfaceBright() {
1155
+ return F.fromPalette({
1156
+ name: "surface_bright",
1157
+ palette: (e) => e.neutralPalette,
1158
+ tone: (e) => e.isDark ? new H(24, 24, 29, 34).get(e.contrastLevel) : 98,
1159
+ isBackground: !0
1160
+ });
1161
+ }
1162
+ surfaceContainerLowest() {
1163
+ return F.fromPalette({
1164
+ name: "surface_container_lowest",
1165
+ palette: (e) => e.neutralPalette,
1166
+ tone: (e) => e.isDark ? new H(4, 4, 2, 0).get(e.contrastLevel) : 100,
1167
+ isBackground: !0
1168
+ });
1169
+ }
1170
+ surfaceContainerLow() {
1171
+ return F.fromPalette({
1172
+ name: "surface_container_low",
1173
+ palette: (e) => e.neutralPalette,
1174
+ tone: (e) => e.isDark ? new H(10, 10, 11, 12).get(e.contrastLevel) : new H(96, 96, 96, 95).get(e.contrastLevel),
1175
+ isBackground: !0
1176
+ });
1177
+ }
1178
+ surfaceContainer() {
1179
+ return F.fromPalette({
1180
+ name: "surface_container",
1181
+ palette: (e) => e.neutralPalette,
1182
+ tone: (e) => e.isDark ? new H(12, 12, 16, 20).get(e.contrastLevel) : new H(94, 94, 92, 90).get(e.contrastLevel),
1183
+ isBackground: !0
1184
+ });
1185
+ }
1186
+ surfaceContainerHigh() {
1187
+ return F.fromPalette({
1188
+ name: "surface_container_high",
1189
+ palette: (e) => e.neutralPalette,
1190
+ tone: (e) => e.isDark ? new H(17, 17, 21, 25).get(e.contrastLevel) : new H(92, 92, 88, 85).get(e.contrastLevel),
1191
+ isBackground: !0
1192
+ });
1193
+ }
1194
+ surfaceContainerHighest() {
1195
+ return F.fromPalette({
1196
+ name: "surface_container_highest",
1197
+ palette: (e) => e.neutralPalette,
1198
+ tone: (e) => e.isDark ? new H(22, 22, 26, 30).get(e.contrastLevel) : new H(90, 90, 84, 80).get(e.contrastLevel),
1199
+ isBackground: !0
1200
+ });
1201
+ }
1202
+ onSurface() {
1203
+ return F.fromPalette({
1204
+ name: "on_surface",
1205
+ palette: (e) => e.neutralPalette,
1206
+ tone: (e) => e.isDark ? 90 : 10,
1207
+ background: (e) => this.highestSurface(e),
1208
+ contrastCurve: (e) => new H(4.5, 7, 11, 21)
1209
+ });
1210
+ }
1211
+ surfaceVariant() {
1212
+ return F.fromPalette({
1213
+ name: "surface_variant",
1214
+ palette: (e) => e.neutralVariantPalette,
1215
+ tone: (e) => e.isDark ? 30 : 90,
1216
+ isBackground: !0
1217
+ });
1218
+ }
1219
+ onSurfaceVariant() {
1220
+ return F.fromPalette({
1221
+ name: "on_surface_variant",
1222
+ palette: (e) => e.neutralVariantPalette,
1223
+ tone: (e) => e.isDark ? 80 : 30,
1224
+ background: (e) => this.highestSurface(e),
1225
+ contrastCurve: (e) => new H(3, 4.5, 7, 11)
1226
+ });
1227
+ }
1228
+ inverseSurface() {
1229
+ return F.fromPalette({
1230
+ name: "inverse_surface",
1231
+ palette: (e) => e.neutralPalette,
1232
+ tone: (e) => e.isDark ? 90 : 20,
1233
+ isBackground: !0
1234
+ });
1235
+ }
1236
+ inverseOnSurface() {
1237
+ return F.fromPalette({
1238
+ name: "inverse_on_surface",
1239
+ palette: (e) => e.neutralPalette,
1240
+ tone: (e) => e.isDark ? 20 : 95,
1241
+ background: (e) => this.inverseSurface(),
1242
+ contrastCurve: (e) => new H(4.5, 7, 11, 21)
1243
+ });
1244
+ }
1245
+ outline() {
1246
+ return F.fromPalette({
1247
+ name: "outline",
1248
+ palette: (e) => e.neutralVariantPalette,
1249
+ tone: (e) => e.isDark ? 60 : 50,
1250
+ background: (e) => this.highestSurface(e),
1251
+ contrastCurve: (e) => new H(1.5, 3, 4.5, 7)
1252
+ });
1253
+ }
1254
+ outlineVariant() {
1255
+ return F.fromPalette({
1256
+ name: "outline_variant",
1257
+ palette: (e) => e.neutralVariantPalette,
1258
+ tone: (e) => e.isDark ? 30 : 80,
1259
+ background: (e) => this.highestSurface(e),
1260
+ contrastCurve: (e) => new H(1, 1, 3, 4.5)
1261
+ });
1262
+ }
1263
+ shadow() {
1264
+ return F.fromPalette({
1265
+ name: "shadow",
1266
+ palette: (e) => e.neutralPalette,
1267
+ tone: (e) => 0
1268
+ });
1269
+ }
1270
+ scrim() {
1271
+ return F.fromPalette({
1272
+ name: "scrim",
1273
+ palette: (e) => e.neutralPalette,
1274
+ tone: (e) => 0
1275
+ });
1276
+ }
1277
+ surfaceTint() {
1278
+ return F.fromPalette({
1279
+ name: "surface_tint",
1280
+ palette: (e) => e.primaryPalette,
1281
+ tone: (e) => e.isDark ? 80 : 40,
1282
+ isBackground: !0
1283
+ });
1284
+ }
1285
+ primary() {
1286
+ return F.fromPalette({
1287
+ name: "primary",
1288
+ palette: (e) => e.primaryPalette,
1289
+ tone: (e) => K(e) ? e.isDark ? 100 : 0 : e.isDark ? 80 : 40,
1290
+ isBackground: !0,
1291
+ background: (e) => this.highestSurface(e),
1292
+ contrastCurve: (e) => new H(3, 4.5, 7, 7),
1293
+ toneDeltaPair: (e) => new U(this.primaryContainer(), this.primary(), 10, "nearer", !1)
1294
+ });
1295
+ }
1296
+ primaryDim() {}
1297
+ onPrimary() {
1298
+ return F.fromPalette({
1299
+ name: "on_primary",
1300
+ palette: (e) => e.primaryPalette,
1301
+ tone: (e) => K(e) ? e.isDark ? 10 : 90 : e.isDark ? 20 : 100,
1302
+ background: (e) => this.primary(),
1303
+ contrastCurve: (e) => new H(4.5, 7, 11, 21)
1304
+ });
1305
+ }
1306
+ primaryContainer() {
1307
+ return F.fromPalette({
1308
+ name: "primary_container",
1309
+ palette: (e) => e.primaryPalette,
1310
+ tone: (e) => G(e) ? e.sourceColorHct.tone : K(e) ? e.isDark ? 85 : 25 : e.isDark ? 30 : 90,
1311
+ isBackground: !0,
1312
+ background: (e) => this.highestSurface(e),
1313
+ contrastCurve: (e) => new H(1, 1, 3, 4.5),
1314
+ toneDeltaPair: (e) => new U(this.primaryContainer(), this.primary(), 10, "nearer", !1)
1315
+ });
1316
+ }
1317
+ onPrimaryContainer() {
1318
+ return F.fromPalette({
1319
+ name: "on_primary_container",
1320
+ palette: (e) => e.primaryPalette,
1321
+ tone: (e) => G(e) ? F.foregroundTone(this.primaryContainer().tone(e), 4.5) : K(e) ? e.isDark ? 0 : 100 : e.isDark ? 90 : 30,
1322
+ background: (e) => this.primaryContainer(),
1323
+ contrastCurve: (e) => new H(3, 4.5, 7, 11)
1324
+ });
1325
+ }
1326
+ inversePrimary() {
1327
+ return F.fromPalette({
1328
+ name: "inverse_primary",
1329
+ palette: (e) => e.primaryPalette,
1330
+ tone: (e) => e.isDark ? 40 : 80,
1331
+ background: (e) => this.inverseSurface(),
1332
+ contrastCurve: (e) => new H(3, 4.5, 7, 7)
1333
+ });
1334
+ }
1335
+ secondary() {
1336
+ return F.fromPalette({
1337
+ name: "secondary",
1338
+ palette: (e) => e.secondaryPalette,
1339
+ tone: (e) => e.isDark ? 80 : 40,
1340
+ isBackground: !0,
1341
+ background: (e) => this.highestSurface(e),
1342
+ contrastCurve: (e) => new H(3, 4.5, 7, 7),
1343
+ toneDeltaPair: (e) => new U(this.secondaryContainer(), this.secondary(), 10, "nearer", !1)
1344
+ });
1345
+ }
1346
+ secondaryDim() {}
1347
+ onSecondary() {
1348
+ return F.fromPalette({
1349
+ name: "on_secondary",
1350
+ palette: (e) => e.secondaryPalette,
1351
+ tone: (e) => K(e) ? e.isDark ? 10 : 100 : e.isDark ? 20 : 100,
1352
+ background: (e) => this.secondary(),
1353
+ contrastCurve: (e) => new H(4.5, 7, 11, 21)
1354
+ });
1355
+ }
1356
+ secondaryContainer() {
1357
+ return F.fromPalette({
1358
+ name: "secondary_container",
1359
+ palette: (e) => e.secondaryPalette,
1360
+ tone: (e) => {
1361
+ let t = e.isDark ? 30 : 90;
1362
+ return K(e) ? e.isDark ? 30 : 85 : G(e) ? ne(e.secondaryPalette.hue, e.secondaryPalette.chroma, t, !e.isDark) : t;
1363
+ },
1364
+ isBackground: !0,
1365
+ background: (e) => this.highestSurface(e),
1366
+ contrastCurve: (e) => new H(1, 1, 3, 4.5),
1367
+ toneDeltaPair: (e) => new U(this.secondaryContainer(), this.secondary(), 10, "nearer", !1)
1368
+ });
1369
+ }
1370
+ onSecondaryContainer() {
1371
+ return F.fromPalette({
1372
+ name: "on_secondary_container",
1373
+ palette: (e) => e.secondaryPalette,
1374
+ tone: (e) => K(e) ? e.isDark ? 90 : 10 : G(e) ? F.foregroundTone(this.secondaryContainer().tone(e), 4.5) : e.isDark ? 90 : 30,
1375
+ background: (e) => this.secondaryContainer(),
1376
+ contrastCurve: (e) => new H(3, 4.5, 7, 11)
1377
+ });
1378
+ }
1379
+ tertiary() {
1380
+ return F.fromPalette({
1381
+ name: "tertiary",
1382
+ palette: (e) => e.tertiaryPalette,
1383
+ tone: (e) => K(e) ? e.isDark ? 90 : 25 : e.isDark ? 80 : 40,
1384
+ isBackground: !0,
1385
+ background: (e) => this.highestSurface(e),
1386
+ contrastCurve: (e) => new H(3, 4.5, 7, 7),
1387
+ toneDeltaPair: (e) => new U(this.tertiaryContainer(), this.tertiary(), 10, "nearer", !1)
1388
+ });
1389
+ }
1390
+ tertiaryDim() {}
1391
+ onTertiary() {
1392
+ return F.fromPalette({
1393
+ name: "on_tertiary",
1394
+ palette: (e) => e.tertiaryPalette,
1395
+ tone: (e) => K(e) ? e.isDark ? 10 : 90 : e.isDark ? 20 : 100,
1396
+ background: (e) => this.tertiary(),
1397
+ contrastCurve: (e) => new H(4.5, 7, 11, 21)
1398
+ });
1399
+ }
1400
+ tertiaryContainer() {
1401
+ return F.fromPalette({
1402
+ name: "tertiary_container",
1403
+ palette: (e) => e.tertiaryPalette,
1404
+ tone: (e) => {
1405
+ if (K(e)) return e.isDark ? 60 : 49;
1406
+ if (!G(e)) return e.isDark ? 30 : 90;
1407
+ let t = e.tertiaryPalette.getHct(e.sourceColorHct.tone);
1408
+ return M.fixIfDisliked(t).tone;
1409
+ },
1410
+ isBackground: !0,
1411
+ background: (e) => this.highestSurface(e),
1412
+ contrastCurve: (e) => new H(1, 1, 3, 4.5),
1413
+ toneDeltaPair: (e) => new U(this.tertiaryContainer(), this.tertiary(), 10, "nearer", !1)
1414
+ });
1415
+ }
1416
+ onTertiaryContainer() {
1417
+ return F.fromPalette({
1418
+ name: "on_tertiary_container",
1419
+ palette: (e) => e.tertiaryPalette,
1420
+ tone: (e) => K(e) ? e.isDark ? 0 : 100 : G(e) ? F.foregroundTone(this.tertiaryContainer().tone(e), 4.5) : e.isDark ? 90 : 30,
1421
+ background: (e) => this.tertiaryContainer(),
1422
+ contrastCurve: (e) => new H(3, 4.5, 7, 11)
1423
+ });
1424
+ }
1425
+ error() {
1426
+ return F.fromPalette({
1427
+ name: "error",
1428
+ palette: (e) => e.errorPalette,
1429
+ tone: (e) => e.isDark ? 80 : 40,
1430
+ isBackground: !0,
1431
+ background: (e) => this.highestSurface(e),
1432
+ contrastCurve: (e) => new H(3, 4.5, 7, 7),
1433
+ toneDeltaPair: (e) => new U(this.errorContainer(), this.error(), 10, "nearer", !1)
1434
+ });
1435
+ }
1436
+ errorDim() {}
1437
+ onError() {
1438
+ return F.fromPalette({
1439
+ name: "on_error",
1440
+ palette: (e) => e.errorPalette,
1441
+ tone: (e) => e.isDark ? 20 : 100,
1442
+ background: (e) => this.error(),
1443
+ contrastCurve: (e) => new H(4.5, 7, 11, 21)
1444
+ });
1445
+ }
1446
+ errorContainer() {
1447
+ return F.fromPalette({
1448
+ name: "error_container",
1449
+ palette: (e) => e.errorPalette,
1450
+ tone: (e) => e.isDark ? 30 : 90,
1451
+ isBackground: !0,
1452
+ background: (e) => this.highestSurface(e),
1453
+ contrastCurve: (e) => new H(1, 1, 3, 4.5),
1454
+ toneDeltaPair: (e) => new U(this.errorContainer(), this.error(), 10, "nearer", !1)
1455
+ });
1456
+ }
1457
+ onErrorContainer() {
1458
+ return F.fromPalette({
1459
+ name: "on_error_container",
1460
+ palette: (e) => e.errorPalette,
1461
+ tone: (e) => K(e) ? e.isDark ? 90 : 10 : e.isDark ? 90 : 30,
1462
+ background: (e) => this.errorContainer(),
1463
+ contrastCurve: (e) => new H(3, 4.5, 7, 11)
1464
+ });
1465
+ }
1466
+ primaryFixed() {
1467
+ return F.fromPalette({
1468
+ name: "primary_fixed",
1469
+ palette: (e) => e.primaryPalette,
1470
+ tone: (e) => K(e) ? 40 : 90,
1471
+ isBackground: !0,
1472
+ background: (e) => this.highestSurface(e),
1473
+ contrastCurve: (e) => new H(1, 1, 3, 4.5),
1474
+ toneDeltaPair: (e) => new U(this.primaryFixed(), this.primaryFixedDim(), 10, "lighter", !0)
1475
+ });
1476
+ }
1477
+ primaryFixedDim() {
1478
+ return F.fromPalette({
1479
+ name: "primary_fixed_dim",
1480
+ palette: (e) => e.primaryPalette,
1481
+ tone: (e) => K(e) ? 30 : 80,
1482
+ isBackground: !0,
1483
+ background: (e) => this.highestSurface(e),
1484
+ contrastCurve: (e) => new H(1, 1, 3, 4.5),
1485
+ toneDeltaPair: (e) => new U(this.primaryFixed(), this.primaryFixedDim(), 10, "lighter", !0)
1486
+ });
1487
+ }
1488
+ onPrimaryFixed() {
1489
+ return F.fromPalette({
1490
+ name: "on_primary_fixed",
1491
+ palette: (e) => e.primaryPalette,
1492
+ tone: (e) => K(e) ? 100 : 10,
1493
+ background: (e) => this.primaryFixedDim(),
1494
+ secondBackground: (e) => this.primaryFixed(),
1495
+ contrastCurve: (e) => new H(4.5, 7, 11, 21)
1496
+ });
1497
+ }
1498
+ onPrimaryFixedVariant() {
1499
+ return F.fromPalette({
1500
+ name: "on_primary_fixed_variant",
1501
+ palette: (e) => e.primaryPalette,
1502
+ tone: (e) => K(e) ? 90 : 30,
1503
+ background: (e) => this.primaryFixedDim(),
1504
+ secondBackground: (e) => this.primaryFixed(),
1505
+ contrastCurve: (e) => new H(3, 4.5, 7, 11)
1506
+ });
1507
+ }
1508
+ secondaryFixed() {
1509
+ return F.fromPalette({
1510
+ name: "secondary_fixed",
1511
+ palette: (e) => e.secondaryPalette,
1512
+ tone: (e) => K(e) ? 80 : 90,
1513
+ isBackground: !0,
1514
+ background: (e) => this.highestSurface(e),
1515
+ contrastCurve: (e) => new H(1, 1, 3, 4.5),
1516
+ toneDeltaPair: (e) => new U(this.secondaryFixed(), this.secondaryFixedDim(), 10, "lighter", !0)
1517
+ });
1518
+ }
1519
+ secondaryFixedDim() {
1520
+ return F.fromPalette({
1521
+ name: "secondary_fixed_dim",
1522
+ palette: (e) => e.secondaryPalette,
1523
+ tone: (e) => K(e) ? 70 : 80,
1524
+ isBackground: !0,
1525
+ background: (e) => this.highestSurface(e),
1526
+ contrastCurve: (e) => new H(1, 1, 3, 4.5),
1527
+ toneDeltaPair: (e) => new U(this.secondaryFixed(), this.secondaryFixedDim(), 10, "lighter", !0)
1528
+ });
1529
+ }
1530
+ onSecondaryFixed() {
1531
+ return F.fromPalette({
1532
+ name: "on_secondary_fixed",
1533
+ palette: (e) => e.secondaryPalette,
1534
+ tone: (e) => 10,
1535
+ background: (e) => this.secondaryFixedDim(),
1536
+ secondBackground: (e) => this.secondaryFixed(),
1537
+ contrastCurve: (e) => new H(4.5, 7, 11, 21)
1538
+ });
1539
+ }
1540
+ onSecondaryFixedVariant() {
1541
+ return F.fromPalette({
1542
+ name: "on_secondary_fixed_variant",
1543
+ palette: (e) => e.secondaryPalette,
1544
+ tone: (e) => K(e) ? 25 : 30,
1545
+ background: (e) => this.secondaryFixedDim(),
1546
+ secondBackground: (e) => this.secondaryFixed(),
1547
+ contrastCurve: (e) => new H(3, 4.5, 7, 11)
1548
+ });
1549
+ }
1550
+ tertiaryFixed() {
1551
+ return F.fromPalette({
1552
+ name: "tertiary_fixed",
1553
+ palette: (e) => e.tertiaryPalette,
1554
+ tone: (e) => K(e) ? 40 : 90,
1555
+ isBackground: !0,
1556
+ background: (e) => this.highestSurface(e),
1557
+ contrastCurve: (e) => new H(1, 1, 3, 4.5),
1558
+ toneDeltaPair: (e) => new U(this.tertiaryFixed(), this.tertiaryFixedDim(), 10, "lighter", !0)
1559
+ });
1560
+ }
1561
+ tertiaryFixedDim() {
1562
+ return F.fromPalette({
1563
+ name: "tertiary_fixed_dim",
1564
+ palette: (e) => e.tertiaryPalette,
1565
+ tone: (e) => K(e) ? 30 : 80,
1566
+ isBackground: !0,
1567
+ background: (e) => this.highestSurface(e),
1568
+ contrastCurve: (e) => new H(1, 1, 3, 4.5),
1569
+ toneDeltaPair: (e) => new U(this.tertiaryFixed(), this.tertiaryFixedDim(), 10, "lighter", !0)
1570
+ });
1571
+ }
1572
+ onTertiaryFixed() {
1573
+ return F.fromPalette({
1574
+ name: "on_tertiary_fixed",
1575
+ palette: (e) => e.tertiaryPalette,
1576
+ tone: (e) => K(e) ? 100 : 10,
1577
+ background: (e) => this.tertiaryFixedDim(),
1578
+ secondBackground: (e) => this.tertiaryFixed(),
1579
+ contrastCurve: (e) => new H(4.5, 7, 11, 21)
1580
+ });
1581
+ }
1582
+ onTertiaryFixedVariant() {
1583
+ return F.fromPalette({
1584
+ name: "on_tertiary_fixed_variant",
1585
+ palette: (e) => e.tertiaryPalette,
1586
+ tone: (e) => K(e) ? 90 : 30,
1587
+ background: (e) => this.tertiaryFixedDim(),
1588
+ secondBackground: (e) => this.tertiaryFixed(),
1589
+ contrastCurve: (e) => new H(3, 4.5, 7, 11)
1590
+ });
1591
+ }
1592
+ highestSurface(e) {
1593
+ return e.isDark ? this.surfaceBright() : this.surfaceDim();
1594
+ }
1595
+ };
1596
+ //#endregion
1597
+ //#region node_modules/.pnpm/@material+material-color-utilities@0.4.0/node_modules/@material/material-color-utilities/dynamiccolor/color_spec_2025.js
1598
+ function q(e, t = 0, n = 100, i = 1) {
1599
+ return r(t, n, ie(e.hue, e.chroma * i, 100, !0));
1600
+ }
1601
+ function J(e, t = 0, n = 100) {
1602
+ return r(t, n, ie(e.hue, e.chroma, 0, !1));
1603
+ }
1604
+ function ie(e, t, n, r) {
1605
+ let i = n, a = A.from(e, t, i);
1606
+ for (; a.chroma < t && !(n < 0 || n > 100);) {
1607
+ n += r ? -1 : 1;
1608
+ let o = A.from(e, t, n);
1609
+ a.chroma < o.chroma && (a = o, i = n);
1610
+ }
1611
+ return i;
1612
+ }
1613
+ function Y(e) {
1614
+ return e === 1.5 ? new H(1.5, 1.5, 3, 5.5) : e === 3 ? new H(3, 3, 4.5, 7) : e === 4.5 ? new H(4.5, 4.5, 7, 11) : e === 6 ? new H(6, 6, 7, 11) : e === 7 ? new H(7, 7, 11, 21) : e === 9 ? new H(9, 9, 11, 21) : e === 11 ? new H(11, 11, 21, 21) : e === 21 ? new H(21, 21, 21, 21) : new H(e, e, 7, 21);
1615
+ }
1616
+ var ae = class extends re {
1617
+ surface() {
1618
+ let e = F.fromPalette({
1619
+ name: "surface",
1620
+ palette: (e) => e.neutralPalette,
1621
+ tone: (e) => (super.surface().tone(e), e.platform === "phone" ? e.isDark ? 4 : A.isYellow(e.neutralPalette.hue) ? 99 : e.variant === W.VIBRANT ? 97 : 98 : 0),
1622
+ isBackground: !0
1623
+ });
1624
+ return P(super.surface(), "2025", e);
1625
+ }
1626
+ surfaceDim() {
1627
+ let e = F.fromPalette({
1628
+ name: "surface_dim",
1629
+ palette: (e) => e.neutralPalette,
1630
+ tone: (e) => e.isDark ? 4 : A.isYellow(e.neutralPalette.hue) ? 90 : e.variant === W.VIBRANT ? 85 : 87,
1631
+ isBackground: !0,
1632
+ chromaMultiplier: (e) => {
1633
+ if (!e.isDark) {
1634
+ if (e.variant === W.NEUTRAL) return 2.5;
1635
+ if (e.variant === W.TONAL_SPOT) return 1.7;
1636
+ if (e.variant === W.EXPRESSIVE) return A.isYellow(e.neutralPalette.hue) ? 2.7 : 1.75;
1637
+ if (e.variant === W.VIBRANT) return 1.36;
1638
+ }
1639
+ return 1;
1640
+ }
1641
+ });
1642
+ return P(super.surfaceDim(), "2025", e);
1643
+ }
1644
+ surfaceBright() {
1645
+ let e = F.fromPalette({
1646
+ name: "surface_bright",
1647
+ palette: (e) => e.neutralPalette,
1648
+ tone: (e) => e.isDark ? 18 : A.isYellow(e.neutralPalette.hue) ? 99 : e.variant === W.VIBRANT ? 97 : 98,
1649
+ isBackground: !0,
1650
+ chromaMultiplier: (e) => {
1651
+ if (e.isDark) {
1652
+ if (e.variant === W.NEUTRAL) return 2.5;
1653
+ if (e.variant === W.TONAL_SPOT) return 1.7;
1654
+ if (e.variant === W.EXPRESSIVE) return A.isYellow(e.neutralPalette.hue) ? 2.7 : 1.75;
1655
+ if (e.variant === W.VIBRANT) return 1.36;
1656
+ }
1657
+ return 1;
1658
+ }
1659
+ });
1660
+ return P(super.surfaceBright(), "2025", e);
1661
+ }
1662
+ surfaceContainerLowest() {
1663
+ let e = F.fromPalette({
1664
+ name: "surface_container_lowest",
1665
+ palette: (e) => e.neutralPalette,
1666
+ tone: (e) => e.isDark ? 0 : 100,
1667
+ isBackground: !0
1668
+ });
1669
+ return P(super.surfaceContainerLowest(), "2025", e);
1670
+ }
1671
+ surfaceContainerLow() {
1672
+ let e = F.fromPalette({
1673
+ name: "surface_container_low",
1674
+ palette: (e) => e.neutralPalette,
1675
+ tone: (e) => e.platform === "phone" ? e.isDark ? 6 : A.isYellow(e.neutralPalette.hue) ? 98 : e.variant === W.VIBRANT ? 95 : 96 : 15,
1676
+ isBackground: !0,
1677
+ chromaMultiplier: (e) => {
1678
+ if (e.platform === "phone") {
1679
+ if (e.variant === W.NEUTRAL) return 1.3;
1680
+ if (e.variant === W.TONAL_SPOT) return 1.25;
1681
+ if (e.variant === W.EXPRESSIVE) return A.isYellow(e.neutralPalette.hue) ? 1.3 : 1.15;
1682
+ if (e.variant === W.VIBRANT) return 1.08;
1683
+ }
1684
+ return 1;
1685
+ }
1686
+ });
1687
+ return P(super.surfaceContainerLow(), "2025", e);
1688
+ }
1689
+ surfaceContainer() {
1690
+ let e = F.fromPalette({
1691
+ name: "surface_container",
1692
+ palette: (e) => e.neutralPalette,
1693
+ tone: (e) => e.platform === "phone" ? e.isDark ? 9 : A.isYellow(e.neutralPalette.hue) ? 96 : e.variant === W.VIBRANT ? 92 : 94 : 20,
1694
+ isBackground: !0,
1695
+ chromaMultiplier: (e) => {
1696
+ if (e.platform === "phone") {
1697
+ if (e.variant === W.NEUTRAL) return 1.6;
1698
+ if (e.variant === W.TONAL_SPOT) return 1.4;
1699
+ if (e.variant === W.EXPRESSIVE) return A.isYellow(e.neutralPalette.hue) ? 1.6 : 1.3;
1700
+ if (e.variant === W.VIBRANT) return 1.15;
1701
+ }
1702
+ return 1;
1703
+ }
1704
+ });
1705
+ return P(super.surfaceContainer(), "2025", e);
1706
+ }
1707
+ surfaceContainerHigh() {
1708
+ let e = F.fromPalette({
1709
+ name: "surface_container_high",
1710
+ palette: (e) => e.neutralPalette,
1711
+ tone: (e) => e.platform === "phone" ? e.isDark ? 12 : A.isYellow(e.neutralPalette.hue) ? 94 : e.variant === W.VIBRANT ? 90 : 92 : 25,
1712
+ isBackground: !0,
1713
+ chromaMultiplier: (e) => {
1714
+ if (e.platform === "phone") {
1715
+ if (e.variant === W.NEUTRAL) return 1.9;
1716
+ if (e.variant === W.TONAL_SPOT) return 1.5;
1717
+ if (e.variant === W.EXPRESSIVE) return A.isYellow(e.neutralPalette.hue) ? 1.95 : 1.45;
1718
+ if (e.variant === W.VIBRANT) return 1.22;
1719
+ }
1720
+ return 1;
1721
+ }
1722
+ });
1723
+ return P(super.surfaceContainerHigh(), "2025", e);
1724
+ }
1725
+ surfaceContainerHighest() {
1726
+ let e = F.fromPalette({
1727
+ name: "surface_container_highest",
1728
+ palette: (e) => e.neutralPalette,
1729
+ tone: (e) => e.isDark ? 15 : A.isYellow(e.neutralPalette.hue) ? 92 : e.variant === W.VIBRANT ? 88 : 90,
1730
+ isBackground: !0,
1731
+ chromaMultiplier: (e) => e.variant === W.NEUTRAL ? 2.2 : e.variant === W.TONAL_SPOT ? 1.7 : e.variant === W.EXPRESSIVE ? A.isYellow(e.neutralPalette.hue) ? 2.3 : 1.6 : e.variant === W.VIBRANT ? 1.29 : 1
1732
+ });
1733
+ return P(super.surfaceContainerHighest(), "2025", e);
1734
+ }
1735
+ onSurface() {
1736
+ let e = F.fromPalette({
1737
+ name: "on_surface",
1738
+ palette: (e) => e.neutralPalette,
1739
+ tone: (e) => e.variant === W.VIBRANT ? q(e.neutralPalette, 0, 100, 1.1) : F.getInitialToneFromBackground((e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh())(e),
1740
+ chromaMultiplier: (e) => {
1741
+ if (e.platform === "phone") {
1742
+ if (e.variant === W.NEUTRAL) return 2.2;
1743
+ if (e.variant === W.TONAL_SPOT) return 1.7;
1744
+ if (e.variant === W.EXPRESSIVE) return A.isYellow(e.neutralPalette.hue) ? e.isDark ? 3 : 2.3 : 1.6;
1745
+ }
1746
+ return 1;
1747
+ },
1748
+ background: (e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh(),
1749
+ contrastCurve: (e) => e.isDark && e.platform === "phone" ? Y(11) : Y(9)
1750
+ });
1751
+ return P(super.onSurface(), "2025", e);
1752
+ }
1753
+ onSurfaceVariant() {
1754
+ let e = F.fromPalette({
1755
+ name: "on_surface_variant",
1756
+ palette: (e) => e.neutralPalette,
1757
+ chromaMultiplier: (e) => {
1758
+ if (e.platform === "phone") {
1759
+ if (e.variant === W.NEUTRAL) return 2.2;
1760
+ if (e.variant === W.TONAL_SPOT) return 1.7;
1761
+ if (e.variant === W.EXPRESSIVE) return A.isYellow(e.neutralPalette.hue) ? e.isDark ? 3 : 2.3 : 1.6;
1762
+ }
1763
+ return 1;
1764
+ },
1765
+ background: (e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh(),
1766
+ contrastCurve: (e) => e.platform === "phone" ? e.isDark ? Y(6) : Y(4.5) : Y(7)
1767
+ });
1768
+ return P(super.onSurfaceVariant(), "2025", e);
1769
+ }
1770
+ outline() {
1771
+ let e = F.fromPalette({
1772
+ name: "outline",
1773
+ palette: (e) => e.neutralPalette,
1774
+ chromaMultiplier: (e) => {
1775
+ if (e.platform === "phone") {
1776
+ if (e.variant === W.NEUTRAL) return 2.2;
1777
+ if (e.variant === W.TONAL_SPOT) return 1.7;
1778
+ if (e.variant === W.EXPRESSIVE) return A.isYellow(e.neutralPalette.hue) ? e.isDark ? 3 : 2.3 : 1.6;
1779
+ }
1780
+ return 1;
1781
+ },
1782
+ background: (e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh(),
1783
+ contrastCurve: (e) => e.platform === "phone" ? Y(3) : Y(4.5)
1784
+ });
1785
+ return P(super.outline(), "2025", e);
1786
+ }
1787
+ outlineVariant() {
1788
+ let e = F.fromPalette({
1789
+ name: "outline_variant",
1790
+ palette: (e) => e.neutralPalette,
1791
+ chromaMultiplier: (e) => {
1792
+ if (e.platform === "phone") {
1793
+ if (e.variant === W.NEUTRAL) return 2.2;
1794
+ if (e.variant === W.TONAL_SPOT) return 1.7;
1795
+ if (e.variant === W.EXPRESSIVE) return A.isYellow(e.neutralPalette.hue) ? e.isDark ? 3 : 2.3 : 1.6;
1796
+ }
1797
+ return 1;
1798
+ },
1799
+ background: (e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh(),
1800
+ contrastCurve: (e) => e.platform === "phone" ? Y(1.5) : Y(3)
1801
+ });
1802
+ return P(super.outlineVariant(), "2025", e);
1803
+ }
1804
+ inverseSurface() {
1805
+ let e = F.fromPalette({
1806
+ name: "inverse_surface",
1807
+ palette: (e) => e.neutralPalette,
1808
+ tone: (e) => e.isDark ? 98 : 4,
1809
+ isBackground: !0
1810
+ });
1811
+ return P(super.inverseSurface(), "2025", e);
1812
+ }
1813
+ inverseOnSurface() {
1814
+ let e = F.fromPalette({
1815
+ name: "inverse_on_surface",
1816
+ palette: (e) => e.neutralPalette,
1817
+ background: (e) => this.inverseSurface(),
1818
+ contrastCurve: (e) => Y(7)
1819
+ });
1820
+ return P(super.inverseOnSurface(), "2025", e);
1821
+ }
1822
+ primary() {
1823
+ let e = F.fromPalette({
1824
+ name: "primary",
1825
+ palette: (e) => e.primaryPalette,
1826
+ tone: (e) => e.variant === W.NEUTRAL ? e.platform === "phone" ? e.isDark ? 80 : 40 : 90 : e.variant === W.TONAL_SPOT ? e.platform === "phone" ? e.isDark ? 80 : q(e.primaryPalette) : q(e.primaryPalette, 0, 90) : e.variant === W.EXPRESSIVE ? e.platform === "phone" ? q(e.primaryPalette, 0, A.isYellow(e.primaryPalette.hue) ? 25 : A.isCyan(e.primaryPalette.hue) ? 88 : 98) : q(e.primaryPalette) : e.platform === "phone" ? q(e.primaryPalette, 0, A.isCyan(e.primaryPalette.hue) ? 88 : 98) : q(e.primaryPalette),
1827
+ isBackground: !0,
1828
+ background: (e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh(),
1829
+ contrastCurve: (e) => e.platform === "phone" ? Y(4.5) : Y(7),
1830
+ toneDeltaPair: (e) => e.platform === "phone" ? new U(this.primaryContainer(), this.primary(), 5, "relative_lighter", !0, "farther") : void 0
1831
+ });
1832
+ return P(super.primary(), "2025", e);
1833
+ }
1834
+ primaryDim() {
1835
+ return F.fromPalette({
1836
+ name: "primary_dim",
1837
+ palette: (e) => e.primaryPalette,
1838
+ tone: (e) => e.variant === W.NEUTRAL ? 85 : e.variant === W.TONAL_SPOT ? q(e.primaryPalette, 0, 90) : q(e.primaryPalette),
1839
+ isBackground: !0,
1840
+ background: (e) => this.surfaceContainerHigh(),
1841
+ contrastCurve: (e) => Y(4.5),
1842
+ toneDeltaPair: (e) => new U(this.primaryDim(), this.primary(), 5, "darker", !0, "farther")
1843
+ });
1844
+ }
1845
+ onPrimary() {
1846
+ let e = F.fromPalette({
1847
+ name: "on_primary",
1848
+ palette: (e) => e.primaryPalette,
1849
+ background: (e) => e.platform === "phone" ? this.primary() : this.primaryDim(),
1850
+ contrastCurve: (e) => e.platform === "phone" ? Y(6) : Y(7)
1851
+ });
1852
+ return P(super.onPrimary(), "2025", e);
1853
+ }
1854
+ primaryContainer() {
1855
+ let e = F.fromPalette({
1856
+ name: "primary_container",
1857
+ palette: (e) => e.primaryPalette,
1858
+ tone: (e) => e.platform === "watch" ? 30 : e.variant === W.NEUTRAL ? e.isDark ? 30 : 90 : e.variant === W.TONAL_SPOT ? e.isDark ? J(e.primaryPalette, 35, 93) : q(e.primaryPalette, 0, 90) : e.variant === W.EXPRESSIVE ? e.isDark ? q(e.primaryPalette, 30, 93) : q(e.primaryPalette, 78, A.isCyan(e.primaryPalette.hue) ? 88 : 90) : e.isDark ? J(e.primaryPalette, 66, 93) : q(e.primaryPalette, 66, A.isCyan(e.primaryPalette.hue) ? 88 : 93),
1859
+ isBackground: !0,
1860
+ background: (e) => e.platform === "phone" ? this.highestSurface(e) : void 0,
1861
+ toneDeltaPair: (e) => e.platform === "phone" ? void 0 : new U(this.primaryContainer(), this.primaryDim(), 10, "darker", !0, "farther"),
1862
+ contrastCurve: (e) => e.platform === "phone" && e.contrastLevel > 0 ? Y(1.5) : void 0
1863
+ });
1864
+ return P(super.primaryContainer(), "2025", e);
1865
+ }
1866
+ onPrimaryContainer() {
1867
+ let e = F.fromPalette({
1868
+ name: "on_primary_container",
1869
+ palette: (e) => e.primaryPalette,
1870
+ background: (e) => this.primaryContainer(),
1871
+ contrastCurve: (e) => e.platform === "phone" ? Y(6) : Y(7)
1872
+ });
1873
+ return P(super.onPrimaryContainer(), "2025", e);
1874
+ }
1875
+ primaryFixed() {
1876
+ let e = F.fromPalette({
1877
+ name: "primary_fixed",
1878
+ palette: (e) => e.primaryPalette,
1879
+ tone: (e) => {
1880
+ let t = Object.assign({}, e, {
1881
+ isDark: !1,
1882
+ contrastLevel: 0
1883
+ });
1884
+ return this.primaryContainer().getTone(t);
1885
+ },
1886
+ isBackground: !0,
1887
+ background: (e) => e.platform === "phone" ? this.highestSurface(e) : void 0,
1888
+ contrastCurve: (e) => e.platform === "phone" && e.contrastLevel > 0 ? Y(1.5) : void 0
1889
+ });
1890
+ return P(super.primaryFixed(), "2025", e);
1891
+ }
1892
+ primaryFixedDim() {
1893
+ let e = F.fromPalette({
1894
+ name: "primary_fixed_dim",
1895
+ palette: (e) => e.primaryPalette,
1896
+ tone: (e) => this.primaryFixed().getTone(e),
1897
+ isBackground: !0,
1898
+ toneDeltaPair: (e) => new U(this.primaryFixedDim(), this.primaryFixed(), 5, "darker", !0, "exact")
1899
+ });
1900
+ return P(super.primaryFixedDim(), "2025", e);
1901
+ }
1902
+ onPrimaryFixed() {
1903
+ let e = F.fromPalette({
1904
+ name: "on_primary_fixed",
1905
+ palette: (e) => e.primaryPalette,
1906
+ background: (e) => this.primaryFixedDim(),
1907
+ contrastCurve: (e) => Y(7)
1908
+ });
1909
+ return P(super.onPrimaryFixed(), "2025", e);
1910
+ }
1911
+ onPrimaryFixedVariant() {
1912
+ let e = F.fromPalette({
1913
+ name: "on_primary_fixed_variant",
1914
+ palette: (e) => e.primaryPalette,
1915
+ background: (e) => this.primaryFixedDim(),
1916
+ contrastCurve: (e) => Y(4.5)
1917
+ });
1918
+ return P(super.onPrimaryFixedVariant(), "2025", e);
1919
+ }
1920
+ inversePrimary() {
1921
+ let e = F.fromPalette({
1922
+ name: "inverse_primary",
1923
+ palette: (e) => e.primaryPalette,
1924
+ tone: (e) => q(e.primaryPalette),
1925
+ background: (e) => this.inverseSurface(),
1926
+ contrastCurve: (e) => e.platform === "phone" ? Y(6) : Y(7)
1927
+ });
1928
+ return P(super.inversePrimary(), "2025", e);
1929
+ }
1930
+ secondary() {
1931
+ let e = F.fromPalette({
1932
+ name: "secondary",
1933
+ palette: (e) => e.secondaryPalette,
1934
+ tone: (e) => e.platform === "watch" ? e.variant === W.NEUTRAL ? 90 : q(e.secondaryPalette, 0, 90) : e.variant === W.NEUTRAL ? e.isDark ? J(e.secondaryPalette, 0, 98) : q(e.secondaryPalette) : e.variant === W.VIBRANT ? q(e.secondaryPalette, 0, e.isDark ? 90 : 98) : e.isDark ? 80 : q(e.secondaryPalette),
1935
+ isBackground: !0,
1936
+ background: (e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh(),
1937
+ contrastCurve: (e) => e.platform === "phone" ? Y(4.5) : Y(7),
1938
+ toneDeltaPair: (e) => e.platform === "phone" ? new U(this.secondaryContainer(), this.secondary(), 5, "relative_lighter", !0, "farther") : void 0
1939
+ });
1940
+ return P(super.secondary(), "2025", e);
1941
+ }
1942
+ secondaryDim() {
1943
+ return F.fromPalette({
1944
+ name: "secondary_dim",
1945
+ palette: (e) => e.secondaryPalette,
1946
+ tone: (e) => e.variant === W.NEUTRAL ? 85 : q(e.secondaryPalette, 0, 90),
1947
+ isBackground: !0,
1948
+ background: (e) => this.surfaceContainerHigh(),
1949
+ contrastCurve: (e) => Y(4.5),
1950
+ toneDeltaPair: (e) => new U(this.secondaryDim(), this.secondary(), 5, "darker", !0, "farther")
1951
+ });
1952
+ }
1953
+ onSecondary() {
1954
+ let e = F.fromPalette({
1955
+ name: "on_secondary",
1956
+ palette: (e) => e.secondaryPalette,
1957
+ background: (e) => e.platform === "phone" ? this.secondary() : this.secondaryDim(),
1958
+ contrastCurve: (e) => e.platform === "phone" ? Y(6) : Y(7)
1959
+ });
1960
+ return P(super.onSecondary(), "2025", e);
1961
+ }
1962
+ secondaryContainer() {
1963
+ let e = F.fromPalette({
1964
+ name: "secondary_container",
1965
+ palette: (e) => e.secondaryPalette,
1966
+ tone: (e) => e.platform === "watch" ? 30 : e.variant === W.VIBRANT ? e.isDark ? J(e.secondaryPalette, 30, 40) : q(e.secondaryPalette, 84, 90) : e.variant === W.EXPRESSIVE ? e.isDark ? 15 : q(e.secondaryPalette, 90, 95) : e.isDark ? 25 : 90,
1967
+ isBackground: !0,
1968
+ background: (e) => e.platform === "phone" ? this.highestSurface(e) : void 0,
1969
+ toneDeltaPair: (e) => e.platform === "watch" ? new U(this.secondaryContainer(), this.secondaryDim(), 10, "darker", !0, "farther") : void 0,
1970
+ contrastCurve: (e) => e.platform === "phone" && e.contrastLevel > 0 ? Y(1.5) : void 0
1971
+ });
1972
+ return P(super.secondaryContainer(), "2025", e);
1973
+ }
1974
+ onSecondaryContainer() {
1975
+ let e = F.fromPalette({
1976
+ name: "on_secondary_container",
1977
+ palette: (e) => e.secondaryPalette,
1978
+ background: (e) => this.secondaryContainer(),
1979
+ contrastCurve: (e) => e.platform === "phone" ? Y(6) : Y(7)
1980
+ });
1981
+ return P(super.onSecondaryContainer(), "2025", e);
1982
+ }
1983
+ secondaryFixed() {
1984
+ let e = F.fromPalette({
1985
+ name: "secondary_fixed",
1986
+ palette: (e) => e.secondaryPalette,
1987
+ tone: (e) => {
1988
+ let t = Object.assign({}, e, {
1989
+ isDark: !1,
1990
+ contrastLevel: 0
1991
+ });
1992
+ return this.secondaryContainer().getTone(t);
1993
+ },
1994
+ isBackground: !0,
1995
+ background: (e) => e.platform === "phone" ? this.highestSurface(e) : void 0,
1996
+ contrastCurve: (e) => e.platform === "phone" && e.contrastLevel > 0 ? Y(1.5) : void 0
1997
+ });
1998
+ return P(super.secondaryFixed(), "2025", e);
1999
+ }
2000
+ secondaryFixedDim() {
2001
+ let e = F.fromPalette({
2002
+ name: "secondary_fixed_dim",
2003
+ palette: (e) => e.secondaryPalette,
2004
+ tone: (e) => this.secondaryFixed().getTone(e),
2005
+ isBackground: !0,
2006
+ toneDeltaPair: (e) => new U(this.secondaryFixedDim(), this.secondaryFixed(), 5, "darker", !0, "exact")
2007
+ });
2008
+ return P(super.secondaryFixedDim(), "2025", e);
2009
+ }
2010
+ onSecondaryFixed() {
2011
+ let e = F.fromPalette({
2012
+ name: "on_secondary_fixed",
2013
+ palette: (e) => e.secondaryPalette,
2014
+ background: (e) => this.secondaryFixedDim(),
2015
+ contrastCurve: (e) => Y(7)
2016
+ });
2017
+ return P(super.onSecondaryFixed(), "2025", e);
2018
+ }
2019
+ onSecondaryFixedVariant() {
2020
+ let e = F.fromPalette({
2021
+ name: "on_secondary_fixed_variant",
2022
+ palette: (e) => e.secondaryPalette,
2023
+ background: (e) => this.secondaryFixedDim(),
2024
+ contrastCurve: (e) => Y(4.5)
2025
+ });
2026
+ return P(super.onSecondaryFixedVariant(), "2025", e);
2027
+ }
2028
+ tertiary() {
2029
+ let e = F.fromPalette({
2030
+ name: "tertiary",
2031
+ palette: (e) => e.tertiaryPalette,
2032
+ tone: (e) => e.platform === "watch" ? e.variant === W.TONAL_SPOT ? q(e.tertiaryPalette, 0, 90) : q(e.tertiaryPalette) : e.variant === W.EXPRESSIVE || e.variant === W.VIBRANT ? q(e.tertiaryPalette, 0, A.isCyan(e.tertiaryPalette.hue) ? 88 : e.isDark ? 98 : 100) : e.isDark ? q(e.tertiaryPalette, 0, 98) : q(e.tertiaryPalette),
2033
+ isBackground: !0,
2034
+ background: (e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh(),
2035
+ contrastCurve: (e) => e.platform === "phone" ? Y(4.5) : Y(7),
2036
+ toneDeltaPair: (e) => e.platform === "phone" ? new U(this.tertiaryContainer(), this.tertiary(), 5, "relative_lighter", !0, "farther") : void 0
2037
+ });
2038
+ return P(super.tertiary(), "2025", e);
2039
+ }
2040
+ tertiaryDim() {
2041
+ return F.fromPalette({
2042
+ name: "tertiary_dim",
2043
+ palette: (e) => e.tertiaryPalette,
2044
+ tone: (e) => e.variant === W.TONAL_SPOT ? q(e.tertiaryPalette, 0, 90) : q(e.tertiaryPalette),
2045
+ isBackground: !0,
2046
+ background: (e) => this.surfaceContainerHigh(),
2047
+ contrastCurve: (e) => Y(4.5),
2048
+ toneDeltaPair: (e) => new U(this.tertiaryDim(), this.tertiary(), 5, "darker", !0, "farther")
2049
+ });
2050
+ }
2051
+ onTertiary() {
2052
+ let e = F.fromPalette({
2053
+ name: "on_tertiary",
2054
+ palette: (e) => e.tertiaryPalette,
2055
+ background: (e) => e.platform === "phone" ? this.tertiary() : this.tertiaryDim(),
2056
+ contrastCurve: (e) => e.platform === "phone" ? Y(6) : Y(7)
2057
+ });
2058
+ return P(super.onTertiary(), "2025", e);
2059
+ }
2060
+ tertiaryContainer() {
2061
+ let e = F.fromPalette({
2062
+ name: "tertiary_container",
2063
+ palette: (e) => e.tertiaryPalette,
2064
+ tone: (e) => e.platform === "watch" ? e.variant === W.TONAL_SPOT ? q(e.tertiaryPalette, 0, 90) : q(e.tertiaryPalette) : e.variant === W.NEUTRAL ? e.isDark ? q(e.tertiaryPalette, 0, 93) : q(e.tertiaryPalette, 0, 96) : e.variant === W.TONAL_SPOT ? q(e.tertiaryPalette, 0, e.isDark ? 93 : 100) : e.variant === W.EXPRESSIVE ? q(e.tertiaryPalette, 75, A.isCyan(e.tertiaryPalette.hue) ? 88 : e.isDark ? 93 : 100) : e.isDark ? q(e.tertiaryPalette, 0, 93) : q(e.tertiaryPalette, 72, 100),
2065
+ isBackground: !0,
2066
+ background: (e) => e.platform === "phone" ? this.highestSurface(e) : void 0,
2067
+ toneDeltaPair: (e) => e.platform === "watch" ? new U(this.tertiaryContainer(), this.tertiaryDim(), 10, "darker", !0, "farther") : void 0,
2068
+ contrastCurve: (e) => e.platform === "phone" && e.contrastLevel > 0 ? Y(1.5) : void 0
2069
+ });
2070
+ return P(super.tertiaryContainer(), "2025", e);
2071
+ }
2072
+ onTertiaryContainer() {
2073
+ let e = F.fromPalette({
2074
+ name: "on_tertiary_container",
2075
+ palette: (e) => e.tertiaryPalette,
2076
+ background: (e) => this.tertiaryContainer(),
2077
+ contrastCurve: (e) => e.platform === "phone" ? Y(6) : Y(7)
2078
+ });
2079
+ return P(super.onTertiaryContainer(), "2025", e);
2080
+ }
2081
+ tertiaryFixed() {
2082
+ let e = F.fromPalette({
2083
+ name: "tertiary_fixed",
2084
+ palette: (e) => e.tertiaryPalette,
2085
+ tone: (e) => {
2086
+ let t = Object.assign({}, e, {
2087
+ isDark: !1,
2088
+ contrastLevel: 0
2089
+ });
2090
+ return this.tertiaryContainer().getTone(t);
2091
+ },
2092
+ isBackground: !0,
2093
+ background: (e) => e.platform === "phone" ? this.highestSurface(e) : void 0,
2094
+ contrastCurve: (e) => e.platform === "phone" && e.contrastLevel > 0 ? Y(1.5) : void 0
2095
+ });
2096
+ return P(super.tertiaryFixed(), "2025", e);
2097
+ }
2098
+ tertiaryFixedDim() {
2099
+ let e = F.fromPalette({
2100
+ name: "tertiary_fixed_dim",
2101
+ palette: (e) => e.tertiaryPalette,
2102
+ tone: (e) => this.tertiaryFixed().getTone(e),
2103
+ isBackground: !0,
2104
+ toneDeltaPair: (e) => new U(this.tertiaryFixedDim(), this.tertiaryFixed(), 5, "darker", !0, "exact")
2105
+ });
2106
+ return P(super.tertiaryFixedDim(), "2025", e);
2107
+ }
2108
+ onTertiaryFixed() {
2109
+ let e = F.fromPalette({
2110
+ name: "on_tertiary_fixed",
2111
+ palette: (e) => e.tertiaryPalette,
2112
+ background: (e) => this.tertiaryFixedDim(),
2113
+ contrastCurve: (e) => Y(7)
2114
+ });
2115
+ return P(super.onTertiaryFixed(), "2025", e);
2116
+ }
2117
+ onTertiaryFixedVariant() {
2118
+ let e = F.fromPalette({
2119
+ name: "on_tertiary_fixed_variant",
2120
+ palette: (e) => e.tertiaryPalette,
2121
+ background: (e) => this.tertiaryFixedDim(),
2122
+ contrastCurve: (e) => Y(4.5)
2123
+ });
2124
+ return P(super.onTertiaryFixedVariant(), "2025", e);
2125
+ }
2126
+ error() {
2127
+ let e = F.fromPalette({
2128
+ name: "error",
2129
+ palette: (e) => e.errorPalette,
2130
+ tone: (e) => e.platform === "phone" ? e.isDark ? J(e.errorPalette, 0, 98) : q(e.errorPalette) : J(e.errorPalette),
2131
+ isBackground: !0,
2132
+ background: (e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh(),
2133
+ contrastCurve: (e) => e.platform === "phone" ? Y(4.5) : Y(7),
2134
+ toneDeltaPair: (e) => e.platform === "phone" ? new U(this.errorContainer(), this.error(), 5, "relative_lighter", !0, "farther") : void 0
2135
+ });
2136
+ return P(super.error(), "2025", e);
2137
+ }
2138
+ errorDim() {
2139
+ return F.fromPalette({
2140
+ name: "error_dim",
2141
+ palette: (e) => e.errorPalette,
2142
+ tone: (e) => J(e.errorPalette),
2143
+ isBackground: !0,
2144
+ background: (e) => this.surfaceContainerHigh(),
2145
+ contrastCurve: (e) => Y(4.5),
2146
+ toneDeltaPair: (e) => new U(this.errorDim(), this.error(), 5, "darker", !0, "farther")
2147
+ });
2148
+ }
2149
+ onError() {
2150
+ let e = F.fromPalette({
2151
+ name: "on_error",
2152
+ palette: (e) => e.errorPalette,
2153
+ background: (e) => e.platform === "phone" ? this.error() : this.errorDim(),
2154
+ contrastCurve: (e) => e.platform === "phone" ? Y(6) : Y(7)
2155
+ });
2156
+ return P(super.onError(), "2025", e);
2157
+ }
2158
+ errorContainer() {
2159
+ let e = F.fromPalette({
2160
+ name: "error_container",
2161
+ palette: (e) => e.errorPalette,
2162
+ tone: (e) => e.platform === "watch" ? 30 : e.isDark ? J(e.errorPalette, 30, 93) : q(e.errorPalette, 0, 90),
2163
+ isBackground: !0,
2164
+ background: (e) => e.platform === "phone" ? this.highestSurface(e) : void 0,
2165
+ toneDeltaPair: (e) => e.platform === "watch" ? new U(this.errorContainer(), this.errorDim(), 10, "darker", !0, "farther") : void 0,
2166
+ contrastCurve: (e) => e.platform === "phone" && e.contrastLevel > 0 ? Y(1.5) : void 0
2167
+ });
2168
+ return P(super.errorContainer(), "2025", e);
2169
+ }
2170
+ onErrorContainer() {
2171
+ let e = F.fromPalette({
2172
+ name: "on_error_container",
2173
+ palette: (e) => e.errorPalette,
2174
+ background: (e) => this.errorContainer(),
2175
+ contrastCurve: (e) => e.platform === "phone" ? Y(4.5) : Y(7)
2176
+ });
2177
+ return P(super.onErrorContainer(), "2025", e);
2178
+ }
2179
+ surfaceVariant() {
2180
+ let e = Object.assign(this.surfaceContainerHighest().clone(), { name: "surface_variant" });
2181
+ return P(super.surfaceVariant(), "2025", e);
2182
+ }
2183
+ surfaceTint() {
2184
+ let e = Object.assign(this.primary().clone(), { name: "surface_tint" });
2185
+ return P(super.surfaceTint(), "2025", e);
2186
+ }
2187
+ background() {
2188
+ let e = Object.assign(this.surface().clone(), { name: "background" });
2189
+ return P(super.background(), "2025", e);
2190
+ }
2191
+ onBackground() {
2192
+ let e = Object.assign(this.onSurface().clone(), {
2193
+ name: "on_background",
2194
+ tone: (e) => e.platform === "watch" ? 100 : this.onSurface().getTone(e)
2195
+ });
2196
+ return P(super.onBackground(), "2025", e);
2197
+ }
2198
+ }, X = class e {
2199
+ constructor() {
2200
+ this.allColors = [
2201
+ this.background(),
2202
+ this.onBackground(),
2203
+ this.surface(),
2204
+ this.surfaceDim(),
2205
+ this.surfaceBright(),
2206
+ this.surfaceContainerLowest(),
2207
+ this.surfaceContainerLow(),
2208
+ this.surfaceContainer(),
2209
+ this.surfaceContainerHigh(),
2210
+ this.surfaceContainerHighest(),
2211
+ this.onSurface(),
2212
+ this.onSurfaceVariant(),
2213
+ this.outline(),
2214
+ this.outlineVariant(),
2215
+ this.inverseSurface(),
2216
+ this.inverseOnSurface(),
2217
+ this.primary(),
2218
+ this.primaryDim(),
2219
+ this.onPrimary(),
2220
+ this.primaryContainer(),
2221
+ this.onPrimaryContainer(),
2222
+ this.primaryFixed(),
2223
+ this.primaryFixedDim(),
2224
+ this.onPrimaryFixed(),
2225
+ this.onPrimaryFixedVariant(),
2226
+ this.inversePrimary(),
2227
+ this.secondary(),
2228
+ this.secondaryDim(),
2229
+ this.onSecondary(),
2230
+ this.secondaryContainer(),
2231
+ this.onSecondaryContainer(),
2232
+ this.secondaryFixed(),
2233
+ this.secondaryFixedDim(),
2234
+ this.onSecondaryFixed(),
2235
+ this.onSecondaryFixedVariant(),
2236
+ this.tertiary(),
2237
+ this.tertiaryDim(),
2238
+ this.onTertiary(),
2239
+ this.tertiaryContainer(),
2240
+ this.onTertiaryContainer(),
2241
+ this.tertiaryFixed(),
2242
+ this.tertiaryFixedDim(),
2243
+ this.onTertiaryFixed(),
2244
+ this.onTertiaryFixedVariant(),
2245
+ this.error(),
2246
+ this.errorDim(),
2247
+ this.onError(),
2248
+ this.errorContainer(),
2249
+ this.onErrorContainer()
2250
+ ].filter((e) => e !== void 0);
2251
+ }
2252
+ highestSurface(t) {
2253
+ return e.colorSpec.highestSurface(t);
2254
+ }
2255
+ primaryPaletteKeyColor() {
2256
+ return e.colorSpec.primaryPaletteKeyColor();
2257
+ }
2258
+ secondaryPaletteKeyColor() {
2259
+ return e.colorSpec.secondaryPaletteKeyColor();
2260
+ }
2261
+ tertiaryPaletteKeyColor() {
2262
+ return e.colorSpec.tertiaryPaletteKeyColor();
2263
+ }
2264
+ neutralPaletteKeyColor() {
2265
+ return e.colorSpec.neutralPaletteKeyColor();
2266
+ }
2267
+ neutralVariantPaletteKeyColor() {
2268
+ return e.colorSpec.neutralVariantPaletteKeyColor();
2269
+ }
2270
+ errorPaletteKeyColor() {
2271
+ return e.colorSpec.errorPaletteKeyColor();
2272
+ }
2273
+ background() {
2274
+ return e.colorSpec.background();
2275
+ }
2276
+ onBackground() {
2277
+ return e.colorSpec.onBackground();
2278
+ }
2279
+ surface() {
2280
+ return e.colorSpec.surface();
2281
+ }
2282
+ surfaceDim() {
2283
+ return e.colorSpec.surfaceDim();
2284
+ }
2285
+ surfaceBright() {
2286
+ return e.colorSpec.surfaceBright();
2287
+ }
2288
+ surfaceContainerLowest() {
2289
+ return e.colorSpec.surfaceContainerLowest();
2290
+ }
2291
+ surfaceContainerLow() {
2292
+ return e.colorSpec.surfaceContainerLow();
2293
+ }
2294
+ surfaceContainer() {
2295
+ return e.colorSpec.surfaceContainer();
2296
+ }
2297
+ surfaceContainerHigh() {
2298
+ return e.colorSpec.surfaceContainerHigh();
2299
+ }
2300
+ surfaceContainerHighest() {
2301
+ return e.colorSpec.surfaceContainerHighest();
2302
+ }
2303
+ onSurface() {
2304
+ return e.colorSpec.onSurface();
2305
+ }
2306
+ surfaceVariant() {
2307
+ return e.colorSpec.surfaceVariant();
2308
+ }
2309
+ onSurfaceVariant() {
2310
+ return e.colorSpec.onSurfaceVariant();
2311
+ }
2312
+ outline() {
2313
+ return e.colorSpec.outline();
2314
+ }
2315
+ outlineVariant() {
2316
+ return e.colorSpec.outlineVariant();
2317
+ }
2318
+ inverseSurface() {
2319
+ return e.colorSpec.inverseSurface();
2320
+ }
2321
+ inverseOnSurface() {
2322
+ return e.colorSpec.inverseOnSurface();
2323
+ }
2324
+ shadow() {
2325
+ return e.colorSpec.shadow();
2326
+ }
2327
+ scrim() {
2328
+ return e.colorSpec.scrim();
2329
+ }
2330
+ surfaceTint() {
2331
+ return e.colorSpec.surfaceTint();
2332
+ }
2333
+ primary() {
2334
+ return e.colorSpec.primary();
2335
+ }
2336
+ primaryDim() {
2337
+ return e.colorSpec.primaryDim();
2338
+ }
2339
+ onPrimary() {
2340
+ return e.colorSpec.onPrimary();
2341
+ }
2342
+ primaryContainer() {
2343
+ return e.colorSpec.primaryContainer();
2344
+ }
2345
+ onPrimaryContainer() {
2346
+ return e.colorSpec.onPrimaryContainer();
2347
+ }
2348
+ inversePrimary() {
2349
+ return e.colorSpec.inversePrimary();
2350
+ }
2351
+ primaryFixed() {
2352
+ return e.colorSpec.primaryFixed();
2353
+ }
2354
+ primaryFixedDim() {
2355
+ return e.colorSpec.primaryFixedDim();
2356
+ }
2357
+ onPrimaryFixed() {
2358
+ return e.colorSpec.onPrimaryFixed();
2359
+ }
2360
+ onPrimaryFixedVariant() {
2361
+ return e.colorSpec.onPrimaryFixedVariant();
2362
+ }
2363
+ secondary() {
2364
+ return e.colorSpec.secondary();
2365
+ }
2366
+ secondaryDim() {
2367
+ return e.colorSpec.secondaryDim();
2368
+ }
2369
+ onSecondary() {
2370
+ return e.colorSpec.onSecondary();
2371
+ }
2372
+ secondaryContainer() {
2373
+ return e.colorSpec.secondaryContainer();
2374
+ }
2375
+ onSecondaryContainer() {
2376
+ return e.colorSpec.onSecondaryContainer();
2377
+ }
2378
+ secondaryFixed() {
2379
+ return e.colorSpec.secondaryFixed();
2380
+ }
2381
+ secondaryFixedDim() {
2382
+ return e.colorSpec.secondaryFixedDim();
2383
+ }
2384
+ onSecondaryFixed() {
2385
+ return e.colorSpec.onSecondaryFixed();
2386
+ }
2387
+ onSecondaryFixedVariant() {
2388
+ return e.colorSpec.onSecondaryFixedVariant();
2389
+ }
2390
+ tertiary() {
2391
+ return e.colorSpec.tertiary();
2392
+ }
2393
+ tertiaryDim() {
2394
+ return e.colorSpec.tertiaryDim();
2395
+ }
2396
+ onTertiary() {
2397
+ return e.colorSpec.onTertiary();
2398
+ }
2399
+ tertiaryContainer() {
2400
+ return e.colorSpec.tertiaryContainer();
2401
+ }
2402
+ onTertiaryContainer() {
2403
+ return e.colorSpec.onTertiaryContainer();
2404
+ }
2405
+ tertiaryFixed() {
2406
+ return e.colorSpec.tertiaryFixed();
2407
+ }
2408
+ tertiaryFixedDim() {
2409
+ return e.colorSpec.tertiaryFixedDim();
2410
+ }
2411
+ onTertiaryFixed() {
2412
+ return e.colorSpec.onTertiaryFixed();
2413
+ }
2414
+ onTertiaryFixedVariant() {
2415
+ return e.colorSpec.onTertiaryFixedVariant();
2416
+ }
2417
+ error() {
2418
+ return e.colorSpec.error();
2419
+ }
2420
+ errorDim() {
2421
+ return e.colorSpec.errorDim();
2422
+ }
2423
+ onError() {
2424
+ return e.colorSpec.onError();
2425
+ }
2426
+ errorContainer() {
2427
+ return e.colorSpec.errorContainer();
2428
+ }
2429
+ onErrorContainer() {
2430
+ return e.colorSpec.onErrorContainer();
2431
+ }
2432
+ static highestSurface(t) {
2433
+ return e.colorSpec.highestSurface(t);
2434
+ }
2435
+ };
2436
+ X.contentAccentToneDelta = 15, X.colorSpec = new ae(), X.primaryPaletteKeyColor = X.colorSpec.primaryPaletteKeyColor(), X.secondaryPaletteKeyColor = X.colorSpec.secondaryPaletteKeyColor(), X.tertiaryPaletteKeyColor = X.colorSpec.tertiaryPaletteKeyColor(), X.neutralPaletteKeyColor = X.colorSpec.neutralPaletteKeyColor(), X.neutralVariantPaletteKeyColor = X.colorSpec.neutralVariantPaletteKeyColor(), X.background = X.colorSpec.background(), X.onBackground = X.colorSpec.onBackground(), X.surface = X.colorSpec.surface(), X.surfaceDim = X.colorSpec.surfaceDim(), X.surfaceBright = X.colorSpec.surfaceBright(), X.surfaceContainerLowest = X.colorSpec.surfaceContainerLowest(), X.surfaceContainerLow = X.colorSpec.surfaceContainerLow(), X.surfaceContainer = X.colorSpec.surfaceContainer(), X.surfaceContainerHigh = X.colorSpec.surfaceContainerHigh(), X.surfaceContainerHighest = X.colorSpec.surfaceContainerHighest(), X.onSurface = X.colorSpec.onSurface(), X.surfaceVariant = X.colorSpec.surfaceVariant(), X.onSurfaceVariant = X.colorSpec.onSurfaceVariant(), X.inverseSurface = X.colorSpec.inverseSurface(), X.inverseOnSurface = X.colorSpec.inverseOnSurface(), X.outline = X.colorSpec.outline(), X.outlineVariant = X.colorSpec.outlineVariant(), X.shadow = X.colorSpec.shadow(), X.scrim = X.colorSpec.scrim(), X.surfaceTint = X.colorSpec.surfaceTint(), X.primary = X.colorSpec.primary(), X.onPrimary = X.colorSpec.onPrimary(), X.primaryContainer = X.colorSpec.primaryContainer(), X.onPrimaryContainer = X.colorSpec.onPrimaryContainer(), X.inversePrimary = X.colorSpec.inversePrimary(), X.secondary = X.colorSpec.secondary(), X.onSecondary = X.colorSpec.onSecondary(), X.secondaryContainer = X.colorSpec.secondaryContainer(), X.onSecondaryContainer = X.colorSpec.onSecondaryContainer(), X.tertiary = X.colorSpec.tertiary(), X.onTertiary = X.colorSpec.onTertiary(), X.tertiaryContainer = X.colorSpec.tertiaryContainer(), X.onTertiaryContainer = X.colorSpec.onTertiaryContainer(), X.error = X.colorSpec.error(), X.onError = X.colorSpec.onError(), X.errorContainer = X.colorSpec.errorContainer(), X.onErrorContainer = X.colorSpec.onErrorContainer(), X.primaryFixed = X.colorSpec.primaryFixed(), X.primaryFixedDim = X.colorSpec.primaryFixedDim(), X.onPrimaryFixed = X.colorSpec.onPrimaryFixed(), X.onPrimaryFixedVariant = X.colorSpec.onPrimaryFixedVariant(), X.secondaryFixed = X.colorSpec.secondaryFixed(), X.secondaryFixedDim = X.colorSpec.secondaryFixedDim(), X.onSecondaryFixed = X.colorSpec.onSecondaryFixed(), X.onSecondaryFixedVariant = X.colorSpec.onSecondaryFixedVariant(), X.tertiaryFixed = X.colorSpec.tertiaryFixed(), X.tertiaryFixedDim = X.colorSpec.tertiaryFixedDim(), X.onTertiaryFixed = X.colorSpec.onTertiaryFixed(), X.onTertiaryFixedVariant = X.colorSpec.onTertiaryFixedVariant();
2437
+ //#endregion
2438
+ //#region node_modules/.pnpm/@material+material-color-utilities@0.4.0/node_modules/@material/material-color-utilities/dynamiccolor/dynamic_scheme.js
2439
+ var Z = class e {
2440
+ static maybeFallbackSpecVersion(e, t) {
2441
+ switch (t) {
2442
+ case W.EXPRESSIVE:
2443
+ case W.VIBRANT:
2444
+ case W.TONAL_SPOT:
2445
+ case W.NEUTRAL: return e;
2446
+ default: return "2021";
2447
+ }
2448
+ }
2449
+ constructor(t) {
2450
+ this.sourceColorArgb = t.sourceColorHct.toInt(), this.variant = t.variant, this.contrastLevel = t.contrastLevel, this.isDark = t.isDark, this.platform = t.platform ?? "phone", this.specVersion = e.maybeFallbackSpecVersion(t.specVersion ?? "2021", this.variant), this.sourceColorHct = t.sourceColorHct, this.primaryPalette = t.primaryPalette ?? Q(this.specVersion).getPrimaryPalette(this.variant, t.sourceColorHct, this.isDark, this.platform, this.contrastLevel), this.secondaryPalette = t.secondaryPalette ?? Q(this.specVersion).getSecondaryPalette(this.variant, t.sourceColorHct, this.isDark, this.platform, this.contrastLevel), this.tertiaryPalette = t.tertiaryPalette ?? Q(this.specVersion).getTertiaryPalette(this.variant, t.sourceColorHct, this.isDark, this.platform, this.contrastLevel), this.neutralPalette = t.neutralPalette ?? Q(this.specVersion).getNeutralPalette(this.variant, t.sourceColorHct, this.isDark, this.platform, this.contrastLevel), this.neutralVariantPalette = t.neutralVariantPalette ?? Q(this.specVersion).getNeutralVariantPalette(this.variant, t.sourceColorHct, this.isDark, this.platform, this.contrastLevel), this.errorPalette = t.errorPalette ?? Q(this.specVersion).getErrorPalette(this.variant, t.sourceColorHct, this.isDark, this.platform, this.contrastLevel) ?? B.fromHueAndChroma(25, 84), this.colors = new X();
2451
+ }
2452
+ toString() {
2453
+ return `Scheme: variant=${W[this.variant]}, mode=${this.isDark ? "dark" : "light"}, platform=${this.platform}, contrastLevel=${this.contrastLevel.toFixed(1)}, seed=${this.sourceColorHct.toString()}, specVersion=${this.specVersion}`;
2454
+ }
2455
+ static getPiecewiseHue(e, t, n) {
2456
+ let r = Math.min(t.length - 1, n.length), i = e.hue;
2457
+ for (let e = 0; e < r; e++) if (i >= t[e] && i < t[e + 1]) return a(n[e]);
2458
+ return i;
2459
+ }
2460
+ static getRotatedHue(t, n, r) {
2461
+ let i = e.getPiecewiseHue(t, n, r);
2462
+ return Math.min(n.length - 1, r.length) <= 0 && (i = 0), a(t.hue + i);
2463
+ }
2464
+ getArgb(e) {
2465
+ return e.getArgb(this);
2466
+ }
2467
+ getHct(e) {
2468
+ return e.getHct(this);
2469
+ }
2470
+ get primaryPaletteKeyColor() {
2471
+ return this.getArgb(this.colors.primaryPaletteKeyColor());
2472
+ }
2473
+ get secondaryPaletteKeyColor() {
2474
+ return this.getArgb(this.colors.secondaryPaletteKeyColor());
2475
+ }
2476
+ get tertiaryPaletteKeyColor() {
2477
+ return this.getArgb(this.colors.tertiaryPaletteKeyColor());
2478
+ }
2479
+ get neutralPaletteKeyColor() {
2480
+ return this.getArgb(this.colors.neutralPaletteKeyColor());
2481
+ }
2482
+ get neutralVariantPaletteKeyColor() {
2483
+ return this.getArgb(this.colors.neutralVariantPaletteKeyColor());
2484
+ }
2485
+ get errorPaletteKeyColor() {
2486
+ return this.getArgb(this.colors.errorPaletteKeyColor());
2487
+ }
2488
+ get background() {
2489
+ return this.getArgb(this.colors.background());
2490
+ }
2491
+ get onBackground() {
2492
+ return this.getArgb(this.colors.onBackground());
2493
+ }
2494
+ get surface() {
2495
+ return this.getArgb(this.colors.surface());
2496
+ }
2497
+ get surfaceDim() {
2498
+ return this.getArgb(this.colors.surfaceDim());
2499
+ }
2500
+ get surfaceBright() {
2501
+ return this.getArgb(this.colors.surfaceBright());
2502
+ }
2503
+ get surfaceContainerLowest() {
2504
+ return this.getArgb(this.colors.surfaceContainerLowest());
2505
+ }
2506
+ get surfaceContainerLow() {
2507
+ return this.getArgb(this.colors.surfaceContainerLow());
2508
+ }
2509
+ get surfaceContainer() {
2510
+ return this.getArgb(this.colors.surfaceContainer());
2511
+ }
2512
+ get surfaceContainerHigh() {
2513
+ return this.getArgb(this.colors.surfaceContainerHigh());
2514
+ }
2515
+ get surfaceContainerHighest() {
2516
+ return this.getArgb(this.colors.surfaceContainerHighest());
2517
+ }
2518
+ get onSurface() {
2519
+ return this.getArgb(this.colors.onSurface());
2520
+ }
2521
+ get surfaceVariant() {
2522
+ return this.getArgb(this.colors.surfaceVariant());
2523
+ }
2524
+ get onSurfaceVariant() {
2525
+ return this.getArgb(this.colors.onSurfaceVariant());
2526
+ }
2527
+ get inverseSurface() {
2528
+ return this.getArgb(this.colors.inverseSurface());
2529
+ }
2530
+ get inverseOnSurface() {
2531
+ return this.getArgb(this.colors.inverseOnSurface());
2532
+ }
2533
+ get outline() {
2534
+ return this.getArgb(this.colors.outline());
2535
+ }
2536
+ get outlineVariant() {
2537
+ return this.getArgb(this.colors.outlineVariant());
2538
+ }
2539
+ get shadow() {
2540
+ return this.getArgb(this.colors.shadow());
2541
+ }
2542
+ get scrim() {
2543
+ return this.getArgb(this.colors.scrim());
2544
+ }
2545
+ get surfaceTint() {
2546
+ return this.getArgb(this.colors.surfaceTint());
2547
+ }
2548
+ get primary() {
2549
+ return this.getArgb(this.colors.primary());
2550
+ }
2551
+ get primaryDim() {
2552
+ let e = this.colors.primaryDim();
2553
+ if (e === void 0) throw Error("`primaryDim` color is undefined prior to 2025 spec.");
2554
+ return this.getArgb(e);
2555
+ }
2556
+ get onPrimary() {
2557
+ return this.getArgb(this.colors.onPrimary());
2558
+ }
2559
+ get primaryContainer() {
2560
+ return this.getArgb(this.colors.primaryContainer());
2561
+ }
2562
+ get onPrimaryContainer() {
2563
+ return this.getArgb(this.colors.onPrimaryContainer());
2564
+ }
2565
+ get primaryFixed() {
2566
+ return this.getArgb(this.colors.primaryFixed());
2567
+ }
2568
+ get primaryFixedDim() {
2569
+ return this.getArgb(this.colors.primaryFixedDim());
2570
+ }
2571
+ get onPrimaryFixed() {
2572
+ return this.getArgb(this.colors.onPrimaryFixed());
2573
+ }
2574
+ get onPrimaryFixedVariant() {
2575
+ return this.getArgb(this.colors.onPrimaryFixedVariant());
2576
+ }
2577
+ get inversePrimary() {
2578
+ return this.getArgb(this.colors.inversePrimary());
2579
+ }
2580
+ get secondary() {
2581
+ return this.getArgb(this.colors.secondary());
2582
+ }
2583
+ get secondaryDim() {
2584
+ let e = this.colors.secondaryDim();
2585
+ if (e === void 0) throw Error("`secondaryDim` color is undefined prior to 2025 spec.");
2586
+ return this.getArgb(e);
2587
+ }
2588
+ get onSecondary() {
2589
+ return this.getArgb(this.colors.onSecondary());
2590
+ }
2591
+ get secondaryContainer() {
2592
+ return this.getArgb(this.colors.secondaryContainer());
2593
+ }
2594
+ get onSecondaryContainer() {
2595
+ return this.getArgb(this.colors.onSecondaryContainer());
2596
+ }
2597
+ get secondaryFixed() {
2598
+ return this.getArgb(this.colors.secondaryFixed());
2599
+ }
2600
+ get secondaryFixedDim() {
2601
+ return this.getArgb(this.colors.secondaryFixedDim());
2602
+ }
2603
+ get onSecondaryFixed() {
2604
+ return this.getArgb(this.colors.onSecondaryFixed());
2605
+ }
2606
+ get onSecondaryFixedVariant() {
2607
+ return this.getArgb(this.colors.onSecondaryFixedVariant());
2608
+ }
2609
+ get tertiary() {
2610
+ return this.getArgb(this.colors.tertiary());
2611
+ }
2612
+ get tertiaryDim() {
2613
+ let e = this.colors.tertiaryDim();
2614
+ if (e === void 0) throw Error("`tertiaryDim` color is undefined prior to 2025 spec.");
2615
+ return this.getArgb(e);
2616
+ }
2617
+ get onTertiary() {
2618
+ return this.getArgb(this.colors.onTertiary());
2619
+ }
2620
+ get tertiaryContainer() {
2621
+ return this.getArgb(this.colors.tertiaryContainer());
2622
+ }
2623
+ get onTertiaryContainer() {
2624
+ return this.getArgb(this.colors.onTertiaryContainer());
2625
+ }
2626
+ get tertiaryFixed() {
2627
+ return this.getArgb(this.colors.tertiaryFixed());
2628
+ }
2629
+ get tertiaryFixedDim() {
2630
+ return this.getArgb(this.colors.tertiaryFixedDim());
2631
+ }
2632
+ get onTertiaryFixed() {
2633
+ return this.getArgb(this.colors.onTertiaryFixed());
2634
+ }
2635
+ get onTertiaryFixedVariant() {
2636
+ return this.getArgb(this.colors.onTertiaryFixedVariant());
2637
+ }
2638
+ get error() {
2639
+ return this.getArgb(this.colors.error());
2640
+ }
2641
+ get errorDim() {
2642
+ let e = this.colors.errorDim();
2643
+ if (e === void 0) throw Error("`errorDim` color is undefined prior to 2025 spec.");
2644
+ return this.getArgb(e);
2645
+ }
2646
+ get onError() {
2647
+ return this.getArgb(this.colors.onError());
2648
+ }
2649
+ get errorContainer() {
2650
+ return this.getArgb(this.colors.errorContainer());
2651
+ }
2652
+ get onErrorContainer() {
2653
+ return this.getArgb(this.colors.onErrorContainer());
2654
+ }
2655
+ };
2656
+ Z.DEFAULT_SPEC_VERSION = "2021", Z.DEFAULT_PLATFORM = "phone";
2657
+ var oe = class {
2658
+ getPrimaryPalette(e, t, n, r, i) {
2659
+ switch (e) {
2660
+ case W.CONTENT:
2661
+ case W.FIDELITY: return B.fromHueAndChroma(t.hue, t.chroma);
2662
+ case W.FRUIT_SALAD: return B.fromHueAndChroma(a(t.hue - 50), 48);
2663
+ case W.MONOCHROME: return B.fromHueAndChroma(t.hue, 0);
2664
+ case W.NEUTRAL: return B.fromHueAndChroma(t.hue, 12);
2665
+ case W.RAINBOW: return B.fromHueAndChroma(t.hue, 48);
2666
+ case W.TONAL_SPOT: return B.fromHueAndChroma(t.hue, 36);
2667
+ case W.EXPRESSIVE: return B.fromHueAndChroma(a(t.hue + 240), 40);
2668
+ case W.VIBRANT: return B.fromHueAndChroma(t.hue, 200);
2669
+ default: throw Error(`Unsupported variant: ${e}`);
2670
+ }
2671
+ }
2672
+ getSecondaryPalette(e, t, n, r, i) {
2673
+ switch (e) {
2674
+ case W.CONTENT:
2675
+ case W.FIDELITY: return B.fromHueAndChroma(t.hue, Math.max(t.chroma - 32, t.chroma * .5));
2676
+ case W.FRUIT_SALAD: return B.fromHueAndChroma(a(t.hue - 50), 36);
2677
+ case W.MONOCHROME: return B.fromHueAndChroma(t.hue, 0);
2678
+ case W.NEUTRAL: return B.fromHueAndChroma(t.hue, 8);
2679
+ case W.RAINBOW: return B.fromHueAndChroma(t.hue, 16);
2680
+ case W.TONAL_SPOT: return B.fromHueAndChroma(t.hue, 16);
2681
+ case W.EXPRESSIVE: return B.fromHueAndChroma(Z.getRotatedHue(t, [
2682
+ 0,
2683
+ 21,
2684
+ 51,
2685
+ 121,
2686
+ 151,
2687
+ 191,
2688
+ 271,
2689
+ 321,
2690
+ 360
2691
+ ], [
2692
+ 45,
2693
+ 95,
2694
+ 45,
2695
+ 20,
2696
+ 45,
2697
+ 90,
2698
+ 45,
2699
+ 45,
2700
+ 45
2701
+ ]), 24);
2702
+ case W.VIBRANT: return B.fromHueAndChroma(Z.getRotatedHue(t, [
2703
+ 0,
2704
+ 41,
2705
+ 61,
2706
+ 101,
2707
+ 131,
2708
+ 181,
2709
+ 251,
2710
+ 301,
2711
+ 360
2712
+ ], [
2713
+ 18,
2714
+ 15,
2715
+ 10,
2716
+ 12,
2717
+ 15,
2718
+ 18,
2719
+ 15,
2720
+ 12,
2721
+ 12
2722
+ ]), 24);
2723
+ default: throw Error(`Unsupported variant: ${e}`);
2724
+ }
2725
+ }
2726
+ getTertiaryPalette(e, t, n, r, i) {
2727
+ switch (e) {
2728
+ case W.CONTENT: return B.fromHct(M.fixIfDisliked(new V(t).analogous(3, 6)[2]));
2729
+ case W.FIDELITY: return B.fromHct(M.fixIfDisliked(new V(t).complement));
2730
+ case W.FRUIT_SALAD: return B.fromHueAndChroma(t.hue, 36);
2731
+ case W.MONOCHROME: return B.fromHueAndChroma(t.hue, 0);
2732
+ case W.NEUTRAL: return B.fromHueAndChroma(t.hue, 16);
2733
+ case W.RAINBOW:
2734
+ case W.TONAL_SPOT: return B.fromHueAndChroma(a(t.hue + 60), 24);
2735
+ case W.EXPRESSIVE: return B.fromHueAndChroma(Z.getRotatedHue(t, [
2736
+ 0,
2737
+ 21,
2738
+ 51,
2739
+ 121,
2740
+ 151,
2741
+ 191,
2742
+ 271,
2743
+ 321,
2744
+ 360
2745
+ ], [
2746
+ 120,
2747
+ 120,
2748
+ 20,
2749
+ 45,
2750
+ 20,
2751
+ 15,
2752
+ 20,
2753
+ 120,
2754
+ 120
2755
+ ]), 32);
2756
+ case W.VIBRANT: return B.fromHueAndChroma(Z.getRotatedHue(t, [
2757
+ 0,
2758
+ 41,
2759
+ 61,
2760
+ 101,
2761
+ 131,
2762
+ 181,
2763
+ 251,
2764
+ 301,
2765
+ 360
2766
+ ], [
2767
+ 35,
2768
+ 30,
2769
+ 20,
2770
+ 25,
2771
+ 30,
2772
+ 35,
2773
+ 30,
2774
+ 25,
2775
+ 25
2776
+ ]), 32);
2777
+ default: throw Error(`Unsupported variant: ${e}`);
2778
+ }
2779
+ }
2780
+ getNeutralPalette(e, t, n, r, i) {
2781
+ switch (e) {
2782
+ case W.CONTENT:
2783
+ case W.FIDELITY: return B.fromHueAndChroma(t.hue, t.chroma / 8);
2784
+ case W.FRUIT_SALAD: return B.fromHueAndChroma(t.hue, 10);
2785
+ case W.MONOCHROME: return B.fromHueAndChroma(t.hue, 0);
2786
+ case W.NEUTRAL: return B.fromHueAndChroma(t.hue, 2);
2787
+ case W.RAINBOW: return B.fromHueAndChroma(t.hue, 0);
2788
+ case W.TONAL_SPOT: return B.fromHueAndChroma(t.hue, 6);
2789
+ case W.EXPRESSIVE: return B.fromHueAndChroma(a(t.hue + 15), 8);
2790
+ case W.VIBRANT: return B.fromHueAndChroma(t.hue, 10);
2791
+ default: throw Error(`Unsupported variant: ${e}`);
2792
+ }
2793
+ }
2794
+ getNeutralVariantPalette(e, t, n, r, i) {
2795
+ switch (e) {
2796
+ case W.CONTENT: return B.fromHueAndChroma(t.hue, t.chroma / 8 + 4);
2797
+ case W.FIDELITY: return B.fromHueAndChroma(t.hue, t.chroma / 8 + 4);
2798
+ case W.FRUIT_SALAD: return B.fromHueAndChroma(t.hue, 16);
2799
+ case W.MONOCHROME: return B.fromHueAndChroma(t.hue, 0);
2800
+ case W.NEUTRAL: return B.fromHueAndChroma(t.hue, 2);
2801
+ case W.RAINBOW: return B.fromHueAndChroma(t.hue, 0);
2802
+ case W.TONAL_SPOT: return B.fromHueAndChroma(t.hue, 8);
2803
+ case W.EXPRESSIVE: return B.fromHueAndChroma(a(t.hue + 15), 12);
2804
+ case W.VIBRANT: return B.fromHueAndChroma(t.hue, 12);
2805
+ default: throw Error(`Unsupported variant: ${e}`);
2806
+ }
2807
+ }
2808
+ getErrorPalette(e, t, n, r, i) {}
2809
+ }, se = class e extends oe {
2810
+ getPrimaryPalette(e, t, n, r, i) {
2811
+ switch (e) {
2812
+ case W.NEUTRAL: return B.fromHueAndChroma(t.hue, r === "phone" ? A.isBlue(t.hue) ? 12 : 8 : A.isBlue(t.hue) ? 16 : 12);
2813
+ case W.TONAL_SPOT: return B.fromHueAndChroma(t.hue, r === "phone" && n ? 26 : 32);
2814
+ case W.EXPRESSIVE: return B.fromHueAndChroma(t.hue, r === "phone" ? n ? 36 : 48 : 40);
2815
+ case W.VIBRANT: return B.fromHueAndChroma(t.hue, r === "phone" ? 74 : 56);
2816
+ default: return super.getPrimaryPalette(e, t, n, r, i);
2817
+ }
2818
+ }
2819
+ getSecondaryPalette(e, t, n, r, i) {
2820
+ switch (e) {
2821
+ case W.NEUTRAL: return B.fromHueAndChroma(t.hue, r === "phone" ? A.isBlue(t.hue) ? 6 : 4 : A.isBlue(t.hue) ? 10 : 6);
2822
+ case W.TONAL_SPOT: return B.fromHueAndChroma(t.hue, 16);
2823
+ case W.EXPRESSIVE: return B.fromHueAndChroma(Z.getRotatedHue(t, [
2824
+ 0,
2825
+ 105,
2826
+ 140,
2827
+ 204,
2828
+ 253,
2829
+ 278,
2830
+ 300,
2831
+ 333,
2832
+ 360
2833
+ ], [
2834
+ -160,
2835
+ 155,
2836
+ -100,
2837
+ 96,
2838
+ -96,
2839
+ -156,
2840
+ -165,
2841
+ -160
2842
+ ]), r === "phone" && n ? 16 : 24);
2843
+ case W.VIBRANT: return B.fromHueAndChroma(Z.getRotatedHue(t, [
2844
+ 0,
2845
+ 38,
2846
+ 105,
2847
+ 140,
2848
+ 333,
2849
+ 360
2850
+ ], [
2851
+ -14,
2852
+ 10,
2853
+ -14,
2854
+ 10,
2855
+ -14
2856
+ ]), r === "phone" ? 56 : 36);
2857
+ default: return super.getSecondaryPalette(e, t, n, r, i);
2858
+ }
2859
+ }
2860
+ getTertiaryPalette(e, t, n, r, i) {
2861
+ switch (e) {
2862
+ case W.NEUTRAL: return B.fromHueAndChroma(Z.getRotatedHue(t, [
2863
+ 0,
2864
+ 38,
2865
+ 105,
2866
+ 161,
2867
+ 204,
2868
+ 278,
2869
+ 333,
2870
+ 360
2871
+ ], [
2872
+ -32,
2873
+ 26,
2874
+ 10,
2875
+ -39,
2876
+ 24,
2877
+ -15,
2878
+ -32
2879
+ ]), r === "phone" ? 20 : 36);
2880
+ case W.TONAL_SPOT: return B.fromHueAndChroma(Z.getRotatedHue(t, [
2881
+ 0,
2882
+ 20,
2883
+ 71,
2884
+ 161,
2885
+ 333,
2886
+ 360
2887
+ ], [
2888
+ -40,
2889
+ 48,
2890
+ -32,
2891
+ 40,
2892
+ -32
2893
+ ]), r === "phone" ? 28 : 32);
2894
+ case W.EXPRESSIVE: return B.fromHueAndChroma(Z.getRotatedHue(t, [
2895
+ 0,
2896
+ 105,
2897
+ 140,
2898
+ 204,
2899
+ 253,
2900
+ 278,
2901
+ 300,
2902
+ 333,
2903
+ 360
2904
+ ], [
2905
+ -165,
2906
+ 160,
2907
+ -105,
2908
+ 101,
2909
+ -101,
2910
+ -160,
2911
+ -170,
2912
+ -165
2913
+ ]), 48);
2914
+ case W.VIBRANT: return B.fromHueAndChroma(Z.getRotatedHue(t, [
2915
+ 0,
2916
+ 38,
2917
+ 71,
2918
+ 105,
2919
+ 140,
2920
+ 161,
2921
+ 253,
2922
+ 333,
2923
+ 360
2924
+ ], [
2925
+ -72,
2926
+ 35,
2927
+ 24,
2928
+ -24,
2929
+ 62,
2930
+ 50,
2931
+ 62,
2932
+ -72
2933
+ ]), 56);
2934
+ default: return super.getTertiaryPalette(e, t, n, r, i);
2935
+ }
2936
+ }
2937
+ static getExpressiveNeutralHue(e) {
2938
+ return Z.getRotatedHue(e, [
2939
+ 0,
2940
+ 71,
2941
+ 124,
2942
+ 253,
2943
+ 278,
2944
+ 300,
2945
+ 360
2946
+ ], [
2947
+ 10,
2948
+ 0,
2949
+ 10,
2950
+ 0,
2951
+ 10,
2952
+ 0
2953
+ ]);
2954
+ }
2955
+ static getExpressiveNeutralChroma(t, n, r) {
2956
+ let i = e.getExpressiveNeutralHue(t);
2957
+ return r === "phone" ? n ? A.isYellow(i) ? 6 : 14 : 18 : 12;
2958
+ }
2959
+ static getVibrantNeutralHue(e) {
2960
+ return Z.getRotatedHue(e, [
2961
+ 0,
2962
+ 38,
2963
+ 105,
2964
+ 140,
2965
+ 333,
2966
+ 360
2967
+ ], [
2968
+ -14,
2969
+ 10,
2970
+ -14,
2971
+ 10,
2972
+ -14
2973
+ ]);
2974
+ }
2975
+ static getVibrantNeutralChroma(t, n) {
2976
+ let r = e.getVibrantNeutralHue(t);
2977
+ return n === "phone" || A.isBlue(r) ? 28 : 20;
2978
+ }
2979
+ getNeutralPalette(t, n, r, i, a) {
2980
+ switch (t) {
2981
+ case W.NEUTRAL: return B.fromHueAndChroma(n.hue, i === "phone" ? 1.4 : 6);
2982
+ case W.TONAL_SPOT: return B.fromHueAndChroma(n.hue, i === "phone" ? 5 : 10);
2983
+ case W.EXPRESSIVE: return B.fromHueAndChroma(e.getExpressiveNeutralHue(n), e.getExpressiveNeutralChroma(n, r, i));
2984
+ case W.VIBRANT: return B.fromHueAndChroma(e.getVibrantNeutralHue(n), e.getVibrantNeutralChroma(n, i));
2985
+ default: return super.getNeutralPalette(t, n, r, i, a);
2986
+ }
2987
+ }
2988
+ getNeutralVariantPalette(t, n, r, i, a) {
2989
+ switch (t) {
2990
+ case W.NEUTRAL: return B.fromHueAndChroma(n.hue, (i === "phone" ? 1.4 : 6) * 2.2);
2991
+ case W.TONAL_SPOT: return B.fromHueAndChroma(n.hue, (i === "phone" ? 5 : 10) * 1.7);
2992
+ case W.EXPRESSIVE:
2993
+ let o = e.getExpressiveNeutralHue(n), s = e.getExpressiveNeutralChroma(n, r, i);
2994
+ return B.fromHueAndChroma(o, s * (o >= 105 && o < 125 ? 1.6 : 2.3));
2995
+ case W.VIBRANT:
2996
+ let c = e.getVibrantNeutralHue(n), l = e.getVibrantNeutralChroma(n, i);
2997
+ return B.fromHueAndChroma(c, l * 1.29);
2998
+ default: return super.getNeutralVariantPalette(t, n, r, i, a);
2999
+ }
3000
+ }
3001
+ getErrorPalette(e, t, n, r, i) {
3002
+ let a = Z.getPiecewiseHue(t, [
3003
+ 0,
3004
+ 3,
3005
+ 13,
3006
+ 23,
3007
+ 33,
3008
+ 43,
3009
+ 153,
3010
+ 273,
3011
+ 360
3012
+ ], [
3013
+ 12,
3014
+ 22,
3015
+ 32,
3016
+ 12,
3017
+ 22,
3018
+ 32,
3019
+ 22,
3020
+ 12
3021
+ ]);
3022
+ switch (e) {
3023
+ case W.NEUTRAL: return B.fromHueAndChroma(a, r === "phone" ? 50 : 40);
3024
+ case W.TONAL_SPOT: return B.fromHueAndChroma(a, r === "phone" ? 60 : 48);
3025
+ case W.EXPRESSIVE: return B.fromHueAndChroma(a, r === "phone" ? 64 : 48);
3026
+ case W.VIBRANT: return B.fromHueAndChroma(a, r === "phone" ? 80 : 60);
3027
+ default: return super.getErrorPalette(e, t, n, r, i);
3028
+ }
3029
+ }
3030
+ }, ce = new oe(), le = new se();
3031
+ function Q(e) {
3032
+ return e === "2025" ? le : ce;
3033
+ }
3034
+ //#endregion
3035
+ //#region node_modules/.pnpm/@material+material-color-utilities@0.4.0/node_modules/@material/material-color-utilities/scheme/scheme_content.js
3036
+ var ue = class extends Z {
3037
+ constructor(e, t, n, r = Z.DEFAULT_SPEC_VERSION, i = Z.DEFAULT_PLATFORM) {
3038
+ super({
3039
+ sourceColorHct: e,
3040
+ variant: W.CONTENT,
3041
+ contrastLevel: n,
3042
+ isDark: t,
3043
+ platform: i,
3044
+ specVersion: r
3045
+ });
3046
+ }
3047
+ }, de = class extends Z {
3048
+ constructor(e, t, n, r = Z.DEFAULT_SPEC_VERSION, i = Z.DEFAULT_PLATFORM) {
3049
+ super({
3050
+ sourceColorHct: e,
3051
+ variant: W.EXPRESSIVE,
3052
+ contrastLevel: n,
3053
+ isDark: t,
3054
+ platform: i,
3055
+ specVersion: r
3056
+ });
3057
+ }
3058
+ }, fe = class extends Z {
3059
+ constructor(e, t, n, r = Z.DEFAULT_SPEC_VERSION, i = Z.DEFAULT_PLATFORM) {
3060
+ super({
3061
+ sourceColorHct: e,
3062
+ variant: W.FIDELITY,
3063
+ contrastLevel: n,
3064
+ isDark: t,
3065
+ platform: i,
3066
+ specVersion: r
3067
+ });
3068
+ }
3069
+ }, pe = class extends Z {
3070
+ constructor(e, t, n, r = Z.DEFAULT_SPEC_VERSION, i = Z.DEFAULT_PLATFORM) {
3071
+ super({
3072
+ sourceColorHct: e,
3073
+ variant: W.FRUIT_SALAD,
3074
+ contrastLevel: n,
3075
+ isDark: t,
3076
+ platform: i,
3077
+ specVersion: r
3078
+ });
3079
+ }
3080
+ }, me = class extends Z {
3081
+ constructor(e, t, n, r = Z.DEFAULT_SPEC_VERSION, i = Z.DEFAULT_PLATFORM) {
3082
+ super({
3083
+ sourceColorHct: e,
3084
+ variant: W.MONOCHROME,
3085
+ contrastLevel: n,
3086
+ isDark: t,
3087
+ platform: i,
3088
+ specVersion: r
3089
+ });
3090
+ }
3091
+ }, he = class extends Z {
3092
+ constructor(e, t, n, r = Z.DEFAULT_SPEC_VERSION, i = Z.DEFAULT_PLATFORM) {
3093
+ super({
3094
+ sourceColorHct: e,
3095
+ variant: W.NEUTRAL,
3096
+ contrastLevel: n,
3097
+ isDark: t,
3098
+ platform: i,
3099
+ specVersion: r
3100
+ });
3101
+ }
3102
+ }, ge = class extends Z {
3103
+ constructor(e, t, n, r = Z.DEFAULT_SPEC_VERSION, i = Z.DEFAULT_PLATFORM) {
3104
+ super({
3105
+ sourceColorHct: e,
3106
+ variant: W.RAINBOW,
3107
+ contrastLevel: n,
3108
+ isDark: t,
3109
+ platform: i,
3110
+ specVersion: r
3111
+ });
3112
+ }
3113
+ }, _e = class extends Z {
3114
+ constructor(e, t, n, r = Z.DEFAULT_SPEC_VERSION, i = Z.DEFAULT_PLATFORM) {
3115
+ super({
3116
+ sourceColorHct: e,
3117
+ variant: W.TONAL_SPOT,
3118
+ contrastLevel: n,
3119
+ isDark: t,
3120
+ platform: i,
3121
+ specVersion: r
3122
+ });
3123
+ }
3124
+ }, ve = class extends Z {
3125
+ constructor(e, t, n, r = Z.DEFAULT_SPEC_VERSION, i = Z.DEFAULT_PLATFORM) {
3126
+ super({
3127
+ sourceColorHct: e,
3128
+ variant: W.VIBRANT,
3129
+ contrastLevel: n,
3130
+ isDark: t,
3131
+ platform: i,
3132
+ specVersion: r
3133
+ });
3134
+ }
3135
+ };
3136
+ //#endregion
3137
+ //#region node_modules/.pnpm/@material+material-color-utilities@0.4.0/node_modules/@material/material-color-utilities/utils/string_utils.js
3138
+ function ye(e) {
3139
+ let t = f(e), n = p(e), r = m(e), i = [
3140
+ t.toString(16),
3141
+ n.toString(16),
3142
+ r.toString(16)
3143
+ ];
3144
+ for (let [e, t] of i.entries()) t.length === 1 && (i[e] = "0" + t);
3145
+ return "#" + i.join("");
3146
+ }
3147
+ function be(e) {
3148
+ e = e.replace("#", "");
3149
+ let t = e.length === 3, n = e.length === 6, r = e.length === 8;
3150
+ if (!t && !n && !r) throw Error("unexpected hex " + e);
3151
+ let i = 0, a = 0, o = 0;
3152
+ return t ? (i = $(e.slice(0, 1).repeat(2)), a = $(e.slice(1, 2).repeat(2)), o = $(e.slice(2, 3).repeat(2))) : n ? (i = $(e.slice(0, 2)), a = $(e.slice(2, 4)), o = $(e.slice(4, 6))) : r && (i = $(e.slice(2, 4)), a = $(e.slice(4, 6)), o = $(e.slice(6, 8))), (255 << 24 | (i & 255) << 16 | (a & 255) << 8 | o & 255) >>> 0;
3153
+ }
3154
+ function $(e) {
3155
+ return parseInt(e, 16);
3156
+ }
3157
+ //#endregion
3158
+ export { A as Hct, X as MaterialDynamicColors, ue as SchemeContent, de as SchemeExpressive, fe as SchemeFidelity, pe as SchemeFruitSalad, me as SchemeMonochrome, he as SchemeNeutral, ge as SchemeRainbow, _e as SchemeTonalSpot, ve as SchemeVibrant, be as argbFromHex, ye as hexFromArgb };
3159
+
3160
+ //# sourceMappingURL=material-color-utilities-Cktu8DBU.js.map