@estevia/evafusion-agent 1.6.9 → 1.7.0
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.js +13 -13
- package/dist/index.mjs +280 -277
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import u, { forwardRef as er, isValidElement as wt, useContext as Gt, useState a
|
|
|
2
2
|
import { motion as Ge, AnimatePresence as Dt } from "framer-motion";
|
|
3
3
|
import tr from "react-dom";
|
|
4
4
|
import { EvaFusionClient as rr } from "@estevia/evafusion-sdk";
|
|
5
|
-
import { Layout as ar, Users as nr, Check as or, Copy as ir, Trash2 as sr, Settings2 as Ar, Minimize2 as lr, X as
|
|
5
|
+
import { Layout as ar, Users as nr, Check as or, Copy as ir, Trash2 as sr, Settings2 as Ar, Minimize2 as lr, X as Et, AlertCircle as cr, Cpu as yt, Database as dr, Shield as ur, SendHorizontal as fr, Sparkles as pr } from "lucide-react";
|
|
6
6
|
var Pt = { exports: {} }, $e = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
@@ -13,17 +13,17 @@ var Pt = { exports: {} }, $e = {};
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
var
|
|
16
|
+
var jt;
|
|
17
17
|
function gr() {
|
|
18
|
-
if (
|
|
19
|
-
|
|
18
|
+
if (jt) return $e;
|
|
19
|
+
jt = 1;
|
|
20
20
|
var e = u, a = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
-
function d(
|
|
22
|
-
var v, b = {},
|
|
23
|
-
p !== void 0 && (
|
|
21
|
+
function d(A, f, p) {
|
|
22
|
+
var v, b = {}, T = null, o = null;
|
|
23
|
+
p !== void 0 && (T = "" + p), f.key !== void 0 && (T = "" + f.key), f.ref !== void 0 && (o = f.ref);
|
|
24
24
|
for (v in f) i.call(f, v) && !c.hasOwnProperty(v) && (b[v] = f[v]);
|
|
25
|
-
if (
|
|
26
|
-
return { $$typeof: a, type:
|
|
25
|
+
if (A && A.defaultProps) for (v in f = A.defaultProps, f) b[v] === void 0 && (b[v] = f[v]);
|
|
26
|
+
return { $$typeof: a, type: A, key: T, ref: o, props: b, _owner: s.current };
|
|
27
27
|
}
|
|
28
28
|
return $e.Fragment = n, $e.jsx = d, $e.jsxs = d, $e;
|
|
29
29
|
}
|
|
@@ -40,45 +40,45 @@ var et = {};
|
|
|
40
40
|
var zt;
|
|
41
41
|
function mr() {
|
|
42
42
|
return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var e = u, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), d = Symbol.for("react.provider"),
|
|
44
|
-
function
|
|
43
|
+
var e = u, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), A = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), o = Symbol.for("react.offscreen"), Q = Symbol.iterator, w = "@@iterator";
|
|
44
|
+
function M(t) {
|
|
45
45
|
if (t === null || typeof t != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var
|
|
48
|
-
return typeof
|
|
47
|
+
var l = Q && t[Q] || t[w];
|
|
48
|
+
return typeof l == "function" ? l : null;
|
|
49
49
|
}
|
|
50
50
|
var X = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
51
|
function D(t) {
|
|
52
52
|
{
|
|
53
|
-
for (var
|
|
53
|
+
for (var l = arguments.length, m = new Array(l > 1 ? l - 1 : 0), x = 1; x < l; x++)
|
|
54
54
|
m[x - 1] = arguments[x];
|
|
55
55
|
ee("error", t, m);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function ee(t,
|
|
58
|
+
function ee(t, l, m) {
|
|
59
59
|
{
|
|
60
60
|
var x = X.ReactDebugCurrentFrame, I = x.getStackAddendum();
|
|
61
|
-
I !== "" && (
|
|
61
|
+
I !== "" && (l += "%s", m = m.concat([I]));
|
|
62
62
|
var F = m.map(function(z) {
|
|
63
63
|
return String(z);
|
|
64
64
|
});
|
|
65
|
-
F.unshift("Warning: " +
|
|
65
|
+
F.unshift("Warning: " + l), Function.prototype.apply.call(console[t], console, F);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
var R = !1, k = !1, P = !1, Y = !1, ne = !1, W;
|
|
69
69
|
W = Symbol.for("react.module.reference");
|
|
70
70
|
function oe(t) {
|
|
71
|
-
return !!(typeof t == "string" || typeof t == "function" || t === i || t === c || ne || t === s || t === p || t === v || Y || t === o || R || k || P || typeof t == "object" && t !== null && (t.$$typeof ===
|
|
71
|
+
return !!(typeof t == "string" || typeof t == "function" || t === i || t === c || ne || t === s || t === p || t === v || Y || t === o || R || k || P || typeof t == "object" && t !== null && (t.$$typeof === T || t.$$typeof === b || t.$$typeof === d || t.$$typeof === A || t.$$typeof === f || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
75
75
|
t.$$typeof === W || t.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function te(t,
|
|
77
|
+
function te(t, l, m) {
|
|
78
78
|
var x = t.displayName;
|
|
79
79
|
if (x)
|
|
80
80
|
return x;
|
|
81
|
-
var I =
|
|
81
|
+
var I = l.displayName || l.name || "";
|
|
82
82
|
return I !== "" ? m + "(" + I + ")" : m;
|
|
83
83
|
}
|
|
84
84
|
function h(t) {
|
|
@@ -107,9 +107,9 @@ function mr() {
|
|
|
107
107
|
}
|
|
108
108
|
if (typeof t == "object")
|
|
109
109
|
switch (t.$$typeof) {
|
|
110
|
-
case
|
|
111
|
-
var
|
|
112
|
-
return h(
|
|
110
|
+
case A:
|
|
111
|
+
var l = t;
|
|
112
|
+
return h(l) + ".Consumer";
|
|
113
113
|
case d:
|
|
114
114
|
var m = t;
|
|
115
115
|
return h(m._context) + ".Provider";
|
|
@@ -118,7 +118,7 @@ function mr() {
|
|
|
118
118
|
case b:
|
|
119
119
|
var x = t.displayName || null;
|
|
120
120
|
return x !== null ? x : re(t.type) || "Memo";
|
|
121
|
-
case
|
|
121
|
+
case T: {
|
|
122
122
|
var I = t, F = I._payload, z = I._init;
|
|
123
123
|
try {
|
|
124
124
|
return re(z(F));
|
|
@@ -129,14 +129,14 @@ function mr() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var H = Object.assign, g = 0, V, S, fe, C, J, Z,
|
|
132
|
+
var H = Object.assign, g = 0, V, S, fe, C, J, Z, E;
|
|
133
133
|
function O() {
|
|
134
134
|
}
|
|
135
135
|
O.__reactDisabledLog = !0;
|
|
136
136
|
function N() {
|
|
137
137
|
{
|
|
138
138
|
if (g === 0) {
|
|
139
|
-
V = console.log, S = console.info, fe = console.warn, C = console.error, J = console.group, Z = console.groupCollapsed,
|
|
139
|
+
V = console.log, S = console.info, fe = console.warn, C = console.error, J = console.group, Z = console.groupCollapsed, E = console.groupEnd;
|
|
140
140
|
var t = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
@@ -184,7 +184,7 @@ function mr() {
|
|
|
184
184
|
value: Z
|
|
185
185
|
}),
|
|
186
186
|
groupEnd: H({}, t, {
|
|
187
|
-
value:
|
|
187
|
+
value: E
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
@@ -192,7 +192,7 @@ function mr() {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
var _ = X.ReactCurrentDispatcher, L;
|
|
195
|
-
function
|
|
195
|
+
function Te(t, l, m) {
|
|
196
196
|
{
|
|
197
197
|
if (L === void 0)
|
|
198
198
|
try {
|
|
@@ -210,7 +210,7 @@ function mr() {
|
|
|
210
210
|
var Re = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
211
|
Ce = new Re();
|
|
212
212
|
}
|
|
213
|
-
function Se(t,
|
|
213
|
+
function Se(t, l) {
|
|
214
214
|
if (!t || xe)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
@@ -225,7 +225,7 @@ function mr() {
|
|
|
225
225
|
var F;
|
|
226
226
|
F = _.current, _.current = null, N();
|
|
227
227
|
try {
|
|
228
|
-
if (
|
|
228
|
+
if (l) {
|
|
229
229
|
var z = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
@@ -258,17 +258,17 @@ function mr() {
|
|
|
258
258
|
}
|
|
259
259
|
} catch (de) {
|
|
260
260
|
if (de && x && typeof de.stack == "string") {
|
|
261
|
-
for (var
|
|
261
|
+
for (var j = de.stack.split(`
|
|
262
262
|
`), se = x.stack.split(`
|
|
263
|
-
`), $ =
|
|
263
|
+
`), $ = j.length - 1, ae = se.length - 1; $ >= 1 && ae >= 0 && j[$] !== se[ae]; )
|
|
264
264
|
ae--;
|
|
265
265
|
for (; $ >= 1 && ae >= 0; $--, ae--)
|
|
266
|
-
if (
|
|
266
|
+
if (j[$] !== se[ae]) {
|
|
267
267
|
if ($ !== 1 || ae !== 1)
|
|
268
268
|
do
|
|
269
|
-
if ($--, ae--, ae < 0 ||
|
|
269
|
+
if ($--, ae--, ae < 0 || j[$] !== se[ae]) {
|
|
270
270
|
var ge = `
|
|
271
|
-
` +
|
|
271
|
+
` + j[$].replace(" at new ", " at ");
|
|
272
272
|
return t.displayName && ge.includes("<anonymous>") && (ge = ge.replace("<anonymous>", t.displayName)), typeof t == "function" && Ce.set(t, ge), ge;
|
|
273
273
|
}
|
|
274
274
|
while ($ >= 1 && ae >= 0);
|
|
@@ -278,69 +278,69 @@ function mr() {
|
|
|
278
278
|
} finally {
|
|
279
279
|
xe = !1, _.current = F, K(), Error.prepareStackTrace = I;
|
|
280
280
|
}
|
|
281
|
-
var Fe = t ? t.displayName || t.name : "", Le = Fe ?
|
|
281
|
+
var Fe = t ? t.displayName || t.name : "", Le = Fe ? Te(Fe) : "";
|
|
282
282
|
return typeof t == "function" && Ce.set(t, Le), Le;
|
|
283
283
|
}
|
|
284
|
-
function at(t,
|
|
284
|
+
function at(t, l, m) {
|
|
285
285
|
return Se(t, !1);
|
|
286
286
|
}
|
|
287
287
|
function ft(t) {
|
|
288
|
-
var
|
|
289
|
-
return !!(
|
|
288
|
+
var l = t.prototype;
|
|
289
|
+
return !!(l && l.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function Qe(t,
|
|
291
|
+
function Qe(t, l, m) {
|
|
292
292
|
if (t == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof t == "function")
|
|
295
295
|
return Se(t, ft(t));
|
|
296
296
|
if (typeof t == "string")
|
|
297
|
-
return
|
|
297
|
+
return Te(t);
|
|
298
298
|
switch (t) {
|
|
299
299
|
case p:
|
|
300
|
-
return
|
|
300
|
+
return Te("Suspense");
|
|
301
301
|
case v:
|
|
302
|
-
return
|
|
302
|
+
return Te("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof t == "object")
|
|
305
305
|
switch (t.$$typeof) {
|
|
306
306
|
case f:
|
|
307
307
|
return at(t.render);
|
|
308
308
|
case b:
|
|
309
|
-
return Qe(t.type,
|
|
310
|
-
case
|
|
309
|
+
return Qe(t.type, l, m);
|
|
310
|
+
case T: {
|
|
311
311
|
var x = t, I = x._payload, F = x._init;
|
|
312
312
|
try {
|
|
313
|
-
return Qe(F(I),
|
|
313
|
+
return Qe(F(I), l, m);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var
|
|
320
|
+
var Me = Object.prototype.hasOwnProperty, nt = {}, Ye = X.ReactDebugCurrentFrame;
|
|
321
321
|
function Ve(t) {
|
|
322
322
|
if (t) {
|
|
323
|
-
var
|
|
323
|
+
var l = t._owner, m = Qe(t.type, t._source, l ? l.type : null);
|
|
324
324
|
Ye.setExtraStackFrame(m);
|
|
325
325
|
} else
|
|
326
326
|
Ye.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function ot(t,
|
|
328
|
+
function ot(t, l, m, x, I) {
|
|
329
329
|
{
|
|
330
|
-
var F = Function.call.bind(
|
|
330
|
+
var F = Function.call.bind(Me);
|
|
331
331
|
for (var z in t)
|
|
332
332
|
if (F(t, z)) {
|
|
333
|
-
var
|
|
333
|
+
var j = void 0;
|
|
334
334
|
try {
|
|
335
335
|
if (typeof t[z] != "function") {
|
|
336
336
|
var se = Error((x || "React class") + ": " + m + " type `" + z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[z] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
337
|
throw se.name = "Invariant Violation", se;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
j = t[z](l, z, x, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
340
|
} catch ($) {
|
|
341
|
-
|
|
341
|
+
j = $;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
j && !(j instanceof Error) && (Ve(I), D("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", m, z, typeof j), Ve(null)), j instanceof Error && !(j.message in nt) && (nt[j.message] = !0, Ve(I), D("Failed %s type: %s", m, j.message), Ve(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -350,7 +350,7 @@ function mr() {
|
|
|
350
350
|
}
|
|
351
351
|
function Be(t) {
|
|
352
352
|
{
|
|
353
|
-
var
|
|
353
|
+
var l = typeof Symbol == "function" && Symbol.toStringTag, m = l && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
354
354
|
return m;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
@@ -375,28 +375,28 @@ function mr() {
|
|
|
375
375
|
__source: !0
|
|
376
376
|
}, st, ke;
|
|
377
377
|
function mt(t) {
|
|
378
|
-
if (
|
|
379
|
-
var
|
|
380
|
-
if (
|
|
378
|
+
if (Me.call(t, "ref")) {
|
|
379
|
+
var l = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
380
|
+
if (l && l.isReactWarning)
|
|
381
381
|
return !1;
|
|
382
382
|
}
|
|
383
383
|
return t.ref !== void 0;
|
|
384
384
|
}
|
|
385
385
|
function At(t) {
|
|
386
|
-
if (
|
|
387
|
-
var
|
|
388
|
-
if (
|
|
386
|
+
if (Me.call(t, "key")) {
|
|
387
|
+
var l = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
388
|
+
if (l && l.isReactWarning)
|
|
389
389
|
return !1;
|
|
390
390
|
}
|
|
391
391
|
return t.key !== void 0;
|
|
392
392
|
}
|
|
393
|
-
function Ze(t,
|
|
393
|
+
function Ze(t, l) {
|
|
394
394
|
typeof t.ref == "string" && De.current;
|
|
395
395
|
}
|
|
396
|
-
function Oe(t,
|
|
396
|
+
function Oe(t, l) {
|
|
397
397
|
{
|
|
398
398
|
var m = function() {
|
|
399
|
-
st || (st = !0, D("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
399
|
+
st || (st = !0, D("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
400
400
|
};
|
|
401
401
|
m.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
402
402
|
get: m,
|
|
@@ -404,10 +404,10 @@ function mr() {
|
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function lt(t,
|
|
407
|
+
function lt(t, l) {
|
|
408
408
|
{
|
|
409
409
|
var m = function() {
|
|
410
|
-
ke || (ke = !0, D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
410
|
+
ke || (ke = !0, D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
411
411
|
};
|
|
412
412
|
m.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
413
413
|
get: m,
|
|
@@ -415,57 +415,57 @@ function mr() {
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var
|
|
419
|
-
var
|
|
418
|
+
var Ee = function(t, l, m, x, I, F, z) {
|
|
419
|
+
var j = {
|
|
420
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
421
|
$$typeof: a,
|
|
422
422
|
// Built-in properties that belong on the element
|
|
423
423
|
type: t,
|
|
424
|
-
key:
|
|
424
|
+
key: l,
|
|
425
425
|
ref: m,
|
|
426
426
|
props: z,
|
|
427
427
|
// Record the component responsible for creating this element.
|
|
428
428
|
_owner: F
|
|
429
429
|
};
|
|
430
|
-
return
|
|
430
|
+
return j._store = {}, Object.defineProperty(j._store, "validated", {
|
|
431
431
|
configurable: !1,
|
|
432
432
|
enumerable: !1,
|
|
433
433
|
writable: !0,
|
|
434
434
|
value: !1
|
|
435
|
-
}), Object.defineProperty(
|
|
435
|
+
}), Object.defineProperty(j, "_self", {
|
|
436
436
|
configurable: !1,
|
|
437
437
|
enumerable: !1,
|
|
438
438
|
writable: !1,
|
|
439
439
|
value: x
|
|
440
|
-
}), Object.defineProperty(
|
|
440
|
+
}), Object.defineProperty(j, "_source", {
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !1,
|
|
444
444
|
value: I
|
|
445
|
-
}), Object.freeze && (Object.freeze(
|
|
445
|
+
}), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
|
|
446
446
|
};
|
|
447
|
-
function vt(t,
|
|
447
|
+
function vt(t, l, m, x, I) {
|
|
448
448
|
{
|
|
449
|
-
var F, z = {},
|
|
450
|
-
m !== void 0 && (ie(m),
|
|
451
|
-
for (F in
|
|
452
|
-
|
|
449
|
+
var F, z = {}, j = null, se = null;
|
|
450
|
+
m !== void 0 && (ie(m), j = "" + m), At(l) && (ie(l.key), j = "" + l.key), mt(l) && (se = l.ref, Ze(l, I));
|
|
451
|
+
for (F in l)
|
|
452
|
+
Me.call(l, F) && !gt.hasOwnProperty(F) && (z[F] = l[F]);
|
|
453
453
|
if (t && t.defaultProps) {
|
|
454
454
|
var $ = t.defaultProps;
|
|
455
455
|
for (F in $)
|
|
456
456
|
z[F] === void 0 && (z[F] = $[F]);
|
|
457
457
|
}
|
|
458
|
-
if (
|
|
458
|
+
if (j || se) {
|
|
459
459
|
var ae = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
460
|
-
|
|
460
|
+
j && Oe(z, ae), se && lt(z, ae);
|
|
461
461
|
}
|
|
462
|
-
return
|
|
462
|
+
return Ee(t, j, se, I, x, De.current, z);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
var Je = X.ReactCurrentOwner, Ke = X.ReactDebugCurrentFrame;
|
|
466
466
|
function Pe(t) {
|
|
467
467
|
if (t) {
|
|
468
|
-
var
|
|
468
|
+
var l = t._owner, m = Qe(t.type, t._source, l ? l.type : null);
|
|
469
469
|
Ke.setExtraStackFrame(m);
|
|
470
470
|
} else
|
|
471
471
|
Ke.setExtraStackFrame(null);
|
|
@@ -493,22 +493,22 @@ Check the render method of \`` + t + "`.";
|
|
|
493
493
|
var y = {};
|
|
494
494
|
function G(t) {
|
|
495
495
|
{
|
|
496
|
-
var
|
|
497
|
-
if (!
|
|
496
|
+
var l = me();
|
|
497
|
+
if (!l) {
|
|
498
498
|
var m = typeof t == "string" ? t : t.displayName || t.name;
|
|
499
|
-
m && (
|
|
499
|
+
m && (l = `
|
|
500
500
|
|
|
501
501
|
Check the top-level render call using <` + m + ">.");
|
|
502
502
|
}
|
|
503
|
-
return
|
|
503
|
+
return l;
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
function U(t,
|
|
506
|
+
function U(t, l) {
|
|
507
507
|
{
|
|
508
508
|
if (!t._store || t._store.validated || t.key != null)
|
|
509
509
|
return;
|
|
510
510
|
t._store.validated = !0;
|
|
511
|
-
var m = G(
|
|
511
|
+
var m = G(l);
|
|
512
512
|
if (y[m])
|
|
513
513
|
return;
|
|
514
514
|
y[m] = !0;
|
|
@@ -516,54 +516,54 @@ Check the top-level render call using <` + m + ">.");
|
|
|
516
516
|
t && t._owner && t._owner !== Je.current && (x = " It was passed a child from " + re(t._owner.type) + "."), Pe(t), D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, x), Pe(null);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
function le(t,
|
|
519
|
+
function le(t, l) {
|
|
520
520
|
{
|
|
521
521
|
if (typeof t != "object")
|
|
522
522
|
return;
|
|
523
523
|
if (Ue(t))
|
|
524
524
|
for (var m = 0; m < t.length; m++) {
|
|
525
525
|
var x = t[m];
|
|
526
|
-
He(x) && U(x,
|
|
526
|
+
He(x) && U(x, l);
|
|
527
527
|
}
|
|
528
528
|
else if (He(t))
|
|
529
529
|
t._store && (t._store.validated = !0);
|
|
530
530
|
else if (t) {
|
|
531
|
-
var I =
|
|
531
|
+
var I = M(t);
|
|
532
532
|
if (typeof I == "function" && I !== t.entries)
|
|
533
533
|
for (var F = I.call(t), z; !(z = F.next()).done; )
|
|
534
|
-
He(z.value) && U(z.value,
|
|
534
|
+
He(z.value) && U(z.value, l);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
function pe(t) {
|
|
539
539
|
{
|
|
540
|
-
var
|
|
541
|
-
if (
|
|
540
|
+
var l = t.type;
|
|
541
|
+
if (l == null || typeof l == "string")
|
|
542
542
|
return;
|
|
543
543
|
var m;
|
|
544
|
-
if (typeof
|
|
545
|
-
m =
|
|
546
|
-
else if (typeof
|
|
544
|
+
if (typeof l == "function")
|
|
545
|
+
m = l.propTypes;
|
|
546
|
+
else if (typeof l == "object" && (l.$$typeof === f || // Note: Memo only checks outer props here.
|
|
547
547
|
// Inner props are checked in the reconciler.
|
|
548
|
-
|
|
549
|
-
m =
|
|
548
|
+
l.$$typeof === b))
|
|
549
|
+
m = l.propTypes;
|
|
550
550
|
else
|
|
551
551
|
return;
|
|
552
552
|
if (m) {
|
|
553
|
-
var x = re(
|
|
553
|
+
var x = re(l);
|
|
554
554
|
ot(m, t.props, "prop", x, t);
|
|
555
|
-
} else if (
|
|
555
|
+
} else if (l.PropTypes !== void 0 && !_e) {
|
|
556
556
|
_e = !0;
|
|
557
|
-
var I = re(
|
|
557
|
+
var I = re(l);
|
|
558
558
|
D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
|
|
559
559
|
}
|
|
560
|
-
typeof
|
|
560
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
function be(t) {
|
|
564
564
|
{
|
|
565
|
-
for (var
|
|
566
|
-
var x =
|
|
565
|
+
for (var l = Object.keys(t.props), m = 0; m < l.length; m++) {
|
|
566
|
+
var x = l[m];
|
|
567
567
|
if (x !== "children" && x !== "key") {
|
|
568
568
|
Pe(t), D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), Pe(null);
|
|
569
569
|
break;
|
|
@@ -573,22 +573,22 @@ Check the top-level render call using <` + m + ">.");
|
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
var we = {};
|
|
576
|
-
function ce(t,
|
|
576
|
+
function ce(t, l, m, x, I, F) {
|
|
577
577
|
{
|
|
578
578
|
var z = oe(t);
|
|
579
579
|
if (!z) {
|
|
580
|
-
var
|
|
581
|
-
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (
|
|
580
|
+
var j = "";
|
|
581
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (j += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
582
582
|
var se = ht();
|
|
583
|
-
se ?
|
|
583
|
+
se ? j += se : j += me();
|
|
584
584
|
var $;
|
|
585
|
-
t === null ? $ = "null" : Ue(t) ? $ = "array" : t !== void 0 && t.$$typeof === a ? ($ = "<" + (re(t.type) || "Unknown") + " />",
|
|
585
|
+
t === null ? $ = "null" : Ue(t) ? $ = "array" : t !== void 0 && t.$$typeof === a ? ($ = "<" + (re(t.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof t, D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, j);
|
|
586
586
|
}
|
|
587
|
-
var ae = vt(t,
|
|
587
|
+
var ae = vt(t, l, m, I, F);
|
|
588
588
|
if (ae == null)
|
|
589
589
|
return ae;
|
|
590
590
|
if (z) {
|
|
591
|
-
var ge =
|
|
591
|
+
var ge = l.children;
|
|
592
592
|
if (ge !== void 0)
|
|
593
593
|
if (x)
|
|
594
594
|
if (Ue(ge)) {
|
|
@@ -600,8 +600,8 @@ Check the top-level render call using <` + m + ">.");
|
|
|
600
600
|
else
|
|
601
601
|
le(ge, t);
|
|
602
602
|
}
|
|
603
|
-
if (
|
|
604
|
-
var Le = re(t), de = Object.keys(
|
|
603
|
+
if (Me.call(l, "key")) {
|
|
604
|
+
var Le = re(t), de = Object.keys(l).filter(function($t) {
|
|
605
605
|
return $t !== "key";
|
|
606
606
|
}), bt = de.length > 0 ? "{key: someKey, " + de.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
607
|
if (!we[Le + bt]) {
|
|
@@ -617,11 +617,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
617
617
|
return t === i ? be(ae) : pe(ae), ae;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function ye(t,
|
|
621
|
-
return ce(t,
|
|
620
|
+
function ye(t, l, m) {
|
|
621
|
+
return ce(t, l, m, !0);
|
|
622
622
|
}
|
|
623
|
-
function Zt(t,
|
|
624
|
-
return ce(t,
|
|
623
|
+
function Zt(t, l, m) {
|
|
624
|
+
return ce(t, l, m, !1);
|
|
625
625
|
}
|
|
626
626
|
var Jt = Zt, Kt = ye;
|
|
627
627
|
et.Fragment = i, et.jsx = Jt, et.jsxs = Kt;
|
|
@@ -660,8 +660,8 @@ var r = Pt.exports, vr = (e) => {
|
|
|
660
660
|
this.publish(e), this.toasts = [...this.toasts, e];
|
|
661
661
|
}, this.create = (e) => {
|
|
662
662
|
var a;
|
|
663
|
-
let { message: n, ...i } = e, s = typeof (e == null ? void 0 : e.id) == "number" || ((a = e.id) == null ? void 0 : a.length) > 0 ? e.id : Nt++, c = this.toasts.find((
|
|
664
|
-
return this.dismissedToasts.has(s) && this.dismissedToasts.delete(s), c ? this.toasts = this.toasts.map((
|
|
663
|
+
let { message: n, ...i } = e, s = typeof (e == null ? void 0 : e.id) == "number" || ((a = e.id) == null ? void 0 : a.length) > 0 ? e.id : Nt++, c = this.toasts.find((A) => A.id === s), d = e.dismissible === void 0 ? !0 : e.dismissible;
|
|
664
|
+
return this.dismissedToasts.has(s) && this.dismissedToasts.delete(s), c ? this.toasts = this.toasts.map((A) => A.id === s ? (this.publish({ ...A, ...e, id: s, title: n }), { ...A, ...e, id: s, dismissible: d, title: n }) : A) : this.addToast({ title: n, ...i, dismissible: d, id: s }), s;
|
|
665
665
|
}, this.dismiss = (e) => (this.dismissedToasts.add(e), e || this.toasts.forEach((a) => {
|
|
666
666
|
this.subscribers.forEach((n) => n({ id: a.id, dismiss: !0 }));
|
|
667
667
|
}), this.subscribers.forEach((a) => a({ id: e, dismiss: !0 })), e), this.message = (e, a) => this.create({ ...a, message: e }), this.error = (e, a) => this.create({ ...a, message: e, type: "error" }), this.success = (e, a) => this.create({ ...a, type: "success", message: e }), this.info = (e, a) => this.create({ ...a, type: "info", message: e }), this.warning = (e, a) => this.create({ ...a, type: "warning", message: e }), this.loading = (e, a) => this.create({ ...a, type: "loading", message: e }), this.promise = (e, a) => {
|
|
@@ -670,7 +670,7 @@ var r = Pt.exports, vr = (e) => {
|
|
|
670
670
|
a.loading !== void 0 && (n = this.create({ ...a, promise: e, type: "loading", message: a.loading, description: typeof a.description != "function" ? a.description : void 0 }));
|
|
671
671
|
let i = e instanceof Promise ? e : e(), s = n !== void 0, c, d = i.then(async (f) => {
|
|
672
672
|
if (c = ["resolve", f], u.isValidElement(f)) s = !1, this.create({ id: n, type: "default", message: f });
|
|
673
|
-
else if (
|
|
673
|
+
else if (Tr(f) && !f.ok) {
|
|
674
674
|
s = !1;
|
|
675
675
|
let p = typeof a.error == "function" ? await a.error(`HTTP error! status: ${f.status}`) : a.error, v = typeof a.description == "function" ? await a.description(`HTTP error! status: ${f.status}`) : a.description;
|
|
676
676
|
this.create({ id: n, type: "error", message: p, description: v });
|
|
@@ -688,8 +688,8 @@ var r = Pt.exports, vr = (e) => {
|
|
|
688
688
|
}).finally(() => {
|
|
689
689
|
var f;
|
|
690
690
|
s && (this.dismiss(n), n = void 0), (f = a.finally) == null || f.call(a);
|
|
691
|
-
}),
|
|
692
|
-
return typeof n != "string" && typeof n != "number" ? { unwrap:
|
|
691
|
+
}), A = () => new Promise((f, p) => d.then(() => c[0] === "reject" ? p(c[1]) : f(c[1])).catch(p));
|
|
692
|
+
return typeof n != "string" && typeof n != "number" ? { unwrap: A } : Object.assign(n, { unwrap: A });
|
|
693
693
|
}, this.custom = (e, a) => {
|
|
694
694
|
let n = (a == null ? void 0 : a.id) || Nt++;
|
|
695
695
|
return this.create({ jsx: e(n), id: n, ...a }), n;
|
|
@@ -698,13 +698,13 @@ var r = Pt.exports, vr = (e) => {
|
|
|
698
698
|
}, ue = new Pr(), Nr = (e, a) => {
|
|
699
699
|
let n = (a == null ? void 0 : a.id) || Nt++;
|
|
700
700
|
return ue.addToast({ title: e, ...a, id: n }), n;
|
|
701
|
-
},
|
|
702
|
-
function
|
|
701
|
+
}, Tr = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", Mr = Nr, Or = () => ue.toasts, Er = () => ue.getActiveToasts(), ut = Object.assign(Mr, { success: ue.success, info: ue.info, warning: ue.warning, error: ue.error, custom: ue.custom, message: ue.message, promise: ue.promise, dismiss: ue.dismiss, loading: ue.loading }, { getHistory: Or, getToasts: Er });
|
|
702
|
+
function jr(e, { insertAt: a } = {}) {
|
|
703
703
|
if (typeof document > "u") return;
|
|
704
704
|
let n = document.head || document.getElementsByTagName("head")[0], i = document.createElement("style");
|
|
705
705
|
i.type = "text/css", a === "top" && n.firstChild ? n.insertBefore(i, n.firstChild) : n.appendChild(i), i.styleSheet ? i.styleSheet.cssText = e : i.appendChild(document.createTextNode(e));
|
|
706
706
|
}
|
|
707
|
-
Er(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
707
|
+
jr(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
708
708
|
`);
|
|
709
709
|
function dt(e) {
|
|
710
710
|
return e.label !== void 0;
|
|
@@ -718,37 +718,37 @@ function Ir(e) {
|
|
|
718
718
|
return a && i.push(a), n && i.push(n), i;
|
|
719
719
|
}
|
|
720
720
|
var Sr = (e) => {
|
|
721
|
-
var a, n, i, s, c, d,
|
|
722
|
-
let { invert:
|
|
721
|
+
var a, n, i, s, c, d, A, f, p, v, b;
|
|
722
|
+
let { invert: T, toast: o, unstyled: Q, interacting: w, setHeights: M, visibleToasts: X, heights: D, index: ee, toasts: R, expanded: k, removeToast: P, defaultRichColors: Y, closeButton: ne, style: W, cancelButtonStyle: oe, actionButtonStyle: te, className: h = "", descriptionClassName: re = "", duration: H, position: g, gap: V, loadingIcon: S, expandByDefault: fe, classNames: C, icons: J, closeButtonAriaLabel: Z = "Close toast", pauseWhenPageIsHidden: E } = e, [O, N] = u.useState(null), [K, _] = u.useState(null), [L, Te] = u.useState(!1), [xe, Ce] = u.useState(!1), [Re, Se] = u.useState(!1), [at, ft] = u.useState(!1), [Qe, Me] = u.useState(!1), [nt, Ye] = u.useState(0), [Ve, ot] = u.useState(0), Xe = u.useRef(o.duration || H || Rt), Ue = u.useRef(null), Be = u.useRef(null), pt = ee === 0, it = ee + 1 <= X, ie = o.type, De = o.dismissible !== !1, gt = o.className || "", st = o.descriptionClassName || "", ke = u.useMemo(() => D.findIndex((y) => y.toastId === o.id) || 0, [D, o.id]), mt = u.useMemo(() => {
|
|
723
723
|
var y;
|
|
724
724
|
return (y = o.closeButton) != null ? y : ne;
|
|
725
|
-
}, [o.closeButton, ne]), At = u.useMemo(() => o.duration || H || Rt, [o.duration, H]), Ze = u.useRef(0), Oe = u.useRef(0), lt = u.useRef(0),
|
|
725
|
+
}, [o.closeButton, ne]), At = u.useMemo(() => o.duration || H || Rt, [o.duration, H]), Ze = u.useRef(0), Oe = u.useRef(0), lt = u.useRef(0), Ee = u.useRef(null), [vt, Je] = g.split("-"), Ke = u.useMemo(() => D.reduce((y, G, U) => U >= ke ? y : y + G.height, 0), [D, ke]), Pe = Dr(), _e = o.invert || T, He = ie === "loading";
|
|
726
726
|
Oe.current = u.useMemo(() => ke * V + Ke, [ke, Ke]), u.useEffect(() => {
|
|
727
727
|
Xe.current = At;
|
|
728
728
|
}, [At]), u.useEffect(() => {
|
|
729
|
-
|
|
729
|
+
Te(!0);
|
|
730
730
|
}, []), u.useEffect(() => {
|
|
731
731
|
let y = Be.current;
|
|
732
732
|
if (y) {
|
|
733
733
|
let G = y.getBoundingClientRect().height;
|
|
734
|
-
return ot(G),
|
|
734
|
+
return ot(G), M((U) => [{ toastId: o.id, height: G, position: o.position }, ...U]), () => M((U) => U.filter((le) => le.toastId !== o.id));
|
|
735
735
|
}
|
|
736
|
-
}, [
|
|
736
|
+
}, [M, o.id]), u.useLayoutEffect(() => {
|
|
737
737
|
if (!L) return;
|
|
738
738
|
let y = Be.current, G = y.style.height;
|
|
739
739
|
y.style.height = "auto";
|
|
740
740
|
let U = y.getBoundingClientRect().height;
|
|
741
|
-
y.style.height = G, ot(U),
|
|
742
|
-
}, [L, o.title, o.description,
|
|
741
|
+
y.style.height = G, ot(U), M((le) => le.find((pe) => pe.toastId === o.id) ? le.map((pe) => pe.toastId === o.id ? { ...pe, height: U } : pe) : [{ toastId: o.id, height: U, position: o.position }, ...le]);
|
|
742
|
+
}, [L, o.title, o.description, M, o.id]);
|
|
743
743
|
let me = u.useCallback(() => {
|
|
744
|
-
Ce(!0), Ye(Oe.current),
|
|
744
|
+
Ce(!0), Ye(Oe.current), M((y) => y.filter((G) => G.toastId !== o.id)), setTimeout(() => {
|
|
745
745
|
P(o);
|
|
746
746
|
}, Gr);
|
|
747
|
-
}, [o, P,
|
|
747
|
+
}, [o, P, M, Oe]);
|
|
748
748
|
u.useEffect(() => {
|
|
749
749
|
if (o.promise && ie === "loading" || o.duration === 1 / 0 || o.type === "loading") return;
|
|
750
750
|
let y;
|
|
751
|
-
return k || w ||
|
|
751
|
+
return k || w || E && Pe ? (() => {
|
|
752
752
|
if (lt.current < Ze.current) {
|
|
753
753
|
let G = (/* @__PURE__ */ new Date()).getTime() - Ze.current;
|
|
754
754
|
Xe.current = Xe.current - G;
|
|
@@ -758,7 +758,7 @@ var Sr = (e) => {
|
|
|
758
758
|
var G;
|
|
759
759
|
(G = o.onAutoClose) == null || G.call(o, o), me();
|
|
760
760
|
}, Xe.current)), () => clearTimeout(y);
|
|
761
|
-
}, [k, w, o, ie,
|
|
761
|
+
}, [k, w, o, ie, E, Pe, me]), u.useEffect(() => {
|
|
762
762
|
o.delete && me();
|
|
763
763
|
}, [me, o.delete]);
|
|
764
764
|
function ht() {
|
|
@@ -766,31 +766,31 @@ var Sr = (e) => {
|
|
|
766
766
|
return J != null && J.loading ? u.createElement("div", { className: ve(C == null ? void 0 : C.loader, (y = o == null ? void 0 : o.classNames) == null ? void 0 : y.loader, "sonner-loader"), "data-visible": ie === "loading" }, J.loading) : S ? u.createElement("div", { className: ve(C == null ? void 0 : C.loader, (G = o == null ? void 0 : o.classNames) == null ? void 0 : G.loader, "sonner-loader"), "data-visible": ie === "loading" }, S) : u.createElement(br, { className: ve(C == null ? void 0 : C.loader, (U = o == null ? void 0 : o.classNames) == null ? void 0 : U.loader), visible: ie === "loading" });
|
|
767
767
|
}
|
|
768
768
|
return u.createElement("li", { tabIndex: 0, ref: Be, className: ve(h, gt, C == null ? void 0 : C.toast, (a = o == null ? void 0 : o.classNames) == null ? void 0 : a.toast, C == null ? void 0 : C.default, C == null ? void 0 : C[ie], (n = o == null ? void 0 : o.classNames) == null ? void 0 : n[ie]), "data-sonner-toast": "", "data-rich-colors": (i = o.richColors) != null ? i : Y, "data-styled": !(o.jsx || o.unstyled || Q), "data-mounted": L, "data-promise": !!o.promise, "data-swiped": Qe, "data-removed": xe, "data-visible": it, "data-y-position": vt, "data-x-position": Je, "data-index": ee, "data-front": pt, "data-swiping": Re, "data-dismissible": De, "data-type": ie, "data-invert": _e, "data-swipe-out": at, "data-swipe-direction": K, "data-expanded": !!(k || fe && L), style: { "--index": ee, "--toasts-before": ee, "--z-index": R.length - ee, "--offset": `${xe ? nt : Oe.current}px`, "--initial-height": fe ? "auto" : `${Ve}px`, ...W, ...o.style }, onDragEnd: () => {
|
|
769
|
-
Se(!1), N(null),
|
|
769
|
+
Se(!1), N(null), Ee.current = null;
|
|
770
770
|
}, onPointerDown: (y) => {
|
|
771
|
-
He || !De || (Ue.current = /* @__PURE__ */ new Date(), Ye(Oe.current), y.target.setPointerCapture(y.pointerId), y.target.tagName !== "BUTTON" && (Se(!0),
|
|
771
|
+
He || !De || (Ue.current = /* @__PURE__ */ new Date(), Ye(Oe.current), y.target.setPointerCapture(y.pointerId), y.target.tagName !== "BUTTON" && (Se(!0), Ee.current = { x: y.clientX, y: y.clientY }));
|
|
772
772
|
}, onPointerUp: () => {
|
|
773
773
|
var y, G, U, le;
|
|
774
774
|
if (at || !De) return;
|
|
775
|
-
|
|
775
|
+
Ee.current = null;
|
|
776
776
|
let pe = Number(((y = Be.current) == null ? void 0 : y.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), be = Number(((G = Be.current) == null ? void 0 : G.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), we = (/* @__PURE__ */ new Date()).getTime() - ((U = Ue.current) == null ? void 0 : U.getTime()), ce = O === "x" ? pe : be, ye = Math.abs(ce) / we;
|
|
777
777
|
if (Math.abs(ce) >= Lr || ye > 0.11) {
|
|
778
|
-
Ye(Oe.current), (le = o.onDismiss) == null || le.call(o, o), _(O === "x" ? pe > 0 ? "right" : "left" : be > 0 ? "down" : "up"), me(), ft(!0),
|
|
778
|
+
Ye(Oe.current), (le = o.onDismiss) == null || le.call(o, o), _(O === "x" ? pe > 0 ? "right" : "left" : be > 0 ? "down" : "up"), me(), ft(!0), Me(!1);
|
|
779
779
|
return;
|
|
780
780
|
}
|
|
781
781
|
Se(!1), N(null);
|
|
782
782
|
}, onPointerMove: (y) => {
|
|
783
783
|
var G, U, le, pe;
|
|
784
|
-
if (!
|
|
785
|
-
let be = y.clientY -
|
|
784
|
+
if (!Ee.current || !De || ((G = window.getSelection()) == null ? void 0 : G.toString().length) > 0) return;
|
|
785
|
+
let be = y.clientY - Ee.current.y, we = y.clientX - Ee.current.x, ce = (U = e.swipeDirections) != null ? U : Ir(g);
|
|
786
786
|
!O && (Math.abs(we) > 1 || Math.abs(be) > 1) && N(Math.abs(we) > Math.abs(be) ? "x" : "y");
|
|
787
787
|
let ye = { x: 0, y: 0 };
|
|
788
|
-
O === "y" ? (ce.includes("top") || ce.includes("bottom")) && (ce.includes("top") && be < 0 || ce.includes("bottom") && be > 0) && (ye.y = be) : O === "x" && (ce.includes("left") || ce.includes("right")) && (ce.includes("left") && we < 0 || ce.includes("right") && we > 0) && (ye.x = we), (Math.abs(ye.x) > 0 || Math.abs(ye.y) > 0) &&
|
|
788
|
+
O === "y" ? (ce.includes("top") || ce.includes("bottom")) && (ce.includes("top") && be < 0 || ce.includes("bottom") && be > 0) && (ye.y = be) : O === "x" && (ce.includes("left") || ce.includes("right")) && (ce.includes("left") && we < 0 || ce.includes("right") && we > 0) && (ye.x = we), (Math.abs(ye.x) > 0 || Math.abs(ye.y) > 0) && Me(!0), (le = Be.current) == null || le.style.setProperty("--swipe-amount-x", `${ye.x}px`), (pe = Be.current) == null || pe.style.setProperty("--swipe-amount-y", `${ye.y}px`);
|
|
789
789
|
} }, mt && !o.jsx ? u.createElement("button", { "aria-label": Z, "data-disabled": He, "data-close-button": !0, onClick: He || !De ? () => {
|
|
790
790
|
} : () => {
|
|
791
791
|
var y;
|
|
792
792
|
me(), (y = o.onDismiss) == null || y.call(o, o);
|
|
793
|
-
}, className: ve(C == null ? void 0 : C.closeButton, (s = o == null ? void 0 : o.classNames) == null ? void 0 : s.closeButton) }, (c = J == null ? void 0 : J.close) != null ? c : Br) : null, o.jsx || wt(o.title) ? o.jsx ? o.jsx : typeof o.title == "function" ? o.title() : o.title : u.createElement(u.Fragment, null, ie || o.icon || o.promise ? u.createElement("div", { "data-icon": "", className: ve(C == null ? void 0 : C.icon, (d = o == null ? void 0 : o.classNames) == null ? void 0 : d.icon) }, o.promise || o.type === "loading" && !o.icon ? o.icon || ht() : null, o.type !== "loading" ? o.icon || (J == null ? void 0 : J[ie]) || vr(ie) : null) : null, u.createElement("div", { "data-content": "", className: ve(C == null ? void 0 : C.content, (
|
|
793
|
+
}, className: ve(C == null ? void 0 : C.closeButton, (s = o == null ? void 0 : o.classNames) == null ? void 0 : s.closeButton) }, (c = J == null ? void 0 : J.close) != null ? c : Br) : null, o.jsx || wt(o.title) ? o.jsx ? o.jsx : typeof o.title == "function" ? o.title() : o.title : u.createElement(u.Fragment, null, ie || o.icon || o.promise ? u.createElement("div", { "data-icon": "", className: ve(C == null ? void 0 : C.icon, (d = o == null ? void 0 : o.classNames) == null ? void 0 : d.icon) }, o.promise || o.type === "loading" && !o.icon ? o.icon || ht() : null, o.type !== "loading" ? o.icon || (J == null ? void 0 : J[ie]) || vr(ie) : null) : null, u.createElement("div", { "data-content": "", className: ve(C == null ? void 0 : C.content, (A = o == null ? void 0 : o.classNames) == null ? void 0 : A.content) }, u.createElement("div", { "data-title": "", className: ve(C == null ? void 0 : C.title, (f = o == null ? void 0 : o.classNames) == null ? void 0 : f.title) }, typeof o.title == "function" ? o.title() : o.title), o.description ? u.createElement("div", { "data-description": "", className: ve(re, st, C == null ? void 0 : C.description, (p = o == null ? void 0 : o.classNames) == null ? void 0 : p.description) }, typeof o.description == "function" ? o.description() : o.description) : null), wt(o.cancel) ? o.cancel : o.cancel && dt(o.cancel) ? u.createElement("button", { "data-button": !0, "data-cancel": !0, style: o.cancelButtonStyle || oe, onClick: (y) => {
|
|
794
794
|
var G, U;
|
|
795
795
|
dt(o.cancel) && De && ((U = (G = o.cancel).onClick) == null || U.call(G, y), me());
|
|
796
796
|
}, className: ve(C == null ? void 0 : C.cancelButton, (v = o == null ? void 0 : o.classNames) == null ? void 0 : v.cancelButton) }, o.cancel.label) : null, wt(o.action) ? o.action : o.action && dt(o.action) ? u.createElement("button", { "data-button": !0, "data-action": !0, style: o.actionButtonStyle || te, onClick: (y) => {
|
|
@@ -806,34 +806,34 @@ function Xt() {
|
|
|
806
806
|
function Qr(e, a) {
|
|
807
807
|
let n = {};
|
|
808
808
|
return [e, a].forEach((i, s) => {
|
|
809
|
-
let c = s === 1, d = c ? "--mobile-offset" : "--offset",
|
|
809
|
+
let c = s === 1, d = c ? "--mobile-offset" : "--offset", A = c ? Xr : Rr;
|
|
810
810
|
function f(p) {
|
|
811
811
|
["top", "right", "bottom", "left"].forEach((v) => {
|
|
812
812
|
n[`${d}-${v}`] = typeof p == "number" ? `${p}px` : p;
|
|
813
813
|
});
|
|
814
814
|
}
|
|
815
815
|
typeof i == "number" || typeof i == "string" ? f(i) : typeof i == "object" ? ["top", "right", "bottom", "left"].forEach((p) => {
|
|
816
|
-
i[p] === void 0 ? n[`${d}-${p}`] =
|
|
817
|
-
}) : f(
|
|
816
|
+
i[p] === void 0 ? n[`${d}-${p}`] = A : n[`${d}-${p}`] = typeof i[p] == "number" ? `${i[p]}px` : i[p];
|
|
817
|
+
}) : f(A);
|
|
818
818
|
}), n;
|
|
819
819
|
}
|
|
820
820
|
var Yr = er(function(e, a) {
|
|
821
|
-
let { invert: n, position: i = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: c, closeButton: d, className:
|
|
821
|
+
let { invert: n, position: i = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: c, closeButton: d, className: A, offset: f, mobileOffset: p, theme: v = "light", richColors: b, duration: T, style: o, visibleToasts: Q = zr, toastOptions: w, dir: M = Xt(), gap: X = Hr, loadingIcon: D, icons: ee, containerAriaLabel: R = "Notifications", pauseWhenPageIsHidden: k } = e, [P, Y] = u.useState([]), ne = u.useMemo(() => Array.from(new Set([i].concat(P.filter((E) => E.position).map((E) => E.position)))), [P, i]), [W, oe] = u.useState([]), [te, h] = u.useState(!1), [re, H] = u.useState(!1), [g, V] = u.useState(v !== "system" ? v : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), S = u.useRef(null), fe = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), C = u.useRef(null), J = u.useRef(!1), Z = u.useCallback((E) => {
|
|
822
822
|
Y((O) => {
|
|
823
823
|
var N;
|
|
824
|
-
return (N = O.find((K) => K.id ===
|
|
824
|
+
return (N = O.find((K) => K.id === E.id)) != null && N.delete || ue.dismiss(E.id), O.filter(({ id: K }) => K !== E.id);
|
|
825
825
|
});
|
|
826
826
|
}, []);
|
|
827
|
-
return u.useEffect(() => ue.subscribe((
|
|
828
|
-
if (
|
|
829
|
-
Y((O) => O.map((N) => N.id ===
|
|
827
|
+
return u.useEffect(() => ue.subscribe((E) => {
|
|
828
|
+
if (E.dismiss) {
|
|
829
|
+
Y((O) => O.map((N) => N.id === E.id ? { ...N, delete: !0 } : N));
|
|
830
830
|
return;
|
|
831
831
|
}
|
|
832
832
|
setTimeout(() => {
|
|
833
833
|
tr.flushSync(() => {
|
|
834
834
|
Y((O) => {
|
|
835
|
-
let N = O.findIndex((K) => K.id ===
|
|
836
|
-
return N !== -1 ? [...O.slice(0, N), { ...O[N], ...
|
|
835
|
+
let N = O.findIndex((K) => K.id === E.id);
|
|
836
|
+
return N !== -1 ? [...O.slice(0, N), { ...O[N], ...E }, ...O.slice(N + 1)] : [E, ...O];
|
|
837
837
|
});
|
|
838
838
|
});
|
|
839
839
|
});
|
|
@@ -843,13 +843,13 @@ var Yr = er(function(e, a) {
|
|
|
843
843
|
return;
|
|
844
844
|
}
|
|
845
845
|
if (v === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? V("dark") : V("light")), typeof window > "u") return;
|
|
846
|
-
let
|
|
846
|
+
let E = window.matchMedia("(prefers-color-scheme: dark)");
|
|
847
847
|
try {
|
|
848
|
-
|
|
848
|
+
E.addEventListener("change", ({ matches: O }) => {
|
|
849
849
|
V(O ? "dark" : "light");
|
|
850
850
|
});
|
|
851
851
|
} catch {
|
|
852
|
-
|
|
852
|
+
E.addListener(({ matches: N }) => {
|
|
853
853
|
try {
|
|
854
854
|
V(N ? "dark" : "light");
|
|
855
855
|
} catch (K) {
|
|
@@ -860,19 +860,19 @@ var Yr = er(function(e, a) {
|
|
|
860
860
|
}, [v]), u.useEffect(() => {
|
|
861
861
|
P.length <= 1 && h(!1);
|
|
862
862
|
}, [P]), u.useEffect(() => {
|
|
863
|
-
let
|
|
863
|
+
let E = (O) => {
|
|
864
864
|
var N, K;
|
|
865
865
|
s.every((_) => O[_] || O.code === _) && (h(!0), (N = S.current) == null || N.focus()), O.code === "Escape" && (document.activeElement === S.current || (K = S.current) != null && K.contains(document.activeElement)) && h(!1);
|
|
866
866
|
};
|
|
867
|
-
return document.addEventListener("keydown",
|
|
867
|
+
return document.addEventListener("keydown", E), () => document.removeEventListener("keydown", E);
|
|
868
868
|
}, [s]), u.useEffect(() => {
|
|
869
869
|
if (S.current) return () => {
|
|
870
870
|
C.current && (C.current.focus({ preventScroll: !0 }), C.current = null, J.current = !1);
|
|
871
871
|
};
|
|
872
|
-
}, [S.current]), u.createElement("section", { ref: a, "aria-label": `${R} ${fe}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, ne.map((
|
|
872
|
+
}, [S.current]), u.createElement("section", { ref: a, "aria-label": `${R} ${fe}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, ne.map((E, O) => {
|
|
873
873
|
var N;
|
|
874
|
-
let [K, _] =
|
|
875
|
-
return P.length ? u.createElement("ol", { key:
|
|
874
|
+
let [K, _] = E.split("-");
|
|
875
|
+
return P.length ? u.createElement("ol", { key: E, dir: M === "auto" ? Xt() : M, tabIndex: -1, ref: S, className: A, "data-sonner-toaster": !0, "data-theme": g, "data-y-position": K, "data-lifted": te && P.length > 1 && !c, "data-x-position": _, style: { "--front-toast-height": `${((N = W[0]) == null ? void 0 : N.height) || 0}px`, "--width": `${kr}px`, "--gap": `${X}px`, ...o, ...Qr(f, p) }, onBlur: (L) => {
|
|
876
876
|
J.current && !L.currentTarget.contains(L.relatedTarget) && (J.current = !1, C.current && (C.current.focus({ preventScroll: !0 }), C.current = null));
|
|
877
877
|
}, onFocus: (L) => {
|
|
878
878
|
L.target instanceof HTMLElement && L.target.dataset.dismissible === "false" || J.current || (J.current = !0, C.current = L.relatedTarget);
|
|
@@ -880,9 +880,9 @@ var Yr = er(function(e, a) {
|
|
|
880
880
|
re || h(!1);
|
|
881
881
|
}, onDragEnd: () => h(!1), onPointerDown: (L) => {
|
|
882
882
|
L.target instanceof HTMLElement && L.target.dataset.dismissible === "false" || H(!0);
|
|
883
|
-
}, onPointerUp: () => H(!1) }, P.filter((L) => !L.position && O === 0 || L.position ===
|
|
883
|
+
}, onPointerUp: () => H(!1) }, P.filter((L) => !L.position && O === 0 || L.position === E).map((L, Te) => {
|
|
884
884
|
var xe, Ce;
|
|
885
|
-
return u.createElement(Sr, { key: L.id, icons: ee, index:
|
|
885
|
+
return u.createElement(Sr, { key: L.id, icons: ee, index: Te, toast: L, defaultRichColors: b, duration: (xe = w == null ? void 0 : w.duration) != null ? xe : T, className: w == null ? void 0 : w.className, descriptionClassName: w == null ? void 0 : w.descriptionClassName, invert: n, visibleToasts: Q, closeButton: (Ce = w == null ? void 0 : w.closeButton) != null ? Ce : d, interacting: re, position: E, style: w == null ? void 0 : w.style, unstyled: w == null ? void 0 : w.unstyled, classNames: w == null ? void 0 : w.classNames, cancelButtonStyle: w == null ? void 0 : w.cancelButtonStyle, actionButtonStyle: w == null ? void 0 : w.actionButtonStyle, removeToast: Z, toasts: P.filter((Re) => Re.position == L.position), heights: W.filter((Re) => Re.position == L.position), setHeights: oe, expandByDefault: c, gap: X, loadingIcon: D, expanded: te, pauseWhenPageIsHidden: k, swipeDirections: e.swipeDirections });
|
|
886
886
|
})) : null;
|
|
887
887
|
}));
|
|
888
888
|
});
|
|
@@ -909,7 +909,7 @@ const Qt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAKqCAYAAACkSiwxAA
|
|
|
909
909
|
)
|
|
910
910
|
]
|
|
911
911
|
}
|
|
912
|
-
),
|
|
912
|
+
), Mt = u.createContext(null);
|
|
913
913
|
function Yt(e) {
|
|
914
914
|
var a, n, i = "";
|
|
915
915
|
if (typeof e == "string" || typeof e == "number") i += e;
|
|
@@ -930,12 +930,12 @@ const Ot = "-", Fr = (e) => {
|
|
|
930
930
|
} = e;
|
|
931
931
|
return {
|
|
932
932
|
getClassGroupId: (d) => {
|
|
933
|
-
const
|
|
934
|
-
return
|
|
933
|
+
const A = d.split(Ot);
|
|
934
|
+
return A[0] === "" && A.length !== 1 && A.shift(), Vt(A, a) || qr(d);
|
|
935
935
|
},
|
|
936
|
-
getConflictingClassGroupIds: (d,
|
|
936
|
+
getConflictingClassGroupIds: (d, A) => {
|
|
937
937
|
const f = n[d] || [];
|
|
938
|
-
return
|
|
938
|
+
return A && i[d] ? [...f, ...i[d]] : f;
|
|
939
939
|
}
|
|
940
940
|
};
|
|
941
941
|
}, Vt = (e, a) => {
|
|
@@ -949,8 +949,8 @@ const Ot = "-", Fr = (e) => {
|
|
|
949
949
|
return;
|
|
950
950
|
const c = e.join(Ot);
|
|
951
951
|
return (d = a.validators.find(({
|
|
952
|
-
validator:
|
|
953
|
-
}) =>
|
|
952
|
+
validator: A
|
|
953
|
+
}) => A(c))) == null ? void 0 : d.classGroupId;
|
|
954
954
|
}, kt = /^\[(.+)\]$/, qr = (e) => {
|
|
955
955
|
if (kt.test(e)) {
|
|
956
956
|
const a = kt.exec(e)[1], n = a == null ? void 0 : a.substring(0, a.indexOf(":"));
|
|
@@ -966,9 +966,9 @@ const Ot = "-", Fr = (e) => {
|
|
|
966
966
|
validators: []
|
|
967
967
|
};
|
|
968
968
|
return Jr(Object.entries(e.classGroups), n).forEach(([c, d]) => {
|
|
969
|
-
|
|
969
|
+
Tt(d, i, c, a);
|
|
970
970
|
}), i;
|
|
971
|
-
},
|
|
971
|
+
}, Tt = (e, a, n, i) => {
|
|
972
972
|
e.forEach((s) => {
|
|
973
973
|
if (typeof s == "string") {
|
|
974
974
|
const c = s === "" ? a : Ht(a, s);
|
|
@@ -977,7 +977,7 @@ const Ot = "-", Fr = (e) => {
|
|
|
977
977
|
}
|
|
978
978
|
if (typeof s == "function") {
|
|
979
979
|
if (Zr(s)) {
|
|
980
|
-
|
|
980
|
+
Tt(s(i), a, n, i);
|
|
981
981
|
return;
|
|
982
982
|
}
|
|
983
983
|
a.validators.push({
|
|
@@ -987,7 +987,7 @@ const Ot = "-", Fr = (e) => {
|
|
|
987
987
|
return;
|
|
988
988
|
}
|
|
989
989
|
Object.entries(s).forEach(([c, d]) => {
|
|
990
|
-
|
|
990
|
+
Tt(d, Ht(a, c), n, i);
|
|
991
991
|
});
|
|
992
992
|
});
|
|
993
993
|
}, Ht = (e, a) => {
|
|
@@ -999,7 +999,7 @@ const Ot = "-", Fr = (e) => {
|
|
|
999
999
|
}), n = n.nextPart.get(i);
|
|
1000
1000
|
}), n;
|
|
1001
1001
|
}, Zr = (e) => e.isThemeGetter, Jr = (e, a) => a ? e.map(([n, i]) => {
|
|
1002
|
-
const s = i.map((c) => typeof c == "string" ? a + c : typeof c == "object" ? Object.fromEntries(Object.entries(c).map(([d,
|
|
1002
|
+
const s = i.map((c) => typeof c == "string" ? a + c : typeof c == "object" ? Object.fromEntries(Object.entries(c).map(([d, A]) => [a + d, A])) : c);
|
|
1003
1003
|
return [n, s];
|
|
1004
1004
|
}) : e, Kr = (e) => {
|
|
1005
1005
|
if (e < 1)
|
|
@@ -1029,24 +1029,24 @@ const Ot = "-", Fr = (e) => {
|
|
|
1029
1029
|
const {
|
|
1030
1030
|
separator: a,
|
|
1031
1031
|
experimentalParseClassName: n
|
|
1032
|
-
} = e, i = a.length === 1, s = a[0], c = a.length, d = (
|
|
1032
|
+
} = e, i = a.length === 1, s = a[0], c = a.length, d = (A) => {
|
|
1033
1033
|
const f = [];
|
|
1034
1034
|
let p = 0, v = 0, b;
|
|
1035
|
-
for (let
|
|
1036
|
-
let X =
|
|
1035
|
+
for (let M = 0; M < A.length; M++) {
|
|
1036
|
+
let X = A[M];
|
|
1037
1037
|
if (p === 0) {
|
|
1038
|
-
if (X === s && (i ||
|
|
1039
|
-
f.push(
|
|
1038
|
+
if (X === s && (i || A.slice(M, M + c) === a)) {
|
|
1039
|
+
f.push(A.slice(v, M)), v = M + c;
|
|
1040
1040
|
continue;
|
|
1041
1041
|
}
|
|
1042
1042
|
if (X === "/") {
|
|
1043
|
-
b =
|
|
1043
|
+
b = M;
|
|
1044
1044
|
continue;
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
X === "[" ? p++ : X === "]" && p--;
|
|
1048
1048
|
}
|
|
1049
|
-
const
|
|
1049
|
+
const T = f.length === 0 ? A : A.substring(v), o = T.startsWith(Ut), Q = o ? T.substring(1) : T, w = b && b > v ? b - v : void 0;
|
|
1050
1050
|
return {
|
|
1051
1051
|
modifiers: f,
|
|
1052
1052
|
hasImportantModifier: o,
|
|
@@ -1054,8 +1054,8 @@ const Ot = "-", Fr = (e) => {
|
|
|
1054
1054
|
maybePostfixModifierPosition: w
|
|
1055
1055
|
};
|
|
1056
1056
|
};
|
|
1057
|
-
return n ? (
|
|
1058
|
-
className:
|
|
1057
|
+
return n ? (A) => n({
|
|
1058
|
+
className: A,
|
|
1059
1059
|
parseClassName: d
|
|
1060
1060
|
}) : d;
|
|
1061
1061
|
}, $r = (e) => {
|
|
@@ -1076,27 +1076,27 @@ const Ot = "-", Fr = (e) => {
|
|
|
1076
1076
|
getClassGroupId: i,
|
|
1077
1077
|
getConflictingClassGroupIds: s
|
|
1078
1078
|
} = a, c = [], d = e.trim().split(ta);
|
|
1079
|
-
let
|
|
1079
|
+
let A = "";
|
|
1080
1080
|
for (let f = d.length - 1; f >= 0; f -= 1) {
|
|
1081
1081
|
const p = d[f], {
|
|
1082
1082
|
modifiers: v,
|
|
1083
1083
|
hasImportantModifier: b,
|
|
1084
|
-
baseClassName:
|
|
1084
|
+
baseClassName: T,
|
|
1085
1085
|
maybePostfixModifierPosition: o
|
|
1086
1086
|
} = n(p);
|
|
1087
|
-
let Q = !!o, w = i(Q ?
|
|
1087
|
+
let Q = !!o, w = i(Q ? T.substring(0, o) : T);
|
|
1088
1088
|
if (!w) {
|
|
1089
1089
|
if (!Q) {
|
|
1090
|
-
|
|
1090
|
+
A = p + (A.length > 0 ? " " + A : A);
|
|
1091
1091
|
continue;
|
|
1092
1092
|
}
|
|
1093
|
-
if (w = i(
|
|
1094
|
-
|
|
1093
|
+
if (w = i(T), !w) {
|
|
1094
|
+
A = p + (A.length > 0 ? " " + A : A);
|
|
1095
1095
|
continue;
|
|
1096
1096
|
}
|
|
1097
1097
|
Q = !1;
|
|
1098
1098
|
}
|
|
1099
|
-
const
|
|
1099
|
+
const M = $r(v).join(":"), X = b ? M + Ut : M, D = X + w;
|
|
1100
1100
|
if (c.includes(D))
|
|
1101
1101
|
continue;
|
|
1102
1102
|
c.push(D);
|
|
@@ -1105,9 +1105,9 @@ const Ot = "-", Fr = (e) => {
|
|
|
1105
1105
|
const k = ee[R];
|
|
1106
1106
|
c.push(X + k);
|
|
1107
1107
|
}
|
|
1108
|
-
|
|
1108
|
+
A = p + (A.length > 0 ? " " + A : A);
|
|
1109
1109
|
}
|
|
1110
|
-
return
|
|
1110
|
+
return A;
|
|
1111
1111
|
};
|
|
1112
1112
|
function aa() {
|
|
1113
1113
|
let e = 0, a, n, i = "";
|
|
@@ -1127,9 +1127,9 @@ function na(e, ...a) {
|
|
|
1127
1127
|
let n, i, s, c = d;
|
|
1128
1128
|
function d(f) {
|
|
1129
1129
|
const p = a.reduce((v, b) => b(v), e());
|
|
1130
|
-
return n = ea(p), i = n.cache.get, s = n.cache.set, c =
|
|
1130
|
+
return n = ea(p), i = n.cache.get, s = n.cache.set, c = A, A(f);
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1132
|
+
function A(f) {
|
|
1133
1133
|
const p = i(f);
|
|
1134
1134
|
if (p)
|
|
1135
1135
|
return p;
|
|
@@ -1143,7 +1143,7 @@ function na(e, ...a) {
|
|
|
1143
1143
|
const q = (e) => {
|
|
1144
1144
|
const a = (n) => n[e] || [];
|
|
1145
1145
|
return a.isThemeGetter = !0, a;
|
|
1146
|
-
}, qt = /^\[(?:([a-z-]+):)?(.+)\]$/i, oa = /^\d+\/\d+$/, ia = /* @__PURE__ */ new Set(["px", "full", "screen"]), sa = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Aa = /\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$/, la = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ca = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, da = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ne = (e) => qe(e) || ia.has(e) || oa.test(e),
|
|
1146
|
+
}, qt = /^\[(?:([a-z-]+):)?(.+)\]$/i, oa = /^\d+\/\d+$/, ia = /* @__PURE__ */ new Set(["px", "full", "screen"]), sa = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Aa = /\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$/, la = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ca = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, da = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ne = (e) => qe(e) || ia.has(e) || oa.test(e), je = (e) => We(e, "length", ba), qe = (e) => !!e && !Number.isNaN(Number(e)), xt = (e) => We(e, "number", qe), tt = (e) => !!e && Number.isInteger(Number(e)), ua = (e) => e.endsWith("%") && qe(e.slice(0, -1)), B = (e) => qt.test(e), ze = (e) => sa.test(e), fa = /* @__PURE__ */ new Set(["length", "size", "percentage"]), pa = (e) => We(e, fa, Wt), ga = (e) => We(e, "position", Wt), ma = /* @__PURE__ */ new Set(["image", "url"]), va = (e) => We(e, ma, ya), ha = (e) => We(e, "", wa), rt = () => !0, We = (e, a, n) => {
|
|
1147
1147
|
const i = qt.exec(e);
|
|
1148
1148
|
return i ? i[1] ? typeof a == "string" ? i[1] === a : a.has(i[1]) : n(i[2]) : !1;
|
|
1149
1149
|
}, ba = (e) => (
|
|
@@ -1152,13 +1152,13 @@ const q = (e) => {
|
|
|
1152
1152
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1153
1153
|
Aa.test(e) && !la.test(e)
|
|
1154
1154
|
), Wt = () => !1, wa = (e) => ca.test(e), ya = (e) => da.test(e), xa = () => {
|
|
1155
|
-
const e = q("colors"), a = q("spacing"), n = q("blur"), i = q("brightness"), s = q("borderColor"), c = q("borderRadius"), d = q("borderSpacing"),
|
|
1155
|
+
const e = q("colors"), a = q("spacing"), n = q("blur"), i = q("brightness"), s = q("borderColor"), c = q("borderRadius"), d = q("borderSpacing"), A = q("borderWidth"), f = q("contrast"), p = q("grayscale"), v = q("hueRotate"), b = q("invert"), T = q("gap"), o = q("gradientColorStops"), Q = q("gradientColorStopPositions"), w = q("inset"), M = q("margin"), X = q("opacity"), D = q("padding"), ee = q("saturate"), R = q("scale"), k = q("sepia"), P = q("skew"), Y = q("space"), ne = q("translate"), W = () => ["auto", "contain", "none"], oe = () => ["auto", "hidden", "clip", "visible", "scroll"], te = () => ["auto", B, a], h = () => [B, a], re = () => ["", Ne, je], H = () => ["auto", qe, B], g = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], V = () => ["solid", "dashed", "dotted", "double", "none"], S = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], fe = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], C = () => ["", "0", B], J = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Z = () => [qe, B];
|
|
1156
1156
|
return {
|
|
1157
1157
|
cacheSize: 500,
|
|
1158
1158
|
separator: ":",
|
|
1159
1159
|
theme: {
|
|
1160
1160
|
colors: [rt],
|
|
1161
|
-
spacing: [Ne,
|
|
1161
|
+
spacing: [Ne, je],
|
|
1162
1162
|
blur: ["none", "", ze, B],
|
|
1163
1163
|
brightness: Z(),
|
|
1164
1164
|
borderColor: [e],
|
|
@@ -1171,7 +1171,7 @@ const q = (e) => {
|
|
|
1171
1171
|
invert: C(),
|
|
1172
1172
|
gap: h(),
|
|
1173
1173
|
gradientColorStops: [e],
|
|
1174
|
-
gradientColorStopPositions: [ua,
|
|
1174
|
+
gradientColorStopPositions: [ua, je],
|
|
1175
1175
|
inset: te(),
|
|
1176
1176
|
margin: te(),
|
|
1177
1177
|
opacity: Z(),
|
|
@@ -1535,21 +1535,21 @@ const q = (e) => {
|
|
|
1535
1535
|
* @see https://tailwindcss.com/docs/gap
|
|
1536
1536
|
*/
|
|
1537
1537
|
gap: [{
|
|
1538
|
-
gap: [
|
|
1538
|
+
gap: [T]
|
|
1539
1539
|
}],
|
|
1540
1540
|
/**
|
|
1541
1541
|
* Gap X
|
|
1542
1542
|
* @see https://tailwindcss.com/docs/gap
|
|
1543
1543
|
*/
|
|
1544
1544
|
"gap-x": [{
|
|
1545
|
-
"gap-x": [
|
|
1545
|
+
"gap-x": [T]
|
|
1546
1546
|
}],
|
|
1547
1547
|
/**
|
|
1548
1548
|
* Gap Y
|
|
1549
1549
|
* @see https://tailwindcss.com/docs/gap
|
|
1550
1550
|
*/
|
|
1551
1551
|
"gap-y": [{
|
|
1552
|
-
"gap-y": [
|
|
1552
|
+
"gap-y": [T]
|
|
1553
1553
|
}],
|
|
1554
1554
|
/**
|
|
1555
1555
|
* Justify Content
|
|
@@ -1683,63 +1683,63 @@ const q = (e) => {
|
|
|
1683
1683
|
* @see https://tailwindcss.com/docs/margin
|
|
1684
1684
|
*/
|
|
1685
1685
|
m: [{
|
|
1686
|
-
m: [
|
|
1686
|
+
m: [M]
|
|
1687
1687
|
}],
|
|
1688
1688
|
/**
|
|
1689
1689
|
* Margin X
|
|
1690
1690
|
* @see https://tailwindcss.com/docs/margin
|
|
1691
1691
|
*/
|
|
1692
1692
|
mx: [{
|
|
1693
|
-
mx: [
|
|
1693
|
+
mx: [M]
|
|
1694
1694
|
}],
|
|
1695
1695
|
/**
|
|
1696
1696
|
* Margin Y
|
|
1697
1697
|
* @see https://tailwindcss.com/docs/margin
|
|
1698
1698
|
*/
|
|
1699
1699
|
my: [{
|
|
1700
|
-
my: [
|
|
1700
|
+
my: [M]
|
|
1701
1701
|
}],
|
|
1702
1702
|
/**
|
|
1703
1703
|
* Margin Start
|
|
1704
1704
|
* @see https://tailwindcss.com/docs/margin
|
|
1705
1705
|
*/
|
|
1706
1706
|
ms: [{
|
|
1707
|
-
ms: [
|
|
1707
|
+
ms: [M]
|
|
1708
1708
|
}],
|
|
1709
1709
|
/**
|
|
1710
1710
|
* Margin End
|
|
1711
1711
|
* @see https://tailwindcss.com/docs/margin
|
|
1712
1712
|
*/
|
|
1713
1713
|
me: [{
|
|
1714
|
-
me: [
|
|
1714
|
+
me: [M]
|
|
1715
1715
|
}],
|
|
1716
1716
|
/**
|
|
1717
1717
|
* Margin Top
|
|
1718
1718
|
* @see https://tailwindcss.com/docs/margin
|
|
1719
1719
|
*/
|
|
1720
1720
|
mt: [{
|
|
1721
|
-
mt: [
|
|
1721
|
+
mt: [M]
|
|
1722
1722
|
}],
|
|
1723
1723
|
/**
|
|
1724
1724
|
* Margin Right
|
|
1725
1725
|
* @see https://tailwindcss.com/docs/margin
|
|
1726
1726
|
*/
|
|
1727
1727
|
mr: [{
|
|
1728
|
-
mr: [
|
|
1728
|
+
mr: [M]
|
|
1729
1729
|
}],
|
|
1730
1730
|
/**
|
|
1731
1731
|
* Margin Bottom
|
|
1732
1732
|
* @see https://tailwindcss.com/docs/margin
|
|
1733
1733
|
*/
|
|
1734
1734
|
mb: [{
|
|
1735
|
-
mb: [
|
|
1735
|
+
mb: [M]
|
|
1736
1736
|
}],
|
|
1737
1737
|
/**
|
|
1738
1738
|
* Margin Left
|
|
1739
1739
|
* @see https://tailwindcss.com/docs/margin
|
|
1740
1740
|
*/
|
|
1741
1741
|
ml: [{
|
|
1742
|
-
ml: [
|
|
1742
|
+
ml: [M]
|
|
1743
1743
|
}],
|
|
1744
1744
|
/**
|
|
1745
1745
|
* Space Between X
|
|
@@ -1823,7 +1823,7 @@ const q = (e) => {
|
|
|
1823
1823
|
* @see https://tailwindcss.com/docs/font-size
|
|
1824
1824
|
*/
|
|
1825
1825
|
"font-size": [{
|
|
1826
|
-
text: ["base", ze,
|
|
1826
|
+
text: ["base", ze, je]
|
|
1827
1827
|
}],
|
|
1828
1828
|
/**
|
|
1829
1829
|
* Font Smoothing
|
|
@@ -1974,7 +1974,7 @@ const q = (e) => {
|
|
|
1974
1974
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1975
1975
|
*/
|
|
1976
1976
|
"text-decoration-thickness": [{
|
|
1977
|
-
decoration: ["auto", "from-font", Ne,
|
|
1977
|
+
decoration: ["auto", "from-font", Ne, je]
|
|
1978
1978
|
}],
|
|
1979
1979
|
/**
|
|
1980
1980
|
* Text Underline Offset
|
|
@@ -2271,63 +2271,63 @@ const q = (e) => {
|
|
|
2271
2271
|
* @see https://tailwindcss.com/docs/border-width
|
|
2272
2272
|
*/
|
|
2273
2273
|
"border-w": [{
|
|
2274
|
-
border: [
|
|
2274
|
+
border: [A]
|
|
2275
2275
|
}],
|
|
2276
2276
|
/**
|
|
2277
2277
|
* Border Width X
|
|
2278
2278
|
* @see https://tailwindcss.com/docs/border-width
|
|
2279
2279
|
*/
|
|
2280
2280
|
"border-w-x": [{
|
|
2281
|
-
"border-x": [
|
|
2281
|
+
"border-x": [A]
|
|
2282
2282
|
}],
|
|
2283
2283
|
/**
|
|
2284
2284
|
* Border Width Y
|
|
2285
2285
|
* @see https://tailwindcss.com/docs/border-width
|
|
2286
2286
|
*/
|
|
2287
2287
|
"border-w-y": [{
|
|
2288
|
-
"border-y": [
|
|
2288
|
+
"border-y": [A]
|
|
2289
2289
|
}],
|
|
2290
2290
|
/**
|
|
2291
2291
|
* Border Width Start
|
|
2292
2292
|
* @see https://tailwindcss.com/docs/border-width
|
|
2293
2293
|
*/
|
|
2294
2294
|
"border-w-s": [{
|
|
2295
|
-
"border-s": [
|
|
2295
|
+
"border-s": [A]
|
|
2296
2296
|
}],
|
|
2297
2297
|
/**
|
|
2298
2298
|
* Border Width End
|
|
2299
2299
|
* @see https://tailwindcss.com/docs/border-width
|
|
2300
2300
|
*/
|
|
2301
2301
|
"border-w-e": [{
|
|
2302
|
-
"border-e": [
|
|
2302
|
+
"border-e": [A]
|
|
2303
2303
|
}],
|
|
2304
2304
|
/**
|
|
2305
2305
|
* Border Width Top
|
|
2306
2306
|
* @see https://tailwindcss.com/docs/border-width
|
|
2307
2307
|
*/
|
|
2308
2308
|
"border-w-t": [{
|
|
2309
|
-
"border-t": [
|
|
2309
|
+
"border-t": [A]
|
|
2310
2310
|
}],
|
|
2311
2311
|
/**
|
|
2312
2312
|
* Border Width Right
|
|
2313
2313
|
* @see https://tailwindcss.com/docs/border-width
|
|
2314
2314
|
*/
|
|
2315
2315
|
"border-w-r": [{
|
|
2316
|
-
"border-r": [
|
|
2316
|
+
"border-r": [A]
|
|
2317
2317
|
}],
|
|
2318
2318
|
/**
|
|
2319
2319
|
* Border Width Bottom
|
|
2320
2320
|
* @see https://tailwindcss.com/docs/border-width
|
|
2321
2321
|
*/
|
|
2322
2322
|
"border-w-b": [{
|
|
2323
|
-
"border-b": [
|
|
2323
|
+
"border-b": [A]
|
|
2324
2324
|
}],
|
|
2325
2325
|
/**
|
|
2326
2326
|
* Border Width Left
|
|
2327
2327
|
* @see https://tailwindcss.com/docs/border-width
|
|
2328
2328
|
*/
|
|
2329
2329
|
"border-w-l": [{
|
|
2330
|
-
"border-l": [
|
|
2330
|
+
"border-l": [A]
|
|
2331
2331
|
}],
|
|
2332
2332
|
/**
|
|
2333
2333
|
* Border Opacity
|
|
@@ -2348,7 +2348,7 @@ const q = (e) => {
|
|
|
2348
2348
|
* @see https://tailwindcss.com/docs/divide-width
|
|
2349
2349
|
*/
|
|
2350
2350
|
"divide-x": [{
|
|
2351
|
-
"divide-x": [
|
|
2351
|
+
"divide-x": [A]
|
|
2352
2352
|
}],
|
|
2353
2353
|
/**
|
|
2354
2354
|
* Divide Width X Reverse
|
|
@@ -2360,7 +2360,7 @@ const q = (e) => {
|
|
|
2360
2360
|
* @see https://tailwindcss.com/docs/divide-width
|
|
2361
2361
|
*/
|
|
2362
2362
|
"divide-y": [{
|
|
2363
|
-
"divide-y": [
|
|
2363
|
+
"divide-y": [A]
|
|
2364
2364
|
}],
|
|
2365
2365
|
/**
|
|
2366
2366
|
* Divide Width Y Reverse
|
|
@@ -2470,7 +2470,7 @@ const q = (e) => {
|
|
|
2470
2470
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2471
2471
|
*/
|
|
2472
2472
|
"outline-w": [{
|
|
2473
|
-
outline: [Ne,
|
|
2473
|
+
outline: [Ne, je]
|
|
2474
2474
|
}],
|
|
2475
2475
|
/**
|
|
2476
2476
|
* Outline Color
|
|
@@ -2510,7 +2510,7 @@ const q = (e) => {
|
|
|
2510
2510
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
2511
2511
|
*/
|
|
2512
2512
|
"ring-offset-w": [{
|
|
2513
|
-
"ring-offset": [Ne,
|
|
2513
|
+
"ring-offset": [Ne, je]
|
|
2514
2514
|
}],
|
|
2515
2515
|
/**
|
|
2516
2516
|
* Ring Offset Color
|
|
@@ -3105,7 +3105,7 @@ const q = (e) => {
|
|
|
3105
3105
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3106
3106
|
*/
|
|
3107
3107
|
"stroke-w": [{
|
|
3108
|
-
stroke: [Ne,
|
|
3108
|
+
stroke: [Ne, je, xt]
|
|
3109
3109
|
}],
|
|
3110
3110
|
/**
|
|
3111
3111
|
* Stroke
|
|
@@ -3785,16 +3785,16 @@ const Lt = [
|
|
|
3785
3785
|
]`
|
|
3786
3786
|
}
|
|
3787
3787
|
], Ba = () => {
|
|
3788
|
-
const e = Gt(
|
|
3788
|
+
const e = Gt(Mt);
|
|
3789
3789
|
if (!e)
|
|
3790
3790
|
throw new Error("useEvaAgent must be used within an EvaFusionAgent provider");
|
|
3791
|
-
const { client: a, config: n } = e, [i, s] = Ae([]), [c, d] = Ae(""), [
|
|
3791
|
+
const { client: a, config: n } = e, [i, s] = Ae([]), [c, d] = Ae(""), [A, f] = Ae(!1), [p, v] = Ae(n.defaultVariant || "ANALYST"), [b, T] = Ae({
|
|
3792
3792
|
vertical: "SOFTWARE_DEV",
|
|
3793
3793
|
focus: "DISCOVERY",
|
|
3794
3794
|
data: n.initialData || null
|
|
3795
3795
|
}), [o, Q] = Ae(""), w = It(() => Lt.filter(
|
|
3796
3796
|
(R) => R.vertical === b.vertical && R.variant === p
|
|
3797
|
-
), [b.vertical, p]),
|
|
3797
|
+
), [b.vertical, p]), M = ct((R) => {
|
|
3798
3798
|
const k = Lt.find((P) => P.id === R);
|
|
3799
3799
|
if (k) {
|
|
3800
3800
|
Q(R), d(k.prompt || "");
|
|
@@ -3806,13 +3806,13 @@ const Lt = [
|
|
|
3806
3806
|
} catch {
|
|
3807
3807
|
}
|
|
3808
3808
|
else P && typeof P == "object" && (P = JSON.stringify(P, null, 2));
|
|
3809
|
-
|
|
3809
|
+
T((Y) => ({
|
|
3810
3810
|
...Y,
|
|
3811
3811
|
focus: k.focus || Y.focus,
|
|
3812
3812
|
data: P
|
|
3813
3813
|
}));
|
|
3814
3814
|
} else
|
|
3815
|
-
Q(""),
|
|
3815
|
+
Q(""), T((P) => ({ ...P, data: null }));
|
|
3816
3816
|
}, []), X = ct(() => {
|
|
3817
3817
|
s([]), n.persist && localStorage.removeItem(`eva_agent_chat_${n.apiKey}`), ut.info("Neural session reset.");
|
|
3818
3818
|
}, [n.apiKey, n.persist, n]);
|
|
@@ -3830,10 +3830,10 @@ const Lt = [
|
|
|
3830
3830
|
n.persist && i.length > 0 && localStorage.setItem(`eva_agent_chat_${n.apiKey}`, JSON.stringify(i));
|
|
3831
3831
|
}, [i, n.apiKey, n.persist]);
|
|
3832
3832
|
const D = ct((R) => {
|
|
3833
|
-
|
|
3833
|
+
T((k) => ({ ...k, ...R })), R.vertical && Q("");
|
|
3834
3834
|
}, []), ee = ct(async (R) => {
|
|
3835
3835
|
const k = R || c;
|
|
3836
|
-
if (!k.trim() || !a ||
|
|
3836
|
+
if (!k.trim() || !a || A) return;
|
|
3837
3837
|
const P = {
|
|
3838
3838
|
role: "user",
|
|
3839
3839
|
content: k,
|
|
@@ -3885,12 +3885,12 @@ ${h.diagram}`)) : te = String(h);
|
|
|
3885
3885
|
} finally {
|
|
3886
3886
|
f(!1);
|
|
3887
3887
|
}
|
|
3888
|
-
}, [c, a,
|
|
3888
|
+
}, [c, a, A, p, b]);
|
|
3889
3889
|
return {
|
|
3890
3890
|
messages: i,
|
|
3891
3891
|
input: c,
|
|
3892
3892
|
setInput: d,
|
|
3893
|
-
isProcessing:
|
|
3893
|
+
isProcessing: A,
|
|
3894
3894
|
activeVariant: p,
|
|
3895
3895
|
setActiveVariant: v,
|
|
3896
3896
|
handleSend: ee,
|
|
@@ -3898,7 +3898,7 @@ ${h.diagram}`)) : te = String(h);
|
|
|
3898
3898
|
updatePayloadConfig: D,
|
|
3899
3899
|
samples: w.map((R) => ({ ...R, isDataDriven: !!R.data })),
|
|
3900
3900
|
selectedSampleId: o,
|
|
3901
|
-
applySample:
|
|
3901
|
+
applySample: M,
|
|
3902
3902
|
clearChat: X,
|
|
3903
3903
|
isAuthorized: !!a
|
|
3904
3904
|
};
|
|
@@ -3910,17 +3910,18 @@ ${h.diagram}`)) : te = String(h);
|
|
|
3910
3910
|
.mermaidTip, #dmermaid, [id^="dmermaid"], .mermaid-error { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
|
|
3911
3911
|
#mermaid-error-container { display: none !important; }
|
|
3912
3912
|
`, document.head.appendChild(d), () => {
|
|
3913
|
-
var
|
|
3914
|
-
(
|
|
3913
|
+
var A;
|
|
3914
|
+
(A = document.getElementById("eva-hide-mermaid-errors")) == null || A.remove();
|
|
3915
3915
|
};
|
|
3916
3916
|
}, []), Ie(() => {
|
|
3917
|
-
if (window.
|
|
3917
|
+
if (window.__EVA_CORE_RENDERER__) {
|
|
3918
3918
|
c(!0);
|
|
3919
3919
|
return;
|
|
3920
3920
|
}
|
|
3921
3921
|
const d = document.createElement("script");
|
|
3922
|
-
d.src = "https://cdn.jsdelivr.net/npm/mermaid@10.2.4/dist/mermaid.min.js", d.async = !0, d.onload = () => {
|
|
3923
|
-
|
|
3922
|
+
d.id = "eva-mermaid-core", d.src = "https://cdn.jsdelivr.net/npm/mermaid@10.2.4/dist/mermaid.min.js", d.async = !0, d.onload = () => {
|
|
3923
|
+
const A = window.mermaid;
|
|
3924
|
+
A && (window.__EVA_CORE_RENDERER__ = A, A.initialize({
|
|
3924
3925
|
startOnLoad: !1,
|
|
3925
3926
|
theme: "dark",
|
|
3926
3927
|
securityLevel: "loose",
|
|
@@ -3932,29 +3933,31 @@ ${h.diagram}`)) : te = String(h);
|
|
|
3932
3933
|
secondaryColor: "#0a0a20",
|
|
3933
3934
|
tertiaryColor: "#1e1e38"
|
|
3934
3935
|
}
|
|
3935
|
-
}), c(!0);
|
|
3936
|
+
}), c(!0));
|
|
3936
3937
|
}, document.body.appendChild(d);
|
|
3937
3938
|
}, []), Ie(() => {
|
|
3938
3939
|
var d;
|
|
3939
3940
|
if (s && a.current) {
|
|
3940
|
-
const
|
|
3941
|
+
const A = window.__EVA_CORE_RENDERER__;
|
|
3942
|
+
if (!A) return;
|
|
3943
|
+
const f = `mermaid-render-${Math.random().toString(36).slice(2, 11)}`;
|
|
3941
3944
|
let p = e.trim().replace(/\\n/g, `
|
|
3942
3945
|
`).replace(/^`{3}mermaid\n?/, "").replace(/\n?`{3}$/, "").trim();
|
|
3943
3946
|
const v = /(graph|flowchart|sequenceDiagram|gantt|classDiagram|stateDiagram|erDiagram|pie|journey|C4Context|mindmap|timeline)[\s\S]+/i, b = p.match(v);
|
|
3944
3947
|
b && (p = b[0].trim());
|
|
3945
|
-
let
|
|
3948
|
+
let T = p.split(`
|
|
3946
3949
|
`);
|
|
3947
|
-
if (
|
|
3948
|
-
const o =
|
|
3950
|
+
if (T.length > 0) {
|
|
3951
|
+
const o = T[0].toLowerCase();
|
|
3949
3952
|
if (o.startsWith("graph ") || o.startsWith("flowchart ")) {
|
|
3950
3953
|
const Q = ((d = o.match(/\s(td|lr|bt|rl)/i)) == null ? void 0 : d[0]) || " TD";
|
|
3951
|
-
|
|
3954
|
+
T[0] = `flowchart${Q}`, p = T.join(`
|
|
3952
3955
|
`);
|
|
3953
3956
|
}
|
|
3954
3957
|
}
|
|
3955
3958
|
p = p.replace(/;/g, "");
|
|
3956
3959
|
try {
|
|
3957
|
-
|
|
3960
|
+
A.render(f, p).then((o) => {
|
|
3958
3961
|
a.current && (a.current.innerHTML = o.svg);
|
|
3959
3962
|
}).catch((o) => {
|
|
3960
3963
|
console.error("Mermaid Render Error:", o), i("Neural Blueprint Syntax Error");
|
|
@@ -4050,29 +4053,29 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4050
4053
|
)
|
|
4051
4054
|
] });
|
|
4052
4055
|
}, Na = ({ onClose: e, onMinimize: a }) => {
|
|
4053
|
-
const n = Gt(
|
|
4056
|
+
const n = Gt(Mt), [i, s] = Ae(!1), [c, d] = Ae(!1), A = St(null);
|
|
4054
4057
|
if (!n) return null;
|
|
4055
4058
|
const {
|
|
4056
4059
|
messages: f,
|
|
4057
4060
|
input: p,
|
|
4058
4061
|
setInput: v,
|
|
4059
4062
|
isProcessing: b,
|
|
4060
|
-
activeVariant:
|
|
4063
|
+
activeVariant: T,
|
|
4061
4064
|
setActiveVariant: o,
|
|
4062
4065
|
handleSend: Q,
|
|
4063
4066
|
payloadConfig: w,
|
|
4064
|
-
updatePayloadConfig:
|
|
4067
|
+
updatePayloadConfig: M,
|
|
4065
4068
|
samples: X,
|
|
4066
4069
|
selectedSampleId: D,
|
|
4067
4070
|
applySample: ee,
|
|
4068
4071
|
clearChat: R,
|
|
4069
4072
|
isAuthorized: k
|
|
4070
|
-
} = Ba(), [P, Y] = Ae(w), [ne, W] = Ae(
|
|
4073
|
+
} = Ba(), [P, Y] = Ae(w), [ne, W] = Ae(T);
|
|
4071
4074
|
Ie(() => {
|
|
4072
|
-
i && (Y(w), W(
|
|
4075
|
+
i && (Y(w), W(T));
|
|
4073
4076
|
}, [i]);
|
|
4074
4077
|
const oe = () => {
|
|
4075
|
-
o(ne),
|
|
4078
|
+
o(ne), M(P), s(!1);
|
|
4076
4079
|
}, te = [
|
|
4077
4080
|
{ id: "SOFTWARE_DEV", name: "Software & Cloud" },
|
|
4078
4081
|
{ id: "FINANCE", name: "Finance & Quants" },
|
|
@@ -4082,15 +4085,15 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4082
4085
|
{ id: "RETAIL", name: "Retail & Commerce" }
|
|
4083
4086
|
], h = () => {
|
|
4084
4087
|
var g;
|
|
4085
|
-
(g =
|
|
4088
|
+
(g = A.current) == null || g.scrollIntoView({ behavior: "smooth" });
|
|
4086
4089
|
};
|
|
4087
4090
|
Ie(() => {
|
|
4088
4091
|
h();
|
|
4089
4092
|
}, [f, b]);
|
|
4090
4093
|
const re = (g) => g.isDataDriven ? " [DATA]" : " [PROMPT]", H = ({ msg: g }) => {
|
|
4091
4094
|
const { content: V, rawPayload: S, usage: fe } = g, C = V.split(/(?=### )/g), J = (Z) => Z.includes("```mermaid") ? Z.split(/```mermaid([\s\S]*?)```/).map((O, N) => N % 2 === 1 ? /* @__PURE__ */ r.jsx(Ct, { chart: O.trim() }, N) : /* @__PURE__ */ r.jsx("div", { children: J(O) }, N)) : Z.split(`
|
|
4092
|
-
`).map((
|
|
4093
|
-
const N =
|
|
4095
|
+
`).map((E, O) => {
|
|
4096
|
+
const N = E.trim();
|
|
4094
4097
|
if (!N) return /* @__PURE__ */ r.jsx("div", { className: "h-2" }, O);
|
|
4095
4098
|
if (N.startsWith("- ") || N.startsWith("* ") || N.match(/^\d+\. /))
|
|
4096
4099
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex gap-2 items-start mb-1.5 pl-2 group", children: [
|
|
@@ -4103,7 +4106,7 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4103
4106
|
) }, O);
|
|
4104
4107
|
});
|
|
4105
4108
|
return /* @__PURE__ */ r.jsxs("div", { className: "space-y-4", children: [
|
|
4106
|
-
C.map((Z,
|
|
4109
|
+
C.map((Z, E) => {
|
|
4107
4110
|
if (Z.startsWith("### ")) {
|
|
4108
4111
|
const O = Z.split(`
|
|
4109
4112
|
`), N = O[0].replace("### ", ""), K = O.slice(1).join(`
|
|
@@ -4125,9 +4128,9 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4125
4128
|
"font-sans",
|
|
4126
4129
|
_ ? "font-mono text-[10px] text-amber-500/70" : ""
|
|
4127
4130
|
), children: L ? /* @__PURE__ */ r.jsx(Ct, { chart: K.trim() }) : J(K) })
|
|
4128
|
-
] },
|
|
4131
|
+
] }, E);
|
|
4129
4132
|
}
|
|
4130
|
-
return /* @__PURE__ */ r.jsx("div", { children: J(Z) },
|
|
4133
|
+
return /* @__PURE__ */ r.jsx("div", { children: J(Z) }, E);
|
|
4131
4134
|
}),
|
|
4132
4135
|
S && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4133
4136
|
S.tasks && /* @__PURE__ */ r.jsx(Da, { tasks: S.tasks, team: S.team }),
|
|
@@ -4213,7 +4216,7 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4213
4216
|
{
|
|
4214
4217
|
onClick: e,
|
|
4215
4218
|
className: "p-2 rounded-lg text-rose-400 hover:text-rose-300 hover:bg-rose-500/10 transition-all",
|
|
4216
|
-
children: /* @__PURE__ */ r.jsx(
|
|
4219
|
+
children: /* @__PURE__ */ r.jsx(Et, { size: 16 })
|
|
4217
4220
|
}
|
|
4218
4221
|
)
|
|
4219
4222
|
] })
|
|
@@ -4224,11 +4227,11 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4224
4227
|
onClick: () => o(g),
|
|
4225
4228
|
className: he(
|
|
4226
4229
|
"px-3 py-1 rounded-full text-[8px] font-black uppercase tracking-widest transition-all whitespace-nowrap border",
|
|
4227
|
-
|
|
4230
|
+
T === g ? "shadow-[0_0_15px_rgba(212,175,55,0.3)] border-amber-500" : "text-slate-400 border-white/5 hover:border-white/20 hover:text-white"
|
|
4228
4231
|
),
|
|
4229
4232
|
style: {
|
|
4230
|
-
backgroundColor:
|
|
4231
|
-
color:
|
|
4233
|
+
backgroundColor: T === g ? "#d4af37" : "transparent",
|
|
4234
|
+
color: T === g ? "black" : void 0
|
|
4232
4235
|
},
|
|
4233
4236
|
children: g
|
|
4234
4237
|
},
|
|
@@ -4314,7 +4317,7 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4314
4317
|
] })
|
|
4315
4318
|
] })
|
|
4316
4319
|
] }),
|
|
4317
|
-
/* @__PURE__ */ r.jsx("div", { ref:
|
|
4320
|
+
/* @__PURE__ */ r.jsx("div", { ref: A })
|
|
4318
4321
|
] }) : /* @__PURE__ */ r.jsxs("div", { className: "h-full flex flex-col items-center justify-center text-center p-8 space-y-4", children: [
|
|
4319
4322
|
/* @__PURE__ */ r.jsx(cr, { size: 48, className: "text-rose-500/40 mb-2" }),
|
|
4320
4323
|
/* @__PURE__ */ r.jsx("h4", { className: "text-sm font-black text-white uppercase tracking-widest", children: "Neural Link Restricted" }),
|
|
@@ -4333,7 +4336,7 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4333
4336
|
/* @__PURE__ */ r.jsx(dr, { size: 14, className: "text-amber-500" }),
|
|
4334
4337
|
"Neural Configuration"
|
|
4335
4338
|
] }),
|
|
4336
|
-
/* @__PURE__ */ r.jsx("button", { onClick: () => s(!1), className: "text-slate-400 hover:text-white", children: /* @__PURE__ */ r.jsx(
|
|
4339
|
+
/* @__PURE__ */ r.jsx("button", { onClick: () => s(!1), className: "text-slate-400 hover:text-white", children: /* @__PURE__ */ r.jsx(Et, { size: 16 }) })
|
|
4337
4340
|
] }),
|
|
4338
4341
|
/* @__PURE__ */ r.jsxs("div", { className: "flex-1 p-6 space-y-6 overflow-y-auto eva-agent-scrollbar", children: [
|
|
4339
4342
|
/* @__PURE__ */ r.jsxs("div", { className: "space-y-2", children: [
|
|
@@ -4492,7 +4495,7 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4492
4495
|
}
|
|
4493
4496
|
)
|
|
4494
4497
|
] });
|
|
4495
|
-
},
|
|
4498
|
+
}, Ta = {
|
|
4496
4499
|
PROD: "https://evafusion-live.esteviatech.com",
|
|
4497
4500
|
DEV: "https://api-dev.protrack.esteviatech.com",
|
|
4498
4501
|
QA: "https://api-qa.protrack.esteviatech.com",
|
|
@@ -4504,19 +4507,19 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4504
4507
|
environment: i = "PROD",
|
|
4505
4508
|
persist: s = !0,
|
|
4506
4509
|
theme: c = "dark"
|
|
4507
|
-
} = e, [d,
|
|
4510
|
+
} = e, [d, A] = Ae(!1), [f, p] = Ae(!1), v = It(() => {
|
|
4508
4511
|
if (!a) return null;
|
|
4509
|
-
const b = n ||
|
|
4512
|
+
const b = n || Ta[i];
|
|
4510
4513
|
return new rr({
|
|
4511
4514
|
apiKey: a,
|
|
4512
4515
|
baseUrl: b,
|
|
4513
4516
|
environment: i
|
|
4514
4517
|
});
|
|
4515
4518
|
}, [a, n, i]);
|
|
4516
|
-
return /* @__PURE__ */ r.jsx(
|
|
4519
|
+
return /* @__PURE__ */ r.jsx(Mt.Provider, { value: {
|
|
4517
4520
|
client: v,
|
|
4518
4521
|
isOpen: d,
|
|
4519
|
-
setIsOpen:
|
|
4522
|
+
setIsOpen: A,
|
|
4520
4523
|
isMinimized: f,
|
|
4521
4524
|
setIsMinimized: p,
|
|
4522
4525
|
config: e
|
|
@@ -4526,14 +4529,14 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4526
4529
|
Vr,
|
|
4527
4530
|
{
|
|
4528
4531
|
onClick: () => {
|
|
4529
|
-
|
|
4532
|
+
A(!0), p(!1);
|
|
4530
4533
|
}
|
|
4531
4534
|
}
|
|
4532
4535
|
) }),
|
|
4533
4536
|
/* @__PURE__ */ r.jsx(Dt, { children: d && !f && /* @__PURE__ */ r.jsx(
|
|
4534
4537
|
Na,
|
|
4535
4538
|
{
|
|
4536
|
-
onClose: () =>
|
|
4539
|
+
onClose: () => A(!1),
|
|
4537
4540
|
onMinimize: () => p(!0)
|
|
4538
4541
|
}
|
|
4539
4542
|
) })
|