@stackable-labs/embeddables 1.6.0 → 1.7.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.
package/dist/react.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsxs as z, jsx as c, Fragment as he } from "react/jsx-runtime";
2
2
  import * as p from "react";
3
- import G, { createContext as Jo, useState as U, useRef as ae, useEffect as B, useContext as Qo, useMemo as Tt, useCallback as Re, createElement as _e, forwardRef as Mt } from "react";
3
+ import G, { createContext as Qo, useState as U, useRef as ae, useEffect as B, useContext as er, useMemo as Mt, useCallback as Re, createElement as _e, forwardRef as Lt } from "react";
4
4
  import "react-dom";
5
- const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
5
+ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
6
6
  const o = ie.get(e.id);
7
7
  if (o) return o;
8
8
  const r = document.createElement("iframe");
@@ -46,10 +46,10 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
46
46
  return;
47
47
  }
48
48
  o.iframe.contentWindow.postMessage(t, "*");
49
- }, fe = (e) => ie.get(e), tr = (e) => {
49
+ }, fe = (e) => ie.get(e), or = (e) => {
50
50
  const t = ie.get(e);
51
51
  t && (t.iframe.remove(), t.messageHandlers.clear(), ie.delete(e));
52
- }, or = () => ie, rr = [
52
+ }, rr = () => ie, nr = [
53
53
  "ui-card",
54
54
  "ui-card-content",
55
55
  "ui-card-header",
@@ -73,18 +73,19 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
73
73
  "ui-link",
74
74
  "ui-menu",
75
75
  "ui-menu-item"
76
- ], nr = {
76
+ ], sr = {
77
77
  "context.read": "context:read",
78
78
  "data.query": "data:query",
79
+ "data.fetch": "data:fetch",
79
80
  "actions.toast": "actions:toast",
80
81
  "actions.invoke": "actions:invoke"
81
- }, sr = (e) => {
82
+ }, ar = (e) => {
82
83
  const t = async (o) => {
83
84
  const r = o.data;
84
85
  if ((r == null ? void 0 : r.type) !== "capability-request") return;
85
86
  const n = r;
86
87
  let s = null;
87
- for (const [l, d] of or())
88
+ for (const [l, d] of rr())
88
89
  if (o.source === d.iframe.contentWindow) {
89
90
  s = l;
90
91
  break;
@@ -95,7 +96,7 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
95
96
  }
96
97
  const a = fe(s);
97
98
  if (!a) return;
98
- const i = nr[n.capability];
99
+ const i = sr[n.capability];
99
100
  if (i && !a.manifest.permissions.includes(i)) {
100
101
  const l = {
101
102
  type: "capability-response",
@@ -112,6 +113,9 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
112
113
  case "data.query":
113
114
  l = await e["data.query"](n.payload);
114
115
  break;
116
+ case "data.fetch":
117
+ l = await e["data.fetch"](s, n.payload);
118
+ break;
115
119
  case "actions.toast":
116
120
  l = await e["actions.toast"](n.payload);
117
121
  break;
@@ -144,11 +148,11 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
144
148
  return window.addEventListener("message", t), () => {
145
149
  window.removeEventListener("message", t);
146
150
  };
147
- }, Lt = Jo({
151
+ }, Ot = Qo({
148
152
  extensions: [],
149
153
  components: {},
150
154
  ready: !1
151
- }), ar = ({
155
+ }), ir = ({
152
156
  extensions: e,
153
157
  capabilityHandlers: t,
154
158
  components: o = {},
@@ -163,21 +167,21 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
163
167
  if (u) {
164
168
  console.log("[ExtensionProvider] Initializing with", e.length, "extensions");
165
169
  for (const f of e)
166
- f.enabled && !l && (console.log("[ExtensionProvider] Creating sandbox for", f.id, "bundleUrl:", f.bundleUrl), await er(f, u), console.log("[ExtensionProvider] Sandbox created for", f.id));
167
- i.current = sr(t), l || (console.log("[ExtensionProvider] Ready"), s(!0));
170
+ f.enabled && !l && (console.log("[ExtensionProvider] Creating sandbox for", f.id, "bundleUrl:", f.bundleUrl), await tr(f, u), console.log("[ExtensionProvider] Sandbox created for", f.id));
171
+ i.current = ar(t), l || (console.log("[ExtensionProvider] Ready"), s(!0));
168
172
  }
169
173
  })(), () => {
170
174
  var u;
171
175
  l = !0;
172
176
  for (const f of e)
173
- tr(f.id);
177
+ or(f.id);
174
178
  (u = i.current) == null || u.call(i);
175
179
  };
176
- }, [e, t]), /* @__PURE__ */ z(Lt.Provider, { value: { extensions: e, components: o, ready: n }, children: [
180
+ }, [e, t]), /* @__PURE__ */ z(Ot.Provider, { value: { extensions: e, components: o, ready: n }, children: [
177
181
  /* @__PURE__ */ c("div", { ref: a, style: { display: "none" } }),
178
182
  r
179
183
  ] });
180
- }, ir = () => Qo(Lt), lr = (e) => rr.includes(e), Ce = ({
184
+ }, lr = () => er(Ot), cr = (e) => nr.includes(e), Ce = ({
181
185
  target: e,
182
186
  context: t,
183
187
  className: o,
@@ -185,45 +189,45 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
185
189
  fallback: n = null,
186
190
  render: s
187
191
  }) => {
188
- const { extensions: a, components: i, ready: l } = ir(), [d, u] = U({}), f = ae(""), m = Tt(
192
+ const { extensions: a, components: i, ready: l } = lr(), [d, u] = U({}), f = ae(""), m = Mt(
189
193
  () => a.filter((h) => h.enabled && h.manifest.targets.includes(e)),
190
194
  // eslint-disable-next-line react-hooks/exhaustive-deps
191
195
  [a.map((h) => h.id).join(","), e]
192
- ), b = Re(
196
+ ), g = Re(
193
197
  (h, y, R = 0) => {
194
- var E, _, g;
198
+ var E, _, b;
195
199
  if (h.type === "text")
196
200
  return h.text || null;
197
201
  if (!h.tag) return null;
198
202
  if (h.tag === "__fragment")
199
- return /* @__PURE__ */ c(G.Fragment, { children: (E = h.children) == null ? void 0 : E.map((k, M) => b(k, y, M)) }, R);
200
- if (!lr(h.tag))
203
+ return /* @__PURE__ */ c(G.Fragment, { children: (E = h.children) == null ? void 0 : E.map((S, M) => g(S, y, M)) }, R);
204
+ if (!cr(h.tag))
201
205
  return console.warn(`[ExtensionHost] Unknown UI tag rejected: <${h.tag}>`), null;
202
206
  const C = i[h.tag];
203
207
  if (!C)
204
- return h.tag.startsWith("ui-") ? (console.warn(`[ExtensionSlot] Unregistered UI tag: <${h.tag}>`), null) : /* @__PURE__ */ c(G.Fragment, { children: (_ = h.children) == null ? void 0 : _.map((k, M) => b(k, y, M)) }, R);
208
+ return h.tag.startsWith("ui-") ? (console.warn(`[ExtensionSlot] Unregistered UI tag: <${h.tag}>`), null) : /* @__PURE__ */ c(G.Fragment, { children: (_ = h.children) == null ? void 0 : _.map((S, M) => g(S, y, M)) }, R);
205
209
  const A = { ...h.attrs };
206
210
  if (h.actionId) {
207
- const k = h.actionId;
211
+ const S = h.actionId;
208
212
  A.onClick = () => {
209
213
  const M = y;
210
214
  M == null || M.postMessage(
211
- { type: "action-invoke", surfaceId: e, actionId: k },
215
+ { type: "action-invoke", surfaceId: e, actionId: S },
212
216
  "*"
213
217
  );
214
218
  };
215
219
  }
216
220
  if (A["data-onchange-id"]) {
217
- const k = A["data-onchange-id"];
221
+ const S = A["data-onchange-id"];
218
222
  delete A["data-onchange-id"], A.onChange = (M) => {
219
223
  const O = y;
220
224
  O == null || O.postMessage(
221
- { type: "action-invoke", surfaceId: e, actionId: k, value: M.target.value },
225
+ { type: "action-invoke", surfaceId: e, actionId: S, value: M.target.value },
222
226
  "*"
223
227
  );
224
228
  };
225
229
  }
226
- const P = (g = h.children) == null ? void 0 : g.map((k, M) => b(k, y, M));
230
+ const P = (b = h.children) == null ? void 0 : b.map((S, M) => g(S, y, M));
227
231
  return /* @__PURE__ */ _e(C, { ...A, key: R }, P && P.length > 0 ? P : void 0);
228
232
  },
229
233
  [e, i]
@@ -239,11 +243,11 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
239
243
  }))) {
240
244
  if (C.type === "surface-update" && C.surfaceId === e) {
241
245
  const P = m.find((_) => {
242
- const g = fe(_.id);
243
- return g && R.source === g.iframe.contentWindow;
246
+ const b = fe(_.id);
247
+ return b && R.source === b.iframe.contentWindow;
244
248
  });
245
249
  if (!P) return;
246
- const E = b(C.tree, R.source ?? null);
250
+ const E = g(C.tree, R.source ?? null);
247
251
  u((_) => ({
248
252
  ..._,
249
253
  [P.id]: E
@@ -269,11 +273,11 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
269
273
  }), () => {
270
274
  window.removeEventListener("message", y);
271
275
  };
272
- }, [l, m, e, t, b]), !l)
276
+ }, [l, m, e, t, g]), !l)
273
277
  return null;
274
278
  if (m.length === 0)
275
279
  return n ? /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children: n }) : null;
276
- const S = m.map((h) => ({ id: h.id, children: d[h.id] })).filter((h) => !!h.children), w = S.length > 0 ? S.flatMap((h, y, R) => {
280
+ const k = m.map((h) => ({ id: h.id, children: d[h.id] })).filter((h) => !!h.children), x = k.length > 0 ? k.flatMap((h, y, R) => {
277
281
  const C = s ? s({
278
282
  extensionId: h.id,
279
283
  children: h.children,
@@ -293,8 +297,8 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
293
297
  A
294
298
  ];
295
299
  }) : n;
296
- return /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children: w });
297
- }, cr = (e) => {
300
+ return /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children: x });
301
+ }, dr = (e) => {
298
302
  try {
299
303
  const { hostname: t } = new URL(e);
300
304
  return t === "localhost" || t === "127.0.0.1" || t.endsWith(".trycloudflare.com") || // hostname.endsWith('.ngrok.io') ||
@@ -302,7 +306,7 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
302
306
  } catch {
303
307
  return !1;
304
308
  }
305
- }, Ot = (e) => {
309
+ }, $t = (e) => {
306
310
  const o = new URLSearchParams(e).getAll("_stackable_dev");
307
311
  if (o.length === 0)
308
312
  return [];
@@ -314,14 +318,14 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
314
318
  const i = a.indexOf(":");
315
319
  if (i === -1) continue;
316
320
  const l = a.slice(0, i), d = a.slice(i + 1);
317
- l && d && cr(d) && r.push({ extensionId: l, bundleUrl: d });
321
+ l && d && dr(d) && r.push({ extensionId: l, bundleUrl: d });
318
322
  }
319
323
  }
320
324
  return r;
321
325
  } catch {
322
326
  return [];
323
327
  }
