@gram-ai/elements 1.18.8 → 1.19.0

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.
@@ -1,128 +1,127 @@
1
- import { jsxs as fe, jsx as te } from "react/jsx-runtime";
2
- import { createContext as Ce, useContext as We, forwardRef as ze, createElement as se, useRef as be, useState as _e, useMemo as Ue, useEffect as Be } from "react";
3
- import { useAssistantState as $e } from "@assistant-ui/react";
4
- import { parse as De, View as Je, Warn as qe } from "vega";
5
- function Ae(e) {
6
- var r, o, t = "";
7
- if (typeof e == "string" || typeof e == "number") t += e;
1
+ import { jsx as me, jsxs as qe } from "react/jsx-runtime";
2
+ import { createContext as Ae, useState as Ke, useMemo as H, useEffect as Re, useLayoutEffect as Rt, useContext as Ze, useSyncExternalStore as It, useDebugValue as Mt, forwardRef as Qe, createElement as Ce, useRef as Ve } from "react";
3
+ import { parse as zt, View as Pt, Warn as _t } from "vega";
4
+ function et(e) {
5
+ var t, r, o = "";
6
+ if (typeof e == "string" || typeof e == "number") o += e;
8
7
  else if (typeof e == "object") if (Array.isArray(e)) {
9
- var a = e.length;
10
- for (r = 0; r < a; r++) e[r] && (o = Ae(e[r])) && (t && (t += " "), t += o);
11
- } else for (o in e) e[o] && (t && (t += " "), t += o);
12
- return t;
13
- }
14
- function Ye() {
15
- for (var e, r, o = 0, t = "", a = arguments.length; o < a; o++) (e = arguments[o]) && (r = Ae(e)) && (t && (t += " "), t += r);
16
- return t;
8
+ var n = e.length;
9
+ for (t = 0; t < n; t++) e[t] && (r = et(e[t])) && (o && (o += " "), o += r);
10
+ } else for (r in e) e[r] && (o && (o += " "), o += r);
11
+ return o;
17
12
  }
