@centive/aria-sdk 0.1.0 → 0.1.1
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/README.md +83 -23
- package/dist/components/AriaWidget.d.ts.map +1 -1
- package/dist/context/AriaProvider.d.ts.map +1 -1
- package/dist/{index-C78Qd1Uk.js → index-6g04Wt4g.js} +862 -804
- package/dist/index-6g04Wt4g.js.map +1 -0
- package/dist/{index-DyttThh2.js → index-CWi95RnT.js} +3 -3
- package/dist/{index-DyttThh2.js.map → index-CWi95RnT.js.map} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/types/index.d.ts +29 -11
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-C78Qd1Uk.js.map +0 -1
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { jsx as w, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { createContext as sn, useState as ue, useRef as Pe, useCallback as
|
|
1
|
+
import { jsx as w, jsxs as M, Fragment as Ot } from "react/jsx-runtime";
|
|
2
|
+
import * as Ee from "react";
|
|
3
|
+
import { createContext as sn, useState as ue, useRef as Pe, useCallback as le, useEffect as tt, useContext as on } from "react";
|
|
4
4
|
import { CheckCircle2 as yt, AlertCircle as at, RefreshCw as bt, Clock as an, MessageCircle as Mt, User as ln, Bot as cn, Send as dn, MessageCircleOff as un, MicOff as wt, Mic as St, X as et, Loader2 as hn, MessageSquare as fn } from "lucide-react";
|
|
5
|
-
var lt = {},
|
|
5
|
+
var lt = {}, Je = {}, Ct;
|
|
6
6
|
function pn() {
|
|
7
|
-
if (Ct) return
|
|
8
|
-
Ct = 1,
|
|
7
|
+
if (Ct) return Je;
|
|
8
|
+
Ct = 1, Je.byteLength = l, Je.toByteArray = y, Je.fromByteArray = C;
|
|
9
9
|
for (var i = [], n = [], r = typeof Uint8Array < "u" ? Uint8Array : Array, o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", d = 0, h = o.length; d < h; ++d)
|
|
10
10
|
i[d] = o[d], n[o.charCodeAt(d)] = d;
|
|
11
11
|
n[45] = 62, n[95] = 63;
|
|
12
12
|
function c(b) {
|
|
13
|
-
var
|
|
14
|
-
if (
|
|
13
|
+
var S = b.length;
|
|
14
|
+
if (S % 4 > 0)
|
|
15
15
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
return [
|
|
16
|
+
var x = b.indexOf("=");
|
|
17
|
+
x === -1 && (x = S);
|
|
18
|
+
var O = x === S ? 0 : 4 - x % 4;
|
|
19
|
+
return [x, O];
|
|
20
20
|
}
|
|
21
21
|
function l(b) {
|
|
22
|
-
var
|
|
23
|
-
return (
|
|
22
|
+
var S = c(b), x = S[0], O = S[1];
|
|
23
|
+
return (x + O) * 3 / 4 - O;
|
|
24
24
|
}
|
|
25
|
-
function m(b,
|
|
26
|
-
return (
|
|
25
|
+
function m(b, S, x) {
|
|
26
|
+
return (S + x) * 3 / 4 - x;
|
|
27
27
|
}
|
|
28
28
|
function y(b) {
|
|
29
|
-
var
|
|
30
|
-
for (
|
|
31
|
-
|
|
32
|
-
return k === 2 && (
|
|
29
|
+
var S, x = c(b), O = x[0], k = x[1], G = new r(m(b, O, k)), j = 0, H = k > 0 ? O - 4 : O, P;
|
|
30
|
+
for (P = 0; P < H; P += 4)
|
|
31
|
+
S = n[b.charCodeAt(P)] << 18 | n[b.charCodeAt(P + 1)] << 12 | n[b.charCodeAt(P + 2)] << 6 | n[b.charCodeAt(P + 3)], G[j++] = S >> 16 & 255, G[j++] = S >> 8 & 255, G[j++] = S & 255;
|
|
32
|
+
return k === 2 && (S = n[b.charCodeAt(P)] << 2 | n[b.charCodeAt(P + 1)] >> 4, G[j++] = S & 255), k === 1 && (S = n[b.charCodeAt(P)] << 10 | n[b.charCodeAt(P + 1)] << 4 | n[b.charCodeAt(P + 2)] >> 2, G[j++] = S >> 8 & 255, G[j++] = S & 255), G;
|
|
33
33
|
}
|
|
34
34
|
function g(b) {
|
|
35
35
|
return i[b >> 18 & 63] + i[b >> 12 & 63] + i[b >> 6 & 63] + i[b & 63];
|
|
36
36
|
}
|
|
37
|
-
function u(b,
|
|
38
|
-
for (var
|
|
39
|
-
|
|
37
|
+
function u(b, S, x) {
|
|
38
|
+
for (var O, k = [], G = S; G < x; G += 3)
|
|
39
|
+
O = (b[G] << 16 & 16711680) + (b[G + 1] << 8 & 65280) + (b[G + 2] & 255), k.push(g(O));
|
|
40
40
|
return k.join("");
|
|
41
41
|
}
|
|
42
42
|
function C(b) {
|
|
43
|
-
for (var
|
|
44
|
-
k.push(u(b,
|
|
45
|
-
return
|
|
46
|
-
i[
|
|
47
|
-
)) :
|
|
48
|
-
i[
|
|
43
|
+
for (var S, x = b.length, O = x % 3, k = [], G = 16383, j = 0, H = x - O; j < H; j += G)
|
|
44
|
+
k.push(u(b, j, j + G > H ? H : j + G));
|
|
45
|
+
return O === 1 ? (S = b[x - 1], k.push(
|
|
46
|
+
i[S >> 2] + i[S << 4 & 63] + "=="
|
|
47
|
+
)) : O === 2 && (S = (b[x - 2] << 8) + b[x - 1], k.push(
|
|
48
|
+
i[S >> 10] + i[S >> 4 & 63] + i[S << 2 & 63] + "="
|
|
49
49
|
)), k.join("");
|
|
50
50
|
}
|
|
51
|
-
return
|
|
51
|
+
return Je;
|
|
52
52
|
}
|
|
53
53
|
var Xe = {};
|
|
54
54
|
var It;
|
|
@@ -68,19 +68,19 @@ function mn() {
|
|
|
68
68
|
}
|
|
69
69
|
return (b ? -1 : 1) * c * Math.pow(2, h - o);
|
|
70
70
|
}, Xe.write = function(i, n, r, o, d, h) {
|
|
71
|
-
var c, l, m, y = h * 8 - d - 1, g = (1 << y) - 1, u = g >> 1, C = d === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, b = o ? 0 : h - 1,
|
|
72
|
-
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (l = isNaN(n) ? 1 : 0, c = g) : (c = Math.floor(Math.log(n) / Math.LN2), n * (m = Math.pow(2, -c)) < 1 && (c--, m *= 2), c + u >= 1 ? n += C / m : n += C * Math.pow(2, 1 - u), n * m >= 2 && (c++, m /= 2), c + u >= g ? (l = 0, c = g) : c + u >= 1 ? (l = (n * m - 1) * Math.pow(2, d), c = c + u) : (l = n * Math.pow(2, u - 1) * Math.pow(2, d), c = 0)); d >= 8; i[r + b] = l & 255, b +=
|
|
71
|
+
var c, l, m, y = h * 8 - d - 1, g = (1 << y) - 1, u = g >> 1, C = d === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, b = o ? 0 : h - 1, S = o ? 1 : -1, x = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
|
|
72
|
+
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (l = isNaN(n) ? 1 : 0, c = g) : (c = Math.floor(Math.log(n) / Math.LN2), n * (m = Math.pow(2, -c)) < 1 && (c--, m *= 2), c + u >= 1 ? n += C / m : n += C * Math.pow(2, 1 - u), n * m >= 2 && (c++, m /= 2), c + u >= g ? (l = 0, c = g) : c + u >= 1 ? (l = (n * m - 1) * Math.pow(2, d), c = c + u) : (l = n * Math.pow(2, u - 1) * Math.pow(2, d), c = 0)); d >= 8; i[r + b] = l & 255, b += S, l /= 256, d -= 8)
|
|
73
73
|
;
|
|
74
|
-
for (c = c << d | l, y += d; y > 0; i[r + b] = c & 255, b +=
|
|
74
|
+
for (c = c << d | l, y += d; y > 0; i[r + b] = c & 255, b += S, c /= 256, y -= 8)
|
|
75
75
|
;
|
|
76
|
-
i[r + b -
|
|
76
|
+
i[r + b - S] |= x * 128;
|
|
77
77
|
}), Xe;
|
|
78
78
|
}
|
|
79
79
|
var _t;
|
|
80
80
|
function gn() {
|
|
81
81
|
return _t || (_t = 1, (function(i) {
|
|
82
82
|
const n = pn(), r = mn(), o = typeof Symbol == "function" && typeof Symbol.for == "function" ? /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom") : null;
|
|
83
|
-
i.Buffer = l, i.SlowBuffer =
|
|
83
|
+
i.Buffer = l, i.SlowBuffer = G, i.INSPECT_MAX_BYTES = 50;
|
|
84
84
|
const d = 2147483647;
|
|
85
85
|
i.kMaxLength = d, l.TYPED_ARRAY_SUPPORT = h(), !l.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
86
86
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
@@ -129,13 +129,13 @@ function gn() {
|
|
|
129
129
|
if (typeof s == "string")
|
|
130
130
|
return C(s, e);
|
|
131
131
|
if (ArrayBuffer.isView(s))
|
|
132
|
-
return
|
|
132
|
+
return S(s);
|
|
133
133
|
if (s == null)
|
|
134
134
|
throw new TypeError(
|
|
135
135
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof s
|
|
136
136
|
);
|
|
137
|
-
if (
|
|
138
|
-
return
|
|
137
|
+
if (ge(s, ArrayBuffer) || s && ge(s.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (ge(s, SharedArrayBuffer) || s && ge(s.buffer, SharedArrayBuffer)))
|
|
138
|
+
return x(s, e, t);
|
|
139
139
|
if (typeof s == "number")
|
|
140
140
|
throw new TypeError(
|
|
141
141
|
'The "value" argument must not be of type number. Received type number'
|
|
@@ -143,7 +143,7 @@ function gn() {
|
|
|
143
143
|
const a = s.valueOf && s.valueOf();
|
|
144
144
|
if (a != null && a !== s)
|
|
145
145
|
return l.from(a, e, t);
|
|
146
|
-
const f =
|
|
146
|
+
const f = O(s);
|
|
147
147
|
if (f) return f;
|
|
148
148
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof s[Symbol.toPrimitive] == "function")
|
|
149
149
|
return l.from(s[Symbol.toPrimitive]("string"), e, t);
|
|
@@ -177,7 +177,7 @@ function gn() {
|
|
|
177
177
|
function C(s, e) {
|
|
178
178
|
if ((typeof e != "string" || e === "") && (e = "utf8"), !l.isEncoding(e))
|
|
179
179
|
throw new TypeError("Unknown encoding: " + e);
|
|
180
|
-
const t =
|
|
180
|
+
const t = j(s, e) | 0;
|
|
181
181
|
let a = c(t);
|
|
182
182
|
const f = a.write(s, e);
|
|
183
183
|
return f !== t && (a = a.slice(0, f)), a;
|
|
@@ -188,14 +188,14 @@ function gn() {
|
|
|
188
188
|
t[a] = s[a] & 255;
|
|
189
189
|
return t;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
if (
|
|
191
|
+
function S(s) {
|
|
192
|
+
if (ge(s, Uint8Array)) {
|
|
193
193
|
const e = new Uint8Array(s);
|
|
194
|
-
return
|
|
194
|
+
return x(e.buffer, e.byteOffset, e.byteLength);
|
|
195
195
|
}
|
|
196
196
|
return b(s);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function x(s, e, t) {
|
|
199
199
|
if (e < 0 || s.byteLength < e)
|
|
200
200
|
throw new RangeError('"offset" is outside of buffer bounds');
|
|
201
201
|
if (s.byteLength < e + (t || 0))
|
|
@@ -203,7 +203,7 @@ function gn() {
|
|
|
203
203
|
let a;
|
|
204
204
|
return e === void 0 && t === void 0 ? a = new Uint8Array(s) : t === void 0 ? a = new Uint8Array(s, e) : a = new Uint8Array(s, e, t), Object.setPrototypeOf(a, l.prototype), a;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function O(s) {
|
|
207
207
|
if (l.isBuffer(s)) {
|
|
208
208
|
const e = k(s.length) | 0, t = c(e);
|
|
209
209
|
return t.length === 0 || s.copy(t, 0, 0, e), t;
|
|
@@ -218,13 +218,13 @@ function gn() {
|
|
|
218
218
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + d.toString(16) + " bytes");
|
|
219
219
|
return s | 0;
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function G(s) {
|
|
222
222
|
return +s != s && (s = 0), l.alloc(+s);
|
|
223
223
|
}
|
|
224
224
|
l.isBuffer = function(e) {
|
|
225
225
|
return e != null && e._isBuffer === !0 && e !== l.prototype;
|
|
226
226
|
}, l.compare = function(e, t) {
|
|
227
|
-
if (
|
|
227
|
+
if (ge(e, Uint8Array) && (e = l.from(e, e.offset, e.byteLength)), ge(t, Uint8Array) && (t = l.from(t, t.offset, t.byteLength)), !l.isBuffer(e) || !l.isBuffer(t))
|
|
228
228
|
throw new TypeError(
|
|
229
229
|
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
230
230
|
);
|
|
@@ -266,7 +266,7 @@ function gn() {
|
|
|
266
266
|
let p = 0;
|
|
267
267
|
for (a = 0; a < e.length; ++a) {
|
|
268
268
|
let E = e[a];
|
|
269
|
-
if (
|
|
269
|
+
if (ge(E, Uint8Array))
|
|
270
270
|
p + E.length > f.length ? (l.isBuffer(E) || (E = l.from(E)), E.copy(f, p)) : Uint8Array.prototype.set.call(
|
|
271
271
|
f,
|
|
272
272
|
E,
|
|
@@ -280,10 +280,10 @@ function gn() {
|
|
|
280
280
|
}
|
|
281
281
|
return f;
|
|
282
282
|
};
|
|
283
|
-
function
|
|
283
|
+
function j(s, e) {
|
|
284
284
|
if (l.isBuffer(s))
|
|
285
285
|
return s.length;
|
|
286
|
-
if (ArrayBuffer.isView(s) ||
|
|
286
|
+
if (ArrayBuffer.isView(s) || ge(s, ArrayBuffer))
|
|
287
287
|
return s.byteLength;
|
|
288
288
|
if (typeof s != "string")
|
|
289
289
|
throw new TypeError(
|
|
@@ -316,7 +316,7 @@ function gn() {
|
|
|
316
316
|
e = ("" + e).toLowerCase(), f = !0;
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
l.byteLength =
|
|
319
|
+
l.byteLength = j;
|
|
320
320
|
function H(s, e, t) {
|
|
321
321
|
let a = !1;
|
|
322
322
|
if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((t === void 0 || t > this.length) && (t = this.length), t <= 0) || (t >>>= 0, e >>>= 0, t <= e))
|
|
@@ -327,26 +327,26 @@ function gn() {
|
|
|
327
327
|
return we(this, e, t);
|
|
328
328
|
case "utf8":
|
|
329
329
|
case "utf-8":
|
|
330
|
-
return
|
|
330
|
+
return be(this, e, t);
|
|
331
331
|
case "ascii":
|
|
332
|
-
return
|
|
332
|
+
return ce(this, e, t);
|
|
333
333
|
case "latin1":
|
|
334
334
|
case "binary":
|
|
335
|
-
return
|
|
335
|
+
return R(this, e, t);
|
|
336
336
|
case "base64":
|
|
337
337
|
return xe(this, e, t);
|
|
338
338
|
case "ucs2":
|
|
339
339
|
case "ucs-2":
|
|
340
340
|
case "utf16le":
|
|
341
341
|
case "utf-16le":
|
|
342
|
-
return
|
|
342
|
+
return $e(this, e, t);
|
|
343
343
|
default:
|
|
344
344
|
if (a) throw new TypeError("Unknown encoding: " + s);
|
|
345
345
|
s = (s + "").toLowerCase(), a = !0;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
l.prototype._isBuffer = !0;
|
|
349
|
-
function
|
|
349
|
+
function P(s, e, t) {
|
|
350
350
|
const a = s[e];
|
|
351
351
|
s[e] = s[t], s[t] = a;
|
|
352
352
|
}
|
|
@@ -355,25 +355,25 @@ function gn() {
|
|
|
355
355
|
if (e % 2 !== 0)
|
|
356
356
|
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
357
357
|
for (let t = 0; t < e; t += 2)
|
|
358
|
-
|
|
358
|
+
P(this, t, t + 1);
|
|
359
359
|
return this;
|
|
360
360
|
}, l.prototype.swap32 = function() {
|
|
361
361
|
const e = this.length;
|
|
362
362
|
if (e % 4 !== 0)
|
|
363
363
|
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
364
364
|
for (let t = 0; t < e; t += 4)
|
|
365
|
-
|
|
365
|
+
P(this, t, t + 3), P(this, t + 1, t + 2);
|
|
366
366
|
return this;
|
|
367
367
|
}, l.prototype.swap64 = function() {
|
|
368
368
|
const e = this.length;
|
|
369
369
|
if (e % 8 !== 0)
|
|
370
370
|
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
371
371
|
for (let t = 0; t < e; t += 8)
|
|
372
|
-
|
|
372
|
+
P(this, t, t + 7), P(this, t + 1, t + 6), P(this, t + 2, t + 5), P(this, t + 3, t + 4);
|
|
373
373
|
return this;
|
|
374
374
|
}, l.prototype.toString = function() {
|
|
375
375
|
const e = this.length;
|
|
376
|
-
return e === 0 ? "" : arguments.length === 0 ?
|
|
376
|
+
return e === 0 ? "" : arguments.length === 0 ? be(this, 0, e) : H.apply(this, arguments);
|
|
377
377
|
}, l.prototype.toLocaleString = l.prototype.toString, l.prototype.equals = function(e) {
|
|
378
378
|
if (!l.isBuffer(e)) throw new TypeError("Argument must be a Buffer");
|
|
379
379
|
return this === e ? !0 : l.compare(this, e) === 0;
|
|
@@ -382,7 +382,7 @@ function gn() {
|
|
|
382
382
|
const t = i.INSPECT_MAX_BYTES;
|
|
383
383
|
return e = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim(), this.length > t && (e += " ... "), "<Buffer " + e + ">";
|
|
384
384
|
}, o && (l.prototype[o] = l.prototype.inspect), l.prototype.compare = function(e, t, a, f, p) {
|
|
385
|
-
if (
|
|
385
|
+
if (ge(e, Uint8Array) && (e = l.from(e, e.offset, e.byteLength)), !l.isBuffer(e))
|
|
386
386
|
throw new TypeError(
|
|
387
387
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e
|
|
388
388
|
);
|
|
@@ -396,15 +396,15 @@ function gn() {
|
|
|
396
396
|
return 1;
|
|
397
397
|
if (t >>>= 0, a >>>= 0, f >>>= 0, p >>>= 0, this === e) return 0;
|
|
398
398
|
let E = p - f, U = a - t;
|
|
399
|
-
const Q = Math.min(E, U),
|
|
399
|
+
const Q = Math.min(E, U), q = this.slice(f, p), Z = e.slice(t, a);
|
|
400
400
|
for (let W = 0; W < Q; ++W)
|
|
401
|
-
if (
|
|
402
|
-
E =
|
|
401
|
+
if (q[W] !== Z[W]) {
|
|
402
|
+
E = q[W], U = Z[W];
|
|
403
403
|
break;
|
|
404
404
|
}
|
|
405
405
|
return E < U ? -1 : U < E ? 1 : 0;
|
|
406
406
|
};
|
|
407
|
-
function
|
|
407
|
+
function $(s, e, t, a, f) {
|
|
408
408
|
if (s.length === 0) return -1;
|
|
409
409
|
if (typeof t == "string" ? (a = t, t = 0) : t > 2147483647 ? t = 2147483647 : t < -2147483648 && (t = -2147483648), t = +t, ot(t) && (t = f ? 0 : s.length - 1), t < 0 && (t = s.length + t), t >= s.length) {
|
|
410
410
|
if (f) return -1;
|
|
@@ -413,12 +413,12 @@ function gn() {
|
|
|
413
413
|
if (f) t = 0;
|
|
414
414
|
else return -1;
|
|
415
415
|
if (typeof e == "string" && (e = l.from(e, a)), l.isBuffer(e))
|
|
416
|
-
return e.length === 0 ? -1 :
|
|
416
|
+
return e.length === 0 ? -1 : oe(s, e, t, a, f);
|
|
417
417
|
if (typeof e == "number")
|
|
418
|
-
return e = e & 255, typeof Uint8Array.prototype.indexOf == "function" ? f ? Uint8Array.prototype.indexOf.call(s, e, t) : Uint8Array.prototype.lastIndexOf.call(s, e, t) :
|
|
418
|
+
return e = e & 255, typeof Uint8Array.prototype.indexOf == "function" ? f ? Uint8Array.prototype.indexOf.call(s, e, t) : Uint8Array.prototype.lastIndexOf.call(s, e, t) : oe(s, [e], t, a, f);
|
|
419
419
|
throw new TypeError("val must be string, number or Buffer");
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function oe(s, e, t, a, f) {
|
|
422
422
|
let p = 1, E = s.length, U = e.length;
|
|
423
423
|
if (a !== void 0 && (a = String(a).toLowerCase(), a === "ucs2" || a === "ucs-2" || a === "utf16le" || a === "utf-16le")) {
|
|
424
424
|
if (s.length < 2 || e.length < 2)
|
|
@@ -428,34 +428,34 @@ function gn() {
|
|
|
428
428
|
function Q(Z, W) {
|
|
429
429
|
return p === 1 ? Z[W] : Z.readUInt16BE(W * p);
|
|
430
430
|
}
|
|
431
|
-
let
|
|
431
|
+
let q;
|
|
432
432
|
if (f) {
|
|
433
433
|
let Z = -1;
|
|
434
|
-
for (
|
|
435
|
-
if (Q(s,
|
|
436
|
-
if (Z === -1 && (Z =
|
|
434
|
+
for (q = t; q < E; q++)
|
|
435
|
+
if (Q(s, q) === Q(e, Z === -1 ? 0 : q - Z)) {
|
|
436
|
+
if (Z === -1 && (Z = q), q - Z + 1 === U) return Z * p;
|
|
437
437
|
} else
|
|
438
|
-
Z !== -1 && (
|
|
438
|
+
Z !== -1 && (q -= q - Z), Z = -1;
|
|
439
439
|
} else
|
|
440
|
-
for (t + U > E && (t = E - U),
|
|
440
|
+
for (t + U > E && (t = E - U), q = t; q >= 0; q--) {
|
|
441
441
|
let Z = !0;
|
|
442
442
|
for (let W = 0; W < U; W++)
|
|
443
|
-
if (Q(s,
|
|
443
|
+
if (Q(s, q + W) !== Q(e, W)) {
|
|
444
444
|
Z = !1;
|
|
445
445
|
break;
|
|
446
446
|
}
|
|
447
|
-
if (Z) return
|
|
447
|
+
if (Z) return q;
|
|
448
448
|
}
|
|
449
449
|
return -1;
|
|
450
450
|
}
|
|
451
451
|
l.prototype.includes = function(e, t, a) {
|
|
452
452
|
return this.indexOf(e, t, a) !== -1;
|
|
453
453
|
}, l.prototype.indexOf = function(e, t, a) {
|
|
454
|
-
return
|
|
454
|
+
return $(this, e, t, a, !0);
|
|
455
455
|
}, l.prototype.lastIndexOf = function(e, t, a) {
|
|
456
|
-
return
|
|
456
|
+
return $(this, e, t, a, !1);
|
|
457
457
|
};
|
|
458
|
-
function
|
|
458
|
+
function N(s, e, t, a) {
|
|
459
459
|
t = Number(t) || 0;
|
|
460
460
|
const f = s.length - t;
|
|
461
461
|
a ? (a = Number(a), a > f && (a = f)) : a = f;
|
|
@@ -472,13 +472,13 @@ function gn() {
|
|
|
472
472
|
function V(s, e, t, a) {
|
|
473
473
|
return Ye(st(e, s.length - t), s, t, a);
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function z(s, e, t, a) {
|
|
476
476
|
return Ye(en(e), s, t, a);
|
|
477
477
|
}
|
|
478
478
|
function Ge(s, e, t, a) {
|
|
479
479
|
return Ye(Et(e), s, t, a);
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function ye(s, e, t, a) {
|
|
482
482
|
return Ye(tn(e, s.length - t), s, t, a);
|
|
483
483
|
}
|
|
484
484
|
l.prototype.write = function(e, t, a, f) {
|
|
@@ -500,21 +500,21 @@ function gn() {
|
|
|
500
500
|
for (; ; )
|
|
501
501
|
switch (f) {
|
|
502
502
|
case "hex":
|
|
503
|
-
return
|
|
503
|
+
return N(this, e, t, a);
|
|
504
504
|
case "utf8":
|
|
505
505
|
case "utf-8":
|
|
506
506
|
return V(this, e, t, a);
|
|
507
507
|
case "ascii":
|
|
508
508
|
case "latin1":
|
|
509
509
|
case "binary":
|
|
510
|
-
return
|
|
510
|
+
return z(this, e, t, a);
|
|
511
511
|
case "base64":
|
|
512
512
|
return Ge(this, e, t, a);
|
|
513
513
|
case "ucs2":
|
|
514
514
|
case "ucs-2":
|
|
515
515
|
case "utf16le":
|
|
516
516
|
case "utf-16le":
|
|
517
|
-
return
|
|
517
|
+
return ye(this, e, t, a);
|
|
518
518
|
default:
|
|
519
519
|
if (E) throw new TypeError("Unknown encoding: " + f);
|
|
520
520
|
f = ("" + f).toLowerCase(), E = !0;
|
|
@@ -528,7 +528,7 @@ function gn() {
|
|
|
528
528
|
function xe(s, e, t) {
|
|
529
529
|
return e === 0 && t === s.length ? n.fromByteArray(s) : n.fromByteArray(s.slice(e, t));
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function be(s, e, t) {
|
|
532
532
|
t = Math.min(s.length, t);
|
|
533
533
|
const a = [];
|
|
534
534
|
let f = e;
|
|
@@ -536,7 +536,7 @@ function gn() {
|
|
|
536
536
|
const p = s[f];
|
|
537
537
|
let E = null, U = p > 239 ? 4 : p > 223 ? 3 : p > 191 ? 2 : 1;
|
|
538
538
|
if (f + U <= t) {
|
|
539
|
-
let Q,
|
|
539
|
+
let Q, q, Z, W;
|
|
540
540
|
switch (U) {
|
|
541
541
|
case 1:
|
|
542
542
|
p < 128 && (E = p);
|
|
@@ -545,18 +545,18 @@ function gn() {
|
|
|
545
545
|
Q = s[f + 1], (Q & 192) === 128 && (W = (p & 31) << 6 | Q & 63, W > 127 && (E = W));
|
|
546
546
|
break;
|
|
547
547
|
case 3:
|
|
548
|
-
Q = s[f + 1],
|
|
548
|
+
Q = s[f + 1], q = s[f + 2], (Q & 192) === 128 && (q & 192) === 128 && (W = (p & 15) << 12 | (Q & 63) << 6 | q & 63, W > 2047 && (W < 55296 || W > 57343) && (E = W));
|
|
549
549
|
break;
|
|
550
550
|
case 4:
|
|
551
|
-
Q = s[f + 1],
|
|
551
|
+
Q = s[f + 1], q = s[f + 2], Z = s[f + 3], (Q & 192) === 128 && (q & 192) === 128 && (Z & 192) === 128 && (W = (p & 15) << 18 | (Q & 63) << 12 | (q & 63) << 6 | Z & 63, W > 65535 && W < 1114112 && (E = W));
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
E === null ? (E = 65533, U = 1) : E > 65535 && (E -= 65536, a.push(E >>> 10 & 1023 | 55296), E = 56320 | E & 1023), a.push(E), f += U;
|
|
555
555
|
}
|
|
556
|
-
return
|
|
556
|
+
return re(a);
|
|
557
557
|
}
|
|
558
558
|
const he = 4096;
|
|
559
|
-
function
|
|
559
|
+
function re(s) {
|
|
560
560
|
const e = s.length;
|
|
561
561
|
if (e <= he)
|
|
562
562
|
return String.fromCharCode.apply(String, s);
|
|
@@ -568,14 +568,14 @@ function gn() {
|
|
|
568
568
|
);
|
|
569
569
|
return t;
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function ce(s, e, t) {
|
|
572
572
|
let a = "";
|
|
573
573
|
t = Math.min(s.length, t);
|
|
574
574
|
for (let f = e; f < t; ++f)
|
|
575
575
|
a += String.fromCharCode(s[f] & 127);
|
|
576
576
|
return a;
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function R(s, e, t) {
|
|
579
579
|
let a = "";
|
|
580
580
|
t = Math.min(s.length, t);
|
|
581
581
|
for (let f = e; f < t; ++f)
|
|
@@ -590,7 +590,7 @@ function gn() {
|
|
|
590
590
|
f += nn[s[p]];
|
|
591
591
|
return f;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function $e(s, e, t) {
|
|
594
594
|
const a = s.slice(e, t);
|
|
595
595
|
let f = "";
|
|
596
596
|
for (let p = 0; p < a.length - 1; p += 2)
|
|
@@ -603,91 +603,91 @@ function gn() {
|
|
|
603
603
|
const f = this.subarray(e, t);
|
|
604
604
|
return Object.setPrototypeOf(f, l.prototype), f;
|
|
605
605
|
};
|
|
606
|
-
function
|
|
606
|
+
function J(s, e, t) {
|
|
607
607
|
if (s % 1 !== 0 || s < 0) throw new RangeError("offset is not uint");
|
|
608
608
|
if (s + e > t) throw new RangeError("Trying to access beyond buffer length");
|
|
609
609
|
}
|
|
610
610
|
l.prototype.readUintLE = l.prototype.readUIntLE = function(e, t, a) {
|
|
611
|
-
e = e >>> 0, t = t >>> 0, a ||
|
|
611
|
+
e = e >>> 0, t = t >>> 0, a || J(e, t, this.length);
|
|
612
612
|
let f = this[e], p = 1, E = 0;
|
|
613
613
|
for (; ++E < t && (p *= 256); )
|
|
614
614
|
f += this[e + E] * p;
|
|
615
615
|
return f;
|
|
616
616
|
}, l.prototype.readUintBE = l.prototype.readUIntBE = function(e, t, a) {
|
|
617
|
-
e = e >>> 0, t = t >>> 0, a ||
|
|
617
|
+
e = e >>> 0, t = t >>> 0, a || J(e, t, this.length);
|
|
618
618
|
let f = this[e + --t], p = 1;
|
|
619
619
|
for (; t > 0 && (p *= 256); )
|
|
620
620
|
f += this[e + --t] * p;
|
|
621
621
|
return f;
|
|
622
622
|
}, l.prototype.readUint8 = l.prototype.readUInt8 = function(e, t) {
|
|
623
|
-
return e = e >>> 0, t ||
|
|
623
|
+
return e = e >>> 0, t || J(e, 1, this.length), this[e];
|
|
624
624
|
}, l.prototype.readUint16LE = l.prototype.readUInt16LE = function(e, t) {
|
|
625
|
-
return e = e >>> 0, t ||
|
|
625
|
+
return e = e >>> 0, t || J(e, 2, this.length), this[e] | this[e + 1] << 8;
|
|
626
626
|
}, l.prototype.readUint16BE = l.prototype.readUInt16BE = function(e, t) {
|
|
627
|
-
return e = e >>> 0, t ||
|
|
627
|
+
return e = e >>> 0, t || J(e, 2, this.length), this[e] << 8 | this[e + 1];
|
|
628
628
|
}, l.prototype.readUint32LE = l.prototype.readUInt32LE = function(e, t) {
|
|
629
|
-
return e = e >>> 0, t ||
|
|
629
|
+
return e = e >>> 0, t || J(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
|
|
630
630
|
}, l.prototype.readUint32BE = l.prototype.readUInt32BE = function(e, t) {
|
|
631
|
-
return e = e >>> 0, t ||
|
|
631
|
+
return e = e >>> 0, t || J(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
|
|
632
632
|
}, l.prototype.readBigUInt64LE = Ae(function(e) {
|
|
633
|
-
e = e >>> 0,
|
|
633
|
+
e = e >>> 0, me(e, "offset");
|
|
634
634
|
const t = this[e], a = this[e + 7];
|
|
635
635
|
(t === void 0 || a === void 0) && Ce(e, this.length - 8);
|
|
636
636
|
const f = t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, p = this[++e] + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + a * 2 ** 24;
|
|
637
637
|
return BigInt(f) + (BigInt(p) << BigInt(32));
|
|
638
638
|
}), l.prototype.readBigUInt64BE = Ae(function(e) {
|
|
639
|
-
e = e >>> 0,
|
|
639
|
+
e = e >>> 0, me(e, "offset");
|
|
640
640
|
const t = this[e], a = this[e + 7];
|
|
641
641
|
(t === void 0 || a === void 0) && Ce(e, this.length - 8);
|
|
642
642
|
const f = t * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e], p = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + a;
|
|
643
643
|
return (BigInt(f) << BigInt(32)) + BigInt(p);
|
|
644
644
|
}), l.prototype.readIntLE = function(e, t, a) {
|
|
645
|
-
e = e >>> 0, t = t >>> 0, a ||
|
|
645
|
+
e = e >>> 0, t = t >>> 0, a || J(e, t, this.length);
|
|
646
646
|
let f = this[e], p = 1, E = 0;
|
|
647
647
|
for (; ++E < t && (p *= 256); )
|
|
648
648
|
f += this[e + E] * p;
|
|
649
649
|
return p *= 128, f >= p && (f -= Math.pow(2, 8 * t)), f;
|
|
650
650
|
}, l.prototype.readIntBE = function(e, t, a) {
|
|
651
|
-
e = e >>> 0, t = t >>> 0, a ||
|
|
651
|
+
e = e >>> 0, t = t >>> 0, a || J(e, t, this.length);
|
|
652
652
|
let f = t, p = 1, E = this[e + --f];
|
|
653
653
|
for (; f > 0 && (p *= 256); )
|
|
654
654
|
E += this[e + --f] * p;
|
|
655
655
|
return p *= 128, E >= p && (E -= Math.pow(2, 8 * t)), E;
|
|
656
656
|
}, l.prototype.readInt8 = function(e, t) {
|
|
657
|
-
return e = e >>> 0, t ||
|
|
657
|
+
return e = e >>> 0, t || J(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
|
|
658
658
|
}, l.prototype.readInt16LE = function(e, t) {
|
|
659
|
-
e = e >>> 0, t ||
|
|
659
|
+
e = e >>> 0, t || J(e, 2, this.length);
|
|
660
660
|
const a = this[e] | this[e + 1] << 8;
|
|
661
661
|
return a & 32768 ? a | 4294901760 : a;
|
|
662
662
|
}, l.prototype.readInt16BE = function(e, t) {
|
|
663
|
-
e = e >>> 0, t ||
|
|
663
|
+
e = e >>> 0, t || J(e, 2, this.length);
|
|
664
664
|
const a = this[e + 1] | this[e] << 8;
|
|
665
665
|
return a & 32768 ? a | 4294901760 : a;
|
|
666
666
|
}, l.prototype.readInt32LE = function(e, t) {
|
|
667
|
-
return e = e >>> 0, t ||
|
|
667
|
+
return e = e >>> 0, t || J(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
|
|
668
668
|
}, l.prototype.readInt32BE = function(e, t) {
|
|
669
|
-
return e = e >>> 0, t ||
|
|
669
|
+
return e = e >>> 0, t || J(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
|
|
670
670
|
}, l.prototype.readBigInt64LE = Ae(function(e) {
|
|
671
|
-
e = e >>> 0,
|
|
671
|
+
e = e >>> 0, me(e, "offset");
|
|
672
672
|
const t = this[e], a = this[e + 7];
|
|
673
673
|
(t === void 0 || a === void 0) && Ce(e, this.length - 8);
|
|
674
674
|
const f = this[e + 4] + this[e + 5] * 2 ** 8 + this[e + 6] * 2 ** 16 + (a << 24);
|
|
675
675
|
return (BigInt(f) << BigInt(32)) + BigInt(t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24);
|
|
676
676
|
}), l.prototype.readBigInt64BE = Ae(function(e) {
|
|
677
|
-
e = e >>> 0,
|
|
677
|
+
e = e >>> 0, me(e, "offset");
|
|
678
678
|
const t = this[e], a = this[e + 7];
|
|
679
679
|
(t === void 0 || a === void 0) && Ce(e, this.length - 8);
|
|
680
680
|
const f = (t << 24) + // Overflow
|
|
681
681
|
this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e];
|
|
682
682
|
return (BigInt(f) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + a);
|
|
683
683
|
}), l.prototype.readFloatLE = function(e, t) {
|
|
684
|
-
return e = e >>> 0, t ||
|
|
684
|
+
return e = e >>> 0, t || J(e, 4, this.length), r.read(this, e, !0, 23, 4);
|
|
685
685
|
}, l.prototype.readFloatBE = function(e, t) {
|
|
686
|
-
return e = e >>> 0, t ||
|
|
686
|
+
return e = e >>> 0, t || J(e, 4, this.length), r.read(this, e, !1, 23, 4);
|
|
687
687
|
}, l.prototype.readDoubleLE = function(e, t) {
|
|
688
|
-
return e = e >>> 0, t ||
|
|
688
|
+
return e = e >>> 0, t || J(e, 8, this.length), r.read(this, e, !0, 52, 8);
|
|
689
689
|
}, l.prototype.readDoubleBE = function(e, t) {
|
|
690
|
-
return e = e >>> 0, t ||
|
|
690
|
+
return e = e >>> 0, t || J(e, 8, this.length), r.read(this, e, !1, 52, 8);
|
|
691
691
|
};
|
|
692
692
|
function Y(s, e, t, a, f, p) {
|
|
693
693
|
if (!l.isBuffer(s)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
@@ -724,14 +724,14 @@ function gn() {
|
|
|
724
724
|
return e = +e, t = t >>> 0, a || Y(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
|
|
725
725
|
};
|
|
726
726
|
function X(s, e, t, a, f) {
|
|
727
|
-
|
|
727
|
+
A(e, a, f, s, t, 7);
|
|
728
728
|
let p = Number(e & BigInt(4294967295));
|
|
729
729
|
s[t++] = p, p = p >> 8, s[t++] = p, p = p >> 8, s[t++] = p, p = p >> 8, s[t++] = p;
|
|
730
730
|
let E = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
731
731
|
return s[t++] = E, E = E >> 8, s[t++] = E, E = E >> 8, s[t++] = E, E = E >> 8, s[t++] = E, t;
|
|
732
732
|
}
|
|
733
733
|
function ne(s, e, t, a, f) {
|
|
734
|
-
|
|
734
|
+
A(e, a, f, s, t, 7);
|
|
735
735
|
let p = Number(e & BigInt(4294967295));
|
|
736
736
|
s[t + 7] = p, p = p >> 8, s[t + 6] = p, p = p >> 8, s[t + 5] = p, p = p >> 8, s[t + 4] = p;
|
|
737
737
|
let E = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
@@ -837,7 +837,7 @@ function gn() {
|
|
|
837
837
|
return this;
|
|
838
838
|
};
|
|
839
839
|
const fe = {};
|
|
840
|
-
function
|
|
840
|
+
function I(s, e, t) {
|
|
841
841
|
fe[s] = class extends t {
|
|
842
842
|
constructor() {
|
|
843
843
|
super(), Object.defineProperty(this, "message", {
|
|
@@ -862,19 +862,19 @@ function gn() {
|
|
|
862
862
|
}
|
|
863
863
|
};
|
|
864
864
|
}
|
|
865
|
-
|
|
865
|
+
I(
|
|
866
866
|
"ERR_BUFFER_OUT_OF_BOUNDS",
|
|
867
867
|
function(s) {
|
|
868
868
|
return s ? `${s} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
|
|
869
869
|
},
|
|
870
870
|
RangeError
|
|
871
|
-
),
|
|
871
|
+
), I(
|
|
872
872
|
"ERR_INVALID_ARG_TYPE",
|
|
873
873
|
function(s, e) {
|
|
874
874
|
return `The "${s}" argument must be of type number. Received type ${typeof e}`;
|
|
875
875
|
},
|
|
876
876
|
TypeError
|
|
877
|
-
),
|
|
877
|
+
), I(
|
|
878
878
|
"ERR_OUT_OF_RANGE",
|
|
879
879
|
function(s, e, t) {
|
|
880
880
|
let a = `The value of "${s}" is out of range.`, f = t;
|
|
@@ -889,23 +889,23 @@ function gn() {
|
|
|
889
889
|
e = `_${s.slice(t - 3, t)}${e}`;
|
|
890
890
|
return `${s.slice(0, t)}${e}`;
|
|
891
891
|
}
|
|
892
|
-
function
|
|
893
|
-
|
|
892
|
+
function L(s, e, t) {
|
|
893
|
+
me(e, "offset"), (s[e] === void 0 || s[e + t] === void 0) && Ce(e, s.length - (t + 1));
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function A(s, e, t, a, f, p) {
|
|
896
896
|
if (s > t || s < e) {
|
|
897
897
|
const E = typeof e == "bigint" ? "n" : "";
|
|
898
898
|
let U;
|
|
899
899
|
throw e === 0 || e === BigInt(0) ? U = `>= 0${E} and < 2${E} ** ${(p + 1) * 8}${E}` : U = `>= -(2${E} ** ${(p + 1) * 8 - 1}${E}) and < 2 ** ${(p + 1) * 8 - 1}${E}`, new fe.ERR_OUT_OF_RANGE("value", U, s);
|
|
900
900
|
}
|
|
901
|
-
|
|
901
|
+
L(a, f, p);
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function me(s, e) {
|
|
904
904
|
if (typeof s != "number")
|
|
905
905
|
throw new fe.ERR_INVALID_ARG_TYPE(e, "number", s);
|
|
906
906
|
}
|
|
907
907
|
function Ce(s, e, t) {
|
|
908
|
-
throw Math.floor(s) !== s ? (
|
|
908
|
+
throw Math.floor(s) !== s ? (me(s, t), new fe.ERR_OUT_OF_RANGE("offset", "an integer", s)) : e < 0 ? new fe.ERR_BUFFER_OUT_OF_BOUNDS() : new fe.ERR_OUT_OF_RANGE(
|
|
909
909
|
"offset",
|
|
910
910
|
`>= 0 and <= ${e}`,
|
|
911
911
|
s
|
|
@@ -994,7 +994,7 @@ function gn() {
|
|
|
994
994
|
e[f + t] = s[f];
|
|
995
995
|
return f;
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function ge(s, e) {
|
|
998
998
|
return s instanceof e || s != null && s.constructor != null && s.constructor.name != null && s.constructor.name === e.name;
|
|
999
999
|
}
|
|
1000
1000
|
function ot(s) {
|
|
@@ -1067,7 +1067,7 @@ let ke = {
|
|
|
1067
1067
|
organizationId: null,
|
|
1068
1068
|
attemptCorrelationId: null
|
|
1069
1069
|
};
|
|
1070
|
-
const
|
|
1070
|
+
const Ve = (i) => {
|
|
1071
1071
|
ke = Object.assign(Object.assign({}, ke), i);
|
|
1072
1072
|
}, Fe = (i, n, r) => wn(void 0, void 0, void 0, function* () {
|
|
1073
1073
|
if (!Lt)
|
|
@@ -1100,13 +1100,13 @@ const $e = (i) => {
|
|
|
1100
1100
|
issues: []
|
|
1101
1101
|
}, l = ((r = h["inbound-rtp"]) === null || r === void 0 ? void 0 : r.filter((u) => u.kind === "video")) || [];
|
|
1102
1102
|
l.length > 0 && (c.personaVideoStream = [], l.forEach((u) => {
|
|
1103
|
-
var C, b,
|
|
1103
|
+
var C, b, S, x, O;
|
|
1104
1104
|
const k = {
|
|
1105
1105
|
framesReceived: (C = u.framesReceived) !== null && C !== void 0 ? C : "unknown",
|
|
1106
1106
|
framesDropped: (b = u.framesDropped) !== null && b !== void 0 ? b : "unknown",
|
|
1107
|
-
framesPerSecond: (
|
|
1108
|
-
packetsReceived: (
|
|
1109
|
-
packetsLost: (
|
|
1107
|
+
framesPerSecond: (S = u.framesPerSecond) !== null && S !== void 0 ? S : "unknown",
|
|
1108
|
+
packetsReceived: (x = u.packetsReceived) !== null && x !== void 0 ? x : "unknown",
|
|
1109
|
+
packetsLost: (O = u.packetsLost) !== null && O !== void 0 ? O : "unknown",
|
|
1110
1110
|
resolution: u.frameWidth && u.frameHeight ? `${u.frameWidth}x${u.frameHeight}` : void 0,
|
|
1111
1111
|
jitter: u.jitter !== void 0 ? u.jitter : void 0
|
|
1112
1112
|
};
|
|
@@ -1114,25 +1114,25 @@ const $e = (i) => {
|
|
|
1114
1114
|
}));
|
|
1115
1115
|
const m = ((o = h["inbound-rtp"]) === null || o === void 0 ? void 0 : o.filter((u) => u.kind === "audio")) || [];
|
|
1116
1116
|
m.length > 0 && (c.personaAudioStream = [], m.forEach((u) => {
|
|
1117
|
-
var C, b,
|
|
1118
|
-
const
|
|
1117
|
+
var C, b, S;
|
|
1118
|
+
const x = {
|
|
1119
1119
|
packetsReceived: (C = u.packetsReceived) !== null && C !== void 0 ? C : "unknown",
|
|
1120
1120
|
packetsLost: (b = u.packetsLost) !== null && b !== void 0 ? b : "unknown",
|
|
1121
|
-
audioLevel: (
|
|
1121
|
+
audioLevel: (S = u.audioLevel) !== null && S !== void 0 ? S : "unknown",
|
|
1122
1122
|
jitter: u.jitter !== void 0 ? u.jitter : void 0,
|
|
1123
1123
|
totalAudioEnergy: u.totalAudioEnergy !== void 0 ? u.totalAudioEnergy : void 0
|
|
1124
1124
|
};
|
|
1125
|
-
c.personaAudioStream.push(
|
|
1125
|
+
c.personaAudioStream.push(x);
|
|
1126
1126
|
}));
|
|
1127
1127
|
const y = ((d = h["outbound-rtp"]) === null || d === void 0 ? void 0 : d.filter((u) => u.kind === "audio")) || [];
|
|
1128
1128
|
y.length > 0 && (c.userAudioInput = [], y.forEach((u) => {
|
|
1129
1129
|
var C, b;
|
|
1130
|
-
const
|
|
1130
|
+
const S = {
|
|
1131
1131
|
packetsSent: (C = u.packetsSent) !== null && C !== void 0 ? C : "unknown",
|
|
1132
1132
|
retransmittedPackets: (b = u.retransmittedPacketsSent) !== null && b !== void 0 ? b : void 0,
|
|
1133
1133
|
avgPacketSendDelay: u.totalPacketSendDelay !== void 0 ? u.totalPacketSendDelay / (u.packetsSent || 1) * 1e3 : void 0
|
|
1134
1134
|
};
|
|
1135
|
-
c.userAudioInput.push(
|
|
1135
|
+
c.userAudioInput.push(S);
|
|
1136
1136
|
})), h.codec && (c.codecs = [], h.codec.forEach((u) => {
|
|
1137
1137
|
const C = {
|
|
1138
1138
|
status: u.payloadType ? "Active" : "Available",
|
|
@@ -1200,10 +1200,10 @@ function vn(i) {
|
|
|
1200
1200
|
return "API Gateway wsPath must start with /";
|
|
1201
1201
|
}
|
|
1202
1202
|
}
|
|
1203
|
-
var
|
|
1203
|
+
var se;
|
|
1204
1204
|
(function(i) {
|
|
1205
1205
|
i.OFFER = "offer", i.ANSWER = "answer", i.ICE_CANDIDATE = "icecandidate", i.END_SESSION = "endsession", i.HEARTBEAT = "heartbeat", i.WARNING = "warning", i.TALK_STREAM_INTERRUPTED = "talkinputstreaminterrupted", i.TALK_STREAM_INPUT = "talkstream", i.SESSION_READY = "sessionready", i.AGENT_AUDIO_INPUT = "agentaudioinput", i.AGENT_AUDIO_INPUT_END = "agentaudioinputend";
|
|
1206
|
-
})(
|
|
1206
|
+
})(se || (se = {}));
|
|
1207
1207
|
var nt;
|
|
1208
1208
|
(function(i) {
|
|
1209
1209
|
i.SPEECH_TEXT = "speechText", i.CLIENT_TOOL_EVENT = "clientToolEvent";
|
|
@@ -1216,14 +1216,14 @@ var it;
|
|
|
1216
1216
|
(function(i) {
|
|
1217
1217
|
i.USER = "user", i.PERSONA = "persona";
|
|
1218
1218
|
})(it || (it = {}));
|
|
1219
|
-
var
|
|
1219
|
+
var F;
|
|
1220
1220
|
(function(i) {
|
|
1221
1221
|
i.MESSAGE_HISTORY_UPDATED = "MESSAGE_HISTORY_UPDATED", i.MESSAGE_STREAM_EVENT_RECEIVED = "MESSAGE_STREAM_EVENT_RECEIVED", i.CONNECTION_ESTABLISHED = "CONNECTION_ESTABLISHED", i.CONNECTION_CLOSED = "CONNECTION_CLOSED", i.INPUT_AUDIO_STREAM_STARTED = "INPUT_AUDIO_STREAM_STARTED", i.VIDEO_STREAM_STARTED = "VIDEO_STREAM_STARTED", i.VIDEO_PLAY_STARTED = "VIDEO_PLAY_STARTED", i.AUDIO_STREAM_STARTED = "AUDIO_STREAM_STARTED", i.TALK_STREAM_INTERRUPTED = "TALK_STREAM_INTERRUPTED", i.SESSION_READY = "SESSION_READY", i.SERVER_WARNING = "SERVER_WARNING", i.MIC_PERMISSION_PENDING = "MIC_PERMISSION_PENDING", i.MIC_PERMISSION_GRANTED = "MIC_PERMISSION_GRANTED", i.MIC_PERMISSION_DENIED = "MIC_PERMISSION_DENIED", i.INPUT_AUDIO_DEVICE_CHANGED = "INPUT_AUDIO_DEVICE_CHANGED", i.CLIENT_TOOL_EVENT_RECEIVED = "CLIENT_TOOL_EVENT_RECEIVED";
|
|
1222
|
-
})(
|
|
1223
|
-
var
|
|
1222
|
+
})(F || (F = {}));
|
|
1223
|
+
var pe;
|
|
1224
1224
|
(function(i) {
|
|
1225
1225
|
i.WEB_SOCKET_OPEN = "WEB_SOCKET_OPEN", i.SIGNAL_MESSAGE_RECEIVED = "SIGNAL_MESSAGE_RECEIVED", i.WEBRTC_CHAT_MESSAGE_RECEIVED = "WEBRTC_CHAT_MESSAGE_RECEIVED", i.WEBRTC_CLIENT_TOOL_EVENT_RECEIVED = "WEBRTC_CLIENT_TOOL_EVENT_RECEIVED";
|
|
1226
|
-
})(
|
|
1226
|
+
})(pe || (pe = {}));
|
|
1227
1227
|
var De;
|
|
1228
1228
|
(function(i) {
|
|
1229
1229
|
i.NORMAL = "CONNECTION_CLOSED_CODE_NORMAL", i.MICROPHONE_PERMISSION_DENIED = "CONNECTION_CLOSED_CODE_MICROPHONE_PERMISSION_DENIED", i.SIGNALLING_CLIENT_CONNECTION_FAILURE = "CONNECTION_CLOSED_CODE_SIGNALLING_CLIENT_CONNECTION_FAILURE", i.WEBRTC_FAILURE = "CONNECTION_CLOSED_CODE_WEBRTC_FAILURE", i.SERVER_CLOSED_CONNECTION = "CONNECTION_CLOSED_CODE_SERVER_CLOSED_CONNECTION";
|
|
@@ -1270,7 +1270,7 @@ class xn {
|
|
|
1270
1270
|
return btoa(o);
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
|
-
var
|
|
1273
|
+
var je = function(i, n, r, o) {
|
|
1274
1274
|
function d(h) {
|
|
1275
1275
|
return h instanceof r ? h : new r(function(c) {
|
|
1276
1276
|
c(h);
|
|
@@ -1308,13 +1308,13 @@ class Nn {
|
|
|
1308
1308
|
if (this.heartbeatIntervalSeconds = u || An, this.maxWsReconnectionAttempts = C || Rn, !b.baseUrl)
|
|
1309
1309
|
throw new Error("Signalling Client: baseUrl is required");
|
|
1310
1310
|
if (!((c = this.apiGatewayConfig) === null || c === void 0) && c.enabled && (!((l = this.apiGatewayConfig) === null || l === void 0) && l.baseUrl)) {
|
|
1311
|
-
const
|
|
1312
|
-
|
|
1313
|
-
const
|
|
1314
|
-
H.protocol = k === "ws" ? "ws:" : "wss:", b.port && (H.port = b.port), H.pathname =
|
|
1311
|
+
const S = new URL(this.apiGatewayConfig.baseUrl), x = (m = this.apiGatewayConfig.wsPath) !== null && m !== void 0 ? m : "/ws";
|
|
1312
|
+
S.protocol = S.protocol.replace("http", "ws"), S.pathname = x, this.url = S;
|
|
1313
|
+
const O = b.protocol || "https", k = O === "http" ? "ws" : "wss", G = `${O}://${b.baseUrl}`, j = (y = b.signallingPath) !== null && y !== void 0 ? y : "/ws", H = new URL(G);
|
|
1314
|
+
H.protocol = k === "ws" ? "ws:" : "wss:", b.port && (H.port = b.port), H.pathname = j, H.searchParams.append("session_id", n), this.url.searchParams.append("target_url", H.href);
|
|
1315
1315
|
} else {
|
|
1316
|
-
const
|
|
1317
|
-
this.url = new URL(
|
|
1316
|
+
const x = `${b.protocol || "https"}://${b.baseUrl}`;
|
|
1317
|
+
this.url = new URL(x), this.url.protocol = b.protocol === "http" ? "ws:" : "wss:", b.port && (this.url.port = b.port), this.url.pathname = (g = b.signallingPath) !== null && g !== void 0 ? g : "/ws", this.url.searchParams.append("session_id", n);
|
|
1318
1318
|
}
|
|
1319
1319
|
}
|
|
1320
1320
|
stop() {
|
|
@@ -1324,13 +1324,13 @@ class Nn {
|
|
|
1324
1324
|
return this.socket = new WebSocket(this.url.href), this.socket.onopen = this.onOpen.bind(this), this.socket.onclose = this.onClose.bind(this), this.socket.onerror = this.onError.bind(this), this.socket;
|
|
1325
1325
|
}
|
|
1326
1326
|
sendOffer(n) {
|
|
1327
|
-
return
|
|
1327
|
+
return je(this, void 0, void 0, function* () {
|
|
1328
1328
|
const r = {
|
|
1329
1329
|
connectionDescription: n,
|
|
1330
1330
|
userUid: this.sessionId
|
|
1331
1331
|
// TODO: this should be renamed to session Id on the server
|
|
1332
1332
|
}, o = {
|
|
1333
|
-
actionType:
|
|
1333
|
+
actionType: se.OFFER,
|
|
1334
1334
|
sessionId: this.sessionId,
|
|
1335
1335
|
payload: r
|
|
1336
1336
|
};
|
|
@@ -1338,9 +1338,9 @@ class Nn {
|
|
|
1338
1338
|
});
|
|
1339
1339
|
}
|
|
1340
1340
|
sendIceCandidate(n) {
|
|
1341
|
-
return
|
|
1341
|
+
return je(this, void 0, void 0, function* () {
|
|
1342
1342
|
const r = {
|
|
1343
|
-
actionType:
|
|
1343
|
+
actionType: se.ICE_CANDIDATE,
|
|
1344
1344
|
sessionId: this.sessionId,
|
|
1345
1345
|
payload: n.toJSON()
|
|
1346
1346
|
};
|
|
@@ -1359,9 +1359,9 @@ class Nn {
|
|
|
1359
1359
|
this.sendingBuffer.push(n);
|
|
1360
1360
|
}
|
|
1361
1361
|
sendTalkMessage(n) {
|
|
1362
|
-
return
|
|
1362
|
+
return je(this, void 0, void 0, function* () {
|
|
1363
1363
|
const r = {
|
|
1364
|
-
actionType:
|
|
1364
|
+
actionType: se.TALK_STREAM_INPUT,
|
|
1365
1365
|
sessionId: this.sessionId,
|
|
1366
1366
|
payload: n
|
|
1367
1367
|
};
|
|
@@ -1370,7 +1370,7 @@ class Nn {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
sendAgentAudioInput(n) {
|
|
1372
1372
|
const r = {
|
|
1373
|
-
actionType:
|
|
1373
|
+
actionType: se.AGENT_AUDIO_INPUT,
|
|
1374
1374
|
sessionId: this.sessionId,
|
|
1375
1375
|
payload: n
|
|
1376
1376
|
};
|
|
@@ -1378,7 +1378,7 @@ class Nn {
|
|
|
1378
1378
|
}
|
|
1379
1379
|
sendAgentAudioInputEnd() {
|
|
1380
1380
|
const n = {
|
|
1381
|
-
actionType:
|
|
1381
|
+
actionType: se.AGENT_AUDIO_INPUT_END,
|
|
1382
1382
|
sessionId: this.sessionId,
|
|
1383
1383
|
payload: {}
|
|
1384
1384
|
};
|
|
@@ -1388,21 +1388,21 @@ class Nn {
|
|
|
1388
1388
|
this.socket && (this.socket.close(), this.socket = null), this.heartBeatIntervalRef && (clearInterval(this.heartBeatIntervalRef), this.heartBeatIntervalRef = null);
|
|
1389
1389
|
}
|
|
1390
1390
|
onOpen() {
|
|
1391
|
-
return
|
|
1391
|
+
return je(this, void 0, void 0, function* () {
|
|
1392
1392
|
if (!this.socket)
|
|
1393
1393
|
throw new Error("SignallingClient - onOpen: socket is null");
|
|
1394
1394
|
try {
|
|
1395
|
-
this.wsConnectionAttempts = 0, this.flushSendingBuffer(), this.socket.onmessage = this.onMessage.bind(this), this.startSendingHeartBeats(), this.internalEventEmitter.emit(
|
|
1395
|
+
this.wsConnectionAttempts = 0, this.flushSendingBuffer(), this.socket.onmessage = this.onMessage.bind(this), this.startSendingHeartBeats(), this.internalEventEmitter.emit(pe.WEB_SOCKET_OPEN);
|
|
1396
1396
|
} catch (n) {
|
|
1397
|
-
console.error("SignallingClient - onOpen: error in onOpen", n), this.publicEventEmitter.emit(
|
|
1397
|
+
console.error("SignallingClient - onOpen: error in onOpen", n), this.publicEventEmitter.emit(F.CONNECTION_CLOSED, De.SIGNALLING_CLIENT_CONNECTION_FAILURE);
|
|
1398
1398
|
}
|
|
1399
1399
|
});
|
|
1400
1400
|
}
|
|
1401
1401
|
onClose() {
|
|
1402
|
-
return
|
|
1402
|
+
return je(this, void 0, void 0, function* () {
|
|
1403
1403
|
this.wsConnectionAttempts += 1, !this.stopSignal && (this.wsConnectionAttempts <= this.maxWsReconnectionAttempts ? (this.socket = null, setTimeout(() => {
|
|
1404
1404
|
this.connect();
|
|
1405
|
-
}, 100 * this.wsConnectionAttempts)) : (this.heartBeatIntervalRef && (clearInterval(this.heartBeatIntervalRef), this.heartBeatIntervalRef = null), this.publicEventEmitter.emit(
|
|
1405
|
+
}, 100 * this.wsConnectionAttempts)) : (this.heartBeatIntervalRef && (clearInterval(this.heartBeatIntervalRef), this.heartBeatIntervalRef = null), this.publicEventEmitter.emit(F.CONNECTION_CLOSED, De.SIGNALLING_CLIENT_CONNECTION_FAILURE)));
|
|
1406
1406
|
});
|
|
1407
1407
|
}
|
|
1408
1408
|
onError(n) {
|
|
@@ -1416,9 +1416,9 @@ class Nn {
|
|
|
1416
1416
|
}), this.sendingBuffer = n;
|
|
1417
1417
|
}
|
|
1418
1418
|
onMessage(n) {
|
|
1419
|
-
return
|
|
1419
|
+
return je(this, void 0, void 0, function* () {
|
|
1420
1420
|
const r = JSON.parse(n.data);
|
|
1421
|
-
this.internalEventEmitter.emit(
|
|
1421
|
+
this.internalEventEmitter.emit(pe.SIGNAL_MESSAGE_RECEIVED, r);
|
|
1422
1422
|
});
|
|
1423
1423
|
}
|
|
1424
1424
|
startSendingHeartBeats() {
|
|
@@ -1426,7 +1426,7 @@ class Nn {
|
|
|
1426
1426
|
throw new Error("SignallingClient - startSendingHeartBeats: socket is null");
|
|
1427
1427
|
this.heartBeatIntervalRef && console.warn("SignallingClient - startSendingHeartBeats: heartbeat interval already set");
|
|
1428
1428
|
const n = this.heartbeatIntervalSeconds * 1e3, r = {
|
|
1429
|
-
actionType:
|
|
1429
|
+
actionType: se.HEARTBEAT,
|
|
1430
1430
|
sessionId: this.sessionId,
|
|
1431
1431
|
payload: ""
|
|
1432
1432
|
}, o = JSON.stringify(r);
|
|
@@ -1637,7 +1637,7 @@ class Dn {
|
|
|
1637
1637
|
}
|
|
1638
1638
|
class Bn {
|
|
1639
1639
|
constructor(n, r) {
|
|
1640
|
-
this.messages = [], this.publicEventEmitter = n, this.internalEventEmitter = r, this.internalEventEmitter.addListener(
|
|
1640
|
+
this.messages = [], this.publicEventEmitter = n, this.internalEventEmitter = r, this.internalEventEmitter.addListener(pe.WEBRTC_CHAT_MESSAGE_RECEIVED, this.processWebRtcTextMessageEvent.bind(this));
|
|
1641
1641
|
}
|
|
1642
1642
|
webRtcTextMessageEventToMessageStreamEvent(n) {
|
|
1643
1643
|
return {
|
|
@@ -1672,7 +1672,7 @@ class Bn {
|
|
|
1672
1672
|
}
|
|
1673
1673
|
processWebRtcTextMessageEvent(n) {
|
|
1674
1674
|
const r = this.webRtcTextMessageEventToMessageStreamEvent(n);
|
|
1675
|
-
switch (this.publicEventEmitter.emit(
|
|
1675
|
+
switch (this.publicEventEmitter.emit(F.MESSAGE_STREAM_EVENT_RECEIVED, r), r.role) {
|
|
1676
1676
|
case it.USER:
|
|
1677
1677
|
this.processUserMessage(r);
|
|
1678
1678
|
break;
|
|
@@ -1680,7 +1680,7 @@ class Bn {
|
|
|
1680
1680
|
this.processPersonaMessage(r);
|
|
1681
1681
|
break;
|
|
1682
1682
|
}
|
|
1683
|
-
r.endOfSpeech && this.publicEventEmitter.emit(
|
|
1683
|
+
r.endOfSpeech && this.publicEventEmitter.emit(F.MESSAGE_HISTORY_UPDATED, this.messages);
|
|
1684
1684
|
}
|
|
1685
1685
|
}
|
|
1686
1686
|
class Un {
|
|
@@ -1694,7 +1694,7 @@ class Un {
|
|
|
1694
1694
|
this.listeners[n] && this.listeners[n].delete(r);
|
|
1695
1695
|
}
|
|
1696
1696
|
emit(n, ...r) {
|
|
1697
|
-
if (n ===
|
|
1697
|
+
if (n === F.CONNECTION_ESTABLISHED && Fe(ve.CLIENT_METRIC_MEASUREMENT_CONNECTION_ESTABLISHED, "1"), n === F.CONNECTION_CLOSED) {
|
|
1698
1698
|
const [o, d] = r;
|
|
1699
1699
|
Fe(ve.CLIENT_METRIC_MEASUREMENT_CONNECTION_CLOSED, o, d ? { details: d } : void 0);
|
|
1700
1700
|
}
|
|
@@ -1703,10 +1703,10 @@ class Un {
|
|
|
1703
1703
|
});
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
|
-
var
|
|
1706
|
+
var ae;
|
|
1707
1707
|
(function(i) {
|
|
1708
1708
|
i[i.UNSTARTED = 0] = "UNSTARTED", i[i.STREAMING = 1] = "STREAMING", i[i.INTERRUPTED = 2] = "INTERRUPTED", i[i.ENDED = 3] = "ENDED";
|
|
1709
|
-
})(
|
|
1709
|
+
})(ae || (ae = {}));
|
|
1710
1710
|
var ct = function(i, n, r, o) {
|
|
1711
1711
|
function d(h) {
|
|
1712
1712
|
return h instanceof r ? h : new r(function(c) {
|
|
@@ -1736,23 +1736,23 @@ var ct = function(i, n, r, o) {
|
|
|
1736
1736
|
};
|
|
1737
1737
|
class Ln {
|
|
1738
1738
|
constructor(n, r, o) {
|
|
1739
|
-
this.state =
|
|
1739
|
+
this.state = ae.UNSTARTED, this.correlationId = n, this.internalEventEmitter = r, this.signallingClient = o, this.internalEventEmitter.addListener(pe.SIGNAL_MESSAGE_RECEIVED, this.onSignalMessage.bind(this));
|
|
1740
1740
|
}
|
|
1741
1741
|
onDeactivate() {
|
|
1742
|
-
this.internalEventEmitter.removeListener(
|
|
1742
|
+
this.internalEventEmitter.removeListener(pe.SIGNAL_MESSAGE_RECEIVED, this.onSignalMessage.bind(this));
|
|
1743
1743
|
}
|
|
1744
1744
|
onSignalMessage(n) {
|
|
1745
1745
|
return ct(this, void 0, void 0, function* () {
|
|
1746
|
-
n.actionType ===
|
|
1746
|
+
n.actionType === se.TALK_STREAM_INTERRUPTED && n.payload.correlationId === this.correlationId && (this.state = ae.INTERRUPTED, this.onDeactivate());
|
|
1747
1747
|
});
|
|
1748
1748
|
}
|
|
1749
1749
|
endMessage() {
|
|
1750
1750
|
return ct(this, void 0, void 0, function* () {
|
|
1751
|
-
if (this.state ===
|
|
1751
|
+
if (this.state === ae.ENDED) {
|
|
1752
1752
|
console.warn("Talk stream is already ended via end of speech. No need to call endMessage.");
|
|
1753
1753
|
return;
|
|
1754
1754
|
}
|
|
1755
|
-
if (this.state !==
|
|
1755
|
+
if (this.state !== ae.STREAMING) {
|
|
1756
1756
|
console.warn("Talk stream is not active state: " + this.state);
|
|
1757
1757
|
return;
|
|
1758
1758
|
}
|
|
@@ -1762,27 +1762,27 @@ class Ln {
|
|
|
1762
1762
|
endOfSpeech: !0,
|
|
1763
1763
|
correlationId: this.correlationId
|
|
1764
1764
|
};
|
|
1765
|
-
yield this.signallingClient.sendTalkMessage(n), this.state =
|
|
1765
|
+
yield this.signallingClient.sendTalkMessage(n), this.state = ae.ENDED, this.onDeactivate();
|
|
1766
1766
|
});
|
|
1767
1767
|
}
|
|
1768
1768
|
streamMessageChunk(n, r) {
|
|
1769
1769
|
return ct(this, void 0, void 0, function* () {
|
|
1770
|
-
if (this.state !==
|
|
1770
|
+
if (this.state !== ae.STREAMING && this.state !== ae.UNSTARTED)
|
|
1771
1771
|
throw new Error("Talk stream is not in an active state: " + this.state);
|
|
1772
1772
|
const o = {
|
|
1773
1773
|
content: n,
|
|
1774
|
-
startOfSpeech: this.state ===
|
|
1774
|
+
startOfSpeech: this.state === ae.UNSTARTED,
|
|
1775
1775
|
endOfSpeech: r,
|
|
1776
1776
|
correlationId: this.correlationId
|
|
1777
1777
|
};
|
|
1778
|
-
this.state = r ?
|
|
1778
|
+
this.state = r ? ae.ENDED : ae.STREAMING, this.state === ae.ENDED && this.onDeactivate(), yield this.signallingClient.sendTalkMessage(o);
|
|
1779
1779
|
});
|
|
1780
1780
|
}
|
|
1781
1781
|
getCorrelationId() {
|
|
1782
1782
|
return this.correlationId;
|
|
1783
1783
|
}
|
|
1784
1784
|
isActive() {
|
|
1785
|
-
return this.state ===
|
|
1785
|
+
return this.state === ae.STREAMING || this.state === ae.UNSTARTED;
|
|
1786
1786
|
}
|
|
1787
1787
|
getState() {
|
|
1788
1788
|
return this.state;
|
|
@@ -1816,7 +1816,7 @@ var de = function(i, n, r, o) {
|
|
|
1816
1816
|
});
|
|
1817
1817
|
};
|
|
1818
1818
|
const Pn = 15e3, Fn = 5e3, Gn = 2;
|
|
1819
|
-
class
|
|
1819
|
+
class $n {
|
|
1820
1820
|
constructor(n, r, o, d) {
|
|
1821
1821
|
var h, c, l, m;
|
|
1822
1822
|
this.peerConnection = null, this.connectionReceivedAnswer = !1, this.remoteIceCandidateBuffer = [], this.inputAudioStream = null, this.dataChannel = null, this.videoElement = null, this.videoStream = null, this.audioStream = null, this.inputAudioState = {
|
|
@@ -1824,7 +1824,7 @@ class Vn {
|
|
|
1824
1824
|
permissionState: Me.NOT_REQUESTED
|
|
1825
1825
|
}, this.successMetricPoller = null, this.successMetricFired = !1, this.showPeerConnectionStatsReport = !1, this.peerConnectionStatsReportOutputFormat = "console", this.statsCollectionInterval = null, this.agentAudioInputStream = null, this.publicEventEmitter = o, this.internalEventEmitter = d, this.apiGatewayConfig = r.apiGateway;
|
|
1826
1826
|
const { inputAudio: y } = r;
|
|
1827
|
-
this.inputAudioState = y.inputAudioState, r.inputAudio.userProvidedMediaStream && (this.inputAudioStream = r.inputAudio.userProvidedMediaStream), this.disableInputAudio = r.inputAudio.disableInputAudio === !0, this.internalEventEmitter.addListener(
|
|
1827
|
+
this.inputAudioState = y.inputAudioState, r.inputAudio.userProvidedMediaStream && (this.inputAudioStream = r.inputAudio.userProvidedMediaStream), this.disableInputAudio = r.inputAudio.disableInputAudio === !0, this.internalEventEmitter.addListener(pe.WEB_SOCKET_OPEN, this.onSignallingClientConnected.bind(this)), this.internalEventEmitter.addListener(pe.SIGNAL_MESSAGE_RECEIVED, this.onSignalMessage.bind(this)), this.iceServers = r.iceServers, this.signallingClient = new Nn(n, r.signalling, this.publicEventEmitter, this.internalEventEmitter, this.apiGatewayConfig), this.engineApiRestClient = new Mn(r.engine.baseUrl, n, this.apiGatewayConfig), this.audioDeviceId = r.inputAudio.audioDeviceId, this.showPeerConnectionStatsReport = (c = (h = r.metrics) === null || h === void 0 ? void 0 : h.showPeerConnectionStatsReport) !== null && c !== void 0 ? c : !1, this.peerConnectionStatsReportOutputFormat = (m = (l = r.metrics) === null || l === void 0 ? void 0 : l.peerConnectionStatsReportOutputFormat) !== null && m !== void 0 ? m : "console";
|
|
1828
1828
|
}
|
|
1829
1829
|
onInputAudioStateChange(n, r) {
|
|
1830
1830
|
n.isMuted !== r.isMuted && (r.isMuted ? this.muteAllAudioTracks() : this.unmuteAllAudioTracks());
|
|
@@ -1918,7 +1918,7 @@ class Vn {
|
|
|
1918
1918
|
};
|
|
1919
1919
|
this.inputAudioStream = yield navigator.mediaDevices.getUserMedia({
|
|
1920
1920
|
audio: o
|
|
1921
|
-
}), this.audioDeviceId = n, yield this.setupAudioTrack(), r && this.muteAllAudioTracks(), this.publicEventEmitter.emit(
|
|
1921
|
+
}), this.audioDeviceId = n, yield this.setupAudioTrack(), r && this.muteAllAudioTracks(), this.publicEventEmitter.emit(F.INPUT_AUDIO_DEVICE_CHANGED, n);
|
|
1922
1922
|
} catch (o) {
|
|
1923
1923
|
throw console.error("Failed to change audio input device:", o), new Error(`StreamingClient - changeAudioInputDevice: ${o instanceof Error ? o.message : String(o)}`);
|
|
1924
1924
|
}
|
|
@@ -1993,31 +1993,31 @@ class Vn {
|
|
|
1993
1993
|
return;
|
|
1994
1994
|
}
|
|
1995
1995
|
switch (n.actionType) {
|
|
1996
|
-
case
|
|
1996
|
+
case se.ANSWER:
|
|
1997
1997
|
const r = n.payload;
|
|
1998
1998
|
yield this.peerConnection.setRemoteDescription(r), this.connectionReceivedAnswer = !0, this.flushRemoteIceCandidateBuffer();
|
|
1999
1999
|
break;
|
|
2000
|
-
case
|
|
2000
|
+
case se.ICE_CANDIDATE:
|
|
2001
2001
|
const o = n.payload, d = new RTCIceCandidate(o);
|
|
2002
2002
|
this.connectionReceivedAnswer ? yield this.peerConnection.addIceCandidate(d) : this.remoteIceCandidateBuffer.push(d);
|
|
2003
2003
|
break;
|
|
2004
|
-
case
|
|
2004
|
+
case se.END_SESSION:
|
|
2005
2005
|
const h = n.payload;
|
|
2006
|
-
this.publicEventEmitter.emit(
|
|
2006
|
+
this.publicEventEmitter.emit(F.CONNECTION_CLOSED, De.SERVER_CLOSED_CONNECTION, h), this.shutdown();
|
|
2007
2007
|
break;
|
|
2008
|
-
case
|
|
2008
|
+
case se.WARNING:
|
|
2009
2009
|
const c = n.payload;
|
|
2010
|
-
console.warn("Warning received from server: " + c), this.publicEventEmitter.emit(
|
|
2010
|
+
console.warn("Warning received from server: " + c), this.publicEventEmitter.emit(F.SERVER_WARNING, c);
|
|
2011
2011
|
break;
|
|
2012
|
-
case
|
|
2012
|
+
case se.TALK_STREAM_INTERRUPTED:
|
|
2013
2013
|
const l = n.payload;
|
|
2014
|
-
this.publicEventEmitter.emit(
|
|
2014
|
+
this.publicEventEmitter.emit(F.TALK_STREAM_INTERRUPTED, l.correlationId);
|
|
2015
2015
|
break;
|
|
2016
|
-
case
|
|
2016
|
+
case se.SESSION_READY:
|
|
2017
2017
|
const m = n.sessionId;
|
|
2018
|
-
this.publicEventEmitter.emit(
|
|
2018
|
+
this.publicEventEmitter.emit(F.SESSION_READY, m);
|
|
2019
2019
|
break;
|
|
2020
|
-
case
|
|
2020
|
+
case se.HEARTBEAT:
|
|
2021
2021
|
break;
|
|
2022
2022
|
default:
|
|
2023
2023
|
console.warn("StreamingClient - onSignalMessage: unknown signal message action type. Is your anam-sdk version up to date?", n);
|
|
@@ -2050,14 +2050,14 @@ class Vn {
|
|
|
2050
2050
|
}
|
|
2051
2051
|
onIceConnectionStateChange() {
|
|
2052
2052
|
var n, r;
|
|
2053
|
-
(((n = this.peerConnection) === null || n === void 0 ? void 0 : n.iceConnectionState) === "connected" || ((r = this.peerConnection) === null || r === void 0 ? void 0 : r.iceConnectionState) === "completed") && (this.publicEventEmitter.emit(
|
|
2053
|
+
(((n = this.peerConnection) === null || n === void 0 ? void 0 : n.iceConnectionState) === "connected" || ((r = this.peerConnection) === null || r === void 0 ? void 0 : r.iceConnectionState) === "completed") && (this.publicEventEmitter.emit(F.CONNECTION_ESTABLISHED), this.startStatsCollection());
|
|
2054
2054
|
}
|
|
2055
2055
|
onConnectionStateChange() {
|
|
2056
2056
|
var n;
|
|
2057
2057
|
((n = this.peerConnection) === null || n === void 0 ? void 0 : n.connectionState) === "closed" && (console.error("StreamingClient - onConnectionStateChange: Connection closed"), this.handleWebrtcFailure("The connection to our servers was lost. Please try again."));
|
|
2058
2058
|
}
|
|
2059
2059
|
handleWebrtcFailure(n) {
|
|
2060
|
-
console.error({ message: "StreamingClient - handleWebrtcFailure: ", err: n }), n.name === "NotAllowedError" && n.message === "Permission denied" ? this.publicEventEmitter.emit(
|
|
2060
|
+
console.error({ message: "StreamingClient - handleWebrtcFailure: ", err: n }), n.name === "NotAllowedError" && n.message === "Permission denied" ? this.publicEventEmitter.emit(F.CONNECTION_CLOSED, De.MICROPHONE_PERMISSION_DENIED) : this.publicEventEmitter.emit(F.CONNECTION_CLOSED, De.WEBRTC_FAILURE);
|
|
2061
2061
|
try {
|
|
2062
2062
|
this.stopConnection();
|
|
2063
2063
|
} catch (r) {
|
|
@@ -2066,14 +2066,14 @@ class Vn {
|
|
|
2066
2066
|
}
|
|
2067
2067
|
onTrackEventHandler(n) {
|
|
2068
2068
|
if (n.track.kind === "video") {
|
|
2069
|
-
if (this.startSuccessMetricPolling(), this.videoStream = n.streams[0], this.publicEventEmitter.emit(
|
|
2069
|
+
if (this.startSuccessMetricPolling(), this.videoStream = n.streams[0], this.publicEventEmitter.emit(F.VIDEO_STREAM_STARTED, this.videoStream), this.videoElement) {
|
|
2070
2070
|
this.videoElement.srcObject = this.videoStream;
|
|
2071
2071
|
const r = this.videoElement.requestVideoFrameCallback(() => {
|
|
2072
2072
|
var o;
|
|
2073
|
-
(o = this.videoElement) === null || o === void 0 || o.cancelVideoFrameCallback(r), this.publicEventEmitter.emit(
|
|
2073
|
+
(o = this.videoElement) === null || o === void 0 || o.cancelVideoFrameCallback(r), this.publicEventEmitter.emit(F.VIDEO_PLAY_STARTED), this.successMetricFired || (this.successMetricFired = !0, Fe(ve.CLIENT_METRIC_MEASUREMENT_SESSION_SUCCESS, "1", { detectionMethod: "videoElement" }));
|
|
2074
2074
|
});
|
|
2075
2075
|
}
|
|
2076
|
-
} else n.track.kind === "audio" && (this.audioStream = n.streams[0], this.publicEventEmitter.emit(
|
|
2076
|
+
} else n.track.kind === "audio" && (this.audioStream = n.streams[0], this.publicEventEmitter.emit(F.AUDIO_STREAM_STARTED, this.audioStream));
|
|
2077
2077
|
}
|
|
2078
2078
|
/**
|
|
2079
2079
|
* Set up the data channels for sending and receiving messages
|
|
@@ -2097,13 +2097,13 @@ class Vn {
|
|
|
2097
2097
|
const o = JSON.parse(r.data);
|
|
2098
2098
|
switch (o.messageType) {
|
|
2099
2099
|
case nt.SPEECH_TEXT:
|
|
2100
|
-
this.internalEventEmitter.emit(
|
|
2100
|
+
this.internalEventEmitter.emit(pe.WEBRTC_CHAT_MESSAGE_RECEIVED, o.data);
|
|
2101
2101
|
break;
|
|
2102
2102
|
case nt.CLIENT_TOOL_EVENT:
|
|
2103
2103
|
const d = o.data;
|
|
2104
|
-
this.internalEventEmitter.emit(
|
|
2105
|
-
const h =
|
|
2106
|
-
this.publicEventEmitter.emit(
|
|
2104
|
+
this.internalEventEmitter.emit(pe.WEBRTC_CLIENT_TOOL_EVENT_RECEIVED, d);
|
|
2105
|
+
const h = Vn.WebRTCClientToolEventToClientToolEvent(d);
|
|
2106
|
+
this.publicEventEmitter.emit(F.CLIENT_TOOL_EVENT_RECEIVED, h);
|
|
2107
2107
|
break;
|
|
2108
2108
|
// Unknown message types are silently ignored to maintain forward compatibility
|
|
2109
2109
|
default:
|
|
@@ -2121,7 +2121,7 @@ class Vn {
|
|
|
2121
2121
|
requestMicrophonePermissionAsync() {
|
|
2122
2122
|
return de(this, void 0, void 0, function* () {
|
|
2123
2123
|
if (this.inputAudioState.permissionState !== Me.PENDING) {
|
|
2124
|
-
this.inputAudioState = Object.assign(Object.assign({}, this.inputAudioState), { permissionState: Me.PENDING }), this.publicEventEmitter.emit(
|
|
2124
|
+
this.inputAudioState = Object.assign(Object.assign({}, this.inputAudioState), { permissionState: Me.PENDING }), this.publicEventEmitter.emit(F.MIC_PERMISSION_PENDING);
|
|
2125
2125
|
try {
|
|
2126
2126
|
const n = {
|
|
2127
2127
|
echoCancellation: !0
|
|
@@ -2130,11 +2130,11 @@ class Vn {
|
|
|
2130
2130
|
exact: this.audioDeviceId
|
|
2131
2131
|
}), this.inputAudioStream = yield navigator.mediaDevices.getUserMedia({
|
|
2132
2132
|
audio: n
|
|
2133
|
-
}), this.inputAudioState = Object.assign(Object.assign({}, this.inputAudioState), { permissionState: Me.GRANTED }), this.publicEventEmitter.emit(
|
|
2133
|
+
}), this.inputAudioState = Object.assign(Object.assign({}, this.inputAudioState), { permissionState: Me.GRANTED }), this.publicEventEmitter.emit(F.MIC_PERMISSION_GRANTED), yield this.setupAudioTrack();
|
|
2134
2134
|
} catch (n) {
|
|
2135
2135
|
console.error("Failed to get microphone permission:", n), this.inputAudioState = Object.assign(Object.assign({}, this.inputAudioState), { permissionState: Me.DENIED });
|
|
2136
2136
|
const r = n instanceof Error ? n.message : String(n);
|
|
2137
|
-
this.publicEventEmitter.emit(
|
|
2137
|
+
this.publicEventEmitter.emit(F.MIC_PERMISSION_DENIED, r);
|
|
2138
2138
|
}
|
|
2139
2139
|
}
|
|
2140
2140
|
});
|
|
@@ -2163,7 +2163,7 @@ class Vn {
|
|
|
2163
2163
|
}
|
|
2164
2164
|
else
|
|
2165
2165
|
this.peerConnection.addTrack(n, this.inputAudioStream);
|
|
2166
|
-
this.publicEventEmitter.emit(
|
|
2166
|
+
this.publicEventEmitter.emit(F.INPUT_AUDIO_STREAM_STARTED, this.inputAudioStream);
|
|
2167
2167
|
});
|
|
2168
2168
|
}
|
|
2169
2169
|
initPeerConnectionAndSendOffer() {
|
|
@@ -2214,7 +2214,7 @@ class Vn {
|
|
|
2214
2214
|
});
|
|
2215
2215
|
}
|
|
2216
2216
|
}
|
|
2217
|
-
class
|
|
2217
|
+
class Vn {
|
|
2218
2218
|
/**
|
|
2219
2219
|
* Converts a WebRtcClientToolEvent to a ClientToolEvent
|
|
2220
2220
|
*/
|
|
@@ -2257,7 +2257,7 @@ var Re = function(i, n, r, o) {
|
|
|
2257
2257
|
y((o = o.apply(i, n || [])).next());
|
|
2258
2258
|
});
|
|
2259
2259
|
};
|
|
2260
|
-
class
|
|
2260
|
+
class nr {
|
|
2261
2261
|
constructor(n, r, o) {
|
|
2262
2262
|
var d, h, c, l, m;
|
|
2263
2263
|
this.inputAudioState = {
|
|
@@ -2288,7 +2288,7 @@ class Ji {
|
|
|
2288
2288
|
return c;
|
|
2289
2289
|
if (n) {
|
|
2290
2290
|
const l = this.decodeJwt(n);
|
|
2291
|
-
this.organizationId = l.accountId,
|
|
2291
|
+
this.organizationId = l.accountId, Ve({
|
|
2292
2292
|
organizationId: this.organizationId
|
|
2293
2293
|
});
|
|
2294
2294
|
const m = (h = l.type) === null || h === void 0 ? void 0 : h.toLowerCase();
|
|
@@ -2318,23 +2318,23 @@ class Ji {
|
|
|
2318
2318
|
startSession(n) {
|
|
2319
2319
|
return Re(this, void 0, void 0, function* () {
|
|
2320
2320
|
var r, o, d, h, c, l, m, y, g, u, C, b;
|
|
2321
|
-
const
|
|
2322
|
-
this.sessionId = k,
|
|
2321
|
+
const S = this.personaConfig, x = this.buildStartSessionOptionsForClient(), O = yield this.apiClient.startSession(S, x), { sessionId: k, clientConfig: G, engineHost: j, engineProtocol: H, signallingEndpoint: P } = O, { heartbeatIntervalSeconds: $, maxWsReconnectionAttempts: oe, iceServers: N } = G;
|
|
2322
|
+
this.sessionId = k, Ve({
|
|
2323
2323
|
sessionId: this.sessionId
|
|
2324
2324
|
});
|
|
2325
|
-
const V = !((r = this.clientOptions) === null || r === void 0) && r.iceServers ? this.clientOptions.iceServers :
|
|
2325
|
+
const V = !((r = this.clientOptions) === null || r === void 0) && r.iceServers ? this.clientOptions.iceServers : N;
|
|
2326
2326
|
try {
|
|
2327
|
-
this.streamingClient = new
|
|
2327
|
+
this.streamingClient = new $n(k, {
|
|
2328
2328
|
engine: {
|
|
2329
|
-
baseUrl: `${H}://${
|
|
2329
|
+
baseUrl: `${H}://${j}`
|
|
2330
2330
|
},
|
|
2331
2331
|
signalling: {
|
|
2332
|
-
heartbeatIntervalSeconds:
|
|
2333
|
-
maxWsReconnectionAttempts:
|
|
2332
|
+
heartbeatIntervalSeconds: $,
|
|
2333
|
+
maxWsReconnectionAttempts: oe,
|
|
2334
2334
|
url: {
|
|
2335
|
-
baseUrl:
|
|
2335
|
+
baseUrl: j,
|
|
2336
2336
|
protocol: H,
|
|
2337
|
-
signallingPath:
|
|
2337
|
+
signallingPath: P
|
|
2338
2338
|
}
|
|
2339
2339
|
},
|
|
2340
2340
|
iceServers: V,
|
|
@@ -2350,11 +2350,11 @@ class Ji {
|
|
|
2350
2350
|
peerConnectionStatsReportOutputFormat: (b = (C = (u = this.clientOptions) === null || u === void 0 ? void 0 : u.metrics) === null || C === void 0 ? void 0 : C.peerConnectionStatsReportOutputFormat) !== null && b !== void 0 ? b : "console"
|
|
2351
2351
|
}
|
|
2352
2352
|
}, this.publicEventEmitter, this.internalEventEmitter);
|
|
2353
|
-
} catch (
|
|
2354
|
-
throw
|
|
2353
|
+
} catch (z) {
|
|
2354
|
+
throw Ve({
|
|
2355
2355
|
sessionId: null
|
|
2356
2356
|
}), new te("Failed to initialize streaming client", ie.CLIENT_ERROR_CODE_SERVER_ERROR, 500, {
|
|
2357
|
-
cause:
|
|
2357
|
+
cause: z instanceof Error ? z.message : String(z),
|
|
2358
2358
|
sessionId: k
|
|
2359
2359
|
});
|
|
2360
2360
|
}
|
|
@@ -2375,7 +2375,7 @@ class Ji {
|
|
|
2375
2375
|
if (this._isStreaming)
|
|
2376
2376
|
throw new Error("Already streaming");
|
|
2377
2377
|
const o = vt();
|
|
2378
|
-
return
|
|
2378
|
+
return Ve({
|
|
2379
2379
|
attemptCorrelationId: o,
|
|
2380
2380
|
sessionId: null
|
|
2381
2381
|
// reset sessionId
|
|
@@ -2383,9 +2383,9 @@ class Ji {
|
|
|
2383
2383
|
var h;
|
|
2384
2384
|
const c = [];
|
|
2385
2385
|
let l = !1, m = !1;
|
|
2386
|
-
this.publicEventEmitter.addListener(
|
|
2386
|
+
this.publicEventEmitter.addListener(F.VIDEO_STREAM_STARTED, (y) => {
|
|
2387
2387
|
c.push(y), l = !0, m && d(c);
|
|
2388
|
-
}), this.publicEventEmitter.addListener(
|
|
2388
|
+
}), this.publicEventEmitter.addListener(F.AUDIO_STREAM_STARTED, (y) => {
|
|
2389
2389
|
c.push(y), m = !0, l && d(c);
|
|
2390
2390
|
}), (h = this.streamingClient) === null || h === void 0 || h.startConnection();
|
|
2391
2391
|
});
|
|
@@ -2403,7 +2403,7 @@ class Ji {
|
|
|
2403
2403
|
return Re(this, void 0, void 0, function* () {
|
|
2404
2404
|
var o;
|
|
2405
2405
|
const d = vt();
|
|
2406
|
-
|
|
2406
|
+
Ve({
|
|
2407
2407
|
attemptCorrelationId: d,
|
|
2408
2408
|
sessionId: null
|
|
2409
2409
|
// reset sessionId
|
|
@@ -2483,7 +2483,7 @@ class Ji {
|
|
|
2483
2483
|
}
|
|
2484
2484
|
stopStreaming() {
|
|
2485
2485
|
return Re(this, void 0, void 0, function* () {
|
|
2486
|
-
this.streamingClient && (this.publicEventEmitter.emit(
|
|
2486
|
+
this.streamingClient && (this.publicEventEmitter.emit(F.CONNECTION_CLOSED, De.NORMAL), yield this.streamingClient.stopConnection(), this.streamingClient = null, this.sessionId = null, Ve({
|
|
2487
2487
|
attemptCorrelationId: null,
|
|
2488
2488
|
sessionId: null,
|
|
2489
2489
|
organizationId: this.organizationId
|
|
@@ -2548,172 +2548,231 @@ class Ji {
|
|
|
2548
2548
|
return this.sessionId;
|
|
2549
2549
|
}
|
|
2550
2550
|
}
|
|
2551
|
-
const Pt = sn(null)
|
|
2552
|
-
|
|
2551
|
+
const Pt = sn(null);
|
|
2552
|
+
function jn(i) {
|
|
2553
|
+
return typeof i == "object" && i !== null && "status" in i && (i.status === "success" || i.status === "error") && !("type" in i);
|
|
2554
|
+
}
|
|
2555
|
+
function zn(i) {
|
|
2556
|
+
return typeof i == "object" && i !== null && "type" in i && i.type === "message_history_ack" && "status" in i && i.status === "ok";
|
|
2557
|
+
}
|
|
2558
|
+
function Wn(i) {
|
|
2559
|
+
return typeof i == "object" && i !== null && "type" in i && i.type === "message_stream_ack" && "status" in i && i.status === "ok";
|
|
2560
|
+
}
|
|
2561
|
+
function Hn(i) {
|
|
2562
|
+
return typeof i == "object" && i !== null && "type" in i && i.type === "session_end_ack" && "status" in i && i.status === "ok";
|
|
2563
|
+
}
|
|
2564
|
+
function Jn(i) {
|
|
2565
|
+
return typeof i == "object" && i !== null && "type" in i && i.type === "session_end_error" && "status" in i && i.status === "error";
|
|
2566
|
+
}
|
|
2567
|
+
function qn(i) {
|
|
2568
|
+
return typeof i == "object" && i !== null && "type" in i && i.type === "trigger_event";
|
|
2569
|
+
}
|
|
2570
|
+
function Kn(i) {
|
|
2571
|
+
return typeof i == "object" && i !== null && "status" in i && i.status === "ok" && "message" in i && !("type" in i);
|
|
2572
|
+
}
|
|
2573
|
+
function Yn(i) {
|
|
2574
|
+
return typeof i == "object" && i !== null && "status" in i && i.status === "error" && "error" in i && i.error === "MISSING_FIELDS";
|
|
2575
|
+
}
|
|
2576
|
+
const ir = ({ config: i, children: n }) => {
|
|
2577
|
+
const [r, o] = ue(!1), [d, h] = ue(!1), [c, l] = ue(!1), [m, y] = ue([]), [g, u] = ue(""), [C, b] = ue(!1), [S, x] = ue(!1), [O, k] = ue(null), [G, j] = ue("user"), [H, P] = ue("bottom-right"), [$, oe] = ue({
|
|
2553
2578
|
session_id: null,
|
|
2554
2579
|
token: null,
|
|
2555
2580
|
expires_at: null,
|
|
2556
2581
|
isSessionReady: !1,
|
|
2557
2582
|
lastError: null
|
|
2558
|
-
}),
|
|
2559
|
-
if (
|
|
2560
|
-
console.log("Session response:", _.message), _.session_data ? (se({
|
|
2561
|
-
session_id: _.session_data.session_id,
|
|
2562
|
-
token: _.session_data.token,
|
|
2563
|
-
expires_at: _.session_data.expires_at,
|
|
2564
|
-
isSessionReady: !0,
|
|
2565
|
-
lastError: null
|
|
2566
|
-
}), A(_.session_data.token)) : (console.log("Session not triggered:", _.message), se((T) => ({
|
|
2567
|
-
...T,
|
|
2568
|
-
isSessionReady: !1,
|
|
2569
|
-
lastError: null
|
|
2570
|
-
})));
|
|
2571
|
-
else {
|
|
2572
|
-
console.error("Session error:", _.message, _.error);
|
|
2573
|
-
const T = `${_.error}: ${_.message}`;
|
|
2574
|
-
se(($) => ({
|
|
2575
|
-
...$,
|
|
2576
|
-
isSessionReady: !1,
|
|
2577
|
-
lastError: T
|
|
2578
|
-
})), k(T), i.onError?.(new Error(T));
|
|
2579
|
-
}
|
|
2580
|
-
}, [i]), he = ce((_) => {
|
|
2581
|
-
if (!j.current || j.current.readyState !== WebSocket.OPEN) {
|
|
2583
|
+
}), N = i.theme || "light", V = Pe(null), z = Pe(null), Ge = Pe("aria-video-element"), ye = Pe(null), xe = Pe([]), be = le((I) => {
|
|
2584
|
+
if (!z.current || z.current.readyState !== WebSocket.OPEN) {
|
|
2582
2585
|
console.warn("WebSocket not connected, cannot send message history");
|
|
2583
2586
|
return;
|
|
2584
2587
|
}
|
|
2585
|
-
if (
|
|
2588
|
+
if (!$.session_id || !i.userId) {
|
|
2586
2589
|
console.warn("Missing session_id or user_id, cannot send message history");
|
|
2587
2590
|
return;
|
|
2588
2591
|
}
|
|
2589
|
-
if (JSON.stringify(
|
|
2592
|
+
if (JSON.stringify(I) === JSON.stringify(xe.current))
|
|
2590
2593
|
return;
|
|
2591
|
-
xe.current =
|
|
2594
|
+
xe.current = I;
|
|
2592
2595
|
const T = {
|
|
2593
2596
|
type: "message_history",
|
|
2594
|
-
session_id:
|
|
2597
|
+
session_id: $.session_id,
|
|
2595
2598
|
user_id: i.userId,
|
|
2596
|
-
messages:
|
|
2599
|
+
messages: I
|
|
2597
2600
|
};
|
|
2598
2601
|
try {
|
|
2599
|
-
|
|
2600
|
-
} catch (
|
|
2601
|
-
console.error("Failed to send message history:",
|
|
2602
|
+
z.current.send(JSON.stringify(T)), console.log("Sent message history:", I.length, "messages");
|
|
2603
|
+
} catch (L) {
|
|
2604
|
+
console.error("Failed to send message history:", L);
|
|
2602
2605
|
}
|
|
2603
|
-
}, [
|
|
2604
|
-
if (!
|
|
2606
|
+
}, [$.session_id, i.userId]), he = le((I, T) => {
|
|
2607
|
+
if (!z.current || z.current.readyState !== WebSocket.OPEN) {
|
|
2605
2608
|
console.warn("WebSocket not connected, cannot send message stream");
|
|
2606
2609
|
return;
|
|
2607
2610
|
}
|
|
2608
|
-
if (
|
|
2611
|
+
if (!$.session_id || !i.userId) {
|
|
2609
2612
|
console.warn("Missing session_id or user_id, cannot send message stream");
|
|
2610
2613
|
return;
|
|
2611
2614
|
}
|
|
2612
|
-
const
|
|
2615
|
+
const L = {
|
|
2613
2616
|
type: "message_stream",
|
|
2614
|
-
session_id:
|
|
2617
|
+
session_id: $.session_id,
|
|
2615
2618
|
user_id: i.userId,
|
|
2616
2619
|
message: {
|
|
2617
|
-
...
|
|
2620
|
+
...I,
|
|
2618
2621
|
is_final: T
|
|
2619
2622
|
}
|
|
2620
2623
|
};
|
|
2621
2624
|
try {
|
|
2622
|
-
|
|
2623
|
-
} catch (
|
|
2624
|
-
console.error("Failed to send message stream:",
|
|
2625
|
+
z.current.send(JSON.stringify(L)), T && console.log("Sent final message stream:", I.role);
|
|
2626
|
+
} catch (A) {
|
|
2627
|
+
console.error("Failed to send message stream:", A);
|
|
2625
2628
|
}
|
|
2626
|
-
}, [
|
|
2627
|
-
if (!j.current || j.current.readyState !== WebSocket.OPEN) {
|
|
2628
|
-
console.warn("WebSocket not connected, cannot send session end");
|
|
2629
|
-
return;
|
|
2630
|
-
}
|
|
2631
|
-
if (!G.session_id || !i.userId) {
|
|
2632
|
-
console.warn("Missing session_id or user_id, cannot send session end");
|
|
2633
|
-
return;
|
|
2634
|
-
}
|
|
2635
|
-
const _ = {
|
|
2636
|
-
type: "session_end",
|
|
2637
|
-
session_id: G.session_id,
|
|
2638
|
-
user_id: i.userId
|
|
2639
|
-
};
|
|
2640
|
-
try {
|
|
2641
|
-
j.current.send(JSON.stringify(_)), console.log("Sent session end event");
|
|
2642
|
-
} catch (T) {
|
|
2643
|
-
console.error("Failed to send session end:", T);
|
|
2644
|
-
}
|
|
2645
|
-
}, [G.session_id, i.userId]), A = ce(async (_) => {
|
|
2629
|
+
}, [$.session_id, i.userId]), re = le(async (I) => {
|
|
2646
2630
|
if (!(V.current || c)) {
|
|
2647
2631
|
l(!0);
|
|
2648
2632
|
try {
|
|
2649
|
-
const { createClient: T } = await import("./index-
|
|
2650
|
-
|
|
2633
|
+
const { createClient: T } = await import("./index-CWi95RnT.js"), L = T(I);
|
|
2634
|
+
L.addListener(F.SESSION_READY, () => {
|
|
2651
2635
|
h(!0), l(!1), i.onSessionReady?.(), i.onConnectionStateChange?.(!0);
|
|
2652
|
-
}),
|
|
2636
|
+
}), L.addListener(F.CONNECTION_CLOSED, () => {
|
|
2653
2637
|
h(!1), i.onConnectionStateChange?.(!1);
|
|
2654
|
-
}),
|
|
2655
|
-
const
|
|
2638
|
+
}), L.addListener(F.MESSAGE_HISTORY_UPDATED, (A) => {
|
|
2639
|
+
const me = A.map((Ie) => ({
|
|
2656
2640
|
role: Ie.role,
|
|
2657
2641
|
content: Ie.content,
|
|
2658
2642
|
timestamp: Date.now()
|
|
2659
2643
|
}));
|
|
2660
|
-
y(
|
|
2661
|
-
const Ce =
|
|
2644
|
+
y(me);
|
|
2645
|
+
const Ce = A.map((Ie) => ({
|
|
2662
2646
|
role: Ie.role,
|
|
2663
2647
|
content: Ie.content,
|
|
2664
2648
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
2665
2649
|
}));
|
|
2666
|
-
|
|
2667
|
-
}),
|
|
2668
|
-
|
|
2669
|
-
const
|
|
2670
|
-
role:
|
|
2671
|
-
content:
|
|
2650
|
+
be(Ce);
|
|
2651
|
+
}), L.addListener(F.MESSAGE_STREAM_EVENT_RECEIVED, (A) => {
|
|
2652
|
+
A.role === "persona" ? u((Ie) => Ie + A.content) : A.role === "user" && u("");
|
|
2653
|
+
const me = {
|
|
2654
|
+
role: A.role,
|
|
2655
|
+
content: A.content,
|
|
2672
2656
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
2673
|
-
}, Ce =
|
|
2674
|
-
|
|
2675
|
-
}), V.current =
|
|
2657
|
+
}, Ce = A.is_final ?? !1;
|
|
2658
|
+
he(me, Ce);
|
|
2659
|
+
}), V.current = L, await L.streamToVideoElement(Ge.current);
|
|
2676
2660
|
} catch (T) {
|
|
2677
|
-
const
|
|
2678
|
-
k(
|
|
2661
|
+
const L = T instanceof Error ? T.message : "Failed to initialize Anam client";
|
|
2662
|
+
k(L), l(!1), i.onError?.(T instanceof Error ? T : new Error(L));
|
|
2679
2663
|
}
|
|
2680
2664
|
}
|
|
2681
|
-
}, [i, c,
|
|
2682
|
-
if (
|
|
2665
|
+
}, [i, c, be, he]), ce = le((I) => {
|
|
2666
|
+
if (I.status === "success")
|
|
2667
|
+
console.log("Session response:", I.message), I.session_data ? (oe({
|
|
2668
|
+
session_id: I.session_data.session_id,
|
|
2669
|
+
token: I.session_data.token,
|
|
2670
|
+
expires_at: I.session_data.expires_at,
|
|
2671
|
+
isSessionReady: !0,
|
|
2672
|
+
lastError: null
|
|
2673
|
+
}), re(I.session_data.token)) : (console.log("Session not triggered:", I.message), oe((T) => ({
|
|
2674
|
+
...T,
|
|
2675
|
+
isSessionReady: !1,
|
|
2676
|
+
lastError: null
|
|
2677
|
+
})));
|
|
2678
|
+
else {
|
|
2679
|
+
console.error("Session error:", I.message, I.error);
|
|
2680
|
+
const T = `${I.error}: ${I.message}`;
|
|
2681
|
+
oe((L) => ({
|
|
2682
|
+
...L,
|
|
2683
|
+
isSessionReady: !1,
|
|
2684
|
+
lastError: T
|
|
2685
|
+
})), k(T), i.onError?.(new Error(T));
|
|
2686
|
+
}
|
|
2687
|
+
}, [i, re]), R = le(() => {
|
|
2688
|
+
if (!z.current || z.current.readyState !== WebSocket.OPEN) {
|
|
2689
|
+
console.warn("WebSocket not connected, cannot send session end");
|
|
2690
|
+
return;
|
|
2691
|
+
}
|
|
2692
|
+
if (!$.session_id || !i.userId) {
|
|
2693
|
+
console.warn("Missing session_id or user_id, cannot send session end");
|
|
2694
|
+
return;
|
|
2695
|
+
}
|
|
2696
|
+
const I = {
|
|
2697
|
+
type: "session_end",
|
|
2698
|
+
session_id: $.session_id,
|
|
2699
|
+
user_id: i.userId
|
|
2700
|
+
};
|
|
2701
|
+
try {
|
|
2702
|
+
z.current.send(JSON.stringify(I)), console.log("Sent session end event");
|
|
2703
|
+
} catch (T) {
|
|
2704
|
+
console.error("Failed to send session end:", T);
|
|
2705
|
+
}
|
|
2706
|
+
}, [$.session_id, i.userId]), we = le(() => {
|
|
2707
|
+
if (z.current?.readyState === WebSocket.OPEN) {
|
|
2683
2708
|
console.log("WebSocket already connected");
|
|
2684
2709
|
return;
|
|
2685
2710
|
}
|
|
2686
2711
|
try {
|
|
2687
|
-
const
|
|
2688
|
-
|
|
2712
|
+
const I = new WebSocket(i.websocketUrl);
|
|
2713
|
+
z.current = I, I.onopen = () => {
|
|
2689
2714
|
console.log("WebSocket connected"), i.onConnectionStateChange?.(!0);
|
|
2690
|
-
},
|
|
2715
|
+
}, I.onmessage = (T) => {
|
|
2691
2716
|
try {
|
|
2692
|
-
const
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
}
|
|
2697
|
-
|
|
2717
|
+
const L = T.data, A = JSON.parse(L);
|
|
2718
|
+
if (jn(A)) {
|
|
2719
|
+
ce(A);
|
|
2720
|
+
return;
|
|
2721
|
+
}
|
|
2722
|
+
if (zn(A)) {
|
|
2723
|
+
console.log(`Message history acknowledged: ${A.message_count} messages`), i.onMessageHistoryAck?.(A.message_count);
|
|
2724
|
+
return;
|
|
2725
|
+
}
|
|
2726
|
+
if (Wn(A)) {
|
|
2727
|
+
console.log("Message stream acknowledged"), i.onMessageStreamAck?.();
|
|
2728
|
+
return;
|
|
2729
|
+
}
|
|
2730
|
+
if (Hn(A)) {
|
|
2731
|
+
console.log(`Session end acknowledged: ${A.message}. Saved: ${A.saved_count} messages`), i.onSessionEndAck?.(A.saved_count);
|
|
2732
|
+
return;
|
|
2733
|
+
}
|
|
2734
|
+
if (Jn(A)) {
|
|
2735
|
+
console.error(`Session end error: ${A.message}`), k(A.message), i.onSessionEndError?.(A.message, A.error), i.onError?.(new Error(`Session end failed: ${A.error} - ${A.message}`));
|
|
2736
|
+
return;
|
|
2737
|
+
}
|
|
2738
|
+
if (Yn(A)) {
|
|
2739
|
+
console.error(`Missing fields error: ${A.message}`), k(A.message), i.onError?.(new Error(A.message));
|
|
2740
|
+
return;
|
|
2741
|
+
}
|
|
2742
|
+
if (qn(A)) {
|
|
2743
|
+
console.log("WebSocket trigger event received:", A.data), i.onWebSocketEvent?.(A), ye.current?.("websocket");
|
|
2698
2744
|
return;
|
|
2699
2745
|
}
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2746
|
+
if (Kn(A)) {
|
|
2747
|
+
console.log(`Generic acknowledgment: ${A.message}`);
|
|
2748
|
+
return;
|
|
2749
|
+
}
|
|
2750
|
+
if (typeof A == "object" && A !== null && "type" in A && A.type === "session_token" && "sessionToken" in A && typeof A.sessionToken == "string") {
|
|
2751
|
+
console.warn("Received legacy session_token format, converting to new format"), ce({
|
|
2752
|
+
status: "success",
|
|
2753
|
+
message: "Session created successfully (legacy format)",
|
|
2754
|
+
session_data: {
|
|
2755
|
+
session_id: "legacy",
|
|
2756
|
+
token: A.sessionToken,
|
|
2757
|
+
expires_at: new Date(Date.now() + 36e5).toISOString()
|
|
2758
|
+
},
|
|
2759
|
+
time_taken: 0
|
|
2760
|
+
});
|
|
2761
|
+
return;
|
|
2762
|
+
}
|
|
2763
|
+
console.warn("Received unknown message type:", A);
|
|
2764
|
+
} catch (L) {
|
|
2765
|
+
if (L instanceof SyntaxError)
|
|
2766
|
+
console.error("Failed to parse WebSocket message as JSON:", T.data), k("Received invalid JSON from server"), i.onError?.(new Error("Invalid JSON received from WebSocket"));
|
|
2767
|
+
else {
|
|
2768
|
+
const A = L instanceof Error ? L.message : "Unknown error";
|
|
2769
|
+
console.error("Error handling WebSocket message:", A), k(A), i.onError?.(L instanceof Error ? L : new Error(A));
|
|
2770
|
+
}
|
|
2712
2771
|
}
|
|
2713
|
-
},
|
|
2772
|
+
}, I.onerror = (T) => {
|
|
2714
2773
|
console.error("WebSocket error:", T), k("WebSocket connection error"), i.onError?.(new Error("WebSocket connection failed"));
|
|
2715
|
-
},
|
|
2716
|
-
console.log("WebSocket disconnected"), i.onConnectionStateChange?.(!1),
|
|
2774
|
+
}, I.onclose = () => {
|
|
2775
|
+
console.log("WebSocket disconnected"), i.onConnectionStateChange?.(!1), oe({
|
|
2717
2776
|
session_id: null,
|
|
2718
2777
|
token: null,
|
|
2719
2778
|
expires_at: null,
|
|
@@ -2721,58 +2780,58 @@ const Pt = sn(null), Ki = ({ config: i, children: n }) => {
|
|
|
2721
2780
|
lastError: null
|
|
2722
2781
|
});
|
|
2723
2782
|
};
|
|
2724
|
-
} catch (
|
|
2725
|
-
const T =
|
|
2726
|
-
k(T), i.onError?.(
|
|
2783
|
+
} catch (I) {
|
|
2784
|
+
const T = I instanceof Error ? I.message : "Failed to connect WebSocket";
|
|
2785
|
+
k(T), i.onError?.(I instanceof Error ? I : new Error(T));
|
|
2727
2786
|
}
|
|
2728
|
-
}, [i,
|
|
2729
|
-
if (!
|
|
2787
|
+
}, [i, ce]), $e = le(() => {
|
|
2788
|
+
if (!z.current || z.current.readyState !== WebSocket.OPEN) {
|
|
2730
2789
|
console.error("WebSocket not connected"), k("WebSocket not connected. Please connect first.");
|
|
2731
2790
|
return;
|
|
2732
2791
|
}
|
|
2733
2792
|
try {
|
|
2734
|
-
const
|
|
2735
|
-
|
|
2736
|
-
} catch (
|
|
2737
|
-
const T =
|
|
2738
|
-
k(T), i.onError?.(
|
|
2793
|
+
const I = JSON.stringify({ user_trigger: !0 });
|
|
2794
|
+
z.current.send(I), console.log("Sent user_trigger message");
|
|
2795
|
+
} catch (I) {
|
|
2796
|
+
const T = I instanceof Error ? I.message : "Failed to trigger session";
|
|
2797
|
+
k(T), i.onError?.(I instanceof Error ? I : new Error(T));
|
|
2739
2798
|
}
|
|
2740
|
-
}, [i]),
|
|
2741
|
-
(!
|
|
2742
|
-
}, [we,
|
|
2799
|
+
}, [i]), J = le(async () => {
|
|
2800
|
+
(!z.current || z.current.readyState !== WebSocket.OPEN) && we(), $.isSessionReady && $.token && !V.current && await re($.token);
|
|
2801
|
+
}, [we, re, $]), Y = le(async () => {
|
|
2743
2802
|
if (V.current)
|
|
2744
2803
|
try {
|
|
2745
|
-
|
|
2746
|
-
} catch (
|
|
2747
|
-
const T =
|
|
2748
|
-
k(T), i.onError?.(
|
|
2804
|
+
R(), await V.current.stopStreaming(), V.current = null, h(!1), y([]), u(""), xe.current = [], i.onConnectionStateChange?.(!1);
|
|
2805
|
+
} catch (I) {
|
|
2806
|
+
const T = I instanceof Error ? I.message : "Failed to stop session";
|
|
2807
|
+
k(T), i.onError?.(I instanceof Error ? I : new Error(T));
|
|
2749
2808
|
}
|
|
2750
|
-
}, [i,
|
|
2751
|
-
|
|
2752
|
-
}, [
|
|
2809
|
+
}, [i, R]), X = le((I = "user") => {
|
|
2810
|
+
j(I), P(I === "websocket" ? "center" : "bottom-right"), o(!0), !V.current && !c && J();
|
|
2811
|
+
}, [J, c]);
|
|
2753
2812
|
tt(() => {
|
|
2754
|
-
|
|
2813
|
+
ye.current = X;
|
|
2755
2814
|
}, [X]);
|
|
2756
|
-
const ne =
|
|
2815
|
+
const ne = le(() => {
|
|
2757
2816
|
o(!1), Y();
|
|
2758
|
-
}, [Y]), Se =
|
|
2759
|
-
b((
|
|
2760
|
-
}, []), Ue =
|
|
2817
|
+
}, [Y]), Se = le(() => {
|
|
2818
|
+
b((I) => !I);
|
|
2819
|
+
}, []), Ue = le(async (I) => {
|
|
2761
2820
|
if (!V.current || !d)
|
|
2762
2821
|
throw new Error("Not connected to Aria");
|
|
2763
2822
|
try {
|
|
2764
|
-
await V.current.talk(
|
|
2823
|
+
await V.current.talk(I);
|
|
2765
2824
|
} catch (T) {
|
|
2766
|
-
const
|
|
2767
|
-
throw k(
|
|
2825
|
+
const L = T instanceof Error ? T.message : "Failed to send message";
|
|
2826
|
+
throw k(L), i.onError?.(T instanceof Error ? T : new Error(L)), T;
|
|
2768
2827
|
}
|
|
2769
|
-
}, [d, i]), K =
|
|
2828
|
+
}, [d, i]), K = le(() => {
|
|
2770
2829
|
if (!V.current) return;
|
|
2771
|
-
V.current.getInputAudioState().isMuted ? (V.current.unmuteInputAudio(),
|
|
2830
|
+
V.current.getInputAudioState().isMuted ? (V.current.unmuteInputAudio(), x(!1)) : (V.current.muteInputAudio(), x(!0));
|
|
2772
2831
|
}, []);
|
|
2773
2832
|
tt(() => (we(), () => {
|
|
2774
|
-
|
|
2775
|
-
}), [we,
|
|
2833
|
+
$.session_id && i.userId && R(), V.current && V.current.stopStreaming(), z.current && z.current.close();
|
|
2834
|
+
}), [we, $.session_id, i.userId, R]);
|
|
2776
2835
|
const fe = {
|
|
2777
2836
|
isOpen: r,
|
|
2778
2837
|
isConnected: d,
|
|
@@ -2780,20 +2839,20 @@ const Pt = sn(null), Ki = ({ config: i, children: n }) => {
|
|
|
2780
2839
|
chatMessages: m,
|
|
2781
2840
|
liveTranscript: g,
|
|
2782
2841
|
isChatVisible: C,
|
|
2783
|
-
isMuted:
|
|
2784
|
-
error:
|
|
2785
|
-
sessionState:
|
|
2842
|
+
isMuted: S,
|
|
2843
|
+
error: O,
|
|
2844
|
+
sessionState: $,
|
|
2786
2845
|
openAssistant: X,
|
|
2787
2846
|
closeAssistant: ne,
|
|
2788
2847
|
toggleChat: Se,
|
|
2789
2848
|
sendMessage: Ue,
|
|
2790
2849
|
toggleMute: K,
|
|
2791
|
-
startSession:
|
|
2850
|
+
startSession: J,
|
|
2792
2851
|
stopSession: Y,
|
|
2793
|
-
triggerSession:
|
|
2852
|
+
triggerSession: $e,
|
|
2794
2853
|
displayMode: H,
|
|
2795
|
-
triggerMode:
|
|
2796
|
-
theme:
|
|
2854
|
+
triggerMode: G,
|
|
2855
|
+
theme: N,
|
|
2797
2856
|
config: i
|
|
2798
2857
|
};
|
|
2799
2858
|
return /* @__PURE__ */ w(Pt.Provider, { value: fe, children: n });
|
|
@@ -2812,50 +2871,50 @@ function Ft(i) {
|
|
|
2812
2871
|
} else for (r in i) i[r] && (o && (o += " "), o += r);
|
|
2813
2872
|
return o;
|
|
2814
2873
|
}
|
|
2815
|
-
function
|
|
2874
|
+
function Xn() {
|
|
2816
2875
|
for (var i, n, r = 0, o = "", d = arguments.length; r < d; r++) (i = arguments[r]) && (n = Ft(i)) && (o && (o += " "), o += n);
|
|
2817
2876
|
return o;
|
|
2818
2877
|
}
|
|
2819
|
-
const
|
|
2878
|
+
const Qn = (i, n) => {
|
|
2820
2879
|
const r = new Array(i.length + n.length);
|
|
2821
2880
|
for (let o = 0; o < i.length; o++)
|
|
2822
2881
|
r[o] = i[o];
|
|
2823
2882
|
for (let o = 0; o < n.length; o++)
|
|
2824
2883
|
r[i.length + o] = n[o];
|
|
2825
2884
|
return r;
|
|
2826
|
-
},
|
|
2885
|
+
}, Zn = (i, n) => ({
|
|
2827
2886
|
classGroupId: i,
|
|
2828
2887
|
validator: n
|
|
2829
2888
|
}), Gt = (i = /* @__PURE__ */ new Map(), n = null, r) => ({
|
|
2830
2889
|
nextPart: i,
|
|
2831
2890
|
validators: n,
|
|
2832
2891
|
classGroupId: r
|
|
2833
|
-
}), rt = "-", At = [],
|
|
2834
|
-
const n =
|
|
2892
|
+
}), rt = "-", At = [], ei = "arbitrary..", ti = (i) => {
|
|
2893
|
+
const n = ii(i), {
|
|
2835
2894
|
conflictingClassGroups: r,
|
|
2836
2895
|
conflictingClassGroupModifiers: o
|
|
2837
2896
|
} = i;
|
|
2838
2897
|
return {
|
|
2839
2898
|
getClassGroupId: (c) => {
|
|
2840
2899
|
if (c.startsWith("[") && c.endsWith("]"))
|
|
2841
|
-
return
|
|
2900
|
+
return ni(c);
|
|
2842
2901
|
const l = c.split(rt), m = l[0] === "" && l.length > 1 ? 1 : 0;
|
|
2843
|
-
return
|
|
2902
|
+
return $t(l, m, n);
|
|
2844
2903
|
},
|
|
2845
2904
|
getConflictingClassGroupIds: (c, l) => {
|
|
2846
2905
|
if (l) {
|
|
2847
2906
|
const m = o[c], y = r[c];
|
|
2848
|
-
return m ? y ?
|
|
2907
|
+
return m ? y ? Qn(y, m) : m : y || At;
|
|
2849
2908
|
}
|
|
2850
2909
|
return r[c] || At;
|
|
2851
2910
|
}
|
|
2852
2911
|
};
|
|
2853
|
-
},
|
|
2912
|
+
}, $t = (i, n, r) => {
|
|
2854
2913
|
if (i.length - n === 0)
|
|
2855
2914
|
return r.classGroupId;
|
|
2856
2915
|
const d = i[n], h = r.nextPart.get(d);
|
|
2857
2916
|
if (h) {
|
|
2858
|
-
const y =
|
|
2917
|
+
const y = $t(i, n + 1, h);
|
|
2859
2918
|
if (y) return y;
|
|
2860
2919
|
}
|
|
2861
2920
|
const c = r.validators;
|
|
@@ -2867,16 +2926,16 @@ const jn = (i, n) => {
|
|
|
2867
2926
|
if (g.validator(l))
|
|
2868
2927
|
return g.classGroupId;
|
|
2869
2928
|
}
|
|
2870
|
-
},
|
|
2929
|
+
}, ni = (i) => i.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
2871
2930
|
const n = i.slice(1, -1), r = n.indexOf(":"), o = n.slice(0, r);
|
|
2872
|
-
return o ?
|
|
2873
|
-
})(),
|
|
2931
|
+
return o ? ei + o : void 0;
|
|
2932
|
+
})(), ii = (i) => {
|
|
2874
2933
|
const {
|
|
2875
2934
|
theme: n,
|
|
2876
2935
|
classGroups: r
|
|
2877
2936
|
} = i;
|
|
2878
|
-
return
|
|
2879
|
-
},
|
|
2937
|
+
return ri(r, n);
|
|
2938
|
+
}, ri = (i, n) => {
|
|
2880
2939
|
const r = Gt();
|
|
2881
2940
|
for (const o in i) {
|
|
2882
2941
|
const d = i[o];
|
|
@@ -2887,34 +2946,34 @@ const jn = (i, n) => {
|
|
|
2887
2946
|
const d = i.length;
|
|
2888
2947
|
for (let h = 0; h < d; h++) {
|
|
2889
2948
|
const c = i[h];
|
|
2890
|
-
|
|
2949
|
+
si(c, n, r, o);
|
|
2891
2950
|
}
|
|
2892
|
-
},
|
|
2951
|
+
}, si = (i, n, r, o) => {
|
|
2893
2952
|
if (typeof i == "string") {
|
|
2894
|
-
|
|
2953
|
+
oi(i, n, r);
|
|
2895
2954
|
return;
|
|
2896
2955
|
}
|
|
2897
2956
|
if (typeof i == "function") {
|
|
2898
|
-
|
|
2957
|
+
ai(i, n, r, o);
|
|
2899
2958
|
return;
|
|
2900
2959
|
}
|
|
2901
|
-
|
|
2902
|
-
},
|
|
2903
|
-
const o = i === "" ? n :
|
|
2960
|
+
li(i, n, r, o);
|
|
2961
|
+
}, oi = (i, n, r) => {
|
|
2962
|
+
const o = i === "" ? n : Vt(n, i);
|
|
2904
2963
|
o.classGroupId = r;
|
|
2905
|
-
},
|
|
2906
|
-
if (
|
|
2964
|
+
}, ai = (i, n, r, o) => {
|
|
2965
|
+
if (ci(i)) {
|
|
2907
2966
|
mt(i(o), n, r, o);
|
|
2908
2967
|
return;
|
|
2909
2968
|
}
|
|
2910
|
-
n.validators === null && (n.validators = []), n.validators.push(
|
|
2911
|
-
},
|
|
2969
|
+
n.validators === null && (n.validators = []), n.validators.push(Zn(r, i));
|
|
2970
|
+
}, li = (i, n, r, o) => {
|
|
2912
2971
|
const d = Object.entries(i), h = d.length;
|
|
2913
2972
|
for (let c = 0; c < h; c++) {
|
|
2914
2973
|
const [l, m] = d[c];
|
|
2915
|
-
mt(m,
|
|
2974
|
+
mt(m, Vt(n, l), r, o);
|
|
2916
2975
|
}
|
|
2917
|
-
},
|
|
2976
|
+
}, Vt = (i, n) => {
|
|
2918
2977
|
let r = i;
|
|
2919
2978
|
const o = n.split(rt), d = o.length;
|
|
2920
2979
|
for (let h = 0; h < d; h++) {
|
|
@@ -2923,7 +2982,7 @@ const jn = (i, n) => {
|
|
|
2923
2982
|
l || (l = Gt(), r.nextPart.set(c, l)), r = l;
|
|
2924
2983
|
}
|
|
2925
2984
|
return r;
|
|
2926
|
-
},
|
|
2985
|
+
}, ci = (i) => "isThemeGetter" in i && i.isThemeGetter === !0, di = (i) => {
|
|
2927
2986
|
if (i < 1)
|
|
2928
2987
|
return {
|
|
2929
2988
|
get: () => {
|
|
@@ -2947,13 +3006,13 @@ const jn = (i, n) => {
|
|
|
2947
3006
|
h in r ? r[h] = c : d(h, c);
|
|
2948
3007
|
}
|
|
2949
3008
|
};
|
|
2950
|
-
}, ft = "!", Rt = ":",
|
|
3009
|
+
}, ft = "!", Rt = ":", ui = [], Nt = (i, n, r, o, d) => ({
|
|
2951
3010
|
modifiers: i,
|
|
2952
3011
|
hasImportantModifier: n,
|
|
2953
3012
|
baseClassName: r,
|
|
2954
3013
|
maybePostfixModifierPosition: o,
|
|
2955
3014
|
isExternal: d
|
|
2956
|
-
}),
|
|
3015
|
+
}), hi = (i) => {
|
|
2957
3016
|
const {
|
|
2958
3017
|
prefix: n,
|
|
2959
3018
|
experimentalParseClassName: r
|
|
@@ -2962,19 +3021,19 @@ const jn = (i, n) => {
|
|
|
2962
3021
|
const h = [];
|
|
2963
3022
|
let c = 0, l = 0, m = 0, y;
|
|
2964
3023
|
const g = d.length;
|
|
2965
|
-
for (let
|
|
2966
|
-
const
|
|
3024
|
+
for (let x = 0; x < g; x++) {
|
|
3025
|
+
const O = d[x];
|
|
2967
3026
|
if (c === 0 && l === 0) {
|
|
2968
|
-
if (
|
|
2969
|
-
h.push(d.slice(m,
|
|
3027
|
+
if (O === Rt) {
|
|
3028
|
+
h.push(d.slice(m, x)), m = x + 1;
|
|
2970
3029
|
continue;
|
|
2971
3030
|
}
|
|
2972
|
-
if (
|
|
2973
|
-
y =
|
|
3031
|
+
if (O === "/") {
|
|
3032
|
+
y = x;
|
|
2974
3033
|
continue;
|
|
2975
3034
|
}
|
|
2976
3035
|
}
|
|
2977
|
-
|
|
3036
|
+
O === "[" ? c++ : O === "]" ? c-- : O === "(" ? l++ : O === ")" && l--;
|
|
2978
3037
|
}
|
|
2979
3038
|
const u = h.length === 0 ? d : d.slice(m);
|
|
2980
3039
|
let C = u, b = !1;
|
|
@@ -2985,12 +3044,12 @@ const jn = (i, n) => {
|
|
|
2985
3044
|
*/
|
|
2986
3045
|
u.startsWith(ft) && (C = u.slice(1), b = !0)
|
|
2987
3046
|
);
|
|
2988
|
-
const
|
|
2989
|
-
return Nt(h, b, C,
|
|
3047
|
+
const S = y && y > m ? y - m : void 0;
|
|
3048
|
+
return Nt(h, b, C, S);
|
|
2990
3049
|
};
|
|
2991
3050
|
if (n) {
|
|
2992
3051
|
const d = n + Rt, h = o;
|
|
2993
|
-
o = (c) => c.startsWith(d) ? h(c.slice(d.length)) : Nt(
|
|
3052
|
+
o = (c) => c.startsWith(d) ? h(c.slice(d.length)) : Nt(ui, !1, c, void 0, !0);
|
|
2994
3053
|
}
|
|
2995
3054
|
if (r) {
|
|
2996
3055
|
const d = o;
|
|
@@ -3000,7 +3059,7 @@ const jn = (i, n) => {
|
|
|
3000
3059
|
});
|
|
3001
3060
|
}
|
|
3002
3061
|
return o;
|
|
3003
|
-
},
|
|
3062
|
+
}, fi = (i) => {
|
|
3004
3063
|
const n = /* @__PURE__ */ new Map();
|
|
3005
3064
|
return i.orderSensitiveModifiers.forEach((r, o) => {
|
|
3006
3065
|
n.set(r, 1e6 + o);
|
|
@@ -3013,96 +3072,96 @@ const jn = (i, n) => {
|
|
|
3013
3072
|
}
|
|
3014
3073
|
return d.length > 0 && (d.sort(), o.push(...d)), o;
|
|
3015
3074
|
};
|
|
3016
|
-
},
|
|
3017
|
-
cache:
|
|
3018
|
-
parseClassName:
|
|
3019
|
-
sortModifiers:
|
|
3020
|
-
...
|
|
3021
|
-
}),
|
|
3075
|
+
}, pi = (i) => ({
|
|
3076
|
+
cache: di(i.cacheSize),
|
|
3077
|
+
parseClassName: hi(i),
|
|
3078
|
+
sortModifiers: fi(i),
|
|
3079
|
+
...ti(i)
|
|
3080
|
+
}), mi = /\s+/, gi = (i, n) => {
|
|
3022
3081
|
const {
|
|
3023
3082
|
parseClassName: r,
|
|
3024
3083
|
getClassGroupId: o,
|
|
3025
3084
|
getConflictingClassGroupIds: d,
|
|
3026
3085
|
sortModifiers: h
|
|
3027
|
-
} = n, c = [], l = i.trim().split(
|
|
3086
|
+
} = n, c = [], l = i.trim().split(mi);
|
|
3028
3087
|
let m = "";
|
|
3029
3088
|
for (let y = l.length - 1; y >= 0; y -= 1) {
|
|
3030
3089
|
const g = l[y], {
|
|
3031
3090
|
isExternal: u,
|
|
3032
3091
|
modifiers: C,
|
|
3033
3092
|
hasImportantModifier: b,
|
|
3034
|
-
baseClassName:
|
|
3035
|
-
maybePostfixModifierPosition:
|
|
3093
|
+
baseClassName: S,
|
|
3094
|
+
maybePostfixModifierPosition: x
|
|
3036
3095
|
} = r(g);
|
|
3037
3096
|
if (u) {
|
|
3038
3097
|
m = g + (m.length > 0 ? " " + m : m);
|
|
3039
3098
|
continue;
|
|
3040
3099
|
}
|
|
3041
|
-
let
|
|
3100
|
+
let O = !!x, k = o(O ? S.substring(0, x) : S);
|
|
3042
3101
|
if (!k) {
|
|
3043
|
-
if (!
|
|
3102
|
+
if (!O) {
|
|
3044
3103
|
m = g + (m.length > 0 ? " " + m : m);
|
|
3045
3104
|
continue;
|
|
3046
3105
|
}
|
|
3047
|
-
if (k = o(
|
|
3106
|
+
if (k = o(S), !k) {
|
|
3048
3107
|
m = g + (m.length > 0 ? " " + m : m);
|
|
3049
3108
|
continue;
|
|
3050
3109
|
}
|
|
3051
|
-
|
|
3110
|
+
O = !1;
|
|
3052
3111
|
}
|
|
3053
|
-
const
|
|
3112
|
+
const G = C.length === 0 ? "" : C.length === 1 ? C[0] : h(C).join(":"), j = b ? G + ft : G, H = j + k;
|
|
3054
3113
|
if (c.indexOf(H) > -1)
|
|
3055
3114
|
continue;
|
|
3056
3115
|
c.push(H);
|
|
3057
|
-
const
|
|
3058
|
-
for (let
|
|
3059
|
-
const
|
|
3060
|
-
c.push(
|
|
3116
|
+
const P = d(k, O);
|
|
3117
|
+
for (let $ = 0; $ < P.length; ++$) {
|
|
3118
|
+
const oe = P[$];
|
|
3119
|
+
c.push(j + oe);
|
|
3061
3120
|
}
|
|
3062
3121
|
m = g + (m.length > 0 ? " " + m : m);
|
|
3063
3122
|
}
|
|
3064
3123
|
return m;
|
|
3065
|
-
},
|
|
3124
|
+
}, Ei = (...i) => {
|
|
3066
3125
|
let n = 0, r, o, d = "";
|
|
3067
3126
|
for (; n < i.length; )
|
|
3068
|
-
(r = i[n++]) && (o =
|
|
3127
|
+
(r = i[n++]) && (o = jt(r)) && (d && (d += " "), d += o);
|
|
3069
3128
|
return d;
|
|
3070
|
-
},
|
|
3129
|
+
}, jt = (i) => {
|
|
3071
3130
|
if (typeof i == "string")
|
|
3072
3131
|
return i;
|
|
3073
3132
|
let n, r = "";
|
|
3074
3133
|
for (let o = 0; o < i.length; o++)
|
|
3075
|
-
i[o] && (n =
|
|
3134
|
+
i[o] && (n = jt(i[o])) && (r && (r += " "), r += n);
|
|
3076
3135
|
return r;
|
|
3077
|
-
},
|
|
3136
|
+
}, yi = (i, ...n) => {
|
|
3078
3137
|
let r, o, d, h;
|
|
3079
3138
|
const c = (m) => {
|
|
3080
3139
|
const y = n.reduce((g, u) => u(g), i());
|
|
3081
|
-
return r =
|
|
3140
|
+
return r = pi(y), o = r.cache.get, d = r.cache.set, h = l, l(m);
|
|
3082
3141
|
}, l = (m) => {
|
|
3083
3142
|
const y = o(m);
|
|
3084
3143
|
if (y)
|
|
3085
3144
|
return y;
|
|
3086
|
-
const g =
|
|
3145
|
+
const g = gi(m, r);
|
|
3087
3146
|
return d(m, g), g;
|
|
3088
3147
|
};
|
|
3089
|
-
return h = c, (...m) => h(
|
|
3090
|
-
},
|
|
3091
|
-
const n = (r) => r[i] ||
|
|
3148
|
+
return h = c, (...m) => h(Ei(...m));
|
|
3149
|
+
}, bi = [], ee = (i) => {
|
|
3150
|
+
const n = (r) => r[i] || bi;
|
|
3092
3151
|
return n.isThemeGetter = !0, n;
|
|
3093
|
-
},
|
|
3152
|
+
}, zt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Wt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, wi = /^\d+\/\d+$/, Si = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ci = /\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$/, Ii = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, _i = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, vi = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ze = (i) => wi.test(i), B = (i) => !!i && !Number.isNaN(Number(i)), Ne = (i) => !!i && Number.isInteger(Number(i)), dt = (i) => i.endsWith("%") && B(i.slice(0, -1)), _e = (i) => Si.test(i), xi = () => !0, Ai = (i) => (
|
|
3094
3153
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
3095
3154
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
3096
3155
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
3097
|
-
|
|
3098
|
-
), Ht = () => !1,
|
|
3099
|
-
const o =
|
|
3156
|
+
Ci.test(i) && !Ii.test(i)
|
|
3157
|
+
), Ht = () => !1, Ri = (i) => _i.test(i), Ni = (i) => vi.test(i), Ti = (i) => !_(i) && !v(i), ki = (i) => We(i, Kt, Ht), _ = (i) => zt.test(i), Le = (i) => We(i, Yt, Ai), ut = (i) => We(i, Ui, B), Tt = (i) => We(i, Jt, Ht), Oi = (i) => We(i, qt, Ni), Qe = (i) => We(i, Xt, Ri), v = (i) => Wt.test(i), qe = (i) => He(i, Yt), Mi = (i) => He(i, Li), kt = (i) => He(i, Jt), Di = (i) => He(i, Kt), Bi = (i) => He(i, qt), Ze = (i) => He(i, Xt, !0), We = (i, n, r) => {
|
|
3158
|
+
const o = zt.exec(i);
|
|
3100
3159
|
return o ? o[1] ? n(o[1]) : r(o[2]) : !1;
|
|
3101
3160
|
}, He = (i, n, r = !1) => {
|
|
3102
3161
|
const o = Wt.exec(i);
|
|
3103
3162
|
return o ? o[1] ? n(o[1]) : r : !1;
|
|
3104
|
-
},
|
|
3105
|
-
const i = ee("color"), n = ee("font"), r = ee("text"), o = ee("font-weight"), d = ee("tracking"), h = ee("leading"), c = ee("breakpoint"), l = ee("container"), m = ee("spacing"), y = ee("radius"), g = ee("shadow"), u = ee("inset-shadow"), C = ee("text-shadow"), b = ee("drop-shadow"),
|
|
3163
|
+
}, Jt = (i) => i === "position" || i === "percentage", qt = (i) => i === "image" || i === "url", Kt = (i) => i === "length" || i === "size" || i === "bg-size", Yt = (i) => i === "length", Ui = (i) => i === "number", Li = (i) => i === "family-name", Xt = (i) => i === "shadow", Pi = () => {
|
|
3164
|
+
const i = ee("color"), n = ee("font"), r = ee("text"), o = ee("font-weight"), d = ee("tracking"), h = ee("leading"), c = ee("breakpoint"), l = ee("container"), m = ee("spacing"), y = ee("radius"), g = ee("shadow"), u = ee("inset-shadow"), C = ee("text-shadow"), b = ee("drop-shadow"), S = ee("blur"), x = ee("perspective"), O = ee("aspect"), k = ee("ease"), G = ee("animate"), j = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], H = () => [
|
|
3106
3165
|
"center",
|
|
3107
3166
|
"top",
|
|
3108
3167
|
"bottom",
|
|
@@ -3120,30 +3179,30 @@ const jn = (i, n) => {
|
|
|
3120
3179
|
"bottom-left",
|
|
3121
3180
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
3122
3181
|
"left-bottom"
|
|
3123
|
-
],
|
|
3124
|
-
span: ["full", Ne,
|
|
3125
|
-
}, Ne,
|
|
3126
|
-
position: [
|
|
3127
|
-
}],
|
|
3182
|
+
], P = () => [...H(), v, _], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], oe = () => ["auto", "contain", "none"], N = () => [v, _, m], V = () => [ze, "full", "auto", ...N()], z = () => [Ne, "none", "subgrid", v, _], Ge = () => ["auto", {
|
|
3183
|
+
span: ["full", Ne, v, _]
|
|
3184
|
+
}, Ne, v, _], ye = () => [Ne, "auto", v, _], xe = () => ["auto", "min", "max", "fr", v, _], be = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], he = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], re = () => ["auto", ...N()], ce = () => [ze, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...N()], R = () => [i, v, _], we = () => [...H(), kt, Tt, {
|
|
3185
|
+
position: [v, _]
|
|
3186
|
+
}], $e = () => ["no-repeat", {
|
|
3128
3187
|
repeat: ["", "x", "y", "space", "round"]
|
|
3129
|
-
}],
|
|
3130
|
-
size: [
|
|
3131
|
-
}], Y = () => [dt,
|
|
3188
|
+
}], J = () => ["auto", "cover", "contain", Di, ki, {
|
|
3189
|
+
size: [v, _]
|
|
3190
|
+
}], Y = () => [dt, qe, Le], X = () => [
|
|
3132
3191
|
// Deprecated since Tailwind CSS v4.0.0
|
|
3133
3192
|
"",
|
|
3134
3193
|
"none",
|
|
3135
3194
|
"full",
|
|
3136
3195
|
y,
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
], ne = () => ["", B,
|
|
3196
|
+
v,
|
|
3197
|
+
_
|
|
3198
|
+
], ne = () => ["", B, qe, Le], Se = () => ["solid", "dashed", "dotted", "double"], Ue = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => [B, dt, kt, Tt], fe = () => [
|
|
3140
3199
|
// Deprecated since Tailwind CSS v4.0.0
|
|
3141
3200
|
"",
|
|
3142
3201
|
"none",
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
],
|
|
3202
|
+
S,
|
|
3203
|
+
v,
|
|
3204
|
+
_
|
|
3205
|
+
], I = () => ["none", B, v, _], T = () => ["none", B, v, _], L = () => [B, v, _], A = () => [ze, "full", ...N()];
|
|
3147
3206
|
return {
|
|
3148
3207
|
cacheSize: 500,
|
|
3149
3208
|
theme: {
|
|
@@ -3151,11 +3210,11 @@ const jn = (i, n) => {
|
|
|
3151
3210
|
aspect: ["video"],
|
|
3152
3211
|
blur: [_e],
|
|
3153
3212
|
breakpoint: [_e],
|
|
3154
|
-
color: [
|
|
3213
|
+
color: [xi],
|
|
3155
3214
|
container: [_e],
|
|
3156
3215
|
"drop-shadow": [_e],
|
|
3157
3216
|
ease: ["in", "out", "in-out"],
|
|
3158
|
-
font: [
|
|
3217
|
+
font: [Ti],
|
|
3159
3218
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
3160
3219
|
"inset-shadow": [_e],
|
|
3161
3220
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -3176,7 +3235,7 @@ const jn = (i, n) => {
|
|
|
3176
3235
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
3177
3236
|
*/
|
|
3178
3237
|
aspect: [{
|
|
3179
|
-
aspect: ["auto", "square",
|
|
3238
|
+
aspect: ["auto", "square", ze, _, v, O]
|
|
3180
3239
|
}],
|
|
3181
3240
|
/**
|
|
3182
3241
|
* Container
|
|
@@ -3189,21 +3248,21 @@ const jn = (i, n) => {
|
|
|
3189
3248
|
* @see https://tailwindcss.com/docs/columns
|
|
3190
3249
|
*/
|
|
3191
3250
|
columns: [{
|
|
3192
|
-
columns: [B,
|
|
3251
|
+
columns: [B, _, v, l]
|
|
3193
3252
|
}],
|
|
3194
3253
|
/**
|
|
3195
3254
|
* Break After
|
|
3196
3255
|
* @see https://tailwindcss.com/docs/break-after
|
|
3197
3256
|
*/
|
|
3198
3257
|
"break-after": [{
|
|
3199
|
-
"break-after":
|
|
3258
|
+
"break-after": j()
|
|
3200
3259
|
}],
|
|
3201
3260
|
/**
|
|
3202
3261
|
* Break Before
|
|
3203
3262
|
* @see https://tailwindcss.com/docs/break-before
|
|
3204
3263
|
*/
|
|
3205
3264
|
"break-before": [{
|
|
3206
|
-
"break-before":
|
|
3265
|
+
"break-before": j()
|
|
3207
3266
|
}],
|
|
3208
3267
|
/**
|
|
3209
3268
|
* Break Inside
|
|
@@ -3267,49 +3326,49 @@ const jn = (i, n) => {
|
|
|
3267
3326
|
* @see https://tailwindcss.com/docs/object-position
|
|
3268
3327
|
*/
|
|
3269
3328
|
"object-position": [{
|
|
3270
|
-
object:
|
|
3329
|
+
object: P()
|
|
3271
3330
|
}],
|
|
3272
3331
|
/**
|
|
3273
3332
|
* Overflow
|
|
3274
3333
|
* @see https://tailwindcss.com/docs/overflow
|
|
3275
3334
|
*/
|
|
3276
3335
|
overflow: [{
|
|
3277
|
-
overflow:
|
|
3336
|
+
overflow: $()
|
|
3278
3337
|
}],
|
|
3279
3338
|
/**
|
|
3280
3339
|
* Overflow X
|
|
3281
3340
|
* @see https://tailwindcss.com/docs/overflow
|
|
3282
3341
|
*/
|
|
3283
3342
|
"overflow-x": [{
|
|
3284
|
-
"overflow-x":
|
|
3343
|
+
"overflow-x": $()
|
|
3285
3344
|
}],
|
|
3286
3345
|
/**
|
|
3287
3346
|
* Overflow Y
|
|
3288
3347
|
* @see https://tailwindcss.com/docs/overflow
|
|
3289
3348
|
*/
|
|
3290
3349
|
"overflow-y": [{
|
|
3291
|
-
"overflow-y":
|
|
3350
|
+
"overflow-y": $()
|
|
3292
3351
|
}],
|
|
3293
3352
|
/**
|
|
3294
3353
|
* Overscroll Behavior
|
|
3295
3354
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
3296
3355
|
*/
|
|
3297
3356
|
overscroll: [{
|
|
3298
|
-
overscroll:
|
|
3357
|
+
overscroll: oe()
|
|
3299
3358
|
}],
|
|
3300
3359
|
/**
|
|
3301
3360
|
* Overscroll Behavior X
|
|
3302
3361
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
3303
3362
|
*/
|
|
3304
3363
|
"overscroll-x": [{
|
|
3305
|
-
"overscroll-x":
|
|
3364
|
+
"overscroll-x": oe()
|
|
3306
3365
|
}],
|
|
3307
3366
|
/**
|
|
3308
3367
|
* Overscroll Behavior Y
|
|
3309
3368
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
3310
3369
|
*/
|
|
3311
3370
|
"overscroll-y": [{
|
|
3312
|
-
"overscroll-y":
|
|
3371
|
+
"overscroll-y": oe()
|
|
3313
3372
|
}],
|
|
3314
3373
|
/**
|
|
3315
3374
|
* Position
|
|
@@ -3389,7 +3448,7 @@ const jn = (i, n) => {
|
|
|
3389
3448
|
* @see https://tailwindcss.com/docs/z-index
|
|
3390
3449
|
*/
|
|
3391
3450
|
z: [{
|
|
3392
|
-
z: [Ne, "auto",
|
|
3451
|
+
z: [Ne, "auto", v, _]
|
|
3393
3452
|
}],
|
|
3394
3453
|
// ------------------------
|
|
3395
3454
|
// --- Flexbox and Grid ---
|
|
@@ -3399,7 +3458,7 @@ const jn = (i, n) => {
|
|
|
3399
3458
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
3400
3459
|
*/
|
|
3401
3460
|
basis: [{
|
|
3402
|
-
basis: [
|
|
3461
|
+
basis: [ze, "full", "auto", l, ...N()]
|
|
3403
3462
|
}],
|
|
3404
3463
|
/**
|
|
3405
3464
|
* Flex Direction
|
|
@@ -3420,35 +3479,35 @@ const jn = (i, n) => {
|
|
|
3420
3479
|
* @see https://tailwindcss.com/docs/flex
|
|
3421
3480
|
*/
|
|
3422
3481
|
flex: [{
|
|
3423
|
-
flex: [B,
|
|
3482
|
+
flex: [B, ze, "auto", "initial", "none", _]
|
|
3424
3483
|
}],
|
|
3425
3484
|
/**
|
|
3426
3485
|
* Flex Grow
|
|
3427
3486
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
3428
3487
|
*/
|
|
3429
3488
|
grow: [{
|
|
3430
|
-
grow: ["", B,
|
|
3489
|
+
grow: ["", B, v, _]
|
|
3431
3490
|
}],
|
|
3432
3491
|
/**
|
|
3433
3492
|
* Flex Shrink
|
|
3434
3493
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
3435
3494
|
*/
|
|
3436
3495
|
shrink: [{
|
|
3437
|
-
shrink: ["", B,
|
|
3496
|
+
shrink: ["", B, v, _]
|
|
3438
3497
|
}],
|
|
3439
3498
|
/**
|
|
3440
3499
|
* Order
|
|
3441
3500
|
* @see https://tailwindcss.com/docs/order
|
|
3442
3501
|
*/
|
|
3443
3502
|
order: [{
|
|
3444
|
-
order: [Ne, "first", "last", "none",
|
|
3503
|
+
order: [Ne, "first", "last", "none", v, _]
|
|
3445
3504
|
}],
|
|
3446
3505
|
/**
|
|
3447
3506
|
* Grid Template Columns
|
|
3448
3507
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
3449
3508
|
*/
|
|
3450
3509
|
"grid-cols": [{
|
|
3451
|
-
"grid-cols":
|
|
3510
|
+
"grid-cols": z()
|
|
3452
3511
|
}],
|
|
3453
3512
|
/**
|
|
3454
3513
|
* Grid Column Start / End
|
|
@@ -3462,21 +3521,21 @@ const jn = (i, n) => {
|
|
|
3462
3521
|
* @see https://tailwindcss.com/docs/grid-column
|
|
3463
3522
|
*/
|
|
3464
3523
|
"col-start": [{
|
|
3465
|
-
"col-start":
|
|
3524
|
+
"col-start": ye()
|
|
3466
3525
|
}],
|
|
3467
3526
|
/**
|
|
3468
3527
|
* Grid Column End
|
|
3469
3528
|
* @see https://tailwindcss.com/docs/grid-column
|
|
3470
3529
|
*/
|
|
3471
3530
|
"col-end": [{
|
|
3472
|
-
"col-end":
|
|
3531
|
+
"col-end": ye()
|
|
3473
3532
|
}],
|
|
3474
3533
|
/**
|
|
3475
3534
|
* Grid Template Rows
|
|
3476
3535
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
3477
3536
|
*/
|
|
3478
3537
|
"grid-rows": [{
|
|
3479
|
-
"grid-rows":
|
|
3538
|
+
"grid-rows": z()
|
|
3480
3539
|
}],
|
|
3481
3540
|
/**
|
|
3482
3541
|
* Grid Row Start / End
|
|
@@ -3490,14 +3549,14 @@ const jn = (i, n) => {
|
|
|
3490
3549
|
* @see https://tailwindcss.com/docs/grid-row
|
|
3491
3550
|
*/
|
|
3492
3551
|
"row-start": [{
|
|
3493
|
-
"row-start":
|
|
3552
|
+
"row-start": ye()
|
|
3494
3553
|
}],
|
|
3495
3554
|
/**
|
|
3496
3555
|
* Grid Row End
|
|
3497
3556
|
* @see https://tailwindcss.com/docs/grid-row
|
|
3498
3557
|
*/
|
|
3499
3558
|
"row-end": [{
|
|
3500
|
-
"row-end":
|
|
3559
|
+
"row-end": ye()
|
|
3501
3560
|
}],
|
|
3502
3561
|
/**
|
|
3503
3562
|
* Grid Auto Flow
|
|
@@ -3525,28 +3584,28 @@ const jn = (i, n) => {
|
|
|
3525
3584
|
* @see https://tailwindcss.com/docs/gap
|
|
3526
3585
|
*/
|
|
3527
3586
|
gap: [{
|
|
3528
|
-
gap:
|
|
3587
|
+
gap: N()
|
|
3529
3588
|
}],
|
|
3530
3589
|
/**
|
|
3531
3590
|
* Gap X
|
|
3532
3591
|
* @see https://tailwindcss.com/docs/gap
|
|
3533
3592
|
*/
|
|
3534
3593
|
"gap-x": [{
|
|
3535
|
-
"gap-x":
|
|
3594
|
+
"gap-x": N()
|
|
3536
3595
|
}],
|
|
3537
3596
|
/**
|
|
3538
3597
|
* Gap Y
|
|
3539
3598
|
* @see https://tailwindcss.com/docs/gap
|
|
3540
3599
|
*/
|
|
3541
3600
|
"gap-y": [{
|
|
3542
|
-
"gap-y":
|
|
3601
|
+
"gap-y": N()
|
|
3543
3602
|
}],
|
|
3544
3603
|
/**
|
|
3545
3604
|
* Justify Content
|
|
3546
3605
|
* @see https://tailwindcss.com/docs/justify-content
|
|
3547
3606
|
*/
|
|
3548
3607
|
"justify-content": [{
|
|
3549
|
-
justify: [...
|
|
3608
|
+
justify: [...be(), "normal"]
|
|
3550
3609
|
}],
|
|
3551
3610
|
/**
|
|
3552
3611
|
* Justify Items
|
|
@@ -3567,7 +3626,7 @@ const jn = (i, n) => {
|
|
|
3567
3626
|
* @see https://tailwindcss.com/docs/align-content
|
|
3568
3627
|
*/
|
|
3569
3628
|
"align-content": [{
|
|
3570
|
-
content: ["normal", ...
|
|
3629
|
+
content: ["normal", ...be()]
|
|
3571
3630
|
}],
|
|
3572
3631
|
/**
|
|
3573
3632
|
* Align Items
|
|
@@ -3592,7 +3651,7 @@ const jn = (i, n) => {
|
|
|
3592
3651
|
* @see https://tailwindcss.com/docs/place-content
|
|
3593
3652
|
*/
|
|
3594
3653
|
"place-content": [{
|
|
3595
|
-
"place-content":
|
|
3654
|
+
"place-content": be()
|
|
3596
3655
|
}],
|
|
3597
3656
|
/**
|
|
3598
3657
|
* Place Items
|
|
@@ -3614,133 +3673,133 @@ const jn = (i, n) => {
|
|
|
3614
3673
|
* @see https://tailwindcss.com/docs/padding
|
|
3615
3674
|
*/
|
|
3616
3675
|
p: [{
|
|
3617
|
-
p:
|
|
3676
|
+
p: N()
|
|
3618
3677
|
}],
|
|
3619
3678
|
/**
|
|
3620
3679
|
* Padding X
|
|
3621
3680
|
* @see https://tailwindcss.com/docs/padding
|
|
3622
3681
|
*/
|
|
3623
3682
|
px: [{
|
|
3624
|
-
px:
|
|
3683
|
+
px: N()
|
|
3625
3684
|
}],
|
|
3626
3685
|
/**
|
|
3627
3686
|
* Padding Y
|
|
3628
3687
|
* @see https://tailwindcss.com/docs/padding
|
|
3629
3688
|
*/
|
|
3630
3689
|
py: [{
|
|
3631
|
-
py:
|
|
3690
|
+
py: N()
|
|
3632
3691
|
}],
|
|
3633
3692
|
/**
|
|
3634
3693
|
* Padding Start
|
|
3635
3694
|
* @see https://tailwindcss.com/docs/padding
|
|
3636
3695
|
*/
|
|
3637
3696
|
ps: [{
|
|
3638
|
-
ps:
|
|
3697
|
+
ps: N()
|
|
3639
3698
|
}],
|
|
3640
3699
|
/**
|
|
3641
3700
|
* Padding End
|
|
3642
3701
|
* @see https://tailwindcss.com/docs/padding
|
|
3643
3702
|
*/
|
|
3644
3703
|
pe: [{
|
|
3645
|
-
pe:
|
|
3704
|
+
pe: N()
|
|
3646
3705
|
}],
|
|
3647
3706
|
/**
|
|
3648
3707
|
* Padding Top
|
|
3649
3708
|
* @see https://tailwindcss.com/docs/padding
|
|
3650
3709
|
*/
|
|
3651
3710
|
pt: [{
|
|
3652
|
-
pt:
|
|
3711
|
+
pt: N()
|
|
3653
3712
|
}],
|
|
3654
3713
|
/**
|
|
3655
3714
|
* Padding Right
|
|
3656
3715
|
* @see https://tailwindcss.com/docs/padding
|
|
3657
3716
|
*/
|
|
3658
3717
|
pr: [{
|
|
3659
|
-
pr:
|
|
3718
|
+
pr: N()
|
|
3660
3719
|
}],
|
|
3661
3720
|
/**
|
|
3662
3721
|
* Padding Bottom
|
|
3663
3722
|
* @see https://tailwindcss.com/docs/padding
|
|
3664
3723
|
*/
|
|
3665
3724
|
pb: [{
|
|
3666
|
-
pb:
|
|
3725
|
+
pb: N()
|
|
3667
3726
|
}],
|
|
3668
3727
|
/**
|
|
3669
3728
|
* Padding Left
|
|
3670
3729
|
* @see https://tailwindcss.com/docs/padding
|
|
3671
3730
|
*/
|
|
3672
3731
|
pl: [{
|
|
3673
|
-
pl:
|
|
3732
|
+
pl: N()
|
|
3674
3733
|
}],
|
|
3675
3734
|
/**
|
|
3676
3735
|
* Margin
|
|
3677
3736
|
* @see https://tailwindcss.com/docs/margin
|
|
3678
3737
|
*/
|
|
3679
3738
|
m: [{
|
|
3680
|
-
m:
|
|
3739
|
+
m: re()
|
|
3681
3740
|
}],
|
|
3682
3741
|
/**
|
|
3683
3742
|
* Margin X
|
|
3684
3743
|
* @see https://tailwindcss.com/docs/margin
|
|
3685
3744
|
*/
|
|
3686
3745
|
mx: [{
|
|
3687
|
-
mx:
|
|
3746
|
+
mx: re()
|
|
3688
3747
|
}],
|
|
3689
3748
|
/**
|
|
3690
3749
|
* Margin Y
|
|
3691
3750
|
* @see https://tailwindcss.com/docs/margin
|
|
3692
3751
|
*/
|
|
3693
3752
|
my: [{
|
|
3694
|
-
my:
|
|
3753
|
+
my: re()
|
|
3695
3754
|
}],
|
|
3696
3755
|
/**
|
|
3697
3756
|
* Margin Start
|
|
3698
3757
|
* @see https://tailwindcss.com/docs/margin
|
|
3699
3758
|
*/
|
|
3700
3759
|
ms: [{
|
|
3701
|
-
ms:
|
|
3760
|
+
ms: re()
|
|
3702
3761
|
}],
|
|
3703
3762
|
/**
|
|
3704
3763
|
* Margin End
|
|
3705
3764
|
* @see https://tailwindcss.com/docs/margin
|
|
3706
3765
|
*/
|
|
3707
3766
|
me: [{
|
|
3708
|
-
me:
|
|
3767
|
+
me: re()
|
|
3709
3768
|
}],
|
|
3710
3769
|
/**
|
|
3711
3770
|
* Margin Top
|
|
3712
3771
|
* @see https://tailwindcss.com/docs/margin
|
|
3713
3772
|
*/
|
|
3714
3773
|
mt: [{
|
|
3715
|
-
mt:
|
|
3774
|
+
mt: re()
|
|
3716
3775
|
}],
|
|
3717
3776
|
/**
|
|
3718
3777
|
* Margin Right
|
|
3719
3778
|
* @see https://tailwindcss.com/docs/margin
|
|
3720
3779
|
*/
|
|
3721
3780
|
mr: [{
|
|
3722
|
-
mr:
|
|
3781
|
+
mr: re()
|
|
3723
3782
|
}],
|
|
3724
3783
|
/**
|
|
3725
3784
|
* Margin Bottom
|
|
3726
3785
|
* @see https://tailwindcss.com/docs/margin
|
|
3727
3786
|
*/
|
|
3728
3787
|
mb: [{
|
|
3729
|
-
mb:
|
|
3788
|
+
mb: re()
|
|
3730
3789
|
}],
|
|
3731
3790
|
/**
|
|
3732
3791
|
* Margin Left
|
|
3733
3792
|
* @see https://tailwindcss.com/docs/margin
|
|
3734
3793
|
*/
|
|
3735
3794
|
ml: [{
|
|
3736
|
-
ml:
|
|
3795
|
+
ml: re()
|
|
3737
3796
|
}],
|
|
3738
3797
|
/**
|
|
3739
3798
|
* Space Between X
|
|
3740
3799
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
3741
3800
|
*/
|
|
3742
3801
|
"space-x": [{
|
|
3743
|
-
"space-x":
|
|
3802
|
+
"space-x": N()
|
|
3744
3803
|
}],
|
|
3745
3804
|
/**
|
|
3746
3805
|
* Space Between X Reverse
|
|
@@ -3752,7 +3811,7 @@ const jn = (i, n) => {
|
|
|
3752
3811
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
3753
3812
|
*/
|
|
3754
3813
|
"space-y": [{
|
|
3755
|
-
"space-y":
|
|
3814
|
+
"space-y": N()
|
|
3756
3815
|
}],
|
|
3757
3816
|
/**
|
|
3758
3817
|
* Space Between Y Reverse
|
|
@@ -3767,14 +3826,14 @@ const jn = (i, n) => {
|
|
|
3767
3826
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
3768
3827
|
*/
|
|
3769
3828
|
size: [{
|
|
3770
|
-
size:
|
|
3829
|
+
size: ce()
|
|
3771
3830
|
}],
|
|
3772
3831
|
/**
|
|
3773
3832
|
* Width
|
|
3774
3833
|
* @see https://tailwindcss.com/docs/width
|
|
3775
3834
|
*/
|
|
3776
3835
|
w: [{
|
|
3777
|
-
w: [l, "screen", ...
|
|
3836
|
+
w: [l, "screen", ...ce()]
|
|
3778
3837
|
}],
|
|
3779
3838
|
/**
|
|
3780
3839
|
* Min-Width
|
|
@@ -3786,7 +3845,7 @@ const jn = (i, n) => {
|
|
|
3786
3845
|
"screen",
|
|
3787
3846
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
3788
3847
|
"none",
|
|
3789
|
-
...
|
|
3848
|
+
...ce()
|
|
3790
3849
|
]
|
|
3791
3850
|
}],
|
|
3792
3851
|
/**
|
|
@@ -3804,7 +3863,7 @@ const jn = (i, n) => {
|
|
|
3804
3863
|
{
|
|
3805
3864
|
screen: [c]
|
|
3806
3865
|
},
|
|
3807
|
-
...
|
|
3866
|
+
...ce()
|
|
3808
3867
|
]
|
|
3809
3868
|
}],
|
|
3810
3869
|
/**
|
|
@@ -3812,21 +3871,21 @@ const jn = (i, n) => {
|
|
|
3812
3871
|
* @see https://tailwindcss.com/docs/height
|
|
3813
3872
|
*/
|
|
3814
3873
|
h: [{
|
|
3815
|
-
h: ["screen", "lh", ...
|
|
3874
|
+
h: ["screen", "lh", ...ce()]
|
|
3816
3875
|
}],
|
|
3817
3876
|
/**
|
|
3818
3877
|
* Min-Height
|
|
3819
3878
|
* @see https://tailwindcss.com/docs/min-height
|
|
3820
3879
|
*/
|
|
3821
3880
|
"min-h": [{
|
|
3822
|
-
"min-h": ["screen", "lh", "none", ...
|
|
3881
|
+
"min-h": ["screen", "lh", "none", ...ce()]
|
|
3823
3882
|
}],
|
|
3824
3883
|
/**
|
|
3825
3884
|
* Max-Height
|
|
3826
3885
|
* @see https://tailwindcss.com/docs/max-height
|
|
3827
3886
|
*/
|
|
3828
3887
|
"max-h": [{
|
|
3829
|
-
"max-h": ["screen", "lh", ...
|
|
3888
|
+
"max-h": ["screen", "lh", ...ce()]
|
|
3830
3889
|
}],
|
|
3831
3890
|
// ------------------
|
|
3832
3891
|
// --- Typography ---
|
|
@@ -3836,7 +3895,7 @@ const jn = (i, n) => {
|
|
|
3836
3895
|
* @see https://tailwindcss.com/docs/font-size
|
|
3837
3896
|
*/
|
|
3838
3897
|
"font-size": [{
|
|
3839
|
-
text: ["base", r,
|
|
3898
|
+
text: ["base", r, qe, Le]
|
|
3840
3899
|
}],
|
|
3841
3900
|
/**
|
|
3842
3901
|
* Font Smoothing
|
|
@@ -3853,21 +3912,21 @@ const jn = (i, n) => {
|
|
|
3853
3912
|
* @see https://tailwindcss.com/docs/font-weight
|
|
3854
3913
|
*/
|
|
3855
3914
|
"font-weight": [{
|
|
3856
|
-
font: [o,
|
|
3915
|
+
font: [o, v, ut]
|
|
3857
3916
|
}],
|
|
3858
3917
|
/**
|
|
3859
3918
|
* Font Stretch
|
|
3860
3919
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
3861
3920
|
*/
|
|
3862
3921
|
"font-stretch": [{
|
|
3863
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", dt,
|
|
3922
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", dt, _]
|
|
3864
3923
|
}],
|
|
3865
3924
|
/**
|
|
3866
3925
|
* Font Family
|
|
3867
3926
|
* @see https://tailwindcss.com/docs/font-family
|
|
3868
3927
|
*/
|
|
3869
3928
|
"font-family": [{
|
|
3870
|
-
font: [
|
|
3929
|
+
font: [Mi, _, n]
|
|
3871
3930
|
}],
|
|
3872
3931
|
/**
|
|
3873
3932
|
* Font Variant Numeric
|
|
@@ -3904,14 +3963,14 @@ const jn = (i, n) => {
|
|
|
3904
3963
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
3905
3964
|
*/
|
|
3906
3965
|
tracking: [{
|
|
3907
|
-
tracking: [d,
|
|
3966
|
+
tracking: [d, v, _]
|
|
3908
3967
|
}],
|
|
3909
3968
|
/**
|
|
3910
3969
|
* Line Clamp
|
|
3911
3970
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
3912
3971
|
*/
|
|
3913
3972
|
"line-clamp": [{
|
|
3914
|
-
"line-clamp": [B, "none",
|
|
3973
|
+
"line-clamp": [B, "none", v, ut]
|
|
3915
3974
|
}],
|
|
3916
3975
|
/**
|
|
3917
3976
|
* Line Height
|
|
@@ -3921,7 +3980,7 @@ const jn = (i, n) => {
|
|
|
3921
3980
|
leading: [
|
|
3922
3981
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
3923
3982
|
h,
|
|
3924
|
-
...
|
|
3983
|
+
...N()
|
|
3925
3984
|
]
|
|
3926
3985
|
}],
|
|
3927
3986
|
/**
|
|
@@ -3929,7 +3988,7 @@ const jn = (i, n) => {
|
|
|
3929
3988
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
3930
3989
|
*/
|
|
3931
3990
|
"list-image": [{
|
|
3932
|
-
"list-image": ["none",
|
|
3991
|
+
"list-image": ["none", v, _]
|
|
3933
3992
|
}],
|
|
3934
3993
|
/**
|
|
3935
3994
|
* List Style Position
|
|
@@ -3943,7 +4002,7 @@ const jn = (i, n) => {
|
|
|
3943
4002
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
3944
4003
|
*/
|
|
3945
4004
|
"list-style-type": [{
|
|
3946
|
-
list: ["disc", "decimal", "none",
|
|
4005
|
+
list: ["disc", "decimal", "none", v, _]
|
|
3947
4006
|
}],
|
|
3948
4007
|
/**
|
|
3949
4008
|
* Text Alignment
|
|
@@ -3958,14 +4017,14 @@ const jn = (i, n) => {
|
|
|
3958
4017
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
3959
4018
|
*/
|
|
3960
4019
|
"placeholder-color": [{
|
|
3961
|
-
placeholder:
|
|
4020
|
+
placeholder: R()
|
|
3962
4021
|
}],
|
|
3963
4022
|
/**
|
|
3964
4023
|
* Text Color
|
|
3965
4024
|
* @see https://tailwindcss.com/docs/text-color
|
|
3966
4025
|
*/
|
|
3967
4026
|
"text-color": [{
|
|
3968
|
-
text:
|
|
4027
|
+
text: R()
|
|
3969
4028
|
}],
|
|
3970
4029
|
/**
|
|
3971
4030
|
* Text Decoration
|
|
@@ -3984,21 +4043,21 @@ const jn = (i, n) => {
|
|
|
3984
4043
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
3985
4044
|
*/
|
|
3986
4045
|
"text-decoration-thickness": [{
|
|
3987
|
-
decoration: [B, "from-font", "auto",
|
|
4046
|
+
decoration: [B, "from-font", "auto", v, Le]
|
|
3988
4047
|
}],
|
|
3989
4048
|
/**
|
|
3990
4049
|
* Text Decoration Color
|
|
3991
4050
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
3992
4051
|
*/
|
|
3993
4052
|
"text-decoration-color": [{
|
|
3994
|
-
decoration:
|
|
4053
|
+
decoration: R()
|
|
3995
4054
|
}],
|
|
3996
4055
|
/**
|
|
3997
4056
|
* Text Underline Offset
|
|
3998
4057
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
3999
4058
|
*/
|
|
4000
4059
|
"underline-offset": [{
|
|
4001
|
-
"underline-offset": [B, "auto",
|
|
4060
|
+
"underline-offset": [B, "auto", v, _]
|
|
4002
4061
|
}],
|
|
4003
4062
|
/**
|
|
4004
4063
|
* Text Transform
|
|
@@ -4022,14 +4081,14 @@ const jn = (i, n) => {
|
|
|
4022
4081
|
* @see https://tailwindcss.com/docs/text-indent
|
|
4023
4082
|
*/
|
|
4024
4083
|
indent: [{
|
|
4025
|
-
indent:
|
|
4084
|
+
indent: N()
|
|
4026
4085
|
}],
|
|
4027
4086
|
/**
|
|
4028
4087
|
* Vertical Alignment
|
|
4029
4088
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
4030
4089
|
*/
|
|
4031
4090
|
"vertical-align": [{
|
|
4032
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
4091
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", v, _]
|
|
4033
4092
|
}],
|
|
4034
4093
|
/**
|
|
4035
4094
|
* Whitespace
|
|
@@ -4064,7 +4123,7 @@ const jn = (i, n) => {
|
|
|
4064
4123
|
* @see https://tailwindcss.com/docs/content
|
|
4065
4124
|
*/
|
|
4066
4125
|
content: [{
|
|
4067
|
-
content: ["none",
|
|
4126
|
+
content: ["none", v, _]
|
|
4068
4127
|
}],
|
|
4069
4128
|
// -------------------
|
|
4070
4129
|
// --- Backgrounds ---
|
|
@@ -4102,14 +4161,14 @@ const jn = (i, n) => {
|
|
|
4102
4161
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
4103
4162
|
*/
|
|
4104
4163
|
"bg-repeat": [{
|
|
4105
|
-
bg:
|
|
4164
|
+
bg: $e()
|
|
4106
4165
|
}],
|
|
4107
4166
|
/**
|
|
4108
4167
|
* Background Size
|
|
4109
4168
|
* @see https://tailwindcss.com/docs/background-size
|
|
4110
4169
|
*/
|
|
4111
4170
|
"bg-size": [{
|
|
4112
|
-
bg:
|
|
4171
|
+
bg: J()
|
|
4113
4172
|
}],
|
|
4114
4173
|
/**
|
|
4115
4174
|
* Background Image
|
|
@@ -4119,17 +4178,17 @@ const jn = (i, n) => {
|
|
|
4119
4178
|
bg: ["none", {
|
|
4120
4179
|
linear: [{
|
|
4121
4180
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
4122
|
-
}, Ne,
|
|
4123
|
-
radial: ["",
|
|
4124
|
-
conic: [Ne,
|
|
4125
|
-
},
|
|
4181
|
+
}, Ne, v, _],
|
|
4182
|
+
radial: ["", v, _],
|
|
4183
|
+
conic: [Ne, v, _]
|
|
4184
|
+
}, Bi, Oi]
|
|
4126
4185
|
}],
|
|
4127
4186
|
/**
|
|
4128
4187
|
* Background Color
|
|
4129
4188
|
* @see https://tailwindcss.com/docs/background-color
|
|
4130
4189
|
*/
|
|
4131
4190
|
"bg-color": [{
|
|
4132
|
-
bg:
|
|
4191
|
+
bg: R()
|
|
4133
4192
|
}],
|
|
4134
4193
|
/**
|
|
4135
4194
|
* Gradient Color Stops From Position
|
|
@@ -4157,21 +4216,21 @@ const jn = (i, n) => {
|
|
|
4157
4216
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
4158
4217
|
*/
|
|
4159
4218
|
"gradient-from": [{
|
|
4160
|
-
from:
|
|
4219
|
+
from: R()
|
|
4161
4220
|
}],
|
|
4162
4221
|
/**
|
|
4163
4222
|
* Gradient Color Stops Via
|
|
4164
4223
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
4165
4224
|
*/
|
|
4166
4225
|
"gradient-via": [{
|
|
4167
|
-
via:
|
|
4226
|
+
via: R()
|
|
4168
4227
|
}],
|
|
4169
4228
|
/**
|
|
4170
4229
|
* Gradient Color Stops To
|
|
4171
4230
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
4172
4231
|
*/
|
|
4173
4232
|
"gradient-to": [{
|
|
4174
|
-
to:
|
|
4233
|
+
to: R()
|
|
4175
4234
|
}],
|
|
4176
4235
|
// ---------------
|
|
4177
4236
|
// --- Borders ---
|
|
@@ -4387,70 +4446,70 @@ const jn = (i, n) => {
|
|
|
4387
4446
|
* @see https://tailwindcss.com/docs/border-color
|
|
4388
4447
|
*/
|
|
4389
4448
|
"border-color": [{
|
|
4390
|
-
border:
|
|
4449
|
+
border: R()
|
|
4391
4450
|
}],
|
|
4392
4451
|
/**
|
|
4393
4452
|
* Border Color X
|
|
4394
4453
|
* @see https://tailwindcss.com/docs/border-color
|
|
4395
4454
|
*/
|
|
4396
4455
|
"border-color-x": [{
|
|
4397
|
-
"border-x":
|
|
4456
|
+
"border-x": R()
|
|
4398
4457
|
}],
|
|
4399
4458
|
/**
|
|
4400
4459
|
* Border Color Y
|
|
4401
4460
|
* @see https://tailwindcss.com/docs/border-color
|
|
4402
4461
|
*/
|
|
4403
4462
|
"border-color-y": [{
|
|
4404
|
-
"border-y":
|
|
4463
|
+
"border-y": R()
|
|
4405
4464
|
}],
|
|
4406
4465
|
/**
|
|
4407
4466
|
* Border Color S
|
|
4408
4467
|
* @see https://tailwindcss.com/docs/border-color
|
|
4409
4468
|
*/
|
|
4410
4469
|
"border-color-s": [{
|
|
4411
|
-
"border-s":
|
|
4470
|
+
"border-s": R()
|
|
4412
4471
|
}],
|
|
4413
4472
|
/**
|
|
4414
4473
|
* Border Color E
|
|
4415
4474
|
* @see https://tailwindcss.com/docs/border-color
|
|
4416
4475
|
*/
|
|
4417
4476
|
"border-color-e": [{
|
|
4418
|
-
"border-e":
|
|
4477
|
+
"border-e": R()
|
|
4419
4478
|
}],
|
|
4420
4479
|
/**
|
|
4421
4480
|
* Border Color Top
|
|
4422
4481
|
* @see https://tailwindcss.com/docs/border-color
|
|
4423
4482
|
*/
|
|
4424
4483
|
"border-color-t": [{
|
|
4425
|
-
"border-t":
|
|
4484
|
+
"border-t": R()
|
|
4426
4485
|
}],
|
|
4427
4486
|
/**
|
|
4428
4487
|
* Border Color Right
|
|
4429
4488
|
* @see https://tailwindcss.com/docs/border-color
|
|
4430
4489
|
*/
|
|
4431
4490
|
"border-color-r": [{
|
|
4432
|
-
"border-r":
|
|
4491
|
+
"border-r": R()
|
|
4433
4492
|
}],
|
|
4434
4493
|
/**
|
|
4435
4494
|
* Border Color Bottom
|
|
4436
4495
|
* @see https://tailwindcss.com/docs/border-color
|
|
4437
4496
|
*/
|
|
4438
4497
|
"border-color-b": [{
|
|
4439
|
-
"border-b":
|
|
4498
|
+
"border-b": R()
|
|
4440
4499
|
}],
|
|
4441
4500
|
/**
|
|
4442
4501
|
* Border Color Left
|
|
4443
4502
|
* @see https://tailwindcss.com/docs/border-color
|
|
4444
4503
|
*/
|
|
4445
4504
|
"border-color-l": [{
|
|
4446
|
-
"border-l":
|
|
4505
|
+
"border-l": R()
|
|
4447
4506
|
}],
|
|
4448
4507
|
/**
|
|
4449
4508
|
* Divide Color
|
|
4450
4509
|
* @see https://tailwindcss.com/docs/divide-color
|
|
4451
4510
|
*/
|
|
4452
4511
|
"divide-color": [{
|
|
4453
|
-
divide:
|
|
4512
|
+
divide: R()
|
|
4454
4513
|
}],
|
|
4455
4514
|
/**
|
|
4456
4515
|
* Outline Style
|
|
@@ -4464,21 +4523,21 @@ const jn = (i, n) => {
|
|
|
4464
4523
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
4465
4524
|
*/
|
|
4466
4525
|
"outline-offset": [{
|
|
4467
|
-
"outline-offset": [B,
|
|
4526
|
+
"outline-offset": [B, v, _]
|
|
4468
4527
|
}],
|
|
4469
4528
|
/**
|
|
4470
4529
|
* Outline Width
|
|
4471
4530
|
* @see https://tailwindcss.com/docs/outline-width
|
|
4472
4531
|
*/
|
|
4473
4532
|
"outline-w": [{
|
|
4474
|
-
outline: ["", B,
|
|
4533
|
+
outline: ["", B, qe, Le]
|
|
4475
4534
|
}],
|
|
4476
4535
|
/**
|
|
4477
4536
|
* Outline Color
|
|
4478
4537
|
* @see https://tailwindcss.com/docs/outline-color
|
|
4479
4538
|
*/
|
|
4480
4539
|
"outline-color": [{
|
|
4481
|
-
outline:
|
|
4540
|
+
outline: R()
|
|
4482
4541
|
}],
|
|
4483
4542
|
// ---------------
|
|
4484
4543
|
// --- Effects ---
|
|
@@ -4502,7 +4561,7 @@ const jn = (i, n) => {
|
|
|
4502
4561
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
4503
4562
|
*/
|
|
4504
4563
|
"shadow-color": [{
|
|
4505
|
-
shadow:
|
|
4564
|
+
shadow: R()
|
|
4506
4565
|
}],
|
|
4507
4566
|
/**
|
|
4508
4567
|
* Inset Box Shadow
|
|
@@ -4516,7 +4575,7 @@ const jn = (i, n) => {
|
|
|
4516
4575
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
4517
4576
|
*/
|
|
4518
4577
|
"inset-shadow-color": [{
|
|
4519
|
-
"inset-shadow":
|
|
4578
|
+
"inset-shadow": R()
|
|
4520
4579
|
}],
|
|
4521
4580
|
/**
|
|
4522
4581
|
* Ring Width
|
|
@@ -4537,7 +4596,7 @@ const jn = (i, n) => {
|
|
|
4537
4596
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
4538
4597
|
*/
|
|
4539
4598
|
"ring-color": [{
|
|
4540
|
-
ring:
|
|
4599
|
+
ring: R()
|
|
4541
4600
|
}],
|
|
4542
4601
|
/**
|
|
4543
4602
|
* Ring Offset Width
|
|
@@ -4555,7 +4614,7 @@ const jn = (i, n) => {
|
|
|
4555
4614
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
4556
4615
|
*/
|
|
4557
4616
|
"ring-offset-color": [{
|
|
4558
|
-
"ring-offset":
|
|
4617
|
+
"ring-offset": R()
|
|
4559
4618
|
}],
|
|
4560
4619
|
/**
|
|
4561
4620
|
* Inset Ring Width
|
|
@@ -4569,7 +4628,7 @@ const jn = (i, n) => {
|
|
|
4569
4628
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
4570
4629
|
*/
|
|
4571
4630
|
"inset-ring-color": [{
|
|
4572
|
-
"inset-ring":
|
|
4631
|
+
"inset-ring": R()
|
|
4573
4632
|
}],
|
|
4574
4633
|
/**
|
|
4575
4634
|
* Text Shadow
|
|
@@ -4583,14 +4642,14 @@ const jn = (i, n) => {
|
|
|
4583
4642
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
4584
4643
|
*/
|
|
4585
4644
|
"text-shadow-color": [{
|
|
4586
|
-
"text-shadow":
|
|
4645
|
+
"text-shadow": R()
|
|
4587
4646
|
}],
|
|
4588
4647
|
/**
|
|
4589
4648
|
* Opacity
|
|
4590
4649
|
* @see https://tailwindcss.com/docs/opacity
|
|
4591
4650
|
*/
|
|
4592
4651
|
opacity: [{
|
|
4593
|
-
opacity: [B,
|
|
4652
|
+
opacity: [B, v, _]
|
|
4594
4653
|
}],
|
|
4595
4654
|
/**
|
|
4596
4655
|
* Mix Blend Mode
|
|
@@ -4634,10 +4693,10 @@ const jn = (i, n) => {
|
|
|
4634
4693
|
"mask-linear-to": K()
|
|
4635
4694
|
}],
|
|
4636
4695
|
"mask-image-linear-from-color": [{
|
|
4637
|
-
"mask-linear-from":
|
|
4696
|
+
"mask-linear-from": R()
|
|
4638
4697
|
}],
|
|
4639
4698
|
"mask-image-linear-to-color": [{
|
|
4640
|
-
"mask-linear-to":
|
|
4699
|
+
"mask-linear-to": R()
|
|
4641
4700
|
}],
|
|
4642
4701
|
"mask-image-t-from-pos": [{
|
|
4643
4702
|
"mask-t-from": K()
|
|
@@ -4646,10 +4705,10 @@ const jn = (i, n) => {
|
|
|
4646
4705
|
"mask-t-to": K()
|
|
4647
4706
|
}],
|
|
4648
4707
|
"mask-image-t-from-color": [{
|
|
4649
|
-
"mask-t-from":
|
|
4708
|
+
"mask-t-from": R()
|
|
4650
4709
|
}],
|
|
4651
4710
|
"mask-image-t-to-color": [{
|
|
4652
|
-
"mask-t-to":
|
|
4711
|
+
"mask-t-to": R()
|
|
4653
4712
|
}],
|
|
4654
4713
|
"mask-image-r-from-pos": [{
|
|
4655
4714
|
"mask-r-from": K()
|
|
@@ -4658,10 +4717,10 @@ const jn = (i, n) => {
|
|
|
4658
4717
|
"mask-r-to": K()
|
|
4659
4718
|
}],
|
|
4660
4719
|
"mask-image-r-from-color": [{
|
|
4661
|
-
"mask-r-from":
|
|
4720
|
+
"mask-r-from": R()
|
|
4662
4721
|
}],
|
|
4663
4722
|
"mask-image-r-to-color": [{
|
|
4664
|
-
"mask-r-to":
|
|
4723
|
+
"mask-r-to": R()
|
|
4665
4724
|
}],
|
|
4666
4725
|
"mask-image-b-from-pos": [{
|
|
4667
4726
|
"mask-b-from": K()
|
|
@@ -4670,10 +4729,10 @@ const jn = (i, n) => {
|
|
|
4670
4729
|
"mask-b-to": K()
|
|
4671
4730
|
}],
|
|
4672
4731
|
"mask-image-b-from-color": [{
|
|
4673
|
-
"mask-b-from":
|
|
4732
|
+
"mask-b-from": R()
|
|
4674
4733
|
}],
|
|
4675
4734
|
"mask-image-b-to-color": [{
|
|
4676
|
-
"mask-b-to":
|
|
4735
|
+
"mask-b-to": R()
|
|
4677
4736
|
}],
|
|
4678
4737
|
"mask-image-l-from-pos": [{
|
|
4679
4738
|
"mask-l-from": K()
|
|
@@ -4682,10 +4741,10 @@ const jn = (i, n) => {
|
|
|
4682
4741
|
"mask-l-to": K()
|
|
4683
4742
|
}],
|
|
4684
4743
|
"mask-image-l-from-color": [{
|
|
4685
|
-
"mask-l-from":
|
|
4744
|
+
"mask-l-from": R()
|
|
4686
4745
|
}],
|
|
4687
4746
|
"mask-image-l-to-color": [{
|
|
4688
|
-
"mask-l-to":
|
|
4747
|
+
"mask-l-to": R()
|
|
4689
4748
|
}],
|
|
4690
4749
|
"mask-image-x-from-pos": [{
|
|
4691
4750
|
"mask-x-from": K()
|
|
@@ -4694,10 +4753,10 @@ const jn = (i, n) => {
|
|
|
4694
4753
|
"mask-x-to": K()
|
|
4695
4754
|
}],
|
|
4696
4755
|
"mask-image-x-from-color": [{
|
|
4697
|
-
"mask-x-from":
|
|
4756
|
+
"mask-x-from": R()
|
|
4698
4757
|
}],
|
|
4699
4758
|
"mask-image-x-to-color": [{
|
|
4700
|
-
"mask-x-to":
|
|
4759
|
+
"mask-x-to": R()
|
|
4701
4760
|
}],
|
|
4702
4761
|
"mask-image-y-from-pos": [{
|
|
4703
4762
|
"mask-y-from": K()
|
|
@@ -4706,13 +4765,13 @@ const jn = (i, n) => {
|
|
|
4706
4765
|
"mask-y-to": K()
|
|
4707
4766
|
}],
|
|
4708
4767
|
"mask-image-y-from-color": [{
|
|
4709
|
-
"mask-y-from":
|
|
4768
|
+
"mask-y-from": R()
|
|
4710
4769
|
}],
|
|
4711
4770
|
"mask-image-y-to-color": [{
|
|
4712
|
-
"mask-y-to":
|
|
4771
|
+
"mask-y-to": R()
|
|
4713
4772
|
}],
|
|
4714
4773
|
"mask-image-radial": [{
|
|
4715
|
-
"mask-radial": [
|
|
4774
|
+
"mask-radial": [v, _]
|
|
4716
4775
|
}],
|
|
4717
4776
|
"mask-image-radial-from-pos": [{
|
|
4718
4777
|
"mask-radial-from": K()
|
|
@@ -4721,10 +4780,10 @@ const jn = (i, n) => {
|
|
|
4721
4780
|
"mask-radial-to": K()
|
|
4722
4781
|
}],
|
|
4723
4782
|
"mask-image-radial-from-color": [{
|
|
4724
|
-
"mask-radial-from":
|
|
4783
|
+
"mask-radial-from": R()
|
|
4725
4784
|
}],
|
|
4726
4785
|
"mask-image-radial-to-color": [{
|
|
4727
|
-
"mask-radial-to":
|
|
4786
|
+
"mask-radial-to": R()
|
|
4728
4787
|
}],
|
|
4729
4788
|
"mask-image-radial-shape": [{
|
|
4730
4789
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -4748,10 +4807,10 @@ const jn = (i, n) => {
|
|
|
4748
4807
|
"mask-conic-to": K()
|
|
4749
4808
|
}],
|
|
4750
4809
|
"mask-image-conic-from-color": [{
|
|
4751
|
-
"mask-conic-from":
|
|
4810
|
+
"mask-conic-from": R()
|
|
4752
4811
|
}],
|
|
4753
4812
|
"mask-image-conic-to-color": [{
|
|
4754
|
-
"mask-conic-to":
|
|
4813
|
+
"mask-conic-to": R()
|
|
4755
4814
|
}],
|
|
4756
4815
|
/**
|
|
4757
4816
|
* Mask Mode
|
|
@@ -4779,14 +4838,14 @@ const jn = (i, n) => {
|
|
|
4779
4838
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
4780
4839
|
*/
|
|
4781
4840
|
"mask-repeat": [{
|
|
4782
|
-
mask:
|
|
4841
|
+
mask: $e()
|
|
4783
4842
|
}],
|
|
4784
4843
|
/**
|
|
4785
4844
|
* Mask Size
|
|
4786
4845
|
* @see https://tailwindcss.com/docs/mask-size
|
|
4787
4846
|
*/
|
|
4788
4847
|
"mask-size": [{
|
|
4789
|
-
mask:
|
|
4848
|
+
mask: J()
|
|
4790
4849
|
}],
|
|
4791
4850
|
/**
|
|
4792
4851
|
* Mask Type
|
|
@@ -4800,7 +4859,7 @@ const jn = (i, n) => {
|
|
|
4800
4859
|
* @see https://tailwindcss.com/docs/mask-image
|
|
4801
4860
|
*/
|
|
4802
4861
|
"mask-image": [{
|
|
4803
|
-
mask: ["none",
|
|
4862
|
+
mask: ["none", v, _]
|
|
4804
4863
|
}],
|
|
4805
4864
|
// ---------------
|
|
4806
4865
|
// --- Filters ---
|
|
@@ -4814,8 +4873,8 @@ const jn = (i, n) => {
|
|
|
4814
4873
|
// Deprecated since Tailwind CSS v3.0.0
|
|
4815
4874
|
"",
|
|
4816
4875
|
"none",
|
|
4817
|
-
|
|
4818
|
-
|
|
4876
|
+
v,
|
|
4877
|
+
_
|
|
4819
4878
|
]
|
|
4820
4879
|
}],
|
|
4821
4880
|
/**
|
|
@@ -4830,14 +4889,14 @@ const jn = (i, n) => {
|
|
|
4830
4889
|
* @see https://tailwindcss.com/docs/brightness
|
|
4831
4890
|
*/
|
|
4832
4891
|
brightness: [{
|
|
4833
|
-
brightness: [B,
|
|
4892
|
+
brightness: [B, v, _]
|
|
4834
4893
|
}],
|
|
4835
4894
|
/**
|
|
4836
4895
|
* Contrast
|
|
4837
4896
|
* @see https://tailwindcss.com/docs/contrast
|
|
4838
4897
|
*/
|
|
4839
4898
|
contrast: [{
|
|
4840
|
-
contrast: [B,
|
|
4899
|
+
contrast: [B, v, _]
|
|
4841
4900
|
}],
|
|
4842
4901
|
/**
|
|
4843
4902
|
* Drop Shadow
|
|
@@ -4858,42 +4917,42 @@ const jn = (i, n) => {
|
|
|
4858
4917
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
4859
4918
|
*/
|
|
4860
4919
|
"drop-shadow-color": [{
|
|
4861
|
-
"drop-shadow":
|
|
4920
|
+
"drop-shadow": R()
|
|
4862
4921
|
}],
|
|
4863
4922
|
/**
|
|
4864
4923
|
* Grayscale
|
|
4865
4924
|
* @see https://tailwindcss.com/docs/grayscale
|
|
4866
4925
|
*/
|
|
4867
4926
|
grayscale: [{
|
|
4868
|
-
grayscale: ["", B,
|
|
4927
|
+
grayscale: ["", B, v, _]
|
|
4869
4928
|
}],
|
|
4870
4929
|
/**
|
|
4871
4930
|
* Hue Rotate
|
|
4872
4931
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
4873
4932
|
*/
|
|
4874
4933
|
"hue-rotate": [{
|
|
4875
|
-
"hue-rotate": [B,
|
|
4934
|
+
"hue-rotate": [B, v, _]
|
|
4876
4935
|
}],
|
|
4877
4936
|
/**
|
|
4878
4937
|
* Invert
|
|
4879
4938
|
* @see https://tailwindcss.com/docs/invert
|
|
4880
4939
|
*/
|
|
4881
4940
|
invert: [{
|
|
4882
|
-
invert: ["", B,
|
|
4941
|
+
invert: ["", B, v, _]
|
|
4883
4942
|
}],
|
|
4884
4943
|
/**
|
|
4885
4944
|
* Saturate
|
|
4886
4945
|
* @see https://tailwindcss.com/docs/saturate
|
|
4887
4946
|
*/
|
|
4888
4947
|
saturate: [{
|
|
4889
|
-
saturate: [B,
|
|
4948
|
+
saturate: [B, v, _]
|
|
4890
4949
|
}],
|
|
4891
4950
|
/**
|
|
4892
4951
|
* Sepia
|
|
4893
4952
|
* @see https://tailwindcss.com/docs/sepia
|
|
4894
4953
|
*/
|
|
4895
4954
|
sepia: [{
|
|
4896
|
-
sepia: ["", B,
|
|
4955
|
+
sepia: ["", B, v, _]
|
|
4897
4956
|
}],
|
|
4898
4957
|
/**
|
|
4899
4958
|
* Backdrop Filter
|
|
@@ -4904,8 +4963,8 @@ const jn = (i, n) => {
|
|
|
4904
4963
|
// Deprecated since Tailwind CSS v3.0.0
|
|
4905
4964
|
"",
|
|
4906
4965
|
"none",
|
|
4907
|
-
|
|
4908
|
-
|
|
4966
|
+
v,
|
|
4967
|
+
_
|
|
4909
4968
|
]
|
|
4910
4969
|
}],
|
|
4911
4970
|
/**
|
|
@@ -4920,56 +4979,56 @@ const jn = (i, n) => {
|
|
|
4920
4979
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
4921
4980
|
*/
|
|
4922
4981
|
"backdrop-brightness": [{
|
|
4923
|
-
"backdrop-brightness": [B,
|
|
4982
|
+
"backdrop-brightness": [B, v, _]
|
|
4924
4983
|
}],
|
|
4925
4984
|
/**
|
|
4926
4985
|
* Backdrop Contrast
|
|
4927
4986
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
4928
4987
|
*/
|
|
4929
4988
|
"backdrop-contrast": [{
|
|
4930
|
-
"backdrop-contrast": [B,
|
|
4989
|
+
"backdrop-contrast": [B, v, _]
|
|
4931
4990
|
}],
|
|
4932
4991
|
/**
|
|
4933
4992
|
* Backdrop Grayscale
|
|
4934
4993
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
4935
4994
|
*/
|
|
4936
4995
|
"backdrop-grayscale": [{
|
|
4937
|
-
"backdrop-grayscale": ["", B,
|
|
4996
|
+
"backdrop-grayscale": ["", B, v, _]
|
|
4938
4997
|
}],
|
|
4939
4998
|
/**
|
|
4940
4999
|
* Backdrop Hue Rotate
|
|
4941
5000
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
4942
5001
|
*/
|
|
4943
5002
|
"backdrop-hue-rotate": [{
|
|
4944
|
-
"backdrop-hue-rotate": [B,
|
|
5003
|
+
"backdrop-hue-rotate": [B, v, _]
|
|
4945
5004
|
}],
|
|
4946
5005
|
/**
|
|
4947
5006
|
* Backdrop Invert
|
|
4948
5007
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
4949
5008
|
*/
|
|
4950
5009
|
"backdrop-invert": [{
|
|
4951
|
-
"backdrop-invert": ["", B,
|
|
5010
|
+
"backdrop-invert": ["", B, v, _]
|
|
4952
5011
|
}],
|
|
4953
5012
|
/**
|
|
4954
5013
|
* Backdrop Opacity
|
|
4955
5014
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
4956
5015
|
*/
|
|
4957
5016
|
"backdrop-opacity": [{
|
|
4958
|
-
"backdrop-opacity": [B,
|
|
5017
|
+
"backdrop-opacity": [B, v, _]
|
|
4959
5018
|
}],
|
|
4960
5019
|
/**
|
|
4961
5020
|
* Backdrop Saturate
|
|
4962
5021
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
4963
5022
|
*/
|
|
4964
5023
|
"backdrop-saturate": [{
|
|
4965
|
-
"backdrop-saturate": [B,
|
|
5024
|
+
"backdrop-saturate": [B, v, _]
|
|
4966
5025
|
}],
|
|
4967
5026
|
/**
|
|
4968
5027
|
* Backdrop Sepia
|
|
4969
5028
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
4970
5029
|
*/
|
|
4971
5030
|
"backdrop-sepia": [{
|
|
4972
|
-
"backdrop-sepia": ["", B,
|
|
5031
|
+
"backdrop-sepia": ["", B, v, _]
|
|
4973
5032
|
}],
|
|
4974
5033
|
// --------------
|
|
4975
5034
|
// --- Tables ---
|
|
@@ -4986,21 +5045,21 @@ const jn = (i, n) => {
|
|
|
4986
5045
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
4987
5046
|
*/
|
|
4988
5047
|
"border-spacing": [{
|
|
4989
|
-
"border-spacing":
|
|
5048
|
+
"border-spacing": N()
|
|
4990
5049
|
}],
|
|
4991
5050
|
/**
|
|
4992
5051
|
* Border Spacing X
|
|
4993
5052
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
4994
5053
|
*/
|
|
4995
5054
|
"border-spacing-x": [{
|
|
4996
|
-
"border-spacing-x":
|
|
5055
|
+
"border-spacing-x": N()
|
|
4997
5056
|
}],
|
|
4998
5057
|
/**
|
|
4999
5058
|
* Border Spacing Y
|
|
5000
5059
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
5001
5060
|
*/
|
|
5002
5061
|
"border-spacing-y": [{
|
|
5003
|
-
"border-spacing-y":
|
|
5062
|
+
"border-spacing-y": N()
|
|
5004
5063
|
}],
|
|
5005
5064
|
/**
|
|
5006
5065
|
* Table Layout
|
|
@@ -5024,7 +5083,7 @@ const jn = (i, n) => {
|
|
|
5024
5083
|
* @see https://tailwindcss.com/docs/transition-property
|
|
5025
5084
|
*/
|
|
5026
5085
|
transition: [{
|
|
5027
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
5086
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", v, _]
|
|
5028
5087
|
}],
|
|
5029
5088
|
/**
|
|
5030
5089
|
* Transition Behavior
|
|
@@ -5038,28 +5097,28 @@ const jn = (i, n) => {
|
|
|
5038
5097
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
5039
5098
|
*/
|
|
5040
5099
|
duration: [{
|
|
5041
|
-
duration: [B, "initial",
|
|
5100
|
+
duration: [B, "initial", v, _]
|
|
5042
5101
|
}],
|
|
5043
5102
|
/**
|
|
5044
5103
|
* Transition Timing Function
|
|
5045
5104
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
5046
5105
|
*/
|
|
5047
5106
|
ease: [{
|
|
5048
|
-
ease: ["linear", "initial", k,
|
|
5107
|
+
ease: ["linear", "initial", k, v, _]
|
|
5049
5108
|
}],
|
|
5050
5109
|
/**
|
|
5051
5110
|
* Transition Delay
|
|
5052
5111
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
5053
5112
|
*/
|
|
5054
5113
|
delay: [{
|
|
5055
|
-
delay: [B,
|
|
5114
|
+
delay: [B, v, _]
|
|
5056
5115
|
}],
|
|
5057
5116
|
/**
|
|
5058
5117
|
* Animation
|
|
5059
5118
|
* @see https://tailwindcss.com/docs/animation
|
|
5060
5119
|
*/
|
|
5061
5120
|
animate: [{
|
|
5062
|
-
animate: ["none",
|
|
5121
|
+
animate: ["none", G, v, _]
|
|
5063
5122
|
}],
|
|
5064
5123
|
// ------------------
|
|
5065
5124
|
// --- Transforms ---
|
|
@@ -5076,42 +5135,42 @@ const jn = (i, n) => {
|
|
|
5076
5135
|
* @see https://tailwindcss.com/docs/perspective
|
|
5077
5136
|
*/
|
|
5078
5137
|
perspective: [{
|
|
5079
|
-
perspective: [
|
|
5138
|
+
perspective: [x, v, _]
|
|
5080
5139
|
}],
|
|
5081
5140
|
/**
|
|
5082
5141
|
* Perspective Origin
|
|
5083
5142
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
5084
5143
|
*/
|
|
5085
5144
|
"perspective-origin": [{
|
|
5086
|
-
"perspective-origin":
|
|
5145
|
+
"perspective-origin": P()
|
|
5087
5146
|
}],
|
|
5088
5147
|
/**
|
|
5089
5148
|
* Rotate
|
|
5090
5149
|
* @see https://tailwindcss.com/docs/rotate
|
|
5091
5150
|
*/
|
|
5092
5151
|
rotate: [{
|
|
5093
|
-
rotate:
|
|
5152
|
+
rotate: I()
|
|
5094
5153
|
}],
|
|
5095
5154
|
/**
|
|
5096
5155
|
* Rotate X
|
|
5097
5156
|
* @see https://tailwindcss.com/docs/rotate
|
|
5098
5157
|
*/
|
|
5099
5158
|
"rotate-x": [{
|
|
5100
|
-
"rotate-x":
|
|
5159
|
+
"rotate-x": I()
|
|
5101
5160
|
}],
|
|
5102
5161
|
/**
|
|
5103
5162
|
* Rotate Y
|
|
5104
5163
|
* @see https://tailwindcss.com/docs/rotate
|
|
5105
5164
|
*/
|
|
5106
5165
|
"rotate-y": [{
|
|
5107
|
-
"rotate-y":
|
|
5166
|
+
"rotate-y": I()
|
|
5108
5167
|
}],
|
|
5109
5168
|
/**
|
|
5110
5169
|
* Rotate Z
|
|
5111
5170
|
* @see https://tailwindcss.com/docs/rotate
|
|
5112
5171
|
*/
|
|
5113
5172
|
"rotate-z": [{
|
|
5114
|
-
"rotate-z":
|
|
5173
|
+
"rotate-z": I()
|
|
5115
5174
|
}],
|
|
5116
5175
|
/**
|
|
5117
5176
|
* Scale
|
|
@@ -5151,35 +5210,35 @@ const jn = (i, n) => {
|
|
|
5151
5210
|
* @see https://tailwindcss.com/docs/skew
|
|
5152
5211
|
*/
|
|
5153
5212
|
skew: [{
|
|
5154
|
-
skew:
|
|
5213
|
+
skew: L()
|
|
5155
5214
|
}],
|
|
5156
5215
|
/**
|
|
5157
5216
|
* Skew X
|
|
5158
5217
|
* @see https://tailwindcss.com/docs/skew
|
|
5159
5218
|
*/
|
|
5160
5219
|
"skew-x": [{
|
|
5161
|
-
"skew-x":
|
|
5220
|
+
"skew-x": L()
|
|
5162
5221
|
}],
|
|
5163
5222
|
/**
|
|
5164
5223
|
* Skew Y
|
|
5165
5224
|
* @see https://tailwindcss.com/docs/skew
|
|
5166
5225
|
*/
|
|
5167
5226
|
"skew-y": [{
|
|
5168
|
-
"skew-y":
|
|
5227
|
+
"skew-y": L()
|
|
5169
5228
|
}],
|
|
5170
5229
|
/**
|
|
5171
5230
|
* Transform
|
|
5172
5231
|
* @see https://tailwindcss.com/docs/transform
|
|
5173
5232
|
*/
|
|
5174
5233
|
transform: [{
|
|
5175
|
-
transform: [
|
|
5234
|
+
transform: [v, _, "", "none", "gpu", "cpu"]
|
|
5176
5235
|
}],
|
|
5177
5236
|
/**
|
|
5178
5237
|
* Transform Origin
|
|
5179
5238
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
5180
5239
|
*/
|
|
5181
5240
|
"transform-origin": [{
|
|
5182
|
-
origin:
|
|
5241
|
+
origin: P()
|
|
5183
5242
|
}],
|
|
5184
5243
|
/**
|
|
5185
5244
|
* Transform Style
|
|
@@ -5193,28 +5252,28 @@ const jn = (i, n) => {
|
|
|
5193
5252
|
* @see https://tailwindcss.com/docs/translate
|
|
5194
5253
|
*/
|
|
5195
5254
|
translate: [{
|
|
5196
|
-
translate:
|
|
5255
|
+
translate: A()
|
|
5197
5256
|
}],
|
|
5198
5257
|
/**
|
|
5199
5258
|
* Translate X
|
|
5200
5259
|
* @see https://tailwindcss.com/docs/translate
|
|
5201
5260
|
*/
|
|
5202
5261
|
"translate-x": [{
|
|
5203
|
-
"translate-x":
|
|
5262
|
+
"translate-x": A()
|
|
5204
5263
|
}],
|
|
5205
5264
|
/**
|
|
5206
5265
|
* Translate Y
|
|
5207
5266
|
* @see https://tailwindcss.com/docs/translate
|
|
5208
5267
|
*/
|
|
5209
5268
|
"translate-y": [{
|
|
5210
|
-
"translate-y":
|
|
5269
|
+
"translate-y": A()
|
|
5211
5270
|
}],
|
|
5212
5271
|
/**
|
|
5213
5272
|
* Translate Z
|
|
5214
5273
|
* @see https://tailwindcss.com/docs/translate
|
|
5215
5274
|
*/
|
|
5216
5275
|
"translate-z": [{
|
|
5217
|
-
"translate-z":
|
|
5276
|
+
"translate-z": A()
|
|
5218
5277
|
}],
|
|
5219
5278
|
/**
|
|
5220
5279
|
* Translate None
|
|
@@ -5229,7 +5288,7 @@ const jn = (i, n) => {
|
|
|
5229
5288
|
* @see https://tailwindcss.com/docs/accent-color
|
|
5230
5289
|
*/
|
|
5231
5290
|
accent: [{
|
|
5232
|
-
accent:
|
|
5291
|
+
accent: R()
|
|
5233
5292
|
}],
|
|
5234
5293
|
/**
|
|
5235
5294
|
* Appearance
|
|
@@ -5243,7 +5302,7 @@ const jn = (i, n) => {
|
|
|
5243
5302
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
5244
5303
|
*/
|
|
5245
5304
|
"caret-color": [{
|
|
5246
|
-
caret:
|
|
5305
|
+
caret: R()
|
|
5247
5306
|
}],
|
|
5248
5307
|
/**
|
|
5249
5308
|
* Color Scheme
|
|
@@ -5257,7 +5316,7 @@ const jn = (i, n) => {
|
|
|
5257
5316
|
* @see https://tailwindcss.com/docs/cursor
|
|
5258
5317
|
*/
|
|
5259
5318
|
cursor: [{
|
|
5260
|
-
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",
|
|
5319
|
+
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", v, _]
|
|
5261
5320
|
}],
|
|
5262
5321
|
/**
|
|
5263
5322
|
* Field Sizing
|
|
@@ -5292,126 +5351,126 @@ const jn = (i, n) => {
|
|
|
5292
5351
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5293
5352
|
*/
|
|
5294
5353
|
"scroll-m": [{
|
|
5295
|
-
"scroll-m":
|
|
5354
|
+
"scroll-m": N()
|
|
5296
5355
|
}],
|
|
5297
5356
|
/**
|
|
5298
5357
|
* Scroll Margin X
|
|
5299
5358
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5300
5359
|
*/
|
|
5301
5360
|
"scroll-mx": [{
|
|
5302
|
-
"scroll-mx":
|
|
5361
|
+
"scroll-mx": N()
|
|
5303
5362
|
}],
|
|
5304
5363
|
/**
|
|
5305
5364
|
* Scroll Margin Y
|
|
5306
5365
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5307
5366
|
*/
|
|
5308
5367
|
"scroll-my": [{
|
|
5309
|
-
"scroll-my":
|
|
5368
|
+
"scroll-my": N()
|
|
5310
5369
|
}],
|
|
5311
5370
|
/**
|
|
5312
5371
|
* Scroll Margin Start
|
|
5313
5372
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5314
5373
|
*/
|
|
5315
5374
|
"scroll-ms": [{
|
|
5316
|
-
"scroll-ms":
|
|
5375
|
+
"scroll-ms": N()
|
|
5317
5376
|
}],
|
|
5318
5377
|
/**
|
|
5319
5378
|
* Scroll Margin End
|
|
5320
5379
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5321
5380
|
*/
|
|
5322
5381
|
"scroll-me": [{
|
|
5323
|
-
"scroll-me":
|
|
5382
|
+
"scroll-me": N()
|
|
5324
5383
|
}],
|
|
5325
5384
|
/**
|
|
5326
5385
|
* Scroll Margin Top
|
|
5327
5386
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5328
5387
|
*/
|
|
5329
5388
|
"scroll-mt": [{
|
|
5330
|
-
"scroll-mt":
|
|
5389
|
+
"scroll-mt": N()
|
|
5331
5390
|
}],
|
|
5332
5391
|
/**
|
|
5333
5392
|
* Scroll Margin Right
|
|
5334
5393
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5335
5394
|
*/
|
|
5336
5395
|
"scroll-mr": [{
|
|
5337
|
-
"scroll-mr":
|
|
5396
|
+
"scroll-mr": N()
|
|
5338
5397
|
}],
|
|
5339
5398
|
/**
|
|
5340
5399
|
* Scroll Margin Bottom
|
|
5341
5400
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5342
5401
|
*/
|
|
5343
5402
|
"scroll-mb": [{
|
|
5344
|
-
"scroll-mb":
|
|
5403
|
+
"scroll-mb": N()
|
|
5345
5404
|
}],
|
|
5346
5405
|
/**
|
|
5347
5406
|
* Scroll Margin Left
|
|
5348
5407
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5349
5408
|
*/
|
|
5350
5409
|
"scroll-ml": [{
|
|
5351
|
-
"scroll-ml":
|
|
5410
|
+
"scroll-ml": N()
|
|
5352
5411
|
}],
|
|
5353
5412
|
/**
|
|
5354
5413
|
* Scroll Padding
|
|
5355
5414
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5356
5415
|
*/
|
|
5357
5416
|
"scroll-p": [{
|
|
5358
|
-
"scroll-p":
|
|
5417
|
+
"scroll-p": N()
|
|
5359
5418
|
}],
|
|
5360
5419
|
/**
|
|
5361
5420
|
* Scroll Padding X
|
|
5362
5421
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5363
5422
|
*/
|
|
5364
5423
|
"scroll-px": [{
|
|
5365
|
-
"scroll-px":
|
|
5424
|
+
"scroll-px": N()
|
|
5366
5425
|
}],
|
|
5367
5426
|
/**
|
|
5368
5427
|
* Scroll Padding Y
|
|
5369
5428
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5370
5429
|
*/
|
|
5371
5430
|
"scroll-py": [{
|
|
5372
|
-
"scroll-py":
|
|
5431
|
+
"scroll-py": N()
|
|
5373
5432
|
}],
|
|
5374
5433
|
/**
|
|
5375
5434
|
* Scroll Padding Start
|
|
5376
5435
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5377
5436
|
*/
|
|
5378
5437
|
"scroll-ps": [{
|
|
5379
|
-
"scroll-ps":
|
|
5438
|
+
"scroll-ps": N()
|
|
5380
5439
|
}],
|
|
5381
5440
|
/**
|
|
5382
5441
|
* Scroll Padding End
|
|
5383
5442
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5384
5443
|
*/
|
|
5385
5444
|
"scroll-pe": [{
|
|
5386
|
-
"scroll-pe":
|
|
5445
|
+
"scroll-pe": N()
|
|
5387
5446
|
}],
|
|
5388
5447
|
/**
|
|
5389
5448
|
* Scroll Padding Top
|
|
5390
5449
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5391
5450
|
*/
|
|
5392
5451
|
"scroll-pt": [{
|
|
5393
|
-
"scroll-pt":
|
|
5452
|
+
"scroll-pt": N()
|
|
5394
5453
|
}],
|
|
5395
5454
|
/**
|
|
5396
5455
|
* Scroll Padding Right
|
|
5397
5456
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5398
5457
|
*/
|
|
5399
5458
|
"scroll-pr": [{
|
|
5400
|
-
"scroll-pr":
|
|
5459
|
+
"scroll-pr": N()
|
|
5401
5460
|
}],
|
|
5402
5461
|
/**
|
|
5403
5462
|
* Scroll Padding Bottom
|
|
5404
5463
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5405
5464
|
*/
|
|
5406
5465
|
"scroll-pb": [{
|
|
5407
|
-
"scroll-pb":
|
|
5466
|
+
"scroll-pb": N()
|
|
5408
5467
|
}],
|
|
5409
5468
|
/**
|
|
5410
5469
|
* Scroll Padding Left
|
|
5411
5470
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5412
5471
|
*/
|
|
5413
5472
|
"scroll-pl": [{
|
|
5414
|
-
"scroll-pl":
|
|
5473
|
+
"scroll-pl": N()
|
|
5415
5474
|
}],
|
|
5416
5475
|
/**
|
|
5417
5476
|
* Scroll Snap Align
|
|
@@ -5479,7 +5538,7 @@ const jn = (i, n) => {
|
|
|
5479
5538
|
* @see https://tailwindcss.com/docs/will-change
|
|
5480
5539
|
*/
|
|
5481
5540
|
"will-change": [{
|
|
5482
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
5541
|
+
"will-change": ["auto", "scroll", "contents", "transform", v, _]
|
|
5483
5542
|
}],
|
|
5484
5543
|
// -----------
|
|
5485
5544
|
// --- SVG ---
|
|
@@ -5489,21 +5548,21 @@ const jn = (i, n) => {
|
|
|
5489
5548
|
* @see https://tailwindcss.com/docs/fill
|
|
5490
5549
|
*/
|
|
5491
5550
|
fill: [{
|
|
5492
|
-
fill: ["none", ...
|
|
5551
|
+
fill: ["none", ...R()]
|
|
5493
5552
|
}],
|
|
5494
5553
|
/**
|
|
5495
5554
|
* Stroke Width
|
|
5496
5555
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
5497
5556
|
*/
|
|
5498
5557
|
"stroke-w": [{
|
|
5499
|
-
stroke: [B,
|
|
5558
|
+
stroke: [B, qe, Le, ut]
|
|
5500
5559
|
}],
|
|
5501
5560
|
/**
|
|
5502
5561
|
* Stroke
|
|
5503
5562
|
* @see https://tailwindcss.com/docs/stroke
|
|
5504
5563
|
*/
|
|
5505
5564
|
stroke: [{
|
|
5506
|
-
stroke: ["none", ...
|
|
5565
|
+
stroke: ["none", ...R()]
|
|
5507
5566
|
}],
|
|
5508
5567
|
// ---------------------
|
|
5509
5568
|
// --- Accessibility ---
|
|
@@ -5571,11 +5630,11 @@ const jn = (i, n) => {
|
|
|
5571
5630
|
},
|
|
5572
5631
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
5573
5632
|
};
|
|
5574
|
-
},
|
|
5575
|
-
function
|
|
5576
|
-
return
|
|
5633
|
+
}, Fi = /* @__PURE__ */ yi(Pi);
|
|
5634
|
+
function D(...i) {
|
|
5635
|
+
return Fi(Xn(i));
|
|
5577
5636
|
}
|
|
5578
|
-
const Be =
|
|
5637
|
+
const Be = Ee.forwardRef(
|
|
5579
5638
|
({ className: i, variant: n = "default", size: r = "default", ...o }, d) => {
|
|
5580
5639
|
const h = "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", c = {
|
|
5581
5640
|
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -5593,7 +5652,7 @@ const Be = ye.forwardRef(
|
|
|
5593
5652
|
return /* @__PURE__ */ w(
|
|
5594
5653
|
"button",
|
|
5595
5654
|
{
|
|
5596
|
-
className:
|
|
5655
|
+
className: D(h, c[n], l[r], i),
|
|
5597
5656
|
ref: d,
|
|
5598
5657
|
...o
|
|
5599
5658
|
}
|
|
@@ -5605,7 +5664,7 @@ function Oe({ className: i, variant: n = "default", ...r }) {
|
|
|
5605
5664
|
return /* @__PURE__ */ w(
|
|
5606
5665
|
"div",
|
|
5607
5666
|
{
|
|
5608
|
-
className:
|
|
5667
|
+
className: D(
|
|
5609
5668
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
5610
5669
|
{
|
|
5611
5670
|
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
@@ -5620,12 +5679,12 @@ function Oe({ className: i, variant: n = "default", ...r }) {
|
|
|
5620
5679
|
}
|
|
5621
5680
|
);
|
|
5622
5681
|
}
|
|
5623
|
-
const Qt =
|
|
5682
|
+
const Qt = Ee.forwardRef(
|
|
5624
5683
|
({ className: i, type: n, ...r }, o) => /* @__PURE__ */ w(
|
|
5625
5684
|
"input",
|
|
5626
5685
|
{
|
|
5627
5686
|
type: n,
|
|
5628
|
-
className:
|
|
5687
|
+
className: D(
|
|
5629
5688
|
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
5630
5689
|
i
|
|
5631
5690
|
),
|
|
@@ -5635,11 +5694,11 @@ const Qt = ye.forwardRef(
|
|
|
5635
5694
|
)
|
|
5636
5695
|
);
|
|
5637
5696
|
Qt.displayName = "Input";
|
|
5638
|
-
const gt =
|
|
5697
|
+
const gt = Ee.forwardRef(({ className: i, ...n }, r) => /* @__PURE__ */ w(
|
|
5639
5698
|
"div",
|
|
5640
5699
|
{
|
|
5641
5700
|
ref: r,
|
|
5642
|
-
className:
|
|
5701
|
+
className: D(
|
|
5643
5702
|
"rounded-lg border bg-card text-card-foreground shadow-sm",
|
|
5644
5703
|
i
|
|
5645
5704
|
),
|
|
@@ -5647,48 +5706,48 @@ const gt = ye.forwardRef(({ className: i, ...n }, r) => /* @__PURE__ */ w(
|
|
|
5647
5706
|
}
|
|
5648
5707
|
));
|
|
5649
5708
|
gt.displayName = "Card";
|
|
5650
|
-
const
|
|
5709
|
+
const Gi = Ee.forwardRef(({ className: i, ...n }, r) => /* @__PURE__ */ w(
|
|
5651
5710
|
"div",
|
|
5652
5711
|
{
|
|
5653
5712
|
ref: r,
|
|
5654
|
-
className:
|
|
5713
|
+
className: D("flex flex-col space-y-1.5 p-6", i),
|
|
5655
5714
|
...n
|
|
5656
5715
|
}
|
|
5657
5716
|
));
|
|
5658
|
-
|
|
5659
|
-
const
|
|
5717
|
+
Gi.displayName = "CardHeader";
|
|
5718
|
+
const $i = Ee.forwardRef(({ className: i, ...n }, r) => /* @__PURE__ */ w(
|
|
5660
5719
|
"h3",
|
|
5661
5720
|
{
|
|
5662
5721
|
ref: r,
|
|
5663
|
-
className:
|
|
5722
|
+
className: D(
|
|
5664
5723
|
"text-2xl font-semibold leading-none tracking-tight",
|
|
5665
5724
|
i
|
|
5666
5725
|
),
|
|
5667
5726
|
...n
|
|
5668
5727
|
}
|
|
5669
5728
|
));
|
|
5670
|
-
|
|
5671
|
-
const
|
|
5729
|
+
$i.displayName = "CardTitle";
|
|
5730
|
+
const Vi = Ee.forwardRef(({ className: i, ...n }, r) => /* @__PURE__ */ w(
|
|
5672
5731
|
"p",
|
|
5673
5732
|
{
|
|
5674
5733
|
ref: r,
|
|
5675
|
-
className:
|
|
5734
|
+
className: D("text-sm text-muted-foreground", i),
|
|
5676
5735
|
...n
|
|
5677
5736
|
}
|
|
5678
5737
|
));
|
|
5679
|
-
|
|
5680
|
-
const
|
|
5681
|
-
|
|
5682
|
-
const
|
|
5738
|
+
Vi.displayName = "CardDescription";
|
|
5739
|
+
const ji = Ee.forwardRef(({ className: i, ...n }, r) => /* @__PURE__ */ w("div", { ref: r, className: D("p-6 pt-0", i), ...n }));
|
|
5740
|
+
ji.displayName = "CardContent";
|
|
5741
|
+
const zi = Ee.forwardRef(({ className: i, ...n }, r) => /* @__PURE__ */ w(
|
|
5683
5742
|
"div",
|
|
5684
5743
|
{
|
|
5685
5744
|
ref: r,
|
|
5686
|
-
className:
|
|
5745
|
+
className: D("flex items-center p-6 pt-0", i),
|
|
5687
5746
|
...n
|
|
5688
5747
|
}
|
|
5689
5748
|
));
|
|
5690
|
-
|
|
5691
|
-
const
|
|
5749
|
+
zi.displayName = "CardFooter";
|
|
5750
|
+
const Wi = ({ compact: i = !1 }) => {
|
|
5692
5751
|
const { sessionState: n, triggerSession: r, theme: o } = Ke(), d = {
|
|
5693
5752
|
text: o === "dark" ? "text-white" : "text-gray-900",
|
|
5694
5753
|
textMuted: o === "dark" ? "text-gray-400" : "text-gray-600",
|
|
@@ -5705,15 +5764,15 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
5705
5764
|
return "Invalid date";
|
|
5706
5765
|
}
|
|
5707
5766
|
};
|
|
5708
|
-
return i ? /* @__PURE__ */
|
|
5709
|
-
n.isSessionReady ? /* @__PURE__ */
|
|
5767
|
+
return i ? /* @__PURE__ */ M("div", { className: "flex items-center gap-2", children: [
|
|
5768
|
+
n.isSessionReady ? /* @__PURE__ */ M(Oe, { variant: "success", className: "text-xs", children: [
|
|
5710
5769
|
/* @__PURE__ */ w(yt, { className: "h-3 w-3 mr-1" }),
|
|
5711
5770
|
"Session Active"
|
|
5712
|
-
] }) : n.lastError ? /* @__PURE__ */
|
|
5771
|
+
] }) : n.lastError ? /* @__PURE__ */ M(Oe, { variant: "destructive", className: "text-xs", children: [
|
|
5713
5772
|
/* @__PURE__ */ w(at, { className: "h-3 w-3 mr-1" }),
|
|
5714
5773
|
"Error"
|
|
5715
5774
|
] }) : /* @__PURE__ */ w(Oe, { variant: "secondary", className: "text-xs", children: "No Session" }),
|
|
5716
|
-
!n.isSessionReady && /* @__PURE__ */
|
|
5775
|
+
!n.isSessionReady && /* @__PURE__ */ M(
|
|
5717
5776
|
Be,
|
|
5718
5777
|
{
|
|
5719
5778
|
variant: "outline",
|
|
@@ -5726,38 +5785,38 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
5726
5785
|
]
|
|
5727
5786
|
}
|
|
5728
5787
|
)
|
|
5729
|
-
] }) : /* @__PURE__ */ w(gt, { className:
|
|
5730
|
-
/* @__PURE__ */
|
|
5731
|
-
/* @__PURE__ */ w("h3", { className:
|
|
5732
|
-
n.isSessionReady ? /* @__PURE__ */
|
|
5788
|
+
] }) : /* @__PURE__ */ w(gt, { className: D("p-4", d.cardBg, d.border), children: /* @__PURE__ */ M("div", { className: "space-y-3", children: [
|
|
5789
|
+
/* @__PURE__ */ M("div", { className: "flex items-center justify-between", children: [
|
|
5790
|
+
/* @__PURE__ */ w("h3", { className: D("text-sm font-semibold", d.text), children: "Session Status" }),
|
|
5791
|
+
n.isSessionReady ? /* @__PURE__ */ M(Oe, { variant: "success", className: "text-xs", children: [
|
|
5733
5792
|
/* @__PURE__ */ w(yt, { className: "h-3 w-3 mr-1" }),
|
|
5734
5793
|
"Active"
|
|
5735
|
-
] }) : n.lastError ? /* @__PURE__ */
|
|
5794
|
+
] }) : n.lastError ? /* @__PURE__ */ M(Oe, { variant: "destructive", className: "text-xs", children: [
|
|
5736
5795
|
/* @__PURE__ */ w(at, { className: "h-3 w-3 mr-1" }),
|
|
5737
5796
|
"Error"
|
|
5738
5797
|
] }) : /* @__PURE__ */ w(Oe, { variant: "secondary", className: "text-xs", children: "Not Started" })
|
|
5739
5798
|
] }),
|
|
5740
|
-
/* @__PURE__ */
|
|
5741
|
-
n.session_id && /* @__PURE__ */
|
|
5742
|
-
/* @__PURE__ */ w("span", { className:
|
|
5743
|
-
/* @__PURE__ */ w("span", { className:
|
|
5799
|
+
/* @__PURE__ */ M("div", { className: "space-y-2", children: [
|
|
5800
|
+
n.session_id && /* @__PURE__ */ M("div", { className: "flex items-start gap-2", children: [
|
|
5801
|
+
/* @__PURE__ */ w("span", { className: D("text-xs font-medium min-w-[70px]", d.textMuted), children: "Session ID:" }),
|
|
5802
|
+
/* @__PURE__ */ w("span", { className: D("text-xs font-mono break-all", d.text), children: n.session_id })
|
|
5744
5803
|
] }),
|
|
5745
|
-
n.expires_at && /* @__PURE__ */
|
|
5746
|
-
/* @__PURE__ */ w(an, { className:
|
|
5747
|
-
/* @__PURE__ */
|
|
5804
|
+
n.expires_at && /* @__PURE__ */ M("div", { className: "flex items-center gap-2", children: [
|
|
5805
|
+
/* @__PURE__ */ w(an, { className: D("h-3 w-3", d.textMuted) }),
|
|
5806
|
+
/* @__PURE__ */ M("span", { className: D("text-xs", d.textMuted), children: [
|
|
5748
5807
|
"Expires in: ",
|
|
5749
5808
|
h(n.expires_at)
|
|
5750
5809
|
] })
|
|
5751
5810
|
] }),
|
|
5752
|
-
n.lastError && /* @__PURE__ */
|
|
5811
|
+
n.lastError && /* @__PURE__ */ M("div", { className: "flex items-start gap-2 p-2 bg-red-50 dark:bg-red-900/20 rounded-md border border-red-200 dark:border-red-800", children: [
|
|
5753
5812
|
/* @__PURE__ */ w(at, { className: "h-4 w-4 text-red-600 dark:text-red-400 mt-0.5 shrink-0" }),
|
|
5754
|
-
/* @__PURE__ */
|
|
5813
|
+
/* @__PURE__ */ M("div", { className: "flex-1 min-w-0", children: [
|
|
5755
5814
|
/* @__PURE__ */ w("p", { className: "text-xs font-medium text-red-800 dark:text-red-200 mb-1", children: "Error" }),
|
|
5756
5815
|
/* @__PURE__ */ w("p", { className: "text-xs text-red-700 dark:text-red-300 break-words", children: n.lastError })
|
|
5757
5816
|
] })
|
|
5758
5817
|
] })
|
|
5759
5818
|
] }),
|
|
5760
|
-
!n.isSessionReady && /* @__PURE__ */
|
|
5819
|
+
!n.isSessionReady && /* @__PURE__ */ M(
|
|
5761
5820
|
Be,
|
|
5762
5821
|
{
|
|
5763
5822
|
variant: "outline",
|
|
@@ -5771,7 +5830,7 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
5771
5830
|
}
|
|
5772
5831
|
)
|
|
5773
5832
|
] }) });
|
|
5774
|
-
},
|
|
5833
|
+
}, Hi = () => {
|
|
5775
5834
|
const { chatMessages: i, sendMessage: n, isConnected: r } = Ke(), [o, d] = ue(""), [h, c] = ue(!1), l = Pe(null), m = () => {
|
|
5776
5835
|
l.current?.scrollIntoView({ behavior: "smooth" });
|
|
5777
5836
|
};
|
|
@@ -5795,24 +5854,24 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
5795
5854
|
hour: "2-digit",
|
|
5796
5855
|
minute: "2-digit"
|
|
5797
5856
|
});
|
|
5798
|
-
return /* @__PURE__ */
|
|
5799
|
-
/* @__PURE__ */
|
|
5857
|
+
return /* @__PURE__ */ M("div", { className: "flex flex-col h-full bg-white", children: [
|
|
5858
|
+
/* @__PURE__ */ M("div", { className: "px-4 py-3.5 border-b bg-gray-50", children: [
|
|
5800
5859
|
/* @__PURE__ */ w("h3", { className: "font-semibold text-sm text-gray-900", children: "Chat History" }),
|
|
5801
|
-
/* @__PURE__ */
|
|
5860
|
+
/* @__PURE__ */ M("p", { className: "text-xs text-gray-500 mt-0.5", children: [
|
|
5802
5861
|
i.length,
|
|
5803
5862
|
" ",
|
|
5804
5863
|
i.length === 1 ? "message" : "messages"
|
|
5805
5864
|
] })
|
|
5806
5865
|
] }),
|
|
5807
|
-
/* @__PURE__ */ w("div", { className: "px-4 pt-4", children: /* @__PURE__ */ w(
|
|
5808
|
-
/* @__PURE__ */
|
|
5809
|
-
i.length === 0 ? /* @__PURE__ */
|
|
5866
|
+
/* @__PURE__ */ w("div", { className: "px-4 pt-4", children: /* @__PURE__ */ w(Wi, { compact: !0 }) }),
|
|
5867
|
+
/* @__PURE__ */ M("div", { className: "flex-1 overflow-y-auto p-4 space-y-4 bg-white", children: [
|
|
5868
|
+
i.length === 0 ? /* @__PURE__ */ M("div", { className: "flex flex-col items-center justify-center h-full text-center px-4", children: [
|
|
5810
5869
|
/* @__PURE__ */ w("div", { className: "rounded-full bg-gray-100 p-4 mb-3", children: /* @__PURE__ */ w(Mt, { className: "h-8 w-8 text-gray-400" }) }),
|
|
5811
5870
|
/* @__PURE__ */ w("p", { className: "text-sm text-gray-500 leading-relaxed", children: "No messages yet. Start a conversation with your AI assistant." })
|
|
5812
|
-
] }) : i.map((C, b) => /* @__PURE__ */
|
|
5871
|
+
] }) : i.map((C, b) => /* @__PURE__ */ M(
|
|
5813
5872
|
"div",
|
|
5814
5873
|
{
|
|
5815
|
-
className:
|
|
5874
|
+
className: D(
|
|
5816
5875
|
"flex gap-3",
|
|
5817
5876
|
C.role === "user" ? "flex-row-reverse" : "flex-row"
|
|
5818
5877
|
),
|
|
@@ -5820,17 +5879,17 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
5820
5879
|
/* @__PURE__ */ w(
|
|
5821
5880
|
"div",
|
|
5822
5881
|
{
|
|
5823
|
-
className:
|
|
5882
|
+
className: D(
|
|
5824
5883
|
"flex-shrink-0 w-8 h-8 rounded-full flex items-center justify-center",
|
|
5825
5884
|
C.role === "user" ? "bg-blue-500 text-white" : "bg-gray-200 text-gray-700"
|
|
5826
5885
|
),
|
|
5827
5886
|
children: C.role === "user" ? /* @__PURE__ */ w(ln, { className: "h-4 w-4" }) : /* @__PURE__ */ w(cn, { className: "h-4 w-4" })
|
|
5828
5887
|
}
|
|
5829
5888
|
),
|
|
5830
|
-
/* @__PURE__ */
|
|
5889
|
+
/* @__PURE__ */ M(
|
|
5831
5890
|
"div",
|
|
5832
5891
|
{
|
|
5833
|
-
className:
|
|
5892
|
+
className: D(
|
|
5834
5893
|
"flex flex-col max-w-[75%]",
|
|
5835
5894
|
C.role === "user" ? "items-end" : "items-start"
|
|
5836
5895
|
),
|
|
@@ -5838,7 +5897,7 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
5838
5897
|
/* @__PURE__ */ w(
|
|
5839
5898
|
gt,
|
|
5840
5899
|
{
|
|
5841
|
-
className:
|
|
5900
|
+
className: D(
|
|
5842
5901
|
"px-3.5 py-2.5 shadow-sm border",
|
|
5843
5902
|
C.role === "user" ? "bg-blue-500 text-white border-blue-500" : "bg-gray-50 text-gray-900 border-gray-200"
|
|
5844
5903
|
),
|
|
@@ -5855,8 +5914,8 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
5855
5914
|
)),
|
|
5856
5915
|
/* @__PURE__ */ w("div", { ref: l })
|
|
5857
5916
|
] }),
|
|
5858
|
-
/* @__PURE__ */
|
|
5859
|
-
/* @__PURE__ */
|
|
5917
|
+
/* @__PURE__ */ M("div", { className: "p-4 border-t bg-white", children: [
|
|
5918
|
+
/* @__PURE__ */ M("div", { className: "flex gap-2", children: [
|
|
5860
5919
|
/* @__PURE__ */ w(
|
|
5861
5920
|
Qt,
|
|
5862
5921
|
{
|
|
@@ -5882,7 +5941,7 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
5882
5941
|
/* @__PURE__ */ w("p", { className: "text-xs text-gray-400 mt-2", children: "Press Enter to send" })
|
|
5883
5942
|
] })
|
|
5884
5943
|
] });
|
|
5885
|
-
},
|
|
5944
|
+
}, Ji = ({ onClose: i }) => {
|
|
5886
5945
|
const {
|
|
5887
5946
|
isConnected: n,
|
|
5888
5947
|
isLoading: r,
|
|
@@ -5895,11 +5954,10 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
5895
5954
|
displayMode: y,
|
|
5896
5955
|
triggerMode: g,
|
|
5897
5956
|
theme: u,
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
} = Ke(), I = Pe(null);
|
|
5957
|
+
sessionState: C
|
|
5958
|
+
} = Ke(), b = Pe(null);
|
|
5901
5959
|
tt(() => {
|
|
5902
|
-
|
|
5960
|
+
b.current && (b.current.id = "aria-video-element");
|
|
5903
5961
|
}, []);
|
|
5904
5962
|
const S = {
|
|
5905
5963
|
bg: u === "dark" ? "bg-gray-900" : "bg-white",
|
|
@@ -5910,17 +5968,17 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
5910
5968
|
assistantBg: u === "dark" ? "bg-black" : "bg-gray-100",
|
|
5911
5969
|
overlayBg: u === "dark" ? "bg-gray-900/95" : "bg-gray-900/90",
|
|
5912
5970
|
buttonHover: u === "dark" ? "hover:bg-gray-700" : "hover:bg-gray-100"
|
|
5913
|
-
},
|
|
5914
|
-
return /* @__PURE__ */
|
|
5971
|
+
}, x = y === "bottom-right", O = y === "center";
|
|
5972
|
+
return /* @__PURE__ */ M(
|
|
5915
5973
|
"div",
|
|
5916
5974
|
{
|
|
5917
|
-
className:
|
|
5975
|
+
className: D(
|
|
5918
5976
|
"flex flex-col shadow-2xl overflow-hidden",
|
|
5919
5977
|
S.bg,
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5978
|
+
x && "fixed bottom-6 right-6 rounded-xl",
|
|
5979
|
+
x && (o ? "w-[984px]" : "w-[720px]"),
|
|
5980
|
+
x && "h-[560px]",
|
|
5981
|
+
O && "fixed inset-8 rounded-2xl",
|
|
5924
5982
|
S.border,
|
|
5925
5983
|
"border"
|
|
5926
5984
|
),
|
|
@@ -5928,10 +5986,10 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
5928
5986
|
zIndex: 9999
|
|
5929
5987
|
},
|
|
5930
5988
|
children: [
|
|
5931
|
-
/* @__PURE__ */
|
|
5932
|
-
/* @__PURE__ */ w("div", { className: "flex items-center gap-3 min-w-0 flex-1", children: /* @__PURE__ */
|
|
5933
|
-
/* @__PURE__ */ w("h2", { className:
|
|
5934
|
-
/* @__PURE__ */
|
|
5989
|
+
/* @__PURE__ */ M("div", { className: D("px-4 py-3 flex items-center justify-between shrink-0", S.headerBg, S.border, "border-b"), children: [
|
|
5990
|
+
/* @__PURE__ */ w("div", { className: "flex items-center gap-3 min-w-0 flex-1", children: /* @__PURE__ */ M("div", { className: "flex flex-col min-w-0", children: [
|
|
5991
|
+
/* @__PURE__ */ w("h2", { className: D("text-sm font-semibold truncate", S.text), children: "AI Assistant" }),
|
|
5992
|
+
/* @__PURE__ */ M("div", { className: "flex items-center gap-2", children: [
|
|
5935
5993
|
/* @__PURE__ */ w(
|
|
5936
5994
|
Oe,
|
|
5937
5995
|
{
|
|
@@ -5940,7 +5998,7 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
5940
5998
|
children: n ? "● Connected" : r ? "Connecting..." : "Disconnected"
|
|
5941
5999
|
}
|
|
5942
6000
|
),
|
|
5943
|
-
|
|
6001
|
+
C.isSessionReady && /* @__PURE__ */ w(
|
|
5944
6002
|
Oe,
|
|
5945
6003
|
{
|
|
5946
6004
|
variant: "default",
|
|
@@ -5948,10 +6006,10 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
5948
6006
|
children: "Session Active"
|
|
5949
6007
|
}
|
|
5950
6008
|
),
|
|
5951
|
-
g === "websocket" && /* @__PURE__ */ w("span", { className:
|
|
6009
|
+
g === "websocket" && /* @__PURE__ */ w("span", { className: D("text-[10px]", S.textMuted), children: "Ready to help" })
|
|
5952
6010
|
] })
|
|
5953
6011
|
] }) }),
|
|
5954
|
-
/* @__PURE__ */
|
|
6012
|
+
/* @__PURE__ */ M("div", { className: "flex items-center gap-1 shrink-0 ml-4", children: [
|
|
5955
6013
|
/* @__PURE__ */ w(
|
|
5956
6014
|
Be,
|
|
5957
6015
|
{
|
|
@@ -5959,7 +6017,7 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
5959
6017
|
size: "icon",
|
|
5960
6018
|
onClick: l,
|
|
5961
6019
|
title: o ? "Hide Chat" : "Show Chat",
|
|
5962
|
-
className:
|
|
6020
|
+
className: D("h-8 w-8", S.textMuted, S.buttonHover),
|
|
5963
6021
|
children: o ? /* @__PURE__ */ w(un, { className: "h-4 w-4" }) : /* @__PURE__ */ w(Mt, { className: "h-4 w-4" })
|
|
5964
6022
|
}
|
|
5965
6023
|
),
|
|
@@ -5971,7 +6029,7 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
5971
6029
|
onClick: m,
|
|
5972
6030
|
disabled: !n,
|
|
5973
6031
|
title: d ? "Unmute" : "Mute",
|
|
5974
|
-
className:
|
|
6032
|
+
className: D("h-8 w-8", S.textMuted, S.buttonHover, "disabled:opacity-40"),
|
|
5975
6033
|
children: d ? /* @__PURE__ */ w(wt, { className: "h-4 w-4" }) : /* @__PURE__ */ w(St, { className: "h-4 w-4" })
|
|
5976
6034
|
}
|
|
5977
6035
|
),
|
|
@@ -5982,23 +6040,23 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
5982
6040
|
size: "icon",
|
|
5983
6041
|
onClick: i,
|
|
5984
6042
|
title: "Close",
|
|
5985
|
-
className:
|
|
6043
|
+
className: D("h-8 w-8", S.textMuted, S.buttonHover),
|
|
5986
6044
|
children: /* @__PURE__ */ w(et, { className: "h-4 w-4" })
|
|
5987
6045
|
}
|
|
5988
6046
|
)
|
|
5989
6047
|
] })
|
|
5990
6048
|
] }),
|
|
5991
|
-
/* @__PURE__ */
|
|
5992
|
-
/* @__PURE__ */
|
|
6049
|
+
/* @__PURE__ */ M("div", { className: "flex-1 flex overflow-hidden min-h-0", children: [
|
|
6050
|
+
/* @__PURE__ */ M("div", { className: D(
|
|
5993
6051
|
"relative flex items-center justify-center overflow-hidden",
|
|
5994
6052
|
S.assistantBg,
|
|
5995
6053
|
o ? "flex-1" : "w-full"
|
|
5996
6054
|
), children: [
|
|
5997
|
-
r && /* @__PURE__ */
|
|
6055
|
+
r && /* @__PURE__ */ M("div", { className: D("absolute inset-0 flex flex-col items-center justify-center z-10", S.assistantBg), children: [
|
|
5998
6056
|
/* @__PURE__ */ w(hn, { className: "h-12 w-12 animate-spin text-blue-500 mb-4" }),
|
|
5999
|
-
/* @__PURE__ */ w("p", { className:
|
|
6057
|
+
/* @__PURE__ */ w("p", { className: D("text-sm font-medium", S.text), children: "Connecting to your assistant..." })
|
|
6000
6058
|
] }),
|
|
6001
|
-
c && /* @__PURE__ */ w("div", { className:
|
|
6059
|
+
c && /* @__PURE__ */ w("div", { className: D("absolute inset-0 flex flex-col items-center justify-center z-10", S.assistantBg, "p-6"), children: /* @__PURE__ */ w("div", { className: "bg-red-600 rounded-2xl p-6 max-w-sm shadow-2xl", children: /* @__PURE__ */ M("div", { className: "text-center", children: [
|
|
6002
6060
|
/* @__PURE__ */ w("div", { className: "w-10 h-10 bg-red-500 rounded-full flex items-center justify-center mx-auto mb-3", children: /* @__PURE__ */ w(et, { className: "w-5 h-5 text-white" }) }),
|
|
6003
6061
|
/* @__PURE__ */ w("p", { className: "text-white text-base font-semibold mb-2", children: "Connection Error" }),
|
|
6004
6062
|
/* @__PURE__ */ w("p", { className: "text-white/90 text-xs leading-relaxed", children: c })
|
|
@@ -6006,29 +6064,29 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
6006
6064
|
/* @__PURE__ */ w(
|
|
6007
6065
|
"video",
|
|
6008
6066
|
{
|
|
6009
|
-
ref:
|
|
6067
|
+
ref: b,
|
|
6010
6068
|
autoPlay: !0,
|
|
6011
6069
|
playsInline: !0,
|
|
6012
|
-
className:
|
|
6070
|
+
className: D(
|
|
6013
6071
|
"w-full h-full object-contain",
|
|
6014
6072
|
S.assistantBg
|
|
6015
6073
|
)
|
|
6016
6074
|
}
|
|
6017
6075
|
),
|
|
6018
|
-
h && n && /* @__PURE__ */
|
|
6076
|
+
h && n && /* @__PURE__ */ M("div", { className: D(
|
|
6019
6077
|
"absolute bottom-4 left-4 right-4 rounded-xl p-3 border shadow-2xl backdrop-blur-sm",
|
|
6020
6078
|
S.overlayBg,
|
|
6021
6079
|
S.border
|
|
6022
6080
|
), children: [
|
|
6023
|
-
/* @__PURE__ */ w("p", { className:
|
|
6081
|
+
/* @__PURE__ */ w("p", { className: D("text-[9px] mb-1 font-semibold uppercase tracking-wider", S.textMuted), children: "Live Transcript" }),
|
|
6024
6082
|
/* @__PURE__ */ w("p", { className: "text-white text-xs leading-relaxed", children: h })
|
|
6025
6083
|
] }),
|
|
6026
|
-
n && !c && /* @__PURE__ */
|
|
6084
|
+
n && !c && /* @__PURE__ */ M("div", { className: "absolute bottom-6 left-1/2 transform -translate-x-1/2 flex items-center gap-3 z-20", children: [
|
|
6027
6085
|
/* @__PURE__ */ w(
|
|
6028
6086
|
"button",
|
|
6029
6087
|
{
|
|
6030
6088
|
onClick: m,
|
|
6031
|
-
className:
|
|
6089
|
+
className: D(
|
|
6032
6090
|
"w-12 h-12 rounded-full flex items-center justify-center transition-all shadow-lg",
|
|
6033
6091
|
d ? "bg-red-500 hover:bg-red-600" : "bg-white/20 hover:bg-white/30 backdrop-blur-md"
|
|
6034
6092
|
),
|
|
@@ -6047,20 +6105,20 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
6047
6105
|
)
|
|
6048
6106
|
] })
|
|
6049
6107
|
] }),
|
|
6050
|
-
o && /* @__PURE__ */ w("div", { className:
|
|
6108
|
+
o && /* @__PURE__ */ w("div", { className: D(
|
|
6051
6109
|
"flex flex-col shrink-0",
|
|
6052
|
-
|
|
6110
|
+
x ? "w-64" : "w-80",
|
|
6053
6111
|
S.bg,
|
|
6054
6112
|
S.border,
|
|
6055
6113
|
"border-l"
|
|
6056
|
-
), children: /* @__PURE__ */ w(
|
|
6114
|
+
), children: /* @__PURE__ */ w(Hi, {}) })
|
|
6057
6115
|
] })
|
|
6058
6116
|
]
|
|
6059
6117
|
}
|
|
6060
6118
|
);
|
|
6061
|
-
},
|
|
6119
|
+
}, rr = () => {
|
|
6062
6120
|
const { isOpen: i, closeAssistant: n } = Ke();
|
|
6063
|
-
return i ? /* @__PURE__ */
|
|
6121
|
+
return i ? /* @__PURE__ */ M(Ot, { children: [
|
|
6064
6122
|
/* @__PURE__ */ w(
|
|
6065
6123
|
"div",
|
|
6066
6124
|
{
|
|
@@ -6069,9 +6127,9 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
6069
6127
|
style: { display: i ? "block" : "none" }
|
|
6070
6128
|
}
|
|
6071
6129
|
),
|
|
6072
|
-
/* @__PURE__ */ w(
|
|
6130
|
+
/* @__PURE__ */ w(Ji, { onClose: n })
|
|
6073
6131
|
] }) : null;
|
|
6074
|
-
},
|
|
6132
|
+
}, sr = ({
|
|
6075
6133
|
label: i,
|
|
6076
6134
|
showIcon: n = !0,
|
|
6077
6135
|
showAvatar: r = !1,
|
|
@@ -6080,14 +6138,14 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
6080
6138
|
className: h,
|
|
6081
6139
|
...c
|
|
6082
6140
|
}) => {
|
|
6083
|
-
const { openAssistant: l, config: m, displayMode: y, isOpen: g } = Ke(), u = i || m.triggerLabel ||
|
|
6084
|
-
return y === "bottom-right" ? g ? null : /* @__PURE__ */
|
|
6141
|
+
const { openAssistant: l, config: m, displayMode: y, isOpen: g } = Ke(), u = i || m.triggerLabel || "Open AI";
|
|
6142
|
+
return y === "bottom-right" ? g ? null : /* @__PURE__ */ M(
|
|
6085
6143
|
"button",
|
|
6086
6144
|
{
|
|
6087
6145
|
onClick: (C) => {
|
|
6088
6146
|
C.preventDefault(), l("user");
|
|
6089
6147
|
},
|
|
6090
|
-
className:
|
|
6148
|
+
className: D(
|
|
6091
6149
|
"fixed bottom-6 right-6 shadow-xl hover:shadow-2xl transition-all z-50",
|
|
6092
6150
|
"flex items-center gap-3 p-3 rounded-xl",
|
|
6093
6151
|
"bg-white hover:bg-gray-50 border-2 border-gray-200 hover:border-blue-400",
|
|
@@ -6104,13 +6162,13 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
6104
6162
|
className: "w-full h-full object-cover"
|
|
6105
6163
|
}
|
|
6106
6164
|
) }),
|
|
6107
|
-
/* @__PURE__ */
|
|
6165
|
+
/* @__PURE__ */ M("div", { className: "flex flex-col items-start leading-tight", children: [
|
|
6108
6166
|
/* @__PURE__ */ w("span", { className: "font-bold text-base text-gray-900", children: u }),
|
|
6109
6167
|
/* @__PURE__ */ w("span", { className: "text-[11px] text-gray-600 font-medium", children: "AI CSM" })
|
|
6110
6168
|
] })
|
|
6111
6169
|
]
|
|
6112
6170
|
}
|
|
6113
|
-
) : /* @__PURE__ */
|
|
6171
|
+
) : /* @__PURE__ */ M(
|
|
6114
6172
|
Be,
|
|
6115
6173
|
{
|
|
6116
6174
|
onClick: () => l("user"),
|
|
@@ -6124,7 +6182,7 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
6124
6182
|
]
|
|
6125
6183
|
}
|
|
6126
6184
|
);
|
|
6127
|
-
},
|
|
6185
|
+
}, or = ({ open: i, onOpenChange: n, children: r }) => /* @__PURE__ */ w(Ot, { children: i && /* @__PURE__ */ M("div", { className: "fixed inset-0 z-50 flex items-center justify-center", children: [
|
|
6128
6186
|
/* @__PURE__ */ w(
|
|
6129
6187
|
"div",
|
|
6130
6188
|
{
|
|
@@ -6133,12 +6191,12 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
6133
6191
|
}
|
|
6134
6192
|
),
|
|
6135
6193
|
r
|
|
6136
|
-
] }) }),
|
|
6194
|
+
] }) }), qi = Ee.forwardRef(
|
|
6137
6195
|
({ className: i, children: n, ...r }, o) => /* @__PURE__ */ w(
|
|
6138
6196
|
"div",
|
|
6139
6197
|
{
|
|
6140
6198
|
ref: o,
|
|
6141
|
-
className:
|
|
6199
|
+
className: D(
|
|
6142
6200
|
"fixed z-50 bg-background shadow-lg rounded-lg border",
|
|
6143
6201
|
i
|
|
6144
6202
|
),
|
|
@@ -6147,41 +6205,41 @@ const Li = ({ compact: i = !1 }) => {
|
|
|
6147
6205
|
}
|
|
6148
6206
|
)
|
|
6149
6207
|
);
|
|
6150
|
-
|
|
6151
|
-
const
|
|
6208
|
+
qi.displayName = "DialogContent";
|
|
6209
|
+
const Ki = ({
|
|
6152
6210
|
className: i,
|
|
6153
6211
|
...n
|
|
6154
6212
|
}) => /* @__PURE__ */ w(
|
|
6155
6213
|
"div",
|
|
6156
6214
|
{
|
|
6157
|
-
className:
|
|
6215
|
+
className: D(
|
|
6158
6216
|
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
6159
6217
|
i
|
|
6160
6218
|
),
|
|
6161
6219
|
...n
|
|
6162
6220
|
}
|
|
6163
6221
|
);
|
|
6164
|
-
|
|
6165
|
-
const
|
|
6222
|
+
Ki.displayName = "DialogHeader";
|
|
6223
|
+
const Yi = Ee.forwardRef(({ className: i, ...n }, r) => /* @__PURE__ */ w(
|
|
6166
6224
|
"h2",
|
|
6167
6225
|
{
|
|
6168
6226
|
ref: r,
|
|
6169
|
-
className:
|
|
6227
|
+
className: D(
|
|
6170
6228
|
"text-lg font-semibold leading-none tracking-tight",
|
|
6171
6229
|
i
|
|
6172
6230
|
),
|
|
6173
6231
|
...n
|
|
6174
6232
|
}
|
|
6175
6233
|
));
|
|
6176
|
-
|
|
6177
|
-
const
|
|
6234
|
+
Yi.displayName = "DialogTitle";
|
|
6235
|
+
const Xi = ({
|
|
6178
6236
|
className: i,
|
|
6179
6237
|
onClick: n,
|
|
6180
6238
|
...r
|
|
6181
|
-
}) => /* @__PURE__ */
|
|
6239
|
+
}) => /* @__PURE__ */ M(
|
|
6182
6240
|
"button",
|
|
6183
6241
|
{
|
|
6184
|
-
className:
|
|
6242
|
+
className: D(
|
|
6185
6243
|
"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
|
|
6186
6244
|
i
|
|
6187
6245
|
),
|
|
@@ -6193,40 +6251,40 @@ const zi = ({
|
|
|
6193
6251
|
]
|
|
6194
6252
|
}
|
|
6195
6253
|
);
|
|
6196
|
-
|
|
6254
|
+
Xi.displayName = "DialogClose";
|
|
6197
6255
|
export {
|
|
6198
|
-
|
|
6256
|
+
nr as A,
|
|
6199
6257
|
Be as B,
|
|
6200
6258
|
te as C,
|
|
6201
6259
|
nt as D,
|
|
6202
6260
|
ie as E,
|
|
6203
|
-
|
|
6261
|
+
pe as I,
|
|
6204
6262
|
it as M,
|
|
6205
|
-
|
|
6263
|
+
se as S,
|
|
6206
6264
|
Me as a,
|
|
6207
|
-
|
|
6265
|
+
F as b,
|
|
6208
6266
|
De as c,
|
|
6209
6267
|
xn as d,
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6268
|
+
ir as e,
|
|
6269
|
+
rr as f,
|
|
6270
|
+
sr as g,
|
|
6271
|
+
Hi as h,
|
|
6272
|
+
Ji as i,
|
|
6273
|
+
Wi as j,
|
|
6216
6274
|
gt as k,
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6275
|
+
Gi as l,
|
|
6276
|
+
ji as m,
|
|
6277
|
+
$i as n,
|
|
6278
|
+
Vi as o,
|
|
6279
|
+
zi as p,
|
|
6222
6280
|
Qt as q,
|
|
6223
6281
|
Oe as r,
|
|
6224
|
-
|
|
6225
|
-
|
|
6282
|
+
or as s,
|
|
6283
|
+
qi as t,
|
|
6226
6284
|
Ke as u,
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6285
|
+
Ki as v,
|
|
6286
|
+
Yi as w,
|
|
6287
|
+
Xi as x,
|
|
6288
|
+
D as y
|
|
6231
6289
|
};
|
|
6232
|
-
//# sourceMappingURL=index-
|
|
6290
|
+
//# sourceMappingURL=index-6g04Wt4g.js.map
|