welcome-ui 1.0.0-beta.1 → 1.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/Accordion.js +89 -0
  2. package/dist/Accordion.mjs +579 -0
  3. package/dist/Alert.js +1 -0
  4. package/dist/Alert.mjs +7 -0
  5. package/dist/AspectRatio.js +29 -0
  6. package/dist/AspectRatio.mjs +41 -0
  7. package/dist/Avatar.js +5 -0
  8. package/dist/Avatar.mjs +55 -0
  9. package/dist/Badge.js +17 -0
  10. package/dist/Badge.mjs +53 -0
  11. package/dist/Box.js +1 -0
  12. package/dist/Box.mjs +8 -0
  13. package/dist/Breadcrumb.js +54 -0
  14. package/dist/Breadcrumb.mjs +439 -0
  15. package/dist/Flex.js +1 -0
  16. package/dist/Flex.mjs +26 -0
  17. package/dist/System.js +1 -0
  18. package/dist/System.mjs +51 -0
  19. package/dist/X5NMLKT6-BC1Q56kB.mjs +1258 -0
  20. package/dist/X5NMLKT6-vrNG8i_R.js +14 -0
  21. package/dist/index-0MPAX4B5.mjs +320 -0
  22. package/dist/index-BNA_A0oa.js +155 -0
  23. package/dist/index-BXJQXgy9.js +13 -0
  24. package/dist/index-Bwrtxit1.mjs +84 -0
  25. package/dist/index-Ct2FOeyM.js +17 -0
  26. package/dist/index-DRNn5iIc.js +142 -0
  27. package/dist/index-Du8Nrf16.mjs +128 -0
  28. package/dist/index-MifIgNHW.mjs +47 -0
  29. package/dist/index-V28zHt_Z.js +68 -0
  30. package/dist/index-WmqrMIzg.mjs +19070 -0
  31. package/dist/index.js +147 -5
  32. package/dist/index.mjs +767 -217
  33. package/dist/types/components/Accordion/index.d.ts +16 -0
  34. package/dist/types/components/Accordion/styles.d.ts +6 -0
  35. package/dist/types/components/Accordion/theme.d.ts +10 -0
  36. package/dist/types/components/Alert/Title.d.ts +7 -0
  37. package/dist/types/components/Alert/index.d.ts +24 -0
  38. package/dist/types/components/Alert/styles.d.ts +6 -0
  39. package/dist/types/components/Alert/theme.d.ts +15 -0
  40. package/dist/types/components/AspectRatio/index.d.ts +6 -0
  41. package/dist/types/components/AspectRatio/styles.d.ts +2 -0
  42. package/dist/types/components/Avatar/index.d.ts +16 -0
  43. package/dist/types/components/Avatar/styles.d.ts +2 -0
  44. package/dist/types/components/Avatar/theme.d.ts +9 -0
  45. package/dist/types/components/Avatar/utils.d.ts +3 -0
  46. package/dist/types/components/Badge/index.d.ts +11 -0
  47. package/dist/types/components/Badge/styles.d.ts +8 -0
  48. package/dist/types/components/Badge/theme.d.ts +18 -0
  49. package/dist/types/components/Box/index.d.ts +3 -0
  50. package/dist/types/components/Breadcrumb/Item.d.ts +13 -0
  51. package/dist/types/components/Breadcrumb/Item.styles.d.ts +2 -0
  52. package/dist/types/components/Breadcrumb/index.d.ts +18 -0
  53. package/dist/types/components/Breadcrumb/styles.d.ts +6 -0
  54. package/dist/types/components/Breadcrumb/theme.d.ts +12 -0
  55. package/dist/types/components/Button/index.d.ts +21 -0
  56. package/dist/types/components/Button/styles.d.ts +2 -0
  57. package/dist/types/components/Button/theme.d.ts +13 -0
  58. package/dist/types/components/ButtonGroup/index.d.ts +15 -0
  59. package/dist/types/components/ButtonGroup/styles.d.ts +1 -0
  60. package/dist/types/components/Card/Cover.d.ts +10 -0
  61. package/dist/types/components/Card/Cover.styles.d.ts +1 -0
  62. package/dist/types/components/Card/index.d.ts +8 -0
  63. package/dist/types/components/Card/styles.d.ts +2 -0
  64. package/dist/types/components/Card/theme.d.ts +6 -0
  65. package/dist/types/components/ClearButton/index.d.ts +5 -0
  66. package/dist/types/components/ClearButton/styles.d.ts +1 -0
  67. package/dist/types/components/CloseButton/index.d.ts +3 -0
  68. package/dist/types/components/CloseButton/styles.d.ts +1 -0
  69. package/dist/types/components/Flex/index.d.ts +19 -0
  70. package/dist/types/components/System/index.d.ts +40 -0
  71. package/dist/types/components/WuiProvider/font.d.ts +16 -0
  72. package/dist/types/components/WuiProvider/hide-focus-rings-root.d.ts +8 -0
  73. package/dist/types/components/WuiProvider/index.d.ts +11 -0
  74. package/dist/types/components/WuiProvider/styles.d.ts +5 -0
  75. package/dist/types/components/index.d.ts +15 -0
  76. package/dist/types/index.d.ts +2 -0
  77. package/dist/types/theme/borders.d.ts +6 -0
  78. package/dist/types/theme/colors.d.ts +346 -0
  79. package/dist/types/theme/dark.d.ts +7 -0
  80. package/dist/types/theme/focus.d.ts +10 -0
  81. package/dist/types/theme/fonts.d.ts +18 -0
  82. package/dist/types/theme/index.d.ts +76 -0
  83. package/dist/types/theme/radii.d.ts +12 -0
  84. package/dist/types/theme/screens.d.ts +13 -0
  85. package/dist/types/theme/selection.d.ts +4 -0
  86. package/dist/types/theme/shadows.d.ts +5 -0
  87. package/dist/types/theme/space.d.ts +18 -0
  88. package/dist/types/theme/transitions.d.ts +13 -0
  89. package/dist/types/theme/typography.d.ts +133 -0
  90. package/dist/types/theme/underline.d.ts +9 -0
  91. package/package.json +7 -2
  92. package/dist/Test.js +0 -3
  93. package/dist/Test.mjs +0 -9
