@sentinel-core/sentinel 1.0.12 → 1.0.13
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/sentinel.cjs +14 -14
- package/dist/sentinel.css +1 -1
- package/dist/sentinel.es.js +1110 -1034
- package/dist/src/react/Sentinel.d.ts +4 -2
- package/dist/src/react/index.d.ts +1 -1
- package/dist/src/react/provider.d.ts +26 -10
- package/dist/src/ui/widgets/PropsViewer.d.ts +5 -0
- package/package.json +1 -1
package/dist/sentinel.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import t, { createContext as n,
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
2
|
+
import t, { createContext as n, useCallback as r, useContext as i, useMemo as a, useRef as o, useState as s } from "react";
|
|
3
|
+
import * as c from "react-dom";
|
|
4
|
+
import l from "react-dom";
|
|
5
5
|
//#region ../../node_modules/@huin-core/react-context/dist/index.mjs
|
|
6
|
-
function
|
|
6
|
+
function u(t, n) {
|
|
7
7
|
let r = e.createContext(n);
|
|
8
8
|
function i(t) {
|
|
9
9
|
let { children: n, ...i } = t, a = e.useMemo(() => i, Object.values(i));
|
|
@@ -17,7 +17,7 @@ function s(t, n) {
|
|
|
17
17
|
}
|
|
18
18
|
return i.displayName = t + "Provider", [i, a];
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function d(t, n = []) {
|
|
21
21
|
let r = [];
|
|
22
22
|
function i(n, i) {
|
|
23
23
|
let a = e.createContext(i), o = r.length;
|
|
@@ -44,9 +44,9 @@ function c(t, n = []) {
|
|
|
44
44
|
} }), [r, i]);
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
|
-
return a.scopeName = t, [i,
|
|
47
|
+
return a.scopeName = t, [i, f(a, ...n)];
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function f(...t) {
|
|
50
50
|
let n = t[0];
|
|
51
51
|
if (t.length === 1) return n;
|
|
52
52
|
let r = () => {
|
|
@@ -69,56 +69,56 @@ function l(...t) {
|
|
|
69
69
|
}
|
|
70
70
|
//#endregion
|
|
71
71
|
//#region ../../node_modules/@huin-core/primitive/dist/index.mjs
|
|
72
|
-
function
|
|
72
|
+
function p(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
73
73
|
return function(r) {
|
|
74
74
|
if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region ../../node_modules/@huin-core/react-compose-refs/dist/index.mjs
|
|
79
|
-
function
|
|
79
|
+
function m(e, t) {
|
|
80
80
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return (t) => e.forEach((e) =>
|
|
82
|
+
function h(...e) {
|
|
83
|
+
return (t) => e.forEach((e) => m(e, t));
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return e.useCallback(
|
|
85
|
+
function g(...t) {
|
|
86
|
+
return e.useCallback(h(...t), t);
|
|
87
87
|
}
|
|
88
88
|
//#endregion
|
|
89
89
|
//#region ../../node_modules/@huin-core/react-slot/dist/index.mjs
|
|
90
|
-
var
|
|
91
|
-
let { children: r, ...i } = t, a = e.Children.toArray(r), o = a.find(
|
|
90
|
+
var _ = e.forwardRef((t, n) => {
|
|
91
|
+
let { children: r, ...i } = t, a = e.Children.toArray(r), o = a.find(b);
|
|
92
92
|
if (o) {
|
|
93
93
|
let t = o.props.children, r = a.map((n) => n === o ? e.Children.count(t) > 1 ? e.Children.only(null) : e.isValidElement(t) ? t.props.children : null : n);
|
|
94
|
-
return /* @__PURE__ */ e.createElement(
|
|
94
|
+
return /* @__PURE__ */ e.createElement(v, {
|
|
95
95
|
...i,
|
|
96
96
|
ref: n
|
|
97
97
|
}, e.isValidElement(t) ? e.cloneElement(t, void 0, r) : null);
|
|
98
98
|
}
|
|
99
|
-
return /* @__PURE__ */ e.createElement(
|
|
99
|
+
return /* @__PURE__ */ e.createElement(v, {
|
|
100
100
|
...i,
|
|
101
101
|
ref: n
|
|
102
102
|
}, r);
|
|
103
103
|
});
|
|
104
|
-
|
|
105
|
-
var
|
|
104
|
+
_.displayName = "Slot";
|
|
105
|
+
var v = e.forwardRef((t, n) => {
|
|
106
106
|
let { children: r, ...i } = t;
|
|
107
107
|
if (e.isValidElement(r)) {
|
|
108
|
-
let t =
|
|
108
|
+
let t = S(r);
|
|
109
109
|
return e.cloneElement(r, {
|
|
110
|
-
...
|
|
111
|
-
ref: n ?
|
|
110
|
+
...x(i, r.props),
|
|
111
|
+
ref: n ? h(n, t) : t
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
return e.Children.count(r) > 1 ? e.Children.only(null) : null;
|
|
115
115
|
});
|
|
116
|
-
|
|
117
|
-
var
|
|
118
|
-
function
|
|
119
|
-
return e.isValidElement(t) && t.type ===
|
|
116
|
+
v.displayName = "SlotClone";
|
|
117
|
+
var y = ({ children: t }) => /* @__PURE__ */ e.createElement(e.Fragment, null, t);
|
|
118
|
+
function b(t) {
|
|
119
|
+
return e.isValidElement(t) && t.type === y;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function x(e, t) {
|
|
122
122
|
let n = { ...t };
|
|
123
123
|
for (let r in t) {
|
|
124
124
|
let i = e[r], a = t[r];
|
|
@@ -134,14 +134,14 @@ function v(e, t) {
|
|
|
134
134
|
...n
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function S(e) {
|
|
138
138
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
139
139
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
140
140
|
}
|
|
141
141
|
//#endregion
|
|
142
142
|
//#region ../../node_modules/@huin-core/react-collection/dist/index.mjs
|
|
143
|
-
function
|
|
144
|
-
let n = e + "CollectionProvider", [r, i] =
|
|
143
|
+
function C(e) {
|
|
144
|
+
let n = e + "CollectionProvider", [r, i] = d(n), [a, o] = r(n, {
|
|
145
145
|
collectionRef: { current: null },
|
|
146
146
|
itemMap: /* @__PURE__ */ new Map()
|
|
147
147
|
}), s = (e) => {
|
|
@@ -153,23 +153,23 @@ function b(e) {
|
|
|
153
153
|
}, r);
|
|
154
154
|
};
|
|
155
155
|
s.displayName = n;
|
|
156
|
-
let
|
|
157
|
-
let { scope: r, children: i } = e, a =
|
|
158
|
-
return /* @__PURE__ */ t.createElement(
|
|
156
|
+
let c = e + "CollectionSlot", l = t.forwardRef((e, n) => {
|
|
157
|
+
let { scope: r, children: i } = e, a = g(n, o(c, r).collectionRef);
|
|
158
|
+
return /* @__PURE__ */ t.createElement(_, { ref: a }, i);
|
|
159
159
|
});
|
|
160
|
-
|
|
161
|
-
let
|
|
162
|
-
let { scope: r, children: i, ...a } = e, s = t.useRef(null), c =
|
|
160
|
+
l.displayName = c;
|
|
161
|
+
let u = e + "CollectionItemSlot", f = "data-huin-core-collection-item", p = t.forwardRef((e, n) => {
|
|
162
|
+
let { scope: r, children: i, ...a } = e, s = t.useRef(null), c = g(n, s), l = o(u, r);
|
|
163
163
|
return t.useEffect(() => (l.itemMap.set(s, {
|
|
164
164
|
ref: s,
|
|
165
165
|
...a
|
|
166
|
-
}), () => void l.itemMap.delete(s))), /* @__PURE__ */ t.createElement(
|
|
166
|
+
}), () => void l.itemMap.delete(s))), /* @__PURE__ */ t.createElement(_, {
|
|
167
167
|
[f]: "",
|
|
168
168
|
ref: c
|
|
169
169
|
}, i);
|
|
170
170
|
});
|
|
171
|
-
|
|
172
|
-
function
|
|
171
|
+
p.displayName = u;
|
|
172
|
+
function m(n) {
|
|
173
173
|
let r = o(e + "CollectionConsumer", n);
|
|
174
174
|
return t.useCallback(() => {
|
|
175
175
|
let e = r.collectionRef.current;
|
|
@@ -181,25 +181,25 @@ function b(e) {
|
|
|
181
181
|
return [
|
|
182
182
|
{
|
|
183
183
|
Provider: s,
|
|
184
|
-
Slot:
|
|
185
|
-
ItemSlot:
|
|
184
|
+
Slot: l,
|
|
185
|
+
ItemSlot: p
|
|
186
186
|
},
|
|
187
|
-
|
|
187
|
+
m,
|
|
188
188
|
i
|
|
189
189
|
];
|
|
190
190
|
}
|
|
191
191
|
//#endregion
|
|
192
192
|
//#region ../../node_modules/@huin-core/react-use-layout-effect/dist/index.mjs
|
|
193
|
-
var
|
|
194
|
-
function
|
|
195
|
-
let [n, r] = e.useState(
|
|
196
|
-
return
|
|
197
|
-
t || r((e) => e ?? String(
|
|
193
|
+
var w = globalThis?.document ? e.useLayoutEffect : () => {}, T = e.useId || (() => void 0), ee = 0;
|
|
194
|
+
function E(t) {
|
|
195
|
+
let [n, r] = e.useState(T());
|
|
196
|
+
return w(() => {
|
|
197
|
+
t || r((e) => e ?? String(ee++));
|
|
198
198
|
}, [t]), t || (n ? `huin-${n}` : "");
|
|
199
199
|
}
|
|
200
200
|
//#endregion
|
|
201
201
|
//#region ../../node_modules/@huin-core/react-primitive/dist/index.mjs
|
|
202
|
-
var
|
|
202
|
+
var D = [
|
|
203
203
|
"a",
|
|
204
204
|
"button",
|
|
205
205
|
"div",
|
|
@@ -219,7 +219,7 @@ var T = [
|
|
|
219
219
|
"ul"
|
|
220
220
|
].reduce((t, n) => {
|
|
221
221
|
let r = e.forwardRef((t, r) => {
|
|
222
|
-
let { asChild: i, ...a } = t, o = i ?
|
|
222
|
+
let { asChild: i, ...a } = t, o = i ? _ : n;
|
|
223
223
|
return typeof window < "u" && (window[Symbol.for("huin-core")] = !0), /* @__PURE__ */ e.createElement(o, {
|
|
224
224
|
...a,
|
|
225
225
|
ref: r
|
|
@@ -230,12 +230,12 @@ var T = [
|
|
|
230
230
|
[n]: r
|
|
231
231
|
};
|
|
232
232
|
}, {});
|
|
233
|
-
function
|
|
234
|
-
e &&
|
|
233
|
+
function te(e, t) {
|
|
234
|
+
e && c.flushSync(() => e.dispatchEvent(t));
|
|
235
235
|
}
|
|
236
236
|
//#endregion
|
|
237
237
|
//#region ../../node_modules/@huin-core/react-use-callback-ref/dist/index.mjs
|
|
238
|
-
function
|
|
238
|
+
function O(t) {
|
|
239
239
|
let n = e.useRef(t);
|
|
240
240
|
return e.useEffect(() => {
|
|
241
241
|
n.current = t;
|
|
@@ -243,11 +243,11 @@ function D(t) {
|
|
|
243
243
|
}
|
|
244
244
|
//#endregion
|
|
245
245
|
//#region ../../node_modules/@huin-core/react-use-controllable-state/dist/index.mjs
|
|
246
|
-
function
|
|
247
|
-
let [i, a] =
|
|
246
|
+
function k({ prop: t, defaultProp: n, onChange: r = () => {} }) {
|
|
247
|
+
let [i, a] = A({
|
|
248
248
|
defaultProp: n,
|
|
249
249
|
onChange: r
|
|
250
|
-
}), o = t !== void 0, s = o ? t : i, c =
|
|
250
|
+
}), o = t !== void 0, s = o ? t : i, c = O(r);
|
|
251
251
|
return [s, e.useCallback((e) => {
|
|
252
252
|
if (o) {
|
|
253
253
|
let n = typeof e == "function" ? e(t) : e;
|
|
@@ -260,8 +260,8 @@ function O({ prop: t, defaultProp: n, onChange: r = () => {} }) {
|
|
|
260
260
|
c
|
|
261
261
|
])];
|
|
262
262
|
}
|
|
263
|
-
function
|
|
264
|
-
let r = e.useState(t), [i] = r, a = e.useRef(i), o =
|
|
263
|
+
function A({ defaultProp: t, onChange: n }) {
|
|
264
|
+
let r = e.useState(t), [i] = r, a = e.useRef(i), o = O(n);
|
|
265
265
|
return e.useEffect(() => {
|
|
266
266
|
a.current !== i && (o(i), a.current = i);
|
|
267
267
|
}, [
|
|
@@ -272,31 +272,31 @@ function ee({ defaultProp: t, onChange: n }) {
|
|
|
272
272
|
}
|
|
273
273
|
//#endregion
|
|
274
274
|
//#region ../../node_modules/@huin-core/react-direction/dist/index.mjs
|
|
275
|
-
var
|
|
276
|
-
function
|
|
277
|
-
let n = e.useContext(
|
|
275
|
+
var j = e.createContext(void 0);
|
|
276
|
+
function ne(t) {
|
|
277
|
+
let n = e.useContext(j);
|
|
278
278
|
return t || n || "ltr";
|
|
279
279
|
}
|
|
280
280
|
//#endregion
|
|
281
281
|
//#region ../../node_modules/@huin-core/react-roving-focus/dist/index.mjs
|
|
282
|
-
var
|
|
282
|
+
var re = "rovingFocusGroup.onEntryFocus", M = {
|
|
283
283
|
bubbles: !1,
|
|
284
284
|
cancelable: !0
|
|
285
|
-
},
|
|
285
|
+
}, ie = "RovingFocusGroup", [ae, oe, se] = C(ie), [N, P] = d(ie, [se]), [ce, le] = N(ie), F = e.forwardRef((t, n) => /* @__PURE__ */ e.createElement(ae.Provider, { scope: t.__scopeRovingFocusGroup }, /* @__PURE__ */ e.createElement(ae.Slot, { scope: t.__scopeRovingFocusGroup }, /* @__PURE__ */ e.createElement(ue, {
|
|
286
286
|
...t,
|
|
287
287
|
ref: n
|
|
288
288
|
}))));
|
|
289
|
-
|
|
290
|
-
var
|
|
291
|
-
let { __scopeRovingFocusGroup: r, orientation: i, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus:
|
|
289
|
+
F.displayName = ie;
|
|
290
|
+
var ue = e.forwardRef((t, n) => {
|
|
291
|
+
let { __scopeRovingFocusGroup: r, orientation: i, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: d = !1, ...f } = t, m = e.useRef(null), h = g(n, m), _ = ne(o), [v = null, y] = k({
|
|
292
292
|
prop: s,
|
|
293
293
|
defaultProp: c,
|
|
294
294
|
onChange: l
|
|
295
|
-
}), [b, x] = e.useState(!1), S =
|
|
295
|
+
}), [b, x] = e.useState(!1), S = O(u), C = oe(r), w = e.useRef(!1), [T, ee] = e.useState(0);
|
|
296
296
|
return e.useEffect(() => {
|
|
297
|
-
let e =
|
|
298
|
-
if (e) return e.addEventListener(
|
|
299
|
-
}, [S]), /* @__PURE__ */ e.createElement(
|
|
297
|
+
let e = m.current;
|
|
298
|
+
if (e) return e.addEventListener(re, S), () => e.removeEventListener(re, S);
|
|
299
|
+
}, [S]), /* @__PURE__ */ e.createElement(ce, {
|
|
300
300
|
scope: r,
|
|
301
301
|
orientation: i,
|
|
302
302
|
dir: _,
|
|
@@ -306,81 +306,81 @@ var oe = e.forwardRef((t, n) => {
|
|
|
306
306
|
onItemShiftTab: e.useCallback(() => x(!0), []),
|
|
307
307
|
onFocusableItemAdd: e.useCallback(() => ee((e) => e + 1), []),
|
|
308
308
|
onFocusableItemRemove: e.useCallback(() => ee((e) => e - 1), [])
|
|
309
|
-
}, /* @__PURE__ */ e.createElement(
|
|
310
|
-
tabIndex: b ||
|
|
309
|
+
}, /* @__PURE__ */ e.createElement(D.div, {
|
|
310
|
+
tabIndex: b || T === 0 ? -1 : 0,
|
|
311
311
|
"data-orientation": i,
|
|
312
|
-
...
|
|
313
|
-
ref:
|
|
312
|
+
...f,
|
|
313
|
+
ref: h,
|
|
314
314
|
style: {
|
|
315
315
|
outline: "none",
|
|
316
316
|
...t.style
|
|
317
317
|
},
|
|
318
|
-
onMouseDown:
|
|
318
|
+
onMouseDown: p(t.onMouseDown, () => {
|
|
319
319
|
w.current = !0;
|
|
320
320
|
}),
|
|
321
|
-
onFocus:
|
|
321
|
+
onFocus: p(t.onFocus, (e) => {
|
|
322
322
|
let t = !w.current;
|
|
323
323
|
if (e.target === e.currentTarget && t && !b) {
|
|
324
|
-
let t = new CustomEvent(
|
|
324
|
+
let t = new CustomEvent(re, M);
|
|
325
325
|
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
326
326
|
let e = C().filter((e) => e.focusable);
|
|
327
|
-
|
|
327
|
+
ge([
|
|
328
328
|
e.find((e) => e.active),
|
|
329
329
|
e.find((e) => e.id === v),
|
|
330
330
|
...e
|
|
331
|
-
].filter(Boolean).map((e) => e.ref.current),
|
|
331
|
+
].filter(Boolean).map((e) => e.ref.current), d);
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
w.current = !1;
|
|
335
335
|
}),
|
|
336
|
-
onBlur:
|
|
336
|
+
onBlur: p(t.onBlur, () => x(!1))
|
|
337
337
|
}));
|
|
338
|
-
}),
|
|
339
|
-
let { __scopeRovingFocusGroup: r, focusable: i = !0, active: a = !1, tabStopId: o, ...s } = t, c =
|
|
338
|
+
}), de = "RovingFocusGroupItem", fe = e.forwardRef((t, n) => {
|
|
339
|
+
let { __scopeRovingFocusGroup: r, focusable: i = !0, active: a = !1, tabStopId: o, ...s } = t, c = E(), l = o || c, u = le(de, r), d = u.currentTabStopId === l, f = oe(r), { onFocusableItemAdd: m, onFocusableItemRemove: h } = u;
|
|
340
340
|
return e.useEffect(() => {
|
|
341
341
|
if (i) return m(), () => h();
|
|
342
342
|
}, [
|
|
343
343
|
i,
|
|
344
344
|
m,
|
|
345
345
|
h
|
|
346
|
-
]), /* @__PURE__ */ e.createElement(
|
|
346
|
+
]), /* @__PURE__ */ e.createElement(ae.ItemSlot, {
|
|
347
347
|
scope: r,
|
|
348
348
|
id: l,
|
|
349
349
|
focusable: i,
|
|
350
350
|
active: a
|
|
351
|
-
}, /* @__PURE__ */ e.createElement(
|
|
352
|
-
tabIndex:
|
|
353
|
-
"data-orientation":
|
|
351
|
+
}, /* @__PURE__ */ e.createElement(D.span, {
|
|
352
|
+
tabIndex: d ? 0 : -1,
|
|
353
|
+
"data-orientation": u.orientation,
|
|
354
354
|
...s,
|
|
355
355
|
ref: n,
|
|
356
|
-
onMouseDown:
|
|
357
|
-
i ?
|
|
356
|
+
onMouseDown: p(t.onMouseDown, (e) => {
|
|
357
|
+
i ? u.onItemFocus(l) : e.preventDefault();
|
|
358
358
|
}),
|
|
359
|
-
onFocus:
|
|
360
|
-
onKeyDown:
|
|
359
|
+
onFocus: p(t.onFocus, () => u.onItemFocus(l)),
|
|
360
|
+
onKeyDown: p(t.onKeyDown, (e) => {
|
|
361
361
|
if (e.key === "Tab" && e.shiftKey) {
|
|
362
|
-
|
|
362
|
+
u.onItemShiftTab();
|
|
363
363
|
return;
|
|
364
364
|
}
|
|
365
365
|
if (e.target !== e.currentTarget) return;
|
|
366
|
-
let t =
|
|
366
|
+
let t = he(e, u.orientation, u.dir);
|
|
367
367
|
if (t !== void 0) {
|
|
368
368
|
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
369
369
|
e.preventDefault();
|
|
370
|
-
let n =
|
|
370
|
+
let n = f().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
371
371
|
if (t === "last") n.reverse();
|
|
372
372
|
else if (t === "prev" || t === "next") {
|
|
373
373
|
t === "prev" && n.reverse();
|
|
374
374
|
let r = n.indexOf(e.currentTarget);
|
|
375
|
-
n =
|
|
375
|
+
n = u.loop ? _e(n, r + 1) : n.slice(r + 1);
|
|
376
376
|
}
|
|
377
|
-
setTimeout(() =>
|
|
377
|
+
setTimeout(() => ge(n));
|
|
378
378
|
}
|
|
379
379
|
})
|
|
380
380
|
}));
|
|
381
381
|
});
|
|
382
|
-
|
|
383
|
-
var
|
|
382
|
+
fe.displayName = de;
|
|
383
|
+
var pe = {
|
|
384
384
|
ArrowLeft: "prev",
|
|
385
385
|
ArrowUp: "prev",
|
|
386
386
|
ArrowRight: "next",
|
|
@@ -390,33 +390,33 @@ var ce = {
|
|
|
390
390
|
PageDown: "last",
|
|
391
391
|
End: "last"
|
|
392
392
|
};
|
|
393
|
-
function
|
|
393
|
+
function me(e, t) {
|
|
394
394
|
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
let r =
|
|
398
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return
|
|
396
|
+
function he(e, t, n) {
|
|
397
|
+
let r = me(e.key, n);
|
|
398
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return pe[r];
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function ge(e, t = !1) {
|
|
401
401
|
let n = document.activeElement;
|
|
402
402
|
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function _e(e, t) {
|
|
405
405
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
406
406
|
}
|
|
407
|
-
var
|
|
407
|
+
var ve = F, ye = fe;
|
|
408
408
|
//#endregion
|
|
409
409
|
//#region ../../node_modules/@huin-core/react-presence/dist/index.mjs
|
|
410
|
-
function
|
|
410
|
+
function be(t, n) {
|
|
411
411
|
return e.useReducer((e, t) => n[e][t] ?? e, t);
|
|
412
412
|
}
|
|
413
|
-
var
|
|
414
|
-
let { present: n, children: r } = t, i =
|
|
413
|
+
var xe = (t) => {
|
|
414
|
+
let { present: n, children: r } = t, i = Se(n), a = typeof r == "function" ? r({ present: i.isPresent }) : e.Children.only(r), o = g(i.ref, we(a));
|
|
415
415
|
return typeof r == "function" || i.isPresent ? e.cloneElement(a, { ref: o }) : null;
|
|
416
416
|
};
|
|
417
|
-
|
|
418
|
-
function
|
|
419
|
-
let [n, r] = e.useState(), i = e.useRef({}),
|
|
417
|
+
xe.displayName = "Presence";
|
|
418
|
+
function Se(t) {
|
|
419
|
+
let [n, r] = e.useState(), i = e.useRef({}), a = e.useRef(t), o = e.useRef("none"), [s, l] = be(t ? "mounted" : "unmounted", {
|
|
420
420
|
mounted: {
|
|
421
421
|
UNMOUNT: "unmounted",
|
|
422
422
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -428,86 +428,86 @@ function _e(t) {
|
|
|
428
428
|
unmounted: { MOUNT: "mounted" }
|
|
429
429
|
});
|
|
430
430
|
return e.useEffect(() => {
|
|
431
|
-
let e =
|
|
432
|
-
|
|
433
|
-
}, [
|
|
434
|
-
let e = i.current, n =
|
|
431
|
+
let e = Ce(i.current);
|
|
432
|
+
o.current = s === "mounted" ? e : "none";
|
|
433
|
+
}, [s]), w(() => {
|
|
434
|
+
let e = i.current, n = a.current;
|
|
435
435
|
if (n !== t) {
|
|
436
|
-
let r =
|
|
437
|
-
t ? l("MOUNT") : i === "none" || e?.display === "none" ? l("UNMOUNT") : l(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"),
|
|
436
|
+
let r = o.current, i = Ce(e);
|
|
437
|
+
t ? l("MOUNT") : i === "none" || e?.display === "none" ? l("UNMOUNT") : l(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), a.current = t;
|
|
438
438
|
}
|
|
439
|
-
}, [t, l]),
|
|
439
|
+
}, [t, l]), w(() => {
|
|
440
440
|
if (n) {
|
|
441
441
|
let e = (e) => {
|
|
442
|
-
let t =
|
|
443
|
-
e.target === n && t &&
|
|
442
|
+
let t = Ce(i.current).includes(e.animationName);
|
|
443
|
+
e.target === n && t && c.flushSync(() => l("ANIMATION_END"));
|
|
444
444
|
}, t = (e) => {
|
|
445
|
-
e.target === n && (
|
|
445
|
+
e.target === n && (o.current = Ce(i.current));
|
|
446
446
|
};
|
|
447
447
|
return n.addEventListener("animationstart", t), n.addEventListener("animationcancel", e), n.addEventListener("animationend", e), () => {
|
|
448
448
|
n.removeEventListener("animationstart", t), n.removeEventListener("animationcancel", e), n.removeEventListener("animationend", e);
|
|
449
449
|
};
|
|
450
450
|
} else l("ANIMATION_END");
|
|
451
451
|
}, [n, l]), {
|
|
452
|
-
isPresent: ["mounted", "unmountSuspended"].includes(
|
|
452
|
+
isPresent: ["mounted", "unmountSuspended"].includes(s),
|
|
453
453
|
ref: e.useCallback((e) => {
|
|
454
454
|
e && (i.current = getComputedStyle(e)), r(e);
|
|
455
455
|
}, [])
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function Ce(e) {
|
|
459
459
|
return e?.animationName || "none";
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function we(e) {
|
|
462
462
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
463
463
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
464
464
|
}
|
|
465
465
|
//#endregion
|
|
466
466
|
//#region ../../node_modules/@huin-core/react-tabs/dist/index.mjs
|
|
467
|
-
var
|
|
468
|
-
let { __scopeTabs: r, value: i, onValueChange: a, defaultValue: o, orientation: s = "horizontal", dir: c, activationMode: l = "automatic", ...u } = t, d =
|
|
467
|
+
var Te = "Tabs", [Ee, De] = d(Te, [P]), [Oe, ke] = Ee(Te), Ae = e.forwardRef((t, n) => {
|
|
468
|
+
let { __scopeTabs: r, value: i, onValueChange: a, defaultValue: o, orientation: s = "horizontal", dir: c, activationMode: l = "automatic", ...u } = t, d = ne(c), [f, p] = k({
|
|
469
469
|
prop: i,
|
|
470
470
|
onChange: a,
|
|
471
471
|
defaultProp: o
|
|
472
472
|
});
|
|
473
|
-
return /* @__PURE__ */ e.createElement(
|
|
473
|
+
return /* @__PURE__ */ e.createElement(Oe, {
|
|
474
474
|
scope: r,
|
|
475
|
-
baseId:
|
|
475
|
+
baseId: E(),
|
|
476
476
|
value: f,
|
|
477
477
|
onValueChange: p,
|
|
478
478
|
orientation: s,
|
|
479
479
|
dir: d,
|
|
480
480
|
activationMode: l
|
|
481
|
-
}, /* @__PURE__ */ e.createElement(
|
|
481
|
+
}, /* @__PURE__ */ e.createElement(D.div, {
|
|
482
482
|
dir: d,
|
|
483
483
|
"data-orientation": s,
|
|
484
484
|
...u,
|
|
485
485
|
ref: n
|
|
486
486
|
}));
|
|
487
487
|
});
|
|
488
|
-
|
|
489
|
-
var
|
|
490
|
-
let { __scopeTabs: r, loop: i = !0, ...a } = e, o =
|
|
491
|
-
return /* @__PURE__ */ t.createElement(
|
|
488
|
+
Ae.displayName = Te;
|
|
489
|
+
var je = "TabsList", Me = P(), Ne = t.forwardRef((e, n) => {
|
|
490
|
+
let { __scopeTabs: r, loop: i = !0, ...a } = e, o = ke(je, r), s = Me(r);
|
|
491
|
+
return /* @__PURE__ */ t.createElement(ve, {
|
|
492
492
|
asChild: !0,
|
|
493
493
|
...s,
|
|
494
494
|
orientation: o.orientation,
|
|
495
495
|
dir: o.dir,
|
|
496
496
|
loop: i
|
|
497
|
-
}, /* @__PURE__ */ t.createElement(
|
|
497
|
+
}, /* @__PURE__ */ t.createElement(D.div, {
|
|
498
498
|
role: "tablist",
|
|
499
499
|
"aria-orientation": o.orientation,
|
|
500
500
|
...a,
|
|
501
501
|
ref: n
|
|
502
502
|
}));
|
|
503
503
|
});
|
|
504
|
-
|
|
505
|
-
var
|
|
506
|
-
let { __scopeTabs: r, value: i, forceMount: a, children: o, ...s } = e, c =
|
|
504
|
+
Ne.displayName = je;
|
|
505
|
+
var Pe = "TabsContent", Fe = t.forwardRef((e, n) => {
|
|
506
|
+
let { __scopeTabs: r, value: i, forceMount: a, children: o, ...s } = e, c = ke(Pe, r), l = Ie(c.baseId, i), u = Le(c.baseId, i), d = i === c.value, f = t.useRef(d);
|
|
507
507
|
return t.useEffect(() => {
|
|
508
508
|
let e = requestAnimationFrame(() => f.current = !1);
|
|
509
509
|
return () => cancelAnimationFrame(e);
|
|
510
|
-
}, []), /* @__PURE__ */ t.createElement(
|
|
510
|
+
}, []), /* @__PURE__ */ t.createElement(xe, { present: a || d }, ({ present: r }) => /* @__PURE__ */ t.createElement(D.div, {
|
|
511
511
|
"data-state": d ? "active" : "inactive",
|
|
512
512
|
"data-orientation": c.orientation,
|
|
513
513
|
role: "tabpanel",
|
|
@@ -523,155 +523,155 @@ var ke = "TabsContent", Ae = t.forwardRef((e, n) => {
|
|
|
523
523
|
}
|
|
524
524
|
}, r && o));
|
|
525
525
|
});
|
|
526
|
-
|
|
527
|
-
function
|
|
526
|
+
Fe.displayName = Pe;
|
|
527
|
+
function Ie(e, t) {
|
|
528
528
|
return `${e}-trigger-${t}`;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function Le(e, t) {
|
|
531
531
|
return `${e}-content-${t}`;
|
|
532
532
|
}
|
|
533
|
-
var
|
|
534
|
-
let { __scopeTabs: r, value: i, disabled: a = !1, ...o } = e, s =
|
|
535
|
-
return /* @__PURE__ */ t.createElement(
|
|
533
|
+
var Re = "TabsTrigger", ze = t.forwardRef((e, n) => {
|
|
534
|
+
let { __scopeTabs: r, value: i, disabled: a = !1, ...o } = e, s = ke(Re, r), c = Me(r), l = Ie(s.baseId, i), u = Le(s.baseId, i), d = i === s.value;
|
|
535
|
+
return /* @__PURE__ */ t.createElement(ye, {
|
|
536
536
|
asChild: !0,
|
|
537
537
|
...c,
|
|
538
538
|
focusable: !a,
|
|
539
|
-
active:
|
|
540
|
-
}, /* @__PURE__ */ t.createElement(
|
|
539
|
+
active: d
|
|
540
|
+
}, /* @__PURE__ */ t.createElement(D.button, {
|
|
541
541
|
type: "button",
|
|
542
542
|
role: "tab",
|
|
543
|
-
"aria-selected":
|
|
544
|
-
"aria-controls":
|
|
545
|
-
"data-state":
|
|
543
|
+
"aria-selected": d,
|
|
544
|
+
"aria-controls": u,
|
|
545
|
+
"data-state": d ? "active" : "inactive",
|
|
546
546
|
"data-disabled": a ? "" : void 0,
|
|
547
547
|
disabled: a,
|
|
548
548
|
id: l,
|
|
549
549
|
...o,
|
|
550
550
|
ref: n,
|
|
551
|
-
onMouseDown:
|
|
551
|
+
onMouseDown: p(e.onMouseDown, (e) => {
|
|
552
552
|
!a && e.button === 0 && e.ctrlKey === !1 ? s.onValueChange(i) : e.preventDefault();
|
|
553
553
|
}),
|
|
554
|
-
onKeyDown:
|
|
554
|
+
onKeyDown: p(e.onKeyDown, (e) => {
|
|
555
555
|
[" ", "Enter"].includes(e.key) && s.onValueChange(i);
|
|
556
556
|
}),
|
|
557
|
-
onFocus:
|
|
557
|
+
onFocus: p(e.onFocus, () => {
|
|
558
558
|
let e = s.activationMode !== "manual";
|
|
559
|
-
!
|
|
559
|
+
!d && !a && e && s.onValueChange(i);
|
|
560
560
|
})
|
|
561
561
|
}));
|
|
562
562
|
});
|
|
563
|
-
|
|
563
|
+
ze.displayName = Re;
|
|
564
564
|
//#endregion
|
|
565
565
|
//#region ../../node_modules/clsx/dist/clsx.mjs
|
|
566
|
-
function
|
|
566
|
+
function Be(e) {
|
|
567
567
|
var t, n, r = "";
|
|
568
568
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
569
569
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
570
570
|
var i = e.length;
|
|
571
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
571
|
+
for (t = 0; t < i; t++) e[t] && (n = Be(e[t])) && (r && (r += " "), r += n);
|
|
572
572
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
573
573
|
return r;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
575
|
+
function Ve() {
|
|
576
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Be(e)) && (r && (r += " "), r += t);
|
|
577
577
|
return r;
|
|
578
578
|
}
|
|
579
579
|
//#endregion
|
|
580
580
|
//#region ../../node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
581
|
-
var
|
|
581
|
+
var He = (e, t) => {
|
|
582
582
|
let n = Array(e.length + t.length);
|
|
583
583
|
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
584
584
|
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
|
|
585
585
|
return n;
|
|
586
|
-
},
|
|
586
|
+
}, Ue = (e, t) => ({
|
|
587
587
|
classGroupId: e,
|
|
588
588
|
validator: t
|
|
589
|
-
}),
|
|
589
|
+
}), We = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
590
590
|
nextPart: e,
|
|
591
591
|
validators: t,
|
|
592
592
|
classGroupId: n
|
|
593
|
-
}),
|
|
594
|
-
let t =
|
|
593
|
+
}), Ge = "-", Ke = [], qe = "arbitrary..", Je = (e) => {
|
|
594
|
+
let t = Ze(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
595
595
|
return {
|
|
596
596
|
getClassGroupId: (e) => {
|
|
597
|
-
if (e.startsWith("[") && e.endsWith("]")) return
|
|
598
|
-
let n = e.split(
|
|
599
|
-
return
|
|
597
|
+
if (e.startsWith("[") && e.endsWith("]")) return Xe(e);
|
|
598
|
+
let n = e.split(Ge);
|
|
599
|
+
return Ye(n, +(n[0] === "" && n.length > 1), t);
|
|
600
600
|
},
|
|
601
601
|
getConflictingClassGroupIds: (e, t) => {
|
|
602
602
|
if (t) {
|
|
603
603
|
let t = r[e], i = n[e];
|
|
604
|
-
return t ? i ?
|
|
604
|
+
return t ? i ? He(i, t) : t : i || Ke;
|
|
605
605
|
}
|
|
606
|
-
return n[e] ||
|
|
606
|
+
return n[e] || Ke;
|
|
607
607
|
}
|
|
608
608
|
};
|
|
609
|
-
},
|
|
609
|
+
}, Ye = (e, t, n) => {
|
|
610
610
|
if (e.length - t === 0) return n.classGroupId;
|
|
611
611
|
let r = e[t], i = n.nextPart.get(r);
|
|
612
612
|
if (i) {
|
|
613
|
-
let n =
|
|
613
|
+
let n = Ye(e, t + 1, i);
|
|
614
614
|
if (n) return n;
|
|
615
615
|
}
|
|
616
616
|
let a = n.validators;
|
|
617
617
|
if (a === null) return;
|
|
618
|
-
let o = t === 0 ? e.join(
|
|
618
|
+
let o = t === 0 ? e.join(Ge) : e.slice(t).join(Ge), s = a.length;
|
|
619
619
|
for (let e = 0; e < s; e++) {
|
|
620
620
|
let t = a[e];
|
|
621
621
|
if (t.validator(o)) return t.classGroupId;
|
|
622
622
|
}
|
|
623
|
-
},
|
|
623
|
+
}, Xe = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
624
624
|
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
625
|
-
return r ?
|
|
626
|
-
})(),
|
|
625
|
+
return r ? qe + r : void 0;
|
|
626
|
+
})(), Ze = (e) => {
|
|
627
627
|
let { theme: t, classGroups: n } = e;
|
|
628
|
-
return
|
|
629
|
-
},
|
|
630
|
-
let n =
|
|
628
|
+
return Qe(n, t);
|
|
629
|
+
}, Qe = (e, t) => {
|
|
630
|
+
let n = We();
|
|
631
631
|
for (let r in e) {
|
|
632
632
|
let i = e[r];
|
|
633
|
-
|
|
633
|
+
$e(i, n, r, t);
|
|
634
634
|
}
|
|
635
635
|
return n;
|
|
636
|
-
},
|
|
636
|
+
}, $e = (e, t, n, r) => {
|
|
637
637
|
let i = e.length;
|
|
638
638
|
for (let a = 0; a < i; a++) {
|
|
639
639
|
let i = e[a];
|
|
640
|
-
|
|
640
|
+
et(i, t, n, r);
|
|
641
641
|
}
|
|
642
|
-
},
|
|
642
|
+
}, et = (e, t, n, r) => {
|
|
643
643
|
if (typeof e == "string") {
|
|
644
|
-
|
|
644
|
+
tt(e, t, n);
|
|
645
645
|
return;
|
|
646
646
|
}
|
|
647
647
|
if (typeof e == "function") {
|
|
648
|
-
|
|
648
|
+
nt(e, t, n, r);
|
|
649
649
|
return;
|
|
650
650
|
}
|
|
651
|
-
|
|
652
|
-
},
|
|
653
|
-
let r = e === "" ? t :
|
|
651
|
+
rt(e, t, n, r);
|
|
652
|
+
}, tt = (e, t, n) => {
|
|
653
|
+
let r = e === "" ? t : it(t, e);
|
|
654
654
|
r.classGroupId = n;
|
|
655
|
-
},
|
|
656
|
-
if (
|
|
657
|
-
|
|
655
|
+
}, nt = (e, t, n, r) => {
|
|
656
|
+
if (at(e)) {
|
|
657
|
+
$e(e(r), t, n, r);
|
|
658
658
|
return;
|
|
659
659
|
}
|
|
660
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
661
|
-
},
|
|
660
|
+
t.validators === null && (t.validators = []), t.validators.push(Ue(n, e));
|
|
661
|
+
}, rt = (e, t, n, r) => {
|
|
662
662
|
let i = Object.entries(e), a = i.length;
|
|
663
663
|
for (let e = 0; e < a; e++) {
|
|
664
664
|
let [a, o] = i[e];
|
|
665
|
-
|
|
665
|
+
$e(o, it(t, a), n, r);
|
|
666
666
|
}
|
|
667
|
-
},
|
|
668
|
-
let n = e, r = t.split(
|
|
667
|
+
}, it = (e, t) => {
|
|
668
|
+
let n = e, r = t.split(Ge), i = r.length;
|
|
669
669
|
for (let e = 0; e < i; e++) {
|
|
670
670
|
let t = r[e], i = n.nextPart.get(t);
|
|
671
|
-
i || (i =
|
|
671
|
+
i || (i = We(), n.nextPart.set(t, i)), n = i;
|
|
672
672
|
}
|
|
673
673
|
return n;
|
|
674
|
-
},
|
|
674
|
+
}, at = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, ot = (e) => {
|
|
675
675
|
if (e < 1) return {
|
|
676
676
|
get: () => void 0,
|
|
677
677
|
set: () => {}
|
|
@@ -689,19 +689,19 @@ var Le = (e, t) => {
|
|
|
689
689
|
e in n ? n[e] = t : i(e, t);
|
|
690
690
|
}
|
|
691
691
|
};
|
|
692
|
-
},
|
|
692
|
+
}, st = "!", ct = ":", lt = [], ut = (e, t, n, r, i) => ({
|
|
693
693
|
modifiers: e,
|
|
694
694
|
hasImportantModifier: t,
|
|
695
695
|
baseClassName: n,
|
|
696
696
|
maybePostfixModifierPosition: r,
|
|
697
697
|
isExternal: i
|
|
698
|
-
}),
|
|
698
|
+
}), dt = (e) => {
|
|
699
699
|
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
700
700
|
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
701
701
|
for (let s = 0; s < o; s++) {
|
|
702
702
|
let o = e[s];
|
|
703
703
|
if (n === 0 && r === 0) {
|
|
704
|
-
if (o ===
|
|
704
|
+
if (o === ct) {
|
|
705
705
|
t.push(e.slice(i, s)), i = s + 1;
|
|
706
706
|
continue;
|
|
707
707
|
}
|
|
@@ -713,13 +713,13 @@ var Le = (e, t) => {
|
|
|
713
713
|
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
714
714
|
}
|
|
715
715
|
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
716
|
-
s.endsWith(
|
|
716
|
+
s.endsWith(st) ? (c = s.slice(0, -1), l = !0) : s.startsWith(st) && (c = s.slice(1), l = !0);
|
|
717
717
|
let u = a && a > i ? a - i : void 0;
|
|
718
|
-
return
|
|
718
|
+
return ut(t, l, c, u);
|
|
719
719
|
};
|
|
720
720
|
if (t) {
|
|
721
|
-
let e = t +
|
|
722
|
-
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) :
|
|
721
|
+
let e = t + ct, n = r;
|
|
722
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : ut(lt, !1, t, void 0, !0);
|
|
723
723
|
}
|
|
724
724
|
if (n) {
|
|
725
725
|
let e = r;
|
|
@@ -729,7 +729,7 @@ var Le = (e, t) => {
|
|
|
729
729
|
});
|
|
730
730
|
}
|
|
731
731
|
return r;
|
|
732
|
-
},
|
|
732
|
+
}, ft = (e) => {
|
|
733
733
|
let t = /* @__PURE__ */ new Map();
|
|
734
734
|
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
735
735
|
t.set(e, 1e6 + n);
|
|
@@ -741,18 +741,18 @@ var Le = (e, t) => {
|
|
|
741
741
|
}
|
|
742
742
|
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
743
743
|
};
|
|
744
|
-
},
|
|
745
|
-
cache:
|
|
746
|
-
parseClassName:
|
|
747
|
-
sortModifiers:
|
|
748
|
-
postfixLookupClassGroupIds:
|
|
749
|
-
...
|
|
750
|
-
}),
|
|
744
|
+
}, pt = (e) => ({
|
|
745
|
+
cache: ot(e.cacheSize),
|
|
746
|
+
parseClassName: dt(e),
|
|
747
|
+
sortModifiers: ft(e),
|
|
748
|
+
postfixLookupClassGroupIds: mt(e),
|
|
749
|
+
...Je(e)
|
|
750
|
+
}), mt = (e) => {
|
|
751
751
|
let t = Object.create(null), n = e.postfixLookupClassGroups;
|
|
752
752
|
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
|
|
753
753
|
return t;
|
|
754
|
-
},
|
|
755
|
-
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(
|
|
754
|
+
}, ht = /\s+/, gt = (e, t) => {
|
|
755
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(ht), l = "";
|
|
756
756
|
for (let e = c.length - 1; e >= 0; --e) {
|
|
757
757
|
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
|
|
758
758
|
if (u) {
|
|
@@ -776,7 +776,7 @@ var Le = (e, t) => {
|
|
|
776
776
|
}
|
|
777
777
|
h = !1;
|
|
778
778
|
}
|
|
779
|
-
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ +
|
|
779
|
+
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + st : _, y = v + g;
|
|
780
780
|
if (s.indexOf(y) > -1) continue;
|
|
781
781
|
s.push(y);
|
|
782
782
|
let b = i(g, h);
|
|
@@ -787,34 +787,34 @@ var Le = (e, t) => {
|
|
|
787
787
|
l = t + (l.length > 0 ? " " + l : l);
|
|
788
788
|
}
|
|
789
789
|
return l;
|
|
790
|
-
},
|
|
790
|
+
}, _t = (...e) => {
|
|
791
791
|
let t = 0, n, r, i = "";
|
|
792
|
-
for (; t < e.length;) (n = e[t++]) && (r =
|
|
792
|
+
for (; t < e.length;) (n = e[t++]) && (r = vt(n)) && (i && (i += " "), i += r);
|
|
793
793
|
return i;
|
|
794
|
-
},
|
|
794
|
+
}, vt = (e) => {
|
|
795
795
|
if (typeof e == "string") return e;
|
|
796
796
|
let t, n = "";
|
|
797
|
-
for (let r = 0; r < e.length; r++) e[r] && (t =
|
|
797
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = vt(e[r])) && (n && (n += " "), n += t);
|
|
798
798
|
return n;
|
|
799
|
-
},
|
|
800
|
-
let n, r, i, a, o = (o) => (n =
|
|
799
|
+
}, yt = (e, ...t) => {
|
|
800
|
+
let n, r, i, a, o = (o) => (n = pt(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
801
801
|
let t = r(e);
|
|
802
802
|
if (t) return t;
|
|
803
|
-
let a =
|
|
803
|
+
let a = gt(e, n);
|
|
804
804
|
return i(e, a), a;
|
|
805
805
|
};
|
|
806
|
-
return a = o, (...e) => a(
|
|
807
|
-
},
|
|
808
|
-
let t = (t) => t[e] ||
|
|
806
|
+
return a = o, (...e) => a(_t(...e));
|
|
807
|
+
}, bt = [], I = (e) => {
|
|
808
|
+
let t = (t) => t[e] || bt;
|
|
809
809
|
return t.isThemeGetter = !0, t;
|
|
810
|
-
},
|
|
811
|
-
let r =
|
|
810
|
+
}, xt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, St = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ct = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, wt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Tt = /\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$/, Et = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Dt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ot = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, L = (e) => Ct.test(e), R = (e) => !!e && !Number.isNaN(Number(e)), z = (e) => !!e && Number.isInteger(Number(e)), kt = (e) => e.endsWith("%") && R(e.slice(0, -1)), B = (e) => wt.test(e), At = () => !0, jt = (e) => Tt.test(e) && !Et.test(e), Mt = () => !1, Nt = (e) => Dt.test(e), Pt = (e) => Ot.test(e), Ft = (e) => !V(e) && !U(e), It = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Lt = (e) => W(e, $t, Mt), V = (e) => xt.test(e), H = (e) => W(e, en, jt), Rt = (e) => W(e, tn, R), zt = (e) => W(e, rn, At), Bt = (e) => W(e, nn, Mt), Vt = (e) => W(e, Zt, Mt), Ht = (e) => W(e, Qt, Pt), Ut = (e) => W(e, an, Nt), U = (e) => St.test(e), Wt = (e) => G(e, en), Gt = (e) => G(e, nn), Kt = (e) => G(e, Zt), qt = (e) => G(e, $t), Jt = (e) => G(e, Qt), Yt = (e) => G(e, an, !0), Xt = (e) => G(e, rn, !0), W = (e, t, n) => {
|
|
811
|
+
let r = xt.exec(e);
|
|
812
812
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
813
|
-
},
|
|
814
|
-
let r =
|
|
813
|
+
}, G = (e, t, n = !1) => {
|
|
814
|
+
let r = St.exec(e);
|
|
815
815
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
816
|
-
},
|
|
817
|
-
let e =
|
|
816
|
+
}, Zt = (e) => e === "position" || e === "percentage", Qt = (e) => e === "image" || e === "url", $t = (e) => e === "length" || e === "size" || e === "bg-size", en = (e) => e === "length", tn = (e) => e === "number", nn = (e) => e === "family-name", rn = (e) => e === "number" || e === "weight", an = (e) => e === "shadow", on = /*#__PURE__*/ yt(() => {
|
|
817
|
+
let e = I("color"), t = I("font"), n = I("text"), r = I("font-weight"), i = I("tracking"), a = I("leading"), o = I("breakpoint"), s = I("container"), c = I("spacing"), l = I("radius"), u = I("shadow"), d = I("inset-shadow"), f = I("text-shadow"), p = I("drop-shadow"), m = I("blur"), h = I("perspective"), g = I("aspect"), _ = I("ease"), v = I("animate"), y = () => [
|
|
818
818
|
"auto",
|
|
819
819
|
"avoid",
|
|
820
820
|
"all",
|
|
@@ -839,8 +839,8 @@ var Le = (e, t) => {
|
|
|
839
839
|
"left-bottom"
|
|
840
840
|
], x = () => [
|
|
841
841
|
...b(),
|
|
842
|
-
|
|
843
|
-
|
|
842
|
+
U,
|
|
843
|
+
V
|
|
844
844
|
], S = () => [
|
|
845
845
|
"auto",
|
|
846
846
|
"hidden",
|
|
@@ -852,44 +852,44 @@ var Le = (e, t) => {
|
|
|
852
852
|
"contain",
|
|
853
853
|
"none"
|
|
854
854
|
], w = () => [
|
|
855
|
-
G,
|
|
856
855
|
U,
|
|
856
|
+
V,
|
|
857
857
|
c
|
|
858
858
|
], T = () => [
|
|
859
|
-
|
|
859
|
+
L,
|
|
860
860
|
"full",
|
|
861
861
|
"auto",
|
|
862
862
|
...w()
|
|
863
|
-
],
|
|
864
|
-
|
|
863
|
+
], ee = () => [
|
|
864
|
+
z,
|
|
865
865
|
"none",
|
|
866
866
|
"subgrid",
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
],
|
|
867
|
+
U,
|
|
868
|
+
V
|
|
869
|
+
], E = () => [
|
|
870
870
|
"auto",
|
|
871
871
|
{ span: [
|
|
872
872
|
"full",
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
873
|
+
z,
|
|
874
|
+
U,
|
|
875
|
+
V
|
|
876
876
|
] },
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
],
|
|
881
|
-
|
|
877
|
+
z,
|
|
878
|
+
U,
|
|
879
|
+
V
|
|
880
|
+
], D = () => [
|
|
881
|
+
z,
|
|
882
882
|
"auto",
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
],
|
|
883
|
+
U,
|
|
884
|
+
V
|
|
885
|
+
], te = () => [
|
|
886
886
|
"auto",
|
|
887
887
|
"min",
|
|
888
888
|
"max",
|
|
889
889
|
"fr",
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
],
|
|
890
|
+
U,
|
|
891
|
+
V
|
|
892
|
+
], O = () => [
|
|
893
893
|
"start",
|
|
894
894
|
"end",
|
|
895
895
|
"center",
|
|
@@ -908,7 +908,7 @@ var Le = (e, t) => {
|
|
|
908
908
|
"center-safe",
|
|
909
909
|
"end-safe"
|
|
910
910
|
], A = () => ["auto", ...w()], j = () => [
|
|
911
|
-
|
|
911
|
+
L,
|
|
912
912
|
"auto",
|
|
913
913
|
"full",
|
|
914
914
|
"dvw",
|
|
@@ -921,8 +921,8 @@ var Le = (e, t) => {
|
|
|
921
921
|
"max",
|
|
922
922
|
"fit",
|
|
923
923
|
...w()
|
|
924
|
-
],
|
|
925
|
-
|
|
924
|
+
], ne = () => [
|
|
925
|
+
L,
|
|
926
926
|
"screen",
|
|
927
927
|
"full",
|
|
928
928
|
"dvw",
|
|
@@ -932,8 +932,8 @@ var Le = (e, t) => {
|
|
|
932
932
|
"max",
|
|
933
933
|
"fit",
|
|
934
934
|
...w()
|
|
935
|
-
],
|
|
936
|
-
|
|
935
|
+
], re = () => [
|
|
936
|
+
L,
|
|
937
937
|
"screen",
|
|
938
938
|
"full",
|
|
939
939
|
"lh",
|
|
@@ -944,50 +944,50 @@ var Le = (e, t) => {
|
|
|
944
944
|
"max",
|
|
945
945
|
"fit",
|
|
946
946
|
...w()
|
|
947
|
-
],
|
|
947
|
+
], M = () => [
|
|
948
948
|
e,
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
],
|
|
949
|
+
U,
|
|
950
|
+
V
|
|
951
|
+
], ie = () => [
|
|
952
952
|
...b(),
|
|
953
|
+
Kt,
|
|
953
954
|
Vt,
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
], re = () => ["no-repeat", { repeat: [
|
|
955
|
+
{ position: [U, V] }
|
|
956
|
+
], ae = () => ["no-repeat", { repeat: [
|
|
957
957
|
"",
|
|
958
958
|
"x",
|
|
959
959
|
"y",
|
|
960
960
|
"space",
|
|
961
961
|
"round"
|
|
962
|
-
] }],
|
|
962
|
+
] }], oe = () => [
|
|
963
963
|
"auto",
|
|
964
964
|
"cover",
|
|
965
965
|
"contain",
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
{ size: [
|
|
969
|
-
],
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
],
|
|
966
|
+
qt,
|
|
967
|
+
Lt,
|
|
968
|
+
{ size: [U, V] }
|
|
969
|
+
], se = () => [
|
|
970
|
+
kt,
|
|
971
|
+
Wt,
|
|
972
|
+
H
|
|
973
|
+
], N = () => [
|
|
974
974
|
"",
|
|
975
975
|
"none",
|
|
976
976
|
"full",
|
|
977
977
|
l,
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
],
|
|
978
|
+
U,
|
|
979
|
+
V
|
|
980
|
+
], P = () => [
|
|
981
981
|
"",
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
],
|
|
982
|
+
R,
|
|
983
|
+
Wt,
|
|
984
|
+
H
|
|
985
|
+
], ce = () => [
|
|
986
986
|
"solid",
|
|
987
987
|
"dashed",
|
|
988
988
|
"dotted",
|
|
989
989
|
"double"
|
|
990
|
-
],
|
|
990
|
+
], le = () => [
|
|
991
991
|
"normal",
|
|
992
992
|
"multiply",
|
|
993
993
|
"screen",
|
|
@@ -1004,33 +1004,33 @@ var Le = (e, t) => {
|
|
|
1004
1004
|
"saturation",
|
|
1005
1005
|
"color",
|
|
1006
1006
|
"luminosity"
|
|
1007
|
-
],
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
],
|
|
1007
|
+
], F = () => [
|
|
1008
|
+
R,
|
|
1009
|
+
kt,
|
|
1010
|
+
Kt,
|
|
1011
|
+
Vt
|
|
1012
|
+
], ue = () => [
|
|
1013
1013
|
"",
|
|
1014
1014
|
"none",
|
|
1015
1015
|
m,
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
], le = () => [
|
|
1019
|
-
"none",
|
|
1020
|
-
B,
|
|
1021
|
-
G,
|
|
1022
|
-
U
|
|
1023
|
-
], ue = () => [
|
|
1024
|
-
"none",
|
|
1025
|
-
B,
|
|
1026
|
-
G,
|
|
1027
|
-
U
|
|
1016
|
+
U,
|
|
1017
|
+
V
|
|
1028
1018
|
], de = () => [
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
U
|
|
1019
|
+
"none",
|
|
1020
|
+
R,
|
|
1021
|
+
U,
|
|
1022
|
+
V
|
|
1032
1023
|
], fe = () => [
|
|
1033
|
-
|
|
1024
|
+
"none",
|
|
1025
|
+
R,
|
|
1026
|
+
U,
|
|
1027
|
+
V
|
|
1028
|
+
], pe = () => [
|
|
1029
|
+
R,
|
|
1030
|
+
U,
|
|
1031
|
+
V
|
|
1032
|
+
], me = () => [
|
|
1033
|
+
L,
|
|
1034
1034
|
"full",
|
|
1035
1035
|
...w()
|
|
1036
1036
|
];
|
|
@@ -1044,17 +1044,17 @@ var Le = (e, t) => {
|
|
|
1044
1044
|
"bounce"
|
|
1045
1045
|
],
|
|
1046
1046
|
aspect: ["video"],
|
|
1047
|
-
blur: [
|
|
1048
|
-
breakpoint: [
|
|
1049
|
-
color: [
|
|
1050
|
-
container: [
|
|
1051
|
-
"drop-shadow": [
|
|
1047
|
+
blur: [B],
|
|
1048
|
+
breakpoint: [B],
|
|
1049
|
+
color: [At],
|
|
1050
|
+
container: [B],
|
|
1051
|
+
"drop-shadow": [B],
|
|
1052
1052
|
ease: [
|
|
1053
1053
|
"in",
|
|
1054
1054
|
"out",
|
|
1055
1055
|
"in-out"
|
|
1056
1056
|
],
|
|
1057
|
-
font: [
|
|
1057
|
+
font: [Ft],
|
|
1058
1058
|
"font-weight": [
|
|
1059
1059
|
"thin",
|
|
1060
1060
|
"extralight",
|
|
@@ -1066,7 +1066,7 @@ var Le = (e, t) => {
|
|
|
1066
1066
|
"extrabold",
|
|
1067
1067
|
"black"
|
|
1068
1068
|
],
|
|
1069
|
-
"inset-shadow": [
|
|
1069
|
+
"inset-shadow": [B],
|
|
1070
1070
|
leading: [
|
|
1071
1071
|
"none",
|
|
1072
1072
|
"tight",
|
|
@@ -1083,11 +1083,11 @@ var Le = (e, t) => {
|
|
|
1083
1083
|
"distant",
|
|
1084
1084
|
"none"
|
|
1085
1085
|
],
|
|
1086
|
-
radius: [
|
|
1087
|
-
shadow: [
|
|
1088
|
-
spacing: ["px",
|
|
1089
|
-
text: [
|
|
1090
|
-
"text-shadow": [
|
|
1086
|
+
radius: [B],
|
|
1087
|
+
shadow: [B],
|
|
1088
|
+
spacing: ["px", R],
|
|
1089
|
+
text: [B],
|
|
1090
|
+
"text-shadow": [B],
|
|
1091
1091
|
tracking: [
|
|
1092
1092
|
"tighter",
|
|
1093
1093
|
"tight",
|
|
@@ -1101,9 +1101,9 @@ var Le = (e, t) => {
|
|
|
1101
1101
|
aspect: [{ aspect: [
|
|
1102
1102
|
"auto",
|
|
1103
1103
|
"square",
|
|
1104
|
-
|
|
1104
|
+
L,
|
|
1105
|
+
V,
|
|
1105
1106
|
U,
|
|
1106
|
-
G,
|
|
1107
1107
|
g
|
|
1108
1108
|
] }],
|
|
1109
1109
|
container: ["container"],
|
|
@@ -1111,14 +1111,14 @@ var Le = (e, t) => {
|
|
|
1111
1111
|
"",
|
|
1112
1112
|
"normal",
|
|
1113
1113
|
"size",
|
|
1114
|
-
|
|
1115
|
-
|
|
1114
|
+
U,
|
|
1115
|
+
V
|
|
1116
1116
|
] }],
|
|
1117
|
-
"container-named": [
|
|
1117
|
+
"container-named": [It],
|
|
1118
1118
|
columns: [{ columns: [
|
|
1119
|
-
|
|
1119
|
+
R,
|
|
1120
|
+
V,
|
|
1120
1121
|
U,
|
|
1121
|
-
G,
|
|
1122
1122
|
s
|
|
1123
1123
|
] }],
|
|
1124
1124
|
"break-after": [{ "break-after": y() }],
|
|
@@ -1215,13 +1215,13 @@ var Le = (e, t) => {
|
|
|
1215
1215
|
"collapse"
|
|
1216
1216
|
],
|
|
1217
1217
|
z: [{ z: [
|
|
1218
|
-
|
|
1218
|
+
z,
|
|
1219
1219
|
"auto",
|
|
1220
|
-
|
|
1221
|
-
|
|
1220
|
+
U,
|
|
1221
|
+
V
|
|
1222
1222
|
] }],
|
|
1223
1223
|
basis: [{ basis: [
|
|
1224
|
-
|
|
1224
|
+
L,
|
|
1225
1225
|
"full",
|
|
1226
1226
|
"auto",
|
|
1227
1227
|
s,
|
|
@@ -1239,41 +1239,41 @@ var Le = (e, t) => {
|
|
|
1239
1239
|
"wrap-reverse"
|
|
1240
1240
|
] }],
|
|
1241
1241
|
flex: [{ flex: [
|
|
1242
|
-
|
|
1243
|
-
|
|
1242
|
+
R,
|
|
1243
|
+
L,
|
|
1244
1244
|
"auto",
|
|
1245
1245
|
"initial",
|
|
1246
1246
|
"none",
|
|
1247
|
-
|
|
1247
|
+
V
|
|
1248
1248
|
] }],
|
|
1249
1249
|
grow: [{ grow: [
|
|
1250
1250
|
"",
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1251
|
+
R,
|
|
1252
|
+
U,
|
|
1253
|
+
V
|
|
1254
1254
|
] }],
|
|
1255
1255
|
shrink: [{ shrink: [
|
|
1256
1256
|
"",
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1257
|
+
R,
|
|
1258
|
+
U,
|
|
1259
|
+
V
|
|
1260
1260
|
] }],
|
|
1261
1261
|
order: [{ order: [
|
|
1262
|
-
|
|
1262
|
+
z,
|
|
1263
1263
|
"first",
|
|
1264
1264
|
"last",
|
|
1265
1265
|
"none",
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
] }],
|
|
1269
|
-
"grid-cols": [{ "grid-cols":
|
|
1270
|
-
"col-start-end": [{ col:
|
|
1271
|
-
"col-start": [{ "col-start":
|
|
1272
|
-
"col-end": [{ "col-end":
|
|
1273
|
-
"grid-rows": [{ "grid-rows":
|
|
1274
|
-
"row-start-end": [{ row:
|
|
1275
|
-
"row-start": [{ "row-start":
|
|
1276
|
-
"row-end": [{ "row-end":
|
|
1266
|
+
U,
|
|
1267
|
+
V
|
|
1268
|
+
] }],
|
|
1269
|
+
"grid-cols": [{ "grid-cols": ee() }],
|
|
1270
|
+
"col-start-end": [{ col: E() }],
|
|
1271
|
+
"col-start": [{ "col-start": D() }],
|
|
1272
|
+
"col-end": [{ "col-end": D() }],
|
|
1273
|
+
"grid-rows": [{ "grid-rows": ee() }],
|
|
1274
|
+
"row-start-end": [{ row: E() }],
|
|
1275
|
+
"row-start": [{ "row-start": D() }],
|
|
1276
|
+
"row-end": [{ "row-end": D() }],
|
|
1277
1277
|
"grid-flow": [{ "grid-flow": [
|
|
1278
1278
|
"row",
|
|
1279
1279
|
"col",
|
|
@@ -1281,22 +1281,22 @@ var Le = (e, t) => {
|
|
|
1281
1281
|
"row-dense",
|
|
1282
1282
|
"col-dense"
|
|
1283
1283
|
] }],
|
|
1284
|
-
"auto-cols": [{ "auto-cols":
|
|
1285
|
-
"auto-rows": [{ "auto-rows":
|
|
1284
|
+
"auto-cols": [{ "auto-cols": te() }],
|
|
1285
|
+
"auto-rows": [{ "auto-rows": te() }],
|
|
1286
1286
|
gap: [{ gap: w() }],
|
|
1287
1287
|
"gap-x": [{ "gap-x": w() }],
|
|
1288
1288
|
"gap-y": [{ "gap-y": w() }],
|
|
1289
|
-
"justify-content": [{ justify: [...
|
|
1289
|
+
"justify-content": [{ justify: [...O(), "normal"] }],
|
|
1290
1290
|
"justify-items": [{ "justify-items": [...k(), "normal"] }],
|
|
1291
1291
|
"justify-self": [{ "justify-self": ["auto", ...k()] }],
|
|
1292
|
-
"align-content": [{ content: ["normal", ...
|
|
1292
|
+
"align-content": [{ content: ["normal", ...O()] }],
|
|
1293
1293
|
"align-items": [{ items: [...k(), { baseline: ["", "last"] }] }],
|
|
1294
1294
|
"align-self": [{ self: [
|
|
1295
1295
|
"auto",
|
|
1296
1296
|
...k(),
|
|
1297
1297
|
{ baseline: ["", "last"] }
|
|
1298
1298
|
] }],
|
|
1299
|
-
"place-content": [{ "place-content":
|
|
1299
|
+
"place-content": [{ "place-content": O() }],
|
|
1300
1300
|
"place-items": [{ "place-items": [...k(), "baseline"] }],
|
|
1301
1301
|
"place-self": [{ "place-self": ["auto", ...k()] }],
|
|
1302
1302
|
p: [{ p: w() }],
|
|
@@ -1326,12 +1326,12 @@ var Le = (e, t) => {
|
|
|
1326
1326
|
"space-y": [{ "space-y": w() }],
|
|
1327
1327
|
"space-y-reverse": ["space-y-reverse"],
|
|
1328
1328
|
size: [{ size: j() }],
|
|
1329
|
-
"inline-size": [{ inline: ["auto", ...
|
|
1330
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
1331
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
1332
|
-
"block-size": [{ block: ["auto", ...
|
|
1333
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
1334
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
1329
|
+
"inline-size": [{ inline: ["auto", ...ne()] }],
|
|
1330
|
+
"min-inline-size": [{ "min-inline": ["auto", ...ne()] }],
|
|
1331
|
+
"max-inline-size": [{ "max-inline": ["none", ...ne()] }],
|
|
1332
|
+
"block-size": [{ block: ["auto", ...re()] }],
|
|
1333
|
+
"min-block-size": [{ "min-block": ["auto", ...re()] }],
|
|
1334
|
+
"max-block-size": [{ "max-block": ["none", ...re()] }],
|
|
1335
1335
|
w: [{ w: [
|
|
1336
1336
|
s,
|
|
1337
1337
|
"screen",
|
|
@@ -1370,15 +1370,15 @@ var Le = (e, t) => {
|
|
|
1370
1370
|
"font-size": [{ text: [
|
|
1371
1371
|
"base",
|
|
1372
1372
|
n,
|
|
1373
|
-
|
|
1374
|
-
|
|
1373
|
+
Wt,
|
|
1374
|
+
H
|
|
1375
1375
|
] }],
|
|
1376
1376
|
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1377
1377
|
"font-style": ["italic", "not-italic"],
|
|
1378
1378
|
"font-weight": [{ font: [
|
|
1379
1379
|
r,
|
|
1380
|
-
|
|
1381
|
-
|
|
1380
|
+
Xt,
|
|
1381
|
+
zt
|
|
1382
1382
|
] }],
|
|
1383
1383
|
"font-stretch": [{ "font-stretch": [
|
|
1384
1384
|
"ultra-condensed",
|
|
@@ -1390,15 +1390,15 @@ var Le = (e, t) => {
|
|
|
1390
1390
|
"expanded",
|
|
1391
1391
|
"extra-expanded",
|
|
1392
1392
|
"ultra-expanded",
|
|
1393
|
-
|
|
1394
|
-
|
|
1393
|
+
kt,
|
|
1394
|
+
V
|
|
1395
1395
|
] }],
|
|
1396
1396
|
"font-family": [{ font: [
|
|
1397
|
+
Gt,
|
|
1397
1398
|
Bt,
|
|
1398
|
-
Ft,
|
|
1399
1399
|
t
|
|
1400
1400
|
] }],
|
|
1401
|
-
"font-features": [{ "font-features": [
|
|
1401
|
+
"font-features": [{ "font-features": [V] }],
|
|
1402
1402
|
"fvn-normal": ["normal-nums"],
|
|
1403
1403
|
"fvn-ordinal": ["ordinal"],
|
|
1404
1404
|
"fvn-slashed-zero": ["slashed-zero"],
|
|
@@ -1407,28 +1407,28 @@ var Le = (e, t) => {
|
|
|
1407
1407
|
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
1408
1408
|
tracking: [{ tracking: [
|
|
1409
1409
|
i,
|
|
1410
|
-
|
|
1411
|
-
|
|
1410
|
+
U,
|
|
1411
|
+
V
|
|
1412
1412
|
] }],
|
|
1413
1413
|
"line-clamp": [{ "line-clamp": [
|
|
1414
|
-
|
|
1414
|
+
R,
|
|
1415
1415
|
"none",
|
|
1416
|
-
|
|
1417
|
-
|
|
1416
|
+
U,
|
|
1417
|
+
Rt
|
|
1418
1418
|
] }],
|
|
1419
1419
|
leading: [{ leading: [a, ...w()] }],
|
|
1420
1420
|
"list-image": [{ "list-image": [
|
|
1421
1421
|
"none",
|
|
1422
|
-
|
|
1423
|
-
|
|
1422
|
+
U,
|
|
1423
|
+
V
|
|
1424
1424
|
] }],
|
|
1425
1425
|
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
1426
1426
|
"list-style-type": [{ list: [
|
|
1427
1427
|
"disc",
|
|
1428
1428
|
"decimal",
|
|
1429
1429
|
"none",
|
|
1430
|
-
|
|
1431
|
-
|
|
1430
|
+
U,
|
|
1431
|
+
V
|
|
1432
1432
|
] }],
|
|
1433
1433
|
"text-alignment": [{ text: [
|
|
1434
1434
|
"left",
|
|
@@ -1438,28 +1438,28 @@ var Le = (e, t) => {
|
|
|
1438
1438
|
"start",
|
|
1439
1439
|
"end"
|
|
1440
1440
|
] }],
|
|
1441
|
-
"placeholder-color": [{ placeholder:
|
|
1442
|
-
"text-color": [{ text:
|
|
1441
|
+
"placeholder-color": [{ placeholder: M() }],
|
|
1442
|
+
"text-color": [{ text: M() }],
|
|
1443
1443
|
"text-decoration": [
|
|
1444
1444
|
"underline",
|
|
1445
1445
|
"overline",
|
|
1446
1446
|
"line-through",
|
|
1447
1447
|
"no-underline"
|
|
1448
1448
|
],
|
|
1449
|
-
"text-decoration-style": [{ decoration: [...
|
|
1449
|
+
"text-decoration-style": [{ decoration: [...ce(), "wavy"] }],
|
|
1450
1450
|
"text-decoration-thickness": [{ decoration: [
|
|
1451
|
-
|
|
1451
|
+
R,
|
|
1452
1452
|
"from-font",
|
|
1453
1453
|
"auto",
|
|
1454
|
-
|
|
1455
|
-
|
|
1454
|
+
U,
|
|
1455
|
+
H
|
|
1456
1456
|
] }],
|
|
1457
|
-
"text-decoration-color": [{ decoration:
|
|
1457
|
+
"text-decoration-color": [{ decoration: M() }],
|
|
1458
1458
|
"underline-offset": [{ "underline-offset": [
|
|
1459
|
-
|
|
1459
|
+
R,
|
|
1460
1460
|
"auto",
|
|
1461
|
-
|
|
1462
|
-
|
|
1461
|
+
U,
|
|
1462
|
+
V
|
|
1463
1463
|
] }],
|
|
1464
1464
|
"text-transform": [
|
|
1465
1465
|
"uppercase",
|
|
@@ -1480,9 +1480,9 @@ var Le = (e, t) => {
|
|
|
1480
1480
|
] }],
|
|
1481
1481
|
indent: [{ indent: w() }],
|
|
1482
1482
|
"tab-size": [{ tab: [
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1483
|
+
z,
|
|
1484
|
+
U,
|
|
1485
|
+
V
|
|
1486
1486
|
] }],
|
|
1487
1487
|
"vertical-align": [{ align: [
|
|
1488
1488
|
"baseline",
|
|
@@ -1493,8 +1493,8 @@ var Le = (e, t) => {
|
|
|
1493
1493
|
"text-bottom",
|
|
1494
1494
|
"sub",
|
|
1495
1495
|
"super",
|
|
1496
|
-
|
|
1497
|
-
|
|
1496
|
+
U,
|
|
1497
|
+
V
|
|
1498
1498
|
] }],
|
|
1499
1499
|
whitespace: [{ whitespace: [
|
|
1500
1500
|
"normal",
|
|
@@ -1522,8 +1522,8 @@ var Le = (e, t) => {
|
|
|
1522
1522
|
] }],
|
|
1523
1523
|
content: [{ content: [
|
|
1524
1524
|
"none",
|
|
1525
|
-
|
|
1526
|
-
|
|
1525
|
+
U,
|
|
1526
|
+
V
|
|
1527
1527
|
] }],
|
|
1528
1528
|
"bg-attachment": [{ bg: [
|
|
1529
1529
|
"fixed",
|
|
@@ -1541,9 +1541,9 @@ var Le = (e, t) => {
|
|
|
1541
1541
|
"padding",
|
|
1542
1542
|
"content"
|
|
1543
1543
|
] }],
|
|
1544
|
-
"bg-position": [{ bg:
|
|
1545
|
-
"bg-repeat": [{ bg:
|
|
1546
|
-
"bg-size": [{ bg:
|
|
1544
|
+
"bg-position": [{ bg: ie() }],
|
|
1545
|
+
"bg-repeat": [{ bg: ae() }],
|
|
1546
|
+
"bg-size": [{ bg: oe() }],
|
|
1547
1547
|
"bg-image": [{ bg: [
|
|
1548
1548
|
"none",
|
|
1549
1549
|
{
|
|
@@ -1558,140 +1558,140 @@ var Le = (e, t) => {
|
|
|
1558
1558
|
"l",
|
|
1559
1559
|
"tl"
|
|
1560
1560
|
] },
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1561
|
+
z,
|
|
1562
|
+
U,
|
|
1563
|
+
V
|
|
1564
1564
|
],
|
|
1565
1565
|
radial: [
|
|
1566
1566
|
"",
|
|
1567
|
-
|
|
1568
|
-
|
|
1567
|
+
U,
|
|
1568
|
+
V
|
|
1569
1569
|
],
|
|
1570
1570
|
conic: [
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1571
|
+
z,
|
|
1572
|
+
U,
|
|
1573
|
+
V
|
|
1574
1574
|
]
|
|
1575
1575
|
},
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
] }],
|
|
1579
|
-
"bg-color": [{ bg:
|
|
1580
|
-
"gradient-from-pos": [{ from:
|
|
1581
|
-
"gradient-via-pos": [{ via:
|
|
1582
|
-
"gradient-to-pos": [{ to:
|
|
1583
|
-
"gradient-from": [{ from:
|
|
1584
|
-
"gradient-via": [{ via:
|
|
1585
|
-
"gradient-to": [{ to:
|
|
1586
|
-
rounded: [{ rounded:
|
|
1587
|
-
"rounded-s": [{ "rounded-s":
|
|
1588
|
-
"rounded-e": [{ "rounded-e":
|
|
1589
|
-
"rounded-t": [{ "rounded-t":
|
|
1590
|
-
"rounded-r": [{ "rounded-r":
|
|
1591
|
-
"rounded-b": [{ "rounded-b":
|
|
1592
|
-
"rounded-l": [{ "rounded-l":
|
|
1593
|
-
"rounded-ss": [{ "rounded-ss":
|
|
1594
|
-
"rounded-se": [{ "rounded-se":
|
|
1595
|
-
"rounded-ee": [{ "rounded-ee":
|
|
1596
|
-
"rounded-es": [{ "rounded-es":
|
|
1597
|
-
"rounded-tl": [{ "rounded-tl":
|
|
1598
|
-
"rounded-tr": [{ "rounded-tr":
|
|
1599
|
-
"rounded-br": [{ "rounded-br":
|
|
1600
|
-
"rounded-bl": [{ "rounded-bl":
|
|
1601
|
-
"border-w": [{ border:
|
|
1602
|
-
"border-w-x": [{ "border-x":
|
|
1603
|
-
"border-w-y": [{ "border-y":
|
|
1604
|
-
"border-w-s": [{ "border-s":
|
|
1605
|
-
"border-w-e": [{ "border-e":
|
|
1606
|
-
"border-w-bs": [{ "border-bs":
|
|
1607
|
-
"border-w-be": [{ "border-be":
|
|
1608
|
-
"border-w-t": [{ "border-t":
|
|
1609
|
-
"border-w-r": [{ "border-r":
|
|
1610
|
-
"border-w-b": [{ "border-b":
|
|
1611
|
-
"border-w-l": [{ "border-l":
|
|
1612
|
-
"divide-x": [{ "divide-x":
|
|
1576
|
+
Jt,
|
|
1577
|
+
Ht
|
|
1578
|
+
] }],
|
|
1579
|
+
"bg-color": [{ bg: M() }],
|
|
1580
|
+
"gradient-from-pos": [{ from: se() }],
|
|
1581
|
+
"gradient-via-pos": [{ via: se() }],
|
|
1582
|
+
"gradient-to-pos": [{ to: se() }],
|
|
1583
|
+
"gradient-from": [{ from: M() }],
|
|
1584
|
+
"gradient-via": [{ via: M() }],
|
|
1585
|
+
"gradient-to": [{ to: M() }],
|
|
1586
|
+
rounded: [{ rounded: N() }],
|
|
1587
|
+
"rounded-s": [{ "rounded-s": N() }],
|
|
1588
|
+
"rounded-e": [{ "rounded-e": N() }],
|
|
1589
|
+
"rounded-t": [{ "rounded-t": N() }],
|
|
1590
|
+
"rounded-r": [{ "rounded-r": N() }],
|
|
1591
|
+
"rounded-b": [{ "rounded-b": N() }],
|
|
1592
|
+
"rounded-l": [{ "rounded-l": N() }],
|
|
1593
|
+
"rounded-ss": [{ "rounded-ss": N() }],
|
|
1594
|
+
"rounded-se": [{ "rounded-se": N() }],
|
|
1595
|
+
"rounded-ee": [{ "rounded-ee": N() }],
|
|
1596
|
+
"rounded-es": [{ "rounded-es": N() }],
|
|
1597
|
+
"rounded-tl": [{ "rounded-tl": N() }],
|
|
1598
|
+
"rounded-tr": [{ "rounded-tr": N() }],
|
|
1599
|
+
"rounded-br": [{ "rounded-br": N() }],
|
|
1600
|
+
"rounded-bl": [{ "rounded-bl": N() }],
|
|
1601
|
+
"border-w": [{ border: P() }],
|
|
1602
|
+
"border-w-x": [{ "border-x": P() }],
|
|
1603
|
+
"border-w-y": [{ "border-y": P() }],
|
|
1604
|
+
"border-w-s": [{ "border-s": P() }],
|
|
1605
|
+
"border-w-e": [{ "border-e": P() }],
|
|
1606
|
+
"border-w-bs": [{ "border-bs": P() }],
|
|
1607
|
+
"border-w-be": [{ "border-be": P() }],
|
|
1608
|
+
"border-w-t": [{ "border-t": P() }],
|
|
1609
|
+
"border-w-r": [{ "border-r": P() }],
|
|
1610
|
+
"border-w-b": [{ "border-b": P() }],
|
|
1611
|
+
"border-w-l": [{ "border-l": P() }],
|
|
1612
|
+
"divide-x": [{ "divide-x": P() }],
|
|
1613
1613
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
1614
|
-
"divide-y": [{ "divide-y":
|
|
1614
|
+
"divide-y": [{ "divide-y": P() }],
|
|
1615
1615
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
1616
1616
|
"border-style": [{ border: [
|
|
1617
|
-
...
|
|
1617
|
+
...ce(),
|
|
1618
1618
|
"hidden",
|
|
1619
1619
|
"none"
|
|
1620
1620
|
] }],
|
|
1621
1621
|
"divide-style": [{ divide: [
|
|
1622
|
-
...
|
|
1622
|
+
...ce(),
|
|
1623
1623
|
"hidden",
|
|
1624
1624
|
"none"
|
|
1625
1625
|
] }],
|
|
1626
|
-
"border-color": [{ border:
|
|
1627
|
-
"border-color-x": [{ "border-x":
|
|
1628
|
-
"border-color-y": [{ "border-y":
|
|
1629
|
-
"border-color-s": [{ "border-s":
|
|
1630
|
-
"border-color-e": [{ "border-e":
|
|
1631
|
-
"border-color-bs": [{ "border-bs":
|
|
1632
|
-
"border-color-be": [{ "border-be":
|
|
1633
|
-
"border-color-t": [{ "border-t":
|
|
1634
|
-
"border-color-r": [{ "border-r":
|
|
1635
|
-
"border-color-b": [{ "border-b":
|
|
1636
|
-
"border-color-l": [{ "border-l":
|
|
1637
|
-
"divide-color": [{ divide:
|
|
1626
|
+
"border-color": [{ border: M() }],
|
|
1627
|
+
"border-color-x": [{ "border-x": M() }],
|
|
1628
|
+
"border-color-y": [{ "border-y": M() }],
|
|
1629
|
+
"border-color-s": [{ "border-s": M() }],
|
|
1630
|
+
"border-color-e": [{ "border-e": M() }],
|
|
1631
|
+
"border-color-bs": [{ "border-bs": M() }],
|
|
1632
|
+
"border-color-be": [{ "border-be": M() }],
|
|
1633
|
+
"border-color-t": [{ "border-t": M() }],
|
|
1634
|
+
"border-color-r": [{ "border-r": M() }],
|
|
1635
|
+
"border-color-b": [{ "border-b": M() }],
|
|
1636
|
+
"border-color-l": [{ "border-l": M() }],
|
|
1637
|
+
"divide-color": [{ divide: M() }],
|
|
1638
1638
|
"outline-style": [{ outline: [
|
|
1639
|
-
...
|
|
1639
|
+
...ce(),
|
|
1640
1640
|
"none",
|
|
1641
1641
|
"hidden"
|
|
1642
1642
|
] }],
|
|
1643
1643
|
"outline-offset": [{ "outline-offset": [
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1644
|
+
R,
|
|
1645
|
+
U,
|
|
1646
|
+
V
|
|
1647
1647
|
] }],
|
|
1648
1648
|
"outline-w": [{ outline: [
|
|
1649
1649
|
"",
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1650
|
+
R,
|
|
1651
|
+
Wt,
|
|
1652
|
+
H
|
|
1653
1653
|
] }],
|
|
1654
|
-
"outline-color": [{ outline:
|
|
1654
|
+
"outline-color": [{ outline: M() }],
|
|
1655
1655
|
shadow: [{ shadow: [
|
|
1656
1656
|
"",
|
|
1657
1657
|
"none",
|
|
1658
1658
|
u,
|
|
1659
|
-
|
|
1660
|
-
|
|
1659
|
+
Yt,
|
|
1660
|
+
Ut
|
|
1661
1661
|
] }],
|
|
1662
|
-
"shadow-color": [{ shadow:
|
|
1662
|
+
"shadow-color": [{ shadow: M() }],
|
|
1663
1663
|
"inset-shadow": [{ "inset-shadow": [
|
|
1664
1664
|
"none",
|
|
1665
1665
|
d,
|
|
1666
|
-
|
|
1667
|
-
|
|
1666
|
+
Yt,
|
|
1667
|
+
Ut
|
|
1668
1668
|
] }],
|
|
1669
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
1670
|
-
"ring-w": [{ ring:
|
|
1669
|
+
"inset-shadow-color": [{ "inset-shadow": M() }],
|
|
1670
|
+
"ring-w": [{ ring: P() }],
|
|
1671
1671
|
"ring-w-inset": ["ring-inset"],
|
|
1672
|
-
"ring-color": [{ ring:
|
|
1673
|
-
"ring-offset-w": [{ "ring-offset": [
|
|
1674
|
-
"ring-offset-color": [{ "ring-offset":
|
|
1675
|
-
"inset-ring-w": [{ "inset-ring":
|
|
1676
|
-
"inset-ring-color": [{ "inset-ring":
|
|
1672
|
+
"ring-color": [{ ring: M() }],
|
|
1673
|
+
"ring-offset-w": [{ "ring-offset": [R, H] }],
|
|
1674
|
+
"ring-offset-color": [{ "ring-offset": M() }],
|
|
1675
|
+
"inset-ring-w": [{ "inset-ring": P() }],
|
|
1676
|
+
"inset-ring-color": [{ "inset-ring": M() }],
|
|
1677
1677
|
"text-shadow": [{ "text-shadow": [
|
|
1678
1678
|
"none",
|
|
1679
1679
|
f,
|
|
1680
|
-
|
|
1681
|
-
|
|
1680
|
+
Yt,
|
|
1681
|
+
Ut
|
|
1682
1682
|
] }],
|
|
1683
|
-
"text-shadow-color": [{ "text-shadow":
|
|
1683
|
+
"text-shadow-color": [{ "text-shadow": M() }],
|
|
1684
1684
|
opacity: [{ opacity: [
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1685
|
+
R,
|
|
1686
|
+
U,
|
|
1687
|
+
V
|
|
1688
1688
|
] }],
|
|
1689
1689
|
"mix-blend": [{ "mix-blend": [
|
|
1690
|
-
...
|
|
1690
|
+
...le(),
|
|
1691
1691
|
"plus-darker",
|
|
1692
1692
|
"plus-lighter"
|
|
1693
1693
|
] }],
|
|
1694
|
-
"bg-blend": [{ "bg-blend":
|
|
1694
|
+
"bg-blend": [{ "bg-blend": le() }],
|
|
1695
1695
|
"mask-clip": [{ "mask-clip": [
|
|
1696
1696
|
"border",
|
|
1697
1697
|
"padding",
|
|
@@ -1706,51 +1706,51 @@ var Le = (e, t) => {
|
|
|
1706
1706
|
"intersect",
|
|
1707
1707
|
"exclude"
|
|
1708
1708
|
] }],
|
|
1709
|
-
"mask-image-linear-pos": [{ "mask-linear": [
|
|
1710
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
1711
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
1712
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
1713
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
1714
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
1715
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
1716
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
1717
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
1718
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
1719
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
1720
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
1721
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
1722
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
1723
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
1724
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
1725
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
1726
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
1727
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
1728
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
1729
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
1730
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
1731
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
1732
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
1733
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
1734
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
1735
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
1736
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
1737
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
1738
|
-
"mask-image-radial": [{ "mask-radial": [
|
|
1739
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
1740
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
1741
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
1742
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
1709
|
+
"mask-image-linear-pos": [{ "mask-linear": [R] }],
|
|
1710
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": F() }],
|
|
1711
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": F() }],
|
|
1712
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": M() }],
|
|
1713
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": M() }],
|
|
1714
|
+
"mask-image-t-from-pos": [{ "mask-t-from": F() }],
|
|
1715
|
+
"mask-image-t-to-pos": [{ "mask-t-to": F() }],
|
|
1716
|
+
"mask-image-t-from-color": [{ "mask-t-from": M() }],
|
|
1717
|
+
"mask-image-t-to-color": [{ "mask-t-to": M() }],
|
|
1718
|
+
"mask-image-r-from-pos": [{ "mask-r-from": F() }],
|
|
1719
|
+
"mask-image-r-to-pos": [{ "mask-r-to": F() }],
|
|
1720
|
+
"mask-image-r-from-color": [{ "mask-r-from": M() }],
|
|
1721
|
+
"mask-image-r-to-color": [{ "mask-r-to": M() }],
|
|
1722
|
+
"mask-image-b-from-pos": [{ "mask-b-from": F() }],
|
|
1723
|
+
"mask-image-b-to-pos": [{ "mask-b-to": F() }],
|
|
1724
|
+
"mask-image-b-from-color": [{ "mask-b-from": M() }],
|
|
1725
|
+
"mask-image-b-to-color": [{ "mask-b-to": M() }],
|
|
1726
|
+
"mask-image-l-from-pos": [{ "mask-l-from": F() }],
|
|
1727
|
+
"mask-image-l-to-pos": [{ "mask-l-to": F() }],
|
|
1728
|
+
"mask-image-l-from-color": [{ "mask-l-from": M() }],
|
|
1729
|
+
"mask-image-l-to-color": [{ "mask-l-to": M() }],
|
|
1730
|
+
"mask-image-x-from-pos": [{ "mask-x-from": F() }],
|
|
1731
|
+
"mask-image-x-to-pos": [{ "mask-x-to": F() }],
|
|
1732
|
+
"mask-image-x-from-color": [{ "mask-x-from": M() }],
|
|
1733
|
+
"mask-image-x-to-color": [{ "mask-x-to": M() }],
|
|
1734
|
+
"mask-image-y-from-pos": [{ "mask-y-from": F() }],
|
|
1735
|
+
"mask-image-y-to-pos": [{ "mask-y-to": F() }],
|
|
1736
|
+
"mask-image-y-from-color": [{ "mask-y-from": M() }],
|
|
1737
|
+
"mask-image-y-to-color": [{ "mask-y-to": M() }],
|
|
1738
|
+
"mask-image-radial": [{ "mask-radial": [U, V] }],
|
|
1739
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": F() }],
|
|
1740
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": F() }],
|
|
1741
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": M() }],
|
|
1742
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": M() }],
|
|
1743
1743
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
1744
1744
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
1745
1745
|
closest: ["side", "corner"],
|
|
1746
1746
|
farthest: ["side", "corner"]
|
|
1747
1747
|
}] }],
|
|
1748
1748
|
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
1749
|
-
"mask-image-conic-pos": [{ "mask-conic": [
|
|
1750
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
1751
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
1752
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
1753
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
1749
|
+
"mask-image-conic-pos": [{ "mask-conic": [R] }],
|
|
1750
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": F() }],
|
|
1751
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": F() }],
|
|
1752
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": M() }],
|
|
1753
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": M() }],
|
|
1754
1754
|
"mask-mode": [{ mask: [
|
|
1755
1755
|
"alpha",
|
|
1756
1756
|
"luminance",
|
|
@@ -1764,117 +1764,117 @@ var Le = (e, t) => {
|
|
|
1764
1764
|
"stroke",
|
|
1765
1765
|
"view"
|
|
1766
1766
|
] }],
|
|
1767
|
-
"mask-position": [{ mask:
|
|
1768
|
-
"mask-repeat": [{ mask:
|
|
1769
|
-
"mask-size": [{ mask:
|
|
1767
|
+
"mask-position": [{ mask: ie() }],
|
|
1768
|
+
"mask-repeat": [{ mask: ae() }],
|
|
1769
|
+
"mask-size": [{ mask: oe() }],
|
|
1770
1770
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1771
1771
|
"mask-image": [{ mask: [
|
|
1772
1772
|
"none",
|
|
1773
|
-
|
|
1774
|
-
|
|
1773
|
+
U,
|
|
1774
|
+
V
|
|
1775
1775
|
] }],
|
|
1776
1776
|
filter: [{ filter: [
|
|
1777
1777
|
"",
|
|
1778
1778
|
"none",
|
|
1779
|
-
|
|
1780
|
-
|
|
1779
|
+
U,
|
|
1780
|
+
V
|
|
1781
1781
|
] }],
|
|
1782
|
-
blur: [{ blur:
|
|
1782
|
+
blur: [{ blur: ue() }],
|
|
1783
1783
|
brightness: [{ brightness: [
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1784
|
+
R,
|
|
1785
|
+
U,
|
|
1786
|
+
V
|
|
1787
1787
|
] }],
|
|
1788
1788
|
contrast: [{ contrast: [
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1789
|
+
R,
|
|
1790
|
+
U,
|
|
1791
|
+
V
|
|
1792
1792
|
] }],
|
|
1793
1793
|
"drop-shadow": [{ "drop-shadow": [
|
|
1794
1794
|
"",
|
|
1795
1795
|
"none",
|
|
1796
1796
|
p,
|
|
1797
|
-
|
|
1798
|
-
|
|
1797
|
+
Yt,
|
|
1798
|
+
Ut
|
|
1799
1799
|
] }],
|
|
1800
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
1800
|
+
"drop-shadow-color": [{ "drop-shadow": M() }],
|
|
1801
1801
|
grayscale: [{ grayscale: [
|
|
1802
1802
|
"",
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1803
|
+
R,
|
|
1804
|
+
U,
|
|
1805
|
+
V
|
|
1806
1806
|
] }],
|
|
1807
1807
|
"hue-rotate": [{ "hue-rotate": [
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1808
|
+
R,
|
|
1809
|
+
U,
|
|
1810
|
+
V
|
|
1811
1811
|
] }],
|
|
1812
1812
|
invert: [{ invert: [
|
|
1813
1813
|
"",
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1814
|
+
R,
|
|
1815
|
+
U,
|
|
1816
|
+
V
|
|
1817
1817
|
] }],
|
|
1818
1818
|
saturate: [{ saturate: [
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1819
|
+
R,
|
|
1820
|
+
U,
|
|
1821
|
+
V
|
|
1822
1822
|
] }],
|
|
1823
1823
|
sepia: [{ sepia: [
|
|
1824
1824
|
"",
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1825
|
+
R,
|
|
1826
|
+
U,
|
|
1827
|
+
V
|
|
1828
1828
|
] }],
|
|
1829
1829
|
"backdrop-filter": [{ "backdrop-filter": [
|
|
1830
1830
|
"",
|
|
1831
1831
|
"none",
|
|
1832
|
-
|
|
1833
|
-
|
|
1832
|
+
U,
|
|
1833
|
+
V
|
|
1834
1834
|
] }],
|
|
1835
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
1835
|
+
"backdrop-blur": [{ "backdrop-blur": ue() }],
|
|
1836
1836
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1837
|
+
R,
|
|
1838
|
+
U,
|
|
1839
|
+
V
|
|
1840
1840
|
] }],
|
|
1841
1841
|
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1842
|
+
R,
|
|
1843
|
+
U,
|
|
1844
|
+
V
|
|
1845
1845
|
] }],
|
|
1846
1846
|
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
1847
1847
|
"",
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1848
|
+
R,
|
|
1849
|
+
U,
|
|
1850
|
+
V
|
|
1851
1851
|
] }],
|
|
1852
1852
|
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1853
|
+
R,
|
|
1854
|
+
U,
|
|
1855
|
+
V
|
|
1856
1856
|
] }],
|
|
1857
1857
|
"backdrop-invert": [{ "backdrop-invert": [
|
|
1858
1858
|
"",
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1859
|
+
R,
|
|
1860
|
+
U,
|
|
1861
|
+
V
|
|
1862
1862
|
] }],
|
|
1863
1863
|
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1864
|
+
R,
|
|
1865
|
+
U,
|
|
1866
|
+
V
|
|
1867
1867
|
] }],
|
|
1868
1868
|
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1869
|
+
R,
|
|
1870
|
+
U,
|
|
1871
|
+
V
|
|
1872
1872
|
] }],
|
|
1873
1873
|
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
1874
1874
|
"",
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1875
|
+
R,
|
|
1876
|
+
U,
|
|
1877
|
+
V
|
|
1878
1878
|
] }],
|
|
1879
1879
|
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
1880
1880
|
"border-spacing": [{ "border-spacing": w() }],
|
|
@@ -1890,56 +1890,56 @@ var Le = (e, t) => {
|
|
|
1890
1890
|
"shadow",
|
|
1891
1891
|
"transform",
|
|
1892
1892
|
"none",
|
|
1893
|
-
|
|
1894
|
-
|
|
1893
|
+
U,
|
|
1894
|
+
V
|
|
1895
1895
|
] }],
|
|
1896
1896
|
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
1897
1897
|
duration: [{ duration: [
|
|
1898
|
-
|
|
1898
|
+
R,
|
|
1899
1899
|
"initial",
|
|
1900
|
-
|
|
1901
|
-
|
|
1900
|
+
U,
|
|
1901
|
+
V
|
|
1902
1902
|
] }],
|
|
1903
1903
|
ease: [{ ease: [
|
|
1904
1904
|
"linear",
|
|
1905
1905
|
"initial",
|
|
1906
1906
|
_,
|
|
1907
|
-
|
|
1908
|
-
|
|
1907
|
+
U,
|
|
1908
|
+
V
|
|
1909
1909
|
] }],
|
|
1910
1910
|
delay: [{ delay: [
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1911
|
+
R,
|
|
1912
|
+
U,
|
|
1913
|
+
V
|
|
1914
1914
|
] }],
|
|
1915
1915
|
animate: [{ animate: [
|
|
1916
1916
|
"none",
|
|
1917
1917
|
v,
|
|
1918
|
-
|
|
1919
|
-
|
|
1918
|
+
U,
|
|
1919
|
+
V
|
|
1920
1920
|
] }],
|
|
1921
1921
|
backface: [{ backface: ["hidden", "visible"] }],
|
|
1922
1922
|
perspective: [{ perspective: [
|
|
1923
1923
|
h,
|
|
1924
|
-
|
|
1925
|
-
|
|
1924
|
+
U,
|
|
1925
|
+
V
|
|
1926
1926
|
] }],
|
|
1927
1927
|
"perspective-origin": [{ "perspective-origin": x() }],
|
|
1928
|
-
rotate: [{ rotate:
|
|
1929
|
-
"rotate-x": [{ "rotate-x":
|
|
1930
|
-
"rotate-y": [{ "rotate-y":
|
|
1931
|
-
"rotate-z": [{ "rotate-z":
|
|
1932
|
-
scale: [{ scale:
|
|
1933
|
-
"scale-x": [{ "scale-x":
|
|
1934
|
-
"scale-y": [{ "scale-y":
|
|
1935
|
-
"scale-z": [{ "scale-z":
|
|
1928
|
+
rotate: [{ rotate: de() }],
|
|
1929
|
+
"rotate-x": [{ "rotate-x": de() }],
|
|
1930
|
+
"rotate-y": [{ "rotate-y": de() }],
|
|
1931
|
+
"rotate-z": [{ "rotate-z": de() }],
|
|
1932
|
+
scale: [{ scale: fe() }],
|
|
1933
|
+
"scale-x": [{ "scale-x": fe() }],
|
|
1934
|
+
"scale-y": [{ "scale-y": fe() }],
|
|
1935
|
+
"scale-z": [{ "scale-z": fe() }],
|
|
1936
1936
|
"scale-3d": ["scale-3d"],
|
|
1937
|
-
skew: [{ skew:
|
|
1938
|
-
"skew-x": [{ "skew-x":
|
|
1939
|
-
"skew-y": [{ "skew-y":
|
|
1937
|
+
skew: [{ skew: pe() }],
|
|
1938
|
+
"skew-x": [{ "skew-x": pe() }],
|
|
1939
|
+
"skew-y": [{ "skew-y": pe() }],
|
|
1940
1940
|
transform: [{ transform: [
|
|
1941
|
-
G,
|
|
1942
1941
|
U,
|
|
1942
|
+
V,
|
|
1943
1943
|
"",
|
|
1944
1944
|
"none",
|
|
1945
1945
|
"gpu",
|
|
@@ -1947,19 +1947,19 @@ var Le = (e, t) => {
|
|
|
1947
1947
|
] }],
|
|
1948
1948
|
"transform-origin": [{ origin: x() }],
|
|
1949
1949
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
1950
|
-
translate: [{ translate:
|
|
1951
|
-
"translate-x": [{ "translate-x":
|
|
1952
|
-
"translate-y": [{ "translate-y":
|
|
1953
|
-
"translate-z": [{ "translate-z":
|
|
1950
|
+
translate: [{ translate: me() }],
|
|
1951
|
+
"translate-x": [{ "translate-x": me() }],
|
|
1952
|
+
"translate-y": [{ "translate-y": me() }],
|
|
1953
|
+
"translate-z": [{ "translate-z": me() }],
|
|
1954
1954
|
"translate-none": ["translate-none"],
|
|
1955
1955
|
zoom: [{ zoom: [
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1956
|
+
z,
|
|
1957
|
+
U,
|
|
1958
|
+
V
|
|
1959
1959
|
] }],
|
|
1960
|
-
accent: [{ accent:
|
|
1960
|
+
accent: [{ accent: M() }],
|
|
1961
1961
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
1962
|
-
"caret-color": [{ caret:
|
|
1962
|
+
"caret-color": [{ caret: M() }],
|
|
1963
1963
|
"color-scheme": [{ scheme: [
|
|
1964
1964
|
"normal",
|
|
1965
1965
|
"dark",
|
|
@@ -2005,8 +2005,8 @@ var Le = (e, t) => {
|
|
|
2005
2005
|
"nwse-resize",
|
|
2006
2006
|
"zoom-in",
|
|
2007
2007
|
"zoom-out",
|
|
2008
|
-
|
|
2009
|
-
|
|
2008
|
+
U,
|
|
2009
|
+
V
|
|
2010
2010
|
] }],
|
|
2011
2011
|
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
2012
2012
|
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
@@ -2017,8 +2017,8 @@ var Le = (e, t) => {
|
|
|
2017
2017
|
"x"
|
|
2018
2018
|
] }],
|
|
2019
2019
|
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
2020
|
-
"scrollbar-thumb-color": [{ "scrollbar-thumb":
|
|
2021
|
-
"scrollbar-track-color": [{ "scrollbar-track":
|
|
2020
|
+
"scrollbar-thumb-color": [{ "scrollbar-thumb": M() }],
|
|
2021
|
+
"scrollbar-track-color": [{ "scrollbar-track": M() }],
|
|
2022
2022
|
"scrollbar-gutter": [{ "scrollbar-gutter": [
|
|
2023
2023
|
"auto",
|
|
2024
2024
|
"stable",
|
|
@@ -2092,17 +2092,17 @@ var Le = (e, t) => {
|
|
|
2092
2092
|
"scroll",
|
|
2093
2093
|
"contents",
|
|
2094
2094
|
"transform",
|
|
2095
|
-
|
|
2096
|
-
|
|
2095
|
+
U,
|
|
2096
|
+
V
|
|
2097
2097
|
] }],
|
|
2098
|
-
fill: [{ fill: ["none", ...
|
|
2098
|
+
fill: [{ fill: ["none", ...M()] }],
|
|
2099
2099
|
"stroke-w": [{ stroke: [
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2100
|
+
R,
|
|
2101
|
+
Wt,
|
|
2102
|
+
H,
|
|
2103
|
+
Rt
|
|
2104
2104
|
] }],
|
|
2105
|
-
stroke: [{ stroke: ["none", ...
|
|
2105
|
+
stroke: [{ stroke: ["none", ...M()] }],
|
|
2106
2106
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
2107
2107
|
},
|
|
2108
2108
|
conflictingClassGroups: {
|
|
@@ -2291,71 +2291,71 @@ var Le = (e, t) => {
|
|
|
2291
2291
|
});
|
|
2292
2292
|
//#endregion
|
|
2293
2293
|
//#region src/utils/cn.ts
|
|
2294
|
-
function
|
|
2295
|
-
return
|
|
2294
|
+
function K(...e) {
|
|
2295
|
+
return on(Ve(e));
|
|
2296
2296
|
}
|
|
2297
2297
|
//#endregion
|
|
2298
2298
|
//#region src/ui/components/Tabs.tsx
|
|
2299
|
-
var
|
|
2299
|
+
var sn = Ae, cn = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Ne, {
|
|
2300
2300
|
ref: r,
|
|
2301
|
-
className:
|
|
2301
|
+
className: K("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", t),
|
|
2302
2302
|
...n
|
|
2303
2303
|
}));
|
|
2304
|
-
|
|
2305
|
-
var
|
|
2304
|
+
cn.displayName = Ne.displayName;
|
|
2305
|
+
var ln = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(ze, {
|
|
2306
2306
|
ref: r,
|
|
2307
|
-
className:
|
|
2307
|
+
className: K("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-xs", t),
|
|
2308
2308
|
...n
|
|
2309
2309
|
}));
|
|
2310
|
-
|
|
2311
|
-
var
|
|
2310
|
+
ln.displayName = ze.displayName;
|
|
2311
|
+
var un = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Fe, {
|
|
2312
2312
|
ref: r,
|
|
2313
|
-
className:
|
|
2313
|
+
className: K("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", t),
|
|
2314
2314
|
...n
|
|
2315
2315
|
}));
|
|
2316
|
-
|
|
2316
|
+
un.displayName = Fe.displayName;
|
|
2317
2317
|
//#endregion
|
|
2318
2318
|
//#region ../../node_modules/@huin-core/react-portal/dist/index.mjs
|
|
2319
|
-
var
|
|
2320
|
-
let { container: r, ...i } = t, [a,
|
|
2321
|
-
|
|
2322
|
-
let
|
|
2323
|
-
return
|
|
2319
|
+
var dn = "Portal", fn = e.forwardRef((t, n) => {
|
|
2320
|
+
let { container: r, ...i } = t, [a, o] = e.useState(!1);
|
|
2321
|
+
w(() => o(!0), []);
|
|
2322
|
+
let s = r || a && globalThis?.document?.body;
|
|
2323
|
+
return s ? l.createPortal(/* @__PURE__ */ e.createElement(D.div, {
|
|
2324
2324
|
...i,
|
|
2325
2325
|
ref: n
|
|
2326
|
-
}),
|
|
2326
|
+
}), s) : null;
|
|
2327
2327
|
});
|
|
2328
|
-
|
|
2328
|
+
fn.displayName = dn;
|
|
2329
2329
|
//#endregion
|
|
2330
2330
|
//#region ../../node_modules/tslib/tslib.es6.mjs
|
|
2331
|
-
var
|
|
2332
|
-
return
|
|
2331
|
+
var q = function() {
|
|
2332
|
+
return q = Object.assign || function(e) {
|
|
2333
2333
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
2334
2334
|
return e;
|
|
2335
|
-
},
|
|
2335
|
+
}, q.apply(this, arguments);
|
|
2336
2336
|
};
|
|
2337
|
-
function
|
|
2337
|
+
function pn(e, t) {
|
|
2338
2338
|
var n = {};
|
|
2339
2339
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2340
2340
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
2341
2341
|
return n;
|
|
2342
2342
|
}
|
|
2343
|
-
function
|
|
2343
|
+
function mn(e, t, n) {
|
|
2344
2344
|
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
2345
2345
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
2346
2346
|
}
|
|
2347
2347
|
//#endregion
|
|
2348
2348
|
//#region ../../node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
2349
|
-
var
|
|
2349
|
+
var hn = "right-scroll-bar-position", gn = "width-before-scroll-bar", _n = "with-scroll-bars-hidden", vn = "--removed-body-scroll-bar-size";
|
|
2350
2350
|
//#endregion
|
|
2351
2351
|
//#region ../../node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
2352
|
-
function
|
|
2352
|
+
function yn(e, t) {
|
|
2353
2353
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2354
2354
|
}
|
|
2355
2355
|
//#endregion
|
|
2356
2356
|
//#region ../../node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
2357
|
-
function
|
|
2358
|
-
var n =
|
|
2357
|
+
function bn(e, t) {
|
|
2358
|
+
var n = s(function() {
|
|
2359
2359
|
return {
|
|
2360
2360
|
value: e,
|
|
2361
2361
|
callback: t,
|
|
@@ -2374,33 +2374,33 @@ function hn(e, t) {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
//#endregion
|
|
2376
2376
|
//#region ../../node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
2377
|
-
var
|
|
2378
|
-
function
|
|
2379
|
-
var n =
|
|
2377
|
+
var xn = typeof window < "u" ? e.useLayoutEffect : e.useEffect, Sn = /* @__PURE__ */ new WeakMap();
|
|
2378
|
+
function Cn(e, t) {
|
|
2379
|
+
var n = bn(t || null, function(t) {
|
|
2380
2380
|
return e.forEach(function(e) {
|
|
2381
|
-
return
|
|
2381
|
+
return yn(e, t);
|
|
2382
2382
|
});
|
|
2383
2383
|
});
|
|
2384
|
-
return
|
|
2385
|
-
var t =
|
|
2384
|
+
return xn(function() {
|
|
2385
|
+
var t = Sn.get(n);
|
|
2386
2386
|
if (t) {
|
|
2387
2387
|
var r = new Set(t), i = new Set(e), a = n.current;
|
|
2388
2388
|
r.forEach(function(e) {
|
|
2389
|
-
i.has(e) ||
|
|
2389
|
+
i.has(e) || yn(e, null);
|
|
2390
2390
|
}), i.forEach(function(e) {
|
|
2391
|
-
r.has(e) ||
|
|
2391
|
+
r.has(e) || yn(e, a);
|
|
2392
2392
|
});
|
|
2393
2393
|
}
|
|
2394
|
-
|
|
2394
|
+
Sn.set(n, e);
|
|
2395
2395
|
}, [e]), n;
|
|
2396
2396
|
}
|
|
2397
2397
|
//#endregion
|
|
2398
2398
|
//#region ../../node_modules/use-sidecar/dist/es2015/medium.js
|
|
2399
|
-
function
|
|
2399
|
+
function wn(e) {
|
|
2400
2400
|
return e;
|
|
2401
2401
|
}
|
|
2402
|
-
function
|
|
2403
|
-
t === void 0 && (t =
|
|
2402
|
+
function Tn(e, t) {
|
|
2403
|
+
t === void 0 && (t = wn);
|
|
2404
2404
|
var n = [], r = !1;
|
|
2405
2405
|
return {
|
|
2406
2406
|
read: function() {
|
|
@@ -2453,35 +2453,35 @@ function bn(e, t) {
|
|
|
2453
2453
|
}
|
|
2454
2454
|
};
|
|
2455
2455
|
}
|
|
2456
|
-
function
|
|
2456
|
+
function En(e) {
|
|
2457
2457
|
e === void 0 && (e = {});
|
|
2458
|
-
var t =
|
|
2459
|
-
return t.options =
|
|
2458
|
+
var t = Tn(null);
|
|
2459
|
+
return t.options = q({
|
|
2460
2460
|
async: !0,
|
|
2461
2461
|
ssr: !1
|
|
2462
2462
|
}, e), t;
|
|
2463
2463
|
}
|
|
2464
2464
|
//#endregion
|
|
2465
2465
|
//#region ../../node_modules/use-sidecar/dist/es2015/exports.js
|
|
2466
|
-
var
|
|
2467
|
-
var n = t.sideCar, r =
|
|
2466
|
+
var Dn = function(t) {
|
|
2467
|
+
var n = t.sideCar, r = pn(t, ["sideCar"]);
|
|
2468
2468
|
if (!n) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
2469
2469
|
var i = n.read();
|
|
2470
2470
|
if (!i) throw Error("Sidecar medium not found");
|
|
2471
|
-
return e.createElement(i,
|
|
2471
|
+
return e.createElement(i, q({}, r));
|
|
2472
2472
|
};
|
|
2473
|
-
|
|
2474
|
-
function
|
|
2475
|
-
return e.useMedium(t),
|
|
2473
|
+
Dn.isSideCarExport = !0;
|
|
2474
|
+
function On(e, t) {
|
|
2475
|
+
return e.useMedium(t), Dn;
|
|
2476
2476
|
}
|
|
2477
2477
|
//#endregion
|
|
2478
2478
|
//#region ../../node_modules/@huin-core/react-dialog/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
2479
|
-
var
|
|
2479
|
+
var kn = En(), An = function() {}, jn = e.forwardRef(function(t, n) {
|
|
2480
2480
|
var r = e.useRef(null), i = e.useState({
|
|
2481
|
-
onScrollCapture:
|
|
2482
|
-
onWheelCapture:
|
|
2483
|
-
onTouchMoveCapture:
|
|
2484
|
-
}), a = i[0], o = i[1], s = t.forwardProps, c = t.children, l = t.className, u = t.removeScrollBar, d = t.enabled, f = t.shards, p = t.sideCar, m = t.noIsolation, h = t.inert, g = t.allowPinchZoom, _ = t.as, v = _ === void 0 ? "div" : _, y = t.gapMode, b =
|
|
2481
|
+
onScrollCapture: An,
|
|
2482
|
+
onWheelCapture: An,
|
|
2483
|
+
onTouchMoveCapture: An
|
|
2484
|
+
}), a = i[0], o = i[1], s = t.forwardProps, c = t.children, l = t.className, u = t.removeScrollBar, d = t.enabled, f = t.shards, p = t.sideCar, m = t.noIsolation, h = t.inert, g = t.allowPinchZoom, _ = t.as, v = _ === void 0 ? "div" : _, y = t.gapMode, b = pn(t, [
|
|
2485
2485
|
"forwardProps",
|
|
2486
2486
|
"children",
|
|
2487
2487
|
"className",
|
|
@@ -2494,9 +2494,9 @@ var wn = xn(), Tn = function() {}, En = e.forwardRef(function(t, n) {
|
|
|
2494
2494
|
"allowPinchZoom",
|
|
2495
2495
|
"as",
|
|
2496
2496
|
"gapMode"
|
|
2497
|
-
]), x = p, S =
|
|
2497
|
+
]), x = p, S = Cn([r, n]), C = q(q({}, b), a);
|
|
2498
2498
|
return e.createElement(e.Fragment, null, d && e.createElement(x, {
|
|
2499
|
-
sideCar:
|
|
2499
|
+
sideCar: kn,
|
|
2500
2500
|
removeScrollBar: u,
|
|
2501
2501
|
shards: f,
|
|
2502
2502
|
noIsolation: m,
|
|
@@ -2505,52 +2505,52 @@ var wn = xn(), Tn = function() {}, En = e.forwardRef(function(t, n) {
|
|
|
2505
2505
|
allowPinchZoom: !!g,
|
|
2506
2506
|
lockRef: r,
|
|
2507
2507
|
gapMode: y
|
|
2508
|
-
}), s ? e.cloneElement(e.Children.only(c),
|
|
2508
|
+
}), s ? e.cloneElement(e.Children.only(c), q(q({}, C), { ref: S })) : e.createElement(v, q({}, C, {
|
|
2509
2509
|
className: l,
|
|
2510
2510
|
ref: S
|
|
2511
2511
|
}), c));
|
|
2512
2512
|
});
|
|
2513
|
-
|
|
2513
|
+
jn.defaultProps = {
|
|
2514
2514
|
enabled: !0,
|
|
2515
2515
|
removeScrollBar: !0,
|
|
2516
2516
|
inert: !1
|
|
2517
|
-
},
|
|
2518
|
-
fullWidth:
|
|
2519
|
-
zeroRight:
|
|
2517
|
+
}, jn.classNames = {
|
|
2518
|
+
fullWidth: gn,
|
|
2519
|
+
zeroRight: hn
|
|
2520
2520
|
};
|
|
2521
2521
|
//#endregion
|
|
2522
2522
|
//#region ../../node_modules/get-nonce/dist/es2015/index.js
|
|
2523
|
-
var
|
|
2524
|
-
if (
|
|
2523
|
+
var Mn, Nn = function() {
|
|
2524
|
+
if (Mn) return Mn;
|
|
2525
2525
|
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
2526
2526
|
};
|
|
2527
2527
|
//#endregion
|
|
2528
2528
|
//#region ../../node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
2529
|
-
function
|
|
2529
|
+
function Pn() {
|
|
2530
2530
|
if (!document) return null;
|
|
2531
2531
|
var e = document.createElement("style");
|
|
2532
2532
|
e.type = "text/css";
|
|
2533
|
-
var t =
|
|
2533
|
+
var t = Nn();
|
|
2534
2534
|
return t && e.setAttribute("nonce", t), e;
|
|
2535
2535
|
}
|
|
2536
|
-
function
|
|
2536
|
+
function Fn(e, t) {
|
|
2537
2537
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
2538
2538
|
}
|
|
2539
|
-
function
|
|
2539
|
+
function In(e) {
|
|
2540
2540
|
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
2541
2541
|
}
|
|
2542
|
-
var
|
|
2542
|
+
var Ln = function() {
|
|
2543
2543
|
var e = 0, t = null;
|
|
2544
2544
|
return {
|
|
2545
2545
|
add: function(n) {
|
|
2546
|
-
e == 0 && (t =
|
|
2546
|
+
e == 0 && (t = Pn()) && (Fn(t, n), In(t)), e++;
|
|
2547
2547
|
},
|
|
2548
2548
|
remove: function() {
|
|
2549
2549
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
2550
2550
|
}
|
|
2551
2551
|
};
|
|
2552
|
-
},
|
|
2553
|
-
var t =
|
|
2552
|
+
}, Rn = function() {
|
|
2553
|
+
var t = Ln();
|
|
2554
2554
|
return function(n, r) {
|
|
2555
2555
|
e.useEffect(function() {
|
|
2556
2556
|
return t.add(n), function() {
|
|
@@ -2558,43 +2558,43 @@ var Mn = function() {
|
|
|
2558
2558
|
};
|
|
2559
2559
|
}, [n && r]);
|
|
2560
2560
|
};
|
|
2561
|
-
},
|
|
2562
|
-
var e =
|
|
2561
|
+
}, zn = function() {
|
|
2562
|
+
var e = Rn();
|
|
2563
2563
|
return function(t) {
|
|
2564
2564
|
var n = t.styles, r = t.dynamic;
|
|
2565
2565
|
return e(n, r), null;
|
|
2566
2566
|
};
|
|
2567
|
-
},
|
|
2567
|
+
}, Bn = {
|
|
2568
2568
|
left: 0,
|
|
2569
2569
|
top: 0,
|
|
2570
2570
|
right: 0,
|
|
2571
2571
|
gap: 0
|
|
2572
|
-
},
|
|
2572
|
+
}, Vn = function(e) {
|
|
2573
2573
|
return parseInt(e || "", 10) || 0;
|
|
2574
|
-
},
|
|
2574
|
+
}, Hn = function(e) {
|
|
2575
2575
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
2576
2576
|
return [
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2577
|
+
Vn(n),
|
|
2578
|
+
Vn(r),
|
|
2579
|
+
Vn(i)
|
|
2580
2580
|
];
|
|
2581
|
-
},
|
|
2582
|
-
if (e === void 0 && (e = "margin"), typeof window > "u") return
|
|
2583
|
-
var t =
|
|
2581
|
+
}, Un = function(e) {
|
|
2582
|
+
if (e === void 0 && (e = "margin"), typeof window > "u") return Bn;
|
|
2583
|
+
var t = Hn(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
2584
2584
|
return {
|
|
2585
2585
|
left: t[0],
|
|
2586
2586
|
top: t[1],
|
|
2587
2587
|
right: t[2],
|
|
2588
2588
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
2589
2589
|
};
|
|
2590
|
-
},
|
|
2590
|
+
}, Wn = zn(), Gn = "data-scroll-locked", Kn = function(e, t, n, r) {
|
|
2591
2591
|
var i = e.left, a = e.top, o = e.right, s = e.gap;
|
|
2592
2592
|
return n === void 0 && (n = "margin"), `
|
|
2593
|
-
.${
|
|
2593
|
+
.${_n} {
|
|
2594
2594
|
overflow: hidden ${r};
|
|
2595
2595
|
padding-right: ${s}px ${r};
|
|
2596
2596
|
}
|
|
2597
|
-
body[${
|
|
2597
|
+
body[${Gn}] {
|
|
2598
2598
|
overflow: hidden ${r};
|
|
2599
2599
|
overscroll-behavior: contain;
|
|
2600
2600
|
${[
|
|
@@ -2611,118 +2611,118 @@ var Mn = function() {
|
|
|
2611
2611
|
].filter(Boolean).join("")}
|
|
2612
2612
|
}
|
|
2613
2613
|
|
|
2614
|
-
.${
|
|
2614
|
+
.${hn} {
|
|
2615
2615
|
right: ${s}px ${r};
|
|
2616
2616
|
}
|
|
2617
2617
|
|
|
2618
|
-
.${
|
|
2618
|
+
.${gn} {
|
|
2619
2619
|
margin-right: ${s}px ${r};
|
|
2620
2620
|
}
|
|
2621
2621
|
|
|
2622
|
-
.${
|
|
2622
|
+
.${hn} .${hn} {
|
|
2623
2623
|
right: 0 ${r};
|
|
2624
2624
|
}
|
|
2625
2625
|
|
|
2626
|
-
.${
|
|
2626
|
+
.${gn} .${gn} {
|
|
2627
2627
|
margin-right: 0 ${r};
|
|
2628
2628
|
}
|
|
2629
2629
|
|
|
2630
|
-
body[${
|
|
2631
|
-
${
|
|
2630
|
+
body[${Gn}] {
|
|
2631
|
+
${vn}: ${s}px;
|
|
2632
2632
|
}
|
|
2633
2633
|
`;
|
|
2634
|
-
},
|
|
2634
|
+
}, qn = function() {
|
|
2635
2635
|
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
2636
2636
|
return isFinite(e) ? e : 0;
|
|
2637
|
-
},
|
|
2637
|
+
}, Jn = function() {
|
|
2638
2638
|
e.useEffect(function() {
|
|
2639
|
-
return document.body.setAttribute(
|
|
2640
|
-
var e =
|
|
2641
|
-
e <= 0 ? document.body.removeAttribute(
|
|
2639
|
+
return document.body.setAttribute(Gn, (qn() + 1).toString()), function() {
|
|
2640
|
+
var e = qn() - 1;
|
|
2641
|
+
e <= 0 ? document.body.removeAttribute(Gn) : document.body.setAttribute(Gn, e.toString());
|
|
2642
2642
|
};
|
|
2643
2643
|
}, []);
|
|
2644
|
-
},
|
|
2644
|
+
}, Yn = function(t) {
|
|
2645
2645
|
var n = t.noRelative, r = t.noImportant, i = t.gapMode, a = i === void 0 ? "margin" : i;
|
|
2646
|
-
|
|
2646
|
+
Jn();
|
|
2647
2647
|
var o = e.useMemo(function() {
|
|
2648
|
-
return
|
|
2648
|
+
return Un(a);
|
|
2649
2649
|
}, [a]);
|
|
2650
|
-
return e.createElement(
|
|
2651
|
-
},
|
|
2650
|
+
return e.createElement(Wn, { styles: Kn(o, !n, a, r ? "" : "!important") });
|
|
2651
|
+
}, Xn = !1;
|
|
2652
2652
|
if (typeof window < "u") try {
|
|
2653
|
-
var
|
|
2654
|
-
return
|
|
2653
|
+
var Zn = Object.defineProperty({}, "passive", { get: function() {
|
|
2654
|
+
return Xn = !0, !0;
|
|
2655
2655
|
} });
|
|
2656
|
-
window.addEventListener("test",
|
|
2656
|
+
window.addEventListener("test", Zn, Zn), window.removeEventListener("test", Zn, Zn);
|
|
2657
2657
|
} catch {
|
|
2658
|
-
|
|
2658
|
+
Xn = !1;
|
|
2659
2659
|
}
|
|
2660
|
-
var
|
|
2660
|
+
var J = Xn ? { passive: !1 } : !1, Qn = function(e) {
|
|
2661
2661
|
return e.tagName === "TEXTAREA";
|
|
2662
|
-
},
|
|
2662
|
+
}, $n = function(e, t) {
|
|
2663
2663
|
var n = window.getComputedStyle(e);
|
|
2664
|
-
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !
|
|
2665
|
-
},
|
|
2666
|
-
return
|
|
2667
|
-
},
|
|
2668
|
-
return
|
|
2669
|
-
},
|
|
2664
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !Qn(e) && n[t] === "visible");
|
|
2665
|
+
}, er = function(e) {
|
|
2666
|
+
return $n(e, "overflowY");
|
|
2667
|
+
}, tr = function(e) {
|
|
2668
|
+
return $n(e, "overflowX");
|
|
2669
|
+
}, nr = function(e, t) {
|
|
2670
2670
|
var n = t.ownerDocument, r = t;
|
|
2671
2671
|
do {
|
|
2672
|
-
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host),
|
|
2673
|
-
var i =
|
|
2672
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), ar(e, r)) {
|
|
2673
|
+
var i = or(e, r);
|
|
2674
2674
|
if (i[1] > i[2]) return !0;
|
|
2675
2675
|
}
|
|
2676
2676
|
r = r.parentNode;
|
|
2677
2677
|
} while (r && r !== n.body);
|
|
2678
2678
|
return !1;
|
|
2679
|
-
},
|
|
2679
|
+
}, rr = function(e) {
|
|
2680
2680
|
return [
|
|
2681
2681
|
e.scrollTop,
|
|
2682
2682
|
e.scrollHeight,
|
|
2683
2683
|
e.clientHeight
|
|
2684
2684
|
];
|
|
2685
|
-
},
|
|
2685
|
+
}, ir = function(e) {
|
|
2686
2686
|
return [
|
|
2687
2687
|
e.scrollLeft,
|
|
2688
2688
|
e.scrollWidth,
|
|
2689
2689
|
e.clientWidth
|
|
2690
2690
|
];
|
|
2691
|
-
},
|
|
2692
|
-
return e === "v" ?
|
|
2693
|
-
},
|
|
2694
|
-
return e === "v" ?
|
|
2695
|
-
},
|
|
2691
|
+
}, ar = function(e, t) {
|
|
2692
|
+
return e === "v" ? er(t) : tr(t);
|
|
2693
|
+
}, or = function(e, t) {
|
|
2694
|
+
return e === "v" ? rr(t) : ir(t);
|
|
2695
|
+
}, sr = function(e, t) {
|
|
2696
2696
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
2697
|
-
},
|
|
2698
|
-
var a =
|
|
2697
|
+
}, cr = function(e, t, n, r, i) {
|
|
2698
|
+
var a = sr(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
2699
2699
|
do {
|
|
2700
|
-
var p =
|
|
2701
|
-
(m || h) &&
|
|
2700
|
+
var p = or(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
2701
|
+
(m || h) && ar(e, s) && (d += h, f += m), s = s instanceof ShadowRoot ? s.host : s.parentNode;
|
|
2702
2702
|
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
2703
2703
|
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
2704
|
-
},
|
|
2704
|
+
}, lr = function(e) {
|
|
2705
2705
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
2706
|
-
},
|
|
2706
|
+
}, ur = function(e) {
|
|
2707
2707
|
return [e.deltaX, e.deltaY];
|
|
2708
|
-
},
|
|
2708
|
+
}, dr = function(e) {
|
|
2709
2709
|
return e && "current" in e ? e.current : e;
|
|
2710
|
-
},
|
|
2710
|
+
}, fr = function(e, t) {
|
|
2711
2711
|
return e[0] === t[0] && e[1] === t[1];
|
|
2712
|
-
},
|
|
2712
|
+
}, pr = function(e) {
|
|
2713
2713
|
return `
|
|
2714
2714
|
.block-interactivity-${e} {pointer-events: none;}
|
|
2715
2715
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
2716
2716
|
`;
|
|
2717
|
-
},
|
|
2718
|
-
function
|
|
2719
|
-
var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(
|
|
2717
|
+
}, mr = 0, Y = [];
|
|
2718
|
+
function hr(t) {
|
|
2719
|
+
var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(mr++)[0], o = e.useState(zn)[0], s = e.useRef(t);
|
|
2720
2720
|
e.useEffect(function() {
|
|
2721
2721
|
s.current = t;
|
|
2722
2722
|
}, [t]), e.useEffect(function() {
|
|
2723
2723
|
if (t.inert) {
|
|
2724
2724
|
document.body.classList.add(`block-interactivity-${a}`);
|
|
2725
|
-
var e =
|
|
2725
|
+
var e = mn([t.lockRef.current], (t.shards || []).map(dr), !0).filter(Boolean);
|
|
2726
2726
|
return e.forEach(function(e) {
|
|
2727
2727
|
return e.classList.add(`allow-interactivity-${a}`);
|
|
2728
2728
|
}), function() {
|
|
@@ -2738,26 +2738,26 @@ function dr(t) {
|
|
|
2738
2738
|
]);
|
|
2739
2739
|
var c = e.useCallback(function(e, t) {
|
|
2740
2740
|
if ("touches" in e && e.touches.length === 2) return !s.current.allowPinchZoom;
|
|
2741
|
-
var n =
|
|
2741
|
+
var n = lr(e), a = r.current, o = "deltaX" in e ? e.deltaX : a[0] - n[0], c = "deltaY" in e ? e.deltaY : a[1] - n[1], l, u = e.target, d = Math.abs(o) > Math.abs(c) ? "h" : "v";
|
|
2742
2742
|
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
2743
|
-
var f =
|
|
2743
|
+
var f = nr(d, u);
|
|
2744
2744
|
if (!f) return !0;
|
|
2745
|
-
if (f ? l = d : (l = d === "v" ? "h" : "v", f =
|
|
2745
|
+
if (f ? l = d : (l = d === "v" ? "h" : "v", f = nr(d, u)), !f) return !1;
|
|
2746
2746
|
if (!i.current && "changedTouches" in e && (o || c) && (i.current = l), !l) return !0;
|
|
2747
2747
|
var p = i.current || l;
|
|
2748
|
-
return
|
|
2748
|
+
return cr(p, t, e, p === "h" ? o : c, !0);
|
|
2749
2749
|
}, []), l = e.useCallback(function(e) {
|
|
2750
2750
|
var t = e;
|
|
2751
|
-
if (!(!
|
|
2752
|
-
var r = "deltaY" in t ?
|
|
2753
|
-
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) &&
|
|
2751
|
+
if (!(!Y.length || Y[Y.length - 1] !== o)) {
|
|
2752
|
+
var r = "deltaY" in t ? ur(t) : lr(t), i = n.current.filter(function(e) {
|
|
2753
|
+
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) && fr(e.delta, r);
|
|
2754
2754
|
})[0];
|
|
2755
2755
|
if (i && i.should) {
|
|
2756
2756
|
t.cancelable && t.preventDefault();
|
|
2757
2757
|
return;
|
|
2758
2758
|
}
|
|
2759
2759
|
if (!i) {
|
|
2760
|
-
var a = (s.current.shards || []).map(
|
|
2760
|
+
var a = (s.current.shards || []).map(dr).filter(Boolean).filter(function(e) {
|
|
2761
2761
|
return e.contains(t.target);
|
|
2762
2762
|
});
|
|
2763
2763
|
(a.length > 0 ? c(t, a[0]) : !s.current.noIsolation) && t.cancelable && t.preventDefault();
|
|
@@ -2769,7 +2769,7 @@ function dr(t) {
|
|
|
2769
2769
|
delta: t,
|
|
2770
2770
|
target: r,
|
|
2771
2771
|
should: i,
|
|
2772
|
-
shadowParent:
|
|
2772
|
+
shadowParent: gr(r)
|
|
2773
2773
|
};
|
|
2774
2774
|
n.current.push(a), setTimeout(function() {
|
|
2775
2775
|
n.current = n.current.filter(function(e) {
|
|
@@ -2777,57 +2777,57 @@ function dr(t) {
|
|
|
2777
2777
|
});
|
|
2778
2778
|
}, 1);
|
|
2779
2779
|
}, []), d = e.useCallback(function(e) {
|
|
2780
|
-
r.current =
|
|
2780
|
+
r.current = lr(e), i.current = void 0;
|
|
2781
2781
|
}, []), f = e.useCallback(function(e) {
|
|
2782
|
-
u(e.type,
|
|
2782
|
+
u(e.type, ur(e), e.target, c(e, t.lockRef.current));
|
|
2783
2783
|
}, []), p = e.useCallback(function(e) {
|
|
2784
|
-
u(e.type,
|
|
2784
|
+
u(e.type, lr(e), e.target, c(e, t.lockRef.current));
|
|
2785
2785
|
}, []);
|
|
2786
2786
|
e.useEffect(function() {
|
|
2787
|
-
return
|
|
2787
|
+
return Y.push(o), t.setCallbacks({
|
|
2788
2788
|
onScrollCapture: f,
|
|
2789
2789
|
onWheelCapture: f,
|
|
2790
2790
|
onTouchMoveCapture: p
|
|
2791
|
-
}), document.addEventListener("wheel", l,
|
|
2792
|
-
|
|
2791
|
+
}), document.addEventListener("wheel", l, J), document.addEventListener("touchmove", l, J), document.addEventListener("touchstart", d, J), function() {
|
|
2792
|
+
Y = Y.filter(function(e) {
|
|
2793
2793
|
return e !== o;
|
|
2794
|
-
}), document.removeEventListener("wheel", l,
|
|
2794
|
+
}), document.removeEventListener("wheel", l, J), document.removeEventListener("touchmove", l, J), document.removeEventListener("touchstart", d, J);
|
|
2795
2795
|
};
|
|
2796
2796
|
}, []);
|
|
2797
2797
|
var m = t.removeScrollBar, h = t.inert;
|
|
2798
|
-
return e.createElement(e.Fragment, null, h ? e.createElement(o, { styles:
|
|
2798
|
+
return e.createElement(e.Fragment, null, h ? e.createElement(o, { styles: pr(a) }) : null, m ? e.createElement(Yn, { gapMode: t.gapMode }) : null);
|
|
2799
2799
|
}
|
|
2800
|
-
function
|
|
2800
|
+
function gr(e) {
|
|
2801
2801
|
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
2802
2802
|
return t;
|
|
2803
2803
|
}
|
|
2804
2804
|
//#endregion
|
|
2805
2805
|
//#region ../../node_modules/@huin-core/react-dialog/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
2806
|
-
var
|
|
2807
|
-
return e.createElement(
|
|
2806
|
+
var _r = On(kn, hr), vr = e.forwardRef(function(t, n) {
|
|
2807
|
+
return e.createElement(jn, q({}, t, {
|
|
2808
2808
|
ref: n,
|
|
2809
|
-
sideCar:
|
|
2809
|
+
sideCar: _r
|
|
2810
2810
|
}));
|
|
2811
2811
|
});
|
|
2812
|
-
|
|
2812
|
+
vr.classNames = jn.classNames;
|
|
2813
2813
|
//#endregion
|
|
2814
2814
|
//#region ../../node_modules/aria-hidden/dist/es2015/index.js
|
|
2815
|
-
var
|
|
2815
|
+
var yr = function(e) {
|
|
2816
2816
|
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
2817
|
-
},
|
|
2818
|
-
return e && (e.host ||
|
|
2819
|
-
},
|
|
2817
|
+
}, X = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), xr = {}, Sr = 0, Cr = function(e) {
|
|
2818
|
+
return e && (e.host || Cr(e.parentNode));
|
|
2819
|
+
}, wr = function(e, t) {
|
|
2820
2820
|
return t.map(function(t) {
|
|
2821
2821
|
if (e.contains(t)) return t;
|
|
2822
|
-
var n =
|
|
2822
|
+
var n = Cr(t);
|
|
2823
2823
|
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
2824
2824
|
}).filter(function(e) {
|
|
2825
2825
|
return !!e;
|
|
2826
2826
|
});
|
|
2827
|
-
},
|
|
2828
|
-
var i =
|
|
2829
|
-
|
|
2830
|
-
var a =
|
|
2827
|
+
}, Tr = function(e, t, n, r) {
|
|
2828
|
+
var i = wr(t, Array.isArray(e) ? e : [e]);
|
|
2829
|
+
xr[n] || (xr[n] = /* @__PURE__ */ new WeakMap());
|
|
2830
|
+
var a = xr[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
2831
2831
|
!e || s.has(e) || (s.add(e), l(e.parentNode));
|
|
2832
2832
|
};
|
|
2833
2833
|
i.forEach(l);
|
|
@@ -2835,30 +2835,30 @@ var hr = function(e) {
|
|
|
2835
2835
|
!e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
|
|
2836
2836
|
if (s.has(e)) u(e);
|
|
2837
2837
|
else try {
|
|
2838
|
-
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (
|
|
2839
|
-
|
|
2838
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (X.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
2839
|
+
X.set(e, c), a.set(e, l), o.push(e), c === 1 && i && br.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
2840
2840
|
} catch (t) {
|
|
2841
2841
|
console.error("aria-hidden: cannot operate on ", e, t);
|
|
2842
2842
|
}
|
|
2843
2843
|
});
|
|
2844
2844
|
};
|
|
2845
|
-
return u(t), s.clear(),
|
|
2845
|
+
return u(t), s.clear(), Sr++, function() {
|
|
2846
2846
|
o.forEach(function(e) {
|
|
2847
|
-
var t =
|
|
2848
|
-
|
|
2849
|
-
}),
|
|
2847
|
+
var t = X.get(e) - 1, i = a.get(e) - 1;
|
|
2848
|
+
X.set(e, t), a.set(e, i), t || (br.has(e) || e.removeAttribute(r), br.delete(e)), i || e.removeAttribute(n);
|
|
2849
|
+
}), Sr--, Sr || (X = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), xr = {});
|
|
2850
2850
|
};
|
|
2851
|
-
},
|
|
2851
|
+
}, Er = function(e, t, n) {
|
|
2852
2852
|
n === void 0 && (n = "data-aria-hidden");
|
|
2853
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), i = t ||
|
|
2854
|
-
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))),
|
|
2853
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || yr(e);
|
|
2854
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Tr(r, i, n, "aria-hidden")) : function() {
|
|
2855
2855
|
return null;
|
|
2856
2856
|
};
|
|
2857
2857
|
};
|
|
2858
2858
|
//#endregion
|
|
2859
2859
|
//#region ../../node_modules/@huin-core/react-use-escape-keydown/dist/index.mjs
|
|
2860
|
-
function
|
|
2861
|
-
let r =
|
|
2860
|
+
function Dr(t, n = globalThis?.document) {
|
|
2861
|
+
let r = O(t);
|
|
2862
2862
|
e.useEffect(() => {
|
|
2863
2863
|
let e = (e) => {
|
|
2864
2864
|
e.key === "Escape" && r(e);
|
|
@@ -2868,67 +2868,67 @@ function wr(t, n = globalThis?.document) {
|
|
|
2868
2868
|
}
|
|
2869
2869
|
//#endregion
|
|
2870
2870
|
//#region ../../node_modules/@huin-core/react-dismissable-layer/dist/index.mjs
|
|
2871
|
-
var
|
|
2871
|
+
var Or = "DismissableLayer", kr = "dismissableLayer.update", Ar = "dismissableLayer.pointerDownOutside", jr = "dismissableLayer.focusOutside", Mr, Nr = e.createContext({
|
|
2872
2872
|
layers: /* @__PURE__ */ new Set(),
|
|
2873
2873
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
2874
2874
|
branches: /* @__PURE__ */ new Set()
|
|
2875
|
-
}),
|
|
2876
|
-
let { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = t,
|
|
2877
|
-
let t = e.target, n = [...
|
|
2875
|
+
}), Pr = e.forwardRef((t, n) => {
|
|
2876
|
+
let { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = t, u = e.useContext(Nr), [d, f] = e.useState(null), m = d?.ownerDocument ?? globalThis?.document, [, h] = e.useState({}), _ = g(n, (e) => f(e)), v = Array.from(u.layers), [y] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = v.indexOf(y), x = d ? v.indexOf(d) : -1, S = u.layersWithOutsidePointerEventsDisabled.size > 0, C = x >= b, w = Lr((e) => {
|
|
2877
|
+
let t = e.target, n = [...u.branches].some((e) => e.contains(t));
|
|
2878
2878
|
!C || n || (a?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
2879
|
-
},
|
|
2879
|
+
}, m), T = Rr((e) => {
|
|
2880
2880
|
let t = e.target;
|
|
2881
|
-
[...
|
|
2882
|
-
},
|
|
2883
|
-
return
|
|
2884
|
-
x ===
|
|
2885
|
-
},
|
|
2886
|
-
if (
|
|
2887
|
-
r &&
|
|
2881
|
+
[...u.branches].some((e) => e.contains(t)) || (o?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
2882
|
+
}, m);
|
|
2883
|
+
return Dr((e) => {
|
|
2884
|
+
x === u.layers.size - 1 && (i?.(e), !e.defaultPrevented && c && (e.preventDefault(), c()));
|
|
2885
|
+
}, m), e.useEffect(() => {
|
|
2886
|
+
if (d) return r && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Mr = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), zr(), () => {
|
|
2887
|
+
r && u.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = Mr);
|
|
2888
2888
|
};
|
|
2889
2889
|
}, [
|
|
2890
|
-
|
|
2891
|
-
|
|
2890
|
+
d,
|
|
2891
|
+
m,
|
|
2892
2892
|
r,
|
|
2893
|
-
|
|
2893
|
+
u
|
|
2894
2894
|
]), e.useEffect(() => () => {
|
|
2895
|
-
|
|
2896
|
-
}, [
|
|
2897
|
-
let e = () =>
|
|
2898
|
-
return document.addEventListener(
|
|
2899
|
-
}, []), /* @__PURE__ */ e.createElement(
|
|
2895
|
+
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), zr());
|
|
2896
|
+
}, [d, u]), e.useEffect(() => {
|
|
2897
|
+
let e = () => h({});
|
|
2898
|
+
return document.addEventListener(kr, e), () => document.removeEventListener(kr, e);
|
|
2899
|
+
}, []), /* @__PURE__ */ e.createElement(D.div, {
|
|
2900
2900
|
...l,
|
|
2901
2901
|
ref: _,
|
|
2902
2902
|
style: {
|
|
2903
2903
|
pointerEvents: S ? C ? "auto" : "none" : void 0,
|
|
2904
2904
|
...t.style
|
|
2905
2905
|
},
|
|
2906
|
-
onFocusCapture:
|
|
2907
|
-
onBlurCapture:
|
|
2908
|
-
onPointerDownCapture:
|
|
2906
|
+
onFocusCapture: p(t.onFocusCapture, T.onFocusCapture),
|
|
2907
|
+
onBlurCapture: p(t.onBlurCapture, T.onBlurCapture),
|
|
2908
|
+
onPointerDownCapture: p(t.onPointerDownCapture, w.onPointerDownCapture)
|
|
2909
2909
|
});
|
|
2910
2910
|
});
|
|
2911
|
-
|
|
2912
|
-
var
|
|
2913
|
-
let r = e.useContext(
|
|
2911
|
+
Pr.displayName = Or;
|
|
2912
|
+
var Fr = "DismissableLayerBranch", Ir = e.forwardRef((t, n) => {
|
|
2913
|
+
let r = e.useContext(Nr), i = e.useRef(null), a = g(n, i);
|
|
2914
2914
|
return e.useEffect(() => {
|
|
2915
2915
|
let e = i.current;
|
|
2916
2916
|
if (e) return r.branches.add(e), () => {
|
|
2917
2917
|
r.branches.delete(e);
|
|
2918
2918
|
};
|
|
2919
|
-
}, [r.branches]), /* @__PURE__ */ e.createElement(
|
|
2919
|
+
}, [r.branches]), /* @__PURE__ */ e.createElement(D.div, {
|
|
2920
2920
|
...t,
|
|
2921
2921
|
ref: a
|
|
2922
2922
|
});
|
|
2923
2923
|
});
|
|
2924
|
-
|
|
2925
|
-
function
|
|
2926
|
-
let r =
|
|
2924
|
+
Ir.displayName = Fr;
|
|
2925
|
+
function Lr(t, n = globalThis?.document) {
|
|
2926
|
+
let r = O(t), i = e.useRef(!1), a = e.useRef(() => {});
|
|
2927
2927
|
return e.useEffect(() => {
|
|
2928
2928
|
let e = (e) => {
|
|
2929
2929
|
if (e.target && !i.current) {
|
|
2930
2930
|
let t = function() {
|
|
2931
|
-
|
|
2931
|
+
Br(Ar, r, i, { discrete: !0 });
|
|
2932
2932
|
}, i = { originalEvent: e };
|
|
2933
2933
|
e.pointerType === "touch" ? (n.removeEventListener("click", a.current), a.current = t, n.addEventListener("click", a.current, { once: !0 })) : t();
|
|
2934
2934
|
} else n.removeEventListener("click", a.current);
|
|
@@ -2941,11 +2941,11 @@ function Pr(t, n = globalThis?.document) {
|
|
|
2941
2941
|
};
|
|
2942
2942
|
}, [n, r]), { onPointerDownCapture: () => i.current = !0 };
|
|
2943
2943
|
}
|
|
2944
|
-
function
|
|
2945
|
-
let r =
|
|
2944
|
+
function Rr(t, n = globalThis?.document) {
|
|
2945
|
+
let r = O(t), i = e.useRef(!1);
|
|
2946
2946
|
return e.useEffect(() => {
|
|
2947
2947
|
let e = (e) => {
|
|
2948
|
-
e.target && !i.current &&
|
|
2948
|
+
e.target && !i.current && Br(jr, r, { originalEvent: e }, { discrete: !1 });
|
|
2949
2949
|
};
|
|
2950
2950
|
return n.addEventListener("focusin", e), () => n.removeEventListener("focusin", e);
|
|
2951
2951
|
}, [n, r]), {
|
|
@@ -2953,25 +2953,25 @@ function Fr(t, n = globalThis?.document) {
|
|
|
2953
2953
|
onBlurCapture: () => i.current = !1
|
|
2954
2954
|
};
|
|
2955
2955
|
}
|
|
2956
|
-
function
|
|
2957
|
-
let e = new CustomEvent(
|
|
2956
|
+
function zr() {
|
|
2957
|
+
let e = new CustomEvent(kr);
|
|
2958
2958
|
document.dispatchEvent(e);
|
|
2959
2959
|
}
|
|
2960
|
-
function
|
|
2960
|
+
function Br(e, t, n, { discrete: r }) {
|
|
2961
2961
|
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
2962
2962
|
bubbles: !1,
|
|
2963
2963
|
cancelable: !0,
|
|
2964
2964
|
detail: n
|
|
2965
2965
|
});
|
|
2966
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
2966
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? te(i, a) : i.dispatchEvent(a);
|
|
2967
2967
|
}
|
|
2968
2968
|
//#endregion
|
|
2969
2969
|
//#region ../../node_modules/@huin-core/react-focus-scope/dist/index.mjs
|
|
2970
|
-
var
|
|
2970
|
+
var Vr = "focusScope.autoFocusOnMount", Hr = "focusScope.autoFocusOnUnmount", Ur = {
|
|
2971
2971
|
bubbles: !1,
|
|
2972
2972
|
cancelable: !0
|
|
2973
|
-
},
|
|
2974
|
-
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = t, [c, l] = e.useState(null), u =
|
|
2973
|
+
}, Wr = "FocusScope", Gr = e.forwardRef((t, n) => {
|
|
2974
|
+
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = t, [c, l] = e.useState(null), u = O(a), d = O(o), f = e.useRef(null), p = g(n, (e) => l(e)), m = e.useRef({
|
|
2975
2975
|
paused: !1,
|
|
2976
2976
|
pause() {
|
|
2977
2977
|
this.paused = !0;
|
|
@@ -2983,11 +2983,11 @@ var Rr = "focusScope.autoFocusOnMount", zr = "focusScope.autoFocusOnUnmount", Br
|
|
|
2983
2983
|
e.useEffect(() => {
|
|
2984
2984
|
if (i) {
|
|
2985
2985
|
let e = function(e) {
|
|
2986
|
-
if (
|
|
2986
|
+
if (m.paused || !c) return;
|
|
2987
2987
|
let t = e.target;
|
|
2988
2988
|
c.contains(t) ? f.current = t : Z(f.current, { select: !0 });
|
|
2989
2989
|
}, t = function(e) {
|
|
2990
|
-
if (
|
|
2990
|
+
if (m.paused || !c) return;
|
|
2991
2991
|
let t = e.relatedTarget;
|
|
2992
2992
|
t !== null && (c.contains(t) || Z(f.current, { select: !0 }));
|
|
2993
2993
|
}, n = function(e) {
|
|
@@ -3005,19 +3005,19 @@ var Rr = "focusScope.autoFocusOnMount", zr = "focusScope.autoFocusOnUnmount", Br
|
|
|
3005
3005
|
}, [
|
|
3006
3006
|
i,
|
|
3007
3007
|
c,
|
|
3008
|
-
|
|
3008
|
+
m.paused
|
|
3009
3009
|
]), e.useEffect(() => {
|
|
3010
3010
|
if (c) {
|
|
3011
|
-
|
|
3011
|
+
Qr.add(m);
|
|
3012
3012
|
let e = document.activeElement;
|
|
3013
3013
|
if (!c.contains(e)) {
|
|
3014
|
-
let t = new CustomEvent(
|
|
3015
|
-
c.addEventListener(
|
|
3014
|
+
let t = new CustomEvent(Vr, Ur);
|
|
3015
|
+
c.addEventListener(Vr, u), c.dispatchEvent(t), t.defaultPrevented || (Kr(ti(Jr(c)), { select: !0 }), document.activeElement === e && Z(c));
|
|
3016
3016
|
}
|
|
3017
3017
|
return () => {
|
|
3018
|
-
c.removeEventListener(
|
|
3019
|
-
let t = new CustomEvent(
|
|
3020
|
-
c.addEventListener(
|
|
3018
|
+
c.removeEventListener(Vr, u), setTimeout(() => {
|
|
3019
|
+
let t = new CustomEvent(Hr, Ur);
|
|
3020
|
+
c.addEventListener(Hr, d), c.dispatchEvent(t), t.defaultPrevented || Z(e ?? document.body, { select: !0 }), c.removeEventListener(Hr, d), Qr.remove(m);
|
|
3021
3021
|
}, 0);
|
|
3022
3022
|
};
|
|
3023
3023
|
}
|
|
@@ -3025,37 +3025,37 @@ var Rr = "focusScope.autoFocusOnMount", zr = "focusScope.autoFocusOnUnmount", Br
|
|
|
3025
3025
|
c,
|
|
3026
3026
|
u,
|
|
3027
3027
|
d,
|
|
3028
|
-
|
|
3028
|
+
m
|
|
3029
3029
|
]);
|
|
3030
|
-
let
|
|
3031
|
-
if (!r && !i ||
|
|
3030
|
+
let h = e.useCallback((e) => {
|
|
3031
|
+
if (!r && !i || m.paused) return;
|
|
3032
3032
|
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, n = document.activeElement;
|
|
3033
3033
|
if (t && n) {
|
|
3034
|
-
let t = e.currentTarget, [i, a] =
|
|
3034
|
+
let t = e.currentTarget, [i, a] = qr(t);
|
|
3035
3035
|
i && a ? !e.shiftKey && n === a ? (e.preventDefault(), r && Z(i, { select: !0 })) : e.shiftKey && n === i && (e.preventDefault(), r && Z(a, { select: !0 })) : n === t && e.preventDefault();
|
|
3036
3036
|
}
|
|
3037
3037
|
}, [
|
|
3038
3038
|
r,
|
|
3039
3039
|
i,
|
|
3040
|
-
|
|
3040
|
+
m.paused
|
|
3041
3041
|
]);
|
|
3042
|
-
return /* @__PURE__ */ e.createElement(
|
|
3042
|
+
return /* @__PURE__ */ e.createElement(D.div, {
|
|
3043
3043
|
tabIndex: -1,
|
|
3044
3044
|
...s,
|
|
3045
|
-
ref:
|
|
3046
|
-
onKeyDown:
|
|
3045
|
+
ref: p,
|
|
3046
|
+
onKeyDown: h
|
|
3047
3047
|
});
|
|
3048
3048
|
});
|
|
3049
|
-
|
|
3050
|
-
function
|
|
3049
|
+
Gr.displayName = Wr;
|
|
3050
|
+
function Kr(e, { select: t = !1 } = {}) {
|
|
3051
3051
|
let n = document.activeElement;
|
|
3052
3052
|
for (let r of e) if (Z(r, { select: t }), document.activeElement !== n) return;
|
|
3053
3053
|
}
|
|
3054
|
-
function
|
|
3055
|
-
let t =
|
|
3056
|
-
return [
|
|
3054
|
+
function qr(e) {
|
|
3055
|
+
let t = Jr(e);
|
|
3056
|
+
return [Yr(t, e), Yr(t.reverse(), e)];
|
|
3057
3057
|
}
|
|
3058
|
-
function
|
|
3058
|
+
function Jr(e) {
|
|
3059
3059
|
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
3060
3060
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
3061
3061
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
@@ -3063,10 +3063,10 @@ function Gr(e) {
|
|
|
3063
3063
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
3064
3064
|
return t;
|
|
3065
3065
|
}
|
|
3066
|
-
function
|
|
3067
|
-
for (let n of e) if (!
|
|
3066
|
+
function Yr(e, t) {
|
|
3067
|
+
for (let n of e) if (!Xr(n, { upTo: t })) return n;
|
|
3068
3068
|
}
|
|
3069
|
-
function
|
|
3069
|
+
function Xr(e, { upTo: t }) {
|
|
3070
3070
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
3071
3071
|
for (; e;) {
|
|
3072
3072
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -3075,116 +3075,116 @@ function qr(e, { upTo: t }) {
|
|
|
3075
3075
|
}
|
|
3076
3076
|
return !1;
|
|
3077
3077
|
}
|
|
3078
|
-
function
|
|
3078
|
+
function Zr(e) {
|
|
3079
3079
|
return e instanceof HTMLInputElement && "select" in e;
|
|
3080
3080
|
}
|
|
3081
3081
|
function Z(e, { select: t = !1 } = {}) {
|
|
3082
3082
|
if (e && e.focus) {
|
|
3083
3083
|
let n = document.activeElement;
|
|
3084
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
3084
|
+
e.focus({ preventScroll: !0 }), e !== n && Zr(e) && t && e.select();
|
|
3085
3085
|
}
|
|
3086
3086
|
}
|
|
3087
|
-
var
|
|
3088
|
-
function
|
|
3087
|
+
var Qr = $r();
|
|
3088
|
+
function $r() {
|
|
3089
3089
|
let e = [];
|
|
3090
3090
|
return {
|
|
3091
3091
|
add(t) {
|
|
3092
3092
|
let n = e[0];
|
|
3093
|
-
t !== n && n?.pause(), e =
|
|
3093
|
+
t !== n && n?.pause(), e = ei(e, t), e.unshift(t);
|
|
3094
3094
|
},
|
|
3095
3095
|
remove(t) {
|
|
3096
|
-
e =
|
|
3096
|
+
e = ei(e, t), e[0]?.resume();
|
|
3097
3097
|
}
|
|
3098
3098
|
};
|
|
3099
3099
|
}
|
|
3100
|
-
function
|
|
3100
|
+
function ei(e, t) {
|
|
3101
3101
|
let n = [...e], r = n.indexOf(t);
|
|
3102
3102
|
return r !== -1 && n.splice(r, 1), n;
|
|
3103
3103
|
}
|
|
3104
|
-
function
|
|
3104
|
+
function ti(e) {
|
|
3105
3105
|
return e.filter((e) => e.tagName !== "A");
|
|
3106
3106
|
}
|
|
3107
3107
|
//#endregion
|
|
3108
3108
|
//#region ../../node_modules/@huin-core/react-focus-guards/dist/index.mjs
|
|
3109
|
-
var
|
|
3110
|
-
function
|
|
3109
|
+
var ni = 0;
|
|
3110
|
+
function ri() {
|
|
3111
3111
|
e.useEffect(() => {
|
|
3112
3112
|
let e = document.querySelectorAll("[data-huin-core-focus-guard]");
|
|
3113
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
3114
|
-
|
|
3113
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? ii()), document.body.insertAdjacentElement("beforeend", e[1] ?? ii()), ni++, () => {
|
|
3114
|
+
ni === 1 && document.querySelectorAll("[data-huin-core-focus-guard]").forEach((e) => e.remove()), ni--;
|
|
3115
3115
|
};
|
|
3116
3116
|
}, []);
|
|
3117
3117
|
}
|
|
3118
|
-
function
|
|
3118
|
+
function ii() {
|
|
3119
3119
|
let e = document.createElement("span");
|
|
3120
3120
|
return e.setAttribute("data-huin-core-focus-guard", ""), e.tabIndex = 0, e.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none", e;
|
|
3121
3121
|
}
|
|
3122
3122
|
//#endregion
|
|
3123
3123
|
//#region ../../node_modules/@huin-core/react-dialog/dist/index.mjs
|
|
3124
|
-
var
|
|
3125
|
-
let { __scopeDialog: n, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = t, c = e.useRef(null), l = e.useRef(null), [u = !1, d] =
|
|
3124
|
+
var ai = "Dialog", [oi, si] = d(ai), [ci, Q] = oi(ai), li = (t) => {
|
|
3125
|
+
let { __scopeDialog: n, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = t, c = e.useRef(null), l = e.useRef(null), [u = !1, d] = k({
|
|
3126
3126
|
prop: i,
|
|
3127
3127
|
defaultProp: a,
|
|
3128
3128
|
onChange: o
|
|
3129
3129
|
});
|
|
3130
|
-
return /* @__PURE__ */ e.createElement(
|
|
3130
|
+
return /* @__PURE__ */ e.createElement(ci, {
|
|
3131
3131
|
scope: n,
|
|
3132
3132
|
triggerRef: c,
|
|
3133
3133
|
contentRef: l,
|
|
3134
|
-
contentId:
|
|
3135
|
-
titleId:
|
|
3136
|
-
descriptionId:
|
|
3134
|
+
contentId: E(),
|
|
3135
|
+
titleId: E(),
|
|
3136
|
+
descriptionId: E(),
|
|
3137
3137
|
open: u,
|
|
3138
3138
|
onOpenChange: d,
|
|
3139
3139
|
onOpenToggle: e.useCallback(() => d((e) => !e), [d]),
|
|
3140
3140
|
modal: s
|
|
3141
3141
|
}, r);
|
|
3142
3142
|
};
|
|
3143
|
-
|
|
3144
|
-
function
|
|
3143
|
+
li.displayName = ai;
|
|
3144
|
+
function ui(e) {
|
|
3145
3145
|
return e ? "open" : "closed";
|
|
3146
3146
|
}
|
|
3147
|
-
var
|
|
3148
|
-
let { __scopeDialog: r, ...i } = e, a = Q(
|
|
3149
|
-
return /* @__PURE__ */ t.createElement(
|
|
3147
|
+
var di = li, fi = "DialogTrigger", pi = t.forwardRef((e, n) => {
|
|
3148
|
+
let { __scopeDialog: r, ...i } = e, a = Q(fi, r), o = g(n, a.triggerRef);
|
|
3149
|
+
return /* @__PURE__ */ t.createElement(D.button, {
|
|
3150
3150
|
type: "button",
|
|
3151
3151
|
"aria-haspopup": "dialog",
|
|
3152
3152
|
"aria-expanded": a.open,
|
|
3153
3153
|
"aria-controls": a.contentId,
|
|
3154
|
-
"data-state":
|
|
3154
|
+
"data-state": ui(a.open),
|
|
3155
3155
|
...i,
|
|
3156
3156
|
ref: o,
|
|
3157
|
-
onClick:
|
|
3157
|
+
onClick: p(e.onClick, a.onOpenToggle)
|
|
3158
3158
|
});
|
|
3159
3159
|
});
|
|
3160
|
-
|
|
3161
|
-
var
|
|
3162
|
-
let { __scopeDialog: n, forceMount: r, children: i, container: a } = e, o = Q(
|
|
3163
|
-
return /* @__PURE__ */ t.createElement(
|
|
3160
|
+
pi.displayName = fi;
|
|
3161
|
+
var mi = "DialogPortal", [hi] = d(ai), [gi, _i] = hi(mi, { forceMount: void 0 }), vi = (e) => {
|
|
3162
|
+
let { __scopeDialog: n, forceMount: r, children: i, container: a } = e, o = Q(mi, n);
|
|
3163
|
+
return /* @__PURE__ */ t.createElement(gi, {
|
|
3164
3164
|
scope: n,
|
|
3165
3165
|
forceMount: r
|
|
3166
|
-
}, t.Children.map(i, (e) => /* @__PURE__ */ t.createElement(
|
|
3166
|
+
}, t.Children.map(i, (e) => /* @__PURE__ */ t.createElement(xe, { present: r || o.open }, /* @__PURE__ */ t.createElement(fn, {
|
|
3167
3167
|
asChild: !0,
|
|
3168
3168
|
container: a
|
|
3169
3169
|
}, e))));
|
|
3170
3170
|
};
|
|
3171
|
-
|
|
3172
|
-
var
|
|
3173
|
-
let r =
|
|
3174
|
-
return o.modal ? /* @__PURE__ */ t.createElement(
|
|
3171
|
+
vi.displayName = mi;
|
|
3172
|
+
var yi = "DialogOverlay", bi = t.forwardRef((e, n) => {
|
|
3173
|
+
let r = _i(yi, e.__scopeDialog), { forceMount: i = r.forceMount, ...a } = e, o = Q(yi, e.__scopeDialog);
|
|
3174
|
+
return o.modal ? /* @__PURE__ */ t.createElement(xe, { present: i || o.open }, /* @__PURE__ */ t.createElement(xi, {
|
|
3175
3175
|
...a,
|
|
3176
3176
|
ref: n
|
|
3177
3177
|
})) : null;
|
|
3178
3178
|
});
|
|
3179
|
-
|
|
3180
|
-
var
|
|
3181
|
-
let { __scopeDialog: r, ...i } = e, a = Q(
|
|
3182
|
-
return /* @__PURE__ */ t.createElement(
|
|
3183
|
-
as:
|
|
3179
|
+
bi.displayName = yi;
|
|
3180
|
+
var xi = t.forwardRef((e, n) => {
|
|
3181
|
+
let { __scopeDialog: r, ...i } = e, a = Q(yi, r);
|
|
3182
|
+
return /* @__PURE__ */ t.createElement(vr, {
|
|
3183
|
+
as: _,
|
|
3184
3184
|
allowPinchZoom: !0,
|
|
3185
3185
|
shards: [a.contentRef]
|
|
3186
|
-
}, /* @__PURE__ */ t.createElement(
|
|
3187
|
-
"data-state":
|
|
3186
|
+
}, /* @__PURE__ */ t.createElement(D.div, {
|
|
3187
|
+
"data-state": ui(a.open),
|
|
3188
3188
|
...i,
|
|
3189
3189
|
ref: n,
|
|
3190
3190
|
style: {
|
|
@@ -3192,48 +3192,48 @@ var vi = t.forwardRef((e, n) => {
|
|
|
3192
3192
|
...i.style
|
|
3193
3193
|
}
|
|
3194
3194
|
}));
|
|
3195
|
-
}),
|
|
3196
|
-
let { __scopeDialog: r, ...i } = e, a = Q(
|
|
3197
|
-
return /* @__PURE__ */ t.createElement(
|
|
3195
|
+
}), Si = "DialogTitle", Ci = t.forwardRef((e, n) => {
|
|
3196
|
+
let { __scopeDialog: r, ...i } = e, a = Q(Si, r);
|
|
3197
|
+
return /* @__PURE__ */ t.createElement(D.h2, {
|
|
3198
3198
|
id: a.titleId,
|
|
3199
3199
|
...i,
|
|
3200
3200
|
ref: n
|
|
3201
3201
|
});
|
|
3202
3202
|
});
|
|
3203
|
-
|
|
3204
|
-
var $ = "DialogContent",
|
|
3205
|
-
let r =
|
|
3206
|
-
return /* @__PURE__ */ t.createElement(
|
|
3203
|
+
Ci.displayName = Si;
|
|
3204
|
+
var $ = "DialogContent", wi = t.forwardRef((e, n) => {
|
|
3205
|
+
let r = _i($, e.__scopeDialog), { forceMount: i = r.forceMount, ...a } = e, o = Q($, e.__scopeDialog);
|
|
3206
|
+
return /* @__PURE__ */ t.createElement(xe, { present: i || o.open }, o.modal ? /* @__PURE__ */ t.createElement(Ti, {
|
|
3207
3207
|
...a,
|
|
3208
3208
|
ref: n
|
|
3209
|
-
}) : /* @__PURE__ */ t.createElement(
|
|
3209
|
+
}) : /* @__PURE__ */ t.createElement(Ei, {
|
|
3210
3210
|
...a,
|
|
3211
3211
|
ref: n
|
|
3212
3212
|
}));
|
|
3213
3213
|
});
|
|
3214
|
-
|
|
3215
|
-
var
|
|
3216
|
-
let r = Q($, e.__scopeDialog), i = t.useRef(null), a =
|
|
3214
|
+
wi.displayName = $;
|
|
3215
|
+
var Ti = t.forwardRef((e, n) => {
|
|
3216
|
+
let r = Q($, e.__scopeDialog), i = t.useRef(null), a = g(n, r.contentRef, i);
|
|
3217
3217
|
return t.useEffect(() => {
|
|
3218
3218
|
let e = i.current;
|
|
3219
|
-
if (e) return
|
|
3220
|
-
}, []), /* @__PURE__ */ t.createElement(
|
|
3219
|
+
if (e) return Er(e);
|
|
3220
|
+
}, []), /* @__PURE__ */ t.createElement(Di, {
|
|
3221
3221
|
...e,
|
|
3222
3222
|
ref: a,
|
|
3223
3223
|
trapFocus: r.open,
|
|
3224
3224
|
disableOutsidePointerEvents: !0,
|
|
3225
|
-
onCloseAutoFocus:
|
|
3225
|
+
onCloseAutoFocus: p(e.onCloseAutoFocus, (e) => {
|
|
3226
3226
|
e.preventDefault(), r.triggerRef.current?.focus();
|
|
3227
3227
|
}),
|
|
3228
|
-
onPointerDownOutside:
|
|
3228
|
+
onPointerDownOutside: p(e.onPointerDownOutside, (e) => {
|
|
3229
3229
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
3230
3230
|
(t.button === 2 || n) && e.preventDefault();
|
|
3231
3231
|
}),
|
|
3232
|
-
onFocusOutside:
|
|
3232
|
+
onFocusOutside: p(e.onFocusOutside, (e) => e.preventDefault())
|
|
3233
3233
|
});
|
|
3234
|
-
}),
|
|
3234
|
+
}), Ei = t.forwardRef((e, n) => {
|
|
3235
3235
|
let r = Q($, e.__scopeDialog), i = t.useRef(!1), a = t.useRef(!1);
|
|
3236
|
-
return /* @__PURE__ */ t.createElement(
|
|
3236
|
+
return /* @__PURE__ */ t.createElement(Di, {
|
|
3237
3237
|
...e,
|
|
3238
3238
|
ref: n,
|
|
3239
3239
|
trapFocus: !1,
|
|
@@ -3247,33 +3247,33 @@ var Si = t.forwardRef((e, n) => {
|
|
|
3247
3247
|
r.triggerRef.current?.contains(n) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && a.current && t.preventDefault();
|
|
3248
3248
|
}
|
|
3249
3249
|
});
|
|
3250
|
-
}),
|
|
3251
|
-
let { __scopeDialog: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, ...s } = e, c = Q($, r), l = t.useRef(null), u =
|
|
3252
|
-
return
|
|
3250
|
+
}), Di = t.forwardRef((e, n) => {
|
|
3251
|
+
let { __scopeDialog: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, ...s } = e, c = Q($, r), l = t.useRef(null), u = g(n, l);
|
|
3252
|
+
return ri(), /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(Gr, {
|
|
3253
3253
|
asChild: !0,
|
|
3254
3254
|
loop: !0,
|
|
3255
3255
|
trapped: i,
|
|
3256
3256
|
onMountAutoFocus: a,
|
|
3257
3257
|
onUnmountAutoFocus: o
|
|
3258
|
-
}, /* @__PURE__ */ t.createElement(
|
|
3258
|
+
}, /* @__PURE__ */ t.createElement(Pr, {
|
|
3259
3259
|
role: "dialog",
|
|
3260
3260
|
id: c.contentId,
|
|
3261
3261
|
"aria-describedby": c.descriptionId,
|
|
3262
3262
|
"aria-labelledby": c.titleId,
|
|
3263
|
-
"data-state":
|
|
3263
|
+
"data-state": ui(c.open),
|
|
3264
3264
|
...s,
|
|
3265
3265
|
ref: u,
|
|
3266
3266
|
onDismiss: () => c.onOpenChange(!1)
|
|
3267
|
-
})), /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
|
|
3267
|
+
})), /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(ji, { titleId: c.titleId }), /* @__PURE__ */ t.createElement(Ni, {
|
|
3268
3268
|
contentRef: l,
|
|
3269
3269
|
descriptionId: c.descriptionId
|
|
3270
3270
|
})));
|
|
3271
|
-
}),
|
|
3271
|
+
}), Oi = "DialogTitleWarning", [ki, Ai] = u(Oi, {
|
|
3272
3272
|
contentName: $,
|
|
3273
|
-
titleName:
|
|
3273
|
+
titleName: Si,
|
|
3274
3274
|
docsSlug: "dialog"
|
|
3275
|
-
}),
|
|
3276
|
-
let n =
|
|
3275
|
+
}), ji = ({ titleId: e }) => {
|
|
3276
|
+
let n = Ai(Oi), r = `\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
3277
3277
|
|
|
3278
3278
|
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
3279
3279
|
|
|
@@ -3281,8 +3281,8 @@ For more information, see https://huinhub.com/primitives/docs/components/${n.doc
|
|
|
3281
3281
|
return t.useEffect(() => {
|
|
3282
3282
|
e && (document.getElementById(e) || console.error(r));
|
|
3283
3283
|
}, [r, e]), null;
|
|
3284
|
-
},
|
|
3285
|
-
let r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
3284
|
+
}, Mi = "DialogDescriptionWarning", Ni = ({ contentRef: e, descriptionId: n }) => {
|
|
3285
|
+
let r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ai(Mi).contentName}}.`;
|
|
3286
3286
|
return t.useEffect(() => {
|
|
3287
3287
|
let t = e.current?.getAttribute("aria-describedby");
|
|
3288
3288
|
n && t && (document.getElementById(n) || console.warn(r));
|
|
@@ -3291,39 +3291,39 @@ For more information, see https://huinhub.com/primitives/docs/components/${n.doc
|
|
|
3291
3291
|
e,
|
|
3292
3292
|
n
|
|
3293
3293
|
]), null;
|
|
3294
|
-
},
|
|
3295
|
-
let { __scopeDialog: r, className: i, ...a } = e, o = Q(
|
|
3296
|
-
return /* @__PURE__ */ t.createElement(
|
|
3294
|
+
}, Pi = "DialogDescription", Fi = t.forwardRef((e, n) => {
|
|
3295
|
+
let { __scopeDialog: r, className: i, ...a } = e, o = Q(Pi, r);
|
|
3296
|
+
return /* @__PURE__ */ t.createElement(D.p, {
|
|
3297
3297
|
id: o.descriptionId,
|
|
3298
3298
|
...a,
|
|
3299
3299
|
ref: n
|
|
3300
3300
|
});
|
|
3301
3301
|
});
|
|
3302
|
-
|
|
3303
|
-
var
|
|
3304
|
-
let { __scopeDialog: r, ...i } = e, a = Q(
|
|
3305
|
-
return /* @__PURE__ */ t.createElement(
|
|
3302
|
+
Fi.displayName = Pi;
|
|
3303
|
+
var Ii = "DialogClose", Li = t.forwardRef((e, n) => {
|
|
3304
|
+
let { __scopeDialog: r, ...i } = e, a = Q(Ii, r);
|
|
3305
|
+
return /* @__PURE__ */ t.createElement(D.button, {
|
|
3306
3306
|
type: "button",
|
|
3307
3307
|
...i,
|
|
3308
3308
|
ref: n,
|
|
3309
|
-
onClick:
|
|
3309
|
+
onClick: p(e.onClick, () => a.onOpenChange(!1))
|
|
3310
3310
|
});
|
|
3311
3311
|
});
|
|
3312
|
-
|
|
3312
|
+
Li.displayName = Ii;
|
|
3313
3313
|
//#endregion
|
|
3314
3314
|
//#region ../../node_modules/class-variance-authority/dist/index.mjs
|
|
3315
|
-
var
|
|
3316
|
-
if (t?.variants == null) return
|
|
3315
|
+
var Ri = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zi = Ve, Bi = (e, t) => (n) => {
|
|
3316
|
+
if (t?.variants == null) return zi(e, n?.class, n?.className);
|
|
3317
3317
|
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
3318
3318
|
let t = n?.[e], a = i?.[e];
|
|
3319
3319
|
if (t === null) return null;
|
|
3320
|
-
let o =
|
|
3320
|
+
let o = Ri(t) || Ri(a);
|
|
3321
3321
|
return r[e][o];
|
|
3322
3322
|
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
3323
3323
|
let [n, r] = t;
|
|
3324
3324
|
return r === void 0 || (e[n] = r), e;
|
|
3325
3325
|
}, {});
|
|
3326
|
-
return
|
|
3326
|
+
return zi(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
3327
3327
|
let { class: n, className: r, ...a } = t;
|
|
3328
3328
|
return Object.entries(a).every((e) => {
|
|
3329
3329
|
let [t, n] = e;
|
|
@@ -3340,7 +3340,7 @@ var Fi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ii = Ie, Li
|
|
|
3340
3340
|
r
|
|
3341
3341
|
] : e;
|
|
3342
3342
|
}, []), n?.class, n?.className);
|
|
3343
|
-
},
|
|
3343
|
+
}, Vi = Bi("inline-flex items-center cursor-pointer justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
|
|
3344
3344
|
variants: {
|
|
3345
3345
|
variant: {
|
|
3346
3346
|
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -3361,11 +3361,11 @@ var Fi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ii = Ie, Li
|
|
|
3361
3361
|
variant: "default",
|
|
3362
3362
|
size: "default"
|
|
3363
3363
|
}
|
|
3364
|
-
}),
|
|
3365
|
-
let s = t ?
|
|
3364
|
+
}), Hi = e.forwardRef(({ asChild: t = !1, variant: n, size: r, className: i, ...a }, o) => {
|
|
3365
|
+
let s = t ? _ : D.button;
|
|
3366
3366
|
return /* @__PURE__ */ e.createElement(s, {
|
|
3367
3367
|
ref: o,
|
|
3368
|
-
className:
|
|
3368
|
+
className: K(Vi({
|
|
3369
3369
|
variant: n,
|
|
3370
3370
|
size: r,
|
|
3371
3371
|
className: i
|
|
@@ -3373,10 +3373,10 @@ var Fi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ii = Ie, Li
|
|
|
3373
3373
|
...a
|
|
3374
3374
|
});
|
|
3375
3375
|
});
|
|
3376
|
-
|
|
3376
|
+
Hi.displayName = "Button";
|
|
3377
3377
|
//#endregion
|
|
3378
3378
|
//#region src/ui/components/Dialog.tsx
|
|
3379
|
-
var
|
|
3379
|
+
var Ui = Bi("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500", {
|
|
3380
3380
|
variants: { variant: {
|
|
3381
3381
|
center: "left-[50%] top-[50%] grid w-full h-full max-w-5/6 max-h-5/6 translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 sm:rounded-lg",
|
|
3382
3382
|
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
@@ -3385,20 +3385,20 @@ var Bi = Li("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out
|
|
|
3385
3385
|
right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
|
|
3386
3386
|
} },
|
|
3387
3387
|
defaultVariants: { variant: "center" }
|
|
3388
|
-
}),
|
|
3388
|
+
}), Wi = di, Gi = vi, Ki = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(bi, {
|
|
3389
3389
|
ref: r,
|
|
3390
|
-
className:
|
|
3390
|
+
className: K("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", t),
|
|
3391
3391
|
...n
|
|
3392
3392
|
}));
|
|
3393
|
-
|
|
3394
|
-
var
|
|
3393
|
+
Ki.displayName = bi.displayName;
|
|
3394
|
+
var qi = e.forwardRef(({ className: t, variant: n, children: r, ...i }, a) => /* @__PURE__ */ e.createElement(Gi, null, /* @__PURE__ */ e.createElement(Ki, null), /* @__PURE__ */ e.createElement(wi, {
|
|
3395
3395
|
ref: a,
|
|
3396
|
-
className:
|
|
3396
|
+
className: K(Ui({
|
|
3397
3397
|
variant: n,
|
|
3398
3398
|
className: t
|
|
3399
3399
|
})),
|
|
3400
3400
|
...i
|
|
3401
|
-
}, r, /* @__PURE__ */ e.createElement(
|
|
3401
|
+
}, r, /* @__PURE__ */ e.createElement(Li, { className: "absolute right-2 top-2 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground" }, /* @__PURE__ */ e.createElement(Hi, {
|
|
3402
3402
|
variant: "ghost",
|
|
3403
3403
|
size: "icon"
|
|
3404
3404
|
}, /* @__PURE__ */ e.createElement("svg", {
|
|
@@ -3411,32 +3411,32 @@ var Wi = e.forwardRef(({ className: t, variant: n, children: r, ...i }, a) => /*
|
|
|
3411
3411
|
strokeLinecap: "round",
|
|
3412
3412
|
strokeLinejoin: "round"
|
|
3413
3413
|
}, /* @__PURE__ */ e.createElement("path", { d: "M18 6 6 18" }), /* @__PURE__ */ e.createElement("path", { d: "m6 6 12 12" }))), /* @__PURE__ */ e.createElement("span", { className: "sr-only" }, "Close")))));
|
|
3414
|
-
|
|
3415
|
-
var
|
|
3416
|
-
className:
|
|
3414
|
+
qi.displayName = wi.displayName;
|
|
3415
|
+
var Ji = ({ className: t, ...n }) => /* @__PURE__ */ e.createElement("div", {
|
|
3416
|
+
className: K("flex flex-col space-y-1.5 text-center sm:text-left", t),
|
|
3417
3417
|
...n
|
|
3418
3418
|
});
|
|
3419
|
-
|
|
3420
|
-
var
|
|
3421
|
-
className:
|
|
3419
|
+
Ji.displayName = "DialogHeader";
|
|
3420
|
+
var Yi = ({ className: t, ...n }) => /* @__PURE__ */ e.createElement("div", {
|
|
3421
|
+
className: K("flex flex-col-reverse h-fit sm:flex-row sm:justify-end sm:space-x-2 mt-auto", t),
|
|
3422
3422
|
...n
|
|
3423
3423
|
});
|
|
3424
|
-
|
|
3425
|
-
var
|
|
3424
|
+
Yi.displayName = "DialogFooter";
|
|
3425
|
+
var Xi = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Ci, {
|
|
3426
3426
|
ref: r,
|
|
3427
|
-
className:
|
|
3427
|
+
className: K("text-lg font-semibold leading-none tracking-tight", t),
|
|
3428
3428
|
...n
|
|
3429
3429
|
}));
|
|
3430
|
-
|
|
3431
|
-
var
|
|
3430
|
+
Xi.displayName = Ci.displayName;
|
|
3431
|
+
var Zi = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Fi, {
|
|
3432
3432
|
ref: r,
|
|
3433
|
-
className:
|
|
3433
|
+
className: K("text-sm text-muted-foreground", t),
|
|
3434
3434
|
...n
|
|
3435
3435
|
}));
|
|
3436
|
-
|
|
3436
|
+
Zi.displayName = Fi.displayName;
|
|
3437
3437
|
//#endregion
|
|
3438
3438
|
//#region src/ui/widgets/MarkdownViewer.tsx
|
|
3439
|
-
var
|
|
3439
|
+
var Qi = (e) => {
|
|
3440
3440
|
let n = [], r = /(\*\*[^*]+\*\*|\*[^*]+\*|`[^`]+`|\[[^\]]+\]\([^)]+\))/g, i = 0, a;
|
|
3441
3441
|
for (; (a = r.exec(e)) !== null;) {
|
|
3442
3442
|
a.index > i && n.push(e.slice(i, a.index));
|
|
@@ -3456,19 +3456,19 @@ var Yi = (e) => {
|
|
|
3456
3456
|
i = a.index + r.length;
|
|
3457
3457
|
}
|
|
3458
3458
|
return i < e.length && n.push(e.slice(i)), n;
|
|
3459
|
-
},
|
|
3459
|
+
}, $i = ({ code: e }) => /* @__PURE__ */ t.createElement("div", { className: "bg-[#0f172a] text-gray-200 rounded-xl overflow-hidden my-4 border border-gray-800" }, /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between px-3 py-2 bg-[#111827] text-xs text-gray-400" }, /* @__PURE__ */ t.createElement("span", null, "code"), /* @__PURE__ */ t.createElement("span", null, "copy")), /* @__PURE__ */ t.createElement("pre", { className: "p-4 text-sm overflow-x-auto" }, /* @__PURE__ */ t.createElement("code", null, e))), ea = ({ rows: e }) => /* @__PURE__ */ t.createElement("div", { className: "overflow-x-auto my-4" }, /* @__PURE__ */ t.createElement("table", { className: "w-full border border-gray-700 text-sm" }, /* @__PURE__ */ t.createElement("tbody", null, e.map((e, n) => /* @__PURE__ */ t.createElement("tr", {
|
|
3460
3460
|
key: n,
|
|
3461
3461
|
className: "border-b border-gray-800"
|
|
3462
3462
|
}, e.map((e, n) => /* @__PURE__ */ t.createElement("td", {
|
|
3463
3463
|
key: n,
|
|
3464
3464
|
className: "px-3 py-2"
|
|
3465
|
-
},
|
|
3465
|
+
}, Qi(e)))))))), ta = ({ items: e }) => /* @__PURE__ */ t.createElement("ul", { className: "list-disc ml-6 my-2 space-y-1" }, e.map((e, n) => /* @__PURE__ */ t.createElement("li", { key: n }, Qi(e)))), na = ({ content: e, className: n = "" }) => {
|
|
3466
3466
|
let r = e.split("\n"), i = [], a = [], o = !1, s = [], c = [], l = () => {
|
|
3467
|
-
s.length && (i.push(/* @__PURE__ */ t.createElement(
|
|
3467
|
+
s.length && (i.push(/* @__PURE__ */ t.createElement(ta, { items: s })), s = []);
|
|
3468
3468
|
}, u = () => {
|
|
3469
|
-
c.length && (i.push(/* @__PURE__ */ t.createElement(
|
|
3469
|
+
c.length && (i.push(/* @__PURE__ */ t.createElement(ea, { rows: c })), c = []);
|
|
3470
3470
|
}, d = () => {
|
|
3471
|
-
a.length && (i.push(/* @__PURE__ */ t.createElement(
|
|
3471
|
+
a.length && (i.push(/* @__PURE__ */ t.createElement($i, { code: a.join("\n") })), a = []);
|
|
3472
3472
|
};
|
|
3473
3473
|
for (let e of r) {
|
|
3474
3474
|
let n = e.trim();
|
|
@@ -3490,37 +3490,90 @@ var Yi = (e) => {
|
|
|
3490
3490
|
continue;
|
|
3491
3491
|
} else l();
|
|
3492
3492
|
if (n.startsWith("# ")) {
|
|
3493
|
-
i.push(/* @__PURE__ */ t.createElement("h1", { className: "text-3xl font-bold my-4" },
|
|
3493
|
+
i.push(/* @__PURE__ */ t.createElement("h1", { className: "text-3xl font-bold my-4" }, Qi(n.slice(2))));
|
|
3494
3494
|
continue;
|
|
3495
3495
|
}
|
|
3496
3496
|
if (n.startsWith("## ")) {
|
|
3497
|
-
i.push(/* @__PURE__ */ t.createElement("h2", { className: "text-2xl font-semibold my-3" },
|
|
3497
|
+
i.push(/* @__PURE__ */ t.createElement("h2", { className: "text-2xl font-semibold my-3" }, Qi(n.slice(3))));
|
|
3498
3498
|
continue;
|
|
3499
3499
|
}
|
|
3500
3500
|
if (n.startsWith("### ")) {
|
|
3501
|
-
i.push(/* @__PURE__ */ t.createElement("h3", { className: "text-xl font-medium my-2" },
|
|
3501
|
+
i.push(/* @__PURE__ */ t.createElement("h3", { className: "text-xl font-medium my-2" }, Qi(n.slice(4))));
|
|
3502
3502
|
continue;
|
|
3503
3503
|
}
|
|
3504
3504
|
if (!n) {
|
|
3505
3505
|
i.push(/* @__PURE__ */ t.createElement("div", { className: "h-3" }));
|
|
3506
3506
|
continue;
|
|
3507
3507
|
}
|
|
3508
|
-
i.push(/* @__PURE__ */ t.createElement("p", { className: "text-sm leading-7" },
|
|
3508
|
+
i.push(/* @__PURE__ */ t.createElement("p", { className: "text-sm leading-7" }, Qi(n)));
|
|
3509
3509
|
}
|
|
3510
3510
|
return l(), u(), d(), /* @__PURE__ */ t.createElement("div", { className: `markdown-body ${n}` }, i);
|
|
3511
|
-
},
|
|
3512
|
-
let
|
|
3513
|
-
return /* @__PURE__ */ t.createElement(
|
|
3511
|
+
}, ra = 120, ia = ({ value: e }) => {
|
|
3512
|
+
let [n, r] = s(!1);
|
|
3513
|
+
return e.length <= ra ? /* @__PURE__ */ t.createElement("span", { className: "text-emerald-400" }, "\"", e, "\"") : /* @__PURE__ */ t.createElement("span", null, /* @__PURE__ */ t.createElement("span", { className: "text-emerald-400 break-all" }, "\"", n ? e : `${e.slice(0, ra)}...`, "\""), /* @__PURE__ */ t.createElement("button", {
|
|
3514
|
+
className: "ml-2 text-xs text-sky-400 underline cursor-pointer hover:text-sky-300",
|
|
3515
|
+
onClick: () => r((e) => !e)
|
|
3516
|
+
}, n ? "collapse" : `+${e.length - ra} more chars`));
|
|
3517
|
+
}, aa = ({ value: e, depth: n = 0 }) => {
|
|
3518
|
+
if (e === null) return /* @__PURE__ */ t.createElement("span", { className: "text-muted-foreground" }, "null");
|
|
3519
|
+
if (typeof e == "boolean") return /* @__PURE__ */ t.createElement("span", { className: "text-orange-400" }, String(e));
|
|
3520
|
+
if (typeof e == "number") return /* @__PURE__ */ t.createElement("span", { className: "text-orange-400" }, e);
|
|
3521
|
+
if (typeof e == "string") return /* @__PURE__ */ t.createElement(ia, { value: e });
|
|
3522
|
+
if (Array.isArray(e)) return e.length === 0 ? /* @__PURE__ */ t.createElement("span", null, "[]") : /* @__PURE__ */ t.createElement("span", null, "[", e.map((r, i) => /* @__PURE__ */ t.createElement("div", {
|
|
3523
|
+
key: i,
|
|
3524
|
+
style: { paddingLeft: 16 }
|
|
3525
|
+
}, /* @__PURE__ */ t.createElement(aa, {
|
|
3526
|
+
value: r,
|
|
3527
|
+
depth: n + 1
|
|
3528
|
+
}), i < e.length - 1 && /* @__PURE__ */ t.createElement("span", { className: "text-muted-foreground" }, ","))), "]");
|
|
3529
|
+
if (typeof e == "object") {
|
|
3530
|
+
let r = Object.entries(e);
|
|
3531
|
+
return r.length === 0 ? /* @__PURE__ */ t.createElement("span", null, "{}") : /* @__PURE__ */ t.createElement("span", null, "{", r.map(([e, i], a) => /* @__PURE__ */ t.createElement("div", {
|
|
3532
|
+
key: e,
|
|
3533
|
+
style: { paddingLeft: 16 }
|
|
3534
|
+
}, /* @__PURE__ */ t.createElement("span", { className: "text-sky-400" }, "\"", e, "\""), /* @__PURE__ */ t.createElement("span", { className: "text-muted-foreground" }, ": "), /* @__PURE__ */ t.createElement(aa, {
|
|
3535
|
+
value: i,
|
|
3536
|
+
depth: n + 1
|
|
3537
|
+
}), a < r.length - 1 && /* @__PURE__ */ t.createElement("span", { className: "text-muted-foreground" }, ","))), "}");
|
|
3538
|
+
}
|
|
3539
|
+
return /* @__PURE__ */ t.createElement("span", null, String(e));
|
|
3540
|
+
}, oa = ({ data: e, history: n }) => {
|
|
3541
|
+
let [r, i] = s(!1), [a, o] = s(!1), c = () => {
|
|
3542
|
+
navigator.clipboard.writeText(JSON.stringify(e, null, 2)), i(!0), setTimeout(() => i(!1), 2e3);
|
|
3543
|
+
}, l = n?.slice(1) ?? [];
|
|
3544
|
+
return /* @__PURE__ */ t.createElement("div", { className: "space-y-2" }, /* @__PURE__ */ t.createElement("div", { className: "relative bg-primary text-primary-foreground p-4 rounded-md font-mono text-sm leading-6 overflow-x-hidden" }, /* @__PURE__ */ t.createElement("button", {
|
|
3545
|
+
onClick: c,
|
|
3546
|
+
className: "absolute top-2 right-2 text-xs text-muted-foreground hover:text-primary-foreground transition-colors"
|
|
3547
|
+
}, r ? "✓ Copied" : "Copy"), /* @__PURE__ */ t.createElement(aa, { value: e })), l.length > 0 && /* @__PURE__ */ t.createElement("div", null, /* @__PURE__ */ t.createElement("button", {
|
|
3548
|
+
onClick: () => o((e) => !e),
|
|
3549
|
+
className: "text-xs text-muted-foreground hover:text-foreground transition-colors"
|
|
3550
|
+
}, a ? "▾" : "▸", " Previous renders (", l.length, ")"), a && /* @__PURE__ */ t.createElement("div", { className: "space-y-2 mt-2" }, l.map((e, n) => /* @__PURE__ */ t.createElement("div", {
|
|
3551
|
+
key: n,
|
|
3552
|
+
className: "bg-muted p-3 rounded-md font-mono text-sm leading-6 overflow-x-hidden",
|
|
3553
|
+
style: { opacity: 1 - n * .15 }
|
|
3554
|
+
}, /* @__PURE__ */ t.createElement("div", { className: "text-xs text-muted-foreground mb-2" }, "-", n + 1, " render"), /* @__PURE__ */ t.createElement(aa, { value: e }))))));
|
|
3555
|
+
}, sa = (e) => {
|
|
3556
|
+
let [t] = e.split(":");
|
|
3557
|
+
return t.replace(/\\/g, "/").split("/").slice(-3).join("/");
|
|
3558
|
+
}, ca = () => {
|
|
3559
|
+
let { openDialogId: e, closeDialog: n, dialogMeta: r } = ga();
|
|
3560
|
+
return /* @__PURE__ */ t.createElement(Wi, {
|
|
3514
3561
|
open: e !== null,
|
|
3515
3562
|
onOpenChange: (e) => !e && n()
|
|
3516
|
-
}, /* @__PURE__ */ t.createElement(
|
|
3563
|
+
}, /* @__PURE__ */ t.createElement(sn, {
|
|
3517
3564
|
className: "mt-1",
|
|
3518
3565
|
defaultValue: "md"
|
|
3519
|
-
}, /* @__PURE__ */ t.createElement(
|
|
3520
|
-
|
|
3566
|
+
}, /* @__PURE__ */ t.createElement(qi, { className: "h-fit overflow-y-auto" }, /* @__PURE__ */ t.createElement(Ji, null, /* @__PURE__ */ t.createElement(Xi, { className: "text-center" }, /* @__PURE__ */ t.createElement("span", { className: "flex items-center justify-center gap-2" }, r?.componentName ? /* @__PURE__ */ t.createElement("span", null, /* @__PURE__ */ t.createElement("span", { className: "text-muted-foreground font-normal" }, "<"), r.componentName, /* @__PURE__ */ t.createElement("span", { className: "text-muted-foreground font-normal" }, " />")) : "Sentinel", r?.renderCount !== void 0 && /* @__PURE__ */ t.createElement("span", { className: "text-xs font-normal bg-muted text-muted-foreground px-1.5 py-0.5 rounded-full" }, "×", r.renderCount)), r?.sourceFile && /* @__PURE__ */ t.createElement("a", {
|
|
3567
|
+
href: `vscode://file/${r.sourceFile}`,
|
|
3568
|
+
className: "block text-xs font-normal text-muted-foreground hover:text-sky-400 transition-colors mt-0.5 font-mono"
|
|
3569
|
+
}, sa(r.sourceFile))), /* @__PURE__ */ t.createElement(Zi, null, /* @__PURE__ */ t.createElement(cn, { className: "grid w-full grid-cols-4" }, /* @__PURE__ */ t.createElement(ln, { value: "md" }, ".md"), /* @__PURE__ */ t.createElement(ln, { value: "props-tracker" }, "Props Tracker"), /* @__PURE__ */ t.createElement(ln, { value: "api-layer" }, "API Layer"), /* @__PURE__ */ t.createElement(ln, { value: "event-tracker" }, "Event Tracker")))), /* @__PURE__ */ t.createElement(un, { value: "md" }, /* @__PURE__ */ t.createElement(na, { content: r?.md || "" })), /* @__PURE__ */ t.createElement(un, { value: "props-tracker" }, r.componentProps && /* @__PURE__ */ t.createElement(oa, {
|
|
3570
|
+
data: r.componentProps,
|
|
3571
|
+
history: r.propHistory
|
|
3572
|
+
})), /* @__PURE__ */ t.createElement(un, { value: "api-layer" }), /* @__PURE__ */ t.createElement(un, { value: "event-tracker" }), /* @__PURE__ */ t.createElement(Yi, null))));
|
|
3573
|
+
}, la = ({ children: e, active: n = !0 }) => {
|
|
3521
3574
|
if (!n) return /* @__PURE__ */ t.createElement(t.Fragment, null, e);
|
|
3522
|
-
let { activeRect: r } =
|
|
3523
|
-
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
|
|
3575
|
+
let { activeRect: r } = ha(), i = r ? r.left + r.width / 2 : 0, a = r ? r.top + r.height / 2 : 0;
|
|
3576
|
+
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(fn, null, r && /* @__PURE__ */ t.createElement("div", {
|
|
3524
3577
|
className: "pointer-events-none fixed inset-0 z-50 transition-all duration-500 ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
3525
3578
|
style: {
|
|
3526
3579
|
background: `
|
|
@@ -3536,61 +3589,84 @@ var Yi = (e) => {
|
|
|
3536
3589
|
WebkitBackdropFilter: "blur(8px) saturate(140%) contrast(105%)"
|
|
3537
3590
|
}
|
|
3538
3591
|
}), e));
|
|
3539
|
-
},
|
|
3540
|
-
let [n,
|
|
3541
|
-
|
|
3592
|
+
}, ua = n(void 0), da = n(void 0), fa = ({ children: e }) => {
|
|
3593
|
+
let [n, i] = s(null), [o, c] = s(null), [l, u] = s(null), [d, f] = s({}), p = r((e, t) => {
|
|
3594
|
+
i(e), c(t);
|
|
3595
|
+
}, []), m = r((e) => {
|
|
3596
|
+
i((t) => t === e ? (c(null), null) : t);
|
|
3597
|
+
}, []), h = r((e, t, n, r, i, a, o) => {
|
|
3598
|
+
u(e), f({
|
|
3599
|
+
componentName: t,
|
|
3600
|
+
sourceFile: i,
|
|
3601
|
+
renderCount: a,
|
|
3602
|
+
propHistory: o,
|
|
3603
|
+
md: n,
|
|
3604
|
+
componentProps: r
|
|
3605
|
+
});
|
|
3606
|
+
}, []), g = r(() => {
|
|
3607
|
+
u(null), f({});
|
|
3608
|
+
}, []), _ = a(() => ({
|
|
3542
3609
|
activeId: n,
|
|
3543
|
-
activeRect:
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
} }, e, /* @__PURE__ */ t.createElement(
|
|
3563
|
-
},
|
|
3610
|
+
activeRect: o,
|
|
3611
|
+
registerHover: p,
|
|
3612
|
+
unregisterHover: m,
|
|
3613
|
+
openDialog: h
|
|
3614
|
+
}), [
|
|
3615
|
+
n,
|
|
3616
|
+
o,
|
|
3617
|
+
p,
|
|
3618
|
+
m,
|
|
3619
|
+
h
|
|
3620
|
+
]), v = a(() => ({
|
|
3621
|
+
openDialogId: l,
|
|
3622
|
+
dialogMeta: d,
|
|
3623
|
+
closeDialog: g
|
|
3624
|
+
}), [
|
|
3625
|
+
l,
|
|
3626
|
+
d,
|
|
3627
|
+
g
|
|
3628
|
+
]);
|
|
3629
|
+
return /* @__PURE__ */ t.createElement(ua.Provider, { value: _ }, /* @__PURE__ */ t.createElement(da.Provider, { value: v }, e, /* @__PURE__ */ t.createElement(la, null, /* @__PURE__ */ t.createElement(ca, null))));
|
|
3630
|
+
}, pa = {
|
|
3564
3631
|
activeId: null,
|
|
3565
3632
|
activeRect: null,
|
|
3566
|
-
openDialogId: null,
|
|
3567
|
-
dialogMeta: {},
|
|
3568
3633
|
registerHover: () => {},
|
|
3569
3634
|
unregisterHover: () => {},
|
|
3570
|
-
openDialog: () => {}
|
|
3635
|
+
openDialog: () => {}
|
|
3636
|
+
}, ma = {
|
|
3637
|
+
openDialogId: null,
|
|
3638
|
+
dialogMeta: {},
|
|
3571
3639
|
closeDialog: () => {}
|
|
3572
|
-
},
|
|
3573
|
-
let
|
|
3640
|
+
}, ha = () => i(ua) ?? pa, ga = () => i(da) ?? ma, _a = () => {
|
|
3641
|
+
let e = ha(), t = ga();
|
|
3642
|
+
return {
|
|
3643
|
+
...e,
|
|
3644
|
+
...t
|
|
3645
|
+
};
|
|
3646
|
+
}, va = ({ children: e, componentName: n, sourceFile: r, renderCount: i, dialogMd: a, componentProps: s }) => {
|
|
3647
|
+
let c = E(), { activeId: l, registerHover: u, unregisterHover: d, openDialog: f } = ha(), p = o([]), m = o(""), h = s ? JSON.stringify(s) : "";
|
|
3648
|
+
s && h !== m.current && (m.current = h, p.current = [s, ...p.current].slice(0, 6));
|
|
3649
|
+
let g = l === c;
|
|
3574
3650
|
return /* @__PURE__ */ t.createElement("div", {
|
|
3575
3651
|
onMouseMove: (e) => {
|
|
3576
|
-
e.stopPropagation(),
|
|
3652
|
+
e.stopPropagation(), u(c, e.currentTarget.getBoundingClientRect());
|
|
3577
3653
|
},
|
|
3578
3654
|
onMouseLeave: (e) => {
|
|
3579
|
-
e.stopPropagation(), c
|
|
3655
|
+
e.stopPropagation(), d(c);
|
|
3580
3656
|
},
|
|
3581
3657
|
onClick: (e) => {
|
|
3582
|
-
e.stopPropagation(),
|
|
3658
|
+
e.stopPropagation(), f(c, n, a, s, r, i, p.current);
|
|
3583
3659
|
},
|
|
3584
|
-
style: { zIndex:
|
|
3660
|
+
style: { zIndex: g ? 51 : "initial" },
|
|
3585
3661
|
className: "relative transition-all duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]"
|
|
3586
3662
|
}, /* @__PURE__ */ t.createElement("div", {
|
|
3587
3663
|
className: "w-full h-full p-0.5 transition-all duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
3588
3664
|
style: {
|
|
3589
|
-
zIndex:
|
|
3590
|
-
border:
|
|
3665
|
+
zIndex: g ? 51 : "auto",
|
|
3666
|
+
border: g ? "2px dashed rgba(99, 102, 241, 0.55)" : "2px solid transparent",
|
|
3591
3667
|
borderRadius: "inherit"
|
|
3592
3668
|
}
|
|
3593
3669
|
}, e));
|
|
3594
3670
|
};
|
|
3595
3671
|
//#endregion
|
|
3596
|
-
export {
|
|
3672
|
+
export { va as Sentinel, fa as SentinelProvider, _a as useSentinel, ga as useSentinelDialog, ha as useSentinelInteraction };
|