324
- }, dr = (e, t) => t.length === 0 ? e : e.map((o) => {
328
+ }, ur = (e, t) => t.length === 0 ? e : e.map((o) => {
325
329
  const r = t.find((n) => n.extensionId === o.id);
326
330
  return r ? (console.log(`[Stackable] Dev override active for ${o.id} → ${r.bundleUrl}`), {
327
331
  ...o,
@@ -334,21 +338,21 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
334
338
  * This source code is licensed under the ISC license.
335
339
  * See the LICENSE file in the root directory of this source tree.
336
340
  */
337
- const $t = (...e) => e.filter((t, o, r) => !!t && t.trim() !== "" && r.indexOf(t) === o).join(" ").trim();
341
+ const Ft = (...e) => e.filter((t, o, r) => !!t && t.trim() !== "" && r.indexOf(t) === o).join(" ").trim();
338
342
  /**
339
343
  * @license lucide-react v0.575.0 - ISC
340
344
  *
341
345
  * This source code is licensed under the ISC license.
342
346
  * See the LICENSE file in the root directory of this source tree.
343
347
  */
344
- const ur = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
348
+ const fr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
345
349
  /**
346
350
  * @license lucide-react v0.575.0 - ISC
347
351
  *
348
352
  * This source code is licensed under the ISC license.
349
353
  * See the LICENSE file in the root directory of this source tree.
350
354
  */
351
- const fr = (e) => e.replace(
355
+ const mr = (e) => e.replace(
352
356
  /^([A-Z])|[\s-_]+(\w)/g,
353
357
  (t, o, r) => r ? r.toUpperCase() : o.toLowerCase()
354
358
  );
@@ -359,7 +363,7 @@ const fr = (e) => e.replace(
359
363
  * See the LICENSE file in the root directory of this source tree.
360
364
  */
361
365
  const pt = (e) => {
362
- const t = fr(e);
366
+ const t = mr(e);
363
367
  return t.charAt(0).toUpperCase() + t.slice(1);
364
368
  };
365
369
  /**
@@ -368,7 +372,7 @@ const pt = (e) => {
368
372
  * This source code is licensed under the ISC license.
369
373
  * See the LICENSE file in the root directory of this source tree.
370
374
  */
371
- var mr = {
375
+ var pr = {
372
376
  xmlns: "http://www.w3.org/2000/svg",
373
377
  width: 24,
374
378
  height: 24,
@@ -385,7 +389,7 @@ var mr = {
385
389
  * This source code is licensed under the ISC license.
386
390
  * See the LICENSE file in the root directory of this source tree.
387
391
  */
388
- const pr = (e) => {
392
+ const hr = (e) => {
389
393
  for (const t in e)
390
394
  if (t.startsWith("aria-") || t === "role" || t === "title")
391
395
  return !0;
@@ -397,7 +401,7 @@ const pr = (e) => {
397
401
  * This source code is licensed under the ISC license.
398
402
  * See the LICENSE file in the root directory of this source tree.
399
403
  */
400
- const hr = Mt(
404
+ const gr = Lt(
401
405
  ({
402
406
  color: e = "currentColor",
403
407
  size: t = 24,
@@ -411,13 +415,13 @@ const hr = Mt(
411
415
  "svg",
412
416
  {
413
417
  ref: l,
414
- ...mr,
418
+ ...pr,
415
419
  width: t,
416
420
  height: t,
417
421
  stroke: e,
418
422
  strokeWidth: r ? Number(o) * 24 / Number(t) : o,
419
- className: $t("lucide", n),
420
- ...!s && !pr(i) && { "aria-hidden": "true" },
423
+ className: Ft("lucide", n),
424
+ ...!s && !hr(i) && { "aria-hidden": "true" },
421
425
  ...i
422
426
  },
423
427
  [
@@ -433,12 +437,12 @@ const hr = Mt(
433
437
  * See the LICENSE file in the root directory of this source tree.
434
438
  */
435
439
  const L = (e, t) => {
436
- const o = Mt(
437
- ({ className: r, ...n }, s) => _e(hr, {
440
+ const o = Lt(
441
+ ({ className: r, ...n }, s) => _e(gr, {
438
442
  ref: s,
439
443
  iconNode: t,
440
- className: $t(
441
- `lucide-${ur(pt(e))}`,
444
+ className: Ft(
445
+ `lucide-${fr(pt(e))}`,
442
446
  `lucide-${e}`,
443
447
  r
444
448
  ),
@@ -453,7 +457,7 @@ const L = (e, t) => {
453
457
  * This source code is licensed under the ISC license.
454
458
  * See the LICENSE file in the root directory of this source tree.
455
459
  */
456
- const gr = [
460
+ const br = [
457
461
  [
458
462
  "path",
459
463
  {
@@ -462,24 +466,24 @@ const gr = [
462
466
  }
463
467
  ],
464
468
  ["path", { d: "m12 15 5 6H7Z", key: "14qnn2" }]
465
- ], br = L("airplay", gr);
469
+ ], vr = L("airplay", br);
466
470
  /**
467
471
  * @license lucide-react v0.575.0 - ISC
468
472
  *
469
473
  * This source code is licensed under the ISC license.
470
474
  * See the LICENSE file in the root directory of this source tree.
471
475
  */
472
- const vr = [
476
+ const xr = [
473
477
  ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
474
478
  ["path", { d: "M19 12H5", key: "x3x0zl" }]
475
- ], xr = L("arrow-left", vr);
479
+ ], wr = L("arrow-left", xr);
476
480
  /**
477
481
  * @license lucide-react v0.575.0 - ISC
478
482
  *
479
483
  * This source code is licensed under the ISC license.
480
484
  * See the LICENSE file in the root directory of this source tree.
481
485
  */
482
- const wr = [
486
+ const yr = [
483
487
  ["path", { d: "M12 7v14", key: "1akyts" }],
484
488
  [
485
489
  "path",
@@ -488,142 +492,142 @@ const wr = [
488
492
  key: "ruj8y"
489
493
  }
490
494
  ]
491
- ], yr = L("book-open", wr);
495
+ ], kr = L("book-open", yr);
492
496
  /**
493
497
  * @license lucide-react v0.575.0 - ISC
494
498
  *
495
499
  * This source code is licensed under the ISC license.
496
500
  * See the LICENSE file in the root directory of this source tree.
497
501
  */
498
- const kr = [
502
+ const Sr = [
499
503
  ["path", { d: "M8 2v4", key: "1cmpym" }],
500
504
  ["path", { d: "M16 2v4", key: "4m81vk" }],
501
505
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
502
506
  ["path", { d: "M3 10h18", key: "8toen8" }]
503
- ], Sr = L("calendar", kr);
507
+ ], Cr = L("calendar", Sr);
504
508
  /**
505
509
  * @license lucide-react v0.575.0 - ISC
506
510
  *
507
511
  * This source code is licensed under the ISC license.
508
512
  * See the LICENSE file in the root directory of this source tree.
509
513
  */
510
- const Cr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Er = L("chevron-left", Cr);
514
+ const Er = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Nr = L("chevron-left", Er);
511
515
  /**
512
516
  * @license lucide-react v0.575.0 - ISC
513
517
  *
514
518
  * This source code is licensed under the ISC license.
515
519
  * See the LICENSE file in the root directory of this source tree.
516
520
  */
517
- const Nr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ft = L("chevron-right", Nr);
521
+ const Ar = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Dt = L("chevron-right", Ar);
518
522
  /**
519
523
  * @license lucide-react v0.575.0 - ISC
520
524
  *
521
525
  * This source code is licensed under the ISC license.
522
526
  * See the LICENSE file in the root directory of this source tree.
523
527
  */
524
- const Ar = [
528
+ const Rr = [
525
529
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
526
530
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
527
531
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
528
- ], Rr = L("circle-alert", Ar);
532
+ ], _r = L("circle-alert", Rr);
529
533
  /**
530
534
  * @license lucide-react v0.575.0 - ISC
531
535
  *
532
536
  * This source code is licensed under the ISC license.
533
537
  * See the LICENSE file in the root directory of this source tree.
534
538
  */
535
- const _r = [
539
+ const Ir = [
536
540
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
537
541
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
538
- ], Ir = L("circle-check", _r);
542
+ ], Pr = L("circle-check", Ir);
539
543
  /**
540
544
  * @license lucide-react v0.575.0 - ISC
541
545
  *
542
546
  * This source code is licensed under the ISC license.
543
547
  * See the LICENSE file in the root directory of this source tree.
544
548
  */
545
- const Pr = [
549
+ const zr = [
546
550
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
547
551
  ["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
548
552
  ["path", { d: "M12 17h.01", key: "p32p05" }]
549
- ], zr = L("circle-question-mark", Pr);
553
+ ], Tr = L("circle-question-mark", zr);
550
554
  /**
551
555
  * @license lucide-react v0.575.0 - ISC
552
556
  *
553
557
  * This source code is licensed under the ISC license.
554
558
  * See the LICENSE file in the root directory of this source tree.
555
559
  */
556
- const Tr = [
560
+ const Mr = [
557
561
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
558
562
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
559
563
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
560
- ], Mr = L("circle-x", Tr);
564
+ ], Lr = L("circle-x", Mr);
561
565
  /**
562
566
  * @license lucide-react v0.575.0 - ISC
563
567
  *
564
568
  * This source code is licensed under the ISC license.
565
569
  * See the LICENSE file in the root directory of this source tree.
566
570
  */
567
- const Lr = [
571
+ const Or = [
568
572
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
569
573
  ["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
570
- ], Or = L("clock", Lr);
574
+ ], $r = L("clock", Or);
571
575
  /**
572
576
  * @license lucide-react v0.575.0 - ISC
573
577
  *
574
578
  * This source code is licensed under the ISC license.
575
579
  * See the LICENSE file in the root directory of this source tree.
576
580
  */
577
- const $r = [
581
+ const Fr = [
578
582
  ["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
579
583
  ["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
580
- ], Fr = L("credit-card", $r);
584
+ ], Dr = L("credit-card", Fr);
581
585
  /**
582
586
  * @license lucide-react v0.575.0 - ISC
583
587
  *
584
588
  * This source code is licensed under the ISC license.
585
589
  * See the LICENSE file in the root directory of this source tree.
586
590
  */
587
- const Dr = [
591
+ const Ur = [
588
592
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
589
593
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
590
594
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
591
- ], Ur = L("external-link", Dr);
595
+ ], Wr = L("external-link", Ur);
592
596
  /**
593
597
  * @license lucide-react v0.575.0 - ISC
594
598
  *
595
599
  * This source code is licensed under the ISC license.
596
600
  * See the LICENSE file in the root directory of this source tree.
597
601
  */
598
- const Wr = [
602
+ const Hr = [
599
603
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
600
604
  ["path", { d: "M12 16v-4", key: "1dtifu" }],
601
605
  ["path", { d: "M12 8h.01", key: "e9boi3" }]
602
- ], Hr = L("info", Wr);
606
+ ], Vr = L("info", Hr);
603
607
  /**
604
608
  * @license lucide-react v0.575.0 - ISC
605
609
  *
606
610
  * This source code is licensed under the ISC license.
607
611
  * See the LICENSE file in the root directory of this source tree.
608
612
  */
609
- const Vr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Dt = L("loader-circle", Vr);
613
+ const jr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ut = L("loader-circle", jr);
610
614
  /**
611
615
  * @license lucide-react v0.575.0 - ISC
612
616
  *
613
617
  * This source code is licensed under the ISC license.
614
618
  * See the LICENSE file in the root directory of this source tree.
615
619
  */
616
- const jr = [
620
+ const Br = [
617
621
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
618
622
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
619
- ], Ye = L("mail", jr);
623
+ ], Ye = L("mail", Br);
620
624
  /**
621
625
  * @license lucide-react v0.575.0 - ISC
622
626
  *
623
627
  * This source code is licensed under the ISC license.
624
628
  * See the LICENSE file in the root directory of this source tree.
625
629
  */
626
- const Br = [
630
+ const Gr = [
627
631
  [
628
632
  "path",
629
633
  {
@@ -632,14 +636,14 @@ const Br = [
632
636
  }
633
637
  ],
634
638
  ["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
635
- ], Gr = L("map-pin", Br);
639
+ ], qr = L("map-pin", Gr);
636
640
  /**
637
641
  * @license lucide-react v0.575.0 - ISC
638
642
  *
639
643
  * This source code is licensed under the ISC license.
640
644
  * See the LICENSE file in the root directory of this source tree.
641
645
  */
642
- const qr = [
646
+ const Yr = [
643
647
  [
644
648
  "path",
645
649
  {
@@ -647,14 +651,14 @@ const qr = [
647
651
  key: "1sd12s"
648
652
  }
649
653
  ]
650
- ], Yr = L("message-circle", qr);
654
+ ], Xr = L("message-circle", Yr);
651
655
  /**
652
656
  * @license lucide-react v0.575.0 - ISC
653
657
  *
654
658
  * This source code is licensed under the ISC license.
655
659
  * See the LICENSE file in the root directory of this source tree.
656
660
  */
657
- const Xr = [
661
+ const Zr = [
658
662
  [
659
663
  "path",
660
664
  {
@@ -662,14 +666,14 @@ const Xr = [
662
666
  key: "18887p"
663
667
  }
664
668
  ]
665
- ], Ut = L("message-square", Xr);
669
+ ], Wt = L("message-square", Zr);
666
670
  /**
667
671
  * @license lucide-react v0.575.0 - ISC
668
672
  *
669
673
  * This source code is licensed under the ISC license.
670
674
  * See the LICENSE file in the root directory of this source tree.
671
675
  */
672
- const Zr = [
676
+ const Kr = [
673
677
  [
674
678
  "path",
675
679
  {
@@ -680,14 +684,14 @@ const Zr = [
680
684
  ["path", { d: "M12 22V12", key: "d0xqtd" }],
681
685
  ["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
682
686
  ["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
683
- ], Kr = L("package", Zr);
687
+ ], Jr = L("package", Kr);
684
688
  /**
685
689
  * @license lucide-react v0.575.0 - ISC
686
690
  *
687
691
  * This source code is licensed under the ISC license.
688
692
  * See the LICENSE file in the root directory of this source tree.
689
693
  */
690
- const Jr = [
694
+ const Qr = [
691
695
  [
692
696
  "path",
693
697
  {
@@ -695,24 +699,24 @@ const Jr = [
695
699
  key: "9njp5v"
696
700
  }
697
701
  ]
698
- ], Qr = L("phone", Jr);
702
+ ], en = L("phone", Qr);
699
703
  /**
700
704
  * @license lucide-react v0.575.0 - ISC
701
705
  *
702
706
  * This source code is licensed under the ISC license.
703
707
  * See the LICENSE file in the root directory of this source tree.
704
708
  */
705
- const en = [
709
+ const tn = [
706
710
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
707
711
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
708
- ], tn = L("search", en);
712
+ ], on = L("search", tn);
709
713
  /**
710
714
  * @license lucide-react v0.575.0 - ISC
711
715
  *
712
716
  * This source code is licensed under the ISC license.
713
717
  * See the LICENSE file in the root directory of this source tree.
714
718
  */
715
- const on = [
719
+ const rn = [
716
720
  ["path", { d: "M16 10a4 4 0 0 1-8 0", key: "1ltviw" }],
717
721
  ["path", { d: "M3.103 6.034h17.794", key: "awc11p" }],
718
722
  [
@@ -722,14 +726,14 @@ const on = [
722
726
  key: "o988cm"
723
727
  }
724
728
  ]
725
- ], rn = L("shopping-bag", on);
729
+ ], nn = L("shopping-bag", rn);
726
730
  /**
727
731
  * @license lucide-react v0.575.0 - ISC
728
732
  *
729
733
  * This source code is licensed under the ISC license.
730
734
  * See the LICENSE file in the root directory of this source tree.
731
735
  */
732
- const nn = [
736
+ const sn = [
733
737
  [
734
738
  "path",
735
739
  {
@@ -740,14 +744,14 @@ const nn = [
740
744
  ["path", { d: "M20 2v4", key: "1rf3ol" }],
741
745
  ["path", { d: "M22 4h-4", key: "gwowj6" }],
742
746
  ["circle", { cx: "4", cy: "20", r: "2", key: "6kqj1y" }]
743
- ], sn = L("sparkles", nn);
747
+ ], an = L("sparkles", sn);
744
748
  /**
745
749
  * @license lucide-react v0.575.0 - ISC
746
750
  *
747
751
  * This source code is licensed under the ISC license.
748
752
  * See the LICENSE file in the root directory of this source tree.
749
753
  */
750
- const an = [
754
+ const ln = [
751
755
  ["path", { d: "M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2", key: "wrbu53" }],
752
756
  ["path", { d: "M15 18H9", key: "1lyqi6" }],
753
757
  [
@@ -759,70 +763,70 @@ const an = [
759
763
  ],
760
764
  ["circle", { cx: "17", cy: "18", r: "2", key: "332jqn" }],
761
765
  ["circle", { cx: "7", cy: "18", r: "2", key: "19iecd" }]
762
- ], ln = L("truck", an);
766
+ ], cn = L("truck", ln);
763
767
  /**
764
768
  * @license lucide-react v0.575.0 - ISC
765
769
  *
766
770
  * This source code is licensed under the ISC license.
767
771
  * See the LICENSE file in the root directory of this source tree.
768
772
  */
769
- const cn = [
773
+ const dn = [
770
774
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
771
775
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
772
- ], Wt = L("user", cn);
773
- function Ht(e) {
776
+ ], Ht = L("user", dn);
777
+ function Vt(e) {
774
778
  var t, o, r = "";
775
779
  if (typeof e == "string" || typeof e == "number") r += e;
776
780
  else if (typeof e == "object") if (Array.isArray(e)) {
777
781
  var n = e.length;
778
- for (t = 0; t < n; t++) e[t] && (o = Ht(e[t])) && (r && (r += " "), r += o);
782
+ for (t = 0; t < n; t++) e[t] && (o = Vt(e[t])) && (r && (r += " "), r += o);
779
783
  } else for (o in e) e[o] && (r && (r += " "), r += o);
780
784
  return r;
781
785
  }
782
- function Vt() {
783
- for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = Ht(e)) && (r && (r += " "), r += t);
786
+ function jt() {
787
+ for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = Vt(e)) && (r && (r += " "), r += t);
784
788
  return r;
785
789
  }
786
- const dn = (e, t) => {
790
+ const un = (e, t) => {
787
791
  const o = new Array(e.length + t.length);
788
792
  for (let r = 0; r < e.length; r++)
789
793
  o[r] = e[r];
790
794
  for (let r = 0; r < t.length; r++)
791
795
  o[e.length + r] = t[r];
792
796
  return o;
793
- }, un = (e, t) => ({
797
+ }, fn = (e, t) => ({
794
798
  classGroupId: e,
795
799
  validator: t
796
- }), jt = (e = /* @__PURE__ */ new Map(), t = null, o) => ({
800
+ }), Bt = (e = /* @__PURE__ */ new Map(), t = null, o) => ({
797
801
  nextPart: e,
798
802
  validators: t,
799
803
  classGroupId: o
800
- }), Ie = "-", ht = [], fn = "arbitrary..", mn = (e) => {
801
- const t = hn(e), {
804
+ }), Ie = "-", ht = [], mn = "arbitrary..", pn = (e) => {
805
+ const t = gn(e), {
802
806
  conflictingClassGroups: o,
803
807
  conflictingClassGroupModifiers: r
804
808
  } = e;
805
809
  return {
806
810
  getClassGroupId: (a) => {
807
811
  if (a.startsWith("[") && a.endsWith("]"))
808
- return pn(a);
812
+ return hn(a);
809
813
  const i = a.split(Ie), l = i[0] === "" && i.length > 1 ? 1 : 0;
810
- return Bt(i, l, t);
814
+ return Gt(i, l, t);
811
815
  },
812
816
  getConflictingClassGroupIds: (a, i) => {
813
817
  if (i) {
814
818
  const l = r[a], d = o[a];
815
- return l ? d ? dn(d, l) : l : d || ht;
819
+ return l ? d ? un(d, l) : l : d || ht;
816
820
  }
817
821
  return o[a] || ht;
818
822
  }
819
823
  };
820
- }, Bt = (e, t, o) => {
824
+ }, Gt = (e, t, o) => {
821
825
  if (e.length - t === 0)
822
826
  return o.classGroupId;
823
827
  const n = e[t], s = o.nextPart.get(n);
824
828
  if (s) {
825
- const d = Bt(e, t + 1, s);
829
+ const d = Gt(e, t + 1, s);
826
830
  if (d) return d;
827
831
  }
828
832
  const a = o.validators;
@@ -834,17 +838,17 @@ const dn = (e, t) => {
834
838
  if (u.validator(i))
835
839
  return u.classGroupId;
836
840
  }
837
- }, pn = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
841
+ }, hn = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
838
842
  const t = e.slice(1, -1), o = t.indexOf(":"), r = t.slice(0, o);
839
- return r ? fn + r : void 0;
840
- })(), hn = (e) => {
843
+ return r ? mn + r : void 0;
844
+ })(), gn = (e) => {
841
845
  const {
842
846
  theme: t,
843
847
  classGroups: o
844
848
  } = e;
845
- return gn(o, t);
846
- }, gn = (e, t) => {
847
- const o = jt();
849
+ return bn(o, t);
850
+ }, bn = (e, t) => {
851
+ const o = Bt();
848
852
  for (const r in e) {
849
853
  const n = e[r];
850
854
  et(n, o, r, t);
@@ -854,43 +858,43 @@ const dn = (e, t) => {
854
858
  const n = e.length;
855
859
  for (let s = 0; s < n; s++) {
856
860
  const a = e[s];
857
- bn(a, t, o, r);
861
+ vn(a, t, o, r);
858
862
  }
859
- }, bn = (e, t, o, r) => {
863
+ }, vn = (e, t, o, r) => {
860
864
  if (typeof e == "string") {
861
- vn(e, t, o);
865
+ xn(e, t, o);
862
866
  return;
863
867
  }
864
868
  if (typeof e == "function") {
865
- xn(e, t, o, r);
869
+ wn(e, t, o, r);
866
870
  return;
867
871
  }
868
- wn(e, t, o, r);
869
- }, vn = (e, t, o) => {
870
- const r = e === "" ? t : Gt(t, e);
872
+ yn(e, t, o, r);
873
+ }, xn = (e, t, o) => {
874
+ const r = e === "" ? t : qt(t, e);
871
875
  r.classGroupId = o;
872
- }, xn = (e, t, o, r) => {
873
- if (yn(e)) {
876
+ }, wn = (e, t, o, r) => {
877
+ if (kn(e)) {
874
878
  et(e(r), t, o, r);
875
879
  return;
876
880
  }
877
- t.validators === null && (t.validators = []), t.validators.push(un(o, e));
878
- }, wn = (e, t, o, r) => {
881
+ t.validators === null && (t.validators = []), t.validators.push(fn(o, e));
882
+ }, yn = (e, t, o, r) => {
879
883
  const n = Object.entries(e), s = n.length;
880
884
  for (let a = 0; a < s; a++) {
881
885
  const [i, l] = n[a];
882
- et(l, Gt(t, i), o, r);
886
+ et(l, qt(t, i), o, r);
883
887
  }
884
- }, Gt = (e, t) => {
888
+ }, qt = (e, t) => {
885
889
  let o = e;
886
890
  const r = t.split(Ie), n = r.length;
887
891
  for (let s = 0; s < n; s++) {
888
892
  const a = r[s];
889
893
  let i = o.nextPart.get(a);
890
- i || (i = jt(), o.nextPart.set(a, i)), o = i;
894
+ i || (i = Bt(), o.nextPart.set(a, i)), o = i;
891
895
  }
892
896
  return o;
893
- }, yn = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, kn = (e) => {
897
+ }, kn = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Sn = (e) => {
894
898
  if (e < 1)
895
899
  return {
896
900
  get: () => {
@@ -914,13 +918,13 @@ const dn = (e, t) => {
914
918
  s in o ? o[s] = a : n(s, a);
915
919
  }
916
920
  };
917
- }, Xe = "!", gt = ":", Sn = [], bt = (e, t, o, r, n) => ({
921
+ }, Xe = "!", gt = ":", Cn = [], bt = (e, t, o, r, n) => ({
918
922
  modifiers: e,
919
923
  hasImportantModifier: t,
920
924
  baseClassName: o,
921
925
  maybePostfixModifierPosition: r,
922
926
  isExternal: n
923
- }), Cn = (e) => {
927
+ }), En = (e) => {
924
928
  const {
925
929
  prefix: t,
926
930
  experimentalParseClassName: o
@@ -929,35 +933,35 @@ const dn = (e, t) => {
929
933
  const s = [];
930
934
  let a = 0, i = 0, l = 0, d;
931
935
  const u = n.length;
932
- for (let w = 0; w < u; w++) {
933
- const h = n[w];
936
+ for (let x = 0; x < u; x++) {
937
+ const h = n[x];
934
938
  if (a === 0 && i === 0) {
935
939
  if (h === gt) {
936
- s.push(n.slice(l, w)), l = w + 1;
940
+ s.push(n.slice(l, x)), l = x + 1;
937
941
  continue;
938
942
  }
939
943
  if (h === "/") {
940
- d = w;
944
+ d = x;
941
945
  continue;
942
946
  }
943
947
  }
944
948
  h === "[" ? a++ : h === "]" ? a-- : h === "(" ? i++ : h === ")" && i--;
945
949
  }
946
950
  const f = s.length === 0 ? n : n.slice(l);
947
- let m = f, b = !1;
948
- f.endsWith(Xe) ? (m = f.slice(0, -1), b = !0) : (
951
+ let m = f, g = !1;
952
+ f.endsWith(Xe) ? (m = f.slice(0, -1), g = !0) : (
949
953
  /**
950
954
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
951
955
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
952
956
  */
953
- f.startsWith(Xe) && (m = f.slice(1), b = !0)
957
+ f.startsWith(Xe) && (m = f.slice(1), g = !0)
954
958
  );
955
- const S = d && d > l ? d - l : void 0;
956
- return bt(s, b, m, S);
959
+ const k = d && d > l ? d - l : void 0;
960
+ return bt(s, g, m, k);
957
961
  };
958
962
  if (t) {
959
963
  const n = t + gt, s = r;
960
- r = (a) => a.startsWith(n) ? s(a.slice(n.length)) : bt(Sn, !1, a, void 0, !0);
964
+ r = (a) => a.startsWith(n) ? s(a.slice(n.length)) : bt(Cn, !1, a, void 0, !0);
961
965
  }
962
966
  if (o) {
963
967
  const n = r;
@@ -967,7 +971,7 @@ const dn = (e, t) => {
967
971
  });
968
972
  }
969
973
  return r;
970
- }, En = (e) => {
974
+ }, Nn = (e) => {
971
975
  const t = /* @__PURE__ */ new Map();
972
976
  return e.orderSensitiveModifiers.forEach((o, r) => {
973
977
  t.set(o, 1e6 + r);
@@ -980,44 +984,44 @@ const dn = (e, t) => {
980
984
  }
981
985
  return n.length > 0 && (n.sort(), r.push(...n)), r;
982
986
  };
983
- }, Nn = (e) => ({
984
- cache: kn(e.cacheSize),
985
- parseClassName: Cn(e),
986
- sortModifiers: En(e),
987
- ...mn(e)
988
- }), An = /\s+/, Rn = (e, t) => {
987
+ }, An = (e) => ({
988
+ cache: Sn(e.cacheSize),
989
+ parseClassName: En(e),
990
+ sortModifiers: Nn(e),
991
+ ...pn(e)
992
+ }), Rn = /\s+/, _n = (e, t) => {
989
993
  const {
990
994
  parseClassName: o,
991
995
  getClassGroupId: r,
992
996
  getConflictingClassGroupIds: n,
993
997
  sortModifiers: s
994
- } = t, a = [], i = e.trim().split(An);
998
+ } = t, a = [], i = e.trim().split(Rn);
995
999
  let l = "";
996
1000
  for (let d = i.length - 1; d >= 0; d -= 1) {
997
1001
  const u = i[d], {
998
1002
  isExternal: f,
999
1003
  modifiers: m,
1000
- hasImportantModifier: b,
1001
- baseClassName: S,
1002
- maybePostfixModifierPosition: w
1004
+ hasImportantModifier: g,
1005
+ baseClassName: k,
1006
+ maybePostfixModifierPosition: x
1003
1007
  } = o(u);
1004
1008
  if (f) {
1005
1009
  l = u + (l.length > 0 ? " " + l : l);
1006
1010
  continue;
1007
1011
  }
1008
- let h = !!w, y = r(h ? S.substring(0, w) : S);
1012
+ let h = !!x, y = r(h ? k.substring(0, x) : k);
1009
1013
  if (!y) {
1010
1014
  if (!h) {
1011
1015
  l = u + (l.length > 0 ? " " + l : l);
1012
1016
  continue;
1013
1017
  }
1014
- if (y = r(S), !y) {
1018
+ if (y = r(k), !y) {
1015
1019
  l = u + (l.length > 0 ? " " + l : l);
1016
1020
  continue;
1017
1021
  }
1018
1022
  h = !1;
1019
1023
  }
1020
- const R = m.length === 0 ? "" : m.length === 1 ? m[0] : s(m).join(":"), C = b ? R + Xe : R, A = C + y;
1024
+ const R = m.length === 0 ? "" : m.length === 1 ? m[0] : s(m).join(":"), C = g ? R + Xe : R, A = C + y;
1021
1025
  if (a.indexOf(A) > -1)
1022
1026
  continue;
1023
1027
  a.push(A);
@@ -1029,47 +1033,47 @@ const dn = (e, t) => {
1029
1033
  l = u + (l.length > 0 ? " " + l : l);
1030
1034
  }
1031
1035
  return l;
1032
- }, _n = (...e) => {
1036
+ }, In = (...e) => {
1033
1037
  let t = 0, o, r, n = "";
1034
1038
  for (; t < e.length; )
1035
- (o = e[t++]) && (r = qt(o)) && (n && (n += " "), n += r);
1039
+ (o = e[t++]) && (r = Yt(o)) && (n && (n += " "), n += r);
1036
1040
  return n;
1037
- }, qt = (e) => {
1041
+ }, Yt = (e) => {
1038
1042
  if (typeof e == "string")
1039
1043
  return e;
1040
1044
  let t, o = "";
1041
1045
  for (let r = 0; r < e.length; r++)
1042
- e[r] && (t = qt(e[r])) && (o && (o += " "), o += t);
1046
+ e[r] && (t = Yt(e[r])) && (o && (o += " "), o += t);
1043
1047
  return o;
1044
- }, In = (e, ...t) => {
1048
+ }, Pn = (e, ...t) => {
1045
1049
  let o, r, n, s;
1046
1050
  const a = (l) => {
1047
1051
  const d = t.reduce((u, f) => f(u), e());
1048
- return o = Nn(d), r = o.cache.get, n = o.cache.set, s = i, i(l);
1052
+ return o = An(d), r = o.cache.get, n = o.cache.set, s = i, i(l);
1049
1053
  }, i = (l) => {
1050
1054
  const d = r(l);
1051
1055
  if (d)
1052
1056
  return d;
1053
- const u = Rn(l, o);
1057
+ const u = _n(l, o);
1054
1058
  return n(l, u), u;
1055
1059
  };
1056
- return s = a, (...l) => s(_n(...l));
1057
- }, Pn = [], F = (e) => {
1058
- const t = (o) => o[e] || Pn;
1060
+ return s = a, (...l) => s(In(...l));
1061
+ }, zn = [], F = (e) => {
1062
+ const t = (o) => o[e] || zn;
1059
1063
  return t.isThemeGetter = !0, t;
1060
- }, Yt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Xt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, zn = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Tn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Mn = /\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$/, Ln = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, On = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, $n = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ee = (e) => zn.test(e), I = (e) => !!e && !Number.isNaN(Number(e)), te = (e) => !!e && Number.isInteger(Number(e)), He = (e) => e.endsWith("%") && I(e.slice(0, -1)), K = (e) => Tn.test(e), Zt = () => !0, Fn = (e) => (
1064
+ }, Xt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Zt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Tn = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Mn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ln = /\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$/, On = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, $n = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Fn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ee = (e) => Tn.test(e), I = (e) => !!e && !Number.isNaN(Number(e)), te = (e) => !!e && Number.isInteger(Number(e)), He = (e) => e.endsWith("%") && I(e.slice(0, -1)), K = (e) => Mn.test(e), Kt = () => !0, Dn = (e) => (
1061
1065
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
1062
1066
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1063
1067
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1064
- Mn.test(e) && !Ln.test(e)
1065
- ), tt = () => !1, Dn = (e) => On.test(e), Un = (e) => $n.test(e), Wn = (e) => !v(e) && !x(e), Hn = (e) => re(e, Qt, tt), v = (e) => Yt.test(e), se = (e) => re(e, eo, Fn), vt = (e) => re(e, Zn, I), Vn = (e) => re(e, oo, Zt), jn = (e) => re(e, to, tt), xt = (e) => re(e, Kt, tt), Bn = (e) => re(e, Jt, Un), Ee = (e) => re(e, ro, Dn), x = (e) => Xt.test(e), ue = (e) => le(e, eo), Gn = (e) => le(e, to), wt = (e) => le(e, Kt), qn = (e) => le(e, Qt), Yn = (e) => le(e, Jt), Ne = (e) => le(e, ro, !0), Xn = (e) => le(e, oo, !0), re = (e, t, o) => {
1066
- const r = Yt.exec(e);
1068
+ Ln.test(e) && !On.test(e)
1069
+ ), tt = () => !1, Un = (e) => $n.test(e), Wn = (e) => Fn.test(e), Hn = (e) => !v(e) && !w(e), Vn = (e) => re(e, eo, tt), v = (e) => Xt.test(e), se = (e) => re(e, to, Dn), vt = (e) => re(e, Kn, I), jn = (e) => re(e, ro, Kt), Bn = (e) => re(e, oo, tt), xt = (e) => re(e, Jt, tt), Gn = (e) => re(e, Qt, Wn), Ee = (e) => re(e, no, Un), w = (e) => Zt.test(e), ue = (e) => le(e, to), qn = (e) => le(e, oo), wt = (e) => le(e, Jt), Yn = (e) => le(e, eo), Xn = (e) => le(e, Qt), Ne = (e) => le(e, no, !0), Zn = (e) => le(e, ro, !0), re = (e, t, o) => {
1070
+ const r = Xt.exec(e);
1067
1071
  return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
1068
1072
  }, le = (e, t, o = !1) => {
1069
- const r = Xt.exec(e);
1073
+ const r = Zt.exec(e);
1070
1074
  return r ? r[1] ? t(r[1]) : o : !1;
1071
- }, Kt = (e) => e === "position" || e === "percentage", Jt = (e) => e === "image" || e === "url", Qt = (e) => e === "length" || e === "size" || e === "bg-size", eo = (e) => e === "length", Zn = (e) => e === "number", to = (e) => e === "family-name", oo = (e) => e === "number" || e === "weight", ro = (e) => e === "shadow", Kn = () => {
1072
- const e = F("color"), t = F("font"), o = F("text"), r = F("font-weight"), n = F("tracking"), s = F("leading"), a = F("breakpoint"), i = F("container"), l = F("spacing"), d = F("radius"), u = F("shadow"), f = F("inset-shadow"), m = F("text-shadow"), b = F("drop-shadow"), S = F("blur"), w = F("perspective"), h = F("aspect"), y = F("ease"), R = F("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [
1075
+ }, Jt = (e) => e === "position" || e === "percentage", Qt = (e) => e === "image" || e === "url", eo = (e) => e === "length" || e === "size" || e === "bg-size", to = (e) => e === "length", Kn = (e) => e === "number", oo = (e) => e === "family-name", ro = (e) => e === "number" || e === "weight", no = (e) => e === "shadow", Jn = () => {
1076
+ const e = F("color"), t = F("font"), o = F("text"), r = F("font-weight"), n = F("tracking"), s = F("leading"), a = F("breakpoint"), i = F("container"), l = F("spacing"), d = F("radius"), u = F("shadow"), f = F("inset-shadow"), m = F("text-shadow"), g = F("drop-shadow"), k = F("blur"), x = F("perspective"), h = F("aspect"), y = F("ease"), R = F("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [
1073
1077
  "center",
1074
1078
  "top",
1075
1079
  "bottom",
@@ -1087,30 +1091,30 @@ const dn = (e, t) => {
1087
1091
  "bottom-left",
1088
1092
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1089
1093
  "left-bottom"
1090
- ], P = () => [...A(), x, v], E = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], g = () => [x, v, l], k = () => [ee, "full", "auto", ...g()], M = () => [te, "none", "subgrid", x, v], O = () => ["auto", {
1091
- span: ["full", te, x, v]
1092
- }, te, x, v], Z = () => [te, "auto", x, v], ve = () => ["auto", "min", "max", "fr", x, v], xe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], $ = () => ["auto", ...g()], ne = () => [ee, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...g()], $e = () => [ee, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...g()], Fe = () => [ee, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...g()], N = () => [e, x, v], ct = () => [...A(), wt, xt, {
1093
- position: [x, v]
1094
+ ], P = () => [...A(), w, v], E = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], b = () => [w, v, l], S = () => [ee, "full", "auto", ...b()], M = () => [te, "none", "subgrid", w, v], O = () => ["auto", {
1095
+ span: ["full", te, w, v]
1096
+ }, te, w, v], Z = () => [te, "auto", w, v], ve = () => ["auto", "min", "max", "fr", w, v], xe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], $ = () => ["auto", ...b()], ne = () => [ee, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], $e = () => [ee, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...b()], Fe = () => [ee, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...b()], N = () => [e, w, v], ct = () => [...A(), wt, xt, {
1097
+ position: [w, v]
1094
1098
  }], dt = () => ["no-repeat", {
1095
1099
  repeat: ["", "x", "y", "space", "round"]
1096
- }], ut = () => ["auto", "cover", "contain", qn, Hn, {
1097
- size: [x, v]
1100
+ }], ut = () => ["auto", "cover", "contain", Yn, Vn, {
1101
+ size: [w, v]
1098
1102
  }], De = () => [He, ue, se], H = () => [
1099
1103
  // Deprecated since Tailwind CSS v4.0.0
1100
1104
  "",
1101
1105
  "none",
1102
1106
  "full",
1103
1107
  d,
1104
- x,
1108
+ w,
1105
1109
  v
1106
1110
  ], V = () => ["", I, ue, se], we = () => ["solid", "dashed", "dotted", "double"], ft = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => [I, He, wt, xt], mt = () => [
1107
1111
  // Deprecated since Tailwind CSS v4.0.0
1108
1112
  "",
1109
1113
  "none",
1110
- S,
1111
- x,
1114
+ k,
1115
+ w,
1112
1116
  v
1113
- ], ye = () => ["none", I, x, v], ke = () => ["none", I, x, v], Ue = () => [I, x, v], Se = () => [ee, "full", ...g()];
1117
+ ], ye = () => ["none", I, w, v], ke = () => ["none", I, w, v], Ue = () => [I, w, v], Se = () => [ee, "full", ...b()];
1114
1118
  return {
1115
1119
  cacheSize: 500,
1116
1120
  theme: {
@@ -1118,11 +1122,11 @@ const dn = (e, t) => {
1118
1122
  aspect: ["video"],
1119
1123
  blur: [K],
1120
1124
  breakpoint: [K],
1121
- color: [Zt],
1125
+ color: [Kt],
1122
1126
  container: [K],
1123
1127
  "drop-shadow": [K],
1124
1128
  ease: ["in", "out", "in-out"],
1125
- font: [Wn],
1129
+ font: [Hn],
1126
1130
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
1127
1131
  "inset-shadow": [K],
1128
1132
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
@@ -1143,7 +1147,7 @@ const dn = (e, t) => {
1143
1147
  * @see https://tailwindcss.com/docs/aspect-ratio
1144
1148
  */
1145
1149
  aspect: [{
1146
- aspect: ["auto", "square", ee, v, x, h]
1150
+ aspect: ["auto", "square", ee, v, w, h]
1147
1151
  }],
1148
1152
  /**
1149
1153
  * Container
@@ -1156,7 +1160,7 @@ const dn = (e, t) => {
1156
1160
  * @see https://tailwindcss.com/docs/columns
1157
1161
  */
1158
1162
  columns: [{
1159
- columns: [I, v, x, i]
1163
+ columns: [I, v, w, i]
1160
1164
  }],
1161
1165
  /**
1162
1166
  * Break After
@@ -1288,21 +1292,21 @@ const dn = (e, t) => {
1288
1292
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1289
1293
  */
1290
1294
  inset: [{
1291
- inset: k()
1295
+ inset: S()
1292
1296
  }],
1293
1297
  /**
1294
1298
  * Inset Inline
1295
1299
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1296
1300
  */
1297
1301
  "inset-x": [{
1298
- "inset-x": k()
1302
+ "inset-x": S()
1299
1303
  }],
1300
1304
  /**
1301
1305
  * Inset Block
1302
1306
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1303
1307
  */
1304
1308
  "inset-y": [{
1305
- "inset-y": k()
1309
+ "inset-y": S()
1306
1310
  }],
1307
1311
  /**
1308
1312
  * Inset Inline Start
@@ -1310,12 +1314,12 @@ const dn = (e, t) => {
1310
1314
  * @todo class group will be renamed to `inset-s` in next major release
1311
1315
  */
1312
1316
  start: [{
1313
- "inset-s": k(),
1317
+ "inset-s": S(),
1314
1318
  /**
1315
1319
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
1316
1320
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
1317
1321
  */
1318
- start: k()
1322
+ start: S()
1319
1323
  }],
1320
1324
  /**
1321
1325
  * Inset Inline End
@@ -1323,54 +1327,54 @@ const dn = (e, t) => {
1323
1327
  * @todo class group will be renamed to `inset-e` in next major release
1324
1328
  */
1325
1329
  end: [{
1326
- "inset-e": k(),
1330
+ "inset-e": S(),
1327
1331
  /**
1328
1332
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
1329
1333
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
1330
1334
  */
1331
- end: k()
1335
+ end: S()
1332
1336
  }],
1333
1337
  /**
1334
1338
  * Inset Block Start
1335
1339
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1336
1340
  */
1337
1341
  "inset-bs": [{
1338
- "inset-bs": k()
1342
+ "inset-bs": S()
1339
1343
  }],
1340
1344
  /**
1341
1345
  * Inset Block End
1342
1346
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1343
1347
  */
1344
1348
  "inset-be": [{
1345
- "inset-be": k()
1349
+ "inset-be": S()
1346
1350
  }],
1347
1351
  /**
1348
1352
  * Top
1349
1353
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1350
1354
  */
1351
1355
  top: [{
1352
- top: k()
1356
+ top: S()
1353
1357
  }],
1354
1358
  /**
1355
1359
  * Right
1356
1360
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1357
1361
  */
1358
1362
  right: [{
1359
- right: k()
1363
+ right: S()
1360
1364
  }],
1361
1365
  /**
1362
1366
  * Bottom
1363
1367
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1364
1368
  */
1365
1369
  bottom: [{
1366
- bottom: k()
1370
+ bottom: S()
1367
1371
  }],
1368
1372
  /**
1369
1373
  * Left
1370
1374
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1371
1375
  */
1372
1376
  left: [{
1373
- left: k()
1377
+ left: S()
1374
1378
  }],
1375
1379
  /**
1376
1380
  * Visibility
@@ -1382,7 +1386,7 @@ const dn = (e, t) => {
1382
1386
  * @see https://tailwindcss.com/docs/z-index
1383
1387
  */
1384
1388
  z: [{
1385
- z: [te, "auto", x, v]
1389
+ z: [te, "auto", w, v]
1386
1390
  }],
1387
1391
  // ------------------------
1388
1392
  // --- Flexbox and Grid ---
@@ -1392,7 +1396,7 @@ const dn = (e, t) => {
1392
1396
  * @see https://tailwindcss.com/docs/flex-basis
1393
1397
  */
1394
1398
  basis: [{
1395
- basis: [ee, "full", "auto", i, ...g()]
1399
+ basis: [ee, "full", "auto", i, ...b()]
1396
1400
  }],
1397
1401
  /**
1398
1402
  * Flex Direction
@@ -1420,21 +1424,21 @@ const dn = (e, t) => {
1420
1424
  * @see https://tailwindcss.com/docs/flex-grow
1421
1425
  */
1422
1426
  grow: [{
1423
- grow: ["", I, x, v]
1427
+ grow: ["", I, w, v]
1424
1428
  }],
1425
1429
  /**
1426
1430
  * Flex Shrink
1427
1431
  * @see https://tailwindcss.com/docs/flex-shrink
1428
1432
  */
1429
1433
  shrink: [{
1430
- shrink: ["", I, x, v]
1434
+ shrink: ["", I, w, v]
1431
1435
  }],
1432
1436
  /**
1433
1437
  * Order
1434
1438
  * @see https://tailwindcss.com/docs/order
1435
1439
  */
1436
1440
  order: [{
1437
- order: [te, "first", "last", "none", x, v]
1441
+ order: [te, "first", "last", "none", w, v]
1438
1442
  }],
1439
1443
  /**
1440
1444
  * Grid Template Columns
@@ -1518,21 +1522,21 @@ const dn = (e, t) => {
1518
1522
  * @see https://tailwindcss.com/docs/gap
1519
1523
  */
1520
1524
  gap: [{
1521
- gap: g()
1525
+ gap: b()
1522
1526
  }],
1523
1527
  /**
1524
1528
  * Gap X
1525
1529
  * @see https://tailwindcss.com/docs/gap
1526
1530
  */
1527
1531
  "gap-x": [{
1528
- "gap-x": g()
1532
+ "gap-x": b()
1529
1533
  }],
1530
1534
  /**
1531
1535
  * Gap Y
1532
1536
  * @see https://tailwindcss.com/docs/gap
1533
1537
  */
1534
1538
  "gap-y": [{
1535
- "gap-y": g()
1539
+ "gap-y": b()
1536
1540
  }],
1537
1541
  /**
1538
1542
  * Justify Content
@@ -1607,77 +1611,77 @@ const dn = (e, t) => {
1607
1611
  * @see https://tailwindcss.com/docs/padding
1608
1612
  */
1609
1613
  p: [{
1610
- p: g()
1614
+ p: b()
1611
1615
  }],
1612
1616
  /**
1613
1617
  * Padding Inline
1614
1618
  * @see https://tailwindcss.com/docs/padding
1615
1619
  */
1616
1620
  px: [{
1617
- px: g()
1621
+ px: b()
1618
1622
  }],
1619
1623
  /**
1620
1624
  * Padding Block
1621
1625
  * @see https://tailwindcss.com/docs/padding
1622
1626
  */
1623
1627
  py: [{
1624
- py: g()
1628
+ py: b()
1625
1629
  }],
1626
1630
  /**
1627
1631
  * Padding Inline Start
1628
1632
  * @see https://tailwindcss.com/docs/padding
1629
1633
  */
1630
1634
  ps: [{
1631
- ps: g()
1635
+ ps: b()
1632
1636
  }],
1633
1637
  /**
1634
1638
  * Padding Inline End
1635
1639
  * @see https://tailwindcss.com/docs/padding
1636
1640
  */
1637
1641
  pe: [{
1638
- pe: g()
1642
+ pe: b()
1639
1643
  }],
1640
1644
  /**
1641
1645
  * Padding Block Start
1642
1646
  * @see https://tailwindcss.com/docs/padding
1643
1647
  */
1644
1648
  pbs: [{
1645
- pbs: g()
1649
+ pbs: b()
1646
1650
  }],
1647
1651
  /**
1648
1652
  * Padding Block End
1649
1653
  * @see https://tailwindcss.com/docs/padding
1650
1654
  */
1651
1655
  pbe: [{
1652
- pbe: g()
1656
+ pbe: b()
1653
1657
  }],
1654
1658
  /**
1655
1659
  * Padding Top
1656
1660
  * @see https://tailwindcss.com/docs/padding
1657
1661
  */
1658
1662
  pt: [{
1659
- pt: g()
1663
+ pt: b()
1660
1664
  }],
1661
1665
  /**
1662
1666
  * Padding Right
1663
1667
  * @see https://tailwindcss.com/docs/padding
1664
1668
  */
1665
1669
  pr: [{
1666
- pr: g()
1670
+ pr: b()
1667
1671
  }],
1668
1672
  /**
1669
1673
  * Padding Bottom
1670
1674
  * @see https://tailwindcss.com/docs/padding
1671
1675
  */
1672
1676
  pb: [{
1673
- pb: g()
1677
+ pb: b()
1674
1678
  }],
1675
1679
  /**
1676
1680
  * Padding Left
1677
1681
  * @see https://tailwindcss.com/docs/padding
1678
1682
  */
1679
1683
  pl: [{
1680
- pl: g()
1684
+ pl: b()
1681
1685
  }],
1682
1686
  /**
1683
1687
  * Margin
@@ -1761,7 +1765,7 @@ const dn = (e, t) => {
1761
1765
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1762
1766
  */
1763
1767
  "space-x": [{
1764
- "space-x": g()
1768
+ "space-x": b()
1765
1769
  }],
1766
1770
  /**
1767
1771
  * Space Between X Reverse
@@ -1773,7 +1777,7 @@ const dn = (e, t) => {
1773
1777
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1774
1778
  */
1775
1779
  "space-y": [{
1776
- "space-y": g()
1780
+ "space-y": b()
1777
1781
  }],
1778
1782
  /**
1779
1783
  * Space Between Y Reverse
@@ -1916,7 +1920,7 @@ const dn = (e, t) => {
1916
1920
  * @see https://tailwindcss.com/docs/font-weight
1917
1921
  */
1918
1922
  "font-weight": [{
1919
- font: [r, Xn, Vn]
1923
+ font: [r, Zn, jn]
1920
1924
  }],
1921
1925
  /**
1922
1926
  * Font Stretch
@@ -1930,7 +1934,7 @@ const dn = (e, t) => {
1930
1934
  * @see https://tailwindcss.com/docs/font-family
1931
1935
  */
1932
1936
  "font-family": [{
1933
- font: [Gn, jn, t]
1937
+ font: [qn, Bn, t]
1934
1938
  }],
1935
1939
  /**
1936
1940
  * Font Feature Settings
@@ -1974,14 +1978,14 @@ const dn = (e, t) => {
1974
1978
  * @see https://tailwindcss.com/docs/letter-spacing
1975
1979
  */
1976
1980
  tracking: [{
1977
- tracking: [n, x, v]
1981
+ tracking: [n, w, v]
1978
1982
  }],
1979
1983
  /**
1980
1984
  * Line Clamp
1981
1985
  * @see https://tailwindcss.com/docs/line-clamp
1982
1986
  */
1983
1987
  "line-clamp": [{
1984
- "line-clamp": [I, "none", x, vt]
1988
+ "line-clamp": [I, "none", w, vt]
1985
1989
  }],
1986
1990
  /**
1987
1991
  * Line Height
@@ -1991,7 +1995,7 @@ const dn = (e, t) => {
1991
1995
  leading: [
1992
1996
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1993
1997
  s,
1994
- ...g()
1998
+ ...b()
1995
1999
  ]
1996
2000
  }],
1997
2001
  /**
@@ -1999,7 +2003,7 @@ const dn = (e, t) => {
1999
2003
  * @see https://tailwindcss.com/docs/list-style-image
2000
2004
  */
2001
2005
  "list-image": [{
2002
- "list-image": ["none", x, v]
2006
+ "list-image": ["none", w, v]
2003
2007
  }],
2004
2008
  /**
2005
2009
  * List Style Position
@@ -2013,7 +2017,7 @@ const dn = (e, t) => {
2013
2017
  * @see https://tailwindcss.com/docs/list-style-type
2014
2018
  */
2015
2019
  "list-style-type": [{
2016
- list: ["disc", "decimal", "none", x, v]
2020
+ list: ["disc", "decimal", "none", w, v]
2017
2021
  }],
2018
2022
  /**
2019
2023
  * Text Alignment
@@ -2054,7 +2058,7 @@ const dn = (e, t) => {
2054
2058
  * @see https://tailwindcss.com/docs/text-decoration-thickness
2055
2059
  */
2056
2060
  "text-decoration-thickness": [{
2057
- decoration: [I, "from-font", "auto", x, se]
2061
+ decoration: [I, "from-font", "auto", w, se]
2058
2062
  }],
2059
2063
  /**
2060
2064
  * Text Decoration Color
@@ -2068,7 +2072,7 @@ const dn = (e, t) => {
2068
2072
  * @see https://tailwindcss.com/docs/text-underline-offset
2069
2073
  */
2070
2074
  "underline-offset": [{
2071
- "underline-offset": [I, "auto", x, v]
2075
+ "underline-offset": [I, "auto", w, v]
2072
2076
  }],
2073
2077
  /**
2074
2078
  * Text Transform
@@ -2092,14 +2096,14 @@ const dn = (e, t) => {
2092
2096
  * @see https://tailwindcss.com/docs/text-indent
2093
2097
  */
2094
2098
  indent: [{
2095
- indent: g()
2099
+ indent: b()
2096
2100
  }],
2097
2101
  /**
2098
2102
  * Vertical Alignment
2099
2103
  * @see https://tailwindcss.com/docs/vertical-align
2100
2104
  */
2101
2105
  "vertical-align": [{
2102
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", x, v]
2106
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", w, v]
2103
2107
  }],
2104
2108
  /**
2105
2109
  * Whitespace
@@ -2134,7 +2138,7 @@ const dn = (e, t) => {
2134
2138
  * @see https://tailwindcss.com/docs/content
2135
2139
  */
2136
2140
  content: [{
2137
- content: ["none", x, v]
2141
+ content: ["none", w, v]
2138
2142
  }],
2139
2143
  // -------------------
2140
2144
  // --- Backgrounds ---
@@ -2189,10 +2193,10 @@ const dn = (e, t) => {
2189
2193
  bg: ["none", {
2190
2194
  linear: [{
2191
2195
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
2192
- }, te, x, v],
2193
- radial: ["", x, v],
2194
- conic: [te, x, v]
2195
- }, Yn, Bn]
2196
+ }, te, w, v],
2197
+ radial: ["", w, v],
2198
+ conic: [te, w, v]
2199
+ }, Xn, Gn]
2196
2200
  }],
2197
2201
  /**
2198
2202
  * Background Color
@@ -2562,7 +2566,7 @@ const dn = (e, t) => {
2562
2566
  * @see https://tailwindcss.com/docs/outline-offset
2563
2567
  */
2564
2568
  "outline-offset": [{
2565
- "outline-offset": [I, x, v]
2569
+ "outline-offset": [I, w, v]
2566
2570
  }],
2567
2571
  /**
2568
2572
  * Outline Width
@@ -2688,7 +2692,7 @@ const dn = (e, t) => {
2688
2692
  * @see https://tailwindcss.com/docs/opacity
2689
2693
  */
2690
2694
  opacity: [{
2691
- opacity: [I, x, v]
2695
+ opacity: [I, w, v]
2692
2696
  }],
2693
2697
  /**
2694
2698
  * Mix Blend Mode
@@ -2810,7 +2814,7 @@ const dn = (e, t) => {
2810
2814
  "mask-y-to": N()
2811
2815
  }],
2812
2816
  "mask-image-radial": [{
2813
- "mask-radial": [x, v]
2817
+ "mask-radial": [w, v]
2814
2818
  }],
2815
2819
  "mask-image-radial-from-pos": [{
2816
2820
  "mask-radial-from": D()
@@ -2898,7 +2902,7 @@ const dn = (e, t) => {
2898
2902
  * @see https://tailwindcss.com/docs/mask-image
2899
2903
  */
2900
2904
  "mask-image": [{
2901
- mask: ["none", x, v]
2905
+ mask: ["none", w, v]
2902
2906
  }],
2903
2907
  // ---------------
2904
2908
  // --- Filters ---
@@ -2912,7 +2916,7 @@ const dn = (e, t) => {
2912
2916
  // Deprecated since Tailwind CSS v3.0.0
2913
2917
  "",
2914
2918
  "none",
2915
- x,
2919
+ w,
2916
2920
  v
2917
2921
  ]
2918
2922
  }],
@@ -2928,14 +2932,14 @@ const dn = (e, t) => {
2928
2932
  * @see https://tailwindcss.com/docs/brightness
2929
2933
  */
2930
2934
  brightness: [{
2931
- brightness: [I, x, v]
2935
+ brightness: [I, w, v]
2932
2936
  }],
2933
2937
  /**
2934
2938
  * Contrast
2935
2939
  * @see https://tailwindcss.com/docs/contrast
2936
2940
  */
2937
2941
  contrast: [{
2938
- contrast: [I, x, v]
2942
+ contrast: [I, w, v]
2939
2943
  }],
2940
2944
  /**
2941
2945
  * Drop Shadow
@@ -2946,7 +2950,7 @@ const dn = (e, t) => {
2946
2950
  // Deprecated since Tailwind CSS v4.0.0
2947
2951
  "",
2948
2952
  "none",
2949
- b,
2953
+ g,
2950
2954
  Ne,
2951
2955
  Ee
2952
2956
  ]
@@ -2963,35 +2967,35 @@ const dn = (e, t) => {
2963
2967
  * @see https://tailwindcss.com/docs/grayscale
2964
2968
  */
2965
2969
  grayscale: [{
2966
- grayscale: ["", I, x, v]
2970
+ grayscale: ["", I, w, v]
2967
2971
  }],
2968
2972
  /**
2969
2973
  * Hue Rotate
2970
2974
  * @see https://tailwindcss.com/docs/hue-rotate
2971
2975
  */
2972
2976
  "hue-rotate": [{
2973
- "hue-rotate": [I, x, v]
2977
+ "hue-rotate": [I, w, v]
2974
2978
  }],
2975
2979
  /**
2976
2980
  * Invert
2977
2981
  * @see https://tailwindcss.com/docs/invert
2978
2982
  */
2979
2983
  invert: [{
2980
- invert: ["", I, x, v]
2984
+ invert: ["", I, w, v]
2981
2985
  }],
2982
2986
  /**
2983
2987
  * Saturate
2984
2988
  * @see https://tailwindcss.com/docs/saturate
2985
2989
  */
2986
2990
  saturate: [{
2987
- saturate: [I, x, v]
2991
+ saturate: [I, w, v]
2988
2992
  }],
2989
2993
  /**
2990
2994
  * Sepia
2991
2995
  * @see https://tailwindcss.com/docs/sepia
2992
2996
  */
2993
2997
  sepia: [{
2994
- sepia: ["", I, x, v]
2998
+ sepia: ["", I, w, v]
2995
2999
  }],
2996
3000
  /**
2997
3001
  * Backdrop Filter
@@ -3002,7 +3006,7 @@ const dn = (e, t) => {
3002
3006
  // Deprecated since Tailwind CSS v3.0.0
3003
3007
  "",
3004
3008
  "none",
3005
- x,
3009
+ w,
3006
3010
  v
3007
3011
  ]
3008
3012
  }],
@@ -3018,56 +3022,56 @@ const dn = (e, t) => {
3018
3022
  * @see https://tailwindcss.com/docs/backdrop-brightness
3019
3023
  */
3020
3024
  "backdrop-brightness": [{
3021
- "backdrop-brightness": [I, x, v]
3025
+ "backdrop-brightness": [I, w, v]
3022
3026
  }],
3023
3027
  /**
3024
3028
  * Backdrop Contrast
3025
3029
  * @see https://tailwindcss.com/docs/backdrop-contrast
3026
3030
  */
3027
3031
  "backdrop-contrast": [{
3028
- "backdrop-contrast": [I, x, v]
3032
+ "backdrop-contrast": [I, w, v]
3029
3033
  }],
3030
3034
  /**
3031
3035
  * Backdrop Grayscale
3032
3036
  * @see https://tailwindcss.com/docs/backdrop-grayscale
3033
3037
  */
3034
3038
  "backdrop-grayscale": [{
3035
- "backdrop-grayscale": ["", I, x, v]
3039
+ "backdrop-grayscale": ["", I, w, v]
3036
3040
  }],
3037
3041
  /**
3038
3042
  * Backdrop Hue Rotate
3039
3043
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
3040
3044
  */
3041
3045
  "backdrop-hue-rotate": [{
3042
- "backdrop-hue-rotate": [I, x, v]
3046
+ "backdrop-hue-rotate": [I, w, v]
3043
3047
  }],
3044
3048
  /**
3045
3049
  * Backdrop Invert
3046
3050
  * @see https://tailwindcss.com/docs/backdrop-invert
3047
3051
  */
3048
3052
  "backdrop-invert": [{
3049
- "backdrop-invert": ["", I, x, v]
3053
+ "backdrop-invert": ["", I, w, v]
3050
3054
  }],
3051
3055
  /**
3052
3056
  * Backdrop Opacity
3053
3057
  * @see https://tailwindcss.com/docs/backdrop-opacity
3054
3058
  */
3055
3059
  "backdrop-opacity": [{
3056
- "backdrop-opacity": [I, x, v]
3060
+ "backdrop-opacity": [I, w, v]
3057
3061
  }],
3058
3062
  /**
3059
3063
  * Backdrop Saturate
3060
3064
  * @see https://tailwindcss.com/docs/backdrop-saturate
3061
3065
  */
3062
3066
  "backdrop-saturate": [{
3063
- "backdrop-saturate": [I, x, v]
3067
+ "backdrop-saturate": [I, w, v]
3064
3068
  }],
3065
3069
  /**
3066
3070
  * Backdrop Sepia
3067
3071
  * @see https://tailwindcss.com/docs/backdrop-sepia
3068
3072
  */
3069
3073
  "backdrop-sepia": [{
3070
- "backdrop-sepia": ["", I, x, v]
3074
+ "backdrop-sepia": ["", I, w, v]
3071
3075
  }],
3072
3076
  // --------------
3073
3077
  // --- Tables ---
@@ -3084,21 +3088,21 @@ const dn = (e, t) => {
3084
3088
  * @see https://tailwindcss.com/docs/border-spacing
3085
3089
  */
3086
3090
  "border-spacing": [{
3087
- "border-spacing": g()
3091
+ "border-spacing": b()
3088
3092
  }],
3089
3093
  /**
3090
3094
  * Border Spacing X
3091
3095
  * @see https://tailwindcss.com/docs/border-spacing
3092
3096
  */
3093
3097
  "border-spacing-x": [{
3094
- "border-spacing-x": g()
3098
+ "border-spacing-x": b()
3095
3099
  }],
3096
3100
  /**
3097
3101
  * Border Spacing Y
3098
3102
  * @see https://tailwindcss.com/docs/border-spacing
3099
3103
  */
3100
3104
  "border-spacing-y": [{
3101
- "border-spacing-y": g()
3105
+ "border-spacing-y": b()
3102
3106
  }],
3103
3107
  /**
3104
3108
  * Table Layout
@@ -3122,7 +3126,7 @@ const dn = (e, t) => {
3122
3126
  * @see https://tailwindcss.com/docs/transition-property
3123
3127
  */
3124
3128
  transition: [{
3125
- transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", x, v]
3129
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", w, v]
3126
3130
  }],
3127
3131
  /**
3128
3132
  * Transition Behavior
@@ -3136,28 +3140,28 @@ const dn = (e, t) => {
3136
3140
  * @see https://tailwindcss.com/docs/transition-duration
3137
3141
  */
3138
3142
  duration: [{
3139
- duration: [I, "initial", x, v]
3143
+ duration: [I, "initial", w, v]
3140
3144
  }],
3141
3145
  /**
3142
3146
  * Transition Timing Function
3143
3147
  * @see https://tailwindcss.com/docs/transition-timing-function
3144
3148
  */
3145
3149
  ease: [{
3146
- ease: ["linear", "initial", y, x, v]
3150
+ ease: ["linear", "initial", y, w, v]
3147
3151
  }],
3148
3152
  /**
3149
3153
  * Transition Delay
3150
3154
  * @see https://tailwindcss.com/docs/transition-delay
3151
3155
  */
3152
3156
  delay: [{
3153
- delay: [I, x, v]
3157
+ delay: [I, w, v]
3154
3158
  }],
3155
3159
  /**
3156
3160
  * Animation
3157
3161
  * @see https://tailwindcss.com/docs/animation
3158
3162
  */
3159
3163
  animate: [{
3160
- animate: ["none", R, x, v]
3164
+ animate: ["none", R, w, v]
3161
3165
  }],
3162
3166
  // ------------------
3163
3167
  // --- Transforms ---
@@ -3174,7 +3178,7 @@ const dn = (e, t) => {
3174
3178
  * @see https://tailwindcss.com/docs/perspective
3175
3179
  */
3176
3180
  perspective: [{
3177
- perspective: [w, x, v]
3181
+ perspective: [x, w, v]
3178
3182
  }],
3179
3183
  /**
3180
3184
  * Perspective Origin
@@ -3270,7 +3274,7 @@ const dn = (e, t) => {
3270
3274
  * @see https://tailwindcss.com/docs/transform
3271
3275
  */
3272
3276
  transform: [{
3273
- transform: [x, v, "", "none", "gpu", "cpu"]
3277
+ transform: [w, v, "", "none", "gpu", "cpu"]
3274
3278
  }],
3275
3279
  /**
3276
3280
  * Transform Origin
@@ -3355,7 +3359,7 @@ const dn = (e, t) => {
3355
3359
  * @see https://tailwindcss.com/docs/cursor
3356
3360
  */
3357
3361
  cursor: [{
3358
- 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", x, v]
3362
+ 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", w, v]
3359
3363
  }],
3360
3364
  /**
3361
3365
  * Field Sizing
@@ -3390,154 +3394,154 @@ const dn = (e, t) => {
3390
3394
  * @see https://tailwindcss.com/docs/scroll-margin
3391
3395
  */
3392
3396
  "scroll-m": [{
3393
- "scroll-m": g()
3397
+ "scroll-m": b()
3394
3398
  }],
3395
3399
  /**
3396
3400
  * Scroll Margin Inline
3397
3401
  * @see https://tailwindcss.com/docs/scroll-margin
3398
3402
  */
3399
3403
  "scroll-mx": [{
3400
- "scroll-mx": g()
3404
+ "scroll-mx": b()
3401
3405
  }],
3402
3406
  /**
3403
3407
  * Scroll Margin Block
3404
3408
  * @see https://tailwindcss.com/docs/scroll-margin
3405
3409
  */
3406
3410
  "scroll-my": [{
3407
- "scroll-my": g()
3411
+ "scroll-my": b()
3408
3412
  }],
3409
3413
  /**
3410
3414
  * Scroll Margin Inline Start
3411
3415
  * @see https://tailwindcss.com/docs/scroll-margin
3412
3416
  */
3413
3417
  "scroll-ms": [{
3414
- "scroll-ms": g()
3418
+ "scroll-ms": b()
3415
3419
  }],
3416
3420
  /**
3417
3421
  * Scroll Margin Inline End
3418
3422
  * @see https://tailwindcss.com/docs/scroll-margin
3419
3423
  */
3420
3424
  "scroll-me": [{
3421
- "scroll-me": g()
3425
+ "scroll-me": b()
3422
3426
  }],
3423
3427
  /**
3424
3428
  * Scroll Margin Block Start
3425
3429
  * @see https://tailwindcss.com/docs/scroll-margin
3426
3430
  */
3427
3431
  "scroll-mbs": [{
3428
- "scroll-mbs": g()
3432
+ "scroll-mbs": b()
3429
3433
  }],
3430
3434
  /**
3431
3435
  * Scroll Margin Block End
3432
3436
  * @see https://tailwindcss.com/docs/scroll-margin
3433
3437
  */
3434
3438
  "scroll-mbe": [{
3435
- "scroll-mbe": g()
3439
+ "scroll-mbe": b()
3436
3440
  }],
3437
3441
  /**
3438
3442
  * Scroll Margin Top
3439
3443
  * @see https://tailwindcss.com/docs/scroll-margin
3440
3444
  */
3441
3445
  "scroll-mt": [{
3442
- "scroll-mt": g()
3446
+ "scroll-mt": b()
3443
3447
  }],
3444
3448
  /**
3445
3449
  * Scroll Margin Right
3446
3450
  * @see https://tailwindcss.com/docs/scroll-margin
3447
3451
  */
3448
3452
  "scroll-mr": [{
3449
- "scroll-mr": g()
3453
+ "scroll-mr": b()
3450
3454
  }],
3451
3455
  /**
3452
3456
  * Scroll Margin Bottom
3453
3457
  * @see https://tailwindcss.com/docs/scroll-margin
3454
3458
  */
3455
3459
  "scroll-mb": [{
3456
- "scroll-mb": g()
3460
+ "scroll-mb": b()
3457
3461
  }],
3458
3462
  /**
3459
3463
  * Scroll Margin Left
3460
3464
  * @see https://tailwindcss.com/docs/scroll-margin
3461
3465
  */
3462
3466
  "scroll-ml": [{
3463
- "scroll-ml": g()
3467
+ "scroll-ml": b()
3464
3468
  }],
3465
3469
  /**
3466
3470
  * Scroll Padding
3467
3471
  * @see https://tailwindcss.com/docs/scroll-padding
3468
3472
  */
3469
3473
  "scroll-p": [{
3470
- "scroll-p": g()
3474
+ "scroll-p": b()
3471
3475
  }],
3472
3476
  /**
3473
3477
  * Scroll Padding Inline
3474
3478
  * @see https://tailwindcss.com/docs/scroll-padding
3475
3479
  */
3476
3480
  "scroll-px": [{
3477
- "scroll-px": g()
3481
+ "scroll-px": b()
3478
3482
  }],
3479
3483
  /**
3480
3484
  * Scroll Padding Block
3481
3485
  * @see https://tailwindcss.com/docs/scroll-padding
3482
3486
  */
3483
3487
  "scroll-py": [{
3484
- "scroll-py": g()
3488
+ "scroll-py": b()
3485
3489
  }],
3486
3490
  /**
3487
3491
  * Scroll Padding Inline Start
3488
3492
  * @see https://tailwindcss.com/docs/scroll-padding
3489
3493
  */
3490
3494
  "scroll-ps": [{
3491
- "scroll-ps": g()
3495
+ "scroll-ps": b()
3492
3496
  }],
3493
3497
  /**
3494
3498
  * Scroll Padding Inline End
3495
3499
  * @see https://tailwindcss.com/docs/scroll-padding
3496
3500
  */
3497
3501
  "scroll-pe": [{
3498
- "scroll-pe": g()
3502
+ "scroll-pe": b()
3499
3503
  }],
3500
3504
  /**
3501
3505
  * Scroll Padding Block Start
3502
3506
  * @see https://tailwindcss.com/docs/scroll-padding
3503
3507
  */
3504
3508
  "scroll-pbs": [{
3505
- "scroll-pbs": g()
3509
+ "scroll-pbs": b()
3506
3510
  }],
3507
3511
  /**
3508
3512
  * Scroll Padding Block End
3509
3513
  * @see https://tailwindcss.com/docs/scroll-padding
3510
3514
  */
3511
3515
  "scroll-pbe": [{
3512
- "scroll-pbe": g()
3516
+ "scroll-pbe": b()
3513
3517
  }],
3514
3518
  /**
3515
3519
  * Scroll Padding Top
3516
3520
  * @see https://tailwindcss.com/docs/scroll-padding
3517
3521
  */
3518
3522
  "scroll-pt": [{
3519
- "scroll-pt": g()
3523
+ "scroll-pt": b()
3520
3524
  }],
3521
3525
  /**
3522
3526
  * Scroll Padding Right
3523
3527
  * @see https://tailwindcss.com/docs/scroll-padding
3524
3528
  */
3525
3529
  "scroll-pr": [{
3526
- "scroll-pr": g()
3530
+ "scroll-pr": b()
3527
3531
  }],
3528
3532
  /**
3529
3533
  * Scroll Padding Bottom
3530
3534
  * @see https://tailwindcss.com/docs/scroll-padding
3531
3535
  */
3532
3536
  "scroll-pb": [{
3533
- "scroll-pb": g()
3537
+ "scroll-pb": b()
3534
3538
  }],
3535
3539
  /**
3536
3540
  * Scroll Padding Left
3537
3541
  * @see https://tailwindcss.com/docs/scroll-padding
3538
3542
  */
3539
3543
  "scroll-pl": [{
3540
- "scroll-pl": g()
3544
+ "scroll-pl": b()
3541
3545
  }],
3542
3546
  /**
3543
3547
  * Scroll Snap Align
@@ -3605,7 +3609,7 @@ const dn = (e, t) => {
3605
3609
  * @see https://tailwindcss.com/docs/will-change
3606
3610
  */
3607
3611
  "will-change": [{
3608
- "will-change": ["auto", "scroll", "contents", "transform", x, v]
3612
+ "will-change": ["auto", "scroll", "contents", "transform", w, v]
3609
3613
  }],
3610
3614
  // -----------
3611
3615
  // --- SVG ---
@@ -3697,7 +3701,7 @@ const dn = (e, t) => {
3697
3701
  },
3698
3702
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3699
3703
  };
3700
- }, Jn = /* @__PURE__ */ In(Kn), T = (...e) => Jn(Vt(e));
3704
+ }, Qn = /* @__PURE__ */ Pn(Jn), T = (...e) => Qn(jt(e));
3701
3705
  function me({ className: e, ...t }) {
3702
3706
  return /* @__PURE__ */ c(
3703
3707
  "div",
@@ -3711,7 +3715,7 @@ function me({ className: e, ...t }) {
3711
3715
  }
3712
3716
  );
3713
3717
  }
3714
- function Qn({ className: e, ...t }) {
3718
+ function es({ className: e, ...t }) {
3715
3719
  return /* @__PURE__ */ c(
3716
3720
  "div",
3717
3721
  {
@@ -3734,7 +3738,7 @@ function pe({ className: e, ...t }) {
3734
3738
  }
3735
3739
  );
3736
3740
  }
3737
- const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt = Vt, ot = (e, t) => (o) => {
3741
+ const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt = jt, ot = (e, t) => (o) => {
3738
3742
  var r;
3739
3743
  if ((t == null ? void 0 : t.variants) == null) return kt(e, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
3740
3744
  const { variants: n, defaultVariants: s } = t, a = Object.keys(n).map((d) => {
@@ -3746,16 +3750,16 @@ const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt = Vt, o
3746
3750
  let [f, m] = u;
3747
3751
  return m === void 0 || (d[f] = m), d;
3748
3752
  }, {}), l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((d, u) => {
3749
- let { class: f, className: m, ...b } = u;
3750
- return Object.entries(b).every((S) => {
3751
- let [w, h] = S;
3753
+ let { class: f, className: m, ...g } = u;
3754
+ return Object.entries(g).every((k) => {
3755
+ let [x, h] = k;
3752
3756
  return Array.isArray(h) ? h.includes({
3753
3757
  ...s,
3754
3758
  ...i
3755
- }[w]) : {
3759
+ }[x]) : {
3756
3760
  ...s,
3757
3761
  ...i
3758
- }[w] === h;
3762
+ }[x] === h;
3759
3763
  }) ? [
3760
3764
  ...d,
3761
3765
  f,
@@ -3769,7 +3773,7 @@ function St(e, t) {
3769
3773
  return e(t);
3770
3774
  e != null && (e.current = t);
3771
3775
  }
3772
- function no(...e) {
3776
+ function so(...e) {
3773
3777
  return (t) => {
3774
3778
  let o = !1;
3775
3779
  const r = e.map((n) => {
@@ -3786,12 +3790,12 @@ function no(...e) {
3786
3790
  };
3787
3791
  }
3788
3792
  function Y(...e) {
3789
- return p.useCallback(no(...e), e);
3793
+ return p.useCallback(so(...e), e);
3790
3794
  }
3791
3795
  // @__NO_SIDE_EFFECTS__
3792
3796
  function Pe(e) {
3793
- const t = /* @__PURE__ */ es(e), o = p.forwardRef((r, n) => {
3794
- const { children: s, ...a } = r, i = p.Children.toArray(s), l = i.find(os);
3797
+ const t = /* @__PURE__ */ ts(e), o = p.forwardRef((r, n) => {
3798
+ const { children: s, ...a } = r, i = p.Children.toArray(s), l = i.find(rs);
3795
3799
  if (l) {
3796
3800
  const d = l.props.children, u = i.map((f) => f === l ? p.Children.count(d) > 1 ? p.Children.only(null) : p.isValidElement(d) ? d.props.children : null : f);
3797
3801
  return /* @__PURE__ */ c(t, { ...a, ref: n, children: p.isValidElement(d) ? p.cloneElement(d, void 0, u) : null });
@@ -3800,24 +3804,24 @@ function Pe(e) {
3800
3804
  });
3801
3805
  return o.displayName = `${e}.Slot`, o;
3802
3806
  }
3803
- var so = /* @__PURE__ */ Pe("Slot");
3807
+ var ao = /* @__PURE__ */ Pe("Slot");
3804
3808
  // @__NO_SIDE_EFFECTS__
3805
- function es(e) {
3809
+ function ts(e) {
3806
3810
  const t = p.forwardRef((o, r) => {
3807
3811
  const { children: n, ...s } = o;
3808
3812
  if (p.isValidElement(n)) {
3809
- const a = ns(n), i = rs(s, n.props);
3810
- return n.type !== p.Fragment && (i.ref = r ? no(r, a) : a), p.cloneElement(n, i);
3813
+ const a = ss(n), i = ns(s, n.props);
3814
+ return n.type !== p.Fragment && (i.ref = r ? so(r, a) : a), p.cloneElement(n, i);
3811
3815
  }
3812
3816
  return p.Children.count(n) > 1 ? p.Children.only(null) : null;
3813
3817
  });
3814
3818
  return t.displayName = `${e}.SlotClone`, t;
3815
3819
  }
3816
- var ts = Symbol("radix.slottable");
3817
- function os(e) {
3818
- return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ts;
3820
+ var os = Symbol("radix.slottable");
3821
+ function rs(e) {
3822
+ return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === os;
3819
3823
  }
3820
- function rs(e, t) {
3824
+ function ns(e, t) {
3821
3825
  const o = { ...t };
3822
3826
  for (const r in t) {
3823
3827
  const n = e[r], s = t[r];
@@ -3828,12 +3832,12 @@ function rs(e, t) {
3828
3832
  }
3829
3833
  return { ...e, ...o };
3830
3834
  }
3831
- function ns(e) {
3835
+ function ss(e) {
3832
3836
  var r, n;
3833
3837
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
3834
3838
  return o ? e.ref : (t = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
3835
3839
  }
3836
- var ss = [
3840
+ var as = [
3837
3841
  "a",
3838
3842
  "button",
3839
3843
  "div",
@@ -3851,7 +3855,7 @@ var ss = [
3851
3855
  "span",
3852
3856
  "svg",
3853
3857
  "ul"
3854
- ], j = ss.reduce((e, t) => {
3858
+ ], j = as.reduce((e, t) => {
3855
3859
  const o = /* @__PURE__ */ Pe(`Primitive.${t}`), r = p.forwardRef((n, s) => {
3856
3860
  const { asChild: a, ...i } = n, l = a ? o : t;
3857
3861
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c(l, { ...i, ref: s });
@@ -3865,14 +3869,14 @@ function ge(e, t = []) {
3865
3869
  o = [...o, a];
3866
3870
  const d = (f) => {
3867
3871
  var y;
3868
- const { scope: m, children: b, ...S } = f, w = ((y = m == null ? void 0 : m[e]) == null ? void 0 : y[l]) || i, h = p.useMemo(() => S, Object.values(S));
3869
- return /* @__PURE__ */ c(w.Provider, { value: h, children: b });
3872
+ const { scope: m, children: g, ...k } = f, x = ((y = m == null ? void 0 : m[e]) == null ? void 0 : y[l]) || i, h = p.useMemo(() => k, Object.values(k));
3873
+ return /* @__PURE__ */ c(x.Provider, { value: h, children: g });
3870
3874
  };
3871
3875
  d.displayName = s + "Provider";
3872
3876
  function u(f, m) {
3873
- var w;
3874
- const b = ((w = m == null ? void 0 : m[e]) == null ? void 0 : w[l]) || i, S = p.useContext(b);
3875
- if (S) return S;
3877
+ var x;
3878
+ const g = ((x = m == null ? void 0 : m[e]) == null ? void 0 : x[l]) || i, k = p.useContext(g);
3879
+ if (k) return k;
3876
3880
  if (a !== void 0) return a;
3877
3881
  throw new Error(`\`${f}\` must be used within \`${s}\``);
3878
3882
  }
@@ -3888,9 +3892,9 @@ function ge(e, t = []) {
3888
3892
  );
3889
3893
  };
3890
3894
  };
3891
- return n.scopeName = e, [r, as(n, ...t)];
3895
+ return n.scopeName = e, [r, is(n, ...t)];
3892
3896
  }
3893
- function as(...e) {
3897
+ function is(...e) {
3894
3898
  const t = e[0];
3895
3899
  if (e.length === 1) return t;
3896
3900
  const o = () => {
@@ -3908,31 +3912,31 @@ function as(...e) {
3908
3912
  };
3909
3913
  return o.scopeName = t.scopeName, o;
3910
3914
  }
3911
- function is(e) {
3915
+ function ls(e) {
3912
3916
  const t = e + "CollectionProvider", [o, r] = ge(t), [n, s] = o(
3913
3917
  t,
3914
3918
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
3915
- ), a = (w) => {
3916
- const { scope: h, children: y } = w, R = G.useRef(null), C = G.useRef(/* @__PURE__ */ new Map()).current;
3919
+ ), a = (x) => {
3920
+ const { scope: h, children: y } = x, R = G.useRef(null), C = G.useRef(/* @__PURE__ */ new Map()).current;
3917
3921
  return /* @__PURE__ */ c(n, { scope: h, itemMap: C, collectionRef: R, children: y });
3918
3922
  };
3919
3923
  a.displayName = t;
3920
3924
  const i = e + "CollectionSlot", l = /* @__PURE__ */ Pe(i), d = G.forwardRef(
3921
- (w, h) => {
3922
- const { scope: y, children: R } = w, C = s(i, y), A = Y(h, C.collectionRef);
3925
+ (x, h) => {
3926
+ const { scope: y, children: R } = x, C = s(i, y), A = Y(h, C.collectionRef);
3923
3927
  return /* @__PURE__ */ c(l, { ref: A, children: R });
3924
3928
  }
3925
3929
  );
3926
3930
  d.displayName = i;
3927
- const u = e + "CollectionItemSlot", f = "data-radix-collection-item", m = /* @__PURE__ */ Pe(u), b = G.forwardRef(
3928
- (w, h) => {
3929
- const { scope: y, children: R, ...C } = w, A = G.useRef(null), P = Y(h, A), E = s(u, y);
3931
+ const u = e + "CollectionItemSlot", f = "data-radix-collection-item", m = /* @__PURE__ */ Pe(u), g = G.forwardRef(
3932
+ (x, h) => {
3933
+ const { scope: y, children: R, ...C } = x, A = G.useRef(null), P = Y(h, A), E = s(u, y);
3930
3934
  return G.useEffect(() => (E.itemMap.set(A, { ref: A, ...C }), () => void E.itemMap.delete(A))), /* @__PURE__ */ c(m, { [f]: "", ref: P, children: R });
3931
3935
  }
3932
3936
  );
3933
- b.displayName = u;
3934
- function S(w) {
3935
- const h = s(e + "CollectionConsumer", w);
3937
+ g.displayName = u;
3938
+ function k(x) {
3939
+ const h = s(e + "CollectionConsumer", x);
3936
3940
  return G.useCallback(() => {
3937
3941
  const R = h.collectionRef.current;
3938
3942
  if (!R) return [];
@@ -3943,8 +3947,8 @@ function is(e) {
3943
3947
  }, [h.collectionRef, h.itemMap]);
3944
3948
  }
3945
3949
  return [
3946
- { Provider: a, Slot: d, ItemSlot: b },
3947
- S,
3950
+ { Provider: a, Slot: d, ItemSlot: g },
3951
+ k,
3948
3952
  r
3949
3953
  ];
3950
3954
  }
@@ -3955,15 +3959,15 @@ function W(e, t, { checkForDefaultPrevented: o = !0 } = {}) {
3955
3959
  };
3956
3960
  }
3957
3961
  var oe = globalThis != null && globalThis.document ? p.useLayoutEffect : () => {
3958
- }, ls = p[" useInsertionEffect ".trim().toString()] || oe;
3959
- function ao({
3962
+ }, cs = p[" useInsertionEffect ".trim().toString()] || oe;
3963
+ function io({
3960
3964
  prop: e,
3961
3965
  defaultProp: t,
3962
3966
  onChange: o = () => {
3963
3967
  },
3964
3968
  caller: r
3965
3969
  }) {
3966
- const [n, s, a] = cs({
3970
+ const [n, s, a] = ds({
3967
3971
  defaultProp: t,
3968
3972
  onChange: o
3969
3973
  }), i = e !== void 0, l = i ? e : n;
@@ -3980,7 +3984,7 @@ function ao({
3980
3984
  (u) => {
3981
3985
  var f;
3982
3986
  if (i) {
3983
- const m = ds(u) ? u(e) : u;
3987
+ const m = us(u) ? u(e) : u;
3984
3988
  m !== e && ((f = a.current) == null || f.call(a, m));
3985
3989
  } else
3986
3990
  s(u);
@@ -3989,31 +3993,31 @@ function ao({
3989
3993
  );
3990
3994
  return [l, d];
3991
3995
  }
3992
- function cs({
3996
+ function ds({
3993
3997
  defaultProp: e,
3994
3998
  onChange: t
3995
3999
  }) {
3996
4000
  const [o, r] = p.useState(e), n = p.useRef(o), s = p.useRef(t);
3997
- return ls(() => {
4001
+ return cs(() => {
3998
4002
  s.current = t;
3999
4003
  }, [t]), p.useEffect(() => {
4000
4004
  var a;
4001
4005
  n.current !== o && ((a = s.current) == null || a.call(s, o), n.current = o);
4002
4006
  }, [o, n]), [o, r, s];
4003
4007
  }
4004
- function ds(e) {
4008
+ function us(e) {
4005
4009
  return typeof e == "function";
4006
4010
  }
4007
- function us(e, t) {
4011
+ function fs(e, t) {
4008
4012
  return p.useReducer((o, r) => t[o][r] ?? o, e);
4009
4013
  }
4010
4014
  var de = (e) => {
4011
- const { present: t, children: o } = e, r = fs(t), n = typeof o == "function" ? o({ present: r.isPresent }) : p.Children.only(o), s = Y(r.ref, ms(n));
4015
+ const { present: t, children: o } = e, r = ms(t), n = typeof o == "function" ? o({ present: r.isPresent }) : p.Children.only(o), s = Y(r.ref, ps(n));
4012
4016
  return typeof o == "function" || r.isPresent ? p.cloneElement(n, { ref: s }) : null;
4013
4017
  };
4014
4018
  de.displayName = "Presence";
4015
- function fs(e) {
4016
- const [t, o] = p.useState(), r = p.useRef(null), n = p.useRef(e), s = p.useRef("none"), a = e ? "mounted" : "unmounted", [i, l] = us(a, {
4019
+ function ms(e) {
4020
+ const [t, o] = p.useState(), r = p.useRef(null), n = p.useRef(e), s = p.useRef("none"), a = e ? "mounted" : "unmounted", [i, l] = fs(a, {
4017
4021
  mounted: {
4018
4022
  UNMOUNT: "unmounted",
4019
4023
  ANIMATION_OUT: "unmountSuspended"
@@ -4032,22 +4036,22 @@ function fs(e) {
4032
4036
  }, [i]), oe(() => {
4033
4037
  const d = r.current, u = n.current;
4034
4038
  if (u !== e) {
4035
- const m = s.current, b = Ae(d);
4036
- e ? l("MOUNT") : b === "none" || (d == null ? void 0 : d.display) === "none" ? l("UNMOUNT") : l(u && m !== b ? "ANIMATION_OUT" : "UNMOUNT"), n.current = e;
4039
+ const m = s.current, g = Ae(d);
4040
+ e ? l("MOUNT") : g === "none" || (d == null ? void 0 : d.display) === "none" ? l("UNMOUNT") : l(u && m !== g ? "ANIMATION_OUT" : "UNMOUNT"), n.current = e;
4037
4041
  }
4038
4042
  }, [e, l]), oe(() => {
4039
4043
  if (t) {
4040
4044
  let d;
4041
- const u = t.ownerDocument.defaultView ?? window, f = (b) => {
4042
- const w = Ae(r.current).includes(CSS.escape(b.animationName));
4043
- if (b.target === t && w && (l("ANIMATION_END"), !n.current)) {
4045
+ const u = t.ownerDocument.defaultView ?? window, f = (g) => {
4046
+ const x = Ae(r.current).includes(CSS.escape(g.animationName));
4047
+ if (g.target === t && x && (l("ANIMATION_END"), !n.current)) {
4044
4048
  const h = t.style.animationFillMode;
4045
4049
  t.style.animationFillMode = "forwards", d = u.setTimeout(() => {
4046
4050
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = h);
4047
4051
  });
4048
4052
  }
4049
- }, m = (b) => {
4050
- b.target === t && (s.current = Ae(r.current));
4053
+ }, m = (g) => {
4054
+ g.target === t && (s.current = Ae(r.current));
4051
4055
  };
4052
4056
  return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
4053
4057
  u.clearTimeout(d), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
@@ -4064,22 +4068,22 @@ function fs(e) {
4064
4068
  function Ae(e) {
4065
4069
  return (e == null ? void 0 : e.animationName) || "none";
4066
4070
  }
4067
- function ms(e) {
4071
+ function ps(e) {
4068
4072
  var r, n;
4069
4073
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
4070
4074
  return o ? e.ref : (t = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
4071
4075
  }
4072
- var ps = p[" useId ".trim().toString()] || (() => {
4073
- }), hs = 0;
4074
- function io(e) {
4075
- const [t, o] = p.useState(ps());
4076
+ var hs = p[" useId ".trim().toString()] || (() => {
4077
+ }), gs = 0;
4078
+ function lo(e) {
4079
+ const [t, o] = p.useState(hs());
4076
4080
  return oe(() => {
4077
- o((r) => r ?? String(hs++));
4081
+ o((r) => r ?? String(gs++));
4078
4082
  }, [e]), e || (t ? `radix-${t}` : "");
4079
4083
  }
4080
- var gs = p.createContext(void 0);
4084
+ var bs = p.createContext(void 0);
4081
4085
  function rt(e) {
4082
- const t = p.useContext(gs);
4086
+ const t = p.useContext(bs);
4083
4087
  return e || t || "ltr";
4084
4088
  }
4085
4089
  function J(e) {
@@ -4102,7 +4106,7 @@ var Ve = { exports: {} }, je = {};
4102
4106
  * LICENSE file in the root directory of this source tree.
4103
4107
  */
4104
4108
  var Ct;
4105
- function bs() {
4109
+ function vs() {
4106
4110
  if (Ct) return je;
4107
4111
  Ct = 1;
4108
4112
  var e = G;
@@ -4111,27 +4115,27 @@ function bs() {
4111
4115
  }
4112
4116
  var o = typeof Object.is == "function" ? Object.is : t, r = e.useState, n = e.useEffect, s = e.useLayoutEffect, a = e.useDebugValue;
4113
4117
  function i(f, m) {
4114
- var b = m(), S = r({ inst: { value: b, getSnapshot: m } }), w = S[0].inst, h = S[1];
4118
+ var g = m(), k = r({ inst: { value: g, getSnapshot: m } }), x = k[0].inst, h = k[1];
4115
4119
  return s(
4116
4120
  function() {
4117
- w.value = b, w.getSnapshot = m, l(w) && h({ inst: w });
4121
+ x.value = g, x.getSnapshot = m, l(x) && h({ inst: x });
4118
4122
  },
4119
- [f, b, m]
4123
+ [f, g, m]
4120
4124
  ), n(
4121
4125
  function() {
4122
- return l(w) && h({ inst: w }), f(function() {
4123
- l(w) && h({ inst: w });
4126
+ return l(x) && h({ inst: x }), f(function() {
4127
+ l(x) && h({ inst: x });
4124
4128
  });
4125
4129
  },
4126
4130
  [f]
4127
- ), a(b), b;
4131
+ ), a(g), g;
4128
4132
  }
4129
4133
  function l(f) {
4130
4134
  var m = f.getSnapshot;
4131
4135
  f = f.value;
4132
4136
  try {
4133
- var b = m();
4134
- return !o(f, b);
4137
+ var g = m();
4138
+ return !o(f, g);
4135
4139
  } catch {
4136
4140
  return !0;
4137
4141
  }
@@ -4143,26 +4147,26 @@ function bs() {
4143
4147
  return je.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u, je;
4144
4148
  }
4145
4149
  var Et;
4146
- function vs() {
4147
- return Et || (Et = 1, Ve.exports = bs()), Ve.exports;
4150
+ function xs() {
4151
+ return Et || (Et = 1, Ve.exports = vs()), Ve.exports;
4148
4152
  }
4149
- var xs = vs();
4150
- function ws() {
4151
- return xs.useSyncExternalStore(
4152
- ys,
4153
+ var ws = xs();
4154
+ function ys() {
4155
+ return ws.useSyncExternalStore(
4156
+ ks,
4153
4157
  () => !0,
4154
4158
  () => !1
4155
4159
  );
4156
4160
  }
4157
- function ys() {
4161
+ function ks() {
4158
4162
  return () => {
4159
4163
  };
4160
4164
  }
4161
- var nt = "Avatar", [ks] = ge(nt), [Ss, lo] = ks(nt), co = p.forwardRef(
4165
+ var nt = "Avatar", [Ss] = ge(nt), [Cs, co] = Ss(nt), uo = p.forwardRef(
4162
4166
  (e, t) => {
4163
4167
  const { __scopeAvatar: o, ...r } = e, [n, s] = p.useState("idle");
4164
4168
  return /* @__PURE__ */ c(
4165
- Ss,
4169
+ Cs,
4166
4170
  {
4167
4171
  scope: o,
4168
4172
  imageLoadingStatus: n,
@@ -4172,11 +4176,11 @@ var nt = "Avatar", [ks] = ge(nt), [Ss, lo] = ks(nt), co = p.forwardRef(
4172
4176
  );
4173
4177
  }
4174
4178
  );
4175
- co.displayName = nt;
4176
- var uo = "AvatarImage", fo = p.forwardRef(
4179
+ uo.displayName = nt;
4180
+ var fo = "AvatarImage", mo = p.forwardRef(
4177
4181
  (e, t) => {
4178
4182
  const { __scopeAvatar: o, src: r, onLoadingStatusChange: n = () => {
4179
- }, ...s } = e, a = lo(uo, o), i = Cs(r, s), l = J((d) => {
4183
+ }, ...s } = e, a = co(fo, o), i = Es(r, s), l = J((d) => {
4180
4184
  n(d), a.onImageLoadingStatusChange(d);
4181
4185
  });
4182
4186
  return oe(() => {
@@ -4184,10 +4188,10 @@ var uo = "AvatarImage", fo = p.forwardRef(
4184
4188
  }, [i, l]), i === "loaded" ? /* @__PURE__ */ c(j.img, { ...s, ref: t, src: r }) : null;
4185
4189
  }
4186
4190
  );
4187
- fo.displayName = uo;
4188
- var mo = "AvatarFallback", po = p.forwardRef(
4191
+ mo.displayName = fo;
4192
+ var po = "AvatarFallback", ho = p.forwardRef(
4189
4193
  (e, t) => {
4190
- const { __scopeAvatar: o, delayMs: r, ...n } = e, s = lo(mo, o), [a, i] = p.useState(r === void 0);
4194
+ const { __scopeAvatar: o, delayMs: r, ...n } = e, s = co(po, o), [a, i] = p.useState(r === void 0);
4191
4195
  return p.useEffect(() => {
4192
4196
  if (r !== void 0) {
4193
4197
  const l = window.setTimeout(() => i(!0), r);
@@ -4196,12 +4200,12 @@ var mo = "AvatarFallback", po = p.forwardRef(
4196
4200
  }, [r]), a && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ c(j.span, { ...n, ref: t }) : null;
4197
4201
  }
4198
4202
  );
4199
- po.displayName = mo;
4203
+ ho.displayName = po;
4200
4204
  function Nt(e, t) {
4201
4205
  return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
4202
4206
  }
4203
- function Cs(e, { referrerPolicy: t, crossOrigin: o }) {
4204
- const r = ws(), n = p.useRef(null), s = r ? (n.current || (n.current = new window.Image()), n.current) : null, [a, i] = p.useState(
4207
+ function Es(e, { referrerPolicy: t, crossOrigin: o }) {
4208
+ const r = ys(), n = p.useRef(null), s = r ? (n.current || (n.current = new window.Image()), n.current) : null, [a, i] = p.useState(
4205
4209
  () => Nt(s, e)
4206
4210
  );
4207
4211
  return oe(() => {
@@ -4217,14 +4221,14 @@ function Cs(e, { referrerPolicy: t, crossOrigin: o }) {
4217
4221
  };
4218
4222
  }, [s, o, t]), a;
4219
4223
  }
4220
- var Es = co, Ns = fo, As = po, Be = "rovingFocusGroup.onEntryFocus", Rs = { bubbles: !1, cancelable: !0 }, be = "RovingFocusGroup", [Ze, ho, _s] = is(be), [Is, go] = ge(
4224
+ var Ns = uo, As = mo, Rs = ho, Be = "rovingFocusGroup.onEntryFocus", _s = { bubbles: !1, cancelable: !0 }, be = "RovingFocusGroup", [Ze, go, Is] = ls(be), [Ps, bo] = ge(
4221
4225
  be,
4222
- [_s]
4223
- ), [Ps, zs] = Is(be), bo = p.forwardRef(
4224
- (e, t) => /* @__PURE__ */ c(Ze.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ze.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ts, { ...e, ref: t }) }) })
4226
+ [Is]
4227
+ ), [zs, Ts] = Ps(be), vo = p.forwardRef(
4228
+ (e, t) => /* @__PURE__ */ c(Ze.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ze.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ms, { ...e, ref: t }) }) })
4225
4229
  );
4226
- bo.displayName = be;
4227
- var Ts = p.forwardRef((e, t) => {
4230
+ vo.displayName = be;
4231
+ var Ms = p.forwardRef((e, t) => {
4228
4232
  const {
4229
4233
  __scopeRovingFocusGroup: o,
4230
4234
  orientation: r,
@@ -4236,35 +4240,35 @@ var Ts = p.forwardRef((e, t) => {
4236
4240
  onEntryFocus: d,
4237
4241
  preventScrollOnEntryFocus: u = !1,
4238
4242
  ...f
4239
- } = e, m = p.useRef(null), b = Y(t, m), S = rt(s), [w, h] = ao({
4243
+ } = e, m = p.useRef(null), g = Y(t, m), k = rt(s), [x, h] = io({
4240
4244
  prop: a,
4241
4245
  defaultProp: i ?? null,
4242
4246
  onChange: l,
4243
4247
  caller: be
4244
- }), [y, R] = p.useState(!1), C = J(d), A = ho(o), P = p.useRef(!1), [E, _] = p.useState(0);
4248
+ }), [y, R] = p.useState(!1), C = J(d), A = go(o), P = p.useRef(!1), [E, _] = p.useState(0);
4245
4249
  return p.useEffect(() => {
4246
- const g = m.current;
4247
- if (g)
4248
- return g.addEventListener(Be, C), () => g.removeEventListener(Be, C);
4250
+ const b = m.current;
4251
+ if (b)
4252
+ return b.addEventListener(Be, C), () => b.removeEventListener(Be, C);
4249
4253
  }, [C]), /* @__PURE__ */ c(
4250
- Ps,
4254
+ zs,
4251
4255
  {
4252
4256
  scope: o,
4253
4257
  orientation: r,
4254
- dir: S,
4258
+ dir: k,
4255
4259
  loop: n,
4256
- currentTabStopId: w,
4260
+ currentTabStopId: x,
4257
4261
  onItemFocus: p.useCallback(
4258
- (g) => h(g),
4262
+ (b) => h(b),
4259
4263
  [h]
4260
4264
  ),
4261
4265
  onItemShiftTab: p.useCallback(() => R(!0), []),
4262
4266
  onFocusableItemAdd: p.useCallback(
4263
- () => _((g) => g + 1),
4267
+ () => _((b) => b + 1),
4264
4268
  []
4265
4269
  ),
4266
4270
  onFocusableItemRemove: p.useCallback(
4267
- () => _((g) => g - 1),
4271
+ () => _((b) => b - 1),
4268
4272
  []
4269
4273
  ),
4270
4274
  children: /* @__PURE__ */ c(
@@ -4273,20 +4277,20 @@ var Ts = p.forwardRef((e, t) => {
4273
4277
  tabIndex: y || E === 0 ? -1 : 0,
4274
4278
  "data-orientation": r,
4275
4279
  ...f,
4276
- ref: b,
4280
+ ref: g,
4277
4281
  style: { outline: "none", ...e.style },
4278
4282
  onMouseDown: W(e.onMouseDown, () => {
4279
4283
  P.current = !0;
4280
4284
  }),
4281
- onFocus: W(e.onFocus, (g) => {
4282
- const k = !P.current;
4283
- if (g.target === g.currentTarget && k && !y) {
4284
- const M = new CustomEvent(Be, Rs);
4285
- if (g.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
4286
- const O = A().filter(($) => $.focusable), Z = O.find(($) => $.active), ve = O.find(($) => $.id === w), Q = [Z, ve, ...O].filter(
4285
+ onFocus: W(e.onFocus, (b) => {
4286
+ const S = !P.current;
4287
+ if (b.target === b.currentTarget && S && !y) {
4288
+ const M = new CustomEvent(Be, _s);
4289
+ if (b.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
4290
+ const O = A().filter(($) => $.focusable), Z = O.find(($) => $.active), ve = O.find(($) => $.id === x), Q = [Z, ve, ...O].filter(
4287
4291
  Boolean
4288
4292
  ).map(($) => $.ref.current);
4289
- wo(Q, u);
4293
+ yo(Q, u);
4290
4294
  }
4291
4295
  }
4292
4296
  P.current = !1;
@@ -4296,7 +4300,7 @@ var Ts = p.forwardRef((e, t) => {
4296
4300
  )
4297
4301
  }
4298
4302
  );
4299
- }), vo = "RovingFocusGroupItem", xo = p.forwardRef(
4303
+ }), xo = "RovingFocusGroupItem", wo = p.forwardRef(
4300
4304
  (e, t) => {
4301
4305
  const {
4302
4306
  __scopeRovingFocusGroup: o,
@@ -4305,11 +4309,11 @@ var Ts = p.forwardRef((e, t) => {
4305
4309
  tabStopId: s,
4306
4310
  children: a,
4307
4311
  ...i
4308
- } = e, l = io(), d = s || l, u = zs(vo, o), f = u.currentTabStopId === d, m = ho(o), { onFocusableItemAdd: b, onFocusableItemRemove: S, currentTabStopId: w } = u;
4312
+ } = e, l = lo(), d = s || l, u = Ts(xo, o), f = u.currentTabStopId === d, m = go(o), { onFocusableItemAdd: g, onFocusableItemRemove: k, currentTabStopId: x } = u;
4309
4313
  return p.useEffect(() => {
4310
4314
  if (r)
4311
- return b(), () => S();
4312
- }, [r, b, S]), /* @__PURE__ */ c(
4315
+ return g(), () => k();
4316
+ }, [r, g, k]), /* @__PURE__ */ c(
4313
4317
  Ze.ItemSlot,
4314
4318
  {
4315
4319
  scope: o,
@@ -4333,7 +4337,7 @@ var Ts = p.forwardRef((e, t) => {
4333
4337
  return;
4334
4338
  }
4335
4339
  if (h.target !== h.currentTarget) return;
4336
- const y = Os(h, u.orientation, u.dir);
4340
+ const y = $s(h, u.orientation, u.dir);
4337
4341
  if (y !== void 0) {
4338
4342
  if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
4339
4343
  h.preventDefault();
@@ -4342,20 +4346,20 @@ var Ts = p.forwardRef((e, t) => {
4342
4346
  else if (y === "prev" || y === "next") {
4343
4347
  y === "prev" && C.reverse();
4344
4348
  const A = C.indexOf(h.currentTarget);
4345
- C = u.loop ? $s(C, A + 1) : C.slice(A + 1);
4349
+ C = u.loop ? Fs(C, A + 1) : C.slice(A + 1);
4346
4350
  }
4347
- setTimeout(() => wo(C));
4351
+ setTimeout(() => yo(C));
4348
4352
  }
4349
4353
  }),
4350
- children: typeof a == "function" ? a({ isCurrentTabStop: f, hasTabStop: w != null }) : a
4354
+ children: typeof a == "function" ? a({ isCurrentTabStop: f, hasTabStop: x != null }) : a
4351
4355
  }
4352
4356
  )
4353
4357
  }
4354
4358
  );
4355
4359
  }
4356
4360
  );
4357
- xo.displayName = vo;
4358
- var Ms = {
4361
+ wo.displayName = xo;
4362
+ var Ls = {
4359
4363
  ArrowLeft: "prev",
4360
4364
  ArrowUp: "prev",
4361
4365
  ArrowRight: "next",
@@ -4365,30 +4369,30 @@ var Ms = {
4365
4369
  PageDown: "last",
4366
4370
  End: "last"
4367
4371
  };
4368
- function Ls(e, t) {
4372
+ function Os(e, t) {
4369
4373
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
4370
4374
  }
4371
- function Os(e, t, o) {
4372
- const r = Ls(e.key, o);
4375
+ function $s(e, t, o) {
4376
+ const r = Os(e.key, o);
4373
4377
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
4374
- return Ms[r];
4378
+ return Ls[r];
4375
4379
  }
4376
- function wo(e, t = !1) {
4380
+ function yo(e, t = !1) {
4377
4381
  const o = document.activeElement;
4378
4382
  for (const r of e)
4379
4383
  if (r === o || (r.focus({ preventScroll: t }), document.activeElement !== o)) return;
4380
4384
  }
4381
- function $s(e, t) {
4385
+ function Fs(e, t) {
4382
4386
  return e.map((o, r) => e[(t + r) % e.length]);
4383
4387
  }
4384
- var Fs = bo, Ds = xo;
4385
- function Us(e, [t, o]) {
4388
+ var Ds = vo, Us = wo;
4389
+ function Ws(e, [t, o]) {
4386
4390
  return Math.min(o, Math.max(t, e));
4387
4391
  }
4388
- function Ws(e, t) {
4392
+ function Hs(e, t) {
4389
4393
  return p.useReducer((o, r) => t[o][r] ?? o, e);
4390
4394
  }
4391
- var st = "ScrollArea", [yo] = ge(st), [Hs, q] = yo(st), ko = p.forwardRef(
4395
+ var st = "ScrollArea", [ko] = ge(st), [Vs, q] = ko(st), So = p.forwardRef(
4392
4396
  (e, t) => {
4393
4397
  const {
4394
4398
  __scopeScrollArea: o,
@@ -4396,9 +4400,9 @@ var st = "ScrollArea", [yo] = ge(st), [Hs, q] = yo(st), ko = p.forwardRef(
4396
4400
  dir: n,
4397
4401
  scrollHideDelay: s = 600,
4398
4402
  ...a
4399
- } = e, [i, l] = p.useState(null), [d, u] = p.useState(null), [f, m] = p.useState(null), [b, S] = p.useState(null), [w, h] = p.useState(null), [y, R] = p.useState(0), [C, A] = p.useState(0), [P, E] = p.useState(!1), [_, g] = p.useState(!1), k = Y(t, (O) => l(O)), M = rt(n);
4403
+ } = e, [i, l] = p.useState(null), [d, u] = p.useState(null), [f, m] = p.useState(null), [g, k] = p.useState(null), [x, h] = p.useState(null), [y, R] = p.useState(0), [C, A] = p.useState(0), [P, E] = p.useState(!1), [_, b] = p.useState(!1), S = Y(t, (O) => l(O)), M = rt(n);
4400
4404
  return /* @__PURE__ */ c(
4401
- Hs,
4405
+ Vs,
4402
4406
  {
4403
4407
  scope: o,
4404
4408
  type: r,
@@ -4409,14 +4413,14 @@ var st = "ScrollArea", [yo] = ge(st), [Hs, q] = yo(st), ko = p.forwardRef(
4409
4413
  onViewportChange: u,
4410
4414
  content: f,
4411
4415
  onContentChange: m,
4412
- scrollbarX: b,
4413
- onScrollbarXChange: S,
4416
+ scrollbarX: g,
4417
+ onScrollbarXChange: k,
4414
4418
  scrollbarXEnabled: P,
4415
4419
  onScrollbarXEnabledChange: E,
4416
- scrollbarY: w,
4420
+ scrollbarY: x,
4417
4421
  onScrollbarYChange: h,
4418
4422
  scrollbarYEnabled: _,
4419
- onScrollbarYEnabledChange: g,
4423
+ onScrollbarYEnabledChange: b,
4420
4424
  onCornerWidthChange: R,
4421
4425
  onCornerHeightChange: A,
4422
4426
  children: /* @__PURE__ */ c(
@@ -4424,7 +4428,7 @@ var st = "ScrollArea", [yo] = ge(st), [Hs, q] = yo(st), ko = p.forwardRef(
4424
4428
  {
4425
4429
  dir: M,
4426
4430
  ...a,
4427
- ref: k,
4431
+ ref: S,
4428
4432
  style: {
4429
4433
  position: "relative",
4430
4434
  // Pass corner sizes as CSS vars to reduce re-renders of context consumers
@@ -4438,10 +4442,10 @@ var st = "ScrollArea", [yo] = ge(st), [Hs, q] = yo(st), ko = p.forwardRef(
4438
4442
  );
4439
4443
  }
4440
4444
  );
4441
- ko.displayName = st;
4442
- var So = "ScrollAreaViewport", Co = p.forwardRef(
4445
+ So.displayName = st;
4446
+ var Co = "ScrollAreaViewport", Eo = p.forwardRef(
4443
4447
  (e, t) => {
4444
- const { __scopeScrollArea: o, children: r, nonce: n, ...s } = e, a = q(So, o), i = p.useRef(null), l = Y(t, i, a.onViewportChange);
4448
+ const { __scopeScrollArea: o, children: r, nonce: n, ...s } = e, a = q(Co, o), i = p.useRef(null), l = Y(t, i, a.onViewportChange);
4445
4449
  return /* @__PURE__ */ z(he, { children: [
4446
4450
  /* @__PURE__ */ c(
4447
4451
  "style",
@@ -4480,17 +4484,17 @@ var So = "ScrollAreaViewport", Co = p.forwardRef(
4480
4484
  ] });
4481
4485
  }
4482
4486
  );
4483
- Co.displayName = So;
4484
- var X = "ScrollAreaScrollbar", Eo = p.forwardRef(
4487
+ Eo.displayName = Co;
4488
+ var X = "ScrollAreaScrollbar", No = p.forwardRef(
4485
4489
  (e, t) => {
4486
4490
  const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = n, i = e.orientation === "horizontal";
4487
4491
  return p.useEffect(() => (i ? s(!0) : a(!0), () => {
4488
4492
  i ? s(!1) : a(!1);
4489
- }), [i, s, a]), n.type === "hover" ? /* @__PURE__ */ c(Vs, { ...r, ref: t, forceMount: o }) : n.type === "scroll" ? /* @__PURE__ */ c(js, { ...r, ref: t, forceMount: o }) : n.type === "auto" ? /* @__PURE__ */ c(No, { ...r, ref: t, forceMount: o }) : n.type === "always" ? /* @__PURE__ */ c(at, { ...r, ref: t }) : null;
4493
+ }), [i, s, a]), n.type === "hover" ? /* @__PURE__ */ c(js, { ...r, ref: t, forceMount: o }) : n.type === "scroll" ? /* @__PURE__ */ c(Bs, { ...r, ref: t, forceMount: o }) : n.type === "auto" ? /* @__PURE__ */ c(Ao, { ...r, ref: t, forceMount: o }) : n.type === "always" ? /* @__PURE__ */ c(at, { ...r, ref: t }) : null;
4490
4494
  }
4491
4495
  );
4492
- Eo.displayName = X;
4493
- var Vs = p.forwardRef((e, t) => {
4496
+ No.displayName = X;
4497
+ var js = p.forwardRef((e, t) => {
4494
4498
  const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), [s, a] = p.useState(!1);
4495
4499
  return p.useEffect(() => {
4496
4500
  const i = n.scrollArea;
@@ -4506,15 +4510,15 @@ var Vs = p.forwardRef((e, t) => {
4506
4510
  };
4507
4511
  }
4508
4512
  }, [n.scrollArea, n.scrollHideDelay]), /* @__PURE__ */ c(de, { present: o || s, children: /* @__PURE__ */ c(
4509
- No,
4513
+ Ao,
4510
4514
  {
4511
4515
  "data-state": s ? "visible" : "hidden",
4512
4516
  ...r,
4513
4517
  ref: t
4514
4518
  }
4515
4519
  ) });
4516
- }), js = p.forwardRef((e, t) => {
4517
- const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), s = e.orientation === "horizontal", a = Le(() => l("SCROLL_END"), 100), [i, l] = Ws("hidden", {
4520
+ }), Bs = p.forwardRef((e, t) => {
4521
+ const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), s = e.orientation === "horizontal", a = Le(() => l("SCROLL_END"), 100), [i, l] = Hs("hidden", {
4518
4522
  hidden: {
4519
4523
  SCROLL: "scrolling"
4520
4524
  },
@@ -4542,8 +4546,8 @@ var Vs = p.forwardRef((e, t) => {
4542
4546
  if (d) {
4543
4547
  let f = d[u];
4544
4548
  const m = () => {
4545
- const b = d[u];
4546
- f !== b && (l("SCROLL"), a()), f = b;
4549
+ const g = d[u];
4550
+ f !== g && (l("SCROLL"), a()), f = g;
4547
4551
  };
4548
4552
  return d.addEventListener("scroll", m), () => d.removeEventListener("scroll", m);
4549
4553
  }
@@ -4557,7 +4561,7 @@ var Vs = p.forwardRef((e, t) => {
4557
4561
  onPointerLeave: W(e.onPointerLeave, () => l("POINTER_LEAVE"))
4558
4562
  }
4559
4563
  ) });
4560
- }), No = p.forwardRef((e, t) => {
4564
+ }), Ao = p.forwardRef((e, t) => {
4561
4565
  const o = q(X, e.__scopeScrollArea), { forceMount: r, ...n } = e, [s, a] = p.useState(!1), i = e.orientation === "horizontal", l = Le(() => {
4562
4566
  if (o.viewport) {
4563
4567
  const d = o.viewport.offsetWidth < o.viewport.scrollWidth, u = o.viewport.offsetHeight < o.viewport.scrollHeight;
@@ -4577,7 +4581,7 @@ var Vs = p.forwardRef((e, t) => {
4577
4581
  content: 0,
4578
4582
  viewport: 0,
4579
4583
  scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
4580
- }), d = Po(i.viewport, i.content), u = {
4584
+ }), d = zo(i.viewport, i.content), u = {
4581
4585
  ...r,
4582
4586
  sizes: i,
4583
4587
  onSizesChange: l,
@@ -4586,18 +4590,18 @@ var Vs = p.forwardRef((e, t) => {
4586
4590
  onThumbPointerUp: () => a.current = 0,
4587
4591
  onThumbPointerDown: (m) => a.current = m
4588
4592
  };
4589
- function f(m, b) {
4590
- return Zs(m, a.current, i, b);
4593
+ function f(m, g) {
4594
+ return Ks(m, a.current, i, g);
4591
4595
  }
4592
4596
  return o === "horizontal" ? /* @__PURE__ */ c(
4593
- Bs,
4597
+ Gs,
4594
4598
  {
4595
4599
  ...u,
4596
4600
  ref: t,
4597
4601
  onThumbPositionChange: () => {
4598
4602
  if (n.viewport && s.current) {
4599
- const m = n.viewport.scrollLeft, b = At(m, i, n.dir);
4600
- s.current.style.transform = `translate3d(${b}px, 0, 0)`;
4603
+ const m = n.viewport.scrollLeft, g = At(m, i, n.dir);
4604
+ s.current.style.transform = `translate3d(${g}px, 0, 0)`;
4601
4605
  }
4602
4606
  },
4603
4607
  onWheelScroll: (m) => {
@@ -4608,14 +4612,14 @@ var Vs = p.forwardRef((e, t) => {
4608
4612
  }
4609
4613
  }
4610
4614
  ) : o === "vertical" ? /* @__PURE__ */ c(
4611
- Gs,
4615
+ qs,
4612
4616
  {
4613
4617
  ...u,
4614
4618
  ref: t,
4615
4619
  onThumbPositionChange: () => {
4616
4620
  if (n.viewport && s.current) {
4617
- const m = n.viewport.scrollTop, b = At(m, i);
4618
- s.current.style.transform = `translate3d(0, ${b}px, 0)`;
4621
+ const m = n.viewport.scrollTop, g = At(m, i);
4622
+ s.current.style.transform = `translate3d(0, ${g}px, 0)`;
4619
4623
  }
4620
4624
  },
4621
4625
  onWheelScroll: (m) => {
@@ -4626,12 +4630,12 @@ var Vs = p.forwardRef((e, t) => {
4626
4630
  }
4627
4631
  }
4628
4632
  ) : null;
4629
- }), Bs = p.forwardRef((e, t) => {
4633
+ }), Gs = p.forwardRef((e, t) => {
4630
4634
  const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = p.useState(), l = p.useRef(null), d = Y(t, l, s.onScrollbarXChange);
4631
4635
  return p.useEffect(() => {
4632
4636
  l.current && i(getComputedStyle(l.current));
4633
4637
  }, [l]), /* @__PURE__ */ c(
4634
- Ro,
4638
+ _o,
4635
4639
  {
4636
4640
  "data-orientation": "horizontal",
4637
4641
  ...n,
@@ -4649,7 +4653,7 @@ var Vs = p.forwardRef((e, t) => {
4649
4653
  onWheelScroll: (u, f) => {
4650
4654
  if (s.viewport) {
4651
4655
  const m = s.viewport.scrollLeft + u.deltaX;
4652
- e.onWheelScroll(m), To(m, f) && u.preventDefault();
4656
+ e.onWheelScroll(m), Mo(m, f) && u.preventDefault();
4653
4657
  }
4654
4658
  },
4655
4659
  onResize: () => {
@@ -4665,12 +4669,12 @@ var Vs = p.forwardRef((e, t) => {
4665
4669
  }
4666
4670
  }
4667
4671
  );
4668
- }), Gs = p.forwardRef((e, t) => {
4672
+ }), qs = p.forwardRef((e, t) => {
4669
4673
  const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = p.useState(), l = p.useRef(null), d = Y(t, l, s.onScrollbarYChange);
4670
4674
  return p.useEffect(() => {
4671
4675
  l.current && i(getComputedStyle(l.current));
4672
4676
  }, [l]), /* @__PURE__ */ c(
4673
- Ro,
4677
+ _o,
4674
4678
  {
4675
4679
  "data-orientation": "vertical",
4676
4680
  ...n,
@@ -4689,7 +4693,7 @@ var Vs = p.forwardRef((e, t) => {
4689
4693
  onWheelScroll: (u, f) => {
4690
4694
  if (s.viewport) {
4691
4695
  const m = s.viewport.scrollTop + u.deltaY;
4692
- e.onWheelScroll(m), To(m, f) && u.preventDefault();
4696
+ e.onWheelScroll(m), Mo(m, f) && u.preventDefault();
4693
4697
  }
4694
4698
  },
4695
4699
  onResize: () => {
@@ -4705,7 +4709,7 @@ var Vs = p.forwardRef((e, t) => {
4705
4709
  }
4706
4710
  }
4707
4711
  );
4708
- }), [qs, Ao] = yo(X), Ro = p.forwardRef((e, t) => {
4712
+ }), [Ys, Ro] = ko(X), _o = p.forwardRef((e, t) => {
4709
4713
  const {
4710
4714
  __scopeScrollArea: o,
4711
4715
  sizes: r,
@@ -4718,24 +4722,24 @@ var Vs = p.forwardRef((e, t) => {
4718
4722
  onWheelScroll: u,
4719
4723
  onResize: f,
4720
4724
  ...m
4721
- } = e, b = q(X, o), [S, w] = p.useState(null), h = Y(t, (k) => w(k)), y = p.useRef(null), R = p.useRef(""), C = b.viewport, A = r.content - r.viewport, P = J(u), E = J(l), _ = Le(f, 10);
4722
- function g(k) {
4725
+ } = e, g = q(X, o), [k, x] = p.useState(null), h = Y(t, (S) => x(S)), y = p.useRef(null), R = p.useRef(""), C = g.viewport, A = r.content - r.viewport, P = J(u), E = J(l), _ = Le(f, 10);
4726
+ function b(S) {
4723
4727
  if (y.current) {
4724
- const M = k.clientX - y.current.left, O = k.clientY - y.current.top;
4728
+ const M = S.clientX - y.current.left, O = S.clientY - y.current.top;
4725
4729
  d({ x: M, y: O });
4726
4730
  }
4727
4731
  }
4728
4732
  return p.useEffect(() => {
4729
- const k = (M) => {
4733
+ const S = (M) => {
4730
4734
  const O = M.target;
4731
- (S == null ? void 0 : S.contains(O)) && P(M, A);
4735
+ (k == null ? void 0 : k.contains(O)) && P(M, A);
4732
4736
  };
4733
- return document.addEventListener("wheel", k, { passive: !1 }), () => document.removeEventListener("wheel", k, { passive: !1 });
4734
- }, [C, S, A, P]), p.useEffect(E, [r, E]), ce(S, _), ce(b.content, _), /* @__PURE__ */ c(
4735
- qs,
4737
+ return document.addEventListener("wheel", S, { passive: !1 }), () => document.removeEventListener("wheel", S, { passive: !1 });
4738
+ }, [C, k, A, P]), p.useEffect(E, [r, E]), ce(k, _), ce(g.content, _), /* @__PURE__ */ c(
4739
+ Ys,
4736
4740
  {
4737
4741
  scope: o,
4738
- scrollbar: S,
4742
+ scrollbar: k,
4739
4743
  hasThumb: n,
4740
4744
  onThumbChange: J(s),
4741
4745
  onThumbPointerUp: J(a),
@@ -4747,26 +4751,26 @@ var Vs = p.forwardRef((e, t) => {
4747
4751
  ...m,
4748
4752
  ref: h,
4749
4753
  style: { position: "absolute", ...m.style },
4750
- onPointerDown: W(e.onPointerDown, (k) => {
4751
- k.button === 0 && (k.target.setPointerCapture(k.pointerId), y.current = S.getBoundingClientRect(), R.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", b.viewport && (b.viewport.style.scrollBehavior = "auto"), g(k));
4754
+ onPointerDown: W(e.onPointerDown, (S) => {
4755
+ S.button === 0 && (S.target.setPointerCapture(S.pointerId), y.current = k.getBoundingClientRect(), R.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"), b(S));
4752
4756
  }),
4753
- onPointerMove: W(e.onPointerMove, g),
4754
- onPointerUp: W(e.onPointerUp, (k) => {
4755
- const M = k.target;
4756
- M.hasPointerCapture(k.pointerId) && M.releasePointerCapture(k.pointerId), document.body.style.webkitUserSelect = R.current, b.viewport && (b.viewport.style.scrollBehavior = ""), y.current = null;
4757
+ onPointerMove: W(e.onPointerMove, b),
4758
+ onPointerUp: W(e.onPointerUp, (S) => {
4759
+ const M = S.target;
4760
+ M.hasPointerCapture(S.pointerId) && M.releasePointerCapture(S.pointerId), document.body.style.webkitUserSelect = R.current, g.viewport && (g.viewport.style.scrollBehavior = ""), y.current = null;
4757
4761
  })
4758
4762
  }
4759
4763
  )
4760
4764
  }
4761
4765
  );
4762
- }), ze = "ScrollAreaThumb", _o = p.forwardRef(
4766
+ }), ze = "ScrollAreaThumb", Io = p.forwardRef(
4763
4767
  (e, t) => {
4764
- const { forceMount: o, ...r } = e, n = Ao(ze, e.__scopeScrollArea);
4765
- return /* @__PURE__ */ c(de, { present: o || n.hasThumb, children: /* @__PURE__ */ c(Ys, { ref: t, ...r }) });
4768
+ const { forceMount: o, ...r } = e, n = Ro(ze, e.__scopeScrollArea);
4769
+ return /* @__PURE__ */ c(de, { present: o || n.hasThumb, children: /* @__PURE__ */ c(Xs, { ref: t, ...r }) });
4766
4770
  }
4767
- ), Ys = p.forwardRef(
4771
+ ), Xs = p.forwardRef(
4768
4772
  (e, t) => {
4769
- const { __scopeScrollArea: o, style: r, ...n } = e, s = q(ze, o), a = Ao(ze, o), { onThumbPositionChange: i } = a, l = Y(
4773
+ const { __scopeScrollArea: o, style: r, ...n } = e, s = q(ze, o), a = Ro(ze, o), { onThumbPositionChange: i } = a, l = Y(
4770
4774
  t,
4771
4775
  (f) => a.onThumbChange(f)
4772
4776
  ), d = p.useRef(void 0), u = Le(() => {
@@ -4777,8 +4781,8 @@ var Vs = p.forwardRef((e, t) => {
4777
4781
  if (f) {
4778
4782
  const m = () => {
4779
4783
  if (u(), !d.current) {
4780
- const b = Ks(f, i);
4781
- d.current = b, i();
4784
+ const g = Js(f, i);
4785
+ d.current = g, i();
4782
4786
  }
4783
4787
  };
4784
4788
  return i(), f.addEventListener("scroll", m), () => f.removeEventListener("scroll", m);
@@ -4795,23 +4799,23 @@ var Vs = p.forwardRef((e, t) => {
4795
4799
  ...r
4796
4800
  },
4797
4801
  onPointerDownCapture: W(e.onPointerDownCapture, (f) => {
4798
- const b = f.target.getBoundingClientRect(), S = f.clientX - b.left, w = f.clientY - b.top;
4799
- a.onThumbPointerDown({ x: S, y: w });
4802
+ const g = f.target.getBoundingClientRect(), k = f.clientX - g.left, x = f.clientY - g.top;
4803
+ a.onThumbPointerDown({ x: k, y: x });
4800
4804
  }),
4801
4805
  onPointerUp: W(e.onPointerUp, a.onThumbPointerUp)
4802
4806
  }
4803
4807
  );
4804
4808
  }
4805
4809
  );
4806
- _o.displayName = ze;
4807
- var it = "ScrollAreaCorner", Io = p.forwardRef(
4810
+ Io.displayName = ze;
4811
+ var it = "ScrollAreaCorner", Po = p.forwardRef(
4808
4812
  (e, t) => {
4809
4813
  const o = q(it, e.__scopeScrollArea), r = !!(o.scrollbarX && o.scrollbarY);
4810
- return o.type !== "scroll" && r ? /* @__PURE__ */ c(Xs, { ...e, ref: t }) : null;
4814
+ return o.type !== "scroll" && r ? /* @__PURE__ */ c(Zs, { ...e, ref: t }) : null;
4811
4815
  }
4812
4816
  );
4813
- Io.displayName = it;
4814
- var Xs = p.forwardRef((e, t) => {
4817
+ Po.displayName = it;
4818
+ var Zs = p.forwardRef((e, t) => {
4815
4819
  const { __scopeScrollArea: o, ...r } = e, n = q(it, o), [s, a] = p.useState(0), [i, l] = p.useState(0), d = !!(s && i);
4816
4820
  return ce(n.scrollbarX, () => {
4817
4821
  var f;
@@ -4841,33 +4845,33 @@ var Xs = p.forwardRef((e, t) => {
4841
4845
  function Te(e) {
4842
4846
  return e ? parseInt(e, 10) : 0;
4843
4847
  }
4844
- function Po(e, t) {
4848
+ function zo(e, t) {
4845
4849
  const o = e / t;
4846
4850
  return isNaN(o) ? 0 : o;
4847
4851
  }
4848
4852
  function Me(e) {
4849
- const t = Po(e.viewport, e.content), o = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - o) * t;
4853
+ const t = zo(e.viewport, e.content), o = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - o) * t;
4850
4854
  return Math.max(r, 18);
4851
4855
  }
4852
- function Zs(e, t, o, r = "ltr") {
4856
+ function Ks(e, t, o, r = "ltr") {
4853
4857
  const n = Me(o), s = n / 2, a = t || s, i = n - a, l = o.scrollbar.paddingStart + a, d = o.scrollbar.size - o.scrollbar.paddingEnd - i, u = o.content - o.viewport, f = r === "ltr" ? [0, u] : [u * -1, 0];
4854
- return zo([l, d], f)(e);
4858
+ return To([l, d], f)(e);
4855
4859
  }
4856
4860
  function At(e, t, o = "ltr") {
4857
- const r = Me(t), n = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - n, a = t.content - t.viewport, i = s - r, l = o === "ltr" ? [0, a] : [a * -1, 0], d = Us(e, l);
4858
- return zo([0, a], [0, i])(d);
4861
+ const r = Me(t), n = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - n, a = t.content - t.viewport, i = s - r, l = o === "ltr" ? [0, a] : [a * -1, 0], d = Ws(e, l);
4862
+ return To([0, a], [0, i])(d);
4859
4863
  }
4860
- function zo(e, t) {
4864
+ function To(e, t) {
4861
4865
  return (o) => {
4862
4866
  if (e[0] === e[1] || t[0] === t[1]) return t[0];
4863
4867
  const r = (t[1] - t[0]) / (e[1] - e[0]);
4864
4868
  return t[0] + r * (o - e[0]);
4865
4869
  };
4866
4870
  }
4867
- function To(e, t) {
4871
+ function Mo(e, t) {
4868
4872
  return e > 0 && e < t;
4869
4873
  }
4870
- var Ks = (e, t = () => {
4874
+ var Js = (e, t = () => {
4871
4875
  }) => {
4872
4876
  let o = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
4873
4877
  return (function n() {
@@ -4895,8 +4899,8 @@ function ce(e, t) {
4895
4899
  }
4896
4900
  }, [e, o]);
4897
4901
  }
4898
- var Js = ko, Qs = Co, ea = Io, ta = "Separator", Rt = "horizontal", oa = ["horizontal", "vertical"], Mo = p.forwardRef((e, t) => {
4899
- const { decorative: o, orientation: r = Rt, ...n } = e, s = ra(r) ? r : Rt, i = o ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
4902
+ var Qs = So, ea = Eo, ta = Po, oa = "Separator", Rt = "horizontal", ra = ["horizontal", "vertical"], Lo = p.forwardRef((e, t) => {
4903
+ const { decorative: o, orientation: r = Rt, ...n } = e, s = na(r) ? r : Rt, i = o ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
4900
4904
  return /* @__PURE__ */ c(
4901
4905
  j.div,
4902
4906
  {
@@ -4907,13 +4911,13 @@ var Js = ko, Qs = Co, ea = Io, ta = "Separator", Rt = "horizontal", oa = ["horiz
4907
4911
  }
4908
4912
  );
4909
4913
  });
4910
- Mo.displayName = ta;
4911
- function ra(e) {
4912
- return oa.includes(e);
4914
+ Lo.displayName = oa;
4915
+ function na(e) {
4916
+ return ra.includes(e);
4913
4917
  }
4914
- var na = Mo, Oe = "Tabs", [sa] = ge(Oe, [
4915
- go
4916
- ]), Lo = go(), [aa, lt] = sa(Oe), Oo = p.forwardRef(
4918
+ var sa = Lo, Oe = "Tabs", [aa] = ge(Oe, [
4919
+ bo
4920
+ ]), Oo = bo(), [ia, lt] = aa(Oe), $o = p.forwardRef(
4917
4921
  (e, t) => {
4918
4922
  const {
4919
4923
  __scopeTabs: o,
@@ -4924,17 +4928,17 @@ var na = Mo, Oe = "Tabs", [sa] = ge(Oe, [
4924
4928
  dir: i,
4925
4929
  activationMode: l = "automatic",
4926
4930
  ...d
4927
- } = e, u = rt(i), [f, m] = ao({
4931
+ } = e, u = rt(i), [f, m] = io({
4928
4932
  prop: r,
4929
4933
  onChange: n,
4930
4934
  defaultProp: s ?? "",
4931
4935
  caller: Oe
4932
4936
  });
4933
4937
  return /* @__PURE__ */ c(
4934
- aa,
4938
+ ia,
4935
4939
  {
4936
4940
  scope: o,
4937
- baseId: io(),
4941
+ baseId: lo(),
4938
4942
  value: f,
4939
4943
  onValueChange: m,
4940
4944
  orientation: a,
@@ -4953,12 +4957,12 @@ var na = Mo, Oe = "Tabs", [sa] = ge(Oe, [
4953
4957
  );
4954
4958
  }
4955
4959
  );
4956
- Oo.displayName = Oe;
4957
- var $o = "TabsList", Fo = p.forwardRef(
4960
+ $o.displayName = Oe;
4961
+ var Fo = "TabsList", Do = p.forwardRef(
4958
4962
  (e, t) => {
4959
- const { __scopeTabs: o, loop: r = !0, ...n } = e, s = lt($o, o), a = Lo(o);
4963
+ const { __scopeTabs: o, loop: r = !0, ...n } = e, s = lt(Fo, o), a = Oo(o);
4960
4964
  return /* @__PURE__ */ c(
4961
- Fs,
4965
+ Ds,
4962
4966
  {
4963
4967
  asChild: !0,
4964
4968
  ...a,
@@ -4978,12 +4982,12 @@ var $o = "TabsList", Fo = p.forwardRef(
4978
4982
  );
4979
4983
  }
4980
4984
  );
4981
- Fo.displayName = $o;
4982
- var Do = "TabsTrigger", Uo = p.forwardRef(
4985
+ Do.displayName = Fo;
4986
+ var Uo = "TabsTrigger", Wo = p.forwardRef(
4983
4987
  (e, t) => {
4984
- const { __scopeTabs: o, value: r, disabled: n = !1, ...s } = e, a = lt(Do, o), i = Lo(o), l = Vo(a.baseId, r), d = jo(a.baseId, r), u = r === a.value;
4988
+ const { __scopeTabs: o, value: r, disabled: n = !1, ...s } = e, a = lt(Uo, o), i = Oo(o), l = jo(a.baseId, r), d = Bo(a.baseId, r), u = r === a.value;
4985
4989
  return /* @__PURE__ */ c(
4986
- Ds,
4990
+ Us,
4987
4991
  {
4988
4992
  asChild: !0,
4989
4993
  ...i,
@@ -5018,10 +5022,10 @@ var Do = "TabsTrigger", Uo = p.forwardRef(
5018
5022
  );
5019
5023
  }
5020
5024
  );
5021
- Uo.displayName = Do;
5022
- var Wo = "TabsContent", Ho = p.forwardRef(
5025
+ Wo.displayName = Uo;
5026
+ var Ho = "TabsContent", Vo = p.forwardRef(
5023
5027
  (e, t) => {
5024
- const { __scopeTabs: o, value: r, forceMount: n, children: s, ...a } = e, i = lt(Wo, o), l = Vo(i.baseId, r), d = jo(i.baseId, r), u = r === i.value, f = p.useRef(u);
5028
+ const { __scopeTabs: o, value: r, forceMount: n, children: s, ...a } = e, i = lt(Ho, o), l = jo(i.baseId, r), d = Bo(i.baseId, r), u = r === i.value, f = p.useRef(u);
5025
5029
  return p.useEffect(() => {
5026
5030
  const m = requestAnimationFrame(() => f.current = !1);
5027
5031
  return () => cancelAnimationFrame(m);
@@ -5046,15 +5050,15 @@ var Wo = "TabsContent", Ho = p.forwardRef(
5046
5050
  ) });
5047
5051
  }
5048
5052
  );
5049
- Ho.displayName = Wo;
5050
- function Vo(e, t) {
5053
+ Vo.displayName = Ho;
5054
+ function jo(e, t) {
5051
5055
  return `${e}-trigger-${t}`;
5052
5056
  }
5053
- function jo(e, t) {
5057
+ function Bo(e, t) {
5054
5058
  return `${e}-content-${t}`;
5055
5059
  }
5056
- var ia = Oo, la = Fo, ca = Uo, da = Ho;
5057
- const ua = ot(
5060
+ var la = $o, ca = Do, da = Wo, ua = Vo;
5061
+ const fa = ot(
5058
5062
  'inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*="size-"])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',
5059
5063
  {
5060
5064
  variants: {
@@ -5083,7 +5087,7 @@ const ua = ot(
5083
5087
  }
5084
5088
  }
5085
5089
  );
5086
- function Bo({
5090
+ function Go({
5087
5091
  className: e,
5088
5092
  variant: t = "default",
5089
5093
  size: o = "default",
@@ -5091,17 +5095,17 @@ function Bo({
5091
5095
  ...n
5092
5096
  }) {
5093
5097
  return /* @__PURE__ */ c(
5094
- r ? so : "button",
5098
+ r ? ao : "button",
5095
5099
  {
5096
5100
  "data-slot": "button",
5097
5101
  "data-variant": t,
5098
5102
  "data-size": o,
5099
- className: T(ua({ variant: t, size: o, className: e })),
5103
+ className: T(fa({ variant: t, size: o, className: e })),
5100
5104
  ...n
5101
5105
  }
5102
5106
  );
5103
5107
  }
5104
- const fa = ot(
5108
+ const ma = ot(
5105
5109
  "inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
5106
5110
  {
5107
5111
  variants: {
@@ -5119,23 +5123,23 @@ const fa = ot(
5119
5123
  }
5120
5124
  }
5121
5125
  );
5122
- function ma({
5126
+ function pa({
5123
5127
  className: e,
5124
5128
  variant: t = "default",
5125
5129
  asChild: o = !1,
5126
5130
  ...r
5127
5131
  }) {
5128
5132
  return /* @__PURE__ */ c(
5129
- o ? so : "span",
5133
+ o ? ao : "span",
5130
5134
  {
5131
5135
  "data-slot": "badge",
5132
5136
  "data-variant": t,
5133
- className: T(fa({ variant: t }), e),
5137
+ className: T(ma({ variant: t }), e),
5134
5138
  ...r
5135
5139
  }
5136
5140
  );
5137
5141
  }
5138
- function pa({ className: e, type: t, ...o }) {
5142
+ function ha({ className: e, type: t, ...o }) {
5139
5143
  return /* @__PURE__ */ c(
5140
5144
  "input",
5141
5145
  {
@@ -5151,14 +5155,14 @@ function pa({ className: e, type: t, ...o }) {
5151
5155
  }
5152
5156
  );
5153
5157
  }
5154
- function ha({
5158
+ function ga({
5155
5159
  className: e,
5156
5160
  orientation: t = "horizontal",
5157
5161
  decorative: o = !0,
5158
5162
  ...r
5159
5163
  }) {
5160
5164
  return /* @__PURE__ */ c(
5161
- na,
5165
+ sa,
5162
5166
  {
5163
5167
  "data-slot": "separator",
5164
5168
  decorative: o,
@@ -5171,13 +5175,13 @@ function ha({
5171
5175
  }
5172
5176
  );
5173
5177
  }
5174
- function ga({
5178
+ function ba({
5175
5179
  className: e,
5176
5180
  orientation: t = "horizontal",
5177
5181
  ...o
5178
5182
  }) {
5179
5183
  return /* @__PURE__ */ c(
5180
- ia,
5184
+ la,
5181
5185
  {
5182
5186
  "data-slot": "tabs",
5183
5187
  "data-orientation": t,
@@ -5190,7 +5194,7 @@ function ga({
5190
5194
  }
5191
5195
  );
5192
5196
  }
5193
- const ba = ot(
5197
+ const va = ot(
5194
5198
  "rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",
5195
5199
  {
5196
5200
  variants: {
@@ -5204,27 +5208,27 @@ const ba = ot(
5204
5208
  }
5205
5209
  }
5206
5210
  );
5207
- function va({
5211
+ function xa({
5208
5212
  className: e,
5209
5213
  variant: t = "default",
5210
5214
  ...o
5211
5215
  }) {
5212
5216
  return /* @__PURE__ */ c(
5213
- la,
5217
+ ca,
5214
5218
  {
5215
5219
  "data-slot": "tabs-list",
5216
5220
  "data-variant": t,
5217
- className: T(ba({ variant: t }), e),
5221
+ className: T(va({ variant: t }), e),
5218
5222
  ...o
5219
5223
  }
5220
5224
  );
5221
5225
  }
5222
- function xa({
5226
+ function wa({
5223
5227
  className: e,
5224
5228
  ...t
5225
5229
  }) {
5226
5230
  return /* @__PURE__ */ c(
5227
- ca,
5231
+ da,
5228
5232
  {
5229
5233
  "data-slot": "tabs-trigger",
5230
5234
  className: T(
@@ -5238,12 +5242,12 @@ function xa({
5238
5242
  }
5239
5243
  );
5240
5244
  }
5241
- function wa({
5245
+ function ya({
5242
5246
  className: e,
5243
5247
  ...t
5244
5248
  }) {
5245
5249
  return /* @__PURE__ */ c(
5246
- da,
5250
+ ua,
5247
5251
  {
5248
5252
  "data-slot": "tabs-content",
5249
5253
  className: T("flex-1 outline-none", e),
@@ -5251,13 +5255,13 @@ function wa({
5251
5255
  }
5252
5256
  );
5253
5257
  }
5254
- function ya({
5258
+ function ka({
5255
5259
  className: e,
5256
5260
  orientation: t = "vertical",
5257
5261
  ...o
5258
5262
  }) {
5259
5263
  return /* @__PURE__ */ c(
5260
- Eo,
5264
+ No,
5261
5265
  {
5262
5266
  "data-slot": "scroll-area-scrollbar",
5263
5267
  orientation: t,
@@ -5269,7 +5273,7 @@ function ya({
5269
5273
  ),
5270
5274
  ...o,
5271
5275
  children: /* @__PURE__ */ c(
5272
- _o,
5276
+ Io,
5273
5277
  {
5274
5278
  "data-slot": "scroll-area-thumb",
5275
5279
  className: "bg-border relative flex-1 rounded-full"
@@ -5278,28 +5282,28 @@ function ya({
5278
5282
  }
5279
5283
  );
5280
5284
  }
5281
- function ka({
5285
+ function Sa({
5282
5286
  className: e,
5283
5287
  children: t,
5284
5288
  ...o
5285
5289
  }) {
5286
5290
  return /* @__PURE__ */ z(
5287
- Js,
5291
+ Qs,
5288
5292
  {
5289
5293
  "data-slot": "scroll-area",
5290
5294
  className: T("relative", e),
5291
5295
  ...o,
5292
5296
  children: [
5293
5297
  /* @__PURE__ */ c(
5294
- Qs,
5298
+ ea,
5295
5299
  {
5296
5300
  "data-slot": "scroll-area-viewport",
5297
5301
  className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
5298
5302
  children: t
5299
5303
  }
5300
5304
  ),
5301
- /* @__PURE__ */ c(ya, {}),
5302
- /* @__PURE__ */ c(ea, {})
5305
+ /* @__PURE__ */ c(ka, {}),
5306
+ /* @__PURE__ */ c(ta, {})
5303
5307
  ]
5304
5308
  }
5305
5309
  );
@@ -5310,7 +5314,7 @@ function Ke({
5310
5314
  ...o
5311
5315
  }) {
5312
5316
  return /* @__PURE__ */ c(
5313
- Es,
5317
+ Ns,
5314
5318
  {
5315
5319
  "data-slot": "avatar",
5316
5320
  "data-size": t,
@@ -5327,7 +5331,7 @@ function Je({
5327
5331
  ...t
5328
5332
  }) {
5329
5333
  return /* @__PURE__ */ c(
5330
- Ns,
5334
+ As,
5331
5335
  {
5332
5336
  "data-slot": "avatar-image",
5333
5337
  className: T("aspect-square size-full", e),
@@ -5340,7 +5344,7 @@ function Qe({
5340
5344
  ...t
5341
5345
  }) {
5342
5346
  return /* @__PURE__ */ c(
5343
- As,
5347
+ Rs,
5344
5348
  {
5345
5349
  "data-slot": "avatar-fallback",
5346
5350
  className: T(
@@ -5351,32 +5355,32 @@ function Qe({
5351
5355
  }
5352
5356
  );
5353
5357
  }
5354
- const Go = {
5355
- "arrow-left": xr,
5356
- calendar: Sr,
5357
- "check-circle-2": Ir,
5358
- "chevron-left": Er,
5359
- "chevron-right": Ft,
5360
- clock: Or,
5361
- "credit-card": Fr,
5362
- "external-link": Ur,
5363
- "help-circle": zr,
5364
- info: Hr,
5365
- "loader-2": Dt,
5358
+ const qo = {
5359
+ "arrow-left": wr,
5360
+ calendar: Cr,
5361
+ "check-circle-2": Pr,
5362
+ "chevron-left": Nr,
5363
+ "chevron-right": Dt,
5364
+ clock: $r,
5365
+ "credit-card": Dr,
5366
+ "external-link": Wr,
5367
+ "help-circle": Tr,
5368
+ info: Vr,
5369
+ "loader-2": Ut,
5366
5370
  mail: Ye,
5367
- "map-pin": Gr,
5368
- "message-circle": Yr,
5369
- "message-square": Ut,
5370
- package: Kr,
5371
- phone: Qr,
5372
- search: tn,
5373
- "shopping-bag": rn,
5374
- sparkles: sn,
5375
- truck: ln,
5376
- user: Wt,
5377
- "x-circle": Mr,
5378
- "alert-circle": Rr,
5379
- "book-open": yr
5371
+ "map-pin": qr,
5372
+ "message-circle": Xr,
5373
+ "message-square": Wt,
5374
+ package: Jr,
5375
+ phone: en,
5376
+ search: on,
5377
+ "shopping-bag": nn,
5378
+ sparkles: an,
5379
+ truck: cn,
5380
+ user: Ht,
5381
+ "x-circle": Lr,
5382
+ "alert-circle": _r,
5383
+ "book-open": kr
5380
5384
  }, _t = {
5381
5385
  0: "gap-0",
5382
5386
  1: "gap-1",
@@ -5388,15 +5392,15 @@ const Go = {
5388
5392
  8: "gap-8",
5389
5393
  10: "gap-10",
5390
5394
  12: "gap-12"
5391
- }, qo = (e) => typeof e == "number" ? _t[String(e)] ?? "gap-2" : typeof e == "string" ? _t[e.trim()] ?? "gap-2" : "gap-2", Sa = ({ children: e, className: t, onClick: o }) => /* @__PURE__ */ c(
5395
+ }, Yo = (e) => typeof e == "number" ? _t[String(e)] ?? "gap-2" : typeof e == "string" ? _t[e.trim()] ?? "gap-2" : "gap-2", Ca = ({ children: e, className: t, onClick: o }) => /* @__PURE__ */ c(
5392
5396
  me,
5393
5397
  {
5394
5398
  className: t,
5395
5399
  onClick: o,
5396
5400
  children: e
5397
5401
  }
5398
- ), Ca = ({ children: e, className: t }) => /* @__PURE__ */ c(pe, { className: t, children: e }), Ea = ({ children: e, className: t }) => /* @__PURE__ */ c(Qn, { className: t, children: e }), Na = ({ children: e, className: t, onClick: o, variant: r, size: n, disabled: s, title: a }) => /* @__PURE__ */ c(
5399
- Bo,
5402
+ ), Ea = ({ children: e, className: t }) => /* @__PURE__ */ c(pe, { className: t, children: e }), Na = ({ children: e, className: t }) => /* @__PURE__ */ c(es, { className: t, children: e }), Aa = ({ children: e, className: t, onClick: o, variant: r, size: n, disabled: s, title: a }) => /* @__PURE__ */ c(
5403
+ Go,
5400
5404
  {
5401
5405
  className: t,
5402
5406
  variant: r,
@@ -5406,30 +5410,30 @@ const Go = {
5406
5410
  title: a,
5407
5411
  children: e
5408
5412
  }
5409
- ), Aa = ({ children: e, className: t, variant: o }) => /* @__PURE__ */ c(
5410
- ma,
5413
+ ), Ra = ({ children: e, className: t, variant: o }) => /* @__PURE__ */ c(
5414
+ pa,
5411
5415
  {
5412
5416
  className: t,
5413
5417
  variant: o,
5414
5418
  children: e
5415
5419
  }
5416
- ), Ra = ({ className: e, onChange: t, ...o }) => /* @__PURE__ */ c(
5417
- pa,
5420
+ ), _a = ({ className: e, onChange: t, ...o }) => /* @__PURE__ */ c(
5421
+ ha,
5418
5422
  {
5419
5423
  className: e,
5420
5424
  onChange: t,
5421
5425
  ...o
5422
5426
  }
5423
- ), _a = ({ className: e }) => /* @__PURE__ */ c(ha, { className: e }), Ia = ({ children: e, className: t }) => /* @__PURE__ */ c(ga, { className: t, children: e }), Pa = ({ children: e, className: t }) => /* @__PURE__ */ c(va, { className: t, children: e }), za = ({ children: e, className: t }) => /* @__PURE__ */ c(xa, { className: t, value: "", children: e }), Ta = ({ children: e, className: t }) => /* @__PURE__ */ c(wa, { className: t, value: "", children: e }), Ma = ({ children: e, className: t }) => /* @__PURE__ */ c(ka, { className: t, children: e }), La = ({ children: e, className: t }) => /* @__PURE__ */ c(Ke, { className: t, children: e }), Oa = ({ src: e, alt: t, className: o }) => /* @__PURE__ */ c(Je, { src: e, alt: t, className: o }), $a = ({ children: e, className: t }) => /* @__PURE__ */ c(Qe, { className: t, children: e }), Fa = ({ children: e, className: t }) => /* @__PURE__ */ c("p", { className: T("text-sm", t), children: e }), Da = ({ children: e, className: t, level: o }) => {
5427
+ ), Ia = ({ className: e }) => /* @__PURE__ */ c(ga, { className: e }), Pa = ({ children: e, className: t }) => /* @__PURE__ */ c(ba, { className: t, children: e }), za = ({ children: e, className: t }) => /* @__PURE__ */ c(xa, { className: t, children: e }), Ta = ({ children: e, className: t }) => /* @__PURE__ */ c(wa, { className: t, value: "", children: e }), Ma = ({ children: e, className: t }) => /* @__PURE__ */ c(ya, { className: t, value: "", children: e }), La = ({ children: e, className: t }) => /* @__PURE__ */ c(Sa, { className: t, children: e }), Oa = ({ children: e, className: t }) => /* @__PURE__ */ c(Ke, { className: t, children: e }), $a = ({ src: e, alt: t, className: o }) => /* @__PURE__ */ c(Je, { src: e, alt: t, className: o }), Fa = ({ children: e, className: t }) => /* @__PURE__ */ c(Qe, { className: t, children: e }), Da = ({ children: e, className: t }) => /* @__PURE__ */ c("p", { className: T("text-sm", t), children: e }), Ua = ({ children: e, className: t, level: o }) => {
5424
5428
  const r = `h${o || "2"}`;
5425
5429
  return /* @__PURE__ */ c(r, { className: T("font-semibold tracking-tight", t), children: e });
5426
- }, Ua = ({ children: e, className: t, direction: o, gap: r }) => {
5427
- const n = o === "row" ? "flex-row" : "flex-col", s = qo(r);
5430
+ }, Wa = ({ children: e, className: t, direction: o, gap: r }) => {
5431
+ const n = o === "row" ? "flex-row" : "flex-col", s = Yo(r);
5428
5432
  return /* @__PURE__ */ c("div", { className: T("flex", n, s, t), children: e });
5429
- }, Wa = ({ children: e, className: t, gap: o }) => {
5430
- const r = qo(o);
5433
+ }, Ha = ({ children: e, className: t, gap: o }) => {
5434
+ const r = Yo(o);
5431
5435
  return /* @__PURE__ */ c("div", { className: T("flex flex-row items-center", r, t), children: e });
5432
- }, Ha = ({ children: e, className: t, href: o, target: r, rel: n }) => /* @__PURE__ */ c(
5436
+ }, Va = ({ children: e, className: t, href: o, target: r, rel: n }) => /* @__PURE__ */ c(
5433
5437
  "a",
5434
5438
  {
5435
5439
  href: o,
@@ -5438,11 +5442,11 @@ const Go = {
5438
5442
  className: t,
5439
5443
  children: e
5440
5444
  }
5441
- ), Va = ({ title: e, children: t, className: o }) => /* @__PURE__ */ z(me, { className: T("overflow-hidden p-0 gap-0 shadow-sm", o), children: [
5445
+ ), ja = ({ title: e, children: t, className: o }) => /* @__PURE__ */ z(me, { className: T("overflow-hidden p-0 gap-0 shadow-sm", o), children: [
5442
5446
  e ? /* @__PURE__ */ c(pe, { className: "px-6 py-3", children: /* @__PURE__ */ c("h3", { className: "text-xs font-semibold tracking-wider text-muted-foreground", children: String(e) }) }) : null,
5443
5447
  /* @__PURE__ */ c("div", { className: "flex flex-col gap-0 divide-y divide-border", children: t })
5444
- ] }), ja = ({ icon: e, label: t, description: o, onClick: r, className: n }) => {
5445
- const s = e, a = "size-5", i = s ? Go[s] : null;
5448
+ ] }), Ba = ({ icon: e, label: t, description: o, onClick: r, className: n }) => {
5449
+ const s = e, a = "size-5", i = s ? qo[s] : null;
5446
5450
  return /* @__PURE__ */ z(
5447
5451
  "button",
5448
5452
  {
@@ -5455,38 +5459,38 @@ const Go = {
5455
5459
  t ? /* @__PURE__ */ c("p", { className: "font-medium text-sm text-foreground", children: String(t) }) : null,
5456
5460
  o ? /* @__PURE__ */ c("p", { className: "mt-0.5 text-xs text-muted-foreground", children: String(o) }) : null
5457
5461
  ] }),
5458
- /* @__PURE__ */ c(Ft, { className: "mr-1 size-4 shrink-0 text-muted-foreground" })
5462
+ /* @__PURE__ */ c(Dt, { className: "mr-1 size-4 shrink-0 text-muted-foreground" })
5459
5463
  ]
5460
5464
  }
5461
5465
  );
5462
- }, Ba = ({ name: e, size: t, className: o }) => {
5463
- const n = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, a = Go[s], i = s === "sparkles" ? "sparkle-icon" : "";
5466
+ }, Ga = ({ name: e, size: t, className: o }) => {
5467
+ const n = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, a = qo[s], i = s === "sparkles" ? "sparkle-icon" : "";
5464
5468
  return a ? /* @__PURE__ */ c(a, { className: T(n, i, o) }) : /* @__PURE__ */ c("span", { className: T("inline-block", n, i, o), "data-icon": s });
5465
- }, Ga = () => ({
5466
- "ui-card": Sa,
5467
- "ui-card-content": Ca,
5468
- "ui-card-header": Ea,
5469
- "ui-button": Na,
5470
- "ui-text": Fa,
5471
- "ui-heading": Da,
5472
- "ui-badge": Aa,
5473
- "ui-input": Ra,
5474
- "ui-stack": Ua,
5475
- "ui-inline": Wa,
5476
- "ui-separator": _a,
5477
- "ui-tabs": Ia,
5478
- "ui-tabs-list": Pa,
5479
- "ui-tabs-trigger": za,
5480
- "ui-tabs-content": Ta,
5481
- "ui-scroll-area": Ma,
5482
- "ui-avatar": La,
5483
- "ui-avatar-image": Oa,
5484
- "ui-avatar-fallback": $a,
5485
- "ui-icon": Ba,
5486
- "ui-link": Ha,
5487
- "ui-menu-item": ja,
5488
- "ui-menu": Va
5489
- }), It = "/api/ecommerce", Yo = async (e, t) => {
5469
+ }, qa = () => ({
5470
+ "ui-card": Ca,
5471
+ "ui-card-content": Ea,
5472
+ "ui-card-header": Na,
5473
+ "ui-button": Aa,
5474
+ "ui-text": Da,
5475
+ "ui-heading": Ua,
5476
+ "ui-badge": Ra,
5477
+ "ui-input": _a,
5478
+ "ui-stack": Wa,
5479
+ "ui-inline": Ha,
5480
+ "ui-separator": Ia,
5481
+ "ui-tabs": Pa,
5482
+ "ui-tabs-list": za,
5483
+ "ui-tabs-trigger": Ta,
5484
+ "ui-tabs-content": Ma,
5485
+ "ui-scroll-area": La,
5486
+ "ui-avatar": Oa,
5487
+ "ui-avatar-image": $a,
5488
+ "ui-avatar-fallback": Fa,
5489
+ "ui-icon": Ga,
5490
+ "ui-link": Va,
5491
+ "ui-menu-item": Ba,
5492
+ "ui-menu": ja
5493
+ }), It = "/api/ecommerce", Xo = async (e, t) => {
5490
5494
  const o = t ? `${t.replace(/\/$/, "")}${It}` : It, r = await fetch(o, {
5491
5495
  method: "POST",
5492
5496
  headers: { "Content-Type": "application/json" },
@@ -5495,12 +5499,12 @@ const Go = {
5495
5499
  if (!r.ok)
5496
5500
  throw new Error(n.error || "API request failed");
5497
5501
  return n.data;
5498
- }, qa = ({ className: e }) => /* @__PURE__ */ z("svg", { width: "100%", height: "100%", viewBox: "0 0 190 190", version: "1.1", className: e, children: [
5502
+ }, Ya = ({ className: e }) => /* @__PURE__ */ z("svg", { width: "100%", height: "100%", viewBox: "0 0 190 190", version: "1.1", className: e, children: [
5499
5503
  /* @__PURE__ */ c("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ c("path", { d: "M344.73,67.03C344.73,30.01 314.72,0 277.7,0C240.68,0 210.67,30.01 210.67,67.03L255.36,67.03C255.36,54.69 265.36,44.69 277.7,44.69C290.04,44.69 300.05,54.69 300.05,67.03L344.73,67.03Z", fill: "rgb(15,13,25)" }) }),
5500
5504
  /* @__PURE__ */ c("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ c("path", { d: "M300.04,67.03C300.04,54.69 290.05,44.69 277.7,44.69C265.35,44.69 255.36,54.69 255.36,67.03L300.04,67.03Z", fill: "rgb(232,218,234)" }) }),
5501
5505
  /* @__PURE__ */ c("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ c("path", { d: "M166,67.03C166,104.05 196.01,134.06 233.03,134.06C270.05,134.06 300.06,104.05 300.06,67.03L255.37,67.03C255.37,79.37 245.37,89.37 233.03,89.37C220.69,89.37 210.69,79.37 210.69,67.03L166,67.03Z", fill: "rgb(15,13,25)" }) }),
5502
5506
  /* @__PURE__ */ c("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ c("path", { d: "M210.68,67.03C210.68,79.37 220.68,89.37 233.03,89.37C245.38,89.37 255.37,79.37 255.37,67.03L210.68,67.03Z", fill: "rgb(252,248,161)" }) })
5503
- ] }), Pt = "stackable-dev-badge-styles", Ya = () => {
5507
+ ] }), Pt = "stackable-dev-badge-styles", Xa = () => {
5504
5508
  if (typeof document > "u" || document.getElementById(Pt)) return;
5505
5509
  const e = document.createElement("style");
5506
5510
  e.id = Pt, e.textContent = `
@@ -5511,14 +5515,14 @@ const Go = {
5511
5515
  100% { transform: rotate(180deg); }
5512
5516
  }
5513
5517
  `, document.head.appendChild(e);
5514
- }, Xa = ({ className: e = "", extensions: t = [] }) => {
5518
+ }, Za = ({ className: e = "", extensions: t = [] }) => {
5515
5519
  const [o, r] = U([]), [n, s] = U(!1), [a, i] = U(!1), l = ae(null);
5516
5520
  if (B(() => {
5517
- Ya();
5521
+ Xa();
5518
5522
  }, []), B(() => {
5519
5523
  if (typeof window > "u") return;
5520
5524
  const u = () => {
5521
- const m = Ot(window.location.search);
5525
+ const m = $t(window.location.search);
5522
5526
  r(m);
5523
5527
  };
5524
5528
  u();
@@ -5585,7 +5589,7 @@ const Go = {
5585
5589
  overflow: "hidden",
5586
5590
  textOverflow: "ellipsis"
5587
5591
  },
5588
- children: ((m = t.find((b) => b.id === u.extensionId)) == null ? void 0 : m.manifest.name) || u.extensionId
5592
+ children: ((m = t.find((g) => g.id === u.extensionId)) == null ? void 0 : m.manifest.name) || u.extensionId
5589
5593
  }
5590
5594
  ),
5591
5595
  /* @__PURE__ */ z(
@@ -5642,7 +5646,7 @@ const Go = {
5642
5646
  display: "inline-flex",
5643
5647
  animation: a && !n ? "stackable-logo-wiggle 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both" : "none"
5644
5648
  },
5645
- children: /* @__PURE__ */ c(qa, { className: "w-6 h-6" })
5649
+ children: /* @__PURE__ */ c(Ya, { className: "w-6 h-6" })
5646
5650
  }
5647
5651
  ),
5648
5652
  /* @__PURE__ */ c("span", { children: "Dev Mode" }),
@@ -5685,7 +5689,7 @@ const Go = {
5685
5689
  ]
5686
5690
  }
5687
5691
  );
5688
- }, Za = (e, t) => e ? `${e.replace(/\/$/, "")}${t}` : t, li = ({
5692
+ }, zt = (e, t) => e ? `${e.replace(/\/$/, "")}${t}` : t, li = ({
5689
5693
  instanceId: e,
5690
5694
  apiBase: t,
5691
5695
  hostBase: o,
@@ -5697,9 +5701,9 @@ const Go = {
5697
5701
  const [i, l] = U([]), [d, u] = U(!1);
5698
5702
  B(() => {
5699
5703
  (async () => {
5700
- const b = e;
5704
+ const g = e;
5701
5705
  try {
5702
- if (!b) {
5706
+ if (!g) {
5703
5707
  console.warn("[ExtensionSetup] No instanceId provided; loading no extensions"), l([]), u(!0);
5704
5708
  return;
5705
5709
  }
@@ -5707,31 +5711,54 @@ const Go = {
5707
5711
  console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"), l([]), u(!0);
5708
5712
  return;
5709
5713
  }
5710
- const S = await fetch(Za(t, `/instances/${r}/${b}`));
5711
- if (!S.ok) {
5712
- console.warn(`[ExtensionSetup] Instance not found or failed to load: ${b}`), l([]), u(!0);
5714
+ const k = await fetch(zt(t, `/instances/${r}/${g}`));
5715
+ if (!k.ok) {
5716
+ console.warn(`[ExtensionSetup] Instance not found or failed to load: ${g}`), l([]), u(!0);
5713
5717
  return;
5714
5718
  }
5715
- const w = await S.json(), h = Ot(typeof window < "u" ? window.location.search : ""), y = dr(w, h);
5719
+ const x = await k.json(), h = $t(typeof window < "u" ? window.location.search : ""), y = ur(x, h);
5716
5720
  l(y);
5717
- } catch (S) {
5718
- console.error("Failed to load extensions:", S);
5721
+ } catch (k) {
5722
+ console.error("Failed to load extensions:", k);
5719
5723
  } finally {
5720
5724
  u(!0);
5721
5725
  }
5722
5726
  })();
5723
5727
  }, [e, r, t]);
5724
- const f = Tt(
5728
+ const f = Mt(
5725
5729
  () => ({
5726
5730
  "data.query": async (m) => (
5727
5731
  // TODO: verify payload
5728
5732
  // TODO: encryption???
5729
- Yo(m, o)
5733
+ Xo(m, o)
5730
5734
  ),
5735
+ "data.fetch": async (m, g) => {
5736
+ if (!t || !r)
5737
+ throw new Error("apiBase and appId are required for data.fetch");
5738
+ const k = zt(t, "/proxy"), x = await fetch(k, {
5739
+ method: "POST",
5740
+ headers: { "Content-Type": "application/json" },
5741
+ body: JSON.stringify({
5742
+ appId: r,
5743
+ extensionId: m,
5744
+ url: g.url,
5745
+ method: g.method ?? "GET",
5746
+ headers: g.headers ?? {},
5747
+ body: g.body ?? null
5748
+ })
5749
+ }), h = await x.json();
5750
+ if (!x.ok)
5751
+ throw new Error(h.error || "Fetch proxy request failed");
5752
+ return {
5753
+ status: h.status ?? x.status,
5754
+ ok: h.ok ?? x.ok,
5755
+ data: h.data
5756
+ };
5757
+ },
5731
5758
  "actions.toast": async (m) => {
5732
5759
  if (console.log(`[Toast] ${m.type || "info"}: ${m.message}`), typeof window < "u") {
5733
- const b = new CustomEvent("ext-toast", { detail: m });
5734
- window.dispatchEvent(b);
5760
+ const g = new CustomEvent("ext-toast", { detail: m });
5761
+ window.dispatchEvent(g);
5735
5762
  }
5736
5763
  },
5737
5764
  "actions.invoke": async (m) => {
@@ -5744,14 +5771,14 @@ const Go = {
5744
5771
  customerEmail: a ?? ""
5745
5772
  })
5746
5773
  }),
5747
- [o, s, a]
5774
+ [t, r, o, s, a]
5748
5775
  );
5749
5776
  return d ? /* @__PURE__ */ z(he, { children: [
5750
- /* @__PURE__ */ c(ar, { extensions: i, capabilityHandlers: f, components: Ga(), children: n }),
5751
- /* @__PURE__ */ c(Xa, { extensions: i })
5777
+ /* @__PURE__ */ c(ir, { extensions: i, capabilityHandlers: f, components: qa(), children: n }),
5778
+ /* @__PURE__ */ c(Za, { extensions: i })
5752
5779
  ] }) : null;
5753
- }, Ka = { dark: "dark", light: "widget-theme-light" }, Xo = ({ children: e, theme: t = "inherit" }) => /* @__PURE__ */ c("div", { "data-id": "widget-body", className: Ka[t], children: /* @__PURE__ */ c("div", { className: "h-[700px] w-[900px] overflow-hidden rounded-md ring ring-zinc-200 dark:ring-zinc-300", children: /* @__PURE__ */ c("div", { className: "flex h-full w-full flex-col overflow-hidden rounded-md bg-muted dark:bg-background text-foreground", children: e }) }) }), Zo = ({ onClick: e, icon: t = br }) => /* @__PURE__ */ c("div", { className: "fixed bottom-8 right-8 z-50", children: /* @__PURE__ */ c(
5754
- Bo,
5780
+ }, Ka = { dark: "dark", light: "widget-theme-light" }, Zo = ({ children: e, theme: t = "inherit" }) => /* @__PURE__ */ c("div", { "data-id": "widget-body", className: Ka[t], children: /* @__PURE__ */ c("div", { className: "h-[700px] w-[900px] overflow-hidden rounded-md ring ring-zinc-200 dark:ring-zinc-300", children: /* @__PURE__ */ c("div", { className: "flex h-full w-full flex-col overflow-hidden rounded-md bg-muted dark:bg-background text-foreground", children: e }) }) }), Ko = ({ onClick: e, icon: t = vr }) => /* @__PURE__ */ c("div", { className: "fixed bottom-8 right-8 z-50", children: /* @__PURE__ */ c(
5781
+ Go,
5755
5782
  {
5756
5783
  className: "h-12 w-12 rounded-full",
5757
5784
  size: "icon",
@@ -5761,14 +5788,14 @@ const Go = {
5761
5788
  ) }), ci = ({ children: e, icon: t, theme: o }) => {
5762
5789
  const [r, n] = U(!1);
5763
5790
  return /* @__PURE__ */ z(he, { children: [
5764
- /* @__PURE__ */ c(Zo, { onClick: () => {
5791
+ /* @__PURE__ */ c(Ko, { onClick: () => {
5765
5792
  n(!r);
5766
5793
  }, icon: t }),
5767
- r && /* @__PURE__ */ c("div", { "data-id": "widget-container", className: "overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl", children: /* @__PURE__ */ c(Xo, { theme: o, children: e }) })
5794
+ r && /* @__PURE__ */ c("div", { "data-id": "widget-container", className: "overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl", children: /* @__PURE__ */ c(Zo, { theme: o, children: e }) })
5768
5795
  ] });
5769
5796
  }, di = {
5770
- Body: Xo,
5771
- Launcher: Zo
5797
+ Body: Zo,
5798
+ Launcher: Ko
5772
5799
  }, Ja = ({ href: e, children: t }) => /* @__PURE__ */ c(
5773
5800
  "a",
5774
5801
  {
@@ -5788,7 +5815,7 @@ const Go = {
5788
5815
  (async () => {
5789
5816
  s(!0), i(null);
5790
5817
  try {
5791
- const d = await Yo({
5818
+ const d = await Xo({
5792
5819
  action: "getCustomer",
5793
5820
  customerId: e
5794
5821
  }, t);
@@ -5804,7 +5831,7 @@ const Go = {
5804
5831
  var l, d;
5805
5832
  const { customer: n, loading: s, error: a } = Qa(e, o);
5806
5833
  if (s)
5807
- return /* @__PURE__ */ c(me, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ c(pe, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ c(Dt, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) });
5834
+ return /* @__PURE__ */ c(me, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ c(pe, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ c(Ut, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) });
5808
5835
  if (a || !n) {
5809
5836
  const u = t ? t.split("@")[0] : e ? `Customer ${e.slice(-4)}` : "Customer", f = u.split(/[\s._-]+/).map((m) => m[0]).join("").slice(0, 2).toUpperCase();
5810
5837
  return /* @__PURE__ */ c(me, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ z(pe, { className: "p-4 pb-0 pt-2", children: [
@@ -5858,7 +5885,7 @@ const Go = {
5858
5885
  /* @__PURE__ */ c("div", { className: "py-1 rounded-lg flex justify-center gap-1", children: r })
5859
5886
  ] })
5860
5887
  ] }) }) });
5861
- }, Ko = (e, t) => {
5888
+ }, Jo = (e, t) => {
5862
5889
  B(() => {
5863
5890
  const o = t.current;
5864
5891
  if (!o) return;
@@ -5874,7 +5901,7 @@ const Go = {
5874
5901
  }, [e, t]);
5875
5902
  }, ti = ({ customization: e }) => {
5876
5903
  const t = ae(null);
5877
- return Ko("widget_conversations", t), B(() => {
5904
+ return Jo("widget_conversations", t), B(() => {
5878
5905
  !window.zE || !t.current || e && window.zE("messenger:set", "customization", {
5879
5906
  conversationList: e
5880
5907
  });
@@ -5887,7 +5914,7 @@ const Go = {
5887
5914
  );
5888
5915
  }, oi = ({ customization: e }) => {
5889
5916
  const t = ae(null);
5890
- return Ko("widget_messages", t), B(() => {
5917
+ return Jo("widget_messages", t), B(() => {
5891
5918
  !window.zE || !t.current || e && window.zE("messenger:set", "customization", {
5892
5919
  messageLog: e
5893
5920
  });
@@ -5909,7 +5936,7 @@ const Go = {
5909
5936
  const a = Math.max(
5910
5937
  Ge,
5911
5938
  Math.min(qe, s)
5912
- ), [i, l] = U("account"), [d, u] = U(a), [f, m] = U(!1), [b, S] = U(!1), [w, h] = U(!1), y = ae(null), R = Re(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
5939
+ ), [i, l] = U("account"), [d, u] = U(a), [f, m] = U(!1), [g, k] = U(!1), [x, h] = U(!1), y = ae(null), R = Re(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
5913
5940
  mode: "embedded",
5914
5941
  conversationList: { targetElement: "#widget_conversations" },
5915
5942
  messageLog: { targetElement: "#widget_messages" }
@@ -5920,11 +5947,11 @@ const Go = {
5920
5947
  }), !0), []);
5921
5948
  B(() => {
5922
5949
  if (R()) {
5923
- S(!0);
5950
+ k(!0);
5924
5951
  return;
5925
5952
  }
5926
5953
  const E = setInterval(() => {
5927
- R() && (S(!0), clearInterval(E));
5954
+ R() && (k(!0), clearInterval(E));
5928
5955
  }, 100), _ = setTimeout(() => {
5929
5956
  clearInterval(E), console.warn("Zendesk widget failed to load after 10 seconds");
5930
5957
  }, 1e4);
@@ -5940,12 +5967,12 @@ const Go = {
5940
5967
  B(() => (window.addEventListener("ext-new-conversation", C), () => {
5941
5968
  window.removeEventListener("ext-new-conversation", C);
5942
5969
  }), [C]), B(() => {
5943
- if (!w) return;
5944
- const E = (g) => {
5970
+ if (!x) return;
5971
+ const E = (b) => {
5945
5972
  if (!y.current) return;
5946
- const k = y.current.getBoundingClientRect();
5947
- if ((f ? k.width : k.height) === 0) return;
5948
- const O = f ? (g.clientX - k.left) / k.width * 100 : (g.clientY - k.top) / k.height * 100, Z = Math.max(
5973
+ const S = y.current.getBoundingClientRect();
5974
+ if ((f ? S.width : S.height) === 0) return;
5975
+ const O = f ? (b.clientX - S.left) / S.width * 100 : (b.clientY - S.top) / S.height * 100, Z = Math.max(
5949
5976
  Ge,
5950
5977
  Math.min(qe, O)
5951
5978
  );
@@ -5956,16 +5983,16 @@ const Go = {
5956
5983
  return document.body.style.cursor = f ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", E), window.addEventListener("mouseup", _), window.addEventListener("blur", _), () => {
5957
5984
  window.removeEventListener("mousemove", E), window.removeEventListener("mouseup", _), window.removeEventListener("blur", _), document.body.style.cursor = "", document.body.style.userSelect = "";
5958
5985
  };
5959
- }, [w, f]), B(() => {
5986
+ }, [x, f]), B(() => {
5960
5987
  if (!y.current) return;
5961
5988
  const E = y.current, _ = () => {
5962
- const k = getComputedStyle(E).flexDirection === "row";
5963
- m(k);
5989
+ const S = getComputedStyle(E).flexDirection === "row";
5990
+ m(S);
5964
5991
  };
5965
5992
  _();
5966
- const g = new ResizeObserver(_);
5967
- return g.observe(E), () => {
5968
- g.disconnect();
5993
+ const b = new ResizeObserver(_);
5994
+ return b.observe(E), () => {
5995
+ b.disconnect();
5969
5996
  };
5970
5997
  }, []);
5971
5998
  const A = Re((E) => {
@@ -6004,7 +6031,7 @@ const Go = {
6004
6031
  i === "account" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
6005
6032
  ),
6006
6033
  title: "My Account",
6007
- children: /* @__PURE__ */ c(Wt, { className: "h-4 w-4" })
6034
+ children: /* @__PURE__ */ c(Ht, { className: "h-4 w-4" })
6008
6035
  }
6009
6036
  ),
6010
6037
  /* @__PURE__ */ c(
@@ -6017,7 +6044,7 @@ const Go = {
6017
6044
  i === "conversations" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
6018
6045
  ),
6019
6046
  title: "Conversations",
6020
- children: /* @__PURE__ */ c(Ut, { className: "h-4 w-4" })
6047
+ children: /* @__PURE__ */ c(Wt, { className: "h-4 w-4" })
6021
6048
  }
6022
6049
  )
6023
6050
  ] })
@@ -6109,13 +6136,13 @@ const Go = {
6109
6136
  className: T(
6110
6137
  "rounded-full bg-foreground/35 dark:bg-white shadow-[0_0_0_1px_rgba(255,255,255,0.16),0_0_0_1px_rgba(0,0,0,0.22)] transition-all",
6111
6138
  f ? "h-20 w-0.5" : "h-0.5 w-20",
6112
- w ? "bg-foreground/70 dark:bg-white opacity-100" : "opacity-70 group-hover/resize:bg-foreground/55 dark:group-hover/resize:bg-white group-hover/resize:opacity-100"
6139
+ x ? "bg-foreground/70 dark:bg-white opacity-100" : "opacity-70 group-hover/resize:bg-foreground/55 dark:group-hover/resize:bg-white group-hover/resize:opacity-100"
6113
6140
  )
6114
6141
  }
6115
6142
  )
6116
6143
  }
6117
6144
  ),
6118
- w && /* @__PURE__ */ c(
6145
+ x && /* @__PURE__ */ c(
6119
6146
  "div",
6120
6147
  {
6121
6148
  className: T("absolute inset-0 z-40", f ? "cursor-col-resize" : "cursor-row-resize"),
@@ -6124,20 +6151,20 @@ const Go = {
6124
6151
  )
6125
6152
  ] })
6126
6153
  ] });
6127
- }, ri = "ze-snippet", zt = (e) => `https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(e)}`, ni = (e, t = {}) => {
6154
+ }, ri = "ze-snippet", Tt = (e) => `https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(e)}`, ni = (e, t = {}) => {
6128
6155
  if (typeof window > "u" || typeof document > "u" || !e)
6129
6156
  return Promise.resolve();
6130
6157
  const { autorender: o = !1, scriptId: r = ri } = t;
6131
6158
  window.zEMessenger = { autorender: o };
6132
6159
  const n = document.getElementById(r);
6133
6160
  if (n) {
6134
- if (n.getAttribute("src") === zt(e))
6161
+ if (n.getAttribute("src") === Tt(e))
6135
6162
  return Promise.resolve();
6136
6163
  n.remove();
6137
6164
  }
6138
6165
  return new Promise((s, a) => {
6139
6166
  const i = document.createElement("script");
6140
- i.id = r, i.src = zt(e), i.async = !0, i.onload = () => s(), i.onerror = () => a(new Error("Failed to load Zendesk snippet")), document.head.appendChild(i);
6167
+ i.id = r, i.src = Tt(e), i.async = !0, i.onload = () => s(), i.onerror = () => a(new Error("Failed to load Zendesk snippet")), document.head.appendChild(i);
6141
6168
  });
6142
6169
  }, fi = ({ config: e }) => (B(() => {
6143
6170
  e.snippetKey && ni(e.snippetKey, { autorender: e.autorender }).catch((t) => {