@stackable-labs/embeddables 1.7.0 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react.js CHANGED
@@ -2,25 +2,26 @@ import { jsxs as z, jsx as c, Fragment as he } from "react/jsx-runtime";
2
2
  import * as p from "react";
3
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(), tr = async (e, t) => {
6
- const o = ie.get(e.id);
5
+ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
6
+ const o = ce.get(e.id);
7
7
  if (o) return o;
8
8
  const r = document.createElement("iframe");
9
- if (r.setAttribute("sandbox", "allow-scripts allow-same-origin"), r.style.display = "none", r.style.width = "0", r.style.height = "0", r.style.border = "none", e.bundleUrl.startsWith("http") && !e.bundleUrl.endsWith(".js"))
10
- r.src = e.bundleUrl;
11
- else {
9
+ if (r.setAttribute("sandbox", "allow-scripts allow-same-origin"), r.style.display = "none", r.style.width = "0", r.style.height = "0", r.style.border = "none", e.bundleUrl.startsWith("http") && !e.bundleUrl.endsWith(".js")) {
10
+ const i = new URL(e.bundleUrl);
11
+ i.searchParams.set("__extensionId", e.id), r.src = i.toString();
12
+ } else {
12
13
  let i = "";
13
14
  try {
14
15
  i = await (await fetch(e.bundleUrl)).text();
15
- } catch (d) {
16
- console.error(`[SandboxManager] Failed to fetch bundle for ${e.id}:`, d);
16
+ } catch (u) {
17
+ console.error(`[SandboxManager] Failed to fetch bundle for ${e.id}:`, u);
17
18
  }
18
19
  const l = `<!DOCTYPE html>
19
20
  <html>
20
21
  <head><meta charset="utf-8"></head>
21
22
  <body>
22
23
  <div id="extension-root"></div>
23
- <script>var process = { env: { NODE_ENV: "production" } };<\/script>
24
+ <script>var __STACKABLE_EXTENSION_ID__ = ${JSON.stringify(e.id)}; var process = { env: { NODE_ENV: "production" } };<\/script>
24
25
  <script>${i}<\/script>
25
26
  </body>
26
27
  </html>`;
@@ -34,22 +35,21 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
34
35
  ready: !1,
35
36
  messageHandlers: /* @__PURE__ */ new Set()
36
37
  }, a = (i) => {
37
- if (i.source !== r.contentWindow) return;
38
38
  const l = i.data;
39
- (l == null ? void 0 : l.type) === "extension-ready" && (s.ready = !0), s.messageHandlers.forEach((d) => d(l));
39
+ !l || typeof l != "object" || !("type" in l) || ("extensionId" in l ? l.extensionId : void 0) !== e.id || (l.type === "extension-ready" && (s.ready = !0), s.messageHandlers.forEach((d) => d(l)));
40
40
  };
41
- return window.addEventListener("message", a), ie.set(e.id, s), s;
41
+ return window.addEventListener("message", a), ce.set(e.id, s), s;
42
42
  }, We = (e, t) => {
43
- const o = ie.get(e);
43
+ const o = ce.get(e);
44
44
  if (!(o != null && o.iframe.contentWindow)) {
45
45
  console.warn(`Sandbox not found for extension: ${e}`);
46
46
  return;
47
47
  }
48
48
  o.iframe.contentWindow.postMessage(t, "*");
49
- }, fe = (e) => ie.get(e), or = (e) => {
50
- const t = ie.get(e);
51
- t && (t.iframe.remove(), t.messageHandlers.clear(), ie.delete(e));
52
- }, rr = () => ie, nr = [
49
+ }, le = (e) => ce.get(e), or = (e) => {
50
+ const t = ce.get(e);
51
+ t && (t.iframe.remove(), t.messageHandlers.clear(), ce.delete(e));
52
+ }, rr = [
53
53
  "ui-card",
54
54
  "ui-card-content",
55
55
  "ui-card-header",
@@ -73,30 +73,24 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
73
73
  "ui-link",
74
74
  "ui-menu",
75
75
  "ui-menu-item"
76
- ], sr = {
76
+ ], nr = {
77
77
  "context.read": "context:read",
78
78
  "data.query": "data:query",
79
79
  "data.fetch": "data:fetch",
80
80
  "actions.toast": "actions:toast",
81
81
  "actions.invoke": "actions:invoke"
82
- }, ar = (e) => {
82
+ }, sr = (e) => {
83
83
  const t = async (o) => {
84
84
  const r = o.data;
85
85
  if ((r == null ? void 0 : r.type) !== "capability-request") return;
86
- const n = r;
87
- let s = null;
88
- for (const [l, d] of rr())
89
- if (o.source === d.iframe.contentWindow) {
90
- s = l;
91
- break;
92
- }
93
- if (!s) {
86
+ const n = r, s = n.extensionId;
87
+ if (!s || !le(s)) {
94
88
  console.warn("Received capability request from unknown source");
95
89
  return;
96
90
  }
97
- const a = fe(s);
91
+ const a = le(s);
98
92
  if (!a) return;
99
- const i = sr[n.capability];
93
+ const i = nr[n.capability];
100
94
  if (i && !a.manifest.permissions.includes(i)) {
101
95
  const l = {
102
96
  type: "capability-response",
@@ -128,21 +122,21 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
128
122
  default:
129
123
  throw new Error(`Unknown capability: ${n.capability}`);
130
124
  }
131
- const d = {
125
+ const u = {
132
126
  type: "capability-response",
133
127
  id: n.id,
134
128
  success: !0,
135
129
  data: l
136
130
  };
137
- We(s, d);
131
+ We(s, u);
138
132
  } catch (l) {
139
- const d = {
133
+ const u = {
140
134
  type: "capability-response",
141
135
  id: n.id,
142
136
  success: !1,
143
137
  error: l instanceof Error ? l.message : "Unknown error"
144
138
  };
145
- We(s, d);
139
+ We(s, u);
146
140
  }
147
141
  };
148
142
  return window.addEventListener("message", t), () => {
@@ -152,7 +146,7 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
152
146
  extensions: [],
153
147
  components: {},
154
148
  ready: !1
155
- }), ir = ({
149
+ }), ar = ({
156
150
  extensions: e,
157
151
  capabilityHandlers: t,
158
152
  components: o = {},
@@ -163,25 +157,25 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
163
157
  if (!a.current) return;
164
158
  let l = !1;
165
159
  return (async () => {
166
- const u = a.current;
167
- if (u) {
160
+ const d = a.current;
161
+ if (d) {
168
162
  console.log("[ExtensionProvider] Initializing with", e.length, "extensions");
169
163
  for (const f of e)
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));
164
+ f.enabled && !l && (console.log("[ExtensionProvider] Creating sandbox for", f.id, "bundleUrl:", f.bundleUrl), await tr(f, d), console.log("[ExtensionProvider] Sandbox created for", f.id));
165
+ i.current = sr(t), l || (console.log("[ExtensionProvider] Ready"), s(!0));
172
166
  }
173
167
  })(), () => {
174
- var u;
168
+ var d;
175
169
  l = !0;
176
170
  for (const f of e)
177
171
  or(f.id);
178
- (u = i.current) == null || u.call(i);
172
+ (d = i.current) == null || d.call(i);
179
173
  };
180
174
  }, [e, t]), /* @__PURE__ */ z(Ot.Provider, { value: { extensions: e, components: o, ready: n }, children: [
181
175
  /* @__PURE__ */ c("div", { ref: a, style: { display: "none" } }),
182
176
  r
183
177
  ] });
184
- }, lr = () => er(Ot), cr = (e) => nr.includes(e), Ce = ({
178
+ }, ir = () => er(Ot), lr = (e) => rr.includes(e), Ce = ({
185
179
  target: e,
186
180
  context: t,
187
181
  className: o,
@@ -189,7 +183,7 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
189
183
  fallback: n = null,
190
184
  render: s
191
185
  }) => {
192
- const { extensions: a, components: i, ready: l } = lr(), [d, u] = U({}), f = ae(""), m = Mt(
186
+ const { extensions: a, components: i, ready: l } = ir(), [u, d] = U({}), f = ae(""), m = Mt(
193
187
  () => a.filter((h) => h.enabled && h.manifest.targets.includes(e)),
194
188
  // eslint-disable-next-line react-hooks/exhaustive-deps
195
189
  [a.map((h) => h.id).join(","), e]
@@ -201,7 +195,7 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
201
195
  if (!h.tag) return null;
202
196
  if (h.tag === "__fragment")
203
197
  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))
198
+ if (!lr(h.tag))
205
199
  return console.warn(`[ExtensionHost] Unknown UI tag rejected: <${h.tag}>`), null;
206
200
  const C = i[h.tag];
207
201
  if (!C)
@@ -234,28 +228,28 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
234
228
  );
235
229
  if (B(() => {
236
230
  const h = m.map((R) => R.id).join(",");
237
- if (f.current !== h && (f.current = h, u({})), !l || m.length === 0) return;
231
+ if (f.current !== h && (f.current = h, d({})), !l || m.length === 0) return;
238
232
  const y = (R) => {
239
233
  const C = R.data;
240
234
  if (!(!C || typeof C != "object" || !m.some((P) => {
241
- const E = fe(P.id);
235
+ const E = le(P.id);
242
236
  return E && R.source === E.iframe.contentWindow;
243
237
  }))) {
244
238
  if (C.type === "surface-update" && C.surfaceId === e) {
245
239
  const P = m.find((_) => {
246
- const b = fe(_.id);
240
+ const b = le(_.id);
247
241
  return b && R.source === b.iframe.contentWindow;
248
242
  });
249
243
  if (!P) return;
250
244
  const E = g(C.tree, R.source ?? null);
251
- u((_) => ({
245
+ d((_) => ({
252
246
  ..._,
253
247
  [P.id]: E
254
248
  }));
255
249
  }
256
250
  C.type === "surface-ready" && C.surfaceId === e && t && m.forEach((P) => {
257
251
  var _;
258
- const E = fe(P.id);
252
+ const E = le(P.id);
259
253
  (_ = E == null ? void 0 : E.iframe.contentWindow) == null || _.postMessage(
260
254
  { type: "context-update", surfaceId: e, context: t },
261
255
  "*"
@@ -265,7 +259,7 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
265
259
  };
266
260
  return window.addEventListener("message", y), m.forEach((R) => {
267
261
  var A;
268
- const C = fe(R.id);
262
+ const C = le(R.id);
269
263
  (A = C == null ? void 0 : C.iframe.contentWindow) == null || A.postMessage(
270
264
  { type: "surface-render", surfaceId: e, context: t },
271
265
  "*"
@@ -277,7 +271,7 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
277
271
  return null;
278
272
  if (m.length === 0)
279
273
  return n ? /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children: n }) : null;
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) => {
274
+ const k = m.map((h) => ({ id: h.id, children: u[h.id] })).filter((h) => !!h.children), x = k.length > 0 ? k.flatMap((h, y, R) => {
281
275
  const C = s ? s({
282
276
  extensionId: h.id,
283
277
  children: h.children,
@@ -298,7 +292,7 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
298
292
  ];
299
293
  }) : n;
300
294
  return /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children: x });
301
- }, dr = (e) => {
295
+ }, cr = (e) => {
302
296
  try {
303
297
  const { hostname: t } = new URL(e);
304
298
  return t === "localhost" || t === "127.0.0.1" || t.endsWith(".trycloudflare.com") || // hostname.endsWith('.ngrok.io') ||
@@ -317,15 +311,15 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
317
311
  for (const a of s) {
318
312
  const i = a.indexOf(":");
319
313
  if (i === -1) continue;
320
- const l = a.slice(0, i), d = a.slice(i + 1);
321
- l && d && dr(d) && r.push({ extensionId: l, bundleUrl: d });
314
+ const l = a.slice(0, i), u = a.slice(i + 1);
315
+ l && u && cr(u) && r.push({ extensionId: l, bundleUrl: u });
322
316
  }
323
317
  }
324
318
  return r;
325
319
  } catch {
326
320
  return [];
327
321
  }
328
- }, ur = (e, t) => t.length === 0 ? e : e.map((o) => {
322
+ }, dr = (e, t) => t.length === 0 ? e : e.map((o) => {
329
323
  const r = t.find((n) => n.extensionId === o.id);
330
324
  return r ? (console.log(`[Stackable] Dev override active for ${o.id} → ${r.bundleUrl}`), {
331
325
  ...o,
@@ -345,14 +339,14 @@ const Ft = (...e) => e.filter((t, o, r) => !!t && t.trim() !== "" && r.indexOf(t
345
339
  * This source code is licensed under the ISC license.
346
340
  * See the LICENSE file in the root directory of this source tree.
347
341
  */
348
- const fr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
342
+ const ur = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
349
343
  /**
350
344
  * @license lucide-react v0.575.0 - ISC
351
345
  *
352
346
  * This source code is licensed under the ISC license.
353
347
  * See the LICENSE file in the root directory of this source tree.
354
348
  */
355
- const mr = (e) => e.replace(
349
+ const fr = (e) => e.replace(
356
350
  /^([A-Z])|[\s-_]+(\w)/g,
357
351
  (t, o, r) => r ? r.toUpperCase() : o.toLowerCase()
358
352
  );
@@ -363,7 +357,7 @@ const mr = (e) => e.replace(
363
357
  * See the LICENSE file in the root directory of this source tree.
364
358
  */
365
359
  const pt = (e) => {
366
- const t = mr(e);
360
+ const t = fr(e);
367
361
  return t.charAt(0).toUpperCase() + t.slice(1);
368
362
  };
369
363
  /**
@@ -372,7 +366,7 @@ const pt = (e) => {
372
366
  * This source code is licensed under the ISC license.
373
367
  * See the LICENSE file in the root directory of this source tree.
374
368
  */
375
- var pr = {
369
+ var mr = {
376
370
  xmlns: "http://www.w3.org/2000/svg",
377
371
  width: 24,
378
372
  height: 24,
@@ -389,7 +383,7 @@ var pr = {
389
383
  * This source code is licensed under the ISC license.
390
384
  * See the LICENSE file in the root directory of this source tree.
391
385
  */
392
- const hr = (e) => {
386
+ const pr = (e) => {
393
387
  for (const t in e)
394
388
  if (t.startsWith("aria-") || t === "role" || t === "title")
395
389
  return !0;
@@ -401,7 +395,7 @@ const hr = (e) => {
401
395
  * This source code is licensed under the ISC license.
402
396
  * See the LICENSE file in the root directory of this source tree.
403
397
  */
404
- const gr = Lt(
398
+ const hr = Lt(
405
399
  ({
406
400
  color: e = "currentColor",
407
401
  size: t = 24,
@@ -415,17 +409,17 @@ const gr = Lt(
415
409
  "svg",
416
410
  {
417
411
  ref: l,
418
- ...pr,
412
+ ...mr,
419
413
  width: t,
420
414
  height: t,
421
415
  stroke: e,
422
416
  strokeWidth: r ? Number(o) * 24 / Number(t) : o,
423
417
  className: Ft("lucide", n),
424
- ...!s && !hr(i) && { "aria-hidden": "true" },
418
+ ...!s && !pr(i) && { "aria-hidden": "true" },
425
419
  ...i
426
420
  },
427
421
  [
428
- ...a.map(([d, u]) => _e(d, u)),
422
+ ...a.map(([u, d]) => _e(u, d)),
429
423
  ...Array.isArray(s) ? s : [s]
430
424
  ]
431
425
  )
@@ -438,11 +432,11 @@ const gr = Lt(
438
432
  */
439
433
  const L = (e, t) => {
440
434
  const o = Lt(
441
- ({ className: r, ...n }, s) => _e(gr, {
435
+ ({ className: r, ...n }, s) => _e(hr, {
442
436
  ref: s,
443
437
  iconNode: t,
444
438
  className: Ft(
445
- `lucide-${fr(pt(e))}`,
439
+ `lucide-${ur(pt(e))}`,
446
440
  `lucide-${e}`,
447
441
  r
448
442
  ),
@@ -457,7 +451,7 @@ const L = (e, t) => {
457
451
  * This source code is licensed under the ISC license.
458
452
  * See the LICENSE file in the root directory of this source tree.
459
453
  */
460
- const br = [
454
+ const gr = [
461
455
  [
462
456
  "path",
463
457
  {
@@ -466,24 +460,24 @@ const br = [
466
460
  }
467
461
  ],
468
462
  ["path", { d: "m12 15 5 6H7Z", key: "14qnn2" }]
469
- ], vr = L("airplay", br);
463
+ ], br = L("airplay", gr);
470
464
  /**
471
465
  * @license lucide-react v0.575.0 - ISC
472
466
  *
473
467
  * This source code is licensed under the ISC license.
474
468
  * See the LICENSE file in the root directory of this source tree.
475
469
  */
476
- const xr = [
470
+ const vr = [
477
471
  ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
478
472
  ["path", { d: "M19 12H5", key: "x3x0zl" }]
479
- ], wr = L("arrow-left", xr);
473
+ ], xr = L("arrow-left", vr);
480
474
  /**
481
475
  * @license lucide-react v0.575.0 - ISC
482
476
  *
483
477
  * This source code is licensed under the ISC license.
484
478
  * See the LICENSE file in the root directory of this source tree.
485
479
  */
486
- const yr = [
480
+ const wr = [
487
481
  ["path", { d: "M12 7v14", key: "1akyts" }],
488
482
  [
489
483
  "path",
@@ -492,142 +486,142 @@ const yr = [
492
486
  key: "ruj8y"
493
487
  }
494
488
  ]
495
- ], kr = L("book-open", yr);
489
+ ], yr = L("book-open", wr);
496
490
  /**
497
491
  * @license lucide-react v0.575.0 - ISC
498
492
  *
499
493
  * This source code is licensed under the ISC license.
500
494
  * See the LICENSE file in the root directory of this source tree.
501
495
  */
502
- const Sr = [
496
+ const kr = [
503
497
  ["path", { d: "M8 2v4", key: "1cmpym" }],
504
498
  ["path", { d: "M16 2v4", key: "4m81vk" }],
505
499
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
506
500
  ["path", { d: "M3 10h18", key: "8toen8" }]
507
- ], Cr = L("calendar", Sr);
501
+ ], Sr = L("calendar", kr);
508
502
  /**
509
503
  * @license lucide-react v0.575.0 - ISC
510
504
  *
511
505
  * This source code is licensed under the ISC license.
512
506
  * See the LICENSE file in the root directory of this source tree.
513
507
  */
514
- const Er = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Nr = L("chevron-left", Er);
508
+ const Cr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Er = L("chevron-left", Cr);
515
509
  /**
516
510
  * @license lucide-react v0.575.0 - ISC
517
511
  *
518
512
  * This source code is licensed under the ISC license.
519
513
  * See the LICENSE file in the root directory of this source tree.
520
514
  */
521
- const Ar = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Dt = L("chevron-right", Ar);
515
+ const Nr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Dt = L("chevron-right", Nr);
522
516
  /**
523
517
  * @license lucide-react v0.575.0 - ISC
524
518
  *
525
519
  * This source code is licensed under the ISC license.
526
520
  * See the LICENSE file in the root directory of this source tree.
527
521
  */
528
- const Rr = [
522
+ const Ar = [
529
523
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
530
524
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
531
525
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
532
- ], _r = L("circle-alert", Rr);
526
+ ], Rr = L("circle-alert", Ar);
533
527
  /**
534
528
  * @license lucide-react v0.575.0 - ISC
535
529
  *
536
530
  * This source code is licensed under the ISC license.
537
531
  * See the LICENSE file in the root directory of this source tree.
538
532
  */
539
- const Ir = [
533
+ const _r = [
540
534
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
541
535
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
542
- ], Pr = L("circle-check", Ir);
536
+ ], Ir = L("circle-check", _r);
543
537
  /**
544
538
  * @license lucide-react v0.575.0 - ISC
545
539
  *
546
540
  * This source code is licensed under the ISC license.
547
541
  * See the LICENSE file in the root directory of this source tree.
548
542
  */
549
- const zr = [
543
+ const Pr = [
550
544
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
551
545
  ["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
552
546
  ["path", { d: "M12 17h.01", key: "p32p05" }]
553
- ], Tr = L("circle-question-mark", zr);
547
+ ], zr = L("circle-question-mark", Pr);
554
548
  /**
555
549
  * @license lucide-react v0.575.0 - ISC
556
550
  *
557
551
  * This source code is licensed under the ISC license.
558
552
  * See the LICENSE file in the root directory of this source tree.
559
553
  */
560
- const Mr = [
554
+ const Tr = [
561
555
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
562
556
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
563
557
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
564
- ], Lr = L("circle-x", Mr);
558
+ ], Mr = L("circle-x", Tr);
565
559
  /**
566
560
  * @license lucide-react v0.575.0 - ISC
567
561
  *
568
562
  * This source code is licensed under the ISC license.
569
563
  * See the LICENSE file in the root directory of this source tree.
570
564
  */
571
- const Or = [
565
+ const Lr = [
572
566
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
573
567
  ["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
574
- ], $r = L("clock", Or);
568
+ ], Or = L("clock", Lr);
575
569
  /**
576
570
  * @license lucide-react v0.575.0 - ISC
577
571
  *
578
572
  * This source code is licensed under the ISC license.
579
573
  * See the LICENSE file in the root directory of this source tree.
580
574
  */
581
- const Fr = [
575
+ const $r = [
582
576
  ["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
583
577
  ["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
584
- ], Dr = L("credit-card", Fr);
578
+ ], Fr = L("credit-card", $r);
585
579
  /**
586
580
  * @license lucide-react v0.575.0 - ISC
587
581
  *
588
582
  * This source code is licensed under the ISC license.
589
583
  * See the LICENSE file in the root directory of this source tree.
590
584
  */
591
- const Ur = [
585
+ const Dr = [
592
586
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
593
587
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
594
588
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
595
- ], Wr = L("external-link", Ur);
589
+ ], Ur = L("external-link", Dr);
596
590
  /**
597
591
  * @license lucide-react v0.575.0 - ISC
598
592
  *
599
593
  * This source code is licensed under the ISC license.
600
594
  * See the LICENSE file in the root directory of this source tree.
601
595
  */
602
- const Hr = [
596
+ const Wr = [
603
597
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
604
598
  ["path", { d: "M12 16v-4", key: "1dtifu" }],
605
599
  ["path", { d: "M12 8h.01", key: "e9boi3" }]
606
- ], Vr = L("info", Hr);
600
+ ], Hr = L("info", Wr);
607
601
  /**
608
602
  * @license lucide-react v0.575.0 - ISC
609
603
  *
610
604
  * This source code is licensed under the ISC license.
611
605
  * See the LICENSE file in the root directory of this source tree.
612
606
  */
613
- const jr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ut = L("loader-circle", jr);
607
+ const Vr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ut = L("loader-circle", Vr);
614
608
  /**
615
609
  * @license lucide-react v0.575.0 - ISC
616
610
  *
617
611
  * This source code is licensed under the ISC license.
618
612
  * See the LICENSE file in the root directory of this source tree.
619
613
  */
620
- const Br = [
614
+ const jr = [
621
615
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
622
616
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
623
- ], Ye = L("mail", Br);
617
+ ], Ye = L("mail", jr);
624
618
  /**
625
619
  * @license lucide-react v0.575.0 - ISC
626
620
  *
627
621
  * This source code is licensed under the ISC license.
628
622
  * See the LICENSE file in the root directory of this source tree.
629
623
  */
630
- const Gr = [
624
+ const Br = [
631
625
  [
632
626
  "path",
633
627
  {
@@ -636,14 +630,14 @@ const Gr = [
636
630
  }
637
631
  ],
638
632
  ["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
639
- ], qr = L("map-pin", Gr);
633
+ ], Gr = L("map-pin", Br);
640
634
  /**
641
635
  * @license lucide-react v0.575.0 - ISC
642
636
  *
643
637
  * This source code is licensed under the ISC license.
644
638
  * See the LICENSE file in the root directory of this source tree.
645
639
  */
646
- const Yr = [
640
+ const qr = [
647
641
  [
648
642
  "path",
649
643
  {
@@ -651,14 +645,14 @@ const Yr = [
651
645
  key: "1sd12s"
652
646
  }
653
647
  ]
654
- ], Xr = L("message-circle", Yr);
648
+ ], Yr = L("message-circle", qr);
655
649
  /**
656
650
  * @license lucide-react v0.575.0 - ISC
657
651
  *
658
652
  * This source code is licensed under the ISC license.
659
653
  * See the LICENSE file in the root directory of this source tree.
660
654
  */
661
- const Zr = [
655
+ const Xr = [
662
656
  [
663
657
  "path",
664
658
  {
@@ -666,14 +660,14 @@ const Zr = [
666
660
  key: "18887p"
667
661
  }
668
662
  ]
669
- ], Wt = L("message-square", Zr);
663
+ ], Wt = L("message-square", Xr);
670
664
  /**
671
665
  * @license lucide-react v0.575.0 - ISC
672
666
  *
673
667
  * This source code is licensed under the ISC license.
674
668
  * See the LICENSE file in the root directory of this source tree.
675
669
  */
676
- const Kr = [
670
+ const Zr = [
677
671
  [
678
672
  "path",
679
673
  {
@@ -684,14 +678,14 @@ const Kr = [
684
678
  ["path", { d: "M12 22V12", key: "d0xqtd" }],
685
679
  ["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
686
680
  ["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
687
- ], Jr = L("package", Kr);
681
+ ], Kr = L("package", Zr);
688
682
  /**
689
683
  * @license lucide-react v0.575.0 - ISC
690
684
  *
691
685
  * This source code is licensed under the ISC license.
692
686
  * See the LICENSE file in the root directory of this source tree.
693
687
  */
694
- const Qr = [
688
+ const Jr = [
695
689
  [
696
690
  "path",
697
691
  {
@@ -699,24 +693,24 @@ const Qr = [
699
693
  key: "9njp5v"
700
694
  }
701
695
  ]
702
- ], en = L("phone", Qr);
696
+ ], Qr = L("phone", Jr);
703
697
  /**
704
698
  * @license lucide-react v0.575.0 - ISC
705
699
  *
706
700
  * This source code is licensed under the ISC license.
707
701
  * See the LICENSE file in the root directory of this source tree.
708
702
  */
709
- const tn = [
703
+ const en = [
710
704
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
711
705
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
712
- ], on = L("search", tn);
706
+ ], tn = L("search", en);
713
707
  /**
714
708
  * @license lucide-react v0.575.0 - ISC
715
709
  *
716
710
  * This source code is licensed under the ISC license.
717
711
  * See the LICENSE file in the root directory of this source tree.
718
712
  */
719
- const rn = [
713
+ const on = [
720
714
  ["path", { d: "M16 10a4 4 0 0 1-8 0", key: "1ltviw" }],
721
715
  ["path", { d: "M3.103 6.034h17.794", key: "awc11p" }],
722
716
  [
@@ -726,14 +720,14 @@ const rn = [
726
720
  key: "o988cm"
727
721
  }
728
722
  ]
729
- ], nn = L("shopping-bag", rn);
723
+ ], rn = L("shopping-bag", on);
730
724
  /**
731
725
  * @license lucide-react v0.575.0 - ISC
732
726
  *
733
727
  * This source code is licensed under the ISC license.
734
728
  * See the LICENSE file in the root directory of this source tree.
735
729
  */
736
- const sn = [
730
+ const nn = [
737
731
  [
738
732
  "path",
739
733
  {
@@ -744,14 +738,14 @@ const sn = [
744
738
  ["path", { d: "M20 2v4", key: "1rf3ol" }],
745
739
  ["path", { d: "M22 4h-4", key: "gwowj6" }],
746
740
  ["circle", { cx: "4", cy: "20", r: "2", key: "6kqj1y" }]
747
- ], an = L("sparkles", sn);
741
+ ], sn = L("sparkles", nn);
748
742
  /**
749
743
  * @license lucide-react v0.575.0 - ISC
750
744
  *
751
745
  * This source code is licensed under the ISC license.
752
746
  * See the LICENSE file in the root directory of this source tree.
753
747
  */
754
- const ln = [
748
+ const an = [
755
749
  ["path", { d: "M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2", key: "wrbu53" }],
756
750
  ["path", { d: "M15 18H9", key: "1lyqi6" }],
757
751
  [
@@ -763,17 +757,17 @@ const ln = [
763
757
  ],
764
758
  ["circle", { cx: "17", cy: "18", r: "2", key: "332jqn" }],
765
759
  ["circle", { cx: "7", cy: "18", r: "2", key: "19iecd" }]
766
- ], cn = L("truck", ln);
760
+ ], ln = L("truck", an);
767
761
  /**
768
762
  * @license lucide-react v0.575.0 - ISC
769
763
  *
770
764
  * This source code is licensed under the ISC license.
771
765
  * See the LICENSE file in the root directory of this source tree.
772
766
  */
773
- const dn = [
767
+ const cn = [
774
768
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
775
769
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
776
- ], Ht = L("user", dn);
770
+ ], Ht = L("user", cn);
777
771
  function Vt(e) {
778
772
  var t, o, r = "";
779
773
  if (typeof e == "string" || typeof e == "number") r += e;
@@ -787,36 +781,36 @@ function jt() {
787
781
  for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = Vt(e)) && (r && (r += " "), r += t);
788
782
  return r;
789
783
  }
790
- const un = (e, t) => {
784
+ const dn = (e, t) => {
791
785
  const o = new Array(e.length + t.length);
792
786
  for (let r = 0; r < e.length; r++)
793
787
  o[r] = e[r];
794
788
  for (let r = 0; r < t.length; r++)
795
789
  o[e.length + r] = t[r];
796
790
  return o;
797
- }, fn = (e, t) => ({
791
+ }, un = (e, t) => ({
798
792
  classGroupId: e,
799
793
  validator: t
800
794
  }), Bt = (e = /* @__PURE__ */ new Map(), t = null, o) => ({
801
795
  nextPart: e,
802
796
  validators: t,
803
797
  classGroupId: o
804
- }), Ie = "-", ht = [], mn = "arbitrary..", pn = (e) => {
805
- const t = gn(e), {
798
+ }), Ie = "-", ht = [], fn = "arbitrary..", mn = (e) => {
799
+ const t = hn(e), {
806
800
  conflictingClassGroups: o,
807
801
  conflictingClassGroupModifiers: r
808
802
  } = e;
809
803
  return {
810
804
  getClassGroupId: (a) => {
811
805
  if (a.startsWith("[") && a.endsWith("]"))
812
- return hn(a);
806
+ return pn(a);
813
807
  const i = a.split(Ie), l = i[0] === "" && i.length > 1 ? 1 : 0;
814
808
  return Gt(i, l, t);
815
809
  },
816
810
  getConflictingClassGroupIds: (a, i) => {
817
811
  if (i) {
818
- const l = r[a], d = o[a];
819
- return l ? d ? un(d, l) : l : d || ht;
812
+ const l = r[a], u = o[a];
813
+ return l ? u ? dn(u, l) : l : u || ht;
820
814
  }
821
815
  return o[a] || ht;
822
816
  }
@@ -826,28 +820,28 @@ const un = (e, t) => {
826
820
  return o.classGroupId;
827
821
  const n = e[t], s = o.nextPart.get(n);
828
822
  if (s) {
829
- const d = Gt(e, t + 1, s);
830
- if (d) return d;
823
+ const u = Gt(e, t + 1, s);
824
+ if (u) return u;
831
825
  }
832
826
  const a = o.validators;
833
827
  if (a === null)
834
828
  return;
835
829
  const i = t === 0 ? e.join(Ie) : e.slice(t).join(Ie), l = a.length;
836
- for (let d = 0; d < l; d++) {
837
- const u = a[d];
838
- if (u.validator(i))
839
- return u.classGroupId;
830
+ for (let u = 0; u < l; u++) {
831
+ const d = a[u];
832
+ if (d.validator(i))
833
+ return d.classGroupId;
840
834
  }
841
- }, hn = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
835
+ }, pn = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
842
836
  const t = e.slice(1, -1), o = t.indexOf(":"), r = t.slice(0, o);
843
- return r ? mn + r : void 0;
844
- })(), gn = (e) => {
837
+ return r ? fn + r : void 0;
838
+ })(), hn = (e) => {
845
839
  const {
846
840
  theme: t,
847
841
  classGroups: o
848
842
  } = e;
849
- return bn(o, t);
850
- }, bn = (e, t) => {
843
+ return gn(o, t);
844
+ }, gn = (e, t) => {
851
845
  const o = Bt();
852
846
  for (const r in e) {
853
847
  const n = e[r];
@@ -858,28 +852,28 @@ const un = (e, t) => {
858
852
  const n = e.length;
859
853
  for (let s = 0; s < n; s++) {
860
854
  const a = e[s];
861
- vn(a, t, o, r);
855
+ bn(a, t, o, r);
862
856
  }
863
- }, vn = (e, t, o, r) => {
857
+ }, bn = (e, t, o, r) => {
864
858
  if (typeof e == "string") {
865
- xn(e, t, o);
859
+ vn(e, t, o);
866
860
  return;
867
861
  }
868
862
  if (typeof e == "function") {
869
- wn(e, t, o, r);
863
+ xn(e, t, o, r);
870
864
  return;
871
865
  }
872
- yn(e, t, o, r);
873
- }, xn = (e, t, o) => {
866
+ wn(e, t, o, r);
867
+ }, vn = (e, t, o) => {
874
868
  const r = e === "" ? t : qt(t, e);
875
869
  r.classGroupId = o;
876
- }, wn = (e, t, o, r) => {
877
- if (kn(e)) {
870
+ }, xn = (e, t, o, r) => {
871
+ if (yn(e)) {
878
872
  et(e(r), t, o, r);
879
873
  return;
880
874
  }
881
- t.validators === null && (t.validators = []), t.validators.push(fn(o, e));
882
- }, yn = (e, t, o, r) => {
875
+ t.validators === null && (t.validators = []), t.validators.push(un(o, e));
876
+ }, wn = (e, t, o, r) => {
883
877
  const n = Object.entries(e), s = n.length;
884
878
  for (let a = 0; a < s; a++) {
885
879
  const [i, l] = n[a];
@@ -894,7 +888,7 @@ const un = (e, t) => {
894
888
  i || (i = Bt(), o.nextPart.set(a, i)), o = i;
895
889
  }
896
890
  return o;
897
- }, kn = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Sn = (e) => {
891
+ }, yn = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, kn = (e) => {
898
892
  if (e < 1)
899
893
  return {
900
894
  get: () => {
@@ -918,22 +912,22 @@ const un = (e, t) => {
918
912
  s in o ? o[s] = a : n(s, a);
919
913
  }
920
914
  };
921
- }, Xe = "!", gt = ":", Cn = [], bt = (e, t, o, r, n) => ({
915
+ }, Xe = "!", gt = ":", Sn = [], bt = (e, t, o, r, n) => ({
922
916
  modifiers: e,
923
917
  hasImportantModifier: t,
924
918
  baseClassName: o,
925
919
  maybePostfixModifierPosition: r,
926
920
  isExternal: n
927
- }), En = (e) => {
921
+ }), Cn = (e) => {
928
922
  const {
929
923
  prefix: t,
930
924
  experimentalParseClassName: o
931
925
  } = e;
932
926
  let r = (n) => {
933
927
  const s = [];
934
- let a = 0, i = 0, l = 0, d;
935
- const u = n.length;
936
- for (let x = 0; x < u; x++) {
928
+ let a = 0, i = 0, l = 0, u;
929
+ const d = n.length;
930
+ for (let x = 0; x < d; x++) {
937
931
  const h = n[x];
938
932
  if (a === 0 && i === 0) {
939
933
  if (h === gt) {
@@ -941,7 +935,7 @@ const un = (e, t) => {
941
935
  continue;
942
936
  }
943
937
  if (h === "/") {
944
- d = x;
938
+ u = x;
945
939
  continue;
946
940
  }
947
941
  }
@@ -956,12 +950,12 @@ const un = (e, t) => {
956
950
  */
957
951
  f.startsWith(Xe) && (m = f.slice(1), g = !0)
958
952
  );
959
- const k = d && d > l ? d - l : void 0;
953
+ const k = u && u > l ? u - l : void 0;
960
954
  return bt(s, g, m, k);
961
955
  };
962
956
  if (t) {
963
957
  const n = t + gt, s = r;
964
- r = (a) => a.startsWith(n) ? s(a.slice(n.length)) : bt(Cn, !1, a, void 0, !0);
958
+ r = (a) => a.startsWith(n) ? s(a.slice(n.length)) : bt(Sn, !1, a, void 0, !0);
965
959
  }
966
960
  if (o) {
967
961
  const n = r;
@@ -971,7 +965,7 @@ const un = (e, t) => {
971
965
  });
972
966
  }
973
967
  return r;
974
- }, Nn = (e) => {
968
+ }, En = (e) => {
975
969
  const t = /* @__PURE__ */ new Map();
976
970
  return e.orderSensitiveModifiers.forEach((o, r) => {
977
971
  t.set(o, 1e6 + r);
@@ -984,39 +978,39 @@ const un = (e, t) => {
984
978
  }
985
979
  return n.length > 0 && (n.sort(), r.push(...n)), r;
986
980
  };
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) => {
981
+ }, Nn = (e) => ({
982
+ cache: kn(e.cacheSize),
983
+ parseClassName: Cn(e),
984
+ sortModifiers: En(e),
985
+ ...mn(e)
986
+ }), An = /\s+/, Rn = (e, t) => {
993
987
  const {
994
988
  parseClassName: o,
995
989
  getClassGroupId: r,
996
990
  getConflictingClassGroupIds: n,
997
991
  sortModifiers: s
998
- } = t, a = [], i = e.trim().split(Rn);
992
+ } = t, a = [], i = e.trim().split(An);
999
993
  let l = "";
1000
- for (let d = i.length - 1; d >= 0; d -= 1) {
1001
- const u = i[d], {
994
+ for (let u = i.length - 1; u >= 0; u -= 1) {
995
+ const d = i[u], {
1002
996
  isExternal: f,
1003
997
  modifiers: m,
1004
998
  hasImportantModifier: g,
1005
999
  baseClassName: k,
1006
1000
  maybePostfixModifierPosition: x
1007
- } = o(u);
1001
+ } = o(d);
1008
1002
  if (f) {
1009
- l = u + (l.length > 0 ? " " + l : l);
1003
+ l = d + (l.length > 0 ? " " + l : l);
1010
1004
  continue;
1011
1005
  }
1012
1006
  let h = !!x, y = r(h ? k.substring(0, x) : k);
1013
1007
  if (!y) {
1014
1008
  if (!h) {
1015
- l = u + (l.length > 0 ? " " + l : l);
1009
+ l = d + (l.length > 0 ? " " + l : l);
1016
1010
  continue;
1017
1011
  }
1018
1012
  if (y = r(k), !y) {
1019
- l = u + (l.length > 0 ? " " + l : l);
1013
+ l = d + (l.length > 0 ? " " + l : l);
1020
1014
  continue;
1021
1015
  }
1022
1016
  h = !1;
@@ -1030,10 +1024,10 @@ const un = (e, t) => {
1030
1024
  const _ = P[E];
1031
1025
  a.push(C + _);
1032
1026
  }
1033
- l = u + (l.length > 0 ? " " + l : l);
1027
+ l = d + (l.length > 0 ? " " + l : l);
1034
1028
  }
1035
1029
  return l;
1036
- }, In = (...e) => {
1030
+ }, _n = (...e) => {
1037
1031
  let t = 0, o, r, n = "";
1038
1032
  for (; t < e.length; )
1039
1033
  (o = e[t++]) && (r = Yt(o)) && (n && (n += " "), n += r);
@@ -1045,35 +1039,35 @@ const un = (e, t) => {
1045
1039
  for (let r = 0; r < e.length; r++)
1046
1040
  e[r] && (t = Yt(e[r])) && (o && (o += " "), o += t);
1047
1041
  return o;
1048
- }, Pn = (e, ...t) => {
1042
+ }, In = (e, ...t) => {
1049
1043
  let o, r, n, s;
1050
1044
  const a = (l) => {
1051
- const d = t.reduce((u, f) => f(u), e());
1052
- return o = An(d), r = o.cache.get, n = o.cache.set, s = i, i(l);
1045
+ const u = t.reduce((d, f) => f(d), e());
1046
+ return o = Nn(u), r = o.cache.get, n = o.cache.set, s = i, i(l);
1053
1047
  }, i = (l) => {
1054
- const d = r(l);
1055
- if (d)
1056
- return d;
1057
- const u = _n(l, o);
1058
- return n(l, u), u;
1048
+ const u = r(l);
1049
+ if (u)
1050
+ return u;
1051
+ const d = Rn(l, o);
1052
+ return n(l, d), d;
1059
1053
  };
1060
- return s = a, (...l) => s(In(...l));
1061
- }, zn = [], F = (e) => {
1062
- const t = (o) => o[e] || zn;
1054
+ return s = a, (...l) => s(_n(...l));
1055
+ }, Pn = [], F = (e) => {
1056
+ const t = (o) => o[e] || Pn;
1063
1057
  return t.isThemeGetter = !0, t;
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) => (
1058
+ }, Xt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Zt = /^\((?:(\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), Kt = () => !0, Fn = (e) => (
1065
1059
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
1066
1060
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1067
1061
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
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) => {
1062
+ Mn.test(e) && !Ln.test(e)
1063
+ ), tt = () => !1, Dn = (e) => On.test(e), Un = (e) => $n.test(e), Wn = (e) => !v(e) && !w(e), Hn = (e) => re(e, eo, tt), v = (e) => Xt.test(e), se = (e) => re(e, to, Fn), vt = (e) => re(e, Zn, I), Vn = (e) => re(e, ro, Kt), jn = (e) => re(e, oo, tt), xt = (e) => re(e, Jt, tt), Bn = (e) => re(e, Qt, Un), Ee = (e) => re(e, no, Dn), w = (e) => Zt.test(e), fe = (e) => ie(e, to), Gn = (e) => ie(e, oo), wt = (e) => ie(e, Jt), qn = (e) => ie(e, eo), Yn = (e) => ie(e, Qt), Ne = (e) => ie(e, no, !0), Xn = (e) => ie(e, ro, !0), re = (e, t, o) => {
1070
1064
  const r = Xt.exec(e);
1071
1065
  return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
1072
- }, le = (e, t, o = !1) => {
1066
+ }, ie = (e, t, o = !1) => {
1073
1067
  const r = Zt.exec(e);
1074
1068
  return r ? r[1] ? t(r[1]) : o : !1;
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 = () => [
1069
+ }, 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", Zn = (e) => e === "number", oo = (e) => e === "family-name", ro = (e) => e === "number" || e === "weight", no = (e) => e === "shadow", Kn = () => {
1070
+ 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"), u = F("radius"), d = 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 = () => [
1077
1071
  "center",
1078
1072
  "top",
1079
1073
  "bottom",
@@ -1097,17 +1091,17 @@ const un = (e, t) => {
1097
1091
  position: [w, v]
1098
1092
  }], dt = () => ["no-repeat", {
1099
1093
  repeat: ["", "x", "y", "space", "round"]
1100
- }], ut = () => ["auto", "cover", "contain", Yn, Vn, {
1094
+ }], ut = () => ["auto", "cover", "contain", qn, Hn, {
1101
1095
  size: [w, v]
1102
- }], De = () => [He, ue, se], H = () => [
1096
+ }], De = () => [He, fe, se], H = () => [
1103
1097
  // Deprecated since Tailwind CSS v4.0.0
1104
1098
  "",
1105
1099
  "none",
1106
1100
  "full",
1107
- d,
1101
+ u,
1108
1102
  w,
1109
1103
  v
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 = () => [
1104
+ ], V = () => ["", I, fe, 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 = () => [
1111
1105
  // Deprecated since Tailwind CSS v4.0.0
1112
1106
  "",
1113
1107
  "none",
@@ -1126,7 +1120,7 @@ const un = (e, t) => {
1126
1120
  container: [K],
1127
1121
  "drop-shadow": [K],
1128
1122
  ease: ["in", "out", "in-out"],
1129
- font: [Hn],
1123
+ font: [Wn],
1130
1124
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
1131
1125
  "inset-shadow": [K],
1132
1126
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
@@ -1903,7 +1897,7 @@ const un = (e, t) => {
1903
1897
  * @see https://tailwindcss.com/docs/font-size
1904
1898
  */
1905
1899
  "font-size": [{
1906
- text: ["base", o, ue, se]
1900
+ text: ["base", o, fe, se]
1907
1901
  }],
1908
1902
  /**
1909
1903
  * Font Smoothing
@@ -1920,7 +1914,7 @@ const un = (e, t) => {
1920
1914
  * @see https://tailwindcss.com/docs/font-weight
1921
1915
  */
1922
1916
  "font-weight": [{
1923
- font: [r, Zn, jn]
1917
+ font: [r, Xn, Vn]
1924
1918
  }],
1925
1919
  /**
1926
1920
  * Font Stretch
@@ -1934,7 +1928,7 @@ const un = (e, t) => {
1934
1928
  * @see https://tailwindcss.com/docs/font-family
1935
1929
  */
1936
1930
  "font-family": [{
1937
- font: [qn, Bn, t]
1931
+ font: [Gn, jn, t]
1938
1932
  }],
1939
1933
  /**
1940
1934
  * Font Feature Settings
@@ -2196,7 +2190,7 @@ const un = (e, t) => {
2196
2190
  }, te, w, v],
2197
2191
  radial: ["", w, v],
2198
2192
  conic: [te, w, v]
2199
- }, Xn, Gn]
2193
+ }, Yn, Bn]
2200
2194
  }],
2201
2195
  /**
2202
2196
  * Background Color
@@ -2573,7 +2567,7 @@ const un = (e, t) => {
2573
2567
  * @see https://tailwindcss.com/docs/outline-width
2574
2568
  */
2575
2569
  "outline-w": [{
2576
- outline: ["", I, ue, se]
2570
+ outline: ["", I, fe, se]
2577
2571
  }],
2578
2572
  /**
2579
2573
  * Outline Color
@@ -2594,7 +2588,7 @@ const un = (e, t) => {
2594
2588
  // Deprecated since Tailwind CSS v4.0.0
2595
2589
  "",
2596
2590
  "none",
2597
- u,
2591
+ d,
2598
2592
  Ne,
2599
2593
  Ee
2600
2594
  ]
@@ -3626,7 +3620,7 @@ const un = (e, t) => {
3626
3620
  * @see https://tailwindcss.com/docs/stroke-width
3627
3621
  */
3628
3622
  "stroke-w": [{
3629
- stroke: [I, ue, se, vt]
3623
+ stroke: [I, fe, se, vt]
3630
3624
  }],
3631
3625
  /**
3632
3626
  * Stroke
@@ -3701,7 +3695,7 @@ const un = (e, t) => {
3701
3695
  },
3702
3696
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3703
3697
  };
3704
- }, Qn = /* @__PURE__ */ Pn(Jn), T = (...e) => Qn(jt(e));
3698
+ }, Jn = /* @__PURE__ */ In(Kn), T = (...e) => Jn(jt(e));
3705
3699
  function me({ className: e, ...t }) {
3706
3700
  return /* @__PURE__ */ c(
3707
3701
  "div",
@@ -3715,7 +3709,7 @@ function me({ className: e, ...t }) {
3715
3709
  }
3716
3710
  );
3717
3711
  }
3718
- function es({ className: e, ...t }) {
3712
+ function Qn({ className: e, ...t }) {
3719
3713
  return /* @__PURE__ */ c(
3720
3714
  "div",
3721
3715
  {
@@ -3741,16 +3735,16 @@ function pe({ className: e, ...t }) {
3741
3735
  const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt = jt, ot = (e, t) => (o) => {
3742
3736
  var r;
3743
3737
  if ((t == null ? void 0 : t.variants) == null) return kt(e, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
3744
- const { variants: n, defaultVariants: s } = t, a = Object.keys(n).map((d) => {
3745
- const u = o == null ? void 0 : o[d], f = s == null ? void 0 : s[d];
3746
- if (u === null) return null;
3747
- const m = yt(u) || yt(f);
3748
- return n[d][m];
3749
- }), i = o && Object.entries(o).reduce((d, u) => {
3750
- let [f, m] = u;
3751
- return m === void 0 || (d[f] = m), d;
3752
- }, {}), l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((d, u) => {
3753
- let { class: f, className: m, ...g } = u;
3738
+ const { variants: n, defaultVariants: s } = t, a = Object.keys(n).map((u) => {
3739
+ const d = o == null ? void 0 : o[u], f = s == null ? void 0 : s[u];
3740
+ if (d === null) return null;
3741
+ const m = yt(d) || yt(f);
3742
+ return n[u][m];
3743
+ }), i = o && Object.entries(o).reduce((u, d) => {
3744
+ let [f, m] = d;
3745
+ return m === void 0 || (u[f] = m), u;
3746
+ }, {}), l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((u, d) => {
3747
+ let { class: f, className: m, ...g } = d;
3754
3748
  return Object.entries(g).every((k) => {
3755
3749
  let [x, h] = k;
3756
3750
  return Array.isArray(h) ? h.includes({
@@ -3761,10 +3755,10 @@ const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt = jt, o
3761
3755
  ...i
3762
3756
  }[x] === h;
3763
3757
  }) ? [
3764
- ...d,
3758
+ ...u,
3765
3759
  f,
3766
3760
  m
3767
- ] : d;
3761
+ ] : u;
3768
3762
  }, []);
3769
3763
  return kt(e, a, l, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
3770
3764
  };
@@ -3794,11 +3788,11 @@ function Y(...e) {
3794
3788
  }
3795
3789
  // @__NO_SIDE_EFFECTS__
3796
3790
  function Pe(e) {
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);
3791
+ const t = /* @__PURE__ */ es(e), o = p.forwardRef((r, n) => {
3792
+ const { children: s, ...a } = r, i = p.Children.toArray(s), l = i.find(os);
3799
3793
  if (l) {
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);
3801
- return /* @__PURE__ */ c(t, { ...a, ref: n, children: p.isValidElement(d) ? p.cloneElement(d, void 0, u) : null });
3794
+ const u = l.props.children, d = i.map((f) => f === l ? p.Children.count(u) > 1 ? p.Children.only(null) : p.isValidElement(u) ? u.props.children : null : f);
3795
+ return /* @__PURE__ */ c(t, { ...a, ref: n, children: p.isValidElement(u) ? p.cloneElement(u, void 0, d) : null });
3802
3796
  }
3803
3797
  return /* @__PURE__ */ c(t, { ...a, ref: n, children: s });
3804
3798
  });
@@ -3806,22 +3800,22 @@ function Pe(e) {
3806
3800
  }
3807
3801
  var ao = /* @__PURE__ */ Pe("Slot");
3808
3802
  // @__NO_SIDE_EFFECTS__
3809
- function ts(e) {
3803
+ function es(e) {
3810
3804
  const t = p.forwardRef((o, r) => {
3811
3805
  const { children: n, ...s } = o;
3812
3806
  if (p.isValidElement(n)) {
3813
- const a = ss(n), i = ns(s, n.props);
3807
+ const a = ns(n), i = rs(s, n.props);
3814
3808
  return n.type !== p.Fragment && (i.ref = r ? so(r, a) : a), p.cloneElement(n, i);
3815
3809
  }
3816
3810
  return p.Children.count(n) > 1 ? p.Children.only(null) : null;
3817
3811
  });
3818
3812
  return t.displayName = `${e}.SlotClone`, t;
3819
3813
  }
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;
3814
+ var ts = Symbol("radix.slottable");
3815
+ function os(e) {
3816
+ return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ts;
3823
3817
  }
3824
- function ns(e, t) {
3818
+ function rs(e, t) {
3825
3819
  const o = { ...t };
3826
3820
  for (const r in t) {
3827
3821
  const n = e[r], s = t[r];
@@ -3832,12 +3826,12 @@ function ns(e, t) {
3832
3826
  }
3833
3827
  return { ...e, ...o };
3834
3828
  }
3835
- function ss(e) {
3829
+ function ns(e) {
3836
3830
  var r, n;
3837
3831
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
3838
3832
  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);
3839
3833
  }
3840
- var as = [
3834
+ var ss = [
3841
3835
  "a",
3842
3836
  "button",
3843
3837
  "div",
@@ -3855,7 +3849,7 @@ var as = [
3855
3849
  "span",
3856
3850
  "svg",
3857
3851
  "ul"
3858
- ], j = as.reduce((e, t) => {
3852
+ ], j = ss.reduce((e, t) => {
3859
3853
  const o = /* @__PURE__ */ Pe(`Primitive.${t}`), r = p.forwardRef((n, s) => {
3860
3854
  const { asChild: a, ...i } = n, l = a ? o : t;
3861
3855
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c(l, { ...i, ref: s });
@@ -3867,20 +3861,20 @@ function ge(e, t = []) {
3867
3861
  function r(s, a) {
3868
3862
  const i = p.createContext(a), l = o.length;
3869
3863
  o = [...o, a];
3870
- const d = (f) => {
3864
+ const u = (f) => {
3871
3865
  var y;
3872
3866
  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
3867
  return /* @__PURE__ */ c(x.Provider, { value: h, children: g });
3874
3868
  };
3875
- d.displayName = s + "Provider";
3876
- function u(f, m) {
3869
+ u.displayName = s + "Provider";
3870
+ function d(f, m) {
3877
3871
  var x;
3878
3872
  const g = ((x = m == null ? void 0 : m[e]) == null ? void 0 : x[l]) || i, k = p.useContext(g);
3879
3873
  if (k) return k;
3880
3874
  if (a !== void 0) return a;
3881
3875
  throw new Error(`\`${f}\` must be used within \`${s}\``);
3882
3876
  }
3883
- return [d, u];
3877
+ return [u, d];
3884
3878
  }
3885
3879
  const n = () => {
3886
3880
  const s = o.map((a) => p.createContext(a));
@@ -3892,9 +3886,9 @@ function ge(e, t = []) {
3892
3886
  );
3893
3887
  };
3894
3888
  };
3895
- return n.scopeName = e, [r, is(n, ...t)];
3889
+ return n.scopeName = e, [r, as(n, ...t)];
3896
3890
  }
3897
- function is(...e) {
3891
+ function as(...e) {
3898
3892
  const t = e[0];
3899
3893
  if (e.length === 1) return t;
3900
3894
  const o = () => {
@@ -3903,8 +3897,8 @@ function is(...e) {
3903
3897
  scopeName: n.scopeName
3904
3898
  }));
3905
3899
  return function(s) {
3906
- const a = r.reduce((i, { useScope: l, scopeName: d }) => {
3907
- const f = l(s)[`__scope${d}`];
3900
+ const a = r.reduce((i, { useScope: l, scopeName: u }) => {
3901
+ const f = l(s)[`__scope${u}`];
3908
3902
  return { ...i, ...f };
3909
3903
  }, {});
3910
3904
  return p.useMemo(() => ({ [`__scope${t.scopeName}`]: a }), [a]);
@@ -3912,7 +3906,7 @@ function is(...e) {
3912
3906
  };
3913
3907
  return o.scopeName = t.scopeName, o;
3914
3908
  }
3915
- function ls(e) {
3909
+ function is(e) {
3916
3910
  const t = e + "CollectionProvider", [o, r] = ge(t), [n, s] = o(
3917
3911
  t,
3918
3912
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
@@ -3921,20 +3915,20 @@ function ls(e) {
3921
3915
  return /* @__PURE__ */ c(n, { scope: h, itemMap: C, collectionRef: R, children: y });
3922
3916
  };
3923
3917
  a.displayName = t;
3924
- const i = e + "CollectionSlot", l = /* @__PURE__ */ Pe(i), d = G.forwardRef(
3918
+ const i = e + "CollectionSlot", l = /* @__PURE__ */ Pe(i), u = G.forwardRef(
3925
3919
  (x, h) => {
3926
3920
  const { scope: y, children: R } = x, C = s(i, y), A = Y(h, C.collectionRef);
3927
3921
  return /* @__PURE__ */ c(l, { ref: A, children: R });
3928
3922
  }
3929
3923
  );
3930
- d.displayName = i;
3931
- const u = e + "CollectionItemSlot", f = "data-radix-collection-item", m = /* @__PURE__ */ Pe(u), g = G.forwardRef(
3924
+ u.displayName = i;
3925
+ const d = e + "CollectionItemSlot", f = "data-radix-collection-item", m = /* @__PURE__ */ Pe(d), g = G.forwardRef(
3932
3926
  (x, h) => {
3933
- const { scope: y, children: R, ...C } = x, A = G.useRef(null), P = Y(h, A), E = s(u, y);
3927
+ const { scope: y, children: R, ...C } = x, A = G.useRef(null), P = Y(h, A), E = s(d, y);
3934
3928
  return G.useEffect(() => (E.itemMap.set(A, { ref: A, ...C }), () => void E.itemMap.delete(A))), /* @__PURE__ */ c(m, { [f]: "", ref: P, children: R });
3935
3929
  }
3936
3930
  );
3937
- g.displayName = u;
3931
+ g.displayName = d;
3938
3932
  function k(x) {
3939
3933
  const h = s(e + "CollectionConsumer", x);
3940
3934
  return G.useCallback(() => {
@@ -3947,7 +3941,7 @@ function ls(e) {
3947
3941
  }, [h.collectionRef, h.itemMap]);
3948
3942
  }
3949
3943
  return [
3950
- { Provider: a, Slot: d, ItemSlot: g },
3944
+ { Provider: a, Slot: u, ItemSlot: g },
3951
3945
  k,
3952
3946
  r
3953
3947
  ];
@@ -3959,7 +3953,7 @@ function W(e, t, { checkForDefaultPrevented: o = !0 } = {}) {
3959
3953
  };
3960
3954
  }
3961
3955
  var oe = globalThis != null && globalThis.document ? p.useLayoutEffect : () => {
3962
- }, cs = p[" useInsertionEffect ".trim().toString()] || oe;
3956
+ }, ls = p[" useInsertionEffect ".trim().toString()] || oe;
3963
3957
  function io({
3964
3958
  prop: e,
3965
3959
  defaultProp: t,
@@ -3967,57 +3961,57 @@ function io({
3967
3961
  },
3968
3962
  caller: r
3969
3963
  }) {
3970
- const [n, s, a] = ds({
3964
+ const [n, s, a] = cs({
3971
3965
  defaultProp: t,
3972
3966
  onChange: o
3973
3967
  }), i = e !== void 0, l = i ? e : n;
3974
3968
  {
3975
- const u = p.useRef(e !== void 0);
3969
+ const d = p.useRef(e !== void 0);
3976
3970
  p.useEffect(() => {
3977
- const f = u.current;
3971
+ const f = d.current;
3978
3972
  f !== i && console.warn(
3979
3973
  `${r} is changing from ${f ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
3980
- ), u.current = i;
3974
+ ), d.current = i;
3981
3975
  }, [i, r]);
3982
3976
  }
3983
- const d = p.useCallback(
3984
- (u) => {
3977
+ const u = p.useCallback(
3978
+ (d) => {
3985
3979
  var f;
3986
3980
  if (i) {
3987
- const m = us(u) ? u(e) : u;
3981
+ const m = ds(d) ? d(e) : d;
3988
3982
  m !== e && ((f = a.current) == null || f.call(a, m));
3989
3983
  } else
3990
- s(u);
3984
+ s(d);
3991
3985
  },
3992
3986
  [i, e, s, a]
3993
3987
  );
3994
- return [l, d];
3988
+ return [l, u];
3995
3989
  }
3996
- function ds({
3990
+ function cs({
3997
3991
  defaultProp: e,
3998
3992
  onChange: t
3999
3993
  }) {
4000
3994
  const [o, r] = p.useState(e), n = p.useRef(o), s = p.useRef(t);
4001
- return cs(() => {
3995
+ return ls(() => {
4002
3996
  s.current = t;
4003
3997
  }, [t]), p.useEffect(() => {
4004
3998
  var a;
4005
3999
  n.current !== o && ((a = s.current) == null || a.call(s, o), n.current = o);
4006
4000
  }, [o, n]), [o, r, s];
4007
4001
  }
4008
- function us(e) {
4002
+ function ds(e) {
4009
4003
  return typeof e == "function";
4010
4004
  }
4011
- function fs(e, t) {
4005
+ function us(e, t) {
4012
4006
  return p.useReducer((o, r) => t[o][r] ?? o, e);
4013
4007
  }
4014
- var de = (e) => {
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));
4008
+ var ue = (e) => {
4009
+ 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));
4016
4010
  return typeof o == "function" || r.isPresent ? p.cloneElement(n, { ref: s }) : null;
4017
4011
  };
4018
- de.displayName = "Presence";
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, {
4012
+ ue.displayName = "Presence";
4013
+ function fs(e) {
4014
+ 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, {
4021
4015
  mounted: {
4022
4016
  UNMOUNT: "unmounted",
4023
4017
  ANIMATION_OUT: "unmountSuspended"
@@ -4031,22 +4025,22 @@ function ms(e) {
4031
4025
  }
4032
4026
  });
4033
4027
  return p.useEffect(() => {
4034
- const d = Ae(r.current);
4035
- s.current = i === "mounted" ? d : "none";
4028
+ const u = Ae(r.current);
4029
+ s.current = i === "mounted" ? u : "none";
4036
4030
  }, [i]), oe(() => {
4037
- const d = r.current, u = n.current;
4038
- if (u !== 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;
4031
+ const u = r.current, d = n.current;
4032
+ if (d !== e) {
4033
+ const m = s.current, g = Ae(u);
4034
+ e ? l("MOUNT") : g === "none" || (u == null ? void 0 : u.display) === "none" ? l("UNMOUNT") : l(d && m !== g ? "ANIMATION_OUT" : "UNMOUNT"), n.current = e;
4041
4035
  }
4042
4036
  }, [e, l]), oe(() => {
4043
4037
  if (t) {
4044
- let d;
4045
- const u = t.ownerDocument.defaultView ?? window, f = (g) => {
4038
+ let u;
4039
+ const d = t.ownerDocument.defaultView ?? window, f = (g) => {
4046
4040
  const x = Ae(r.current).includes(CSS.escape(g.animationName));
4047
4041
  if (g.target === t && x && (l("ANIMATION_END"), !n.current)) {
4048
4042
  const h = t.style.animationFillMode;
4049
- t.style.animationFillMode = "forwards", d = u.setTimeout(() => {
4043
+ t.style.animationFillMode = "forwards", u = d.setTimeout(() => {
4050
4044
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = h);
4051
4045
  });
4052
4046
  }
@@ -4054,36 +4048,36 @@ function ms(e) {
4054
4048
  g.target === t && (s.current = Ae(r.current));
4055
4049
  };
4056
4050
  return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
4057
- u.clearTimeout(d), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
4051
+ d.clearTimeout(u), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
4058
4052
  };
4059
4053
  } else
4060
4054
  l("ANIMATION_END");
4061
4055
  }, [t, l]), {
4062
4056
  isPresent: ["mounted", "unmountSuspended"].includes(i),
4063
- ref: p.useCallback((d) => {
4064
- r.current = d ? getComputedStyle(d) : null, o(d);
4057
+ ref: p.useCallback((u) => {
4058
+ r.current = u ? getComputedStyle(u) : null, o(u);
4065
4059
  }, [])
4066
4060
  };
4067
4061
  }
4068
4062
  function Ae(e) {
4069
4063
  return (e == null ? void 0 : e.animationName) || "none";
4070
4064
  }
4071
- function ps(e) {
4065
+ function ms(e) {
4072
4066
  var r, n;
4073
4067
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
4074
4068
  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);
4075
4069
  }
4076
- var hs = p[" useId ".trim().toString()] || (() => {
4077
- }), gs = 0;
4070
+ var ps = p[" useId ".trim().toString()] || (() => {
4071
+ }), hs = 0;
4078
4072
  function lo(e) {
4079
- const [t, o] = p.useState(hs());
4073
+ const [t, o] = p.useState(ps());
4080
4074
  return oe(() => {
4081
- o((r) => r ?? String(gs++));
4075
+ o((r) => r ?? String(hs++));
4082
4076
  }, [e]), e || (t ? `radix-${t}` : "");
4083
4077
  }
4084
- var bs = p.createContext(void 0);
4078
+ var gs = p.createContext(void 0);
4085
4079
  function rt(e) {
4086
- const t = p.useContext(bs);
4080
+ const t = p.useContext(gs);
4087
4081
  return e || t || "ltr";
4088
4082
  }
4089
4083
  function J(e) {
@@ -4106,7 +4100,7 @@ var Ve = { exports: {} }, je = {};
4106
4100
  * LICENSE file in the root directory of this source tree.
4107
4101
  */
4108
4102
  var Ct;
4109
- function vs() {
4103
+ function bs() {
4110
4104
  if (Ct) return je;
4111
4105
  Ct = 1;
4112
4106
  var e = G;
@@ -4140,33 +4134,33 @@ function vs() {
4140
4134
  return !0;
4141
4135
  }
4142
4136
  }
4143
- function d(f, m) {
4137
+ function u(f, m) {
4144
4138
  return m();
4145
4139
  }
4146
- var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : i;
4147
- return je.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u, je;
4140
+ var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : i;
4141
+ return je.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, je;
4148
4142
  }
4149
4143
  var Et;
4150
- function xs() {
4151
- return Et || (Et = 1, Ve.exports = vs()), Ve.exports;
4144
+ function vs() {
4145
+ return Et || (Et = 1, Ve.exports = bs()), Ve.exports;
4152
4146
  }
4153
- var ws = xs();
4154
- function ys() {
4155
- return ws.useSyncExternalStore(
4156
- ks,
4147
+ var xs = vs();
4148
+ function ws() {
4149
+ return xs.useSyncExternalStore(
4150
+ ys,
4157
4151
  () => !0,
4158
4152
  () => !1
4159
4153
  );
4160
4154
  }
4161
- function ks() {
4155
+ function ys() {
4162
4156
  return () => {
4163
4157
  };
4164
4158
  }
4165
- var nt = "Avatar", [Ss] = ge(nt), [Cs, co] = Ss(nt), uo = p.forwardRef(
4159
+ var nt = "Avatar", [ks] = ge(nt), [Ss, co] = ks(nt), uo = p.forwardRef(
4166
4160
  (e, t) => {
4167
4161
  const { __scopeAvatar: o, ...r } = e, [n, s] = p.useState("idle");
4168
4162
  return /* @__PURE__ */ c(
4169
- Cs,
4163
+ Ss,
4170
4164
  {
4171
4165
  scope: o,
4172
4166
  imageLoadingStatus: n,
@@ -4180,8 +4174,8 @@ uo.displayName = nt;
4180
4174
  var fo = "AvatarImage", mo = p.forwardRef(
4181
4175
  (e, t) => {
4182
4176
  const { __scopeAvatar: o, src: r, onLoadingStatusChange: n = () => {
4183
- }, ...s } = e, a = co(fo, o), i = Es(r, s), l = J((d) => {
4184
- n(d), a.onImageLoadingStatusChange(d);
4177
+ }, ...s } = e, a = co(fo, o), i = Cs(r, s), l = J((u) => {
4178
+ n(u), a.onImageLoadingStatusChange(u);
4185
4179
  });
4186
4180
  return oe(() => {
4187
4181
  i !== "idle" && l(i);
@@ -4204,8 +4198,8 @@ ho.displayName = po;
4204
4198
  function Nt(e, t) {
4205
4199
  return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
4206
4200
  }
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(
4201
+ function Cs(e, { referrerPolicy: t, crossOrigin: o }) {
4202
+ const r = ws(), n = p.useRef(null), s = r ? (n.current || (n.current = new window.Image()), n.current) : null, [a, i] = p.useState(
4209
4203
  () => Nt(s, e)
4210
4204
  );
4211
4205
  return oe(() => {
@@ -4215,20 +4209,20 @@ function Es(e, { referrerPolicy: t, crossOrigin: o }) {
4215
4209
  i(f);
4216
4210
  };
4217
4211
  if (!s) return;
4218
- const d = l("loaded"), u = l("error");
4219
- return s.addEventListener("load", d), s.addEventListener("error", u), t && (s.referrerPolicy = t), typeof o == "string" && (s.crossOrigin = o), () => {
4220
- s.removeEventListener("load", d), s.removeEventListener("error", u);
4212
+ const u = l("loaded"), d = l("error");
4213
+ return s.addEventListener("load", u), s.addEventListener("error", d), t && (s.referrerPolicy = t), typeof o == "string" && (s.crossOrigin = o), () => {
4214
+ s.removeEventListener("load", u), s.removeEventListener("error", d);
4221
4215
  };
4222
4216
  }, [s, o, t]), a;
4223
4217
  }
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(
4218
+ var Es = uo, Ns = mo, As = ho, Be = "rovingFocusGroup.onEntryFocus", Rs = { bubbles: !1, cancelable: !0 }, be = "RovingFocusGroup", [Ze, go, _s] = is(be), [Is, bo] = ge(
4225
4219
  be,
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 }) }) })
4220
+ [_s]
4221
+ ), [Ps, zs] = Is(be), vo = p.forwardRef(
4222
+ (e, t) => /* @__PURE__ */ c(Ze.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ze.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ts, { ...e, ref: t }) }) })
4229
4223
  );
4230
4224
  vo.displayName = be;
4231
- var Ms = p.forwardRef((e, t) => {
4225
+ var Ts = p.forwardRef((e, t) => {
4232
4226
  const {
4233
4227
  __scopeRovingFocusGroup: o,
4234
4228
  orientation: r,
@@ -4237,21 +4231,21 @@ var Ms = p.forwardRef((e, t) => {
4237
4231
  currentTabStopId: a,
4238
4232
  defaultCurrentTabStopId: i,
4239
4233
  onCurrentTabStopIdChange: l,
4240
- onEntryFocus: d,
4241
- preventScrollOnEntryFocus: u = !1,
4234
+ onEntryFocus: u,
4235
+ preventScrollOnEntryFocus: d = !1,
4242
4236
  ...f
4243
4237
  } = e, m = p.useRef(null), g = Y(t, m), k = rt(s), [x, h] = io({
4244
4238
  prop: a,
4245
4239
  defaultProp: i ?? null,
4246
4240
  onChange: l,
4247
4241
  caller: be
4248
- }), [y, R] = p.useState(!1), C = J(d), A = go(o), P = p.useRef(!1), [E, _] = p.useState(0);
4242
+ }), [y, R] = p.useState(!1), C = J(u), A = go(o), P = p.useRef(!1), [E, _] = p.useState(0);
4249
4243
  return p.useEffect(() => {
4250
4244
  const b = m.current;
4251
4245
  if (b)
4252
4246
  return b.addEventListener(Be, C), () => b.removeEventListener(Be, C);
4253
4247
  }, [C]), /* @__PURE__ */ c(
4254
- zs,
4248
+ Ps,
4255
4249
  {
4256
4250
  scope: o,
4257
4251
  orientation: r,
@@ -4285,12 +4279,12 @@ var Ms = p.forwardRef((e, t) => {
4285
4279
  onFocus: W(e.onFocus, (b) => {
4286
4280
  const S = !P.current;
4287
4281
  if (b.target === b.currentTarget && S && !y) {
4288
- const M = new CustomEvent(Be, _s);
4282
+ const M = new CustomEvent(Be, Rs);
4289
4283
  if (b.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
4290
4284
  const O = A().filter(($) => $.focusable), Z = O.find(($) => $.active), ve = O.find(($) => $.id === x), Q = [Z, ve, ...O].filter(
4291
4285
  Boolean
4292
4286
  ).map(($) => $.ref.current);
4293
- yo(Q, u);
4287
+ yo(Q, d);
4294
4288
  }
4295
4289
  }
4296
4290
  P.current = !1;
@@ -4309,7 +4303,7 @@ var Ms = p.forwardRef((e, t) => {
4309
4303
  tabStopId: s,
4310
4304
  children: a,
4311
4305
  ...i
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;
4306
+ } = e, l = lo(), u = s || l, d = zs(xo, o), f = d.currentTabStopId === u, m = go(o), { onFocusableItemAdd: g, onFocusableItemRemove: k, currentTabStopId: x } = d;
4313
4307
  return p.useEffect(() => {
4314
4308
  if (r)
4315
4309
  return g(), () => k();
@@ -4317,27 +4311,27 @@ var Ms = p.forwardRef((e, t) => {
4317
4311
  Ze.ItemSlot,
4318
4312
  {
4319
4313
  scope: o,
4320
- id: d,
4314
+ id: u,
4321
4315
  focusable: r,
4322
4316
  active: n,
4323
4317
  children: /* @__PURE__ */ c(
4324
4318
  j.span,
4325
4319
  {
4326
4320
  tabIndex: f ? 0 : -1,
4327
- "data-orientation": u.orientation,
4321
+ "data-orientation": d.orientation,
4328
4322
  ...i,
4329
4323
  ref: t,
4330
4324
  onMouseDown: W(e.onMouseDown, (h) => {
4331
- r ? u.onItemFocus(d) : h.preventDefault();
4325
+ r ? d.onItemFocus(u) : h.preventDefault();
4332
4326
  }),
4333
- onFocus: W(e.onFocus, () => u.onItemFocus(d)),
4327
+ onFocus: W(e.onFocus, () => d.onItemFocus(u)),
4334
4328
  onKeyDown: W(e.onKeyDown, (h) => {
4335
4329
  if (h.key === "Tab" && h.shiftKey) {
4336
- u.onItemShiftTab();
4330
+ d.onItemShiftTab();
4337
4331
  return;
4338
4332
  }
4339
4333
  if (h.target !== h.currentTarget) return;
4340
- const y = $s(h, u.orientation, u.dir);
4334
+ const y = Os(h, d.orientation, d.dir);
4341
4335
  if (y !== void 0) {
4342
4336
  if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
4343
4337
  h.preventDefault();
@@ -4346,7 +4340,7 @@ var Ms = p.forwardRef((e, t) => {
4346
4340
  else if (y === "prev" || y === "next") {
4347
4341
  y === "prev" && C.reverse();
4348
4342
  const A = C.indexOf(h.currentTarget);
4349
- C = u.loop ? Fs(C, A + 1) : C.slice(A + 1);
4343
+ C = d.loop ? $s(C, A + 1) : C.slice(A + 1);
4350
4344
  }
4351
4345
  setTimeout(() => yo(C));
4352
4346
  }
@@ -4359,7 +4353,7 @@ var Ms = p.forwardRef((e, t) => {
4359
4353
  }
4360
4354
  );
4361
4355
  wo.displayName = xo;
4362
- var Ls = {
4356
+ var Ms = {
4363
4357
  ArrowLeft: "prev",
4364
4358
  ArrowUp: "prev",
4365
4359
  ArrowRight: "next",
@@ -4369,30 +4363,30 @@ var Ls = {
4369
4363
  PageDown: "last",
4370
4364
  End: "last"
4371
4365
  };
4372
- function Os(e, t) {
4366
+ function Ls(e, t) {
4373
4367
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
4374
4368
  }
4375
- function $s(e, t, o) {
4376
- const r = Os(e.key, o);
4369
+ function Os(e, t, o) {
4370
+ const r = Ls(e.key, o);
4377
4371
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
4378
- return Ls[r];
4372
+ return Ms[r];
4379
4373
  }
4380
4374
  function yo(e, t = !1) {
4381
4375
  const o = document.activeElement;
4382
4376
  for (const r of e)
4383
4377
  if (r === o || (r.focus({ preventScroll: t }), document.activeElement !== o)) return;
4384
4378
  }
4385
- function Fs(e, t) {
4379
+ function $s(e, t) {
4386
4380
  return e.map((o, r) => e[(t + r) % e.length]);
4387
4381
  }
4388
- var Ds = vo, Us = wo;
4389
- function Ws(e, [t, o]) {
4382
+ var Fs = vo, Ds = wo;
4383
+ function Us(e, [t, o]) {
4390
4384
  return Math.min(o, Math.max(t, e));
4391
4385
  }
4392
- function Hs(e, t) {
4386
+ function Ws(e, t) {
4393
4387
  return p.useReducer((o, r) => t[o][r] ?? o, e);
4394
4388
  }
4395
- var st = "ScrollArea", [ko] = ge(st), [Vs, q] = ko(st), So = p.forwardRef(
4389
+ var st = "ScrollArea", [ko] = ge(st), [Hs, q] = ko(st), So = p.forwardRef(
4396
4390
  (e, t) => {
4397
4391
  const {
4398
4392
  __scopeScrollArea: o,
@@ -4400,17 +4394,17 @@ var st = "ScrollArea", [ko] = ge(st), [Vs, q] = ko(st), So = p.forwardRef(
4400
4394
  dir: n,
4401
4395
  scrollHideDelay: s = 600,
4402
4396
  ...a
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);
4397
+ } = e, [i, l] = p.useState(null), [u, d] = 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);
4404
4398
  return /* @__PURE__ */ c(
4405
- Vs,
4399
+ Hs,
4406
4400
  {
4407
4401
  scope: o,
4408
4402
  type: r,
4409
4403
  dir: M,
4410
4404
  scrollHideDelay: s,
4411
4405
  scrollArea: i,
4412
- viewport: d,
4413
- onViewportChange: u,
4406
+ viewport: u,
4407
+ onViewportChange: d,
4414
4408
  content: f,
4415
4409
  onContentChange: m,
4416
4410
  scrollbarX: g,
@@ -4490,26 +4484,26 @@ var X = "ScrollAreaScrollbar", No = p.forwardRef(
4490
4484
  const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = n, i = e.orientation === "horizontal";
4491
4485
  return p.useEffect(() => (i ? s(!0) : a(!0), () => {
4492
4486
  i ? s(!1) : a(!1);
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;
4487
+ }), [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(Ao, { ...r, ref: t, forceMount: o }) : n.type === "always" ? /* @__PURE__ */ c(at, { ...r, ref: t }) : null;
4494
4488
  }
4495
4489
  );
4496
4490
  No.displayName = X;
4497
- var js = p.forwardRef((e, t) => {
4491
+ var Vs = p.forwardRef((e, t) => {
4498
4492
  const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), [s, a] = p.useState(!1);
4499
4493
  return p.useEffect(() => {
4500
4494
  const i = n.scrollArea;
4501
4495
  let l = 0;
4502
4496
  if (i) {
4503
- const d = () => {
4497
+ const u = () => {
4504
4498
  window.clearTimeout(l), a(!0);
4505
- }, u = () => {
4499
+ }, d = () => {
4506
4500
  l = window.setTimeout(() => a(!1), n.scrollHideDelay);
4507
4501
  };
4508
- return i.addEventListener("pointerenter", d), i.addEventListener("pointerleave", u), () => {
4509
- window.clearTimeout(l), i.removeEventListener("pointerenter", d), i.removeEventListener("pointerleave", u);
4502
+ return i.addEventListener("pointerenter", u), i.addEventListener("pointerleave", d), () => {
4503
+ window.clearTimeout(l), i.removeEventListener("pointerenter", u), i.removeEventListener("pointerleave", d);
4510
4504
  };
4511
4505
  }
4512
- }, [n.scrollArea, n.scrollHideDelay]), /* @__PURE__ */ c(de, { present: o || s, children: /* @__PURE__ */ c(
4506
+ }, [n.scrollArea, n.scrollHideDelay]), /* @__PURE__ */ c(ue, { present: o || s, children: /* @__PURE__ */ c(
4513
4507
  Ao,
4514
4508
  {
4515
4509
  "data-state": s ? "visible" : "hidden",
@@ -4517,8 +4511,8 @@ var js = p.forwardRef((e, t) => {
4517
4511
  ref: t
4518
4512
  }
4519
4513
  ) });
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", {
4514
+ }), js = p.forwardRef((e, t) => {
4515
+ const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), s = e.orientation === "horizontal", a = Le(() => l("SCROLL_END"), 100), [i, l] = Ws("hidden", {
4522
4516
  hidden: {
4523
4517
  SCROLL: "scrolling"
4524
4518
  },
@@ -4538,20 +4532,20 @@ var js = p.forwardRef((e, t) => {
4538
4532
  });
4539
4533
  return p.useEffect(() => {
4540
4534
  if (i === "idle") {
4541
- const d = window.setTimeout(() => l("HIDE"), n.scrollHideDelay);
4542
- return () => window.clearTimeout(d);
4535
+ const u = window.setTimeout(() => l("HIDE"), n.scrollHideDelay);
4536
+ return () => window.clearTimeout(u);
4543
4537
  }
4544
4538
  }, [i, n.scrollHideDelay, l]), p.useEffect(() => {
4545
- const d = n.viewport, u = s ? "scrollLeft" : "scrollTop";
4546
- if (d) {
4547
- let f = d[u];
4539
+ const u = n.viewport, d = s ? "scrollLeft" : "scrollTop";
4540
+ if (u) {
4541
+ let f = u[d];
4548
4542
  const m = () => {
4549
- const g = d[u];
4543
+ const g = u[d];
4550
4544
  f !== g && (l("SCROLL"), a()), f = g;
4551
4545
  };
4552
- return d.addEventListener("scroll", m), () => d.removeEventListener("scroll", m);
4546
+ return u.addEventListener("scroll", m), () => u.removeEventListener("scroll", m);
4553
4547
  }
4554
- }, [n.viewport, s, l, a]), /* @__PURE__ */ c(de, { present: o || i !== "hidden", children: /* @__PURE__ */ c(
4548
+ }, [n.viewport, s, l, a]), /* @__PURE__ */ c(ue, { present: o || i !== "hidden", children: /* @__PURE__ */ c(
4555
4549
  at,
4556
4550
  {
4557
4551
  "data-state": i === "hidden" ? "hidden" : "visible",
@@ -4564,11 +4558,11 @@ var js = p.forwardRef((e, t) => {
4564
4558
  }), Ao = p.forwardRef((e, t) => {
4565
4559
  const o = q(X, e.__scopeScrollArea), { forceMount: r, ...n } = e, [s, a] = p.useState(!1), i = e.orientation === "horizontal", l = Le(() => {
4566
4560
  if (o.viewport) {
4567
- const d = o.viewport.offsetWidth < o.viewport.scrollWidth, u = o.viewport.offsetHeight < o.viewport.scrollHeight;
4568
- a(i ? d : u);
4561
+ const u = o.viewport.offsetWidth < o.viewport.scrollWidth, d = o.viewport.offsetHeight < o.viewport.scrollHeight;
4562
+ a(i ? u : d);
4569
4563
  }
4570
4564
  }, 10);
4571
- return ce(o.viewport, l), ce(o.content, l), /* @__PURE__ */ c(de, { present: r || s, children: /* @__PURE__ */ c(
4565
+ return de(o.viewport, l), de(o.content, l), /* @__PURE__ */ c(ue, { present: r || s, children: /* @__PURE__ */ c(
4572
4566
  at,
4573
4567
  {
4574
4568
  "data-state": s ? "visible" : "hidden",
@@ -4581,22 +4575,22 @@ var js = p.forwardRef((e, t) => {
4581
4575
  content: 0,
4582
4576
  viewport: 0,
4583
4577
  scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
4584
- }), d = zo(i.viewport, i.content), u = {
4578
+ }), u = zo(i.viewport, i.content), d = {
4585
4579
  ...r,
4586
4580
  sizes: i,
4587
4581
  onSizesChange: l,
4588
- hasThumb: d > 0 && d < 1,
4582
+ hasThumb: u > 0 && u < 1,
4589
4583
  onThumbChange: (m) => s.current = m,
4590
4584
  onThumbPointerUp: () => a.current = 0,
4591
4585
  onThumbPointerDown: (m) => a.current = m
4592
4586
  };
4593
4587
  function f(m, g) {
4594
- return Ks(m, a.current, i, g);
4588
+ return Zs(m, a.current, i, g);
4595
4589
  }
4596
4590
  return o === "horizontal" ? /* @__PURE__ */ c(
4597
- Gs,
4591
+ Bs,
4598
4592
  {
4599
- ...u,
4593
+ ...d,
4600
4594
  ref: t,
4601
4595
  onThumbPositionChange: () => {
4602
4596
  if (n.viewport && s.current) {
@@ -4612,9 +4606,9 @@ var js = p.forwardRef((e, t) => {
4612
4606
  }
4613
4607
  }
4614
4608
  ) : o === "vertical" ? /* @__PURE__ */ c(
4615
- qs,
4609
+ Gs,
4616
4610
  {
4617
- ...u,
4611
+ ...d,
4618
4612
  ref: t,
4619
4613
  onThumbPositionChange: () => {
4620
4614
  if (n.viewport && s.current) {
@@ -4630,8 +4624,8 @@ var js = p.forwardRef((e, t) => {
4630
4624
  }
4631
4625
  }
4632
4626
  ) : null;
4633
- }), Gs = p.forwardRef((e, t) => {
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);
4627
+ }), Bs = p.forwardRef((e, t) => {
4628
+ const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = p.useState(), l = p.useRef(null), u = Y(t, l, s.onScrollbarXChange);
4635
4629
  return p.useEffect(() => {
4636
4630
  l.current && i(getComputedStyle(l.current));
4637
4631
  }, [l]), /* @__PURE__ */ c(
@@ -4639,7 +4633,7 @@ var js = p.forwardRef((e, t) => {
4639
4633
  {
4640
4634
  "data-orientation": "horizontal",
4641
4635
  ...n,
4642
- ref: d,
4636
+ ref: u,
4643
4637
  sizes: o,
4644
4638
  style: {
4645
4639
  bottom: 0,
@@ -4648,12 +4642,12 @@ var js = p.forwardRef((e, t) => {
4648
4642
  "--radix-scroll-area-thumb-width": Me(o) + "px",
4649
4643
  ...e.style
4650
4644
  },
4651
- onThumbPointerDown: (u) => e.onThumbPointerDown(u.x),
4652
- onDragScroll: (u) => e.onDragScroll(u.x),
4653
- onWheelScroll: (u, f) => {
4645
+ onThumbPointerDown: (d) => e.onThumbPointerDown(d.x),
4646
+ onDragScroll: (d) => e.onDragScroll(d.x),
4647
+ onWheelScroll: (d, f) => {
4654
4648
  if (s.viewport) {
4655
- const m = s.viewport.scrollLeft + u.deltaX;
4656
- e.onWheelScroll(m), Mo(m, f) && u.preventDefault();
4649
+ const m = s.viewport.scrollLeft + d.deltaX;
4650
+ e.onWheelScroll(m), Mo(m, f) && d.preventDefault();
4657
4651
  }
4658
4652
  },
4659
4653
  onResize: () => {
@@ -4669,8 +4663,8 @@ var js = p.forwardRef((e, t) => {
4669
4663
  }
4670
4664
  }
4671
4665
  );
4672
- }), qs = p.forwardRef((e, t) => {
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);
4666
+ }), Gs = p.forwardRef((e, t) => {
4667
+ const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = p.useState(), l = p.useRef(null), u = Y(t, l, s.onScrollbarYChange);
4674
4668
  return p.useEffect(() => {
4675
4669
  l.current && i(getComputedStyle(l.current));
4676
4670
  }, [l]), /* @__PURE__ */ c(
@@ -4678,7 +4672,7 @@ var js = p.forwardRef((e, t) => {
4678
4672
  {
4679
4673
  "data-orientation": "vertical",
4680
4674
  ...n,
4681
- ref: d,
4675
+ ref: u,
4682
4676
  sizes: o,
4683
4677
  style: {
4684
4678
  top: 0,
@@ -4688,12 +4682,12 @@ var js = p.forwardRef((e, t) => {
4688
4682
  "--radix-scroll-area-thumb-height": Me(o) + "px",
4689
4683
  ...e.style
4690
4684
  },
4691
- onThumbPointerDown: (u) => e.onThumbPointerDown(u.y),
4692
- onDragScroll: (u) => e.onDragScroll(u.y),
4693
- onWheelScroll: (u, f) => {
4685
+ onThumbPointerDown: (d) => e.onThumbPointerDown(d.y),
4686
+ onDragScroll: (d) => e.onDragScroll(d.y),
4687
+ onWheelScroll: (d, f) => {
4694
4688
  if (s.viewport) {
4695
- const m = s.viewport.scrollTop + u.deltaY;
4696
- e.onWheelScroll(m), Mo(m, f) && u.preventDefault();
4689
+ const m = s.viewport.scrollTop + d.deltaY;
4690
+ e.onWheelScroll(m), Mo(m, f) && d.preventDefault();
4697
4691
  }
4698
4692
  },
4699
4693
  onResize: () => {
@@ -4709,7 +4703,7 @@ var js = p.forwardRef((e, t) => {
4709
4703
  }
4710
4704
  }
4711
4705
  );
4712
- }), [Ys, Ro] = ko(X), _o = p.forwardRef((e, t) => {
4706
+ }), [qs, Ro] = ko(X), _o = p.forwardRef((e, t) => {
4713
4707
  const {
4714
4708
  __scopeScrollArea: o,
4715
4709
  sizes: r,
@@ -4718,15 +4712,15 @@ var js = p.forwardRef((e, t) => {
4718
4712
  onThumbPointerUp: a,
4719
4713
  onThumbPointerDown: i,
4720
4714
  onThumbPositionChange: l,
4721
- onDragScroll: d,
4722
- onWheelScroll: u,
4715
+ onDragScroll: u,
4716
+ onWheelScroll: d,
4723
4717
  onResize: f,
4724
4718
  ...m
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);
4719
+ } = 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(d), E = J(l), _ = Le(f, 10);
4726
4720
  function b(S) {
4727
4721
  if (y.current) {
4728
4722
  const M = S.clientX - y.current.left, O = S.clientY - y.current.top;
4729
- d({ x: M, y: O });
4723
+ u({ x: M, y: O });
4730
4724
  }
4731
4725
  }
4732
4726
  return p.useEffect(() => {
@@ -4735,8 +4729,8 @@ var js = p.forwardRef((e, t) => {
4735
4729
  (k == null ? void 0 : k.contains(O)) && P(M, A);
4736
4730
  };
4737
4731
  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,
4732
+ }, [C, k, A, P]), p.useEffect(E, [r, E]), de(k, _), de(g.content, _), /* @__PURE__ */ c(
4733
+ qs,
4740
4734
  {
4741
4735
  scope: o,
4742
4736
  scrollbar: k,
@@ -4766,28 +4760,28 @@ var js = p.forwardRef((e, t) => {
4766
4760
  }), ze = "ScrollAreaThumb", Io = p.forwardRef(
4767
4761
  (e, t) => {
4768
4762
  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 }) });
4763
+ return /* @__PURE__ */ c(ue, { present: o || n.hasThumb, children: /* @__PURE__ */ c(Ys, { ref: t, ...r }) });
4770
4764
  }
4771
- ), Xs = p.forwardRef(
4765
+ ), Ys = p.forwardRef(
4772
4766
  (e, t) => {
4773
4767
  const { __scopeScrollArea: o, style: r, ...n } = e, s = q(ze, o), a = Ro(ze, o), { onThumbPositionChange: i } = a, l = Y(
4774
4768
  t,
4775
4769
  (f) => a.onThumbChange(f)
4776
- ), d = p.useRef(void 0), u = Le(() => {
4777
- d.current && (d.current(), d.current = void 0);
4770
+ ), u = p.useRef(void 0), d = Le(() => {
4771
+ u.current && (u.current(), u.current = void 0);
4778
4772
  }, 100);
4779
4773
  return p.useEffect(() => {
4780
4774
  const f = s.viewport;
4781
4775
  if (f) {
4782
4776
  const m = () => {
4783
- if (u(), !d.current) {
4784
- const g = Js(f, i);
4785
- d.current = g, i();
4777
+ if (d(), !u.current) {
4778
+ const g = Ks(f, i);
4779
+ u.current = g, i();
4786
4780
  }
4787
4781
  };
4788
4782
  return i(), f.addEventListener("scroll", m), () => f.removeEventListener("scroll", m);
4789
4783
  }
4790
- }, [s.viewport, u, i]), /* @__PURE__ */ c(
4784
+ }, [s.viewport, d, i]), /* @__PURE__ */ c(
4791
4785
  j.div,
4792
4786
  {
4793
4787
  "data-state": a.hasThumb ? "visible" : "hidden",
@@ -4811,21 +4805,21 @@ Io.displayName = ze;
4811
4805
  var it = "ScrollAreaCorner", Po = p.forwardRef(
4812
4806
  (e, t) => {
4813
4807
  const o = q(it, e.__scopeScrollArea), r = !!(o.scrollbarX && o.scrollbarY);
4814
- return o.type !== "scroll" && r ? /* @__PURE__ */ c(Zs, { ...e, ref: t }) : null;
4808
+ return o.type !== "scroll" && r ? /* @__PURE__ */ c(Xs, { ...e, ref: t }) : null;
4815
4809
  }
4816
4810
  );
4817
4811
  Po.displayName = it;
4818
- var Zs = p.forwardRef((e, t) => {
4819
- const { __scopeScrollArea: o, ...r } = e, n = q(it, o), [s, a] = p.useState(0), [i, l] = p.useState(0), d = !!(s && i);
4820
- return ce(n.scrollbarX, () => {
4812
+ var Xs = p.forwardRef((e, t) => {
4813
+ const { __scopeScrollArea: o, ...r } = e, n = q(it, o), [s, a] = p.useState(0), [i, l] = p.useState(0), u = !!(s && i);
4814
+ return de(n.scrollbarX, () => {
4821
4815
  var f;
4822
- const u = ((f = n.scrollbarX) == null ? void 0 : f.offsetHeight) || 0;
4823
- n.onCornerHeightChange(u), l(u);
4824
- }), ce(n.scrollbarY, () => {
4816
+ const d = ((f = n.scrollbarX) == null ? void 0 : f.offsetHeight) || 0;
4817
+ n.onCornerHeightChange(d), l(d);
4818
+ }), de(n.scrollbarY, () => {
4825
4819
  var f;
4826
- const u = ((f = n.scrollbarY) == null ? void 0 : f.offsetWidth) || 0;
4827
- n.onCornerWidthChange(u), a(u);
4828
- }), d ? /* @__PURE__ */ c(
4820
+ const d = ((f = n.scrollbarY) == null ? void 0 : f.offsetWidth) || 0;
4821
+ n.onCornerWidthChange(d), a(d);
4822
+ }), u ? /* @__PURE__ */ c(
4829
4823
  j.div,
4830
4824
  {
4831
4825
  ...r,
@@ -4853,13 +4847,13 @@ function Me(e) {
4853
4847
  const t = zo(e.viewport, e.content), o = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - o) * t;
4854
4848
  return Math.max(r, 18);
4855
4849
  }
4856
- function Ks(e, t, o, r = "ltr") {
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];
4858
- return To([l, d], f)(e);
4850
+ function Zs(e, t, o, r = "ltr") {
4851
+ const n = Me(o), s = n / 2, a = t || s, i = n - a, l = o.scrollbar.paddingStart + a, u = o.scrollbar.size - o.scrollbar.paddingEnd - i, d = o.content - o.viewport, f = r === "ltr" ? [0, d] : [d * -1, 0];
4852
+ return To([l, u], f)(e);
4859
4853
  }
4860
4854
  function At(e, t, o = "ltr") {
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);
4855
+ 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], u = Us(e, l);
4856
+ return To([0, a], [0, i])(u);
4863
4857
  }
4864
4858
  function To(e, t) {
4865
4859
  return (o) => {
@@ -4871,7 +4865,7 @@ function To(e, t) {
4871
4865
  function Mo(e, t) {
4872
4866
  return e > 0 && e < t;
4873
4867
  }
4874
- var Js = (e, t = () => {
4868
+ var Ks = (e, t = () => {
4875
4869
  }) => {
4876
4870
  let o = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
4877
4871
  return (function n() {
@@ -4885,7 +4879,7 @@ function Le(e, t) {
4885
4879
  window.clearTimeout(r.current), r.current = window.setTimeout(o, t);
4886
4880
  }, [o, t]);
4887
4881
  }
4888
- function ce(e, t) {
4882
+ function de(e, t) {
4889
4883
  const o = J(t);
4890
4884
  oe(() => {
4891
4885
  let r = 0;
@@ -4899,8 +4893,8 @@ function ce(e, t) {
4899
4893
  }
4900
4894
  }, [e, o]);
4901
4895
  }
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" };
4896
+ var Js = So, Qs = Eo, ea = Po, ta = "Separator", Rt = "horizontal", oa = ["horizontal", "vertical"], Lo = p.forwardRef((e, t) => {
4897
+ 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" };
4904
4898
  return /* @__PURE__ */ c(
4905
4899
  j.div,
4906
4900
  {
@@ -4911,13 +4905,13 @@ var Qs = So, ea = Eo, ta = Po, oa = "Separator", Rt = "horizontal", ra = ["horiz
4911
4905
  }
4912
4906
  );
4913
4907
  });
4914
- Lo.displayName = oa;
4915
- function na(e) {
4916
- return ra.includes(e);
4908
+ Lo.displayName = ta;
4909
+ function ra(e) {
4910
+ return oa.includes(e);
4917
4911
  }
4918
- var sa = Lo, Oe = "Tabs", [aa] = ge(Oe, [
4912
+ var na = Lo, Oe = "Tabs", [sa] = ge(Oe, [
4919
4913
  bo
4920
- ]), Oo = bo(), [ia, lt] = aa(Oe), $o = p.forwardRef(
4914
+ ]), Oo = bo(), [aa, lt] = sa(Oe), $o = p.forwardRef(
4921
4915
  (e, t) => {
4922
4916
  const {
4923
4917
  __scopeTabs: o,
@@ -4927,29 +4921,29 @@ var sa = Lo, Oe = "Tabs", [aa] = ge(Oe, [
4927
4921
  orientation: a = "horizontal",
4928
4922
  dir: i,
4929
4923
  activationMode: l = "automatic",
4930
- ...d
4931
- } = e, u = rt(i), [f, m] = io({
4924
+ ...u
4925
+ } = e, d = rt(i), [f, m] = io({
4932
4926
  prop: r,
4933
4927
  onChange: n,
4934
4928
  defaultProp: s ?? "",
4935
4929
  caller: Oe
4936
4930
  });
4937
4931
  return /* @__PURE__ */ c(
4938
- ia,
4932
+ aa,
4939
4933
  {
4940
4934
  scope: o,
4941
4935
  baseId: lo(),
4942
4936
  value: f,
4943
4937
  onValueChange: m,
4944
4938
  orientation: a,
4945
- dir: u,
4939
+ dir: d,
4946
4940
  activationMode: l,
4947
4941
  children: /* @__PURE__ */ c(
4948
4942
  j.div,
4949
4943
  {
4950
- dir: u,
4944
+ dir: d,
4951
4945
  "data-orientation": a,
4952
- ...d,
4946
+ ...u,
4953
4947
  ref: t
4954
4948
  }
4955
4949
  )
@@ -4962,7 +4956,7 @@ var Fo = "TabsList", Do = p.forwardRef(
4962
4956
  (e, t) => {
4963
4957
  const { __scopeTabs: o, loop: r = !0, ...n } = e, s = lt(Fo, o), a = Oo(o);
4964
4958
  return /* @__PURE__ */ c(
4965
- Ds,
4959
+ Fs,
4966
4960
  {
4967
4961
  asChild: !0,
4968
4962
  ...a,
@@ -4985,22 +4979,22 @@ var Fo = "TabsList", Do = p.forwardRef(
4985
4979
  Do.displayName = Fo;
4986
4980
  var Uo = "TabsTrigger", Wo = p.forwardRef(
4987
4981
  (e, t) => {
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;
4982
+ const { __scopeTabs: o, value: r, disabled: n = !1, ...s } = e, a = lt(Uo, o), i = Oo(o), l = jo(a.baseId, r), u = Bo(a.baseId, r), d = r === a.value;
4989
4983
  return /* @__PURE__ */ c(
4990
- Us,
4984
+ Ds,
4991
4985
  {
4992
4986
  asChild: !0,
4993
4987
  ...i,
4994
4988
  focusable: !n,
4995
- active: u,
4989
+ active: d,
4996
4990
  children: /* @__PURE__ */ c(
4997
4991
  j.button,
4998
4992
  {
4999
4993
  type: "button",
5000
4994
  role: "tab",
5001
- "aria-selected": u,
5002
- "aria-controls": d,
5003
- "data-state": u ? "active" : "inactive",
4995
+ "aria-selected": d,
4996
+ "aria-controls": u,
4997
+ "data-state": d ? "active" : "inactive",
5004
4998
  "data-disabled": n ? "" : void 0,
5005
4999
  disabled: n,
5006
5000
  id: l,
@@ -5014,7 +5008,7 @@ var Uo = "TabsTrigger", Wo = p.forwardRef(
5014
5008
  }),
5015
5009
  onFocus: W(e.onFocus, () => {
5016
5010
  const f = a.activationMode !== "manual";
5017
- !u && !n && f && a.onValueChange(r);
5011
+ !d && !n && f && a.onValueChange(r);
5018
5012
  })
5019
5013
  }
5020
5014
  )
@@ -5025,19 +5019,19 @@ var Uo = "TabsTrigger", Wo = p.forwardRef(
5025
5019
  Wo.displayName = Uo;
5026
5020
  var Ho = "TabsContent", Vo = p.forwardRef(
5027
5021
  (e, t) => {
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);
5022
+ const { __scopeTabs: o, value: r, forceMount: n, children: s, ...a } = e, i = lt(Ho, o), l = jo(i.baseId, r), u = Bo(i.baseId, r), d = r === i.value, f = p.useRef(d);
5029
5023
  return p.useEffect(() => {
5030
5024
  const m = requestAnimationFrame(() => f.current = !1);
5031
5025
  return () => cancelAnimationFrame(m);
5032
- }, []), /* @__PURE__ */ c(de, { present: n || u, children: ({ present: m }) => /* @__PURE__ */ c(
5026
+ }, []), /* @__PURE__ */ c(ue, { present: n || d, children: ({ present: m }) => /* @__PURE__ */ c(
5033
5027
  j.div,
5034
5028
  {
5035
- "data-state": u ? "active" : "inactive",
5029
+ "data-state": d ? "active" : "inactive",
5036
5030
  "data-orientation": i.orientation,
5037
5031
  role: "tabpanel",
5038
5032
  "aria-labelledby": l,
5039
5033
  hidden: !m,
5040
- id: d,
5034
+ id: u,
5041
5035
  tabIndex: 0,
5042
5036
  ...a,
5043
5037
  ref: t,
@@ -5057,8 +5051,8 @@ function jo(e, t) {
5057
5051
  function Bo(e, t) {
5058
5052
  return `${e}-content-${t}`;
5059
5053
  }
5060
- var la = $o, ca = Do, da = Wo, ua = Vo;
5061
- const fa = ot(
5054
+ var ia = $o, la = Do, ca = Wo, da = Vo;
5055
+ const ua = ot(
5062
5056
  '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',
5063
5057
  {
5064
5058
  variants: {
@@ -5100,12 +5094,12 @@ function Go({
5100
5094
  "data-slot": "button",
5101
5095
  "data-variant": t,
5102
5096
  "data-size": o,
5103
- className: T(fa({ variant: t, size: o, className: e })),
5097
+ className: T(ua({ variant: t, size: o, className: e })),
5104
5098
  ...n
5105
5099
  }
5106
5100
  );
5107
5101
  }
5108
- const ma = ot(
5102
+ const fa = ot(
5109
5103
  "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",
5110
5104
  {
5111
5105
  variants: {
@@ -5123,7 +5117,7 @@ const ma = ot(
5123
5117
  }
5124
5118
  }
5125
5119
  );
5126
- function pa({
5120
+ function ma({
5127
5121
  className: e,
5128
5122
  variant: t = "default",
5129
5123
  asChild: o = !1,
@@ -5134,12 +5128,12 @@ function pa({
5134
5128
  {
5135
5129
  "data-slot": "badge",
5136
5130
  "data-variant": t,
5137
- className: T(ma({ variant: t }), e),
5131
+ className: T(fa({ variant: t }), e),
5138
5132
  ...r
5139
5133
  }
5140
5134
  );
5141
5135
  }
5142
- function ha({ className: e, type: t, ...o }) {
5136
+ function pa({ className: e, type: t, ...o }) {
5143
5137
  return /* @__PURE__ */ c(
5144
5138
  "input",
5145
5139
  {
@@ -5155,14 +5149,14 @@ function ha({ className: e, type: t, ...o }) {
5155
5149
  }
5156
5150
  );
5157
5151
  }
5158
- function ga({
5152
+ function ha({
5159
5153
  className: e,
5160
5154
  orientation: t = "horizontal",
5161
5155
  decorative: o = !0,
5162
5156
  ...r
5163
5157
  }) {
5164
5158
  return /* @__PURE__ */ c(
5165
- sa,
5159
+ na,
5166
5160
  {
5167
5161
  "data-slot": "separator",
5168
5162
  decorative: o,
@@ -5175,13 +5169,13 @@ function ga({
5175
5169
  }
5176
5170
  );
5177
5171
  }
5178
- function ba({
5172
+ function ga({
5179
5173
  className: e,
5180
5174
  orientation: t = "horizontal",
5181
5175
  ...o
5182
5176
  }) {
5183
5177
  return /* @__PURE__ */ c(
5184
- la,
5178
+ ia,
5185
5179
  {
5186
5180
  "data-slot": "tabs",
5187
5181
  "data-orientation": t,
@@ -5194,7 +5188,7 @@ function ba({
5194
5188
  }
5195
5189
  );
5196
5190
  }
5197
- const va = ot(
5191
+ const ba = ot(
5198
5192
  "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",
5199
5193
  {
5200
5194
  variants: {
@@ -5208,27 +5202,27 @@ const va = ot(
5208
5202
  }
5209
5203
  }
5210
5204
  );
5211
- function xa({
5205
+ function va({
5212
5206
  className: e,
5213
5207
  variant: t = "default",
5214
5208
  ...o
5215
5209
  }) {
5216
5210
  return /* @__PURE__ */ c(
5217
- ca,
5211
+ la,
5218
5212
  {
5219
5213
  "data-slot": "tabs-list",
5220
5214
  "data-variant": t,
5221
- className: T(va({ variant: t }), e),
5215
+ className: T(ba({ variant: t }), e),
5222
5216
  ...o
5223
5217
  }
5224
5218
  );
5225
5219
  }
5226
- function wa({
5220
+ function xa({
5227
5221
  className: e,
5228
5222
  ...t
5229
5223
  }) {
5230
5224
  return /* @__PURE__ */ c(
5231
- da,
5225
+ ca,
5232
5226
  {
5233
5227
  "data-slot": "tabs-trigger",
5234
5228
  className: T(
@@ -5242,12 +5236,12 @@ function wa({
5242
5236
  }
5243
5237
  );
5244
5238
  }
5245
- function ya({
5239
+ function wa({
5246
5240
  className: e,
5247
5241
  ...t
5248
5242
  }) {
5249
5243
  return /* @__PURE__ */ c(
5250
- ua,
5244
+ da,
5251
5245
  {
5252
5246
  "data-slot": "tabs-content",
5253
5247
  className: T("flex-1 outline-none", e),
@@ -5255,7 +5249,7 @@ function ya({
5255
5249
  }
5256
5250
  );
5257
5251
  }
5258
- function ka({
5252
+ function ya({
5259
5253
  className: e,
5260
5254
  orientation: t = "vertical",
5261
5255
  ...o
@@ -5282,28 +5276,28 @@ function ka({
5282
5276
  }
5283
5277
  );
5284
5278
  }
5285
- function Sa({
5279
+ function ka({
5286
5280
  className: e,
5287
5281
  children: t,
5288
5282
  ...o
5289
5283
  }) {
5290
5284
  return /* @__PURE__ */ z(
5291
- Qs,
5285
+ Js,
5292
5286
  {
5293
5287
  "data-slot": "scroll-area",
5294
5288
  className: T("relative", e),
5295
5289
  ...o,
5296
5290
  children: [
5297
5291
  /* @__PURE__ */ c(
5298
- ea,
5292
+ Qs,
5299
5293
  {
5300
5294
  "data-slot": "scroll-area-viewport",
5301
5295
  className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
5302
5296
  children: t
5303
5297
  }
5304
5298
  ),
5305
- /* @__PURE__ */ c(ka, {}),
5306
- /* @__PURE__ */ c(ta, {})
5299
+ /* @__PURE__ */ c(ya, {}),
5300
+ /* @__PURE__ */ c(ea, {})
5307
5301
  ]
5308
5302
  }
5309
5303
  );
@@ -5314,7 +5308,7 @@ function Ke({
5314
5308
  ...o
5315
5309
  }) {
5316
5310
  return /* @__PURE__ */ c(
5317
- Ns,
5311
+ Es,
5318
5312
  {
5319
5313
  "data-slot": "avatar",
5320
5314
  "data-size": t,
@@ -5331,7 +5325,7 @@ function Je({
5331
5325
  ...t
5332
5326
  }) {
5333
5327
  return /* @__PURE__ */ c(
5334
- As,
5328
+ Ns,
5335
5329
  {
5336
5330
  "data-slot": "avatar-image",
5337
5331
  className: T("aspect-square size-full", e),
@@ -5344,7 +5338,7 @@ function Qe({
5344
5338
  ...t
5345
5339
  }) {
5346
5340
  return /* @__PURE__ */ c(
5347
- Rs,
5341
+ As,
5348
5342
  {
5349
5343
  "data-slot": "avatar-fallback",
5350
5344
  className: T(
@@ -5356,31 +5350,31 @@ function Qe({
5356
5350
  );
5357
5351
  }
5358
5352
  const qo = {
5359
- "arrow-left": wr,
5360
- calendar: Cr,
5361
- "check-circle-2": Pr,
5362
- "chevron-left": Nr,
5353
+ "arrow-left": xr,
5354
+ calendar: Sr,
5355
+ "check-circle-2": Ir,
5356
+ "chevron-left": Er,
5363
5357
  "chevron-right": Dt,
5364
- clock: $r,
5365
- "credit-card": Dr,
5366
- "external-link": Wr,
5367
- "help-circle": Tr,
5368
- info: Vr,
5358
+ clock: Or,
5359
+ "credit-card": Fr,
5360
+ "external-link": Ur,
5361
+ "help-circle": zr,
5362
+ info: Hr,
5369
5363
  "loader-2": Ut,
5370
5364
  mail: Ye,
5371
- "map-pin": qr,
5372
- "message-circle": Xr,
5365
+ "map-pin": Gr,
5366
+ "message-circle": Yr,
5373
5367
  "message-square": Wt,
5374
- package: Jr,
5375
- phone: en,
5376
- search: on,
5377
- "shopping-bag": nn,
5378
- sparkles: an,
5379
- truck: cn,
5368
+ package: Kr,
5369
+ phone: Qr,
5370
+ search: tn,
5371
+ "shopping-bag": rn,
5372
+ sparkles: sn,
5373
+ truck: ln,
5380
5374
  user: Ht,
5381
- "x-circle": Lr,
5382
- "alert-circle": _r,
5383
- "book-open": kr
5375
+ "x-circle": Mr,
5376
+ "alert-circle": Rr,
5377
+ "book-open": yr
5384
5378
  }, _t = {
5385
5379
  0: "gap-0",
5386
5380
  1: "gap-1",
@@ -5392,14 +5386,14 @@ const qo = {
5392
5386
  8: "gap-8",
5393
5387
  10: "gap-10",
5394
5388
  12: "gap-12"
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(
5389
+ }, Yo = (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(
5396
5390
  me,
5397
5391
  {
5398
5392
  className: t,
5399
5393
  onClick: o,
5400
5394
  children: e
5401
5395
  }
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(
5396
+ ), 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(
5403
5397
  Go,
5404
5398
  {
5405
5399
  className: t,
@@ -5410,30 +5404,30 @@ const qo = {
5410
5404
  title: a,
5411
5405
  children: e
5412
5406
  }
5413
- ), Ra = ({ children: e, className: t, variant: o }) => /* @__PURE__ */ c(
5414
- pa,
5407
+ ), Aa = ({ children: e, className: t, variant: o }) => /* @__PURE__ */ c(
5408
+ ma,
5415
5409
  {
5416
5410
  className: t,
5417
5411
  variant: o,
5418
5412
  children: e
5419
5413
  }
5420
- ), _a = ({ className: e, onChange: t, ...o }) => /* @__PURE__ */ c(
5421
- ha,
5414
+ ), Ra = ({ className: e, onChange: t, ...o }) => /* @__PURE__ */ c(
5415
+ pa,
5422
5416
  {
5423
5417
  className: e,
5424
5418
  onChange: t,
5425
5419
  ...o
5426
5420
  }
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 }) => {
5421
+ ), _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 }) => {
5428
5422
  const r = `h${o || "2"}`;
5429
5423
  return /* @__PURE__ */ c(r, { className: T("font-semibold tracking-tight", t), children: e });
5430
- }, Wa = ({ children: e, className: t, direction: o, gap: r }) => {
5424
+ }, Ua = ({ children: e, className: t, direction: o, gap: r }) => {
5431
5425
  const n = o === "row" ? "flex-row" : "flex-col", s = Yo(r);
5432
5426
  return /* @__PURE__ */ c("div", { className: T("flex", n, s, t), children: e });
5433
- }, Ha = ({ children: e, className: t, gap: o }) => {
5427
+ }, Wa = ({ children: e, className: t, gap: o }) => {
5434
5428
  const r = Yo(o);
5435
5429
  return /* @__PURE__ */ c("div", { className: T("flex flex-row items-center", r, t), children: e });
5436
- }, Va = ({ children: e, className: t, href: o, target: r, rel: n }) => /* @__PURE__ */ c(
5430
+ }, Ha = ({ children: e, className: t, href: o, target: r, rel: n }) => /* @__PURE__ */ c(
5437
5431
  "a",
5438
5432
  {
5439
5433
  href: o,
@@ -5442,10 +5436,10 @@ const qo = {
5442
5436
  className: t,
5443
5437
  children: e
5444
5438
  }
5445
- ), ja = ({ title: e, children: t, className: o }) => /* @__PURE__ */ z(me, { className: T("overflow-hidden p-0 gap-0 shadow-sm", o), children: [
5439
+ ), Va = ({ title: e, children: t, className: o }) => /* @__PURE__ */ z(me, { className: T("overflow-hidden p-0 gap-0 shadow-sm", o), children: [
5446
5440
  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,
5447
5441
  /* @__PURE__ */ c("div", { className: "flex flex-col gap-0 divide-y divide-border", children: t })
5448
- ] }), Ba = ({ icon: e, label: t, description: o, onClick: r, className: n }) => {
5442
+ ] }), ja = ({ icon: e, label: t, description: o, onClick: r, className: n }) => {
5449
5443
  const s = e, a = "size-5", i = s ? qo[s] : null;
5450
5444
  return /* @__PURE__ */ z(
5451
5445
  "button",
@@ -5463,33 +5457,33 @@ const qo = {
5463
5457
  ]
5464
5458
  }
5465
5459
  );
5466
- }, Ga = ({ name: e, size: t, className: o }) => {
5460
+ }, Ba = ({ name: e, size: t, className: o }) => {
5467
5461
  const n = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, a = qo[s], i = s === "sparkles" ? "sparkle-icon" : "";
5468
5462
  return a ? /* @__PURE__ */ c(a, { className: T(n, i, o) }) : /* @__PURE__ */ c("span", { className: T("inline-block", n, i, o), "data-icon": s });
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
5463
+ }, Ga = () => ({
5464
+ "ui-card": Sa,
5465
+ "ui-card-content": Ca,
5466
+ "ui-card-header": Ea,
5467
+ "ui-button": Na,
5468
+ "ui-text": Fa,
5469
+ "ui-heading": Da,
5470
+ "ui-badge": Aa,
5471
+ "ui-input": Ra,
5472
+ "ui-stack": Ua,
5473
+ "ui-inline": Wa,
5474
+ "ui-separator": _a,
5475
+ "ui-tabs": Ia,
5476
+ "ui-tabs-list": Pa,
5477
+ "ui-tabs-trigger": za,
5478
+ "ui-tabs-content": Ta,
5479
+ "ui-scroll-area": Ma,
5480
+ "ui-avatar": La,
5481
+ "ui-avatar-image": Oa,
5482
+ "ui-avatar-fallback": $a,
5483
+ "ui-icon": Ba,
5484
+ "ui-link": Ha,
5485
+ "ui-menu-item": ja,
5486
+ "ui-menu": Va
5493
5487
  }), It = "/api/ecommerce", Xo = async (e, t) => {
5494
5488
  const o = t ? `${t.replace(/\/$/, "")}${It}` : It, r = await fetch(o, {
5495
5489
  method: "POST",
@@ -5499,12 +5493,12 @@ const qo = {
5499
5493
  if (!r.ok)
5500
5494
  throw new Error(n.error || "API request failed");
5501
5495
  return n.data;
5502
- }, Ya = ({ className: e }) => /* @__PURE__ */ z("svg", { width: "100%", height: "100%", viewBox: "0 0 190 190", version: "1.1", className: e, children: [
5496
+ }, qa = ({ className: e }) => /* @__PURE__ */ z("svg", { width: "100%", height: "100%", viewBox: "0 0 190 190", version: "1.1", className: e, children: [
5503
5497
  /* @__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)" }) }),
5504
5498
  /* @__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)" }) }),
5505
5499
  /* @__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)" }) }),
5506
5500
  /* @__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)" }) })
5507
- ] }), Pt = "stackable-dev-badge-styles", Xa = () => {
5501
+ ] }), Pt = "stackable-dev-badge-styles", Ya = () => {
5508
5502
  if (typeof document > "u" || document.getElementById(Pt)) return;
5509
5503
  const e = document.createElement("style");
5510
5504
  e.id = Pt, e.textContent = `
@@ -5515,23 +5509,23 @@ const qo = {
5515
5509
  100% { transform: rotate(180deg); }
5516
5510
  }
5517
5511
  `, document.head.appendChild(e);
5518
- }, Za = ({ className: e = "", extensions: t = [] }) => {
5512
+ }, Xa = ({ className: e = "", extensions: t = [] }) => {
5519
5513
  const [o, r] = U([]), [n, s] = U(!1), [a, i] = U(!1), l = ae(null);
5520
5514
  if (B(() => {
5521
- Xa();
5515
+ Ya();
5522
5516
  }, []), B(() => {
5523
5517
  if (typeof window > "u") return;
5524
- const u = () => {
5518
+ const d = () => {
5525
5519
  const m = $t(window.location.search);
5526
5520
  r(m);
5527
5521
  };
5528
- u();
5529
- const f = () => u();
5522
+ d();
5523
+ const f = () => d();
5530
5524
  return window.addEventListener("popstate", f), () => window.removeEventListener("popstate", f);
5531
5525
  }, []), o.length === 0)
5532
5526
  return null;
5533
- const d = (u) => {
5534
- if (u.stopPropagation(), typeof window > "u") return;
5527
+ const u = (d) => {
5528
+ if (d.stopPropagation(), typeof window > "u") return;
5535
5529
  const f = new URL(window.location.href);
5536
5530
  f.searchParams.delete("_stackable_dev"), window.location.href = f.toString();
5537
5531
  };
@@ -5567,7 +5561,7 @@ const qo = {
5567
5561
  width: "420px",
5568
5562
  maxWidth: "90vw"
5569
5563
  },
5570
- children: o.map((u, f) => {
5564
+ children: o.map((d, f) => {
5571
5565
  var m;
5572
5566
  return /* @__PURE__ */ z(
5573
5567
  "div",
@@ -5589,7 +5583,7 @@ const qo = {
5589
5583
  overflow: "hidden",
5590
5584
  textOverflow: "ellipsis"
5591
5585
  },
5592
- children: ((m = t.find((g) => g.id === u.extensionId)) == null ? void 0 : m.manifest.name) || u.extensionId
5586
+ children: ((m = t.find((g) => g.id === d.extensionId)) == null ? void 0 : m.manifest.name) || d.extensionId
5593
5587
  }
5594
5588
  ),
5595
5589
  /* @__PURE__ */ z(
@@ -5604,16 +5598,16 @@ const qo = {
5604
5598
  overflow: "hidden",
5605
5599
  textOverflow: "ellipsis"
5606
5600
  },
5607
- title: u.bundleUrl,
5601
+ title: d.bundleUrl,
5608
5602
  children: [
5609
5603
  "→ ",
5610
- u.bundleUrl
5604
+ d.bundleUrl
5611
5605
  ]
5612
5606
  }
5613
5607
  )
5614
5608
  ]
5615
5609
  },
5616
- u.extensionId
5610
+ d.extensionId
5617
5611
  );
5618
5612
  })
5619
5613
  }
@@ -5646,7 +5640,7 @@ const qo = {
5646
5640
  display: "inline-flex",
5647
5641
  animation: a && !n ? "stackable-logo-wiggle 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both" : "none"
5648
5642
  },
5649
- children: /* @__PURE__ */ c(Ya, { className: "w-6 h-6" })
5643
+ children: /* @__PURE__ */ c(qa, { className: "w-6 h-6" })
5650
5644
  }
5651
5645
  ),
5652
5646
  /* @__PURE__ */ c("span", { children: "Dev Mode" }),
@@ -5660,7 +5654,7 @@ const qo = {
5660
5654
  /* @__PURE__ */ c(
5661
5655
  "button",
5662
5656
  {
5663
- onClick: d,
5657
+ onClick: u,
5664
5658
  style: {
5665
5659
  marginLeft: "4px",
5666
5660
  backgroundColor: "rgba(0, 0, 0, 0.15)",
@@ -5674,11 +5668,11 @@ const qo = {
5674
5668
  fontFamily: "inherit",
5675
5669
  transition: "background-color 0.1s ease"
5676
5670
  },
5677
- onMouseOver: (u) => {
5678
- u.currentTarget.style.backgroundColor = "rgba(0, 0, 0, 0.25)";
5671
+ onMouseOver: (d) => {
5672
+ d.currentTarget.style.backgroundColor = "rgba(0, 0, 0, 0.25)";
5679
5673
  },
5680
- onMouseOut: (u) => {
5681
- u.currentTarget.style.backgroundColor = "rgba(0, 0, 0, 0.15)";
5674
+ onMouseOut: (d) => {
5675
+ d.currentTarget.style.backgroundColor = "rgba(0, 0, 0, 0.15)";
5682
5676
  },
5683
5677
  children: "Clear"
5684
5678
  }
@@ -5689,7 +5683,7 @@ const qo = {
5689
5683
  ]
5690
5684
  }
5691
5685
  );
5692
- }, zt = (e, t) => e ? `${e.replace(/\/$/, "")}${t}` : t, li = ({
5686
+ }, zt = (e, t) => e ? `${e.replace(/\/$/, "")}${t}` : t, ii = ({
5693
5687
  instanceId: e,
5694
5688
  apiBase: t,
5695
5689
  hostBase: o,
@@ -5698,30 +5692,30 @@ const qo = {
5698
5692
  customerId: s,
5699
5693
  customerEmail: a
5700
5694
  }) => {
5701
- const [i, l] = U([]), [d, u] = U(!1);
5695
+ const [i, l] = U([]), [u, d] = U(!1);
5702
5696
  B(() => {
5703
5697
  (async () => {
5704
5698
  const g = e;
5705
5699
  try {
5706
5700
  if (!g) {
5707
- console.warn("[ExtensionSetup] No instanceId provided; loading no extensions"), l([]), u(!0);
5701
+ console.warn("[ExtensionSetup] No instanceId provided; loading no extensions"), l([]), d(!0);
5708
5702
  return;
5709
5703
  }
5710
5704
  if (!t || !r) {
5711
- console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"), l([]), u(!0);
5705
+ console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"), l([]), d(!0);
5712
5706
  return;
5713
5707
  }
5714
5708
  const k = await fetch(zt(t, `/instances/${r}/${g}`));
5715
5709
  if (!k.ok) {
5716
- console.warn(`[ExtensionSetup] Instance not found or failed to load: ${g}`), l([]), u(!0);
5710
+ console.warn(`[ExtensionSetup] Instance not found or failed to load: ${g}`), l([]), d(!0);
5717
5711
  return;
5718
5712
  }
5719
- const x = await k.json(), h = $t(typeof window < "u" ? window.location.search : ""), y = ur(x, h);
5713
+ const x = await k.json(), h = $t(typeof window < "u" ? window.location.search : ""), y = dr(x, h);
5720
5714
  l(y);
5721
5715
  } catch (k) {
5722
5716
  console.error("Failed to load extensions:", k);
5723
5717
  } finally {
5724
- u(!0);
5718
+ d(!0);
5725
5719
  }
5726
5720
  })();
5727
5721
  }, [e, r, t]);
@@ -5773,11 +5767,11 @@ const qo = {
5773
5767
  }),
5774
5768
  [t, r, o, s, a]
5775
5769
  );
5776
- return d ? /* @__PURE__ */ z(he, { children: [
5777
- /* @__PURE__ */ c(ir, { extensions: i, capabilityHandlers: f, components: qa(), children: n }),
5778
- /* @__PURE__ */ c(Za, { extensions: i })
5770
+ return u ? /* @__PURE__ */ z(he, { children: [
5771
+ /* @__PURE__ */ c(ar, { extensions: i, capabilityHandlers: f, components: Ga(), children: n }),
5772
+ /* @__PURE__ */ c(Xa, { extensions: i })
5779
5773
  ] }) : null;
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(
5774
+ }, Za = { dark: "dark", light: "widget-theme-light" }, Zo = ({ children: e, theme: t = "inherit" }) => /* @__PURE__ */ c("div", { "data-id": "widget-body", className: Za[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 = br }) => /* @__PURE__ */ c("div", { className: "fixed bottom-8 right-8 z-50", children: /* @__PURE__ */ c(
5781
5775
  Go,
5782
5776
  {
5783
5777
  className: "h-12 w-12 rounded-full",
@@ -5785,7 +5779,7 @@ const qo = {
5785
5779
  onClick: e,
5786
5780
  children: /* @__PURE__ */ c(t, { className: "h-6 w-6" })
5787
5781
  }
5788
- ) }), ci = ({ children: e, icon: t, theme: o }) => {
5782
+ ) }), li = ({ children: e, icon: t, theme: o }) => {
5789
5783
  const [r, n] = U(!1);
5790
5784
  return /* @__PURE__ */ z(he, { children: [
5791
5785
  /* @__PURE__ */ c(Ko, { onClick: () => {
@@ -5793,10 +5787,10 @@ const qo = {
5793
5787
  }, icon: t }),
5794
5788
  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 }) })
5795
5789
  ] });
5796
- }, di = {
5790
+ }, ci = {
5797
5791
  Body: Zo,
5798
5792
  Launcher: Ko
5799
- }, Ja = ({ href: e, children: t }) => /* @__PURE__ */ c(
5793
+ }, Ka = ({ href: e, children: t }) => /* @__PURE__ */ c(
5800
5794
  "a",
5801
5795
  {
5802
5796
  href: e,
@@ -5805,7 +5799,7 @@ const qo = {
5805
5799
  className: "text-zinc-500 opacity-80 transition-colors hover:text-zinc-900 hover:opacity-100",
5806
5800
  children: t
5807
5801
  }
5808
- ), Qa = (e, t) => {
5802
+ ), Ja = (e, t) => {
5809
5803
  const [o, r] = U(null), [n, s] = U(!1), [a, i] = U(null);
5810
5804
  return B(() => {
5811
5805
  if (!e) {
@@ -5815,33 +5809,33 @@ const qo = {
5815
5809
  (async () => {
5816
5810
  s(!0), i(null);
5817
5811
  try {
5818
- const d = await Xo({
5812
+ const u = await Xo({
5819
5813
  action: "getCustomer",
5820
5814
  customerId: e
5821
5815
  }, t);
5822
- r(d);
5823
- } catch (d) {
5824
- i(d);
5816
+ r(u);
5817
+ } catch (u) {
5818
+ i(u);
5825
5819
  } finally {
5826
5820
  s(!1);
5827
5821
  }
5828
5822
  })();
5829
5823
  }, [e, t]), { customer: o, loading: n, error: a };
5830
- }, ei = ({ customerId: e, customerEmail: t, hostBase: o, children: r }) => {
5831
- var l, d;
5832
- const { customer: n, loading: s, error: a } = Qa(e, o);
5824
+ }, Qa = ({ customerId: e, customerEmail: t, hostBase: o, children: r }) => {
5825
+ var l, u;
5826
+ const { customer: n, loading: s, error: a } = Ja(e, o);
5833
5827
  if (s)
5834
5828
  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" }) }) });
5835
5829
  if (a || !n) {
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();
5830
+ const d = t ? t.split("@")[0] : e ? `Customer ${e.slice(-4)}` : "Customer", f = d.split(/[\s._-]+/).map((m) => m[0]).join("").slice(0, 2).toUpperCase();
5837
5831
  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: [
5838
5832
  /* @__PURE__ */ z("div", { className: "flex flex-col items-center", children: [
5839
5833
  /* @__PURE__ */ z(Ke, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
5840
5834
  /* @__PURE__ */ c(
5841
5835
  Je,
5842
5836
  {
5843
- src: `https://ui-avatars.com/api/?name=${encodeURIComponent(u)}&background=7c3aed&color=fff&size=128`,
5844
- alt: u
5837
+ src: `https://ui-avatars.com/api/?name=${encodeURIComponent(d)}&background=7c3aed&color=fff&size=128`,
5838
+ alt: d
5845
5839
  }
5846
5840
  ),
5847
5841
  /* @__PURE__ */ c(Qe, { className: "text-lg", children: f })
@@ -5849,7 +5843,7 @@ const qo = {
5849
5843
  /* @__PURE__ */ z("div", { className: "text-center w-full space-y-1", children: [
5850
5844
  /* @__PURE__ */ z("div", { children: [
5851
5845
  /* @__PURE__ */ c("p", { className: "text-xs text-foreground/70 font-medium tracking-wide", children: "Welcome," }),
5852
- /* @__PURE__ */ c("h2", { className: "text-lg font-bold text-foreground leading-tight", children: u })
5846
+ /* @__PURE__ */ c("h2", { className: "text-lg font-bold text-foreground leading-tight", children: d })
5853
5847
  ] }),
5854
5848
  t && /* @__PURE__ */ c("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */ z("div", { className: "flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75", children: [
5855
5849
  /* @__PURE__ */ c(Ye, { className: "h-3 w-3", "aria-hidden": "true" }),
@@ -5861,7 +5855,7 @@ const qo = {
5861
5855
  /* @__PURE__ */ c("p", { className: "pt-2 text-center text-xs text-muted-foreground", children: "Using fallback profile (customer API returned no data)" })
5862
5856
  ] }) });
5863
5857
  }
5864
- const i = `${((l = n.first_name) == null ? void 0 : l[0]) || ""}${((d = n.last_name) == null ? void 0 : d[0]) || ""}`;
5858
+ const i = `${((l = n.first_name) == null ? void 0 : l[0]) || ""}${((u = n.last_name) == null ? void 0 : u[0]) || ""}`;
5865
5859
  return /* @__PURE__ */ c(me, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ c(pe, { className: "p-4 pb-0 pt-2", children: /* @__PURE__ */ z("div", { className: "flex flex-col items-center", children: [
5866
5860
  /* @__PURE__ */ z(Ke, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
5867
5861
  /* @__PURE__ */ c(
@@ -5899,7 +5893,7 @@ const qo = {
5899
5893
  n.disconnect(), r == null || r.remove();
5900
5894
  };
5901
5895
  }, [e, t]);
5902
- }, ti = ({ customization: e }) => {
5896
+ }, ei = ({ customization: e }) => {
5903
5897
  const t = ae(null);
5904
5898
  return Jo("widget_conversations", t), B(() => {
5905
5899
  !window.zE || !t.current || e && window.zE("messenger:set", "customization", {
@@ -5912,7 +5906,7 @@ const qo = {
5912
5906
  className: "h-full overflow-hidden"
5913
5907
  }
5914
5908
  );
5915
- }, oi = ({ customization: e }) => {
5909
+ }, ti = ({ customization: e }) => {
5916
5910
  const t = ae(null);
5917
5911
  return Jo("widget_messages", t), B(() => {
5918
5912
  !window.zE || !t.current || e && window.zE("messenger:set", "customization", {
@@ -5925,7 +5919,7 @@ const qo = {
5925
5919
  className: "h-full overflow-hidden"
5926
5920
  }
5927
5921
  );
5928
- }, Ge = 25, qe = 75, ui = ({
5922
+ }, Ge = 25, qe = 75, di = ({
5929
5923
  header: e,
5930
5924
  buttons: t,
5931
5925
  hostBase: o,
@@ -5936,7 +5930,7 @@ const qo = {
5936
5930
  const a = Math.max(
5937
5931
  Ge,
5938
5932
  Math.min(qe, s)
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", {
5933
+ ), [i, l] = U("account"), [u, d] = 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", {
5940
5934
  mode: "embedded",
5941
5935
  conversationList: { targetElement: "#widget_conversations" },
5942
5936
  messageLog: { targetElement: "#widget_messages" }
@@ -5976,7 +5970,7 @@ const qo = {
5976
5970
  Ge,
5977
5971
  Math.min(qe, O)
5978
5972
  );
5979
- u(Z);
5973
+ d(Z);
5980
5974
  }, _ = () => {
5981
5975
  h(!1), document.body.style.cursor = "", document.body.style.userSelect = "";
5982
5976
  };
@@ -5997,7 +5991,7 @@ const qo = {
5997
5991
  }, []);
5998
5992
  const A = Re((E) => {
5999
5993
  if (E.detail === 2) {
6000
- u(a);
5994
+ d(a);
6001
5995
  return;
6002
5996
  }
6003
5997
  E.preventDefault(), h(!0);
@@ -6013,7 +6007,7 @@ const qo = {
6013
6007
  {
6014
6008
  "data-id": "primary-panel",
6015
6009
  className: "min-h-0 min-w-0 flex-none overflow-hidden flex flex-col",
6016
- style: { flexBasis: `${d}%` },
6010
+ style: { flexBasis: `${u}%` },
6017
6011
  children: [
6018
6012
  /* @__PURE__ */ z("div", { className: "flex items-center justify-between px-4 py-3", children: [
6019
6013
  /* @__PURE__ */ c("h2", { className: "font-semibold text-sm text-foreground", children: i === "account" ? "My Account" : "My Conversations" }),
@@ -6052,7 +6046,7 @@ const qo = {
6052
6046
  ] }),
6053
6047
  /* @__PURE__ */ z("div", { className: "flex-1 overflow-y-auto p-4 relative", children: [
6054
6048
  /* @__PURE__ */ z("div", { className: T("flex flex-col gap-2", i === "conversations" && "hidden"), children: [
6055
- /* @__PURE__ */ c(ei, { customerId: r, customerEmail: n, hostBase: o, children: /* @__PURE__ */ c(
6049
+ /* @__PURE__ */ c(Qa, { customerId: r, customerEmail: n, hostBase: o, children: /* @__PURE__ */ c(
6056
6050
  Ce,
6057
6051
  {
6058
6052
  target: "slot.header",
@@ -6072,7 +6066,7 @@ const qo = {
6072
6066
  /* @__PURE__ */ c("div", { className: T(
6073
6067
  "h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",
6074
6068
  i === "account" && "hidden"
6075
- ), children: /* @__PURE__ */ c(ti, {}) })
6069
+ ), children: /* @__PURE__ */ c(ei, {}) })
6076
6070
  ] })
6077
6071
  ]
6078
6072
  }
@@ -6082,9 +6076,9 @@ const qo = {
6082
6076
  {
6083
6077
  "data-id": "secondary-panel",
6084
6078
  className: "min-h-0 min-w-0 flex-none flex flex-col bg-white",
6085
- style: { flexBasis: `${100 - d}%` },
6079
+ style: { flexBasis: `${100 - u}%` },
6086
6080
  children: [
6087
- /* @__PURE__ */ c("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ c(oi, {}) }),
6081
+ /* @__PURE__ */ c("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ c(ti, {}) }),
6088
6082
  /* @__PURE__ */ z("div", { className: "flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500", children: [
6089
6083
  /* @__PURE__ */ c(
6090
6084
  Ce,
@@ -6094,7 +6088,7 @@ const qo = {
6094
6088
  className: "flex items-center gap-1",
6095
6089
  fallback: /* @__PURE__ */ z(he, { children: [
6096
6090
  /* @__PURE__ */ c("div", { children: "powered by" }),
6097
- /* @__PURE__ */ c(Ja, { href: "https://zendesk.com", children: "Zendesk" })
6091
+ /* @__PURE__ */ c(Ka, { href: "https://zendesk.com", children: "Zendesk" })
6098
6092
  ] })
6099
6093
  }
6100
6094
  ),
@@ -6122,14 +6116,14 @@ const qo = {
6122
6116
  "group/resize absolute z-20 flex items-center justify-center",
6123
6117
  f ? "top-0 bottom-0 w-3 -ml-2.5 cursor-col-resize" : "w-full h-3 -mt-2.5 cursor-row-resize"
6124
6118
  ),
6125
- style: f ? { left: `${d}%` } : { top: `${d}%` },
6119
+ style: f ? { left: `${u}%` } : { top: `${u}%` },
6126
6120
  onMouseDown: A,
6127
6121
  role: "separator",
6128
6122
  "aria-label": "Resize panels",
6129
6123
  "aria-orientation": f ? "vertical" : "horizontal",
6130
6124
  "aria-valuemin": Ge,
6131
6125
  "aria-valuemax": qe,
6132
- "aria-valuenow": Math.round(d),
6126
+ "aria-valuenow": Math.round(u),
6133
6127
  children: /* @__PURE__ */ c(
6134
6128
  "div",
6135
6129
  {
@@ -6151,10 +6145,10 @@ const qo = {
6151
6145
  )
6152
6146
  ] })
6153
6147
  ] });
6154
- }, ri = "ze-snippet", Tt = (e) => `https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(e)}`, ni = (e, t = {}) => {
6148
+ }, oi = "ze-snippet", Tt = (e) => `https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(e)}`, ri = (e, t = {}) => {
6155
6149
  if (typeof window > "u" || typeof document > "u" || !e)
6156
6150
  return Promise.resolve();
6157
- const { autorender: o = !1, scriptId: r = ri } = t;
6151
+ const { autorender: o = !1, scriptId: r = oi } = t;
6158
6152
  window.zEMessenger = { autorender: o };
6159
6153
  const n = document.getElementById(r);
6160
6154
  if (n) {
@@ -6166,16 +6160,16 @@ const qo = {
6166
6160
  const i = document.createElement("script");
6167
6161
  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);
6168
6162
  });
6169
- }, fi = ({ config: e }) => (B(() => {
6170
- e.snippetKey && ni(e.snippetKey, { autorender: e.autorender }).catch((t) => {
6163
+ }, ui = ({ config: e }) => (B(() => {
6164
+ e.snippetKey && ri(e.snippetKey, { autorender: e.autorender }).catch((t) => {
6171
6165
  console.error("Failed to initialize Zendesk snippet:", t);
6172
6166
  });
6173
6167
  }, [e.autorender, e.snippetKey]), null);
6174
6168
  export {
6175
- li as ExtensionSetup,
6176
- di as Widget,
6177
- ci as WidgetComponent,
6178
- ui as ZendeskMessenger,
6179
- fi as ZendeskScript,
6180
- ni as loadZendeskSnippet
6169
+ ii as ExtensionSetup,
6170
+ ci as Widget,
6171
+ li as WidgetComponent,
6172
+ di as ZendeskMessenger,
6173
+ ui as ZendeskScript,
6174
+ ri as loadZendeskSnippet
6181
6175
  };