@alxxsck/ai-assistant 2.7.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Avatar-BBTR5vL8.js → Avatar-BaLHO8xH.js} +1 -1
- package/dist/{ChatWidgetContent-Dhn8opnF.js → ChatWidgetContent-BNjQc58h.js} +913 -873
- package/dist/bridge-ai-chat-widget.es.js +1 -1
- package/dist/{index-Cyv8CKEt.js → index-CAdBI0Ef.js} +3 -3
- package/dist/ui/chat-composer-layout.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as $, jsx as x, Fragment as o0 } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import ue, { useRef as
|
|
4
|
-
import { P as oe, u as le, a as
|
|
5
|
-
const M0 = (e) => /* @__PURE__ */
|
|
2
|
+
import * as q from "react";
|
|
3
|
+
import ue, { useRef as S, useCallback as P, useEffect as H, useState as V, useMemo as Se, useLayoutEffect as xu, useContext as xe, createContext as He, forwardRef as Ft, Fragment as Nu, isValidElement as i0, cloneElement as a0, createElement as Iu, useId as At, memo as Sn } from "react";
|
|
4
|
+
import { P as oe, u as le, a as ku, b as ju, c as Dt, d as c0, e as Ue, C as se, N as Ru, f as au, V as s0, M as Oe, g as Tt, h as l0, i as d0, j as f0, k as h0, l as p0, m as b0, n as m0, o as g0, p as x0, q as k0, r as C0, t as v0, s as St, v as y0, w as Ye, x as _0, y as w0, z as E0, A as F0, B as A0, D as D0, E as T0, F as S0, R as $0, G as nu, H as Wt } from "./index-CAdBI0Ef.js";
|
|
5
|
+
const M0 = (e) => /* @__PURE__ */ q.createElement("svg", { width: 15, height: 22, viewBox: "0 0 15 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M3 10.5V4.5C3 3.30653 3.47411 2.16193 4.31802 1.31802C5.16193 0.474106 6.30653 0 7.5 0C8.69347 0 9.83807 0.474106 10.682 1.31802C11.5259 2.16193 12 3.30653 12 4.5V10.5C12 11.6935 11.5259 12.8381 10.682 13.682C9.83807 14.5259 8.69347 15 7.5 15C6.30653 15 5.16193 14.5259 4.31802 13.682C3.47411 12.8381 3 11.6935 3 10.5ZM15 10.5C15 10.3011 14.921 10.1103 14.7803 9.96967C14.6397 9.82902 14.4489 9.75 14.25 9.75C14.0511 9.75 13.8603 9.82902 13.7197 9.96967C13.579 10.1103 13.5 10.3011 13.5 10.5C13.5 12.0913 12.8679 13.6174 11.7426 14.7426C10.6174 15.8679 9.0913 16.5 7.5 16.5C5.9087 16.5 4.38258 15.8679 3.25736 14.7426C2.13214 13.6174 1.5 12.0913 1.5 10.5C1.5 10.3011 1.42098 10.1103 1.28033 9.96967C1.13968 9.82902 0.948912 9.75 0.75 9.75C0.551088 9.75 0.360322 9.82902 0.21967 9.96967C0.0790178 10.1103 0 10.3011 0 10.5C0.00228386 12.3586 0.693677 14.1504 1.94048 15.5288C3.18728 16.9072 4.90091 17.7743 6.75 17.9625V21C6.75 21.1989 6.82902 21.3897 6.96967 21.5303C7.11032 21.671 7.30109 21.75 7.5 21.75C7.69891 21.75 7.88968 21.671 8.03033 21.5303C8.17098 21.3897 8.25 21.1989 8.25 21V17.9625C10.0991 17.7743 11.8127 16.9072 13.0595 15.5288C14.3063 14.1504 14.9977 12.3586 15 10.5Z", fill: "white" })), L0 = (e) => /* @__PURE__ */ q.createElement("svg", { width: 17, height: 22, viewBox: "0 0 17 22", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M16.2483 20.05C16.1011 20.1838 15.9068 20.2536 15.7082 20.2441C15.5095 20.2346 15.3227 20.1466 15.189 19.9994L12.2902 16.8119C11.2986 17.4511 10.1683 17.8436 8.99395 17.9566V20.995C8.99395 21.1939 8.91494 21.3847 8.77428 21.5253C8.63363 21.666 8.44287 21.745 8.24395 21.745C8.04504 21.745 7.85428 21.666 7.71362 21.5253C7.57297 21.3847 7.49395 21.1939 7.49395 20.995V17.9575C5.64487 17.7694 3.93123 16.9022 2.68443 15.5238C1.43763 14.1454 0.746237 12.3536 0.743953 10.495C0.743953 10.2961 0.822971 10.1053 0.963623 9.96468C1.10428 9.82403 1.29504 9.74501 1.49395 9.74501C1.69287 9.74501 1.88363 9.82403 2.02428 9.96468C2.16494 10.1053 2.24395 10.2961 2.24395 10.495C2.24569 12.0858 2.87839 13.6109 4.00323 14.7357C5.12807 15.8606 6.65319 16.4933 8.24395 16.495C9.3051 16.4981 10.3477 16.2172 11.2636 15.6813L10.223 14.5375C9.53688 14.8735 8.77649 15.0293 8.01351 14.9902C7.25052 14.951 6.51006 14.7183 5.86189 14.3139C5.21372 13.9095 4.67918 13.3467 4.30864 12.6786C3.93811 12.0105 3.74377 11.259 3.74395 10.495V7.4097L0.188953 3.49939C0.0579834 3.35175 -0.00951799 3.15845 0.00108397 2.96138C0.0116859 2.76431 0.0995364 2.57936 0.245589 2.44663C0.391643 2.3139 0.584126 2.24408 0.781309 2.25232C0.978492 2.26056 1.16448 2.34619 1.29895 2.49064L16.299 18.9906C16.4327 19.1378 16.5025 19.3321 16.493 19.5308C16.4835 19.7295 16.3955 19.9162 16.2483 20.05ZM13.9805 14.1316C14.0828 14.1823 14.1954 14.2086 14.3096 14.2085C14.4501 14.2085 14.5878 14.169 14.7069 14.0946C14.8261 14.0202 14.922 13.9138 14.9836 13.7875C15.4869 12.7631 15.7471 11.6364 15.744 10.495C15.744 10.2961 15.6649 10.1053 15.5243 9.96468C15.3836 9.82403 15.1929 9.74501 14.994 9.74501C14.795 9.74501 14.6043 9.82403 14.4636 9.96468C14.323 10.1053 14.244 10.2961 14.244 10.495C14.2466 11.4079 14.0387 12.309 13.6365 13.1285C13.5491 13.3071 13.5363 13.5131 13.6008 13.7013C13.6653 13.8894 13.8019 14.0442 13.9805 14.1316ZM11.4183 11.3922C11.5158 11.4995 11.6422 11.5762 11.7824 11.6131C11.9225 11.65 12.0703 11.6456 12.208 11.6002C12.3456 11.5549 12.4672 11.4707 12.558 11.3577C12.6488 11.2448 12.7049 11.1079 12.7196 10.9638C12.7356 10.808 12.7437 10.6516 12.744 10.495V4.49501C12.7428 3.46146 12.3859 2.45981 11.7333 1.6584C11.0806 0.85698 10.172 0.304654 9.16007 0.0942441C8.14816 -0.116166 7.09467 0.0281652 6.17664 0.502981C5.25861 0.977798 4.53201 1.75415 4.11895 2.70158C4.06128 2.834 4.04308 2.98027 4.06652 3.1228C4.08997 3.26532 4.15408 3.39804 4.25114 3.50501L11.4183 11.3922Z" })), N0 = (e) => /* @__PURE__ */ q.createElement("svg", { width: 19, height: 17, viewBox: "0 0 19 17", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M12.5227 3.81607C11.8966 2.45748 10.8252 1.35355 9.48597 0.687157C8.14671 0.0207681 6.61998 -0.168078 5.15872 0.151907C3.69745 0.471891 2.38936 1.2815 1.45116 2.4466C0.512966 3.6117 0.000969112 5.06237 0 6.55826V11.5583C0 11.9727 0.16462 12.3701 0.457646 12.6631C0.750671 12.9561 1.1481 13.1208 1.5625 13.1208H5.63281C6.16643 14.2418 7.00649 15.1889 8.05583 15.8525C9.10517 16.5161 10.3209 16.8692 11.5625 16.8708H16.5625C16.9769 16.8708 17.3743 16.7061 17.6674 16.4131C17.9604 16.1201 18.125 15.7227 18.125 15.3083V10.3083C18.1251 8.73409 17.5593 7.21234 16.5309 6.02056C15.5024 4.82878 14.0799 4.04638 12.5227 3.81607ZM1.875 6.55826C1.875 5.63116 2.14992 4.72488 2.66499 3.95402C3.18006 3.18317 3.91214 2.58236 4.76867 2.22757C5.6252 1.87278 6.5677 1.77996 7.47699 1.96082C8.38627 2.14169 9.2215 2.58813 9.87706 3.24369C10.5326 3.89925 10.9791 4.73448 11.1599 5.64377C11.3408 6.55306 11.248 7.49556 10.8932 8.35209C10.5384 9.20861 9.93759 9.9407 9.16674 10.4558C8.39588 10.9708 7.4896 11.2458 6.5625 11.2458H1.875V6.55826ZM16.25 14.9958H11.5625C10.8125 14.9949 10.0737 14.8145 9.40771 14.4697C8.74173 14.1249 8.16796 13.6256 7.73438 13.0137C9.36318 12.7195 10.8205 11.8202 11.8138 10.4962C12.8071 9.17219 13.2629 7.52154 13.0898 5.87544C14.0125 6.19342 14.8129 6.79144 15.3794 7.58608C15.9459 8.38072 16.2502 9.33236 16.25 10.3083V14.9958Z" }));
|
|
6
6
|
function $n(e) {
|
|
7
7
|
var u, t, n = "";
|
|
8
8
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
@@ -30,7 +30,7 @@ const R0 = (e, u) => {
|
|
|
30
30
|
nextPart: e,
|
|
31
31
|
validators: u,
|
|
32
32
|
classGroupId: t
|
|
33
|
-
}),
|
|
33
|
+
}), zu = "-", Kt = [], P0 = "arbitrary..", B0 = (e) => {
|
|
34
34
|
const u = q0(e), {
|
|
35
35
|
conflictingClassGroups: t,
|
|
36
36
|
conflictingClassGroupModifiers: n
|
|
@@ -39,7 +39,7 @@ const R0 = (e, u) => {
|
|
|
39
39
|
getClassGroupId: (i) => {
|
|
40
40
|
if (i.startsWith("[") && i.endsWith("]"))
|
|
41
41
|
return O0(i);
|
|
42
|
-
const a = i.split(
|
|
42
|
+
const a = i.split(zu), c = a[0] === "" && a.length > 1 ? 1 : 0;
|
|
43
43
|
return Ln(a, c, u);
|
|
44
44
|
},
|
|
45
45
|
getConflictingClassGroupIds: (i, a) => {
|
|
@@ -61,7 +61,7 @@ const R0 = (e, u) => {
|
|
|
61
61
|
const i = t.validators;
|
|
62
62
|
if (i === null)
|
|
63
63
|
return;
|
|
64
|
-
const a = u === 0 ? e.join(
|
|
64
|
+
const a = u === 0 ? e.join(zu) : e.slice(u).join(zu), c = i.length;
|
|
65
65
|
for (let s = 0; s < c; s++) {
|
|
66
66
|
const l = i[s];
|
|
67
67
|
if (l.validator(a))
|
|
@@ -116,7 +116,7 @@ const R0 = (e, u) => {
|
|
|
116
116
|
}
|
|
117
117
|
}, Nn = (e, u) => {
|
|
118
118
|
let t = e;
|
|
119
|
-
const n = u.split(
|
|
119
|
+
const n = u.split(zu), r = n.length;
|
|
120
120
|
for (let o = 0; o < r; o++) {
|
|
121
121
|
const i = n[o];
|
|
122
122
|
let a = t.nextPart.get(i);
|
|
@@ -254,10 +254,10 @@ const R0 = (e, u) => {
|
|
|
254
254
|
if (i.indexOf(v) > -1)
|
|
255
255
|
continue;
|
|
256
256
|
i.push(v);
|
|
257
|
-
const
|
|
258
|
-
for (let E = 0; E <
|
|
259
|
-
const
|
|
260
|
-
i.push(k +
|
|
257
|
+
const _ = r(C, b);
|
|
258
|
+
for (let E = 0; E < _.length; ++E) {
|
|
259
|
+
const w = _[E];
|
|
260
|
+
i.push(k + w);
|
|
261
261
|
}
|
|
262
262
|
c = l + (c.length > 0 ? " " + c : c);
|
|
263
263
|
}
|
|
@@ -287,22 +287,22 @@ const R0 = (e, u) => {
|
|
|
287
287
|
return r(c, l), l;
|
|
288
288
|
};
|
|
289
289
|
return o = i, (...c) => o(uo(...c));
|
|
290
|
-
}, no = [],
|
|
290
|
+
}, no = [], Z = (e) => {
|
|
291
291
|
const u = (t) => t[e] || no;
|
|
292
292
|
return u.isThemeGetter = !0, u;
|
|
293
|
-
}, Rn = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, zn = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ro = /^\d+\/\d+$/, oo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, io = /\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$/, ao = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, co = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, so = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,
|
|
293
|
+
}, Rn = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, zn = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ro = /^\d+\/\d+$/, oo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, io = /\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$/, ao = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, co = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, so = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ge = (e) => ro.test(e), N = (e) => !!e && !Number.isNaN(Number(e)), Ee = (e) => !!e && Number.isInteger(Number(e)), rt = (e) => e.endsWith("%") && N(e.slice(0, -1)), ve = (e) => oo.test(e), lo = () => !0, fo = (e) => (
|
|
294
294
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
295
295
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
296
296
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
297
297
|
io.test(e) && !ao.test(e)
|
|
298
|
-
), Pn = () => !1, ho = (e) => co.test(e), po = (e) => so.test(e), bo = (e) => !F(e) && !A(e), mo = (e) =>
|
|
298
|
+
), Pn = () => !1, ho = (e) => co.test(e), po = (e) => so.test(e), bo = (e) => !F(e) && !A(e), mo = (e) => Xe(e, qn, Pn), F = (e) => Rn.test(e), Ie = (e) => Xe(e, jn, fo), ot = (e) => Xe(e, vo, N), Qt = (e) => Xe(e, Bn, Pn), go = (e) => Xe(e, On, po), Fu = (e) => Xe(e, Hn, ho), A = (e) => zn.test(e), ru = (e) => eu(e, jn), xo = (e) => eu(e, yo), Xt = (e) => eu(e, Bn), ko = (e) => eu(e, qn), Co = (e) => eu(e, On), Au = (e) => eu(e, Hn, !0), Xe = (e, u, t) => {
|
|
299
299
|
const n = Rn.exec(e);
|
|
300
300
|
return n ? n[1] ? u(n[1]) : t(n[2]) : !1;
|
|
301
|
-
},
|
|
301
|
+
}, eu = (e, u, t = !1) => {
|
|
302
302
|
const n = zn.exec(e);
|
|
303
303
|
return n ? n[1] ? u(n[1]) : t : !1;
|
|
304
304
|
}, Bn = (e) => e === "position" || e === "percentage", On = (e) => e === "image" || e === "url", qn = (e) => e === "length" || e === "size" || e === "bg-size", jn = (e) => e === "length", vo = (e) => e === "number", yo = (e) => e === "family-name", Hn = (e) => e === "shadow", _o = () => {
|
|
305
|
-
const e =
|
|
305
|
+
const e = Z("color"), u = Z("font"), t = Z("text"), n = Z("font-weight"), r = Z("tracking"), o = Z("leading"), i = Z("breakpoint"), a = Z("container"), c = Z("spacing"), s = Z("radius"), l = Z("shadow"), d = Z("inset-shadow"), p = Z("text-shadow"), h = Z("drop-shadow"), f = Z("blur"), m = Z("perspective"), b = Z("aspect"), C = Z("ease"), g = Z("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], v = () => [
|
|
306
306
|
"center",
|
|
307
307
|
"top",
|
|
308
308
|
"bottom",
|
|
@@ -320,15 +320,15 @@ const R0 = (e, u) => {
|
|
|
320
320
|
"bottom-left",
|
|
321
321
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
322
322
|
"left-bottom"
|
|
323
|
-
],
|
|
323
|
+
], _ = () => [...v(), A, F], E = () => ["auto", "hidden", "clip", "visible", "scroll"], w = () => ["auto", "contain", "none"], y = () => [A, F, c], I = () => [Ge, "full", "auto", ...y()], M = () => [Ee, "none", "subgrid", A, F], L = () => ["auto", {
|
|
324
324
|
span: ["full", Ee, A, F]
|
|
325
|
-
}, Ee, A, F],
|
|
325
|
+
}, Ee, A, F], Q = () => [Ee, "auto", A, F], X = () => ["auto", "min", "max", "fr", A, F], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], O = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], G = () => ["auto", ...y()], ee = () => [Ge, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...y()], D = () => [e, A, F], fe = () => [...v(), Xt, Qt, {
|
|
326
326
|
position: [A, F]
|
|
327
|
-
}],
|
|
327
|
+
}], Le = () => ["no-repeat", {
|
|
328
328
|
repeat: ["", "x", "y", "space", "round"]
|
|
329
|
-
}],
|
|
329
|
+
}], Ne = () => ["auto", "cover", "contain", ko, mo, {
|
|
330
330
|
size: [A, F]
|
|
331
|
-
}],
|
|
331
|
+
}], we = () => [rt, ru, Ie], z = () => [
|
|
332
332
|
// Deprecated since Tailwind CSS v4.0.0
|
|
333
333
|
"",
|
|
334
334
|
"none",
|
|
@@ -336,14 +336,14 @@ const R0 = (e, u) => {
|
|
|
336
336
|
s,
|
|
337
337
|
A,
|
|
338
338
|
F
|
|
339
|
-
],
|
|
339
|
+
], T = () => ["", N, ru, Ie], B = () => ["solid", "dashed", "dotted", "double"], re = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], R = () => [N, rt, Xt, Qt], he = () => [
|
|
340
340
|
// Deprecated since Tailwind CSS v4.0.0
|
|
341
341
|
"",
|
|
342
342
|
"none",
|
|
343
343
|
f,
|
|
344
344
|
A,
|
|
345
345
|
F
|
|
346
|
-
], pe = () => ["none",
|
|
346
|
+
], pe = () => ["none", N, A, F], wu = () => ["none", N, A, F], nt = () => [N, A, F], Eu = () => [Ge, "full", ...y()];
|
|
347
347
|
return {
|
|
348
348
|
cacheSize: 500,
|
|
349
349
|
theme: {
|
|
@@ -362,7 +362,7 @@ const R0 = (e, u) => {
|
|
|
362
362
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
363
363
|
radius: [ve],
|
|
364
364
|
shadow: [ve],
|
|
365
|
-
spacing: ["px",
|
|
365
|
+
spacing: ["px", N],
|
|
366
366
|
text: [ve],
|
|
367
367
|
"text-shadow": [ve],
|
|
368
368
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -376,7 +376,7 @@ const R0 = (e, u) => {
|
|
|
376
376
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
377
377
|
*/
|
|
378
378
|
aspect: [{
|
|
379
|
-
aspect: ["auto", "square",
|
|
379
|
+
aspect: ["auto", "square", Ge, F, A, b]
|
|
380
380
|
}],
|
|
381
381
|
/**
|
|
382
382
|
* Container
|
|
@@ -389,7 +389,7 @@ const R0 = (e, u) => {
|
|
|
389
389
|
* @see https://tailwindcss.com/docs/columns
|
|
390
390
|
*/
|
|
391
391
|
columns: [{
|
|
392
|
-
columns: [
|
|
392
|
+
columns: [N, F, A, a]
|
|
393
393
|
}],
|
|
394
394
|
/**
|
|
395
395
|
* Break After
|
|
@@ -467,7 +467,7 @@ const R0 = (e, u) => {
|
|
|
467
467
|
* @see https://tailwindcss.com/docs/object-position
|
|
468
468
|
*/
|
|
469
469
|
"object-position": [{
|
|
470
|
-
object:
|
|
470
|
+
object: _()
|
|
471
471
|
}],
|
|
472
472
|
/**
|
|
473
473
|
* Overflow
|
|
@@ -495,21 +495,21 @@ const R0 = (e, u) => {
|
|
|
495
495
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
496
496
|
*/
|
|
497
497
|
overscroll: [{
|
|
498
|
-
overscroll:
|
|
498
|
+
overscroll: w()
|
|
499
499
|
}],
|
|
500
500
|
/**
|
|
501
501
|
* Overscroll Behavior X
|
|
502
502
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
503
503
|
*/
|
|
504
504
|
"overscroll-x": [{
|
|
505
|
-
"overscroll-x":
|
|
505
|
+
"overscroll-x": w()
|
|
506
506
|
}],
|
|
507
507
|
/**
|
|
508
508
|
* Overscroll Behavior Y
|
|
509
509
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
510
510
|
*/
|
|
511
511
|
"overscroll-y": [{
|
|
512
|
-
"overscroll-y":
|
|
512
|
+
"overscroll-y": w()
|
|
513
513
|
}],
|
|
514
514
|
/**
|
|
515
515
|
* Position
|
|
@@ -599,7 +599,7 @@ const R0 = (e, u) => {
|
|
|
599
599
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
600
600
|
*/
|
|
601
601
|
basis: [{
|
|
602
|
-
basis: [
|
|
602
|
+
basis: [Ge, "full", "auto", a, ...y()]
|
|
603
603
|
}],
|
|
604
604
|
/**
|
|
605
605
|
* Flex Direction
|
|
@@ -620,21 +620,21 @@ const R0 = (e, u) => {
|
|
|
620
620
|
* @see https://tailwindcss.com/docs/flex
|
|
621
621
|
*/
|
|
622
622
|
flex: [{
|
|
623
|
-
flex: [
|
|
623
|
+
flex: [N, Ge, "auto", "initial", "none", F]
|
|
624
624
|
}],
|
|
625
625
|
/**
|
|
626
626
|
* Flex Grow
|
|
627
627
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
628
628
|
*/
|
|
629
629
|
grow: [{
|
|
630
|
-
grow: ["",
|
|
630
|
+
grow: ["", N, A, F]
|
|
631
631
|
}],
|
|
632
632
|
/**
|
|
633
633
|
* Flex Shrink
|
|
634
634
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
635
635
|
*/
|
|
636
636
|
shrink: [{
|
|
637
|
-
shrink: ["",
|
|
637
|
+
shrink: ["", N, A, F]
|
|
638
638
|
}],
|
|
639
639
|
/**
|
|
640
640
|
* Order
|
|
@@ -648,7 +648,7 @@ const R0 = (e, u) => {
|
|
|
648
648
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
649
649
|
*/
|
|
650
650
|
"grid-cols": [{
|
|
651
|
-
"grid-cols":
|
|
651
|
+
"grid-cols": M()
|
|
652
652
|
}],
|
|
653
653
|
/**
|
|
654
654
|
* Grid Column Start / End
|
|
@@ -662,21 +662,21 @@ const R0 = (e, u) => {
|
|
|
662
662
|
* @see https://tailwindcss.com/docs/grid-column
|
|
663
663
|
*/
|
|
664
664
|
"col-start": [{
|
|
665
|
-
"col-start":
|
|
665
|
+
"col-start": Q()
|
|
666
666
|
}],
|
|
667
667
|
/**
|
|
668
668
|
* Grid Column End
|
|
669
669
|
* @see https://tailwindcss.com/docs/grid-column
|
|
670
670
|
*/
|
|
671
671
|
"col-end": [{
|
|
672
|
-
"col-end":
|
|
672
|
+
"col-end": Q()
|
|
673
673
|
}],
|
|
674
674
|
/**
|
|
675
675
|
* Grid Template Rows
|
|
676
676
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
677
677
|
*/
|
|
678
678
|
"grid-rows": [{
|
|
679
|
-
"grid-rows":
|
|
679
|
+
"grid-rows": M()
|
|
680
680
|
}],
|
|
681
681
|
/**
|
|
682
682
|
* Grid Row Start / End
|
|
@@ -690,14 +690,14 @@ const R0 = (e, u) => {
|
|
|
690
690
|
* @see https://tailwindcss.com/docs/grid-row
|
|
691
691
|
*/
|
|
692
692
|
"row-start": [{
|
|
693
|
-
"row-start":
|
|
693
|
+
"row-start": Q()
|
|
694
694
|
}],
|
|
695
695
|
/**
|
|
696
696
|
* Grid Row End
|
|
697
697
|
* @see https://tailwindcss.com/docs/grid-row
|
|
698
698
|
*/
|
|
699
699
|
"row-end": [{
|
|
700
|
-
"row-end":
|
|
700
|
+
"row-end": Q()
|
|
701
701
|
}],
|
|
702
702
|
/**
|
|
703
703
|
* Grid Auto Flow
|
|
@@ -746,35 +746,35 @@ const R0 = (e, u) => {
|
|
|
746
746
|
* @see https://tailwindcss.com/docs/justify-content
|
|
747
747
|
*/
|
|
748
748
|
"justify-content": [{
|
|
749
|
-
justify: [...
|
|
749
|
+
justify: [...Y(), "normal"]
|
|
750
750
|
}],
|
|
751
751
|
/**
|
|
752
752
|
* Justify Items
|
|
753
753
|
* @see https://tailwindcss.com/docs/justify-items
|
|
754
754
|
*/
|
|
755
755
|
"justify-items": [{
|
|
756
|
-
"justify-items": [...
|
|
756
|
+
"justify-items": [...O(), "normal"]
|
|
757
757
|
}],
|
|
758
758
|
/**
|
|
759
759
|
* Justify Self
|
|
760
760
|
* @see https://tailwindcss.com/docs/justify-self
|
|
761
761
|
*/
|
|
762
762
|
"justify-self": [{
|
|
763
|
-
"justify-self": ["auto", ...
|
|
763
|
+
"justify-self": ["auto", ...O()]
|
|
764
764
|
}],
|
|
765
765
|
/**
|
|
766
766
|
* Align Content
|
|
767
767
|
* @see https://tailwindcss.com/docs/align-content
|
|
768
768
|
*/
|
|
769
769
|
"align-content": [{
|
|
770
|
-
content: ["normal", ...
|
|
770
|
+
content: ["normal", ...Y()]
|
|
771
771
|
}],
|
|
772
772
|
/**
|
|
773
773
|
* Align Items
|
|
774
774
|
* @see https://tailwindcss.com/docs/align-items
|
|
775
775
|
*/
|
|
776
776
|
"align-items": [{
|
|
777
|
-
items: [...
|
|
777
|
+
items: [...O(), {
|
|
778
778
|
baseline: ["", "last"]
|
|
779
779
|
}]
|
|
780
780
|
}],
|
|
@@ -783,7 +783,7 @@ const R0 = (e, u) => {
|
|
|
783
783
|
* @see https://tailwindcss.com/docs/align-self
|
|
784
784
|
*/
|
|
785
785
|
"align-self": [{
|
|
786
|
-
self: ["auto", ...
|
|
786
|
+
self: ["auto", ...O(), {
|
|
787
787
|
baseline: ["", "last"]
|
|
788
788
|
}]
|
|
789
789
|
}],
|
|
@@ -792,21 +792,21 @@ const R0 = (e, u) => {
|
|
|
792
792
|
* @see https://tailwindcss.com/docs/place-content
|
|
793
793
|
*/
|
|
794
794
|
"place-content": [{
|
|
795
|
-
"place-content":
|
|
795
|
+
"place-content": Y()
|
|
796
796
|
}],
|
|
797
797
|
/**
|
|
798
798
|
* Place Items
|
|
799
799
|
* @see https://tailwindcss.com/docs/place-items
|
|
800
800
|
*/
|
|
801
801
|
"place-items": [{
|
|
802
|
-
"place-items": [...
|
|
802
|
+
"place-items": [...O(), "baseline"]
|
|
803
803
|
}],
|
|
804
804
|
/**
|
|
805
805
|
* Place Self
|
|
806
806
|
* @see https://tailwindcss.com/docs/place-self
|
|
807
807
|
*/
|
|
808
808
|
"place-self": [{
|
|
809
|
-
"place-self": ["auto", ...
|
|
809
|
+
"place-self": ["auto", ...O()]
|
|
810
810
|
}],
|
|
811
811
|
// Spacing
|
|
812
812
|
/**
|
|
@@ -877,63 +877,63 @@ const R0 = (e, u) => {
|
|
|
877
877
|
* @see https://tailwindcss.com/docs/margin
|
|
878
878
|
*/
|
|
879
879
|
m: [{
|
|
880
|
-
m:
|
|
880
|
+
m: G()
|
|
881
881
|
}],
|
|
882
882
|
/**
|
|
883
883
|
* Margin X
|
|
884
884
|
* @see https://tailwindcss.com/docs/margin
|
|
885
885
|
*/
|
|
886
886
|
mx: [{
|
|
887
|
-
mx:
|
|
887
|
+
mx: G()
|
|
888
888
|
}],
|
|
889
889
|
/**
|
|
890
890
|
* Margin Y
|
|
891
891
|
* @see https://tailwindcss.com/docs/margin
|
|
892
892
|
*/
|
|
893
893
|
my: [{
|
|
894
|
-
my:
|
|
894
|
+
my: G()
|
|
895
895
|
}],
|
|
896
896
|
/**
|
|
897
897
|
* Margin Start
|
|
898
898
|
* @see https://tailwindcss.com/docs/margin
|
|
899
899
|
*/
|
|
900
900
|
ms: [{
|
|
901
|
-
ms:
|
|
901
|
+
ms: G()
|
|
902
902
|
}],
|
|
903
903
|
/**
|
|
904
904
|
* Margin End
|
|
905
905
|
* @see https://tailwindcss.com/docs/margin
|
|
906
906
|
*/
|
|
907
907
|
me: [{
|
|
908
|
-
me:
|
|
908
|
+
me: G()
|
|
909
909
|
}],
|
|
910
910
|
/**
|
|
911
911
|
* Margin Top
|
|
912
912
|
* @see https://tailwindcss.com/docs/margin
|
|
913
913
|
*/
|
|
914
914
|
mt: [{
|
|
915
|
-
mt:
|
|
915
|
+
mt: G()
|
|
916
916
|
}],
|
|
917
917
|
/**
|
|
918
918
|
* Margin Right
|
|
919
919
|
* @see https://tailwindcss.com/docs/margin
|
|
920
920
|
*/
|
|
921
921
|
mr: [{
|
|
922
|
-
mr:
|
|
922
|
+
mr: G()
|
|
923
923
|
}],
|
|
924
924
|
/**
|
|
925
925
|
* Margin Bottom
|
|
926
926
|
* @see https://tailwindcss.com/docs/margin
|
|
927
927
|
*/
|
|
928
928
|
mb: [{
|
|
929
|
-
mb:
|
|
929
|
+
mb: G()
|
|
930
930
|
}],
|
|
931
931
|
/**
|
|
932
932
|
* Margin Left
|
|
933
933
|
* @see https://tailwindcss.com/docs/margin
|
|
934
934
|
*/
|
|
935
935
|
ml: [{
|
|
936
|
-
ml:
|
|
936
|
+
ml: G()
|
|
937
937
|
}],
|
|
938
938
|
/**
|
|
939
939
|
* Space Between X
|
|
@@ -967,14 +967,14 @@ const R0 = (e, u) => {
|
|
|
967
967
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
968
968
|
*/
|
|
969
969
|
size: [{
|
|
970
|
-
size:
|
|
970
|
+
size: ee()
|
|
971
971
|
}],
|
|
972
972
|
/**
|
|
973
973
|
* Width
|
|
974
974
|
* @see https://tailwindcss.com/docs/width
|
|
975
975
|
*/
|
|
976
976
|
w: [{
|
|
977
|
-
w: [a, "screen", ...
|
|
977
|
+
w: [a, "screen", ...ee()]
|
|
978
978
|
}],
|
|
979
979
|
/**
|
|
980
980
|
* Min-Width
|
|
@@ -986,7 +986,7 @@ const R0 = (e, u) => {
|
|
|
986
986
|
"screen",
|
|
987
987
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
988
988
|
"none",
|
|
989
|
-
...
|
|
989
|
+
...ee()
|
|
990
990
|
]
|
|
991
991
|
}],
|
|
992
992
|
/**
|
|
@@ -1004,7 +1004,7 @@ const R0 = (e, u) => {
|
|
|
1004
1004
|
{
|
|
1005
1005
|
screen: [i]
|
|
1006
1006
|
},
|
|
1007
|
-
...
|
|
1007
|
+
...ee()
|
|
1008
1008
|
]
|
|
1009
1009
|
}],
|
|
1010
1010
|
/**
|
|
@@ -1012,21 +1012,21 @@ const R0 = (e, u) => {
|
|
|
1012
1012
|
* @see https://tailwindcss.com/docs/height
|
|
1013
1013
|
*/
|
|
1014
1014
|
h: [{
|
|
1015
|
-
h: ["screen", "lh", ...
|
|
1015
|
+
h: ["screen", "lh", ...ee()]
|
|
1016
1016
|
}],
|
|
1017
1017
|
/**
|
|
1018
1018
|
* Min-Height
|
|
1019
1019
|
* @see https://tailwindcss.com/docs/min-height
|
|
1020
1020
|
*/
|
|
1021
1021
|
"min-h": [{
|
|
1022
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1022
|
+
"min-h": ["screen", "lh", "none", ...ee()]
|
|
1023
1023
|
}],
|
|
1024
1024
|
/**
|
|
1025
1025
|
* Max-Height
|
|
1026
1026
|
* @see https://tailwindcss.com/docs/max-height
|
|
1027
1027
|
*/
|
|
1028
1028
|
"max-h": [{
|
|
1029
|
-
"max-h": ["screen", "lh", ...
|
|
1029
|
+
"max-h": ["screen", "lh", ...ee()]
|
|
1030
1030
|
}],
|
|
1031
1031
|
// ------------------
|
|
1032
1032
|
// --- Typography ---
|
|
@@ -1036,7 +1036,7 @@ const R0 = (e, u) => {
|
|
|
1036
1036
|
* @see https://tailwindcss.com/docs/font-size
|
|
1037
1037
|
*/
|
|
1038
1038
|
"font-size": [{
|
|
1039
|
-
text: ["base", t,
|
|
1039
|
+
text: ["base", t, ru, Ie]
|
|
1040
1040
|
}],
|
|
1041
1041
|
/**
|
|
1042
1042
|
* Font Smoothing
|
|
@@ -1111,7 +1111,7 @@ const R0 = (e, u) => {
|
|
|
1111
1111
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1112
1112
|
*/
|
|
1113
1113
|
"line-clamp": [{
|
|
1114
|
-
"line-clamp": [
|
|
1114
|
+
"line-clamp": [N, "none", A, ot]
|
|
1115
1115
|
}],
|
|
1116
1116
|
/**
|
|
1117
1117
|
* Line Height
|
|
@@ -1177,14 +1177,14 @@ const R0 = (e, u) => {
|
|
|
1177
1177
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1178
1178
|
*/
|
|
1179
1179
|
"text-decoration-style": [{
|
|
1180
|
-
decoration: [...
|
|
1180
|
+
decoration: [...B(), "wavy"]
|
|
1181
1181
|
}],
|
|
1182
1182
|
/**
|
|
1183
1183
|
* Text Decoration Thickness
|
|
1184
1184
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1185
1185
|
*/
|
|
1186
1186
|
"text-decoration-thickness": [{
|
|
1187
|
-
decoration: [
|
|
1187
|
+
decoration: [N, "from-font", "auto", A, Ie]
|
|
1188
1188
|
}],
|
|
1189
1189
|
/**
|
|
1190
1190
|
* Text Decoration Color
|
|
@@ -1198,7 +1198,7 @@ const R0 = (e, u) => {
|
|
|
1198
1198
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1199
1199
|
*/
|
|
1200
1200
|
"underline-offset": [{
|
|
1201
|
-
"underline-offset": [
|
|
1201
|
+
"underline-offset": [N, "auto", A, F]
|
|
1202
1202
|
}],
|
|
1203
1203
|
/**
|
|
1204
1204
|
* Text Transform
|
|
@@ -1302,14 +1302,14 @@ const R0 = (e, u) => {
|
|
|
1302
1302
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1303
1303
|
*/
|
|
1304
1304
|
"bg-repeat": [{
|
|
1305
|
-
bg:
|
|
1305
|
+
bg: Le()
|
|
1306
1306
|
}],
|
|
1307
1307
|
/**
|
|
1308
1308
|
* Background Size
|
|
1309
1309
|
* @see https://tailwindcss.com/docs/background-size
|
|
1310
1310
|
*/
|
|
1311
1311
|
"bg-size": [{
|
|
1312
|
-
bg:
|
|
1312
|
+
bg: Ne()
|
|
1313
1313
|
}],
|
|
1314
1314
|
/**
|
|
1315
1315
|
* Background Image
|
|
@@ -1336,21 +1336,21 @@ const R0 = (e, u) => {
|
|
|
1336
1336
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1337
1337
|
*/
|
|
1338
1338
|
"gradient-from-pos": [{
|
|
1339
|
-
from:
|
|
1339
|
+
from: we()
|
|
1340
1340
|
}],
|
|
1341
1341
|
/**
|
|
1342
1342
|
* Gradient Color Stops Via Position
|
|
1343
1343
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1344
1344
|
*/
|
|
1345
1345
|
"gradient-via-pos": [{
|
|
1346
|
-
via:
|
|
1346
|
+
via: we()
|
|
1347
1347
|
}],
|
|
1348
1348
|
/**
|
|
1349
1349
|
* Gradient Color Stops To Position
|
|
1350
1350
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1351
1351
|
*/
|
|
1352
1352
|
"gradient-to-pos": [{
|
|
1353
|
-
to:
|
|
1353
|
+
to: we()
|
|
1354
1354
|
}],
|
|
1355
1355
|
/**
|
|
1356
1356
|
* Gradient Color Stops From
|
|
@@ -1381,175 +1381,175 @@ const R0 = (e, u) => {
|
|
|
1381
1381
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1382
1382
|
*/
|
|
1383
1383
|
rounded: [{
|
|
1384
|
-
rounded:
|
|
1384
|
+
rounded: z()
|
|
1385
1385
|
}],
|
|
1386
1386
|
/**
|
|
1387
1387
|
* Border Radius Start
|
|
1388
1388
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1389
1389
|
*/
|
|
1390
1390
|
"rounded-s": [{
|
|
1391
|
-
"rounded-s":
|
|
1391
|
+
"rounded-s": z()
|
|
1392
1392
|
}],
|
|
1393
1393
|
/**
|
|
1394
1394
|
* Border Radius End
|
|
1395
1395
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1396
1396
|
*/
|
|
1397
1397
|
"rounded-e": [{
|
|
1398
|
-
"rounded-e":
|
|
1398
|
+
"rounded-e": z()
|
|
1399
1399
|
}],
|
|
1400
1400
|
/**
|
|
1401
1401
|
* Border Radius Top
|
|
1402
1402
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1403
1403
|
*/
|
|
1404
1404
|
"rounded-t": [{
|
|
1405
|
-
"rounded-t":
|
|
1405
|
+
"rounded-t": z()
|
|
1406
1406
|
}],
|
|
1407
1407
|
/**
|
|
1408
1408
|
* Border Radius Right
|
|
1409
1409
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1410
1410
|
*/
|
|
1411
1411
|
"rounded-r": [{
|
|
1412
|
-
"rounded-r":
|
|
1412
|
+
"rounded-r": z()
|
|
1413
1413
|
}],
|
|
1414
1414
|
/**
|
|
1415
1415
|
* Border Radius Bottom
|
|
1416
1416
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1417
1417
|
*/
|
|
1418
1418
|
"rounded-b": [{
|
|
1419
|
-
"rounded-b":
|
|
1419
|
+
"rounded-b": z()
|
|
1420
1420
|
}],
|
|
1421
1421
|
/**
|
|
1422
1422
|
* Border Radius Left
|
|
1423
1423
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1424
1424
|
*/
|
|
1425
1425
|
"rounded-l": [{
|
|
1426
|
-
"rounded-l":
|
|
1426
|
+
"rounded-l": z()
|
|
1427
1427
|
}],
|
|
1428
1428
|
/**
|
|
1429
1429
|
* Border Radius Start Start
|
|
1430
1430
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1431
1431
|
*/
|
|
1432
1432
|
"rounded-ss": [{
|
|
1433
|
-
"rounded-ss":
|
|
1433
|
+
"rounded-ss": z()
|
|
1434
1434
|
}],
|
|
1435
1435
|
/**
|
|
1436
1436
|
* Border Radius Start End
|
|
1437
1437
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1438
1438
|
*/
|
|
1439
1439
|
"rounded-se": [{
|
|
1440
|
-
"rounded-se":
|
|
1440
|
+
"rounded-se": z()
|
|
1441
1441
|
}],
|
|
1442
1442
|
/**
|
|
1443
1443
|
* Border Radius End End
|
|
1444
1444
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1445
1445
|
*/
|
|
1446
1446
|
"rounded-ee": [{
|
|
1447
|
-
"rounded-ee":
|
|
1447
|
+
"rounded-ee": z()
|
|
1448
1448
|
}],
|
|
1449
1449
|
/**
|
|
1450
1450
|
* Border Radius End Start
|
|
1451
1451
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1452
1452
|
*/
|
|
1453
1453
|
"rounded-es": [{
|
|
1454
|
-
"rounded-es":
|
|
1454
|
+
"rounded-es": z()
|
|
1455
1455
|
}],
|
|
1456
1456
|
/**
|
|
1457
1457
|
* Border Radius Top Left
|
|
1458
1458
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1459
1459
|
*/
|
|
1460
1460
|
"rounded-tl": [{
|
|
1461
|
-
"rounded-tl":
|
|
1461
|
+
"rounded-tl": z()
|
|
1462
1462
|
}],
|
|
1463
1463
|
/**
|
|
1464
1464
|
* Border Radius Top Right
|
|
1465
1465
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1466
1466
|
*/
|
|
1467
1467
|
"rounded-tr": [{
|
|
1468
|
-
"rounded-tr":
|
|
1468
|
+
"rounded-tr": z()
|
|
1469
1469
|
}],
|
|
1470
1470
|
/**
|
|
1471
1471
|
* Border Radius Bottom Right
|
|
1472
1472
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1473
1473
|
*/
|
|
1474
1474
|
"rounded-br": [{
|
|
1475
|
-
"rounded-br":
|
|
1475
|
+
"rounded-br": z()
|
|
1476
1476
|
}],
|
|
1477
1477
|
/**
|
|
1478
1478
|
* Border Radius Bottom Left
|
|
1479
1479
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1480
1480
|
*/
|
|
1481
1481
|
"rounded-bl": [{
|
|
1482
|
-
"rounded-bl":
|
|
1482
|
+
"rounded-bl": z()
|
|
1483
1483
|
}],
|
|
1484
1484
|
/**
|
|
1485
1485
|
* Border Width
|
|
1486
1486
|
* @see https://tailwindcss.com/docs/border-width
|
|
1487
1487
|
*/
|
|
1488
1488
|
"border-w": [{
|
|
1489
|
-
border:
|
|
1489
|
+
border: T()
|
|
1490
1490
|
}],
|
|
1491
1491
|
/**
|
|
1492
1492
|
* Border Width X
|
|
1493
1493
|
* @see https://tailwindcss.com/docs/border-width
|
|
1494
1494
|
*/
|
|
1495
1495
|
"border-w-x": [{
|
|
1496
|
-
"border-x":
|
|
1496
|
+
"border-x": T()
|
|
1497
1497
|
}],
|
|
1498
1498
|
/**
|
|
1499
1499
|
* Border Width Y
|
|
1500
1500
|
* @see https://tailwindcss.com/docs/border-width
|
|
1501
1501
|
*/
|
|
1502
1502
|
"border-w-y": [{
|
|
1503
|
-
"border-y":
|
|
1503
|
+
"border-y": T()
|
|
1504
1504
|
}],
|
|
1505
1505
|
/**
|
|
1506
1506
|
* Border Width Start
|
|
1507
1507
|
* @see https://tailwindcss.com/docs/border-width
|
|
1508
1508
|
*/
|
|
1509
1509
|
"border-w-s": [{
|
|
1510
|
-
"border-s":
|
|
1510
|
+
"border-s": T()
|
|
1511
1511
|
}],
|
|
1512
1512
|
/**
|
|
1513
1513
|
* Border Width End
|
|
1514
1514
|
* @see https://tailwindcss.com/docs/border-width
|
|
1515
1515
|
*/
|
|
1516
1516
|
"border-w-e": [{
|
|
1517
|
-
"border-e":
|
|
1517
|
+
"border-e": T()
|
|
1518
1518
|
}],
|
|
1519
1519
|
/**
|
|
1520
1520
|
* Border Width Top
|
|
1521
1521
|
* @see https://tailwindcss.com/docs/border-width
|
|
1522
1522
|
*/
|
|
1523
1523
|
"border-w-t": [{
|
|
1524
|
-
"border-t":
|
|
1524
|
+
"border-t": T()
|
|
1525
1525
|
}],
|
|
1526
1526
|
/**
|
|
1527
1527
|
* Border Width Right
|
|
1528
1528
|
* @see https://tailwindcss.com/docs/border-width
|
|
1529
1529
|
*/
|
|
1530
1530
|
"border-w-r": [{
|
|
1531
|
-
"border-r":
|
|
1531
|
+
"border-r": T()
|
|
1532
1532
|
}],
|
|
1533
1533
|
/**
|
|
1534
1534
|
* Border Width Bottom
|
|
1535
1535
|
* @see https://tailwindcss.com/docs/border-width
|
|
1536
1536
|
*/
|
|
1537
1537
|
"border-w-b": [{
|
|
1538
|
-
"border-b":
|
|
1538
|
+
"border-b": T()
|
|
1539
1539
|
}],
|
|
1540
1540
|
/**
|
|
1541
1541
|
* Border Width Left
|
|
1542
1542
|
* @see https://tailwindcss.com/docs/border-width
|
|
1543
1543
|
*/
|
|
1544
1544
|
"border-w-l": [{
|
|
1545
|
-
"border-l":
|
|
1545
|
+
"border-l": T()
|
|
1546
1546
|
}],
|
|
1547
1547
|
/**
|
|
1548
1548
|
* Divide Width X
|
|
1549
1549
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1550
1550
|
*/
|
|
1551
1551
|
"divide-x": [{
|
|
1552
|
-
"divide-x":
|
|
1552
|
+
"divide-x": T()
|
|
1553
1553
|
}],
|
|
1554
1554
|
/**
|
|
1555
1555
|
* Divide Width X Reverse
|
|
@@ -1561,7 +1561,7 @@ const R0 = (e, u) => {
|
|
|
1561
1561
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1562
1562
|
*/
|
|
1563
1563
|
"divide-y": [{
|
|
1564
|
-
"divide-y":
|
|
1564
|
+
"divide-y": T()
|
|
1565
1565
|
}],
|
|
1566
1566
|
/**
|
|
1567
1567
|
* Divide Width Y Reverse
|
|
@@ -1573,14 +1573,14 @@ const R0 = (e, u) => {
|
|
|
1573
1573
|
* @see https://tailwindcss.com/docs/border-style
|
|
1574
1574
|
*/
|
|
1575
1575
|
"border-style": [{
|
|
1576
|
-
border: [...
|
|
1576
|
+
border: [...B(), "hidden", "none"]
|
|
1577
1577
|
}],
|
|
1578
1578
|
/**
|
|
1579
1579
|
* Divide Style
|
|
1580
1580
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
1581
1581
|
*/
|
|
1582
1582
|
"divide-style": [{
|
|
1583
|
-
divide: [...
|
|
1583
|
+
divide: [...B(), "hidden", "none"]
|
|
1584
1584
|
}],
|
|
1585
1585
|
/**
|
|
1586
1586
|
* Border Color
|
|
@@ -1657,21 +1657,21 @@ const R0 = (e, u) => {
|
|
|
1657
1657
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1658
1658
|
*/
|
|
1659
1659
|
"outline-style": [{
|
|
1660
|
-
outline: [...
|
|
1660
|
+
outline: [...B(), "none", "hidden"]
|
|
1661
1661
|
}],
|
|
1662
1662
|
/**
|
|
1663
1663
|
* Outline Offset
|
|
1664
1664
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1665
1665
|
*/
|
|
1666
1666
|
"outline-offset": [{
|
|
1667
|
-
"outline-offset": [
|
|
1667
|
+
"outline-offset": [N, A, F]
|
|
1668
1668
|
}],
|
|
1669
1669
|
/**
|
|
1670
1670
|
* Outline Width
|
|
1671
1671
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1672
1672
|
*/
|
|
1673
1673
|
"outline-w": [{
|
|
1674
|
-
outline: ["",
|
|
1674
|
+
outline: ["", N, ru, Ie]
|
|
1675
1675
|
}],
|
|
1676
1676
|
/**
|
|
1677
1677
|
* Outline Color
|
|
@@ -1693,8 +1693,8 @@ const R0 = (e, u) => {
|
|
|
1693
1693
|
"",
|
|
1694
1694
|
"none",
|
|
1695
1695
|
l,
|
|
1696
|
-
|
|
1697
|
-
|
|
1696
|
+
Au,
|
|
1697
|
+
Fu
|
|
1698
1698
|
]
|
|
1699
1699
|
}],
|
|
1700
1700
|
/**
|
|
@@ -1709,7 +1709,7 @@ const R0 = (e, u) => {
|
|
|
1709
1709
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1710
1710
|
*/
|
|
1711
1711
|
"inset-shadow": [{
|
|
1712
|
-
"inset-shadow": ["none", d,
|
|
1712
|
+
"inset-shadow": ["none", d, Au, Fu]
|
|
1713
1713
|
}],
|
|
1714
1714
|
/**
|
|
1715
1715
|
* Inset Box Shadow Color
|
|
@@ -1723,7 +1723,7 @@ const R0 = (e, u) => {
|
|
|
1723
1723
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
1724
1724
|
*/
|
|
1725
1725
|
"ring-w": [{
|
|
1726
|
-
ring:
|
|
1726
|
+
ring: T()
|
|
1727
1727
|
}],
|
|
1728
1728
|
/**
|
|
1729
1729
|
* Ring Width Inset
|
|
@@ -1746,7 +1746,7 @@ const R0 = (e, u) => {
|
|
|
1746
1746
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1747
1747
|
*/
|
|
1748
1748
|
"ring-offset-w": [{
|
|
1749
|
-
"ring-offset": [
|
|
1749
|
+
"ring-offset": [N, Ie]
|
|
1750
1750
|
}],
|
|
1751
1751
|
/**
|
|
1752
1752
|
* Ring Offset Color
|
|
@@ -1762,7 +1762,7 @@ const R0 = (e, u) => {
|
|
|
1762
1762
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
1763
1763
|
*/
|
|
1764
1764
|
"inset-ring-w": [{
|
|
1765
|
-
"inset-ring":
|
|
1765
|
+
"inset-ring": T()
|
|
1766
1766
|
}],
|
|
1767
1767
|
/**
|
|
1768
1768
|
* Inset Ring Color
|
|
@@ -1776,7 +1776,7 @@ const R0 = (e, u) => {
|
|
|
1776
1776
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
1777
1777
|
*/
|
|
1778
1778
|
"text-shadow": [{
|
|
1779
|
-
"text-shadow": ["none", p,
|
|
1779
|
+
"text-shadow": ["none", p, Au, Fu]
|
|
1780
1780
|
}],
|
|
1781
1781
|
/**
|
|
1782
1782
|
* Text Shadow Color
|
|
@@ -1790,21 +1790,21 @@ const R0 = (e, u) => {
|
|
|
1790
1790
|
* @see https://tailwindcss.com/docs/opacity
|
|
1791
1791
|
*/
|
|
1792
1792
|
opacity: [{
|
|
1793
|
-
opacity: [
|
|
1793
|
+
opacity: [N, A, F]
|
|
1794
1794
|
}],
|
|
1795
1795
|
/**
|
|
1796
1796
|
* Mix Blend Mode
|
|
1797
1797
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1798
1798
|
*/
|
|
1799
1799
|
"mix-blend": [{
|
|
1800
|
-
"mix-blend": [...
|
|
1800
|
+
"mix-blend": [...re(), "plus-darker", "plus-lighter"]
|
|
1801
1801
|
}],
|
|
1802
1802
|
/**
|
|
1803
1803
|
* Background Blend Mode
|
|
1804
1804
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1805
1805
|
*/
|
|
1806
1806
|
"bg-blend": [{
|
|
1807
|
-
"bg-blend":
|
|
1807
|
+
"bg-blend": re()
|
|
1808
1808
|
}],
|
|
1809
1809
|
/**
|
|
1810
1810
|
* Mask Clip
|
|
@@ -1825,13 +1825,13 @@ const R0 = (e, u) => {
|
|
|
1825
1825
|
* @see https://tailwindcss.com/docs/mask-image
|
|
1826
1826
|
*/
|
|
1827
1827
|
"mask-image-linear-pos": [{
|
|
1828
|
-
"mask-linear": [
|
|
1828
|
+
"mask-linear": [N]
|
|
1829
1829
|
}],
|
|
1830
1830
|
"mask-image-linear-from-pos": [{
|
|
1831
|
-
"mask-linear-from":
|
|
1831
|
+
"mask-linear-from": R()
|
|
1832
1832
|
}],
|
|
1833
1833
|
"mask-image-linear-to-pos": [{
|
|
1834
|
-
"mask-linear-to":
|
|
1834
|
+
"mask-linear-to": R()
|
|
1835
1835
|
}],
|
|
1836
1836
|
"mask-image-linear-from-color": [{
|
|
1837
1837
|
"mask-linear-from": D()
|
|
@@ -1840,10 +1840,10 @@ const R0 = (e, u) => {
|
|
|
1840
1840
|
"mask-linear-to": D()
|
|
1841
1841
|
}],
|
|
1842
1842
|
"mask-image-t-from-pos": [{
|
|
1843
|
-
"mask-t-from":
|
|
1843
|
+
"mask-t-from": R()
|
|
1844
1844
|
}],
|
|
1845
1845
|
"mask-image-t-to-pos": [{
|
|
1846
|
-
"mask-t-to":
|
|
1846
|
+
"mask-t-to": R()
|
|
1847
1847
|
}],
|
|
1848
1848
|
"mask-image-t-from-color": [{
|
|
1849
1849
|
"mask-t-from": D()
|
|
@@ -1852,10 +1852,10 @@ const R0 = (e, u) => {
|
|
|
1852
1852
|
"mask-t-to": D()
|
|
1853
1853
|
}],
|
|
1854
1854
|
"mask-image-r-from-pos": [{
|
|
1855
|
-
"mask-r-from":
|
|
1855
|
+
"mask-r-from": R()
|
|
1856
1856
|
}],
|
|
1857
1857
|
"mask-image-r-to-pos": [{
|
|
1858
|
-
"mask-r-to":
|
|
1858
|
+
"mask-r-to": R()
|
|
1859
1859
|
}],
|
|
1860
1860
|
"mask-image-r-from-color": [{
|
|
1861
1861
|
"mask-r-from": D()
|
|
@@ -1864,10 +1864,10 @@ const R0 = (e, u) => {
|
|
|
1864
1864
|
"mask-r-to": D()
|
|
1865
1865
|
}],
|
|
1866
1866
|
"mask-image-b-from-pos": [{
|
|
1867
|
-
"mask-b-from":
|
|
1867
|
+
"mask-b-from": R()
|
|
1868
1868
|
}],
|
|
1869
1869
|
"mask-image-b-to-pos": [{
|
|
1870
|
-
"mask-b-to":
|
|
1870
|
+
"mask-b-to": R()
|
|
1871
1871
|
}],
|
|
1872
1872
|
"mask-image-b-from-color": [{
|
|
1873
1873
|
"mask-b-from": D()
|
|
@@ -1876,10 +1876,10 @@ const R0 = (e, u) => {
|
|
|
1876
1876
|
"mask-b-to": D()
|
|
1877
1877
|
}],
|
|
1878
1878
|
"mask-image-l-from-pos": [{
|
|
1879
|
-
"mask-l-from":
|
|
1879
|
+
"mask-l-from": R()
|
|
1880
1880
|
}],
|
|
1881
1881
|
"mask-image-l-to-pos": [{
|
|
1882
|
-
"mask-l-to":
|
|
1882
|
+
"mask-l-to": R()
|
|
1883
1883
|
}],
|
|
1884
1884
|
"mask-image-l-from-color": [{
|
|
1885
1885
|
"mask-l-from": D()
|
|
@@ -1888,10 +1888,10 @@ const R0 = (e, u) => {
|
|
|
1888
1888
|
"mask-l-to": D()
|
|
1889
1889
|
}],
|
|
1890
1890
|
"mask-image-x-from-pos": [{
|
|
1891
|
-
"mask-x-from":
|
|
1891
|
+
"mask-x-from": R()
|
|
1892
1892
|
}],
|
|
1893
1893
|
"mask-image-x-to-pos": [{
|
|
1894
|
-
"mask-x-to":
|
|
1894
|
+
"mask-x-to": R()
|
|
1895
1895
|
}],
|
|
1896
1896
|
"mask-image-x-from-color": [{
|
|
1897
1897
|
"mask-x-from": D()
|
|
@@ -1900,10 +1900,10 @@ const R0 = (e, u) => {
|
|
|
1900
1900
|
"mask-x-to": D()
|
|
1901
1901
|
}],
|
|
1902
1902
|
"mask-image-y-from-pos": [{
|
|
1903
|
-
"mask-y-from":
|
|
1903
|
+
"mask-y-from": R()
|
|
1904
1904
|
}],
|
|
1905
1905
|
"mask-image-y-to-pos": [{
|
|
1906
|
-
"mask-y-to":
|
|
1906
|
+
"mask-y-to": R()
|
|
1907
1907
|
}],
|
|
1908
1908
|
"mask-image-y-from-color": [{
|
|
1909
1909
|
"mask-y-from": D()
|
|
@@ -1915,10 +1915,10 @@ const R0 = (e, u) => {
|
|
|
1915
1915
|
"mask-radial": [A, F]
|
|
1916
1916
|
}],
|
|
1917
1917
|
"mask-image-radial-from-pos": [{
|
|
1918
|
-
"mask-radial-from":
|
|
1918
|
+
"mask-radial-from": R()
|
|
1919
1919
|
}],
|
|
1920
1920
|
"mask-image-radial-to-pos": [{
|
|
1921
|
-
"mask-radial-to":
|
|
1921
|
+
"mask-radial-to": R()
|
|
1922
1922
|
}],
|
|
1923
1923
|
"mask-image-radial-from-color": [{
|
|
1924
1924
|
"mask-radial-from": D()
|
|
@@ -1939,13 +1939,13 @@ const R0 = (e, u) => {
|
|
|
1939
1939
|
"mask-radial-at": v()
|
|
1940
1940
|
}],
|
|
1941
1941
|
"mask-image-conic-pos": [{
|
|
1942
|
-
"mask-conic": [
|
|
1942
|
+
"mask-conic": [N]
|
|
1943
1943
|
}],
|
|
1944
1944
|
"mask-image-conic-from-pos": [{
|
|
1945
|
-
"mask-conic-from":
|
|
1945
|
+
"mask-conic-from": R()
|
|
1946
1946
|
}],
|
|
1947
1947
|
"mask-image-conic-to-pos": [{
|
|
1948
|
-
"mask-conic-to":
|
|
1948
|
+
"mask-conic-to": R()
|
|
1949
1949
|
}],
|
|
1950
1950
|
"mask-image-conic-from-color": [{
|
|
1951
1951
|
"mask-conic-from": D()
|
|
@@ -1979,14 +1979,14 @@ const R0 = (e, u) => {
|
|
|
1979
1979
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
1980
1980
|
*/
|
|
1981
1981
|
"mask-repeat": [{
|
|
1982
|
-
mask:
|
|
1982
|
+
mask: Le()
|
|
1983
1983
|
}],
|
|
1984
1984
|
/**
|
|
1985
1985
|
* Mask Size
|
|
1986
1986
|
* @see https://tailwindcss.com/docs/mask-size
|
|
1987
1987
|
*/
|
|
1988
1988
|
"mask-size": [{
|
|
1989
|
-
mask:
|
|
1989
|
+
mask: Ne()
|
|
1990
1990
|
}],
|
|
1991
1991
|
/**
|
|
1992
1992
|
* Mask Type
|
|
@@ -2023,21 +2023,21 @@ const R0 = (e, u) => {
|
|
|
2023
2023
|
* @see https://tailwindcss.com/docs/blur
|
|
2024
2024
|
*/
|
|
2025
2025
|
blur: [{
|
|
2026
|
-
blur:
|
|
2026
|
+
blur: he()
|
|
2027
2027
|
}],
|
|
2028
2028
|
/**
|
|
2029
2029
|
* Brightness
|
|
2030
2030
|
* @see https://tailwindcss.com/docs/brightness
|
|
2031
2031
|
*/
|
|
2032
2032
|
brightness: [{
|
|
2033
|
-
brightness: [
|
|
2033
|
+
brightness: [N, A, F]
|
|
2034
2034
|
}],
|
|
2035
2035
|
/**
|
|
2036
2036
|
* Contrast
|
|
2037
2037
|
* @see https://tailwindcss.com/docs/contrast
|
|
2038
2038
|
*/
|
|
2039
2039
|
contrast: [{
|
|
2040
|
-
contrast: [
|
|
2040
|
+
contrast: [N, A, F]
|
|
2041
2041
|
}],
|
|
2042
2042
|
/**
|
|
2043
2043
|
* Drop Shadow
|
|
@@ -2049,8 +2049,8 @@ const R0 = (e, u) => {
|
|
|
2049
2049
|
"",
|
|
2050
2050
|
"none",
|
|
2051
2051
|
h,
|
|
2052
|
-
|
|
2053
|
-
|
|
2052
|
+
Au,
|
|
2053
|
+
Fu
|
|
2054
2054
|
]
|
|
2055
2055
|
}],
|
|
2056
2056
|
/**
|
|
@@ -2065,35 +2065,35 @@ const R0 = (e, u) => {
|
|
|
2065
2065
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2066
2066
|
*/
|
|
2067
2067
|
grayscale: [{
|
|
2068
|
-
grayscale: ["",
|
|
2068
|
+
grayscale: ["", N, A, F]
|
|
2069
2069
|
}],
|
|
2070
2070
|
/**
|
|
2071
2071
|
* Hue Rotate
|
|
2072
2072
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2073
2073
|
*/
|
|
2074
2074
|
"hue-rotate": [{
|
|
2075
|
-
"hue-rotate": [
|
|
2075
|
+
"hue-rotate": [N, A, F]
|
|
2076
2076
|
}],
|
|
2077
2077
|
/**
|
|
2078
2078
|
* Invert
|
|
2079
2079
|
* @see https://tailwindcss.com/docs/invert
|
|
2080
2080
|
*/
|
|
2081
2081
|
invert: [{
|
|
2082
|
-
invert: ["",
|
|
2082
|
+
invert: ["", N, A, F]
|
|
2083
2083
|
}],
|
|
2084
2084
|
/**
|
|
2085
2085
|
* Saturate
|
|
2086
2086
|
* @see https://tailwindcss.com/docs/saturate
|
|
2087
2087
|
*/
|
|
2088
2088
|
saturate: [{
|
|
2089
|
-
saturate: [
|
|
2089
|
+
saturate: [N, A, F]
|
|
2090
2090
|
}],
|
|
2091
2091
|
/**
|
|
2092
2092
|
* Sepia
|
|
2093
2093
|
* @see https://tailwindcss.com/docs/sepia
|
|
2094
2094
|
*/
|
|
2095
2095
|
sepia: [{
|
|
2096
|
-
sepia: ["",
|
|
2096
|
+
sepia: ["", N, A, F]
|
|
2097
2097
|
}],
|
|
2098
2098
|
/**
|
|
2099
2099
|
* Backdrop Filter
|
|
@@ -2113,63 +2113,63 @@ const R0 = (e, u) => {
|
|
|
2113
2113
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2114
2114
|
*/
|
|
2115
2115
|
"backdrop-blur": [{
|
|
2116
|
-
"backdrop-blur":
|
|
2116
|
+
"backdrop-blur": he()
|
|
2117
2117
|
}],
|
|
2118
2118
|
/**
|
|
2119
2119
|
* Backdrop Brightness
|
|
2120
2120
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2121
2121
|
*/
|
|
2122
2122
|
"backdrop-brightness": [{
|
|
2123
|
-
"backdrop-brightness": [
|
|
2123
|
+
"backdrop-brightness": [N, A, F]
|
|
2124
2124
|
}],
|
|
2125
2125
|
/**
|
|
2126
2126
|
* Backdrop Contrast
|
|
2127
2127
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2128
2128
|
*/
|
|
2129
2129
|
"backdrop-contrast": [{
|
|
2130
|
-
"backdrop-contrast": [
|
|
2130
|
+
"backdrop-contrast": [N, A, F]
|
|
2131
2131
|
}],
|
|
2132
2132
|
/**
|
|
2133
2133
|
* Backdrop Grayscale
|
|
2134
2134
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2135
2135
|
*/
|
|
2136
2136
|
"backdrop-grayscale": [{
|
|
2137
|
-
"backdrop-grayscale": ["",
|
|
2137
|
+
"backdrop-grayscale": ["", N, A, F]
|
|
2138
2138
|
}],
|
|
2139
2139
|
/**
|
|
2140
2140
|
* Backdrop Hue Rotate
|
|
2141
2141
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2142
2142
|
*/
|
|
2143
2143
|
"backdrop-hue-rotate": [{
|
|
2144
|
-
"backdrop-hue-rotate": [
|
|
2144
|
+
"backdrop-hue-rotate": [N, A, F]
|
|
2145
2145
|
}],
|
|
2146
2146
|
/**
|
|
2147
2147
|
* Backdrop Invert
|
|
2148
2148
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2149
2149
|
*/
|
|
2150
2150
|
"backdrop-invert": [{
|
|
2151
|
-
"backdrop-invert": ["",
|
|
2151
|
+
"backdrop-invert": ["", N, A, F]
|
|
2152
2152
|
}],
|
|
2153
2153
|
/**
|
|
2154
2154
|
* Backdrop Opacity
|
|
2155
2155
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2156
2156
|
*/
|
|
2157
2157
|
"backdrop-opacity": [{
|
|
2158
|
-
"backdrop-opacity": [
|
|
2158
|
+
"backdrop-opacity": [N, A, F]
|
|
2159
2159
|
}],
|
|
2160
2160
|
/**
|
|
2161
2161
|
* Backdrop Saturate
|
|
2162
2162
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2163
2163
|
*/
|
|
2164
2164
|
"backdrop-saturate": [{
|
|
2165
|
-
"backdrop-saturate": [
|
|
2165
|
+
"backdrop-saturate": [N, A, F]
|
|
2166
2166
|
}],
|
|
2167
2167
|
/**
|
|
2168
2168
|
* Backdrop Sepia
|
|
2169
2169
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2170
2170
|
*/
|
|
2171
2171
|
"backdrop-sepia": [{
|
|
2172
|
-
"backdrop-sepia": ["",
|
|
2172
|
+
"backdrop-sepia": ["", N, A, F]
|
|
2173
2173
|
}],
|
|
2174
2174
|
// --------------
|
|
2175
2175
|
// --- Tables ---
|
|
@@ -2238,7 +2238,7 @@ const R0 = (e, u) => {
|
|
|
2238
2238
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2239
2239
|
*/
|
|
2240
2240
|
duration: [{
|
|
2241
|
-
duration: [
|
|
2241
|
+
duration: [N, "initial", A, F]
|
|
2242
2242
|
}],
|
|
2243
2243
|
/**
|
|
2244
2244
|
* Transition Timing Function
|
|
@@ -2252,7 +2252,7 @@ const R0 = (e, u) => {
|
|
|
2252
2252
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2253
2253
|
*/
|
|
2254
2254
|
delay: [{
|
|
2255
|
-
delay: [
|
|
2255
|
+
delay: [N, A, F]
|
|
2256
2256
|
}],
|
|
2257
2257
|
/**
|
|
2258
2258
|
* Animation
|
|
@@ -2283,7 +2283,7 @@ const R0 = (e, u) => {
|
|
|
2283
2283
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2284
2284
|
*/
|
|
2285
2285
|
"perspective-origin": [{
|
|
2286
|
-
"perspective-origin":
|
|
2286
|
+
"perspective-origin": _()
|
|
2287
2287
|
}],
|
|
2288
2288
|
/**
|
|
2289
2289
|
* Rotate
|
|
@@ -2318,28 +2318,28 @@ const R0 = (e, u) => {
|
|
|
2318
2318
|
* @see https://tailwindcss.com/docs/scale
|
|
2319
2319
|
*/
|
|
2320
2320
|
scale: [{
|
|
2321
|
-
scale:
|
|
2321
|
+
scale: wu()
|
|
2322
2322
|
}],
|
|
2323
2323
|
/**
|
|
2324
2324
|
* Scale X
|
|
2325
2325
|
* @see https://tailwindcss.com/docs/scale
|
|
2326
2326
|
*/
|
|
2327
2327
|
"scale-x": [{
|
|
2328
|
-
"scale-x":
|
|
2328
|
+
"scale-x": wu()
|
|
2329
2329
|
}],
|
|
2330
2330
|
/**
|
|
2331
2331
|
* Scale Y
|
|
2332
2332
|
* @see https://tailwindcss.com/docs/scale
|
|
2333
2333
|
*/
|
|
2334
2334
|
"scale-y": [{
|
|
2335
|
-
"scale-y":
|
|
2335
|
+
"scale-y": wu()
|
|
2336
2336
|
}],
|
|
2337
2337
|
/**
|
|
2338
2338
|
* Scale Z
|
|
2339
2339
|
* @see https://tailwindcss.com/docs/scale
|
|
2340
2340
|
*/
|
|
2341
2341
|
"scale-z": [{
|
|
2342
|
-
"scale-z":
|
|
2342
|
+
"scale-z": wu()
|
|
2343
2343
|
}],
|
|
2344
2344
|
/**
|
|
2345
2345
|
* Scale 3D
|
|
@@ -2379,7 +2379,7 @@ const R0 = (e, u) => {
|
|
|
2379
2379
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2380
2380
|
*/
|
|
2381
2381
|
"transform-origin": [{
|
|
2382
|
-
origin:
|
|
2382
|
+
origin: _()
|
|
2383
2383
|
}],
|
|
2384
2384
|
/**
|
|
2385
2385
|
* Transform Style
|
|
@@ -2393,28 +2393,28 @@ const R0 = (e, u) => {
|
|
|
2393
2393
|
* @see https://tailwindcss.com/docs/translate
|
|
2394
2394
|
*/
|
|
2395
2395
|
translate: [{
|
|
2396
|
-
translate:
|
|
2396
|
+
translate: Eu()
|
|
2397
2397
|
}],
|
|
2398
2398
|
/**
|
|
2399
2399
|
* Translate X
|
|
2400
2400
|
* @see https://tailwindcss.com/docs/translate
|
|
2401
2401
|
*/
|
|
2402
2402
|
"translate-x": [{
|
|
2403
|
-
"translate-x":
|
|
2403
|
+
"translate-x": Eu()
|
|
2404
2404
|
}],
|
|
2405
2405
|
/**
|
|
2406
2406
|
* Translate Y
|
|
2407
2407
|
* @see https://tailwindcss.com/docs/translate
|
|
2408
2408
|
*/
|
|
2409
2409
|
"translate-y": [{
|
|
2410
|
-
"translate-y":
|
|
2410
|
+
"translate-y": Eu()
|
|
2411
2411
|
}],
|
|
2412
2412
|
/**
|
|
2413
2413
|
* Translate Z
|
|
2414
2414
|
* @see https://tailwindcss.com/docs/translate
|
|
2415
2415
|
*/
|
|
2416
2416
|
"translate-z": [{
|
|
2417
|
-
"translate-z":
|
|
2417
|
+
"translate-z": Eu()
|
|
2418
2418
|
}],
|
|
2419
2419
|
/**
|
|
2420
2420
|
* Translate None
|
|
@@ -2696,7 +2696,7 @@ const R0 = (e, u) => {
|
|
|
2696
2696
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2697
2697
|
*/
|
|
2698
2698
|
"stroke-w": [{
|
|
2699
|
-
stroke: [
|
|
2699
|
+
stroke: [N, ru, Ie, ot]
|
|
2700
2700
|
}],
|
|
2701
2701
|
/**
|
|
2702
2702
|
* Stroke
|
|
@@ -2772,14 +2772,14 @@ const R0 = (e, u) => {
|
|
|
2772
2772
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2773
2773
|
};
|
|
2774
2774
|
}, wo = /* @__PURE__ */ to(_o);
|
|
2775
|
-
function
|
|
2775
|
+
function U(...e) {
|
|
2776
2776
|
return wo(I0(e));
|
|
2777
2777
|
}
|
|
2778
2778
|
const Eo = typeof document < "u" ? ue.useLayoutEffect : () => {
|
|
2779
2779
|
}, Me = (e) => {
|
|
2780
2780
|
var u;
|
|
2781
2781
|
return (u = e?.ownerDocument) !== null && u !== void 0 ? u : document;
|
|
2782
|
-
},
|
|
2782
|
+
}, Pe = (e) => e && "window" in e && e.window === e ? e : Me(e).defaultView || window;
|
|
2783
2783
|
function Fo(e) {
|
|
2784
2784
|
return e !== null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number";
|
|
2785
2785
|
}
|
|
@@ -2819,20 +2819,20 @@ function To(e) {
|
|
|
2819
2819
|
e.focus(), Mo(u);
|
|
2820
2820
|
}
|
|
2821
2821
|
}
|
|
2822
|
-
let
|
|
2822
|
+
let Du = null;
|
|
2823
2823
|
function So() {
|
|
2824
|
-
if (
|
|
2825
|
-
|
|
2824
|
+
if (Du == null) {
|
|
2825
|
+
Du = !1;
|
|
2826
2826
|
try {
|
|
2827
2827
|
document.createElement("div").focus({
|
|
2828
2828
|
get preventScroll() {
|
|
2829
|
-
return
|
|
2829
|
+
return Du = !0, !0;
|
|
2830
2830
|
}
|
|
2831
2831
|
});
|
|
2832
2832
|
} catch {
|
|
2833
2833
|
}
|
|
2834
2834
|
}
|
|
2835
|
-
return
|
|
2835
|
+
return Du;
|
|
2836
2836
|
}
|
|
2837
2837
|
function $o(e) {
|
|
2838
2838
|
let u = e.parentNode, t = [], n = document.scrollingElement || document.documentElement;
|
|
@@ -2867,18 +2867,18 @@ function _e(e) {
|
|
|
2867
2867
|
let u = null;
|
|
2868
2868
|
return () => (u == null && (u = e()), u);
|
|
2869
2869
|
}
|
|
2870
|
-
const
|
|
2870
|
+
const du = _e(function() {
|
|
2871
2871
|
return Lt(/^Mac/i);
|
|
2872
2872
|
}), Lo = _e(function() {
|
|
2873
2873
|
return Lt(/^iPhone/i);
|
|
2874
2874
|
}), Gn = _e(function() {
|
|
2875
2875
|
return Lt(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
2876
|
-
|
|
2876
|
+
du() && navigator.maxTouchPoints > 1;
|
|
2877
2877
|
}), No = _e(function() {
|
|
2878
2878
|
return Lo() || Gn();
|
|
2879
2879
|
});
|
|
2880
2880
|
_e(function() {
|
|
2881
|
-
return
|
|
2881
|
+
return du() || No();
|
|
2882
2882
|
});
|
|
2883
2883
|
const Io = _e(function() {
|
|
2884
2884
|
return Hu(/AppleWebKit/i) && !Ro();
|
|
@@ -2889,11 +2889,11 @@ const Io = _e(function() {
|
|
|
2889
2889
|
}), Po = _e(function() {
|
|
2890
2890
|
return Hu(/Firefox/i);
|
|
2891
2891
|
});
|
|
2892
|
-
function
|
|
2892
|
+
function fu(e, u, t = !0) {
|
|
2893
2893
|
var n, r;
|
|
2894
2894
|
let { metaKey: o, ctrlKey: i, altKey: a, shiftKey: c } = u;
|
|
2895
|
-
Po() && (!((r = window.event) === null || r === void 0 || (n = r.type) === null || n === void 0) && n.startsWith("key")) && e.target === "_blank" && (
|
|
2896
|
-
let s = Io() &&
|
|
2895
|
+
Po() && (!((r = window.event) === null || r === void 0 || (n = r.type) === null || n === void 0) && n.startsWith("key")) && e.target === "_blank" && (du() ? o = !0 : i = !0);
|
|
2896
|
+
let s = Io() && du() && !Gn() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
|
|
2897
2897
|
keyIdentifier: "Enter",
|
|
2898
2898
|
metaKey: o,
|
|
2899
2899
|
ctrlKey: i,
|
|
@@ -2908,11 +2908,11 @@ function du(e, u, t = !0) {
|
|
|
2908
2908
|
bubbles: !0,
|
|
2909
2909
|
cancelable: !0
|
|
2910
2910
|
});
|
|
2911
|
-
|
|
2911
|
+
fu.isOpening = t, To(e), e.dispatchEvent(s), fu.isOpening = !1;
|
|
2912
2912
|
}
|
|
2913
|
-
|
|
2913
|
+
fu.isOpening = !1;
|
|
2914
2914
|
function Zn() {
|
|
2915
|
-
let e =
|
|
2915
|
+
let e = S(/* @__PURE__ */ new Map()), u = P((r, o, i, a) => {
|
|
2916
2916
|
let c = a?.once ? (...s) => {
|
|
2917
2917
|
e.current.delete(i), i(...s);
|
|
2918
2918
|
} : i;
|
|
@@ -2922,18 +2922,18 @@ function Zn() {
|
|
|
2922
2922
|
fn: c,
|
|
2923
2923
|
options: a
|
|
2924
2924
|
}), r.addEventListener(o, c, a);
|
|
2925
|
-
}, []), t =
|
|
2925
|
+
}, []), t = P((r, o, i, a) => {
|
|
2926
2926
|
var c;
|
|
2927
2927
|
let s = ((c = e.current.get(i)) === null || c === void 0 ? void 0 : c.fn) || i;
|
|
2928
2928
|
r.removeEventListener(o, s, a), e.current.delete(i);
|
|
2929
|
-
}, []), n =
|
|
2929
|
+
}, []), n = P(() => {
|
|
2930
2930
|
e.current.forEach((r, o) => {
|
|
2931
2931
|
t(r.eventTarget, r.type, o, r.options);
|
|
2932
2932
|
});
|
|
2933
2933
|
}, [
|
|
2934
2934
|
t
|
|
2935
2935
|
]);
|
|
2936
|
-
return
|
|
2936
|
+
return H(() => n, [
|
|
2937
2937
|
n
|
|
2938
2938
|
]), {
|
|
2939
2939
|
addGlobalListener: u,
|
|
@@ -2957,7 +2957,7 @@ function Oo(e, u) {
|
|
|
2957
2957
|
});
|
|
2958
2958
|
}
|
|
2959
2959
|
function Kn(e) {
|
|
2960
|
-
let u =
|
|
2960
|
+
let u = S({
|
|
2961
2961
|
isFocused: !1,
|
|
2962
2962
|
observer: null
|
|
2963
2963
|
});
|
|
@@ -2966,7 +2966,7 @@ function Kn(e) {
|
|
|
2966
2966
|
return () => {
|
|
2967
2967
|
t.observer && (t.observer.disconnect(), t.observer = null);
|
|
2968
2968
|
};
|
|
2969
|
-
}, []),
|
|
2969
|
+
}, []), P((t) => {
|
|
2970
2970
|
if (t.target instanceof HTMLButtonElement || t.target instanceof HTMLInputElement || t.target instanceof HTMLTextAreaElement || t.target instanceof HTMLSelectElement) {
|
|
2971
2971
|
u.current.isFocused = !0;
|
|
2972
2972
|
let n = t.target, r = (o) => {
|
|
@@ -3001,7 +3001,7 @@ function Kn(e) {
|
|
|
3001
3001
|
e
|
|
3002
3002
|
]);
|
|
3003
3003
|
}
|
|
3004
|
-
let qo = !1,
|
|
3004
|
+
let qo = !1, Cu = null, gt = /* @__PURE__ */ new Set(), cu = /* @__PURE__ */ new Map(), qe = !1, xt = !1;
|
|
3005
3005
|
const jo = {
|
|
3006
3006
|
Tab: !0,
|
|
3007
3007
|
Escape: !0
|
|
@@ -3010,40 +3010,40 @@ function Nt(e, u) {
|
|
|
3010
3010
|
for (let t of gt) t(e, u);
|
|
3011
3011
|
}
|
|
3012
3012
|
function Ho(e) {
|
|
3013
|
-
return !(e.metaKey || !
|
|
3013
|
+
return !(e.metaKey || !du() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
3014
3014
|
}
|
|
3015
|
-
function
|
|
3016
|
-
|
|
3015
|
+
function Pu(e) {
|
|
3016
|
+
qe = !0, !fu.isOpening && Ho(e) && (Cu = "keyboard", Nt("keyboard", e));
|
|
3017
3017
|
}
|
|
3018
3018
|
function ie(e) {
|
|
3019
|
-
|
|
3019
|
+
Cu = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (qe = !0, Nt("pointer", e));
|
|
3020
3020
|
}
|
|
3021
3021
|
function Yn(e) {
|
|
3022
|
-
!
|
|
3022
|
+
!fu.isOpening && Bo(e) && (qe = !0, Cu = "virtual");
|
|
3023
3023
|
}
|
|
3024
3024
|
function Jn(e) {
|
|
3025
|
-
e.target === window || e.target === document || qo || !e.isTrusted || (!
|
|
3025
|
+
e.target === window || e.target === document || qo || !e.isTrusted || (!qe && !xt && (Cu = "virtual", Nt("virtual", e)), qe = !1, xt = !1);
|
|
3026
3026
|
}
|
|
3027
3027
|
function Qn() {
|
|
3028
|
-
|
|
3028
|
+
qe = !1, xt = !0;
|
|
3029
3029
|
}
|
|
3030
3030
|
function kt(e) {
|
|
3031
|
-
if (typeof window > "u" || typeof document > "u" ||
|
|
3032
|
-
const u =
|
|
3031
|
+
if (typeof window > "u" || typeof document > "u" || cu.get(Pe(e))) return;
|
|
3032
|
+
const u = Pe(e), t = Me(e);
|
|
3033
3033
|
let n = u.HTMLElement.prototype.focus;
|
|
3034
3034
|
u.HTMLElement.prototype.focus = function() {
|
|
3035
|
-
|
|
3036
|
-
}, t.addEventListener("keydown",
|
|
3035
|
+
qe = !0, n.apply(this, arguments);
|
|
3036
|
+
}, t.addEventListener("keydown", Pu, !0), t.addEventListener("keyup", Pu, !0), t.addEventListener("click", Yn, !0), u.addEventListener("focus", Jn, !0), u.addEventListener("blur", Qn, !1), typeof PointerEvent < "u" ? (t.addEventListener("pointerdown", ie, !0), t.addEventListener("pointermove", ie, !0), t.addEventListener("pointerup", ie, !0)) : process.env.NODE_ENV === "test" && (t.addEventListener("mousedown", ie, !0), t.addEventListener("mousemove", ie, !0), t.addEventListener("mouseup", ie, !0)), u.addEventListener("beforeunload", () => {
|
|
3037
3037
|
Xn(e);
|
|
3038
3038
|
}, {
|
|
3039
3039
|
once: !0
|
|
3040
|
-
}),
|
|
3040
|
+
}), cu.set(u, {
|
|
3041
3041
|
focus: n
|
|
3042
3042
|
});
|
|
3043
3043
|
}
|
|
3044
3044
|
const Xn = (e, u) => {
|
|
3045
|
-
const t =
|
|
3046
|
-
u && n.removeEventListener("DOMContentLoaded", u),
|
|
3045
|
+
const t = Pe(e), n = Me(e);
|
|
3046
|
+
u && n.removeEventListener("DOMContentLoaded", u), cu.has(t) && (t.HTMLElement.prototype.focus = cu.get(t).focus, n.removeEventListener("keydown", Pu, !0), n.removeEventListener("keyup", Pu, !0), n.removeEventListener("click", Yn, !0), t.removeEventListener("focus", Jn, !0), t.removeEventListener("blur", Qn, !1), typeof PointerEvent < "u" ? (n.removeEventListener("pointerdown", ie, !0), n.removeEventListener("pointermove", ie, !0), n.removeEventListener("pointerup", ie, !0)) : process.env.NODE_ENV === "test" && (n.removeEventListener("mousedown", ie, !0), n.removeEventListener("mousemove", ie, !0), n.removeEventListener("mouseup", ie, !0)), cu.delete(t));
|
|
3047
3047
|
};
|
|
3048
3048
|
function Vo(e) {
|
|
3049
3049
|
const u = Me(e);
|
|
@@ -3054,7 +3054,7 @@ function Vo(e) {
|
|
|
3054
3054
|
}
|
|
3055
3055
|
typeof document < "u" && Vo();
|
|
3056
3056
|
function er() {
|
|
3057
|
-
return
|
|
3057
|
+
return Cu !== "pointer";
|
|
3058
3058
|
}
|
|
3059
3059
|
const Uo = /* @__PURE__ */ new Set([
|
|
3060
3060
|
"checkbox",
|
|
@@ -3069,11 +3069,11 @@ const Uo = /* @__PURE__ */ new Set([
|
|
|
3069
3069
|
]);
|
|
3070
3070
|
function Go(e, u, t) {
|
|
3071
3071
|
let n = Me(t?.target);
|
|
3072
|
-
const r = typeof window < "u" ?
|
|
3072
|
+
const r = typeof window < "u" ? Pe(t?.target).HTMLInputElement : HTMLInputElement, o = typeof window < "u" ? Pe(t?.target).HTMLTextAreaElement : HTMLTextAreaElement, i = typeof window < "u" ? Pe(t?.target).HTMLElement : HTMLElement, a = typeof window < "u" ? Pe(t?.target).KeyboardEvent : KeyboardEvent;
|
|
3073
3073
|
return e = e || n.activeElement instanceof r && !Uo.has(n.activeElement.type) || n.activeElement instanceof o || n.activeElement instanceof i && n.activeElement.isContentEditable, !(e && u === "keyboard" && t instanceof a && !jo[t.key]);
|
|
3074
3074
|
}
|
|
3075
3075
|
function Zo(e, u, t) {
|
|
3076
|
-
kt(),
|
|
3076
|
+
kt(), H(() => {
|
|
3077
3077
|
let n = (r, o) => {
|
|
3078
3078
|
Go(!!t?.isTextInput, r, o) && e(er());
|
|
3079
3079
|
};
|
|
@@ -3084,13 +3084,13 @@ function Zo(e, u, t) {
|
|
|
3084
3084
|
}
|
|
3085
3085
|
function Wo(e) {
|
|
3086
3086
|
let { isDisabled: u, onFocus: t, onBlur: n, onFocusChange: r } = e;
|
|
3087
|
-
const o =
|
|
3087
|
+
const o = P((c) => {
|
|
3088
3088
|
if (c.target === c.currentTarget)
|
|
3089
3089
|
return n && n(c), r && r(!1), !0;
|
|
3090
3090
|
}, [
|
|
3091
3091
|
n,
|
|
3092
3092
|
r
|
|
3093
|
-
]), i = Kn(o), a =
|
|
3093
|
+
]), i = Kn(o), a = P((c) => {
|
|
3094
3094
|
const s = Me(c.target), l = s ? mt(s) : mt();
|
|
3095
3095
|
c.target === c.currentTarget && l === Un(c.nativeEvent) && (t && t(c), r && r(!0), i(c));
|
|
3096
3096
|
}, [
|
|
@@ -3106,16 +3106,16 @@ function Wo(e) {
|
|
|
3106
3106
|
};
|
|
3107
3107
|
}
|
|
3108
3108
|
function Ko(e) {
|
|
3109
|
-
let { isDisabled: u, onBlurWithin: t, onFocusWithin: n, onFocusWithinChange: r } = e, o =
|
|
3109
|
+
let { isDisabled: u, onBlurWithin: t, onFocusWithin: n, onFocusWithinChange: r } = e, o = S({
|
|
3110
3110
|
isFocusWithin: !1
|
|
3111
|
-
}), { addGlobalListener: i, removeAllGlobalListeners: a } = Zn(), c =
|
|
3111
|
+
}), { addGlobalListener: i, removeAllGlobalListeners: a } = Zn(), c = P((d) => {
|
|
3112
3112
|
d.currentTarget.contains(d.target) && o.current.isFocusWithin && !d.currentTarget.contains(d.relatedTarget) && (o.current.isFocusWithin = !1, a(), t && t(d), r && r(!1));
|
|
3113
3113
|
}, [
|
|
3114
3114
|
t,
|
|
3115
3115
|
r,
|
|
3116
3116
|
o,
|
|
3117
3117
|
a
|
|
3118
|
-
]), s = Kn(c), l =
|
|
3118
|
+
]), s = Kn(c), l = P((d) => {
|
|
3119
3119
|
if (!d.currentTarget.contains(d.target)) return;
|
|
3120
3120
|
const p = Me(d.target), h = mt(p);
|
|
3121
3121
|
if (!o.current.isFocusWithin && h === Un(d.nativeEvent)) {
|
|
@@ -3154,10 +3154,10 @@ function Ko(e) {
|
|
|
3154
3154
|
}
|
|
3155
3155
|
};
|
|
3156
3156
|
}
|
|
3157
|
-
let
|
|
3157
|
+
let Bu = !1, Tu = 0;
|
|
3158
3158
|
function Ct() {
|
|
3159
|
-
|
|
3160
|
-
|
|
3159
|
+
Bu = !0, setTimeout(() => {
|
|
3160
|
+
Bu = !1;
|
|
3161
3161
|
}, 50);
|
|
3162
3162
|
}
|
|
3163
3163
|
function en(e) {
|
|
@@ -3165,18 +3165,18 @@ function en(e) {
|
|
|
3165
3165
|
}
|
|
3166
3166
|
function Yo() {
|
|
3167
3167
|
if (!(typeof document > "u"))
|
|
3168
|
-
return
|
|
3169
|
-
|
|
3168
|
+
return Tu === 0 && (typeof PointerEvent < "u" ? document.addEventListener("pointerup", en) : process.env.NODE_ENV === "test" && document.addEventListener("touchend", Ct)), Tu++, () => {
|
|
3169
|
+
Tu--, !(Tu > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", en) : process.env.NODE_ENV === "test" && document.removeEventListener("touchend", Ct));
|
|
3170
3170
|
};
|
|
3171
3171
|
}
|
|
3172
3172
|
function ur(e) {
|
|
3173
|
-
let { onHoverStart: u, onHoverChange: t, onHoverEnd: n, isDisabled: r } = e, [o, i] =
|
|
3173
|
+
let { onHoverStart: u, onHoverChange: t, onHoverEnd: n, isDisabled: r } = e, [o, i] = V(!1), a = S({
|
|
3174
3174
|
isHovered: !1,
|
|
3175
3175
|
ignoreEmulatedMouseEvents: !1,
|
|
3176
3176
|
pointerType: "",
|
|
3177
3177
|
target: null
|
|
3178
3178
|
}).current;
|
|
3179
|
-
|
|
3179
|
+
H(Yo, []);
|
|
3180
3180
|
let { addGlobalListener: c, removeAllGlobalListeners: s } = Zn(), { hoverProps: l, triggerHoverEnd: d } = Se(() => {
|
|
3181
3181
|
let p = (m, b) => {
|
|
3182
3182
|
if (a.pointerType = b, r || b === "touch" || a.isHovered || !m.currentTarget.contains(m.target)) return;
|
|
@@ -3200,13 +3200,13 @@ function ur(e) {
|
|
|
3200
3200
|
}), t && t(!1), i(!1));
|
|
3201
3201
|
}, f = {};
|
|
3202
3202
|
return typeof PointerEvent < "u" ? (f.onPointerEnter = (m) => {
|
|
3203
|
-
|
|
3203
|
+
Bu && m.pointerType === "mouse" || p(m, m.pointerType);
|
|
3204
3204
|
}, f.onPointerLeave = (m) => {
|
|
3205
3205
|
!r && m.currentTarget.contains(m.target) && h(m, m.pointerType);
|
|
3206
3206
|
}) : process.env.NODE_ENV === "test" && (f.onTouchStart = () => {
|
|
3207
3207
|
a.ignoreEmulatedMouseEvents = !0;
|
|
3208
3208
|
}, f.onMouseEnter = (m) => {
|
|
3209
|
-
!a.ignoreEmulatedMouseEvents && !
|
|
3209
|
+
!a.ignoreEmulatedMouseEvents && !Bu && p(m, "mouse"), a.ignoreEmulatedMouseEvents = !1;
|
|
3210
3210
|
}, f.onMouseLeave = (m) => {
|
|
3211
3211
|
!r && m.currentTarget.contains(m.target) && h(m, "mouse");
|
|
3212
3212
|
}), {
|
|
@@ -3222,7 +3222,7 @@ function ur(e) {
|
|
|
3222
3222
|
c,
|
|
3223
3223
|
s
|
|
3224
3224
|
]);
|
|
3225
|
-
return
|
|
3225
|
+
return H(() => {
|
|
3226
3226
|
r && d({
|
|
3227
3227
|
currentTarget: a.target
|
|
3228
3228
|
}, a.pointerType);
|
|
@@ -3234,10 +3234,10 @@ function ur(e) {
|
|
|
3234
3234
|
};
|
|
3235
3235
|
}
|
|
3236
3236
|
function tr(e = {}) {
|
|
3237
|
-
let { autoFocus: u = !1, isTextInput: t, within: n } = e, r =
|
|
3237
|
+
let { autoFocus: u = !1, isTextInput: t, within: n } = e, r = S({
|
|
3238
3238
|
isFocused: !1,
|
|
3239
3239
|
isFocusVisible: u || er()
|
|
3240
|
-
}), [o, i] =
|
|
3240
|
+
}), [o, i] = V(!1), [a, c] = V(() => r.current.isFocused && r.current.isFocusVisible), s = P(() => c(r.current.isFocused && r.current.isFocusVisible), []), l = P((h) => {
|
|
3241
3241
|
r.current.isFocused = h, i(h), s();
|
|
3242
3242
|
}, [
|
|
3243
3243
|
s
|
|
@@ -3289,10 +3289,10 @@ let Xo = class {
|
|
|
3289
3289
|
get isHandoffComplete() {
|
|
3290
3290
|
return this.handoffState === "complete";
|
|
3291
3291
|
}
|
|
3292
|
-
},
|
|
3292
|
+
}, su = new Xo();
|
|
3293
3293
|
function ei(e) {
|
|
3294
3294
|
var u;
|
|
3295
|
-
return
|
|
3295
|
+
return su.isServer ? null : e == null ? document : (u = e?.ownerDocument) != null ? u : document;
|
|
3296
3296
|
}
|
|
3297
3297
|
function ui(e) {
|
|
3298
3298
|
typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((u) => setTimeout(() => {
|
|
@@ -3336,14 +3336,14 @@ function Vu() {
|
|
|
3336
3336
|
return u;
|
|
3337
3337
|
}
|
|
3338
3338
|
function It() {
|
|
3339
|
-
let [e] =
|
|
3340
|
-
return
|
|
3339
|
+
let [e] = V(Vu);
|
|
3340
|
+
return H(() => () => e.dispose(), [e]), e;
|
|
3341
3341
|
}
|
|
3342
3342
|
let ge = (e, u) => {
|
|
3343
|
-
|
|
3343
|
+
su.isServer ? H(e, u) : xu(e, u);
|
|
3344
3344
|
};
|
|
3345
3345
|
function nr(e) {
|
|
3346
|
-
let u =
|
|
3346
|
+
let u = S(e);
|
|
3347
3347
|
return ge(() => {
|
|
3348
3348
|
u.current = e;
|
|
3349
3349
|
}, [e]), u;
|
|
@@ -3360,7 +3360,7 @@ function ni(e, u) {
|
|
|
3360
3360
|
return !(!e || !u || e.right < u.left || e.left > u.right || e.bottom < u.top || e.top > u.bottom);
|
|
3361
3361
|
}
|
|
3362
3362
|
function ri({ disabled: e = !1 } = {}) {
|
|
3363
|
-
let u =
|
|
3363
|
+
let u = S(null), [t, n] = V(!1), r = It(), o = ae(() => {
|
|
3364
3364
|
u.current = null, n(!1), r.dispose();
|
|
3365
3365
|
}), i = ae((a) => {
|
|
3366
3366
|
if (r.dispose(), u.current === null) {
|
|
@@ -3381,7 +3381,7 @@ function ri({ disabled: e = !1 } = {}) {
|
|
|
3381
3381
|
function Uu(e) {
|
|
3382
3382
|
return Se(() => e, Object.values(e));
|
|
3383
3383
|
}
|
|
3384
|
-
let oi =
|
|
3384
|
+
let oi = He(void 0);
|
|
3385
3385
|
function Gu() {
|
|
3386
3386
|
return xe(oi);
|
|
3387
3387
|
}
|
|
@@ -3397,30 +3397,30 @@ function Zu(e, u, ...t) {
|
|
|
3397
3397
|
throw Error.captureStackTrace && Error.captureStackTrace(n, Zu), n;
|
|
3398
3398
|
}
|
|
3399
3399
|
var rr = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(rr || {}), De = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(De || {});
|
|
3400
|
-
function
|
|
3400
|
+
function uu() {
|
|
3401
3401
|
let e = ai();
|
|
3402
|
-
return
|
|
3402
|
+
return P((u) => ii({ mergeRefs: e, ...u }), [e]);
|
|
3403
3403
|
}
|
|
3404
3404
|
function ii({ ourProps: e, theirProps: u, slot: t, defaultTag: n, features: r, visible: o = !0, name: i, mergeRefs: a }) {
|
|
3405
3405
|
a = a ?? ci;
|
|
3406
3406
|
let c = or(u, e);
|
|
3407
|
-
if (o) return
|
|
3407
|
+
if (o) return Su(c, t, n, i, a);
|
|
3408
3408
|
let s = r ?? 0;
|
|
3409
3409
|
if (s & 2) {
|
|
3410
3410
|
let { static: l = !1, ...d } = c;
|
|
3411
|
-
if (l) return
|
|
3411
|
+
if (l) return Su(d, t, n, i, a);
|
|
3412
3412
|
}
|
|
3413
3413
|
if (s & 1) {
|
|
3414
3414
|
let { unmount: l = !0, ...d } = c;
|
|
3415
3415
|
return Zu(l ? 0 : 1, { 0() {
|
|
3416
3416
|
return null;
|
|
3417
3417
|
}, 1() {
|
|
3418
|
-
return
|
|
3418
|
+
return Su({ ...d, hidden: !0, style: { display: "none" } }, t, n, i, a);
|
|
3419
3419
|
} });
|
|
3420
3420
|
}
|
|
3421
|
-
return
|
|
3421
|
+
return Su(c, t, n, i, a);
|
|
3422
3422
|
}
|
|
3423
|
-
function
|
|
3423
|
+
function Su(e, u = {}, t, n, r) {
|
|
3424
3424
|
let { as: o = t, children: i, refName: a = "ref", ...c } = at(e, ["unmount", "static"]), s = e.ref !== void 0 ? { [a]: e.ref } : {}, l = typeof i == "function" ? i(u) : i;
|
|
3425
3425
|
"className" in c && c.className && typeof c.className == "function" && (c.className = c.className(u)), c["aria-labelledby"] && c["aria-labelledby"] === c.id && (c["aria-labelledby"] = void 0);
|
|
3426
3426
|
let d = {};
|
|
@@ -3432,20 +3432,20 @@ function Tu(e, u = {}, t, n, r) {
|
|
|
3432
3432
|
for (let f of h) d[`data-${f}`] = "";
|
|
3433
3433
|
}
|
|
3434
3434
|
}
|
|
3435
|
-
if (
|
|
3436
|
-
if (Object.keys(
|
|
3435
|
+
if (lu(o) && (Object.keys(ze(c)).length > 0 || Object.keys(ze(d)).length > 0)) if (!i0(l) || Array.isArray(l) && l.length > 1 || li(l)) {
|
|
3436
|
+
if (Object.keys(ze(c)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${n} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(ze(c)).concat(Object.keys(ze(d))).map((p) => ` - ${p}`).join(`
|
|
3437
3437
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((p) => ` - ${p}`).join(`
|
|
3438
3438
|
`)].join(`
|
|
3439
3439
|
`));
|
|
3440
3440
|
} else {
|
|
3441
|
-
let p = l.props, h = p?.className, f = typeof h == "function" ? (...C) => vt(h(...C), c.className) : vt(h, c.className), m = f ? { className: f } : {}, b = or(l.props,
|
|
3441
|
+
let p = l.props, h = p?.className, f = typeof h == "function" ? (...C) => vt(h(...C), c.className) : vt(h, c.className), m = f ? { className: f } : {}, b = or(l.props, ze(at(c, ["ref"])));
|
|
3442
3442
|
for (let C in d) C in b && delete d[C];
|
|
3443
3443
|
return a0(l, Object.assign({}, b, d, s, { ref: r(si(l), s.ref) }, m));
|
|
3444
3444
|
}
|
|
3445
|
-
return
|
|
3445
|
+
return Iu(o, Object.assign({}, at(c, ["ref"]), !lu(o) && s, !lu(o) && d), l);
|
|
3446
3446
|
}
|
|
3447
3447
|
function ai() {
|
|
3448
|
-
let e =
|
|
3448
|
+
let e = S([]), u = P((t) => {
|
|
3449
3449
|
for (let n of e.current) n != null && (typeof n == "function" ? n(t) : n.current = t);
|
|
3450
3450
|
}, []);
|
|
3451
3451
|
return (...t) => {
|
|
@@ -3486,11 +3486,11 @@ function ir(...e) {
|
|
|
3486
3486
|
} });
|
|
3487
3487
|
return u;
|
|
3488
3488
|
}
|
|
3489
|
-
function
|
|
3489
|
+
function Ve(e) {
|
|
3490
3490
|
var u;
|
|
3491
3491
|
return Object.assign(Ft(e), { displayName: (u = e.displayName) != null ? u : e.name });
|
|
3492
3492
|
}
|
|
3493
|
-
function
|
|
3493
|
+
function ze(e) {
|
|
3494
3494
|
let u = Object.assign({}, e);
|
|
3495
3495
|
for (let t in u) u[t] === void 0 && delete u[t];
|
|
3496
3496
|
return u;
|
|
@@ -3503,19 +3503,19 @@ function at(e, u = []) {
|
|
|
3503
3503
|
function si(e) {
|
|
3504
3504
|
return ue.version.split(".")[0] >= "19" ? e.props.ref : e.ref;
|
|
3505
3505
|
}
|
|
3506
|
-
function
|
|
3507
|
-
return e ===
|
|
3506
|
+
function lu(e) {
|
|
3507
|
+
return e === Nu || e === /* @__PURE__ */ Symbol.for("react.fragment");
|
|
3508
3508
|
}
|
|
3509
3509
|
function li(e) {
|
|
3510
|
-
return
|
|
3510
|
+
return lu(e.type);
|
|
3511
3511
|
}
|
|
3512
3512
|
let di = "button";
|
|
3513
3513
|
function fi(e, u) {
|
|
3514
3514
|
var t;
|
|
3515
3515
|
let n = Gu(), { disabled: r = n || !1, autoFocus: o = !1, ...i } = e, { isFocusVisible: a, focusProps: c } = tr({ autoFocus: o }), { isHovered: s, hoverProps: l } = ur({ isDisabled: r }), { pressed: d, pressProps: p } = ri({ disabled: r }), h = ir({ ref: u, type: (t = i.type) != null ? t : "button", disabled: r || void 0, autoFocus: o }, c, l, p), f = Uu({ disabled: r, hover: s, focus: a, active: d, autofocus: o });
|
|
3516
|
-
return
|
|
3516
|
+
return uu()({ ourProps: h, theirProps: i, slot: f, defaultTag: di, name: "Button" });
|
|
3517
3517
|
}
|
|
3518
|
-
let J =
|
|
3518
|
+
let J = Ve(fi), hi = He(void 0);
|
|
3519
3519
|
function ar() {
|
|
3520
3520
|
return xe(hi);
|
|
3521
3521
|
}
|
|
@@ -3539,8 +3539,8 @@ function mi(e) {
|
|
|
3539
3539
|
}
|
|
3540
3540
|
let gi = /* @__PURE__ */ Symbol();
|
|
3541
3541
|
function Wu(...e) {
|
|
3542
|
-
let u =
|
|
3543
|
-
|
|
3542
|
+
let u = S(e);
|
|
3543
|
+
H(() => {
|
|
3544
3544
|
u.current = e;
|
|
3545
3545
|
}, [e]);
|
|
3546
3546
|
let t = ae((n) => {
|
|
@@ -3548,7 +3548,7 @@ function Wu(...e) {
|
|
|
3548
3548
|
});
|
|
3549
3549
|
return e.every((n) => n == null || n?.[gi]) ? void 0 : t;
|
|
3550
3550
|
}
|
|
3551
|
-
let Rt =
|
|
3551
|
+
let Rt = He(null);
|
|
3552
3552
|
Rt.displayName = "DescriptionContext";
|
|
3553
3553
|
function lr() {
|
|
3554
3554
|
let e = xe(Rt);
|
|
@@ -3567,11 +3567,11 @@ function Ci(e, u) {
|
|
|
3567
3567
|
let t = At(), n = Gu(), { id: r = `headlessui-description-${t}`, ...o } = e, i = lr(), a = Wu(u);
|
|
3568
3568
|
ge(() => i.register(r), [r, i.register]);
|
|
3569
3569
|
let c = Uu({ ...i.slot, disabled: n || !1 }), s = { ref: a, ...i.props, id: r };
|
|
3570
|
-
return
|
|
3570
|
+
return uu()({ ourProps: s, theirProps: o, slot: c, defaultTag: ki, name: i.name || "Description" });
|
|
3571
3571
|
}
|
|
3572
|
-
let vi =
|
|
3572
|
+
let vi = Ve(Ci);
|
|
3573
3573
|
Object.assign(vi, {});
|
|
3574
|
-
let zt =
|
|
3574
|
+
let zt = He(null);
|
|
3575
3575
|
zt.displayName = "LabelContext";
|
|
3576
3576
|
function dr() {
|
|
3577
3577
|
let e = xe(zt);
|
|
@@ -3604,12 +3604,12 @@ function wi(e, u) {
|
|
|
3604
3604
|
}
|
|
3605
3605
|
}
|
|
3606
3606
|
}), h = Uu({ ...r.slot, disabled: i || !1 }), f = { ref: d, ...r.props, id: a, htmlFor: c, onClick: p };
|
|
3607
|
-
return s && ("onClick" in f && (delete f.htmlFor, delete f.onClick), "onClick" in l && delete l.onClick),
|
|
3607
|
+
return s && ("onClick" in f && (delete f.htmlFor, delete f.onClick), "onClick" in l && delete l.onClick), uu()({ ourProps: f, theirProps: l, slot: h, defaultTag: c ? _i : "div", name: r.name || "Label" });
|
|
3608
3608
|
}
|
|
3609
|
-
let Ei =
|
|
3609
|
+
let Ei = Ve(wi);
|
|
3610
3610
|
Object.assign(Ei, {});
|
|
3611
3611
|
function Fi(e = 0) {
|
|
3612
|
-
let [u, t] =
|
|
3612
|
+
let [u, t] = V(e), n = P((c) => t(c), []), r = P((c) => t((s) => s | c), []), o = P((c) => (u & c) === c, [u]), i = P((c) => t((s) => s & ~c), []), a = P((c) => t((s) => s ^ c), []);
|
|
3613
3613
|
return { flags: u, setFlag: n, addFlag: r, hasFlag: o, removeFlag: i, toggleFlag: a };
|
|
3614
3614
|
}
|
|
3615
3615
|
var tn, nn;
|
|
@@ -3624,7 +3624,7 @@ function Di(e) {
|
|
|
3624
3624
|
return u;
|
|
3625
3625
|
}
|
|
3626
3626
|
function Ti(e, u, t, n) {
|
|
3627
|
-
let [r, o] =
|
|
3627
|
+
let [r, o] = V(t), { hasFlag: i, addFlag: a, removeFlag: c } = Fi(e && r ? 3 : 0), s = S(!1), l = S(!1), d = It();
|
|
3628
3628
|
return ge(() => {
|
|
3629
3629
|
var p;
|
|
3630
3630
|
if (e) {
|
|
@@ -3676,9 +3676,9 @@ function Li(e) {
|
|
|
3676
3676
|
var u, t;
|
|
3677
3677
|
return ((t = (u = e.getAnimations) == null ? void 0 : u.call(e)) != null ? t : []).some((n) => n instanceof CSSTransition && n.playState !== "finished");
|
|
3678
3678
|
}
|
|
3679
|
-
let Pt =
|
|
3679
|
+
let Pt = He(null);
|
|
3680
3680
|
Pt.displayName = "OpenClosedContext";
|
|
3681
|
-
var
|
|
3681
|
+
var Be = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Be || {});
|
|
3682
3682
|
function fr() {
|
|
3683
3683
|
return xe(Pt);
|
|
3684
3684
|
}
|
|
@@ -3687,26 +3687,26 @@ function Ni({ value: e, children: u }) {
|
|
|
3687
3687
|
}
|
|
3688
3688
|
function Ii() {
|
|
3689
3689
|
let e = typeof document > "u";
|
|
3690
|
-
return "useSyncExternalStore" in
|
|
3690
|
+
return "useSyncExternalStore" in q ? ((u) => u.useSyncExternalStore)(q)(() => () => {
|
|
3691
3691
|
}, () => !1, () => !e) : !1;
|
|
3692
3692
|
}
|
|
3693
3693
|
function hr() {
|
|
3694
|
-
let e = Ii(), [u, t] =
|
|
3695
|
-
return u &&
|
|
3694
|
+
let e = Ii(), [u, t] = q.useState(su.isHandoffComplete);
|
|
3695
|
+
return u && su.isHandoffComplete === !1 && t(!1), q.useEffect(() => {
|
|
3696
3696
|
u !== !0 && t(!0);
|
|
3697
|
-
}, [u]),
|
|
3697
|
+
}, [u]), q.useEffect(() => su.handoff(), []), e ? !1 : u;
|
|
3698
3698
|
}
|
|
3699
3699
|
function Ri() {
|
|
3700
|
-
let e =
|
|
3700
|
+
let e = S(!1);
|
|
3701
3701
|
return ge(() => (e.current = !0, () => {
|
|
3702
3702
|
e.current = !1;
|
|
3703
3703
|
}), []), e;
|
|
3704
3704
|
}
|
|
3705
3705
|
function pr(e) {
|
|
3706
3706
|
var u;
|
|
3707
|
-
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !
|
|
3707
|
+
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !lu((u = e.as) != null ? u : mr) || ue.Children.count(e.children) === 1;
|
|
3708
3708
|
}
|
|
3709
|
-
let Ku =
|
|
3709
|
+
let Ku = He(null);
|
|
3710
3710
|
Ku.displayName = "TransitionContext";
|
|
3711
3711
|
var zi = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(zi || {});
|
|
3712
3712
|
function Pi() {
|
|
@@ -3719,13 +3719,13 @@ function Bi() {
|
|
|
3719
3719
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
3720
3720
|
return e;
|
|
3721
3721
|
}
|
|
3722
|
-
let Yu =
|
|
3722
|
+
let Yu = He(null);
|
|
3723
3723
|
Yu.displayName = "NestingContext";
|
|
3724
3724
|
function Ju(e) {
|
|
3725
3725
|
return "children" in e ? Ju(e.children) : e.current.filter(({ el: u }) => u.current !== null).filter(({ state: u }) => u === "visible").length > 0;
|
|
3726
3726
|
}
|
|
3727
3727
|
function br(e, u) {
|
|
3728
|
-
let t = nr(e), n =
|
|
3728
|
+
let t = nr(e), n = S([]), r = Ri(), o = It(), i = ae((h, f = De.Hidden) => {
|
|
3729
3729
|
let m = n.current.findIndex(({ el: b }) => b === h);
|
|
3730
3730
|
m !== -1 && (Zu(f, { [De.Unmount]() {
|
|
3731
3731
|
n.current.splice(m, 1);
|
|
@@ -3738,7 +3738,7 @@ function br(e, u) {
|
|
|
3738
3738
|
}), a = ae((h) => {
|
|
3739
3739
|
let f = n.current.find(({ el: m }) => m === h);
|
|
3740
3740
|
return f ? f.state !== "visible" && (f.state = "visible") : n.current.push({ el: h, state: "visible" }), () => i(h, De.Unmount);
|
|
3741
|
-
}), c =
|
|
3741
|
+
}), c = S([]), s = S(Promise.resolve()), l = S({ enter: [], leave: [] }), d = ae((h, f, m) => {
|
|
3742
3742
|
c.current.splice(0), u && (u.chains.current[f] = u.chains.current[f].filter(([b]) => b !== h)), u?.chains.current[f].push([h, new Promise((b) => {
|
|
3743
3743
|
c.current.push(b);
|
|
3744
3744
|
})]), u?.chains.current[f].push([h, new Promise((b) => {
|
|
@@ -3752,53 +3752,53 @@ function br(e, u) {
|
|
|
3752
3752
|
});
|
|
3753
3753
|
return Se(() => ({ children: n, register: a, unregister: i, onStart: d, onStop: p, wait: s, chains: l }), [a, i, n, d, p, l, s]);
|
|
3754
3754
|
}
|
|
3755
|
-
let mr =
|
|
3755
|
+
let mr = Nu, gr = rr.RenderStrategy;
|
|
3756
3756
|
function Oi(e, u) {
|
|
3757
3757
|
var t, n;
|
|
3758
|
-
let { transition: r = !0, beforeEnter: o, afterEnter: i, beforeLeave: a, afterLeave: c, enter: s, enterFrom: l, enterTo: d, entered: p, leave: h, leaveFrom: f, leaveTo: m, ...b } = e, [C, g] =
|
|
3758
|
+
let { transition: r = !0, beforeEnter: o, afterEnter: i, beforeLeave: a, afterLeave: c, enter: s, enterFrom: l, enterTo: d, entered: p, leave: h, leaveFrom: f, leaveTo: m, ...b } = e, [C, g] = V(null), k = S(null), v = pr(e), _ = Wu(...v ? [k, u, g] : u === null ? [] : [u]), E = (t = b.unmount) == null || t ? De.Unmount : De.Hidden, { show: w, appear: y, initial: I } = Pi(), [M, L] = V(w ? "visible" : "hidden"), Q = Bi(), { register: X, unregister: Y } = Q;
|
|
3759
3759
|
ge(() => X(k), [X, k]), ge(() => {
|
|
3760
3760
|
if (E === De.Hidden && k.current) {
|
|
3761
|
-
if (
|
|
3761
|
+
if (w && M !== "visible") {
|
|
3762
3762
|
L("visible");
|
|
3763
3763
|
return;
|
|
3764
3764
|
}
|
|
3765
|
-
return Zu(
|
|
3765
|
+
return Zu(M, { hidden: () => Y(k), visible: () => X(k) });
|
|
3766
3766
|
}
|
|
3767
|
-
}, [
|
|
3768
|
-
let
|
|
3767
|
+
}, [M, k, X, Y, w, E]);
|
|
3768
|
+
let O = hr();
|
|
3769
3769
|
ge(() => {
|
|
3770
|
-
if (v &&
|
|
3771
|
-
}, [k,
|
|
3772
|
-
let
|
|
3773
|
-
D.current || (L("hidden"),
|
|
3774
|
-
},
|
|
3770
|
+
if (v && O && M === "visible" && k.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
3771
|
+
}, [k, M, O, v]);
|
|
3772
|
+
let G = I && !y, ee = y && w && I, D = S(!1), fe = br(() => {
|
|
3773
|
+
D.current || (L("hidden"), Y(k));
|
|
3774
|
+
}, Q), Le = ae((R) => {
|
|
3775
3775
|
D.current = !0;
|
|
3776
|
-
let
|
|
3777
|
-
fe.onStart(k,
|
|
3776
|
+
let he = R ? "enter" : "leave";
|
|
3777
|
+
fe.onStart(k, he, (pe) => {
|
|
3778
3778
|
pe === "enter" ? o?.() : pe === "leave" && a?.();
|
|
3779
3779
|
});
|
|
3780
|
-
}),
|
|
3781
|
-
let
|
|
3782
|
-
D.current = !1, fe.onStop(k,
|
|
3780
|
+
}), Ne = ae((R) => {
|
|
3781
|
+
let he = R ? "enter" : "leave";
|
|
3782
|
+
D.current = !1, fe.onStop(k, he, (pe) => {
|
|
3783
3783
|
pe === "enter" ? i?.() : pe === "leave" && c?.();
|
|
3784
|
-
}),
|
|
3784
|
+
}), he === "leave" && !Ju(fe) && (L("hidden"), Y(k));
|
|
3785
3785
|
});
|
|
3786
|
-
|
|
3787
|
-
v && r || (
|
|
3788
|
-
}, [
|
|
3789
|
-
let
|
|
3790
|
-
|
|
3791
|
-
let
|
|
3792
|
-
return ue.createElement(Yu.Provider, { value: fe }, ue.createElement(Ni, { value:
|
|
3786
|
+
H(() => {
|
|
3787
|
+
v && r || (Le(w), Ne(w));
|
|
3788
|
+
}, [w, v, r]);
|
|
3789
|
+
let we = !(!r || !v || !O || G), [, z] = Ti(we, C, w, { start: Le, end: Ne }), T = ze({ ref: _, className: ((n = vt(b.className, ee && s, ee && l, z.enter && s, z.enter && z.closed && l, z.enter && !z.closed && d, z.leave && h, z.leave && !z.closed && f, z.leave && z.closed && m, !z.transition && w && p)) == null ? void 0 : n.trim()) || void 0, ...Di(z) }), B = 0;
|
|
3790
|
+
M === "visible" && (B |= Be.Open), M === "hidden" && (B |= Be.Closed), w && M === "hidden" && (B |= Be.Opening), !w && M === "visible" && (B |= Be.Closing);
|
|
3791
|
+
let re = uu();
|
|
3792
|
+
return ue.createElement(Yu.Provider, { value: fe }, ue.createElement(Ni, { value: B }, re({ ourProps: T, theirProps: b, defaultTag: mr, features: gr, visible: M === "visible", name: "Transition.Child" })));
|
|
3793
3793
|
}
|
|
3794
3794
|
function qi(e, u) {
|
|
3795
|
-
let { show: t, appear: n = !1, unmount: r = !0, ...o } = e, i =
|
|
3795
|
+
let { show: t, appear: n = !1, unmount: r = !0, ...o } = e, i = S(null), a = pr(e), c = Wu(...a ? [i, u] : u === null ? [] : [u]);
|
|
3796
3796
|
hr();
|
|
3797
3797
|
let s = fr();
|
|
3798
|
-
if (t === void 0 && s !== null && (t = (s &
|
|
3799
|
-
let [l, d] =
|
|
3798
|
+
if (t === void 0 && s !== null && (t = (s & Be.Open) === Be.Open), t === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
3799
|
+
let [l, d] = V(t ? "visible" : "hidden"), p = br(() => {
|
|
3800
3800
|
t || d("hidden");
|
|
3801
|
-
}), [h, f] =
|
|
3801
|
+
}), [h, f] = V(!0), m = S([t]);
|
|
3802
3802
|
ge(() => {
|
|
3803
3803
|
h !== !1 && m.current[m.current.length - 1] !== t && (m.current.push(t), f(!1));
|
|
3804
3804
|
}, [m, t]);
|
|
@@ -3807,25 +3807,25 @@ function qi(e, u) {
|
|
|
3807
3807
|
t ? d("visible") : !Ju(p) && i.current !== null && d("hidden");
|
|
3808
3808
|
}, [t, p]);
|
|
3809
3809
|
let C = { unmount: r }, g = ae(() => {
|
|
3810
|
-
var
|
|
3811
|
-
h && f(!1), (
|
|
3810
|
+
var _;
|
|
3811
|
+
h && f(!1), (_ = e.beforeEnter) == null || _.call(e);
|
|
3812
3812
|
}), k = ae(() => {
|
|
3813
|
-
var
|
|
3814
|
-
h && f(!1), (
|
|
3815
|
-
}), v =
|
|
3816
|
-
return ue.createElement(Yu.Provider, { value: p }, ue.createElement(Ku.Provider, { value: b }, v({ ourProps: { ...C, as:
|
|
3813
|
+
var _;
|
|
3814
|
+
h && f(!1), (_ = e.beforeLeave) == null || _.call(e);
|
|
3815
|
+
}), v = uu();
|
|
3816
|
+
return ue.createElement(Yu.Provider, { value: p }, ue.createElement(Ku.Provider, { value: b }, v({ ourProps: { ...C, as: Nu, children: ue.createElement(xr, { ref: c, ...C, ...o, beforeEnter: g, beforeLeave: k }) }, theirProps: {}, defaultTag: Nu, features: gr, visible: l === "visible", name: "Transition" })));
|
|
3817
3817
|
}
|
|
3818
3818
|
function ji(e, u) {
|
|
3819
3819
|
let t = xe(Ku) !== null, n = fr() !== null;
|
|
3820
3820
|
return ue.createElement(ue.Fragment, null, !t && n ? ue.createElement(yt, { ref: u, ...e }) : ue.createElement(xr, { ref: u, ...e }));
|
|
3821
3821
|
}
|
|
3822
|
-
let yt =
|
|
3822
|
+
let yt = Ve(qi), xr = Ve(Oi), Hi = Ve(ji), rn = Object.assign(yt, { Child: Hi, Root: yt }), Vi = "textarea";
|
|
3823
3823
|
function Ui(e, u) {
|
|
3824
3824
|
let t = At(), n = ar(), r = Gu(), { id: o = n || `headlessui-textarea-${t}`, disabled: i = r || !1, autoFocus: a = !1, invalid: c = !1, ...s } = e, l = yi(), d = xi(), { isFocused: p, focusProps: h } = tr({ autoFocus: a }), { isHovered: f, hoverProps: m } = ur({ isDisabled: i }), b = ir({ ref: u, id: o, "aria-labelledby": l, "aria-describedby": d, "aria-invalid": c ? "true" : void 0, disabled: i || void 0, autoFocus: a }, h, m), C = Uu({ disabled: i, invalid: c, hover: f, focus: p, autofocus: a });
|
|
3825
|
-
return
|
|
3825
|
+
return uu()({ ourProps: b, theirProps: s, slot: C, defaultTag: Vi, name: "Textarea" });
|
|
3826
3826
|
}
|
|
3827
|
-
let Gi =
|
|
3828
|
-
const Zi = (e) => /* @__PURE__ */
|
|
3827
|
+
let Gi = Ve(Ui);
|
|
3828
|
+
const Zi = (e) => /* @__PURE__ */ q.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M8 1.25C6.66498 1.25 5.35994 1.64588 4.2499 2.38758C3.13987 3.12928 2.27471 4.18349 1.76382 5.41689C1.25292 6.65029 1.11925 8.00749 1.3797 9.31686C1.64015 10.6262 2.28303 11.829 3.22703 12.773C4.17104 13.717 5.37377 14.3598 6.68314 14.6203C7.99252 14.8808 9.34971 14.7471 10.5831 14.2362C11.8165 13.7253 12.8707 12.8601 13.6124 11.7501C14.3541 10.6401 14.75 9.33502 14.75 8C14.748 6.2104 14.0362 4.49466 12.7708 3.22922C11.5053 1.96378 9.78961 1.25199 8 1.25ZM8 13.25C6.96165 13.25 5.94662 12.9421 5.08326 12.3652C4.2199 11.7883 3.547 10.9684 3.14964 10.0091C2.75228 9.04978 2.64831 7.99418 2.85088 6.97578C3.05345 5.95738 3.55347 5.02191 4.28769 4.28769C5.02192 3.55346 5.95738 3.05345 6.97578 2.85088C7.99418 2.6483 9.04978 2.75227 10.0091 3.14963C10.9684 3.54699 11.7883 4.2199 12.3652 5.08326C12.9421 5.94661 13.25 6.96165 13.25 8C13.2485 9.39193 12.6949 10.7264 11.7107 11.7107C10.7264 12.6949 9.39193 13.2485 8 13.25ZM7.25 8.25V5C7.25 4.80109 7.32902 4.61032 7.46967 4.46967C7.61032 4.32902 7.80109 4.25 8 4.25C8.19892 4.25 8.38968 4.32902 8.53033 4.46967C8.67098 4.61032 8.75 4.80109 8.75 5V8.25C8.75 8.44891 8.67098 8.63968 8.53033 8.78033C8.38968 8.92098 8.19892 9 8 9C7.80109 9 7.61032 8.92098 7.46967 8.78033C7.32902 8.63968 7.25 8.44891 7.25 8.25ZM9 10.75C9 10.9478 8.94135 11.1411 8.83147 11.3056C8.72159 11.47 8.56541 11.5982 8.38269 11.6739C8.19996 11.7496 7.99889 11.7694 7.80491 11.7308C7.61093 11.6922 7.43275 11.597 7.2929 11.4571C7.15304 11.3173 7.0578 11.1391 7.01922 10.9451C6.98063 10.7511 7.00044 10.55 7.07612 10.3673C7.15181 10.1846 7.27998 10.0284 7.44443 9.91853C7.60888 9.80865 7.80222 9.75 8 9.75C8.26522 9.75 8.51957 9.85536 8.70711 10.0429C8.89465 10.2304 9 10.4848 9 10.75Z", fill: "currentColor" }));
|
|
3829
3829
|
function kr({
|
|
3830
3830
|
message: e,
|
|
3831
3831
|
className: u,
|
|
@@ -3835,7 +3835,7 @@ function kr({
|
|
|
3835
3835
|
"div",
|
|
3836
3836
|
{
|
|
3837
3837
|
...t,
|
|
3838
|
-
className:
|
|
3838
|
+
className: U(
|
|
3839
3839
|
"message flex h-fit min-h-9 w-fit max-w-70 flex-row items-center justify-center gap-1 bg-black",
|
|
3840
3840
|
u
|
|
3841
3841
|
),
|
|
@@ -3858,7 +3858,7 @@ function Wi({
|
|
|
3858
3858
|
{
|
|
3859
3859
|
...n,
|
|
3860
3860
|
"data-author": u === oe.Customer ? "customer" : "agent",
|
|
3861
|
-
className:
|
|
3861
|
+
className: U(
|
|
3862
3862
|
"message flex h-fit min-h-8 w-fit max-w-[86%] items-center justify-center text-start",
|
|
3863
3863
|
{
|
|
3864
3864
|
"ms-2 self-start rounded-es-[5px]": u === oe.Agent,
|
|
@@ -3882,8 +3882,8 @@ function vr({ className: e }) {
|
|
|
3882
3882
|
ctaManualCommand: c,
|
|
3883
3883
|
executeCta: s,
|
|
3884
3884
|
dismissCta: l
|
|
3885
|
-
} =
|
|
3886
|
-
return t ? /* @__PURE__ */ $("div", { className:
|
|
3885
|
+
} = ku();
|
|
3886
|
+
return t ? /* @__PURE__ */ $("div", { className: U("flex max-w-full flex-col gap-1.5", e), children: [
|
|
3887
3887
|
/* @__PURE__ */ $("div", { className: "flex items-center gap-2", children: [
|
|
3888
3888
|
/* @__PURE__ */ x(
|
|
3889
3889
|
J,
|
|
@@ -3928,15 +3928,15 @@ function vr({ className: e }) {
|
|
|
3928
3928
|
] }) : null;
|
|
3929
3929
|
}
|
|
3930
3930
|
function Ki({ className: e }) {
|
|
3931
|
-
const { t: u } = le(), { config: t, api: n, reactionMessage: r } =
|
|
3931
|
+
const { t: u } = le(), { config: t, api: n, reactionMessage: r } = ku(), o = ju(), { networkStatus: i } = Dt(), {
|
|
3932
3932
|
startListening: a,
|
|
3933
3933
|
stopListening: c,
|
|
3934
3934
|
endVoiceChat: s,
|
|
3935
3935
|
acceptConversation: l,
|
|
3936
3936
|
declineConversation: d
|
|
3937
|
-
} = c0(), p =
|
|
3937
|
+
} = c0(), p = Ue((L) => L.pendingInvitation), h = Ue((L) => L.status), f = Ue((L) => L.errorMessage), m = Ue((L) => L.errorCode), b = Ue((L) => L.microphoneEnabled), C = Ue(
|
|
3938
3938
|
(L) => L.assistantResponseInProgress
|
|
3939
|
-
), [g, k] =
|
|
3939
|
+
), [g, k] = V(!1), v = P(async () => {
|
|
3940
3940
|
k(!0);
|
|
3941
3941
|
try {
|
|
3942
3942
|
await l(t, n);
|
|
@@ -3945,9 +3945,9 @@ function Ki({ className: e }) {
|
|
|
3945
3945
|
} finally {
|
|
3946
3946
|
k(!1);
|
|
3947
3947
|
}
|
|
3948
|
-
}, [l, n, t]),
|
|
3948
|
+
}, [l, n, t]), _ = P(async () => {
|
|
3949
3949
|
await d(t, n), o(se.text);
|
|
3950
|
-
}, [n, t, d, o]), E =
|
|
3950
|
+
}, [n, t, d, o]), E = P(async () => {
|
|
3951
3951
|
if (p) {
|
|
3952
3952
|
await v();
|
|
3953
3953
|
return;
|
|
@@ -3969,23 +3969,23 @@ function Ki({ className: e }) {
|
|
|
3969
3969
|
p,
|
|
3970
3970
|
a,
|
|
3971
3971
|
c
|
|
3972
|
-
]),
|
|
3972
|
+
]), w = P(async () => {
|
|
3973
3973
|
await s(), o(se.text);
|
|
3974
3974
|
}, [s, o]);
|
|
3975
|
-
|
|
3975
|
+
H(() => () => {
|
|
3976
3976
|
s();
|
|
3977
3977
|
}, [s]);
|
|
3978
|
-
const y = Se(() => i ===
|
|
3978
|
+
const y = Se(() => i === Ru.Unavailable ? u(au.connectionFailed) : i === Ru.Offline ? u(au.offline) : m ? u(s0[m]) : f || null, [i, u, m, f]), I = Se(() => u(h === "connecting" ? "voice.connecting" : h === "speaking" || C ? "voice.speaking" : p ? "voice.incoming" : b ? "voice.startTalking" : "voice.muted"), [
|
|
3979
3979
|
C,
|
|
3980
3980
|
b,
|
|
3981
3981
|
p,
|
|
3982
3982
|
u,
|
|
3983
3983
|
h
|
|
3984
|
-
]),
|
|
3984
|
+
]), M = !r && y;
|
|
3985
3985
|
return /* @__PURE__ */ $(
|
|
3986
3986
|
"div",
|
|
3987
3987
|
{
|
|
3988
|
-
className:
|
|
3988
|
+
className: U(
|
|
3989
3989
|
"z-1 flex min-h-0 flex-1 flex-col items-center justify-end px-4 pb-3",
|
|
3990
3990
|
e
|
|
3991
3991
|
),
|
|
@@ -4021,7 +4021,7 @@ function Ki({ className: e }) {
|
|
|
4021
4021
|
type: "button",
|
|
4022
4022
|
disabled: g,
|
|
4023
4023
|
onClick: () => {
|
|
4024
|
-
|
|
4024
|
+
_();
|
|
4025
4025
|
},
|
|
4026
4026
|
className: "chat-cta-secondary data-disabled:opacity-50",
|
|
4027
4027
|
children: u("voice.decline")
|
|
@@ -4029,7 +4029,7 @@ function Ki({ className: e }) {
|
|
|
4029
4029
|
)
|
|
4030
4030
|
] })
|
|
4031
4031
|
] }),
|
|
4032
|
-
|
|
4032
|
+
M && /* @__PURE__ */ x(kr, { className: "mb-5", message: y }),
|
|
4033
4033
|
/* @__PURE__ */ x(vr, { className: "mb-5 items-center text-center" }),
|
|
4034
4034
|
/* @__PURE__ */ $("div", { className: "flex flex-col items-center gap-3", children: [
|
|
4035
4035
|
/* @__PURE__ */ $("div", { className: "flex flex-col items-center gap-2.5 text-white", children: [
|
|
@@ -4045,7 +4045,7 @@ function Ki({ className: e }) {
|
|
|
4045
4045
|
J,
|
|
4046
4046
|
{
|
|
4047
4047
|
"aria-label": u(b ? "voice.muteMicrophone" : "voice.unmuteMicrophone"),
|
|
4048
|
-
className:
|
|
4048
|
+
className: U(
|
|
4049
4049
|
"chat-microphone-button",
|
|
4050
4050
|
b && "chat-microphone-button_active"
|
|
4051
4051
|
),
|
|
@@ -4058,7 +4058,7 @@ function Ki({ className: e }) {
|
|
|
4058
4058
|
/* @__PURE__ */ x(
|
|
4059
4059
|
J,
|
|
4060
4060
|
{
|
|
4061
|
-
onClick:
|
|
4061
|
+
onClick: w,
|
|
4062
4062
|
"aria-label": u("voice.switchToText"),
|
|
4063
4063
|
className: "chat-icon-button h-9 w-9",
|
|
4064
4064
|
children: /* @__PURE__ */ x(N0, { className: "h-4 w-4" })
|
|
@@ -4069,7 +4069,7 @@ function Ki({ className: e }) {
|
|
|
4069
4069
|
}
|
|
4070
4070
|
);
|
|
4071
4071
|
}
|
|
4072
|
-
const Yi = (e) => /* @__PURE__ */
|
|
4072
|
+
const Yi = (e) => /* @__PURE__ */ q.createElement("svg", { width: 15, height: 17, viewBox: "0 0 15 17", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M1.875 5.9375V10.9375C1.875 11.1861 1.77623 11.4246 1.60041 11.6004C1.4246 11.7762 1.18614 11.875 0.9375 11.875C0.68886 11.875 0.450403 11.7762 0.274587 11.6004C0.0987719 11.4246 0 11.1861 0 10.9375V5.9375C0 5.68886 0.0987719 5.4504 0.274587 5.27459C0.450403 5.09877 0.68886 5 0.9375 5C1.18614 5 1.4246 5.09877 1.60041 5.27459C1.77623 5.4504 1.875 5.68886 1.875 5.9375ZM4.0625 0C3.81386 0 3.5754 0.0987721 3.39959 0.274587C3.22377 0.450403 3.125 0.68886 3.125 0.9375V15.9375C3.125 16.1861 3.22377 16.4246 3.39959 16.6004C3.5754 16.7762 3.81386 16.875 4.0625 16.875C4.31114 16.875 4.5496 16.7762 4.72541 16.6004C4.90123 16.4246 5 16.1861 5 15.9375V0.9375C5 0.68886 4.90123 0.450403 4.72541 0.274587C4.5496 0.0987721 4.31114 0 4.0625 0ZM7.1875 2.5C6.93886 2.5 6.7004 2.59877 6.52459 2.77459C6.34877 2.9504 6.25 3.18886 6.25 3.4375V13.4375C6.25 13.6861 6.34877 13.9246 6.52459 14.1004C6.7004 14.2762 6.93886 14.375 7.1875 14.375C7.43614 14.375 7.6746 14.2762 7.85041 14.1004C8.02623 13.9246 8.125 13.6861 8.125 13.4375V3.4375C8.125 3.18886 8.02623 2.9504 7.85041 2.77459C7.6746 2.59877 7.43614 2.5 7.1875 2.5ZM10.3125 5C10.0639 5 9.8254 5.09877 9.64959 5.27459C9.47377 5.4504 9.375 5.68886 9.375 5.9375V10.9375C9.375 11.1861 9.47377 11.4246 9.64959 11.6004C9.8254 11.7762 10.0639 11.875 10.3125 11.875C10.5611 11.875 10.7996 11.7762 10.9754 11.6004C11.1512 11.4246 11.25 11.1861 11.25 10.9375V5.9375C11.25 5.68886 11.1512 5.4504 10.9754 5.27459C10.7996 5.09877 10.5611 5 10.3125 5ZM13.4375 3.75C13.1889 3.75 12.9504 3.84877 12.7746 4.02459C12.5988 4.2004 12.5 4.43886 12.5 4.6875V12.1875C12.5 12.4361 12.5988 12.6746 12.7746 12.8504C12.9504 13.0262 13.1889 13.125 13.4375 13.125C13.6861 13.125 13.9246 13.0262 14.1004 12.8504C14.2762 12.6746 14.375 12.4361 14.375 12.1875V4.6875C14.375 4.43886 14.2762 4.2004 14.1004 4.02459C13.9246 3.84877 13.6861 3.75 13.4375 3.75Z" })), Ji = (e) => /* @__PURE__ */ q.createElement("svg", { width: 22, height: 22, viewBox: "0 0 22 22", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M21.1996 0.549377C20.9639 0.313669 20.6697 0.14503 20.3472 0.0608259C20.0248 -0.0233778 19.6857 -0.0201025 19.3649 0.0703145L19.3443 0.076877L1.35269 5.53125C0.987805 5.63709 0.663677 5.85127 0.423239 6.14544C0.182802 6.43961 0.0374012 6.79987 0.00629592 7.17853C-0.0248094 7.55718 0.0598483 7.93634 0.249056 8.26581C0.438264 8.59527 0.723094 8.85948 1.06582 9.02344L8.90519 12.8438L12.7218 20.6859C12.8723 21.006 13.111 21.2764 13.41 21.4654C13.7089 21.6544 14.0556 21.7541 14.4093 21.7528C14.4627 21.7528 14.5171 21.7528 14.5714 21.7463C14.9511 21.717 15.3126 21.5719 15.6071 21.3304C15.9015 21.0889 16.1147 20.7628 16.2177 20.3963L21.6721 2.40469C21.6748 2.398 21.677 2.39111 21.6786 2.38406C21.769 2.06327 21.7723 1.72418 21.6881 1.4017C21.6039 1.07922 21.4353 0.785013 21.1996 0.549377ZM14.3343 18.8503L11.1121 12.2278L15.4246 7.92C15.5292 7.81536 15.6122 7.69112 15.6689 7.55439C15.7255 7.41767 15.7546 7.27112 15.7546 7.12313C15.7546 6.97513 15.7255 6.82859 15.6689 6.69186C15.6122 6.55513 15.5292 6.4309 15.4246 6.32625C15.3199 6.22161 15.1957 6.13859 15.059 6.08196C14.9222 6.02533 14.7757 5.99618 14.6277 5.99618C14.4797 5.99618 14.3332 6.02533 14.1964 6.08196C14.0597 6.13859 13.9355 6.22161 13.8308 6.32625L9.51832 10.6388L2.89863 7.41469L19.3114 2.4375L14.3343 18.8503Z" })), Qi = (e) => /* @__PURE__ */ q.createElement("svg", { width: 21, height: 21, viewBox: "0 0 21 21", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M20.9437 1.90279C20.9437 1.90279 20.9437 1.91216 20.9437 1.91685L15.4874 19.9112C15.4048 20.2035 15.2348 20.4635 15.0002 20.6564C14.7656 20.8493 14.4776 20.9658 14.1749 20.9903C14.1318 20.994 14.0887 20.9959 14.0455 20.9959C13.7619 20.9968 13.4838 20.9165 13.2443 20.7645C13.0048 20.6125 12.8137 20.3952 12.6937 20.1381L9.28117 13.135C9.24703 13.0648 9.23563 12.9857 9.24857 12.9087C9.26151 12.8318 9.29814 12.7608 9.35336 12.7056L14.7834 7.2756C14.9181 7.1338 14.9921 6.94499 14.9896 6.74942C14.9871 6.55385 14.9083 6.36699 14.77 6.22869C14.6317 6.09039 14.4448 6.01158 14.2492 6.00908C14.0537 6.00658 13.8648 6.08057 13.723 6.21529L8.29024 11.6453C8.23508 11.7005 8.16407 11.7371 8.0871 11.7501C8.01013 11.763 7.93104 11.7516 7.86086 11.7175L0.851173 8.30591C0.577067 8.17441 0.34939 7.96272 0.198314 7.69889C0.047238 7.43506 -0.0201046 7.13156 0.00521012 6.8286C0.0305249 6.52563 0.147302 6.23751 0.340066 6.00242C0.53283 5.76732 0.792481 5.59635 1.08461 5.51216L19.079 0.0559103H19.093C19.3493 -0.0160696 19.62 -0.018593 19.8775 0.0485989C20.135 0.115791 20.37 0.250279 20.5583 0.438265C20.7467 0.626251 20.8817 0.860966 20.9494 1.11833C21.0171 1.37569 21.0151 1.64644 20.9437 1.90279Z" }));
|
|
4073
4073
|
function Xi(e, {
|
|
4074
4074
|
nodeMapping: u,
|
|
4075
4075
|
markMapping: t,
|
|
@@ -4134,7 +4134,7 @@ function on(e) {
|
|
|
4134
4134
|
const u = Object.entries(e || {}).filter(([, t]) => t != null).map(([t, n]) => `${t.split(" ").at(-1)}="${ua(String(n))}"`).join(" ");
|
|
4135
4135
|
return u ? ` ${u}` : "";
|
|
4136
4136
|
}
|
|
4137
|
-
function
|
|
4137
|
+
function We(e) {
|
|
4138
4138
|
return [].concat(e || "").filter(Boolean).join("");
|
|
4139
4139
|
}
|
|
4140
4140
|
const an = {};
|
|
@@ -4153,8 +4153,8 @@ function ta(e) {
|
|
|
4153
4153
|
}
|
|
4154
4154
|
return u;
|
|
4155
4155
|
}
|
|
4156
|
-
function
|
|
4157
|
-
typeof u != "string" && (u =
|
|
4156
|
+
function Je(e, u) {
|
|
4157
|
+
typeof u != "string" && (u = Je.defaultChars);
|
|
4158
4158
|
const t = ta(u);
|
|
4159
4159
|
return e.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
4160
4160
|
let r = "";
|
|
@@ -4193,8 +4193,8 @@ function Ye(e, u) {
|
|
|
4193
4193
|
return r;
|
|
4194
4194
|
});
|
|
4195
4195
|
}
|
|
4196
|
-
|
|
4197
|
-
|
|
4196
|
+
Je.defaultChars = ";/?:@&=+$,#";
|
|
4197
|
+
Je.componentChars = "";
|
|
4198
4198
|
const cn = {};
|
|
4199
4199
|
function na(e) {
|
|
4200
4200
|
let u = cn[e];
|
|
@@ -4209,8 +4209,8 @@ function na(e) {
|
|
|
4209
4209
|
u[e.charCodeAt(t)] = e[t];
|
|
4210
4210
|
return u;
|
|
4211
4211
|
}
|
|
4212
|
-
function
|
|
4213
|
-
typeof u != "string" && (t = u, u =
|
|
4212
|
+
function vu(e, u, t) {
|
|
4213
|
+
typeof u != "string" && (t = u, u = vu.defaultChars), typeof t > "u" && (t = !0);
|
|
4214
4214
|
const n = na(u);
|
|
4215
4215
|
let r = "";
|
|
4216
4216
|
for (let o = 0, i = e.length; o < i; o++) {
|
|
@@ -4238,13 +4238,13 @@ function ku(e, u, t) {
|
|
|
4238
4238
|
}
|
|
4239
4239
|
return r;
|
|
4240
4240
|
}
|
|
4241
|
-
|
|
4242
|
-
|
|
4241
|
+
vu.defaultChars = ";/?:@&=+$,-_.!~*'()#";
|
|
4242
|
+
vu.componentChars = "-_.!~*'()";
|
|
4243
4243
|
function Bt(e) {
|
|
4244
4244
|
let u = "";
|
|
4245
4245
|
return u += e.protocol || "", u += e.slashes ? "//" : "", u += e.auth ? e.auth + "@" : "", e.hostname && e.hostname.indexOf(":") !== -1 ? u += "[" + e.hostname + "]" : u += e.hostname || "", u += e.port ? ":" + e.port : "", u += e.pathname || "", u += e.search || "", u += e.hash || "", u;
|
|
4246
4246
|
}
|
|
4247
|
-
function
|
|
4247
|
+
function Ou() {
|
|
4248
4248
|
this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
|
|
4249
4249
|
}
|
|
4250
4250
|
const ra = /^([a-z0-9.+-]+:)/i, oa = /:[0-9]*$/, ia = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, aa = ["<", ">", '"', "`", " ", "\r", `
|
|
@@ -4264,11 +4264,11 @@ const ra = /^([a-z0-9.+-]+:)/i, oa = /:[0-9]*$/, ia = /^(\/\/?(?!\/)[^\?\s]*)(\?
|
|
|
4264
4264
|
"file:": !0
|
|
4265
4265
|
};
|
|
4266
4266
|
function Ot(e, u) {
|
|
4267
|
-
if (e && e instanceof
|
|
4268
|
-
const t = new
|
|
4267
|
+
if (e && e instanceof Ou) return e;
|
|
4268
|
+
const t = new Ou();
|
|
4269
4269
|
return t.parse(e, u), t;
|
|
4270
4270
|
}
|
|
4271
|
-
|
|
4271
|
+
Ou.prototype.parse = function(e, u) {
|
|
4272
4272
|
let t, n, r, o = e;
|
|
4273
4273
|
if (o = o.trim(), !u && e.split("#").length === 1) {
|
|
4274
4274
|
const s = ia.exec(o);
|
|
@@ -4297,8 +4297,8 @@ Bu.prototype.parse = function(e, u) {
|
|
|
4297
4297
|
for (let k = 0, v = C.length; k < v; k++)
|
|
4298
4298
|
C.charCodeAt(k) > 127 ? g += "x" : g += C[k];
|
|
4299
4299
|
if (!g.match(dn)) {
|
|
4300
|
-
const k = f.slice(0, m), v = f.slice(m + 1),
|
|
4301
|
-
|
|
4300
|
+
const k = f.slice(0, m), v = f.slice(m + 1), _ = C.match(da);
|
|
4301
|
+
_ && (k.push(_[1]), v.unshift(_[2])), v.length && (o = v.join(".") + o), this.hostname = k.join(".");
|
|
4302
4302
|
break;
|
|
4303
4303
|
}
|
|
4304
4304
|
}
|
|
@@ -4311,14 +4311,14 @@ Bu.prototype.parse = function(e, u) {
|
|
|
4311
4311
|
const c = o.indexOf("?");
|
|
4312
4312
|
return c !== -1 && (this.search = o.substr(c), o = o.slice(0, c)), o && (this.pathname = o), hn[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
4313
4313
|
};
|
|
4314
|
-
|
|
4314
|
+
Ou.prototype.parseHost = function(e) {
|
|
4315
4315
|
let u = oa.exec(e);
|
|
4316
4316
|
u && (u = u[0], u !== ":" && (this.port = u.substr(1)), e = e.substr(0, e.length - u.length)), e && (this.hostname = e);
|
|
4317
4317
|
};
|
|
4318
4318
|
const fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4319
4319
|
__proto__: null,
|
|
4320
|
-
decode:
|
|
4321
|
-
encode:
|
|
4320
|
+
decode: Je,
|
|
4321
|
+
encode: vu,
|
|
4322
4322
|
format: Bt,
|
|
4323
4323
|
parse: Ot
|
|
4324
4324
|
}, Symbol.toStringTag, { value: "Module" })), yr = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, _r = /[\0-\x1F\x7F-\x9F]/, ha = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, qt = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, wr = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, Er = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -4378,42 +4378,42 @@ function ka(e) {
|
|
|
4378
4378
|
var u;
|
|
4379
4379
|
return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (u = ga.get(e)) !== null && u !== void 0 ? u : e;
|
|
4380
4380
|
}
|
|
4381
|
-
var
|
|
4381
|
+
var K;
|
|
4382
4382
|
(function(e) {
|
|
4383
4383
|
e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
|
|
4384
|
-
})(
|
|
4384
|
+
})(K || (K = {}));
|
|
4385
4385
|
const Ca = 32;
|
|
4386
4386
|
var Te;
|
|
4387
4387
|
(function(e) {
|
|
4388
4388
|
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
4389
4389
|
})(Te || (Te = {}));
|
|
4390
4390
|
function wt(e) {
|
|
4391
|
-
return e >=
|
|
4391
|
+
return e >= K.ZERO && e <= K.NINE;
|
|
4392
4392
|
}
|
|
4393
4393
|
function va(e) {
|
|
4394
|
-
return e >=
|
|
4394
|
+
return e >= K.UPPER_A && e <= K.UPPER_F || e >= K.LOWER_A && e <= K.LOWER_F;
|
|
4395
4395
|
}
|
|
4396
4396
|
function ya(e) {
|
|
4397
|
-
return e >=
|
|
4397
|
+
return e >= K.UPPER_A && e <= K.UPPER_Z || e >= K.LOWER_A && e <= K.LOWER_Z || wt(e);
|
|
4398
4398
|
}
|
|
4399
4399
|
function _a(e) {
|
|
4400
|
-
return e ===
|
|
4400
|
+
return e === K.EQUALS || ya(e);
|
|
4401
4401
|
}
|
|
4402
|
-
var
|
|
4402
|
+
var W;
|
|
4403
4403
|
(function(e) {
|
|
4404
4404
|
e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
|
|
4405
|
-
})(
|
|
4405
|
+
})(W || (W = {}));
|
|
4406
4406
|
var ye;
|
|
4407
4407
|
(function(e) {
|
|
4408
4408
|
e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
|
|
4409
4409
|
})(ye || (ye = {}));
|
|
4410
4410
|
class wa {
|
|
4411
4411
|
constructor(u, t, n) {
|
|
4412
|
-
this.decodeTree = u, this.emitCodePoint = t, this.errors = n, this.state =
|
|
4412
|
+
this.decodeTree = u, this.emitCodePoint = t, this.errors = n, this.state = W.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = ye.Strict;
|
|
4413
4413
|
}
|
|
4414
4414
|
/** Resets the instance to make it reusable. */
|
|
4415
4415
|
startEntity(u) {
|
|
4416
|
-
this.decodeMode = u, this.state =
|
|
4416
|
+
this.decodeMode = u, this.state = W.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
4417
4417
|
}
|
|
4418
4418
|
/**
|
|
4419
4419
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
@@ -4428,15 +4428,15 @@ class wa {
|
|
|
4428
4428
|
*/
|
|
4429
4429
|
write(u, t) {
|
|
4430
4430
|
switch (this.state) {
|
|
4431
|
-
case
|
|
4432
|
-
return u.charCodeAt(t) ===
|
|
4433
|
-
case
|
|
4431
|
+
case W.EntityStart:
|
|
4432
|
+
return u.charCodeAt(t) === K.NUM ? (this.state = W.NumericStart, this.consumed += 1, this.stateNumericStart(u, t + 1)) : (this.state = W.NamedEntity, this.stateNamedEntity(u, t));
|
|
4433
|
+
case W.NumericStart:
|
|
4434
4434
|
return this.stateNumericStart(u, t);
|
|
4435
|
-
case
|
|
4435
|
+
case W.NumericDecimal:
|
|
4436
4436
|
return this.stateNumericDecimal(u, t);
|
|
4437
|
-
case
|
|
4437
|
+
case W.NumericHex:
|
|
4438
4438
|
return this.stateNumericHex(u, t);
|
|
4439
|
-
case
|
|
4439
|
+
case W.NamedEntity:
|
|
4440
4440
|
return this.stateNamedEntity(u, t);
|
|
4441
4441
|
}
|
|
4442
4442
|
}
|
|
@@ -4450,7 +4450,7 @@ class wa {
|
|
|
4450
4450
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
4451
4451
|
*/
|
|
4452
4452
|
stateNumericStart(u, t) {
|
|
4453
|
-
return t >= u.length ? -1 : (u.charCodeAt(t) | Ca) ===
|
|
4453
|
+
return t >= u.length ? -1 : (u.charCodeAt(t) | Ca) === K.LOWER_X ? (this.state = W.NumericHex, this.consumed += 1, this.stateNumericHex(u, t + 1)) : (this.state = W.NumericDecimal, this.stateNumericDecimal(u, t));
|
|
4454
4454
|
}
|
|
4455
4455
|
addToNumericResult(u, t, n, r) {
|
|
4456
4456
|
if (t !== n) {
|
|
@@ -4515,11 +4515,11 @@ class wa {
|
|
|
4515
4515
|
var n;
|
|
4516
4516
|
if (this.consumed <= t)
|
|
4517
4517
|
return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
4518
|
-
if (u ===
|
|
4518
|
+
if (u === K.SEMI)
|
|
4519
4519
|
this.consumed += 1;
|
|
4520
4520
|
else if (this.decodeMode === ye.Strict)
|
|
4521
4521
|
return 0;
|
|
4522
|
-
return this.emitCodePoint(ka(this.result), this.consumed), this.errors && (u !==
|
|
4522
|
+
return this.emitCodePoint(ka(this.result), this.consumed), this.errors && (u !== K.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
4523
4523
|
}
|
|
4524
4524
|
/**
|
|
4525
4525
|
* Parses a named entity.
|
|
@@ -4541,7 +4541,7 @@ class wa {
|
|
|
4541
4541
|
(o === 0 || // And there should be no invalid characters.
|
|
4542
4542
|
_a(i)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
4543
4543
|
if (r = n[this.treeIndex], o = (r & Te.VALUE_LENGTH) >> 14, o !== 0) {
|
|
4544
|
-
if (i ===
|
|
4544
|
+
if (i === K.SEMI)
|
|
4545
4545
|
return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
|
|
4546
4546
|
this.decodeMode !== ye.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
4547
4547
|
}
|
|
@@ -4581,16 +4581,16 @@ class wa {
|
|
|
4581
4581
|
end() {
|
|
4582
4582
|
var u;
|
|
4583
4583
|
switch (this.state) {
|
|
4584
|
-
case
|
|
4584
|
+
case W.NamedEntity:
|
|
4585
4585
|
return this.result !== 0 && (this.decodeMode !== ye.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
4586
4586
|
// Otherwise, emit a numeric entity if we have one.
|
|
4587
|
-
case
|
|
4587
|
+
case W.NumericDecimal:
|
|
4588
4588
|
return this.emitNumericEntity(0, 2);
|
|
4589
|
-
case
|
|
4589
|
+
case W.NumericHex:
|
|
4590
4590
|
return this.emitNumericEntity(0, 3);
|
|
4591
|
-
case
|
|
4591
|
+
case W.NumericStart:
|
|
4592
4592
|
return (u = this.errors) === null || u === void 0 || u.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
4593
|
-
case
|
|
4593
|
+
case W.EntityStart:
|
|
4594
4594
|
return 0;
|
|
4595
4595
|
}
|
|
4596
4596
|
}
|
|
@@ -4672,7 +4672,7 @@ function Dr(e, u, t) {
|
|
|
4672
4672
|
function Ht(e) {
|
|
4673
4673
|
return !(e >= 55296 && e <= 57343 || e >= 64976 && e <= 65007 || (e & 65535) === 65535 || (e & 65535) === 65534 || e >= 0 && e <= 8 || e === 11 || e >= 14 && e <= 31 || e >= 127 && e <= 159 || e > 1114111);
|
|
4674
4674
|
}
|
|
4675
|
-
function
|
|
4675
|
+
function hu(e) {
|
|
4676
4676
|
if (e > 65535) {
|
|
4677
4677
|
e -= 65536;
|
|
4678
4678
|
const u = 55296 + (e >> 10), t = 56320 + (e & 1023);
|
|
@@ -4684,7 +4684,7 @@ const Tr = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, $a = /&([a-z#][a-z0-9]{
|
|
|
4684
4684
|
function Na(e, u) {
|
|
4685
4685
|
if (u.charCodeAt(0) === 35 && La.test(u)) {
|
|
4686
4686
|
const n = u[1].toLowerCase() === "x" ? parseInt(u.slice(2), 16) : parseInt(u.slice(1), 10);
|
|
4687
|
-
return Ht(n) ?
|
|
4687
|
+
return Ht(n) ? hu(n) : e;
|
|
4688
4688
|
}
|
|
4689
4689
|
const t = Fa(e);
|
|
4690
4690
|
return t !== e ? t : e;
|
|
@@ -4692,7 +4692,7 @@ function Na(e, u) {
|
|
|
4692
4692
|
function Ia(e) {
|
|
4693
4693
|
return e.indexOf("\\") < 0 ? e : e.replace(Tr, "$1");
|
|
4694
4694
|
}
|
|
4695
|
-
function
|
|
4695
|
+
function Qe(e) {
|
|
4696
4696
|
return e.indexOf("\\") < 0 && e.indexOf("&") < 0 ? e : e.replace(Ma, function(u, t, n) {
|
|
4697
4697
|
return t || Na(u, n);
|
|
4698
4698
|
});
|
|
@@ -4713,7 +4713,7 @@ const Oa = /[.?*+^$[\]\\(){}|-]/g;
|
|
|
4713
4713
|
function qa(e) {
|
|
4714
4714
|
return e.replace(Oa, "\\$&");
|
|
4715
4715
|
}
|
|
4716
|
-
function
|
|
4716
|
+
function j(e) {
|
|
4717
4717
|
switch (e) {
|
|
4718
4718
|
case 9:
|
|
4719
4719
|
case 32:
|
|
@@ -4721,7 +4721,7 @@ function O(e) {
|
|
|
4721
4721
|
}
|
|
4722
4722
|
return !1;
|
|
4723
4723
|
}
|
|
4724
|
-
function
|
|
4724
|
+
function pu(e) {
|
|
4725
4725
|
if (e >= 8192 && e <= 8202)
|
|
4726
4726
|
return !0;
|
|
4727
4727
|
switch (e) {
|
|
@@ -4748,10 +4748,10 @@ function hu(e) {
|
|
|
4748
4748
|
function Sr(e) {
|
|
4749
4749
|
return qt.test(e) || wr.test(e);
|
|
4750
4750
|
}
|
|
4751
|
-
function pu(e) {
|
|
4752
|
-
return Sr(fu(e));
|
|
4753
|
-
}
|
|
4754
4751
|
function bu(e) {
|
|
4752
|
+
return Sr(hu(e));
|
|
4753
|
+
}
|
|
4754
|
+
function mu(e) {
|
|
4755
4755
|
switch (e) {
|
|
4756
4756
|
case 33:
|
|
4757
4757
|
case 34:
|
|
@@ -4812,18 +4812,18 @@ const ja = { mdurl: fa, ucmicro: pa }, Ha = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
4812
4812
|
assign: Qu,
|
|
4813
4813
|
escapeHtml: $e,
|
|
4814
4814
|
escapeRE: qa,
|
|
4815
|
-
fromCodePoint:
|
|
4815
|
+
fromCodePoint: hu,
|
|
4816
4816
|
has: Sa,
|
|
4817
|
-
isMdAsciiPunct:
|
|
4817
|
+
isMdAsciiPunct: mu,
|
|
4818
4818
|
isPunctChar: Sr,
|
|
4819
|
-
isPunctCharCode:
|
|
4820
|
-
isSpace:
|
|
4819
|
+
isPunctCharCode: bu,
|
|
4820
|
+
isSpace: j,
|
|
4821
4821
|
isString: jt,
|
|
4822
4822
|
isValidEntityCode: Ht,
|
|
4823
|
-
isWhiteSpace:
|
|
4823
|
+
isWhiteSpace: pu,
|
|
4824
4824
|
lib: ja,
|
|
4825
4825
|
normalizeReference: Xu,
|
|
4826
|
-
unescapeAll:
|
|
4826
|
+
unescapeAll: Qe,
|
|
4827
4827
|
unescapeMd: Ia
|
|
4828
4828
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4829
4829
|
function Va(e, u, t) {
|
|
@@ -4856,7 +4856,7 @@ function Ua(e, u, t) {
|
|
|
4856
4856
|
if (n = e.charCodeAt(r), n === 10 || n === 60)
|
|
4857
4857
|
return o;
|
|
4858
4858
|
if (n === 62)
|
|
4859
|
-
return o.pos = r + 1, o.str =
|
|
4859
|
+
return o.pos = r + 1, o.str = Qe(e.slice(u + 1, r)), o.ok = !0, o;
|
|
4860
4860
|
if (n === 92 && r + 1 < t) {
|
|
4861
4861
|
r += 2;
|
|
4862
4862
|
continue;
|
|
@@ -4882,7 +4882,7 @@ function Ua(e, u, t) {
|
|
|
4882
4882
|
}
|
|
4883
4883
|
r++;
|
|
4884
4884
|
}
|
|
4885
|
-
return u === r || i !== 0 || (o.str =
|
|
4885
|
+
return u === r || i !== 0 || (o.str = Qe(e.slice(u, r)), o.pos = r, o.ok = !0), o;
|
|
4886
4886
|
}
|
|
4887
4887
|
function Ga(e, u, t, n) {
|
|
4888
4888
|
let r, o = u;
|
|
@@ -4910,12 +4910,12 @@ function Ga(e, u, t, n) {
|
|
|
4910
4910
|
}
|
|
4911
4911
|
for (; o < t; ) {
|
|
4912
4912
|
if (r = e.charCodeAt(o), r === i.marker)
|
|
4913
|
-
return i.pos = o + 1, i.str +=
|
|
4913
|
+
return i.pos = o + 1, i.str += Qe(e.slice(u, o)), i.ok = !0, i;
|
|
4914
4914
|
if (r === 40 && i.marker === 41)
|
|
4915
4915
|
return i;
|
|
4916
4916
|
r === 92 && o + 1 < t && o++, o++;
|
|
4917
4917
|
}
|
|
4918
|
-
return i.can_continue = !0, i.str +=
|
|
4918
|
+
return i.can_continue = !0, i.str += Qe(e.slice(u, o)), i;
|
|
4919
4919
|
}
|
|
4920
4920
|
const Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4921
4921
|
__proto__: null,
|
|
@@ -4933,7 +4933,7 @@ ke.code_block = function(e, u, t, n, r) {
|
|
|
4933
4933
|
`;
|
|
4934
4934
|
};
|
|
4935
4935
|
ke.fence = function(e, u, t, n, r) {
|
|
4936
|
-
const o = e[u], i = o.info ?
|
|
4936
|
+
const o = e[u], i = o.info ? Qe(o.info).trim() : "";
|
|
4937
4937
|
let a = "", c = "";
|
|
4938
4938
|
if (i) {
|
|
4939
4939
|
const l = i.split(/(\s+)/g);
|
|
@@ -4979,10 +4979,10 @@ ke.html_block = function(e, u) {
|
|
|
4979
4979
|
ke.html_inline = function(e, u) {
|
|
4980
4980
|
return e[u].content;
|
|
4981
4981
|
};
|
|
4982
|
-
function
|
|
4982
|
+
function tu() {
|
|
4983
4983
|
this.rules = Qu({}, ke);
|
|
4984
4984
|
}
|
|
4985
|
-
|
|
4985
|
+
tu.prototype.renderAttrs = function(u) {
|
|
4986
4986
|
let t, n, r;
|
|
4987
4987
|
if (!u.attrs)
|
|
4988
4988
|
return "";
|
|
@@ -4990,7 +4990,7 @@ uu.prototype.renderAttrs = function(u) {
|
|
|
4990
4990
|
r += " " + $e(u.attrs[t][0]) + '="' + $e(u.attrs[t][1]) + '"';
|
|
4991
4991
|
return r;
|
|
4992
4992
|
};
|
|
4993
|
-
|
|
4993
|
+
tu.prototype.renderToken = function(u, t, n) {
|
|
4994
4994
|
const r = u[t];
|
|
4995
4995
|
let o = "";
|
|
4996
4996
|
if (r.hidden)
|
|
@@ -5005,7 +5005,7 @@ uu.prototype.renderToken = function(u, t, n) {
|
|
|
5005
5005
|
return o += i ? `>
|
|
5006
5006
|
` : ">", o;
|
|
5007
5007
|
};
|
|
5008
|
-
|
|
5008
|
+
tu.prototype.renderInline = function(e, u, t) {
|
|
5009
5009
|
let n = "";
|
|
5010
5010
|
const r = this.rules;
|
|
5011
5011
|
for (let o = 0, i = e.length; o < i; o++) {
|
|
@@ -5014,7 +5014,7 @@ uu.prototype.renderInline = function(e, u, t) {
|
|
|
5014
5014
|
}
|
|
5015
5015
|
return n;
|
|
5016
5016
|
};
|
|
5017
|
-
|
|
5017
|
+
tu.prototype.renderInlineAsText = function(e, u, t) {
|
|
5018
5018
|
let n = "";
|
|
5019
5019
|
for (let r = 0, o = e.length; r < o; r++)
|
|
5020
5020
|
switch (e[r].type) {
|
|
@@ -5036,7 +5036,7 @@ uu.prototype.renderInlineAsText = function(e, u, t) {
|
|
|
5036
5036
|
}
|
|
5037
5037
|
return n;
|
|
5038
5038
|
};
|
|
5039
|
-
|
|
5039
|
+
tu.prototype.render = function(e, u, t) {
|
|
5040
5040
|
let n = "";
|
|
5041
5041
|
const r = this.rules;
|
|
5042
5042
|
for (let o = 0, i = e.length; o < i; o++) {
|
|
@@ -5220,8 +5220,8 @@ function uc(e) {
|
|
|
5220
5220
|
s[h].schema ? s[h].schema === "mailto:" && !/^mailto:/i.test(b) ? b = e.md.normalizeLinkText("mailto:" + b).replace(/^mailto:/, "") : b = e.md.normalizeLinkText(b) : b = e.md.normalizeLinkText("http://" + b).replace(/^http:\/\//, "");
|
|
5221
5221
|
const C = s[h].index;
|
|
5222
5222
|
if (C > p) {
|
|
5223
|
-
const
|
|
5224
|
-
|
|
5223
|
+
const _ = new e.Token("text", "", 0);
|
|
5224
|
+
_.content = c.slice(p, C), _.level = d, l.push(_);
|
|
5225
5225
|
}
|
|
5226
5226
|
const g = new e.Token("link_open", "a", 1);
|
|
5227
5227
|
g.attrs = [["href", m]], g.level = d++, g.markup = "linkify", g.info = "auto", l.push(g);
|
|
@@ -5268,7 +5268,7 @@ function cc(e) {
|
|
|
5268
5268
|
e.tokens[u].type === "inline" && (tc.test(e.tokens[u].content) && ic(e.tokens[u].children), Mr.test(e.tokens[u].content) && ac(e.tokens[u].children));
|
|
5269
5269
|
}
|
|
5270
5270
|
const sc = /['"]/, bn = /['"]/g, mn = "’";
|
|
5271
|
-
function
|
|
5271
|
+
function $u(e, u, t, n) {
|
|
5272
5272
|
e[u] || (e[u] = []), e[u].push({ pos: t, ch: n });
|
|
5273
5273
|
}
|
|
5274
5274
|
function lc(e, u) {
|
|
@@ -5319,20 +5319,20 @@ function dc(e, u) {
|
|
|
5319
5319
|
b = e[t].content.charCodeAt(0);
|
|
5320
5320
|
break;
|
|
5321
5321
|
}
|
|
5322
|
-
const C =
|
|
5322
|
+
const C = mu(m) || bu(m), g = mu(b) || bu(b), k = pu(m), v = pu(b);
|
|
5323
5323
|
if (v ? p = !1 : g && (k || C || (p = !1)), k ? h = !1 : C && (v || g || (h = !1)), b === 34 && d[0] === '"' && m >= 48 && m <= 57 && (h = p = !1), p && h && (p = C, h = g), !p && !h) {
|
|
5324
|
-
f &&
|
|
5324
|
+
f && $u(r, o, d.index, mn);
|
|
5325
5325
|
continue;
|
|
5326
5326
|
}
|
|
5327
5327
|
if (h)
|
|
5328
5328
|
for (t = n.length - 1; t >= 0; t--) {
|
|
5329
|
-
let
|
|
5329
|
+
let _ = n[t];
|
|
5330
5330
|
if (n[t].level < a)
|
|
5331
5331
|
break;
|
|
5332
|
-
if (
|
|
5333
|
-
|
|
5334
|
-
let E,
|
|
5335
|
-
f ? (E = u.md.options.quotes[2],
|
|
5332
|
+
if (_.single === f && n[t].level === a) {
|
|
5333
|
+
_ = n[t];
|
|
5334
|
+
let E, w;
|
|
5335
|
+
f ? (E = u.md.options.quotes[2], w = u.md.options.quotes[3]) : (E = u.md.options.quotes[0], w = u.md.options.quotes[1]), $u(r, o, d.index, w), $u(r, _.token, _.pos, E), n.length = t;
|
|
5336
5336
|
continue e;
|
|
5337
5337
|
}
|
|
5338
5338
|
}
|
|
@@ -5341,7 +5341,7 @@ function dc(e, u) {
|
|
|
5341
5341
|
pos: d.index,
|
|
5342
5342
|
single: f,
|
|
5343
5343
|
level: a
|
|
5344
|
-
}) : h && f &&
|
|
5344
|
+
}) : h && f && $u(r, o, d.index, mn);
|
|
5345
5345
|
}
|
|
5346
5346
|
}
|
|
5347
5347
|
Object.keys(r).forEach(function(o) {
|
|
@@ -5394,7 +5394,7 @@ function Ce(e, u, t, n) {
|
|
|
5394
5394
|
for (let o = 0, i = 0, a = 0, c = 0, s = r.length, l = !1; i < s; i++) {
|
|
5395
5395
|
const d = r.charCodeAt(i);
|
|
5396
5396
|
if (!l)
|
|
5397
|
-
if (
|
|
5397
|
+
if (j(d)) {
|
|
5398
5398
|
a++, d === 9 ? c += 4 - c % 4 : c++;
|
|
5399
5399
|
continue;
|
|
5400
5400
|
} else
|
|
@@ -5418,7 +5418,7 @@ Ce.prototype.skipEmptyLines = function(u) {
|
|
|
5418
5418
|
Ce.prototype.skipSpaces = function(u) {
|
|
5419
5419
|
for (let t = this.src.length; u < t; u++) {
|
|
5420
5420
|
const n = this.src.charCodeAt(u);
|
|
5421
|
-
if (!
|
|
5421
|
+
if (!j(n))
|
|
5422
5422
|
break;
|
|
5423
5423
|
}
|
|
5424
5424
|
return u;
|
|
@@ -5427,7 +5427,7 @@ Ce.prototype.skipSpacesBack = function(u, t) {
|
|
|
5427
5427
|
if (u <= t)
|
|
5428
5428
|
return u;
|
|
5429
5429
|
for (; u > t; )
|
|
5430
|
-
if (!
|
|
5430
|
+
if (!j(this.src.charCodeAt(--u)))
|
|
5431
5431
|
return u + 1;
|
|
5432
5432
|
return u;
|
|
5433
5433
|
};
|
|
@@ -5454,7 +5454,7 @@ Ce.prototype.getLines = function(u, t, n, r) {
|
|
|
5454
5454
|
let l = s, d;
|
|
5455
5455
|
for (a + 1 < t || r ? d = this.eMarks[a] + 1 : d = this.eMarks[a]; l < d && c < n; ) {
|
|
5456
5456
|
const p = this.src.charCodeAt(l);
|
|
5457
|
-
if (
|
|
5457
|
+
if (j(p))
|
|
5458
5458
|
p === 9 ? c += 4 - (c + this.bsCount[a]) % 4 : c++;
|
|
5459
5459
|
else if (l - s < this.tShift[a])
|
|
5460
5460
|
c++;
|
|
@@ -5492,26 +5492,26 @@ function bc(e, u, t, n) {
|
|
|
5492
5492
|
if (i !== 124 && i !== 45 && i !== 58 || o >= e.eMarks[r])
|
|
5493
5493
|
return !1;
|
|
5494
5494
|
const a = e.src.charCodeAt(o++);
|
|
5495
|
-
if (a !== 124 && a !== 45 && a !== 58 && !
|
|
5495
|
+
if (a !== 124 && a !== 45 && a !== 58 && !j(a) || i === 45 && j(a))
|
|
5496
5496
|
return !1;
|
|
5497
5497
|
for (; o < e.eMarks[r]; ) {
|
|
5498
5498
|
const v = e.src.charCodeAt(o);
|
|
5499
|
-
if (v !== 124 && v !== 45 && v !== 58 && !
|
|
5499
|
+
if (v !== 124 && v !== 45 && v !== 58 && !j(v))
|
|
5500
5500
|
return !1;
|
|
5501
5501
|
o++;
|
|
5502
5502
|
}
|
|
5503
5503
|
let c = lt(e, u + 1), s = c.split("|");
|
|
5504
5504
|
const l = [];
|
|
5505
5505
|
for (let v = 0; v < s.length; v++) {
|
|
5506
|
-
const
|
|
5507
|
-
if (!
|
|
5506
|
+
const _ = s[v].trim();
|
|
5507
|
+
if (!_) {
|
|
5508
5508
|
if (v === 0 || v === s.length - 1)
|
|
5509
5509
|
continue;
|
|
5510
5510
|
return !1;
|
|
5511
5511
|
}
|
|
5512
|
-
if (!/^:?-+:?$/.test(
|
|
5512
|
+
if (!/^:?-+:?$/.test(_))
|
|
5513
5513
|
return !1;
|
|
5514
|
-
|
|
5514
|
+
_.charCodeAt(_.length - 1) === 58 ? l.push(_.charCodeAt(0) === 58 ? "center" : "right") : _.charCodeAt(0) === 58 ? l.push("left") : l.push("");
|
|
5515
5515
|
}
|
|
5516
5516
|
if (c = lt(e, u).trim(), c.indexOf("|") === -1 || e.sCount[u] - e.blkIndent >= 4)
|
|
5517
5517
|
return !1;
|
|
@@ -5530,8 +5530,8 @@ function bc(e, u, t, n) {
|
|
|
5530
5530
|
const C = e.push("tr_open", "tr", 1);
|
|
5531
5531
|
C.map = [u, u + 1];
|
|
5532
5532
|
for (let v = 0; v < s.length; v++) {
|
|
5533
|
-
const
|
|
5534
|
-
l[v] && (
|
|
5533
|
+
const _ = e.push("th_open", "th", 1);
|
|
5534
|
+
l[v] && (_.attrs = [["style", "text-align:" + l[v]]]);
|
|
5535
5535
|
const E = e.push("inline", "", 0);
|
|
5536
5536
|
E.content = s[v].trim(), E.children = [], e.push("th_close", "th", -1);
|
|
5537
5537
|
}
|
|
@@ -5539,7 +5539,7 @@ function bc(e, u, t, n) {
|
|
|
5539
5539
|
let g, k = 0;
|
|
5540
5540
|
for (r = u + 2; r < t && !(e.sCount[r] < e.blkIndent); r++) {
|
|
5541
5541
|
let v = !1;
|
|
5542
|
-
for (let E = 0,
|
|
5542
|
+
for (let E = 0, w = h.length; E < w; E++)
|
|
5543
5543
|
if (h[E](e, r, t, !0)) {
|
|
5544
5544
|
v = !0;
|
|
5545
5545
|
break;
|
|
@@ -5550,11 +5550,11 @@ function bc(e, u, t, n) {
|
|
|
5550
5550
|
const E = e.push("tbody_open", "tbody", 1);
|
|
5551
5551
|
E.map = g = [u + 2, 0];
|
|
5552
5552
|
}
|
|
5553
|
-
const
|
|
5554
|
-
|
|
5553
|
+
const _ = e.push("tr_open", "tr", 1);
|
|
5554
|
+
_.map = [r, r + 1];
|
|
5555
5555
|
for (let E = 0; E < d; E++) {
|
|
5556
|
-
const
|
|
5557
|
-
l[E] && (
|
|
5556
|
+
const w = e.push("td_open", "td", 1);
|
|
5557
|
+
l[E] && (w.attrs = [["style", "text-align:" + l[E]]]);
|
|
5558
5558
|
const y = e.push("inline", "", 0);
|
|
5559
5559
|
y.content = s[E] ? s[E].trim() : "", y.children = [], e.push("td_close", "td", -1);
|
|
5560
5560
|
}
|
|
@@ -5624,25 +5624,25 @@ function xc(e, u, t, n) {
|
|
|
5624
5624
|
if (r = e.bMarks[f] + e.tShift[f], o = e.eMarks[f], r >= o)
|
|
5625
5625
|
break;
|
|
5626
5626
|
if (e.src.charCodeAt(r++) === 62 && !k) {
|
|
5627
|
-
let
|
|
5628
|
-
e.src.charCodeAt(r) === 32 ? (r++,
|
|
5629
|
-
let y =
|
|
5627
|
+
let _ = e.sCount[f] + 1, E, w;
|
|
5628
|
+
e.src.charCodeAt(r) === 32 ? (r++, _++, w = !1, E = !0) : e.src.charCodeAt(r) === 9 ? (E = !0, (e.bsCount[f] + _) % 4 === 3 ? (r++, _++, w = !1) : w = !0) : E = !1;
|
|
5629
|
+
let y = _;
|
|
5630
5630
|
for (a.push(e.bMarks[f]), e.bMarks[f] = r; r < o; ) {
|
|
5631
5631
|
const I = e.src.charCodeAt(r);
|
|
5632
|
-
if (
|
|
5633
|
-
I === 9 ? y += 4 - (y + e.bsCount[f] + (
|
|
5632
|
+
if (j(I))
|
|
5633
|
+
I === 9 ? y += 4 - (y + e.bsCount[f] + (w ? 1 : 0)) % 4 : y++;
|
|
5634
5634
|
else
|
|
5635
5635
|
break;
|
|
5636
5636
|
r++;
|
|
5637
5637
|
}
|
|
5638
|
-
h = r >= o, c.push(e.bsCount[f]), e.bsCount[f] = e.sCount[f] + 1 + (E ? 1 : 0), s.push(e.sCount[f]), e.sCount[f] = y -
|
|
5638
|
+
h = r >= o, c.push(e.bsCount[f]), e.bsCount[f] = e.sCount[f] + 1 + (E ? 1 : 0), s.push(e.sCount[f]), e.sCount[f] = y - _, l.push(e.tShift[f]), e.tShift[f] = r - e.bMarks[f];
|
|
5639
5639
|
continue;
|
|
5640
5640
|
}
|
|
5641
5641
|
if (h)
|
|
5642
5642
|
break;
|
|
5643
5643
|
let v = !1;
|
|
5644
|
-
for (let
|
|
5645
|
-
if (d[
|
|
5644
|
+
for (let _ = 0, E = d.length; _ < E; _++)
|
|
5645
|
+
if (d[_](e, f, t, !0)) {
|
|
5646
5646
|
v = !0;
|
|
5647
5647
|
break;
|
|
5648
5648
|
}
|
|
@@ -5675,7 +5675,7 @@ function kc(e, u, t, n) {
|
|
|
5675
5675
|
let a = 1;
|
|
5676
5676
|
for (; o < r; ) {
|
|
5677
5677
|
const s = e.src.charCodeAt(o++);
|
|
5678
|
-
if (s !== i && !
|
|
5678
|
+
if (s !== i && !j(s))
|
|
5679
5679
|
return !1;
|
|
5680
5680
|
s === i && a++;
|
|
5681
5681
|
}
|
|
@@ -5695,7 +5695,7 @@ function xn(e, u) {
|
|
|
5695
5695
|
return -1;
|
|
5696
5696
|
if (n < t) {
|
|
5697
5697
|
const o = e.src.charCodeAt(n);
|
|
5698
|
-
if (!
|
|
5698
|
+
if (!j(o))
|
|
5699
5699
|
return -1;
|
|
5700
5700
|
}
|
|
5701
5701
|
return n;
|
|
@@ -5720,7 +5720,7 @@ function kn(e, u) {
|
|
|
5720
5720
|
break;
|
|
5721
5721
|
return -1;
|
|
5722
5722
|
}
|
|
5723
|
-
return r < n && (o = e.src.charCodeAt(r), !
|
|
5723
|
+
return r < n && (o = e.src.charCodeAt(r), !j(o)) ? -1 : r;
|
|
5724
5724
|
}
|
|
5725
5725
|
function Cc(e, u) {
|
|
5726
5726
|
const t = e.level + 2;
|
|
@@ -5753,34 +5753,34 @@ function vc(e, u, t, n) {
|
|
|
5753
5753
|
for (e.parentType = "list"; c < t; ) {
|
|
5754
5754
|
o = h, r = e.eMarks[c];
|
|
5755
5755
|
const v = e.sCount[c] + h - (e.bMarks[c] + e.tShift[c]);
|
|
5756
|
-
let
|
|
5756
|
+
let _ = v;
|
|
5757
5757
|
for (; o < r; ) {
|
|
5758
|
-
const
|
|
5759
|
-
if (
|
|
5760
|
-
|
|
5761
|
-
else if (
|
|
5762
|
-
|
|
5758
|
+
const O = e.src.charCodeAt(o);
|
|
5759
|
+
if (O === 9)
|
|
5760
|
+
_ += 4 - (_ + e.bsCount[c]) % 4;
|
|
5761
|
+
else if (O === 32)
|
|
5762
|
+
_++;
|
|
5763
5763
|
else
|
|
5764
5764
|
break;
|
|
5765
5765
|
o++;
|
|
5766
5766
|
}
|
|
5767
5767
|
const E = o;
|
|
5768
|
-
let
|
|
5769
|
-
E >= r ?
|
|
5770
|
-
const y = v +
|
|
5768
|
+
let w;
|
|
5769
|
+
E >= r ? w = 1 : w = _ - v, w > 4 && (w = 1);
|
|
5770
|
+
const y = v + w;
|
|
5771
5771
|
a = e.push("list_item_open", "li", 1), a.markup = String.fromCharCode(f);
|
|
5772
5772
|
const I = [c, 0];
|
|
5773
5773
|
a.map = I, d && (a.info = e.src.slice(i, h - 1));
|
|
5774
|
-
const
|
|
5775
|
-
if (e.listIndent = e.blkIndent, e.blkIndent = y, e.tight = !0, e.tShift[c] = E - e.bMarks[c], e.sCount[c] =
|
|
5774
|
+
const M = e.tight, L = e.tShift[c], Q = e.sCount[c], X = e.listIndent;
|
|
5775
|
+
if (e.listIndent = e.blkIndent, e.blkIndent = y, e.tight = !0, e.tShift[c] = E - e.bMarks[c], e.sCount[c] = _, E >= r && e.isEmpty(c + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, c, t, !0), (!e.tight || C) && (s = !1), C = e.line - c > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = X, e.tShift[c] = L, e.sCount[c] = Q, e.tight = M, a = e.push("list_item_close", "li", -1), a.markup = String.fromCharCode(f), c = e.line, I[1] = c, c >= t || e.sCount[c] < e.blkIndent || e.sCount[c] - e.blkIndent >= 4)
|
|
5776
5776
|
break;
|
|
5777
|
-
let
|
|
5778
|
-
for (let
|
|
5779
|
-
if (g[
|
|
5780
|
-
|
|
5777
|
+
let Y = !1;
|
|
5778
|
+
for (let O = 0, G = g.length; O < G; O++)
|
|
5779
|
+
if (g[O](e, c, t, !0)) {
|
|
5780
|
+
Y = !0;
|
|
5781
5781
|
break;
|
|
5782
5782
|
}
|
|
5783
|
-
if (
|
|
5783
|
+
if (Y)
|
|
5784
5784
|
break;
|
|
5785
5785
|
if (d) {
|
|
5786
5786
|
if (h = kn(e, c), h < 0)
|
|
@@ -5803,19 +5803,19 @@ function yc(e, u, t, n) {
|
|
|
5803
5803
|
return null;
|
|
5804
5804
|
let v = !1;
|
|
5805
5805
|
if (e.sCount[g] - e.blkIndent > 3 && (v = !0), e.sCount[g] < 0 && (v = !0), !v) {
|
|
5806
|
-
const
|
|
5806
|
+
const w = e.md.block.ruler.getRules("reference"), y = e.parentType;
|
|
5807
5807
|
e.parentType = "reference";
|
|
5808
5808
|
let I = !1;
|
|
5809
|
-
for (let
|
|
5810
|
-
if (
|
|
5809
|
+
for (let M = 0, L = w.length; M < L; M++)
|
|
5810
|
+
if (w[M](e, g, k, !0)) {
|
|
5811
5811
|
I = !0;
|
|
5812
5812
|
break;
|
|
5813
5813
|
}
|
|
5814
5814
|
if (e.parentType = y, I)
|
|
5815
5815
|
return null;
|
|
5816
5816
|
}
|
|
5817
|
-
const
|
|
5818
|
-
return e.src.slice(
|
|
5817
|
+
const _ = e.bMarks[g] + e.tShift[g], E = e.eMarks[g];
|
|
5818
|
+
return e.src.slice(_, E + 1);
|
|
5819
5819
|
}
|
|
5820
5820
|
let c = e.src.slice(r, o + 1);
|
|
5821
5821
|
o = c.length;
|
|
@@ -5842,7 +5842,7 @@ function yc(e, u, t, n) {
|
|
|
5842
5842
|
if (g === 10) {
|
|
5843
5843
|
const k = a(i);
|
|
5844
5844
|
k !== null && (c += k, o = c.length, i++);
|
|
5845
|
-
} else if (!
|
|
5845
|
+
} else if (!j(g)) break;
|
|
5846
5846
|
}
|
|
5847
5847
|
const l = e.md.helpers.parseLinkDestination(c, r, o);
|
|
5848
5848
|
if (!l.ok)
|
|
@@ -5857,7 +5857,7 @@ function yc(e, u, t, n) {
|
|
|
5857
5857
|
if (g === 10) {
|
|
5858
5858
|
const k = a(i);
|
|
5859
5859
|
k !== null && (c += k, o = c.length, i++);
|
|
5860
|
-
} else if (!
|
|
5860
|
+
} else if (!j(g)) break;
|
|
5861
5861
|
}
|
|
5862
5862
|
let m = e.md.helpers.parseLinkTitle(c, r, o);
|
|
5863
5863
|
for (; m.can_continue; ) {
|
|
@@ -5868,14 +5868,14 @@ function yc(e, u, t, n) {
|
|
|
5868
5868
|
let b;
|
|
5869
5869
|
for (r < o && f !== r && m.ok ? (b = m.str, r = m.pos) : (b = "", r = p, i = h); r < o; ) {
|
|
5870
5870
|
const g = c.charCodeAt(r);
|
|
5871
|
-
if (!
|
|
5871
|
+
if (!j(g))
|
|
5872
5872
|
break;
|
|
5873
5873
|
r++;
|
|
5874
5874
|
}
|
|
5875
5875
|
if (r < o && c.charCodeAt(r) !== 10 && b)
|
|
5876
5876
|
for (b = "", r = p, i = h; r < o; ) {
|
|
5877
5877
|
const g = c.charCodeAt(r);
|
|
5878
|
-
if (!
|
|
5878
|
+
if (!j(g))
|
|
5879
5879
|
break;
|
|
5880
5880
|
r++;
|
|
5881
5881
|
}
|
|
@@ -5947,7 +5947,7 @@ const _c = [
|
|
|
5947
5947
|
"tr",
|
|
5948
5948
|
"track",
|
|
5949
5949
|
"ul"
|
|
5950
|
-
], wc = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Ec = "[^\"'=<>`\\x00-\\x20]+", Fc = "'[^']*'", Ac = '"[^"]*"', Dc = "(?:" + Ec + "|" + Fc + "|" + Ac + ")", Tc = "(?:\\s+" + wc + "(?:\\s*=\\s*" + Dc + ")?)", Lr = "<[A-Za-z][A-Za-z0-9\\-]*" + Tc + "*\\s*\\/?>", Nr = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Sc = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", $c = "<[?][\\s\\S]*?[?]>", Mc = "<![A-Za-z][^>]*>", Lc = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", Nc = new RegExp("^(?:" + Lr + "|" + Nr + "|" + Sc + "|" + $c + "|" + Mc + "|" + Lc + ")"), Ic = new RegExp("^(?:" + Lr + "|" + Nr + ")"),
|
|
5950
|
+
], wc = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Ec = "[^\"'=<>`\\x00-\\x20]+", Fc = "'[^']*'", Ac = '"[^"]*"', Dc = "(?:" + Ec + "|" + Fc + "|" + Ac + ")", Tc = "(?:\\s+" + wc + "(?:\\s*=\\s*" + Dc + ")?)", Lr = "<[A-Za-z][A-Za-z0-9\\-]*" + Tc + "*\\s*\\/?>", Nr = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Sc = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", $c = "<[?][\\s\\S]*?[?]>", Mc = "<![A-Za-z][^>]*>", Lc = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", Nc = new RegExp("^(?:" + Lr + "|" + Nr + "|" + Sc + "|" + $c + "|" + Mc + "|" + Lc + ")"), Ic = new RegExp("^(?:" + Lr + "|" + Nr + ")"), Re = [
|
|
5951
5951
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
5952
5952
|
[/^<!--/, /-->/, !0],
|
|
5953
5953
|
[/^<\?/, /\?>/, !0],
|
|
@@ -5961,17 +5961,17 @@ function Rc(e, u, t, n) {
|
|
|
5961
5961
|
if (e.sCount[u] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(r) !== 60)
|
|
5962
5962
|
return !1;
|
|
5963
5963
|
let i = e.src.slice(r, o), a = 0;
|
|
5964
|
-
for (; a <
|
|
5964
|
+
for (; a < Re.length && !Re[a][0].test(i); a++)
|
|
5965
5965
|
;
|
|
5966
|
-
if (a ===
|
|
5966
|
+
if (a === Re.length)
|
|
5967
5967
|
return !1;
|
|
5968
5968
|
if (n)
|
|
5969
|
-
return
|
|
5969
|
+
return Re[a][2];
|
|
5970
5970
|
let c = u + 1;
|
|
5971
|
-
const s =
|
|
5972
|
-
if (!
|
|
5971
|
+
const s = Re[a][1].test("");
|
|
5972
|
+
if (!Re[a][1].test(i)) {
|
|
5973
5973
|
for (; c < t && !(e.sCount[c] < e.blkIndent && (s || !e.isEmpty(c))); c++)
|
|
5974
|
-
if (r = e.bMarks[c] + e.tShift[c], o = e.eMarks[c], i = e.src.slice(r, o),
|
|
5974
|
+
if (r = e.bMarks[c] + e.tShift[c], o = e.eMarks[c], i = e.src.slice(r, o), Re[a][1].test(i)) {
|
|
5975
5975
|
i.length !== 0 && c++;
|
|
5976
5976
|
break;
|
|
5977
5977
|
}
|
|
@@ -5990,13 +5990,13 @@ function zc(e, u, t, n) {
|
|
|
5990
5990
|
let a = 1;
|
|
5991
5991
|
for (i = e.src.charCodeAt(++r); i === 35 && r < o && a <= 6; )
|
|
5992
5992
|
a++, i = e.src.charCodeAt(++r);
|
|
5993
|
-
if (a > 6 || r < o && !
|
|
5993
|
+
if (a > 6 || r < o && !j(i))
|
|
5994
5994
|
return !1;
|
|
5995
5995
|
if (n)
|
|
5996
5996
|
return !0;
|
|
5997
5997
|
o = e.skipSpacesBack(o, r);
|
|
5998
5998
|
const c = e.skipCharsBack(o, 35, r);
|
|
5999
|
-
c > r &&
|
|
5999
|
+
c > r && j(e.src.charCodeAt(c - 1)) && (o = c), e.line = u + 1;
|
|
6000
6000
|
const s = e.push("heading_open", "h" + String(a), 1);
|
|
6001
6001
|
s.markup = "########".slice(0, a), s.map = [u, e.line];
|
|
6002
6002
|
const l = e.push("inline", "", 0);
|
|
@@ -6066,7 +6066,7 @@ function Bc(e, u, t) {
|
|
|
6066
6066
|
const c = e.push("inline", "", 0);
|
|
6067
6067
|
return c.content = i, c.map = [u, e.line], c.children = [], e.push("paragraph_close", "p", -1), e.parentType = r, !0;
|
|
6068
6068
|
}
|
|
6069
|
-
const
|
|
6069
|
+
const Mu = [
|
|
6070
6070
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
6071
6071
|
// which can be terminated by this one.
|
|
6072
6072
|
["table", bc, ["paragraph", "reference"]],
|
|
@@ -6083,8 +6083,8 @@ const $u = [
|
|
|
6083
6083
|
];
|
|
6084
6084
|
function ut() {
|
|
6085
6085
|
this.ruler = new te();
|
|
6086
|
-
for (let e = 0; e <
|
|
6087
|
-
this.ruler.push(
|
|
6086
|
+
for (let e = 0; e < Mu.length; e++)
|
|
6087
|
+
this.ruler.push(Mu[e][0], Mu[e][1], { alt: (Mu[e][2] || []).slice() });
|
|
6088
6088
|
}
|
|
6089
6089
|
ut.prototype.tokenize = function(e, u, t) {
|
|
6090
6090
|
const n = this.ruler.getRules(""), r = n.length, o = e.md.options.maxNesting;
|
|
@@ -6113,20 +6113,20 @@ ut.prototype.parse = function(e, u, t, n) {
|
|
|
6113
6113
|
this.tokenize(r, r.line, r.lineMax);
|
|
6114
6114
|
};
|
|
6115
6115
|
ut.prototype.State = Ce;
|
|
6116
|
-
function
|
|
6116
|
+
function yu(e, u, t, n) {
|
|
6117
6117
|
this.src = e, this.env = t, this.md = u, this.tokens = n, this.tokens_meta = Array(n.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
|
|
6118
6118
|
}
|
|
6119
|
-
|
|
6119
|
+
yu.prototype.pushPending = function() {
|
|
6120
6120
|
const e = new de("text", "", 0);
|
|
6121
6121
|
return e.content = this.pending, e.level = this.pendingLevel, this.tokens.push(e), this.pending = "", e;
|
|
6122
6122
|
};
|
|
6123
|
-
|
|
6123
|
+
yu.prototype.push = function(e, u, t) {
|
|
6124
6124
|
this.pending && this.pushPending();
|
|
6125
6125
|
const n = new de(e, u, t);
|
|
6126
6126
|
let r = null;
|
|
6127
6127
|
return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), n.level = this.level, t > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], r = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(n), this.tokens_meta.push(r), n;
|
|
6128
6128
|
};
|
|
6129
|
-
|
|
6129
|
+
yu.prototype.scanDelims = function(e, u) {
|
|
6130
6130
|
const t = this.posMax, n = this.src.charCodeAt(e);
|
|
6131
6131
|
let r;
|
|
6132
6132
|
if (e === 0)
|
|
@@ -6146,10 +6146,10 @@ Cu.prototype.scanDelims = function(e, u) {
|
|
|
6146
6146
|
const b = this.src.charCodeAt(o + 1);
|
|
6147
6147
|
a = (b & 64512) === 56320 ? 65536 + (a - 55296 << 10) + (b - 56320) : 65533;
|
|
6148
6148
|
} else (a & 64512) === 56320 && (a = 65533);
|
|
6149
|
-
const c =
|
|
6149
|
+
const c = mu(r) || bu(r), s = mu(a) || bu(a), l = pu(r), d = pu(a), p = !d && (!s || l || c), h = !l && (!c || d || s);
|
|
6150
6150
|
return { can_open: p && (u || !h || c), can_close: h && (u || !p || s), length: i };
|
|
6151
6151
|
};
|
|
6152
|
-
|
|
6152
|
+
yu.prototype.Token = de;
|
|
6153
6153
|
function Oc(e) {
|
|
6154
6154
|
switch (e) {
|
|
6155
6155
|
case 10:
|
|
@@ -6229,7 +6229,7 @@ function Vc(e, u) {
|
|
|
6229
6229
|
e.pending = e.pending.slice(0, -1), e.push("softbreak", "br", 0);
|
|
6230
6230
|
else
|
|
6231
6231
|
e.push("softbreak", "br", 0);
|
|
6232
|
-
for (t++; t < r &&
|
|
6232
|
+
for (t++; t < r && j(e.src.charCodeAt(t)); )
|
|
6233
6233
|
t++;
|
|
6234
6234
|
return e.pos = t, !0;
|
|
6235
6235
|
}
|
|
@@ -6245,7 +6245,7 @@ function Uc(e, u) {
|
|
|
6245
6245
|
if (e.src.charCodeAt(t) !== 92 || (t++, t >= n)) return !1;
|
|
6246
6246
|
let r = e.src.charCodeAt(t);
|
|
6247
6247
|
if (r === 10) {
|
|
6248
|
-
for (u || e.push("hardbreak", "br", 0), t++; t < n && (r = e.src.charCodeAt(t), !!
|
|
6248
|
+
for (u || e.push("hardbreak", "br", 0), t++; t < n && (r = e.src.charCodeAt(t), !!j(r)); )
|
|
6249
6249
|
t++;
|
|
6250
6250
|
return e.pos = t, !0;
|
|
6251
6251
|
}
|
|
@@ -6410,15 +6410,15 @@ function Jc(e, u) {
|
|
|
6410
6410
|
return !1;
|
|
6411
6411
|
let f = h + 1;
|
|
6412
6412
|
if (f < d && e.src.charCodeAt(f) === 40) {
|
|
6413
|
-
for (s = !1, f++; f < d && (t = e.src.charCodeAt(f), !(!
|
|
6413
|
+
for (s = !1, f++; f < d && (t = e.src.charCodeAt(f), !(!j(t) && t !== 10)); f++)
|
|
6414
6414
|
;
|
|
6415
6415
|
if (f >= d)
|
|
6416
6416
|
return !1;
|
|
6417
6417
|
if (c = f, r = e.md.helpers.parseLinkDestination(e.src, f, e.posMax), r.ok) {
|
|
6418
|
-
for (i = e.md.normalizeLink(r.str), e.md.validateLink(i) ? f = r.pos : i = "", c = f; f < d && (t = e.src.charCodeAt(f), !(!
|
|
6418
|
+
for (i = e.md.normalizeLink(r.str), e.md.validateLink(i) ? f = r.pos : i = "", c = f; f < d && (t = e.src.charCodeAt(f), !(!j(t) && t !== 10)); f++)
|
|
6419
6419
|
;
|
|
6420
6420
|
if (r = e.md.helpers.parseLinkTitle(e.src, f, e.posMax), f < d && c !== f && r.ok)
|
|
6421
|
-
for (a = r.str, f = r.pos; f < d && (t = e.src.charCodeAt(f), !(!
|
|
6421
|
+
for (a = r.str, f = r.pos; f < d && (t = e.src.charCodeAt(f), !(!j(t) && t !== 10)); f++)
|
|
6422
6422
|
;
|
|
6423
6423
|
}
|
|
6424
6424
|
(f >= d || e.src.charCodeAt(f) !== 41) && (s = !0), f++;
|
|
@@ -6446,14 +6446,14 @@ function Qc(e, u) {
|
|
|
6446
6446
|
if (f < 0)
|
|
6447
6447
|
return !1;
|
|
6448
6448
|
if (o = f + 1, o < p && e.src.charCodeAt(o) === 40) {
|
|
6449
|
-
for (o++; o < p && (t = e.src.charCodeAt(o), !(!
|
|
6449
|
+
for (o++; o < p && (t = e.src.charCodeAt(o), !(!j(t) && t !== 10)); o++)
|
|
6450
6450
|
;
|
|
6451
6451
|
if (o >= p)
|
|
6452
6452
|
return !1;
|
|
6453
|
-
for (s = o, a = e.md.helpers.parseLinkDestination(e.src, o, e.posMax), a.ok && (l = e.md.normalizeLink(a.str), e.md.validateLink(l) ? o = a.pos : l = ""), s = o; o < p && (t = e.src.charCodeAt(o), !(!
|
|
6453
|
+
for (s = o, a = e.md.helpers.parseLinkDestination(e.src, o, e.posMax), a.ok && (l = e.md.normalizeLink(a.str), e.md.validateLink(l) ? o = a.pos : l = ""), s = o; o < p && (t = e.src.charCodeAt(o), !(!j(t) && t !== 10)); o++)
|
|
6454
6454
|
;
|
|
6455
6455
|
if (a = e.md.helpers.parseLinkTitle(e.src, o, e.posMax), o < p && s !== o && a.ok)
|
|
6456
|
-
for (c = a.str, o = a.pos; o < p && (t = e.src.charCodeAt(o), !(!
|
|
6456
|
+
for (c = a.str, o = a.pos; o < p && (t = e.src.charCodeAt(o), !(!j(t) && t !== 10)); o++)
|
|
6457
6457
|
;
|
|
6458
6458
|
else
|
|
6459
6459
|
c = "";
|
|
@@ -6561,7 +6561,7 @@ function cs(e, u) {
|
|
|
6561
6561
|
if (o) {
|
|
6562
6562
|
if (!u) {
|
|
6563
6563
|
const i = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), a = e.push("text_special", "", 0);
|
|
6564
|
-
a.content = Ht(i) ?
|
|
6564
|
+
a.content = Ht(i) ? hu(i) : hu(65533), a.markup = o[0], a.info = "entity";
|
|
6565
6565
|
}
|
|
6566
6566
|
return e.pos += o[0].length, !0;
|
|
6567
6567
|
}
|
|
@@ -6639,7 +6639,7 @@ const dt = [
|
|
|
6639
6639
|
// rule below merges unused segments back with the rest of the text
|
|
6640
6640
|
["fragments_join", ls]
|
|
6641
6641
|
];
|
|
6642
|
-
function
|
|
6642
|
+
function _u() {
|
|
6643
6643
|
this.ruler = new te();
|
|
6644
6644
|
for (let e = 0; e < dt.length; e++)
|
|
6645
6645
|
this.ruler.push(dt[e][0], dt[e][1]);
|
|
@@ -6647,7 +6647,7 @@ function vu() {
|
|
|
6647
6647
|
for (let e = 0; e < ft.length; e++)
|
|
6648
6648
|
this.ruler2.push(ft[e][0], ft[e][1]);
|
|
6649
6649
|
}
|
|
6650
|
-
|
|
6650
|
+
_u.prototype.skipToken = function(e) {
|
|
6651
6651
|
const u = e.pos, t = this.ruler.getRules(""), n = t.length, r = e.md.options.maxNesting, o = e.cache;
|
|
6652
6652
|
if (typeof o[u] < "u") {
|
|
6653
6653
|
e.pos = o[u];
|
|
@@ -6665,7 +6665,7 @@ vu.prototype.skipToken = function(e) {
|
|
|
6665
6665
|
e.pos = e.posMax;
|
|
6666
6666
|
i || e.pos++, o[u] = e.pos;
|
|
6667
6667
|
};
|
|
6668
|
-
|
|
6668
|
+
_u.prototype.tokenize = function(e) {
|
|
6669
6669
|
const u = this.ruler.getRules(""), t = u.length, n = e.posMax, r = e.md.options.maxNesting;
|
|
6670
6670
|
for (; e.pos < n; ) {
|
|
6671
6671
|
const o = e.pos;
|
|
@@ -6687,14 +6687,14 @@ vu.prototype.tokenize = function(e) {
|
|
|
6687
6687
|
}
|
|
6688
6688
|
e.pending && e.pushPending();
|
|
6689
6689
|
};
|
|
6690
|
-
|
|
6690
|
+
_u.prototype.parse = function(e, u, t, n) {
|
|
6691
6691
|
const r = new this.State(e, u, t, n);
|
|
6692
6692
|
this.tokenize(r);
|
|
6693
6693
|
const o = this.ruler2.getRules(""), i = o.length;
|
|
6694
6694
|
for (let a = 0; a < i; a++)
|
|
6695
6695
|
o[a](r);
|
|
6696
6696
|
};
|
|
6697
|
-
|
|
6697
|
+
_u.prototype.State = yu;
|
|
6698
6698
|
function ds(e) {
|
|
6699
6699
|
const u = {};
|
|
6700
6700
|
e = e || {}, u.src_Any = yr.source, u.src_Cc = _r.source, u.src_Z = Er.source, u.src_P = qt.source, u.src_ZPCc = [u.src_Z, u.src_P, u.src_Cc].join("|"), u.src_ZCc = [u.src_Z, u.src_Cc].join("|");
|
|
@@ -6786,7 +6786,7 @@ function wn() {
|
|
|
6786
6786
|
u.normalize(e);
|
|
6787
6787
|
};
|
|
6788
6788
|
}
|
|
6789
|
-
function
|
|
6789
|
+
function qu(e) {
|
|
6790
6790
|
const u = e.re = ds(e.__opts__), t = e.__tlds__.slice();
|
|
6791
6791
|
e.onCompile(), e.__tlds_replaced__ || t.push(xs), t.push(u.src_xn), u.src_tlds = t.join("|");
|
|
6792
6792
|
function n(a) {
|
|
@@ -6827,18 +6827,18 @@ function Pr(e, u, t, n) {
|
|
|
6827
6827
|
const r = e.slice(t, n);
|
|
6828
6828
|
this.schema = u.toLowerCase(), this.index = t, this.lastIndex = n, this.raw = r, this.text = r, this.url = r;
|
|
6829
6829
|
}
|
|
6830
|
-
function
|
|
6831
|
-
if (!(this instanceof
|
|
6832
|
-
return new
|
|
6833
|
-
u || ms(e) && (u = e, e = {}), this.__opts__ = Et({}, zr, u), this.__schemas__ = Et({}, gs, e), this.__compiled__ = {}, this.__tlds__ = ks, this.__tlds_replaced__ = !1, this.re = {},
|
|
6830
|
+
function ne(e, u) {
|
|
6831
|
+
if (!(this instanceof ne))
|
|
6832
|
+
return new ne(e, u);
|
|
6833
|
+
u || ms(e) && (u = e, e = {}), this.__opts__ = Et({}, zr, u), this.__schemas__ = Et({}, gs, e), this.__compiled__ = {}, this.__tlds__ = ks, this.__tlds_replaced__ = !1, this.re = {}, qu(this);
|
|
6834
6834
|
}
|
|
6835
|
-
|
|
6836
|
-
return this.__schemas__[u] = t,
|
|
6835
|
+
ne.prototype.add = function(u, t) {
|
|
6836
|
+
return this.__schemas__[u] = t, qu(this), this;
|
|
6837
6837
|
};
|
|
6838
|
-
|
|
6838
|
+
ne.prototype.set = function(u) {
|
|
6839
6839
|
return this.__opts__ = Et(this.__opts__, u), this;
|
|
6840
6840
|
};
|
|
6841
|
-
|
|
6841
|
+
ne.prototype.test = function(u) {
|
|
6842
6842
|
if (!u.length)
|
|
6843
6843
|
return !1;
|
|
6844
6844
|
let t, n;
|
|
@@ -6849,13 +6849,13 @@ re.prototype.test = function(u) {
|
|
|
6849
6849
|
}
|
|
6850
6850
|
return !!(this.__opts__.fuzzyLink && this.__compiled__["http:"] && u.search(this.re.host_fuzzy_test) >= 0 && u.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy) !== null || this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && u.indexOf("@") >= 0 && u.match(this.re.email_fuzzy) !== null);
|
|
6851
6851
|
};
|
|
6852
|
-
|
|
6852
|
+
ne.prototype.pretest = function(u) {
|
|
6853
6853
|
return this.re.pretest.test(u);
|
|
6854
6854
|
};
|
|
6855
|
-
|
|
6855
|
+
ne.prototype.testSchemaAt = function(u, t, n) {
|
|
6856
6856
|
return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(u, n, this) : 0;
|
|
6857
6857
|
};
|
|
6858
|
-
|
|
6858
|
+
ne.prototype.match = function(u) {
|
|
6859
6859
|
const t = [], n = [], r = [], o = [];
|
|
6860
6860
|
let i, a, c;
|
|
6861
6861
|
function s(p, h) {
|
|
@@ -6901,7 +6901,7 @@ re.prototype.match = function(u) {
|
|
|
6901
6901
|
}
|
|
6902
6902
|
return t.length ? t : null;
|
|
6903
6903
|
};
|
|
6904
|
-
|
|
6904
|
+
ne.prototype.matchAtStart = function(u) {
|
|
6905
6905
|
if (!u.length) return null;
|
|
6906
6906
|
const t = this.re.schema_at_start.exec(u);
|
|
6907
6907
|
if (!t) return null;
|
|
@@ -6910,17 +6910,17 @@ re.prototype.matchAtStart = function(u) {
|
|
|
6910
6910
|
const r = new Pr(u, t[2], t.index + t[1].length, t.index + t[0].length + n);
|
|
6911
6911
|
return this.__compiled__[r.schema].normalize(r, this), r;
|
|
6912
6912
|
};
|
|
6913
|
-
|
|
6913
|
+
ne.prototype.tlds = function(u, t) {
|
|
6914
6914
|
return u = Array.isArray(u) ? u : [u], t ? (this.__tlds__ = this.__tlds__.concat(u).sort().filter(function(n, r, o) {
|
|
6915
6915
|
return n !== o[r - 1];
|
|
6916
|
-
}).reverse(),
|
|
6916
|
+
}).reverse(), qu(this), this) : (this.__tlds__ = u.slice(), this.__tlds_replaced__ = !0, qu(this), this);
|
|
6917
6917
|
};
|
|
6918
|
-
|
|
6918
|
+
ne.prototype.normalize = function(u) {
|
|
6919
6919
|
u.schema || (u.url = `http://${u.url}`), u.schema === "mailto:" && !/^mailto:/i.test(u.url) && (u.url = `mailto:${u.url}`);
|
|
6920
6920
|
};
|
|
6921
|
-
|
|
6921
|
+
ne.prototype.onCompile = function() {
|
|
6922
6922
|
};
|
|
6923
|
-
const
|
|
6923
|
+
const Ke = 2147483647, be = 36, Gt = 1, gu = 26, vs = 38, ys = 700, Br = 72, Or = 128, qr = "-", _s = /^xn--/, ws = /[^\0-\x7F]/, Es = /[\x2E\u3002\uFF0E\uFF61]/g, Fs = {
|
|
6924
6924
|
overflow: "Overflow: input needs wider integers to process",
|
|
6925
6925
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
6926
6926
|
"invalid-input": "Invalid input"
|
|
@@ -6962,7 +6962,7 @@ const Ds = (e) => String.fromCodePoint(...e), Ts = function(e) {
|
|
|
6962
6962
|
return e + 22 + 75 * (e < 26) - ((u != 0) << 5);
|
|
6963
6963
|
}, Vr = function(e, u, t) {
|
|
6964
6964
|
let n = 0;
|
|
6965
|
-
for (e = t ? me(e / ys) : e >> 1, e += me(e / u); e > ht *
|
|
6965
|
+
for (e = t ? me(e / ys) : e >> 1, e += me(e / u); e > ht * gu >> 1; n += be)
|
|
6966
6966
|
e = me(e / ht);
|
|
6967
6967
|
return me(n + (ht + 1) * e / (e + vs));
|
|
6968
6968
|
}, Ur = function(e) {
|
|
@@ -6976,15 +6976,15 @@ const Ds = (e) => String.fromCodePoint(...e), Ts = function(e) {
|
|
|
6976
6976
|
for (let l = 1, d = be; ; d += be) {
|
|
6977
6977
|
a >= t && Ae("invalid-input");
|
|
6978
6978
|
const p = Ts(e.charCodeAt(a++));
|
|
6979
|
-
p >= be && Ae("invalid-input"), p > me((
|
|
6980
|
-
const h = d <= o ? Gt : d >= o +
|
|
6979
|
+
p >= be && Ae("invalid-input"), p > me((Ke - n) / l) && Ae("overflow"), n += p * l;
|
|
6980
|
+
const h = d <= o ? Gt : d >= o + gu ? gu : d - o;
|
|
6981
6981
|
if (p < h)
|
|
6982
6982
|
break;
|
|
6983
6983
|
const f = be - h;
|
|
6984
|
-
l > me(
|
|
6984
|
+
l > me(Ke / f) && Ae("overflow"), l *= f;
|
|
6985
6985
|
}
|
|
6986
6986
|
const s = u.length + 1;
|
|
6987
|
-
o = Vr(n - c, s, c == 0), me(n / s) >
|
|
6987
|
+
o = Vr(n - c, s, c == 0), me(n / s) > Ke - r && Ae("overflow"), r += me(n / s), n %= s, u.splice(n++, 0, r);
|
|
6988
6988
|
}
|
|
6989
6989
|
return String.fromCodePoint(...u);
|
|
6990
6990
|
}, Gr = function(e) {
|
|
@@ -6997,16 +6997,16 @@ const Ds = (e) => String.fromCodePoint(...e), Ts = function(e) {
|
|
|
6997
6997
|
const i = u.length;
|
|
6998
6998
|
let a = i;
|
|
6999
6999
|
for (i && u.push(qr); a < t; ) {
|
|
7000
|
-
let c =
|
|
7000
|
+
let c = Ke;
|
|
7001
7001
|
for (const l of e)
|
|
7002
7002
|
l >= n && l < c && (c = l);
|
|
7003
7003
|
const s = a + 1;
|
|
7004
|
-
c - n > me((
|
|
7004
|
+
c - n > me((Ke - r) / s) && Ae("overflow"), r += (c - n) * s, n = c;
|
|
7005
7005
|
for (const l of e)
|
|
7006
|
-
if (l < n && ++r >
|
|
7006
|
+
if (l < n && ++r > Ke && Ae("overflow"), l === n) {
|
|
7007
7007
|
let d = r;
|
|
7008
7008
|
for (let p = be; ; p += be) {
|
|
7009
|
-
const h = p <= o ? Gt : p >= o +
|
|
7009
|
+
const h = p <= o ? Gt : p >= o + gu ? gu : p - o;
|
|
7010
7010
|
if (d < h)
|
|
7011
7011
|
break;
|
|
7012
7012
|
const f = d - h, m = be - h;
|
|
@@ -7231,7 +7231,7 @@ function Bs(e) {
|
|
|
7231
7231
|
u.hostname = Zr.toASCII(u.hostname);
|
|
7232
7232
|
} catch {
|
|
7233
7233
|
}
|
|
7234
|
-
return
|
|
7234
|
+
return vu(Bt(u));
|
|
7235
7235
|
}
|
|
7236
7236
|
function Os(e) {
|
|
7237
7237
|
const u = Ot(e, !0);
|
|
@@ -7240,12 +7240,12 @@ function Os(e) {
|
|
|
7240
7240
|
u.hostname = Zr.toUnicode(u.hostname);
|
|
7241
7241
|
} catch {
|
|
7242
7242
|
}
|
|
7243
|
-
return
|
|
7243
|
+
return Je(Bt(u), Je.defaultChars + "%");
|
|
7244
7244
|
}
|
|
7245
7245
|
function ce(e, u) {
|
|
7246
7246
|
if (!(this instanceof ce))
|
|
7247
7247
|
return new ce(e, u);
|
|
7248
|
-
u || jt(e) || (u = e || {}, e = "default"), this.inline = new
|
|
7248
|
+
u || jt(e) || (u = e || {}, e = "default"), this.inline = new _u(), this.block = new ut(), this.core = new Vt(), this.renderer = new tu(), this.linkify = new ne(), this.validateLink = Ps, this.normalizeLink = Bs, this.normalizeLinkText = Os, this.utils = Ha, this.helpers = Qu({}, Za), this.options = {}, this.configure(e), u && this.set(u);
|
|
7249
7249
|
}
|
|
7250
7250
|
ce.prototype.set = function(e) {
|
|
7251
7251
|
return Qu(this.options, e), this;
|
|
@@ -7327,35 +7327,35 @@ function Yr(e, u) {
|
|
|
7327
7327
|
const t = e[u].type === "link_open" ? u + 1 : u - 1;
|
|
7328
7328
|
return /^\[\d{1,3}\]$/u.test(e[t]?.content ?? "");
|
|
7329
7329
|
}
|
|
7330
|
-
const
|
|
7330
|
+
const je = new ce({
|
|
7331
7331
|
breaks: !0,
|
|
7332
7332
|
html: !1,
|
|
7333
7333
|
linkify: !1,
|
|
7334
7334
|
typographer: !1
|
|
7335
7335
|
});
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7336
|
+
je.validateLink = (e) => Kr(e) !== null;
|
|
7337
|
+
je.renderer.rules.image = (e, u) => je.utils.escapeHtml(e[u].content);
|
|
7338
|
+
je.renderer.rules.link_open = (e, u, t, n, r) => {
|
|
7339
7339
|
const o = e[u];
|
|
7340
7340
|
o.attrSet("target", "_blank"), o.attrSet("rel", "noopener noreferrer nofollow"), o.attrJoin("class", "chat-message-link");
|
|
7341
7341
|
const i = r.renderToken(e, u, t);
|
|
7342
7342
|
return Yr(e, u) ? `<sup class="chat-citation">${i}` : i;
|
|
7343
7343
|
};
|
|
7344
|
-
|
|
7344
|
+
je.renderer.rules.link_close = (e, u, t, n, r) => {
|
|
7345
7345
|
const o = r.renderToken(e, u, t);
|
|
7346
7346
|
return Yr(e, u) ? `${o}</sup>` : o;
|
|
7347
7347
|
};
|
|
7348
7348
|
function Hs(e) {
|
|
7349
|
-
return
|
|
7349
|
+
return je.renderInline(js(e));
|
|
7350
7350
|
}
|
|
7351
7351
|
function Vs(e) {
|
|
7352
|
-
return
|
|
7353
|
-
}
|
|
7354
|
-
function ru(e) {
|
|
7355
|
-
return ({ children: u }) => `<${e}>${Ze(u)}</${e}>`;
|
|
7352
|
+
return je.utils.escapeHtml(e).replace(/\r\n?|\n/gu, "<br>");
|
|
7356
7353
|
}
|
|
7357
7354
|
function ou(e) {
|
|
7358
|
-
return ({ children: u }) => `<${e}>${
|
|
7355
|
+
return ({ children: u }) => `<${e}>${We(u)}</${e}>`;
|
|
7356
|
+
}
|
|
7357
|
+
function iu(e) {
|
|
7358
|
+
return ({ children: u }) => `<${e}>${We(u)}</${e}>`;
|
|
7359
7359
|
}
|
|
7360
7360
|
function Jr(e) {
|
|
7361
7361
|
return e.type === "hardBreak" ? `
|
|
@@ -7363,17 +7363,17 @@ function Jr(e) {
|
|
|
7363
7363
|
}
|
|
7364
7364
|
const Us = ea({
|
|
7365
7365
|
nodeMapping: {
|
|
7366
|
-
doc: ({ children: e }) =>
|
|
7367
|
-
paragraph:
|
|
7366
|
+
doc: ({ children: e }) => We(e),
|
|
7367
|
+
paragraph: ou("p"),
|
|
7368
7368
|
text: ({ node: e }) => e.marks?.length ? _t(e.text ?? "") : Hs(e.text ?? ""),
|
|
7369
7369
|
heading: ({ node: e, children: u }) => {
|
|
7370
7370
|
const t = Number(e.attrs?.level ?? 1), n = `h${Number.isInteger(t) && t >= 1 && t <= 6 ? t : 1}`;
|
|
7371
|
-
return `<${n}>${
|
|
7371
|
+
return `<${n}>${We(u)}</${n}>`;
|
|
7372
7372
|
},
|
|
7373
|
-
blockquote:
|
|
7374
|
-
bulletList:
|
|
7375
|
-
orderedList:
|
|
7376
|
-
listItem:
|
|
7373
|
+
blockquote: ou("blockquote"),
|
|
7374
|
+
bulletList: ou("ul"),
|
|
7375
|
+
orderedList: ou("ol"),
|
|
7376
|
+
listItem: ou("li"),
|
|
7377
7377
|
codeBlock: ({ node: e }) => {
|
|
7378
7378
|
const u = e.attrs?.language, t = typeof u == "string" && u ? { class: `language-${u}` } : void 0;
|
|
7379
7379
|
return `<pre><code${on(t)}>${_t(Jr(e))}</code></pre>`;
|
|
@@ -7382,14 +7382,14 @@ const Us = ea({
|
|
|
7382
7382
|
horizontalRule: () => "<hr>"
|
|
7383
7383
|
},
|
|
7384
7384
|
markMapping: {
|
|
7385
|
-
bold:
|
|
7386
|
-
italic:
|
|
7387
|
-
strike:
|
|
7388
|
-
underline:
|
|
7389
|
-
code:
|
|
7385
|
+
bold: iu("strong"),
|
|
7386
|
+
italic: iu("em"),
|
|
7387
|
+
strike: iu("s"),
|
|
7388
|
+
underline: iu("u"),
|
|
7389
|
+
code: iu("code"),
|
|
7390
7390
|
link: ({ mark: e, children: u }) => {
|
|
7391
7391
|
const t = Kr(e.attrs?.href);
|
|
7392
|
-
if (!t) return
|
|
7392
|
+
if (!t) return We(u);
|
|
7393
7393
|
const n = {
|
|
7394
7394
|
href: t,
|
|
7395
7395
|
target: "_blank",
|
|
@@ -7397,7 +7397,7 @@ const Us = ea({
|
|
|
7397
7397
|
class: "chat-message-link",
|
|
7398
7398
|
...e.attrs?.title ? { title: String(e.attrs.title) } : {}
|
|
7399
7399
|
};
|
|
7400
|
-
return `<a${on(n)}>${
|
|
7400
|
+
return `<a${on(n)}>${We(u)}</a>`;
|
|
7401
7401
|
}
|
|
7402
7402
|
},
|
|
7403
7403
|
unhandledNode: () => "",
|
|
@@ -7432,9 +7432,9 @@ function Ws(e, u = 60) {
|
|
|
7432
7432
|
}
|
|
7433
7433
|
function Zt(e) {
|
|
7434
7434
|
if (e.author.type === oe.Customer) return e.content;
|
|
7435
|
-
if (e.status ===
|
|
7435
|
+
if (e.status === Oe.Failed) return null;
|
|
7436
7436
|
const u = e.agenticSteps?.filter((t) => t.text).map((t) => t.text);
|
|
7437
|
-
return e.status ===
|
|
7437
|
+
return e.status === Oe.Completed && u?.length ? { content: u.reduce(
|
|
7438
7438
|
(n, r) => [
|
|
7439
7439
|
...n,
|
|
7440
7440
|
...Array.isArray(r.content) ? r.content : []
|
|
@@ -7457,7 +7457,7 @@ function Xr({
|
|
|
7457
7457
|
{
|
|
7458
7458
|
...t,
|
|
7459
7459
|
role: "status",
|
|
7460
|
-
className:
|
|
7460
|
+
className: U("chat-typing-indicator", e),
|
|
7461
7461
|
children: [
|
|
7462
7462
|
/* @__PURE__ */ x("span", { className: "sr-only", children: u ?? n("chat.thinking") }),
|
|
7463
7463
|
/* @__PURE__ */ x(
|
|
@@ -7494,16 +7494,16 @@ const rl = (e) => e ? [e] : [], ol = (e) => typeof Intl.Segmenter != "function"
|
|
|
7494
7494
|
for (; t < e.length && t < u.length && e[t] === u[t]; )
|
|
7495
7495
|
t += 1;
|
|
7496
7496
|
return t;
|
|
7497
|
-
},
|
|
7497
|
+
}, Ze = (e) => /\s/u.test(e), il = (e, u, t) => {
|
|
7498
7498
|
let n = Math.min(u + t, e.length);
|
|
7499
7499
|
if (n === e.length) return n - u;
|
|
7500
7500
|
const r = Math.min(n + el, e.length);
|
|
7501
|
-
for (; n < r && !
|
|
7501
|
+
for (; n < r && !Ze(e[n - 1]) && !Ze(e[n]); )
|
|
7502
7502
|
n += 1;
|
|
7503
|
-
for (; n < e.length &&
|
|
7504
|
-
if (e.slice(u, n).every(
|
|
7505
|
-
for (; n < e.length && !
|
|
7506
|
-
for (; n < e.length &&
|
|
7503
|
+
for (; n < e.length && Ze(e[n]); ) n += 1;
|
|
7504
|
+
if (e.slice(u, n).every(Ze)) {
|
|
7505
|
+
for (; n < e.length && !Ze(e[n]); ) n += 1;
|
|
7506
|
+
for (; n < e.length && Ze(e[n]); ) n += 1;
|
|
7507
7507
|
}
|
|
7508
7508
|
return n - u;
|
|
7509
7509
|
}, al = ({
|
|
@@ -7559,8 +7559,8 @@ const rl = (e) => e ? [e] : [], ol = (e) => typeof Intl.Segmenter != "function"
|
|
|
7559
7559
|
if (l) {
|
|
7560
7560
|
if (l.firstTimestamp ??= b, b - l.firstTimestamp < nl)
|
|
7561
7561
|
return null;
|
|
7562
|
-
const I = l.target,
|
|
7563
|
-
l = null, m(I,
|
|
7562
|
+
const I = l.target, M = l.text;
|
|
7563
|
+
l = null, m(I, M);
|
|
7564
7564
|
}
|
|
7565
7565
|
if (f()) return null;
|
|
7566
7566
|
if (s)
|
|
@@ -7573,9 +7573,9 @@ const rl = (e) => e ? [e] : [], ol = (e) => typeof Intl.Segmenter != "function"
|
|
|
7573
7573
|
tl
|
|
7574
7574
|
);
|
|
7575
7575
|
if (a = b, i = Math.min(ul, i + v / k), Math.floor(i) < 1) return null;
|
|
7576
|
-
const E = g ? Math.ceil(C / c) : 1,
|
|
7576
|
+
const E = g ? Math.ceil(C / c) : 1, w = g ? il(t, r.length, E) : E, y = t.slice(
|
|
7577
7577
|
r.length,
|
|
7578
|
-
r.length +
|
|
7578
|
+
r.length + w
|
|
7579
7579
|
);
|
|
7580
7580
|
return r = r.concat(y), i = Math.max(0, i - 1), g && (c -= 1), r.length === t.length && (i = 0, a = null, c = 0), h(y);
|
|
7581
7581
|
},
|
|
@@ -7588,13 +7588,13 @@ const rl = (e) => e ? [e] : [], ol = (e) => typeof Intl.Segmenter != "function"
|
|
|
7588
7588
|
isSettled: f
|
|
7589
7589
|
};
|
|
7590
7590
|
}, cl = () => document.visibilityState === "hidden", sl = (e, u) => {
|
|
7591
|
-
const [t] =
|
|
7591
|
+
const [t] = V(() => {
|
|
7592
7592
|
const i = al();
|
|
7593
7593
|
return u && e.startsWith(u) && (i.setTarget(u), i.flush()), i;
|
|
7594
|
-
}), n =
|
|
7594
|
+
}), n = S(null), [r, o] = V(
|
|
7595
7595
|
() => t.getSnapshot()
|
|
7596
7596
|
);
|
|
7597
|
-
return
|
|
7597
|
+
return H(() => {
|
|
7598
7598
|
const i = typeof window.matchMedia == "function" ? window.matchMedia("(prefers-reduced-motion: reduce)") : null;
|
|
7599
7599
|
let a = null, c = !1;
|
|
7600
7600
|
const s = () => {
|
|
@@ -7622,7 +7622,7 @@ const rl = (e) => e ? [e] : [], ol = (e) => typeof Intl.Segmenter != "function"
|
|
|
7622
7622
|
f
|
|
7623
7623
|
);
|
|
7624
7624
|
};
|
|
7625
|
-
}, [t]),
|
|
7625
|
+
}, [t]), H(() => {
|
|
7626
7626
|
t.setTarget(e), n.current?.start();
|
|
7627
7627
|
}, [t, e]), {
|
|
7628
7628
|
...r,
|
|
@@ -7637,16 +7637,16 @@ function dl({
|
|
|
7637
7637
|
finished: r = !1,
|
|
7638
7638
|
onSettled: o
|
|
7639
7639
|
}) {
|
|
7640
|
-
const i = sl(n, t), a =
|
|
7641
|
-
|
|
7640
|
+
const i = sl(n, t), a = S(void 0), c = S(void 0), s = S(o);
|
|
7641
|
+
H(() => {
|
|
7642
7642
|
s.current = o;
|
|
7643
|
-
}, [o]),
|
|
7643
|
+
}, [o]), H(() => {
|
|
7644
7644
|
a.current = void 0, c.current = void 0;
|
|
7645
7645
|
}, [n]);
|
|
7646
7646
|
const l = () => {
|
|
7647
7647
|
c.current !== n && (c.current = n, s.current?.());
|
|
7648
7648
|
};
|
|
7649
|
-
|
|
7649
|
+
H(() => {
|
|
7650
7650
|
if (!r || !i.isSettled) return;
|
|
7651
7651
|
if (!i.animatedText || a.current === i.revision) {
|
|
7652
7652
|
l();
|
|
@@ -7692,19 +7692,19 @@ const fl = /* @__PURE__ */ new Set([
|
|
|
7692
7692
|
className: t,
|
|
7693
7693
|
...n
|
|
7694
7694
|
}) {
|
|
7695
|
-
const { t: r } = le(), { anycableService: o } = Dt(), { settleMessageStream: i } = Tt(), a = hl(u), [c, s] =
|
|
7696
|
-
|
|
7697
|
-
const y =
|
|
7698
|
-
|
|
7695
|
+
const { t: r } = le(), { anycableService: o } = Dt(), { settleMessageStream: i } = Tt(), a = hl(u), [c, s] = V("idle"), [l, d] = V(), [p, h] = V(), [f, m] = V(a), b = S(void 0), C = S(void 0), { author: g } = u, k = l0(u.id), v = u.status === Oe.Failed, _ = u.status === Oe.Completed || v, E = d0(u), w = g.type === oe.Agent;
|
|
7696
|
+
w && k && (C.current = k);
|
|
7697
|
+
const y = w ? k ?? C.current : void 0, M = (_ ? a : "") || y?.text || "", L = !!(y && (y.done || _)), Q = !!(y && M && (!L || p !== y.sequence)), X = Q ? "" : Ks(u);
|
|
7698
|
+
H(() => {
|
|
7699
7699
|
y || m(a);
|
|
7700
7700
|
}, [y, a]);
|
|
7701
|
-
const
|
|
7702
|
-
if (!(!E || !o || c === "submitting") && !(l && l !==
|
|
7703
|
-
d(
|
|
7701
|
+
const Y = async (O) => {
|
|
7702
|
+
if (!(!E || !o || c === "submitting") && !(l && l !== O)) {
|
|
7703
|
+
d(O), s("submitting"), b.current ??= crypto.randomUUID();
|
|
7704
7704
|
try {
|
|
7705
7705
|
await o.submitScenarioChoice({
|
|
7706
7706
|
inputRequestId: E.inputRequestId,
|
|
7707
|
-
optionId:
|
|
7707
|
+
optionId: O,
|
|
7708
7708
|
clientEventId: b.current
|
|
7709
7709
|
}), s("submitted");
|
|
7710
7710
|
} catch {
|
|
@@ -7716,8 +7716,8 @@ const fl = /* @__PURE__ */ new Set([
|
|
|
7716
7716
|
"div",
|
|
7717
7717
|
{
|
|
7718
7718
|
...n,
|
|
7719
|
-
"data-author":
|
|
7720
|
-
className:
|
|
7719
|
+
"data-author": w ? "agent" : "customer",
|
|
7720
|
+
className: U(
|
|
7721
7721
|
"chat-message-row flex w-fit max-w-[86%] flex-col gap-2",
|
|
7722
7722
|
g.type === oe.Agent ? "self-start" : "self-end",
|
|
7723
7723
|
t
|
|
@@ -7726,7 +7726,7 @@ const fl = /* @__PURE__ */ new Set([
|
|
|
7726
7726
|
/* @__PURE__ */ x(
|
|
7727
7727
|
"div",
|
|
7728
7728
|
{
|
|
7729
|
-
className:
|
|
7729
|
+
className: U(
|
|
7730
7730
|
"message flex h-fit min-h-8 w-fit max-w-full items-center justify-center text-start",
|
|
7731
7731
|
{
|
|
7732
7732
|
"rounded-es-[5px]": g.type === oe.Agent,
|
|
@@ -7735,25 +7735,25 @@ const fl = /* @__PURE__ */ new Set([
|
|
|
7735
7735
|
"self-end": g.type === oe.Customer
|
|
7736
7736
|
}
|
|
7737
7737
|
),
|
|
7738
|
-
children:
|
|
7738
|
+
children: Q && y ? /* @__PURE__ */ x("div", { className: "chat-message-content w-full min-w-0 break-words whitespace-pre-wrap", children: /* @__PURE__ */ x(
|
|
7739
7739
|
dl,
|
|
7740
7740
|
{
|
|
7741
7741
|
stableText: y.stableText,
|
|
7742
7742
|
incomingText: y.incomingText,
|
|
7743
7743
|
sequence: y.sequence,
|
|
7744
7744
|
initialText: f,
|
|
7745
|
-
targetText:
|
|
7745
|
+
targetText: M,
|
|
7746
7746
|
finished: L,
|
|
7747
7747
|
onSettled: () => {
|
|
7748
7748
|
h(y.sequence), i(u.id);
|
|
7749
7749
|
}
|
|
7750
7750
|
}
|
|
7751
|
-
) }) : X ||
|
|
7751
|
+
) }) : X || _ ? /* @__PURE__ */ x(
|
|
7752
7752
|
"div",
|
|
7753
7753
|
{
|
|
7754
|
-
className:
|
|
7754
|
+
className: U(
|
|
7755
7755
|
"chat-message-content w-full min-w-0 break-words",
|
|
7756
|
-
!
|
|
7756
|
+
!w && "whitespace-pre-wrap"
|
|
7757
7757
|
),
|
|
7758
7758
|
dangerouslySetInnerHTML: { __html: X }
|
|
7759
7759
|
}
|
|
@@ -7767,25 +7767,25 @@ const fl = /* @__PURE__ */ new Set([
|
|
|
7767
7767
|
role: "group",
|
|
7768
7768
|
"aria-label": r("chat.chooseAnswer"),
|
|
7769
7769
|
children: [
|
|
7770
|
-
E.options.map((
|
|
7771
|
-
const
|
|
7770
|
+
E.options.map((O) => {
|
|
7771
|
+
const G = l === O.id;
|
|
7772
7772
|
return /* @__PURE__ */ x(
|
|
7773
7773
|
J,
|
|
7774
7774
|
{
|
|
7775
7775
|
type: "button",
|
|
7776
|
-
disabled: c === "submitting" || c === "submitted" || !!(l && !
|
|
7777
|
-
"aria-pressed":
|
|
7776
|
+
disabled: c === "submitting" || c === "submitted" || !!(l && !G),
|
|
7777
|
+
"aria-pressed": G,
|
|
7778
7778
|
onClick: () => {
|
|
7779
|
-
|
|
7779
|
+
Y(O.id);
|
|
7780
7780
|
},
|
|
7781
|
-
className:
|
|
7781
|
+
className: U(
|
|
7782
7782
|
"rounded-full border border-white/16 bg-black/28 px-3 py-1.5 text-xs font-medium text-white/90 backdrop-blur-xl transition-colors",
|
|
7783
7783
|
"data-disabled:cursor-not-allowed data-disabled:opacity-45 data-hover:border-[#68d8ff]/55 data-hover:bg-white/10",
|
|
7784
|
-
|
|
7784
|
+
G && "border-[#68d8ff]/65 bg-[#68d8ff]/12"
|
|
7785
7785
|
),
|
|
7786
|
-
children:
|
|
7786
|
+
children: O.label
|
|
7787
7787
|
},
|
|
7788
|
-
|
|
7788
|
+
O.id
|
|
7789
7789
|
);
|
|
7790
7790
|
}),
|
|
7791
7791
|
c === "submitted" && /* @__PURE__ */ x("span", { className: "self-center text-xs text-white/70", children: r("chat.answerSent") }),
|
|
@@ -7805,23 +7805,23 @@ function gl({
|
|
|
7805
7805
|
threadId: r,
|
|
7806
7806
|
threshold: o = 80
|
|
7807
7807
|
}) {
|
|
7808
|
-
const i =
|
|
7808
|
+
const i = S(!0), a = S(!1), c = S(null), s = S(null), l = S(n), d = S(t), p = S(r), h = P(() => {
|
|
7809
7809
|
c.current !== null && (window.cancelAnimationFrame(c.current), c.current = null);
|
|
7810
|
-
}, []), f =
|
|
7810
|
+
}, []), f = P(() => {
|
|
7811
7811
|
s.current !== null && (window.clearTimeout(s.current), s.current = null);
|
|
7812
|
-
}, []), m =
|
|
7812
|
+
}, []), m = P(() => {
|
|
7813
7813
|
if (!a.current) return;
|
|
7814
7814
|
a.current = !1, f();
|
|
7815
7815
|
const g = e.current;
|
|
7816
7816
|
!g || !i.current || (h(), g.scrollTo({ top: g.scrollHeight, behavior: "auto" }));
|
|
7817
|
-
}, [h, f, e]), b =
|
|
7817
|
+
}, [h, f, e]), b = P(() => {
|
|
7818
7818
|
if (!a.current) return;
|
|
7819
7819
|
a.current = !1, f();
|
|
7820
7820
|
const g = e.current;
|
|
7821
7821
|
if (!g) return;
|
|
7822
7822
|
const k = g.scrollHeight - g.scrollTop - g.clientHeight;
|
|
7823
7823
|
i.current = k <= o;
|
|
7824
|
-
}, [f, e, o]), C =
|
|
7824
|
+
}, [f, e, o]), C = P(
|
|
7825
7825
|
(g) => {
|
|
7826
7826
|
if (a.current) return;
|
|
7827
7827
|
const k = g.currentTarget, v = k.scrollHeight - k.scrollTop - k.clientHeight;
|
|
@@ -7829,21 +7829,21 @@ function gl({
|
|
|
7829
7829
|
},
|
|
7830
7830
|
[o]
|
|
7831
7831
|
);
|
|
7832
|
-
return
|
|
7832
|
+
return xu(() => {
|
|
7833
7833
|
const g = e.current;
|
|
7834
7834
|
if (!g) return;
|
|
7835
|
-
const k = l.current, v = p.current !== r,
|
|
7835
|
+
const k = l.current, v = p.current !== r, _ = n > k, E = _ && !v && d.current !== void 0 && d.current !== t;
|
|
7836
7836
|
if (v && (i.current = !0), E)
|
|
7837
7837
|
h(), f(), a.current = !1;
|
|
7838
7838
|
else if (i.current) {
|
|
7839
7839
|
h(), f();
|
|
7840
|
-
const
|
|
7841
|
-
a.current =
|
|
7840
|
+
const w = _ && k > 0 && !ml();
|
|
7841
|
+
a.current = w, w && (s.current = window.setTimeout(
|
|
7842
7842
|
m,
|
|
7843
7843
|
bl
|
|
7844
7844
|
)), g.scrollTo({
|
|
7845
7845
|
top: g.scrollHeight,
|
|
7846
|
-
behavior:
|
|
7846
|
+
behavior: w ? "smooth" : "auto"
|
|
7847
7847
|
});
|
|
7848
7848
|
}
|
|
7849
7849
|
l.current = n, d.current = t, p.current = r;
|
|
@@ -7855,7 +7855,7 @@ function gl({
|
|
|
7855
7855
|
t,
|
|
7856
7856
|
n,
|
|
7857
7857
|
r
|
|
7858
|
-
]),
|
|
7858
|
+
]), H(() => {
|
|
7859
7859
|
const g = e.current, k = u.current;
|
|
7860
7860
|
if (!g || !k) return;
|
|
7861
7861
|
let v = null;
|
|
@@ -7891,7 +7891,7 @@ function xl({
|
|
|
7891
7891
|
{
|
|
7892
7892
|
...t,
|
|
7893
7893
|
"data-author": "agent",
|
|
7894
|
-
className:
|
|
7894
|
+
className: U(
|
|
7895
7895
|
"chat-message-row chat-pending-assistant-message flex w-fit max-w-[86%] flex-col gap-2 self-start",
|
|
7896
7896
|
e
|
|
7897
7897
|
),
|
|
@@ -8062,7 +8062,7 @@ function t0({
|
|
|
8062
8062
|
resetKey: r,
|
|
8063
8063
|
rootMargin: o = "160px 0px"
|
|
8064
8064
|
}) {
|
|
8065
|
-
const i =
|
|
8065
|
+
const i = S(null), a = S(!1), c = S(0), s = S(!0), [l, d] = V(null), p = P(async () => {
|
|
8066
8066
|
if (!u || t || a.current) return;
|
|
8067
8067
|
const h = c.current;
|
|
8068
8068
|
a.current = !0, d(null);
|
|
@@ -8076,11 +8076,11 @@ function t0({
|
|
|
8076
8076
|
c.current === h && (a.current = !1);
|
|
8077
8077
|
}
|
|
8078
8078
|
}, [u, t, n]);
|
|
8079
|
-
return
|
|
8079
|
+
return H(() => {
|
|
8080
8080
|
c.current += 1, a.current = !1, d(null);
|
|
8081
|
-
}, [r]),
|
|
8081
|
+
}, [r]), H(() => (s.current = !0, () => {
|
|
8082
8082
|
s.current = !1;
|
|
8083
|
-
}), []),
|
|
8083
|
+
}), []), H(() => {
|
|
8084
8084
|
const h = e.current, f = i.current;
|
|
8085
8085
|
if (!u || !h || !f || typeof IntersectionObserver > "u")
|
|
8086
8086
|
return;
|
|
@@ -8093,7 +8093,7 @@ function t0({
|
|
|
8093
8093
|
return m.observe(f), () => m.disconnect();
|
|
8094
8094
|
}, [u, p, o, e]), { error: l, loadMore: p, sentinelRef: i };
|
|
8095
8095
|
}
|
|
8096
|
-
const
|
|
8096
|
+
const Lu = (e) => [
|
|
8097
8097
|
...e.querySelectorAll("[data-chat-message-id]")
|
|
8098
8098
|
];
|
|
8099
8099
|
function wl({
|
|
@@ -8103,12 +8103,12 @@ function wl({
|
|
|
8103
8103
|
isLoading: n,
|
|
8104
8104
|
itemCount: r
|
|
8105
8105
|
}) {
|
|
8106
|
-
const o =
|
|
8106
|
+
const o = S(null), i = S(null), [a, c] = V(0), s = P(() => {
|
|
8107
8107
|
o.current = null, i.current?.(), i.current = null;
|
|
8108
|
-
}, []), l =
|
|
8108
|
+
}, []), l = P(() => {
|
|
8109
8109
|
const d = e.current;
|
|
8110
8110
|
if (!d || !u) return;
|
|
8111
|
-
const p = d.getBoundingClientRect(), h =
|
|
8111
|
+
const p = d.getBoundingClientRect(), h = Lu(d).find((f) => {
|
|
8112
8112
|
const m = f.getBoundingClientRect();
|
|
8113
8113
|
return m.bottom > p.top && m.top < p.bottom;
|
|
8114
8114
|
});
|
|
@@ -8120,7 +8120,7 @@ function wl({
|
|
|
8120
8120
|
top: h.getBoundingClientRect().top
|
|
8121
8121
|
}, c((f) => f + 1));
|
|
8122
8122
|
}, [e, u, t, r]);
|
|
8123
|
-
return
|
|
8123
|
+
return xu(() => {
|
|
8124
8124
|
const d = o.current;
|
|
8125
8125
|
if (!d || n) return;
|
|
8126
8126
|
if (d.contextId !== u) {
|
|
@@ -8131,11 +8131,11 @@ function wl({
|
|
|
8131
8131
|
s();
|
|
8132
8132
|
return;
|
|
8133
8133
|
}
|
|
8134
|
-
const p = e.current, h = p ?
|
|
8134
|
+
const p = e.current, h = p ? Lu(p).find(
|
|
8135
8135
|
(f) => f.dataset.chatMessageId === d.itemId
|
|
8136
8136
|
) : void 0;
|
|
8137
8137
|
p && h ? (p.scrollTop += h.getBoundingClientRect().top - d.top, d.firstItemId = t, d.itemCount = r) : s();
|
|
8138
|
-
}, [s, e, u, t, n, r]),
|
|
8138
|
+
}, [s, e, u, t, n, r]), H(() => {
|
|
8139
8139
|
const d = o.current, p = e.current;
|
|
8140
8140
|
if (!d || !p || n || d.contextId !== u)
|
|
8141
8141
|
return;
|
|
@@ -8144,17 +8144,17 @@ function wl({
|
|
|
8144
8144
|
h = null;
|
|
8145
8145
|
const E = o.current;
|
|
8146
8146
|
if (!E) return;
|
|
8147
|
-
const
|
|
8147
|
+
const w = Lu(p).find(
|
|
8148
8148
|
(y) => y.dataset.chatMessageId === E.itemId
|
|
8149
8149
|
);
|
|
8150
|
-
if (!
|
|
8150
|
+
if (!w) {
|
|
8151
8151
|
s();
|
|
8152
8152
|
return;
|
|
8153
8153
|
}
|
|
8154
|
-
f = p.scrollTop +
|
|
8154
|
+
f = p.scrollTop + w.getBoundingClientRect().top - E.top, p.scrollTop = f;
|
|
8155
8155
|
}, b = typeof ResizeObserver > "u" ? null : new ResizeObserver(() => {
|
|
8156
8156
|
h === null && (h = window.requestAnimationFrame(m));
|
|
8157
|
-
}), C =
|
|
8157
|
+
}), C = Lu(p), g = C.findIndex(
|
|
8158
8158
|
(E) => E.dataset.chatMessageId === d.itemId
|
|
8159
8159
|
);
|
|
8160
8160
|
for (const E of C.slice(0, g + 1))
|
|
@@ -8169,11 +8169,11 @@ function wl({
|
|
|
8169
8169
|
}), p.addEventListener("pointerdown", k, {
|
|
8170
8170
|
passive: !0
|
|
8171
8171
|
});
|
|
8172
|
-
const
|
|
8172
|
+
const _ = () => {
|
|
8173
8173
|
b?.disconnect(), h !== null && window.cancelAnimationFrame(h), p.removeEventListener("scroll", v), p.removeEventListener("wheel", k), p.removeEventListener("touchstart", k), p.removeEventListener("pointerdown", k);
|
|
8174
8174
|
};
|
|
8175
|
-
return i.current =
|
|
8176
|
-
i.current ===
|
|
8175
|
+
return i.current = _, () => {
|
|
8176
|
+
i.current === _ && (i.current = null), _();
|
|
8177
8177
|
};
|
|
8178
8178
|
}, [
|
|
8179
8179
|
a,
|
|
@@ -8184,121 +8184,145 @@ function wl({
|
|
|
8184
8184
|
r
|
|
8185
8185
|
]), { captureAnchor: l, clearAnchor: s };
|
|
8186
8186
|
}
|
|
8187
|
-
function El() {
|
|
8188
|
-
const
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8187
|
+
function El(e, u, t) {
|
|
8188
|
+
const n = Math.max(80, Math.ceil(u.scrollWidth) + 46), r = n - 32;
|
|
8189
|
+
e.style.setProperty(
|
|
8190
|
+
"--chat-talk-expanded-width",
|
|
8191
|
+
`${n}px`
|
|
8192
|
+
), e.style.setProperty(
|
|
8193
|
+
"--chat-talk-input-offset-x",
|
|
8194
|
+
`${t === "rtl" ? -r : r}px`
|
|
8195
|
+
);
|
|
8196
|
+
}
|
|
8197
|
+
function Fl() {
|
|
8198
|
+
const { direction: e, t: u } = le(), t = u("chat.talk"), { open: n } = ku(), r = ju(), [o, i] = V(""), [a, c] = V(!1), s = S(null), l = S(null), d = S(null), p = S(null), h = S(null), f = S(null), {
|
|
8199
|
+
cancelThreadMessagesRequest: m,
|
|
8200
|
+
fetchOlderThreadMessages: b,
|
|
8201
|
+
sendMessage: C,
|
|
8202
|
+
setLatestReadMessageDate: g
|
|
8203
|
+
} = Tt(), k = f0(), v = h0(), _ = p0(), E = b0(), w = m0(), y = g0(), I = x0(), M = k0(), L = C0(), { networkStatus: Q } = Dt();
|
|
8204
|
+
xu(() => {
|
|
8205
|
+
const T = l.current, B = d.current;
|
|
8206
|
+
if (!T || !B) return;
|
|
8207
|
+
let re = !0;
|
|
8208
|
+
const R = () => {
|
|
8209
|
+
re && El(T, B, e);
|
|
8210
|
+
};
|
|
8211
|
+
R();
|
|
8212
|
+
const he = typeof ResizeObserver == "function" ? new ResizeObserver(R) : null;
|
|
8213
|
+
return he?.observe(B), document.fonts?.ready.then(R), () => {
|
|
8214
|
+
re = !1, he?.disconnect();
|
|
8215
|
+
};
|
|
8216
|
+
}, [e, t]);
|
|
8217
|
+
const X = Se(() => {
|
|
8218
|
+
const T = M.map((R) => ({
|
|
8195
8219
|
type: "canonical",
|
|
8196
|
-
message:
|
|
8220
|
+
message: R
|
|
8197
8221
|
}));
|
|
8198
|
-
if (!
|
|
8199
|
-
const
|
|
8200
|
-
({ id:
|
|
8201
|
-
) : -1,
|
|
8202
|
-
return
|
|
8222
|
+
if (!I) return T;
|
|
8223
|
+
const B = I.afterMessageId ? M.findIndex(
|
|
8224
|
+
({ id: R }) => R === I.afterMessageId
|
|
8225
|
+
) : -1, re = I.afterMessageId ? B >= 0 ? B + 1 : T.length : 0;
|
|
8226
|
+
return T.splice(re, 0, {
|
|
8203
8227
|
type: "optimistic",
|
|
8204
|
-
message:
|
|
8205
|
-
}),
|
|
8206
|
-
}, [
|
|
8207
|
-
containerRef:
|
|
8208
|
-
contentRef:
|
|
8209
|
-
firstMessageId:
|
|
8210
|
-
messageCount:
|
|
8211
|
-
threadId:
|
|
8212
|
-
}), { captureAnchor:
|
|
8213
|
-
containerRef:
|
|
8214
|
-
contextId:
|
|
8215
|
-
firstItemId:
|
|
8216
|
-
isLoading:
|
|
8217
|
-
itemCount:
|
|
8218
|
-
}),
|
|
8219
|
-
if (
|
|
8220
|
-
|
|
8228
|
+
message: I
|
|
8229
|
+
}), T;
|
|
8230
|
+
}, [I, M]), Y = _ && X.length === 0, O = gl({
|
|
8231
|
+
containerRef: h,
|
|
8232
|
+
contentRef: f,
|
|
8233
|
+
firstMessageId: M[0]?.id,
|
|
8234
|
+
messageCount: M.length + +!!I + Number(v),
|
|
8235
|
+
threadId: L
|
|
8236
|
+
}), { captureAnchor: G, clearAnchor: ee } = wl({
|
|
8237
|
+
containerRef: h,
|
|
8238
|
+
contextId: L,
|
|
8239
|
+
firstItemId: M[0]?.id,
|
|
8240
|
+
isLoading: w,
|
|
8241
|
+
itemCount: M.length
|
|
8242
|
+
}), D = P(async () => {
|
|
8243
|
+
if (L) {
|
|
8244
|
+
G();
|
|
8221
8245
|
try {
|
|
8222
|
-
await
|
|
8223
|
-
} catch (
|
|
8224
|
-
throw
|
|
8246
|
+
await b(L);
|
|
8247
|
+
} catch (T) {
|
|
8248
|
+
throw ee(), T;
|
|
8225
8249
|
}
|
|
8226
8250
|
}
|
|
8227
|
-
}, [
|
|
8228
|
-
error:
|
|
8229
|
-
loadMore:
|
|
8230
|
-
sentinelRef:
|
|
8251
|
+
}, [G, ee, L, b]), {
|
|
8252
|
+
error: fe,
|
|
8253
|
+
loadMore: Le,
|
|
8254
|
+
sentinelRef: Ne
|
|
8231
8255
|
} = t0({
|
|
8232
|
-
rootRef:
|
|
8233
|
-
enabled:
|
|
8234
|
-
isLoading:
|
|
8235
|
-
onLoad:
|
|
8236
|
-
resetKey:
|
|
8256
|
+
rootRef: h,
|
|
8257
|
+
enabled: E,
|
|
8258
|
+
isLoading: w,
|
|
8259
|
+
onLoad: D,
|
|
8260
|
+
resetKey: L
|
|
8237
8261
|
});
|
|
8238
|
-
|
|
8262
|
+
H(
|
|
8239
8263
|
() => () => {
|
|
8240
|
-
|
|
8264
|
+
p.current !== null && window.clearTimeout(p.current);
|
|
8241
8265
|
},
|
|
8242
8266
|
[]
|
|
8243
|
-
),
|
|
8267
|
+
), H(
|
|
8244
8268
|
() => () => {
|
|
8245
|
-
|
|
8269
|
+
L && m(L);
|
|
8246
8270
|
},
|
|
8247
|
-
[
|
|
8248
|
-
),
|
|
8249
|
-
if (
|
|
8250
|
-
const
|
|
8251
|
-
(
|
|
8271
|
+
[m, L]
|
|
8272
|
+
), H(() => {
|
|
8273
|
+
if (n && M.length > 0) {
|
|
8274
|
+
const T = M.findLast(
|
|
8275
|
+
(B) => B.author.type === oe.Customer || B.status === Oe.Completed || B.status === Oe.Failed
|
|
8252
8276
|
);
|
|
8253
|
-
|
|
8277
|
+
T && g(T.updatedAt);
|
|
8254
8278
|
}
|
|
8255
|
-
}, [
|
|
8256
|
-
const
|
|
8257
|
-
const
|
|
8258
|
-
!
|
|
8279
|
+
}, [M, n, g]);
|
|
8280
|
+
const we = Se(() => k ? v0(k, u) : M.some((B) => B.author.type === oe.Agent && B.status === Oe.Failed) ? u(au.agentResponseFailed) : Q === Ru.Unavailable ? u(au.connectionFailed) : Q === Ru.Offline ? u(au.offline) : null, [Q, k, u, M]), z = () => {
|
|
8281
|
+
const T = o.trim();
|
|
8282
|
+
!T || y || (p.current !== null && (window.clearTimeout(p.current), p.current = null), i(""), s.current && (s.current.style.height = "auto"), C(T));
|
|
8259
8283
|
};
|
|
8260
8284
|
return /* @__PURE__ */ $("div", { className: "z-1 flex min-h-0 flex-1 flex-col overflow-hidden px-3 pb-2", children: [
|
|
8261
8285
|
/* @__PURE__ */ x(
|
|
8262
8286
|
"div",
|
|
8263
8287
|
{
|
|
8264
|
-
ref:
|
|
8265
|
-
onScroll:
|
|
8288
|
+
ref: h,
|
|
8289
|
+
onScroll: O,
|
|
8266
8290
|
className: "chat-scrollbar flex h-0 min-h-0 flex-1 flex-col overflow-y-auto px-1 [overflow-anchor:none]",
|
|
8267
8291
|
children: /* @__PURE__ */ $(
|
|
8268
8292
|
"div",
|
|
8269
8293
|
{
|
|
8270
|
-
ref:
|
|
8271
|
-
"aria-busy":
|
|
8294
|
+
ref: f,
|
|
8295
|
+
"aria-busy": Y || w,
|
|
8272
8296
|
className: "chat-timeline relative z-1 flex min-h-full shrink-0 flex-col justify-end gap-2 pt-3 pb-3",
|
|
8273
8297
|
children: [
|
|
8274
|
-
(
|
|
8298
|
+
(E || w) && /* @__PURE__ */ $("div", { className: "relative flex h-7 shrink-0 items-center justify-center", children: [
|
|
8275
8299
|
/* @__PURE__ */ x(
|
|
8276
8300
|
"div",
|
|
8277
8301
|
{
|
|
8278
|
-
ref:
|
|
8302
|
+
ref: Ne,
|
|
8279
8303
|
"aria-hidden": "true",
|
|
8280
8304
|
className: "absolute top-0 h-px w-full"
|
|
8281
8305
|
}
|
|
8282
8306
|
),
|
|
8283
|
-
|
|
8307
|
+
w ? /* @__PURE__ */ x("div", { className: "pointer-events-none absolute top-0 right-0 left-0 z-10", children: /* @__PURE__ */ x(_l, {}) }) : /* @__PURE__ */ x(
|
|
8284
8308
|
J,
|
|
8285
8309
|
{
|
|
8286
8310
|
type: "button",
|
|
8287
8311
|
"aria-label": u("chat.loadPreviousMessages"),
|
|
8288
8312
|
onClick: () => {
|
|
8289
|
-
|
|
8313
|
+
Le();
|
|
8290
8314
|
},
|
|
8291
8315
|
className: "rounded-full border border-white/10 bg-black/20 px-3 py-1 text-[11px] text-white/65 transition-colors hover:border-[#68d8ff]/30 hover:text-white/90",
|
|
8292
|
-
children: u(
|
|
8316
|
+
children: u(fe ? "chat.retryPreviousMessages" : "chat.loadPreviousMessages")
|
|
8293
8317
|
}
|
|
8294
8318
|
)
|
|
8295
8319
|
] }),
|
|
8296
|
-
|
|
8320
|
+
fe && /* @__PURE__ */ x("p", { role: "alert", className: "text-center text-xs text-red-200", children: u("chat.previousLoadFailed") }),
|
|
8297
8321
|
/* @__PURE__ */ $("div", { className: "relative w-full", children: [
|
|
8298
8322
|
/* @__PURE__ */ x(
|
|
8299
8323
|
rn,
|
|
8300
8324
|
{
|
|
8301
|
-
show:
|
|
8325
|
+
show: Y,
|
|
8302
8326
|
enter: "transition-[opacity,transform] duration-[220ms] ease-out motion-reduce:transition-none",
|
|
8303
8327
|
enterFrom: "translate-y-1.5 opacity-0 motion-reduce:translate-y-0",
|
|
8304
8328
|
enterTo: "translate-y-0 opacity-100",
|
|
@@ -8311,148 +8335,164 @@ function El() {
|
|
|
8311
8335
|
/* @__PURE__ */ x(
|
|
8312
8336
|
rn,
|
|
8313
8337
|
{
|
|
8314
|
-
show: !
|
|
8338
|
+
show: !Y,
|
|
8315
8339
|
enter: "transition-[opacity,transform] delay-75 duration-[220ms] ease-out motion-reduce:transition-none motion-reduce:delay-0",
|
|
8316
8340
|
enterFrom: "translate-y-2 opacity-0 motion-reduce:translate-y-0",
|
|
8317
8341
|
enterTo: "translate-y-0 opacity-100",
|
|
8318
8342
|
leave: "transition-opacity duration-100 ease-out motion-reduce:transition-none",
|
|
8319
8343
|
leaveFrom: "opacity-100",
|
|
8320
8344
|
leaveTo: "opacity-0",
|
|
8321
|
-
children: /* @__PURE__ */ x("div", { className: "flex w-full flex-col gap-2", children:
|
|
8322
|
-
(
|
|
8345
|
+
children: /* @__PURE__ */ x("div", { className: "flex w-full flex-col gap-2", children: X.map(
|
|
8346
|
+
(T) => T.type === "canonical" ? /* @__PURE__ */ x(
|
|
8323
8347
|
pl,
|
|
8324
8348
|
{
|
|
8325
|
-
"data-chat-message-id":
|
|
8326
|
-
message:
|
|
8349
|
+
"data-chat-message-id": T.message.id,
|
|
8350
|
+
message: T.message
|
|
8327
8351
|
},
|
|
8328
|
-
|
|
8352
|
+
T.message.id
|
|
8329
8353
|
) : /* @__PURE__ */ x(
|
|
8330
8354
|
kl,
|
|
8331
8355
|
{
|
|
8332
|
-
message:
|
|
8356
|
+
message: T.message
|
|
8333
8357
|
},
|
|
8334
|
-
|
|
8358
|
+
T.message.id
|
|
8335
8359
|
)
|
|
8336
8360
|
) })
|
|
8337
8361
|
}
|
|
8338
8362
|
)
|
|
8339
8363
|
] }),
|
|
8340
|
-
|
|
8364
|
+
v && /* @__PURE__ */ x(xl, {}),
|
|
8341
8365
|
/* @__PURE__ */ x(vr, { className: "self-start" }),
|
|
8342
|
-
|
|
8366
|
+
we && /* @__PURE__ */ x(kr, { message: we, className: "mt-2" })
|
|
8343
8367
|
]
|
|
8344
8368
|
}
|
|
8345
8369
|
)
|
|
8346
8370
|
}
|
|
8347
8371
|
),
|
|
8348
|
-
/* @__PURE__ */ $(
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
children: /* @__PURE__ */ $(
|
|
8356
|
-
J,
|
|
8357
|
-
{
|
|
8358
|
-
"aria-label": u("chat.switchToVoice"),
|
|
8359
|
-
"data-compact": i,
|
|
8360
|
-
className: `chat-composer-button chat-talk-button absolute start-0 top-0 h-8 overflow-visible text-[12px] leading-4 font-medium text-white ${i ? "w-8" : "w-[80px]"}`,
|
|
8361
|
-
onClick: () => n(se.voice),
|
|
8362
|
-
children: [
|
|
8363
|
-
/* @__PURE__ */ x(
|
|
8364
|
-
"span",
|
|
8365
|
-
{
|
|
8366
|
-
"data-talk-surface": "expanded",
|
|
8367
|
-
"aria-hidden": "true",
|
|
8368
|
-
className: "chat-talk-button__surface chat-talk-button__surface_expanded"
|
|
8369
|
-
}
|
|
8370
|
-
),
|
|
8371
|
-
/* @__PURE__ */ x(
|
|
8372
|
-
"span",
|
|
8373
|
-
{
|
|
8374
|
-
"data-talk-surface": "compact",
|
|
8375
|
-
"aria-hidden": "true",
|
|
8376
|
-
className: "chat-talk-button__surface chat-talk-button__surface_compact"
|
|
8377
|
-
}
|
|
8378
|
-
),
|
|
8379
|
-
/* @__PURE__ */ x(Yi, { className: "chat-talk-button__icon h-3.5 w-3.5 shrink-0 text-[#68d8ff]" }),
|
|
8380
|
-
/* @__PURE__ */ x("span", { className: "chat-talk-button__label max-w-8 overflow-hidden whitespace-nowrap", children: u("chat.talk") })
|
|
8381
|
-
]
|
|
8382
|
-
}
|
|
8383
|
-
)
|
|
8384
|
-
}
|
|
8385
|
-
),
|
|
8386
|
-
/* @__PURE__ */ x(
|
|
8387
|
-
"div",
|
|
8388
|
-
{
|
|
8389
|
-
"data-talk-offset": !i,
|
|
8390
|
-
className: "chat-composer-input-motion flex min-w-0 flex-1 items-center",
|
|
8391
|
-
children: /* @__PURE__ */ x(
|
|
8392
|
-
Gi,
|
|
8393
|
-
{
|
|
8394
|
-
ref: c,
|
|
8395
|
-
value: r,
|
|
8396
|
-
rows: 1,
|
|
8397
|
-
"aria-label": u("chat.messageLabel"),
|
|
8398
|
-
placeholder: u("chat.messagePlaceholder"),
|
|
8399
|
-
onFocus: () => a(!0),
|
|
8400
|
-
onBlur: () => a(!1),
|
|
8401
|
-
onChange: (M) => o(M.target.value),
|
|
8402
|
-
onInput: (M) => {
|
|
8403
|
-
const U = M.currentTarget;
|
|
8404
|
-
s.current !== null && window.clearTimeout(s.current), s.current = null;
|
|
8405
|
-
const N = U.clientHeight + "px";
|
|
8406
|
-
U.style.height = "auto";
|
|
8407
|
-
const H = Math.min(U.scrollHeight, 160) + "px";
|
|
8408
|
-
U.style.height = N, N !== H && (s.current = window.setTimeout(() => {
|
|
8409
|
-
U.style.height = H, s.current = null;
|
|
8410
|
-
}));
|
|
8411
|
-
},
|
|
8412
|
-
onKeyDown: (M) => {
|
|
8413
|
-
M.key === "Enter" && !M.nativeEvent.isComposing && (M.preventDefault(), we());
|
|
8414
|
-
},
|
|
8415
|
-
className: "no-scrollbar block h-8 min-h-8 w-full resize-none overflow-y-auto border-none bg-transparent px-2 py-1.5 text-[13px] leading-[18px] font-normal text-white transition-[height] duration-200 outline-none placeholder:text-white/38"
|
|
8416
|
-
}
|
|
8417
|
-
)
|
|
8418
|
-
}
|
|
8419
|
-
)
|
|
8420
|
-
] }),
|
|
8421
|
-
/* @__PURE__ */ $(
|
|
8422
|
-
J,
|
|
8423
|
-
{
|
|
8424
|
-
disabled: !r.trim() || w,
|
|
8425
|
-
"aria-label": u("chat.send"),
|
|
8426
|
-
className: `${r && "group"} chat-send-button`,
|
|
8427
|
-
onClick: we,
|
|
8428
|
-
children: [
|
|
8372
|
+
/* @__PURE__ */ $(
|
|
8373
|
+
"div",
|
|
8374
|
+
{
|
|
8375
|
+
ref: l,
|
|
8376
|
+
className: "chat-composer flex w-full shrink-0 flex-row items-center gap-1 p-1",
|
|
8377
|
+
children: [
|
|
8378
|
+
/* @__PURE__ */ $("div", { className: "chat-composer-main flex min-w-0 flex-1 flex-row items-center gap-1", children: [
|
|
8429
8379
|
/* @__PURE__ */ x(
|
|
8430
|
-
|
|
8380
|
+
"div",
|
|
8431
8381
|
{
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8382
|
+
"data-talk-slot": !0,
|
|
8383
|
+
className: "relative z-1 h-8 w-8 shrink-0 overflow-visible",
|
|
8384
|
+
children: /* @__PURE__ */ $(
|
|
8385
|
+
J,
|
|
8386
|
+
{
|
|
8387
|
+
"aria-label": u("chat.switchToVoice"),
|
|
8388
|
+
"data-compact": a,
|
|
8389
|
+
className: "chat-composer-button chat-talk-button absolute start-0 top-0 h-8 overflow-visible text-[12px] leading-4 font-medium text-white",
|
|
8390
|
+
onClick: () => r(se.voice),
|
|
8391
|
+
children: [
|
|
8392
|
+
/* @__PURE__ */ x(
|
|
8393
|
+
"span",
|
|
8394
|
+
{
|
|
8395
|
+
"data-talk-surface": "expanded",
|
|
8396
|
+
"aria-hidden": "true",
|
|
8397
|
+
className: "chat-talk-button__surface chat-talk-button__surface_expanded"
|
|
8398
|
+
}
|
|
8399
|
+
),
|
|
8400
|
+
/* @__PURE__ */ x(
|
|
8401
|
+
"span",
|
|
8402
|
+
{
|
|
8403
|
+
"data-talk-surface": "compact",
|
|
8404
|
+
"aria-hidden": "true",
|
|
8405
|
+
className: "chat-talk-button__surface chat-talk-button__surface_compact"
|
|
8406
|
+
}
|
|
8407
|
+
),
|
|
8408
|
+
/* @__PURE__ */ $("span", { className: "chat-talk-button__content", children: [
|
|
8409
|
+
/* @__PURE__ */ x(Yi, { className: "chat-talk-button__icon h-3.5 w-3.5 shrink-0 text-[#68d8ff]" }),
|
|
8410
|
+
/* @__PURE__ */ x(
|
|
8411
|
+
"span",
|
|
8412
|
+
{
|
|
8413
|
+
ref: d,
|
|
8414
|
+
className: "chat-talk-button__label whitespace-nowrap",
|
|
8415
|
+
children: t
|
|
8416
|
+
}
|
|
8417
|
+
)
|
|
8418
|
+
] })
|
|
8419
|
+
]
|
|
8420
|
+
}
|
|
8435
8421
|
)
|
|
8436
8422
|
}
|
|
8437
8423
|
),
|
|
8438
8424
|
/* @__PURE__ */ x(
|
|
8439
|
-
|
|
8425
|
+
"div",
|
|
8440
8426
|
{
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8427
|
+
"data-talk-offset": !a,
|
|
8428
|
+
className: "chat-composer-input-motion flex min-w-0 flex-1 items-center",
|
|
8429
|
+
children: /* @__PURE__ */ x(
|
|
8430
|
+
Gi,
|
|
8431
|
+
{
|
|
8432
|
+
ref: s,
|
|
8433
|
+
value: o,
|
|
8434
|
+
rows: 1,
|
|
8435
|
+
"aria-label": u("chat.messageLabel"),
|
|
8436
|
+
placeholder: u("chat.messagePlaceholder"),
|
|
8437
|
+
onFocus: () => c(!0),
|
|
8438
|
+
onBlur: () => c(!1),
|
|
8439
|
+
onChange: (T) => i(T.target.value),
|
|
8440
|
+
onInput: (T) => {
|
|
8441
|
+
const B = T.currentTarget;
|
|
8442
|
+
p.current !== null && window.clearTimeout(p.current), p.current = null;
|
|
8443
|
+
const re = B.clientHeight + "px";
|
|
8444
|
+
B.style.height = "auto";
|
|
8445
|
+
const R = Math.min(B.scrollHeight, 160) + "px";
|
|
8446
|
+
B.style.height = re, re !== R && (p.current = window.setTimeout(() => {
|
|
8447
|
+
B.style.height = R, p.current = null;
|
|
8448
|
+
}));
|
|
8449
|
+
},
|
|
8450
|
+
onKeyDown: (T) => {
|
|
8451
|
+
T.key === "Enter" && !T.nativeEvent.isComposing && (T.preventDefault(), z());
|
|
8452
|
+
},
|
|
8453
|
+
className: "no-scrollbar block h-8 min-h-8 w-full resize-none overflow-y-auto border-none bg-transparent px-2 py-1.5 text-[13px] leading-[18px] font-normal text-white transition-[height] duration-200 outline-none placeholder:text-white/38"
|
|
8454
|
+
}
|
|
8444
8455
|
)
|
|
8445
8456
|
}
|
|
8446
8457
|
)
|
|
8447
|
-
]
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8458
|
+
] }),
|
|
8459
|
+
/* @__PURE__ */ $(
|
|
8460
|
+
J,
|
|
8461
|
+
{
|
|
8462
|
+
disabled: !o.trim() || y,
|
|
8463
|
+
"aria-label": u("chat.send"),
|
|
8464
|
+
className: `${o && "group"} chat-send-button`,
|
|
8465
|
+
onClick: z,
|
|
8466
|
+
children: [
|
|
8467
|
+
/* @__PURE__ */ x(
|
|
8468
|
+
Ji,
|
|
8469
|
+
{
|
|
8470
|
+
className: U(
|
|
8471
|
+
"h-3.5 w-3.5 group-hover:hidden",
|
|
8472
|
+
e === "rtl" && "-scale-x-100"
|
|
8473
|
+
)
|
|
8474
|
+
}
|
|
8475
|
+
),
|
|
8476
|
+
/* @__PURE__ */ x(
|
|
8477
|
+
Qi,
|
|
8478
|
+
{
|
|
8479
|
+
className: U(
|
|
8480
|
+
"hidden h-3.5 w-3.5 group-hover:block",
|
|
8481
|
+
e === "rtl" && "-scale-x-100"
|
|
8482
|
+
)
|
|
8483
|
+
}
|
|
8484
|
+
)
|
|
8485
|
+
]
|
|
8486
|
+
}
|
|
8487
|
+
)
|
|
8488
|
+
]
|
|
8489
|
+
}
|
|
8490
|
+
)
|
|
8451
8491
|
] });
|
|
8452
8492
|
}
|
|
8453
|
-
const
|
|
8454
|
-
function
|
|
8455
|
-
return /* @__PURE__ */ $("div", { className:
|
|
8493
|
+
const Al = (e) => /* @__PURE__ */ q.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M15.4238 13.8329C15.6352 14.0442 15.7539 14.3309 15.7539 14.6298C15.7539 14.9286 15.6352 15.2153 15.4238 15.4266C15.2125 15.638 14.9258 15.7567 14.627 15.7567C14.3281 15.7567 14.0414 15.638 13.8301 15.4266L7.87789 9.47258L1.92383 15.4248C1.71248 15.6361 1.42584 15.7548 1.12695 15.7548C0.828065 15.7548 0.541421 15.6361 0.330077 15.4248C0.118732 15.2134 4.45375e-09 14.9268 0 14.6279C-4.45375e-09 14.329 0.118732 14.0424 0.330077 13.831L6.28414 7.87883L0.331951 1.92476C0.120607 1.71342 0.00187504 1.42677 0.00187504 1.12789C0.00187505 0.829003 0.120607 0.542358 0.331951 0.331014C0.543296 0.11967 0.82994 0.000937346 1.12883 0.000937343C1.42771 0.00093734 1.71436 0.11967 1.9257 0.331014L7.87789 6.28508L13.832 0.330076C14.0433 0.118732 14.3299 -4.97944e-09 14.6288 0C14.9277 4.97944e-09 15.2144 0.118732 15.4257 0.330076C15.637 0.541421 15.7558 0.828065 15.7558 1.12695C15.7558 1.42584 15.637 1.71248 15.4257 1.92383L9.47164 7.87883L15.4238 13.8329Z" })), Dl = (e) => /* @__PURE__ */ q.createElement("svg", { width: 16, height: 3, viewBox: "0 0 16 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M9.375 1.5C9.375 1.79667 9.28703 2.08668 9.1222 2.33336C8.95738 2.58003 8.72312 2.77229 8.44903 2.88582C8.17494 2.99935 7.87334 3.02906 7.58237 2.97118C7.29139 2.9133 7.02412 2.77044 6.81434 2.56066C6.60456 2.35088 6.4617 2.08361 6.40382 1.79264C6.34594 1.50166 6.37565 1.20006 6.48918 0.925975C6.60271 0.651886 6.79497 0.417618 7.04165 0.252796C7.28832 0.0879736 7.57833 0 7.875 0C8.27283 0 8.65436 0.158036 8.93566 0.43934C9.21696 0.720645 9.375 1.10218 9.375 1.5ZM1.5 0C1.20333 0 0.913319 0.0879736 0.666646 0.252796C0.419972 0.417618 0.227713 0.651886 0.114181 0.925975C0.000649922 1.20006 -0.0290551 1.50166 0.0288228 1.79264C0.0867006 2.08361 0.229562 2.35088 0.439341 2.56066C0.649119 2.77044 0.916394 2.9133 1.20737 2.97118C1.49834 3.02906 1.79994 2.99935 2.07403 2.88582C2.34811 2.77229 2.58238 2.58003 2.74721 2.33336C2.91203 2.08668 3 1.79667 3 1.5C3 1.10218 2.84197 0.720645 2.56066 0.43934C2.27936 0.158036 1.89783 0 1.5 0ZM14.25 0C13.9533 0 13.6633 0.0879736 13.4166 0.252796C13.17 0.417618 12.9777 0.651886 12.8642 0.925975C12.7507 1.20006 12.7209 1.50166 12.7788 1.79264C12.8367 2.08361 12.9796 2.35088 13.1893 2.56066C13.3991 2.77044 13.6664 2.9133 13.9574 2.97118C14.2483 3.02906 14.5499 2.99935 14.824 2.88582C15.0981 2.77229 15.3324 2.58003 15.4972 2.33336C15.662 2.08668 15.75 1.79667 15.75 1.5C15.75 1.10218 15.592 0.720645 15.3107 0.43934C15.0294 0.158036 14.6478 0 14.25 0Z", fill: "white" }));
|
|
8494
|
+
function Tl({ className: e }) {
|
|
8495
|
+
return /* @__PURE__ */ $("div", { className: U("tob-blur-parent transition-opacity", e), children: [
|
|
8456
8496
|
/* @__PURE__ */ x(
|
|
8457
8497
|
"div",
|
|
8458
8498
|
{
|
|
@@ -8469,18 +8509,18 @@ function Dl({ className: e }) {
|
|
|
8469
8509
|
/* @__PURE__ */ x("div", { className: "absolute inset-0 bg-[linear-gradient(to_bottom,rgba(0,0,0,0.7)_0%,rgba(0,0,0,0.7)_20%,rgba(0,0,0,0.2)_60%,rgba(0,0,0,0)_100%)]" })
|
|
8470
8510
|
] });
|
|
8471
8511
|
}
|
|
8472
|
-
const
|
|
8512
|
+
const Sl = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), $l = (e) => e.replace(
|
|
8473
8513
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
8474
8514
|
(u, t, n) => n ? n.toUpperCase() : t.toLowerCase()
|
|
8475
8515
|
), Dn = (e) => {
|
|
8476
|
-
const u =
|
|
8516
|
+
const u = $l(e);
|
|
8477
8517
|
return u.charAt(0).toUpperCase() + u.slice(1);
|
|
8478
|
-
}, n0 = (...e) => e.filter((u, t, n) => !!u && u.trim() !== "" && n.indexOf(u) === t).join(" ").trim(),
|
|
8518
|
+
}, n0 = (...e) => e.filter((u, t, n) => !!u && u.trim() !== "" && n.indexOf(u) === t).join(" ").trim(), Ml = (e) => {
|
|
8479
8519
|
for (const u in e)
|
|
8480
8520
|
if (u.startsWith("aria-") || u === "role" || u === "title")
|
|
8481
8521
|
return !0;
|
|
8482
8522
|
};
|
|
8483
|
-
var
|
|
8523
|
+
var Ll = {
|
|
8484
8524
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8485
8525
|
width: 24,
|
|
8486
8526
|
height: 24,
|
|
@@ -8491,7 +8531,7 @@ var Ml = {
|
|
|
8491
8531
|
strokeLinecap: "round",
|
|
8492
8532
|
strokeLinejoin: "round"
|
|
8493
8533
|
};
|
|
8494
|
-
const
|
|
8534
|
+
const Nl = Ft(
|
|
8495
8535
|
({
|
|
8496
8536
|
color: e = "currentColor",
|
|
8497
8537
|
size: u = 24,
|
|
@@ -8501,32 +8541,32 @@ const Ll = Ft(
|
|
|
8501
8541
|
children: o,
|
|
8502
8542
|
iconNode: i,
|
|
8503
8543
|
...a
|
|
8504
|
-
}, c) =>
|
|
8544
|
+
}, c) => Iu(
|
|
8505
8545
|
"svg",
|
|
8506
8546
|
{
|
|
8507
8547
|
ref: c,
|
|
8508
|
-
...
|
|
8548
|
+
...Ll,
|
|
8509
8549
|
width: u,
|
|
8510
8550
|
height: u,
|
|
8511
8551
|
stroke: e,
|
|
8512
8552
|
strokeWidth: n ? Number(t) * 24 / Number(u) : t,
|
|
8513
8553
|
className: n0("lucide", r),
|
|
8514
|
-
...!o &&
|
|
8554
|
+
...!o && !Ml(a) && { "aria-hidden": "true" },
|
|
8515
8555
|
...a
|
|
8516
8556
|
},
|
|
8517
8557
|
[
|
|
8518
|
-
...i.map(([s, l]) =>
|
|
8558
|
+
...i.map(([s, l]) => Iu(s, l)),
|
|
8519
8559
|
...Array.isArray(o) ? o : [o]
|
|
8520
8560
|
]
|
|
8521
8561
|
)
|
|
8522
8562
|
);
|
|
8523
8563
|
const r0 = (e, u) => {
|
|
8524
8564
|
const t = Ft(
|
|
8525
|
-
({ className: n, ...r }, o) =>
|
|
8565
|
+
({ className: n, ...r }, o) => Iu(Nl, {
|
|
8526
8566
|
ref: o,
|
|
8527
8567
|
iconNode: u,
|
|
8528
8568
|
className: n0(
|
|
8529
|
-
`lucide-${
|
|
8569
|
+
`lucide-${Sl(Dn(e))}`,
|
|
8530
8570
|
`lucide-${e}`,
|
|
8531
8571
|
n
|
|
8532
8572
|
),
|
|
@@ -8535,35 +8575,35 @@ const r0 = (e, u) => {
|
|
|
8535
8575
|
);
|
|
8536
8576
|
return t.displayName = Dn(e), t;
|
|
8537
8577
|
};
|
|
8538
|
-
const
|
|
8578
|
+
const Il = [
|
|
8539
8579
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
8540
8580
|
["path", { d: "m21 3-7 7", key: "1l2asr" }],
|
|
8541
8581
|
["path", { d: "m3 21 7-7", key: "tjx5ai" }],
|
|
8542
8582
|
["path", { d: "M9 21H3v-6", key: "wtvkvv" }]
|
|
8543
|
-
],
|
|
8544
|
-
const
|
|
8583
|
+
], Rl = r0("maximize-2", Il);
|
|
8584
|
+
const zl = [
|
|
8545
8585
|
["path", { d: "m14 10 7-7", key: "oa77jy" }],
|
|
8546
8586
|
["path", { d: "M20 10h-6V4", key: "mjg0md" }],
|
|
8547
8587
|
["path", { d: "m3 21 7-7", key: "tjx5ai" }],
|
|
8548
8588
|
["path", { d: "M4 14h6v6", key: "rmj7iw" }]
|
|
8549
|
-
],
|
|
8550
|
-
function
|
|
8589
|
+
], Pl = r0("minimize-2", zl);
|
|
8590
|
+
function Bl({
|
|
8551
8591
|
className: e,
|
|
8552
8592
|
...u
|
|
8553
8593
|
}) {
|
|
8554
|
-
const { isFullscreen: t, isMobile: n, setFullscreen: r, setOpen: o } =
|
|
8594
|
+
const { isFullscreen: t, isMobile: n, setFullscreen: r, setOpen: o } = ku(), { t: i } = le(), a = ju(), c = St(), s = y0(c.pathname);
|
|
8555
8595
|
return /* @__PURE__ */ $(
|
|
8556
8596
|
"div",
|
|
8557
8597
|
{
|
|
8558
8598
|
...u,
|
|
8559
|
-
className:
|
|
8599
|
+
className: U("chat-top-controls relative z-10", e),
|
|
8560
8600
|
children: [
|
|
8561
8601
|
/* @__PURE__ */ x(
|
|
8562
|
-
|
|
8602
|
+
Tl,
|
|
8563
8603
|
{
|
|
8564
|
-
className:
|
|
8604
|
+
className: U(
|
|
8565
8605
|
"pointer-events-none absolute h-20 w-full",
|
|
8566
|
-
s ===
|
|
8606
|
+
s === Ye.Text ? "opacity-100" : "opacity-0"
|
|
8567
8607
|
)
|
|
8568
8608
|
}
|
|
8569
8609
|
),
|
|
@@ -8575,7 +8615,7 @@ function Pl({
|
|
|
8575
8615
|
"aria-label": i("controls.close"),
|
|
8576
8616
|
className: "chat-icon-button",
|
|
8577
8617
|
onClick: () => o(!1),
|
|
8578
|
-
children: /* @__PURE__ */ x(
|
|
8618
|
+
children: /* @__PURE__ */ x(Al, { className: "h-3.5 w-3.5" })
|
|
8579
8619
|
}
|
|
8580
8620
|
),
|
|
8581
8621
|
!t && /* @__PURE__ */ x(
|
|
@@ -8603,7 +8643,7 @@ function Pl({
|
|
|
8603
8643
|
"aria-pressed": t,
|
|
8604
8644
|
className: "chat-icon-button",
|
|
8605
8645
|
onClick: () => r(!t),
|
|
8606
|
-
children: t ? /* @__PURE__ */ x(
|
|
8646
|
+
children: t ? /* @__PURE__ */ x(Pl, { className: "h-4 w-4" }) : /* @__PURE__ */ x(Rl, { className: "h-4 w-4" })
|
|
8607
8647
|
}
|
|
8608
8648
|
),
|
|
8609
8649
|
/* @__PURE__ */ x(
|
|
@@ -8614,7 +8654,7 @@ function Pl({
|
|
|
8614
8654
|
}),
|
|
8615
8655
|
"aria-label": i("controls.openChatList"),
|
|
8616
8656
|
className: "chat-icon-button",
|
|
8617
|
-
children: /* @__PURE__ */ x(
|
|
8657
|
+
children: /* @__PURE__ */ x(Dl, {})
|
|
8618
8658
|
}
|
|
8619
8659
|
)
|
|
8620
8660
|
] })
|
|
@@ -8623,13 +8663,13 @@ function Pl({
|
|
|
8623
8663
|
}
|
|
8624
8664
|
);
|
|
8625
8665
|
}
|
|
8626
|
-
function
|
|
8666
|
+
function Ol({
|
|
8627
8667
|
className: e
|
|
8628
8668
|
}) {
|
|
8629
8669
|
return /* @__PURE__ */ $(
|
|
8630
8670
|
"div",
|
|
8631
8671
|
{
|
|
8632
|
-
className:
|
|
8672
|
+
className: U(
|
|
8633
8673
|
"absolute bottom-0 h-24 w-full transition-opacity",
|
|
8634
8674
|
e
|
|
8635
8675
|
),
|
|
@@ -8652,19 +8692,19 @@ function Bl({
|
|
|
8652
8692
|
}
|
|
8653
8693
|
);
|
|
8654
8694
|
}
|
|
8655
|
-
function
|
|
8695
|
+
function ql({ className: e }) {
|
|
8656
8696
|
return /* @__PURE__ */ x(
|
|
8657
8697
|
"div",
|
|
8658
8698
|
{
|
|
8659
|
-
className:
|
|
8699
|
+
className: U(
|
|
8660
8700
|
"absolute top-0 h-full w-full bg-[#090b10]/58 transition-opacity",
|
|
8661
8701
|
e
|
|
8662
8702
|
)
|
|
8663
8703
|
}
|
|
8664
8704
|
);
|
|
8665
8705
|
}
|
|
8666
|
-
const
|
|
8667
|
-
function
|
|
8706
|
+
const jl = (e) => /* @__PURE__ */ q.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M15 18L9 12L15 6", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Hl = (e) => /* @__PURE__ */ q.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M12 5V19M5 12H19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Fe = (e) => e < 10 ? `0${e}` : String(e);
|
|
8707
|
+
function Vl(e, u) {
|
|
8668
8708
|
const t = new Date(e), n = /* @__PURE__ */ new Date(), r = n.getTime() - t.getTime(), o = Math.floor(r / 6e4), i = typeof Intl < "u" && typeof Intl.DateTimeFormat == "function" ? Intl.DateTimeFormat : null, a = typeof Intl < "u" && typeof Intl.RelativeTimeFormat == "function" ? new Intl.RelativeTimeFormat(u, {
|
|
8669
8709
|
numeric: "auto",
|
|
8670
8710
|
style: "short"
|
|
@@ -8700,7 +8740,7 @@ function Hl(e, u) {
|
|
|
8700
8740
|
t.getMonth() + 1
|
|
8701
8741
|
)}.${t.getFullYear()}`;
|
|
8702
8742
|
}
|
|
8703
|
-
const
|
|
8743
|
+
const Ul = Sn(function({
|
|
8704
8744
|
threadId: u,
|
|
8705
8745
|
message: t,
|
|
8706
8746
|
isSelected: n,
|
|
@@ -8713,7 +8753,7 @@ const Vl = Sn(function({
|
|
|
8713
8753
|
type: "button",
|
|
8714
8754
|
onClick: () => r(u),
|
|
8715
8755
|
"aria-current": n ? "page" : void 0,
|
|
8716
|
-
className:
|
|
8756
|
+
className: U(
|
|
8717
8757
|
"group relative flex min-h-16 w-full flex-row items-center gap-3 rounded-2xl px-3 py-2.5 text-start transition-[background-color,transform] duration-100 ease-out",
|
|
8718
8758
|
"hover:bg-white/6 active:scale-[0.992] active:bg-white/8",
|
|
8719
8759
|
n && "chat-list-item_selected"
|
|
@@ -8729,7 +8769,7 @@ const Vl = Sn(function({
|
|
|
8729
8769
|
) }),
|
|
8730
8770
|
/* @__PURE__ */ $("div", { className: "min-w-0 flex-1", children: [
|
|
8731
8771
|
/* @__PURE__ */ x("p", { className: "truncate text-[14px] leading-5 font-medium tracking-[-0.005em] text-white/90", children: i }),
|
|
8732
|
-
/* @__PURE__ */ x("p", { className: "mt-0.5 text-xs leading-4 text-white/42", children:
|
|
8772
|
+
/* @__PURE__ */ x("p", { className: "mt-0.5 text-xs leading-4 text-white/42", children: Vl(t.updatedAt, o) })
|
|
8733
8773
|
] }),
|
|
8734
8774
|
/* @__PURE__ */ x(
|
|
8735
8775
|
"span",
|
|
@@ -8742,29 +8782,29 @@ const Vl = Sn(function({
|
|
|
8742
8782
|
}
|
|
8743
8783
|
);
|
|
8744
8784
|
});
|
|
8745
|
-
function
|
|
8785
|
+
function Gl({
|
|
8746
8786
|
className: e,
|
|
8747
8787
|
...u
|
|
8748
8788
|
}) {
|
|
8749
|
-
const { direction: t, t: n } = le(), r = ju(), o = St(), i =
|
|
8789
|
+
const { direction: t, t: n } = le(), r = ju(), o = St(), i = S(null), a = w0(), {
|
|
8750
8790
|
cancelConversationPagination: c,
|
|
8751
8791
|
createNewConversation: s,
|
|
8752
8792
|
fetchMoreConversations: l,
|
|
8753
8793
|
setCurrentThread: d
|
|
8754
|
-
} = Tt(), p = E0(), h = F0(), f = A0(), b = D0(o.state) !==
|
|
8794
|
+
} = Tt(), p = E0(), h = F0(), f = A0(), b = D0(o.state) !== Ye.Text ? se.voice : se.text;
|
|
8755
8795
|
function C() {
|
|
8756
8796
|
r(-1);
|
|
8757
8797
|
}
|
|
8758
8798
|
async function g() {
|
|
8759
8799
|
try {
|
|
8760
8800
|
await s(), r(b);
|
|
8761
|
-
} catch (
|
|
8762
|
-
console.error("Failed to create conversation",
|
|
8801
|
+
} catch (w) {
|
|
8802
|
+
console.error("Failed to create conversation", w);
|
|
8763
8803
|
}
|
|
8764
8804
|
}
|
|
8765
|
-
const k =
|
|
8766
|
-
(
|
|
8767
|
-
const y = d(
|
|
8805
|
+
const k = P(
|
|
8806
|
+
(w) => {
|
|
8807
|
+
const y = d(w);
|
|
8768
8808
|
r(b), y.catch((I) => {
|
|
8769
8809
|
console.error("Failed to select conversation", I);
|
|
8770
8810
|
});
|
|
@@ -8772,7 +8812,7 @@ function Ul({
|
|
|
8772
8812
|
[b, r, d]
|
|
8773
8813
|
), {
|
|
8774
8814
|
error: v,
|
|
8775
|
-
loadMore:
|
|
8815
|
+
loadMore: _,
|
|
8776
8816
|
sentinelRef: E
|
|
8777
8817
|
} = t0({
|
|
8778
8818
|
rootRef: i,
|
|
@@ -8780,7 +8820,7 @@ function Ul({
|
|
|
8780
8820
|
isLoading: f,
|
|
8781
8821
|
onLoad: l
|
|
8782
8822
|
});
|
|
8783
|
-
return
|
|
8823
|
+
return H(
|
|
8784
8824
|
() => () => {
|
|
8785
8825
|
c();
|
|
8786
8826
|
},
|
|
@@ -8789,7 +8829,7 @@ function Ul({
|
|
|
8789
8829
|
"div",
|
|
8790
8830
|
{
|
|
8791
8831
|
...u,
|
|
8792
|
-
className:
|
|
8832
|
+
className: U(
|
|
8793
8833
|
"chat-list-surface z-51 flex h-full flex-col rounded-[inherit]",
|
|
8794
8834
|
e
|
|
8795
8835
|
),
|
|
@@ -8802,9 +8842,9 @@ function Ul({
|
|
|
8802
8842
|
"aria-label": n("chat.back"),
|
|
8803
8843
|
className: "chat-icon-button h-9 w-9 shrink-0",
|
|
8804
8844
|
children: /* @__PURE__ */ x(
|
|
8805
|
-
|
|
8845
|
+
jl,
|
|
8806
8846
|
{
|
|
8807
|
-
className:
|
|
8847
|
+
className: U("h-5 w-5", t === "rtl" && "rotate-180")
|
|
8808
8848
|
}
|
|
8809
8849
|
)
|
|
8810
8850
|
}
|
|
@@ -8818,7 +8858,7 @@ function Ul({
|
|
|
8818
8858
|
},
|
|
8819
8859
|
"aria-label": n("chat.new"),
|
|
8820
8860
|
className: "chat-icon-button h-9 w-9 shrink-0",
|
|
8821
|
-
children: /* @__PURE__ */ x(
|
|
8861
|
+
children: /* @__PURE__ */ x(Hl, { className: "h-5 w-5" })
|
|
8822
8862
|
}
|
|
8823
8863
|
)
|
|
8824
8864
|
] }),
|
|
@@ -8829,15 +8869,15 @@ function Ul({
|
|
|
8829
8869
|
"aria-busy": f,
|
|
8830
8870
|
className: "chat-scrollbar flex flex-1 flex-col overflow-y-auto p-2",
|
|
8831
8871
|
children: [
|
|
8832
|
-
p.map((
|
|
8833
|
-
|
|
8872
|
+
p.map((w) => /* @__PURE__ */ x("div", { className: "chat-list-entry", children: /* @__PURE__ */ x(
|
|
8873
|
+
Ul,
|
|
8834
8874
|
{
|
|
8835
|
-
threadId:
|
|
8836
|
-
message:
|
|
8837
|
-
isSelected: a ===
|
|
8875
|
+
threadId: w.threadId,
|
|
8876
|
+
message: w.lastMessage,
|
|
8877
|
+
isSelected: a === w.threadId,
|
|
8838
8878
|
onSelect: k
|
|
8839
8879
|
}
|
|
8840
|
-
) },
|
|
8880
|
+
) }, w.threadId)),
|
|
8841
8881
|
f && /* @__PURE__ */ x(yl, {}),
|
|
8842
8882
|
/* @__PURE__ */ x("div", { ref: E, "aria-hidden": "true", className: "h-px shrink-0" }),
|
|
8843
8883
|
h && !f && /* @__PURE__ */ x(
|
|
@@ -8846,7 +8886,7 @@ function Ul({
|
|
|
8846
8886
|
type: "button",
|
|
8847
8887
|
"aria-label": n("chat.loadOlder"),
|
|
8848
8888
|
onClick: () => {
|
|
8849
|
-
|
|
8889
|
+
_();
|
|
8850
8890
|
},
|
|
8851
8891
|
className: "mx-auto my-2 rounded-full border border-white/10 bg-white/[0.04] px-3 py-1.5 text-xs text-white/65 transition-colors hover:border-[#68d8ff]/30 hover:text-white/90",
|
|
8852
8892
|
children: n(v ? "chat.retryOlder" : "chat.loadOlder")
|
|
@@ -8868,40 +8908,40 @@ function Ul({
|
|
|
8868
8908
|
);
|
|
8869
8909
|
}
|
|
8870
8910
|
function Tn({ mode: e }) {
|
|
8871
|
-
const u = e ===
|
|
8911
|
+
const u = e === Ye.Text;
|
|
8872
8912
|
return /* @__PURE__ */ $(o0, { children: [
|
|
8873
8913
|
/* @__PURE__ */ $("div", { className: "pointer-events-none absolute inset-0", children: [
|
|
8874
8914
|
/* @__PURE__ */ x(
|
|
8875
|
-
|
|
8915
|
+
Ol,
|
|
8876
8916
|
{
|
|
8877
8917
|
className: u ? "opacity-100" : "opacity-0"
|
|
8878
8918
|
}
|
|
8879
8919
|
),
|
|
8880
|
-
/* @__PURE__ */ x(
|
|
8920
|
+
/* @__PURE__ */ x(ql, { className: u ? "opacity-100" : "opacity-0" })
|
|
8881
8921
|
] }),
|
|
8882
8922
|
/* @__PURE__ */ $("div", { className: "relative z-5 flex h-full min-h-0 w-full flex-col", children: [
|
|
8883
|
-
/* @__PURE__ */ x(
|
|
8884
|
-
/* @__PURE__ */ x("div", { className: "flex min-h-0 flex-1 flex-col justify-end", children: e ===
|
|
8923
|
+
/* @__PURE__ */ x(Bl, { className: "shrink-0" }),
|
|
8924
|
+
/* @__PURE__ */ x("div", { className: "flex min-h-0 flex-1 flex-col justify-end", children: e === Ye.Voice ? /* @__PURE__ */ x(Ki, {}) : /* @__PURE__ */ x(Fl, {}) })
|
|
8885
8925
|
] })
|
|
8886
8926
|
] });
|
|
8887
8927
|
}
|
|
8888
|
-
function
|
|
8928
|
+
function Zl({ location: e }) {
|
|
8889
8929
|
return /* @__PURE__ */ $($0, { location: e, children: [
|
|
8890
8930
|
/* @__PURE__ */ x(
|
|
8891
|
-
|
|
8931
|
+
nu,
|
|
8892
8932
|
{
|
|
8893
8933
|
path: se.list,
|
|
8894
|
-
element: /* @__PURE__ */ x(
|
|
8934
|
+
element: /* @__PURE__ */ x(Gl, { className: "h-full w-full" })
|
|
8895
8935
|
}
|
|
8896
8936
|
),
|
|
8897
|
-
/* @__PURE__ */ x(
|
|
8898
|
-
/* @__PURE__ */ x(
|
|
8899
|
-
/* @__PURE__ */ x(
|
|
8900
|
-
/* @__PURE__ */ x(
|
|
8937
|
+
/* @__PURE__ */ x(nu, { path: se.voice, element: /* @__PURE__ */ x(Tn, { mode: Ye.Voice }) }),
|
|
8938
|
+
/* @__PURE__ */ x(nu, { path: se.text, element: /* @__PURE__ */ x(Tn, { mode: Ye.Text }) }),
|
|
8939
|
+
/* @__PURE__ */ x(nu, { path: "/", element: /* @__PURE__ */ x(Wt, { to: se.voice, replace: !0 }) }),
|
|
8940
|
+
/* @__PURE__ */ x(nu, { path: "*", element: /* @__PURE__ */ x(Wt, { to: se.voice, replace: !0 }) })
|
|
8901
8941
|
] });
|
|
8902
8942
|
}
|
|
8903
|
-
function
|
|
8904
|
-
const { setAvatarCoveredByChatList: e } =
|
|
8943
|
+
function Ql() {
|
|
8944
|
+
const { setAvatarCoveredByChatList: e } = ku(), u = St(), [t, n] = V(() => ({ location: u, transition: null }));
|
|
8905
8945
|
if (u.key !== t.location.key) {
|
|
8906
8946
|
const c = t.transition?.to ?? t.location, s = T0(
|
|
8907
8947
|
c.pathname,
|
|
@@ -8913,7 +8953,7 @@ function Jl() {
|
|
|
8913
8953
|
});
|
|
8914
8954
|
}
|
|
8915
8955
|
const { location: r, transition: o } = t, i = o ? [o.from, o.to] : [r];
|
|
8916
|
-
|
|
8956
|
+
xu(() => {
|
|
8917
8957
|
e(
|
|
8918
8958
|
!o && S0(r.pathname)
|
|
8919
8959
|
);
|
|
@@ -8935,12 +8975,12 @@ function Jl() {
|
|
|
8935
8975
|
"aria-hidden": o ? !s : void 0,
|
|
8936
8976
|
inert: o && !s ? !0 : void 0,
|
|
8937
8977
|
onAnimationEnd: l ? a : void 0,
|
|
8938
|
-
children: /* @__PURE__ */ x(
|
|
8978
|
+
children: /* @__PURE__ */ x(Zl, { location: c })
|
|
8939
8979
|
},
|
|
8940
8980
|
c.key
|
|
8941
8981
|
);
|
|
8942
8982
|
}) });
|
|
8943
8983
|
}
|
|
8944
8984
|
export {
|
|
8945
|
-
|
|
8985
|
+
Ql as default
|
|
8946
8986
|
};
|