@schmitech/chatbot-widget 0.4.8 → 0.4.9
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/chatbot-widget.bundle.js +16 -18
- package/dist/chatbot-widget.css +1 -1
- package/dist/chatbot-widget.es.js +937 -936
- package/dist/chatbot-widget.umd.js +15 -17
- package/dist/shared/styles.d.ts +2 -2
- package/package.json +1 -1
|
@@ -66,11 +66,11 @@ function Ju() {
|
|
|
66
66
|
* LICENSE file in the root directory of this source tree.
|
|
67
67
|
*/
|
|
68
68
|
return e.NODE_ENV !== "production" && function() {
|
|
69
|
-
var t = sr, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), b = Symbol.iterator,
|
|
69
|
+
var t = sr, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), b = Symbol.iterator, C = "@@iterator";
|
|
70
70
|
function w(T) {
|
|
71
71
|
if (T === null || typeof T != "object")
|
|
72
72
|
return null;
|
|
73
|
-
var q = b && T[b] || T[
|
|
73
|
+
var q = b && T[b] || T[C];
|
|
74
74
|
return typeof q == "function" ? q : null;
|
|
75
75
|
}
|
|
76
76
|
var A = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -78,23 +78,23 @@ function Ju() {
|
|
|
78
78
|
{
|
|
79
79
|
for (var q = arguments.length, Z = new Array(q > 1 ? q - 1 : 0), oe = 1; oe < q; oe++)
|
|
80
80
|
Z[oe - 1] = arguments[oe];
|
|
81
|
-
|
|
81
|
+
D("error", T, Z);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function D(T, q, Z) {
|
|
85
85
|
{
|
|
86
|
-
var oe = A.ReactDebugCurrentFrame,
|
|
87
|
-
|
|
88
|
-
var
|
|
86
|
+
var oe = A.ReactDebugCurrentFrame, xe = oe.getStackAddendum();
|
|
87
|
+
xe !== "" && (q += "%s", Z = Z.concat([xe]));
|
|
88
|
+
var ke = Z.map(function(ge) {
|
|
89
89
|
return String(ge);
|
|
90
90
|
});
|
|
91
|
-
|
|
91
|
+
ke.unshift("Warning: " + q), Function.prototype.apply.call(console[T], console, ke);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
var
|
|
94
|
+
var L = !1, I = !1, F = !1, Y = !1, H = !1, N;
|
|
95
95
|
N = Symbol.for("react.module.reference");
|
|
96
96
|
function U(T) {
|
|
97
|
-
return !!(typeof T == "string" || typeof T == "function" || T === i || T === l || H || T === a || T === m || T === h || Y || T === v ||
|
|
97
|
+
return !!(typeof T == "string" || typeof T == "function" || T === i || T === l || H || T === a || T === m || T === h || Y || T === v || L || I || F || typeof T == "object" && T !== null && (T.$$typeof === p || T.$$typeof === d || T.$$typeof === o || T.$$typeof === s || T.$$typeof === u || // This needs to include all possible module reference object
|
|
98
98
|
// types supported by any Flight configuration anywhere since
|
|
99
99
|
// we don't know which Flight build this will end up being used
|
|
100
100
|
// with.
|
|
@@ -104,8 +104,8 @@ function Ju() {
|
|
|
104
104
|
var oe = T.displayName;
|
|
105
105
|
if (oe)
|
|
106
106
|
return oe;
|
|
107
|
-
var
|
|
108
|
-
return
|
|
107
|
+
var xe = q.displayName || q.name || "";
|
|
108
|
+
return xe !== "" ? Z + "(" + xe + ")" : Z;
|
|
109
109
|
}
|
|
110
110
|
function ae(T) {
|
|
111
111
|
return T.displayName || "Context";
|
|
@@ -145,9 +145,9 @@ function Ju() {
|
|
|
145
145
|
var oe = T.displayName || null;
|
|
146
146
|
return oe !== null ? oe : te(T.type) || "Memo";
|
|
147
147
|
case p: {
|
|
148
|
-
var
|
|
148
|
+
var xe = T, ke = xe._payload, ge = xe._init;
|
|
149
149
|
try {
|
|
150
|
-
return te(ge(
|
|
150
|
+
return te(ge(ke));
|
|
151
151
|
} catch {
|
|
152
152
|
return null;
|
|
153
153
|
}
|
|
@@ -155,14 +155,14 @@ function Ju() {
|
|
|
155
155
|
}
|
|
156
156
|
return null;
|
|
157
157
|
}
|
|
158
|
-
var K = Object.assign, ce = 0, pe,
|
|
158
|
+
var K = Object.assign, ce = 0, pe, Me, $e, S, Ce, we, E;
|
|
159
159
|
function Fe() {
|
|
160
160
|
}
|
|
161
161
|
Fe.__reactDisabledLog = !0;
|
|
162
162
|
function Ue() {
|
|
163
163
|
{
|
|
164
164
|
if (ce === 0) {
|
|
165
|
-
pe = console.log,
|
|
165
|
+
pe = console.log, Me = console.info, $e = console.warn, S = console.error, Ce = console.group, we = console.groupCollapsed, E = console.groupEnd;
|
|
166
166
|
var T = {
|
|
167
167
|
configurable: !0,
|
|
168
168
|
enumerable: !0,
|
|
@@ -195,7 +195,7 @@ function Ju() {
|
|
|
195
195
|
value: pe
|
|
196
196
|
}),
|
|
197
197
|
info: K({}, T, {
|
|
198
|
-
value:
|
|
198
|
+
value: Me
|
|
199
199
|
}),
|
|
200
200
|
warn: K({}, T, {
|
|
201
201
|
value: $e
|
|
@@ -207,7 +207,7 @@ function Ju() {
|
|
|
207
207
|
value: Ce
|
|
208
208
|
}),
|
|
209
209
|
groupCollapsed: K({}, T, {
|
|
210
|
-
value:
|
|
210
|
+
value: we
|
|
211
211
|
}),
|
|
212
212
|
groupEnd: K({}, T, {
|
|
213
213
|
value: E
|
|
@@ -223,8 +223,8 @@ function Ju() {
|
|
|
223
223
|
if (Re === void 0)
|
|
224
224
|
try {
|
|
225
225
|
throw Error();
|
|
226
|
-
} catch (
|
|
227
|
-
var oe =
|
|
226
|
+
} catch (xe) {
|
|
227
|
+
var oe = xe.stack.trim().match(/\n( *(at )?)/);
|
|
228
228
|
Re = oe && oe[1] || "";
|
|
229
229
|
}
|
|
230
230
|
return `
|
|
@@ -246,10 +246,10 @@ function Ju() {
|
|
|
246
246
|
}
|
|
247
247
|
var oe;
|
|
248
248
|
We = !0;
|
|
249
|
-
var
|
|
249
|
+
var xe = Error.prepareStackTrace;
|
|
250
250
|
Error.prepareStackTrace = void 0;
|
|
251
|
-
var
|
|
252
|
-
|
|
251
|
+
var ke;
|
|
252
|
+
ke = Ve.current, Ve.current = null, Ue();
|
|
253
253
|
try {
|
|
254
254
|
if (q) {
|
|
255
255
|
var ge = function() {
|
|
@@ -286,23 +286,23 @@ function Ju() {
|
|
|
286
286
|
if (at && oe && typeof at.stack == "string") {
|
|
287
287
|
for (var de = at.stack.split(`
|
|
288
288
|
`), Qe = oe.stack.split(`
|
|
289
|
-
`),
|
|
289
|
+
`), Le = de.length - 1, _e = Qe.length - 1; Le >= 1 && _e >= 0 && de[Le] !== Qe[_e]; )
|
|
290
290
|
_e--;
|
|
291
|
-
for (;
|
|
292
|
-
if (de[
|
|
293
|
-
if (
|
|
291
|
+
for (; Le >= 1 && _e >= 0; Le--, _e--)
|
|
292
|
+
if (de[Le] !== Qe[_e]) {
|
|
293
|
+
if (Le !== 1 || _e !== 1)
|
|
294
294
|
do
|
|
295
|
-
if (
|
|
295
|
+
if (Le--, _e--, _e < 0 || de[Le] !== Qe[_e]) {
|
|
296
296
|
var yt = `
|
|
297
|
-
` + de[
|
|
297
|
+
` + de[Le].replace(" at new ", " at ");
|
|
298
298
|
return T.displayName && yt.includes("<anonymous>") && (yt = yt.replace("<anonymous>", T.displayName)), typeof T == "function" && nt.set(T, yt), yt;
|
|
299
299
|
}
|
|
300
|
-
while (
|
|
300
|
+
while (Le >= 1 && _e >= 0);
|
|
301
301
|
break;
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
} finally {
|
|
305
|
-
We = !1, Ve.current =
|
|
305
|
+
We = !1, Ve.current = ke, ze(), Error.prepareStackTrace = xe;
|
|
306
306
|
}
|
|
307
307
|
var Er = T ? T.displayName || T.name : "", pr = Er ? Ge(Er) : "";
|
|
308
308
|
return typeof T == "function" && nt.set(T, pr), pr;
|
|
@@ -334,9 +334,9 @@ function Ju() {
|
|
|
334
334
|
case d:
|
|
335
335
|
return Nt(T.type, q, Z);
|
|
336
336
|
case p: {
|
|
337
|
-
var oe = T,
|
|
337
|
+
var oe = T, xe = oe._payload, ke = oe._init;
|
|
338
338
|
try {
|
|
339
|
-
return Nt(
|
|
339
|
+
return Nt(ke(xe), q, Z);
|
|
340
340
|
} catch {
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -351,11 +351,11 @@ function Ju() {
|
|
|
351
351
|
} else
|
|
352
352
|
Ot.setExtraStackFrame(null);
|
|
353
353
|
}
|
|
354
|
-
function ri(T, q, Z, oe,
|
|
354
|
+
function ri(T, q, Z, oe, xe) {
|
|
355
355
|
{
|
|
356
|
-
var
|
|
356
|
+
var ke = Function.call.bind(vt);
|
|
357
357
|
for (var ge in T)
|
|
358
|
-
if (
|
|
358
|
+
if (ke(T, ge)) {
|
|
359
359
|
var de = void 0;
|
|
360
360
|
try {
|
|
361
361
|
if (typeof T[ge] != "function") {
|
|
@@ -363,10 +363,10 @@ function Ju() {
|
|
|
363
363
|
throw Qe.name = "Invariant Violation", Qe;
|
|
364
364
|
}
|
|
365
365
|
de = T[ge](q, ge, oe, Z, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
366
|
-
} catch (
|
|
367
|
-
de =
|
|
366
|
+
} catch (Le) {
|
|
367
|
+
de = Le;
|
|
368
368
|
}
|
|
369
|
-
de && !(de instanceof Error) && (hr(
|
|
369
|
+
de && !(de instanceof Error) && (hr(xe), z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", oe || "React class", Z, ge, typeof de), hr(null)), de instanceof Error && !(de.message in jt) && (jt[de.message] = !0, hr(xe), z("Failed %s type: %s", Z, de.message), hr(null));
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
}
|
|
@@ -399,7 +399,7 @@ function Ju() {
|
|
|
399
399
|
ref: !0,
|
|
400
400
|
__self: !0,
|
|
401
401
|
__source: !0
|
|
402
|
-
},
|
|
402
|
+
}, be, it;
|
|
403
403
|
function $t(T) {
|
|
404
404
|
if (vt.call(T, "ref")) {
|
|
405
405
|
var q = Object.getOwnPropertyDescriptor(T, "ref").get;
|
|
@@ -422,7 +422,7 @@ function Ju() {
|
|
|
422
422
|
function fr(T, q) {
|
|
423
423
|
{
|
|
424
424
|
var Z = function() {
|
|
425
|
-
|
|
425
|
+
be || (be = !0, z("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", q));
|
|
426
426
|
};
|
|
427
427
|
Z.isReactWarning = !0, Object.defineProperty(T, "key", {
|
|
428
428
|
get: Z,
|
|
@@ -441,7 +441,7 @@ function Ju() {
|
|
|
441
441
|
});
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
var er = function(T, q, Z, oe,
|
|
444
|
+
var er = function(T, q, Z, oe, xe, ke, ge) {
|
|
445
445
|
var de = {
|
|
446
446
|
// This tag allows us to uniquely identify this as a React Element
|
|
447
447
|
$$typeof: r,
|
|
@@ -451,7 +451,7 @@ function Ju() {
|
|
|
451
451
|
ref: Z,
|
|
452
452
|
props: ge,
|
|
453
453
|
// Record the component responsible for creating this element.
|
|
454
|
-
_owner:
|
|
454
|
+
_owner: ke
|
|
455
455
|
};
|
|
456
456
|
return de._store = {}, Object.defineProperty(de._store, "validated", {
|
|
457
457
|
configurable: !1,
|
|
@@ -467,25 +467,25 @@ function Ju() {
|
|
|
467
467
|
configurable: !1,
|
|
468
468
|
enumerable: !1,
|
|
469
469
|
writable: !1,
|
|
470
|
-
value:
|
|
470
|
+
value: xe
|
|
471
471
|
}), Object.freeze && (Object.freeze(de.props), Object.freeze(de)), de;
|
|
472
472
|
};
|
|
473
|
-
function
|
|
473
|
+
function Ct(T, q, Z, oe, xe) {
|
|
474
474
|
{
|
|
475
|
-
var
|
|
476
|
-
Z !== void 0 && (W(Z), de = "" + Z), Et(q) && (W(q.key), de = "" + q.key), $t(q) && (Qe = q.ref, mr(q,
|
|
477
|
-
for (
|
|
478
|
-
vt.call(q,
|
|
475
|
+
var ke, ge = {}, de = null, Qe = null;
|
|
476
|
+
Z !== void 0 && (W(Z), de = "" + Z), Et(q) && (W(q.key), de = "" + q.key), $t(q) && (Qe = q.ref, mr(q, xe));
|
|
477
|
+
for (ke in q)
|
|
478
|
+
vt.call(q, ke) && !me.hasOwnProperty(ke) && (ge[ke] = q[ke]);
|
|
479
479
|
if (T && T.defaultProps) {
|
|
480
|
-
var
|
|
481
|
-
for (
|
|
482
|
-
ge[
|
|
480
|
+
var Le = T.defaultProps;
|
|
481
|
+
for (ke in Le)
|
|
482
|
+
ge[ke] === void 0 && (ge[ke] = Le[ke]);
|
|
483
483
|
}
|
|
484
484
|
if (de || Qe) {
|
|
485
485
|
var _e = typeof T == "function" ? T.displayName || T.name || "Unknown" : T;
|
|
486
486
|
de && fr(ge, _e), Qe && Ke(ge, _e);
|
|
487
487
|
}
|
|
488
|
-
return er(T, de, Qe,
|
|
488
|
+
return er(T, de, Qe, xe, oe, le.current, ge);
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
var li = A.ReactCurrentOwner, ua = A.ReactDebugCurrentFrame;
|
|
@@ -554,9 +554,9 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
554
554
|
else if (si(T))
|
|
555
555
|
T._store && (T._store.validated = !0);
|
|
556
556
|
else if (T) {
|
|
557
|
-
var
|
|
558
|
-
if (typeof
|
|
559
|
-
for (var
|
|
557
|
+
var xe = w(T);
|
|
558
|
+
if (typeof xe == "function" && xe !== T.entries)
|
|
559
|
+
for (var ke = xe.call(T), ge; !(ge = ke.next()).done; )
|
|
560
560
|
si(ge.value) && ma(ge.value, q);
|
|
561
561
|
}
|
|
562
562
|
}
|
|
@@ -580,8 +580,8 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
580
580
|
ri(Z, T.props, "prop", oe, T);
|
|
581
581
|
} else if (q.PropTypes !== void 0 && !oi) {
|
|
582
582
|
oi = !0;
|
|
583
|
-
var
|
|
584
|
-
z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
583
|
+
var xe = te(q);
|
|
584
|
+
z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", xe || "Unknown");
|
|
585
585
|
}
|
|
586
586
|
typeof q.getDefaultProps == "function" && !q.getDefaultProps.isReactClassApproved && z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
587
587
|
}
|
|
@@ -599,7 +599,7 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
601
|
var pa = {};
|
|
602
|
-
function da(T, q, Z, oe,
|
|
602
|
+
function da(T, q, Z, oe, xe, ke) {
|
|
603
603
|
{
|
|
604
604
|
var ge = U(T);
|
|
605
605
|
if (!ge) {
|
|
@@ -607,10 +607,10 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
607
607
|
(T === void 0 || typeof T == "object" && T !== null && Object.keys(T).length === 0) && (de += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
608
608
|
var Qe = _u();
|
|
609
609
|
Qe ? de += Qe : de += ca();
|
|
610
|
-
var
|
|
611
|
-
T === null ?
|
|
610
|
+
var Le;
|
|
611
|
+
T === null ? Le = "null" : $r(T) ? Le = "array" : T !== void 0 && T.$$typeof === r ? (Le = "<" + (te(T.type) || "Unknown") + " />", de = " Did you accidentally export a JSX literal instead of a component?") : Le = typeof T, z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Le, de);
|
|
612
612
|
}
|
|
613
|
-
var _e =
|
|
613
|
+
var _e = Ct(T, q, Z, xe, ke);
|
|
614
614
|
if (_e == null)
|
|
615
615
|
return _e;
|
|
616
616
|
if (ge) {
|
|
@@ -811,16 +811,16 @@ function hc() {
|
|
|
811
811
|
}
|
|
812
812
|
var r = typeof Object.is == "function" ? Object.is : t, n = e.useState, i = e.useEffect, a = e.useLayoutEffect, l = e.useDebugValue;
|
|
813
813
|
function o(h, d) {
|
|
814
|
-
var p = d(), v = n({ inst: { value: p, getSnapshot: d } }), b = v[0].inst,
|
|
814
|
+
var p = d(), v = n({ inst: { value: p, getSnapshot: d } }), b = v[0].inst, C = v[1];
|
|
815
815
|
return a(
|
|
816
816
|
function() {
|
|
817
|
-
b.value = p, b.getSnapshot = d, s(b) &&
|
|
817
|
+
b.value = p, b.getSnapshot = d, s(b) && C({ inst: b });
|
|
818
818
|
},
|
|
819
819
|
[h, p, d]
|
|
820
820
|
), i(
|
|
821
821
|
function() {
|
|
822
|
-
return s(b) &&
|
|
823
|
-
s(b) &&
|
|
822
|
+
return s(b) && C({ inst: b }), h(function() {
|
|
823
|
+
s(b) && C({ inst: b });
|
|
824
824
|
});
|
|
825
825
|
},
|
|
826
826
|
[h]
|
|
@@ -864,22 +864,22 @@ function mc() {
|
|
|
864
864
|
h || a.startTransition === void 0 || (h = !0, console.error(
|
|
865
865
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
866
866
|
));
|
|
867
|
-
var
|
|
867
|
+
var C = b();
|
|
868
868
|
if (!d) {
|
|
869
869
|
var w = b();
|
|
870
|
-
l(
|
|
870
|
+
l(C, w) || (console.error(
|
|
871
871
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
872
872
|
), d = !0);
|
|
873
873
|
}
|
|
874
874
|
w = o({
|
|
875
|
-
inst: { value:
|
|
875
|
+
inst: { value: C, getSnapshot: b }
|
|
876
876
|
});
|
|
877
877
|
var A = w[0].inst, z = w[1];
|
|
878
878
|
return u(
|
|
879
879
|
function() {
|
|
880
|
-
A.value =
|
|
880
|
+
A.value = C, A.getSnapshot = b, n(A) && z({ inst: A });
|
|
881
881
|
},
|
|
882
|
-
[v,
|
|
882
|
+
[v, C, b]
|
|
883
883
|
), s(
|
|
884
884
|
function() {
|
|
885
885
|
return n(A) && z({ inst: A }), v(function() {
|
|
@@ -887,14 +887,14 @@ function mc() {
|
|
|
887
887
|
});
|
|
888
888
|
},
|
|
889
889
|
[v]
|
|
890
|
-
), m(
|
|
890
|
+
), m(C), C;
|
|
891
891
|
}
|
|
892
892
|
function n(v) {
|
|
893
893
|
var b = v.getSnapshot;
|
|
894
894
|
v = v.value;
|
|
895
895
|
try {
|
|
896
|
-
var
|
|
897
|
-
return !l(v,
|
|
896
|
+
var C = b();
|
|
897
|
+
return !l(v, C);
|
|
898
898
|
} catch {
|
|
899
899
|
return !0;
|
|
900
900
|
}
|
|
@@ -945,33 +945,33 @@ function fc() {
|
|
|
945
945
|
if (A = !0, z = I, I = d(I), p !== void 0 && b.hasValue) {
|
|
946
946
|
var F = b.value;
|
|
947
947
|
if (p(F, I))
|
|
948
|
-
return
|
|
948
|
+
return D = F;
|
|
949
949
|
}
|
|
950
|
-
return
|
|
950
|
+
return D = I;
|
|
951
951
|
}
|
|
952
|
-
if (F =
|
|
952
|
+
if (F = D, n(z, I)) return F;
|
|
953
953
|
var Y = d(I);
|
|
954
|
-
return p !== void 0 && p(F, Y) ? (z = I, F) : (z = I,
|
|
954
|
+
return p !== void 0 && p(F, Y) ? (z = I, F) : (z = I, D = Y);
|
|
955
955
|
}
|
|
956
|
-
var A = !1, z,
|
|
956
|
+
var A = !1, z, D, L = h === void 0 ? null : h;
|
|
957
957
|
return [
|
|
958
958
|
function() {
|
|
959
959
|
return w(m());
|
|
960
960
|
},
|
|
961
|
-
|
|
962
|
-
return w(
|
|
961
|
+
L === null ? void 0 : function() {
|
|
962
|
+
return w(L());
|
|
963
963
|
}
|
|
964
964
|
];
|
|
965
965
|
},
|
|
966
966
|
[m, h, d, p]
|
|
967
967
|
);
|
|
968
|
-
var
|
|
968
|
+
var C = i(u, v[0], v[1]);
|
|
969
969
|
return l(
|
|
970
970
|
function() {
|
|
971
|
-
b.hasValue = !0, b.value =
|
|
971
|
+
b.hasValue = !0, b.value = C;
|
|
972
972
|
},
|
|
973
|
-
[
|
|
974
|
-
), s(
|
|
973
|
+
[C]
|
|
974
|
+
), s(C), C;
|
|
975
975
|
}, hi;
|
|
976
976
|
}
|
|
977
977
|
var pi = {}, Ea;
|
|
@@ -997,26 +997,26 @@ function pc() {
|
|
|
997
997
|
pi.useSyncExternalStoreWithSelector = function(m, h, d, p, v) {
|
|
998
998
|
var b = l(null);
|
|
999
999
|
if (b.current === null) {
|
|
1000
|
-
var
|
|
1001
|
-
b.current =
|
|
1002
|
-
} else
|
|
1000
|
+
var C = { hasValue: !1, value: null };
|
|
1001
|
+
b.current = C;
|
|
1002
|
+
} else C = b.current;
|
|
1003
1003
|
b = s(
|
|
1004
1004
|
function() {
|
|
1005
1005
|
function A(F) {
|
|
1006
1006
|
if (!z) {
|
|
1007
|
-
if (z = !0,
|
|
1008
|
-
var Y =
|
|
1007
|
+
if (z = !0, D = F, F = p(F), v !== void 0 && C.hasValue) {
|
|
1008
|
+
var Y = C.value;
|
|
1009
1009
|
if (v(Y, F))
|
|
1010
|
-
return
|
|
1010
|
+
return L = Y;
|
|
1011
1011
|
}
|
|
1012
|
-
return
|
|
1012
|
+
return L = F;
|
|
1013
1013
|
}
|
|
1014
|
-
if (Y =
|
|
1014
|
+
if (Y = L, i(D, F))
|
|
1015
1015
|
return Y;
|
|
1016
1016
|
var H = p(F);
|
|
1017
|
-
return v !== void 0 && v(Y, H) ? (
|
|
1017
|
+
return v !== void 0 && v(Y, H) ? (D = F, Y) : (D = F, L = H);
|
|
1018
1018
|
}
|
|
1019
|
-
var z = !1,
|
|
1019
|
+
var z = !1, D, L, I = d === void 0 ? null : d;
|
|
1020
1020
|
return [
|
|
1021
1021
|
function() {
|
|
1022
1022
|
return A(h());
|
|
@@ -1031,7 +1031,7 @@ function pc() {
|
|
|
1031
1031
|
var w = a(m, b[0], b[1]);
|
|
1032
1032
|
return o(
|
|
1033
1033
|
function() {
|
|
1034
|
-
|
|
1034
|
+
C.hasValue = !0, C.value = w;
|
|
1035
1035
|
},
|
|
1036
1036
|
[w]
|
|
1037
1037
|
), u(w), w;
|
|
@@ -1042,12 +1042,12 @@ var dc = {};
|
|
|
1042
1042
|
dc.NODE_ENV === "production" ? Yi.exports = fc() : Yi.exports = pc();
|
|
1043
1043
|
var gc = Yi.exports;
|
|
1044
1044
|
const vc = /* @__PURE__ */ w0(gc), xo = {}, { useDebugValue: yc } = sr, { useSyncExternalStoreWithSelector: bc } = vc;
|
|
1045
|
-
let
|
|
1045
|
+
let Ca = !1;
|
|
1046
1046
|
const xc = (e) => e;
|
|
1047
1047
|
function wc(e, t = xc, r) {
|
|
1048
|
-
(xo ? "production" : void 0) !== "production" && r && !
|
|
1048
|
+
(xo ? "production" : void 0) !== "production" && r && !Ca && (console.warn(
|
|
1049
1049
|
"[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
|
|
1050
|
-
),
|
|
1050
|
+
), Ca = !0);
|
|
1051
1051
|
const n = bc(
|
|
1052
1052
|
e.subscribe,
|
|
1053
1053
|
e.getState,
|
|
@@ -1057,13 +1057,13 @@ function wc(e, t = xc, r) {
|
|
|
1057
1057
|
);
|
|
1058
1058
|
return yc(n), n;
|
|
1059
1059
|
}
|
|
1060
|
-
const
|
|
1060
|
+
const Ma = (e) => {
|
|
1061
1061
|
(xo ? "production" : void 0) !== "production" && typeof e != "function" && console.warn(
|
|
1062
1062
|
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
|
|
1063
1063
|
);
|
|
1064
1064
|
const t = typeof e == "function" ? cc(e) : e, r = (n, i) => wc(t, n, i);
|
|
1065
1065
|
return Object.assign(r, t), r;
|
|
1066
|
-
}, kc = (e) => e ?
|
|
1066
|
+
}, kc = (e) => e ? Ma(e) : Ma;
|
|
1067
1067
|
let Xi = null, wo = null, ko = null;
|
|
1068
1068
|
const Fr = (e, t = null, r = null) => {
|
|
1069
1069
|
if (!e || typeof e != "string")
|
|
@@ -1092,7 +1092,7 @@ const Fr = (e, t = null, r = null) => {
|
|
|
1092
1092
|
...r
|
|
1093
1093
|
}
|
|
1094
1094
|
};
|
|
1095
|
-
},
|
|
1095
|
+
}, Cc = (e, t = !0) => ({
|
|
1096
1096
|
jsonrpc: "2.0",
|
|
1097
1097
|
method: "tools/call",
|
|
1098
1098
|
params: {
|
|
@@ -1106,7 +1106,7 @@ const Fr = (e, t = null, r = null) => {
|
|
|
1106
1106
|
},
|
|
1107
1107
|
id: Date.now().toString(36) + Math.random().toString(36).substring(2)
|
|
1108
1108
|
});
|
|
1109
|
-
async function*
|
|
1109
|
+
async function* Mc(e, t = !0) {
|
|
1110
1110
|
var r, n, i, a, l, o, s, u, m;
|
|
1111
1111
|
try {
|
|
1112
1112
|
const h = Sc(), d = new AbortController(), p = setTimeout(() => d.abort(), 6e4), v = await fetch(`${h}/v1/chat`, {
|
|
@@ -1116,7 +1116,7 @@ async function* Cc(e, t = !0) {
|
|
|
1116
1116
|
"Content-Type": "application/json",
|
|
1117
1117
|
Accept: t ? "text/event-stream" : "application/json"
|
|
1118
1118
|
},
|
|
1119
|
-
body: JSON.stringify(
|
|
1119
|
+
body: JSON.stringify(Cc(e, t))
|
|
1120
1120
|
}),
|
|
1121
1121
|
signal: d.signal
|
|
1122
1122
|
});
|
|
@@ -1136,14 +1136,14 @@ async function* Cc(e, t = !0) {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
const b = (l = v.body) == null ? void 0 : l.getReader();
|
|
1138
1138
|
if (!b) throw new Error("No reader available");
|
|
1139
|
-
const
|
|
1139
|
+
const C = new TextDecoder();
|
|
1140
1140
|
let w = "", A = "";
|
|
1141
1141
|
try {
|
|
1142
1142
|
for (; ; ) {
|
|
1143
|
-
const { done: z, value:
|
|
1143
|
+
const { done: z, value: D } = await b.read();
|
|
1144
1144
|
if (z) break;
|
|
1145
|
-
const
|
|
1146
|
-
w +=
|
|
1145
|
+
const L = C.decode(D, { stream: !0 });
|
|
1146
|
+
w += L;
|
|
1147
1147
|
const I = w.split(`
|
|
1148
1148
|
`);
|
|
1149
1149
|
w = I.pop() || "";
|
|
@@ -1179,12 +1179,12 @@ async function* Cc(e, t = !0) {
|
|
|
1179
1179
|
try {
|
|
1180
1180
|
const z = w.slice(6).trim();
|
|
1181
1181
|
if (z !== "[DONE]") {
|
|
1182
|
-
const
|
|
1183
|
-
if ((m = (u =
|
|
1184
|
-
const
|
|
1185
|
-
|
|
1186
|
-
text:
|
|
1187
|
-
done:
|
|
1182
|
+
const D = JSON.parse(z);
|
|
1183
|
+
if ((m = (u = D.result) == null ? void 0 : u.chunk) != null && m.content) {
|
|
1184
|
+
const L = za(D.result.chunk.content, A);
|
|
1185
|
+
L && (yield {
|
|
1186
|
+
text: L,
|
|
1187
|
+
done: D.result.type === "complete"
|
|
1188
1188
|
});
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
@@ -1279,10 +1279,8 @@ let ve = {
|
|
|
1279
1279
|
}
|
|
1280
1280
|
};
|
|
1281
1281
|
const Oc = `
|
|
1282
|
-
@import url('https://fonts.googleapis.com/css2?family=Mona+Sans:ital,wght@0,200..900;1,200..900&display=swap');
|
|
1283
|
-
|
|
1284
1282
|
body, button, input, textarea {
|
|
1285
|
-
font-family:
|
|
1283
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
1286
1284
|
}
|
|
1287
1285
|
|
|
1288
1286
|
/* Complete focus ring removal - covers all browsers and scenarios */
|
|
@@ -1579,7 +1577,7 @@ const Oc = `
|
|
|
1579
1577
|
`, Rc = (e) => {
|
|
1580
1578
|
const { BREAKPOINTS: t, WIDTHS: r } = ve.WINDOW_DIMENSIONS;
|
|
1581
1579
|
return e < t.SM ? "100%" : e < t.MD ? r.SM : e < t.LG ? r.MD : r.LG;
|
|
1582
|
-
},
|
|
1580
|
+
}, Dc = (e) => e < ve.WINDOW_DIMENSIONS.BREAKPOINTS.SM ? "100%" : ve.WINDOW_DIMENSIONS.WIDTHS.SM, Lc = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif", Bc = (e, t) => ({
|
|
1583
1581
|
color: e >= t * 0.9 ? "#ef4444" : "#6b7280",
|
|
1584
1582
|
backgroundColor: e >= t * 0.9 ? "rgba(239, 68, 68, 0.1)" : "rgba(107, 114, 128, 0.1)",
|
|
1585
1583
|
fontSize: "0.7rem"
|
|
@@ -1629,7 +1627,7 @@ const So = kc((e, t) => ({
|
|
|
1629
1627
|
}));
|
|
1630
1628
|
let a = !1;
|
|
1631
1629
|
try {
|
|
1632
|
-
for await (const l of
|
|
1630
|
+
for await (const l of Mc(i))
|
|
1633
1631
|
l.text && (t().appendToLastMessage(l.text), a = !0);
|
|
1634
1632
|
a || t().appendToLastMessage("No response received from the server. Please try again later.");
|
|
1635
1633
|
} catch (l) {
|
|
@@ -1709,7 +1707,7 @@ const So = kc((e, t) => ({
|
|
|
1709
1707
|
}
|
|
1710
1708
|
}, []), d = zt(() => {
|
|
1711
1709
|
if (o.current && !e) {
|
|
1712
|
-
const { scrollTop: v, scrollHeight: b, clientHeight:
|
|
1710
|
+
const { scrollTop: v, scrollHeight: b, clientHeight: C } = o.current, w = Math.abs(b - v - C) < ve.SCROLL_THRESHOLDS.BOTTOM_THRESHOLD, A = v < ve.SCROLL_THRESHOLDS.TOP_THRESHOLD;
|
|
1713
1711
|
r(!A && v > ve.SCROLL_THRESHOLDS.SHOW_SCROLL_TOP_OFFSET), i(!w);
|
|
1714
1712
|
}
|
|
1715
1713
|
}, [e]), p = zt(() => {
|
|
@@ -1882,7 +1880,7 @@ ct.prototype.property = "";
|
|
|
1882
1880
|
ct.prototype.spaceSeparated = !1;
|
|
1883
1881
|
ct.prototype.space = void 0;
|
|
1884
1882
|
let Xc = 0;
|
|
1885
|
-
const se = kr(), He = kr(), Qi = kr(), $ = kr(),
|
|
1883
|
+
const se = kr(), He = kr(), Qi = kr(), $ = kr(), Ae = kr(), Nr = kr(), mt = kr();
|
|
1886
1884
|
function kr() {
|
|
1887
1885
|
return 2 ** ++Xc;
|
|
1888
1886
|
}
|
|
@@ -1894,7 +1892,7 @@ const Zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1894
1892
|
commaSeparated: Nr,
|
|
1895
1893
|
number: $,
|
|
1896
1894
|
overloadedBoolean: Qi,
|
|
1897
|
-
spaceSeparated:
|
|
1895
|
+
spaceSeparated: Ae
|
|
1898
1896
|
}, Symbol.toStringTag, { value: "Module" })), di = (
|
|
1899
1897
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
1900
1898
|
Object.keys(Zi)
|
|
@@ -1915,15 +1913,15 @@ class S0 extends ct {
|
|
|
1915
1913
|
*/
|
|
1916
1914
|
constructor(t, r, n, i) {
|
|
1917
1915
|
let a = -1;
|
|
1918
|
-
if (super(t, r),
|
|
1916
|
+
if (super(t, r), Da(this, "space", i), typeof n == "number")
|
|
1919
1917
|
for (; ++a < di.length; ) {
|
|
1920
1918
|
const l = di[a];
|
|
1921
|
-
|
|
1919
|
+
Da(this, di[a], (n & Zi[l]) === Zi[l]);
|
|
1922
1920
|
}
|
|
1923
1921
|
}
|
|
1924
1922
|
}
|
|
1925
1923
|
S0.prototype.defined = !0;
|
|
1926
|
-
function
|
|
1924
|
+
function Da(e, t, r) {
|
|
1927
1925
|
r && (e[t] = r);
|
|
1928
1926
|
}
|
|
1929
1927
|
function _r(e) {
|
|
@@ -1939,7 +1937,7 @@ function _r(e) {
|
|
|
1939
1937
|
}
|
|
1940
1938
|
return new on(t, r, e.space);
|
|
1941
1939
|
}
|
|
1942
|
-
const
|
|
1940
|
+
const Co = _r({
|
|
1943
1941
|
properties: {
|
|
1944
1942
|
ariaActiveDescendant: null,
|
|
1945
1943
|
ariaAtomic: He,
|
|
@@ -1949,36 +1947,36 @@ const Mo = _r({
|
|
|
1949
1947
|
ariaColCount: $,
|
|
1950
1948
|
ariaColIndex: $,
|
|
1951
1949
|
ariaColSpan: $,
|
|
1952
|
-
ariaControls:
|
|
1950
|
+
ariaControls: Ae,
|
|
1953
1951
|
ariaCurrent: null,
|
|
1954
|
-
ariaDescribedBy:
|
|
1952
|
+
ariaDescribedBy: Ae,
|
|
1955
1953
|
ariaDetails: null,
|
|
1956
1954
|
ariaDisabled: He,
|
|
1957
|
-
ariaDropEffect:
|
|
1955
|
+
ariaDropEffect: Ae,
|
|
1958
1956
|
ariaErrorMessage: null,
|
|
1959
1957
|
ariaExpanded: He,
|
|
1960
|
-
ariaFlowTo:
|
|
1958
|
+
ariaFlowTo: Ae,
|
|
1961
1959
|
ariaGrabbed: He,
|
|
1962
1960
|
ariaHasPopup: null,
|
|
1963
1961
|
ariaHidden: He,
|
|
1964
1962
|
ariaInvalid: null,
|
|
1965
1963
|
ariaKeyShortcuts: null,
|
|
1966
1964
|
ariaLabel: null,
|
|
1967
|
-
ariaLabelledBy:
|
|
1965
|
+
ariaLabelledBy: Ae,
|
|
1968
1966
|
ariaLevel: $,
|
|
1969
1967
|
ariaLive: null,
|
|
1970
1968
|
ariaModal: He,
|
|
1971
1969
|
ariaMultiLine: He,
|
|
1972
1970
|
ariaMultiSelectable: He,
|
|
1973
1971
|
ariaOrientation: null,
|
|
1974
|
-
ariaOwns:
|
|
1972
|
+
ariaOwns: Ae,
|
|
1975
1973
|
ariaPlaceholder: null,
|
|
1976
1974
|
ariaPosInSet: $,
|
|
1977
1975
|
ariaPressed: He,
|
|
1978
1976
|
ariaReadOnly: He,
|
|
1979
1977
|
ariaRelevant: null,
|
|
1980
1978
|
ariaRequired: He,
|
|
1981
|
-
ariaRoleDescription:
|
|
1979
|
+
ariaRoleDescription: Ae,
|
|
1982
1980
|
ariaRowCount: $,
|
|
1983
1981
|
ariaRowIndex: $,
|
|
1984
1982
|
ariaRowSpan: $,
|
|
@@ -1995,11 +1993,11 @@ const Mo = _r({
|
|
|
1995
1993
|
return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
|
|
1996
1994
|
}
|
|
1997
1995
|
});
|
|
1998
|
-
function
|
|
1996
|
+
function Mo(e, t) {
|
|
1999
1997
|
return t in e ? e[t] : t;
|
|
2000
1998
|
}
|
|
2001
1999
|
function zo(e, t) {
|
|
2002
|
-
return
|
|
2000
|
+
return Mo(e, t.toLowerCase());
|
|
2003
2001
|
}
|
|
2004
2002
|
const Kc = _r({
|
|
2005
2003
|
attributes: {
|
|
@@ -2013,8 +2011,8 @@ const Kc = _r({
|
|
|
2013
2011
|
// Standard Properties.
|
|
2014
2012
|
abbr: null,
|
|
2015
2013
|
accept: Nr,
|
|
2016
|
-
acceptCharset:
|
|
2017
|
-
accessKey:
|
|
2014
|
+
acceptCharset: Ae,
|
|
2015
|
+
accessKey: Ae,
|
|
2018
2016
|
action: null,
|
|
2019
2017
|
allow: null,
|
|
2020
2018
|
allowFullScreen: se,
|
|
@@ -2024,21 +2022,21 @@ const Kc = _r({
|
|
|
2024
2022
|
as: null,
|
|
2025
2023
|
async: se,
|
|
2026
2024
|
autoCapitalize: null,
|
|
2027
|
-
autoComplete:
|
|
2025
|
+
autoComplete: Ae,
|
|
2028
2026
|
autoFocus: se,
|
|
2029
2027
|
autoPlay: se,
|
|
2030
|
-
blocking:
|
|
2028
|
+
blocking: Ae,
|
|
2031
2029
|
capture: null,
|
|
2032
2030
|
charSet: null,
|
|
2033
2031
|
checked: se,
|
|
2034
2032
|
cite: null,
|
|
2035
|
-
className:
|
|
2033
|
+
className: Ae,
|
|
2036
2034
|
cols: $,
|
|
2037
2035
|
colSpan: null,
|
|
2038
2036
|
content: null,
|
|
2039
2037
|
contentEditable: He,
|
|
2040
2038
|
controls: se,
|
|
2041
|
-
controlsList:
|
|
2039
|
+
controlsList: Ae,
|
|
2042
2040
|
coords: $ | Nr,
|
|
2043
2041
|
crossOrigin: null,
|
|
2044
2042
|
data: null,
|
|
@@ -2060,14 +2058,14 @@ const Kc = _r({
|
|
|
2060
2058
|
formMethod: null,
|
|
2061
2059
|
formNoValidate: se,
|
|
2062
2060
|
formTarget: null,
|
|
2063
|
-
headers:
|
|
2061
|
+
headers: Ae,
|
|
2064
2062
|
height: $,
|
|
2065
2063
|
hidden: Qi,
|
|
2066
2064
|
high: $,
|
|
2067
2065
|
href: null,
|
|
2068
2066
|
hrefLang: null,
|
|
2069
|
-
htmlFor:
|
|
2070
|
-
httpEquiv:
|
|
2067
|
+
htmlFor: Ae,
|
|
2068
|
+
httpEquiv: Ae,
|
|
2071
2069
|
id: null,
|
|
2072
2070
|
imageSizes: null,
|
|
2073
2071
|
imageSrcSet: null,
|
|
@@ -2077,10 +2075,10 @@ const Kc = _r({
|
|
|
2077
2075
|
is: null,
|
|
2078
2076
|
isMap: se,
|
|
2079
2077
|
itemId: null,
|
|
2080
|
-
itemProp:
|
|
2081
|
-
itemRef:
|
|
2078
|
+
itemProp: Ae,
|
|
2079
|
+
itemRef: Ae,
|
|
2082
2080
|
itemScope: se,
|
|
2083
|
-
itemType:
|
|
2081
|
+
itemType: Ae,
|
|
2084
2082
|
kind: null,
|
|
2085
2083
|
label: null,
|
|
2086
2084
|
lang: null,
|
|
@@ -2193,7 +2191,7 @@ const Kc = _r({
|
|
|
2193
2191
|
open: se,
|
|
2194
2192
|
optimum: $,
|
|
2195
2193
|
pattern: null,
|
|
2196
|
-
ping:
|
|
2194
|
+
ping: Ae,
|
|
2197
2195
|
placeholder: null,
|
|
2198
2196
|
playsInline: se,
|
|
2199
2197
|
popover: null,
|
|
@@ -2203,12 +2201,12 @@ const Kc = _r({
|
|
|
2203
2201
|
preload: null,
|
|
2204
2202
|
readOnly: se,
|
|
2205
2203
|
referrerPolicy: null,
|
|
2206
|
-
rel:
|
|
2204
|
+
rel: Ae,
|
|
2207
2205
|
required: se,
|
|
2208
2206
|
reversed: se,
|
|
2209
2207
|
rows: $,
|
|
2210
2208
|
rowSpan: $,
|
|
2211
|
-
sandbox:
|
|
2209
|
+
sandbox: Ae,
|
|
2212
2210
|
scope: null,
|
|
2213
2211
|
scoped: se,
|
|
2214
2212
|
seamless: se,
|
|
@@ -2246,7 +2244,7 @@ const Kc = _r({
|
|
|
2246
2244
|
// Several. Use CSS `text-align` instead,
|
|
2247
2245
|
aLink: null,
|
|
2248
2246
|
// `<body>`. Use CSS `a:active {color}` instead
|
|
2249
|
-
archive:
|
|
2247
|
+
archive: Ae,
|
|
2250
2248
|
// `<object>`. List of URIs to archives
|
|
2251
2249
|
axis: null,
|
|
2252
2250
|
// `<td>` and `<th>`. Use `scope` on `<th>`
|
|
@@ -2561,7 +2559,7 @@ const Kc = _r({
|
|
|
2561
2559
|
by: null,
|
|
2562
2560
|
calcMode: null,
|
|
2563
2561
|
capHeight: $,
|
|
2564
|
-
className:
|
|
2562
|
+
className: Ae,
|
|
2565
2563
|
clip: null,
|
|
2566
2564
|
clipPath: null,
|
|
2567
2565
|
clipPathUnits: null,
|
|
@@ -2796,7 +2794,7 @@ const Kc = _r({
|
|
|
2796
2794
|
patternTransform: null,
|
|
2797
2795
|
patternUnits: null,
|
|
2798
2796
|
phase: null,
|
|
2799
|
-
ping:
|
|
2797
|
+
ping: Ae,
|
|
2800
2798
|
pitch: null,
|
|
2801
2799
|
playbackOrder: null,
|
|
2802
2800
|
pointerEvents: null,
|
|
@@ -2920,7 +2918,7 @@ const Kc = _r({
|
|
|
2920
2918
|
zoomAndPan: null
|
|
2921
2919
|
},
|
|
2922
2920
|
space: "svg",
|
|
2923
|
-
transform:
|
|
2921
|
+
transform: Mo
|
|
2924
2922
|
}), Io = _r({
|
|
2925
2923
|
properties: {
|
|
2926
2924
|
xLinkActuate: null,
|
|
@@ -2964,7 +2962,7 @@ const Kc = _r({
|
|
|
2964
2962
|
xLinkTitle: "xlinkTitle",
|
|
2965
2963
|
xLinkType: "xlinkType",
|
|
2966
2964
|
xmlnsXLink: "xmlnsXlink"
|
|
2967
|
-
}, Jc = /[A-Z]/g,
|
|
2965
|
+
}, Jc = /[A-Z]/g, La = /-[a-z]/g, e1 = /^data[-\w.:]+$/i;
|
|
2968
2966
|
function Ro(e, t) {
|
|
2969
2967
|
const r = tn(t);
|
|
2970
2968
|
let n = t, i = ct;
|
|
@@ -2972,11 +2970,11 @@ function Ro(e, t) {
|
|
|
2972
2970
|
return e.property[e.normal[r]];
|
|
2973
2971
|
if (r.length > 4 && r.slice(0, 4) === "data" && e1.test(t)) {
|
|
2974
2972
|
if (t.charAt(4) === "-") {
|
|
2975
|
-
const a = t.slice(5).replace(
|
|
2973
|
+
const a = t.slice(5).replace(La, r1);
|
|
2976
2974
|
n = "data" + a.charAt(0).toUpperCase() + a.slice(1);
|
|
2977
2975
|
} else {
|
|
2978
2976
|
const a = t.slice(4);
|
|
2979
|
-
if (!
|
|
2977
|
+
if (!La.test(a)) {
|
|
2980
2978
|
let l = a.replace(Jc, t1);
|
|
2981
2979
|
l.charAt(0) !== "-" && (l = "-" + l), t = "data" + l;
|
|
2982
2980
|
}
|
|
@@ -2991,7 +2989,7 @@ function t1(e) {
|
|
|
2991
2989
|
function r1(e) {
|
|
2992
2990
|
return e.charAt(1).toUpperCase();
|
|
2993
2991
|
}
|
|
2994
|
-
const
|
|
2992
|
+
const Do = Eo([Co, Kc, Io, No, Oo], "html"), $n = Eo([Co, Qc, Io, No, Oo], "svg");
|
|
2995
2993
|
function Ba(e) {
|
|
2996
2994
|
const t = String(e || "").trim();
|
|
2997
2995
|
return t ? t.split(/[ \t\n\r\f]+/g) : [];
|
|
@@ -3009,8 +3007,8 @@ var T0 = {}, Fa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, i1 = /\n/g, a1 = /^\s*/, l1
|
|
|
3009
3007
|
function i(v) {
|
|
3010
3008
|
var b = v.match(i1);
|
|
3011
3009
|
b && (r += b.length);
|
|
3012
|
-
var
|
|
3013
|
-
n = ~
|
|
3010
|
+
var C = v.lastIndexOf(h1);
|
|
3011
|
+
n = ~C ? v.length - C : n + v.length;
|
|
3014
3012
|
}
|
|
3015
3013
|
function a() {
|
|
3016
3014
|
var v = { line: r, column: n };
|
|
@@ -3031,8 +3029,8 @@ var T0 = {}, Fa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, i1 = /\n/g, a1 = /^\s*/, l1
|
|
|
3031
3029
|
function s(v) {
|
|
3032
3030
|
var b = v.exec(e);
|
|
3033
3031
|
if (b) {
|
|
3034
|
-
var
|
|
3035
|
-
return i(
|
|
3032
|
+
var C = b[0];
|
|
3033
|
+
return i(C), e = e.slice(C.length), b;
|
|
3036
3034
|
}
|
|
3037
3035
|
}
|
|
3038
3036
|
function u() {
|
|
@@ -3051,10 +3049,10 @@ var T0 = {}, Fa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, i1 = /\n/g, a1 = /^\s*/, l1
|
|
|
3051
3049
|
++b;
|
|
3052
3050
|
if (b += 2, yr === e.charAt(b - 1))
|
|
3053
3051
|
return o("End of comment missing");
|
|
3054
|
-
var
|
|
3055
|
-
return n += 2, i(
|
|
3052
|
+
var C = e.slice(2, b - 2);
|
|
3053
|
+
return n += 2, i(C), e = e.slice(b), n += 2, v({
|
|
3056
3054
|
type: m1,
|
|
3057
|
-
comment:
|
|
3055
|
+
comment: C
|
|
3058
3056
|
});
|
|
3059
3057
|
}
|
|
3060
3058
|
}
|
|
@@ -3062,10 +3060,10 @@ var T0 = {}, Fa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, i1 = /\n/g, a1 = /^\s*/, l1
|
|
|
3062
3060
|
var v = a(), b = s(l1);
|
|
3063
3061
|
if (b) {
|
|
3064
3062
|
if (h(), !s(o1)) return o("property missing ':'");
|
|
3065
|
-
var
|
|
3063
|
+
var C = s(s1), w = v({
|
|
3066
3064
|
type: f1,
|
|
3067
3065
|
property: Ha(b[0].replace(Fa, yr)),
|
|
3068
|
-
value:
|
|
3066
|
+
value: C ? Ha(C[0].replace(Fa, yr)) : yr
|
|
3069
3067
|
});
|
|
3070
3068
|
return s(u1), w;
|
|
3071
3069
|
}
|
|
@@ -3115,16 +3113,16 @@ var y1 = /^--[a-zA-Z0-9_-]+$/, b1 = /-([a-z])/g, x1 = /^[^-]+$/, w1 = /^-(webkit
|
|
|
3115
3113
|
Un.camelCase = A1;
|
|
3116
3114
|
var E1 = Rn && Rn.__importDefault || function(e) {
|
|
3117
3115
|
return e && e.__esModule ? e : { default: e };
|
|
3118
|
-
},
|
|
3116
|
+
}, C1 = E1(T0), M1 = Un;
|
|
3119
3117
|
function Ji(e, t) {
|
|
3120
3118
|
var r = {};
|
|
3121
|
-
return !e || typeof e != "string" || (0,
|
|
3122
|
-
n && i && (r[(0,
|
|
3119
|
+
return !e || typeof e != "string" || (0, C1.default)(e, function(n, i) {
|
|
3120
|
+
n && i && (r[(0, M1.camelCase)(n, t)] = i);
|
|
3123
3121
|
}), r;
|
|
3124
3122
|
}
|
|
3125
3123
|
Ji.default = Ji;
|
|
3126
3124
|
var z1 = Ji;
|
|
3127
|
-
const I1 = /* @__PURE__ */ w0(z1),
|
|
3125
|
+
const I1 = /* @__PURE__ */ w0(z1), Lo = Bo("end"), A0 = Bo("start");
|
|
3128
3126
|
function Bo(e) {
|
|
3129
3127
|
return t;
|
|
3130
3128
|
function t(r) {
|
|
@@ -3138,7 +3136,7 @@ function Bo(e) {
|
|
|
3138
3136
|
}
|
|
3139
3137
|
}
|
|
3140
3138
|
function N1(e) {
|
|
3141
|
-
const t = A0(e), r =
|
|
3139
|
+
const t = A0(e), r = Lo(e);
|
|
3142
3140
|
if (t && r)
|
|
3143
3141
|
return { start: t, end: r };
|
|
3144
3142
|
}
|
|
@@ -3241,7 +3239,7 @@ Xe.prototype.fatal = void 0;
|
|
|
3241
3239
|
Xe.prototype.place = void 0;
|
|
3242
3240
|
Xe.prototype.ruleId = void 0;
|
|
3243
3241
|
Xe.prototype.source = void 0;
|
|
3244
|
-
const E0 = {}.hasOwnProperty, O1 = /* @__PURE__ */ new Map(), R1 = /[A-Z]/g,
|
|
3242
|
+
const E0 = {}.hasOwnProperty, O1 = /* @__PURE__ */ new Map(), R1 = /[A-Z]/g, D1 = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), L1 = /* @__PURE__ */ new Set(["td", "th"]), Fo = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
3245
3243
|
function B1(e, t) {
|
|
3246
3244
|
if (!t || t.Fragment === void 0)
|
|
3247
3245
|
throw new TypeError("Expected `Fragment` in options");
|
|
@@ -3271,7 +3269,7 @@ function B1(e, t) {
|
|
|
3271
3269
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
3272
3270
|
passKeys: t.passKeys !== !1,
|
|
3273
3271
|
passNode: t.passNode || !1,
|
|
3274
|
-
schema: t.space === "svg" ? $n :
|
|
3272
|
+
schema: t.space === "svg" ? $n : Do,
|
|
3275
3273
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
3276
3274
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
3277
3275
|
}, a = Po(i, e, void 0);
|
|
@@ -3301,10 +3299,10 @@ function F1(e, t, r) {
|
|
|
3301
3299
|
let i = n;
|
|
3302
3300
|
t.tagName.toLowerCase() === "svg" && n.space === "html" && (i = $n, e.schema = i), e.ancestors.push(t);
|
|
3303
3301
|
const a = Ho(e, t.tagName, !1), l = V1(e, t);
|
|
3304
|
-
let o =
|
|
3305
|
-
return
|
|
3302
|
+
let o = M0(e, t);
|
|
3303
|
+
return D1.has(t.tagName) && (o = o.filter(function(s) {
|
|
3306
3304
|
return typeof s == "string" ? !Yc(s) : !0;
|
|
3307
|
-
})), _o(e, l, a, t),
|
|
3305
|
+
})), _o(e, l, a, t), C0(l, o), e.ancestors.pop(), e.schema = n, e.create(t, a, l, r);
|
|
3308
3306
|
}
|
|
3309
3307
|
function P1(e, t) {
|
|
3310
3308
|
if (t.data && t.data.estree && e.evaluater) {
|
|
@@ -3326,12 +3324,12 @@ function H1(e, t, r) {
|
|
|
3326
3324
|
const n = e.schema;
|
|
3327
3325
|
let i = n;
|
|
3328
3326
|
t.name === "svg" && n.space === "html" && (i = $n, e.schema = i), e.ancestors.push(t);
|
|
3329
|
-
const a = t.name === null ? e.Fragment : Ho(e, t.name, !0), l = G1(e, t), o =
|
|
3330
|
-
return _o(e, l, a, t),
|
|
3327
|
+
const a = t.name === null ? e.Fragment : Ho(e, t.name, !0), l = G1(e, t), o = M0(e, t);
|
|
3328
|
+
return _o(e, l, a, t), C0(l, o), e.ancestors.pop(), e.schema = n, e.create(t, a, l, r);
|
|
3331
3329
|
}
|
|
3332
3330
|
function q1(e, t, r) {
|
|
3333
3331
|
const n = {};
|
|
3334
|
-
return
|
|
3332
|
+
return C0(n, M0(e, t)), e.create(t, e.Fragment, n, r);
|
|
3335
3333
|
}
|
|
3336
3334
|
function j1(e, t) {
|
|
3337
3335
|
return t.value;
|
|
@@ -3339,7 +3337,7 @@ function j1(e, t) {
|
|
|
3339
3337
|
function _o(e, t, r, n) {
|
|
3340
3338
|
typeof r != "string" && r !== e.Fragment && e.passNode && (t.node = n);
|
|
3341
3339
|
}
|
|
3342
|
-
function
|
|
3340
|
+
function C0(e, t) {
|
|
3343
3341
|
if (t.length > 0) {
|
|
3344
3342
|
const r = t.length > 1 ? t : t[0];
|
|
3345
3343
|
r && (e.children = r);
|
|
@@ -3378,7 +3376,7 @@ function V1(e, t) {
|
|
|
3378
3376
|
const a = W1(e, i, t.properties[i]);
|
|
3379
3377
|
if (a) {
|
|
3380
3378
|
const [l, o] = a;
|
|
3381
|
-
e.tableCellAlignToStyle && l === "align" && typeof o == "string" &&
|
|
3379
|
+
e.tableCellAlignToStyle && l === "align" && typeof o == "string" && L1.has(t.tagName) ? n = o : r[l] = o;
|
|
3382
3380
|
}
|
|
3383
3381
|
}
|
|
3384
3382
|
if (n) {
|
|
@@ -3422,7 +3420,7 @@ function G1(e, t) {
|
|
|
3422
3420
|
}
|
|
3423
3421
|
return r;
|
|
3424
3422
|
}
|
|
3425
|
-
function
|
|
3423
|
+
function M0(e, t) {
|
|
3426
3424
|
const r = [];
|
|
3427
3425
|
let n = -1;
|
|
3428
3426
|
const i = e.passKeys ? /* @__PURE__ */ new Map() : O1;
|
|
@@ -3649,7 +3647,7 @@ function It(e) {
|
|
|
3649
3647
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
3650
3648
|
}
|
|
3651
3649
|
const et = ur(/[A-Za-z]/), Ye = ur(/[\dA-Za-z]/), rh = ur(/[#-'*+\--9=?A-Z^-~]/);
|
|
3652
|
-
function
|
|
3650
|
+
function Dn(e) {
|
|
3653
3651
|
return (
|
|
3654
3652
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
3655
3653
|
// character DEL
|
|
@@ -3660,7 +3658,7 @@ const t0 = ur(/\d/), nh = ur(/[\dA-Fa-f]/), ih = ur(/[!-/:-@[-`{-~]/);
|
|
|
3660
3658
|
function J(e) {
|
|
3661
3659
|
return e !== null && e < -2;
|
|
3662
3660
|
}
|
|
3663
|
-
function
|
|
3661
|
+
function Se(e) {
|
|
3664
3662
|
return e !== null && (e < 0 || e === 32);
|
|
3665
3663
|
}
|
|
3666
3664
|
function fe(e) {
|
|
@@ -3746,28 +3744,28 @@ function sh(e) {
|
|
|
3746
3744
|
return o;
|
|
3747
3745
|
function o(z) {
|
|
3748
3746
|
if (n < r.length) {
|
|
3749
|
-
const
|
|
3750
|
-
return t.containerState =
|
|
3747
|
+
const D = r[n];
|
|
3748
|
+
return t.containerState = D[1], e.attempt(D[0].continuation, s, u)(z);
|
|
3751
3749
|
}
|
|
3752
3750
|
return u(z);
|
|
3753
3751
|
}
|
|
3754
3752
|
function s(z) {
|
|
3755
3753
|
if (n++, t.containerState._closeFlow) {
|
|
3756
3754
|
t.containerState._closeFlow = void 0, i && A();
|
|
3757
|
-
const
|
|
3758
|
-
let
|
|
3759
|
-
for (;
|
|
3760
|
-
if (t.events[
|
|
3761
|
-
I = t.events[
|
|
3755
|
+
const D = t.events.length;
|
|
3756
|
+
let L = D, I;
|
|
3757
|
+
for (; L--; )
|
|
3758
|
+
if (t.events[L][0] === "exit" && t.events[L][1].type === "chunkFlow") {
|
|
3759
|
+
I = t.events[L][1].end;
|
|
3762
3760
|
break;
|
|
3763
3761
|
}
|
|
3764
3762
|
w(n);
|
|
3765
|
-
let F =
|
|
3763
|
+
let F = D;
|
|
3766
3764
|
for (; F < t.events.length; )
|
|
3767
3765
|
t.events[F][1].end = {
|
|
3768
3766
|
...I
|
|
3769
3767
|
}, F++;
|
|
3770
|
-
return dt(t.events,
|
|
3768
|
+
return dt(t.events, L + 1, 0, t.events.slice(D)), t.events.length = F, u(z);
|
|
3771
3769
|
}
|
|
3772
3770
|
return o(z);
|
|
3773
3771
|
}
|
|
@@ -3806,14 +3804,14 @@ function sh(e) {
|
|
|
3806
3804
|
}
|
|
3807
3805
|
function b(z) {
|
|
3808
3806
|
if (z === null) {
|
|
3809
|
-
|
|
3807
|
+
C(e.exit("chunkFlow"), !0), w(0), e.consume(z);
|
|
3810
3808
|
return;
|
|
3811
3809
|
}
|
|
3812
|
-
return J(z) ? (e.consume(z),
|
|
3810
|
+
return J(z) ? (e.consume(z), C(e.exit("chunkFlow")), n = 0, t.interrupt = void 0, o) : (e.consume(z), b);
|
|
3813
3811
|
}
|
|
3814
|
-
function
|
|
3815
|
-
const
|
|
3816
|
-
if (
|
|
3812
|
+
function C(z, D) {
|
|
3813
|
+
const L = t.sliceStream(z);
|
|
3814
|
+
if (D && L.push(null), z.previous = a, a && (a.next = z), a = z, i.defineSkip(z.start), i.write(L), t.parser.lazy[z.start.line]) {
|
|
3817
3815
|
let I = i.events.length;
|
|
3818
3816
|
for (; I--; )
|
|
3819
3817
|
if (
|
|
@@ -3841,10 +3839,10 @@ function sh(e) {
|
|
|
3841
3839
|
}
|
|
3842
3840
|
}
|
|
3843
3841
|
function w(z) {
|
|
3844
|
-
let
|
|
3845
|
-
for (;
|
|
3846
|
-
const
|
|
3847
|
-
t.containerState =
|
|
3842
|
+
let D = r.length;
|
|
3843
|
+
for (; D-- > z; ) {
|
|
3844
|
+
const L = r[D];
|
|
3845
|
+
t.containerState = L[1], L[0].exit.call(t, e);
|
|
3848
3846
|
}
|
|
3849
3847
|
r.length = z;
|
|
3850
3848
|
}
|
|
@@ -3855,8 +3853,8 @@ function sh(e) {
|
|
|
3855
3853
|
function uh(e, t, r) {
|
|
3856
3854
|
return he(e, e.attempt(this.parser.constructs.document, t, r), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
3857
3855
|
}
|
|
3858
|
-
function
|
|
3859
|
-
if (e === null ||
|
|
3856
|
+
function Lr(e) {
|
|
3857
|
+
if (e === null || Se(e) || xr(e))
|
|
3860
3858
|
return 1;
|
|
3861
3859
|
if (Vn(e))
|
|
3862
3860
|
return 2;
|
|
@@ -3931,7 +3929,7 @@ function ch(e, t) {
|
|
|
3931
3929
|
return e;
|
|
3932
3930
|
}
|
|
3933
3931
|
function hh(e, t) {
|
|
3934
|
-
const r = this.parser.constructs.attentionMarkers.null, n = this.previous, i =
|
|
3932
|
+
const r = this.parser.constructs.attentionMarkers.null, n = this.previous, i = Lr(n);
|
|
3935
3933
|
let a;
|
|
3936
3934
|
return l;
|
|
3937
3935
|
function l(s) {
|
|
@@ -3940,7 +3938,7 @@ function hh(e, t) {
|
|
|
3940
3938
|
function o(s) {
|
|
3941
3939
|
if (s === a)
|
|
3942
3940
|
return e.consume(s), o;
|
|
3943
|
-
const u = e.exit("attentionSequence"), m =
|
|
3941
|
+
const u = e.exit("attentionSequence"), m = Lr(s), h = !m || m === 2 && i || r.includes(s), d = !i || i === 2 && m || r.includes(n);
|
|
3944
3942
|
return u._open = !!(a === 42 ? h : h && (i || !d)), u._close = !!(a === 42 ? d : d && (m || !h)), t(s);
|
|
3945
3943
|
}
|
|
3946
3944
|
}
|
|
@@ -3967,7 +3965,7 @@ function fh(e, t, r) {
|
|
|
3967
3965
|
return p === 58 ? (e.consume(p), n = 0, s) : (p === 43 || p === 45 || p === 46 || Ye(p)) && n++ < 32 ? (e.consume(p), o) : (n = 0, u(p));
|
|
3968
3966
|
}
|
|
3969
3967
|
function s(p) {
|
|
3970
|
-
return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), t) : p === null || p === 32 || p === 60 ||
|
|
3968
|
+
return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), t) : p === null || p === 32 || p === 60 || Dn(p) ? r(p) : (e.consume(p), s);
|
|
3971
3969
|
}
|
|
3972
3970
|
function u(p) {
|
|
3973
3971
|
return p === 64 ? (e.consume(p), m) : rh(p) ? (e.consume(p), u) : r(p);
|
|
@@ -4085,7 +4083,7 @@ const Xa = {
|
|
|
4085
4083
|
function xh(e, t, r) {
|
|
4086
4084
|
const n = this, i = {
|
|
4087
4085
|
partial: !0,
|
|
4088
|
-
tokenize:
|
|
4086
|
+
tokenize: L
|
|
4089
4087
|
};
|
|
4090
4088
|
let a = 0, l = 0, o;
|
|
4091
4089
|
return s;
|
|
@@ -4100,7 +4098,7 @@ function xh(e, t, r) {
|
|
|
4100
4098
|
return I === o ? (l++, e.consume(I), m) : l < 3 ? r(I) : (e.exit("codeFencedFenceSequence"), fe(I) ? he(e, h, "whitespace")(I) : h(I));
|
|
4101
4099
|
}
|
|
4102
4100
|
function h(I) {
|
|
4103
|
-
return I === null || J(I) ? (e.exit("codeFencedFence"), n.interrupt ? t(I) : e.check(Xa, b,
|
|
4101
|
+
return I === null || J(I) ? (e.exit("codeFencedFence"), n.interrupt ? t(I) : e.check(Xa, b, D)(I)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
4104
4102
|
contentType: "string"
|
|
4105
4103
|
}), d(I));
|
|
4106
4104
|
}
|
|
@@ -4116,24 +4114,24 @@ function xh(e, t, r) {
|
|
|
4116
4114
|
return I === null || J(I) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), h(I)) : I === 96 && I === o ? r(I) : (e.consume(I), v);
|
|
4117
4115
|
}
|
|
4118
4116
|
function b(I) {
|
|
4119
|
-
return e.attempt(i,
|
|
4117
|
+
return e.attempt(i, D, C)(I);
|
|
4120
4118
|
}
|
|
4121
|
-
function
|
|
4119
|
+
function C(I) {
|
|
4122
4120
|
return e.enter("lineEnding"), e.consume(I), e.exit("lineEnding"), w;
|
|
4123
4121
|
}
|
|
4124
4122
|
function w(I) {
|
|
4125
4123
|
return a > 0 && fe(I) ? he(e, A, "linePrefix", a + 1)(I) : A(I);
|
|
4126
4124
|
}
|
|
4127
4125
|
function A(I) {
|
|
4128
|
-
return I === null || J(I) ? e.check(Xa, b,
|
|
4126
|
+
return I === null || J(I) ? e.check(Xa, b, D)(I) : (e.enter("codeFlowValue"), z(I));
|
|
4129
4127
|
}
|
|
4130
4128
|
function z(I) {
|
|
4131
4129
|
return I === null || J(I) ? (e.exit("codeFlowValue"), A(I)) : (e.consume(I), z);
|
|
4132
4130
|
}
|
|
4133
|
-
function
|
|
4131
|
+
function D(I) {
|
|
4134
4132
|
return e.exit("codeFenced"), t(I);
|
|
4135
4133
|
}
|
|
4136
|
-
function
|
|
4134
|
+
function L(I, F, Y) {
|
|
4137
4135
|
let H = 0;
|
|
4138
4136
|
return N;
|
|
4139
4137
|
function N(K) {
|
|
@@ -4203,9 +4201,9 @@ function Th(e, t, r) {
|
|
|
4203
4201
|
}
|
|
4204
4202
|
const Ah = {
|
|
4205
4203
|
name: "codeText",
|
|
4206
|
-
previous:
|
|
4204
|
+
previous: Ch,
|
|
4207
4205
|
resolve: Eh,
|
|
4208
|
-
tokenize:
|
|
4206
|
+
tokenize: Mh
|
|
4209
4207
|
};
|
|
4210
4208
|
function Eh(e) {
|
|
4211
4209
|
let t = e.length - 4, r = 3, n, i;
|
|
@@ -4220,10 +4218,10 @@ function Eh(e) {
|
|
|
4220
4218
|
i === void 0 ? n !== t && e[n][1].type !== "lineEnding" && (i = n) : (n === t || e[n][1].type === "lineEnding") && (e[i][1].type = "codeTextData", n !== i + 2 && (e[i][1].end = e[n - 1][1].end, e.splice(i + 2, n - i - 2), t -= n - i - 2, n = i + 2), i = void 0);
|
|
4221
4219
|
return e;
|
|
4222
4220
|
}
|
|
4223
|
-
function
|
|
4221
|
+
function Ch(e) {
|
|
4224
4222
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
4225
4223
|
}
|
|
4226
|
-
function
|
|
4224
|
+
function Mh(e, t, r) {
|
|
4227
4225
|
let n = 0, i, a;
|
|
4228
4226
|
return l;
|
|
4229
4227
|
function l(h) {
|
|
@@ -4446,7 +4444,7 @@ function Ih(e, t) {
|
|
|
4446
4444
|
l || (l = n.parser[r.contentType](r.start), r._contentTypeTextTrailing && (l._contentTypeTextTrailing = !0));
|
|
4447
4445
|
const o = l.events, s = [], u = {};
|
|
4448
4446
|
let m, h, d = -1, p = r, v = 0, b = 0;
|
|
4449
|
-
const
|
|
4447
|
+
const C = [b];
|
|
4450
4448
|
for (; p; ) {
|
|
4451
4449
|
for (; e.get(++i)[1] !== p; )
|
|
4452
4450
|
;
|
|
@@ -4454,9 +4452,9 @@ function Ih(e, t) {
|
|
|
4454
4452
|
}
|
|
4455
4453
|
for (p = r; ++d < o.length; )
|
|
4456
4454
|
// Find a void token that includes a break.
|
|
4457
|
-
o[d][0] === "exit" && o[d - 1][0] === "enter" && o[d][1].type === o[d - 1][1].type && o[d][1].start.line !== o[d][1].end.line && (b = d + 1,
|
|
4458
|
-
for (l.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) :
|
|
4459
|
-
const w = o.slice(
|
|
4455
|
+
o[d][0] === "exit" && o[d - 1][0] === "enter" && o[d][1].type === o[d - 1][1].type && o[d][1].start.line !== o[d][1].end.line && (b = d + 1, C.push(b), p._tokenizer = void 0, p.previous = void 0, p = p.next);
|
|
4456
|
+
for (l.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : C.pop(), d = C.length; d--; ) {
|
|
4457
|
+
const w = o.slice(C[d], C[d + 1]), A = a.pop();
|
|
4460
4458
|
s.push([A, A + w.length - 1]), e.splice(A, 2, w);
|
|
4461
4459
|
}
|
|
4462
4460
|
for (s.reverse(), d = -1; ++d < s.length; )
|
|
@@ -4465,15 +4463,15 @@ function Ih(e, t) {
|
|
|
4465
4463
|
}
|
|
4466
4464
|
const Nh = {
|
|
4467
4465
|
resolve: Rh,
|
|
4468
|
-
tokenize:
|
|
4466
|
+
tokenize: Dh
|
|
4469
4467
|
}, Oh = {
|
|
4470
4468
|
partial: !0,
|
|
4471
|
-
tokenize:
|
|
4469
|
+
tokenize: Lh
|
|
4472
4470
|
};
|
|
4473
4471
|
function Rh(e) {
|
|
4474
4472
|
return Wo(e), e;
|
|
4475
4473
|
}
|
|
4476
|
-
function
|
|
4474
|
+
function Dh(e, t) {
|
|
4477
4475
|
let r;
|
|
4478
4476
|
return n;
|
|
4479
4477
|
function n(o) {
|
|
@@ -4494,7 +4492,7 @@ function Lh(e, t) {
|
|
|
4494
4492
|
}), r = r.next, i;
|
|
4495
4493
|
}
|
|
4496
4494
|
}
|
|
4497
|
-
function
|
|
4495
|
+
function Lh(e, t, r) {
|
|
4498
4496
|
const n = this;
|
|
4499
4497
|
return i;
|
|
4500
4498
|
function i(l) {
|
|
@@ -4512,7 +4510,7 @@ function Yo(e, t, r, n, i, a, l, o, s) {
|
|
|
4512
4510
|
let m = 0;
|
|
4513
4511
|
return h;
|
|
4514
4512
|
function h(w) {
|
|
4515
|
-
return w === 60 ? (e.enter(n), e.enter(i), e.enter(a), e.consume(w), e.exit(a), d) : w === null || w === 32 || w === 41 ||
|
|
4513
|
+
return w === 60 ? (e.enter(n), e.enter(i), e.enter(a), e.consume(w), e.exit(a), d) : w === null || w === 32 || w === 41 || Dn(w) ? r(w) : (e.enter(n), e.enter(l), e.enter(o), e.enter("chunkString", {
|
|
4516
4514
|
contentType: "string"
|
|
4517
4515
|
}), b(w));
|
|
4518
4516
|
}
|
|
@@ -4528,9 +4526,9 @@ function Yo(e, t, r, n, i, a, l, o, s) {
|
|
|
4528
4526
|
return w === 60 || w === 62 || w === 92 ? (e.consume(w), p) : p(w);
|
|
4529
4527
|
}
|
|
4530
4528
|
function b(w) {
|
|
4531
|
-
return !m && (w === null || w === 41 ||
|
|
4529
|
+
return !m && (w === null || w === 41 || Se(w)) ? (e.exit("chunkString"), e.exit(o), e.exit(l), e.exit(n), t(w)) : m < u && w === 40 ? (e.consume(w), m++, b) : w === 41 ? (e.consume(w), m--, b) : w === null || w === 32 || w === 40 || Dn(w) ? r(w) : (e.consume(w), w === 92 ? C : b);
|
|
4532
4530
|
}
|
|
4533
|
-
function
|
|
4531
|
+
function C(w) {
|
|
4534
4532
|
return w === 40 || w === 41 || w === 92 ? (e.consume(w), b) : b(w);
|
|
4535
4533
|
}
|
|
4536
4534
|
}
|
|
@@ -4616,7 +4614,7 @@ function Ph(e, t, r) {
|
|
|
4616
4614
|
return i = It(n.sliceSerialize(n.events[n.events.length - 1][1]).slice(1, -1)), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), s) : r(p);
|
|
4617
4615
|
}
|
|
4618
4616
|
function s(p) {
|
|
4619
|
-
return
|
|
4617
|
+
return Se(p) ? Zr(e, u)(p) : u(p);
|
|
4620
4618
|
}
|
|
4621
4619
|
function u(p) {
|
|
4622
4620
|
return Yo(
|
|
@@ -4644,7 +4642,7 @@ function Ph(e, t, r) {
|
|
|
4644
4642
|
function _h(e, t, r) {
|
|
4645
4643
|
return n;
|
|
4646
4644
|
function n(o) {
|
|
4647
|
-
return
|
|
4645
|
+
return Se(o) ? Zr(e, i)(o) : r(o);
|
|
4648
4646
|
}
|
|
4649
4647
|
function i(o) {
|
|
4650
4648
|
return Ko(e, a, r, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(o);
|
|
@@ -4697,7 +4695,7 @@ function Uh(e, t, r) {
|
|
|
4697
4695
|
return e.enter("atxHeadingSequence"), l(m);
|
|
4698
4696
|
}
|
|
4699
4697
|
function l(m) {
|
|
4700
|
-
return m === 35 && n++ < 6 ? (e.consume(m), l) : m === null ||
|
|
4698
|
+
return m === 35 && n++ < 6 ? (e.consume(m), l) : m === null || Se(m) ? (e.exit("atxHeadingSequence"), o(m)) : r(m);
|
|
4701
4699
|
}
|
|
4702
4700
|
function o(m) {
|
|
4703
4701
|
return m === 35 ? (e.enter("atxHeadingSequence"), s(m)) : m === null || J(m) ? (e.exit("atxHeading"), t(m)) : fe(m) ? he(e, o, "whitespace")(m) : (e.enter("atxHeadingText"), u(m));
|
|
@@ -4706,7 +4704,7 @@ function Uh(e, t, r) {
|
|
|
4706
4704
|
return m === 35 ? (e.consume(m), s) : (e.exit("atxHeadingSequence"), o(m));
|
|
4707
4705
|
}
|
|
4708
4706
|
function u(m) {
|
|
4709
|
-
return m === null || m === 35 ||
|
|
4707
|
+
return m === null || m === 35 || Se(m) ? (e.exit("atxHeadingText"), o(m)) : (e.consume(m), u);
|
|
4710
4708
|
}
|
|
4711
4709
|
}
|
|
4712
4710
|
const Vh = [
|
|
@@ -4801,7 +4799,7 @@ function Kh(e, t, r) {
|
|
|
4801
4799
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(E), h;
|
|
4802
4800
|
}
|
|
4803
4801
|
function h(E) {
|
|
4804
|
-
return E === 33 ? (e.consume(E), d) : E === 47 ? (e.consume(E), a = !0, b) : E === 63 ? (e.consume(E), i = 3, n.interrupt ? t : S) : et(E) ? (e.consume(E), l = String.fromCharCode(E),
|
|
4802
|
+
return E === 33 ? (e.consume(E), d) : E === 47 ? (e.consume(E), a = !0, b) : E === 63 ? (e.consume(E), i = 3, n.interrupt ? t : S) : et(E) ? (e.consume(E), l = String.fromCharCode(E), C) : r(E);
|
|
4805
4803
|
}
|
|
4806
4804
|
function d(E) {
|
|
4807
4805
|
return E === 45 ? (e.consume(E), i = 2, p) : E === 91 ? (e.consume(E), i = 5, o = 0, v) : et(E) ? (e.consume(E), i = 4, n.interrupt ? t : S) : r(E);
|
|
@@ -4814,14 +4812,14 @@ function Kh(e, t, r) {
|
|
|
4814
4812
|
return E === Fe.charCodeAt(o++) ? (e.consume(E), o === Fe.length ? n.interrupt ? t : V : v) : r(E);
|
|
4815
4813
|
}
|
|
4816
4814
|
function b(E) {
|
|
4817
|
-
return et(E) ? (e.consume(E), l = String.fromCharCode(E),
|
|
4815
|
+
return et(E) ? (e.consume(E), l = String.fromCharCode(E), C) : r(E);
|
|
4818
4816
|
}
|
|
4819
|
-
function
|
|
4820
|
-
if (E === null || E === 47 || E === 62 ||
|
|
4817
|
+
function C(E) {
|
|
4818
|
+
if (E === null || E === 47 || E === 62 || Se(E)) {
|
|
4821
4819
|
const Fe = E === 47, Ue = l.toLowerCase();
|
|
4822
4820
|
return !Fe && !a && Qa.includes(Ue) ? (i = 1, n.interrupt ? t(E) : V(E)) : Vh.includes(l.toLowerCase()) ? (i = 6, Fe ? (e.consume(E), w) : n.interrupt ? t(E) : V(E)) : (i = 7, n.interrupt && !n.parser.lazy[n.now().line] ? r(E) : a ? A(E) : z(E));
|
|
4823
4821
|
}
|
|
4824
|
-
return E === 45 || Ye(E) ? (e.consume(E), l += String.fromCharCode(E),
|
|
4822
|
+
return E === 45 || Ye(E) ? (e.consume(E), l += String.fromCharCode(E), C) : r(E);
|
|
4825
4823
|
}
|
|
4826
4824
|
function w(E) {
|
|
4827
4825
|
return E === 62 ? (e.consume(E), n.interrupt ? t : V) : r(E);
|
|
@@ -4830,13 +4828,13 @@ function Kh(e, t, r) {
|
|
|
4830
4828
|
return fe(E) ? (e.consume(E), A) : N(E);
|
|
4831
4829
|
}
|
|
4832
4830
|
function z(E) {
|
|
4833
|
-
return E === 47 ? (e.consume(E), N) : E === 58 || E === 95 || et(E) ? (e.consume(E),
|
|
4834
|
-
}
|
|
4835
|
-
function L(E) {
|
|
4836
|
-
return E === 45 || E === 46 || E === 58 || E === 95 || Ye(E) ? (e.consume(E), L) : D(E);
|
|
4831
|
+
return E === 47 ? (e.consume(E), N) : E === 58 || E === 95 || et(E) ? (e.consume(E), D) : fe(E) ? (e.consume(E), z) : N(E);
|
|
4837
4832
|
}
|
|
4838
4833
|
function D(E) {
|
|
4839
|
-
return E ===
|
|
4834
|
+
return E === 45 || E === 46 || E === 58 || E === 95 || Ye(E) ? (e.consume(E), D) : L(E);
|
|
4835
|
+
}
|
|
4836
|
+
function L(E) {
|
|
4837
|
+
return E === 61 ? (e.consume(E), I) : fe(E) ? (e.consume(E), L) : z(E);
|
|
4840
4838
|
}
|
|
4841
4839
|
function I(E) {
|
|
4842
4840
|
return E === null || E === 60 || E === 61 || E === 62 || E === 96 ? r(E) : E === 34 || E === 39 ? (e.consume(E), s = E, F) : fe(E) ? (e.consume(E), I) : Y(E);
|
|
@@ -4845,7 +4843,7 @@ function Kh(e, t, r) {
|
|
|
4845
4843
|
return E === s ? (e.consume(E), s = null, H) : E === null || J(E) ? r(E) : (e.consume(E), F);
|
|
4846
4844
|
}
|
|
4847
4845
|
function Y(E) {
|
|
4848
|
-
return E === null || E === 34 || E === 39 || E === 47 || E === 60 || E === 61 || E === 62 || E === 96 ||
|
|
4846
|
+
return E === null || E === 34 || E === 39 || E === 47 || E === 60 || E === 61 || E === 62 || E === 96 || Se(E) ? L(E) : (e.consume(E), Y);
|
|
4849
4847
|
}
|
|
4850
4848
|
function H(E) {
|
|
4851
4849
|
return E === 47 || E === 62 || fe(E) ? z(E) : r(E);
|
|
@@ -4857,10 +4855,10 @@ function Kh(e, t, r) {
|
|
|
4857
4855
|
return E === null || J(E) ? V(E) : fe(E) ? (e.consume(E), U) : r(E);
|
|
4858
4856
|
}
|
|
4859
4857
|
function V(E) {
|
|
4860
|
-
return E === 45 && i === 2 ? (e.consume(E), ce) : E === 60 && i === 1 ? (e.consume(E), pe) : E === 62 && i === 4 ? (e.consume(E), Ce) : E === 63 && i === 3 ? (e.consume(E), S) : E === 93 && i === 5 ? (e.consume(E), $e) : J(E) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Wh,
|
|
4858
|
+
return E === 45 && i === 2 ? (e.consume(E), ce) : E === 60 && i === 1 ? (e.consume(E), pe) : E === 62 && i === 4 ? (e.consume(E), Ce) : E === 63 && i === 3 ? (e.consume(E), S) : E === 93 && i === 5 ? (e.consume(E), $e) : J(E) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Wh, we, ae)(E)) : E === null || J(E) ? (e.exit("htmlFlowData"), ae(E)) : (e.consume(E), V);
|
|
4861
4859
|
}
|
|
4862
4860
|
function ae(E) {
|
|
4863
|
-
return e.check(Yh, te,
|
|
4861
|
+
return e.check(Yh, te, we)(E);
|
|
4864
4862
|
}
|
|
4865
4863
|
function te(E) {
|
|
4866
4864
|
return e.enter("lineEnding"), e.consume(E), e.exit("lineEnding"), K;
|
|
@@ -4872,14 +4870,14 @@ function Kh(e, t, r) {
|
|
|
4872
4870
|
return E === 45 ? (e.consume(E), S) : V(E);
|
|
4873
4871
|
}
|
|
4874
4872
|
function pe(E) {
|
|
4875
|
-
return E === 47 ? (e.consume(E), l = "",
|
|
4873
|
+
return E === 47 ? (e.consume(E), l = "", Me) : V(E);
|
|
4876
4874
|
}
|
|
4877
|
-
function
|
|
4875
|
+
function Me(E) {
|
|
4878
4876
|
if (E === 62) {
|
|
4879
4877
|
const Fe = l.toLowerCase();
|
|
4880
4878
|
return Qa.includes(Fe) ? (e.consume(E), Ce) : V(E);
|
|
4881
4879
|
}
|
|
4882
|
-
return et(E) && l.length < 8 ? (e.consume(E), l += String.fromCharCode(E),
|
|
4880
|
+
return et(E) && l.length < 8 ? (e.consume(E), l += String.fromCharCode(E), Me) : V(E);
|
|
4883
4881
|
}
|
|
4884
4882
|
function $e(E) {
|
|
4885
4883
|
return E === 93 ? (e.consume(E), S) : V(E);
|
|
@@ -4888,9 +4886,9 @@ function Kh(e, t, r) {
|
|
|
4888
4886
|
return E === 62 ? (e.consume(E), Ce) : E === 45 && i === 2 ? (e.consume(E), S) : V(E);
|
|
4889
4887
|
}
|
|
4890
4888
|
function Ce(E) {
|
|
4891
|
-
return E === null || J(E) ? (e.exit("htmlFlowData"),
|
|
4889
|
+
return E === null || J(E) ? (e.exit("htmlFlowData"), we(E)) : (e.consume(E), Ce);
|
|
4892
4890
|
}
|
|
4893
|
-
function
|
|
4891
|
+
function we(E) {
|
|
4894
4892
|
return e.exit("htmlFlow"), t(E);
|
|
4895
4893
|
}
|
|
4896
4894
|
}
|
|
@@ -4922,7 +4920,7 @@ function em(e, t, r) {
|
|
|
4922
4920
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(S), s;
|
|
4923
4921
|
}
|
|
4924
4922
|
function s(S) {
|
|
4925
|
-
return S === 33 ? (e.consume(S), u) : S === 47 ? (e.consume(S),
|
|
4923
|
+
return S === 33 ? (e.consume(S), u) : S === 47 ? (e.consume(S), L) : S === 63 ? (e.consume(S), z) : et(S) ? (e.consume(S), Y) : r(S);
|
|
4926
4924
|
}
|
|
4927
4925
|
function u(S) {
|
|
4928
4926
|
return S === 45 ? (e.consume(S), m) : S === 91 ? (e.consume(S), a = 0, v) : et(S) ? (e.consume(S), A) : r(S);
|
|
@@ -4944,9 +4942,9 @@ function em(e, t, r) {
|
|
|
4944
4942
|
return S === Ce.charCodeAt(a++) ? (e.consume(S), a === Ce.length ? b : v) : r(S);
|
|
4945
4943
|
}
|
|
4946
4944
|
function b(S) {
|
|
4947
|
-
return S === null ? r(S) : S === 93 ? (e.consume(S),
|
|
4945
|
+
return S === null ? r(S) : S === 93 ? (e.consume(S), C) : J(S) ? (l = b, pe(S)) : (e.consume(S), b);
|
|
4948
4946
|
}
|
|
4949
|
-
function
|
|
4947
|
+
function C(S) {
|
|
4950
4948
|
return S === 93 ? (e.consume(S), w) : b(S);
|
|
4951
4949
|
}
|
|
4952
4950
|
function w(S) {
|
|
@@ -4956,12 +4954,12 @@ function em(e, t, r) {
|
|
|
4956
4954
|
return S === null || S === 62 ? ce(S) : J(S) ? (l = A, pe(S)) : (e.consume(S), A);
|
|
4957
4955
|
}
|
|
4958
4956
|
function z(S) {
|
|
4959
|
-
return S === null ? r(S) : S === 63 ? (e.consume(S),
|
|
4957
|
+
return S === null ? r(S) : S === 63 ? (e.consume(S), D) : J(S) ? (l = z, pe(S)) : (e.consume(S), z);
|
|
4960
4958
|
}
|
|
4961
|
-
function
|
|
4959
|
+
function D(S) {
|
|
4962
4960
|
return S === 62 ? ce(S) : z(S);
|
|
4963
4961
|
}
|
|
4964
|
-
function
|
|
4962
|
+
function L(S) {
|
|
4965
4963
|
return et(S) ? (e.consume(S), I) : r(S);
|
|
4966
4964
|
}
|
|
4967
4965
|
function I(S) {
|
|
@@ -4971,7 +4969,7 @@ function em(e, t, r) {
|
|
|
4971
4969
|
return J(S) ? (l = F, pe(S)) : fe(S) ? (e.consume(S), F) : ce(S);
|
|
4972
4970
|
}
|
|
4973
4971
|
function Y(S) {
|
|
4974
|
-
return S === 45 || Ye(S) ? (e.consume(S), Y) : S === 47 || S === 62 ||
|
|
4972
|
+
return S === 45 || Ye(S) ? (e.consume(S), Y) : S === 47 || S === 62 || Se(S) ? H(S) : r(S);
|
|
4975
4973
|
}
|
|
4976
4974
|
function H(S) {
|
|
4977
4975
|
return S === 47 ? (e.consume(S), ce) : S === 58 || S === 95 || et(S) ? (e.consume(S), N) : J(S) ? (l = H, pe(S)) : fe(S) ? (e.consume(S), H) : ce(S);
|
|
@@ -4989,18 +4987,18 @@ function em(e, t, r) {
|
|
|
4989
4987
|
return S === i ? (e.consume(S), i = void 0, K) : S === null ? r(S) : J(S) ? (l = ae, pe(S)) : (e.consume(S), ae);
|
|
4990
4988
|
}
|
|
4991
4989
|
function te(S) {
|
|
4992
|
-
return S === null || S === 34 || S === 39 || S === 60 || S === 61 || S === 96 ? r(S) : S === 47 || S === 62 ||
|
|
4990
|
+
return S === null || S === 34 || S === 39 || S === 60 || S === 61 || S === 96 ? r(S) : S === 47 || S === 62 || Se(S) ? H(S) : (e.consume(S), te);
|
|
4993
4991
|
}
|
|
4994
4992
|
function K(S) {
|
|
4995
|
-
return S === 47 || S === 62 ||
|
|
4993
|
+
return S === 47 || S === 62 || Se(S) ? H(S) : r(S);
|
|
4996
4994
|
}
|
|
4997
4995
|
function ce(S) {
|
|
4998
4996
|
return S === 62 ? (e.consume(S), e.exit("htmlTextData"), e.exit("htmlText"), t) : r(S);
|
|
4999
4997
|
}
|
|
5000
4998
|
function pe(S) {
|
|
5001
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(S), e.exit("lineEnding"),
|
|
4999
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(S), e.exit("lineEnding"), Me;
|
|
5002
5000
|
}
|
|
5003
|
-
function
|
|
5001
|
+
function Me(S) {
|
|
5004
5002
|
return fe(S) ? he(e, $e, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(S) : $e(S);
|
|
5005
5003
|
}
|
|
5006
5004
|
function $e(S) {
|
|
@@ -5105,13 +5103,13 @@ function om(e, t, r) {
|
|
|
5105
5103
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), i;
|
|
5106
5104
|
}
|
|
5107
5105
|
function i(h) {
|
|
5108
|
-
return
|
|
5106
|
+
return Se(h) ? Zr(e, a)(h) : a(h);
|
|
5109
5107
|
}
|
|
5110
5108
|
function a(h) {
|
|
5111
5109
|
return h === 41 ? m(h) : Yo(e, l, o, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(h);
|
|
5112
5110
|
}
|
|
5113
5111
|
function l(h) {
|
|
5114
|
-
return
|
|
5112
|
+
return Se(h) ? Zr(e, s)(h) : m(h);
|
|
5115
5113
|
}
|
|
5116
5114
|
function o(h) {
|
|
5117
5115
|
return r(h);
|
|
@@ -5120,7 +5118,7 @@ function om(e, t, r) {
|
|
|
5120
5118
|
return h === 34 || h === 39 || h === 40 ? Ko(e, u, r, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(h) : m(h);
|
|
5121
5119
|
}
|
|
5122
5120
|
function u(h) {
|
|
5123
|
-
return
|
|
5121
|
+
return Se(h) ? Zr(e, m)(h) : m(h);
|
|
5124
5122
|
}
|
|
5125
5123
|
function m(h) {
|
|
5126
5124
|
return h === 41 ? (e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), e.exit("resource"), t) : r(h);
|
|
@@ -5373,9 +5371,9 @@ function Em(e) {
|
|
|
5373
5371
|
return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), t.currentConstruct = void 0, r;
|
|
5374
5372
|
}
|
|
5375
5373
|
}
|
|
5376
|
-
const
|
|
5374
|
+
const Cm = {
|
|
5377
5375
|
resolveAll: Zo()
|
|
5378
|
-
},
|
|
5376
|
+
}, Mm = Qo("string"), zm = Qo("text");
|
|
5379
5377
|
function Qo(e) {
|
|
5380
5378
|
return {
|
|
5381
5379
|
resolveAll: Zo(e === "text" ? Im : void 0),
|
|
@@ -5484,7 +5482,7 @@ const Nm = {
|
|
|
5484
5482
|
[-2]: vi,
|
|
5485
5483
|
[-1]: vi,
|
|
5486
5484
|
32: vi
|
|
5487
|
-
},
|
|
5485
|
+
}, Dm = {
|
|
5488
5486
|
35: jh,
|
|
5489
5487
|
42: zn,
|
|
5490
5488
|
45: [Za, zn],
|
|
@@ -5493,7 +5491,7 @@ const Nm = {
|
|
|
5493
5491
|
95: zn,
|
|
5494
5492
|
96: Ka,
|
|
5495
5493
|
126: Ka
|
|
5496
|
-
},
|
|
5494
|
+
}, Lm = {
|
|
5497
5495
|
38: Go,
|
|
5498
5496
|
92: Vo
|
|
5499
5497
|
}, Bm = {
|
|
@@ -5510,7 +5508,7 @@ const Nm = {
|
|
|
5510
5508
|
95: r0,
|
|
5511
5509
|
96: Ah
|
|
5512
5510
|
}, Fm = {
|
|
5513
|
-
null: [r0,
|
|
5511
|
+
null: [r0, Cm]
|
|
5514
5512
|
}, Pm = {
|
|
5515
5513
|
null: [42, 95]
|
|
5516
5514
|
}, _m = {
|
|
@@ -5521,10 +5519,10 @@ const Nm = {
|
|
|
5521
5519
|
contentInitial: Om,
|
|
5522
5520
|
disable: _m,
|
|
5523
5521
|
document: Nm,
|
|
5524
|
-
flow:
|
|
5522
|
+
flow: Dm,
|
|
5525
5523
|
flowInitial: Rm,
|
|
5526
5524
|
insideSpan: Fm,
|
|
5527
|
-
string:
|
|
5525
|
+
string: Lm,
|
|
5528
5526
|
text: Bm
|
|
5529
5527
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5530
5528
|
function qm(e, t, r) {
|
|
@@ -5538,11 +5536,11 @@ function qm(e, t, r) {
|
|
|
5538
5536
|
const i = {}, a = [];
|
|
5539
5537
|
let l = [], o = [];
|
|
5540
5538
|
const s = {
|
|
5541
|
-
attempt: F(
|
|
5539
|
+
attempt: F(L),
|
|
5542
5540
|
check: F(I),
|
|
5543
5541
|
consume: A,
|
|
5544
5542
|
enter: z,
|
|
5545
|
-
exit:
|
|
5543
|
+
exit: D,
|
|
5546
5544
|
interrupt: F(I, {
|
|
5547
5545
|
interrupt: !0
|
|
5548
5546
|
})
|
|
@@ -5561,7 +5559,7 @@ function qm(e, t, r) {
|
|
|
5561
5559
|
let m = t.tokenize.call(u, s);
|
|
5562
5560
|
return t.resolveAll && a.push(t), u;
|
|
5563
5561
|
function h(U) {
|
|
5564
|
-
return l = xt(l, U),
|
|
5562
|
+
return l = xt(l, U), C(), l[l.length - 1] !== null ? [] : (Y(t, 0), u.events = Gn(a, u.events, u), u.events);
|
|
5565
5563
|
}
|
|
5566
5564
|
function d(U, V) {
|
|
5567
5565
|
return $m(p(U), V);
|
|
@@ -5588,7 +5586,7 @@ function qm(e, t, r) {
|
|
|
5588
5586
|
function b(U) {
|
|
5589
5587
|
i[U.line] = U.column, N();
|
|
5590
5588
|
}
|
|
5591
|
-
function
|
|
5589
|
+
function C() {
|
|
5592
5590
|
let U;
|
|
5593
5591
|
for (; n._index < l.length; ) {
|
|
5594
5592
|
const V = l[n._index];
|
|
@@ -5612,11 +5610,11 @@ function qm(e, t, r) {
|
|
|
5612
5610
|
const ae = V || {};
|
|
5613
5611
|
return ae.type = U, ae.start = v(), u.events.push(["enter", ae, u]), o.push(ae), ae;
|
|
5614
5612
|
}
|
|
5615
|
-
function
|
|
5613
|
+
function D(U) {
|
|
5616
5614
|
const V = o.pop();
|
|
5617
5615
|
return V.end = v(), u.events.push(["exit", V, u]), V;
|
|
5618
5616
|
}
|
|
5619
|
-
function
|
|
5617
|
+
function L(U, V) {
|
|
5620
5618
|
Y(U, V.from);
|
|
5621
5619
|
}
|
|
5622
5620
|
function I(U, V) {
|
|
@@ -5625,13 +5623,13 @@ function qm(e, t, r) {
|
|
|
5625
5623
|
function F(U, V) {
|
|
5626
5624
|
return ae;
|
|
5627
5625
|
function ae(te, K, ce) {
|
|
5628
|
-
let pe,
|
|
5626
|
+
let pe, Me, $e, S;
|
|
5629
5627
|
return Array.isArray(te) ? (
|
|
5630
5628
|
/* c8 ignore next 1 */
|
|
5631
|
-
|
|
5629
|
+
we(te)
|
|
5632
5630
|
) : "tokenize" in te ? (
|
|
5633
5631
|
// Looks like a construct.
|
|
5634
|
-
|
|
5632
|
+
we([
|
|
5635
5633
|
/** @type {Construct} */
|
|
5636
5634
|
te
|
|
5637
5635
|
])
|
|
@@ -5645,11 +5643,11 @@ function qm(e, t, r) {
|
|
|
5645
5643
|
...Array.isArray(Ge) ? Ge : Ge ? [Ge] : [],
|
|
5646
5644
|
...Array.isArray(We) ? We : We ? [We] : []
|
|
5647
5645
|
];
|
|
5648
|
-
return
|
|
5646
|
+
return we(nt)(Re);
|
|
5649
5647
|
}
|
|
5650
5648
|
}
|
|
5651
|
-
function
|
|
5652
|
-
return pe = ze,
|
|
5649
|
+
function we(ze) {
|
|
5650
|
+
return pe = ze, Me = 0, ze.length === 0 ? ce : E(ze[Me]);
|
|
5653
5651
|
}
|
|
5654
5652
|
function E(ze) {
|
|
5655
5653
|
return Ve;
|
|
@@ -5669,7 +5667,7 @@ function qm(e, t, r) {
|
|
|
5669
5667
|
return U($e, S), K;
|
|
5670
5668
|
}
|
|
5671
5669
|
function Ue(ze) {
|
|
5672
|
-
return S.restore(), ++
|
|
5670
|
+
return S.restore(), ++Me < pe.length ? E(pe[Me]) : ce;
|
|
5673
5671
|
}
|
|
5674
5672
|
}
|
|
5675
5673
|
}
|
|
@@ -5755,7 +5753,7 @@ function Um(e) {
|
|
|
5755
5753
|
document: i(oh),
|
|
5756
5754
|
flow: i(Am),
|
|
5757
5755
|
lazy: {},
|
|
5758
|
-
string: i(
|
|
5756
|
+
string: i(Mm),
|
|
5759
5757
|
text: i(zm)
|
|
5760
5758
|
};
|
|
5761
5759
|
return n;
|
|
@@ -5873,7 +5871,7 @@ function Qm(e) {
|
|
|
5873
5871
|
},
|
|
5874
5872
|
exit: {
|
|
5875
5873
|
atxHeading: s(),
|
|
5876
|
-
atxHeadingSequence:
|
|
5874
|
+
atxHeadingSequence: L,
|
|
5877
5875
|
autolink: s(),
|
|
5878
5876
|
autolinkEmail: Ge,
|
|
5879
5877
|
autolinkProtocol: Re,
|
|
@@ -5883,7 +5881,7 @@ function Qm(e) {
|
|
|
5883
5881
|
characterReferenceMarkerNumeric: Ue,
|
|
5884
5882
|
characterReferenceValue: ze,
|
|
5885
5883
|
characterReference: Ve,
|
|
5886
|
-
codeFenced: s(
|
|
5884
|
+
codeFenced: s(C),
|
|
5887
5885
|
codeFencedFence: b,
|
|
5888
5886
|
codeFencedFenceInfo: p,
|
|
5889
5887
|
codeFencedFenceMeta: v,
|
|
@@ -5893,7 +5891,7 @@ function Qm(e) {
|
|
|
5893
5891
|
codeTextData: N,
|
|
5894
5892
|
data: N,
|
|
5895
5893
|
definition: s(),
|
|
5896
|
-
definitionDestinationString:
|
|
5894
|
+
definitionDestinationString: D,
|
|
5897
5895
|
definitionLabelString: A,
|
|
5898
5896
|
definitionTitleString: z,
|
|
5899
5897
|
emphasis: s(),
|
|
@@ -5905,7 +5903,7 @@ function Qm(e) {
|
|
|
5905
5903
|
htmlTextData: N,
|
|
5906
5904
|
image: s(pe),
|
|
5907
5905
|
label: $e,
|
|
5908
|
-
labelText:
|
|
5906
|
+
labelText: Me,
|
|
5909
5907
|
lineEnding: U,
|
|
5910
5908
|
link: s(ce),
|
|
5911
5909
|
listItem: s(),
|
|
@@ -5915,7 +5913,7 @@ function Qm(e) {
|
|
|
5915
5913
|
referenceString: Fe,
|
|
5916
5914
|
resourceDestinationString: S,
|
|
5917
5915
|
resourceTitleString: Ce,
|
|
5918
|
-
resource:
|
|
5916
|
+
resource: we,
|
|
5919
5917
|
setextHeading: s(Y),
|
|
5920
5918
|
setextHeadingLineSequence: F,
|
|
5921
5919
|
setextHeadingText: I,
|
|
@@ -5941,20 +5939,20 @@ function Qm(e) {
|
|
|
5941
5939
|
resume: m,
|
|
5942
5940
|
data: r
|
|
5943
5941
|
}, me = [];
|
|
5944
|
-
let
|
|
5945
|
-
for (; ++
|
|
5946
|
-
if (R[
|
|
5947
|
-
if (R[
|
|
5948
|
-
me.push(
|
|
5942
|
+
let be = -1;
|
|
5943
|
+
for (; ++be < R.length; )
|
|
5944
|
+
if (R[be][1].type === "listOrdered" || R[be][1].type === "listUnordered")
|
|
5945
|
+
if (R[be][0] === "enter")
|
|
5946
|
+
me.push(be);
|
|
5949
5947
|
else {
|
|
5950
5948
|
const it = me.pop();
|
|
5951
|
-
|
|
5949
|
+
be = i(R, it, be);
|
|
5952
5950
|
}
|
|
5953
|
-
for (
|
|
5954
|
-
const it = t[R[
|
|
5955
|
-
Jo.call(it, R[
|
|
5956
|
-
sliceSerialize: R[
|
|
5957
|
-
}, le), R[
|
|
5951
|
+
for (be = -1; ++be < R.length; ) {
|
|
5952
|
+
const it = t[R[be][0]];
|
|
5953
|
+
Jo.call(it, R[be][1].type) && it[R[be][1].type].call(Object.assign({
|
|
5954
|
+
sliceSerialize: R[be][2].sliceSerialize
|
|
5955
|
+
}, le), R[be][1]);
|
|
5958
5956
|
}
|
|
5959
5957
|
if (le.tokenStack.length > 0) {
|
|
5960
5958
|
const it = le.tokenStack[le.tokenStack.length - 1];
|
|
@@ -5971,23 +5969,23 @@ function Qm(e) {
|
|
|
5971
5969
|
column: 1,
|
|
5972
5970
|
offset: 0
|
|
5973
5971
|
})
|
|
5974
|
-
},
|
|
5975
|
-
W = t.transforms[
|
|
5972
|
+
}, be = -1; ++be < t.transforms.length; )
|
|
5973
|
+
W = t.transforms[be](W) || W;
|
|
5976
5974
|
return W;
|
|
5977
5975
|
}
|
|
5978
5976
|
function i(R, W, le) {
|
|
5979
|
-
let me = W - 1,
|
|
5977
|
+
let me = W - 1, be = -1, it = !1, $t, Et, mr, fr;
|
|
5980
5978
|
for (; ++me <= le; ) {
|
|
5981
5979
|
const Ke = R[me];
|
|
5982
5980
|
switch (Ke[1].type) {
|
|
5983
5981
|
case "listUnordered":
|
|
5984
5982
|
case "listOrdered":
|
|
5985
5983
|
case "blockQuote": {
|
|
5986
|
-
Ke[0] === "enter" ?
|
|
5984
|
+
Ke[0] === "enter" ? be++ : be--, fr = void 0;
|
|
5987
5985
|
break;
|
|
5988
5986
|
}
|
|
5989
5987
|
case "lineEndingBlank": {
|
|
5990
|
-
Ke[0] === "enter" && ($t && !fr && !
|
|
5988
|
+
Ke[0] === "enter" && ($t && !fr && !be && !mr && (mr = me), fr = void 0);
|
|
5991
5989
|
break;
|
|
5992
5990
|
}
|
|
5993
5991
|
case "linePrefix":
|
|
@@ -5999,15 +5997,15 @@ function Qm(e) {
|
|
|
5999
5997
|
default:
|
|
6000
5998
|
fr = void 0;
|
|
6001
5999
|
}
|
|
6002
|
-
if (!
|
|
6000
|
+
if (!be && Ke[0] === "enter" && Ke[1].type === "listItemPrefix" || be === -1 && Ke[0] === "exit" && (Ke[1].type === "listUnordered" || Ke[1].type === "listOrdered")) {
|
|
6003
6001
|
if ($t) {
|
|
6004
6002
|
let er = me;
|
|
6005
6003
|
for (Et = void 0; er--; ) {
|
|
6006
|
-
const
|
|
6007
|
-
if (
|
|
6008
|
-
if (
|
|
6009
|
-
Et && (R[Et][1].type = "lineEndingBlank", it = !0),
|
|
6010
|
-
} else if (!(
|
|
6004
|
+
const Ct = R[er];
|
|
6005
|
+
if (Ct[1].type === "lineEnding" || Ct[1].type === "lineEndingBlank") {
|
|
6006
|
+
if (Ct[0] === "exit") continue;
|
|
6007
|
+
Et && (R[Et][1].type = "lineEndingBlank", it = !0), Ct[1].type = "lineEnding", Et = er;
|
|
6008
|
+
} else if (!(Ct[1].type === "linePrefix" || Ct[1].type === "blockQuotePrefix" || Ct[1].type === "blockQuotePrefixWhitespace" || Ct[1].type === "blockQuoteMarker" || Ct[1].type === "listItemIndent")) break;
|
|
6011
6009
|
}
|
|
6012
6010
|
mr && (!Et || mr < Et) && ($t._spread = !0), $t.end = Object.assign({}, Et ? R[Et][1].start : Ke[1].end), R.splice(Et || me, 0, ["exit", $t, Ke[2]]), me++, le++;
|
|
6013
6011
|
}
|
|
@@ -6083,7 +6081,7 @@ function Qm(e) {
|
|
|
6083
6081
|
function b() {
|
|
6084
6082
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
6085
6083
|
}
|
|
6086
|
-
function
|
|
6084
|
+
function C() {
|
|
6087
6085
|
const R = this.resume(), W = this.stack[this.stack.length - 1];
|
|
6088
6086
|
W.value = R.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
6089
6087
|
}
|
|
@@ -6099,11 +6097,11 @@ function Qm(e) {
|
|
|
6099
6097
|
const R = this.resume(), W = this.stack[this.stack.length - 1];
|
|
6100
6098
|
W.title = R;
|
|
6101
6099
|
}
|
|
6102
|
-
function
|
|
6100
|
+
function D() {
|
|
6103
6101
|
const R = this.resume(), W = this.stack[this.stack.length - 1];
|
|
6104
6102
|
W.url = R;
|
|
6105
6103
|
}
|
|
6106
|
-
function
|
|
6104
|
+
function L(R) {
|
|
6107
6105
|
const W = this.stack[this.stack.length - 1];
|
|
6108
6106
|
if (!W.depth) {
|
|
6109
6107
|
const le = this.sliceSerialize(R).length;
|
|
@@ -6175,7 +6173,7 @@ function Qm(e) {
|
|
|
6175
6173
|
delete R.identifier, delete R.label;
|
|
6176
6174
|
this.data.referenceType = void 0;
|
|
6177
6175
|
}
|
|
6178
|
-
function
|
|
6176
|
+
function Me(R) {
|
|
6179
6177
|
const W = this.sliceSerialize(R), le = this.stack[this.stack.length - 2];
|
|
6180
6178
|
le.label = Ym(W), le.identifier = It(W).toLowerCase();
|
|
6181
6179
|
}
|
|
@@ -6195,7 +6193,7 @@ function Qm(e) {
|
|
|
6195
6193
|
const R = this.resume(), W = this.stack[this.stack.length - 1];
|
|
6196
6194
|
W.title = R;
|
|
6197
6195
|
}
|
|
6198
|
-
function
|
|
6196
|
+
function we() {
|
|
6199
6197
|
this.data.inReference = void 0;
|
|
6200
6198
|
}
|
|
6201
6199
|
function E() {
|
|
@@ -6212,8 +6210,8 @@ function Qm(e) {
|
|
|
6212
6210
|
const W = this.sliceSerialize(R), le = this.data.characterReferenceType;
|
|
6213
6211
|
let me;
|
|
6214
6212
|
le ? (me = $o(W, le === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : me = I0(W);
|
|
6215
|
-
const
|
|
6216
|
-
|
|
6213
|
+
const be = this.stack[this.stack.length - 1];
|
|
6214
|
+
be.value += me;
|
|
6217
6215
|
}
|
|
6218
6216
|
function Ve(R) {
|
|
6219
6217
|
const W = this.stack.pop();
|
|
@@ -6644,7 +6642,7 @@ function xf(e, t) {
|
|
|
6644
6642
|
tagName: "tbody",
|
|
6645
6643
|
properties: {},
|
|
6646
6644
|
children: e.wrap(r, !0)
|
|
6647
|
-
}, o = A0(t.children[1]), s =
|
|
6645
|
+
}, o = A0(t.children[1]), s = Lo(t.children[t.children.length - 1]);
|
|
6648
6646
|
o && s && (l.position = { start: o, end: s }), i.push(l);
|
|
6649
6647
|
}
|
|
6650
6648
|
const a = {
|
|
@@ -6754,7 +6752,7 @@ const Ef = {
|
|
|
6754
6752
|
};
|
|
6755
6753
|
function gn() {
|
|
6756
6754
|
}
|
|
6757
|
-
const ns = -1, Wn = 0, Jr = 1,
|
|
6755
|
+
const ns = -1, Wn = 0, Jr = 1, Ln = 2, O0 = 3, R0 = 4, D0 = 5, L0 = 6, is = 7, as = 8, il = typeof self == "object" ? self : globalThis, Cf = (e, t) => {
|
|
6758
6756
|
const r = (i, a) => (e.set(a, i), i), n = (i) => {
|
|
6759
6757
|
if (e.has(i))
|
|
6760
6758
|
return e.get(i);
|
|
@@ -6769,7 +6767,7 @@ const ns = -1, Wn = 0, Jr = 1, Dn = 2, O0 = 3, R0 = 4, L0 = 5, D0 = 6, is = 7, a
|
|
|
6769
6767
|
o.push(n(s));
|
|
6770
6768
|
return o;
|
|
6771
6769
|
}
|
|
6772
|
-
case
|
|
6770
|
+
case Ln: {
|
|
6773
6771
|
const o = r({}, i);
|
|
6774
6772
|
for (const [s, u] of l)
|
|
6775
6773
|
o[n(s)] = n(u);
|
|
@@ -6781,13 +6779,13 @@ const ns = -1, Wn = 0, Jr = 1, Dn = 2, O0 = 3, R0 = 4, L0 = 5, D0 = 6, is = 7, a
|
|
|
6781
6779
|
const { source: o, flags: s } = l;
|
|
6782
6780
|
return r(new RegExp(o, s), i);
|
|
6783
6781
|
}
|
|
6784
|
-
case
|
|
6782
|
+
case D0: {
|
|
6785
6783
|
const o = r(/* @__PURE__ */ new Map(), i);
|
|
6786
6784
|
for (const [s, u] of l)
|
|
6787
6785
|
o.set(n(s), n(u));
|
|
6788
6786
|
return o;
|
|
6789
6787
|
}
|
|
6790
|
-
case
|
|
6788
|
+
case L0: {
|
|
6791
6789
|
const o = r(/* @__PURE__ */ new Set(), i);
|
|
6792
6790
|
for (const s of l)
|
|
6793
6791
|
o.add(n(s));
|
|
@@ -6811,28 +6809,28 @@ const ns = -1, Wn = 0, Jr = 1, Dn = 2, O0 = 3, R0 = 4, L0 = 5, D0 = 6, is = 7, a
|
|
|
6811
6809
|
return r(new il[a](l), i);
|
|
6812
6810
|
};
|
|
6813
6811
|
return n;
|
|
6814
|
-
}, al = (e) =>
|
|
6812
|
+
}, al = (e) => Cf(/* @__PURE__ */ new Map(), e)(0), Cr = "", { toString: Mf } = {}, { keys: zf } = Object, Yr = (e) => {
|
|
6815
6813
|
const t = typeof e;
|
|
6816
6814
|
if (t !== "object" || !e)
|
|
6817
6815
|
return [Wn, t];
|
|
6818
|
-
const r =
|
|
6816
|
+
const r = Mf.call(e).slice(8, -1);
|
|
6819
6817
|
switch (r) {
|
|
6820
6818
|
case "Array":
|
|
6821
|
-
return [Jr,
|
|
6819
|
+
return [Jr, Cr];
|
|
6822
6820
|
case "Object":
|
|
6823
|
-
return [
|
|
6821
|
+
return [Ln, Cr];
|
|
6824
6822
|
case "Date":
|
|
6825
|
-
return [O0,
|
|
6823
|
+
return [O0, Cr];
|
|
6826
6824
|
case "RegExp":
|
|
6827
|
-
return [R0,
|
|
6825
|
+
return [R0, Cr];
|
|
6828
6826
|
case "Map":
|
|
6829
|
-
return [
|
|
6827
|
+
return [D0, Cr];
|
|
6830
6828
|
case "Set":
|
|
6831
|
-
return [
|
|
6829
|
+
return [L0, Cr];
|
|
6832
6830
|
case "DataView":
|
|
6833
6831
|
return [Jr, r];
|
|
6834
6832
|
}
|
|
6835
|
-
return r.includes("Array") ? [Jr, r] : r.includes("Error") ? [is, r] : [
|
|
6833
|
+
return r.includes("Array") ? [Jr, r] : r.includes("Error") ? [is, r] : [Ln, r];
|
|
6836
6834
|
}, vn = ([e, t]) => e === Wn && (t === "function" || t === "symbol"), If = (e, t, r, n) => {
|
|
6837
6835
|
const i = (l, o) => {
|
|
6838
6836
|
const s = n.push(l) - 1;
|
|
@@ -6869,7 +6867,7 @@ const ns = -1, Wn = 0, Jr = 1, Dn = 2, O0 = 3, R0 = 4, L0 = 5, D0 = 6, is = 7, a
|
|
|
6869
6867
|
m.push(a(d));
|
|
6870
6868
|
return h;
|
|
6871
6869
|
}
|
|
6872
|
-
case
|
|
6870
|
+
case Ln: {
|
|
6873
6871
|
if (s)
|
|
6874
6872
|
switch (s) {
|
|
6875
6873
|
case "BigInt":
|
|
@@ -6892,13 +6890,13 @@ const ns = -1, Wn = 0, Jr = 1, Dn = 2, O0 = 3, R0 = 4, L0 = 5, D0 = 6, is = 7, a
|
|
|
6892
6890
|
const { source: m, flags: h } = l;
|
|
6893
6891
|
return i([o, { source: m, flags: h }], l);
|
|
6894
6892
|
}
|
|
6895
|
-
case
|
|
6893
|
+
case D0: {
|
|
6896
6894
|
const m = [], h = i([o, m], l);
|
|
6897
6895
|
for (const [d, p] of l)
|
|
6898
6896
|
(e || !(vn(Yr(d)) || vn(Yr(p)))) && m.push([a(d), a(p)]);
|
|
6899
6897
|
return h;
|
|
6900
6898
|
}
|
|
6901
|
-
case
|
|
6899
|
+
case L0: {
|
|
6902
6900
|
const m = [], h = i([o, m], l);
|
|
6903
6901
|
for (const d of l)
|
|
6904
6902
|
(e || !vn(Yr(d))) && m.push(a(d));
|
|
@@ -6957,10 +6955,10 @@ function Rf(e) {
|
|
|
6957
6955
|
children: Array.isArray(A) ? A : [A]
|
|
6958
6956
|
});
|
|
6959
6957
|
}
|
|
6960
|
-
const
|
|
6961
|
-
if (
|
|
6962
|
-
const A =
|
|
6963
|
-
A && A.type === "text" ? A.value += " " :
|
|
6958
|
+
const C = m[m.length - 1];
|
|
6959
|
+
if (C && C.type === "element" && C.tagName === "p") {
|
|
6960
|
+
const A = C.children[C.children.length - 1];
|
|
6961
|
+
A && A.type === "text" ? A.value += " " : C.children.push({ type: "text", value: " " }), C.children.push(...v);
|
|
6964
6962
|
} else
|
|
6965
6963
|
m.push(...v);
|
|
6966
6964
|
const w = {
|
|
@@ -7020,13 +7018,13 @@ const un = (
|
|
|
7020
7018
|
if (typeof e == "function")
|
|
7021
7019
|
return Yn(e);
|
|
7022
7020
|
if (typeof e == "object")
|
|
7023
|
-
return Array.isArray(e) ?
|
|
7021
|
+
return Array.isArray(e) ? Df(e) : Lf(e);
|
|
7024
7022
|
if (typeof e == "string")
|
|
7025
7023
|
return Bf(e);
|
|
7026
7024
|
throw new Error("Expected function, string, or object as test");
|
|
7027
7025
|
}
|
|
7028
7026
|
);
|
|
7029
|
-
function
|
|
7027
|
+
function Df(e) {
|
|
7030
7028
|
const t = [];
|
|
7031
7029
|
let r = -1;
|
|
7032
7030
|
for (; ++r < e.length; )
|
|
@@ -7039,7 +7037,7 @@ function Lf(e) {
|
|
|
7039
7037
|
return !1;
|
|
7040
7038
|
}
|
|
7041
7039
|
}
|
|
7042
|
-
function
|
|
7040
|
+
function Lf(e) {
|
|
7043
7041
|
const t = (
|
|
7044
7042
|
/** @type {Record<string, unknown>} */
|
|
7045
7043
|
e
|
|
@@ -7105,7 +7103,7 @@ function B0(e, t, r, n) {
|
|
|
7105
7103
|
}
|
|
7106
7104
|
return d;
|
|
7107
7105
|
function d() {
|
|
7108
|
-
let p = ls, v, b,
|
|
7106
|
+
let p = ls, v, b, C;
|
|
7109
7107
|
if ((!t || a(s, u, m[m.length - 1] || void 0)) && (p = Hf(r(s, m)), p[0] === n0))
|
|
7110
7108
|
return p;
|
|
7111
7109
|
if ("children" in s && s.children) {
|
|
@@ -7114,9 +7112,9 @@ function B0(e, t, r, n) {
|
|
|
7114
7112
|
s
|
|
7115
7113
|
);
|
|
7116
7114
|
if (w.children && p[0] !== os)
|
|
7117
|
-
for (b = (n ? w.children.length : -1) + l,
|
|
7115
|
+
for (b = (n ? w.children.length : -1) + l, C = m.concat(w); b > -1 && b < w.children.length; ) {
|
|
7118
7116
|
const A = w.children[b];
|
|
7119
|
-
if (v = o(A, b,
|
|
7117
|
+
if (v = o(A, b, C)(), v[0] === n0)
|
|
7120
7118
|
return v;
|
|
7121
7119
|
b = typeof v[1] == "number" ? v[1] : b + l;
|
|
7122
7120
|
}
|
|
@@ -7163,7 +7161,7 @@ function jf(e, t) {
|
|
|
7163
7161
|
return p(o, m, h);
|
|
7164
7162
|
if (o.options.passThrough && o.options.passThrough.includes(d)) {
|
|
7165
7163
|
if ("children" in m) {
|
|
7166
|
-
const { children: b, ...
|
|
7164
|
+
const { children: b, ...C } = m, w = Bn(C);
|
|
7167
7165
|
return w.children = o.all(m), w;
|
|
7168
7166
|
}
|
|
7169
7167
|
return Bn(m);
|
|
@@ -8703,37 +8701,37 @@ function A4(e, t, r) {
|
|
|
8703
8701
|
return A === null || J(A) ? (e.exit("chunkString"), e.exit("mathFlowFenceMeta"), h(A)) : A === 36 ? r(A) : (e.consume(A), m);
|
|
8704
8702
|
}
|
|
8705
8703
|
function h(A) {
|
|
8706
|
-
return e.exit("mathFlowFence"), n.interrupt ? t(A) : e.attempt(wl, d,
|
|
8704
|
+
return e.exit("mathFlowFence"), n.interrupt ? t(A) : e.attempt(wl, d, C)(A);
|
|
8707
8705
|
}
|
|
8708
8706
|
function d(A) {
|
|
8709
8707
|
return e.attempt({
|
|
8710
8708
|
tokenize: w,
|
|
8711
8709
|
partial: !0
|
|
8712
|
-
},
|
|
8710
|
+
}, C, p)(A);
|
|
8713
8711
|
}
|
|
8714
8712
|
function p(A) {
|
|
8715
8713
|
return (a ? he(e, v, "linePrefix", a + 1) : v)(A);
|
|
8716
8714
|
}
|
|
8717
8715
|
function v(A) {
|
|
8718
|
-
return A === null ?
|
|
8716
|
+
return A === null ? C(A) : J(A) ? e.attempt(wl, d, C)(A) : (e.enter("mathFlowValue"), b(A));
|
|
8719
8717
|
}
|
|
8720
8718
|
function b(A) {
|
|
8721
8719
|
return A === null || J(A) ? (e.exit("mathFlowValue"), v(A)) : (e.consume(A), b);
|
|
8722
8720
|
}
|
|
8723
|
-
function
|
|
8721
|
+
function C(A) {
|
|
8724
8722
|
return e.exit("mathFlow"), t(A);
|
|
8725
8723
|
}
|
|
8726
|
-
function w(A, z,
|
|
8727
|
-
let
|
|
8724
|
+
function w(A, z, D) {
|
|
8725
|
+
let L = 0;
|
|
8728
8726
|
return he(A, I, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
8729
8727
|
function I(H) {
|
|
8730
8728
|
return A.enter("mathFlowFence"), A.enter("mathFlowFenceSequence"), F(H);
|
|
8731
8729
|
}
|
|
8732
8730
|
function F(H) {
|
|
8733
|
-
return H === 36 ? (
|
|
8731
|
+
return H === 36 ? (L++, A.consume(H), F) : L < l ? D(H) : (A.exit("mathFlowFenceSequence"), he(A, Y, "whitespace")(H));
|
|
8734
8732
|
}
|
|
8735
8733
|
function Y(H) {
|
|
8736
|
-
return H === null || J(H) ? (A.exit("mathFlowFence"), z(H)) :
|
|
8734
|
+
return H === null || J(H) ? (A.exit("mathFlowFence"), z(H)) : D(H);
|
|
8737
8735
|
}
|
|
8738
8736
|
}
|
|
8739
8737
|
}
|
|
@@ -8747,11 +8745,11 @@ function E4(e, t, r) {
|
|
|
8747
8745
|
return n.parser.lazy[n.now().line] ? r(l) : t(l);
|
|
8748
8746
|
}
|
|
8749
8747
|
}
|
|
8750
|
-
function
|
|
8748
|
+
function C4(e) {
|
|
8751
8749
|
let r = (e || {}).singleDollarTextMath;
|
|
8752
8750
|
return r == null && (r = !0), {
|
|
8753
8751
|
tokenize: n,
|
|
8754
|
-
resolve:
|
|
8752
|
+
resolve: M4,
|
|
8755
8753
|
previous: z4,
|
|
8756
8754
|
name: "mathText"
|
|
8757
8755
|
};
|
|
@@ -8775,7 +8773,7 @@ function M4(e) {
|
|
|
8775
8773
|
}
|
|
8776
8774
|
}
|
|
8777
8775
|
}
|
|
8778
|
-
function
|
|
8776
|
+
function M4(e) {
|
|
8779
8777
|
let t = e.length - 4, r = 3, n, i;
|
|
8780
8778
|
if ((e[r][1].type === "lineEnding" || e[r][1].type === "space") && (e[t][1].type === "lineEnding" || e[t][1].type === "space")) {
|
|
8781
8779
|
for (n = r; ++n < t; )
|
|
@@ -8797,7 +8795,7 @@ function I4(e) {
|
|
|
8797
8795
|
36: T4
|
|
8798
8796
|
},
|
|
8799
8797
|
text: {
|
|
8800
|
-
36:
|
|
8798
|
+
36: C4(e)
|
|
8801
8799
|
}
|
|
8802
8800
|
};
|
|
8803
8801
|
}
|
|
@@ -8859,9 +8857,9 @@ var N4 = function(t, r) {
|
|
|
8859
8857
|
return t.indexOf(r) !== -1;
|
|
8860
8858
|
}, O4 = function(t, r) {
|
|
8861
8859
|
return t === void 0 ? r : t;
|
|
8862
|
-
}, R4 = /([A-Z])/g,
|
|
8860
|
+
}, R4 = /([A-Z])/g, D4 = function(t) {
|
|
8863
8861
|
return t.replace(R4, "-$1").toLowerCase();
|
|
8864
|
-
},
|
|
8862
|
+
}, L4 = {
|
|
8865
8863
|
"&": "&",
|
|
8866
8864
|
">": ">",
|
|
8867
8865
|
"<": "<",
|
|
@@ -8869,7 +8867,7 @@ var N4 = function(t, r) {
|
|
|
8869
8867
|
"'": "'"
|
|
8870
8868
|
}, B4 = /[&><"']/g;
|
|
8871
8869
|
function F4(e) {
|
|
8872
|
-
return String(e).replace(B4, (t) =>
|
|
8870
|
+
return String(e).replace(B4, (t) => L4[t]);
|
|
8873
8871
|
}
|
|
8874
8872
|
var hs = function e(t) {
|
|
8875
8873
|
return t.type === "ordgroup" || t.type === "color" ? t.body.length === 1 ? e(t.body[0]) : t : t.type === "font" ? e(t.body) : t;
|
|
@@ -8887,7 +8885,7 @@ var hs = function e(t) {
|
|
|
8887
8885
|
contains: N4,
|
|
8888
8886
|
deflt: O4,
|
|
8889
8887
|
escape: F4,
|
|
8890
|
-
hyphenate:
|
|
8888
|
+
hyphenate: D4,
|
|
8891
8889
|
getBaseElem: hs,
|
|
8892
8890
|
isCharacterBox: P4,
|
|
8893
8891
|
protocolFromUrl: H4
|
|
@@ -9061,40 +9059,40 @@ class rr {
|
|
|
9061
9059
|
* Get the style of a superscript given a base in the current style.
|
|
9062
9060
|
*/
|
|
9063
9061
|
sup() {
|
|
9064
|
-
return
|
|
9062
|
+
return Dt[j4[this.id]];
|
|
9065
9063
|
}
|
|
9066
9064
|
/**
|
|
9067
9065
|
* Get the style of a subscript given a base in the current style.
|
|
9068
9066
|
*/
|
|
9069
9067
|
sub() {
|
|
9070
|
-
return
|
|
9068
|
+
return Dt[$4[this.id]];
|
|
9071
9069
|
}
|
|
9072
9070
|
/**
|
|
9073
9071
|
* Get the style of a fraction numerator given the fraction in the current
|
|
9074
9072
|
* style.
|
|
9075
9073
|
*/
|
|
9076
9074
|
fracNum() {
|
|
9077
|
-
return
|
|
9075
|
+
return Dt[U4[this.id]];
|
|
9078
9076
|
}
|
|
9079
9077
|
/**
|
|
9080
9078
|
* Get the style of a fraction denominator given the fraction in the current
|
|
9081
9079
|
* style.
|
|
9082
9080
|
*/
|
|
9083
9081
|
fracDen() {
|
|
9084
|
-
return
|
|
9082
|
+
return Dt[V4[this.id]];
|
|
9085
9083
|
}
|
|
9086
9084
|
/**
|
|
9087
9085
|
* Get the cramped version of a style (in particular, cramping a cramped style
|
|
9088
9086
|
* doesn't change the style).
|
|
9089
9087
|
*/
|
|
9090
9088
|
cramp() {
|
|
9091
|
-
return
|
|
9089
|
+
return Dt[G4[this.id]];
|
|
9092
9090
|
}
|
|
9093
9091
|
/**
|
|
9094
9092
|
* Get a text or display version of this style.
|
|
9095
9093
|
*/
|
|
9096
9094
|
text() {
|
|
9097
|
-
return
|
|
9095
|
+
return Dt[W4[this.id]];
|
|
9098
9096
|
}
|
|
9099
9097
|
/**
|
|
9100
9098
|
* Return true if this style is tightly spaced (scriptstyle/scriptscriptstyle)
|
|
@@ -9103,11 +9101,11 @@ class rr {
|
|
|
9103
9101
|
return this.size >= 2;
|
|
9104
9102
|
}
|
|
9105
9103
|
}
|
|
9106
|
-
var H0 = 0, Fn = 1, Or = 2, Gt = 3, nn = 4, wt = 5, Br = 6, tt = 7,
|
|
9107
|
-
DISPLAY:
|
|
9108
|
-
TEXT:
|
|
9109
|
-
SCRIPT:
|
|
9110
|
-
SCRIPTSCRIPT:
|
|
9104
|
+
var H0 = 0, Fn = 1, Or = 2, Gt = 3, nn = 4, wt = 5, Br = 6, tt = 7, Dt = [new rr(H0, 0, !1), new rr(Fn, 0, !0), new rr(Or, 1, !1), new rr(Gt, 1, !0), new rr(nn, 2, !1), new rr(wt, 2, !0), new rr(Br, 3, !1), new rr(tt, 3, !0)], j4 = [nn, wt, nn, wt, Br, tt, Br, tt], $4 = [wt, wt, wt, wt, tt, tt, tt, tt], U4 = [Or, Gt, nn, wt, Br, tt, Br, tt], V4 = [Gt, Gt, wt, wt, tt, tt, tt, tt], G4 = [Fn, Fn, Gt, Gt, wt, wt, tt, tt], W4 = [H0, Fn, Or, Gt, Or, Gt, Or, Gt], ne = {
|
|
9105
|
+
DISPLAY: Dt[H0],
|
|
9106
|
+
TEXT: Dt[Or],
|
|
9107
|
+
SCRIPT: Dt[nn],
|
|
9108
|
+
SCRIPTSCRIPT: Dt[Br]
|
|
9111
9109
|
}, o0 = [{
|
|
9112
9110
|
// Latin characters beyond the Latin-1 characters we have metrics for.
|
|
9113
9111
|
// Needed for Czech, Hungarian and Turkish text, for example.
|
|
@@ -9184,7 +9182,7 @@ function ms(e) {
|
|
|
9184
9182
|
return !0;
|
|
9185
9183
|
return !1;
|
|
9186
9184
|
}
|
|
9187
|
-
var
|
|
9185
|
+
var Mr = 80, X4 = function(t, r) {
|
|
9188
9186
|
return "M95," + (622 + t + r) + `
|
|
9189
9187
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
9190
9188
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
@@ -9256,22 +9254,22 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
9256
9254
|
var i = "";
|
|
9257
9255
|
switch (t) {
|
|
9258
9256
|
case "sqrtMain":
|
|
9259
|
-
i = X4(r,
|
|
9257
|
+
i = X4(r, Mr);
|
|
9260
9258
|
break;
|
|
9261
9259
|
case "sqrtSize1":
|
|
9262
|
-
i = K4(r,
|
|
9260
|
+
i = K4(r, Mr);
|
|
9263
9261
|
break;
|
|
9264
9262
|
case "sqrtSize2":
|
|
9265
|
-
i = Q4(r,
|
|
9263
|
+
i = Q4(r, Mr);
|
|
9266
9264
|
break;
|
|
9267
9265
|
case "sqrtSize3":
|
|
9268
|
-
i = Z4(r,
|
|
9266
|
+
i = Z4(r, Mr);
|
|
9269
9267
|
break;
|
|
9270
9268
|
case "sqrtSize4":
|
|
9271
|
-
i = J4(r,
|
|
9269
|
+
i = J4(r, Mr);
|
|
9272
9270
|
break;
|
|
9273
9271
|
case "sqrtTall":
|
|
9274
|
-
i = tp(r,
|
|
9272
|
+
i = tp(r, Mr, n);
|
|
9275
9273
|
}
|
|
9276
9274
|
return i;
|
|
9277
9275
|
}, np = function(t, r) {
|
|
@@ -9633,7 +9631,7 @@ class hn {
|
|
|
9633
9631
|
return this.children.map(t).join("");
|
|
9634
9632
|
}
|
|
9635
9633
|
}
|
|
9636
|
-
var
|
|
9634
|
+
var Lt = {
|
|
9637
9635
|
"AMS-Regular": {
|
|
9638
9636
|
32: [0, 0, 0, 0, 0.25],
|
|
9639
9637
|
65: [0, 0.68889, 0, 0, 0.72222],
|
|
@@ -11864,13 +11862,13 @@ var Dt = {
|
|
|
11864
11862
|
я: "r"
|
|
11865
11863
|
};
|
|
11866
11864
|
function ap(e, t) {
|
|
11867
|
-
|
|
11865
|
+
Lt[e] = t;
|
|
11868
11866
|
}
|
|
11869
11867
|
function q0(e, t, r) {
|
|
11870
|
-
if (!
|
|
11868
|
+
if (!Lt[t])
|
|
11871
11869
|
throw new Error("Font metrics not found for font: " + t + ".");
|
|
11872
|
-
var n = e.charCodeAt(0), i =
|
|
11873
|
-
if (!i && e[0] in Sl && (n = Sl[e[0]].charCodeAt(0), i =
|
|
11870
|
+
var n = e.charCodeAt(0), i = Lt[t][n];
|
|
11871
|
+
if (!i && e[0] in Sl && (n = Sl[e[0]].charCodeAt(0), i = Lt[t][n]), !i && r === "text" && ms(n) && (i = Lt[t][77]), i)
|
|
11874
11872
|
return {
|
|
11875
11873
|
depth: i[0],
|
|
11876
11874
|
height: i[1],
|
|
@@ -12374,18 +12372,18 @@ var fp = {
|
|
|
12374
12372
|
"op-token": 1,
|
|
12375
12373
|
spacing: 1,
|
|
12376
12374
|
textord: 1
|
|
12377
|
-
},
|
|
12375
|
+
}, Ee = {
|
|
12378
12376
|
math: {},
|
|
12379
12377
|
text: {}
|
|
12380
12378
|
};
|
|
12381
12379
|
function c(e, t, r, n, i, a) {
|
|
12382
|
-
|
|
12380
|
+
Ee[e][i] = {
|
|
12383
12381
|
font: t,
|
|
12384
12382
|
group: r,
|
|
12385
12383
|
replace: n
|
|
12386
|
-
}, a && n && (
|
|
12384
|
+
}, a && n && (Ee[e][n] = Ee[e][i]);
|
|
12387
12385
|
}
|
|
12388
|
-
var f = "math", P = "text", g = "main", x = "ams", Ie = "accent-token", Q = "bin", rt = "close", qr = "inner", re = "mathord", qe = "op-token", gt = "open", Xn = "punct", k = "rel", Qt = "spacing",
|
|
12386
|
+
var f = "math", P = "text", g = "main", x = "ams", Ie = "accent-token", Q = "bin", rt = "close", qr = "inner", re = "mathord", qe = "op-token", gt = "open", Xn = "punct", k = "rel", Qt = "spacing", M = "textord";
|
|
12389
12387
|
c(f, g, k, "≡", "\\equiv", !0);
|
|
12390
12388
|
c(f, g, k, "≺", "\\prec", !0);
|
|
12391
12389
|
c(f, g, k, "≻", "\\succ", !0);
|
|
@@ -12412,36 +12410,36 @@ c(f, g, k, "⊣", "\\dashv", !0);
|
|
|
12412
12410
|
c(f, g, k, "∋", "\\owns");
|
|
12413
12411
|
c(f, g, Xn, ".", "\\ldotp");
|
|
12414
12412
|
c(f, g, Xn, "⋅", "\\cdotp");
|
|
12415
|
-
c(f, g,
|
|
12416
|
-
c(P, g,
|
|
12417
|
-
c(f, g,
|
|
12418
|
-
c(P, g,
|
|
12419
|
-
c(f, g,
|
|
12420
|
-
c(f, g,
|
|
12421
|
-
c(f, g,
|
|
12422
|
-
c(f, g,
|
|
12423
|
-
c(f, g,
|
|
12424
|
-
c(f, g,
|
|
12425
|
-
c(f, g,
|
|
12426
|
-
c(f, g,
|
|
12427
|
-
c(f, g,
|
|
12428
|
-
c(f, g,
|
|
12429
|
-
c(f, g,
|
|
12430
|
-
c(f, g,
|
|
12431
|
-
c(f, g,
|
|
12432
|
-
c(f, g,
|
|
12433
|
-
c(f, g,
|
|
12434
|
-
c(f, g,
|
|
12435
|
-
c(f, g,
|
|
12436
|
-
c(P, g,
|
|
12437
|
-
c(f, g,
|
|
12438
|
-
c(P, g,
|
|
12439
|
-
c(f, g,
|
|
12440
|
-
c(P, g,
|
|
12441
|
-
c(P, g,
|
|
12442
|
-
c(f, g,
|
|
12443
|
-
c(P, g,
|
|
12444
|
-
c(P, g,
|
|
12413
|
+
c(f, g, M, "#", "\\#");
|
|
12414
|
+
c(P, g, M, "#", "\\#");
|
|
12415
|
+
c(f, g, M, "&", "\\&");
|
|
12416
|
+
c(P, g, M, "&", "\\&");
|
|
12417
|
+
c(f, g, M, "ℵ", "\\aleph", !0);
|
|
12418
|
+
c(f, g, M, "∀", "\\forall", !0);
|
|
12419
|
+
c(f, g, M, "ℏ", "\\hbar", !0);
|
|
12420
|
+
c(f, g, M, "∃", "\\exists", !0);
|
|
12421
|
+
c(f, g, M, "∇", "\\nabla", !0);
|
|
12422
|
+
c(f, g, M, "♭", "\\flat", !0);
|
|
12423
|
+
c(f, g, M, "ℓ", "\\ell", !0);
|
|
12424
|
+
c(f, g, M, "♮", "\\natural", !0);
|
|
12425
|
+
c(f, g, M, "♣", "\\clubsuit", !0);
|
|
12426
|
+
c(f, g, M, "℘", "\\wp", !0);
|
|
12427
|
+
c(f, g, M, "♯", "\\sharp", !0);
|
|
12428
|
+
c(f, g, M, "♢", "\\diamondsuit", !0);
|
|
12429
|
+
c(f, g, M, "ℜ", "\\Re", !0);
|
|
12430
|
+
c(f, g, M, "♡", "\\heartsuit", !0);
|
|
12431
|
+
c(f, g, M, "ℑ", "\\Im", !0);
|
|
12432
|
+
c(f, g, M, "♠", "\\spadesuit", !0);
|
|
12433
|
+
c(f, g, M, "§", "\\S", !0);
|
|
12434
|
+
c(P, g, M, "§", "\\S");
|
|
12435
|
+
c(f, g, M, "¶", "\\P", !0);
|
|
12436
|
+
c(P, g, M, "¶", "\\P");
|
|
12437
|
+
c(f, g, M, "†", "\\dag");
|
|
12438
|
+
c(P, g, M, "†", "\\dag");
|
|
12439
|
+
c(P, g, M, "†", "\\textdagger");
|
|
12440
|
+
c(f, g, M, "‡", "\\ddag");
|
|
12441
|
+
c(P, g, M, "‡", "\\ddag");
|
|
12442
|
+
c(P, g, M, "‡", "\\textdaggerdbl");
|
|
12445
12443
|
c(f, g, rt, "⎱", "\\rmoustache", !0);
|
|
12446
12444
|
c(f, g, gt, "⎰", "\\lmoustache", !0);
|
|
12447
12445
|
c(f, g, rt, "⟯", "\\rgroup", !0);
|
|
@@ -12540,41 +12538,41 @@ c(f, x, k, "⇏", "\\nRightarrow", !0);
|
|
|
12540
12538
|
c(f, x, k, "↮", "\\nleftrightarrow", !0);
|
|
12541
12539
|
c(f, x, k, "⇎", "\\nLeftrightarrow", !0);
|
|
12542
12540
|
c(f, x, k, "△", "\\vartriangle");
|
|
12543
|
-
c(f, x,
|
|
12544
|
-
c(f, x,
|
|
12545
|
-
c(f, x,
|
|
12546
|
-
c(f, x,
|
|
12547
|
-
c(f, x,
|
|
12548
|
-
c(P, x,
|
|
12549
|
-
c(f, x,
|
|
12550
|
-
c(f, x,
|
|
12551
|
-
c(f, x,
|
|
12552
|
-
c(f, x,
|
|
12553
|
-
c(f, x,
|
|
12554
|
-
c(f, x,
|
|
12555
|
-
c(f, x,
|
|
12556
|
-
c(f, x,
|
|
12557
|
-
c(f, x,
|
|
12558
|
-
c(f, x,
|
|
12559
|
-
c(f, x,
|
|
12560
|
-
c(f, x,
|
|
12561
|
-
c(f, x,
|
|
12562
|
-
c(f, x,
|
|
12563
|
-
c(P, g,
|
|
12564
|
-
c(f, x,
|
|
12565
|
-
c(f, x,
|
|
12566
|
-
c(f, x,
|
|
12567
|
-
c(f, x,
|
|
12568
|
-
c(f, x,
|
|
12569
|
-
c(f, x,
|
|
12570
|
-
c(P, x,
|
|
12571
|
-
c(f, x,
|
|
12572
|
-
c(P, x,
|
|
12573
|
-
c(f, x,
|
|
12574
|
-
c(f, x,
|
|
12575
|
-
c(f, x,
|
|
12576
|
-
c(f, x,
|
|
12577
|
-
c(f, x,
|
|
12541
|
+
c(f, x, M, "ℏ", "\\hslash");
|
|
12542
|
+
c(f, x, M, "▽", "\\triangledown");
|
|
12543
|
+
c(f, x, M, "◊", "\\lozenge");
|
|
12544
|
+
c(f, x, M, "Ⓢ", "\\circledS");
|
|
12545
|
+
c(f, x, M, "®", "\\circledR");
|
|
12546
|
+
c(P, x, M, "®", "\\circledR");
|
|
12547
|
+
c(f, x, M, "∡", "\\measuredangle", !0);
|
|
12548
|
+
c(f, x, M, "∄", "\\nexists");
|
|
12549
|
+
c(f, x, M, "℧", "\\mho");
|
|
12550
|
+
c(f, x, M, "Ⅎ", "\\Finv", !0);
|
|
12551
|
+
c(f, x, M, "⅁", "\\Game", !0);
|
|
12552
|
+
c(f, x, M, "‵", "\\backprime");
|
|
12553
|
+
c(f, x, M, "▲", "\\blacktriangle");
|
|
12554
|
+
c(f, x, M, "▼", "\\blacktriangledown");
|
|
12555
|
+
c(f, x, M, "■", "\\blacksquare");
|
|
12556
|
+
c(f, x, M, "⧫", "\\blacklozenge");
|
|
12557
|
+
c(f, x, M, "★", "\\bigstar");
|
|
12558
|
+
c(f, x, M, "∢", "\\sphericalangle", !0);
|
|
12559
|
+
c(f, x, M, "∁", "\\complement", !0);
|
|
12560
|
+
c(f, x, M, "ð", "\\eth", !0);
|
|
12561
|
+
c(P, g, M, "ð", "ð");
|
|
12562
|
+
c(f, x, M, "╱", "\\diagup");
|
|
12563
|
+
c(f, x, M, "╲", "\\diagdown");
|
|
12564
|
+
c(f, x, M, "□", "\\square");
|
|
12565
|
+
c(f, x, M, "□", "\\Box");
|
|
12566
|
+
c(f, x, M, "◊", "\\Diamond");
|
|
12567
|
+
c(f, x, M, "¥", "\\yen", !0);
|
|
12568
|
+
c(P, x, M, "¥", "\\yen", !0);
|
|
12569
|
+
c(f, x, M, "✓", "\\checkmark", !0);
|
|
12570
|
+
c(P, x, M, "✓", "\\checkmark");
|
|
12571
|
+
c(f, x, M, "ℶ", "\\beth", !0);
|
|
12572
|
+
c(f, x, M, "ℸ", "\\daleth", !0);
|
|
12573
|
+
c(f, x, M, "ℷ", "\\gimel", !0);
|
|
12574
|
+
c(f, x, M, "ϝ", "\\digamma", !0);
|
|
12575
|
+
c(f, x, M, "ϰ", "\\varkappa");
|
|
12578
12576
|
c(f, x, gt, "┌", "\\@ulcorner", !0);
|
|
12579
12577
|
c(f, x, rt, "┐", "\\@urcorner", !0);
|
|
12580
12578
|
c(f, x, gt, "└", "\\@llcorner", !0);
|
|
@@ -12707,49 +12705,49 @@ c(f, x, k, "⇝", "\\rightsquigarrow", !0);
|
|
|
12707
12705
|
c(f, x, k, "⇝", "\\leadsto");
|
|
12708
12706
|
c(f, x, k, "⇛", "\\Rrightarrow", !0);
|
|
12709
12707
|
c(f, x, k, "↾", "\\restriction");
|
|
12710
|
-
c(f, g,
|
|
12711
|
-
c(f, g,
|
|
12712
|
-
c(P, g,
|
|
12713
|
-
c(P, g,
|
|
12714
|
-
c(f, g,
|
|
12715
|
-
c(P, g,
|
|
12716
|
-
c(f, g,
|
|
12717
|
-
c(P, g,
|
|
12718
|
-
c(P, g,
|
|
12719
|
-
c(f, g,
|
|
12720
|
-
c(f, g,
|
|
12721
|
-
c(f, g,
|
|
12722
|
-
c(f, g,
|
|
12723
|
-
c(f, g,
|
|
12724
|
-
c(f, g,
|
|
12725
|
-
c(f, g,
|
|
12726
|
-
c(f, g,
|
|
12727
|
-
c(f, g,
|
|
12728
|
-
c(f, g,
|
|
12729
|
-
c(f, g,
|
|
12730
|
-
c(f, g,
|
|
12731
|
-
c(f, g,
|
|
12732
|
-
c(f, g,
|
|
12733
|
-
c(f, g,
|
|
12734
|
-
c(f, g,
|
|
12735
|
-
c(f, g,
|
|
12736
|
-
c(f, g,
|
|
12737
|
-
c(f, g,
|
|
12738
|
-
c(f, g,
|
|
12739
|
-
c(f, g,
|
|
12740
|
-
c(f, g,
|
|
12741
|
-
c(f, g,
|
|
12742
|
-
c(f, g,
|
|
12743
|
-
c(f, g,
|
|
12744
|
-
c(f, g,
|
|
12745
|
-
c(f, g,
|
|
12746
|
-
c(f, g,
|
|
12747
|
-
c(f, g,
|
|
12748
|
-
c(f, g,
|
|
12749
|
-
c(f, g,
|
|
12750
|
-
c(f, g,
|
|
12751
|
-
c(f, g,
|
|
12752
|
-
c(f, x,
|
|
12708
|
+
c(f, g, M, "‘", "`");
|
|
12709
|
+
c(f, g, M, "$", "\\$");
|
|
12710
|
+
c(P, g, M, "$", "\\$");
|
|
12711
|
+
c(P, g, M, "$", "\\textdollar");
|
|
12712
|
+
c(f, g, M, "%", "\\%");
|
|
12713
|
+
c(P, g, M, "%", "\\%");
|
|
12714
|
+
c(f, g, M, "_", "\\_");
|
|
12715
|
+
c(P, g, M, "_", "\\_");
|
|
12716
|
+
c(P, g, M, "_", "\\textunderscore");
|
|
12717
|
+
c(f, g, M, "∠", "\\angle", !0);
|
|
12718
|
+
c(f, g, M, "∞", "\\infty", !0);
|
|
12719
|
+
c(f, g, M, "′", "\\prime");
|
|
12720
|
+
c(f, g, M, "△", "\\triangle");
|
|
12721
|
+
c(f, g, M, "Γ", "\\Gamma", !0);
|
|
12722
|
+
c(f, g, M, "Δ", "\\Delta", !0);
|
|
12723
|
+
c(f, g, M, "Θ", "\\Theta", !0);
|
|
12724
|
+
c(f, g, M, "Λ", "\\Lambda", !0);
|
|
12725
|
+
c(f, g, M, "Ξ", "\\Xi", !0);
|
|
12726
|
+
c(f, g, M, "Π", "\\Pi", !0);
|
|
12727
|
+
c(f, g, M, "Σ", "\\Sigma", !0);
|
|
12728
|
+
c(f, g, M, "Υ", "\\Upsilon", !0);
|
|
12729
|
+
c(f, g, M, "Φ", "\\Phi", !0);
|
|
12730
|
+
c(f, g, M, "Ψ", "\\Psi", !0);
|
|
12731
|
+
c(f, g, M, "Ω", "\\Omega", !0);
|
|
12732
|
+
c(f, g, M, "A", "Α");
|
|
12733
|
+
c(f, g, M, "B", "Β");
|
|
12734
|
+
c(f, g, M, "E", "Ε");
|
|
12735
|
+
c(f, g, M, "Z", "Ζ");
|
|
12736
|
+
c(f, g, M, "H", "Η");
|
|
12737
|
+
c(f, g, M, "I", "Ι");
|
|
12738
|
+
c(f, g, M, "K", "Κ");
|
|
12739
|
+
c(f, g, M, "M", "Μ");
|
|
12740
|
+
c(f, g, M, "N", "Ν");
|
|
12741
|
+
c(f, g, M, "O", "Ο");
|
|
12742
|
+
c(f, g, M, "P", "Ρ");
|
|
12743
|
+
c(f, g, M, "T", "Τ");
|
|
12744
|
+
c(f, g, M, "X", "Χ");
|
|
12745
|
+
c(f, g, M, "¬", "\\neg", !0);
|
|
12746
|
+
c(f, g, M, "¬", "\\lnot");
|
|
12747
|
+
c(f, g, M, "⊤", "\\top");
|
|
12748
|
+
c(f, g, M, "⊥", "\\bot");
|
|
12749
|
+
c(f, g, M, "∅", "\\emptyset");
|
|
12750
|
+
c(f, x, M, "∅", "\\varnothing");
|
|
12753
12751
|
c(f, g, re, "α", "\\alpha", !0);
|
|
12754
12752
|
c(f, g, re, "β", "\\beta", !0);
|
|
12755
12753
|
c(f, g, re, "γ", "\\gamma", !0);
|
|
@@ -12795,7 +12793,7 @@ c(f, g, Q, "∧", "\\land");
|
|
|
12795
12793
|
c(f, g, Q, "∨", "\\lor");
|
|
12796
12794
|
c(f, g, Q, "∧", "\\wedge", !0);
|
|
12797
12795
|
c(f, g, Q, "∨", "\\vee", !0);
|
|
12798
|
-
c(f, g,
|
|
12796
|
+
c(f, g, M, "√", "\\surd");
|
|
12799
12797
|
c(f, g, gt, "⟨", "\\langle", !0);
|
|
12800
12798
|
c(f, g, gt, "∣", "\\lvert");
|
|
12801
12799
|
c(f, g, gt, "∥", "\\lVert");
|
|
@@ -12845,7 +12843,7 @@ c(f, x, Q, "⊻", "\\veebar", !0);
|
|
|
12845
12843
|
c(f, g, Q, "⊙", "\\odot", !0);
|
|
12846
12844
|
c(f, g, Q, "⊕", "\\oplus", !0);
|
|
12847
12845
|
c(f, g, Q, "⊗", "\\otimes", !0);
|
|
12848
|
-
c(f, g,
|
|
12846
|
+
c(f, g, M, "∂", "\\partial", !0);
|
|
12849
12847
|
c(f, g, Q, "⊘", "\\oslash", !0);
|
|
12850
12848
|
c(f, x, Q, "⊚", "\\circledcirc", !0);
|
|
12851
12849
|
c(f, x, Q, "⊡", "\\boxdot", !0);
|
|
@@ -12857,35 +12855,35 @@ c(f, g, Q, "⋆", "\\star");
|
|
|
12857
12855
|
c(f, g, Q, "◃", "\\triangleleft");
|
|
12858
12856
|
c(f, g, Q, "▹", "\\triangleright");
|
|
12859
12857
|
c(f, g, gt, "{", "\\{");
|
|
12860
|
-
c(P, g,
|
|
12861
|
-
c(P, g,
|
|
12858
|
+
c(P, g, M, "{", "\\{");
|
|
12859
|
+
c(P, g, M, "{", "\\textbraceleft");
|
|
12862
12860
|
c(f, g, rt, "}", "\\}");
|
|
12863
|
-
c(P, g,
|
|
12864
|
-
c(P, g,
|
|
12861
|
+
c(P, g, M, "}", "\\}");
|
|
12862
|
+
c(P, g, M, "}", "\\textbraceright");
|
|
12865
12863
|
c(f, g, gt, "{", "\\lbrace");
|
|
12866
12864
|
c(f, g, rt, "}", "\\rbrace");
|
|
12867
12865
|
c(f, g, gt, "[", "\\lbrack", !0);
|
|
12868
|
-
c(P, g,
|
|
12866
|
+
c(P, g, M, "[", "\\lbrack", !0);
|
|
12869
12867
|
c(f, g, rt, "]", "\\rbrack", !0);
|
|
12870
|
-
c(P, g,
|
|
12868
|
+
c(P, g, M, "]", "\\rbrack", !0);
|
|
12871
12869
|
c(f, g, gt, "(", "\\lparen", !0);
|
|
12872
12870
|
c(f, g, rt, ")", "\\rparen", !0);
|
|
12873
|
-
c(P, g,
|
|
12874
|
-
c(P, g,
|
|
12871
|
+
c(P, g, M, "<", "\\textless", !0);
|
|
12872
|
+
c(P, g, M, ">", "\\textgreater", !0);
|
|
12875
12873
|
c(f, g, gt, "⌊", "\\lfloor", !0);
|
|
12876
12874
|
c(f, g, rt, "⌋", "\\rfloor", !0);
|
|
12877
12875
|
c(f, g, gt, "⌈", "\\lceil", !0);
|
|
12878
12876
|
c(f, g, rt, "⌉", "\\rceil", !0);
|
|
12879
|
-
c(f, g,
|
|
12880
|
-
c(f, g,
|
|
12881
|
-
c(f, g,
|
|
12882
|
-
c(P, g,
|
|
12883
|
-
c(f, g,
|
|
12884
|
-
c(f, g,
|
|
12885
|
-
c(P, g,
|
|
12886
|
-
c(P, g,
|
|
12887
|
-
c(P, g,
|
|
12888
|
-
c(P, g,
|
|
12877
|
+
c(f, g, M, "\\", "\\backslash");
|
|
12878
|
+
c(f, g, M, "∣", "|");
|
|
12879
|
+
c(f, g, M, "∣", "\\vert");
|
|
12880
|
+
c(P, g, M, "|", "\\textbar", !0);
|
|
12881
|
+
c(f, g, M, "∥", "\\|");
|
|
12882
|
+
c(f, g, M, "∥", "\\Vert");
|
|
12883
|
+
c(P, g, M, "∥", "\\textbardbl");
|
|
12884
|
+
c(P, g, M, "~", "\\textasciitilde");
|
|
12885
|
+
c(P, g, M, "\\", "\\textbackslash");
|
|
12886
|
+
c(P, g, M, "^", "\\textasciicircum");
|
|
12889
12887
|
c(f, g, k, "↑", "\\uparrow", !0);
|
|
12890
12888
|
c(f, g, k, "⇑", "\\Uparrow", !0);
|
|
12891
12889
|
c(f, g, k, "↓", "\\downarrow", !0);
|
|
@@ -12918,8 +12916,8 @@ c(P, g, qr, "…", "\\ldots", !0);
|
|
|
12918
12916
|
c(f, g, qr, "…", "\\ldots", !0);
|
|
12919
12917
|
c(f, g, qr, "⋯", "\\@cdots", !0);
|
|
12920
12918
|
c(f, g, qr, "⋱", "\\ddots", !0);
|
|
12921
|
-
c(f, g,
|
|
12922
|
-
c(P, g,
|
|
12919
|
+
c(f, g, M, "⋮", "\\varvdots");
|
|
12920
|
+
c(P, g, M, "⋮", "\\varvdots");
|
|
12923
12921
|
c(f, g, Ie, "ˊ", "\\acute");
|
|
12924
12922
|
c(f, g, Ie, "ˋ", "\\grave");
|
|
12925
12923
|
c(f, g, Ie, "¨", "\\ddot");
|
|
@@ -12933,17 +12931,17 @@ c(f, g, Ie, "˙", "\\dot");
|
|
|
12933
12931
|
c(f, g, Ie, "˚", "\\mathring");
|
|
12934
12932
|
c(f, g, re, "", "\\@imath");
|
|
12935
12933
|
c(f, g, re, "", "\\@jmath");
|
|
12936
|
-
c(f, g,
|
|
12937
|
-
c(f, g,
|
|
12938
|
-
c(P, g,
|
|
12939
|
-
c(P, g,
|
|
12940
|
-
c(P, g,
|
|
12941
|
-
c(P, g,
|
|
12942
|
-
c(P, g,
|
|
12943
|
-
c(P, g,
|
|
12944
|
-
c(P, g,
|
|
12945
|
-
c(P, g,
|
|
12946
|
-
c(P, g,
|
|
12934
|
+
c(f, g, M, "ı", "ı");
|
|
12935
|
+
c(f, g, M, "ȷ", "ȷ");
|
|
12936
|
+
c(P, g, M, "ı", "\\i", !0);
|
|
12937
|
+
c(P, g, M, "ȷ", "\\j", !0);
|
|
12938
|
+
c(P, g, M, "ß", "\\ss", !0);
|
|
12939
|
+
c(P, g, M, "æ", "\\ae", !0);
|
|
12940
|
+
c(P, g, M, "œ", "\\oe", !0);
|
|
12941
|
+
c(P, g, M, "ø", "\\o", !0);
|
|
12942
|
+
c(P, g, M, "Æ", "\\AE", !0);
|
|
12943
|
+
c(P, g, M, "Œ", "\\OE", !0);
|
|
12944
|
+
c(P, g, M, "Ø", "\\O", !0);
|
|
12947
12945
|
c(P, g, Ie, "ˊ", "\\'");
|
|
12948
12946
|
c(P, g, Ie, "ˋ", "\\`");
|
|
12949
12947
|
c(P, g, Ie, "ˆ", "\\^");
|
|
@@ -12963,74 +12961,74 @@ var vs = {
|
|
|
12963
12961
|
"``": !0,
|
|
12964
12962
|
"''": !0
|
|
12965
12963
|
};
|
|
12966
|
-
c(P, g,
|
|
12967
|
-
c(P, g,
|
|
12968
|
-
c(P, g,
|
|
12969
|
-
c(P, g,
|
|
12970
|
-
c(P, g,
|
|
12971
|
-
c(P, g,
|
|
12972
|
-
c(P, g,
|
|
12973
|
-
c(P, g,
|
|
12974
|
-
c(P, g,
|
|
12975
|
-
c(P, g,
|
|
12976
|
-
c(P, g,
|
|
12977
|
-
c(P, g,
|
|
12978
|
-
c(f, g,
|
|
12979
|
-
c(P, g,
|
|
12980
|
-
c(P, g,
|
|
12981
|
-
c(f, g,
|
|
12982
|
-
c(f, g,
|
|
12983
|
-
c(P, g,
|
|
12984
|
-
c(P, g,
|
|
12985
|
-
c(f, x,
|
|
12986
|
-
c(P, x,
|
|
12987
|
-
var
|
|
12988
|
-
for (var
|
|
12989
|
-
var
|
|
12990
|
-
c(f, g,
|
|
12964
|
+
c(P, g, M, "–", "--", !0);
|
|
12965
|
+
c(P, g, M, "–", "\\textendash");
|
|
12966
|
+
c(P, g, M, "—", "---", !0);
|
|
12967
|
+
c(P, g, M, "—", "\\textemdash");
|
|
12968
|
+
c(P, g, M, "‘", "`", !0);
|
|
12969
|
+
c(P, g, M, "‘", "\\textquoteleft");
|
|
12970
|
+
c(P, g, M, "’", "'", !0);
|
|
12971
|
+
c(P, g, M, "’", "\\textquoteright");
|
|
12972
|
+
c(P, g, M, "“", "``", !0);
|
|
12973
|
+
c(P, g, M, "“", "\\textquotedblleft");
|
|
12974
|
+
c(P, g, M, "”", "''", !0);
|
|
12975
|
+
c(P, g, M, "”", "\\textquotedblright");
|
|
12976
|
+
c(f, g, M, "°", "\\degree", !0);
|
|
12977
|
+
c(P, g, M, "°", "\\degree");
|
|
12978
|
+
c(P, g, M, "°", "\\textdegree", !0);
|
|
12979
|
+
c(f, g, M, "£", "\\pounds");
|
|
12980
|
+
c(f, g, M, "£", "\\mathsterling", !0);
|
|
12981
|
+
c(P, g, M, "£", "\\pounds");
|
|
12982
|
+
c(P, g, M, "£", "\\textsterling", !0);
|
|
12983
|
+
c(f, x, M, "✠", "\\maltese");
|
|
12984
|
+
c(P, x, M, "✠", "\\maltese");
|
|
12985
|
+
var Cl = '0123456789/@."';
|
|
12986
|
+
for (var Ci = 0; Ci < Cl.length; Ci++) {
|
|
12987
|
+
var Ml = Cl.charAt(Ci);
|
|
12988
|
+
c(f, g, M, Ml, Ml);
|
|
12991
12989
|
}
|
|
12992
12990
|
var zl = '0123456789!@*()-=+";:?/.,';
|
|
12993
|
-
for (var
|
|
12994
|
-
var Il = zl.charAt(
|
|
12995
|
-
c(P, g,
|
|
12991
|
+
for (var Mi = 0; Mi < zl.length; Mi++) {
|
|
12992
|
+
var Il = zl.charAt(Mi);
|
|
12993
|
+
c(P, g, M, Il, Il);
|
|
12996
12994
|
}
|
|
12997
12995
|
var Pn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
12998
12996
|
for (var zi = 0; zi < Pn.length; zi++) {
|
|
12999
12997
|
var xn = Pn.charAt(zi);
|
|
13000
|
-
c(f, g, re, xn, xn), c(P, g,
|
|
13001
|
-
}
|
|
13002
|
-
c(f, x,
|
|
13003
|
-
c(P, x,
|
|
13004
|
-
c(f, x,
|
|
13005
|
-
c(P, x,
|
|
13006
|
-
c(f, x,
|
|
13007
|
-
c(P, x,
|
|
13008
|
-
c(f, x,
|
|
13009
|
-
c(P, x,
|
|
13010
|
-
c(f, x,
|
|
13011
|
-
c(P, x,
|
|
13012
|
-
c(f, x,
|
|
13013
|
-
c(P, x,
|
|
13014
|
-
c(f, x,
|
|
13015
|
-
c(P, x,
|
|
12998
|
+
c(f, g, re, xn, xn), c(P, g, M, xn, xn);
|
|
12999
|
+
}
|
|
13000
|
+
c(f, x, M, "C", "ℂ");
|
|
13001
|
+
c(P, x, M, "C", "ℂ");
|
|
13002
|
+
c(f, x, M, "H", "ℍ");
|
|
13003
|
+
c(P, x, M, "H", "ℍ");
|
|
13004
|
+
c(f, x, M, "N", "ℕ");
|
|
13005
|
+
c(P, x, M, "N", "ℕ");
|
|
13006
|
+
c(f, x, M, "P", "ℙ");
|
|
13007
|
+
c(P, x, M, "P", "ℙ");
|
|
13008
|
+
c(f, x, M, "Q", "ℚ");
|
|
13009
|
+
c(P, x, M, "Q", "ℚ");
|
|
13010
|
+
c(f, x, M, "R", "ℝ");
|
|
13011
|
+
c(P, x, M, "R", "ℝ");
|
|
13012
|
+
c(f, x, M, "Z", "ℤ");
|
|
13013
|
+
c(P, x, M, "Z", "ℤ");
|
|
13016
13014
|
c(f, g, re, "h", "ℎ");
|
|
13017
13015
|
c(P, g, re, "h", "ℎ");
|
|
13018
13016
|
var ie = "";
|
|
13019
13017
|
for (var Ze = 0; Ze < Pn.length; Ze++) {
|
|
13020
|
-
var
|
|
13021
|
-
ie = String.fromCharCode(55349, 56320 + Ze), c(f, g, re,
|
|
13018
|
+
var De = Pn.charAt(Ze);
|
|
13019
|
+
ie = String.fromCharCode(55349, 56320 + Ze), c(f, g, re, De, ie), c(P, g, M, De, ie), ie = String.fromCharCode(55349, 56372 + Ze), c(f, g, re, De, ie), c(P, g, M, De, ie), ie = String.fromCharCode(55349, 56424 + Ze), c(f, g, re, De, ie), c(P, g, M, De, ie), ie = String.fromCharCode(55349, 56580 + Ze), c(f, g, re, De, ie), c(P, g, M, De, ie), ie = String.fromCharCode(55349, 56684 + Ze), c(f, g, re, De, ie), c(P, g, M, De, ie), ie = String.fromCharCode(55349, 56736 + Ze), c(f, g, re, De, ie), c(P, g, M, De, ie), ie = String.fromCharCode(55349, 56788 + Ze), c(f, g, re, De, ie), c(P, g, M, De, ie), ie = String.fromCharCode(55349, 56840 + Ze), c(f, g, re, De, ie), c(P, g, M, De, ie), ie = String.fromCharCode(55349, 56944 + Ze), c(f, g, re, De, ie), c(P, g, M, De, ie), Ze < 26 && (ie = String.fromCharCode(55349, 56632 + Ze), c(f, g, re, De, ie), c(P, g, M, De, ie), ie = String.fromCharCode(55349, 56476 + Ze), c(f, g, re, De, ie), c(P, g, M, De, ie));
|
|
13022
13020
|
}
|
|
13023
13021
|
ie = "𝕜";
|
|
13024
13022
|
c(f, g, re, "k", ie);
|
|
13025
|
-
c(P, g,
|
|
13023
|
+
c(P, g, M, "k", ie);
|
|
13026
13024
|
for (var dr = 0; dr < 10; dr++) {
|
|
13027
13025
|
var nr = dr.toString();
|
|
13028
|
-
ie = String.fromCharCode(55349, 57294 + dr), c(f, g, re, nr, ie), c(P, g,
|
|
13026
|
+
ie = String.fromCharCode(55349, 57294 + dr), c(f, g, re, nr, ie), c(P, g, M, nr, ie), ie = String.fromCharCode(55349, 57314 + dr), c(f, g, re, nr, ie), c(P, g, M, nr, ie), ie = String.fromCharCode(55349, 57324 + dr), c(f, g, re, nr, ie), c(P, g, M, nr, ie), ie = String.fromCharCode(55349, 57334 + dr), c(f, g, re, nr, ie), c(P, g, M, nr, ie);
|
|
13029
13027
|
}
|
|
13030
13028
|
var c0 = "ÐÞþ";
|
|
13031
13029
|
for (var Ii = 0; Ii < c0.length; Ii++) {
|
|
13032
13030
|
var wn = c0.charAt(Ii);
|
|
13033
|
-
c(f, g, re, wn, wn), c(P, g,
|
|
13031
|
+
c(f, g, re, wn, wn), c(P, g, M, wn, wn);
|
|
13034
13032
|
}
|
|
13035
13033
|
var kn = [
|
|
13036
13034
|
["mathbf", "textbf", "Main-Bold"],
|
|
@@ -13115,11 +13113,11 @@ var kn = [
|
|
|
13115
13113
|
throw new j("Unsupported character: " + t);
|
|
13116
13114
|
}
|
|
13117
13115
|
}, Kn = function(t, r, n) {
|
|
13118
|
-
return
|
|
13116
|
+
return Ee[n][t] && Ee[n][t].replace && (t = Ee[n][t].replace), {
|
|
13119
13117
|
value: t,
|
|
13120
13118
|
metrics: q0(t, r, n)
|
|
13121
13119
|
};
|
|
13122
|
-
},
|
|
13120
|
+
}, Mt = function(t, r, n, i, a) {
|
|
13123
13121
|
var l = Kn(t, r, n), o = l.metrics;
|
|
13124
13122
|
t = l.value;
|
|
13125
13123
|
var s;
|
|
@@ -13135,7 +13133,7 @@ var kn = [
|
|
|
13135
13133
|
}
|
|
13136
13134
|
return s;
|
|
13137
13135
|
}, gp = function(t, r, n, i) {
|
|
13138
|
-
return i === void 0 && (i = []), n.font === "boldsymbol" && Kn(t, "Main-Bold", r).metrics ?
|
|
13136
|
+
return i === void 0 && (i = []), n.font === "boldsymbol" && Kn(t, "Main-Bold", r).metrics ? Mt(t, "Main-Bold", r, n, i.concat(["mathbf"])) : t === "\\" || Ee[r][t].font === "main" ? Mt(t, "Main-Regular", r, n, i) : Mt(t, "AMS-Regular", r, n, i.concat(["amsrm"]));
|
|
13139
13137
|
}, vp = function(t, r, n, i, a) {
|
|
13140
13138
|
return a !== "textord" && Kn(t, "Math-BoldItalic", r).metrics ? {
|
|
13141
13139
|
fontName: "Math-BoldItalic",
|
|
@@ -13147,7 +13145,7 @@ var kn = [
|
|
|
13147
13145
|
}, yp = function(t, r, n) {
|
|
13148
13146
|
var i = t.mode, a = t.text, l = ["mord"], o = i === "math" || i === "text" && r.font, s = o ? r.font : r.fontFamily, u = "", m = "";
|
|
13149
13147
|
if (a.charCodeAt(0) === 55349 && ([u, m] = dp(a, i)), u.length > 0)
|
|
13150
|
-
return
|
|
13148
|
+
return Mt(a, u, i, r, l.concat(m));
|
|
13151
13149
|
if (s) {
|
|
13152
13150
|
var h, d;
|
|
13153
13151
|
if (s === "boldsymbol") {
|
|
@@ -13155,26 +13153,26 @@ var kn = [
|
|
|
13155
13153
|
h = p.fontName, d = [p.fontClass];
|
|
13156
13154
|
} else o ? (h = xs[s].fontName, d = [s]) : (h = Sn(s, r.fontWeight, r.fontShape), d = [s, r.fontWeight, r.fontShape]);
|
|
13157
13155
|
if (Kn(a, h, i).metrics)
|
|
13158
|
-
return
|
|
13156
|
+
return Mt(a, h, i, r, l.concat(d));
|
|
13159
13157
|
if (vs.hasOwnProperty(a) && h.slice(0, 10) === "Typewriter") {
|
|
13160
13158
|
for (var v = [], b = 0; b < a.length; b++)
|
|
13161
|
-
v.push(
|
|
13159
|
+
v.push(Mt(a[b], h, i, r, l.concat(d)));
|
|
13162
13160
|
return bs(v);
|
|
13163
13161
|
}
|
|
13164
13162
|
}
|
|
13165
13163
|
if (n === "mathord")
|
|
13166
|
-
return
|
|
13164
|
+
return Mt(a, "Math-Italic", i, r, l.concat(["mathnormal"]));
|
|
13167
13165
|
if (n === "textord") {
|
|
13168
|
-
var
|
|
13169
|
-
if (
|
|
13166
|
+
var C = Ee[i][a] && Ee[i][a].font;
|
|
13167
|
+
if (C === "ams") {
|
|
13170
13168
|
var w = Sn("amsrm", r.fontWeight, r.fontShape);
|
|
13171
|
-
return
|
|
13172
|
-
} else if (
|
|
13169
|
+
return Mt(a, w, i, r, l.concat("amsrm", r.fontWeight, r.fontShape));
|
|
13170
|
+
} else if (C === "main" || !C) {
|
|
13173
13171
|
var A = Sn("textrm", r.fontWeight, r.fontShape);
|
|
13174
|
-
return
|
|
13172
|
+
return Mt(a, A, i, r, l.concat(r.fontWeight, r.fontShape));
|
|
13175
13173
|
} else {
|
|
13176
|
-
var z = Sn(
|
|
13177
|
-
return
|
|
13174
|
+
var z = Sn(C, r.fontWeight, r.fontShape);
|
|
13175
|
+
return Mt(a, z, i, r, l.concat(z, r.fontWeight, r.fontShape));
|
|
13178
13176
|
}
|
|
13179
13177
|
} else
|
|
13180
13178
|
throw new Error("unexpected type: " + n + " in makeOrd");
|
|
@@ -13276,23 +13274,23 @@ var kn = [
|
|
|
13276
13274
|
if (b.type === "kern")
|
|
13277
13275
|
p += b.size;
|
|
13278
13276
|
else {
|
|
13279
|
-
var
|
|
13280
|
-
z.style.top = G(-a - p -
|
|
13277
|
+
var C = b.elem, w = b.wrapperClasses || [], A = b.wrapperStyle || {}, z = ot(w, [u, C], void 0, A);
|
|
13278
|
+
z.style.top = G(-a - p - C.depth), b.marginLeft && (z.style.marginLeft = b.marginLeft), b.marginRight && (z.style.marginRight = b.marginRight), m.push(z), p += C.height + C.depth;
|
|
13281
13279
|
}
|
|
13282
13280
|
h = Math.min(h, p), d = Math.max(d, p);
|
|
13283
13281
|
}
|
|
13284
|
-
var
|
|
13285
|
-
|
|
13286
|
-
var
|
|
13282
|
+
var D = ot(["vlist"], m);
|
|
13283
|
+
D.style.height = G(d);
|
|
13284
|
+
var L;
|
|
13287
13285
|
if (h < 0) {
|
|
13288
13286
|
var I = ot([], []), F = ot(["vlist"], [I]);
|
|
13289
13287
|
F.style.height = G(-h);
|
|
13290
13288
|
var Y = ot(["vlist-s"], [new St("")]);
|
|
13291
|
-
|
|
13289
|
+
L = [ot(["vlist-r"], [D, Y]), ot(["vlist-r"], [F])];
|
|
13292
13290
|
} else
|
|
13293
|
-
|
|
13294
|
-
var H = ot(["vlist-t"],
|
|
13295
|
-
return
|
|
13291
|
+
L = [ot(["vlist-r"], [D])];
|
|
13292
|
+
var H = ot(["vlist-t"], L);
|
|
13293
|
+
return L.length === 2 && H.classes.push("vlist-t2"), H.height = d, H.depth = -h, H;
|
|
13296
13294
|
}, Ep = (e, t) => {
|
|
13297
13295
|
var r = ot(["mspace"], [], t), n = Oe(e, t);
|
|
13298
13296
|
return r.style.marginRight = G(n), r;
|
|
@@ -13379,7 +13377,7 @@ var kn = [
|
|
|
13379
13377
|
oiintSize2: ["oiintSize2", 1.472, 0.659],
|
|
13380
13378
|
oiiintSize1: ["oiiintSize1", 1.304, 0.499],
|
|
13381
13379
|
oiiintSize2: ["oiiintSize2", 1.98, 0.659]
|
|
13382
|
-
},
|
|
13380
|
+
}, Cp = function(t, r) {
|
|
13383
13381
|
var [n, i, a] = ws[t], l = new lr(n), o = new Yt([l], {
|
|
13384
13382
|
width: G(i),
|
|
13385
13383
|
height: G(a),
|
|
@@ -13391,7 +13389,7 @@ var kn = [
|
|
|
13391
13389
|
return s.height = a, s.style.height = G(a), s.style.width = G(i), s;
|
|
13392
13390
|
}, O = {
|
|
13393
13391
|
fontMap: xs,
|
|
13394
|
-
makeSymbol:
|
|
13392
|
+
makeSymbol: Mt,
|
|
13395
13393
|
mathsym: gp,
|
|
13396
13394
|
makeSpan: ot,
|
|
13397
13395
|
makeSvgSpan: ys,
|
|
@@ -13402,7 +13400,7 @@ var kn = [
|
|
|
13402
13400
|
makeVList: Ap,
|
|
13403
13401
|
makeOrd: yp,
|
|
13404
13402
|
makeGlue: Ep,
|
|
13405
|
-
staticSvg:
|
|
13403
|
+
staticSvg: Cp,
|
|
13406
13404
|
svgData: ws,
|
|
13407
13405
|
tryCombineChars: xp
|
|
13408
13406
|
}, Ne = {
|
|
@@ -13414,7 +13412,7 @@ var kn = [
|
|
|
13414
13412
|
}, Ut = {
|
|
13415
13413
|
number: 5,
|
|
13416
13414
|
unit: "mu"
|
|
13417
|
-
},
|
|
13415
|
+
}, Mp = {
|
|
13418
13416
|
mord: {
|
|
13419
13417
|
mop: Ne,
|
|
13420
13418
|
mbin: gr,
|
|
@@ -13562,12 +13560,12 @@ var qn = function(t) {
|
|
|
13562
13560
|
}
|
|
13563
13561
|
var h = Xt([i[0] || "leftmost"], [], r), d = Xt([i[1] || "rightmost"], [], r), p = n === "root";
|
|
13564
13562
|
return Ol(a, (v, b) => {
|
|
13565
|
-
var
|
|
13566
|
-
|
|
13563
|
+
var C = b.classes[0], w = v.classes[0];
|
|
13564
|
+
C === "mbin" && ee.contains(Np, w) ? b.classes[0] = "mord" : w === "mbin" && ee.contains(Ip, C) && (v.classes[0] = "mord");
|
|
13567
13565
|
}, {
|
|
13568
13566
|
node: h
|
|
13569
13567
|
}, d, p), Ol(a, (v, b) => {
|
|
13570
|
-
var
|
|
13568
|
+
var C = h0(b), w = h0(v), A = C && w ? v.hasClass("mtight") ? zp[C][w] : Mp[C][w] : null;
|
|
13571
13569
|
if (A)
|
|
13572
13570
|
return O.makeGlue(A, u);
|
|
13573
13571
|
}, {
|
|
@@ -13593,7 +13591,7 @@ var qn = function(t) {
|
|
|
13593
13591
|
i && t.pop();
|
|
13594
13592
|
}, Ss = function(t) {
|
|
13595
13593
|
return t instanceof hn || t instanceof j0 || t instanceof mn && t.hasClass("enclosing") ? t : null;
|
|
13596
|
-
},
|
|
13594
|
+
}, Dp = function e(t, r) {
|
|
13597
13595
|
var n = Ss(t);
|
|
13598
13596
|
if (n) {
|
|
13599
13597
|
var i = n.children;
|
|
@@ -13606,7 +13604,7 @@ var qn = function(t) {
|
|
|
13606
13604
|
}
|
|
13607
13605
|
return t;
|
|
13608
13606
|
}, h0 = function(t, r) {
|
|
13609
|
-
return t ? (r && (t =
|
|
13607
|
+
return t ? (r && (t = Dp(t, r)), Rp[t.classes[0]] || null) : null;
|
|
13610
13608
|
}, an = function(t, r) {
|
|
13611
13609
|
var n = ["nulldelimiter"].concat(t.baseSizingClasses());
|
|
13612
13610
|
return Xt(r.concat(n));
|
|
@@ -13730,7 +13728,7 @@ class Bt {
|
|
|
13730
13728
|
return this.text;
|
|
13731
13729
|
}
|
|
13732
13730
|
}
|
|
13733
|
-
class
|
|
13731
|
+
class Lp {
|
|
13734
13732
|
/**
|
|
13735
13733
|
* Create a Space node with width given in CSS ems.
|
|
13736
13734
|
*/
|
|
@@ -13762,10 +13760,10 @@ class Dp {
|
|
|
13762
13760
|
var _ = {
|
|
13763
13761
|
MathNode: pt,
|
|
13764
13762
|
TextNode: Bt,
|
|
13765
|
-
SpaceNode:
|
|
13763
|
+
SpaceNode: Lp,
|
|
13766
13764
|
newDocumentFragment: Ts
|
|
13767
13765
|
}, Tt = function(t, r, n) {
|
|
13768
|
-
return
|
|
13766
|
+
return Ee[r][t] && Ee[r][t].replace && t.charCodeAt(0) !== 55349 && !(vs.hasOwnProperty(t) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (t = Ee[r][t].replace), new _.TextNode(t);
|
|
13769
13767
|
}, U0 = function(t) {
|
|
13770
13768
|
return t.length === 1 ? t[0] : new _.MathNode("mrow", t);
|
|
13771
13769
|
}, V0 = function(t, r) {
|
|
@@ -13804,7 +13802,7 @@ var _ = {
|
|
|
13804
13802
|
var a = t.text;
|
|
13805
13803
|
if (ee.contains(["\\imath", "\\jmath"], a))
|
|
13806
13804
|
return null;
|
|
13807
|
-
|
|
13805
|
+
Ee[i][a] && Ee[i][a].replace && (a = Ee[i][a].replace);
|
|
13808
13806
|
var l = O.fontMap[n].fontName;
|
|
13809
13807
|
return q0(a, l, i) ? O.fontMap[n].variant : null;
|
|
13810
13808
|
};
|
|
@@ -13822,11 +13820,11 @@ function Ni(e) {
|
|
|
13822
13820
|
}
|
|
13823
13821
|
var ht = function(t, r, n) {
|
|
13824
13822
|
if (t.length === 1) {
|
|
13825
|
-
var i =
|
|
13823
|
+
var i = Te(t[0], r);
|
|
13826
13824
|
return n && i instanceof pt && i.type === "mo" && (i.setAttribute("lspace", "0em"), i.setAttribute("rspace", "0em")), [i];
|
|
13827
13825
|
}
|
|
13828
13826
|
for (var a = [], l, o = 0; o < t.length; o++) {
|
|
13829
|
-
var s =
|
|
13827
|
+
var s = Te(t[o], r);
|
|
13830
13828
|
if (s instanceof pt && l instanceof pt) {
|
|
13831
13829
|
if (s.type === "mtext" && l.type === "mtext" && s.getAttribute("mathvariant") === l.getAttribute("mathvariant")) {
|
|
13832
13830
|
l.children.push(...s.children);
|
|
@@ -13855,7 +13853,7 @@ var ht = function(t, r, n) {
|
|
|
13855
13853
|
return a;
|
|
13856
13854
|
}, or = function(t, r, n) {
|
|
13857
13855
|
return U0(ht(t, r, n));
|
|
13858
|
-
},
|
|
13856
|
+
}, Te = function(t, r) {
|
|
13859
13857
|
if (!t)
|
|
13860
13858
|
return new _.MathNode("mrow");
|
|
13861
13859
|
if (Hn[t.type]) {
|
|
@@ -14009,19 +14007,19 @@ var As = function(t) {
|
|
|
14009
14007
|
var v = [1, 1, 2, 2, 3, 3][m];
|
|
14010
14008
|
s === "widehat" || s === "widecheck" ? (o = [0, 1062, 2364, 2364, 2364][v], h = [0, 239, 300, 360, 420][v], p = [0, 0.24, 0.3, 0.3, 0.36, 0.42][v], d = s + v) : (o = [0, 600, 1033, 2339, 2340][v], h = [0, 260, 286, 306, 312][v], p = [0, 0.26, 0.286, 0.3, 0.306, 0.34][v], d = "tilde" + v);
|
|
14011
14009
|
}
|
|
14012
|
-
var b = new lr(d),
|
|
14010
|
+
var b = new lr(d), C = new Yt([b], {
|
|
14013
14011
|
width: "100%",
|
|
14014
14012
|
height: G(p),
|
|
14015
14013
|
viewBox: "0 0 " + o + " " + h,
|
|
14016
14014
|
preserveAspectRatio: "none"
|
|
14017
14015
|
});
|
|
14018
14016
|
return {
|
|
14019
|
-
span: O.makeSvgSpan([], [
|
|
14017
|
+
span: O.makeSvgSpan([], [C], r),
|
|
14020
14018
|
minWidth: 0,
|
|
14021
14019
|
height: p
|
|
14022
14020
|
};
|
|
14023
14021
|
} else {
|
|
14024
|
-
var w = [], A = Hp[s], [z,
|
|
14022
|
+
var w = [], A = Hp[s], [z, D, L] = A, I = L / 1e3, F = z.length, Y, H;
|
|
14025
14023
|
if (F === 1) {
|
|
14026
14024
|
var N = A[3];
|
|
14027
14025
|
Y = ["hide-tail"], H = [N];
|
|
@@ -14036,20 +14034,20 @@ var As = function(t) {
|
|
|
14036
14034
|
var V = new lr(z[U]), ae = new Yt([V], {
|
|
14037
14035
|
width: "400em",
|
|
14038
14036
|
height: G(I),
|
|
14039
|
-
viewBox: "0 0 " + o + " " +
|
|
14037
|
+
viewBox: "0 0 " + o + " " + L,
|
|
14040
14038
|
preserveAspectRatio: H[U] + " slice"
|
|
14041
14039
|
}), te = O.makeSvgSpan([Y[U]], [ae], r);
|
|
14042
14040
|
if (F === 1)
|
|
14043
14041
|
return {
|
|
14044
14042
|
span: te,
|
|
14045
|
-
minWidth:
|
|
14043
|
+
minWidth: D,
|
|
14046
14044
|
height: I
|
|
14047
14045
|
};
|
|
14048
14046
|
te.style.height = G(I), w.push(te);
|
|
14049
14047
|
}
|
|
14050
14048
|
return {
|
|
14051
14049
|
span: O.makeSpan(["stretchy"], w, r),
|
|
14052
|
-
minWidth:
|
|
14050
|
+
minWidth: D,
|
|
14053
14051
|
height: I
|
|
14054
14052
|
};
|
|
14055
14053
|
}
|
|
@@ -14141,8 +14139,8 @@ var W0 = (e, t) => {
|
|
|
14141
14139
|
}, t, "textord"), p = El(p), p.italic = 0, v = p.width, m && (h += p.depth)), d = O.makeSpan(["accent-body"], [p]);
|
|
14142
14140
|
var b = n.label === "\\textcircled";
|
|
14143
14141
|
b && (d.classes.push("accent-full"), h = a.height);
|
|
14144
|
-
var
|
|
14145
|
-
b || (
|
|
14142
|
+
var C = o;
|
|
14143
|
+
b || (C -= v / 2), d.style.left = G(C), n.label === "\\textcircled" && (d.style.top = ".2em"), d = O.makeVList({
|
|
14146
14144
|
positionType: "firstBaseline",
|
|
14147
14145
|
children: [{
|
|
14148
14146
|
type: "elem",
|
|
@@ -14158,8 +14156,8 @@ var W0 = (e, t) => {
|
|
|
14158
14156
|
}
|
|
14159
14157
|
var w = O.makeSpan(["mord", "accent"], [d], t);
|
|
14160
14158
|
return i ? (i.children[0] = w, i.height = Math.max(w.height, i.height), i.classes[0] = "mord", i) : w;
|
|
14161
|
-
},
|
|
14162
|
-
var r = e.isStretchy ? Kt.mathMLnode(e.label) : new _.MathNode("mo", [Tt(e.label, e.mode)]), n = new _.MathNode("mover", [
|
|
14159
|
+
}, Cs = (e, t) => {
|
|
14160
|
+
var r = e.isStretchy ? Kt.mathMLnode(e.label) : new _.MathNode("mo", [Tt(e.label, e.mode)]), n = new _.MathNode("mover", [Te(e.base, t), r]);
|
|
14163
14161
|
return n.setAttribute("accent", "true"), n;
|
|
14164
14162
|
}, Up = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((e) => "\\" + e).join("|"));
|
|
14165
14163
|
X({
|
|
@@ -14180,7 +14178,7 @@ X({
|
|
|
14180
14178
|
};
|
|
14181
14179
|
},
|
|
14182
14180
|
htmlBuilder: W0,
|
|
14183
|
-
mathmlBuilder:
|
|
14181
|
+
mathmlBuilder: Cs
|
|
14184
14182
|
});
|
|
14185
14183
|
X({
|
|
14186
14184
|
type: "accent",
|
|
@@ -14204,7 +14202,7 @@ X({
|
|
|
14204
14202
|
};
|
|
14205
14203
|
},
|
|
14206
14204
|
htmlBuilder: W0,
|
|
14207
|
-
mathmlBuilder:
|
|
14205
|
+
mathmlBuilder: Cs
|
|
14208
14206
|
});
|
|
14209
14207
|
X({
|
|
14210
14208
|
type: "accentUnder",
|
|
@@ -14243,7 +14241,7 @@ X({
|
|
|
14243
14241
|
return O.makeSpan(["mord", "accentunder"], [a], t);
|
|
14244
14242
|
},
|
|
14245
14243
|
mathmlBuilder: (e, t) => {
|
|
14246
|
-
var r = Kt.mathMLnode(e.label), n = new _.MathNode("munder", [
|
|
14244
|
+
var r = Kt.mathMLnode(e.label), n = new _.MathNode("munder", [Te(e.base, t), r]);
|
|
14247
14245
|
return n.setAttribute("accentunder", "true"), n;
|
|
14248
14246
|
}
|
|
14249
14247
|
});
|
|
@@ -14348,14 +14346,14 @@ X({
|
|
|
14348
14346
|
r.setAttribute("minsize", e.label.charAt(0) === "x" ? "1.75em" : "3.0em");
|
|
14349
14347
|
var n;
|
|
14350
14348
|
if (e.body) {
|
|
14351
|
-
var i = An(
|
|
14349
|
+
var i = An(Te(e.body, t));
|
|
14352
14350
|
if (e.below) {
|
|
14353
|
-
var a = An(
|
|
14351
|
+
var a = An(Te(e.below, t));
|
|
14354
14352
|
n = new _.MathNode("munderover", [r, a, i]);
|
|
14355
14353
|
} else
|
|
14356
14354
|
n = new _.MathNode("mover", [r, i]);
|
|
14357
14355
|
} else if (e.below) {
|
|
14358
|
-
var l = An(
|
|
14356
|
+
var l = An(Te(e.below, t));
|
|
14359
14357
|
n = new _.MathNode("munder", [r, l]);
|
|
14360
14358
|
} else
|
|
14361
14359
|
n = An(), n = new _.MathNode("mover", [r, n]);
|
|
@@ -14363,7 +14361,7 @@ X({
|
|
|
14363
14361
|
}
|
|
14364
14362
|
});
|
|
14365
14363
|
var Vp = O.makeSpan;
|
|
14366
|
-
function
|
|
14364
|
+
function Ms(e, t) {
|
|
14367
14365
|
var r = je(e.body, t, !0);
|
|
14368
14366
|
return Vp([e.mclass], r, t);
|
|
14369
14367
|
}
|
|
@@ -14392,7 +14390,7 @@ X({
|
|
|
14392
14390
|
isCharacterBox: ee.isCharacterBox(i)
|
|
14393
14391
|
};
|
|
14394
14392
|
},
|
|
14395
|
-
htmlBuilder:
|
|
14393
|
+
htmlBuilder: Ms,
|
|
14396
14394
|
mathmlBuilder: zs
|
|
14397
14395
|
});
|
|
14398
14396
|
var Zn = (e) => {
|
|
@@ -14454,7 +14452,7 @@ X({
|
|
|
14454
14452
|
isCharacterBox: ee.isCharacterBox(s)
|
|
14455
14453
|
};
|
|
14456
14454
|
},
|
|
14457
|
-
htmlBuilder:
|
|
14455
|
+
htmlBuilder: Ms,
|
|
14458
14456
|
mathmlBuilder: zs
|
|
14459
14457
|
});
|
|
14460
14458
|
X({
|
|
@@ -14492,12 +14490,12 @@ var Gp = {
|
|
|
14492
14490
|
V: "\\downarrow",
|
|
14493
14491
|
"|": "\\Vert",
|
|
14494
14492
|
".": "no arrow"
|
|
14495
|
-
},
|
|
14493
|
+
}, Dl = () => ({
|
|
14496
14494
|
type: "styling",
|
|
14497
14495
|
body: [],
|
|
14498
14496
|
mode: "math",
|
|
14499
14497
|
style: "display"
|
|
14500
|
-
}),
|
|
14498
|
+
}), Ll = (e) => e.type === "textord" && e.text === "@", Wp = (e, t) => (e.type === "mathord" || e.type === "atom") && e.text === t;
|
|
14501
14499
|
function Yp(e, t, r) {
|
|
14502
14500
|
var n = Gp[e];
|
|
14503
14501
|
switch (n) {
|
|
@@ -14550,8 +14548,8 @@ function Xp(e) {
|
|
|
14550
14548
|
throw new j("Expected \\\\ or \\cr or \\end", e.nextToken);
|
|
14551
14549
|
}
|
|
14552
14550
|
for (var n = [], i = [n], a = 0; a < t.length; a++) {
|
|
14553
|
-
for (var l = t[a], o =
|
|
14554
|
-
if (!
|
|
14551
|
+
for (var l = t[a], o = Dl(), s = 0; s < l.length; s++)
|
|
14552
|
+
if (!Ll(l[s]))
|
|
14555
14553
|
o.body.push(l[s]);
|
|
14556
14554
|
else {
|
|
14557
14555
|
n.push(o), s += 1;
|
|
@@ -14571,7 +14569,7 @@ function Xp(e) {
|
|
|
14571
14569
|
d = !1, s = p;
|
|
14572
14570
|
break;
|
|
14573
14571
|
}
|
|
14574
|
-
if (
|
|
14572
|
+
if (Ll(l[p]))
|
|
14575
14573
|
throw new j("Missing a " + u + " character to complete a CD arrow.", l[p]);
|
|
14576
14574
|
m[h].body.push(l[p]);
|
|
14577
14575
|
}
|
|
@@ -14587,12 +14585,12 @@ function Xp(e) {
|
|
|
14587
14585
|
style: "display"
|
|
14588
14586
|
// CD is always displaystyle.
|
|
14589
14587
|
};
|
|
14590
|
-
n.push(b), o =
|
|
14588
|
+
n.push(b), o = Dl();
|
|
14591
14589
|
}
|
|
14592
14590
|
a % 2 === 0 ? n.push(o) : n.shift(), n = [], i.push(n);
|
|
14593
14591
|
}
|
|
14594
14592
|
e.gullet.endGroup(), e.gullet.endGroup();
|
|
14595
|
-
var
|
|
14593
|
+
var C = new Array(i[0].length).fill({
|
|
14596
14594
|
type: "align",
|
|
14597
14595
|
align: "c",
|
|
14598
14596
|
pregap: 0.25,
|
|
@@ -14607,7 +14605,7 @@ function Xp(e) {
|
|
|
14607
14605
|
arraystretch: 1,
|
|
14608
14606
|
addJot: !0,
|
|
14609
14607
|
rowGaps: [null],
|
|
14610
|
-
cols:
|
|
14608
|
+
cols: C,
|
|
14611
14609
|
colSeparationType: "CD",
|
|
14612
14610
|
hLinesBeforeRow: new Array(i.length + 1).fill([])
|
|
14613
14611
|
};
|
|
@@ -14635,7 +14633,7 @@ X({
|
|
|
14635
14633
|
return n.classes.push("cd-label-" + e.side), n.style.bottom = G(0.8 - n.depth), n.height = 0, n.depth = 0, n;
|
|
14636
14634
|
},
|
|
14637
14635
|
mathmlBuilder(e, t) {
|
|
14638
|
-
var r = new _.MathNode("mrow", [
|
|
14636
|
+
var r = new _.MathNode("mrow", [Te(e.label, t)]);
|
|
14639
14637
|
return r = new _.MathNode("mpadded", [r]), r.setAttribute("width", "0"), e.side === "left" && r.setAttribute("lspace", "-1width"), r.setAttribute("voffset", "0.7em"), r = new _.MathNode("mstyle", [r]), r.setAttribute("displaystyle", "false"), r.setAttribute("scriptlevel", "1"), r;
|
|
14640
14638
|
}
|
|
14641
14639
|
});
|
|
@@ -14660,7 +14658,7 @@ X({
|
|
|
14660
14658
|
return r.classes.push("cd-vert-arrow"), r;
|
|
14661
14659
|
},
|
|
14662
14660
|
mathmlBuilder(e, t) {
|
|
14663
|
-
return new _.MathNode("mrow", [
|
|
14661
|
+
return new _.MathNode("mrow", [Te(e.fragment, t)]);
|
|
14664
14662
|
}
|
|
14665
14663
|
});
|
|
14666
14664
|
X({
|
|
@@ -14917,24 +14915,24 @@ X({
|
|
|
14917
14915
|
}
|
|
14918
14916
|
});
|
|
14919
14917
|
var Kr = function(t, r, n) {
|
|
14920
|
-
var i =
|
|
14918
|
+
var i = Ee.math[t] && Ee.math[t].replace, a = q0(i || t, r, n);
|
|
14921
14919
|
if (!a)
|
|
14922
14920
|
throw new Error("Unsupported symbol " + t + " and font size " + r + ".");
|
|
14923
14921
|
return a;
|
|
14924
14922
|
}, Y0 = function(t, r, n, i) {
|
|
14925
14923
|
var a = n.havingBaseStyle(r), l = O.makeSpan(i.concat(a.sizingClasses(n)), [t], n), o = a.sizeMultiplier / n.sizeMultiplier;
|
|
14926
14924
|
return l.height *= o, l.depth *= o, l.maxFontSize = a.sizeMultiplier, l;
|
|
14927
|
-
},
|
|
14925
|
+
}, Ds = function(t, r, n) {
|
|
14928
14926
|
var i = r.havingBaseStyle(n), a = (1 - r.sizeMultiplier / i.sizeMultiplier) * r.fontMetrics().axisHeight;
|
|
14929
14927
|
t.classes.push("delimcenter"), t.style.top = G(a), t.height -= a, t.depth += a;
|
|
14930
14928
|
}, Qp = function(t, r, n, i, a, l) {
|
|
14931
14929
|
var o = O.makeSymbol(t, "Main-Regular", a, i), s = Y0(o, r, i, l);
|
|
14932
|
-
return n &&
|
|
14930
|
+
return n && Ds(s, i, r), s;
|
|
14933
14931
|
}, Zp = function(t, r, n, i) {
|
|
14934
14932
|
return O.makeSymbol(t, "Size" + r + "-Regular", n, i);
|
|
14935
|
-
},
|
|
14933
|
+
}, Ls = function(t, r, n, i, a, l) {
|
|
14936
14934
|
var o = Zp(t, r, a, i), s = Y0(O.makeSpan(["delimsizing", "size" + r], [o], i), ne.TEXT, i, l);
|
|
14937
|
-
return n &&
|
|
14935
|
+
return n && Ds(s, i, ne.TEXT), s;
|
|
14938
14936
|
}, Oi = function(t, r, n) {
|
|
14939
14937
|
var i;
|
|
14940
14938
|
r === "Size1-Regular" ? i = "delim-size1" : i = "delim-size4";
|
|
@@ -14944,7 +14942,7 @@ var Kr = function(t, r, n) {
|
|
|
14944
14942
|
elem: a
|
|
14945
14943
|
};
|
|
14946
14944
|
}, Ri = function(t, r, n) {
|
|
14947
|
-
var i =
|
|
14945
|
+
var i = Lt["Size4-Regular"][t.charCodeAt(0)] ? Lt["Size4-Regular"][t.charCodeAt(0)][4] : Lt["Size1-Regular"][t.charCodeAt(0)][4], a = new lr("inner", np(t, Math.round(1e3 * r))), l = new Yt([a], {
|
|
14948
14946
|
width: G(i),
|
|
14949
14947
|
height: G(r),
|
|
14950
14948
|
// Override CSS rule `.katex svg { width: 100% }`
|
|
@@ -14964,21 +14962,21 @@ var Kr = function(t, r, n) {
|
|
|
14964
14962
|
o = u = m = t, s = null;
|
|
14965
14963
|
var p = "Size1-Regular";
|
|
14966
14964
|
t === "\\uparrow" ? u = m = "⏐" : t === "\\Uparrow" ? u = m = "‖" : t === "\\downarrow" ? o = u = "⏐" : t === "\\Downarrow" ? o = u = "‖" : t === "\\updownarrow" ? (o = "\\uparrow", u = "⏐", m = "\\downarrow") : t === "\\Updownarrow" ? (o = "\\Uparrow", u = "‖", m = "\\Downarrow") : ee.contains(Jp, t) ? (u = "∣", h = "vert", d = 333) : ee.contains(ed, t) ? (u = "∥", h = "doublevert", d = 556) : t === "[" || t === "\\lbrack" ? (o = "⎡", u = "⎢", m = "⎣", p = "Size4-Regular", h = "lbrack", d = 667) : t === "]" || t === "\\rbrack" ? (o = "⎤", u = "⎥", m = "⎦", p = "Size4-Regular", h = "rbrack", d = 667) : t === "\\lfloor" || t === "⌊" ? (u = o = "⎢", m = "⎣", p = "Size4-Regular", h = "lfloor", d = 667) : t === "\\lceil" || t === "⌈" ? (o = "⎡", u = m = "⎢", p = "Size4-Regular", h = "lceil", d = 667) : t === "\\rfloor" || t === "⌋" ? (u = o = "⎥", m = "⎦", p = "Size4-Regular", h = "rfloor", d = 667) : t === "\\rceil" || t === "⌉" ? (o = "⎤", u = m = "⎥", p = "Size4-Regular", h = "rceil", d = 667) : t === "(" || t === "\\lparen" ? (o = "⎛", u = "⎜", m = "⎝", p = "Size4-Regular", h = "lparen", d = 875) : t === ")" || t === "\\rparen" ? (o = "⎞", u = "⎟", m = "⎠", p = "Size4-Regular", h = "rparen", d = 875) : t === "\\{" || t === "\\lbrace" ? (o = "⎧", s = "⎨", m = "⎩", u = "⎪", p = "Size4-Regular") : t === "\\}" || t === "\\rbrace" ? (o = "⎫", s = "⎬", m = "⎭", u = "⎪", p = "Size4-Regular") : t === "\\lgroup" || t === "⟮" ? (o = "⎧", m = "⎩", u = "⎪", p = "Size4-Regular") : t === "\\rgroup" || t === "⟯" ? (o = "⎫", m = "⎭", u = "⎪", p = "Size4-Regular") : t === "\\lmoustache" || t === "⎰" ? (o = "⎧", m = "⎭", u = "⎪", p = "Size4-Regular") : (t === "\\rmoustache" || t === "⎱") && (o = "⎫", m = "⎩", u = "⎪", p = "Size4-Regular");
|
|
14967
|
-
var v = Kr(o, p, a), b = v.height + v.depth,
|
|
14965
|
+
var v = Kr(o, p, a), b = v.height + v.depth, C = Kr(u, p, a), w = C.height + C.depth, A = Kr(m, p, a), z = A.height + A.depth, D = 0, L = 1;
|
|
14968
14966
|
if (s !== null) {
|
|
14969
14967
|
var I = Kr(s, p, a);
|
|
14970
|
-
|
|
14968
|
+
D = I.height + I.depth, L = 2;
|
|
14971
14969
|
}
|
|
14972
|
-
var F = b + z +
|
|
14970
|
+
var F = b + z + D, Y = Math.max(0, Math.ceil((r - F) / (L * w))), H = F + Y * L * w, N = i.fontMetrics().axisHeight;
|
|
14973
14971
|
n && (N *= i.sizeMultiplier);
|
|
14974
14972
|
var U = H / 2 - N, V = [];
|
|
14975
14973
|
if (h.length > 0) {
|
|
14976
|
-
var ae = H - b - z, te = Math.round(H * 1e3), K = ip(h, Math.round(ae * 1e3)), ce = new lr(h, K), pe = (d / 1e3).toFixed(3) + "em",
|
|
14974
|
+
var ae = H - b - z, te = Math.round(H * 1e3), K = ip(h, Math.round(ae * 1e3)), ce = new lr(h, K), pe = (d / 1e3).toFixed(3) + "em", Me = (te / 1e3).toFixed(3) + "em", $e = new Yt([ce], {
|
|
14977
14975
|
width: pe,
|
|
14978
|
-
height:
|
|
14976
|
+
height: Me,
|
|
14979
14977
|
viewBox: "0 0 " + d + " " + te
|
|
14980
14978
|
}), S = O.makeSvgSpan([], [$e], i);
|
|
14981
|
-
S.height = te / 1e3, S.style.width = pe, S.style.height =
|
|
14979
|
+
S.height = te / 1e3, S.style.width = pe, S.style.height = Me, V.push({
|
|
14982
14980
|
type: "elem",
|
|
14983
14981
|
elem: S
|
|
14984
14982
|
});
|
|
@@ -14987,8 +14985,8 @@ var Kr = function(t, r, n) {
|
|
|
14987
14985
|
var Ce = H - b - z + 2 * p0;
|
|
14988
14986
|
V.push(Ri(u, Ce, i));
|
|
14989
14987
|
} else {
|
|
14990
|
-
var
|
|
14991
|
-
V.push(Ri(u,
|
|
14988
|
+
var we = (H - b - z - D) / 2 + 2 * p0;
|
|
14989
|
+
V.push(Ri(u, we, i)), V.push(En), V.push(Oi(s, p, a)), V.push(En), V.push(Ri(u, we, i));
|
|
14992
14990
|
}
|
|
14993
14991
|
V.push(En), V.push(Oi(o, p, a));
|
|
14994
14992
|
}
|
|
@@ -14998,7 +14996,7 @@ var Kr = function(t, r, n) {
|
|
|
14998
14996
|
children: V
|
|
14999
14997
|
}, E);
|
|
15000
14998
|
return Y0(O.makeSpan(["delimsizing", "mult"], [Fe], E), ne.TEXT, i, l);
|
|
15001
|
-
},
|
|
14999
|
+
}, Di = 80, Li = 0.08, Bi = function(t, r, n, i, a) {
|
|
15002
15000
|
var l = rp(t, i, n), o = new lr(t, l), s = new Yt([o], {
|
|
15003
15001
|
// Note: 1000:1 ratio of viewBox to document em width.
|
|
15004
15002
|
width: "400em",
|
|
@@ -15009,7 +15007,7 @@ var Kr = function(t, r, n) {
|
|
|
15009
15007
|
return O.makeSvgSpan(["hide-tail"], [s], a);
|
|
15010
15008
|
}, td = function(t, r) {
|
|
15011
15009
|
var n = r.havingBaseSizing(), i = Hs("\\surd", t * n.sizeMultiplier, _s, n), a = n.sizeMultiplier, l = Math.max(0, r.minRuleThickness - r.fontMetrics().sqrtRuleThickness), o, s = 0, u = 0, m = 0, h;
|
|
15012
|
-
return i.type === "small" ? (m = 1e3 + 1e3 * l +
|
|
15010
|
+
return i.type === "small" ? (m = 1e3 + 1e3 * l + Di, t < 1 ? a = 1 : t < 1.4 && (a = 0.7), s = (1 + l + Li) / a, u = (1 + l) / a, o = Bi("sqrtMain", s, m, l, r), o.style.minWidth = "0.853em", h = 0.833 / a) : i.type === "large" ? (m = (1e3 + Di) * en[i.size], u = (en[i.size] + l) / a, s = (en[i.size] + l + Li) / a, o = Bi("sqrtSize" + i.size, s, m, l, r), o.style.minWidth = "1.02em", h = 1 / a) : (s = t + l + Li, u = t + l, m = Math.floor(1e3 * t + l) + Di, o = Bi("sqrtTall", s, m, l, r), o.style.minWidth = "0.742em", h = 1.056), o.height = u, o.style.height = G(s), {
|
|
15013
15011
|
span: o,
|
|
15014
15012
|
advanceWidth: h,
|
|
15015
15013
|
// Calculate the actual line width.
|
|
@@ -15020,7 +15018,7 @@ var Kr = function(t, r, n) {
|
|
|
15020
15018
|
};
|
|
15021
15019
|
}, Fs = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], rd = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], Ps = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], en = [0, 1.2, 1.8, 2.4, 3], nd = function(t, r, n, i, a) {
|
|
15022
15020
|
if (t === "<" || t === "\\lt" || t === "⟨" ? t = "\\langle" : (t === ">" || t === "\\gt" || t === "⟩") && (t = "\\rangle"), ee.contains(Fs, t) || ee.contains(Ps, t))
|
|
15023
|
-
return
|
|
15021
|
+
return Ls(t, r, !1, n, i, a);
|
|
15024
15022
|
if (ee.contains(rd, t))
|
|
15025
15023
|
return Bs(t, en[r], !1, n, i, a);
|
|
15026
15024
|
throw new j("Illegal delimiter: '" + t + "'");
|
|
@@ -15103,7 +15101,7 @@ var Kr = function(t, r, n) {
|
|
|
15103
15101
|
var o;
|
|
15104
15102
|
ee.contains(Ps, t) ? o = id : ee.contains(Fs, t) ? o = _s : o = ad;
|
|
15105
15103
|
var s = Hs(t, r, o, i);
|
|
15106
|
-
return s.type === "small" ? Qp(t, s.style, n, i, a, l) : s.type === "large" ?
|
|
15104
|
+
return s.type === "small" ? Qp(t, s.style, n, i, a, l) : s.type === "large" ? Ls(t, s.size, n, i, a, l) : Bs(t, r, n, i, a, l);
|
|
15107
15105
|
}, od = function(t, r, n, i, a, l) {
|
|
15108
15106
|
var o = i.fontMetrics().axisHeight * i.sizeMultiplier, s = 901, u = 5 / i.fontMetrics().ptPerEm, m = Math.max(r - o, n + o), h = Math.max(
|
|
15109
15107
|
// In real TeX, calculations are done using integral values which are
|
|
@@ -15364,13 +15362,13 @@ var X0 = (e, t) => {
|
|
|
15364
15362
|
a = O.makeSvgSpan(["hide-tail"], [v], t), a.style.height = G(h), l = r.depth + s + u;
|
|
15365
15363
|
} else {
|
|
15366
15364
|
/cancel/.test(n) ? o || r.classes.push("cancel-pad") : n === "angl" ? r.classes.push("anglpad") : r.classes.push("boxpad");
|
|
15367
|
-
var b = 0,
|
|
15365
|
+
var b = 0, C = 0, w = 0;
|
|
15368
15366
|
/box/.test(n) ? (w = Math.max(
|
|
15369
15367
|
t.fontMetrics().fboxrule,
|
|
15370
15368
|
// default
|
|
15371
15369
|
t.minRuleThickness
|
|
15372
15370
|
// User override.
|
|
15373
|
-
), b = t.fontMetrics().fboxsep + (n === "colorbox" ? 0 : w),
|
|
15371
|
+
), b = t.fontMetrics().fboxsep + (n === "colorbox" ? 0 : w), C = b) : n === "angl" ? (w = Math.max(t.fontMetrics().defaultRuleThickness, t.minRuleThickness), b = 4 * w, C = Math.max(0, 0.25 - r.depth)) : (b = o ? 0.2 : 0, C = b), a = Kt.encloseSpan(r, n, b, C, t), /fbox|boxed|fcolorbox/.test(n) ? (a.style.borderStyle = "solid", a.style.borderWidth = G(w)) : n === "angl" && w !== 0.049 && (a.style.borderTopWidth = G(w), a.style.borderRightWidth = G(w)), l = r.depth + C, e.backgroundColor && (a.style.backgroundColor = e.backgroundColor, e.borderColor && (a.style.borderColor = e.borderColor));
|
|
15374
15372
|
}
|
|
15375
15373
|
var A;
|
|
15376
15374
|
if (e.backgroundColor)
|
|
@@ -15412,7 +15410,7 @@ var X0 = (e, t) => {
|
|
|
15412
15410
|
}
|
|
15413
15411
|
return /cancel/.test(n) && (A.height = r.height, A.depth = r.depth), /cancel/.test(n) && !o ? O.makeSpan(["mord", "cancel-lap"], [A], t) : O.makeSpan(["mord"], [A], t);
|
|
15414
15412
|
}, K0 = (e, t) => {
|
|
15415
|
-
var r = 0, n = new _.MathNode(e.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [
|
|
15413
|
+
var r = 0, n = new _.MathNode(e.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [Te(e.body, t)]);
|
|
15416
15414
|
switch (e.label) {
|
|
15417
15415
|
case "\\cancel":
|
|
15418
15416
|
n.setAttribute("notation", "updiagonalstrike");
|
|
@@ -15621,25 +15619,25 @@ function cr(e, t, r) {
|
|
|
15621
15619
|
throw new j("Invalid \\arraystretch: " + p);
|
|
15622
15620
|
}
|
|
15623
15621
|
e.gullet.beginGroup();
|
|
15624
|
-
var v = [], b = [v],
|
|
15622
|
+
var v = [], b = [v], C = [], w = [], A = s != null ? [] : void 0;
|
|
15625
15623
|
function z() {
|
|
15626
15624
|
s && e.gullet.macros.set("\\@eqnsw", "1", !0);
|
|
15627
15625
|
}
|
|
15628
|
-
function
|
|
15626
|
+
function D() {
|
|
15629
15627
|
A && (e.gullet.macros.get("\\df@tag") ? (A.push(e.subparse([new kt("\\df@tag")])), e.gullet.macros.set("\\df@tag", void 0, !0)) : A.push(!!s && e.gullet.macros.get("\\@eqnsw") === "1"));
|
|
15630
15628
|
}
|
|
15631
15629
|
for (z(), w.push(Pl(e)); ; ) {
|
|
15632
|
-
var
|
|
15633
|
-
e.gullet.endGroup(), e.gullet.beginGroup(),
|
|
15630
|
+
var L = e.parseExpression(!1, u ? "\\end" : "\\\\");
|
|
15631
|
+
e.gullet.endGroup(), e.gullet.beginGroup(), L = {
|
|
15634
15632
|
type: "ordgroup",
|
|
15635
15633
|
mode: e.mode,
|
|
15636
|
-
body:
|
|
15637
|
-
}, r && (
|
|
15634
|
+
body: L
|
|
15635
|
+
}, r && (L = {
|
|
15638
15636
|
type: "styling",
|
|
15639
15637
|
mode: e.mode,
|
|
15640
15638
|
style: r,
|
|
15641
|
-
body: [
|
|
15642
|
-
}), v.push(
|
|
15639
|
+
body: [L]
|
|
15640
|
+
}), v.push(L);
|
|
15643
15641
|
var I = e.fetch().text;
|
|
15644
15642
|
if (I === "&") {
|
|
15645
15643
|
if (h && v.length === h) {
|
|
@@ -15649,12 +15647,12 @@ function cr(e, t, r) {
|
|
|
15649
15647
|
}
|
|
15650
15648
|
e.consume();
|
|
15651
15649
|
} else if (I === "\\end") {
|
|
15652
|
-
|
|
15650
|
+
D(), v.length === 1 && L.type === "styling" && L.body[0].body.length === 0 && (b.length > 1 || !m) && b.pop(), w.length < b.length + 1 && w.push([]);
|
|
15653
15651
|
break;
|
|
15654
15652
|
} else if (I === "\\\\") {
|
|
15655
15653
|
e.consume();
|
|
15656
15654
|
var F = void 0;
|
|
15657
|
-
e.gullet.future().text !== " " && (F = e.parseSizeGroup(!0)),
|
|
15655
|
+
e.gullet.future().text !== " " && (F = e.parseSizeGroup(!0)), C.push(F ? F.value : null), D(), w.push(Pl(e)), v = [], b.push(v), z();
|
|
15658
15656
|
} else
|
|
15659
15657
|
throw new j("Expected & or \\\\ or \\cr or \\end", e.nextToken);
|
|
15660
15658
|
}
|
|
@@ -15665,7 +15663,7 @@ function cr(e, t, r) {
|
|
|
15665
15663
|
arraystretch: l,
|
|
15666
15664
|
body: b,
|
|
15667
15665
|
cols: a,
|
|
15668
|
-
rowGaps:
|
|
15666
|
+
rowGaps: C,
|
|
15669
15667
|
hskipBeforeAndAfter: n,
|
|
15670
15668
|
hLinesBeforeRow: w,
|
|
15671
15669
|
colSeparationType: o,
|
|
@@ -15690,30 +15688,30 @@ var Pt = function(t, r) {
|
|
|
15690
15688
|
var v = t.colSeparationType === "CD" ? Oe({
|
|
15691
15689
|
number: 3,
|
|
15692
15690
|
unit: "ex"
|
|
15693
|
-
}, r) : 12 * h, b = 3 * h,
|
|
15694
|
-
function
|
|
15691
|
+
}, r) : 12 * h, b = 3 * h, C = t.arraystretch * v, w = 0.7 * C, A = 0.3 * C, z = 0;
|
|
15692
|
+
function D(jt) {
|
|
15695
15693
|
for (var Ot = 0; Ot < jt.length; ++Ot)
|
|
15696
15694
|
Ot > 0 && (z += 0.25), u.push({
|
|
15697
15695
|
pos: z,
|
|
15698
15696
|
isDashed: jt[Ot]
|
|
15699
15697
|
});
|
|
15700
15698
|
}
|
|
15701
|
-
for (
|
|
15702
|
-
var
|
|
15703
|
-
o <
|
|
15704
|
-
var Y = new Array(
|
|
15705
|
-
for (i = 0; i <
|
|
15706
|
-
var H = ye(
|
|
15699
|
+
for (D(l[0]), n = 0; n < t.body.length; ++n) {
|
|
15700
|
+
var L = t.body[n], I = w, F = A;
|
|
15701
|
+
o < L.length && (o = L.length);
|
|
15702
|
+
var Y = new Array(L.length);
|
|
15703
|
+
for (i = 0; i < L.length; ++i) {
|
|
15704
|
+
var H = ye(L[i], r);
|
|
15707
15705
|
F < H.depth && (F = H.depth), I < H.height && (I = H.height), Y[i] = H;
|
|
15708
15706
|
}
|
|
15709
15707
|
var N = t.rowGaps[n], U = 0;
|
|
15710
|
-
N && (U = Oe(N, r), U > 0 && (U += A, F < U && (F = U), U = 0)), t.addJot && (F += b), Y.height = I, Y.depth = F, z += I, Y.pos = z, z += F + U, s[n] = Y,
|
|
15708
|
+
N && (U = Oe(N, r), U > 0 && (U += A, F < U && (F = U), U = 0)), t.addJot && (F += b), Y.height = I, Y.depth = F, z += I, Y.pos = z, z += F + U, s[n] = Y, D(l[n + 1]);
|
|
15711
15709
|
}
|
|
15712
15710
|
var V = z / 2 + r.fontMetrics().axisHeight, ae = t.cols || [], te = [], K, ce, pe = [];
|
|
15713
15711
|
if (t.tags && t.tags.some((jt) => jt))
|
|
15714
15712
|
for (n = 0; n < a; ++n) {
|
|
15715
|
-
var
|
|
15716
|
-
S === !0 ? Ce = O.makeSpan(["eqn-num"], [], r) : S === !1 ? Ce = O.makeSpan([], [], r) : Ce = O.makeSpan([], je(S, r, !0), r), Ce.depth =
|
|
15713
|
+
var Me = s[n], $e = Me.pos - V, S = t.tags[n], Ce = void 0;
|
|
15714
|
+
S === !0 ? Ce = O.makeSpan(["eqn-num"], [], r) : S === !1 ? Ce = O.makeSpan([], [], r) : Ce = O.makeSpan([], je(S, r, !0), r), Ce.depth = Me.depth, Ce.height = Me.height, pe.push({
|
|
15717
15715
|
type: "elem",
|
|
15718
15716
|
elem: Ce,
|
|
15719
15717
|
shift: $e
|
|
@@ -15726,19 +15724,19 @@ var Pt = function(t, r) {
|
|
|
15726
15724
|
i < o || ce < ae.length;
|
|
15727
15725
|
++i, ++ce
|
|
15728
15726
|
) {
|
|
15729
|
-
for (var
|
|
15730
|
-
if (E || (K = O.makeSpan(["arraycolsep"], []), K.style.width = G(r.fontMetrics().doubleRuleSep), te.push(K)),
|
|
15731
|
-
var Fe =
|
|
15727
|
+
for (var we = ae[ce] || {}, E = !0; we.type === "separator"; ) {
|
|
15728
|
+
if (E || (K = O.makeSpan(["arraycolsep"], []), K.style.width = G(r.fontMetrics().doubleRuleSep), te.push(K)), we.separator === "|" || we.separator === ":") {
|
|
15729
|
+
var Fe = we.separator === "|" ? "solid" : "dashed", Ue = O.makeSpan(["vertical-separator"], [], r);
|
|
15732
15730
|
Ue.style.height = G(z), Ue.style.borderRightWidth = G(m), Ue.style.borderRightStyle = Fe, Ue.style.margin = "0 " + G(-m / 2);
|
|
15733
15731
|
var ze = z - V;
|
|
15734
15732
|
ze && (Ue.style.verticalAlign = G(-ze)), te.push(Ue);
|
|
15735
15733
|
} else
|
|
15736
|
-
throw new j("Invalid separator type: " +
|
|
15737
|
-
ce++,
|
|
15734
|
+
throw new j("Invalid separator type: " + we.separator);
|
|
15735
|
+
ce++, we = ae[ce] || {}, E = !1;
|
|
15738
15736
|
}
|
|
15739
15737
|
if (!(i >= o)) {
|
|
15740
15738
|
var Ve = void 0;
|
|
15741
|
-
(i > 0 || t.hskipBeforeAndAfter) && (Ve = ee.deflt(
|
|
15739
|
+
(i > 0 || t.hskipBeforeAndAfter) && (Ve = ee.deflt(we.pregap, d), Ve !== 0 && (K = O.makeSpan(["arraycolsep"], []), K.style.width = G(Ve), te.push(K)));
|
|
15742
15740
|
var Re = [];
|
|
15743
15741
|
for (n = 0; n < a; ++n) {
|
|
15744
15742
|
var Ge = s[n], We = Ge[i];
|
|
@@ -15754,7 +15752,7 @@ var Pt = function(t, r) {
|
|
|
15754
15752
|
Re = O.makeVList({
|
|
15755
15753
|
positionType: "individualShift",
|
|
15756
15754
|
children: Re
|
|
15757
|
-
}, r), Re = O.makeSpan(["col-align-" + (
|
|
15755
|
+
}, r), Re = O.makeSpan(["col-align-" + (we.align || "c")], [Re]), te.push(Re), (i < o - 1 || t.hskipBeforeAndAfter) && (Ve = ee.deflt(we.postgap, d), Ve !== 0 && (K = O.makeSpan(["arraycolsep"], []), K.style.width = G(Ve), te.push(K)));
|
|
15758
15756
|
}
|
|
15759
15757
|
}
|
|
15760
15758
|
if (s = O.makeSpan(["mtable"], te), u.length > 0) {
|
|
@@ -15793,23 +15791,23 @@ var Pt = function(t, r) {
|
|
|
15793
15791
|
}, _t = function(t, r) {
|
|
15794
15792
|
for (var n = [], i = new _.MathNode("mtd", [], ["mtr-glue"]), a = new _.MathNode("mtd", [], ["mml-eqn-num"]), l = 0; l < t.body.length; l++) {
|
|
15795
15793
|
for (var o = t.body[l], s = [], u = 0; u < o.length; u++)
|
|
15796
|
-
s.push(new _.MathNode("mtd", [
|
|
15794
|
+
s.push(new _.MathNode("mtd", [Te(o[u], r)]));
|
|
15797
15795
|
t.tags && t.tags[l] && (s.unshift(i), s.push(i), t.leqno ? s.unshift(a) : s.push(a)), n.push(new _.MathNode("mtr", s));
|
|
15798
15796
|
}
|
|
15799
15797
|
var m = new _.MathNode("mtable", n), h = t.arraystretch === 0.5 ? 0.1 : 0.16 + t.arraystretch - 1 + (t.addJot ? 0.09 : 0);
|
|
15800
15798
|
m.setAttribute("rowspacing", G(h));
|
|
15801
15799
|
var d = "", p = "";
|
|
15802
15800
|
if (t.cols && t.cols.length > 0) {
|
|
15803
|
-
var v = t.cols, b = "",
|
|
15801
|
+
var v = t.cols, b = "", C = !1, w = 0, A = v.length;
|
|
15804
15802
|
v[0].type === "separator" && (d += "top ", w = 1), v[v.length - 1].type === "separator" && (d += "bottom ", A -= 1);
|
|
15805
15803
|
for (var z = w; z < A; z++)
|
|
15806
|
-
v[z].type === "align" ? (p += ud[v[z].align],
|
|
15804
|
+
v[z].type === "align" ? (p += ud[v[z].align], C && (b += "none "), C = !0) : v[z].type === "separator" && C && (b += v[z].separator === "|" ? "solid " : "dashed ", C = !1);
|
|
15807
15805
|
m.setAttribute("columnalign", p.trim()), /[sd]/.test(b) && m.setAttribute("columnlines", b.trim());
|
|
15808
15806
|
}
|
|
15809
15807
|
if (t.colSeparationType === "align") {
|
|
15810
|
-
for (var
|
|
15811
|
-
|
|
15812
|
-
m.setAttribute("columnspacing",
|
|
15808
|
+
for (var D = t.cols || [], L = "", I = 1; I < D.length; I++)
|
|
15809
|
+
L += I % 2 ? "0em " : "1em ";
|
|
15810
|
+
m.setAttribute("columnspacing", L.trim());
|
|
15813
15811
|
} else t.colSeparationType === "alignat" || t.colSeparationType === "gather" ? m.setAttribute("columnspacing", "0em") : t.colSeparationType === "small" ? m.setAttribute("columnspacing", "0.2778em") : t.colSeparationType === "CD" ? m.setAttribute("columnspacing", "0.5em") : m.setAttribute("columnspacing", "1em");
|
|
15814
15812
|
var F = "", Y = t.hLinesBeforeRow;
|
|
15815
15813
|
d += Y[0].length > 0 ? "left " : "", d += Y[Y.length - 1].length > 0 ? "right " : "";
|
|
@@ -15841,23 +15839,23 @@ var Pt = function(t, r) {
|
|
|
15841
15839
|
var p = !s;
|
|
15842
15840
|
l.body.forEach(function(w) {
|
|
15843
15841
|
for (var A = 1; A < w.length; A += 2) {
|
|
15844
|
-
var z = ue(w[A], "styling"),
|
|
15845
|
-
|
|
15842
|
+
var z = ue(w[A], "styling"), D = ue(z.body[0], "ordgroup");
|
|
15843
|
+
D.body.unshift(u);
|
|
15846
15844
|
}
|
|
15847
15845
|
if (p)
|
|
15848
15846
|
s < w.length && (s = w.length);
|
|
15849
15847
|
else {
|
|
15850
|
-
var
|
|
15851
|
-
if (o <
|
|
15852
|
-
throw new j("Too many math in a row: " + ("expected " + o + ", but got " +
|
|
15848
|
+
var L = w.length / 2;
|
|
15849
|
+
if (o < L)
|
|
15850
|
+
throw new j("Too many math in a row: " + ("expected " + o + ", but got " + L), w[0]);
|
|
15853
15851
|
}
|
|
15854
15852
|
});
|
|
15855
15853
|
for (var v = 0; v < s; ++v) {
|
|
15856
|
-
var b = "r",
|
|
15857
|
-
v % 2 === 1 ? b = "l" : v > 0 && p && (
|
|
15854
|
+
var b = "r", C = 0;
|
|
15855
|
+
v % 2 === 1 ? b = "l" : v > 0 && p && (C = 1), n[v] = {
|
|
15858
15856
|
type: "align",
|
|
15859
15857
|
align: b,
|
|
15860
|
-
pregap:
|
|
15858
|
+
pregap: C,
|
|
15861
15859
|
postgap: 0
|
|
15862
15860
|
};
|
|
15863
15861
|
}
|
|
@@ -16169,7 +16167,7 @@ var Vs = (e, t) => {
|
|
|
16169
16167
|
return ye(e.body, n);
|
|
16170
16168
|
}, Gs = (e, t) => {
|
|
16171
16169
|
var r = e.font, n = t.withFont(r);
|
|
16172
|
-
return
|
|
16170
|
+
return Te(e.body, n);
|
|
16173
16171
|
}, Hl = {
|
|
16174
16172
|
"\\Bbb": "\\mathbb",
|
|
16175
16173
|
"\\bold": "\\mathbf",
|
|
@@ -16285,12 +16283,12 @@ var Ws = (e, t) => {
|
|
|
16285
16283
|
e.hasBarLine ? (e.barSize ? (h = Oe(e.barSize, t), m = O.makeLineSpan("frac-line", t, h)) : m = O.makeLineSpan("frac-line", t), h = m.height, d = m.height) : (m = null, h = 0, d = t.fontMetrics().defaultRuleThickness);
|
|
16286
16284
|
var p, v, b;
|
|
16287
16285
|
r.size === ne.DISPLAY.size || e.size === "display" ? (p = t.fontMetrics().num1, h > 0 ? v = 3 * d : v = 7 * d, b = t.fontMetrics().denom1) : (h > 0 ? (p = t.fontMetrics().num2, v = d) : (p = t.fontMetrics().num3, v = 3 * d), b = t.fontMetrics().denom2);
|
|
16288
|
-
var
|
|
16286
|
+
var C;
|
|
16289
16287
|
if (m) {
|
|
16290
16288
|
var A = t.fontMetrics().axisHeight;
|
|
16291
16289
|
p - l.depth - (A + 0.5 * h) < v && (p += v - (p - l.depth - (A + 0.5 * h))), A - 0.5 * h - (u.height - b) < v && (b += v - (A - 0.5 * h - (u.height - b)));
|
|
16292
16290
|
var z = -(A - 0.5 * h);
|
|
16293
|
-
|
|
16291
|
+
C = O.makeVList({
|
|
16294
16292
|
positionType: "individualShift",
|
|
16295
16293
|
children: [{
|
|
16296
16294
|
type: "elem",
|
|
@@ -16308,7 +16306,7 @@ var Ws = (e, t) => {
|
|
|
16308
16306
|
}, t);
|
|
16309
16307
|
} else {
|
|
16310
16308
|
var w = p - l.depth - (u.height - b);
|
|
16311
|
-
w < v && (p += 0.5 * (v - w), b += 0.5 * (v - w)),
|
|
16309
|
+
w < v && (p += 0.5 * (v - w), b += 0.5 * (v - w)), C = O.makeVList({
|
|
16312
16310
|
positionType: "individualShift",
|
|
16313
16311
|
children: [{
|
|
16314
16312
|
type: "elem",
|
|
@@ -16321,13 +16319,13 @@ var Ws = (e, t) => {
|
|
|
16321
16319
|
}]
|
|
16322
16320
|
}, t);
|
|
16323
16321
|
}
|
|
16324
|
-
a = t.havingStyle(r),
|
|
16325
|
-
var
|
|
16326
|
-
r.size === ne.DISPLAY.size ?
|
|
16327
|
-
var
|
|
16328
|
-
return e.leftDelim == null ?
|
|
16322
|
+
a = t.havingStyle(r), C.height *= a.sizeMultiplier / t.sizeMultiplier, C.depth *= a.sizeMultiplier / t.sizeMultiplier;
|
|
16323
|
+
var D;
|
|
16324
|
+
r.size === ne.DISPLAY.size ? D = t.fontMetrics().delim1 : r.size === ne.SCRIPTSCRIPT.size ? D = t.havingStyle(ne.SCRIPT).fontMetrics().delim2 : D = t.fontMetrics().delim2;
|
|
16325
|
+
var L, I;
|
|
16326
|
+
return e.leftDelim == null ? L = an(t, ["mopen"]) : L = Wt.customSizedDelim(e.leftDelim, D, !0, t.havingStyle(r), e.mode, ["mopen"]), e.continued ? I = O.makeSpan([]) : e.rightDelim == null ? I = an(t, ["mclose"]) : I = Wt.customSizedDelim(e.rightDelim, D, !0, t.havingStyle(r), e.mode, ["mclose"]), O.makeSpan(["mord"].concat(a.sizingClasses(t)), [L, O.makeSpan(["mfrac"], [C]), I], t);
|
|
16329
16327
|
}, ea = (e, t) => {
|
|
16330
|
-
var r = new _.MathNode("mfrac", [
|
|
16328
|
+
var r = new _.MathNode("mfrac", [Te(e.numer, t), Te(e.denom, t)]);
|
|
16331
16329
|
if (!e.hasBarLine)
|
|
16332
16330
|
r.setAttribute("linethickness", "0px");
|
|
16333
16331
|
else if (e.barSize) {
|
|
@@ -16645,7 +16643,7 @@ var Ys = (e, t) => {
|
|
|
16645
16643
|
return O.makeSpan(["mord", i.isOver ? "mover" : "munder"], [o], t);
|
|
16646
16644
|
}, cd = (e, t) => {
|
|
16647
16645
|
var r = Kt.mathMLnode(e.label);
|
|
16648
|
-
return new _.MathNode(e.isOver ? "mover" : "munder", [
|
|
16646
|
+
return new _.MathNode(e.isOver ? "mover" : "munder", [Te(e.base, t), r]);
|
|
16649
16647
|
};
|
|
16650
16648
|
X({
|
|
16651
16649
|
type: "horizBrace",
|
|
@@ -17016,7 +17014,7 @@ X({
|
|
|
17016
17014
|
return a.style.height = G(i.height + i.depth), i.depth && (a.style.verticalAlign = G(-i.depth)), i.children.unshift(a), i = O.makeSpan(["thinbox"], [i], t), O.makeSpan(["mord", "vbox"], [i], t);
|
|
17017
17015
|
},
|
|
17018
17016
|
mathmlBuilder: (e, t) => {
|
|
17019
|
-
var r = new _.MathNode("mpadded", [
|
|
17017
|
+
var r = new _.MathNode("mpadded", [Te(e.body, t)]);
|
|
17020
17018
|
if (e.alignment !== "rlap") {
|
|
17021
17019
|
var n = e.alignment === "llap" ? "-1" : "-0.5";
|
|
17022
17020
|
r.setAttribute("lspace", n + "width");
|
|
@@ -17193,12 +17191,12 @@ var Xs = (e, t, r, n, i, a, l) => {
|
|
|
17193
17191
|
}, n);
|
|
17194
17192
|
} else
|
|
17195
17193
|
return e;
|
|
17196
|
-
var
|
|
17194
|
+
var C = [d];
|
|
17197
17195
|
if (s && a !== 0 && !o) {
|
|
17198
17196
|
var w = O.makeSpan(["mspace"], [], n);
|
|
17199
|
-
w.style.marginRight = G(a),
|
|
17197
|
+
w.style.marginRight = G(a), C.unshift(w);
|
|
17200
17198
|
}
|
|
17201
|
-
return O.makeSpan(["mop", "op-limits"],
|
|
17199
|
+
return O.makeSpan(["mop", "op-limits"], C, n);
|
|
17202
17200
|
}, Ks = ["\\smallint"], jr = (e, t) => {
|
|
17203
17201
|
var r, n, i = !1, a;
|
|
17204
17202
|
e.type === "supsub" ? (r = e.sup, n = e.sub, a = ue(e.base, "op"), i = !0) : a = ue(e, "op");
|
|
@@ -17230,8 +17228,8 @@ var Xs = (e, t, r, n, i, a, l) => {
|
|
|
17230
17228
|
v.push(O.mathsym(a.name[b], a.mode, t));
|
|
17231
17229
|
s = O.makeSpan(["mop"], v, t);
|
|
17232
17230
|
}
|
|
17233
|
-
var
|
|
17234
|
-
return (s instanceof St || a.name === "\\oiint" || a.name === "\\oiiint") && !a.suppressBaseShift && (
|
|
17231
|
+
var C = 0, w = 0;
|
|
17232
|
+
return (s instanceof St || a.name === "\\oiint" || a.name === "\\oiiint") && !a.suppressBaseShift && (C = (s.height - s.depth) / 2 - t.fontMetrics().axisHeight, w = s.italic), i ? Xs(s, r, n, t, l, w, C) : (C && (s.style.position = "relative", s.style.top = G(C)), s);
|
|
17235
17233
|
}, fn = (e, t) => {
|
|
17236
17234
|
var r;
|
|
17237
17235
|
if (e.symbol)
|
|
@@ -17503,7 +17501,7 @@ X({
|
|
|
17503
17501
|
mathmlBuilder(e, t) {
|
|
17504
17502
|
var r = new _.MathNode("mo", [new _.TextNode("‾")]);
|
|
17505
17503
|
r.setAttribute("stretchy", "true");
|
|
17506
|
-
var n = new _.MathNode("mover", [
|
|
17504
|
+
var n = new _.MathNode("mover", [Te(e.body, t), r]);
|
|
17507
17505
|
return n.setAttribute("accent", "true"), n;
|
|
17508
17506
|
}
|
|
17509
17507
|
});
|
|
@@ -17625,7 +17623,7 @@ X({
|
|
|
17625
17623
|
}, t);
|
|
17626
17624
|
},
|
|
17627
17625
|
mathmlBuilder(e, t) {
|
|
17628
|
-
var r = new _.MathNode("mpadded", [
|
|
17626
|
+
var r = new _.MathNode("mpadded", [Te(e.body, t)]), n = e.dy.number + e.dy.unit;
|
|
17629
17627
|
return r.setAttribute("voffset", n), r;
|
|
17630
17628
|
}
|
|
17631
17629
|
});
|
|
@@ -17773,7 +17771,7 @@ X({
|
|
|
17773
17771
|
return O.makeSpan(["mord"], [a], t);
|
|
17774
17772
|
},
|
|
17775
17773
|
mathmlBuilder: (e, t) => {
|
|
17776
|
-
var r = new _.MathNode("mpadded", [
|
|
17774
|
+
var r = new _.MathNode("mpadded", [Te(e.body, t)]);
|
|
17777
17775
|
return e.smashHeight && r.setAttribute("height", "0px"), e.smashDepth && r.setAttribute("depth", "0px"), r;
|
|
17778
17776
|
}
|
|
17779
17777
|
});
|
|
@@ -17826,9 +17824,9 @@ X({
|
|
|
17826
17824
|
}]
|
|
17827
17825
|
}, t);
|
|
17828
17826
|
if (e.index) {
|
|
17829
|
-
var v = t.havingStyle(ne.SCRIPTSCRIPT), b = ye(e.index, v, t),
|
|
17827
|
+
var v = t.havingStyle(ne.SCRIPTSCRIPT), b = ye(e.index, v, t), C = 0.6 * (p.height - p.depth), w = O.makeVList({
|
|
17830
17828
|
positionType: "shift",
|
|
17831
|
-
positionData: -
|
|
17829
|
+
positionData: -C,
|
|
17832
17830
|
children: [{
|
|
17833
17831
|
type: "elem",
|
|
17834
17832
|
elem: b
|
|
@@ -17843,7 +17841,7 @@ X({
|
|
|
17843
17841
|
body: r,
|
|
17844
17842
|
index: n
|
|
17845
17843
|
} = e;
|
|
17846
|
-
return n ? new _.MathNode("mroot", [
|
|
17844
|
+
return n ? new _.MathNode("mroot", [Te(r, t), Te(n, t)]) : new _.MathNode("msqrt", [Te(r, t)]);
|
|
17847
17845
|
}
|
|
17848
17846
|
});
|
|
17849
17847
|
var Vl = {
|
|
@@ -17930,15 +17928,15 @@ Sr({
|
|
|
17930
17928
|
}
|
|
17931
17929
|
var b;
|
|
17932
17930
|
t.style === ne.DISPLAY ? b = u.sup1 : t.style.cramped ? b = u.sup3 : b = u.sup2;
|
|
17933
|
-
var
|
|
17931
|
+
var C = t.sizeMultiplier, w = G(0.5 / u.ptPerEm / C), A = null;
|
|
17934
17932
|
if (s) {
|
|
17935
17933
|
var z = e.base && e.base.type === "op" && e.base.name && (e.base.name === "\\oiint" || e.base.name === "\\oiiint");
|
|
17936
17934
|
(l instanceof St || z) && (A = G(-l.italic));
|
|
17937
17935
|
}
|
|
17938
|
-
var
|
|
17936
|
+
var D;
|
|
17939
17937
|
if (o && s) {
|
|
17940
17938
|
m = Math.max(m, b, o.depth + 0.25 * u.xHeight), h = Math.max(h, u.sub2);
|
|
17941
|
-
var
|
|
17939
|
+
var L = u.defaultRuleThickness, I = 4 * L;
|
|
17942
17940
|
if (m - o.depth - (s.height - h) < I) {
|
|
17943
17941
|
h = I - (m - o.depth) + s.height;
|
|
17944
17942
|
var F = 0.8 * u.xHeight - (m - o.depth);
|
|
@@ -17956,7 +17954,7 @@ Sr({
|
|
|
17956
17954
|
shift: -m,
|
|
17957
17955
|
marginRight: w
|
|
17958
17956
|
}];
|
|
17959
|
-
|
|
17957
|
+
D = O.makeVList({
|
|
17960
17958
|
positionType: "individualShift",
|
|
17961
17959
|
children: Y
|
|
17962
17960
|
}, t);
|
|
@@ -17968,13 +17966,13 @@ Sr({
|
|
|
17968
17966
|
marginLeft: A,
|
|
17969
17967
|
marginRight: w
|
|
17970
17968
|
}];
|
|
17971
|
-
|
|
17969
|
+
D = O.makeVList({
|
|
17972
17970
|
positionType: "shift",
|
|
17973
17971
|
positionData: h,
|
|
17974
17972
|
children: H
|
|
17975
17973
|
}, t);
|
|
17976
17974
|
} else if (o)
|
|
17977
|
-
m = Math.max(m, b, o.depth + 0.25 * u.xHeight),
|
|
17975
|
+
m = Math.max(m, b, o.depth + 0.25 * u.xHeight), D = O.makeVList({
|
|
17978
17976
|
positionType: "shift",
|
|
17979
17977
|
positionData: -m,
|
|
17980
17978
|
children: [{
|
|
@@ -17986,13 +17984,13 @@ Sr({
|
|
|
17986
17984
|
else
|
|
17987
17985
|
throw new Error("supsub must have either sup or sub.");
|
|
17988
17986
|
var N = h0(l, "right") || "mord";
|
|
17989
|
-
return O.makeSpan([N], [l, O.makeSpan(["msupsub"], [
|
|
17987
|
+
return O.makeSpan([N], [l, O.makeSpan(["msupsub"], [D])], t);
|
|
17990
17988
|
},
|
|
17991
17989
|
mathmlBuilder(e, t) {
|
|
17992
17990
|
var r = !1, n, i;
|
|
17993
17991
|
e.base && e.base.type === "horizBrace" && (i = !!e.sup, i === e.base.isOver && (r = !0, n = e.base.isOver)), e.base && (e.base.type === "op" || e.base.type === "operatorname") && (e.base.parentIsSupSub = !0);
|
|
17994
|
-
var a = [
|
|
17995
|
-
e.sub && a.push(
|
|
17992
|
+
var a = [Te(e.base, t)];
|
|
17993
|
+
e.sub && a.push(Te(e.sub, t)), e.sup && a.push(Te(e.sup, t));
|
|
17996
17994
|
var l;
|
|
17997
17995
|
if (r)
|
|
17998
17996
|
l = n ? "mover" : "munder";
|
|
@@ -18211,7 +18209,7 @@ X({
|
|
|
18211
18209
|
mathmlBuilder(e, t) {
|
|
18212
18210
|
var r = new _.MathNode("mo", [new _.TextNode("‾")]);
|
|
18213
18211
|
r.setAttribute("stretchy", "true");
|
|
18214
|
-
var n = new _.MathNode("munder", [
|
|
18212
|
+
var n = new _.MathNode("munder", [Te(e.body, t), r]);
|
|
18215
18213
|
return n.setAttribute("accentunder", "true"), n;
|
|
18216
18214
|
}
|
|
18217
18215
|
});
|
|
@@ -18246,7 +18244,7 @@ X({
|
|
|
18246
18244
|
}, t);
|
|
18247
18245
|
},
|
|
18248
18246
|
mathmlBuilder(e, t) {
|
|
18249
|
-
return new _.MathNode("mpadded", [
|
|
18247
|
+
return new _.MathNode("mpadded", [Te(e.body, t)], ["vcenter"]);
|
|
18250
18248
|
}
|
|
18251
18249
|
});
|
|
18252
18250
|
X({
|
|
@@ -18522,7 +18520,7 @@ y("\\errmessage", (e) => {
|
|
|
18522
18520
|
});
|
|
18523
18521
|
y("\\show", (e) => {
|
|
18524
18522
|
var t = e.popToken(), r = t.text;
|
|
18525
|
-
return console.log(t, e.macros.get(r), ir[r],
|
|
18523
|
+
return console.log(t, e.macros.get(r), ir[r], Ee.math[r], Ee.text[r]), "";
|
|
18526
18524
|
});
|
|
18527
18525
|
y("\\bgroup", "{");
|
|
18528
18526
|
y("\\egroup", "}");
|
|
@@ -18657,7 +18655,7 @@ var Jl = {
|
|
|
18657
18655
|
};
|
|
18658
18656
|
y("\\dots", function(e) {
|
|
18659
18657
|
var t = "\\dotso", r = e.expandAfterFuture().text;
|
|
18660
|
-
return r in Jl ? t = Jl[r] : (r.slice(0, 4) === "\\not" || r in
|
|
18658
|
+
return r in Jl ? t = Jl[r] : (r.slice(0, 4) === "\\not" || r in Ee.math && ee.contains(["bin", "rel"], Ee.math[r].group)) && (t = "\\dotsb"), t;
|
|
18661
18659
|
});
|
|
18662
18660
|
var ra = {
|
|
18663
18661
|
// \rightdelim@ checks for the following:
|
|
@@ -18731,7 +18729,7 @@ y("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}");
|
|
|
18731
18729
|
y("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");
|
|
18732
18730
|
y("\\newline", "\\\\\\relax");
|
|
18733
18731
|
y("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");
|
|
18734
|
-
var tu = G(
|
|
18732
|
+
var tu = G(Lt["Main-Regular"][84][1] - 0.7 * Lt["Main-Regular"][65][1]);
|
|
18735
18733
|
y("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + tu + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}");
|
|
18736
18734
|
y("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + tu + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}");
|
|
18737
18735
|
y("\\hspace", "\\@ifstar\\@hspacer\\@hspace");
|
|
@@ -19262,7 +19260,7 @@ class Ad {
|
|
|
19262
19260
|
* `implicitCommands`.
|
|
19263
19261
|
*/
|
|
19264
19262
|
isDefined(t) {
|
|
19265
|
-
return this.macros.has(t) || ir.hasOwnProperty(t) ||
|
|
19263
|
+
return this.macros.has(t) || ir.hasOwnProperty(t) || Ee.math.hasOwnProperty(t) || Ee.text.hasOwnProperty(t) || nu.hasOwnProperty(t);
|
|
19266
19264
|
}
|
|
19267
19265
|
/**
|
|
19268
19266
|
* Determine whether a command is expandable.
|
|
@@ -19272,7 +19270,7 @@ class Ad {
|
|
|
19272
19270
|
return r != null ? typeof r == "string" || typeof r == "function" || !r.unexpandable : ir.hasOwnProperty(t) && !ir[t].primitive;
|
|
19273
19271
|
}
|
|
19274
19272
|
}
|
|
19275
|
-
var eo = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,
|
|
19273
|
+
var eo = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, Cn = Object.freeze({
|
|
19276
19274
|
"₊": "+",
|
|
19277
19275
|
"₋": "-",
|
|
19278
19276
|
"₌": "=",
|
|
@@ -19959,13 +19957,13 @@ class ti {
|
|
|
19959
19957
|
mode: this.mode,
|
|
19960
19958
|
body: s
|
|
19961
19959
|
};
|
|
19962
|
-
} else if (
|
|
19960
|
+
} else if (Cn[a.text]) {
|
|
19963
19961
|
var u = eo.test(a.text), m = [];
|
|
19964
|
-
for (m.push(new kt(
|
|
19962
|
+
for (m.push(new kt(Cn[a.text])), this.consume(); ; ) {
|
|
19965
19963
|
var h = this.fetch().text;
|
|
19966
|
-
if (!
|
|
19964
|
+
if (!Cn[h] || eo.test(h) !== u)
|
|
19967
19965
|
break;
|
|
19968
|
-
m.unshift(new kt(
|
|
19966
|
+
m.unshift(new kt(Cn[h])), this.consume();
|
|
19969
19967
|
}
|
|
19970
19968
|
var d = this.subparse(m);
|
|
19971
19969
|
u ? i = {
|
|
@@ -20283,13 +20281,13 @@ class ti {
|
|
|
20283
20281
|
star: i
|
|
20284
20282
|
};
|
|
20285
20283
|
}
|
|
20286
|
-
to.hasOwnProperty(r[0]) && !
|
|
20284
|
+
to.hasOwnProperty(r[0]) && !Ee[this.mode][r[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + r[0] + '" used in math mode', t), r = to[r[0]] + r.slice(1));
|
|
20287
20285
|
var a = wd.exec(r);
|
|
20288
20286
|
a && (r = r.substring(0, a.index), r === "i" ? r = "ı" : r === "j" && (r = "ȷ"));
|
|
20289
20287
|
var l;
|
|
20290
|
-
if (
|
|
20288
|
+
if (Ee[this.mode][r]) {
|
|
20291
20289
|
this.settings.strict && this.mode === "math" && c0.indexOf(r) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + r[0] + '" used in math mode', t);
|
|
20292
|
-
var o =
|
|
20290
|
+
var o = Ee[this.mode][r].group, s = ft.range(t), u;
|
|
20293
20291
|
if (fp.hasOwnProperty(o)) {
|
|
20294
20292
|
var m = o;
|
|
20295
20293
|
u = {
|
|
@@ -20367,7 +20365,7 @@ typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console
|
|
|
20367
20365
|
var Ed = function(t, r) {
|
|
20368
20366
|
var n = ia(t, r).toMarkup();
|
|
20369
20367
|
return n;
|
|
20370
|
-
},
|
|
20368
|
+
}, Cd = function(t, r) {
|
|
20371
20369
|
var n = new _0(r);
|
|
20372
20370
|
return na(t, n);
|
|
20373
20371
|
}, au = function(t, r, n) {
|
|
@@ -20383,7 +20381,7 @@ var Ed = function(t, r) {
|
|
|
20383
20381
|
} catch (a) {
|
|
20384
20382
|
return au(a, t, n);
|
|
20385
20383
|
}
|
|
20386
|
-
},
|
|
20384
|
+
}, Md = function(t, r) {
|
|
20387
20385
|
var n = new _0(r);
|
|
20388
20386
|
try {
|
|
20389
20387
|
var i = na(t, n);
|
|
@@ -20429,7 +20427,7 @@ var Ed = function(t, r) {
|
|
|
20429
20427
|
* The internal tree representation is unstable and is very likely
|
|
20430
20428
|
* to change. Use at your own risk.
|
|
20431
20429
|
*/
|
|
20432
|
-
__parse:
|
|
20430
|
+
__parse: Cd,
|
|
20433
20431
|
/**
|
|
20434
20432
|
* Renders the given LaTeX into an HTML+MathML internal DOM tree
|
|
20435
20433
|
* representation, without flattening that representation to a string.
|
|
@@ -20447,7 +20445,7 @@ var Ed = function(t, r) {
|
|
|
20447
20445
|
* The internal tree representation is unstable and is very likely
|
|
20448
20446
|
* to change. Use at your own risk.
|
|
20449
20447
|
*/
|
|
20450
|
-
__renderToHTMLTree:
|
|
20448
|
+
__renderToHTMLTree: Md,
|
|
20451
20449
|
/**
|
|
20452
20450
|
* extends internal font metrics object with a new object
|
|
20453
20451
|
* each key in the new object represents a font name
|
|
@@ -20515,11 +20513,11 @@ function lu(e, t, r) {
|
|
|
20515
20513
|
} else {
|
|
20516
20514
|
s = Rd(a, t);
|
|
20517
20515
|
const u = s.tagName.toLowerCase(), m = n ? n.get(u) : void 0;
|
|
20518
|
-
if (s.tagName = m || u,
|
|
20516
|
+
if (s.tagName = m || u, Dd(l))
|
|
20519
20517
|
o.unshift(l);
|
|
20520
20518
|
else
|
|
20521
20519
|
for (const [h, d] of Object.entries(l))
|
|
20522
|
-
|
|
20520
|
+
Ld(e, s.properties, h, d);
|
|
20523
20521
|
}
|
|
20524
20522
|
for (const u of o)
|
|
20525
20523
|
g0(s.children, u);
|
|
@@ -20527,7 +20525,7 @@ function lu(e, t, r) {
|
|
|
20527
20525
|
}
|
|
20528
20526
|
return i;
|
|
20529
20527
|
}
|
|
20530
|
-
function
|
|
20528
|
+
function Dd(e) {
|
|
20531
20529
|
if (e === null || typeof e != "object" || Array.isArray(e))
|
|
20532
20530
|
return !0;
|
|
20533
20531
|
if (typeof e.type != "string") return !1;
|
|
@@ -20550,7 +20548,7 @@ function Ld(e) {
|
|
|
20550
20548
|
}
|
|
20551
20549
|
return !!("children" in e && Array.isArray(e.children));
|
|
20552
20550
|
}
|
|
20553
|
-
function
|
|
20551
|
+
function Ld(e, t, r, n) {
|
|
20554
20552
|
const i = Ro(e, r);
|
|
20555
20553
|
let a;
|
|
20556
20554
|
if (n != null) {
|
|
@@ -20645,7 +20643,7 @@ const Pd = [
|
|
|
20645
20643
|
"solidColor",
|
|
20646
20644
|
"textArea",
|
|
20647
20645
|
"textPath"
|
|
20648
|
-
], _d = lu(
|
|
20646
|
+
], _d = lu(Do, "div"), Hd = lu($n, "g", Pd), qi = {
|
|
20649
20647
|
html: "http://www.w3.org/1999/xhtml",
|
|
20650
20648
|
svg: "http://www.w3.org/2000/svg"
|
|
20651
20649
|
};
|
|
@@ -21064,10 +21062,10 @@ function c5(e) {
|
|
|
21064
21062
|
displayMode: m,
|
|
21065
21063
|
throwOnError: !0
|
|
21066
21064
|
});
|
|
21067
|
-
} catch (
|
|
21065
|
+
} catch (C) {
|
|
21068
21066
|
const w = (
|
|
21069
21067
|
/** @type {Error} */
|
|
21070
|
-
|
|
21068
|
+
C
|
|
21071
21069
|
), A = w.name.toLowerCase();
|
|
21072
21070
|
n.message("Could not render math with KaTeX", {
|
|
21073
21071
|
ancestors: [...a, i],
|
|
@@ -21091,7 +21089,7 @@ function c5(e) {
|
|
|
21091
21089
|
properties: {
|
|
21092
21090
|
className: ["katex-error"],
|
|
21093
21091
|
style: "color:" + (t.errorColor || "#cc0000"),
|
|
21094
|
-
title: String(
|
|
21092
|
+
title: String(C)
|
|
21095
21093
|
},
|
|
21096
21094
|
children: [{ type: "text", value: p }]
|
|
21097
21095
|
}
|
|
@@ -21142,25 +21140,25 @@ function m5(e, t, r) {
|
|
|
21142
21140
|
function s(u, m) {
|
|
21143
21141
|
const h = m[m.length - 1], d = a[l][0], p = a[l][1];
|
|
21144
21142
|
let v = 0;
|
|
21145
|
-
const
|
|
21143
|
+
const C = h.children.indexOf(u);
|
|
21146
21144
|
let w = !1, A = [];
|
|
21147
21145
|
d.lastIndex = 0;
|
|
21148
21146
|
let z = d.exec(u.value);
|
|
21149
21147
|
for (; z; ) {
|
|
21150
|
-
const
|
|
21148
|
+
const D = z.index, L = {
|
|
21151
21149
|
index: z.index,
|
|
21152
21150
|
input: z.input,
|
|
21153
21151
|
stack: [...m, u]
|
|
21154
21152
|
};
|
|
21155
|
-
let I = p(...z,
|
|
21156
|
-
if (typeof I == "string" && (I = I.length > 0 ? { type: "text", value: I } : void 0), I === !1 ? d.lastIndex =
|
|
21153
|
+
let I = p(...z, L);
|
|
21154
|
+
if (typeof I == "string" && (I = I.length > 0 ? { type: "text", value: I } : void 0), I === !1 ? d.lastIndex = D + 1 : (v !== D && A.push({
|
|
21157
21155
|
type: "text",
|
|
21158
|
-
value: u.value.slice(v,
|
|
21159
|
-
}), Array.isArray(I) ? A.push(...I) : I && A.push(I), v =
|
|
21156
|
+
value: u.value.slice(v, D)
|
|
21157
|
+
}), Array.isArray(I) ? A.push(...I) : I && A.push(I), v = D + z[0].length, w = !0), !d.global)
|
|
21160
21158
|
break;
|
|
21161
21159
|
z = d.exec(u.value);
|
|
21162
21160
|
}
|
|
21163
|
-
return w ? (v < u.value.length && A.push({ type: "text", value: u.value.slice(v) }), h.children.splice(
|
|
21161
|
+
return w ? (v < u.value.length && A.push({ type: "text", value: u.value.slice(v) }), h.children.splice(C, 1, ...A)) : A = [u], C + A.length;
|
|
21164
21162
|
}
|
|
21165
21163
|
}
|
|
21166
21164
|
function f5(e) {
|
|
@@ -21262,7 +21260,7 @@ function T5(e, t, r, n, i) {
|
|
|
21262
21260
|
let a = "";
|
|
21263
21261
|
if (!fu(i) || (/^w/i.test(t) && (r = t + r, t = "", a = "http://"), !E5(r)))
|
|
21264
21262
|
return !1;
|
|
21265
|
-
const l =
|
|
21263
|
+
const l = C5(r + n);
|
|
21266
21264
|
if (!l[0]) return !1;
|
|
21267
21265
|
const o = {
|
|
21268
21266
|
type: "link",
|
|
@@ -21288,7 +21286,7 @@ function E5(e) {
|
|
|
21288
21286
|
const t = e.split(".");
|
|
21289
21287
|
return !(t.length < 2 || t[t.length - 1] && (/_/.test(t[t.length - 1]) || !/[a-zA-Z\d]/.test(t[t.length - 1])) || t[t.length - 2] && (/_/.test(t[t.length - 2]) || !/[a-zA-Z\d]/.test(t[t.length - 2])));
|
|
21290
21288
|
}
|
|
21291
|
-
function
|
|
21289
|
+
function C5(e) {
|
|
21292
21290
|
const t = /[!"&'),.:;<>?\]}]+$/.exec(e);
|
|
21293
21291
|
if (!t)
|
|
21294
21292
|
return [e, void 0];
|
|
@@ -21306,7 +21304,7 @@ function fu(e, t) {
|
|
|
21306
21304
|
(!t || r !== 47);
|
|
21307
21305
|
}
|
|
21308
21306
|
pu.peek = B5;
|
|
21309
|
-
function
|
|
21307
|
+
function M5() {
|
|
21310
21308
|
this.buffer();
|
|
21311
21309
|
}
|
|
21312
21310
|
function z5(e) {
|
|
@@ -21330,13 +21328,13 @@ function O5(e) {
|
|
|
21330
21328
|
function R5(e) {
|
|
21331
21329
|
this.exit(e);
|
|
21332
21330
|
}
|
|
21333
|
-
function
|
|
21331
|
+
function D5(e) {
|
|
21334
21332
|
const t = this.resume(), r = this.stack[this.stack.length - 1];
|
|
21335
21333
|
r.type, r.identifier = It(
|
|
21336
21334
|
this.sliceSerialize(e)
|
|
21337
21335
|
).toLowerCase(), r.label = t;
|
|
21338
21336
|
}
|
|
21339
|
-
function
|
|
21337
|
+
function L5(e) {
|
|
21340
21338
|
this.exit(e);
|
|
21341
21339
|
}
|
|
21342
21340
|
function B5() {
|
|
@@ -21353,7 +21351,7 @@ function pu(e, t, r, n) {
|
|
|
21353
21351
|
function F5() {
|
|
21354
21352
|
return {
|
|
21355
21353
|
enter: {
|
|
21356
|
-
gfmFootnoteCallString:
|
|
21354
|
+
gfmFootnoteCallString: M5,
|
|
21357
21355
|
gfmFootnoteCall: z5,
|
|
21358
21356
|
gfmFootnoteDefinitionLabelString: I5,
|
|
21359
21357
|
gfmFootnoteDefinition: N5
|
|
@@ -21361,8 +21359,8 @@ function F5() {
|
|
|
21361
21359
|
exit: {
|
|
21362
21360
|
gfmFootnoteCallString: O5,
|
|
21363
21361
|
gfmFootnoteCall: R5,
|
|
21364
|
-
gfmFootnoteDefinitionLabelString:
|
|
21365
|
-
gfmFootnoteDefinition:
|
|
21362
|
+
gfmFootnoteDefinitionLabelString: D5,
|
|
21363
|
+
gfmFootnoteDefinition: L5
|
|
21366
21364
|
}
|
|
21367
21365
|
};
|
|
21368
21366
|
}
|
|
@@ -21447,17 +21445,17 @@ function W5(e, t) {
|
|
|
21447
21445
|
const r = t || {}, n = (r.align || []).concat(), i = r.stringLength || G5, a = [], l = [], o = [], s = [];
|
|
21448
21446
|
let u = 0, m = -1;
|
|
21449
21447
|
for (; ++m < e.length; ) {
|
|
21450
|
-
const b = [],
|
|
21448
|
+
const b = [], C = [];
|
|
21451
21449
|
let w = -1;
|
|
21452
21450
|
for (e[m].length > u && (u = e[m].length); ++w < e[m].length; ) {
|
|
21453
21451
|
const A = Y5(e[m][w]);
|
|
21454
21452
|
if (r.alignDelimiters !== !1) {
|
|
21455
21453
|
const z = i(A);
|
|
21456
|
-
|
|
21454
|
+
C[w] = z, (s[w] === void 0 || z > s[w]) && (s[w] = z);
|
|
21457
21455
|
}
|
|
21458
21456
|
b.push(A);
|
|
21459
21457
|
}
|
|
21460
|
-
l[m] = b, o[m] =
|
|
21458
|
+
l[m] = b, o[m] = C;
|
|
21461
21459
|
}
|
|
21462
21460
|
let h = -1;
|
|
21463
21461
|
if (typeof n == "object" && "length" in n)
|
|
@@ -21472,31 +21470,31 @@ function W5(e, t) {
|
|
|
21472
21470
|
const d = [], p = [];
|
|
21473
21471
|
for (; ++h < u; ) {
|
|
21474
21472
|
const b = a[h];
|
|
21475
|
-
let
|
|
21476
|
-
b === 99 ? (
|
|
21473
|
+
let C = "", w = "";
|
|
21474
|
+
b === 99 ? (C = ":", w = ":") : b === 108 ? C = ":" : b === 114 && (w = ":");
|
|
21477
21475
|
let A = r.alignDelimiters === !1 ? 1 : Math.max(
|
|
21478
21476
|
1,
|
|
21479
|
-
s[h] -
|
|
21477
|
+
s[h] - C.length - w.length
|
|
21480
21478
|
);
|
|
21481
|
-
const z =
|
|
21482
|
-
r.alignDelimiters !== !1 && (A =
|
|
21479
|
+
const z = C + "-".repeat(A) + w;
|
|
21480
|
+
r.alignDelimiters !== !1 && (A = C.length + A + w.length, A > s[h] && (s[h] = A), p[h] = A), d[h] = z;
|
|
21483
21481
|
}
|
|
21484
21482
|
l.splice(1, 0, d), o.splice(1, 0, p), m = -1;
|
|
21485
21483
|
const v = [];
|
|
21486
21484
|
for (; ++m < l.length; ) {
|
|
21487
|
-
const b = l[m],
|
|
21485
|
+
const b = l[m], C = o[m];
|
|
21488
21486
|
h = -1;
|
|
21489
21487
|
const w = [];
|
|
21490
21488
|
for (; ++h < u; ) {
|
|
21491
21489
|
const A = b[h] || "";
|
|
21492
|
-
let z = "",
|
|
21490
|
+
let z = "", D = "";
|
|
21493
21491
|
if (r.alignDelimiters !== !1) {
|
|
21494
|
-
const
|
|
21495
|
-
I === 114 ? z = " ".repeat(
|
|
21492
|
+
const L = s[h] - (C[h] || 0), I = a[h];
|
|
21493
|
+
I === 114 ? z = " ".repeat(L) : I === 99 ? L % 2 ? (z = " ".repeat(L / 2 + 0.5), D = " ".repeat(L / 2 - 0.5)) : (z = " ".repeat(L / 2), D = z) : D = " ".repeat(L);
|
|
21496
21494
|
}
|
|
21497
21495
|
r.delimiterStart !== !1 && !h && w.push("|"), r.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
21498
21496
|
// empty: there will be a closing space.
|
|
21499
|
-
!(r.alignDelimiters === !1 && A === "") && (r.delimiterStart !== !1 || h) && w.push(" "), r.alignDelimiters !== !1 && w.push(z), w.push(A), r.alignDelimiters !== !1 && w.push(
|
|
21497
|
+
!(r.alignDelimiters === !1 && A === "") && (r.delimiterStart !== !1 || h) && w.push(" "), r.alignDelimiters !== !1 && w.push(z), w.push(A), r.alignDelimiters !== !1 && w.push(D), r.padding !== !1 && w.push(" "), (r.delimiterEnd !== !1 || h !== u - 1) && w.push("|");
|
|
21500
21498
|
}
|
|
21501
21499
|
v.push(
|
|
21502
21500
|
r.delimiterEnd === !1 ? w.join("").replace(/ +$/, "") : w.join("")
|
|
@@ -21647,7 +21645,7 @@ function ln(e) {
|
|
|
21647
21645
|
return "&#x" + e.toString(16).toUpperCase() + ";";
|
|
21648
21646
|
}
|
|
21649
21647
|
function jn(e, t, r) {
|
|
21650
|
-
const n =
|
|
21648
|
+
const n = Lr(e), i = Lr(t);
|
|
21651
21649
|
return n === void 0 ? i === void 0 ? (
|
|
21652
21650
|
// Letter inside:
|
|
21653
21651
|
// we have to encode *both* letters for `_` as it is looser.
|
|
@@ -22077,7 +22075,7 @@ function A6(e, t, r) {
|
|
|
22077
22075
|
const n = (Au(r) + (r.options.ruleSpaces ? " " : "")).repeat(T6(r));
|
|
22078
22076
|
return r.options.ruleSpaces ? n.slice(0, -1) : n;
|
|
22079
22077
|
}
|
|
22080
|
-
const
|
|
22078
|
+
const Cu = {
|
|
22081
22079
|
blockquote: X5,
|
|
22082
22080
|
break: po,
|
|
22083
22081
|
code: e6,
|
|
@@ -22102,21 +22100,21 @@ const Mu = {
|
|
|
22102
22100
|
function E6() {
|
|
22103
22101
|
return {
|
|
22104
22102
|
enter: {
|
|
22105
|
-
table:
|
|
22103
|
+
table: C6,
|
|
22106
22104
|
tableData: go,
|
|
22107
22105
|
tableHeader: go,
|
|
22108
22106
|
tableRow: z6
|
|
22109
22107
|
},
|
|
22110
22108
|
exit: {
|
|
22111
22109
|
codeText: I6,
|
|
22112
|
-
table:
|
|
22110
|
+
table: M6,
|
|
22113
22111
|
tableData: Vi,
|
|
22114
22112
|
tableHeader: Vi,
|
|
22115
22113
|
tableRow: Vi
|
|
22116
22114
|
}
|
|
22117
22115
|
};
|
|
22118
22116
|
}
|
|
22119
|
-
function
|
|
22117
|
+
function C6(e) {
|
|
22120
22118
|
const t = e._align;
|
|
22121
22119
|
this.enter(
|
|
22122
22120
|
{
|
|
@@ -22129,7 +22127,7 @@ function M6(e) {
|
|
|
22129
22127
|
e
|
|
22130
22128
|
), this.data.inTable = !0;
|
|
22131
22129
|
}
|
|
22132
|
-
function
|
|
22130
|
+
function M6(e) {
|
|
22133
22131
|
this.exit(e), this.data.inTable = void 0;
|
|
22134
22132
|
}
|
|
22135
22133
|
function z6(e) {
|
|
@@ -22179,17 +22177,17 @@ function O6(e) {
|
|
|
22179
22177
|
tableRow: o
|
|
22180
22178
|
}
|
|
22181
22179
|
};
|
|
22182
|
-
function l(p, v, b,
|
|
22183
|
-
return u(m(p, b,
|
|
22180
|
+
function l(p, v, b, C) {
|
|
22181
|
+
return u(m(p, b, C), p.align);
|
|
22184
22182
|
}
|
|
22185
|
-
function o(p, v, b,
|
|
22186
|
-
const w = h(p, b,
|
|
22183
|
+
function o(p, v, b, C) {
|
|
22184
|
+
const w = h(p, b, C), A = u([w]);
|
|
22187
22185
|
return A.slice(0, A.indexOf(`
|
|
22188
22186
|
`));
|
|
22189
22187
|
}
|
|
22190
|
-
function s(p, v, b,
|
|
22188
|
+
function s(p, v, b, C) {
|
|
22191
22189
|
const w = b.enter("tableCell"), A = b.enter("phrasing"), z = b.containerPhrasing(p, {
|
|
22192
|
-
...
|
|
22190
|
+
...C,
|
|
22193
22191
|
before: a,
|
|
22194
22192
|
after: a
|
|
22195
22193
|
});
|
|
@@ -22207,24 +22205,24 @@ function O6(e) {
|
|
|
22207
22205
|
});
|
|
22208
22206
|
}
|
|
22209
22207
|
function m(p, v, b) {
|
|
22210
|
-
const
|
|
22208
|
+
const C = p.children;
|
|
22211
22209
|
let w = -1;
|
|
22212
22210
|
const A = [], z = v.enter("table");
|
|
22213
|
-
for (; ++w <
|
|
22214
|
-
A[w] = h(
|
|
22211
|
+
for (; ++w < C.length; )
|
|
22212
|
+
A[w] = h(C[w], v, b);
|
|
22215
22213
|
return z(), A;
|
|
22216
22214
|
}
|
|
22217
22215
|
function h(p, v, b) {
|
|
22218
|
-
const
|
|
22216
|
+
const C = p.children;
|
|
22219
22217
|
let w = -1;
|
|
22220
22218
|
const A = [], z = v.enter("tableRow");
|
|
22221
|
-
for (; ++w <
|
|
22222
|
-
A[w] = s(
|
|
22219
|
+
for (; ++w < C.length; )
|
|
22220
|
+
A[w] = s(C[w], p, v, b);
|
|
22223
22221
|
return z(), A;
|
|
22224
22222
|
}
|
|
22225
22223
|
function d(p, v, b) {
|
|
22226
|
-
let
|
|
22227
|
-
return b.stack.includes("tableCell") && (
|
|
22224
|
+
let C = Cu.inlineCode(p, v, b);
|
|
22225
|
+
return b.stack.includes("tableCell") && (C = C.replace(/\|/g, "\\$&")), C;
|
|
22228
22226
|
}
|
|
22229
22227
|
}
|
|
22230
22228
|
function R6() {
|
|
@@ -22232,11 +22230,11 @@ function R6() {
|
|
|
22232
22230
|
exit: {
|
|
22233
22231
|
taskListCheckValueChecked: vo,
|
|
22234
22232
|
taskListCheckValueUnchecked: vo,
|
|
22235
|
-
paragraph:
|
|
22233
|
+
paragraph: L6
|
|
22236
22234
|
}
|
|
22237
22235
|
};
|
|
22238
22236
|
}
|
|
22239
|
-
function
|
|
22237
|
+
function D6() {
|
|
22240
22238
|
return {
|
|
22241
22239
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
22242
22240
|
handlers: { listItem: B6 }
|
|
@@ -22246,7 +22244,7 @@ function vo(e) {
|
|
|
22246
22244
|
const t = this.stack[this.stack.length - 2];
|
|
22247
22245
|
t.type, t.checked = e.type === "taskListCheckValueChecked";
|
|
22248
22246
|
}
|
|
22249
|
-
function
|
|
22247
|
+
function L6(e) {
|
|
22250
22248
|
const t = this.stack[this.stack.length - 2];
|
|
22251
22249
|
if (t && t.type === "listItem" && typeof t.checked == "boolean") {
|
|
22252
22250
|
const r = this.stack[this.stack.length - 1];
|
|
@@ -22270,7 +22268,7 @@ function D6(e) {
|
|
|
22270
22268
|
function B6(e, t, r, n) {
|
|
22271
22269
|
const i = e.children[0], a = typeof e.checked == "boolean" && i && i.type === "paragraph", l = "[" + (e.checked ? "x" : " ") + "] ", o = r.createTracker(n);
|
|
22272
22270
|
a && o.move(l);
|
|
22273
|
-
let s =
|
|
22271
|
+
let s = Cu.listItem(e, t, r, {
|
|
22274
22272
|
...n,
|
|
22275
22273
|
...o.current()
|
|
22276
22274
|
});
|
|
@@ -22295,14 +22293,14 @@ function P6(e) {
|
|
|
22295
22293
|
P5(e),
|
|
22296
22294
|
j5(),
|
|
22297
22295
|
O6(e),
|
|
22298
|
-
|
|
22296
|
+
D6()
|
|
22299
22297
|
]
|
|
22300
22298
|
};
|
|
22301
22299
|
}
|
|
22302
22300
|
const _6 = {
|
|
22303
22301
|
tokenize: V6,
|
|
22304
22302
|
partial: !0
|
|
22305
|
-
},
|
|
22303
|
+
}, Mu = {
|
|
22306
22304
|
tokenize: G6,
|
|
22307
22305
|
partial: !0
|
|
22308
22306
|
}, zu = {
|
|
@@ -22321,11 +22319,11 @@ const _6 = {
|
|
|
22321
22319
|
}, Ou = {
|
|
22322
22320
|
name: "protocolAutolink",
|
|
22323
22321
|
tokenize: U6,
|
|
22324
|
-
previous:
|
|
22322
|
+
previous: Du
|
|
22325
22323
|
}, Zt = {
|
|
22326
22324
|
name: "emailAutolink",
|
|
22327
22325
|
tokenize: j6,
|
|
22328
|
-
previous:
|
|
22326
|
+
previous: Lu
|
|
22329
22327
|
}, Ht = {};
|
|
22330
22328
|
function q6() {
|
|
22331
22329
|
return {
|
|
@@ -22348,7 +22346,7 @@ function j6(e, t, r) {
|
|
|
22348
22346
|
let i, a;
|
|
22349
22347
|
return l;
|
|
22350
22348
|
function l(h) {
|
|
22351
|
-
return !y0(h) || !
|
|
22349
|
+
return !y0(h) || !Lu.call(n, n.previous) || sa(n.events) ? r(h) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), o(h));
|
|
22352
22350
|
}
|
|
22353
22351
|
function o(h) {
|
|
22354
22352
|
return y0(h) ? (e.consume(h), o) : h === 64 ? (e.consume(h), s) : r(h);
|
|
@@ -22367,7 +22365,7 @@ function $6(e, t, r) {
|
|
|
22367
22365
|
const n = this;
|
|
22368
22366
|
return i;
|
|
22369
22367
|
function i(l) {
|
|
22370
|
-
return l !== 87 && l !== 119 || !Ru.call(n, n.previous) || sa(n.events) ? r(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(_6, e.attempt(
|
|
22368
|
+
return l !== 87 && l !== 119 || !Ru.call(n, n.previous) || sa(n.events) ? r(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(_6, e.attempt(Mu, e.attempt(zu, a), r), r)(l));
|
|
22371
22369
|
}
|
|
22372
22370
|
function a(l) {
|
|
22373
22371
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(l);
|
|
@@ -22378,7 +22376,7 @@ function U6(e, t, r) {
|
|
|
22378
22376
|
let i = "", a = !1;
|
|
22379
22377
|
return l;
|
|
22380
22378
|
function l(h) {
|
|
22381
|
-
return (h === 72 || h === 104) &&
|
|
22379
|
+
return (h === 72 || h === 104) && Du.call(n, n.previous) && !sa(n.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(h), e.consume(h), o) : r(h);
|
|
22382
22380
|
}
|
|
22383
22381
|
function o(h) {
|
|
22384
22382
|
if (et(h) && i.length < 5)
|
|
@@ -22394,7 +22392,7 @@ function U6(e, t, r) {
|
|
|
22394
22392
|
return h === 47 ? (e.consume(h), a ? u : (a = !0, s)) : r(h);
|
|
22395
22393
|
}
|
|
22396
22394
|
function u(h) {
|
|
22397
|
-
return h === null ||
|
|
22395
|
+
return h === null || Dn(h) || Se(h) || xr(h) || Vn(h) ? r(h) : e.attempt(Mu, e.attempt(zu, m), r)(h);
|
|
22398
22396
|
}
|
|
22399
22397
|
function m(h) {
|
|
22400
22398
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(h);
|
|
@@ -22414,7 +22412,7 @@ function G6(e, t, r) {
|
|
|
22414
22412
|
let n, i, a;
|
|
22415
22413
|
return l;
|
|
22416
22414
|
function l(u) {
|
|
22417
|
-
return u === 46 || u === 95 ? e.check(Iu, s, o)(u) : u === null ||
|
|
22415
|
+
return u === 46 || u === 95 ? e.check(Iu, s, o)(u) : u === null || Se(u) || xr(u) || u !== 45 && Vn(u) ? s(u) : (a = !0, e.consume(u), l);
|
|
22418
22416
|
}
|
|
22419
22417
|
function o(u) {
|
|
22420
22418
|
return u === 95 ? n = !0 : (i = n, n = void 0), e.consume(u), l;
|
|
@@ -22427,7 +22425,7 @@ function W6(e, t) {
|
|
|
22427
22425
|
let r = 0, n = 0;
|
|
22428
22426
|
return i;
|
|
22429
22427
|
function i(l) {
|
|
22430
|
-
return l === 40 ? (r++, e.consume(l), i) : l === 41 && n < r ? a(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(Iu, t, a)(l) : l === null ||
|
|
22428
|
+
return l === 40 ? (r++, e.consume(l), i) : l === 41 && n < r ? a(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(Iu, t, a)(l) : l === null || Se(l) || xr(l) ? t(l) : (e.consume(l), i);
|
|
22431
22429
|
}
|
|
22432
22430
|
function a(l) {
|
|
22433
22431
|
return l === 41 && n++, e.consume(l), i;
|
|
@@ -22439,11 +22437,11 @@ function Y6(e, t, r) {
|
|
|
22439
22437
|
return o === 33 || o === 34 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 63 || o === 95 || o === 126 ? (e.consume(o), n) : o === 38 ? (e.consume(o), a) : o === 93 ? (e.consume(o), i) : (
|
|
22440
22438
|
// `<` is an end.
|
|
22441
22439
|
o === 60 || // So is whitespace.
|
|
22442
|
-
o === null ||
|
|
22440
|
+
o === null || Se(o) || xr(o) ? t(o) : r(o)
|
|
22443
22441
|
);
|
|
22444
22442
|
}
|
|
22445
22443
|
function i(o) {
|
|
22446
|
-
return o === null || o === 40 || o === 91 ||
|
|
22444
|
+
return o === null || o === 40 || o === 91 || Se(o) || xr(o) ? t(o) : n(o);
|
|
22447
22445
|
}
|
|
22448
22446
|
function a(o) {
|
|
22449
22447
|
return et(o) ? l(o) : r(o);
|
|
@@ -22462,12 +22460,12 @@ function X6(e, t, r) {
|
|
|
22462
22460
|
}
|
|
22463
22461
|
}
|
|
22464
22462
|
function Ru(e) {
|
|
22465
|
-
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 ||
|
|
22463
|
+
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || Se(e);
|
|
22466
22464
|
}
|
|
22467
|
-
function
|
|
22465
|
+
function Du(e) {
|
|
22468
22466
|
return !et(e);
|
|
22469
22467
|
}
|
|
22470
|
-
function
|
|
22468
|
+
function Lu(e) {
|
|
22471
22469
|
return !(e === 47 || y0(e));
|
|
22472
22470
|
}
|
|
22473
22471
|
function y0(e) {
|
|
@@ -22609,7 +22607,7 @@ function e3(e, t, r) {
|
|
|
22609
22607
|
a > 999 || // Closing brace with nothing.
|
|
22610
22608
|
h === 93 && !l || // Space or tab is not supported by GFM for some reason.
|
|
22611
22609
|
// `\n` and `[` not being supported makes sense.
|
|
22612
|
-
h === null || h === 91 ||
|
|
22610
|
+
h === null || h === 91 || Se(h)
|
|
22613
22611
|
)
|
|
22614
22612
|
return r(h);
|
|
22615
22613
|
if (h === 93) {
|
|
@@ -22617,7 +22615,7 @@ function e3(e, t, r) {
|
|
|
22617
22615
|
const d = e.exit("gfmFootnoteCallString");
|
|
22618
22616
|
return i.includes(It(n.sliceSerialize(d))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(h), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : r(h);
|
|
22619
22617
|
}
|
|
22620
|
-
return
|
|
22618
|
+
return Se(h) || (l = !0), a++, e.consume(h), h === 92 ? m : u;
|
|
22621
22619
|
}
|
|
22622
22620
|
function m(h) {
|
|
22623
22621
|
return h === 91 || h === 92 || h === 93 ? (e.consume(h), a++, u) : u(h);
|
|
@@ -22639,7 +22637,7 @@ function t3(e, t, r) {
|
|
|
22639
22637
|
l > 999 || // Closing brace with nothing.
|
|
22640
22638
|
v === 93 && !o || // Space or tab is not supported by GFM for some reason.
|
|
22641
22639
|
// `\n` and `[` not being supported makes sense.
|
|
22642
|
-
v === null || v === 91 ||
|
|
22640
|
+
v === null || v === 91 || Se(v)
|
|
22643
22641
|
)
|
|
22644
22642
|
return r(v);
|
|
22645
22643
|
if (v === 93) {
|
|
@@ -22647,7 +22645,7 @@ function t3(e, t, r) {
|
|
|
22647
22645
|
const b = e.exit("gfmFootnoteDefinitionLabelString");
|
|
22648
22646
|
return a = It(n.sliceSerialize(b)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(v), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), d;
|
|
22649
22647
|
}
|
|
22650
|
-
return
|
|
22648
|
+
return Se(v) || (o = !0), l++, e.consume(v), v === 92 ? h : m;
|
|
22651
22649
|
}
|
|
22652
22650
|
function h(v) {
|
|
22653
22651
|
return v === 91 || v === 92 || v === 93 ? (e.consume(v), l++, m) : m(v);
|
|
@@ -22725,12 +22723,12 @@ function a3(e) {
|
|
|
22725
22723
|
return u === 126 && m[m.length - 1][1].type !== "characterEscape" ? s(v) : (l.enter("strikethroughSequenceTemporary"), p(v));
|
|
22726
22724
|
}
|
|
22727
22725
|
function p(v) {
|
|
22728
|
-
const b =
|
|
22726
|
+
const b = Lr(u);
|
|
22729
22727
|
if (v === 126)
|
|
22730
22728
|
return h > 1 ? s(v) : (l.consume(v), h++, p);
|
|
22731
22729
|
if (h < 2 && !r) return s(v);
|
|
22732
|
-
const
|
|
22733
|
-
return
|
|
22730
|
+
const C = l.exit("strikethroughSequenceTemporary"), w = Lr(v);
|
|
22731
|
+
return C._open = !w || w === 2 && !!b, C._close = !b || b === 2 && !!w, o(v);
|
|
22734
22732
|
}
|
|
22735
22733
|
}
|
|
22736
22734
|
}
|
|
@@ -22858,7 +22856,7 @@ function c3(e, t, r) {
|
|
|
22858
22856
|
return N === null ? r(N) : J(N) ? a > 1 ? (a = 0, n.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(N), e.exit("lineEnding"), p) : r(N) : fe(N) ? he(e, m, "whitespace")(N) : (a += 1, l && (l = !1, i += 1), N === 124 ? (e.enter("tableCellDivider"), e.consume(N), e.exit("tableCellDivider"), l = !0, m) : (e.enter("data"), h(N)));
|
|
22859
22857
|
}
|
|
22860
22858
|
function h(N) {
|
|
22861
|
-
return N === null || N === 124 ||
|
|
22859
|
+
return N === null || N === 124 || Se(N) ? (e.exit("data"), m(N)) : (e.consume(N), N === 92 ? d : h);
|
|
22862
22860
|
}
|
|
22863
22861
|
function d(N) {
|
|
22864
22862
|
return N === 92 || N === 124 ? (e.consume(N), h) : h(N);
|
|
@@ -22867,27 +22865,27 @@ function c3(e, t, r) {
|
|
|
22867
22865
|
return n.interrupt = !1, n.parser.lazy[n.now().line] ? r(N) : (e.enter("tableDelimiterRow"), l = !1, fe(N) ? he(e, v, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(N) : v(N));
|
|
22868
22866
|
}
|
|
22869
22867
|
function v(N) {
|
|
22870
|
-
return N === 45 || N === 58 ?
|
|
22868
|
+
return N === 45 || N === 58 ? C(N) : N === 124 ? (l = !0, e.enter("tableCellDivider"), e.consume(N), e.exit("tableCellDivider"), b) : L(N);
|
|
22871
22869
|
}
|
|
22872
22870
|
function b(N) {
|
|
22873
|
-
return fe(N) ? he(e,
|
|
22871
|
+
return fe(N) ? he(e, C, "whitespace")(N) : C(N);
|
|
22874
22872
|
}
|
|
22875
|
-
function
|
|
22876
|
-
return N === 58 ? (a += 1, l = !0, e.enter("tableDelimiterMarker"), e.consume(N), e.exit("tableDelimiterMarker"), w) : N === 45 ? (a += 1, w(N)) : N === null || J(N) ?
|
|
22873
|
+
function C(N) {
|
|
22874
|
+
return N === 58 ? (a += 1, l = !0, e.enter("tableDelimiterMarker"), e.consume(N), e.exit("tableDelimiterMarker"), w) : N === 45 ? (a += 1, w(N)) : N === null || J(N) ? D(N) : L(N);
|
|
22877
22875
|
}
|
|
22878
22876
|
function w(N) {
|
|
22879
|
-
return N === 45 ? (e.enter("tableDelimiterFiller"), A(N)) :
|
|
22877
|
+
return N === 45 ? (e.enter("tableDelimiterFiller"), A(N)) : L(N);
|
|
22880
22878
|
}
|
|
22881
22879
|
function A(N) {
|
|
22882
22880
|
return N === 45 ? (e.consume(N), A) : N === 58 ? (l = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(N), e.exit("tableDelimiterMarker"), z) : (e.exit("tableDelimiterFiller"), z(N));
|
|
22883
22881
|
}
|
|
22884
22882
|
function z(N) {
|
|
22885
|
-
return fe(N) ? he(e,
|
|
22886
|
-
}
|
|
22887
|
-
function L(N) {
|
|
22888
|
-
return N === 124 ? v(N) : N === null || J(N) ? !l || i !== a ? D(N) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(N)) : D(N);
|
|
22883
|
+
return fe(N) ? he(e, D, "whitespace")(N) : D(N);
|
|
22889
22884
|
}
|
|
22890
22885
|
function D(N) {
|
|
22886
|
+
return N === 124 ? v(N) : N === null || J(N) ? !l || i !== a ? L(N) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(N)) : L(N);
|
|
22887
|
+
}
|
|
22888
|
+
function L(N) {
|
|
22891
22889
|
return r(N);
|
|
22892
22890
|
}
|
|
22893
22891
|
function I(N) {
|
|
@@ -22897,7 +22895,7 @@ function c3(e, t, r) {
|
|
|
22897
22895
|
return N === 124 ? (e.enter("tableCellDivider"), e.consume(N), e.exit("tableCellDivider"), F) : N === null || J(N) ? (e.exit("tableRow"), t(N)) : fe(N) ? he(e, F, "whitespace")(N) : (e.enter("data"), Y(N));
|
|
22898
22896
|
}
|
|
22899
22897
|
function Y(N) {
|
|
22900
|
-
return N === null || N === 124 ||
|
|
22898
|
+
return N === null || N === 124 || Se(N) ? (e.exit("data"), F(N)) : (e.consume(N), N === 92 ? H : Y);
|
|
22901
22899
|
}
|
|
22902
22900
|
function H(N) {
|
|
22903
22901
|
return N === 92 || N === 124 ? (e.consume(N), Y) : Y(N);
|
|
@@ -22918,7 +22916,7 @@ function h3(e, t) {
|
|
|
22918
22916
|
start: Object.assign({}, v.start),
|
|
22919
22917
|
// Note: correct end is set later.
|
|
22920
22918
|
end: Object.assign({}, v.end)
|
|
22921
|
-
}, d.add(r, 0, [["enter", m, t]])), i = v.type === "tableDelimiterRow" ? 2 : m ? 3 : 1) : i && (v.type === "data" || v.type === "tableDelimiterMarker" || v.type === "tableDelimiterFiller") ? (n = !1, l[2] === 0 && (a[1] !== 0 && (l[0] = l[1], h =
|
|
22919
|
+
}, d.add(r, 0, [["enter", m, t]])), i = v.type === "tableDelimiterRow" ? 2 : m ? 3 : 1) : i && (v.type === "data" || v.type === "tableDelimiterMarker" || v.type === "tableDelimiterFiller") ? (n = !1, l[2] === 0 && (a[1] !== 0 && (l[0] = l[1], h = Mn(d, t, a, i, void 0, h), a = [0, 0, 0, 0]), l[2] = r)) : v.type === "tableCellDivider" && (n ? n = !1 : (a[1] !== 0 && (l[0] = l[1], h = Mn(d, t, a, i, void 0, h)), a = l, l = [a[1], r, 0, 0])) : v.type === "tableHead" ? (o = !0, s = r) : v.type === "tableRow" || v.type === "tableDelimiterRow" ? (s = r, a[1] !== 0 ? (l[0] = l[1], h = Mn(d, t, a, i, r, h)) : l[1] !== 0 && (h = Mn(d, t, l, i, r, h)), i = 0) : i && (v.type === "data" || v.type === "tableDelimiterMarker" || v.type === "tableDelimiterFiller") && (l[3] = r);
|
|
22922
22920
|
}
|
|
22923
22921
|
for (s !== 0 && yo(d, t, s, u, m), d.consume(t.events), r = -1; ++r < t.events.length; ) {
|
|
22924
22922
|
const p = t.events[r];
|
|
@@ -22926,7 +22924,7 @@ function h3(e, t) {
|
|
|
22926
22924
|
}
|
|
22927
22925
|
return e;
|
|
22928
22926
|
}
|
|
22929
|
-
function
|
|
22927
|
+
function Mn(e, t, r, n, i, a) {
|
|
22930
22928
|
const l = n === 1 ? "tableHeader" : n === 2 ? "tableDelimiter" : "tableData", o = "tableContent";
|
|
22931
22929
|
r[0] !== 0 && (a.end = Object.assign({}, Ir(t.events, r[0])), e.add(r[0], 0, [["exit", a, t]]));
|
|
22932
22930
|
const s = Ir(t.events, r[1]);
|
|
@@ -22983,7 +22981,7 @@ function p3(e, t, r) {
|
|
|
22983
22981
|
);
|
|
22984
22982
|
}
|
|
22985
22983
|
function a(s) {
|
|
22986
|
-
return
|
|
22984
|
+
return Se(s) ? (e.enter("taskListCheckValueUnchecked"), e.consume(s), e.exit("taskListCheckValueUnchecked"), l) : s === 88 || s === 120 ? (e.enter("taskListCheckValueChecked"), e.consume(s), e.exit("taskListCheckValueChecked"), l) : r(s);
|
|
22987
22985
|
}
|
|
22988
22986
|
function l(s) {
|
|
22989
22987
|
return s === 93 ? (e.enter("taskListCheckMarker"), e.consume(s), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), o) : r(s);
|
|
@@ -23323,70 +23321,70 @@ $1 $2
|
|
|
23323
23321
|
scrollToBottom: s
|
|
23324
23322
|
}) => {
|
|
23325
23323
|
const [u, m] = st(() => {
|
|
23326
|
-
const
|
|
23327
|
-
return
|
|
23328
|
-
}), [h, d] = st(!0), p = ut(a.current.get(r) || 0), v = ut(!1), b = ut(),
|
|
23324
|
+
const D = a.current.get(r);
|
|
23325
|
+
return D ? e.slice(0, D) : "";
|
|
23326
|
+
}), [h, d] = st(!0), p = ut(a.current.get(r) || 0), v = ut(!1), b = ut(), C = ut(!1), w = ut(e);
|
|
23329
23327
|
bt(() => {
|
|
23330
23328
|
if (i(r)) {
|
|
23331
23329
|
m(e), d(!1), t(), a.current.set(r, e.length);
|
|
23332
23330
|
return;
|
|
23333
23331
|
}
|
|
23334
|
-
if (
|
|
23332
|
+
if (C.current && e !== w.current) {
|
|
23335
23333
|
w.current = e;
|
|
23336
23334
|
return;
|
|
23337
23335
|
}
|
|
23338
|
-
if (!
|
|
23339
|
-
return
|
|
23336
|
+
if (!C.current)
|
|
23337
|
+
return C.current = !0, w.current = e, setTimeout(() => {
|
|
23340
23338
|
A();
|
|
23341
23339
|
}, 10), () => {
|
|
23342
23340
|
b.current && cancelAnimationFrame(b.current);
|
|
23343
23341
|
};
|
|
23344
23342
|
}, [r, e, i, t]);
|
|
23345
23343
|
const A = () => {
|
|
23346
|
-
if (v.current || !
|
|
23344
|
+
if (v.current || !C.current)
|
|
23347
23345
|
return;
|
|
23348
23346
|
v.current = !0, l.current = !0, o(!0);
|
|
23349
|
-
let
|
|
23347
|
+
let D = p.current, L = 0, I = 0;
|
|
23350
23348
|
const F = 15;
|
|
23351
|
-
d(
|
|
23349
|
+
d(D === 0);
|
|
23352
23350
|
const Y = (H) => {
|
|
23353
|
-
if (!(!v.current || !
|
|
23351
|
+
if (!(!v.current || !C.current)) {
|
|
23354
23352
|
if (H - I < F) {
|
|
23355
23353
|
b.current = requestAnimationFrame(Y);
|
|
23356
23354
|
return;
|
|
23357
23355
|
}
|
|
23358
|
-
if (I = H,
|
|
23359
|
-
const N = w.current.slice(0,
|
|
23360
|
-
m(N), a.current.set(r,
|
|
23356
|
+
if (I = H, D < w.current.length) {
|
|
23357
|
+
const N = w.current.slice(0, D + 1);
|
|
23358
|
+
m(N), a.current.set(r, D + 1), D === 0 && d(!1), H - L > ve.ANIMATIONS.ANIMATION_SCROLL_INTERVAL && (s(), L = H), D++, p.current = D, b.current = requestAnimationFrame(Y);
|
|
23361
23359
|
} else
|
|
23362
23360
|
z();
|
|
23363
23361
|
}
|
|
23364
23362
|
};
|
|
23365
23363
|
setTimeout(() => {
|
|
23366
|
-
v.current &&
|
|
23364
|
+
v.current && C.current && (b.current = requestAnimationFrame(Y));
|
|
23367
23365
|
}, 0);
|
|
23368
23366
|
}, z = () => {
|
|
23369
23367
|
l.current = !1, t(), v.current = !1, o(!1), s(), a.current.set(r, w.current.length);
|
|
23370
23368
|
};
|
|
23371
23369
|
return bt(() => {
|
|
23372
|
-
const
|
|
23370
|
+
const D = () => {
|
|
23373
23371
|
v.current && (b.current && cancelAnimationFrame(b.current), m(w.current), d(!1), z(), a.current.set(r, w.current.length));
|
|
23374
|
-
},
|
|
23375
|
-
return
|
|
23376
|
-
|
|
23372
|
+
}, L = n.current;
|
|
23373
|
+
return L && L.addEventListener("input", D), () => {
|
|
23374
|
+
L && L.removeEventListener("input", D);
|
|
23377
23375
|
};
|
|
23378
23376
|
}, [n]), bt(() => {
|
|
23379
|
-
let
|
|
23380
|
-
const
|
|
23377
|
+
let D = null;
|
|
23378
|
+
const L = () => {
|
|
23381
23379
|
if (document.hidden)
|
|
23382
|
-
b.current && (cancelAnimationFrame(b.current), v.current = !1),
|
|
23383
|
-
else if (
|
|
23380
|
+
b.current && (cancelAnimationFrame(b.current), v.current = !1), D = Date.now();
|
|
23381
|
+
else if (C.current && !v.current && p.current > 0 && p.current < w.current.length) {
|
|
23384
23382
|
const I = Date.now();
|
|
23385
|
-
|
|
23383
|
+
D && I - D > ve.ANIMATIONS.VISIBILITY_SKIP_THRESHOLD ? (m(w.current), d(!1), z(), a.current.set(r, w.current.length)) : A(), D = null;
|
|
23386
23384
|
}
|
|
23387
23385
|
};
|
|
23388
|
-
return document.addEventListener("visibilitychange",
|
|
23389
|
-
document.removeEventListener("visibilitychange",
|
|
23386
|
+
return document.addEventListener("visibilitychange", L), () => {
|
|
23387
|
+
document.removeEventListener("visibilitychange", L);
|
|
23390
23388
|
};
|
|
23391
23389
|
}, []), h && p.current === 0 ? /* @__PURE__ */ B.jsxs("div", { className: "text-gray-500", children: [
|
|
23392
23390
|
/* @__PURE__ */ B.jsx("span", { className: "font-medium", children: "Thinking" }),
|
|
@@ -23413,7 +23411,7 @@ $1 $2
|
|
|
23413
23411
|
isTypingRef: p,
|
|
23414
23412
|
setIsAnimating: v,
|
|
23415
23413
|
formatTime: b,
|
|
23416
|
-
lastMessageRef:
|
|
23414
|
+
lastMessageRef: C
|
|
23417
23415
|
}) => {
|
|
23418
23416
|
const w = /* @__PURE__ */ new Date();
|
|
23419
23417
|
return w.setMinutes(w.getMinutes() - (s - t)), /* @__PURE__ */ B.jsx(
|
|
@@ -23423,7 +23421,7 @@ $1 $2
|
|
|
23423
23421
|
"flex",
|
|
23424
23422
|
e.role === "user" ? "justify-end" : "justify-start"
|
|
23425
23423
|
),
|
|
23426
|
-
ref: t === s - 1 ?
|
|
23424
|
+
ref: t === s - 1 ? C : null,
|
|
23427
23425
|
children: /* @__PURE__ */ B.jsxs(
|
|
23428
23426
|
"div",
|
|
23429
23427
|
{
|
|
@@ -23536,12 +23534,12 @@ $1 $2
|
|
|
23536
23534
|
focusInput: p,
|
|
23537
23535
|
copiedMessageId: v,
|
|
23538
23536
|
onCopyToClipboard: b,
|
|
23539
|
-
onMarkMessageAnimated:
|
|
23537
|
+
onMarkMessageAnimated: C,
|
|
23540
23538
|
inputRef: w,
|
|
23541
23539
|
hasBeenAnimated: A,
|
|
23542
23540
|
typingProgressRef: z,
|
|
23543
|
-
isTypingRef:
|
|
23544
|
-
setIsAnimating:
|
|
23541
|
+
isTypingRef: D,
|
|
23542
|
+
setIsAnimating: L,
|
|
23545
23543
|
formatTime: I,
|
|
23546
23544
|
lastMessageRef: F,
|
|
23547
23545
|
maxSuggestedQuestionLength: Y,
|
|
@@ -23586,35 +23584,38 @@ $1 $2
|
|
|
23586
23584
|
}
|
|
23587
23585
|
),
|
|
23588
23586
|
e.length === 0 ? /* @__PURE__ */ B.jsxs("div", { className: "py-4", children: [
|
|
23589
|
-
/* @__PURE__ */ B.jsx("div", { className: "w-full px-3 mb-
|
|
23590
|
-
/* @__PURE__ */ B.jsx("h4", { className: "font-
|
|
23591
|
-
/* @__PURE__ */ B.jsx("p", { className: "text-
|
|
23587
|
+
/* @__PURE__ */ B.jsx("div", { className: "w-full px-3 mb-6 text-center", children: /* @__PURE__ */ B.jsxs("div", { className: "max-w-lg mx-auto sm:max-w-2xl", children: [
|
|
23588
|
+
/* @__PURE__ */ B.jsx("h4", { className: "font-bold text-2xl mb-2 text-center px-1", style: { color: r.text.primary }, children: n.welcome.title }),
|
|
23589
|
+
/* @__PURE__ */ B.jsx("p", { className: "text-xl text-center px-1 py-2", style: { color: r.text.secondary }, children: n.welcome.description })
|
|
23592
23590
|
] }) }),
|
|
23593
|
-
/* @__PURE__ */ B.jsx("div", { className: "w-full px-3", children: /* @__PURE__ */ B.jsx("div", { className: "flex flex-col gap-
|
|
23591
|
+
/* @__PURE__ */ B.jsx("div", { className: "w-full px-3", children: /* @__PURE__ */ B.jsx("div", { className: "flex flex-col gap-2 max-w-lg mx-auto sm:max-w-2xl pl-2 items-center", children: n.suggestedQuestions.slice(0, 6).map((N, U) => {
|
|
23594
23592
|
var ce, pe;
|
|
23595
23593
|
const V = H ?? ve.MAX_SUGGESTED_QUESTION_QUERY_LENGTH, ae = Y ?? ve.MAX_SUGGESTED_QUESTION_LENGTH, te = ((ce = N.query) == null ? void 0 : ce.length) > V ? N.query.substring(0, V) : N.query, K = ((pe = N.text) == null ? void 0 : pe.length) > ae ? `${N.text.substring(0, ae)}...` : N.text;
|
|
23596
23594
|
return /* @__PURE__ */ B.jsx(
|
|
23597
|
-
"
|
|
23595
|
+
"div",
|
|
23598
23596
|
{
|
|
23599
|
-
|
|
23600
|
-
d(te), setTimeout(() => {
|
|
23601
|
-
p();
|
|
23602
|
-
}, ve.ANIMATIONS.TOGGLE_DELAY);
|
|
23603
|
-
},
|
|
23604
|
-
className: "flex items-center w-full cursor-pointer px-1 py-3 text-left text-base rounded-xl transition-all duration-200 ease-in-out bg-transparent border border-transparent hover:border-primary/40 focus:outline-none focus:ring-2 focus:ring-primary/30",
|
|
23597
|
+
className: "flex items-center w-full px-1 py-1.5 text-base rounded-xl justify-center",
|
|
23605
23598
|
style: {
|
|
23606
|
-
|
|
23607
|
-
|
|
23608
|
-
fontWeight: 500
|
|
23609
|
-
},
|
|
23610
|
-
onMouseEnter: (be) => {
|
|
23611
|
-
be.currentTarget.style.setProperty("background", "transparent", "important"), be.currentTarget.style.setProperty("backgroundColor", "transparent", "important");
|
|
23599
|
+
minHeight: "36px",
|
|
23600
|
+
background: "transparent"
|
|
23612
23601
|
},
|
|
23613
|
-
|
|
23614
|
-
|
|
23615
|
-
|
|
23616
|
-
|
|
23617
|
-
|
|
23602
|
+
children: /* @__PURE__ */ B.jsx(
|
|
23603
|
+
"span",
|
|
23604
|
+
{
|
|
23605
|
+
onClick: () => {
|
|
23606
|
+
d(te), setTimeout(() => {
|
|
23607
|
+
p();
|
|
23608
|
+
}, ve.ANIMATIONS.TOGGLE_DELAY);
|
|
23609
|
+
},
|
|
23610
|
+
className: "truncate hover:text-primary transition-colors duration-200 cursor-pointer text-center w-full text-base",
|
|
23611
|
+
style: {
|
|
23612
|
+
color: r.suggestedQuestions.text,
|
|
23613
|
+
fontWeight: 500
|
|
23614
|
+
},
|
|
23615
|
+
title: te,
|
|
23616
|
+
children: K
|
|
23617
|
+
}
|
|
23618
|
+
)
|
|
23618
23619
|
},
|
|
23619
23620
|
U
|
|
23620
23621
|
);
|
|
@@ -23634,14 +23635,14 @@ $1 $2
|
|
|
23634
23635
|
theme: r,
|
|
23635
23636
|
copiedMessageId: v,
|
|
23636
23637
|
onCopyToClipboard: b,
|
|
23637
|
-
onMarkMessageAnimated:
|
|
23638
|
+
onMarkMessageAnimated: C,
|
|
23638
23639
|
messagesLength: e.length,
|
|
23639
23640
|
scrollToBottom: m,
|
|
23640
23641
|
inputRef: w,
|
|
23641
23642
|
hasBeenAnimated: A,
|
|
23642
23643
|
typingProgressRef: z,
|
|
23643
|
-
isTypingRef:
|
|
23644
|
-
setIsAnimating:
|
|
23644
|
+
isTypingRef: D,
|
|
23645
|
+
setIsAnimating: L,
|
|
23645
23646
|
formatTime: I,
|
|
23646
23647
|
lastMessageRef: F
|
|
23647
23648
|
},
|
|
@@ -23830,13 +23831,13 @@ $1 $2
|
|
|
23830
23831
|
markMessageAnimated: p,
|
|
23831
23832
|
hasBeenAnimated: v,
|
|
23832
23833
|
clearAnimationTrackers: b,
|
|
23833
|
-
setIsAnimating:
|
|
23834
|
+
setIsAnimating: C
|
|
23834
23835
|
} = qc(), {
|
|
23835
23836
|
showScrollTop: w,
|
|
23836
23837
|
showScrollBottom: A,
|
|
23837
23838
|
messagesContainerRef: z,
|
|
23838
|
-
messagesEndRef:
|
|
23839
|
-
shouldScrollRef:
|
|
23839
|
+
messagesEndRef: D,
|
|
23840
|
+
shouldScrollRef: L,
|
|
23840
23841
|
scrollTimeoutRef: I,
|
|
23841
23842
|
scrollToBottom: F,
|
|
23842
23843
|
scrollToTop: Y,
|
|
@@ -23873,12 +23874,12 @@ $1 $2
|
|
|
23873
23874
|
const {
|
|
23874
23875
|
messages: ce,
|
|
23875
23876
|
isLoading: pe,
|
|
23876
|
-
sendMessage:
|
|
23877
|
+
sendMessage: Me,
|
|
23877
23878
|
clearMessages: $e
|
|
23878
23879
|
} = So(), {
|
|
23879
23880
|
message: S,
|
|
23880
23881
|
isFocused: Ce,
|
|
23881
|
-
inputRef:
|
|
23882
|
+
inputRef: we,
|
|
23882
23883
|
handleMessageChange: E,
|
|
23883
23884
|
handleKeyDown: Fe,
|
|
23884
23885
|
handleSendMessage: Ue,
|
|
@@ -23886,7 +23887,7 @@ $1 $2
|
|
|
23886
23887
|
focusInput: Ve
|
|
23887
23888
|
} = jc({
|
|
23888
23889
|
onSendMessage: (Pe) => {
|
|
23889
|
-
|
|
23890
|
+
L.current = !0, Me(Pe), setTimeout(() => F(!0), ve.ANIMATIONS.TOGGLE_DELAY);
|
|
23890
23891
|
},
|
|
23891
23892
|
isLoading: pe,
|
|
23892
23893
|
isOpen: t
|
|
@@ -23909,7 +23910,7 @@ $1 $2
|
|
|
23909
23910
|
(pe || ce.length === 0) && F(!0);
|
|
23910
23911
|
}, [ce, pe, F]), bt(() => () => {
|
|
23911
23912
|
I.current && clearTimeout(I.current);
|
|
23912
|
-
}, [I]), /* @__PURE__ */ B.jsxs("div", { className: "fixed bottom-8 right-8 z-50 flex flex-col items-end font-sans", style: { fontFamily:
|
|
23913
|
+
}, [I]), /* @__PURE__ */ B.jsxs("div", { className: "fixed bottom-8 right-8 z-50 flex flex-col items-end font-sans", style: { fontFamily: Lc }, children: [
|
|
23913
23914
|
t && /* @__PURE__ */ B.jsxs(
|
|
23914
23915
|
"div",
|
|
23915
23916
|
{
|
|
@@ -23919,7 +23920,7 @@ $1 $2
|
|
|
23919
23920
|
height: ve.WINDOW_DIMENSIONS.HEIGHT,
|
|
23920
23921
|
maxHeight: ve.WINDOW_DIMENSIONS.MAX_HEIGHT,
|
|
23921
23922
|
width: Rc(N),
|
|
23922
|
-
minWidth:
|
|
23923
|
+
minWidth: Dc(N),
|
|
23923
23924
|
backdropFilter: "blur(20px)",
|
|
23924
23925
|
WebkitBackdropFilter: "blur(20px)",
|
|
23925
23926
|
border: "1px solid rgba(255, 255, 255, 0.2)",
|
|
@@ -23948,7 +23949,7 @@ $1 $2
|
|
|
23948
23949
|
}
|
|
23949
23950
|
}
|
|
23950
23951
|
),
|
|
23951
|
-
/* @__PURE__ */ B.jsx("div", { className: "flex items-center relative z-10 w-full px-3", children: /* @__PURE__ */ B.jsx("div", { className: "max-w-lg mx-auto sm:max-w-2xl w-full", children: /* @__PURE__ */ B.jsx("h3", { className: "text-
|
|
23952
|
+
/* @__PURE__ */ B.jsx("div", { className: "flex items-center relative z-10 w-full px-3", children: /* @__PURE__ */ B.jsx("div", { className: "max-w-lg mx-auto sm:max-w-2xl w-full", children: /* @__PURE__ */ B.jsx("h3", { className: "text-xl font-semibold tracking-tight text-left px-1", children: ae.header.title }) }) }),
|
|
23952
23953
|
/* @__PURE__ */ B.jsxs("div", { className: "flex items-center space-x-2 relative z-10", children: [
|
|
23953
23954
|
/* @__PURE__ */ B.jsx(
|
|
23954
23955
|
"button",
|
|
@@ -23988,20 +23989,20 @@ $1 $2
|
|
|
23988
23989
|
showScrollBottom: A,
|
|
23989
23990
|
isAnimating: u,
|
|
23990
23991
|
messagesContainerRef: z,
|
|
23991
|
-
messagesEndRef:
|
|
23992
|
+
messagesEndRef: D,
|
|
23992
23993
|
scrollToTop: Y,
|
|
23993
23994
|
scrollToBottom: F,
|
|
23994
23995
|
handleScroll: H,
|
|
23995
|
-
sendMessage:
|
|
23996
|
+
sendMessage: Me,
|
|
23996
23997
|
focusInput: Ve,
|
|
23997
23998
|
copiedMessageId: o,
|
|
23998
23999
|
onCopyToClipboard: Ge,
|
|
23999
24000
|
onMarkMessageAnimated: p,
|
|
24000
|
-
inputRef:
|
|
24001
|
+
inputRef: we,
|
|
24001
24002
|
hasBeenAnimated: v,
|
|
24002
24003
|
typingProgressRef: m,
|
|
24003
24004
|
isTypingRef: h,
|
|
24004
|
-
setIsAnimating:
|
|
24005
|
+
setIsAnimating: C,
|
|
24005
24006
|
formatTime: We,
|
|
24006
24007
|
lastMessageRef: d,
|
|
24007
24008
|
maxSuggestedQuestionLength: e.maxSuggestedQuestionLength,
|
|
@@ -24015,7 +24016,7 @@ $1 $2
|
|
|
24015
24016
|
isFocused: Ce,
|
|
24016
24017
|
isLoading: pe,
|
|
24017
24018
|
theme: K,
|
|
24018
|
-
inputRef:
|
|
24019
|
+
inputRef: we,
|
|
24019
24020
|
handleMessageChange: E,
|
|
24020
24021
|
handleKeyDown: Fe,
|
|
24021
24022
|
handleSendMessage: Ue,
|
|
@@ -24083,7 +24084,7 @@ $1 $2
|
|
|
24083
24084
|
/* @__PURE__ */ B.jsx("style", { children: Oc })
|
|
24084
24085
|
] });
|
|
24085
24086
|
};
|
|
24086
|
-
let Rr = null,
|
|
24087
|
+
let Rr = null, Dr = null, Je = null;
|
|
24087
24088
|
function b0() {
|
|
24088
24089
|
if (!Rr)
|
|
24089
24090
|
if (typeof window < "u" && window.CHATBOT_API_URL)
|
|
@@ -24093,21 +24094,21 @@ function b0() {
|
|
|
24093
24094
|
return Rr;
|
|
24094
24095
|
}
|
|
24095
24096
|
function x0() {
|
|
24096
|
-
if (!
|
|
24097
|
+
if (!Dr)
|
|
24097
24098
|
if (typeof window < "u" && window.CHATBOT_API_KEY)
|
|
24098
|
-
|
|
24099
|
+
Dr = window.CHATBOT_API_KEY;
|
|
24099
24100
|
else
|
|
24100
24101
|
throw new Error("API key not set. Call setApiKey or use injectChatWidget to configure the API key.");
|
|
24101
|
-
return
|
|
24102
|
+
return Dr;
|
|
24102
24103
|
}
|
|
24103
24104
|
function A3(e) {
|
|
24104
|
-
if (Rr = e, typeof window < "u" && (window.CHATBOT_API_URL = e,
|
|
24105
|
+
if (Rr = e, typeof window < "u" && (window.CHATBOT_API_URL = e, Dr)) {
|
|
24105
24106
|
const t = Pr();
|
|
24106
|
-
Fr(e,
|
|
24107
|
+
Fr(e, Dr, t);
|
|
24107
24108
|
}
|
|
24108
24109
|
}
|
|
24109
24110
|
function E3(e) {
|
|
24110
|
-
if (
|
|
24111
|
+
if (Dr = e, typeof window < "u" && (window.CHATBOT_API_KEY = e, Rr)) {
|
|
24111
24112
|
const t = Pr();
|
|
24112
24113
|
Fr(Rr, e, t);
|
|
24113
24114
|
}
|