@blakesteve/roster 2.9.3 → 2.9.4
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/roster.cjs.js +11 -11
- package/dist/roster.es.js +681 -680
- package/package.json +1 -1
package/dist/roster.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as w from "react";
|
|
3
|
-
import $, { useRef as Y, useCallback as oe, useEffect as de, useState as ne, useMemo as xe, useLayoutEffect as ci, useContext as pe, createContext as Ee, forwardRef as di, isValidElement as fi, cloneElement as bu, createElement as
|
|
3
|
+
import $, { useRef as Y, useCallback as oe, useEffect as de, useState as ne, useMemo as xe, useLayoutEffect as ci, useContext as pe, createContext as Ee, forwardRef as di, isValidElement as fi, cloneElement as bu, createElement as bg, Fragment as Ae, useId as we, useSyncExternalStore as yg, useReducer as xg, createRef as wg } from "react";
|
|
4
4
|
import * as on from "react-dom";
|
|
5
|
-
import
|
|
5
|
+
import Sg, { flushSync as lr, createPortal as yu } from "react-dom";
|
|
6
6
|
var Fn = { exports: {} }, Vr = {};
|
|
7
7
|
var ws;
|
|
8
|
-
function
|
|
8
|
+
function kg() {
|
|
9
9
|
if (ws) return Vr;
|
|
10
10
|
ws = 1;
|
|
11
11
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
@@ -28,7 +28,7 @@ function Sg() {
|
|
|
28
28
|
}
|
|
29
29
|
var zr = {};
|
|
30
30
|
var Ss;
|
|
31
|
-
function
|
|
31
|
+
function Cg() {
|
|
32
32
|
return Ss || (Ss = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
33
33
|
function e(E) {
|
|
34
34
|
if (E == null) return null;
|
|
@@ -259,24 +259,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
259
259
|
})()), zr;
|
|
260
260
|
}
|
|
261
261
|
var ks;
|
|
262
|
-
function
|
|
263
|
-
return ks || (ks = 1, process.env.NODE_ENV === "production" ? Fn.exports =
|
|
262
|
+
function Eg() {
|
|
263
|
+
return ks || (ks = 1, process.env.NODE_ENV === "production" ? Fn.exports = kg() : Fn.exports = Cg()), Fn.exports;
|
|
264
264
|
}
|
|
265
|
-
var h =
|
|
266
|
-
const
|
|
265
|
+
var h = Eg();
|
|
266
|
+
const Pg = typeof document < "u" ? $.useLayoutEffect : () => {
|
|
267
267
|
}, qt = (e) => {
|
|
268
268
|
var t;
|
|
269
269
|
return (t = e?.ownerDocument) !== null && t !== void 0 ? t : document;
|
|
270
270
|
}, ar = (e) => e && "window" in e && e.window === e ? e : qt(e).defaultView || window;
|
|
271
|
-
function
|
|
271
|
+
function Rg(e) {
|
|
272
272
|
return e !== null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number";
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
return
|
|
274
|
+
function $g(e) {
|
|
275
|
+
return Rg(e) && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in e;
|
|
276
276
|
}
|
|
277
|
-
let
|
|
277
|
+
let Ng = !1;
|
|
278
278
|
function gi() {
|
|
279
|
-
return
|
|
279
|
+
return Ng;
|
|
280
280
|
}
|
|
281
281
|
function Tt(e, t) {
|
|
282
282
|
if (!gi()) return t && e ? e.contains(t) : !1;
|
|
@@ -284,7 +284,7 @@ function Tt(e, t) {
|
|
|
284
284
|
let r = t;
|
|
285
285
|
for (; r !== null; ) {
|
|
286
286
|
if (r === e) return !0;
|
|
287
|
-
r.tagName === "SLOT" && r.assignedSlot ? r = r.assignedSlot.parentNode :
|
|
287
|
+
r.tagName === "SLOT" && r.assignedSlot ? r = r.assignedSlot.parentNode : $g(r) ? r = r.host : r = r.parentNode;
|
|
288
288
|
}
|
|
289
289
|
return !1;
|
|
290
290
|
}
|
|
@@ -311,17 +311,17 @@ function Su() {
|
|
|
311
311
|
for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = wu(e)) && (n && (n += " "), n += t);
|
|
312
312
|
return n;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
315
|
-
if (
|
|
314
|
+
function Ag(e) {
|
|
315
|
+
if (Og()) e.focus({
|
|
316
316
|
preventScroll: !0
|
|
317
317
|
});
|
|
318
318
|
else {
|
|
319
|
-
let t =
|
|
320
|
-
e.focus(),
|
|
319
|
+
let t = Ig(e);
|
|
320
|
+
e.focus(), Fg(t);
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
let Tn = null;
|
|
324
|
-
function
|
|
324
|
+
function Og() {
|
|
325
325
|
if (Tn == null) {
|
|
326
326
|
Tn = !1;
|
|
327
327
|
try {
|
|
@@ -335,7 +335,7 @@ function Ag() {
|
|
|
335
335
|
}
|
|
336
336
|
return Tn;
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function Ig(e) {
|
|
339
339
|
let t = e.parentNode, r = [], n = document.scrollingElement || document.documentElement;
|
|
340
340
|
for (; t instanceof HTMLElement && t !== n; )
|
|
341
341
|
(t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && r.push({
|
|
@@ -349,7 +349,7 @@ function Og(e) {
|
|
|
349
349
|
scrollLeft: n.scrollLeft
|
|
350
350
|
}), r;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Fg(e) {
|
|
353
353
|
for (let { element: t, scrollTop: r, scrollLeft: n } of e)
|
|
354
354
|
t.scrollTop = r, t.scrollLeft = n;
|
|
355
355
|
}
|
|
@@ -370,31 +370,31 @@ function $t(e) {
|
|
|
370
370
|
}
|
|
371
371
|
const an = $t(function() {
|
|
372
372
|
return pi(/^Mac/i);
|
|
373
|
-
}),
|
|
373
|
+
}), Tg = $t(function() {
|
|
374
374
|
return pi(/^iPhone/i);
|
|
375
375
|
}), ku = $t(function() {
|
|
376
376
|
return pi(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
377
377
|
an() && navigator.maxTouchPoints > 1;
|
|
378
|
-
}),
|
|
379
|
-
return
|
|
378
|
+
}), _g = $t(function() {
|
|
379
|
+
return Tg() || ku();
|
|
380
380
|
});
|
|
381
381
|
$t(function() {
|
|
382
|
-
return an() ||
|
|
382
|
+
return an() || _g();
|
|
383
383
|
});
|
|
384
|
-
const
|
|
385
|
-
return mo(/AppleWebKit/i) && !
|
|
386
|
-
}), Mg = $t(function() {
|
|
387
|
-
return mo(/Chrome/i);
|
|
384
|
+
const Mg = $t(function() {
|
|
385
|
+
return mo(/AppleWebKit/i) && !jg();
|
|
388
386
|
}), jg = $t(function() {
|
|
389
|
-
return mo(/
|
|
387
|
+
return mo(/Chrome/i);
|
|
390
388
|
}), Dg = $t(function() {
|
|
389
|
+
return mo(/Android/i);
|
|
390
|
+
}), Lg = $t(function() {
|
|
391
391
|
return mo(/Firefox/i);
|
|
392
392
|
});
|
|
393
393
|
function sn(e, t, r = !0) {
|
|
394
394
|
var n, o;
|
|
395
395
|
let { metaKey: a, ctrlKey: i, altKey: s, shiftKey: l } = t;
|
|
396
|
-
|
|
397
|
-
let u =
|
|
396
|
+
Lg() && (!((o = window.event) === null || o === void 0 || (n = o.type) === null || n === void 0) && n.startsWith("key")) && e.target === "_blank" && (an() ? a = !0 : i = !0);
|
|
397
|
+
let u = Mg() && an() && !ku() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
|
|
398
398
|
keyIdentifier: "Enter",
|
|
399
399
|
metaKey: a,
|
|
400
400
|
ctrlKey: i,
|
|
@@ -409,7 +409,7 @@ function sn(e, t, r = !0) {
|
|
|
409
409
|
bubbles: !0,
|
|
410
410
|
cancelable: !0
|
|
411
411
|
});
|
|
412
|
-
sn.isOpening = r,
|
|
412
|
+
sn.isOpening = r, Ag(e), e.dispatchEvent(u), sn.isOpening = !1;
|
|
413
413
|
}
|
|
414
414
|
sn.isOpening = !1;
|
|
415
415
|
function Cu() {
|
|
@@ -442,15 +442,15 @@ function Cu() {
|
|
|
442
442
|
removeAllGlobalListeners: n
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
|
-
function
|
|
446
|
-
return e.pointerType === "" && e.isTrusted ? !0 :
|
|
445
|
+
function Vg(e) {
|
|
446
|
+
return e.pointerType === "" && e.isTrusted ? !0 : Dg() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
447
447
|
}
|
|
448
448
|
function Eu(e) {
|
|
449
449
|
let t = e;
|
|
450
450
|
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {
|
|
451
451
|
}, t;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function zg(e, t) {
|
|
454
454
|
Object.defineProperty(e, "target", {
|
|
455
455
|
value: t
|
|
456
456
|
}), Object.defineProperty(e, "currentTarget", {
|
|
@@ -462,7 +462,7 @@ function Pu(e) {
|
|
|
462
462
|
isFocused: !1,
|
|
463
463
|
observer: null
|
|
464
464
|
});
|
|
465
|
-
return
|
|
465
|
+
return Pg(() => {
|
|
466
466
|
const r = t.current;
|
|
467
467
|
return () => {
|
|
468
468
|
r.observer && (r.observer.disconnect(), r.observer = null);
|
|
@@ -502,30 +502,30 @@ function Pu(e) {
|
|
|
502
502
|
e
|
|
503
503
|
]);
|
|
504
504
|
}
|
|
505
|
-
let
|
|
505
|
+
let Hg = !1, mn = null;
|
|
506
506
|
const Ca = /* @__PURE__ */ new Set();
|
|
507
507
|
let qr = /* @__PURE__ */ new Map(), ur = !1, Ea = !1;
|
|
508
|
-
const
|
|
508
|
+
const Bg = {
|
|
509
509
|
Tab: !0,
|
|
510
510
|
Escape: !0
|
|
511
511
|
};
|
|
512
512
|
function mi(e, t) {
|
|
513
513
|
for (let r of Ca) r(e, t);
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Gg(e) {
|
|
516
516
|
return !(e.metaKey || !an() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
517
517
|
}
|
|
518
518
|
function eo(e) {
|
|
519
|
-
ur = !0, !sn.isOpening &&
|
|
519
|
+
ur = !0, !sn.isOpening && Gg(e) && (mn = "keyboard", mi("keyboard", e));
|
|
520
520
|
}
|
|
521
521
|
function Ke(e) {
|
|
522
522
|
mn = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (ur = !0, mi("pointer", e));
|
|
523
523
|
}
|
|
524
524
|
function Ru(e) {
|
|
525
|
-
!sn.isOpening &&
|
|
525
|
+
!sn.isOpening && Vg(e) && (ur = !0, mn = "virtual");
|
|
526
526
|
}
|
|
527
527
|
function $u(e) {
|
|
528
|
-
e.target === window || e.target === document ||
|
|
528
|
+
e.target === window || e.target === document || Hg || !e.isTrusted || (!ur && !Ea && (mn = "virtual", mi("virtual", e)), ur = !1, Ea = !1);
|
|
529
529
|
}
|
|
530
530
|
function Nu() {
|
|
531
531
|
ur = !1, Ea = !0;
|
|
@@ -548,18 +548,18 @@ const Au = (e, t) => {
|
|
|
548
548
|
const r = ar(e), n = qt(e);
|
|
549
549
|
t && n.removeEventListener("DOMContentLoaded", t), qr.has(r) && (r.HTMLElement.prototype.focus = qr.get(r).focus, n.removeEventListener("keydown", eo, !0), n.removeEventListener("keyup", eo, !0), n.removeEventListener("click", Ru, !0), r.removeEventListener("focus", $u, !0), r.removeEventListener("blur", Nu, !1), typeof PointerEvent < "u" ? (n.removeEventListener("pointerdown", Ke, !0), n.removeEventListener("pointermove", Ke, !0), n.removeEventListener("pointerup", Ke, !0)) : process.env.NODE_ENV === "test" && (n.removeEventListener("mousedown", Ke, !0), n.removeEventListener("mousemove", Ke, !0), n.removeEventListener("mouseup", Ke, !0)), qr.delete(r));
|
|
550
550
|
};
|
|
551
|
-
function
|
|
551
|
+
function Wg(e) {
|
|
552
552
|
const t = qt(e);
|
|
553
553
|
let r;
|
|
554
554
|
return t.readyState !== "loading" ? Pa(e) : (r = () => {
|
|
555
555
|
Pa(e);
|
|
556
556
|
}, t.addEventListener("DOMContentLoaded", r)), () => Au(e, r);
|
|
557
557
|
}
|
|
558
|
-
typeof document < "u" &&
|
|
558
|
+
typeof document < "u" && Wg();
|
|
559
559
|
function Ra() {
|
|
560
560
|
return mn !== "pointer";
|
|
561
561
|
}
|
|
562
|
-
const
|
|
562
|
+
const Ug = /* @__PURE__ */ new Set([
|
|
563
563
|
"checkbox",
|
|
564
564
|
"radio",
|
|
565
565
|
"range",
|
|
@@ -570,23 +570,23 @@ const Wg = /* @__PURE__ */ new Set([
|
|
|
570
570
|
"submit",
|
|
571
571
|
"reset"
|
|
572
572
|
]);
|
|
573
|
-
function
|
|
573
|
+
function Yg(e, t, r) {
|
|
574
574
|
let n = qt(r?.target);
|
|
575
575
|
const o = typeof window < "u" ? ar(r?.target).HTMLInputElement : HTMLInputElement, a = typeof window < "u" ? ar(r?.target).HTMLTextAreaElement : HTMLTextAreaElement, i = typeof window < "u" ? ar(r?.target).HTMLElement : HTMLElement, s = typeof window < "u" ? ar(r?.target).KeyboardEvent : KeyboardEvent;
|
|
576
|
-
return e = e || n.activeElement instanceof o && !
|
|
576
|
+
return e = e || n.activeElement instanceof o && !Ug.has(n.activeElement.type) || n.activeElement instanceof a || n.activeElement instanceof i && n.activeElement.isContentEditable, !(e && t === "keyboard" && r instanceof s && !Bg[r.key]);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function Kg(e, t, r) {
|
|
579
579
|
Pa(), de(() => {
|
|
580
580
|
if (r?.enabled === !1) return;
|
|
581
581
|
let n = (o, a) => {
|
|
582
|
-
|
|
582
|
+
Yg(!!r?.isTextInput, o, a) && e(Ra());
|
|
583
583
|
};
|
|
584
584
|
return Ca.add(n), () => {
|
|
585
585
|
Ca.delete(n);
|
|
586
586
|
};
|
|
587
587
|
}, t);
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function qg(e) {
|
|
590
590
|
let { isDisabled: t, onFocus: r, onBlur: n, onFocusChange: o } = e;
|
|
591
591
|
const a = oe((l) => {
|
|
592
592
|
if (l.target === l.currentTarget)
|
|
@@ -609,7 +609,7 @@ function Kg(e) {
|
|
|
609
609
|
}
|
|
610
610
|
};
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function Xg(e) {
|
|
613
613
|
let { isDisabled: t, onBlurWithin: r, onFocusWithin: n, onFocusWithinChange: o } = e, a = Y({
|
|
614
614
|
isFocusWithin: !1
|
|
615
615
|
}), { addGlobalListener: i, removeAllGlobalListeners: s } = Cu(), l = oe((f) => {
|
|
@@ -630,7 +630,7 @@ function qg(e) {
|
|
|
630
630
|
let v = new g.defaultView.FocusEvent("blur", {
|
|
631
631
|
relatedTarget: m.target
|
|
632
632
|
});
|
|
633
|
-
|
|
633
|
+
zg(v, p);
|
|
634
634
|
let b = Eu(v);
|
|
635
635
|
l(b);
|
|
636
636
|
}
|
|
@@ -667,7 +667,7 @@ function $a() {
|
|
|
667
667
|
function Cs(e) {
|
|
668
668
|
e.pointerType === "touch" && $a();
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function Jg() {
|
|
671
671
|
if (!(typeof document > "u"))
|
|
672
672
|
return _n === 0 && (typeof PointerEvent < "u" ? document.addEventListener("pointerup", Cs) : process.env.NODE_ENV === "test" && document.addEventListener("touchend", $a)), _n++, () => {
|
|
673
673
|
_n--, !(_n > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Cs) : process.env.NODE_ENV === "test" && document.removeEventListener("touchend", $a));
|
|
@@ -680,7 +680,7 @@ function Xt(e) {
|
|
|
680
680
|
pointerType: "",
|
|
681
681
|
target: null
|
|
682
682
|
}).current;
|
|
683
|
-
de(
|
|
683
|
+
de(Jg, []);
|
|
684
684
|
let { addGlobalListener: l, removeAllGlobalListeners: u } = Cu(), { hoverProps: c, triggerHoverEnd: f } = xe(() => {
|
|
685
685
|
let g = (m, v) => {
|
|
686
686
|
if (s.pointerType = v, o || v === "touch" || s.isHovered || !Tt(m.currentTarget, m.target)) return;
|
|
@@ -746,7 +746,7 @@ function Jt(e = {}) {
|
|
|
746
746
|
}, [
|
|
747
747
|
u
|
|
748
748
|
]);
|
|
749
|
-
|
|
749
|
+
Kg((d) => {
|
|
750
750
|
o.current.isFocusVisible = d, u();
|
|
751
751
|
}, [
|
|
752
752
|
r,
|
|
@@ -755,10 +755,10 @@ function Jt(e = {}) {
|
|
|
755
755
|
enabled: a,
|
|
756
756
|
isTextInput: r
|
|
757
757
|
});
|
|
758
|
-
let { focusProps: f } =
|
|
758
|
+
let { focusProps: f } = qg({
|
|
759
759
|
isDisabled: n,
|
|
760
760
|
onFocusChange: c
|
|
761
|
-
}), { focusWithinProps: g } =
|
|
761
|
+
}), { focusWithinProps: g } = Xg({
|
|
762
762
|
isDisabled: !n,
|
|
763
763
|
onFocusWithinChange: c
|
|
764
764
|
});
|
|
@@ -768,8 +768,8 @@ function Jt(e = {}) {
|
|
|
768
768
|
focusProps: n ? g : f
|
|
769
769
|
};
|
|
770
770
|
}
|
|
771
|
-
var
|
|
772
|
-
let
|
|
771
|
+
var Qg = Object.defineProperty, Zg = (e, t, r) => t in e ? Qg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xo = (e, t, r) => (Zg(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
772
|
+
let ep = class {
|
|
773
773
|
constructor() {
|
|
774
774
|
Xo(this, "current", this.detect()), Xo(this, "handoffState", "pending"), Xo(this, "currentId", 0);
|
|
775
775
|
}
|
|
@@ -797,7 +797,7 @@ let Zg = class {
|
|
|
797
797
|
get isHandoffComplete() {
|
|
798
798
|
return this.handoffState === "complete";
|
|
799
799
|
}
|
|
800
|
-
}, it = new
|
|
800
|
+
}, it = new ep();
|
|
801
801
|
function Qt(e) {
|
|
802
802
|
var t;
|
|
803
803
|
return it.isServer ? null : e == null ? document : (t = e?.ownerDocument) != null ? t : document;
|
|
@@ -871,11 +871,11 @@ let j = function(e) {
|
|
|
871
871
|
let t = ut(e);
|
|
872
872
|
return $.useCallback((...r) => t.current(...r), [t]);
|
|
873
873
|
};
|
|
874
|
-
function
|
|
874
|
+
function tp(e) {
|
|
875
875
|
let t = e.width / 2, r = e.height / 2;
|
|
876
876
|
return { top: e.clientY - r, right: e.clientX + t, bottom: e.clientY + r, left: e.clientX - t };
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function rp(e, t) {
|
|
879
879
|
return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
|
|
880
880
|
}
|
|
881
881
|
function Nr({ disabled: e = !1 } = {}) {
|
|
@@ -888,8 +888,8 @@ function Nr({ disabled: e = !1 } = {}) {
|
|
|
888
888
|
let l = Qt(s.currentTarget);
|
|
889
889
|
o.addEventListener(l, "pointerup", a, !1), o.addEventListener(l, "pointermove", (u) => {
|
|
890
890
|
if (t.current) {
|
|
891
|
-
let c =
|
|
892
|
-
n(
|
|
891
|
+
let c = tp(u);
|
|
892
|
+
n(rp(c, t.current.getBoundingClientRect()));
|
|
893
893
|
}
|
|
894
894
|
}, !1), o.addEventListener(l, "pointercancel", a, !1);
|
|
895
895
|
}
|
|
@@ -904,7 +904,7 @@ let Ou = Ee(void 0);
|
|
|
904
904
|
function Nt() {
|
|
905
905
|
return pe(Ou);
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function np({ value: e, children: t }) {
|
|
908
908
|
return $.createElement(Ou.Provider, { value: e }, t);
|
|
909
909
|
}
|
|
910
910
|
function Na(...e) {
|
|
@@ -920,11 +920,11 @@ function Pe(e, t, ...r) {
|
|
|
920
920
|
}
|
|
921
921
|
var qe = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(qe || {}), _t = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(_t || {});
|
|
922
922
|
function ue() {
|
|
923
|
-
let e =
|
|
924
|
-
return oe((t) =>
|
|
923
|
+
let e = ap();
|
|
924
|
+
return oe((t) => op({ mergeRefs: e, ...t }), [e]);
|
|
925
925
|
}
|
|
926
|
-
function
|
|
927
|
-
s = s ??
|
|
926
|
+
function op({ ourProps: e, theirProps: t, slot: r, defaultTag: n, features: o, visible: a = !0, name: i, mergeRefs: s }) {
|
|
927
|
+
s = s ?? ip;
|
|
928
928
|
let l = Iu(t, e);
|
|
929
929
|
if (a) return Mn(l, r, n, i, s);
|
|
930
930
|
let u = o ?? 0;
|
|
@@ -954,7 +954,7 @@ function Mn(e, t = {}, r, n, o) {
|
|
|
954
954
|
for (let p of d) f[`data-${p}`] = "";
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
|
-
if (Xr(a) && (Object.keys(It(l)).length > 0 || Object.keys(It(f)).length > 0)) if (!fi(c) || Array.isArray(c) && c.length > 1 ||
|
|
957
|
+
if (Xr(a) && (Object.keys(It(l)).length > 0 || Object.keys(It(f)).length > 0)) if (!fi(c) || Array.isArray(c) && c.length > 1 || lp(c)) {
|
|
958
958
|
if (Object.keys(It(l)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${n} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(It(l)).concat(Object.keys(It(f))).map((g) => ` - ${g}`).join(`
|
|
959
959
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((g) => ` - ${g}`).join(`
|
|
960
960
|
`)].join(`
|
|
@@ -962,11 +962,11 @@ function Mn(e, t = {}, r, n, o) {
|
|
|
962
962
|
} else {
|
|
963
963
|
let g = c.props, d = g?.className, p = typeof d == "function" ? (...b) => Na(d(...b), l.className) : Na(d, l.className), m = p ? { className: p } : {}, v = Iu(c.props, It(Jo(l, ["ref"])));
|
|
964
964
|
for (let b in f) b in v && delete f[b];
|
|
965
|
-
return bu(c, Object.assign({}, v, f, u, { ref: o(
|
|
965
|
+
return bu(c, Object.assign({}, v, f, u, { ref: o(sp(c), u.ref) }, m));
|
|
966
966
|
}
|
|
967
|
-
return
|
|
967
|
+
return bg(a, Object.assign({}, Jo(l, ["ref"]), !Xr(a) && u, !Xr(a) && f), c);
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function ap() {
|
|
970
970
|
let e = Y([]), t = oe((r) => {
|
|
971
971
|
for (let n of e.current) n != null && (typeof n == "function" ? n(r) : n.current = r);
|
|
972
972
|
}, []);
|
|
@@ -974,7 +974,7 @@ function op() {
|
|
|
974
974
|
if (!r.every((n) => n == null)) return e.current = r, t;
|
|
975
975
|
};
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function ip(...e) {
|
|
978
978
|
return e.every((t) => t == null) ? void 0 : (t) => {
|
|
979
979
|
for (let r of e) r != null && (typeof r == "function" ? r(t) : r.current = t);
|
|
980
980
|
};
|
|
@@ -1022,22 +1022,22 @@ function Jo(e, t = []) {
|
|
|
1022
1022
|
for (let n of t) n in r && delete r[n];
|
|
1023
1023
|
return r;
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1025
|
+
function sp(e) {
|
|
1026
1026
|
return $.version.split(".")[0] >= "19" ? e.props.ref : e.ref;
|
|
1027
1027
|
}
|
|
1028
1028
|
function Xr(e) {
|
|
1029
1029
|
return e === Ae || e === /* @__PURE__ */ Symbol.for("react.fragment");
|
|
1030
1030
|
}
|
|
1031
|
-
function
|
|
1031
|
+
function lp(e) {
|
|
1032
1032
|
return Xr(e.type);
|
|
1033
1033
|
}
|
|
1034
|
-
let
|
|
1035
|
-
function
|
|
1034
|
+
let up = "button";
|
|
1035
|
+
function cp(e, t) {
|
|
1036
1036
|
var r;
|
|
1037
1037
|
let n = Nt(), { disabled: o = n || !1, autoFocus: a = !1, ...i } = e, { isFocusVisible: s, focusProps: l } = Jt({ autoFocus: a }), { isHovered: u, hoverProps: c } = Xt({ isDisabled: o }), { pressed: f, pressProps: g } = Nr({ disabled: o }), d = Xe({ ref: t, type: (r = i.type) != null ? r : "button", disabled: o || void 0, autoFocus: a }, l, c, g), p = ve({ disabled: o, hover: u, focus: s, active: f, autofocus: a });
|
|
1038
|
-
return ue()({ ourProps: d, theirProps: i, slot: p, defaultTag:
|
|
1038
|
+
return ue()({ ourProps: d, theirProps: i, slot: p, defaultTag: up, name: "Button" });
|
|
1039
1039
|
}
|
|
1040
|
-
let
|
|
1040
|
+
let dp = le(cp);
|
|
1041
1041
|
function vi(e, t, r) {
|
|
1042
1042
|
let [n, o] = ne(r), a = e !== void 0, i = Y(a), s = Y(!1), l = Y(!1);
|
|
1043
1043
|
return a && !i.current && !s.current ? (s.current = !0, i.current = a, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !a && i.current && !l.current && (l.current = !0, i.current = a, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [a ? e : n, j((u) => (a || lr(() => o(u)), t?.(u)))];
|
|
@@ -1055,7 +1055,7 @@ function Tu(e, t) {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
function _u(e, t, r) {
|
|
1057
1057
|
if (Array.isArray(r)) for (let [n, o] of r.entries()) _u(e, Tu(t, n.toString()), o);
|
|
1058
|
-
else r instanceof Date ? e.push([t, r.toISOString()]) : typeof r == "boolean" ? e.push([t, r ? "1" : "0"]) : typeof r == "string" ? e.push([t, r]) : typeof r == "number" ? e.push([t, `${r}`]) : r == null ? e.push([t, ""]) :
|
|
1058
|
+
else r instanceof Date ? e.push([t, r.toISOString()]) : typeof r == "boolean" ? e.push([t, r ? "1" : "0"]) : typeof r == "string" ? e.push([t, r]) : typeof r == "number" ? e.push([t, `${r}`]) : r == null ? e.push([t, ""]) : fp(r) && !fi(r) && Fu(r, t, e);
|
|
1059
1059
|
}
|
|
1060
1060
|
function yi(e) {
|
|
1061
1061
|
var t, r;
|
|
@@ -1068,24 +1068,24 @@ function yi(e) {
|
|
|
1068
1068
|
(r = n.requestSubmit) == null || r.call(n);
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function fp(e) {
|
|
1072
1072
|
if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
|
|
1073
1073
|
let t = Object.getPrototypeOf(e);
|
|
1074
1074
|
return t === null || Object.getPrototypeOf(t) === null;
|
|
1075
1075
|
}
|
|
1076
|
-
let
|
|
1076
|
+
let gp = "span";
|
|
1077
1077
|
var ct = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(ct || {});
|
|
1078
|
-
function
|
|
1078
|
+
function pp(e, t) {
|
|
1079
1079
|
var r;
|
|
1080
1080
|
let { features: n = 1, ...o } = e, a = { ref: t, "aria-hidden": (n & 2) === 2 ? !0 : (r = o["aria-hidden"]) != null ? r : void 0, hidden: (n & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(n & 4) === 4 && (n & 2) !== 2 && { display: "none" } } };
|
|
1081
|
-
return ue()({ ourProps: a, theirProps: o, slot: {}, defaultTag:
|
|
1081
|
+
return ue()({ ourProps: a, theirProps: o, slot: {}, defaultTag: gp, name: "Hidden" });
|
|
1082
1082
|
}
|
|
1083
|
-
let St = le(
|
|
1084
|
-
function
|
|
1083
|
+
let St = le(pp), Mu = Ee(null);
|
|
1084
|
+
function mp(e) {
|
|
1085
1085
|
let [t, r] = ne(null);
|
|
1086
1086
|
return $.createElement(Mu.Provider, { value: { target: t } }, e.children, $.createElement(St, { features: ct.Hidden, ref: r }));
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1088
|
+
function hp({ children: e }) {
|
|
1089
1089
|
let t = pe(Mu);
|
|
1090
1090
|
if (!t) return $.createElement($.Fragment, null, e);
|
|
1091
1091
|
let { target: r } = t;
|
|
@@ -1095,9 +1095,9 @@ function xi({ data: e, form: t, disabled: r, onReset: n, overrides: o }) {
|
|
|
1095
1095
|
let [a, i] = ne(null), s = rt();
|
|
1096
1096
|
return de(() => {
|
|
1097
1097
|
if (n && a) return s.addEventListener(a, "reset", n);
|
|
1098
|
-
}, [a, t, n]), $.createElement(
|
|
1098
|
+
}, [a, t, n]), $.createElement(hp, null, $.createElement(vp, { setForm: i, formId: t }), Fu(e).map(([l, u]) => $.createElement(St, { features: ct.Hidden, ...It({ key: l, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: t, disabled: r, name: l, value: u, ...o }) })));
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function vp({ setForm: e, formId: t }) {
|
|
1101
1101
|
return de(() => {
|
|
1102
1102
|
if (t) {
|
|
1103
1103
|
let r = document.getElementById(t);
|
|
@@ -1113,7 +1113,7 @@ let ju = Ee(void 0);
|
|
|
1113
1113
|
function Ar() {
|
|
1114
1114
|
return pe(ju);
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1116
|
+
function bp({ id: e, children: t }) {
|
|
1117
1117
|
return $.createElement(ju.Provider, { value: e }, t);
|
|
1118
1118
|
}
|
|
1119
1119
|
function Du(e) {
|
|
@@ -1128,10 +1128,10 @@ function Oe(e) {
|
|
|
1128
1128
|
function Je(e) {
|
|
1129
1129
|
return wt(e) && "tabIndex" in e;
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function yp(e) {
|
|
1132
1132
|
return wt(e) && "style" in e;
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function xp(e) {
|
|
1135
1135
|
return Oe(e) && e.nodeName === "IFRAME";
|
|
1136
1136
|
}
|
|
1137
1137
|
function Lu(e) {
|
|
@@ -1140,22 +1140,22 @@ function Lu(e) {
|
|
|
1140
1140
|
function Aa(e) {
|
|
1141
1141
|
return Oe(e) && e.nodeName === "LABEL";
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function wp(e) {
|
|
1144
1144
|
return Oe(e) && e.nodeName === "FIELDSET";
|
|
1145
1145
|
}
|
|
1146
1146
|
function Vu(e) {
|
|
1147
1147
|
return Oe(e) && e.nodeName === "LEGEND";
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1149
|
+
function Sp(e) {
|
|
1150
1150
|
return wt(e) ? e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]') : !1;
|
|
1151
1151
|
}
|
|
1152
1152
|
function Sr(e) {
|
|
1153
1153
|
let t = e.parentElement, r = null;
|
|
1154
|
-
for (; t && !
|
|
1154
|
+
for (; t && !wp(t); ) Vu(t) && (r = t), t = t.parentElement;
|
|
1155
1155
|
let n = t?.getAttribute("disabled") === "";
|
|
1156
|
-
return n &&
|
|
1156
|
+
return n && kp(r) ? !1 : n;
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function kp(e) {
|
|
1159
1159
|
if (!e) return !1;
|
|
1160
1160
|
let t = e.previousElementSibling;
|
|
1161
1161
|
for (; t !== null; ) {
|
|
@@ -1202,14 +1202,14 @@ function bo() {
|
|
|
1202
1202
|
return $.createElement(vo.Provider, { value: o }, r.children);
|
|
1203
1203
|
}, [t])];
|
|
1204
1204
|
}
|
|
1205
|
-
let
|
|
1206
|
-
function
|
|
1205
|
+
let Cp = "p";
|
|
1206
|
+
function Ep(e, t) {
|
|
1207
1207
|
let r = we(), n = Nt(), { id: o = `headlessui-description-${r}`, ...a } = e, i = Bu(), s = be(t);
|
|
1208
1208
|
me(() => i.register(o), [o, i.register]);
|
|
1209
1209
|
let l = ve({ ...i.slot, disabled: n || !1 }), u = { ref: s, ...i.props, id: o };
|
|
1210
|
-
return ue()({ ourProps: u, theirProps: a, slot: l, defaultTag:
|
|
1210
|
+
return ue()({ ourProps: u, theirProps: a, slot: l, defaultTag: Cp, name: i.name || "Description" });
|
|
1211
1211
|
}
|
|
1212
|
-
let
|
|
1212
|
+
let Pp = le(Ep), vn = Object.assign(Pp, {});
|
|
1213
1213
|
var re = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(re || {});
|
|
1214
1214
|
let yo = Ee(null);
|
|
1215
1215
|
yo.displayName = "LabelContext";
|
|
@@ -1236,14 +1236,14 @@ function bn({ inherit: e = !1 } = {}) {
|
|
|
1236
1236
|
return $.createElement(yo.Provider, { value: s }, a.children);
|
|
1237
1237
|
}, [n])];
|
|
1238
1238
|
}
|
|
1239
|
-
let
|
|
1240
|
-
function
|
|
1239
|
+
let Rp = "label";
|
|
1240
|
+
function $p(e, t) {
|
|
1241
1241
|
var r;
|
|
1242
1242
|
let n = we(), o = wi(), a = Ar(), i = Nt(), { id: s = `headlessui-label-${n}`, htmlFor: l = a ?? ((r = o.props) == null ? void 0 : r.htmlFor), passive: u = !1, ...c } = e, f = be(t);
|
|
1243
1243
|
me(() => o.register(s), [s, o.register]);
|
|
1244
1244
|
let g = j((m) => {
|
|
1245
1245
|
let v = m.currentTarget;
|
|
1246
|
-
if (!(m.target !== m.currentTarget &&
|
|
1246
|
+
if (!(m.target !== m.currentTarget && Sp(m.target)) && (Aa(v) && m.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(m), Aa(v))) {
|
|
1247
1247
|
let b = document.getElementById(v.htmlFor);
|
|
1248
1248
|
if (b) {
|
|
1249
1249
|
let x = b.getAttribute("disabled");
|
|
@@ -1254,10 +1254,10 @@ function Rp(e, t) {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
}
|
|
1256
1256
|
}), d = ve({ ...o.slot, disabled: i || !1 }), p = { ref: f, ...o.props, id: s, htmlFor: l, onClick: g };
|
|
1257
|
-
return u && ("onClick" in p && (delete p.htmlFor, delete p.onClick), "onClick" in c && delete c.onClick), ue()({ ourProps: p, theirProps: c, slot: d, defaultTag: l ?
|
|
1257
|
+
return u && ("onClick" in p && (delete p.htmlFor, delete p.onClick), "onClick" in c && delete c.onClick), ue()({ ourProps: p, theirProps: c, slot: d, defaultTag: l ? Rp : "div", name: o.name || "Label" });
|
|
1258
1258
|
}
|
|
1259
|
-
let
|
|
1260
|
-
function
|
|
1259
|
+
let Np = le($p), Ir = Object.assign(Np, {}), Ap = "span";
|
|
1260
|
+
function Op(e, t) {
|
|
1261
1261
|
let r = we(), n = Ar(), o = Nt(), { id: a = n || `headlessui-checkbox-${r}`, disabled: i = o || !1, autoFocus: s = !1, checked: l, defaultChecked: u, onChange: c, name: f, value: g, form: d, indeterminate: p = !1, tabIndex: m = 0, ...v } = e, b = bi(u), [x, y] = vi(l, c, b ?? !1), k = Or(), S = hn(), P = rt(), [N, O] = ne(!1), H = j(() => {
|
|
1262
1262
|
O(!0), y?.(!x), P.nextFrame(() => {
|
|
1263
1263
|
O(!1);
|
|
@@ -1270,17 +1270,17 @@ function Ap(e, t) {
|
|
|
1270
1270
|
}), L = j((I) => I.preventDefault()), { isFocusVisible: K, focusProps: T } = Jt({ autoFocus: s }), { isHovered: V, hoverProps: B } = Xt({ isDisabled: i }), { pressed: X, pressProps: C } = Nr({ disabled: i }), q = Xe({ ref: t, id: a, role: "checkbox", "aria-checked": p ? "mixed" : x ? "true" : "false", "aria-labelledby": k, "aria-describedby": S, "aria-disabled": i ? !0 : void 0, indeterminate: p ? "true" : void 0, tabIndex: i ? void 0 : m, onKeyUp: i ? void 0 : R, onKeyPress: i ? void 0 : L, onClick: i ? void 0 : A }, T, B, C), te = ve({ checked: x, disabled: i, hover: V, focus: K, active: X, indeterminate: p, changing: N, autofocus: s }), E = oe(() => {
|
|
1271
1271
|
if (b !== void 0) return y?.(b);
|
|
1272
1272
|
}, [y, b]), z = ue();
|
|
1273
|
-
return $.createElement($.Fragment, null, f != null && $.createElement(xi, { disabled: i, data: { [f]: g || "on" }, overrides: { type: "checkbox", checked: x }, form: d, onReset: E }), z({ ourProps: q, theirProps: v, slot: te, defaultTag:
|
|
1273
|
+
return $.createElement($.Fragment, null, f != null && $.createElement(xi, { disabled: i, data: { [f]: g || "on" }, overrides: { type: "checkbox", checked: x }, form: d, onReset: E }), z({ ourProps: q, theirProps: v, slot: te, defaultTag: Ap, name: "Checkbox" }));
|
|
1274
1274
|
}
|
|
1275
|
-
let
|
|
1275
|
+
let Ip = le(Op), Fp = Ee(() => {
|
|
1276
1276
|
});
|
|
1277
1277
|
function Si({ value: e, children: t }) {
|
|
1278
|
-
return $.createElement(
|
|
1278
|
+
return $.createElement(Fp.Provider, { value: e }, t);
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function Tp(e, t) {
|
|
1281
1281
|
return e !== null && t !== null && typeof e == "object" && typeof t == "object" && "id" in e && "id" in t ? e.id === t.id : e === t;
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function _p(e = Tp) {
|
|
1284
1284
|
return oe((t, r) => {
|
|
1285
1285
|
if (typeof e == "string") {
|
|
1286
1286
|
let n = e;
|
|
@@ -1327,7 +1327,7 @@ let Uu = class extends Map {
|
|
|
1327
1327
|
return r === void 0 && (r = this.factory(t), this.set(t, r)), r;
|
|
1328
1328
|
}
|
|
1329
1329
|
};
|
|
1330
|
-
var
|
|
1330
|
+
var Mp = Object.defineProperty, jp = (e, t, r) => t in e ? Mp(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Dp = (e, t, r) => (jp(e, t + "", r), r), Yu = (e, t, r) => {
|
|
1331
1331
|
if (!t.has(e)) throw TypeError("Cannot " + r);
|
|
1332
1332
|
}, Ye = (e, t, r) => (Yu(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Qo = (e, t, r) => {
|
|
1333
1333
|
if (t.has(e)) throw TypeError("Cannot add the same private member more than once");
|
|
@@ -1335,7 +1335,7 @@ var _p = Object.defineProperty, Mp = (e, t, r) => t in e ? _p(e, t, { enumerable
|
|
|
1335
1335
|
}, Ps = (e, t, r, n) => (Yu(e, t, "write to private field"), t.set(e, r), r), nt, Wr, Ur;
|
|
1336
1336
|
let xo = class {
|
|
1337
1337
|
constructor(t) {
|
|
1338
|
-
Qo(this, nt, {}), Qo(this, Wr, new Uu(() => /* @__PURE__ */ new Set())), Qo(this, Ur, /* @__PURE__ */ new Set()),
|
|
1338
|
+
Qo(this, nt, {}), Qo(this, Wr, new Uu(() => /* @__PURE__ */ new Set())), Qo(this, Ur, /* @__PURE__ */ new Set()), Dp(this, "disposables", De()), Ps(this, nt, t), it.isServer && this.disposables.microTask(() => {
|
|
1339
1339
|
this.dispose();
|
|
1340
1340
|
});
|
|
1341
1341
|
}
|
|
@@ -1393,8 +1393,8 @@ function Jr(e) {
|
|
|
1393
1393
|
t(...o), n.dispose(), n.microTask(r);
|
|
1394
1394
|
};
|
|
1395
1395
|
}
|
|
1396
|
-
var
|
|
1397
|
-
let
|
|
1396
|
+
var Lp = Object.defineProperty, Vp = (e, t, r) => t in e ? Lp(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $s = (e, t, r) => (Vp(e, typeof t != "symbol" ? t + "" : t, r), r), Ci = ((e) => (e[e.Push = 0] = "Push", e[e.Pop = 1] = "Pop", e))(Ci || {});
|
|
1397
|
+
let zp = { 0(e, t) {
|
|
1398
1398
|
let r = t.id, n = e.stack, o = e.stack.indexOf(r);
|
|
1399
1399
|
if (o !== -1) {
|
|
1400
1400
|
let a = e.stack.slice();
|
|
@@ -1406,7 +1406,7 @@ let Vp = { 0(e, t) {
|
|
|
1406
1406
|
if (n === -1) return e;
|
|
1407
1407
|
let o = e.stack.slice();
|
|
1408
1408
|
return o.splice(n, 1), { ...e, stack: o };
|
|
1409
|
-
} },
|
|
1409
|
+
} }, Hp = class qu extends xo {
|
|
1410
1410
|
constructor() {
|
|
1411
1411
|
super(...arguments), $s(this, "actions", { push: (t) => this.send({ type: 0, id: t }), pop: (t) => this.send({ type: 1, id: t }) }), $s(this, "selectors", { isTop: (t, r) => t.stack[t.stack.length - 1] === r, inStack: (t, r) => t.stack.includes(r) });
|
|
1412
1412
|
}
|
|
@@ -1414,13 +1414,13 @@ let Vp = { 0(e, t) {
|
|
|
1414
1414
|
return new qu({ stack: [] });
|
|
1415
1415
|
}
|
|
1416
1416
|
reduce(t, r) {
|
|
1417
|
-
return Pe(r.type,
|
|
1417
|
+
return Pe(r.type, zp, t, r);
|
|
1418
1418
|
}
|
|
1419
1419
|
};
|
|
1420
|
-
const gr = new Uu(() =>
|
|
1420
|
+
const gr = new Uu(() => Hp.new());
|
|
1421
1421
|
var jn = { exports: {} }, ea = {};
|
|
1422
1422
|
var Ns;
|
|
1423
|
-
function
|
|
1423
|
+
function Bp() {
|
|
1424
1424
|
if (Ns) return ea;
|
|
1425
1425
|
Ns = 1;
|
|
1426
1426
|
var e = $;
|
|
@@ -1472,7 +1472,7 @@ function Hp() {
|
|
|
1472
1472
|
}
|
|
1473
1473
|
var ta = {};
|
|
1474
1474
|
var As;
|
|
1475
|
-
function
|
|
1475
|
+
function Gp() {
|
|
1476
1476
|
return As || (As = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1477
1477
|
function e(l, u) {
|
|
1478
1478
|
return l === u && (l !== 0 || 1 / l === 1 / u) || l !== l && u !== u;
|
|
@@ -1524,14 +1524,14 @@ function Bp() {
|
|
|
1524
1524
|
})()), ta;
|
|
1525
1525
|
}
|
|
1526
1526
|
var Os;
|
|
1527
|
-
function
|
|
1528
|
-
return Os || (Os = 1, process.env.NODE_ENV === "production" ? jn.exports =
|
|
1527
|
+
function Wp() {
|
|
1528
|
+
return Os || (Os = 1, process.env.NODE_ENV === "production" ? jn.exports = Bp() : jn.exports = Gp()), jn.exports;
|
|
1529
1529
|
}
|
|
1530
|
-
var
|
|
1530
|
+
var Up = Wp();
|
|
1531
1531
|
function fe(e, t, r = Ku) {
|
|
1532
|
-
return
|
|
1532
|
+
return Up.useSyncExternalStoreWithSelector(j((n) => e.subscribe(Yp, n)), j(() => e.state), j(() => e.state), j(t), r);
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1534
|
+
function Yp(e) {
|
|
1535
1535
|
return e;
|
|
1536
1536
|
}
|
|
1537
1537
|
function yn(e, t) {
|
|
@@ -1595,13 +1595,13 @@ function wo(e, t, r) {
|
|
|
1595
1595
|
return () => a.dispose();
|
|
1596
1596
|
}, [t, n, e]);
|
|
1597
1597
|
}
|
|
1598
|
-
let ro = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "details>summary", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","),
|
|
1599
|
-
var Re = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(Re || {}), kr = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(kr || {}),
|
|
1598
|
+
let ro = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "details>summary", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), Kp = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
1599
|
+
var Re = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(Re || {}), kr = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(kr || {}), qp = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(qp || {});
|
|
1600
1600
|
function xn(e = document.body) {
|
|
1601
1601
|
return e == null ? [] : Array.from(e.querySelectorAll(ro)).sort((t, r) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1604
|
-
return e == null ? [] : Array.from(e.querySelectorAll(
|
|
1603
|
+
function Xp(e = document.body) {
|
|
1604
|
+
return e == null ? [] : Array.from(e.querySelectorAll(Kp)).sort((t, r) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
1605
1605
|
}
|
|
1606
1606
|
var wn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(wn || {});
|
|
1607
1607
|
function Sn(e, t = 0) {
|
|
@@ -1623,7 +1623,7 @@ function Xu(e) {
|
|
|
1623
1623
|
t && Je(t) && !Sn(t, 0) && st(e);
|
|
1624
1624
|
});
|
|
1625
1625
|
}
|
|
1626
|
-
var
|
|
1626
|
+
var Jp = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(Jp || {});
|
|
1627
1627
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
|
|
1628
1628
|
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
1629
1629
|
}, !0), document.addEventListener("click", (e) => {
|
|
@@ -1632,10 +1632,10 @@ typeof window < "u" && typeof document < "u" && (document.addEventListener("keyd
|
|
|
1632
1632
|
function st(e) {
|
|
1633
1633
|
e?.focus({ preventScroll: !0 });
|
|
1634
1634
|
}
|
|
1635
|
-
let
|
|
1636
|
-
function
|
|
1635
|
+
let Qp = ["textarea", "input"].join(",");
|
|
1636
|
+
function Zp(e) {
|
|
1637
1637
|
var t, r;
|
|
1638
|
-
return (r = (t = e?.matches) == null ? void 0 : t.call(e,
|
|
1638
|
+
return (r = (t = e?.matches) == null ? void 0 : t.call(e, Qp)) != null ? r : !1;
|
|
1639
1639
|
}
|
|
1640
1640
|
function Pi(e, t = (r) => r) {
|
|
1641
1641
|
return e.slice().sort((r, n) => {
|
|
@@ -1649,7 +1649,7 @@ function Ju(e, t, r = e === null ? document.body : zt(e)) {
|
|
|
1649
1649
|
return He(xn(r), t, { relativeTo: e });
|
|
1650
1650
|
}
|
|
1651
1651
|
function He(e, t, { sorted: r = !0, relativeTo: n = null, skipElements: o = [] } = {}) {
|
|
1652
|
-
let a = Array.isArray(e) ? e.length > 0 ? zt(e[0]) : document : zt(e), i = Array.isArray(e) ? r ? Pi(e) : e : t & 64 ?
|
|
1652
|
+
let a = Array.isArray(e) ? e.length > 0 ? zt(e[0]) : document : zt(e), i = Array.isArray(e) ? r ? Pi(e) : e : t & 64 ? Xp(e) : xn(e);
|
|
1653
1653
|
o.length > 0 && i.length > 1 && (i = i.filter((d) => !o.some((p) => p != null && "current" in p ? p?.current === d : p === d))), n = n ?? a?.activeElement;
|
|
1654
1654
|
let s = (() => {
|
|
1655
1655
|
if (t & 5) return 1;
|
|
@@ -1672,16 +1672,16 @@ function He(e, t, { sorted: r = !0, relativeTo: n = null, skipElements: o = [] }
|
|
|
1672
1672
|
}
|
|
1673
1673
|
g = i[d], g?.focus(u), c += s;
|
|
1674
1674
|
} while (g !== Ht(g));
|
|
1675
|
-
return t & 6 &&
|
|
1675
|
+
return t & 6 && Zp(g) && g.select(), 2;
|
|
1676
1676
|
}
|
|
1677
1677
|
function Qu() {
|
|
1678
1678
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function em() {
|
|
1681
1681
|
return /Android/gi.test(window.navigator.userAgent);
|
|
1682
1682
|
}
|
|
1683
1683
|
function Ts() {
|
|
1684
|
-
return Qu() ||
|
|
1684
|
+
return Qu() || em();
|
|
1685
1685
|
}
|
|
1686
1686
|
function br(e, t, r, n) {
|
|
1687
1687
|
let o = ut(r);
|
|
@@ -1729,16 +1729,16 @@ function So(e, t, r) {
|
|
|
1729
1729
|
}, !0), br(e, "touchend", (s) => {
|
|
1730
1730
|
let l = { x: s.changedTouches[0].clientX, y: s.changedTouches[0].clientY };
|
|
1731
1731
|
if (!(Math.abs(l.x - i.current.x) >= _s || Math.abs(l.y - i.current.y) >= _s)) return o(s, () => Je(s.target) ? s.target : null);
|
|
1732
|
-
}, !0), Zu(e, "blur", (s) => o(s, () =>
|
|
1732
|
+
}, !0), Zu(e, "blur", (s) => o(s, () => xp(window.document.activeElement) ? window.document.activeElement : null), !0);
|
|
1733
1733
|
}
|
|
1734
1734
|
function kt(...e) {
|
|
1735
1735
|
return xe(() => Qt(...e), [...e]);
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1737
|
+
function tm(...e) {
|
|
1738
1738
|
return xe(() => zt(...e), [...e]);
|
|
1739
1739
|
}
|
|
1740
|
-
var
|
|
1741
|
-
const Mt = { Ignore: { kind: 0 }, Select: (e) => ({ kind: 1, target: e }), Close: { kind: 2 } },
|
|
1740
|
+
var rm = ((e) => (e[e.Ignore = 0] = "Ignore", e[e.Select = 1] = "Select", e[e.Close = 2] = "Close", e))(rm || {});
|
|
1741
|
+
const Mt = { Ignore: { kind: 0 }, Select: (e) => ({ kind: 1, target: e }), Close: { kind: 2 } }, nm = 200, Ms = 5;
|
|
1742
1742
|
function ec(e, { trigger: t, action: r, close: n, select: o }) {
|
|
1743
1743
|
let a = Y(null), i = Y(null), s = Y(null);
|
|
1744
1744
|
br(e && t !== null, "pointerdown", (l) => {
|
|
@@ -1752,7 +1752,7 @@ function ec(e, { trigger: t, action: r, close: n, select: o }) {
|
|
|
1752
1752
|
case 0:
|
|
1753
1753
|
return;
|
|
1754
1754
|
case 1: {
|
|
1755
|
-
l.timeStamp - f >
|
|
1755
|
+
l.timeStamp - f > nm && (o(g.target), n());
|
|
1756
1756
|
break;
|
|
1757
1757
|
}
|
|
1758
1758
|
case 2: {
|
|
@@ -1780,10 +1780,10 @@ function ko(e, t) {
|
|
|
1780
1780
|
if (typeof n == "string" && n.toLowerCase() === "button" || t?.tagName === "BUTTON" && !t.hasAttribute("type")) return "button";
|
|
1781
1781
|
}, [e.type, e.as, t]);
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1784
|
-
return
|
|
1783
|
+
function om(e) {
|
|
1784
|
+
return yg(e.subscribe, e.getSnapshot, e.getSnapshot);
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function am(e, t) {
|
|
1787
1787
|
let r = e(), n = /* @__PURE__ */ new Set();
|
|
1788
1788
|
return { getSnapshot() {
|
|
1789
1789
|
return r;
|
|
@@ -1794,7 +1794,7 @@ function om(e, t) {
|
|
|
1794
1794
|
i && (r = i, n.forEach((s) => s()));
|
|
1795
1795
|
} };
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1797
|
+
function im() {
|
|
1798
1798
|
let e;
|
|
1799
1799
|
return { before({ doc: t }) {
|
|
1800
1800
|
var r;
|
|
@@ -1805,7 +1805,7 @@ function am() {
|
|
|
1805
1805
|
r.style(n, "paddingRight", `${a}px`);
|
|
1806
1806
|
} };
|
|
1807
1807
|
}
|
|
1808
|
-
function
|
|
1808
|
+
function sm() {
|
|
1809
1809
|
return Qu() ? { before({ doc: e, d: t, meta: r }) {
|
|
1810
1810
|
function n(o) {
|
|
1811
1811
|
for (let a of r().containers) for (let i of a()) if (i.contains(o)) return !0;
|
|
@@ -1828,7 +1828,7 @@ function im() {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
}, !0), t.group((s) => {
|
|
1830
1830
|
t.addEventListener(e, "touchstart", (l) => {
|
|
1831
|
-
if (s.dispose(), Je(l.target) &&
|
|
1831
|
+
if (s.dispose(), Je(l.target) && yp(l.target)) if (n(l.target)) {
|
|
1832
1832
|
let u = l.target;
|
|
1833
1833
|
for (; u.parentElement && n(u.parentElement); ) u = u.parentElement;
|
|
1834
1834
|
s.style(u, "overscrollBehavior", "contain");
|
|
@@ -1851,7 +1851,7 @@ function im() {
|
|
|
1851
1851
|
});
|
|
1852
1852
|
} } : {};
|
|
1853
1853
|
}
|
|
1854
|
-
function
|
|
1854
|
+
function lm() {
|
|
1855
1855
|
return { before({ doc: e, d: t }) {
|
|
1856
1856
|
t.style(e.documentElement, "overflow", "hidden");
|
|
1857
1857
|
} };
|
|
@@ -1861,7 +1861,7 @@ function js(e) {
|
|
|
1861
1861
|
for (let r of e) Object.assign(t, r(t));
|
|
1862
1862
|
return t;
|
|
1863
1863
|
}
|
|
1864
|
-
let ir =
|
|
1864
|
+
let ir = am(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
1865
1865
|
var r;
|
|
1866
1866
|
let n = (r = this.get(e)) != null ? r : { doc: e, count: 0, d: De(), meta: /* @__PURE__ */ new Set(), computedMeta: {} };
|
|
1867
1867
|
return n.count++, n.meta.add(t), n.computedMeta = js(n.meta), this.set(e, n), this;
|
|
@@ -1871,7 +1871,7 @@ let ir = om(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
|
1871
1871
|
}, SCROLL_PREVENT(e) {
|
|
1872
1872
|
let t = { doc: e.doc, d: e.d, meta() {
|
|
1873
1873
|
return e.computedMeta;
|
|
1874
|
-
} }, r = [
|
|
1874
|
+
} }, r = [sm(), im(), lm()];
|
|
1875
1875
|
r.forEach(({ before: n }) => n?.(t)), r.forEach(({ after: n }) => n?.(t));
|
|
1876
1876
|
}, SCROLL_ALLOW({ d: e }) {
|
|
1877
1877
|
e.dispose();
|
|
@@ -1886,15 +1886,15 @@ ir.subscribe(() => {
|
|
|
1886
1886
|
(o && !n || !o && n) && ir.dispatch(r.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", r), r.count === 0 && ir.dispatch("TEARDOWN", r);
|
|
1887
1887
|
}
|
|
1888
1888
|
});
|
|
1889
|
-
function
|
|
1890
|
-
let n =
|
|
1889
|
+
function um(e, t, r = () => ({ containers: [] })) {
|
|
1890
|
+
let n = om(ir), o = t ? n.get(t) : void 0, a = o ? o.count > 0 : !1;
|
|
1891
1891
|
return me(() => {
|
|
1892
1892
|
if (!(!t || !e)) return ir.dispatch("PUSH", t, r), () => ir.dispatch("POP", t, r);
|
|
1893
1893
|
}, [e, t]), a;
|
|
1894
1894
|
}
|
|
1895
1895
|
function Co(e, t, r = () => [document.body]) {
|
|
1896
1896
|
let n = yn(e, "scroll-lock");
|
|
1897
|
-
|
|
1897
|
+
um(n, t, (o) => {
|
|
1898
1898
|
var a;
|
|
1899
1899
|
return { containers: [...(a = o.containers) != null ? a : [], r] };
|
|
1900
1900
|
});
|
|
@@ -1911,7 +1911,7 @@ function tc() {
|
|
|
1911
1911
|
e.current = Ds(t);
|
|
1912
1912
|
} };
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function cm(e = 0) {
|
|
1915
1915
|
let [t, r] = ne(e), n = oe((l) => r(l), []), o = oe((l) => r((u) => u | l), []), a = oe((l) => (t & l) === l, [t]), i = oe((l) => r((u) => u & ~l), []), s = oe((l) => r((u) => u ^ l), []);
|
|
1916
1916
|
return { flags: t, setFlag: n, addFlag: o, hasFlag: a, removeFlag: i, toggleFlag: s };
|
|
1917
1917
|
}
|
|
@@ -1920,14 +1920,14 @@ typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((Ls
|
|
|
1920
1920
|
return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.", "Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.", "", "Example usage:", "```js", "import { mockAnimationsApi } from 'jsdom-testing-mocks'", "mockAnimationsApi()", "```"].join(`
|
|
1921
1921
|
`)), [];
|
|
1922
1922
|
});
|
|
1923
|
-
var
|
|
1923
|
+
var dm = ((e) => (e[e.None = 0] = "None", e[e.Closed = 1] = "Closed", e[e.Enter = 2] = "Enter", e[e.Leave = 4] = "Leave", e))(dm || {});
|
|
1924
1924
|
function kn(e) {
|
|
1925
1925
|
let t = {};
|
|
1926
1926
|
for (let r in e) e[r] === !0 && (t[`data-${r}`] = "");
|
|
1927
1927
|
return t;
|
|
1928
1928
|
}
|
|
1929
1929
|
function Cn(e, t, r, n) {
|
|
1930
|
-
let [o, a] = ne(r), { hasFlag: i, addFlag: s, removeFlag: l } =
|
|
1930
|
+
let [o, a] = ne(r), { hasFlag: i, addFlag: s, removeFlag: l } = cm(e && o ? 3 : 0), u = Y(!1), c = Y(!1), f = rt();
|
|
1931
1931
|
return me(() => {
|
|
1932
1932
|
var g;
|
|
1933
1933
|
if (e) {
|
|
@@ -1935,26 +1935,26 @@ function Cn(e, t, r, n) {
|
|
|
1935
1935
|
r && s(3);
|
|
1936
1936
|
return;
|
|
1937
1937
|
}
|
|
1938
|
-
return (g = n?.start) == null || g.call(n, r),
|
|
1938
|
+
return (g = n?.start) == null || g.call(n, r), fm(t, { inFlight: u, prepare() {
|
|
1939
1939
|
c.current ? c.current = !1 : c.current = u.current, u.current = !0, !c.current && (r ? (s(3), l(4)) : (s(4), l(2)));
|
|
1940
1940
|
}, run() {
|
|
1941
1941
|
c.current ? r ? (l(3), s(4)) : (l(4), s(3)) : r ? l(1) : s(1);
|
|
1942
1942
|
}, done() {
|
|
1943
1943
|
var d;
|
|
1944
|
-
c.current &&
|
|
1944
|
+
c.current && mm(t) || (u.current = !1, l(7), r || a(!1), (d = n?.end) == null || d.call(n, r));
|
|
1945
1945
|
} });
|
|
1946
1946
|
}
|
|
1947
1947
|
}, [e, r, t, f]), e ? [o, { closed: i(1), enter: i(2), leave: i(4), transition: i(2) || i(4) }] : [r, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
|
|
1948
1948
|
}
|
|
1949
|
-
function
|
|
1949
|
+
function fm(e, { prepare: t, run: r, done: n, inFlight: o }) {
|
|
1950
1950
|
let a = De();
|
|
1951
|
-
return
|
|
1951
|
+
return pm(e, { prepare: t, inFlight: o }), a.nextFrame(() => {
|
|
1952
1952
|
r(), a.requestAnimationFrame(() => {
|
|
1953
|
-
a.add(
|
|
1953
|
+
a.add(gm(e, n));
|
|
1954
1954
|
});
|
|
1955
1955
|
}), a.dispose;
|
|
1956
1956
|
}
|
|
1957
|
-
function
|
|
1957
|
+
function gm(e, t) {
|
|
1958
1958
|
var r, n;
|
|
1959
1959
|
let o = De();
|
|
1960
1960
|
if (!e) return o.dispose;
|
|
@@ -1967,7 +1967,7 @@ function fm(e, t) {
|
|
|
1967
1967
|
a || t();
|
|
1968
1968
|
}), o.dispose);
|
|
1969
1969
|
}
|
|
1970
|
-
function
|
|
1970
|
+
function pm(e, { inFlight: t, prepare: r }) {
|
|
1971
1971
|
if (t != null && t.current) {
|
|
1972
1972
|
r();
|
|
1973
1973
|
return;
|
|
@@ -1975,11 +1975,11 @@ function gm(e, { inFlight: t, prepare: r }) {
|
|
|
1975
1975
|
let n = e.style.transition;
|
|
1976
1976
|
e.style.transition = "none", r(), e.offsetHeight, e.style.transition = n;
|
|
1977
1977
|
}
|
|
1978
|
-
function
|
|
1978
|
+
function mm(e) {
|
|
1979
1979
|
var t, r;
|
|
1980
1980
|
return ((r = (t = e.getAnimations) == null ? void 0 : t.call(e)) != null ? r : []).some((n) => n instanceof CSSTransition && n.playState !== "finished");
|
|
1981
1981
|
}
|
|
1982
|
-
function
|
|
1982
|
+
function hm(e, { container: t, accept: r, walk: n }) {
|
|
1983
1983
|
let o = Y(r), a = Y(n);
|
|
1984
1984
|
de(() => {
|
|
1985
1985
|
o.current = r, a.current = n;
|
|
@@ -2027,7 +2027,7 @@ function dt(e) {
|
|
|
2027
2027
|
function zs(e) {
|
|
2028
2028
|
return !Eo() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Ge(e).ShadowRoot;
|
|
2029
2029
|
}
|
|
2030
|
-
const
|
|
2030
|
+
const vm = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
2031
2031
|
function En(e) {
|
|
2032
2032
|
const {
|
|
2033
2033
|
overflow: t,
|
|
@@ -2035,15 +2035,15 @@ function En(e) {
|
|
|
2035
2035
|
overflowY: n,
|
|
2036
2036
|
display: o
|
|
2037
2037
|
} = et(e);
|
|
2038
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !
|
|
2038
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !vm.has(o);
|
|
2039
2039
|
}
|
|
2040
|
-
const
|
|
2041
|
-
function
|
|
2042
|
-
return
|
|
2040
|
+
const bm = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
2041
|
+
function ym(e) {
|
|
2042
|
+
return bm.has(Fr(e));
|
|
2043
2043
|
}
|
|
2044
|
-
const
|
|
2044
|
+
const xm = [":popover-open", ":modal"];
|
|
2045
2045
|
function Po(e) {
|
|
2046
|
-
return
|
|
2046
|
+
return xm.some((t) => {
|
|
2047
2047
|
try {
|
|
2048
2048
|
return e.matches(t);
|
|
2049
2049
|
} catch {
|
|
@@ -2051,12 +2051,12 @@ function Po(e) {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
});
|
|
2053
2053
|
}
|
|
2054
|
-
const
|
|
2054
|
+
const wm = ["transform", "translate", "scale", "rotate", "perspective"], Sm = ["transform", "translate", "scale", "rotate", "perspective", "filter"], km = ["paint", "layout", "strict", "content"];
|
|
2055
2055
|
function Ni(e) {
|
|
2056
2056
|
const t = Ai(), r = je(e) ? et(e) : e;
|
|
2057
|
-
return
|
|
2057
|
+
return wm.some((n) => r[n] ? r[n] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || Sm.some((n) => (r.willChange || "").includes(n)) || km.some((n) => (r.contain || "").includes(n));
|
|
2058
2058
|
}
|
|
2059
|
-
function
|
|
2059
|
+
function Cm(e) {
|
|
2060
2060
|
let t = Bt(e);
|
|
2061
2061
|
for (; dt(t) && !Cr(t); ) {
|
|
2062
2062
|
if (Ni(t))
|
|
@@ -2070,9 +2070,9 @@ function km(e) {
|
|
|
2070
2070
|
function Ai() {
|
|
2071
2071
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
2072
2072
|
}
|
|
2073
|
-
const
|
|
2073
|
+
const Em = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
2074
2074
|
function Cr(e) {
|
|
2075
|
-
return
|
|
2075
|
+
return Em.has(Fr(e));
|
|
2076
2076
|
}
|
|
2077
2077
|
function et(e) {
|
|
2078
2078
|
return Ge(e).getComputedStyle(e);
|
|
@@ -2115,7 +2115,7 @@ function ln(e, t, r) {
|
|
|
2115
2115
|
function Ia(e) {
|
|
2116
2116
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
2117
2117
|
}
|
|
2118
|
-
function
|
|
2118
|
+
function Pm() {
|
|
2119
2119
|
const e = navigator.userAgentData;
|
|
2120
2120
|
return e && Array.isArray(e.brands) ? e.brands.map((t) => {
|
|
2121
2121
|
let {
|
|
@@ -2125,15 +2125,15 @@ function Em() {
|
|
|
2125
2125
|
return r + "/" + n;
|
|
2126
2126
|
}).join(" ") : navigator.userAgent;
|
|
2127
2127
|
}
|
|
2128
|
-
const
|
|
2128
|
+
const Rm = ["top", "right", "bottom", "left"], Ct = Math.min, _e = Math.max, un = Math.round, Dn = Math.floor, lt = (e) => ({
|
|
2129
2129
|
x: e,
|
|
2130
2130
|
y: e
|
|
2131
|
-
}),
|
|
2131
|
+
}), $m = {
|
|
2132
2132
|
left: "right",
|
|
2133
2133
|
right: "left",
|
|
2134
2134
|
bottom: "top",
|
|
2135
2135
|
top: "bottom"
|
|
2136
|
-
},
|
|
2136
|
+
}, Nm = {
|
|
2137
2137
|
start: "end",
|
|
2138
2138
|
end: "start"
|
|
2139
2139
|
};
|
|
@@ -2155,48 +2155,48 @@ function Oi(e) {
|
|
|
2155
2155
|
function Ii(e) {
|
|
2156
2156
|
return e === "y" ? "height" : "width";
|
|
2157
2157
|
}
|
|
2158
|
-
const
|
|
2158
|
+
const Am = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
2159
2159
|
function ot(e) {
|
|
2160
|
-
return
|
|
2160
|
+
return Am.has(Et(e)) ? "y" : "x";
|
|
2161
2161
|
}
|
|
2162
2162
|
function Fi(e) {
|
|
2163
2163
|
return Oi(ot(e));
|
|
2164
2164
|
}
|
|
2165
|
-
function
|
|
2165
|
+
function Om(e, t, r) {
|
|
2166
2166
|
r === void 0 && (r = !1);
|
|
2167
2167
|
const n = Tr(e), o = Fi(e), a = Ii(o);
|
|
2168
2168
|
let i = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
2169
2169
|
return t.reference[a] > t.floating[a] && (i = no(i)), [i, no(i)];
|
|
2170
2170
|
}
|
|
2171
|
-
function
|
|
2171
|
+
function Im(e) {
|
|
2172
2172
|
const t = no(e);
|
|
2173
2173
|
return [Ta(e), t, Ta(t)];
|
|
2174
2174
|
}
|
|
2175
2175
|
function Ta(e) {
|
|
2176
|
-
return e.replace(/start|end/g, (t) =>
|
|
2176
|
+
return e.replace(/start|end/g, (t) => Nm[t]);
|
|
2177
2177
|
}
|
|
2178
|
-
const Hs = ["left", "right"], Bs = ["right", "left"],
|
|
2179
|
-
function
|
|
2178
|
+
const Hs = ["left", "right"], Bs = ["right", "left"], Fm = ["top", "bottom"], Tm = ["bottom", "top"];
|
|
2179
|
+
function _m(e, t, r) {
|
|
2180
2180
|
switch (e) {
|
|
2181
2181
|
case "top":
|
|
2182
2182
|
case "bottom":
|
|
2183
2183
|
return r ? t ? Bs : Hs : t ? Hs : Bs;
|
|
2184
2184
|
case "left":
|
|
2185
2185
|
case "right":
|
|
2186
|
-
return t ?
|
|
2186
|
+
return t ? Fm : Tm;
|
|
2187
2187
|
default:
|
|
2188
2188
|
return [];
|
|
2189
2189
|
}
|
|
2190
2190
|
}
|
|
2191
|
-
function
|
|
2191
|
+
function Mm(e, t, r, n) {
|
|
2192
2192
|
const o = Tr(e);
|
|
2193
|
-
let a =
|
|
2193
|
+
let a = _m(Et(e), r === "start", n);
|
|
2194
2194
|
return o && (a = a.map((i) => i + "-" + o), t && (a = a.concat(a.map(Ta)))), a;
|
|
2195
2195
|
}
|
|
2196
2196
|
function no(e) {
|
|
2197
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
2197
|
+
return e.replace(/left|right|bottom|top/g, (t) => $m[t]);
|
|
2198
2198
|
}
|
|
2199
|
-
function
|
|
2199
|
+
function jm(e) {
|
|
2200
2200
|
return {
|
|
2201
2201
|
top: 0,
|
|
2202
2202
|
right: 0,
|
|
@@ -2206,7 +2206,7 @@ function Mm(e) {
|
|
|
2206
2206
|
};
|
|
2207
2207
|
}
|
|
2208
2208
|
function oc(e) {
|
|
2209
|
-
return typeof e != "number" ?
|
|
2209
|
+
return typeof e != "number" ? jm(e) : {
|
|
2210
2210
|
top: e,
|
|
2211
2211
|
right: e,
|
|
2212
2212
|
bottom: e,
|
|
@@ -2324,7 +2324,7 @@ async function ac(e, t) {
|
|
|
2324
2324
|
right: (S.right - b.right + p.right) / k.x
|
|
2325
2325
|
};
|
|
2326
2326
|
}
|
|
2327
|
-
const
|
|
2327
|
+
const Dm = async (e, t, r) => {
|
|
2328
2328
|
const {
|
|
2329
2329
|
placement: n = "bottom",
|
|
2330
2330
|
strategy: o = "absolute",
|
|
@@ -2388,7 +2388,7 @@ const jm = async (e, t, r) => {
|
|
|
2388
2388
|
strategy: o,
|
|
2389
2389
|
middlewareData: d
|
|
2390
2390
|
};
|
|
2391
|
-
},
|
|
2391
|
+
}, Lm = (e) => ({
|
|
2392
2392
|
name: "arrow",
|
|
2393
2393
|
options: e,
|
|
2394
2394
|
async fn(t) {
|
|
@@ -2425,7 +2425,7 @@ const jm = async (e, t, r) => {
|
|
|
2425
2425
|
reset: B
|
|
2426
2426
|
};
|
|
2427
2427
|
}
|
|
2428
|
-
}),
|
|
2428
|
+
}), Vm = function(e) {
|
|
2429
2429
|
return e === void 0 && (e = {}), {
|
|
2430
2430
|
name: "flip",
|
|
2431
2431
|
options: e,
|
|
@@ -2449,12 +2449,12 @@ const jm = async (e, t, r) => {
|
|
|
2449
2449
|
} = ft(e, t);
|
|
2450
2450
|
if ((r = a.arrow) != null && r.alignmentOffset)
|
|
2451
2451
|
return {};
|
|
2452
|
-
const b = Et(o), x = ot(s), y = Et(s) === s, k = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), S = g || (y || !m ? [no(s)] :
|
|
2453
|
-
!g && P && S.push(...
|
|
2452
|
+
const b = Et(o), x = ot(s), y = Et(s) === s, k = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), S = g || (y || !m ? [no(s)] : Im(s)), P = p !== "none";
|
|
2453
|
+
!g && P && S.push(...Mm(s, m, p, k));
|
|
2454
2454
|
const N = [s, ...S], O = await l.detectOverflow(t, v), H = [];
|
|
2455
2455
|
let A = ((n = a.flip) == null ? void 0 : n.overflows) || [];
|
|
2456
2456
|
if (c && H.push(O[b]), f) {
|
|
2457
|
-
const T =
|
|
2457
|
+
const T = Om(o, i, k);
|
|
2458
2458
|
H.push(O[T[0]], O[T[1]]);
|
|
2459
2459
|
}
|
|
2460
2460
|
if (A = [...A, {
|
|
@@ -2516,9 +2516,9 @@ function Ws(e, t) {
|
|
|
2516
2516
|
};
|
|
2517
2517
|
}
|
|
2518
2518
|
function Us(e) {
|
|
2519
|
-
return
|
|
2519
|
+
return Rm.some((t) => e[t] >= 0);
|
|
2520
2520
|
}
|
|
2521
|
-
const
|
|
2521
|
+
const zm = function(e) {
|
|
2522
2522
|
return e === void 0 && (e = {}), {
|
|
2523
2523
|
name: "hide",
|
|
2524
2524
|
options: e,
|
|
@@ -2561,7 +2561,7 @@ const Vm = function(e) {
|
|
|
2561
2561
|
}
|
|
2562
2562
|
};
|
|
2563
2563
|
}, ic = /* @__PURE__ */ new Set(["left", "top"]);
|
|
2564
|
-
async function
|
|
2564
|
+
async function Hm(e, t) {
|
|
2565
2565
|
const {
|
|
2566
2566
|
placement: r,
|
|
2567
2567
|
platform: n,
|
|
@@ -2588,7 +2588,7 @@ async function zm(e, t) {
|
|
|
2588
2588
|
y: d * c
|
|
2589
2589
|
};
|
|
2590
2590
|
}
|
|
2591
|
-
const
|
|
2591
|
+
const Bm = function(e) {
|
|
2592
2592
|
return e === void 0 && (e = 0), {
|
|
2593
2593
|
name: "offset",
|
|
2594
2594
|
options: e,
|
|
@@ -2599,7 +2599,7 @@ const Hm = function(e) {
|
|
|
2599
2599
|
y: a,
|
|
2600
2600
|
placement: i,
|
|
2601
2601
|
middlewareData: s
|
|
2602
|
-
} = t, l = await
|
|
2602
|
+
} = t, l = await Hm(t, e);
|
|
2603
2603
|
return i === ((r = s.offset) == null ? void 0 : r.placement) && (n = s.arrow) != null && n.alignmentOffset ? {} : {
|
|
2604
2604
|
x: o + l.x,
|
|
2605
2605
|
y: a + l.y,
|
|
@@ -2610,7 +2610,7 @@ const Hm = function(e) {
|
|
|
2610
2610
|
};
|
|
2611
2611
|
}
|
|
2612
2612
|
};
|
|
2613
|
-
},
|
|
2613
|
+
}, Gm = function(e) {
|
|
2614
2614
|
return e === void 0 && (e = {}), {
|
|
2615
2615
|
name: "shift",
|
|
2616
2616
|
options: e,
|
|
@@ -2667,7 +2667,7 @@ const Hm = function(e) {
|
|
|
2667
2667
|
};
|
|
2668
2668
|
}
|
|
2669
2669
|
};
|
|
2670
|
-
},
|
|
2670
|
+
}, Wm = function(e) {
|
|
2671
2671
|
return e === void 0 && (e = {}), {
|
|
2672
2672
|
options: e,
|
|
2673
2673
|
fn(t) {
|
|
@@ -2709,7 +2709,7 @@ const Hm = function(e) {
|
|
|
2709
2709
|
};
|
|
2710
2710
|
}
|
|
2711
2711
|
};
|
|
2712
|
-
},
|
|
2712
|
+
}, Um = function(e) {
|
|
2713
2713
|
return e === void 0 && (e = {}), {
|
|
2714
2714
|
name: "size",
|
|
2715
2715
|
options: e,
|
|
@@ -2778,15 +2778,15 @@ function xr(e) {
|
|
|
2778
2778
|
y: s
|
|
2779
2779
|
};
|
|
2780
2780
|
}
|
|
2781
|
-
const
|
|
2781
|
+
const Ym = /* @__PURE__ */ lt(0);
|
|
2782
2782
|
function lc(e) {
|
|
2783
2783
|
const t = Ge(e);
|
|
2784
|
-
return !Ai() || !t.visualViewport ?
|
|
2784
|
+
return !Ai() || !t.visualViewport ? Ym : {
|
|
2785
2785
|
x: t.visualViewport.offsetLeft,
|
|
2786
2786
|
y: t.visualViewport.offsetTop
|
|
2787
2787
|
};
|
|
2788
2788
|
}
|
|
2789
|
-
function
|
|
2789
|
+
function Km(e, t, r) {
|
|
2790
2790
|
return t === void 0 && (t = !1), !r || t && r !== Ge(e) ? !1 : t;
|
|
2791
2791
|
}
|
|
2792
2792
|
function cr(e, t, r, n) {
|
|
@@ -2794,7 +2794,7 @@ function cr(e, t, r, n) {
|
|
|
2794
2794
|
const o = e.getBoundingClientRect(), a = Ti(e);
|
|
2795
2795
|
let i = lt(1);
|
|
2796
2796
|
t && (n ? je(n) && (i = xr(n)) : i = xr(e));
|
|
2797
|
-
const s =
|
|
2797
|
+
const s = Km(a, r, n) ? lc(a) : lt(0);
|
|
2798
2798
|
let l = (o.left + s.x) / i.x, u = (o.top + s.y) / i.y, c = o.width / i.x, f = o.height / i.y;
|
|
2799
2799
|
if (a) {
|
|
2800
2800
|
const g = Ge(a), d = n && je(n) ? Ge(n) : n;
|
|
@@ -2822,7 +2822,7 @@ function uc(e, t) {
|
|
|
2822
2822
|
y: o
|
|
2823
2823
|
};
|
|
2824
2824
|
}
|
|
2825
|
-
function
|
|
2825
|
+
function qm(e) {
|
|
2826
2826
|
let {
|
|
2827
2827
|
elements: t,
|
|
2828
2828
|
rect: r,
|
|
@@ -2849,10 +2849,10 @@ function Km(e) {
|
|
|
2849
2849
|
y: r.y * u.y - l.scrollTop * u.y + c.y + g.y
|
|
2850
2850
|
};
|
|
2851
2851
|
}
|
|
2852
|
-
function
|
|
2852
|
+
function Xm(e) {
|
|
2853
2853
|
return Array.from(e.getClientRects());
|
|
2854
2854
|
}
|
|
2855
|
-
function
|
|
2855
|
+
function Jm(e) {
|
|
2856
2856
|
const t = gt(e), r = Ro(e), n = e.ownerDocument.body, o = _e(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), a = _e(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
|
|
2857
2857
|
let i = -r.scrollLeft + $o(e);
|
|
2858
2858
|
const s = -r.scrollTop;
|
|
@@ -2864,7 +2864,7 @@ function Xm(e) {
|
|
|
2864
2864
|
};
|
|
2865
2865
|
}
|
|
2866
2866
|
const Ys = 25;
|
|
2867
|
-
function
|
|
2867
|
+
function Qm(e, t) {
|
|
2868
2868
|
const r = Ge(e), n = gt(e), o = r.visualViewport;
|
|
2869
2869
|
let a = n.clientWidth, i = n.clientHeight, s = 0, l = 0;
|
|
2870
2870
|
if (o) {
|
|
@@ -2884,8 +2884,8 @@ function Jm(e, t) {
|
|
|
2884
2884
|
y: l
|
|
2885
2885
|
};
|
|
2886
2886
|
}
|
|
2887
|
-
const
|
|
2888
|
-
function
|
|
2887
|
+
const Zm = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
2888
|
+
function e0(e, t) {
|
|
2889
2889
|
const r = cr(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, a = dt(e) ? xr(e) : lt(1), i = e.clientWidth * a.x, s = e.clientHeight * a.y, l = o * a.x, u = n * a.y;
|
|
2890
2890
|
return {
|
|
2891
2891
|
width: i,
|
|
@@ -2897,11 +2897,11 @@ function Zm(e, t) {
|
|
|
2897
2897
|
function Ks(e, t, r) {
|
|
2898
2898
|
let n;
|
|
2899
2899
|
if (t === "viewport")
|
|
2900
|
-
n =
|
|
2900
|
+
n = Qm(e, r);
|
|
2901
2901
|
else if (t === "document")
|
|
2902
|
-
n =
|
|
2902
|
+
n = Jm(gt(e));
|
|
2903
2903
|
else if (je(t))
|
|
2904
|
-
n =
|
|
2904
|
+
n = e0(t, r);
|
|
2905
2905
|
else {
|
|
2906
2906
|
const o = lc(e);
|
|
2907
2907
|
n = {
|
|
@@ -2917,7 +2917,7 @@ function cc(e, t) {
|
|
|
2917
2917
|
const r = Bt(e);
|
|
2918
2918
|
return r === t || !je(r) || Cr(r) ? !1 : et(r).position === "fixed" || cc(r, t);
|
|
2919
2919
|
}
|
|
2920
|
-
function
|
|
2920
|
+
function t0(e, t) {
|
|
2921
2921
|
const r = t.get(e);
|
|
2922
2922
|
if (r)
|
|
2923
2923
|
return r;
|
|
@@ -2926,18 +2926,18 @@ function e0(e, t) {
|
|
|
2926
2926
|
let i = a ? Bt(e) : e;
|
|
2927
2927
|
for (; je(i) && !Cr(i); ) {
|
|
2928
2928
|
const s = et(i), l = Ni(i);
|
|
2929
|
-
!l && s.position === "fixed" && (o = null), (a ? !l && !o : !l && s.position === "static" && !!o &&
|
|
2929
|
+
!l && s.position === "fixed" && (o = null), (a ? !l && !o : !l && s.position === "static" && !!o && Zm.has(o.position) || En(i) && !l && cc(e, i)) ? n = n.filter((c) => c !== i) : o = s, i = Bt(i);
|
|
2930
2930
|
}
|
|
2931
2931
|
return t.set(e, n), n;
|
|
2932
2932
|
}
|
|
2933
|
-
function
|
|
2933
|
+
function r0(e) {
|
|
2934
2934
|
let {
|
|
2935
2935
|
element: t,
|
|
2936
2936
|
boundary: r,
|
|
2937
2937
|
rootBoundary: n,
|
|
2938
2938
|
strategy: o
|
|
2939
2939
|
} = e;
|
|
2940
|
-
const i = [...r === "clippingAncestors" ? Po(t) ? [] :
|
|
2940
|
+
const i = [...r === "clippingAncestors" ? Po(t) ? [] : t0(t, this._c) : [].concat(r), n], s = i[0], l = i.reduce((u, c) => {
|
|
2941
2941
|
const f = Ks(t, c, o);
|
|
2942
2942
|
return u.top = _e(f.top, u.top), u.right = Ct(f.right, u.right), u.bottom = Ct(f.bottom, u.bottom), u.left = _e(f.left, u.left), u;
|
|
2943
2943
|
}, Ks(t, s, o));
|
|
@@ -2948,7 +2948,7 @@ function t0(e) {
|
|
|
2948
2948
|
y: l.top
|
|
2949
2949
|
};
|
|
2950
2950
|
}
|
|
2951
|
-
function
|
|
2951
|
+
function n0(e) {
|
|
2952
2952
|
const {
|
|
2953
2953
|
width: t,
|
|
2954
2954
|
height: r
|
|
@@ -2958,7 +2958,7 @@ function r0(e) {
|
|
|
2958
2958
|
height: r
|
|
2959
2959
|
};
|
|
2960
2960
|
}
|
|
2961
|
-
function
|
|
2961
|
+
function o0(e, t, r) {
|
|
2962
2962
|
const n = dt(t), o = gt(t), a = r === "fixed", i = cr(e, !0, a, t);
|
|
2963
2963
|
let s = {
|
|
2964
2964
|
scrollLeft: 0,
|
|
@@ -3007,14 +3007,14 @@ function dc(e, t) {
|
|
|
3007
3007
|
return r;
|
|
3008
3008
|
}
|
|
3009
3009
|
let n = qs(e, t);
|
|
3010
|
-
for (; n &&
|
|
3010
|
+
for (; n && ym(n) && ra(n); )
|
|
3011
3011
|
n = qs(n, t);
|
|
3012
|
-
return n && Cr(n) && ra(n) && !Ni(n) ? r : n ||
|
|
3012
|
+
return n && Cr(n) && ra(n) && !Ni(n) ? r : n || Cm(e) || r;
|
|
3013
3013
|
}
|
|
3014
|
-
const
|
|
3014
|
+
const a0 = async function(e) {
|
|
3015
3015
|
const t = this.getOffsetParent || dc, r = this.getDimensions, n = await r(e.floating);
|
|
3016
3016
|
return {
|
|
3017
|
-
reference:
|
|
3017
|
+
reference: o0(e.reference, await t(e.floating), e.strategy),
|
|
3018
3018
|
floating: {
|
|
3019
3019
|
x: 0,
|
|
3020
3020
|
y: 0,
|
|
@@ -3023,25 +3023,25 @@ const o0 = async function(e) {
|
|
|
3023
3023
|
}
|
|
3024
3024
|
};
|
|
3025
3025
|
};
|
|
3026
|
-
function
|
|
3026
|
+
function i0(e) {
|
|
3027
3027
|
return et(e).direction === "rtl";
|
|
3028
3028
|
}
|
|
3029
|
-
const
|
|
3030
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
3029
|
+
const s0 = {
|
|
3030
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: qm,
|
|
3031
3031
|
getDocumentElement: gt,
|
|
3032
|
-
getClippingRect:
|
|
3032
|
+
getClippingRect: r0,
|
|
3033
3033
|
getOffsetParent: dc,
|
|
3034
|
-
getElementRects:
|
|
3035
|
-
getClientRects:
|
|
3036
|
-
getDimensions:
|
|
3034
|
+
getElementRects: a0,
|
|
3035
|
+
getClientRects: Xm,
|
|
3036
|
+
getDimensions: n0,
|
|
3037
3037
|
getScale: xr,
|
|
3038
3038
|
isElement: je,
|
|
3039
|
-
isRTL:
|
|
3039
|
+
isRTL: i0
|
|
3040
3040
|
};
|
|
3041
3041
|
function fc(e, t) {
|
|
3042
3042
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
3043
3043
|
}
|
|
3044
|
-
function
|
|
3044
|
+
function l0(e, t) {
|
|
3045
3045
|
let r = null, n;
|
|
3046
3046
|
const o = gt(e);
|
|
3047
3047
|
function a() {
|
|
@@ -3101,7 +3101,7 @@ function gc(e, t, r, n) {
|
|
|
3101
3101
|
passive: !0
|
|
3102
3102
|
}), a && b.addEventListener("resize", r);
|
|
3103
3103
|
});
|
|
3104
|
-
const f = u && s ?
|
|
3104
|
+
const f = u && s ? l0(u, r) : null;
|
|
3105
3105
|
let g = -1, d = null;
|
|
3106
3106
|
i && (d = new ResizeObserver((b) => {
|
|
3107
3107
|
let [x] = b;
|
|
@@ -3123,21 +3123,21 @@ function gc(e, t, r, n) {
|
|
|
3123
3123
|
}), f?.(), (b = d) == null || b.disconnect(), d = null, l && cancelAnimationFrame(p);
|
|
3124
3124
|
};
|
|
3125
3125
|
}
|
|
3126
|
-
const na = ac,
|
|
3126
|
+
const na = ac, u0 = Bm, c0 = Gm, d0 = Vm, f0 = Um, g0 = zm, Xs = Lm, p0 = Wm, m0 = (e, t, r) => {
|
|
3127
3127
|
const n = /* @__PURE__ */ new Map(), o = {
|
|
3128
|
-
platform:
|
|
3128
|
+
platform: s0,
|
|
3129
3129
|
...r
|
|
3130
3130
|
}, a = {
|
|
3131
3131
|
...o.platform,
|
|
3132
3132
|
_c: n
|
|
3133
3133
|
};
|
|
3134
|
-
return
|
|
3134
|
+
return Dm(e, t, {
|
|
3135
3135
|
...o,
|
|
3136
3136
|
platform: a
|
|
3137
3137
|
});
|
|
3138
3138
|
};
|
|
3139
|
-
var
|
|
3140
|
-
}, Kn =
|
|
3139
|
+
var h0 = typeof document < "u", v0 = function() {
|
|
3140
|
+
}, Kn = h0 ? ci : v0;
|
|
3141
3141
|
function ao(e, t) {
|
|
3142
3142
|
if (e === t)
|
|
3143
3143
|
return !0;
|
|
@@ -3216,7 +3216,7 @@ function mc(e) {
|
|
|
3216
3216
|
strategy: r,
|
|
3217
3217
|
middleware: g
|
|
3218
3218
|
};
|
|
3219
|
-
R.current && (C.platform = R.current),
|
|
3219
|
+
R.current && (C.platform = R.current), m0(P.current, N.current, C).then((q) => {
|
|
3220
3220
|
const te = {
|
|
3221
3221
|
...q,
|
|
3222
3222
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -3283,7 +3283,7 @@ function mc(e) {
|
|
|
3283
3283
|
floatingStyles: X
|
|
3284
3284
|
}), [c, K, V, B, X]);
|
|
3285
3285
|
}
|
|
3286
|
-
const
|
|
3286
|
+
const b0 = (e) => {
|
|
3287
3287
|
function t(r) {
|
|
3288
3288
|
return {}.hasOwnProperty.call(r, "current");
|
|
3289
3289
|
}
|
|
@@ -3305,35 +3305,35 @@ const v0 = (e) => {
|
|
|
3305
3305
|
}
|
|
3306
3306
|
};
|
|
3307
3307
|
}, _i = (e, t) => ({
|
|
3308
|
-
...
|
|
3308
|
+
...u0(e),
|
|
3309
3309
|
options: [e, t]
|
|
3310
3310
|
}), hc = (e, t) => ({
|
|
3311
|
-
...
|
|
3311
|
+
...c0(e),
|
|
3312
3312
|
options: [e, t]
|
|
3313
|
-
}),
|
|
3314
|
-
...
|
|
3313
|
+
}), y0 = (e, t) => ({
|
|
3314
|
+
...p0(e),
|
|
3315
3315
|
options: [e, t]
|
|
3316
3316
|
}), vc = (e, t) => ({
|
|
3317
|
-
...c0(e),
|
|
3318
|
-
options: [e, t]
|
|
3319
|
-
}), bc = (e, t) => ({
|
|
3320
3317
|
...d0(e),
|
|
3321
3318
|
options: [e, t]
|
|
3322
|
-
}),
|
|
3319
|
+
}), bc = (e, t) => ({
|
|
3323
3320
|
...f0(e),
|
|
3324
3321
|
options: [e, t]
|
|
3325
3322
|
}), x0 = (e, t) => ({
|
|
3326
|
-
...
|
|
3323
|
+
...g0(e),
|
|
3324
|
+
options: [e, t]
|
|
3325
|
+
}), w0 = (e, t) => ({
|
|
3326
|
+
...b0(e),
|
|
3327
3327
|
options: [e, t]
|
|
3328
3328
|
}), yc = {
|
|
3329
3329
|
...w
|
|
3330
|
-
},
|
|
3330
|
+
}, S0 = yc.useInsertionEffect, k0 = S0 || ((e) => e());
|
|
3331
3331
|
function xc(e) {
|
|
3332
3332
|
const t = w.useRef(() => {
|
|
3333
3333
|
if (process.env.NODE_ENV !== "production")
|
|
3334
3334
|
throw new Error("Cannot call an event handler while rendering.");
|
|
3335
3335
|
});
|
|
3336
|
-
return
|
|
3336
|
+
return k0(() => {
|
|
3337
3337
|
t.current = e;
|
|
3338
3338
|
}), w.useCallback(function() {
|
|
3339
3339
|
for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++)
|
|
@@ -3342,13 +3342,13 @@ function xc(e) {
|
|
|
3342
3342
|
}, []);
|
|
3343
3343
|
}
|
|
3344
3344
|
var _a = typeof document < "u" ? ci : de;
|
|
3345
|
-
let Qs = !1,
|
|
3345
|
+
let Qs = !1, C0 = 0;
|
|
3346
3346
|
const Zs = () => (
|
|
3347
3347
|
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
3348
3348
|
// on <React 18
|
|
3349
|
-
"floating-ui-" + Math.random().toString(36).slice(2, 6) +
|
|
3349
|
+
"floating-ui-" + Math.random().toString(36).slice(2, 6) + C0++
|
|
3350
3350
|
);
|
|
3351
|
-
function
|
|
3351
|
+
function E0() {
|
|
3352
3352
|
const [e, t] = w.useState(() => Qs ? Zs() : void 0);
|
|
3353
3353
|
return _a(() => {
|
|
3354
3354
|
e == null && t(Zs());
|
|
@@ -3356,10 +3356,10 @@ function C0() {
|
|
|
3356
3356
|
Qs = !0;
|
|
3357
3357
|
}, []), e;
|
|
3358
3358
|
}
|
|
3359
|
-
const
|
|
3359
|
+
const P0 = yc.useId, R0 = P0 || E0;
|
|
3360
3360
|
let cn;
|
|
3361
3361
|
process.env.NODE_ENV !== "production" && (cn = /* @__PURE__ */ new Set());
|
|
3362
|
-
function
|
|
3362
|
+
function $0() {
|
|
3363
3363
|
for (var e, t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
3364
3364
|
r[n] = arguments[n];
|
|
3365
3365
|
const o = "Floating UI: " + r.join(" ");
|
|
@@ -3368,7 +3368,7 @@ function R0() {
|
|
|
3368
3368
|
(a = cn) == null || a.add(o), console.warn(o);
|
|
3369
3369
|
}
|
|
3370
3370
|
}
|
|
3371
|
-
function
|
|
3371
|
+
function N0() {
|
|
3372
3372
|
for (var e, t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
3373
3373
|
r[n] = arguments[n];
|
|
3374
3374
|
const o = "Floating UI: " + r.join(" ");
|
|
@@ -3377,7 +3377,7 @@ function $0() {
|
|
|
3377
3377
|
(a = cn) == null || a.add(o), console.error(o);
|
|
3378
3378
|
}
|
|
3379
3379
|
}
|
|
3380
|
-
function
|
|
3380
|
+
function A0() {
|
|
3381
3381
|
const e = /* @__PURE__ */ new Map();
|
|
3382
3382
|
return {
|
|
3383
3383
|
emit(t, r) {
|
|
@@ -3393,19 +3393,19 @@ function N0() {
|
|
|
3393
3393
|
}
|
|
3394
3394
|
};
|
|
3395
3395
|
}
|
|
3396
|
-
const
|
|
3396
|
+
const O0 = /* @__PURE__ */ w.createContext(null), I0 = /* @__PURE__ */ w.createContext(null), F0 = () => {
|
|
3397
3397
|
var e;
|
|
3398
|
-
return ((e = w.useContext(
|
|
3399
|
-
},
|
|
3400
|
-
function
|
|
3398
|
+
return ((e = w.useContext(O0)) == null ? void 0 : e.id) || null;
|
|
3399
|
+
}, T0 = () => w.useContext(I0), _0 = "data-floating-ui-focusable";
|
|
3400
|
+
function M0(e) {
|
|
3401
3401
|
const {
|
|
3402
3402
|
open: t = !1,
|
|
3403
3403
|
onOpenChange: r,
|
|
3404
3404
|
elements: n
|
|
3405
|
-
} = e, o =
|
|
3405
|
+
} = e, o = R0(), a = w.useRef({}), [i] = w.useState(() => A0()), s = F0() != null;
|
|
3406
3406
|
if (process.env.NODE_ENV !== "production") {
|
|
3407
3407
|
const d = n.reference;
|
|
3408
|
-
d && !je(d) &&
|
|
3408
|
+
d && !je(d) && N0("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
3409
3409
|
}
|
|
3410
3410
|
const [l, u] = w.useState(n.reference), c = xc((d, p, m) => {
|
|
3411
3411
|
a.current.openEvent = d ? p : void 0, i.emit("openchange", {
|
|
@@ -3431,18 +3431,18 @@ function _0(e) {
|
|
|
3431
3431
|
refs: f
|
|
3432
3432
|
}), [t, c, g, i, o, f]);
|
|
3433
3433
|
}
|
|
3434
|
-
function
|
|
3434
|
+
function j0(e) {
|
|
3435
3435
|
e === void 0 && (e = {});
|
|
3436
3436
|
const {
|
|
3437
3437
|
nodeId: t
|
|
3438
|
-
} = e, r =
|
|
3438
|
+
} = e, r = M0({
|
|
3439
3439
|
...e,
|
|
3440
3440
|
elements: {
|
|
3441
3441
|
reference: null,
|
|
3442
3442
|
floating: null,
|
|
3443
3443
|
...e.elements
|
|
3444
3444
|
}
|
|
3445
|
-
}), n = e.rootContext || r, o = n.elements, [a, i] = w.useState(null), [s, l] = w.useState(null), c = o?.domReference || a, f = w.useRef(null), g =
|
|
3445
|
+
}), n = e.rootContext || r, o = n.elements, [a, i] = w.useState(null), [s, l] = w.useState(null), c = o?.domReference || a, f = w.useRef(null), g = T0();
|
|
3446
3446
|
_a(() => {
|
|
3447
3447
|
c && (f.current = c);
|
|
3448
3448
|
}, [c]);
|
|
@@ -3506,7 +3506,7 @@ function aa(e, t, r) {
|
|
|
3506
3506
|
return {
|
|
3507
3507
|
...r === "floating" && {
|
|
3508
3508
|
tabIndex: -1,
|
|
3509
|
-
[
|
|
3509
|
+
[_0]: ""
|
|
3510
3510
|
},
|
|
3511
3511
|
...a,
|
|
3512
3512
|
...t.map((i) => {
|
|
@@ -3529,7 +3529,7 @@ function aa(e, t, r) {
|
|
|
3529
3529
|
}), i), {})
|
|
3530
3530
|
};
|
|
3531
3531
|
}
|
|
3532
|
-
function
|
|
3532
|
+
function D0(e) {
|
|
3533
3533
|
e === void 0 && (e = []);
|
|
3534
3534
|
const t = e.map((s) => s?.reference), r = e.map((s) => s?.floating), n = e.map((s) => s?.item), o = w.useCallback(
|
|
3535
3535
|
(s) => aa(s, e, "reference"),
|
|
@@ -3562,7 +3562,7 @@ function rl(e, t) {
|
|
|
3562
3562
|
}
|
|
3563
3563
|
};
|
|
3564
3564
|
}
|
|
3565
|
-
const
|
|
3565
|
+
const L0 = (e) => ({
|
|
3566
3566
|
name: "inner",
|
|
3567
3567
|
options: e,
|
|
3568
3568
|
async fn(t) {
|
|
@@ -3582,7 +3582,7 @@ const D0 = (e) => ({
|
|
|
3582
3582
|
floating: g
|
|
3583
3583
|
}
|
|
3584
3584
|
} = t, d = r.current[i], p = u?.current || g, m = g.clientTop || p.clientTop, v = g.clientTop !== 0, b = p.clientTop !== 0, x = g === p;
|
|
3585
|
-
if (process.env.NODE_ENV !== "production" && (t.placement.startsWith("bottom") ||
|
|
3585
|
+
if (process.env.NODE_ENV !== "production" && (t.placement.startsWith("bottom") || $0('`placement` side must be "bottom" when using the `inner`', "middleware.")), !d)
|
|
3586
3586
|
return {};
|
|
3587
3587
|
const y = {
|
|
3588
3588
|
...t,
|
|
@@ -3603,7 +3603,7 @@ const D0 = (e) => ({
|
|
|
3603
3603
|
};
|
|
3604
3604
|
}
|
|
3605
3605
|
});
|
|
3606
|
-
function
|
|
3606
|
+
function V0(e, t) {
|
|
3607
3607
|
const {
|
|
3608
3608
|
open: r,
|
|
3609
3609
|
elements: n
|
|
@@ -3621,7 +3621,7 @@ function L0(e, t) {
|
|
|
3621
3621
|
const v = m.deltaY, b = a.current.top >= -0.5, x = a.current.bottom >= -0.5, y = p.scrollHeight - p.clientHeight, k = v < 0 ? -1 : 1, S = v < 0 ? "max" : "min";
|
|
3622
3622
|
p.scrollHeight <= p.clientHeight || (!b && v > 0 || !x && v < 0 ? (m.preventDefault(), on.flushSync(() => {
|
|
3623
3623
|
l((P) => P + Math[S](v, y * k));
|
|
3624
|
-
})) : /firefox/i.test(
|
|
3624
|
+
})) : /firefox/i.test(Pm()) && (p.scrollTop += v));
|
|
3625
3625
|
}
|
|
3626
3626
|
const p = i?.current || n.floating;
|
|
3627
3627
|
if (r && p)
|
|
@@ -3694,12 +3694,12 @@ function Vi(e = null) {
|
|
|
3694
3694
|
let nl = 4;
|
|
3695
3695
|
function zi({ children: e, enabled: t = !0 }) {
|
|
3696
3696
|
let [r, n] = ne(null), [o, a] = ne(0), i = Y(null), [s, l] = ne(null);
|
|
3697
|
-
|
|
3698
|
-
let u = t && r !== null && s !== null, { to: c = "bottom", gap: f = 0, offset: g = 0, padding: d = 0, inner: p } =
|
|
3697
|
+
z0(s);
|
|
3698
|
+
let u = t && r !== null && s !== null, { to: c = "bottom", gap: f = 0, offset: g = 0, padding: d = 0, inner: p } = H0(r, s), [m, v = "center"] = c.split(" ");
|
|
3699
3699
|
me(() => {
|
|
3700
3700
|
u && a(0);
|
|
3701
3701
|
}, [u]);
|
|
3702
|
-
let { refs: b, floatingStyles: x, context: y } =
|
|
3702
|
+
let { refs: b, floatingStyles: x, context: y } = j0({ open: u, placement: m === "selection" ? v === "center" ? "bottom" : `bottom-${v}` : v === "center" ? `${m}` : `${m}-${v}`, strategy: "absolute", transform: !1, middleware: [_i({ mainAxis: m === "selection" ? 0 : f, crossAxis: g }), hc({ padding: d }), m !== "selection" && vc({ padding: d }), m === "selection" && p ? L0({ ...p, padding: d, overflowRef: i, offset: o, minItemsVisible: nl, referenceOverflowThreshold: d, onFallbackChange(R) {
|
|
3703
3703
|
var L, K;
|
|
3704
3704
|
if (!R) return;
|
|
3705
3705
|
let T = y.elements.floating;
|
|
@@ -3721,12 +3721,12 @@ function zi({ children: e, enabled: t = !0 }) {
|
|
|
3721
3721
|
Object.assign(K.floating.style, { overflow: "auto", maxWidth: `${R}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${L}px)` });
|
|
3722
3722
|
} })].filter(Boolean), whileElementsMounted: gc }), [k = m, S = v] = y.placement.split("-");
|
|
3723
3723
|
m === "selection" && (k = "selection");
|
|
3724
|
-
let P = xe(() => ({ anchor: [k, S].filter(Boolean).join(" ") }), [k, S]), N =
|
|
3724
|
+
let P = xe(() => ({ anchor: [k, S].filter(Boolean).join(" ") }), [k, S]), N = V0(y, { overflowRef: i, onChange: a }), { getReferenceProps: O, getFloatingProps: H } = D0([N]), A = j((R) => {
|
|
3725
3725
|
l(R), b.setFloating(R);
|
|
3726
3726
|
});
|
|
3727
3727
|
return w.createElement(Mi.Provider, { value: n }, w.createElement(_r.Provider, { value: { setFloating: A, setReference: b.setReference, styles: x, getReferenceProps: O, getFloatingProps: H, slot: P } }, e));
|
|
3728
3728
|
}
|
|
3729
|
-
function
|
|
3729
|
+
function z0(e) {
|
|
3730
3730
|
me(() => {
|
|
3731
3731
|
if (!e) return;
|
|
3732
3732
|
let t = new MutationObserver(() => {
|
|
@@ -3740,7 +3740,7 @@ function V0(e) {
|
|
|
3740
3740
|
};
|
|
3741
3741
|
}, [e]);
|
|
3742
3742
|
}
|
|
3743
|
-
function
|
|
3743
|
+
function H0(e, t) {
|
|
3744
3744
|
var r, n, o;
|
|
3745
3745
|
let a = ia((r = e?.gap) != null ? r : "var(--anchor-gap, 0)", t), i = ia((n = e?.offset) != null ? n : "var(--anchor-offset, 0)", t), s = ia((o = e?.padding) != null ? o : "var(--anchor-padding, 0)", t);
|
|
3746
3746
|
return { ...e, gap: a, offset: i, padding: s };
|
|
@@ -3797,11 +3797,11 @@ function ol(e, t) {
|
|
|
3797
3797
|
let n = parseFloat(window.getComputedStyle(r).marginTop) || 0;
|
|
3798
3798
|
return t.removeChild(r), n;
|
|
3799
3799
|
}
|
|
3800
|
-
function
|
|
3800
|
+
function B0({ children: e, freeze: t }, r) {
|
|
3801
3801
|
let n = kc(t, e);
|
|
3802
3802
|
return fi(n) ? bu(n, { ref: r }) : $.createElement($.Fragment, null, n);
|
|
3803
3803
|
}
|
|
3804
|
-
$.forwardRef(
|
|
3804
|
+
$.forwardRef(B0);
|
|
3805
3805
|
function kc(e, t) {
|
|
3806
3806
|
let [r, n] = ne(t);
|
|
3807
3807
|
return !e && r !== t && n(t), e ? r : t;
|
|
@@ -3818,14 +3818,14 @@ function Ao({ value: e, children: t }) {
|
|
|
3818
3818
|
function Cc({ children: e }) {
|
|
3819
3819
|
return $.createElement(No.Provider, { value: null }, e);
|
|
3820
3820
|
}
|
|
3821
|
-
function
|
|
3821
|
+
function G0(e) {
|
|
3822
3822
|
function t() {
|
|
3823
3823
|
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", t));
|
|
3824
3824
|
}
|
|
3825
3825
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
|
|
3826
3826
|
}
|
|
3827
3827
|
let Ft = [];
|
|
3828
|
-
|
|
3828
|
+
G0(() => {
|
|
3829
3829
|
function e(t) {
|
|
3830
3830
|
if (!Je(t.target) || t.target === document.body || Ft[0] === t.target) return;
|
|
3831
3831
|
let r = t.target;
|
|
@@ -3833,7 +3833,7 @@ B0(() => {
|
|
|
3833
3833
|
}
|
|
3834
3834
|
window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
|
|
3835
3835
|
});
|
|
3836
|
-
function
|
|
3836
|
+
function W0(e) {
|
|
3837
3837
|
throw new Error("Unexpected object: " + e);
|
|
3838
3838
|
}
|
|
3839
3839
|
var ie = ((e) => (e[e.First = 0] = "First", e[e.Previous = 1] = "Previous", e[e.Next = 2] = "Next", e[e.Last = 3] = "Last", e[e.Specific = 4] = "Specific", e[e.Nothing = 5] = "Nothing", e))(ie || {});
|
|
@@ -3866,7 +3866,7 @@ function jt(e, t) {
|
|
|
3866
3866
|
case 5:
|
|
3867
3867
|
return null;
|
|
3868
3868
|
default:
|
|
3869
|
-
|
|
3869
|
+
W0(e);
|
|
3870
3870
|
}
|
|
3871
3871
|
}
|
|
3872
3872
|
function Pn(e) {
|
|
@@ -3878,14 +3878,14 @@ function Pn(e) {
|
|
|
3878
3878
|
}), [t]);
|
|
3879
3879
|
}
|
|
3880
3880
|
let Ec = Ee(!1);
|
|
3881
|
-
function
|
|
3881
|
+
function U0() {
|
|
3882
3882
|
return pe(Ec);
|
|
3883
3883
|
}
|
|
3884
3884
|
function al(e) {
|
|
3885
3885
|
return $.createElement(Ec.Provider, { value: e.force }, e.children);
|
|
3886
3886
|
}
|
|
3887
|
-
function
|
|
3888
|
-
let t =
|
|
3887
|
+
function Y0(e) {
|
|
3888
|
+
let t = U0(), r = pe(Rc), [n, o] = ne(() => {
|
|
3889
3889
|
var a;
|
|
3890
3890
|
if (!t && r !== null) return (a = r.current) != null ? a : null;
|
|
3891
3891
|
if (it.isServer) return null;
|
|
@@ -3901,10 +3901,10 @@ function U0(e) {
|
|
|
3901
3901
|
t || r !== null && o(r.current);
|
|
3902
3902
|
}, [r, o, t]), n;
|
|
3903
3903
|
}
|
|
3904
|
-
let Pc = Ae,
|
|
3904
|
+
let Pc = Ae, K0 = le(function(e, t) {
|
|
3905
3905
|
let { ownerDocument: r = null, ...n } = e, o = Y(null), a = be(Hu((g) => {
|
|
3906
3906
|
o.current = g;
|
|
3907
|
-
}), t), i = kt(o.current), s = r ?? i, l =
|
|
3907
|
+
}), t), i = kt(o.current), s = r ?? i, l = Y0(s), u = pe(Ma), c = rt(), f = ue();
|
|
3908
3908
|
return Pn(() => {
|
|
3909
3909
|
var g;
|
|
3910
3910
|
l && l.childNodes.length <= 0 && ((g = l.parentElement) == null || g.removeChild(l));
|
|
@@ -3912,14 +3912,14 @@ let Pc = Ae, Y0 = le(function(e, t) {
|
|
|
3912
3912
|
c.dispose(), u && g && c.add(u.register(g));
|
|
3913
3913
|
} }, f({ ourProps: { ref: a }, theirProps: n, slot: {}, defaultTag: Pc, name: "Portal" })), l) : null;
|
|
3914
3914
|
});
|
|
3915
|
-
function
|
|
3915
|
+
function q0(e, t) {
|
|
3916
3916
|
let r = be(t), { enabled: n = !0, ownerDocument: o, ...a } = e, i = ue();
|
|
3917
|
-
return n ? $.createElement(
|
|
3917
|
+
return n ? $.createElement(K0, { ...a, ownerDocument: o, ref: r }) : i({ ourProps: { ref: r }, theirProps: a, slot: {}, defaultTag: Pc, name: "Portal" });
|
|
3918
3918
|
}
|
|
3919
|
-
let
|
|
3920
|
-
function
|
|
3919
|
+
let X0 = Ae, Rc = Ee(null);
|
|
3920
|
+
function J0(e, t) {
|
|
3921
3921
|
let { target: r, ...n } = e, o = { ref: be(t) }, a = ue();
|
|
3922
|
-
return $.createElement(Rc.Provider, { value: r }, a({ ourProps: o, theirProps: n, defaultTag:
|
|
3922
|
+
return $.createElement(Rc.Provider, { value: r }, a({ ourProps: o, theirProps: n, defaultTag: X0, name: "Popover.Group" }));
|
|
3923
3923
|
}
|
|
3924
3924
|
let Ma = Ee(null);
|
|
3925
3925
|
function $c() {
|
|
@@ -3931,7 +3931,7 @@ function $c() {
|
|
|
3931
3931
|
return $.createElement(Ma.Provider, { value: o }, a);
|
|
3932
3932
|
}, [o])];
|
|
3933
3933
|
}
|
|
3934
|
-
let
|
|
3934
|
+
let Q0 = le(q0), Nc = le(J0), Oo = Object.assign(Q0, { Group: Nc });
|
|
3935
3935
|
const Vt = { Idle: { kind: "Idle" }, Tracked: (e) => ({ kind: "Tracked", position: e }), Moved: { kind: "Moved" } };
|
|
3936
3936
|
function Hi(e) {
|
|
3937
3937
|
let t = e.getBoundingClientRect();
|
|
@@ -3947,13 +3947,13 @@ function Ac(e, t, r) {
|
|
|
3947
3947
|
}
|
|
3948
3948
|
return () => n.dispose();
|
|
3949
3949
|
}
|
|
3950
|
-
function
|
|
3950
|
+
function Z0(e, t = typeof document < "u" ? document.defaultView : null, r) {
|
|
3951
3951
|
let n = yn(e, "escape");
|
|
3952
3952
|
Ri(t, "keydown", (o) => {
|
|
3953
3953
|
n && (o.defaultPrevented || o.key === re.Escape && r(o));
|
|
3954
3954
|
});
|
|
3955
3955
|
}
|
|
3956
|
-
function
|
|
3956
|
+
function eh() {
|
|
3957
3957
|
var e;
|
|
3958
3958
|
let [t] = ne(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [r, n] = ne((e = t?.matches) != null ? e : !1);
|
|
3959
3959
|
return me(() => {
|
|
@@ -3992,13 +3992,13 @@ function Bi(e = null) {
|
|
|
3992
3992
|
var t;
|
|
3993
3993
|
return (t = pe(Ic)) != null ? t : e;
|
|
3994
3994
|
}
|
|
3995
|
-
function
|
|
3995
|
+
function th() {
|
|
3996
3996
|
let e = typeof document > "u";
|
|
3997
3997
|
return "useSyncExternalStore" in w ? ((t) => t.useSyncExternalStore)(w)(() => () => {
|
|
3998
3998
|
}, () => !1, () => !e) : !1;
|
|
3999
3999
|
}
|
|
4000
4000
|
function Io() {
|
|
4001
|
-
let e =
|
|
4001
|
+
let e = th(), [t, r] = w.useState(it.isHandoffComplete);
|
|
4002
4002
|
return t && it.isHandoffComplete === !1 && r(!1), w.useEffect(() => {
|
|
4003
4003
|
t !== !0 && r(!0);
|
|
4004
4004
|
}, [t]), w.useEffect(() => it.handoff(), []), e ? !1 : t;
|
|
@@ -4023,15 +4023,15 @@ function Fc(e) {
|
|
|
4023
4023
|
for (let r of e.current) wt(r.current) && t.add(r.current);
|
|
4024
4024
|
return t;
|
|
4025
4025
|
}
|
|
4026
|
-
let
|
|
4026
|
+
let rh = "div";
|
|
4027
4027
|
var nr = ((e) => (e[e.None = 0] = "None", e[e.InitialFocus = 1] = "InitialFocus", e[e.TabLock = 2] = "TabLock", e[e.FocusLock = 4] = "FocusLock", e[e.RestoreFocus = 8] = "RestoreFocus", e[e.AutoFocus = 16] = "AutoFocus", e))(nr || {});
|
|
4028
|
-
function
|
|
4028
|
+
function nh(e, t) {
|
|
4029
4029
|
let r = Y(null), n = be(r, t), { initialFocus: o, initialFocusFallback: a, containers: i, features: s = 15, ...l } = e;
|
|
4030
4030
|
Io() || (s = 0);
|
|
4031
4031
|
let u = kt(r.current);
|
|
4032
|
-
|
|
4033
|
-
let c =
|
|
4034
|
-
|
|
4032
|
+
sh(s, { ownerDocument: u });
|
|
4033
|
+
let c = lh(s, { ownerDocument: u, container: r, initialFocus: o, initialFocusFallback: a });
|
|
4034
|
+
uh(s, { ownerDocument: u, container: r, containers: i, previousActiveElement: c });
|
|
4035
4035
|
let f = Wi(), g = j((x) => {
|
|
4036
4036
|
if (!Oe(r.current)) return;
|
|
4037
4037
|
let y = r.current;
|
|
@@ -4053,10 +4053,10 @@ function rh(e, t) {
|
|
|
4053
4053
|
let k = x.relatedTarget;
|
|
4054
4054
|
Je(k) && k.dataset.headlessuiFocusGuard !== "true" && (Tc(y, k) || (m.current ? He(r.current, Pe(f.current, { [Be.Forwards]: () => Re.Next, [Be.Backwards]: () => Re.Previous }) | Re.WrapAround, { relativeTo: x.target }) : Je(x.target) && st(x.target)));
|
|
4055
4055
|
} }, b = ue();
|
|
4056
|
-
return $.createElement($.Fragment, null, d && $.createElement(St, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: g, features: ct.Focusable }), b({ ourProps: v, theirProps: l, defaultTag:
|
|
4056
|
+
return $.createElement($.Fragment, null, d && $.createElement(St, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: g, features: ct.Focusable }), b({ ourProps: v, theirProps: l, defaultTag: rh, name: "FocusTrap" }), d && $.createElement(St, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: g, features: ct.Focusable }));
|
|
4057
4057
|
}
|
|
4058
|
-
let
|
|
4059
|
-
function
|
|
4058
|
+
let oh = le(nh), ah = Object.assign(oh, { features: nr });
|
|
4059
|
+
function ih(e = !0) {
|
|
4060
4060
|
let t = Y(Ft.slice());
|
|
4061
4061
|
return $i(([r], [n]) => {
|
|
4062
4062
|
n === !0 && r === !1 && ho(() => {
|
|
@@ -4067,15 +4067,15 @@ function ah(e = !0) {
|
|
|
4067
4067
|
return (r = t.current.find((n) => n != null && n.isConnected)) != null ? r : null;
|
|
4068
4068
|
});
|
|
4069
4069
|
}
|
|
4070
|
-
function
|
|
4071
|
-
let r = !!(e & 8), n =
|
|
4070
|
+
function sh(e, { ownerDocument: t }) {
|
|
4071
|
+
let r = !!(e & 8), n = ih(r);
|
|
4072
4072
|
$i(() => {
|
|
4073
4073
|
r || hi(t?.body) && st(n());
|
|
4074
4074
|
}, [r]), Pn(() => {
|
|
4075
4075
|
r && st(n());
|
|
4076
4076
|
});
|
|
4077
4077
|
}
|
|
4078
|
-
function
|
|
4078
|
+
function lh(e, { ownerDocument: t, container: r, initialFocus: n, initialFocusFallback: o }) {
|
|
4079
4079
|
let a = Y(null), i = yn(!!(e & 1), "focus-trap#initial-focus"), s = Gi();
|
|
4080
4080
|
return $i(() => {
|
|
4081
4081
|
if (e === 0) return;
|
|
@@ -4108,7 +4108,7 @@ function sh(e, { ownerDocument: t, container: r, initialFocus: n, initialFocusFa
|
|
|
4108
4108
|
});
|
|
4109
4109
|
}, [o, i, e]), a;
|
|
4110
4110
|
}
|
|
4111
|
-
function
|
|
4111
|
+
function uh(e, { ownerDocument: t, container: r, containers: n, previousActiveElement: o }) {
|
|
4112
4112
|
let a = Gi(), i = !!(e & 4);
|
|
4113
4113
|
Ri(t?.defaultView, "focus", (s) => {
|
|
4114
4114
|
if (!i || !a.current) return;
|
|
@@ -4130,13 +4130,13 @@ function _c(e) {
|
|
|
4130
4130
|
}
|
|
4131
4131
|
let Fo = Ee(null);
|
|
4132
4132
|
Fo.displayName = "TransitionContext";
|
|
4133
|
-
var
|
|
4134
|
-
function
|
|
4133
|
+
var ch = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(ch || {});
|
|
4134
|
+
function dh() {
|
|
4135
4135
|
let e = pe(Fo);
|
|
4136
4136
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
4137
4137
|
return e;
|
|
4138
4138
|
}
|
|
4139
|
-
function
|
|
4139
|
+
function fh() {
|
|
4140
4140
|
let e = pe(To);
|
|
4141
4141
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
4142
4142
|
return e;
|
|
@@ -4175,9 +4175,9 @@ function Mc(e, t) {
|
|
|
4175
4175
|
return xe(() => ({ children: n, register: s, unregister: i, onStart: f, onStop: g, wait: u, chains: c }), [s, i, n, f, g, c, u]);
|
|
4176
4176
|
}
|
|
4177
4177
|
let jc = Ae, Dc = qe.RenderStrategy;
|
|
4178
|
-
function
|
|
4178
|
+
function gh(e, t) {
|
|
4179
4179
|
var r, n;
|
|
4180
|
-
let { transition: o = !0, beforeEnter: a, afterEnter: i, beforeLeave: s, afterLeave: l, enter: u, enterFrom: c, enterTo: f, entered: g, leave: d, leaveFrom: p, leaveTo: m, ...v } = e, [b, x] = ne(null), y = Y(null), k = _c(e), S = be(...k ? [y, t, x] : t === null ? [] : [t]), P = (r = v.unmount) == null || r ? _t.Unmount : _t.Hidden, { show: N, appear: O, initial: H } =
|
|
4180
|
+
let { transition: o = !0, beforeEnter: a, afterEnter: i, beforeLeave: s, afterLeave: l, enter: u, enterFrom: c, enterTo: f, entered: g, leave: d, leaveFrom: p, leaveTo: m, ...v } = e, [b, x] = ne(null), y = Y(null), k = _c(e), S = be(...k ? [y, t, x] : t === null ? [] : [t]), P = (r = v.unmount) == null || r ? _t.Unmount : _t.Hidden, { show: N, appear: O, initial: H } = dh(), [A, R] = ne(N ? "visible" : "hidden"), L = fh(), { register: K, unregister: T } = L;
|
|
4181
4181
|
me(() => K(y), [K, y]), me(() => {
|
|
4182
4182
|
if (P === _t.Hidden && y.current) {
|
|
4183
4183
|
if (N && A !== "visible") {
|
|
@@ -4213,7 +4213,7 @@ function fh(e, t) {
|
|
|
4213
4213
|
let G = ue();
|
|
4214
4214
|
return $.createElement(To.Provider, { value: q }, $.createElement(Ao, { value: Q }, G({ ourProps: M, theirProps: v, defaultTag: jc, features: Dc, visible: A === "visible", name: "Transition.Child" })));
|
|
4215
4215
|
}
|
|
4216
|
-
function
|
|
4216
|
+
function ph(e, t) {
|
|
4217
4217
|
let { show: r, appear: n = !1, unmount: o = !0, ...a } = e, i = Y(null), s = _c(e), l = be(...s ? [i, t] : t === null ? [] : [t]);
|
|
4218
4218
|
Io();
|
|
4219
4219
|
let u = Zt();
|
|
@@ -4237,13 +4237,13 @@ function gh(e, t) {
|
|
|
4237
4237
|
}), k = ue();
|
|
4238
4238
|
return $.createElement(To.Provider, { value: g }, $.createElement(Fo.Provider, { value: v }, k({ ourProps: { ...b, as: Ae, children: $.createElement(Lc, { ref: l, ...b, ...a, beforeEnter: x, beforeLeave: y }) }, theirProps: {}, defaultTag: Ae, features: Dc, visible: c === "visible", name: "Transition" })));
|
|
4239
4239
|
}
|
|
4240
|
-
function
|
|
4240
|
+
function mh(e, t) {
|
|
4241
4241
|
let r = pe(Fo) !== null, n = Zt() !== null;
|
|
4242
4242
|
return $.createElement($.Fragment, null, !r && n ? $.createElement(ja, { ref: t, ...e }) : $.createElement(Lc, { ref: t, ...e }));
|
|
4243
4243
|
}
|
|
4244
|
-
let ja = le(
|
|
4245
|
-
var
|
|
4246
|
-
let
|
|
4244
|
+
let ja = le(ph), Lc = le(gh), dn = le(mh), Er = Object.assign(ja, { Child: dn, Root: ja });
|
|
4245
|
+
var hh = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(hh || {}), vh = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(vh || {});
|
|
4246
|
+
let bh = { 0(e, t) {
|
|
4247
4247
|
return e.titleId === t.id ? e : { ...e, titleId: t.id };
|
|
4248
4248
|
} }, Ui = Ee(null);
|
|
4249
4249
|
Ui.displayName = "DialogContext";
|
|
@@ -4255,8 +4255,8 @@ function Mo(e) {
|
|
|
4255
4255
|
}
|
|
4256
4256
|
return t;
|
|
4257
4257
|
}
|
|
4258
|
-
function
|
|
4259
|
-
return Pe(t.type,
|
|
4258
|
+
function yh(e, t) {
|
|
4259
|
+
return Pe(t.type, bh, e, t);
|
|
4260
4260
|
}
|
|
4261
4261
|
let il = le(function(e, t) {
|
|
4262
4262
|
let r = we(), { id: n = `headlessui-dialog-${r}`, open: o, onClose: a, initialFocus: i, role: s = "dialog", autoFocus: l = !0, __demoMode: u = !1, unmount: c = !1, ...f } = e, g = Y(!1);
|
|
@@ -4265,7 +4265,7 @@ let il = le(function(e, t) {
|
|
|
4265
4265
|
})();
|
|
4266
4266
|
let d = Zt();
|
|
4267
4267
|
o === void 0 && d !== null && (o = (d & Se.Open) === Se.Open);
|
|
4268
|
-
let p = Y(null), m = be(p, t), v = kt(p.current), b = o ? 0 : 1, [x, y] =
|
|
4268
|
+
let p = Y(null), m = be(p, t), v = kt(p.current), b = o ? 0 : 1, [x, y] = xg(yh, { titleId: null, descriptionId: null, panelRef: wg() }), k = j(() => a(!1)), S = j((I) => y({ type: 0, id: I })), P = Io() ? b === 0 : !1, [N, O] = $c(), H = { get current() {
|
|
4269
4269
|
var I;
|
|
4270
4270
|
return (I = x.panelRef.current) != null ? I : p.current;
|
|
4271
4271
|
} }, A = Bi(), { resolveContainers: R } = Oc({ mainTreeNode: A, portals: N, defaultContainers: [H] }), L = d !== null ? (d & Se.Closing) === Se.Closing : !1;
|
|
@@ -4283,15 +4283,15 @@ let il = le(function(e, t) {
|
|
|
4283
4283
|
let T = fe(K, oe((I) => K.selectors.isTop(I, n), [K, n]));
|
|
4284
4284
|
So(T, R, (I) => {
|
|
4285
4285
|
I.preventDefault(), k();
|
|
4286
|
-
}),
|
|
4286
|
+
}), Z0(T, v?.defaultView, (I) => {
|
|
4287
4287
|
I.preventDefault(), I.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), k();
|
|
4288
4288
|
}), Co(u || L ? !1 : P, v, R), wo(P, p, k);
|
|
4289
|
-
let [V, B] = bo(), X = xe(() => [{ dialogState: b, close: k, setTitleId: S, unmount: c }, x], [b, k, S, c, x]), C = ve({ open: b === 0 }), q = { ref: m, id: n, role: s, tabIndex: -1, "aria-modal": u ? void 0 : b === 0 ? !0 : void 0, "aria-labelledby": x.titleId, "aria-describedby": V, unmount: c }, te = !
|
|
4289
|
+
let [V, B] = bo(), X = xe(() => [{ dialogState: b, close: k, setTitleId: S, unmount: c }, x], [b, k, S, c, x]), C = ve({ open: b === 0 }), q = { ref: m, id: n, role: s, tabIndex: -1, "aria-modal": u ? void 0 : b === 0 ? !0 : void 0, "aria-labelledby": x.titleId, "aria-describedby": V, unmount: c }, te = !eh(), E = nr.None;
|
|
4290
4290
|
P && !u && (E |= nr.RestoreFocus, E |= nr.TabLock, l && (E |= nr.AutoFocus), te && (E |= nr.InitialFocus));
|
|
4291
4291
|
let z = ue();
|
|
4292
|
-
return $.createElement(Cc, null, $.createElement(al, { force: !0 }, $.createElement(Oo, null, $.createElement(Ui.Provider, { value: X }, $.createElement(Nc, { target: p }, $.createElement(al, { force: !1 }, $.createElement(B, { slot: C }, $.createElement(O, null, $.createElement(
|
|
4293
|
-
}),
|
|
4294
|
-
function
|
|
4292
|
+
return $.createElement(Cc, null, $.createElement(al, { force: !0 }, $.createElement(Oo, null, $.createElement(Ui.Provider, { value: X }, $.createElement(Nc, { target: p }, $.createElement(al, { force: !1 }, $.createElement(B, { slot: C }, $.createElement(O, null, $.createElement(ah, { initialFocus: i, initialFocusFallback: p, containers: R, features: E }, $.createElement(Si, { value: k }, z({ ourProps: q, theirProps: f, slot: C, defaultTag: xh, features: wh, visible: b === 0, name: "Dialog" })))))))))));
|
|
4293
|
+
}), xh = "div", wh = qe.RenderStrategy | qe.Static;
|
|
4294
|
+
function Sh(e, t) {
|
|
4295
4295
|
let { transition: r = !1, open: n, ...o } = e, a = Zt(), i = e.hasOwnProperty("open") || a !== null, s = e.hasOwnProperty("onClose");
|
|
4296
4296
|
if (!i && !s) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
4297
4297
|
if (!i) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
|
|
@@ -4300,36 +4300,36 @@ function wh(e, t) {
|
|
|
4300
4300
|
if (typeof e.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);
|
|
4301
4301
|
return (n !== void 0 || r) && !o.static ? $.createElement(io, null, $.createElement(Er, { show: n, transition: r, unmount: o.unmount }, $.createElement(il, { ref: t, ...o }))) : $.createElement(io, null, $.createElement(il, { ref: t, open: n, ...o }));
|
|
4302
4302
|
}
|
|
4303
|
-
let
|
|
4304
|
-
function
|
|
4303
|
+
let kh = "div";
|
|
4304
|
+
function Ch(e, t) {
|
|
4305
4305
|
let r = we(), { id: n = `headlessui-dialog-panel-${r}`, transition: o = !1, ...a } = e, [{ dialogState: i, unmount: s }, l] = Mo("Dialog.Panel"), u = be(t, l.panelRef), c = ve({ open: i === 0 }), f = j((v) => {
|
|
4306
4306
|
v.stopPropagation();
|
|
4307
4307
|
}), g = { ref: u, id: n, onClick: f }, d = o ? dn : Ae, p = o ? { unmount: s } : {}, m = ue();
|
|
4308
|
-
return $.createElement(d, { ...p }, m({ ourProps: g, theirProps: a, slot: c, defaultTag:
|
|
4308
|
+
return $.createElement(d, { ...p }, m({ ourProps: g, theirProps: a, slot: c, defaultTag: kh, name: "Dialog.Panel" }));
|
|
4309
4309
|
}
|
|
4310
|
-
let
|
|
4311
|
-
function
|
|
4310
|
+
let Eh = "div";
|
|
4311
|
+
function Ph(e, t) {
|
|
4312
4312
|
let { transition: r = !1, ...n } = e, [{ dialogState: o, unmount: a }] = Mo("Dialog.Backdrop"), i = ve({ open: o === 0 }), s = { ref: t, "aria-hidden": !0 }, l = r ? dn : Ae, u = r ? { unmount: a } : {}, c = ue();
|
|
4313
|
-
return $.createElement(l, { ...u }, c({ ourProps: s, theirProps: n, slot: i, defaultTag:
|
|
4313
|
+
return $.createElement(l, { ...u }, c({ ourProps: s, theirProps: n, slot: i, defaultTag: Eh, name: "Dialog.Backdrop" }));
|
|
4314
4314
|
}
|
|
4315
|
-
let
|
|
4316
|
-
function
|
|
4315
|
+
let Rh = "h2";
|
|
4316
|
+
function $h(e, t) {
|
|
4317
4317
|
let r = we(), { id: n = `headlessui-dialog-title-${r}`, ...o } = e, [{ dialogState: a, setTitleId: i }] = Mo("Dialog.Title"), s = be(t);
|
|
4318
4318
|
de(() => (i(n), () => i(null)), [n, i]);
|
|
4319
4319
|
let l = ve({ open: a === 0 }), u = { ref: s, id: n };
|
|
4320
|
-
return ue()({ ourProps: u, theirProps: o, slot: l, defaultTag:
|
|
4320
|
+
return ue()({ ourProps: u, theirProps: o, slot: l, defaultTag: Rh, name: "Dialog.Title" });
|
|
4321
4321
|
}
|
|
4322
|
-
let
|
|
4323
|
-
function
|
|
4322
|
+
let Nh = le(Sh), Vc = le(Ch), Ah = le(Ph), zc = le($h), Oh = Object.assign(Nh, { Panel: Vc, Title: zc, Description: vn }), Ih = "div";
|
|
4323
|
+
function Fh(e, t) {
|
|
4324
4324
|
let r = `headlessui-control-${we()}`, [n, o] = bn(), [a, i] = bo(), s = Nt(), { disabled: l = s || !1, ...u } = e, c = ve({ disabled: l }), f = { ref: t, disabled: l || void 0, "aria-disabled": l || void 0 }, g = ue();
|
|
4325
|
-
return $.createElement(
|
|
4325
|
+
return $.createElement(np, { value: l }, $.createElement(o, { value: n }, $.createElement(i, { value: a }, $.createElement(bp, { id: r }, g({ ourProps: f, theirProps: { ...u, children: $.createElement(mp, null, typeof u.children == "function" ? u.children(c) : u.children) }, slot: c, defaultTag: Ih, name: "Field" })))));
|
|
4326
4326
|
}
|
|
4327
|
-
let jo = le(
|
|
4328
|
-
function
|
|
4327
|
+
let jo = le(Fh), Th = "input";
|
|
4328
|
+
function _h(e, t) {
|
|
4329
4329
|
let r = we(), n = Ar(), o = Nt(), { id: a = n || `headlessui-input-${r}`, disabled: i = o || !1, autoFocus: s = !1, invalid: l = !1, ...u } = e, c = Or(), f = hn(), { isFocused: g, focusProps: d } = Jt({ autoFocus: s }), { isHovered: p, hoverProps: m } = Xt({ isDisabled: i }), v = Xe({ ref: t, id: a, "aria-labelledby": c, "aria-describedby": f, "aria-invalid": l ? "true" : void 0, disabled: i || void 0, autoFocus: s }, d, m), b = ve({ disabled: i, invalid: l, hover: p, focus: g, autofocus: s });
|
|
4330
|
-
return ue()({ ourProps: v, theirProps: u, slot: b, defaultTag:
|
|
4330
|
+
return ue()({ ourProps: v, theirProps: u, slot: b, defaultTag: Th, name: "Input" });
|
|
4331
4331
|
}
|
|
4332
|
-
let
|
|
4332
|
+
let Mh = le(_h), sl = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
|
|
4333
4333
|
function ll(e) {
|
|
4334
4334
|
var t, r;
|
|
4335
4335
|
let n = (t = e.innerText) != null ? t : "", o = e.cloneNode(!0);
|
|
@@ -4339,7 +4339,7 @@ function ll(e) {
|
|
|
4339
4339
|
let i = a ? (r = o.innerText) != null ? r : "" : n;
|
|
4340
4340
|
return sl.test(i) && (i = i.replace(sl, "")), i;
|
|
4341
4341
|
}
|
|
4342
|
-
function
|
|
4342
|
+
function jh(e) {
|
|
4343
4343
|
let t = e.getAttribute("aria-label");
|
|
4344
4344
|
if (typeof t == "string") return t.trim();
|
|
4345
4345
|
let r = e.getAttribute("aria-labelledby");
|
|
@@ -4363,16 +4363,16 @@ function Hc(e) {
|
|
|
4363
4363
|
if (!n) return "";
|
|
4364
4364
|
let o = n.innerText;
|
|
4365
4365
|
if (t.current === o) return r.current;
|
|
4366
|
-
let a =
|
|
4366
|
+
let a = jh(n).trim().toLowerCase();
|
|
4367
4367
|
return t.current = o, r.current = a, a;
|
|
4368
4368
|
});
|
|
4369
4369
|
}
|
|
4370
|
-
var
|
|
4370
|
+
var Dh = Object.defineProperty, Lh = (e, t, r) => t in e ? Dh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ul = (e, t, r) => (Lh(e, typeof t != "symbol" ? t + "" : t, r), r), Me = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Me || {}), Dt = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(Dt || {}), qn = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(qn || {}), Bc = ((e) => (e[e.OpenListbox = 0] = "OpenListbox", e[e.CloseListbox = 1] = "CloseListbox", e[e.GoToOption = 2] = "GoToOption", e[e.Search = 3] = "Search", e[e.ClearSearch = 4] = "ClearSearch", e[e.SelectOption = 5] = "SelectOption", e[e.RegisterOptions = 6] = "RegisterOptions", e[e.UnregisterOptions = 7] = "UnregisterOptions", e[e.SetButtonElement = 8] = "SetButtonElement", e[e.SetOptionsElement = 9] = "SetOptionsElement", e[e.SortOptions = 10] = "SortOptions", e[e.MarkButtonAsMoved = 11] = "MarkButtonAsMoved", e))(Bc || {});
|
|
4371
4371
|
function cl(e, t = (r) => r) {
|
|
4372
4372
|
let r = e.activeOptionIndex !== null ? e.options[e.activeOptionIndex] : null, n = Pi(t(e.options.slice()), (a) => a.dataRef.current.domRef.current), o = r ? n.indexOf(r) : null;
|
|
4373
4373
|
return o === -1 && (o = null), { options: n, activeOptionIndex: o };
|
|
4374
4374
|
}
|
|
4375
|
-
let
|
|
4375
|
+
let Vh = { 1(e) {
|
|
4376
4376
|
if (e.dataRef.current.disabled || e.listboxState === 1) return e;
|
|
4377
4377
|
let t = e.buttonElement ? Vt.Tracked(Hi(e.buttonElement)) : e.buttonPositionState;
|
|
4378
4378
|
return { ...e, activeOptionIndex: null, pendingFocus: { focus: ie.Nothing }, listboxState: 1, __demoMode: !1, buttonPositionState: t };
|
|
@@ -4438,7 +4438,7 @@ let Lh = { 1(e) {
|
|
|
4438
4438
|
return { ...e, options: r, activationTrigger: 1 };
|
|
4439
4439
|
}, 8: (e, t) => e.buttonElement === t.element ? e : { ...e, buttonElement: t.element }, 9: (e, t) => e.optionsElement === t.element ? e : { ...e, optionsElement: t.element }, 10: (e) => e.pendingShouldSort ? { ...e, ...cl(e), pendingShouldSort: !1 } : e, 11(e) {
|
|
4440
4440
|
return e.buttonPositionState.kind !== "Tracked" ? e : { ...e, buttonPositionState: Vt.Moved };
|
|
4441
|
-
} },
|
|
4441
|
+
} }, zh = class Gc extends xo {
|
|
4442
4442
|
constructor(t) {
|
|
4443
4443
|
super(t), ul(this, "actions", { onChange: (r) => {
|
|
4444
4444
|
let { onChange: n, compare: o, mode: a, value: i } = this.state.dataRef.current;
|
|
@@ -4521,7 +4521,7 @@ let Lh = { 1(e) {
|
|
|
4521
4521
|
return new Gc({ id: t, dataRef: { current: {} }, listboxState: r ? 0 : 1, options: [], searchQuery: "", activeOptionIndex: null, activationTrigger: 1, buttonElement: null, optionsElement: null, pendingShouldSort: !1, pendingFocus: { focus: ie.Nothing }, frozenValue: !1, __demoMode: r, buttonPositionState: Vt.Idle });
|
|
4522
4522
|
}
|
|
4523
4523
|
reduce(t, r) {
|
|
4524
|
-
return Pe(r.type,
|
|
4524
|
+
return Pe(r.type, Vh, t, r);
|
|
4525
4525
|
}
|
|
4526
4526
|
};
|
|
4527
4527
|
const Wc = Ee(null);
|
|
@@ -4534,7 +4534,7 @@ function Yi(e) {
|
|
|
4534
4534
|
return t;
|
|
4535
4535
|
}
|
|
4536
4536
|
function Uc({ id: e, __demoMode: t = !1 }) {
|
|
4537
|
-
let r = xe(() =>
|
|
4537
|
+
let r = xe(() => zh.new({ id: e, __demoMode: t }), []);
|
|
4538
4538
|
return Pn(() => r.dispose()), r;
|
|
4539
4539
|
}
|
|
4540
4540
|
let Do = Ee(null);
|
|
@@ -4547,11 +4547,11 @@ function Rn(e) {
|
|
|
4547
4547
|
}
|
|
4548
4548
|
return t;
|
|
4549
4549
|
}
|
|
4550
|
-
let
|
|
4551
|
-
function
|
|
4550
|
+
let Hh = Ae;
|
|
4551
|
+
function Bh(e, t) {
|
|
4552
4552
|
let r = we(), n = Nt(), { value: o, defaultValue: a, form: i, name: s, onChange: l, by: u, invalid: c = !1, disabled: f = n || !1, horizontal: g = !1, multiple: d = !1, __demoMode: p = !1, ...m } = e;
|
|
4553
4553
|
const v = g ? "horizontal" : "vertical";
|
|
4554
|
-
let b = be(t), x = bi(a), [y = d ? [] : void 0, k] = vi(o, l, x), S = Uc({ id: r, __demoMode: p }), P = Y({ static: !1, hold: !1 }), N = Y(/* @__PURE__ */ new Map()), O =
|
|
4554
|
+
let b = be(t), x = bi(a), [y = d ? [] : void 0, k] = vi(o, l, x), S = Uc({ id: r, __demoMode: p }), P = Y({ static: !1, hold: !1 }), N = Y(/* @__PURE__ */ new Map()), O = _p(u), H = oe((z) => Pe(A.mode, { [Dt.Multi]: () => y.some((I) => O(I, z)), [Dt.Single]: () => O(y, z) }), [y]), A = ve({ value: y, disabled: f, invalid: c, mode: d ? Dt.Multi : Dt.Single, orientation: v, onChange: k, compare: O, isSelected: H, optionsPropsRef: P, listRef: N });
|
|
4555
4555
|
me(() => {
|
|
4556
4556
|
S.state.dataRef.current = A;
|
|
4557
4557
|
}, [A]);
|
|
@@ -4562,10 +4562,10 @@ function Hh(e, t) {
|
|
|
4562
4562
|
let B = ve({ open: R === Me.Open, disabled: f, invalid: c, value: y }), [X, C] = bn({ inherit: !0 }), q = { ref: b }, te = oe(() => {
|
|
4563
4563
|
if (x !== void 0) return k?.(x);
|
|
4564
4564
|
}, [k, x]), E = ue();
|
|
4565
|
-
return $.createElement(C, { value: X, props: { htmlFor: T?.id }, slot: { open: R === Me.Open, disabled: f } }, $.createElement(zi, null, $.createElement(Wc.Provider, { value: S }, $.createElement(Do.Provider, { value: A }, $.createElement(Ao, { value: Pe(R, { [Me.Open]: Se.Open, [Me.Closed]: Se.Closed }) }, s != null && y != null && $.createElement(xi, { disabled: f, data: { [s]: y }, form: i, onReset: te }), E({ ourProps: q, theirProps: m, slot: B, defaultTag:
|
|
4565
|
+
return $.createElement(C, { value: X, props: { htmlFor: T?.id }, slot: { open: R === Me.Open, disabled: f } }, $.createElement(zi, null, $.createElement(Wc.Provider, { value: S }, $.createElement(Do.Provider, { value: A }, $.createElement(Ao, { value: Pe(R, { [Me.Open]: Se.Open, [Me.Closed]: Se.Closed }) }, s != null && y != null && $.createElement(xi, { disabled: f, data: { [s]: y }, form: i, onReset: te }), E({ ourProps: q, theirProps: m, slot: B, defaultTag: Hh, name: "Listbox" }))))));
|
|
4566
4566
|
}
|
|
4567
|
-
let
|
|
4568
|
-
function
|
|
4567
|
+
let Gh = "button";
|
|
4568
|
+
function Wh(e, t) {
|
|
4569
4569
|
let r = we(), n = Ar(), o = Rn("Listbox.Button"), a = Yi("Listbox.Button"), { id: i = n || `headlessui-listbox-button-${r}`, disabled: s = o.disabled || !1, autoFocus: l = !1, ...u } = e, c = be(t, Di(), a.actions.setButtonElement), f = wc(), [g, d, p] = fe(a, (V) => [V.listboxState, V.buttonElement, V.optionsElement]), m = g === Me.Open;
|
|
4570
4570
|
ec(m, { trigger: d, action: oe((V) => {
|
|
4571
4571
|
if (d != null && d.contains(V.target)) return Mt.Ignore;
|
|
@@ -4591,10 +4591,10 @@ function Gh(e, t) {
|
|
|
4591
4591
|
var B;
|
|
4592
4592
|
a.state.listboxState === Me.Open ? (lr(() => a.actions.closeListbox()), (B = a.state.buttonElement) == null || B.focus({ preventScroll: !0 })) : (V.preventDefault(), a.actions.openListbox({ focus: ie.Nothing }));
|
|
4593
4593
|
}), y = j((V) => V.preventDefault()), k = Or([i]), S = hn(), { isFocusVisible: P, focusProps: N } = Jt({ autoFocus: l }), { isHovered: O, hoverProps: H } = Xt({ isDisabled: s }), { pressed: A, pressProps: R } = Nr({ disabled: s }), L = ve({ open: g === Me.Open, active: A || g === Me.Open, disabled: s, invalid: o.invalid, value: o.value, hover: O, focus: P, autofocus: l }), K = fe(a, (V) => V.listboxState === Me.Open), T = Xe(f(), { ref: c, id: i, type: ko(e, d), "aria-haspopup": "listbox", "aria-controls": p?.id, "aria-expanded": K, "aria-labelledby": k, "aria-describedby": S, disabled: s || void 0, autoFocus: l, onKeyDown: v, onKeyUp: b, onKeyPress: y }, x, N, H, R);
|
|
4594
|
-
return ue()({ ourProps: T, theirProps: u, slot: L, defaultTag:
|
|
4594
|
+
return ue()({ ourProps: T, theirProps: u, slot: L, defaultTag: Gh, name: "Listbox.Button" });
|
|
4595
4595
|
}
|
|
4596
|
-
let Yc = Ee(!1),
|
|
4597
|
-
function
|
|
4596
|
+
let Yc = Ee(!1), Uh = "div", Yh = qe.RenderStrategy | qe.Static;
|
|
4597
|
+
function Kh(e, t) {
|
|
4598
4598
|
let r = we(), { id: n = `headlessui-listbox-options-${r}`, anchor: o, portal: a = !1, modal: i = !0, transition: s = !1, ...l } = e, u = ji(o), [c, f] = ne(null);
|
|
4599
4599
|
u && (a = !0);
|
|
4600
4600
|
let g = Rn("Listbox.Options"), d = Yi("Listbox.Options"), [p, m, v, b] = fe(d, (G) => [G.listboxState, G.buttonElement, G.optionsElement, G.__demoMode]), x = kt(m), y = kt(v), k = Zt(), [S, P] = Cn(s, c, k !== null ? (k & Se.Open) === Se.Open : p === Me.Open);
|
|
@@ -4650,10 +4650,10 @@ function Yh(e, t) {
|
|
|
4650
4650
|
var D;
|
|
4651
4651
|
return (D = G.buttonElement) == null ? void 0 : D.id;
|
|
4652
4652
|
}), z = ve({ open: p === Me.Open }), I = Xe(u ? X() : {}, { id: n, ref: C, "aria-activedescendant": fe(d, d.selectors.activeDescendantId), "aria-multiselectable": g.mode === Dt.Multi ? !0 : void 0, "aria-labelledby": E, "aria-orientation": g.orientation, onKeyDown: te, role: "listbox", tabIndex: p === Me.Open ? 0 : void 0, style: { ...l.style, ...B, "--button-width": ki(S, m, !0).width }, ...kn(P) }), M = ue(), Q = xe(() => g.mode === Dt.Multi ? g : { ...g, isSelected: L }, [g, L]);
|
|
4653
|
-
return $.createElement(Oo, { enabled: a ? e.static || S : !1, ownerDocument: x }, $.createElement(Do.Provider, { value: Q }, M({ ourProps: I, theirProps: l, slot: z, defaultTag:
|
|
4653
|
+
return $.createElement(Oo, { enabled: a ? e.static || S : !1, ownerDocument: x }, $.createElement(Do.Provider, { value: Q }, M({ ourProps: I, theirProps: l, slot: z, defaultTag: Uh, features: Yh, visible: H, name: "Listbox.Options" })));
|
|
4654
4654
|
}
|
|
4655
|
-
let
|
|
4656
|
-
function
|
|
4655
|
+
let qh = "div";
|
|
4656
|
+
function Xh(e, t) {
|
|
4657
4657
|
let r = we(), { id: n = `headlessui-listbox-option-${r}`, disabled: o = !1, value: a, ...i } = e, s = pe(Yc) === !0, l = Rn("Listbox.Option"), u = Yi("Listbox.Option"), c = fe(u, (A) => u.selectors.isActive(A, n)), f = l.isSelected(a), g = Y(null), d = Hc(g), p = ut({ disabled: o, value: a, domRef: g, get textValue() {
|
|
4658
4658
|
return d();
|
|
4659
4659
|
} }), m = be(t, g, (A) => {
|
|
@@ -4678,20 +4678,20 @@ function qh(e, t) {
|
|
|
4678
4678
|
}), P = j((A) => {
|
|
4679
4679
|
y.wasMoved(A) && (o || c && u.state.activationTrigger === qn.Pointer && u.actions.goToOption({ focus: ie.Nothing }));
|
|
4680
4680
|
}), N = ve({ active: c, focus: c, selected: f, disabled: o, selectedOption: f && s }), O = s ? {} : { id: n, ref: m, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": f, disabled: void 0, onClick: b, onFocus: x, onPointerEnter: k, onMouseEnter: k, onPointerMove: S, onMouseMove: S, onPointerLeave: P, onMouseLeave: P }, H = ue();
|
|
4681
|
-
return !f && s ? null : H({ ourProps: O, theirProps: i, slot: N, defaultTag:
|
|
4681
|
+
return !f && s ? null : H({ ourProps: O, theirProps: i, slot: N, defaultTag: qh, name: "Listbox.Option" });
|
|
4682
4682
|
}
|
|
4683
|
-
let
|
|
4684
|
-
function
|
|
4683
|
+
let Jh = Ae;
|
|
4684
|
+
function Qh(e, t) {
|
|
4685
4685
|
let { options: r, placeholder: n, ...o } = e, a = { ref: be(t) }, i = Rn("ListboxSelectedOption"), s = ve({}), l = i.value === void 0 || i.value === null || i.mode === Dt.Multi && Array.isArray(i.value) && i.value.length === 0, u = ue();
|
|
4686
|
-
return $.createElement(Yc.Provider, { value: !0 }, u({ ourProps: a, theirProps: { ...o, children: $.createElement($.Fragment, null, n && l ? n : r) }, slot: s, defaultTag:
|
|
4686
|
+
return $.createElement(Yc.Provider, { value: !0 }, u({ ourProps: a, theirProps: { ...o, children: $.createElement($.Fragment, null, n && l ? n : r) }, slot: s, defaultTag: Jh, name: "ListboxSelectedOption" }));
|
|
4687
4687
|
}
|
|
4688
|
-
let
|
|
4689
|
-
var
|
|
4688
|
+
let Zh = le(Bh), Kc = le(Wh), ev = Ir, qc = le(Kh), Xc = le(Xh), tv = le(Qh), rv = Object.assign(Zh, { Button: Kc, Label: ev, Options: qc, Option: Xc, SelectedOption: tv });
|
|
4689
|
+
var nv = Object.defineProperty, ov = (e, t, r) => t in e ? nv(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, dl = (e, t, r) => (ov(e, typeof t != "symbol" ? t + "" : t, r), r), Te = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Te || {}), so = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(so || {}), he = ((e) => (e[e.OpenMenu = 0] = "OpenMenu", e[e.CloseMenu = 1] = "CloseMenu", e[e.GoToItem = 2] = "GoToItem", e[e.Search = 3] = "Search", e[e.ClearSearch = 4] = "ClearSearch", e[e.RegisterItems = 5] = "RegisterItems", e[e.UnregisterItems = 6] = "UnregisterItems", e[e.SetButtonElement = 7] = "SetButtonElement", e[e.SetItemsElement = 8] = "SetItemsElement", e[e.SortItems = 9] = "SortItems", e[e.MarkButtonAsMoved = 10] = "MarkButtonAsMoved", e))(he || {});
|
|
4690
4690
|
function fl(e, t = (r) => r) {
|
|
4691
4691
|
let r = e.activeItemIndex !== null ? e.items[e.activeItemIndex] : null, n = Pi(t(e.items.slice()), (a) => a.dataRef.current.domRef.current), o = r ? n.indexOf(r) : null;
|
|
4692
4692
|
return o === -1 && (o = null), { items: n, activeItemIndex: o };
|
|
4693
4693
|
}
|
|
4694
|
-
let
|
|
4694
|
+
let av = { 1(e) {
|
|
4695
4695
|
if (e.menuState === 1) return e;
|
|
4696
4696
|
let t = e.buttonElement ? Vt.Tracked(Hi(e.buttonElement)) : e.buttonPositionState;
|
|
4697
4697
|
return { ...e, activeItemIndex: null, pendingFocus: { focus: ie.Nothing }, menuState: 1, buttonPositionState: t };
|
|
@@ -4745,7 +4745,7 @@ let ov = { 1(e) {
|
|
|
4745
4745
|
return { ...e, items: r, activationTrigger: 1 };
|
|
4746
4746
|
}, 7: (e, t) => e.buttonElement === t.element ? e : { ...e, buttonElement: t.element }, 8: (e, t) => e.itemsElement === t.element ? e : { ...e, itemsElement: t.element }, 9: (e) => e.pendingShouldSort ? { ...e, ...fl(e), pendingShouldSort: !1 } : e, 10(e) {
|
|
4747
4747
|
return e.buttonPositionState.kind !== "Tracked" ? e : { ...e, buttonPositionState: Vt.Moved };
|
|
4748
|
-
} },
|
|
4748
|
+
} }, iv = class Jc extends xo {
|
|
4749
4749
|
constructor(t) {
|
|
4750
4750
|
super(t), dl(this, "actions", { registerItem: Jr(() => {
|
|
4751
4751
|
let r = [], n = /* @__PURE__ */ new Set();
|
|
@@ -4790,7 +4790,7 @@ let ov = { 1(e) {
|
|
|
4790
4790
|
return new Jc({ id: t, __demoMode: r, menuState: r ? 0 : 1, buttonElement: null, itemsElement: null, items: [], searchQuery: "", activeItemIndex: null, activationTrigger: 1, pendingShouldSort: !1, pendingFocus: { focus: ie.Nothing }, buttonPositionState: Vt.Idle });
|
|
4791
4791
|
}
|
|
4792
4792
|
reduce(t, r) {
|
|
4793
|
-
return Pe(r.type,
|
|
4793
|
+
return Pe(r.type, av, t, r);
|
|
4794
4794
|
}
|
|
4795
4795
|
};
|
|
4796
4796
|
const Qc = Ee(null);
|
|
@@ -4803,11 +4803,11 @@ function Ki(e) {
|
|
|
4803
4803
|
return t;
|
|
4804
4804
|
}
|
|
4805
4805
|
function Zc({ id: e, __demoMode: t = !1 }) {
|
|
4806
|
-
let r = xe(() =>
|
|
4806
|
+
let r = xe(() => iv.new({ id: e, __demoMode: t }), []);
|
|
4807
4807
|
return Pn(() => r.dispose()), r;
|
|
4808
4808
|
}
|
|
4809
|
-
let
|
|
4810
|
-
function
|
|
4809
|
+
let sv = Ae;
|
|
4810
|
+
function lv(e, t) {
|
|
4811
4811
|
let r = we(), { __demoMode: n = !1, ...o } = e, a = Zc({ id: r, __demoMode: n }), [i, s, l] = fe(a, (v) => [v.menuState, v.itemsElement, v.buttonElement]), u = be(t), c = gr.get(null), f = fe(c, oe((v) => c.selectors.isTop(v, r), [c, r]));
|
|
4812
4812
|
So(f, [l, s], (v, b) => {
|
|
4813
4813
|
var x;
|
|
@@ -4816,10 +4816,10 @@ function sv(e, t) {
|
|
|
4816
4816
|
let g = j(() => {
|
|
4817
4817
|
a.send({ type: he.CloseMenu });
|
|
4818
4818
|
}), d = ve({ open: i === Te.Open, close: g }), p = { ref: u }, m = ue();
|
|
4819
|
-
return $.createElement(zi, null, $.createElement(Qc.Provider, { value: a }, $.createElement(Ao, { value: Pe(i, { [Te.Open]: Se.Open, [Te.Closed]: Se.Closed }) }, m({ ourProps: p, theirProps: o, slot: d, defaultTag:
|
|
4819
|
+
return $.createElement(zi, null, $.createElement(Qc.Provider, { value: a }, $.createElement(Ao, { value: Pe(i, { [Te.Open]: Se.Open, [Te.Closed]: Se.Closed }) }, m({ ourProps: p, theirProps: o, slot: d, defaultTag: sv, name: "Menu" }))));
|
|
4820
4820
|
}
|
|
4821
|
-
let
|
|
4822
|
-
function
|
|
4821
|
+
let uv = "button";
|
|
4822
|
+
function cv(e, t) {
|
|
4823
4823
|
let r = Ki("Menu.Button"), n = we(), { id: o = `headlessui-menu-button-${n}`, disabled: a = !1, autoFocus: i = !1, ...s } = e, l = Y(null), u = wc(), c = be(t, l, Di(), j((A) => r.send({ type: he.SetButtonElement, element: A }))), f = j((A) => {
|
|
4824
4824
|
switch (A.key) {
|
|
4825
4825
|
case re.Space:
|
|
@@ -4843,10 +4843,10 @@ function uv(e, t) {
|
|
|
4843
4843
|
var R;
|
|
4844
4844
|
a || (d === Te.Open ? (lr(() => r.send({ type: he.CloseMenu })), (R = l.current) == null || R.focus({ preventScroll: !0 })) : (A.preventDefault(), r.send({ type: he.OpenMenu, focus: { focus: ie.Nothing }, trigger: so.Pointer })));
|
|
4845
4845
|
}), { isFocusVisible: x, focusProps: y } = Jt({ autoFocus: i }), { isHovered: k, hoverProps: S } = Xt({ isDisabled: a }), { pressed: P, pressProps: N } = Nr({ disabled: a }), O = ve({ open: d === Te.Open, active: P || d === Te.Open, disabled: a, hover: k, focus: x, autofocus: i }), H = Xe(u(), { ref: c, id: o, type: ko(e, l.current), "aria-haspopup": "menu", "aria-controls": m?.id, "aria-expanded": d === Te.Open, disabled: a || void 0, autoFocus: i, onKeyDown: f, onKeyUp: g }, b, y, S, N);
|
|
4846
|
-
return ue()({ ourProps: H, theirProps: s, slot: O, defaultTag:
|
|
4846
|
+
return ue()({ ourProps: H, theirProps: s, slot: O, defaultTag: uv, name: "Menu.Button" });
|
|
4847
4847
|
}
|
|
4848
|
-
let
|
|
4849
|
-
function
|
|
4848
|
+
let dv = "div", fv = qe.RenderStrategy | qe.Static;
|
|
4849
|
+
function gv(e, t) {
|
|
4850
4850
|
let r = we(), { id: n = `headlessui-menu-items-${r}`, anchor: o, portal: a = !1, modal: i = !0, transition: s = !1, ...l } = e, u = ji(o), c = Ki("Menu.Items"), [f, g] = Vi(u), d = Li(), [p, m] = ne(null), v = be(t, u ? f : null, j((C) => c.send({ type: he.SetItemsElement, element: C })), m), [b, x] = fe(c, (C) => [C.menuState, C.buttonElement]), y = kt(x), k = kt(p);
|
|
4851
4851
|
u && (a = !0);
|
|
4852
4852
|
let S = Zt(), [P, N] = Cn(s, p, S !== null ? (S & Se.Open) === Se.Open : b === Te.Open);
|
|
@@ -4861,7 +4861,7 @@ function fv(e, t) {
|
|
|
4861
4861
|
de(() => {
|
|
4862
4862
|
let C = p;
|
|
4863
4863
|
C && b === Te.Open && (hi(C) || C.focus({ preventScroll: !0 }));
|
|
4864
|
-
}, [b, p]),
|
|
4864
|
+
}, [b, p]), hm(b === Te.Open, { container: p, accept(C) {
|
|
4865
4865
|
return C.getAttribute("role") === "menuitem" ? NodeFilter.FILTER_REJECT : C.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
4866
4866
|
}, walk(C) {
|
|
4867
4867
|
C.setAttribute("role", "none");
|
|
@@ -4904,10 +4904,10 @@ function fv(e, t) {
|
|
|
4904
4904
|
var q;
|
|
4905
4905
|
return (q = C.buttonElement) == null ? void 0 : q.id;
|
|
4906
4906
|
}), id: n, onKeyDown: K, onKeyUp: T, role: "menu", tabIndex: b === Te.Open ? 0 : void 0, ref: v, style: { ...l.style, ...g, "--button-width": ki(P, x, !0).width }, ...kn(N) }), X = ue();
|
|
4907
|
-
return $.createElement(Oo, { enabled: a ? e.static || P : !1, ownerDocument: y }, X({ ourProps: B, theirProps: l, slot: V, defaultTag:
|
|
4907
|
+
return $.createElement(Oo, { enabled: a ? e.static || P : !1, ownerDocument: y }, X({ ourProps: B, theirProps: l, slot: V, defaultTag: dv, features: fv, visible: R, name: "Menu.Items" }));
|
|
4908
4908
|
}
|
|
4909
|
-
let
|
|
4910
|
-
function
|
|
4909
|
+
let pv = Ae;
|
|
4910
|
+
function mv(e, t) {
|
|
4911
4911
|
let r = we(), { id: n = `headlessui-menu-item-${r}`, disabled: o = !1, ...a } = e, i = Ki("Menu.Item"), s = fe(i, (R) => i.selectors.isActive(R, n)), l = Y(null), u = be(t, l), c = fe(i, (R) => i.selectors.shouldScrollIntoView(R, n));
|
|
4912
4912
|
me(() => {
|
|
4913
4913
|
if (c) return De().requestAnimationFrame(() => {
|
|
@@ -4934,28 +4934,28 @@ function pv(e, t) {
|
|
|
4934
4934
|
}), y = j((R) => {
|
|
4935
4935
|
v.wasMoved(R) && (o || s && i.state.activationTrigger === so.Pointer && i.send({ type: he.GoToItem, focus: ie.Nothing }));
|
|
4936
4936
|
}), [k, S] = bn(), [P, N] = bo(), O = ve({ active: s, focus: s, disabled: o, close: d }), H = { id: n, ref: u, role: "menuitem", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-labelledby": k, "aria-describedby": P, disabled: void 0, onClick: p, onFocus: m, onPointerEnter: b, onMouseEnter: b, onPointerMove: x, onMouseMove: x, onPointerLeave: y, onMouseLeave: y }, A = ue();
|
|
4937
|
-
return $.createElement(S, null, $.createElement(N, null, A({ ourProps: H, theirProps: a, slot: O, defaultTag:
|
|
4937
|
+
return $.createElement(S, null, $.createElement(N, null, A({ ourProps: H, theirProps: a, slot: O, defaultTag: pv, name: "Menu.Item" })));
|
|
4938
4938
|
}
|
|
4939
|
-
let
|
|
4940
|
-
function
|
|
4939
|
+
let hv = "div";
|
|
4940
|
+
function vv(e, t) {
|
|
4941
4941
|
let [r, n] = bn(), o = e, a = { ref: t, "aria-labelledby": r, role: "group" }, i = ue();
|
|
4942
|
-
return $.createElement(n, null, i({ ourProps: a, theirProps: o, slot: {}, defaultTag:
|
|
4942
|
+
return $.createElement(n, null, i({ ourProps: a, theirProps: o, slot: {}, defaultTag: hv, name: "Menu.Section" }));
|
|
4943
4943
|
}
|
|
4944
|
-
let
|
|
4945
|
-
function
|
|
4944
|
+
let bv = "header";
|
|
4945
|
+
function yv(e, t) {
|
|
4946
4946
|
let r = we(), { id: n = `headlessui-menu-heading-${r}`, ...o } = e, a = wi();
|
|
4947
4947
|
me(() => a.register(n), [n, a.register]);
|
|
4948
4948
|
let i = { id: n, ref: t, role: "presentation", ...a.props };
|
|
4949
|
-
return ue()({ ourProps: i, theirProps: o, slot: {}, defaultTag:
|
|
4949
|
+
return ue()({ ourProps: i, theirProps: o, slot: {}, defaultTag: bv, name: "Menu.Heading" });
|
|
4950
4950
|
}
|
|
4951
|
-
let
|
|
4952
|
-
function
|
|
4951
|
+
let xv = "div";
|
|
4952
|
+
function wv(e, t) {
|
|
4953
4953
|
let r = e, n = { ref: t, role: "separator" };
|
|
4954
|
-
return ue()({ ourProps: n, theirProps: r, slot: {}, defaultTag:
|
|
4954
|
+
return ue()({ ourProps: n, theirProps: r, slot: {}, defaultTag: xv, name: "Menu.Separator" });
|
|
4955
4955
|
}
|
|
4956
|
-
let
|
|
4957
|
-
var
|
|
4958
|
-
let
|
|
4956
|
+
let Sv = le(lv), ed = le(cv), td = le(gv), Yr = le(mv), kv = le(vv), Cv = le(yv), Ev = le(wv), Pv = Object.assign(Sv, { Button: ed, Items: td, Item: Yr, Section: kv, Heading: Cv, Separator: Ev });
|
|
4957
|
+
var Rv = Object.defineProperty, $v = (e, t, r) => t in e ? Rv(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gl = (e, t, r) => ($v(e, typeof t != "symbol" ? t + "" : t, r), r), $e = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))($e || {}), Nv = ((e) => (e[e.OpenPopover = 0] = "OpenPopover", e[e.ClosePopover = 1] = "ClosePopover", e[e.SetButton = 2] = "SetButton", e[e.SetButtonId = 3] = "SetButtonId", e[e.SetPanel = 4] = "SetPanel", e[e.SetPanelId = 5] = "SetPanelId", e))(Nv || {});
|
|
4958
|
+
let Av = { 0: (e) => e.popoverState === 0 ? e : { ...e, popoverState: 0, __demoMode: !1 }, 1(e) {
|
|
4959
4959
|
return e.popoverState === 1 ? e : { ...e, popoverState: 1, __demoMode: !1 };
|
|
4960
4960
|
}, 2(e, t) {
|
|
4961
4961
|
return e.button === t.button ? e : { ...e, button: t.button };
|
|
@@ -4965,7 +4965,7 @@ let Nv = { 0: (e) => e.popoverState === 0 ? e : { ...e, popoverState: 0, __demoM
|
|
|
4965
4965
|
return e.panel === t.panel ? e : { ...e, panel: t.panel };
|
|
4966
4966
|
}, 5(e, t) {
|
|
4967
4967
|
return e.panelId === t.panelId ? e : { ...e, panelId: t.panelId };
|
|
4968
|
-
} },
|
|
4968
|
+
} }, Ov = class rd extends xo {
|
|
4969
4969
|
constructor(t) {
|
|
4970
4970
|
super(t), gl(this, "actions", { close: () => this.send({ type: 1 }), refocusableClose: (r) => {
|
|
4971
4971
|
this.actions.close();
|
|
@@ -4988,7 +4988,7 @@ let Nv = { 0: (e) => e.popoverState === 0 ? e : { ...e, popoverState: 0, __demoM
|
|
|
4988
4988
|
return new rd({ id: t, __demoMode: r, popoverState: r ? 0 : 1, buttons: { current: [] }, button: null, buttonId: null, panel: null, panelId: null, beforePanelSentinel: { current: null }, afterPanelSentinel: { current: null }, afterButtonSentinel: { current: null } });
|
|
4989
4989
|
}
|
|
4990
4990
|
reduce(t, r) {
|
|
4991
|
-
return Pe(r.type,
|
|
4991
|
+
return Pe(r.type, Av, t, r);
|
|
4992
4992
|
}
|
|
4993
4993
|
};
|
|
4994
4994
|
const nd = Ee(null);
|
|
@@ -5000,8 +5000,8 @@ function Lo(e) {
|
|
|
5000
5000
|
}
|
|
5001
5001
|
return t;
|
|
5002
5002
|
}
|
|
5003
|
-
function
|
|
5004
|
-
let r = xe(() =>
|
|
5003
|
+
function Iv({ id: e, __demoMode: t = !1 }) {
|
|
5004
|
+
let r = xe(() => Ov.new({ id: e, __demoMode: t }), []);
|
|
5005
5005
|
return Pn(() => r.dispose()), r;
|
|
5006
5006
|
}
|
|
5007
5007
|
let qi = Ee(null);
|
|
@@ -5011,15 +5011,15 @@ function od() {
|
|
|
5011
5011
|
}
|
|
5012
5012
|
let Vo = Ee(null);
|
|
5013
5013
|
Vo.displayName = "PopoverPanelContext";
|
|
5014
|
-
function
|
|
5014
|
+
function Fv() {
|
|
5015
5015
|
return pe(Vo);
|
|
5016
5016
|
}
|
|
5017
|
-
let
|
|
5018
|
-
function
|
|
5017
|
+
let Tv = "div";
|
|
5018
|
+
function _v(e, t) {
|
|
5019
5019
|
var r;
|
|
5020
|
-
let n = we(), { __demoMode: o = !1, ...a } = e, i =
|
|
5020
|
+
let n = we(), { __demoMode: o = !1, ...a } = e, i = Iv({ id: n, __demoMode: o }), s = Y(null), l = be(t, Hu((T) => {
|
|
5021
5021
|
s.current = T;
|
|
5022
|
-
})), [u, c, f, g, d] = fe(i, oe((T) => [T.popoverState, T.button, T.panel, T.buttonId, T.panelId], [])), p =
|
|
5022
|
+
})), [u, c, f, g, d] = fe(i, oe((T) => [T.popoverState, T.button, T.panel, T.buttonId, T.panelId], [])), p = tm((r = s.current) != null ? r : c), m = ut(g), v = ut(d), b = xe(() => ({ buttonId: m, panelId: v, close: i.actions.close }), [m, v, i]), x = od(), y = x?.registerPopover, k = j(() => {
|
|
5023
5023
|
var T, V;
|
|
5024
5024
|
let B = Ht((T = s.current) != null ? T : c);
|
|
5025
5025
|
return (V = x?.isFocusWithinPopoverGroup()) != null ? V : B && (c?.contains(B) || f?.contains(B));
|
|
@@ -5039,11 +5039,11 @@ function Tv(e, t) {
|
|
|
5039
5039
|
i.actions.close(), Sn(V, wn.Loose) || (T.preventDefault(), c?.focus());
|
|
5040
5040
|
});
|
|
5041
5041
|
let A = ve({ open: u === $e.Open, close: i.actions.refocusableClose }), R = fe(i, oe((T) => Pe(T.popoverState, { [$e.Open]: Se.Open, [$e.Closed]: Se.Closed }), [])), L = { ref: l }, K = ue();
|
|
5042
|
-
return $.createElement(io, { node: N }, $.createElement(zi, null, $.createElement(Vo.Provider, { value: null }, $.createElement(nd.Provider, { value: i }, $.createElement(Si, { value: i.actions.refocusableClose }, $.createElement(Ao, { value: R }, $.createElement(P, null, K({ ourProps: L, theirProps: a, slot: A, defaultTag:
|
|
5042
|
+
return $.createElement(io, { node: N }, $.createElement(zi, null, $.createElement(Vo.Provider, { value: null }, $.createElement(nd.Provider, { value: i }, $.createElement(Si, { value: i.actions.refocusableClose }, $.createElement(Ao, { value: R }, $.createElement(P, null, K({ ourProps: L, theirProps: a, slot: A, defaultTag: Tv, name: "Popover" }))))))));
|
|
5043
5043
|
}
|
|
5044
|
-
let
|
|
5045
|
-
function
|
|
5046
|
-
let r = we(), { id: n = `headlessui-popover-button-${r}`, disabled: o = !1, autoFocus: a = !1, ...i } = e, s = Lo("Popover.Button"), [l, u, c, f, g, d, p] = fe(s, oe((M) => [M.popoverState, s.selectors.isPortalled(M), M.button, M.buttonId, M.panel, M.panelId, M.afterButtonSentinel], [])), m = Y(null), v = `headlessui-focus-sentinel-${we()}`, b = od(), x = b?.closeOthers, y =
|
|
5044
|
+
let Mv = "button";
|
|
5045
|
+
function jv(e, t) {
|
|
5046
|
+
let r = we(), { id: n = `headlessui-popover-button-${r}`, disabled: o = !1, autoFocus: a = !1, ...i } = e, s = Lo("Popover.Button"), [l, u, c, f, g, d, p] = fe(s, oe((M) => [M.popoverState, s.selectors.isPortalled(M), M.button, M.buttonId, M.panel, M.panelId, M.afterButtonSentinel], [])), m = Y(null), v = `headlessui-focus-sentinel-${we()}`, b = od(), x = b?.closeOthers, y = Fv() !== null;
|
|
5047
5047
|
de(() => {
|
|
5048
5048
|
if (!y) return s.actions.setButtonId(n), () => s.actions.setButtonId(null);
|
|
5049
5049
|
}, [y, n, s]);
|
|
@@ -5094,18 +5094,18 @@ function Mv(e, t) {
|
|
|
5094
5094
|
}
|
|
5095
5095
|
Q();
|
|
5096
5096
|
}), I = ue();
|
|
5097
|
-
return $.createElement($.Fragment, null, I({ ourProps: te, theirProps: i, slot: C, defaultTag:
|
|
5097
|
+
return $.createElement($.Fragment, null, I({ ourProps: te, theirProps: i, slot: C, defaultTag: Mv, name: "Popover.Button" }), X && !y && u && $.createElement(St, { id: v, ref: p, features: ct.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: z }));
|
|
5098
5098
|
}
|
|
5099
|
-
let
|
|
5099
|
+
let Dv = "div", Lv = qe.RenderStrategy | qe.Static;
|
|
5100
5100
|
function ad(e, t) {
|
|
5101
5101
|
let r = we(), { id: n = `headlessui-popover-backdrop-${r}`, transition: o = !1, ...a } = e, i = Lo("Popover.Backdrop"), s = fe(i, oe((b) => b.popoverState, [])), [l, u] = ne(null), c = be(t, u), f = Zt(), [g, d] = Cn(o, l, f !== null ? (f & Se.Open) === Se.Open : s === $e.Open), p = j((b) => {
|
|
5102
5102
|
if (Sr(b.currentTarget)) return b.preventDefault();
|
|
5103
5103
|
i.actions.close();
|
|
5104
5104
|
}), m = ve({ open: s === $e.Open }), v = { ref: c, id: n, "aria-hidden": !0, onClick: p, ...kn(d) };
|
|
5105
|
-
return ue()({ ourProps: v, theirProps: a, slot: m, defaultTag:
|
|
5105
|
+
return ue()({ ourProps: v, theirProps: a, slot: m, defaultTag: Dv, features: Lv, visible: g, name: "Popover.Backdrop" });
|
|
5106
5106
|
}
|
|
5107
|
-
let
|
|
5108
|
-
function
|
|
5107
|
+
let Vv = "div", zv = qe.RenderStrategy | qe.Static;
|
|
5108
|
+
function Hv(e, t) {
|
|
5109
5109
|
let r = we(), { id: n = `headlessui-popover-panel-${r}`, focus: o = !1, anchor: a, portal: i = !1, modal: s = !1, transition: l = !1, ...u } = e, c = Lo("Popover.Panel"), f = fe(c, c.selectors.isPortalled), [g, d, p, m, v] = fe(c, oe((I) => [I.popoverState, I.button, I.__demoMode, I.beforePanelSentinel, I.afterPanelSentinel], [])), b = `headlessui-focus-sentinel-before-${r}`, x = `headlessui-focus-sentinel-after-${r}`, y = Y(null), k = ji(a), [S, P] = Vi(k), N = Li();
|
|
5110
5110
|
k && (i = !0);
|
|
5111
5111
|
let [O, H] = ne(null), A = be(y, t, k ? S : null, c.actions.setPanel, H), R = kt(d), L = kt(y.current);
|
|
@@ -5168,10 +5168,10 @@ function zv(e, t) {
|
|
|
5168
5168
|
}
|
|
5169
5169
|
M();
|
|
5170
5170
|
}), z = ue();
|
|
5171
|
-
return $.createElement(Cc, null, $.createElement(Vo.Provider, { value: n }, $.createElement(Si, { value: c.actions.refocusableClose }, $.createElement(Oo, { enabled: i ? e.static || T : !1, ownerDocument: R }, T && f && $.createElement(St, { id: b, ref: m, features: ct.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: te }), z({ ourProps: C, theirProps: u, slot: X, defaultTag:
|
|
5171
|
+
return $.createElement(Cc, null, $.createElement(Vo.Provider, { value: n }, $.createElement(Si, { value: c.actions.refocusableClose }, $.createElement(Oo, { enabled: i ? e.static || T : !1, ownerDocument: R }, T && f && $.createElement(St, { id: b, ref: m, features: ct.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: te }), z({ ourProps: C, theirProps: u, slot: X, defaultTag: Vv, features: zv, visible: T, name: "Popover.Panel" }), T && f && $.createElement(St, { id: x, ref: v, features: ct.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: E })))));
|
|
5172
5172
|
}
|
|
5173
|
-
let
|
|
5174
|
-
function
|
|
5173
|
+
let Bv = "div";
|
|
5174
|
+
function Gv(e, t) {
|
|
5175
5175
|
let r = Y(null), n = be(r, t), [o, a] = ne([]), i = j((m) => {
|
|
5176
5176
|
a((v) => {
|
|
5177
5177
|
let b = v.indexOf(m);
|
|
@@ -5193,9 +5193,9 @@ function Bv(e, t) {
|
|
|
5193
5193
|
}), u = j((m) => {
|
|
5194
5194
|
for (let v of o) v.buttonId.current !== m && v.close();
|
|
5195
5195
|
}), c = xe(() => ({ registerPopover: s, unregisterPopover: i, isFocusWithinPopoverGroup: l, closeOthers: u }), [s, i, l, u]), f = ve({}), g = e, d = { ref: n }, p = ue();
|
|
5196
|
-
return $.createElement(io, null, $.createElement(qi.Provider, { value: c }, p({ ourProps: d, theirProps: g, slot: f, defaultTag:
|
|
5196
|
+
return $.createElement(io, null, $.createElement(qi.Provider, { value: c }, p({ ourProps: d, theirProps: g, slot: f, defaultTag: Bv, name: "Popover.Group" })));
|
|
5197
5197
|
}
|
|
5198
|
-
let
|
|
5198
|
+
let Wv = le(_v), lo = le(jv), Uv = le(ad), id = le(ad), Xi = le(Hv), Yv = le(Gv), sd = Object.assign(Wv, { Button: lo, Backdrop: id, Overlay: Uv, Panel: Xi, Group: Yv }), Ji = Ee(null);
|
|
5199
5199
|
Ji.displayName = "GroupContext";
|
|
5200
5200
|
let Kv = Ae;
|
|
5201
5201
|
function qv(e) {
|
|
@@ -5267,7 +5267,7 @@ const pl = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ml = Su, c
|
|
|
5267
5267
|
}, sb = (e, t) => ({
|
|
5268
5268
|
classGroupId: e,
|
|
5269
5269
|
validator: t
|
|
5270
|
-
}),
|
|
5270
|
+
}), ld = (e = /* @__PURE__ */ new Map(), t = null, r) => ({
|
|
5271
5271
|
nextPart: e,
|
|
5272
5272
|
validators: t,
|
|
5273
5273
|
classGroupId: r
|
|
@@ -5281,7 +5281,7 @@ const pl = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ml = Su, c
|
|
|
5281
5281
|
if (i.startsWith("[") && i.endsWith("]"))
|
|
5282
5282
|
return cb(i);
|
|
5283
5283
|
const s = i.split(uo), l = s[0] === "" && s.length > 1 ? 1 : 0;
|
|
5284
|
-
return
|
|
5284
|
+
return ud(s, l, t);
|
|
5285
5285
|
},
|
|
5286
5286
|
getConflictingClassGroupIds: (i, s) => {
|
|
5287
5287
|
if (s) {
|
|
@@ -5291,12 +5291,12 @@ const pl = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ml = Su, c
|
|
|
5291
5291
|
return r[i] || hl;
|
|
5292
5292
|
}
|
|
5293
5293
|
};
|
|
5294
|
-
},
|
|
5294
|
+
}, ud = (e, t, r) => {
|
|
5295
5295
|
if (e.length - t === 0)
|
|
5296
5296
|
return r.classGroupId;
|
|
5297
5297
|
const o = e[t], a = r.nextPart.get(o);
|
|
5298
5298
|
if (a) {
|
|
5299
|
-
const u =
|
|
5299
|
+
const u = ud(e, t + 1, a);
|
|
5300
5300
|
if (u) return u;
|
|
5301
5301
|
}
|
|
5302
5302
|
const i = r.validators;
|
|
@@ -5318,7 +5318,7 @@ const pl = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ml = Su, c
|
|
|
5318
5318
|
} = e;
|
|
5319
5319
|
return fb(r, t);
|
|
5320
5320
|
}, fb = (e, t) => {
|
|
5321
|
-
const r =
|
|
5321
|
+
const r = ld();
|
|
5322
5322
|
for (const n in e) {
|
|
5323
5323
|
const o = e[n];
|
|
5324
5324
|
Qi(o, r, n, t);
|
|
@@ -5341,7 +5341,7 @@ const pl = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ml = Su, c
|
|
|
5341
5341
|
}
|
|
5342
5342
|
hb(e, t, r, n);
|
|
5343
5343
|
}, pb = (e, t, r) => {
|
|
5344
|
-
const n = e === "" ? t :
|
|
5344
|
+
const n = e === "" ? t : cd(t, e);
|
|
5345
5345
|
n.classGroupId = r;
|
|
5346
5346
|
}, mb = (e, t, r, n) => {
|
|
5347
5347
|
if (vb(e)) {
|
|
@@ -5353,15 +5353,15 @@ const pl = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ml = Su, c
|
|
|
5353
5353
|
const o = Object.entries(e), a = o.length;
|
|
5354
5354
|
for (let i = 0; i < a; i++) {
|
|
5355
5355
|
const [s, l] = o[i];
|
|
5356
|
-
Qi(l,
|
|
5356
|
+
Qi(l, cd(t, s), r, n);
|
|
5357
5357
|
}
|
|
5358
|
-
},
|
|
5358
|
+
}, cd = (e, t) => {
|
|
5359
5359
|
let r = e;
|
|
5360
5360
|
const n = t.split(uo), o = n.length;
|
|
5361
5361
|
for (let a = 0; a < o; a++) {
|
|
5362
5362
|
const i = n[a];
|
|
5363
5363
|
let s = r.nextPart.get(i);
|
|
5364
|
-
s || (s =
|
|
5364
|
+
s || (s = ld(), r.nextPart.set(i, s)), r = s;
|
|
5365
5365
|
}
|
|
5366
5366
|
return r;
|
|
5367
5367
|
}, vb = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, bb = (e) => {
|
|
@@ -5506,14 +5506,14 @@ const pl = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ml = Su, c
|
|
|
5506
5506
|
}, Eb = (...e) => {
|
|
5507
5507
|
let t = 0, r, n, o = "";
|
|
5508
5508
|
for (; t < e.length; )
|
|
5509
|
-
(r = e[t++]) && (n =
|
|
5509
|
+
(r = e[t++]) && (n = dd(r)) && (o && (o += " "), o += n);
|
|
5510
5510
|
return o;
|
|
5511
|
-
},
|
|
5511
|
+
}, dd = (e) => {
|
|
5512
5512
|
if (typeof e == "string")
|
|
5513
5513
|
return e;
|
|
5514
5514
|
let t, r = "";
|
|
5515
5515
|
for (let n = 0; n < e.length; n++)
|
|
5516
|
-
e[n] && (t =
|
|
5516
|
+
e[n] && (t = dd(e[n])) && (r && (r += " "), r += t);
|
|
5517
5517
|
return r;
|
|
5518
5518
|
}, Pb = (e, ...t) => {
|
|
5519
5519
|
let r, n, o, a;
|
|
@@ -5531,18 +5531,18 @@ const pl = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ml = Su, c
|
|
|
5531
5531
|
}, Rb = [], Ne = (e) => {
|
|
5532
5532
|
const t = (r) => r[e] || Rb;
|
|
5533
5533
|
return t.isThemeGetter = !0, t;
|
|
5534
|
-
},
|
|
5534
|
+
}, fd = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, gd = /^\((?:(\w[\w-]*):)?(.+)\)$/i, $b = /^\d+\/\d+$/, Nb = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ab = /\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$/, Ob = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ib = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Fb = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, mr = (e) => $b.test(e), se = (e) => !!e && !Number.isNaN(Number(e)), Ot = (e) => !!e && Number.isInteger(Number(e)), sa = (e) => e.endsWith("%") && se(e.slice(0, -1)), ht = (e) => Nb.test(e), Tb = () => !0, _b = (e) => (
|
|
5535
5535
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
5536
5536
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
5537
5537
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
5538
5538
|
Ab.test(e) && !Ob.test(e)
|
|
5539
|
-
),
|
|
5540
|
-
const n =
|
|
5539
|
+
), pd = () => !1, Mb = (e) => Ib.test(e), jb = (e) => Fb.test(e), Db = (e) => !W(e) && !U(e), Lb = (e) => Mr(e, vd, pd), W = (e) => fd.test(e), rr = (e) => Mr(e, bd, _b), la = (e) => Mr(e, Gb, se), yl = (e) => Mr(e, md, pd), Vb = (e) => Mr(e, hd, jb), Ln = (e) => Mr(e, yd, Mb), U = (e) => gd.test(e), Hr = (e) => jr(e, bd), zb = (e) => jr(e, Wb), xl = (e) => jr(e, md), Hb = (e) => jr(e, vd), Bb = (e) => jr(e, hd), Vn = (e) => jr(e, yd, !0), Mr = (e, t, r) => {
|
|
5540
|
+
const n = fd.exec(e);
|
|
5541
5541
|
return n ? n[1] ? t(n[1]) : r(n[2]) : !1;
|
|
5542
5542
|
}, jr = (e, t, r = !1) => {
|
|
5543
|
-
const n =
|
|
5543
|
+
const n = gd.exec(e);
|
|
5544
5544
|
return n ? n[1] ? t(n[1]) : r : !1;
|
|
5545
|
-
},
|
|
5545
|
+
}, md = (e) => e === "position" || e === "percentage", hd = (e) => e === "image" || e === "url", vd = (e) => e === "length" || e === "size" || e === "bg-size", bd = (e) => e === "length", Gb = (e) => e === "number", Wb = (e) => e === "family-name", yd = (e) => e === "shadow", Ub = () => {
|
|
5546
5546
|
const e = Ne("color"), t = Ne("font"), r = Ne("text"), n = Ne("font-weight"), o = Ne("tracking"), a = Ne("leading"), i = Ne("breakpoint"), s = Ne("container"), l = Ne("spacing"), u = Ne("radius"), c = Ne("shadow"), f = Ne("inset-shadow"), g = Ne("text-shadow"), d = Ne("drop-shadow"), p = Ne("blur"), m = Ne("perspective"), v = Ne("aspect"), b = Ne("ease"), x = Ne("animate"), y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], k = () => [
|
|
5547
5547
|
"center",
|
|
5548
5548
|
"top",
|
|
@@ -8077,7 +8077,7 @@ const Kb = ce(
|
|
|
8077
8077
|
) : /* @__PURE__ */ h.jsx("span", { className: "leading-none uppercase", children: o?.slice(0, 2) })
|
|
8078
8078
|
}
|
|
8079
8079
|
);
|
|
8080
|
-
return s ? /* @__PURE__ */ h.jsxs(
|
|
8080
|
+
return s ? /* @__PURE__ */ h.jsxs(sd, { className: "relative inline-flex", children: [
|
|
8081
8081
|
/* @__PURE__ */ h.jsx(
|
|
8082
8082
|
lo,
|
|
8083
8083
|
{
|
|
@@ -8350,7 +8350,7 @@ const Xb = ce("animate-spin rounded-full transition-colors", {
|
|
|
8350
8350
|
}, c) => {
|
|
8351
8351
|
const f = s || o;
|
|
8352
8352
|
return /* @__PURE__ */ h.jsxs(
|
|
8353
|
-
|
|
8353
|
+
dp,
|
|
8354
8354
|
{
|
|
8355
8355
|
className: F(
|
|
8356
8356
|
Qb({ colorScheme: t, variant: r, size: n }),
|
|
@@ -8462,7 +8462,7 @@ function ny(e, t) {
|
|
|
8462
8462
|
function oy(e, t) {
|
|
8463
8463
|
for (var r = 0; r < t.length; r++) {
|
|
8464
8464
|
var n = t[r];
|
|
8465
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e,
|
|
8465
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, xd(n.key), n);
|
|
8466
8466
|
}
|
|
8467
8467
|
}
|
|
8468
8468
|
function ay(e, t, r) {
|
|
@@ -8518,7 +8518,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8518
8518
|
};
|
|
8519
8519
|
}
|
|
8520
8520
|
function ae(e, t, r) {
|
|
8521
|
-
return (t =
|
|
8521
|
+
return (t = xd(t)) in e ? Object.defineProperty(e, t, {
|
|
8522
8522
|
value: r,
|
|
8523
8523
|
enumerable: !0,
|
|
8524
8524
|
configurable: !0,
|
|
@@ -8594,7 +8594,7 @@ function cy(e, t) {
|
|
|
8594
8594
|
}
|
|
8595
8595
|
return (t === "string" ? String : Number)(e);
|
|
8596
8596
|
}
|
|
8597
|
-
function
|
|
8597
|
+
function xd(e) {
|
|
8598
8598
|
var t = cy(e, "string");
|
|
8599
8599
|
return typeof t == "symbol" ? t : t + "";
|
|
8600
8600
|
}
|
|
@@ -8614,17 +8614,17 @@ function es(e, t) {
|
|
|
8614
8614
|
}
|
|
8615
8615
|
}
|
|
8616
8616
|
var Sl = function() {
|
|
8617
|
-
}, ts = {},
|
|
8617
|
+
}, ts = {}, wd = {}, Sd = null, kd = {
|
|
8618
8618
|
mark: Sl,
|
|
8619
8619
|
measure: Sl
|
|
8620
8620
|
};
|
|
8621
8621
|
try {
|
|
8622
|
-
typeof window < "u" && (ts = window), typeof document < "u" && (
|
|
8622
|
+
typeof window < "u" && (ts = window), typeof document < "u" && (wd = document), typeof MutationObserver < "u" && (Sd = MutationObserver), typeof performance < "u" && (kd = performance);
|
|
8623
8623
|
} catch {
|
|
8624
8624
|
}
|
|
8625
|
-
var dy = ts.navigator || {}, kl = dy.userAgent, Cl = kl === void 0 ? "" : kl, Gt = ts, ke =
|
|
8625
|
+
var dy = ts.navigator || {}, kl = dy.userAgent, Cl = kl === void 0 ? "" : kl, Gt = ts, ke = wd, El = Sd, zn = kd;
|
|
8626
8626
|
Gt.document;
|
|
8627
|
-
var At = !!ke.documentElement && !!ke.head && typeof ke.addEventListener == "function" && typeof ke.createElement == "function",
|
|
8627
|
+
var At = !!ke.documentElement && !!ke.head && typeof ke.addEventListener == "function" && typeof ke.createElement == "function", Cd = ~Cl.indexOf("MSIE") || ~Cl.indexOf("Trident/"), ua, fy = /fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/, gy = /Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i, Ed = {
|
|
8628
8628
|
classic: {
|
|
8629
8629
|
fa: "solid",
|
|
8630
8630
|
fas: "solid",
|
|
@@ -8736,8 +8736,8 @@ var At = !!ke.documentElement && !!ke.head && typeof ke.addEventListener == "fun
|
|
|
8736
8736
|
GROUP: "duotone-group",
|
|
8737
8737
|
PRIMARY: "primary",
|
|
8738
8738
|
SECONDARY: "secondary"
|
|
8739
|
-
},
|
|
8740
|
-
ua = {}, ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ua, Ie, my), $n, hy),
|
|
8739
|
+
}, Pd = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone", "fa-thumbprint", "fa-whiteboard", "fa-notdog", "fa-notdog-duo", "fa-chisel", "fa-etch", "fa-graphite", "fa-jelly", "fa-jelly-fill", "fa-jelly-duo", "fa-slab", "fa-slab-press", "fa-utility", "fa-utility-duo", "fa-utility-fill"], Ie = "classic", $n = "duotone", Rd = "sharp", $d = "sharp-duotone", Nd = "chisel", Ad = "etch", Od = "graphite", Id = "jelly", Fd = "jelly-duo", Td = "jelly-fill", _d = "notdog", Md = "notdog-duo", jd = "slab", Dd = "slab-press", Ld = "thumbprint", Vd = "utility", zd = "utility-duo", Hd = "utility-fill", Bd = "whiteboard", my = "Classic", hy = "Duotone", vy = "Sharp", by = "Sharp Duotone", yy = "Chisel", xy = "Etch", wy = "Graphite", Sy = "Jelly", ky = "Jelly Duo", Cy = "Jelly Fill", Ey = "Notdog", Py = "Notdog Duo", Ry = "Slab", $y = "Slab Press", Ny = "Thumbprint", Ay = "Utility", Oy = "Utility Duo", Iy = "Utility Fill", Fy = "Whiteboard", Gd = [Ie, $n, Rd, $d, Nd, Ad, Od, Id, Fd, Td, _d, Md, jd, Dd, Ld, Vd, zd, Hd, Bd];
|
|
8740
|
+
ua = {}, ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ua, Ie, my), $n, hy), Rd, vy), $d, by), Nd, yy), Ad, xy), Od, wy), Id, Sy), Fd, ky), Td, Cy), ae(ae(ae(ae(ae(ae(ae(ae(ae(ua, _d, Ey), Md, Py), jd, Ry), Dd, $y), Ld, Ny), Vd, Ay), zd, Oy), Hd, Iy), Bd, Fy);
|
|
8741
8741
|
var Ty = {
|
|
8742
8742
|
classic: {
|
|
8743
8743
|
900: "fas",
|
|
@@ -9091,7 +9091,7 @@ var Ty = {
|
|
|
9091
9091
|
whiteboard: {
|
|
9092
9092
|
semibold: "fawsb"
|
|
9093
9093
|
}
|
|
9094
|
-
},
|
|
9094
|
+
}, Wd = ["fak", "fa-kit", "fakd", "fa-kit-duotone"], Pl = {
|
|
9095
9095
|
kit: {
|
|
9096
9096
|
fak: "kit",
|
|
9097
9097
|
"fa-kit": "kit"
|
|
@@ -9297,7 +9297,7 @@ var _x = {
|
|
|
9297
9297
|
"utility-fill": {
|
|
9298
9298
|
faufsb: "fa-semibold"
|
|
9299
9299
|
}
|
|
9300
|
-
}, jx = ["fa-solid", "fa-regular", "fa-light", "fa-thin", "fa-duotone", "fa-brands", "fa-semibold"],
|
|
9300
|
+
}, jx = ["fa-solid", "fa-regular", "fa-light", "fa-thin", "fa-duotone", "fa-brands", "fa-semibold"], Ud = ["fa", "fas", "far", "fal", "fat", "fad", "fadr", "fadl", "fadt", "fab", "fass", "fasr", "fasl", "fast", "fasds", "fasdr", "fasdl", "fasdt", "faslr", "faslpr", "fawsb", "fatl", "fans", "fands", "faes", "fagt", "fajr", "fajfr", "fajdr", "facr", "fausb", "faudsb", "faufsb"].concat(Uy, jx), Dx = ["solid", "regular", "light", "thin", "duotone", "brands", "semibold"], Yd = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], Lx = Yd.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]), Vx = ["aw", "fw", "pull-left", "pull-right"], zx = [].concat(tt(Object.keys(Mx)), Dx, Vx, ["2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "inverse", "layers", "layers-bottom-left", "layers-bottom-right", "layers-counter", "layers-text", "layers-top-left", "layers-top-right", "li", "pull-end", "pull-start", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", "width-auto", "width-fixed", Hn.GROUP, Hn.SWAP_OPACITY, Hn.PRIMARY, Hn.SECONDARY]).concat(Yd.map(function(e) {
|
|
9301
9301
|
return "".concat(e, "x");
|
|
9302
9302
|
})).concat(Lx.map(function(e) {
|
|
9303
9303
|
return "w-".concat(e);
|
|
@@ -9319,7 +9319,7 @@ var _x = {
|
|
|
9319
9319
|
"Font Awesome 5 Duotone": {
|
|
9320
9320
|
900: "fad"
|
|
9321
9321
|
}
|
|
9322
|
-
}, Pt = "___FONT_AWESOME___", Ha = 16,
|
|
9322
|
+
}, Pt = "___FONT_AWESOME___", Ha = 16, Kd = "fa", qd = "svg-inline--fa", dr = "data-fa-i2svg", Ba = "data-fa-pseudo-element", Bx = "data-fa-pseudo-element-pending", rs = "data-prefix", ns = "data-icon", $l = "fontawesome-i2svg", Gx = "async", Wx = ["HTML", "HEAD", "STYLE", "SCRIPT"], Xd = ["::before", "::after", ":before", ":after"], Jd = (function() {
|
|
9323
9323
|
try {
|
|
9324
9324
|
return process.env.NODE_ENV === "production";
|
|
9325
9325
|
} catch {
|
|
@@ -9333,11 +9333,11 @@ function Nn(e) {
|
|
|
9333
9333
|
}
|
|
9334
9334
|
});
|
|
9335
9335
|
}
|
|
9336
|
-
var
|
|
9337
|
-
|
|
9336
|
+
var Qd = _({}, Ed);
|
|
9337
|
+
Qd[Ie] = _(_(_(_({}, {
|
|
9338
9338
|
"fa-duotone": "duotone"
|
|
9339
|
-
}),
|
|
9340
|
-
var Ux = Nn(
|
|
9339
|
+
}), Ed[Ie]), Pl.kit), Pl["kit-duotone"]);
|
|
9340
|
+
var Ux = Nn(Qd), Ga = _({}, jy);
|
|
9341
9341
|
Ga[Ie] = _(_(_(_({}, {
|
|
9342
9342
|
duotone: "fad"
|
|
9343
9343
|
}), Ga[Ie]), Rl.kit), Rl["kit-duotone"]);
|
|
@@ -9346,7 +9346,7 @@ Wa[Ie] = _(_({}, Wa[Ie]), Wy.kit);
|
|
|
9346
9346
|
var os = Nn(Wa), Ua = _({}, _x);
|
|
9347
9347
|
Ua[Ie] = _(_({}, Ua[Ie]), By.kit);
|
|
9348
9348
|
Nn(Ua);
|
|
9349
|
-
var Yx = fy,
|
|
9349
|
+
var Yx = fy, Zd = "fa-layers-text", Kx = gy, qx = _({}, Ty);
|
|
9350
9350
|
Nn(qx);
|
|
9351
9351
|
var Xx = ["class", "data-prefix", "data-icon", "data-fa-transform", "data-fa-mask"], da = py, Jx = [].concat(tt(Dy), tt(zx)), Zr = Gt.FontAwesomeConfig || {};
|
|
9352
9352
|
function Qx(e) {
|
|
@@ -9364,11 +9364,11 @@ if (ke && typeof ke.querySelector == "function") {
|
|
|
9364
9364
|
o != null && (Zr[n] = o);
|
|
9365
9365
|
});
|
|
9366
9366
|
}
|
|
9367
|
-
var
|
|
9367
|
+
var ef = {
|
|
9368
9368
|
styleDefault: "solid",
|
|
9369
9369
|
familyDefault: Ie,
|
|
9370
|
-
cssPrefix:
|
|
9371
|
-
replacementClass:
|
|
9370
|
+
cssPrefix: Kd,
|
|
9371
|
+
replacementClass: qd,
|
|
9372
9372
|
autoReplaceSvg: !0,
|
|
9373
9373
|
autoAddCss: !0,
|
|
9374
9374
|
searchPseudoElements: !1,
|
|
@@ -9381,10 +9381,10 @@ var Zd = {
|
|
|
9381
9381
|
showMissingIcons: !0
|
|
9382
9382
|
};
|
|
9383
9383
|
Zr.familyPrefix && (Zr.cssPrefix = Zr.familyPrefix);
|
|
9384
|
-
var Pr = _(_({},
|
|
9384
|
+
var Pr = _(_({}, ef), Zr);
|
|
9385
9385
|
Pr.autoReplaceSvg || (Pr.observeMutations = !1);
|
|
9386
9386
|
var J = {};
|
|
9387
|
-
Object.keys(
|
|
9387
|
+
Object.keys(ef).forEach(function(e) {
|
|
9388
9388
|
Object.defineProperty(J, e, {
|
|
9389
9389
|
enumerable: !0,
|
|
9390
9390
|
set: function(r) {
|
|
@@ -9450,12 +9450,12 @@ function as(e) {
|
|
|
9450
9450
|
return t;
|
|
9451
9451
|
});
|
|
9452
9452
|
}
|
|
9453
|
-
function
|
|
9453
|
+
function tf(e) {
|
|
9454
9454
|
return "".concat(e).replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
9455
9455
|
}
|
|
9456
9456
|
function ow(e) {
|
|
9457
9457
|
return Object.keys(e || {}).reduce(function(t, r) {
|
|
9458
|
-
return t + "".concat(r, '="').concat(
|
|
9458
|
+
return t + "".concat(r, '="').concat(tf(e[r]), '" ');
|
|
9459
9459
|
}, "").trim();
|
|
9460
9460
|
}
|
|
9461
9461
|
function Ho(e) {
|
|
@@ -9482,7 +9482,7 @@ function aw(e) {
|
|
|
9482
9482
|
}
|
|
9483
9483
|
function iw(e) {
|
|
9484
9484
|
var t = e.transform, r = e.width, n = r === void 0 ? Ha : r, o = e.height, a = o === void 0 ? Ha : o, i = "";
|
|
9485
|
-
return
|
|
9485
|
+
return Cd ? i += "translate(".concat(t.x / hr - n / 2, "em, ").concat(t.y / hr - a / 2, "em) ") : i += "translate(calc(-50% + ".concat(t.x / hr, "em), calc(-50% + ").concat(t.y / hr, "em)) "), i += "scale(".concat(t.size / hr * (t.flipX ? -1 : 1), ", ").concat(t.size / hr * (t.flipY ? -1 : 1), ") "), i += "rotate(".concat(t.rotate, "deg) "), i;
|
|
9486
9486
|
}
|
|
9487
9487
|
var sw = `:root, :host {
|
|
9488
9488
|
--fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free';
|
|
@@ -10036,8 +10036,8 @@ var sw = `:root, :host {
|
|
|
10036
10036
|
position: absolute;
|
|
10037
10037
|
z-index: var(--fa-stack-z-index, auto);
|
|
10038
10038
|
}`;
|
|
10039
|
-
function
|
|
10040
|
-
var e =
|
|
10039
|
+
function rf() {
|
|
10040
|
+
var e = Kd, t = qd, r = J.cssPrefix, n = J.replacementClass, o = sw;
|
|
10041
10041
|
if (r !== e || n !== t) {
|
|
10042
10042
|
var a = new RegExp("\\.".concat(e, "\\-"), "g"), i = new RegExp("\\--".concat(e, "\\-"), "g"), s = new RegExp("\\.".concat(t), "g");
|
|
10043
10043
|
o = o.replace(a, ".".concat(r, "-")).replace(i, "--".concat(r, "-")).replace(s, ".".concat(n));
|
|
@@ -10046,13 +10046,13 @@ function tf() {
|
|
|
10046
10046
|
}
|
|
10047
10047
|
var Ol = !1;
|
|
10048
10048
|
function fa() {
|
|
10049
|
-
J.autoAddCss && !Ol && (rw(
|
|
10049
|
+
J.autoAddCss && !Ol && (rw(rf()), Ol = !0);
|
|
10050
10050
|
}
|
|
10051
10051
|
var lw = {
|
|
10052
10052
|
mixout: function() {
|
|
10053
10053
|
return {
|
|
10054
10054
|
dom: {
|
|
10055
|
-
css:
|
|
10055
|
+
css: rf,
|
|
10056
10056
|
insertCss: fa
|
|
10057
10057
|
}
|
|
10058
10058
|
};
|
|
@@ -10072,18 +10072,18 @@ Rt[Pt] || (Rt[Pt] = {});
|
|
|
10072
10072
|
Rt[Pt].styles || (Rt[Pt].styles = {});
|
|
10073
10073
|
Rt[Pt].hooks || (Rt[Pt].hooks = {});
|
|
10074
10074
|
Rt[Pt].shims || (Rt[Pt].shims = []);
|
|
10075
|
-
var Qe = Rt[Pt],
|
|
10076
|
-
ke.removeEventListener("DOMContentLoaded",
|
|
10075
|
+
var Qe = Rt[Pt], nf = [], of = function() {
|
|
10076
|
+
ke.removeEventListener("DOMContentLoaded", of), fo = 1, nf.map(function(t) {
|
|
10077
10077
|
return t();
|
|
10078
10078
|
});
|
|
10079
10079
|
}, fo = !1;
|
|
10080
|
-
At && (fo = (ke.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(ke.readyState), fo || ke.addEventListener("DOMContentLoaded",
|
|
10080
|
+
At && (fo = (ke.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(ke.readyState), fo || ke.addEventListener("DOMContentLoaded", of));
|
|
10081
10081
|
function uw(e) {
|
|
10082
|
-
At && (fo ? setTimeout(e, 0) :
|
|
10082
|
+
At && (fo ? setTimeout(e, 0) : nf.push(e));
|
|
10083
10083
|
}
|
|
10084
10084
|
function An(e) {
|
|
10085
10085
|
var t = e.tag, r = e.attributes, n = r === void 0 ? {} : r, o = e.children, a = o === void 0 ? [] : o;
|
|
10086
|
-
return typeof e == "string" ?
|
|
10086
|
+
return typeof e == "string" ? tf(e) : "<".concat(t, " ").concat(ow(n), ">").concat(a.map(An).join(""), "</").concat(t, ">");
|
|
10087
10087
|
}
|
|
10088
10088
|
function Il(e, t, r) {
|
|
10089
10089
|
if (e && e[t] && e[t][r])
|
|
@@ -10099,7 +10099,7 @@ var ga = function(t, r, n, o) {
|
|
|
10099
10099
|
u = a[l], c = s(c, t[u], u, t);
|
|
10100
10100
|
return c;
|
|
10101
10101
|
};
|
|
10102
|
-
function
|
|
10102
|
+
function af(e) {
|
|
10103
10103
|
return tt(e).length !== 1 ? null : e.codePointAt(0).toString(16);
|
|
10104
10104
|
}
|
|
10105
10105
|
function Fl(e) {
|
|
@@ -10112,9 +10112,9 @@ function Ya(e, t) {
|
|
|
10112
10112
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = r.skipHooks, o = n === void 0 ? !1 : n, a = Fl(t);
|
|
10113
10113
|
typeof Qe.hooks.addPack == "function" && !o ? Qe.hooks.addPack(e, Fl(t)) : Qe.styles[e] = _(_({}, Qe.styles[e] || {}), a), e === "fas" && Ya("fa", t);
|
|
10114
10114
|
}
|
|
10115
|
-
var fn = Qe.styles, cw = Qe.shims,
|
|
10115
|
+
var fn = Qe.styles, cw = Qe.shims, sf = Object.keys(os), dw = sf.reduce(function(e, t) {
|
|
10116
10116
|
return e[t] = Object.keys(os[t]), e;
|
|
10117
|
-
}, {}), ss = null,
|
|
10117
|
+
}, {}), ss = null, lf = {}, uf = {}, cf = {}, df = {}, ff = {};
|
|
10118
10118
|
function fw(e) {
|
|
10119
10119
|
return ~Jx.indexOf(e);
|
|
10120
10120
|
}
|
|
@@ -10122,13 +10122,13 @@ function gw(e, t) {
|
|
|
10122
10122
|
var r = t.split("-"), n = r[0], o = r.slice(1).join("-");
|
|
10123
10123
|
return n === e && o !== "" && !fw(o) ? o : null;
|
|
10124
10124
|
}
|
|
10125
|
-
var
|
|
10125
|
+
var gf = function() {
|
|
10126
10126
|
var t = function(a) {
|
|
10127
10127
|
return ga(fn, function(i, s, l) {
|
|
10128
10128
|
return i[l] = ga(s, a, {}), i;
|
|
10129
10129
|
}, {});
|
|
10130
10130
|
};
|
|
10131
|
-
|
|
10131
|
+
lf = t(function(o, a, i) {
|
|
10132
10132
|
if (a[3] && (o[a[3]] = i), a[2]) {
|
|
10133
10133
|
var s = a[2].filter(function(l) {
|
|
10134
10134
|
return typeof l == "number";
|
|
@@ -10138,7 +10138,7 @@ var ff = function() {
|
|
|
10138
10138
|
});
|
|
10139
10139
|
}
|
|
10140
10140
|
return o;
|
|
10141
|
-
}),
|
|
10141
|
+
}), uf = t(function(o, a, i) {
|
|
10142
10142
|
if (o[i] = i, a[2]) {
|
|
10143
10143
|
var s = a[2].filter(function(l) {
|
|
10144
10144
|
return typeof l == "string";
|
|
@@ -10148,7 +10148,7 @@ var ff = function() {
|
|
|
10148
10148
|
});
|
|
10149
10149
|
}
|
|
10150
10150
|
return o;
|
|
10151
|
-
}),
|
|
10151
|
+
}), ff = t(function(o, a, i) {
|
|
10152
10152
|
var s = a[2];
|
|
10153
10153
|
return o[i] = i, s.forEach(function(l) {
|
|
10154
10154
|
o[l] = i;
|
|
@@ -10167,7 +10167,7 @@ var ff = function() {
|
|
|
10167
10167
|
names: {},
|
|
10168
10168
|
unicodes: {}
|
|
10169
10169
|
});
|
|
10170
|
-
|
|
10170
|
+
cf = n.names, df = n.unicodes, ss = Bo(J.styleDefault, {
|
|
10171
10171
|
family: J.familyDefault
|
|
10172
10172
|
});
|
|
10173
10173
|
};
|
|
@@ -10176,24 +10176,24 @@ tw(function(e) {
|
|
|
10176
10176
|
family: J.familyDefault
|
|
10177
10177
|
});
|
|
10178
10178
|
});
|
|
10179
|
-
|
|
10179
|
+
gf();
|
|
10180
10180
|
function ls(e, t) {
|
|
10181
|
-
return (
|
|
10181
|
+
return (lf[e] || {})[t];
|
|
10182
10182
|
}
|
|
10183
10183
|
function pw(e, t) {
|
|
10184
|
-
return (
|
|
10184
|
+
return (uf[e] || {})[t];
|
|
10185
10185
|
}
|
|
10186
10186
|
function sr(e, t) {
|
|
10187
|
-
return (
|
|
10187
|
+
return (ff[e] || {})[t];
|
|
10188
10188
|
}
|
|
10189
|
-
function
|
|
10190
|
-
return
|
|
10189
|
+
function pf(e) {
|
|
10190
|
+
return cf[e] || {
|
|
10191
10191
|
prefix: null,
|
|
10192
10192
|
iconName: null
|
|
10193
10193
|
};
|
|
10194
10194
|
}
|
|
10195
10195
|
function mw(e) {
|
|
10196
|
-
var t =
|
|
10196
|
+
var t = df[e], r = ls("fas", e);
|
|
10197
10197
|
return t || (r ? {
|
|
10198
10198
|
prefix: "fas",
|
|
10199
10199
|
iconName: r
|
|
@@ -10205,7 +10205,7 @@ function mw(e) {
|
|
|
10205
10205
|
function Wt() {
|
|
10206
10206
|
return ss;
|
|
10207
10207
|
}
|
|
10208
|
-
var
|
|
10208
|
+
var mf = function() {
|
|
10209
10209
|
return {
|
|
10210
10210
|
prefix: null,
|
|
10211
10211
|
iconName: null,
|
|
@@ -10213,10 +10213,10 @@ var pf = function() {
|
|
|
10213
10213
|
};
|
|
10214
10214
|
};
|
|
10215
10215
|
function hw(e) {
|
|
10216
|
-
var t = Ie, r =
|
|
10216
|
+
var t = Ie, r = sf.reduce(function(n, o) {
|
|
10217
10217
|
return n[o] = "".concat(J.cssPrefix, "-").concat(o), n;
|
|
10218
10218
|
}, {});
|
|
10219
|
-
return
|
|
10219
|
+
return Gd.forEach(function(n) {
|
|
10220
10220
|
(e.includes(r[n]) || e.some(function(o) {
|
|
10221
10221
|
return dw[n].includes(o);
|
|
10222
10222
|
})) && (t = n);
|
|
@@ -10244,14 +10244,14 @@ function Tl(e) {
|
|
|
10244
10244
|
return n.indexOf(t) === r;
|
|
10245
10245
|
});
|
|
10246
10246
|
}
|
|
10247
|
-
var _l =
|
|
10247
|
+
var _l = Ud.concat(Wd);
|
|
10248
10248
|
function Go(e) {
|
|
10249
10249
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.skipLookups, n = r === void 0 ? !1 : r, o = null, a = Tl(e.filter(function(d) {
|
|
10250
10250
|
return _l.includes(d);
|
|
10251
10251
|
})), i = Tl(e.filter(function(d) {
|
|
10252
10252
|
return !_l.includes(d);
|
|
10253
10253
|
})), s = a.filter(function(d) {
|
|
10254
|
-
return o = d, !
|
|
10254
|
+
return o = d, !Pd.includes(d);
|
|
10255
10255
|
}), l = zo(s, 1), u = l[0], c = u === void 0 ? null : u, f = hw(a), g = _(_({}, vw(i)), {}, {
|
|
10256
10256
|
prefix: Bo(c, {
|
|
10257
10257
|
family: f
|
|
@@ -10273,13 +10273,13 @@ function bw(e, t, r) {
|
|
|
10273
10273
|
prefix: n,
|
|
10274
10274
|
iconName: o
|
|
10275
10275
|
};
|
|
10276
|
-
var a = t === "fa" ?
|
|
10276
|
+
var a = t === "fa" ? pf(o) : {}, i = sr(n, o);
|
|
10277
10277
|
return o = a.iconName || i || o, n = a.prefix || n, n === "far" && !fn.far && fn.fas && !J.autoFetchSvg && (n = "fas"), {
|
|
10278
10278
|
prefix: n,
|
|
10279
10279
|
iconName: o
|
|
10280
10280
|
};
|
|
10281
10281
|
}
|
|
10282
|
-
var yw =
|
|
10282
|
+
var yw = Gd.filter(function(e) {
|
|
10283
10283
|
return e !== Ie || e !== $n;
|
|
10284
10284
|
}), xw = Object.keys(za).filter(function(e) {
|
|
10285
10285
|
return e !== Ie;
|
|
@@ -10312,7 +10312,7 @@ var Sw = /* @__PURE__ */ (function() {
|
|
|
10312
10312
|
Object.keys(i).forEach(function(s) {
|
|
10313
10313
|
r.definitions[s] = _(_({}, r.definitions[s] || {}), i[s]), Ya(s, i[s]);
|
|
10314
10314
|
var l = os[Ie][s];
|
|
10315
|
-
l && Ya(l, i[s]),
|
|
10315
|
+
l && Ya(l, i[s]), gf();
|
|
10316
10316
|
});
|
|
10317
10317
|
}
|
|
10318
10318
|
}, {
|
|
@@ -10378,9 +10378,9 @@ function qa(e) {
|
|
|
10378
10378
|
e.prefix === "fa" && (e.prefix = "fas");
|
|
10379
10379
|
var t = e.iconName, r = e.prefix || Wt();
|
|
10380
10380
|
if (t)
|
|
10381
|
-
return t = sr(r, t) || t, Il(
|
|
10381
|
+
return t = sr(r, t) || t, Il(hf.definitions, r, t) || Il(Qe.styles, r, t);
|
|
10382
10382
|
}
|
|
10383
|
-
var
|
|
10383
|
+
var hf = new Sw(), Ew = function() {
|
|
10384
10384
|
J.autoReplaceSvg = !1, J.observeMutations = !1, fr("noAuto");
|
|
10385
10385
|
}, Pw = {
|
|
10386
10386
|
i2svg: function() {
|
|
@@ -10433,7 +10433,7 @@ var mf = new Sw(), Ew = function() {
|
|
|
10433
10433
|
config: J,
|
|
10434
10434
|
dom: Pw,
|
|
10435
10435
|
parse: Rw,
|
|
10436
|
-
library:
|
|
10436
|
+
library: hf,
|
|
10437
10437
|
findIconDefinition: qa,
|
|
10438
10438
|
toHtml: An
|
|
10439
10439
|
}, $w = function() {
|
|
@@ -10607,13 +10607,13 @@ var Fw = {
|
|
|
10607
10607
|
height: 512
|
|
10608
10608
|
};
|
|
10609
10609
|
function Tw(e, t) {
|
|
10610
|
-
!
|
|
10610
|
+
!Jd && !J.showMissingIcons && e && console.error('Icon with name "'.concat(e, '" and prefix "').concat(t, '" is missing.'));
|
|
10611
10611
|
}
|
|
10612
10612
|
function Ja(e, t) {
|
|
10613
10613
|
var r = t;
|
|
10614
10614
|
return t === "fa" && J.styleDefault !== null && (t = Wt()), new Promise(function(n, o) {
|
|
10615
10615
|
if (r === "fa") {
|
|
10616
|
-
var a =
|
|
10616
|
+
var a = pf(e) || {};
|
|
10617
10617
|
e = a.iconName || e, t = a.prefix || t;
|
|
10618
10618
|
}
|
|
10619
10619
|
if (e && t && pa[t] && pa[t][e]) {
|
|
@@ -10631,13 +10631,13 @@ var Dl = function() {
|
|
|
10631
10631
|
measure: Dl
|
|
10632
10632
|
}, Kr = 'FA "7.2.0"', _w = function(t) {
|
|
10633
10633
|
return Qa.mark("".concat(Kr, " ").concat(t, " begins")), function() {
|
|
10634
|
-
return
|
|
10634
|
+
return vf(t);
|
|
10635
10635
|
};
|
|
10636
|
-
},
|
|
10636
|
+
}, vf = function(t) {
|
|
10637
10637
|
Qa.mark("".concat(Kr, " ").concat(t, " ends")), Qa.measure("".concat(Kr, " ").concat(t), "".concat(Kr, " ").concat(t, " begins"), "".concat(Kr, " ").concat(t, " ends"));
|
|
10638
10638
|
}, cs = {
|
|
10639
10639
|
begin: _w,
|
|
10640
|
-
end:
|
|
10640
|
+
end: vf
|
|
10641
10641
|
}, Jn = function() {
|
|
10642
10642
|
};
|
|
10643
10643
|
function Ll(e) {
|
|
@@ -10663,7 +10663,7 @@ function Lw(e) {
|
|
|
10663
10663
|
function Vw(e) {
|
|
10664
10664
|
return ke.createElement(e);
|
|
10665
10665
|
}
|
|
10666
|
-
function
|
|
10666
|
+
function bf(e) {
|
|
10667
10667
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.ceFn, n = r === void 0 ? e.tag === "svg" ? Lw : Vw : r;
|
|
10668
10668
|
if (typeof e == "string")
|
|
10669
10669
|
return ke.createTextNode(e);
|
|
@@ -10673,7 +10673,7 @@ function vf(e) {
|
|
|
10673
10673
|
});
|
|
10674
10674
|
var a = e.children || [];
|
|
10675
10675
|
return a.forEach(function(i) {
|
|
10676
|
-
o.appendChild(
|
|
10676
|
+
o.appendChild(bf(i, {
|
|
10677
10677
|
ceFn: n
|
|
10678
10678
|
}));
|
|
10679
10679
|
}), o;
|
|
@@ -10687,7 +10687,7 @@ var Qn = {
|
|
|
10687
10687
|
var r = t[0];
|
|
10688
10688
|
if (r.parentNode)
|
|
10689
10689
|
if (t[1].forEach(function(o) {
|
|
10690
|
-
r.parentNode.insertBefore(
|
|
10690
|
+
r.parentNode.insertBefore(bf(o), r);
|
|
10691
10691
|
}), r.getAttribute(dr) === null && J.keepOriginalSource) {
|
|
10692
10692
|
var n = ke.createComment(zw(r));
|
|
10693
10693
|
r.parentNode.replaceChild(n, r);
|
|
@@ -10718,7 +10718,7 @@ var Qn = {
|
|
|
10718
10718
|
function Vl(e) {
|
|
10719
10719
|
e();
|
|
10720
10720
|
}
|
|
10721
|
-
function
|
|
10721
|
+
function yf(e, t) {
|
|
10722
10722
|
var r = typeof t == "function" ? t : Jn;
|
|
10723
10723
|
if (e.length === 0)
|
|
10724
10724
|
r();
|
|
@@ -10731,7 +10731,7 @@ function bf(e, t) {
|
|
|
10731
10731
|
}
|
|
10732
10732
|
}
|
|
10733
10733
|
var ds = !1;
|
|
10734
|
-
function
|
|
10734
|
+
function xf() {
|
|
10735
10735
|
ds = !0;
|
|
10736
10736
|
}
|
|
10737
10737
|
function Za() {
|
|
@@ -10772,7 +10772,7 @@ function Bw(e) {
|
|
|
10772
10772
|
}
|
|
10773
10773
|
function Gw(e) {
|
|
10774
10774
|
var t = e.getAttribute("data-prefix"), r = e.getAttribute("data-icon"), n = e.innerText !== void 0 ? e.innerText.trim() : "", o = Go(as(e));
|
|
10775
|
-
return o.prefix || (o.prefix = Wt()), t && r && (o.prefix = t, o.iconName = r), o.iconName && o.prefix || (o.prefix && n.length > 0 && (o.iconName = pw(o.prefix, e.innerText) || ls(o.prefix,
|
|
10775
|
+
return o.prefix || (o.prefix = Wt()), t && r && (o.prefix = t, o.iconName = r), o.iconName && o.prefix || (o.prefix && n.length > 0 && (o.iconName = pw(o.prefix, e.innerText) || ls(o.prefix, af(e.innerText))), !o.iconName && J.autoFetchSvg && e.firstChild && e.firstChild.nodeType === Node.TEXT_NODE && (o.iconName = e.firstChild.data)), o;
|
|
10776
10776
|
}
|
|
10777
10777
|
function Ww(e) {
|
|
10778
10778
|
var t = Dr(e.attributes).reduce(function(r, n) {
|
|
@@ -10822,14 +10822,14 @@ function Hl(e) {
|
|
|
10822
10822
|
}, s);
|
|
10823
10823
|
}
|
|
10824
10824
|
var Yw = Qe.styles;
|
|
10825
|
-
function
|
|
10825
|
+
function wf(e) {
|
|
10826
10826
|
var t = J.autoReplaceSvg === "nest" ? Hl(e, {
|
|
10827
10827
|
styleParser: !1
|
|
10828
10828
|
}) : Hl(e);
|
|
10829
|
-
return ~t.extra.classes.indexOf(
|
|
10829
|
+
return ~t.extra.classes.indexOf(Zd) ? Ut("generateLayersText", e, t) : Ut("generateSvgReplacementMutation", e, t);
|
|
10830
10830
|
}
|
|
10831
10831
|
function Kw() {
|
|
10832
|
-
return [].concat(tt(
|
|
10832
|
+
return [].concat(tt(Wd), tt(Ud));
|
|
10833
10833
|
}
|
|
10834
10834
|
function Bl(e) {
|
|
10835
10835
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
@@ -10838,9 +10838,9 @@ function Bl(e) {
|
|
|
10838
10838
|
return r.add("".concat($l, "-").concat(f));
|
|
10839
10839
|
}, o = function(f) {
|
|
10840
10840
|
return r.remove("".concat($l, "-").concat(f));
|
|
10841
|
-
}, a = J.autoFetchSvg ? Kw() :
|
|
10841
|
+
}, a = J.autoFetchSvg ? Kw() : Pd.concat(Object.keys(Yw));
|
|
10842
10842
|
a.includes("fa") || a.push("fa");
|
|
10843
|
-
var i = [".".concat(
|
|
10843
|
+
var i = [".".concat(Zd, ":not([").concat(dr, "])")].concat(a.map(function(c) {
|
|
10844
10844
|
return ".".concat(c, ":not([").concat(dr, "])");
|
|
10845
10845
|
})).join(", ");
|
|
10846
10846
|
if (i.length === 0)
|
|
@@ -10856,16 +10856,16 @@ function Bl(e) {
|
|
|
10856
10856
|
return Promise.resolve();
|
|
10857
10857
|
var l = cs.begin("onTree"), u = s.reduce(function(c, f) {
|
|
10858
10858
|
try {
|
|
10859
|
-
var g =
|
|
10859
|
+
var g = wf(f);
|
|
10860
10860
|
g && c.push(g);
|
|
10861
10861
|
} catch (d) {
|
|
10862
|
-
|
|
10862
|
+
Jd || d.name === "MissingIcon" && console.error(d);
|
|
10863
10863
|
}
|
|
10864
10864
|
return c;
|
|
10865
10865
|
}, []);
|
|
10866
10866
|
return new Promise(function(c, f) {
|
|
10867
10867
|
Promise.all(u).then(function(g) {
|
|
10868
|
-
|
|
10868
|
+
yf(g, function() {
|
|
10869
10869
|
n("active"), n("complete"), o("pending"), typeof t == "function" && t(), l(), c();
|
|
10870
10870
|
});
|
|
10871
10871
|
}).catch(function(g) {
|
|
@@ -10875,8 +10875,8 @@ function Bl(e) {
|
|
|
10875
10875
|
}
|
|
10876
10876
|
function qw(e) {
|
|
10877
10877
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
10878
|
-
|
|
10879
|
-
r &&
|
|
10878
|
+
wf(e).then(function(r) {
|
|
10879
|
+
r && yf([r], t);
|
|
10880
10880
|
});
|
|
10881
10881
|
}
|
|
10882
10882
|
function Xw(e) {
|
|
@@ -11060,7 +11060,7 @@ var Jw = function(t) {
|
|
|
11060
11060
|
provides: function(t) {
|
|
11061
11061
|
t.generateLayersText = function(r, n) {
|
|
11062
11062
|
var o = n.transform, a = n.extra, i = null, s = null;
|
|
11063
|
-
if (
|
|
11063
|
+
if (Cd) {
|
|
11064
11064
|
var l = parseInt(getComputedStyle(r).fontSize, 10), u = r.getBoundingClientRect();
|
|
11065
11065
|
i = u.width / l, s = u.height / l;
|
|
11066
11066
|
}
|
|
@@ -11074,7 +11074,7 @@ var Jw = function(t) {
|
|
|
11074
11074
|
})]);
|
|
11075
11075
|
};
|
|
11076
11076
|
}
|
|
11077
|
-
},
|
|
11077
|
+
}, Sf = new RegExp('"', "ug"), Gl = [1105920, 1112319], Wl = _(_(_(_({}, {
|
|
11078
11078
|
FontAwesome: {
|
|
11079
11079
|
normal: "fas",
|
|
11080
11080
|
400: "fas"
|
|
@@ -11086,11 +11086,11 @@ var Jw = function(t) {
|
|
|
11086
11086
|
return e[t] = r[900] || tt(Object.entries(r))[0][1], e;
|
|
11087
11087
|
}, {});
|
|
11088
11088
|
function n1(e) {
|
|
11089
|
-
var t = e.replace(
|
|
11090
|
-
return
|
|
11089
|
+
var t = e.replace(Sf, "");
|
|
11090
|
+
return af(tt(t)[0] || "");
|
|
11091
11091
|
}
|
|
11092
11092
|
function o1(e) {
|
|
11093
|
-
var t = e.getPropertyValue("font-feature-settings").includes("ss01"), r = e.getPropertyValue("content"), n = r.replace(
|
|
11093
|
+
var t = e.getPropertyValue("font-feature-settings").includes("ss01"), r = e.getPropertyValue("content"), n = r.replace(Sf, ""), o = n.codePointAt(0), a = o >= Gl[0] && o <= Gl[1], i = n.length === 2 ? n[0] === n[1] : !1;
|
|
11094
11094
|
return a || i || t;
|
|
11095
11095
|
}
|
|
11096
11096
|
function a1(e, t) {
|
|
@@ -11120,7 +11120,7 @@ function Ul(e, t) {
|
|
|
11120
11120
|
var N = us(_(_({}, k), {}, {
|
|
11121
11121
|
icons: {
|
|
11122
11122
|
main: P,
|
|
11123
|
-
mask:
|
|
11123
|
+
mask: mf()
|
|
11124
11124
|
},
|
|
11125
11125
|
prefix: d,
|
|
11126
11126
|
iconName: x,
|
|
@@ -11145,7 +11145,7 @@ function s1(e) {
|
|
|
11145
11145
|
return e.parentNode !== document.head && !~Wx.indexOf(e.tagName.toUpperCase()) && !e.getAttribute(Ba) && (!e.parentNode || e.parentNode.tagName !== "svg");
|
|
11146
11146
|
}
|
|
11147
11147
|
var l1 = function(t) {
|
|
11148
|
-
return !!t &&
|
|
11148
|
+
return !!t && Xd.some(function(r) {
|
|
11149
11149
|
return t.includes(r);
|
|
11150
11150
|
});
|
|
11151
11151
|
}, u1 = function(t) {
|
|
@@ -11163,7 +11163,7 @@ var l1 = function(t) {
|
|
|
11163
11163
|
for (o.s(); !(a = o.n()).done; ) {
|
|
11164
11164
|
var i = a.value;
|
|
11165
11165
|
if (l1(i)) {
|
|
11166
|
-
var s =
|
|
11166
|
+
var s = Xd.reduce(function(l, u) {
|
|
11167
11167
|
return l.replace(u, "");
|
|
11168
11168
|
}, i);
|
|
11169
11169
|
s !== "" && s !== "*" && r.add(s);
|
|
@@ -11229,7 +11229,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
|
|
|
11229
11229
|
}
|
|
11230
11230
|
return new Promise(function(m, v) {
|
|
11231
11231
|
var b = Dr(r).filter(s1).map(i1), x = cs.begin("searchPseudoElements");
|
|
11232
|
-
|
|
11232
|
+
xf(), Promise.all(b).then(function() {
|
|
11233
11233
|
x(), Za(), m();
|
|
11234
11234
|
}).catch(function() {
|
|
11235
11235
|
x(), Za(), v();
|
|
@@ -11256,7 +11256,7 @@ var c1 = {
|
|
|
11256
11256
|
return {
|
|
11257
11257
|
dom: {
|
|
11258
11258
|
unwatch: function() {
|
|
11259
|
-
|
|
11259
|
+
xf(), Kl = !0;
|
|
11260
11260
|
}
|
|
11261
11261
|
}
|
|
11262
11262
|
};
|
|
@@ -11384,7 +11384,7 @@ var p1 = {
|
|
|
11384
11384
|
parseNodeAttributes: function(r, n) {
|
|
11385
11385
|
var o = n.getAttribute("data-fa-mask"), a = o ? Go(o.split(" ").map(function(i) {
|
|
11386
11386
|
return i.trim();
|
|
11387
|
-
})) :
|
|
11387
|
+
})) : mf();
|
|
11388
11388
|
return a.prefix || (a.prefix = Wt()), r.mask = a, r.maskId = n.getAttribute("data-fa-mask-id"), r;
|
|
11389
11389
|
}
|
|
11390
11390
|
};
|
|
@@ -11533,7 +11533,7 @@ Ue.noAuto;
|
|
|
11533
11533
|
var gn = Ue.config;
|
|
11534
11534
|
Ue.library;
|
|
11535
11535
|
Ue.dom;
|
|
11536
|
-
var
|
|
11536
|
+
var kf = Ue.parse;
|
|
11537
11537
|
Ue.findIconDefinition;
|
|
11538
11538
|
Ue.toHtml;
|
|
11539
11539
|
var b1 = Ue.icon;
|
|
@@ -11543,7 +11543,7 @@ Ue.counter;
|
|
|
11543
11543
|
function y1(e) {
|
|
11544
11544
|
return e = e - 0, e === e;
|
|
11545
11545
|
}
|
|
11546
|
-
function
|
|
11546
|
+
function Cf(e) {
|
|
11547
11547
|
return y1(e) ? e : (e = e.replace(/[_-]+(.)?/g, (t, r) => r ? r.toUpperCase() : ""), e.charAt(0).toLowerCase() + e.slice(1));
|
|
11548
11548
|
}
|
|
11549
11549
|
function x1(e) {
|
|
@@ -11563,7 +11563,7 @@ function S1(e) {
|
|
|
11563
11563
|
if (s > 0) {
|
|
11564
11564
|
const l = i.slice(0, s).trim(), u = i.slice(s + 1).trim();
|
|
11565
11565
|
if (l && u) {
|
|
11566
|
-
const c =
|
|
11566
|
+
const c = Cf(l);
|
|
11567
11567
|
t[c.startsWith("webkit") ? x1(c) : c] = u;
|
|
11568
11568
|
}
|
|
11569
11569
|
}
|
|
@@ -11576,10 +11576,10 @@ function S1(e) {
|
|
|
11576
11576
|
}
|
|
11577
11577
|
return vr.set(e, t), t;
|
|
11578
11578
|
}
|
|
11579
|
-
function
|
|
11579
|
+
function Ef(e, t, r = {}) {
|
|
11580
11580
|
if (typeof t == "string")
|
|
11581
11581
|
return t;
|
|
11582
|
-
const n = (t.children || []).map((c) =>
|
|
11582
|
+
const n = (t.children || []).map((c) => Ef(e, c)), o = t.attributes || {}, a = {};
|
|
11583
11583
|
for (const [c, f] of Object.entries(o))
|
|
11584
11584
|
switch (!0) {
|
|
11585
11585
|
case c === "class": {
|
|
@@ -11596,7 +11596,7 @@ function Cf(e, t, r = {}) {
|
|
|
11596
11596
|
break;
|
|
11597
11597
|
}
|
|
11598
11598
|
default:
|
|
11599
|
-
a[
|
|
11599
|
+
a[Cf(c)] = f;
|
|
11600
11600
|
}
|
|
11601
11601
|
const {
|
|
11602
11602
|
style: i,
|
|
@@ -11606,7 +11606,7 @@ function Cf(e, t, r = {}) {
|
|
|
11606
11606
|
} = r;
|
|
11607
11607
|
return i && (a.style = a.style ? { ...a.style, ...i } : i), s && (a.role = s), l && (a["aria-label"] = l, a["aria-hidden"] = "false"), e(t.tag, { ...a, ...u }, ...n);
|
|
11608
11608
|
}
|
|
11609
|
-
var k1 =
|
|
11609
|
+
var k1 = Ef.bind(null, $.createElement), Jl = (e, t) => {
|
|
11610
11610
|
const r = we();
|
|
11611
11611
|
return e || (t ? r : void 0);
|
|
11612
11612
|
}, C1 = class {
|
|
@@ -11732,12 +11732,12 @@ function O1(e) {
|
|
|
11732
11732
|
var I1 = (e) => typeof e == "object" && "icon" in e && !!e.icon;
|
|
11733
11733
|
function Ql(e) {
|
|
11734
11734
|
if (e)
|
|
11735
|
-
return I1(e) ? e :
|
|
11735
|
+
return I1(e) ? e : kf.icon(e);
|
|
11736
11736
|
}
|
|
11737
11737
|
function F1(e) {
|
|
11738
11738
|
return Object.keys(e);
|
|
11739
11739
|
}
|
|
11740
|
-
var Zl = new C1("FontAwesomeIcon"),
|
|
11740
|
+
var Zl = new C1("FontAwesomeIcon"), Pf = {
|
|
11741
11741
|
border: !1,
|
|
11742
11742
|
className: "",
|
|
11743
11743
|
mask: void 0,
|
|
@@ -11766,8 +11766,8 @@ var Zl = new C1("FontAwesomeIcon"), Ef = {
|
|
|
11766
11766
|
transform: void 0,
|
|
11767
11767
|
swapOpacity: !1,
|
|
11768
11768
|
widthAuto: !1
|
|
11769
|
-
}, T1 = new Set(Object.keys(
|
|
11770
|
-
const r = { ...
|
|
11769
|
+
}, T1 = new Set(Object.keys(Pf)), Ce = $.forwardRef((e, t) => {
|
|
11770
|
+
const r = { ...Pf, ...e }, {
|
|
11771
11771
|
icon: n,
|
|
11772
11772
|
mask: o,
|
|
11773
11773
|
symbol: a,
|
|
@@ -11778,7 +11778,7 @@ var Zl = new C1("FontAwesomeIcon"), Ef = {
|
|
|
11778
11778
|
} = r, c = Jl(l, !!o), f = Jl(s, !!i), g = Ql(n);
|
|
11779
11779
|
if (!g)
|
|
11780
11780
|
return Zl.error("Icon lookup is undefined", n), null;
|
|
11781
|
-
const d = O1(r), p = typeof u == "string" ?
|
|
11781
|
+
const d = O1(r), p = typeof u == "string" ? kf.transform(u) : u, m = Ql(o), v = b1(g, {
|
|
11782
11782
|
...d.length > 0 && { classes: d },
|
|
11783
11783
|
...p && { transform: p },
|
|
11784
11784
|
...m && { mask: m },
|
|
@@ -11815,7 +11815,7 @@ var _1 = {
|
|
|
11815
11815
|
prefix: "fas",
|
|
11816
11816
|
iconName: "right-from-bracket",
|
|
11817
11817
|
icon: [512, 512, ["sign-out-alt"], "f2f5", "M505 273c9.4-9.4 9.4-24.6 0-33.9L361 95c-6.9-6.9-17.2-8.9-26.2-5.2S320 102.3 320 112l0 80-112 0c-26.5 0-48 21.5-48 48l0 32c0 26.5 21.5 48 48 48l112 0 0 80c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2L505 273zM160 96c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 32C43 32 0 75 0 128L0 384c0 53 43 96 96 96l64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l64 0z"]
|
|
11818
|
-
},
|
|
11818
|
+
}, Rf = {
|
|
11819
11819
|
prefix: "fas",
|
|
11820
11820
|
iconName: "check",
|
|
11821
11821
|
icon: [448, 512, [10003, 10004], "f00c", "M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]
|
|
@@ -11831,7 +11831,7 @@ var _1 = {
|
|
|
11831
11831
|
prefix: "fas",
|
|
11832
11832
|
iconName: "moon",
|
|
11833
11833
|
icon: [512, 512, [127769, 9214], "f186", "M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z"]
|
|
11834
|
-
},
|
|
11834
|
+
}, $f = {
|
|
11835
11835
|
prefix: "fas",
|
|
11836
11836
|
iconName: "chevron-down",
|
|
11837
11837
|
icon: [448, 512, [], "f078", "M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]
|
|
@@ -11938,7 +11938,7 @@ const q1 = ce(
|
|
|
11938
11938
|
return de(() => {
|
|
11939
11939
|
o && l.current && l.current.setAttribute("aria-checked", "mixed");
|
|
11940
11940
|
}, [o, a.checked]), /* @__PURE__ */ h.jsx(
|
|
11941
|
-
|
|
11941
|
+
Ip,
|
|
11942
11942
|
{
|
|
11943
11943
|
ref: u,
|
|
11944
11944
|
...a,
|
|
@@ -11958,7 +11958,7 @@ const q1 = ce(
|
|
|
11958
11958
|
children: ({ checked: c }) => /* @__PURE__ */ h.jsx(
|
|
11959
11959
|
Ce,
|
|
11960
11960
|
{
|
|
11961
|
-
icon: o ? _1 :
|
|
11961
|
+
icon: o ? _1 : Rf,
|
|
11962
11962
|
className: F(
|
|
11963
11963
|
"pointer-events-none transition-opacity duration-200",
|
|
11964
11964
|
c || o ? "opacity-100" : "opacity-0",
|
|
@@ -12044,7 +12044,7 @@ const J1 = ce(
|
|
|
12044
12044
|
children: s || /* @__PURE__ */ h.jsx(
|
|
12045
12045
|
Ce,
|
|
12046
12046
|
{
|
|
12047
|
-
icon:
|
|
12047
|
+
icon: $f,
|
|
12048
12048
|
className: "h-3.5 w-3.5 opacity-60"
|
|
12049
12049
|
}
|
|
12050
12050
|
)
|
|
@@ -12154,7 +12154,7 @@ const J1 = ce(
|
|
|
12154
12154
|
}
|
|
12155
12155
|
),
|
|
12156
12156
|
/* @__PURE__ */ h.jsx(
|
|
12157
|
-
|
|
12157
|
+
Mh,
|
|
12158
12158
|
{
|
|
12159
12159
|
ref: f,
|
|
12160
12160
|
type: t,
|
|
@@ -12310,7 +12310,7 @@ const rS = ce(
|
|
|
12310
12310
|
return /* @__PURE__ */ h.jsxs(jo, { className: F("flex flex-col gap-1.5", s), children: [
|
|
12311
12311
|
l && /* @__PURE__ */ h.jsx(Ir, { className: "block text-sm font-medium text-inherit text-left", children: l }),
|
|
12312
12312
|
/* @__PURE__ */ h.jsx(
|
|
12313
|
-
|
|
12313
|
+
rv,
|
|
12314
12314
|
{
|
|
12315
12315
|
value: t ?? void 0,
|
|
12316
12316
|
onChange: r,
|
|
@@ -12334,7 +12334,7 @@ const rS = ce(
|
|
|
12334
12334
|
/* @__PURE__ */ h.jsx("span", { className: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3", children: /* @__PURE__ */ h.jsx(
|
|
12335
12335
|
Ce,
|
|
12336
12336
|
{
|
|
12337
|
-
icon:
|
|
12337
|
+
icon: $f,
|
|
12338
12338
|
className: "h-3.5 w-3.5 text-gray-400 dark:text-gray-500",
|
|
12339
12339
|
"aria-hidden": "true"
|
|
12340
12340
|
}
|
|
@@ -12372,7 +12372,7 @@ const rS = ce(
|
|
|
12372
12372
|
),
|
|
12373
12373
|
children: [
|
|
12374
12374
|
/* @__PURE__ */ h.jsx("span", { className: "block truncate font-normal group-data-selected:font-semibold", children: c.label }),
|
|
12375
|
-
/* @__PURE__ */ h.jsx("span", { className: "absolute inset-y-0 right-0 hidden items-center pr-4 text-primary-600 dark:text-primary-400 group-data-selected:flex", children: /* @__PURE__ */ h.jsx(Ce, { icon:
|
|
12375
|
+
/* @__PURE__ */ h.jsx("span", { className: "absolute inset-y-0 right-0 hidden items-center pr-4 text-primary-600 dark:text-primary-400 group-data-selected:flex", children: /* @__PURE__ */ h.jsx(Ce, { icon: Rf, className: "h-3.5 w-3.5" }) })
|
|
12376
12376
|
]
|
|
12377
12377
|
},
|
|
12378
12378
|
c.value
|
|
@@ -12765,7 +12765,7 @@ function ou(e, t) {
|
|
|
12765
12765
|
return e(t);
|
|
12766
12766
|
e != null && (e.current = t);
|
|
12767
12767
|
}
|
|
12768
|
-
function
|
|
12768
|
+
function Nf(...e) {
|
|
12769
12769
|
return (t) => {
|
|
12770
12770
|
let r = !1;
|
|
12771
12771
|
const n = e.map((o) => {
|
|
@@ -12782,9 +12782,9 @@ function $f(...e) {
|
|
|
12782
12782
|
};
|
|
12783
12783
|
}
|
|
12784
12784
|
function pr(...e) {
|
|
12785
|
-
return w.useCallback(
|
|
12785
|
+
return w.useCallback(Nf(...e), e);
|
|
12786
12786
|
}
|
|
12787
|
-
function
|
|
12787
|
+
function Af(e, t = []) {
|
|
12788
12788
|
let r = [];
|
|
12789
12789
|
function n(a, i) {
|
|
12790
12790
|
const s = w.createContext(i), l = r.length;
|
|
@@ -12850,20 +12850,20 @@ function cS(e) {
|
|
|
12850
12850
|
const { children: o, ...a } = r;
|
|
12851
12851
|
if (w.isValidElement(o)) {
|
|
12852
12852
|
const i = pS(o), s = gS(a, o.props);
|
|
12853
|
-
return o.type !== w.Fragment && (s.ref = n ?
|
|
12853
|
+
return o.type !== w.Fragment && (s.ref = n ? Nf(n, i) : i), w.cloneElement(o, s);
|
|
12854
12854
|
}
|
|
12855
12855
|
return w.Children.count(o) > 1 ? w.Children.only(null) : null;
|
|
12856
12856
|
});
|
|
12857
12857
|
return t.displayName = `${e}.SlotClone`, t;
|
|
12858
12858
|
}
|
|
12859
|
-
var
|
|
12859
|
+
var Of = /* @__PURE__ */ Symbol("radix.slottable");
|
|
12860
12860
|
// @__NO_SIDE_EFFECTS__
|
|
12861
12861
|
function dS(e) {
|
|
12862
12862
|
const t = ({ children: r }) => /* @__PURE__ */ h.jsx(h.Fragment, { children: r });
|
|
12863
|
-
return t.displayName = `${e}.Slottable`, t.__radixId =
|
|
12863
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = Of, t;
|
|
12864
12864
|
}
|
|
12865
12865
|
function fS(e) {
|
|
12866
|
-
return w.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
12866
|
+
return w.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Of;
|
|
12867
12867
|
}
|
|
12868
12868
|
function gS(e, t) {
|
|
12869
12869
|
const r = { ...t };
|
|
@@ -12923,11 +12923,11 @@ function vS(e, t = globalThis?.document) {
|
|
|
12923
12923
|
return t.addEventListener("keydown", n, { capture: !0 }), () => t.removeEventListener("keydown", n, { capture: !0 });
|
|
12924
12924
|
}, [r, t]);
|
|
12925
12925
|
}
|
|
12926
|
-
var bS = "DismissableLayer", ti = "dismissableLayer.update", yS = "dismissableLayer.pointerDownOutside", xS = "dismissableLayer.focusOutside", au,
|
|
12926
|
+
var bS = "DismissableLayer", ti = "dismissableLayer.update", yS = "dismissableLayer.pointerDownOutside", xS = "dismissableLayer.focusOutside", au, If = w.createContext({
|
|
12927
12927
|
layers: /* @__PURE__ */ new Set(),
|
|
12928
12928
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
12929
12929
|
branches: /* @__PURE__ */ new Set()
|
|
12930
|
-
}),
|
|
12930
|
+
}), Ff = w.forwardRef(
|
|
12931
12931
|
(e, t) => {
|
|
12932
12932
|
const {
|
|
12933
12933
|
disableOutsidePointerEvents: r = !1,
|
|
@@ -12937,7 +12937,7 @@ var bS = "DismissableLayer", ti = "dismissableLayer.update", yS = "dismissableLa
|
|
|
12937
12937
|
onInteractOutside: i,
|
|
12938
12938
|
onDismiss: s,
|
|
12939
12939
|
...l
|
|
12940
|
-
} = e, u = w.useContext(
|
|
12940
|
+
} = e, u = w.useContext(If), [c, f] = w.useState(null), g = c?.ownerDocument ?? globalThis?.document, [, d] = w.useState({}), p = pr(t, (N) => f(N)), m = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = m.indexOf(v), x = c ? m.indexOf(c) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, k = x >= b, S = kS((N) => {
|
|
12941
12941
|
const O = N.target, H = [...u.branches].some((A) => A.contains(O));
|
|
12942
12942
|
!k || H || (o?.(N), i?.(N), N.defaultPrevented || s?.());
|
|
12943
12943
|
}, g), P = CS((N) => {
|
|
@@ -12975,9 +12975,9 @@ var bS = "DismissableLayer", ti = "dismissableLayer.update", yS = "dismissableLa
|
|
|
12975
12975
|
);
|
|
12976
12976
|
}
|
|
12977
12977
|
);
|
|
12978
|
-
|
|
12978
|
+
Ff.displayName = bS;
|
|
12979
12979
|
var wS = "DismissableLayerBranch", SS = w.forwardRef((e, t) => {
|
|
12980
|
-
const r = w.useContext(
|
|
12980
|
+
const r = w.useContext(If), n = w.useRef(null), o = pr(t, n);
|
|
12981
12981
|
return w.useEffect(() => {
|
|
12982
12982
|
const a = n.current;
|
|
12983
12983
|
if (a)
|
|
@@ -12994,7 +12994,7 @@ function kS(e, t = globalThis?.document) {
|
|
|
12994
12994
|
const a = (s) => {
|
|
12995
12995
|
if (s.target && !n.current) {
|
|
12996
12996
|
let l = function() {
|
|
12997
|
-
|
|
12997
|
+
Tf(
|
|
12998
12998
|
yS,
|
|
12999
12999
|
r,
|
|
13000
13000
|
u,
|
|
@@ -13021,7 +13021,7 @@ function CS(e, t = globalThis?.document) {
|
|
|
13021
13021
|
const r = Uo(e), n = w.useRef(!1);
|
|
13022
13022
|
return w.useEffect(() => {
|
|
13023
13023
|
const o = (a) => {
|
|
13024
|
-
a.target && !n.current &&
|
|
13024
|
+
a.target && !n.current && Tf(xS, r, { originalEvent: a }, {
|
|
13025
13025
|
discrete: !1
|
|
13026
13026
|
});
|
|
13027
13027
|
};
|
|
@@ -13035,7 +13035,7 @@ function iu() {
|
|
|
13035
13035
|
const e = new CustomEvent(ti);
|
|
13036
13036
|
document.dispatchEvent(e);
|
|
13037
13037
|
}
|
|
13038
|
-
function
|
|
13038
|
+
function Tf(e, t, r, { discrete: n }) {
|
|
13039
13039
|
const o = r.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
|
|
13040
13040
|
t && o.addEventListener(e, t, { once: !0 }), n ? hS(o, a) : o.dispatchEvent(a);
|
|
13041
13041
|
}
|
|
@@ -13048,7 +13048,7 @@ function RS(e) {
|
|
|
13048
13048
|
r((n) => n ?? String(PS++));
|
|
13049
13049
|
}, [e]), t ? `radix-${t}` : "";
|
|
13050
13050
|
}
|
|
13051
|
-
var $S = "Arrow",
|
|
13051
|
+
var $S = "Arrow", _f = w.forwardRef((e, t) => {
|
|
13052
13052
|
const { children: r, width: n = 10, height: o = 5, ...a } = e;
|
|
13053
13053
|
return /* @__PURE__ */ h.jsx(
|
|
13054
13054
|
er.svg,
|
|
@@ -13063,8 +13063,8 @@ var $S = "Arrow", Tf = w.forwardRef((e, t) => {
|
|
|
13063
13063
|
}
|
|
13064
13064
|
);
|
|
13065
13065
|
});
|
|
13066
|
-
|
|
13067
|
-
var NS =
|
|
13066
|
+
_f.displayName = $S;
|
|
13067
|
+
var NS = _f;
|
|
13068
13068
|
function AS(e) {
|
|
13069
13069
|
const [t, r] = w.useState(void 0);
|
|
13070
13070
|
return Yt(() => {
|
|
@@ -13087,22 +13087,22 @@ function AS(e) {
|
|
|
13087
13087
|
r(void 0);
|
|
13088
13088
|
}, [e]), t;
|
|
13089
13089
|
}
|
|
13090
|
-
var fs = "Popper", [
|
|
13090
|
+
var fs = "Popper", [Mf, jf] = Af(fs), [OS, Df] = Mf(fs), Lf = (e) => {
|
|
13091
13091
|
const { __scopePopper: t, children: r } = e, [n, o] = w.useState(null);
|
|
13092
13092
|
return /* @__PURE__ */ h.jsx(OS, { scope: t, anchor: n, onAnchorChange: o, children: r });
|
|
13093
13093
|
};
|
|
13094
|
-
|
|
13095
|
-
var
|
|
13094
|
+
Lf.displayName = fs;
|
|
13095
|
+
var Vf = "PopperAnchor", zf = w.forwardRef(
|
|
13096
13096
|
(e, t) => {
|
|
13097
|
-
const { __scopePopper: r, virtualRef: n, ...o } = e, a =
|
|
13097
|
+
const { __scopePopper: r, virtualRef: n, ...o } = e, a = Df(Vf, r), i = w.useRef(null), s = pr(t, i), l = w.useRef(null);
|
|
13098
13098
|
return w.useEffect(() => {
|
|
13099
13099
|
const u = l.current;
|
|
13100
13100
|
l.current = n?.current || i.current, u !== l.current && a.onAnchorChange(l.current);
|
|
13101
13101
|
}), n ? null : /* @__PURE__ */ h.jsx(er.div, { ...o, ref: s });
|
|
13102
13102
|
}
|
|
13103
13103
|
);
|
|
13104
|
-
|
|
13105
|
-
var gs = "PopperContent", [IS, FS] =
|
|
13104
|
+
zf.displayName = Vf;
|
|
13105
|
+
var gs = "PopperContent", [IS, FS] = Mf(gs), Hf = w.forwardRef(
|
|
13106
13106
|
(e, t) => {
|
|
13107
13107
|
const {
|
|
13108
13108
|
__scopePopper: r,
|
|
@@ -13119,7 +13119,7 @@ var gs = "PopperContent", [IS, FS] = _f(gs), zf = w.forwardRef(
|
|
|
13119
13119
|
updatePositionStrategy: d = "optimized",
|
|
13120
13120
|
onPlaced: p,
|
|
13121
13121
|
...m
|
|
13122
|
-
} = e, v =
|
|
13122
|
+
} = e, v = Df(gs, r), [b, x] = w.useState(null), y = pr(t, (D) => x(D)), [k, S] = w.useState(null), P = AS(k), N = P?.width ?? 0, O = P?.height ?? 0, H = n + (a !== "center" ? "-" + a : ""), A = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, R = Array.isArray(u) ? u : [u], L = R.length > 0, K = {
|
|
13123
13123
|
padding: A,
|
|
13124
13124
|
boundary: R.filter(_S),
|
|
13125
13125
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -13139,7 +13139,7 @@ var gs = "PopperContent", [IS, FS] = _f(gs), zf = w.forwardRef(
|
|
|
13139
13139
|
l && hc({
|
|
13140
13140
|
mainAxis: !0,
|
|
13141
13141
|
crossAxis: !1,
|
|
13142
|
-
limiter: f === "partial" ?
|
|
13142
|
+
limiter: f === "partial" ? y0() : void 0,
|
|
13143
13143
|
...K
|
|
13144
13144
|
}),
|
|
13145
13145
|
l && vc({ ...K }),
|
|
@@ -13150,11 +13150,11 @@ var gs = "PopperContent", [IS, FS] = _f(gs), zf = w.forwardRef(
|
|
|
13150
13150
|
In.setProperty("--radix-popper-available-width", `${ye}px`), In.setProperty("--radix-popper-available-height", `${Ve}px`), In.setProperty("--radix-popper-anchor-width", `${pt}px`), In.setProperty("--radix-popper-anchor-height", `${mt}px`);
|
|
13151
13151
|
}
|
|
13152
13152
|
}),
|
|
13153
|
-
k &&
|
|
13153
|
+
k && w0({ element: k, padding: s }),
|
|
13154
13154
|
MS({ arrowWidth: N, arrowHeight: O }),
|
|
13155
|
-
g &&
|
|
13155
|
+
g && x0({ strategy: "referenceHidden", ...K })
|
|
13156
13156
|
]
|
|
13157
|
-
}), [q, te] =
|
|
13157
|
+
}), [q, te] = Wf(B), E = Uo(p);
|
|
13158
13158
|
Yt(() => {
|
|
13159
13159
|
X && E?.();
|
|
13160
13160
|
}, [X, E]);
|
|
@@ -13215,14 +13215,14 @@ var gs = "PopperContent", [IS, FS] = _f(gs), zf = w.forwardRef(
|
|
|
13215
13215
|
);
|
|
13216
13216
|
}
|
|
13217
13217
|
);
|
|
13218
|
-
|
|
13219
|
-
var
|
|
13218
|
+
Hf.displayName = gs;
|
|
13219
|
+
var Bf = "PopperArrow", TS = {
|
|
13220
13220
|
top: "bottom",
|
|
13221
13221
|
right: "left",
|
|
13222
13222
|
bottom: "top",
|
|
13223
13223
|
left: "right"
|
|
13224
|
-
},
|
|
13225
|
-
const { __scopePopper: n, ...o } = t, a = FS(
|
|
13224
|
+
}, Gf = w.forwardRef(function(t, r) {
|
|
13225
|
+
const { __scopePopper: n, ...o } = t, a = FS(Bf, n), i = TS[a.placedSide];
|
|
13226
13226
|
return (
|
|
13227
13227
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
13228
13228
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -13266,7 +13266,7 @@ var Hf = "PopperArrow", TS = {
|
|
|
13266
13266
|
)
|
|
13267
13267
|
);
|
|
13268
13268
|
});
|
|
13269
|
-
|
|
13269
|
+
Gf.displayName = Bf;
|
|
13270
13270
|
function _S(e) {
|
|
13271
13271
|
return e !== null;
|
|
13272
13272
|
}
|
|
@@ -13274,22 +13274,22 @@ var MS = (e) => ({
|
|
|
13274
13274
|
name: "transformOrigin",
|
|
13275
13275
|
options: e,
|
|
13276
13276
|
fn(t) {
|
|
13277
|
-
const { placement: r, rects: n, middlewareData: o } = t, i = o.arrow?.centerOffset !== 0, s = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [u, c] =
|
|
13277
|
+
const { placement: r, rects: n, middlewareData: o } = t, i = o.arrow?.centerOffset !== 0, s = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [u, c] = Wf(r), f = { start: "0%", center: "50%", end: "100%" }[c], g = (o.arrow?.x ?? 0) + s / 2, d = (o.arrow?.y ?? 0) + l / 2;
|
|
13278
13278
|
let p = "", m = "";
|
|
13279
13279
|
return u === "bottom" ? (p = i ? f : `${g}px`, m = `${-l}px`) : u === "top" ? (p = i ? f : `${g}px`, m = `${n.floating.height + l}px`) : u === "right" ? (p = `${-l}px`, m = i ? f : `${d}px`) : u === "left" && (p = `${n.floating.width + l}px`, m = i ? f : `${d}px`), { data: { x: p, y: m } };
|
|
13280
13280
|
}
|
|
13281
13281
|
});
|
|
13282
|
-
function
|
|
13282
|
+
function Wf(e) {
|
|
13283
13283
|
const [t, r = "center"] = e.split("-");
|
|
13284
13284
|
return [t, r];
|
|
13285
13285
|
}
|
|
13286
|
-
var jS =
|
|
13286
|
+
var jS = Lf, DS = zf, LS = Hf, VS = Gf, zS = "Portal", Uf = w.forwardRef((e, t) => {
|
|
13287
13287
|
const { container: r, ...n } = e, [o, a] = w.useState(!1);
|
|
13288
13288
|
Yt(() => a(!0), []);
|
|
13289
13289
|
const i = r || o && globalThis?.document?.body;
|
|
13290
|
-
return i ?
|
|
13290
|
+
return i ? Sg.createPortal(/* @__PURE__ */ h.jsx(er.div, { ...n, ref: t }), i) : null;
|
|
13291
13291
|
});
|
|
13292
|
-
|
|
13292
|
+
Uf.displayName = zS;
|
|
13293
13293
|
function HS(e, t) {
|
|
13294
13294
|
return w.useReducer((r, n) => t[r][n] ?? r, e);
|
|
13295
13295
|
}
|
|
@@ -13413,7 +13413,7 @@ var qS = Object.freeze({
|
|
|
13413
13413
|
clip: "rect(0, 0, 0, 0)",
|
|
13414
13414
|
whiteSpace: "nowrap",
|
|
13415
13415
|
wordWrap: "normal"
|
|
13416
|
-
}), XS = "VisuallyHidden",
|
|
13416
|
+
}), XS = "VisuallyHidden", Yf = w.forwardRef(
|
|
13417
13417
|
(e, t) => /* @__PURE__ */ h.jsx(
|
|
13418
13418
|
er.span,
|
|
13419
13419
|
{
|
|
@@ -13423,10 +13423,10 @@ var qS = Object.freeze({
|
|
|
13423
13423
|
}
|
|
13424
13424
|
)
|
|
13425
13425
|
);
|
|
13426
|
-
|
|
13427
|
-
var JS =
|
|
13428
|
-
|
|
13429
|
-
]), Ko =
|
|
13426
|
+
Yf.displayName = XS;
|
|
13427
|
+
var JS = Yf, [Yo] = Af("Tooltip", [
|
|
13428
|
+
jf
|
|
13429
|
+
]), Ko = jf(), Kf = "TooltipProvider", QS = 700, ri = "tooltip.open", [ZS, ms] = Yo(Kf), qf = (e) => {
|
|
13430
13430
|
const {
|
|
13431
13431
|
__scopeTooltip: t,
|
|
13432
13432
|
delayDuration: r = QS,
|
|
@@ -13461,8 +13461,8 @@ var JS = Uf, [Yo] = Nf("Tooltip", [
|
|
|
13461
13461
|
}
|
|
13462
13462
|
);
|
|
13463
13463
|
};
|
|
13464
|
-
|
|
13465
|
-
var pn = "Tooltip", [ek, On] = Yo(pn),
|
|
13464
|
+
qf.displayName = Kf;
|
|
13465
|
+
var pn = "Tooltip", [ek, On] = Yo(pn), Xf = (e) => {
|
|
13466
13466
|
const {
|
|
13467
13467
|
__scopeTooltip: t,
|
|
13468
13468
|
children: r,
|
|
@@ -13511,8 +13511,8 @@ var pn = "Tooltip", [ek, On] = Yo(pn), qf = (e) => {
|
|
|
13511
13511
|
}
|
|
13512
13512
|
) });
|
|
13513
13513
|
};
|
|
13514
|
-
|
|
13515
|
-
var ni = "TooltipTrigger",
|
|
13514
|
+
Xf.displayName = pn;
|
|
13515
|
+
var ni = "TooltipTrigger", Jf = w.forwardRef(
|
|
13516
13516
|
(e, t) => {
|
|
13517
13517
|
const { __scopeTooltip: r, ...n } = e, o = On(ni, r), a = ms(ni, r), i = Ko(r), s = w.useRef(null), l = pr(t, s, o.onTriggerChange), u = w.useRef(!1), c = w.useRef(!1), f = w.useCallback(() => u.current = !1, []);
|
|
13518
13518
|
return w.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ h.jsx(DS, { asChild: !0, ...i, children: /* @__PURE__ */ h.jsx(
|
|
@@ -13540,18 +13540,18 @@ var ni = "TooltipTrigger", Xf = w.forwardRef(
|
|
|
13540
13540
|
) });
|
|
13541
13541
|
}
|
|
13542
13542
|
);
|
|
13543
|
-
|
|
13543
|
+
Jf.displayName = ni;
|
|
13544
13544
|
var hs = "TooltipPortal", [tk, rk] = Yo(hs, {
|
|
13545
13545
|
forceMount: void 0
|
|
13546
|
-
}),
|
|
13546
|
+
}), Qf = (e) => {
|
|
13547
13547
|
const { __scopeTooltip: t, forceMount: r, children: n, container: o } = e, a = On(hs, t);
|
|
13548
|
-
return /* @__PURE__ */ h.jsx(tk, { scope: t, forceMount: r, children: /* @__PURE__ */ h.jsx(ps, { present: r || a.open, children: /* @__PURE__ */ h.jsx(
|
|
13548
|
+
return /* @__PURE__ */ h.jsx(tk, { scope: t, forceMount: r, children: /* @__PURE__ */ h.jsx(ps, { present: r || a.open, children: /* @__PURE__ */ h.jsx(Uf, { asChild: !0, container: o, children: n }) }) });
|
|
13549
13549
|
};
|
|
13550
|
-
|
|
13551
|
-
var Rr = "TooltipContent",
|
|
13550
|
+
Qf.displayName = hs;
|
|
13551
|
+
var Rr = "TooltipContent", Zf = w.forwardRef(
|
|
13552
13552
|
(e, t) => {
|
|
13553
13553
|
const r = rk(Rr, e.__scopeTooltip), { forceMount: n = r.forceMount, side: o = "top", ...a } = e, i = On(Rr, e.__scopeTooltip);
|
|
13554
|
-
return /* @__PURE__ */ h.jsx(ps, { present: n || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ h.jsx(
|
|
13554
|
+
return /* @__PURE__ */ h.jsx(ps, { present: n || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ h.jsx(eg, { side: o, ...a, ref: t }) : /* @__PURE__ */ h.jsx(nk, { side: o, ...a, ref: t }) });
|
|
13555
13555
|
}
|
|
13556
13556
|
), nk = w.forwardRef((e, t) => {
|
|
13557
13557
|
const r = On(Rr, e.__scopeTooltip), n = ms(Rr, e.__scopeTooltip), o = w.useRef(null), a = pr(t, o), [i, s] = w.useState(null), { trigger: l, onClose: u } = r, c = o.current, { onPointerInTransitChange: f } = n, g = w.useCallback(() => {
|
|
@@ -13578,8 +13578,8 @@ var Rr = "TooltipContent", Qf = w.forwardRef(
|
|
|
13578
13578
|
};
|
|
13579
13579
|
return document.addEventListener("pointermove", p), () => document.removeEventListener("pointermove", p);
|
|
13580
13580
|
}
|
|
13581
|
-
}, [l, c, i, u, g]), /* @__PURE__ */ h.jsx(
|
|
13582
|
-
}), [ok, ak] = Yo(pn, { isInside: !1 }), ik = /* @__PURE__ */ dS("TooltipContent"),
|
|
13581
|
+
}, [l, c, i, u, g]), /* @__PURE__ */ h.jsx(eg, { ...e, ref: a });
|
|
13582
|
+
}), [ok, ak] = Yo(pn, { isInside: !1 }), ik = /* @__PURE__ */ dS("TooltipContent"), eg = w.forwardRef(
|
|
13583
13583
|
(e, t) => {
|
|
13584
13584
|
const {
|
|
13585
13585
|
__scopeTooltip: r,
|
|
@@ -13597,7 +13597,7 @@ var Rr = "TooltipContent", Qf = w.forwardRef(
|
|
|
13597
13597
|
return window.addEventListener("scroll", f, { capture: !0 }), () => window.removeEventListener("scroll", f, { capture: !0 });
|
|
13598
13598
|
}
|
|
13599
13599
|
}, [l.trigger, c]), /* @__PURE__ */ h.jsx(
|
|
13600
|
-
|
|
13600
|
+
Ff,
|
|
13601
13601
|
{
|
|
13602
13602
|
asChild: !0,
|
|
13603
13603
|
disableOutsidePointerEvents: !1,
|
|
@@ -13630,17 +13630,17 @@ var Rr = "TooltipContent", Qf = w.forwardRef(
|
|
|
13630
13630
|
);
|
|
13631
13631
|
}
|
|
13632
13632
|
);
|
|
13633
|
-
|
|
13634
|
-
var
|
|
13633
|
+
Zf.displayName = Rr;
|
|
13634
|
+
var tg = "TooltipArrow", rg = w.forwardRef(
|
|
13635
13635
|
(e, t) => {
|
|
13636
13636
|
const { __scopeTooltip: r, ...n } = e, o = Ko(r);
|
|
13637
13637
|
return ak(
|
|
13638
|
-
|
|
13638
|
+
tg,
|
|
13639
13639
|
r
|
|
13640
13640
|
).isInside ? null : /* @__PURE__ */ h.jsx(VS, { ...o, ...n, ref: t });
|
|
13641
13641
|
}
|
|
13642
13642
|
);
|
|
13643
|
-
|
|
13643
|
+
rg.displayName = tg;
|
|
13644
13644
|
function sk(e, t) {
|
|
13645
13645
|
const r = Math.abs(t.top - e.y), n = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
|
|
13646
13646
|
switch (Math.min(r, n, o, a)) {
|
|
@@ -13733,7 +13733,7 @@ function fk(e) {
|
|
|
13733
13733
|
}
|
|
13734
13734
|
return r.pop(), t.length === 1 && r.length === 1 && t[0].x === r[0].x && t[0].y === r[0].y ? t : t.concat(r);
|
|
13735
13735
|
}
|
|
13736
|
-
var gk =
|
|
13736
|
+
var gk = qf, pk = Xf, mk = Jf, hk = Qf, vk = Zf, bk = rg;
|
|
13737
13737
|
function fC({
|
|
13738
13738
|
content: e,
|
|
13739
13739
|
children: t,
|
|
@@ -14399,11 +14399,11 @@ function _k(e, t, r) {
|
|
|
14399
14399
|
), a = (+n - +o) / $k;
|
|
14400
14400
|
return vs(r?.roundingMethod)(a);
|
|
14401
14401
|
}
|
|
14402
|
-
function
|
|
14402
|
+
function ng(e, t) {
|
|
14403
14403
|
return +Le(e) - +Le(t);
|
|
14404
14404
|
}
|
|
14405
14405
|
function Mk(e, t, r) {
|
|
14406
|
-
const n =
|
|
14406
|
+
const n = ng(e, t) / Rk;
|
|
14407
14407
|
return vs(r?.roundingMethod)(n);
|
|
14408
14408
|
}
|
|
14409
14409
|
function jk(e, t) {
|
|
@@ -14435,7 +14435,7 @@ function Vk(e, t, r) {
|
|
|
14435
14435
|
return u === 0 ? 0 : u;
|
|
14436
14436
|
}
|
|
14437
14437
|
function zk(e, t, r) {
|
|
14438
|
-
const n =
|
|
14438
|
+
const n = ng(e, t) / 1e3;
|
|
14439
14439
|
return vs(r?.roundingMethod)(n);
|
|
14440
14440
|
}
|
|
14441
14441
|
function Hk(e, t, r) {
|
|
@@ -14673,7 +14673,7 @@ const Xk = ce(
|
|
|
14673
14673
|
status: i,
|
|
14674
14674
|
children: s,
|
|
14675
14675
|
className: l
|
|
14676
|
-
}) => /* @__PURE__ */ h.jsx(Er, { appear: !0, show: e, as: Ae, children: /* @__PURE__ */ h.jsxs(
|
|
14676
|
+
}) => /* @__PURE__ */ h.jsx(Er, { appear: !0, show: e, as: Ae, children: /* @__PURE__ */ h.jsxs(Oh, { as: "div", className: "relative z-50", onClose: t, children: [
|
|
14677
14677
|
/* @__PURE__ */ h.jsx(
|
|
14678
14678
|
dn,
|
|
14679
14679
|
{
|
|
@@ -14685,7 +14685,7 @@ const Xk = ce(
|
|
|
14685
14685
|
leaveFrom: "opacity-100",
|
|
14686
14686
|
leaveTo: "opacity-0",
|
|
14687
14687
|
children: /* @__PURE__ */ h.jsx(
|
|
14688
|
-
|
|
14688
|
+
Ah,
|
|
14689
14689
|
{
|
|
14690
14690
|
className: F(
|
|
14691
14691
|
"fixed inset-0 transition-opacity",
|
|
@@ -14841,7 +14841,7 @@ const r2 = ce(
|
|
|
14841
14841
|
hamburger: N ? "text-gray-300 dark:text-gray-300 hover:bg-white/10 dark:hover:bg-white/10 hover:text-white dark:hover:text-white" : "text-gray-500 dark:text-gray-500 hover:bg-gray-100 dark:hover:bg-gray-100 hover:text-gray-700 dark:hover:text-gray-700"
|
|
14842
14842
|
};
|
|
14843
14843
|
return /* @__PURE__ */ h.jsx(
|
|
14844
|
-
|
|
14844
|
+
sd,
|
|
14845
14845
|
{
|
|
14846
14846
|
as: "nav",
|
|
14847
14847
|
className: F("z-50", r2({ variant: m, position: v }), p),
|
|
@@ -14897,7 +14897,7 @@ const r2 = ce(
|
|
|
14897
14897
|
);
|
|
14898
14898
|
}) }),
|
|
14899
14899
|
g,
|
|
14900
|
-
c ?? (a ? /* @__PURE__ */ h.jsxs(
|
|
14900
|
+
c ?? (a ? /* @__PURE__ */ h.jsxs(Pv, { as: "div", className: "relative ml-2", children: [
|
|
14901
14901
|
/* @__PURE__ */ h.jsxs(ed, { className: "relative flex rounded-full text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 ring-offset-transparent", children: [
|
|
14902
14902
|
/* @__PURE__ */ h.jsx("span", { className: "sr-only", children: "Open user menu" }),
|
|
14903
14903
|
/* @__PURE__ */ h.jsx(
|
|
@@ -15074,6 +15074,7 @@ const r2 = ce(
|
|
|
15074
15074
|
}
|
|
15075
15075
|
) })
|
|
15076
15076
|
] }),
|
|
15077
|
+
/* @__PURE__ */ h.jsx(id, { className: "fixed inset-0 z-40 md:hidden" }),
|
|
15077
15078
|
/* @__PURE__ */ h.jsx(
|
|
15078
15079
|
Er,
|
|
15079
15080
|
{
|
|
@@ -15304,7 +15305,7 @@ const r2 = ce(
|
|
|
15304
15305
|
}
|
|
15305
15306
|
},
|
|
15306
15307
|
defaultVariants: { size: "md" }
|
|
15307
|
-
}),
|
|
15308
|
+
}), og = ce("[&_tr]:border-b transition-colors", {
|
|
15308
15309
|
variants: {
|
|
15309
15310
|
variant: {
|
|
15310
15311
|
default: "bg-gray-50 dark:bg-gray-900 border-gray-200 dark:border-gray-800",
|
|
@@ -15393,7 +15394,7 @@ const r2 = ce(
|
|
|
15393
15394
|
variant: "default",
|
|
15394
15395
|
size: "md",
|
|
15395
15396
|
hoverable: !1
|
|
15396
|
-
}),
|
|
15397
|
+
}), ag = w.forwardRef(
|
|
15397
15398
|
({
|
|
15398
15399
|
className: e,
|
|
15399
15400
|
variant: t = "default",
|
|
@@ -15409,20 +15410,20 @@ const r2 = ce(
|
|
|
15409
15410
|
}
|
|
15410
15411
|
) }) })
|
|
15411
15412
|
);
|
|
15412
|
-
|
|
15413
|
-
const
|
|
15413
|
+
ag.displayName = "Table";
|
|
15414
|
+
const ig = w.forwardRef(({ className: e, ...t }, r) => {
|
|
15414
15415
|
const { variant: n } = w.useContext(Lr);
|
|
15415
15416
|
return /* @__PURE__ */ h.jsx(
|
|
15416
15417
|
"thead",
|
|
15417
15418
|
{
|
|
15418
15419
|
ref: r,
|
|
15419
|
-
className: F(
|
|
15420
|
+
className: F(og({ variant: n }), e),
|
|
15420
15421
|
...t
|
|
15421
15422
|
}
|
|
15422
15423
|
);
|
|
15423
15424
|
});
|
|
15424
|
-
|
|
15425
|
-
const
|
|
15425
|
+
ig.displayName = "TableHeader";
|
|
15426
|
+
const sg = w.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ h.jsx(
|
|
15426
15427
|
"tbody",
|
|
15427
15428
|
{
|
|
15428
15429
|
ref: r,
|
|
@@ -15430,7 +15431,7 @@ const ig = w.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ h.jsx(
|
|
|
15430
15431
|
...t
|
|
15431
15432
|
}
|
|
15432
15433
|
));
|
|
15433
|
-
|
|
15434
|
+
sg.displayName = "TableBody";
|
|
15434
15435
|
const l2 = w.forwardRef(({ className: e, ...t }, r) => {
|
|
15435
15436
|
const { variant: n } = w.useContext(Lr);
|
|
15436
15437
|
return /* @__PURE__ */ h.jsx(
|
|
@@ -15438,7 +15439,7 @@ const l2 = w.forwardRef(({ className: e, ...t }, r) => {
|
|
|
15438
15439
|
{
|
|
15439
15440
|
ref: r,
|
|
15440
15441
|
className: F(
|
|
15441
|
-
|
|
15442
|
+
og({ variant: n }),
|
|
15442
15443
|
"border-t font-medium [&>tr]:last:border-b-0",
|
|
15443
15444
|
e
|
|
15444
15445
|
),
|
|
@@ -15459,7 +15460,7 @@ const Zn = w.forwardRef(({ className: e, ...t }, r) => {
|
|
|
15459
15460
|
);
|
|
15460
15461
|
});
|
|
15461
15462
|
Zn.displayName = "TableRow";
|
|
15462
|
-
const
|
|
15463
|
+
const lg = w.forwardRef(({ className: e, ...t }, r) => {
|
|
15463
15464
|
const { variant: n, size: o } = w.useContext(Lr);
|
|
15464
15465
|
return /* @__PURE__ */ h.jsx(
|
|
15465
15466
|
"th",
|
|
@@ -15470,7 +15471,7 @@ const sg = w.forwardRef(({ className: e, ...t }, r) => {
|
|
|
15470
15471
|
}
|
|
15471
15472
|
);
|
|
15472
15473
|
});
|
|
15473
|
-
|
|
15474
|
+
lg.displayName = "TableHead";
|
|
15474
15475
|
const oi = w.forwardRef(({ className: e, ...t }, r) => {
|
|
15475
15476
|
const { variant: n, size: o } = w.useContext(Lr);
|
|
15476
15477
|
return /* @__PURE__ */ h.jsx(
|
|
@@ -15785,41 +15786,41 @@ const m2 = (e, t, r, n, o, a, i) => {
|
|
|
15785
15786
|
return e._getFacetedMinMaxValues();
|
|
15786
15787
|
};
|
|
15787
15788
|
}
|
|
15788
|
-
},
|
|
15789
|
+
}, ug = (e, t, r) => {
|
|
15789
15790
|
var n, o;
|
|
15790
15791
|
const a = r == null || (n = r.toString()) == null ? void 0 : n.toLowerCase();
|
|
15791
15792
|
return !!(!((o = e.getValue(t)) == null || (o = o.toString()) == null || (o = o.toLowerCase()) == null) && o.includes(a));
|
|
15792
15793
|
};
|
|
15793
|
-
lg.autoRemove = (e) => Ze(e);
|
|
15794
|
-
const ug = (e, t, r) => {
|
|
15795
|
-
var n;
|
|
15796
|
-
return !!(!((n = e.getValue(t)) == null || (n = n.toString()) == null) && n.includes(r));
|
|
15797
|
-
};
|
|
15798
15794
|
ug.autoRemove = (e) => Ze(e);
|
|
15799
15795
|
const cg = (e, t, r) => {
|
|
15800
15796
|
var n;
|
|
15801
|
-
return ((n = e.getValue(t)) == null || (n = n.toString()) == null
|
|
15797
|
+
return !!(!((n = e.getValue(t)) == null || (n = n.toString()) == null) && n.includes(r));
|
|
15802
15798
|
};
|
|
15803
15799
|
cg.autoRemove = (e) => Ze(e);
|
|
15804
15800
|
const dg = (e, t, r) => {
|
|
15805
15801
|
var n;
|
|
15806
|
-
return (n = e.getValue(t)) == null ? void 0 : n.
|
|
15802
|
+
return ((n = e.getValue(t)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === r?.toLowerCase();
|
|
15807
15803
|
};
|
|
15808
15804
|
dg.autoRemove = (e) => Ze(e);
|
|
15809
|
-
const fg = (e, t, r) =>
|
|
15805
|
+
const fg = (e, t, r) => {
|
|
15806
|
+
var n;
|
|
15807
|
+
return (n = e.getValue(t)) == null ? void 0 : n.includes(r);
|
|
15808
|
+
};
|
|
15809
|
+
fg.autoRemove = (e) => Ze(e);
|
|
15810
|
+
const gg = (e, t, r) => !r.some((n) => {
|
|
15810
15811
|
var o;
|
|
15811
15812
|
return !((o = e.getValue(t)) != null && o.includes(n));
|
|
15812
15813
|
});
|
|
15813
|
-
|
|
15814
|
-
const
|
|
15814
|
+
gg.autoRemove = (e) => Ze(e) || !(e != null && e.length);
|
|
15815
|
+
const pg = (e, t, r) => r.some((n) => {
|
|
15815
15816
|
var o;
|
|
15816
15817
|
return (o = e.getValue(t)) == null ? void 0 : o.includes(n);
|
|
15817
15818
|
});
|
|
15818
|
-
|
|
15819
|
-
const
|
|
15820
|
-
pg.autoRemove = (e) => Ze(e);
|
|
15821
|
-
const mg = (e, t, r) => e.getValue(t) == r;
|
|
15819
|
+
pg.autoRemove = (e) => Ze(e) || !(e != null && e.length);
|
|
15820
|
+
const mg = (e, t, r) => e.getValue(t) === r;
|
|
15822
15821
|
mg.autoRemove = (e) => Ze(e);
|
|
15822
|
+
const hg = (e, t, r) => e.getValue(t) == r;
|
|
15823
|
+
hg.autoRemove = (e) => Ze(e);
|
|
15823
15824
|
const bs = (e, t, r) => {
|
|
15824
15825
|
let [n, o] = r;
|
|
15825
15826
|
const a = e.getValue(t);
|
|
@@ -15835,14 +15836,14 @@ bs.resolveFilterValue = (e) => {
|
|
|
15835
15836
|
};
|
|
15836
15837
|
bs.autoRemove = (e) => Ze(e) || Ze(e[0]) && Ze(e[1]);
|
|
15837
15838
|
const yt = {
|
|
15838
|
-
includesString:
|
|
15839
|
-
includesStringSensitive:
|
|
15840
|
-
equalsString:
|
|
15841
|
-
arrIncludes:
|
|
15842
|
-
arrIncludesAll:
|
|
15843
|
-
arrIncludesSome:
|
|
15844
|
-
equals:
|
|
15845
|
-
weakEquals:
|
|
15839
|
+
includesString: ug,
|
|
15840
|
+
includesStringSensitive: cg,
|
|
15841
|
+
equalsString: dg,
|
|
15842
|
+
arrIncludes: fg,
|
|
15843
|
+
arrIncludesAll: gg,
|
|
15844
|
+
arrIncludesSome: pg,
|
|
15845
|
+
equals: mg,
|
|
15846
|
+
weakEquals: hg,
|
|
15846
15847
|
inNumberRange: bs
|
|
15847
15848
|
};
|
|
15848
15849
|
function Ze(e) {
|
|
@@ -16843,7 +16844,7 @@ function li(e, t, r) {
|
|
|
16843
16844
|
}
|
|
16844
16845
|
}), o ? "all" : a ? "some" : !1;
|
|
16845
16846
|
}
|
|
16846
|
-
const ui = /([0-9]+)/gm, z2 = (e, t, r) =>
|
|
16847
|
+
const ui = /([0-9]+)/gm, z2 = (e, t, r) => vg(Kt(e.getValue(r)).toLowerCase(), Kt(t.getValue(r)).toLowerCase()), H2 = (e, t, r) => vg(Kt(e.getValue(r)), Kt(t.getValue(r))), B2 = (e, t, r) => xs(Kt(e.getValue(r)).toLowerCase(), Kt(t.getValue(r)).toLowerCase()), G2 = (e, t, r) => xs(Kt(e.getValue(r)), Kt(t.getValue(r))), W2 = (e, t, r) => {
|
|
16847
16848
|
const n = e.getValue(r), o = t.getValue(r);
|
|
16848
16849
|
return n > o ? 1 : n < o ? -1 : 0;
|
|
16849
16850
|
}, U2 = (e, t, r) => xs(e.getValue(r), t.getValue(r));
|
|
@@ -16853,7 +16854,7 @@ function xs(e, t) {
|
|
|
16853
16854
|
function Kt(e) {
|
|
16854
16855
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
16855
16856
|
}
|
|
16856
|
-
function
|
|
16857
|
+
function vg(e, t) {
|
|
16857
16858
|
const r = e.split(ui).filter(Boolean), n = t.split(ui).filter(Boolean);
|
|
16858
16859
|
for (; r.length && n.length; ) {
|
|
16859
16860
|
const o = r.shift(), a = n.shift(), i = parseInt(o, 10), s = parseInt(a, 10), l = [i, s].sort();
|
|
@@ -17277,14 +17278,14 @@ function SC({
|
|
|
17277
17278
|
});
|
|
17278
17279
|
return /* @__PURE__ */ h.jsxs("div", { className: F("flex flex-col gap-4", r), children: [
|
|
17279
17280
|
/* @__PURE__ */ h.jsxs(
|
|
17280
|
-
|
|
17281
|
+
ag,
|
|
17281
17282
|
{
|
|
17282
17283
|
variant: a,
|
|
17283
17284
|
size: i,
|
|
17284
17285
|
hoverable: s,
|
|
17285
17286
|
className: n,
|
|
17286
17287
|
children: [
|
|
17287
|
-
/* @__PURE__ */ h.jsx(
|
|
17288
|
+
/* @__PURE__ */ h.jsx(ig, { children: c.getHeaderGroups().map((f) => /* @__PURE__ */ h.jsx(Zn, { children: f.headers.map((g) => /* @__PURE__ */ h.jsx(lg, { children: g.isPlaceholder ? null : /* @__PURE__ */ h.jsxs(
|
|
17288
17289
|
"div",
|
|
17289
17290
|
{
|
|
17290
17291
|
className: F(
|
|
@@ -17301,7 +17302,7 @@ function SC({
|
|
|
17301
17302
|
]
|
|
17302
17303
|
}
|
|
17303
17304
|
) }, g.id)) }, f.id)) }),
|
|
17304
|
-
/* @__PURE__ */ h.jsx(
|
|
17305
|
+
/* @__PURE__ */ h.jsx(sg, { children: c.getRowModel().rows?.length ? c.getRowModel().rows.map((f) => /* @__PURE__ */ h.jsx(
|
|
17305
17306
|
Zn,
|
|
17306
17307
|
{
|
|
17307
17308
|
"data-state": f.getIsSelected() && "selected",
|
|
@@ -17419,13 +17420,13 @@ export {
|
|
|
17419
17420
|
uC as Select,
|
|
17420
17421
|
Jb as Spinner,
|
|
17421
17422
|
nu as Switch,
|
|
17422
|
-
|
|
17423
|
-
|
|
17423
|
+
ag as Table,
|
|
17424
|
+
sg as TableBody,
|
|
17424
17425
|
u2 as TableCaption,
|
|
17425
17426
|
oi as TableCell,
|
|
17426
17427
|
l2 as TableFooter,
|
|
17427
|
-
|
|
17428
|
-
|
|
17428
|
+
lg as TableHead,
|
|
17429
|
+
ig as TableHeader,
|
|
17429
17430
|
Zn as TableRow,
|
|
17430
17431
|
sS as Textarea,
|
|
17431
17432
|
fC as Tooltip,
|
|
@@ -17451,7 +17452,7 @@ export {
|
|
|
17451
17452
|
oS as switchTrackVariants,
|
|
17452
17453
|
s2 as tableCellVariants,
|
|
17453
17454
|
i2 as tableHeadVariants,
|
|
17454
|
-
|
|
17455
|
+
og as tableHeaderVariants,
|
|
17455
17456
|
a2 as tableRowVariants,
|
|
17456
17457
|
o2 as tableVariants,
|
|
17457
17458
|
n2 as tableWrapperVariants,
|