@@ -0,0 +1,1258 @@
1
+ "use client";
2
+ import * as $ from "react";
3
+ import _r, { isValidElement as ot, useLayoutEffect as at, useEffect as B, useRef as z, useCallback as wr, useMemo as Ae, useState as ne, createContext as it, useContext as ut } from "react";
4
+ var st = Object.defineProperty, ct = Object.defineProperties, ft = Object.getOwnPropertyDescriptors, ge = Object.getOwnPropertySymbols, Rr = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable, ur = (e, t, n) => t in e ? st(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, T = (e, t) => {
5
+ for (var n in t || (t = {}))
6
+ Rr.call(t, n) && ur(e, n, t[n]);
7
+ if (ge)
8
+ for (var n of ge(t))
9
+ Pr.call(t, n) && ur(e, n, t[n]);
10
+ return e;
11
+ }, N = (e, t) => ct(e, ft(t)), le = (e, t) => {
12
+ var n = {};
13
+ for (var o in e)
14
+ Rr.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
15
+ if (e != null && ge)
16
+ for (var o of ge(e))
17
+ t.indexOf(o) < 0 && Pr.call(e, o) && (n[o] = e[o]);
18
+ return n;
19
+ }, lt = Object.defineProperty, dt = Object.defineProperties, pt = Object.getOwnPropertyDescriptors, sr = Object.getOwnPropertySymbols, vt = Object.prototype.hasOwnProperty, yt = Object.prototype.propertyIsEnumerable, cr = (e, t, n) => t in e ? lt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, bt = (e, t) => {
20
+ for (var n in t || (t = {}))
21
+ vt.call(t, n) && cr(e, n, t[n]);
22
+ if (sr)
23
+ for (var n of sr(t))
24
+ yt.call(t, n) && cr(e, n, t[n]);
25
+ return e;
26
+ }, rn = (e, t) => dt(e, pt(t));
27
+ function tn(...e) {
28
+ }
29
+ function nn(e, t) {
30
+ if (mt(e)) {
31
+ const n = gt(t) ? t() : t;
32
+ return e(n);
33
+ }
34
+ return e;
35
+ }
36
+ function mt(e) {
37
+ return typeof e == "function";
38
+ }
39
+ function gt(e) {
40
+ return typeof e == "function";
41
+ }
42
+ function Ie(e, t) {
43
+ return typeof Object.hasOwn == "function" ? Object.hasOwn(e, t) : Object.prototype.hasOwnProperty.call(e, t);
44
+ }
45
+ function on(...e) {
46
+ return (...t) => {
47
+ for (const n of e)
48
+ typeof n == "function" && n(...t);
49
+ };
50
+ }
51
+ function an(e, t) {
52
+ const n = bt({}, e);
53
+ for (const o of t)
54
+ Ie(n, o) && delete n[o];
55
+ return n;
56
+ }
57
+ function un(e, t) {
58
+ const n = {};
59
+ for (const o of t)
60
+ Ie(e, o) && (n[o] = e[o]);
61
+ return n;
62
+ }
63
+ function sn(e) {
64
+ return e;
65
+ }
66
+ function cn(e, t) {
67
+ if (!e)
68
+ throw typeof t != "string" ? new Error("Invariant failed") : new Error(t);
69
+ }
70
+ function fn(e) {
71
+ return Object.keys(e);
72
+ }
73
+ function Cr(e) {
74
+ return e.disabled || e["aria-disabled"] === !0 || e["aria-disabled"] === "true";
75
+ }
76
+ function Et(e) {
77
+ const t = {};
78
+ for (const n in e)
79
+ e[n] !== void 0 && (t[n] = e[n]);
80
+ return t;
81
+ }
82
+ function ln(...e) {
83
+ for (const t of e)
84
+ if (t !== void 0) return t;
85
+ }
86
+ function ht(e, t) {
87
+ typeof e == "function" ? e(t) : e && (e.current = t);
88
+ }
89
+ function _t(e) {
90
+ return !e || !ot(e) ? !1 : "ref" in e.props || "ref" in e;
91
+ }
92
+ function wt(e) {
93
+ return _t(e) ? T({}, e.props).ref || e.ref : null;
94
+ }
95
+ function Rt(e, t) {
96
+ const n = T({}, e);
97
+ for (const o in t) {
98
+ if (!Ie(t, o)) continue;
99
+ if (o === "className") {
100
+ const u = "className";
101
+ n[u] = e[u] ? `${e[u]} ${t[u]}` : t[u];
102
+ continue;
103
+ }
104
+ if (o === "style") {
105
+ const u = "style";
106
+ n[u] = e[u] ? T(T({}, e[u]), t[u]) : t[u];
107
+ continue;
108
+ }
109
+ const s = t[o];
110
+ if (typeof s == "function" && o.startsWith("on")) {
111
+ const u = e[o];
112
+ if (typeof u == "function") {
113
+ n[o] = (...b) => {
114
+ s(...b), u(...b);
115
+ };
116
+ continue;
117
+ }
118
+ }
119
+ n[o] = s;
120
+ }
121
+ return n;
122
+ }
123
+ var he = Pt();
124
+ function Pt() {
125
+ var e;
126
+ return typeof window < "u" && !!((e = window.document) != null && e.createElement);
127
+ }
128
+ function fr(e) {
129
+ return e ? "self" in e ? e.document : e.ownerDocument || document : document;
130
+ }
131
+ function Ne(e, t = !1) {
132
+ const { activeElement: n } = fr(e);
133
+ if (!(n != null && n.nodeName))
134
+ return null;
135
+ if (Ct(n) && n.contentDocument)
136
+ return Ne(
137
+ n.contentDocument.body,
138
+ t
139
+ );
140
+ if (t) {
141
+ const o = n.getAttribute("aria-activedescendant");
142
+ if (o) {
143
+ const s = fr(n).getElementById(o);
144
+ if (s)
145
+ return s;
146
+ }
147
+ }
148
+ return n;
149
+ }
150
+ function Me(e, t) {
151
+ return e === t || e.contains(t);
152
+ }
153
+ function Ct(e) {
154
+ return e.tagName === "IFRAME";
155
+ }
156
+ function oe(e) {
157
+ const t = e.tagName.toLowerCase();
158
+ return t === "button" ? !0 : t === "input" && e.type ? Tt.indexOf(e.type) !== -1 : !1;
159
+ }
160
+ var Tt = [
161
+ "button",
162
+ "color",
163
+ "file",
164
+ "image",
165
+ "reset",
166
+ "submit"
167
+ ];
168
+ function Ot(e) {
169
+ if (typeof e.checkVisibility == "function")
170
+ return e.checkVisibility();
171
+ const t = e;
172
+ return t.offsetWidth > 0 || t.offsetHeight > 0 || e.getClientRects().length > 0;
173
+ }
174
+ function St(e) {
175
+ try {
176
+ const t = e instanceof HTMLInputElement && e.selectionStart !== null, n = e.tagName === "TEXTAREA";
177
+ return t || n || !1;
178
+ } catch {
179
+ return !1;
180
+ }
181
+ }
182
+ function xt() {
183
+ return he ? /mac|iphone|ipad|ipod/i.test(navigator.platform) : !1;
184
+ }
185
+ function kt() {
186
+ return he && xt() && /apple/i.test(navigator.vendor);
187
+ }
188
+ function Dt() {
189
+ return he && /firefox\//i.test(navigator.userAgent);
190
+ }
191
+ function Ft(e) {
192
+ return !!(e.currentTarget && !Me(e.currentTarget, e.target));
193
+ }
194
+ function De(e) {
195
+ return e.target === e.currentTarget;
196
+ }
197
+ function lr(e, t) {
198
+ const n = new MouseEvent("click", t);
199
+ return e.dispatchEvent(n);
200
+ }
201
+ function jt(e, t) {
202
+ const n = e.currentTarget, o = e.relatedTarget;
203
+ return !o || !Me(n, o);
204
+ }
205
+ function me(e, t, n, o) {
206
+ const u = ((l) => {
207
+ const m = requestAnimationFrame(l);
208
+ return () => cancelAnimationFrame(m);
209
+ })(() => {
210
+ e.removeEventListener(t, b, !0), n();
211
+ }), b = () => {
212
+ u(), n();
213
+ };
214
+ return e.addEventListener(t, b, { once: !0, capture: !0 }), u;
215
+ }
216
+ function Fe(e, t, n, o = window) {
217
+ const s = [];
218
+ try {
219
+ o.document.addEventListener(e, t, n);
220
+ for (const b of Array.from(o.frames))
221
+ s.push(Fe(e, t, n, b));
222
+ } catch {
223
+ }
224
+ return () => {
225
+ try {
226
+ o.document.removeEventListener(e, t, n);
227
+ } catch {
228
+ }
229
+ for (const b of s)
230
+ b();
231
+ };
232
+ }
233
+ var Le = T({}, $), dr = Le.useId;
234
+ Le.useDeferredValue;
235
+ var pr = Le.useInsertionEffect, Ve = he ? at : B;
236
+ function dn(e) {
237
+ const t = z(e);
238
+ return Ve(() => {
239
+ t.current = e;
240
+ }), t;
241
+ }
242
+ function W(e) {
243
+ const t = z(() => {
244
+ throw new Error("Cannot call an event handler while rendering.");
245
+ });
246
+ return pr ? pr(() => {
247
+ t.current = e;
248
+ }) : t.current = e, wr((...n) => {
249
+ var o;
250
+ return (o = t.current) == null ? void 0 : o.call(t, ...n);
251
+ }, []);
252
+ }
253
+ function _e(...e) {
254
+ return Ae(() => {
255
+ if (e.some(Boolean))
256
+ return (t) => {
257
+ for (const n of e)
258
+ ht(n, t);
259
+ };
260
+ }, e);
261
+ }
262
+ function pn(e) {
263
+ if (dr) {
264
+ const o = dr();
265
+ return e || o;
266
+ }
267
+ const [t, n] = ne(e);
268
+ return Ve(() => {
269
+ if (e || t) return;
270
+ const o = Math.random().toString(36).slice(2, 8);
271
+ n(`id-${o}`);
272
+ }, [e, t]), e || t;
273
+ }
274
+ function Tr(e, t) {
275
+ const n = (u) => {
276
+ if (typeof u == "string")
277
+ return u;
278
+ }, [o, s] = ne(() => n(t));
279
+ return Ve(() => {
280
+ const u = e && "current" in e ? e.current : e;
281
+ s((u == null ? void 0 : u.tagName.toLowerCase()) || n(t));
282
+ }, [e, t]), o;
283
+ }
284
+ function vn(e, t) {
285
+ const n = z(!1);
286
+ B(() => {
287
+ if (n.current)
288
+ return e();
289
+ n.current = !0;
290
+ }, t), B(
291
+ () => () => {
292
+ n.current = !1;
293
+ },
294
+ []
295
+ );
296
+ }
297
+ function yn(e) {
298
+ return W(
299
+ typeof e == "function" ? e : () => e
300
+ );
301
+ }
302
+ function bn(e, t, n = []) {
303
+ const o = wr(
304
+ (s) => (e.wrapElement && (s = e.wrapElement(s)), t(s)),
305
+ [...n, e.wrapElement]
306
+ );
307
+ return N(T({}, e), { wrapElement: o });
308
+ }
309
+ function At(e, t, n) {
310
+ const o = e.onLoadedMetadataCapture, s = Ae(() => Object.assign(() => {
311
+ }, N(T({}, o), { [t]: n })), [o, t, n]);
312
+ return [o == null ? void 0 : o[t], { onLoadedMetadataCapture: s }];
313
+ }
314
+ var je = { exports: {} }, ce = {}, vr;
315
+ function It() {
316
+ if (vr) return ce;
317
+ vr = 1;
318
+ var e = _r, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
319
+ function b(l, m, g) {
320
+ var v, _ = {}, O = null, M = null;
321
+ g !== void 0 && (O = "" + g), m.key !== void 0 && (O = "" + m.key), m.ref !== void 0 && (M = m.ref);
322
+ for (v in m) o.call(m, v) && !u.hasOwnProperty(v) && (_[v] = m[v]);
323
+ if (l && l.defaultProps) for (v in m = l.defaultProps, m) _[v] === void 0 && (_[v] = m[v]);
324
+ return { $$typeof: t, type: l, key: O, ref: M, props: _, _owner: s.current };
325
+ }
326
+ return ce.Fragment = n, ce.jsx = b, ce.jsxs = b, ce;
327
+ }
328
+ var fe = {}, yr;
329
+ function Nt() {
330
+ return yr || (yr = 1, process.env.NODE_ENV !== "production" && function() {
331
+ var e = _r, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), l = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), X = Symbol.iterator, H = "@@iterator";
332
+ function Z(r) {
333
+ if (r === null || typeof r != "object")
334
+ return null;
335
+ var a = X && r[X] || r[H];
336
+ return typeof a == "function" ? a : null;
337
+ }
338
+ var F = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
339
+ function P(r) {
340
+ {
341
+ for (var a = arguments.length, i = new Array(a > 1 ? a - 1 : 0), f = 1; f < a; f++)
342
+ i[f - 1] = arguments[f];
343
+ E("error", r, i);
344
+ }
345
+ }
346
+ function E(r, a, i) {
347
+ {
348
+ var f = F.ReactDebugCurrentFrame, y = f.getStackAddendum();
349
+ y !== "" && (a += "%s", i = i.concat([y]));
350
+ var h = i.map(function(p) {
351
+ return String(p);
352
+ });
353
+ h.unshift("Warning: " + a), Function.prototype.apply.call(console[r], console, h);
354
+ }
355
+ }
356
+ var I = !1, L = !1, K = !1, U = !1, ae = !1, Y;
357
+ Y = Symbol.for("react.module.reference");
358
+ function ie(r) {
359
+ return !!(typeof r == "string" || typeof r == "function" || r === o || r === u || ae || r === s || r === g || r === v || U || r === M || I || L || K || typeof r == "object" && r !== null && (r.$$typeof === O || r.$$typeof === _ || r.$$typeof === b || r.$$typeof === l || r.$$typeof === m || // This needs to include all possible module reference object
360
+ // types supported by any Flight configuration anywhere since
361
+ // we don't know which Flight build this will end up being used
362
+ // with.
363
+ r.$$typeof === Y || r.getModuleId !== void 0));
364
+ }
365
+ function Q(r, a, i) {
366
+ var f = r.displayName;
367
+ if (f)
368
+ return f;
369
+ var y = a.displayName || a.name || "";
370
+ return y !== "" ? i + "(" + y + ")" : i;
371
+ }
372
+ function q(r) {
373
+ return r.displayName || "Context";
374
+ }
375
+ function j(r) {
376
+ if (r == null)
377
+ return null;
378
+ if (typeof r.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
379
+ return r.displayName || r.name || null;
380
+ if (typeof r == "string")
381
+ return r;
382
+ switch (r) {
383
+ case o:
384
+ return "Fragment";
385
+ case n:
386
+ return "Portal";
387
+ case u:
388
+ return "Profiler";
389
+ case s:
390
+ return "StrictMode";
391
+ case g:
392
+ return "Suspense";
393
+ case v:
394
+ return "SuspenseList";
395
+ }
396
+ if (typeof r == "object")
397
+ switch (r.$$typeof) {
398
+ case l:
399
+ var a = r;
400
+ return q(a) + ".Consumer";
401
+ case b:
402
+ var i = r;
403
+ return q(i._context) + ".Provider";
404
+ case m:
405
+ return Q(r, r.render, "ForwardRef");
406
+ case _:
407
+ var f = r.displayName || null;
408
+ return f !== null ? f : j(r.type) || "Memo";
409
+ case O: {
410
+ var y = r, h = y._payload, p = y._init;
411
+ try {
412
+ return j(p(h));
413
+ } catch {
414
+ return null;
415
+ }
416
+ }
417
+ }
418
+ return null;
419
+ }
420
+ var A = Object.assign, G = 0, c, w, S, V, de, ue, Ue;
421
+ function Ye() {
422
+ }
423
+ Ye.__reactDisabledLog = !0;
424
+ function Dr() {
425
+ {
426
+ if (G === 0) {
427
+ c = console.log, w = console.info, S = console.warn, V = console.error, de = console.group, ue = console.groupCollapsed, Ue = console.groupEnd;
428
+ var r = {
429
+ configurable: !0,
430
+ enumerable: !0,
431
+ value: Ye,
432
+ writable: !0
433
+ };
434
+ Object.defineProperties(console, {
435
+ info: r,
436
+ log: r,
437
+ warn: r,
438
+ error: r,
439
+ group: r,
440
+ groupCollapsed: r,
441
+ groupEnd: r
442
+ });
443
+ }
444
+ G++;
445
+ }
446
+ }
447
+ function Fr() {
448
+ {
449
+ if (G--, G === 0) {
450
+ var r = {
451
+ configurable: !0,
452
+ enumerable: !0,
453
+ writable: !0
454
+ };
455
+ Object.defineProperties(console, {
456
+ log: A({}, r, {
457
+ value: c
458
+ }),
459
+ info: A({}, r, {
460
+ value: w
461
+ }),
462
+ warn: A({}, r, {
463
+ value: S
464
+ }),
465
+ error: A({}, r, {
466
+ value: V
467
+ }),
468
+ group: A({}, r, {
469
+ value: de
470
+ }),
471
+ groupCollapsed: A({}, r, {
472
+ value: ue
473
+ }),
474
+ groupEnd: A({}, r, {
475
+ value: Ue
476
+ })
477
+ });
478
+ }
479
+ G < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
480
+ }
481
+ }
482
+ var we = F.ReactCurrentDispatcher, Re;
483
+ function pe(r, a, i) {
484
+ {
485
+ if (Re === void 0)
486
+ try {
487
+ throw Error();
488
+ } catch (y) {
489
+ var f = y.stack.trim().match(/\n( *(at )?)/);
490
+ Re = f && f[1] || "";
491
+ }
492
+ return `
493
+ ` + Re + r;
494
+ }
495
+ }
496
+ var Pe = !1, ve;
497
+ {
498
+ var jr = typeof WeakMap == "function" ? WeakMap : Map;
499
+ ve = new jr();
500
+ }
501
+ function qe(r, a) {
502
+ if (!r || Pe)
503
+ return "";
504
+ {
505
+ var i = ve.get(r);
506
+ if (i !== void 0)
507
+ return i;
508
+ }
509
+ var f;
510
+ Pe = !0;
511
+ var y = Error.prepareStackTrace;
512
+ Error.prepareStackTrace = void 0;
513
+ var h;
514
+ h = we.current, we.current = null, Dr();
515
+ try {
516
+ if (a) {
517
+ var p = function() {
518
+ throw Error();
519
+ };
520
+ if (Object.defineProperty(p.prototype, "props", {
521
+ set: function() {
522
+ throw Error();
523
+ }
524
+ }), typeof Reflect == "object" && Reflect.construct) {
525
+ try {
526
+ Reflect.construct(p, []);
527
+ } catch (k) {
528
+ f = k;
529
+ }
530
+ Reflect.construct(r, [], p);
531
+ } else {
532
+ try {
533
+ p.call();
534
+ } catch (k) {
535
+ f = k;
536
+ }
537
+ r.call(p.prototype);
538
+ }
539
+ } else {
540
+ try {
541
+ throw Error();
542
+ } catch (k) {
543
+ f = k;
544
+ }
545
+ r();
546
+ }
547
+ } catch (k) {
548
+ if (k && f && typeof k.stack == "string") {
549
+ for (var d = k.stack.split(`
550
+ `), x = f.stack.split(`
551
+ `), R = d.length - 1, C = x.length - 1; R >= 1 && C >= 0 && d[R] !== x[C]; )
552
+ C--;
553
+ for (; R >= 1 && C >= 0; R--, C--)
554
+ if (d[R] !== x[C]) {
555
+ if (R !== 1 || C !== 1)
556
+ do
557
+ if (R--, C--, C < 0 || d[R] !== x[C]) {
558
+ var D = `
559
+ ` + d[R].replace(" at new ", " at ");
560
+ return r.displayName && D.includes("<anonymous>") && (D = D.replace("<anonymous>", r.displayName)), typeof r == "function" && ve.set(r, D), D;
561
+ }
562
+ while (R >= 1 && C >= 0);
563
+ break;
564
+ }
565
+ }
566
+ } finally {
567
+ Pe = !1, we.current = h, Fr(), Error.prepareStackTrace = y;
568
+ }
569
+ var re = r ? r.displayName || r.name : "", J = re ? pe(re) : "";
570
+ return typeof r == "function" && ve.set(r, J), J;
571
+ }
572
+ function Ar(r, a, i) {
573
+ return qe(r, !1);
574
+ }
575
+ function Ir(r) {
576
+ var a = r.prototype;
577
+ return !!(a && a.isReactComponent);
578
+ }
579
+ function ye(r, a, i) {
580
+ if (r == null)
581
+ return "";
582
+ if (typeof r == "function")
583
+ return qe(r, Ir(r));
584
+ if (typeof r == "string")
585
+ return pe(r);
586
+ switch (r) {
587
+ case g:
588
+ return pe("Suspense");
589
+ case v:
590
+ return pe("SuspenseList");
591
+ }
592
+ if (typeof r == "object")
593
+ switch (r.$$typeof) {
594
+ case m:
595
+ return Ar(r.render);
596
+ case _:
597
+ return ye(r.type, a, i);
598
+ case O: {
599
+ var f = r, y = f._payload, h = f._init;
600
+ try {
601
+ return ye(h(y), a, i);
602
+ } catch {
603
+ }
604
+ }
605
+ }
606
+ return "";
607
+ }
608
+ var se = Object.prototype.hasOwnProperty, Ge = {}, Je = F.ReactDebugCurrentFrame;
609
+ function be(r) {
610
+ if (r) {
611
+ var a = r._owner, i = ye(r.type, r._source, a ? a.type : null);
612
+ Je.setExtraStackFrame(i);
613
+ } else
614
+ Je.setExtraStackFrame(null);
615
+ }
616
+ function Nr(r, a, i, f, y) {
617
+ {
618
+ var h = Function.call.bind(se);
619
+ for (var p in r)
620
+ if (h(r, p)) {
621
+ var d = void 0;
622
+ try {
623
+ if (typeof r[p] != "function") {
624
+ var x = Error((f || "React class") + ": " + i + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
625
+ throw x.name = "Invariant Violation", x;
626
+ }
627
+ d = r[p](a, p, f, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
628
+ } catch (R) {
629
+ d = R;
630
+ }
631
+ d && !(d instanceof Error) && (be(y), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", f || "React class", i, p, typeof d), be(null)), d instanceof Error && !(d.message in Ge) && (Ge[d.message] = !0, be(y), P("Failed %s type: %s", i, d.message), be(null));
632
+ }
633
+ }
634
+ }
635
+ var Mr = Array.isArray;
636
+ function Ce(r) {
637
+ return Mr(r);
638
+ }
639
+ function Lr(r) {
640
+ {
641
+ var a = typeof Symbol == "function" && Symbol.toStringTag, i = a && r[Symbol.toStringTag] || r.constructor.name || "Object";
642
+ return i;
643
+ }
644
+ }
645
+ function Vr(r) {
646
+ try {
647
+ return ze(r), !1;
648
+ } catch {
649
+ return !0;
650
+ }
651
+ }
652
+ function ze(r) {
653
+ return "" + r;
654
+ }
655
+ function Xe(r) {
656
+ if (Vr(r))
657
+ return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Lr(r)), ze(r);
658
+ }
659
+ var He = F.ReactCurrentOwner, $r = {
660
+ key: !0,
661
+ ref: !0,
662
+ __self: !0,
663
+ __source: !0
664
+ }, Ze, Qe;
665
+ function Wr(r) {
666
+ if (se.call(r, "ref")) {
667
+ var a = Object.getOwnPropertyDescriptor(r, "ref").get;
668
+ if (a && a.isReactWarning)
669
+ return !1;
670
+ }
671
+ return r.ref !== void 0;
672
+ }
673
+ function Br(r) {
674
+ if (se.call(r, "key")) {
675
+ var a = Object.getOwnPropertyDescriptor(r, "key").get;
676
+ if (a && a.isReactWarning)
677
+ return !1;
678
+ }
679
+ return r.key !== void 0;
680
+ }
681
+ function Kr(r, a) {
682
+ typeof r.ref == "string" && He.current;
683
+ }
684
+ function Ur(r, a) {
685
+ {
686
+ var i = function() {
687
+ Ze || (Ze = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
688
+ };
689
+ i.isReactWarning = !0, Object.defineProperty(r, "key", {
690
+ get: i,
691
+ configurable: !0
692
+ });
693
+ }
694
+ }
695
+ function Yr(r, a) {
696
+ {
697
+ var i = function() {
698
+ Qe || (Qe = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
699
+ };
700
+ i.isReactWarning = !0, Object.defineProperty(r, "ref", {
701
+ get: i,
702
+ configurable: !0
703
+ });
704
+ }
705
+ }
706
+ var qr = function(r, a, i, f, y, h, p) {
707
+ var d = {
708
+ // This tag allows us to uniquely identify this as a React Element
709
+ $$typeof: t,
710
+ // Built-in properties that belong on the element
711
+ type: r,
712
+ key: a,
713
+ ref: i,
714
+ props: p,
715
+ // Record the component responsible for creating this element.
716
+ _owner: h
717
+ };
718
+ return d._store = {}, Object.defineProperty(d._store, "validated", {
719
+ configurable: !1,
720
+ enumerable: !1,
721
+ writable: !0,
722
+ value: !1
723
+ }), Object.defineProperty(d, "_self", {
724
+ configurable: !1,
725
+ enumerable: !1,
726
+ writable: !1,
727
+ value: f
728
+ }), Object.defineProperty(d, "_source", {
729
+ configurable: !1,
730
+ enumerable: !1,
731
+ writable: !1,
732
+ value: y
733
+ }), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
734
+ };
735
+ function Gr(r, a, i, f, y) {
736
+ {
737
+ var h, p = {}, d = null, x = null;
738
+ i !== void 0 && (Xe(i), d = "" + i), Br(a) && (Xe(a.key), d = "" + a.key), Wr(a) && (x = a.ref, Kr(a, y));
739
+ for (h in a)
740
+ se.call(a, h) && !$r.hasOwnProperty(h) && (p[h] = a[h]);
741
+ if (r && r.defaultProps) {
742
+ var R = r.defaultProps;
743
+ for (h in R)
744
+ p[h] === void 0 && (p[h] = R[h]);
745
+ }
746
+ if (d || x) {
747
+ var C = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
748
+ d && Ur(p, C), x && Yr(p, C);
749
+ }
750
+ return qr(r, d, x, y, f, He.current, p);
751
+ }
752
+ }
753
+ var Te = F.ReactCurrentOwner, er = F.ReactDebugCurrentFrame;
754
+ function ee(r) {
755
+ if (r) {
756
+ var a = r._owner, i = ye(r.type, r._source, a ? a.type : null);
757
+ er.setExtraStackFrame(i);
758
+ } else
759
+ er.setExtraStackFrame(null);
760
+ }
761
+ var Oe;
762
+ Oe = !1;
763
+ function Se(r) {
764
+ return typeof r == "object" && r !== null && r.$$typeof === t;
765
+ }
766
+ function rr() {
767
+ {
768
+ if (Te.current) {
769
+ var r = j(Te.current.type);
770
+ if (r)
771
+ return `
772
+
773
+ Check the render method of \`` + r + "`.";
774
+ }
775
+ return "";
776
+ }
777
+ }
778
+ function Jr(r) {
779
+ return "";
780
+ }
781
+ var tr = {};
782
+ function zr(r) {
783
+ {
784
+ var a = rr();
785
+ if (!a) {
786
+ var i = typeof r == "string" ? r : r.displayName || r.name;
787
+ i && (a = `
788
+
789
+ Check the top-level render call using <` + i + ">.");
790
+ }
791
+ return a;
792
+ }
793
+ }
794
+ function nr(r, a) {
795
+ {
796
+ if (!r._store || r._store.validated || r.key != null)
797
+ return;
798
+ r._store.validated = !0;
799
+ var i = zr(a);
800
+ if (tr[i])
801
+ return;
802
+ tr[i] = !0;
803
+ var f = "";
804
+ r && r._owner && r._owner !== Te.current && (f = " It was passed a child from " + j(r._owner.type) + "."), ee(r), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, f), ee(null);
805
+ }
806
+ }
807
+ function or(r, a) {
808
+ {
809
+ if (typeof r != "object")
810
+ return;
811
+ if (Ce(r))
812
+ for (var i = 0; i < r.length; i++) {
813
+ var f = r[i];
814
+ Se(f) && nr(f, a);
815
+ }
816
+ else if (Se(r))
817
+ r._store && (r._store.validated = !0);
818
+ else if (r) {
819
+ var y = Z(r);
820
+ if (typeof y == "function" && y !== r.entries)
821
+ for (var h = y.call(r), p; !(p = h.next()).done; )
822
+ Se(p.value) && nr(p.value, a);
823
+ }
824
+ }
825
+ }
826
+ function Xr(r) {
827
+ {
828
+ var a = r.type;
829
+ if (a == null || typeof a == "string")
830
+ return;
831
+ var i;
832
+ if (typeof a == "function")
833
+ i = a.propTypes;
834
+ else if (typeof a == "object" && (a.$$typeof === m || // Note: Memo only checks outer props here.
835
+ // Inner props are checked in the reconciler.
836
+ a.$$typeof === _))
837
+ i = a.propTypes;
838
+ else
839
+ return;
840
+ if (i) {
841
+ var f = j(a);
842
+ Nr(i, r.props, "prop", f, r);
843
+ } else if (a.PropTypes !== void 0 && !Oe) {
844
+ Oe = !0;
845
+ var y = j(a);
846
+ P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
847
+ }
848
+ typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
849
+ }
850
+ }
851
+ function Hr(r) {
852
+ {
853
+ for (var a = Object.keys(r.props), i = 0; i < a.length; i++) {
854
+ var f = a[i];
855
+ if (f !== "children" && f !== "key") {
856
+ ee(r), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), ee(null);
857
+ break;
858
+ }
859
+ }
860
+ r.ref !== null && (ee(r), P("Invalid attribute `ref` supplied to `React.Fragment`."), ee(null));
861
+ }
862
+ }
863
+ var ar = {};
864
+ function ir(r, a, i, f, y, h) {
865
+ {
866
+ var p = ie(r);
867
+ if (!p) {
868
+ var d = "";
869
+ (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (d += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
870
+ var x = Jr();
871
+ x ? d += x : d += rr();
872
+ var R;
873
+ r === null ? R = "null" : Ce(r) ? R = "array" : r !== void 0 && r.$$typeof === t ? (R = "<" + (j(r.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : R = typeof r, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, d);
874
+ }
875
+ var C = Gr(r, a, i, y, h);
876
+ if (C == null)
877
+ return C;
878
+ if (p) {
879
+ var D = a.children;
880
+ if (D !== void 0)
881
+ if (f)
882
+ if (Ce(D)) {
883
+ for (var re = 0; re < D.length; re++)
884
+ or(D[re], r);
885
+ Object.freeze && Object.freeze(D);
886
+ } else
887
+ P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
888
+ else
889
+ or(D, r);
890
+ }
891
+ if (se.call(a, "key")) {
892
+ var J = j(r), k = Object.keys(a).filter(function(nt) {
893
+ return nt !== "key";
894
+ }), xe = k.length > 0 ? "{key: someKey, " + k.join(": ..., ") + ": ...}" : "{key: someKey}";
895
+ if (!ar[J + xe]) {
896
+ var tt = k.length > 0 ? "{" + k.join(": ..., ") + ": ...}" : "{}";
897
+ P(`A props object containing a "key" prop is being spread into JSX:
898
+ let props = %s;
899
+ <%s {...props} />
900
+ React keys must be passed directly to JSX without using spread:
901
+ let props = %s;
902
+ <%s key={someKey} {...props} />`, xe, J, tt, J), ar[J + xe] = !0;
903
+ }
904
+ }
905
+ return r === o ? Hr(C) : Xr(C), C;
906
+ }
907
+ }
908
+ function Zr(r, a, i) {
909
+ return ir(r, a, i, !0);
910
+ }
911
+ function Qr(r, a, i) {
912
+ return ir(r, a, i, !1);
913
+ }
914
+ var et = Qr, rt = Zr;
915
+ fe.Fragment = o, fe.jsx = et, fe.jsxs = rt;
916
+ }()), fe;
917
+ }
918
+ process.env.NODE_ENV === "production" ? je.exports = It() : je.exports = Nt();
919
+ var te = je.exports;
920
+ function $e(e) {
921
+ const t = $.forwardRef((n, o) => e(N(T({}, n), { ref: o })));
922
+ return t.displayName = e.displayName || e.name, t;
923
+ }
924
+ function We(e, t) {
925
+ const n = t, { wrapElement: o, render: s } = n, u = le(n, ["wrapElement", "render"]), b = _e(t.ref, wt(s));
926
+ let l;
927
+ if ($.isValidElement(s)) {
928
+ const m = N(T({}, s.props), { ref: b });
929
+ l = $.cloneElement(s, Rt(u, m));
930
+ } else s ? l = s(u) : l = /* @__PURE__ */ te.jsx(e, T({}, u));
931
+ return o ? o(l) : l;
932
+ }
933
+ function Be(e) {
934
+ const t = (n = {}) => e(n);
935
+ return t.displayName = e.name, t;
936
+ }
937
+ function mn(e = [], t = []) {
938
+ const n = $.createContext(void 0), o = $.createContext(void 0), s = () => $.useContext(n), u = (g = !1) => {
939
+ const v = $.useContext(o), _ = s();
940
+ return g ? v : v || _;
941
+ }, b = () => {
942
+ const g = $.useContext(o), v = s();
943
+ if (!(g && g === v))
944
+ return v;
945
+ }, l = (g) => e.reduceRight(
946
+ (v, _) => /* @__PURE__ */ te.jsx(_, N(T({}, g), { children: v })),
947
+ /* @__PURE__ */ te.jsx(n.Provider, T({}, g))
948
+ );
949
+ return {
950
+ context: n,
951
+ scopedContext: o,
952
+ useContext: s,
953
+ useScopedContext: u,
954
+ useProviderContext: b,
955
+ ContextProvider: l,
956
+ ScopedContextProvider: (g) => /* @__PURE__ */ te.jsx(l, N(T({}, g), { children: t.reduceRight(
957
+ (v, _) => /* @__PURE__ */ te.jsx(_, N(T({}, g), { children: v })),
958
+ /* @__PURE__ */ te.jsx(o.Provider, T({}, g))
959
+ ) }))
960
+ };
961
+ }
962
+ var Mt = it(!0), Or = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";
963
+ function Ee(e) {
964
+ return !(!e.matches(Or) || !Ot(e) || e.closest("[inert]"));
965
+ }
966
+ function Lt(e) {
967
+ for (; e && !Ee(e); )
968
+ e = e.closest(Or);
969
+ return e || null;
970
+ }
971
+ function br(e) {
972
+ const t = Ne(e);
973
+ if (!t) return !1;
974
+ if (t === e) return !0;
975
+ const n = t.getAttribute("aria-activedescendant");
976
+ return n ? n === e.id : !1;
977
+ }
978
+ function Vt(e) {
979
+ const t = Ne(e);
980
+ if (!t) return !1;
981
+ if (Me(e, t)) return !0;
982
+ const n = t.getAttribute("aria-activedescendant");
983
+ return !n || !("id" in e) ? !1 : n === e.id ? !0 : !!e.querySelector(`#${CSS.escape(n)}`);
984
+ }
985
+ function $t(e) {
986
+ !Vt(e) && Ee(e) && e.focus();
987
+ }
988
+ var Wt = "div", mr = kt(), Bt = [
989
+ "text",
990
+ "search",
991
+ "url",
992
+ "tel",
993
+ "email",
994
+ "password",
995
+ "number",
996
+ "date",
997
+ "month",
998
+ "week",
999
+ "time",
1000
+ "datetime",
1001
+ "datetime-local"
1002
+ ], Kt = Symbol("safariFocusAncestor");
1003
+ function gr(e, t) {
1004
+ e && (e[Kt] = t);
1005
+ }
1006
+ function Ut(e) {
1007
+ const { tagName: t, readOnly: n, type: o } = e;
1008
+ return t === "TEXTAREA" && !n || t === "SELECT" && !n ? !0 : t === "INPUT" && !n ? Bt.includes(o) : !!(e.isContentEditable || e.getAttribute("role") === "combobox" && e.dataset.name);
1009
+ }
1010
+ function Yt(e) {
1011
+ return "labels" in e ? e.labels : null;
1012
+ }
1013
+ function Er(e) {
1014
+ return e.tagName.toLowerCase() === "input" && e.type ? e.type === "radio" || e.type === "checkbox" : !1;
1015
+ }
1016
+ function qt(e) {
1017
+ return e ? e === "button" || e === "summary" || e === "input" || e === "select" || e === "textarea" || e === "a" : !0;
1018
+ }
1019
+ function Gt(e) {
1020
+ return e ? e === "button" || e === "input" || e === "select" || e === "textarea" : !0;
1021
+ }
1022
+ function Jt(e, t, n, o, s) {
1023
+ return e ? t ? n && !o ? -1 : void 0 : n ? s : s || 0 : s;
1024
+ }
1025
+ function ke(e, t) {
1026
+ return W((n) => {
1027
+ e == null || e(n), !n.defaultPrevented && t && (n.stopPropagation(), n.preventDefault());
1028
+ });
1029
+ }
1030
+ var Ke = !0;
1031
+ function zt(e) {
1032
+ const t = e.target;
1033
+ t && "hasAttribute" in t && (t.hasAttribute("data-focus-visible") || (Ke = !1));
1034
+ }
1035
+ function Xt(e) {
1036
+ e.metaKey || e.ctrlKey || e.altKey || (Ke = !0);
1037
+ }
1038
+ var Sr = Be(
1039
+ function(t) {
1040
+ var n = t, {
1041
+ focusable: o = !0,
1042
+ accessibleWhenDisabled: s,
1043
+ autoFocus: u,
1044
+ onFocusVisible: b
1045
+ } = n, l = le(n, [
1046
+ "focusable",
1047
+ "accessibleWhenDisabled",
1048
+ "autoFocus",
1049
+ "onFocusVisible"
1050
+ ]);
1051
+ const m = z(null);
1052
+ B(() => {
1053
+ o && (Fe("mousedown", zt, !0), Fe("keydown", Xt, !0));
1054
+ }, [o]), mr && B(() => {
1055
+ if (!o) return;
1056
+ const c = m.current;
1057
+ if (!c || !Er(c)) return;
1058
+ const w = Yt(c);
1059
+ if (!w) return;
1060
+ const S = () => queueMicrotask(() => c.focus());
1061
+ for (const V of w)
1062
+ V.addEventListener("mouseup", S);
1063
+ return () => {
1064
+ for (const V of w)
1065
+ V.removeEventListener("mouseup", S);
1066
+ };
1067
+ }, [o]);
1068
+ const g = o && Cr(l), v = !!g && !s, [_, O] = ne(!1);
1069
+ B(() => {
1070
+ o && v && _ && O(!1);
1071
+ }, [o, v, _]), B(() => {
1072
+ if (!o || !_) return;
1073
+ const c = m.current;
1074
+ if (!c || typeof IntersectionObserver > "u") return;
1075
+ const w = new IntersectionObserver(() => {
1076
+ Ee(c) || O(!1);
1077
+ });
1078
+ return w.observe(c), () => w.disconnect();
1079
+ }, [o, _]);
1080
+ const M = ke(
1081
+ l.onKeyPressCapture,
1082
+ g
1083
+ ), X = ke(
1084
+ l.onMouseDownCapture,
1085
+ g
1086
+ ), H = ke(l.onClickCapture, g), Z = l.onMouseDown, F = W((c) => {
1087
+ if (Z == null || Z(c), c.defaultPrevented || !o) return;
1088
+ const w = c.currentTarget;
1089
+ if (!mr || Ft(c) || !oe(w) && !Er(w)) return;
1090
+ let S = !1;
1091
+ const V = () => {
1092
+ S = !0;
1093
+ }, de = { capture: !0, once: !0 };
1094
+ w.addEventListener("focusin", V, de);
1095
+ const ue = Lt(w.parentElement);
1096
+ gr(ue, !0), me(w, "mouseup", () => {
1097
+ w.removeEventListener("focusin", V, !0), gr(ue, !1), !S && $t(w);
1098
+ });
1099
+ }), P = (c, w) => {
1100
+ if (w && (c.currentTarget = w), !o) return;
1101
+ const S = c.currentTarget;
1102
+ S && br(S) && (b == null || b(c), !c.defaultPrevented && (S.dataset.focusVisible = "true", O(!0)));
1103
+ }, E = l.onKeyDownCapture, I = W((c) => {
1104
+ if (E == null || E(c), c.defaultPrevented || !o || _ || c.metaKey || c.altKey || c.ctrlKey || !De(c)) return;
1105
+ const w = c.currentTarget;
1106
+ me(w, "focusout", () => P(c, w));
1107
+ }), L = l.onFocusCapture, K = W((c) => {
1108
+ if (L == null || L(c), c.defaultPrevented || !o) return;
1109
+ if (!De(c)) {
1110
+ O(!1);
1111
+ return;
1112
+ }
1113
+ const w = c.currentTarget, S = () => P(c, w);
1114
+ Ke || Ut(c.target) ? me(c.target, "focusout", S) : O(!1);
1115
+ }), U = l.onBlur, ae = W((c) => {
1116
+ U == null || U(c), o && jt(c) && O(!1);
1117
+ }), Y = ut(Mt), ie = W((c) => {
1118
+ o && u && c && Y && queueMicrotask(() => {
1119
+ br(c) || Ee(c) && c.focus();
1120
+ });
1121
+ }), Q = Tr(m), q = o && qt(Q), j = o && Gt(Q), A = l.style, G = Ae(() => v ? T({ pointerEvents: "none" }, A) : A, [v, A]);
1122
+ return l = N(T({
1123
+ "data-focus-visible": o && _ || void 0,
1124
+ "data-autofocus": u || void 0,
1125
+ "aria-disabled": g || void 0
1126
+ }, l), {
1127
+ ref: _e(m, ie, l.ref),
1128
+ style: G,
1129
+ tabIndex: Jt(
1130
+ o,
1131
+ v,
1132
+ q,
1133
+ j,
1134
+ l.tabIndex
1135
+ ),
1136
+ disabled: j && v ? !0 : void 0,
1137
+ // TODO: Test Focusable contentEditable.
1138
+ contentEditable: g ? void 0 : l.contentEditable,
1139
+ onKeyPressCapture: M,
1140
+ onClickCapture: H,
1141
+ onMouseDownCapture: X,
1142
+ onMouseDown: F,
1143
+ onKeyDownCapture: I,
1144
+ onFocusCapture: K,
1145
+ onBlur: ae
1146
+ }), Et(l);
1147
+ }
1148
+ );
1149
+ $e(function(t) {
1150
+ const n = Sr(t);
1151
+ return We(Wt, n);
1152
+ });
1153
+ var Ht = "button";
1154
+ function hr(e) {
1155
+ if (!e.isTrusted) return !1;
1156
+ const t = e.currentTarget;
1157
+ return e.key === "Enter" ? oe(t) || t.tagName === "SUMMARY" || t.tagName === "A" : e.key === " " ? oe(t) || t.tagName === "SUMMARY" || t.tagName === "INPUT" || t.tagName === "SELECT" : !1;
1158
+ }
1159
+ var Zt = Symbol("command"), xr = Be(
1160
+ function(t) {
1161
+ var n = t, { clickOnEnter: o = !0, clickOnSpace: s = !0 } = n, u = le(n, ["clickOnEnter", "clickOnSpace"]);
1162
+ const b = z(null), [l, m] = ne(!1);
1163
+ B(() => {
1164
+ b.current && m(oe(b.current));
1165
+ }, []);
1166
+ const [g, v] = ne(!1), _ = z(!1), O = Cr(u), [M, X] = At(u, Zt, !0), H = u.onKeyDown, Z = W((E) => {
1167
+ H == null || H(E);
1168
+ const I = E.currentTarget;
1169
+ if (E.defaultPrevented || M || O || !De(E) || St(I) || I.isContentEditable) return;
1170
+ const L = o && E.key === "Enter", K = s && E.key === " ", U = E.key === "Enter" && !o, ae = E.key === " " && !s;
1171
+ if (U || ae) {
1172
+ E.preventDefault();
1173
+ return;
1174
+ }
1175
+ if (L || K) {
1176
+ const Y = hr(E);
1177
+ if (L) {
1178
+ if (!Y) {
1179
+ E.preventDefault();
1180
+ const ie = E, Q = le(ie, ["view"]), q = () => lr(I, Q);
1181
+ Dt() ? me(I, "keyup", q) : queueMicrotask(q);
1182
+ }
1183
+ } else K && (_.current = !0, Y || (E.preventDefault(), v(!0)));
1184
+ }
1185
+ }), F = u.onKeyUp, P = W((E) => {
1186
+ if (F == null || F(E), E.defaultPrevented || M || O || E.metaKey) return;
1187
+ const I = s && E.key === " ";
1188
+ if (_.current && I && (_.current = !1, !hr(E))) {
1189
+ E.preventDefault(), v(!1);
1190
+ const L = E.currentTarget, K = E, U = le(K, ["view"]);
1191
+ queueMicrotask(() => lr(L, U));
1192
+ }
1193
+ });
1194
+ return u = N(T(T({
1195
+ "data-active": g || void 0,
1196
+ type: l ? "button" : void 0
1197
+ }, X), u), {
1198
+ ref: _e(b, u.ref),
1199
+ onKeyDown: Z,
1200
+ onKeyUp: P
1201
+ }), u = Sr(u), u;
1202
+ }
1203
+ );
1204
+ $e(function(t) {
1205
+ const n = xr(t);
1206
+ return We(Ht, n);
1207
+ });
1208
+ var kr = "button", Qt = Be(
1209
+ function(t) {
1210
+ const n = z(null), o = Tr(n, kr), [s, u] = ne(
1211
+ () => !!o && oe({ tagName: o, type: t.type })
1212
+ );
1213
+ return B(() => {
1214
+ n.current && u(oe(n.current));
1215
+ }, []), t = N(T({
1216
+ role: !s && o !== "a" ? "button" : void 0
1217
+ }, t), {
1218
+ ref: _e(n, t.ref)
1219
+ }), t = xr(t), t;
1220
+ }
1221
+ ), gn = $e(function(t) {
1222
+ const n = Qt(t);
1223
+ return We(kr, n);
1224
+ });
1225
+ export {
1226
+ pn as A,
1227
+ gn as B,
1228
+ bn as C,
1229
+ Et as D,
1230
+ te as E,
1231
+ rn as _,
1232
+ nn as a,
1233
+ bt as b,
1234
+ on as c,
1235
+ sn as d,
1236
+ N as e,
1237
+ T as f,
1238
+ fn as g,
1239
+ Ie as h,
1240
+ cn as i,
1241
+ W as j,
1242
+ dn as k,
1243
+ ln as l,
1244
+ vn as m,
1245
+ tn as n,
1246
+ an as o,
1247
+ un as p,
1248
+ mn as q,
1249
+ Be as r,
1250
+ $e as s,
1251
+ le as t,
1252
+ Ve as u,
1253
+ yn as v,
1254
+ At as w,
1255
+ _e as x,
1256
+ Qt as y,
1257
+ We as z
1258
+ };