@versini/sassysaint 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{App.BDNqHRx0.js → App.DJozcBeB.js} +3 -3
- package/dist/chunks/{LazyHeader.Dq9Jaelp.js → LazyHeader.B1723ukv.js} +7 -7
- package/dist/chunks/{LazyMarkdownWithExtra.BXu8ynUN.js → LazyMarkdownWithExtra.BZSSztwq.js} +65 -92
- package/dist/chunks/{LazyMessageAssistant.C2Zv7LVy.js → LazyMessageAssistant.uBxG6-gS.js} +54 -77
- package/dist/chunks/{index.DruzEDnN.rXHUB6uV.js → index.DruzEDnN.wUuoTJhD.js} +1 -1
- package/dist/chunks/{index.D4BnyjVs.js → index.TaY_5bD3.js} +658 -636
- package/dist/chunks/{useLocalStorage.C20Z4rxP.js → useLocalStorage.BXlADEdF.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +6 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as S, jsx as a, Fragment as me } from "react/jsx-runtime";
|
|
2
|
-
import { O as Ve, s as Be, S as De, f$1 as $e, M as ze, U as Ue, r as Fe, o as Pe, n as ge, l as Ge, a as W, isLastMessageFromRole as ye, x as fe, CANCEL as je, CLEAR as We, ACTION_RESET as he, ROLE_ASSISTANT as L, ROLE_INTERNAL as X, ROLE_USER as Q,
|
|
3
|
-
import { g as Ce, AppContext as U, restCall as ir, E as q, serviceCall as ne, SERVICE_TYPES as le, HistoryContext as dr, k as ur } from "./useLocalStorage.
|
|
2
|
+
import { O as Ve, s as Be, S as De, f$1 as $e, M as ze, U as Ue, r as Fe, o as Pe, n as ge, l as Ge, a as W, isLastMessageFromRole as ye, x as fe, CANCEL as je, CLEAR as We, ACTION_RESET as he, ROLE_ASSISTANT as L, ROLE_INTERNAL as X, ROLE_USER as Q, dr as K, ROLE_SYSTEM as Ye, ROLE_HIDDEN as qe, MODEL_GPT4 as xe, STATS_SEPARATOR as ae, ACTION_MODEL as be, ACTION_MESSAGE as H, TYPE_QUESTION as Je, SEND as Qe, ACTION_STREAMING as ke, ERROR_MESSAGE as Xe, getMessageContaintWrapperClass as Ke, MessagesContainerHeader as Ze, ACTION_SEARCH as er, ACTION_SORT as rr, ACTION_RESTORE as tr, ACTION_LOCATION as _, getCurrentGeoLocation as or, c as sr, AppFooter as ar, LOCAL_STORAGE_PREFIX as Y, LOCAL_STORAGE_SEARCH as nr, LOCAL_STORAGE_SORT as lr, LOCAL_STORAGE_LOCATION as cr } from "./index.TaY_5bD3.js";
|
|
3
|
+
import { g as Ce, AppContext as U, restCall as ir, E as q, serviceCall as ne, SERVICE_TYPES as le, HistoryContext as dr, k as ur } from "./useLocalStorage.BXlADEdF.js";
|
|
4
4
|
import pr, { useState as R, useEffect as N, useRef as x, useLayoutEffect as D, useContext as Z, lazy as mr, Suspense as ce, useReducer as ie, useCallback as gr } from "react";
|
|
5
5
|
import y from "clsx";
|
|
6
6
|
const yr = ({
|
|
@@ -475,7 +475,7 @@ const Vr = () => {
|
|
|
475
475
|
children: r != null && r.streaming ? je : We
|
|
476
476
|
}
|
|
477
477
|
) }) : null;
|
|
478
|
-
}, ue = mr(() => import("./LazyMessageAssistant.
|
|
478
|
+
}, ue = mr(() => import("./LazyMessageAssistant.uBxG6-gS.js").then((e) => e.LazyMessageAssistant)), Br = () => {
|
|
479
479
|
const { state: e } = Z(U);
|
|
480
480
|
return /* @__PURE__ */ S(me, { children: [
|
|
481
481
|
e && e.messages.length > 0 && e.messages.map((r, o) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t, jsxs as d, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import { E as X, S as Oe, O, i$1 as _e, N as Be, p as ze, o as Ve, g as A, CARDS as C, renderDataAsList as V, pluralize as q, ABOUT_TITLE as Pe, MODEL_GPT4 as Fe, numberFormatter as $e, durationFormatter as ge, NA as Ge, ROLE_ASSISTANT as Ue, extractAverage as je, GPT4_MAX_TOKENS as Ke,
|
|
2
|
+
import { E as X, S as Oe, O, i$1 as _e, N as Be, p as ze, o as Ve, g as A, CARDS as C, renderDataAsList as V, pluralize as q, ABOUT_TITLE as Pe, MODEL_GPT4 as Fe, numberFormatter as $e, durationFormatter as ge, NA as Ge, ROLE_ASSISTANT as Ue, extractAverage as je, GPT4_MAX_TOKENS as Ke, dr as G, STATS as Ce, b as oe, j as D, x as ce, LOCAL_STORAGE_PREFIX as Q, LOCAL_STORAGE_SORT as Ye, ACTION_RESET as We, ACTION_RESTORE as Xe, truncate as Je, ACTION_SORT as ae, LOCAL_STORAGE_SEARCH as qe, G as Qe, ACTION_SEARCH as Ze, HISTORY_TITLE as et, LOCAL_STORAGE_CHAT_DETAILS as tt, LOCAL_STORAGE_LOCATION as rt, ACTION_LOCATION as de, getCurrentGeoLocation as at, convertLatitudeToDMS as st, convertLongitudeToDMS as nt, PROFILE_TITLE as ot, LOG_OUT as me } from "./index.TaY_5bD3.js";
|
|
3
3
|
import * as le from "react";
|
|
4
4
|
import ct, { useId as be, forwardRef as Ne, useState as y, useRef as P, useContext as M, useEffect as R, Suspense as lt, lazy as it } from "react";
|
|
5
|
-
import { g as dt, AppContext as U, serviceCall as ee, SERVICE_TYPES as te, HistoryContext as ye, E as Z, k as v, et as mt, at as ut, lt as se, J as H, ct as ht, st as pt, rt as ft } from "./useLocalStorage.
|
|
5
|
+
import { g as dt, AppContext as U, serviceCall as ee, SERVICE_TYPES as te, HistoryContext as ye, E as Z, k as v, et as mt, at as ut, lt as se, J as H, ct as ht, st as pt, rt as ft } from "./useLocalStorage.BXlADEdF.js";
|
|
6
6
|
import S from "clsx";
|
|
7
7
|
import { useFloatingTree as Te, useFloatingNodeId as gt, useListItem as ke, useFloating as Ct, offset as bt, flip as Nt, shift as yt, autoUpdate as Tt, useClick as kt, useRole as St, useDismiss as wt, useListNavigation as xt, useTypeahead as Et, useInteractions as vt, useMergeRefs as Se, FloatingNode as At, FloatingList as It, FloatingPortal as Ht, FloatingFocusManager as Mt, FloatingTree as Rt } from "@floating-ui/react";
|
|
8
8
|
function Lt(e) {
|
|
@@ -299,7 +299,7 @@ const _t = ({ className: e, ...r }) => {
|
|
|
299
299
|
header: "p-4 mb-0",
|
|
300
300
|
close: "p-4"
|
|
301
301
|
}), j = (e) => it(
|
|
302
|
-
() => import("./index.DruzEDnN.
|
|
302
|
+
() => import("./index.DruzEDnN.wUuoTJhD.js").then((r) => ({
|
|
303
303
|
default: r[e]
|
|
304
304
|
}))
|
|
305
305
|
), Vt = j("Modal"), Pt = j("ModalClose"), Ft = j("ModalContent"), $t = j("ModalDescription"), Gt = j("ModalHeading"), K = ({
|
|
@@ -703,8 +703,8 @@ const cr = ({ stats: e }) => {
|
|
|
703
703
|
header: C.ABOUT.TITLE_CLIENT,
|
|
704
704
|
className: "prose-dark dark:prose-lighter",
|
|
705
705
|
children: V(o, {
|
|
706
|
-
[C.ABOUT.VERSION]: "3.1.
|
|
707
|
-
[C.ABOUT.BUILD_TIMESTAMP]: "07/
|
|
706
|
+
[C.ABOUT.VERSION]: "3.1.2",
|
|
707
|
+
[C.ABOUT.BUILD_TIMESTAMP]: "07/07/2024 02:39 PM EDT"
|
|
708
708
|
})
|
|
709
709
|
}
|
|
710
710
|
) }),
|
|
@@ -1058,11 +1058,11 @@ const gr = async (e, r, a, s) => {
|
|
|
1058
1058
|
] });
|
|
1059
1059
|
};
|
|
1060
1060
|
function fe(e, r) {
|
|
1061
|
-
return e.filter(
|
|
1061
|
+
return r ? e.filter(
|
|
1062
1062
|
(a) => a.messages.some(
|
|
1063
1063
|
(s) => s.content !== null && s.content.toLowerCase().includes(r.toLowerCase())
|
|
1064
1064
|
)
|
|
1065
|
-
);
|
|
1065
|
+
) : e;
|
|
1066
1066
|
}
|
|
1067
1067
|
const br = ({
|
|
1068
1068
|
onOpenChange: e,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _i } from "react/jsx-runtime";
|
|
2
|
-
import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.
|
|
2
|
+
import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.uBxG6-gS.js";
|
|
3
3
|
const U0 = (
|
|
4
4
|
// Note: overloads like this are needed to support optional generics.
|
|
5
5
|
/**
|
|
@@ -62,8 +62,7 @@ function Li(t) {
|
|
|
62
62
|
function n(...a) {
|
|
63
63
|
let i = -1;
|
|
64
64
|
for (; ++i < e.length; )
|
|
65
|
-
if (e[i].apply(this, a))
|
|
66
|
-
return !0;
|
|
65
|
+
if (e[i].apply(this, a)) return !0;
|
|
67
66
|
return !1;
|
|
68
67
|
}
|
|
69
68
|
}
|
|
@@ -12122,8 +12121,7 @@ class uo {
|
|
|
12122
12121
|
*
|
|
12123
12122
|
* @param {Node} node */
|
|
12124
12123
|
openNode(e) {
|
|
12125
|
-
if (!Q0(e))
|
|
12126
|
-
return;
|
|
12124
|
+
if (!Q0(e)) return;
|
|
12127
12125
|
const r = co(
|
|
12128
12126
|
e.scope,
|
|
12129
12127
|
{ prefix: this.classPrefix }
|
|
@@ -12180,8 +12178,7 @@ class m0 {
|
|
|
12180
12178
|
return this.stack.pop();
|
|
12181
12179
|
}
|
|
12182
12180
|
closeAllNodes() {
|
|
12183
|
-
for (; this.closeNode(); )
|
|
12184
|
-
;
|
|
12181
|
+
for (; this.closeNode(); ) ;
|
|
12185
12182
|
}
|
|
12186
12183
|
toJSON() {
|
|
12187
12184
|
return JSON.stringify(this.rootNode, null, 4);
|
|
@@ -12484,8 +12481,7 @@ function Po(t, e) {
|
|
|
12484
12481
|
}
|
|
12485
12482
|
function Fo(t, e) {
|
|
12486
12483
|
if (t.match) {
|
|
12487
|
-
if (t.begin || t.end)
|
|
12488
|
-
throw new Error("begin & end are not supported with match");
|
|
12484
|
+
if (t.begin || t.end) throw new Error("begin & end are not supported with match");
|
|
12489
12485
|
t.begin = t.match, delete t.match;
|
|
12490
12486
|
}
|
|
12491
12487
|
}
|
|
@@ -12493,10 +12489,8 @@ function Uo(t, e) {
|
|
|
12493
12489
|
t.relevance === void 0 && (t.relevance = 1);
|
|
12494
12490
|
}
|
|
12495
12491
|
const qo = (t, e) => {
|
|
12496
|
-
if (!t.beforeMatch)
|
|
12497
|
-
|
|
12498
|
-
if (t.starts)
|
|
12499
|
-
throw new Error("beforeMatch cannot be used with starts");
|
|
12492
|
+
if (!t.beforeMatch) return;
|
|
12493
|
+
if (t.starts) throw new Error("beforeMatch cannot be used with starts");
|
|
12500
12494
|
const r = Object.assign({}, t);
|
|
12501
12495
|
Object.keys(t).forEach((n) => {
|
|
12502
12496
|
delete t[n];
|
|
@@ -12617,8 +12611,7 @@ function Xo(t) {
|
|
|
12617
12611
|
}
|
|
12618
12612
|
// @ts-ignore
|
|
12619
12613
|
getMatcher(l) {
|
|
12620
|
-
if (this.multiRegexes[l])
|
|
12621
|
-
return this.multiRegexes[l];
|
|
12614
|
+
if (this.multiRegexes[l]) return this.multiRegexes[l];
|
|
12622
12615
|
const u = new r();
|
|
12623
12616
|
return this.rules.slice(l).forEach(([m, p]) => u.addRule(m, p)), u.compile(), this.multiRegexes[l] = u, u;
|
|
12624
12617
|
}
|
|
@@ -12653,8 +12646,7 @@ function Xo(t) {
|
|
|
12653
12646
|
/** @type CompiledMode */
|
|
12654
12647
|
o
|
|
12655
12648
|
);
|
|
12656
|
-
if (o.isCompiled)
|
|
12657
|
-
return u;
|
|
12649
|
+
if (o.isCompiled) return u;
|
|
12658
12650
|
[
|
|
12659
12651
|
Bo,
|
|
12660
12652
|
// do this early so compiler extensions generally don't have to worry about
|
|
@@ -12777,8 +12769,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Q = M, V = R), $ ===
|
|
|
12777
12769
|
ee += me.substring(L), Se.addText(ee);
|
|
12778
12770
|
}
|
|
12779
12771
|
function We() {
|
|
12780
|
-
if (me === "")
|
|
12781
|
-
return;
|
|
12772
|
+
if (me === "") return;
|
|
12782
12773
|
let L = null;
|
|
12783
12774
|
if (typeof Y.subLanguage == "string") {
|
|
12784
12775
|
if (!e[Y.subLanguage]) {
|
|
@@ -12898,8 +12889,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Q = M, V = R), $ ===
|
|
|
12898
12889
|
for (Y.matcher.considerAll(); ; ) {
|
|
12899
12890
|
Or++, Rr ? Rr = !1 : Y.matcher.considerAll(), Y.matcher.lastIndex = yt;
|
|
12900
12891
|
const L = Y.matcher.exec(R);
|
|
12901
|
-
if (!L)
|
|
12902
|
-
break;
|
|
12892
|
+
if (!L) break;
|
|
12903
12893
|
const H = R.substring(yt, L.index), ee = Ge(H, L);
|
|
12904
12894
|
yt = L.index + ee;
|
|
12905
12895
|
}
|
|
@@ -12959,8 +12949,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Q = M, V = R), $ ===
|
|
|
12959
12949
|
);
|
|
12960
12950
|
V.unshift($);
|
|
12961
12951
|
const Q = V.sort((fe, Ne) => {
|
|
12962
|
-
if (fe.relevance !== Ne.relevance)
|
|
12963
|
-
return Ne.relevance - fe.relevance;
|
|
12952
|
+
if (fe.relevance !== Ne.relevance) return Ne.relevance - fe.relevance;
|
|
12964
12953
|
if (fe.language && Ne.language) {
|
|
12965
12954
|
if (U(fe.language).supersetOf === Ne.language)
|
|
12966
12955
|
return 1;
|
|
@@ -12978,8 +12967,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Q = M, V = R), $ ===
|
|
|
12978
12967
|
function E(M) {
|
|
12979
12968
|
let R = null;
|
|
12980
12969
|
const $ = m(M);
|
|
12981
|
-
if (u($))
|
|
12982
|
-
return;
|
|
12970
|
+
if (u($)) return;
|
|
12983
12971
|
if (se(
|
|
12984
12972
|
"before:highlightElement",
|
|
12985
12973
|
{ el: M, language: $ }
|
|
@@ -13158,8 +13146,7 @@ function al(t) {
|
|
|
13158
13146
|
let v = -1, y = 0, x;
|
|
13159
13147
|
for (; ++v < f.length; ) {
|
|
13160
13148
|
const E = f[v];
|
|
13161
|
-
if (!e.getLanguage(E))
|
|
13162
|
-
continue;
|
|
13149
|
+
if (!e.getLanguage(E)) continue;
|
|
13163
13150
|
const S = r(E, u, m);
|
|
13164
13151
|
S.data && S.data.relevance !== void 0 && S.data.relevance > y && (y = S.data.relevance, x = S);
|
|
13165
13152
|
}
|
|
@@ -13227,8 +13214,7 @@ class il {
|
|
|
13227
13214
|
*
|
|
13228
13215
|
*/
|
|
13229
13216
|
addText(e) {
|
|
13230
|
-
if (e === "")
|
|
13231
|
-
return;
|
|
13217
|
+
if (e === "") return;
|
|
13232
13218
|
const r = this.stack[this.stack.length - 1], n = r.children[r.children.length - 1];
|
|
13233
13219
|
n && n.type === "text" ? n.value += e : r.children.push({ type: "text", value: e });
|
|
13234
13220
|
}
|
|
@@ -13415,11 +13401,9 @@ function ml(t, e, r, n) {
|
|
|
13415
13401
|
let i = -1, o;
|
|
13416
13402
|
if (n != null) {
|
|
13417
13403
|
if (typeof n == "number") {
|
|
13418
|
-
if (Number.isNaN(n))
|
|
13419
|
-
return;
|
|
13404
|
+
if (Number.isNaN(n)) return;
|
|
13420
13405
|
o = n;
|
|
13421
|
-
} else
|
|
13422
|
-
typeof n == "boolean" ? o = n : typeof n == "string" ? a.spaceSeparated ? o = z0(n) : a.commaSeparated ? o = P0(n) : a.commaOrSpaceSeparated ? o = z0(P0(n).join(" ")) : o = sn(a, a.property, n) : Array.isArray(n) ? o = n.concat() : o = a.property === "style" ? hl(n) : String(n);
|
|
13406
|
+
} else typeof n == "boolean" ? o = n : typeof n == "string" ? a.spaceSeparated ? o = z0(n) : a.commaSeparated ? o = P0(n) : a.commaOrSpaceSeparated ? o = z0(P0(n).join(" ")) : o = sn(a, a.property, n) : Array.isArray(n) ? o = n.concat() : o = a.property === "style" ? hl(n) : String(n);
|
|
13423
13407
|
if (Array.isArray(o)) {
|
|
13424
13408
|
const l = [];
|
|
13425
13409
|
for (; ++i < o.length; ) {
|
|
@@ -13443,16 +13427,15 @@ function ml(t, e, r, n) {
|
|
|
13443
13427
|
}
|
|
13444
13428
|
function e0(t, e) {
|
|
13445
13429
|
let r = -1;
|
|
13446
|
-
if (e != null)
|
|
13447
|
-
|
|
13448
|
-
|
|
13449
|
-
|
|
13450
|
-
|
|
13451
|
-
|
|
13452
|
-
|
|
13453
|
-
|
|
13454
|
-
|
|
13455
|
-
throw new Error("Expected node, nodes, or string, got `" + e + "`");
|
|
13430
|
+
if (e != null) if (typeof e == "string" || typeof e == "number")
|
|
13431
|
+
t.push({ type: "text", value: String(e) });
|
|
13432
|
+
else if (Array.isArray(e))
|
|
13433
|
+
for (; ++r < e.length; )
|
|
13434
|
+
e0(t, e[r]);
|
|
13435
|
+
else if (typeof e == "object" && "type" in e)
|
|
13436
|
+
e.type === "root" ? e0(t, e.children) : t.push(e);
|
|
13437
|
+
else
|
|
13438
|
+
throw new Error("Expected node, nodes, or string, got `" + e + "`");
|
|
13456
13439
|
}
|
|
13457
13440
|
function sn(t, e, r) {
|
|
13458
13441
|
if (typeof r == "string") {
|
|
@@ -17958,8 +17941,7 @@ var sr = [
|
|
|
17958
17941
|
if (u === "boldsymbol") {
|
|
17959
17942
|
var y = dc(i, a, r, o, n);
|
|
17960
17943
|
f = y.fontName, v = [y.fontClass];
|
|
17961
|
-
} else
|
|
17962
|
-
l ? (f = La[u].fontName, v = [u]) : (f = or(u, r.fontWeight, r.fontShape), v = [u, r.fontWeight, r.fontShape]);
|
|
17944
|
+
} else l ? (f = La[u].fontName, v = [u]) : (f = or(u, r.fontWeight, r.fontShape), v = [u, r.fontWeight, r.fontShape]);
|
|
17963
17945
|
if (Sr(i, f, a).metrics)
|
|
17964
17946
|
return Ke(i, f, a, r, o.concat(v));
|
|
17965
17947
|
if (Ca.hasOwnProperty(i) && f.slice(0, 10) === "Typewriter") {
|
|
@@ -18440,8 +18422,7 @@ function s0(t, e) {
|
|
|
18440
18422
|
for (var u = !1; l < n.length - 1 && n[l + 1].hasClass("mspace") && !n[l + 1].hasClass("newline"); )
|
|
18441
18423
|
l++, o.push(n[l]), n[l].hasClass("nobreak") && (u = !0);
|
|
18442
18424
|
u || (i.push(lr(o, e)), o = []);
|
|
18443
|
-
} else
|
|
18444
|
-
n[l].hasClass("newline") && (o.pop(), o.length > 0 && (i.push(lr(o, e)), o = []), i.push(n[l]));
|
|
18425
|
+
} else n[l].hasClass("newline") && (o.pop(), o.length > 0 && (i.push(lr(o, e)), o = []), i.push(n[l]));
|
|
18445
18426
|
o.length > 0 && i.push(lr(o, e));
|
|
18446
18427
|
var m;
|
|
18447
18428
|
r ? (m = lr(xe(r, e, !0)), m.classes = ["tag"], i.push(m)) : a && i.push(a);
|
|
@@ -19345,23 +19326,22 @@ function $c(t) {
|
|
|
19345
19326
|
type: "ordgroup",
|
|
19346
19327
|
mode: "math",
|
|
19347
19328
|
body: []
|
|
19348
|
-
}, !("=|.".indexOf(m) > -1))
|
|
19349
|
-
|
|
19350
|
-
for (var
|
|
19351
|
-
|
|
19352
|
-
|
|
19353
|
-
|
|
19354
|
-
break;
|
|
19355
|
-
}
|
|
19356
|
-
if (En(o[y]))
|
|
19357
|
-
throw new O("Missing a " + m + " character to complete a CD arrow.", o[y]);
|
|
19358
|
-
p[f].body.push(o[y]);
|
|
19329
|
+
}, !("=|.".indexOf(m) > -1)) if ("<>AV".indexOf(m) > -1)
|
|
19330
|
+
for (var f = 0; f < 2; f++) {
|
|
19331
|
+
for (var v = !0, y = u + 1; y < o.length; y++) {
|
|
19332
|
+
if (qc(o[y], m)) {
|
|
19333
|
+
v = !1, u = y;
|
|
19334
|
+
break;
|
|
19359
19335
|
}
|
|
19360
|
-
if (
|
|
19361
|
-
throw new O("Missing a " + m + " character to complete a CD arrow.", o[
|
|
19336
|
+
if (En(o[y]))
|
|
19337
|
+
throw new O("Missing a " + m + " character to complete a CD arrow.", o[y]);
|
|
19338
|
+
p[f].body.push(o[y]);
|
|
19362
19339
|
}
|
|
19363
|
-
|
|
19364
|
-
|
|
19340
|
+
if (v)
|
|
19341
|
+
throw new O("Missing a " + m + " character to complete a CD arrow.", o[u]);
|
|
19342
|
+
}
|
|
19343
|
+
else
|
|
19344
|
+
throw new O('Expected one of "<>AV=|." after @', o[u]);
|
|
19365
19345
|
var x = Hc(m, p, t), E = {
|
|
19366
19346
|
type: "styling",
|
|
19367
19347
|
body: [x],
|
|
@@ -20592,8 +20572,7 @@ var Xe = function(e, r) {
|
|
|
20592
20572
|
for (var D = e.cols || [], F = "", P = 1; P < D.length; P++)
|
|
20593
20573
|
F += P % 2 ? "0em " : "1em ";
|
|
20594
20574
|
p.setAttribute("columnspacing", F.trim());
|
|
20595
|
-
} else
|
|
20596
|
-
e.colSeparationType === "alignat" || e.colSeparationType === "gather" ? p.setAttribute("columnspacing", "0em") : e.colSeparationType === "small" ? p.setAttribute("columnspacing", "0.2778em") : e.colSeparationType === "CD" ? p.setAttribute("columnspacing", "0.5em") : p.setAttribute("columnspacing", "1em");
|
|
20575
|
+
} else e.colSeparationType === "alignat" || e.colSeparationType === "gather" ? p.setAttribute("columnspacing", "0em") : e.colSeparationType === "small" ? p.setAttribute("columnspacing", "0.2778em") : e.colSeparationType === "CD" ? p.setAttribute("columnspacing", "0.5em") : p.setAttribute("columnspacing", "1em");
|
|
20597
20576
|
var q = "", X = e.hLinesBeforeRow;
|
|
20598
20577
|
v += X[0].length > 0 ? "left " : "", v += X[X.length - 1].length > 0 ? "right " : "";
|
|
20599
20578
|
for (var U = 1; U < X.length - 1; U++)
|
|
@@ -22186,25 +22165,24 @@ var mi = (t, e) => {
|
|
|
22186
22165
|
}, ou = (t, e) => {
|
|
22187
22166
|
for (var r = Ie(t.body, e.withFont("mathrm")), n = !0, a = 0; a < r.length; a++) {
|
|
22188
22167
|
var i = r[a];
|
|
22189
|
-
if (!(i instanceof A.SpaceNode))
|
|
22190
|
-
|
|
22191
|
-
|
|
22192
|
-
|
|
22193
|
-
|
|
22194
|
-
|
|
22195
|
-
|
|
22196
|
-
|
|
22197
|
-
|
|
22198
|
-
|
|
22199
|
-
|
|
22200
|
-
|
|
22201
|
-
break;
|
|
22202
|
-
}
|
|
22203
|
-
default:
|
|
22204
|
-
n = !1;
|
|
22168
|
+
if (!(i instanceof A.SpaceNode)) if (i instanceof A.MathNode)
|
|
22169
|
+
switch (i.type) {
|
|
22170
|
+
case "mi":
|
|
22171
|
+
case "mn":
|
|
22172
|
+
case "ms":
|
|
22173
|
+
case "mspace":
|
|
22174
|
+
case "mtext":
|
|
22175
|
+
break;
|
|
22176
|
+
case "mo": {
|
|
22177
|
+
var o = i.children[0];
|
|
22178
|
+
i.children.length === 1 && o instanceof A.TextNode ? o.text = o.text.replace(/\u2212/, "-").replace(/\u2217/, "*") : n = !1;
|
|
22179
|
+
break;
|
|
22205
22180
|
}
|
|
22206
|
-
|
|
22207
|
-
|
|
22181
|
+
default:
|
|
22182
|
+
n = !1;
|
|
22183
|
+
}
|
|
22184
|
+
else
|
|
22185
|
+
n = !1;
|
|
22208
22186
|
}
|
|
22209
22187
|
if (n) {
|
|
22210
22188
|
var l = r.map((p) => p.toText()).join("");
|
|
@@ -22687,8 +22665,7 @@ var cu = function(e, r) {
|
|
|
22687
22665
|
} else
|
|
22688
22666
|
return null;
|
|
22689
22667
|
}
|
|
22690
|
-
else
|
|
22691
|
-
return null;
|
|
22668
|
+
else return null;
|
|
22692
22669
|
};
|
|
22693
22670
|
kt({
|
|
22694
22671
|
type: "supsub",
|
|
@@ -22802,8 +22779,7 @@ kt({
|
|
|
22802
22779
|
if (t.family === "bin") {
|
|
22803
22780
|
var n = x0(t, e);
|
|
22804
22781
|
n === "bold-italic" && r.setAttribute("mathvariant", n);
|
|
22805
|
-
} else
|
|
22806
|
-
t.family === "punct" ? r.setAttribute("separator", "true") : (t.family === "open" || t.family === "close") && r.setAttribute("stretchy", "false");
|
|
22782
|
+
} else t.family === "punct" ? r.setAttribute("separator", "true") : (t.family === "open" || t.family === "close") && r.setAttribute("stretchy", "false");
|
|
22807
22783
|
return r;
|
|
22808
22784
|
}
|
|
22809
22785
|
});
|
|
@@ -24615,8 +24591,7 @@ class Ar {
|
|
|
24615
24591
|
if (i) {
|
|
24616
24592
|
if (i.type === "internal")
|
|
24617
24593
|
continue;
|
|
24618
|
-
} else
|
|
24619
|
-
break;
|
|
24594
|
+
} else break;
|
|
24620
24595
|
n.push(i);
|
|
24621
24596
|
}
|
|
24622
24597
|
return this.mode === "text" && this.formLigatures(n), this.handleInfixNodes(n);
|
|
@@ -25254,8 +25229,7 @@ function Nu(t) {
|
|
|
25254
25229
|
if (!l && !u && !m)
|
|
25255
25230
|
return;
|
|
25256
25231
|
let f = i[i.length - 1], v = a;
|
|
25257
|
-
if (a.tagName === "code" && l && f && f.type === "element" && f.tagName === "pre" && (v = f, f = i[i.length - 2], p = !0), !f)
|
|
25258
|
-
return;
|
|
25232
|
+
if (a.tagName === "code" && l && f && f.type === "element" && f.tagName === "pre" && (v = f, f = i[i.length - 2], p = !0), !f) return;
|
|
25259
25233
|
const y = Jr(v, { whitespace: "pre" });
|
|
25260
25234
|
let x;
|
|
25261
25235
|
try {
|
|
@@ -25420,8 +25394,7 @@ function Tu(t) {
|
|
|
25420
25394
|
let f = -1;
|
|
25421
25395
|
for (; ++f < l.unsafe.length; ) {
|
|
25422
25396
|
const v = l.unsafe[f];
|
|
25423
|
-
if (!v.atBreak)
|
|
25424
|
-
continue;
|
|
25397
|
+
if (!v.atBreak) continue;
|
|
25425
25398
|
const y = l.compilePattern(v);
|
|
25426
25399
|
let x;
|
|
25427
25400
|
for (; x = y.exec(u); ) {
|