@fileverse-dev/ddoc 3.0.97-fragment-0 → 3.0.97-fragment-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +769 -729
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4,7 +4,7 @@ var ut = (e, t, n) => jJ(e, typeof t != "symbol" ? t + "" : t, n);
|
|
|
4
4
|
import * as En from "react";
|
|
5
5
|
import _t, { createRef as BJ, memo as g1, createContext as ud, createElement as l2, useContext as cd, version as J7, useRef as qe, useState as Be, useDebugValue as TD, useEffect as Me, forwardRef as ur, useLayoutEffect as oh, useCallback as Se, useMemo as kt, Fragment as NJ, useReducer as MJ, cloneElement as $O, useImperativeHandle as HO } from "react";
|
|
6
6
|
import WO, { flushSync as OJ, createPortal as m1 } from "react-dom";
|
|
7
|
-
import { Drawer as qO, DrawerContent as RJ, DrawerHeader as IJ, DrawerTitle as LJ, DrawerClose as UJ, LucideIcon as Ue, useTheme as PJ, Button as Xt, TextField as Pc, DynamicDropdown as Ur, Tooltip as
|
|
7
|
+
import { Drawer as qO, DrawerContent as RJ, DrawerHeader as IJ, DrawerTitle as LJ, DrawerClose as UJ, LucideIcon as Ue, useTheme as PJ, Button as Xt, TextField as Pc, DynamicDropdown as Ur, Tooltip as Jt, IconButton as kn, Avatar as u2, cn as Ye, ButtonGroup as jD, Skeleton as hr, TextAreaFieldV2 as c2, DynamicModal as BD, Select as J0, SelectTrigger as Q0, SelectValue as d2, SelectContent as ef, SelectItem as tf, DynamicDropdownV2 as yy, Popover as nf, PopoverTrigger as rf, PopoverContent as of, toast as ND, Divider as p2, UltimateIcons as zJ, PopoverClose as VO, SelectGroup as GO, SelectLabel as $J, Checkbox as HJ, DrawerTrigger as Q7, AnimatedLoader as WJ, Label as qJ, DynamicDrawer as VJ, DynamicDrawerV2 as GJ, BottomDrawer as KJ, Tag as h2, TagInput as KO } from "@fileverse/ui";
|
|
8
8
|
import { isAddress as XJ, createPublicClient as YJ, http as ZJ } from "viem";
|
|
9
9
|
import { mainnet as JJ } from "viem/chains";
|
|
10
10
|
import { motion as Xa, AnimatePresence as ih, MotionConfig as QJ } from "framer-motion";
|
|
@@ -14,7 +14,7 @@ import { useSensors as rQ, useSensor as oQ, PointerSensor as iQ, DndContext as s
|
|
|
14
14
|
import { useSortable as uQ, SortableContext as cQ, verticalListSortingStrategy as dQ } from "@dnd-kit/sortable";
|
|
15
15
|
import { CSS as pQ } from "@dnd-kit/utilities";
|
|
16
16
|
import { EmojiPicker as fc } from "frimousse";
|
|
17
|
-
var
|
|
17
|
+
var jt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
18
18
|
function Lu(e) {
|
|
19
19
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
20
20
|
}
|
|
@@ -525,7 +525,7 @@ Check the render method of \`` + ve + "`.";
|
|
|
525
525
|
return "";
|
|
526
526
|
}
|
|
527
527
|
var at = {};
|
|
528
|
-
function
|
|
528
|
+
function Ge(ve) {
|
|
529
529
|
{
|
|
530
530
|
var Ie = Re();
|
|
531
531
|
if (!Ie) {
|
|
@@ -542,7 +542,7 @@ Check the top-level render call using <` + rt + ">.");
|
|
|
542
542
|
if (!ve._store || ve._store.validated || ve.key != null)
|
|
543
543
|
return;
|
|
544
544
|
ve._store.validated = !0;
|
|
545
|
-
var rt =
|
|
545
|
+
var rt = Ge(Ie);
|
|
546
546
|
if (at[rt])
|
|
547
547
|
return;
|
|
548
548
|
at[rt] = !0;
|
|
@@ -569,7 +569,7 @@ Check the top-level render call using <` + rt + ">.");
|
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function xt(ve) {
|
|
573
573
|
{
|
|
574
574
|
var Ie = ve.type;
|
|
575
575
|
if (Ie == null || typeof Ie == "string")
|
|
@@ -594,7 +594,7 @@ Check the top-level render call using <` + rt + ">.");
|
|
|
594
594
|
typeof Ie.getDefaultProps == "function" && !Ie.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function Nt(ve) {
|
|
598
598
|
{
|
|
599
599
|
for (var Ie = Object.keys(ve.props), rt = 0; rt < Ie.length; rt++) {
|
|
600
600
|
var mt = Ie[rt];
|
|
@@ -606,8 +606,8 @@ Check the top-level render call using <` + rt + ">.");
|
|
|
606
606
|
ve.ref !== null && (pt(ve), y("Invalid attribute `ref` supplied to `React.Fragment`."), pt(null));
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
|
-
var
|
|
610
|
-
function
|
|
609
|
+
var en = {};
|
|
610
|
+
function ln(ve, Ie, rt, mt, Zt, nn) {
|
|
611
611
|
{
|
|
612
612
|
var Pt = R(ve);
|
|
613
613
|
if (!Pt) {
|
|
@@ -638,27 +638,27 @@ Check the top-level render call using <` + rt + ">.");
|
|
|
638
638
|
var Gt = N(ve), Vt = Object.keys(Ie).filter(function(Yr) {
|
|
639
639
|
return Yr !== "key";
|
|
640
640
|
}), yn = Vt.length > 0 ? "{key: someKey, " + Vt.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
641
|
-
if (!
|
|
641
|
+
if (!en[Gt + yn]) {
|
|
642
642
|
var vr = Vt.length > 0 ? "{" + Vt.join(": ..., ") + ": ...}" : "{}";
|
|
643
643
|
y(`A props object containing a "key" prop is being spread into JSX:
|
|
644
644
|
let props = %s;
|
|
645
645
|
<%s {...props} />
|
|
646
646
|
React keys must be passed directly to JSX without using spread:
|
|
647
647
|
let props = %s;
|
|
648
|
-
<%s key={someKey} {...props} />`, yn, Gt, vr, Gt),
|
|
648
|
+
<%s key={someKey} {...props} />`, yn, Gt, vr, Gt), en[Gt + yn] = !0;
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
|
-
return ve === r ?
|
|
651
|
+
return ve === r ? Nt(we) : xt(we), we;
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
function
|
|
655
|
-
return
|
|
654
|
+
function un(ve, Ie, rt) {
|
|
655
|
+
return ln(ve, Ie, rt, !0);
|
|
656
656
|
}
|
|
657
|
-
function
|
|
658
|
-
return
|
|
657
|
+
function rn(ve, Ie, rt) {
|
|
658
|
+
return ln(ve, Ie, rt, !1);
|
|
659
659
|
}
|
|
660
|
-
var
|
|
661
|
-
Ih.Fragment = r, Ih.jsx =
|
|
660
|
+
var cn = rn, Fn = un;
|
|
661
|
+
Ih.Fragment = r, Ih.jsx = cn, Ih.jsxs = Fn;
|
|
662
662
|
}()), Ih;
|
|
663
663
|
}
|
|
664
664
|
process.env.NODE_ENV === "production" ? B6.exports = hQ() : B6.exports = fQ();
|
|
@@ -10978,7 +10978,7 @@ function jI(e) {
|
|
|
10978
10978
|
});
|
|
10979
10979
|
}), t;
|
|
10980
10980
|
}
|
|
10981
|
-
function
|
|
10981
|
+
function Bt(...e) {
|
|
10982
10982
|
return e.filter((t) => !!t).reduce((t, n) => {
|
|
10983
10983
|
const r = { ...t };
|
|
10984
10984
|
return Object.entries(n).forEach(([o, i]) => {
|
|
@@ -11006,7 +11006,7 @@ function Nt(...e) {
|
|
|
11006
11006
|
function ff(e, t) {
|
|
11007
11007
|
return t.filter((n) => n.type === e.type.name).filter((n) => n.attribute.rendered).map((n) => n.attribute.renderHTML ? n.attribute.renderHTML(e.attrs) || {} : {
|
|
11008
11008
|
[n.name]: e.attrs[n.name]
|
|
11009
|
-
}).reduce((n, r) =>
|
|
11009
|
+
}).reduce((n, r) => Bt(n, r), {});
|
|
11010
11010
|
}
|
|
11011
11011
|
function fre(e) {
|
|
11012
11012
|
return typeof e != "string" ? e : e.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(e) : e === "true" ? !0 : e === "false" ? !1 : e;
|
|
@@ -12288,7 +12288,7 @@ t8(zI, {
|
|
|
12288
12288
|
TextDirection: () => QI,
|
|
12289
12289
|
focusEventsPluginKey: () => KI
|
|
12290
12290
|
});
|
|
12291
|
-
var
|
|
12291
|
+
var wt = class $I extends l8 {
|
|
12292
12292
|
constructor() {
|
|
12293
12293
|
super(...arguments), this.type = "extension";
|
|
12294
12294
|
}
|
|
@@ -12307,7 +12307,7 @@ var Ft = class $I extends l8 {
|
|
|
12307
12307
|
const n = typeof t == "function" ? t() : t;
|
|
12308
12308
|
return super.extend(n);
|
|
12309
12309
|
}
|
|
12310
|
-
}, HI =
|
|
12310
|
+
}, HI = wt.create({
|
|
12311
12311
|
name: "clipboardTextSerializer",
|
|
12312
12312
|
addOptions() {
|
|
12313
12313
|
return {
|
|
@@ -12330,14 +12330,14 @@ var Ft = class $I extends l8 {
|
|
|
12330
12330
|
})
|
|
12331
12331
|
];
|
|
12332
12332
|
}
|
|
12333
|
-
}), WI =
|
|
12333
|
+
}), WI = wt.create({
|
|
12334
12334
|
name: "commands",
|
|
12335
12335
|
addCommands() {
|
|
12336
12336
|
return {
|
|
12337
12337
|
...wI
|
|
12338
12338
|
};
|
|
12339
12339
|
}
|
|
12340
|
-
}), qI =
|
|
12340
|
+
}), qI = wt.create({
|
|
12341
12341
|
name: "delete",
|
|
12342
12342
|
onUpdate({ transaction: e, appendedTransactions: t }) {
|
|
12343
12343
|
var n, r, o;
|
|
@@ -12393,7 +12393,7 @@ var Ft = class $I extends l8 {
|
|
|
12393
12393
|
};
|
|
12394
12394
|
(o = (r = (n = this.editor.options.coreExtensionOptions) == null ? void 0 : n.delete) == null ? void 0 : r.async) == null || o ? setTimeout(i, 0) : i();
|
|
12395
12395
|
}
|
|
12396
|
-
}), VI =
|
|
12396
|
+
}), VI = wt.create({
|
|
12397
12397
|
name: "drop",
|
|
12398
12398
|
addProseMirrorPlugins() {
|
|
12399
12399
|
return [
|
|
@@ -12412,7 +12412,7 @@ var Ft = class $I extends l8 {
|
|
|
12412
12412
|
})
|
|
12413
12413
|
];
|
|
12414
12414
|
}
|
|
12415
|
-
}), GI =
|
|
12415
|
+
}), GI = wt.create({
|
|
12416
12416
|
name: "editable",
|
|
12417
12417
|
addProseMirrorPlugins() {
|
|
12418
12418
|
return [
|
|
@@ -12424,7 +12424,7 @@ var Ft = class $I extends l8 {
|
|
|
12424
12424
|
})
|
|
12425
12425
|
];
|
|
12426
12426
|
}
|
|
12427
|
-
}), KI = new St("focusEvents"), XI =
|
|
12427
|
+
}), KI = new St("focusEvents"), XI = wt.create({
|
|
12428
12428
|
name: "focusEvents",
|
|
12429
12429
|
addProseMirrorPlugins() {
|
|
12430
12430
|
const { editor: e } = this;
|
|
@@ -12448,7 +12448,7 @@ var Ft = class $I extends l8 {
|
|
|
12448
12448
|
})
|
|
12449
12449
|
];
|
|
12450
12450
|
}
|
|
12451
|
-
}), YI =
|
|
12451
|
+
}), YI = wt.create({
|
|
12452
12452
|
name: "keymap",
|
|
12453
12453
|
addKeyboardShortcuts() {
|
|
12454
12454
|
const e = () => this.editor.commands.first(({ commands: s }) => [
|
|
@@ -12526,7 +12526,7 @@ var Ft = class $I extends l8 {
|
|
|
12526
12526
|
})
|
|
12527
12527
|
];
|
|
12528
12528
|
}
|
|
12529
|
-
}), ZI =
|
|
12529
|
+
}), ZI = wt.create({
|
|
12530
12530
|
name: "paste",
|
|
12531
12531
|
addProseMirrorPlugins() {
|
|
12532
12532
|
return [
|
|
@@ -12544,7 +12544,7 @@ var Ft = class $I extends l8 {
|
|
|
12544
12544
|
})
|
|
12545
12545
|
];
|
|
12546
12546
|
}
|
|
12547
|
-
}), JI =
|
|
12547
|
+
}), JI = wt.create({
|
|
12548
12548
|
name: "tabindex",
|
|
12549
12549
|
addProseMirrorPlugins() {
|
|
12550
12550
|
return [
|
|
@@ -12556,7 +12556,7 @@ var Ft = class $I extends l8 {
|
|
|
12556
12556
|
})
|
|
12557
12557
|
];
|
|
12558
12558
|
}
|
|
12559
|
-
}), QI =
|
|
12559
|
+
}), QI = wt.create({
|
|
12560
12560
|
name: "textDirection",
|
|
12561
12561
|
addOptions() {
|
|
12562
12562
|
return {
|
|
@@ -17641,7 +17641,7 @@ var wse = class {
|
|
|
17641
17641
|
key: typeof e.pluginKey == "string" ? new St(e.pluginKey) : e.pluginKey,
|
|
17642
17642
|
view: (t) => new wse({ view: t, ...e })
|
|
17643
17643
|
});
|
|
17644
|
-
|
|
17644
|
+
wt.create({
|
|
17645
17645
|
name: "bubbleMenu",
|
|
17646
17646
|
addOptions() {
|
|
17647
17647
|
return {
|
|
@@ -17772,7 +17772,7 @@ var Dse = class {
|
|
|
17772
17772
|
key: typeof e.pluginKey == "string" ? new St(e.pluginKey) : e.pluginKey,
|
|
17773
17773
|
view: (t) => new Dse({ view: t, ...e })
|
|
17774
17774
|
});
|
|
17775
|
-
|
|
17775
|
+
wt.create({
|
|
17776
17776
|
name: "floatingMenu",
|
|
17777
17777
|
addOptions() {
|
|
17778
17778
|
return {
|
|
@@ -19115,10 +19115,10 @@ function fae(e, t, n, r, o, i, s) {
|
|
|
19115
19115
|
loop: nt
|
|
19116
19116
|
}
|
|
19117
19117
|
}, je) => {
|
|
19118
|
-
const Re = xe.settled(), He = !pt.shouldConstrain(), at = nt ? Re : Re && He,
|
|
19119
|
-
|
|
19118
|
+
const Re = xe.settled(), He = !pt.shouldConstrain(), at = nt ? Re : Re && He, Ge = at && !Le.pointerDown();
|
|
19119
|
+
Ge && Pe.stop();
|
|
19120
19120
|
const We = Ee.get() * je + ge.get() * (1 - je);
|
|
19121
|
-
Ce.set(We), nt && (Te.loop(xe.direction()), Ne.loop()), be.to(Ce.get()),
|
|
19121
|
+
Ce.set(We), nt && (Te.loop(xe.direction()), Ne.loop()), be.to(Ce.get()), Ge && ft.emit("settle"), at || ft.emit("scroll");
|
|
19122
19122
|
}, B = qse(r, o, () => Z(pe), (xe) => ue(pe, xe)), ee = 0.68, ae = Q[oe.get()], K = d0(ae), V = d0(ae), ie = d0(ae), he = d0(ae), De = Jse(K, ie, V, he, p, ee), me = sae(d, Q, le, Y, he), ce = aae(B, oe, S, De, me, he, s), de = rae(Y), fe = vf(), O = dae(t, n, s, g), {
|
|
19123
19123
|
slideRegistry: W
|
|
19124
19124
|
} = iae(M, y, Q, G, z, X), te = lae(e, n, W, ce, De, fe, s, w), pe = {
|
|
@@ -19560,7 +19560,7 @@ const vae = _t.forwardRef(({ className: e, ...t }, n) => {
|
|
|
19560
19560
|
);
|
|
19561
19561
|
});
|
|
19562
19562
|
vae.displayName = "CarouselNext";
|
|
19563
|
-
var Fae = typeof
|
|
19563
|
+
var Fae = typeof jt == "object" && jt && jt.Object === Object && jt, wae = typeof self == "object" && self && self.Object === Object && self;
|
|
19564
19564
|
Fae || wae || Function("return this")();
|
|
19565
19565
|
var JL = typeof window < "u" ? oh : Me;
|
|
19566
19566
|
function Dae(e, t, n, r) {
|
|
@@ -21474,7 +21474,7 @@ var iU = function e(t) {
|
|
|
21474
21474
|
}, Xae = function(t) {
|
|
21475
21475
|
var n = /^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);
|
|
21476
21476
|
return n ? n[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1]) ? null : n[1].toLowerCase() : "_relative";
|
|
21477
|
-
},
|
|
21477
|
+
}, an = {
|
|
21478
21478
|
deflt: zae,
|
|
21479
21479
|
escape: Vae,
|
|
21480
21480
|
hyphenate: Hae,
|
|
@@ -21634,7 +21634,7 @@ class E8 {
|
|
|
21634
21634
|
*/
|
|
21635
21635
|
isTrusted(t) {
|
|
21636
21636
|
if (t.url && !t.protocol) {
|
|
21637
|
-
var n =
|
|
21637
|
+
var n = an.protocolFromUrl(t.url);
|
|
21638
21638
|
if (n == null)
|
|
21639
21639
|
return !1;
|
|
21640
21640
|
t.protocol = n;
|
|
@@ -21693,7 +21693,7 @@ class Ol {
|
|
|
21693
21693
|
return this.size >= 2;
|
|
21694
21694
|
}
|
|
21695
21695
|
}
|
|
21696
|
-
var C8 = 0, T2 = 1, dp = 2, Qa = 3, Df = 4, Pi = 5, Np = 6, wo = 7, $s = [new Ol(C8, 0, !1), new Ol(T2, 0, !0), new Ol(dp, 1, !1), new Ol(Qa, 1, !0), new Ol(Df, 2, !1), new Ol(Pi, 2, !0), new Ol(Np, 3, !1), new Ol(wo, 3, !0)], Zae = [Df, Pi, Df, Pi, Np, wo, Np, wo], Jae = [Pi, Pi, Pi, Pi, wo, wo, wo, wo], Qae = [dp, Qa, Df, Pi, Np, wo, Np, wo], ele = [Qa, Qa, Pi, Pi, wo, wo, wo, wo], tle = [T2, T2, Qa, Qa, Pi, Pi, wo, wo], nle = [C8, T2, dp, Qa, dp, Qa, dp, Qa],
|
|
21696
|
+
var C8 = 0, T2 = 1, dp = 2, Qa = 3, Df = 4, Pi = 5, Np = 6, wo = 7, $s = [new Ol(C8, 0, !1), new Ol(T2, 0, !0), new Ol(dp, 1, !1), new Ol(Qa, 1, !0), new Ol(Df, 2, !1), new Ol(Pi, 2, !0), new Ol(Np, 3, !1), new Ol(wo, 3, !0)], Zae = [Df, Pi, Df, Pi, Np, wo, Np, wo], Jae = [Pi, Pi, Pi, Pi, wo, wo, wo, wo], Qae = [dp, Qa, Df, Pi, Np, wo, Np, wo], ele = [Qa, Qa, Pi, Pi, wo, wo, wo, wo], tle = [T2, T2, Qa, Qa, Pi, Pi, wo, wo], nle = [C8, T2, dp, Qa, dp, Qa, dp, Qa], Ft = {
|
|
21697
21697
|
DISPLAY: $s[C8],
|
|
21698
21698
|
TEXT: $s[dp],
|
|
21699
21699
|
SCRIPT: $s[Df],
|
|
@@ -24771,16 +24771,16 @@ var k5 = {
|
|
|
24771
24771
|
return n;
|
|
24772
24772
|
}, yle = /[\s"'>/=\x00-\x1f]/, dU = function(t) {
|
|
24773
24773
|
var n = "<" + t;
|
|
24774
|
-
this.classes.length && (n += ' class="' +
|
|
24774
|
+
this.classes.length && (n += ' class="' + an.escape(Eu(this.classes)) + '"');
|
|
24775
24775
|
var r = "";
|
|
24776
24776
|
for (var o in this.style)
|
|
24777
|
-
this.style.hasOwnProperty(o) && (r +=
|
|
24778
|
-
r && (n += ' style="' +
|
|
24777
|
+
this.style.hasOwnProperty(o) && (r += an.hyphenate(o) + ":" + this.style[o] + ";");
|
|
24778
|
+
r && (n += ' style="' + an.escape(r) + '"');
|
|
24779
24779
|
for (var i in this.attributes)
|
|
24780
24780
|
if (this.attributes.hasOwnProperty(i)) {
|
|
24781
24781
|
if (yle.test(i))
|
|
24782
24782
|
throw new Xe("Invalid attribute name '" + i + "'");
|
|
24783
|
-
n += " " + i + '="' +
|
|
24783
|
+
n += " " + i + '="' + an.escape(this.attributes[i]) + '"';
|
|
24784
24784
|
}
|
|
24785
24785
|
n += ">";
|
|
24786
24786
|
for (var s = 0; s < this.children.length; s++)
|
|
@@ -24841,10 +24841,10 @@ class xle {
|
|
|
24841
24841
|
return t;
|
|
24842
24842
|
}
|
|
24843
24843
|
toMarkup() {
|
|
24844
|
-
var t = '<img src="' +
|
|
24844
|
+
var t = '<img src="' + an.escape(this.src) + '"' + (' alt="' + an.escape(this.alt) + '"'), n = "";
|
|
24845
24845
|
for (var r in this.style)
|
|
24846
|
-
this.style.hasOwnProperty(r) && (n +=
|
|
24847
|
-
return n && (t += ' style="' +
|
|
24846
|
+
this.style.hasOwnProperty(r) && (n += an.hyphenate(r) + ":" + this.style[r] + ";");
|
|
24847
|
+
return n && (t += ' style="' + an.escape(n) + '"'), t += "'/>", t;
|
|
24848
24848
|
}
|
|
24849
24849
|
}
|
|
24850
24850
|
var vle = {
|
|
@@ -24879,13 +24879,13 @@ class Ki {
|
|
|
24879
24879
|
*/
|
|
24880
24880
|
toMarkup() {
|
|
24881
24881
|
var t = !1, n = "<span";
|
|
24882
|
-
this.classes.length && (t = !0, n += ' class="', n +=
|
|
24882
|
+
this.classes.length && (t = !0, n += ' class="', n += an.escape(Eu(this.classes)), n += '"');
|
|
24883
24883
|
var r = "";
|
|
24884
24884
|
this.italic > 0 && (r += "margin-right:" + this.italic + "em;");
|
|
24885
24885
|
for (var o in this.style)
|
|
24886
|
-
this.style.hasOwnProperty(o) && (r +=
|
|
24887
|
-
r && (t = !0, n += ' style="' +
|
|
24888
|
-
var i =
|
|
24886
|
+
this.style.hasOwnProperty(o) && (r += an.hyphenate(o) + ":" + this.style[o] + ";");
|
|
24887
|
+
r && (t = !0, n += ' style="' + an.escape(r) + '"');
|
|
24888
|
+
var i = an.escape(this.text);
|
|
24889
24889
|
return t ? (n += ">", n += i, n += "</span>", n) : i;
|
|
24890
24890
|
}
|
|
24891
24891
|
}
|
|
@@ -24904,7 +24904,7 @@ class il {
|
|
|
24904
24904
|
toMarkup() {
|
|
24905
24905
|
var t = '<svg xmlns="http://www.w3.org/2000/svg"';
|
|
24906
24906
|
for (var n in this.attributes)
|
|
24907
|
-
Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="' +
|
|
24907
|
+
Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="' + an.escape(this.attributes[n]) + '"');
|
|
24908
24908
|
t += ">";
|
|
24909
24909
|
for (var r = 0; r < this.children.length; r++)
|
|
24910
24910
|
t += this.children[r].toMarkup();
|
|
@@ -24920,7 +24920,7 @@ class Cu {
|
|
|
24920
24920
|
return this.alternate ? n.setAttribute("d", this.alternate) : n.setAttribute("d", W_[this.pathName]), n;
|
|
24921
24921
|
}
|
|
24922
24922
|
toMarkup() {
|
|
24923
|
-
return this.alternate ? '<path d="' +
|
|
24923
|
+
return this.alternate ? '<path d="' + an.escape(this.alternate) + '"/>' : '<path d="' + an.escape(W_[this.pathName]) + '"/>';
|
|
24924
24924
|
}
|
|
24925
24925
|
}
|
|
24926
24926
|
class E5 {
|
|
@@ -24936,7 +24936,7 @@ class E5 {
|
|
|
24936
24936
|
toMarkup() {
|
|
24937
24937
|
var t = "<line";
|
|
24938
24938
|
for (var n in this.attributes)
|
|
24939
|
-
Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="' +
|
|
24939
|
+
Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="' + an.escape(this.attributes[n]) + '"');
|
|
24940
24940
|
return t += "/>", t;
|
|
24941
24941
|
}
|
|
24942
24942
|
}
|
|
@@ -24974,7 +24974,7 @@ function U(e, t, n, r, o, i) {
|
|
|
24974
24974
|
replace: r
|
|
24975
24975
|
}, i && r && (Tn[e][r] = Tn[e][o]);
|
|
24976
24976
|
}
|
|
24977
|
-
var H = "math", $e = "text", J = "main", ye = "ams", Ln = "accent-token", lt = "bin", No = "close", uh = "inner",
|
|
24977
|
+
var H = "math", $e = "text", J = "main", ye = "ams", Ln = "accent-token", lt = "bin", No = "close", uh = "inner", vt = "mathord", cr = "op-token", Di = "open", qy = "punct", Fe = "rel", Fl = "spacing", ke = "textord";
|
|
24978
24978
|
U(H, J, Fe, "≡", "\\equiv", !0);
|
|
24979
24979
|
U(H, J, Fe, "≺", "\\prec", !0);
|
|
24980
24980
|
U(H, J, Fe, "≻", "\\succ", !0);
|
|
@@ -25339,36 +25339,36 @@ U(H, J, ke, "⊤", "\\top");
|
|
|
25339
25339
|
U(H, J, ke, "⊥", "\\bot");
|
|
25340
25340
|
U(H, J, ke, "∅", "\\emptyset");
|
|
25341
25341
|
U(H, ye, ke, "∅", "\\varnothing");
|
|
25342
|
-
U(H, J,
|
|
25343
|
-
U(H, J,
|
|
25344
|
-
U(H, J,
|
|
25345
|
-
U(H, J,
|
|
25346
|
-
U(H, J,
|
|
25347
|
-
U(H, J,
|
|
25348
|
-
U(H, J,
|
|
25349
|
-
U(H, J,
|
|
25350
|
-
U(H, J,
|
|
25351
|
-
U(H, J,
|
|
25352
|
-
U(H, J,
|
|
25353
|
-
U(H, J,
|
|
25354
|
-
U(H, J,
|
|
25355
|
-
U(H, J,
|
|
25356
|
-
U(H, J,
|
|
25357
|
-
U(H, J,
|
|
25358
|
-
U(H, J,
|
|
25359
|
-
U(H, J,
|
|
25360
|
-
U(H, J,
|
|
25361
|
-
U(H, J,
|
|
25362
|
-
U(H, J,
|
|
25363
|
-
U(H, J,
|
|
25364
|
-
U(H, J,
|
|
25365
|
-
U(H, J,
|
|
25366
|
-
U(H, J,
|
|
25367
|
-
U(H, J,
|
|
25368
|
-
U(H, J,
|
|
25369
|
-
U(H, J,
|
|
25370
|
-
U(H, J,
|
|
25371
|
-
U(H, J,
|
|
25342
|
+
U(H, J, vt, "α", "\\alpha", !0);
|
|
25343
|
+
U(H, J, vt, "β", "\\beta", !0);
|
|
25344
|
+
U(H, J, vt, "γ", "\\gamma", !0);
|
|
25345
|
+
U(H, J, vt, "δ", "\\delta", !0);
|
|
25346
|
+
U(H, J, vt, "ϵ", "\\epsilon", !0);
|
|
25347
|
+
U(H, J, vt, "ζ", "\\zeta", !0);
|
|
25348
|
+
U(H, J, vt, "η", "\\eta", !0);
|
|
25349
|
+
U(H, J, vt, "θ", "\\theta", !0);
|
|
25350
|
+
U(H, J, vt, "ι", "\\iota", !0);
|
|
25351
|
+
U(H, J, vt, "κ", "\\kappa", !0);
|
|
25352
|
+
U(H, J, vt, "λ", "\\lambda", !0);
|
|
25353
|
+
U(H, J, vt, "μ", "\\mu", !0);
|
|
25354
|
+
U(H, J, vt, "ν", "\\nu", !0);
|
|
25355
|
+
U(H, J, vt, "ξ", "\\xi", !0);
|
|
25356
|
+
U(H, J, vt, "ο", "\\omicron", !0);
|
|
25357
|
+
U(H, J, vt, "π", "\\pi", !0);
|
|
25358
|
+
U(H, J, vt, "ρ", "\\rho", !0);
|
|
25359
|
+
U(H, J, vt, "σ", "\\sigma", !0);
|
|
25360
|
+
U(H, J, vt, "τ", "\\tau", !0);
|
|
25361
|
+
U(H, J, vt, "υ", "\\upsilon", !0);
|
|
25362
|
+
U(H, J, vt, "ϕ", "\\phi", !0);
|
|
25363
|
+
U(H, J, vt, "χ", "\\chi", !0);
|
|
25364
|
+
U(H, J, vt, "ψ", "\\psi", !0);
|
|
25365
|
+
U(H, J, vt, "ω", "\\omega", !0);
|
|
25366
|
+
U(H, J, vt, "ε", "\\varepsilon", !0);
|
|
25367
|
+
U(H, J, vt, "ϑ", "\\vartheta", !0);
|
|
25368
|
+
U(H, J, vt, "ϖ", "\\varpi", !0);
|
|
25369
|
+
U(H, J, vt, "ϱ", "\\varrho", !0);
|
|
25370
|
+
U(H, J, vt, "ς", "\\varsigma", !0);
|
|
25371
|
+
U(H, J, vt, "φ", "\\varphi", !0);
|
|
25372
25372
|
U(H, J, lt, "∗", "*", !0);
|
|
25373
25373
|
U(H, J, lt, "+", "+");
|
|
25374
25374
|
U(H, J, lt, "−", "-", !0);
|
|
@@ -25520,8 +25520,8 @@ U(H, J, Ln, "^", "\\hat");
|
|
|
25520
25520
|
U(H, J, Ln, "⃗", "\\vec");
|
|
25521
25521
|
U(H, J, Ln, "˙", "\\dot");
|
|
25522
25522
|
U(H, J, Ln, "˚", "\\mathring");
|
|
25523
|
-
U(H, J,
|
|
25524
|
-
U(H, J,
|
|
25523
|
+
U(H, J, vt, "", "\\@imath");
|
|
25524
|
+
U(H, J, vt, "", "\\@jmath");
|
|
25525
25525
|
U(H, J, ke, "ı", "ı");
|
|
25526
25526
|
U(H, J, ke, "ȷ", "ȷ");
|
|
25527
25527
|
U($e, J, ke, "ı", "\\i", !0);
|
|
@@ -25586,7 +25586,7 @@ for (var dv = 0; dv < Z_.length; dv++) {
|
|
|
25586
25586
|
var j2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
25587
25587
|
for (var pv = 0; pv < j2.length; pv++) {
|
|
25588
25588
|
var Cg = j2.charAt(pv);
|
|
25589
|
-
U(H, J,
|
|
25589
|
+
U(H, J, vt, Cg, Cg), U($e, J, ke, Cg, Cg);
|
|
25590
25590
|
}
|
|
25591
25591
|
U(H, ye, ke, "C", "ℂ");
|
|
25592
25592
|
U($e, ye, ke, "C", "ℂ");
|
|
@@ -25602,24 +25602,24 @@ U(H, ye, ke, "R", "ℝ");
|
|
|
25602
25602
|
U($e, ye, ke, "R", "ℝ");
|
|
25603
25603
|
U(H, ye, ke, "Z", "ℤ");
|
|
25604
25604
|
U($e, ye, ke, "Z", "ℤ");
|
|
25605
|
-
U(H, J,
|
|
25606
|
-
U($e, J,
|
|
25605
|
+
U(H, J, vt, "h", "ℎ");
|
|
25606
|
+
U($e, J, vt, "h", "ℎ");
|
|
25607
25607
|
var Ct = "";
|
|
25608
25608
|
for (var fo = 0; fo < j2.length; fo++) {
|
|
25609
25609
|
var Wn = j2.charAt(fo);
|
|
25610
|
-
Ct = String.fromCharCode(55349, 56320 + fo), U(H, J,
|
|
25610
|
+
Ct = String.fromCharCode(55349, 56320 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56372 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56424 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56580 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56684 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56736 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56788 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56840 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56944 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), fo < 26 && (Ct = String.fromCharCode(55349, 56632 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56476 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct));
|
|
25611
25611
|
}
|
|
25612
25612
|
Ct = "𝕜";
|
|
25613
|
-
U(H, J,
|
|
25613
|
+
U(H, J, vt, "k", Ct);
|
|
25614
25614
|
U($e, J, ke, "k", Ct);
|
|
25615
25615
|
for (var Ju = 0; Ju < 10; Ju++) {
|
|
25616
25616
|
var Rl = Ju.toString();
|
|
25617
|
-
Ct = String.fromCharCode(55349, 57294 + Ju), U(H, J,
|
|
25617
|
+
Ct = String.fromCharCode(55349, 57294 + Ju), U(H, J, vt, Rl, Ct), U($e, J, ke, Rl, Ct), Ct = String.fromCharCode(55349, 57314 + Ju), U(H, J, vt, Rl, Ct), U($e, J, ke, Rl, Ct), Ct = String.fromCharCode(55349, 57324 + Ju), U(H, J, vt, Rl, Ct), U($e, J, ke, Rl, Ct), Ct = String.fromCharCode(55349, 57334 + Ju), U(H, J, vt, Rl, Ct), U($e, J, ke, Rl, Ct);
|
|
25618
25618
|
}
|
|
25619
25619
|
var C5 = "ÐÞþ";
|
|
25620
25620
|
for (var hv = 0; hv < C5.length; hv++) {
|
|
25621
25621
|
var _g = C5.charAt(hv);
|
|
25622
|
-
U(H, J,
|
|
25622
|
+
U(H, J, vt, _g, _g), U($e, J, ke, _g, _g);
|
|
25623
25623
|
}
|
|
25624
25624
|
var Ag = [
|
|
25625
25625
|
["mathbf", "textbf", "Main-Bold"],
|
|
@@ -26119,10 +26119,10 @@ var M2 = function(t) {
|
|
|
26119
26119
|
}, Zn = function(t) {
|
|
26120
26120
|
return t.type === "ordgroup" ? t.body : [t];
|
|
26121
26121
|
}, sl = _e.makeSpan, Ule = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], Ple = ["rightmost", "mrel", "mclose", "mpunct"], zle = {
|
|
26122
|
-
display:
|
|
26123
|
-
text:
|
|
26124
|
-
script:
|
|
26125
|
-
scriptscript:
|
|
26122
|
+
display: Ft.DISPLAY,
|
|
26123
|
+
text: Ft.TEXT,
|
|
26124
|
+
script: Ft.SCRIPT,
|
|
26125
|
+
scriptscript: Ft.SCRIPTSCRIPT
|
|
26126
26126
|
}, $le = {
|
|
26127
26127
|
mord: "mord",
|
|
26128
26128
|
mop: "mop",
|
|
@@ -26135,7 +26135,7 @@ var M2 = function(t) {
|
|
|
26135
26135
|
}, br = function(t, n, r, o) {
|
|
26136
26136
|
o === void 0 && (o = [null, null]);
|
|
26137
26137
|
for (var i = [], s = 0; s < t.length; s++) {
|
|
26138
|
-
var a =
|
|
26138
|
+
var a = sn(t[s], n);
|
|
26139
26139
|
if (a instanceof C1) {
|
|
26140
26140
|
var l = a.children;
|
|
26141
26141
|
i.push(...l);
|
|
@@ -26199,7 +26199,7 @@ var M2 = function(t) {
|
|
|
26199
26199
|
}, kf = function(t, n) {
|
|
26200
26200
|
var r = ["nulldelimiter"].concat(t.baseSizingClasses());
|
|
26201
26201
|
return sl(n.concat(r));
|
|
26202
|
-
},
|
|
26202
|
+
}, sn = function(t, n, r) {
|
|
26203
26203
|
if (!t)
|
|
26204
26204
|
return sl();
|
|
26205
26205
|
if (B2[t.type]) {
|
|
@@ -26281,8 +26281,8 @@ class gi {
|
|
|
26281
26281
|
toMarkup() {
|
|
26282
26282
|
var t = "<" + this.type;
|
|
26283
26283
|
for (var n in this.attributes)
|
|
26284
|
-
Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="', t +=
|
|
26285
|
-
this.classes.length > 0 && (t += ' class ="' +
|
|
26284
|
+
Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="', t += an.escape(this.attributes[n]), t += '"');
|
|
26285
|
+
this.classes.length > 0 && (t += ' class ="' + an.escape(Eu(this.classes)) + '"'), t += ">";
|
|
26286
26286
|
for (var r = 0; r < this.children.length; r++)
|
|
26287
26287
|
t += this.children[r].toMarkup();
|
|
26288
26288
|
return t += "</" + this.type + ">", t;
|
|
@@ -26309,7 +26309,7 @@ class Ks {
|
|
|
26309
26309
|
* (representing the text itself).
|
|
26310
26310
|
*/
|
|
26311
26311
|
toMarkup() {
|
|
26312
|
-
return
|
|
26312
|
+
return an.escape(this.toText());
|
|
26313
26313
|
}
|
|
26314
26314
|
/**
|
|
26315
26315
|
* Converts the text node into a string
|
|
@@ -26348,15 +26348,15 @@ class Wle {
|
|
|
26348
26348
|
return this.character ? this.character : " ";
|
|
26349
26349
|
}
|
|
26350
26350
|
}
|
|
26351
|
-
var
|
|
26351
|
+
var Ve = {
|
|
26352
26352
|
MathNode: gi,
|
|
26353
26353
|
TextNode: Ks,
|
|
26354
26354
|
SpaceNode: Wle,
|
|
26355
26355
|
newDocumentFragment: xU
|
|
26356
26356
|
}, Xi = function(t, n, r) {
|
|
26357
|
-
return Tn[n][t] && Tn[n][t].replace && t.charCodeAt(0) !== 55349 && !(pU.hasOwnProperty(t) && r && (r.fontFamily && r.fontFamily.slice(4, 6) === "tt" || r.font && r.font.slice(4, 6) === "tt")) && (t = Tn[n][t].replace), new
|
|
26357
|
+
return Tn[n][t] && Tn[n][t].replace && t.charCodeAt(0) !== 55349 && !(pU.hasOwnProperty(t) && r && (r.fontFamily && r.fontFamily.slice(4, 6) === "tt" || r.font && r.font.slice(4, 6) === "tt")) && (t = Tn[n][t].replace), new Ve.TextNode(t);
|
|
26358
26358
|
}, T8 = function(t) {
|
|
26359
|
-
return t.length === 1 ? t[0] : new
|
|
26359
|
+
return t.length === 1 ? t[0] : new Ve.MathNode("mrow", t);
|
|
26360
26360
|
}, j8 = function(t, n) {
|
|
26361
26361
|
if (n.fontFamily === "texttt")
|
|
26362
26362
|
return "monospace";
|
|
@@ -26446,7 +26446,7 @@ var ni = function(t, n, r) {
|
|
|
26446
26446
|
return T8(ni(t, n, r));
|
|
26447
26447
|
}, _n = function(t, n) {
|
|
26448
26448
|
if (!t)
|
|
26449
|
-
return new
|
|
26449
|
+
return new Ve.MathNode("mrow");
|
|
26450
26450
|
if (N2[t.type]) {
|
|
26451
26451
|
var r = N2[t.type](t, n);
|
|
26452
26452
|
return r;
|
|
@@ -26455,17 +26455,17 @@ var ni = function(t, n, r) {
|
|
|
26455
26455
|
};
|
|
26456
26456
|
function tA(e, t, n, r, o) {
|
|
26457
26457
|
var i = ni(e, n), s;
|
|
26458
|
-
i.length === 1 && i[0] instanceof gi && ["mrow", "mtable"].includes(i[0].type) ? s = i[0] : s = new
|
|
26459
|
-
var a = new
|
|
26458
|
+
i.length === 1 && i[0] instanceof gi && ["mrow", "mtable"].includes(i[0].type) ? s = i[0] : s = new Ve.MathNode("mrow", i);
|
|
26459
|
+
var a = new Ve.MathNode("annotation", [new Ve.TextNode(t)]);
|
|
26460
26460
|
a.setAttribute("encoding", "application/x-tex");
|
|
26461
|
-
var l = new
|
|
26461
|
+
var l = new Ve.MathNode("semantics", [s, a]), u = new Ve.MathNode("math", [l]);
|
|
26462
26462
|
u.setAttribute("xmlns", "http://www.w3.org/1998/Math/MathML"), r && u.setAttribute("display", "block");
|
|
26463
26463
|
var c = o ? "katex" : "katex-mathml";
|
|
26464
26464
|
return _e.makeSpan([c], [u]);
|
|
26465
26465
|
}
|
|
26466
26466
|
var vU = function(t) {
|
|
26467
26467
|
return new aU({
|
|
26468
|
-
style: t.displayMode ?
|
|
26468
|
+
style: t.displayMode ? Ft.DISPLAY : Ft.TEXT,
|
|
26469
26469
|
maxSize: t.maxSize,
|
|
26470
26470
|
minRuleThickness: t.minRuleThickness
|
|
26471
26471
|
});
|
|
@@ -26536,7 +26536,7 @@ var vU = function(t) {
|
|
|
26536
26536
|
"\\cdleftarrow": "←",
|
|
26537
26537
|
"\\cdlongequal": "="
|
|
26538
26538
|
}, Kle = function(t) {
|
|
26539
|
-
var n = new
|
|
26539
|
+
var n = new Ve.MathNode("mo", [new Ve.TextNode(Gle[t.replace(/^\\/, "")])]);
|
|
26540
26540
|
return n.setAttribute("stretchy", "true"), n;
|
|
26541
26541
|
}, Xle = {
|
|
26542
26542
|
// path(s), minWidth, height, align
|
|
@@ -26699,10 +26699,10 @@ function Gy(e) {
|
|
|
26699
26699
|
}
|
|
26700
26700
|
var N8 = (e, t) => {
|
|
26701
26701
|
var n, r, o;
|
|
26702
|
-
e && e.type === "supsub" ? (r = Ut(e.base, "accent"), n = r.base, e.base = n, o = Fle(
|
|
26703
|
-
var i =
|
|
26702
|
+
e && e.type === "supsub" ? (r = Ut(e.base, "accent"), n = r.base, e.base = n, o = Fle(sn(e, t)), e.base = r) : (r = Ut(e, "accent"), n = r.base);
|
|
26703
|
+
var i = sn(n, t.havingCrampedStyle()), s = r.isShifty && an.isCharacterBox(n), a = 0;
|
|
26704
26704
|
if (s) {
|
|
26705
|
-
var l =
|
|
26705
|
+
var l = an.getBaseElem(n), u = sn(l, t.havingCrampedStyle());
|
|
26706
26706
|
a = K_(u).skew;
|
|
26707
26707
|
}
|
|
26708
26708
|
var c = r.label === "\\c", d = c ? i.height + i.depth : Math.min(i.height, t.fontMetrics().xHeight), p;
|
|
@@ -26748,7 +26748,7 @@ var N8 = (e, t) => {
|
|
|
26748
26748
|
var b = _e.makeSpan(["mord", "accent"], [p], t);
|
|
26749
26749
|
return o ? (o.children[0] = b, o.height = Math.max(b.height, o.height), o.classes[0] = "mord", o) : b;
|
|
26750
26750
|
}, wU = (e, t) => {
|
|
26751
|
-
var n = e.isStretchy ? al.mathMLnode(e.label) : new
|
|
26751
|
+
var n = e.isStretchy ? al.mathMLnode(e.label) : new Ve.MathNode("mo", [Xi(e.label, e.mode)]), r = new Ve.MathNode("mover", [_n(e.base, t), n]);
|
|
26752
26752
|
return r.setAttribute("accent", "true"), r;
|
|
26753
26753
|
}, Qle = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((e) => "\\" + e).join("|"));
|
|
26754
26754
|
st({
|
|
@@ -26814,7 +26814,7 @@ st({
|
|
|
26814
26814
|
};
|
|
26815
26815
|
},
|
|
26816
26816
|
htmlBuilder: (e, t) => {
|
|
26817
|
-
var n =
|
|
26817
|
+
var n = sn(e.base, t), r = al.svgSpan(e, t), o = e.label === "\\utilde" ? 0.12 : 0, i = _e.makeVList({
|
|
26818
26818
|
positionType: "top",
|
|
26819
26819
|
positionData: n.height,
|
|
26820
26820
|
children: [{
|
|
@@ -26832,12 +26832,12 @@ st({
|
|
|
26832
26832
|
return _e.makeSpan(["mord", "accentunder"], [i], t);
|
|
26833
26833
|
},
|
|
26834
26834
|
mathmlBuilder: (e, t) => {
|
|
26835
|
-
var n = al.mathMLnode(e.label), r = new
|
|
26835
|
+
var n = al.mathMLnode(e.label), r = new Ve.MathNode("munder", [_n(e.base, t), n]);
|
|
26836
26836
|
return r.setAttribute("accentunder", "true"), r;
|
|
26837
26837
|
}
|
|
26838
26838
|
});
|
|
26839
26839
|
var jg = (e) => {
|
|
26840
|
-
var t = new
|
|
26840
|
+
var t = new Ve.MathNode("mpadded", e ? [e] : []);
|
|
26841
26841
|
return t.setAttribute("width", "+0.6em"), t.setAttribute("lspace", "0.3em"), t;
|
|
26842
26842
|
};
|
|
26843
26843
|
st({
|
|
@@ -26892,10 +26892,10 @@ st({
|
|
|
26892
26892
|
// Flow is unable to correctly infer the type of `group`, even though it's
|
|
26893
26893
|
// unambiguously determined from the passed-in `type` above.
|
|
26894
26894
|
htmlBuilder(e, t) {
|
|
26895
|
-
var n = t.style, r = t.havingStyle(n.sup()), o = _e.wrapFragment(
|
|
26895
|
+
var n = t.style, r = t.havingStyle(n.sup()), o = _e.wrapFragment(sn(e.body, r, t), t), i = e.label.slice(0, 2) === "\\x" ? "x" : "cd";
|
|
26896
26896
|
o.classes.push(i + "-arrow-pad");
|
|
26897
26897
|
var s;
|
|
26898
|
-
e.below && (r = t.havingStyle(n.sub()), s = _e.wrapFragment(
|
|
26898
|
+
e.below && (r = t.havingStyle(n.sub()), s = _e.wrapFragment(sn(e.below, r, t), t), s.classes.push(i + "-arrow-pad"));
|
|
26899
26899
|
var a = al.svgSpan(e, t), l = -t.fontMetrics().axisHeight + 0.5 * a.height, u = -t.fontMetrics().axisHeight - 0.5 * a.height - 0.111;
|
|
26900
26900
|
(o.depth > 0.25 || e.label === "\\xleftequilibrium") && (u -= o.depth);
|
|
26901
26901
|
var c;
|
|
@@ -26940,14 +26940,14 @@ st({
|
|
|
26940
26940
|
var o = jg(_n(e.body, t));
|
|
26941
26941
|
if (e.below) {
|
|
26942
26942
|
var i = jg(_n(e.below, t));
|
|
26943
|
-
r = new
|
|
26943
|
+
r = new Ve.MathNode("munderover", [n, i, o]);
|
|
26944
26944
|
} else
|
|
26945
|
-
r = new
|
|
26945
|
+
r = new Ve.MathNode("mover", [n, o]);
|
|
26946
26946
|
} else if (e.below) {
|
|
26947
26947
|
var s = jg(_n(e.below, t));
|
|
26948
|
-
r = new
|
|
26948
|
+
r = new Ve.MathNode("munder", [n, s]);
|
|
26949
26949
|
} else
|
|
26950
|
-
r = jg(), r = new
|
|
26950
|
+
r = jg(), r = new Ve.MathNode("mover", [n, r]);
|
|
26951
26951
|
return r;
|
|
26952
26952
|
}
|
|
26953
26953
|
});
|
|
@@ -26958,7 +26958,7 @@ function DU(e, t) {
|
|
|
26958
26958
|
}
|
|
26959
26959
|
function kU(e, t) {
|
|
26960
26960
|
var n, r = ni(e.body, t);
|
|
26961
|
-
return e.mclass === "minner" ? n = new
|
|
26961
|
+
return e.mclass === "minner" ? n = new Ve.MathNode("mpadded", r) : e.mclass === "mord" ? e.isCharacterBox ? (n = r[0], n.type = "mi") : n = new Ve.MathNode("mi", r) : (e.isCharacterBox ? (n = r[0], n.type = "mo") : n = new Ve.MathNode("mo", r), e.mclass === "mbin" ? (n.attributes.lspace = "0.22em", n.attributes.rspace = "0.22em") : e.mclass === "mpunct" ? (n.attributes.lspace = "0em", n.attributes.rspace = "0.17em") : e.mclass === "mopen" || e.mclass === "mclose" ? (n.attributes.lspace = "0em", n.attributes.rspace = "0em") : e.mclass === "minner" && (n.attributes.lspace = "0.0556em", n.attributes.width = "+0.1111em")), n;
|
|
26962
26962
|
}
|
|
26963
26963
|
st({
|
|
26964
26964
|
type: "mclass",
|
|
@@ -26978,7 +26978,7 @@ st({
|
|
|
26978
26978
|
mclass: "m" + r.slice(5),
|
|
26979
26979
|
// TODO(kevinb): don't prefix with 'm'
|
|
26980
26980
|
body: Zn(o),
|
|
26981
|
-
isCharacterBox:
|
|
26981
|
+
isCharacterBox: an.isCharacterBox(o)
|
|
26982
26982
|
};
|
|
26983
26983
|
},
|
|
26984
26984
|
htmlBuilder: DU,
|
|
@@ -27003,7 +27003,7 @@ st({
|
|
|
27003
27003
|
mode: n.mode,
|
|
27004
27004
|
mclass: Ky(t[0]),
|
|
27005
27005
|
body: Zn(t[1]),
|
|
27006
|
-
isCharacterBox:
|
|
27006
|
+
isCharacterBox: an.isCharacterBox(t[1])
|
|
27007
27007
|
};
|
|
27008
27008
|
}
|
|
27009
27009
|
});
|
|
@@ -27040,7 +27040,7 @@ st({
|
|
|
27040
27040
|
mode: n.mode,
|
|
27041
27041
|
mclass: s,
|
|
27042
27042
|
body: [l],
|
|
27043
|
-
isCharacterBox:
|
|
27043
|
+
isCharacterBox: an.isCharacterBox(l)
|
|
27044
27044
|
};
|
|
27045
27045
|
},
|
|
27046
27046
|
htmlBuilder: DU,
|
|
@@ -27069,7 +27069,7 @@ st({
|
|
|
27069
27069
|
return r.style.textShadow = "0.02em 0.01em 0.04px", r;
|
|
27070
27070
|
},
|
|
27071
27071
|
mathmlBuilder(e, t) {
|
|
27072
|
-
var n = ni(e.body, t), r = new
|
|
27072
|
+
var n = ni(e.body, t), r = new Ve.MathNode("mstyle", n);
|
|
27073
27073
|
return r.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), r;
|
|
27074
27074
|
}
|
|
27075
27075
|
});
|
|
@@ -27220,12 +27220,12 @@ st({
|
|
|
27220
27220
|
};
|
|
27221
27221
|
},
|
|
27222
27222
|
htmlBuilder(e, t) {
|
|
27223
|
-
var n = t.havingStyle(t.style.sup()), r = _e.wrapFragment(
|
|
27223
|
+
var n = t.havingStyle(t.style.sup()), r = _e.wrapFragment(sn(e.label, n, t), t);
|
|
27224
27224
|
return r.classes.push("cd-label-" + e.side), r.style.bottom = Je(0.8 - r.depth), r.height = 0, r.depth = 0, r;
|
|
27225
27225
|
},
|
|
27226
27226
|
mathmlBuilder(e, t) {
|
|
27227
|
-
var n = new
|
|
27228
|
-
return n = new
|
|
27227
|
+
var n = new Ve.MathNode("mrow", [_n(e.label, t)]);
|
|
27228
|
+
return n = new Ve.MathNode("mpadded", [n]), n.setAttribute("width", "0"), e.side === "left" && n.setAttribute("lspace", "-1width"), n.setAttribute("voffset", "0.7em"), n = new Ve.MathNode("mstyle", [n]), n.setAttribute("displaystyle", "false"), n.setAttribute("scriptlevel", "1"), n;
|
|
27229
27229
|
}
|
|
27230
27230
|
});
|
|
27231
27231
|
st({
|
|
@@ -27245,11 +27245,11 @@ st({
|
|
|
27245
27245
|
};
|
|
27246
27246
|
},
|
|
27247
27247
|
htmlBuilder(e, t) {
|
|
27248
|
-
var n = _e.wrapFragment(
|
|
27248
|
+
var n = _e.wrapFragment(sn(e.fragment, t), t);
|
|
27249
27249
|
return n.classes.push("cd-vert-arrow"), n;
|
|
27250
27250
|
},
|
|
27251
27251
|
mathmlBuilder(e, t) {
|
|
27252
|
-
return new
|
|
27252
|
+
return new Ve.MathNode("mrow", [_n(e.fragment, t)]);
|
|
27253
27253
|
}
|
|
27254
27254
|
});
|
|
27255
27255
|
st({
|
|
@@ -27282,7 +27282,7 @@ var EU = (e, t) => {
|
|
|
27282
27282
|
var n = br(e.body, t.withColor(e.color), !1);
|
|
27283
27283
|
return _e.makeFragment(n);
|
|
27284
27284
|
}, CU = (e, t) => {
|
|
27285
|
-
var n = ni(e.body, t.withColor(e.color)), r = new
|
|
27285
|
+
var n = ni(e.body, t.withColor(e.color)), r = new Ve.MathNode("mstyle", n);
|
|
27286
27286
|
return r.setAttribute("mathcolor", e.color), r;
|
|
27287
27287
|
};
|
|
27288
27288
|
st({
|
|
@@ -27358,7 +27358,7 @@ st({
|
|
|
27358
27358
|
return e.newLine && (n.classes.push("newline"), e.size && (n.style.marginTop = Je(zn(e.size, t)))), n;
|
|
27359
27359
|
},
|
|
27360
27360
|
mathmlBuilder(e, t) {
|
|
27361
|
-
var n = new
|
|
27361
|
+
var n = new Ve.MathNode("mspace");
|
|
27362
27362
|
return e.newLine && (n.setAttribute("linebreak", "newline"), e.size && n.setAttribute("height", Je(zn(e.size, t)))), n;
|
|
27363
27363
|
}
|
|
27364
27364
|
});
|
|
@@ -27522,8 +27522,8 @@ var p0 = function(t, n, r) {
|
|
|
27522
27522
|
}, aue = function(t, n, r, o) {
|
|
27523
27523
|
return _e.makeSymbol(t, "Size" + n + "-Regular", r, o);
|
|
27524
27524
|
}, TU = function(t, n, r, o, i, s) {
|
|
27525
|
-
var a = aue(t, n, i, o), l = M8(_e.makeSpan(["delimsizing", "size" + n], [a], o),
|
|
27526
|
-
return r && SU(l, o,
|
|
27525
|
+
var a = aue(t, n, i, o), l = M8(_e.makeSpan(["delimsizing", "size" + n], [a], o), Ft.TEXT, o, s);
|
|
27526
|
+
return r && SU(l, o, Ft.TEXT), l;
|
|
27527
27527
|
}, gv = function(t, n, r) {
|
|
27528
27528
|
var o;
|
|
27529
27529
|
n === "Size1-Regular" ? o = "delim-size1" : o = "delim-size4";
|
|
@@ -27581,12 +27581,12 @@ var p0 = function(t, n, r) {
|
|
|
27581
27581
|
}
|
|
27582
27582
|
_.push(Bg), _.push(gv(a, h, i));
|
|
27583
27583
|
}
|
|
27584
|
-
var re = o.havingBaseStyle(
|
|
27584
|
+
var re = o.havingBaseStyle(Ft.TEXT), le = _e.makeVList({
|
|
27585
27585
|
positionType: "bottom",
|
|
27586
27586
|
positionData: T,
|
|
27587
27587
|
children: _
|
|
27588
27588
|
}, re);
|
|
27589
|
-
return M8(_e.makeSpan(["delimsizing", "mult"], [le], re),
|
|
27589
|
+
return M8(_e.makeSpan(["delimsizing", "mult"], [le], re), Ft.TEXT, o, s);
|
|
27590
27590
|
}, bv = 80, yv = 0.08, xv = function(t, n, r, o, i) {
|
|
27591
27591
|
var s = dle(t, o, r), a = new Cu(t, s), l = new il([a], {
|
|
27592
27592
|
// Note: 1000:1 ratio of viewBox to document em width.
|
|
@@ -27615,13 +27615,13 @@ var p0 = function(t, n, r) {
|
|
|
27615
27615
|
throw new Xe("Illegal delimiter: '" + t + "'");
|
|
27616
27616
|
}, hue = [{
|
|
27617
27617
|
type: "small",
|
|
27618
|
-
style:
|
|
27618
|
+
style: Ft.SCRIPTSCRIPT
|
|
27619
27619
|
}, {
|
|
27620
27620
|
type: "small",
|
|
27621
|
-
style:
|
|
27621
|
+
style: Ft.SCRIPT
|
|
27622
27622
|
}, {
|
|
27623
27623
|
type: "small",
|
|
27624
|
-
style:
|
|
27624
|
+
style: Ft.TEXT
|
|
27625
27625
|
}, {
|
|
27626
27626
|
type: "large",
|
|
27627
27627
|
size: 1
|
|
@@ -27636,24 +27636,24 @@ var p0 = function(t, n, r) {
|
|
|
27636
27636
|
size: 4
|
|
27637
27637
|
}], fue = [{
|
|
27638
27638
|
type: "small",
|
|
27639
|
-
style:
|
|
27639
|
+
style: Ft.SCRIPTSCRIPT
|
|
27640
27640
|
}, {
|
|
27641
27641
|
type: "small",
|
|
27642
|
-
style:
|
|
27642
|
+
style: Ft.SCRIPT
|
|
27643
27643
|
}, {
|
|
27644
27644
|
type: "small",
|
|
27645
|
-
style:
|
|
27645
|
+
style: Ft.TEXT
|
|
27646
27646
|
}, {
|
|
27647
27647
|
type: "stack"
|
|
27648
27648
|
}], MU = [{
|
|
27649
27649
|
type: "small",
|
|
27650
|
-
style:
|
|
27650
|
+
style: Ft.SCRIPTSCRIPT
|
|
27651
27651
|
}, {
|
|
27652
27652
|
type: "small",
|
|
27653
|
-
style:
|
|
27653
|
+
style: Ft.SCRIPT
|
|
27654
27654
|
}, {
|
|
27655
27655
|
type: "small",
|
|
27656
|
-
style:
|
|
27656
|
+
style: Ft.TEXT
|
|
27657
27657
|
}, {
|
|
27658
27658
|
type: "large",
|
|
27659
27659
|
size: 1
|
|
@@ -27807,7 +27807,7 @@ st({
|
|
|
27807
27807
|
mathmlBuilder: (e) => {
|
|
27808
27808
|
var t = [];
|
|
27809
27809
|
e.delim !== "." && t.push(Xi(e.delim, e.mode));
|
|
27810
|
-
var n = new
|
|
27810
|
+
var n = new Ve.MathNode("mo", t);
|
|
27811
27811
|
e.mclass === "mopen" || e.mclass === "mclose" ? n.setAttribute("fence", "true") : n.setAttribute("fence", "false"), n.setAttribute("stretchy", "true");
|
|
27812
27812
|
var r = Je(el.sizeToMaxHeight[e.size]);
|
|
27813
27813
|
return n.setAttribute("minsize", r), n.setAttribute("maxsize", r), n;
|
|
@@ -27883,11 +27883,11 @@ st({
|
|
|
27883
27883
|
iA(e);
|
|
27884
27884
|
var n = ni(e.body, t);
|
|
27885
27885
|
if (e.left !== ".") {
|
|
27886
|
-
var r = new
|
|
27886
|
+
var r = new Ve.MathNode("mo", [Xi(e.left, e.mode)]);
|
|
27887
27887
|
r.setAttribute("fence", "true"), n.unshift(r);
|
|
27888
27888
|
}
|
|
27889
27889
|
if (e.right !== ".") {
|
|
27890
|
-
var o = new
|
|
27890
|
+
var o = new Ve.MathNode("mo", [Xi(e.right, e.mode)]);
|
|
27891
27891
|
o.setAttribute("fence", "true"), e.rightColor && o.setAttribute("mathcolor", e.rightColor), n.push(o);
|
|
27892
27892
|
}
|
|
27893
27893
|
return T8(n);
|
|
@@ -27925,12 +27925,12 @@ st({
|
|
|
27925
27925
|
return n;
|
|
27926
27926
|
},
|
|
27927
27927
|
mathmlBuilder: (e, t) => {
|
|
27928
|
-
var n = e.delim === "\\vert" || e.delim === "|" ? Xi("|", "text") : Xi(e.delim, e.mode), r = new
|
|
27928
|
+
var n = e.delim === "\\vert" || e.delim === "|" ? Xi("|", "text") : Xi(e.delim, e.mode), r = new Ve.MathNode("mo", [n]);
|
|
27929
27929
|
return r.setAttribute("fence", "true"), r.setAttribute("lspace", "0.05em"), r.setAttribute("rspace", "0.05em"), r;
|
|
27930
27930
|
}
|
|
27931
27931
|
});
|
|
27932
27932
|
var O8 = (e, t) => {
|
|
27933
|
-
var n = _e.wrapFragment(
|
|
27933
|
+
var n = _e.wrapFragment(sn(e.body, t), t), r = e.label.slice(1), o = t.sizeMultiplier, i, s = 0, a = an.isCharacterBox(e.body);
|
|
27934
27934
|
if (r === "sout")
|
|
27935
27935
|
i = _e.makeSpan(["stretchy", "sout"]), i.height = t.fontMetrics().defaultRuleThickness / o, s = -0.5 * t.fontMetrics().xHeight;
|
|
27936
27936
|
else if (r === "phase") {
|
|
@@ -28001,7 +28001,7 @@ var O8 = (e, t) => {
|
|
|
28001
28001
|
}
|
|
28002
28002
|
return /cancel/.test(r) && (y.height = n.height, y.depth = n.depth), /cancel/.test(r) && !a ? _e.makeSpan(["mord", "cancel-lap"], [y], t) : _e.makeSpan(["mord"], [y], t);
|
|
28003
28003
|
}, R8 = (e, t) => {
|
|
28004
|
-
var n = 0, r = new
|
|
28004
|
+
var n = 0, r = new Ve.MathNode(e.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [_n(e.body, t)]);
|
|
28005
28005
|
switch (e.label) {
|
|
28006
28006
|
case "\\cancel":
|
|
28007
28007
|
r.setAttribute("notation", "updiagonalstrike");
|
|
@@ -28273,7 +28273,7 @@ var ya = function(t, n) {
|
|
|
28273
28273
|
// User override.
|
|
28274
28274
|
), d = 1 / n.fontMetrics().ptPerEm, p = 5 * d;
|
|
28275
28275
|
if (t.colSeparationType && t.colSeparationType === "small") {
|
|
28276
|
-
var h = n.havingStyle(
|
|
28276
|
+
var h = n.havingStyle(Ft.SCRIPT).sizeMultiplier;
|
|
28277
28277
|
p = 0.2778 * (h / n.sizeMultiplier);
|
|
28278
28278
|
}
|
|
28279
28279
|
var f = t.colSeparationType === "CD" ? zn({
|
|
@@ -28292,7 +28292,7 @@ var ya = function(t, n) {
|
|
|
28292
28292
|
a < k.length && (a = k.length);
|
|
28293
28293
|
var C = new Array(k.length);
|
|
28294
28294
|
for (o = 0; o < k.length; ++o) {
|
|
28295
|
-
var A =
|
|
28295
|
+
var A = sn(k[o], n);
|
|
28296
28296
|
D < A.depth && (D = A.depth), w < A.height && (w = A.height), C[o] = A;
|
|
28297
28297
|
}
|
|
28298
28298
|
var R = t.rowGaps[r], T = 0;
|
|
@@ -28327,7 +28327,7 @@ var ya = function(t, n) {
|
|
|
28327
28327
|
}
|
|
28328
28328
|
if (!(o >= a)) {
|
|
28329
28329
|
var Q = void 0;
|
|
28330
|
-
(o > 0 || t.hskipBeforeAndAfter) && (Q =
|
|
28330
|
+
(o > 0 || t.hskipBeforeAndAfter) && (Q = an.deflt($.pregap, p), Q !== 0 && (M = _e.makeSpan(["arraycolsep"], []), M.style.width = Je(Q), E.push(M)));
|
|
28331
28331
|
var Y = [];
|
|
28332
28332
|
for (r = 0; r < i; ++r) {
|
|
28333
28333
|
var oe = l[r], S = oe[o];
|
|
@@ -28343,7 +28343,7 @@ var ya = function(t, n) {
|
|
|
28343
28343
|
Y = _e.makeVList({
|
|
28344
28344
|
positionType: "individualShift",
|
|
28345
28345
|
children: Y
|
|
28346
|
-
}, n), Y = _e.makeSpan(["col-align-" + ($.align || "c")], [Y]), E.push(Y), (o < a - 1 || t.hskipBeforeAndAfter) && (Q =
|
|
28346
|
+
}, n), Y = _e.makeSpan(["col-align-" + ($.align || "c")], [Y]), E.push(Y), (o < a - 1 || t.hskipBeforeAndAfter) && (Q = an.deflt($.postgap, p), Q !== 0 && (M = _e.makeSpan(["arraycolsep"], []), M.style.width = Je(Q), E.push(M)));
|
|
28347
28347
|
}
|
|
28348
28348
|
}
|
|
28349
28349
|
if (l = _e.makeSpan(["mtable"], E), u.length > 0) {
|
|
@@ -28380,12 +28380,12 @@ var ya = function(t, n) {
|
|
|
28380
28380
|
l: "left ",
|
|
28381
28381
|
r: "right "
|
|
28382
28382
|
}, xa = function(t, n) {
|
|
28383
|
-
for (var r = [], o = new
|
|
28383
|
+
for (var r = [], o = new Ve.MathNode("mtd", [], ["mtr-glue"]), i = new Ve.MathNode("mtd", [], ["mml-eqn-num"]), s = 0; s < t.body.length; s++) {
|
|
28384
28384
|
for (var a = t.body[s], l = [], u = 0; u < a.length; u++)
|
|
28385
|
-
l.push(new
|
|
28386
|
-
t.tags && t.tags[s] && (l.unshift(o), l.push(o), t.leqno ? l.unshift(i) : l.push(i)), r.push(new
|
|
28385
|
+
l.push(new Ve.MathNode("mtd", [_n(a[u], n)]));
|
|
28386
|
+
t.tags && t.tags[s] && (l.unshift(o), l.push(o), t.leqno ? l.unshift(i) : l.push(i)), r.push(new Ve.MathNode("mtr", l));
|
|
28387
28387
|
}
|
|
28388
|
-
var c = new
|
|
28388
|
+
var c = new Ve.MathNode("mtable", r), d = t.arraystretch === 0.5 ? 0.1 : 0.16 + t.arraystretch - 1 + (t.addJot ? 0.09 : 0);
|
|
28389
28389
|
c.setAttribute("rowspacing", Je(d));
|
|
28390
28390
|
var p = "", h = "";
|
|
28391
28391
|
if (t.cols && t.cols.length > 0) {
|
|
@@ -28404,7 +28404,7 @@ var ya = function(t, n) {
|
|
|
28404
28404
|
p += C[0].length > 0 ? "left " : "", p += C[C.length - 1].length > 0 ? "right " : "";
|
|
28405
28405
|
for (var A = 1; A < C.length - 1; A++)
|
|
28406
28406
|
D += C[A].length === 0 ? "none " : C[A][0] ? "dashed " : "solid ";
|
|
28407
|
-
return /[sd]/.test(D) && c.setAttribute("rowlines", D.trim()), p !== "" && (c = new
|
|
28407
|
+
return /[sd]/.test(D) && c.setAttribute("rowlines", D.trim()), p !== "" && (c = new Ve.MathNode("menclose", [c]), c.setAttribute("notation", p.trim())), t.arraystretch && t.arraystretch < 1 && (c = new Ve.MathNode("mstyle", [c]), c.setAttribute("scriptlevel", "1")), c;
|
|
28408
28408
|
}, UU = function(t, n) {
|
|
28409
28409
|
t.envName.indexOf("ed") === -1 && Yy(t);
|
|
28410
28410
|
var r = [], o = t.envName.indexOf("at") > -1 ? "alignat" : "align", i = t.envName === "split", s = zu(t.parser, {
|
|
@@ -28755,7 +28755,7 @@ st({
|
|
|
28755
28755
|
});
|
|
28756
28756
|
var PU = (e, t) => {
|
|
28757
28757
|
var n = e.font, r = t.withFont(n);
|
|
28758
|
-
return
|
|
28758
|
+
return sn(e.body, r);
|
|
28759
28759
|
}, zU = (e, t) => {
|
|
28760
28760
|
var n = e.font, r = t.withFont(n);
|
|
28761
28761
|
return _n(e.body, r);
|
|
@@ -28814,7 +28814,7 @@ st({
|
|
|
28814
28814
|
handler: (e, t) => {
|
|
28815
28815
|
var {
|
|
28816
28816
|
parser: n
|
|
28817
|
-
} = e, r = t[0], o =
|
|
28817
|
+
} = e, r = t[0], o = an.isCharacterBox(r);
|
|
28818
28818
|
return {
|
|
28819
28819
|
type: "mclass",
|
|
28820
28820
|
mode: n.mode,
|
|
@@ -28860,20 +28860,20 @@ st({
|
|
|
28860
28860
|
});
|
|
28861
28861
|
var $U = (e, t) => {
|
|
28862
28862
|
var n = t;
|
|
28863
|
-
return e === "display" ? n = n.id >=
|
|
28863
|
+
return e === "display" ? n = n.id >= Ft.SCRIPT.id ? n.text() : Ft.DISPLAY : e === "text" && n.size === Ft.DISPLAY.size ? n = Ft.TEXT : e === "script" ? n = Ft.SCRIPT : e === "scriptscript" && (n = Ft.SCRIPTSCRIPT), n;
|
|
28864
28864
|
}, U8 = (e, t) => {
|
|
28865
28865
|
var n = $U(e.size, t.style), r = n.fracNum(), o = n.fracDen(), i;
|
|
28866
28866
|
i = t.havingStyle(r);
|
|
28867
|
-
var s =
|
|
28867
|
+
var s = sn(e.numer, i, t);
|
|
28868
28868
|
if (e.continued) {
|
|
28869
28869
|
var a = 8.5 / t.fontMetrics().ptPerEm, l = 3.5 / t.fontMetrics().ptPerEm;
|
|
28870
28870
|
s.height = s.height < a ? a : s.height, s.depth = s.depth < l ? l : s.depth;
|
|
28871
28871
|
}
|
|
28872
28872
|
i = t.havingStyle(o);
|
|
28873
|
-
var u =
|
|
28873
|
+
var u = sn(e.denom, i, t), c, d, p;
|
|
28874
28874
|
e.hasBarLine ? (e.barSize ? (d = zn(e.barSize, t), c = _e.makeLineSpan("frac-line", t, d)) : c = _e.makeLineSpan("frac-line", t), d = c.height, p = c.height) : (c = null, d = 0, p = t.fontMetrics().defaultRuleThickness);
|
|
28875
28875
|
var h, f, g;
|
|
28876
|
-
n.size ===
|
|
28876
|
+
n.size === Ft.DISPLAY.size || e.size === "display" ? (h = t.fontMetrics().num1, d > 0 ? f = 3 * p : f = 7 * p, g = t.fontMetrics().denom1) : (d > 0 ? (h = t.fontMetrics().num2, f = p) : (h = t.fontMetrics().num3, f = 3 * p), g = t.fontMetrics().denom2);
|
|
28877
28877
|
var m;
|
|
28878
28878
|
if (c) {
|
|
28879
28879
|
var y = t.fontMetrics().axisHeight;
|
|
@@ -28912,11 +28912,11 @@ var $U = (e, t) => {
|
|
|
28912
28912
|
}
|
|
28913
28913
|
i = t.havingStyle(n), m.height *= i.sizeMultiplier / t.sizeMultiplier, m.depth *= i.sizeMultiplier / t.sizeMultiplier;
|
|
28914
28914
|
var v;
|
|
28915
|
-
n.size ===
|
|
28915
|
+
n.size === Ft.DISPLAY.size ? v = t.fontMetrics().delim1 : n.size === Ft.SCRIPTSCRIPT.size ? v = t.havingStyle(Ft.SCRIPT).fontMetrics().delim2 : v = t.fontMetrics().delim2;
|
|
28916
28916
|
var k, w;
|
|
28917
28917
|
return e.leftDelim == null ? k = kf(t, ["mopen"]) : k = el.customSizedDelim(e.leftDelim, v, !0, t.havingStyle(n), e.mode, ["mopen"]), e.continued ? w = _e.makeSpan([]) : e.rightDelim == null ? w = kf(t, ["mclose"]) : w = el.customSizedDelim(e.rightDelim, v, !0, t.havingStyle(n), e.mode, ["mclose"]), _e.makeSpan(["mord"].concat(i.sizingClasses(t)), [k, _e.makeSpan(["mfrac"], [m]), w], t);
|
|
28918
28918
|
}, P8 = (e, t) => {
|
|
28919
|
-
var n = new
|
|
28919
|
+
var n = new Ve.MathNode("mfrac", [_n(e.numer, t), _n(e.denom, t)]);
|
|
28920
28920
|
if (!e.hasBarLine)
|
|
28921
28921
|
n.setAttribute("linethickness", "0px");
|
|
28922
28922
|
else if (e.barSize) {
|
|
@@ -28925,18 +28925,18 @@ var $U = (e, t) => {
|
|
|
28925
28925
|
}
|
|
28926
28926
|
var o = $U(e.size, t.style);
|
|
28927
28927
|
if (o.size !== t.style.size) {
|
|
28928
|
-
n = new
|
|
28929
|
-
var i = o.size ===
|
|
28928
|
+
n = new Ve.MathNode("mstyle", [n]);
|
|
28929
|
+
var i = o.size === Ft.DISPLAY.size ? "true" : "false";
|
|
28930
28930
|
n.setAttribute("displaystyle", i), n.setAttribute("scriptlevel", "0");
|
|
28931
28931
|
}
|
|
28932
28932
|
if (e.leftDelim != null || e.rightDelim != null) {
|
|
28933
28933
|
var s = [];
|
|
28934
28934
|
if (e.leftDelim != null) {
|
|
28935
|
-
var a = new
|
|
28935
|
+
var a = new Ve.MathNode("mo", [new Ve.TextNode(e.leftDelim.replace("\\", ""))]);
|
|
28936
28936
|
a.setAttribute("fence", "true"), s.push(a);
|
|
28937
28937
|
}
|
|
28938
28938
|
if (s.push(n), e.rightDelim != null) {
|
|
28939
|
-
var l = new
|
|
28939
|
+
var l = new Ve.MathNode("mo", [new Ve.TextNode(e.rightDelim.replace("\\", ""))]);
|
|
28940
28940
|
l.setAttribute("fence", "true"), s.push(l);
|
|
28941
28941
|
}
|
|
28942
28942
|
return T8(s);
|
|
@@ -29175,8 +29175,8 @@ st({
|
|
|
29175
29175
|
});
|
|
29176
29176
|
var HU = (e, t) => {
|
|
29177
29177
|
var n = t.style, r, o;
|
|
29178
|
-
e.type === "supsub" ? (r = e.sup ?
|
|
29179
|
-
var i =
|
|
29178
|
+
e.type === "supsub" ? (r = e.sup ? sn(e.sup, t.havingStyle(n.sup()), t) : sn(e.sub, t.havingStyle(n.sub()), t), o = Ut(e.base, "horizBrace")) : o = Ut(e, "horizBrace");
|
|
29179
|
+
var i = sn(o.base, t.havingBaseStyle(Ft.DISPLAY)), s = al.svgSpan(o, t), a;
|
|
29180
29180
|
if (o.isOver ? (a = _e.makeVList({
|
|
29181
29181
|
positionType: "firstBaseline",
|
|
29182
29182
|
children: [{
|
|
@@ -29234,7 +29234,7 @@ var HU = (e, t) => {
|
|
|
29234
29234
|
return _e.makeSpan(["mord", o.isOver ? "mover" : "munder"], [a], t);
|
|
29235
29235
|
}, xue = (e, t) => {
|
|
29236
29236
|
var n = al.mathMLnode(e.label);
|
|
29237
|
-
return new
|
|
29237
|
+
return new Ve.MathNode(e.isOver ? "mover" : "munder", [_n(e.base, t), n]);
|
|
29238
29238
|
};
|
|
29239
29239
|
st({
|
|
29240
29240
|
type: "horizBrace",
|
|
@@ -29352,7 +29352,7 @@ st({
|
|
|
29352
29352
|
return _e.makeFragment(n);
|
|
29353
29353
|
},
|
|
29354
29354
|
mathmlBuilder(e, t) {
|
|
29355
|
-
return new
|
|
29355
|
+
return new Ve.MathNode("mrow", ni(e.body, t));
|
|
29356
29356
|
}
|
|
29357
29357
|
});
|
|
29358
29358
|
st({
|
|
@@ -29537,7 +29537,7 @@ st({
|
|
|
29537
29537
|
return s.height = n, s.depth = r, s;
|
|
29538
29538
|
},
|
|
29539
29539
|
mathmlBuilder: (e, t) => {
|
|
29540
|
-
var n = new
|
|
29540
|
+
var n = new Ve.MathNode("mglyph", []);
|
|
29541
29541
|
n.setAttribute("alt", e.alt);
|
|
29542
29542
|
var r = zn(e.height, t), o = 0;
|
|
29543
29543
|
if (e.totalheight.number > 0 && (o = zn(e.totalheight, t) - r, n.setAttribute("valign", Je(-o))), n.setAttribute("height", Je(r + o)), e.width.number > 0) {
|
|
@@ -29576,7 +29576,7 @@ st({
|
|
|
29576
29576
|
},
|
|
29577
29577
|
mathmlBuilder(e, t) {
|
|
29578
29578
|
var n = zn(e.dimension, t);
|
|
29579
|
-
return new
|
|
29579
|
+
return new Ve.SpaceNode(n);
|
|
29580
29580
|
}
|
|
29581
29581
|
});
|
|
29582
29582
|
st({
|
|
@@ -29600,12 +29600,12 @@ st({
|
|
|
29600
29600
|
},
|
|
29601
29601
|
htmlBuilder: (e, t) => {
|
|
29602
29602
|
var n;
|
|
29603
|
-
e.alignment === "clap" ? (n = _e.makeSpan([], [
|
|
29603
|
+
e.alignment === "clap" ? (n = _e.makeSpan([], [sn(e.body, t)]), n = _e.makeSpan(["inner"], [n], t)) : n = _e.makeSpan(["inner"], [sn(e.body, t)]);
|
|
29604
29604
|
var r = _e.makeSpan(["fix"], []), o = _e.makeSpan([e.alignment], [n, r], t), i = _e.makeSpan(["strut"]);
|
|
29605
29605
|
return i.style.height = Je(o.height + o.depth), o.depth && (i.style.verticalAlign = Je(-o.depth)), o.children.unshift(i), o = _e.makeSpan(["thinbox"], [o], t), _e.makeSpan(["mord", "vbox"], [o], t);
|
|
29606
29606
|
},
|
|
29607
29607
|
mathmlBuilder: (e, t) => {
|
|
29608
|
-
var n = new
|
|
29608
|
+
var n = new Ve.MathNode("mpadded", [_n(e.body, t)]);
|
|
29609
29609
|
if (e.alignment !== "rlap") {
|
|
29610
29610
|
var r = e.alignment === "llap" ? "-1" : "-0.5";
|
|
29611
29611
|
n.setAttribute("lspace", r + "width");
|
|
@@ -29651,13 +29651,13 @@ st({
|
|
|
29651
29651
|
});
|
|
29652
29652
|
var dA = (e, t) => {
|
|
29653
29653
|
switch (t.style.size) {
|
|
29654
|
-
case
|
|
29654
|
+
case Ft.DISPLAY.size:
|
|
29655
29655
|
return e.display;
|
|
29656
|
-
case
|
|
29656
|
+
case Ft.TEXT.size:
|
|
29657
29657
|
return e.text;
|
|
29658
|
-
case
|
|
29658
|
+
case Ft.SCRIPT.size:
|
|
29659
29659
|
return e.script;
|
|
29660
|
-
case
|
|
29660
|
+
case Ft.SCRIPTSCRIPT.size:
|
|
29661
29661
|
return e.scriptscript;
|
|
29662
29662
|
default:
|
|
29663
29663
|
return e.text;
|
|
@@ -29694,16 +29694,16 @@ st({
|
|
|
29694
29694
|
});
|
|
29695
29695
|
var WU = (e, t, n, r, o, i, s) => {
|
|
29696
29696
|
e = _e.makeSpan([], [e]);
|
|
29697
|
-
var a = n &&
|
|
29697
|
+
var a = n && an.isCharacterBox(n), l, u;
|
|
29698
29698
|
if (t) {
|
|
29699
|
-
var c =
|
|
29699
|
+
var c = sn(t, r.havingStyle(o.sup()), r);
|
|
29700
29700
|
u = {
|
|
29701
29701
|
elem: c,
|
|
29702
29702
|
kern: Math.max(r.fontMetrics().bigOpSpacing1, r.fontMetrics().bigOpSpacing3 - c.depth)
|
|
29703
29703
|
};
|
|
29704
29704
|
}
|
|
29705
29705
|
if (n) {
|
|
29706
|
-
var d =
|
|
29706
|
+
var d = sn(n, r.havingStyle(o.sub()), r);
|
|
29707
29707
|
l = {
|
|
29708
29708
|
elem: d,
|
|
29709
29709
|
kern: Math.max(r.fontMetrics().bigOpSpacing2, r.fontMetrics().bigOpSpacing4 - d.height)
|
|
@@ -29792,7 +29792,7 @@ var WU = (e, t, n, r, o, i, s) => {
|
|
|
29792
29792
|
var n, r, o = !1, i;
|
|
29793
29793
|
e.type === "supsub" ? (n = e.sup, r = e.sub, i = Ut(e.base, "op"), o = !0) : i = Ut(e, "op");
|
|
29794
29794
|
var s = t.style, a = !1;
|
|
29795
|
-
s.size ===
|
|
29795
|
+
s.size === Ft.DISPLAY.size && i.symbol && !qU.includes(i.name) && (a = !0);
|
|
29796
29796
|
var l;
|
|
29797
29797
|
if (i.symbol) {
|
|
29798
29798
|
var u = a ? "Size2-Regular" : "Size1-Regular", c = "";
|
|
@@ -29993,7 +29993,7 @@ var VU = (e, t) => {
|
|
|
29993
29993
|
}, wue = (e, t) => {
|
|
29994
29994
|
for (var n = ni(e.body, t.withFont("mathrm")), r = !0, o = 0; o < n.length; o++) {
|
|
29995
29995
|
var i = n[o];
|
|
29996
|
-
if (!(i instanceof
|
|
29996
|
+
if (!(i instanceof Ve.SpaceNode)) if (i instanceof Ve.MathNode)
|
|
29997
29997
|
switch (i.type) {
|
|
29998
29998
|
case "mi":
|
|
29999
29999
|
case "mn":
|
|
@@ -30003,7 +30003,7 @@ var VU = (e, t) => {
|
|
|
30003
30003
|
break;
|
|
30004
30004
|
case "mo": {
|
|
30005
30005
|
var s = i.children[0];
|
|
30006
|
-
i.children.length === 1 && s instanceof
|
|
30006
|
+
i.children.length === 1 && s instanceof Ve.TextNode ? s.text = s.text.replace(/\u2212/, "-").replace(/\u2217/, "*") : r = !1;
|
|
30007
30007
|
break;
|
|
30008
30008
|
}
|
|
30009
30009
|
default:
|
|
@@ -30014,12 +30014,12 @@ var VU = (e, t) => {
|
|
|
30014
30014
|
}
|
|
30015
30015
|
if (r) {
|
|
30016
30016
|
var a = n.map((c) => c.toText()).join("");
|
|
30017
|
-
n = [new
|
|
30017
|
+
n = [new Ve.TextNode(a)];
|
|
30018
30018
|
}
|
|
30019
|
-
var l = new
|
|
30019
|
+
var l = new Ve.MathNode("mi", n);
|
|
30020
30020
|
l.setAttribute("mathvariant", "normal");
|
|
30021
|
-
var u = new
|
|
30022
|
-
return e.parentIsSupSub ? new
|
|
30021
|
+
var u = new Ve.MathNode("mo", [Xi("", "text")]);
|
|
30022
|
+
return e.parentIsSupSub ? new Ve.MathNode("mrow", [l, u]) : Ve.newDocumentFragment([l, u]);
|
|
30023
30023
|
};
|
|
30024
30024
|
st({
|
|
30025
30025
|
type: "operatorname",
|
|
@@ -30071,7 +30071,7 @@ st({
|
|
|
30071
30071
|
};
|
|
30072
30072
|
},
|
|
30073
30073
|
htmlBuilder(e, t) {
|
|
30074
|
-
var n =
|
|
30074
|
+
var n = sn(e.body, t.havingCrampedStyle()), r = _e.makeLineSpan("overline-line", t), o = t.fontMetrics().defaultRuleThickness, i = _e.makeVList({
|
|
30075
30075
|
positionType: "firstBaseline",
|
|
30076
30076
|
children: [{
|
|
30077
30077
|
type: "elem",
|
|
@@ -30090,9 +30090,9 @@ st({
|
|
|
30090
30090
|
return _e.makeSpan(["mord", "overline"], [i], t);
|
|
30091
30091
|
},
|
|
30092
30092
|
mathmlBuilder(e, t) {
|
|
30093
|
-
var n = new
|
|
30093
|
+
var n = new Ve.MathNode("mo", [new Ve.TextNode("‾")]);
|
|
30094
30094
|
n.setAttribute("stretchy", "true");
|
|
30095
|
-
var r = new
|
|
30095
|
+
var r = new Ve.MathNode("mover", [_n(e.body, t), n]);
|
|
30096
30096
|
return r.setAttribute("accent", "true"), r;
|
|
30097
30097
|
}
|
|
30098
30098
|
});
|
|
@@ -30119,7 +30119,7 @@ st({
|
|
|
30119
30119
|
},
|
|
30120
30120
|
mathmlBuilder: (e, t) => {
|
|
30121
30121
|
var n = ni(e.body, t);
|
|
30122
|
-
return new
|
|
30122
|
+
return new Ve.MathNode("mphantom", n);
|
|
30123
30123
|
}
|
|
30124
30124
|
});
|
|
30125
30125
|
st({
|
|
@@ -30140,7 +30140,7 @@ st({
|
|
|
30140
30140
|
};
|
|
30141
30141
|
},
|
|
30142
30142
|
htmlBuilder: (e, t) => {
|
|
30143
|
-
var n = _e.makeSpan([], [
|
|
30143
|
+
var n = _e.makeSpan([], [sn(e.body, t.withPhantom())]);
|
|
30144
30144
|
if (n.height = 0, n.depth = 0, n.children)
|
|
30145
30145
|
for (var r = 0; r < n.children.length; r++)
|
|
30146
30146
|
n.children[r].height = 0, n.children[r].depth = 0;
|
|
@@ -30153,7 +30153,7 @@ st({
|
|
|
30153
30153
|
}, t), _e.makeSpan(["mord"], [n], t);
|
|
30154
30154
|
},
|
|
30155
30155
|
mathmlBuilder: (e, t) => {
|
|
30156
|
-
var n = ni(Zn(e.body), t), r = new
|
|
30156
|
+
var n = ni(Zn(e.body), t), r = new Ve.MathNode("mphantom", n), o = new Ve.MathNode("mpadded", [r]);
|
|
30157
30157
|
return o.setAttribute("height", "0px"), o.setAttribute("depth", "0px"), o;
|
|
30158
30158
|
}
|
|
30159
30159
|
});
|
|
@@ -30175,11 +30175,11 @@ st({
|
|
|
30175
30175
|
};
|
|
30176
30176
|
},
|
|
30177
30177
|
htmlBuilder: (e, t) => {
|
|
30178
|
-
var n = _e.makeSpan(["inner"], [
|
|
30178
|
+
var n = _e.makeSpan(["inner"], [sn(e.body, t.withPhantom())]), r = _e.makeSpan(["fix"], []);
|
|
30179
30179
|
return _e.makeSpan(["mord", "rlap"], [n, r], t);
|
|
30180
30180
|
},
|
|
30181
30181
|
mathmlBuilder: (e, t) => {
|
|
30182
|
-
var n = ni(Zn(e.body), t), r = new
|
|
30182
|
+
var n = ni(Zn(e.body), t), r = new Ve.MathNode("mphantom", n), o = new Ve.MathNode("mpadded", [r]);
|
|
30183
30183
|
return o.setAttribute("width", "0px"), o;
|
|
30184
30184
|
}
|
|
30185
30185
|
});
|
|
@@ -30203,7 +30203,7 @@ st({
|
|
|
30203
30203
|
};
|
|
30204
30204
|
},
|
|
30205
30205
|
htmlBuilder(e, t) {
|
|
30206
|
-
var n =
|
|
30206
|
+
var n = sn(e.body, t), r = zn(e.dy, t);
|
|
30207
30207
|
return _e.makeVList({
|
|
30208
30208
|
positionType: "shift",
|
|
30209
30209
|
positionData: -r,
|
|
@@ -30214,7 +30214,7 @@ st({
|
|
|
30214
30214
|
}, t);
|
|
30215
30215
|
},
|
|
30216
30216
|
mathmlBuilder(e, t) {
|
|
30217
|
-
var n = new
|
|
30217
|
+
var n = new Ve.MathNode("mpadded", [_n(e.body, t)]), r = e.dy.number + e.dy.unit;
|
|
30218
30218
|
return n.setAttribute("voffset", r), n;
|
|
30219
30219
|
}
|
|
30220
30220
|
});
|
|
@@ -30263,9 +30263,9 @@ st({
|
|
|
30263
30263
|
return n.style.borderRightWidth = Je(r), n.style.borderTopWidth = Je(o), n.style.bottom = Je(i), n.width = r, n.height = o + i, n.depth = -i, n.maxFontSize = o * 1.125 * t.sizeMultiplier, n;
|
|
30264
30264
|
},
|
|
30265
30265
|
mathmlBuilder(e, t) {
|
|
30266
|
-
var n = zn(e.width, t), r = zn(e.height, t), o = e.shift ? zn(e.shift, t) : 0, i = t.color && t.getColor() || "black", s = new
|
|
30266
|
+
var n = zn(e.width, t), r = zn(e.height, t), o = e.shift ? zn(e.shift, t) : 0, i = t.color && t.getColor() || "black", s = new Ve.MathNode("mspace");
|
|
30267
30267
|
s.setAttribute("mathbackground", i), s.setAttribute("width", Je(n)), s.setAttribute("height", Je(r));
|
|
30268
|
-
var a = new
|
|
30268
|
+
var a = new Ve.MathNode("mpadded", [s]);
|
|
30269
30269
|
return o >= 0 ? a.setAttribute("height", Je(o)) : (a.setAttribute("height", Je(o)), a.setAttribute("depth", Je(-o))), a.setAttribute("voffset", Je(o)), a;
|
|
30270
30270
|
}
|
|
30271
30271
|
});
|
|
@@ -30303,7 +30303,7 @@ st({
|
|
|
30303
30303
|
},
|
|
30304
30304
|
htmlBuilder: Due,
|
|
30305
30305
|
mathmlBuilder: (e, t) => {
|
|
30306
|
-
var n = t.havingSize(e.size), r = ni(e.body, n), o = new
|
|
30306
|
+
var n = t.havingSize(e.size), r = ni(e.body, n), o = new Ve.MathNode("mstyle", r);
|
|
30307
30307
|
return o.setAttribute("mathsize", Je(n.sizeMultiplier)), o;
|
|
30308
30308
|
}
|
|
30309
30309
|
});
|
|
@@ -30343,7 +30343,7 @@ st({
|
|
|
30343
30343
|
};
|
|
30344
30344
|
},
|
|
30345
30345
|
htmlBuilder: (e, t) => {
|
|
30346
|
-
var n = _e.makeSpan([], [
|
|
30346
|
+
var n = _e.makeSpan([], [sn(e.body, t)]);
|
|
30347
30347
|
if (!e.smashHeight && !e.smashDepth)
|
|
30348
30348
|
return n;
|
|
30349
30349
|
if (e.smashHeight && (n.height = 0, n.children))
|
|
@@ -30362,7 +30362,7 @@ st({
|
|
|
30362
30362
|
return _e.makeSpan(["mord"], [i], t);
|
|
30363
30363
|
},
|
|
30364
30364
|
mathmlBuilder: (e, t) => {
|
|
30365
|
-
var n = new
|
|
30365
|
+
var n = new Ve.MathNode("mpadded", [_n(e.body, t)]);
|
|
30366
30366
|
return e.smashHeight && n.setAttribute("height", "0px"), e.smashDepth && n.setAttribute("depth", "0px"), n;
|
|
30367
30367
|
}
|
|
30368
30368
|
});
|
|
@@ -30385,10 +30385,10 @@ st({
|
|
|
30385
30385
|
};
|
|
30386
30386
|
},
|
|
30387
30387
|
htmlBuilder(e, t) {
|
|
30388
|
-
var n =
|
|
30388
|
+
var n = sn(e.body, t.havingCrampedStyle());
|
|
30389
30389
|
n.height === 0 && (n.height = t.fontMetrics().xHeight), n = _e.wrapFragment(n, t);
|
|
30390
30390
|
var r = t.fontMetrics(), o = r.defaultRuleThickness, i = o;
|
|
30391
|
-
t.style.id <
|
|
30391
|
+
t.style.id < Ft.TEXT.id && (i = t.fontMetrics().xHeight);
|
|
30392
30392
|
var s = o + i / 4, a = n.height + n.depth + s + o, {
|
|
30393
30393
|
span: l,
|
|
30394
30394
|
ruleWidth: u,
|
|
@@ -30415,7 +30415,7 @@ st({
|
|
|
30415
30415
|
}]
|
|
30416
30416
|
}, t);
|
|
30417
30417
|
if (e.index) {
|
|
30418
|
-
var f = t.havingStyle(
|
|
30418
|
+
var f = t.havingStyle(Ft.SCRIPTSCRIPT), g = sn(e.index, f, t), m = 0.6 * (h.height - h.depth), b = _e.makeVList({
|
|
30419
30419
|
positionType: "shift",
|
|
30420
30420
|
positionData: -m,
|
|
30421
30421
|
children: [{
|
|
@@ -30432,14 +30432,14 @@ st({
|
|
|
30432
30432
|
body: n,
|
|
30433
30433
|
index: r
|
|
30434
30434
|
} = e;
|
|
30435
|
-
return r ? new
|
|
30435
|
+
return r ? new Ve.MathNode("mroot", [_n(n, t), _n(r, t)]) : new Ve.MathNode("msqrt", [_n(n, t)]);
|
|
30436
30436
|
}
|
|
30437
30437
|
});
|
|
30438
30438
|
var hA = {
|
|
30439
|
-
display:
|
|
30440
|
-
text:
|
|
30441
|
-
script:
|
|
30442
|
-
scriptscript:
|
|
30439
|
+
display: Ft.DISPLAY,
|
|
30440
|
+
text: Ft.TEXT,
|
|
30441
|
+
script: Ft.SCRIPT,
|
|
30442
|
+
scriptscript: Ft.SCRIPTSCRIPT
|
|
30443
30443
|
};
|
|
30444
30444
|
st({
|
|
30445
30445
|
type: "styling",
|
|
@@ -30469,7 +30469,7 @@ st({
|
|
|
30469
30469
|
return GU(e.body, r, t);
|
|
30470
30470
|
},
|
|
30471
30471
|
mathmlBuilder(e, t) {
|
|
30472
|
-
var n = hA[e.style], r = t.havingStyle(n), o = ni(e.body, r), i = new
|
|
30472
|
+
var n = hA[e.style], r = t.havingStyle(n), o = ni(e.body, r), i = new Ve.MathNode("mstyle", o), s = {
|
|
30473
30473
|
display: ["0", "true"],
|
|
30474
30474
|
text: ["0", "false"],
|
|
30475
30475
|
script: ["1", "false"],
|
|
@@ -30482,14 +30482,14 @@ var kue = function(t, n) {
|
|
|
30482
30482
|
var r = t.base;
|
|
30483
30483
|
if (r)
|
|
30484
30484
|
if (r.type === "op") {
|
|
30485
|
-
var o = r.limits && (n.style.size ===
|
|
30485
|
+
var o = r.limits && (n.style.size === Ft.DISPLAY.size || r.alwaysHandleSupSub);
|
|
30486
30486
|
return o ? ch : null;
|
|
30487
30487
|
} else if (r.type === "operatorname") {
|
|
30488
|
-
var i = r.alwaysHandleSupSub && (n.style.size ===
|
|
30488
|
+
var i = r.alwaysHandleSupSub && (n.style.size === Ft.DISPLAY.size || r.limits);
|
|
30489
30489
|
return i ? VU : null;
|
|
30490
30490
|
} else {
|
|
30491
30491
|
if (r.type === "accent")
|
|
30492
|
-
return
|
|
30492
|
+
return an.isCharacterBox(r.base) ? N8 : null;
|
|
30493
30493
|
if (r.type === "horizBrace") {
|
|
30494
30494
|
var s = !t.sub;
|
|
30495
30495
|
return s === r.isOver ? HU : null;
|
|
@@ -30508,17 +30508,17 @@ pd({
|
|
|
30508
30508
|
base: r,
|
|
30509
30509
|
sup: o,
|
|
30510
30510
|
sub: i
|
|
30511
|
-
} = e, s =
|
|
30511
|
+
} = e, s = sn(r, t), a, l, u = t.fontMetrics(), c = 0, d = 0, p = r && an.isCharacterBox(r);
|
|
30512
30512
|
if (o) {
|
|
30513
30513
|
var h = t.havingStyle(t.style.sup());
|
|
30514
|
-
a =
|
|
30514
|
+
a = sn(o, h, t), p || (c = s.height - h.fontMetrics().supDrop * h.sizeMultiplier / t.sizeMultiplier);
|
|
30515
30515
|
}
|
|
30516
30516
|
if (i) {
|
|
30517
30517
|
var f = t.havingStyle(t.style.sub());
|
|
30518
|
-
l =
|
|
30518
|
+
l = sn(i, f, t), p || (d = s.depth + f.fontMetrics().subDrop * f.sizeMultiplier / t.sizeMultiplier);
|
|
30519
30519
|
}
|
|
30520
30520
|
var g;
|
|
30521
|
-
t.style ===
|
|
30521
|
+
t.style === Ft.DISPLAY ? g = u.sup1 : t.style.cramped ? g = u.sup3 : g = u.sup2;
|
|
30522
30522
|
var m = t.sizeMultiplier, b = Je(0.5 / u.ptPerEm / m), y = null;
|
|
30523
30523
|
if (l) {
|
|
30524
30524
|
var x = e.base && e.base.type === "op" && e.base.name && (e.base.name === "\\oiint" || e.base.name === "\\oiiint");
|
|
@@ -30588,16 +30588,16 @@ pd({
|
|
|
30588
30588
|
else if (e.sub)
|
|
30589
30589
|
if (e.sup) {
|
|
30590
30590
|
var u = e.base;
|
|
30591
|
-
u && u.type === "op" && u.limits && t.style ===
|
|
30591
|
+
u && u.type === "op" && u.limits && t.style === Ft.DISPLAY || u && u.type === "operatorname" && u.alwaysHandleSupSub && (t.style === Ft.DISPLAY || u.limits) ? s = "munderover" : s = "msubsup";
|
|
30592
30592
|
} else {
|
|
30593
30593
|
var l = e.base;
|
|
30594
|
-
l && l.type === "op" && l.limits && (t.style ===
|
|
30594
|
+
l && l.type === "op" && l.limits && (t.style === Ft.DISPLAY || l.alwaysHandleSupSub) || l && l.type === "operatorname" && l.alwaysHandleSupSub && (l.limits || t.style === Ft.DISPLAY) ? s = "munder" : s = "msub";
|
|
30595
30595
|
}
|
|
30596
30596
|
else {
|
|
30597
30597
|
var a = e.base;
|
|
30598
|
-
a && a.type === "op" && a.limits && (t.style ===
|
|
30598
|
+
a && a.type === "op" && a.limits && (t.style === Ft.DISPLAY || a.alwaysHandleSupSub) || a && a.type === "operatorname" && a.alwaysHandleSupSub && (a.limits || t.style === Ft.DISPLAY) ? s = "mover" : s = "msup";
|
|
30599
30599
|
}
|
|
30600
|
-
return new
|
|
30600
|
+
return new Ve.MathNode(s, i);
|
|
30601
30601
|
}
|
|
30602
30602
|
});
|
|
30603
30603
|
pd({
|
|
@@ -30606,7 +30606,7 @@ pd({
|
|
|
30606
30606
|
return _e.mathsym(e.text, e.mode, t, ["m" + e.family]);
|
|
30607
30607
|
},
|
|
30608
30608
|
mathmlBuilder(e, t) {
|
|
30609
|
-
var n = new
|
|
30609
|
+
var n = new Ve.MathNode("mo", [Xi(e.text, e.mode)]);
|
|
30610
30610
|
if (e.family === "bin") {
|
|
30611
30611
|
var r = j8(e, t);
|
|
30612
30612
|
r === "bold-italic" && n.setAttribute("mathvariant", r);
|
|
@@ -30625,7 +30625,7 @@ pd({
|
|
|
30625
30625
|
return _e.makeOrd(e, t, "mathord");
|
|
30626
30626
|
},
|
|
30627
30627
|
mathmlBuilder(e, t) {
|
|
30628
|
-
var n = new
|
|
30628
|
+
var n = new Ve.MathNode("mi", [Xi(e.text, e.mode, t)]), r = j8(e, t) || "italic";
|
|
30629
30629
|
return r !== KU[n.type] && n.setAttribute("mathvariant", r), n;
|
|
30630
30630
|
}
|
|
30631
30631
|
});
|
|
@@ -30636,7 +30636,7 @@ pd({
|
|
|
30636
30636
|
},
|
|
30637
30637
|
mathmlBuilder(e, t) {
|
|
30638
30638
|
var n = Xi(e.text, e.mode, t), r = j8(e, t) || "normal", o;
|
|
30639
|
-
return e.mode === "text" ? o = new
|
|
30639
|
+
return e.mode === "text" ? o = new Ve.MathNode("mtext", [n]) : /[0-9]/.test(e.text) ? o = new Ve.MathNode("mn", [n]) : e.text === "\\prime" ? o = new Ve.MathNode("mo", [n]) : o = new Ve.MathNode("mi", [n]), r !== KU[o.type] && o.setAttribute("mathvariant", r), o;
|
|
30640
30640
|
}
|
|
30641
30641
|
});
|
|
30642
30642
|
var Fv = {
|
|
@@ -30672,23 +30672,23 @@ pd({
|
|
|
30672
30672
|
mathmlBuilder(e, t) {
|
|
30673
30673
|
var n;
|
|
30674
30674
|
if (wv.hasOwnProperty(e.text))
|
|
30675
|
-
n = new
|
|
30675
|
+
n = new Ve.MathNode("mtext", [new Ve.TextNode(" ")]);
|
|
30676
30676
|
else {
|
|
30677
30677
|
if (Fv.hasOwnProperty(e.text))
|
|
30678
|
-
return new
|
|
30678
|
+
return new Ve.MathNode("mspace");
|
|
30679
30679
|
throw new Xe('Unknown type of space "' + e.text + '"');
|
|
30680
30680
|
}
|
|
30681
30681
|
return n;
|
|
30682
30682
|
}
|
|
30683
30683
|
});
|
|
30684
30684
|
var fA = () => {
|
|
30685
|
-
var e = new
|
|
30685
|
+
var e = new Ve.MathNode("mtd", []);
|
|
30686
30686
|
return e.setAttribute("width", "50%"), e;
|
|
30687
30687
|
};
|
|
30688
30688
|
pd({
|
|
30689
30689
|
type: "tag",
|
|
30690
30690
|
mathmlBuilder(e, t) {
|
|
30691
|
-
var n = new
|
|
30691
|
+
var n = new Ve.MathNode("mtable", [new Ve.MathNode("mtr", [fA(), new Ve.MathNode("mtd", [_u(e.body, t)]), fA(), new Ve.MathNode("mtd", [_u(e.tag, t)])])]);
|
|
30692
30692
|
return n.setAttribute("width", "100%"), n;
|
|
30693
30693
|
}
|
|
30694
30694
|
});
|
|
@@ -30778,7 +30778,7 @@ st({
|
|
|
30778
30778
|
};
|
|
30779
30779
|
},
|
|
30780
30780
|
htmlBuilder(e, t) {
|
|
30781
|
-
var n =
|
|
30781
|
+
var n = sn(e.body, t), r = _e.makeLineSpan("underline-line", t), o = t.fontMetrics().defaultRuleThickness, i = _e.makeVList({
|
|
30782
30782
|
positionType: "top",
|
|
30783
30783
|
positionData: n.height,
|
|
30784
30784
|
children: [{
|
|
@@ -30798,9 +30798,9 @@ st({
|
|
|
30798
30798
|
return _e.makeSpan(["mord", "underline"], [i], t);
|
|
30799
30799
|
},
|
|
30800
30800
|
mathmlBuilder(e, t) {
|
|
30801
|
-
var n = new
|
|
30801
|
+
var n = new Ve.MathNode("mo", [new Ve.TextNode("‾")]);
|
|
30802
30802
|
n.setAttribute("stretchy", "true");
|
|
30803
|
-
var r = new
|
|
30803
|
+
var r = new Ve.MathNode("munder", [_n(e.body, t), n]);
|
|
30804
30804
|
return r.setAttribute("accentunder", "true"), r;
|
|
30805
30805
|
}
|
|
30806
30806
|
});
|
|
@@ -30824,7 +30824,7 @@ st({
|
|
|
30824
30824
|
};
|
|
30825
30825
|
},
|
|
30826
30826
|
htmlBuilder(e, t) {
|
|
30827
|
-
var n =
|
|
30827
|
+
var n = sn(e.body, t), r = t.fontMetrics().axisHeight, o = 0.5 * (n.height - r - (n.depth + r));
|
|
30828
30828
|
return _e.makeVList({
|
|
30829
30829
|
positionType: "shift",
|
|
30830
30830
|
positionData: o,
|
|
@@ -30835,7 +30835,7 @@ st({
|
|
|
30835
30835
|
}, t);
|
|
30836
30836
|
},
|
|
30837
30837
|
mathmlBuilder(e, t) {
|
|
30838
|
-
return new
|
|
30838
|
+
return new Ve.MathNode("mpadded", [_n(e.body, t)], ["vcenter"]);
|
|
30839
30839
|
}
|
|
30840
30840
|
});
|
|
30841
30841
|
st({
|
|
@@ -30856,7 +30856,7 @@ st({
|
|
|
30856
30856
|
return _e.makeSpan(["mord", "text"].concat(o.sizingClasses(t)), _e.tryCombineChars(r), o);
|
|
30857
30857
|
},
|
|
30858
30858
|
mathmlBuilder(e, t) {
|
|
30859
|
-
var n = new
|
|
30859
|
+
var n = new Ve.TextNode(yA(e)), r = new Ve.MathNode("mtext", [n]);
|
|
30860
30860
|
return r.setAttribute("mathvariant", "monospace"), r;
|
|
30861
30861
|
}
|
|
30862
30862
|
});
|
|
@@ -34807,7 +34807,7 @@ class Yi extends hP {
|
|
|
34807
34807
|
*/
|
|
34808
34808
|
load() {
|
|
34809
34809
|
const t = this._item;
|
|
34810
|
-
t !== null && !this.shouldLoad &&
|
|
34810
|
+
t !== null && !this.shouldLoad && Dn(
|
|
34811
34811
|
/** @type {any} */
|
|
34812
34812
|
t.parent.doc,
|
|
34813
34813
|
(n) => {
|
|
@@ -34837,7 +34837,7 @@ class Yi extends hP {
|
|
|
34837
34837
|
* @public
|
|
34838
34838
|
*/
|
|
34839
34839
|
transact(t, n = null) {
|
|
34840
|
-
return
|
|
34840
|
+
return Dn(this, t, n);
|
|
34841
34841
|
}
|
|
34842
34842
|
/**
|
|
34843
34843
|
* Define a shared data type.
|
|
@@ -34977,7 +34977,7 @@ class Yi extends hP {
|
|
|
34977
34977
|
/** @type {ContentDoc} */
|
|
34978
34978
|
t.content
|
|
34979
34979
|
);
|
|
34980
|
-
n.doc = new Yi({ guid: this.guid, ...n.opts, shouldLoad: !1 }), n.doc._item = t,
|
|
34980
|
+
n.doc = new Yi({ guid: this.guid, ...n.opts, shouldLoad: !1 }), n.doc._item = t, Dn(
|
|
34981
34981
|
/** @type {any} */
|
|
34982
34982
|
t.parent.doc,
|
|
34983
34983
|
(r) => {
|
|
@@ -35579,7 +35579,7 @@ const Pde = (e, t, n, r) => {
|
|
|
35579
35579
|
return sk(h, a, /* @__PURE__ */ new Map()), Wt(h.restEncoder, 0), { missing: l, update: h.toUint8Array() };
|
|
35580
35580
|
}
|
|
35581
35581
|
return null;
|
|
35582
|
-
}, Hde = (e, t) => sk(e, t.doc.store, t.beforeState), Wde = (e, t, n, r = new Lp(e)) =>
|
|
35582
|
+
}, Hde = (e, t) => sk(e, t.doc.store, t.beforeState), Wde = (e, t, n, r = new Lp(e)) => Dn(t, (o) => {
|
|
35583
35583
|
o.local = !1;
|
|
35584
35584
|
let i = !1;
|
|
35585
35585
|
const s = o.doc, a = s.store, l = zde(r, s), u = $de(o, a, l), c = a.pendingStructs;
|
|
@@ -35953,7 +35953,7 @@ const VA = (e, t) => t.deleteSet.clients.size === 0 && !xce(t.afterState, (n, r)
|
|
|
35953
35953
|
}), u.forEach((c) => r.subdocs.delete(c)), r.emit("subdocs", [{ loaded: l, added: a, removed: u }, r, n]), u.forEach((c) => c.destroy())), e.length <= t + 1 ? (r._transactionCleanups = [], r.emit("afterAllTransactions", [r, e])) : GP(e, t + 1);
|
|
35954
35954
|
}
|
|
35955
35955
|
}
|
|
35956
|
-
},
|
|
35956
|
+
}, Dn = (e, t, n = null, r = !0) => {
|
|
35957
35957
|
const o = e._transactionCleanups;
|
|
35958
35958
|
let i = !1, s = null;
|
|
35959
35959
|
e._transaction === null && (i = !0, e._transaction = new ope(e, n, r), o.push(e._transaction), o.length === 1 && e.emit("beforeAllTransactions", [e]), e.emit("beforeTransaction", [e._transaction, e]));
|
|
@@ -35987,7 +35987,7 @@ const KA = (e, t, n) => {
|
|
|
35987
35987
|
}, XA = (e, t, n) => {
|
|
35988
35988
|
let r = null;
|
|
35989
35989
|
const o = e.doc, i = e.scope;
|
|
35990
|
-
|
|
35990
|
+
Dn(o, (a) => {
|
|
35991
35991
|
for (; t.length > 0 && e.currStackItem === null; ) {
|
|
35992
35992
|
const l = o.store, u = (
|
|
35993
35993
|
/** @type {StackItem} */
|
|
@@ -37017,7 +37017,7 @@ class Nc extends Tr {
|
|
|
37017
37017
|
* @param {Array<T>} content The array of content
|
|
37018
37018
|
*/
|
|
37019
37019
|
insert(t, n) {
|
|
37020
|
-
this.doc !== null ?
|
|
37020
|
+
this.doc !== null ? Dn(this.doc, (r) => {
|
|
37021
37021
|
oz(
|
|
37022
37022
|
r,
|
|
37023
37023
|
this,
|
|
@@ -37035,7 +37035,7 @@ class Nc extends Tr {
|
|
|
37035
37035
|
* @todo Use the following implementation in all types.
|
|
37036
37036
|
*/
|
|
37037
37037
|
push(t) {
|
|
37038
|
-
this.doc !== null ?
|
|
37038
|
+
this.doc !== null ? Dn(this.doc, (n) => {
|
|
37039
37039
|
ype(
|
|
37040
37040
|
n,
|
|
37041
37041
|
this,
|
|
@@ -37059,7 +37059,7 @@ class Nc extends Tr {
|
|
|
37059
37059
|
* @param {number} length The number of elements to remove. Defaults to 1.
|
|
37060
37060
|
*/
|
|
37061
37061
|
delete(t, n = 1) {
|
|
37062
|
-
this.doc !== null ?
|
|
37062
|
+
this.doc !== null ? Dn(this.doc, (r) => {
|
|
37063
37063
|
iz(r, this, t, n);
|
|
37064
37064
|
}) : this._prelimContent.splice(t, n);
|
|
37065
37065
|
}
|
|
@@ -37287,7 +37287,7 @@ class Tu extends Tr {
|
|
|
37287
37287
|
* @param {string} key The key of the element to remove.
|
|
37288
37288
|
*/
|
|
37289
37289
|
delete(t) {
|
|
37290
|
-
this.doc !== null ?
|
|
37290
|
+
this.doc !== null ? Dn(this.doc, (n) => {
|
|
37291
37291
|
U2(n, this, t);
|
|
37292
37292
|
}) : this._prelimContent.delete(t);
|
|
37293
37293
|
}
|
|
@@ -37300,7 +37300,7 @@ class Tu extends Tr {
|
|
|
37300
37300
|
* @return {VAL}
|
|
37301
37301
|
*/
|
|
37302
37302
|
set(t, n) {
|
|
37303
|
-
return this.doc !== null ?
|
|
37303
|
+
return this.doc !== null ? Dn(this.doc, (r) => {
|
|
37304
37304
|
pk(
|
|
37305
37305
|
r,
|
|
37306
37306
|
this,
|
|
@@ -37335,7 +37335,7 @@ class Tu extends Tr {
|
|
|
37335
37335
|
* Removes all elements from this YMap.
|
|
37336
37336
|
*/
|
|
37337
37337
|
clear() {
|
|
37338
|
-
this.doc !== null ?
|
|
37338
|
+
this.doc !== null ? Dn(this.doc, (t) => {
|
|
37339
37339
|
this.forEach(function(n, r, o) {
|
|
37340
37340
|
U2(t, o, r);
|
|
37341
37341
|
});
|
|
@@ -37551,7 +37551,7 @@ const ZA = (e, t, n) => {
|
|
|
37551
37551
|
}
|
|
37552
37552
|
}, Epe = (e) => {
|
|
37553
37553
|
let t = 0;
|
|
37554
|
-
return
|
|
37554
|
+
return Dn(
|
|
37555
37555
|
/** @type {Doc} */
|
|
37556
37556
|
e.doc,
|
|
37557
37557
|
(n) => {
|
|
@@ -37597,7 +37597,7 @@ const ZA = (e, t, n) => {
|
|
|
37597
37597
|
}
|
|
37598
37598
|
);
|
|
37599
37599
|
}
|
|
37600
|
-
|
|
37600
|
+
Dn(n, (r) => {
|
|
37601
37601
|
Su(e, e.deleteSet, (o) => {
|
|
37602
37602
|
if (o instanceof Ii || !/** @type {YText} */
|
|
37603
37603
|
o.parent._hasFormatting || t.has(
|
|
@@ -37678,7 +37678,7 @@ class _pe extends tx {
|
|
|
37678
37678
|
/** @type {Doc} */
|
|
37679
37679
|
this.target.doc
|
|
37680
37680
|
), n = [];
|
|
37681
|
-
|
|
37681
|
+
Dn(t, (r) => {
|
|
37682
37682
|
const o = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
37683
37683
|
let s = this.target._start, a = null;
|
|
37684
37684
|
const l = {};
|
|
@@ -37842,7 +37842,7 @@ class ca extends Tr {
|
|
|
37842
37842
|
* @public
|
|
37843
37843
|
*/
|
|
37844
37844
|
applyDelta(t, { sanitize: n = !0 } = {}) {
|
|
37845
|
-
this.doc !== null ?
|
|
37845
|
+
this.doc !== null ? Dn(this.doc, (r) => {
|
|
37846
37846
|
const o = new $5(null, this._start, 0, /* @__PURE__ */ new Map());
|
|
37847
37847
|
for (let i = 0; i < t.length; i++) {
|
|
37848
37848
|
const s = t[i];
|
|
@@ -37922,7 +37922,7 @@ class ca extends Tr {
|
|
|
37922
37922
|
}
|
|
37923
37923
|
u();
|
|
37924
37924
|
};
|
|
37925
|
-
return t || n ?
|
|
37925
|
+
return t || n ? Dn(s, (d) => {
|
|
37926
37926
|
t && P5(d, t), n && P5(d, n), c();
|
|
37927
37927
|
}, "cleanup") : c(), o;
|
|
37928
37928
|
}
|
|
@@ -37940,7 +37940,7 @@ class ca extends Tr {
|
|
|
37940
37940
|
if (n.length <= 0)
|
|
37941
37941
|
return;
|
|
37942
37942
|
const o = this.doc;
|
|
37943
|
-
o !== null ?
|
|
37943
|
+
o !== null ? Dn(o, (i) => {
|
|
37944
37944
|
const s = Rg(i, this, t, !r);
|
|
37945
37945
|
r || (r = {}, s.currentAttributes.forEach((a, l) => {
|
|
37946
37946
|
r[l] = a;
|
|
@@ -37959,7 +37959,7 @@ class ca extends Tr {
|
|
|
37959
37959
|
*/
|
|
37960
37960
|
insertEmbed(t, n, r) {
|
|
37961
37961
|
const o = this.doc;
|
|
37962
|
-
o !== null ?
|
|
37962
|
+
o !== null ? Dn(o, (i) => {
|
|
37963
37963
|
const s = Rg(i, this, t, !r);
|
|
37964
37964
|
Nv(i, this, s, n, r || {});
|
|
37965
37965
|
}) : this._pending.push(() => this.insertEmbed(t, n, r || {}));
|
|
@@ -37976,7 +37976,7 @@ class ca extends Tr {
|
|
|
37976
37976
|
if (n === 0)
|
|
37977
37977
|
return;
|
|
37978
37978
|
const r = this.doc;
|
|
37979
|
-
r !== null ?
|
|
37979
|
+
r !== null ? Dn(r, (o) => {
|
|
37980
37980
|
QA(o, Rg(o, this, t, !0), n);
|
|
37981
37981
|
}) : this._pending.push(() => this.delete(t, n));
|
|
37982
37982
|
}
|
|
@@ -37994,7 +37994,7 @@ class ca extends Tr {
|
|
|
37994
37994
|
if (n === 0)
|
|
37995
37995
|
return;
|
|
37996
37996
|
const o = this.doc;
|
|
37997
|
-
o !== null ?
|
|
37997
|
+
o !== null ? Dn(o, (i) => {
|
|
37998
37998
|
const s = Rg(i, this, t, !1);
|
|
37999
37999
|
s.right !== null && JA(i, this, s, n, r);
|
|
38000
38000
|
}) : this._pending.push(() => this.format(t, n, r));
|
|
@@ -38009,7 +38009,7 @@ class ca extends Tr {
|
|
|
38009
38009
|
* @public
|
|
38010
38010
|
*/
|
|
38011
38011
|
removeAttribute(t) {
|
|
38012
|
-
this.doc !== null ?
|
|
38012
|
+
this.doc !== null ? Dn(this.doc, (n) => {
|
|
38013
38013
|
U2(n, this, t);
|
|
38014
38014
|
}) : this._pending.push(() => this.removeAttribute(t));
|
|
38015
38015
|
}
|
|
@@ -38024,7 +38024,7 @@ class ca extends Tr {
|
|
|
38024
38024
|
* @public
|
|
38025
38025
|
*/
|
|
38026
38026
|
setAttribute(t, n) {
|
|
38027
|
-
this.doc !== null ?
|
|
38027
|
+
this.doc !== null ? Dn(this.doc, (r) => {
|
|
38028
38028
|
pk(r, this, t, n);
|
|
38029
38029
|
}) : this._pending.push(() => this.setAttribute(t, n));
|
|
38030
38030
|
}
|
|
@@ -38265,7 +38265,7 @@ class Xc extends Tr {
|
|
|
38265
38265
|
* @param {Array<YXmlElement|YXmlText>} content The array of content
|
|
38266
38266
|
*/
|
|
38267
38267
|
insert(t, n) {
|
|
38268
|
-
this.doc !== null ?
|
|
38268
|
+
this.doc !== null ? Dn(this.doc, (r) => {
|
|
38269
38269
|
oz(r, this, t, n);
|
|
38270
38270
|
}) : this._prelimContent.splice(t, 0, ...n);
|
|
38271
38271
|
}
|
|
@@ -38281,7 +38281,7 @@ class Xc extends Tr {
|
|
|
38281
38281
|
*/
|
|
38282
38282
|
insertAfter(t, n) {
|
|
38283
38283
|
if (this.doc !== null)
|
|
38284
|
-
|
|
38284
|
+
Dn(this.doc, (r) => {
|
|
38285
38285
|
const o = t && t instanceof Tr ? t._item : t;
|
|
38286
38286
|
L2(r, this, o, n);
|
|
38287
38287
|
});
|
|
@@ -38302,7 +38302,7 @@ class Xc extends Tr {
|
|
|
38302
38302
|
* @param {number} [length=1] The number of elements to remove. Defaults to 1.
|
|
38303
38303
|
*/
|
|
38304
38304
|
delete(t, n = 1) {
|
|
38305
|
-
this.doc !== null ?
|
|
38305
|
+
this.doc !== null ? Dn(this.doc, (r) => {
|
|
38306
38306
|
iz(r, this, t, n);
|
|
38307
38307
|
}) : this._prelimContent.splice(t, n);
|
|
38308
38308
|
}
|
|
@@ -38464,7 +38464,7 @@ class Ar extends Xc {
|
|
|
38464
38464
|
* @public
|
|
38465
38465
|
*/
|
|
38466
38466
|
removeAttribute(t) {
|
|
38467
|
-
this.doc !== null ?
|
|
38467
|
+
this.doc !== null ? Dn(this.doc, (n) => {
|
|
38468
38468
|
U2(n, this, t);
|
|
38469
38469
|
}) : this._prelimAttrs.delete(t);
|
|
38470
38470
|
}
|
|
@@ -38479,7 +38479,7 @@ class Ar extends Xc {
|
|
|
38479
38479
|
* @public
|
|
38480
38480
|
*/
|
|
38481
38481
|
setAttribute(t, n) {
|
|
38482
|
-
this.doc !== null ?
|
|
38482
|
+
this.doc !== null ? Dn(this.doc, (r) => {
|
|
38483
38483
|
pk(r, this, t, n);
|
|
38484
38484
|
}) : this._prelimAttrs.set(t, n);
|
|
38485
38485
|
}
|
|
@@ -40300,12 +40300,12 @@ const kz = ud(void 0), khe = ({
|
|
|
40300
40300
|
}
|
|
40301
40301
|
try {
|
|
40302
40302
|
ae((We) => [...We, je]);
|
|
40303
|
-
const { name: He, isEns: at, resolved:
|
|
40303
|
+
const { name: He, isEns: at, resolved: Ge } = await fce(
|
|
40304
40304
|
je,
|
|
40305
40305
|
h
|
|
40306
40306
|
// Add definite assignment assertion if ensResolutionUrl is guaranteed
|
|
40307
40307
|
);
|
|
40308
|
-
|
|
40308
|
+
Ge && B((We) => {
|
|
40309
40309
|
const gt = {
|
|
40310
40310
|
...We,
|
|
40311
40311
|
[je]: { name: He, isEns: at }
|
|
@@ -40353,27 +40353,27 @@ const kz = ud(void 0), khe = ({
|
|
|
40353
40353
|
(je, Re) => {
|
|
40354
40354
|
const He = Yde(n);
|
|
40355
40355
|
if (!Re()) return;
|
|
40356
|
-
const
|
|
40357
|
-
if (!(!
|
|
40356
|
+
const Ge = Fo(n, He);
|
|
40357
|
+
if (!(!Ge || Ge.byteLength === 0))
|
|
40358
40358
|
return {
|
|
40359
40359
|
type: je,
|
|
40360
|
-
updateChunk: Qr(
|
|
40360
|
+
updateChunk: Qr(Ge)
|
|
40361
40361
|
};
|
|
40362
40362
|
},
|
|
40363
40363
|
[n]
|
|
40364
40364
|
), ce = Se(
|
|
40365
40365
|
(je, Re) => {
|
|
40366
40366
|
if (!t) return;
|
|
40367
|
-
const { state: He } = t, { from: at, to:
|
|
40367
|
+
const { state: He } = t, { from: at, to: Ge } = He.selection, We = He.doc.textBetween(at, Ge, " "), gt = De(
|
|
40368
40368
|
We,
|
|
40369
40369
|
je,
|
|
40370
40370
|
Re || i
|
|
40371
|
-
),
|
|
40371
|
+
), xt = me(
|
|
40372
40372
|
"create",
|
|
40373
40373
|
() => t.commands.setComment(gt.id || "")
|
|
40374
40374
|
);
|
|
40375
|
-
if (!(gt.selectedContent && !
|
|
40376
|
-
return l(gt.id || ""), setTimeout(c, 0), d == null || d(gt,
|
|
40375
|
+
if (!(gt.selectedContent && !xt))
|
|
40376
|
+
return l(gt.id || ""), setTimeout(c, 0), d == null || d(gt, xt), gt.id;
|
|
40377
40377
|
},
|
|
40378
40378
|
[
|
|
40379
40379
|
t,
|
|
@@ -40430,23 +40430,23 @@ const kz = ud(void 0), khe = ({
|
|
|
40430
40430
|
(je) => {
|
|
40431
40431
|
var He, at;
|
|
40432
40432
|
if (!t || !((He = t.view) != null && He.dom) || !V.length) return;
|
|
40433
|
-
const Re = V.find((
|
|
40433
|
+
const Re = V.find((Ge) => Ge.id === je);
|
|
40434
40434
|
if (Re) {
|
|
40435
40435
|
if (Re.selectedContent) {
|
|
40436
|
-
const
|
|
40436
|
+
const Ge = t.view.dom.querySelector(
|
|
40437
40437
|
`[data-comment-id="${je}"]`
|
|
40438
40438
|
);
|
|
40439
|
-
if (
|
|
40440
|
-
const We = t.view.posAtDOM(
|
|
40439
|
+
if (Ge) {
|
|
40440
|
+
const We = t.view.posAtDOM(Ge, 0), gt = We + (((at = Ge.textContent) == null ? void 0 : at.length) ?? 0);
|
|
40441
40441
|
t.commands.setTextSelection({ from: We, to: gt });
|
|
40442
|
-
const
|
|
40443
|
-
targetElement:
|
|
40442
|
+
const xt = K8({
|
|
40443
|
+
targetElement: Ge,
|
|
40444
40444
|
editorRoot: t.view.dom
|
|
40445
40445
|
});
|
|
40446
|
-
|
|
40447
|
-
const
|
|
40448
|
-
|
|
40449
|
-
top:
|
|
40446
|
+
xt && requestAnimationFrame(() => {
|
|
40447
|
+
const Nt = xt.getBoundingClientRect(), en = Ge.getBoundingClientRect(), ln = en.top - Nt.top - Nt.height / 2 + en.height / 2;
|
|
40448
|
+
xt.scrollBy({
|
|
40449
|
+
top: ln,
|
|
40450
40450
|
behavior: "smooth"
|
|
40451
40451
|
});
|
|
40452
40452
|
});
|
|
@@ -40534,8 +40534,8 @@ const kz = ud(void 0), khe = ({
|
|
|
40534
40534
|
`[data-comment-id="${He.id}"]`
|
|
40535
40535
|
);
|
|
40536
40536
|
if (at) {
|
|
40537
|
-
const
|
|
40538
|
-
t.commands.setTextSelection({ from:
|
|
40537
|
+
const Ge = t.view.posAtDOM(at, 0), We = Ge + (((Re = at.textContent) == null ? void 0 : Re.length) ?? 0);
|
|
40538
|
+
t.commands.setTextSelection({ from: Ge, to: We }), te(He.id || "");
|
|
40539
40539
|
}
|
|
40540
40540
|
}
|
|
40541
40541
|
}, [Pe, Le, t, te]), pt = Se(() => {
|
|
@@ -40545,8 +40545,8 @@ const kz = ud(void 0), khe = ({
|
|
|
40545
40545
|
`[data-comment-id="${He.id}"]`
|
|
40546
40546
|
);
|
|
40547
40547
|
if (at) {
|
|
40548
|
-
const
|
|
40549
|
-
t.commands.setTextSelection({ from:
|
|
40548
|
+
const Ge = t.view.posAtDOM(at, 0), We = Ge + (((Re = at.textContent) == null ? void 0 : Re.length) ?? 0);
|
|
40549
|
+
t.commands.setTextSelection({ from: Ge, to: We }), te(He.id || "");
|
|
40550
40550
|
}
|
|
40551
40551
|
}
|
|
40552
40552
|
}, [Pe, Le, t, te]), nt = kt(
|
|
@@ -43997,14 +43997,14 @@ function Qz() {
|
|
|
43997
43997
|
const je = Kt({}, ["title", "style", "font", "a", "script"]);
|
|
43998
43998
|
let Re = null;
|
|
43999
43999
|
const He = ["application/xhtml+xml", "text/html"], at = "text/html";
|
|
44000
|
-
let
|
|
44001
|
-
const gt = n.createElement("form"),
|
|
44000
|
+
let Ge = null, We = null;
|
|
44001
|
+
const gt = n.createElement("form"), xt = function(we) {
|
|
44002
44002
|
return we instanceof RegExp || we instanceof Function;
|
|
44003
|
-
},
|
|
44003
|
+
}, Nt = function() {
|
|
44004
44004
|
let we = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
44005
44005
|
if (!(We && We === we)) {
|
|
44006
44006
|
if ((!we || typeof we != "object") && (we = {}), we = Ia(we), Re = // eslint-disable-next-line unicorn/prefer-includes
|
|
44007
|
-
He.indexOf(we.PARSER_MEDIA_TYPE) === -1 ? at : we.PARSER_MEDIA_TYPE,
|
|
44007
|
+
He.indexOf(we.PARSER_MEDIA_TYPE) === -1 ? at : we.PARSER_MEDIA_TYPE, Ge = Re === "application/xhtml+xml" ? Hv : Vm, z = rs(we, "ALLOWED_TAGS") ? Kt({}, we.ALLOWED_TAGS, Ge) : $, re = rs(we, "ALLOWED_ATTR") ? Kt({}, we.ALLOWED_ATTR, Ge) : le, Pe = rs(we, "ALLOWED_NAMESPACES") ? Kt({}, we.ALLOWED_NAMESPACES, Hv) : ft, be = rs(we, "ADD_URI_SAFE_ATTR") ? Kt(Ia(Ee), we.ADD_URI_SAFE_ATTR, Ge) : Ee, pe = rs(we, "ADD_DATA_URI_TAGS") ? Kt(Ia(xe), we.ADD_DATA_URI_TAGS, Ge) : xe, W = rs(we, "FORBID_CONTENTS") ? Kt({}, we.FORBID_CONTENTS, Ge) : te, G = rs(we, "FORBID_TAGS") ? Kt({}, we.FORBID_TAGS, Ge) : Ia({}), Q = rs(we, "FORBID_ATTR") ? Kt({}, we.FORBID_ATTR, Ge) : Ia({}), O = rs(we, "USE_PROFILES") ? we.USE_PROFILES : !1, oe = we.ALLOW_ARIA_ATTR !== !1, S = we.ALLOW_DATA_ATTR !== !1, X = we.ALLOW_UNKNOWN_PROTOCOLS || !1, Z = we.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ue = we.SAFE_FOR_TEMPLATES || !1, B = we.SAFE_FOR_XML !== !1, ee = we.WHOLE_DOCUMENT || !1, V = we.RETURN_DOM || !1, ie = we.RETURN_DOM_FRAGMENT || !1, he = we.RETURN_TRUSTED_TYPE || !1, K = we.FORCE_BODY || !1, De = we.SANITIZE_DOM !== !1, me = we.SANITIZE_NAMED_PROPS || !1, de = we.KEEP_CONTENT !== !1, fe = we.IN_PLACE || !1, q = we.ALLOWED_URI_REGEXP || Zz, Ne = we.NAMESPACE || Te, pt = we.MATHML_TEXT_INTEGRATION_POINTS || pt, nt = we.HTML_INTEGRATION_POINTS || nt, ne = we.CUSTOM_ELEMENT_HANDLING || {}, we.CUSTOM_ELEMENT_HANDLING && xt(we.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ne.tagNameCheck = we.CUSTOM_ELEMENT_HANDLING.tagNameCheck), we.CUSTOM_ELEMENT_HANDLING && xt(we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ne.attributeNameCheck = we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), we.CUSTOM_ELEMENT_HANDLING && typeof we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ne.allowCustomizedBuiltInElements = we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ue && (S = !1), ie && (V = !0), O && (z = Kt({}, ES), re = [], O.html === !0 && (Kt(z, kS), Kt(re, CS)), O.svg === !0 && (Kt(z, qv), Kt(re, Kv), Kt(re, zg)), O.svgFilters === !0 && (Kt(z, Vv), Kt(re, Kv), Kt(re, zg)), O.mathMl === !0 && (Kt(z, Gv), Kt(re, _S), Kt(re, zg))), we.ADD_TAGS && (typeof we.ADD_TAGS == "function" ? Y.tagCheck = we.ADD_TAGS : (z === $ && (z = Ia(z)), Kt(z, we.ADD_TAGS, Ge))), we.ADD_ATTR && (typeof we.ADD_ATTR == "function" ? Y.attributeCheck = we.ADD_ATTR : (re === le && (re = Ia(re)), Kt(re, we.ADD_ATTR, Ge))), we.ADD_URI_SAFE_ATTR && Kt(be, we.ADD_URI_SAFE_ATTR, Ge), we.FORBID_CONTENTS && (W === te && (W = Ia(W)), Kt(W, we.FORBID_CONTENTS, Ge)), de && (z["#text"] = !0), ee && Kt(z, ["html", "head", "body"]), z.table && (Kt(z, ["tbody"]), delete G.tbody), we.TRUSTED_TYPES_POLICY) {
|
|
44008
44008
|
if (typeof we.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
44009
44009
|
throw zh('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
44010
44010
|
if (typeof we.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -44014,15 +44014,15 @@ function Qz() {
|
|
|
44014
44014
|
v === void 0 && (v = T1e(h, o)), v !== null && typeof k == "string" && (k = v.createHTML(""));
|
|
44015
44015
|
To && To(we), We = we;
|
|
44016
44016
|
}
|
|
44017
|
-
},
|
|
44017
|
+
}, en = Kt({}, [...qv, ...Vv, ...x1e]), ln = Kt({}, [...Gv, ...v1e]), un = function(we) {
|
|
44018
44018
|
let Ae = x(we);
|
|
44019
44019
|
(!Ae || !Ae.tagName) && (Ae = {
|
|
44020
44020
|
namespaceURI: Ne,
|
|
44021
44021
|
tagName: "template"
|
|
44022
44022
|
});
|
|
44023
44023
|
const it = Vm(we.tagName), Gt = Vm(Ae.tagName);
|
|
44024
|
-
return Pe[we.namespaceURI] ? we.namespaceURI === ge ? Ae.namespaceURI === Te ? it === "svg" : Ae.namespaceURI === Ce ? it === "svg" && (Gt === "annotation-xml" || pt[Gt]) : !!
|
|
44025
|
-
},
|
|
44024
|
+
return Pe[we.namespaceURI] ? we.namespaceURI === ge ? Ae.namespaceURI === Te ? it === "svg" : Ae.namespaceURI === Ce ? it === "svg" && (Gt === "annotation-xml" || pt[Gt]) : !!en[it] : we.namespaceURI === Ce ? Ae.namespaceURI === Te ? it === "math" : Ae.namespaceURI === ge ? it === "math" && nt[Gt] : !!ln[it] : we.namespaceURI === Te ? Ae.namespaceURI === ge && !nt[Gt] || Ae.namespaceURI === Ce && !pt[Gt] ? !1 : !ln[it] && (je[it] || !en[it]) : !!(Re === "application/xhtml+xml" && Pe[we.namespaceURI]) : !1;
|
|
44025
|
+
}, rn = function(we) {
|
|
44026
44026
|
Uh(t.removed, {
|
|
44027
44027
|
element: we
|
|
44028
44028
|
});
|
|
@@ -44031,7 +44031,7 @@ function Qz() {
|
|
|
44031
44031
|
} catch {
|
|
44032
44032
|
m(we);
|
|
44033
44033
|
}
|
|
44034
|
-
},
|
|
44034
|
+
}, cn = function(we, Ae) {
|
|
44035
44035
|
try {
|
|
44036
44036
|
Uh(t.removed, {
|
|
44037
44037
|
attribute: Ae.getAttributeNode(we),
|
|
@@ -44046,7 +44046,7 @@ function Qz() {
|
|
|
44046
44046
|
if (Ae.removeAttribute(we), we === "is")
|
|
44047
44047
|
if (V || ie)
|
|
44048
44048
|
try {
|
|
44049
|
-
|
|
44049
|
+
rn(Ae);
|
|
44050
44050
|
} catch {
|
|
44051
44051
|
}
|
|
44052
44052
|
else
|
|
@@ -44054,7 +44054,7 @@ function Qz() {
|
|
|
44054
44054
|
Ae.setAttribute(we, "");
|
|
44055
44055
|
} catch {
|
|
44056
44056
|
}
|
|
44057
|
-
},
|
|
44057
|
+
}, Fn = function(we) {
|
|
44058
44058
|
let Ae = null, it = null;
|
|
44059
44059
|
if (K)
|
|
44060
44060
|
we = "<remove></remove>" + we;
|
|
@@ -44099,13 +44099,13 @@ function Qz() {
|
|
|
44099
44099
|
const Zt = function(we) {
|
|
44100
44100
|
let Ae = null;
|
|
44101
44101
|
if (mt(T.beforeSanitizeElements, we, null), Ie(we))
|
|
44102
|
-
return
|
|
44103
|
-
const it =
|
|
44102
|
+
return rn(we), !0;
|
|
44103
|
+
const it = Ge(we.nodeName);
|
|
44104
44104
|
if (mt(T.uponSanitizeElement, we, {
|
|
44105
44105
|
tagName: it,
|
|
44106
44106
|
allowedTags: z
|
|
44107
44107
|
}), B && we.hasChildNodes() && !rt(we.firstElementChild) && go(/<[/\w!]/g, we.innerHTML) && go(/<[/\w!]/g, we.textContent) || we.nodeType === Hh.progressingInstruction || B && we.nodeType === Hh.comment && go(/<[/\w]/g, we.data))
|
|
44108
|
-
return
|
|
44108
|
+
return rn(we), !0;
|
|
44109
44109
|
if (!(Y.tagCheck instanceof Function && Y.tagCheck(it)) && (!z[it] || G[it])) {
|
|
44110
44110
|
if (!G[it] && Pt(it) && (ne.tagNameCheck instanceof RegExp && go(ne.tagNameCheck, it) || ne.tagNameCheck instanceof Function && ne.tagNameCheck(it)))
|
|
44111
44111
|
return !1;
|
|
@@ -44119,9 +44119,9 @@ function Qz() {
|
|
|
44119
44119
|
}
|
|
44120
44120
|
}
|
|
44121
44121
|
}
|
|
44122
|
-
return
|
|
44122
|
+
return rn(we), !0;
|
|
44123
44123
|
}
|
|
44124
|
-
return we instanceof l && !
|
|
44124
|
+
return we instanceof l && !un(we) || (it === "noscript" || it === "noembed" || it === "noframes") && go(/<\/no(script|embed|frames)/i, we.innerHTML) ? (rn(we), !0) : (ue && we.nodeType === Hh.text && (Ae = we.textContent, Pg([_, N, E], (Gt) => {
|
|
44125
44125
|
Ae = Ph(Ae, Gt, " ");
|
|
44126
44126
|
}), we.textContent !== Ae && (Uh(t.removed, {
|
|
44127
44127
|
element: we.cloneNode()
|
|
@@ -44177,32 +44177,32 @@ function Qz() {
|
|
|
44177
44177
|
name: yn,
|
|
44178
44178
|
namespaceURI: vr,
|
|
44179
44179
|
value: Yr
|
|
44180
|
-
} = Vt, Nl =
|
|
44180
|
+
} = Vt, Nl = Ge(yn), Nh = Yr;
|
|
44181
44181
|
let dr = yn === "value" ? Nh : m1e(Nh);
|
|
44182
|
-
if (it.attrName = Nl, it.attrValue = dr, it.keepAttr = !0, it.forceKeepAttr = void 0, mt(T.uponSanitizeAttribute, we, it), dr = it.attrValue, me && (Nl === "id" || Nl === "name") && (
|
|
44183
|
-
|
|
44182
|
+
if (it.attrName = Nl, it.attrValue = dr, it.keepAttr = !0, it.forceKeepAttr = void 0, mt(T.uponSanitizeAttribute, we, it), dr = it.attrValue, me && (Nl === "id" || Nl === "name") && (cn(yn, we), dr = ce + dr), B && go(/((--!?|])>)|<\/(style|title|textarea)/i, dr)) {
|
|
44183
|
+
cn(yn, we);
|
|
44184
44184
|
continue;
|
|
44185
44185
|
}
|
|
44186
44186
|
if (Nl === "attributename" && Wv(dr, "href")) {
|
|
44187
|
-
|
|
44187
|
+
cn(yn, we);
|
|
44188
44188
|
continue;
|
|
44189
44189
|
}
|
|
44190
44190
|
if (it.forceKeepAttr)
|
|
44191
44191
|
continue;
|
|
44192
44192
|
if (!it.keepAttr) {
|
|
44193
|
-
|
|
44193
|
+
cn(yn, we);
|
|
44194
44194
|
continue;
|
|
44195
44195
|
}
|
|
44196
44196
|
if (!Z && go(/\/>/i, dr)) {
|
|
44197
|
-
|
|
44197
|
+
cn(yn, we);
|
|
44198
44198
|
continue;
|
|
44199
44199
|
}
|
|
44200
44200
|
ue && Pg([_, N, E], (Mh) => {
|
|
44201
44201
|
dr = Ph(dr, Mh, " ");
|
|
44202
44202
|
});
|
|
44203
|
-
const dg =
|
|
44203
|
+
const dg = Ge(we.nodeName);
|
|
44204
44204
|
if (!nn(dg, Nl, dr)) {
|
|
44205
|
-
|
|
44205
|
+
cn(yn, we);
|
|
44206
44206
|
continue;
|
|
44207
44207
|
}
|
|
44208
44208
|
if (v && typeof h == "object" && typeof h.getAttributeType == "function" && !vr)
|
|
@@ -44218,9 +44218,9 @@ function Qz() {
|
|
|
44218
44218
|
}
|
|
44219
44219
|
if (dr !== Nh)
|
|
44220
44220
|
try {
|
|
44221
|
-
vr ? we.setAttributeNS(vr, yn, dr) : we.setAttribute(yn, dr), Ie(we) ?
|
|
44221
|
+
vr ? we.setAttributeNS(vr, yn, dr) : we.setAttribute(yn, dr), Ie(we) ? rn(we) : DS(t.removed);
|
|
44222
44222
|
} catch {
|
|
44223
|
-
|
|
44223
|
+
cn(yn, we);
|
|
44224
44224
|
}
|
|
44225
44225
|
}
|
|
44226
44226
|
mt(T.afterSanitizeAttributes, we, null);
|
|
@@ -44241,22 +44241,22 @@ function Qz() {
|
|
|
44241
44241
|
throw zh("toString is not a function");
|
|
44242
44242
|
if (!t.isSupported)
|
|
44243
44243
|
return et;
|
|
44244
|
-
if (ae ||
|
|
44244
|
+
if (ae || Nt(we), t.removed = [], typeof et == "string" && (fe = !1), fe) {
|
|
44245
44245
|
if (et.nodeName) {
|
|
44246
|
-
const Yr =
|
|
44246
|
+
const Yr = Ge(et.nodeName);
|
|
44247
44247
|
if (!z[Yr] || G[Yr])
|
|
44248
44248
|
throw zh("root node is forbidden and cannot be sanitized in-place");
|
|
44249
44249
|
}
|
|
44250
44250
|
} else if (et instanceof a)
|
|
44251
|
-
Ae =
|
|
44251
|
+
Ae = Fn("<!---->"), it = Ae.ownerDocument.importNode(et, !0), it.nodeType === Hh.element && it.nodeName === "BODY" || it.nodeName === "HTML" ? Ae = it : Ae.appendChild(it);
|
|
44252
44252
|
else {
|
|
44253
44253
|
if (!V && !ue && !ee && // eslint-disable-next-line unicorn/prefer-includes
|
|
44254
44254
|
et.indexOf("<") === -1)
|
|
44255
44255
|
return v && he ? v.createHTML(et) : et;
|
|
44256
|
-
if (Ae =
|
|
44256
|
+
if (Ae = Fn(et), !Ae)
|
|
44257
44257
|
return V ? null : he ? k : "";
|
|
44258
44258
|
}
|
|
44259
|
-
Ae && K &&
|
|
44259
|
+
Ae && K && rn(Ae.firstChild);
|
|
44260
44260
|
const yn = ve(fe ? et : Ae);
|
|
44261
44261
|
for (; Gt = yn.nextNode(); )
|
|
44262
44262
|
Zt(Gt), Rt(Gt), Gt.content instanceof i && er(Gt.content);
|
|
@@ -44277,12 +44277,12 @@ function Qz() {
|
|
|
44277
44277
|
}), v && he ? v.createHTML(vr) : vr;
|
|
44278
44278
|
}, t.setConfig = function() {
|
|
44279
44279
|
let et = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
44280
|
-
|
|
44280
|
+
Nt(et), ae = !0;
|
|
44281
44281
|
}, t.clearConfig = function() {
|
|
44282
44282
|
We = null, ae = !1;
|
|
44283
44283
|
}, t.isValidAttribute = function(et, we, Ae) {
|
|
44284
|
-
We ||
|
|
44285
|
-
const it =
|
|
44284
|
+
We || Nt({});
|
|
44285
|
+
const it = Ge(et), Gt = Ge(we);
|
|
44286
44286
|
return nn(it, Gt, Ae);
|
|
44287
44287
|
}, t.addHook = function(et, we) {
|
|
44288
44288
|
typeof we == "function" && Uh(T[et], we);
|
|
@@ -46144,20 +46144,53 @@ pn.addRule("linkDefinition", {
|
|
|
46144
46144
|
|
|
46145
46145
|
`
|
|
46146
46146
|
});
|
|
46147
|
-
const Hge = (e, t, n) =>
|
|
46147
|
+
const Hge = (e, t, n) => wt.create({
|
|
46148
46148
|
name: "markdownPasteHandler",
|
|
46149
46149
|
addProseMirrorPlugins() {
|
|
46150
46150
|
return [
|
|
46151
46151
|
new Et({
|
|
46152
46152
|
props: {
|
|
46153
46153
|
handlePaste: (r, o) => {
|
|
46154
|
-
o.preventDefault();
|
|
46155
46154
|
const i = o.clipboardData;
|
|
46156
46155
|
if (!i) return !1;
|
|
46157
|
-
const s = i.getData("text/plain"), {
|
|
46158
|
-
if (
|
|
46159
|
-
|
|
46160
|
-
|
|
46156
|
+
const s = i.getData("text/plain"), { empty: a } = r.state.selection;
|
|
46157
|
+
if (a && s)
|
|
46158
|
+
try {
|
|
46159
|
+
const p = new URL(s.trim());
|
|
46160
|
+
if (p.origin === window.location.origin && p.hash) {
|
|
46161
|
+
const h = decodeURIComponent(p.hash.slice(1)), g = new URLSearchParams(h).get("heading");
|
|
46162
|
+
if (g) {
|
|
46163
|
+
const m = g.split("-").pop();
|
|
46164
|
+
if (m) {
|
|
46165
|
+
const b = Array.from(
|
|
46166
|
+
document.querySelectorAll("[data-toc-id]")
|
|
46167
|
+
).find(
|
|
46168
|
+
(y) => {
|
|
46169
|
+
var x;
|
|
46170
|
+
return (x = y.dataset.tocId) == null ? void 0 : x.includes(m);
|
|
46171
|
+
}
|
|
46172
|
+
);
|
|
46173
|
+
if (b != null && b.textContent)
|
|
46174
|
+
return o.preventDefault(), this.editor.chain().focus().insertContent({
|
|
46175
|
+
type: "text",
|
|
46176
|
+
text: b.textContent,
|
|
46177
|
+
marks: [
|
|
46178
|
+
{
|
|
46179
|
+
type: "link",
|
|
46180
|
+
attrs: { href: s.trim() }
|
|
46181
|
+
}
|
|
46182
|
+
]
|
|
46183
|
+
}).run(), !0;
|
|
46184
|
+
}
|
|
46185
|
+
}
|
|
46186
|
+
}
|
|
46187
|
+
} catch {
|
|
46188
|
+
}
|
|
46189
|
+
o.preventDefault();
|
|
46190
|
+
const { state: l } = r, { selection: u } = l, { $from: c } = u;
|
|
46191
|
+
if (c.parent.type.name === "codeBlock") {
|
|
46192
|
+
const p = l.tr.insertText(s);
|
|
46193
|
+
return r.dispatch(p), !0;
|
|
46161
46194
|
}
|
|
46162
46195
|
return Wge(s) ? (bp(r, s, e), !0) : !1;
|
|
46163
46196
|
}
|
|
@@ -48486,8 +48519,8 @@ const N0 = (e) => {
|
|
|
48486
48519
|
const u = (c) => {
|
|
48487
48520
|
c.preventDefault();
|
|
48488
48521
|
};
|
|
48489
|
-
return r ? /* @__PURE__ */ F.jsx(
|
|
48490
|
-
|
|
48522
|
+
return r ? /* @__PURE__ */ F.jsx(Jt, { text: r, children: /* @__PURE__ */ F.jsx(
|
|
48523
|
+
kn,
|
|
48491
48524
|
{
|
|
48492
48525
|
ref: l,
|
|
48493
48526
|
variant: a,
|
|
@@ -48500,7 +48533,7 @@ const N0 = (e) => {
|
|
|
48500
48533
|
disabled: i
|
|
48501
48534
|
}
|
|
48502
48535
|
) }) : /* @__PURE__ */ F.jsx(
|
|
48503
|
-
|
|
48536
|
+
kn,
|
|
48504
48537
|
{
|
|
48505
48538
|
ref: l,
|
|
48506
48539
|
variant: "ghost",
|
|
@@ -48627,7 +48660,7 @@ const N0 = (e) => {
|
|
|
48627
48660
|
className: "text-helper-text-sm color-text-secondary hover:underline text-left pl-2 pb-3 border-l custom-border cursor-pointer flex items-center gap-1",
|
|
48628
48661
|
children: [
|
|
48629
48662
|
/* @__PURE__ */ F.jsx(
|
|
48630
|
-
|
|
48663
|
+
kn,
|
|
48631
48664
|
{
|
|
48632
48665
|
icon: "ChevronDown",
|
|
48633
48666
|
variant: "ghost",
|
|
@@ -48698,20 +48731,20 @@ const N0 = (e) => {
|
|
|
48698
48731
|
/* @__PURE__ */ F.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
48699
48732
|
/* @__PURE__ */ F.jsx(j$, { username: e, createdAt: r }),
|
|
48700
48733
|
f === "2" ? /* @__PURE__ */ F.jsx(
|
|
48701
|
-
|
|
48734
|
+
Jt,
|
|
48702
48735
|
{
|
|
48703
48736
|
text: p ? "Available in a moment" : "",
|
|
48704
48737
|
sideOffset: 0,
|
|
48705
48738
|
position: "top",
|
|
48706
48739
|
children: /* @__PURE__ */ F.jsxs(jD, { className: "!space-x-0", children: [
|
|
48707
48740
|
!u && o && o.length === 0 && /* @__PURE__ */ F.jsx(
|
|
48708
|
-
|
|
48741
|
+
Jt,
|
|
48709
48742
|
{
|
|
48710
48743
|
text: p ? "" : "Add reply",
|
|
48711
48744
|
sideOffset: 0,
|
|
48712
48745
|
position: "bottom",
|
|
48713
48746
|
children: /* @__PURE__ */ F.jsx(
|
|
48714
|
-
|
|
48747
|
+
kn,
|
|
48715
48748
|
{
|
|
48716
48749
|
variant: "ghost",
|
|
48717
48750
|
icon: "MessageSquarePlus",
|
|
@@ -48724,13 +48757,13 @@ const N0 = (e) => {
|
|
|
48724
48757
|
}
|
|
48725
48758
|
),
|
|
48726
48759
|
/* @__PURE__ */ F.jsx(
|
|
48727
|
-
|
|
48760
|
+
Jt,
|
|
48728
48761
|
{
|
|
48729
48762
|
text: p ? "" : "Coming soon",
|
|
48730
48763
|
sideOffset: 0,
|
|
48731
48764
|
position: "bottom",
|
|
48732
48765
|
children: /* @__PURE__ */ F.jsx(
|
|
48733
|
-
|
|
48766
|
+
kn,
|
|
48734
48767
|
{
|
|
48735
48768
|
variant: "ghost",
|
|
48736
48769
|
icon: "Smile",
|
|
@@ -48747,7 +48780,7 @@ const N0 = (e) => {
|
|
|
48747
48780
|
align: "end",
|
|
48748
48781
|
sideOffset: 4,
|
|
48749
48782
|
anchorTrigger: /* @__PURE__ */ F.jsx(
|
|
48750
|
-
|
|
48783
|
+
kn,
|
|
48751
48784
|
{
|
|
48752
48785
|
icon: "Ellipsis",
|
|
48753
48786
|
variant: "ghost",
|
|
@@ -48796,8 +48829,8 @@ const N0 = (e) => {
|
|
|
48796
48829
|
)
|
|
48797
48830
|
] })
|
|
48798
48831
|
}
|
|
48799
|
-
) : /* @__PURE__ */ F.jsx(
|
|
48800
|
-
|
|
48832
|
+
) : /* @__PURE__ */ F.jsx(Jt, { text: "Actions are not supported for old comments", children: /* @__PURE__ */ F.jsx(
|
|
48833
|
+
kn,
|
|
48801
48834
|
{
|
|
48802
48835
|
icon: "Info",
|
|
48803
48836
|
variant: "ghost",
|
|
@@ -48982,7 +49015,7 @@ const N0 = (e) => {
|
|
|
48982
49015
|
")"
|
|
48983
49016
|
] }),
|
|
48984
49017
|
/* @__PURE__ */ F.jsx("div", { className: "relative flex items-center gap-1", children: (M || i) && !re && /* @__PURE__ */ F.jsxs(
|
|
48985
|
-
|
|
49018
|
+
Jt,
|
|
48986
49019
|
{
|
|
48987
49020
|
text: o ? "Available in a moment" : "",
|
|
48988
49021
|
sideOffset: 0,
|
|
@@ -48994,7 +49027,7 @@ const N0 = (e) => {
|
|
|
48994
49027
|
align: "end",
|
|
48995
49028
|
sideOffset: 4,
|
|
48996
49029
|
anchorTrigger: /* @__PURE__ */ F.jsx(
|
|
48997
|
-
|
|
49030
|
+
kn,
|
|
48998
49031
|
{
|
|
48999
49032
|
onClick: S,
|
|
49000
49033
|
icon: "Ellipsis",
|
|
@@ -49029,13 +49062,13 @@ const N0 = (e) => {
|
|
|
49029
49062
|
"more-actions"
|
|
49030
49063
|
),
|
|
49031
49064
|
/* @__PURE__ */ F.jsx(
|
|
49032
|
-
|
|
49065
|
+
Jt,
|
|
49033
49066
|
{
|
|
49034
49067
|
text: o ? "" : D != null && D.resolved ? "Unresolve" : "Resolve",
|
|
49035
49068
|
sideOffset: 5,
|
|
49036
49069
|
position: "bottom",
|
|
49037
49070
|
children: /* @__PURE__ */ F.jsx(
|
|
49038
|
-
|
|
49071
|
+
kn,
|
|
49039
49072
|
{
|
|
49040
49073
|
"data-testid": D != null && D.resolved ? "comment-unresolve-btn" : "comment-resolve-btn",
|
|
49041
49074
|
icon: D != null && D.resolved ? "CircleCheck2" : "CircleCheck",
|
|
@@ -49133,7 +49166,7 @@ J2.exports;
|
|
|
49133
49166
|
var n = {
|
|
49134
49167
|
function: !0,
|
|
49135
49168
|
object: !0
|
|
49136
|
-
}, r = n[typeof window] && window || this, o = t, i = e && !e.nodeType && e, s = o && i && typeof
|
|
49169
|
+
}, r = n[typeof window] && window || this, o = t, i = e && !e.nodeType && e, s = o && i && typeof jt == "object" && jt;
|
|
49137
49170
|
s && (s.global === s || s.window === s || s.self === s) && (r = s);
|
|
49138
49171
|
var a = Math.pow(2, 53) - 1, l = /\bOpera/, u = Object.prototype, c = u.hasOwnProperty, d = u.toString;
|
|
49139
49172
|
function p(C) {
|
|
@@ -49465,7 +49498,7 @@ J2.exports;
|
|
|
49465
49498
|
o && i ? m(D, function(C, A) {
|
|
49466
49499
|
o[A] = C;
|
|
49467
49500
|
}) : r.platform = D;
|
|
49468
|
-
}).call(
|
|
49501
|
+
}).call(jt);
|
|
49469
49502
|
})(J2, J2.exports);
|
|
49470
49503
|
var ume = J2.exports;
|
|
49471
49504
|
const cme = /* @__PURE__ */ Lu(ume), qh = () => {
|
|
@@ -49988,7 +50021,7 @@ const cme = /* @__PURE__ */ Lu(ume), qh = () => {
|
|
|
49988
50021
|
renderHTML({ HTMLAttributes: e }) {
|
|
49989
50022
|
return [
|
|
49990
50023
|
"div",
|
|
49991
|
-
|
|
50024
|
+
Bt(e, { "data-type": "column" }),
|
|
49992
50025
|
0
|
|
49993
50026
|
];
|
|
49994
50027
|
},
|
|
@@ -50978,8 +51011,8 @@ ${N.getHTML()}`
|
|
|
50978
51011
|
onClose: () => {
|
|
50979
51012
|
t(!1), p(!1), c(!1);
|
|
50980
51013
|
},
|
|
50981
|
-
anchorTrigger: /* @__PURE__ */ F.jsx(
|
|
50982
|
-
|
|
51014
|
+
anchorTrigger: /* @__PURE__ */ F.jsx(Jt, { text: "Export/Import", children: /* @__PURE__ */ F.jsx(
|
|
51015
|
+
kn,
|
|
50983
51016
|
{
|
|
50984
51017
|
icon: "File",
|
|
50985
51018
|
variant: "ghost",
|
|
@@ -51157,7 +51190,7 @@ ${N.getHTML()}`
|
|
|
51157
51190
|
Ur,
|
|
51158
51191
|
{
|
|
51159
51192
|
sideOffset: 8,
|
|
51160
|
-
anchorTrigger: /* @__PURE__ */ F.jsx(
|
|
51193
|
+
anchorTrigger: /* @__PURE__ */ F.jsx(Jt, { text: e.title, children: /* @__PURE__ */ F.jsx(kn, { icon: e.icon, variant: "ghost", size: "sm" }) }),
|
|
51161
51194
|
content: n(e)
|
|
51162
51195
|
},
|
|
51163
51196
|
e.title
|
|
@@ -51302,7 +51335,7 @@ ${N.getHTML()}`
|
|
|
51302
51335
|
"markdown-dropdown-transition"
|
|
51303
51336
|
),
|
|
51304
51337
|
/* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
|
|
51305
|
-
/* @__PURE__ */ F.jsx("div", { className: "flex gap-1 justify-center items-center", children: C.map((S, X) => S ? /* @__PURE__ */ F.jsx(
|
|
51338
|
+
/* @__PURE__ */ F.jsx("div", { className: "flex gap-1 justify-center items-center", children: C.map((S, X) => S ? /* @__PURE__ */ F.jsx(Jt, { text: S.title, children: h ? xo(
|
|
51306
51339
|
/* @__PURE__ */ F.jsx(
|
|
51307
51340
|
hr,
|
|
51308
51341
|
{
|
|
@@ -51312,7 +51345,7 @@ ${N.getHTML()}`
|
|
|
51312
51345
|
"redo-skeleton-transition"
|
|
51313
51346
|
) : Uo(
|
|
51314
51347
|
/* @__PURE__ */ F.jsx(
|
|
51315
|
-
|
|
51348
|
+
kn,
|
|
51316
51349
|
{
|
|
51317
51350
|
className: "disabled:bg-transparent",
|
|
51318
51351
|
variant: "ghost",
|
|
@@ -51528,8 +51561,8 @@ ${N.getHTML()}`
|
|
|
51528
51561
|
{
|
|
51529
51562
|
align: "end",
|
|
51530
51563
|
sideOffset: 8,
|
|
51531
|
-
anchorTrigger: /* @__PURE__ */ F.jsx(
|
|
51532
|
-
|
|
51564
|
+
anchorTrigger: /* @__PURE__ */ F.jsx(Jt, { text: "More", children: /* @__PURE__ */ F.jsx(
|
|
51565
|
+
kn,
|
|
51533
51566
|
{
|
|
51534
51567
|
id: "more-dropdown",
|
|
51535
51568
|
icon: "Ellipsis",
|
|
@@ -51577,7 +51610,7 @@ ${N.getHTML()}`
|
|
|
51577
51610
|
/* @__PURE__ */ F.jsx(hr, { className: "w-[36px] h-[36px] rounded-sm" }),
|
|
51578
51611
|
S.title + "skeleton"
|
|
51579
51612
|
) : Uo(
|
|
51580
|
-
/* @__PURE__ */ F.jsx(
|
|
51613
|
+
/* @__PURE__ */ F.jsx(Jt, { text: S.title, children: /* @__PURE__ */ F.jsx(
|
|
51581
51614
|
fr,
|
|
51582
51615
|
{
|
|
51583
51616
|
icon: S.icon,
|
|
@@ -51598,8 +51631,8 @@ ${N.getHTML()}`
|
|
|
51598
51631
|
] }),
|
|
51599
51632
|
/* @__PURE__ */ F.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
51600
51633
|
/* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-2" }),
|
|
51601
|
-
/* @__PURE__ */ F.jsx(
|
|
51602
|
-
|
|
51634
|
+
/* @__PURE__ */ F.jsx(Jt, { text: "Enter focus mode", children: /* @__PURE__ */ F.jsx(
|
|
51635
|
+
kn,
|
|
51603
51636
|
{
|
|
51604
51637
|
icon: "Maximize",
|
|
51605
51638
|
size: "sm",
|
|
@@ -51612,7 +51645,7 @@ ${N.getHTML()}`
|
|
|
51612
51645
|
"chevronUp-skeleton"
|
|
51613
51646
|
) : Uo(
|
|
51614
51647
|
/* @__PURE__ */ F.jsx(
|
|
51615
|
-
|
|
51648
|
+
kn,
|
|
51616
51649
|
{
|
|
51617
51650
|
size: "sm",
|
|
51618
51651
|
variant: "ghost",
|
|
@@ -52619,7 +52652,7 @@ const p2e = (e, t, n) => e !== t, h2e = (e) => {
|
|
|
52619
52652
|
};
|
|
52620
52653
|
}
|
|
52621
52654
|
});
|
|
52622
|
-
var w2e =
|
|
52655
|
+
var w2e = wt.create({
|
|
52623
52656
|
name: "collaboration",
|
|
52624
52657
|
priority: 1e3,
|
|
52625
52658
|
addOptions() {
|
|
@@ -52726,7 +52759,7 @@ var w2e = Ft.create({
|
|
|
52726
52759
|
return [{ tag: "blockquote" }];
|
|
52727
52760
|
},
|
|
52728
52761
|
renderHTML({ HTMLAttributes: e }) {
|
|
52729
|
-
return /* @__PURE__ */ ib("blockquote", { ...
|
|
52762
|
+
return /* @__PURE__ */ ib("blockquote", { ...Bt(this.options.HTMLAttributes, e), children: /* @__PURE__ */ ib("slot", {}) });
|
|
52730
52763
|
},
|
|
52731
52764
|
parseMarkdown: (e, t) => t.createNode("blockquote", void 0, t.parseChildren(e.tokens || [])),
|
|
52732
52765
|
renderMarkdown: (e, t) => {
|
|
@@ -52789,7 +52822,7 @@ ${n}
|
|
|
52789
52822
|
];
|
|
52790
52823
|
},
|
|
52791
52824
|
renderHTML({ HTMLAttributes: e }) {
|
|
52792
|
-
return /* @__PURE__ */ ib("strong", { ...
|
|
52825
|
+
return /* @__PURE__ */ ib("strong", { ...Bt(this.options.HTMLAttributes, e), children: /* @__PURE__ */ ib("slot", {}) });
|
|
52793
52826
|
},
|
|
52794
52827
|
markdownTokenName: "strong",
|
|
52795
52828
|
parseMarkdown: (e, t) => t.applyMark("bold", t.parseInline(e.tokens || [])),
|
|
@@ -52845,7 +52878,7 @@ ${n}
|
|
|
52845
52878
|
return [{ tag: "code" }];
|
|
52846
52879
|
},
|
|
52847
52880
|
renderHTML({ HTMLAttributes: e }) {
|
|
52848
|
-
return ["code",
|
|
52881
|
+
return ["code", Bt(this.options.HTMLAttributes, e), 0];
|
|
52849
52882
|
},
|
|
52850
52883
|
markdownTokenName: "codespan",
|
|
52851
52884
|
parseMarkdown: (e, t) => t.applyMark("code", [{ type: "text", text: e.text || "" }]),
|
|
@@ -52923,7 +52956,7 @@ ${n}
|
|
|
52923
52956
|
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
52924
52957
|
return [
|
|
52925
52958
|
"pre",
|
|
52926
|
-
|
|
52959
|
+
Bt(this.options.HTMLAttributes, t),
|
|
52927
52960
|
[
|
|
52928
52961
|
"code",
|
|
52929
52962
|
{
|
|
@@ -53111,7 +53144,7 @@ ${n}
|
|
|
53111
53144
|
return [{ tag: "br" }];
|
|
53112
53145
|
},
|
|
53113
53146
|
renderHTML({ HTMLAttributes: e }) {
|
|
53114
|
-
return ["br",
|
|
53147
|
+
return ["br", Bt(this.options.HTMLAttributes, e)];
|
|
53115
53148
|
},
|
|
53116
53149
|
renderText() {
|
|
53117
53150
|
return `
|
|
@@ -53174,7 +53207,7 @@ ${n}
|
|
|
53174
53207
|
}));
|
|
53175
53208
|
},
|
|
53176
53209
|
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
53177
|
-
return [`h${this.options.levels.includes(e.attrs.level) ? e.attrs.level : this.options.levels[0]}`,
|
|
53210
|
+
return [`h${this.options.levels.includes(e.attrs.level) ? e.attrs.level : this.options.levels[0]}`, Bt(this.options.HTMLAttributes, t), 0];
|
|
53178
53211
|
},
|
|
53179
53212
|
parseMarkdown: (e, t) => t.createNode("heading", { level: e.depth || 1 }, t.parseInline(e.tokens || [])),
|
|
53180
53213
|
renderMarkdown: (e, t) => {
|
|
@@ -53219,7 +53252,7 @@ ${n}
|
|
|
53219
53252
|
return [{ tag: "hr" }];
|
|
53220
53253
|
},
|
|
53221
53254
|
renderHTML({ HTMLAttributes: e }) {
|
|
53222
|
-
return ["hr",
|
|
53255
|
+
return ["hr", Bt(this.options.HTMLAttributes, e)];
|
|
53223
53256
|
},
|
|
53224
53257
|
markdownTokenName: "hr",
|
|
53225
53258
|
parseMarkdown: (e, t) => t.createNode("horizontalRule"),
|
|
@@ -53282,7 +53315,7 @@ ${n}
|
|
|
53282
53315
|
];
|
|
53283
53316
|
},
|
|
53284
53317
|
renderHTML({ HTMLAttributes: e }) {
|
|
53285
|
-
return ["em",
|
|
53318
|
+
return ["em", Bt(this.options.HTMLAttributes, e), 0];
|
|
53286
53319
|
},
|
|
53287
53320
|
addCommands() {
|
|
53288
53321
|
return {
|
|
@@ -54215,7 +54248,7 @@ var fbe = Mr.create({
|
|
|
54215
54248
|
defaultValidate: (t) => !!tc(t, this.options.protocols),
|
|
54216
54249
|
protocols: this.options.protocols,
|
|
54217
54250
|
defaultProtocol: this.options.defaultProtocol
|
|
54218
|
-
}) ? ["a",
|
|
54251
|
+
}) ? ["a", Bt(this.options.HTMLAttributes, e), 0] : ["a", Bt(this.options.HTMLAttributes, { ...e, href: "" }), 0];
|
|
54219
54252
|
},
|
|
54220
54253
|
markdownTokenName: "link",
|
|
54221
54254
|
parseMarkdown: (e, t) => t.applyMark("link", t.parseInline(e.tokens || []), {
|
|
@@ -54332,7 +54365,7 @@ var fbe = Mr.create({
|
|
|
54332
54365
|
return [{ tag: "ul" }];
|
|
54333
54366
|
},
|
|
54334
54367
|
renderHTML({ HTMLAttributes: e }) {
|
|
54335
|
-
return ["ul",
|
|
54368
|
+
return ["ul", Bt(this.options.HTMLAttributes, e), 0];
|
|
54336
54369
|
},
|
|
54337
54370
|
markdownTokenName: "list",
|
|
54338
54371
|
parseMarkdown: (e, t) => e.type !== "list" || e.ordered ? [] : {
|
|
@@ -54387,7 +54420,7 @@ var fbe = Mr.create({
|
|
|
54387
54420
|
];
|
|
54388
54421
|
},
|
|
54389
54422
|
renderHTML({ HTMLAttributes: e }) {
|
|
54390
|
-
return ["li",
|
|
54423
|
+
return ["li", Bt(this.options.HTMLAttributes, e), 0];
|
|
54391
54424
|
},
|
|
54392
54425
|
markdownTokenName: "list_item",
|
|
54393
54426
|
parseMarkdown: (e, t) => {
|
|
@@ -54513,7 +54546,7 @@ var U1 = (e, t) => {
|
|
|
54513
54546
|
var n;
|
|
54514
54547
|
const { $anchor: r } = t.selection, o = t.doc.resolve(r.pos - r.parentOffset - 2);
|
|
54515
54548
|
return !(o.index() === o.parent.childCount - 1 || ((n = o.nodeAfter) == null ? void 0 : n.type.name) !== e);
|
|
54516
|
-
}, dH =
|
|
54549
|
+
}, dH = wt.create({
|
|
54517
54550
|
name: "listKeymap",
|
|
54518
54551
|
addOptions() {
|
|
54519
54552
|
return {
|
|
@@ -54695,7 +54728,7 @@ var Dbe = "listItem", tT = "textStyle", nT = /^(\d+)\.\s$/, hH = At.create({
|
|
|
54695
54728
|
},
|
|
54696
54729
|
renderHTML({ HTMLAttributes: e }) {
|
|
54697
54730
|
const { start: t, ...n } = e;
|
|
54698
|
-
return t === 1 ? ["ol",
|
|
54731
|
+
return t === 1 ? ["ol", Bt(this.options.HTMLAttributes, n), 0] : ["ol", Bt(this.options.HTMLAttributes, e), 0];
|
|
54699
54732
|
},
|
|
54700
54733
|
markdownTokenName: "list",
|
|
54701
54734
|
parseMarkdown: (e, t) => {
|
|
@@ -54807,7 +54840,7 @@ var Dbe = "listItem", tT = "textStyle", nT = /^(\d+)\.\s$/, hH = At.create({
|
|
|
54807
54840
|
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
54808
54841
|
return [
|
|
54809
54842
|
"li",
|
|
54810
|
-
|
|
54843
|
+
Bt(this.options.HTMLAttributes, t, {
|
|
54811
54844
|
"data-type": this.name
|
|
54812
54845
|
}),
|
|
54813
54846
|
[
|
|
@@ -54912,7 +54945,7 @@ var Dbe = "listItem", tT = "textStyle", nT = /^(\d+)\.\s$/, hH = At.create({
|
|
|
54912
54945
|
];
|
|
54913
54946
|
},
|
|
54914
54947
|
renderHTML({ HTMLAttributes: e }) {
|
|
54915
|
-
return ["ul",
|
|
54948
|
+
return ["ul", Bt(this.options.HTMLAttributes, e, { "data-type": this.name }), 0];
|
|
54916
54949
|
},
|
|
54917
54950
|
parseMarkdown: (e, t) => t.createNode("taskList", {}, t.parseChildren(e.items || [])),
|
|
54918
54951
|
renderMarkdown: (e, t) => e.content ? t.renderChildren(e.content, `
|
|
@@ -55004,7 +55037,7 @@ var Dbe = "listItem", tT = "textStyle", nT = /^(\d+)\.\s$/, hH = At.create({
|
|
|
55004
55037
|
};
|
|
55005
55038
|
}
|
|
55006
55039
|
});
|
|
55007
|
-
|
|
55040
|
+
wt.create({
|
|
55008
55041
|
name: "listKit",
|
|
55009
55042
|
addExtensions() {
|
|
55010
55043
|
const e = [];
|
|
@@ -55025,7 +55058,7 @@ var Ebe = At.create({
|
|
|
55025
55058
|
return [{ tag: "p" }];
|
|
55026
55059
|
},
|
|
55027
55060
|
renderHTML({ HTMLAttributes: e }) {
|
|
55028
|
-
return ["p",
|
|
55061
|
+
return ["p", Bt(this.options.HTMLAttributes, e), 0];
|
|
55029
55062
|
},
|
|
55030
55063
|
parseMarkdown: (e, t) => {
|
|
55031
55064
|
const n = e.tokens || [];
|
|
@@ -55073,7 +55106,7 @@ var Ebe = At.create({
|
|
|
55073
55106
|
];
|
|
55074
55107
|
},
|
|
55075
55108
|
renderHTML({ HTMLAttributes: e }) {
|
|
55076
|
-
return ["s",
|
|
55109
|
+
return ["s", Bt(this.options.HTMLAttributes, e), 0];
|
|
55077
55110
|
},
|
|
55078
55111
|
markdownTokenName: "del",
|
|
55079
55112
|
parseMarkdown: (e, t) => t.applyMark("strike", t.parseInline(e.tokens || [])),
|
|
@@ -55134,7 +55167,7 @@ var Ebe = At.create({
|
|
|
55134
55167
|
];
|
|
55135
55168
|
},
|
|
55136
55169
|
renderHTML({ HTMLAttributes: e }) {
|
|
55137
|
-
return ["u",
|
|
55170
|
+
return ["u", Bt(this.options.HTMLAttributes, e), 0];
|
|
55138
55171
|
},
|
|
55139
55172
|
parseMarkdown(e, t) {
|
|
55140
55173
|
return t.applyMark(this.name || "underline", t.parseInline(e.tokens || []));
|
|
@@ -55789,7 +55822,7 @@ function yH(e, t) {
|
|
|
55789
55822
|
};
|
|
55790
55823
|
}
|
|
55791
55824
|
const xH = yH(!1, !0), vH = yH(!0, !0);
|
|
55792
|
-
var Xbe =
|
|
55825
|
+
var Xbe = wt.create({
|
|
55793
55826
|
name: "characterCount",
|
|
55794
55827
|
addOptions() {
|
|
55795
55828
|
return {
|
|
@@ -55857,7 +55890,7 @@ var Xbe = Ft.create({
|
|
|
55857
55890
|
})
|
|
55858
55891
|
];
|
|
55859
55892
|
}
|
|
55860
|
-
}), FH =
|
|
55893
|
+
}), FH = wt.create({
|
|
55861
55894
|
name: "dropCursor",
|
|
55862
55895
|
addOptions() {
|
|
55863
55896
|
return {
|
|
@@ -55870,7 +55903,7 @@ var Xbe = Ft.create({
|
|
|
55870
55903
|
return [jbe(this.options)];
|
|
55871
55904
|
}
|
|
55872
55905
|
});
|
|
55873
|
-
|
|
55906
|
+
wt.create({
|
|
55874
55907
|
name: "focus",
|
|
55875
55908
|
addOptions() {
|
|
55876
55909
|
return {
|
|
@@ -55913,7 +55946,7 @@ Ft.create({
|
|
|
55913
55946
|
];
|
|
55914
55947
|
}
|
|
55915
55948
|
});
|
|
55916
|
-
var wH =
|
|
55949
|
+
var wH = wt.create({
|
|
55917
55950
|
name: "gapCursor",
|
|
55918
55951
|
addProseMirrorPlugins() {
|
|
55919
55952
|
return [Obe()];
|
|
@@ -55929,7 +55962,7 @@ var wH = Ft.create({
|
|
|
55929
55962
|
allowGapCursor: (t = hn(bt(e, "allowGapCursor", n))) != null ? t : null
|
|
55930
55963
|
};
|
|
55931
55964
|
}
|
|
55932
|
-
}), Ybe =
|
|
55965
|
+
}), Ybe = wt.create({
|
|
55933
55966
|
name: "placeholder",
|
|
55934
55967
|
addOptions() {
|
|
55935
55968
|
return {
|
|
@@ -55975,7 +56008,7 @@ var wH = Ft.create({
|
|
|
55975
56008
|
];
|
|
55976
56009
|
}
|
|
55977
56010
|
});
|
|
55978
|
-
|
|
56011
|
+
wt.create({
|
|
55979
56012
|
name: "selection",
|
|
55980
56013
|
addOptions() {
|
|
55981
56014
|
return {
|
|
@@ -56003,7 +56036,7 @@ Ft.create({
|
|
|
56003
56036
|
function iT({ types: e, node: t }) {
|
|
56004
56037
|
return t && Array.isArray(e) && e.includes(t.type) || (t == null ? void 0 : t.type) === e;
|
|
56005
56038
|
}
|
|
56006
|
-
var Zbe =
|
|
56039
|
+
var Zbe = wt.create({
|
|
56007
56040
|
name: "trailingNode",
|
|
56008
56041
|
addOptions() {
|
|
56009
56042
|
return {
|
|
@@ -56037,7 +56070,7 @@ var Zbe = Ft.create({
|
|
|
56037
56070
|
})
|
|
56038
56071
|
];
|
|
56039
56072
|
}
|
|
56040
|
-
}), Jbe =
|
|
56073
|
+
}), Jbe = wt.create({
|
|
56041
56074
|
name: "undoRedo",
|
|
56042
56075
|
addOptions() {
|
|
56043
56076
|
return {
|
|
@@ -56064,7 +56097,7 @@ var Zbe = Ft.create({
|
|
|
56064
56097
|
"Shift-Mod-я": () => this.editor.commands.redo()
|
|
56065
56098
|
};
|
|
56066
56099
|
}
|
|
56067
|
-
}), Qbe =
|
|
56100
|
+
}), Qbe = wt.create({
|
|
56068
56101
|
name: "starterKit",
|
|
56069
56102
|
addExtensions() {
|
|
56070
56103
|
var e, t, n, r;
|
|
@@ -56104,7 +56137,7 @@ var Zbe = Ft.create({
|
|
|
56104
56137
|
];
|
|
56105
56138
|
},
|
|
56106
56139
|
renderHTML({ HTMLAttributes: e }) {
|
|
56107
|
-
return ["span",
|
|
56140
|
+
return ["span", Bt(this.options.HTMLAttributes, e), 0];
|
|
56108
56141
|
},
|
|
56109
56142
|
addCommands() {
|
|
56110
56143
|
return {
|
|
@@ -56119,7 +56152,7 @@ var Zbe = Ft.create({
|
|
|
56119
56152
|
}
|
|
56120
56153
|
};
|
|
56121
56154
|
}
|
|
56122
|
-
}), nye =
|
|
56155
|
+
}), nye = wt.create({
|
|
56123
56156
|
name: "backgroundColor",
|
|
56124
56157
|
addOptions() {
|
|
56125
56158
|
return {
|
|
@@ -56163,7 +56196,7 @@ var Zbe = Ft.create({
|
|
|
56163
56196
|
unsetBackgroundColor: () => ({ chain: e }) => e().setMark("textStyle", { backgroundColor: null }).removeEmptyTextStyle().run()
|
|
56164
56197
|
};
|
|
56165
56198
|
}
|
|
56166
|
-
}), CH =
|
|
56199
|
+
}), CH = wt.create({
|
|
56167
56200
|
name: "color",
|
|
56168
56201
|
addOptions() {
|
|
56169
56202
|
return {
|
|
@@ -56207,7 +56240,7 @@ var Zbe = Ft.create({
|
|
|
56207
56240
|
unsetColor: () => ({ chain: e }) => e().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
|
|
56208
56241
|
};
|
|
56209
56242
|
}
|
|
56210
|
-
}), _H =
|
|
56243
|
+
}), _H = wt.create({
|
|
56211
56244
|
name: "fontFamily",
|
|
56212
56245
|
addOptions() {
|
|
56213
56246
|
return {
|
|
@@ -56236,7 +56269,7 @@ var Zbe = Ft.create({
|
|
|
56236
56269
|
unsetFontFamily: () => ({ chain: e }) => e().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run()
|
|
56237
56270
|
};
|
|
56238
56271
|
}
|
|
56239
|
-
}), rye =
|
|
56272
|
+
}), rye = wt.create({
|
|
56240
56273
|
name: "fontSize",
|
|
56241
56274
|
addOptions() {
|
|
56242
56275
|
return {
|
|
@@ -56265,7 +56298,7 @@ var Zbe = Ft.create({
|
|
|
56265
56298
|
unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
|
|
56266
56299
|
};
|
|
56267
56300
|
}
|
|
56268
|
-
}), oye =
|
|
56301
|
+
}), oye = wt.create({
|
|
56269
56302
|
name: "lineHeight",
|
|
56270
56303
|
addOptions() {
|
|
56271
56304
|
return {
|
|
@@ -56295,14 +56328,14 @@ var Zbe = Ft.create({
|
|
|
56295
56328
|
};
|
|
56296
56329
|
}
|
|
56297
56330
|
});
|
|
56298
|
-
|
|
56331
|
+
wt.create({
|
|
56299
56332
|
name: "textStyleKit",
|
|
56300
56333
|
addExtensions() {
|
|
56301
56334
|
const e = [];
|
|
56302
56335
|
return this.options.backgroundColor !== !1 && e.push(nye.configure(this.options.backgroundColor)), this.options.color !== !1 && e.push(CH.configure(this.options.color)), this.options.fontFamily !== !1 && e.push(_H.configure(this.options.fontFamily)), this.options.fontSize !== !1 && e.push(rye.configure(this.options.fontSize)), this.options.lineHeight !== !1 && e.push(oye.configure(this.options.lineHeight)), this.options.textStyle !== !1 && e.push(EH.configure(this.options.textStyle)), e;
|
|
56303
56336
|
}
|
|
56304
56337
|
});
|
|
56305
|
-
var iye = _H, sye =
|
|
56338
|
+
var iye = _H, sye = wt.create({
|
|
56306
56339
|
name: "textAlign",
|
|
56307
56340
|
addOptions() {
|
|
56308
56341
|
return {
|
|
@@ -56482,7 +56515,7 @@ var pye = ({
|
|
|
56482
56515
|
n(o, s);
|
|
56483
56516
|
}
|
|
56484
56517
|
e.storage.anchors = i, e.storage.content = o, t.state.tr.setMeta("toc", o), t.view.dispatch(t.state.tr);
|
|
56485
|
-
}, fye =
|
|
56518
|
+
}, fye = wt.create({
|
|
56486
56519
|
name: "tableOfContents",
|
|
56487
56520
|
addStorage() {
|
|
56488
56521
|
return {
|
|
@@ -56633,7 +56666,7 @@ var pye = ({
|
|
|
56633
56666
|
];
|
|
56634
56667
|
},
|
|
56635
56668
|
renderHTML({ HTMLAttributes: e }) {
|
|
56636
|
-
return ["mark",
|
|
56669
|
+
return ["mark", Bt(this.options.HTMLAttributes, e), 0];
|
|
56637
56670
|
},
|
|
56638
56671
|
renderMarkdown: (e, t) => `==${t.renderChildren(e)}==`,
|
|
56639
56672
|
parseMarkdown: (e, t) => t.applyMark("highlight", t.parseInline(e.tokens || [])),
|
|
@@ -56687,17 +56720,17 @@ const xye = L2e.extend({
|
|
|
56687
56720
|
renderHTML() {
|
|
56688
56721
|
return [
|
|
56689
56722
|
"div",
|
|
56690
|
-
|
|
56723
|
+
Bt(this.options.HTMLAttributes, { "data-type": this.name }),
|
|
56691
56724
|
["hr"]
|
|
56692
56725
|
];
|
|
56693
56726
|
}
|
|
56694
|
-
}), vye =
|
|
56727
|
+
}), vye = wt.create({
|
|
56695
56728
|
name: "columnExtension",
|
|
56696
56729
|
addExtensions() {
|
|
56697
56730
|
const e = [];
|
|
56698
56731
|
return this.options.column !== !1 && e.push(O$), this.options.columns !== !1 && e.push(eb), e;
|
|
56699
56732
|
}
|
|
56700
|
-
}), Fye =
|
|
56733
|
+
}), Fye = wt.create({
|
|
56701
56734
|
name: "CustomKeymap",
|
|
56702
56735
|
addCommands() {
|
|
56703
56736
|
return {
|
|
@@ -57266,7 +57299,7 @@ const xye = L2e.extend({
|
|
|
57266
57299
|
renderHTML({ HTMLAttributes: e }) {
|
|
57267
57300
|
return [
|
|
57268
57301
|
"iframe",
|
|
57269
|
-
|
|
57302
|
+
Bt(this.options.HTMLAttributes, e)
|
|
57270
57303
|
];
|
|
57271
57304
|
},
|
|
57272
57305
|
addCommands() {
|
|
@@ -58239,17 +58272,17 @@ const Ha = /* @__PURE__ */ new WeakMap(), cu = () => {
|
|
|
58239
58272
|
}, eo = (
|
|
58240
58273
|
/*#__NOINLINE__*/
|
|
58241
58274
|
cu()
|
|
58242
|
-
), Fw = Object,
|
|
58275
|
+
), Fw = Object, on = (e) => e === eo, qs = (e) => typeof e == "function", Nu = (e, t) => ({
|
|
58243
58276
|
...e,
|
|
58244
58277
|
...t
|
|
58245
58278
|
}), PH = (e) => qs(e.then), m4 = {}, Xg = {}, Jk = "undefined", P1 = typeof window != Jk, ww = typeof document != Jk, B3e = P1 && "Deno" in window, N3e = () => P1 && typeof window.requestAnimationFrame != Jk, zH = (e, t) => {
|
|
58246
58279
|
const n = Ha.get(e);
|
|
58247
58280
|
return [
|
|
58248
58281
|
// Getter
|
|
58249
|
-
() => !
|
|
58282
|
+
() => !on(t) && e.get(t) || m4,
|
|
58250
58283
|
// Setter
|
|
58251
58284
|
(r) => {
|
|
58252
|
-
if (!
|
|
58285
|
+
if (!on(t)) {
|
|
58253
58286
|
const o = e.get(t);
|
|
58254
58287
|
t in Xg || (Xg[t] = o), n[5](t, Nu(o, r), o || m4);
|
|
58255
58288
|
}
|
|
@@ -58257,7 +58290,7 @@ const Ha = /* @__PURE__ */ new WeakMap(), cu = () => {
|
|
|
58257
58290
|
// Subscriber
|
|
58258
58291
|
n[6],
|
|
58259
58292
|
// Get server cache snapshot
|
|
58260
|
-
() => !
|
|
58293
|
+
() => !on(t) && t in Xg ? Xg[t] : !on(t) && e.get(t) || m4
|
|
58261
58294
|
];
|
|
58262
58295
|
};
|
|
58263
58296
|
let Dw = !0;
|
|
@@ -58269,7 +58302,7 @@ const M3e = () => Dw, [kw, Ew] = P1 && window.addEventListener ? [
|
|
|
58269
58302
|
cu
|
|
58270
58303
|
], O3e = () => {
|
|
58271
58304
|
const e = ww && document.visibilityState;
|
|
58272
|
-
return
|
|
58305
|
+
return on(e) || e !== "hidden";
|
|
58273
58306
|
}, R3e = (e) => (ww && document.addEventListener("visibilitychange", e), kw("focus", e), () => {
|
|
58274
58307
|
ww && document.removeEventListener("visibilitychange", e), Ew("focus", e);
|
|
58275
58308
|
}), I3e = (e) => {
|
|
@@ -58305,8 +58338,8 @@ const Cw = (e) => {
|
|
|
58305
58338
|
if (i) {
|
|
58306
58339
|
s = "#";
|
|
58307
58340
|
const l = Fw.keys(e).sort();
|
|
58308
|
-
for (; !
|
|
58309
|
-
|
|
58341
|
+
for (; !on(a = l.pop()); )
|
|
58342
|
+
on(e[a]) || (s += a + ":" + Cw(e[a]) + ",");
|
|
58310
58343
|
Yg.set(e, s);
|
|
58311
58344
|
}
|
|
58312
58345
|
} else
|
|
@@ -58361,7 +58394,7 @@ async function $H(...e) {
|
|
|
58361
58394
|
C,
|
|
58362
58395
|
0
|
|
58363
58396
|
];
|
|
58364
|
-
const A = !
|
|
58397
|
+
const A = !on(l), R = f(), T = R.data, _ = R._c, N = on(_) ? T : _;
|
|
58365
58398
|
if (A && (l = qs(l) ? l(N, T) : l, g({
|
|
58366
58399
|
data: l,
|
|
58367
58400
|
_c: N
|
|
@@ -58451,7 +58484,7 @@ const bT = (e, t) => {
|
|
|
58451
58484
|
];
|
|
58452
58485
|
}, q3e = (e, t, n, r, o) => {
|
|
58453
58486
|
const i = n.errorRetryCount, s = o.retryCount, a = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * n.errorRetryInterval;
|
|
58454
|
-
!
|
|
58487
|
+
!on(i) && s > i || setTimeout(r, a, o);
|
|
58455
58488
|
}, V3e = vw, [HH, G3e] = W3e(/* @__PURE__ */ new Map()), K3e = Nu(
|
|
58456
58489
|
{
|
|
58457
58490
|
// events
|
|
@@ -58506,7 +58539,7 @@ const bT = (e, t) => {
|
|
|
58506
58539
|
if (s.startsWith(Z3e))
|
|
58507
58540
|
return n(...i);
|
|
58508
58541
|
const l = a[s];
|
|
58509
|
-
return
|
|
58542
|
+
return on(l) ? n(...i) : (delete a[s], l);
|
|
58510
58543
|
}), r), rve = J3e.concat(nve), ove = (e) => function(...n) {
|
|
58511
58544
|
const r = tve(), [o, i, s] = eve(n), a = X3e(r, s);
|
|
58512
58545
|
let l = e;
|
|
@@ -58544,18 +58577,18 @@ const v4 = _t.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
58544
58577
|
}), F4 = {
|
|
58545
58578
|
dedupe: !0
|
|
58546
58579
|
}, yT = Promise.resolve(eo), sve = (e, t, n) => {
|
|
58547
|
-
const { cache: r, compare: o, suspense: i, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: u, refreshWhenHidden: c, refreshWhenOffline: d, keepPreviousData: p } = n, [h, f, g, m] = Ha.get(r), [b, y] = Qk(e), x = qe(!1), v = qe(!1), k = qe(b), w = qe(t), D = qe(n), C = () => D.current, A = () => C().isVisible() && C().isOnline(), [R, T, _, N] = zH(r, b), E = qe({}).current, M =
|
|
58580
|
+
const { cache: r, compare: o, suspense: i, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: u, refreshWhenHidden: c, refreshWhenOffline: d, keepPreviousData: p } = n, [h, f, g, m] = Ha.get(r), [b, y] = Qk(e), x = qe(!1), v = qe(!1), k = qe(b), w = qe(t), D = qe(n), C = () => D.current, A = () => C().isVisible() && C().isOnline(), [R, T, _, N] = zH(r, b), E = qe({}).current, M = on(s) ? on(n.fallback) ? eo : n.fallback[b] : s, j = (ue, B) => {
|
|
58548
58581
|
for (const ee in E) {
|
|
58549
58582
|
const ae = ee;
|
|
58550
58583
|
if (ae === "data") {
|
|
58551
|
-
if (!o(ue[ae], B[ae]) && (!
|
|
58584
|
+
if (!o(ue[ae], B[ae]) && (!on(ue[ae]) || !o(ne, B[ae])))
|
|
58552
58585
|
return !1;
|
|
58553
58586
|
} else if (B[ae] !== ue[ae])
|
|
58554
58587
|
return !1;
|
|
58555
58588
|
}
|
|
58556
58589
|
return !0;
|
|
58557
58590
|
}, P = kt(() => {
|
|
58558
|
-
const ue = !b || !t ? !1 :
|
|
58591
|
+
const ue = !b || !t ? !1 : on(a) ? C().isPaused() || i ? !1 : l !== !1 : a, B = (he) => {
|
|
58559
58592
|
const De = Nu(he);
|
|
58560
58593
|
return delete De._k, ue ? {
|
|
58561
58594
|
isValidating: !0,
|
|
@@ -58583,7 +58616,7 @@ const v4 = _t.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
58583
58616
|
r,
|
|
58584
58617
|
b
|
|
58585
58618
|
]
|
|
58586
|
-
), P[0], P[1]), I = !x.current, q = h[b] && h[b].length > 0, z = L.data, $ =
|
|
58619
|
+
), P[0], P[1]), I = !x.current, q = h[b] && h[b].length > 0, z = L.data, $ = on(z) ? M && PH(M) ? v4(M) : M : z, re = L.error, le = qe($), ne = p ? on(z) ? on(le.current) ? $ : le.current : z : $, G = q && !on(re) ? !1 : I && !on(a) ? a : C().isPaused() ? !1 : i ? on($) ? !1 : l : on($) || l, Q = !!(b && t && I && G), Y = on(L.isValidating) ? Q : L.isValidating, oe = on(L.isLoading) ? Q : L.isLoading, S = Se(
|
|
58587
58620
|
async (ue) => {
|
|
58588
58621
|
const B = w.current;
|
|
58589
58622
|
if (!b || !B || v.current || C().isPaused())
|
|
@@ -58600,9 +58633,9 @@ const v4 = _t.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
58600
58633
|
}, de = {
|
|
58601
58634
|
isValidating: !0
|
|
58602
58635
|
};
|
|
58603
|
-
|
|
58636
|
+
on(R().data) && (de.isLoading = !0);
|
|
58604
58637
|
try {
|
|
58605
|
-
if (ie && (T(de), n.loadingTimeout &&
|
|
58638
|
+
if (ie && (T(de), n.loadingTimeout && on(R().data) && setTimeout(() => {
|
|
58606
58639
|
K && he() && C().onLoadingSlow(b, n);
|
|
58607
58640
|
}, n.loadingTimeout), g[b] = [
|
|
58608
58641
|
B(y),
|
|
@@ -58611,7 +58644,7 @@ const v4 = _t.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
58611
58644
|
return ie && he() && C().onDiscarded(b), !1;
|
|
58612
58645
|
De.error = eo;
|
|
58613
58646
|
const fe = f[b];
|
|
58614
|
-
if (!
|
|
58647
|
+
if (!on(fe) && // case 1
|
|
58615
58648
|
(ae <= fe[0] || // case 2
|
|
58616
58649
|
ae <= fe[1] || // case 3
|
|
58617
58650
|
fe[1] === 0))
|
|
@@ -58653,7 +58686,7 @@ const v4 = _t.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
58653
58686
|
[]
|
|
58654
58687
|
);
|
|
58655
58688
|
if (b4(() => {
|
|
58656
|
-
w.current = t, D.current = n,
|
|
58689
|
+
w.current = t, D.current = n, on(z) || (le.current = z);
|
|
58657
58690
|
}), b4(() => {
|
|
58658
58691
|
if (!b) return;
|
|
58659
58692
|
const ue = S.bind(eo, F4);
|
|
@@ -58674,7 +58707,7 @@ const v4 = _t.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
58674
58707
|
});
|
|
58675
58708
|
return v.current = !1, k.current = b, x.current = !0, T({
|
|
58676
58709
|
_k: y
|
|
58677
|
-
}), G && (g[b] || (
|
|
58710
|
+
}), G && (g[b] || (on($) || qf ? ue() : P3e(ue))), () => {
|
|
58678
58711
|
v.current = !0, ae();
|
|
58679
58712
|
};
|
|
58680
58713
|
}, [
|
|
@@ -58697,15 +58730,15 @@ const v4 = _t.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
58697
58730
|
d,
|
|
58698
58731
|
b
|
|
58699
58732
|
]), TD(ne), i) {
|
|
58700
|
-
const ue = b &&
|
|
58733
|
+
const ue = b && on($);
|
|
58701
58734
|
if (!gT && qf && ue)
|
|
58702
58735
|
throw new Error("Fallback data is required when using Suspense in SSR.");
|
|
58703
58736
|
ue && (w.current = t, D.current = n, v.current = !1);
|
|
58704
|
-
const B = m[b], ee = !
|
|
58705
|
-
if (v4(ee), !
|
|
58737
|
+
const B = m[b], ee = !on(B) && ue ? X(B) : yT;
|
|
58738
|
+
if (v4(ee), !on(re) && ue)
|
|
58706
58739
|
throw re;
|
|
58707
58740
|
const ae = ue ? S(F4) : yT;
|
|
58708
|
-
!
|
|
58741
|
+
!on(ne) && ue && (ae.status = "fulfilled", ae.value = !0), v4(ae);
|
|
58709
58742
|
}
|
|
58710
58743
|
return {
|
|
58711
58744
|
mutate: X,
|
|
@@ -58831,7 +58864,7 @@ const dve = (e, t, n) => {
|
|
|
58831
58864
|
renderHTML({ HTMLAttributes: e }) {
|
|
58832
58865
|
return [
|
|
58833
58866
|
"div",
|
|
58834
|
-
|
|
58867
|
+
Bt(this.options.HTMLAttributes, e)
|
|
58835
58868
|
];
|
|
58836
58869
|
},
|
|
58837
58870
|
addNodeView() {
|
|
@@ -62203,7 +62236,7 @@ const Cve = _t.memo(
|
|
|
62203
62236
|
text: e,
|
|
62204
62237
|
position: t = "bottom",
|
|
62205
62238
|
children: n
|
|
62206
|
-
}) => /* @__PURE__ */ F.jsx(
|
|
62239
|
+
}) => /* @__PURE__ */ F.jsx(Jt, { text: e, position: t, children: n })
|
|
62207
62240
|
), Tve = _t.memo(
|
|
62208
62241
|
({ children: e }) => /* @__PURE__ */ F.jsx(
|
|
62209
62242
|
gx,
|
|
@@ -62849,7 +62882,7 @@ const QH = At.create({
|
|
|
62849
62882
|
renderHTML({ HTMLAttributes: e }) {
|
|
62850
62883
|
return [
|
|
62851
62884
|
"div",
|
|
62852
|
-
|
|
62885
|
+
Bt(e, { "data-type": "d-block" }),
|
|
62853
62886
|
0
|
|
62854
62887
|
];
|
|
62855
62888
|
},
|
|
@@ -63440,7 +63473,7 @@ const o4e = At.create({
|
|
|
63440
63473
|
);
|
|
63441
63474
|
return [
|
|
63442
63475
|
"table",
|
|
63443
|
-
|
|
63476
|
+
Bt(this.options.HTMLAttributes, t, {
|
|
63444
63477
|
style: r ? `width: ${r}` : `min-width: ${o}`
|
|
63445
63478
|
}),
|
|
63446
63479
|
n,
|
|
@@ -65031,12 +65064,12 @@ function IFe(e, t) {
|
|
|
65031
65064
|
phase: "beforeWrite",
|
|
65032
65065
|
requires: ["computeStyles"],
|
|
65033
65066
|
fn: function(at) {
|
|
65034
|
-
var
|
|
65067
|
+
var Ge = at.state;
|
|
65035
65068
|
if (_()) {
|
|
65036
65069
|
var We = M(), gt = We.box;
|
|
65037
|
-
["placement", "reference-hidden", "escaped"].forEach(function(
|
|
65038
|
-
|
|
65039
|
-
}),
|
|
65070
|
+
["placement", "reference-hidden", "escaped"].forEach(function(xt) {
|
|
65071
|
+
xt === "placement" ? gt.setAttribute("data-placement", Ge.placement) : Ge.attributes.popper["data-popper-" + xt] ? gt.setAttribute("data-" + xt, "") : gt.removeAttribute("data-" + xt);
|
|
65072
|
+
}), Ge.attributes.popper = {};
|
|
65040
65073
|
}
|
|
65041
65074
|
}
|
|
65042
65075
|
}, Re = [{
|
|
@@ -65153,8 +65186,8 @@ function IFe(e, t) {
|
|
|
65153
65186
|
var Re;
|
|
65154
65187
|
if (!(!v.state.isVisible || u)) {
|
|
65155
65188
|
if (u = !0, w.offsetHeight, w.style.transition = v.props.moveTransition, _() && v.props.animation) {
|
|
65156
|
-
var He = M(), at = He.box,
|
|
65157
|
-
C4([at,
|
|
65189
|
+
var He = M(), at = He.box, Ge = He.content;
|
|
65190
|
+
C4([at, Ge], Pe), WT([at, Ge], "visible");
|
|
65158
65191
|
}
|
|
65159
65192
|
I(), q(), $T(A4, v), (Re = v.popperInstance) == null || Re.forceUpdate(), L("onMount", [v]), v.props.animation && _() && Y(Pe, function() {
|
|
65160
65193
|
v.state.isShown = !0, L("onShown", [v]);
|
|
@@ -65659,7 +65692,7 @@ const VFe = [
|
|
|
65659
65692
|
renderHTML({ HTMLAttributes: e }) {
|
|
65660
65693
|
return [
|
|
65661
65694
|
"td",
|
|
65662
|
-
|
|
65695
|
+
Bt(this.options.HTMLAttributes, e),
|
|
65663
65696
|
0
|
|
65664
65697
|
];
|
|
65665
65698
|
},
|
|
@@ -65702,7 +65735,7 @@ const VFe = [
|
|
|
65702
65735
|
renderHTML({ HTMLAttributes: e }) {
|
|
65703
65736
|
return [
|
|
65704
65737
|
"th",
|
|
65705
|
-
|
|
65738
|
+
Bt(this.options.HTMLAttributes, e),
|
|
65706
65739
|
0
|
|
65707
65740
|
];
|
|
65708
65741
|
},
|
|
@@ -65738,7 +65771,7 @@ const VFe = [
|
|
|
65738
65771
|
renderHTML({ HTMLAttributes: e }) {
|
|
65739
65772
|
return [
|
|
65740
65773
|
"tr",
|
|
65741
|
-
|
|
65774
|
+
Bt(this.options.HTMLAttributes, e),
|
|
65742
65775
|
0
|
|
65743
65776
|
];
|
|
65744
65777
|
},
|
|
@@ -65840,7 +65873,7 @@ const VFe = [
|
|
|
65840
65873
|
function ej({ types: e, node: t }) {
|
|
65841
65874
|
return t != null && t.type ? Array.isArray(e) && e.includes(t.type) || t.type === e : !1;
|
|
65842
65875
|
}
|
|
65843
|
-
const JFe =
|
|
65876
|
+
const JFe = wt.create({
|
|
65844
65877
|
name: "trailingNode",
|
|
65845
65878
|
addOptions() {
|
|
65846
65879
|
return {
|
|
@@ -66182,7 +66215,7 @@ const JFe = Ft.create({
|
|
|
66182
66215
|
renderHTML({ HTMLAttributes: e }) {
|
|
66183
66216
|
return [
|
|
66184
66217
|
"div",
|
|
66185
|
-
|
|
66218
|
+
Bt(e, { "data-action-node": "" }),
|
|
66186
66219
|
0
|
|
66187
66220
|
];
|
|
66188
66221
|
},
|
|
@@ -66899,7 +66932,7 @@ function F6e(e) {
|
|
|
66899
66932
|
}
|
|
66900
66933
|
const w6e = /* @__PURE__ */ Lu(c6e);
|
|
66901
66934
|
var D6e = Object.defineProperty, k6e = (e, t, n) => t in e ? D6e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ib = (e, t, n) => (k6e(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
66902
|
-
const E6e =
|
|
66935
|
+
const E6e = wt.create({
|
|
66903
66936
|
name: "markdownTightLists",
|
|
66904
66937
|
addOptions: () => ({
|
|
66905
66938
|
tight: !0,
|
|
@@ -67633,7 +67666,7 @@ class F5e {
|
|
|
67633
67666
|
return t.renderer.rules.hardbreak = n(t.renderer.rules.hardbreak), t.renderer.rules.softbreak = n(t.renderer.rules.softbreak), t.renderer.rules.fence = n(t.renderer.rules.fence), t.renderer.rules.code_block = n(t.renderer.rules.code_block), t.renderer.renderToken = n(t.renderer.renderToken.bind(t.renderer)), t;
|
|
67634
67667
|
}
|
|
67635
67668
|
}
|
|
67636
|
-
const w5e =
|
|
67669
|
+
const w5e = wt.create({
|
|
67637
67670
|
name: "markdownClipboard",
|
|
67638
67671
|
addOptions() {
|
|
67639
67672
|
return {
|
|
@@ -67663,7 +67696,7 @@ const w5e = Ft.create({
|
|
|
67663
67696
|
}
|
|
67664
67697
|
})];
|
|
67665
67698
|
}
|
|
67666
|
-
}), D5e =
|
|
67699
|
+
}), D5e = wt.create({
|
|
67667
67700
|
name: "markdown",
|
|
67668
67701
|
priority: 50,
|
|
67669
67702
|
addOptions() {
|
|
@@ -67781,7 +67814,7 @@ var k5e = (e) => yt({
|
|
|
67781
67814
|
}), q5e = (e) => yt({
|
|
67782
67815
|
find: /(?:^|\s)(3\/4)\s$/,
|
|
67783
67816
|
replace: e ?? "¾"
|
|
67784
|
-
}), V5e =
|
|
67817
|
+
}), V5e = wt.create({
|
|
67785
67818
|
name: "typography",
|
|
67786
67819
|
addOptions() {
|
|
67787
67820
|
return {
|
|
@@ -72659,7 +72692,7 @@ const CCe = async (e) => await yke.format(e, {
|
|
|
72659
72692
|
plugins: [ECe],
|
|
72660
72693
|
tabWidth: 2,
|
|
72661
72694
|
useTabs: !1
|
|
72662
|
-
}), _Ce = (e, t) =>
|
|
72695
|
+
}), _Ce = (e, t) => wt.create({
|
|
72663
72696
|
name: "htmlExport",
|
|
72664
72697
|
addCommands() {
|
|
72665
72698
|
return {
|
|
@@ -72731,7 +72764,7 @@ const CCe = async (e) => await yke.format(e, {
|
|
|
72731
72764
|
}
|
|
72732
72765
|
};
|
|
72733
72766
|
}
|
|
72734
|
-
}), ACe = () =>
|
|
72767
|
+
}), ACe = () => wt.create({
|
|
72735
72768
|
name: "textExport",
|
|
72736
72769
|
addCommands() {
|
|
72737
72770
|
return {
|
|
@@ -74032,7 +74065,7 @@ var K4, NB;
|
|
|
74032
74065
|
function jn() {
|
|
74033
74066
|
if (NB) return K4;
|
|
74034
74067
|
NB = 1;
|
|
74035
|
-
var e = Eh(), t = typeof navigator > "u", n = { e: {} }, r, o = typeof self < "u" ? self : typeof window < "u" ? window : typeof
|
|
74068
|
+
var e = Eh(), t = typeof navigator > "u", n = { e: {} }, r, o = typeof self < "u" ? self : typeof window < "u" ? window : typeof jt < "u" || jt !== void 0 ? jt : null;
|
|
74036
74069
|
function i() {
|
|
74037
74070
|
try {
|
|
74038
74071
|
var $ = r;
|
|
@@ -74300,9 +74333,9 @@ function n_e() {
|
|
|
74300
74333
|
`);
|
|
74301
74334
|
}, r = e.getNativePromise();
|
|
74302
74335
|
if (e.isNode && typeof MutationObserver > "u") {
|
|
74303
|
-
var o =
|
|
74336
|
+
var o = jt.setImmediate, i = process.nextTick;
|
|
74304
74337
|
t = e.isRecentNode ? function(a) {
|
|
74305
|
-
o.call(
|
|
74338
|
+
o.call(jt, a);
|
|
74306
74339
|
} : function(a) {
|
|
74307
74340
|
i.call(process, a);
|
|
74308
74341
|
};
|
|
@@ -77297,7 +77330,7 @@ function M_e() {
|
|
|
77297
77330
|
promise: n
|
|
77298
77331
|
};
|
|
77299
77332
|
}
|
|
77300
|
-
var
|
|
77333
|
+
var Qt = {}, O_e = Qn, Gr = Qt.types = {
|
|
77301
77334
|
document: "document",
|
|
77302
77335
|
paragraph: "paragraph",
|
|
77303
77336
|
run: "run",
|
|
@@ -77495,27 +77528,27 @@ function Z_e(e) {
|
|
|
77495
77528
|
name: e.name
|
|
77496
77529
|
};
|
|
77497
77530
|
}
|
|
77498
|
-
|
|
77499
|
-
|
|
77500
|
-
|
|
77501
|
-
|
|
77502
|
-
|
|
77503
|
-
|
|
77504
|
-
|
|
77505
|
-
|
|
77506
|
-
|
|
77507
|
-
|
|
77508
|
-
|
|
77509
|
-
|
|
77510
|
-
|
|
77511
|
-
|
|
77512
|
-
|
|
77513
|
-
|
|
77514
|
-
|
|
77515
|
-
|
|
77516
|
-
|
|
77517
|
-
|
|
77518
|
-
|
|
77531
|
+
Qt.document = Qt.Document = R_e;
|
|
77532
|
+
Qt.paragraph = Qt.Paragraph = I_e;
|
|
77533
|
+
Qt.run = Qt.Run = L_e;
|
|
77534
|
+
Qt.text = Qt.Text = U_e;
|
|
77535
|
+
Qt.tab = Qt.Tab = P_e;
|
|
77536
|
+
Qt.checkbox = Qt.Checkbox = z_e;
|
|
77537
|
+
Qt.Hyperlink = $_e;
|
|
77538
|
+
Qt.noteReference = Qt.NoteReference = H_e;
|
|
77539
|
+
Qt.Notes = Wx;
|
|
77540
|
+
Qt.Note = W_e;
|
|
77541
|
+
Qt.commentReference = q_e;
|
|
77542
|
+
Qt.comment = V_e;
|
|
77543
|
+
Qt.Image = G_e;
|
|
77544
|
+
Qt.Table = K_e;
|
|
77545
|
+
Qt.TableRow = X_e;
|
|
77546
|
+
Qt.TableCell = Y_e;
|
|
77547
|
+
Qt.lineBreak = jE("line");
|
|
77548
|
+
Qt.pageBreak = jE("page");
|
|
77549
|
+
Qt.columnBreak = jE("column");
|
|
77550
|
+
Qt.BookmarkStart = Z_e;
|
|
77551
|
+
Qt.verticalAlignment = ZG;
|
|
77519
77552
|
var Ei = {}, o1 = Qn;
|
|
77520
77553
|
Ei.Result = pa;
|
|
77521
77554
|
Ei.success = J_e;
|
|
@@ -78642,7 +78675,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
78642
78675
|
r.exports = function(g) {
|
|
78643
78676
|
h.push(g) !== 1 || a || s();
|
|
78644
78677
|
};
|
|
78645
|
-
}).call(this, typeof
|
|
78678
|
+
}).call(this, typeof jt < "u" ? jt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
78646
78679
|
}, {}], 37: [function(n, r, o) {
|
|
78647
78680
|
var i = n("immediate");
|
|
78648
78681
|
function s() {
|
|
@@ -79881,7 +79914,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
79881
79914
|
v.source === s && typeof v.data == "string" && v.data.indexOf(d) === 0 && y(+v.data.slice(d.length));
|
|
79882
79915
|
}
|
|
79883
79916
|
})(typeof self > "u" ? i === void 0 ? this : i : self);
|
|
79884
|
-
}).call(this, typeof
|
|
79917
|
+
}).call(this, typeof jt < "u" ? jt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
79885
79918
|
}, {}] }, {}, [10])(10);
|
|
79886
79919
|
});
|
|
79887
79920
|
})(QG);
|
|
@@ -83830,7 +83863,7 @@ function Xu() {
|
|
|
83830
83863
|
}, t = function(u) {
|
|
83831
83864
|
return o(u.valueOf) ? u.valueOf() : u;
|
|
83832
83865
|
}, Ba.assign = e, Ba.isFunction = o, Ba.isObject = i, Ba.isArray = n, Ba.isEmpty = r, Ba.isPlainObject = s, Ba.getValue = t;
|
|
83833
|
-
}).call(
|
|
83866
|
+
}).call(jt)), Ba;
|
|
83834
83867
|
}
|
|
83835
83868
|
var AF = { exports: {} }, SF = { exports: {} }, TF = { exports: {} }, jF = { exports: {} }, SN;
|
|
83836
83869
|
function RK() {
|
|
@@ -83851,7 +83884,7 @@ function RK() {
|
|
|
83851
83884
|
return t = t || this.name, t == null ? "parent: <" + this.parent.name + ">" : "attribute: {" + t + "}, parent: <" + this.parent.name + ">";
|
|
83852
83885
|
}, e;
|
|
83853
83886
|
}();
|
|
83854
|
-
}).call(
|
|
83887
|
+
}).call(jt)), jF.exports;
|
|
83855
83888
|
}
|
|
83856
83889
|
var TN;
|
|
83857
83890
|
function Yx() {
|
|
@@ -83906,7 +83939,7 @@ function Yx() {
|
|
|
83906
83939
|
return this.attribute(c, d);
|
|
83907
83940
|
}, u;
|
|
83908
83941
|
}(t);
|
|
83909
|
-
}).call(
|
|
83942
|
+
}).call(jt)), TF.exports;
|
|
83910
83943
|
}
|
|
83911
83944
|
var BF = { exports: {} }, jN;
|
|
83912
83945
|
function Zx() {
|
|
@@ -83932,7 +83965,7 @@ function Zx() {
|
|
|
83932
83965
|
return this.options.writer.set(i).cdata(this);
|
|
83933
83966
|
}, o;
|
|
83934
83967
|
}(e);
|
|
83935
|
-
}).call(
|
|
83968
|
+
}).call(jt)), BF.exports;
|
|
83936
83969
|
}
|
|
83937
83970
|
var NF = { exports: {} }, BN;
|
|
83938
83971
|
function Jx() {
|
|
@@ -83958,7 +83991,7 @@ function Jx() {
|
|
|
83958
83991
|
return this.options.writer.set(i).comment(this);
|
|
83959
83992
|
}, o;
|
|
83960
83993
|
}(e);
|
|
83961
|
-
}).call(
|
|
83994
|
+
}).call(jt)), NF.exports;
|
|
83962
83995
|
}
|
|
83963
83996
|
var MF = { exports: {} }, NN;
|
|
83964
83997
|
function Qx() {
|
|
@@ -83981,7 +84014,7 @@ function Qx() {
|
|
|
83981
84014
|
return this.options.writer.set(s).declaration(this);
|
|
83982
84015
|
}, i;
|
|
83983
84016
|
}(e);
|
|
83984
|
-
}).call(
|
|
84017
|
+
}).call(jt)), MF.exports;
|
|
83985
84018
|
}
|
|
83986
84019
|
var OF = { exports: {} }, RF = { exports: {} }, MN;
|
|
83987
84020
|
function e3() {
|
|
@@ -84015,7 +84048,7 @@ function e3() {
|
|
|
84015
84048
|
return this.options.writer.set(i).dtdAttList(this);
|
|
84016
84049
|
}, o;
|
|
84017
84050
|
}(e);
|
|
84018
|
-
}).call(
|
|
84051
|
+
}).call(jt)), RF.exports;
|
|
84019
84052
|
}
|
|
84020
84053
|
var IF = { exports: {} }, ON;
|
|
84021
84054
|
function t3() {
|
|
@@ -84050,7 +84083,7 @@ function t3() {
|
|
|
84050
84083
|
return this.options.writer.set(s).dtdEntity(this);
|
|
84051
84084
|
}, i;
|
|
84052
84085
|
}(e);
|
|
84053
|
-
}).call(
|
|
84086
|
+
}).call(jt)), IF.exports;
|
|
84054
84087
|
}
|
|
84055
84088
|
var LF = { exports: {} }, RN;
|
|
84056
84089
|
function n3() {
|
|
@@ -84074,7 +84107,7 @@ function n3() {
|
|
|
84074
84107
|
return this.options.writer.set(i).dtdElement(this);
|
|
84075
84108
|
}, o;
|
|
84076
84109
|
}(e);
|
|
84077
|
-
}).call(
|
|
84110
|
+
}).call(jt)), LF.exports;
|
|
84078
84111
|
}
|
|
84079
84112
|
var UF = { exports: {} }, IN;
|
|
84080
84113
|
function r3() {
|
|
@@ -84100,7 +84133,7 @@ function r3() {
|
|
|
84100
84133
|
return this.options.writer.set(i).dtdNotation(this);
|
|
84101
84134
|
}, o;
|
|
84102
84135
|
}(e);
|
|
84103
|
-
}).call(
|
|
84136
|
+
}).call(jt)), UF.exports;
|
|
84104
84137
|
}
|
|
84105
84138
|
var LN;
|
|
84106
84139
|
function o3() {
|
|
@@ -84150,7 +84183,7 @@ function o3() {
|
|
|
84150
84183
|
return this.root() || this.documentObject;
|
|
84151
84184
|
}, u;
|
|
84152
84185
|
}(o);
|
|
84153
|
-
}).call(
|
|
84186
|
+
}).call(jt)), OF.exports;
|
|
84154
84187
|
}
|
|
84155
84188
|
var PF = { exports: {} }, UN;
|
|
84156
84189
|
function i3() {
|
|
@@ -84176,7 +84209,7 @@ function i3() {
|
|
|
84176
84209
|
return this.options.writer.set(i).raw(this);
|
|
84177
84210
|
}, o;
|
|
84178
84211
|
}(e);
|
|
84179
|
-
}).call(
|
|
84212
|
+
}).call(jt)), PF.exports;
|
|
84180
84213
|
}
|
|
84181
84214
|
var zF = { exports: {} }, PN;
|
|
84182
84215
|
function s3() {
|
|
@@ -84202,7 +84235,7 @@ function s3() {
|
|
|
84202
84235
|
return this.options.writer.set(i).text(this);
|
|
84203
84236
|
}, o;
|
|
84204
84237
|
}(e);
|
|
84205
|
-
}).call(
|
|
84238
|
+
}).call(jt)), zF.exports;
|
|
84206
84239
|
}
|
|
84207
84240
|
var $F = { exports: {} }, zN;
|
|
84208
84241
|
function a3() {
|
|
@@ -84228,7 +84261,7 @@ function a3() {
|
|
|
84228
84261
|
return this.options.writer.set(i).processingInstruction(this);
|
|
84229
84262
|
}, o;
|
|
84230
84263
|
}(e);
|
|
84231
|
-
}).call(
|
|
84264
|
+
}).call(jt)), $F.exports;
|
|
84232
84265
|
}
|
|
84233
84266
|
var HF = { exports: {} }, $N;
|
|
84234
84267
|
function qE() {
|
|
@@ -84252,7 +84285,7 @@ function qE() {
|
|
|
84252
84285
|
return "";
|
|
84253
84286
|
}, o;
|
|
84254
84287
|
}(e);
|
|
84255
|
-
}).call(
|
|
84288
|
+
}).call(jt)), HF.exports;
|
|
84256
84289
|
}
|
|
84257
84290
|
var HN;
|
|
84258
84291
|
function si() {
|
|
@@ -84430,7 +84463,7 @@ function si() {
|
|
|
84430
84463
|
return this.importDocument(m);
|
|
84431
84464
|
}, g;
|
|
84432
84465
|
}();
|
|
84433
|
-
}).call(
|
|
84466
|
+
}).call(jt)), SF.exports;
|
|
84434
84467
|
}
|
|
84435
84468
|
var WF = { exports: {} }, WN;
|
|
84436
84469
|
function IK() {
|
|
@@ -84507,7 +84540,7 @@ function IK() {
|
|
|
84507
84540
|
return o = this.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g, r.replace(o, "&").replace(/</g, "<").replace(/"/g, """).replace(/\t/g, "	").replace(/\n/g, "
").replace(/\r/g, "
");
|
|
84508
84541
|
}, n;
|
|
84509
84542
|
}();
|
|
84510
|
-
}).call(
|
|
84543
|
+
}).call(jt)), WF.exports;
|
|
84511
84544
|
}
|
|
84512
84545
|
var qF = { exports: {} }, VF = { exports: {} }, qN;
|
|
84513
84546
|
function LK() {
|
|
@@ -84533,7 +84566,7 @@ function LK() {
|
|
|
84533
84566
|
return this.pretty ? (r = (n || 0) + this.offset + 1, r > 0 ? new Array(r).join(this.indent) : "") : "";
|
|
84534
84567
|
}, t;
|
|
84535
84568
|
}();
|
|
84536
|
-
}).call(
|
|
84569
|
+
}).call(jt)), VF.exports;
|
|
84537
84570
|
}
|
|
84538
84571
|
var VN;
|
|
84539
84572
|
function VE() {
|
|
@@ -84684,7 +84717,7 @@ function VE() {
|
|
|
84684
84717
|
}
|
|
84685
84718
|
}, b;
|
|
84686
84719
|
}(h);
|
|
84687
|
-
}).call(
|
|
84720
|
+
}).call(jt)), qF.exports;
|
|
84688
84721
|
}
|
|
84689
84722
|
var GN;
|
|
84690
84723
|
function $Ae() {
|
|
@@ -84709,7 +84742,7 @@ function $Ae() {
|
|
|
84709
84742
|
return this.options.writer.set(l).document(this);
|
|
84710
84743
|
}, a;
|
|
84711
84744
|
}(e);
|
|
84712
|
-
}).call(
|
|
84745
|
+
}).call(jt)), AF.exports;
|
|
84713
84746
|
}
|
|
84714
84747
|
var GF = { exports: {} }, KN;
|
|
84715
84748
|
function HAe() {
|
|
@@ -84855,7 +84888,7 @@ function HAe() {
|
|
|
84855
84888
|
return this.notation(w, D);
|
|
84856
84889
|
}, k;
|
|
84857
84890
|
}();
|
|
84858
|
-
}).call(
|
|
84891
|
+
}).call(jt)), GF.exports;
|
|
84859
84892
|
}
|
|
84860
84893
|
var KF = { exports: {} }, XN;
|
|
84861
84894
|
function WAe() {
|
|
@@ -84994,7 +85027,7 @@ function WAe() {
|
|
|
84994
85027
|
return y.isLastRootNode ? "" : this.newline;
|
|
84995
85028
|
}, b;
|
|
84996
85029
|
}(h);
|
|
84997
|
-
}).call(
|
|
85030
|
+
}).call(jt)), KF.exports;
|
|
84998
85031
|
}
|
|
84999
85032
|
(function() {
|
|
85000
85033
|
var e, t, n, r, o, i, s;
|
|
@@ -85011,7 +85044,7 @@ function WAe() {
|
|
|
85011
85044
|
}, x0.streamWriter = function(a, l) {
|
|
85012
85045
|
return new n(a, l);
|
|
85013
85046
|
};
|
|
85014
|
-
}).call(
|
|
85047
|
+
}).call(jt);
|
|
85015
85048
|
var YN = Qn, qAe = x0;
|
|
85016
85049
|
OK.writeString = VAe;
|
|
85017
85050
|
function VAe(e, t) {
|
|
@@ -86167,7 +86200,7 @@ var eSe = [
|
|
|
86167
86200
|
{ "Typeface name": "Wingdings 3", "Dingbat dec": "240", "Dingbat hex": "F0", "Unicode dec": "129175", "Unicode hex": "1F897" }
|
|
86168
86201
|
];
|
|
86169
86202
|
KE.default = eSe;
|
|
86170
|
-
var tSe =
|
|
86203
|
+
var tSe = jt && jt.__importDefault || function(e) {
|
|
86171
86204
|
return e && e.__esModule ? e : { default: e };
|
|
86172
86205
|
};
|
|
86173
86206
|
Object.defineProperty(xu, "__esModule", { value: !0 });
|
|
@@ -86253,7 +86286,7 @@ function pSe(e, t) {
|
|
|
86253
86286
|
}
|
|
86254
86287
|
GE.createBodyReader = fSe;
|
|
86255
86288
|
GE._readNumberingProperties = VK;
|
|
86256
|
-
var eM = xu, Mi = Qn, Nn =
|
|
86289
|
+
var eM = xu, Mi = Qn, Nn = Qt, qK = Ei.Result, Na = Ei.warning, hSe = Tl, tM = Yu, nM = ZE;
|
|
86257
86290
|
function fSe(e) {
|
|
86258
86291
|
return {
|
|
86259
86292
|
readXmlElement: function(t) {
|
|
@@ -86770,7 +86803,7 @@ function bSe(e) {
|
|
|
86770
86803
|
}
|
|
86771
86804
|
var GK = {};
|
|
86772
86805
|
GK.DocumentXmlReader = vSe;
|
|
86773
|
-
var ySe =
|
|
86806
|
+
var ySe = Qt, xSe = Ei.Result;
|
|
86774
86807
|
function vSe(e) {
|
|
86775
86808
|
var t = e.bodyReader;
|
|
86776
86809
|
function n(r) {
|
|
@@ -86980,9 +87013,9 @@ function jSe(e, t) {
|
|
|
86980
87013
|
function XK(e) {
|
|
86981
87014
|
return e.attributes["w:styleId"];
|
|
86982
87015
|
}
|
|
86983
|
-
var t7 = {}, BSe =
|
|
86984
|
-
t7.createFootnotesReader = YK.bind(
|
|
86985
|
-
t7.createEndnotesReader = YK.bind(
|
|
87016
|
+
var t7 = {}, BSe = Qt, NSe = Ei.Result;
|
|
87017
|
+
t7.createFootnotesReader = YK.bind(jt, "footnote");
|
|
87018
|
+
t7.createEndnotesReader = YK.bind(jt, "endnote");
|
|
86986
87019
|
function YK(e, t) {
|
|
86987
87020
|
function n(i) {
|
|
86988
87021
|
return NSe.combine(i.getElementsByTagName("w:" + e).filter(r).map(o));
|
|
@@ -86999,7 +87032,7 @@ function YK(e, t) {
|
|
|
86999
87032
|
}
|
|
87000
87033
|
return n;
|
|
87001
87034
|
}
|
|
87002
|
-
var ZK = {}, MSe =
|
|
87035
|
+
var ZK = {}, MSe = Qt, OSe = Ei.Result;
|
|
87003
87036
|
function RSe(e) {
|
|
87004
87037
|
function t(r) {
|
|
87005
87038
|
return OSe.combine(r.getElementsByTagName("w:comment").map(n));
|
|
@@ -87034,7 +87067,7 @@ cannot open linked files from a web browser`));
|
|
|
87034
87067
|
}
|
|
87035
87068
|
TE.read = qSe;
|
|
87036
87069
|
TE._findPartPaths = eX;
|
|
87037
|
-
var USe = Or, PSe =
|
|
87070
|
+
var USe = Or, PSe = Qt, ZF = Ei.Result, ny = tg, QK = NE.readXmlFromZipFile, zSe = GE.createBodyReader, $Se = GK.DocumentXmlReader, eh = c3, iM = QE, sM = d3, aM = p3, lM = t7, HSe = ZK, WSe = JK.Files;
|
|
87038
87071
|
function qSe(e, t, n) {
|
|
87039
87072
|
t = t || {}, n = n || {};
|
|
87040
87073
|
var r = new WSe({
|
|
@@ -87643,7 +87676,7 @@ iX.writer = bTe;
|
|
|
87643
87676
|
function bTe(e) {
|
|
87644
87677
|
return e = e || {}, e.outputFormat === "markdown" ? mTe.writer() : gTe.writer(e);
|
|
87645
87678
|
}
|
|
87646
|
-
var Xl = Qn, mM = Or, n2 =
|
|
87679
|
+
var Xl = Qn, mM = Or, n2 = Qt, _i = f3(), iD = Ei, yTe = o7, tn = h3(), xTe = iX;
|
|
87647
87680
|
r7.DocumentConverter = vTe;
|
|
87648
87681
|
function vTe(e) {
|
|
87649
87682
|
return {
|
|
@@ -87684,7 +87717,7 @@ function FTe(e, t) {
|
|
|
87684
87717
|
prettyPrint: e.prettyPrint,
|
|
87685
87718
|
outputFormat: e.outputFormat
|
|
87686
87719
|
});
|
|
87687
|
-
return
|
|
87720
|
+
return tn.write(le, tn.simplify(re(q))), new iD.Result(le.asString(), I);
|
|
87688
87721
|
});
|
|
87689
87722
|
}
|
|
87690
87723
|
function c(L, I, q) {
|
|
@@ -87701,7 +87734,7 @@ function FTe(e, t) {
|
|
|
87701
87734
|
function p(L, I, q) {
|
|
87702
87735
|
return h(L, I).wrap(function() {
|
|
87703
87736
|
var z = c(L.children, I, q);
|
|
87704
|
-
return s ? z : [
|
|
87737
|
+
return s ? z : [tn.forceWrite].concat(z);
|
|
87705
87738
|
});
|
|
87706
87739
|
}
|
|
87707
87740
|
function h(L, I) {
|
|
@@ -87790,51 +87823,51 @@ function FTe(e, t) {
|
|
|
87790
87823
|
Xl.extend({}, q, { isTableHeader: !1 })
|
|
87791
87824
|
);
|
|
87792
87825
|
$ = [
|
|
87793
|
-
|
|
87794
|
-
|
|
87826
|
+
tn.freshElement("thead", {}, re),
|
|
87827
|
+
tn.freshElement("tbody", {}, le)
|
|
87795
87828
|
];
|
|
87796
87829
|
}
|
|
87797
|
-
return [
|
|
87830
|
+
return [tn.forceWrite].concat($);
|
|
87798
87831
|
}
|
|
87799
87832
|
function T(L, I, q) {
|
|
87800
87833
|
var z = c(L.children, I, q);
|
|
87801
87834
|
return [
|
|
87802
|
-
|
|
87835
|
+
tn.freshElement("tr", {}, [tn.forceWrite].concat(z))
|
|
87803
87836
|
];
|
|
87804
87837
|
}
|
|
87805
87838
|
function _(L, I, q) {
|
|
87806
87839
|
var z = q.isTableHeader ? "th" : "td", $ = c(L.children, I, q), re = {};
|
|
87807
87840
|
return L.colSpan !== 1 && (re.colspan = L.colSpan.toString()), L.rowSpan !== 1 && (re.rowspan = L.rowSpan.toString()), [
|
|
87808
|
-
|
|
87841
|
+
tn.freshElement(z, re, [tn.forceWrite].concat($))
|
|
87809
87842
|
];
|
|
87810
87843
|
}
|
|
87811
87844
|
function N(L, I, q) {
|
|
87812
87845
|
return m(L, _i.ignore).wrap(function() {
|
|
87813
87846
|
var z = t[L.commentId], $ = o.length + 1, re = "[" + kTe(z) + $ + "]";
|
|
87814
87847
|
return o.push({ label: re, comment: z }), [
|
|
87815
|
-
|
|
87848
|
+
tn.freshElement("a", {
|
|
87816
87849
|
href: "#" + k("comment", L.commentId),
|
|
87817
87850
|
id: w("comment", L.commentId)
|
|
87818
|
-
}, [
|
|
87851
|
+
}, [tn.text(re)])
|
|
87819
87852
|
];
|
|
87820
87853
|
});
|
|
87821
87854
|
}
|
|
87822
87855
|
function E(L, I, q) {
|
|
87823
87856
|
var z = L.label, $ = L.comment, re = c($.body, I, q).concat([
|
|
87824
|
-
|
|
87825
|
-
|
|
87826
|
-
|
|
87827
|
-
|
|
87857
|
+
tn.nonFreshElement("p", {}, [
|
|
87858
|
+
tn.text(" "),
|
|
87859
|
+
tn.freshElement("a", { href: "#" + w("comment", $.commentId) }, [
|
|
87860
|
+
tn.text("↑")
|
|
87828
87861
|
])
|
|
87829
87862
|
])
|
|
87830
87863
|
]);
|
|
87831
87864
|
return [
|
|
87832
|
-
|
|
87865
|
+
tn.freshElement(
|
|
87833
87866
|
"dt",
|
|
87834
87867
|
{ id: k("comment", $.commentId) },
|
|
87835
|
-
[
|
|
87868
|
+
[tn.text("Comment " + z)]
|
|
87836
87869
|
),
|
|
87837
|
-
|
|
87870
|
+
tn.freshElement("dd", {}, re)
|
|
87838
87871
|
];
|
|
87839
87872
|
}
|
|
87840
87873
|
function M(L, I, q) {
|
|
@@ -87852,8 +87885,8 @@ function FTe(e, t) {
|
|
|
87852
87885
|
return L.notes.resolve(le);
|
|
87853
87886
|
}), re = c($, I, q);
|
|
87854
87887
|
return z.concat([
|
|
87855
|
-
|
|
87856
|
-
|
|
87888
|
+
tn.freshElement("ol", {}, re),
|
|
87889
|
+
tn.freshElement("dl", {}, QF(o, function(le) {
|
|
87857
87890
|
return E(le, I, q);
|
|
87858
87891
|
}))
|
|
87859
87892
|
]);
|
|
@@ -87861,41 +87894,41 @@ function FTe(e, t) {
|
|
|
87861
87894
|
paragraph: p,
|
|
87862
87895
|
run: f,
|
|
87863
87896
|
text: function(L, I, q) {
|
|
87864
|
-
return [
|
|
87897
|
+
return [tn.text(L.value)];
|
|
87865
87898
|
},
|
|
87866
87899
|
tab: function(L, I, q) {
|
|
87867
|
-
return [
|
|
87900
|
+
return [tn.text(" ")];
|
|
87868
87901
|
},
|
|
87869
87902
|
hyperlink: function(L, I, q) {
|
|
87870
87903
|
var z = L.anchor ? "#" + D(L.anchor) : L.href, $ = { href: z };
|
|
87871
87904
|
L.targetFrame != null && ($.target = L.targetFrame);
|
|
87872
87905
|
var re = c(L.children, I, q);
|
|
87873
|
-
return [
|
|
87906
|
+
return [tn.nonFreshElement("a", $, re)];
|
|
87874
87907
|
},
|
|
87875
87908
|
checkbox: function(L) {
|
|
87876
87909
|
var I = { type: "checkbox" };
|
|
87877
|
-
return L.checked && (I.checked = "checked"), [
|
|
87910
|
+
return L.checked && (I.checked = "checked"), [tn.freshElement("input", I)];
|
|
87878
87911
|
},
|
|
87879
87912
|
bookmarkStart: function(L, I, q) {
|
|
87880
|
-
var z =
|
|
87913
|
+
var z = tn.freshElement("a", {
|
|
87881
87914
|
id: D(L.name)
|
|
87882
|
-
}, [
|
|
87915
|
+
}, [tn.forceWrite]);
|
|
87883
87916
|
return [z];
|
|
87884
87917
|
},
|
|
87885
87918
|
noteReference: function(L, I, q) {
|
|
87886
87919
|
r.push(L);
|
|
87887
|
-
var z =
|
|
87920
|
+
var z = tn.freshElement("a", {
|
|
87888
87921
|
href: "#" + x(L),
|
|
87889
87922
|
id: v(L)
|
|
87890
|
-
}, [
|
|
87891
|
-
return [
|
|
87923
|
+
}, [tn.text("[" + n++ + "]")]);
|
|
87924
|
+
return [tn.freshElement("sup", {}, [z])];
|
|
87892
87925
|
},
|
|
87893
87926
|
note: function(L, I, q) {
|
|
87894
|
-
var z = c(L.body, I, q), $ =
|
|
87895
|
-
|
|
87896
|
-
|
|
87927
|
+
var z = c(L.body, I, q), $ = tn.elementWithTag(_i.element("p", {}, { fresh: !1 }), [
|
|
87928
|
+
tn.text(" "),
|
|
87929
|
+
tn.freshElement("a", { href: "#" + v(L) }, [tn.text("↑")])
|
|
87897
87930
|
]), re = z.concat([$]);
|
|
87898
|
-
return
|
|
87931
|
+
return tn.freshElement("li", { id: x(L) }, re);
|
|
87899
87932
|
},
|
|
87900
87933
|
commentReference: N,
|
|
87901
87934
|
comment: E,
|
|
@@ -87938,7 +87971,7 @@ function pX(e, t) {
|
|
|
87938
87971
|
}
|
|
87939
87972
|
var kTe = r7.commentAuthorLabel = function(t) {
|
|
87940
87973
|
return t.authorInitials || "";
|
|
87941
|
-
}, hX = {}, ETe =
|
|
87974
|
+
}, hX = {}, ETe = Qt;
|
|
87942
87975
|
function fX(e) {
|
|
87943
87976
|
if (e.type === "text")
|
|
87944
87977
|
return e.value;
|
|
@@ -89108,7 +89141,7 @@ function Dje(e, t) {
|
|
|
89108
89141
|
Qo.styleMapping = function() {
|
|
89109
89142
|
throw new Error(`Use a raw string instead of mammoth.styleMapping e.g. "p[style-name='Title'] => h1" instead of mammoth.styleMapping("p[style-name='Title'] => h1")`);
|
|
89110
89143
|
};
|
|
89111
|
-
const kje =
|
|
89144
|
+
const kje = wt.create({
|
|
89112
89145
|
name: "docxFileHandler",
|
|
89113
89146
|
addCommands() {
|
|
89114
89147
|
return {
|
|
@@ -90063,7 +90096,7 @@ const LX = { addInlineMath: !0, evaluation: !1, delimiters: "dollar", renderText
|
|
|
90063
90096
|
let n = "x";
|
|
90064
90097
|
return e.attrs.latex && typeof e.attrs.latex == "string" && (n = e.attrs.latex), [
|
|
90065
90098
|
"span",
|
|
90066
|
-
|
|
90099
|
+
Bt(t, {
|
|
90067
90100
|
"data-type": this.name
|
|
90068
90101
|
}),
|
|
90069
90102
|
mm(e.attrs.display === "yes" ? "block" : "inline", "start", this.options) + n + mm(e.attrs.display === "yes" ? "block" : "inline", "end", this.options)
|
|
@@ -90144,7 +90177,7 @@ function mm(e, t, n) {
|
|
|
90144
90177
|
var r, o, i, s;
|
|
90145
90178
|
return n.delimiters === void 0 || n.delimiters === "dollar" ? e === "inline" ? "$" : "$$" : n.delimiters === "bracket" ? e === "inline" ? t === "start" ? String.raw`\(` : String.raw`\)` : t === "start" ? String.raw`\[` : String.raw`\]` : e === "inline" ? t === "start" ? (r = n.delimiters.inlineStart) !== null && r !== void 0 ? r : "$" : (o = n.delimiters.inlineEnd) !== null && o !== void 0 ? o : "$" : t === "start" ? (i = n.delimiters.blockStart) !== null && i !== void 0 ? i : "$$" : (s = n.delimiters.blockEnd) !== null && s !== void 0 ? s : "$$";
|
|
90146
90179
|
}
|
|
90147
|
-
const wBe = "mathExtension", DBe =
|
|
90180
|
+
const wBe = "mathExtension", DBe = wt.create({
|
|
90148
90181
|
name: wBe,
|
|
90149
90182
|
addOptions() {
|
|
90150
90183
|
return LX;
|
|
@@ -90165,7 +90198,7 @@ const wBe = "mathExtension", DBe = Ft.create({
|
|
|
90165
90198
|
];
|
|
90166
90199
|
},
|
|
90167
90200
|
renderHTML({ HTMLAttributes: e }) {
|
|
90168
|
-
return ["footnote",
|
|
90201
|
+
return ["footnote", Bt(e), 0];
|
|
90169
90202
|
}
|
|
90170
90203
|
});
|
|
90171
90204
|
At.create({
|
|
@@ -90188,7 +90221,7 @@ At.create({
|
|
|
90188
90221
|
];
|
|
90189
90222
|
},
|
|
90190
90223
|
renderHTML({ HTMLAttributes: e }) {
|
|
90191
|
-
return ["footnote-ref",
|
|
90224
|
+
return ["footnote-ref", Bt(e)];
|
|
90192
90225
|
}
|
|
90193
90226
|
});
|
|
90194
90227
|
var EBe = Mr.create({
|
|
@@ -90212,7 +90245,7 @@ var EBe = Mr.create({
|
|
|
90212
90245
|
];
|
|
90213
90246
|
},
|
|
90214
90247
|
renderHTML({ HTMLAttributes: e }) {
|
|
90215
|
-
return ["sup",
|
|
90248
|
+
return ["sup", Bt(this.options.HTMLAttributes, e), 0];
|
|
90216
90249
|
},
|
|
90217
90250
|
addCommands() {
|
|
90218
90251
|
return {
|
|
@@ -90247,7 +90280,7 @@ var EBe = Mr.create({
|
|
|
90247
90280
|
];
|
|
90248
90281
|
},
|
|
90249
90282
|
renderHTML({ HTMLAttributes: e }) {
|
|
90250
|
-
return ["sub",
|
|
90283
|
+
return ["sub", Bt(this.options.HTMLAttributes, e), 0];
|
|
90251
90284
|
},
|
|
90252
90285
|
addCommands() {
|
|
90253
90286
|
return {
|
|
@@ -90423,10 +90456,10 @@ const SBe = (e, t) => new Et({
|
|
|
90423
90456
|
const { "media-type": t } = e;
|
|
90424
90457
|
return t === "img" ? [
|
|
90425
90458
|
"img",
|
|
90426
|
-
|
|
90459
|
+
Bt(this.options.HTMLAttributes, e)
|
|
90427
90460
|
] : t === "secure-img" ? [
|
|
90428
90461
|
"img",
|
|
90429
|
-
|
|
90462
|
+
Bt(this.options.HTMLAttributes, e)
|
|
90430
90463
|
] : t === "video" ? [
|
|
90431
90464
|
"video",
|
|
90432
90465
|
{ controls: "true", style: "width: 100%", ...e },
|
|
@@ -90435,7 +90468,7 @@ const SBe = (e, t) => new Et({
|
|
|
90435
90468
|
"TiptapMediaExtension-renderHTML method: Media Type not set, going default with image"
|
|
90436
90469
|
), [
|
|
90437
90470
|
"img",
|
|
90438
|
-
|
|
90471
|
+
Bt(this.options.HTMLAttributes, e)
|
|
90439
90472
|
]);
|
|
90440
90473
|
},
|
|
90441
90474
|
addCommands() {
|
|
@@ -90626,7 +90659,7 @@ const NBe = ({
|
|
|
90626
90659
|
] })
|
|
90627
90660
|
] })
|
|
90628
90661
|
] }) : /* @__PURE__ */ F.jsx("p", { className: "text-helper-text-sm color-text-secondary", children: "No preview available" }) });
|
|
90629
|
-
}, MBe =
|
|
90662
|
+
}, MBe = wt.create({
|
|
90630
90663
|
name: "linkPreview",
|
|
90631
90664
|
addProseMirrorPlugins() {
|
|
90632
90665
|
if (!this.options.metadataProxyUrl) return [];
|
|
@@ -90749,11 +90782,11 @@ const NBe = ({
|
|
|
90749
90782
|
renderHTML({ HTMLAttributes: e }) {
|
|
90750
90783
|
return [
|
|
90751
90784
|
"aside",
|
|
90752
|
-
|
|
90785
|
+
Bt(this.options.HTMLAttributes, e),
|
|
90753
90786
|
0
|
|
90754
90787
|
];
|
|
90755
90788
|
}
|
|
90756
|
-
}), RBe =
|
|
90789
|
+
}), RBe = wt.create({
|
|
90757
90790
|
name: "fontSize",
|
|
90758
90791
|
addOptions() {
|
|
90759
90792
|
return {
|
|
@@ -90847,7 +90880,7 @@ const NBe = ({
|
|
|
90847
90880
|
"Mod-Shift-,": () => this.editor.commands.decreaseFontSize()
|
|
90848
90881
|
};
|
|
90849
90882
|
}
|
|
90850
|
-
}), IBe =
|
|
90883
|
+
}), IBe = wt.create({
|
|
90851
90884
|
name: "fontFamilyPersistence",
|
|
90852
90885
|
addCommands() {
|
|
90853
90886
|
const e = (t) => {
|
|
@@ -90890,7 +90923,7 @@ const NBe = ({
|
|
|
90890
90923
|
}
|
|
90891
90924
|
];
|
|
90892
90925
|
}
|
|
90893
|
-
}), LBe =
|
|
90926
|
+
}), LBe = wt.create({
|
|
90894
90927
|
name: "typographyPersistence",
|
|
90895
90928
|
addProseMirrorPlugins() {
|
|
90896
90929
|
return [
|
|
@@ -92230,7 +92263,7 @@ function UNe({
|
|
|
92230
92263
|
value: a,
|
|
92231
92264
|
onValueChange: (y) => t({ language: y }),
|
|
92232
92265
|
children: [
|
|
92233
|
-
/* @__PURE__ */ F.jsx(Q0, { className: "!min-w-24 text-helper-text-sm h-7 px-2 py-1 color-bg-secondary border-none", children: /* @__PURE__ */ F.jsxs(
|
|
92266
|
+
/* @__PURE__ */ F.jsx(Q0, { className: "!min-w-24 text-helper-text-sm h-7 px-2 py-1 color-bg-secondary border-none", children: /* @__PURE__ */ F.jsxs(Jt, { text: "Select language", children: [
|
|
92234
92267
|
/* @__PURE__ */ F.jsx(d2, { placeholder: "Select language" }),
|
|
92235
92268
|
/* @__PURE__ */ F.jsx("span", { className: "w-1" })
|
|
92236
92269
|
] }) }),
|
|
@@ -92257,7 +92290,7 @@ function UNe({
|
|
|
92257
92290
|
}
|
|
92258
92291
|
),
|
|
92259
92292
|
/* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
|
|
92260
|
-
/* @__PURE__ */ F.jsx(
|
|
92293
|
+
/* @__PURE__ */ F.jsx(Jt, { text: "Copy code", children: /* @__PURE__ */ F.jsx(
|
|
92261
92294
|
Xt,
|
|
92262
92295
|
{
|
|
92263
92296
|
variant: "ghost",
|
|
@@ -92291,7 +92324,7 @@ function UNe({
|
|
|
92291
92324
|
}
|
|
92292
92325
|
) }),
|
|
92293
92326
|
/* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
|
|
92294
|
-
/* @__PURE__ */ F.jsx(
|
|
92327
|
+
/* @__PURE__ */ F.jsx(Jt, { text: "Line numbers", children: /* @__PURE__ */ F.jsx(
|
|
92295
92328
|
Xt,
|
|
92296
92329
|
{
|
|
92297
92330
|
variant: "ghost",
|
|
@@ -92305,7 +92338,7 @@ function UNe({
|
|
|
92305
92338
|
}
|
|
92306
92339
|
) }),
|
|
92307
92340
|
/* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
|
|
92308
|
-
/* @__PURE__ */ F.jsx(
|
|
92341
|
+
/* @__PURE__ */ F.jsx(Jt, { text: "Word wrap", children: /* @__PURE__ */ F.jsx(
|
|
92309
92342
|
Xt,
|
|
92310
92343
|
{
|
|
92311
92344
|
variant: "ghost",
|
|
@@ -92325,7 +92358,7 @@ function UNe({
|
|
|
92325
92358
|
value: String(d),
|
|
92326
92359
|
onValueChange: (y) => t({ tabSize: Number(y) }),
|
|
92327
92360
|
children: [
|
|
92328
|
-
/* @__PURE__ */ F.jsx(Q0, { className: "w-full text-helper-text-sm h-7 px-2 py-1 color-bg-secondary border-none", children: /* @__PURE__ */ F.jsxs(
|
|
92361
|
+
/* @__PURE__ */ F.jsx(Q0, { className: "w-full text-helper-text-sm h-7 px-2 py-1 color-bg-secondary border-none", children: /* @__PURE__ */ F.jsxs(Jt, { text: "Tab size", children: [
|
|
92329
92362
|
/* @__PURE__ */ F.jsxs("span", { className: "!hidden sm:!block", children: [
|
|
92330
92363
|
"Tab: ",
|
|
92331
92364
|
d
|
|
@@ -92352,7 +92385,7 @@ function UNe({
|
|
|
92352
92385
|
}
|
|
92353
92386
|
)
|
|
92354
92387
|
] }),
|
|
92355
|
-
/* @__PURE__ */ F.jsx(
|
|
92388
|
+
/* @__PURE__ */ F.jsx(Jt, { text: "Delete code block", children: /* @__PURE__ */ F.jsx(
|
|
92356
92389
|
Ue,
|
|
92357
92390
|
{
|
|
92358
92391
|
name: "Trash2",
|
|
@@ -92371,7 +92404,7 @@ function UNe({
|
|
|
92371
92404
|
"absolute top-3 right-3 hidden z-10 color-bg-default",
|
|
92372
92405
|
l && "flex"
|
|
92373
92406
|
),
|
|
92374
|
-
children: /* @__PURE__ */ F.jsx(
|
|
92407
|
+
children: /* @__PURE__ */ F.jsx(Jt, { text: "Copy code", children: /* @__PURE__ */ F.jsxs("div", { className: "relative w-4 h-4", onClick: b, children: [
|
|
92375
92408
|
/* @__PURE__ */ F.jsx(
|
|
92376
92409
|
Ue,
|
|
92377
92410
|
{
|
|
@@ -102950,9 +102983,9 @@ function iY(e) {
|
|
|
102950
102983
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
102951
102984
|
}
|
|
102952
102985
|
function i0(e) {
|
|
102953
|
-
return
|
|
102986
|
+
return wn("(?=", e, ")");
|
|
102954
102987
|
}
|
|
102955
|
-
function
|
|
102988
|
+
function wn(...e) {
|
|
102956
102989
|
return e.map((n) => iY(n)).join("");
|
|
102957
102990
|
}
|
|
102958
102991
|
function GMe(e) {
|
|
@@ -102962,7 +102995,7 @@ function GMe(e) {
|
|
|
102962
102995
|
function bo(...e) {
|
|
102963
102996
|
return "(" + (GMe(e).capture ? "" : "?:") + e.map((r) => iY(r)).join("|") + ")";
|
|
102964
102997
|
}
|
|
102965
|
-
const v7 = (e) =>
|
|
102998
|
+
const v7 = (e) => wn(
|
|
102966
102999
|
/\b/,
|
|
102967
103000
|
e,
|
|
102968
103001
|
/\w$/.test(e) ? /\b/ : /\B/
|
|
@@ -103208,7 +103241,7 @@ const v7 = (e) => Fn(
|
|
|
103208
103241
|
/[\uFE20-\uFE2F]/
|
|
103209
103242
|
// TODO: The following characters are also allowed, but the regex isn't supported yet.
|
|
103210
103243
|
// /[\u{E0100}-\u{E01EF}]/u
|
|
103211
|
-
), a6 =
|
|
103244
|
+
), a6 = wn(sY, aY, "*"), lY = bo(
|
|
103212
103245
|
/[a-zA-Z_]/,
|
|
103213
103246
|
/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,
|
|
103214
103247
|
/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,
|
|
@@ -103230,10 +103263,10 @@ const v7 = (e) => Fn(
|
|
|
103230
103263
|
lY,
|
|
103231
103264
|
/\d/,
|
|
103232
103265
|
/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
|
|
103233
|
-
), Is =
|
|
103266
|
+
), Is = wn(lY, sy, "*"), Dm = wn(/[A-Z]/, sy, "*"), JMe = [
|
|
103234
103267
|
"attached",
|
|
103235
103268
|
"autoclosure",
|
|
103236
|
-
|
|
103269
|
+
wn(/convention\(/, bo("swift", "block", "c"), /\)/),
|
|
103237
103270
|
"discardableResult",
|
|
103238
103271
|
"dynamicCallable",
|
|
103239
103272
|
"dynamicMemberLookup",
|
|
@@ -103252,7 +103285,7 @@ const v7 = (e) => Fn(
|
|
|
103252
103285
|
"NSApplicationMain",
|
|
103253
103286
|
"NSCopying",
|
|
103254
103287
|
"NSManaged",
|
|
103255
|
-
|
|
103288
|
+
wn(/objc\(/, Is, /\)/),
|
|
103256
103289
|
"objc",
|
|
103257
103290
|
"objcMembers",
|
|
103258
103291
|
"propertyWrapper",
|
|
@@ -103297,7 +103330,7 @@ function eOe(e) {
|
|
|
103297
103330
|
className: { 2: "keyword" }
|
|
103298
103331
|
}, i = {
|
|
103299
103332
|
// Consume .keyword to prevent highlighting properties and methods as keywords.
|
|
103300
|
-
match:
|
|
103333
|
+
match: wn(/\./, bo(...s6)),
|
|
103301
103334
|
relevance: 0
|
|
103302
103335
|
}, s = s6.filter((ae) => typeof ae == "string").concat(["_|0"]), a = s6.filter((ae) => typeof ae != "string").concat(XMe).map(v7), l = { variants: [
|
|
103303
103336
|
{
|
|
@@ -103319,11 +103352,11 @@ function eOe(e) {
|
|
|
103319
103352
|
l
|
|
103320
103353
|
], d = {
|
|
103321
103354
|
// Consume .built_in to prevent highlighting properties and methods.
|
|
103322
|
-
match:
|
|
103355
|
+
match: wn(/\./, bo(...PM)),
|
|
103323
103356
|
relevance: 0
|
|
103324
103357
|
}, p = {
|
|
103325
103358
|
className: "built_in",
|
|
103326
|
-
match:
|
|
103359
|
+
match: wn(/\b/, bo(...PM), /(?=\()/)
|
|
103327
103360
|
}, h = [
|
|
103328
103361
|
d,
|
|
103329
103362
|
p
|
|
@@ -103362,28 +103395,28 @@ function eOe(e) {
|
|
|
103362
103395
|
}, v = (ae = "") => ({
|
|
103363
103396
|
className: "subst",
|
|
103364
103397
|
variants: [
|
|
103365
|
-
{ match:
|
|
103366
|
-
{ match:
|
|
103398
|
+
{ match: wn(/\\/, ae, /[0\\tnr"']/) },
|
|
103399
|
+
{ match: wn(/\\/, ae, /u\{[0-9a-fA-F]{1,8}\}/) }
|
|
103367
103400
|
]
|
|
103368
103401
|
}), k = (ae = "") => ({
|
|
103369
103402
|
className: "subst",
|
|
103370
|
-
match:
|
|
103403
|
+
match: wn(/\\/, ae, /[\t ]*(?:[\r\n]|\r\n)/)
|
|
103371
103404
|
}), w = (ae = "") => ({
|
|
103372
103405
|
className: "subst",
|
|
103373
103406
|
label: "interpol",
|
|
103374
|
-
begin:
|
|
103407
|
+
begin: wn(/\\/, ae, /\(/),
|
|
103375
103408
|
end: /\)/
|
|
103376
103409
|
}), D = (ae = "") => ({
|
|
103377
|
-
begin:
|
|
103378
|
-
end:
|
|
103410
|
+
begin: wn(ae, /"""/),
|
|
103411
|
+
end: wn(/"""/, ae),
|
|
103379
103412
|
contains: [
|
|
103380
103413
|
v(ae),
|
|
103381
103414
|
k(ae),
|
|
103382
103415
|
w(ae)
|
|
103383
103416
|
]
|
|
103384
103417
|
}), C = (ae = "") => ({
|
|
103385
|
-
begin:
|
|
103386
|
-
end:
|
|
103418
|
+
begin: wn(ae, /"/),
|
|
103419
|
+
end: wn(/"/, ae),
|
|
103387
103420
|
contains: [
|
|
103388
103421
|
v(ae),
|
|
103389
103422
|
w(ae)
|
|
@@ -103413,7 +103446,7 @@ function eOe(e) {
|
|
|
103413
103446
|
end: /\//,
|
|
103414
103447
|
contains: R
|
|
103415
103448
|
}, _ = (ae) => {
|
|
103416
|
-
const K =
|
|
103449
|
+
const K = wn(ae, /\//), V = wn(/\//, ae);
|
|
103417
103450
|
return {
|
|
103418
103451
|
begin: K,
|
|
103419
103452
|
end: V,
|
|
@@ -103434,7 +103467,7 @@ function eOe(e) {
|
|
|
103434
103467
|
_("#"),
|
|
103435
103468
|
T
|
|
103436
103469
|
]
|
|
103437
|
-
}, E = { match:
|
|
103470
|
+
}, E = { match: wn(/`/, Is, /`/) }, M = {
|
|
103438
103471
|
className: "variable",
|
|
103439
103472
|
match: /\$\d+/
|
|
103440
103473
|
}, j = {
|
|
@@ -103461,10 +103494,10 @@ function eOe(e) {
|
|
|
103461
103494
|
] }
|
|
103462
103495
|
}, I = {
|
|
103463
103496
|
scope: "keyword",
|
|
103464
|
-
match:
|
|
103497
|
+
match: wn(/@/, bo(...JMe), i0(bo(/\(/, /\s+/)))
|
|
103465
103498
|
}, q = {
|
|
103466
103499
|
scope: "meta",
|
|
103467
|
-
match:
|
|
103500
|
+
match: wn(/@/, Is)
|
|
103468
103501
|
}, z = [
|
|
103469
103502
|
L,
|
|
103470
103503
|
I,
|
|
@@ -103476,7 +103509,7 @@ function eOe(e) {
|
|
|
103476
103509
|
{
|
|
103477
103510
|
// Common Apple frameworks, for relevance boost
|
|
103478
103511
|
className: "type",
|
|
103479
|
-
match:
|
|
103512
|
+
match: wn(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, sy, "+")
|
|
103480
103513
|
},
|
|
103481
103514
|
{
|
|
103482
103515
|
// Type identifier
|
|
@@ -103496,7 +103529,7 @@ function eOe(e) {
|
|
|
103496
103529
|
},
|
|
103497
103530
|
{
|
|
103498
103531
|
// Protocol composition
|
|
103499
|
-
match:
|
|
103532
|
+
match: wn(/\s+&\s+/, i0(Dm)),
|
|
103500
103533
|
relevance: 0
|
|
103501
103534
|
}
|
|
103502
103535
|
]
|
|
@@ -103514,7 +103547,7 @@ function eOe(e) {
|
|
|
103514
103547
|
};
|
|
103515
103548
|
$.contains.push(re);
|
|
103516
103549
|
const le = {
|
|
103517
|
-
match:
|
|
103550
|
+
match: wn(Is, /\s*:/),
|
|
103518
103551
|
keywords: "_|0",
|
|
103519
103552
|
relevance: 0
|
|
103520
103553
|
}, ne = {
|
|
@@ -103546,8 +103579,8 @@ function eOe(e) {
|
|
|
103546
103579
|
]
|
|
103547
103580
|
}, Q = {
|
|
103548
103581
|
begin: bo(
|
|
103549
|
-
i0(
|
|
103550
|
-
i0(
|
|
103582
|
+
i0(wn(Is, /\s*:/)),
|
|
103583
|
+
i0(wn(Is, /\s+/, Is, /\s*:/))
|
|
103551
103584
|
),
|
|
103552
103585
|
end: /:/,
|
|
103553
103586
|
relevance: 0,
|
|
@@ -105338,7 +105371,7 @@ class cOe {
|
|
|
105338
105371
|
return "";
|
|
105339
105372
|
}
|
|
105340
105373
|
}
|
|
105341
|
-
const dOe =
|
|
105374
|
+
const dOe = wt.create({
|
|
105342
105375
|
name: "lineHeight",
|
|
105343
105376
|
addOptions() {
|
|
105344
105377
|
return {
|
|
@@ -166194,7 +166227,7 @@ const yOe = 200, xOe = new St("emoji"), vOe = At.create({
|
|
|
166194
166227
|
return !0;
|
|
166195
166228
|
}
|
|
166196
166229
|
return !1;
|
|
166197
|
-
}, jOe =
|
|
166230
|
+
}, jOe = wt.create({
|
|
166198
166231
|
name: "slash-command",
|
|
166199
166232
|
addOptions() {
|
|
166200
166233
|
return {
|
|
@@ -166358,7 +166391,7 @@ const yOe = 200, xOe = new St("emoji"), vOe = At.create({
|
|
|
166358
166391
|
render: NOe
|
|
166359
166392
|
}
|
|
166360
166393
|
});
|
|
166361
|
-
}, xY =
|
|
166394
|
+
}, xY = wt.create({
|
|
166362
166395
|
name: "customTextInputRules",
|
|
166363
166396
|
addInputRules() {
|
|
166364
166397
|
return [
|
|
@@ -166686,7 +166719,7 @@ const yOe = 200, xOe = new St("emoji"), vOe = At.create({
|
|
|
166686
166719
|
}
|
|
166687
166720
|
) }),
|
|
166688
166721
|
/* @__PURE__ */ F.jsx(
|
|
166689
|
-
|
|
166722
|
+
Jt,
|
|
166690
166723
|
{
|
|
166691
166724
|
sideOffset: 5,
|
|
166692
166725
|
position: "bottom",
|
|
@@ -166736,7 +166769,7 @@ const yOe = 200, xOe = new St("emoji"), vOe = At.create({
|
|
|
166736
166769
|
];
|
|
166737
166770
|
},
|
|
166738
166771
|
renderHTML({ HTMLAttributes: e }) {
|
|
166739
|
-
return ["br",
|
|
166772
|
+
return ["br", Bt(this.options.HTMLAttributes, e)];
|
|
166740
166773
|
},
|
|
166741
166774
|
addCommands() {
|
|
166742
166775
|
return {
|
|
@@ -166893,7 +166926,7 @@ const l6 = aD.getInstance(), IOe = (e) => ({
|
|
|
166893
166926
|
renderHTML({ HTMLAttributes: e }) {
|
|
166894
166927
|
return [
|
|
166895
166928
|
"span",
|
|
166896
|
-
|
|
166929
|
+
Bt(this.options.HTMLAttributes, e),
|
|
166897
166930
|
0
|
|
166898
166931
|
];
|
|
166899
166932
|
},
|
|
@@ -167704,7 +167737,7 @@ let jY = class {
|
|
|
167704
167737
|
}
|
|
167705
167738
|
};
|
|
167706
167739
|
new jY();
|
|
167707
|
-
const aRe =
|
|
167740
|
+
const aRe = wt.create({
|
|
167708
167741
|
name: "aiAutocomplete",
|
|
167709
167742
|
addOptions() {
|
|
167710
167743
|
return {
|
|
@@ -168433,7 +168466,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168433
168466
|
renderHTML({ HTMLAttributes: e }) {
|
|
168434
168467
|
return [
|
|
168435
168468
|
"div",
|
|
168436
|
-
|
|
168469
|
+
Bt(
|
|
168437
168470
|
this.options.HTMLAttributes,
|
|
168438
168471
|
{ "data-type": "ai-writer" },
|
|
168439
168472
|
e
|
|
@@ -168573,36 +168606,35 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168573
168606
|
}
|
|
168574
168607
|
},
|
|
168575
168608
|
handleClick: (nt, je, Re) => {
|
|
168576
|
-
const He = Re.metaKey || Re.ctrlKey,
|
|
168577
|
-
if (
|
|
168578
|
-
const We = new URL(
|
|
168579
|
-
if (We.hash && We.origin === window.location.origin
|
|
168580
|
-
const
|
|
168581
|
-
if (
|
|
168582
|
-
|
|
168583
|
-
|
|
168584
|
-
|
|
168585
|
-
|
|
168586
|
-
|
|
168587
|
-
|
|
168588
|
-
return (ve = kn.dataset.tocId) == null ? void 0 : ve.includes(sn);
|
|
168609
|
+
const He = Re.metaKey || Re.ctrlKey, Ge = Re.target.closest("a");
|
|
168610
|
+
if (Ge && Ge.href) {
|
|
168611
|
+
const We = new URL(Ge.href, window.location.href);
|
|
168612
|
+
if (We.hash && We.origin === window.location.origin) {
|
|
168613
|
+
const xt = decodeURIComponent(We.hash.slice(1)), en = new URLSearchParams(xt).get("heading");
|
|
168614
|
+
if (en) {
|
|
168615
|
+
const ln = en.split("-").pop();
|
|
168616
|
+
if (ln) {
|
|
168617
|
+
const un = document.querySelectorAll("[data-toc-id]"), rn = Array.from(un).find(
|
|
168618
|
+
(cn) => {
|
|
168619
|
+
var Fn;
|
|
168620
|
+
return (Fn = cn.dataset.tocId) == null ? void 0 : Fn.includes(ln);
|
|
168589
168621
|
}
|
|
168590
168622
|
);
|
|
168591
|
-
|
|
168592
|
-
|
|
168593
|
-
|
|
168594
|
-
|
|
168623
|
+
if (rn)
|
|
168624
|
+
return Re.preventDefault(), rn.scrollIntoView({
|
|
168625
|
+
behavior: "smooth",
|
|
168626
|
+
block: "nearest"
|
|
168627
|
+
}), !0;
|
|
168595
168628
|
}
|
|
168596
|
-
return !0;
|
|
168597
168629
|
}
|
|
168598
168630
|
}
|
|
168599
168631
|
if (o)
|
|
168600
168632
|
return !1;
|
|
168601
|
-
if (
|
|
168633
|
+
if (Ge.textContent.match(_7)) {
|
|
168602
168634
|
if (He)
|
|
168603
|
-
return Re.preventDefault(), window.open(
|
|
168635
|
+
return Re.preventDefault(), window.open(Ge.href, "_blank"), !0;
|
|
168604
168636
|
} else
|
|
168605
|
-
return Re.preventDefault(), window.open(
|
|
168637
|
+
return Re.preventDefault(), window.open(Ge.href, "_blank"), !0;
|
|
168606
168638
|
}
|
|
168607
168639
|
return ee ? ee(nt, je, Re) : !1;
|
|
168608
168640
|
},
|
|
@@ -168647,21 +168679,22 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168647
168679
|
const He = Re.closest("a");
|
|
168648
168680
|
if (He != null && He.href)
|
|
168649
168681
|
try {
|
|
168650
|
-
const
|
|
168651
|
-
if (!
|
|
168652
|
-
|
|
168653
|
-
|
|
168654
|
-
|
|
168655
|
-
|
|
168656
|
-
|
|
168657
|
-
if (Tt) {
|
|
168658
|
-
const tn = Array.from(
|
|
168682
|
+
const Ge = new URL(He.href, window.location.href);
|
|
168683
|
+
if (!Ge.hash || Ge.origin !== window.location.origin) return;
|
|
168684
|
+
const We = decodeURIComponent(Ge.hash.slice(1)), xt = new URLSearchParams(We).get("heading");
|
|
168685
|
+
if (!xt) return;
|
|
168686
|
+
const Nt = xt.split("-").pop();
|
|
168687
|
+
if (Nt) {
|
|
168688
|
+
const en = Array.from(
|
|
168659
168689
|
document.querySelectorAll("[data-toc-id]")
|
|
168660
|
-
).find((
|
|
168661
|
-
var
|
|
168662
|
-
return (
|
|
168690
|
+
).find((ln) => {
|
|
168691
|
+
var un;
|
|
168692
|
+
return (un = ln.dataset.tocId) == null ? void 0 : un.includes(Nt);
|
|
168663
168693
|
});
|
|
168664
|
-
|
|
168694
|
+
if (en) {
|
|
168695
|
+
je.preventDefault(), je.stopPropagation(), en.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
168696
|
+
return;
|
|
168697
|
+
}
|
|
168665
168698
|
}
|
|
168666
168699
|
} catch {
|
|
168667
168700
|
}
|
|
@@ -168761,18 +168794,18 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168761
168794
|
je.state.doc.nodesBetween(
|
|
168762
168795
|
Re,
|
|
168763
168796
|
He,
|
|
168764
|
-
(
|
|
168765
|
-
|
|
168797
|
+
(Ge, We) => {
|
|
168798
|
+
Ge.marks && Ge.marks.forEach((gt) => {
|
|
168766
168799
|
gt.type.name === "textStyle" && gt.attrs.color && at.push({
|
|
168767
168800
|
from: We,
|
|
168768
|
-
to: We +
|
|
168801
|
+
to: We + Ge.nodeSize,
|
|
168769
168802
|
mark: gt
|
|
168770
168803
|
});
|
|
168771
168804
|
});
|
|
168772
168805
|
}
|
|
168773
|
-
), je.chain().setTextSelection({ from: Re, to: He }).setColor("").run(), at.forEach(({ from:
|
|
168774
|
-
const
|
|
168775
|
-
y$(
|
|
168806
|
+
), je.chain().setTextSelection({ from: Re, to: He }).setColor("").run(), at.forEach(({ from: Ge, to: We, mark: gt }) => {
|
|
168807
|
+
const xt = gt.attrs.color;
|
|
168808
|
+
y$(xt) || je.chain().setTextSelection({ from: Ge, to: We }).setColor(xt).run();
|
|
168776
168809
|
}), je.commands.setTextSelection(He);
|
|
168777
168810
|
}, 0);
|
|
168778
168811
|
};
|
|
@@ -168834,9 +168867,9 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168834
168867
|
if (he)
|
|
168835
168868
|
try {
|
|
168836
168869
|
const je = he.view.dom.querySelectorAll("[data-toc-id]"), Re = Array.from(je).find(
|
|
168837
|
-
(
|
|
168838
|
-
var
|
|
168839
|
-
return (
|
|
168870
|
+
(xt) => {
|
|
168871
|
+
var Nt;
|
|
168872
|
+
return (Nt = xt.dataset.tocId) == null ? void 0 : Nt.includes(nt);
|
|
168840
168873
|
}
|
|
168841
168874
|
);
|
|
168842
168875
|
if (!Re) return;
|
|
@@ -168844,16 +168877,16 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168844
168877
|
Re == null ? void 0 : Re.textContent
|
|
168845
168878
|
), at = Pe == null ? void 0 : Pe.split("-").slice(0, -1).join("-");
|
|
168846
168879
|
He !== at && (Le.set("heading", `${He}-${nt}`), window.location.hash = Le.toString());
|
|
168847
|
-
const
|
|
168848
|
-
We.setSelection(new ct(We.doc.resolve(
|
|
168880
|
+
const Ge = he.view.posAtDOM(Re, 0), We = he.view.state.tr;
|
|
168881
|
+
We.setSelection(new ct(We.doc.resolve(Ge))), he.view.dispatch(We);
|
|
168849
168882
|
const gt = K8({
|
|
168850
168883
|
targetElement: Re,
|
|
168851
168884
|
editorRoot: he.view.dom
|
|
168852
168885
|
});
|
|
168853
168886
|
gt && requestAnimationFrame(() => {
|
|
168854
|
-
const
|
|
168887
|
+
const xt = gt.getBoundingClientRect(), Nt = Re.getBoundingClientRect(), en = Nt.top - xt.top - xt.height / (Ne ? 5 : 7) + Nt.height / (Ne ? 5 : 7);
|
|
168855
168888
|
gt.scrollBy({
|
|
168856
|
-
top:
|
|
168889
|
+
top: en,
|
|
168857
168890
|
behavior: "smooth"
|
|
168858
168891
|
});
|
|
168859
168892
|
});
|
|
@@ -168880,24 +168913,24 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168880
168913
|
const nt = setTimeout(() => {
|
|
168881
168914
|
const { tr: je, doc: Re } = he.state;
|
|
168882
168915
|
let He = !1;
|
|
168883
|
-
Re.descendants((at,
|
|
168916
|
+
Re.descendants((at, Ge) => {
|
|
168884
168917
|
if (!at.marks || at.marks.length === 0) return;
|
|
168885
168918
|
const We = at.marks.find(
|
|
168886
|
-
(
|
|
168919
|
+
(Nt) => Nt.type.name === "textStyle" && Nt.attrs.color
|
|
168887
168920
|
);
|
|
168888
168921
|
if (!We) return;
|
|
168889
168922
|
const gt = We.attrs["data-original-color"] || We.attrs.color;
|
|
168890
168923
|
if (gt.startsWith("var(--color-editor-") || gt === "inherit")
|
|
168891
168924
|
return;
|
|
168892
|
-
const
|
|
168893
|
-
if (
|
|
168925
|
+
const xt = nU(gt, $);
|
|
168926
|
+
if (xt !== We.attrs.color) {
|
|
168894
168927
|
He = !0;
|
|
168895
|
-
const
|
|
168928
|
+
const Nt = We.type.create({
|
|
168896
168929
|
...We.attrs,
|
|
168897
|
-
color:
|
|
168930
|
+
color: xt,
|
|
168898
168931
|
"data-original-color": gt
|
|
168899
168932
|
});
|
|
168900
|
-
je.removeMark(
|
|
168933
|
+
je.removeMark(Ge, Ge + at.nodeSize, We), je.addMark(Ge, Ge + at.nodeSize, Nt);
|
|
168901
168934
|
}
|
|
168902
168935
|
}), He && (je.setMeta("addToHistory", !1), he.view.dispatch(je));
|
|
168903
168936
|
}, 0);
|
|
@@ -169516,7 +169549,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
169516
169549
|
[MY]
|
|
169517
169550
|
);
|
|
169518
169551
|
return SRe(r, RRe(e._dbref, !1)).then((o) => {
|
|
169519
|
-
e._destroyed || (t(r),
|
|
169552
|
+
e._destroyed || (t(r), Dn(e.doc, () => {
|
|
169520
169553
|
o.forEach((i) => ys(e.doc, i));
|
|
169521
169554
|
}, e, !1), n(r));
|
|
169522
169555
|
}).then(() => jRe(r).then((o) => {
|
|
@@ -173094,8 +173127,8 @@ var cZ = {};
|
|
|
173094
173127
|
Q[S] = Y[S] - oe[S];
|
|
173095
173128
|
}
|
|
173096
173129
|
function D(Q, Y, oe) {
|
|
173097
|
-
let S, X, Z = 0, ue = 0, B = 0, ee = 0, ae = 0, K = 0, V = 0, ie = 0, he = 0, De = 0, me = 0, ce = 0, de = 0, fe = 0, O = 0, W = 0, te = 0, pe = 0, xe = 0, be = 0, Ee = 0, Ce = 0, ge = 0, Te = 0, Ne = 0, Le = 0, Pe = 0, ft = 0, pt = 0, nt = 0, je = 0, Re = oe[0], He = oe[1], at = oe[2],
|
|
173098
|
-
S = Y[0], Z += S * Re, ue += S * He, B += S * at, ee += S *
|
|
173130
|
+
let S, X, Z = 0, ue = 0, B = 0, ee = 0, ae = 0, K = 0, V = 0, ie = 0, he = 0, De = 0, me = 0, ce = 0, de = 0, fe = 0, O = 0, W = 0, te = 0, pe = 0, xe = 0, be = 0, Ee = 0, Ce = 0, ge = 0, Te = 0, Ne = 0, Le = 0, Pe = 0, ft = 0, pt = 0, nt = 0, je = 0, Re = oe[0], He = oe[1], at = oe[2], Ge = oe[3], We = oe[4], gt = oe[5], xt = oe[6], Nt = oe[7], en = oe[8], ln = oe[9], un = oe[10], rn = oe[11], cn = oe[12], Fn = oe[13], ve = oe[14], Ie = oe[15];
|
|
173131
|
+
S = Y[0], Z += S * Re, ue += S * He, B += S * at, ee += S * Ge, ae += S * We, K += S * gt, V += S * xt, ie += S * Nt, he += S * en, De += S * ln, me += S * un, ce += S * rn, de += S * cn, fe += S * Fn, O += S * ve, W += S * Ie, S = Y[1], ue += S * Re, B += S * He, ee += S * at, ae += S * Ge, K += S * We, V += S * gt, ie += S * xt, he += S * Nt, De += S * en, me += S * ln, ce += S * un, de += S * rn, fe += S * cn, O += S * Fn, W += S * ve, te += S * Ie, S = Y[2], B += S * Re, ee += S * He, ae += S * at, K += S * Ge, V += S * We, ie += S * gt, he += S * xt, De += S * Nt, me += S * en, ce += S * ln, de += S * un, fe += S * rn, O += S * cn, W += S * Fn, te += S * ve, pe += S * Ie, S = Y[3], ee += S * Re, ae += S * He, K += S * at, V += S * Ge, ie += S * We, he += S * gt, De += S * xt, me += S * Nt, ce += S * en, de += S * ln, fe += S * un, O += S * rn, W += S * cn, te += S * Fn, pe += S * ve, xe += S * Ie, S = Y[4], ae += S * Re, K += S * He, V += S * at, ie += S * Ge, he += S * We, De += S * gt, me += S * xt, ce += S * Nt, de += S * en, fe += S * ln, O += S * un, W += S * rn, te += S * cn, pe += S * Fn, xe += S * ve, be += S * Ie, S = Y[5], K += S * Re, V += S * He, ie += S * at, he += S * Ge, De += S * We, me += S * gt, ce += S * xt, de += S * Nt, fe += S * en, O += S * ln, W += S * un, te += S * rn, pe += S * cn, xe += S * Fn, be += S * ve, Ee += S * Ie, S = Y[6], V += S * Re, ie += S * He, he += S * at, De += S * Ge, me += S * We, ce += S * gt, de += S * xt, fe += S * Nt, O += S * en, W += S * ln, te += S * un, pe += S * rn, xe += S * cn, be += S * Fn, Ee += S * ve, Ce += S * Ie, S = Y[7], ie += S * Re, he += S * He, De += S * at, me += S * Ge, ce += S * We, de += S * gt, fe += S * xt, O += S * Nt, W += S * en, te += S * ln, pe += S * un, xe += S * rn, be += S * cn, Ee += S * Fn, Ce += S * ve, ge += S * Ie, S = Y[8], he += S * Re, De += S * He, me += S * at, ce += S * Ge, de += S * We, fe += S * gt, O += S * xt, W += S * Nt, te += S * en, pe += S * ln, xe += S * un, be += S * rn, Ee += S * cn, Ce += S * Fn, ge += S * ve, Te += S * Ie, S = Y[9], De += S * Re, me += S * He, ce += S * at, de += S * Ge, fe += S * We, O += S * gt, W += S * xt, te += S * Nt, pe += S * en, xe += S * ln, be += S * un, Ee += S * rn, Ce += S * cn, ge += S * Fn, Te += S * ve, Ne += S * Ie, S = Y[10], me += S * Re, ce += S * He, de += S * at, fe += S * Ge, O += S * We, W += S * gt, te += S * xt, pe += S * Nt, xe += S * en, be += S * ln, Ee += S * un, Ce += S * rn, ge += S * cn, Te += S * Fn, Ne += S * ve, Le += S * Ie, S = Y[11], ce += S * Re, de += S * He, fe += S * at, O += S * Ge, W += S * We, te += S * gt, pe += S * xt, xe += S * Nt, be += S * en, Ee += S * ln, Ce += S * un, ge += S * rn, Te += S * cn, Ne += S * Fn, Le += S * ve, Pe += S * Ie, S = Y[12], de += S * Re, fe += S * He, O += S * at, W += S * Ge, te += S * We, pe += S * gt, xe += S * xt, be += S * Nt, Ee += S * en, Ce += S * ln, ge += S * un, Te += S * rn, Ne += S * cn, Le += S * Fn, Pe += S * ve, ft += S * Ie, S = Y[13], fe += S * Re, O += S * He, W += S * at, te += S * Ge, pe += S * We, xe += S * gt, be += S * xt, Ee += S * Nt, Ce += S * en, ge += S * ln, Te += S * un, Ne += S * rn, Le += S * cn, Pe += S * Fn, ft += S * ve, pt += S * Ie, S = Y[14], O += S * Re, W += S * He, te += S * at, pe += S * Ge, xe += S * We, be += S * gt, Ee += S * xt, Ce += S * Nt, ge += S * en, Te += S * ln, Ne += S * un, Le += S * rn, Pe += S * cn, ft += S * Fn, pt += S * ve, nt += S * Ie, S = Y[15], W += S * Re, te += S * He, pe += S * at, xe += S * Ge, be += S * We, Ee += S * gt, Ce += S * xt, ge += S * Nt, Te += S * en, Ne += S * ln, Le += S * un, Pe += S * rn, ft += S * cn, pt += S * Fn, nt += S * ve, je += S * Ie, Z += 38 * te, ue += 38 * pe, B += 38 * xe, ee += 38 * be, ae += 38 * Ee, K += 38 * Ce, V += 38 * ge, ie += 38 * Te, he += 38 * Ne, De += 38 * Le, me += 38 * Pe, ce += 38 * ft, de += 38 * pt, fe += 38 * nt, O += 38 * je, X = 1, S = Z + X + 65535, X = Math.floor(S / 65536), Z = S - X * 65536, S = ue + X + 65535, X = Math.floor(S / 65536), ue = S - X * 65536, S = B + X + 65535, X = Math.floor(S / 65536), B = S - X * 65536, S = ee + X + 65535, X = Math.floor(S / 65536), ee = S - X * 65536, S = ae + X + 65535, X = Math.floor(S / 65536), ae = S - X * 65536, S = K + X + 65535, X = Math.floor(S / 65536), K = S - X * 65536, S = V + X + 65535, X = Math.floor(S / 65536), V = S - X * 65536, S = ie + X + 65535, X = Math.floor(S / 65536), ie = S - X * 65536, S = he + X + 65535, X = Math.floor(S / 65536), he = S - X * 65536, S = De + X + 65535, X = Math.floor(S / 65536), De = S - X * 65536, S = me + X + 65535, X = Math.floor(S / 65536), me = S - X * 65536, S = ce + X + 65535, X = Math.floor(S / 65536), ce = S - X * 65536, S = de + X + 65535, X = Math.floor(S / 65536), de = S - X * 65536, S = fe + X + 65535, X = Math.floor(S / 65536), fe = S - X * 65536, S = O + X + 65535, X = Math.floor(S / 65536), O = S - X * 65536, S = W + X + 65535, X = Math.floor(S / 65536), W = S - X * 65536, Z += X - 1 + 37 * (X - 1), X = 1, S = Z + X + 65535, X = Math.floor(S / 65536), Z = S - X * 65536, S = ue + X + 65535, X = Math.floor(S / 65536), ue = S - X * 65536, S = B + X + 65535, X = Math.floor(S / 65536), B = S - X * 65536, S = ee + X + 65535, X = Math.floor(S / 65536), ee = S - X * 65536, S = ae + X + 65535, X = Math.floor(S / 65536), ae = S - X * 65536, S = K + X + 65535, X = Math.floor(S / 65536), K = S - X * 65536, S = V + X + 65535, X = Math.floor(S / 65536), V = S - X * 65536, S = ie + X + 65535, X = Math.floor(S / 65536), ie = S - X * 65536, S = he + X + 65535, X = Math.floor(S / 65536), he = S - X * 65536, S = De + X + 65535, X = Math.floor(S / 65536), De = S - X * 65536, S = me + X + 65535, X = Math.floor(S / 65536), me = S - X * 65536, S = ce + X + 65535, X = Math.floor(S / 65536), ce = S - X * 65536, S = de + X + 65535, X = Math.floor(S / 65536), de = S - X * 65536, S = fe + X + 65535, X = Math.floor(S / 65536), fe = S - X * 65536, S = O + X + 65535, X = Math.floor(S / 65536), O = S - X * 65536, S = W + X + 65535, X = Math.floor(S / 65536), W = S - X * 65536, Z += X - 1 + 37 * (X - 1), Q[0] = Z, Q[1] = ue, Q[2] = B, Q[3] = ee, Q[4] = ae, Q[5] = K, Q[6] = V, Q[7] = ie, Q[8] = he, Q[9] = De, Q[10] = me, Q[11] = ce, Q[12] = de, Q[13] = fe, Q[14] = O, Q[15] = W;
|
|
173099
173132
|
}
|
|
173100
173133
|
function C(Q, Y) {
|
|
173101
173134
|
D(Q, Y, Y);
|
|
@@ -174330,7 +174363,7 @@ const sO = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", IUe
|
|
|
174330
174363
|
t += sO[Math.floor(Math.random() * sO.length)];
|
|
174331
174364
|
return t;
|
|
174332
174365
|
};
|
|
174333
|
-
function
|
|
174366
|
+
function Tt(e, t) {
|
|
174334
174367
|
return typeof e == "object" && e != null && t in e;
|
|
174335
174368
|
}
|
|
174336
174369
|
function Vr(e) {
|
|
@@ -174368,7 +174401,7 @@ function PUe(e) {
|
|
|
174368
174401
|
}
|
|
174369
174402
|
}
|
|
174370
174403
|
function zUe(e) {
|
|
174371
|
-
return Vr(e) &&
|
|
174404
|
+
return Vr(e) && Tt(e, "major") && typeof e.major == "number" && Tt(e, "minor") && typeof e.minor == "number" && Tt(e, "patch") && typeof e.patch == "number";
|
|
174372
174405
|
}
|
|
174373
174406
|
const $Ue = /^0|[1-9]\d*/, HUe = (e) => (t) => {
|
|
174374
174407
|
const n = t.match(e);
|
|
@@ -174404,7 +174437,7 @@ function VUe(e, t) {
|
|
|
174404
174437
|
}
|
|
174405
174438
|
const ir = "*", FZ = "/";
|
|
174406
174439
|
function GUe(e) {
|
|
174407
|
-
return e === ir || Vr(e) &&
|
|
174440
|
+
return e === ir || Vr(e) && Tt(e, "namespace") && typeof e.namespace == "string" && Tt(e, "segments") && Array.isArray(e.segments) && e.segments.every((t) => typeof t == "string");
|
|
174408
174441
|
}
|
|
174409
174442
|
function KUe(e) {
|
|
174410
174443
|
return e.join(FZ);
|
|
@@ -174429,7 +174462,7 @@ function YUe(e) {
|
|
|
174429
174462
|
}
|
|
174430
174463
|
const wD = ":";
|
|
174431
174464
|
function ZUe(e) {
|
|
174432
|
-
return Vr(e) &&
|
|
174465
|
+
return Vr(e) && Tt(e, "scheme") && typeof e.scheme == "string" && Tt(e, "hierPart") && (e.hierPart === ir || typeof e.hierPart == "string");
|
|
174433
174466
|
}
|
|
174434
174467
|
function JUe(e) {
|
|
174435
174468
|
return {
|
|
@@ -174445,10 +174478,10 @@ function ePe(e) {
|
|
|
174445
174478
|
return { scheme: t, hierPart: n.join(wD) };
|
|
174446
174479
|
}
|
|
174447
174480
|
function f1(e) {
|
|
174448
|
-
return Vr(e) &&
|
|
174481
|
+
return Vr(e) && Tt(e, "with") && ZUe(e.with) && Tt(e, "can") && GUe(e.can);
|
|
174449
174482
|
}
|
|
174450
174483
|
function wZ(e) {
|
|
174451
|
-
return Vr(e) &&
|
|
174484
|
+
return Vr(e) && Tt(e, "with") && typeof e.with == "string" && Tt(e, "can") && typeof e.can == "string";
|
|
174452
174485
|
}
|
|
174453
174486
|
function tPe(e) {
|
|
174454
174487
|
return {
|
|
@@ -174469,28 +174502,28 @@ function rPe(e) {
|
|
|
174469
174502
|
};
|
|
174470
174503
|
}
|
|
174471
174504
|
function M7(e) {
|
|
174472
|
-
return Vr(e) &&
|
|
174505
|
+
return Vr(e) && Tt(e, "jwtAlg") && typeof e.jwtAlg == "string" && Tt(e, "sign") && typeof e.sign == "function";
|
|
174473
174506
|
}
|
|
174474
174507
|
function oPe(e) {
|
|
174475
|
-
return Vr(e) &&
|
|
174508
|
+
return Vr(e) && Tt(e, "alg") && typeof e.alg == "string" && Tt(e, "typ") && typeof e.typ == "string" && Tt(e, "ucv") && zUe(e.ucv);
|
|
174476
174509
|
}
|
|
174477
174510
|
function iPe(e) {
|
|
174478
|
-
return Vr(e) &&
|
|
174511
|
+
return Vr(e) && Tt(e, "iss") && typeof e.iss == "string" && Tt(e, "aud") && typeof e.aud == "string" && Tt(e, "exp") && typeof e.exp == "number" && (!Tt(e, "nbf") || typeof e.nbf == "number") && (!Tt(e, "nnc") || typeof e.nnc == "string") && Tt(e, "att") && Array.isArray(e.att) && e.att.every((t) => f1(t) || wZ(t)) && (!Tt(e, "fct") || Array.isArray(e.fct) && e.fct.every(Vr)) && Tt(e, "prf") && Array.isArray(e.prf) && e.prf.every((t) => typeof t == "string");
|
|
174479
174512
|
}
|
|
174480
174513
|
const sPe = { major: 0, minor: 3, patch: 0 };
|
|
174481
174514
|
function aPe(e) {
|
|
174482
|
-
return Vr(e) &&
|
|
174515
|
+
return Vr(e) && Tt(e, "alg") && typeof e.alg == "string" && Tt(e, "typ") && typeof e.typ == "string" && Tt(e, "uav") && typeof e.uav == "string";
|
|
174483
174516
|
}
|
|
174484
174517
|
function lPe(e) {
|
|
174485
|
-
return Vr(e) &&
|
|
174518
|
+
return Vr(e) && Tt(e, "iss") && typeof e.iss == "string" && Tt(e, "aud") && typeof e.aud == "string" && (!Tt(e, "nbf") || typeof e.nbf == "number") && Tt(e, "exp") && typeof e.exp == "number" && Tt(e, "rsc") && (typeof e.rsc == "string" || Vr(e)) && Tt(e, "ptc") && typeof e.ptc == "string" && (!Tt(e, "prf") || typeof e.prf == "string");
|
|
174486
174519
|
}
|
|
174487
174520
|
function uPe(e, t) {
|
|
174488
174521
|
const n = (o, i) => new Error(`Can't parse UCAN ${o}: ${i}`);
|
|
174489
174522
|
if (!Vr(e))
|
|
174490
174523
|
throw n("header", "Invalid format: Expected a record");
|
|
174491
174524
|
let r = "0.9.1";
|
|
174492
|
-
if (!
|
|
174493
|
-
if (!
|
|
174525
|
+
if (!Tt(e, "ucv") || typeof e.ucv != "string") {
|
|
174526
|
+
if (!Tt(e, "uav") || typeof e.uav != "string")
|
|
174494
174527
|
throw n("header", "Invalid format: Missing version indicator");
|
|
174495
174528
|
if (e.uav !== "1.0.0")
|
|
174496
174529
|
throw n("header", `Unsupported version 'uav: ${e.uav}'`);
|
|
@@ -175120,10 +175153,10 @@ var jPe = function(e, t, n, r) {
|
|
|
175120
175153
|
});
|
|
175121
175154
|
};
|
|
175122
175155
|
function cO(e) {
|
|
175123
|
-
return Vr(e) &&
|
|
175156
|
+
return Vr(e) && Tt(e, "issuer") && M7(e.issuer) && Tt(e, "audience") && typeof e.audience == "string" && Tt(e, "expiration") && typeof e.expiration == "number";
|
|
175124
175157
|
}
|
|
175125
175158
|
function BPe(e) {
|
|
175126
|
-
return Vr(e) &&
|
|
175159
|
+
return Vr(e) && Tt(e, "issuer") && M7(e.issuer) && Tt(e, "expiration") && typeof e.expiration == "number";
|
|
175127
175160
|
}
|
|
175128
175161
|
const NPe = (e) => class ns {
|
|
175129
175162
|
constructor(n, r) {
|
|
@@ -175190,7 +175223,7 @@ const NPe = (e) => class ns {
|
|
|
175190
175223
|
withNotBefore(n) {
|
|
175191
175224
|
if (typeof n != "number" || !isFinite(n))
|
|
175192
175225
|
throw new TypeError(`Expected notBeforeTimestamp as number, but got ${n}`);
|
|
175193
|
-
if (
|
|
175226
|
+
if (Tt(this.state, "expiration") && typeof this.state.expiration == "number" && this.state.expiration < n)
|
|
175194
175227
|
throw new Error(`Can't set 'notBefore' to ${n} which is after expiration: ${this.state.expiration}`);
|
|
175195
175228
|
return new ns(this.state, Object.assign(Object.assign({}, this.defaultable), { notBefore: n }));
|
|
175196
175229
|
}
|
|
@@ -175216,7 +175249,7 @@ const NPe = (e) => class ns {
|
|
|
175216
175249
|
if (!BPe(this.state))
|
|
175217
175250
|
throw new Error("Can't delegate capabilities without having these paramenters set in the builder: issuer and expiration.");
|
|
175218
175251
|
function i(s) {
|
|
175219
|
-
return
|
|
175252
|
+
return Tt(s, "capability") || Tt(s, "ownershipDID");
|
|
175220
175253
|
}
|
|
175221
175254
|
if (i(r)) {
|
|
175222
175255
|
if (o == null)
|
|
@@ -179870,7 +179903,7 @@ const u$e = ({
|
|
|
179870
179903
|
!n && /* @__PURE__ */ F.jsxs("div", { className: "absolute top-0 px-4 py-2 border-b color-border-default right-0 flex gap-2 color-bg-default w-full justify-between z-50", children: [
|
|
179871
179904
|
a ? /* @__PURE__ */ F.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ F.jsx("p", { className: "max-w-[300px] truncate md:max-w-full w-full", children: l }) }) : /* @__PURE__ */ F.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
179872
179905
|
/* @__PURE__ */ F.jsx(
|
|
179873
|
-
|
|
179906
|
+
kn,
|
|
179874
179907
|
{
|
|
179875
179908
|
variant: "ghost",
|
|
179876
179909
|
onClick: t,
|
|
@@ -179882,8 +179915,8 @@ const u$e = ({
|
|
|
179882
179915
|
] }),
|
|
179883
179916
|
/* @__PURE__ */ F.jsxs("div", { className: "flex justify-center items-center gap-2", children: [
|
|
179884
179917
|
p == null ? void 0 : p(),
|
|
179885
|
-
!a && /* @__PURE__ */ F.jsx(
|
|
179886
|
-
|
|
179918
|
+
!a && /* @__PURE__ */ F.jsx(Jt, { text: "Download", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
|
|
179919
|
+
kn,
|
|
179887
179920
|
{
|
|
179888
179921
|
variant: "ghost",
|
|
179889
179922
|
onClick: () => cP(c),
|
|
@@ -179891,8 +179924,8 @@ const u$e = ({
|
|
|
179891
179924
|
size: "md"
|
|
179892
179925
|
}
|
|
179893
179926
|
) }),
|
|
179894
|
-
/* @__PURE__ */ F.jsx(
|
|
179895
|
-
|
|
179927
|
+
/* @__PURE__ */ F.jsx(Jt, { text: "Comments", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
|
|
179928
|
+
kn,
|
|
179896
179929
|
{
|
|
179897
179930
|
variant: "ghost",
|
|
179898
179931
|
icon: "MessageSquareText",
|
|
@@ -179901,13 +179934,13 @@ const u$e = ({
|
|
|
179901
179934
|
}
|
|
179902
179935
|
) }),
|
|
179903
179936
|
!a && /* @__PURE__ */ F.jsxs(
|
|
179904
|
-
|
|
179937
|
+
Jt,
|
|
179905
179938
|
{
|
|
179906
179939
|
text: s ? "Copy to Share" : "Link is preparing...",
|
|
179907
179940
|
sideOffset: 10,
|
|
179908
179941
|
children: [
|
|
179909
179942
|
/* @__PURE__ */ F.jsx(
|
|
179910
|
-
|
|
179943
|
+
kn,
|
|
179911
179944
|
{
|
|
179912
179945
|
variant: "ghost",
|
|
179913
179946
|
icon: "Link",
|
|
@@ -179932,8 +179965,8 @@ const u$e = ({
|
|
|
179932
179965
|
]
|
|
179933
179966
|
}
|
|
179934
179967
|
),
|
|
179935
|
-
/* @__PURE__ */ F.jsx(
|
|
179936
|
-
|
|
179968
|
+
/* @__PURE__ */ F.jsx(Jt, { text: "Press F to toggle fullscreen", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
|
|
179969
|
+
kn,
|
|
179937
179970
|
{
|
|
179938
179971
|
variant: "ghost",
|
|
179939
179972
|
onClick: I,
|
|
@@ -180015,7 +180048,7 @@ const u$e = ({
|
|
|
180015
180048
|
] }) }) }),
|
|
180016
180049
|
n && C && /* @__PURE__ */ F.jsxs(F.Fragment, { children: [
|
|
180017
180050
|
/* @__PURE__ */ F.jsx("div", { className: "fixed top-2 right-4 z-50", children: /* @__PURE__ */ F.jsx(
|
|
180018
|
-
|
|
180051
|
+
kn,
|
|
180019
180052
|
{
|
|
180020
180053
|
variant: "ghost",
|
|
180021
180054
|
onClick: I,
|
|
@@ -180452,13 +180485,13 @@ const u$e = ({
|
|
|
180452
180485
|
/* @__PURE__ */ F.jsxs("div", { className: "flex p-4 border-b flex-row gap-4 items-center color-bg-default", children: [
|
|
180453
180486
|
/* @__PURE__ */ F.jsx("p", { className: "text-heading-sm", children: "Comments" }),
|
|
180454
180487
|
/* @__PURE__ */ F.jsx("div", { className: "absolute top-[2px] right-10 p-2", children: /* @__PURE__ */ F.jsx(
|
|
180455
|
-
|
|
180488
|
+
Jt,
|
|
180456
180489
|
{
|
|
180457
180490
|
text: a ? "Hide resolved" : "Show resolved",
|
|
180458
180491
|
sideOffset: 0,
|
|
180459
180492
|
position: "bottom",
|
|
180460
180493
|
children: /* @__PURE__ */ F.jsx(
|
|
180461
|
-
|
|
180494
|
+
kn,
|
|
180462
180495
|
{
|
|
180463
180496
|
icon: a ? "Eye" : "EyeOff",
|
|
180464
180497
|
variant: "ghost",
|
|
@@ -180492,13 +180525,13 @@ const u$e = ({
|
|
|
180492
180525
|
title: "Comments",
|
|
180493
180526
|
content: /* @__PURE__ */ F.jsxs(_t.Fragment, { children: [
|
|
180494
180527
|
/* @__PURE__ */ F.jsx("div", { className: "absolute -top-[2px] right-10 p-3", children: /* @__PURE__ */ F.jsx(
|
|
180495
|
-
|
|
180528
|
+
Jt,
|
|
180496
180529
|
{
|
|
180497
180530
|
text: a ? "Hide resolved" : "Show resolved",
|
|
180498
180531
|
sideOffset: 0,
|
|
180499
180532
|
position: "bottom",
|
|
180500
180533
|
children: /* @__PURE__ */ F.jsx(
|
|
180501
|
-
|
|
180534
|
+
kn,
|
|
180502
180535
|
{
|
|
180503
180536
|
icon: a ? "Eye" : "EyeOff",
|
|
180504
180537
|
variant: "ghost",
|
|
@@ -180611,9 +180644,9 @@ const u$e = ({
|
|
|
180611
180644
|
// onItemRemove,
|
|
180612
180645
|
}) => {
|
|
180613
180646
|
const [, o] = kae(), [i, s] = Be(null);
|
|
180614
|
-
function a(d) {
|
|
180615
|
-
o(
|
|
180616
|
-
s(!!
|
|
180647
|
+
function a(d, p) {
|
|
180648
|
+
d.stopPropagation(), o(p).then((h) => {
|
|
180649
|
+
s(!!h);
|
|
180617
180650
|
}).finally(
|
|
180618
180651
|
() => setTimeout(() => {
|
|
180619
180652
|
s(null);
|
|
@@ -180646,20 +180679,27 @@ const u$e = ({
|
|
|
180646
180679
|
href: u,
|
|
180647
180680
|
onClick: l,
|
|
180648
180681
|
"data-item-index": e.itemIndex,
|
|
180649
|
-
className: "flex items-center justify-between pl-2 gap-1 h-[36px] transition-all no-underline w-full group",
|
|
180682
|
+
className: "flex items-center justify-between pl-2 gap-1 h-[36px] transition-all no-underline w-full group/toc-item",
|
|
180650
180683
|
children: [
|
|
180651
180684
|
/* @__PURE__ */ F.jsx("span", { className: "truncate", children: e.textContent }),
|
|
180652
180685
|
/* @__PURE__ */ F.jsx(
|
|
180653
|
-
|
|
180686
|
+
Jt,
|
|
180654
180687
|
{
|
|
180655
|
-
|
|
180656
|
-
|
|
180657
|
-
|
|
180658
|
-
|
|
180659
|
-
|
|
180660
|
-
|
|
180661
|
-
|
|
180662
|
-
|
|
180688
|
+
text: i ? "Heading link copied" : "Copy heading link",
|
|
180689
|
+
position: "right",
|
|
180690
|
+
children: /* @__PURE__ */ F.jsx(
|
|
180691
|
+
kn,
|
|
180692
|
+
{
|
|
180693
|
+
icon: i ? "Check" : "Clipboard",
|
|
180694
|
+
size: "sm",
|
|
180695
|
+
variant: "ghost",
|
|
180696
|
+
className: Ye(
|
|
180697
|
+
"!bg-transparent group-hover/toc-item:opacity-100 opacity-0 transition-all color-text-secondary active:scale-75",
|
|
180698
|
+
e.isActive ? "max-[1280px]:visible" : "max-[1280px]:invisible"
|
|
180699
|
+
),
|
|
180700
|
+
onClick: (d) => a(d, u)
|
|
180701
|
+
}
|
|
180702
|
+
)
|
|
180663
180703
|
}
|
|
180664
180704
|
)
|
|
180665
180705
|
]
|
|
@@ -181014,7 +181054,7 @@ const D$e = [
|
|
|
181014
181054
|
ref: (g) => {
|
|
181015
181055
|
l.current = g;
|
|
181016
181056
|
},
|
|
181017
|
-
children: /* @__PURE__ */ F.jsx(
|
|
181057
|
+
children: /* @__PURE__ */ F.jsx(Jt, { position: "top", text: "Choose emoji", children: /* @__PURE__ */ F.jsx(
|
|
181018
181058
|
Ue,
|
|
181019
181059
|
{
|
|
181020
181060
|
onClick: () => {
|
|
@@ -181410,7 +181450,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
181410
181450
|
},
|
|
181411
181451
|
className: "h-[24px] px-[6px] py-0 rounded-[6px] text-heading-xsm border-transparent focus-visible:ring-2 focus-visible:ring-[hsl(var(--color-border-focused))]"
|
|
181412
181452
|
}
|
|
181413
|
-
) : /* @__PURE__ */ F.jsx("div", { className: "min-w-0 flex [&>*]:w-full", children: /* @__PURE__ */ F.jsx(
|
|
181453
|
+
) : /* @__PURE__ */ F.jsx("div", { className: "min-w-0 flex [&>*]:w-full", children: /* @__PURE__ */ F.jsx(Jt, { text: _, position: "bottom", children: /* @__PURE__ */ F.jsx(
|
|
181414
181454
|
"span",
|
|
181415
181455
|
{
|
|
181416
181456
|
"data-testid": `tab-name-${e}`,
|
|
@@ -181480,7 +181520,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
181480
181520
|
onMouseEnter: () => n(!0),
|
|
181481
181521
|
onMouseLeave: () => n(!1),
|
|
181482
181522
|
className: "[&_[data-testid='tooltip-trigger']]:w-full [&_[data-testid='tooltip-trigger']]:block",
|
|
181483
|
-
children: /* @__PURE__ */ F.jsx(
|
|
181523
|
+
children: /* @__PURE__ */ F.jsx(Jt, { text: e.tooltipText, position: "top", open: t, children: o })
|
|
181484
181524
|
}
|
|
181485
181525
|
) : o;
|
|
181486
181526
|
}, uJ = ({
|
|
@@ -181699,7 +181739,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
181699
181739
|
),
|
|
181700
181740
|
children: [
|
|
181701
181741
|
(!z || r) && /* @__PURE__ */ F.jsx(
|
|
181702
|
-
|
|
181742
|
+
Jt,
|
|
181703
181743
|
{
|
|
181704
181744
|
text: r ? "Hide tabs and outlines" : "Show tabs and outlines",
|
|
181705
181745
|
position: "right",
|
|
@@ -181750,7 +181790,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
181750
181790
|
}
|
|
181751
181791
|
),
|
|
181752
181792
|
!s && /* @__PURE__ */ F.jsx(
|
|
181753
|
-
|
|
181793
|
+
kn,
|
|
181754
181794
|
{
|
|
181755
181795
|
"data-testid": "tab-create-button",
|
|
181756
181796
|
icon: "Plus",
|
|
@@ -182327,12 +182367,12 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
182327
182367
|
),
|
|
182328
182368
|
children: [
|
|
182329
182369
|
/* @__PURE__ */ F.jsx(
|
|
182330
|
-
|
|
182370
|
+
Jt,
|
|
182331
182371
|
{
|
|
182332
182372
|
text: o ? "Hide document outline" : "Show document outline",
|
|
182333
182373
|
position: "right",
|
|
182334
182374
|
children: /* @__PURE__ */ F.jsx(
|
|
182335
|
-
|
|
182375
|
+
kn,
|
|
182336
182376
|
{
|
|
182337
182377
|
icon: o ? "ChevronLeft" : "List",
|
|
182338
182378
|
variant: "ghost",
|
|
@@ -182694,12 +182734,12 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
182694
182734
|
"zoom-levels"
|
|
182695
182735
|
),
|
|
182696
182736
|
/* @__PURE__ */ F.jsx(
|
|
182697
|
-
|
|
182737
|
+
Jt,
|
|
182698
182738
|
{
|
|
182699
182739
|
text: o ? "Hide tabs and outlines sidebar" : "Show tabs and outlines sidebar",
|
|
182700
182740
|
position: "bottom",
|
|
182701
182741
|
children: /* @__PURE__ */ F.jsx(
|
|
182702
|
-
|
|
182742
|
+
kn,
|
|
182703
182743
|
{
|
|
182704
182744
|
icon: "List",
|
|
182705
182745
|
size: "sm",
|
|
@@ -182710,8 +182750,8 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
182710
182750
|
)
|
|
182711
182751
|
}
|
|
182712
182752
|
),
|
|
182713
|
-
/* @__PURE__ */ F.jsx(
|
|
182714
|
-
|
|
182753
|
+
/* @__PURE__ */ F.jsx(Jt, { text: "Exist focus mode", children: /* @__PURE__ */ F.jsx(
|
|
182754
|
+
kn,
|
|
182715
182755
|
{
|
|
182716
182756
|
icon: "Minimize",
|
|
182717
182757
|
size: "sm",
|
|
@@ -182806,9 +182846,9 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
182806
182846
|
// Document styling object
|
|
182807
182847
|
documentStyling: He,
|
|
182808
182848
|
...at
|
|
182809
|
-
},
|
|
182849
|
+
}, Ge) => {
|
|
182810
182850
|
var Z7;
|
|
182811
|
-
const { isFocusMode: We, toggleFocusMode: gt } = dJ({ onFocusMode: z }), [
|
|
182851
|
+
const { isFocusMode: We, toggleFocusMode: gt } = dJ({ onFocusMode: z }), [xt, Nt] = Be(!1), [en, ln] = Be(!1), un = qe(null), cn = (() => {
|
|
182812
182852
|
if (!He)
|
|
182813
182853
|
return { canvas: void 0, background: void 0 };
|
|
182814
182854
|
const dt = {}, Mt = {}, dn = ce ?? "light";
|
|
@@ -182837,7 +182877,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
182837
182877
|
canvas: Object.keys(dt).length > 0 ? dt : void 0,
|
|
182838
182878
|
background: Object.keys(Mt).length > 0 ? Mt : void 0
|
|
182839
182879
|
};
|
|
182840
|
-
})(),
|
|
182880
|
+
})(), Fn = () => cn.canvas, ve = () => cn.background, Ie = qe(null), { isNativeMobile: rt, isIOS: mt } = Dl(), [Zt, nn] = Be(!1), Pt = qe(null), Rt = (k == null ? void 0 : k.slice(0, 4)) || [], er = k ? Math.max(0, k.length - 4) : 0;
|
|
182841
182881
|
E1(Pt, () => {
|
|
182842
182882
|
nn(!1);
|
|
182843
182883
|
}), Me(() => {
|
|
@@ -182914,7 +182954,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
182914
182954
|
...at
|
|
182915
182955
|
});
|
|
182916
182956
|
HO(
|
|
182917
|
-
|
|
182957
|
+
Ge,
|
|
182918
182958
|
() => ({
|
|
182919
182959
|
getEditor: () => Ae,
|
|
182920
182960
|
getYdoc: () => Vt,
|
|
@@ -182950,7 +182990,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
182950
182990
|
},
|
|
182951
182991
|
exportCurrentTabOrOpenExportModal: (dt = "pdf", Mt) => {
|
|
182952
182992
|
var dn;
|
|
182953
|
-
(dn =
|
|
182993
|
+
(dn = un.current) == null || dn.call(un, dt, Mt);
|
|
182954
182994
|
},
|
|
182955
182995
|
terminateSession: gJ
|
|
182956
182996
|
}),
|
|
@@ -182985,9 +183025,9 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
182985
183025
|
Me(() => {
|
|
182986
183026
|
if (Ae && rt) {
|
|
182987
183027
|
const { selection: dt } = Ae.state, Mt = Sy(dt), dn = () => {
|
|
182988
|
-
|
|
183028
|
+
Nt(!0);
|
|
182989
183029
|
}, Bn = () => {
|
|
182990
|
-
|
|
183030
|
+
Nt(!1);
|
|
182991
183031
|
};
|
|
182992
183032
|
return !Mt && Ae.on("focus", dn), Mt && Ae.on("blur", Bn), () => {
|
|
182993
183033
|
Ae.off("focus", dn), Ae.off("blur", Bn);
|
|
@@ -183087,7 +183127,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
183087
183127
|
ydoc: Vt,
|
|
183088
183128
|
toggleFocusMode: gt,
|
|
183089
183129
|
onRegisterExportTrigger: (dt) => {
|
|
183090
|
-
|
|
183130
|
+
un.current = dt;
|
|
183091
183131
|
}
|
|
183092
183132
|
}
|
|
183093
183133
|
) })
|
|
@@ -183100,7 +183140,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
183100
183140
|
ydoc: Vt,
|
|
183101
183141
|
tabs: pg,
|
|
183102
183142
|
onRegisterExportTrigger: (dt) => {
|
|
183103
|
-
|
|
183143
|
+
un.current = dt;
|
|
183104
183144
|
},
|
|
183105
183145
|
onError: m,
|
|
183106
183146
|
ipfsImageUploadFn: f,
|
|
@@ -183120,8 +183160,8 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
183120
183160
|
{
|
|
183121
183161
|
editor: Ae,
|
|
183122
183162
|
onClose: kJ,
|
|
183123
|
-
isFullscreen:
|
|
183124
|
-
setIsFullscreen:
|
|
183163
|
+
isFullscreen: en,
|
|
183164
|
+
setIsFullscreen: ln,
|
|
183125
183165
|
onError: m,
|
|
183126
183166
|
setCommentDrawerOpen: B,
|
|
183127
183167
|
sharedSlidesLink: oe,
|
|
@@ -183221,7 +183261,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
183221
183261
|
},
|
|
183222
183262
|
flexShrink: 0,
|
|
183223
183263
|
minHeight: "100%",
|
|
183224
|
-
...We ? {} :
|
|
183264
|
+
...We ? {} : Fn() || {}
|
|
183225
183265
|
},
|
|
183226
183266
|
children: [
|
|
183227
183267
|
Ml && e && /* @__PURE__ */ F.jsxs("p", { className: "text-center color-text-secondary text-helper-text-sm flex gap-2 items-center justify-center mt-3", children: [
|
|
@@ -183311,8 +183351,8 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
183311
183351
|
"flex flex-wrap px-4 md:px-8 lg:px-[80px] mb-8 items-center gap-1 mt-4 lg:!mt-0",
|
|
183312
183352
|
{ "pt-12": e }
|
|
183313
183353
|
),
|
|
183314
|
-
...!We &&
|
|
183315
|
-
style:
|
|
183354
|
+
...!We && Fn() && {
|
|
183355
|
+
style: Fn()
|
|
183316
183356
|
},
|
|
183317
183357
|
children: [
|
|
183318
183358
|
Rt.map((dt, Mt) => /* @__PURE__ */ F.jsx(
|
|
@@ -183445,7 +183485,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
183445
183485
|
{
|
|
183446
183486
|
className: tt(
|
|
183447
183487
|
"flex mobile:hidden items-center w-full h-[52px] fixed left-0 z-10 px-4 color-bg-default transition-all duration-300 ease-in-out border-b border-color-default",
|
|
183448
|
-
|
|
183488
|
+
xt && "hidden",
|
|
183449
183489
|
{ "top-14": P, "top-0": !P }
|
|
183450
183490
|
),
|
|
183451
183491
|
children: /* @__PURE__ */ F.jsx(
|
|
@@ -183453,7 +183493,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
183453
183493
|
{
|
|
183454
183494
|
onError: m,
|
|
183455
183495
|
editor: Ae,
|
|
183456
|
-
isKeyboardVisible:
|
|
183496
|
+
isKeyboardVisible: xt,
|
|
183457
183497
|
isNavbarVisible: P,
|
|
183458
183498
|
setIsNavbarVisible: L,
|
|
183459
183499
|
ipfsImageUploadFn: f,
|