@sentinel-core/sentinel 1.0.7 → 1.0.9
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 +55 -0
- package/dist/sentinel.css +2 -2
- package/dist/sentinel.es.js +1289 -1597
- package/dist/src/ui/widgets/SentinelDialog.d.ts +2 -1
- package/package.json +9 -9
- package/dist/sentinel.umd.js +0 -60
package/dist/sentinel.es.js
CHANGED
|
@@ -2,194 +2,12 @@ import * as e from "react";
|
|
|
2
2
|
import t, { createContext as n, useContext as r, useState as i } from "react";
|
|
3
3
|
import * as a from "react-dom";
|
|
4
4
|
import o from "react-dom";
|
|
5
|
-
//#region
|
|
6
|
-
|
|
7
|
-
if (typeof require < "u") return require.apply(this, arguments);
|
|
8
|
-
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
9
|
-
}), l = /* @__PURE__ */ s(((e) => {
|
|
10
|
-
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
11
|
-
function r(e, n, r) {
|
|
12
|
-
var i = null;
|
|
13
|
-
if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
|
|
14
|
-
else r = n;
|
|
15
|
-
return n = r.ref, {
|
|
16
|
-
$$typeof: t,
|
|
17
|
-
type: e,
|
|
18
|
-
key: i,
|
|
19
|
-
ref: n === void 0 ? null : n,
|
|
20
|
-
props: r
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
e.Fragment = n, e.jsx = r, e.jsxs = r;
|
|
24
|
-
})), u = /* @__PURE__ */ s(((e) => {
|
|
25
|
-
process.env.NODE_ENV !== "production" && (function() {
|
|
26
|
-
function t(e) {
|
|
27
|
-
if (e == null) return null;
|
|
28
|
-
if (typeof e == "function") return e.$$typeof === O ? null : e.displayName || e.name || null;
|
|
29
|
-
if (typeof e == "string") return e;
|
|
30
|
-
switch (e) {
|
|
31
|
-
case v: return "Fragment";
|
|
32
|
-
case b: return "Profiler";
|
|
33
|
-
case y: return "StrictMode";
|
|
34
|
-
case w: return "Suspense";
|
|
35
|
-
case T: return "SuspenseList";
|
|
36
|
-
case ee: return "Activity";
|
|
37
|
-
}
|
|
38
|
-
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
39
|
-
case _: return "Portal";
|
|
40
|
-
case S: return e.displayName || "Context";
|
|
41
|
-
case x: return (e._context.displayName || "Context") + ".Consumer";
|
|
42
|
-
case C:
|
|
43
|
-
var n = e.render;
|
|
44
|
-
return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
45
|
-
case E: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
|
|
46
|
-
case D:
|
|
47
|
-
n = e._payload, e = e._init;
|
|
48
|
-
try {
|
|
49
|
-
return t(e(n));
|
|
50
|
-
} catch {}
|
|
51
|
-
}
|
|
52
|
-
return null;
|
|
53
|
-
}
|
|
54
|
-
function n(e) {
|
|
55
|
-
return "" + e;
|
|
56
|
-
}
|
|
57
|
-
function r(e) {
|
|
58
|
-
try {
|
|
59
|
-
n(e);
|
|
60
|
-
var t = !1;
|
|
61
|
-
} catch {
|
|
62
|
-
t = !0;
|
|
63
|
-
}
|
|
64
|
-
if (t) {
|
|
65
|
-
t = console;
|
|
66
|
-
var r = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
67
|
-
return r.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), n(e);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
function i(e) {
|
|
71
|
-
if (e === v) return "<>";
|
|
72
|
-
if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
|
|
73
|
-
try {
|
|
74
|
-
var n = t(e);
|
|
75
|
-
return n ? "<" + n + ">" : "<...>";
|
|
76
|
-
} catch {
|
|
77
|
-
return "<...>";
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function a() {
|
|
81
|
-
var e = k.A;
|
|
82
|
-
return e === null ? null : e.getOwner();
|
|
83
|
-
}
|
|
84
|
-
function o() {
|
|
85
|
-
return Error("react-stack-top-frame");
|
|
86
|
-
}
|
|
87
|
-
function s(e) {
|
|
88
|
-
if (A.call(e, "key")) {
|
|
89
|
-
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
90
|
-
if (t && t.isReactWarning) return !1;
|
|
91
|
-
}
|
|
92
|
-
return e.key !== void 0;
|
|
93
|
-
}
|
|
94
|
-
function l(e, t) {
|
|
95
|
-
function n() {
|
|
96
|
-
te || (te = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
97
|
-
}
|
|
98
|
-
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
99
|
-
get: n,
|
|
100
|
-
configurable: !0
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
function u() {
|
|
104
|
-
var e = t(this.type);
|
|
105
|
-
return ne[e] || (ne[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
106
|
-
}
|
|
107
|
-
function d(e, t, n, r, i, a) {
|
|
108
|
-
var o = n.ref;
|
|
109
|
-
return e = {
|
|
110
|
-
$$typeof: g,
|
|
111
|
-
type: e,
|
|
112
|
-
key: t,
|
|
113
|
-
props: n,
|
|
114
|
-
_owner: r
|
|
115
|
-
}, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
|
|
116
|
-
enumerable: !1,
|
|
117
|
-
value: null
|
|
118
|
-
}) : Object.defineProperty(e, "ref", {
|
|
119
|
-
enumerable: !1,
|
|
120
|
-
get: u
|
|
121
|
-
}), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
122
|
-
configurable: !1,
|
|
123
|
-
enumerable: !1,
|
|
124
|
-
writable: !0,
|
|
125
|
-
value: 0
|
|
126
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
127
|
-
configurable: !1,
|
|
128
|
-
enumerable: !1,
|
|
129
|
-
writable: !0,
|
|
130
|
-
value: null
|
|
131
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
132
|
-
configurable: !1,
|
|
133
|
-
enumerable: !1,
|
|
134
|
-
writable: !0,
|
|
135
|
-
value: i
|
|
136
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
137
|
-
configurable: !1,
|
|
138
|
-
enumerable: !1,
|
|
139
|
-
writable: !0,
|
|
140
|
-
value: a
|
|
141
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
142
|
-
}
|
|
143
|
-
function f(e, n, i, o, c, u) {
|
|
144
|
-
var f = n.children;
|
|
145
|
-
if (f !== void 0) if (o) if (j(f)) {
|
|
146
|
-
for (o = 0; o < f.length; o++) p(f[o]);
|
|
147
|
-
Object.freeze && Object.freeze(f);
|
|
148
|
-
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
149
|
-
else p(f);
|
|
150
|
-
if (A.call(n, "key")) {
|
|
151
|
-
f = t(e);
|
|
152
|
-
var m = Object.keys(n).filter(function(e) {
|
|
153
|
-
return e !== "key";
|
|
154
|
-
});
|
|
155
|
-
o = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", re[f + o] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", o, f, m, f), re[f + o] = !0);
|
|
156
|
-
}
|
|
157
|
-
if (f = null, i !== void 0 && (r(i), f = "" + i), s(n) && (r(n.key), f = "" + n.key), "key" in n) for (var h in i = {}, n) h !== "key" && (i[h] = n[h]);
|
|
158
|
-
else i = n;
|
|
159
|
-
return f && l(i, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, i, a(), c, u);
|
|
160
|
-
}
|
|
161
|
-
function p(e) {
|
|
162
|
-
m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === D && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
163
|
-
}
|
|
164
|
-
function m(e) {
|
|
165
|
-
return typeof e == "object" && !!e && e.$$typeof === g;
|
|
166
|
-
}
|
|
167
|
-
var h = c("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), ee = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), k = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, j = Array.isArray, M = console.createTask ? console.createTask : function() {
|
|
168
|
-
return null;
|
|
169
|
-
};
|
|
170
|
-
h = { react_stack_bottom_frame: function(e) {
|
|
171
|
-
return e();
|
|
172
|
-
} };
|
|
173
|
-
var te, ne = {}, N = h.react_stack_bottom_frame.bind(h, o)(), P = M(i(o)), re = {};
|
|
174
|
-
e.Fragment = v, e.jsx = function(e, t, n) {
|
|
175
|
-
var r = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
176
|
-
return f(e, t, n, !1, r ? Error("react-stack-top-frame") : N, r ? M(i(e)) : P);
|
|
177
|
-
}, e.jsxs = function(e, t, n) {
|
|
178
|
-
var r = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
179
|
-
return f(e, t, n, !0, r ? Error("react-stack-top-frame") : N, r ? M(i(e)) : P);
|
|
180
|
-
};
|
|
181
|
-
})();
|
|
182
|
-
})), d = (/* @__PURE__ */ s(((e, t) => {
|
|
183
|
-
process.env.NODE_ENV === "production" ? t.exports = l() : t.exports = u();
|
|
184
|
-
})))();
|
|
185
|
-
function f(t, n) {
|
|
5
|
+
//#region ../../node_modules/@huin-core/react-context/dist/index.mjs
|
|
6
|
+
function s(t, n) {
|
|
186
7
|
let r = e.createContext(n);
|
|
187
8
|
function i(t) {
|
|
188
9
|
let { children: n, ...i } = t, a = e.useMemo(() => i, Object.values(i));
|
|
189
|
-
return /* @__PURE__ */
|
|
190
|
-
value: a,
|
|
191
|
-
children: n
|
|
192
|
-
});
|
|
10
|
+
return /* @__PURE__ */ e.createElement(r.Provider, { value: a }, n);
|
|
193
11
|
}
|
|
194
12
|
function a(i) {
|
|
195
13
|
let a = e.useContext(r);
|
|
@@ -199,17 +17,14 @@ function f(t, n) {
|
|
|
199
17
|
}
|
|
200
18
|
return i.displayName = t + "Provider", [i, a];
|
|
201
19
|
}
|
|
202
|
-
function
|
|
20
|
+
function c(t, n = []) {
|
|
203
21
|
let r = [];
|
|
204
22
|
function i(n, i) {
|
|
205
23
|
let a = e.createContext(i), o = r.length;
|
|
206
24
|
r = [...r, i];
|
|
207
25
|
function s(n) {
|
|
208
26
|
let { scope: r, children: i, ...s } = n, c = r?.[t][o] || a, l = e.useMemo(() => s, Object.values(s));
|
|
209
|
-
return /* @__PURE__ */
|
|
210
|
-
value: l,
|
|
211
|
-
children: i
|
|
212
|
-
});
|
|
27
|
+
return /* @__PURE__ */ e.createElement(c.Provider, { value: l }, i);
|
|
213
28
|
}
|
|
214
29
|
function c(r, s) {
|
|
215
30
|
let c = s?.[t][o] || a, l = e.useContext(c);
|
|
@@ -229,9 +44,9 @@ function p(t, n = []) {
|
|
|
229
44
|
} }), [r, i]);
|
|
230
45
|
};
|
|
231
46
|
};
|
|
232
|
-
return a.scopeName = t, [i,
|
|
47
|
+
return a.scopeName = t, [i, l(a, ...n)];
|
|
233
48
|
}
|
|
234
|
-
function
|
|
49
|
+
function l(...t) {
|
|
235
50
|
let n = t[0];
|
|
236
51
|
if (t.length === 1) return n;
|
|
237
52
|
let r = () => {
|
|
@@ -254,58 +69,56 @@ function m(...t) {
|
|
|
254
69
|
}
|
|
255
70
|
//#endregion
|
|
256
71
|
//#region ../../node_modules/@huin-core/primitive/dist/index.mjs
|
|
257
|
-
function
|
|
72
|
+
function u(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
258
73
|
return function(r) {
|
|
259
74
|
if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
|
|
260
75
|
};
|
|
261
76
|
}
|
|
262
77
|
//#endregion
|
|
263
78
|
//#region ../../node_modules/@huin-core/react-compose-refs/dist/index.mjs
|
|
264
|
-
function
|
|
79
|
+
function d(e, t) {
|
|
265
80
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
266
81
|
}
|
|
267
|
-
function
|
|
268
|
-
return (t) => e.forEach((e) =>
|
|
82
|
+
function f(...e) {
|
|
83
|
+
return (t) => e.forEach((e) => d(e, t));
|
|
269
84
|
}
|
|
270
|
-
function
|
|
271
|
-
return e.useCallback(
|
|
85
|
+
function p(...t) {
|
|
86
|
+
return e.useCallback(f(...t), t);
|
|
272
87
|
}
|
|
273
88
|
//#endregion
|
|
274
89
|
//#region ../../node_modules/@huin-core/react-slot/dist/index.mjs
|
|
275
|
-
var
|
|
276
|
-
let { children: r, ...i } = t, a = e.Children.toArray(r), o = a.find(
|
|
90
|
+
var m = e.forwardRef((t, n) => {
|
|
91
|
+
let { children: r, ...i } = t, a = e.Children.toArray(r), o = a.find(_);
|
|
277
92
|
if (o) {
|
|
278
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);
|
|
279
|
-
return /* @__PURE__ */
|
|
94
|
+
return /* @__PURE__ */ e.createElement(h, {
|
|
280
95
|
...i,
|
|
281
|
-
ref: n
|
|
282
|
-
|
|
283
|
-
});
|
|
96
|
+
ref: n
|
|
97
|
+
}, e.isValidElement(t) ? e.cloneElement(t, void 0, r) : null);
|
|
284
98
|
}
|
|
285
|
-
return /* @__PURE__ */
|
|
99
|
+
return /* @__PURE__ */ e.createElement(h, {
|
|
286
100
|
...i,
|
|
287
|
-
ref: n
|
|
288
|
-
|
|
289
|
-
});
|
|
101
|
+
ref: n
|
|
102
|
+
}, r);
|
|
290
103
|
});
|
|
291
|
-
|
|
292
|
-
var
|
|
104
|
+
m.displayName = "Slot";
|
|
105
|
+
var h = e.forwardRef((t, n) => {
|
|
293
106
|
let { children: r, ...i } = t;
|
|
294
107
|
if (e.isValidElement(r)) {
|
|
295
|
-
let t =
|
|
108
|
+
let t = y(r);
|
|
296
109
|
return e.cloneElement(r, {
|
|
297
|
-
...
|
|
298
|
-
ref: n ?
|
|
110
|
+
...v(i, r.props),
|
|
111
|
+
ref: n ? f(n, t) : t
|
|
299
112
|
});
|
|
300
113
|
}
|
|
301
114
|
return e.Children.count(r) > 1 ? e.Children.only(null) : null;
|
|
302
115
|
});
|
|
303
|
-
|
|
304
|
-
var
|
|
305
|
-
function
|
|
306
|
-
return e.isValidElement(t) && t.type ===
|
|
116
|
+
h.displayName = "SlotClone";
|
|
117
|
+
var g = ({ children: t }) => /* @__PURE__ */ e.createElement(e.Fragment, null, t);
|
|
118
|
+
function _(t) {
|
|
119
|
+
return e.isValidElement(t) && t.type === g;
|
|
307
120
|
}
|
|
308
|
-
function
|
|
121
|
+
function v(e, t) {
|
|
309
122
|
let n = { ...t };
|
|
310
123
|
for (let r in t) {
|
|
311
124
|
let i = e[r], a = t[r];
|
|
@@ -321,47 +134,42 @@ function C(e, t) {
|
|
|
321
134
|
...n
|
|
322
135
|
};
|
|
323
136
|
}
|
|
324
|
-
function
|
|
137
|
+
function y(e) {
|
|
325
138
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
326
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);
|
|
327
140
|
}
|
|
328
141
|
//#endregion
|
|
329
142
|
//#region ../../node_modules/@huin-core/react-collection/dist/index.mjs
|
|
330
|
-
function
|
|
331
|
-
let n = e + "CollectionProvider", [r, i] =
|
|
143
|
+
function b(e) {
|
|
144
|
+
let n = e + "CollectionProvider", [r, i] = c(n), [a, o] = r(n, {
|
|
332
145
|
collectionRef: { current: null },
|
|
333
146
|
itemMap: /* @__PURE__ */ new Map()
|
|
334
147
|
}), s = (e) => {
|
|
335
148
|
let { scope: n, children: r } = e, i = t.useRef(null), o = t.useRef(/* @__PURE__ */ new Map()).current;
|
|
336
|
-
return /* @__PURE__ */
|
|
149
|
+
return /* @__PURE__ */ t.createElement(a, {
|
|
337
150
|
scope: n,
|
|
338
151
|
itemMap: o,
|
|
339
|
-
collectionRef: i
|
|
340
|
-
|
|
341
|
-
});
|
|
152
|
+
collectionRef: i
|
|
153
|
+
}, r);
|
|
342
154
|
};
|
|
343
155
|
s.displayName = n;
|
|
344
|
-
let
|
|
345
|
-
let { scope:
|
|
346
|
-
return /* @__PURE__ */ (
|
|
347
|
-
ref: v(t, o(c, n).collectionRef),
|
|
348
|
-
children: r
|
|
349
|
-
});
|
|
156
|
+
let l = e + "CollectionSlot", u = t.forwardRef((e, n) => {
|
|
157
|
+
let { scope: r, children: i } = e, a = p(n, o(l, r).collectionRef);
|
|
158
|
+
return /* @__PURE__ */ t.createElement(m, { ref: a }, i);
|
|
350
159
|
});
|
|
351
|
-
|
|
352
|
-
let
|
|
353
|
-
let { scope: r, children: i, ...a } = e, s = t.useRef(null), c =
|
|
160
|
+
u.displayName = l;
|
|
161
|
+
let d = e + "CollectionItemSlot", f = "data-huin-core-collection-item", h = t.forwardRef((e, n) => {
|
|
162
|
+
let { scope: r, children: i, ...a } = e, s = t.useRef(null), c = p(n, s), l = o(d, r);
|
|
354
163
|
return t.useEffect(() => (l.itemMap.set(s, {
|
|
355
164
|
ref: s,
|
|
356
165
|
...a
|
|
357
|
-
}), () => void l.itemMap.delete(s))), /* @__PURE__ */
|
|
166
|
+
}), () => void l.itemMap.delete(s))), /* @__PURE__ */ t.createElement(m, {
|
|
358
167
|
[f]: "",
|
|
359
|
-
ref: c
|
|
360
|
-
|
|
361
|
-
});
|
|
168
|
+
ref: c
|
|
169
|
+
}, i);
|
|
362
170
|
});
|
|
363
|
-
|
|
364
|
-
function
|
|
171
|
+
h.displayName = d;
|
|
172
|
+
function g(n) {
|
|
365
173
|
let r = o(e + "CollectionConsumer", n);
|
|
366
174
|
return t.useCallback(() => {
|
|
367
175
|
let e = r.collectionRef.current;
|
|
@@ -373,25 +181,25 @@ function T(e) {
|
|
|
373
181
|
return [
|
|
374
182
|
{
|
|
375
183
|
Provider: s,
|
|
376
|
-
Slot:
|
|
377
|
-
ItemSlot:
|
|
184
|
+
Slot: u,
|
|
185
|
+
ItemSlot: h
|
|
378
186
|
},
|
|
379
|
-
|
|
187
|
+
g,
|
|
380
188
|
i
|
|
381
189
|
];
|
|
382
190
|
}
|
|
383
191
|
//#endregion
|
|
384
192
|
//#region ../../node_modules/@huin-core/react-use-layout-effect/dist/index.mjs
|
|
385
|
-
var
|
|
386
|
-
function
|
|
387
|
-
let [n, r] = e.useState(
|
|
388
|
-
return
|
|
389
|
-
t || r((e) => e ?? String(
|
|
193
|
+
var x = globalThis?.document ? e.useLayoutEffect : () => {}, S = e.useId || (() => void 0), C = 0;
|
|
194
|
+
function w(t) {
|
|
195
|
+
let [n, r] = e.useState(S());
|
|
196
|
+
return x(() => {
|
|
197
|
+
t || r((e) => e ?? String(C++));
|
|
390
198
|
}, [t]), t || (n ? `huin-${n}` : "");
|
|
391
199
|
}
|
|
392
200
|
//#endregion
|
|
393
201
|
//#region ../../node_modules/@huin-core/react-primitive/dist/index.mjs
|
|
394
|
-
var
|
|
202
|
+
var T = [
|
|
395
203
|
"a",
|
|
396
204
|
"button",
|
|
397
205
|
"div",
|
|
@@ -410,11 +218,11 @@ var k = [
|
|
|
410
218
|
"svg",
|
|
411
219
|
"ul"
|
|
412
220
|
].reduce((t, n) => {
|
|
413
|
-
let r = e.forwardRef((
|
|
414
|
-
let { asChild:
|
|
415
|
-
return typeof window < "u" && (window[Symbol.for("huin-core")] = !0), /* @__PURE__ */
|
|
416
|
-
...
|
|
417
|
-
ref:
|
|
221
|
+
let r = e.forwardRef((t, r) => {
|
|
222
|
+
let { asChild: i, ...a } = t, o = i ? m : n;
|
|
223
|
+
return typeof window < "u" && (window[Symbol.for("huin-core")] = !0), /* @__PURE__ */ e.createElement(o, {
|
|
224
|
+
...a,
|
|
225
|
+
ref: r
|
|
418
226
|
});
|
|
419
227
|
});
|
|
420
228
|
return r.displayName = `Primitive.${n}`, {
|
|
@@ -422,12 +230,12 @@ var k = [
|
|
|
422
230
|
[n]: r
|
|
423
231
|
};
|
|
424
232
|
}, {});
|
|
425
|
-
function
|
|
233
|
+
function E(e, t) {
|
|
426
234
|
e && a.flushSync(() => e.dispatchEvent(t));
|
|
427
235
|
}
|
|
428
236
|
//#endregion
|
|
429
237
|
//#region ../../node_modules/@huin-core/react-use-callback-ref/dist/index.mjs
|
|
430
|
-
function
|
|
238
|
+
function D(t) {
|
|
431
239
|
let n = e.useRef(t);
|
|
432
240
|
return e.useEffect(() => {
|
|
433
241
|
n.current = t;
|
|
@@ -435,11 +243,11 @@ function j(t) {
|
|
|
435
243
|
}
|
|
436
244
|
//#endregion
|
|
437
245
|
//#region ../../node_modules/@huin-core/react-use-controllable-state/dist/index.mjs
|
|
438
|
-
function
|
|
439
|
-
let [i, a] =
|
|
246
|
+
function O({ prop: t, defaultProp: n, onChange: r = () => {} }) {
|
|
247
|
+
let [i, a] = ee({
|
|
440
248
|
defaultProp: n,
|
|
441
249
|
onChange: r
|
|
442
|
-
}), o = t !== void 0, s = o ? t : i, c =
|
|
250
|
+
}), o = t !== void 0, s = o ? t : i, c = D(r);
|
|
443
251
|
return [s, e.useCallback((e) => {
|
|
444
252
|
if (o) {
|
|
445
253
|
let n = typeof e == "function" ? e(t) : e;
|
|
@@ -452,8 +260,8 @@ function M({ prop: t, defaultProp: n, onChange: r = () => {} }) {
|
|
|
452
260
|
c
|
|
453
261
|
])];
|
|
454
262
|
}
|
|
455
|
-
function
|
|
456
|
-
let r = e.useState(t), [i] = r, a = e.useRef(i), o =
|
|
263
|
+
function ee({ defaultProp: t, onChange: n }) {
|
|
264
|
+
let r = e.useState(t), [i] = r, a = e.useRef(i), o = D(n);
|
|
457
265
|
return e.useEffect(() => {
|
|
458
266
|
a.current !== i && (o(i), a.current = i);
|
|
459
267
|
}, [
|
|
@@ -464,123 +272,115 @@ function te({ defaultProp: t, onChange: n }) {
|
|
|
464
272
|
}
|
|
465
273
|
//#endregion
|
|
466
274
|
//#region ../../node_modules/@huin-core/react-direction/dist/index.mjs
|
|
467
|
-
var
|
|
468
|
-
function
|
|
469
|
-
let n = e.useContext(
|
|
275
|
+
var te = e.createContext(void 0);
|
|
276
|
+
function k(t) {
|
|
277
|
+
let n = e.useContext(te);
|
|
470
278
|
return t || n || "ltr";
|
|
471
279
|
}
|
|
472
280
|
//#endregion
|
|
473
281
|
//#region ../../node_modules/@huin-core/react-roving-focus/dist/index.mjs
|
|
474
|
-
var
|
|
282
|
+
var A = "rovingFocusGroup.onEntryFocus", j = {
|
|
475
283
|
bubbles: !1,
|
|
476
284
|
cancelable: !0
|
|
477
|
-
},
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
})
|
|
485
|
-
})
|
|
486
|
-
}));
|
|
487
|
-
ce.displayName = F;
|
|
488
|
-
var le = e.forwardRef((t, n) => {
|
|
489
|
-
let { __scopeRovingFocusGroup: r, orientation: i, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: f = !1, ...p } = t, m = e.useRef(null), g = v(n, m), _ = N(o), [y = null, b] = M({
|
|
285
|
+
}, M = "RovingFocusGroup", [N, P, ne] = b(M), [re, ie] = c(M, [ne]), [ae, F] = re(M), I = e.forwardRef((t, n) => /* @__PURE__ */ e.createElement(N.Provider, { scope: t.__scopeRovingFocusGroup }, /* @__PURE__ */ e.createElement(N.Slot, { scope: t.__scopeRovingFocusGroup }, /* @__PURE__ */ e.createElement(oe, {
|
|
286
|
+
...t,
|
|
287
|
+
ref: n
|
|
288
|
+
}))));
|
|
289
|
+
I.displayName = M;
|
|
290
|
+
var oe = e.forwardRef((t, n) => {
|
|
291
|
+
let { __scopeRovingFocusGroup: r, orientation: i, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: d, preventScrollOnEntryFocus: f = !1, ...m } = t, h = e.useRef(null), g = p(n, h), _ = k(o), [v = null, y] = O({
|
|
490
292
|
prop: s,
|
|
491
293
|
defaultProp: c,
|
|
492
294
|
onChange: l
|
|
493
|
-
}), [
|
|
295
|
+
}), [b, x] = e.useState(!1), S = D(d), C = P(r), w = e.useRef(!1), [E, ee] = e.useState(0);
|
|
494
296
|
return e.useEffect(() => {
|
|
495
|
-
let e =
|
|
496
|
-
if (e) return e.addEventListener(
|
|
497
|
-
}, [
|
|
297
|
+
let e = h.current;
|
|
298
|
+
if (e) return e.addEventListener(A, S), () => e.removeEventListener(A, S);
|
|
299
|
+
}, [S]), /* @__PURE__ */ e.createElement(ae, {
|
|
498
300
|
scope: r,
|
|
499
301
|
orientation: i,
|
|
500
302
|
dir: _,
|
|
501
303
|
loop: a,
|
|
502
|
-
currentTabStopId:
|
|
503
|
-
onItemFocus: e.useCallback((e) =>
|
|
504
|
-
onItemShiftTab: e.useCallback(() =>
|
|
505
|
-
onFocusableItemAdd: e.useCallback(() =>
|
|
506
|
-
onFocusableItemRemove: e.useCallback(() =>
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
}
|
|
304
|
+
currentTabStopId: v,
|
|
305
|
+
onItemFocus: e.useCallback((e) => y(e), [y]),
|
|
306
|
+
onItemShiftTab: e.useCallback(() => x(!0), []),
|
|
307
|
+
onFocusableItemAdd: e.useCallback(() => ee((e) => e + 1), []),
|
|
308
|
+
onFocusableItemRemove: e.useCallback(() => ee((e) => e - 1), [])
|
|
309
|
+
}, /* @__PURE__ */ e.createElement(T.div, {
|
|
310
|
+
tabIndex: b || E === 0 ? -1 : 0,
|
|
311
|
+
"data-orientation": i,
|
|
312
|
+
...m,
|
|
313
|
+
ref: g,
|
|
314
|
+
style: {
|
|
315
|
+
outline: "none",
|
|
316
|
+
...t.style
|
|
317
|
+
},
|
|
318
|
+
onMouseDown: u(t.onMouseDown, () => {
|
|
319
|
+
w.current = !0;
|
|
320
|
+
}),
|
|
321
|
+
onFocus: u(t.onFocus, (e) => {
|
|
322
|
+
let t = !w.current;
|
|
323
|
+
if (e.target === e.currentTarget && t && !b) {
|
|
324
|
+
let t = new CustomEvent(A, j);
|
|
325
|
+
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
326
|
+
let e = C().filter((e) => e.focusable);
|
|
327
|
+
de([
|
|
328
|
+
e.find((e) => e.active),
|
|
329
|
+
e.find((e) => e.id === v),
|
|
330
|
+
...e
|
|
331
|
+
].filter(Boolean).map((e) => e.ref.current), f);
|
|
531
332
|
}
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
});
|
|
537
|
-
}),
|
|
538
|
-
let { __scopeRovingFocusGroup: r, focusable: i = !0, active: a = !1, tabStopId: o, ...s } = t, c =
|
|
333
|
+
}
|
|
334
|
+
w.current = !1;
|
|
335
|
+
}),
|
|
336
|
+
onBlur: u(t.onBlur, () => x(!1))
|
|
337
|
+
}));
|
|
338
|
+
}), se = "RovingFocusGroupItem", L = e.forwardRef((t, n) => {
|
|
339
|
+
let { __scopeRovingFocusGroup: r, focusable: i = !0, active: a = !1, tabStopId: o, ...s } = t, c = w(), l = o || c, d = F(se, r), f = d.currentTabStopId === l, p = P(r), { onFocusableItemAdd: m, onFocusableItemRemove: h } = d;
|
|
539
340
|
return e.useEffect(() => {
|
|
540
|
-
if (i) return m(), () =>
|
|
341
|
+
if (i) return m(), () => h();
|
|
541
342
|
}, [
|
|
542
343
|
i,
|
|
543
344
|
m,
|
|
544
|
-
|
|
545
|
-
]), /* @__PURE__ */
|
|
345
|
+
h
|
|
346
|
+
]), /* @__PURE__ */ e.createElement(N.ItemSlot, {
|
|
546
347
|
scope: r,
|
|
547
348
|
id: l,
|
|
548
349
|
focusable: i,
|
|
549
|
-
active: a
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
}
|
|
576
|
-
setTimeout(() => he(n));
|
|
350
|
+
active: a
|
|
351
|
+
}, /* @__PURE__ */ e.createElement(T.span, {
|
|
352
|
+
tabIndex: f ? 0 : -1,
|
|
353
|
+
"data-orientation": d.orientation,
|
|
354
|
+
...s,
|
|
355
|
+
ref: n,
|
|
356
|
+
onMouseDown: u(t.onMouseDown, (e) => {
|
|
357
|
+
i ? d.onItemFocus(l) : e.preventDefault();
|
|
358
|
+
}),
|
|
359
|
+
onFocus: u(t.onFocus, () => d.onItemFocus(l)),
|
|
360
|
+
onKeyDown: u(t.onKeyDown, (e) => {
|
|
361
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
362
|
+
d.onItemShiftTab();
|
|
363
|
+
return;
|
|
364
|
+
}
|
|
365
|
+
if (e.target !== e.currentTarget) return;
|
|
366
|
+
let t = ue(e, d.orientation, d.dir);
|
|
367
|
+
if (t !== void 0) {
|
|
368
|
+
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
369
|
+
e.preventDefault();
|
|
370
|
+
let n = p().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
371
|
+
if (t === "last") n.reverse();
|
|
372
|
+
else if (t === "prev" || t === "next") {
|
|
373
|
+
t === "prev" && n.reverse();
|
|
374
|
+
let r = n.indexOf(e.currentTarget);
|
|
375
|
+
n = d.loop ? fe(n, r + 1) : n.slice(r + 1);
|
|
577
376
|
}
|
|
578
|
-
|
|
377
|
+
setTimeout(() => de(n));
|
|
378
|
+
}
|
|
579
379
|
})
|
|
580
|
-
});
|
|
380
|
+
}));
|
|
581
381
|
});
|
|
582
|
-
|
|
583
|
-
var
|
|
382
|
+
L.displayName = se;
|
|
383
|
+
var ce = {
|
|
584
384
|
ArrowLeft: "prev",
|
|
585
385
|
ArrowUp: "prev",
|
|
586
386
|
ArrowRight: "next",
|
|
@@ -590,33 +390,33 @@ var fe = {
|
|
|
590
390
|
PageDown: "last",
|
|
591
391
|
End: "last"
|
|
592
392
|
};
|
|
593
|
-
function
|
|
393
|
+
function le(e, t) {
|
|
594
394
|
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
595
395
|
}
|
|
596
|
-
function
|
|
597
|
-
let r =
|
|
598
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return
|
|
396
|
+
function ue(e, t, n) {
|
|
397
|
+
let r = le(e.key, n);
|
|
398
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return ce[r];
|
|
599
399
|
}
|
|
600
|
-
function
|
|
400
|
+
function de(e, t = !1) {
|
|
601
401
|
let n = document.activeElement;
|
|
602
402
|
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
603
403
|
}
|
|
604
|
-
function
|
|
404
|
+
function fe(e, t) {
|
|
605
405
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
606
406
|
}
|
|
607
|
-
var
|
|
407
|
+
var pe = I, me = L;
|
|
608
408
|
//#endregion
|
|
609
409
|
//#region ../../node_modules/@huin-core/react-presence/dist/index.mjs
|
|
610
|
-
function
|
|
410
|
+
function he(t, n) {
|
|
611
411
|
return e.useReducer((e, t) => n[e][t] ?? e, t);
|
|
612
412
|
}
|
|
613
|
-
var
|
|
614
|
-
let { present: n, children: r } = t, i =
|
|
413
|
+
var ge = (t) => {
|
|
414
|
+
let { present: n, children: r } = t, i = _e(n), a = typeof r == "function" ? r({ present: i.isPresent }) : e.Children.only(r), o = p(i.ref, ye(a));
|
|
615
415
|
return typeof r == "function" || i.isPresent ? e.cloneElement(a, { ref: o }) : null;
|
|
616
416
|
};
|
|
617
|
-
|
|
618
|
-
function
|
|
619
|
-
let [n, r] = e.useState(), i = e.useRef({}), o = e.useRef(t), s = e.useRef("none"), [c, l] =
|
|
417
|
+
ge.displayName = "Presence";
|
|
418
|
+
function _e(t) {
|
|
419
|
+
let [n, r] = e.useState(), i = e.useRef({}), o = e.useRef(t), s = e.useRef("none"), [c, l] = he(t ? "mounted" : "unmounted", {
|
|
620
420
|
mounted: {
|
|
621
421
|
UNMOUNT: "unmounted",
|
|
622
422
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -628,21 +428,21 @@ function xe(t) {
|
|
|
628
428
|
unmounted: { MOUNT: "mounted" }
|
|
629
429
|
});
|
|
630
430
|
return e.useEffect(() => {
|
|
631
|
-
let e =
|
|
431
|
+
let e = ve(i.current);
|
|
632
432
|
s.current = c === "mounted" ? e : "none";
|
|
633
|
-
}, [c]),
|
|
433
|
+
}, [c]), x(() => {
|
|
634
434
|
let e = i.current, n = o.current;
|
|
635
435
|
if (n !== t) {
|
|
636
|
-
let r = s.current, i =
|
|
436
|
+
let r = s.current, i = ve(e);
|
|
637
437
|
t ? l("MOUNT") : i === "none" || e?.display === "none" ? l("UNMOUNT") : l(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), o.current = t;
|
|
638
438
|
}
|
|
639
|
-
}, [t, l]),
|
|
439
|
+
}, [t, l]), x(() => {
|
|
640
440
|
if (n) {
|
|
641
441
|
let e = (e) => {
|
|
642
|
-
let t =
|
|
442
|
+
let t = ve(i.current).includes(e.animationName);
|
|
643
443
|
e.target === n && t && a.flushSync(() => l("ANIMATION_END"));
|
|
644
444
|
}, t = (e) => {
|
|
645
|
-
e.target === n && (s.current =
|
|
445
|
+
e.target === n && (s.current = ve(i.current));
|
|
646
446
|
};
|
|
647
447
|
return n.addEventListener("animationstart", t), n.addEventListener("animationcancel", e), n.addEventListener("animationend", e), () => {
|
|
648
448
|
n.removeEventListener("animationstart", t), n.removeEventListener("animationcancel", e), n.removeEventListener("animationend", e);
|
|
@@ -655,230 +455,223 @@ function xe(t) {
|
|
|
655
455
|
}, [])
|
|
656
456
|
};
|
|
657
457
|
}
|
|
658
|
-
function
|
|
458
|
+
function ve(e) {
|
|
659
459
|
return e?.animationName || "none";
|
|
660
460
|
}
|
|
661
|
-
function
|
|
461
|
+
function ye(e) {
|
|
662
462
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
663
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);
|
|
664
464
|
}
|
|
665
465
|
//#endregion
|
|
666
466
|
//#region ../../node_modules/@huin-core/react-tabs/dist/index.mjs
|
|
667
|
-
var
|
|
668
|
-
let { __scopeTabs:
|
|
669
|
-
prop:
|
|
670
|
-
onChange:
|
|
671
|
-
defaultProp:
|
|
467
|
+
var be = "Tabs", [xe, Se] = c(be, [ie]), [Ce, we] = xe(be), Te = 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 = k(c), [f, p] = O({
|
|
469
|
+
prop: i,
|
|
470
|
+
onChange: a,
|
|
471
|
+
defaultProp: o
|
|
672
472
|
});
|
|
673
|
-
return /* @__PURE__ */
|
|
674
|
-
scope:
|
|
675
|
-
baseId:
|
|
473
|
+
return /* @__PURE__ */ e.createElement(Ce, {
|
|
474
|
+
scope: r,
|
|
475
|
+
baseId: w(),
|
|
676
476
|
value: f,
|
|
677
477
|
onValueChange: p,
|
|
678
|
-
orientation:
|
|
679
|
-
dir:
|
|
680
|
-
activationMode:
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
});
|
|
478
|
+
orientation: s,
|
|
479
|
+
dir: d,
|
|
480
|
+
activationMode: l
|
|
481
|
+
}, /* @__PURE__ */ e.createElement(T.div, {
|
|
482
|
+
dir: d,
|
|
483
|
+
"data-orientation": s,
|
|
484
|
+
...u,
|
|
485
|
+
ref: n
|
|
486
|
+
}));
|
|
688
487
|
});
|
|
689
|
-
|
|
690
|
-
var
|
|
691
|
-
let { __scopeTabs:
|
|
692
|
-
return /* @__PURE__ */
|
|
488
|
+
Te.displayName = be;
|
|
489
|
+
var Ee = "TabsList", De = ie(), Oe = t.forwardRef((e, n) => {
|
|
490
|
+
let { __scopeTabs: r, loop: i = !0, ...a } = e, o = we(Ee, r), s = De(r);
|
|
491
|
+
return /* @__PURE__ */ t.createElement(pe, {
|
|
693
492
|
asChild: !0,
|
|
694
|
-
...
|
|
695
|
-
orientation:
|
|
696
|
-
dir:
|
|
697
|
-
loop:
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
});
|
|
493
|
+
...s,
|
|
494
|
+
orientation: o.orientation,
|
|
495
|
+
dir: o.dir,
|
|
496
|
+
loop: i
|
|
497
|
+
}, /* @__PURE__ */ t.createElement(T.div, {
|
|
498
|
+
role: "tablist",
|
|
499
|
+
"aria-orientation": o.orientation,
|
|
500
|
+
...a,
|
|
501
|
+
ref: n
|
|
502
|
+
}));
|
|
705
503
|
});
|
|
706
|
-
|
|
707
|
-
var
|
|
708
|
-
let { __scopeTabs: r, value: i, forceMount: a, children: o, ...s } = e, c =
|
|
504
|
+
Oe.displayName = Ee;
|
|
505
|
+
var ke = "TabsContent", Ae = t.forwardRef((e, n) => {
|
|
506
|
+
let { __scopeTabs: r, value: i, forceMount: a, children: o, ...s } = e, c = we(ke, r), l = je(c.baseId, i), u = Me(c.baseId, i), d = i === c.value, f = t.useRef(d);
|
|
709
507
|
return t.useEffect(() => {
|
|
710
|
-
let e = requestAnimationFrame(() =>
|
|
508
|
+
let e = requestAnimationFrame(() => f.current = !1);
|
|
711
509
|
return () => cancelAnimationFrame(e);
|
|
712
|
-
}, []), /* @__PURE__ */ (
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
},
|
|
728
|
-
children: t && o
|
|
729
|
-
})
|
|
730
|
-
});
|
|
510
|
+
}, []), /* @__PURE__ */ t.createElement(ge, { present: a || d }, ({ present: r }) => /* @__PURE__ */ t.createElement(T.div, {
|
|
511
|
+
"data-state": d ? "active" : "inactive",
|
|
512
|
+
"data-orientation": c.orientation,
|
|
513
|
+
role: "tabpanel",
|
|
514
|
+
"aria-labelledby": l,
|
|
515
|
+
hidden: !r,
|
|
516
|
+
id: u,
|
|
517
|
+
tabIndex: 0,
|
|
518
|
+
...s,
|
|
519
|
+
ref: n,
|
|
520
|
+
style: {
|
|
521
|
+
...e.style,
|
|
522
|
+
animationDuration: f.current ? "0s" : void 0
|
|
523
|
+
}
|
|
524
|
+
}, r && o));
|
|
731
525
|
});
|
|
732
|
-
|
|
733
|
-
function
|
|
526
|
+
Ae.displayName = ke;
|
|
527
|
+
function je(e, t) {
|
|
734
528
|
return `${e}-trigger-${t}`;
|
|
735
529
|
}
|
|
736
|
-
function
|
|
530
|
+
function Me(e, t) {
|
|
737
531
|
return `${e}-content-${t}`;
|
|
738
532
|
}
|
|
739
|
-
var
|
|
740
|
-
let { __scopeTabs:
|
|
741
|
-
return /* @__PURE__ */
|
|
533
|
+
var Ne = "TabsTrigger", Pe = t.forwardRef((e, n) => {
|
|
534
|
+
let { __scopeTabs: r, value: i, disabled: a = !1, ...o } = e, s = we(Ne, r), c = De(r), l = je(s.baseId, i), d = Me(s.baseId, i), f = i === s.value;
|
|
535
|
+
return /* @__PURE__ */ t.createElement(me, {
|
|
742
536
|
asChild: !0,
|
|
743
|
-
...
|
|
744
|
-
focusable: !
|
|
745
|
-
active:
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
})
|
|
537
|
+
...c,
|
|
538
|
+
focusable: !a,
|
|
539
|
+
active: f
|
|
540
|
+
}, /* @__PURE__ */ t.createElement(T.button, {
|
|
541
|
+
type: "button",
|
|
542
|
+
role: "tab",
|
|
543
|
+
"aria-selected": f,
|
|
544
|
+
"aria-controls": d,
|
|
545
|
+
"data-state": f ? "active" : "inactive",
|
|
546
|
+
"data-disabled": a ? "" : void 0,
|
|
547
|
+
disabled: a,
|
|
548
|
+
id: l,
|
|
549
|
+
...o,
|
|
550
|
+
ref: n,
|
|
551
|
+
onMouseDown: u(e.onMouseDown, (e) => {
|
|
552
|
+
!a && e.button === 0 && e.ctrlKey === !1 ? s.onValueChange(i) : e.preventDefault();
|
|
553
|
+
}),
|
|
554
|
+
onKeyDown: u(e.onKeyDown, (e) => {
|
|
555
|
+
[" ", "Enter"].includes(e.key) && s.onValueChange(i);
|
|
556
|
+
}),
|
|
557
|
+
onFocus: u(e.onFocus, () => {
|
|
558
|
+
let e = s.activationMode !== "manual";
|
|
559
|
+
!f && !a && e && s.onValueChange(i);
|
|
767
560
|
})
|
|
768
|
-
});
|
|
561
|
+
}));
|
|
769
562
|
});
|
|
770
|
-
|
|
563
|
+
Pe.displayName = Ne;
|
|
771
564
|
//#endregion
|
|
772
565
|
//#region ../../node_modules/clsx/dist/clsx.mjs
|
|
773
|
-
function
|
|
566
|
+
function Fe(e) {
|
|
774
567
|
var t, n, r = "";
|
|
775
568
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
776
569
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
777
570
|
var i = e.length;
|
|
778
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
571
|
+
for (t = 0; t < i; t++) e[t] && (n = Fe(e[t])) && (r && (r += " "), r += n);
|
|
779
572
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
780
573
|
return r;
|
|
781
574
|
}
|
|
782
|
-
function
|
|
783
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
575
|
+
function Ie() {
|
|
576
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Fe(e)) && (r && (r += " "), r += t);
|
|
784
577
|
return r;
|
|
785
578
|
}
|
|
786
579
|
//#endregion
|
|
787
580
|
//#region ../../node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
788
|
-
var
|
|
581
|
+
var Le = (e, t) => {
|
|
789
582
|
let n = Array(e.length + t.length);
|
|
790
583
|
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
791
584
|
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
|
|
792
585
|
return n;
|
|
793
|
-
},
|
|
586
|
+
}, Re = (e, t) => ({
|
|
794
587
|
classGroupId: e,
|
|
795
588
|
validator: t
|
|
796
|
-
}),
|
|
589
|
+
}), ze = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
797
590
|
nextPart: e,
|
|
798
591
|
validators: t,
|
|
799
592
|
classGroupId: n
|
|
800
|
-
}),
|
|
801
|
-
let t =
|
|
593
|
+
}), Be = "-", Ve = [], He = "arbitrary..", Ue = (e) => {
|
|
594
|
+
let t = Ke(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
802
595
|
return {
|
|
803
596
|
getClassGroupId: (e) => {
|
|
804
|
-
if (e.startsWith("[") && e.endsWith("]")) return
|
|
805
|
-
let n = e.split(
|
|
806
|
-
return
|
|
597
|
+
if (e.startsWith("[") && e.endsWith("]")) return Ge(e);
|
|
598
|
+
let n = e.split(Be);
|
|
599
|
+
return We(n, +(n[0] === "" && n.length > 1), t);
|
|
807
600
|
},
|
|
808
601
|
getConflictingClassGroupIds: (e, t) => {
|
|
809
602
|
if (t) {
|
|
810
603
|
let t = r[e], i = n[e];
|
|
811
|
-
return t ? i ?
|
|
604
|
+
return t ? i ? Le(i, t) : t : i || Ve;
|
|
812
605
|
}
|
|
813
|
-
return n[e] ||
|
|
606
|
+
return n[e] || Ve;
|
|
814
607
|
}
|
|
815
608
|
};
|
|
816
|
-
},
|
|
609
|
+
}, We = (e, t, n) => {
|
|
817
610
|
if (e.length - t === 0) return n.classGroupId;
|
|
818
611
|
let r = e[t], i = n.nextPart.get(r);
|
|
819
612
|
if (i) {
|
|
820
|
-
let n =
|
|
613
|
+
let n = We(e, t + 1, i);
|
|
821
614
|
if (n) return n;
|
|
822
615
|
}
|
|
823
616
|
let a = n.validators;
|
|
824
617
|
if (a === null) return;
|
|
825
|
-
let o = t === 0 ? e.join(
|
|
618
|
+
let o = t === 0 ? e.join(Be) : e.slice(t).join(Be), s = a.length;
|
|
826
619
|
for (let e = 0; e < s; e++) {
|
|
827
620
|
let t = a[e];
|
|
828
621
|
if (t.validator(o)) return t.classGroupId;
|
|
829
622
|
}
|
|
830
|
-
},
|
|
623
|
+
}, Ge = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
831
624
|
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
832
|
-
return r ?
|
|
833
|
-
})(),
|
|
625
|
+
return r ? He + r : void 0;
|
|
626
|
+
})(), Ke = (e) => {
|
|
834
627
|
let { theme: t, classGroups: n } = e;
|
|
835
|
-
return
|
|
836
|
-
},
|
|
837
|
-
let n =
|
|
628
|
+
return qe(n, t);
|
|
629
|
+
}, qe = (e, t) => {
|
|
630
|
+
let n = ze();
|
|
838
631
|
for (let r in e) {
|
|
839
632
|
let i = e[r];
|
|
840
|
-
|
|
633
|
+
Je(i, n, r, t);
|
|
841
634
|
}
|
|
842
635
|
return n;
|
|
843
|
-
},
|
|
636
|
+
}, Je = (e, t, n, r) => {
|
|
844
637
|
let i = e.length;
|
|
845
638
|
for (let a = 0; a < i; a++) {
|
|
846
639
|
let i = e[a];
|
|
847
|
-
|
|
640
|
+
Ye(i, t, n, r);
|
|
848
641
|
}
|
|
849
|
-
},
|
|
642
|
+
}, Ye = (e, t, n, r) => {
|
|
850
643
|
if (typeof e == "string") {
|
|
851
|
-
|
|
644
|
+
Xe(e, t, n);
|
|
852
645
|
return;
|
|
853
646
|
}
|
|
854
647
|
if (typeof e == "function") {
|
|
855
|
-
|
|
648
|
+
Ze(e, t, n, r);
|
|
856
649
|
return;
|
|
857
650
|
}
|
|
858
|
-
|
|
859
|
-
},
|
|
860
|
-
let r = e === "" ? t :
|
|
651
|
+
Qe(e, t, n, r);
|
|
652
|
+
}, Xe = (e, t, n) => {
|
|
653
|
+
let r = e === "" ? t : $e(t, e);
|
|
861
654
|
r.classGroupId = n;
|
|
862
|
-
},
|
|
863
|
-
if (
|
|
864
|
-
|
|
655
|
+
}, Ze = (e, t, n, r) => {
|
|
656
|
+
if (et(e)) {
|
|
657
|
+
Je(e(r), t, n, r);
|
|
865
658
|
return;
|
|
866
659
|
}
|
|
867
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
868
|
-
},
|
|
660
|
+
t.validators === null && (t.validators = []), t.validators.push(Re(n, e));
|
|
661
|
+
}, Qe = (e, t, n, r) => {
|
|
869
662
|
let i = Object.entries(e), a = i.length;
|
|
870
663
|
for (let e = 0; e < a; e++) {
|
|
871
664
|
let [a, o] = i[e];
|
|
872
|
-
|
|
665
|
+
Je(o, $e(t, a), n, r);
|
|
873
666
|
}
|
|
874
|
-
},
|
|
875
|
-
let n = e, r = t.split(
|
|
667
|
+
}, $e = (e, t) => {
|
|
668
|
+
let n = e, r = t.split(Be), i = r.length;
|
|
876
669
|
for (let e = 0; e < i; e++) {
|
|
877
670
|
let t = r[e], i = n.nextPart.get(t);
|
|
878
|
-
i || (i =
|
|
671
|
+
i || (i = ze(), n.nextPart.set(t, i)), n = i;
|
|
879
672
|
}
|
|
880
673
|
return n;
|
|
881
|
-
},
|
|
674
|
+
}, et = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, tt = (e) => {
|
|
882
675
|
if (e < 1) return {
|
|
883
676
|
get: () => void 0,
|
|
884
677
|
set: () => {}
|
|
@@ -896,19 +689,19 @@ var Ve = (e, t) => {
|
|
|
896
689
|
e in n ? n[e] = t : i(e, t);
|
|
897
690
|
}
|
|
898
691
|
};
|
|
899
|
-
},
|
|
692
|
+
}, nt = "!", rt = ":", it = [], at = (e, t, n, r, i) => ({
|
|
900
693
|
modifiers: e,
|
|
901
694
|
hasImportantModifier: t,
|
|
902
695
|
baseClassName: n,
|
|
903
696
|
maybePostfixModifierPosition: r,
|
|
904
697
|
isExternal: i
|
|
905
|
-
}),
|
|
698
|
+
}), ot = (e) => {
|
|
906
699
|
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
907
700
|
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
908
701
|
for (let s = 0; s < o; s++) {
|
|
909
702
|
let o = e[s];
|
|
910
703
|
if (n === 0 && r === 0) {
|
|
911
|
-
if (o ===
|
|
704
|
+
if (o === rt) {
|
|
912
705
|
t.push(e.slice(i, s)), i = s + 1;
|
|
913
706
|
continue;
|
|
914
707
|
}
|
|
@@ -920,13 +713,13 @@ var Ve = (e, t) => {
|
|
|
920
713
|
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
921
714
|
}
|
|
922
715
|
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
923
|
-
s.endsWith(
|
|
716
|
+
s.endsWith(nt) ? (c = s.slice(0, -1), l = !0) : s.startsWith(nt) && (c = s.slice(1), l = !0);
|
|
924
717
|
let u = a && a > i ? a - i : void 0;
|
|
925
|
-
return
|
|
718
|
+
return at(t, l, c, u);
|
|
926
719
|
};
|
|
927
720
|
if (t) {
|
|
928
|
-
let e = t +
|
|
929
|
-
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) :
|
|
721
|
+
let e = t + rt, n = r;
|
|
722
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : at(it, !1, t, void 0, !0);
|
|
930
723
|
}
|
|
931
724
|
if (n) {
|
|
932
725
|
let e = r;
|
|
@@ -936,7 +729,7 @@ var Ve = (e, t) => {
|
|
|
936
729
|
});
|
|
937
730
|
}
|
|
938
731
|
return r;
|
|
939
|
-
},
|
|
732
|
+
}, st = (e) => {
|
|
940
733
|
let t = /* @__PURE__ */ new Map();
|
|
941
734
|
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
942
735
|
t.set(e, 1e6 + n);
|
|
@@ -948,18 +741,18 @@ var Ve = (e, t) => {
|
|
|
948
741
|
}
|
|
949
742
|
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
950
743
|
};
|
|
951
|
-
},
|
|
952
|
-
cache:
|
|
953
|
-
parseClassName:
|
|
954
|
-
sortModifiers:
|
|
955
|
-
postfixLookupClassGroupIds:
|
|
956
|
-
...
|
|
957
|
-
}),
|
|
744
|
+
}, ct = (e) => ({
|
|
745
|
+
cache: tt(e.cacheSize),
|
|
746
|
+
parseClassName: ot(e),
|
|
747
|
+
sortModifiers: st(e),
|
|
748
|
+
postfixLookupClassGroupIds: lt(e),
|
|
749
|
+
...Ue(e)
|
|
750
|
+
}), lt = (e) => {
|
|
958
751
|
let t = Object.create(null), n = e.postfixLookupClassGroups;
|
|
959
752
|
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
|
|
960
753
|
return t;
|
|
961
|
-
},
|
|
962
|
-
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(
|
|
754
|
+
}, ut = /\s+/, dt = (e, t) => {
|
|
755
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(ut), l = "";
|
|
963
756
|
for (let e = c.length - 1; e >= 0; --e) {
|
|
964
757
|
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
|
|
965
758
|
if (u) {
|
|
@@ -983,7 +776,7 @@ var Ve = (e, t) => {
|
|
|
983
776
|
}
|
|
984
777
|
h = !1;
|
|
985
778
|
}
|
|
986
|
-
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 ? _ + nt : _, y = v + g;
|
|
987
780
|
if (s.indexOf(y) > -1) continue;
|
|
988
781
|
s.push(y);
|
|
989
782
|
let b = i(g, h);
|
|
@@ -994,34 +787,34 @@ var Ve = (e, t) => {
|
|
|
994
787
|
l = t + (l.length > 0 ? " " + l : l);
|
|
995
788
|
}
|
|
996
789
|
return l;
|
|
997
|
-
},
|
|
790
|
+
}, ft = (...e) => {
|
|
998
791
|
let t = 0, n, r, i = "";
|
|
999
|
-
for (; t < e.length;) (n = e[t++]) && (r =
|
|
792
|
+
for (; t < e.length;) (n = e[t++]) && (r = pt(n)) && (i && (i += " "), i += r);
|
|
1000
793
|
return i;
|
|
1001
|
-
},
|
|
794
|
+
}, pt = (e) => {
|
|
1002
795
|
if (typeof e == "string") return e;
|
|
1003
796
|
let t, n = "";
|
|
1004
|
-
for (let r = 0; r < e.length; r++) e[r] && (t =
|
|
797
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = pt(e[r])) && (n && (n += " "), n += t);
|
|
1005
798
|
return n;
|
|
1006
|
-
},
|
|
1007
|
-
let n, r, i, a, o = (o) => (n =
|
|
799
|
+
}, mt = (e, ...t) => {
|
|
800
|
+
let n, r, i, a, o = (o) => (n = ct(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
1008
801
|
let t = r(e);
|
|
1009
802
|
if (t) return t;
|
|
1010
|
-
let a =
|
|
803
|
+
let a = dt(e, n);
|
|
1011
804
|
return i(e, a), a;
|
|
1012
805
|
};
|
|
1013
|
-
return a = o, (...e) => a(
|
|
1014
|
-
},
|
|
1015
|
-
let t = (t) => t[e] ||
|
|
806
|
+
return a = o, (...e) => a(ft(...e));
|
|
807
|
+
}, ht = [], R = (e) => {
|
|
808
|
+
let t = (t) => t[e] || ht;
|
|
1016
809
|
return t.isThemeGetter = !0, t;
|
|
1017
|
-
},
|
|
1018
|
-
let r =
|
|
810
|
+
}, gt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, _t = /^\((?:(\w[\w-]*):)?(.+)\)$/i, vt = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, yt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, bt = /\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$/, xt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, St = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ct = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, z = (e) => vt.test(e), B = (e) => !!e && !Number.isNaN(Number(e)), V = (e) => !!e && Number.isInteger(Number(e)), wt = (e) => e.endsWith("%") && B(e.slice(0, -1)), H = (e) => yt.test(e), Tt = () => !0, Et = (e) => bt.test(e) && !xt.test(e), Dt = () => !1, Ot = (e) => St.test(e), kt = (e) => Ct.test(e), At = (e) => !U(e) && !G(e), jt = (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)), Mt = (e) => K(e, Jt, Dt), U = (e) => gt.test(e), W = (e) => K(e, Yt, Et), Nt = (e) => K(e, Xt, B), Pt = (e) => K(e, Qt, Tt), Ft = (e) => K(e, Zt, Dt), It = (e) => K(e, Kt, Dt), Lt = (e) => K(e, qt, kt), Rt = (e) => K(e, $t, Ot), G = (e) => _t.test(e), zt = (e) => q(e, Yt), Bt = (e) => q(e, Zt), Vt = (e) => q(e, Kt), Ht = (e) => q(e, Jt), Ut = (e) => q(e, qt), Wt = (e) => q(e, $t, !0), Gt = (e) => q(e, Qt, !0), K = (e, t, n) => {
|
|
811
|
+
let r = gt.exec(e);
|
|
1019
812
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
1020
|
-
},
|
|
1021
|
-
let r =
|
|
813
|
+
}, q = (e, t, n = !1) => {
|
|
814
|
+
let r = _t.exec(e);
|
|
1022
815
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
1023
|
-
},
|
|
1024
|
-
let e =
|
|
816
|
+
}, Kt = (e) => e === "position" || e === "percentage", qt = (e) => e === "image" || e === "url", Jt = (e) => e === "length" || e === "size" || e === "bg-size", Yt = (e) => e === "length", Xt = (e) => e === "number", Zt = (e) => e === "family-name", Qt = (e) => e === "number" || e === "weight", $t = (e) => e === "shadow", en = /*#__PURE__*/ mt(() => {
|
|
817
|
+
let e = R("color"), t = R("font"), n = R("text"), r = R("font-weight"), i = R("tracking"), a = R("leading"), o = R("breakpoint"), s = R("container"), c = R("spacing"), l = R("radius"), u = R("shadow"), d = R("inset-shadow"), f = R("text-shadow"), p = R("drop-shadow"), m = R("blur"), h = R("perspective"), g = R("aspect"), _ = R("ease"), v = R("animate"), y = () => [
|
|
1025
818
|
"auto",
|
|
1026
819
|
"avoid",
|
|
1027
820
|
"all",
|
|
@@ -1046,8 +839,8 @@ var Ve = (e, t) => {
|
|
|
1046
839
|
"left-bottom"
|
|
1047
840
|
], x = () => [
|
|
1048
841
|
...b(),
|
|
1049
|
-
|
|
1050
|
-
|
|
842
|
+
G,
|
|
843
|
+
U
|
|
1051
844
|
], S = () => [
|
|
1052
845
|
"auto",
|
|
1053
846
|
"hidden",
|
|
@@ -1059,44 +852,44 @@ var Ve = (e, t) => {
|
|
|
1059
852
|
"contain",
|
|
1060
853
|
"none"
|
|
1061
854
|
], w = () => [
|
|
1062
|
-
|
|
1063
|
-
|
|
855
|
+
G,
|
|
856
|
+
U,
|
|
1064
857
|
c
|
|
1065
858
|
], T = () => [
|
|
1066
|
-
|
|
859
|
+
z,
|
|
1067
860
|
"full",
|
|
1068
861
|
"auto",
|
|
1069
862
|
...w()
|
|
1070
863
|
], E = () => [
|
|
1071
|
-
|
|
864
|
+
V,
|
|
1072
865
|
"none",
|
|
1073
866
|
"subgrid",
|
|
1074
|
-
|
|
1075
|
-
|
|
867
|
+
G,
|
|
868
|
+
U
|
|
1076
869
|
], D = () => [
|
|
1077
870
|
"auto",
|
|
1078
871
|
{ span: [
|
|
1079
872
|
"full",
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
873
|
+
V,
|
|
874
|
+
G,
|
|
875
|
+
U
|
|
1083
876
|
] },
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
], ee = () => [
|
|
1088
|
-
H,
|
|
1089
|
-
"auto",
|
|
1090
|
-
K,
|
|
1091
|
-
W
|
|
877
|
+
V,
|
|
878
|
+
G,
|
|
879
|
+
U
|
|
1092
880
|
], O = () => [
|
|
881
|
+
V,
|
|
882
|
+
"auto",
|
|
883
|
+
G,
|
|
884
|
+
U
|
|
885
|
+
], ee = () => [
|
|
1093
886
|
"auto",
|
|
1094
887
|
"min",
|
|
1095
888
|
"max",
|
|
1096
889
|
"fr",
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
],
|
|
890
|
+
G,
|
|
891
|
+
U
|
|
892
|
+
], te = () => [
|
|
1100
893
|
"start",
|
|
1101
894
|
"end",
|
|
1102
895
|
"center",
|
|
@@ -1107,15 +900,15 @@ var Ve = (e, t) => {
|
|
|
1107
900
|
"baseline",
|
|
1108
901
|
"center-safe",
|
|
1109
902
|
"end-safe"
|
|
1110
|
-
],
|
|
903
|
+
], k = () => [
|
|
1111
904
|
"start",
|
|
1112
905
|
"end",
|
|
1113
906
|
"center",
|
|
1114
907
|
"stretch",
|
|
1115
908
|
"center-safe",
|
|
1116
909
|
"end-safe"
|
|
1117
|
-
],
|
|
1118
|
-
|
|
910
|
+
], A = () => ["auto", ...w()], j = () => [
|
|
911
|
+
z,
|
|
1119
912
|
"auto",
|
|
1120
913
|
"full",
|
|
1121
914
|
"dvw",
|
|
@@ -1128,8 +921,8 @@ var Ve = (e, t) => {
|
|
|
1128
921
|
"max",
|
|
1129
922
|
"fit",
|
|
1130
923
|
...w()
|
|
1131
|
-
],
|
|
1132
|
-
|
|
924
|
+
], M = () => [
|
|
925
|
+
z,
|
|
1133
926
|
"screen",
|
|
1134
927
|
"full",
|
|
1135
928
|
"dvw",
|
|
@@ -1139,8 +932,8 @@ var Ve = (e, t) => {
|
|
|
1139
932
|
"max",
|
|
1140
933
|
"fit",
|
|
1141
934
|
...w()
|
|
1142
|
-
],
|
|
1143
|
-
|
|
935
|
+
], N = () => [
|
|
936
|
+
z,
|
|
1144
937
|
"screen",
|
|
1145
938
|
"full",
|
|
1146
939
|
"lh",
|
|
@@ -1151,50 +944,50 @@ var Ve = (e, t) => {
|
|
|
1151
944
|
"max",
|
|
1152
945
|
"fit",
|
|
1153
946
|
...w()
|
|
1154
|
-
], N = () => [
|
|
1155
|
-
e,
|
|
1156
|
-
K,
|
|
1157
|
-
W
|
|
1158
947
|
], P = () => [
|
|
948
|
+
e,
|
|
949
|
+
G,
|
|
950
|
+
U
|
|
951
|
+
], ne = () => [
|
|
1159
952
|
...b(),
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
{ position: [
|
|
953
|
+
Vt,
|
|
954
|
+
It,
|
|
955
|
+
{ position: [G, U] }
|
|
1163
956
|
], re = () => ["no-repeat", { repeat: [
|
|
1164
957
|
"",
|
|
1165
958
|
"x",
|
|
1166
959
|
"y",
|
|
1167
960
|
"space",
|
|
1168
961
|
"round"
|
|
1169
|
-
] }],
|
|
962
|
+
] }], ie = () => [
|
|
1170
963
|
"auto",
|
|
1171
964
|
"cover",
|
|
1172
965
|
"contain",
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
{ size: [
|
|
1176
|
-
],
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
],
|
|
966
|
+
Ht,
|
|
967
|
+
Mt,
|
|
968
|
+
{ size: [G, U] }
|
|
969
|
+
], ae = () => [
|
|
970
|
+
wt,
|
|
971
|
+
zt,
|
|
972
|
+
W
|
|
973
|
+
], F = () => [
|
|
1181
974
|
"",
|
|
1182
975
|
"none",
|
|
1183
976
|
"full",
|
|
1184
977
|
l,
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
],
|
|
978
|
+
G,
|
|
979
|
+
U
|
|
980
|
+
], I = () => [
|
|
1188
981
|
"",
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
],
|
|
982
|
+
B,
|
|
983
|
+
zt,
|
|
984
|
+
W
|
|
985
|
+
], oe = () => [
|
|
1193
986
|
"solid",
|
|
1194
987
|
"dashed",
|
|
1195
988
|
"dotted",
|
|
1196
989
|
"double"
|
|
1197
|
-
],
|
|
990
|
+
], se = () => [
|
|
1198
991
|
"normal",
|
|
1199
992
|
"multiply",
|
|
1200
993
|
"screen",
|
|
@@ -1211,33 +1004,33 @@ var Ve = (e, t) => {
|
|
|
1211
1004
|
"saturation",
|
|
1212
1005
|
"color",
|
|
1213
1006
|
"luminosity"
|
|
1214
|
-
],
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
],
|
|
1007
|
+
], L = () => [
|
|
1008
|
+
B,
|
|
1009
|
+
wt,
|
|
1010
|
+
Vt,
|
|
1011
|
+
It
|
|
1012
|
+
], ce = () => [
|
|
1220
1013
|
"",
|
|
1221
1014
|
"none",
|
|
1222
1015
|
m,
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
], ce = () => [
|
|
1226
|
-
"none",
|
|
1227
|
-
V,
|
|
1228
|
-
K,
|
|
1229
|
-
W
|
|
1016
|
+
G,
|
|
1017
|
+
U
|
|
1230
1018
|
], le = () => [
|
|
1231
1019
|
"none",
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1020
|
+
B,
|
|
1021
|
+
G,
|
|
1022
|
+
U
|
|
1235
1023
|
], ue = () => [
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1024
|
+
"none",
|
|
1025
|
+
B,
|
|
1026
|
+
G,
|
|
1027
|
+
U
|
|
1239
1028
|
], de = () => [
|
|
1240
1029
|
B,
|
|
1030
|
+
G,
|
|
1031
|
+
U
|
|
1032
|
+
], fe = () => [
|
|
1033
|
+
z,
|
|
1241
1034
|
"full",
|
|
1242
1035
|
...w()
|
|
1243
1036
|
];
|
|
@@ -1251,17 +1044,17 @@ var Ve = (e, t) => {
|
|
|
1251
1044
|
"bounce"
|
|
1252
1045
|
],
|
|
1253
1046
|
aspect: ["video"],
|
|
1254
|
-
blur: [
|
|
1255
|
-
breakpoint: [
|
|
1256
|
-
color: [
|
|
1257
|
-
container: [
|
|
1258
|
-
"drop-shadow": [
|
|
1047
|
+
blur: [H],
|
|
1048
|
+
breakpoint: [H],
|
|
1049
|
+
color: [Tt],
|
|
1050
|
+
container: [H],
|
|
1051
|
+
"drop-shadow": [H],
|
|
1259
1052
|
ease: [
|
|
1260
1053
|
"in",
|
|
1261
1054
|
"out",
|
|
1262
1055
|
"in-out"
|
|
1263
1056
|
],
|
|
1264
|
-
font: [
|
|
1057
|
+
font: [At],
|
|
1265
1058
|
"font-weight": [
|
|
1266
1059
|
"thin",
|
|
1267
1060
|
"extralight",
|
|
@@ -1273,7 +1066,7 @@ var Ve = (e, t) => {
|
|
|
1273
1066
|
"extrabold",
|
|
1274
1067
|
"black"
|
|
1275
1068
|
],
|
|
1276
|
-
"inset-shadow": [
|
|
1069
|
+
"inset-shadow": [H],
|
|
1277
1070
|
leading: [
|
|
1278
1071
|
"none",
|
|
1279
1072
|
"tight",
|
|
@@ -1290,11 +1083,11 @@ var Ve = (e, t) => {
|
|
|
1290
1083
|
"distant",
|
|
1291
1084
|
"none"
|
|
1292
1085
|
],
|
|
1293
|
-
radius: [
|
|
1294
|
-
shadow: [
|
|
1295
|
-
spacing: ["px",
|
|
1296
|
-
text: [
|
|
1297
|
-
"text-shadow": [
|
|
1086
|
+
radius: [H],
|
|
1087
|
+
shadow: [H],
|
|
1088
|
+
spacing: ["px", B],
|
|
1089
|
+
text: [H],
|
|
1090
|
+
"text-shadow": [H],
|
|
1298
1091
|
tracking: [
|
|
1299
1092
|
"tighter",
|
|
1300
1093
|
"tight",
|
|
@@ -1308,9 +1101,9 @@ var Ve = (e, t) => {
|
|
|
1308
1101
|
aspect: [{ aspect: [
|
|
1309
1102
|
"auto",
|
|
1310
1103
|
"square",
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1104
|
+
z,
|
|
1105
|
+
U,
|
|
1106
|
+
G,
|
|
1314
1107
|
g
|
|
1315
1108
|
] }],
|
|
1316
1109
|
container: ["container"],
|
|
@@ -1318,14 +1111,14 @@ var Ve = (e, t) => {
|
|
|
1318
1111
|
"",
|
|
1319
1112
|
"normal",
|
|
1320
1113
|
"size",
|
|
1321
|
-
|
|
1322
|
-
|
|
1114
|
+
G,
|
|
1115
|
+
U
|
|
1323
1116
|
] }],
|
|
1324
|
-
"container-named": [
|
|
1117
|
+
"container-named": [jt],
|
|
1325
1118
|
columns: [{ columns: [
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1119
|
+
B,
|
|
1120
|
+
U,
|
|
1121
|
+
G,
|
|
1329
1122
|
s
|
|
1330
1123
|
] }],
|
|
1331
1124
|
"break-after": [{ "break-after": y() }],
|
|
@@ -1422,13 +1215,13 @@ var Ve = (e, t) => {
|
|
|
1422
1215
|
"collapse"
|
|
1423
1216
|
],
|
|
1424
1217
|
z: [{ z: [
|
|
1425
|
-
|
|
1218
|
+
V,
|
|
1426
1219
|
"auto",
|
|
1427
|
-
|
|
1428
|
-
|
|
1220
|
+
G,
|
|
1221
|
+
U
|
|
1429
1222
|
] }],
|
|
1430
1223
|
basis: [{ basis: [
|
|
1431
|
-
|
|
1224
|
+
z,
|
|
1432
1225
|
"full",
|
|
1433
1226
|
"auto",
|
|
1434
1227
|
s,
|
|
@@ -1446,41 +1239,41 @@ var Ve = (e, t) => {
|
|
|
1446
1239
|
"wrap-reverse"
|
|
1447
1240
|
] }],
|
|
1448
1241
|
flex: [{ flex: [
|
|
1449
|
-
V,
|
|
1450
1242
|
B,
|
|
1243
|
+
z,
|
|
1451
1244
|
"auto",
|
|
1452
1245
|
"initial",
|
|
1453
1246
|
"none",
|
|
1454
|
-
|
|
1247
|
+
U
|
|
1455
1248
|
] }],
|
|
1456
1249
|
grow: [{ grow: [
|
|
1457
1250
|
"",
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1251
|
+
B,
|
|
1252
|
+
G,
|
|
1253
|
+
U
|
|
1461
1254
|
] }],
|
|
1462
1255
|
shrink: [{ shrink: [
|
|
1463
1256
|
"",
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1257
|
+
B,
|
|
1258
|
+
G,
|
|
1259
|
+
U
|
|
1467
1260
|
] }],
|
|
1468
1261
|
order: [{ order: [
|
|
1469
|
-
|
|
1262
|
+
V,
|
|
1470
1263
|
"first",
|
|
1471
1264
|
"last",
|
|
1472
1265
|
"none",
|
|
1473
|
-
|
|
1474
|
-
|
|
1266
|
+
G,
|
|
1267
|
+
U
|
|
1475
1268
|
] }],
|
|
1476
1269
|
"grid-cols": [{ "grid-cols": E() }],
|
|
1477
1270
|
"col-start-end": [{ col: D() }],
|
|
1478
|
-
"col-start": [{ "col-start":
|
|
1479
|
-
"col-end": [{ "col-end":
|
|
1271
|
+
"col-start": [{ "col-start": O() }],
|
|
1272
|
+
"col-end": [{ "col-end": O() }],
|
|
1480
1273
|
"grid-rows": [{ "grid-rows": E() }],
|
|
1481
1274
|
"row-start-end": [{ row: D() }],
|
|
1482
|
-
"row-start": [{ "row-start":
|
|
1483
|
-
"row-end": [{ "row-end":
|
|
1275
|
+
"row-start": [{ "row-start": O() }],
|
|
1276
|
+
"row-end": [{ "row-end": O() }],
|
|
1484
1277
|
"grid-flow": [{ "grid-flow": [
|
|
1485
1278
|
"row",
|
|
1486
1279
|
"col",
|
|
@@ -1488,24 +1281,24 @@ var Ve = (e, t) => {
|
|
|
1488
1281
|
"row-dense",
|
|
1489
1282
|
"col-dense"
|
|
1490
1283
|
] }],
|
|
1491
|
-
"auto-cols": [{ "auto-cols":
|
|
1492
|
-
"auto-rows": [{ "auto-rows":
|
|
1284
|
+
"auto-cols": [{ "auto-cols": ee() }],
|
|
1285
|
+
"auto-rows": [{ "auto-rows": ee() }],
|
|
1493
1286
|
gap: [{ gap: w() }],
|
|
1494
1287
|
"gap-x": [{ "gap-x": w() }],
|
|
1495
1288
|
"gap-y": [{ "gap-y": w() }],
|
|
1496
|
-
"justify-content": [{ justify: [...
|
|
1497
|
-
"justify-items": [{ "justify-items": [...
|
|
1498
|
-
"justify-self": [{ "justify-self": ["auto", ...
|
|
1499
|
-
"align-content": [{ content: ["normal", ...
|
|
1500
|
-
"align-items": [{ items: [...
|
|
1289
|
+
"justify-content": [{ justify: [...te(), "normal"] }],
|
|
1290
|
+
"justify-items": [{ "justify-items": [...k(), "normal"] }],
|
|
1291
|
+
"justify-self": [{ "justify-self": ["auto", ...k()] }],
|
|
1292
|
+
"align-content": [{ content: ["normal", ...te()] }],
|
|
1293
|
+
"align-items": [{ items: [...k(), { baseline: ["", "last"] }] }],
|
|
1501
1294
|
"align-self": [{ self: [
|
|
1502
1295
|
"auto",
|
|
1503
|
-
...
|
|
1296
|
+
...k(),
|
|
1504
1297
|
{ baseline: ["", "last"] }
|
|
1505
1298
|
] }],
|
|
1506
|
-
"place-content": [{ "place-content":
|
|
1507
|
-
"place-items": [{ "place-items": [...
|
|
1508
|
-
"place-self": [{ "place-self": ["auto", ...
|
|
1299
|
+
"place-content": [{ "place-content": te() }],
|
|
1300
|
+
"place-items": [{ "place-items": [...k(), "baseline"] }],
|
|
1301
|
+
"place-self": [{ "place-self": ["auto", ...k()] }],
|
|
1509
1302
|
p: [{ p: w() }],
|
|
1510
1303
|
px: [{ px: w() }],
|
|
1511
1304
|
py: [{ py: w() }],
|
|
@@ -1517,38 +1310,38 @@ var Ve = (e, t) => {
|
|
|
1517
1310
|
pr: [{ pr: w() }],
|
|
1518
1311
|
pb: [{ pb: w() }],
|
|
1519
1312
|
pl: [{ pl: w() }],
|
|
1520
|
-
m: [{ m:
|
|
1521
|
-
mx: [{ mx:
|
|
1522
|
-
my: [{ my:
|
|
1523
|
-
ms: [{ ms:
|
|
1524
|
-
me: [{ me:
|
|
1525
|
-
mbs: [{ mbs:
|
|
1526
|
-
mbe: [{ mbe:
|
|
1527
|
-
mt: [{ mt:
|
|
1528
|
-
mr: [{ mr:
|
|
1529
|
-
mb: [{ mb:
|
|
1530
|
-
ml: [{ ml:
|
|
1313
|
+
m: [{ m: A() }],
|
|
1314
|
+
mx: [{ mx: A() }],
|
|
1315
|
+
my: [{ my: A() }],
|
|
1316
|
+
ms: [{ ms: A() }],
|
|
1317
|
+
me: [{ me: A() }],
|
|
1318
|
+
mbs: [{ mbs: A() }],
|
|
1319
|
+
mbe: [{ mbe: A() }],
|
|
1320
|
+
mt: [{ mt: A() }],
|
|
1321
|
+
mr: [{ mr: A() }],
|
|
1322
|
+
mb: [{ mb: A() }],
|
|
1323
|
+
ml: [{ ml: A() }],
|
|
1531
1324
|
"space-x": [{ "space-x": w() }],
|
|
1532
1325
|
"space-x-reverse": ["space-x-reverse"],
|
|
1533
1326
|
"space-y": [{ "space-y": w() }],
|
|
1534
1327
|
"space-y-reverse": ["space-y-reverse"],
|
|
1535
|
-
size: [{ size:
|
|
1536
|
-
"inline-size": [{ inline: ["auto", ...
|
|
1537
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
1538
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
1539
|
-
"block-size": [{ block: ["auto", ...
|
|
1540
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
1541
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
1328
|
+
size: [{ size: j() }],
|
|
1329
|
+
"inline-size": [{ inline: ["auto", ...M()] }],
|
|
1330
|
+
"min-inline-size": [{ "min-inline": ["auto", ...M()] }],
|
|
1331
|
+
"max-inline-size": [{ "max-inline": ["none", ...M()] }],
|
|
1332
|
+
"block-size": [{ block: ["auto", ...N()] }],
|
|
1333
|
+
"min-block-size": [{ "min-block": ["auto", ...N()] }],
|
|
1334
|
+
"max-block-size": [{ "max-block": ["none", ...N()] }],
|
|
1542
1335
|
w: [{ w: [
|
|
1543
1336
|
s,
|
|
1544
1337
|
"screen",
|
|
1545
|
-
...
|
|
1338
|
+
...j()
|
|
1546
1339
|
] }],
|
|
1547
1340
|
"min-w": [{ "min-w": [
|
|
1548
1341
|
s,
|
|
1549
1342
|
"screen",
|
|
1550
1343
|
"none",
|
|
1551
|
-
...
|
|
1344
|
+
...j()
|
|
1552
1345
|
] }],
|
|
1553
1346
|
"max-w": [{ "max-w": [
|
|
1554
1347
|
s,
|
|
@@ -1556,36 +1349,36 @@ var Ve = (e, t) => {
|
|
|
1556
1349
|
"none",
|
|
1557
1350
|
"prose",
|
|
1558
1351
|
{ screen: [o] },
|
|
1559
|
-
...
|
|
1352
|
+
...j()
|
|
1560
1353
|
] }],
|
|
1561
1354
|
h: [{ h: [
|
|
1562
1355
|
"screen",
|
|
1563
1356
|
"lh",
|
|
1564
|
-
...
|
|
1357
|
+
...j()
|
|
1565
1358
|
] }],
|
|
1566
1359
|
"min-h": [{ "min-h": [
|
|
1567
1360
|
"screen",
|
|
1568
1361
|
"lh",
|
|
1569
1362
|
"none",
|
|
1570
|
-
...
|
|
1363
|
+
...j()
|
|
1571
1364
|
] }],
|
|
1572
1365
|
"max-h": [{ "max-h": [
|
|
1573
1366
|
"screen",
|
|
1574
1367
|
"lh",
|
|
1575
|
-
...
|
|
1368
|
+
...j()
|
|
1576
1369
|
] }],
|
|
1577
1370
|
"font-size": [{ text: [
|
|
1578
1371
|
"base",
|
|
1579
1372
|
n,
|
|
1580
|
-
|
|
1581
|
-
|
|
1373
|
+
zt,
|
|
1374
|
+
W
|
|
1582
1375
|
] }],
|
|
1583
1376
|
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1584
1377
|
"font-style": ["italic", "not-italic"],
|
|
1585
1378
|
"font-weight": [{ font: [
|
|
1586
1379
|
r,
|
|
1587
|
-
|
|
1588
|
-
|
|
1380
|
+
Gt,
|
|
1381
|
+
Pt
|
|
1589
1382
|
] }],
|
|
1590
1383
|
"font-stretch": [{ "font-stretch": [
|
|
1591
1384
|
"ultra-condensed",
|
|
@@ -1597,15 +1390,15 @@ var Ve = (e, t) => {
|
|
|
1597
1390
|
"expanded",
|
|
1598
1391
|
"extra-expanded",
|
|
1599
1392
|
"ultra-expanded",
|
|
1600
|
-
|
|
1601
|
-
|
|
1393
|
+
wt,
|
|
1394
|
+
U
|
|
1602
1395
|
] }],
|
|
1603
1396
|
"font-family": [{ font: [
|
|
1604
|
-
|
|
1605
|
-
|
|
1397
|
+
Bt,
|
|
1398
|
+
Ft,
|
|
1606
1399
|
t
|
|
1607
1400
|
] }],
|
|
1608
|
-
"font-features": [{ "font-features": [
|
|
1401
|
+
"font-features": [{ "font-features": [U] }],
|
|
1609
1402
|
"fvn-normal": ["normal-nums"],
|
|
1610
1403
|
"fvn-ordinal": ["ordinal"],
|
|
1611
1404
|
"fvn-slashed-zero": ["slashed-zero"],
|
|
@@ -1614,28 +1407,28 @@ var Ve = (e, t) => {
|
|
|
1614
1407
|
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
1615
1408
|
tracking: [{ tracking: [
|
|
1616
1409
|
i,
|
|
1617
|
-
|
|
1618
|
-
|
|
1410
|
+
G,
|
|
1411
|
+
U
|
|
1619
1412
|
] }],
|
|
1620
1413
|
"line-clamp": [{ "line-clamp": [
|
|
1621
|
-
|
|
1414
|
+
B,
|
|
1622
1415
|
"none",
|
|
1623
|
-
|
|
1624
|
-
|
|
1416
|
+
G,
|
|
1417
|
+
Nt
|
|
1625
1418
|
] }],
|
|
1626
1419
|
leading: [{ leading: [a, ...w()] }],
|
|
1627
1420
|
"list-image": [{ "list-image": [
|
|
1628
1421
|
"none",
|
|
1629
|
-
|
|
1630
|
-
|
|
1422
|
+
G,
|
|
1423
|
+
U
|
|
1631
1424
|
] }],
|
|
1632
1425
|
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
1633
1426
|
"list-style-type": [{ list: [
|
|
1634
1427
|
"disc",
|
|
1635
1428
|
"decimal",
|
|
1636
1429
|
"none",
|
|
1637
|
-
|
|
1638
|
-
|
|
1430
|
+
G,
|
|
1431
|
+
U
|
|
1639
1432
|
] }],
|
|
1640
1433
|
"text-alignment": [{ text: [
|
|
1641
1434
|
"left",
|
|
@@ -1645,28 +1438,28 @@ var Ve = (e, t) => {
|
|
|
1645
1438
|
"start",
|
|
1646
1439
|
"end"
|
|
1647
1440
|
] }],
|
|
1648
|
-
"placeholder-color": [{ placeholder:
|
|
1649
|
-
"text-color": [{ text:
|
|
1441
|
+
"placeholder-color": [{ placeholder: P() }],
|
|
1442
|
+
"text-color": [{ text: P() }],
|
|
1650
1443
|
"text-decoration": [
|
|
1651
1444
|
"underline",
|
|
1652
1445
|
"overline",
|
|
1653
1446
|
"line-through",
|
|
1654
1447
|
"no-underline"
|
|
1655
1448
|
],
|
|
1656
|
-
"text-decoration-style": [{ decoration: [...
|
|
1449
|
+
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
|
|
1657
1450
|
"text-decoration-thickness": [{ decoration: [
|
|
1658
|
-
|
|
1451
|
+
B,
|
|
1659
1452
|
"from-font",
|
|
1660
1453
|
"auto",
|
|
1661
|
-
|
|
1662
|
-
|
|
1454
|
+
G,
|
|
1455
|
+
W
|
|
1663
1456
|
] }],
|
|
1664
|
-
"text-decoration-color": [{ decoration:
|
|
1457
|
+
"text-decoration-color": [{ decoration: P() }],
|
|
1665
1458
|
"underline-offset": [{ "underline-offset": [
|
|
1666
|
-
|
|
1459
|
+
B,
|
|
1667
1460
|
"auto",
|
|
1668
|
-
|
|
1669
|
-
|
|
1461
|
+
G,
|
|
1462
|
+
U
|
|
1670
1463
|
] }],
|
|
1671
1464
|
"text-transform": [
|
|
1672
1465
|
"uppercase",
|
|
@@ -1687,9 +1480,9 @@ var Ve = (e, t) => {
|
|
|
1687
1480
|
] }],
|
|
1688
1481
|
indent: [{ indent: w() }],
|
|
1689
1482
|
"tab-size": [{ tab: [
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1483
|
+
V,
|
|
1484
|
+
G,
|
|
1485
|
+
U
|
|
1693
1486
|
] }],
|
|
1694
1487
|
"vertical-align": [{ align: [
|
|
1695
1488
|
"baseline",
|
|
@@ -1700,8 +1493,8 @@ var Ve = (e, t) => {
|
|
|
1700
1493
|
"text-bottom",
|
|
1701
1494
|
"sub",
|
|
1702
1495
|
"super",
|
|
1703
|
-
|
|
1704
|
-
|
|
1496
|
+
G,
|
|
1497
|
+
U
|
|
1705
1498
|
] }],
|
|
1706
1499
|
whitespace: [{ whitespace: [
|
|
1707
1500
|
"normal",
|
|
@@ -1729,8 +1522,8 @@ var Ve = (e, t) => {
|
|
|
1729
1522
|
] }],
|
|
1730
1523
|
content: [{ content: [
|
|
1731
1524
|
"none",
|
|
1732
|
-
|
|
1733
|
-
|
|
1525
|
+
G,
|
|
1526
|
+
U
|
|
1734
1527
|
] }],
|
|
1735
1528
|
"bg-attachment": [{ bg: [
|
|
1736
1529
|
"fixed",
|
|
@@ -1748,9 +1541,9 @@ var Ve = (e, t) => {
|
|
|
1748
1541
|
"padding",
|
|
1749
1542
|
"content"
|
|
1750
1543
|
] }],
|
|
1751
|
-
"bg-position": [{ bg:
|
|
1544
|
+
"bg-position": [{ bg: ne() }],
|
|
1752
1545
|
"bg-repeat": [{ bg: re() }],
|
|
1753
|
-
"bg-size": [{ bg:
|
|
1546
|
+
"bg-size": [{ bg: ie() }],
|
|
1754
1547
|
"bg-image": [{ bg: [
|
|
1755
1548
|
"none",
|
|
1756
1549
|
{
|
|
@@ -1765,140 +1558,140 @@ var Ve = (e, t) => {
|
|
|
1765
1558
|
"l",
|
|
1766
1559
|
"tl"
|
|
1767
1560
|
] },
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1561
|
+
V,
|
|
1562
|
+
G,
|
|
1563
|
+
U
|
|
1771
1564
|
],
|
|
1772
1565
|
radial: [
|
|
1773
1566
|
"",
|
|
1774
|
-
|
|
1775
|
-
|
|
1567
|
+
G,
|
|
1568
|
+
U
|
|
1776
1569
|
],
|
|
1777
1570
|
conic: [
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1571
|
+
V,
|
|
1572
|
+
G,
|
|
1573
|
+
U
|
|
1781
1574
|
]
|
|
1782
1575
|
},
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
] }],
|
|
1786
|
-
"bg-color": [{ bg:
|
|
1787
|
-
"gradient-from-pos": [{ from:
|
|
1788
|
-
"gradient-via-pos": [{ via:
|
|
1789
|
-
"gradient-to-pos": [{ to:
|
|
1790
|
-
"gradient-from": [{ from:
|
|
1791
|
-
"gradient-via": [{ via:
|
|
1792
|
-
"gradient-to": [{ to:
|
|
1793
|
-
rounded: [{ rounded:
|
|
1794
|
-
"rounded-s": [{ "rounded-s":
|
|
1795
|
-
"rounded-e": [{ "rounded-e":
|
|
1796
|
-
"rounded-t": [{ "rounded-t":
|
|
1797
|
-
"rounded-r": [{ "rounded-r":
|
|
1798
|
-
"rounded-b": [{ "rounded-b":
|
|
1799
|
-
"rounded-l": [{ "rounded-l":
|
|
1800
|
-
"rounded-ss": [{ "rounded-ss":
|
|
1801
|
-
"rounded-se": [{ "rounded-se":
|
|
1802
|
-
"rounded-ee": [{ "rounded-ee":
|
|
1803
|
-
"rounded-es": [{ "rounded-es":
|
|
1804
|
-
"rounded-tl": [{ "rounded-tl":
|
|
1805
|
-
"rounded-tr": [{ "rounded-tr":
|
|
1806
|
-
"rounded-br": [{ "rounded-br":
|
|
1807
|
-
"rounded-bl": [{ "rounded-bl":
|
|
1808
|
-
"border-w": [{ border:
|
|
1809
|
-
"border-w-x": [{ "border-x":
|
|
1810
|
-
"border-w-y": [{ "border-y":
|
|
1811
|
-
"border-w-s": [{ "border-s":
|
|
1812
|
-
"border-w-e": [{ "border-e":
|
|
1813
|
-
"border-w-bs": [{ "border-bs":
|
|
1814
|
-
"border-w-be": [{ "border-be":
|
|
1815
|
-
"border-w-t": [{ "border-t":
|
|
1816
|
-
"border-w-r": [{ "border-r":
|
|
1817
|
-
"border-w-b": [{ "border-b":
|
|
1818
|
-
"border-w-l": [{ "border-l":
|
|
1819
|
-
"divide-x": [{ "divide-x":
|
|
1576
|
+
Ut,
|
|
1577
|
+
Lt
|
|
1578
|
+
] }],
|
|
1579
|
+
"bg-color": [{ bg: P() }],
|
|
1580
|
+
"gradient-from-pos": [{ from: ae() }],
|
|
1581
|
+
"gradient-via-pos": [{ via: ae() }],
|
|
1582
|
+
"gradient-to-pos": [{ to: ae() }],
|
|
1583
|
+
"gradient-from": [{ from: P() }],
|
|
1584
|
+
"gradient-via": [{ via: P() }],
|
|
1585
|
+
"gradient-to": [{ to: P() }],
|
|
1586
|
+
rounded: [{ rounded: F() }],
|
|
1587
|
+
"rounded-s": [{ "rounded-s": F() }],
|
|
1588
|
+
"rounded-e": [{ "rounded-e": F() }],
|
|
1589
|
+
"rounded-t": [{ "rounded-t": F() }],
|
|
1590
|
+
"rounded-r": [{ "rounded-r": F() }],
|
|
1591
|
+
"rounded-b": [{ "rounded-b": F() }],
|
|
1592
|
+
"rounded-l": [{ "rounded-l": F() }],
|
|
1593
|
+
"rounded-ss": [{ "rounded-ss": F() }],
|
|
1594
|
+
"rounded-se": [{ "rounded-se": F() }],
|
|
1595
|
+
"rounded-ee": [{ "rounded-ee": F() }],
|
|
1596
|
+
"rounded-es": [{ "rounded-es": F() }],
|
|
1597
|
+
"rounded-tl": [{ "rounded-tl": F() }],
|
|
1598
|
+
"rounded-tr": [{ "rounded-tr": F() }],
|
|
1599
|
+
"rounded-br": [{ "rounded-br": F() }],
|
|
1600
|
+
"rounded-bl": [{ "rounded-bl": F() }],
|
|
1601
|
+
"border-w": [{ border: I() }],
|
|
1602
|
+
"border-w-x": [{ "border-x": I() }],
|
|
1603
|
+
"border-w-y": [{ "border-y": I() }],
|
|
1604
|
+
"border-w-s": [{ "border-s": I() }],
|
|
1605
|
+
"border-w-e": [{ "border-e": I() }],
|
|
1606
|
+
"border-w-bs": [{ "border-bs": I() }],
|
|
1607
|
+
"border-w-be": [{ "border-be": I() }],
|
|
1608
|
+
"border-w-t": [{ "border-t": I() }],
|
|
1609
|
+
"border-w-r": [{ "border-r": I() }],
|
|
1610
|
+
"border-w-b": [{ "border-b": I() }],
|
|
1611
|
+
"border-w-l": [{ "border-l": I() }],
|
|
1612
|
+
"divide-x": [{ "divide-x": I() }],
|
|
1820
1613
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
1821
|
-
"divide-y": [{ "divide-y":
|
|
1614
|
+
"divide-y": [{ "divide-y": I() }],
|
|
1822
1615
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
1823
1616
|
"border-style": [{ border: [
|
|
1824
|
-
...
|
|
1617
|
+
...oe(),
|
|
1825
1618
|
"hidden",
|
|
1826
1619
|
"none"
|
|
1827
1620
|
] }],
|
|
1828
1621
|
"divide-style": [{ divide: [
|
|
1829
|
-
...
|
|
1622
|
+
...oe(),
|
|
1830
1623
|
"hidden",
|
|
1831
1624
|
"none"
|
|
1832
1625
|
] }],
|
|
1833
|
-
"border-color": [{ border:
|
|
1834
|
-
"border-color-x": [{ "border-x":
|
|
1835
|
-
"border-color-y": [{ "border-y":
|
|
1836
|
-
"border-color-s": [{ "border-s":
|
|
1837
|
-
"border-color-e": [{ "border-e":
|
|
1838
|
-
"border-color-bs": [{ "border-bs":
|
|
1839
|
-
"border-color-be": [{ "border-be":
|
|
1840
|
-
"border-color-t": [{ "border-t":
|
|
1841
|
-
"border-color-r": [{ "border-r":
|
|
1842
|
-
"border-color-b": [{ "border-b":
|
|
1843
|
-
"border-color-l": [{ "border-l":
|
|
1844
|
-
"divide-color": [{ divide:
|
|
1626
|
+
"border-color": [{ border: P() }],
|
|
1627
|
+
"border-color-x": [{ "border-x": P() }],
|
|
1628
|
+
"border-color-y": [{ "border-y": P() }],
|
|
1629
|
+
"border-color-s": [{ "border-s": P() }],
|
|
1630
|
+
"border-color-e": [{ "border-e": P() }],
|
|
1631
|
+
"border-color-bs": [{ "border-bs": P() }],
|
|
1632
|
+
"border-color-be": [{ "border-be": P() }],
|
|
1633
|
+
"border-color-t": [{ "border-t": P() }],
|
|
1634
|
+
"border-color-r": [{ "border-r": P() }],
|
|
1635
|
+
"border-color-b": [{ "border-b": P() }],
|
|
1636
|
+
"border-color-l": [{ "border-l": P() }],
|
|
1637
|
+
"divide-color": [{ divide: P() }],
|
|
1845
1638
|
"outline-style": [{ outline: [
|
|
1846
|
-
...
|
|
1639
|
+
...oe(),
|
|
1847
1640
|
"none",
|
|
1848
1641
|
"hidden"
|
|
1849
1642
|
] }],
|
|
1850
1643
|
"outline-offset": [{ "outline-offset": [
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1644
|
+
B,
|
|
1645
|
+
G,
|
|
1646
|
+
U
|
|
1854
1647
|
] }],
|
|
1855
1648
|
"outline-w": [{ outline: [
|
|
1856
1649
|
"",
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1650
|
+
B,
|
|
1651
|
+
zt,
|
|
1652
|
+
W
|
|
1860
1653
|
] }],
|
|
1861
|
-
"outline-color": [{ outline:
|
|
1654
|
+
"outline-color": [{ outline: P() }],
|
|
1862
1655
|
shadow: [{ shadow: [
|
|
1863
1656
|
"",
|
|
1864
1657
|
"none",
|
|
1865
1658
|
u,
|
|
1866
|
-
|
|
1867
|
-
|
|
1659
|
+
Wt,
|
|
1660
|
+
Rt
|
|
1868
1661
|
] }],
|
|
1869
|
-
"shadow-color": [{ shadow:
|
|
1662
|
+
"shadow-color": [{ shadow: P() }],
|
|
1870
1663
|
"inset-shadow": [{ "inset-shadow": [
|
|
1871
1664
|
"none",
|
|
1872
1665
|
d,
|
|
1873
|
-
|
|
1874
|
-
|
|
1666
|
+
Wt,
|
|
1667
|
+
Rt
|
|
1875
1668
|
] }],
|
|
1876
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
1877
|
-
"ring-w": [{ ring:
|
|
1669
|
+
"inset-shadow-color": [{ "inset-shadow": P() }],
|
|
1670
|
+
"ring-w": [{ ring: I() }],
|
|
1878
1671
|
"ring-w-inset": ["ring-inset"],
|
|
1879
|
-
"ring-color": [{ ring:
|
|
1880
|
-
"ring-offset-w": [{ "ring-offset": [
|
|
1881
|
-
"ring-offset-color": [{ "ring-offset":
|
|
1882
|
-
"inset-ring-w": [{ "inset-ring":
|
|
1883
|
-
"inset-ring-color": [{ "inset-ring":
|
|
1672
|
+
"ring-color": [{ ring: P() }],
|
|
1673
|
+
"ring-offset-w": [{ "ring-offset": [B, W] }],
|
|
1674
|
+
"ring-offset-color": [{ "ring-offset": P() }],
|
|
1675
|
+
"inset-ring-w": [{ "inset-ring": I() }],
|
|
1676
|
+
"inset-ring-color": [{ "inset-ring": P() }],
|
|
1884
1677
|
"text-shadow": [{ "text-shadow": [
|
|
1885
1678
|
"none",
|
|
1886
1679
|
f,
|
|
1887
|
-
|
|
1888
|
-
|
|
1680
|
+
Wt,
|
|
1681
|
+
Rt
|
|
1889
1682
|
] }],
|
|
1890
|
-
"text-shadow-color": [{ "text-shadow":
|
|
1683
|
+
"text-shadow-color": [{ "text-shadow": P() }],
|
|
1891
1684
|
opacity: [{ opacity: [
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1685
|
+
B,
|
|
1686
|
+
G,
|
|
1687
|
+
U
|
|
1895
1688
|
] }],
|
|
1896
1689
|
"mix-blend": [{ "mix-blend": [
|
|
1897
|
-
...
|
|
1690
|
+
...se(),
|
|
1898
1691
|
"plus-darker",
|
|
1899
1692
|
"plus-lighter"
|
|
1900
1693
|
] }],
|
|
1901
|
-
"bg-blend": [{ "bg-blend":
|
|
1694
|
+
"bg-blend": [{ "bg-blend": se() }],
|
|
1902
1695
|
"mask-clip": [{ "mask-clip": [
|
|
1903
1696
|
"border",
|
|
1904
1697
|
"padding",
|
|
@@ -1913,51 +1706,51 @@ var Ve = (e, t) => {
|
|
|
1913
1706
|
"intersect",
|
|
1914
1707
|
"exclude"
|
|
1915
1708
|
] }],
|
|
1916
|
-
"mask-image-linear-pos": [{ "mask-linear": [
|
|
1917
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
1918
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
1919
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
1920
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
1921
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
1922
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
1923
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
1924
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
1925
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
1926
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
1927
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
1928
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
1929
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
1930
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
1931
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
1932
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
1933
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
1934
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
1935
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
1936
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
1937
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
1938
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
1939
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
1940
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
1941
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
1942
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
1943
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
1944
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
1945
|
-
"mask-image-radial": [{ "mask-radial": [
|
|
1946
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
1947
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
1948
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
1949
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
1709
|
+
"mask-image-linear-pos": [{ "mask-linear": [B] }],
|
|
1710
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": L() }],
|
|
1711
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": L() }],
|
|
1712
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
|
|
1713
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": P() }],
|
|
1714
|
+
"mask-image-t-from-pos": [{ "mask-t-from": L() }],
|
|
1715
|
+
"mask-image-t-to-pos": [{ "mask-t-to": L() }],
|
|
1716
|
+
"mask-image-t-from-color": [{ "mask-t-from": P() }],
|
|
1717
|
+
"mask-image-t-to-color": [{ "mask-t-to": P() }],
|
|
1718
|
+
"mask-image-r-from-pos": [{ "mask-r-from": L() }],
|
|
1719
|
+
"mask-image-r-to-pos": [{ "mask-r-to": L() }],
|
|
1720
|
+
"mask-image-r-from-color": [{ "mask-r-from": P() }],
|
|
1721
|
+
"mask-image-r-to-color": [{ "mask-r-to": P() }],
|
|
1722
|
+
"mask-image-b-from-pos": [{ "mask-b-from": L() }],
|
|
1723
|
+
"mask-image-b-to-pos": [{ "mask-b-to": L() }],
|
|
1724
|
+
"mask-image-b-from-color": [{ "mask-b-from": P() }],
|
|
1725
|
+
"mask-image-b-to-color": [{ "mask-b-to": P() }],
|
|
1726
|
+
"mask-image-l-from-pos": [{ "mask-l-from": L() }],
|
|
1727
|
+
"mask-image-l-to-pos": [{ "mask-l-to": L() }],
|
|
1728
|
+
"mask-image-l-from-color": [{ "mask-l-from": P() }],
|
|
1729
|
+
"mask-image-l-to-color": [{ "mask-l-to": P() }],
|
|
1730
|
+
"mask-image-x-from-pos": [{ "mask-x-from": L() }],
|
|
1731
|
+
"mask-image-x-to-pos": [{ "mask-x-to": L() }],
|
|
1732
|
+
"mask-image-x-from-color": [{ "mask-x-from": P() }],
|
|
1733
|
+
"mask-image-x-to-color": [{ "mask-x-to": P() }],
|
|
1734
|
+
"mask-image-y-from-pos": [{ "mask-y-from": L() }],
|
|
1735
|
+
"mask-image-y-to-pos": [{ "mask-y-to": L() }],
|
|
1736
|
+
"mask-image-y-from-color": [{ "mask-y-from": P() }],
|
|
1737
|
+
"mask-image-y-to-color": [{ "mask-y-to": P() }],
|
|
1738
|
+
"mask-image-radial": [{ "mask-radial": [G, U] }],
|
|
1739
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": L() }],
|
|
1740
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": L() }],
|
|
1741
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": P() }],
|
|
1742
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": P() }],
|
|
1950
1743
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
1951
1744
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
1952
1745
|
closest: ["side", "corner"],
|
|
1953
1746
|
farthest: ["side", "corner"]
|
|
1954
1747
|
}] }],
|
|
1955
1748
|
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
1956
|
-
"mask-image-conic-pos": [{ "mask-conic": [
|
|
1957
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
1958
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
1959
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
1960
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
1749
|
+
"mask-image-conic-pos": [{ "mask-conic": [B] }],
|
|
1750
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": L() }],
|
|
1751
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": L() }],
|
|
1752
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
|
|
1753
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": P() }],
|
|
1961
1754
|
"mask-mode": [{ mask: [
|
|
1962
1755
|
"alpha",
|
|
1963
1756
|
"luminance",
|
|
@@ -1971,117 +1764,117 @@ var Ve = (e, t) => {
|
|
|
1971
1764
|
"stroke",
|
|
1972
1765
|
"view"
|
|
1973
1766
|
] }],
|
|
1974
|
-
"mask-position": [{ mask:
|
|
1767
|
+
"mask-position": [{ mask: ne() }],
|
|
1975
1768
|
"mask-repeat": [{ mask: re() }],
|
|
1976
|
-
"mask-size": [{ mask:
|
|
1769
|
+
"mask-size": [{ mask: ie() }],
|
|
1977
1770
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1978
1771
|
"mask-image": [{ mask: [
|
|
1979
1772
|
"none",
|
|
1980
|
-
|
|
1981
|
-
|
|
1773
|
+
G,
|
|
1774
|
+
U
|
|
1982
1775
|
] }],
|
|
1983
1776
|
filter: [{ filter: [
|
|
1984
1777
|
"",
|
|
1985
1778
|
"none",
|
|
1986
|
-
|
|
1987
|
-
|
|
1779
|
+
G,
|
|
1780
|
+
U
|
|
1988
1781
|
] }],
|
|
1989
|
-
blur: [{ blur:
|
|
1782
|
+
blur: [{ blur: ce() }],
|
|
1990
1783
|
brightness: [{ brightness: [
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1784
|
+
B,
|
|
1785
|
+
G,
|
|
1786
|
+
U
|
|
1994
1787
|
] }],
|
|
1995
1788
|
contrast: [{ contrast: [
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1789
|
+
B,
|
|
1790
|
+
G,
|
|
1791
|
+
U
|
|
1999
1792
|
] }],
|
|
2000
1793
|
"drop-shadow": [{ "drop-shadow": [
|
|
2001
1794
|
"",
|
|
2002
1795
|
"none",
|
|
2003
1796
|
p,
|
|
2004
|
-
|
|
2005
|
-
|
|
1797
|
+
Wt,
|
|
1798
|
+
Rt
|
|
2006
1799
|
] }],
|
|
2007
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
1800
|
+
"drop-shadow-color": [{ "drop-shadow": P() }],
|
|
2008
1801
|
grayscale: [{ grayscale: [
|
|
2009
1802
|
"",
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
1803
|
+
B,
|
|
1804
|
+
G,
|
|
1805
|
+
U
|
|
2013
1806
|
] }],
|
|
2014
1807
|
"hue-rotate": [{ "hue-rotate": [
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
1808
|
+
B,
|
|
1809
|
+
G,
|
|
1810
|
+
U
|
|
2018
1811
|
] }],
|
|
2019
1812
|
invert: [{ invert: [
|
|
2020
1813
|
"",
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
1814
|
+
B,
|
|
1815
|
+
G,
|
|
1816
|
+
U
|
|
2024
1817
|
] }],
|
|
2025
1818
|
saturate: [{ saturate: [
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
1819
|
+
B,
|
|
1820
|
+
G,
|
|
1821
|
+
U
|
|
2029
1822
|
] }],
|
|
2030
1823
|
sepia: [{ sepia: [
|
|
2031
1824
|
"",
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
1825
|
+
B,
|
|
1826
|
+
G,
|
|
1827
|
+
U
|
|
2035
1828
|
] }],
|
|
2036
1829
|
"backdrop-filter": [{ "backdrop-filter": [
|
|
2037
1830
|
"",
|
|
2038
1831
|
"none",
|
|
2039
|
-
|
|
2040
|
-
|
|
1832
|
+
G,
|
|
1833
|
+
U
|
|
2041
1834
|
] }],
|
|
2042
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
1835
|
+
"backdrop-blur": [{ "backdrop-blur": ce() }],
|
|
2043
1836
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
1837
|
+
B,
|
|
1838
|
+
G,
|
|
1839
|
+
U
|
|
2047
1840
|
] }],
|
|
2048
1841
|
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
1842
|
+
B,
|
|
1843
|
+
G,
|
|
1844
|
+
U
|
|
2052
1845
|
] }],
|
|
2053
1846
|
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
2054
1847
|
"",
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
1848
|
+
B,
|
|
1849
|
+
G,
|
|
1850
|
+
U
|
|
2058
1851
|
] }],
|
|
2059
1852
|
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
1853
|
+
B,
|
|
1854
|
+
G,
|
|
1855
|
+
U
|
|
2063
1856
|
] }],
|
|
2064
1857
|
"backdrop-invert": [{ "backdrop-invert": [
|
|
2065
1858
|
"",
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
1859
|
+
B,
|
|
1860
|
+
G,
|
|
1861
|
+
U
|
|
2069
1862
|
] }],
|
|
2070
1863
|
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
1864
|
+
B,
|
|
1865
|
+
G,
|
|
1866
|
+
U
|
|
2074
1867
|
] }],
|
|
2075
1868
|
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
1869
|
+
B,
|
|
1870
|
+
G,
|
|
1871
|
+
U
|
|
2079
1872
|
] }],
|
|
2080
1873
|
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
2081
1874
|
"",
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
1875
|
+
B,
|
|
1876
|
+
G,
|
|
1877
|
+
U
|
|
2085
1878
|
] }],
|
|
2086
1879
|
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
2087
1880
|
"border-spacing": [{ "border-spacing": w() }],
|
|
@@ -2097,56 +1890,56 @@ var Ve = (e, t) => {
|
|
|
2097
1890
|
"shadow",
|
|
2098
1891
|
"transform",
|
|
2099
1892
|
"none",
|
|
2100
|
-
|
|
2101
|
-
|
|
1893
|
+
G,
|
|
1894
|
+
U
|
|
2102
1895
|
] }],
|
|
2103
1896
|
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
2104
1897
|
duration: [{ duration: [
|
|
2105
|
-
|
|
1898
|
+
B,
|
|
2106
1899
|
"initial",
|
|
2107
|
-
|
|
2108
|
-
|
|
1900
|
+
G,
|
|
1901
|
+
U
|
|
2109
1902
|
] }],
|
|
2110
1903
|
ease: [{ ease: [
|
|
2111
1904
|
"linear",
|
|
2112
1905
|
"initial",
|
|
2113
1906
|
_,
|
|
2114
|
-
|
|
2115
|
-
|
|
1907
|
+
G,
|
|
1908
|
+
U
|
|
2116
1909
|
] }],
|
|
2117
1910
|
delay: [{ delay: [
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
1911
|
+
B,
|
|
1912
|
+
G,
|
|
1913
|
+
U
|
|
2121
1914
|
] }],
|
|
2122
1915
|
animate: [{ animate: [
|
|
2123
1916
|
"none",
|
|
2124
1917
|
v,
|
|
2125
|
-
|
|
2126
|
-
|
|
1918
|
+
G,
|
|
1919
|
+
U
|
|
2127
1920
|
] }],
|
|
2128
1921
|
backface: [{ backface: ["hidden", "visible"] }],
|
|
2129
1922
|
perspective: [{ perspective: [
|
|
2130
1923
|
h,
|
|
2131
|
-
|
|
2132
|
-
|
|
1924
|
+
G,
|
|
1925
|
+
U
|
|
2133
1926
|
] }],
|
|
2134
1927
|
"perspective-origin": [{ "perspective-origin": x() }],
|
|
2135
|
-
rotate: [{ rotate:
|
|
2136
|
-
"rotate-x": [{ "rotate-x":
|
|
2137
|
-
"rotate-y": [{ "rotate-y":
|
|
2138
|
-
"rotate-z": [{ "rotate-z":
|
|
2139
|
-
scale: [{ scale:
|
|
2140
|
-
"scale-x": [{ "scale-x":
|
|
2141
|
-
"scale-y": [{ "scale-y":
|
|
2142
|
-
"scale-z": [{ "scale-z":
|
|
1928
|
+
rotate: [{ rotate: le() }],
|
|
1929
|
+
"rotate-x": [{ "rotate-x": le() }],
|
|
1930
|
+
"rotate-y": [{ "rotate-y": le() }],
|
|
1931
|
+
"rotate-z": [{ "rotate-z": le() }],
|
|
1932
|
+
scale: [{ scale: ue() }],
|
|
1933
|
+
"scale-x": [{ "scale-x": ue() }],
|
|
1934
|
+
"scale-y": [{ "scale-y": ue() }],
|
|
1935
|
+
"scale-z": [{ "scale-z": ue() }],
|
|
2143
1936
|
"scale-3d": ["scale-3d"],
|
|
2144
|
-
skew: [{ skew:
|
|
2145
|
-
"skew-x": [{ "skew-x":
|
|
2146
|
-
"skew-y": [{ "skew-y":
|
|
1937
|
+
skew: [{ skew: de() }],
|
|
1938
|
+
"skew-x": [{ "skew-x": de() }],
|
|
1939
|
+
"skew-y": [{ "skew-y": de() }],
|
|
2147
1940
|
transform: [{ transform: [
|
|
2148
|
-
|
|
2149
|
-
|
|
1941
|
+
G,
|
|
1942
|
+
U,
|
|
2150
1943
|
"",
|
|
2151
1944
|
"none",
|
|
2152
1945
|
"gpu",
|
|
@@ -2154,19 +1947,19 @@ var Ve = (e, t) => {
|
|
|
2154
1947
|
] }],
|
|
2155
1948
|
"transform-origin": [{ origin: x() }],
|
|
2156
1949
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
2157
|
-
translate: [{ translate:
|
|
2158
|
-
"translate-x": [{ "translate-x":
|
|
2159
|
-
"translate-y": [{ "translate-y":
|
|
2160
|
-
"translate-z": [{ "translate-z":
|
|
1950
|
+
translate: [{ translate: fe() }],
|
|
1951
|
+
"translate-x": [{ "translate-x": fe() }],
|
|
1952
|
+
"translate-y": [{ "translate-y": fe() }],
|
|
1953
|
+
"translate-z": [{ "translate-z": fe() }],
|
|
2161
1954
|
"translate-none": ["translate-none"],
|
|
2162
1955
|
zoom: [{ zoom: [
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
1956
|
+
V,
|
|
1957
|
+
G,
|
|
1958
|
+
U
|
|
2166
1959
|
] }],
|
|
2167
|
-
accent: [{ accent:
|
|
1960
|
+
accent: [{ accent: P() }],
|
|
2168
1961
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
2169
|
-
"caret-color": [{ caret:
|
|
1962
|
+
"caret-color": [{ caret: P() }],
|
|
2170
1963
|
"color-scheme": [{ scheme: [
|
|
2171
1964
|
"normal",
|
|
2172
1965
|
"dark",
|
|
@@ -2212,8 +2005,8 @@ var Ve = (e, t) => {
|
|
|
2212
2005
|
"nwse-resize",
|
|
2213
2006
|
"zoom-in",
|
|
2214
2007
|
"zoom-out",
|
|
2215
|
-
|
|
2216
|
-
|
|
2008
|
+
G,
|
|
2009
|
+
U
|
|
2217
2010
|
] }],
|
|
2218
2011
|
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
2219
2012
|
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
@@ -2224,8 +2017,8 @@ var Ve = (e, t) => {
|
|
|
2224
2017
|
"x"
|
|
2225
2018
|
] }],
|
|
2226
2019
|
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
2227
|
-
"scrollbar-thumb-color": [{ "scrollbar-thumb":
|
|
2228
|
-
"scrollbar-track-color": [{ "scrollbar-track":
|
|
2020
|
+
"scrollbar-thumb-color": [{ "scrollbar-thumb": P() }],
|
|
2021
|
+
"scrollbar-track-color": [{ "scrollbar-track": P() }],
|
|
2229
2022
|
"scrollbar-gutter": [{ "scrollbar-gutter": [
|
|
2230
2023
|
"auto",
|
|
2231
2024
|
"stable",
|
|
@@ -2299,17 +2092,17 @@ var Ve = (e, t) => {
|
|
|
2299
2092
|
"scroll",
|
|
2300
2093
|
"contents",
|
|
2301
2094
|
"transform",
|
|
2302
|
-
|
|
2303
|
-
|
|
2095
|
+
G,
|
|
2096
|
+
U
|
|
2304
2097
|
] }],
|
|
2305
|
-
fill: [{ fill: ["none", ...
|
|
2098
|
+
fill: [{ fill: ["none", ...P()] }],
|
|
2306
2099
|
"stroke-w": [{ stroke: [
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2100
|
+
B,
|
|
2101
|
+
zt,
|
|
2102
|
+
W,
|
|
2103
|
+
Nt
|
|
2311
2104
|
] }],
|
|
2312
|
-
stroke: [{ stroke: ["none", ...
|
|
2105
|
+
stroke: [{ stroke: ["none", ...P()] }],
|
|
2313
2106
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
2314
2107
|
},
|
|
2315
2108
|
conflictingClassGroups: {
|
|
@@ -2498,70 +2291,70 @@ var Ve = (e, t) => {
|
|
|
2498
2291
|
});
|
|
2499
2292
|
//#endregion
|
|
2500
2293
|
//#region src/utils/cn.ts
|
|
2501
|
-
function
|
|
2502
|
-
return
|
|
2294
|
+
function J(...e) {
|
|
2295
|
+
return en(Ie(e));
|
|
2503
2296
|
}
|
|
2504
2297
|
//#endregion
|
|
2505
2298
|
//#region src/ui/components/Tabs.tsx
|
|
2506
|
-
var
|
|
2507
|
-
ref:
|
|
2508
|
-
className:
|
|
2509
|
-
...
|
|
2299
|
+
var tn = Te, nn = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Oe, {
|
|
2300
|
+
ref: r,
|
|
2301
|
+
className: J("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", t),
|
|
2302
|
+
...n
|
|
2510
2303
|
}));
|
|
2511
|
-
|
|
2512
|
-
var
|
|
2513
|
-
ref:
|
|
2514
|
-
className:
|
|
2515
|
-
...
|
|
2304
|
+
nn.displayName = Oe.displayName;
|
|
2305
|
+
var rn = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Pe, {
|
|
2306
|
+
ref: r,
|
|
2307
|
+
className: J("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
|
+
...n
|
|
2516
2309
|
}));
|
|
2517
|
-
|
|
2518
|
-
var
|
|
2519
|
-
ref:
|
|
2520
|
-
className:
|
|
2521
|
-
...
|
|
2310
|
+
rn.displayName = Pe.displayName;
|
|
2311
|
+
var an = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Ae, {
|
|
2312
|
+
ref: r,
|
|
2313
|
+
className: J("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", t),
|
|
2314
|
+
...n
|
|
2522
2315
|
}));
|
|
2523
|
-
|
|
2316
|
+
an.displayName = Ae.displayName;
|
|
2524
2317
|
//#endregion
|
|
2525
2318
|
//#region ../../node_modules/@huin-core/react-portal/dist/index.mjs
|
|
2526
|
-
var
|
|
2319
|
+
var on = "Portal", sn = e.forwardRef((t, n) => {
|
|
2527
2320
|
let { container: r, ...i } = t, [a, s] = e.useState(!1);
|
|
2528
|
-
|
|
2321
|
+
x(() => s(!0), []);
|
|
2529
2322
|
let c = r || a && globalThis?.document?.body;
|
|
2530
|
-
return c ? o.createPortal(/* @__PURE__ */
|
|
2323
|
+
return c ? o.createPortal(/* @__PURE__ */ e.createElement(T.div, {
|
|
2531
2324
|
...i,
|
|
2532
2325
|
ref: n
|
|
2533
2326
|
}), c) : null;
|
|
2534
2327
|
});
|
|
2535
|
-
|
|
2328
|
+
sn.displayName = on;
|
|
2536
2329
|
//#endregion
|
|
2537
2330
|
//#region ../../node_modules/tslib/tslib.es6.mjs
|
|
2538
|
-
var
|
|
2539
|
-
return
|
|
2331
|
+
var Y = function() {
|
|
2332
|
+
return Y = Object.assign || function(e) {
|
|
2540
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]);
|
|
2541
2334
|
return e;
|
|
2542
|
-
},
|
|
2335
|
+
}, Y.apply(this, arguments);
|
|
2543
2336
|
};
|
|
2544
|
-
function
|
|
2337
|
+
function cn(e, t) {
|
|
2545
2338
|
var n = {};
|
|
2546
2339
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2547
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]]);
|
|
2548
2341
|
return n;
|
|
2549
2342
|
}
|
|
2550
|
-
function
|
|
2343
|
+
function ln(e, t, n) {
|
|
2551
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]);
|
|
2552
2345
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
2553
2346
|
}
|
|
2554
2347
|
//#endregion
|
|
2555
2348
|
//#region ../../node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
2556
|
-
var
|
|
2349
|
+
var un = "right-scroll-bar-position", dn = "width-before-scroll-bar", fn = "with-scroll-bars-hidden", pn = "--removed-body-scroll-bar-size";
|
|
2557
2350
|
//#endregion
|
|
2558
2351
|
//#region ../../node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
2559
|
-
function
|
|
2352
|
+
function mn(e, t) {
|
|
2560
2353
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2561
2354
|
}
|
|
2562
2355
|
//#endregion
|
|
2563
2356
|
//#region ../../node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
2564
|
-
function
|
|
2357
|
+
function hn(e, t) {
|
|
2565
2358
|
var n = i(function() {
|
|
2566
2359
|
return {
|
|
2567
2360
|
value: e,
|
|
@@ -2581,33 +2374,33 @@ function yn(e, t) {
|
|
|
2581
2374
|
}
|
|
2582
2375
|
//#endregion
|
|
2583
2376
|
//#region ../../node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
2584
|
-
var
|
|
2585
|
-
function
|
|
2586
|
-
var n =
|
|
2377
|
+
var gn = typeof window < "u" ? e.useLayoutEffect : e.useEffect, _n = /* @__PURE__ */ new WeakMap();
|
|
2378
|
+
function vn(e, t) {
|
|
2379
|
+
var n = hn(t || null, function(t) {
|
|
2587
2380
|
return e.forEach(function(e) {
|
|
2588
|
-
return
|
|
2381
|
+
return mn(e, t);
|
|
2589
2382
|
});
|
|
2590
2383
|
});
|
|
2591
|
-
return
|
|
2592
|
-
var t =
|
|
2384
|
+
return gn(function() {
|
|
2385
|
+
var t = _n.get(n);
|
|
2593
2386
|
if (t) {
|
|
2594
2387
|
var r = new Set(t), i = new Set(e), a = n.current;
|
|
2595
2388
|
r.forEach(function(e) {
|
|
2596
|
-
i.has(e) ||
|
|
2389
|
+
i.has(e) || mn(e, null);
|
|
2597
2390
|
}), i.forEach(function(e) {
|
|
2598
|
-
r.has(e) ||
|
|
2391
|
+
r.has(e) || mn(e, a);
|
|
2599
2392
|
});
|
|
2600
2393
|
}
|
|
2601
|
-
|
|
2394
|
+
_n.set(n, e);
|
|
2602
2395
|
}, [e]), n;
|
|
2603
2396
|
}
|
|
2604
2397
|
//#endregion
|
|
2605
2398
|
//#region ../../node_modules/use-sidecar/dist/es2015/medium.js
|
|
2606
|
-
function
|
|
2399
|
+
function yn(e) {
|
|
2607
2400
|
return e;
|
|
2608
2401
|
}
|
|
2609
|
-
function
|
|
2610
|
-
t === void 0 && (t =
|
|
2402
|
+
function bn(e, t) {
|
|
2403
|
+
t === void 0 && (t = yn);
|
|
2611
2404
|
var n = [], r = !1;
|
|
2612
2405
|
return {
|
|
2613
2406
|
read: function() {
|
|
@@ -2660,35 +2453,35 @@ function wn(e, t) {
|
|
|
2660
2453
|
}
|
|
2661
2454
|
};
|
|
2662
2455
|
}
|
|
2663
|
-
function
|
|
2456
|
+
function xn(e) {
|
|
2664
2457
|
e === void 0 && (e = {});
|
|
2665
|
-
var t =
|
|
2666
|
-
return t.options =
|
|
2458
|
+
var t = bn(null);
|
|
2459
|
+
return t.options = Y({
|
|
2667
2460
|
async: !0,
|
|
2668
2461
|
ssr: !1
|
|
2669
2462
|
}, e), t;
|
|
2670
2463
|
}
|
|
2671
2464
|
//#endregion
|
|
2672
2465
|
//#region ../../node_modules/use-sidecar/dist/es2015/exports.js
|
|
2673
|
-
var
|
|
2674
|
-
var n = t.sideCar, r =
|
|
2466
|
+
var Sn = function(t) {
|
|
2467
|
+
var n = t.sideCar, r = cn(t, ["sideCar"]);
|
|
2675
2468
|
if (!n) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
2676
2469
|
var i = n.read();
|
|
2677
2470
|
if (!i) throw Error("Sidecar medium not found");
|
|
2678
|
-
return e.createElement(i,
|
|
2471
|
+
return e.createElement(i, Y({}, r));
|
|
2679
2472
|
};
|
|
2680
|
-
|
|
2681
|
-
function
|
|
2682
|
-
return e.useMedium(t),
|
|
2473
|
+
Sn.isSideCarExport = !0;
|
|
2474
|
+
function Cn(e, t) {
|
|
2475
|
+
return e.useMedium(t), Sn;
|
|
2683
2476
|
}
|
|
2684
2477
|
//#endregion
|
|
2685
2478
|
//#region ../../node_modules/@huin-core/react-dialog/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
2686
|
-
var
|
|
2479
|
+
var wn = xn(), Tn = function() {}, En = e.forwardRef(function(t, n) {
|
|
2687
2480
|
var r = e.useRef(null), i = e.useState({
|
|
2688
|
-
onScrollCapture:
|
|
2689
|
-
onWheelCapture:
|
|
2690
|
-
onTouchMoveCapture:
|
|
2691
|
-
}), 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: Tn,
|
|
2482
|
+
onWheelCapture: Tn,
|
|
2483
|
+
onTouchMoveCapture: Tn
|
|
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 = cn(t, [
|
|
2692
2485
|
"forwardProps",
|
|
2693
2486
|
"children",
|
|
2694
2487
|
"className",
|
|
@@ -2701,9 +2494,9 @@ var On = Tn(), kn = function() {}, An = e.forwardRef(function(t, n) {
|
|
|
2701
2494
|
"allowPinchZoom",
|
|
2702
2495
|
"as",
|
|
2703
2496
|
"gapMode"
|
|
2704
|
-
]), x = p, S =
|
|
2497
|
+
]), x = p, S = vn([r, n]), C = Y(Y({}, b), a);
|
|
2705
2498
|
return e.createElement(e.Fragment, null, d && e.createElement(x, {
|
|
2706
|
-
sideCar:
|
|
2499
|
+
sideCar: wn,
|
|
2707
2500
|
removeScrollBar: u,
|
|
2708
2501
|
shards: f,
|
|
2709
2502
|
noIsolation: m,
|
|
@@ -2712,52 +2505,52 @@ var On = Tn(), kn = function() {}, An = e.forwardRef(function(t, n) {
|
|
|
2712
2505
|
allowPinchZoom: !!g,
|
|
2713
2506
|
lockRef: r,
|
|
2714
2507
|
gapMode: y
|
|
2715
|
-
}), s ? e.cloneElement(e.Children.only(c),
|
|
2508
|
+
}), s ? e.cloneElement(e.Children.only(c), Y(Y({}, C), { ref: S })) : e.createElement(v, Y({}, C, {
|
|
2716
2509
|
className: l,
|
|
2717
2510
|
ref: S
|
|
2718
2511
|
}), c));
|
|
2719
2512
|
});
|
|
2720
|
-
|
|
2513
|
+
En.defaultProps = {
|
|
2721
2514
|
enabled: !0,
|
|
2722
2515
|
removeScrollBar: !0,
|
|
2723
2516
|
inert: !1
|
|
2724
|
-
},
|
|
2725
|
-
fullWidth:
|
|
2726
|
-
zeroRight:
|
|
2517
|
+
}, En.classNames = {
|
|
2518
|
+
fullWidth: dn,
|
|
2519
|
+
zeroRight: un
|
|
2727
2520
|
};
|
|
2728
2521
|
//#endregion
|
|
2729
2522
|
//#region ../../node_modules/get-nonce/dist/es2015/index.js
|
|
2730
|
-
var
|
|
2731
|
-
if (
|
|
2523
|
+
var Dn, On = function() {
|
|
2524
|
+
if (Dn) return Dn;
|
|
2732
2525
|
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
2733
2526
|
};
|
|
2734
2527
|
//#endregion
|
|
2735
2528
|
//#region ../../node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
2736
|
-
function
|
|
2529
|
+
function kn() {
|
|
2737
2530
|
if (!document) return null;
|
|
2738
2531
|
var e = document.createElement("style");
|
|
2739
2532
|
e.type = "text/css";
|
|
2740
|
-
var t =
|
|
2533
|
+
var t = On();
|
|
2741
2534
|
return t && e.setAttribute("nonce", t), e;
|
|
2742
2535
|
}
|
|
2743
|
-
function
|
|
2536
|
+
function An(e, t) {
|
|
2744
2537
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
2745
2538
|
}
|
|
2746
|
-
function
|
|
2539
|
+
function jn(e) {
|
|
2747
2540
|
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
2748
2541
|
}
|
|
2749
|
-
var
|
|
2542
|
+
var Mn = function() {
|
|
2750
2543
|
var e = 0, t = null;
|
|
2751
2544
|
return {
|
|
2752
2545
|
add: function(n) {
|
|
2753
|
-
e == 0 && (t =
|
|
2546
|
+
e == 0 && (t = kn()) && (An(t, n), jn(t)), e++;
|
|
2754
2547
|
},
|
|
2755
2548
|
remove: function() {
|
|
2756
2549
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
2757
2550
|
}
|
|
2758
2551
|
};
|
|
2759
|
-
},
|
|
2760
|
-
var t =
|
|
2552
|
+
}, Nn = function() {
|
|
2553
|
+
var t = Mn();
|
|
2761
2554
|
return function(n, r) {
|
|
2762
2555
|
e.useEffect(function() {
|
|
2763
2556
|
return t.add(n), function() {
|
|
@@ -2765,43 +2558,43 @@ var In = function() {
|
|
|
2765
2558
|
};
|
|
2766
2559
|
}, [n && r]);
|
|
2767
2560
|
};
|
|
2768
|
-
},
|
|
2769
|
-
var e =
|
|
2561
|
+
}, Pn = function() {
|
|
2562
|
+
var e = Nn();
|
|
2770
2563
|
return function(t) {
|
|
2771
2564
|
var n = t.styles, r = t.dynamic;
|
|
2772
2565
|
return e(n, r), null;
|
|
2773
2566
|
};
|
|
2774
|
-
},
|
|
2567
|
+
}, Fn = {
|
|
2775
2568
|
left: 0,
|
|
2776
2569
|
top: 0,
|
|
2777
2570
|
right: 0,
|
|
2778
2571
|
gap: 0
|
|
2779
|
-
},
|
|
2572
|
+
}, In = function(e) {
|
|
2780
2573
|
return parseInt(e || "", 10) || 0;
|
|
2781
|
-
},
|
|
2574
|
+
}, Ln = function(e) {
|
|
2782
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"];
|
|
2783
2576
|
return [
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2577
|
+
In(n),
|
|
2578
|
+
In(r),
|
|
2579
|
+
In(i)
|
|
2787
2580
|
];
|
|
2788
|
-
},
|
|
2789
|
-
if (e === void 0 && (e = "margin"), typeof window > "u") return
|
|
2790
|
-
var t =
|
|
2581
|
+
}, Rn = function(e) {
|
|
2582
|
+
if (e === void 0 && (e = "margin"), typeof window > "u") return Fn;
|
|
2583
|
+
var t = Ln(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
2791
2584
|
return {
|
|
2792
2585
|
left: t[0],
|
|
2793
2586
|
top: t[1],
|
|
2794
2587
|
right: t[2],
|
|
2795
2588
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
2796
2589
|
};
|
|
2797
|
-
},
|
|
2590
|
+
}, zn = Pn(), Bn = "data-scroll-locked", Vn = function(e, t, n, r) {
|
|
2798
2591
|
var i = e.left, a = e.top, o = e.right, s = e.gap;
|
|
2799
2592
|
return n === void 0 && (n = "margin"), `
|
|
2800
|
-
.${
|
|
2593
|
+
.${fn} {
|
|
2801
2594
|
overflow: hidden ${r};
|
|
2802
2595
|
padding-right: ${s}px ${r};
|
|
2803
2596
|
}
|
|
2804
|
-
body[${
|
|
2597
|
+
body[${Bn}] {
|
|
2805
2598
|
overflow: hidden ${r};
|
|
2806
2599
|
overscroll-behavior: contain;
|
|
2807
2600
|
${[
|
|
@@ -2818,118 +2611,118 @@ var In = function() {
|
|
|
2818
2611
|
].filter(Boolean).join("")}
|
|
2819
2612
|
}
|
|
2820
2613
|
|
|
2821
|
-
.${
|
|
2614
|
+
.${un} {
|
|
2822
2615
|
right: ${s}px ${r};
|
|
2823
2616
|
}
|
|
2824
2617
|
|
|
2825
|
-
.${
|
|
2618
|
+
.${dn} {
|
|
2826
2619
|
margin-right: ${s}px ${r};
|
|
2827
2620
|
}
|
|
2828
2621
|
|
|
2829
|
-
.${
|
|
2622
|
+
.${un} .${un} {
|
|
2830
2623
|
right: 0 ${r};
|
|
2831
2624
|
}
|
|
2832
2625
|
|
|
2833
|
-
.${
|
|
2626
|
+
.${dn} .${dn} {
|
|
2834
2627
|
margin-right: 0 ${r};
|
|
2835
2628
|
}
|
|
2836
2629
|
|
|
2837
|
-
body[${
|
|
2838
|
-
${
|
|
2630
|
+
body[${Bn}] {
|
|
2631
|
+
${pn}: ${s}px;
|
|
2839
2632
|
}
|
|
2840
2633
|
`;
|
|
2841
|
-
},
|
|
2634
|
+
}, Hn = function() {
|
|
2842
2635
|
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
2843
2636
|
return isFinite(e) ? e : 0;
|
|
2844
|
-
},
|
|
2637
|
+
}, Un = function() {
|
|
2845
2638
|
e.useEffect(function() {
|
|
2846
|
-
return document.body.setAttribute(
|
|
2847
|
-
var e =
|
|
2848
|
-
e <= 0 ? document.body.removeAttribute(
|
|
2639
|
+
return document.body.setAttribute(Bn, (Hn() + 1).toString()), function() {
|
|
2640
|
+
var e = Hn() - 1;
|
|
2641
|
+
e <= 0 ? document.body.removeAttribute(Bn) : document.body.setAttribute(Bn, e.toString());
|
|
2849
2642
|
};
|
|
2850
2643
|
}, []);
|
|
2851
|
-
},
|
|
2644
|
+
}, Wn = function(t) {
|
|
2852
2645
|
var n = t.noRelative, r = t.noImportant, i = t.gapMode, a = i === void 0 ? "margin" : i;
|
|
2853
|
-
|
|
2646
|
+
Un();
|
|
2854
2647
|
var o = e.useMemo(function() {
|
|
2855
|
-
return
|
|
2648
|
+
return Rn(a);
|
|
2856
2649
|
}, [a]);
|
|
2857
|
-
return e.createElement(
|
|
2858
|
-
},
|
|
2650
|
+
return e.createElement(zn, { styles: Vn(o, !n, a, r ? "" : "!important") });
|
|
2651
|
+
}, Gn = !1;
|
|
2859
2652
|
if (typeof window < "u") try {
|
|
2860
|
-
var
|
|
2861
|
-
return
|
|
2653
|
+
var Kn = Object.defineProperty({}, "passive", { get: function() {
|
|
2654
|
+
return Gn = !0, !0;
|
|
2862
2655
|
} });
|
|
2863
|
-
window.addEventListener("test",
|
|
2656
|
+
window.addEventListener("test", Kn, Kn), window.removeEventListener("test", Kn, Kn);
|
|
2864
2657
|
} catch {
|
|
2865
|
-
|
|
2658
|
+
Gn = !1;
|
|
2866
2659
|
}
|
|
2867
|
-
var
|
|
2660
|
+
var X = Gn ? { passive: !1 } : !1, qn = function(e) {
|
|
2868
2661
|
return e.tagName === "TEXTAREA";
|
|
2869
|
-
},
|
|
2662
|
+
}, Jn = function(e, t) {
|
|
2870
2663
|
var n = window.getComputedStyle(e);
|
|
2871
|
-
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !
|
|
2872
|
-
},
|
|
2873
|
-
return
|
|
2874
|
-
},
|
|
2875
|
-
return
|
|
2876
|
-
},
|
|
2664
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !qn(e) && n[t] === "visible");
|
|
2665
|
+
}, Yn = function(e) {
|
|
2666
|
+
return Jn(e, "overflowY");
|
|
2667
|
+
}, Xn = function(e) {
|
|
2668
|
+
return Jn(e, "overflowX");
|
|
2669
|
+
}, Zn = function(e, t) {
|
|
2877
2670
|
var n = t.ownerDocument, r = t;
|
|
2878
2671
|
do {
|
|
2879
|
-
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host),
|
|
2880
|
-
var i =
|
|
2672
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), er(e, r)) {
|
|
2673
|
+
var i = tr(e, r);
|
|
2881
2674
|
if (i[1] > i[2]) return !0;
|
|
2882
2675
|
}
|
|
2883
2676
|
r = r.parentNode;
|
|
2884
2677
|
} while (r && r !== n.body);
|
|
2885
2678
|
return !1;
|
|
2886
|
-
},
|
|
2679
|
+
}, Qn = function(e) {
|
|
2887
2680
|
return [
|
|
2888
2681
|
e.scrollTop,
|
|
2889
2682
|
e.scrollHeight,
|
|
2890
2683
|
e.clientHeight
|
|
2891
2684
|
];
|
|
2892
|
-
},
|
|
2685
|
+
}, $n = function(e) {
|
|
2893
2686
|
return [
|
|
2894
2687
|
e.scrollLeft,
|
|
2895
2688
|
e.scrollWidth,
|
|
2896
2689
|
e.clientWidth
|
|
2897
2690
|
];
|
|
2898
|
-
},
|
|
2899
|
-
return e === "v" ?
|
|
2900
|
-
},
|
|
2901
|
-
return e === "v" ?
|
|
2902
|
-
},
|
|
2691
|
+
}, er = function(e, t) {
|
|
2692
|
+
return e === "v" ? Yn(t) : Xn(t);
|
|
2693
|
+
}, tr = function(e, t) {
|
|
2694
|
+
return e === "v" ? Qn(t) : $n(t);
|
|
2695
|
+
}, nr = function(e, t) {
|
|
2903
2696
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
2904
|
-
},
|
|
2905
|
-
var a =
|
|
2697
|
+
}, rr = function(e, t, n, r, i) {
|
|
2698
|
+
var a = nr(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
2906
2699
|
do {
|
|
2907
|
-
var p =
|
|
2908
|
-
(m || h) &&
|
|
2700
|
+
var p = tr(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
2701
|
+
(m || h) && er(e, s) && (d += h, f += m), s = s instanceof ShadowRoot ? s.host : s.parentNode;
|
|
2909
2702
|
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
2910
2703
|
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
2911
|
-
},
|
|
2704
|
+
}, ir = function(e) {
|
|
2912
2705
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
2913
|
-
},
|
|
2706
|
+
}, ar = function(e) {
|
|
2914
2707
|
return [e.deltaX, e.deltaY];
|
|
2915
|
-
},
|
|
2708
|
+
}, or = function(e) {
|
|
2916
2709
|
return e && "current" in e ? e.current : e;
|
|
2917
|
-
},
|
|
2710
|
+
}, sr = function(e, t) {
|
|
2918
2711
|
return e[0] === t[0] && e[1] === t[1];
|
|
2919
|
-
},
|
|
2712
|
+
}, cr = function(e) {
|
|
2920
2713
|
return `
|
|
2921
2714
|
.block-interactivity-${e} {pointer-events: none;}
|
|
2922
2715
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
2923
2716
|
`;
|
|
2924
|
-
},
|
|
2925
|
-
function
|
|
2926
|
-
var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(
|
|
2717
|
+
}, lr = 0, ur = [];
|
|
2718
|
+
function dr(t) {
|
|
2719
|
+
var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(lr++)[0], o = e.useState(Pn)[0], s = e.useRef(t);
|
|
2927
2720
|
e.useEffect(function() {
|
|
2928
2721
|
s.current = t;
|
|
2929
2722
|
}, [t]), e.useEffect(function() {
|
|
2930
2723
|
if (t.inert) {
|
|
2931
2724
|
document.body.classList.add(`block-interactivity-${a}`);
|
|
2932
|
-
var e =
|
|
2725
|
+
var e = ln([t.lockRef.current], (t.shards || []).map(or), !0).filter(Boolean);
|
|
2933
2726
|
return e.forEach(function(e) {
|
|
2934
2727
|
return e.classList.add(`allow-interactivity-${a}`);
|
|
2935
2728
|
}), function() {
|
|
@@ -2945,26 +2738,26 @@ function gr(t) {
|
|
|
2945
2738
|
]);
|
|
2946
2739
|
var c = e.useCallback(function(e, t) {
|
|
2947
2740
|
if ("touches" in e && e.touches.length === 2) return !s.current.allowPinchZoom;
|
|
2948
|
-
var n =
|
|
2741
|
+
var n = ir(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";
|
|
2949
2742
|
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
2950
|
-
var f =
|
|
2743
|
+
var f = Zn(d, u);
|
|
2951
2744
|
if (!f) return !0;
|
|
2952
|
-
if (f ? l = d : (l = d === "v" ? "h" : "v", f =
|
|
2745
|
+
if (f ? l = d : (l = d === "v" ? "h" : "v", f = Zn(d, u)), !f) return !1;
|
|
2953
2746
|
if (!i.current && "changedTouches" in e && (o || c) && (i.current = l), !l) return !0;
|
|
2954
2747
|
var p = i.current || l;
|
|
2955
|
-
return
|
|
2748
|
+
return rr(p, t, e, p === "h" ? o : c, !0);
|
|
2956
2749
|
}, []), l = e.useCallback(function(e) {
|
|
2957
2750
|
var t = e;
|
|
2958
|
-
if (!(!
|
|
2959
|
-
var r = "deltaY" in t ?
|
|
2960
|
-
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) &&
|
|
2751
|
+
if (!(!ur.length || ur[ur.length - 1] !== o)) {
|
|
2752
|
+
var r = "deltaY" in t ? ar(t) : ir(t), i = n.current.filter(function(e) {
|
|
2753
|
+
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) && sr(e.delta, r);
|
|
2961
2754
|
})[0];
|
|
2962
2755
|
if (i && i.should) {
|
|
2963
2756
|
t.cancelable && t.preventDefault();
|
|
2964
2757
|
return;
|
|
2965
2758
|
}
|
|
2966
2759
|
if (!i) {
|
|
2967
|
-
var a = (s.current.shards || []).map(
|
|
2760
|
+
var a = (s.current.shards || []).map(or).filter(Boolean).filter(function(e) {
|
|
2968
2761
|
return e.contains(t.target);
|
|
2969
2762
|
});
|
|
2970
2763
|
(a.length > 0 ? c(t, a[0]) : !s.current.noIsolation) && t.cancelable && t.preventDefault();
|
|
@@ -2976,7 +2769,7 @@ function gr(t) {
|
|
|
2976
2769
|
delta: t,
|
|
2977
2770
|
target: r,
|
|
2978
2771
|
should: i,
|
|
2979
|
-
shadowParent:
|
|
2772
|
+
shadowParent: fr(r)
|
|
2980
2773
|
};
|
|
2981
2774
|
n.current.push(a), setTimeout(function() {
|
|
2982
2775
|
n.current = n.current.filter(function(e) {
|
|
@@ -2984,57 +2777,57 @@ function gr(t) {
|
|
|
2984
2777
|
});
|
|
2985
2778
|
}, 1);
|
|
2986
2779
|
}, []), d = e.useCallback(function(e) {
|
|
2987
|
-
r.current =
|
|
2780
|
+
r.current = ir(e), i.current = void 0;
|
|
2988
2781
|
}, []), f = e.useCallback(function(e) {
|
|
2989
|
-
u(e.type,
|
|
2782
|
+
u(e.type, ar(e), e.target, c(e, t.lockRef.current));
|
|
2990
2783
|
}, []), p = e.useCallback(function(e) {
|
|
2991
|
-
u(e.type,
|
|
2784
|
+
u(e.type, ir(e), e.target, c(e, t.lockRef.current));
|
|
2992
2785
|
}, []);
|
|
2993
2786
|
e.useEffect(function() {
|
|
2994
|
-
return
|
|
2787
|
+
return ur.push(o), t.setCallbacks({
|
|
2995
2788
|
onScrollCapture: f,
|
|
2996
2789
|
onWheelCapture: f,
|
|
2997
2790
|
onTouchMoveCapture: p
|
|
2998
|
-
}), document.addEventListener("wheel", l,
|
|
2999
|
-
|
|
2791
|
+
}), document.addEventListener("wheel", l, X), document.addEventListener("touchmove", l, X), document.addEventListener("touchstart", d, X), function() {
|
|
2792
|
+
ur = ur.filter(function(e) {
|
|
3000
2793
|
return e !== o;
|
|
3001
|
-
}), document.removeEventListener("wheel", l,
|
|
2794
|
+
}), document.removeEventListener("wheel", l, X), document.removeEventListener("touchmove", l, X), document.removeEventListener("touchstart", d, X);
|
|
3002
2795
|
};
|
|
3003
2796
|
}, []);
|
|
3004
2797
|
var m = t.removeScrollBar, h = t.inert;
|
|
3005
|
-
return e.createElement(e.Fragment, null, h ? e.createElement(o, { styles:
|
|
2798
|
+
return e.createElement(e.Fragment, null, h ? e.createElement(o, { styles: cr(a) }) : null, m ? e.createElement(Wn, { gapMode: t.gapMode }) : null);
|
|
3006
2799
|
}
|
|
3007
|
-
function
|
|
2800
|
+
function fr(e) {
|
|
3008
2801
|
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
3009
2802
|
return t;
|
|
3010
2803
|
}
|
|
3011
2804
|
//#endregion
|
|
3012
2805
|
//#region ../../node_modules/@huin-core/react-dialog/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
3013
|
-
var
|
|
3014
|
-
return e.createElement(
|
|
2806
|
+
var pr = Cn(wn, dr), mr = e.forwardRef(function(t, n) {
|
|
2807
|
+
return e.createElement(En, Y({}, t, {
|
|
3015
2808
|
ref: n,
|
|
3016
|
-
sideCar:
|
|
2809
|
+
sideCar: pr
|
|
3017
2810
|
}));
|
|
3018
2811
|
});
|
|
3019
|
-
|
|
2812
|
+
mr.classNames = En.classNames;
|
|
3020
2813
|
//#endregion
|
|
3021
2814
|
//#region ../../node_modules/aria-hidden/dist/es2015/index.js
|
|
3022
|
-
var
|
|
2815
|
+
var hr = function(e) {
|
|
3023
2816
|
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
3024
|
-
},
|
|
3025
|
-
return e && (e.host ||
|
|
3026
|
-
},
|
|
2817
|
+
}, gr = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), vr = {}, yr = 0, br = function(e) {
|
|
2818
|
+
return e && (e.host || br(e.parentNode));
|
|
2819
|
+
}, xr = function(e, t) {
|
|
3027
2820
|
return t.map(function(t) {
|
|
3028
2821
|
if (e.contains(t)) return t;
|
|
3029
|
-
var n =
|
|
2822
|
+
var n = br(t);
|
|
3030
2823
|
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
3031
2824
|
}).filter(function(e) {
|
|
3032
2825
|
return !!e;
|
|
3033
2826
|
});
|
|
3034
|
-
},
|
|
3035
|
-
var i =
|
|
3036
|
-
|
|
3037
|
-
var a =
|
|
2827
|
+
}, Sr = function(e, t, n, r) {
|
|
2828
|
+
var i = xr(t, Array.isArray(e) ? e : [e]);
|
|
2829
|
+
vr[n] || (vr[n] = /* @__PURE__ */ new WeakMap());
|
|
2830
|
+
var a = vr[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
3038
2831
|
!e || s.has(e) || (s.add(e), l(e.parentNode));
|
|
3039
2832
|
};
|
|
3040
2833
|
i.forEach(l);
|
|
@@ -3042,30 +2835,30 @@ var br = function(e) {
|
|
|
3042
2835
|
!e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
|
|
3043
2836
|
if (s.has(e)) u(e);
|
|
3044
2837
|
else try {
|
|
3045
|
-
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (
|
|
3046
|
-
|
|
2838
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (gr.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
2839
|
+
gr.set(e, c), a.set(e, l), o.push(e), c === 1 && i && _r.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
3047
2840
|
} catch (t) {
|
|
3048
2841
|
console.error("aria-hidden: cannot operate on ", e, t);
|
|
3049
2842
|
}
|
|
3050
2843
|
});
|
|
3051
2844
|
};
|
|
3052
|
-
return u(t), s.clear(),
|
|
2845
|
+
return u(t), s.clear(), yr++, function() {
|
|
3053
2846
|
o.forEach(function(e) {
|
|
3054
|
-
var t =
|
|
3055
|
-
|
|
3056
|
-
}),
|
|
2847
|
+
var t = gr.get(e) - 1, i = a.get(e) - 1;
|
|
2848
|
+
gr.set(e, t), a.set(e, i), t || (_r.has(e) || e.removeAttribute(r), _r.delete(e)), i || e.removeAttribute(n);
|
|
2849
|
+
}), yr--, yr || (gr = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), vr = {});
|
|
3057
2850
|
};
|
|
3058
|
-
},
|
|
2851
|
+
}, Cr = function(e, t, n) {
|
|
3059
2852
|
n === void 0 && (n = "data-aria-hidden");
|
|
3060
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), i = t ||
|
|
3061
|
-
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 || hr(e);
|
|
2854
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Sr(r, i, n, "aria-hidden")) : function() {
|
|
3062
2855
|
return null;
|
|
3063
2856
|
};
|
|
3064
2857
|
};
|
|
3065
2858
|
//#endregion
|
|
3066
2859
|
//#region ../../node_modules/@huin-core/react-use-escape-keydown/dist/index.mjs
|
|
3067
|
-
function
|
|
3068
|
-
let r =
|
|
2860
|
+
function wr(t, n = globalThis?.document) {
|
|
2861
|
+
let r = D(t);
|
|
3069
2862
|
e.useEffect(() => {
|
|
3070
2863
|
let e = (e) => {
|
|
3071
2864
|
e.key === "Escape" && r(e);
|
|
@@ -3075,67 +2868,67 @@ function kr(t, n = globalThis?.document) {
|
|
|
3075
2868
|
}
|
|
3076
2869
|
//#endregion
|
|
3077
2870
|
//#region ../../node_modules/@huin-core/react-dismissable-layer/dist/index.mjs
|
|
3078
|
-
var
|
|
2871
|
+
var Tr = "DismissableLayer", Er = "dismissableLayer.update", Dr = "dismissableLayer.pointerDownOutside", Or = "dismissableLayer.focusOutside", kr, Ar = e.createContext({
|
|
3079
2872
|
layers: /* @__PURE__ */ new Set(),
|
|
3080
2873
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3081
2874
|
branches: /* @__PURE__ */ new Set()
|
|
3082
|
-
}),
|
|
3083
|
-
let { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = t,
|
|
3084
|
-
let t = e.target, n = [...
|
|
3085
|
-
!
|
|
3086
|
-
},
|
|
2875
|
+
}), jr = e.forwardRef((t, n) => {
|
|
2876
|
+
let { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = t, d = e.useContext(Ar), [f, m] = e.useState(null), h = f?.ownerDocument ?? globalThis?.document, [, g] = e.useState({}), _ = p(n, (e) => m(e)), v = Array.from(d.layers), [y] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), b = v.indexOf(y), x = f ? v.indexOf(f) : -1, S = d.layersWithOutsidePointerEventsDisabled.size > 0, C = x >= b, w = Pr((e) => {
|
|
2877
|
+
let t = e.target, n = [...d.branches].some((e) => e.contains(t));
|
|
2878
|
+
!C || n || (a?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
2879
|
+
}, h), E = Fr((e) => {
|
|
3087
2880
|
let t = e.target;
|
|
3088
|
-
[...
|
|
3089
|
-
},
|
|
3090
|
-
return
|
|
3091
|
-
|
|
3092
|
-
},
|
|
3093
|
-
if (f) return r && (
|
|
3094
|
-
r &&
|
|
2881
|
+
[...d.branches].some((e) => e.contains(t)) || (o?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
2882
|
+
}, h);
|
|
2883
|
+
return wr((e) => {
|
|
2884
|
+
x === d.layers.size - 1 && (i?.(e), !e.defaultPrevented && c && (e.preventDefault(), c()));
|
|
2885
|
+
}, h), e.useEffect(() => {
|
|
2886
|
+
if (f) return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (kr = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), Ir(), () => {
|
|
2887
|
+
r && d.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = kr);
|
|
3095
2888
|
};
|
|
3096
2889
|
}, [
|
|
3097
2890
|
f,
|
|
3098
|
-
|
|
2891
|
+
h,
|
|
3099
2892
|
r,
|
|
3100
|
-
|
|
2893
|
+
d
|
|
3101
2894
|
]), e.useEffect(() => () => {
|
|
3102
|
-
f && (
|
|
3103
|
-
}, [f,
|
|
2895
|
+
f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f), Ir());
|
|
2896
|
+
}, [f, d]), e.useEffect(() => {
|
|
3104
2897
|
let e = () => g({});
|
|
3105
|
-
return document.addEventListener(
|
|
3106
|
-
}, []), /* @__PURE__ */
|
|
2898
|
+
return document.addEventListener(Er, e), () => document.removeEventListener(Er, e);
|
|
2899
|
+
}, []), /* @__PURE__ */ e.createElement(T.div, {
|
|
3107
2900
|
...l,
|
|
3108
2901
|
ref: _,
|
|
3109
2902
|
style: {
|
|
3110
|
-
pointerEvents:
|
|
2903
|
+
pointerEvents: S ? C ? "auto" : "none" : void 0,
|
|
3111
2904
|
...t.style
|
|
3112
2905
|
},
|
|
3113
|
-
onFocusCapture:
|
|
3114
|
-
onBlurCapture:
|
|
3115
|
-
onPointerDownCapture:
|
|
2906
|
+
onFocusCapture: u(t.onFocusCapture, E.onFocusCapture),
|
|
2907
|
+
onBlurCapture: u(t.onBlurCapture, E.onBlurCapture),
|
|
2908
|
+
onPointerDownCapture: u(t.onPointerDownCapture, w.onPointerDownCapture)
|
|
3116
2909
|
});
|
|
3117
2910
|
});
|
|
3118
|
-
|
|
3119
|
-
var
|
|
3120
|
-
let r = e.useContext(
|
|
2911
|
+
jr.displayName = Tr;
|
|
2912
|
+
var Mr = "DismissableLayerBranch", Nr = e.forwardRef((t, n) => {
|
|
2913
|
+
let r = e.useContext(Ar), i = e.useRef(null), a = p(n, i);
|
|
3121
2914
|
return e.useEffect(() => {
|
|
3122
2915
|
let e = i.current;
|
|
3123
2916
|
if (e) return r.branches.add(e), () => {
|
|
3124
2917
|
r.branches.delete(e);
|
|
3125
2918
|
};
|
|
3126
|
-
}, [r.branches]), /* @__PURE__ */
|
|
2919
|
+
}, [r.branches]), /* @__PURE__ */ e.createElement(T.div, {
|
|
3127
2920
|
...t,
|
|
3128
2921
|
ref: a
|
|
3129
2922
|
});
|
|
3130
2923
|
});
|
|
3131
|
-
|
|
3132
|
-
function
|
|
3133
|
-
let r =
|
|
2924
|
+
Nr.displayName = Mr;
|
|
2925
|
+
function Pr(t, n = globalThis?.document) {
|
|
2926
|
+
let r = D(t), i = e.useRef(!1), a = e.useRef(() => {});
|
|
3134
2927
|
return e.useEffect(() => {
|
|
3135
2928
|
let e = (e) => {
|
|
3136
2929
|
if (e.target && !i.current) {
|
|
3137
2930
|
let t = function() {
|
|
3138
|
-
|
|
2931
|
+
Lr(Dr, r, i, { discrete: !0 });
|
|
3139
2932
|
}, i = { originalEvent: e };
|
|
3140
2933
|
e.pointerType === "touch" ? (n.removeEventListener("click", a.current), a.current = t, n.addEventListener("click", a.current, { once: !0 })) : t();
|
|
3141
2934
|
} else n.removeEventListener("click", a.current);
|
|
@@ -3148,11 +2941,11 @@ function zr(t, n = globalThis?.document) {
|
|
|
3148
2941
|
};
|
|
3149
2942
|
}, [n, r]), { onPointerDownCapture: () => i.current = !0 };
|
|
3150
2943
|
}
|
|
3151
|
-
function
|
|
3152
|
-
let r =
|
|
2944
|
+
function Fr(t, n = globalThis?.document) {
|
|
2945
|
+
let r = D(t), i = e.useRef(!1);
|
|
3153
2946
|
return e.useEffect(() => {
|
|
3154
2947
|
let e = (e) => {
|
|
3155
|
-
e.target && !i.current &&
|
|
2948
|
+
e.target && !i.current && Lr(Or, r, { originalEvent: e }, { discrete: !1 });
|
|
3156
2949
|
};
|
|
3157
2950
|
return n.addEventListener("focusin", e), () => n.removeEventListener("focusin", e);
|
|
3158
2951
|
}, [n, r]), {
|
|
@@ -3160,25 +2953,25 @@ function Br(t, n = globalThis?.document) {
|
|
|
3160
2953
|
onBlurCapture: () => i.current = !1
|
|
3161
2954
|
};
|
|
3162
2955
|
}
|
|
3163
|
-
function
|
|
3164
|
-
let e = new CustomEvent(
|
|
2956
|
+
function Ir() {
|
|
2957
|
+
let e = new CustomEvent(Er);
|
|
3165
2958
|
document.dispatchEvent(e);
|
|
3166
2959
|
}
|
|
3167
|
-
function
|
|
2960
|
+
function Lr(e, t, n, { discrete: r }) {
|
|
3168
2961
|
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
3169
2962
|
bubbles: !1,
|
|
3170
2963
|
cancelable: !0,
|
|
3171
2964
|
detail: n
|
|
3172
2965
|
});
|
|
3173
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
2966
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? E(i, a) : i.dispatchEvent(a);
|
|
3174
2967
|
}
|
|
3175
2968
|
//#endregion
|
|
3176
2969
|
//#region ../../node_modules/@huin-core/react-focus-scope/dist/index.mjs
|
|
3177
|
-
var
|
|
2970
|
+
var Rr = "focusScope.autoFocusOnMount", zr = "focusScope.autoFocusOnUnmount", Br = {
|
|
3178
2971
|
bubbles: !1,
|
|
3179
2972
|
cancelable: !0
|
|
3180
|
-
},
|
|
3181
|
-
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = t, [c, l] = e.useState(null), u =
|
|
2973
|
+
}, Vr = "FocusScope", Hr = e.forwardRef((t, n) => {
|
|
2974
|
+
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = t, [c, l] = e.useState(null), u = D(a), d = D(o), f = e.useRef(null), m = p(n, (e) => l(e)), h = e.useRef({
|
|
3182
2975
|
paused: !1,
|
|
3183
2976
|
pause() {
|
|
3184
2977
|
this.paused = !0;
|
|
@@ -3192,11 +2985,11 @@ var Ur = "focusScope.autoFocusOnMount", Wr = "focusScope.autoFocusOnUnmount", Gr
|
|
|
3192
2985
|
let e = function(e) {
|
|
3193
2986
|
if (h.paused || !c) return;
|
|
3194
2987
|
let t = e.target;
|
|
3195
|
-
c.contains(t) ?
|
|
2988
|
+
c.contains(t) ? f.current = t : Z(f.current, { select: !0 });
|
|
3196
2989
|
}, t = function(e) {
|
|
3197
2990
|
if (h.paused || !c) return;
|
|
3198
2991
|
let t = e.relatedTarget;
|
|
3199
|
-
t !== null && (c.contains(t) || Z(
|
|
2992
|
+
t !== null && (c.contains(t) || Z(f.current, { select: !0 }));
|
|
3200
2993
|
}, n = function(e) {
|
|
3201
2994
|
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && Z(c);
|
|
3202
2995
|
};
|
|
@@ -3215,30 +3008,30 @@ var Ur = "focusScope.autoFocusOnMount", Wr = "focusScope.autoFocusOnUnmount", Gr
|
|
|
3215
3008
|
h.paused
|
|
3216
3009
|
]), e.useEffect(() => {
|
|
3217
3010
|
if (c) {
|
|
3218
|
-
|
|
3011
|
+
Yr.add(h);
|
|
3219
3012
|
let e = document.activeElement;
|
|
3220
3013
|
if (!c.contains(e)) {
|
|
3221
|
-
let t = new CustomEvent(
|
|
3222
|
-
c.addEventListener(
|
|
3014
|
+
let t = new CustomEvent(Rr, Br);
|
|
3015
|
+
c.addEventListener(Rr, u), c.dispatchEvent(t), t.defaultPrevented || (Ur(Qr(Gr(c)), { select: !0 }), document.activeElement === e && Z(c));
|
|
3223
3016
|
}
|
|
3224
3017
|
return () => {
|
|
3225
|
-
c.removeEventListener(
|
|
3226
|
-
let t = new CustomEvent(
|
|
3227
|
-
c.addEventListener(
|
|
3018
|
+
c.removeEventListener(Rr, u), setTimeout(() => {
|
|
3019
|
+
let t = new CustomEvent(zr, Br);
|
|
3020
|
+
c.addEventListener(zr, d), c.dispatchEvent(t), t.defaultPrevented || Z(e ?? document.body, { select: !0 }), c.removeEventListener(zr, d), Yr.remove(h);
|
|
3228
3021
|
}, 0);
|
|
3229
3022
|
};
|
|
3230
3023
|
}
|
|
3231
3024
|
}, [
|
|
3232
3025
|
c,
|
|
3233
3026
|
u,
|
|
3234
|
-
|
|
3027
|
+
d,
|
|
3235
3028
|
h
|
|
3236
3029
|
]);
|
|
3237
3030
|
let g = e.useCallback((e) => {
|
|
3238
3031
|
if (!r && !i || h.paused) return;
|
|
3239
3032
|
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, n = document.activeElement;
|
|
3240
3033
|
if (t && n) {
|
|
3241
|
-
let t = e.currentTarget, [i, a] =
|
|
3034
|
+
let t = e.currentTarget, [i, a] = Wr(t);
|
|
3242
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();
|
|
3243
3036
|
}
|
|
3244
3037
|
}, [
|
|
@@ -3246,23 +3039,23 @@ var Ur = "focusScope.autoFocusOnMount", Wr = "focusScope.autoFocusOnUnmount", Gr
|
|
|
3246
3039
|
i,
|
|
3247
3040
|
h.paused
|
|
3248
3041
|
]);
|
|
3249
|
-
return /* @__PURE__ */
|
|
3042
|
+
return /* @__PURE__ */ e.createElement(T.div, {
|
|
3250
3043
|
tabIndex: -1,
|
|
3251
3044
|
...s,
|
|
3252
3045
|
ref: m,
|
|
3253
3046
|
onKeyDown: g
|
|
3254
3047
|
});
|
|
3255
3048
|
});
|
|
3256
|
-
|
|
3257
|
-
function
|
|
3049
|
+
Hr.displayName = Vr;
|
|
3050
|
+
function Ur(e, { select: t = !1 } = {}) {
|
|
3258
3051
|
let n = document.activeElement;
|
|
3259
3052
|
for (let r of e) if (Z(r, { select: t }), document.activeElement !== n) return;
|
|
3260
3053
|
}
|
|
3261
|
-
function
|
|
3262
|
-
let t =
|
|
3263
|
-
return [
|
|
3054
|
+
function Wr(e) {
|
|
3055
|
+
let t = Gr(e);
|
|
3056
|
+
return [Kr(t, e), Kr(t.reverse(), e)];
|
|
3264
3057
|
}
|
|
3265
|
-
function
|
|
3058
|
+
function Gr(e) {
|
|
3266
3059
|
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
3267
3060
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
3268
3061
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
@@ -3270,10 +3063,10 @@ function Xr(e) {
|
|
|
3270
3063
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
3271
3064
|
return t;
|
|
3272
3065
|
}
|
|
3273
|
-
function
|
|
3274
|
-
for (let n of e) if (!
|
|
3066
|
+
function Kr(e, t) {
|
|
3067
|
+
for (let n of e) if (!qr(n, { upTo: t })) return n;
|
|
3275
3068
|
}
|
|
3276
|
-
function
|
|
3069
|
+
function qr(e, { upTo: t }) {
|
|
3277
3070
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
3278
3071
|
for (; e;) {
|
|
3279
3072
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -3282,178 +3075,165 @@ function Qr(e, { upTo: t }) {
|
|
|
3282
3075
|
}
|
|
3283
3076
|
return !1;
|
|
3284
3077
|
}
|
|
3285
|
-
function
|
|
3078
|
+
function Jr(e) {
|
|
3286
3079
|
return e instanceof HTMLInputElement && "select" in e;
|
|
3287
3080
|
}
|
|
3288
3081
|
function Z(e, { select: t = !1 } = {}) {
|
|
3289
3082
|
if (e && e.focus) {
|
|
3290
3083
|
let n = document.activeElement;
|
|
3291
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
3084
|
+
e.focus({ preventScroll: !0 }), e !== n && Jr(e) && t && e.select();
|
|
3292
3085
|
}
|
|
3293
3086
|
}
|
|
3294
|
-
var
|
|
3295
|
-
function
|
|
3087
|
+
var Yr = Xr();
|
|
3088
|
+
function Xr() {
|
|
3296
3089
|
let e = [];
|
|
3297
3090
|
return {
|
|
3298
3091
|
add(t) {
|
|
3299
3092
|
let n = e[0];
|
|
3300
|
-
t !== n && n?.pause(), e =
|
|
3093
|
+
t !== n && n?.pause(), e = Zr(e, t), e.unshift(t);
|
|
3301
3094
|
},
|
|
3302
3095
|
remove(t) {
|
|
3303
|
-
e =
|
|
3096
|
+
e = Zr(e, t), e[0]?.resume();
|
|
3304
3097
|
}
|
|
3305
3098
|
};
|
|
3306
3099
|
}
|
|
3307
|
-
function
|
|
3100
|
+
function Zr(e, t) {
|
|
3308
3101
|
let n = [...e], r = n.indexOf(t);
|
|
3309
3102
|
return r !== -1 && n.splice(r, 1), n;
|
|
3310
3103
|
}
|
|
3311
|
-
function
|
|
3104
|
+
function Qr(e) {
|
|
3312
3105
|
return e.filter((e) => e.tagName !== "A");
|
|
3313
3106
|
}
|
|
3314
3107
|
//#endregion
|
|
3315
3108
|
//#region ../../node_modules/@huin-core/react-focus-guards/dist/index.mjs
|
|
3316
|
-
var
|
|
3317
|
-
function
|
|
3109
|
+
var $r = 0;
|
|
3110
|
+
function ei() {
|
|
3318
3111
|
e.useEffect(() => {
|
|
3319
3112
|
let e = document.querySelectorAll("[data-huin-core-focus-guard]");
|
|
3320
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
3321
|
-
|
|
3113
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? ti()), document.body.insertAdjacentElement("beforeend", e[1] ?? ti()), $r++, () => {
|
|
3114
|
+
$r === 1 && document.querySelectorAll("[data-huin-core-focus-guard]").forEach((e) => e.remove()), $r--;
|
|
3322
3115
|
};
|
|
3323
3116
|
}, []);
|
|
3324
3117
|
}
|
|
3325
|
-
function
|
|
3118
|
+
function ti() {
|
|
3326
3119
|
let e = document.createElement("span");
|
|
3327
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;
|
|
3328
3121
|
}
|
|
3329
3122
|
//#endregion
|
|
3330
3123
|
//#region ../../node_modules/@huin-core/react-dialog/dist/index.mjs
|
|
3331
|
-
var
|
|
3332
|
-
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,
|
|
3124
|
+
var ni = "Dialog", [ri, ii] = c(ni), [ai, Q] = ri(ni), oi = (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] = O({
|
|
3333
3126
|
prop: i,
|
|
3334
3127
|
defaultProp: a,
|
|
3335
3128
|
onChange: o
|
|
3336
3129
|
});
|
|
3337
|
-
return /* @__PURE__ */
|
|
3130
|
+
return /* @__PURE__ */ e.createElement(ai, {
|
|
3338
3131
|
scope: n,
|
|
3339
3132
|
triggerRef: c,
|
|
3340
3133
|
contentRef: l,
|
|
3341
|
-
contentId:
|
|
3342
|
-
titleId:
|
|
3343
|
-
descriptionId:
|
|
3134
|
+
contentId: w(),
|
|
3135
|
+
titleId: w(),
|
|
3136
|
+
descriptionId: w(),
|
|
3344
3137
|
open: u,
|
|
3345
|
-
onOpenChange:
|
|
3346
|
-
onOpenToggle: e.useCallback(() =>
|
|
3347
|
-
modal: s
|
|
3348
|
-
|
|
3349
|
-
});
|
|
3138
|
+
onOpenChange: d,
|
|
3139
|
+
onOpenToggle: e.useCallback(() => d((e) => !e), [d]),
|
|
3140
|
+
modal: s
|
|
3141
|
+
}, r);
|
|
3350
3142
|
};
|
|
3351
|
-
|
|
3352
|
-
function
|
|
3143
|
+
oi.displayName = ni;
|
|
3144
|
+
function si(e) {
|
|
3353
3145
|
return e ? "open" : "closed";
|
|
3354
3146
|
}
|
|
3355
|
-
var
|
|
3356
|
-
let { __scopeDialog:
|
|
3357
|
-
return /* @__PURE__ */
|
|
3147
|
+
var ci = oi, li = "DialogTrigger", ui = t.forwardRef((e, n) => {
|
|
3148
|
+
let { __scopeDialog: r, ...i } = e, a = Q(li, r), o = p(n, a.triggerRef);
|
|
3149
|
+
return /* @__PURE__ */ t.createElement(T.button, {
|
|
3358
3150
|
type: "button",
|
|
3359
3151
|
"aria-haspopup": "dialog",
|
|
3360
|
-
"aria-expanded":
|
|
3361
|
-
"aria-controls":
|
|
3362
|
-
"data-state":
|
|
3363
|
-
...
|
|
3364
|
-
ref:
|
|
3365
|
-
onClick:
|
|
3152
|
+
"aria-expanded": a.open,
|
|
3153
|
+
"aria-controls": a.contentId,
|
|
3154
|
+
"data-state": si(a.open),
|
|
3155
|
+
...i,
|
|
3156
|
+
ref: o,
|
|
3157
|
+
onClick: u(e.onClick, a.onOpenToggle)
|
|
3366
3158
|
});
|
|
3367
3159
|
});
|
|
3368
|
-
|
|
3369
|
-
var
|
|
3370
|
-
let { __scopeDialog: n, forceMount: r, children: i, container: a } = e, o = Q(
|
|
3371
|
-
return /* @__PURE__ */
|
|
3160
|
+
ui.displayName = li;
|
|
3161
|
+
var di = "DialogPortal", [fi] = c(ni), [pi, mi] = fi(di, { forceMount: void 0 }), hi = (e) => {
|
|
3162
|
+
let { __scopeDialog: n, forceMount: r, children: i, container: a } = e, o = Q(di, n);
|
|
3163
|
+
return /* @__PURE__ */ t.createElement(pi, {
|
|
3372
3164
|
scope: n,
|
|
3373
|
-
forceMount: r
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
container: a,
|
|
3379
|
-
children: e
|
|
3380
|
-
})
|
|
3381
|
-
}))
|
|
3382
|
-
});
|
|
3165
|
+
forceMount: r
|
|
3166
|
+
}, t.Children.map(i, (e) => /* @__PURE__ */ t.createElement(ge, { present: r || o.open }, /* @__PURE__ */ t.createElement(sn, {
|
|
3167
|
+
asChild: !0,
|
|
3168
|
+
container: a
|
|
3169
|
+
}, e))));
|
|
3383
3170
|
};
|
|
3384
|
-
|
|
3385
|
-
var
|
|
3386
|
-
let
|
|
3387
|
-
return
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
ref: t
|
|
3392
|
-
})
|
|
3393
|
-
}) : null;
|
|
3171
|
+
hi.displayName = di;
|
|
3172
|
+
var gi = "DialogOverlay", _i = t.forwardRef((e, n) => {
|
|
3173
|
+
let r = mi(gi, e.__scopeDialog), { forceMount: i = r.forceMount, ...a } = e, o = Q(gi, e.__scopeDialog);
|
|
3174
|
+
return o.modal ? /* @__PURE__ */ t.createElement(ge, { present: i || o.open }, /* @__PURE__ */ t.createElement(vi, {
|
|
3175
|
+
...a,
|
|
3176
|
+
ref: n
|
|
3177
|
+
})) : null;
|
|
3394
3178
|
});
|
|
3395
|
-
|
|
3396
|
-
var
|
|
3397
|
-
let { __scopeDialog:
|
|
3398
|
-
return /* @__PURE__ */
|
|
3399
|
-
as:
|
|
3179
|
+
_i.displayName = gi;
|
|
3180
|
+
var vi = t.forwardRef((e, n) => {
|
|
3181
|
+
let { __scopeDialog: r, ...i } = e, a = Q(gi, r);
|
|
3182
|
+
return /* @__PURE__ */ t.createElement(mr, {
|
|
3183
|
+
as: m,
|
|
3400
3184
|
allowPinchZoom: !0,
|
|
3401
|
-
shards: [
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
ref: t
|
|
3185
|
+
shards: [a.contentRef]
|
|
3186
|
+
}, /* @__PURE__ */ t.createElement(T.div, {
|
|
3187
|
+
"data-state": si(a.open),
|
|
3188
|
+
...i,
|
|
3189
|
+
ref: n,
|
|
3190
|
+
style: {
|
|
3191
|
+
pointerEvents: "auto",
|
|
3192
|
+
...i.style
|
|
3193
|
+
}
|
|
3194
|
+
}));
|
|
3195
|
+
}), yi = "DialogTitle", bi = t.forwardRef((e, n) => {
|
|
3196
|
+
let { __scopeDialog: r, ...i } = e, a = Q(yi, r);
|
|
3197
|
+
return /* @__PURE__ */ t.createElement(T.h2, {
|
|
3198
|
+
id: a.titleId,
|
|
3199
|
+
...i,
|
|
3200
|
+
ref: n
|
|
3418
3201
|
});
|
|
3419
3202
|
});
|
|
3420
|
-
|
|
3421
|
-
var $ = "DialogContent",
|
|
3422
|
-
let
|
|
3423
|
-
return /* @__PURE__ */ (
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
ref: t
|
|
3431
|
-
})
|
|
3432
|
-
});
|
|
3203
|
+
bi.displayName = yi;
|
|
3204
|
+
var $ = "DialogContent", xi = t.forwardRef((e, n) => {
|
|
3205
|
+
let r = mi($, e.__scopeDialog), { forceMount: i = r.forceMount, ...a } = e, o = Q($, e.__scopeDialog);
|
|
3206
|
+
return /* @__PURE__ */ t.createElement(ge, { present: i || o.open }, o.modal ? /* @__PURE__ */ t.createElement(Si, {
|
|
3207
|
+
...a,
|
|
3208
|
+
ref: n
|
|
3209
|
+
}) : /* @__PURE__ */ t.createElement(Ci, {
|
|
3210
|
+
...a,
|
|
3211
|
+
ref: n
|
|
3212
|
+
}));
|
|
3433
3213
|
});
|
|
3434
|
-
|
|
3435
|
-
var
|
|
3436
|
-
let r = Q($, e.__scopeDialog), i = t.useRef(null), a =
|
|
3214
|
+
xi.displayName = $;
|
|
3215
|
+
var Si = t.forwardRef((e, n) => {
|
|
3216
|
+
let r = Q($, e.__scopeDialog), i = t.useRef(null), a = p(n, r.contentRef, i);
|
|
3437
3217
|
return t.useEffect(() => {
|
|
3438
3218
|
let e = i.current;
|
|
3439
|
-
if (e) return
|
|
3440
|
-
}, []), /* @__PURE__ */
|
|
3219
|
+
if (e) return Cr(e);
|
|
3220
|
+
}, []), /* @__PURE__ */ t.createElement(wi, {
|
|
3441
3221
|
...e,
|
|
3442
3222
|
ref: a,
|
|
3443
3223
|
trapFocus: r.open,
|
|
3444
3224
|
disableOutsidePointerEvents: !0,
|
|
3445
|
-
onCloseAutoFocus:
|
|
3225
|
+
onCloseAutoFocus: u(e.onCloseAutoFocus, (e) => {
|
|
3446
3226
|
e.preventDefault(), r.triggerRef.current?.focus();
|
|
3447
3227
|
}),
|
|
3448
|
-
onPointerDownOutside:
|
|
3228
|
+
onPointerDownOutside: u(e.onPointerDownOutside, (e) => {
|
|
3449
3229
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
3450
3230
|
(t.button === 2 || n) && e.preventDefault();
|
|
3451
3231
|
}),
|
|
3452
|
-
onFocusOutside:
|
|
3232
|
+
onFocusOutside: u(e.onFocusOutside, (e) => e.preventDefault())
|
|
3453
3233
|
});
|
|
3454
|
-
}),
|
|
3234
|
+
}), Ci = t.forwardRef((e, n) => {
|
|
3455
3235
|
let r = Q($, e.__scopeDialog), i = t.useRef(!1), a = t.useRef(!1);
|
|
3456
|
-
return /* @__PURE__ */
|
|
3236
|
+
return /* @__PURE__ */ t.createElement(wi, {
|
|
3457
3237
|
...e,
|
|
3458
3238
|
ref: n,
|
|
3459
3239
|
trapFocus: !1,
|
|
@@ -3467,34 +3247,33 @@ var Di = t.forwardRef((e, n) => {
|
|
|
3467
3247
|
r.triggerRef.current?.contains(n) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && a.current && t.preventDefault();
|
|
3468
3248
|
}
|
|
3469
3249
|
});
|
|
3470
|
-
}),
|
|
3471
|
-
let { __scopeDialog: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, ...s } = e, c = Q($, r), l = t.useRef(null), u =
|
|
3472
|
-
return
|
|
3250
|
+
}), wi = t.forwardRef((e, n) => {
|
|
3251
|
+
let { __scopeDialog: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, ...s } = e, c = Q($, r), l = t.useRef(null), u = p(n, l);
|
|
3252
|
+
return ei(), /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(Hr, {
|
|
3473
3253
|
asChild: !0,
|
|
3474
3254
|
loop: !0,
|
|
3475
3255
|
trapped: i,
|
|
3476
3256
|
onMountAutoFocus: a,
|
|
3477
|
-
onUnmountAutoFocus: o
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
}), /* @__PURE__ */ (0, d.jsxs)(d.Fragment, { children: [/* @__PURE__ */ (0, d.jsx)(Ni, { titleId: c.titleId }), /* @__PURE__ */ (0, d.jsx)(Fi, {
|
|
3257
|
+
onUnmountAutoFocus: o
|
|
3258
|
+
}, /* @__PURE__ */ t.createElement(jr, {
|
|
3259
|
+
role: "dialog",
|
|
3260
|
+
id: c.contentId,
|
|
3261
|
+
"aria-describedby": c.descriptionId,
|
|
3262
|
+
"aria-labelledby": c.titleId,
|
|
3263
|
+
"data-state": si(c.open),
|
|
3264
|
+
...s,
|
|
3265
|
+
ref: u,
|
|
3266
|
+
onDismiss: () => c.onOpenChange(!1)
|
|
3267
|
+
})), /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(Oi, { titleId: c.titleId }), /* @__PURE__ */ t.createElement(Ai, {
|
|
3489
3268
|
contentRef: l,
|
|
3490
3269
|
descriptionId: c.descriptionId
|
|
3491
|
-
})
|
|
3492
|
-
}),
|
|
3270
|
+
})));
|
|
3271
|
+
}), Ti = "DialogTitleWarning", [Ei, Di] = s(Ti, {
|
|
3493
3272
|
contentName: $,
|
|
3494
|
-
titleName:
|
|
3273
|
+
titleName: yi,
|
|
3495
3274
|
docsSlug: "dialog"
|
|
3496
|
-
}),
|
|
3497
|
-
let n =
|
|
3275
|
+
}), Oi = ({ titleId: e }) => {
|
|
3276
|
+
let n = Di(Ti), r = `\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
3498
3277
|
|
|
3499
3278
|
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
3500
3279
|
|
|
@@ -3502,8 +3281,8 @@ For more information, see https://huinhub.com/primitives/docs/components/${n.doc
|
|
|
3502
3281
|
return t.useEffect(() => {
|
|
3503
3282
|
e && (document.getElementById(e) || console.error(r));
|
|
3504
3283
|
}, [r, e]), null;
|
|
3505
|
-
},
|
|
3506
|
-
let r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
3284
|
+
}, ki = "DialogDescriptionWarning", Ai = ({ contentRef: e, descriptionId: n }) => {
|
|
3285
|
+
let r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Di(ki).contentName}}.`;
|
|
3507
3286
|
return t.useEffect(() => {
|
|
3508
3287
|
let t = e.current?.getAttribute("aria-describedby");
|
|
3509
3288
|
n && t && (document.getElementById(n) || console.warn(r));
|
|
@@ -3512,39 +3291,39 @@ For more information, see https://huinhub.com/primitives/docs/components/${n.doc
|
|
|
3512
3291
|
e,
|
|
3513
3292
|
n
|
|
3514
3293
|
]), null;
|
|
3515
|
-
},
|
|
3516
|
-
let { __scopeDialog:
|
|
3517
|
-
return /* @__PURE__ */
|
|
3518
|
-
id:
|
|
3519
|
-
...
|
|
3520
|
-
ref:
|
|
3294
|
+
}, ji = "DialogDescription", Mi = t.forwardRef((e, n) => {
|
|
3295
|
+
let { __scopeDialog: r, className: i, ...a } = e, o = Q(ji, r);
|
|
3296
|
+
return /* @__PURE__ */ t.createElement(T.p, {
|
|
3297
|
+
id: o.descriptionId,
|
|
3298
|
+
...a,
|
|
3299
|
+
ref: n
|
|
3521
3300
|
});
|
|
3522
3301
|
});
|
|
3523
|
-
|
|
3524
|
-
var
|
|
3525
|
-
let { __scopeDialog:
|
|
3526
|
-
return /* @__PURE__ */
|
|
3302
|
+
Mi.displayName = ji;
|
|
3303
|
+
var Ni = "DialogClose", Pi = t.forwardRef((e, n) => {
|
|
3304
|
+
let { __scopeDialog: r, ...i } = e, a = Q(Ni, r);
|
|
3305
|
+
return /* @__PURE__ */ t.createElement(T.button, {
|
|
3527
3306
|
type: "button",
|
|
3528
|
-
...
|
|
3529
|
-
ref:
|
|
3530
|
-
onClick:
|
|
3307
|
+
...i,
|
|
3308
|
+
ref: n,
|
|
3309
|
+
onClick: u(e.onClick, () => a.onOpenChange(!1))
|
|
3531
3310
|
});
|
|
3532
3311
|
});
|
|
3533
|
-
|
|
3312
|
+
Pi.displayName = Ni;
|
|
3534
3313
|
//#endregion
|
|
3535
3314
|
//#region ../../node_modules/class-variance-authority/dist/index.mjs
|
|
3536
|
-
var
|
|
3537
|
-
if (t?.variants == null) return
|
|
3315
|
+
var Fi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ii = Ie, Li = (e, t) => (n) => {
|
|
3316
|
+
if (t?.variants == null) return Ii(e, n?.class, n?.className);
|
|
3538
3317
|
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
3539
3318
|
let t = n?.[e], a = i?.[e];
|
|
3540
3319
|
if (t === null) return null;
|
|
3541
|
-
let o =
|
|
3320
|
+
let o = Fi(t) || Fi(a);
|
|
3542
3321
|
return r[e][o];
|
|
3543
3322
|
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
3544
3323
|
let [n, r] = t;
|
|
3545
3324
|
return r === void 0 || (e[n] = r), e;
|
|
3546
3325
|
}, {});
|
|
3547
|
-
return
|
|
3326
|
+
return Ii(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
3548
3327
|
let { class: n, className: r, ...a } = t;
|
|
3549
3328
|
return Object.entries(a).every((e) => {
|
|
3550
3329
|
let [t, n] = e;
|
|
@@ -3561,7 +3340,7 @@ var Bi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Vi = Be, Hi
|
|
|
3561
3340
|
r
|
|
3562
3341
|
] : e;
|
|
3563
3342
|
}, []), n?.class, n?.className);
|
|
3564
|
-
},
|
|
3343
|
+
}, Ri = Li("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", {
|
|
3565
3344
|
variants: {
|
|
3566
3345
|
variant: {
|
|
3567
3346
|
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -3582,19 +3361,22 @@ var Bi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Vi = Be, Hi
|
|
|
3582
3361
|
variant: "default",
|
|
3583
3362
|
size: "default"
|
|
3584
3363
|
}
|
|
3585
|
-
}),
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
}))
|
|
3594
|
-
|
|
3364
|
+
}), zi = e.forwardRef(({ asChild: t = !1, variant: n, size: r, className: i, ...a }, o) => {
|
|
3365
|
+
let s = t ? m : T.button;
|
|
3366
|
+
return /* @__PURE__ */ e.createElement(s, {
|
|
3367
|
+
ref: o,
|
|
3368
|
+
className: J(Ri({
|
|
3369
|
+
variant: n,
|
|
3370
|
+
size: r,
|
|
3371
|
+
className: i
|
|
3372
|
+
})),
|
|
3373
|
+
...a
|
|
3374
|
+
});
|
|
3375
|
+
});
|
|
3376
|
+
zi.displayName = "Button";
|
|
3595
3377
|
//#endregion
|
|
3596
3378
|
//#region src/ui/components/Dialog.tsx
|
|
3597
|
-
var
|
|
3379
|
+
var Bi = Li("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", {
|
|
3598
3380
|
variants: { variant: {
|
|
3599
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",
|
|
3600
3382
|
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
@@ -3603,237 +3385,147 @@ var Gi = Hi("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out
|
|
|
3603
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"
|
|
3604
3386
|
} },
|
|
3605
3387
|
defaultVariants: { variant: "center" }
|
|
3606
|
-
}),
|
|
3607
|
-
ref:
|
|
3608
|
-
className:
|
|
3609
|
-
...
|
|
3388
|
+
}), Vi = ci, Hi = hi, Ui = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(_i, {
|
|
3389
|
+
ref: r,
|
|
3390
|
+
className: J("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
|
+
...n
|
|
3610
3392
|
}));
|
|
3611
|
-
|
|
3612
|
-
var
|
|
3613
|
-
ref:
|
|
3614
|
-
className:
|
|
3615
|
-
variant:
|
|
3616
|
-
className:
|
|
3393
|
+
Ui.displayName = _i.displayName;
|
|
3394
|
+
var Wi = e.forwardRef(({ className: t, variant: n, children: r, ...i }, a) => /* @__PURE__ */ e.createElement(Hi, null, /* @__PURE__ */ e.createElement(Ui, null), /* @__PURE__ */ e.createElement(xi, {
|
|
3395
|
+
ref: a,
|
|
3396
|
+
className: J(Bi({
|
|
3397
|
+
variant: n,
|
|
3398
|
+
className: t
|
|
3617
3399
|
})),
|
|
3618
|
-
...
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
className: "sr-only",
|
|
3637
|
-
children: "Close"
|
|
3638
|
-
})]
|
|
3639
|
-
})]
|
|
3640
|
-
})] }));
|
|
3641
|
-
Yi.displayName = Ei.displayName;
|
|
3642
|
-
var Xi = ({ className: e, ...t }) => /* @__PURE__ */ (0, d.jsx)("div", {
|
|
3643
|
-
className: Y("flex flex-col space-y-1.5 text-center sm:text-left", e),
|
|
3644
|
-
...t
|
|
3400
|
+
...i
|
|
3401
|
+
}, r, /* @__PURE__ */ e.createElement(Pi, { 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(zi, {
|
|
3402
|
+
variant: "ghost",
|
|
3403
|
+
size: "icon"
|
|
3404
|
+
}, /* @__PURE__ */ e.createElement("svg", {
|
|
3405
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3406
|
+
viewBox: "0 0 24 24",
|
|
3407
|
+
className: "!size-4",
|
|
3408
|
+
fill: "none",
|
|
3409
|
+
stroke: "currentColor",
|
|
3410
|
+
strokeWidth: "1.5",
|
|
3411
|
+
strokeLinecap: "round",
|
|
3412
|
+
strokeLinejoin: "round"
|
|
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
|
+
Wi.displayName = xi.displayName;
|
|
3415
|
+
var Gi = ({ className: t, ...n }) => /* @__PURE__ */ e.createElement("div", {
|
|
3416
|
+
className: J("flex flex-col space-y-1.5 text-center sm:text-left", t),
|
|
3417
|
+
...n
|
|
3645
3418
|
});
|
|
3646
|
-
|
|
3647
|
-
var
|
|
3648
|
-
className:
|
|
3649
|
-
...
|
|
3419
|
+
Gi.displayName = "DialogHeader";
|
|
3420
|
+
var Ki = ({ className: t, ...n }) => /* @__PURE__ */ e.createElement("div", {
|
|
3421
|
+
className: J("flex flex-col-reverse h-fit sm:flex-row sm:justify-end sm:space-x-2 mt-auto", t),
|
|
3422
|
+
...n
|
|
3650
3423
|
});
|
|
3651
|
-
|
|
3652
|
-
var
|
|
3653
|
-
ref:
|
|
3654
|
-
className:
|
|
3655
|
-
...
|
|
3424
|
+
Ki.displayName = "DialogFooter";
|
|
3425
|
+
var qi = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(bi, {
|
|
3426
|
+
ref: r,
|
|
3427
|
+
className: J("text-lg font-semibold leading-none tracking-tight", t),
|
|
3428
|
+
...n
|
|
3656
3429
|
}));
|
|
3657
|
-
|
|
3658
|
-
var
|
|
3659
|
-
ref:
|
|
3660
|
-
className:
|
|
3661
|
-
...
|
|
3430
|
+
qi.displayName = bi.displayName;
|
|
3431
|
+
var Ji = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Mi, {
|
|
3432
|
+
ref: r,
|
|
3433
|
+
className: J("text-sm text-muted-foreground", t),
|
|
3434
|
+
...n
|
|
3662
3435
|
}));
|
|
3663
|
-
|
|
3436
|
+
Ji.displayName = Mi.displayName;
|
|
3664
3437
|
//#endregion
|
|
3665
3438
|
//#region src/ui/widgets/MarkdownViewer.tsx
|
|
3666
|
-
var
|
|
3667
|
-
let
|
|
3668
|
-
for (; (
|
|
3669
|
-
|
|
3670
|
-
let
|
|
3671
|
-
if (
|
|
3672
|
-
else if (
|
|
3673
|
-
else if (
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
let [, e, r] = n.match(/\[([^\]]+)\]\(([^)]+)\)/) || [];
|
|
3679
|
-
t.push(/* @__PURE__ */ (0, d.jsx)("a", {
|
|
3680
|
-
href: r,
|
|
3439
|
+
var Yi = (e) => {
|
|
3440
|
+
let n = [], r = /(\*\*[^*]+\*\*|\*[^*]+\*|`[^`]+`|\[[^\]]+\]\([^)]+\))/g, i = 0, a;
|
|
3441
|
+
for (; (a = r.exec(e)) !== null;) {
|
|
3442
|
+
a.index > i && n.push(e.slice(i, a.index));
|
|
3443
|
+
let r = a[0];
|
|
3444
|
+
if (r.startsWith("**")) n.push(/* @__PURE__ */ t.createElement("strong", null, r.slice(2, -2)));
|
|
3445
|
+
else if (r.startsWith("*")) n.push(/* @__PURE__ */ t.createElement("em", null, r.slice(1, -1)));
|
|
3446
|
+
else if (r.startsWith("`")) n.push(/* @__PURE__ */ t.createElement("code", { className: "px-1 py-0.5 bg-primary rounded text-sm text-primary-foreground" }, r.slice(1, -1)));
|
|
3447
|
+
else if (r.startsWith("[")) {
|
|
3448
|
+
let [, e, i] = r.match(/\[([^\]]+)\]\(([^)]+)\)/) || [];
|
|
3449
|
+
n.push(/* @__PURE__ */ t.createElement("a", {
|
|
3450
|
+
href: i,
|
|
3681
3451
|
target: "_blank",
|
|
3682
3452
|
rel: "noreferrer",
|
|
3683
|
-
className: "text-blue-400 underline"
|
|
3684
|
-
|
|
3685
|
-
}));
|
|
3453
|
+
className: "text-blue-400 underline"
|
|
3454
|
+
}, e));
|
|
3686
3455
|
}
|
|
3687
|
-
|
|
3456
|
+
i = a.index + r.length;
|
|
3688
3457
|
}
|
|
3689
|
-
return
|
|
3690
|
-
},
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
}), na = ({ rows: e }) => /* @__PURE__ */ (0, d.jsx)("div", {
|
|
3700
|
-
className: "overflow-x-auto my-4",
|
|
3701
|
-
children: /* @__PURE__ */ (0, d.jsx)("table", {
|
|
3702
|
-
className: "w-full border border-gray-700 text-sm",
|
|
3703
|
-
children: /* @__PURE__ */ (0, d.jsx)("tbody", { children: e.map((e, t) => /* @__PURE__ */ (0, d.jsx)("tr", {
|
|
3704
|
-
className: "border-b border-gray-800",
|
|
3705
|
-
children: e.map((e, t) => /* @__PURE__ */ (0, d.jsx)("td", {
|
|
3706
|
-
className: "px-3 py-2",
|
|
3707
|
-
children: ea(e)
|
|
3708
|
-
}, t))
|
|
3709
|
-
}, t)) })
|
|
3710
|
-
})
|
|
3711
|
-
}), ra = ({ items: e }) => /* @__PURE__ */ (0, d.jsx)("ul", {
|
|
3712
|
-
className: "list-disc ml-6 my-2 space-y-1",
|
|
3713
|
-
children: e.map((e, t) => /* @__PURE__ */ (0, d.jsx)("li", { children: ea(e) }, t))
|
|
3714
|
-
}), ia = ({ content: e, className: t = "" }) => {
|
|
3715
|
-
let n = e.split("\n"), r = [], i = [], a = !1, o = [], s = [], c = () => {
|
|
3716
|
-
o.length && (r.push(/* @__PURE__ */ (0, d.jsx)(ra, { items: o })), o = []);
|
|
3717
|
-
}, l = () => {
|
|
3718
|
-
s.length && (r.push(/* @__PURE__ */ (0, d.jsx)(na, { rows: s })), s = []);
|
|
3458
|
+
return i < e.length && n.push(e.slice(i)), n;
|
|
3459
|
+
}, Xi = ({ 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))), Zi = ({ 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
|
+
key: n,
|
|
3461
|
+
className: "border-b border-gray-800"
|
|
3462
|
+
}, e.map((e, n) => /* @__PURE__ */ t.createElement("td", {
|
|
3463
|
+
key: n,
|
|
3464
|
+
className: "px-3 py-2"
|
|
3465
|
+
}, Yi(e)))))))), Qi = ({ 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 }, Yi(e)))), $i = ({ content: e, className: n = "" }) => {
|
|
3466
|
+
let r = e.split("\n"), i = [], a = [], o = !1, s = [], c = [], l = () => {
|
|
3467
|
+
s.length && (i.push(/* @__PURE__ */ t.createElement(Qi, { items: s })), s = []);
|
|
3719
3468
|
}, u = () => {
|
|
3720
|
-
|
|
3469
|
+
c.length && (i.push(/* @__PURE__ */ t.createElement(Zi, { rows: c })), c = []);
|
|
3470
|
+
}, d = () => {
|
|
3471
|
+
a.length && (i.push(/* @__PURE__ */ t.createElement(Xi, { code: a.join("\n") })), a = []);
|
|
3721
3472
|
};
|
|
3722
|
-
for (let e of
|
|
3723
|
-
let
|
|
3724
|
-
if (
|
|
3725
|
-
|
|
3473
|
+
for (let e of r) {
|
|
3474
|
+
let n = e.trim();
|
|
3475
|
+
if (n.startsWith("```")) {
|
|
3476
|
+
o ? (o = !1, d()) : (l(), u(), o = !0);
|
|
3726
3477
|
continue;
|
|
3727
3478
|
}
|
|
3728
|
-
if (
|
|
3729
|
-
|
|
3479
|
+
if (o) {
|
|
3480
|
+
a.push(e);
|
|
3730
3481
|
continue;
|
|
3731
3482
|
}
|
|
3732
|
-
if (
|
|
3733
|
-
let e =
|
|
3734
|
-
|
|
3483
|
+
if (n.includes("|")) {
|
|
3484
|
+
let e = n.split("|").map((e) => e.trim()).filter(Boolean);
|
|
3485
|
+
c.push(e);
|
|
3735
3486
|
continue;
|
|
3736
|
-
} else
|
|
3737
|
-
if (/^[-*]\s+/.test(
|
|
3738
|
-
|
|
3487
|
+
} else u();
|
|
3488
|
+
if (/^[-*]\s+/.test(n)) {
|
|
3489
|
+
s.push(n.replace(/^[-*]\s+/, ""));
|
|
3739
3490
|
continue;
|
|
3740
|
-
} else
|
|
3741
|
-
if (
|
|
3742
|
-
|
|
3743
|
-
className: "text-3xl font-bold my-4",
|
|
3744
|
-
children: ea(t.slice(2))
|
|
3745
|
-
}));
|
|
3491
|
+
} else l();
|
|
3492
|
+
if (n.startsWith("# ")) {
|
|
3493
|
+
i.push(/* @__PURE__ */ t.createElement("h1", { className: "text-3xl font-bold my-4" }, Yi(n.slice(2))));
|
|
3746
3494
|
continue;
|
|
3747
3495
|
}
|
|
3748
|
-
if (
|
|
3749
|
-
|
|
3750
|
-
className: "text-2xl font-semibold my-3",
|
|
3751
|
-
children: ea(t.slice(3))
|
|
3752
|
-
}));
|
|
3496
|
+
if (n.startsWith("## ")) {
|
|
3497
|
+
i.push(/* @__PURE__ */ t.createElement("h2", { className: "text-2xl font-semibold my-3" }, Yi(n.slice(3))));
|
|
3753
3498
|
continue;
|
|
3754
3499
|
}
|
|
3755
|
-
if (
|
|
3756
|
-
|
|
3757
|
-
className: "text-xl font-medium my-2",
|
|
3758
|
-
children: ea(t.slice(4))
|
|
3759
|
-
}));
|
|
3500
|
+
if (n.startsWith("### ")) {
|
|
3501
|
+
i.push(/* @__PURE__ */ t.createElement("h3", { className: "text-xl font-medium my-2" }, Yi(n.slice(4))));
|
|
3760
3502
|
continue;
|
|
3761
3503
|
}
|
|
3762
|
-
if (!
|
|
3763
|
-
|
|
3504
|
+
if (!n) {
|
|
3505
|
+
i.push(/* @__PURE__ */ t.createElement("div", { className: "h-3" }));
|
|
3764
3506
|
continue;
|
|
3765
3507
|
}
|
|
3766
|
-
|
|
3767
|
-
className: "text-sm leading-7",
|
|
3768
|
-
children: ea(t)
|
|
3769
|
-
}));
|
|
3508
|
+
i.push(/* @__PURE__ */ t.createElement("p", { className: "text-sm leading-7" }, Yi(n)));
|
|
3770
3509
|
}
|
|
3771
|
-
return
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
}, aa = () => {
|
|
3776
|
-
let { openDialogId: e, closeDialog: t, dialogMeta: n } = la();
|
|
3777
|
-
return /* @__PURE__ */ (0, d.jsx)(Ki, {
|
|
3510
|
+
return l(), u(), d(), /* @__PURE__ */ t.createElement("div", { className: `markdown-body ${n}` }, i);
|
|
3511
|
+
}, ea = () => {
|
|
3512
|
+
let { openDialogId: e, closeDialog: n, dialogMeta: r } = aa();
|
|
3513
|
+
return /* @__PURE__ */ t.createElement(Vi, {
|
|
3778
3514
|
open: e !== null,
|
|
3779
|
-
onOpenChange: (e) => !e &&
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
children: [
|
|
3789
|
-
/* @__PURE__ */ (0, d.jsx)(cn, {
|
|
3790
|
-
value: "md",
|
|
3791
|
-
children: ".md"
|
|
3792
|
-
}),
|
|
3793
|
-
/* @__PURE__ */ (0, d.jsx)(cn, {
|
|
3794
|
-
value: "props-tracker",
|
|
3795
|
-
children: "Props Tracker"
|
|
3796
|
-
}),
|
|
3797
|
-
/* @__PURE__ */ (0, d.jsx)(cn, {
|
|
3798
|
-
value: "api-layer",
|
|
3799
|
-
children: "API Layer"
|
|
3800
|
-
}),
|
|
3801
|
-
/* @__PURE__ */ (0, d.jsx)(cn, {
|
|
3802
|
-
value: "event-tracker",
|
|
3803
|
-
children: "Event Tracker"
|
|
3804
|
-
})
|
|
3805
|
-
]
|
|
3806
|
-
}) })] }),
|
|
3807
|
-
/* @__PURE__ */ (0, d.jsx)(ln, {
|
|
3808
|
-
value: "md",
|
|
3809
|
-
children: /* @__PURE__ */ (0, d.jsx)(ia, { content: n?.md || "" })
|
|
3810
|
-
}),
|
|
3811
|
-
/* @__PURE__ */ (0, d.jsx)(ln, {
|
|
3812
|
-
value: "props-tracker",
|
|
3813
|
-
children: n.componentProps && /* @__PURE__ */ (0, d.jsx)("pre", {
|
|
3814
|
-
className: "bg-primary text-primary-foreground p-4 rounded-md overflow-x-auto h-full",
|
|
3815
|
-
children: /* @__PURE__ */ (0, d.jsx)("code", {
|
|
3816
|
-
className: "text-wrap block whitespace-pre text-sm",
|
|
3817
|
-
children: JSON.stringify(n.componentProps, null, 2)
|
|
3818
|
-
})
|
|
3819
|
-
})
|
|
3820
|
-
}),
|
|
3821
|
-
/* @__PURE__ */ (0, d.jsx)(ln, { value: "api-layer" }),
|
|
3822
|
-
/* @__PURE__ */ (0, d.jsx)(ln, { value: "event-tracker" }),
|
|
3823
|
-
/* @__PURE__ */ (0, d.jsx)(Zi, {})
|
|
3824
|
-
]
|
|
3825
|
-
})
|
|
3826
|
-
})
|
|
3827
|
-
});
|
|
3828
|
-
}, oa = ({ children: e, active: t = !0 }) => {
|
|
3829
|
-
if (!t) return /* @__PURE__ */ (0, d.jsx)(d.Fragment, { children: e });
|
|
3830
|
-
let { activeRect: n } = la(), r = n ? n.left + n.width / 2 : 0, i = n ? n.top + n.height / 2 : 0;
|
|
3831
|
-
return /* @__PURE__ */ (0, d.jsx)(d.Fragment, { children: /* @__PURE__ */ (0, d.jsxs)(dn, { children: [n && /* @__PURE__ */ (0, d.jsx)("div", {
|
|
3515
|
+
onOpenChange: (e) => !e && n()
|
|
3516
|
+
}, /* @__PURE__ */ t.createElement(tn, {
|
|
3517
|
+
className: "mt-1",
|
|
3518
|
+
defaultValue: "md"
|
|
3519
|
+
}, /* @__PURE__ */ t.createElement(Wi, { className: "h-fit overflow-y-auto" }, /* @__PURE__ */ t.createElement(Gi, null, /* @__PURE__ */ t.createElement(qi, null, "Sentinel"), /* @__PURE__ */ t.createElement(Ji, null, /* @__PURE__ */ t.createElement(nn, { className: "grid w-full grid-cols-4" }, /* @__PURE__ */ t.createElement(rn, { value: "md" }, ".md"), /* @__PURE__ */ t.createElement(rn, { value: "props-tracker" }, "Props Tracker"), /* @__PURE__ */ t.createElement(rn, { value: "api-layer" }, "API Layer"), /* @__PURE__ */ t.createElement(rn, { value: "event-tracker" }, "Event Tracker")))), /* @__PURE__ */ t.createElement(an, { value: "md" }, /* @__PURE__ */ t.createElement($i, { content: r?.md || "" })), /* @__PURE__ */ t.createElement(an, { value: "props-tracker" }, r.componentProps && /* @__PURE__ */ t.createElement("pre", { className: "bg-primary text-primary-foreground p-4 rounded-md overflow-x-auto h-full" }, /* @__PURE__ */ t.createElement("code", { className: "text-wrap block whitespace-pre text-sm" }, JSON.stringify(r.componentProps, null, 2)))), /* @__PURE__ */ t.createElement(an, { value: "api-layer" }), /* @__PURE__ */ t.createElement(an, { value: "event-tracker" }), /* @__PURE__ */ t.createElement(Ki, null))));
|
|
3520
|
+
}, ta = ({ children: e, active: n = !0 }) => {
|
|
3521
|
+
if (!n) return /* @__PURE__ */ t.createElement(t.Fragment, null, e);
|
|
3522
|
+
let { activeRect: r } = aa(), i = r ? r.left + r.width / 2 : 0, a = r ? r.top + r.height / 2 : 0;
|
|
3523
|
+
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(sn, null, r && /* @__PURE__ */ t.createElement("div", {
|
|
3832
3524
|
className: "pointer-events-none fixed inset-0 z-50 transition-all duration-500 ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
3833
3525
|
style: {
|
|
3834
3526
|
background: `
|
|
3835
3527
|
radial-gradient(
|
|
3836
|
-
circle at ${
|
|
3528
|
+
circle at ${i}px ${a}px,
|
|
3837
3529
|
rgba(255, 255, 255, 0.04) 0%,
|
|
3838
3530
|
rgba(255,255,255,0.01) 25%,
|
|
3839
3531
|
rgba(15, 15, 18, 0.35) 60%,
|
|
@@ -3843,62 +3535,62 @@ var ea = (e) => {
|
|
|
3843
3535
|
backdropFilter: "blur(8px) saturate(140%) contrast(105%)",
|
|
3844
3536
|
WebkitBackdropFilter: "blur(8px) saturate(140%) contrast(105%)"
|
|
3845
3537
|
}
|
|
3846
|
-
}), e
|
|
3847
|
-
},
|
|
3848
|
-
let [
|
|
3849
|
-
return /* @__PURE__ */
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
n(e), a(t);
|
|
3857
|
-
},
|
|
3858
|
-
unregisterHover: (e) => {
|
|
3859
|
-
n((t) => t === e ? null : t), a((n) => n?.width && t === e ? null : r);
|
|
3860
|
-
},
|
|
3861
|
-
openDialog: (e, t, n, r) => {
|
|
3862
|
-
s(e), l({
|
|
3863
|
-
title: t,
|
|
3864
|
-
md: n,
|
|
3865
|
-
componentProps: r
|
|
3866
|
-
});
|
|
3867
|
-
},
|
|
3868
|
-
closeDialog: () => {
|
|
3869
|
-
s(null), l({});
|
|
3870
|
-
}
|
|
3538
|
+
}), e));
|
|
3539
|
+
}, na = n(void 0), ra = ({ children: e }) => {
|
|
3540
|
+
let [n, r] = i(null), [a, o] = i(null), [s, c] = i(null), [l, u] = i({});
|
|
3541
|
+
return /* @__PURE__ */ t.createElement(na.Provider, { value: {
|
|
3542
|
+
activeId: n,
|
|
3543
|
+
activeRect: a,
|
|
3544
|
+
openDialogId: s,
|
|
3545
|
+
dialogMeta: l,
|
|
3546
|
+
registerHover: (e, t) => {
|
|
3547
|
+
r(e), o(t);
|
|
3871
3548
|
},
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
},
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3549
|
+
unregisterHover: (e) => {
|
|
3550
|
+
r((t) => t === e ? null : t), o((t) => t?.width && n === e ? null : a);
|
|
3551
|
+
},
|
|
3552
|
+
openDialog: (e, t, n, r) => {
|
|
3553
|
+
c(e), u({
|
|
3554
|
+
title: t,
|
|
3555
|
+
md: n,
|
|
3556
|
+
componentProps: r
|
|
3557
|
+
});
|
|
3558
|
+
},
|
|
3559
|
+
closeDialog: () => {
|
|
3560
|
+
c(null), u({});
|
|
3561
|
+
}
|
|
3562
|
+
} }, e, /* @__PURE__ */ t.createElement(ta, null, /* @__PURE__ */ t.createElement(ea, null)));
|
|
3563
|
+
}, ia = {
|
|
3564
|
+
activeId: null,
|
|
3565
|
+
activeRect: null,
|
|
3566
|
+
openDialogId: null,
|
|
3567
|
+
dialogMeta: {},
|
|
3568
|
+
registerHover: () => {},
|
|
3569
|
+
unregisterHover: () => {},
|
|
3570
|
+
openDialog: () => {},
|
|
3571
|
+
closeDialog: () => {}
|
|
3572
|
+
}, aa = () => r(na) ?? ia, oa = ({ children: e, dialogTitle: n, dialogMd: r, componentProps: i }) => {
|
|
3573
|
+
let a = w(), { activeId: o, registerHover: s, unregisterHover: c, openDialog: l } = aa(), u = o === a;
|
|
3574
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
3881
3575
|
onMouseMove: (e) => {
|
|
3882
|
-
e.stopPropagation(),
|
|
3576
|
+
e.stopPropagation(), s(a, e.currentTarget.getBoundingClientRect());
|
|
3883
3577
|
},
|
|
3884
3578
|
onMouseLeave: (e) => {
|
|
3885
|
-
e.stopPropagation(),
|
|
3579
|
+
e.stopPropagation(), c(a);
|
|
3886
3580
|
},
|
|
3887
3581
|
onClick: (e) => {
|
|
3888
|
-
e.stopPropagation(),
|
|
3582
|
+
e.stopPropagation(), l(a, n, r, i);
|
|
3889
3583
|
},
|
|
3890
|
-
style: { zIndex:
|
|
3891
|
-
className: "relative transition-all duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]"
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
})
|
|
3901
|
-
});
|
|
3584
|
+
style: { zIndex: u ? 51 : "initial" },
|
|
3585
|
+
className: "relative transition-all duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]"
|
|
3586
|
+
}, /* @__PURE__ */ t.createElement("div", {
|
|
3587
|
+
className: "w-full h-full p-0.5 transition-all duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
3588
|
+
style: {
|
|
3589
|
+
zIndex: u ? 51 : "auto",
|
|
3590
|
+
border: u ? "2px dashed rgba(99, 102, 241, 0.55)" : "2px solid transparent",
|
|
3591
|
+
borderRadius: "inherit"
|
|
3592
|
+
}
|
|
3593
|
+
}, e));
|
|
3902
3594
|
};
|
|
3903
3595
|
//#endregion
|
|
3904
|
-
export {
|
|
3596
|
+
export { oa as Sentinel, ra as SentinelProvider, aa as useSentinel };
|