18
- const Xe = (e, r) => {
19
- const o = new Array(e.length + r.length);
20
- for (let t = 0; t < e.length; t++)
21
- o[t] = e[t];
22
- for (let t = 0; t < r.length; t++)
23
- o[e.length + t] = r[t];
13
+ function Ot() {
14
+ for (var e, t, r = 0, o = "", n = arguments.length; r < n; r++) (e = arguments[r]) && (t = et(e)) && (o && (o += " "), o += t);
24
15
  return o;
25
- }, Ze = (e, r) => ({
16
+ }
17
+ const Tt = (e, t) => {
18
+ const r = new Array(e.length + t.length);
19
+ for (let o = 0; o < e.length; o++)
20
+ r[o] = e[o];
21
+ for (let o = 0; o < t.length; o++)
22
+ r[e.length + o] = t[o];
23
+ return r;
24
+ }, Nt = (e, t) => ({
26
25
  classGroupId: e,
27
- validator: r
28
- }), Se = (e = /* @__PURE__ */ new Map(), r = null, o) => ({
26
+ validator: t
27
+ }), tt = (e = /* @__PURE__ */ new Map(), t = null, r) => ({
29
28
  nextPart: e,
30
- validators: r,
31
- classGroupId: o
32
- }), H = "-", he = [], He = "arbitrary..", Ke = (e) => {
33
- const r = et(e), {
34
- conflictingClassGroups: o,
35
- conflictingClassGroupModifiers: t
29
+ validators: t,
30
+ classGroupId: r
31
+ }), fe = "-", De = [], Lt = "arbitrary..", jt = (e) => {
32
+ const t = Gt(e), {
33
+ conflictingClassGroups: r,
34
+ conflictingClassGroupModifiers: o
36
35
  } = e;
37
36
  return {
38
- getClassGroupId: (i) => {
39
- if (i.startsWith("[") && i.endsWith("]"))
40
- return Qe(i);
41
- const u = i.split(H), c = u[0] === "" && u.length > 1 ? 1 : 0;
42
- return Re(u, c, r);
37
+ getClassGroupId: (s) => {
38
+ if (s.startsWith("[") && s.endsWith("]"))
39
+ return Ft(s);
40
+ const l = s.split(fe), a = l[0] === "" && l.length > 1 ? 1 : 0;
41
+ return rt(l, a, t);
43
42
  },
44
- getConflictingClassGroupIds: (i, u) => {
45
- if (u) {
46
- const c = t[i], g = o[i];
47
- return c ? g ? Xe(g, c) : c : g || he;
43
+ getConflictingClassGroupIds: (s, l) => {
44
+ if (l) {
45
+ const a = o[s], u = r[s];
46
+ return a ? u ? Tt(u, a) : a : u || De;
48
47
  }
49
- return o[i] || he;
48
+ return r[s] || De;
50
49
  }
51
50
  };
52
- }, Re = (e, r, o) => {
53
- if (e.length - r === 0)
54
- return o.classGroupId;
55
- const a = e[r], l = o.nextPart.get(a);
56
- if (l) {
57
- const g = Re(e, r + 1, l);
58
- if (g) return g;
51
+ }, rt = (e, t, r) => {
52
+ if (e.length - t === 0)
53
+ return r.classGroupId;
54
+ const n = e[t], i = r.nextPart.get(n);
55
+ if (i) {
56
+ const u = rt(e, t + 1, i);
57
+ if (u) return u;
59
58
  }
60
- const i = o.validators;
61
- if (i === null)
59
+ const s = r.validators;
60
+ if (s === null)
62
61
  return;
63
- const u = r === 0 ? e.join(H) : e.slice(r).join(H), c = i.length;
64
- for (let g = 0; g < c; g++) {
65
- const f = i[g];
66
- if (f.validator(u))
67
- return f.classGroupId;
62
+ const l = t === 0 ? e.join(fe) : e.slice(t).join(fe), a = s.length;
63
+ for (let u = 0; u < a; u++) {
64
+ const m = s[u];
65
+ if (m.validator(l))
66
+ return m.classGroupId;
68
67
  }
69
- }, Qe = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
70
- const r = e.slice(1, -1), o = r.indexOf(":"), t = r.slice(0, o);
71
- return t ? He + t : void 0;
72
- })(), et = (e) => {
68
+ }, Ft = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
69
+ const t = e.slice(1, -1), r = t.indexOf(":"), o = t.slice(0, r);
70
+ return o ? Lt + o : void 0;
71
+ })(), Gt = (e) => {
73
72
  const {
74
- theme: r,
75
- classGroups: o
73
+ theme: t,
74
+ classGroups: r
76
75
  } = e;
77
- return tt(o, r);
78
- }, tt = (e, r) => {
79
- const o = Se();
80
- for (const t in e) {
81
- const a = e[t];
82
- ae(a, o, t, r);
76
+ return qt(r, t);
77
+ }, qt = (e, t) => {
78
+ const r = tt();
79
+ for (const o in e) {
80
+ const n = e[o];
81
+ Ie(n, r, o, t);
83
82
  }
84
- return o;
85
- }, ae = (e, r, o, t) => {
86
- const a = e.length;
87
- for (let l = 0; l < a; l++) {
88
- const i = e[l];
89
- rt(i, r, o, t);
83
+ return r;
84
+ }, Ie = (e, t, r, o) => {
85
+ const n = e.length;
86
+ for (let i = 0; i < n; i++) {
87
+ const s = e[i];
88
+ Vt(s, t, r, o);
90
89
  }
91
- }, rt = (e, r, o, t) => {
90
+ }, Vt = (e, t, r, o) => {
92
91
  if (typeof e == "string") {
93
- ot(e, r, o);
92
+ Dt(e, t, r);
94
93
  return;
95
94
  }
96
95
  if (typeof e == "function") {
97
- st(e, r, o, t);
96
+ Ut(e, t, r, o);
98
97
  return;
99
98
  }
100
- nt(e, r, o, t);
101
- }, ot = (e, r, o) => {
102
- const t = e === "" ? r : Ie(r, e);
103
- t.classGroupId = o;
104
- }, st = (e, r, o, t) => {
105
- if (at(e)) {
106
- ae(e(t), r, o, t);
99
+ $t(e, t, r, o);
100
+ }, Dt = (e, t, r) => {
101
+ const o = e === "" ? t : ot(t, e);
102
+ o.classGroupId = r;
103
+ }, Ut = (e, t, r, o) => {
104
+ if (Wt(e)) {
105
+ Ie(e(o), t, r, o);
107
106
  return;
108
107
  }
109
- r.validators === null && (r.validators = []), r.validators.push(Ze(o, e));
110
- }, nt = (e, r, o, t) => {
111
- const a = Object.entries(e), l = a.length;
112
- for (let i = 0; i < l; i++) {
113
- const [u, c] = a[i];
114
- ae(c, Ie(r, u), o, t);
108
+ t.validators === null && (t.validators = []), t.validators.push(Nt(r, e));
109
+ }, $t = (e, t, r, o) => {
110
+ const n = Object.entries(e), i = n.length;
111
+ for (let s = 0; s < i; s++) {
112
+ const [l, a] = n[s];
113
+ Ie(a, ot(t, l), r, o);
115
114
  }
116
- }, Ie = (e, r) => {
117
- let o = e;
118
- const t = r.split(H), a = t.length;
119
- for (let l = 0; l < a; l++) {
120
- const i = t[l];
121
- let u = o.nextPart.get(i);
122
- u || (u = Se(), o.nextPart.set(i, u)), o = u;
115
+ }, ot = (e, t) => {
116
+ let r = e;
117
+ const o = t.split(fe), n = o.length;
118
+ for (let i = 0; i < n; i++) {
119
+ const s = o[i];
120
+ let l = r.nextPart.get(s);
121
+ l || (l = tt(), r.nextPart.set(s, l)), r = l;
123
122
  }
124
- return o;
125
- }, at = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, it = (e) => {
123
+ return r;
124
+ }, Wt = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Ht = (e) => {
126
125
  if (e < 1)
127
126
  return {
128
127
  get: () => {
@@ -130,178 +129,178 @@ const Xe = (e, r) => {
130
129
  set: () => {
131
130
  }
132
131
  };
133
- let r = 0, o = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
134
- const a = (l, i) => {
135
- o[l] = i, r++, r > e && (r = 0, t = o, o = /* @__PURE__ */ Object.create(null));
132
+ let t = 0, r = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
133
+ const n = (i, s) => {
134
+ r[i] = s, t++, t > e && (t = 0, o = r, r = /* @__PURE__ */ Object.create(null));
136
135
  };
137
136
  return {
138
- get(l) {
139
- let i = o[l];
140
- if (i !== void 0)
141
- return i;
142
- if ((i = t[l]) !== void 0)
143
- return a(l, i), i;
137
+ get(i) {
138
+ let s = r[i];
139
+ if (s !== void 0)
140
+ return s;
141
+ if ((s = o[i]) !== void 0)
142
+ return n(i, s), s;
144
143
  },
145
- set(l, i) {
146
- l in o ? o[l] = i : a(l, i);
144
+ set(i, s) {
145
+ i in r ? r[i] = s : n(i, s);
147
146
  }
148
147
  };
149
- }, ne = "!", xe = ":", lt = [], ye = (e, r, o, t, a) => ({
148
+ }, Ee = "!", Ue = ":", Bt = [], $e = (e, t, r, o, n) => ({
150
149
  modifiers: e,
151
- hasImportantModifier: r,
152
- baseClassName: o,
153
- maybePostfixModifierPosition: t,
154
- isExternal: a
155
- }), ct = (e) => {
150
+ hasImportantModifier: t,
151
+ baseClassName: r,
152
+ maybePostfixModifierPosition: o,
153
+ isExternal: n
154
+ }), Jt = (e) => {
156
155
  const {
157
- prefix: r,
158
- experimentalParseClassName: o
156
+ prefix: t,
157
+ experimentalParseClassName: r
159
158
  } = e;
160
- let t = (a) => {
161
- const l = [];
162
- let i = 0, u = 0, c = 0, g;
163
- const f = a.length;
164
- for (let C = 0; C < f; C++) {
165
- const k = a[C];
166
- if (i === 0 && u === 0) {
167
- if (k === xe) {
168
- l.push(a.slice(c, C)), c = C + 1;
159
+ let o = (n) => {
160
+ const i = [];
161
+ let s = 0, l = 0, a = 0, u;
162
+ const m = n.length;
163
+ for (let A = 0; A < m; A++) {
164
+ const C = n[A];
165
+ if (s === 0 && l === 0) {
166
+ if (C === Ue) {
167
+ i.push(n.slice(a, A)), a = A + 1;
169
168
  continue;
170
169
  }
171
- if (k === "/") {
172
- g = C;
170
+ if (C === "/") {
171
+ u = A;
173
172
  continue;
174
173
  }
175
174
  }
176
- k === "[" ? i++ : k === "]" ? i-- : k === "(" ? u++ : k === ")" && u--;
175
+ C === "[" ? s++ : C === "]" ? s-- : C === "(" ? l++ : C === ")" && l--;
177
176
  }
178
- const x = l.length === 0 ? a : a.slice(c);
179
- let y = x, z = !1;
180
- x.endsWith(ne) ? (y = x.slice(0, -1), z = !0) : (
177
+ const b = i.length === 0 ? n : n.slice(a);
178
+ let g = b, w = !1;
179
+ b.endsWith(Ee) ? (g = b.slice(0, -1), w = !0) : (
181
180
  /**
182
181
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
183
182
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
184
183
  */
185
- x.startsWith(ne) && (y = x.slice(1), z = !0)
184
+ b.startsWith(Ee) && (g = b.slice(1), w = !0)
186
185
  );
187
- const N = g && g > c ? g - c : void 0;
188
- return ye(l, z, y, N);
186
+ const R = u && u > a ? u - a : void 0;
187
+ return $e(i, w, g, R);
189
188
  };
190
- if (r) {
191
- const a = r + xe, l = t;
192
- t = (i) => i.startsWith(a) ? l(i.slice(a.length)) : ye(lt, !1, i, void 0, !0);
189
+ if (t) {
190
+ const n = t + Ue, i = o;
191
+ o = (s) => s.startsWith(n) ? i(s.slice(n.length)) : $e(Bt, !1, s, void 0, !0);
193
192
  }
194
- if (o) {
195
- const a = t;
196
- t = (l) => o({
197
- className: l,
198
- parseClassName: a
193
+ if (r) {
194
+ const n = o;
195
+ o = (i) => r({
196
+ className: i,
197
+ parseClassName: n
199
198
  });
200
199
  }
201
- return t;
202
- }, dt = (e) => {
203
- const r = /* @__PURE__ */ new Map();
204
- return e.orderSensitiveModifiers.forEach((o, t) => {
205
- r.set(o, 1e6 + t);
206
- }), (o) => {
207
- const t = [];
208
- let a = [];
209
- for (let l = 0; l < o.length; l++) {
210
- const i = o[l], u = i[0] === "[", c = r.has(i);
211
- u || c ? (a.length > 0 && (a.sort(), t.push(...a), a = []), t.push(i)) : a.push(i);
200
+ return o;
201
+ }, Yt = (e) => {
202
+ const t = /* @__PURE__ */ new Map();
203
+ return e.orderSensitiveModifiers.forEach((r, o) => {
204
+ t.set(r, 1e6 + o);
205
+ }), (r) => {
206
+ const o = [];
207
+ let n = [];
208
+ for (let i = 0; i < r.length; i++) {
209
+ const s = r[i], l = s[0] === "[", a = t.has(s);
210
+ l || a ? (n.length > 0 && (n.sort(), o.push(...n), n = []), o.push(s)) : n.push(s);
212
211
  }
213
- return a.length > 0 && (a.sort(), t.push(...a)), t;
212
+ return n.length > 0 && (n.sort(), o.push(...n)), o;
214
213
  };
215
- }, pt = (e) => ({
216
- cache: it(e.cacheSize),
217
- parseClassName: ct(e),
218
- sortModifiers: dt(e),
219
- ...Ke(e)
220
- }), mt = /\s+/, ut = (e, r) => {
214
+ }, Xt = (e) => ({
215
+ cache: Ht(e.cacheSize),
216
+ parseClassName: Jt(e),
217
+ sortModifiers: Yt(e),
218
+ ...jt(e)
219
+ }), Kt = /\s+/, Zt = (e, t) => {
221
220
  const {
222
- parseClassName: o,
223
- getClassGroupId: t,
224
- getConflictingClassGroupIds: a,
225
- sortModifiers: l
226
- } = r, i = [], u = e.trim().split(mt);
227
- let c = "";
228
- for (let g = u.length - 1; g >= 0; g -= 1) {
229
- const f = u[g], {
230
- isExternal: x,
231
- modifiers: y,
232
- hasImportantModifier: z,
233
- baseClassName: N,
234
- maybePostfixModifierPosition: C
235
- } = o(f);
236
- if (x) {
237
- c = f + (c.length > 0 ? " " + c : c);
221
+ parseClassName: r,
222
+ getClassGroupId: o,
223
+ getConflictingClassGroupIds: n,
224
+ sortModifiers: i
225
+ } = t, s = [], l = e.trim().split(Kt);
226
+ let a = "";
227
+ for (let u = l.length - 1; u >= 0; u -= 1) {
228
+ const m = l[u], {
229
+ isExternal: b,
230
+ modifiers: g,
231
+ hasImportantModifier: w,
232
+ baseClassName: R,
233
+ maybePostfixModifierPosition: A
234
+ } = r(m);
235
+ if (b) {
236
+ a = m + (a.length > 0 ? " " + a : a);
238
237
  continue;
239
238
  }
240
- let k = !!C, E = t(k ? N.substring(0, C) : N);
241
- if (!E) {
242
- if (!k) {
243
- c = f + (c.length > 0 ? " " + c : c);
239
+ let C = !!A, N = o(C ? R.substring(0, A) : R);
240
+ if (!N) {
241
+ if (!C) {
242
+ a = m + (a.length > 0 ? " " + a : a);
244
243
  continue;
245
244
  }
246
- if (E = t(N), !E) {
247
- c = f + (c.length > 0 ? " " + c : c);
245
+ if (N = o(R), !N) {
246
+ a = m + (a.length > 0 ? " " + a : a);
248
247
  continue;
249
248
  }
250
- k = !1;
249
+ C = !1;
251
250
  }
252
- const B = y.length === 0 ? "" : y.length === 1 ? y[0] : l(y).join(":"), W = z ? B + ne : B, P = W + E;
253
- if (i.indexOf(P) > -1)
251
+ const ne = g.length === 0 ? "" : g.length === 1 ? g[0] : i(g).join(":"), X = w ? ne + Ee : ne, V = X + N;
252
+ if (s.indexOf(V) > -1)
254
253
  continue;
255
- i.push(P);
256
- const G = a(E, k);
257
- for (let T = 0; T < G.length; ++T) {
258
- const _ = G[T];
259
- i.push(W + _);
254
+ s.push(V);
255
+ const D = n(N, C);
256
+ for (let L = 0; L < D.length; ++L) {
257
+ const K = D[L];
258
+ s.push(X + K);
260
259
  }
261
- c = f + (c.length > 0 ? " " + c : c);
260
+ a = m + (a.length > 0 ? " " + a : a);
262
261
  }
263
- return c;
264
- }, gt = (...e) => {
265
- let r = 0, o, t, a = "";
266
- for (; r < e.length; )
267
- (o = e[r++]) && (t = Ne(o)) && (a && (a += " "), a += t);
268
262
  return a;
269
- }, Ne = (e) => {
263
+ }, Qt = (...e) => {
264
+ let t = 0, r, o, n = "";
265
+ for (; t < e.length; )
266
+ (r = e[t++]) && (o = st(r)) && (n && (n += " "), n += o);
267
+ return n;
268
+ }, st = (e) => {
270
269
  if (typeof e == "string")
271
270
  return e;
272
- let r, o = "";
273
- for (let t = 0; t < e.length; t++)
274
- e[t] && (r = Ne(e[t])) && (o && (o += " "), o += r);
275
- return o;
276
- }, ft = (e, ...r) => {
277
- let o, t, a, l;
278
- const i = (c) => {
279
- const g = r.reduce((f, x) => x(f), e());
280
- return o = pt(g), t = o.cache.get, a = o.cache.set, l = u, u(c);
281
- }, u = (c) => {
282
- const g = t(c);
283
- if (g)
284
- return g;
285
- const f = ut(c, o);
286
- return a(c, f), f;
271
+ let t, r = "";
272
+ for (let o = 0; o < e.length; o++)
273
+ e[o] && (t = st(e[o])) && (r && (r += " "), r += t);
274
+ return r;
275
+ }, er = (e, ...t) => {
276
+ let r, o, n, i;
277
+ const s = (a) => {
278
+ const u = t.reduce((m, b) => b(m), e());
279
+ return r = Xt(u), o = r.cache.get, n = r.cache.set, i = l, l(a);
280
+ }, l = (a) => {
281
+ const u = o(a);
282
+ if (u)
283
+ return u;
284
+ const m = Zt(a, r);
285
+ return n(a, m), m;
287
286
  };
288
- return l = i, (...c) => l(gt(...c));
289
- }, bt = [], b = (e) => {
290
- const r = (o) => o[e] || bt;
291
- return r.isThemeGetter = !0, r;
292
- }, Ee = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Te = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ht = /^\d+\/\d+$/, xt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, yt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, wt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, kt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, vt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, L = (e) => ht.test(e), m = (e) => !!e && !Number.isNaN(Number(e)), I = (e) => !!e && Number.isInteger(Number(e)), re = (e) => e.endsWith("%") && m(e.slice(0, -1)), R = (e) => xt.test(e), Ct = () => !0, zt = (e) => (
287
+ return i = s, (...a) => i(Qt(...a));
288
+ }, tr = [], y = (e) => {
289
+ const t = (r) => r[e] || tr;
290
+ return t.isThemeGetter = !0, t;
291
+ }, nt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, it = /^\((?:(\w[\w-]*):)?(.+)\)$/i, rr = /^\d+\/\d+$/, or = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, sr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, nr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ir = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ar = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, $ = (e) => rr.test(e), h = (e) => !!e && !Number.isNaN(Number(e)), T = (e) => !!e && Number.isInteger(Number(e)), we = (e) => e.endsWith("%") && h(e.slice(0, -1)), _ = (e) => or.test(e), lr = () => !0, cr = (e) => (
293
292
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
294
293
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
295
294
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
296
- yt.test(e) && !wt.test(e)
297
- ), Me = () => !1, At = (e) => kt.test(e), St = (e) => vt.test(e), Rt = (e) => !s(e) && !n(e), It = (e) => V(e, Ge, Me), s = (e) => Ee.test(e), O = (e) => V(e, je, zt), oe = (e) => V(e, Ot, m), we = (e) => V(e, Oe, Me), Nt = (e) => V(e, Pe, St), X = (e) => V(e, Le, At), n = (e) => Te.test(e), U = (e) => F(e, je), Et = (e) => F(e, Pt), ke = (e) => F(e, Oe), Tt = (e) => F(e, Ge), Mt = (e) => F(e, Pe), Z = (e) => F(e, Le, !0), V = (e, r, o) => {
298
- const t = Ee.exec(e);
299
- return t ? t[1] ? r(t[1]) : o(t[2]) : !1;
300
- }, F = (e, r, o = !1) => {
301
- const t = Te.exec(e);
302
- return t ? t[1] ? r(t[1]) : o : !1;
303
- }, Oe = (e) => e === "position" || e === "percentage", Pe = (e) => e === "image" || e === "url", Ge = (e) => e === "length" || e === "size" || e === "bg-size", je = (e) => e === "length", Ot = (e) => e === "number", Pt = (e) => e === "family-name", Le = (e) => e === "shadow", Gt = () => {
304
- const e = b("color"), r = b("font"), o = b("text"), t = b("font-weight"), a = b("tracking"), l = b("leading"), i = b("breakpoint"), u = b("container"), c = b("spacing"), g = b("radius"), f = b("shadow"), x = b("inset-shadow"), y = b("text-shadow"), z = b("drop-shadow"), N = b("blur"), C = b("perspective"), k = b("aspect"), E = b("ease"), B = b("animate"), W = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], P = () => [
295
+ sr.test(e) && !nr.test(e)
296
+ ), at = () => !1, dr = (e) => ir.test(e), ur = (e) => ar.test(e), pr = (e) => !c(e) && !d(e), mr = (e) => J(e, dt, at), c = (e) => nt.test(e), F = (e) => J(e, ut, cr), ve = (e) => J(e, yr, h), We = (e) => J(e, lt, at), fr = (e) => J(e, ct, ur), ue = (e) => J(e, pt, dr), d = (e) => it.test(e), Z = (e) => Y(e, ut), hr = (e) => Y(e, xr), He = (e) => Y(e, lt), gr = (e) => Y(e, dt), br = (e) => Y(e, ct), pe = (e) => Y(e, pt, !0), J = (e, t, r) => {
297
+ const o = nt.exec(e);
298
+ return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
299
+ }, Y = (e, t, r = !1) => {
300
+ const o = it.exec(e);
301
+ return o ? o[1] ? t(o[1]) : r : !1;
302
+ }, lt = (e) => e === "position" || e === "percentage", ct = (e) => e === "image" || e === "url", dt = (e) => e === "length" || e === "size" || e === "bg-size", ut = (e) => e === "length", yr = (e) => e === "number", xr = (e) => e === "family-name", pt = (e) => e === "shadow", wr = () => {
303
+ const e = y("color"), t = y("font"), r = y("text"), o = y("font-weight"), n = y("tracking"), i = y("leading"), s = y("breakpoint"), l = y("container"), a = y("spacing"), u = y("radius"), m = y("shadow"), b = y("inset-shadow"), g = y("text-shadow"), w = y("drop-shadow"), R = y("blur"), A = y("perspective"), C = y("aspect"), N = y("ease"), ne = y("animate"), X = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], V = () => [
305
304
  "center",
306
305
  "top",
307
306
  "bottom",
@@ -319,51 +318,51 @@ const Xe = (e, r) => {
319
318
  "bottom-left",
320
319
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
321
320
  "left-bottom"
322
- ], G = () => [...P(), n, s], T = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], p = () => [n, s, c], A = () => [L, "full", "auto", ...p()], ie = () => [I, "none", "subgrid", n, s], le = () => ["auto", {
323
- span: ["full", I, n, s]
324
- }, I, n, s], $ = () => [I, "auto", n, s], ce = () => ["auto", "min", "max", "fr", n, s], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], j = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], S = () => ["auto", ...p()], M = () => [L, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...p()], d = () => [e, n, s], de = () => [...P(), ke, we, {
325
- position: [n, s]
326
- }], pe = () => ["no-repeat", {
321
+ ], D = () => [...V(), d, c], L = () => ["auto", "hidden", "clip", "visible", "scroll"], K = () => ["auto", "contain", "none"], f = () => [d, c, a], z = () => [$, "full", "auto", ...f()], _e = () => [T, "none", "subgrid", d, c], Oe = () => ["auto", {
322
+ span: ["full", T, d, c]
323
+ }, T, d, c], ie = () => [T, "auto", d, c], Te = () => ["auto", "min", "max", "fr", d, c], be = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], U = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], P = () => ["auto", ...f()], j = () => [$, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()], p = () => [e, d, c], Ne = () => [...V(), He, We, {
324
+ position: [d, c]
325
+ }], Le = () => ["no-repeat", {
327
326
  repeat: ["", "x", "y", "space", "round"]
328
- }], me = () => ["auto", "cover", "contain", Tt, It, {
329
- size: [n, s]
330
- }], Q = () => [re, U, O], w = () => [
327
+ }], je = () => ["auto", "cover", "contain", gr, mr, {
328
+ size: [d, c]
329
+ }], ye = () => [we, Z, F], k = () => [
331
330
  // Deprecated since Tailwind CSS v4.0.0
332
331
  "",
333
332
  "none",
334
333
  "full",
335
- g,
336
- n,
337
- s
338
- ], v = () => ["", m, U, O], D = () => ["solid", "dashed", "dotted", "double"], ue = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], h = () => [m, re, ke, we], ge = () => [
334
+ u,
335
+ d,
336
+ c
337
+ ], E = () => ["", h, Z, F], ae = () => ["solid", "dashed", "dotted", "double"], Fe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], x = () => [h, we, He, We], Ge = () => [
339
338
  // Deprecated since Tailwind CSS v4.0.0
340
339
  "",
341
340
  "none",
342
- N,
343
- n,
344
- s
345
- ], J = () => ["none", m, n, s], q = () => ["none", m, n, s], ee = () => [m, n, s], Y = () => [L, "full", ...p()];
341
+ R,
342
+ d,
343
+ c
344
+ ], le = () => ["none", h, d, c], ce = () => ["none", h, d, c], xe = () => [h, d, c], de = () => [$, "full", ...f()];
346
345
  return {
347
346
  cacheSize: 500,
348
347
  theme: {
349
348
  animate: ["spin", "ping", "pulse", "bounce"],
350
349
  aspect: ["video"],
351
- blur: [R],
352
- breakpoint: [R],
353
- color: [Ct],
354
- container: [R],
355
- "drop-shadow": [R],
350
+ blur: [_],
351
+ breakpoint: [_],
352
+ color: [lr],
353
+ container: [_],
354
+ "drop-shadow": [_],
356
355
  ease: ["in", "out", "in-out"],
357
- font: [Rt],
356
+ font: [pr],
358
357
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
359
- "inset-shadow": [R],
358
+ "inset-shadow": [_],
360
359
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
361
360
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
362
- radius: [R],
363
- shadow: [R],
364
- spacing: ["px", m],
365
- text: [R],
366
- "text-shadow": [R],
361
+ radius: [_],
362
+ shadow: [_],
363
+ spacing: ["px", h],
364
+ text: [_],
365
+ "text-shadow": [_],
367
366
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
368
367
  },
369
368
  classGroups: {
@@ -375,7 +374,7 @@ const Xe = (e, r) => {
375
374
  * @see https://tailwindcss.com/docs/aspect-ratio
376
375
  */
377
376
  aspect: [{
378
- aspect: ["auto", "square", L, s, n, k]
377
+ aspect: ["auto", "square", $, c, d, C]
379
378
  }],
380
379
  /**
381
380
  * Container
@@ -388,21 +387,21 @@ const Xe = (e, r) => {
388
387
  * @see https://tailwindcss.com/docs/columns
389
388
  */
390
389
  columns: [{
391
- columns: [m, s, n, u]
390
+ columns: [h, c, d, l]
392
391
  }],
393
392
  /**
394
393
  * Break After
395
394
  * @see https://tailwindcss.com/docs/break-after
396
395
  */
397
396
  "break-after": [{
398
- "break-after": W()
397
+ "break-after": X()
399
398
  }],
400
399
  /**
401
400
  * Break Before
402
401
  * @see https://tailwindcss.com/docs/break-before
403
402
  */
404
403
  "break-before": [{
405
- "break-before": W()
404
+ "break-before": X()
406
405
  }],
407
406
  /**
408
407
  * Break Inside
@@ -466,49 +465,49 @@ const Xe = (e, r) => {
466
465
  * @see https://tailwindcss.com/docs/object-position
467
466
  */
468
467
  "object-position": [{
469
- object: G()
468
+ object: D()
470
469
  }],
471
470
  /**
472
471
  * Overflow
473
472
  * @see https://tailwindcss.com/docs/overflow
474
473
  */
475
474
  overflow: [{
476
- overflow: T()
475
+ overflow: L()
477
476
  }],
478
477
  /**
479
478
  * Overflow X
480
479
  * @see https://tailwindcss.com/docs/overflow
481
480
  */
482
481
  "overflow-x": [{
483
- "overflow-x": T()
482
+ "overflow-x": L()
484
483
  }],
485
484
  /**
486
485
  * Overflow Y
487
486
  * @see https://tailwindcss.com/docs/overflow
488
487
  */
489
488
  "overflow-y": [{
490
- "overflow-y": T()
489
+ "overflow-y": L()
491
490
  }],
492
491
  /**
493
492
  * Overscroll Behavior
494
493
  * @see https://tailwindcss.com/docs/overscroll-behavior
495
494
  */
496
495
  overscroll: [{
497
- overscroll: _()
496
+ overscroll: K()
498
497
  }],
499
498
  /**
500
499
  * Overscroll Behavior X
501
500
  * @see https://tailwindcss.com/docs/overscroll-behavior
502
501
  */
503
502
  "overscroll-x": [{
504
- "overscroll-x": _()
503
+ "overscroll-x": K()
505
504
  }],
506
505
  /**
507
506
  * Overscroll Behavior Y
508
507
  * @see https://tailwindcss.com/docs/overscroll-behavior
509
508
  */
510
509
  "overscroll-y": [{
511
- "overscroll-y": _()
510
+ "overscroll-y": K()
512
511
  }],
513
512
  /**
514
513
  * Position
@@ -520,63 +519,63 @@ const Xe = (e, r) => {
520
519
  * @see https://tailwindcss.com/docs/top-right-bottom-left
521
520
  */
522
521
  inset: [{
523
- inset: A()
522
+ inset: z()
524
523
  }],
525
524
  /**
526
525
  * Right / Left
527
526
  * @see https://tailwindcss.com/docs/top-right-bottom-left
528
527
  */
529
528
  "inset-x": [{
530
- "inset-x": A()
529
+ "inset-x": z()
531
530
  }],
532
531
  /**
533
532
  * Top / Bottom
534
533
  * @see https://tailwindcss.com/docs/top-right-bottom-left
535
534
  */
536
535
  "inset-y": [{
537
- "inset-y": A()
536
+ "inset-y": z()
538
537
  }],
539
538
  /**
540
539
  * Start
541
540
  * @see https://tailwindcss.com/docs/top-right-bottom-left
542
541
  */
543
542
  start: [{
544
- start: A()
543
+ start: z()
545
544
  }],
546
545
  /**
547
546
  * End
548
547
  * @see https://tailwindcss.com/docs/top-right-bottom-left
549
548
  */
550
549
  end: [{
551
- end: A()
550
+ end: z()
552
551
  }],
553
552
  /**
554
553
  * Top
555
554
  * @see https://tailwindcss.com/docs/top-right-bottom-left
556
555
  */
557
556
  top: [{
558
- top: A()
557
+ top: z()
559
558
  }],
560
559
  /**
561
560
  * Right
562
561
  * @see https://tailwindcss.com/docs/top-right-bottom-left
563
562
  */
564
563
  right: [{
565
- right: A()
564
+ right: z()
566
565
  }],
567
566
  /**
568
567
  * Bottom
569
568
  * @see https://tailwindcss.com/docs/top-right-bottom-left
570
569
  */
571
570
  bottom: [{
572
- bottom: A()
571
+ bottom: z()
573
572
  }],
574
573
  /**
575
574
  * Left
576
575
  * @see https://tailwindcss.com/docs/top-right-bottom-left
577
576
  */
578
577
  left: [{
579
- left: A()
578
+ left: z()
580
579
  }],
581
580
  /**
582
581
  * Visibility
@@ -588,7 +587,7 @@ const Xe = (e, r) => {
588
587
  * @see https://tailwindcss.com/docs/z-index
589
588
  */
590
589
  z: [{
591
- z: [I, "auto", n, s]
590
+ z: [T, "auto", d, c]
592
591
  }],
593
592
  // ------------------------
594
593
  // --- Flexbox and Grid ---
@@ -598,7 +597,7 @@ const Xe = (e, r) => {
598
597
  * @see https://tailwindcss.com/docs/flex-basis
599
598
  */
600
599
  basis: [{
601
- basis: [L, "full", "auto", u, ...p()]
600
+ basis: [$, "full", "auto", l, ...f()]
602
601
  }],
603
602
  /**
604
603
  * Flex Direction
@@ -619,84 +618,84 @@ const Xe = (e, r) => {
619
618
  * @see https://tailwindcss.com/docs/flex
620
619
  */
621
620
  flex: [{
622
- flex: [m, L, "auto", "initial", "none", s]
621
+ flex: [h, $, "auto", "initial", "none", c]
623
622
  }],
624
623
  /**
625
624
  * Flex Grow
626
625
  * @see https://tailwindcss.com/docs/flex-grow
627
626
  */
628
627
  grow: [{
629
- grow: ["", m, n, s]
628
+ grow: ["", h, d, c]
630
629
  }],
631
630
  /**
632
631
  * Flex Shrink
633
632
  * @see https://tailwindcss.com/docs/flex-shrink
634
633
  */
635
634
  shrink: [{
636
- shrink: ["", m, n, s]
635
+ shrink: ["", h, d, c]
637
636
  }],
638
637
  /**
639
638
  * Order
640
639
  * @see https://tailwindcss.com/docs/order
641
640
  */
642
641
  order: [{
643
- order: [I, "first", "last", "none", n, s]
642
+ order: [T, "first", "last", "none", d, c]
644
643
  }],
645
644
  /**
646
645
  * Grid Template Columns
647
646
  * @see https://tailwindcss.com/docs/grid-template-columns
648
647
  */
649
648
  "grid-cols": [{
650
- "grid-cols": ie()
649
+ "grid-cols": _e()
651
650
  }],
652
651
  /**
653
652
  * Grid Column Start / End
654
653
  * @see https://tailwindcss.com/docs/grid-column
655
654
  */
656
655
  "col-start-end": [{
657
- col: le()
656
+ col: Oe()
658
657
  }],
659
658
  /**
660
659
  * Grid Column Start
661
660
  * @see https://tailwindcss.com/docs/grid-column
662
661
  */
663
662
  "col-start": [{
664
- "col-start": $()
663
+ "col-start": ie()
665
664
  }],
666
665
  /**
667
666
  * Grid Column End
668
667
  * @see https://tailwindcss.com/docs/grid-column
669
668
  */
670
669
  "col-end": [{
671
- "col-end": $()
670
+ "col-end": ie()
672
671
  }],
673
672
  /**
674
673
  * Grid Template Rows
675
674
  * @see https://tailwindcss.com/docs/grid-template-rows
676
675
  */
677
676
  "grid-rows": [{
678
- "grid-rows": ie()
677
+ "grid-rows": _e()
679
678
  }],
680
679
  /**
681
680
  * Grid Row Start / End
682
681
  * @see https://tailwindcss.com/docs/grid-row
683
682
  */
684
683
  "row-start-end": [{
685
- row: le()
684
+ row: Oe()
686
685
  }],
687
686
  /**
688
687
  * Grid Row Start
689
688
  * @see https://tailwindcss.com/docs/grid-row
690
689
  */
691
690
  "row-start": [{
692
- "row-start": $()
691
+ "row-start": ie()
693
692
  }],
694
693
  /**
695
694
  * Grid Row End
696
695
  * @see https://tailwindcss.com/docs/grid-row
697
696
  */
698
697
  "row-end": [{
699
- "row-end": $()
698
+ "row-end": ie()
700
699
  }],
701
700
  /**
702
701
  * Grid Auto Flow
@@ -710,70 +709,70 @@ const Xe = (e, r) => {
710
709
  * @see https://tailwindcss.com/docs/grid-auto-columns
711
710
  */
712
711
  "auto-cols": [{
713
- "auto-cols": ce()
712
+ "auto-cols": Te()
714
713
  }],
715
714
  /**
716
715
  * Grid Auto Rows
717
716
  * @see https://tailwindcss.com/docs/grid-auto-rows
718
717
  */
719
718
  "auto-rows": [{
720
- "auto-rows": ce()
719
+ "auto-rows": Te()
721
720
  }],
722
721
  /**
723
722
  * Gap
724
723
  * @see https://tailwindcss.com/docs/gap
725
724
  */
726
725
  gap: [{
727
- gap: p()
726
+ gap: f()
728
727
  }],
729
728
  /**
730
729
  * Gap X
731
730
  * @see https://tailwindcss.com/docs/gap
732
731
  */
733
732
  "gap-x": [{
734
- "gap-x": p()
733
+ "gap-x": f()
735
734
  }],
736
735
  /**
737
736
  * Gap Y
738
737
  * @see https://tailwindcss.com/docs/gap
739
738
  */
740
739
  "gap-y": [{
741
- "gap-y": p()
740
+ "gap-y": f()
742
741
  }],
743
742
  /**
744
743
  * Justify Content
745
744
  * @see https://tailwindcss.com/docs/justify-content
746
745
  */
747
746
  "justify-content": [{
748
- justify: [...K(), "normal"]
747
+ justify: [...be(), "normal"]
749
748
  }],
750
749
  /**
751
750
  * Justify Items
752
751
  * @see https://tailwindcss.com/docs/justify-items
753
752
  */
754
753
  "justify-items": [{
755
- "justify-items": [...j(), "normal"]
754
+ "justify-items": [...U(), "normal"]
756
755
  }],
757
756
  /**
758
757
  * Justify Self
759
758
  * @see https://tailwindcss.com/docs/justify-self
760
759
  */
761
760
  "justify-self": [{
762
- "justify-self": ["auto", ...j()]
761
+ "justify-self": ["auto", ...U()]
763
762
  }],
764
763
  /**
765
764
  * Align Content
766
765
  * @see https://tailwindcss.com/docs/align-content
767
766
  */
768
767
  "align-content": [{
769
- content: ["normal", ...K()]
768
+ content: ["normal", ...be()]
770
769
  }],
771
770
  /**
772
771
  * Align Items
773
772
  * @see https://tailwindcss.com/docs/align-items
774
773
  */
775
774
  "align-items": [{
776
- items: [...j(), {
775
+ items: [...U(), {
777
776
  baseline: ["", "last"]
778
777
  }]
779
778
  }],
@@ -782,7 +781,7 @@ const Xe = (e, r) => {
782
781
  * @see https://tailwindcss.com/docs/align-self
783
782
  */
784
783
  "align-self": [{
785
- self: ["auto", ...j(), {
784
+ self: ["auto", ...U(), {
786
785
  baseline: ["", "last"]
787
786
  }]
788
787
  }],
@@ -791,21 +790,21 @@ const Xe = (e, r) => {
791
790
  * @see https://tailwindcss.com/docs/place-content
792
791
  */
793
792
  "place-content": [{
794
- "place-content": K()
793
+ "place-content": be()
795
794
  }],
796
795
  /**
797
796
  * Place Items
798
797
  * @see https://tailwindcss.com/docs/place-items
799
798
  */
800
799
  "place-items": [{
801
- "place-items": [...j(), "baseline"]
800
+ "place-items": [...U(), "baseline"]
802
801
  }],
803
802
  /**
804
803
  * Place Self
805
804
  * @see https://tailwindcss.com/docs/place-self
806
805
  */
807
806
  "place-self": [{
808
- "place-self": ["auto", ...j()]
807
+ "place-self": ["auto", ...U()]
809
808
  }],
810
809
  // Spacing
811
810
  /**
@@ -813,133 +812,133 @@ const Xe = (e, r) => {
813
812
  * @see https://tailwindcss.com/docs/padding
814
813
  */
815
814
  p: [{
816
- p: p()
815
+ p: f()
817
816
  }],
818
817
  /**
819
818
  * Padding X
820
819
  * @see https://tailwindcss.com/docs/padding
821
820
  */
822
821
  px: [{
823
- px: p()
822
+ px: f()
824
823
  }],
825
824
  /**
826
825
  * Padding Y
827
826
  * @see https://tailwindcss.com/docs/padding
828
827
  */
829
828
  py: [{
830
- py: p()
829
+ py: f()
831
830
  }],
832
831
  /**
833
832
  * Padding Start
834
833
  * @see https://tailwindcss.com/docs/padding
835
834
  */
836
835
  ps: [{
837
- ps: p()
836
+ ps: f()
838
837
  }],
839
838
  /**
840
839
  * Padding End
841
840
  * @see https://tailwindcss.com/docs/padding
842
841
  */
843
842
  pe: [{
844
- pe: p()
843
+ pe: f()
845
844
  }],
846
845
  /**
847
846
  * Padding Top
848
847
  * @see https://tailwindcss.com/docs/padding
849
848
  */
850
849
  pt: [{
851
- pt: p()
850
+ pt: f()
852
851
  }],
853
852
  /**
854
853
  * Padding Right
855
854
  * @see https://tailwindcss.com/docs/padding
856
855
  */
857
856
  pr: [{
858
- pr: p()
857
+ pr: f()
859
858
  }],
860
859
  /**
861
860
  * Padding Bottom
862
861
  * @see https://tailwindcss.com/docs/padding
863
862
  */
864
863
  pb: [{
865
- pb: p()
864
+ pb: f()
866
865
  }],
867
866
  /**
868
867
  * Padding Left
869
868
  * @see https://tailwindcss.com/docs/padding
870
869
  */
871
870
  pl: [{
872
- pl: p()
871
+ pl: f()
873
872
  }],
874
873
  /**
875
874
  * Margin
876
875
  * @see https://tailwindcss.com/docs/margin
877
876
  */
878
877
  m: [{
879
- m: S()
878
+ m: P()
880
879
  }],
881
880
  /**
882
881
  * Margin X
883
882
  * @see https://tailwindcss.com/docs/margin
884
883
  */
885
884
  mx: [{
886
- mx: S()
885
+ mx: P()
887
886
  }],
888
887
  /**
889
888
  * Margin Y
890
889
  * @see https://tailwindcss.com/docs/margin
891
890
  */
892
891
  my: [{
893
- my: S()
892
+ my: P()
894
893
  }],
895
894
  /**
896
895
  * Margin Start
897
896
  * @see https://tailwindcss.com/docs/margin
898
897
  */
899
898
  ms: [{
900
- ms: S()
899
+ ms: P()
901
900
  }],
902
901
  /**
903
902
  * Margin End
904
903
  * @see https://tailwindcss.com/docs/margin
905
904
  */
906
905
  me: [{
907
- me: S()
906
+ me: P()
908
907
  }],
909
908
  /**
910
909
  * Margin Top
911
910
  * @see https://tailwindcss.com/docs/margin
912
911
  */
913
912
  mt: [{
914
- mt: S()
913
+ mt: P()
915
914
  }],
916
915
  /**
917
916
  * Margin Right
918
917
  * @see https://tailwindcss.com/docs/margin
919
918
  */
920
919
  mr: [{
921
- mr: S()
920
+ mr: P()
922
921
  }],
923
922
  /**
924
923
  * Margin Bottom
925
924
  * @see https://tailwindcss.com/docs/margin
926
925
  */
927
926
  mb: [{
928
- mb: S()
927
+ mb: P()
929
928
  }],
930
929
  /**
931
930
  * Margin Left
932
931
  * @see https://tailwindcss.com/docs/margin
933
932
  */
934
933
  ml: [{
935
- ml: S()
934
+ ml: P()
936
935
  }],
937
936
  /**
938
937
  * Space Between X
939
938
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
940
939
  */
941
940
  "space-x": [{
942
- "space-x": p()
941
+ "space-x": f()
943
942
  }],
944
943
  /**
945
944
  * Space Between X Reverse
@@ -951,7 +950,7 @@ const Xe = (e, r) => {
951
950
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
952
951
  */
953
952
  "space-y": [{
954
- "space-y": p()
953
+ "space-y": f()
955
954
  }],
956
955
  /**
957
956
  * Space Between Y Reverse
@@ -966,14 +965,14 @@ const Xe = (e, r) => {
966
965
  * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
967
966
  */
968
967
  size: [{
969
- size: M()
968
+ size: j()
970
969
  }],
971
970
  /**
972
971
  * Width
973
972
  * @see https://tailwindcss.com/docs/width
974
973
  */
975
974
  w: [{
976
- w: [u, "screen", ...M()]
975
+ w: [l, "screen", ...j()]
977
976
  }],
978
977
  /**
979
978
  * Min-Width
@@ -981,11 +980,11 @@ const Xe = (e, r) => {
981
980
  */
982
981
  "min-w": [{
983
982
  "min-w": [
984
- u,
983
+ l,
985
984
  "screen",
986
985
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
987
986
  "none",
988
- ...M()
987
+ ...j()
989
988
  ]
990
989
  }],
991
990
  /**
@@ -994,16 +993,16 @@ const Xe = (e, r) => {
994
993
  */
995
994
  "max-w": [{
996
995
  "max-w": [
997
- u,
996
+ l,
998
997
  "screen",
999
998
  "none",
1000
999
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1001
1000
  "prose",
1002
1001
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1003
1002
  {
1004
- screen: [i]
1003
+ screen: [s]
1005
1004
  },
1006
- ...M()
1005
+ ...j()
1007
1006
  ]
1008
1007
  }],
1009
1008
  /**
@@ -1011,21 +1010,21 @@ const Xe = (e, r) => {
1011
1010
  * @see https://tailwindcss.com/docs/height
1012
1011
  */
1013
1012
  h: [{
1014
- h: ["screen", "lh", ...M()]
1013
+ h: ["screen", "lh", ...j()]
1015
1014
  }],
1016
1015
  /**
1017
1016
  * Min-Height
1018
1017
  * @see https://tailwindcss.com/docs/min-height
1019
1018
  */
1020
1019
  "min-h": [{
1021
- "min-h": ["screen", "lh", "none", ...M()]
1020
+ "min-h": ["screen", "lh", "none", ...j()]
1022
1021
  }],
1023
1022
  /**
1024
1023
  * Max-Height
1025
1024
  * @see https://tailwindcss.com/docs/max-height
1026
1025
  */
1027
1026
  "max-h": [{
1028
- "max-h": ["screen", "lh", ...M()]
1027
+ "max-h": ["screen", "lh", ...j()]
1029
1028
  }],
1030
1029
  // ------------------
1031
1030
  // --- Typography ---
@@ -1035,7 +1034,7 @@ const Xe = (e, r) => {
1035
1034
  * @see https://tailwindcss.com/docs/font-size
1036
1035
  */
1037
1036
  "font-size": [{
1038
- text: ["base", o, U, O]
1037
+ text: ["base", r, Z, F]
1039
1038
  }],
1040
1039
  /**
1041
1040
  * Font Smoothing
@@ -1052,21 +1051,21 @@ const Xe = (e, r) => {
1052
1051
  * @see https://tailwindcss.com/docs/font-weight
1053
1052
  */
1054
1053
  "font-weight": [{
1055
- font: [t, n, oe]
1054
+ font: [o, d, ve]
1056
1055
  }],
1057
1056
  /**
1058
1057
  * Font Stretch
1059
1058
  * @see https://tailwindcss.com/docs/font-stretch
1060
1059
  */
1061
1060
  "font-stretch": [{
1062
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", re, s]
1061
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", we, c]
1063
1062
  }],
1064
1063
  /**
1065
1064
  * Font Family
1066
1065
  * @see https://tailwindcss.com/docs/font-family
1067
1066
  */
1068
1067
  "font-family": [{
1069
- font: [Et, s, r]
1068
+ font: [hr, c, t]
1070
1069
  }],
1071
1070
  /**
1072
1071
  * Font Variant Numeric
@@ -1103,14 +1102,14 @@ const Xe = (e, r) => {
1103
1102
  * @see https://tailwindcss.com/docs/letter-spacing
1104
1103
  */
1105
1104
  tracking: [{
1106
- tracking: [a, n, s]
1105
+ tracking: [n, d, c]
1107
1106
  }],
1108
1107
  /**
1109
1108
  * Line Clamp
1110
1109
  * @see https://tailwindcss.com/docs/line-clamp
1111
1110
  */
1112
1111
  "line-clamp": [{
1113
- "line-clamp": [m, "none", n, oe]
1112
+ "line-clamp": [h, "none", d, ve]
1114
1113
  }],
1115
1114
  /**
1116
1115
  * Line Height
@@ -1119,8 +1118,8 @@ const Xe = (e, r) => {
1119
1118
  leading: [{
1120
1119
  leading: [
1121
1120
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1122
- l,
1123
- ...p()
1121
+ i,
1122
+ ...f()
1124
1123
  ]
1125
1124
  }],
1126
1125
  /**
@@ -1128,7 +1127,7 @@ const Xe = (e, r) => {
1128
1127
  * @see https://tailwindcss.com/docs/list-style-image
1129
1128
  */
1130
1129
  "list-image": [{
1131
- "list-image": ["none", n, s]
1130
+ "list-image": ["none", d, c]
1132
1131
  }],
1133
1132
  /**
1134
1133
  * List Style Position
@@ -1142,7 +1141,7 @@ const Xe = (e, r) => {
1142
1141
  * @see https://tailwindcss.com/docs/list-style-type
1143
1142
  */
1144
1143
  "list-style-type": [{
1145
- list: ["disc", "decimal", "none", n, s]
1144
+ list: ["disc", "decimal", "none", d, c]
1146
1145
  }],
1147
1146
  /**
1148
1147
  * Text Alignment
@@ -1157,14 +1156,14 @@ const Xe = (e, r) => {
1157
1156
  * @see https://v3.tailwindcss.com/docs/placeholder-color
1158
1157
  */
1159
1158
  "placeholder-color": [{
1160
- placeholder: d()
1159
+ placeholder: p()
1161
1160
  }],
1162
1161
  /**
1163
1162
  * Text Color
1164
1163
  * @see https://tailwindcss.com/docs/text-color
1165
1164
  */
1166
1165
  "text-color": [{
1167
- text: d()
1166
+ text: p()
1168
1167
  }],
1169
1168
  /**
1170
1169
  * Text Decoration
@@ -1176,28 +1175,28 @@ const Xe = (e, r) => {
1176
1175
  * @see https://tailwindcss.com/docs/text-decoration-style
1177
1176
  */
1178
1177
  "text-decoration-style": [{
1179
- decoration: [...D(), "wavy"]
1178
+ decoration: [...ae(), "wavy"]
1180
1179
  }],
1181
1180
  /**
1182
1181
  * Text Decoration Thickness
1183
1182
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1184
1183
  */
1185
1184
  "text-decoration-thickness": [{
1186
- decoration: [m, "from-font", "auto", n, O]
1185
+ decoration: [h, "from-font", "auto", d, F]
1187
1186
  }],
1188
1187
  /**
1189
1188
  * Text Decoration Color
1190
1189
  * @see https://tailwindcss.com/docs/text-decoration-color
1191
1190
  */
1192
1191
  "text-decoration-color": [{
1193
- decoration: d()
1192
+ decoration: p()
1194
1193
  }],
1195
1194
  /**
1196
1195
  * Text Underline Offset
1197
1196
  * @see https://tailwindcss.com/docs/text-underline-offset
1198
1197
  */
1199
1198
  "underline-offset": [{
1200
- "underline-offset": [m, "auto", n, s]
1199
+ "underline-offset": [h, "auto", d, c]
1201
1200
  }],
1202
1201
  /**
1203
1202
  * Text Transform
@@ -1221,14 +1220,14 @@ const Xe = (e, r) => {
1221
1220
  * @see https://tailwindcss.com/docs/text-indent
1222
1221
  */
1223
1222
  indent: [{
1224
- indent: p()
1223
+ indent: f()
1225
1224
  }],
1226
1225
  /**
1227
1226
  * Vertical Alignment
1228
1227
  * @see https://tailwindcss.com/docs/vertical-align
1229
1228
  */
1230
1229
  "vertical-align": [{
1231
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", n, s]
1230
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", d, c]
1232
1231
  }],
1233
1232
  /**
1234
1233
  * Whitespace
@@ -1263,7 +1262,7 @@ const Xe = (e, r) => {
1263
1262
  * @see https://tailwindcss.com/docs/content
1264
1263
  */
1265
1264
  content: [{
1266
- content: ["none", n, s]
1265
+ content: ["none", d, c]
1267
1266
  }],
1268
1267
  // -------------------
1269
1268
  // --- Backgrounds ---
@@ -1294,21 +1293,21 @@ const Xe = (e, r) => {
1294
1293
  * @see https://tailwindcss.com/docs/background-position
1295
1294
  */
1296
1295
  "bg-position": [{
1297
- bg: de()
1296
+ bg: Ne()
1298
1297
  }],
1299
1298
  /**
1300
1299
  * Background Repeat
1301
1300
  * @see https://tailwindcss.com/docs/background-repeat
1302
1301
  */
1303
1302
  "bg-repeat": [{
1304
- bg: pe()
1303
+ bg: Le()
1305
1304
  }],
1306
1305
  /**
1307
1306
  * Background Size
1308
1307
  * @see https://tailwindcss.com/docs/background-size
1309
1308
  */
1310
1309
  "bg-size": [{
1311
- bg: me()
1310
+ bg: je()
1312
1311
  }],
1313
1312
  /**
1314
1313
  * Background Image
@@ -1318,59 +1317,59 @@ const Xe = (e, r) => {
1318
1317
  bg: ["none", {
1319
1318
  linear: [{
1320
1319
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1321
- }, I, n, s],
1322
- radial: ["", n, s],
1323
- conic: [I, n, s]
1324
- }, Mt, Nt]
1320
+ }, T, d, c],
1321
+ radial: ["", d, c],
1322
+ conic: [T, d, c]
1323
+ }, br, fr]
1325
1324
  }],
1326
1325
  /**
1327
1326
  * Background Color
1328
1327
  * @see https://tailwindcss.com/docs/background-color
1329
1328
  */
1330
1329
  "bg-color": [{
1331
- bg: d()
1330
+ bg: p()
1332
1331
  }],
1333
1332
  /**
1334
1333
  * Gradient Color Stops From Position
1335
1334
  * @see https://tailwindcss.com/docs/gradient-color-stops
1336
1335
  */
1337
1336
  "gradient-from-pos": [{
1338
- from: Q()
1337
+ from: ye()
1339
1338
  }],
1340
1339
  /**
1341
1340
  * Gradient Color Stops Via Position
1342
1341
  * @see https://tailwindcss.com/docs/gradient-color-stops
1343
1342
  */
1344
1343
  "gradient-via-pos": [{
1345
- via: Q()
1344
+ via: ye()
1346
1345
  }],
1347
1346
  /**
1348
1347
  * Gradient Color Stops To Position
1349
1348
  * @see https://tailwindcss.com/docs/gradient-color-stops
1350
1349
  */
1351
1350
  "gradient-to-pos": [{
1352
- to: Q()
1351
+ to: ye()
1353
1352
  }],
1354
1353
  /**
1355
1354
  * Gradient Color Stops From
1356
1355
  * @see https://tailwindcss.com/docs/gradient-color-stops
1357
1356
  */
1358
1357
  "gradient-from": [{
1359
- from: d()
1358
+ from: p()
1360
1359
  }],
1361
1360
  /**
1362
1361
  * Gradient Color Stops Via
1363
1362
  * @see https://tailwindcss.com/docs/gradient-color-stops
1364
1363
  */
1365
1364
  "gradient-via": [{
1366
- via: d()
1365
+ via: p()
1367
1366
  }],
1368
1367
  /**
1369
1368
  * Gradient Color Stops To
1370
1369
  * @see https://tailwindcss.com/docs/gradient-color-stops
1371
1370
  */
1372
1371
  "gradient-to": [{
1373
- to: d()
1372
+ to: p()
1374
1373
  }],
1375
1374
  // ---------------
1376
1375
  // --- Borders ---
@@ -1380,175 +1379,175 @@ const Xe = (e, r) => {
1380
1379
  * @see https://tailwindcss.com/docs/border-radius
1381
1380
  */
1382
1381
  rounded: [{
1383
- rounded: w()
1382
+ rounded: k()
1384
1383
  }],
1385
1384
  /**
1386
1385
  * Border Radius Start
1387
1386
  * @see https://tailwindcss.com/docs/border-radius
1388
1387
  */
1389
1388
  "rounded-s": [{
1390
- "rounded-s": w()
1389
+ "rounded-s": k()
1391
1390
  }],
1392
1391
  /**
1393
1392
  * Border Radius End
1394
1393
  * @see https://tailwindcss.com/docs/border-radius
1395
1394
  */
1396
1395
  "rounded-e": [{
1397
- "rounded-e": w()
1396
+ "rounded-e": k()
1398
1397
  }],
1399
1398
  /**
1400
1399
  * Border Radius Top
1401
1400
  * @see https://tailwindcss.com/docs/border-radius
1402
1401
  */
1403
1402
  "rounded-t": [{
1404
- "rounded-t": w()
1403
+ "rounded-t": k()
1405
1404
  }],
1406
1405
  /**
1407
1406
  * Border Radius Right
1408
1407
  * @see https://tailwindcss.com/docs/border-radius
1409
1408
  */
1410
1409
  "rounded-r": [{
1411
- "rounded-r": w()
1410
+ "rounded-r": k()
1412
1411
  }],
1413
1412
  /**
1414
1413
  * Border Radius Bottom
1415
1414
  * @see https://tailwindcss.com/docs/border-radius
1416
1415
  */
1417
1416
  "rounded-b": [{
1418
- "rounded-b": w()
1417
+ "rounded-b": k()
1419
1418
  }],
1420
1419
  /**
1421
1420
  * Border Radius Left
1422
1421
  * @see https://tailwindcss.com/docs/border-radius
1423
1422
  */
1424
1423
  "rounded-l": [{
1425
- "rounded-l": w()
1424
+ "rounded-l": k()
1426
1425
  }],
1427
1426
  /**
1428
1427
  * Border Radius Start Start
1429
1428
  * @see https://tailwindcss.com/docs/border-radius
1430
1429
  */
1431
1430
  "rounded-ss": [{
1432
- "rounded-ss": w()
1431
+ "rounded-ss": k()
1433
1432
  }],
1434
1433
  /**
1435
1434
  * Border Radius Start End
1436
1435
  * @see https://tailwindcss.com/docs/border-radius
1437
1436
  */
1438
1437
  "rounded-se": [{
1439
- "rounded-se": w()
1438
+ "rounded-se": k()
1440
1439
  }],
1441
1440
  /**
1442
1441
  * Border Radius End End
1443
1442
  * @see https://tailwindcss.com/docs/border-radius
1444
1443
  */
1445
1444
  "rounded-ee": [{
1446
- "rounded-ee": w()
1445
+ "rounded-ee": k()
1447
1446
  }],
1448
1447
  /**
1449
1448
  * Border Radius End Start
1450
1449
  * @see https://tailwindcss.com/docs/border-radius
1451
1450
  */
1452
1451
  "rounded-es": [{
1453
- "rounded-es": w()
1452
+ "rounded-es": k()
1454
1453
  }],
1455
1454
  /**
1456
1455
  * Border Radius Top Left
1457
1456
  * @see https://tailwindcss.com/docs/border-radius
1458
1457
  */
1459
1458
  "rounded-tl": [{
1460
- "rounded-tl": w()
1459
+ "rounded-tl": k()
1461
1460
  }],
1462
1461
  /**
1463
1462
  * Border Radius Top Right
1464
1463
  * @see https://tailwindcss.com/docs/border-radius
1465
1464
  */
1466
1465
  "rounded-tr": [{
1467
- "rounded-tr": w()
1466
+ "rounded-tr": k()
1468
1467
  }],
1469
1468
  /**
1470
1469
  * Border Radius Bottom Right
1471
1470
  * @see https://tailwindcss.com/docs/border-radius
1472
1471
  */
1473
1472
  "rounded-br": [{
1474
- "rounded-br": w()
1473
+ "rounded-br": k()
1475
1474
  }],
1476
1475
  /**
1477
1476
  * Border Radius Bottom Left
1478
1477
  * @see https://tailwindcss.com/docs/border-radius
1479
1478
  */
1480
1479
  "rounded-bl": [{
1481
- "rounded-bl": w()
1480
+ "rounded-bl": k()
1482
1481
  }],
1483
1482
  /**
1484
1483
  * Border Width
1485
1484
  * @see https://tailwindcss.com/docs/border-width
1486
1485
  */
1487
1486
  "border-w": [{
1488
- border: v()
1487
+ border: E()
1489
1488
  }],
1490
1489
  /**
1491
1490
  * Border Width X
1492
1491
  * @see https://tailwindcss.com/docs/border-width
1493
1492
  */
1494
1493
  "border-w-x": [{
1495
- "border-x": v()
1494
+ "border-x": E()
1496
1495
  }],
1497
1496
  /**
1498
1497
  * Border Width Y
1499
1498
  * @see https://tailwindcss.com/docs/border-width
1500
1499
  */
1501
1500
  "border-w-y": [{
1502
- "border-y": v()
1501
+ "border-y": E()
1503
1502
  }],
1504
1503
  /**
1505
1504
  * Border Width Start
1506
1505
  * @see https://tailwindcss.com/docs/border-width
1507
1506
  */
1508
1507
  "border-w-s": [{
1509
- "border-s": v()
1508
+ "border-s": E()
1510
1509
  }],
1511
1510
  /**
1512
1511
  * Border Width End
1513
1512
  * @see https://tailwindcss.com/docs/border-width
1514
1513
  */
1515
1514
  "border-w-e": [{
1516
- "border-e": v()
1515
+ "border-e": E()
1517
1516
  }],
1518
1517
  /**
1519
1518
  * Border Width Top
1520
1519
  * @see https://tailwindcss.com/docs/border-width
1521
1520
  */
1522
1521
  "border-w-t": [{
1523
- "border-t": v()
1522
+ "border-t": E()
1524
1523
  }],
1525
1524
  /**
1526
1525
  * Border Width Right
1527
1526
  * @see https://tailwindcss.com/docs/border-width
1528
1527
  */
1529
1528
  "border-w-r": [{
1530
- "border-r": v()
1529
+ "border-r": E()
1531
1530
  }],
1532
1531
  /**
1533
1532
  * Border Width Bottom
1534
1533
  * @see https://tailwindcss.com/docs/border-width
1535
1534
  */
1536
1535
  "border-w-b": [{
1537
- "border-b": v()
1536
+ "border-b": E()
1538
1537
  }],
1539
1538
  /**
1540
1539
  * Border Width Left
1541
1540
  * @see https://tailwindcss.com/docs/border-width
1542
1541
  */
1543
1542
  "border-w-l": [{
1544
- "border-l": v()
1543
+ "border-l": E()
1545
1544
  }],
1546
1545
  /**
1547
1546
  * Divide Width X
1548
1547
  * @see https://tailwindcss.com/docs/border-width#between-children
1549
1548
  */
1550
1549
  "divide-x": [{
1551
- "divide-x": v()
1550
+ "divide-x": E()
1552
1551
  }],
1553
1552
  /**
1554
1553
  * Divide Width X Reverse
@@ -1560,7 +1559,7 @@ const Xe = (e, r) => {
1560
1559
  * @see https://tailwindcss.com/docs/border-width#between-children
1561
1560
  */
1562
1561
  "divide-y": [{
1563
- "divide-y": v()
1562
+ "divide-y": E()
1564
1563
  }],
1565
1564
  /**
1566
1565
  * Divide Width Y Reverse
@@ -1572,112 +1571,112 @@ const Xe = (e, r) => {
1572
1571
  * @see https://tailwindcss.com/docs/border-style
1573
1572
  */
1574
1573
  "border-style": [{
1575
- border: [...D(), "hidden", "none"]
1574
+ border: [...ae(), "hidden", "none"]
1576
1575
  }],
1577
1576
  /**
1578
1577
  * Divide Style
1579
1578
  * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
1580
1579
  */
1581
1580
  "divide-style": [{
1582
- divide: [...D(), "hidden", "none"]
1581
+ divide: [...ae(), "hidden", "none"]
1583
1582
  }],
1584
1583
  /**
1585
1584
  * Border Color
1586
1585
  * @see https://tailwindcss.com/docs/border-color
1587
1586
  */
1588
1587
  "border-color": [{
1589
- border: d()
1588
+ border: p()
1590
1589
  }],
1591
1590
  /**
1592
1591
  * Border Color X
1593
1592
  * @see https://tailwindcss.com/docs/border-color
1594
1593
  */
1595
1594
  "border-color-x": [{
1596
- "border-x": d()
1595
+ "border-x": p()
1597
1596
  }],
1598
1597
  /**
1599
1598
  * Border Color Y
1600
1599
  * @see https://tailwindcss.com/docs/border-color
1601
1600
  */
1602
1601
  "border-color-y": [{
1603
- "border-y": d()
1602
+ "border-y": p()
1604
1603
  }],
1605
1604
  /**
1606
1605
  * Border Color S
1607
1606
  * @see https://tailwindcss.com/docs/border-color
1608
1607
  */
1609
1608
  "border-color-s": [{
1610
- "border-s": d()
1609
+ "border-s": p()
1611
1610
  }],
1612
1611
  /**
1613
1612
  * Border Color E
1614
1613
  * @see https://tailwindcss.com/docs/border-color
1615
1614
  */
1616
1615
  "border-color-e": [{
1617
- "border-e": d()
1616
+ "border-e": p()
1618
1617
  }],
1619
1618
  /**
1620
1619
  * Border Color Top
1621
1620
  * @see https://tailwindcss.com/docs/border-color
1622
1621
  */
1623
1622
  "border-color-t": [{
1624
- "border-t": d()
1623
+ "border-t": p()
1625
1624
  }],
1626
1625
  /**
1627
1626
  * Border Color Right
1628
1627
  * @see https://tailwindcss.com/docs/border-color
1629
1628
  */
1630
1629
  "border-color-r": [{
1631
- "border-r": d()
1630
+ "border-r": p()
1632
1631
  }],
1633
1632
  /**
1634
1633
  * Border Color Bottom
1635
1634
  * @see https://tailwindcss.com/docs/border-color
1636
1635
  */
1637
1636
  "border-color-b": [{
1638
- "border-b": d()
1637
+ "border-b": p()
1639
1638
  }],
1640
1639
  /**
1641
1640
  * Border Color Left
1642
1641
  * @see https://tailwindcss.com/docs/border-color
1643
1642
  */
1644
1643
  "border-color-l": [{
1645
- "border-l": d()
1644
+ "border-l": p()
1646
1645
  }],
1647
1646
  /**
1648
1647
  * Divide Color
1649
1648
  * @see https://tailwindcss.com/docs/divide-color
1650
1649
  */
1651
1650
  "divide-color": [{
1652
- divide: d()
1651
+ divide: p()
1653
1652
  }],
1654
1653
  /**
1655
1654
  * Outline Style
1656
1655
  * @see https://tailwindcss.com/docs/outline-style
1657
1656
  */
1658
1657
  "outline-style": [{
1659
- outline: [...D(), "none", "hidden"]
1658
+ outline: [...ae(), "none", "hidden"]
1660
1659
  }],
1661
1660
  /**
1662
1661
  * Outline Offset
1663
1662
  * @see https://tailwindcss.com/docs/outline-offset
1664
1663
  */
1665
1664
  "outline-offset": [{
1666
- "outline-offset": [m, n, s]
1665
+ "outline-offset": [h, d, c]
1667
1666
  }],
1668
1667
  /**
1669
1668
  * Outline Width
1670
1669
  * @see https://tailwindcss.com/docs/outline-width
1671
1670
  */
1672
1671
  "outline-w": [{
1673
- outline: ["", m, U, O]
1672
+ outline: ["", h, Z, F]
1674
1673
  }],
1675
1674
  /**
1676
1675
  * Outline Color
1677
1676
  * @see https://tailwindcss.com/docs/outline-color
1678
1677
  */
1679
1678
  "outline-color": [{
1680
- outline: d()
1679
+ outline: p()
1681
1680
  }],
1682
1681
  // ---------------
1683
1682
  // --- Effects ---
@@ -1691,9 +1690,9 @@ const Xe = (e, r) => {
1691
1690
  // Deprecated since Tailwind CSS v4.0.0
1692
1691
  "",
1693
1692
  "none",
1694
- f,
1695
- Z,
1696
- X
1693
+ m,
1694
+ pe,
1695
+ ue
1697
1696
  ]
1698
1697
  }],
1699
1698
  /**
@@ -1701,28 +1700,28 @@ const Xe = (e, r) => {
1701
1700
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
1702
1701
  */
1703
1702
  "shadow-color": [{
1704
- shadow: d()
1703
+ shadow: p()
1705
1704
  }],
1706
1705
  /**
1707
1706
  * Inset Box Shadow
1708
1707
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
1709
1708
  */
1710
1709
  "inset-shadow": [{
1711
- "inset-shadow": ["none", x, Z, X]
1710
+ "inset-shadow": ["none", b, pe, ue]
1712
1711
  }],
1713
1712
  /**
1714
1713
  * Inset Box Shadow Color
1715
1714
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
1716
1715
  */
1717
1716
  "inset-shadow-color": [{
1718
- "inset-shadow": d()
1717
+ "inset-shadow": p()
1719
1718
  }],
1720
1719
  /**
1721
1720
  * Ring Width
1722
1721
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
1723
1722
  */
1724
1723
  "ring-w": [{
1725
- ring: v()
1724
+ ring: E()
1726
1725
  }],
1727
1726
  /**
1728
1727
  * Ring Width Inset
@@ -1736,7 +1735,7 @@ const Xe = (e, r) => {
1736
1735
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
1737
1736
  */
1738
1737
  "ring-color": [{
1739
- ring: d()
1738
+ ring: p()
1740
1739
  }],
1741
1740
  /**
1742
1741
  * Ring Offset Width
@@ -1745,7 +1744,7 @@ const Xe = (e, r) => {
1745
1744
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
1746
1745
  */
1747
1746
  "ring-offset-w": [{
1748
- "ring-offset": [m, O]
1747
+ "ring-offset": [h, F]
1749
1748
  }],
1750
1749
  /**
1751
1750
  * Ring Offset Color
@@ -1754,56 +1753,56 @@ const Xe = (e, r) => {
1754
1753
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
1755
1754
  */
1756
1755
  "ring-offset-color": [{
1757
- "ring-offset": d()
1756
+ "ring-offset": p()
1758
1757
  }],
1759
1758
  /**
1760
1759
  * Inset Ring Width
1761
1760
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
1762
1761
  */
1763
1762
  "inset-ring-w": [{
1764
- "inset-ring": v()
1763
+ "inset-ring": E()
1765
1764
  }],
1766
1765
  /**
1767
1766
  * Inset Ring Color
1768
1767
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
1769
1768
  */
1770
1769
  "inset-ring-color": [{
1771
- "inset-ring": d()
1770
+ "inset-ring": p()
1772
1771
  }],
1773
1772
  /**
1774
1773
  * Text Shadow
1775
1774
  * @see https://tailwindcss.com/docs/text-shadow
1776
1775
  */
1777
1776
  "text-shadow": [{
1778
- "text-shadow": ["none", y, Z, X]
1777
+ "text-shadow": ["none", g, pe, ue]
1779
1778
  }],
1780
1779
  /**
1781
1780
  * Text Shadow Color
1782
1781
  * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
1783
1782
  */
1784
1783
  "text-shadow-color": [{
1785
- "text-shadow": d()
1784
+ "text-shadow": p()
1786
1785
  }],
1787
1786
  /**
1788
1787
  * Opacity
1789
1788
  * @see https://tailwindcss.com/docs/opacity
1790
1789
  */
1791
1790
  opacity: [{
1792
- opacity: [m, n, s]
1791
+ opacity: [h, d, c]
1793
1792
  }],
1794
1793
  /**
1795
1794
  * Mix Blend Mode
1796
1795
  * @see https://tailwindcss.com/docs/mix-blend-mode
1797
1796
  */
1798
1797
  "mix-blend": [{
1799
- "mix-blend": [...ue(), "plus-darker", "plus-lighter"]
1798
+ "mix-blend": [...Fe(), "plus-darker", "plus-lighter"]
1800
1799
  }],
1801
1800
  /**
1802
1801
  * Background Blend Mode
1803
1802
  * @see https://tailwindcss.com/docs/background-blend-mode
1804
1803
  */
1805
1804
  "bg-blend": [{
1806
- "bg-blend": ue()
1805
+ "bg-blend": Fe()
1807
1806
  }],
1808
1807
  /**
1809
1808
  * Mask Clip
@@ -1824,106 +1823,106 @@ const Xe = (e, r) => {
1824
1823
  * @see https://tailwindcss.com/docs/mask-image
1825
1824
  */
1826
1825
  "mask-image-linear-pos": [{
1827
- "mask-linear": [m]
1826
+ "mask-linear": [h]
1828
1827
  }],
1829
1828
  "mask-image-linear-from-pos": [{
1830
- "mask-linear-from": h()
1829
+ "mask-linear-from": x()
1831
1830
  }],
1832
1831
  "mask-image-linear-to-pos": [{
1833
- "mask-linear-to": h()
1832
+ "mask-linear-to": x()
1834
1833
  }],
1835
1834
  "mask-image-linear-from-color": [{
1836
- "mask-linear-from": d()
1835
+ "mask-linear-from": p()
1837
1836
  }],
1838
1837
  "mask-image-linear-to-color": [{
1839
- "mask-linear-to": d()
1838
+ "mask-linear-to": p()
1840
1839
  }],
1841
1840
  "mask-image-t-from-pos": [{
1842
- "mask-t-from": h()
1841
+ "mask-t-from": x()
1843
1842
  }],
1844
1843
  "mask-image-t-to-pos": [{
1845
- "mask-t-to": h()
1844
+ "mask-t-to": x()
1846
1845
  }],
1847
1846
  "mask-image-t-from-color": [{
1848
- "mask-t-from": d()
1847
+ "mask-t-from": p()
1849
1848
  }],
1850
1849
  "mask-image-t-to-color": [{
1851
- "mask-t-to": d()
1850
+ "mask-t-to": p()
1852
1851
  }],
1853
1852
  "mask-image-r-from-pos": [{
1854
- "mask-r-from": h()
1853
+ "mask-r-from": x()
1855
1854
  }],
1856
1855
  "mask-image-r-to-pos": [{
1857
- "mask-r-to": h()
1856
+ "mask-r-to": x()
1858
1857
  }],
1859
1858
  "mask-image-r-from-color": [{
1860
- "mask-r-from": d()
1859
+ "mask-r-from": p()
1861
1860
  }],
1862
1861
  "mask-image-r-to-color": [{
1863
- "mask-r-to": d()
1862
+ "mask-r-to": p()
1864
1863
  }],
1865
1864
  "mask-image-b-from-pos": [{
1866
- "mask-b-from": h()
1865
+ "mask-b-from": x()
1867
1866
  }],
1868
1867
  "mask-image-b-to-pos": [{
1869
- "mask-b-to": h()
1868
+ "mask-b-to": x()
1870
1869
  }],
1871
1870
  "mask-image-b-from-color": [{
1872
- "mask-b-from": d()
1871
+ "mask-b-from": p()
1873
1872
  }],
1874
1873
  "mask-image-b-to-color": [{
1875
- "mask-b-to": d()
1874
+ "mask-b-to": p()
1876
1875
  }],
1877
1876
  "mask-image-l-from-pos": [{
1878
- "mask-l-from": h()
1877
+ "mask-l-from": x()
1879
1878
  }],
1880
1879
  "mask-image-l-to-pos": [{
1881
- "mask-l-to": h()
1880
+ "mask-l-to": x()
1882
1881
  }],
1883
1882
  "mask-image-l-from-color": [{
1884
- "mask-l-from": d()
1883
+ "mask-l-from": p()
1885
1884
  }],
1886
1885
  "mask-image-l-to-color": [{
1887
- "mask-l-to": d()
1886
+ "mask-l-to": p()
1888
1887
  }],
1889
1888
  "mask-image-x-from-pos": [{
1890
- "mask-x-from": h()
1889
+ "mask-x-from": x()
1891
1890
  }],
1892
1891
  "mask-image-x-to-pos": [{
1893
- "mask-x-to": h()
1892
+ "mask-x-to": x()
1894
1893
  }],
1895
1894
  "mask-image-x-from-color": [{
1896
- "mask-x-from": d()
1895
+ "mask-x-from": p()
1897
1896
  }],
1898
1897
  "mask-image-x-to-color": [{
1899
- "mask-x-to": d()
1898
+ "mask-x-to": p()
1900
1899
  }],
1901
1900
  "mask-image-y-from-pos": [{
1902
- "mask-y-from": h()
1901
+ "mask-y-from": x()
1903
1902
  }],
1904
1903
  "mask-image-y-to-pos": [{
1905
- "mask-y-to": h()
1904
+ "mask-y-to": x()
1906
1905
  }],
1907
1906
  "mask-image-y-from-color": [{
1908
- "mask-y-from": d()
1907
+ "mask-y-from": p()
1909
1908
  }],
1910
1909
  "mask-image-y-to-color": [{
1911
- "mask-y-to": d()
1910
+ "mask-y-to": p()
1912
1911
  }],
1913
1912
  "mask-image-radial": [{
1914
- "mask-radial": [n, s]
1913
+ "mask-radial": [d, c]
1915
1914
  }],
1916
1915
  "mask-image-radial-from-pos": [{
1917
- "mask-radial-from": h()
1916
+ "mask-radial-from": x()
1918
1917
  }],
1919
1918
  "mask-image-radial-to-pos": [{
1920
- "mask-radial-to": h()
1919
+ "mask-radial-to": x()
1921
1920
  }],
1922
1921
  "mask-image-radial-from-color": [{
1923
- "mask-radial-from": d()
1922
+ "mask-radial-from": p()
1924
1923
  }],
1925
1924
  "mask-image-radial-to-color": [{
1926
- "mask-radial-to": d()
1925
+ "mask-radial-to": p()
1927
1926
  }],
1928
1927
  "mask-image-radial-shape": [{
1929
1928
  "mask-radial": ["circle", "ellipse"]
@@ -1935,22 +1934,22 @@ const Xe = (e, r) => {
1935
1934
  }]
1936
1935
  }],
1937
1936
  "mask-image-radial-pos": [{
1938
- "mask-radial-at": P()
1937
+ "mask-radial-at": V()
1939
1938
  }],
1940
1939
  "mask-image-conic-pos": [{
1941
- "mask-conic": [m]
1940
+ "mask-conic": [h]
1942
1941
  }],
1943
1942
  "mask-image-conic-from-pos": [{
1944
- "mask-conic-from": h()
1943
+ "mask-conic-from": x()
1945
1944
  }],
1946
1945
  "mask-image-conic-to-pos": [{
1947
- "mask-conic-to": h()
1946
+ "mask-conic-to": x()
1948
1947
  }],
1949
1948
  "mask-image-conic-from-color": [{
1950
- "mask-conic-from": d()
1949
+ "mask-conic-from": p()
1951
1950
  }],
1952
1951
  "mask-image-conic-to-color": [{
1953
- "mask-conic-to": d()
1952
+ "mask-conic-to": p()
1954
1953
  }],
1955
1954
  /**
1956
1955
  * Mask Mode
@@ -1971,21 +1970,21 @@ const Xe = (e, r) => {
1971
1970
  * @see https://tailwindcss.com/docs/mask-position
1972
1971
  */
1973
1972
  "mask-position": [{
1974
- mask: de()
1973
+ mask: Ne()
1975
1974
  }],
1976
1975
  /**
1977
1976
  * Mask Repeat
1978
1977
  * @see https://tailwindcss.com/docs/mask-repeat
1979
1978
  */
1980
1979
  "mask-repeat": [{
1981
- mask: pe()
1980
+ mask: Le()
1982
1981
  }],
1983
1982
  /**
1984
1983
  * Mask Size
1985
1984
  * @see https://tailwindcss.com/docs/mask-size
1986
1985
  */
1987
1986
  "mask-size": [{
1988
- mask: me()
1987
+ mask: je()
1989
1988
  }],
1990
1989
  /**
1991
1990
  * Mask Type
@@ -1999,7 +1998,7 @@ const Xe = (e, r) => {
1999
1998
  * @see https://tailwindcss.com/docs/mask-image
2000
1999
  */
2001
2000
  "mask-image": [{
2002
- mask: ["none", n, s]
2001
+ mask: ["none", d, c]
2003
2002
  }],
2004
2003
  // ---------------
2005
2004
  // --- Filters ---
@@ -2013,8 +2012,8 @@ const Xe = (e, r) => {
2013
2012
  // Deprecated since Tailwind CSS v3.0.0
2014
2013
  "",
2015
2014
  "none",
2016
- n,
2017
- s
2015
+ d,
2016
+ c
2018
2017
  ]
2019
2018
  }],
2020
2019
  /**
@@ -2022,21 +2021,21 @@ const Xe = (e, r) => {
2022
2021
  * @see https://tailwindcss.com/docs/blur
2023
2022
  */
2024
2023
  blur: [{
2025
- blur: ge()
2024
+ blur: Ge()
2026
2025
  }],
2027
2026
  /**
2028
2027
  * Brightness
2029
2028
  * @see https://tailwindcss.com/docs/brightness
2030
2029
  */
2031
2030
  brightness: [{
2032
- brightness: [m, n, s]
2031
+ brightness: [h, d, c]
2033
2032
  }],
2034
2033
  /**
2035
2034
  * Contrast
2036
2035
  * @see https://tailwindcss.com/docs/contrast
2037
2036
  */
2038
2037
  contrast: [{
2039
- contrast: [m, n, s]
2038
+ contrast: [h, d, c]
2040
2039
  }],
2041
2040
  /**
2042
2041
  * Drop Shadow
@@ -2047,9 +2046,9 @@ const Xe = (e, r) => {
2047
2046
  // Deprecated since Tailwind CSS v4.0.0
2048
2047
  "",
2049
2048
  "none",
2050
- z,
2051
- Z,
2052
- X
2049
+ w,
2050
+ pe,
2051
+ ue
2053
2052
  ]
2054
2053
  }],
2055
2054
  /**
@@ -2057,42 +2056,42 @@ const Xe = (e, r) => {
2057
2056
  * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
2058
2057
  */
2059
2058
  "drop-shadow-color": [{
2060
- "drop-shadow": d()
2059
+ "drop-shadow": p()
2061
2060
  }],
2062
2061
  /**
2063
2062
  * Grayscale
2064
2063
  * @see https://tailwindcss.com/docs/grayscale
2065
2064
  */
2066
2065
  grayscale: [{
2067
- grayscale: ["", m, n, s]
2066
+ grayscale: ["", h, d, c]
2068
2067
  }],
2069
2068
  /**
2070
2069
  * Hue Rotate
2071
2070
  * @see https://tailwindcss.com/docs/hue-rotate
2072
2071
  */
2073
2072
  "hue-rotate": [{
2074
- "hue-rotate": [m, n, s]
2073
+ "hue-rotate": [h, d, c]
2075
2074
  }],
2076
2075
  /**
2077
2076
  * Invert
2078
2077
  * @see https://tailwindcss.com/docs/invert
2079
2078
  */
2080
2079
  invert: [{
2081
- invert: ["", m, n, s]
2080
+ invert: ["", h, d, c]
2082
2081
  }],
2083
2082
  /**
2084
2083
  * Saturate
2085
2084
  * @see https://tailwindcss.com/docs/saturate
2086
2085
  */
2087
2086
  saturate: [{
2088
- saturate: [m, n, s]
2087
+ saturate: [h, d, c]
2089
2088
  }],
2090
2089
  /**
2091
2090
  * Sepia
2092
2091
  * @see https://tailwindcss.com/docs/sepia
2093
2092
  */
2094
2093
  sepia: [{
2095
- sepia: ["", m, n, s]
2094
+ sepia: ["", h, d, c]
2096
2095
  }],
2097
2096
  /**
2098
2097
  * Backdrop Filter
@@ -2103,8 +2102,8 @@ const Xe = (e, r) => {
2103
2102
  // Deprecated since Tailwind CSS v3.0.0
2104
2103
  "",
2105
2104
  "none",
2106
- n,
2107
- s
2105
+ d,
2106
+ c
2108
2107
  ]
2109
2108
  }],
2110
2109
  /**
@@ -2112,63 +2111,63 @@ const Xe = (e, r) => {
2112
2111
  * @see https://tailwindcss.com/docs/backdrop-blur
2113
2112
  */
2114
2113
  "backdrop-blur": [{
2115
- "backdrop-blur": ge()
2114
+ "backdrop-blur": Ge()
2116
2115
  }],
2117
2116
  /**
2118
2117
  * Backdrop Brightness
2119
2118
  * @see https://tailwindcss.com/docs/backdrop-brightness
2120
2119
  */
2121
2120
  "backdrop-brightness": [{
2122
- "backdrop-brightness": [m, n, s]
2121
+ "backdrop-brightness": [h, d, c]
2123
2122
  }],
2124
2123
  /**
2125
2124
  * Backdrop Contrast
2126
2125
  * @see https://tailwindcss.com/docs/backdrop-contrast
2127
2126
  */
2128
2127
  "backdrop-contrast": [{
2129
- "backdrop-contrast": [m, n, s]
2128
+ "backdrop-contrast": [h, d, c]
2130
2129
  }],
2131
2130
  /**
2132
2131
  * Backdrop Grayscale
2133
2132
  * @see https://tailwindcss.com/docs/backdrop-grayscale
2134
2133
  */
2135
2134
  "backdrop-grayscale": [{
2136
- "backdrop-grayscale": ["", m, n, s]
2135
+ "backdrop-grayscale": ["", h, d, c]
2137
2136
  }],
2138
2137
  /**
2139
2138
  * Backdrop Hue Rotate
2140
2139
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2141
2140
  */
2142
2141
  "backdrop-hue-rotate": [{
2143
- "backdrop-hue-rotate": [m, n, s]
2142
+ "backdrop-hue-rotate": [h, d, c]
2144
2143
  }],
2145
2144
  /**
2146
2145
  * Backdrop Invert
2147
2146
  * @see https://tailwindcss.com/docs/backdrop-invert
2148
2147
  */
2149
2148
  "backdrop-invert": [{
2150
- "backdrop-invert": ["", m, n, s]
2149
+ "backdrop-invert": ["", h, d, c]
2151
2150
  }],
2152
2151
  /**
2153
2152
  * Backdrop Opacity
2154
2153
  * @see https://tailwindcss.com/docs/backdrop-opacity
2155
2154
  */
2156
2155
  "backdrop-opacity": [{
2157
- "backdrop-opacity": [m, n, s]
2156
+ "backdrop-opacity": [h, d, c]
2158
2157
  }],
2159
2158
  /**
2160
2159
  * Backdrop Saturate
2161
2160
  * @see https://tailwindcss.com/docs/backdrop-saturate
2162
2161
  */
2163
2162
  "backdrop-saturate": [{
2164
- "backdrop-saturate": [m, n, s]
2163
+ "backdrop-saturate": [h, d, c]
2165
2164
  }],
2166
2165
  /**
2167
2166
  * Backdrop Sepia
2168
2167
  * @see https://tailwindcss.com/docs/backdrop-sepia
2169
2168
  */
2170
2169
  "backdrop-sepia": [{
2171
- "backdrop-sepia": ["", m, n, s]
2170
+ "backdrop-sepia": ["", h, d, c]
2172
2171
  }],
2173
2172
  // --------------
2174
2173
  // --- Tables ---
@@ -2185,21 +2184,21 @@ const Xe = (e, r) => {
2185
2184
  * @see https://tailwindcss.com/docs/border-spacing
2186
2185
  */
2187
2186
  "border-spacing": [{
2188
- "border-spacing": p()
2187
+ "border-spacing": f()
2189
2188
  }],
2190
2189
  /**
2191
2190
  * Border Spacing X
2192
2191
  * @see https://tailwindcss.com/docs/border-spacing
2193
2192
  */
2194
2193
  "border-spacing-x": [{
2195
- "border-spacing-x": p()
2194
+ "border-spacing-x": f()
2196
2195
  }],
2197
2196
  /**
2198
2197
  * Border Spacing Y
2199
2198
  * @see https://tailwindcss.com/docs/border-spacing
2200
2199
  */
2201
2200
  "border-spacing-y": [{
2202
- "border-spacing-y": p()
2201
+ "border-spacing-y": f()
2203
2202
  }],
2204
2203
  /**
2205
2204
  * Table Layout
@@ -2223,7 +2222,7 @@ const Xe = (e, r) => {
2223
2222
  * @see https://tailwindcss.com/docs/transition-property
2224
2223
  */
2225
2224
  transition: [{
2226
- transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", n, s]
2225
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", d, c]
2227
2226
  }],
2228
2227
  /**
2229
2228
  * Transition Behavior
@@ -2237,28 +2236,28 @@ const Xe = (e, r) => {
2237
2236
  * @see https://tailwindcss.com/docs/transition-duration
2238
2237
  */
2239
2238
  duration: [{
2240
- duration: [m, "initial", n, s]
2239
+ duration: [h, "initial", d, c]
2241
2240
  }],
2242
2241
  /**
2243
2242
  * Transition Timing Function
2244
2243
  * @see https://tailwindcss.com/docs/transition-timing-function
2245
2244
  */
2246
2245
  ease: [{
2247
- ease: ["linear", "initial", E, n, s]
2246
+ ease: ["linear", "initial", N, d, c]
2248
2247
  }],
2249
2248
  /**
2250
2249
  * Transition Delay
2251
2250
  * @see https://tailwindcss.com/docs/transition-delay
2252
2251
  */
2253
2252
  delay: [{
2254
- delay: [m, n, s]
2253
+ delay: [h, d, c]
2255
2254
  }],
2256
2255
  /**
2257
2256
  * Animation
2258
2257
  * @see https://tailwindcss.com/docs/animation
2259
2258
  */
2260
2259
  animate: [{
2261
- animate: ["none", B, n, s]
2260
+ animate: ["none", ne, d, c]
2262
2261
  }],
2263
2262
  // ------------------
2264
2263
  // --- Transforms ---
@@ -2275,70 +2274,70 @@ const Xe = (e, r) => {
2275
2274
  * @see https://tailwindcss.com/docs/perspective
2276
2275
  */
2277
2276
  perspective: [{
2278
- perspective: [C, n, s]
2277
+ perspective: [A, d, c]
2279
2278
  }],
2280
2279
  /**
2281
2280
  * Perspective Origin
2282
2281
  * @see https://tailwindcss.com/docs/perspective-origin
2283
2282
  */
2284
2283
  "perspective-origin": [{
2285
- "perspective-origin": G()
2284
+ "perspective-origin": D()
2286
2285
  }],
2287
2286
  /**
2288
2287
  * Rotate
2289
2288
  * @see https://tailwindcss.com/docs/rotate
2290
2289
  */
2291
2290
  rotate: [{
2292
- rotate: J()
2291
+ rotate: le()
2293
2292
  }],
2294
2293
  /**
2295
2294
  * Rotate X
2296
2295
  * @see https://tailwindcss.com/docs/rotate
2297
2296
  */
2298
2297
  "rotate-x": [{
2299
- "rotate-x": J()
2298
+ "rotate-x": le()
2300
2299
  }],
2301
2300
  /**
2302
2301
  * Rotate Y
2303
2302
  * @see https://tailwindcss.com/docs/rotate
2304
2303
  */
2305
2304
  "rotate-y": [{
2306
- "rotate-y": J()
2305
+ "rotate-y": le()
2307
2306
  }],
2308
2307
  /**
2309
2308
  * Rotate Z
2310
2309
  * @see https://tailwindcss.com/docs/rotate
2311
2310
  */
2312
2311
  "rotate-z": [{
2313
- "rotate-z": J()
2312
+ "rotate-z": le()
2314
2313
  }],
2315
2314
  /**
2316
2315
  * Scale
2317
2316
  * @see https://tailwindcss.com/docs/scale
2318
2317
  */
2319
2318
  scale: [{
2320
- scale: q()
2319
+ scale: ce()
2321
2320
  }],
2322
2321
  /**
2323
2322
  * Scale X
2324
2323
  * @see https://tailwindcss.com/docs/scale
2325
2324
  */
2326
2325
  "scale-x": [{
2327
- "scale-x": q()
2326
+ "scale-x": ce()
2328
2327
  }],
2329
2328
  /**
2330
2329
  * Scale Y
2331
2330
  * @see https://tailwindcss.com/docs/scale
2332
2331
  */
2333
2332
  "scale-y": [{
2334
- "scale-y": q()
2333
+ "scale-y": ce()
2335
2334
  }],
2336
2335
  /**
2337
2336
  * Scale Z
2338
2337
  * @see https://tailwindcss.com/docs/scale
2339
2338
  */
2340
2339
  "scale-z": [{
2341
- "scale-z": q()
2340
+ "scale-z": ce()
2342
2341
  }],
2343
2342
  /**
2344
2343
  * Scale 3D
@@ -2350,35 +2349,35 @@ const Xe = (e, r) => {
2350
2349
  * @see https://tailwindcss.com/docs/skew
2351
2350
  */
2352
2351
  skew: [{
2353
- skew: ee()
2352
+ skew: xe()
2354
2353
  }],
2355
2354
  /**
2356
2355
  * Skew X
2357
2356
  * @see https://tailwindcss.com/docs/skew
2358
2357
  */
2359
2358
  "skew-x": [{
2360
- "skew-x": ee()
2359
+ "skew-x": xe()
2361
2360
  }],
2362
2361
  /**
2363
2362
  * Skew Y
2364
2363
  * @see https://tailwindcss.com/docs/skew
2365
2364
  */
2366
2365
  "skew-y": [{
2367
- "skew-y": ee()
2366
+ "skew-y": xe()
2368
2367
  }],
2369
2368
  /**
2370
2369
  * Transform
2371
2370
  * @see https://tailwindcss.com/docs/transform
2372
2371
  */
2373
2372
  transform: [{
2374
- transform: [n, s, "", "none", "gpu", "cpu"]
2373
+ transform: [d, c, "", "none", "gpu", "cpu"]
2375
2374
  }],
2376
2375
  /**
2377
2376
  * Transform Origin
2378
2377
  * @see https://tailwindcss.com/docs/transform-origin
2379
2378
  */
2380
2379
  "transform-origin": [{
2381
- origin: G()
2380
+ origin: D()
2382
2381
  }],
2383
2382
  /**
2384
2383
  * Transform Style
@@ -2392,28 +2391,28 @@ const Xe = (e, r) => {
2392
2391
  * @see https://tailwindcss.com/docs/translate
2393
2392
  */
2394
2393
  translate: [{
2395
- translate: Y()
2394
+ translate: de()
2396
2395
  }],
2397
2396
  /**
2398
2397
  * Translate X
2399
2398
  * @see https://tailwindcss.com/docs/translate
2400
2399
  */
2401
2400
  "translate-x": [{
2402
- "translate-x": Y()
2401
+ "translate-x": de()
2403
2402
  }],
2404
2403
  /**
2405
2404
  * Translate Y
2406
2405
  * @see https://tailwindcss.com/docs/translate
2407
2406
  */
2408
2407
  "translate-y": [{
2409
- "translate-y": Y()
2408
+ "translate-y": de()
2410
2409
  }],
2411
2410
  /**
2412
2411
  * Translate Z
2413
2412
  * @see https://tailwindcss.com/docs/translate
2414
2413
  */
2415
2414
  "translate-z": [{
2416
- "translate-z": Y()
2415
+ "translate-z": de()
2417
2416
  }],
2418
2417
  /**
2419
2418
  * Translate None
@@ -2428,7 +2427,7 @@ const Xe = (e, r) => {
2428
2427
  * @see https://tailwindcss.com/docs/accent-color
2429
2428
  */
2430
2429
  accent: [{
2431
- accent: d()
2430
+ accent: p()
2432
2431
  }],
2433
2432
  /**
2434
2433
  * Appearance
@@ -2442,7 +2441,7 @@ const Xe = (e, r) => {
2442
2441
  * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
2443
2442
  */
2444
2443
  "caret-color": [{
2445
- caret: d()
2444
+ caret: p()
2446
2445
  }],
2447
2446
  /**
2448
2447
  * Color Scheme
@@ -2456,7 +2455,7 @@ const Xe = (e, r) => {
2456
2455
  * @see https://tailwindcss.com/docs/cursor
2457
2456
  */
2458
2457
  cursor: [{
2459
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", n, s]
2458
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", d, c]
2460
2459
  }],
2461
2460
  /**
2462
2461
  * Field Sizing
@@ -2491,126 +2490,126 @@ const Xe = (e, r) => {
2491
2490
  * @see https://tailwindcss.com/docs/scroll-margin
2492
2491
  */
2493
2492
  "scroll-m": [{
2494
- "scroll-m": p()
2493
+ "scroll-m": f()
2495
2494
  }],
2496
2495
  /**
2497
2496
  * Scroll Margin X
2498
2497
  * @see https://tailwindcss.com/docs/scroll-margin
2499
2498
  */
2500
2499
  "scroll-mx": [{
2501
- "scroll-mx": p()
2500
+ "scroll-mx": f()
2502
2501
  }],
2503
2502
  /**
2504
2503
  * Scroll Margin Y
2505
2504
  * @see https://tailwindcss.com/docs/scroll-margin
2506
2505
  */
2507
2506
  "scroll-my": [{
2508
- "scroll-my": p()
2507
+ "scroll-my": f()
2509
2508
  }],
2510
2509
  /**
2511
2510
  * Scroll Margin Start
2512
2511
  * @see https://tailwindcss.com/docs/scroll-margin
2513
2512
  */
2514
2513
  "scroll-ms": [{
2515
- "scroll-ms": p()
2514
+ "scroll-ms": f()
2516
2515
  }],
2517
2516
  /**
2518
2517
  * Scroll Margin End
2519
2518
  * @see https://tailwindcss.com/docs/scroll-margin
2520
2519
  */
2521
2520
  "scroll-me": [{
2522
- "scroll-me": p()
2521
+ "scroll-me": f()
2523
2522
  }],
2524
2523
  /**
2525
2524
  * Scroll Margin Top
2526
2525
  * @see https://tailwindcss.com/docs/scroll-margin
2527
2526
  */
2528
2527
  "scroll-mt": [{
2529
- "scroll-mt": p()
2528
+ "scroll-mt": f()
2530
2529
  }],
2531
2530
  /**
2532
2531
  * Scroll Margin Right
2533
2532
  * @see https://tailwindcss.com/docs/scroll-margin
2534
2533
  */
2535
2534
  "scroll-mr": [{
2536
- "scroll-mr": p()
2535
+ "scroll-mr": f()
2537
2536
  }],
2538
2537
  /**
2539
2538
  * Scroll Margin Bottom
2540
2539
  * @see https://tailwindcss.com/docs/scroll-margin
2541
2540
  */
2542
2541
  "scroll-mb": [{
2543
- "scroll-mb": p()
2542
+ "scroll-mb": f()
2544
2543
  }],
2545
2544
  /**
2546
2545
  * Scroll Margin Left
2547
2546
  * @see https://tailwindcss.com/docs/scroll-margin
2548
2547
  */
2549
2548
  "scroll-ml": [{
2550
- "scroll-ml": p()
2549
+ "scroll-ml": f()
2551
2550
  }],
2552
2551
  /**
2553
2552
  * Scroll Padding
2554
2553
  * @see https://tailwindcss.com/docs/scroll-padding
2555
2554
  */
2556
2555
  "scroll-p": [{
2557
- "scroll-p": p()
2556
+ "scroll-p": f()
2558
2557
  }],
2559
2558
  /**
2560
2559
  * Scroll Padding X
2561
2560
  * @see https://tailwindcss.com/docs/scroll-padding
2562
2561
  */
2563
2562
  "scroll-px": [{
2564
- "scroll-px": p()
2563
+ "scroll-px": f()
2565
2564
  }],
2566
2565
  /**
2567
2566
  * Scroll Padding Y
2568
2567
  * @see https://tailwindcss.com/docs/scroll-padding
2569
2568
  */
2570
2569
  "scroll-py": [{
2571
- "scroll-py": p()
2570
+ "scroll-py": f()
2572
2571
  }],
2573
2572
  /**
2574
2573
  * Scroll Padding Start
2575
2574
  * @see https://tailwindcss.com/docs/scroll-padding
2576
2575
  */
2577
2576
  "scroll-ps": [{
2578
- "scroll-ps": p()
2577
+ "scroll-ps": f()
2579
2578
  }],
2580
2579
  /**
2581
2580
  * Scroll Padding End
2582
2581
  * @see https://tailwindcss.com/docs/scroll-padding
2583
2582
  */
2584
2583
  "scroll-pe": [{
2585
- "scroll-pe": p()
2584
+ "scroll-pe": f()
2586
2585
  }],
2587
2586
  /**
2588
2587
  * Scroll Padding Top
2589
2588
  * @see https://tailwindcss.com/docs/scroll-padding
2590
2589
  */
2591
2590
  "scroll-pt": [{
2592
- "scroll-pt": p()
2591
+ "scroll-pt": f()
2593
2592
  }],
2594
2593
  /**
2595
2594
  * Scroll Padding Right
2596
2595
  * @see https://tailwindcss.com/docs/scroll-padding
2597
2596
  */
2598
2597
  "scroll-pr": [{
2599
- "scroll-pr": p()
2598
+ "scroll-pr": f()
2600
2599
  }],
2601
2600
  /**
2602
2601
  * Scroll Padding Bottom
2603
2602
  * @see https://tailwindcss.com/docs/scroll-padding
2604
2603
  */
2605
2604
  "scroll-pb": [{
2606
- "scroll-pb": p()
2605
+ "scroll-pb": f()
2607
2606
  }],
2608
2607
  /**
2609
2608
  * Scroll Padding Left
2610
2609
  * @see https://tailwindcss.com/docs/scroll-padding
2611
2610
  */
2612
2611
  "scroll-pl": [{
2613
- "scroll-pl": p()
2612
+ "scroll-pl": f()
2614
2613
  }],
2615
2614
  /**
2616
2615
  * Scroll Snap Align
@@ -2678,7 +2677,7 @@ const Xe = (e, r) => {
2678
2677
  * @see https://tailwindcss.com/docs/will-change
2679
2678
  */
2680
2679
  "will-change": [{
2681
- "will-change": ["auto", "scroll", "contents", "transform", n, s]
2680
+ "will-change": ["auto", "scroll", "contents", "transform", d, c]
2682
2681
  }],
2683
2682
  // -----------
2684
2683
  // --- SVG ---
@@ -2688,21 +2687,21 @@ const Xe = (e, r) => {
2688
2687
  * @see https://tailwindcss.com/docs/fill
2689
2688
  */
2690
2689
  fill: [{
2691
- fill: ["none", ...d()]
2690
+ fill: ["none", ...p()]
2692
2691
  }],
2693
2692
  /**
2694
2693
  * Stroke Width
2695
2694
  * @see https://tailwindcss.com/docs/stroke-width
2696
2695
  */
2697
2696
  "stroke-w": [{
2698
- stroke: [m, U, O, oe]
2697
+ stroke: [h, Z, F, ve]
2699
2698
  }],
2700
2699
  /**
2701
2700
  * Stroke
2702
2701
  * @see https://tailwindcss.com/docs/stroke
2703
2702
  */
2704
2703
  stroke: [{
2705
- stroke: ["none", ...d()]
2704
+ stroke: ["none", ...p()]
2706
2705
  }],
2707
2706
  // ---------------------
2708
2707
  // --- Accessibility ---
@@ -2770,25 +2769,793 @@ const Xe = (e, r) => {
2770
2769
  },
2771
2770
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
2772
2771
  };
2773
- }, jt = /* @__PURE__ */ ft(Gt);
2774
- function Lt(...e) {
2775
- return jt(Ye(e));
2772
+ }, vr = /* @__PURE__ */ er(wr);
2773
+ function kr(...e) {
2774
+ return vr(Ot(e));
2776
2775
  }
2777
- function or(e) {
2776
+ function So(e) {
2778
2777
  throw new Error(`Unexpected value: ${e}`);
2779
2778
  }
2780
- function sr(e, r) {
2779
+ function Co(e, t) {
2781
2780
  if (!e)
2782
- throw new Error(r);
2781
+ throw new Error(t);
2783
2782
  }
2784
- const Vt = Ce(
2783
+ const Sr = Ae(
2785
2784
  void 0
2786
- ), nr = Ce(null), Ve = () => {
2787
- const e = We(Vt);
2785
+ ), Eo = Ae(null), Cr = (e) => Array.from(e).map((r) => r.getModelContext()).sort((r, o) => (o.priority ?? 0) - (r.priority ?? 0)).reduce((r, o) => {
2786
+ if (o.system && (r.system ? r.system += `
2787
+
2788
+ ${o.system}` : r.system = o.system), o.tools)
2789
+ for (const [n, i] of Object.entries(o.tools)) {
2790
+ const s = r.tools?.[n];
2791
+ if (s && s !== i)
2792
+ throw new Error(`You tried to define a tool with the name ${n}, but it already exists.`);
2793
+ r.tools || (r.tools = {}), r.tools[n] = i;
2794
+ }
2795
+ return o.config && (r.config = {
2796
+ ...r.config,
2797
+ ...o.config
2798
+ }), o.callSettings && (r.callSettings = {
2799
+ ...r.callSettings,
2800
+ ...o.callSettings
2801
+ }), r;
2802
+ }, {});
2803
+ class Er {
2804
+ _providers = /* @__PURE__ */ new Set();
2805
+ getModelContext() {
2806
+ return Cr(this._providers);
2807
+ }
2808
+ registerModelContextProvider(t) {
2809
+ this._providers.add(t);
2810
+ const r = t.subscribe?.(() => {
2811
+ this.notifySubscribers();
2812
+ });
2813
+ return this.notifySubscribers(), () => {
2814
+ this._providers.delete(t), r?.(), this.notifySubscribers();
2815
+ };
2816
+ }
2817
+ _subscribers = /* @__PURE__ */ new Set();
2818
+ notifySubscribers() {
2819
+ for (const t of this._subscribers)
2820
+ t();
2821
+ }
2822
+ subscribe(t) {
2823
+ return this._subscribers.add(t), () => this._subscribers.delete(t);
2824
+ }
2825
+ }
2826
+ function Ar(e, t) {
2827
+ e.commitTasks.forEach((r) => {
2828
+ const o = r.cellIndex, n = t.cells[o];
2829
+ if (n.type !== "effect")
2830
+ throw new Error("Cannot find effect cell");
2831
+ let i = !0;
2832
+ if (n.deps !== void 0 && r.deps !== void 0 && (i = n.deps.length !== r.deps.length || n.deps.some((s, l) => !Object.is(s, r.deps[l]))), i) {
2833
+ if (n.mounted) {
2834
+ if (typeof n.deps != typeof r.deps)
2835
+ throw new Error("tapEffect called with and without dependencies across re-renders");
2836
+ try {
2837
+ n.mounted && n.cleanup && n.cleanup();
2838
+ } finally {
2839
+ n.mounted = !1;
2840
+ }
2841
+ }
2842
+ const s = r.effect();
2843
+ if (s !== void 0 && typeof s != "function")
2844
+ throw new Error(`An effect function must either return a cleanup function or nothing. Received: ${typeof s}`);
2845
+ n.mounted = !0, n.cleanup = typeof s == "function" ? s : void 0, n.deps = r.deps;
2846
+ }
2847
+ });
2848
+ }
2849
+ function Rr(e) {
2850
+ let t = null;
2851
+ for (let r = e.cells.length - 1; r >= 0; r--) {
2852
+ const o = e.cells[r];
2853
+ if (o?.type === "effect" && o.mounted && o.cleanup)
2854
+ try {
2855
+ o.cleanup();
2856
+ } catch (n) {
2857
+ t == null && (t = n);
2858
+ } finally {
2859
+ o.mounted = !1;
2860
+ }
2861
+ }
2862
+ if (t != null)
2863
+ throw t;
2864
+ }
2865
+ let Q = null;
2866
+ function Ir(e, t) {
2867
+ e.currentIndex = 0;
2868
+ const r = Q;
2869
+ Q = e;
2870
+ try {
2871
+ if (t(), e.isFirstRender = !1, e.cells.length !== e.currentIndex)
2872
+ throw new Error(`Rendered ${e.currentIndex} hooks but expected ${e.cells.length}. Hooks must be called in the exact same order in every render.`);
2873
+ } finally {
2874
+ Q = r;
2875
+ }
2876
+ }
2877
+ function Me() {
2878
+ if (!Q)
2879
+ throw new Error("No resource fiber available");
2880
+ return Q;
2881
+ }
2882
+ function mt(e, t) {
2883
+ const r = e[ft];
2884
+ if (!r)
2885
+ throw new Error("ResourceElement.type is not a valid Resource");
2886
+ return r(t);
2887
+ }
2888
+ const ft = Symbol("fnSymbol");
2889
+ function ge(e, t) {
2890
+ return {
2891
+ resource: e,
2892
+ scheduleRerender: t,
2893
+ cells: [],
2894
+ currentIndex: 0,
2895
+ renderContext: void 0,
2896
+ isFirstRender: !0,
2897
+ isMounted: !1,
2898
+ isNeverMounted: !0
2899
+ };
2900
+ }
2901
+ function re(e) {
2902
+ e.isMounted = !1, Rr(e);
2903
+ }
2904
+ function oe(e, t) {
2905
+ const r = {
2906
+ commitTasks: [],
2907
+ props: t,
2908
+ state: void 0
2909
+ };
2910
+ return Ir(e, () => {
2911
+ e.renderContext = r;
2912
+ try {
2913
+ r.state = mt(e.resource, t);
2914
+ } finally {
2915
+ e.renderContext = void 0;
2916
+ }
2917
+ }), r;
2918
+ }
2919
+ function se(e, t) {
2920
+ e.isMounted = !0, e.isNeverMounted = !1, Ar(t, e);
2921
+ }
2922
+ const Mr = globalThis.__ASSISTANT_UI_DISABLE_LAYOUT_EFFECT__ === !0, Be = Mr ? Re : Rt;
2923
+ function ht(e) {
2924
+ const [, t] = Ke({}), r = H(() => ge(e.type, () => t({})), [e.type]), o = oe(r, e.props);
2925
+ return Be(() => () => re(r), [r]), Be(() => {
2926
+ se(r, o);
2927
+ }), o.state;
2928
+ }
2929
+ const gt = (e) => typeof e == "string" ? {
2930
+ scope: e.split(".")[0],
2931
+ event: e
2932
+ } : {
2933
+ scope: e.scope,
2934
+ event: e.event
2935
+ }, ke = (e, t, r) => t === e;
2936
+ let W;
2937
+ const Se = () => {
2938
+ if (W)
2939
+ return W;
2940
+ const e = () => ({
2941
+ apis: /* @__PURE__ */ new Map(),
2942
+ nextId: 0,
2943
+ listeners: /* @__PURE__ */ new Set()
2944
+ });
2945
+ if (typeof window > "u")
2946
+ return W = e(), W;
2947
+ const t = window.__ASSISTANT_UI_DEVTOOLS_HOOK__;
2948
+ if (t)
2949
+ return W = t, t;
2950
+ const r = e();
2951
+ return window.__ASSISTANT_UI_DEVTOOLS_HOOK__ = r, W = r, r;
2952
+ };
2953
+ class G {
2954
+ static MAX_EVENT_LOGS_PER_API = 200;
2955
+ static register(t) {
2956
+ const r = Se();
2957
+ for (const l of r.apis.values())
2958
+ if (l.api === t)
2959
+ return () => {
2960
+ };
2961
+ const o = r.nextId++, n = {
2962
+ api: t,
2963
+ logs: []
2964
+ }, i = t.on?.("*", (l) => {
2965
+ const a = r.apis.get(o);
2966
+ a && (a.logs.push({
2967
+ time: /* @__PURE__ */ new Date(),
2968
+ event: l.event,
2969
+ data: l.payload
2970
+ }), a.logs.length > G.MAX_EVENT_LOGS_PER_API && (a.logs = a.logs.slice(-200)), G.notifyListeners(o));
2971
+ }), s = t.subscribe?.(() => {
2972
+ G.notifyListeners(o);
2973
+ });
2974
+ return r.apis.set(o, n), G.notifyListeners(o), () => {
2975
+ const l = Se();
2976
+ l.apis.get(o) && (i?.(), s?.(), l.apis.delete(o), G.notifyListeners(o));
2977
+ };
2978
+ }
2979
+ static notifyListeners(t) {
2980
+ Se().listeners.forEach((o) => o(t));
2981
+ }
2982
+ }
2983
+ function O(e) {
2984
+ const t = (r) => ({
2985
+ type: t,
2986
+ props: r
2987
+ });
2988
+ return t[ft] = e, t;
2989
+ }
2990
+ const zr = (e) => {
2991
+ if (e.renderContext)
2992
+ throw new Error("Resource updated during render");
2993
+ if (e.isMounted)
2994
+ e.scheduleRerender();
2995
+ else if (e.isNeverMounted)
2996
+ throw new Error("Resource updated before mount");
2997
+ };
2998
+ function Pr(e) {
2999
+ const t = Me(), r = t.currentIndex++;
3000
+ if (!t.isFirstRender && r >= t.cells.length)
3001
+ throw new Error("Rendered more hooks than during the previous render. Hooks must be called in the exact same order in every render.");
3002
+ if (!t.cells[r]) {
3003
+ const i = {
3004
+ type: "state",
3005
+ value: typeof e == "function" ? e() : e,
3006
+ set: (s) => {
3007
+ const l = i.value, a = typeof s == "function" ? s(l) : s;
3008
+ Object.is(l, a) || (i.value = a, zr(t));
3009
+ }
3010
+ };
3011
+ t.cells[r] = i;
3012
+ }
3013
+ const o = t.cells[r];
3014
+ if (o.type !== "state")
3015
+ throw new Error("Hook order changed between renders");
3016
+ return o;
3017
+ }
3018
+ function q(e) {
3019
+ const t = Pr(e);
3020
+ return [t.value, t.set];
3021
+ }
3022
+ function _r() {
3023
+ const e = Me(), t = e.currentIndex++;
3024
+ if (!e.isFirstRender && t >= e.cells.length)
3025
+ throw new Error("Rendered more hooks than during the previous render. Hooks must be called in the exact same order in every render.");
3026
+ if (!e.cells[t]) {
3027
+ const o = {
3028
+ type: "effect",
3029
+ mounted: !1
3030
+ };
3031
+ e.cells[t] = o;
3032
+ }
3033
+ if (e.cells[t].type !== "effect")
3034
+ throw new Error("Hook order changed between renders");
3035
+ return t;
3036
+ }
3037
+ function M(e, t) {
3038
+ const r = Me(), o = _r();
3039
+ r.renderContext.commitTasks.push({
3040
+ effect: e,
3041
+ deps: t,
3042
+ cellIndex: o
3043
+ });
3044
+ }
3045
+ function B(e) {
3046
+ const [t] = q(() => ({
3047
+ current: e
3048
+ }));
3049
+ return t;
3050
+ }
3051
+ const Or = (e, t) => {
3052
+ if (e.length !== t.length)
3053
+ return !1;
3054
+ for (let r = 0; r < e.length; r++)
3055
+ if (!Object.is(e[r], t[r]))
3056
+ return !1;
3057
+ return !0;
3058
+ }, S = (e, t) => {
3059
+ const r = B();
3060
+ return r.current || (r.current = { value: e(), deps: t }), Or(r.current.deps, t) || (r.current.value = e(), r.current.deps = t), r.current.value;
3061
+ }, Tr = (e, t) => S(() => e, t);
3062
+ function ee(e, t) {
3063
+ const [r, o] = q({}), n = S(() => ge(e.type, () => o({})), [e.type]), i = t ? S(() => e.props, t) : e.props, s = S(() => oe(n, i), [n, i, r]);
3064
+ return M(() => () => re(n), [n]), M(() => {
3065
+ se(n, s);
3066
+ }, [n, s]), s.state;
3067
+ }
3068
+ function Nr(e) {
3069
+ return mt(e.type, e.props);
3070
+ }
3071
+ function Lr(e, t, r) {
3072
+ const [o, n] = q(0), i = Tr(() => n((u) => u + 1), []), [s] = q(() => /* @__PURE__ */ new Map()), l = S(() => t, r), a = S(() => {
3073
+ const u = {
3074
+ remove: [],
3075
+ add: [],
3076
+ commit: [],
3077
+ return: {}
3078
+ };
3079
+ for (const m in e) {
3080
+ const b = e[m], g = l(b, m);
3081
+ let w = s.get(m);
3082
+ (!w || w.resource !== g.type) && (w && u.remove.push(m), w = ge(g.type, i), u.add.push([m, w]));
3083
+ const R = oe(w, g.props);
3084
+ u.commit.push([m, R]), u.return[m] = R.state;
3085
+ }
3086
+ if (s.size > u.commit.length - u.add.length + u.remove.length)
3087
+ for (const m of s.keys())
3088
+ m in e || u.remove.push(m);
3089
+ return u;
3090
+ }, [e, l, o]);
3091
+ return M(() => () => {
3092
+ for (const u of s.keys())
3093
+ re(s.get(u)), s.delete(u);
3094
+ }, []), M(() => {
3095
+ for (const u of a.remove)
3096
+ re(s.get(u)), s.delete(u);
3097
+ for (const [u, m] of a.add)
3098
+ s.set(u, m);
3099
+ for (const [u, m] of a.commit)
3100
+ se(s.get(u), m);
3101
+ }, [a]), a.return;
3102
+ }
3103
+ const jr = 50;
3104
+ let I = {
3105
+ schedulers: /* @__PURE__ */ new Set([]),
3106
+ isScheduled: !1
3107
+ };
3108
+ class Fr {
3109
+ _task;
3110
+ _isDirty = !1;
3111
+ constructor(t) {
3112
+ this._task = t;
3113
+ }
3114
+ get isDirty() {
3115
+ return this._isDirty;
3116
+ }
3117
+ markDirty() {
3118
+ this._isDirty = !0, I.schedulers.add(this), Gr();
3119
+ }
3120
+ runTask() {
3121
+ this._isDirty = !1, this._task();
3122
+ }
3123
+ }
3124
+ const Gr = () => {
3125
+ I.isScheduled || (I.isScheduled = !0, queueMicrotask(bt));
3126
+ }, bt = () => {
3127
+ try {
3128
+ const e = [];
3129
+ let t = 0;
3130
+ for (const r of I.schedulers)
3131
+ if (I.schedulers.delete(r), !!r.isDirty) {
3132
+ if (t++, t > jr)
3133
+ throw new Error("Maximum update depth exceeded. This can happen when a resource repeatedly calls setState inside tapEffect.");
3134
+ try {
3135
+ r.runTask();
3136
+ } catch (o) {
3137
+ e.push(o);
3138
+ }
3139
+ }
3140
+ if (e.length > 0)
3141
+ throw e.length === 1 ? e[0] : new AggregateError(e, "Errors occurred during flushSync");
3142
+ } finally {
3143
+ I.schedulers.clear(), I.isScheduled = !1;
3144
+ }
3145
+ }, Je = (e) => {
3146
+ const t = I;
3147
+ I = {
3148
+ schedulers: /* @__PURE__ */ new Set([]),
3149
+ isScheduled: !0
3150
+ };
3151
+ try {
3152
+ const r = e();
3153
+ return bt(), r;
3154
+ } finally {
3155
+ I = t;
3156
+ }
3157
+ }, qr = O((e) => {
3158
+ const [, t] = q(e.element), r = ee(e.element), o = B(/* @__PURE__ */ new Set()).current, n = B(r);
3159
+ return M(() => {
3160
+ r !== n.current && (n.current = r, o.forEach((s) => s()));
3161
+ }), S(() => ({
3162
+ getState: () => n.current,
3163
+ subscribe: (s) => (o.add(s), () => o.delete(s)),
3164
+ render: (s) => {
3165
+ const l = e.element !== s;
3166
+ e.element = s, e.onRender(l) && t(s);
3167
+ },
3168
+ unmount: e.onUnmount
3169
+ }), []);
3170
+ }), Vr = (e, { mount: t = !0 } = {}) => {
3171
+ let r = t, o;
3172
+ const n = {
3173
+ element: e,
3174
+ onRender: (l) => r ? l : (r = !0, Je(() => {
3175
+ l && (o = oe(s, n)), !i.isDirty && se(s, o);
3176
+ }), !1),
3177
+ onUnmount: () => {
3178
+ if (!r)
3179
+ throw new Error("Resource not mounted");
3180
+ r = !1, re(s);
3181
+ }
3182
+ }, i = new Fr(() => {
3183
+ o = oe(s, n), !(i.isDirty || !r) && se(s, o);
3184
+ }), s = ge(qr, () => i.markDirty());
3185
+ return Je(() => {
3186
+ i.markDirty();
3187
+ }), o.state;
3188
+ }, te = Symbol("tap.Context"), yt = (e) => ({
3189
+ [te]: e
3190
+ }), xt = (e, t, r) => {
3191
+ const o = e[te];
3192
+ e[te] = t;
3193
+ try {
3194
+ return r();
3195
+ } finally {
3196
+ e[te] = o;
3197
+ }
3198
+ }, wt = (e) => e[te], Dr = O((e) => {
3199
+ const t = S(() => Vr(e, { mount: !1 }), [e.type]);
3200
+ return M(() => {
3201
+ t.render(e);
3202
+ }), t;
3203
+ });
3204
+ class Ur {
3205
+ ref;
3206
+ constructor(t) {
3207
+ this.ref = t;
3208
+ }
3209
+ get(t, r) {
3210
+ return this.ref.current[r];
3211
+ }
3212
+ ownKeys() {
3213
+ return Object.keys(this.ref.current);
3214
+ }
3215
+ has(t, r) {
3216
+ return r in this.ref.current;
3217
+ }
3218
+ getOwnPropertyDescriptor(t, r) {
3219
+ return Object.getOwnPropertyDescriptor(this.ref.current, r);
3220
+ }
3221
+ set() {
3222
+ return !1;
3223
+ }
3224
+ setPrototypeOf() {
3225
+ return !1;
3226
+ }
3227
+ defineProperty() {
3228
+ return !1;
3229
+ }
3230
+ deleteProperty() {
3231
+ return !1;
3232
+ }
3233
+ preventExtensions() {
3234
+ return !1;
3235
+ }
3236
+ }
3237
+ const ze = (e, t) => {
3238
+ const r = B(e);
3239
+ M(() => {
3240
+ r.current = e;
3241
+ });
3242
+ const o = S(() => new Proxy({}, new Ur(r)), []), n = t?.key, i = e.getState();
3243
+ return S(() => ({
3244
+ key: n,
3245
+ state: i,
3246
+ api: o
3247
+ }), [i, n]);
3248
+ }, Ao = O((e) => {
3249
+ const t = B(e.get);
3250
+ return M(() => {
3251
+ t.current = e.get;
3252
+ }), S(() => v({
3253
+ source: e.source,
3254
+ query: e.query,
3255
+ get: () => t.current()
3256
+ }), [e.source, JSON.stringify(e.query)]);
3257
+ }), $r = O((e) => {
3258
+ const t = ee(e.scopeElement);
3259
+ return S(() => [e.fieldName, t], [e.fieldName, t]);
3260
+ }), Wr = O((e) => {
3261
+ const { on: t, subscribe: r, ...o } = e, n = B({ on: t, subscribe: r });
3262
+ M(() => {
3263
+ n.current = { on: t, subscribe: r };
3264
+ });
3265
+ const i = Lr(o, (s, l) => $r({
3266
+ fieldName: l,
3267
+ scopeElement: s
3268
+ }), []);
3269
+ return S(() => {
3270
+ const s = Object.fromEntries(Object.values(i)), { on: l, subscribe: a } = n.current;
3271
+ return l && (s.on = (u, m) => l(u, m)), a && (s.subscribe = (u) => a(u)), s;
3272
+ }, [i]);
3273
+ }), vt = yt(null), Hr = (e, t) => xt(vt, e, t), Br = () => {
3274
+ const e = wt(vt);
3275
+ if (!e)
3276
+ throw new Error("Model context is not available in this context");
3277
+ return e;
3278
+ }, Jr = O(({ toolkit: e }) => {
3279
+ const [t, r] = q(() => ({
3280
+ tools: {}
3281
+ })), o = Br();
3282
+ M(() => {
3283
+ if (!e)
3284
+ return;
3285
+ const i = [];
3286
+ for (const [a, u] of Object.entries(e))
3287
+ u.render && i.push(n(a, u.render));
3288
+ const s = Object.entries(e).reduce((a, [u, m]) => {
3289
+ const { render: b, ...g } = m;
3290
+ return a[u] = g, a;
3291
+ }, {}), l = {
3292
+ getModelContext: () => ({
3293
+ tools: s
3294
+ })
3295
+ };
3296
+ return i.push(o.register(l)), () => {
3297
+ i.forEach((a) => a());
3298
+ };
3299
+ }, [e, o]);
3300
+ const n = (i, s) => (r((l) => ({
3301
+ ...l,
3302
+ tools: {
3303
+ ...l.tools,
3304
+ [i]: [...l.tools[i] ?? [], s]
3305
+ }
3306
+ })), () => {
3307
+ r((l) => ({
3308
+ ...l,
3309
+ tools: {
3310
+ ...l.tools,
3311
+ [i]: l.tools[i]?.filter((a) => a !== s) ?? []
3312
+ }
3313
+ }));
3314
+ });
3315
+ return ze({
3316
+ getState: () => t,
3317
+ setToolUI: n
3318
+ });
3319
+ }), Yr = O(() => S(() => {
3320
+ const t = /* @__PURE__ */ new Map();
3321
+ return {
3322
+ on: (r, o) => {
3323
+ t.has(r) || t.set(r, /* @__PURE__ */ new Set());
3324
+ const n = t.get(r);
3325
+ return n.add(o), () => {
3326
+ n.delete(o), n.size === 0 && t.delete(r);
3327
+ };
3328
+ },
3329
+ emit: (r, o) => {
3330
+ const n = t.get(r), i = t.get("*");
3331
+ !n && !i || queueMicrotask(() => {
3332
+ if (n)
3333
+ for (const s of n)
3334
+ s(o);
3335
+ if (i)
3336
+ for (const s of i)
3337
+ s({ event: r, payload: o });
3338
+ });
3339
+ }
3340
+ };
3341
+ }, [])), kt = yt(null), Xr = (e, t) => xt(kt, e, t), Ro = () => {
3342
+ const e = wt(kt);
3343
+ if (!e)
3344
+ throw new Error("Events context is not available");
3345
+ return e;
3346
+ }, Kr = O(() => {
3347
+ const [e] = q(() => ({})), t = new Er();
3348
+ return ze({
3349
+ getState: () => e,
3350
+ getModelContext: () => t.getModelContext(),
3351
+ subscribe: (r) => t.subscribe(r),
3352
+ register: (r) => t.registerModelContextProvider(r)
3353
+ });
3354
+ }), Zr = O(({ threads: e, modelContext: t, tools: r }) => {
3355
+ const o = Nr(Yr()), { threads: n, tools: i, modelContext: s } = Xr(o, () => {
3356
+ const a = ee(t ?? Kr(), [t]);
3357
+ return Hr(a.api, () => ({
3358
+ modelContext: a,
3359
+ tools: ee(r ?? Jr({}), [r]),
3360
+ threads: ee(e, [e])
3361
+ }));
3362
+ }), l = S(() => ({
3363
+ threads: n.state,
3364
+ tools: i.state,
3365
+ modelContext: s.state
3366
+ }), [n.state, i.state, s.state]);
3367
+ return ze({
3368
+ getState: () => l,
3369
+ threads: n.api,
3370
+ tools: i.api,
3371
+ modelContext: s.api,
3372
+ on: o.on
3373
+ });
3374
+ }), Qr = (e) => {
3375
+ const t = () => e.getState().api.threads.item("main");
3376
+ return {
3377
+ threads: v({
3378
+ source: "root",
3379
+ query: {},
3380
+ get: () => e.getState().api.threads
3381
+ }),
3382
+ tools: v({
3383
+ source: "root",
3384
+ query: {},
3385
+ get: () => e.getState().api.tools
3386
+ }),
3387
+ modelContext: v({
3388
+ source: "root",
3389
+ query: {},
3390
+ get: () => e.getState().api.modelContext
3391
+ }),
3392
+ thread: v({
3393
+ source: "threads",
3394
+ query: { type: "main" },
3395
+ get: () => e.getState().api.threads.thread("main")
3396
+ }),
3397
+ threadListItem: v({
3398
+ source: "threads",
3399
+ query: { type: "main" },
3400
+ get: () => t()
3401
+ }),
3402
+ composer: v({
3403
+ source: "thread",
3404
+ query: {},
3405
+ get: () => e.getState().api.threads.thread("main").composer
3406
+ }),
3407
+ on(r, o) {
3408
+ const { event: n, scope: i } = gt(r);
3409
+ if (i === "*")
3410
+ return e.getState().api.on(n, o);
3411
+ if (ke("thread", i) || ke("thread-list-item", i) || ke("composer", i))
3412
+ return e.getState().api.on(n, (s) => {
3413
+ s.threadId === t().getState().id && o(s);
3414
+ });
3415
+ throw new Error(`Event scope is not available in this component: ${i}`);
3416
+ },
3417
+ subscribe: e.subscribe
3418
+ };
3419
+ }, eo = (e) => {
3420
+ const t = Pe(), r = ht(Dr(Zr(e))), o = H(() => Qr(r), [r]);
3421
+ return H(() => Ct(t, o), [t, o]);
3422
+ }, v = (e) => {
3423
+ const t = e.get;
3424
+ return t.source = e.source, t.query = e.query, t;
3425
+ }, he = () => () => {
3426
+ }, St = Ae({
3427
+ threads: v({
3428
+ source: null,
3429
+ query: {},
3430
+ get: () => {
3431
+ throw new Error("Threads is only available inside <AssistantProvider />");
3432
+ }
3433
+ }),
3434
+ tools: v({
3435
+ source: null,
3436
+ query: {},
3437
+ get: () => {
3438
+ throw new Error("Tools is only available inside <AssistantProvider />");
3439
+ }
3440
+ }),
3441
+ modelContext: v({
3442
+ source: null,
3443
+ query: {},
3444
+ get: () => {
3445
+ throw new Error("ModelContext is only available inside <AssistantProvider />");
3446
+ }
3447
+ }),
3448
+ threadListItem: v({
3449
+ source: null,
3450
+ query: {},
3451
+ get: () => {
3452
+ throw new Error("ThreadListItem is only available inside <AssistantProvider />");
3453
+ }
3454
+ }),
3455
+ thread: v({
3456
+ source: null,
3457
+ query: {},
3458
+ get: () => {
3459
+ throw new Error("Thread is only available inside <AssistantProvider />");
3460
+ }
3461
+ }),
3462
+ composer: v({
3463
+ source: null,
3464
+ query: {},
3465
+ get: () => {
3466
+ throw new Error("Composer is only available inside <AssistantProvider />");
3467
+ }
3468
+ }),
3469
+ message: v({
3470
+ source: null,
3471
+ query: {},
3472
+ get: () => {
3473
+ throw new Error("Message is only available inside <ThreadPrimitive.Messages />");
3474
+ }
3475
+ }),
3476
+ part: v({
3477
+ source: null,
3478
+ query: {},
3479
+ get: () => {
3480
+ throw new Error("Part is only available inside <MessagePrimitive.Parts />");
3481
+ }
3482
+ }),
3483
+ attachment: v({
3484
+ source: null,
3485
+ query: {},
3486
+ get: () => {
3487
+ throw new Error("Attachment is only available inside <MessagePrimitive.Attachments /> or <ComposerPrimitive.Attachments />");
3488
+ }
3489
+ }),
3490
+ subscribe: he,
3491
+ on: (e) => {
3492
+ const { scope: t } = gt(e);
3493
+ throw new Error(`Event scope is not available in this component: ${t}`);
3494
+ }
3495
+ }), Pe = () => Ze(St), Io = (e) => {
3496
+ const t = Pe(), r = ht(Wr(e));
3497
+ return H(() => Ct(t, r), [t, r]);
3498
+ }, to = (e) => eo(e);
3499
+ function ro(e) {
3500
+ return e ? to(e) : Pe();
3501
+ }
3502
+ const oo = (e, t) => e === he ? t : t === he ? e : (...r) => {
3503
+ const o = e(...r), n = t(...r);
3504
+ return () => {
3505
+ o(), n();
3506
+ };
3507
+ }, Ct = (e, t) => {
3508
+ const r = t.subscribe;
3509
+ return {
3510
+ ...e,
3511
+ ...t,
3512
+ subscribe: oo(e.subscribe, r ?? he)
3513
+ };
3514
+ }, Mo = ({ api: e, children: t, devToolsVisible: r = !0 }) => (Re(() => {
3515
+ if (!(!r || !e.subscribe))
3516
+ return G.register(e);
3517
+ }, [e, r]), me(St.Provider, { value: e, children: t }));
3518
+ class Ye {
3519
+ #e;
3520
+ constructor(t) {
3521
+ this.#e = t;
3522
+ }
3523
+ get threads() {
3524
+ return this.#e.threads().getState();
3525
+ }
3526
+ get tools() {
3527
+ return this.#e.tools().getState();
3528
+ }
3529
+ get threadListItem() {
3530
+ return this.#e.threadListItem().getState();
3531
+ }
3532
+ get thread() {
3533
+ return this.#e.thread().getState();
3534
+ }
3535
+ get composer() {
3536
+ return this.#e.composer().getState();
3537
+ }
3538
+ get message() {
3539
+ return this.#e.message().getState();
3540
+ }
3541
+ get part() {
3542
+ return this.#e.part().getState();
3543
+ }
3544
+ get attachment() {
3545
+ return this.#e.attachment().getState();
3546
+ }
3547
+ }
3548
+ const so = (e) => {
3549
+ const t = ro(), r = H(() => new Ye(t), [t]), o = It(t.subscribe, () => e(r), () => e(r));
3550
+ if (Mt(o), o instanceof Ye)
3551
+ throw new Error("You tried to return the entire AssistantState. This is not supported due to technical limitations.");
3552
+ return o;
3553
+ }, Et = () => {
3554
+ const e = Ze(Sr);
2788
3555
  if (!e)
2789
3556
  throw new Error("useElements must be used within a ElementsProvider");
2790
3557
  return e;
2791
- }, Ft = {
3558
+ }, no = {
2792
3559
  compact: {
2793
3560
  // Padding - small increments (1, 1.5, 2, 2.5, 3)
2794
3561
  "p-xs": "p-1",
@@ -2879,10 +3646,10 @@ const Vt = Ce(
2879
3646
  "text-title": "text-3xl",
2880
3647
  "text-subtitle": "text-lg"
2881
3648
  }
2882
- }, Wt = () => {
2883
- const { config: e } = Ve(), r = e.theme?.density ?? "normal";
2884
- return (o) => Ft[r][o];
2885
- }, _t = {
3649
+ }, io = () => {
3650
+ const { config: e } = Et(), t = e.theme?.density ?? "normal";
3651
+ return (r) => no[t][r];
3652
+ }, ao = {
2886
3653
  sharp: {
2887
3654
  sm: "rounded-sm",
2888
3655
  md: "rounded",
@@ -2904,22 +3671,22 @@ const Vt = Ce(
2904
3671
  xl: "rounded-3xl",
2905
3672
  full: "rounded-full"
2906
3673
  }
2907
- }, Ut = () => {
2908
- const { config: e } = Ve(), r = e.theme?.radius ?? "soft";
2909
- return (o) => _t[r][o];
3674
+ }, lo = () => {
3675
+ const { config: e } = Et(), t = e.theme?.radius ?? "soft";
3676
+ return (r) => ao[t][r];
2910
3677
  };
2911
- const Bt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), $t = (e) => e.replace(
3678
+ const co = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), uo = (e) => e.replace(
2912
3679
  /^([A-Z])|[\s-_]+(\w)/g,
2913
- (r, o, t) => t ? t.toUpperCase() : o.toLowerCase()
2914
- ), ve = (e) => {
2915
- const r = $t(e);
2916
- return r.charAt(0).toUpperCase() + r.slice(1);
2917
- }, Fe = (...e) => e.filter((r, o, t) => !!r && r.trim() !== "" && t.indexOf(r) === o).join(" ").trim(), Dt = (e) => {
2918
- for (const r in e)
2919
- if (r.startsWith("aria-") || r === "role" || r === "title")
3680
+ (t, r, o) => o ? o.toUpperCase() : r.toLowerCase()
3681
+ ), Xe = (e) => {
3682
+ const t = uo(e);
3683
+ return t.charAt(0).toUpperCase() + t.slice(1);
3684
+ }, At = (...e) => e.filter((t, r, o) => !!t && t.trim() !== "" && o.indexOf(t) === r).join(" ").trim(), po = (e) => {
3685
+ for (const t in e)
3686
+ if (t.startsWith("aria-") || t === "role" || t === "title")
2920
3687
  return !0;
2921
3688
  };
2922
- var Jt = {
3689
+ var mo = {
2923
3690
  xmlns: "http://www.w3.org/2000/svg",
2924
3691
  width: 24,
2925
3692
  height: 24,
@@ -2930,99 +3697,99 @@ var Jt = {
2930
3697
  strokeLinecap: "round",
2931
3698
  strokeLinejoin: "round"
2932
3699
  };
2933
- const qt = ze(
3700
+ const fo = Qe(
2934
3701
  ({
2935
3702
  color: e = "currentColor",
2936
- size: r = 24,
2937
- strokeWidth: o = 2,
2938
- absoluteStrokeWidth: t,
2939
- className: a = "",
2940
- children: l,
2941
- iconNode: i,
2942
- ...u
2943
- }, c) => se(
3703
+ size: t = 24,
3704
+ strokeWidth: r = 2,
3705
+ absoluteStrokeWidth: o,
3706
+ className: n = "",
3707
+ children: i,
3708
+ iconNode: s,
3709
+ ...l
3710
+ }, a) => Ce(
2944
3711
  "svg",
2945
3712
  {
2946
- ref: c,
2947
- ...Jt,
2948
- width: r,
2949
- height: r,
3713
+ ref: a,
3714
+ ...mo,
3715
+ width: t,
3716
+ height: t,
2950
3717
  stroke: e,
2951
- strokeWidth: t ? Number(o) * 24 / Number(r) : o,
2952
- className: Fe("lucide", a),
2953
- ...!l && !Dt(u) && { "aria-hidden": "true" },
2954
- ...u
3718
+ strokeWidth: o ? Number(r) * 24 / Number(t) : r,
3719
+ className: At("lucide", n),
3720
+ ...!i && !po(l) && { "aria-hidden": "true" },
3721
+ ...l
2955
3722
  },
2956
3723
  [
2957
- ...i.map(([g, f]) => se(g, f)),
2958
- ...Array.isArray(l) ? l : [l]
3724
+ ...s.map(([u, m]) => Ce(u, m)),
3725
+ ...Array.isArray(i) ? i : [i]
2959
3726
  ]
2960
3727
  )
2961
3728
  );
2962
- const Yt = (e, r) => {
2963
- const o = ze(
2964
- ({ className: t, ...a }, l) => se(qt, {
2965
- ref: l,
2966
- iconNode: r,
2967
- className: Fe(
2968
- `lucide-${Bt(ve(e))}`,
3729
+ const ho = (e, t) => {
3730
+ const r = Qe(
3731
+ ({ className: o, ...n }, i) => Ce(fo, {
3732
+ ref: i,
3733
+ iconNode: t,
3734
+ className: At(
3735
+ `lucide-${co(Xe(e))}`,
2969
3736
  `lucide-${e}`,
2970
- t
3737
+ o
2971
3738
  ),
2972
- ...a
3739
+ ...n
2973
3740
  })
2974
3741
  );
2975
- return o.displayName = ve(e), o;
3742
+ return r.displayName = Xe(e), r;
2976
3743
  };
2977
- const Xt = [
3744
+ const go = [
2978
3745
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2979
3746
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
2980
3747
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
2981
- ], Zt = Yt("circle-alert", Xt), Ht = ({ code: e }) => {
2982
- const r = $e(({ message: x }) => x), o = be(null), t = be(null), [a, l] = _e(null), i = r.status?.type === "complete", u = Ut(), c = Wt(), g = Ue(() => {
2983
- const x = e.trim();
2984
- if (!x) return null;
3748
+ ], bo = ho("circle-alert", go), yo = ({ code: e }) => {
3749
+ const t = so(({ message: b }) => b), r = Ve(null), o = Ve(null), [n, i] = Ke(null), s = t.status?.type === "complete", l = lo(), a = io(), u = H(() => {
3750
+ const b = e.trim();
3751
+ if (!b) return null;
2985
3752
  try {
2986
- return JSON.parse(x);
3753
+ return JSON.parse(b);
2987
3754
  } catch {
2988
3755
  return null;
2989
3756
  }
2990
- }, [e]), f = i && g !== null;
2991
- return Be(() => !o.current || !f ? void 0 : (l(null), (async () => {
3757
+ }, [e]), m = s && u !== null;
3758
+ return Re(() => !r.current || !m ? void 0 : (i(null), (async () => {
2992
3759
  try {
2993
- t.current && (t.current.finalize(), t.current = null);
2994
- const y = De(g), z = new Je(y, {
2995
- container: o.current ?? void 0,
3760
+ o.current && (o.current.finalize(), o.current = null);
3761
+ const g = zt(u), w = new Pt(g, {
3762
+ container: r.current ?? void 0,
2996
3763
  renderer: "svg",
2997
3764
  hover: !0,
2998
- logLevel: qe
3765
+ logLevel: _t
2999
3766
  });
3000
- t.current = z, await z.runAsync();
3001
- } catch (y) {
3002
- console.error("Failed to render chart:", y), l(y instanceof Error ? y.message : "Failed to render chart");
3767
+ o.current = w, await w.runAsync();
3768
+ } catch (g) {
3769
+ console.error("Failed to render chart:", g), i(g instanceof Error ? g.message : "Failed to render chart");
3003
3770
  }
3004
3771
  })(), () => {
3005
- t.current && (t.current.finalize(), t.current = null);
3006
- }), [f, g]), /* @__PURE__ */ fe(
3772
+ o.current && (o.current.finalize(), o.current = null);
3773
+ }), [m, u]), /* @__PURE__ */ qe(
3007
3774
  "div",
3008
3775
  {
3009
- className: Lt(
3776
+ className: kr(
3010
3777
  // the after:hidden is to prevent assistant-ui from showing its default code block loading indicator
3011
3778
  "relative flex min-h-[400px] w-fit max-w-full min-w-[400px] items-center justify-center border p-6 after:hidden",
3012
- u("lg"),
3013
- c("p-lg")
3779
+ l("lg"),
3780
+ a("p-lg")
3014
3781
  ),
3015
3782
  children: [
3016
- !f && !a && /* @__PURE__ */ te("div", { className: "shimmer text-muted-foreground bg-background/80 absolute inset-0 z-10 flex items-center justify-center", children: "Rendering chart..." }),
3017
- a && /* @__PURE__ */ fe("div", { className: "bg-background absolute inset-0 z-10 flex items-center justify-center gap-2 text-rose-500", children: [
3018
- /* @__PURE__ */ te(Zt, { name: "alert-circle", className: "h-4 w-4" }),
3019
- a
3783
+ !m && !n && /* @__PURE__ */ me("div", { className: "shimmer text-muted-foreground bg-background/80 absolute inset-0 z-10 flex items-center justify-center", children: "Rendering chart..." }),
3784
+ n && /* @__PURE__ */ qe("div", { className: "bg-background absolute inset-0 z-10 flex items-center justify-center gap-2 text-rose-500", children: [
3785
+ /* @__PURE__ */ me(bo, { name: "alert-circle", className: "h-4 w-4" }),
3786
+ n
3020
3787
  ] }),
3021
- /* @__PURE__ */ te("div", { ref: o, className: f ? "block" : "hidden" })
3788
+ /* @__PURE__ */ me("div", { ref: r, className: m ? "block" : "hidden" })
3022
3789
  ]
3023
3790
  }
3024
3791
  );
3025
- }, Kt = {
3792
+ }, xo = {
3026
3793
  language: "vega",
3027
3794
  prompt: `When a user requests a chart or visualization, respond with a valid Vega specification (https://vega.github.io/vega/) in a code block annotated with the language identifier 'vega'.
3028
3795
 
@@ -3040,21 +3807,42 @@ CONTENT GUIDELINES:
3040
3807
  - Do not mention "Vega" or other technical terms - this is user-facing
3041
3808
 
3042
3809
  The Vega spec will be parsed with JSON.parse() - if it fails, the chart will error. Ensure strict JSON validity.`,
3043
- Component: Ht,
3810
+ Component: yo,
3044
3811
  Header: void 0
3045
- }, ar = [Kt];
3812
+ }, zo = [xo];
3046
3813
  export {
3047
- Vt as E,
3048
- nr as T,
3049
- sr as a,
3050
- Lt as b,
3051
- Yt as c,
3052
- Ye as d,
3053
- Wt as e,
3054
- Ut as f,
3055
- or as g,
3056
- Kt as h,
3057
- ar as r,
3058
- Ve as u
3814
+ Mo as A,
3815
+ So as B,
3816
+ Er as C,
3817
+ Ao as D,
3818
+ Sr as E,
3819
+ xo as F,
3820
+ Eo as T,
3821
+ Co as a,
3822
+ M as b,
3823
+ Ro as c,
3824
+ ze as d,
3825
+ S as e,
3826
+ Lr as f,
3827
+ Nr as g,
3828
+ Br as h,
3829
+ Io as i,
3830
+ ke as j,
3831
+ ht as k,
3832
+ Dr as l,
3833
+ so as m,
3834
+ gt as n,
3835
+ Pe as o,
3836
+ Je as p,
3837
+ ho as q,
3838
+ O as r,
3839
+ zo as s,
3840
+ q as t,
3841
+ ro as u,
3842
+ kr as v,
3843
+ Ot as w,
3844
+ Et as x,
3845
+ io as y,
3846
+ lo as z
3059
3847
  };
3060
- //# sourceMappingURL=index-CJRypLIa.js.map
3848
+ //# sourceMappingURL=index-Cb5sxQuN.js.map