@estevia/evafusion-agent 1.7.1 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +19 -17
- package/dist/index.mjs +426 -410
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -19,11 +19,11 @@ function gr() {
|
|
|
19
19
|
jt = 1;
|
|
20
20
|
var e = f, a = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, A = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
21
|
function u(s, d, p) {
|
|
22
|
-
var
|
|
23
|
-
p !== void 0 && (
|
|
24
|
-
for (
|
|
25
|
-
if (s && s.defaultProps) for (
|
|
26
|
-
return { $$typeof: a, type: s, key:
|
|
22
|
+
var h, w = {}, T = null, o = null;
|
|
23
|
+
p !== void 0 && (T = "" + p), d.key !== void 0 && (T = "" + d.key), d.ref !== void 0 && (o = d.ref);
|
|
24
|
+
for (h in d) i.call(d, h) && !c.hasOwnProperty(h) && (w[h] = d[h]);
|
|
25
|
+
if (s && s.defaultProps) for (h in d = s.defaultProps, d) w[h] === void 0 && (w[h] = d[h]);
|
|
26
|
+
return { $$typeof: a, type: s, key: T, ref: o, props: w, _owner: A.current };
|
|
27
27
|
}
|
|
28
28
|
return $e.Fragment = n, $e.jsx = u, $e.jsxs = u, $e;
|
|
29
29
|
}
|
|
@@ -40,35 +40,35 @@ 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 = f, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), s = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"),
|
|
44
|
-
function
|
|
43
|
+
var e = f, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), s = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), o = Symbol.for("react.offscreen"), S = Symbol.iterator, v = "@@iterator";
|
|
44
|
+
function P(t) {
|
|
45
45
|
if (t === null || typeof t != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var l =
|
|
47
|
+
var l = S && t[S] || t[v];
|
|
48
48
|
return typeof l == "function" ? l : null;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
51
|
-
function
|
|
50
|
+
var z = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function B(t) {
|
|
52
52
|
{
|
|
53
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
|
+
K("error", t, m);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function K(t, l, m) {
|
|
59
59
|
{
|
|
60
|
-
var x =
|
|
60
|
+
var x = z.ReactDebugCurrentFrame, I = x.getStackAddendum();
|
|
61
61
|
I !== "" && (l += "%s", m = m.concat([I]));
|
|
62
|
-
var F = m.map(function(
|
|
63
|
-
return String(
|
|
62
|
+
var F = m.map(function(R) {
|
|
63
|
+
return String(R);
|
|
64
64
|
});
|
|
65
65
|
F.unshift("Warning: " + l), Function.prototype.apply.call(console[t], console, F);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var
|
|
68
|
+
var X = !1, k = !1, N = !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 === A || t === p || t ===
|
|
71
|
+
return !!(typeof t == "string" || typeof t == "function" || t === i || t === c || ne || t === A || t === p || t === h || Y || t === o || X || k || N || typeof t == "object" && t !== null && (t.$$typeof === T || t.$$typeof === w || t.$$typeof === u || t.$$typeof === s || t.$$typeof === d || // 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.
|
|
@@ -81,13 +81,13 @@ function mr() {
|
|
|
81
81
|
var I = l.displayName || l.name || "";
|
|
82
82
|
return I !== "" ? m + "(" + I + ")" : m;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function b(t) {
|
|
85
85
|
return t.displayName || "Context";
|
|
86
86
|
}
|
|
87
87
|
function re(t) {
|
|
88
88
|
if (t == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof t.tag == "number" &&
|
|
90
|
+
if (typeof t.tag == "number" && B("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
91
91
|
return t.displayName || t.name || null;
|
|
92
92
|
if (typeof t == "string")
|
|
93
93
|
return t;
|
|
@@ -102,26 +102,26 @@ function mr() {
|
|
|
102
102
|
return "StrictMode";
|
|
103
103
|
case p:
|
|
104
104
|
return "Suspense";
|
|
105
|
-
case
|
|
105
|
+
case h:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
108
|
if (typeof t == "object")
|
|
109
109
|
switch (t.$$typeof) {
|
|
110
110
|
case s:
|
|
111
111
|
var l = t;
|
|
112
|
-
return
|
|
112
|
+
return b(l) + ".Consumer";
|
|
113
113
|
case u:
|
|
114
114
|
var m = t;
|
|
115
|
-
return
|
|
115
|
+
return b(m._context) + ".Provider";
|
|
116
116
|
case d:
|
|
117
117
|
return te(t, t.render, "ForwardRef");
|
|
118
|
-
case
|
|
118
|
+
case w:
|
|
119
119
|
var x = t.displayName || null;
|
|
120
120
|
return x !== null ? x : re(t.type) || "Memo";
|
|
121
|
-
case
|
|
122
|
-
var I = t, F = I._payload,
|
|
121
|
+
case T: {
|
|
122
|
+
var I = t, F = I._payload, R = I._init;
|
|
123
123
|
try {
|
|
124
|
-
return re(
|
|
124
|
+
return re(R(F));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,14 +129,14 @@ function mr() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var H = Object.assign, g = 0, V,
|
|
132
|
+
var H = Object.assign, g = 0, V, Q, fe, C, J, Z, E;
|
|
133
133
|
function O() {
|
|
134
134
|
}
|
|
135
135
|
O.__reactDisabledLog = !0;
|
|
136
|
-
function
|
|
136
|
+
function M() {
|
|
137
137
|
{
|
|
138
138
|
if (g === 0) {
|
|
139
|
-
V = console.log,
|
|
139
|
+
V = console.log, Q = 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,
|
|
@@ -156,7 +156,7 @@ function mr() {
|
|
|
156
156
|
g++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function _() {
|
|
160
160
|
{
|
|
161
161
|
if (g--, g === 0) {
|
|
162
162
|
var t = {
|
|
@@ -169,7 +169,7 @@ function mr() {
|
|
|
169
169
|
value: V
|
|
170
170
|
}),
|
|
171
171
|
info: H({}, t, {
|
|
172
|
-
value:
|
|
172
|
+
value: Q
|
|
173
173
|
}),
|
|
174
174
|
warn: H({}, t, {
|
|
175
175
|
value: fe
|
|
@@ -188,10 +188,10 @@ function mr() {
|
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
g < 0 &&
|
|
191
|
+
g < 0 && B("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var
|
|
194
|
+
var $ = z.ReactCurrentDispatcher, L;
|
|
195
195
|
function Me(t, l, m) {
|
|
196
196
|
{
|
|
197
197
|
if (L === void 0)
|
|
@@ -223,30 +223,30 @@ function mr() {
|
|
|
223
223
|
var I = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var F;
|
|
226
|
-
F =
|
|
226
|
+
F = $.current, $.current = null, M();
|
|
227
227
|
try {
|
|
228
228
|
if (l) {
|
|
229
|
-
var
|
|
229
|
+
var R = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
232
|
-
if (Object.defineProperty(
|
|
232
|
+
if (Object.defineProperty(R.prototype, "props", {
|
|
233
233
|
set: function() {
|
|
234
234
|
throw Error();
|
|
235
235
|
}
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
237
|
try {
|
|
238
|
-
Reflect.construct(
|
|
238
|
+
Reflect.construct(R, []);
|
|
239
239
|
} catch (de) {
|
|
240
240
|
x = de;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(t, [],
|
|
242
|
+
Reflect.construct(t, [], R);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
|
-
|
|
245
|
+
R.call();
|
|
246
246
|
} catch (de) {
|
|
247
247
|
x = de;
|
|
248
248
|
}
|
|
249
|
-
t.call(
|
|
249
|
+
t.call(R.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
@@ -260,23 +260,23 @@ function mr() {
|
|
|
260
260
|
if (de && x && typeof de.stack == "string") {
|
|
261
261
|
for (var j = de.stack.split(`
|
|
262
262
|
`), se = x.stack.split(`
|
|
263
|
-
`),
|
|
263
|
+
`), ee = j.length - 1, ae = se.length - 1; ee >= 1 && ae >= 0 && j[ee] !== se[ae]; )
|
|
264
264
|
ae--;
|
|
265
|
-
for (;
|
|
266
|
-
if (j[
|
|
267
|
-
if (
|
|
265
|
+
for (; ee >= 1 && ae >= 0; ee--, ae--)
|
|
266
|
+
if (j[ee] !== se[ae]) {
|
|
267
|
+
if (ee !== 1 || ae !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (
|
|
269
|
+
if (ee--, ae--, ae < 0 || j[ee] !== se[ae]) {
|
|
270
270
|
var ge = `
|
|
271
|
-
` + j[
|
|
271
|
+
` + j[ee].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
|
-
while (
|
|
274
|
+
while (ee >= 1 && ae >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
xe = !1,
|
|
279
|
+
xe = !1, $.current = F, _(), Error.prepareStackTrace = I;
|
|
280
280
|
}
|
|
281
281
|
var Fe = t ? t.displayName || t.name : "", Le = Fe ? Me(Fe) : "";
|
|
282
282
|
return typeof t == "function" && Ce.set(t, Le), Le;
|
|
@@ -298,16 +298,16 @@ function mr() {
|
|
|
298
298
|
switch (t) {
|
|
299
299
|
case p:
|
|
300
300
|
return Me("Suspense");
|
|
301
|
-
case
|
|
301
|
+
case h:
|
|
302
302
|
return Me("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof t == "object")
|
|
305
305
|
switch (t.$$typeof) {
|
|
306
306
|
case d:
|
|
307
307
|
return at(t.render);
|
|
308
|
-
case
|
|
308
|
+
case w:
|
|
309
309
|
return Qe(t.type, l, m);
|
|
310
|
-
case
|
|
310
|
+
case T: {
|
|
311
311
|
var x = t, I = x._payload, F = x._init;
|
|
312
312
|
try {
|
|
313
313
|
return Qe(F(I), l, m);
|
|
@@ -317,7 +317,7 @@ function mr() {
|
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var Te = Object.prototype.hasOwnProperty, nt = {}, Ye =
|
|
320
|
+
var Te = Object.prototype.hasOwnProperty, nt = {}, Ye = z.ReactDebugCurrentFrame;
|
|
321
321
|
function Ve(t) {
|
|
322
322
|
if (t) {
|
|
323
323
|
var l = t._owner, m = Qe(t.type, t._source, l ? l.type : null);
|
|
@@ -328,19 +328,19 @@ function mr() {
|
|
|
328
328
|
function ot(t, l, m, x, I) {
|
|
329
329
|
{
|
|
330
330
|
var F = Function.call.bind(Te);
|
|
331
|
-
for (var
|
|
332
|
-
if (F(t,
|
|
331
|
+
for (var R in t)
|
|
332
|
+
if (F(t, R)) {
|
|
333
333
|
var j = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof t[
|
|
336
|
-
var se = Error((x || "React class") + ": " + m + " type `" +
|
|
335
|
+
if (typeof t[R] != "function") {
|
|
336
|
+
var se = Error((x || "React class") + ": " + m + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[R] + "`.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
|
-
j = t[
|
|
340
|
-
} catch (
|
|
341
|
-
j =
|
|
339
|
+
j = t[R](l, R, x, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
+
} catch (ee) {
|
|
341
|
+
j = ee;
|
|
342
342
|
}
|
|
343
|
-
j && !(j instanceof Error) && (Ve(I),
|
|
343
|
+
j && !(j instanceof Error) && (Ve(I), B("%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, R, typeof j), Ve(null)), j instanceof Error && !(j.message in nt) && (nt[j.message] = !0, Ve(I), B("Failed %s type: %s", m, j.message), Ve(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -366,9 +366,9 @@ function mr() {
|
|
|
366
366
|
}
|
|
367
367
|
function ie(t) {
|
|
368
368
|
if (pt(t))
|
|
369
|
-
return
|
|
369
|
+
return B("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(t)), it(t);
|
|
370
370
|
}
|
|
371
|
-
var Pe =
|
|
371
|
+
var Pe = z.ReactCurrentOwner, gt = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
@@ -396,7 +396,7 @@ function mr() {
|
|
|
396
396
|
function Oe(t, l) {
|
|
397
397
|
{
|
|
398
398
|
var m = function() {
|
|
399
|
-
st || (st = !0,
|
|
399
|
+
st || (st = !0, B("%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,
|
|
@@ -407,7 +407,7 @@ function mr() {
|
|
|
407
407
|
function lt(t, l) {
|
|
408
408
|
{
|
|
409
409
|
var m = function() {
|
|
410
|
-
ke || (ke = !0,
|
|
410
|
+
ke || (ke = !0, B("%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,7 +415,7 @@ function mr() {
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var Ee = function(t, l, m, x, I, F,
|
|
418
|
+
var Ee = function(t, l, m, x, I, F, R) {
|
|
419
419
|
var j = {
|
|
420
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
421
|
$$typeof: a,
|
|
@@ -423,7 +423,7 @@ function mr() {
|
|
|
423
423
|
type: t,
|
|
424
424
|
key: l,
|
|
425
425
|
ref: m,
|
|
426
|
-
props:
|
|
426
|
+
props: R,
|
|
427
427
|
// Record the component responsible for creating this element.
|
|
428
428
|
_owner: F
|
|
429
429
|
};
|
|
@@ -446,23 +446,23 @@ function mr() {
|
|
|
446
446
|
};
|
|
447
447
|
function vt(t, l, m, x, I) {
|
|
448
448
|
{
|
|
449
|
-
var F,
|
|
449
|
+
var F, R = {}, j = null, se = null;
|
|
450
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
451
|
for (F in l)
|
|
452
|
-
Te.call(l, F) && !gt.hasOwnProperty(F) && (
|
|
452
|
+
Te.call(l, F) && !gt.hasOwnProperty(F) && (R[F] = l[F]);
|
|
453
453
|
if (t && t.defaultProps) {
|
|
454
|
-
var
|
|
455
|
-
for (F in
|
|
456
|
-
|
|
454
|
+
var ee = t.defaultProps;
|
|
455
|
+
for (F in ee)
|
|
456
|
+
R[F] === void 0 && (R[F] = ee[F]);
|
|
457
457
|
}
|
|
458
458
|
if (j || se) {
|
|
459
459
|
var ae = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
460
|
-
j && Oe(
|
|
460
|
+
j && Oe(R, ae), se && lt(R, ae);
|
|
461
461
|
}
|
|
462
|
-
return Ee(t, j, se, I, x, Pe.current,
|
|
462
|
+
return Ee(t, j, se, I, x, Pe.current, R);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
var Je =
|
|
465
|
+
var Je = z.ReactCurrentOwner, Ke = z.ReactDebugCurrentFrame;
|
|
466
466
|
function De(t) {
|
|
467
467
|
if (t) {
|
|
468
468
|
var l = t._owner, m = Qe(t.type, t._source, l ? l.type : null);
|
|
@@ -513,7 +513,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
513
513
|
return;
|
|
514
514
|
y[m] = !0;
|
|
515
515
|
var x = "";
|
|
516
|
-
t && t._owner && t._owner !== Je.current && (x = " It was passed a child from " + re(t._owner.type) + "."), De(t),
|
|
516
|
+
t && t._owner && t._owner !== Je.current && (x = " It was passed a child from " + re(t._owner.type) + "."), De(t), B('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), De(null);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
function le(t, l) {
|
|
@@ -528,10 +528,10 @@ Check the top-level render call using <` + m + ">.");
|
|
|
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 = P(t);
|
|
532
532
|
if (typeof I == "function" && I !== t.entries)
|
|
533
|
-
for (var F = I.call(t),
|
|
534
|
-
He(
|
|
533
|
+
for (var F = I.call(t), R; !(R = F.next()).done; )
|
|
534
|
+
He(R.value) && U(R.value, l);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
}
|
|
@@ -545,7 +545,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
545
545
|
m = l.propTypes;
|
|
546
546
|
else if (typeof l == "object" && (l.$$typeof === d || // Note: Memo only checks outer props here.
|
|
547
547
|
// Inner props are checked in the reconciler.
|
|
548
|
-
l.$$typeof ===
|
|
548
|
+
l.$$typeof === w))
|
|
549
549
|
m = l.propTypes;
|
|
550
550
|
else
|
|
551
551
|
return;
|
|
@@ -555,9 +555,9 @@ Check the top-level render call using <` + m + ">.");
|
|
|
555
555
|
} else if (l.PropTypes !== void 0 && !_e) {
|
|
556
556
|
_e = !0;
|
|
557
557
|
var I = re(l);
|
|
558
|
-
|
|
558
|
+
B("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
|
|
559
559
|
}
|
|
560
|
-
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved &&
|
|
560
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && B("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) {
|
|
@@ -565,29 +565,29 @@ Check the top-level render call using <` + m + ">.");
|
|
|
565
565
|
for (var l = Object.keys(t.props), m = 0; m < l.length; m++) {
|
|
566
566
|
var x = l[m];
|
|
567
567
|
if (x !== "children" && x !== "key") {
|
|
568
|
-
De(t),
|
|
568
|
+
De(t), B("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), De(null);
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
t.ref !== null && (De(t),
|
|
572
|
+
t.ref !== null && (De(t), B("Invalid attribute `ref` supplied to `React.Fragment`."), De(null));
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
var we = {};
|
|
576
576
|
function ce(t, l, m, x, I, F) {
|
|
577
577
|
{
|
|
578
|
-
var
|
|
579
|
-
if (!
|
|
578
|
+
var R = oe(t);
|
|
579
|
+
if (!R) {
|
|
580
580
|
var j = "";
|
|
581
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
583
|
se ? j += se : j += me();
|
|
584
|
-
var
|
|
585
|
-
t === null ?
|
|
584
|
+
var ee;
|
|
585
|
+
t === null ? ee = "null" : Ue(t) ? ee = "array" : t !== void 0 && t.$$typeof === a ? (ee = "<" + (re(t.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : ee = typeof t, B("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ee, j);
|
|
586
586
|
}
|
|
587
587
|
var ae = vt(t, l, m, I, F);
|
|
588
588
|
if (ae == null)
|
|
589
589
|
return ae;
|
|
590
|
-
if (
|
|
590
|
+
if (R) {
|
|
591
591
|
var ge = l.children;
|
|
592
592
|
if (ge !== void 0)
|
|
593
593
|
if (x)
|
|
@@ -596,7 +596,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
596
596
|
le(ge[Fe], t);
|
|
597
597
|
Object.freeze && Object.freeze(ge);
|
|
598
598
|
} else
|
|
599
|
-
|
|
599
|
+
B("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
600
|
else
|
|
601
601
|
le(ge, t);
|
|
602
602
|
}
|
|
@@ -606,7 +606,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
606
606
|
}), bt = de.length > 0 ? "{key: someKey, " + de.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
607
|
if (!we[Le + bt]) {
|
|
608
608
|
var _t = de.length > 0 ? "{" + de.join(": ..., ") + ": ...}" : "{}";
|
|
609
|
-
|
|
609
|
+
B(`A props object containing a "key" prop is being spread into JSX:
|
|
610
610
|
let props = %s;
|
|
611
611
|
<%s {...props} />
|
|
612
612
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -672,18 +672,18 @@ var r = Dt.exports, vr = (e) => {
|
|
|
672
672
|
if (c = ["resolve", d], f.isValidElement(d)) A = !1, this.create({ id: n, type: "default", message: d });
|
|
673
673
|
else if (Mr(d) && !d.ok) {
|
|
674
674
|
A = !1;
|
|
675
|
-
let p = typeof a.error == "function" ? await a.error(`HTTP error! status: ${d.status}`) : a.error,
|
|
676
|
-
this.create({ id: n, type: "error", message: p, description:
|
|
675
|
+
let p = typeof a.error == "function" ? await a.error(`HTTP error! status: ${d.status}`) : a.error, h = typeof a.description == "function" ? await a.description(`HTTP error! status: ${d.status}`) : a.description;
|
|
676
|
+
this.create({ id: n, type: "error", message: p, description: h });
|
|
677
677
|
} else if (a.success !== void 0) {
|
|
678
678
|
A = !1;
|
|
679
|
-
let p = typeof a.success == "function" ? await a.success(d) : a.success,
|
|
680
|
-
this.create({ id: n, type: "success", message: p, description:
|
|
679
|
+
let p = typeof a.success == "function" ? await a.success(d) : a.success, h = typeof a.description == "function" ? await a.description(d) : a.description;
|
|
680
|
+
this.create({ id: n, type: "success", message: p, description: h });
|
|
681
681
|
}
|
|
682
682
|
}).catch(async (d) => {
|
|
683
683
|
if (c = ["reject", d], a.error !== void 0) {
|
|
684
684
|
A = !1;
|
|
685
|
-
let p = typeof a.error == "function" ? await a.error(d) : a.error,
|
|
686
|
-
this.create({ id: n, type: "error", message: p, description:
|
|
685
|
+
let p = typeof a.error == "function" ? await a.error(d) : a.error, h = typeof a.description == "function" ? await a.description(d) : a.description;
|
|
686
|
+
this.create({ id: n, type: "error", message: p, description: h });
|
|
687
687
|
}
|
|
688
688
|
}).finally(() => {
|
|
689
689
|
var d;
|
|
@@ -718,11 +718,11 @@ 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, A, c, u, s, d, p,
|
|
722
|
-
let { invert:
|
|
721
|
+
var a, n, i, A, c, u, s, d, p, h, w;
|
|
722
|
+
let { invert: T, toast: o, unstyled: S, interacting: v, setHeights: P, visibleToasts: z, heights: B, index: K, toasts: X, expanded: k, removeToast: N, defaultRichColors: Y, closeButton: ne, style: W, cancelButtonStyle: oe, actionButtonStyle: te, className: b = "", descriptionClassName: re = "", duration: H, position: g, gap: V, loadingIcon: Q, expandByDefault: fe, classNames: C, icons: J, closeButtonAriaLabel: Z = "Close toast", pauseWhenPageIsHidden: E } = e, [O, M] = f.useState(null), [_, $] = f.useState(null), [L, Me] = f.useState(!1), [xe, Ce] = f.useState(!1), [Re, Se] = f.useState(!1), [at, ft] = f.useState(!1), [Qe, Te] = f.useState(!1), [nt, Ye] = f.useState(0), [Ve, ot] = f.useState(0), Xe = f.useRef(o.duration || H || Rt), Ue = f.useRef(null), Be = f.useRef(null), pt = K === 0, it = K + 1 <= z, ie = o.type, Pe = o.dismissible !== !1, gt = o.className || "", st = o.descriptionClassName || "", ke = f.useMemo(() => B.findIndex((y) => y.toastId === o.id) || 0, [B, o.id]), mt = f.useMemo(() => {
|
|
723
723
|
var y;
|
|
724
724
|
return (y = o.closeButton) != null ? y : ne;
|
|
725
|
-
}, [o.closeButton, ne]), At = f.useMemo(() => o.duration || H || Rt, [o.duration, H]), Ze = f.useRef(0), Oe = f.useRef(0), lt = f.useRef(0), Ee = f.useRef(null), [vt, Je] = g.split("-"), Ke = f.useMemo(() =>
|
|
725
|
+
}, [o.closeButton, ne]), At = f.useMemo(() => o.duration || H || Rt, [o.duration, H]), Ze = f.useRef(0), Oe = f.useRef(0), lt = f.useRef(0), Ee = f.useRef(null), [vt, Je] = g.split("-"), Ke = f.useMemo(() => B.reduce((y, G, U) => U >= ke ? y : y + G.height, 0), [B, ke]), De = Pr(), _e = o.invert || T, He = ie === "loading";
|
|
726
726
|
Oe.current = f.useMemo(() => ke * V + Ke, [ke, Ke]), f.useEffect(() => {
|
|
727
727
|
Xe.current = At;
|
|
728
728
|
}, [At]), f.useEffect(() => {
|
|
@@ -731,24 +731,24 @@ var Sr = (e) => {
|
|
|
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), P((U) => [{ toastId: o.id, height: G, position: o.position }, ...U]), () => P((U) => U.filter((le) => le.toastId !== o.id));
|
|
735
735
|
}
|
|
736
|
-
}, [
|
|
736
|
+
}, [P, o.id]), f.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), P((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, P, o.id]);
|
|
743
743
|
let me = f.useCallback(() => {
|
|
744
|
-
Ce(!0), Ye(Oe.current),
|
|
745
|
-
|
|
744
|
+
Ce(!0), Ye(Oe.current), P((y) => y.filter((G) => G.toastId !== o.id)), setTimeout(() => {
|
|
745
|
+
N(o);
|
|
746
746
|
}, Gr);
|
|
747
|
-
}, [o,
|
|
747
|
+
}, [o, N, P, Oe]);
|
|
748
748
|
f.useEffect(() => {
|
|
749
749
|
if (o.promise && ie === "loading" || o.duration === 1 / 0 || o.type === "loading") return;
|
|
750
750
|
let y;
|
|
751
|
-
return k ||
|
|
751
|
+
return k || v || E && De ? (() => {
|
|
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,15 +758,15 @@ 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,
|
|
761
|
+
}, [k, v, o, ie, E, De, me]), f.useEffect(() => {
|
|
762
762
|
o.delete && me();
|
|
763
763
|
}, [me, o.delete]);
|
|
764
764
|
function ht() {
|
|
765
765
|
var y, G, U;
|
|
766
|
-
return J != null && J.loading ? f.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) :
|
|
766
|
+
return J != null && J.loading ? f.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) : Q ? f.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" }, Q) : f.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
|
-
return f.createElement("li", { tabIndex: 0, ref: Be, className: ve(
|
|
769
|
-
Se(!1),
|
|
768
|
+
return f.createElement("li", { tabIndex: 0, ref: Be, className: ve(b, 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 || S), "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": K, "data-front": pt, "data-swiping": Re, "data-dismissible": Pe, "data-type": ie, "data-invert": _e, "data-swipe-out": at, "data-swipe-direction": _, "data-expanded": !!(k || fe && L), style: { "--index": K, "--toasts-before": K, "--z-index": X.length - K, "--offset": `${xe ? nt : Oe.current}px`, "--initial-height": fe ? "auto" : `${Ve}px`, ...W, ...o.style }, onDragEnd: () => {
|
|
769
|
+
Se(!1), M(null), Ee.current = null;
|
|
770
770
|
}, onPointerDown: (y) => {
|
|
771
771
|
He || !Pe || (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: () => {
|
|
@@ -775,15 +775,15 @@ var Sr = (e) => {
|
|
|
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),
|
|
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), Te(!1);
|
|
779
779
|
return;
|
|
780
780
|
}
|
|
781
|
-
Se(!1),
|
|
781
|
+
Se(!1), M(null);
|
|
782
782
|
}, onPointerMove: (y) => {
|
|
783
783
|
var G, U, le, pe;
|
|
784
784
|
if (!Ee.current || !Pe || ((G = window.getSelection()) == null ? void 0 : G.toString().length) > 0) return;
|
|
785
785
|
let be = y.clientY - Ee.current.y, we = y.clientX - Ee.current.x, ce = (U = e.swipeDirections) != null ? U : Ir(g);
|
|
786
|
-
!O && (Math.abs(we) > 1 || Math.abs(be) > 1) &&
|
|
786
|
+
!O && (Math.abs(we) > 1 || Math.abs(be) > 1) && M(Math.abs(we) > Math.abs(be) ? "x" : "y");
|
|
787
787
|
let ye = { x: 0, y: 0 };
|
|
788
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) && Te(!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 ? f.createElement("button", { "aria-label": Z, "data-disabled": He, "data-close-button": !0, onClick: He || !Pe ? () => {
|
|
@@ -793,10 +793,10 @@ var Sr = (e) => {
|
|
|
793
793
|
}, className: ve(C == null ? void 0 : C.closeButton, (A = o == null ? void 0 : o.classNames) == null ? void 0 : A.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 : f.createElement(f.Fragment, null, ie || o.icon || o.promise ? f.createElement("div", { "data-icon": "", className: ve(C == null ? void 0 : C.icon, (u = o == null ? void 0 : o.classNames) == null ? void 0 : u.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, f.createElement("div", { "data-content": "", className: ve(C == null ? void 0 : C.content, (s = o == null ? void 0 : o.classNames) == null ? void 0 : s.content) }, f.createElement("div", { "data-title": "", className: ve(C == null ? void 0 : C.title, (d = o == null ? void 0 : o.classNames) == null ? void 0 : d.title) }, typeof o.title == "function" ? o.title() : o.title), o.description ? f.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) ? f.createElement("button", { "data-button": !0, "data-cancel": !0, style: o.cancelButtonStyle || oe, onClick: (y) => {
|
|
794
794
|
var G, U;
|
|
795
795
|
dt(o.cancel) && Pe && ((U = (G = o.cancel).onClick) == null || U.call(G, y), me());
|
|
796
|
-
}, className: ve(C == null ? void 0 : C.cancelButton, (
|
|
796
|
+
}, className: ve(C == null ? void 0 : C.cancelButton, (h = o == null ? void 0 : o.classNames) == null ? void 0 : h.cancelButton) }, o.cancel.label) : null, wt(o.action) ? o.action : o.action && dt(o.action) ? f.createElement("button", { "data-button": !0, "data-action": !0, style: o.actionButtonStyle || te, onClick: (y) => {
|
|
797
797
|
var G, U;
|
|
798
798
|
dt(o.action) && ((U = (G = o.action).onClick) == null || U.call(G, y), !y.defaultPrevented && me());
|
|
799
|
-
}, className: ve(C == null ? void 0 : C.actionButton, (
|
|
799
|
+
}, className: ve(C == null ? void 0 : C.actionButton, (w = o == null ? void 0 : o.classNames) == null ? void 0 : w.actionButton) }, o.action.label) : null));
|
|
800
800
|
};
|
|
801
801
|
function Xt() {
|
|
802
802
|
if (typeof window > "u" || typeof document > "u") return "ltr";
|
|
@@ -808,8 +808,8 @@ function Qr(e, a) {
|
|
|
808
808
|
return [e, a].forEach((i, A) => {
|
|
809
809
|
let c = A === 1, u = c ? "--mobile-offset" : "--offset", s = c ? Xr : Rr;
|
|
810
810
|
function d(p) {
|
|
811
|
-
["top", "right", "bottom", "left"].forEach((
|
|
812
|
-
n[`${u}-${
|
|
811
|
+
["top", "right", "bottom", "left"].forEach((h) => {
|
|
812
|
+
n[`${u}-${h}`] = typeof p == "number" ? `${p}px` : p;
|
|
813
813
|
});
|
|
814
814
|
}
|
|
815
815
|
typeof i == "number" || typeof i == "string" ? d(i) : typeof i == "object" ? ["top", "right", "bottom", "left"].forEach((p) => {
|
|
@@ -818,71 +818,71 @@ function Qr(e, a) {
|
|
|
818
818
|
}), n;
|
|
819
819
|
}
|
|
820
820
|
var Yr = er(function(e, a) {
|
|
821
|
-
let { invert: n, position: i = "bottom-right", hotkey: A = ["altKey", "KeyT"], expand: c, closeButton: u, className: s, offset: d, mobileOffset: p, theme:
|
|
821
|
+
let { invert: n, position: i = "bottom-right", hotkey: A = ["altKey", "KeyT"], expand: c, closeButton: u, className: s, offset: d, mobileOffset: p, theme: h = "light", richColors: w, duration: T, style: o, visibleToasts: S = zr, toastOptions: v, dir: P = Xt(), gap: z = Hr, loadingIcon: B, icons: K, containerAriaLabel: X = "Notifications", pauseWhenPageIsHidden: k } = e, [N, Y] = f.useState([]), ne = f.useMemo(() => Array.from(new Set([i].concat(N.filter((E) => E.position).map((E) => E.position)))), [N, i]), [W, oe] = f.useState([]), [te, b] = f.useState(!1), [re, H] = f.useState(!1), [g, V] = f.useState(h !== "system" ? h : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Q = f.useRef(null), fe = A.join("+").replace(/Key/g, "").replace(/Digit/g, ""), C = f.useRef(null), J = f.useRef(!1), Z = f.useCallback((E) => {
|
|
822
822
|
Y((O) => {
|
|
823
|
-
var
|
|
824
|
-
return (
|
|
823
|
+
var M;
|
|
824
|
+
return (M = O.find((_) => _.id === E.id)) != null && M.delete || ue.dismiss(E.id), O.filter(({ id: _ }) => _ !== E.id);
|
|
825
825
|
});
|
|
826
826
|
}, []);
|
|
827
827
|
return f.useEffect(() => ue.subscribe((E) => {
|
|
828
828
|
if (E.dismiss) {
|
|
829
|
-
Y((O) => O.map((
|
|
829
|
+
Y((O) => O.map((M) => M.id === E.id ? { ...M, delete: !0 } : M));
|
|
830
830
|
return;
|
|
831
831
|
}
|
|
832
832
|
setTimeout(() => {
|
|
833
833
|
tr.flushSync(() => {
|
|
834
834
|
Y((O) => {
|
|
835
|
-
let
|
|
836
|
-
return
|
|
835
|
+
let M = O.findIndex((_) => _.id === E.id);
|
|
836
|
+
return M !== -1 ? [...O.slice(0, M), { ...O[M], ...E }, ...O.slice(M + 1)] : [E, ...O];
|
|
837
837
|
});
|
|
838
838
|
});
|
|
839
839
|
});
|
|
840
840
|
}), []), f.useEffect(() => {
|
|
841
|
-
if (
|
|
842
|
-
V(
|
|
841
|
+
if (h !== "system") {
|
|
842
|
+
V(h);
|
|
843
843
|
return;
|
|
844
844
|
}
|
|
845
|
-
if (
|
|
845
|
+
if (h === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? V("dark") : V("light")), typeof window > "u") return;
|
|
846
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
|
-
E.addListener(({ matches:
|
|
852
|
+
E.addListener(({ matches: M }) => {
|
|
853
853
|
try {
|
|
854
|
-
V(
|
|
855
|
-
} catch (
|
|
856
|
-
console.error(
|
|
854
|
+
V(M ? "dark" : "light");
|
|
855
|
+
} catch (_) {
|
|
856
|
+
console.error(_);
|
|
857
857
|
}
|
|
858
858
|
});
|
|
859
859
|
}
|
|
860
|
-
}, [
|
|
861
|
-
|
|
862
|
-
}, [
|
|
860
|
+
}, [h]), f.useEffect(() => {
|
|
861
|
+
N.length <= 1 && b(!1);
|
|
862
|
+
}, [N]), f.useEffect(() => {
|
|
863
863
|
let E = (O) => {
|
|
864
|
-
var
|
|
865
|
-
A.every((
|
|
864
|
+
var M, _;
|
|
865
|
+
A.every(($) => O[$] || O.code === $) && (b(!0), (M = Q.current) == null || M.focus()), O.code === "Escape" && (document.activeElement === Q.current || (_ = Q.current) != null && _.contains(document.activeElement)) && b(!1);
|
|
866
866
|
};
|
|
867
867
|
return document.addEventListener("keydown", E), () => document.removeEventListener("keydown", E);
|
|
868
868
|
}, [A]), f.useEffect(() => {
|
|
869
|
-
if (
|
|
869
|
+
if (Q.current) return () => {
|
|
870
870
|
C.current && (C.current.focus({ preventScroll: !0 }), C.current = null, J.current = !1);
|
|
871
871
|
};
|
|
872
|
-
}, [
|
|
873
|
-
var
|
|
874
|
-
let [
|
|
875
|
-
return
|
|
872
|
+
}, [Q.current]), f.createElement("section", { ref: a, "aria-label": `${X} ${fe}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, ne.map((E, O) => {
|
|
873
|
+
var M;
|
|
874
|
+
let [_, $] = E.split("-");
|
|
875
|
+
return N.length ? f.createElement("ol", { key: E, dir: P === "auto" ? Xt() : P, tabIndex: -1, ref: Q, className: s, "data-sonner-toaster": !0, "data-theme": g, "data-y-position": _, "data-lifted": te && N.length > 1 && !c, "data-x-position": $, style: { "--front-toast-height": `${((M = W[0]) == null ? void 0 : M.height) || 0}px`, "--width": `${kr}px`, "--gap": `${z}px`, ...o, ...Qr(d, 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);
|
|
879
|
-
}, onMouseEnter: () =>
|
|
880
|
-
re ||
|
|
881
|
-
}, onDragEnd: () =>
|
|
879
|
+
}, onMouseEnter: () => b(!0), onMouseMove: () => b(!0), onMouseLeave: () => {
|
|
880
|
+
re || b(!1);
|
|
881
|
+
}, onDragEnd: () => b(!1), onPointerDown: (L) => {
|
|
882
882
|
L.target instanceof HTMLElement && L.target.dataset.dismissible === "false" || H(!0);
|
|
883
|
-
}, onPointerUp: () => H(!1) },
|
|
883
|
+
}, onPointerUp: () => H(!1) }, N.filter((L) => !L.position && O === 0 || L.position === E).map((L, Me) => {
|
|
884
884
|
var xe, Ce;
|
|
885
|
-
return f.createElement(Sr, { key: L.id, icons:
|
|
885
|
+
return f.createElement(Sr, { key: L.id, icons: K, index: Me, toast: L, defaultRichColors: w, duration: (xe = v == null ? void 0 : v.duration) != null ? xe : T, className: v == null ? void 0 : v.className, descriptionClassName: v == null ? void 0 : v.descriptionClassName, invert: n, visibleToasts: S, closeButton: (Ce = v == null ? void 0 : v.closeButton) != null ? Ce : u, interacting: re, position: E, style: v == null ? void 0 : v.style, unstyled: v == null ? void 0 : v.unstyled, classNames: v == null ? void 0 : v.classNames, cancelButtonStyle: v == null ? void 0 : v.cancelButtonStyle, actionButtonStyle: v == null ? void 0 : v.actionButtonStyle, removeToast: Z, toasts: N.filter((Re) => Re.position == L.position), heights: W.filter((Re) => Re.position == L.position), setHeights: oe, expandByDefault: c, gap: z, loadingIcon: B, expanded: te, pauseWhenPageIsHidden: k, swipeDirections: e.swipeDirections });
|
|
886
886
|
})) : null;
|
|
887
887
|
}));
|
|
888
888
|
});
|
|
@@ -1031,27 +1031,27 @@ const Ot = "-", Fr = (e) => {
|
|
|
1031
1031
|
experimentalParseClassName: n
|
|
1032
1032
|
} = e, i = a.length === 1, A = a[0], c = a.length, u = (s) => {
|
|
1033
1033
|
const d = [];
|
|
1034
|
-
let p = 0,
|
|
1035
|
-
for (let
|
|
1036
|
-
let
|
|
1034
|
+
let p = 0, h = 0, w;
|
|
1035
|
+
for (let P = 0; P < s.length; P++) {
|
|
1036
|
+
let z = s[P];
|
|
1037
1037
|
if (p === 0) {
|
|
1038
|
-
if (
|
|
1039
|
-
d.push(s.slice(
|
|
1038
|
+
if (z === A && (i || s.slice(P, P + c) === a)) {
|
|
1039
|
+
d.push(s.slice(h, P)), h = P + c;
|
|
1040
1040
|
continue;
|
|
1041
1041
|
}
|
|
1042
|
-
if (
|
|
1043
|
-
|
|
1042
|
+
if (z === "/") {
|
|
1043
|
+
w = P;
|
|
1044
1044
|
continue;
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
|
|
1047
|
+
z === "[" ? p++ : z === "]" && p--;
|
|
1048
1048
|
}
|
|
1049
|
-
const
|
|
1049
|
+
const T = d.length === 0 ? s : s.substring(h), o = T.startsWith(Ut), S = o ? T.substring(1) : T, v = w && w > h ? w - h : void 0;
|
|
1050
1050
|
return {
|
|
1051
1051
|
modifiers: d,
|
|
1052
1052
|
hasImportantModifier: o,
|
|
1053
|
-
baseClassName:
|
|
1054
|
-
maybePostfixModifierPosition:
|
|
1053
|
+
baseClassName: S,
|
|
1054
|
+
maybePostfixModifierPosition: v
|
|
1055
1055
|
};
|
|
1056
1056
|
};
|
|
1057
1057
|
return n ? (s) => n({
|
|
@@ -1079,31 +1079,31 @@ const Ot = "-", Fr = (e) => {
|
|
|
1079
1079
|
let s = "";
|
|
1080
1080
|
for (let d = u.length - 1; d >= 0; d -= 1) {
|
|
1081
1081
|
const p = u[d], {
|
|
1082
|
-
modifiers:
|
|
1083
|
-
hasImportantModifier:
|
|
1084
|
-
baseClassName:
|
|
1082
|
+
modifiers: h,
|
|
1083
|
+
hasImportantModifier: w,
|
|
1084
|
+
baseClassName: T,
|
|
1085
1085
|
maybePostfixModifierPosition: o
|
|
1086
1086
|
} = n(p);
|
|
1087
|
-
let
|
|
1088
|
-
if (!
|
|
1089
|
-
if (!
|
|
1087
|
+
let S = !!o, v = i(S ? T.substring(0, o) : T);
|
|
1088
|
+
if (!v) {
|
|
1089
|
+
if (!S) {
|
|
1090
1090
|
s = p + (s.length > 0 ? " " + s : s);
|
|
1091
1091
|
continue;
|
|
1092
1092
|
}
|
|
1093
|
-
if (
|
|
1093
|
+
if (v = i(T), !v) {
|
|
1094
1094
|
s = p + (s.length > 0 ? " " + s : s);
|
|
1095
1095
|
continue;
|
|
1096
1096
|
}
|
|
1097
|
-
|
|
1097
|
+
S = !1;
|
|
1098
1098
|
}
|
|
1099
|
-
const
|
|
1100
|
-
if (c.includes(
|
|
1099
|
+
const P = $r(h).join(":"), z = w ? P + Ut : P, B = z + v;
|
|
1100
|
+
if (c.includes(B))
|
|
1101
1101
|
continue;
|
|
1102
|
-
c.push(
|
|
1103
|
-
const
|
|
1104
|
-
for (let
|
|
1105
|
-
const k =
|
|
1106
|
-
c.push(
|
|
1102
|
+
c.push(B);
|
|
1103
|
+
const K = A(v, S);
|
|
1104
|
+
for (let X = 0; X < K.length; ++X) {
|
|
1105
|
+
const k = K[X];
|
|
1106
|
+
c.push(z + k);
|
|
1107
1107
|
}
|
|
1108
1108
|
s = p + (s.length > 0 ? " " + s : s);
|
|
1109
1109
|
}
|
|
@@ -1126,15 +1126,15 @@ const Ft = (e) => {
|
|
|
1126
1126
|
function na(e, ...a) {
|
|
1127
1127
|
let n, i, A, c = u;
|
|
1128
1128
|
function u(d) {
|
|
1129
|
-
const p = a.reduce((
|
|
1129
|
+
const p = a.reduce((h, w) => w(h), e());
|
|
1130
1130
|
return n = ea(p), i = n.cache.get, A = n.cache.set, c = s, s(d);
|
|
1131
1131
|
}
|
|
1132
1132
|
function s(d) {
|
|
1133
1133
|
const p = i(d);
|
|
1134
1134
|
if (p)
|
|
1135
1135
|
return p;
|
|
1136
|
-
const
|
|
1137
|
-
return A(d,
|
|
1136
|
+
const h = ra(d, n);
|
|
1137
|
+
return A(d, h), h;
|
|
1138
1138
|
}
|
|
1139
1139
|
return function() {
|
|
1140
1140
|
return c(aa.apply(null, arguments));
|
|
@@ -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), 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)),
|
|
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)), D = (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,36 +1152,36 @@ 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"), A = q("borderColor"), c = q("borderRadius"), u = q("borderSpacing"), s = q("borderWidth"), d = q("contrast"), p = q("grayscale"),
|
|
1155
|
+
const e = q("colors"), a = q("spacing"), n = q("blur"), i = q("brightness"), A = q("borderColor"), c = q("borderRadius"), u = q("borderSpacing"), s = q("borderWidth"), d = q("contrast"), p = q("grayscale"), h = q("hueRotate"), w = q("invert"), T = q("gap"), o = q("gradientColorStops"), S = q("gradientColorStopPositions"), v = q("inset"), P = q("margin"), z = q("opacity"), B = q("padding"), K = q("saturate"), X = q("scale"), k = q("sepia"), N = q("skew"), Y = q("space"), ne = q("translate"), W = () => ["auto", "contain", "none"], oe = () => ["auto", "hidden", "clip", "visible", "scroll"], te = () => ["auto", D, a], b = () => [D, a], re = () => ["", Ne, je], H = () => ["auto", qe, D], g = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], V = () => ["solid", "dashed", "dotted", "double", "none"], Q = () => ["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", D], J = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Z = () => [qe, D];
|
|
1156
1156
|
return {
|
|
1157
1157
|
cacheSize: 500,
|
|
1158
1158
|
separator: ":",
|
|
1159
1159
|
theme: {
|
|
1160
1160
|
colors: [rt],
|
|
1161
1161
|
spacing: [Ne, je],
|
|
1162
|
-
blur: ["none", "", ze,
|
|
1162
|
+
blur: ["none", "", ze, D],
|
|
1163
1163
|
brightness: Z(),
|
|
1164
1164
|
borderColor: [e],
|
|
1165
|
-
borderRadius: ["none", "", "full", ze,
|
|
1166
|
-
borderSpacing:
|
|
1165
|
+
borderRadius: ["none", "", "full", ze, D],
|
|
1166
|
+
borderSpacing: b(),
|
|
1167
1167
|
borderWidth: re(),
|
|
1168
1168
|
contrast: Z(),
|
|
1169
1169
|
grayscale: C(),
|
|
1170
1170
|
hueRotate: Z(),
|
|
1171
1171
|
invert: C(),
|
|
1172
|
-
gap:
|
|
1172
|
+
gap: b(),
|
|
1173
1173
|
gradientColorStops: [e],
|
|
1174
1174
|
gradientColorStopPositions: [ua, je],
|
|
1175
1175
|
inset: te(),
|
|
1176
1176
|
margin: te(),
|
|
1177
1177
|
opacity: Z(),
|
|
1178
|
-
padding:
|
|
1178
|
+
padding: b(),
|
|
1179
1179
|
saturate: Z(),
|
|
1180
1180
|
scale: Z(),
|
|
1181
1181
|
sepia: C(),
|
|
1182
1182
|
skew: Z(),
|
|
1183
|
-
space:
|
|
1184
|
-
translate:
|
|
1183
|
+
space: b(),
|
|
1184
|
+
translate: b()
|
|
1185
1185
|
},
|
|
1186
1186
|
classGroups: {
|
|
1187
1187
|
// Layout
|
|
@@ -1190,7 +1190,7 @@ const q = (e) => {
|
|
|
1190
1190
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1191
1191
|
*/
|
|
1192
1192
|
aspect: [{
|
|
1193
|
-
aspect: ["auto", "square", "video",
|
|
1193
|
+
aspect: ["auto", "square", "video", D]
|
|
1194
1194
|
}],
|
|
1195
1195
|
/**
|
|
1196
1196
|
* Container
|
|
@@ -1275,7 +1275,7 @@ const q = (e) => {
|
|
|
1275
1275
|
* @see https://tailwindcss.com/docs/object-position
|
|
1276
1276
|
*/
|
|
1277
1277
|
"object-position": [{
|
|
1278
|
-
object: [...g(),
|
|
1278
|
+
object: [...g(), D]
|
|
1279
1279
|
}],
|
|
1280
1280
|
/**
|
|
1281
1281
|
* Overflow
|
|
@@ -1329,63 +1329,63 @@ const q = (e) => {
|
|
|
1329
1329
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1330
1330
|
*/
|
|
1331
1331
|
inset: [{
|
|
1332
|
-
inset: [
|
|
1332
|
+
inset: [v]
|
|
1333
1333
|
}],
|
|
1334
1334
|
/**
|
|
1335
1335
|
* Right / Left
|
|
1336
1336
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1337
1337
|
*/
|
|
1338
1338
|
"inset-x": [{
|
|
1339
|
-
"inset-x": [
|
|
1339
|
+
"inset-x": [v]
|
|
1340
1340
|
}],
|
|
1341
1341
|
/**
|
|
1342
1342
|
* Top / Bottom
|
|
1343
1343
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1344
1344
|
*/
|
|
1345
1345
|
"inset-y": [{
|
|
1346
|
-
"inset-y": [
|
|
1346
|
+
"inset-y": [v]
|
|
1347
1347
|
}],
|
|
1348
1348
|
/**
|
|
1349
1349
|
* Start
|
|
1350
1350
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1351
1351
|
*/
|
|
1352
1352
|
start: [{
|
|
1353
|
-
start: [
|
|
1353
|
+
start: [v]
|
|
1354
1354
|
}],
|
|
1355
1355
|
/**
|
|
1356
1356
|
* End
|
|
1357
1357
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1358
1358
|
*/
|
|
1359
1359
|
end: [{
|
|
1360
|
-
end: [
|
|
1360
|
+
end: [v]
|
|
1361
1361
|
}],
|
|
1362
1362
|
/**
|
|
1363
1363
|
* Top
|
|
1364
1364
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1365
1365
|
*/
|
|
1366
1366
|
top: [{
|
|
1367
|
-
top: [
|
|
1367
|
+
top: [v]
|
|
1368
1368
|
}],
|
|
1369
1369
|
/**
|
|
1370
1370
|
* Right
|
|
1371
1371
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1372
1372
|
*/
|
|
1373
1373
|
right: [{
|
|
1374
|
-
right: [
|
|
1374
|
+
right: [v]
|
|
1375
1375
|
}],
|
|
1376
1376
|
/**
|
|
1377
1377
|
* Bottom
|
|
1378
1378
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1379
1379
|
*/
|
|
1380
1380
|
bottom: [{
|
|
1381
|
-
bottom: [
|
|
1381
|
+
bottom: [v]
|
|
1382
1382
|
}],
|
|
1383
1383
|
/**
|
|
1384
1384
|
* Left
|
|
1385
1385
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1386
1386
|
*/
|
|
1387
1387
|
left: [{
|
|
1388
|
-
left: [
|
|
1388
|
+
left: [v]
|
|
1389
1389
|
}],
|
|
1390
1390
|
/**
|
|
1391
1391
|
* Visibility
|
|
@@ -1397,7 +1397,7 @@ const q = (e) => {
|
|
|
1397
1397
|
* @see https://tailwindcss.com/docs/z-index
|
|
1398
1398
|
*/
|
|
1399
1399
|
z: [{
|
|
1400
|
-
z: ["auto", tt,
|
|
1400
|
+
z: ["auto", tt, D]
|
|
1401
1401
|
}],
|
|
1402
1402
|
// Flexbox and Grid
|
|
1403
1403
|
/**
|
|
@@ -1426,7 +1426,7 @@ const q = (e) => {
|
|
|
1426
1426
|
* @see https://tailwindcss.com/docs/flex
|
|
1427
1427
|
*/
|
|
1428
1428
|
flex: [{
|
|
1429
|
-
flex: ["1", "auto", "initial", "none",
|
|
1429
|
+
flex: ["1", "auto", "initial", "none", D]
|
|
1430
1430
|
}],
|
|
1431
1431
|
/**
|
|
1432
1432
|
* Flex Grow
|
|
@@ -1447,7 +1447,7 @@ const q = (e) => {
|
|
|
1447
1447
|
* @see https://tailwindcss.com/docs/order
|
|
1448
1448
|
*/
|
|
1449
1449
|
order: [{
|
|
1450
|
-
order: ["first", "last", "none", tt,
|
|
1450
|
+
order: ["first", "last", "none", tt, D]
|
|
1451
1451
|
}],
|
|
1452
1452
|
/**
|
|
1453
1453
|
* Grid Template Columns
|
|
@@ -1462,8 +1462,8 @@ const q = (e) => {
|
|
|
1462
1462
|
*/
|
|
1463
1463
|
"col-start-end": [{
|
|
1464
1464
|
col: ["auto", {
|
|
1465
|
-
span: ["full", tt,
|
|
1466
|
-
},
|
|
1465
|
+
span: ["full", tt, D]
|
|
1466
|
+
}, D]
|
|
1467
1467
|
}],
|
|
1468
1468
|
/**
|
|
1469
1469
|
* Grid Column Start
|
|
@@ -1492,8 +1492,8 @@ const q = (e) => {
|
|
|
1492
1492
|
*/
|
|
1493
1493
|
"row-start-end": [{
|
|
1494
1494
|
row: ["auto", {
|
|
1495
|
-
span: [tt,
|
|
1496
|
-
},
|
|
1495
|
+
span: [tt, D]
|
|
1496
|
+
}, D]
|
|
1497
1497
|
}],
|
|
1498
1498
|
/**
|
|
1499
1499
|
* Grid Row Start
|
|
@@ -1521,35 +1521,35 @@ const q = (e) => {
|
|
|
1521
1521
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1522
1522
|
*/
|
|
1523
1523
|
"auto-cols": [{
|
|
1524
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
1524
|
+
"auto-cols": ["auto", "min", "max", "fr", D]
|
|
1525
1525
|
}],
|
|
1526
1526
|
/**
|
|
1527
1527
|
* Grid Auto Rows
|
|
1528
1528
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1529
1529
|
*/
|
|
1530
1530
|
"auto-rows": [{
|
|
1531
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
1531
|
+
"auto-rows": ["auto", "min", "max", "fr", D]
|
|
1532
1532
|
}],
|
|
1533
1533
|
/**
|
|
1534
1534
|
* Gap
|
|
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
|
|
@@ -1620,126 +1620,126 @@ const q = (e) => {
|
|
|
1620
1620
|
* @see https://tailwindcss.com/docs/padding
|
|
1621
1621
|
*/
|
|
1622
1622
|
p: [{
|
|
1623
|
-
p: [
|
|
1623
|
+
p: [B]
|
|
1624
1624
|
}],
|
|
1625
1625
|
/**
|
|
1626
1626
|
* Padding X
|
|
1627
1627
|
* @see https://tailwindcss.com/docs/padding
|
|
1628
1628
|
*/
|
|
1629
1629
|
px: [{
|
|
1630
|
-
px: [
|
|
1630
|
+
px: [B]
|
|
1631
1631
|
}],
|
|
1632
1632
|
/**
|
|
1633
1633
|
* Padding Y
|
|
1634
1634
|
* @see https://tailwindcss.com/docs/padding
|
|
1635
1635
|
*/
|
|
1636
1636
|
py: [{
|
|
1637
|
-
py: [
|
|
1637
|
+
py: [B]
|
|
1638
1638
|
}],
|
|
1639
1639
|
/**
|
|
1640
1640
|
* Padding Start
|
|
1641
1641
|
* @see https://tailwindcss.com/docs/padding
|
|
1642
1642
|
*/
|
|
1643
1643
|
ps: [{
|
|
1644
|
-
ps: [
|
|
1644
|
+
ps: [B]
|
|
1645
1645
|
}],
|
|
1646
1646
|
/**
|
|
1647
1647
|
* Padding End
|
|
1648
1648
|
* @see https://tailwindcss.com/docs/padding
|
|
1649
1649
|
*/
|
|
1650
1650
|
pe: [{
|
|
1651
|
-
pe: [
|
|
1651
|
+
pe: [B]
|
|
1652
1652
|
}],
|
|
1653
1653
|
/**
|
|
1654
1654
|
* Padding Top
|
|
1655
1655
|
* @see https://tailwindcss.com/docs/padding
|
|
1656
1656
|
*/
|
|
1657
1657
|
pt: [{
|
|
1658
|
-
pt: [
|
|
1658
|
+
pt: [B]
|
|
1659
1659
|
}],
|
|
1660
1660
|
/**
|
|
1661
1661
|
* Padding Right
|
|
1662
1662
|
* @see https://tailwindcss.com/docs/padding
|
|
1663
1663
|
*/
|
|
1664
1664
|
pr: [{
|
|
1665
|
-
pr: [
|
|
1665
|
+
pr: [B]
|
|
1666
1666
|
}],
|
|
1667
1667
|
/**
|
|
1668
1668
|
* Padding Bottom
|
|
1669
1669
|
* @see https://tailwindcss.com/docs/padding
|
|
1670
1670
|
*/
|
|
1671
1671
|
pb: [{
|
|
1672
|
-
pb: [
|
|
1672
|
+
pb: [B]
|
|
1673
1673
|
}],
|
|
1674
1674
|
/**
|
|
1675
1675
|
* Padding Left
|
|
1676
1676
|
* @see https://tailwindcss.com/docs/padding
|
|
1677
1677
|
*/
|
|
1678
1678
|
pl: [{
|
|
1679
|
-
pl: [
|
|
1679
|
+
pl: [B]
|
|
1680
1680
|
}],
|
|
1681
1681
|
/**
|
|
1682
1682
|
* Margin
|
|
1683
1683
|
* @see https://tailwindcss.com/docs/margin
|
|
1684
1684
|
*/
|
|
1685
1685
|
m: [{
|
|
1686
|
-
m: [
|
|
1686
|
+
m: [P]
|
|
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: [P]
|
|
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: [P]
|
|
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: [P]
|
|
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: [P]
|
|
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: [P]
|
|
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: [P]
|
|
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: [P]
|
|
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: [P]
|
|
1743
1743
|
}],
|
|
1744
1744
|
/**
|
|
1745
1745
|
* Space Between X
|
|
@@ -1771,21 +1771,21 @@ const q = (e) => {
|
|
|
1771
1771
|
* @see https://tailwindcss.com/docs/width
|
|
1772
1772
|
*/
|
|
1773
1773
|
w: [{
|
|
1774
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
1774
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", D, a]
|
|
1775
1775
|
}],
|
|
1776
1776
|
/**
|
|
1777
1777
|
* Min-Width
|
|
1778
1778
|
* @see https://tailwindcss.com/docs/min-width
|
|
1779
1779
|
*/
|
|
1780
1780
|
"min-w": [{
|
|
1781
|
-
"min-w": [
|
|
1781
|
+
"min-w": [D, a, "min", "max", "fit"]
|
|
1782
1782
|
}],
|
|
1783
1783
|
/**
|
|
1784
1784
|
* Max-Width
|
|
1785
1785
|
* @see https://tailwindcss.com/docs/max-width
|
|
1786
1786
|
*/
|
|
1787
1787
|
"max-w": [{
|
|
1788
|
-
"max-w": [
|
|
1788
|
+
"max-w": [D, a, "none", "full", "min", "max", "fit", "prose", {
|
|
1789
1789
|
screen: [ze]
|
|
1790
1790
|
}, ze]
|
|
1791
1791
|
}],
|
|
@@ -1794,28 +1794,28 @@ const q = (e) => {
|
|
|
1794
1794
|
* @see https://tailwindcss.com/docs/height
|
|
1795
1795
|
*/
|
|
1796
1796
|
h: [{
|
|
1797
|
-
h: [
|
|
1797
|
+
h: [D, a, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1798
1798
|
}],
|
|
1799
1799
|
/**
|
|
1800
1800
|
* Min-Height
|
|
1801
1801
|
* @see https://tailwindcss.com/docs/min-height
|
|
1802
1802
|
*/
|
|
1803
1803
|
"min-h": [{
|
|
1804
|
-
"min-h": [
|
|
1804
|
+
"min-h": [D, a, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1805
1805
|
}],
|
|
1806
1806
|
/**
|
|
1807
1807
|
* Max-Height
|
|
1808
1808
|
* @see https://tailwindcss.com/docs/max-height
|
|
1809
1809
|
*/
|
|
1810
1810
|
"max-h": [{
|
|
1811
|
-
"max-h": [
|
|
1811
|
+
"max-h": [D, a, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1812
1812
|
}],
|
|
1813
1813
|
/**
|
|
1814
1814
|
* Size
|
|
1815
1815
|
* @see https://tailwindcss.com/docs/size
|
|
1816
1816
|
*/
|
|
1817
1817
|
size: [{
|
|
1818
|
-
size: [
|
|
1818
|
+
size: [D, a, "auto", "min", "max", "fit"]
|
|
1819
1819
|
}],
|
|
1820
1820
|
// Typography
|
|
1821
1821
|
/**
|
|
@@ -1884,7 +1884,7 @@ const q = (e) => {
|
|
|
1884
1884
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1885
1885
|
*/
|
|
1886
1886
|
tracking: [{
|
|
1887
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
1887
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", D]
|
|
1888
1888
|
}],
|
|
1889
1889
|
/**
|
|
1890
1890
|
* Line Clamp
|
|
@@ -1898,21 +1898,21 @@ const q = (e) => {
|
|
|
1898
1898
|
* @see https://tailwindcss.com/docs/line-height
|
|
1899
1899
|
*/
|
|
1900
1900
|
leading: [{
|
|
1901
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Ne,
|
|
1901
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Ne, D]
|
|
1902
1902
|
}],
|
|
1903
1903
|
/**
|
|
1904
1904
|
* List Style Image
|
|
1905
1905
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1906
1906
|
*/
|
|
1907
1907
|
"list-image": [{
|
|
1908
|
-
"list-image": ["none",
|
|
1908
|
+
"list-image": ["none", D]
|
|
1909
1909
|
}],
|
|
1910
1910
|
/**
|
|
1911
1911
|
* List Style Type
|
|
1912
1912
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1913
1913
|
*/
|
|
1914
1914
|
"list-style-type": [{
|
|
1915
|
-
list: ["none", "disc", "decimal",
|
|
1915
|
+
list: ["none", "disc", "decimal", D]
|
|
1916
1916
|
}],
|
|
1917
1917
|
/**
|
|
1918
1918
|
* List Style Position
|
|
@@ -1934,7 +1934,7 @@ const q = (e) => {
|
|
|
1934
1934
|
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
1935
1935
|
*/
|
|
1936
1936
|
"placeholder-opacity": [{
|
|
1937
|
-
"placeholder-opacity": [
|
|
1937
|
+
"placeholder-opacity": [z]
|
|
1938
1938
|
}],
|
|
1939
1939
|
/**
|
|
1940
1940
|
* Text Alignment
|
|
@@ -1955,7 +1955,7 @@ const q = (e) => {
|
|
|
1955
1955
|
* @see https://tailwindcss.com/docs/text-opacity
|
|
1956
1956
|
*/
|
|
1957
1957
|
"text-opacity": [{
|
|
1958
|
-
"text-opacity": [
|
|
1958
|
+
"text-opacity": [z]
|
|
1959
1959
|
}],
|
|
1960
1960
|
/**
|
|
1961
1961
|
* Text Decoration
|
|
@@ -1981,7 +1981,7 @@ const q = (e) => {
|
|
|
1981
1981
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1982
1982
|
*/
|
|
1983
1983
|
"underline-offset": [{
|
|
1984
|
-
"underline-offset": ["auto", Ne,
|
|
1984
|
+
"underline-offset": ["auto", Ne, D]
|
|
1985
1985
|
}],
|
|
1986
1986
|
/**
|
|
1987
1987
|
* Text Decoration Color
|
|
@@ -2012,14 +2012,14 @@ const q = (e) => {
|
|
|
2012
2012
|
* @see https://tailwindcss.com/docs/text-indent
|
|
2013
2013
|
*/
|
|
2014
2014
|
indent: [{
|
|
2015
|
-
indent:
|
|
2015
|
+
indent: b()
|
|
2016
2016
|
}],
|
|
2017
2017
|
/**
|
|
2018
2018
|
* Vertical Alignment
|
|
2019
2019
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
2020
2020
|
*/
|
|
2021
2021
|
"vertical-align": [{
|
|
2022
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
2022
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", D]
|
|
2023
2023
|
}],
|
|
2024
2024
|
/**
|
|
2025
2025
|
* Whitespace
|
|
@@ -2047,7 +2047,7 @@ const q = (e) => {
|
|
|
2047
2047
|
* @see https://tailwindcss.com/docs/content
|
|
2048
2048
|
*/
|
|
2049
2049
|
content: [{
|
|
2050
|
-
content: ["none",
|
|
2050
|
+
content: ["none", D]
|
|
2051
2051
|
}],
|
|
2052
2052
|
// Backgrounds
|
|
2053
2053
|
/**
|
|
@@ -2070,7 +2070,7 @@ const q = (e) => {
|
|
|
2070
2070
|
* @see https://tailwindcss.com/docs/background-opacity
|
|
2071
2071
|
*/
|
|
2072
2072
|
"bg-opacity": [{
|
|
2073
|
-
"bg-opacity": [
|
|
2073
|
+
"bg-opacity": [z]
|
|
2074
2074
|
}],
|
|
2075
2075
|
/**
|
|
2076
2076
|
* Background Origin
|
|
@@ -2123,21 +2123,21 @@ const q = (e) => {
|
|
|
2123
2123
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2124
2124
|
*/
|
|
2125
2125
|
"gradient-from-pos": [{
|
|
2126
|
-
from: [
|
|
2126
|
+
from: [S]
|
|
2127
2127
|
}],
|
|
2128
2128
|
/**
|
|
2129
2129
|
* Gradient Color Stops Via Position
|
|
2130
2130
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2131
2131
|
*/
|
|
2132
2132
|
"gradient-via-pos": [{
|
|
2133
|
-
via: [
|
|
2133
|
+
via: [S]
|
|
2134
2134
|
}],
|
|
2135
2135
|
/**
|
|
2136
2136
|
* Gradient Color Stops To Position
|
|
2137
2137
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2138
2138
|
*/
|
|
2139
2139
|
"gradient-to-pos": [{
|
|
2140
|
-
to: [
|
|
2140
|
+
to: [S]
|
|
2141
2141
|
}],
|
|
2142
2142
|
/**
|
|
2143
2143
|
* Gradient Color Stops From
|
|
@@ -2334,7 +2334,7 @@ const q = (e) => {
|
|
|
2334
2334
|
* @see https://tailwindcss.com/docs/border-opacity
|
|
2335
2335
|
*/
|
|
2336
2336
|
"border-opacity": [{
|
|
2337
|
-
"border-opacity": [
|
|
2337
|
+
"border-opacity": [z]
|
|
2338
2338
|
}],
|
|
2339
2339
|
/**
|
|
2340
2340
|
* Border Style
|
|
@@ -2372,7 +2372,7 @@ const q = (e) => {
|
|
|
2372
2372
|
* @see https://tailwindcss.com/docs/divide-opacity
|
|
2373
2373
|
*/
|
|
2374
2374
|
"divide-opacity": [{
|
|
2375
|
-
"divide-opacity": [
|
|
2375
|
+
"divide-opacity": [z]
|
|
2376
2376
|
}],
|
|
2377
2377
|
/**
|
|
2378
2378
|
* Divide Style
|
|
@@ -2463,7 +2463,7 @@ const q = (e) => {
|
|
|
2463
2463
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2464
2464
|
*/
|
|
2465
2465
|
"outline-offset": [{
|
|
2466
|
-
"outline-offset": [Ne,
|
|
2466
|
+
"outline-offset": [Ne, D]
|
|
2467
2467
|
}],
|
|
2468
2468
|
/**
|
|
2469
2469
|
* Outline Width
|
|
@@ -2503,7 +2503,7 @@ const q = (e) => {
|
|
|
2503
2503
|
* @see https://tailwindcss.com/docs/ring-opacity
|
|
2504
2504
|
*/
|
|
2505
2505
|
"ring-opacity": [{
|
|
2506
|
-
"ring-opacity": [
|
|
2506
|
+
"ring-opacity": [z]
|
|
2507
2507
|
}],
|
|
2508
2508
|
/**
|
|
2509
2509
|
* Ring Offset Width
|
|
@@ -2539,21 +2539,21 @@ const q = (e) => {
|
|
|
2539
2539
|
* @see https://tailwindcss.com/docs/opacity
|
|
2540
2540
|
*/
|
|
2541
2541
|
opacity: [{
|
|
2542
|
-
opacity: [
|
|
2542
|
+
opacity: [z]
|
|
2543
2543
|
}],
|
|
2544
2544
|
/**
|
|
2545
2545
|
* Mix Blend Mode
|
|
2546
2546
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2547
2547
|
*/
|
|
2548
2548
|
"mix-blend": [{
|
|
2549
|
-
"mix-blend": [...
|
|
2549
|
+
"mix-blend": [...Q(), "plus-lighter", "plus-darker"]
|
|
2550
2550
|
}],
|
|
2551
2551
|
/**
|
|
2552
2552
|
* Background Blend Mode
|
|
2553
2553
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2554
2554
|
*/
|
|
2555
2555
|
"bg-blend": [{
|
|
2556
|
-
"bg-blend":
|
|
2556
|
+
"bg-blend": Q()
|
|
2557
2557
|
}],
|
|
2558
2558
|
// Filters
|
|
2559
2559
|
/**
|
|
@@ -2590,7 +2590,7 @@ const q = (e) => {
|
|
|
2590
2590
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
2591
2591
|
*/
|
|
2592
2592
|
"drop-shadow": [{
|
|
2593
|
-
"drop-shadow": ["", "none", ze,
|
|
2593
|
+
"drop-shadow": ["", "none", ze, D]
|
|
2594
2594
|
}],
|
|
2595
2595
|
/**
|
|
2596
2596
|
* Grayscale
|
|
@@ -2604,21 +2604,21 @@ const q = (e) => {
|
|
|
2604
2604
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2605
2605
|
*/
|
|
2606
2606
|
"hue-rotate": [{
|
|
2607
|
-
"hue-rotate": [
|
|
2607
|
+
"hue-rotate": [h]
|
|
2608
2608
|
}],
|
|
2609
2609
|
/**
|
|
2610
2610
|
* Invert
|
|
2611
2611
|
* @see https://tailwindcss.com/docs/invert
|
|
2612
2612
|
*/
|
|
2613
2613
|
invert: [{
|
|
2614
|
-
invert: [
|
|
2614
|
+
invert: [w]
|
|
2615
2615
|
}],
|
|
2616
2616
|
/**
|
|
2617
2617
|
* Saturate
|
|
2618
2618
|
* @see https://tailwindcss.com/docs/saturate
|
|
2619
2619
|
*/
|
|
2620
2620
|
saturate: [{
|
|
2621
|
-
saturate: [
|
|
2621
|
+
saturate: [K]
|
|
2622
2622
|
}],
|
|
2623
2623
|
/**
|
|
2624
2624
|
* Sepia
|
|
@@ -2668,28 +2668,28 @@ const q = (e) => {
|
|
|
2668
2668
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2669
2669
|
*/
|
|
2670
2670
|
"backdrop-hue-rotate": [{
|
|
2671
|
-
"backdrop-hue-rotate": [
|
|
2671
|
+
"backdrop-hue-rotate": [h]
|
|
2672
2672
|
}],
|
|
2673
2673
|
/**
|
|
2674
2674
|
* Backdrop Invert
|
|
2675
2675
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2676
2676
|
*/
|
|
2677
2677
|
"backdrop-invert": [{
|
|
2678
|
-
"backdrop-invert": [
|
|
2678
|
+
"backdrop-invert": [w]
|
|
2679
2679
|
}],
|
|
2680
2680
|
/**
|
|
2681
2681
|
* Backdrop Opacity
|
|
2682
2682
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2683
2683
|
*/
|
|
2684
2684
|
"backdrop-opacity": [{
|
|
2685
|
-
"backdrop-opacity": [
|
|
2685
|
+
"backdrop-opacity": [z]
|
|
2686
2686
|
}],
|
|
2687
2687
|
/**
|
|
2688
2688
|
* Backdrop Saturate
|
|
2689
2689
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2690
2690
|
*/
|
|
2691
2691
|
"backdrop-saturate": [{
|
|
2692
|
-
"backdrop-saturate": [
|
|
2692
|
+
"backdrop-saturate": [K]
|
|
2693
2693
|
}],
|
|
2694
2694
|
/**
|
|
2695
2695
|
* Backdrop Sepia
|
|
@@ -2747,7 +2747,7 @@ const q = (e) => {
|
|
|
2747
2747
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2748
2748
|
*/
|
|
2749
2749
|
transition: [{
|
|
2750
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
2750
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", D]
|
|
2751
2751
|
}],
|
|
2752
2752
|
/**
|
|
2753
2753
|
* Transition Duration
|
|
@@ -2761,7 +2761,7 @@ const q = (e) => {
|
|
|
2761
2761
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2762
2762
|
*/
|
|
2763
2763
|
ease: [{
|
|
2764
|
-
ease: ["linear", "in", "out", "in-out",
|
|
2764
|
+
ease: ["linear", "in", "out", "in-out", D]
|
|
2765
2765
|
}],
|
|
2766
2766
|
/**
|
|
2767
2767
|
* Transition Delay
|
|
@@ -2775,7 +2775,7 @@ const q = (e) => {
|
|
|
2775
2775
|
* @see https://tailwindcss.com/docs/animation
|
|
2776
2776
|
*/
|
|
2777
2777
|
animate: [{
|
|
2778
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
2778
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", D]
|
|
2779
2779
|
}],
|
|
2780
2780
|
// Transforms
|
|
2781
2781
|
/**
|
|
@@ -2790,28 +2790,28 @@ const q = (e) => {
|
|
|
2790
2790
|
* @see https://tailwindcss.com/docs/scale
|
|
2791
2791
|
*/
|
|
2792
2792
|
scale: [{
|
|
2793
|
-
scale: [
|
|
2793
|
+
scale: [X]
|
|
2794
2794
|
}],
|
|
2795
2795
|
/**
|
|
2796
2796
|
* Scale X
|
|
2797
2797
|
* @see https://tailwindcss.com/docs/scale
|
|
2798
2798
|
*/
|
|
2799
2799
|
"scale-x": [{
|
|
2800
|
-
"scale-x": [
|
|
2800
|
+
"scale-x": [X]
|
|
2801
2801
|
}],
|
|
2802
2802
|
/**
|
|
2803
2803
|
* Scale Y
|
|
2804
2804
|
* @see https://tailwindcss.com/docs/scale
|
|
2805
2805
|
*/
|
|
2806
2806
|
"scale-y": [{
|
|
2807
|
-
"scale-y": [
|
|
2807
|
+
"scale-y": [X]
|
|
2808
2808
|
}],
|
|
2809
2809
|
/**
|
|
2810
2810
|
* Rotate
|
|
2811
2811
|
* @see https://tailwindcss.com/docs/rotate
|
|
2812
2812
|
*/
|
|
2813
2813
|
rotate: [{
|
|
2814
|
-
rotate: [tt,
|
|
2814
|
+
rotate: [tt, D]
|
|
2815
2815
|
}],
|
|
2816
2816
|
/**
|
|
2817
2817
|
* Translate X
|
|
@@ -2832,21 +2832,21 @@ const q = (e) => {
|
|
|
2832
2832
|
* @see https://tailwindcss.com/docs/skew
|
|
2833
2833
|
*/
|
|
2834
2834
|
"skew-x": [{
|
|
2835
|
-
"skew-x": [
|
|
2835
|
+
"skew-x": [N]
|
|
2836
2836
|
}],
|
|
2837
2837
|
/**
|
|
2838
2838
|
* Skew Y
|
|
2839
2839
|
* @see https://tailwindcss.com/docs/skew
|
|
2840
2840
|
*/
|
|
2841
2841
|
"skew-y": [{
|
|
2842
|
-
"skew-y": [
|
|
2842
|
+
"skew-y": [N]
|
|
2843
2843
|
}],
|
|
2844
2844
|
/**
|
|
2845
2845
|
* Transform Origin
|
|
2846
2846
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2847
2847
|
*/
|
|
2848
2848
|
"transform-origin": [{
|
|
2849
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
2849
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", D]
|
|
2850
2850
|
}],
|
|
2851
2851
|
// Interactivity
|
|
2852
2852
|
/**
|
|
@@ -2868,7 +2868,7 @@ const q = (e) => {
|
|
|
2868
2868
|
* @see https://tailwindcss.com/docs/cursor
|
|
2869
2869
|
*/
|
|
2870
2870
|
cursor: [{
|
|
2871
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
2871
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", D]
|
|
2872
2872
|
}],
|
|
2873
2873
|
/**
|
|
2874
2874
|
* Caret Color
|
|
@@ -2903,126 +2903,126 @@ const q = (e) => {
|
|
|
2903
2903
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2904
2904
|
*/
|
|
2905
2905
|
"scroll-m": [{
|
|
2906
|
-
"scroll-m":
|
|
2906
|
+
"scroll-m": b()
|
|
2907
2907
|
}],
|
|
2908
2908
|
/**
|
|
2909
2909
|
* Scroll Margin X
|
|
2910
2910
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2911
2911
|
*/
|
|
2912
2912
|
"scroll-mx": [{
|
|
2913
|
-
"scroll-mx":
|
|
2913
|
+
"scroll-mx": b()
|
|
2914
2914
|
}],
|
|
2915
2915
|
/**
|
|
2916
2916
|
* Scroll Margin Y
|
|
2917
2917
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2918
2918
|
*/
|
|
2919
2919
|
"scroll-my": [{
|
|
2920
|
-
"scroll-my":
|
|
2920
|
+
"scroll-my": b()
|
|
2921
2921
|
}],
|
|
2922
2922
|
/**
|
|
2923
2923
|
* Scroll Margin Start
|
|
2924
2924
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2925
2925
|
*/
|
|
2926
2926
|
"scroll-ms": [{
|
|
2927
|
-
"scroll-ms":
|
|
2927
|
+
"scroll-ms": b()
|
|
2928
2928
|
}],
|
|
2929
2929
|
/**
|
|
2930
2930
|
* Scroll Margin End
|
|
2931
2931
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2932
2932
|
*/
|
|
2933
2933
|
"scroll-me": [{
|
|
2934
|
-
"scroll-me":
|
|
2934
|
+
"scroll-me": b()
|
|
2935
2935
|
}],
|
|
2936
2936
|
/**
|
|
2937
2937
|
* Scroll Margin Top
|
|
2938
2938
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2939
2939
|
*/
|
|
2940
2940
|
"scroll-mt": [{
|
|
2941
|
-
"scroll-mt":
|
|
2941
|
+
"scroll-mt": b()
|
|
2942
2942
|
}],
|
|
2943
2943
|
/**
|
|
2944
2944
|
* Scroll Margin Right
|
|
2945
2945
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2946
2946
|
*/
|
|
2947
2947
|
"scroll-mr": [{
|
|
2948
|
-
"scroll-mr":
|
|
2948
|
+
"scroll-mr": b()
|
|
2949
2949
|
}],
|
|
2950
2950
|
/**
|
|
2951
2951
|
* Scroll Margin Bottom
|
|
2952
2952
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2953
2953
|
*/
|
|
2954
2954
|
"scroll-mb": [{
|
|
2955
|
-
"scroll-mb":
|
|
2955
|
+
"scroll-mb": b()
|
|
2956
2956
|
}],
|
|
2957
2957
|
/**
|
|
2958
2958
|
* Scroll Margin Left
|
|
2959
2959
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2960
2960
|
*/
|
|
2961
2961
|
"scroll-ml": [{
|
|
2962
|
-
"scroll-ml":
|
|
2962
|
+
"scroll-ml": b()
|
|
2963
2963
|
}],
|
|
2964
2964
|
/**
|
|
2965
2965
|
* Scroll Padding
|
|
2966
2966
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2967
2967
|
*/
|
|
2968
2968
|
"scroll-p": [{
|
|
2969
|
-
"scroll-p":
|
|
2969
|
+
"scroll-p": b()
|
|
2970
2970
|
}],
|
|
2971
2971
|
/**
|
|
2972
2972
|
* Scroll Padding X
|
|
2973
2973
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2974
2974
|
*/
|
|
2975
2975
|
"scroll-px": [{
|
|
2976
|
-
"scroll-px":
|
|
2976
|
+
"scroll-px": b()
|
|
2977
2977
|
}],
|
|
2978
2978
|
/**
|
|
2979
2979
|
* Scroll Padding Y
|
|
2980
2980
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2981
2981
|
*/
|
|
2982
2982
|
"scroll-py": [{
|
|
2983
|
-
"scroll-py":
|
|
2983
|
+
"scroll-py": b()
|
|
2984
2984
|
}],
|
|
2985
2985
|
/**
|
|
2986
2986
|
* Scroll Padding Start
|
|
2987
2987
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2988
2988
|
*/
|
|
2989
2989
|
"scroll-ps": [{
|
|
2990
|
-
"scroll-ps":
|
|
2990
|
+
"scroll-ps": b()
|
|
2991
2991
|
}],
|
|
2992
2992
|
/**
|
|
2993
2993
|
* Scroll Padding End
|
|
2994
2994
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2995
2995
|
*/
|
|
2996
2996
|
"scroll-pe": [{
|
|
2997
|
-
"scroll-pe":
|
|
2997
|
+
"scroll-pe": b()
|
|
2998
2998
|
}],
|
|
2999
2999
|
/**
|
|
3000
3000
|
* Scroll Padding Top
|
|
3001
3001
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3002
3002
|
*/
|
|
3003
3003
|
"scroll-pt": [{
|
|
3004
|
-
"scroll-pt":
|
|
3004
|
+
"scroll-pt": b()
|
|
3005
3005
|
}],
|
|
3006
3006
|
/**
|
|
3007
3007
|
* Scroll Padding Right
|
|
3008
3008
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3009
3009
|
*/
|
|
3010
3010
|
"scroll-pr": [{
|
|
3011
|
-
"scroll-pr":
|
|
3011
|
+
"scroll-pr": b()
|
|
3012
3012
|
}],
|
|
3013
3013
|
/**
|
|
3014
3014
|
* Scroll Padding Bottom
|
|
3015
3015
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3016
3016
|
*/
|
|
3017
3017
|
"scroll-pb": [{
|
|
3018
|
-
"scroll-pb":
|
|
3018
|
+
"scroll-pb": b()
|
|
3019
3019
|
}],
|
|
3020
3020
|
/**
|
|
3021
3021
|
* Scroll Padding Left
|
|
3022
3022
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3023
3023
|
*/
|
|
3024
3024
|
"scroll-pl": [{
|
|
3025
|
-
"scroll-pl":
|
|
3025
|
+
"scroll-pl": b()
|
|
3026
3026
|
}],
|
|
3027
3027
|
/**
|
|
3028
3028
|
* Scroll Snap Align
|
|
@@ -3090,7 +3090,7 @@ const q = (e) => {
|
|
|
3090
3090
|
* @see https://tailwindcss.com/docs/will-change
|
|
3091
3091
|
*/
|
|
3092
3092
|
"will-change": [{
|
|
3093
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
3093
|
+
"will-change": ["auto", "scroll", "contents", "transform", D]
|
|
3094
3094
|
}],
|
|
3095
3095
|
// SVG
|
|
3096
3096
|
/**
|
|
@@ -3788,40 +3788,40 @@ const Lt = [
|
|
|
3788
3788
|
const e = Gt(Tt);
|
|
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, A] = Ae([]), [c, u] = Ae(""), [s, d] = Ae(!1), [p,
|
|
3791
|
+
const { client: a, config: n } = e, [i, A] = Ae([]), [c, u] = Ae(""), [s, d] = Ae(!1), [p, h] = Ae(n.defaultVariant || "ANALYST"), [w, T] = Ae({
|
|
3792
3792
|
vertical: "SOFTWARE_DEV",
|
|
3793
3793
|
focus: "DISCOVERY",
|
|
3794
3794
|
data: n.initialData || null
|
|
3795
|
-
}), [o,
|
|
3796
|
-
(
|
|
3797
|
-
), [
|
|
3798
|
-
const k = Lt.find((
|
|
3795
|
+
}), [o, S] = Ae(""), v = It(() => Lt.filter(
|
|
3796
|
+
(X) => X.vertical === w.vertical && X.variant === p
|
|
3797
|
+
), [w.vertical, p]), P = ct((X) => {
|
|
3798
|
+
const k = Lt.find((N) => N.id === X);
|
|
3799
3799
|
if (k) {
|
|
3800
|
-
|
|
3801
|
-
let
|
|
3802
|
-
if (
|
|
3800
|
+
S(X), u(k.prompt || "");
|
|
3801
|
+
let N = k.data || null;
|
|
3802
|
+
if (N && typeof N == "string")
|
|
3803
3803
|
try {
|
|
3804
|
-
const Y = JSON.parse(
|
|
3805
|
-
|
|
3804
|
+
const Y = JSON.parse(N);
|
|
3805
|
+
N = JSON.stringify(Y, null, 2);
|
|
3806
3806
|
} catch {
|
|
3807
3807
|
}
|
|
3808
|
-
else
|
|
3809
|
-
|
|
3808
|
+
else N && typeof N == "object" && (N = JSON.stringify(N, null, 2));
|
|
3809
|
+
T((Y) => ({
|
|
3810
3810
|
...Y,
|
|
3811
3811
|
focus: k.focus || Y.focus,
|
|
3812
|
-
data:
|
|
3812
|
+
data: N
|
|
3813
3813
|
}));
|
|
3814
3814
|
} else
|
|
3815
|
-
|
|
3816
|
-
}, []),
|
|
3815
|
+
S(""), T((N) => ({ ...N, data: null }));
|
|
3816
|
+
}, []), z = ct(() => {
|
|
3817
3817
|
A([]), n.persist && localStorage.removeItem(`eva_agent_chat_${n.apiKey}`), ut.info("Neural session reset.");
|
|
3818
3818
|
}, [n.apiKey, n.persist, n]);
|
|
3819
3819
|
Ie(() => {
|
|
3820
3820
|
if (n.persist) {
|
|
3821
|
-
const
|
|
3822
|
-
if (
|
|
3821
|
+
const X = localStorage.getItem(`eva_agent_chat_${n.apiKey}`);
|
|
3822
|
+
if (X)
|
|
3823
3823
|
try {
|
|
3824
|
-
A(JSON.parse(
|
|
3824
|
+
A(JSON.parse(X));
|
|
3825
3825
|
} catch (k) {
|
|
3826
3826
|
console.error("Failed to load chat history", k);
|
|
3827
3827
|
}
|
|
@@ -3829,24 +3829,24 @@ const Lt = [
|
|
|
3829
3829
|
}, [n.apiKey, n.persist]), Ie(() => {
|
|
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
|
-
const
|
|
3833
|
-
|
|
3834
|
-
}, []),
|
|
3835
|
-
const k =
|
|
3832
|
+
const B = ct((X) => {
|
|
3833
|
+
T((k) => ({ ...k, ...X })), X.vertical && S("");
|
|
3834
|
+
}, []), K = ct(async (X) => {
|
|
3835
|
+
const k = X || c;
|
|
3836
3836
|
if (!k.trim() || !a || s) return;
|
|
3837
|
-
const
|
|
3837
|
+
const N = {
|
|
3838
3838
|
role: "user",
|
|
3839
3839
|
content: k,
|
|
3840
3840
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
3841
3841
|
};
|
|
3842
|
-
A((Y) => [...Y,
|
|
3842
|
+
A((Y) => [...Y, N]), X || u(""), d(!0);
|
|
3843
3843
|
try {
|
|
3844
3844
|
const Y = {
|
|
3845
3845
|
prompt: k,
|
|
3846
|
-
vertical:
|
|
3847
|
-
focus:
|
|
3848
|
-
data: typeof
|
|
3849
|
-
ingestionMode:
|
|
3846
|
+
vertical: w.vertical,
|
|
3847
|
+
focus: w.focus,
|
|
3848
|
+
data: typeof w.data == "string" ? JSON.parse(w.data) : w.data,
|
|
3849
|
+
ingestionMode: w.data ? "DATA" : "TEXT"
|
|
3850
3850
|
};
|
|
3851
3851
|
let ne = p;
|
|
3852
3852
|
const W = k.toLowerCase();
|
|
@@ -3854,21 +3854,21 @@ const Lt = [
|
|
|
3854
3854
|
const oe = await a.query(ne, Y);
|
|
3855
3855
|
if (oe.success) {
|
|
3856
3856
|
let te = "";
|
|
3857
|
-
const
|
|
3858
|
-
if (typeof
|
|
3857
|
+
const b = oe.data;
|
|
3858
|
+
if (typeof b == "string")
|
|
3859
3859
|
try {
|
|
3860
|
-
const H = JSON.parse(
|
|
3861
|
-
te = H.analysis || H.summary || H.response || H.result ||
|
|
3860
|
+
const H = JSON.parse(b);
|
|
3861
|
+
te = H.analysis || H.summary || H.response || H.result || b, H.diagram && (te += `
|
|
3862
3862
|
|
|
3863
3863
|
### Neural Blueprint
|
|
3864
3864
|
${H.diagram}`);
|
|
3865
3865
|
} catch {
|
|
3866
|
-
te =
|
|
3866
|
+
te = b;
|
|
3867
3867
|
}
|
|
3868
|
-
else typeof
|
|
3868
|
+
else typeof b == "object" && b !== null ? (te = b.analysis || b.summary || b.response || b.result || JSON.stringify(b, null, 2), b.diagram && (te += `
|
|
3869
3869
|
|
|
3870
3870
|
### Neural Blueprint
|
|
3871
|
-
${
|
|
3871
|
+
${b.diagram}`)) : te = String(b);
|
|
3872
3872
|
const re = {
|
|
3873
3873
|
role: "assistant",
|
|
3874
3874
|
content: te,
|
|
@@ -3885,21 +3885,21 @@ ${h.diagram}`)) : te = String(h);
|
|
|
3885
3885
|
} finally {
|
|
3886
3886
|
d(!1);
|
|
3887
3887
|
}
|
|
3888
|
-
}, [c, a, s, p,
|
|
3888
|
+
}, [c, a, s, p, w]);
|
|
3889
3889
|
return {
|
|
3890
3890
|
messages: i,
|
|
3891
3891
|
input: c,
|
|
3892
3892
|
setInput: u,
|
|
3893
3893
|
isProcessing: s,
|
|
3894
3894
|
activeVariant: p,
|
|
3895
|
-
setActiveVariant:
|
|
3896
|
-
handleSend:
|
|
3897
|
-
payloadConfig:
|
|
3898
|
-
updatePayloadConfig:
|
|
3899
|
-
samples:
|
|
3895
|
+
setActiveVariant: h,
|
|
3896
|
+
handleSend: K,
|
|
3897
|
+
payloadConfig: w,
|
|
3898
|
+
updatePayloadConfig: B,
|
|
3899
|
+
samples: v.map((X) => ({ ...X, isDataDriven: !!X.data })),
|
|
3900
3900
|
selectedSampleId: o,
|
|
3901
|
-
applySample:
|
|
3902
|
-
clearChat:
|
|
3901
|
+
applySample: P,
|
|
3902
|
+
clearChat: z,
|
|
3903
3903
|
isAuthorized: !!a
|
|
3904
3904
|
};
|
|
3905
3905
|
}, Ct = ({ chart: e }) => {
|
|
@@ -3945,24 +3945,40 @@ ${h.diagram}`)) : te = String(h);
|
|
|
3945
3945
|
const d = `mermaid-render-${Math.random().toString(36).slice(2, 11)}`;
|
|
3946
3946
|
let p = e.trim().replace(/\\n/g, `
|
|
3947
3947
|
`).replace(/^`{3}mermaid\n?/, "").replace(/\n?`{3}$/, "").trim();
|
|
3948
|
-
const
|
|
3949
|
-
|
|
3950
|
-
let
|
|
3948
|
+
const h = /(graph|flowchart|sequenceDiagram|gantt|classDiagram|stateDiagram|erDiagram|pie|journey|C4Context|mindmap|timeline)[\s\S]+/i, w = p.match(h);
|
|
3949
|
+
w && (p = w[0].trim());
|
|
3950
|
+
let T = p.split(`
|
|
3951
3951
|
`);
|
|
3952
|
-
if (
|
|
3953
|
-
const
|
|
3954
|
-
if (
|
|
3955
|
-
const
|
|
3956
|
-
|
|
3952
|
+
if (T.length > 0) {
|
|
3953
|
+
const v = T[0].toLowerCase();
|
|
3954
|
+
if (v.startsWith("graph ") || v.startsWith("flowchart ")) {
|
|
3955
|
+
const P = ((u = v.match(/\s(td|lr|bt|rl)/i)) == null ? void 0 : u[0]) || " TD";
|
|
3956
|
+
T[0] = `flowchart${P}`, p = T.join(`
|
|
3957
3957
|
`);
|
|
3958
3958
|
}
|
|
3959
3959
|
}
|
|
3960
3960
|
p = p.replace(/;/g, "");
|
|
3961
|
+
const o = p.split(`
|
|
3962
|
+
`), S = [];
|
|
3963
|
+
for (let v of o) {
|
|
3964
|
+
if (v.includes("&") && v.includes("-->")) {
|
|
3965
|
+
const [P, z] = v.split("-->"), B = P.split("&");
|
|
3966
|
+
if (B.length > 1) {
|
|
3967
|
+
B.forEach((K) => {
|
|
3968
|
+
S.push(`${K.trim()} --> ${z.trim()}`);
|
|
3969
|
+
});
|
|
3970
|
+
continue;
|
|
3971
|
+
}
|
|
3972
|
+
}
|
|
3973
|
+
S.push(v);
|
|
3974
|
+
}
|
|
3975
|
+
p = S.join(`
|
|
3976
|
+
`);
|
|
3961
3977
|
try {
|
|
3962
|
-
s.render(d, p).then((
|
|
3963
|
-
a.current && (a.current.innerHTML =
|
|
3964
|
-
}).catch((
|
|
3965
|
-
console.error("Mermaid Render Error:",
|
|
3978
|
+
s.render(d, p).then((v) => {
|
|
3979
|
+
a.current && (a.current.innerHTML = v.svg);
|
|
3980
|
+
}).catch((v) => {
|
|
3981
|
+
console.error("Mermaid Render Error:", v), i("Neural Blueprint Syntax Error");
|
|
3966
3982
|
});
|
|
3967
3983
|
} catch {
|
|
3968
3984
|
i("Neural Blueprint Sync Failed");
|
|
@@ -4060,24 +4076,24 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4060
4076
|
const {
|
|
4061
4077
|
messages: d,
|
|
4062
4078
|
input: p,
|
|
4063
|
-
setInput:
|
|
4064
|
-
isProcessing:
|
|
4065
|
-
activeVariant:
|
|
4079
|
+
setInput: h,
|
|
4080
|
+
isProcessing: w,
|
|
4081
|
+
activeVariant: T,
|
|
4066
4082
|
setActiveVariant: o,
|
|
4067
|
-
handleSend:
|
|
4068
|
-
payloadConfig:
|
|
4069
|
-
updatePayloadConfig:
|
|
4070
|
-
samples:
|
|
4071
|
-
selectedSampleId:
|
|
4072
|
-
applySample:
|
|
4073
|
-
clearChat:
|
|
4083
|
+
handleSend: S,
|
|
4084
|
+
payloadConfig: v,
|
|
4085
|
+
updatePayloadConfig: P,
|
|
4086
|
+
samples: z,
|
|
4087
|
+
selectedSampleId: B,
|
|
4088
|
+
applySample: K,
|
|
4089
|
+
clearChat: X,
|
|
4074
4090
|
isAuthorized: k
|
|
4075
|
-
} = Ba(), [
|
|
4091
|
+
} = Ba(), [N, Y] = Ae(v), [ne, W] = Ae(T);
|
|
4076
4092
|
Ie(() => {
|
|
4077
|
-
i && (Y(
|
|
4093
|
+
i && (Y(v), W(T));
|
|
4078
4094
|
}, [i]);
|
|
4079
4095
|
const oe = () => {
|
|
4080
|
-
o(ne),
|
|
4096
|
+
o(ne), P(N), A(!1);
|
|
4081
4097
|
}, te = [
|
|
4082
4098
|
{ id: "SOFTWARE_DEV", name: "Software & Cloud" },
|
|
4083
4099
|
{ id: "FINANCE", name: "Finance & Quants" },
|
|
@@ -4085,63 +4101,63 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4085
4101
|
{ id: "MANUFACTURING", name: "Industrial & MFG" },
|
|
4086
4102
|
{ id: "REAL_ESTATE", name: "Real Estate & Const." },
|
|
4087
4103
|
{ id: "RETAIL", name: "Retail & Commerce" }
|
|
4088
|
-
],
|
|
4104
|
+
], b = () => {
|
|
4089
4105
|
var g;
|
|
4090
4106
|
(g = s.current) == null || g.scrollIntoView({ behavior: "smooth" });
|
|
4091
4107
|
};
|
|
4092
4108
|
Ie(() => {
|
|
4093
|
-
|
|
4094
|
-
}, [d,
|
|
4109
|
+
b();
|
|
4110
|
+
}, [d, w]);
|
|
4095
4111
|
const re = (g) => g.isDataDriven ? " [DATA]" : " [PROMPT]", H = ({ msg: g }) => {
|
|
4096
|
-
const { content: V, rawPayload:
|
|
4112
|
+
const { content: V, rawPayload: Q, usage: fe } = g, C = V.split(/(?=### )/g), J = (Z) => Z.includes("```mermaid") ? Z.split(/```mermaid([\s\S]*?)```/).map((O, M) => M % 2 === 1 ? /* @__PURE__ */ r.jsx(Ct, { chart: O.trim() }, M) : /* @__PURE__ */ r.jsx("div", { children: J(O) }, M)) : Z.split(`
|
|
4097
4113
|
`).map((E, O) => {
|
|
4098
|
-
const
|
|
4099
|
-
if (!
|
|
4100
|
-
if (
|
|
4114
|
+
const M = E.trim();
|
|
4115
|
+
if (!M) return /* @__PURE__ */ r.jsx("div", { className: "h-2" }, O);
|
|
4116
|
+
if (M.startsWith("- ") || M.startsWith("* ") || M.match(/^\d+\. /))
|
|
4101
4117
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex gap-2 items-start mb-1.5 pl-2 group", children: [
|
|
4102
4118
|
/* @__PURE__ */ r.jsx("div", { className: "w-1.5 h-1.5 rounded-full bg-amber-500/60 mt-1.5 shrink-0 group-hover:scale-125 transition-transform" }),
|
|
4103
|
-
/* @__PURE__ */ r.jsx("span", { className: "text-[11px] leading-relaxed text-slate-300", children:
|
|
4119
|
+
/* @__PURE__ */ r.jsx("span", { className: "text-[11px] leading-relaxed text-slate-300", children: M.replace(/^- |\* |\d+\. /, "") })
|
|
4104
4120
|
] }, O);
|
|
4105
|
-
const
|
|
4106
|
-
return /* @__PURE__ */ r.jsx("p", { className: "mb-2 leading-relaxed text-slate-300", children:
|
|
4107
|
-
(
|
|
4121
|
+
const _ = M.split(/(\*\*.*?\*\*)/g);
|
|
4122
|
+
return /* @__PURE__ */ r.jsx("p", { className: "mb-2 leading-relaxed text-slate-300", children: _.map(
|
|
4123
|
+
($, L) => $.startsWith("**") && $.endsWith("**") ? /* @__PURE__ */ r.jsx("strong", { className: "text-amber-500/90 font-black", children: $.slice(2, -2) }, L) : $
|
|
4108
4124
|
) }, O);
|
|
4109
4125
|
});
|
|
4110
4126
|
return /* @__PURE__ */ r.jsxs("div", { className: "space-y-4", children: [
|
|
4111
4127
|
C.map((Z, E) => {
|
|
4112
4128
|
if (Z.startsWith("### ")) {
|
|
4113
4129
|
const O = Z.split(`
|
|
4114
|
-
`),
|
|
4115
|
-
`),
|
|
4130
|
+
`), M = O[0].replace("### ", ""), _ = O.slice(1).join(`
|
|
4131
|
+
`), $ = M.toLowerCase().includes("blueprint"), L = /^\s*(graph|flowchart|sequenceDiagram|gantt|classDiagram|stateDiagram|erDiagram|pie|journey|C4Context|mindmap|timeline)/i.test(_.trim());
|
|
4116
4132
|
return /* @__PURE__ */ r.jsxs("div", { className: he(
|
|
4117
4133
|
"group relative",
|
|
4118
|
-
|
|
4134
|
+
$ ? "p-4 rounded-2xl bg-amber-500/5 border border-amber-500/10 mt-6" : ""
|
|
4119
4135
|
), children: [
|
|
4120
|
-
|
|
4136
|
+
$ && /* @__PURE__ */ r.jsx("div", { className: "absolute top-0 right-0 p-2 opacity-20 group-hover:opacity-100 transition-opacity", children: /* @__PURE__ */ r.jsx(pr, { size: 12, className: "text-amber-500" }) }),
|
|
4121
4137
|
/* @__PURE__ */ r.jsxs("h4", { className: he(
|
|
4122
4138
|
"text-[9px] font-black uppercase tracking-[0.2em] mb-3 flex items-center gap-2",
|
|
4123
|
-
|
|
4139
|
+
$ ? "text-amber-500" : "text-slate-500"
|
|
4124
4140
|
), children: [
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4141
|
+
!$ && /* @__PURE__ */ r.jsx("div", { className: "w-1 h-3 bg-amber-500/20 rounded-full" }),
|
|
4142
|
+
M,
|
|
4143
|
+
$ && /* @__PURE__ */ r.jsx("span", { className: "text-[7px] bg-amber-500/20 px-1.5 py-0.5 rounded text-amber-500 ml-auto", children: "Neural Core v1.6" })
|
|
4128
4144
|
] }),
|
|
4129
4145
|
/* @__PURE__ */ r.jsx("div", { className: he(
|
|
4130
4146
|
"font-sans",
|
|
4131
|
-
|
|
4132
|
-
), children: L ? /* @__PURE__ */ r.jsx(Ct, { chart:
|
|
4147
|
+
$ ? "font-mono text-[10px] text-amber-500/70" : ""
|
|
4148
|
+
), children: L ? /* @__PURE__ */ r.jsx(Ct, { chart: _.trim() }) : J(_) })
|
|
4133
4149
|
] }, E);
|
|
4134
4150
|
}
|
|
4135
4151
|
return /* @__PURE__ */ r.jsx("div", { children: J(Z) }, E);
|
|
4136
4152
|
}),
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
Array.isArray(
|
|
4142
|
-
|
|
4153
|
+
Q && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4154
|
+
Q.tasks && /* @__PURE__ */ r.jsx(Pa, { tasks: Q.tasks, team: Q.team }),
|
|
4155
|
+
Q.nodes && /* @__PURE__ */ r.jsx(Bt, { data: Q.nodes }),
|
|
4156
|
+
Q.metrics && /* @__PURE__ */ r.jsx(Bt, { data: Q.metrics }),
|
|
4157
|
+
Array.isArray(Q.data) && /* @__PURE__ */ r.jsx(Bt, { data: Q.data }),
|
|
4158
|
+
Q.diagram && /* @__PURE__ */ r.jsx(Ct, { chart: Q.diagram })
|
|
4143
4159
|
] }),
|
|
4144
|
-
/* @__PURE__ */ r.jsx(Da, { usage: fe, rawPayload:
|
|
4160
|
+
/* @__PURE__ */ r.jsx(Da, { usage: fe, rawPayload: Q })
|
|
4145
4161
|
] });
|
|
4146
4162
|
};
|
|
4147
4163
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -4164,7 +4180,7 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4164
4180
|
transition: { type: "spring", damping: 25, stiffness: 200 },
|
|
4165
4181
|
className: he(
|
|
4166
4182
|
"fixed top-0 right-0 h-full w-full sm:max-w-[480px] z-[9991] flex flex-col eva-holographic-glass overflow-hidden border-l border-white/10 shadow-2xl",
|
|
4167
|
-
|
|
4183
|
+
w ? "eva-glow-thinking" : "eva-glow-listening"
|
|
4168
4184
|
),
|
|
4169
4185
|
children: [
|
|
4170
4186
|
/* @__PURE__ */ r.jsxs("div", { className: "p-6 flex items-center justify-between shrink-0 bg-[#0a0a20]/90 border-b border-white/5 backdrop-blur-xl", children: [
|
|
@@ -4188,7 +4204,7 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4188
4204
|
/* @__PURE__ */ r.jsx(
|
|
4189
4205
|
"button",
|
|
4190
4206
|
{
|
|
4191
|
-
onClick:
|
|
4207
|
+
onClick: X,
|
|
4192
4208
|
title: "Clear Neural Context",
|
|
4193
4209
|
className: "p-2 rounded-lg text-slate-400 hover:text-rose-400 hover:bg-rose-500/10 transition-all",
|
|
4194
4210
|
children: /* @__PURE__ */ r.jsx(sr, { size: 16 })
|
|
@@ -4229,11 +4245,11 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4229
4245
|
onClick: () => o(g),
|
|
4230
4246
|
className: he(
|
|
4231
4247
|
"px-3 py-1 rounded-full text-[8px] font-black uppercase tracking-widest transition-all whitespace-nowrap border",
|
|
4232
|
-
|
|
4248
|
+
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"
|
|
4233
4249
|
),
|
|
4234
4250
|
style: {
|
|
4235
|
-
backgroundColor:
|
|
4236
|
-
color:
|
|
4251
|
+
backgroundColor: T === g ? "#d4af37" : "transparent",
|
|
4252
|
+
color: T === g ? "black" : void 0
|
|
4237
4253
|
},
|
|
4238
4254
|
children: g
|
|
4239
4255
|
},
|
|
@@ -4255,7 +4271,7 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4255
4271
|
].map((g, V) => /* @__PURE__ */ r.jsx(
|
|
4256
4272
|
"button",
|
|
4257
4273
|
{
|
|
4258
|
-
onClick: () =>
|
|
4274
|
+
onClick: () => S(g),
|
|
4259
4275
|
className: "p-3 rounded-xl bg-white/5 border border-white/5 text-[9px] font-black uppercase tracking-widest text-slate-400 hover:text-amber-500 hover:bg-amber-500/5 hover:border-amber-500/20 transition-all text-left",
|
|
4260
4276
|
children: g
|
|
4261
4277
|
},
|
|
@@ -4279,7 +4295,7 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4279
4295
|
),
|
|
4280
4296
|
/* @__PURE__ */ r.jsx("span", { className: "text-[7px] font-black text-slate-500 uppercase tracking-widest px-2", children: g.role === "user" ? "Direct Input" : `Eva ${g.variant || "Neural"}` })
|
|
4281
4297
|
] }, V)),
|
|
4282
|
-
|
|
4298
|
+
w && /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col items-center justify-center py-12 space-y-6", children: [
|
|
4283
4299
|
/* @__PURE__ */ r.jsxs("div", { className: "relative w-24 h-24", children: [
|
|
4284
4300
|
/* @__PURE__ */ r.jsx(
|
|
4285
4301
|
Ge.div,
|
|
@@ -4360,7 +4376,7 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4360
4376
|
/* @__PURE__ */ r.jsx(
|
|
4361
4377
|
"select",
|
|
4362
4378
|
{
|
|
4363
|
-
value:
|
|
4379
|
+
value: N.vertical,
|
|
4364
4380
|
onChange: (g) => Y((V) => ({ ...V, vertical: g.target.value })),
|
|
4365
4381
|
className: "w-full bg-[#0a0a20] border border-white/10 rounded-xl p-3 text-[10px] font-bold text-white outline-none focus:border-amber-500/40 transition-all appearance-none cursor-pointer",
|
|
4366
4382
|
style: { color: "white", backgroundColor: "#0a0a20" },
|
|
@@ -4373,7 +4389,7 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4373
4389
|
/* @__PURE__ */ r.jsxs(
|
|
4374
4390
|
"select",
|
|
4375
4391
|
{
|
|
4376
|
-
value:
|
|
4392
|
+
value: N.focus,
|
|
4377
4393
|
onChange: (g) => Y((V) => ({ ...V, focus: g.target.value })),
|
|
4378
4394
|
className: "w-full bg-[#0a0a20] border border-white/10 rounded-xl p-3 text-[10px] font-bold text-white outline-none focus:border-amber-500/40 transition-all appearance-none cursor-pointer",
|
|
4379
4395
|
style: { color: "white", backgroundColor: "#0a0a20" },
|
|
@@ -4393,15 +4409,15 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4393
4409
|
/* @__PURE__ */ r.jsxs(
|
|
4394
4410
|
"select",
|
|
4395
4411
|
{
|
|
4396
|
-
value:
|
|
4412
|
+
value: B,
|
|
4397
4413
|
onChange: (g) => {
|
|
4398
|
-
|
|
4414
|
+
K(g.target.value);
|
|
4399
4415
|
},
|
|
4400
4416
|
className: "w-full bg-[#0a0a20] border border-white/10 rounded-xl p-3 text-[10px] font-bold text-amber-500 outline-none focus:border-amber-500/40 transition-all appearance-none cursor-pointer",
|
|
4401
4417
|
style: { backgroundColor: "#0a0a20" },
|
|
4402
4418
|
children: [
|
|
4403
4419
|
/* @__PURE__ */ r.jsx("option", { value: "", style: { color: "#64748b", backgroundColor: "#0a0a20" }, children: "Manual Input (No Template)" }),
|
|
4404
|
-
|
|
4420
|
+
z.map((g) => /* @__PURE__ */ r.jsxs("option", { value: g.id, style: { color: "white", backgroundColor: "#0a0a20" }, children: [
|
|
4405
4421
|
g.name,
|
|
4406
4422
|
re(g)
|
|
4407
4423
|
] }, g.id))
|
|
@@ -4414,7 +4430,7 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4414
4430
|
/* @__PURE__ */ r.jsx(
|
|
4415
4431
|
"textarea",
|
|
4416
4432
|
{
|
|
4417
|
-
value:
|
|
4433
|
+
value: N.data ? typeof N.data == "string" ? N.data : JSON.stringify(N.data, null, 2) : "",
|
|
4418
4434
|
onChange: (g) => {
|
|
4419
4435
|
Y((V) => ({ ...V, data: g.target.value }));
|
|
4420
4436
|
},
|
|
@@ -4425,7 +4441,7 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4425
4441
|
] }),
|
|
4426
4442
|
/* @__PURE__ */ r.jsxs("div", { className: "space-y-2", children: [
|
|
4427
4443
|
/* @__PURE__ */ r.jsx("label", { className: "text-[8px] font-black text-slate-500 uppercase tracking-widest ml-1", children: "Current Neural Prompt (Preview)" }),
|
|
4428
|
-
/* @__PURE__ */ r.jsx("div", { className: "w-full bg-amber-500/5 border border-amber-500/10 rounded-xl p-4 text-[10px] font-medium text-slate-300 min-h-[60px] max-h-[120px] overflow-y-auto italic leading-relaxed", children: p || (
|
|
4444
|
+
/* @__PURE__ */ r.jsx("div", { className: "w-full bg-amber-500/5 border border-amber-500/10 rounded-xl p-4 text-[10px] font-medium text-slate-300 min-h-[60px] max-h-[120px] overflow-y-auto italic leading-relaxed", children: p || (B ? "Neural template active. Ready for synthesis." : "Type in chat to preview prompt...") })
|
|
4429
4445
|
] }),
|
|
4430
4446
|
/* @__PURE__ */ r.jsxs("div", { className: "pt-4 pb-8", children: [
|
|
4431
4447
|
/* @__PURE__ */ r.jsxs(
|
|
@@ -4458,7 +4474,7 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4458
4474
|
"form",
|
|
4459
4475
|
{
|
|
4460
4476
|
onSubmit: (g) => {
|
|
4461
|
-
g.preventDefault(),
|
|
4477
|
+
g.preventDefault(), S();
|
|
4462
4478
|
},
|
|
4463
4479
|
className: "relative flex items-center gap-3 p-2 rounded-2xl bg-white/5 border border-white/10 group focus-within:border-amber-500/40 focus-within:shadow-[0_0_30px_rgba(212,175,55,0.1)] transition-all duration-500",
|
|
4464
4480
|
children: [
|
|
@@ -4466,20 +4482,20 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4466
4482
|
"textarea",
|
|
4467
4483
|
{
|
|
4468
4484
|
value: p,
|
|
4469
|
-
onChange: (g) =>
|
|
4485
|
+
onChange: (g) => h(g.target.value),
|
|
4470
4486
|
onKeyDown: (g) => {
|
|
4471
|
-
g.key === "Enter" && !g.shiftKey && (g.preventDefault(),
|
|
4487
|
+
g.key === "Enter" && !g.shiftKey && (g.preventDefault(), S());
|
|
4472
4488
|
},
|
|
4473
4489
|
placeholder: "Invoke neural command...",
|
|
4474
4490
|
className: "flex-1 bg-transparent border-none text-white text-[11px] placeholder:text-slate-600 focus:ring-0 min-h-[44px] max-h-[120px] py-3 px-3 resize-none eva-agent-scrollbar outline-none font-medium",
|
|
4475
|
-
disabled:
|
|
4491
|
+
disabled: w || !k
|
|
4476
4492
|
}
|
|
4477
4493
|
),
|
|
4478
4494
|
/* @__PURE__ */ r.jsx(
|
|
4479
4495
|
"button",
|
|
4480
4496
|
{
|
|
4481
4497
|
type: "submit",
|
|
4482
|
-
disabled: !p.trim() ||
|
|
4498
|
+
disabled: !p.trim() || w || !k,
|
|
4483
4499
|
className: "w-11 h-11 rounded-xl bg-amber-500 text-white flex items-center justify-center shrink-0 shadow-lg shadow-amber-500/20 disabled:opacity-30 disabled:grayscale transition-all hover:scale-105 active:scale-95",
|
|
4484
4500
|
children: /* @__PURE__ */ r.jsx(fr, { size: 18, className: "text-white" })
|
|
4485
4501
|
}
|
|
@@ -4509,17 +4525,17 @@ ${h.diagram}`)) : te = String(h);
|
|
|
4509
4525
|
environment: i = "PROD",
|
|
4510
4526
|
persist: A = !0,
|
|
4511
4527
|
theme: c = "dark"
|
|
4512
|
-
} = e, [u, s] = Ae(!1), [d, p] = Ae(!1),
|
|
4528
|
+
} = e, [u, s] = Ae(!1), [d, p] = Ae(!1), h = It(() => {
|
|
4513
4529
|
if (!a) return null;
|
|
4514
|
-
const
|
|
4530
|
+
const w = n || Ma[i];
|
|
4515
4531
|
return new rr({
|
|
4516
4532
|
apiKey: a,
|
|
4517
|
-
baseUrl:
|
|
4533
|
+
baseUrl: w,
|
|
4518
4534
|
environment: i
|
|
4519
4535
|
});
|
|
4520
4536
|
}, [a, n, i]);
|
|
4521
4537
|
return /* @__PURE__ */ r.jsx(Tt.Provider, { value: {
|
|
4522
|
-
client:
|
|
4538
|
+
client: h,
|
|
4523
4539
|
isOpen: u,
|
|
4524
4540
|
setIsOpen: s,
|
|
4525
4541
|
isMinimized: d,
|