@aindy/ui-kit 1.0.0 → 1.0.2
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +563 -563
- package/dist/index.js.map +1 -1
- package/package.json +14 -2
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as w, jsxs as H, Fragment as
|
|
1
|
+
import { jsx as w, jsxs as H, Fragment as Or } from "react/jsx-runtime";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { Outlet as
|
|
5
|
-
import * as
|
|
6
|
-
function
|
|
3
|
+
import { createContext as yn, useContext as xn, useState as q, useMemo as Ze, useEffect as Se, useRef as xt, useLayoutEffect as kr, useCallback as Qe } from "react";
|
|
4
|
+
import { Outlet as wn, NavLink as Nr, useLocation as _r, Navigate as Ht } from "react-router-dom";
|
|
5
|
+
import * as vn from "react-dom";
|
|
6
|
+
function $a(e) {
|
|
7
7
|
return Array.isArray(e) ? e : e == null ? [] : [];
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Bt(e, t) {
|
|
10
10
|
return Array.isArray(e) ? e.map(t) : (console.warn("safeMap prevented crash. Value:", e), []);
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const jt = "http://localhost:8000".replace(/\/$/, ""), Tt = "token", Ot = "aindy_token", En = globalThis.__AINDY_APP_VERSION_OVERRIDE__ || "1.0.2", Pr = /* @__PURE__ */ new Set([
|
|
13
13
|
"agents",
|
|
14
14
|
"allowed_auto_grant_tools",
|
|
15
15
|
"allowed_capabilities",
|
|
@@ -51,14 +51,14 @@ class J extends Error {
|
|
|
51
51
|
super(n), this.name = "ApiError", this.status = t, this.body = r;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Ia(e, t) {
|
|
55
55
|
return function(...n) {
|
|
56
56
|
return t(...n).catch((r) => {
|
|
57
57
|
throw r instanceof J && (r.domain = e), r;
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function kt(e) {
|
|
62
62
|
if (e && typeof e == "object" && "data" in e && "error" in e) {
|
|
63
63
|
if (e.error)
|
|
64
64
|
throw new J(200, e.error, e);
|
|
@@ -68,13 +68,13 @@ function Ia(e) {
|
|
|
68
68
|
}
|
|
69
69
|
function De(e) {
|
|
70
70
|
if (Array.isArray(e))
|
|
71
|
-
return
|
|
71
|
+
return Bt(e, (n) => De(n));
|
|
72
72
|
if (!e || typeof e != "object")
|
|
73
73
|
return e;
|
|
74
74
|
const t = {};
|
|
75
75
|
for (const [n, r] of Object.entries(e)) {
|
|
76
|
-
if (
|
|
77
|
-
t[n] = Array.isArray(r) ?
|
|
76
|
+
if (Pr.has(n)) {
|
|
77
|
+
t[n] = Array.isArray(r) ? Bt(r, (o) => De(o)) : [];
|
|
78
78
|
continue;
|
|
79
79
|
}
|
|
80
80
|
t[n] = De(r);
|
|
@@ -84,25 +84,25 @@ function De(e) {
|
|
|
84
84
|
function Oe() {
|
|
85
85
|
return localStorage.getItem(Tt) || localStorage.getItem(Ot) || "";
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Yt(e) {
|
|
88
88
|
localStorage.setItem(Tt, e), localStorage.setItem(Ot, e);
|
|
89
89
|
}
|
|
90
90
|
function Me() {
|
|
91
91
|
localStorage.removeItem(Tt), localStorage.removeItem(Ot);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
return /^https?:\/\//i.test(e) ? e :
|
|
93
|
+
function $r(e) {
|
|
94
|
+
return /^https?:\/\//i.test(e) ? e : jt ? `${jt}${e}` : e;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function An() {
|
|
97
97
|
typeof window > "u" || typeof window.dispatchEvent != "function" || window.dispatchEvent(new CustomEvent("aindy:session-expired"));
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Cn(e) {
|
|
100
100
|
typeof window > "u" || typeof window.dispatchEvent != "function" || window.dispatchEvent(
|
|
101
101
|
new CustomEvent("aindy:version-warning", { detail: { message: e } })
|
|
102
102
|
);
|
|
103
103
|
}
|
|
104
104
|
async function We(e, t = {}) {
|
|
105
|
-
const n =
|
|
105
|
+
const n = $r(e), r = Oe(), o = new AbortController(), { _isRetry: s = !1, ...i } = t, l = typeof window < "u" ? setTimeout(() => o.abort(), 3e4) : null;
|
|
106
106
|
i.signal && (i.signal.aborted ? o.abort() : i.signal.addEventListener("abort", () => o.abort(), { once: !0 }));
|
|
107
107
|
try {
|
|
108
108
|
const c = await fetch(n, {
|
|
@@ -110,12 +110,12 @@ async function We(e, t = {}) {
|
|
|
110
110
|
signal: o.signal,
|
|
111
111
|
headers: {
|
|
112
112
|
"Content-Type": "application/json",
|
|
113
|
-
"X-Client-Version":
|
|
113
|
+
"X-Client-Version": En,
|
|
114
114
|
...r ? { Authorization: `Bearer ${r}` } : {},
|
|
115
115
|
...i.headers || {}
|
|
116
116
|
}
|
|
117
117
|
}), a = c.headers?.get?.("X-Version-Warning");
|
|
118
|
-
if (a && typeof window < "u" && (console.warn("[API Version Warning]", a),
|
|
118
|
+
if (a && typeof window < "u" && (console.warn("[API Version Warning]", a), Cn(a)), c.status === 503) {
|
|
119
119
|
const u = parseInt(c.headers.get("Retry-After") || "0", 10);
|
|
120
120
|
if (u > 0 && u <= 60 && !s)
|
|
121
121
|
return await new Promise((m) => setTimeout(m, u * 1e3)), We(e, { ...i, _isRetry: !0 });
|
|
@@ -126,7 +126,7 @@ async function We(e, t = {}) {
|
|
|
126
126
|
`API Error (${c.status}): ${u}`,
|
|
127
127
|
u
|
|
128
128
|
);
|
|
129
|
-
throw c.status === 401 &&
|
|
129
|
+
throw c.status === 401 && An(), m;
|
|
130
130
|
}
|
|
131
131
|
const d = await c.text();
|
|
132
132
|
try {
|
|
@@ -140,7 +140,7 @@ async function We(e, t = {}) {
|
|
|
140
140
|
l && clearTimeout(l);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Ir(e, t = {}) {
|
|
144
144
|
return We(e, {
|
|
145
145
|
...t
|
|
146
146
|
});
|
|
@@ -155,11 +155,11 @@ function La(e, t = {}) {
|
|
|
155
155
|
} catch {
|
|
156
156
|
r = !1;
|
|
157
157
|
}
|
|
158
|
-
return r ?
|
|
158
|
+
return r ? Ir(e, t) : Promise.reject(
|
|
159
159
|
new J(403, "Admin privileges required for this operation.", null)
|
|
160
160
|
);
|
|
161
161
|
}
|
|
162
|
-
async function
|
|
162
|
+
async function Rn(e, t = {}) {
|
|
163
163
|
const n = Oe(), r = new AbortController(), { _isRetry: o = !1, ...s } = t, i = typeof window < "u" ? setTimeout(() => r.abort(), 3e4) : null;
|
|
164
164
|
s.signal && (s.signal.aborted ? r.abort() : s.signal.addEventListener("abort", () => r.abort(), { once: !0 }));
|
|
165
165
|
try {
|
|
@@ -168,15 +168,15 @@ async function Cn(e, t = {}) {
|
|
|
168
168
|
signal: r.signal,
|
|
169
169
|
headers: {
|
|
170
170
|
"Content-Type": "application/json",
|
|
171
|
-
"X-Client-Version":
|
|
171
|
+
"X-Client-Version": En,
|
|
172
172
|
...n ? { Authorization: `Bearer ${n}` } : {},
|
|
173
173
|
...s.headers || {}
|
|
174
174
|
}
|
|
175
175
|
}), c = l.headers?.get?.("X-Version-Warning");
|
|
176
|
-
if (c && typeof window < "u" && (console.warn("[API Version Warning]", c),
|
|
176
|
+
if (c && typeof window < "u" && (console.warn("[API Version Warning]", c), Cn(c)), l.status === 503) {
|
|
177
177
|
const d = parseInt(l.headers.get("Retry-After") || "0", 10);
|
|
178
178
|
if (d > 0 && d <= 60 && !o)
|
|
179
|
-
return await new Promise((u) => setTimeout(u, d * 1e3)),
|
|
179
|
+
return await new Promise((u) => setTimeout(u, d * 1e3)), Rn(e, { ...s, _isRetry: !0 });
|
|
180
180
|
}
|
|
181
181
|
if (!l.ok) {
|
|
182
182
|
const d = await l.text(), u = new J(
|
|
@@ -184,7 +184,7 @@ async function Cn(e, t = {}) {
|
|
|
184
184
|
`API Error (${l.status}): ${d}`,
|
|
185
185
|
d
|
|
186
186
|
);
|
|
187
|
-
throw l.status === 401 &&
|
|
187
|
+
throw l.status === 401 && An(), u;
|
|
188
188
|
}
|
|
189
189
|
const a = await l.text();
|
|
190
190
|
try {
|
|
@@ -199,26 +199,26 @@ async function Cn(e, t = {}) {
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
function Ma(e, t = {}) {
|
|
202
|
-
return
|
|
202
|
+
return Rn(e, {
|
|
203
203
|
...t
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
|
-
const g = "",
|
|
206
|
+
const g = "", Lr = Object.freeze({
|
|
207
207
|
LOGIN: `${g}/auth/login`,
|
|
208
208
|
REGISTER: `${g}/auth/register`
|
|
209
|
-
}),
|
|
209
|
+
}), Mr = Object.freeze({
|
|
210
210
|
LIST: `${g}/tasks/list`,
|
|
211
211
|
CREATE: `${g}/tasks/create`,
|
|
212
212
|
COMPLETE: `${g}/tasks/complete`,
|
|
213
213
|
START: `${g}/tasks/start`
|
|
214
|
-
}),
|
|
214
|
+
}), zr = Object.freeze({
|
|
215
215
|
ANALYZE: `${g}/arm/analyze`,
|
|
216
216
|
GENERATE: `${g}/arm/generate`,
|
|
217
217
|
LOGS: `${g}/arm/logs`,
|
|
218
218
|
CONFIG: `${g}/arm/config`,
|
|
219
219
|
METRICS: `${g}/arm/metrics`,
|
|
220
220
|
CONFIG_SUGGESTIONS: `${g}/arm/config/suggest`
|
|
221
|
-
}),
|
|
221
|
+
}), Dr = Object.freeze({
|
|
222
222
|
CREATE_RUN: `${g}/agent/run`,
|
|
223
223
|
RUNS: `${g}/agent/runs`,
|
|
224
224
|
RUN: (e) => `${g}/agent/runs/${e}`,
|
|
@@ -229,7 +229,7 @@ const g = "", Ir = Object.freeze({
|
|
|
229
229
|
TOOLS: `${g}/agent/tools`,
|
|
230
230
|
TRUST: `${g}/agent/trust`,
|
|
231
231
|
SUGGESTIONS: `${g}/agent/suggestions`
|
|
232
|
-
}),
|
|
232
|
+
}), Fr = Object.freeze({
|
|
233
233
|
LINKEDIN_MANUAL: `${g}/analytics/linkedin/manual`,
|
|
234
234
|
MASTERPLAN_SUMMARY: (e) => `${g}/analytics/masterplan/${e}/summary`,
|
|
235
235
|
CALCULATE_TWR: `${g}/calculate_twr`,
|
|
@@ -250,16 +250,16 @@ const g = "", Ir = Object.freeze({
|
|
|
250
250
|
SCORES_RECALCULATE: `${g}/scores/me/recalculate`,
|
|
251
251
|
SCORES_HISTORY: `${g}/scores/me/history`,
|
|
252
252
|
SCORES_FEEDBACK: `${g}/scores/feedback`
|
|
253
|
-
}),
|
|
253
|
+
}), Ur = Object.freeze({
|
|
254
254
|
ORDERS: `${g}/freelance/orders`,
|
|
255
255
|
FEEDBACK: `${g}/freelance/feedback`,
|
|
256
256
|
METRICS_LATEST: `${g}/freelance/metrics/latest`
|
|
257
|
-
}),
|
|
257
|
+
}), Wr = Object.freeze({
|
|
258
258
|
BOOT: `${g}/identity/boot`,
|
|
259
259
|
PROFILE: `${g}/identity/`,
|
|
260
260
|
EVOLUTION: `${g}/identity/evolution`,
|
|
261
261
|
CONTEXT: `${g}/identity/context`
|
|
262
|
-
}),
|
|
262
|
+
}), Gr = Object.freeze({
|
|
263
263
|
GENESIS_SESSION: `${g}/genesis/session`,
|
|
264
264
|
GENESIS_MESSAGE: `${g}/genesis/message`,
|
|
265
265
|
GENESIS_SESSION_BY_ID: (e) => `${g}/genesis/session/${e}`,
|
|
@@ -272,7 +272,7 @@ const g = "", Ir = Object.freeze({
|
|
|
272
272
|
PLAN_ACTIVATE: (e) => `${g}/masterplans/${e}/activate`,
|
|
273
273
|
PLAN_ANCHOR: (e) => `${g}/masterplans/${e}/anchor`,
|
|
274
274
|
PLAN_PROJECTION: (e) => `${g}/masterplans/${e}/projection`
|
|
275
|
-
}),
|
|
275
|
+
}), Vr = Object.freeze({
|
|
276
276
|
AGENTS: `${g}/memory/agents`,
|
|
277
277
|
AGENT_RECALL: (e) => `${g}/memory/agents/${e}/recall`,
|
|
278
278
|
FEDERATED_RECALL: `${g}/memory/federated/recall`,
|
|
@@ -285,7 +285,7 @@ const g = "", Ir = Object.freeze({
|
|
|
285
285
|
NODE_HISTORY: (e) => `${g}/memory/nodes/${e}/history`,
|
|
286
286
|
NODE_SHARE: (e) => `${g}/memory/nodes/${e}/share`,
|
|
287
287
|
METRICS_DASHBOARD: `${g}/memory/metrics/dashboard`
|
|
288
|
-
}),
|
|
288
|
+
}), Hr = Object.freeze({
|
|
289
289
|
RESEARCH_QUERY: `${g}/research/query`,
|
|
290
290
|
HISTORY: `${g}/search/history`,
|
|
291
291
|
HISTORY_ITEM: (e) => `${g}/search/history/${e}`,
|
|
@@ -293,14 +293,14 @@ const g = "", Ir = Object.freeze({
|
|
|
293
293
|
ANALYZE_SEO: `${g}/analyze_seo/`,
|
|
294
294
|
GENERATE_META: `${g}/generate_meta/`,
|
|
295
295
|
SUGGEST_IMPROVEMENTS: `${g}/suggest_improvements/`
|
|
296
|
-
}),
|
|
296
|
+
}), Br = Object.freeze({
|
|
297
297
|
PROFILE_BY_USERNAME: (e) => `${g}/social/profile/${e}`,
|
|
298
298
|
PROFILE: `${g}/social/profile`,
|
|
299
299
|
FEED: `${g}/social/feed`,
|
|
300
300
|
POST: `${g}/social/post`,
|
|
301
301
|
ANALYTICS: `${g}/social/analytics`,
|
|
302
302
|
INTERACT: (e) => `${g}/social/posts/${e}/interact`
|
|
303
|
-
}),
|
|
303
|
+
}), jr = Object.freeze({
|
|
304
304
|
DROP_POINTS: `${g}/rippletrace/drop_points`,
|
|
305
305
|
PINGS: `${g}/rippletrace/pings`,
|
|
306
306
|
RECENT: `${g}/rippletrace/recent`,
|
|
@@ -327,7 +327,7 @@ const g = "", Ir = Object.freeze({
|
|
|
327
327
|
MATCH_STRATEGIES: (e) => `${g}/rippletrace/strategies/match/${encodeURIComponent(e)}`,
|
|
328
328
|
EVENT_DOWNSTREAM: (e) => `${g}/rippletrace/event/${encodeURIComponent(e)}/downstream`,
|
|
329
329
|
EVENT_UPSTREAM: (e) => `${g}/rippletrace/event/${encodeURIComponent(e)}/upstream`
|
|
330
|
-
}),
|
|
330
|
+
}), Yr = Object.freeze({
|
|
331
331
|
FLOW_RUNS: `${g}/flows/runs`,
|
|
332
332
|
FLOW_RUN: (e) => `${g}/flows/runs/${e}`,
|
|
333
333
|
FLOW_RUN_HISTORY: (e) => `${g}/flows/runs/${e}/history`,
|
|
@@ -342,7 +342,7 @@ const g = "", Ir = Object.freeze({
|
|
|
342
342
|
OBSERVABILITY_DASHBOARD: `${g}/observability/dashboard`,
|
|
343
343
|
CLIENT_ERROR: `${g}/client/error`,
|
|
344
344
|
CLIENT_VITALS: `${g}/client/vitals`
|
|
345
|
-
}),
|
|
345
|
+
}), Kr = Object.freeze({
|
|
346
346
|
DASHBOARD_OVERVIEW: `${g}/dashboard/overview`,
|
|
347
347
|
HEALTH_DETAILS: `${g}/health/details`,
|
|
348
348
|
INFLUENCE_GRAPH: `${g}/influence_graph`,
|
|
@@ -352,42 +352,42 @@ const g = "", Ir = Object.freeze({
|
|
|
352
352
|
HEALTH_DEEP: `${g}/health/deep`,
|
|
353
353
|
HEALTH_DOMAINS: `${g}/health/domains`,
|
|
354
354
|
VERSION: `${g}/api/version`
|
|
355
|
-
}),
|
|
356
|
-
AUTH:
|
|
357
|
-
TASKS:
|
|
358
|
-
ARM:
|
|
359
|
-
AGENT:
|
|
360
|
-
ANALYTICS:
|
|
361
|
-
FREELANCE:
|
|
362
|
-
IDENTITY:
|
|
363
|
-
MASTERPLAN:
|
|
364
|
-
MEMORY:
|
|
365
|
-
SEARCH:
|
|
366
|
-
SOCIAL:
|
|
367
|
-
RIPPLETRACE:
|
|
368
|
-
OPERATOR:
|
|
369
|
-
PLATFORM:
|
|
355
|
+
}), Nt = Object.freeze({
|
|
356
|
+
AUTH: Lr,
|
|
357
|
+
TASKS: Mr,
|
|
358
|
+
ARM: zr,
|
|
359
|
+
AGENT: Dr,
|
|
360
|
+
ANALYTICS: Fr,
|
|
361
|
+
FREELANCE: Ur,
|
|
362
|
+
IDENTITY: Wr,
|
|
363
|
+
MASTERPLAN: Gr,
|
|
364
|
+
MEMORY: Vr,
|
|
365
|
+
SEARCH: Hr,
|
|
366
|
+
SOCIAL: Br,
|
|
367
|
+
RIPPLETRACE: jr,
|
|
368
|
+
OPERATOR: Yr,
|
|
369
|
+
PLATFORM: Kr
|
|
370
370
|
});
|
|
371
|
-
function
|
|
372
|
-
return We(
|
|
371
|
+
function Xr(e) {
|
|
372
|
+
return We(Nt.AUTH.LOGIN, {
|
|
373
373
|
method: "POST",
|
|
374
374
|
body: JSON.stringify(e)
|
|
375
|
-
});
|
|
375
|
+
}).then(kt);
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
return We(
|
|
377
|
+
function qr(e) {
|
|
378
|
+
return We(Nt.AUTH.REGISTER, {
|
|
379
379
|
method: "POST",
|
|
380
380
|
body: JSON.stringify(e)
|
|
381
|
-
});
|
|
381
|
+
}).then(kt);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
return We(
|
|
383
|
+
function Jr(e = Oe()) {
|
|
384
|
+
return We(Nt.IDENTITY.BOOT, {
|
|
385
385
|
method: "GET",
|
|
386
386
|
headers: e ? { Authorization: `Bearer ${e}` } : {}
|
|
387
|
-
});
|
|
387
|
+
}).then(kt);
|
|
388
388
|
}
|
|
389
|
-
const
|
|
390
|
-
function
|
|
389
|
+
const Sn = yn(null);
|
|
390
|
+
function Tn(e) {
|
|
391
391
|
if (!e)
|
|
392
392
|
return null;
|
|
393
393
|
try {
|
|
@@ -398,7 +398,7 @@ function Sn(e) {
|
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function pt(e) {
|
|
401
|
-
const t =
|
|
401
|
+
const t = Tn(e);
|
|
402
402
|
return !t || typeof t.exp != "number" ? !1 : Date.now() / 1e3 > t.exp - 30;
|
|
403
403
|
}
|
|
404
404
|
function za({ children: e }) {
|
|
@@ -406,7 +406,7 @@ function za({ children: e }) {
|
|
|
406
406
|
const a = Oe();
|
|
407
407
|
return a && pt(a) ? (Me(), null) : a || null;
|
|
408
408
|
}), r = Ze(() => {
|
|
409
|
-
const a =
|
|
409
|
+
const a = Tn(t);
|
|
410
410
|
return a ? {
|
|
411
411
|
...a,
|
|
412
412
|
is_admin: a?.is_admin === !0
|
|
@@ -433,15 +433,15 @@ function za({ children: e }) {
|
|
|
433
433
|
return window.addEventListener("aindy:session-expired", a), () => window.removeEventListener("aindy:session-expired", a);
|
|
434
434
|
}, []);
|
|
435
435
|
const s = async (a, d) => {
|
|
436
|
-
const m = (await
|
|
436
|
+
const m = (await Xr({ email: a, password: d }))?.access_token;
|
|
437
437
|
if (!m)
|
|
438
438
|
throw new Error("Authentication did not return an access token.");
|
|
439
|
-
return
|
|
439
|
+
return Yt(m), n(m), m;
|
|
440
440
|
}, i = async (a, d, u = null) => {
|
|
441
|
-
const p = (await
|
|
441
|
+
const p = (await qr({ email: a, password: d, username: u }))?.access_token;
|
|
442
442
|
if (!p)
|
|
443
443
|
throw new Error("Authentication did not return an access token.");
|
|
444
|
-
return
|
|
444
|
+
return Yt(p), n(p), p;
|
|
445
445
|
}, l = () => {
|
|
446
446
|
Me(), n(null);
|
|
447
447
|
}, c = Ze(
|
|
@@ -457,15 +457,15 @@ function za({ children: e }) {
|
|
|
457
457
|
}),
|
|
458
458
|
[t, r, o]
|
|
459
459
|
);
|
|
460
|
-
return /* @__PURE__ */ w(
|
|
460
|
+
return /* @__PURE__ */ w(Sn.Provider, { value: c, children: e });
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
const e =
|
|
462
|
+
function _t() {
|
|
463
|
+
const e = xn(Sn);
|
|
464
464
|
if (!e)
|
|
465
465
|
throw new Error("useAuth must be used within AuthProvider.");
|
|
466
466
|
return e;
|
|
467
467
|
}
|
|
468
|
-
const
|
|
468
|
+
const On = yn(null), Re = {
|
|
469
469
|
user_id: null,
|
|
470
470
|
memory: [],
|
|
471
471
|
runs: [],
|
|
@@ -489,14 +489,14 @@ const Tn = bn(null), Re = {
|
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
491
|
function Da({ children: e, skipBoot: t = !1 }) {
|
|
492
|
-
const { token: n, logout: r } =
|
|
492
|
+
const { token: n, logout: r } = _t(), [o, s] = q(Re), [i, l] = q(!1), [c, a] = q(!1), [d, u] = q(""), m = xt(null), p = () => {
|
|
493
493
|
s(Re), a(!1), u(""), m.current = null;
|
|
494
494
|
}, h = async (x = n) => {
|
|
495
495
|
if (!x)
|
|
496
496
|
return p(), Re;
|
|
497
497
|
l(!0), u("");
|
|
498
498
|
try {
|
|
499
|
-
const y = await
|
|
499
|
+
const y = await Jr(x);
|
|
500
500
|
return s({
|
|
501
501
|
...Re,
|
|
502
502
|
...y,
|
|
@@ -548,15 +548,15 @@ function Da({ children: e, skipBoot: t = !1 }) {
|
|
|
548
548
|
}),
|
|
549
549
|
[o, i, c, d]
|
|
550
550
|
);
|
|
551
|
-
return /* @__PURE__ */ w(
|
|
551
|
+
return /* @__PURE__ */ w(On.Provider, { value: b, children: e });
|
|
552
552
|
}
|
|
553
|
-
function
|
|
554
|
-
const e =
|
|
553
|
+
function Zr() {
|
|
554
|
+
const e = xn(On);
|
|
555
555
|
if (!e)
|
|
556
556
|
throw new Error("useSystem must be used within SystemProvider.");
|
|
557
557
|
return e;
|
|
558
558
|
}
|
|
559
|
-
const
|
|
559
|
+
const Qr = "/platform", eo = (e) => `${Qr}${e}`, to = [
|
|
560
560
|
{
|
|
561
561
|
title: "PLATFORM",
|
|
562
562
|
adminOnly: !0,
|
|
@@ -620,7 +620,7 @@ const Zr = "/platform", Qr = (e) => `${Zr}${e}`, eo = [
|
|
|
620
620
|
]
|
|
621
621
|
}
|
|
622
622
|
];
|
|
623
|
-
function
|
|
623
|
+
function no({ to: e, label: t, onNavigate: n, external: r = !1 }) {
|
|
624
624
|
const o = [
|
|
625
625
|
"block rounded-2xl border px-3 py-2 text-sm transition-colors",
|
|
626
626
|
"border-zinc-800/60 bg-zinc-950/40 text-zinc-400 hover:border-zinc-700 hover:bg-zinc-900/70 hover:text-zinc-100"
|
|
@@ -630,7 +630,7 @@ function to({ to: e, label: t, onNavigate: n, external: r = !1 }) {
|
|
|
630
630
|
return /* @__PURE__ */ w(
|
|
631
631
|
"a",
|
|
632
632
|
{
|
|
633
|
-
href:
|
|
633
|
+
href: eo(e),
|
|
634
634
|
onClick: n,
|
|
635
635
|
target: "_self",
|
|
636
636
|
className: [
|
|
@@ -642,7 +642,7 @@ function to({ to: e, label: t, onNavigate: n, external: r = !1 }) {
|
|
|
642
642
|
);
|
|
643
643
|
}
|
|
644
644
|
return /* @__PURE__ */ w(
|
|
645
|
-
|
|
645
|
+
Nr,
|
|
646
646
|
{
|
|
647
647
|
to: e,
|
|
648
648
|
onClick: n,
|
|
@@ -655,8 +655,8 @@ function to({ to: e, label: t, onNavigate: n, external: r = !1 }) {
|
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
657
|
function Fa() {
|
|
658
|
-
const { isAdmin: e, logout: t, user: n } =
|
|
659
|
-
() =>
|
|
658
|
+
const { isAdmin: e, logout: t, user: n } = _t(), { system: r } = Zr(), [o, s] = q(!1), i = r?.runtime?.boot_mode === "runtime-only", l = Ze(
|
|
659
|
+
() => to.filter((c) => !c.adminOnly || e).filter((c) => !i || c.runtimeOnlySafe !== !1).map((c) => ({
|
|
660
660
|
...c,
|
|
661
661
|
title: c.title === "RUNTIME" && !i ? "IDENTITY" : c.title,
|
|
662
662
|
links: c.links.filter((a) => !i || a.runtimeOnlySafe !== !1)
|
|
@@ -692,7 +692,7 @@ function Fa() {
|
|
|
692
692
|
/* @__PURE__ */ w("nav", { className: "flex-1 space-y-6 overflow-y-auto px-4 py-5 custom-scrollbar", children: l.map((c) => /* @__PURE__ */ H("div", { children: [
|
|
693
693
|
/* @__PURE__ */ w("p", { className: "mb-3 px-2 text-[10px] font-bold uppercase tracking-[0.3em] text-zinc-600", children: c.title }),
|
|
694
694
|
/* @__PURE__ */ w("div", { className: "space-y-2", children: c.links.map((a) => /* @__PURE__ */ w(
|
|
695
|
-
|
|
695
|
+
no,
|
|
696
696
|
{
|
|
697
697
|
to: a.to,
|
|
698
698
|
label: a.label,
|
|
@@ -746,15 +746,15 @@ function Fa() {
|
|
|
746
746
|
)
|
|
747
747
|
] })
|
|
748
748
|
] }) }),
|
|
749
|
-
/* @__PURE__ */ w("main", { className: "flex-1 overflow-y-auto px-4 py-6 sm:px-6 lg:px-8", children: /* @__PURE__ */ w("div", { className: "min-h-full rounded-[28px] border border-zinc-800/60 bg-zinc-950/40 p-4 shadow-2xl shadow-black/20 sm:p-6 lg:p-8", children: /* @__PURE__ */ w(
|
|
749
|
+
/* @__PURE__ */ w("main", { className: "flex-1 overflow-y-auto px-4 py-6 sm:px-6 lg:px-8", children: /* @__PURE__ */ w("div", { className: "min-h-full rounded-[28px] border border-zinc-800/60 bg-zinc-950/40 p-4 shadow-2xl shadow-black/20 sm:p-6 lg:p-8", children: /* @__PURE__ */ w(wn, {}) }) })
|
|
750
750
|
] })
|
|
751
751
|
] });
|
|
752
752
|
}
|
|
753
753
|
function Ua({ requireAdmin: e = !1 }) {
|
|
754
|
-
const t =
|
|
755
|
-
return r ? e && !n ? /* @__PURE__ */ w(
|
|
754
|
+
const t = _r(), { isAdmin: n, isAuthenticated: r } = _t();
|
|
755
|
+
return r ? e && !n ? /* @__PURE__ */ w(Ht, { to: "/dashboard", replace: !0 }) : /* @__PURE__ */ w(wn, {}) : /* @__PURE__ */ w(Ht, { to: "/login", replace: !0, state: { from: t } });
|
|
756
756
|
}
|
|
757
|
-
const
|
|
757
|
+
const ro = {
|
|
758
758
|
major_mismatch: {
|
|
759
759
|
bg: "#b91c1c",
|
|
760
760
|
label: "Incompatible version",
|
|
@@ -781,7 +781,7 @@ const no = {
|
|
|
781
781
|
}
|
|
782
782
|
};
|
|
783
783
|
function Wa({ status: e, apiVersion: t, clientVersion: n, onDismiss: r }) {
|
|
784
|
-
const o =
|
|
784
|
+
const o = ro[e];
|
|
785
785
|
return o ? /* @__PURE__ */ H(
|
|
786
786
|
"div",
|
|
787
787
|
{
|
|
@@ -844,7 +844,7 @@ function Wa({ status: e, apiVersion: t, clientVersion: n, onDismiss: r }) {
|
|
|
844
844
|
}
|
|
845
845
|
) : null;
|
|
846
846
|
}
|
|
847
|
-
const
|
|
847
|
+
const Kt = {
|
|
848
848
|
error: "border-red-500/30 bg-red-950/80 text-red-200",
|
|
849
849
|
success: "border-emerald-500/30 bg-emerald-950/80 text-emerald-200",
|
|
850
850
|
info: "border-zinc-600/30 bg-zinc-900/90 text-zinc-200"
|
|
@@ -855,7 +855,7 @@ function Ga({ toast: e, onDismiss: t }) {
|
|
|
855
855
|
{
|
|
856
856
|
role: "alert",
|
|
857
857
|
"aria-live": "assertive",
|
|
858
|
-
className: `fixed bottom-6 right-6 z-50 max-w-sm rounded-xl border px-4 py-3 text-sm shadow-xl backdrop-blur-sm ${
|
|
858
|
+
className: `fixed bottom-6 right-6 z-50 max-w-sm rounded-xl border px-4 py-3 text-sm shadow-xl backdrop-blur-sm ${Kt[e.type] || Kt.error}`,
|
|
859
859
|
children: [
|
|
860
860
|
/* @__PURE__ */ w("span", { children: e.message }),
|
|
861
861
|
/* @__PURE__ */ w(
|
|
@@ -928,43 +928,43 @@ function Ya({ message: e, hint: t }) {
|
|
|
928
928
|
t ? /* @__PURE__ */ w("p", { className: "mt-1 text-xs text-zinc-600", children: t }) : null
|
|
929
929
|
] });
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function Xt(e, t) {
|
|
932
932
|
if (typeof e == "function")
|
|
933
933
|
return e(t);
|
|
934
934
|
e != null && (e.current = t);
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function Pt(...e) {
|
|
937
937
|
return (t) => {
|
|
938
938
|
let n = !1;
|
|
939
939
|
const r = e.map((o) => {
|
|
940
|
-
const s =
|
|
940
|
+
const s = Xt(o, t);
|
|
941
941
|
return !n && typeof s == "function" && (n = !0), s;
|
|
942
942
|
});
|
|
943
943
|
if (n)
|
|
944
944
|
return () => {
|
|
945
945
|
for (let o = 0; o < r.length; o++) {
|
|
946
946
|
const s = r[o];
|
|
947
|
-
typeof s == "function" ? s() :
|
|
947
|
+
typeof s == "function" ? s() : Xt(e[o], null);
|
|
948
948
|
}
|
|
949
949
|
};
|
|
950
950
|
};
|
|
951
951
|
}
|
|
952
952
|
function we(...e) {
|
|
953
|
-
return f.useCallback(
|
|
953
|
+
return f.useCallback(Pt(...e), e);
|
|
954
954
|
}
|
|
955
|
-
var
|
|
956
|
-
function
|
|
955
|
+
var oo = /* @__PURE__ */ Symbol.for("react.lazy"), et = f[" use ".trim().toString()];
|
|
956
|
+
function so(e) {
|
|
957
957
|
return typeof e == "object" && e !== null && "then" in e;
|
|
958
958
|
}
|
|
959
|
-
function
|
|
960
|
-
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof ===
|
|
959
|
+
function kn(e) {
|
|
960
|
+
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === oo && "_payload" in e && so(e._payload);
|
|
961
961
|
}
|
|
962
962
|
// @__NO_SIDE_EFFECTS__
|
|
963
|
-
function
|
|
964
|
-
const t = /* @__PURE__ */
|
|
963
|
+
function io(e) {
|
|
964
|
+
const t = /* @__PURE__ */ lo(e), n = f.forwardRef((r, o) => {
|
|
965
965
|
let { children: s, ...i } = r;
|
|
966
|
-
|
|
967
|
-
const l = f.Children.toArray(s), c = l.find(
|
|
966
|
+
kn(s) && typeof et == "function" && (s = et(s._payload));
|
|
967
|
+
const l = f.Children.toArray(s), c = l.find(uo);
|
|
968
968
|
if (c) {
|
|
969
969
|
const a = c.props.children, d = l.map((u) => u === c ? f.Children.count(a) > 1 ? f.Children.only(null) : f.isValidElement(a) ? a.props.children : null : u);
|
|
970
970
|
return /* @__PURE__ */ w(t, { ...i, ref: o, children: f.isValidElement(a) ? f.cloneElement(a, void 0, d) : null });
|
|
@@ -973,24 +973,24 @@ function so(e) {
|
|
|
973
973
|
});
|
|
974
974
|
return n.displayName = `${e}.Slot`, n;
|
|
975
975
|
}
|
|
976
|
-
var
|
|
976
|
+
var ao = /* @__PURE__ */ io("Slot");
|
|
977
977
|
// @__NO_SIDE_EFFECTS__
|
|
978
|
-
function
|
|
978
|
+
function lo(e) {
|
|
979
979
|
const t = f.forwardRef((n, r) => {
|
|
980
980
|
let { children: o, ...s } = n;
|
|
981
|
-
if (
|
|
982
|
-
const i =
|
|
983
|
-
return o.type !== f.Fragment && (l.ref = r ?
|
|
981
|
+
if (kn(o) && typeof et == "function" && (o = et(o._payload)), f.isValidElement(o)) {
|
|
982
|
+
const i = mo(o), l = fo(s, o.props);
|
|
983
|
+
return o.type !== f.Fragment && (l.ref = r ? Pt(r, i) : i), f.cloneElement(o, l);
|
|
984
984
|
}
|
|
985
985
|
return f.Children.count(o) > 1 ? f.Children.only(null) : null;
|
|
986
986
|
});
|
|
987
987
|
return t.displayName = `${e}.SlotClone`, t;
|
|
988
988
|
}
|
|
989
|
-
var
|
|
990
|
-
function
|
|
991
|
-
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
989
|
+
var co = /* @__PURE__ */ Symbol("radix.slottable");
|
|
990
|
+
function uo(e) {
|
|
991
|
+
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === co;
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function fo(e, t) {
|
|
994
994
|
const n = { ...t };
|
|
995
995
|
for (const r in t) {
|
|
996
996
|
const o = e[r], s = t[r];
|
|
@@ -1001,30 +1001,30 @@ function uo(e, t) {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
return { ...e, ...n };
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function mo(e) {
|
|
1005
1005
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
1006
1006
|
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);
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function Nn(e) {
|
|
1009
1009
|
var t, n, r = "";
|
|
1010
1010
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
1011
1011
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
1012
1012
|
var o = e.length;
|
|
1013
|
-
for (t = 0; t < o; t++) e[t] && (n =
|
|
1013
|
+
for (t = 0; t < o; t++) e[t] && (n = Nn(e[t])) && (r && (r += " "), r += n);
|
|
1014
1014
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
1015
1015
|
return r;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1018
|
-
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t =
|
|
1017
|
+
function _n() {
|
|
1018
|
+
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Nn(e)) && (r && (r += " "), r += t);
|
|
1019
1019
|
return r;
|
|
1020
1020
|
}
|
|
1021
|
-
const
|
|
1021
|
+
const qt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Jt = _n, po = (e, t) => (n) => {
|
|
1022
1022
|
var r;
|
|
1023
|
-
if (t?.variants == null) return
|
|
1023
|
+
if (t?.variants == null) return Jt(e, n?.class, n?.className);
|
|
1024
1024
|
const { variants: o, defaultVariants: s } = t, i = Object.keys(o).map((a) => {
|
|
1025
1025
|
const d = n?.[a], u = s?.[a];
|
|
1026
1026
|
if (d === null) return null;
|
|
1027
|
-
const m =
|
|
1027
|
+
const m = qt(d) || qt(u);
|
|
1028
1028
|
return o[a][m];
|
|
1029
1029
|
}), l = n && Object.entries(n).reduce((a, d) => {
|
|
1030
1030
|
let [u, m] = d;
|
|
@@ -1046,47 +1046,47 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
1046
1046
|
m
|
|
1047
1047
|
] : a;
|
|
1048
1048
|
}, []);
|
|
1049
|
-
return
|
|
1050
|
-
},
|
|
1049
|
+
return Jt(e, i, c, n?.class, n?.className);
|
|
1050
|
+
}, go = (e, t) => {
|
|
1051
1051
|
const n = new Array(e.length + t.length);
|
|
1052
1052
|
for (let r = 0; r < e.length; r++)
|
|
1053
1053
|
n[r] = e[r];
|
|
1054
1054
|
for (let r = 0; r < t.length; r++)
|
|
1055
1055
|
n[e.length + r] = t[r];
|
|
1056
1056
|
return n;
|
|
1057
|
-
},
|
|
1057
|
+
}, ho = (e, t) => ({
|
|
1058
1058
|
classGroupId: e,
|
|
1059
1059
|
validator: t
|
|
1060
|
-
}),
|
|
1060
|
+
}), Pn = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
1061
1061
|
nextPart: e,
|
|
1062
1062
|
validators: t,
|
|
1063
1063
|
classGroupId: n
|
|
1064
|
-
}), tt = "-",
|
|
1065
|
-
const t =
|
|
1064
|
+
}), tt = "-", Zt = [], bo = "arbitrary..", yo = (e) => {
|
|
1065
|
+
const t = wo(e), {
|
|
1066
1066
|
conflictingClassGroups: n,
|
|
1067
1067
|
conflictingClassGroupModifiers: r
|
|
1068
1068
|
} = e;
|
|
1069
1069
|
return {
|
|
1070
1070
|
getClassGroupId: (i) => {
|
|
1071
1071
|
if (i.startsWith("[") && i.endsWith("]"))
|
|
1072
|
-
return
|
|
1072
|
+
return xo(i);
|
|
1073
1073
|
const l = i.split(tt), c = l[0] === "" && l.length > 1 ? 1 : 0;
|
|
1074
|
-
return
|
|
1074
|
+
return $n(l, c, t);
|
|
1075
1075
|
},
|
|
1076
1076
|
getConflictingClassGroupIds: (i, l) => {
|
|
1077
1077
|
if (l) {
|
|
1078
1078
|
const c = r[i], a = n[i];
|
|
1079
|
-
return c ? a ?
|
|
1079
|
+
return c ? a ? go(a, c) : c : a || Zt;
|
|
1080
1080
|
}
|
|
1081
|
-
return n[i] ||
|
|
1081
|
+
return n[i] || Zt;
|
|
1082
1082
|
}
|
|
1083
1083
|
};
|
|
1084
|
-
},
|
|
1084
|
+
}, $n = (e, t, n) => {
|
|
1085
1085
|
if (e.length - t === 0)
|
|
1086
1086
|
return n.classGroupId;
|
|
1087
1087
|
const o = e[t], s = n.nextPart.get(o);
|
|
1088
1088
|
if (s) {
|
|
1089
|
-
const a =
|
|
1089
|
+
const a = $n(e, t + 1, s);
|
|
1090
1090
|
if (a) return a;
|
|
1091
1091
|
}
|
|
1092
1092
|
const i = n.validators;
|
|
@@ -1098,63 +1098,63 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
1098
1098
|
if (d.validator(l))
|
|
1099
1099
|
return d.classGroupId;
|
|
1100
1100
|
}
|
|
1101
|
-
},
|
|
1101
|
+
}, xo = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
1102
1102
|
const t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
1103
|
-
return r ?
|
|
1104
|
-
})(),
|
|
1103
|
+
return r ? bo + r : void 0;
|
|
1104
|
+
})(), wo = (e) => {
|
|
1105
1105
|
const {
|
|
1106
1106
|
theme: t,
|
|
1107
1107
|
classGroups: n
|
|
1108
1108
|
} = e;
|
|
1109
|
-
return
|
|
1110
|
-
},
|
|
1111
|
-
const n =
|
|
1109
|
+
return vo(n, t);
|
|
1110
|
+
}, vo = (e, t) => {
|
|
1111
|
+
const n = Pn();
|
|
1112
1112
|
for (const r in e) {
|
|
1113
1113
|
const o = e[r];
|
|
1114
|
-
|
|
1114
|
+
$t(o, n, r, t);
|
|
1115
1115
|
}
|
|
1116
1116
|
return n;
|
|
1117
|
-
},
|
|
1117
|
+
}, $t = (e, t, n, r) => {
|
|
1118
1118
|
const o = e.length;
|
|
1119
1119
|
for (let s = 0; s < o; s++) {
|
|
1120
1120
|
const i = e[s];
|
|
1121
|
-
|
|
1121
|
+
Eo(i, t, n, r);
|
|
1122
1122
|
}
|
|
1123
|
-
},
|
|
1123
|
+
}, Eo = (e, t, n, r) => {
|
|
1124
1124
|
if (typeof e == "string") {
|
|
1125
|
-
|
|
1125
|
+
Ao(e, t, n);
|
|
1126
1126
|
return;
|
|
1127
1127
|
}
|
|
1128
1128
|
if (typeof e == "function") {
|
|
1129
|
-
|
|
1129
|
+
Co(e, t, n, r);
|
|
1130
1130
|
return;
|
|
1131
1131
|
}
|
|
1132
|
-
|
|
1133
|
-
},
|
|
1134
|
-
const r = e === "" ? t :
|
|
1132
|
+
Ro(e, t, n, r);
|
|
1133
|
+
}, Ao = (e, t, n) => {
|
|
1134
|
+
const r = e === "" ? t : In(t, e);
|
|
1135
1135
|
r.classGroupId = n;
|
|
1136
|
-
},
|
|
1137
|
-
if (
|
|
1138
|
-
|
|
1136
|
+
}, Co = (e, t, n, r) => {
|
|
1137
|
+
if (So(e)) {
|
|
1138
|
+
$t(e(r), t, n, r);
|
|
1139
1139
|
return;
|
|
1140
1140
|
}
|
|
1141
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
1142
|
-
},
|
|
1141
|
+
t.validators === null && (t.validators = []), t.validators.push(ho(n, e));
|
|
1142
|
+
}, Ro = (e, t, n, r) => {
|
|
1143
1143
|
const o = Object.entries(e), s = o.length;
|
|
1144
1144
|
for (let i = 0; i < s; i++) {
|
|
1145
1145
|
const [l, c] = o[i];
|
|
1146
|
-
|
|
1146
|
+
$t(c, In(t, l), n, r);
|
|
1147
1147
|
}
|
|
1148
|
-
},
|
|
1148
|
+
}, In = (e, t) => {
|
|
1149
1149
|
let n = e;
|
|
1150
1150
|
const r = t.split(tt), o = r.length;
|
|
1151
1151
|
for (let s = 0; s < o; s++) {
|
|
1152
1152
|
const i = r[s];
|
|
1153
1153
|
let l = n.nextPart.get(i);
|
|
1154
|
-
l || (l =
|
|
1154
|
+
l || (l = Pn(), n.nextPart.set(i, l)), n = l;
|
|
1155
1155
|
}
|
|
1156
1156
|
return n;
|
|
1157
|
-
},
|
|
1157
|
+
}, So = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, To = (e) => {
|
|
1158
1158
|
if (e < 1)
|
|
1159
1159
|
return {
|
|
1160
1160
|
get: () => {
|
|
@@ -1178,13 +1178,13 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
1178
1178
|
s in n ? n[s] = i : o(s, i);
|
|
1179
1179
|
}
|
|
1180
1180
|
};
|
|
1181
|
-
}, wt = "!",
|
|
1181
|
+
}, wt = "!", Qt = ":", Oo = [], en = (e, t, n, r, o) => ({
|
|
1182
1182
|
modifiers: e,
|
|
1183
1183
|
hasImportantModifier: t,
|
|
1184
1184
|
baseClassName: n,
|
|
1185
1185
|
maybePostfixModifierPosition: r,
|
|
1186
1186
|
isExternal: o
|
|
1187
|
-
}),
|
|
1187
|
+
}), ko = (e) => {
|
|
1188
1188
|
const {
|
|
1189
1189
|
prefix: t,
|
|
1190
1190
|
experimentalParseClassName: n
|
|
@@ -1196,7 +1196,7 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
1196
1196
|
for (let b = 0; b < d; b++) {
|
|
1197
1197
|
const x = o[b];
|
|
1198
1198
|
if (i === 0 && l === 0) {
|
|
1199
|
-
if (x ===
|
|
1199
|
+
if (x === Qt) {
|
|
1200
1200
|
s.push(o.slice(c, b)), c = b + 1;
|
|
1201
1201
|
continue;
|
|
1202
1202
|
}
|
|
@@ -1217,11 +1217,11 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
1217
1217
|
u.startsWith(wt) && (m = u.slice(1), p = !0)
|
|
1218
1218
|
);
|
|
1219
1219
|
const h = a && a > c ? a - c : void 0;
|
|
1220
|
-
return
|
|
1220
|
+
return en(s, p, m, h);
|
|
1221
1221
|
};
|
|
1222
1222
|
if (t) {
|
|
1223
|
-
const o = t +
|
|
1224
|
-
r = (i) => i.startsWith(o) ? s(i.slice(o.length)) :
|
|
1223
|
+
const o = t + Qt, s = r;
|
|
1224
|
+
r = (i) => i.startsWith(o) ? s(i.slice(o.length)) : en(Oo, !1, i, void 0, !0);
|
|
1225
1225
|
}
|
|
1226
1226
|
if (n) {
|
|
1227
1227
|
const o = r;
|
|
@@ -1231,7 +1231,7 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
1231
1231
|
});
|
|
1232
1232
|
}
|
|
1233
1233
|
return r;
|
|
1234
|
-
},
|
|
1234
|
+
}, No = (e) => {
|
|
1235
1235
|
const t = /* @__PURE__ */ new Map();
|
|
1236
1236
|
return e.orderSensitiveModifiers.forEach((n, r) => {
|
|
1237
1237
|
t.set(n, 1e6 + r);
|
|
@@ -1244,26 +1244,26 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
1244
1244
|
}
|
|
1245
1245
|
return o.length > 0 && (o.sort(), r.push(...o)), r;
|
|
1246
1246
|
};
|
|
1247
|
-
},
|
|
1248
|
-
cache:
|
|
1249
|
-
parseClassName:
|
|
1250
|
-
sortModifiers:
|
|
1251
|
-
postfixLookupClassGroupIds:
|
|
1252
|
-
...
|
|
1253
|
-
}),
|
|
1247
|
+
}, _o = (e) => ({
|
|
1248
|
+
cache: To(e.cacheSize),
|
|
1249
|
+
parseClassName: ko(e),
|
|
1250
|
+
sortModifiers: No(e),
|
|
1251
|
+
postfixLookupClassGroupIds: Po(e),
|
|
1252
|
+
...yo(e)
|
|
1253
|
+
}), Po = (e) => {
|
|
1254
1254
|
const t = /* @__PURE__ */ Object.create(null), n = e.postfixLookupClassGroups;
|
|
1255
1255
|
if (n)
|
|
1256
1256
|
for (let r = 0; r < n.length; r++)
|
|
1257
1257
|
t[n[r]] = !0;
|
|
1258
1258
|
return t;
|
|
1259
|
-
},
|
|
1259
|
+
}, $o = /\s+/, Io = (e, t) => {
|
|
1260
1260
|
const {
|
|
1261
1261
|
parseClassName: n,
|
|
1262
1262
|
getClassGroupId: r,
|
|
1263
1263
|
getConflictingClassGroupIds: o,
|
|
1264
1264
|
sortModifiers: s,
|
|
1265
1265
|
postfixLookupClassGroupIds: i
|
|
1266
|
-
} = t, l = [], c = e.trim().split(
|
|
1266
|
+
} = t, l = [], c = e.trim().split($o);
|
|
1267
1267
|
let a = "";
|
|
1268
1268
|
for (let d = c.length - 1; d >= 0; d -= 1) {
|
|
1269
1269
|
const u = c[d], {
|
|
@@ -1308,46 +1308,46 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
1308
1308
|
a = u + (a.length > 0 ? " " + a : a);
|
|
1309
1309
|
}
|
|
1310
1310
|
return a;
|
|
1311
|
-
},
|
|
1311
|
+
}, Lo = (...e) => {
|
|
1312
1312
|
let t = 0, n, r, o = "";
|
|
1313
1313
|
for (; t < e.length; )
|
|
1314
|
-
(n = e[t++]) && (r =
|
|
1314
|
+
(n = e[t++]) && (r = Ln(n)) && (o && (o += " "), o += r);
|
|
1315
1315
|
return o;
|
|
1316
|
-
},
|
|
1316
|
+
}, Ln = (e) => {
|
|
1317
1317
|
if (typeof e == "string")
|
|
1318
1318
|
return e;
|
|
1319
1319
|
let t, n = "";
|
|
1320
1320
|
for (let r = 0; r < e.length; r++)
|
|
1321
|
-
e[r] && (t =
|
|
1321
|
+
e[r] && (t = Ln(e[r])) && (n && (n += " "), n += t);
|
|
1322
1322
|
return n;
|
|
1323
|
-
},
|
|
1323
|
+
}, Mo = (e, ...t) => {
|
|
1324
1324
|
let n, r, o, s;
|
|
1325
1325
|
const i = (c) => {
|
|
1326
1326
|
const a = t.reduce((d, u) => u(d), e());
|
|
1327
|
-
return n =
|
|
1327
|
+
return n = _o(a), r = n.cache.get, o = n.cache.set, s = l, l(c);
|
|
1328
1328
|
}, l = (c) => {
|
|
1329
1329
|
const a = r(c);
|
|
1330
1330
|
if (a)
|
|
1331
1331
|
return a;
|
|
1332
|
-
const d =
|
|
1332
|
+
const d = Io(c, n);
|
|
1333
1333
|
return o(c, d), d;
|
|
1334
1334
|
};
|
|
1335
|
-
return s = i, (...c) => s(
|
|
1336
|
-
},
|
|
1337
|
-
const t = (n) => n[e] ||
|
|
1335
|
+
return s = i, (...c) => s(Lo(...c));
|
|
1336
|
+
}, zo = [], V = (e) => {
|
|
1337
|
+
const t = (n) => n[e] || zo;
|
|
1338
1338
|
return t.isThemeGetter = !0, t;
|
|
1339
|
-
},
|
|
1339
|
+
}, Mn = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, zn = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Do = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Fo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Uo = /\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$/, Wo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Go = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Vo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ue = (e) => Do.test(e), _ = (e) => !!e && !Number.isNaN(Number(e)), te = (e) => !!e && Number.isInteger(Number(e)), gt = (e) => e.endsWith("%") && _(e.slice(0, -1)), se = (e) => Fo.test(e), Dn = () => !0, Ho = (e) => (
|
|
1340
1340
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1341
1341
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1342
1342
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1343
|
-
|
|
1344
|
-
),
|
|
1345
|
-
const r =
|
|
1343
|
+
Uo.test(e) && !Wo.test(e)
|
|
1344
|
+
), It = () => !1, Bo = (e) => Go.test(e), jo = (e) => Vo.test(e), Yo = (e) => !A(e) && !C(e), Ko = (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)), Xo = (e) => pe(e, Wn, It), A = (e) => Mn.test(e), he = (e) => pe(e, Gn, Ho), tn = (e) => pe(e, rs, _), qo = (e) => pe(e, Hn, Dn), Jo = (e) => pe(e, Vn, It), nn = (e) => pe(e, Fn, It), Zo = (e) => pe(e, Un, jo), Ye = (e) => pe(e, Bn, Bo), C = (e) => zn.test(e), ze = (e) => ve(e, Gn), Qo = (e) => ve(e, Vn), rn = (e) => ve(e, Fn), es = (e) => ve(e, Wn), ts = (e) => ve(e, Un), Ke = (e) => ve(e, Bn, !0), ns = (e) => ve(e, Hn, !0), pe = (e, t, n) => {
|
|
1345
|
+
const r = Mn.exec(e);
|
|
1346
1346
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
1347
1347
|
}, ve = (e, t, n = !1) => {
|
|
1348
|
-
const r =
|
|
1348
|
+
const r = zn.exec(e);
|
|
1349
1349
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
1350
|
-
},
|
|
1350
|
+
}, Fn = (e) => e === "position" || e === "percentage", Un = (e) => e === "image" || e === "url", Wn = (e) => e === "length" || e === "size" || e === "bg-size", Gn = (e) => e === "length", rs = (e) => e === "number", Vn = (e) => e === "family-name", Hn = (e) => e === "number" || e === "weight", Bn = (e) => e === "shadow", os = () => {
|
|
1351
1351
|
const e = V("color"), t = V("font"), n = V("text"), r = V("font-weight"), o = V("tracking"), s = V("leading"), i = V("breakpoint"), l = V("container"), c = V("spacing"), a = V("radius"), d = V("shadow"), u = V("inset-shadow"), m = V("text-shadow"), p = V("drop-shadow"), h = V("blur"), b = V("perspective"), x = V("aspect"), y = V("ease"), E = V("animate"), O = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
|
|
1352
1352
|
"center",
|
|
1353
1353
|
"top",
|
|
@@ -1368,11 +1368,11 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
1368
1368
|
"left-bottom"
|
|
1369
1369
|
], k = () => [...S(), C, A], N = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], v = () => [C, A, c], $ = () => [ue, "full", "auto", ...v()], M = () => [te, "none", "subgrid", C, A], B = () => ["auto", {
|
|
1370
1370
|
span: ["full", te, C, A]
|
|
1371
|
-
}, te, C, A], F = () => [te, "auto", C, A], D = () => ["auto", "min", "max", "fr", C, A], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], U = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], I = () => ["auto", ...v()], L = () => [ue, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...v()], P = () => [ue, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...v()], W = () => [ue, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...v()], R = () => [e, C, A], $e = () => [...S(),
|
|
1371
|
+
}, te, C, A], F = () => [te, "auto", C, A], D = () => ["auto", "min", "max", "fr", C, A], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], U = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], I = () => ["auto", ...v()], L = () => [ue, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...v()], P = () => [ue, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...v()], W = () => [ue, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...v()], R = () => [e, C, A], $e = () => [...S(), rn, nn, {
|
|
1372
1372
|
position: [C, A]
|
|
1373
1373
|
}], Ve = () => ["no-repeat", {
|
|
1374
1374
|
repeat: ["", "x", "y", "space", "round"]
|
|
1375
|
-
}], He = () => ["auto", "cover", "contain",
|
|
1375
|
+
}], He = () => ["auto", "cover", "contain", es, Xo, {
|
|
1376
1376
|
size: [C, A]
|
|
1377
1377
|
}], Ie = () => [gt, ze, he], j = () => [
|
|
1378
1378
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -1382,7 +1382,7 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
1382
1382
|
a,
|
|
1383
1383
|
C,
|
|
1384
1384
|
A
|
|
1385
|
-
], Y = () => ["", _, ze, he], ee = () => ["solid", "dashed", "dotted", "double"], Le = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], G = () => [_, gt,
|
|
1385
|
+
], Y = () => ["", _, ze, he], ee = () => ["solid", "dashed", "dotted", "double"], Le = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], G = () => [_, gt, rn, nn], Be = () => [
|
|
1386
1386
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1387
1387
|
"",
|
|
1388
1388
|
"none",
|
|
@@ -1397,11 +1397,11 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
1397
1397
|
aspect: ["video"],
|
|
1398
1398
|
blur: [se],
|
|
1399
1399
|
breakpoint: [se],
|
|
1400
|
-
color: [
|
|
1400
|
+
color: [Dn],
|
|
1401
1401
|
container: [se],
|
|
1402
1402
|
"drop-shadow": [se],
|
|
1403
1403
|
ease: ["in", "out", "in-out"],
|
|
1404
|
-
font: [
|
|
1404
|
+
font: [Yo],
|
|
1405
1405
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
1406
1406
|
"inset-shadow": [se],
|
|
1407
1407
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -1441,7 +1441,7 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
1441
1441
|
* Container Name
|
|
1442
1442
|
* @see https://tailwindcss.com/docs/responsive-design#named-containers
|
|
1443
1443
|
*/
|
|
1444
|
-
"container-named": [
|
|
1444
|
+
"container-named": [Ko],
|
|
1445
1445
|
/**
|
|
1446
1446
|
* Columns
|
|
1447
1447
|
* @see https://tailwindcss.com/docs/columns
|
|
@@ -2207,7 +2207,7 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
2207
2207
|
* @see https://tailwindcss.com/docs/font-weight
|
|
2208
2208
|
*/
|
|
2209
2209
|
"font-weight": [{
|
|
2210
|
-
font: [r,
|
|
2210
|
+
font: [r, ns, qo]
|
|
2211
2211
|
}],
|
|
2212
2212
|
/**
|
|
2213
2213
|
* Font Stretch
|
|
@@ -2221,7 +2221,7 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
2221
2221
|
* @see https://tailwindcss.com/docs/font-family
|
|
2222
2222
|
*/
|
|
2223
2223
|
"font-family": [{
|
|
2224
|
-
font: [
|
|
2224
|
+
font: [Qo, Jo, t]
|
|
2225
2225
|
}],
|
|
2226
2226
|
/**
|
|
2227
2227
|
* Font Feature Settings
|
|
@@ -2272,7 +2272,7 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
2272
2272
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
2273
2273
|
*/
|
|
2274
2274
|
"line-clamp": [{
|
|
2275
|
-
"line-clamp": [_, "none", C,
|
|
2275
|
+
"line-clamp": [_, "none", C, tn]
|
|
2276
2276
|
}],
|
|
2277
2277
|
/**
|
|
2278
2278
|
* Line Height
|
|
@@ -2490,7 +2490,7 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
2490
2490
|
}, te, C, A],
|
|
2491
2491
|
radial: ["", C, A],
|
|
2492
2492
|
conic: [te, C, A]
|
|
2493
|
-
},
|
|
2493
|
+
}, ts, Zo]
|
|
2494
2494
|
}],
|
|
2495
2495
|
/**
|
|
2496
2496
|
* Background Color
|
|
@@ -3955,7 +3955,7 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
3955
3955
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3956
3956
|
*/
|
|
3957
3957
|
"stroke-w": [{
|
|
3958
|
-
stroke: [_, ze, he,
|
|
3958
|
+
stroke: [_, ze, he, tn]
|
|
3959
3959
|
}],
|
|
3960
3960
|
/**
|
|
3961
3961
|
* Stroke
|
|
@@ -4032,11 +4032,11 @@ const Xt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qt = Nn, m
|
|
|
4032
4032
|
postfixLookupClassGroups: ["container-type"],
|
|
4033
4033
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
4034
4034
|
};
|
|
4035
|
-
},
|
|
4035
|
+
}, ss = /* @__PURE__ */ Mo(os);
|
|
4036
4036
|
function ge(...e) {
|
|
4037
|
-
return
|
|
4037
|
+
return ss(_n(e));
|
|
4038
4038
|
}
|
|
4039
|
-
const
|
|
4039
|
+
const is = po(
|
|
4040
4040
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none 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",
|
|
4041
4041
|
{
|
|
4042
4042
|
variants: {
|
|
@@ -4060,16 +4060,16 @@ const ss = mo(
|
|
|
4060
4060
|
size: "default"
|
|
4061
4061
|
}
|
|
4062
4062
|
}
|
|
4063
|
-
),
|
|
4064
|
-
r ?
|
|
4063
|
+
), as = f.forwardRef(({ className: e, variant: t, size: n, asChild: r = !1, ...o }, s) => /* @__PURE__ */ w(
|
|
4064
|
+
r ? ao : "button",
|
|
4065
4065
|
{
|
|
4066
|
-
className: ge(
|
|
4066
|
+
className: ge(is({ variant: t, size: n, className: e })),
|
|
4067
4067
|
ref: s,
|
|
4068
4068
|
...o
|
|
4069
4069
|
}
|
|
4070
4070
|
));
|
|
4071
|
-
|
|
4072
|
-
const
|
|
4071
|
+
as.displayName = "Button";
|
|
4072
|
+
const ls = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
|
|
4073
4073
|
"div",
|
|
4074
4074
|
{
|
|
4075
4075
|
ref: n,
|
|
@@ -4077,8 +4077,8 @@ const as = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
|
|
|
4077
4077
|
...t
|
|
4078
4078
|
}
|
|
4079
4079
|
));
|
|
4080
|
-
|
|
4081
|
-
const
|
|
4080
|
+
ls.displayName = "Card";
|
|
4081
|
+
const cs = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
|
|
4082
4082
|
"div",
|
|
4083
4083
|
{
|
|
4084
4084
|
ref: n,
|
|
@@ -4086,8 +4086,8 @@ const ls = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
|
|
|
4086
4086
|
...t
|
|
4087
4087
|
}
|
|
4088
4088
|
));
|
|
4089
|
-
|
|
4090
|
-
const
|
|
4089
|
+
cs.displayName = "CardHeader";
|
|
4090
|
+
const ds = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
|
|
4091
4091
|
"div",
|
|
4092
4092
|
{
|
|
4093
4093
|
ref: n,
|
|
@@ -4095,8 +4095,8 @@ const cs = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
|
|
|
4095
4095
|
...t
|
|
4096
4096
|
}
|
|
4097
4097
|
));
|
|
4098
|
-
|
|
4099
|
-
const
|
|
4098
|
+
ds.displayName = "CardTitle";
|
|
4099
|
+
const us = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
|
|
4100
4100
|
"div",
|
|
4101
4101
|
{
|
|
4102
4102
|
ref: n,
|
|
@@ -4104,10 +4104,10 @@ const ds = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
|
|
|
4104
4104
|
...t
|
|
4105
4105
|
}
|
|
4106
4106
|
));
|
|
4107
|
-
|
|
4108
|
-
const
|
|
4109
|
-
|
|
4110
|
-
const
|
|
4107
|
+
us.displayName = "CardDescription";
|
|
4108
|
+
const fs = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", { ref: n, className: ge("p-6 pt-0", e), ...t }));
|
|
4109
|
+
fs.displayName = "CardContent";
|
|
4110
|
+
const ms = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
|
|
4111
4111
|
"div",
|
|
4112
4112
|
{
|
|
4113
4113
|
ref: n,
|
|
@@ -4115,14 +4115,14 @@ const fs = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
|
|
|
4115
4115
|
...t
|
|
4116
4116
|
}
|
|
4117
4117
|
));
|
|
4118
|
-
|
|
4118
|
+
ms.displayName = "CardFooter";
|
|
4119
4119
|
function ie(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
4120
4120
|
return function(o) {
|
|
4121
4121
|
if (e?.(o), n === !1 || !o.defaultPrevented)
|
|
4122
4122
|
return t?.(o);
|
|
4123
4123
|
};
|
|
4124
4124
|
}
|
|
4125
|
-
function
|
|
4125
|
+
function jn(e, t = []) {
|
|
4126
4126
|
let n = [];
|
|
4127
4127
|
function r(s, i) {
|
|
4128
4128
|
const l = f.createContext(i), c = n.length;
|
|
@@ -4150,9 +4150,9 @@ function Bn(e, t = []) {
|
|
|
4150
4150
|
);
|
|
4151
4151
|
};
|
|
4152
4152
|
};
|
|
4153
|
-
return o.scopeName = e, [r,
|
|
4153
|
+
return o.scopeName = e, [r, ps(o, ...t)];
|
|
4154
4154
|
}
|
|
4155
|
-
function
|
|
4155
|
+
function ps(...e) {
|
|
4156
4156
|
const t = e[0];
|
|
4157
4157
|
if (e.length === 1) return t;
|
|
4158
4158
|
const n = () => {
|
|
@@ -4171,9 +4171,9 @@ function ms(...e) {
|
|
|
4171
4171
|
return n.scopeName = t.scopeName, n;
|
|
4172
4172
|
}
|
|
4173
4173
|
// @__NO_SIDE_EFFECTS__
|
|
4174
|
-
function
|
|
4175
|
-
const t = /* @__PURE__ */
|
|
4176
|
-
const { children: s, ...i } = r, l = f.Children.toArray(s), c = l.find(
|
|
4174
|
+
function gs(e) {
|
|
4175
|
+
const t = /* @__PURE__ */ hs(e), n = f.forwardRef((r, o) => {
|
|
4176
|
+
const { children: s, ...i } = r, l = f.Children.toArray(s), c = l.find(ys);
|
|
4177
4177
|
if (c) {
|
|
4178
4178
|
const a = c.props.children, d = l.map((u) => u === c ? f.Children.count(a) > 1 ? f.Children.only(null) : f.isValidElement(a) ? a.props.children : null : u);
|
|
4179
4179
|
return /* @__PURE__ */ w(t, { ...i, ref: o, children: f.isValidElement(a) ? f.cloneElement(a, void 0, d) : null });
|
|
@@ -4183,22 +4183,22 @@ function ps(e) {
|
|
|
4183
4183
|
return n.displayName = `${e}.Slot`, n;
|
|
4184
4184
|
}
|
|
4185
4185
|
// @__NO_SIDE_EFFECTS__
|
|
4186
|
-
function
|
|
4186
|
+
function hs(e) {
|
|
4187
4187
|
const t = f.forwardRef((n, r) => {
|
|
4188
4188
|
const { children: o, ...s } = n;
|
|
4189
4189
|
if (f.isValidElement(o)) {
|
|
4190
|
-
const i =
|
|
4191
|
-
return o.type !== f.Fragment && (l.ref = r ?
|
|
4190
|
+
const i = ws(o), l = xs(s, o.props);
|
|
4191
|
+
return o.type !== f.Fragment && (l.ref = r ? Pt(r, i) : i), f.cloneElement(o, l);
|
|
4192
4192
|
}
|
|
4193
4193
|
return f.Children.count(o) > 1 ? f.Children.only(null) : null;
|
|
4194
4194
|
});
|
|
4195
4195
|
return t.displayName = `${e}.SlotClone`, t;
|
|
4196
4196
|
}
|
|
4197
|
-
var
|
|
4198
|
-
function
|
|
4199
|
-
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
4197
|
+
var bs = /* @__PURE__ */ Symbol("radix.slottable");
|
|
4198
|
+
function ys(e) {
|
|
4199
|
+
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === bs;
|
|
4200
4200
|
}
|
|
4201
|
-
function
|
|
4201
|
+
function xs(e, t) {
|
|
4202
4202
|
const n = { ...t };
|
|
4203
4203
|
for (const r in t) {
|
|
4204
4204
|
const o = e[r], s = t[r];
|
|
@@ -4209,11 +4209,11 @@ function ys(e, t) {
|
|
|
4209
4209
|
}
|
|
4210
4210
|
return { ...e, ...n };
|
|
4211
4211
|
}
|
|
4212
|
-
function
|
|
4212
|
+
function ws(e) {
|
|
4213
4213
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
4214
4214
|
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);
|
|
4215
4215
|
}
|
|
4216
|
-
var
|
|
4216
|
+
var vs = [
|
|
4217
4217
|
"a",
|
|
4218
4218
|
"button",
|
|
4219
4219
|
"div",
|
|
@@ -4231,15 +4231,15 @@ var ws = [
|
|
|
4231
4231
|
"span",
|
|
4232
4232
|
"svg",
|
|
4233
4233
|
"ul"
|
|
4234
|
-
], Ee =
|
|
4235
|
-
const n = /* @__PURE__ */
|
|
4234
|
+
], Ee = vs.reduce((e, t) => {
|
|
4235
|
+
const n = /* @__PURE__ */ gs(`Primitive.${t}`), r = f.forwardRef((o, s) => {
|
|
4236
4236
|
const { asChild: i, ...l } = o, c = i ? n : t;
|
|
4237
4237
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ w(c, { ...l, ref: s });
|
|
4238
4238
|
});
|
|
4239
4239
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
4240
4240
|
}, {});
|
|
4241
|
-
function
|
|
4242
|
-
e &&
|
|
4241
|
+
function Es(e, t) {
|
|
4242
|
+
e && vn.flushSync(() => e.dispatchEvent(t));
|
|
4243
4243
|
}
|
|
4244
4244
|
function it(e) {
|
|
4245
4245
|
const t = f.useRef(e);
|
|
@@ -4247,7 +4247,7 @@ function it(e) {
|
|
|
4247
4247
|
t.current = e;
|
|
4248
4248
|
}), f.useMemo(() => (...n) => t.current?.(...n), []);
|
|
4249
4249
|
}
|
|
4250
|
-
function
|
|
4250
|
+
function As(e, t = globalThis?.document) {
|
|
4251
4251
|
const n = it(e);
|
|
4252
4252
|
f.useEffect(() => {
|
|
4253
4253
|
const r = (o) => {
|
|
@@ -4256,11 +4256,11 @@ function Es(e, t = globalThis?.document) {
|
|
|
4256
4256
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
4257
4257
|
}, [n, t]);
|
|
4258
4258
|
}
|
|
4259
|
-
var
|
|
4259
|
+
var Cs = "DismissableLayer", vt = "dismissableLayer.update", Rs = "dismissableLayer.pointerDownOutside", Ss = "dismissableLayer.focusOutside", on, Yn = f.createContext({
|
|
4260
4260
|
layers: /* @__PURE__ */ new Set(),
|
|
4261
4261
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
4262
4262
|
branches: /* @__PURE__ */ new Set()
|
|
4263
|
-
}),
|
|
4263
|
+
}), Kn = f.forwardRef(
|
|
4264
4264
|
(e, t) => {
|
|
4265
4265
|
const {
|
|
4266
4266
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -4270,22 +4270,22 @@ var As = "DismissableLayer", vt = "dismissableLayer.update", Cs = "dismissableLa
|
|
|
4270
4270
|
onInteractOutside: i,
|
|
4271
4271
|
onDismiss: l,
|
|
4272
4272
|
...c
|
|
4273
|
-
} = e, a = f.useContext(
|
|
4273
|
+
} = e, a = f.useContext(Yn), [d, u] = f.useState(null), m = d?.ownerDocument ?? globalThis?.document, [, p] = f.useState({}), h = we(t, (T) => u(T)), b = Array.from(a.layers), [x] = [...a.layersWithOutsidePointerEventsDisabled].slice(-1), y = b.indexOf(x), E = d ? b.indexOf(d) : -1, O = a.layersWithOutsidePointerEventsDisabled.size > 0, S = E >= y, k = ks((T) => {
|
|
4274
4274
|
const v = T.target, $ = [...a.branches].some((M) => M.contains(v));
|
|
4275
4275
|
!S || $ || (o?.(T), i?.(T), T.defaultPrevented || l?.());
|
|
4276
|
-
}, m), N =
|
|
4276
|
+
}, m), N = Ns((T) => {
|
|
4277
4277
|
const v = T.target;
|
|
4278
4278
|
[...a.branches].some((M) => M.contains(v)) || (s?.(T), i?.(T), T.defaultPrevented || l?.());
|
|
4279
4279
|
}, m);
|
|
4280
|
-
return
|
|
4280
|
+
return As((T) => {
|
|
4281
4281
|
E === a.layers.size - 1 && (r?.(T), !T.defaultPrevented && l && (T.preventDefault(), l()));
|
|
4282
4282
|
}, m), f.useEffect(() => {
|
|
4283
4283
|
if (d)
|
|
4284
|
-
return n && (a.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
4285
|
-
n && a.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents =
|
|
4284
|
+
return n && (a.layersWithOutsidePointerEventsDisabled.size === 0 && (on = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), a.layersWithOutsidePointerEventsDisabled.add(d)), a.layers.add(d), sn(), () => {
|
|
4285
|
+
n && a.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = on);
|
|
4286
4286
|
};
|
|
4287
4287
|
}, [d, m, n, a]), f.useEffect(() => () => {
|
|
4288
|
-
d && (a.layers.delete(d), a.layersWithOutsidePointerEventsDisabled.delete(d),
|
|
4288
|
+
d && (a.layers.delete(d), a.layersWithOutsidePointerEventsDisabled.delete(d), sn());
|
|
4289
4289
|
}, [d, a]), f.useEffect(() => {
|
|
4290
4290
|
const T = () => p({});
|
|
4291
4291
|
return document.addEventListener(vt, T), () => document.removeEventListener(vt, T);
|
|
@@ -4308,9 +4308,9 @@ var As = "DismissableLayer", vt = "dismissableLayer.update", Cs = "dismissableLa
|
|
|
4308
4308
|
);
|
|
4309
4309
|
}
|
|
4310
4310
|
);
|
|
4311
|
-
|
|
4312
|
-
var
|
|
4313
|
-
const n = f.useContext(
|
|
4311
|
+
Kn.displayName = Cs;
|
|
4312
|
+
var Ts = "DismissableLayerBranch", Os = f.forwardRef((e, t) => {
|
|
4313
|
+
const n = f.useContext(Yn), r = f.useRef(null), o = we(t, r);
|
|
4314
4314
|
return f.useEffect(() => {
|
|
4315
4315
|
const s = r.current;
|
|
4316
4316
|
if (s)
|
|
@@ -4319,16 +4319,16 @@ var Ss = "DismissableLayerBranch", Ts = f.forwardRef((e, t) => {
|
|
|
4319
4319
|
};
|
|
4320
4320
|
}, [n.branches]), /* @__PURE__ */ w(Ee.div, { ...e, ref: o });
|
|
4321
4321
|
});
|
|
4322
|
-
|
|
4323
|
-
function
|
|
4322
|
+
Os.displayName = Ts;
|
|
4323
|
+
function ks(e, t = globalThis?.document) {
|
|
4324
4324
|
const n = it(e), r = f.useRef(!1), o = f.useRef(() => {
|
|
4325
4325
|
});
|
|
4326
4326
|
return f.useEffect(() => {
|
|
4327
4327
|
const s = (l) => {
|
|
4328
4328
|
if (l.target && !r.current) {
|
|
4329
4329
|
let c = function() {
|
|
4330
|
-
|
|
4331
|
-
|
|
4330
|
+
Xn(
|
|
4331
|
+
Rs,
|
|
4332
4332
|
n,
|
|
4333
4333
|
a,
|
|
4334
4334
|
{ discrete: !0 }
|
|
@@ -4350,11 +4350,11 @@ function Os(e, t = globalThis?.document) {
|
|
|
4350
4350
|
onPointerDownCapture: () => r.current = !0
|
|
4351
4351
|
};
|
|
4352
4352
|
}
|
|
4353
|
-
function
|
|
4353
|
+
function Ns(e, t = globalThis?.document) {
|
|
4354
4354
|
const n = it(e), r = f.useRef(!1);
|
|
4355
4355
|
return f.useEffect(() => {
|
|
4356
4356
|
const o = (s) => {
|
|
4357
|
-
s.target && !r.current &&
|
|
4357
|
+
s.target && !r.current && Xn(Ss, n, { originalEvent: s }, {
|
|
4358
4358
|
discrete: !1
|
|
4359
4359
|
});
|
|
4360
4360
|
};
|
|
@@ -4364,27 +4364,27 @@ function ks(e, t = globalThis?.document) {
|
|
|
4364
4364
|
onBlurCapture: () => r.current = !1
|
|
4365
4365
|
};
|
|
4366
4366
|
}
|
|
4367
|
-
function
|
|
4367
|
+
function sn() {
|
|
4368
4368
|
const e = new CustomEvent(vt);
|
|
4369
4369
|
document.dispatchEvent(e);
|
|
4370
4370
|
}
|
|
4371
|
-
function
|
|
4371
|
+
function Xn(e, t, n, { discrete: r }) {
|
|
4372
4372
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
4373
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
4373
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? Es(o, s) : o.dispatchEvent(s);
|
|
4374
4374
|
}
|
|
4375
4375
|
var ye = globalThis?.document ? f.useLayoutEffect : () => {
|
|
4376
|
-
},
|
|
4377
|
-
}),
|
|
4378
|
-
function
|
|
4379
|
-
const [t, n] = f.useState(
|
|
4376
|
+
}, _s = f[" useId ".trim().toString()] || (() => {
|
|
4377
|
+
}), Ps = 0;
|
|
4378
|
+
function $s(e) {
|
|
4379
|
+
const [t, n] = f.useState(_s());
|
|
4380
4380
|
return ye(() => {
|
|
4381
|
-
n((r) => r ?? String(
|
|
4381
|
+
n((r) => r ?? String(Ps++));
|
|
4382
4382
|
}, [e]), t ? `radix-${t}` : "";
|
|
4383
4383
|
}
|
|
4384
|
-
const
|
|
4384
|
+
const Is = ["top", "right", "bottom", "left"], fe = Math.min, K = Math.max, nt = Math.round, Xe = Math.floor, re = (e) => ({
|
|
4385
4385
|
x: e,
|
|
4386
4386
|
y: e
|
|
4387
|
-
}),
|
|
4387
|
+
}), Ls = {
|
|
4388
4388
|
left: "right",
|
|
4389
4389
|
right: "left",
|
|
4390
4390
|
bottom: "top",
|
|
@@ -4402,55 +4402,55 @@ function le(e) {
|
|
|
4402
4402
|
function _e(e) {
|
|
4403
4403
|
return e.split("-")[1];
|
|
4404
4404
|
}
|
|
4405
|
-
function
|
|
4405
|
+
function Lt(e) {
|
|
4406
4406
|
return e === "x" ? "y" : "x";
|
|
4407
4407
|
}
|
|
4408
|
-
function
|
|
4408
|
+
function Mt(e) {
|
|
4409
4409
|
return e === "y" ? "height" : "width";
|
|
4410
4410
|
}
|
|
4411
4411
|
function ne(e) {
|
|
4412
4412
|
const t = e[0];
|
|
4413
4413
|
return t === "t" || t === "b" ? "y" : "x";
|
|
4414
4414
|
}
|
|
4415
|
-
function
|
|
4416
|
-
return
|
|
4415
|
+
function zt(e) {
|
|
4416
|
+
return Lt(ne(e));
|
|
4417
4417
|
}
|
|
4418
|
-
function
|
|
4418
|
+
function Ms(e, t, n) {
|
|
4419
4419
|
n === void 0 && (n = !1);
|
|
4420
|
-
const r = _e(e), o =
|
|
4420
|
+
const r = _e(e), o = zt(e), s = Mt(o);
|
|
4421
4421
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
4422
4422
|
return t.reference[s] > t.floating[s] && (i = rt(i)), [i, rt(i)];
|
|
4423
4423
|
}
|
|
4424
|
-
function
|
|
4424
|
+
function zs(e) {
|
|
4425
4425
|
const t = rt(e);
|
|
4426
4426
|
return [At(e), t, At(t)];
|
|
4427
4427
|
}
|
|
4428
4428
|
function At(e) {
|
|
4429
4429
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
4430
4430
|
}
|
|
4431
|
-
const
|
|
4432
|
-
function
|
|
4431
|
+
const an = ["left", "right"], ln = ["right", "left"], Ds = ["top", "bottom"], Fs = ["bottom", "top"];
|
|
4432
|
+
function Us(e, t, n) {
|
|
4433
4433
|
switch (e) {
|
|
4434
4434
|
case "top":
|
|
4435
4435
|
case "bottom":
|
|
4436
|
-
return n ? t ?
|
|
4436
|
+
return n ? t ? ln : an : t ? an : ln;
|
|
4437
4437
|
case "left":
|
|
4438
4438
|
case "right":
|
|
4439
|
-
return t ?
|
|
4439
|
+
return t ? Ds : Fs;
|
|
4440
4440
|
default:
|
|
4441
4441
|
return [];
|
|
4442
4442
|
}
|
|
4443
4443
|
}
|
|
4444
|
-
function
|
|
4444
|
+
function Ws(e, t, n, r) {
|
|
4445
4445
|
const o = _e(e);
|
|
4446
|
-
let s =
|
|
4446
|
+
let s = Us(le(e), n === "start", r);
|
|
4447
4447
|
return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(At)))), s;
|
|
4448
4448
|
}
|
|
4449
4449
|
function rt(e) {
|
|
4450
4450
|
const t = le(e);
|
|
4451
|
-
return
|
|
4451
|
+
return Ls[t] + e.slice(t.length);
|
|
4452
4452
|
}
|
|
4453
|
-
function
|
|
4453
|
+
function Gs(e) {
|
|
4454
4454
|
return {
|
|
4455
4455
|
top: 0,
|
|
4456
4456
|
right: 0,
|
|
@@ -4459,8 +4459,8 @@ function Ws(e) {
|
|
|
4459
4459
|
...e
|
|
4460
4460
|
};
|
|
4461
4461
|
}
|
|
4462
|
-
function
|
|
4463
|
-
return typeof e != "number" ?
|
|
4462
|
+
function qn(e) {
|
|
4463
|
+
return typeof e != "number" ? Gs(e) : {
|
|
4464
4464
|
top: e,
|
|
4465
4465
|
right: e,
|
|
4466
4466
|
bottom: e,
|
|
@@ -4485,12 +4485,12 @@ function ot(e) {
|
|
|
4485
4485
|
y: n
|
|
4486
4486
|
};
|
|
4487
4487
|
}
|
|
4488
|
-
function
|
|
4488
|
+
function cn(e, t, n) {
|
|
4489
4489
|
let {
|
|
4490
4490
|
reference: r,
|
|
4491
4491
|
floating: o
|
|
4492
4492
|
} = e;
|
|
4493
|
-
const s = ne(t), i =
|
|
4493
|
+
const s = ne(t), i = zt(t), l = Mt(i), c = le(t), a = s === "y", d = r.x + r.width / 2 - o.width / 2, u = r.y + r.height / 2 - o.height / 2, m = r[l] / 2 - o[l] / 2;
|
|
4494
4494
|
let p;
|
|
4495
4495
|
switch (c) {
|
|
4496
4496
|
case "top":
|
|
@@ -4533,7 +4533,7 @@ function ln(e, t, n) {
|
|
|
4533
4533
|
}
|
|
4534
4534
|
return p;
|
|
4535
4535
|
}
|
|
4536
|
-
async function
|
|
4536
|
+
async function Vs(e, t) {
|
|
4537
4537
|
var n;
|
|
4538
4538
|
t === void 0 && (t = {});
|
|
4539
4539
|
const {
|
|
@@ -4549,7 +4549,7 @@ async function Gs(e, t) {
|
|
|
4549
4549
|
elementContext: u = "floating",
|
|
4550
4550
|
altBoundary: m = !1,
|
|
4551
4551
|
padding: p = 0
|
|
4552
|
-
} = ae(t, e), h =
|
|
4552
|
+
} = ae(t, e), h = qn(p), x = l[m ? u === "floating" ? "reference" : "floating" : u], y = ot(await s.getClippingRect({
|
|
4553
4553
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(x))) == null || n ? x : x.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
|
|
4554
4554
|
boundary: a,
|
|
4555
4555
|
rootBoundary: d,
|
|
@@ -4578,7 +4578,7 @@ async function Gs(e, t) {
|
|
|
4578
4578
|
right: (k.right - y.right + h.right) / S.x
|
|
4579
4579
|
};
|
|
4580
4580
|
}
|
|
4581
|
-
const
|
|
4581
|
+
const Hs = 50, Bs = async (e, t, n) => {
|
|
4582
4582
|
const {
|
|
4583
4583
|
placement: r = "bottom",
|
|
4584
4584
|
strategy: o = "absolute",
|
|
@@ -4586,7 +4586,7 @@ const Vs = 50, Hs = async (e, t, n) => {
|
|
|
4586
4586
|
platform: i
|
|
4587
4587
|
} = n, l = i.detectOverflow ? i : {
|
|
4588
4588
|
...i,
|
|
4589
|
-
detectOverflow:
|
|
4589
|
+
detectOverflow: Vs
|
|
4590
4590
|
}, c = await (i.isRTL == null ? void 0 : i.isRTL(t));
|
|
4591
4591
|
let a = await i.getElementRects({
|
|
4592
4592
|
reference: e,
|
|
@@ -4595,7 +4595,7 @@ const Vs = 50, Hs = async (e, t, n) => {
|
|
|
4595
4595
|
}), {
|
|
4596
4596
|
x: d,
|
|
4597
4597
|
y: u
|
|
4598
|
-
} =
|
|
4598
|
+
} = cn(a, r, c), m = r, p = 0;
|
|
4599
4599
|
const h = {};
|
|
4600
4600
|
for (let b = 0; b < s.length; b++) {
|
|
4601
4601
|
const x = s[b];
|
|
@@ -4626,14 +4626,14 @@ const Vs = 50, Hs = async (e, t, n) => {
|
|
|
4626
4626
|
d = O ?? d, u = S ?? u, h[y] = {
|
|
4627
4627
|
...h[y],
|
|
4628
4628
|
...k
|
|
4629
|
-
}, N && p <
|
|
4629
|
+
}, N && p < Hs && (p++, typeof N == "object" && (N.placement && (m = N.placement), N.rects && (a = N.rects === !0 ? await i.getElementRects({
|
|
4630
4630
|
reference: e,
|
|
4631
4631
|
floating: t,
|
|
4632
4632
|
strategy: o
|
|
4633
4633
|
}) : N.rects), {
|
|
4634
4634
|
x: d,
|
|
4635
4635
|
y: u
|
|
4636
|
-
} =
|
|
4636
|
+
} = cn(a, m, c)), b = -1);
|
|
4637
4637
|
}
|
|
4638
4638
|
return {
|
|
4639
4639
|
x: d,
|
|
@@ -4642,7 +4642,7 @@ const Vs = 50, Hs = async (e, t, n) => {
|
|
|
4642
4642
|
strategy: o,
|
|
4643
4643
|
middlewareData: h
|
|
4644
4644
|
};
|
|
4645
|
-
},
|
|
4645
|
+
}, js = (e) => ({
|
|
4646
4646
|
name: "arrow",
|
|
4647
4647
|
options: e,
|
|
4648
4648
|
async fn(t) {
|
|
@@ -4660,10 +4660,10 @@ const Vs = 50, Hs = async (e, t, n) => {
|
|
|
4660
4660
|
} = ae(e, t) || {};
|
|
4661
4661
|
if (a == null)
|
|
4662
4662
|
return {};
|
|
4663
|
-
const u =
|
|
4663
|
+
const u = qn(d), m = {
|
|
4664
4664
|
x: n,
|
|
4665
4665
|
y: r
|
|
4666
|
-
}, p =
|
|
4666
|
+
}, p = zt(o), h = Mt(p), b = await i.getDimensions(a), x = p === "y", y = x ? "top" : "left", E = x ? "bottom" : "right", O = x ? "clientHeight" : "clientWidth", S = s.reference[h] + s.reference[p] - m[p] - s.floating[h], k = m[p] - s.reference[p], N = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a));
|
|
4667
4667
|
let T = N ? N[O] : 0;
|
|
4668
4668
|
(!T || !await (i.isElement == null ? void 0 : i.isElement(N))) && (T = l.floating[O] || s.floating[h]);
|
|
4669
4669
|
const v = S / 2 - k / 2, $ = T / 2 - b[h] / 2 - 1, M = fe(u[y], $), B = fe(u[E], $), F = M, D = T - b[h] - B, z = T / 2 - b[h] / 2 + v, U = Et(F, z, D), I = !c.arrow && _e(o) != null && z !== U && s.reference[h] / 2 - (z < F ? M : B) - b[h] / 2 < 0, L = I ? z < F ? z - F : z - D : 0;
|
|
@@ -4679,7 +4679,7 @@ const Vs = 50, Hs = async (e, t, n) => {
|
|
|
4679
4679
|
reset: I
|
|
4680
4680
|
};
|
|
4681
4681
|
}
|
|
4682
|
-
}),
|
|
4682
|
+
}), Ys = function(e) {
|
|
4683
4683
|
return e === void 0 && (e = {}), {
|
|
4684
4684
|
name: "flip",
|
|
4685
4685
|
options: e,
|
|
@@ -4703,12 +4703,12 @@ const Vs = 50, Hs = async (e, t, n) => {
|
|
|
4703
4703
|
} = ae(e, t);
|
|
4704
4704
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
4705
4705
|
return {};
|
|
4706
|
-
const y = le(o), E = ne(l), O = le(l) === l, S = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), k = m || (O || !b ? [rt(l)] :
|
|
4707
|
-
!m && N && k.push(...
|
|
4706
|
+
const y = le(o), E = ne(l), O = le(l) === l, S = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), k = m || (O || !b ? [rt(l)] : zs(l)), N = h !== "none";
|
|
4707
|
+
!m && N && k.push(...Ws(l, b, h, S));
|
|
4708
4708
|
const T = [l, ...k], v = await c.detectOverflow(t, x), $ = [];
|
|
4709
4709
|
let M = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
4710
4710
|
if (d && $.push(v[y]), u) {
|
|
4711
|
-
const z =
|
|
4711
|
+
const z = Ms(o, i, S);
|
|
4712
4712
|
$.push(v[z[0]], v[z[1]]);
|
|
4713
4713
|
}
|
|
4714
4714
|
if (M = [...M, {
|
|
@@ -4761,7 +4761,7 @@ const Vs = 50, Hs = async (e, t, n) => {
|
|
|
4761
4761
|
}
|
|
4762
4762
|
};
|
|
4763
4763
|
};
|
|
4764
|
-
function
|
|
4764
|
+
function dn(e, t) {
|
|
4765
4765
|
return {
|
|
4766
4766
|
top: e.top - t.height,
|
|
4767
4767
|
right: e.right - t.width,
|
|
@@ -4769,10 +4769,10 @@ function cn(e, t) {
|
|
|
4769
4769
|
left: e.left - t.width
|
|
4770
4770
|
};
|
|
4771
4771
|
}
|
|
4772
|
-
function
|
|
4773
|
-
return
|
|
4772
|
+
function un(e) {
|
|
4773
|
+
return Is.some((t) => e[t] >= 0);
|
|
4774
4774
|
}
|
|
4775
|
-
const
|
|
4775
|
+
const Ks = function(e) {
|
|
4776
4776
|
return e === void 0 && (e = {}), {
|
|
4777
4777
|
name: "hide",
|
|
4778
4778
|
options: e,
|
|
@@ -4789,11 +4789,11 @@ const Ys = function(e) {
|
|
|
4789
4789
|
const i = await r.detectOverflow(t, {
|
|
4790
4790
|
...s,
|
|
4791
4791
|
elementContext: "reference"
|
|
4792
|
-
}), l =
|
|
4792
|
+
}), l = dn(i, n.reference);
|
|
4793
4793
|
return {
|
|
4794
4794
|
data: {
|
|
4795
4795
|
referenceHiddenOffsets: l,
|
|
4796
|
-
referenceHidden:
|
|
4796
|
+
referenceHidden: un(l)
|
|
4797
4797
|
}
|
|
4798
4798
|
};
|
|
4799
4799
|
}
|
|
@@ -4801,11 +4801,11 @@ const Ys = function(e) {
|
|
|
4801
4801
|
const i = await r.detectOverflow(t, {
|
|
4802
4802
|
...s,
|
|
4803
4803
|
altBoundary: !0
|
|
4804
|
-
}), l =
|
|
4804
|
+
}), l = dn(i, n.floating);
|
|
4805
4805
|
return {
|
|
4806
4806
|
data: {
|
|
4807
4807
|
escapedOffsets: l,
|
|
4808
|
-
escaped:
|
|
4808
|
+
escaped: un(l)
|
|
4809
4809
|
}
|
|
4810
4810
|
};
|
|
4811
4811
|
}
|
|
@@ -4814,13 +4814,13 @@ const Ys = function(e) {
|
|
|
4814
4814
|
}
|
|
4815
4815
|
}
|
|
4816
4816
|
};
|
|
4817
|
-
},
|
|
4818
|
-
async function
|
|
4817
|
+
}, Jn = /* @__PURE__ */ new Set(["left", "top"]);
|
|
4818
|
+
async function Xs(e, t) {
|
|
4819
4819
|
const {
|
|
4820
4820
|
placement: n,
|
|
4821
4821
|
platform: r,
|
|
4822
4822
|
elements: o
|
|
4823
|
-
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = le(n), l = _e(n), c = ne(n) === "y", a =
|
|
4823
|
+
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = le(n), l = _e(n), c = ne(n) === "y", a = Jn.has(i) ? -1 : 1, d = s && c ? -1 : 1, u = ae(t, e);
|
|
4824
4824
|
let {
|
|
4825
4825
|
mainAxis: m,
|
|
4826
4826
|
crossAxis: p,
|
|
@@ -4842,7 +4842,7 @@ async function Ks(e, t) {
|
|
|
4842
4842
|
y: p * d
|
|
4843
4843
|
};
|
|
4844
4844
|
}
|
|
4845
|
-
const
|
|
4845
|
+
const qs = function(e) {
|
|
4846
4846
|
return e === void 0 && (e = 0), {
|
|
4847
4847
|
name: "offset",
|
|
4848
4848
|
options: e,
|
|
@@ -4853,7 +4853,7 @@ const Xs = function(e) {
|
|
|
4853
4853
|
y: s,
|
|
4854
4854
|
placement: i,
|
|
4855
4855
|
middlewareData: l
|
|
4856
|
-
} = t, c = await
|
|
4856
|
+
} = t, c = await Xs(t, e);
|
|
4857
4857
|
return i === ((n = l.offset) == null ? void 0 : n.placement) && (r = l.arrow) != null && r.alignmentOffset ? {} : {
|
|
4858
4858
|
x: o + c.x,
|
|
4859
4859
|
y: s + c.y,
|
|
@@ -4864,7 +4864,7 @@ const Xs = function(e) {
|
|
|
4864
4864
|
};
|
|
4865
4865
|
}
|
|
4866
4866
|
};
|
|
4867
|
-
},
|
|
4867
|
+
}, Js = function(e) {
|
|
4868
4868
|
return e === void 0 && (e = {}), {
|
|
4869
4869
|
name: "shift",
|
|
4870
4870
|
options: e,
|
|
@@ -4893,7 +4893,7 @@ const Xs = function(e) {
|
|
|
4893
4893
|
} = ae(e, t), d = {
|
|
4894
4894
|
x: n,
|
|
4895
4895
|
y: r
|
|
4896
|
-
}, u = await s.detectOverflow(t, a), m = ne(le(o)), p =
|
|
4896
|
+
}, u = await s.detectOverflow(t, a), m = ne(le(o)), p = Lt(m);
|
|
4897
4897
|
let h = d[p], b = d[m];
|
|
4898
4898
|
if (i) {
|
|
4899
4899
|
const y = p === "y" ? "top" : "left", E = p === "y" ? "bottom" : "right", O = h + u[y], S = h - u[E];
|
|
@@ -4921,7 +4921,7 @@ const Xs = function(e) {
|
|
|
4921
4921
|
};
|
|
4922
4922
|
}
|
|
4923
4923
|
};
|
|
4924
|
-
},
|
|
4924
|
+
}, Zs = function(e) {
|
|
4925
4925
|
return e === void 0 && (e = {}), {
|
|
4926
4926
|
options: e,
|
|
4927
4927
|
fn(t) {
|
|
@@ -4938,7 +4938,7 @@ const Xs = function(e) {
|
|
|
4938
4938
|
} = ae(e, t), d = {
|
|
4939
4939
|
x: n,
|
|
4940
4940
|
y: r
|
|
4941
|
-
}, u = ne(o), m =
|
|
4941
|
+
}, u = ne(o), m = Lt(u);
|
|
4942
4942
|
let p = d[m], h = d[u];
|
|
4943
4943
|
const b = ae(l, t), x = typeof b == "number" ? {
|
|
4944
4944
|
mainAxis: b,
|
|
@@ -4954,7 +4954,7 @@ const Xs = function(e) {
|
|
|
4954
4954
|
}
|
|
4955
4955
|
if (a) {
|
|
4956
4956
|
var y, E;
|
|
4957
|
-
const O = m === "y" ? "width" : "height", S =
|
|
4957
|
+
const O = m === "y" ? "width" : "height", S = Jn.has(le(o)), k = s.reference[u] - s.floating[O] + (S && ((y = i.offset) == null ? void 0 : y[u]) || 0) + (S ? 0 : x.crossAxis), N = s.reference[u] + s.reference[O] + (S ? 0 : ((E = i.offset) == null ? void 0 : E[u]) || 0) - (S ? x.crossAxis : 0);
|
|
4958
4958
|
h < k ? h = k : h > N && (h = N);
|
|
4959
4959
|
}
|
|
4960
4960
|
return {
|
|
@@ -4963,7 +4963,7 @@ const Xs = function(e) {
|
|
|
4963
4963
|
};
|
|
4964
4964
|
}
|
|
4965
4965
|
};
|
|
4966
|
-
},
|
|
4966
|
+
}, Qs = function(e) {
|
|
4967
4967
|
return e === void 0 && (e = {}), {
|
|
4968
4968
|
name: "size",
|
|
4969
4969
|
options: e,
|
|
@@ -5008,7 +5008,7 @@ function at() {
|
|
|
5008
5008
|
return typeof window < "u";
|
|
5009
5009
|
}
|
|
5010
5010
|
function Pe(e) {
|
|
5011
|
-
return
|
|
5011
|
+
return Zn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
5012
5012
|
}
|
|
5013
5013
|
function X(e) {
|
|
5014
5014
|
var t;
|
|
@@ -5016,9 +5016,9 @@ function X(e) {
|
|
|
5016
5016
|
}
|
|
5017
5017
|
function oe(e) {
|
|
5018
5018
|
var t;
|
|
5019
|
-
return (t = (
|
|
5019
|
+
return (t = (Zn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
5020
5020
|
}
|
|
5021
|
-
function
|
|
5021
|
+
function Zn(e) {
|
|
5022
5022
|
return at() ? e instanceof Node || e instanceof X(e).Node : !1;
|
|
5023
5023
|
}
|
|
5024
5024
|
function Z(e) {
|
|
@@ -5027,7 +5027,7 @@ function Z(e) {
|
|
|
5027
5027
|
function ce(e) {
|
|
5028
5028
|
return at() ? e instanceof HTMLElement || e instanceof X(e).HTMLElement : !1;
|
|
5029
5029
|
}
|
|
5030
|
-
function
|
|
5030
|
+
function fn(e) {
|
|
5031
5031
|
return !at() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof X(e).ShadowRoot;
|
|
5032
5032
|
}
|
|
5033
5033
|
function Ge(e) {
|
|
@@ -5039,7 +5039,7 @@ function Ge(e) {
|
|
|
5039
5039
|
} = Q(e);
|
|
5040
5040
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && o !== "inline" && o !== "contents";
|
|
5041
5041
|
}
|
|
5042
|
-
function
|
|
5042
|
+
function ei(e) {
|
|
5043
5043
|
return /^(table|td|th)$/.test(Pe(e));
|
|
5044
5044
|
}
|
|
5045
5045
|
function lt(e) {
|
|
@@ -5054,16 +5054,16 @@ function lt(e) {
|
|
|
5054
5054
|
return !1;
|
|
5055
5055
|
}
|
|
5056
5056
|
}
|
|
5057
|
-
const
|
|
5057
|
+
const ti = /transform|translate|scale|rotate|perspective|filter/, ni = /paint|layout|strict|content/, be = (e) => !!e && e !== "none";
|
|
5058
5058
|
let ht;
|
|
5059
|
-
function
|
|
5059
|
+
function Dt(e) {
|
|
5060
5060
|
const t = Z(e) ? Q(e) : e;
|
|
5061
|
-
return be(t.transform) || be(t.translate) || be(t.scale) || be(t.rotate) || be(t.perspective) || !
|
|
5061
|
+
return be(t.transform) || be(t.translate) || be(t.scale) || be(t.rotate) || be(t.perspective) || !Ft() && (be(t.backdropFilter) || be(t.filter)) || ti.test(t.willChange || "") || ni.test(t.contain || "");
|
|
5062
5062
|
}
|
|
5063
|
-
function
|
|
5063
|
+
function ri(e) {
|
|
5064
5064
|
let t = me(e);
|
|
5065
5065
|
for (; ce(t) && !ke(t); ) {
|
|
5066
|
-
if (
|
|
5066
|
+
if (Dt(t))
|
|
5067
5067
|
return t;
|
|
5068
5068
|
if (lt(t))
|
|
5069
5069
|
return null;
|
|
@@ -5071,7 +5071,7 @@ function ni(e) {
|
|
|
5071
5071
|
}
|
|
5072
5072
|
return null;
|
|
5073
5073
|
}
|
|
5074
|
-
function
|
|
5074
|
+
function Ft() {
|
|
5075
5075
|
return ht == null && (ht = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), ht;
|
|
5076
5076
|
}
|
|
5077
5077
|
function ke(e) {
|
|
@@ -5096,19 +5096,19 @@ function me(e) {
|
|
|
5096
5096
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
5097
5097
|
e.assignedSlot || // DOM Element detected.
|
|
5098
5098
|
e.parentNode || // ShadowRoot detected.
|
|
5099
|
-
|
|
5099
|
+
fn(e) && e.host || // Fallback.
|
|
5100
5100
|
oe(e)
|
|
5101
5101
|
);
|
|
5102
|
-
return
|
|
5102
|
+
return fn(t) ? t.host : t;
|
|
5103
5103
|
}
|
|
5104
|
-
function
|
|
5104
|
+
function Qn(e) {
|
|
5105
5105
|
const t = me(e);
|
|
5106
|
-
return ke(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ce(t) && Ge(t) ? t :
|
|
5106
|
+
return ke(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ce(t) && Ge(t) ? t : Qn(t);
|
|
5107
5107
|
}
|
|
5108
5108
|
function Fe(e, t, n) {
|
|
5109
5109
|
var r;
|
|
5110
5110
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
5111
|
-
const o =
|
|
5111
|
+
const o = Qn(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = X(o);
|
|
5112
5112
|
if (s) {
|
|
5113
5113
|
const l = Ct(i);
|
|
5114
5114
|
return t.concat(i, i.visualViewport || [], Ge(o) ? o : [], l && n ? Fe(l) : []);
|
|
@@ -5118,7 +5118,7 @@ function Fe(e, t, n) {
|
|
|
5118
5118
|
function Ct(e) {
|
|
5119
5119
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
5120
5120
|
}
|
|
5121
|
-
function
|
|
5121
|
+
function er(e) {
|
|
5122
5122
|
const t = Q(e);
|
|
5123
5123
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
5124
5124
|
const o = ce(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, l = nt(n) !== s || nt(r) !== i;
|
|
@@ -5128,41 +5128,41 @@ function Qn(e) {
|
|
|
5128
5128
|
$: l
|
|
5129
5129
|
};
|
|
5130
5130
|
}
|
|
5131
|
-
function
|
|
5131
|
+
function Ut(e) {
|
|
5132
5132
|
return Z(e) ? e : e.contextElement;
|
|
5133
5133
|
}
|
|
5134
5134
|
function Te(e) {
|
|
5135
|
-
const t =
|
|
5135
|
+
const t = Ut(e);
|
|
5136
5136
|
if (!ce(t))
|
|
5137
5137
|
return re(1);
|
|
5138
5138
|
const n = t.getBoundingClientRect(), {
|
|
5139
5139
|
width: r,
|
|
5140
5140
|
height: o,
|
|
5141
5141
|
$: s
|
|
5142
|
-
} =
|
|
5142
|
+
} = er(t);
|
|
5143
5143
|
let i = (s ? nt(n.width) : n.width) / r, l = (s ? nt(n.height) : n.height) / o;
|
|
5144
5144
|
return (!i || !Number.isFinite(i)) && (i = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
5145
5145
|
x: i,
|
|
5146
5146
|
y: l
|
|
5147
5147
|
};
|
|
5148
5148
|
}
|
|
5149
|
-
const
|
|
5150
|
-
function
|
|
5149
|
+
const oi = /* @__PURE__ */ re(0);
|
|
5150
|
+
function tr(e) {
|
|
5151
5151
|
const t = X(e);
|
|
5152
|
-
return !
|
|
5152
|
+
return !Ft() || !t.visualViewport ? oi : {
|
|
5153
5153
|
x: t.visualViewport.offsetLeft,
|
|
5154
5154
|
y: t.visualViewport.offsetTop
|
|
5155
5155
|
};
|
|
5156
5156
|
}
|
|
5157
|
-
function
|
|
5157
|
+
function si(e, t, n) {
|
|
5158
5158
|
return t === void 0 && (t = !1), !n || t && n !== X(e) ? !1 : t;
|
|
5159
5159
|
}
|
|
5160
5160
|
function xe(e, t, n, r) {
|
|
5161
5161
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
5162
|
-
const o = e.getBoundingClientRect(), s =
|
|
5162
|
+
const o = e.getBoundingClientRect(), s = Ut(e);
|
|
5163
5163
|
let i = re(1);
|
|
5164
5164
|
t && (r ? Z(r) && (i = Te(r)) : i = Te(e));
|
|
5165
|
-
const l =
|
|
5165
|
+
const l = si(s, n, r) ? tr(s) : re(0);
|
|
5166
5166
|
let c = (o.left + l.x) / i.x, a = (o.top + l.y) / i.y, d = o.width / i.x, u = o.height / i.y;
|
|
5167
5167
|
if (s) {
|
|
5168
5168
|
const m = X(s), p = r && Z(r) ? X(r) : r;
|
|
@@ -5183,14 +5183,14 @@ function dt(e, t) {
|
|
|
5183
5183
|
const n = ct(e).scrollLeft;
|
|
5184
5184
|
return t ? t.left + n : xe(oe(e)).left + n;
|
|
5185
5185
|
}
|
|
5186
|
-
function
|
|
5186
|
+
function nr(e, t) {
|
|
5187
5187
|
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - dt(e, n), o = n.top + t.scrollTop;
|
|
5188
5188
|
return {
|
|
5189
5189
|
x: r,
|
|
5190
5190
|
y: o
|
|
5191
5191
|
};
|
|
5192
5192
|
}
|
|
5193
|
-
function
|
|
5193
|
+
function ii(e) {
|
|
5194
5194
|
let {
|
|
5195
5195
|
elements: t,
|
|
5196
5196
|
rect: n,
|
|
@@ -5209,7 +5209,7 @@ function si(e) {
|
|
|
5209
5209
|
const p = xe(r);
|
|
5210
5210
|
a = Te(r), d.x = p.x + r.clientLeft, d.y = p.y + r.clientTop;
|
|
5211
5211
|
}
|
|
5212
|
-
const m = i && !u && !s ?
|
|
5212
|
+
const m = i && !u && !s ? nr(i, c) : re(0);
|
|
5213
5213
|
return {
|
|
5214
5214
|
width: n.width * a.x,
|
|
5215
5215
|
height: n.height * a.y,
|
|
@@ -5217,10 +5217,10 @@ function si(e) {
|
|
|
5217
5217
|
y: n.y * a.y - c.scrollTop * a.y + d.y + m.y
|
|
5218
5218
|
};
|
|
5219
5219
|
}
|
|
5220
|
-
function
|
|
5220
|
+
function ai(e) {
|
|
5221
5221
|
return Array.from(e.getClientRects());
|
|
5222
5222
|
}
|
|
5223
|
-
function
|
|
5223
|
+
function li(e) {
|
|
5224
5224
|
const t = oe(e), n = ct(e), r = e.ownerDocument.body, o = K(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = K(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
5225
5225
|
let i = -n.scrollLeft + dt(e);
|
|
5226
5226
|
const l = -n.scrollTop;
|
|
@@ -5231,20 +5231,20 @@ function ai(e) {
|
|
|
5231
5231
|
y: l
|
|
5232
5232
|
};
|
|
5233
5233
|
}
|
|
5234
|
-
const
|
|
5235
|
-
function
|
|
5234
|
+
const mn = 25;
|
|
5235
|
+
function ci(e, t) {
|
|
5236
5236
|
const n = X(e), r = oe(e), o = n.visualViewport;
|
|
5237
5237
|
let s = r.clientWidth, i = r.clientHeight, l = 0, c = 0;
|
|
5238
5238
|
if (o) {
|
|
5239
5239
|
s = o.width, i = o.height;
|
|
5240
|
-
const d =
|
|
5240
|
+
const d = Ft();
|
|
5241
5241
|
(!d || d && t === "fixed") && (l = o.offsetLeft, c = o.offsetTop);
|
|
5242
5242
|
}
|
|
5243
5243
|
const a = dt(r);
|
|
5244
5244
|
if (a <= 0) {
|
|
5245
5245
|
const d = r.ownerDocument, u = d.body, m = getComputedStyle(u), p = d.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(r.clientWidth - u.clientWidth - p);
|
|
5246
|
-
h <=
|
|
5247
|
-
} else a <=
|
|
5246
|
+
h <= mn && (s -= h);
|
|
5247
|
+
} else a <= mn && (s += a);
|
|
5248
5248
|
return {
|
|
5249
5249
|
width: s,
|
|
5250
5250
|
height: i,
|
|
@@ -5252,7 +5252,7 @@ function li(e, t) {
|
|
|
5252
5252
|
y: c
|
|
5253
5253
|
};
|
|
5254
5254
|
}
|
|
5255
|
-
function
|
|
5255
|
+
function di(e, t) {
|
|
5256
5256
|
const n = xe(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = ce(e) ? Te(e) : re(1), i = e.clientWidth * s.x, l = e.clientHeight * s.y, c = o * s.x, a = r * s.y;
|
|
5257
5257
|
return {
|
|
5258
5258
|
width: i,
|
|
@@ -5261,16 +5261,16 @@ function ci(e, t) {
|
|
|
5261
5261
|
y: a
|
|
5262
5262
|
};
|
|
5263
5263
|
}
|
|
5264
|
-
function
|
|
5264
|
+
function pn(e, t, n) {
|
|
5265
5265
|
let r;
|
|
5266
5266
|
if (t === "viewport")
|
|
5267
|
-
r =
|
|
5267
|
+
r = ci(e, n);
|
|
5268
5268
|
else if (t === "document")
|
|
5269
|
-
r =
|
|
5269
|
+
r = li(oe(e));
|
|
5270
5270
|
else if (Z(t))
|
|
5271
|
-
r =
|
|
5271
|
+
r = di(t, n);
|
|
5272
5272
|
else {
|
|
5273
|
-
const o =
|
|
5273
|
+
const o = tr(e);
|
|
5274
5274
|
r = {
|
|
5275
5275
|
x: t.x - o.x,
|
|
5276
5276
|
y: t.y - o.y,
|
|
@@ -5280,11 +5280,11 @@ function mn(e, t, n) {
|
|
|
5280
5280
|
}
|
|
5281
5281
|
return ot(r);
|
|
5282
5282
|
}
|
|
5283
|
-
function
|
|
5283
|
+
function rr(e, t) {
|
|
5284
5284
|
const n = me(e);
|
|
5285
|
-
return n === t || !Z(n) || ke(n) ? !1 : Q(n).position === "fixed" ||
|
|
5285
|
+
return n === t || !Z(n) || ke(n) ? !1 : Q(n).position === "fixed" || rr(n, t);
|
|
5286
5286
|
}
|
|
5287
|
-
function
|
|
5287
|
+
function ui(e, t) {
|
|
5288
5288
|
const n = t.get(e);
|
|
5289
5289
|
if (n)
|
|
5290
5290
|
return n;
|
|
@@ -5292,22 +5292,22 @@ function di(e, t) {
|
|
|
5292
5292
|
const s = Q(e).position === "fixed";
|
|
5293
5293
|
let i = s ? me(e) : e;
|
|
5294
5294
|
for (; Z(i) && !ke(i); ) {
|
|
5295
|
-
const l = Q(i), c =
|
|
5296
|
-
!c && l.position === "fixed" && (o = null), (s ? !c && !o : !c && l.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || Ge(i) && !c &&
|
|
5295
|
+
const l = Q(i), c = Dt(i);
|
|
5296
|
+
!c && l.position === "fixed" && (o = null), (s ? !c && !o : !c && l.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || Ge(i) && !c && rr(e, i)) ? r = r.filter((d) => d !== i) : o = l, i = me(i);
|
|
5297
5297
|
}
|
|
5298
5298
|
return t.set(e, r), r;
|
|
5299
5299
|
}
|
|
5300
|
-
function
|
|
5300
|
+
function fi(e) {
|
|
5301
5301
|
let {
|
|
5302
5302
|
element: t,
|
|
5303
5303
|
boundary: n,
|
|
5304
5304
|
rootBoundary: r,
|
|
5305
5305
|
strategy: o
|
|
5306
5306
|
} = e;
|
|
5307
|
-
const i = [...n === "clippingAncestors" ? lt(t) ? [] :
|
|
5307
|
+
const i = [...n === "clippingAncestors" ? lt(t) ? [] : ui(t, this._c) : [].concat(n), r], l = pn(t, i[0], o);
|
|
5308
5308
|
let c = l.top, a = l.right, d = l.bottom, u = l.left;
|
|
5309
5309
|
for (let m = 1; m < i.length; m++) {
|
|
5310
|
-
const p =
|
|
5310
|
+
const p = pn(t, i[m], o);
|
|
5311
5311
|
c = K(p.top, c), a = fe(p.right, a), d = fe(p.bottom, d), u = K(p.left, u);
|
|
5312
5312
|
}
|
|
5313
5313
|
return {
|
|
@@ -5317,17 +5317,17 @@ function ui(e) {
|
|
|
5317
5317
|
y: c
|
|
5318
5318
|
};
|
|
5319
5319
|
}
|
|
5320
|
-
function
|
|
5320
|
+
function mi(e) {
|
|
5321
5321
|
const {
|
|
5322
5322
|
width: t,
|
|
5323
5323
|
height: n
|
|
5324
|
-
} =
|
|
5324
|
+
} = er(e);
|
|
5325
5325
|
return {
|
|
5326
5326
|
width: t,
|
|
5327
5327
|
height: n
|
|
5328
5328
|
};
|
|
5329
5329
|
}
|
|
5330
|
-
function
|
|
5330
|
+
function pi(e, t, n) {
|
|
5331
5331
|
const r = ce(t), o = oe(t), s = n === "fixed", i = xe(e, !0, s, t);
|
|
5332
5332
|
let l = {
|
|
5333
5333
|
scrollLeft: 0,
|
|
@@ -5343,7 +5343,7 @@ function mi(e, t, n) {
|
|
|
5343
5343
|
c.x = p.x + t.clientLeft, c.y = p.y + t.clientTop;
|
|
5344
5344
|
} else o && a();
|
|
5345
5345
|
s && !r && o && a();
|
|
5346
|
-
const d = o && !r && !s ?
|
|
5346
|
+
const d = o && !r && !s ? nr(o, l) : re(0), u = i.left + l.scrollLeft - c.x - d.x, m = i.top + l.scrollTop - c.y - d.y;
|
|
5347
5347
|
return {
|
|
5348
5348
|
x: u,
|
|
5349
5349
|
y: m,
|
|
@@ -5354,7 +5354,7 @@ function mi(e, t, n) {
|
|
|
5354
5354
|
function bt(e) {
|
|
5355
5355
|
return Q(e).position === "static";
|
|
5356
5356
|
}
|
|
5357
|
-
function
|
|
5357
|
+
function gn(e, t) {
|
|
5358
5358
|
if (!ce(e) || Q(e).position === "fixed")
|
|
5359
5359
|
return null;
|
|
5360
5360
|
if (t)
|
|
@@ -5362,7 +5362,7 @@ function pn(e, t) {
|
|
|
5362
5362
|
let n = e.offsetParent;
|
|
5363
5363
|
return oe(e) === n && (n = n.ownerDocument.body), n;
|
|
5364
5364
|
}
|
|
5365
|
-
function
|
|
5365
|
+
function or(e, t) {
|
|
5366
5366
|
const n = X(e);
|
|
5367
5367
|
if (lt(e))
|
|
5368
5368
|
return n;
|
|
@@ -5375,15 +5375,15 @@ function rr(e, t) {
|
|
|
5375
5375
|
}
|
|
5376
5376
|
return n;
|
|
5377
5377
|
}
|
|
5378
|
-
let r =
|
|
5379
|
-
for (; r &&
|
|
5380
|
-
r =
|
|
5381
|
-
return r && ke(r) && bt(r) && !
|
|
5378
|
+
let r = gn(e, t);
|
|
5379
|
+
for (; r && ei(r) && bt(r); )
|
|
5380
|
+
r = gn(r, t);
|
|
5381
|
+
return r && ke(r) && bt(r) && !Dt(r) ? n : r || ri(e) || n;
|
|
5382
5382
|
}
|
|
5383
|
-
const
|
|
5384
|
-
const t = this.getOffsetParent ||
|
|
5383
|
+
const gi = async function(e) {
|
|
5384
|
+
const t = this.getOffsetParent || or, n = this.getDimensions, r = await n(e.floating);
|
|
5385
5385
|
return {
|
|
5386
|
-
reference:
|
|
5386
|
+
reference: pi(e.reference, await t(e.floating), e.strategy),
|
|
5387
5387
|
floating: {
|
|
5388
5388
|
x: 0,
|
|
5389
5389
|
y: 0,
|
|
@@ -5392,25 +5392,25 @@ const pi = async function(e) {
|
|
|
5392
5392
|
}
|
|
5393
5393
|
};
|
|
5394
5394
|
};
|
|
5395
|
-
function
|
|
5395
|
+
function hi(e) {
|
|
5396
5396
|
return Q(e).direction === "rtl";
|
|
5397
5397
|
}
|
|
5398
|
-
const
|
|
5399
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
5398
|
+
const bi = {
|
|
5399
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ii,
|
|
5400
5400
|
getDocumentElement: oe,
|
|
5401
|
-
getClippingRect:
|
|
5402
|
-
getOffsetParent:
|
|
5403
|
-
getElementRects:
|
|
5404
|
-
getClientRects:
|
|
5405
|
-
getDimensions:
|
|
5401
|
+
getClippingRect: fi,
|
|
5402
|
+
getOffsetParent: or,
|
|
5403
|
+
getElementRects: gi,
|
|
5404
|
+
getClientRects: ai,
|
|
5405
|
+
getDimensions: mi,
|
|
5406
5406
|
getScale: Te,
|
|
5407
5407
|
isElement: Z,
|
|
5408
|
-
isRTL:
|
|
5408
|
+
isRTL: hi
|
|
5409
5409
|
};
|
|
5410
|
-
function
|
|
5410
|
+
function sr(e, t) {
|
|
5411
5411
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
5412
5412
|
}
|
|
5413
|
-
function
|
|
5413
|
+
function yi(e, t) {
|
|
5414
5414
|
let n = null, r;
|
|
5415
5415
|
const o = oe(e);
|
|
5416
5416
|
function s() {
|
|
@@ -5441,7 +5441,7 @@ function bi(e, t) {
|
|
|
5441
5441
|
i(!1, 1e-7);
|
|
5442
5442
|
}, 1e3);
|
|
5443
5443
|
}
|
|
5444
|
-
T === 1 && !
|
|
5444
|
+
T === 1 && !sr(a, e.getBoundingClientRect()) && i(), S = !1;
|
|
5445
5445
|
}
|
|
5446
5446
|
try {
|
|
5447
5447
|
n = new IntersectionObserver(k, {
|
|
@@ -5456,7 +5456,7 @@ function bi(e, t) {
|
|
|
5456
5456
|
}
|
|
5457
5457
|
return i(!0), s;
|
|
5458
5458
|
}
|
|
5459
|
-
function
|
|
5459
|
+
function xi(e, t, n, r) {
|
|
5460
5460
|
r === void 0 && (r = {});
|
|
5461
5461
|
const {
|
|
5462
5462
|
ancestorScroll: o = !0,
|
|
@@ -5464,13 +5464,13 @@ function yi(e, t, n, r) {
|
|
|
5464
5464
|
elementResize: i = typeof ResizeObserver == "function",
|
|
5465
5465
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
5466
5466
|
animationFrame: c = !1
|
|
5467
|
-
} = r, a =
|
|
5467
|
+
} = r, a = Ut(e), d = o || s ? [...a ? Fe(a) : [], ...t ? Fe(t) : []] : [];
|
|
5468
5468
|
d.forEach((y) => {
|
|
5469
5469
|
o && y.addEventListener("scroll", n, {
|
|
5470
5470
|
passive: !0
|
|
5471
5471
|
}), s && y.addEventListener("resize", n);
|
|
5472
5472
|
});
|
|
5473
|
-
const u = a && l ?
|
|
5473
|
+
const u = a && l ? yi(a, n) : null;
|
|
5474
5474
|
let m = -1, p = null;
|
|
5475
5475
|
i && (p = new ResizeObserver((y) => {
|
|
5476
5476
|
let [E] = y;
|
|
@@ -5483,7 +5483,7 @@ function yi(e, t, n, r) {
|
|
|
5483
5483
|
c && x();
|
|
5484
5484
|
function x() {
|
|
5485
5485
|
const y = xe(e);
|
|
5486
|
-
b && !
|
|
5486
|
+
b && !sr(b, y) && n(), b = y, h = requestAnimationFrame(x);
|
|
5487
5487
|
}
|
|
5488
5488
|
return n(), () => {
|
|
5489
5489
|
var y;
|
|
@@ -5492,21 +5492,21 @@ function yi(e, t, n, r) {
|
|
|
5492
5492
|
}), u?.(), (y = p) == null || y.disconnect(), p = null, c && cancelAnimationFrame(h);
|
|
5493
5493
|
};
|
|
5494
5494
|
}
|
|
5495
|
-
const
|
|
5495
|
+
const wi = qs, vi = Js, Ei = Ys, Ai = Qs, Ci = Ks, hn = js, Ri = Zs, Si = (e, t, n) => {
|
|
5496
5496
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
5497
|
-
platform:
|
|
5497
|
+
platform: bi,
|
|
5498
5498
|
...n
|
|
5499
5499
|
}, s = {
|
|
5500
5500
|
...o.platform,
|
|
5501
5501
|
_c: r
|
|
5502
5502
|
};
|
|
5503
|
-
return
|
|
5503
|
+
return Bs(e, t, {
|
|
5504
5504
|
...o,
|
|
5505
5505
|
platform: s
|
|
5506
5506
|
});
|
|
5507
5507
|
};
|
|
5508
|
-
var
|
|
5509
|
-
}, Je =
|
|
5508
|
+
var Ti = typeof document < "u", Oi = function() {
|
|
5509
|
+
}, Je = Ti ? kr : Oi;
|
|
5510
5510
|
function st(e, t) {
|
|
5511
5511
|
if (e === t)
|
|
5512
5512
|
return !0;
|
|
@@ -5537,11 +5537,11 @@ function st(e, t) {
|
|
|
5537
5537
|
}
|
|
5538
5538
|
return e !== e && t !== t;
|
|
5539
5539
|
}
|
|
5540
|
-
function
|
|
5540
|
+
function ir(e) {
|
|
5541
5541
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5542
5542
|
}
|
|
5543
|
-
function
|
|
5544
|
-
const n =
|
|
5543
|
+
function bn(e, t) {
|
|
5544
|
+
const n = ir(e);
|
|
5545
5545
|
return Math.round(t * n) / n;
|
|
5546
5546
|
}
|
|
5547
5547
|
function yt(e) {
|
|
@@ -5550,7 +5550,7 @@ function yt(e) {
|
|
|
5550
5550
|
t.current = e;
|
|
5551
5551
|
}), t;
|
|
5552
5552
|
}
|
|
5553
|
-
function
|
|
5553
|
+
function ki(e) {
|
|
5554
5554
|
e === void 0 && (e = {});
|
|
5555
5555
|
const {
|
|
5556
5556
|
placement: t = "bottom",
|
|
@@ -5585,7 +5585,7 @@ function Oi(e) {
|
|
|
5585
5585
|
strategy: n,
|
|
5586
5586
|
middleware: m
|
|
5587
5587
|
};
|
|
5588
|
-
B.current && (P.platform = B.current),
|
|
5588
|
+
B.current && (P.platform = B.current), Si(N.current, T.current, P).then((W) => {
|
|
5589
5589
|
const R = {
|
|
5590
5590
|
...W,
|
|
5591
5591
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -5594,7 +5594,7 @@ function Oi(e) {
|
|
|
5594
5594
|
// setting it to `true` when `open === false` (must be specified).
|
|
5595
5595
|
isPositioned: F.current !== !1
|
|
5596
5596
|
};
|
|
5597
|
-
z.current && !st(v.current, R) && (v.current = R,
|
|
5597
|
+
z.current && !st(v.current, R) && (v.current = R, vn.flushSync(() => {
|
|
5598
5598
|
u(R);
|
|
5599
5599
|
}));
|
|
5600
5600
|
});
|
|
@@ -5631,11 +5631,11 @@ function Oi(e) {
|
|
|
5631
5631
|
};
|
|
5632
5632
|
if (!I.floating)
|
|
5633
5633
|
return P;
|
|
5634
|
-
const W =
|
|
5634
|
+
const W = bn(I.floating, d.x), R = bn(I.floating, d.y);
|
|
5635
5635
|
return l ? {
|
|
5636
5636
|
...P,
|
|
5637
5637
|
transform: "translate(" + W + "px, " + R + "px)",
|
|
5638
|
-
...
|
|
5638
|
+
...ir(I.floating) >= 1.5 && {
|
|
5639
5639
|
willChange: "transform"
|
|
5640
5640
|
}
|
|
5641
5641
|
} : {
|
|
@@ -5652,7 +5652,7 @@ function Oi(e) {
|
|
|
5652
5652
|
floatingStyles: L
|
|
5653
5653
|
}), [d, D, U, I, L]);
|
|
5654
5654
|
}
|
|
5655
|
-
const
|
|
5655
|
+
const Ni = (e) => {
|
|
5656
5656
|
function t(n) {
|
|
5657
5657
|
return {}.hasOwnProperty.call(n, "current");
|
|
5658
5658
|
}
|
|
@@ -5664,22 +5664,15 @@ const ki = (e) => {
|
|
|
5664
5664
|
element: r,
|
|
5665
5665
|
padding: o
|
|
5666
5666
|
} = typeof e == "function" ? e(n) : e;
|
|
5667
|
-
return r && t(r) ? r.current != null ?
|
|
5667
|
+
return r && t(r) ? r.current != null ? hn({
|
|
5668
5668
|
element: r.current,
|
|
5669
5669
|
padding: o
|
|
5670
|
-
}).fn(n) : {} : r ?
|
|
5670
|
+
}).fn(n) : {} : r ? hn({
|
|
5671
5671
|
element: r,
|
|
5672
5672
|
padding: o
|
|
5673
5673
|
}).fn(n) : {};
|
|
5674
5674
|
}
|
|
5675
5675
|
};
|
|
5676
|
-
}, Ni = (e, t) => {
|
|
5677
|
-
const n = xi(e);
|
|
5678
|
-
return {
|
|
5679
|
-
name: n.name,
|
|
5680
|
-
fn: n.fn,
|
|
5681
|
-
options: [e, t]
|
|
5682
|
-
};
|
|
5683
5676
|
}, _i = (e, t) => {
|
|
5684
5677
|
const n = wi(e);
|
|
5685
5678
|
return {
|
|
@@ -5687,17 +5680,17 @@ const ki = (e) => {
|
|
|
5687
5680
|
fn: n.fn,
|
|
5688
5681
|
options: [e, t]
|
|
5689
5682
|
};
|
|
5690
|
-
}, Pi = (e, t) =>
|
|
5691
|
-
fn: Ci(e).fn,
|
|
5692
|
-
options: [e, t]
|
|
5693
|
-
}), $i = (e, t) => {
|
|
5683
|
+
}, Pi = (e, t) => {
|
|
5694
5684
|
const n = vi(e);
|
|
5695
5685
|
return {
|
|
5696
5686
|
name: n.name,
|
|
5697
5687
|
fn: n.fn,
|
|
5698
5688
|
options: [e, t]
|
|
5699
5689
|
};
|
|
5700
|
-
},
|
|
5690
|
+
}, $i = (e, t) => ({
|
|
5691
|
+
fn: Ri(e).fn,
|
|
5692
|
+
options: [e, t]
|
|
5693
|
+
}), Ii = (e, t) => {
|
|
5701
5694
|
const n = Ei(e);
|
|
5702
5695
|
return {
|
|
5703
5696
|
name: n.name,
|
|
@@ -5712,14 +5705,21 @@ const ki = (e) => {
|
|
|
5712
5705
|
options: [e, t]
|
|
5713
5706
|
};
|
|
5714
5707
|
}, Mi = (e, t) => {
|
|
5715
|
-
const n =
|
|
5708
|
+
const n = Ci(e);
|
|
5709
|
+
return {
|
|
5710
|
+
name: n.name,
|
|
5711
|
+
fn: n.fn,
|
|
5712
|
+
options: [e, t]
|
|
5713
|
+
};
|
|
5714
|
+
}, zi = (e, t) => {
|
|
5715
|
+
const n = Ni(e);
|
|
5716
5716
|
return {
|
|
5717
5717
|
name: n.name,
|
|
5718
5718
|
fn: n.fn,
|
|
5719
5719
|
options: [e, t]
|
|
5720
5720
|
};
|
|
5721
5721
|
};
|
|
5722
|
-
var
|
|
5722
|
+
var Di = "Arrow", ar = f.forwardRef((e, t) => {
|
|
5723
5723
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
5724
5724
|
return /* @__PURE__ */ w(
|
|
5725
5725
|
Ee.svg,
|
|
@@ -5734,9 +5734,9 @@ var zi = "Arrow", ir = f.forwardRef((e, t) => {
|
|
|
5734
5734
|
}
|
|
5735
5735
|
);
|
|
5736
5736
|
});
|
|
5737
|
-
|
|
5738
|
-
var
|
|
5739
|
-
function
|
|
5737
|
+
ar.displayName = Di;
|
|
5738
|
+
var Fi = ar;
|
|
5739
|
+
function Ui(e) {
|
|
5740
5740
|
const [t, n] = f.useState(void 0);
|
|
5741
5741
|
return ye(() => {
|
|
5742
5742
|
if (e) {
|
|
@@ -5758,22 +5758,22 @@ function Fi(e) {
|
|
|
5758
5758
|
n(void 0);
|
|
5759
5759
|
}, [e]), t;
|
|
5760
5760
|
}
|
|
5761
|
-
var
|
|
5761
|
+
var Wt = "Popper", [lr, cr] = jn(Wt), [Wi, dr] = lr(Wt), ur = (e) => {
|
|
5762
5762
|
const { __scopePopper: t, children: n } = e, [r, o] = f.useState(null);
|
|
5763
|
-
return /* @__PURE__ */ w(
|
|
5763
|
+
return /* @__PURE__ */ w(Wi, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
5764
5764
|
};
|
|
5765
|
-
|
|
5766
|
-
var
|
|
5765
|
+
ur.displayName = Wt;
|
|
5766
|
+
var fr = "PopperAnchor", mr = f.forwardRef(
|
|
5767
5767
|
(e, t) => {
|
|
5768
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, s =
|
|
5768
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, s = dr(fr, n), i = f.useRef(null), l = we(t, i), c = f.useRef(null);
|
|
5769
5769
|
return f.useEffect(() => {
|
|
5770
5770
|
const a = c.current;
|
|
5771
5771
|
c.current = r?.current || i.current, a !== c.current && s.onAnchorChange(c.current);
|
|
5772
5772
|
}), r ? null : /* @__PURE__ */ w(Ee.div, { ...o, ref: l });
|
|
5773
5773
|
}
|
|
5774
5774
|
);
|
|
5775
|
-
|
|
5776
|
-
var
|
|
5775
|
+
mr.displayName = fr;
|
|
5776
|
+
var Gt = "PopperContent", [Gi, Vi] = lr(Gt), pr = f.forwardRef(
|
|
5777
5777
|
(e, t) => {
|
|
5778
5778
|
const {
|
|
5779
5779
|
__scopePopper: n,
|
|
@@ -5790,42 +5790,42 @@ var Wt = "PopperContent", [Wi, Gi] = ar(Wt), mr = f.forwardRef(
|
|
|
5790
5790
|
updatePositionStrategy: p = "optimized",
|
|
5791
5791
|
onPlaced: h,
|
|
5792
5792
|
...b
|
|
5793
|
-
} = e, x =
|
|
5793
|
+
} = e, x = dr(Gt, n), [y, E] = f.useState(null), O = we(t, (ee) => E(ee)), [S, k] = f.useState(null), N = Ui(S), T = N?.width ?? 0, v = N?.height ?? 0, $ = r + (s !== "center" ? "-" + s : ""), M = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, B = Array.isArray(a) ? a : [a], F = B.length > 0, D = {
|
|
5794
5794
|
padding: M,
|
|
5795
|
-
boundary: B.filter(
|
|
5795
|
+
boundary: B.filter(Bi),
|
|
5796
5796
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
5797
5797
|
altBoundary: F
|
|
5798
|
-
}, { refs: z, floatingStyles: U, placement: I, isPositioned: L, middlewareData: P } =
|
|
5798
|
+
}, { refs: z, floatingStyles: U, placement: I, isPositioned: L, middlewareData: P } = ki({
|
|
5799
5799
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
5800
5800
|
strategy: "fixed",
|
|
5801
5801
|
placement: $,
|
|
5802
|
-
whileElementsMounted: (...ee) =>
|
|
5802
|
+
whileElementsMounted: (...ee) => xi(...ee, {
|
|
5803
5803
|
animationFrame: p === "always"
|
|
5804
5804
|
}),
|
|
5805
5805
|
elements: {
|
|
5806
5806
|
reference: x.anchor
|
|
5807
5807
|
},
|
|
5808
5808
|
middleware: [
|
|
5809
|
-
|
|
5810
|
-
c &&
|
|
5809
|
+
_i({ mainAxis: o + v, alignmentAxis: i }),
|
|
5810
|
+
c && Pi({
|
|
5811
5811
|
mainAxis: !0,
|
|
5812
5812
|
crossAxis: !1,
|
|
5813
|
-
limiter: u === "partial" ?
|
|
5813
|
+
limiter: u === "partial" ? $i() : void 0,
|
|
5814
5814
|
...D
|
|
5815
5815
|
}),
|
|
5816
|
-
c &&
|
|
5817
|
-
|
|
5816
|
+
c && Ii({ ...D }),
|
|
5817
|
+
Li({
|
|
5818
5818
|
...D,
|
|
5819
5819
|
apply: ({ elements: ee, rects: Le, availableWidth: G, availableHeight: Be }) => {
|
|
5820
5820
|
const { width: Ae, height: Ce } = Le.reference, de = ee.floating.style;
|
|
5821
5821
|
de.setProperty("--radix-popper-available-width", `${G}px`), de.setProperty("--radix-popper-available-height", `${Be}px`), de.setProperty("--radix-popper-anchor-width", `${Ae}px`), de.setProperty("--radix-popper-anchor-height", `${Ce}px`);
|
|
5822
5822
|
}
|
|
5823
5823
|
}),
|
|
5824
|
-
S &&
|
|
5825
|
-
|
|
5826
|
-
m &&
|
|
5824
|
+
S && zi({ element: S, padding: l }),
|
|
5825
|
+
ji({ arrowWidth: T, arrowHeight: v }),
|
|
5826
|
+
m && Mi({ strategy: "referenceHidden", ...D })
|
|
5827
5827
|
]
|
|
5828
|
-
}), [W, R] =
|
|
5828
|
+
}), [W, R] = br(I), $e = it(h);
|
|
5829
5829
|
ye(() => {
|
|
5830
5830
|
L && $e?.();
|
|
5831
5831
|
}, [L, $e]);
|
|
@@ -5857,7 +5857,7 @@ var Wt = "PopperContent", [Wi, Gi] = ar(Wt), mr = f.forwardRef(
|
|
|
5857
5857
|
},
|
|
5858
5858
|
dir: e.dir,
|
|
5859
5859
|
children: /* @__PURE__ */ w(
|
|
5860
|
-
|
|
5860
|
+
Gi,
|
|
5861
5861
|
{
|
|
5862
5862
|
scope: n,
|
|
5863
5863
|
placedSide: W,
|
|
@@ -5886,14 +5886,14 @@ var Wt = "PopperContent", [Wi, Gi] = ar(Wt), mr = f.forwardRef(
|
|
|
5886
5886
|
);
|
|
5887
5887
|
}
|
|
5888
5888
|
);
|
|
5889
|
-
|
|
5890
|
-
var
|
|
5889
|
+
pr.displayName = Gt;
|
|
5890
|
+
var gr = "PopperArrow", Hi = {
|
|
5891
5891
|
top: "bottom",
|
|
5892
5892
|
right: "left",
|
|
5893
5893
|
bottom: "top",
|
|
5894
5894
|
left: "right"
|
|
5895
|
-
},
|
|
5896
|
-
const { __scopePopper: r, ...o } = t, s =
|
|
5895
|
+
}, hr = f.forwardRef(function(t, n) {
|
|
5896
|
+
const { __scopePopper: r, ...o } = t, s = Vi(gr, r), i = Hi[s.placedSide];
|
|
5897
5897
|
return (
|
|
5898
5898
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
5899
5899
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -5922,7 +5922,7 @@ var pr = "PopperArrow", Vi = {
|
|
|
5922
5922
|
visibility: s.shouldHideArrow ? "hidden" : void 0
|
|
5923
5923
|
},
|
|
5924
5924
|
children: /* @__PURE__ */ w(
|
|
5925
|
-
|
|
5925
|
+
Fi,
|
|
5926
5926
|
{
|
|
5927
5927
|
...o,
|
|
5928
5928
|
ref: n,
|
|
@@ -5937,34 +5937,34 @@ var pr = "PopperArrow", Vi = {
|
|
|
5937
5937
|
)
|
|
5938
5938
|
);
|
|
5939
5939
|
});
|
|
5940
|
-
|
|
5941
|
-
function
|
|
5940
|
+
hr.displayName = gr;
|
|
5941
|
+
function Bi(e) {
|
|
5942
5942
|
return e !== null;
|
|
5943
5943
|
}
|
|
5944
|
-
var
|
|
5944
|
+
var ji = (e) => ({
|
|
5945
5945
|
name: "transformOrigin",
|
|
5946
5946
|
options: e,
|
|
5947
5947
|
fn(t) {
|
|
5948
|
-
const { placement: n, rects: r, middlewareData: o } = t, i = o.arrow?.centerOffset !== 0, l = i ? 0 : e.arrowWidth, c = i ? 0 : e.arrowHeight, [a, d] =
|
|
5948
|
+
const { placement: n, rects: r, middlewareData: o } = t, i = o.arrow?.centerOffset !== 0, l = i ? 0 : e.arrowWidth, c = i ? 0 : e.arrowHeight, [a, d] = br(n), u = { start: "0%", center: "50%", end: "100%" }[d], m = (o.arrow?.x ?? 0) + l / 2, p = (o.arrow?.y ?? 0) + c / 2;
|
|
5949
5949
|
let h = "", b = "";
|
|
5950
5950
|
return a === "bottom" ? (h = i ? u : `${m}px`, b = `${-c}px`) : a === "top" ? (h = i ? u : `${m}px`, b = `${r.floating.height + c}px`) : a === "right" ? (h = `${-c}px`, b = i ? u : `${p}px`) : a === "left" && (h = `${r.floating.width + c}px`, b = i ? u : `${p}px`), { data: { x: h, y: b } };
|
|
5951
5951
|
}
|
|
5952
5952
|
});
|
|
5953
|
-
function
|
|
5953
|
+
function br(e) {
|
|
5954
5954
|
const [t, n = "center"] = e.split("-");
|
|
5955
5955
|
return [t, n];
|
|
5956
5956
|
}
|
|
5957
|
-
var
|
|
5958
|
-
function
|
|
5957
|
+
var Yi = ur, Ki = mr, Xi = pr, qi = hr;
|
|
5958
|
+
function Ji(e, t) {
|
|
5959
5959
|
return f.useReducer((n, r) => t[n][r] ?? n, e);
|
|
5960
5960
|
}
|
|
5961
|
-
var
|
|
5962
|
-
const { present: t, children: n } = e, r =
|
|
5961
|
+
var yr = (e) => {
|
|
5962
|
+
const { present: t, children: n } = e, r = Zi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : f.Children.only(n), s = we(r.ref, Qi(o));
|
|
5963
5963
|
return typeof n == "function" || r.isPresent ? f.cloneElement(o, { ref: s }) : null;
|
|
5964
5964
|
};
|
|
5965
|
-
|
|
5966
|
-
function
|
|
5967
|
-
const [t, n] = f.useState(), r = f.useRef(null), o = f.useRef(e), s = f.useRef("none"), i = e ? "mounted" : "unmounted", [l, c] =
|
|
5965
|
+
yr.displayName = "Presence";
|
|
5966
|
+
function Zi(e) {
|
|
5967
|
+
const [t, n] = f.useState(), r = f.useRef(null), o = f.useRef(e), s = f.useRef("none"), i = e ? "mounted" : "unmounted", [l, c] = Ji(i, {
|
|
5968
5968
|
mounted: {
|
|
5969
5969
|
UNMOUNT: "unmounted",
|
|
5970
5970
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -6015,25 +6015,25 @@ function Ji(e) {
|
|
|
6015
6015
|
function qe(e) {
|
|
6016
6016
|
return e?.animationName || "none";
|
|
6017
6017
|
}
|
|
6018
|
-
function
|
|
6018
|
+
function Qi(e) {
|
|
6019
6019
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
6020
6020
|
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);
|
|
6021
6021
|
}
|
|
6022
|
-
var
|
|
6022
|
+
var ea = /* @__PURE__ */ Symbol("radix.slottable");
|
|
6023
6023
|
// @__NO_SIDE_EFFECTS__
|
|
6024
|
-
function
|
|
6025
|
-
const t = ({ children: n }) => /* @__PURE__ */ w(
|
|
6026
|
-
return t.displayName = `${e}.Slottable`, t.__radixId =
|
|
6024
|
+
function ta(e) {
|
|
6025
|
+
const t = ({ children: n }) => /* @__PURE__ */ w(Or, { children: n });
|
|
6026
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = ea, t;
|
|
6027
6027
|
}
|
|
6028
|
-
var
|
|
6029
|
-
function
|
|
6028
|
+
var na = f[" useInsertionEffect ".trim().toString()] || ye;
|
|
6029
|
+
function ra({
|
|
6030
6030
|
prop: e,
|
|
6031
6031
|
defaultProp: t,
|
|
6032
6032
|
onChange: n = () => {
|
|
6033
6033
|
},
|
|
6034
6034
|
caller: r
|
|
6035
6035
|
}) {
|
|
6036
|
-
const [o, s, i] =
|
|
6036
|
+
const [o, s, i] = oa({
|
|
6037
6037
|
defaultProp: t,
|
|
6038
6038
|
onChange: n
|
|
6039
6039
|
}), l = e !== void 0, c = l ? e : o;
|
|
@@ -6049,7 +6049,7 @@ function na({
|
|
|
6049
6049
|
const a = f.useCallback(
|
|
6050
6050
|
(d) => {
|
|
6051
6051
|
if (l) {
|
|
6052
|
-
const u =
|
|
6052
|
+
const u = sa(d) ? d(e) : d;
|
|
6053
6053
|
u !== e && i.current?.(u);
|
|
6054
6054
|
} else
|
|
6055
6055
|
s(d);
|
|
@@ -6058,21 +6058,21 @@ function na({
|
|
|
6058
6058
|
);
|
|
6059
6059
|
return [c, a];
|
|
6060
6060
|
}
|
|
6061
|
-
function
|
|
6061
|
+
function oa({
|
|
6062
6062
|
defaultProp: e,
|
|
6063
6063
|
onChange: t
|
|
6064
6064
|
}) {
|
|
6065
6065
|
const [n, r] = f.useState(e), o = f.useRef(n), s = f.useRef(t);
|
|
6066
|
-
return
|
|
6066
|
+
return na(() => {
|
|
6067
6067
|
s.current = t;
|
|
6068
6068
|
}, [t]), f.useEffect(() => {
|
|
6069
6069
|
o.current !== n && (s.current?.(n), o.current = n);
|
|
6070
6070
|
}, [n, o]), [n, r, s];
|
|
6071
6071
|
}
|
|
6072
|
-
function
|
|
6072
|
+
function sa(e) {
|
|
6073
6073
|
return typeof e == "function";
|
|
6074
6074
|
}
|
|
6075
|
-
var
|
|
6075
|
+
var ia = Object.freeze({
|
|
6076
6076
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
6077
6077
|
position: "absolute",
|
|
6078
6078
|
border: 0,
|
|
@@ -6084,23 +6084,23 @@ var sa = Object.freeze({
|
|
|
6084
6084
|
clip: "rect(0, 0, 0, 0)",
|
|
6085
6085
|
whiteSpace: "nowrap",
|
|
6086
6086
|
wordWrap: "normal"
|
|
6087
|
-
}),
|
|
6087
|
+
}), aa = "VisuallyHidden", xr = f.forwardRef(
|
|
6088
6088
|
(e, t) => /* @__PURE__ */ w(
|
|
6089
6089
|
Ee.span,
|
|
6090
6090
|
{
|
|
6091
6091
|
...e,
|
|
6092
6092
|
ref: t,
|
|
6093
|
-
style: { ...
|
|
6093
|
+
style: { ...ia, ...e.style }
|
|
6094
6094
|
}
|
|
6095
6095
|
)
|
|
6096
6096
|
);
|
|
6097
|
-
|
|
6098
|
-
var
|
|
6099
|
-
|
|
6100
|
-
]), ft =
|
|
6097
|
+
xr.displayName = aa;
|
|
6098
|
+
var la = xr, [ut] = jn("Tooltip", [
|
|
6099
|
+
cr
|
|
6100
|
+
]), ft = cr(), wr = "TooltipProvider", ca = 700, Rt = "tooltip.open", [da, Vt] = ut(wr), vr = (e) => {
|
|
6101
6101
|
const {
|
|
6102
6102
|
__scopeTooltip: t,
|
|
6103
|
-
delayDuration: n =
|
|
6103
|
+
delayDuration: n = ca,
|
|
6104
6104
|
skipDelayDuration: r = 300,
|
|
6105
6105
|
disableHoverableContent: o = !1,
|
|
6106
6106
|
children: s
|
|
@@ -6109,7 +6109,7 @@ var aa = yr, [ut] = Bn("Tooltip", [
|
|
|
6109
6109
|
const a = c.current;
|
|
6110
6110
|
return () => window.clearTimeout(a);
|
|
6111
6111
|
}, []), /* @__PURE__ */ w(
|
|
6112
|
-
|
|
6112
|
+
da,
|
|
6113
6113
|
{
|
|
6114
6114
|
scope: t,
|
|
6115
6115
|
isOpenDelayedRef: i,
|
|
@@ -6132,8 +6132,8 @@ var aa = yr, [ut] = Bn("Tooltip", [
|
|
|
6132
6132
|
}
|
|
6133
6133
|
);
|
|
6134
6134
|
};
|
|
6135
|
-
|
|
6136
|
-
var Ue = "Tooltip", [
|
|
6135
|
+
vr.displayName = wr;
|
|
6136
|
+
var Ue = "Tooltip", [ua, mt] = ut(Ue), Er = (e) => {
|
|
6137
6137
|
const {
|
|
6138
6138
|
__scopeTooltip: t,
|
|
6139
6139
|
children: n,
|
|
@@ -6142,7 +6142,7 @@ var Ue = "Tooltip", [da, mt] = ut(Ue), vr = (e) => {
|
|
|
6142
6142
|
onOpenChange: s,
|
|
6143
6143
|
disableHoverableContent: i,
|
|
6144
6144
|
delayDuration: l
|
|
6145
|
-
} = e, c =
|
|
6145
|
+
} = e, c = Vt(Ue, e.__scopeTooltip), a = ft(t), [d, u] = f.useState(null), m = $s(), p = f.useRef(0), h = i ?? c.disableHoverableContent, b = l ?? c.delayDuration, x = f.useRef(!1), [y, E] = ra({
|
|
6146
6146
|
prop: r,
|
|
6147
6147
|
defaultProp: o ?? !1,
|
|
6148
6148
|
onChange: (T) => {
|
|
@@ -6160,8 +6160,8 @@ var Ue = "Tooltip", [da, mt] = ut(Ue), vr = (e) => {
|
|
|
6160
6160
|
}, [b, E]);
|
|
6161
6161
|
return f.useEffect(() => () => {
|
|
6162
6162
|
p.current && (window.clearTimeout(p.current), p.current = 0);
|
|
6163
|
-
}, []), /* @__PURE__ */ w(
|
|
6164
|
-
|
|
6163
|
+
}, []), /* @__PURE__ */ w(Yi, { ...a, children: /* @__PURE__ */ w(
|
|
6164
|
+
ua,
|
|
6165
6165
|
{
|
|
6166
6166
|
scope: t,
|
|
6167
6167
|
contentId: m,
|
|
@@ -6182,11 +6182,11 @@ var Ue = "Tooltip", [da, mt] = ut(Ue), vr = (e) => {
|
|
|
6182
6182
|
}
|
|
6183
6183
|
) });
|
|
6184
6184
|
};
|
|
6185
|
-
|
|
6186
|
-
var St = "TooltipTrigger",
|
|
6185
|
+
Er.displayName = Ue;
|
|
6186
|
+
var St = "TooltipTrigger", Ar = f.forwardRef(
|
|
6187
6187
|
(e, t) => {
|
|
6188
|
-
const { __scopeTooltip: n, ...r } = e, o = mt(St, n), s =
|
|
6189
|
-
return f.useEffect(() => () => document.removeEventListener("pointerup", u), [u]), /* @__PURE__ */ w(
|
|
6188
|
+
const { __scopeTooltip: n, ...r } = e, o = mt(St, n), s = Vt(St, n), i = ft(n), l = f.useRef(null), c = we(t, l, o.onTriggerChange), a = f.useRef(!1), d = f.useRef(!1), u = f.useCallback(() => a.current = !1, []);
|
|
6189
|
+
return f.useEffect(() => () => document.removeEventListener("pointerup", u), [u]), /* @__PURE__ */ w(Ki, { asChild: !0, ...i, children: /* @__PURE__ */ w(
|
|
6190
6190
|
Ee.button,
|
|
6191
6191
|
{
|
|
6192
6192
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
@@ -6211,20 +6211,20 @@ var St = "TooltipTrigger", Er = f.forwardRef(
|
|
|
6211
6211
|
) });
|
|
6212
6212
|
}
|
|
6213
6213
|
);
|
|
6214
|
-
|
|
6215
|
-
var
|
|
6214
|
+
Ar.displayName = St;
|
|
6215
|
+
var fa = "TooltipPortal", [Ka, ma] = ut(fa, {
|
|
6216
6216
|
forceMount: void 0
|
|
6217
|
-
}), Ne = "TooltipContent",
|
|
6217
|
+
}), Ne = "TooltipContent", Cr = f.forwardRef(
|
|
6218
6218
|
(e, t) => {
|
|
6219
|
-
const n =
|
|
6220
|
-
return /* @__PURE__ */ w(
|
|
6219
|
+
const n = ma(Ne, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, i = mt(Ne, e.__scopeTooltip);
|
|
6220
|
+
return /* @__PURE__ */ w(yr, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ w(Rr, { side: o, ...s, ref: t }) : /* @__PURE__ */ w(pa, { side: o, ...s, ref: t }) });
|
|
6221
6221
|
}
|
|
6222
|
-
),
|
|
6223
|
-
const n = mt(Ne, e.__scopeTooltip), r =
|
|
6222
|
+
), pa = f.forwardRef((e, t) => {
|
|
6223
|
+
const n = mt(Ne, e.__scopeTooltip), r = Vt(Ne, e.__scopeTooltip), o = f.useRef(null), s = we(t, o), [i, l] = f.useState(null), { trigger: c, onClose: a } = n, d = o.current, { onPointerInTransitChange: u } = r, m = f.useCallback(() => {
|
|
6224
6224
|
l(null), u(!1);
|
|
6225
6225
|
}, [u]), p = f.useCallback(
|
|
6226
6226
|
(h, b) => {
|
|
6227
|
-
const x = h.currentTarget, y = { x: h.clientX, y: h.clientY }, E =
|
|
6227
|
+
const x = h.currentTarget, y = { x: h.clientX, y: h.clientY }, E = xa(y, x.getBoundingClientRect()), O = wa(y, E), S = va(b.getBoundingClientRect()), k = Aa([...O, ...S]);
|
|
6228
6228
|
l(k), u(!0);
|
|
6229
6229
|
},
|
|
6230
6230
|
[u]
|
|
@@ -6239,13 +6239,13 @@ var ua = "TooltipPortal", [Ka, fa] = ut(ua, {
|
|
|
6239
6239
|
}, [c, d, p, m]), f.useEffect(() => {
|
|
6240
6240
|
if (i) {
|
|
6241
6241
|
const h = (b) => {
|
|
6242
|
-
const x = b.target, y = { x: b.clientX, y: b.clientY }, E = c?.contains(x) || d?.contains(x), O = !
|
|
6242
|
+
const x = b.target, y = { x: b.clientX, y: b.clientY }, E = c?.contains(x) || d?.contains(x), O = !Ea(y, i);
|
|
6243
6243
|
E ? m() : O && (m(), a());
|
|
6244
6244
|
};
|
|
6245
6245
|
return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
|
|
6246
6246
|
}
|
|
6247
|
-
}, [c, d, i, a, m]), /* @__PURE__ */ w(
|
|
6248
|
-
}), [
|
|
6247
|
+
}, [c, d, i, a, m]), /* @__PURE__ */ w(Rr, { ...e, ref: s });
|
|
6248
|
+
}), [ga, ha] = ut(Ue, { isInside: !1 }), ba = /* @__PURE__ */ ta("TooltipContent"), Rr = f.forwardRef(
|
|
6249
6249
|
(e, t) => {
|
|
6250
6250
|
const {
|
|
6251
6251
|
__scopeTooltip: n,
|
|
@@ -6263,7 +6263,7 @@ var ua = "TooltipPortal", [Ka, fa] = ut(ua, {
|
|
|
6263
6263
|
return window.addEventListener("scroll", u, { capture: !0 }), () => window.removeEventListener("scroll", u, { capture: !0 });
|
|
6264
6264
|
}
|
|
6265
6265
|
}, [c.trigger, d]), /* @__PURE__ */ w(
|
|
6266
|
-
|
|
6266
|
+
Kn,
|
|
6267
6267
|
{
|
|
6268
6268
|
asChild: !0,
|
|
6269
6269
|
disableOutsidePointerEvents: !1,
|
|
@@ -6272,7 +6272,7 @@ var ua = "TooltipPortal", [Ka, fa] = ut(ua, {
|
|
|
6272
6272
|
onFocusOutside: (u) => u.preventDefault(),
|
|
6273
6273
|
onDismiss: d,
|
|
6274
6274
|
children: /* @__PURE__ */ H(
|
|
6275
|
-
|
|
6275
|
+
Xi,
|
|
6276
6276
|
{
|
|
6277
6277
|
"data-state": c.stateAttribute,
|
|
6278
6278
|
...a,
|
|
@@ -6287,8 +6287,8 @@ var ua = "TooltipPortal", [Ka, fa] = ut(ua, {
|
|
|
6287
6287
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
6288
6288
|
},
|
|
6289
6289
|
children: [
|
|
6290
|
-
/* @__PURE__ */ w(
|
|
6291
|
-
/* @__PURE__ */ w(
|
|
6290
|
+
/* @__PURE__ */ w(ba, { children: r }),
|
|
6291
|
+
/* @__PURE__ */ w(ga, { scope: n, isInside: !0, children: /* @__PURE__ */ w(la, { id: c.contentId, role: "tooltip", children: o || r }) })
|
|
6292
6292
|
]
|
|
6293
6293
|
}
|
|
6294
6294
|
)
|
|
@@ -6296,18 +6296,18 @@ var ua = "TooltipPortal", [Ka, fa] = ut(ua, {
|
|
|
6296
6296
|
);
|
|
6297
6297
|
}
|
|
6298
6298
|
);
|
|
6299
|
-
|
|
6300
|
-
var
|
|
6299
|
+
Cr.displayName = Ne;
|
|
6300
|
+
var Sr = "TooltipArrow", ya = f.forwardRef(
|
|
6301
6301
|
(e, t) => {
|
|
6302
6302
|
const { __scopeTooltip: n, ...r } = e, o = ft(n);
|
|
6303
|
-
return
|
|
6304
|
-
|
|
6303
|
+
return ha(
|
|
6304
|
+
Sr,
|
|
6305
6305
|
n
|
|
6306
|
-
).isInside ? null : /* @__PURE__ */ w(
|
|
6306
|
+
).isInside ? null : /* @__PURE__ */ w(qi, { ...o, ...r, ref: t });
|
|
6307
6307
|
}
|
|
6308
6308
|
);
|
|
6309
|
-
|
|
6310
|
-
function
|
|
6309
|
+
ya.displayName = Sr;
|
|
6310
|
+
function xa(e, t) {
|
|
6311
6311
|
const n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), s = Math.abs(t.left - e.x);
|
|
6312
6312
|
switch (Math.min(n, r, o, s)) {
|
|
6313
6313
|
case s:
|
|
@@ -6322,7 +6322,7 @@ function ya(e, t) {
|
|
|
6322
6322
|
throw new Error("unreachable");
|
|
6323
6323
|
}
|
|
6324
6324
|
}
|
|
6325
|
-
function
|
|
6325
|
+
function wa(e, t, n = 5) {
|
|
6326
6326
|
const r = [];
|
|
6327
6327
|
switch (t) {
|
|
6328
6328
|
case "top":
|
|
@@ -6352,7 +6352,7 @@ function xa(e, t, n = 5) {
|
|
|
6352
6352
|
}
|
|
6353
6353
|
return r;
|
|
6354
6354
|
}
|
|
6355
|
-
function
|
|
6355
|
+
function va(e) {
|
|
6356
6356
|
const { top: t, right: n, bottom: r, left: o } = e;
|
|
6357
6357
|
return [
|
|
6358
6358
|
{ x: o, y: t },
|
|
@@ -6361,7 +6361,7 @@ function wa(e) {
|
|
|
6361
6361
|
{ x: o, y: r }
|
|
6362
6362
|
];
|
|
6363
6363
|
}
|
|
6364
|
-
function
|
|
6364
|
+
function Ea(e, t) {
|
|
6365
6365
|
const { x: n, y: r } = e;
|
|
6366
6366
|
let o = !1;
|
|
6367
6367
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
@@ -6370,11 +6370,11 @@ function va(e, t) {
|
|
|
6370
6370
|
}
|
|
6371
6371
|
return o;
|
|
6372
6372
|
}
|
|
6373
|
-
function
|
|
6373
|
+
function Aa(e) {
|
|
6374
6374
|
const t = e.slice();
|
|
6375
|
-
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0),
|
|
6375
|
+
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0), Ca(t);
|
|
6376
6376
|
}
|
|
6377
|
-
function
|
|
6377
|
+
function Ca(e) {
|
|
6378
6378
|
if (e.length <= 1) return e.slice();
|
|
6379
6379
|
const t = [];
|
|
6380
6380
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -6399,9 +6399,9 @@ function Aa(e) {
|
|
|
6399
6399
|
}
|
|
6400
6400
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
6401
6401
|
}
|
|
6402
|
-
var
|
|
6403
|
-
const Xa =
|
|
6404
|
-
|
|
6402
|
+
var Ra = vr, Sa = Er, Ta = Ar, Tr = Cr;
|
|
6403
|
+
const Xa = Ra, qa = Sa, Ja = Ta, Oa = f.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ w(
|
|
6404
|
+
Tr,
|
|
6405
6405
|
{
|
|
6406
6406
|
ref: r,
|
|
6407
6407
|
sideOffset: t,
|
|
@@ -6412,9 +6412,9 @@ const Xa = Ca, qa = Ra, Ja = Sa, Ta = f.forwardRef(({ className: e, sideOffset:
|
|
|
6412
6412
|
...n
|
|
6413
6413
|
}
|
|
6414
6414
|
));
|
|
6415
|
-
|
|
6415
|
+
Oa.displayName = Tr.displayName;
|
|
6416
6416
|
const Za = "agent-approval-count-changed";
|
|
6417
|
-
function
|
|
6417
|
+
function ka(e, t) {
|
|
6418
6418
|
if (e.length > 0) {
|
|
6419
6419
|
const n = e[e.length - 1];
|
|
6420
6420
|
if (n && typeof n == "object" && !Array.isArray(n))
|
|
@@ -6437,7 +6437,7 @@ function Qa(e, t = {}) {
|
|
|
6437
6437
|
const x = new AbortController();
|
|
6438
6438
|
m.current = x, u.current && (i(!0), c(null));
|
|
6439
6439
|
try {
|
|
6440
|
-
const y = await e(...
|
|
6440
|
+
const y = await e(...ka(b, x.signal));
|
|
6441
6441
|
return !u.current || x.signal.aborted ? null : (d(y), r?.(y), y);
|
|
6442
6442
|
} catch (y) {
|
|
6443
6443
|
if (!u.current || x.signal.aborted)
|
|
@@ -6461,53 +6461,53 @@ function el() {
|
|
|
6461
6461
|
return { toast: e, showToast: n, clearToast: r };
|
|
6462
6462
|
}
|
|
6463
6463
|
export {
|
|
6464
|
-
|
|
6464
|
+
jt as API_BASE,
|
|
6465
6465
|
Za as APPROVAL_EVENT,
|
|
6466
6466
|
ja as AdminAccessRequired,
|
|
6467
6467
|
J as ApiError,
|
|
6468
6468
|
Fa as AppShell,
|
|
6469
6469
|
za as AuthProvider,
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6470
|
+
as as Button,
|
|
6471
|
+
ls as Card,
|
|
6472
|
+
fs as CardContent,
|
|
6473
|
+
us as CardDescription,
|
|
6474
|
+
ms as CardFooter,
|
|
6475
|
+
cs as CardHeader,
|
|
6476
|
+
ds as CardTitle,
|
|
6477
6477
|
Ha as DomainError,
|
|
6478
6478
|
Ya as EmptyState,
|
|
6479
6479
|
Va as LoadingPanel,
|
|
6480
6480
|
Ua as ProtectedRoute,
|
|
6481
|
-
|
|
6481
|
+
Nt as ROUTES,
|
|
6482
6482
|
Da as SystemProvider,
|
|
6483
6483
|
Ga as Toast,
|
|
6484
6484
|
qa as Tooltip,
|
|
6485
|
-
|
|
6485
|
+
Oa as TooltipContent,
|
|
6486
6486
|
Xa as TooltipProvider,
|
|
6487
6487
|
Ja as TooltipTrigger,
|
|
6488
6488
|
Wa as VersionMismatchBanner,
|
|
6489
6489
|
La as adminRequest,
|
|
6490
|
-
|
|
6490
|
+
Ir as authRequest,
|
|
6491
6491
|
Ma as authRequestExternal,
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6492
|
+
Jr as bootIdentity,
|
|
6493
|
+
$r as buildApiUrl,
|
|
6494
|
+
is as buttonVariants,
|
|
6495
6495
|
Me as clearStoredToken,
|
|
6496
6496
|
ge as cn,
|
|
6497
6497
|
Oe as getStoredToken,
|
|
6498
|
-
|
|
6499
|
-
|
|
6498
|
+
Xr as loginUser,
|
|
6499
|
+
qr as registerUser,
|
|
6500
6500
|
We as request,
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6501
|
+
Rn as requestAbsolute,
|
|
6502
|
+
$a as safeArray,
|
|
6503
|
+
Bt as safeMap,
|
|
6504
|
+
Yt as setStoredToken,
|
|
6505
|
+
Ia as taggedRequest,
|
|
6506
|
+
kt as unwrapEnvelope,
|
|
6507
6507
|
Ba as useAdminApiGuard,
|
|
6508
6508
|
Qa as useApiCall,
|
|
6509
|
-
|
|
6510
|
-
|
|
6509
|
+
_t as useAuth,
|
|
6510
|
+
Zr as useSystem,
|
|
6511
6511
|
el as useToast
|
|
6512
6512
|
};
|
|
6513
6513
|
//# sourceMappingURL=index.js.map
|