@multiplayer-app/ai-agent-react 0.1.0-beta.50 → 0.1.0-beta.51
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.
|
@@ -272,7 +272,7 @@ function Z7() {
|
|
|
272
272
|
}
|
|
273
273
|
var M = !1, S = !1, x = !1, z = !1, H = !1, C;
|
|
274
274
|
C = Symbol.for("react.module.reference");
|
|
275
|
-
function
|
|
275
|
+
function D(U) {
|
|
276
276
|
return !!(typeof U == "string" || typeof U == "function" || U === r || U === i || H || U === a || U === u || U === d || z || U === h || M || S || x || typeof U == "object" && U !== null && (U.$$typeof === m || U.$$typeof === p || U.$$typeof === o || U.$$typeof === s || U.$$typeof === l || // This needs to include all possible module reference object
|
|
277
277
|
// types supported by any Flight configuration anywhere since
|
|
278
278
|
// we don't know which Flight build this will end up being used
|
|
@@ -334,14 +334,14 @@ function Z7() {
|
|
|
334
334
|
}
|
|
335
335
|
return null;
|
|
336
336
|
}
|
|
337
|
-
var G = Object.assign, R = 0, B, P,
|
|
337
|
+
var G = Object.assign, R = 0, B, P, L, K, A, Q, ee;
|
|
338
338
|
function O() {
|
|
339
339
|
}
|
|
340
340
|
O.__reactDisabledLog = !0;
|
|
341
341
|
function ue() {
|
|
342
342
|
{
|
|
343
343
|
if (R === 0) {
|
|
344
|
-
B = console.log, P = console.info,
|
|
344
|
+
B = console.log, P = console.info, L = console.warn, K = console.error, A = console.group, Q = console.groupCollapsed, ee = console.groupEnd;
|
|
345
345
|
var U = {
|
|
346
346
|
configurable: !0,
|
|
347
347
|
enumerable: !0,
|
|
@@ -377,7 +377,7 @@ function Z7() {
|
|
|
377
377
|
value: P
|
|
378
378
|
}),
|
|
379
379
|
warn: G({}, U, {
|
|
380
|
-
value:
|
|
380
|
+
value: L
|
|
381
381
|
}),
|
|
382
382
|
error: G({}, U, {
|
|
383
383
|
value: K
|
|
@@ -780,7 +780,7 @@ Check the top-level render call using <` + ye + ">.");
|
|
|
780
780
|
var a2 = {};
|
|
781
781
|
function i2(U, ie, ye, Oe, tt, ot) {
|
|
782
782
|
{
|
|
783
|
-
var We =
|
|
783
|
+
var We = D(U);
|
|
784
784
|
if (!We) {
|
|
785
785
|
var je = "";
|
|
786
786
|
(U === void 0 || typeof U == "object" && U !== null && Object.keys(U).length === 0) && (je += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -1747,8 +1747,8 @@ class cs {
|
|
|
1747
1747
|
const C = JSON.parse(z).choices?.[0]?.delta;
|
|
1748
1748
|
if (!C)
|
|
1749
1749
|
continue;
|
|
1750
|
-
const
|
|
1751
|
-
|
|
1750
|
+
const D = C.content ?? "", W = C.reasoning ?? "";
|
|
1751
|
+
D && (w.content += D, n({
|
|
1752
1752
|
type: Nn.Message,
|
|
1753
1753
|
message: { ...w }
|
|
1754
1754
|
})), W && (y += W, n({
|
|
@@ -29241,12 +29241,12 @@ const N8e = function(e) {
|
|
|
29241
29241
|
const _ = Fr(a), k = gr(s), v = Fr(s) === s, M = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), S = m || (v || !y ? [no(s)] : L6e(s)), x = f !== "none";
|
|
29242
29242
|
!m && x && S.push(...F6e(s, y, f, M));
|
|
29243
29243
|
const z = [s, ...S], H = await s3(t, w), C = [];
|
|
29244
|
-
let
|
|
29244
|
+
let D = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
29245
29245
|
if (d && C.push(H[_]), p) {
|
|
29246
29246
|
const G = O6e(a, o, M);
|
|
29247
29247
|
C.push(H[G[0]], H[G[1]]);
|
|
29248
29248
|
}
|
|
29249
|
-
if (
|
|
29249
|
+
if (D = [...D, {
|
|
29250
29250
|
placement: a,
|
|
29251
29251
|
overflows: C
|
|
29252
29252
|
}], !C.every((G) => G <= 0)) {
|
|
@@ -29254,30 +29254,30 @@ const N8e = function(e) {
|
|
|
29254
29254
|
const G = (((W = i.flip) == null ? void 0 : W.index) || 0) + 1, R = z[G];
|
|
29255
29255
|
if (R && (!(p === "alignment" ? k !== gr(R) : !1) || // We leave the current main axis only if every placement on that axis
|
|
29256
29256
|
// overflows the main axis.
|
|
29257
|
-
|
|
29257
|
+
D.every((L) => gr(L.placement) === k ? L.overflows[0] > 0 : !0)))
|
|
29258
29258
|
return {
|
|
29259
29259
|
data: {
|
|
29260
29260
|
index: G,
|
|
29261
|
-
overflows:
|
|
29261
|
+
overflows: D
|
|
29262
29262
|
},
|
|
29263
29263
|
reset: {
|
|
29264
29264
|
placement: R
|
|
29265
29265
|
}
|
|
29266
29266
|
};
|
|
29267
|
-
let B = (Y =
|
|
29267
|
+
let B = (Y = D.filter((P) => P.overflows[0] <= 0).sort((P, L) => P.overflows[1] - L.overflows[1])[0]) == null ? void 0 : Y.placement;
|
|
29268
29268
|
if (!B)
|
|
29269
29269
|
switch (h) {
|
|
29270
29270
|
case "bestFit": {
|
|
29271
29271
|
var J;
|
|
29272
|
-
const P = (J =
|
|
29272
|
+
const P = (J = D.filter((L) => {
|
|
29273
29273
|
if (x) {
|
|
29274
|
-
const K = gr(
|
|
29274
|
+
const K = gr(L.placement);
|
|
29275
29275
|
return K === k || // Create a bias to the `y` side axis due to horizontal
|
|
29276
29276
|
// reading directions favoring greater width.
|
|
29277
29277
|
K === "y";
|
|
29278
29278
|
}
|
|
29279
29279
|
return !0;
|
|
29280
|
-
}).map((
|
|
29280
|
+
}).map((L) => [L.placement, L.overflows.filter((K) => K > 0).reduce((K, A) => K + A, 0)]).sort((L, K) => L[1] - K[1])[0]) == null ? void 0 : J[0];
|
|
29281
29281
|
P && (B = P);
|
|
29282
29282
|
break;
|
|
29283
29283
|
}
|
|
@@ -29859,19 +29859,19 @@ function e7e(e) {
|
|
|
29859
29859
|
isPositioned: !1
|
|
29860
29860
|
}), [m, h] = te.useState(r);
|
|
29861
29861
|
io(m, r) || h(r);
|
|
29862
|
-
const [f, y] = te.useState(null), [w, _] = te.useState(null), k = te.useCallback((
|
|
29863
|
-
|
|
29864
|
-
}, []), v = te.useCallback((
|
|
29865
|
-
|
|
29866
|
-
}, []), M = i || f, S = o || w, x = te.useRef(null), z = te.useRef(null), H = te.useRef(d), C = l != null,
|
|
29862
|
+
const [f, y] = te.useState(null), [w, _] = te.useState(null), k = te.useCallback((L) => {
|
|
29863
|
+
L !== x.current && (x.current = L, y(L));
|
|
29864
|
+
}, []), v = te.useCallback((L) => {
|
|
29865
|
+
L !== z.current && (z.current = L, _(L));
|
|
29866
|
+
}, []), M = i || f, S = o || w, x = te.useRef(null), z = te.useRef(null), H = te.useRef(d), C = l != null, D = gs(l), W = gs(a), Y = gs(u), J = te.useCallback(() => {
|
|
29867
29867
|
if (!x.current || !z.current)
|
|
29868
29868
|
return;
|
|
29869
|
-
const
|
|
29869
|
+
const L = {
|
|
29870
29870
|
placement: t,
|
|
29871
29871
|
strategy: n,
|
|
29872
29872
|
middleware: m
|
|
29873
29873
|
};
|
|
29874
|
-
W.current && (
|
|
29874
|
+
W.current && (L.platform = W.current), X8e(x.current, z.current, L).then((K) => {
|
|
29875
29875
|
const A = {
|
|
29876
29876
|
...K,
|
|
29877
29877
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -29886,8 +29886,8 @@ function e7e(e) {
|
|
|
29886
29886
|
});
|
|
29887
29887
|
}, [m, t, n, W, Y]);
|
|
29888
29888
|
Hi(() => {
|
|
29889
|
-
u === !1 && H.current.isPositioned && (H.current.isPositioned = !1, p((
|
|
29890
|
-
...
|
|
29889
|
+
u === !1 && H.current.isPositioned && (H.current.isPositioned = !1, p((L) => ({
|
|
29890
|
+
...L,
|
|
29891
29891
|
isPositioned: !1
|
|
29892
29892
|
})));
|
|
29893
29893
|
}, [u]);
|
|
@@ -29896,11 +29896,11 @@ function e7e(e) {
|
|
|
29896
29896
|
G.current = !1;
|
|
29897
29897
|
}), []), Hi(() => {
|
|
29898
29898
|
if (M && (x.current = M), S && (z.current = S), M && S) {
|
|
29899
|
-
if (
|
|
29900
|
-
return
|
|
29899
|
+
if (D.current)
|
|
29900
|
+
return D.current(M, S, J);
|
|
29901
29901
|
J();
|
|
29902
29902
|
}
|
|
29903
|
-
}, [M, S, J,
|
|
29903
|
+
}, [M, S, J, D, C]);
|
|
29904
29904
|
const R = te.useMemo(() => ({
|
|
29905
29905
|
reference: x,
|
|
29906
29906
|
floating: z,
|
|
@@ -29910,16 +29910,16 @@ function e7e(e) {
|
|
|
29910
29910
|
reference: M,
|
|
29911
29911
|
floating: S
|
|
29912
29912
|
}), [M, S]), P = te.useMemo(() => {
|
|
29913
|
-
const
|
|
29913
|
+
const L = {
|
|
29914
29914
|
position: n,
|
|
29915
29915
|
left: 0,
|
|
29916
29916
|
top: 0
|
|
29917
29917
|
};
|
|
29918
29918
|
if (!B.floating)
|
|
29919
|
-
return
|
|
29919
|
+
return L;
|
|
29920
29920
|
const K = S2(B.floating, d.x), A = S2(B.floating, d.y);
|
|
29921
29921
|
return s ? {
|
|
29922
|
-
...
|
|
29922
|
+
...L,
|
|
29923
29923
|
transform: "translate(" + K + "px, " + A + "px)",
|
|
29924
29924
|
...m3(B.floating) >= 1.5 && {
|
|
29925
29925
|
willChange: "transform"
|
|
@@ -30042,19 +30042,19 @@ function u7e(e, t) {
|
|
|
30042
30042
|
restMs: p = 0,
|
|
30043
30043
|
move: m = !0
|
|
30044
30044
|
} = t, h = Oo(), f = Io(), y = tr(u), w = tr(l), _ = tr(n), k = tr(p), v = te.useRef(), M = te.useRef(-1), S = te.useRef(), x = te.useRef(-1), z = te.useRef(!0), H = te.useRef(!1), C = te.useRef(() => {
|
|
30045
|
-
}),
|
|
30045
|
+
}), D = te.useRef(!1), W = cn(() => {
|
|
30046
30046
|
var P;
|
|
30047
|
-
const
|
|
30048
|
-
return
|
|
30047
|
+
const L = (P = a.current.openEvent) == null ? void 0 : P.type;
|
|
30048
|
+
return L?.includes("mouse") && L !== "mousedown";
|
|
30049
30049
|
});
|
|
30050
30050
|
te.useEffect(() => {
|
|
30051
30051
|
if (!s)
|
|
30052
30052
|
return;
|
|
30053
|
-
function P(
|
|
30053
|
+
function P(L) {
|
|
30054
30054
|
let {
|
|
30055
30055
|
open: K
|
|
30056
|
-
} =
|
|
30057
|
-
K || (mn(M), mn(x), z.current = !0,
|
|
30056
|
+
} = L;
|
|
30057
|
+
K || (mn(M), mn(x), z.current = !0, D.current = !1);
|
|
30058
30058
|
}
|
|
30059
30059
|
return i.on("openchange", P), () => {
|
|
30060
30060
|
i.off("openchange", P);
|
|
@@ -30065,15 +30065,15 @@ function u7e(e, t) {
|
|
|
30065
30065
|
function P(K) {
|
|
30066
30066
|
W() && r(!1, K, "hover");
|
|
30067
30067
|
}
|
|
30068
|
-
const
|
|
30069
|
-
return
|
|
30070
|
-
|
|
30068
|
+
const L = An(o.floating).documentElement;
|
|
30069
|
+
return L.addEventListener("mouseleave", P), () => {
|
|
30070
|
+
L.removeEventListener("mouseleave", P);
|
|
30071
30071
|
};
|
|
30072
30072
|
}, [o.floating, n, r, s, y, W]);
|
|
30073
|
-
const Y = te.useCallback(function(P,
|
|
30074
|
-
|
|
30073
|
+
const Y = te.useCallback(function(P, L, K) {
|
|
30074
|
+
L === void 0 && (L = !0), K === void 0 && (K = "hover");
|
|
30075
30075
|
const A = bs(w.current, "close", v.current);
|
|
30076
|
-
A && !S.current ? (mn(M), M.current = window.setTimeout(() => r(!1, P, K), A)) :
|
|
30076
|
+
A && !S.current ? (mn(M), M.current = window.setTimeout(() => r(!1, P, K), A)) : L && (mn(M), r(!1, P, K));
|
|
30077
30077
|
}, [w, r]), J = cn(() => {
|
|
30078
30078
|
C.current(), S.current = void 0;
|
|
30079
30079
|
}), G = cn(() => {
|
|
@@ -30093,14 +30093,14 @@ function u7e(e, t) {
|
|
|
30093
30093
|
_.current || r(!0, ee, "hover");
|
|
30094
30094
|
}, O) : n || r(!0, ee, "hover");
|
|
30095
30095
|
}
|
|
30096
|
-
function
|
|
30096
|
+
function L(ee) {
|
|
30097
30097
|
if (R()) {
|
|
30098
30098
|
G();
|
|
30099
30099
|
return;
|
|
30100
30100
|
}
|
|
30101
30101
|
C.current();
|
|
30102
30102
|
const O = An(o.floating);
|
|
30103
|
-
if (mn(x),
|
|
30103
|
+
if (mn(x), D.current = !1, y.current && a.current.floatingContext) {
|
|
30104
30104
|
n || mn(M), S.current = y.current({
|
|
30105
30105
|
...a.current.floatingContext,
|
|
30106
30106
|
tree: h,
|
|
@@ -30139,8 +30139,8 @@ function u7e(e, t) {
|
|
|
30139
30139
|
const ee = o.domReference, O = o.floating;
|
|
30140
30140
|
return n && ee.addEventListener("mouseleave", K), m && ee.addEventListener("mousemove", P, {
|
|
30141
30141
|
once: !0
|
|
30142
|
-
}), ee.addEventListener("mouseenter", P), ee.addEventListener("mouseleave",
|
|
30143
|
-
n && ee.removeEventListener("mouseleave", K), m && ee.removeEventListener("mousemove", P), ee.removeEventListener("mouseenter", P), ee.removeEventListener("mouseleave",
|
|
30142
|
+
}), ee.addEventListener("mouseenter", P), ee.addEventListener("mouseleave", L), O && (O.addEventListener("mouseleave", K), O.addEventListener("mouseenter", A), O.addEventListener("mouseleave", Q)), () => {
|
|
30143
|
+
n && ee.removeEventListener("mouseleave", K), m && ee.removeEventListener("mousemove", P), ee.removeEventListener("mouseenter", P), ee.removeEventListener("mouseleave", L), O && (O.removeEventListener("mouseleave", K), O.removeEventListener("mouseenter", A), O.removeEventListener("mouseleave", Q));
|
|
30144
30144
|
};
|
|
30145
30145
|
}
|
|
30146
30146
|
}, [o, s, e, d, m, Y, J, G, r, n, _, h, w, y, a, R, k]), Dt(() => {
|
|
@@ -30149,35 +30149,35 @@ function u7e(e, t) {
|
|
|
30149
30149
|
H.current = !0;
|
|
30150
30150
|
const K = o.floating;
|
|
30151
30151
|
if (dt(o.domReference) && K) {
|
|
30152
|
-
var
|
|
30152
|
+
var L;
|
|
30153
30153
|
const A = An(o.floating).body;
|
|
30154
30154
|
A.setAttribute(R2, "");
|
|
30155
|
-
const Q = o.domReference, ee = h == null || (
|
|
30155
|
+
const Q = o.domReference, ee = h == null || (L = h.nodesRef.current.find((O) => O.id === f)) == null || (L = L.context) == null ? void 0 : L.elements.floating;
|
|
30156
30156
|
return ee && (ee.style.pointerEvents = ""), A.style.pointerEvents = "none", Q.style.pointerEvents = "auto", K.style.pointerEvents = "auto", () => {
|
|
30157
30157
|
A.style.pointerEvents = "", Q.style.pointerEvents = "", K.style.pointerEvents = "";
|
|
30158
30158
|
};
|
|
30159
30159
|
}
|
|
30160
30160
|
}
|
|
30161
30161
|
}, [s, n, f, o, h, y, W]), Dt(() => {
|
|
30162
|
-
n || (v.current = void 0,
|
|
30162
|
+
n || (v.current = void 0, D.current = !1, J(), G());
|
|
30163
30163
|
}, [n, J, G]), te.useEffect(() => () => {
|
|
30164
30164
|
J(), mn(M), mn(x), G();
|
|
30165
30165
|
}, [s, o.domReference, J, G]);
|
|
30166
30166
|
const B = te.useMemo(() => {
|
|
30167
|
-
function P(
|
|
30168
|
-
v.current =
|
|
30167
|
+
function P(L) {
|
|
30168
|
+
v.current = L.pointerType;
|
|
30169
30169
|
}
|
|
30170
30170
|
return {
|
|
30171
30171
|
onPointerDown: P,
|
|
30172
30172
|
onPointerEnter: P,
|
|
30173
|
-
onMouseMove(
|
|
30173
|
+
onMouseMove(L) {
|
|
30174
30174
|
const {
|
|
30175
30175
|
nativeEvent: K
|
|
30176
|
-
} =
|
|
30176
|
+
} = L;
|
|
30177
30177
|
function A() {
|
|
30178
30178
|
!z.current && !_.current && r(!0, K, "hover");
|
|
30179
30179
|
}
|
|
30180
|
-
d && !Ha(v.current) || n || ks(k.current) === 0 ||
|
|
30180
|
+
d && !Ha(v.current) || n || ks(k.current) === 0 || D.current && L.movementX ** 2 + L.movementY ** 2 < 2 || (mn(x), v.current === "touch" ? A() : (D.current = !0, x.current = window.setTimeout(A, ks(k.current))));
|
|
30181
30181
|
}
|
|
30182
30182
|
};
|
|
30183
30183
|
}, [d, r, n, _, k]);
|
|
@@ -30423,14 +30423,14 @@ function Mp(e, t) {
|
|
|
30423
30423
|
return;
|
|
30424
30424
|
const B = (R = i.current.floatingContext) == null ? void 0 : R.nodeId, P = y ? La(y.nodesRef.current, B) : [];
|
|
30425
30425
|
if (!v && (G.stopPropagation(), P.length > 0)) {
|
|
30426
|
-
let
|
|
30426
|
+
let L = !0;
|
|
30427
30427
|
if (P.forEach((K) => {
|
|
30428
30428
|
var A;
|
|
30429
30429
|
if ((A = K.context) != null && A.open && !K.context.dataRef.current.__escapeKeyBubbles) {
|
|
30430
|
-
|
|
30430
|
+
L = !1;
|
|
30431
30431
|
return;
|
|
30432
30432
|
}
|
|
30433
|
-
}), !
|
|
30433
|
+
}), !L)
|
|
30434
30434
|
return;
|
|
30435
30435
|
}
|
|
30436
30436
|
r(!1, d8e(G) ? G.nativeEvent : G, "escape-key");
|
|
@@ -30441,28 +30441,28 @@ function Mp(e, t) {
|
|
|
30441
30441
|
H(G), (P = ea(G)) == null || P.removeEventListener("keydown", B);
|
|
30442
30442
|
};
|
|
30443
30443
|
(R = ea(G)) == null || R.addEventListener("keydown", B);
|
|
30444
|
-
}),
|
|
30444
|
+
}), D = cn((G) => {
|
|
30445
30445
|
var R;
|
|
30446
30446
|
const B = i.current.insideReactTree;
|
|
30447
30447
|
i.current.insideReactTree = !1;
|
|
30448
30448
|
const P = k.current;
|
|
30449
30449
|
if (k.current = !1, u === "click" && P || B || typeof _ == "function" && !_(G))
|
|
30450
30450
|
return;
|
|
30451
|
-
const
|
|
30452
|
-
let Q = dt(
|
|
30451
|
+
const L = ea(G), K = "[" + ri("inert") + "]", A = An(a.floating).querySelectorAll(K);
|
|
30452
|
+
let Q = dt(L) ? L : null;
|
|
30453
30453
|
for (; Q && !ar(Q); ) {
|
|
30454
30454
|
const ge = sr(Q);
|
|
30455
30455
|
if (ar(ge) || !dt(ge))
|
|
30456
30456
|
break;
|
|
30457
30457
|
Q = ge;
|
|
30458
30458
|
}
|
|
30459
|
-
if (A.length && dt(
|
|
30460
|
-
!Pr(
|
|
30459
|
+
if (A.length && dt(L) && !s8e(L) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
30460
|
+
!Pr(L, a.floating) && // If the target root element contains none of the markers, then the
|
|
30461
30461
|
// element was injected after the floating element rendered.
|
|
30462
30462
|
Array.from(A).every((ge) => !Pr(Q, ge)))
|
|
30463
30463
|
return;
|
|
30464
|
-
if (Pt(
|
|
30465
|
-
const ge = ar(
|
|
30464
|
+
if (Pt(L) && J) {
|
|
30465
|
+
const ge = ar(L), be = _n(L), Ie = /auto|scroll/, De = ge || Ie.test(be.overflowX), Ue = ge || Ie.test(be.overflowY), ne = De && L.clientWidth > 0 && L.scrollWidth > L.clientWidth, we = Ue && L.clientHeight > 0 && L.scrollHeight > L.clientHeight, Xe = be.direction === "rtl", Qe = we && (Xe ? G.offsetX <= L.offsetWidth - L.clientWidth : G.offsetX > L.clientWidth), _e = ne && G.offsetY > L.clientHeight;
|
|
30466
30466
|
if (Qe || _e)
|
|
30467
30467
|
return;
|
|
30468
30468
|
}
|
|
@@ -30489,7 +30489,7 @@ function Mp(e, t) {
|
|
|
30489
30489
|
var R;
|
|
30490
30490
|
const B = () => {
|
|
30491
30491
|
var P;
|
|
30492
|
-
|
|
30492
|
+
D(G), (P = ea(G)) == null || P.removeEventListener(u, B);
|
|
30493
30493
|
};
|
|
30494
30494
|
(R = ea(G)) == null || R.addEventListener(u, B);
|
|
30495
30495
|
});
|
|
@@ -30514,22 +30514,22 @@ function Mp(e, t) {
|
|
|
30514
30514
|
So() ? 5 : 0
|
|
30515
30515
|
);
|
|
30516
30516
|
}
|
|
30517
|
-
const
|
|
30518
|
-
s && (
|
|
30517
|
+
const L = An(a.floating);
|
|
30518
|
+
s && (L.addEventListener("keydown", S ? C : H, S), L.addEventListener("compositionstart", B), L.addEventListener("compositionend", P)), _ && L.addEventListener(u, x ? W : D, x);
|
|
30519
30519
|
let K = [];
|
|
30520
30520
|
return m && (dt(a.domReference) && (K = kr(a.domReference)), dt(a.floating) && (K = K.concat(kr(a.floating))), !dt(a.reference) && a.reference && a.reference.contextElement && (K = K.concat(kr(a.reference.contextElement)))), K = K.filter((A) => {
|
|
30521
30521
|
var Q;
|
|
30522
|
-
return A !== ((Q =
|
|
30522
|
+
return A !== ((Q = L.defaultView) == null ? void 0 : Q.visualViewport);
|
|
30523
30523
|
}), K.forEach((A) => {
|
|
30524
30524
|
A.addEventListener("scroll", R, {
|
|
30525
30525
|
passive: !0
|
|
30526
30526
|
});
|
|
30527
30527
|
}), () => {
|
|
30528
|
-
s && (
|
|
30528
|
+
s && (L.removeEventListener("keydown", S ? C : H, S), L.removeEventListener("compositionstart", B), L.removeEventListener("compositionend", P)), _ && L.removeEventListener(u, x ? W : D, x), K.forEach((A) => {
|
|
30529
30529
|
A.removeEventListener("scroll", R);
|
|
30530
30530
|
}), window.clearTimeout(G);
|
|
30531
30531
|
};
|
|
30532
|
-
}, [i, a, s, _, u, n, r, m, o, v, M, H, S, C,
|
|
30532
|
+
}, [i, a, s, _, u, n, r, m, o, v, M, H, S, C, D, x, W]), te.useEffect(() => {
|
|
30533
30533
|
i.current.insideReactTree = !1;
|
|
30534
30534
|
}, [i, _, u]);
|
|
30535
30535
|
const Y = te.useMemo(() => ({
|
|
@@ -30843,7 +30843,7 @@ function _7e(e, t) {
|
|
|
30843
30843
|
scrollItemIntoView: z = !0,
|
|
30844
30844
|
virtualItemRef: H,
|
|
30845
30845
|
itemSizes: C,
|
|
30846
|
-
dense:
|
|
30846
|
+
dense: D = !1
|
|
30847
30847
|
} = t;
|
|
30848
30848
|
process.env.NODE_ENV !== "production" && (p && (m || ys("`useListNavigation` looping must be enabled to allow escaping."), y || ys("`useListNavigation` must be virtual to allow escaping.")), M === "vertical" && x > 1 && ys("In grid list navigation mode (`cols` > 1), the `orientation` should", 'be either "horizontal" or "both".'));
|
|
30849
30849
|
const W = a3(a.floating), Y = tr(W), J = Io(), G = Oo();
|
|
@@ -30851,8 +30851,8 @@ function _7e(e, t) {
|
|
|
30851
30851
|
e.dataRef.current.orientation = M;
|
|
30852
30852
|
}, [e, M]);
|
|
30853
30853
|
const R = cn(() => {
|
|
30854
|
-
l(
|
|
30855
|
-
}), B = l8e(a.domReference), P = te.useRef(w),
|
|
30854
|
+
l(L.current === -1 ? null : L.current);
|
|
30855
|
+
}), B = l8e(a.domReference), P = te.useRef(w), L = te.useRef(d ?? -1), K = te.useRef(null), A = te.useRef(!0), Q = te.useRef(R), ee = te.useRef(!!a.floating), O = te.useRef(n), ue = te.useRef(!1), ge = te.useRef(!1), be = tr(v), Ie = tr(n), De = tr(z), Ue = tr(d), [ne, we] = te.useState(), [Xe, Qe] = te.useState(), _e = cn(() => {
|
|
30856
30856
|
function ve(q) {
|
|
30857
30857
|
if (y) {
|
|
30858
30858
|
var Z;
|
|
@@ -30863,9 +30863,9 @@ function _7e(e, t) {
|
|
|
30863
30863
|
preventScroll: !0
|
|
30864
30864
|
});
|
|
30865
30865
|
}
|
|
30866
|
-
const Fe = o.current[
|
|
30866
|
+
const Fe = o.current[L.current], xe = ge.current;
|
|
30867
30867
|
Fe && ve(Fe), (ue.current ? (q) => q() : requestAnimationFrame)(() => {
|
|
30868
|
-
const q = o.current[
|
|
30868
|
+
const q = o.current[L.current] || Fe;
|
|
30869
30869
|
if (!q)
|
|
30870
30870
|
return;
|
|
30871
30871
|
Fe || ve(q);
|
|
@@ -30877,21 +30877,21 @@ function _7e(e, t) {
|
|
|
30877
30877
|
});
|
|
30878
30878
|
});
|
|
30879
30879
|
Dt(() => {
|
|
30880
|
-
u && (n && a.floating ? P.current && d != null && (ge.current = !0,
|
|
30880
|
+
u && (n && a.floating ? P.current && d != null && (ge.current = !0, L.current = d, R()) : ee.current && (L.current = -1, Q.current()));
|
|
30881
30881
|
}, [u, n, a.floating, d, R]), Dt(() => {
|
|
30882
30882
|
if (u && n && a.floating)
|
|
30883
30883
|
if (s == null) {
|
|
30884
30884
|
if (ue.current = !1, Ue.current != null)
|
|
30885
30885
|
return;
|
|
30886
|
-
if (ee.current && (
|
|
30886
|
+
if (ee.current && (L.current = -1, _e()), (!O.current || !ee.current) && P.current && (K.current != null || P.current === !0 && K.current == null)) {
|
|
30887
30887
|
let ve = 0;
|
|
30888
30888
|
const Fe = () => {
|
|
30889
|
-
o.current[0] == null ? (ve < 2 && (ve ? requestAnimationFrame : queueMicrotask)(Fe), ve++) : (
|
|
30889
|
+
o.current[0] == null ? (ve < 2 && (ve ? requestAnimationFrame : queueMicrotask)(Fe), ve++) : (L.current = K.current == null || ws(K.current, M, f) || h ? hs(o, be.current) : v2(o, be.current), K.current = null, R());
|
|
30890
30890
|
};
|
|
30891
30891
|
Fe();
|
|
30892
30892
|
}
|
|
30893
30893
|
} else
|
|
30894
|
-
Da(o, s) || (
|
|
30894
|
+
Da(o, s) || (L.current = s, _e(), ge.current = !1);
|
|
30895
30895
|
}, [u, n, a.floating, s, Ue, h, o, M, f, R, _e, be]), Dt(() => {
|
|
30896
30896
|
var ve;
|
|
30897
30897
|
if (!u || a.floating || !G || y || !ee.current)
|
|
@@ -30919,7 +30919,7 @@ function _7e(e, t) {
|
|
|
30919
30919
|
if (!Ie.current)
|
|
30920
30920
|
return;
|
|
30921
30921
|
const Ye = o.current.indexOf(xe);
|
|
30922
|
-
Ye !== -1 &&
|
|
30922
|
+
Ye !== -1 && L.current !== Ye && (L.current = Ye, R());
|
|
30923
30923
|
}
|
|
30924
30924
|
return {
|
|
30925
30925
|
onFocus(xe) {
|
|
@@ -30947,7 +30947,7 @@ function _7e(e, t) {
|
|
|
30947
30947
|
let {
|
|
30948
30948
|
pointerType: Ye
|
|
30949
30949
|
} = xe;
|
|
30950
|
-
if (!(!A.current || Ye === "touch") && (ue.current = !0, !!_ && (
|
|
30950
|
+
if (!(!A.current || Ye === "touch") && (ue.current = !0, !!_ && (L.current = -1, R(), !y))) {
|
|
30951
30951
|
var q;
|
|
30952
30952
|
(q = Y.current) == null || q.focus({
|
|
30953
30953
|
preventScroll: !0
|
|
@@ -30965,14 +30965,14 @@ function _7e(e, t) {
|
|
|
30965
30965
|
gi(ve.key, qe()) || fn(ve), r(!1, ve.nativeEvent, "list-navigation"), Pt(a.domReference) && (y ? G?.events.emit("virtualfocus", a.domReference) : a.domReference.focus());
|
|
30966
30966
|
return;
|
|
30967
30967
|
}
|
|
30968
|
-
const Fe =
|
|
30969
|
-
if (B || (ve.key === "Home" && (fn(ve),
|
|
30968
|
+
const Fe = L.current, xe = hs(o, v), Ye = v2(o, v);
|
|
30969
|
+
if (B || (ve.key === "Home" && (fn(ve), L.current = xe, R()), ve.key === "End" && (fn(ve), L.current = Ye, R())), x > 1) {
|
|
30970
30970
|
const q = C || Array.from({
|
|
30971
30971
|
length: o.current.length
|
|
30972
30972
|
}, () => ({
|
|
30973
30973
|
width: 1,
|
|
30974
30974
|
height: 1
|
|
30975
|
-
})), Z = v8e(q, x,
|
|
30975
|
+
})), Z = v8e(q, x, D), se = Z.findIndex((He) => He != null && !Ui(o, He, v)), pe = Z.reduce((He, At, Ct) => At != null && !Ui(o, At, v) ? Ct : He, -1), Ne = Z[k8e({
|
|
30976
30976
|
current: Z.map((He) => He != null ? o.current[He] : null)
|
|
30977
30977
|
}, {
|
|
30978
30978
|
event: ve,
|
|
@@ -30986,7 +30986,7 @@ function _7e(e, t) {
|
|
|
30986
30986
|
minIndex: se,
|
|
30987
30987
|
maxIndex: pe,
|
|
30988
30988
|
prevIndex: _8e(
|
|
30989
|
-
|
|
30989
|
+
L.current > Ye ? xe : L.current,
|
|
30990
30990
|
q,
|
|
30991
30991
|
Z,
|
|
30992
30992
|
x,
|
|
@@ -30997,29 +30997,29 @@ function _7e(e, t) {
|
|
|
30997
30997
|
),
|
|
30998
30998
|
stopEvent: !0
|
|
30999
30999
|
})];
|
|
31000
|
-
if (Ne != null && (
|
|
31000
|
+
if (Ne != null && (L.current = Ne, R()), M === "both")
|
|
31001
31001
|
return;
|
|
31002
31002
|
}
|
|
31003
31003
|
if (gi(ve.key, M)) {
|
|
31004
31004
|
if (fn(ve), n && !y && Ua(ve.currentTarget.ownerDocument) === ve.currentTarget) {
|
|
31005
|
-
|
|
31005
|
+
L.current = ws(ve.key, M, f) ? xe : Ye, R();
|
|
31006
31006
|
return;
|
|
31007
31007
|
}
|
|
31008
|
-
ws(ve.key, M, f) ? m ?
|
|
31008
|
+
ws(ve.key, M, f) ? m ? L.current = Fe >= Ye ? p && Fe !== o.current.length ? -1 : xe : $t(o, {
|
|
31009
31009
|
startingIndex: Fe,
|
|
31010
31010
|
disabledIndices: v
|
|
31011
|
-
}) :
|
|
31011
|
+
}) : L.current = Math.min(Ye, $t(o, {
|
|
31012
31012
|
startingIndex: Fe,
|
|
31013
31013
|
disabledIndices: v
|
|
31014
|
-
})) : m ?
|
|
31014
|
+
})) : m ? L.current = Fe <= xe ? p && Fe !== -1 ? o.current.length : Ye : $t(o, {
|
|
31015
31015
|
startingIndex: Fe,
|
|
31016
31016
|
decrement: !0,
|
|
31017
31017
|
disabledIndices: v
|
|
31018
|
-
}) :
|
|
31018
|
+
}) : L.current = Math.max(xe, $t(o, {
|
|
31019
31019
|
startingIndex: Fe,
|
|
31020
31020
|
decrement: !0,
|
|
31021
31021
|
disabledIndices: v
|
|
31022
|
-
})), Da(o,
|
|
31022
|
+
})), Da(o, L.current) && (L.current = -1), R();
|
|
31023
31023
|
}
|
|
31024
31024
|
}), Ce = te.useMemo(() => y && n && Se && {
|
|
31025
31025
|
"aria-activedescendant": Xe || ne
|
|
@@ -31068,14 +31068,14 @@ function _7e(e, t) {
|
|
|
31068
31068
|
K.current = h && wt ? null : xe.key;
|
|
31069
31069
|
}
|
|
31070
31070
|
if (h) {
|
|
31071
|
-
Ne && (fn(xe), n ? (
|
|
31071
|
+
Ne && (fn(xe), n ? (L.current = hs(o, be.current), R()) : r(!0, xe.nativeEvent, "list-navigation"));
|
|
31072
31072
|
return;
|
|
31073
31073
|
}
|
|
31074
|
-
He && (d != null && (
|
|
31074
|
+
He && (d != null && (L.current = d), fn(xe), !n && k ? r(!0, xe.nativeEvent, "list-navigation") : de(xe), n && R());
|
|
31075
31075
|
}
|
|
31076
31076
|
},
|
|
31077
31077
|
onFocus() {
|
|
31078
|
-
n && !y && (
|
|
31078
|
+
n && !y && (L.current = -1, R());
|
|
31079
31079
|
},
|
|
31080
31080
|
onPointerDown: Fe,
|
|
31081
31081
|
onPointerEnter: Fe,
|
|
@@ -34540,24 +34540,30 @@ const O_e = up(null), L_e = ({ children: e }) => {
|
|
|
34540
34540
|
...Object.keys(M).length > 0 && { extraHeaders: M }
|
|
34541
34541
|
});
|
|
34542
34542
|
l(C);
|
|
34543
|
-
const
|
|
34543
|
+
const D = () => {
|
|
34544
34544
|
d(C.id), t.transport instanceof ia && t.transport.setSocketId(C.id);
|
|
34545
34545
|
}, W = () => {
|
|
34546
34546
|
d(void 0), t.transport instanceof ia && t.transport.setSocketId(void 0);
|
|
34547
34547
|
}, Y = (R) => {
|
|
34548
34548
|
R.contextKey === p.current && m.current(R);
|
|
34549
34549
|
}, J = (R) => {
|
|
34550
|
-
const B = t.store.getState(), P = et(B, R.chat),
|
|
34551
|
-
if (
|
|
34550
|
+
const B = t.store.getState(), P = et(B, R.chat), L = P.messages.findIndex((K) => K.id === R.id);
|
|
34551
|
+
if (L >= 0) {
|
|
34552
34552
|
const K = [...P.messages];
|
|
34553
|
-
K[
|
|
34553
|
+
K[L] = { ...P.messages[L], ...R }, h.current(R.chat, {
|
|
34554
|
+
...P,
|
|
34555
|
+
messages: K
|
|
34556
|
+
});
|
|
34554
34557
|
return;
|
|
34555
34558
|
}
|
|
34556
|
-
h.current(R.chat, {
|
|
34559
|
+
h.current(R.chat, {
|
|
34560
|
+
...P,
|
|
34561
|
+
messages: [...P.messages, R]
|
|
34562
|
+
});
|
|
34557
34563
|
}, G = (R) => {
|
|
34558
34564
|
m.current(R);
|
|
34559
34565
|
};
|
|
34560
|
-
return C.on("connect",
|
|
34566
|
+
return C.on("connect", D), C.on("disconnect", W), C.on("connect_error", (R) => {
|
|
34561
34567
|
console.error("Socket.IO connection error:", R.message);
|
|
34562
34568
|
}), C.on(ls.ChatNew, Y), C.on(ls.MessageNew, J), C.on(ls.ChatUpdate, G), () => {
|
|
34563
34569
|
t.transport instanceof ia && t.transport.setSocketId(void 0), d(void 0), l(null), C.disconnect();
|
|
@@ -35011,7 +35017,7 @@ const O_e = up(null), L_e = ({ children: e }) => {
|
|
|
35011
35017
|
commitPendingAssistant: k,
|
|
35012
35018
|
setPageContextDismissed: v
|
|
35013
35019
|
} = Ee((P) => {
|
|
35014
|
-
const
|
|
35020
|
+
const L = P.activeChatId ?? P.draftChatKey, K = et(P, L);
|
|
35015
35021
|
return {
|
|
35016
35022
|
composer: P.composer,
|
|
35017
35023
|
contextKey: P.contextKey,
|
|
@@ -35032,16 +35038,16 @@ const O_e = up(null), L_e = ({ children: e }) => {
|
|
|
35032
35038
|
setPageContextDismissed: P.setPageContextDismissed
|
|
35033
35039
|
};
|
|
35034
35040
|
}), M = ut((P) => !P || P.length === 0 ? !1 : P.some(
|
|
35035
|
-
(
|
|
35036
|
-
), []), S = it(!1), x = it(!1), z = it(void 0), H = it(/* @__PURE__ */ new Set()), C = i ?? o,
|
|
35037
|
-
async (P,
|
|
35041
|
+
(L) => L.type === It.Context && L?.metadata?.kind === "pageContext"
|
|
35042
|
+
), []), S = it(!1), x = it(!1), z = it(void 0), H = it(/* @__PURE__ */ new Set()), C = i ?? o, D = ut(
|
|
35043
|
+
async (P, L) => {
|
|
35038
35044
|
if (!n.transport.generateTitle)
|
|
35039
35045
|
return;
|
|
35040
35046
|
const K = n.config.features?.titleGeneration === "llm" ? "llm" : "local";
|
|
35041
35047
|
let A;
|
|
35042
35048
|
try {
|
|
35043
35049
|
A = await n.transport.generateTitle({
|
|
35044
|
-
userId:
|
|
35050
|
+
userId: L,
|
|
35045
35051
|
content: P,
|
|
35046
35052
|
strategy: K,
|
|
35047
35053
|
contextKey: a
|
|
@@ -35052,14 +35058,14 @@ const O_e = up(null), L_e = ({ children: e }) => {
|
|
|
35052
35058
|
},
|
|
35053
35059
|
[n.transport, n.config.features?.titleGeneration, a]
|
|
35054
35060
|
), W = ut(
|
|
35055
|
-
async (P,
|
|
35061
|
+
async (P, L) => {
|
|
35056
35062
|
const K = n.config.user?.id ?? "guest", A = !i, Q = i ?? o, ee = { current: Q };
|
|
35057
35063
|
z.current = Q;
|
|
35058
|
-
const O = { value: P, attachments:
|
|
35064
|
+
const O = { value: P, attachments: L ?? [] };
|
|
35059
35065
|
m(ee.current, void 0);
|
|
35060
35066
|
let ue;
|
|
35061
35067
|
if (A) {
|
|
35062
|
-
const _e = await
|
|
35068
|
+
const _e = await D(P, K);
|
|
35063
35069
|
_e && _e.trim().length > 0 && (ue = { ...ue ?? {}, title: _e });
|
|
35064
35070
|
}
|
|
35065
35071
|
const be = (i ? n.store.getState().chats[i] : void 0)?.model, Ie = r.model !== be;
|
|
@@ -35072,7 +35078,7 @@ const O_e = up(null), L_e = ({ children: e }) => {
|
|
|
35072
35078
|
contextKey: a,
|
|
35073
35079
|
...A ? {} : { chatId: i },
|
|
35074
35080
|
...Ue ? { model: De ?? "" } : {},
|
|
35075
|
-
...
|
|
35081
|
+
...L && L.length > 0 ? { attachments: L } : {}
|
|
35076
35082
|
}, we = () => {
|
|
35077
35083
|
y(ee.current, void 0);
|
|
35078
35084
|
}, Xe = (_e) => {
|
|
@@ -35157,7 +35163,7 @@ const O_e = up(null), L_e = ({ children: e }) => {
|
|
|
35157
35163
|
p,
|
|
35158
35164
|
y,
|
|
35159
35165
|
d,
|
|
35160
|
-
|
|
35166
|
+
D,
|
|
35161
35167
|
e,
|
|
35162
35168
|
h,
|
|
35163
35169
|
t,
|
|
@@ -35181,11 +35187,11 @@ const O_e = up(null), L_e = ({ children: e }) => {
|
|
|
35181
35187
|
async (P) => {
|
|
35182
35188
|
if (x.current)
|
|
35183
35189
|
return;
|
|
35184
|
-
const
|
|
35185
|
-
if (
|
|
35190
|
+
const L = s.find((K) => K.id === P);
|
|
35191
|
+
if (L) {
|
|
35186
35192
|
S.current = !1, x.current = !0, f(C, P);
|
|
35187
35193
|
try {
|
|
35188
|
-
await W(
|
|
35194
|
+
await W(L.content, L.attachments);
|
|
35189
35195
|
} finally {
|
|
35190
35196
|
x.current = !1;
|
|
35191
35197
|
}
|
|
@@ -35587,7 +35593,7 @@ const cwe = ({
|
|
|
35587
35593
|
}, [p, l, t, P]), Je(() => {
|
|
35588
35594
|
p && f(P.length > 0 ? 0 : null);
|
|
35589
35595
|
}, [y, P.length, p]);
|
|
35590
|
-
const
|
|
35596
|
+
const L = (Q) => P.length === 0 ? null : Q < 0 ? P.length - 1 : Q >= P.length ? 0 : Q, K = (Q) => {
|
|
35591
35597
|
Q != null && _.current[Q]?.scrollIntoView({ block: "nearest" });
|
|
35592
35598
|
}, A = (Q) => {
|
|
35593
35599
|
n(Q), m(!1), f(null), w("");
|
|
@@ -35641,7 +35647,7 @@ const cwe = ({
|
|
|
35641
35647
|
}
|
|
35642
35648
|
if (Q.key === "ArrowDown" || Q.key === "ArrowUp") {
|
|
35643
35649
|
Q.preventDefault();
|
|
35644
|
-
const ee = Q.key === "ArrowDown" ? 1 : -1, O = h ?? (ee > 0 ? -1 : 0), ue =
|
|
35650
|
+
const ee = Q.key === "ArrowDown" ? 1 : -1, O = h ?? (ee > 0 ? -1 : 0), ue = L(O + ee);
|
|
35645
35651
|
f(ue), K(ue);
|
|
35646
35652
|
return;
|
|
35647
35653
|
}
|
|
@@ -35876,7 +35882,7 @@ const fwe = () => {
|
|
|
35876
35882
|
] });
|
|
35877
35883
|
}, ywe = vo(
|
|
35878
35884
|
({ autoFocus: e, activeChatId: t, status: n, onStop: r, onSubmit: a }, i) => {
|
|
35879
|
-
const o = In(), s = rt(), l = it(null), u = it(null), d = Ee((ne) => ne.activeChatId ?? ne.draftChatKey), p = Ee((ne) => et(ne, d).composerDraft), m = Ee((ne) => et(ne, d).composerError), h = Ee((ne) => et(ne, d).pageContextDismissed), f = Ee((ne) => ne.setComposerValue), y = Ee((ne) => ne.setComposerDraft), w = Ee((ne) => ne.clearComposerDraft), _ = Ee((ne) => ne.setComposerError), k = Ee((ne) => ne.addComposerAttachments), v = Ee((ne) => ne.removeComposerAttachment), M = Ee((ne) => ne.setPageContextDismissed), S = p.value, x = p.attachments, [z, H] = pt(/* @__PURE__ */ new Map()), [C,
|
|
35885
|
+
const o = In(), s = rt(), l = it(null), u = it(null), d = Ee((ne) => ne.activeChatId ?? ne.draftChatKey), p = Ee((ne) => et(ne, d).composerDraft), m = Ee((ne) => et(ne, d).composerError), h = Ee((ne) => et(ne, d).pageContextDismissed), f = Ee((ne) => ne.setComposerValue), y = Ee((ne) => ne.setComposerDraft), w = Ee((ne) => ne.clearComposerDraft), _ = Ee((ne) => ne.setComposerError), k = Ee((ne) => ne.addComposerAttachments), v = Ee((ne) => ne.removeComposerAttachment), M = Ee((ne) => ne.setPageContextDismissed), S = p.value, x = p.attachments, [z, H] = pt(/* @__PURE__ */ new Map()), [C, D] = pt(/* @__PURE__ */ new Map()), W = it(S), Y = it(x), J = it(h), G = s.config.features?.pageContextAttachments !== !1, R = (ne) => ne.type === It.Context && ne?.metadata?.kind === "pageContext", B = x.some(R), P = () => {
|
|
35880
35886
|
if (G)
|
|
35881
35887
|
return s.buildPageContextAttachment();
|
|
35882
35888
|
};
|
|
@@ -35920,12 +35926,12 @@ const fwe = () => {
|
|
|
35920
35926
|
const ne = l.current;
|
|
35921
35927
|
ne && (ne.style.height = "auto", ne.style.height = `${Math.min(ne.scrollHeight, 200)}px`);
|
|
35922
35928
|
}, [S]);
|
|
35923
|
-
const
|
|
35929
|
+
const L = async (ne) => {
|
|
35924
35930
|
if (!ne || ne.length === 0)
|
|
35925
35931
|
return;
|
|
35926
35932
|
const we = Array.from(ne), Xe = Q_e(), Qe = X_e(we, x, Xe);
|
|
35927
35933
|
if (Qe) {
|
|
35928
|
-
|
|
35934
|
+
D((_e) => {
|
|
35929
35935
|
const Se = new Map(_e);
|
|
35930
35936
|
return we.forEach((ke) => {
|
|
35931
35937
|
Se.set(ke.name, Qe.message);
|
|
@@ -35933,7 +35939,7 @@ const fwe = () => {
|
|
|
35933
35939
|
});
|
|
35934
35940
|
return;
|
|
35935
35941
|
}
|
|
35936
|
-
|
|
35942
|
+
D((_e) => {
|
|
35937
35943
|
const Se = new Map(_e);
|
|
35938
35944
|
return we.forEach((ke) => Se.delete(ke.name)), Se;
|
|
35939
35945
|
});
|
|
@@ -35965,7 +35971,7 @@ const fwe = () => {
|
|
|
35965
35971
|
}, 2e3);
|
|
35966
35972
|
} catch (_e) {
|
|
35967
35973
|
const Se = _e instanceof Error ? _e.message : "Failed to upload files";
|
|
35968
|
-
|
|
35974
|
+
D((ke) => {
|
|
35969
35975
|
const qe = new Map(ke);
|
|
35970
35976
|
return we.forEach((de) => {
|
|
35971
35977
|
qe.set(de.name, Se);
|
|
@@ -35988,7 +35994,7 @@ const fwe = () => {
|
|
|
35988
35994
|
};
|
|
35989
35995
|
return k(d, [Qe]), !0;
|
|
35990
35996
|
}, Q = async (ne) => {
|
|
35991
|
-
await
|
|
35997
|
+
await L(ne.target.files), ne.target.value = "";
|
|
35992
35998
|
}, ee = (ne) => {
|
|
35993
35999
|
const we = x.find((Xe) => Xe.id === ne);
|
|
35994
36000
|
we && R(we) && M(d, !0), v(d, ne);
|
|
@@ -36344,8 +36350,8 @@ const kwe = (e, t) => {
|
|
|
36344
36350
|
userId: w
|
|
36345
36351
|
}, C = await a.transport.streamMessage(
|
|
36346
36352
|
H,
|
|
36347
|
-
(
|
|
36348
|
-
|
|
36353
|
+
(D) => {
|
|
36354
|
+
D.type === Nn.Message && D.message && i(n, [D.message]);
|
|
36349
36355
|
},
|
|
36350
36356
|
{ streamKey: n }
|
|
36351
36357
|
);
|
|
@@ -38499,18 +38505,18 @@ function Kxe(e) {
|
|
|
38499
38505
|
)
|
|
38500
38506
|
return;
|
|
38501
38507
|
const z = t.events.length;
|
|
38502
|
-
let H = z, C,
|
|
38508
|
+
let H = z, C, D;
|
|
38503
38509
|
for (; H--; )
|
|
38504
38510
|
if (t.events[H][0] === "exit" && t.events[H][1].type === "chunkFlow") {
|
|
38505
38511
|
if (C) {
|
|
38506
|
-
|
|
38512
|
+
D = t.events[H][1].end;
|
|
38507
38513
|
break;
|
|
38508
38514
|
}
|
|
38509
38515
|
C = !0;
|
|
38510
38516
|
}
|
|
38511
38517
|
for (_(r), x = z; x < t.events.length; )
|
|
38512
38518
|
t.events[x][1].end = {
|
|
38513
|
-
...
|
|
38519
|
+
...D
|
|
38514
38520
|
}, x++;
|
|
38515
38521
|
un(t.events, H + 1, 0, t.events.slice(z)), t.events.length = x;
|
|
38516
38522
|
}
|
|
@@ -38810,8 +38816,8 @@ function o9e(e, t, n) {
|
|
|
38810
38816
|
}
|
|
38811
38817
|
function S(x, z, H) {
|
|
38812
38818
|
let C = 0;
|
|
38813
|
-
return
|
|
38814
|
-
function
|
|
38819
|
+
return D;
|
|
38820
|
+
function D(R) {
|
|
38815
38821
|
return x.enter("lineEnding"), x.consume(R), x.exit("lineEnding"), W;
|
|
38816
38822
|
}
|
|
38817
38823
|
function W(R) {
|
|
@@ -39503,10 +39509,10 @@ function $9e(e, t, n) {
|
|
|
39503
39509
|
return O === 62 ? (e.consume(O), r.interrupt ? t : Y) : n(O);
|
|
39504
39510
|
}
|
|
39505
39511
|
function k(O) {
|
|
39506
|
-
return Pe(O) ? (e.consume(O), k) :
|
|
39512
|
+
return Pe(O) ? (e.consume(O), k) : D(O);
|
|
39507
39513
|
}
|
|
39508
39514
|
function v(O) {
|
|
39509
|
-
return O === 47 ? (e.consume(O),
|
|
39515
|
+
return O === 47 ? (e.consume(O), D) : O === 58 || O === 95 || Gt(O) ? (e.consume(O), M) : Pe(O) ? (e.consume(O), v) : D(O);
|
|
39510
39516
|
}
|
|
39511
39517
|
function M(O) {
|
|
39512
39518
|
return O === 45 || O === 46 || O === 58 || O === 95 || Ft(O) ? (e.consume(O), M) : S(O);
|
|
@@ -39526,7 +39532,7 @@ function $9e(e, t, n) {
|
|
|
39526
39532
|
function C(O) {
|
|
39527
39533
|
return O === 47 || O === 62 || Pe(O) ? v(O) : n(O);
|
|
39528
39534
|
}
|
|
39529
|
-
function
|
|
39535
|
+
function D(O) {
|
|
39530
39536
|
return O === 62 ? (e.consume(O), W) : n(O);
|
|
39531
39537
|
}
|
|
39532
39538
|
function W(O) {
|
|
@@ -39548,14 +39554,14 @@ function $9e(e, t, n) {
|
|
|
39548
39554
|
return O === 45 ? (e.consume(O), A) : Y(O);
|
|
39549
39555
|
}
|
|
39550
39556
|
function P(O) {
|
|
39551
|
-
return O === 47 ? (e.consume(O), o = "",
|
|
39557
|
+
return O === 47 ? (e.consume(O), o = "", L) : Y(O);
|
|
39552
39558
|
}
|
|
39553
|
-
function
|
|
39559
|
+
function L(O) {
|
|
39554
39560
|
if (O === 62) {
|
|
39555
39561
|
const ue = o.toLowerCase();
|
|
39556
39562
|
return _m.includes(ue) ? (e.consume(O), Q) : Y(O);
|
|
39557
39563
|
}
|
|
39558
|
-
return Gt(O) && o.length < 8 ? (e.consume(O), o += String.fromCharCode(O),
|
|
39564
|
+
return Gt(O) && o.length < 8 ? (e.consume(O), o += String.fromCharCode(O), L) : Y(O);
|
|
39559
39565
|
}
|
|
39560
39566
|
function K(O) {
|
|
39561
39567
|
return O === 93 ? (e.consume(O), A) : Y(O);
|
|
@@ -39650,10 +39656,10 @@ function q9e(e, t, n) {
|
|
|
39650
39656
|
return A === 45 || Ft(A) ? (e.consume(A), H) : A === 47 || A === 62 || Ke(A) ? C(A) : n(A);
|
|
39651
39657
|
}
|
|
39652
39658
|
function C(A) {
|
|
39653
|
-
return A === 47 ? (e.consume(A), B) : A === 58 || A === 95 || Gt(A) ? (e.consume(A),
|
|
39659
|
+
return A === 47 ? (e.consume(A), B) : A === 58 || A === 95 || Gt(A) ? (e.consume(A), D) : he(A) ? (o = C, P(A)) : Pe(A) ? (e.consume(A), C) : B(A);
|
|
39654
39660
|
}
|
|
39655
|
-
function
|
|
39656
|
-
return A === 45 || A === 46 || A === 58 || A === 95 || Ft(A) ? (e.consume(A),
|
|
39661
|
+
function D(A) {
|
|
39662
|
+
return A === 45 || A === 46 || A === 58 || A === 95 || Ft(A) ? (e.consume(A), D) : W(A);
|
|
39657
39663
|
}
|
|
39658
39664
|
function W(A) {
|
|
39659
39665
|
return A === 61 ? (e.consume(A), Y) : he(A) ? (o = W, P(A)) : Pe(A) ? (e.consume(A), W) : C(A);
|
|
@@ -39674,9 +39680,9 @@ function q9e(e, t, n) {
|
|
|
39674
39680
|
return A === 62 ? (e.consume(A), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(A);
|
|
39675
39681
|
}
|
|
39676
39682
|
function P(A) {
|
|
39677
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"),
|
|
39683
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"), L;
|
|
39678
39684
|
}
|
|
39679
|
-
function
|
|
39685
|
+
function L(A) {
|
|
39680
39686
|
return Pe(A) ? Le(e, K, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(A) : K(A);
|
|
39681
39687
|
}
|
|
39682
39688
|
function K(A) {
|
|
@@ -40264,7 +40270,7 @@ function NEe(e, t, n) {
|
|
|
40264
40270
|
};
|
|
40265
40271
|
}
|
|
40266
40272
|
function y(W) {
|
|
40267
|
-
a[W.line] = W.column,
|
|
40273
|
+
a[W.line] = W.column, D();
|
|
40268
40274
|
}
|
|
40269
40275
|
function w() {
|
|
40270
40276
|
let W;
|
|
@@ -40281,7 +40287,7 @@ function NEe(e, t, n) {
|
|
|
40281
40287
|
d = d(W);
|
|
40282
40288
|
}
|
|
40283
40289
|
function k(W) {
|
|
40284
|
-
he(W) ? (r.line++, r.column = 1, r.offset += W === -3 ? 2 : 1,
|
|
40290
|
+
he(W) ? (r.line++, r.column = 1, r.offset += W === -3 ? 2 : 1, D()) : W !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
40285
40291
|
// strings.
|
|
40286
40292
|
/** @type {string} */
|
|
40287
40293
|
o[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = W;
|
|
@@ -40303,7 +40309,7 @@ function NEe(e, t, n) {
|
|
|
40303
40309
|
function z(W, Y) {
|
|
40304
40310
|
return J;
|
|
40305
40311
|
function J(G, R, B) {
|
|
40306
|
-
let P,
|
|
40312
|
+
let P, L, K, A;
|
|
40307
40313
|
return Array.isArray(G) ? (
|
|
40308
40314
|
/* c8 ignore next 1 */
|
|
40309
40315
|
ee(G)
|
|
@@ -40327,7 +40333,7 @@ function NEe(e, t, n) {
|
|
|
40327
40333
|
}
|
|
40328
40334
|
}
|
|
40329
40335
|
function ee(be) {
|
|
40330
|
-
return P = be,
|
|
40336
|
+
return P = be, L = 0, be.length === 0 ? B : O(be[L]);
|
|
40331
40337
|
}
|
|
40332
40338
|
function O(be) {
|
|
40333
40339
|
return Ie;
|
|
@@ -40347,7 +40353,7 @@ function NEe(e, t, n) {
|
|
|
40347
40353
|
return W(K, A), R;
|
|
40348
40354
|
}
|
|
40349
40355
|
function ge(be) {
|
|
40350
|
-
return A.restore(), ++
|
|
40356
|
+
return A.restore(), ++L < P.length ? O(P[L]) : B;
|
|
40351
40357
|
}
|
|
40352
40358
|
}
|
|
40353
40359
|
}
|
|
@@ -40361,10 +40367,10 @@ function NEe(e, t, n) {
|
|
|
40361
40367
|
restore: B
|
|
40362
40368
|
};
|
|
40363
40369
|
function B() {
|
|
40364
|
-
r = W, u.previous = Y, u.currentConstruct = J, u.events.length = G, s = R,
|
|
40370
|
+
r = W, u.previous = Y, u.currentConstruct = J, u.events.length = G, s = R, D();
|
|
40365
40371
|
}
|
|
40366
40372
|
}
|
|
40367
|
-
function
|
|
40373
|
+
function D() {
|
|
40368
40374
|
r.line in a && r.column < 2 && (r.column = a[r.line], r.offset += a[r.line] - 1);
|
|
40369
40375
|
}
|
|
40370
40376
|
}
|
|
@@ -40559,7 +40565,7 @@ function zEe(e) {
|
|
|
40559
40565
|
autolinkEmail: Ue,
|
|
40560
40566
|
autolinkProtocol: De,
|
|
40561
40567
|
blockQuote: l(),
|
|
40562
|
-
characterEscapeValue:
|
|
40568
|
+
characterEscapeValue: D,
|
|
40563
40569
|
characterReferenceMarkerHexadecimal: ge,
|
|
40564
40570
|
characterReferenceMarkerNumeric: ge,
|
|
40565
40571
|
characterReferenceValue: be,
|
|
@@ -40568,11 +40574,11 @@ function zEe(e) {
|
|
|
40568
40574
|
codeFencedFence: y,
|
|
40569
40575
|
codeFencedFenceInfo: h,
|
|
40570
40576
|
codeFencedFenceMeta: f,
|
|
40571
|
-
codeFlowValue:
|
|
40577
|
+
codeFlowValue: D,
|
|
40572
40578
|
codeIndented: l(_),
|
|
40573
40579
|
codeText: l(R),
|
|
40574
|
-
codeTextData:
|
|
40575
|
-
data:
|
|
40580
|
+
codeTextData: D,
|
|
40581
|
+
data: D,
|
|
40576
40582
|
definition: l(),
|
|
40577
40583
|
definitionDestinationString: M,
|
|
40578
40584
|
definitionLabelString: k,
|
|
@@ -40581,12 +40587,12 @@ function zEe(e) {
|
|
|
40581
40587
|
hardBreakEscape: l(Y),
|
|
40582
40588
|
hardBreakTrailing: l(Y),
|
|
40583
40589
|
htmlFlow: l(J),
|
|
40584
|
-
htmlFlowData:
|
|
40590
|
+
htmlFlowData: D,
|
|
40585
40591
|
htmlText: l(G),
|
|
40586
|
-
htmlTextData:
|
|
40592
|
+
htmlTextData: D,
|
|
40587
40593
|
image: l(P),
|
|
40588
40594
|
label: K,
|
|
40589
|
-
labelText:
|
|
40595
|
+
labelText: L,
|
|
40590
40596
|
lineEnding: W,
|
|
40591
40597
|
link: l(B),
|
|
40592
40598
|
listItem: l(),
|
|
@@ -40813,7 +40819,7 @@ function zEe(e) {
|
|
|
40813
40819
|
end: void 0
|
|
40814
40820
|
}, se.push(pe)), this.stack.push(pe);
|
|
40815
40821
|
}
|
|
40816
|
-
function
|
|
40822
|
+
function D(q) {
|
|
40817
40823
|
const Z = this.stack.pop();
|
|
40818
40824
|
Z.value += this.sliceSerialize(q), Z.position.end = hr(q.end);
|
|
40819
40825
|
}
|
|
@@ -40824,7 +40830,7 @@ function zEe(e) {
|
|
|
40824
40830
|
se.position.end = hr(q.end), this.data.atHardBreak = void 0;
|
|
40825
40831
|
return;
|
|
40826
40832
|
}
|
|
40827
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(Z.type) && (C.call(this, q),
|
|
40833
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(Z.type) && (C.call(this, q), D.call(this, q));
|
|
40828
40834
|
}
|
|
40829
40835
|
function Y() {
|
|
40830
40836
|
this.data.atHardBreak = !0;
|
|
@@ -40859,7 +40865,7 @@ function zEe(e) {
|
|
|
40859
40865
|
delete q.identifier, delete q.label;
|
|
40860
40866
|
this.data.referenceType = void 0;
|
|
40861
40867
|
}
|
|
40862
|
-
function
|
|
40868
|
+
function L(q) {
|
|
40863
40869
|
const Z = this.sliceSerialize(q), se = this.stack[this.stack.length - 2];
|
|
40864
40870
|
se.label = LEe(Z), se.identifier = Cn(Z).toLowerCase();
|
|
40865
40871
|
}
|
|
@@ -40904,12 +40910,12 @@ function zEe(e) {
|
|
|
40904
40910
|
Z.position.end = hr(q.end);
|
|
40905
40911
|
}
|
|
40906
40912
|
function De(q) {
|
|
40907
|
-
|
|
40913
|
+
D.call(this, q);
|
|
40908
40914
|
const Z = this.stack[this.stack.length - 1];
|
|
40909
40915
|
Z.url = this.sliceSerialize(q);
|
|
40910
40916
|
}
|
|
40911
40917
|
function Ue(q) {
|
|
40912
|
-
|
|
40918
|
+
D.call(this, q);
|
|
40913
40919
|
const Z = this.stack[this.stack.length - 1];
|
|
40914
40920
|
Z.url = "mailto:" + this.sliceSerialize(q);
|
|
40915
40921
|
}
|
|
@@ -44972,7 +44978,7 @@ function nAe(e, t, n) {
|
|
|
44972
44978
|
const r = this;
|
|
44973
44979
|
let a = 0, i = 0, o;
|
|
44974
44980
|
return s;
|
|
44975
|
-
function s(
|
|
44981
|
+
function s(D) {
|
|
44976
44982
|
let W = r.events.length - 1;
|
|
44977
44983
|
for (; W > -1; ) {
|
|
44978
44984
|
const G = r.events[W][1].type;
|
|
@@ -44983,61 +44989,61 @@ function nAe(e, t, n) {
|
|
|
44983
44989
|
break;
|
|
44984
44990
|
}
|
|
44985
44991
|
const Y = W > -1 ? r.events[W][1].type : null, J = Y === "tableHead" || Y === "tableRow" ? x : l;
|
|
44986
|
-
return J === x && r.parser.lazy[r.now().line] ? n(
|
|
44992
|
+
return J === x && r.parser.lazy[r.now().line] ? n(D) : J(D);
|
|
44987
44993
|
}
|
|
44988
|
-
function l(
|
|
44989
|
-
return e.enter("tableHead"), e.enter("tableRow"), u(
|
|
44994
|
+
function l(D) {
|
|
44995
|
+
return e.enter("tableHead"), e.enter("tableRow"), u(D);
|
|
44990
44996
|
}
|
|
44991
|
-
function u(
|
|
44992
|
-
return
|
|
44997
|
+
function u(D) {
|
|
44998
|
+
return D === 124 || (o = !0, i += 1), d(D);
|
|
44993
44999
|
}
|
|
44994
|
-
function d(
|
|
44995
|
-
return
|
|
45000
|
+
function d(D) {
|
|
45001
|
+
return D === null ? n(D) : he(D) ? i > 1 ? (i = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(D), e.exit("lineEnding"), h) : n(D) : Pe(D) ? Le(e, d, "whitespace")(D) : (i += 1, o && (o = !1, a += 1), D === 124 ? (e.enter("tableCellDivider"), e.consume(D), e.exit("tableCellDivider"), o = !0, d) : (e.enter("data"), p(D)));
|
|
44996
45002
|
}
|
|
44997
|
-
function p(
|
|
44998
|
-
return
|
|
45003
|
+
function p(D) {
|
|
45004
|
+
return D === null || D === 124 || Ke(D) ? (e.exit("data"), d(D)) : (e.consume(D), D === 92 ? m : p);
|
|
44999
45005
|
}
|
|
45000
|
-
function m(
|
|
45001
|
-
return
|
|
45006
|
+
function m(D) {
|
|
45007
|
+
return D === 92 || D === 124 ? (e.consume(D), p) : p(D);
|
|
45002
45008
|
}
|
|
45003
|
-
function h(
|
|
45004
|
-
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(
|
|
45009
|
+
function h(D) {
|
|
45010
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(D) : (e.enter("tableDelimiterRow"), o = !1, Pe(D) ? Le(e, f, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(D) : f(D));
|
|
45005
45011
|
}
|
|
45006
|
-
function f(
|
|
45007
|
-
return
|
|
45012
|
+
function f(D) {
|
|
45013
|
+
return D === 45 || D === 58 ? w(D) : D === 124 ? (o = !0, e.enter("tableCellDivider"), e.consume(D), e.exit("tableCellDivider"), y) : S(D);
|
|
45008
45014
|
}
|
|
45009
|
-
function y(
|
|
45010
|
-
return Pe(
|
|
45015
|
+
function y(D) {
|
|
45016
|
+
return Pe(D) ? Le(e, w, "whitespace")(D) : w(D);
|
|
45011
45017
|
}
|
|
45012
|
-
function w(
|
|
45013
|
-
return
|
|
45018
|
+
function w(D) {
|
|
45019
|
+
return D === 58 ? (i += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(D), e.exit("tableDelimiterMarker"), _) : D === 45 ? (i += 1, _(D)) : D === null || he(D) ? M(D) : S(D);
|
|
45014
45020
|
}
|
|
45015
|
-
function _(
|
|
45016
|
-
return
|
|
45021
|
+
function _(D) {
|
|
45022
|
+
return D === 45 ? (e.enter("tableDelimiterFiller"), k(D)) : S(D);
|
|
45017
45023
|
}
|
|
45018
|
-
function k(
|
|
45019
|
-
return
|
|
45024
|
+
function k(D) {
|
|
45025
|
+
return D === 45 ? (e.consume(D), k) : D === 58 ? (o = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(D), e.exit("tableDelimiterMarker"), v) : (e.exit("tableDelimiterFiller"), v(D));
|
|
45020
45026
|
}
|
|
45021
|
-
function v(
|
|
45022
|
-
return Pe(
|
|
45027
|
+
function v(D) {
|
|
45028
|
+
return Pe(D) ? Le(e, M, "whitespace")(D) : M(D);
|
|
45023
45029
|
}
|
|
45024
|
-
function M(
|
|
45025
|
-
return
|
|
45030
|
+
function M(D) {
|
|
45031
|
+
return D === 124 ? f(D) : D === null || he(D) ? !o || a !== i ? S(D) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(D)) : S(D);
|
|
45026
45032
|
}
|
|
45027
|
-
function S(
|
|
45028
|
-
return n(
|
|
45033
|
+
function S(D) {
|
|
45034
|
+
return n(D);
|
|
45029
45035
|
}
|
|
45030
|
-
function x(
|
|
45031
|
-
return e.enter("tableRow"), z(
|
|
45036
|
+
function x(D) {
|
|
45037
|
+
return e.enter("tableRow"), z(D);
|
|
45032
45038
|
}
|
|
45033
|
-
function z(
|
|
45034
|
-
return
|
|
45039
|
+
function z(D) {
|
|
45040
|
+
return D === 124 ? (e.enter("tableCellDivider"), e.consume(D), e.exit("tableCellDivider"), z) : D === null || he(D) ? (e.exit("tableRow"), t(D)) : Pe(D) ? Le(e, z, "whitespace")(D) : (e.enter("data"), H(D));
|
|
45035
45041
|
}
|
|
45036
|
-
function H(
|
|
45037
|
-
return
|
|
45042
|
+
function H(D) {
|
|
45043
|
+
return D === null || D === 124 || Ke(D) ? (e.exit("data"), z(D)) : (e.consume(D), D === 92 ? C : H);
|
|
45038
45044
|
}
|
|
45039
|
-
function C(
|
|
45040
|
-
return
|
|
45045
|
+
function C(D) {
|
|
45046
|
+
return D === 92 || D === 124 ? (e.consume(D), H) : H(D);
|
|
45041
45047
|
}
|
|
45042
45048
|
}
|
|
45043
45049
|
function rAe(e, t) {
|
|
@@ -50611,8 +50617,8 @@ var v6 = function(t) {
|
|
|
50611
50617
|
} else {
|
|
50612
50618
|
var _ = [], k = NTe[l], [v, M, S] = k, x = S / 1e3, z = v.length, H, C;
|
|
50613
50619
|
if (z === 1) {
|
|
50614
|
-
var
|
|
50615
|
-
H = ["hide-tail"], C = [
|
|
50620
|
+
var D = k[3];
|
|
50621
|
+
H = ["hide-tail"], C = [D];
|
|
50616
50622
|
} else if (z === 2)
|
|
50617
50623
|
H = ["halfarrow-left", "halfarrow-right"], C = ["xMinYMin", "xMaxYMin"];
|
|
50618
50624
|
else if (z === 3)
|
|
@@ -51558,16 +51564,16 @@ var Ra = function(t, n, r) {
|
|
|
51558
51564
|
var x = Ra(l, h, i);
|
|
51559
51565
|
M = x.height + x.depth, S = 2;
|
|
51560
51566
|
}
|
|
51561
|
-
var z = y + v + M, H = Math.max(0, Math.ceil((n - z) / (S * _))), C = z + H * S * _,
|
|
51562
|
-
r && (
|
|
51563
|
-
var W = C / 2 -
|
|
51567
|
+
var z = y + v + M, H = Math.max(0, Math.ceil((n - z) / (S * _))), C = z + H * S * _, D = a.fontMetrics().axisHeight;
|
|
51568
|
+
r && (D *= a.sizeMultiplier);
|
|
51569
|
+
var W = C / 2 - D, Y = [];
|
|
51564
51570
|
if (p.length > 0) {
|
|
51565
|
-
var J = C - y - v, G = Math.round(C * 1e3), R = GAe(p, Math.round(J * 1e3)), B = new Er(p, R), P = (m / 1e3).toFixed(3) + "em",
|
|
51571
|
+
var J = C - y - v, G = Math.round(C * 1e3), R = GAe(p, Math.round(J * 1e3)), B = new Er(p, R), P = (m / 1e3).toFixed(3) + "em", L = (G / 1e3).toFixed(3) + "em", K = new lr([B], {
|
|
51566
51572
|
width: P,
|
|
51567
|
-
height:
|
|
51573
|
+
height: L,
|
|
51568
51574
|
viewBox: "0 0 " + m + " " + G
|
|
51569
51575
|
}), A = X.makeSvgSpan([], [K], a);
|
|
51570
|
-
A.height = G / 1e3, A.style.width = P, A.style.height =
|
|
51576
|
+
A.height = G / 1e3, A.style.width = P, A.style.height = L, Y.push({
|
|
51571
51577
|
type: "elem",
|
|
51572
51578
|
elem: A
|
|
51573
51579
|
});
|
|
@@ -52295,14 +52301,14 @@ var Yn = function(t, n) {
|
|
|
52295
52301
|
var C = Ze(S[a], n);
|
|
52296
52302
|
z < C.depth && (z = C.depth), x < C.height && (x = C.height), H[a] = C;
|
|
52297
52303
|
}
|
|
52298
|
-
var
|
|
52299
|
-
|
|
52304
|
+
var D = t.rowGaps[r], W = 0;
|
|
52305
|
+
D && (W = yt(D, n), W > 0 && (W += k, z < W && (z = W), W = 0)), t.addJot && (z += y), H.height = x, H.depth = z, v += x, H.pos = v, v += z + W, l[r] = H, M(o[r + 1]);
|
|
52300
52306
|
}
|
|
52301
52307
|
var Y = v / 2 + n.fontMetrics().axisHeight, J = t.cols || [], G = [], R, B, P = [];
|
|
52302
52308
|
if (t.tags && t.tags.some((de) => de))
|
|
52303
52309
|
for (r = 0; r < i; ++r) {
|
|
52304
|
-
var
|
|
52305
|
-
A === !0 ? Q = X.makeSpan(["eqn-num"], [], n) : A === !1 ? Q = X.makeSpan([], [], n) : Q = X.makeSpan([], Tt(A, n, !0), n), Q.depth =
|
|
52310
|
+
var L = l[r], K = L.pos - Y, A = t.tags[r], Q = void 0;
|
|
52311
|
+
A === !0 ? Q = X.makeSpan(["eqn-num"], [], n) : A === !1 ? Q = X.makeSpan([], [], n) : Q = X.makeSpan([], Tt(A, n, !0), n), Q.depth = L.depth, Q.height = L.height, P.push({
|
|
52306
52312
|
type: "elem",
|
|
52307
52313
|
elem: Q,
|
|
52308
52314
|
shift: K
|
|
@@ -54573,8 +54579,8 @@ Hr({
|
|
|
54573
54579
|
}, t);
|
|
54574
54580
|
else
|
|
54575
54581
|
throw new Error("supsub must have either sup or sub.");
|
|
54576
|
-
var
|
|
54577
|
-
return X.makeSpan([
|
|
54582
|
+
var D = Qd(o, "right") || "mord";
|
|
54583
|
+
return X.makeSpan([D], [o, X.makeSpan(["msupsub"], [M])], t);
|
|
54578
54584
|
},
|
|
54579
54585
|
mathmlBuilder(e, t) {
|
|
54580
54586
|
var n = !1, r, a;
|
|
@@ -57454,20 +57460,20 @@ function vh(e, t) {
|
|
|
57454
57460
|
break;
|
|
57455
57461
|
H += String.fromCharCode(J), S === "named" && MCe.includes(H) && (x = H, z = Wa(H));
|
|
57456
57462
|
}
|
|
57457
|
-
let
|
|
57458
|
-
if (
|
|
57463
|
+
let D = e.charCodeAt(M) === 59;
|
|
57464
|
+
if (D) {
|
|
57459
57465
|
M++;
|
|
57460
57466
|
const J = S === "named" ? Wa(H) : !1;
|
|
57461
57467
|
J && (x = H, z = J);
|
|
57462
57468
|
}
|
|
57463
57469
|
let W = 1 + M - k, Y = "";
|
|
57464
|
-
if (!(!
|
|
57470
|
+
if (!(!D && n.nonTerminated === !1))
|
|
57465
57471
|
if (!H)
|
|
57466
57472
|
S !== "named" && y(4, W);
|
|
57467
57473
|
else if (S === "named") {
|
|
57468
|
-
if (
|
|
57474
|
+
if (D && !z)
|
|
57469
57475
|
y(5, 1);
|
|
57470
|
-
else if (x !== H && (M = v + x.length, W = 1 + M - v,
|
|
57476
|
+
else if (x !== H && (M = v + x.length, W = 1 + M - v, D = !1), !D) {
|
|
57471
57477
|
const J = x ? 1 : 3;
|
|
57472
57478
|
if (n.attribute) {
|
|
57473
57479
|
const G = e.charCodeAt(M);
|
|
@@ -57477,7 +57483,7 @@ function vh(e, t) {
|
|
|
57477
57483
|
}
|
|
57478
57484
|
Y = z;
|
|
57479
57485
|
} else {
|
|
57480
|
-
|
|
57486
|
+
D || y(2, W);
|
|
57481
57487
|
let J = Number.parseInt(
|
|
57482
57488
|
H,
|
|
57483
57489
|
S === "hexadecimal" ? 16 : 10
|
|
@@ -57829,16 +57835,16 @@ function wh(e, t, n, r, a, i, o, s, l, u, d, p, m, h, f) {
|
|
|
57829
57835
|
return R === 61 ? (e.enter(u), e.consume(R), e.exit(u), H) : (e.exit(i), k(R));
|
|
57830
57836
|
}
|
|
57831
57837
|
function H(R) {
|
|
57832
|
-
return R === null || R === 60 || R === 61 || R === 62 || R === 96 || R === 125 || f && he(R) ? n(R) : R === 34 || R === 39 ? (e.enter(d), e.enter(m), e.consume(R), e.exit(m), w = R,
|
|
57838
|
+
return R === null || R === 60 || R === 61 || R === 62 || R === 96 || R === 125 || f && he(R) ? n(R) : R === 34 || R === 39 ? (e.enter(d), e.enter(m), e.consume(R), e.exit(m), w = R, D) : f && Pe(R) ? Le(e, H, "whitespace")(R) : !f && Ke(R) ? rr(e, H)(R) : (e.enter(p), e.enter(h), e.consume(R), w = void 0, C);
|
|
57833
57839
|
}
|
|
57834
57840
|
function C(R) {
|
|
57835
57841
|
return R === null || R === 34 || R === 39 || R === 60 || R === 61 || R === 62 || R === 96 ? n(R) : R === 125 || Ke(R) ? (e.exit(h), e.exit(p), e.exit(i), k(R)) : (e.consume(R), C);
|
|
57836
57842
|
}
|
|
57837
|
-
function
|
|
57843
|
+
function D(R) {
|
|
57838
57844
|
return R === w ? (e.enter(m), e.consume(R), e.exit(m), e.exit(d), e.exit(i), J) : (e.enter(p), W(R));
|
|
57839
57845
|
}
|
|
57840
57846
|
function W(R) {
|
|
57841
|
-
return R === w ? (e.exit(p),
|
|
57847
|
+
return R === w ? (e.exit(p), D(R)) : R === null ? n(R) : he(R) ? f ? n(R) : rr(e, W)(R) : (e.enter(h), e.consume(R), Y);
|
|
57842
57848
|
}
|
|
57843
57849
|
function Y(R) {
|
|
57844
57850
|
return R === w || R === null || he(R) ? (e.exit(h), W(R)) : (e.consume(R), Y);
|
|
@@ -57938,29 +57944,29 @@ function tRe(e, t, n) {
|
|
|
57938
57944
|
}
|
|
57939
57945
|
function _(C) {
|
|
57940
57946
|
if (C === null) {
|
|
57941
|
-
const
|
|
57942
|
-
return r.parser.lazy[
|
|
57947
|
+
const D = e.exit("chunkDocument");
|
|
57948
|
+
return r.parser.lazy[D.start.line] = !1, x(C);
|
|
57943
57949
|
}
|
|
57944
57950
|
return he(C) ? e.check(Oi, M, S)(C) : (e.consume(C), _);
|
|
57945
57951
|
}
|
|
57946
57952
|
function k(C) {
|
|
57947
|
-
const
|
|
57953
|
+
const D = e.enter("chunkDocument", {
|
|
57948
57954
|
contentType: "document",
|
|
57949
57955
|
previous: s
|
|
57950
57956
|
});
|
|
57951
|
-
return s && (s.next =
|
|
57957
|
+
return s && (s.next = D), s = D, _(C);
|
|
57952
57958
|
}
|
|
57953
57959
|
function v(C) {
|
|
57954
57960
|
return e.enter("directiveContainerContent"), y(C);
|
|
57955
57961
|
}
|
|
57956
57962
|
function M(C) {
|
|
57957
57963
|
e.consume(C);
|
|
57958
|
-
const
|
|
57959
|
-
return r.parser.lazy[
|
|
57964
|
+
const D = e.exit("chunkDocument");
|
|
57965
|
+
return r.parser.lazy[D.start.line] = !1, y;
|
|
57960
57966
|
}
|
|
57961
57967
|
function S(C) {
|
|
57962
|
-
const
|
|
57963
|
-
return r.parser.lazy[
|
|
57968
|
+
const D = e.exit("chunkDocument");
|
|
57969
|
+
return r.parser.lazy[D.start.line] = !1, x(C);
|
|
57964
57970
|
}
|
|
57965
57971
|
function x(C) {
|
|
57966
57972
|
return e.exit("directiveContainerContent"), z(C);
|
|
@@ -57968,7 +57974,7 @@ function tRe(e, t, n) {
|
|
|
57968
57974
|
function z(C) {
|
|
57969
57975
|
return e.exit("directiveContainer"), t(C);
|
|
57970
57976
|
}
|
|
57971
|
-
function H(C,
|
|
57977
|
+
function H(C, D, W) {
|
|
57972
57978
|
let Y = 0;
|
|
57973
57979
|
return Le(C, J, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
57974
57980
|
function J(B) {
|
|
@@ -57978,7 +57984,7 @@ function tRe(e, t, n) {
|
|
|
57978
57984
|
return B === 58 ? (C.consume(B), Y++, G) : Y < o ? W(B) : (C.exit("directiveContainerSequence"), Le(C, R, "whitespace")(B));
|
|
57979
57985
|
}
|
|
57980
57986
|
function R(B) {
|
|
57981
|
-
return B === null || he(B) ? (C.exit("directiveContainerFence"),
|
|
57987
|
+
return B === null || he(B) ? (C.exit("directiveContainerFence"), D(B)) : W(B);
|
|
57982
57988
|
}
|
|
57983
57989
|
}
|
|
57984
57990
|
}
|
|
@@ -62825,9 +62831,9 @@ const Zf = "[A-Za-z$_][0-9A-Za-z$_]*", fIe = [
|
|
|
62825
62831
|
y8
|
|
62826
62832
|
);
|
|
62827
62833
|
function kIe(e) {
|
|
62828
|
-
const t = e.regex, n = (
|
|
62829
|
-
const A = "</" +
|
|
62830
|
-
return
|
|
62834
|
+
const t = e.regex, n = (L, { after: K }) => {
|
|
62835
|
+
const A = "</" + L[0].slice(1);
|
|
62836
|
+
return L.input.indexOf(A, K) !== -1;
|
|
62831
62837
|
}, r = Zf, a = {
|
|
62832
62838
|
begin: "<>",
|
|
62833
62839
|
end: "</>"
|
|
@@ -62838,8 +62844,8 @@ function kIe(e) {
|
|
|
62838
62844
|
* @param {RegExpMatchArray} match
|
|
62839
62845
|
* @param {CallbackResponse} response
|
|
62840
62846
|
*/
|
|
62841
|
-
isTrulyOpeningTag: (
|
|
62842
|
-
const A =
|
|
62847
|
+
isTrulyOpeningTag: (L, K) => {
|
|
62848
|
+
const A = L[0].length + L.index, Q = L.input[A];
|
|
62843
62849
|
if (
|
|
62844
62850
|
// HTML should not include another raw `<` inside a tag
|
|
62845
62851
|
// nested type?
|
|
@@ -62851,9 +62857,9 @@ function kIe(e) {
|
|
|
62851
62857
|
K.ignoreMatch();
|
|
62852
62858
|
return;
|
|
62853
62859
|
}
|
|
62854
|
-
Q === ">" && (n(
|
|
62860
|
+
Q === ">" && (n(L, { after: A }) || K.ignoreMatch());
|
|
62855
62861
|
let ee;
|
|
62856
|
-
const O =
|
|
62862
|
+
const O = L.input.substring(A);
|
|
62857
62863
|
if (ee = O.match(/^\s*=/)) {
|
|
62858
62864
|
K.ignoreMatch();
|
|
62859
62865
|
return;
|
|
@@ -63086,7 +63092,7 @@ function kIe(e) {
|
|
|
63086
63092
|
className: "meta",
|
|
63087
63093
|
relevance: 10,
|
|
63088
63094
|
begin: /^\s*['"]use (strict|asm)['"]/
|
|
63089
|
-
},
|
|
63095
|
+
}, D = {
|
|
63090
63096
|
variants: [
|
|
63091
63097
|
{
|
|
63092
63098
|
match: [
|
|
@@ -63116,8 +63122,8 @@ function kIe(e) {
|
|
|
63116
63122
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
63117
63123
|
className: "variable.constant"
|
|
63118
63124
|
};
|
|
63119
|
-
function Y(
|
|
63120
|
-
return t.concat("(?!",
|
|
63125
|
+
function Y(L) {
|
|
63126
|
+
return t.concat("(?!", L.join("|"), ")");
|
|
63121
63127
|
}
|
|
63122
63128
|
const J = {
|
|
63123
63129
|
match: t.concat(
|
|
@@ -63126,7 +63132,7 @@ function kIe(e) {
|
|
|
63126
63132
|
...b8,
|
|
63127
63133
|
"super",
|
|
63128
63134
|
"import"
|
|
63129
|
-
].map((
|
|
63135
|
+
].map((L) => `${L}\\s*\\(`)),
|
|
63130
63136
|
r,
|
|
63131
63137
|
t.lookahead(/\s*\(/)
|
|
63132
63138
|
),
|
|
@@ -63285,7 +63291,7 @@ function kIe(e) {
|
|
|
63285
63291
|
}
|
|
63286
63292
|
]
|
|
63287
63293
|
},
|
|
63288
|
-
|
|
63294
|
+
D,
|
|
63289
63295
|
{
|
|
63290
63296
|
// prevent this from getting swallowed up by function
|
|
63291
63297
|
// since they appear "function like"
|
|
@@ -65978,7 +65984,7 @@ function $Ie(e) {
|
|
|
65978
65984
|
] }, C = {
|
|
65979
65985
|
scope: "attr",
|
|
65980
65986
|
match: t.concat(r, t.lookahead(":"), t.lookahead(/(?!::)/))
|
|
65981
|
-
},
|
|
65987
|
+
}, D = {
|
|
65982
65988
|
relevance: 0,
|
|
65983
65989
|
begin: /\(/,
|
|
65984
65990
|
end: /\)/,
|
|
@@ -66003,9 +66009,9 @@ function $Ie(e) {
|
|
|
66003
66009
|
t.lookahead(/(?=\()/)
|
|
66004
66010
|
],
|
|
66005
66011
|
scope: { 3: "title.function.invoke" },
|
|
66006
|
-
contains: [
|
|
66012
|
+
contains: [D]
|
|
66007
66013
|
};
|
|
66008
|
-
|
|
66014
|
+
D.contains.push(W);
|
|
66009
66015
|
const Y = [
|
|
66010
66016
|
C,
|
|
66011
66017
|
H,
|
|
@@ -67222,7 +67228,7 @@ function UIe(e) {
|
|
|
67222
67228
|
}
|
|
67223
67229
|
].concat(l, u);
|
|
67224
67230
|
d.contains = x, y.contains = x;
|
|
67225
|
-
const
|
|
67231
|
+
const D = [
|
|
67226
67232
|
{
|
|
67227
67233
|
begin: /^\s*=>/,
|
|
67228
67234
|
starts: {
|
|
@@ -67251,7 +67257,7 @@ function UIe(e) {
|
|
|
67251
67257
|
],
|
|
67252
67258
|
keywords: o,
|
|
67253
67259
|
illegal: /\/\*/,
|
|
67254
|
-
contains: [e.SHEBANG({ binary: "ruby" })].concat(
|
|
67260
|
+
contains: [e.SHEBANG({ binary: "ruby" })].concat(D).concat(u).concat(x)
|
|
67255
67261
|
};
|
|
67256
67262
|
}
|
|
67257
67263
|
function HIe(e) {
|
|
@@ -69549,7 +69555,7 @@ function lOe(e) {
|
|
|
69549
69555
|
H("##"),
|
|
69550
69556
|
H("###")
|
|
69551
69557
|
]
|
|
69552
|
-
},
|
|
69558
|
+
}, D = [
|
|
69553
69559
|
e.BACKSLASH_ESCAPE,
|
|
69554
69560
|
{
|
|
69555
69561
|
begin: /\[/,
|
|
@@ -69560,14 +69566,14 @@ function lOe(e) {
|
|
|
69560
69566
|
], W = {
|
|
69561
69567
|
begin: /\/[^\s](?=[^/\n]*\/)/,
|
|
69562
69568
|
end: /\//,
|
|
69563
|
-
contains:
|
|
69569
|
+
contains: D
|
|
69564
69570
|
}, Y = (ke) => {
|
|
69565
69571
|
const qe = at(ke, /\//), de = at(/\//, ke);
|
|
69566
69572
|
return {
|
|
69567
69573
|
begin: qe,
|
|
69568
69574
|
end: de,
|
|
69569
69575
|
contains: [
|
|
69570
|
-
...
|
|
69576
|
+
...D,
|
|
69571
69577
|
{
|
|
69572
69578
|
scope: "comment",
|
|
69573
69579
|
begin: `#(?!.*${de})`,
|
|
@@ -69593,7 +69599,7 @@ function lOe(e) {
|
|
|
69593
69599
|
G,
|
|
69594
69600
|
R,
|
|
69595
69601
|
B
|
|
69596
|
-
],
|
|
69602
|
+
], L = {
|
|
69597
69603
|
match: /(@|#(un)?)available/,
|
|
69598
69604
|
scope: "keyword",
|
|
69599
69605
|
starts: { contains: [
|
|
@@ -69615,7 +69621,7 @@ function lOe(e) {
|
|
|
69615
69621
|
scope: "meta",
|
|
69616
69622
|
match: at(/@/, Dn)
|
|
69617
69623
|
}, Q = [
|
|
69618
|
-
|
|
69624
|
+
L,
|
|
69619
69625
|
K,
|
|
69620
69626
|
A
|
|
69621
69627
|
], ee = {
|
|
@@ -70038,9 +70044,9 @@ const bo = "[A-Za-z$_][0-9A-Za-z$_]*", M8 = [
|
|
|
70038
70044
|
A8
|
|
70039
70045
|
);
|
|
70040
70046
|
function cOe(e) {
|
|
70041
|
-
const t = e.regex, n = (
|
|
70042
|
-
const A = "</" +
|
|
70043
|
-
return
|
|
70047
|
+
const t = e.regex, n = (L, { after: K }) => {
|
|
70048
|
+
const A = "</" + L[0].slice(1);
|
|
70049
|
+
return L.input.indexOf(A, K) !== -1;
|
|
70044
70050
|
}, r = bo, a = {
|
|
70045
70051
|
begin: "<>",
|
|
70046
70052
|
end: "</>"
|
|
@@ -70051,8 +70057,8 @@ function cOe(e) {
|
|
|
70051
70057
|
* @param {RegExpMatchArray} match
|
|
70052
70058
|
* @param {CallbackResponse} response
|
|
70053
70059
|
*/
|
|
70054
|
-
isTrulyOpeningTag: (
|
|
70055
|
-
const A =
|
|
70060
|
+
isTrulyOpeningTag: (L, K) => {
|
|
70061
|
+
const A = L[0].length + L.index, Q = L.input[A];
|
|
70056
70062
|
if (
|
|
70057
70063
|
// HTML should not include another raw `<` inside a tag
|
|
70058
70064
|
// nested type?
|
|
@@ -70064,9 +70070,9 @@ function cOe(e) {
|
|
|
70064
70070
|
K.ignoreMatch();
|
|
70065
70071
|
return;
|
|
70066
70072
|
}
|
|
70067
|
-
Q === ">" && (n(
|
|
70073
|
+
Q === ">" && (n(L, { after: A }) || K.ignoreMatch());
|
|
70068
70074
|
let ee;
|
|
70069
|
-
const O =
|
|
70075
|
+
const O = L.input.substring(A);
|
|
70070
70076
|
if (ee = O.match(/^\s*=/)) {
|
|
70071
70077
|
K.ignoreMatch();
|
|
70072
70078
|
return;
|
|
@@ -70299,7 +70305,7 @@ function cOe(e) {
|
|
|
70299
70305
|
className: "meta",
|
|
70300
70306
|
relevance: 10,
|
|
70301
70307
|
begin: /^\s*['"]use (strict|asm)['"]/
|
|
70302
|
-
},
|
|
70308
|
+
}, D = {
|
|
70303
70309
|
variants: [
|
|
70304
70310
|
{
|
|
70305
70311
|
match: [
|
|
@@ -70329,8 +70335,8 @@ function cOe(e) {
|
|
|
70329
70335
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
70330
70336
|
className: "variable.constant"
|
|
70331
70337
|
};
|
|
70332
|
-
function Y(
|
|
70333
|
-
return t.concat("(?!",
|
|
70338
|
+
function Y(L) {
|
|
70339
|
+
return t.concat("(?!", L.join("|"), ")");
|
|
70334
70340
|
}
|
|
70335
70341
|
const J = {
|
|
70336
70342
|
match: t.concat(
|
|
@@ -70339,7 +70345,7 @@ function cOe(e) {
|
|
|
70339
70345
|
...T8,
|
|
70340
70346
|
"super",
|
|
70341
70347
|
"import"
|
|
70342
|
-
].map((
|
|
70348
|
+
].map((L) => `${L}\\s*\\(`)),
|
|
70343
70349
|
r,
|
|
70344
70350
|
t.lookahead(/\s*\(/)
|
|
70345
70351
|
),
|
|
@@ -70498,7 +70504,7 @@ function cOe(e) {
|
|
|
70498
70504
|
}
|
|
70499
70505
|
]
|
|
70500
70506
|
},
|
|
70501
|
-
|
|
70507
|
+
D,
|
|
70502
70508
|
{
|
|
70503
70509
|
// prevent this from getting swallowed up by function
|
|
70504
70510
|
// since they appear "function like"
|
|
@@ -71979,26 +71985,26 @@ const hl = O8, ig = br, og = Symbol("nomatch"), sLe = 7, H8 = function(e) {
|
|
|
71979
71985
|
function u(B) {
|
|
71980
71986
|
let P = B.className + " ";
|
|
71981
71987
|
P += B.parentNode ? B.parentNode.className : "";
|
|
71982
|
-
const
|
|
71983
|
-
if (
|
|
71984
|
-
const K = H(
|
|
71985
|
-
return K || (ag(i.replace("{}",
|
|
71988
|
+
const L = s.languageDetectRe.exec(P);
|
|
71989
|
+
if (L) {
|
|
71990
|
+
const K = H(L[1]);
|
|
71991
|
+
return K || (ag(i.replace("{}", L[1])), ag("Falling back to no-highlight mode for this block.", B)), K ? L[1] : "no-highlight";
|
|
71986
71992
|
}
|
|
71987
71993
|
return P.split(/\s+/).find((K) => l(K) || H(K));
|
|
71988
71994
|
}
|
|
71989
|
-
function d(B, P,
|
|
71995
|
+
function d(B, P, L) {
|
|
71990
71996
|
let K = "", A = "";
|
|
71991
|
-
typeof P == "object" ? (K = B,
|
|
71992
|
-
https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P),
|
|
71997
|
+
typeof P == "object" ? (K = B, L = P.ignoreIllegals, A = P.language) : (Qr("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Qr("10.7.0", `Please use highlight(code, options) instead.
|
|
71998
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L === void 0 && (L = !0);
|
|
71993
71999
|
const Q = {
|
|
71994
72000
|
code: K,
|
|
71995
72001
|
language: A
|
|
71996
72002
|
};
|
|
71997
72003
|
G("before:highlight", Q);
|
|
71998
|
-
const ee = Q.result ? Q.result : p(Q.language, Q.code,
|
|
72004
|
+
const ee = Q.result ? Q.result : p(Q.language, Q.code, L);
|
|
71999
72005
|
return ee.code = Q.code, G("after:highlight", ee), ee;
|
|
72000
72006
|
}
|
|
72001
|
-
function p(B, P,
|
|
72007
|
+
function p(B, P, L, K) {
|
|
72002
72008
|
const A = /* @__PURE__ */ Object.create(null);
|
|
72003
72009
|
function Q(q, Z) {
|
|
72004
72010
|
return q.keywords[Z];
|
|
@@ -72121,7 +72127,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), D ===
|
|
|
72121
72127
|
}
|
|
72122
72128
|
if (Qe = Z, Z.type === "begin")
|
|
72123
72129
|
return ne(Z);
|
|
72124
|
-
if (Z.type === "illegal" && !
|
|
72130
|
+
if (Z.type === "illegal" && !L) {
|
|
72125
72131
|
const pe = new Error('Illegal lexeme "' + se + '" for mode "' + (de.scope || "<unnamed>") + '"');
|
|
72126
72132
|
throw pe.mode = de, pe;
|
|
72127
72133
|
} else if (Z.type === "end") {
|
|
@@ -72207,10 +72213,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), D ===
|
|
|
72207
72213
|
}
|
|
72208
72214
|
function h(B, P) {
|
|
72209
72215
|
P = P || s.languages || Object.keys(t);
|
|
72210
|
-
const
|
|
72216
|
+
const L = m(B), K = P.filter(H).filter(D).map(
|
|
72211
72217
|
(ue) => p(ue, B, !1)
|
|
72212
72218
|
);
|
|
72213
|
-
K.unshift(
|
|
72219
|
+
K.unshift(L);
|
|
72214
72220
|
const A = K.sort((ue, ge) => {
|
|
72215
72221
|
if (ue.relevance !== ge.relevance)
|
|
72216
72222
|
return ge.relevance - ue.relevance;
|
|
@@ -72224,18 +72230,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), D ===
|
|
|
72224
72230
|
}), [Q, ee] = A, O = Q;
|
|
72225
72231
|
return O.secondBest = ee, O;
|
|
72226
72232
|
}
|
|
72227
|
-
function f(B, P,
|
|
72228
|
-
const K = P && n[P] ||
|
|
72233
|
+
function f(B, P, L) {
|
|
72234
|
+
const K = P && n[P] || L;
|
|
72229
72235
|
B.classList.add("hljs"), B.classList.add(`language-${K}`);
|
|
72230
72236
|
}
|
|
72231
72237
|
function y(B) {
|
|
72232
72238
|
let P = null;
|
|
72233
|
-
const
|
|
72234
|
-
if (l(
|
|
72239
|
+
const L = u(B);
|
|
72240
|
+
if (l(L))
|
|
72235
72241
|
return;
|
|
72236
72242
|
if (G(
|
|
72237
72243
|
"before:highlightElement",
|
|
72238
|
-
{ el: B, language:
|
|
72244
|
+
{ el: B, language: L }
|
|
72239
72245
|
), B.dataset.highlighted) {
|
|
72240
72246
|
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", B);
|
|
72241
72247
|
return;
|
|
@@ -72246,8 +72252,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), D ===
|
|
|
72246
72252
|
B.innerHTML
|
|
72247
72253
|
);
|
|
72248
72254
|
P = B;
|
|
72249
|
-
const K = P.textContent, A =
|
|
72250
|
-
B.innerHTML = A.value, B.dataset.highlighted = "yes", f(B,
|
|
72255
|
+
const K = P.textContent, A = L ? d(K, { language: L, ignoreIllegals: !0 }) : h(K);
|
|
72256
|
+
B.innerHTML = A.value, B.dataset.highlighted = "yes", f(B, L, A.language), B.result = {
|
|
72251
72257
|
language: A.language,
|
|
72252
72258
|
// TODO: remove with version 11.0
|
|
72253
72259
|
re: A.relevance,
|
|
@@ -72278,17 +72284,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), D ===
|
|
|
72278
72284
|
document.querySelectorAll(s.cssSelector).forEach(y);
|
|
72279
72285
|
}
|
|
72280
72286
|
function S(B, P) {
|
|
72281
|
-
let
|
|
72287
|
+
let L = null;
|
|
72282
72288
|
try {
|
|
72283
|
-
|
|
72289
|
+
L = P(e);
|
|
72284
72290
|
} catch (K) {
|
|
72285
72291
|
if (zr("Language definition for '{}' could not be registered.".replace("{}", B)), a)
|
|
72286
72292
|
zr(K);
|
|
72287
72293
|
else
|
|
72288
72294
|
throw K;
|
|
72289
|
-
|
|
72295
|
+
L = o;
|
|
72290
72296
|
}
|
|
72291
|
-
|
|
72297
|
+
L.name || (L.name = B), t[B] = L, L.rawDefinition = P.bind(null, e), L.aliases && C(L.aliases, { languageName: B });
|
|
72292
72298
|
}
|
|
72293
72299
|
function x(B) {
|
|
72294
72300
|
delete t[B];
|
|
@@ -72302,11 +72308,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), D ===
|
|
|
72302
72308
|
return B = (B || "").toLowerCase(), t[B] || t[n[B]];
|
|
72303
72309
|
}
|
|
72304
72310
|
function C(B, { languageName: P }) {
|
|
72305
|
-
typeof B == "string" && (B = [B]), B.forEach((
|
|
72306
|
-
n[
|
|
72311
|
+
typeof B == "string" && (B = [B]), B.forEach((L) => {
|
|
72312
|
+
n[L.toLowerCase()] = P;
|
|
72307
72313
|
});
|
|
72308
72314
|
}
|
|
72309
|
-
function
|
|
72315
|
+
function D(B) {
|
|
72310
72316
|
const P = H(B);
|
|
72311
72317
|
return P && !P.disableAutodetect;
|
|
72312
72318
|
}
|
|
@@ -72329,9 +72335,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), D ===
|
|
|
72329
72335
|
P !== -1 && r.splice(P, 1);
|
|
72330
72336
|
}
|
|
72331
72337
|
function G(B, P) {
|
|
72332
|
-
const
|
|
72338
|
+
const L = B;
|
|
72333
72339
|
r.forEach(function(K) {
|
|
72334
|
-
K[
|
|
72340
|
+
K[L] && K[L](P);
|
|
72335
72341
|
});
|
|
72336
72342
|
}
|
|
72337
72343
|
function R(B) {
|
|
@@ -72352,7 +72358,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), D ===
|
|
|
72352
72358
|
listLanguages: z,
|
|
72353
72359
|
getLanguage: H,
|
|
72354
72360
|
registerAliases: C,
|
|
72355
|
-
autoDetection:
|
|
72361
|
+
autoDetection: D,
|
|
72356
72362
|
inherit: ig,
|
|
72357
72363
|
addPlugin: Y,
|
|
72358
72364
|
removePlugin: J
|
|
@@ -72953,10 +72959,10 @@ function DLe(e, t, n, r, a, i, o, s, l) {
|
|
|
72953
72959
|
if (H) {
|
|
72954
72960
|
var C = z.split(`
|
|
72955
72961
|
`);
|
|
72956
|
-
C.forEach(function(
|
|
72962
|
+
C.forEach(function(D, W) {
|
|
72957
72963
|
var Y = r && p.length + i, J = {
|
|
72958
72964
|
type: "text",
|
|
72959
|
-
value: "".concat(
|
|
72965
|
+
value: "".concat(D, `
|
|
72960
72966
|
`)
|
|
72961
72967
|
};
|
|
72962
72968
|
if (W === 0) {
|
|
@@ -72968,14 +72974,14 @@ function DLe(e, t, n, r, a, i, o, s, l) {
|
|
|
72968
72974
|
} else if (W === C.length - 1) {
|
|
72969
72975
|
var B = d[h + 1] && d[h + 1].children && d[h + 1].children[0], P = {
|
|
72970
72976
|
type: "text",
|
|
72971
|
-
value: "".concat(
|
|
72977
|
+
value: "".concat(D)
|
|
72972
72978
|
};
|
|
72973
72979
|
if (B) {
|
|
72974
|
-
var
|
|
72980
|
+
var L = Qi({
|
|
72975
72981
|
children: [P],
|
|
72976
72982
|
className: x.properties.className
|
|
72977
72983
|
});
|
|
72978
|
-
d.splice(h + 1, 0,
|
|
72984
|
+
d.splice(h + 1, 0, L);
|
|
72979
72985
|
} else {
|
|
72980
72986
|
var K = [P], A = w(K, Y, x.properties.className);
|
|
72981
72987
|
p.push(A);
|
|
@@ -73038,14 +73044,14 @@ function FLe(e, t) {
|
|
|
73038
73044
|
var a = r.language, i = r.children, o = r.style, s = o === void 0 ? t : o, l = r.customStyle, u = l === void 0 ? {} : l, d = r.codeTagProps, p = d === void 0 ? {
|
|
73039
73045
|
className: a ? "language-".concat(a) : void 0,
|
|
73040
73046
|
style: qn(qn({}, s['code[class*="language-"]']), s['code[class*="language-'.concat(a, '"]')])
|
|
73041
|
-
} : d, m = r.useInlineStyles, h = m === void 0 ? !0 : m, f = r.showLineNumbers, y = f === void 0 ? !1 : f, w = r.showInlineLineNumbers, _ = w === void 0 ? !0 : w, k = r.startingLineNumber, v = k === void 0 ? 1 : k, M = r.lineNumberContainerStyle, S = r.lineNumberStyle, x = S === void 0 ? {} : S, z = r.wrapLines, H = r.wrapLongLines, C = H === void 0 ? !1 : H,
|
|
73047
|
+
} : d, m = r.useInlineStyles, h = m === void 0 ? !0 : m, f = r.showLineNumbers, y = f === void 0 ? !1 : f, w = r.showInlineLineNumbers, _ = w === void 0 ? !0 : w, k = r.startingLineNumber, v = k === void 0 ? 1 : k, M = r.lineNumberContainerStyle, S = r.lineNumberStyle, x = S === void 0 ? {} : S, z = r.wrapLines, H = r.wrapLongLines, C = H === void 0 ? !1 : H, D = r.lineProps, W = D === void 0 ? {} : D, Y = r.renderer, J = r.PreTag, G = J === void 0 ? "pre" : J, R = r.CodeTag, B = R === void 0 ? "code" : R, P = r.code, L = P === void 0 ? (Array.isArray(i) ? i[0] : i) || "" : P, K = r.astGenerator, A = gLe(r, TLe);
|
|
73042
73048
|
K = K || e;
|
|
73043
73049
|
var Q = y ? /* @__PURE__ */ Bn.createElement(OLe, {
|
|
73044
73050
|
containerStyle: M,
|
|
73045
73051
|
codeStyle: p.style || {},
|
|
73046
73052
|
numberStyle: x,
|
|
73047
73053
|
startingLineNumber: v,
|
|
73048
|
-
codeString:
|
|
73054
|
+
codeString: L
|
|
73049
73055
|
}) : null, ee = s.hljs || s['pre[class*="language-"]'] || {
|
|
73050
73056
|
backgroundColor: "#fff"
|
|
73051
73057
|
}, O = Z8(K) ? "hljs" : "prismjs", ue = h ? Object.assign({}, A, {
|
|
@@ -73059,15 +73065,15 @@ function FLe(e, t) {
|
|
|
73059
73065
|
}) : p.style = qn(qn({}, p.style), {}, {
|
|
73060
73066
|
whiteSpace: "pre"
|
|
73061
73067
|
}), !K)
|
|
73062
|
-
return /* @__PURE__ */ Bn.createElement(G, ue, Q, /* @__PURE__ */ Bn.createElement(B, p,
|
|
73068
|
+
return /* @__PURE__ */ Bn.createElement(G, ue, Q, /* @__PURE__ */ Bn.createElement(B, p, L));
|
|
73063
73069
|
(z === void 0 && Y || C) && (z = !0), Y = Y || $Le;
|
|
73064
73070
|
var ge = [{
|
|
73065
73071
|
type: "text",
|
|
73066
|
-
value:
|
|
73072
|
+
value: L
|
|
73067
73073
|
}], be = zLe({
|
|
73068
73074
|
astGenerator: K,
|
|
73069
73075
|
language: a,
|
|
73070
|
-
code:
|
|
73076
|
+
code: L,
|
|
73071
73077
|
defaultCodeValue: ge
|
|
73072
73078
|
});
|
|
73073
73079
|
be.language === null && (be.value = ge);
|
|
@@ -73926,8 +73932,8 @@ function IFe(e, t) {
|
|
|
73926
73932
|
return (n.position.indent || n.position.start) && (n.indent = n.position.indent || [], n.position = n.position.start), OFe(e, n);
|
|
73927
73933
|
}
|
|
73928
73934
|
function OFe(e, t) {
|
|
73929
|
-
var n = t.additional, r = t.nonTerminated, a = t.text, i = t.reference, o = t.warning, s = t.textContext, l = t.referenceContext, u = t.warningContext, d = t.position, p = t.indent || [], m = e.length, h = 0, f = -1, y = d.column || 1, w = d.line || 1, _ = "", k = [], v, M, S, x, z, H, C,
|
|
73930
|
-
for (typeof n == "string" && (n = n.charCodeAt(0)),
|
|
73935
|
+
var n = t.additional, r = t.nonTerminated, a = t.text, i = t.reference, o = t.warning, s = t.textContext, l = t.referenceContext, u = t.warningContext, d = t.position, p = t.indent || [], m = e.length, h = 0, f = -1, y = d.column || 1, w = d.line || 1, _ = "", k = [], v, M, S, x, z, H, C, D, W, Y, J, G, R, B, P, L, K, A, Q;
|
|
73936
|
+
for (typeof n == "string" && (n = n.charCodeAt(0)), L = ee(), D = o ? O : _Fe, h--, m++; ++h < m; )
|
|
73931
73937
|
if (z === Mg && (y = p[f] || 1), z = e.charCodeAt(h), z === Sg) {
|
|
73932
73938
|
if (C = e.charCodeAt(h + 1), C === wFe || C === Mg || C === xFe || C === EFe || C === Sg || C === SFe || C !== C || n && C === n) {
|
|
73933
73939
|
_ += Jr(z), y++;
|
|
@@ -73935,12 +73941,12 @@ function OFe(e, t) {
|
|
|
73935
73941
|
}
|
|
73936
73942
|
for (R = h + 1, G = R, Q = R, C === AFe ? (Q = ++G, C = e.charCodeAt(Q), C === TFe || C === CFe ? (B = Fh, Q = ++G) : B = Ph) : B = aa, v = "", J = "", x = "", P = ts[B], Q--; ++Q < m && (C = e.charCodeAt(Q), !!P(C)); )
|
|
73937
73943
|
x += Jr(C), B === aa && vFe.call(wg, x) && (v = x, J = wg[x]);
|
|
73938
|
-
S = e.charCodeAt(Q) === MFe, S && (Q++, M = B === aa ? bFe(x) : !1, M && (v = x, J = M)), A = 1 + Q - R, !S && !r || (x ? B === aa ? (S && !J ?
|
|
73944
|
+
S = e.charCodeAt(Q) === MFe, S && (Q++, M = B === aa ? bFe(x) : !1, M && (v = x, J = M)), A = 1 + Q - R, !S && !r || (x ? B === aa ? (S && !J ? D(m7, 1) : (v !== x && (Q = G + v.length, A = 1 + Q - G, S = !1), S || (W = v ? u7 : p7, t.attribute ? (C = e.charCodeAt(Q), C === NFe ? (D(W, A), J = null) : c7(C) ? J = null : D(W, A)) : D(W, A))), H = J) : (S || D(d7, A), H = parseInt(x, qh[B]), LFe(H) ? (D(f7, A), H = Jr(RFe)) : H in xg ? (D(lp, A), H = xg[H]) : (Y = "", DFe(H) && D(lp, A), H > 65535 && (H -= 65536, Y += Jr(H >>> 10 | 55296), H = 56320 | H & 1023), H = Y + Jr(H))) : B !== aa && D(h7, A)), H ? (ue(), L = ee(), h = Q - 1, y += Q - R + 1, k.push(H), K = ee(), K.offset++, i && i.call(
|
|
73939
73945
|
l,
|
|
73940
73946
|
H,
|
|
73941
|
-
{ start:
|
|
73947
|
+
{ start: L, end: K },
|
|
73942
73948
|
e.slice(R - 1, Q)
|
|
73943
|
-
),
|
|
73949
|
+
), L = K) : (x = e.slice(R - 1, Q), _ += x, y += x.length, h = Q - 1);
|
|
73944
73950
|
} else
|
|
73945
73951
|
z === 10 && (w++, f++, y = 0), z === z ? (_ += Jr(z), y++) : ue();
|
|
73946
73952
|
return k.join("");
|
|
@@ -73956,7 +73962,7 @@ function OFe(e, t) {
|
|
|
73956
73962
|
Ie.column += be, Ie.offset += be, o.call(u, Ar[ge], Ie, ge);
|
|
73957
73963
|
}
|
|
73958
73964
|
function ue() {
|
|
73959
|
-
_ && (k.push(_), a && a.call(s, _, { start:
|
|
73965
|
+
_ && (k.push(_), a && a.call(s, _, { start: L, end: ee() }), _ = "");
|
|
73960
73966
|
}
|
|
73961
73967
|
}
|
|
73962
73968
|
function LFe(e) {
|
|
@@ -74320,9 +74326,9 @@ var g7 = { exports: {} };
|
|
|
74320
74326
|
M.hasOwnProperty(C) && (z[C] = M[C]);
|
|
74321
74327
|
M.hasOwnProperty(H) || (z[H] = x[H]);
|
|
74322
74328
|
}
|
|
74323
|
-
var
|
|
74329
|
+
var D = S[k];
|
|
74324
74330
|
return S[k] = z, s.languages.DFS(s.languages, function(W, Y) {
|
|
74325
|
-
Y ===
|
|
74331
|
+
Y === D && W != k && (this[W] = z);
|
|
74326
74332
|
}), z;
|
|
74327
74333
|
},
|
|
74328
74334
|
// Traverse a language definition with Depth First Search
|
|
@@ -74332,8 +74338,8 @@ var g7 = { exports: {} };
|
|
|
74332
74338
|
for (var H in v)
|
|
74333
74339
|
if (v.hasOwnProperty(H)) {
|
|
74334
74340
|
M.call(v, H, v[H], S || H);
|
|
74335
|
-
var C = v[H],
|
|
74336
|
-
|
|
74341
|
+
var C = v[H], D = s.util.type(C);
|
|
74342
|
+
D === "Object" && !x[z(C)] ? (x[z(C)] = !0, k(C, M, null, x)) : D === "Array" && !x[z(C)] && (x[z(C)] = !0, k(C, M, H, x));
|
|
74337
74343
|
}
|
|
74338
74344
|
}
|
|
74339
74345
|
},
|
|
@@ -74417,7 +74423,7 @@ var g7 = { exports: {} };
|
|
|
74417
74423
|
grammar: x,
|
|
74418
74424
|
code: H
|
|
74419
74425
|
};
|
|
74420
|
-
function
|
|
74426
|
+
function D(Y) {
|
|
74421
74427
|
C.highlightedCode = Y, s.hooks.run("before-insert", C), C.element.innerHTML = C.highlightedCode, s.hooks.run("after-highlight", C), s.hooks.run("complete", C), M && M.call(C.element);
|
|
74422
74428
|
}
|
|
74423
74429
|
if (s.hooks.run("before-sanity-check", C), z = C.element.parentElement, z && z.nodeName.toLowerCase() === "pre" && !z.hasAttribute("tabindex") && z.setAttribute("tabindex", "0"), !C.code) {
|
|
@@ -74425,20 +74431,20 @@ var g7 = { exports: {} };
|
|
|
74425
74431
|
return;
|
|
74426
74432
|
}
|
|
74427
74433
|
if (s.hooks.run("before-highlight", C), !C.grammar) {
|
|
74428
|
-
|
|
74434
|
+
D(s.util.encode(C.code));
|
|
74429
74435
|
return;
|
|
74430
74436
|
}
|
|
74431
74437
|
if (v && r.Worker) {
|
|
74432
74438
|
var W = new Worker(s.filename);
|
|
74433
74439
|
W.onmessage = function(Y) {
|
|
74434
|
-
|
|
74440
|
+
D(Y.data);
|
|
74435
74441
|
}, W.postMessage(JSON.stringify({
|
|
74436
74442
|
language: C.language,
|
|
74437
74443
|
code: C.code,
|
|
74438
74444
|
immediateClose: !0
|
|
74439
74445
|
}));
|
|
74440
74446
|
} else
|
|
74441
|
-
|
|
74447
|
+
D(s.highlight(C.code, C.grammar, C.language));
|
|
74442
74448
|
},
|
|
74443
74449
|
/**
|
|
74444
74450
|
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
@@ -74554,8 +74560,8 @@ var g7 = { exports: {} };
|
|
|
74554
74560
|
return v;
|
|
74555
74561
|
if (Array.isArray(v)) {
|
|
74556
74562
|
var S = "";
|
|
74557
|
-
return v.forEach(function(
|
|
74558
|
-
S += k(
|
|
74563
|
+
return v.forEach(function(D) {
|
|
74564
|
+
S += k(D, M);
|
|
74559
74565
|
}), S;
|
|
74560
74566
|
}
|
|
74561
74567
|
var x = {
|
|
@@ -74586,16 +74592,16 @@ var g7 = { exports: {} };
|
|
|
74586
74592
|
if (!(!M.hasOwnProperty(H) || !M[H])) {
|
|
74587
74593
|
var C = M[H];
|
|
74588
74594
|
C = Array.isArray(C) ? C : [C];
|
|
74589
|
-
for (var
|
|
74590
|
-
if (z && z.cause == H + "," +
|
|
74595
|
+
for (var D = 0; D < C.length; ++D) {
|
|
74596
|
+
if (z && z.cause == H + "," + D)
|
|
74591
74597
|
return;
|
|
74592
|
-
var W = C[
|
|
74598
|
+
var W = C[D], Y = W.inside, J = !!W.lookbehind, G = !!W.greedy, R = W.alias;
|
|
74593
74599
|
if (G && !W.pattern.global) {
|
|
74594
74600
|
var B = W.pattern.toString().match(/[imsuy]*$/)[0];
|
|
74595
74601
|
W.pattern = RegExp(W.pattern.source, B + "g");
|
|
74596
74602
|
}
|
|
74597
|
-
for (var P = W.pattern || W,
|
|
74598
|
-
var A =
|
|
74603
|
+
for (var P = W.pattern || W, L = S.next, K = x; L !== v.tail && !(z && K >= z.reach); K += L.value.length, L = L.next) {
|
|
74604
|
+
var A = L.value;
|
|
74599
74605
|
if (v.length > k.length)
|
|
74600
74606
|
return;
|
|
74601
74607
|
if (!(A instanceof l)) {
|
|
@@ -74604,26 +74610,26 @@ var g7 = { exports: {} };
|
|
|
74604
74610
|
if (ee = u(P, K, k, J), !ee || ee.index >= k.length)
|
|
74605
74611
|
break;
|
|
74606
74612
|
var be = ee.index, O = ee.index + ee[0].length, ue = K;
|
|
74607
|
-
for (ue +=
|
|
74608
|
-
|
|
74609
|
-
if (ue -=
|
|
74613
|
+
for (ue += L.value.length; be >= ue; )
|
|
74614
|
+
L = L.next, ue += L.value.length;
|
|
74615
|
+
if (ue -= L.value.length, K = ue, L.value instanceof l)
|
|
74610
74616
|
continue;
|
|
74611
|
-
for (var ge =
|
|
74617
|
+
for (var ge = L; ge !== v.tail && (ue < O || typeof ge.value == "string"); ge = ge.next)
|
|
74612
74618
|
Q++, ue += ge.value.length;
|
|
74613
74619
|
Q--, A = k.slice(K, ue), ee.index -= K;
|
|
74614
74620
|
} else if (ee = u(P, 0, A, J), !ee)
|
|
74615
74621
|
continue;
|
|
74616
74622
|
var be = ee.index, Ie = ee[0], De = A.slice(0, be), Ue = A.slice(be + Ie.length), ne = K + A.length;
|
|
74617
74623
|
z && ne > z.reach && (z.reach = ne);
|
|
74618
|
-
var we =
|
|
74624
|
+
var we = L.prev;
|
|
74619
74625
|
De && (we = m(v, we, De), K += De.length), h(v, we, Q);
|
|
74620
74626
|
var Xe = new l(H, Y ? s.tokenize(Ie, Y) : Ie, R, Ie);
|
|
74621
|
-
if (
|
|
74627
|
+
if (L = m(v, we, Xe), Ue && m(v, L, Ue), Q > 1) {
|
|
74622
74628
|
var Qe = {
|
|
74623
|
-
cause: H + "," +
|
|
74629
|
+
cause: H + "," + D,
|
|
74624
74630
|
reach: ne
|
|
74625
74631
|
};
|
|
74626
|
-
d(k, v, M,
|
|
74632
|
+
d(k, v, M, L.prev, K, Qe), z && Qe.reach > z.reach && (z.reach = Qe.reach);
|
|
74627
74633
|
}
|
|
74628
74634
|
}
|
|
74629
74635
|
}
|
|
@@ -76764,9 +76770,9 @@ function ns() {
|
|
|
76764
76770
|
}
|
|
76765
76771
|
}
|
|
76766
76772
|
});
|
|
76767
|
-
var
|
|
76773
|
+
var D = H + "|" + z, W = r(
|
|
76768
76774
|
/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,
|
|
76769
|
-
[
|
|
76775
|
+
[D]
|
|
76770
76776
|
), Y = i(
|
|
76771
76777
|
r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [
|
|
76772
76778
|
W
|
|
@@ -76813,14 +76819,14 @@ function ns() {
|
|
|
76813
76819
|
), P = r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
|
|
76814
76820
|
B,
|
|
76815
76821
|
R
|
|
76816
|
-
]),
|
|
76822
|
+
]), L = i(
|
|
76817
76823
|
r(
|
|
76818
76824
|
/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,
|
|
76819
|
-
[
|
|
76825
|
+
[D]
|
|
76820
76826
|
),
|
|
76821
76827
|
2
|
|
76822
76828
|
), K = r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
|
|
76823
|
-
|
|
76829
|
+
L,
|
|
76824
76830
|
R
|
|
76825
76831
|
]);
|
|
76826
76832
|
function A(Q, ee) {
|
|
@@ -76867,7 +76873,7 @@ function ns() {
|
|
|
76867
76873
|
]),
|
|
76868
76874
|
lookbehind: !0,
|
|
76869
76875
|
greedy: !0,
|
|
76870
|
-
inside: A(K,
|
|
76876
|
+
inside: A(K, L)
|
|
76871
76877
|
}
|
|
76872
76878
|
],
|
|
76873
76879
|
char: {
|
|
@@ -84108,18 +84114,18 @@ function cBe() {
|
|
|
84108
84114
|
}), v = 0, M = {}, S = k.map(function(C) {
|
|
84109
84115
|
if (typeof C == "string")
|
|
84110
84116
|
return C;
|
|
84111
|
-
for (var
|
|
84117
|
+
for (var D = C.content, W; y.indexOf(
|
|
84112
84118
|
W = u(v++, _)
|
|
84113
84119
|
) !== -1; )
|
|
84114
84120
|
;
|
|
84115
|
-
return M[W] =
|
|
84121
|
+
return M[W] = D, W;
|
|
84116
84122
|
}).join(""), x = d(S, w, _), z = Object.keys(M);
|
|
84117
84123
|
v = 0;
|
|
84118
84124
|
function H(C) {
|
|
84119
|
-
for (var
|
|
84125
|
+
for (var D = 0; D < C.length; D++) {
|
|
84120
84126
|
if (v >= z.length)
|
|
84121
84127
|
return;
|
|
84122
|
-
var W = C[
|
|
84128
|
+
var W = C[D];
|
|
84123
84129
|
if (typeof W == "string" || typeof W.content == "string") {
|
|
84124
84130
|
var Y = z[v], J = typeof W == "string" ? W : (
|
|
84125
84131
|
/** @type {string} */
|
|
@@ -84129,12 +84135,12 @@ function cBe() {
|
|
|
84129
84135
|
++v;
|
|
84130
84136
|
var R = J.substring(0, G), B = p(
|
|
84131
84137
|
M[Y]
|
|
84132
|
-
), P = J.substring(G + Y.length),
|
|
84133
|
-
if (R &&
|
|
84138
|
+
), P = J.substring(G + Y.length), L = [];
|
|
84139
|
+
if (R && L.push(R), L.push(B), P) {
|
|
84134
84140
|
var K = [P];
|
|
84135
|
-
H(K),
|
|
84141
|
+
H(K), L.push.apply(L, K);
|
|
84136
84142
|
}
|
|
84137
|
-
typeof W == "string" ? (C.splice.apply(C, [
|
|
84143
|
+
typeof W == "string" ? (C.splice.apply(C, [D, 1].concat(L)), D += L.length - 1) : W.content = L;
|
|
84138
84144
|
}
|
|
84139
84145
|
} else {
|
|
84140
84146
|
var A = W.content;
|
|
@@ -84172,10 +84178,10 @@ function cBe() {
|
|
|
84172
84178
|
if (M.type === "template-string") {
|
|
84173
84179
|
var x = S[1];
|
|
84174
84180
|
if (S.length === 3 && typeof x != "string" && x.type === "embedded-code") {
|
|
84175
|
-
var z = f(x), H = x.alias, C = Array.isArray(H) ? H[0] : H,
|
|
84176
|
-
if (!
|
|
84181
|
+
var z = f(x), H = x.alias, C = Array.isArray(H) ? H[0] : H, D = n.languages[C];
|
|
84182
|
+
if (!D)
|
|
84177
84183
|
continue;
|
|
84178
|
-
S[1] = m(z,
|
|
84184
|
+
S[1] = m(z, D, C);
|
|
84179
84185
|
}
|
|
84180
84186
|
} else
|
|
84181
84187
|
w(S);
|