@gv-tech/ui-web 2.29.2 → 2.29.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.mjs +53 -1
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.mjs +99 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +10 -1
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.mjs +25 -24
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +49 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +5 -4
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +12 -11
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.mjs +4 -3
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.mjs +12 -11
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +4 -3
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +97 -1
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +1 -1
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +107 -1
- package/dist/chart.cjs +2 -2
- package/dist/chart.mjs +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +19 -1
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +12 -12
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.mjs +161 -1
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +89 -1
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +123 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +40 -40
- package/dist/direction.cjs +1 -1
- package/dist/direction.mjs +7 -7
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +1 -1
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +126 -1
- package/dist/empty.cjs +1 -1
- package/dist/empty.mjs +1 -1
- package/dist/field.cjs +1 -1
- package/dist/field.mjs +36 -36
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +36 -36
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +30 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +36 -36
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.mjs +26 -26
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.mjs +45 -1
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +1 -1
- package/dist/item.cjs +1 -1
- package/dist/item.mjs +28 -27
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.mjs +1 -1
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +13 -1
- package/dist/marker.cjs +1 -1
- package/dist/marker.mjs +4 -3
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +133 -1
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.mjs +59 -1
- package/dist/message.cjs +1 -1
- package/dist/message.mjs +1 -1
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.mjs +1 -1
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +79 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +14 -14
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +54 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.mjs +19 -1
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.mjs +168 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +25 -1
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +26 -1
- package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +35 -1
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +98 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +15 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +38 -38
- package/dist/{sidebar-C2ax_A0G.mjs → sidebar-DrU3nKaL.mjs} +138 -134
- package/dist/sidebar-uOtFHnBs.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.mjs +3 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +34 -1
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.mjs +1 -1
- package/dist/support-fab.cjs +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +18 -1
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +44 -1
- package/dist/text.cjs +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +1 -1
- package/dist/{theme-toggle-BSMwXb8o.mjs → theme-toggle-9KtAIRxy.mjs} +6 -6
- package/dist/theme-toggle-DkNI3bfh.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +2 -1
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +52 -1
- package/dist/{toaster-D2BV6jez.mjs → toaster-8RrHPtlc.mjs} +8 -8
- package/dist/toaster-AFud4l6l.js +1 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +2 -1
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +49 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +35 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +34 -1
- package/package.json +1 -1
- package/dist/accordion-Bd0-CZQn.js +0 -1
- package/dist/accordion-Cf6DNbLH.mjs +0 -244
- package/dist/alert-dialog-BxFH0Lwn.mjs +0 -180
- package/dist/alert-dialog-C6vNmGBL.js +0 -1
- package/dist/aspect-ratio-CdQevcDV.mjs +0 -38
- package/dist/aspect-ratio-Z4Nkc56X.js +0 -1
- package/dist/avatar-B5PWwGhY.mjs +0 -136
- package/dist/avatar-CFhYRM52.js +0 -1
- package/dist/calendar-D5qgt2o2.js +0 -1
- package/dist/calendar-DIqXNjOR.mjs +0 -3029
- package/dist/carousel-D-xEqRCX.js +0 -1
- package/dist/carousel-DPjWmM_A.mjs +0 -1169
- package/dist/checkbox-DEPm1BBc.mjs +0 -184
- package/dist/checkbox-DI9Hn_e_.js +0 -1
- package/dist/chunk-HBS6WEDP-D2-yWzIN.js +0 -1
- package/dist/chunk-HBS6WEDP-DD8ZmxRM.mjs +0 -62
- package/dist/combobox-C4y8AbZX.mjs +0 -5644
- package/dist/combobox-boXp-mix.js +0 -3
- package/dist/command-BnW6UIVk.js +0 -1
- package/dist/command-Cbsp7PBx.mjs +0 -542
- package/dist/context-menu-CwsdFpx1.js +0 -1
- package/dist/context-menu-FNgV55ZV.mjs +0 -315
- package/dist/dist-7YyzJonC.mjs +0 -39
- package/dist/dist-AlmToDtO.mjs +0 -17
- package/dist/dist-B76UOZbx.mjs +0 -40
- package/dist/dist-B7Ph9-T6.mjs +0 -44
- package/dist/dist-B7jnFMko.js +0 -1
- package/dist/dist-BOiFyvyS.mjs +0 -10
- package/dist/dist-BQkDLAY7.js +0 -1
- package/dist/dist-Bal96K8t.js +0 -1
- package/dist/dist-Blgp9lfa.js +0 -1
- package/dist/dist-BnlI08Je.mjs +0 -96
- package/dist/dist-Bu-uFV1C.mjs +0 -191
- package/dist/dist-C2BHd5i1.mjs +0 -460
- package/dist/dist-C516Vwxy.mjs +0 -116
- package/dist/dist-CBlqVBTk.js +0 -1
- package/dist/dist-CDcZ8WMF.js +0 -1
- package/dist/dist-CDksSmTD.mjs +0 -189
- package/dist/dist-CF-qVmmV.js +0 -1
- package/dist/dist-CIgGRTmJ.js +0 -1
- package/dist/dist-CJqVmdrU.js +0 -1
- package/dist/dist-COqM3IM6.mjs +0 -89
- package/dist/dist-CbWpCWog.mjs +0 -180
- package/dist/dist-CcGLWbPa.mjs +0 -19
- package/dist/dist-Cn4F8XlY.mjs +0 -220
- package/dist/dist-CoTs6T03.js +0 -1
- package/dist/dist-Co_xSt6d.js +0 -1
- package/dist/dist-Cu0GG-3j.mjs +0 -15
- package/dist/dist-DJqkhIXb.js +0 -1
- package/dist/dist-DKI-XYwI.mjs +0 -98
- package/dist/dist-DQeXXRYL.mjs +0 -201
- package/dist/dist-DW2ltK5-.js +0 -1
- package/dist/dist-DWcKY_sJ.js +0 -1
- package/dist/dist-DZiOPWLp.js +0 -1
- package/dist/dist-DdAeWIwf.js +0 -1
- package/dist/dist-DhubV_gU.mjs +0 -4
- package/dist/dist-DmY7elIQ.js +0 -1
- package/dist/dist-DoWtzxYc.mjs +0 -684
- package/dist/dist-DuQlxGyN.js +0 -1
- package/dist/dist-KFF7QKuL.js +0 -1
- package/dist/dist-RXrZgzkO.js +0 -1
- package/dist/dist-R_G5UQRm.js +0 -1
- package/dist/dist-dwRwxUPt.mjs +0 -22
- package/dist/dist-fzmUl3YX.mjs +0 -553
- package/dist/dist-hBsne-A2.mjs +0 -92
- package/dist/dist-ljiGYyay.mjs +0 -29
- package/dist/dist-pqMcQ1Nk.js +0 -1
- package/dist/dist-zmnQp5Xf.js +0 -1
- package/dist/dropdown-menu-ChuqZeix.js +0 -1
- package/dist/dropdown-menu-DU7KNoXP.mjs +0 -311
- package/dist/es2015-BooeZGhO.mjs +0 -554
- package/dist/es2015-Dggv0vx3.js +0 -41
- package/dist/floating-ui.react-dom-2hihjuTL.mjs +0 -1057
- package/dist/floating-ui.react-dom-BtFIezY4.js +0 -1
- package/dist/hover-card-BeqCs_2R.js +0 -1
- package/dist/hover-card-w8PmCyw2.mjs +0 -176
- package/dist/input-otp-Bn_Uy1mR.mjs +0 -398
- package/dist/input-otp-CTRB_0Xp.js +0 -20
- package/dist/label-Da0kELfR.mjs +0 -26
- package/dist/label-JMa1tFfC.js +0 -1
- package/dist/menubar-B7sRxpE4.mjs +0 -405
- package/dist/menubar-Bd-QKMcw.js +0 -1
- package/dist/message-scroller-B8AU0v3Y.mjs +0 -805
- package/dist/message-scroller-BJb4Mh_I.js +0 -1
- package/dist/navigation-menu-B-RwfscB.mjs +0 -638
- package/dist/navigation-menu-kPwxYZCR.js +0 -1
- package/dist/popover-Cq5cTNtC.js +0 -1
- package/dist/popover-T6Ra737i.mjs +0 -241
- package/dist/progress-e9YzxvRo.mjs +0 -90
- package/dist/progress-iUSEI7J9.js +0 -6
- package/dist/questionnaire-BLCvUX1C.mjs +0 -1137
- package/dist/questionnaire-CcymIPae.js +0 -1
- package/dist/radio-group-BKpiDcIb.mjs +0 -264
- package/dist/radio-group-DPEzCmxe.js +0 -1
- package/dist/resizable-ByF0NmN9.mjs +0 -2153
- package/dist/resizable-oL3v42zT.js +0 -1
- package/dist/rolldown-runtime-D7yIeQp2.mjs +0 -13
- package/dist/rolldown-runtime-DbbDpzbe.js +0 -1
- package/dist/scroll-area-BzNeOQ6C.mjs +0 -568
- package/dist/scroll-area-s4_ZJK59.js +0 -1
- package/dist/select-B_nRxX2Y.mjs +0 -831
- package/dist/select-j5_dph9S.js +0 -1
- package/dist/separator-Bn-3XUSJ.js +0 -1
- package/dist/separator-CCcMNS78.mjs +0 -38
- package/dist/sidebar-Cnem2n5A.js +0 -1
- package/dist/slider-B2PUTc7W.mjs +0 -484
- package/dist/slider-wZuXwuib.js +0 -1
- package/dist/switch-CD675xU7.js +0 -1
- package/dist/switch-ikzIzrme.mjs +0 -172
- package/dist/tabs-DCm5zOYB.mjs +0 -158
- package/dist/tabs-fcahDQDp.js +0 -1
- package/dist/theme-toggle-BGTJsIA-.js +0 -1
- package/dist/toast-C31v9P1K.js +0 -1
- package/dist/toast-vU5ISM03.mjs +0 -445
- package/dist/toaster-CaJyOCyC.js +0 -1
- package/dist/toggle-CSZdCCwX.js +0 -1
- package/dist/toggle-Cv9YYwLI.mjs +0 -58
- package/dist/toggle-group-RT8wyBwK.js +0 -1
- package/dist/toggle-group-qvjasXS-.mjs +0 -166
- package/dist/tooltip-7ERoN5mV.mjs +0 -386
- package/dist/tooltip-CC9_spXT.js +0 -1
package/dist/dist-Cn4F8XlY.mjs
DELETED
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./floating-ui.react-dom-2hihjuTL.mjs";
|
|
2
|
-
import { t as l } from "./dist-B7Ph9-T6.mjs";
|
|
3
|
-
import { a as u } from "./dist-C516Vwxy.mjs";
|
|
4
|
-
import { t as d } from "./dist-COqM3IM6.mjs";
|
|
5
|
-
import { t as f } from "./dist-AlmToDtO.mjs";
|
|
6
|
-
import { t as p } from "./dist-DhubV_gU.mjs";
|
|
7
|
-
import { t as m } from "./dist-7YyzJonC.mjs";
|
|
8
|
-
import * as h from "react";
|
|
9
|
-
import { jsx as g } from "react/jsx-runtime";
|
|
10
|
-
// ../../node_modules/.bun/@radix-ui+react-arrow@1.1.17+2b23df507bdda662/node_modules/@radix-ui/react-arrow/dist/index.mjs
|
|
11
|
-
var _ = Object.defineProperty, v = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ ((e, t) => _(e, "name", {
|
|
12
|
-
value: t,
|
|
13
|
-
configurable: !0
|
|
14
|
-
}))(function(e, t) {
|
|
15
|
-
let { children: n, width: r = 10, height: i = 5, ...a } = e;
|
|
16
|
-
return /* @__PURE__ */ g(l.svg, {
|
|
17
|
-
...a,
|
|
18
|
-
ref: t,
|
|
19
|
-
width: r,
|
|
20
|
-
height: i,
|
|
21
|
-
viewBox: "0 0 30 10",
|
|
22
|
-
preserveAspectRatio: "none",
|
|
23
|
-
children: e.asChild ? n : /* @__PURE__ */ g("polygon", { points: "0,0 30,0 15,10" })
|
|
24
|
-
});
|
|
25
|
-
}, "Arrow")), y = Object.defineProperty, b = (e, t) => y(e, "name", {
|
|
26
|
-
value: t,
|
|
27
|
-
configurable: !0
|
|
28
|
-
}), x = {
|
|
29
|
-
Partial: "partial",
|
|
30
|
-
Always: "always"
|
|
31
|
-
}, S = {
|
|
32
|
-
Optimized: "optimized",
|
|
33
|
-
Always: "always"
|
|
34
|
-
}, C = "Popper", [w, T] = d(C), [E, D] = w(C), O = /* @__PURE__ */ b((e) => {
|
|
35
|
-
let { __scopePopper: t, children: n } = e, [r, i] = h.useState(null), [a, o] = h.useState(void 0);
|
|
36
|
-
return /* @__PURE__ */ g(E, {
|
|
37
|
-
scope: t,
|
|
38
|
-
anchor: r,
|
|
39
|
-
onAnchorChange: i,
|
|
40
|
-
placementState: a,
|
|
41
|
-
setPlacementState: o,
|
|
42
|
-
children: n
|
|
43
|
-
});
|
|
44
|
-
}, "Popper"), k = "PopperAnchor", A = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ b(function(e, t) {
|
|
45
|
-
let { __scopePopper: n, virtualRef: r, ...i } = e, a = D(k, n), o = h.useRef(null), s = a.onAnchorChange, c = h.useCallback((e) => {
|
|
46
|
-
o.current = e, e && s(e);
|
|
47
|
-
}, [s]), d = u(t, c), f = h.useRef(null);
|
|
48
|
-
h.useEffect(() => {
|
|
49
|
-
if (!r) return;
|
|
50
|
-
let e = f.current;
|
|
51
|
-
f.current = r.current, e !== f.current && s(f.current);
|
|
52
|
-
});
|
|
53
|
-
let p = a.placementState && L(a.placementState), m = p?.[0], _ = p?.[1];
|
|
54
|
-
return r ? null : /* @__PURE__ */ g(l.div, {
|
|
55
|
-
"data-radix-popper-side": m,
|
|
56
|
-
"data-radix-popper-align": _,
|
|
57
|
-
...i,
|
|
58
|
-
ref: d
|
|
59
|
-
});
|
|
60
|
-
}, "PopperAnchor")), j = "PopperContent", [ee, M] = w(j), N = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ b(function(d, _) {
|
|
61
|
-
let { __scopePopper: v, side: y = "bottom", sideOffset: C = 0, align: w = "center", alignOffset: T = 0, arrowPadding: E = 0, avoidCollisions: O = !0, collisionBoundary: k = [], collisionPadding: A = 0, sticky: M = x.Partial, hideWhenDetached: N = !1, updatePositionStrategy: te = S.Optimized, onPlaced: P, ...F } = d, R = D(j, v), [z, re] = h.useState(null), ie = u(_, re), [B, ae] = h.useState(null), V = m(B), oe = V?.width ?? 0, H = V?.height ?? 0, se = y + (w === "center" ? "" : "-" + w), ce = typeof A == "number" ? A : {
|
|
62
|
-
top: 0,
|
|
63
|
-
right: 0,
|
|
64
|
-
bottom: 0,
|
|
65
|
-
left: 0,
|
|
66
|
-
...A
|
|
67
|
-
}, U = Array.isArray(k) ? k : [k], W = U.length > 0, G = {
|
|
68
|
-
padding: ce,
|
|
69
|
-
boundary: U.filter(I),
|
|
70
|
-
altBoundary: W
|
|
71
|
-
}, { refs: le, floatingStyles: K, placement: q, isPositioned: J, middlewareData: Y } = t({
|
|
72
|
-
strategy: "fixed",
|
|
73
|
-
placement: se,
|
|
74
|
-
whileElementsMounted: /* @__PURE__ */ b((...e) => r(...e, { animationFrame: te === S.Always }), "whileElementsMounted"),
|
|
75
|
-
elements: { reference: R.anchor },
|
|
76
|
-
middleware: [
|
|
77
|
-
e({
|
|
78
|
-
mainAxis: C + H,
|
|
79
|
-
alignmentAxis: T
|
|
80
|
-
}),
|
|
81
|
-
O && a({
|
|
82
|
-
mainAxis: !0,
|
|
83
|
-
crossAxis: !1,
|
|
84
|
-
...M === x.Partial ? { limiter: n() } : {},
|
|
85
|
-
...G
|
|
86
|
-
}),
|
|
87
|
-
O && i({ ...G }),
|
|
88
|
-
s({
|
|
89
|
-
...G,
|
|
90
|
-
apply: /* @__PURE__ */ b(({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
91
|
-
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
92
|
-
o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
|
|
93
|
-
}, "apply")
|
|
94
|
-
}),
|
|
95
|
-
B && c({
|
|
96
|
-
element: B,
|
|
97
|
-
padding: E
|
|
98
|
-
}),
|
|
99
|
-
ne({
|
|
100
|
-
arrowWidth: oe,
|
|
101
|
-
arrowHeight: H
|
|
102
|
-
}),
|
|
103
|
-
N && o(W ? {
|
|
104
|
-
strategy: "referenceHidden",
|
|
105
|
-
...G
|
|
106
|
-
} : {
|
|
107
|
-
strategy: "referenceHidden",
|
|
108
|
-
padding: G.padding,
|
|
109
|
-
altBoundary: G.altBoundary
|
|
110
|
-
})
|
|
111
|
-
]
|
|
112
|
-
}), X = R.setPlacementState;
|
|
113
|
-
p(() => (X(q), () => {
|
|
114
|
-
X(void 0);
|
|
115
|
-
}), [q, X]);
|
|
116
|
-
let [Z, Q] = L(q), $ = f(P);
|
|
117
|
-
p(() => {
|
|
118
|
-
J && $?.();
|
|
119
|
-
}, [J, $]);
|
|
120
|
-
let ue = Y.arrow?.x, de = Y.arrow?.y, fe = Y.arrow?.centerOffset !== 0, [pe, me] = h.useState();
|
|
121
|
-
return p(() => {
|
|
122
|
-
z && me(window.getComputedStyle(z).zIndex);
|
|
123
|
-
}, [z]), /* @__PURE__ */ g("div", {
|
|
124
|
-
ref: le.setFloating,
|
|
125
|
-
"data-radix-popper-content-wrapper": "",
|
|
126
|
-
style: {
|
|
127
|
-
...K,
|
|
128
|
-
transform: J ? K.transform : "translate(0, -200%)",
|
|
129
|
-
minWidth: "max-content",
|
|
130
|
-
zIndex: pe,
|
|
131
|
-
"--radix-popper-transform-origin": [Y.transformOrigin?.x, Y.transformOrigin?.y].join(" "),
|
|
132
|
-
...Y.hide?.referenceHidden && {
|
|
133
|
-
visibility: "hidden",
|
|
134
|
-
pointerEvents: "none"
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
dir: d.dir,
|
|
138
|
-
children: /* @__PURE__ */ g(ee, {
|
|
139
|
-
scope: v,
|
|
140
|
-
placedSide: Z,
|
|
141
|
-
placedAlign: Q,
|
|
142
|
-
onArrowChange: ae,
|
|
143
|
-
arrowX: ue,
|
|
144
|
-
arrowY: de,
|
|
145
|
-
shouldHideArrow: fe,
|
|
146
|
-
children: /* @__PURE__ */ g(l.div, {
|
|
147
|
-
"data-side": Z,
|
|
148
|
-
"data-align": Q,
|
|
149
|
-
...F,
|
|
150
|
-
ref: ie,
|
|
151
|
-
style: {
|
|
152
|
-
...F.style,
|
|
153
|
-
animation: J ? F.style?.animation : "none"
|
|
154
|
-
}
|
|
155
|
-
})
|
|
156
|
-
})
|
|
157
|
-
});
|
|
158
|
-
}, "PopperContent")), te = "PopperArrow", P = {
|
|
159
|
-
top: "bottom",
|
|
160
|
-
right: "left",
|
|
161
|
-
bottom: "top",
|
|
162
|
-
left: "right"
|
|
163
|
-
}, F = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ b(function(e, t) {
|
|
164
|
-
let { __scopePopper: n, ...r } = e, i = M(te, n), a = P[i.placedSide];
|
|
165
|
-
return /* @__PURE__ */ g("span", {
|
|
166
|
-
ref: i.onArrowChange,
|
|
167
|
-
style: {
|
|
168
|
-
position: "absolute",
|
|
169
|
-
left: i.arrowX,
|
|
170
|
-
top: i.arrowY,
|
|
171
|
-
[a]: 0,
|
|
172
|
-
transformOrigin: {
|
|
173
|
-
top: "",
|
|
174
|
-
right: "0 0",
|
|
175
|
-
bottom: "center 0",
|
|
176
|
-
left: "100% 0"
|
|
177
|
-
}[i.placedSide],
|
|
178
|
-
transform: {
|
|
179
|
-
top: "translateY(100%)",
|
|
180
|
-
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
181
|
-
bottom: "rotate(180deg)",
|
|
182
|
-
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
183
|
-
}[i.placedSide],
|
|
184
|
-
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
185
|
-
},
|
|
186
|
-
children: /* @__PURE__ */ g(v, {
|
|
187
|
-
...r,
|
|
188
|
-
ref: t,
|
|
189
|
-
style: {
|
|
190
|
-
...r.style,
|
|
191
|
-
display: "block"
|
|
192
|
-
}
|
|
193
|
-
})
|
|
194
|
-
});
|
|
195
|
-
}, "PopperArrow"));
|
|
196
|
-
function I(e) {
|
|
197
|
-
return e !== null;
|
|
198
|
-
}
|
|
199
|
-
b(I, "isNotNull");
|
|
200
|
-
var ne = /* @__PURE__ */ b((e) => ({
|
|
201
|
-
name: "transformOrigin",
|
|
202
|
-
options: e,
|
|
203
|
-
fn(t) {
|
|
204
|
-
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = L(n), u = {
|
|
205
|
-
start: "0%",
|
|
206
|
-
center: "50%",
|
|
207
|
-
end: "100%"
|
|
208
|
-
}[l], d = (i.arrow?.x ?? 0) + o / 2, f = (i.arrow?.y ?? 0) + s / 2, p = "", m = "";
|
|
209
|
-
return c === "bottom" ? (p = a ? u : `${d}px`, m = `${-s}px`) : c === "top" ? (p = a ? u : `${d}px`, m = `${r.floating.height + s}px`) : c === "right" ? (p = `${-s}px`, m = a ? u : `${f}px`) : c === "left" && (p = `${r.floating.width + s}px`, m = a ? u : `${f}px`), { data: {
|
|
210
|
-
x: p,
|
|
211
|
-
y: m
|
|
212
|
-
} };
|
|
213
|
-
}
|
|
214
|
-
}), "transformOrigin");
|
|
215
|
-
function L(e) {
|
|
216
|
-
let [t, n = "center"] = e.split("-");
|
|
217
|
-
return [t, n];
|
|
218
|
-
}
|
|
219
|
-
b(L, "getSideAndAlignFromPlacement");
|
|
220
|
-
export { T as a, N as i, A as n, F as r, O as t };
|
package/dist/dist-CoTs6T03.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=(e,t=0)=>{let n=new Int32Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r)-48-t;return n},t=e=>{let t=new Int32Array(e.length+1);for(let n=0;n<e.length;n++)t[n+1]=t[n]+e[n];return t},n=e=>{let t=new Int32Array(e.length),n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r)-48;n+=i>>>1^-(i&1),t[r]=n}return t},r=384,i=[],a=t(e(`E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010`)),o=t(e(`:11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3`)),s=`@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom`,c=(()=>{let e=a.length-1,t=new Int32Array(e);for(let n=e-1;n>=0;n--){let e=1,r=n+1;for(let i=a[n];i<a[n+1];i++)e+=t[r],r+=t[r];t[n]=e}let n=new Int32Array(a[e]),r=0;for(let i=0;i<e;i++){let e=i+1;for(let o=a[i];o<a[i+1];o++)n[r++]=e,e+=t[e]}return n})(),l=e(`02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000
ŏ0000000ŏ00000000000000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000`,1),u=t(e(`123333359346463635126536711576`)),d=e(`93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0328432553;D>E?3257D>032585:0325B:;0328B:032`),f=e(`012113445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EEJ4444::EE4444441691;644444114244444:;K6666555555555555555999666664444444444444444444444226?6:66644L9M?D:111::::6DE199`),p=n(`020200202020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200`),m=(()=>{let e=new Int32Array(319).fill(-1),t=n(`02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222`),r=n(`02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222`);for(let n=0;n<t.length;n++)e[t[n]]=r[n];return e})(),h=`container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-pan- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover| gradient-to-b gradient-to-bl gradient-to-br gradient-to-l gradient-to-r gradient-to-t gradient-to-tl gradient-to-tr none|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform`.split(`|`).map(e=>{let t=e.split(` `),n=t.shift();for(let e=0;e<t.length;e++)t[e]=n+t[e];return t}),g=n(`0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422`),_=n(`ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>ʶ22ʷʺʷ2ʸʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚÄȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ«®ĝ822ĔđĔ2ē2222622`),v=n(`02222222222222222222222222222222222222222222222222222222222222222202022222222222EH2200IL021042222Y\\222IL0cf2e10j2222U00X202[^2y0000120|{~22
:22|22222222222G000qOVI00000}2>40000B00000I¨©000¬00000000000000021M®00°000000000000000000000222HGHa1º222¿2À2222ÉÌ000°2±`),y=new Int32Array(995),b=new Int32Array(995),x=new Int32Array(995),S=``,C=new Int32Array(1038);{let e=new Map,t=0,n=0;for(let r=0;r<g.length;r++)for(let i of h[v[r]]){let a=e.get(i);a===void 0&&(a=t++,e.set(i,a),C[a*2]=S.length,C[a*2+1]=i.length,S+=i),y[n]=g[r],b[n]=_[r],x[n]=a,n++}}var ee=n(`0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p`),te=t(e(`1::24444432:442:44:44>222222:44:4421322511111311111114`)),w=n(`24A;33N=C@H4A;33N=C@<27;83:;8393NQ:3NQʰ222ˉºŴŽ2R2=18cƴÅŇ=cĞÛC1ƈǝȈ:ħ25=11D3A@4=<1;1DEr25;11B3?<6;:371BCn9@7=<8192>2E121@9@EHE@9>2T25511<398454131<=V25511<398454131<=ƧNž2Đå242L222290000f22500ɛ000ǘ222`),T=e(`ij`),E=e(``),D=e(`1`),O={GROUP_COUNT:r,customValidatorNames:i,edgeStart:a,labelStart:o,labelText:s,edgeTarget:c,nodeGroup:l,nodeVlist:m,vlistPat:u,vlistOps:d,vlistRef:f,vlistGroup:p,litAnchor:y,litGroup:b,litPool:x,poolOffsets:C,poolText:S,adjGid:ee,adjStart:te,adjTgt:w,patGid:T,patTgt:E,postfixLookupGroups:D,orderSensitiveModifiers:`* ** after backdrop before details-content file first-letter first-line marker placeholder selection`},ne=`line`in Error(),k=-1,A=-1,j=(e,t,n)=>{let r=2166136261;for(let i=t;i<n;i++)r=Math.imul(r^e.charCodeAt(i),16777619);return r},M=(e,t,n)=>{let r=n-t,i=Math.imul(r,2654435761)^e.charCodeAt(t);if(r>3){let a=r>>2,o=r>>1;i=Math.imul(i^e.charCodeAt(t+1)<<8^e.charCodeAt(t+2)<<16^e.charCodeAt(t+a),2246822507),i=Math.imul(i^e.charCodeAt(t+o)<<8^e.charCodeAt(t+o+a)<<16^e.charCodeAt(n-3),3266489909),i^=e.charCodeAt(n-2)<<8^e.charCodeAt(n-1)<<16;for(let r=t+3,a=n-4;r<t+8&&r<a;r++,a--)i=Math.imul(i^e.charCodeAt(r)^e.charCodeAt(a)<<8,16777619)}return i^i>>>15},re=(e,t,n={})=>{let{GROUP_COUNT:r,edgeStart:i,labelStart:a,labelText:o,edgeTarget:s,nodeGroup:c,nodeVlist:l,vlistPat:u,vlistOps:d,vlistRef:f,vlistGroup:p,litAnchor:m,litGroup:h,litPool:g,poolOffsets:_,poolText:v,adjGid:y,adjStart:b,adjTgt:x,patGid:S,patTgt:C,postfixLookupGroups:ee,customValidatorNames:te,orderSensitiveModifiers:w}=e,T=new Int32Array(r).fill(-1);for(let e=0;e<y.length;e++)T[y[e]]=e;let E=0;for(let e=0;e+1<b.length;e++){let t=b[e+1]-b[e];t>E&&(E=t)}let D=32;for(;D<2*(1+E+S.length);)D<<=1;let O=new Int32Array(f.length+1);for(let e=0;e<f.length;e++)O[e+1]=O[e]+u[f[e]+1]-u[f[e]];let re=new Uint8Array(r);for(let e=0;e<ee.length;e++)re[ee[e]]=1;let N=i.length-1,ie=new Uint8Array(N),P=0,F=!0;for(let e=0;e<m.length;e++){ie[m[e]]=1;let t=_[g[e]*2+1];t>P&&(P=t);let n=v.charCodeAt(_[g[e]*2]);(n===91||n===40)&&(F=!1)}let I=1;for(;I<m.length*2;)I<<=1;let L=new Int32Array(I).fill(-1);for(let e=0;e<m.length;e++){let t=_[g[e]*2],n=(j(v,t,t+_[g[e]*2+1])^Math.imul(m[e],2654435761)|0)&I-1;for(;L[n]!==-1;)n=n+1&I-1;L[n]=e}let R=(e,t,n,r)=>{let i=(j(t,n,r)^Math.imul(e,2654435761)|0)&I-1,a=r-n;for(;;){let r=L[i];if(r===-1)return-1;if(m[r]===e&&_[g[r]*2+1]===a){let e=_[g[r]*2],i=!0;for(let r=0;r<a;r++)if(v.charCodeAt(e+r)!==t.charCodeAt(n+r)){i=!1;break}if(i)return h[r]}i=i+1&I-1}},z=n.cacheSize??8192,oe=n.prefix??e.prefix??``,se=oe===``?``:oe+`:`,ce=se.length,le=(te??[]).map(e=>{let n=t&&t[e];if(!n)throw Error(`cn: missing validator `+e);return n}),ue=/\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$/,de=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=0,me=-1,he=-1,V=-1,ge=-1,_e=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||e===95,ve=e=>/\s/.test(String.fromCharCode(e)),ye=(e,t,n)=>{if(B=0,me=-1,n-t<3)return;let r=e.charCodeAt(t),i=e.charCodeAt(n-1);if(r===91&&i===93)B=1;else if(r===40&&i===41)B=2;else return;V=t+1,ge=n-1;let a=t+1;if(_e(e.charCodeAt(a))){for(a++;a<n-1;){let t=e.charCodeAt(a);if(!_e(t)&&t!==45)break;a++}a<n-2&&e.charCodeAt(a)===58&&(me=t+1,he=a,V=a+1)}},be=(e,t,n,r)=>{if(n-t!==r.length)return!1;for(let n=0;n<r.length;n++)if(e.charCodeAt(t+n)!==r.charCodeAt(n))return!1;return!0},xe=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Se=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ce=e=>!!e&&!Number.isNaN(Number(e)),we=(e,t,n)=>{if(n-t<11||!be(e,t,t+10,`@container`))return!1;if(e.charCodeAt(t+10)===47)return n-t>=12;let r=e.charCodeAt(t+11);return r===115&&n-t>=17&&be(e,t+10,t+16,`-size/`)||r===110&&n-t>=19&&be(e,t+10,t+18,`-normal/`)},Te=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],Ee=`length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight`.split(`|`).map(e=>e.split(` `)),De=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],Oe=(e,t,n,r)=>{if(e>=10){if(e>=25)return le[e-25](t.slice(n,r));let i=e-10;if(B!==Te[i])return!1;if(me>=0){for(let e of Ee[i])if(be(t,me,he,e))return!0;return!1}switch(De[i]){case 0:return!1;case 1:return!0;case 2:{let e=t.slice(V,ge);return ue.test(e)&&!de.test(e)}case 3:return Ce(t.slice(V,ge));case 4:return pe.test(t.slice(V,ge));default:return fe.test(t.slice(V,ge))}}switch(e){case 0:return!0;case 1:return B===0;case 2:return B===1;case 3:return B===2;case 4:return xe.test(t.slice(n,r));case 5:return Ce(t.slice(n,r));case 6:{let e=t.slice(n,r);return!!e&&Number.isInteger(Number(e))}case 7:return r>n&&t.charCodeAt(r-1)===37&&Ce(t.slice(n,r-1));case 8:return Se.test(t.slice(n,r));default:return we(t,n,r)}},ke=new Set(typeof w==`string`?w.split(` `):w),Ae=(e,t,n,r,i,a)=>{let o=j(t,n,r)^(i?2654435769:0),s=e.get(o);if(s!==void 0)outer:for(let e=0;e<s.length;e++){let a=s[e];if(a.imp===i&&a.k.length===r-n){for(let e=0;e<a.k.length;e++)if(a.k.charCodeAt(e)!==t.charCodeAt(n+e))continue outer;return a.id}}else e.set(o,s=[]);let c=t.slice(n,r),l=a(c);return s.push({k:c,imp:i,id:l}),l},je=new Map,Me=new Map,Ne=2,Pe=4096,Fe=(e,t)=>{let n=[],r=0,i=0,a=0;for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);r===0&&i===0&&o===58?(n.push(e.slice(a,t)),a=t+1):o===91?r++:o===93?r--:o===40?i++:o===41&&i--}n.push(e.slice(a));let o=n[0];if(n.length>1){let e=[],t=[];for(let r of n)r.charCodeAt(0)===91||ke.has(r)?(t.length&&(e.push(...t.sort()),t=[]),e.push(r)):t.push(r);t.length&&e.push(...t.sort()),o=e.join(`:`)}let s=t?o+` !`:o,c=Me.get(s);return c===void 0&&Me.set(s,c=Ne++),c},Ie=new Map,Le=r,Re=r+4096,ze=()=>Le++,Be=2097152,Ve=8192,He=new Int32Array(Ve),H=Array(Ve).fill(null),Ue=new Int32Array(Ve),We=new Int32Array(Ve),Ge=new Uint8Array(Ve),Ke=0,qe=(e,t,n,r,i,a,o,s)=>{let c=e;if(H[e]!==null){if(H[e|1]===null)c=e|1;else if(!(Ke++&3))c=e|Ke>>2&1;else return}H[c]=t.slice(n,r),He[c]=i,Ue[c]=a,We[c]=o,Ge[c]=s},Je=()=>H.fill(null),U=256,Ye=[new Int32Array(U),new Int32Array(U),new Int32Array(U),new Int32Array(U)],[W,G,K,Xe]=Ye,Ze=new Uint8Array(U),q=new Uint8Array(U),Qe=()=>{U*=2,Ye=Ye.map(e=>{let t=new Int32Array(U);return t.set(e),t}),[W,G,K,Xe]=Ye;let e=new Uint8Array(U);e.set(Ze),Ze=e,q=new Uint8Array(U)},$e=64,et=new Int32Array($e),tt=new Int32Array($e),nt=new Int32Array(r),J=2048,rt=21,it=new Float64Array(J),at=new Int32Array(J),Y=0,ot=(e,t)=>{if(e===0&&t<r)return nt[t]===Y?1:(nt[t]=Y,0);let n=e*2097152+t+1,i=Math.imul(n,2654435761)>>>rt;for(;at[i]===Y;){if(it[i]===n)return 1;i=i+1&J-1}return it[i]=n,at[i]=Y,0},st=(e,t,n,r,i)=>{if(n-t>=2&&e.charCodeAt(t)===91&&e.charCodeAt(n-1)===93){let r=-1;for(let i=t+1;i<n-1;i++)if(e.charCodeAt(i)===58){r=i;break}return r===-1||r===t+1?k:Ae(Ie,e,t+1,r,0,ze)}if(r>=0&&c[r]>=0)return c[r];for(let t=i-1;t>=0;t--){let r=tt[t];if(r>n)continue;let i=et[t],a=n-r;if(ie[i]===1&&a>0&&a<=P){let t=e.charCodeAt(r);if(F===!1||t!==91&&t!==40){let t=R(i,e,r,n);if(t>=0)return t}}let o=l[i];if(o<0)continue;let s=f[o],c=u[s],m=u[s+1];if(c===m)continue;ye(e,r,n);let h=O[o]-c;for(let t=c;t<m;t++)if(Oe(d[t],e,r,n))return p[h+t]}return k},ct=e=>{let t=e.length,n=0,c=0,u=!1;(Ne>Pe||je.size>Pe)&&(je=new Map,Me=new Map,Ne=2,Je()),Le>Re&&(Ie=new Map,Le=r,Je());let d=0;for(;d<t;){let f=e.charCodeAt(d);if(f===32||f>=9&&f<=13||f>=160&&ve(f)){f!==32&&(u=!0),d++;continue}let p=d,m=0;for(;d<t;){if(f=e.charCodeAt(d),f<=32){if(f===32)break;if(f>=9&&f<=13){u=!0;break}}else if(f>=160&&ve(f)){u=!0;break}m=Math.imul(m^f,16777619),d++}let h=d,g=h-p;n===U&&Qe();let _=n++;W[_]=p,G[_]=h,c+=g,m^=Math.imul(g,2654435761);let v=m^m>>>15,y=v&8190;{let t=-1;if(He[y]===v&&H[y]!==null&&H[y].length===g?t=y:He[y|1]===v&&H[y|1]!==null&&H[y|1].length===g&&(t=y|1),t>=0){let n=H[t],r=!0;for(let t=0;t<g;t++)if(n.charCodeAt(t)!==e.charCodeAt(p+t)){r=!1;break}if(r){K[_]=Ue[t],Xe[_]=We[t],Ze[_]=Ge[t];continue}}}let b=p;if(ce!==0){if(h-p<=ce||!e.startsWith(se,p)){K[_]=k,qe(y,e,p,h,v,k,0,0);continue}b=p+ce}let x=0,S=0,C=-1,ee=-1;for(let t=b;t<h;t++){let n=e.charCodeAt(t);if(x===0&&S===0){if(n===58){C=t;continue}if(n===47){ee=t;continue}}n===91?x++:n===93?x--:n===40?S++:n===41&&S--}let te=C>=b?C+1:b,w=te,T=h,E=!1,D=0;T>w&&e.charCodeAt(T-1)===33?(E=!0,T--):T>w&&e.charCodeAt(w)===33&&(E=!0,w++,D=1);let O=-1;ee>te&&(O=ee+D,O>=T&&(O=-1));let ne=w;T-w>1&&e.charCodeAt(w)===45&&(ne=w+1);let j=0,M=0,N=0,ae=-1,P=0;(l[0]>=0||ie[0]===1)&&(et[0]=0,tt[0]=ne,P=1);let F=A,I=0;for(let t=ne;t<T;t++)if(t===O&&(F=M<N?A:j,I=P),j!==A){let n=e.charCodeAt(t),r=-1;if(M<N)o.charCodeAt(M)===n?(M++,M===N&&(r=j=ae)):j=A;else{let e=i[j],t=i[j+1],c=A;for(let i=e;i<t;i++){let e=a[i];if(o.charCodeAt(e)===n){a[i+1]-e===1?r=c=s[i]:(M=e+1,N=a[i+1],ae=s[i],c=j);break}}j=c}if(r>=0&&(l[r]>=0||ie[r]===1)&&t+1<T&&e.charCodeAt(t+1)===45){if(P===$e){$e*=2;let e=new Int32Array($e);e.set(et),et=e;let t=new Int32Array($e);t.set(tt),tt=t}et[P]=r,tt[P]=t+2,P++}}O===T&&(F=M<N?A:j,I=P);let L=M<N?A:j,R,z=!1;if(O>=0){if(z=!0,R=st(e,w,O,F,I),R!==k&&R<r&&re[R]){let t=st(e,w,T,L,P);t!==k&&t!==R&&(R=t,z=!1)}else R===k&&(R=st(e,w,T,L,P),z=!1)}else R=st(e,w,T,L,P);let oe=0,le=0;R===k?K[_]=k:(le=+!!z,oe=b>=C?+!!E:Ae(je,e,b,C,+!!E,e=>Fe(e,E)),K[_]=R,Ze[_]=le,Xe[_]=oe),qe(y,e,p,h,v,R,oe,le)}if(n===0)return``;if(n===1)return W[0]===0&&G[0]===t?e:e.slice(W[0],G[0]);if(n*D>J){for(;n*D>J;)J<<=1,rt--;it=new Float64Array(J),at=new Int32Array(J)}if(Ne>=Be||Le>=Be)throw Error(`cn: too many distinct classes in one merge`);Y=Y+1|0,Y===0&&(nt.fill(0),at.fill(0),Y=1);let f=!1;for(let e=n-1;e>=0;e--){let t=K[e];if(t===k){q[e]=1;continue}let n=Xe[e];if(ot(n,t)===1)q[e]=0,f=!0;else if(q[e]=1,t<r){let r=T[t];if(r>=0)for(let e=b[r];e<b[r+1];e++)ot(n,x[e]);if(Ze[e]&1)for(let e=0;e<S.length;e++)S[e]===t&&ot(n,C[e])}}if(!f&&!u&&t===c+n-1)return e;let p=``,m=0;for(;m<n;){if(!q[m]){m++;continue}let t=W[m],r=G[m],i=m+1;for(;i<n&&q[i]&&W[i]===r+1&&e.charCodeAt(r)===32;)r=G[i],i++;p.length>0&&(p+=` `),p+=e.slice(t,r),m=i}return p},X=16384,Z=new Int32Array(X*2),lt=0,Q=1,ut=Object.create(null),dt=Object.create(null),$=new Map,ft=new Map,pt=0,mt=0,ht=()=>{lt^=X,Q=Q+1|0,mt=0},gt=e=>{let t=ut[e];if(t!==void 0)return t;let n=M(e,0,e.length),r=(n&16383)+lt,i=Z[r]===(n^Q)||Z[r^X]===(n^Q-1);return i&&(t=dt[e],t!==void 0)?(ut[e]=t,t):(t=ct(e),i?(ut[e]=t,++pt>z&&(pt=0,dt=ut,ut=Object.create(null),ht())):(Z[r]=n^Q,++mt>X&&ht()),t)},_t=e=>{let t=$.get(e);if(t!==void 0)return t;let n=M(e,0,e.length),r=(n&16383)+lt,i=Z[r]===(n^Q)||Z[r^X]===(n^Q-1);return i&&(t=ft.get(e),t!==void 0)?($.set(e,t),t):(t=ct(e),i?($.set(e,t),++pt>z&&(pt=0,ft=$,$=new Map,ht())):(Z[r]=n^Q,++mt>X&&ht()),t)},vt=e=>{let t=M(e,0,e.length),n=(t&16383)+lt;return Z[n]===(t^Q)||Z[n^X]===(t^Q-1)||(Z[n]=t^Q,++mt>X&&ht(),!1)},yt=z===0?ct:ne?e=>{let t=$.get(e);return t===void 0?_t(e):t}:gt;return{merge:function(){return arguments.length===1&&typeof arguments[0]==`string`?yt(arguments[0]):yt(ae.apply(null,arguments))},mergeString:yt,seenBefore:z===0?()=>!1:vt,mergeUncached:ct}},N=(e,t)=>{if(!e)return``;if(typeof e==`string`)return e;let n=``;if(typeof e.length==`number`&&(!t||Array.isArray(e))){let r=e;for(let e=0;e<r.length;e++){let i=r[e];if(!i)continue;let a=typeof i==`string`?i:N(i,t);a&&(n&&(n+=` `),n+=a)}return n}if(t){if(typeof e==`number`)return``+e;if(typeof e==`object`)for(let t in e)e[t]&&(n&&(n+=` `),n+=t)}return n},ie=(e,t)=>{let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(!i)continue;let a=typeof i==`string`?i:N(i,t);a&&(n&&(n+=` `),n+=a)}return n},ae=function(){return ie(arguments,!1)},P=256,F=16,I=1024,L=4096,R=(e,t)=>{let n=t===void 0?()=>!0:t.seenBefore,r=t===void 0?e:t.mergeUncached,i=new Map,a=new Map,o=0,s=null,c=null,l=[],u=[],d=0,f=(t,n,r)=>{c===null&&(c=Array(L).fill(``),l=Array(L).fill(``),u=Array(L).fill(``));let i=M(t,0,t.length)&4094;if(c[i]===t&&l[i]===n)return u[i];if(c[i|1]===t&&l[i|1]===n)return u[i|1];let a=e(r?n+` `+t:t),o=c[i]===``?i:i|(c[i|1]===``?1:d++&1);return c[o]=t,l[o]=n,u[o]=a,a},p=(e,t,n,r)=>{let i=0;if(t){if(t!==e.a0)return!1;i=1}if(n){if(n!==(i===0?e.a0:e.a1))return!1;i++}if(r){if(r!==(i===0?e.a0:i===1?e.a1:e.a2))return!1;i++}return i===e.t},m=(e,t)=>{let n=e.a,r=0;for(let e=0;e<t.length;e++){let i=t[e];if(i){if(i!==n[r])return!1;r++}}return r===e.t},h=(t,c)=>{let l=t.length,u=s===null?null:s.n;if(!c){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let d=``,p=-1,h=0,g=!1;for(let e=0;e<l;e++){let n=t[e];if(n){if(typeof n!=`string`){if(n=t[e]=N(n,!0),!n)continue;g=!0}p<0&&(d=n,p=e),h++}}if(h===0)return``;if(h===1)return e(d);if(g){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let _=i.get(d);_===void 0&&(_=a.get(d),_!==void 0&&i.set(d,_));let v=null;if(_!==void 0){if(_.skip>0){_.skip--,s=null;let e=d;for(let n=p+1;n<l;n++){let r=t[n];r&&(e+=` `+r)}return f(e,``,!1)}let e=_.e;outer:for(let n=0;n<e.length;n++){let r=e[n];if(r.t!==h)continue;let i=r.a,a=1;for(let e=p+1;e<l;e++){let n=t[e];if(n&&n!==i[a++])continue outer}v=r;break}v!==null&&(_.miss=0)}if(v===null){let s=d,c=[d];for(let e=p+1;e<l;e++){let n=t[e];n&&(s+=` `+n,c.push(n))}if(!n(s))return r(s);v={r:e(s),t:c.length,a0:c[0],a1:c[1],a2:c[2]??``,a:c,n:null},_===void 0?i.set(d,_={e:[],miss:0,skip:0,at:0}):++_.miss>F&&(_.miss=F,_.skip=I,_.e.length=0,_.at=0);let u=_.e;u.length<P?u.push(v):(u[_.at]=v,_.at=_.at+1&255),++o>1e3&&(o=0,a=i,i=new Map)}return s!==null&&s!==v&&(s.n=v),s=v,v.r},g=t=>Array.isArray(t)?h(t.slice(),!1):e(N(t,!0));return function(t,n,r){let a=arguments.length;if((a|1)==3){let e=s;if(e!==null){let i=e.n;if(i!==null&&p(i,t,n,r))return s=i,i.r;if(e!==i&&p(e,t,n,r))return e.r}if(a===2&&typeof n==`string`&&n!==``){let e=i.get(t);if(e!==void 0&&e.skip>0)return e.skip--,s=null,f(n,t,!0)}return h([t,n,r],!0)}if(a===1)return typeof t==`string`?e(t):g(t);let o=s;if(o!==null){let e=o.n;if(e!==null){let t=e.a,n=0,r=!0;for(let e=0;e<a;e++){let i=arguments[e];if(i){if(i!==t[n]){r=!1;break}n++}}if(r&&n===e.t)return s=e,e.r}if(o!==e){let e=o.a,t=0,n=!0;for(let r=0;r<a;r++){let i=arguments[r];if(i){if(i!==e[t]){n=!1;break}t++}}if(n&&t===o.t)return o.r}}let c=[];for(let e=0;e<a;e++)c.push(arguments[e]);return h(c,!0)}},z=re(O),oe=R(z.mergeString,z);z.merge,Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return oe}});
|
package/dist/dist-Co_xSt6d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-DW2ltK5-.js"),n=require("./dist-CJqVmdrU.js"),r=require("./dist-B7jnFMko.js");let i=require("react"),a=e.r(i,1);i=e.r(i);let o=require("react/jsx-runtime");var s=Object.defineProperty,c=(e,t)=>s(e,`name`,{value:t,configurable:!0});function l(e){let r=e+`CollectionProvider`,[i,s]=t.t(r),[l,u]=i(r,{collectionRef:{current:null},itemMap:new Map}),d=c(e=>{let{scope:t,children:n}=e,r=a.useRef(null),i=a.useRef(new Map).current;return(0,o.jsx)(l,{scope:t,itemMap:i,collectionRef:r,children:n})},`CollectionProvider`);d.displayName=r;let f=e+`CollectionSlot`,p=n.n(f),m=a.forwardRef((e,t)=>{let{scope:r,children:i}=e,a=u(f,r),s=n.a(t,a.collectionRef);return(0,o.jsx)(p,{ref:s,children:i})});m.displayName=f;let h=e+`CollectionItemSlot`,g=`data-radix-collection-item`,_=n.n(h),v=a.forwardRef((e,t)=>{let{scope:r,children:i,...s}=e,c=a.useRef(null),l=n.a(t,c),d=u(h,r);return a.useEffect(()=>(d.itemMap.set(c,{ref:c,...s}),()=>void d.itemMap.delete(c))),(0,o.jsx)(_,{[g]:``,ref:l,children:i})});v.displayName=h;function y(t){let n=u(e+`CollectionConsumer`,t);return a.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return c(y,`useCollection`),[{Provider:d,Slot:m,ItemSlot:v},y,s]}c(l,`createCollection`);var u=new WeakMap,d=class e extends Map{static{c(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],u.set(this,!0)}set(e,t){return u.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=r?this.size:this.size+1,a=m(e),o=a>=0?Math.min(a,i-1):Math.max(i+a,0);if(r?this.#e.indexOf(t)===o:o===this.size)return this.set(t,n),this;let s=this.#e.filter(e=>e!==t);s.splice(o,0,t);let c=s.map(e=>[e,e===t?n:this.get(e)]);this.clear();for(let[e,t]of c)this.set(e,t);return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<r?r-1:r;return this.insert(a,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<=r?r:r+1;return this.insert(a,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=f(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=f(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return f(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(t){if(typeof t!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e;for(let e of this.#e.slice(t,n))r.set(e,this.get(e));return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function f(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=p(e,t);return n===-1?void 0:e[n]}c(f,`at`);function p(e,t){let n=e.length,r=m(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}c(p,`toSafeIndex`);function m(e){return e!==e||e===0?0:Math.trunc(e)}c(m,`toSafeInteger`);function h(e){let i=e+`CollectionProvider`,[s,l]=t.t(i),[u,f]=s(i);u.displayName=e+`CollectionStableContextProvider`;let[p,m]=s(i);p.displayName=e+`CollectionStatefulContextProvider`;let h=c(({state:e,...t})=>e?(0,o.jsx)(x,{...t,state:e}):(0,o.jsx)(_,{...t}),`CollectionProvider`);h.displayName=i;let _=c(e=>{let t=O();return(0,o.jsx)(x,{...e,state:t})},`CollectionInit`);_.displayName=e+`CollectionInit`;let x=c(e=>{let{scope:t,children:r,state:i}=e,s=a.useRef(null),[c,l]=a.useState(null),f=n.a(s,l),[m,h]=i,g=a.useRef(new d),_=a.useCallback(()=>{let e=g.current;return v(e)||e.sort(y),e},[]);return a.useEffect(()=>{if(!c)return;let e=b(()=>{h(e=>{let t=e.toSorted(y);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(c,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[c,h]),(0,o.jsx)(u,{scope:t,collectionElementRef:f,collectionElementRefObject:s,getCollection:_,setCollection:h,registryRef:g,children:(0,o.jsx)(p,{scope:t,collectionElement:c,collection:m,children:r})})},`CollectionProviderImpl`);x.displayName=e+`CollectionProviderImpl`;let S=e+`CollectionSlot`,C=n.n(S),w=a.forwardRef((e,t)=>{let{scope:r,children:i}=e,a=f(S,r),s=n.a(t,a.collectionElementRef);return(0,o.jsx)(C,{ref:s,children:i})});w.displayName=S;let T=e+`CollectionItemSlot`,E=n.n(T),D=a.forwardRef((e,t)=>{let{scope:i,children:s,...c}=e,l=a.useRef(null),{setCollection:u,registryRef:p}=f(T,i),m=a.useRef(c);g(m.current,c)||(m.current=c);let h=m.current,_=a.useCallback(e=>{let t=p.current;e?t.set(e,{...m.current,element:e}):l.current&&t.delete(l.current)},[p]),v=n.a(t,_,l);r.t(()=>{let e=l.current,t=p.current;e&&t.has(e)&&t.set(e,{...h,element:e})},[h,p]);let b=a.useRef(null);return a.useEffect(()=>{let e=l.current,t=b.current;((t?.element??null)!==e||e&&t?.itemData!==h)&&(b.current=e?{element:e,itemData:h}:null,u(n=>{let r=new d(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...h,element:e}),r.sort(y)}))}),a.useEffect(()=>()=>{let e=b.current;b.current=null,e&&u(t=>{if(!t.has(e.element))return t;let n=new d(t);return n.delete(e.element),n})},[u]),(0,o.jsx)(E,{"data-radix-collection-item":``,ref:v,children:s})});D.displayName=T;function O(){return a.useState(new d)}c(O,`useInitCollection`);function k(t){let{collection:n}=m(e+`CollectionConsumer`,t);return n}c(k,`useCollection`);function A(t){let{getCollection:n}=f(e+`CollectionConsumer`,t);return n}return c(A,`useGetCollection`),[{Provider:h,Slot:w,ItemSlot:D},{createCollectionScope:l,useCollection:k,useGetCollection:A,useInitCollection:O}]}c(h,`createCollection`);function g(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}c(g,`shallowEqual`);function _(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}c(_,`isElementPreceding`);function v(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}c(v,`isInDocumentOrder`);function y(e,t){return!e[1].element||!t[1].element?0:_(e[1].element,t[1].element)?-1:1}c(y,`sortByDocumentPosition`);function b(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}c(b,`getChildListObserver`),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
|
package/dist/dist-Cu0GG-3j.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-DhubV_gU.mjs";
|
|
2
|
-
import * as t from "react";
|
|
3
|
-
// ../../node_modules/.bun/@radix-ui+react-id@1.1.4+0ac650c021fb1b59/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
4
|
-
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
|
-
value: t,
|
|
6
|
-
configurable: !0
|
|
7
|
-
}), i = t.useId || (() => void 0), a = 0;
|
|
8
|
-
function o(n) {
|
|
9
|
-
let [r, o] = t.useState(i());
|
|
10
|
-
return e(() => {
|
|
11
|
-
n || o((e) => e ?? String(a++));
|
|
12
|
-
}, [n]), n || (r ? `radix-${r}` : "");
|
|
13
|
-
}
|
|
14
|
-
r(o, "useId");
|
|
15
|
-
export { o as t };
|
package/dist/dist-DJqkhIXb.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=(t,n)=>e(t,`name`,{value:n,configurable:!0});function n(e,[t,n]){return Math.min(n,Math.max(t,e))}t(n,`clamp`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return n}});
|
package/dist/dist-DKI-XYwI.mjs
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-DhubV_gU.mjs";
|
|
2
|
-
import * as t from "react";
|
|
3
|
-
// ../../node_modules/.bun/@radix-ui+react-use-effect-event@0.0.5+0ac650c021fb1b59/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs
|
|
4
|
-
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
|
-
value: t,
|
|
6
|
-
configurable: !0
|
|
7
|
-
}), i = t.useEffectEvent, a = t.useInsertionEffect;
|
|
8
|
-
function o(n) {
|
|
9
|
-
if (typeof i == "function") return i(n);
|
|
10
|
-
let r = t.useRef(() => {
|
|
11
|
-
throw Error("Cannot call an event handler while rendering.");
|
|
12
|
-
});
|
|
13
|
-
return typeof a == "function" ? a(() => {
|
|
14
|
-
r.current = n;
|
|
15
|
-
}) : e(() => {
|
|
16
|
-
r.current = n;
|
|
17
|
-
}), t.useMemo(() => ((...e) => r.current?.(...e)), []);
|
|
18
|
-
}
|
|
19
|
-
r(o, "useEffectEvent");
|
|
20
|
-
// ../../node_modules/.bun/@radix-ui+react-use-controllable-state@1.3.0+0ac650c021fb1b59/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
21
|
-
var s = Object.defineProperty, c = (e, t) => s(e, "name", {
|
|
22
|
-
value: t,
|
|
23
|
-
configurable: !0
|
|
24
|
-
}), l = t.useInsertionEffect || e;
|
|
25
|
-
function u({ prop: e, defaultProp: n, onChange: r = /* @__PURE__ */ c(() => {}, "onChange"), caller: i }) {
|
|
26
|
-
let [a, o, s] = d({
|
|
27
|
-
defaultProp: n,
|
|
28
|
-
onChange: r
|
|
29
|
-
}), l = e !== void 0;
|
|
30
|
-
return [l ? e : a, t.useCallback((t) => {
|
|
31
|
-
if (l) {
|
|
32
|
-
let n = f(t) ? t(e) : t;
|
|
33
|
-
n !== e && s.current?.(n);
|
|
34
|
-
} else o(t);
|
|
35
|
-
}, [
|
|
36
|
-
l,
|
|
37
|
-
e,
|
|
38
|
-
o,
|
|
39
|
-
s
|
|
40
|
-
])];
|
|
41
|
-
}
|
|
42
|
-
c(u, "useControllableState");
|
|
43
|
-
function d({ defaultProp: e, onChange: n }) {
|
|
44
|
-
let [r, i] = t.useState(e), a = t.useRef(r), o = t.useRef(n);
|
|
45
|
-
return l(() => {
|
|
46
|
-
o.current = n;
|
|
47
|
-
}, [n]), t.useEffect(() => {
|
|
48
|
-
a.current !== r && (o.current?.(r), a.current = r);
|
|
49
|
-
}, [r, a]), [
|
|
50
|
-
r,
|
|
51
|
-
i,
|
|
52
|
-
o
|
|
53
|
-
];
|
|
54
|
-
}
|
|
55
|
-
c(d, "useUncontrolledState");
|
|
56
|
-
function f(e) {
|
|
57
|
-
return typeof e == "function";
|
|
58
|
-
}
|
|
59
|
-
c(f, "isFunction");
|
|
60
|
-
var p = Symbol("RADIX:SYNC_STATE");
|
|
61
|
-
function m(e, n, r, i) {
|
|
62
|
-
let { prop: a, defaultProp: s, onChange: c, caller: l } = n, u = a !== void 0, d = o(c), f = [{
|
|
63
|
-
...r,
|
|
64
|
-
state: s
|
|
65
|
-
}];
|
|
66
|
-
i && f.push(i);
|
|
67
|
-
let [m, h] = t.useReducer((t, n) => {
|
|
68
|
-
if (n.type === p) return {
|
|
69
|
-
...t,
|
|
70
|
-
state: n.state
|
|
71
|
-
};
|
|
72
|
-
let r = e(t, n);
|
|
73
|
-
return u && !Object.is(r.state, t.state) && d(r.state), r;
|
|
74
|
-
}, ...f), g = m.state, _ = t.useRef(g);
|
|
75
|
-
t.useEffect(() => {
|
|
76
|
-
_.current !== g && (_.current = g, u || d(g));
|
|
77
|
-
}, [
|
|
78
|
-
g,
|
|
79
|
-
_,
|
|
80
|
-
u
|
|
81
|
-
]);
|
|
82
|
-
let v = t.useMemo(() => a === void 0 ? m : {
|
|
83
|
-
...m,
|
|
84
|
-
state: a
|
|
85
|
-
}, [m, a]);
|
|
86
|
-
return t.useEffect(() => {
|
|
87
|
-
u && !Object.is(a, m.state) && h({
|
|
88
|
-
type: p,
|
|
89
|
-
state: a
|
|
90
|
-
});
|
|
91
|
-
}, [
|
|
92
|
-
a,
|
|
93
|
-
m.state,
|
|
94
|
-
u
|
|
95
|
-
]), [v, h];
|
|
96
|
-
}
|
|
97
|
-
c(m, "useControllableStateReducer");
|
|
98
|
-
export { u as t };
|
package/dist/dist-DQeXXRYL.mjs
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-B76UOZbx.mjs";
|
|
2
|
-
import { a as t, n } from "./dist-C516Vwxy.mjs";
|
|
3
|
-
import { t as r } from "./dist-COqM3IM6.mjs";
|
|
4
|
-
import { t as i } from "./dist-Cu0GG-3j.mjs";
|
|
5
|
-
import { t as a } from "./dist-DKI-XYwI.mjs";
|
|
6
|
-
import { r as o, t as s } from "./dist-CbWpCWog.mjs";
|
|
7
|
-
import { i as c, n as l, t as u } from "./dist-CDksSmTD.mjs";
|
|
8
|
-
import { t as d } from "./dist-CcGLWbPa.mjs";
|
|
9
|
-
import { t as f } from "./dist-BnlI08Je.mjs";
|
|
10
|
-
import { t as p } from "./dist-B7Ph9-T6.mjs";
|
|
11
|
-
import { n as m, r as h, t as g } from "./es2015-BooeZGhO.mjs";
|
|
12
|
-
import { t as _ } from "./dist-DhubV_gU.mjs";
|
|
13
|
-
import * as v from "react";
|
|
14
|
-
import { jsx as y } from "react/jsx-runtime";
|
|
15
|
-
// ../../node_modules/.bun/@radix-ui+react-dialog@1.3.1+2b23df507bdda662/node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
16
|
-
var b = Object.defineProperty, x = (e, t) => b(e, "name", {
|
|
17
|
-
value: t,
|
|
18
|
-
configurable: !0
|
|
19
|
-
}), S = "Dialog", [C, w] = r(S), [T, E] = C(S), D = /* @__PURE__ */ x((e) => {
|
|
20
|
-
let { __scopeDialog: t, children: n, open: r, defaultOpen: o, onOpenChange: s, modal: l = !0 } = e, u = v.useRef(null), d = v.useRef(null), { nodes: f, registry: p } = c(), [m, h] = a({
|
|
21
|
-
prop: r,
|
|
22
|
-
defaultProp: o ?? !1,
|
|
23
|
-
onChange: s,
|
|
24
|
-
caller: S
|
|
25
|
-
}), [g, _] = v.useState(0), [b, x] = v.useState(0);
|
|
26
|
-
return /* @__PURE__ */ y(T, {
|
|
27
|
-
scope: t,
|
|
28
|
-
triggerRef: u,
|
|
29
|
-
contentRef: d,
|
|
30
|
-
contentId: i(),
|
|
31
|
-
titleId: i(),
|
|
32
|
-
descriptionId: i(),
|
|
33
|
-
titlePresent: g > 0,
|
|
34
|
-
descriptionPresent: b > 0,
|
|
35
|
-
setTitleCount: _,
|
|
36
|
-
setDescriptionCount: x,
|
|
37
|
-
open: m,
|
|
38
|
-
onOpenChange: h,
|
|
39
|
-
onOpenToggle: v.useCallback(() => h((e) => !e), [h]),
|
|
40
|
-
modal: l,
|
|
41
|
-
branchNodes: f,
|
|
42
|
-
branchRegistry: p,
|
|
43
|
-
children: n
|
|
44
|
-
});
|
|
45
|
-
}, "Dialog"), O = "DialogTrigger", k = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(n, r) {
|
|
46
|
-
let { __scopeDialog: i, ...a } = n, o = E(O, i), s = t(r, o.triggerRef);
|
|
47
|
-
return /* @__PURE__ */ y(p.button, {
|
|
48
|
-
type: "button",
|
|
49
|
-
"aria-haspopup": "dialog",
|
|
50
|
-
"aria-expanded": o.open,
|
|
51
|
-
"aria-controls": o.open ? o.contentId : void 0,
|
|
52
|
-
"data-state": J(o.open),
|
|
53
|
-
...a,
|
|
54
|
-
ref: s,
|
|
55
|
-
onClick: e(n.onClick, o.onOpenToggle)
|
|
56
|
-
});
|
|
57
|
-
}, "DialogTrigger")), A = "DialogPortal", [j, M] = C(A, { forceMount: void 0 }), N = /* @__PURE__ */ x((e) => {
|
|
58
|
-
let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a = E(A, t);
|
|
59
|
-
return /* @__PURE__ */ y(j, {
|
|
60
|
-
scope: t,
|
|
61
|
-
forceMount: n,
|
|
62
|
-
children: v.Children.map(r, (e) => /* @__PURE__ */ y(f, {
|
|
63
|
-
present: n || a.open,
|
|
64
|
-
children: /* @__PURE__ */ y(d, {
|
|
65
|
-
asChild: !0,
|
|
66
|
-
container: i,
|
|
67
|
-
children: e
|
|
68
|
-
})
|
|
69
|
-
}))
|
|
70
|
-
});
|
|
71
|
-
}, "DialogPortal"), P = "DialogOverlay", F = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
|
|
72
|
-
let n = M(P, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = E(P, e.__scopeDialog);
|
|
73
|
-
return a.modal ? /* @__PURE__ */ y(f, {
|
|
74
|
-
present: r || a.open,
|
|
75
|
-
children: /* @__PURE__ */ y(L, {
|
|
76
|
-
...i,
|
|
77
|
-
ref: t
|
|
78
|
-
})
|
|
79
|
-
}) : null;
|
|
80
|
-
}, "DialogOverlay")), I = n("DialogOverlay.RemoveScroll"), L = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, n) {
|
|
81
|
-
let { __scopeDialog: r, ...i } = e, a = E(P, r), s = o(), c = t(n, s);
|
|
82
|
-
return /* @__PURE__ */ y(m, {
|
|
83
|
-
as: I,
|
|
84
|
-
allowPinchZoom: !0,
|
|
85
|
-
shards: v.useMemo(() => [a.contentRef, ...a.branchNodes.map((e) => ({ current: e }))], [a.contentRef, a.branchNodes]),
|
|
86
|
-
children: /* @__PURE__ */ y(p.div, {
|
|
87
|
-
"data-state": J(a.open),
|
|
88
|
-
...i,
|
|
89
|
-
ref: c,
|
|
90
|
-
style: {
|
|
91
|
-
pointerEvents: "auto",
|
|
92
|
-
...i.style
|
|
93
|
-
}
|
|
94
|
-
})
|
|
95
|
-
});
|
|
96
|
-
}, "DialogOverlayImpl")), R = "DialogContent", z = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
|
|
97
|
-
let n = M(R, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = E(R, e.__scopeDialog);
|
|
98
|
-
return /* @__PURE__ */ y(f, {
|
|
99
|
-
present: r || a.open,
|
|
100
|
-
children: a.modal ? /* @__PURE__ */ y(B, {
|
|
101
|
-
...i,
|
|
102
|
-
ref: t
|
|
103
|
-
}) : /* @__PURE__ */ y(V, {
|
|
104
|
-
...i,
|
|
105
|
-
ref: t
|
|
106
|
-
})
|
|
107
|
-
});
|
|
108
|
-
}, "DialogContent")), B = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(n, r) {
|
|
109
|
-
let i = E(R, n.__scopeDialog), a = v.useRef(null), o = t(r, i.contentRef, a);
|
|
110
|
-
return v.useEffect(() => {
|
|
111
|
-
let e = a.current;
|
|
112
|
-
if (e) return g(e);
|
|
113
|
-
}, []), /* @__PURE__ */ y(H, {
|
|
114
|
-
...n,
|
|
115
|
-
ref: o,
|
|
116
|
-
trapFocus: i.open,
|
|
117
|
-
disableOutsidePointerEvents: i.open,
|
|
118
|
-
onCloseAutoFocus: e(n.onCloseAutoFocus, (e) => {
|
|
119
|
-
e.preventDefault(), i.triggerRef.current?.focus();
|
|
120
|
-
}),
|
|
121
|
-
onPointerDownOutside: e(n.onPointerDownOutside, (e) => {
|
|
122
|
-
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
123
|
-
(t.button === 2 || n) && e.preventDefault();
|
|
124
|
-
}),
|
|
125
|
-
onFocusOutside: e(n.onFocusOutside, (e) => e.preventDefault())
|
|
126
|
-
});
|
|
127
|
-
}, "DialogContentModal")), V = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
|
|
128
|
-
let n = E(R, e.__scopeDialog), r = v.useRef(!1), i = v.useRef(!1);
|
|
129
|
-
return /* @__PURE__ */ y(H, {
|
|
130
|
-
...e,
|
|
131
|
-
ref: t,
|
|
132
|
-
trapFocus: !1,
|
|
133
|
-
disableOutsidePointerEvents: !1,
|
|
134
|
-
onCloseAutoFocus: (t) => {
|
|
135
|
-
e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
|
|
136
|
-
},
|
|
137
|
-
onInteractOutside: (t) => {
|
|
138
|
-
e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
|
|
139
|
-
let a = t.target;
|
|
140
|
-
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
}, "DialogContentNonModal")), H = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
|
|
144
|
-
let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, "aria-describedby": o, children: c, ...d } = e, f = E(R, n);
|
|
145
|
-
return h(), /* @__PURE__ */ y(l, {
|
|
146
|
-
registry: f.branchRegistry,
|
|
147
|
-
children: /* @__PURE__ */ y(u, {
|
|
148
|
-
asChild: !0,
|
|
149
|
-
loop: !0,
|
|
150
|
-
trapped: r,
|
|
151
|
-
branches: f.branchNodes,
|
|
152
|
-
onMountAutoFocus: i,
|
|
153
|
-
onUnmountAutoFocus: a,
|
|
154
|
-
children: /* @__PURE__ */ y(s, {
|
|
155
|
-
role: "dialog",
|
|
156
|
-
id: f.contentId,
|
|
157
|
-
"aria-labelledby": f.titlePresent ? f.titleId : void 0,
|
|
158
|
-
"aria-describedby": f.descriptionPresent ? q(o, f.descriptionId) : o,
|
|
159
|
-
"data-state": J(f.open),
|
|
160
|
-
...d,
|
|
161
|
-
ref: t,
|
|
162
|
-
deferPointerDownOutside: !0,
|
|
163
|
-
onDismiss: () => f.onOpenChange(!1),
|
|
164
|
-
children: c
|
|
165
|
-
})
|
|
166
|
-
})
|
|
167
|
-
});
|
|
168
|
-
}, "DialogContentImpl")), U = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
|
|
169
|
-
let { __scopeDialog: n, ...r } = e, i = E("DialogTitle", n), { setTitleCount: a } = i;
|
|
170
|
-
return _(() => (a((e) => e + 1), () => a((e) => e - 1)), [a]), /* @__PURE__ */ y(p.h2, {
|
|
171
|
-
id: i.titleId,
|
|
172
|
-
...r,
|
|
173
|
-
ref: t
|
|
174
|
-
});
|
|
175
|
-
}, "DialogTitle")), W = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
|
|
176
|
-
let { __scopeDialog: n, ...r } = e, i = E("DialogDescription", n), { setDescriptionCount: a } = i;
|
|
177
|
-
return _(() => (a((e) => e + 1), () => a((e) => e - 1)), [a]), /* @__PURE__ */ y(p.p, {
|
|
178
|
-
id: i.descriptionId,
|
|
179
|
-
...r,
|
|
180
|
-
ref: t
|
|
181
|
-
});
|
|
182
|
-
}, "DialogDescription")), G = "DialogClose", K = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(t, n) {
|
|
183
|
-
let { __scopeDialog: r, ...i } = t, a = E(G, r);
|
|
184
|
-
return /* @__PURE__ */ y(p.button, {
|
|
185
|
-
type: "button",
|
|
186
|
-
...i,
|
|
187
|
-
ref: n,
|
|
188
|
-
onClick: e(t.onClick, () => a.onOpenChange(!1))
|
|
189
|
-
});
|
|
190
|
-
}, "DialogClose"));
|
|
191
|
-
function q(...e) {
|
|
192
|
-
let t = /* @__PURE__ */ new Set();
|
|
193
|
-
for (let n of e) if (typeof n == "string") for (let e of String(n).trim().split(/\s+/)) e && t.add(e);
|
|
194
|
-
return t.size > 0 ? Array.from(t).join(" ") : void 0;
|
|
195
|
-
}
|
|
196
|
-
x(q, "concatAriaDescribedby");
|
|
197
|
-
function J(e) {
|
|
198
|
-
return e ? "open" : "closed";
|
|
199
|
-
}
|
|
200
|
-
x(J, "getState");
|
|
201
|
-
export { F as a, k as c, W as i, w as l, K as n, N as o, z as r, U as s, D as t };
|
package/dist/dist-DW2ltK5-.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js");let t=require("react"),n=e.r(t,1);t=e.r(t);let r=require("react/jsx-runtime");var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0});function o(e,t){let i=n.createContext(t);i.displayName=e+`Context`;let o=a(e=>{let{children:t,...a}=e,o=n.useMemo(()=>a,Object.values(a));return(0,r.jsx)(i.Provider,{value:o,children:t})},`Provider`);o.displayName=e+`Provider`;function s(r,a={}){let{optional:o=!1}=a,s=n.useContext(i);if(s)return s;if(t!==void 0)return t;if(!o)throw Error(`\`${r}\` must be used within \`${e}\``)}return a(s,`useContext`),[o,s]}a(o,`createContext`);function s(e,t=[]){let i=[];function o(t,o){let s=n.createContext(o);s.displayName=t+`Context`;let c=i.length;i=[...i,o];let l=a(t=>{let{scope:i,children:a,...o}=t,l=i?.[e]?.[c]||s,u=n.useMemo(()=>o,Object.values(o));return(0,r.jsx)(l.Provider,{value:u,children:a})},`Provider`);l.displayName=t+`Provider`;function u(r,i,a={}){let{optional:l=!1}=a,u=i?.[e]?.[c]||s,d=n.useContext(u);if(d)return d;if(o!==void 0)return o;if(!l)throw Error(`\`${r}\` must be used within \`${t}\``)}return a(u,`useContext`),[l,u]}a(o,`createContext`);let s=a(()=>{let t=i.map(e=>n.createContext(e));return a(function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])},`useScope`)},`createScope`);return s.scopeName=e,[o,c(s,...t)]}a(s,`createContextScope`);function c(...e){let t=e[0];if(e.length===1)return t;let r=a(()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return a(function(e){let i=r.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])},`useComposedScopes`)},`createScope`);return r.scopeName=t.scopeName,r}a(c,`composeContextScopes`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|
package/dist/dist-DWcKY_sJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-DZiOPWLp.js"),n=require("./dist-DW2ltK5-.js"),r=require("./dist-zmnQp5Xf.js"),i=require("./dist-B7jnFMko.js"),a=require("./dist-CJqVmdrU.js"),o=require("./dist-CBlqVBTk.js"),s=require("./dist-Blgp9lfa.js"),c=require("./dist-RXrZgzkO.js");let l=require("react"),u=e.r(l,1);l=e.r(l);let d=require("react/jsx-runtime");var f=Object.defineProperty,p=(e,t)=>f(e,`name`,{value:t,configurable:!0}),m=`Collapsible`,[h,g]=n.t(m),[_,v]=h(m),y=u.forwardRef(p(function(e,t){let{__scopeCollapsible:n,open:i,defaultOpen:a,disabled:s,onOpenChange:l,...f}=e,[p,h]=r.t({prop:i,defaultProp:a??!1,onChange:l,caller:m});return(0,d.jsx)(_,{scope:n,disabled:s,contentId:c.t(),open:p,onOpenToggle:u.useCallback(()=>h(e=>!e),[h]),children:(0,d.jsx)(o.t.div,{"data-state":T(p),"data-disabled":s?``:void 0,...f,ref:t})})},`Collapsible`)),b=`CollapsibleTrigger`,x=u.forwardRef(p(function(e,n){let{__scopeCollapsible:r,...i}=e,a=v(b,r);return(0,d.jsx)(o.t.button,{type:`button`,"aria-controls":a.open?a.contentId:void 0,"aria-expanded":a.open||!1,"data-state":T(a.open),"data-disabled":a.disabled?``:void 0,disabled:a.disabled,...i,ref:n,onClick:t.t(e.onClick,a.onOpenToggle)})},`CollapsibleTrigger`)),S=`CollapsibleContent`,C=u.forwardRef(p(function(e,t){let{forceMount:n,...r}=e,i=v(S,e.__scopeCollapsible);return(0,d.jsx)(s.t,{present:n||i.open,children:({present:e})=>(0,d.jsx)(w,{...r,ref:t,present:e})})},`CollapsibleContent`)),w=u.forwardRef(p(function(e,t){let{__scopeCollapsible:n,present:r,children:s,...c}=e,l=v(S,n),[f,p]=u.useState(r),m=u.useRef(null),h=a.a(t,m),g=u.useRef(0),_=g.current,y=u.useRef(0),b=y.current,x=l.open||f,C=u.useRef(x),w=u.useRef(void 0);return u.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),i.t(()=>{let e=m.current;if(e){w.current=w.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();g.current=t.height,y.current=t.width,C.current||(e.style.transitionDuration=w.current.transitionDuration,e.style.animationName=w.current.animationName),p(r)}},[l.open,r]),(0,d.jsx)(o.t.div,{"data-state":T(l.open),"data-disabled":l.disabled?``:void 0,id:l.contentId,hidden:!x,...c,ref:h,style:{"--radix-collapsible-content-height":_?`${_}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:x&&s})},`CollapsibleContentImpl`));function T(e){return e?`open`:`closed`}p(T,`getState`),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return y}});
|
package/dist/dist-DZiOPWLp.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=(t,n)=>e(t,`name`,{value:n,configurable:!0}),n=!!(typeof window<`u`&&window.document&&window.document.createElement);function r(e,n,{checkForDefaultPrevented:r=!0}={}){return t(function(t){if(e?.(t),r===!1||!t||!t.defaultPrevented)return n?.(t)},`handleEvent`)}t(r,`composeEventHandlers`);function i(e){if(!n)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}t(i,`getOwnerWindow`);function a(e){if(!n)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}t(a,`getOwnerDocument`);function o(e,t=!1){let{activeElement:n}=a(e);if(!n?.nodeName)return null;if(s(n)&&n.contentDocument)return o(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=a(n).getElementById(e);if(t)return t}}return n}t(o,`getActiveElement`);function s(e){return e.tagName===`IFRAME`}t(s,`isFrame`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
package/dist/dist-DdAeWIwf.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js");let t=require("react"),n=e.r(t,1);t=e.r(t);let r=require("react/jsx-runtime");var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0}),o={LTR:`ltr`,RTL:`rtl`},s=n.createContext(void 0),c=a(e=>{let{dir:t,children:n}=e;return(0,r.jsx)(s.Provider,{value:t,children:n})},`DirectionProvider`);function l(e){let t=n.useContext(s);return e||t||o.LTR}a(l,`useDirection`),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return c}});
|
package/dist/dist-DhubV_gU.mjs
DELETED