markstream-angular 0.0.1-alpha.6 → 0.0.1-alpha.7
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/README.md +14 -0
- package/dist/index.css +1 -1
- package/dist/index.js +274 -259
- package/dist/types/components/CodeBlockNode/CodeBlockNode.component.d.ts +1 -0
- package/dist/types/components/NodeRenderer/NodeRenderer.component.d.ts +3 -2
- package/dist/types/components/TextNode/TextNode.component.d.ts +1 -0
- package/dist/types/components/shared/node-helpers.d.ts +11 -9
- package/dist/types/index.d.ts +2 -0
- package/dist/types/types/monaco.d.ts +64 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommonModule as S } from "@angular/common";
|
|
2
2
|
import { Input as l, Component as x, ChangeDetectionStrategy as b, forwardRef as p, inject as Q, ChangeDetectorRef as De, ViewChild as j, ViewContainerRef as fi, ElementRef as lo, Renderer2 as pi, Directive as gi, HostListener as co, EventEmitter as ut, Output as Ct } from "@angular/core";
|
|
3
3
|
import { parseMarkdownToStructure as Zr, getMarkdown as Yr } from "stream-markdown-parser";
|
|
4
|
-
const
|
|
4
|
+
const It = /<\/?([A-Z][\w:-]*)(?:\s[^<>]*)?>/gi;
|
|
5
5
|
function Jr(e, t, r) {
|
|
6
6
|
const o = bi(r), n = new Set(o);
|
|
7
7
|
if (!t || n.size === 0 || !Array.isArray(e) || e.length === 0)
|
|
@@ -30,7 +30,7 @@ function Jr(e, t, r) {
|
|
|
30
30
|
function yi(e, t) {
|
|
31
31
|
const r = [], o = [];
|
|
32
32
|
let n;
|
|
33
|
-
for (
|
|
33
|
+
for (It.lastIndex = 0; (n = It.exec(e)) !== null; ) {
|
|
34
34
|
const i = n[0], s = zt(n[1]);
|
|
35
35
|
if (!s || !t.has(s))
|
|
36
36
|
continue;
|
|
@@ -38,14 +38,14 @@ function yi(e, t) {
|
|
|
38
38
|
r.push({
|
|
39
39
|
tag: s,
|
|
40
40
|
start: n.index,
|
|
41
|
-
openEnd:
|
|
41
|
+
openEnd: It.lastIndex
|
|
42
42
|
});
|
|
43
43
|
continue;
|
|
44
44
|
}
|
|
45
45
|
const c = vi(r, s);
|
|
46
46
|
if (c < 0)
|
|
47
47
|
continue;
|
|
48
|
-
const [d] = r.splice(c, 1), u = n.index, h =
|
|
48
|
+
const [d] = r.splice(c, 1), u = n.index, h = It.lastIndex;
|
|
49
49
|
o.push({
|
|
50
50
|
tag: s,
|
|
51
51
|
start: d.start,
|
|
@@ -173,16 +173,16 @@ function Mi(e) {
|
|
|
173
173
|
function Oi(e) {
|
|
174
174
|
return Array.isArray(e) ? e : [];
|
|
175
175
|
}
|
|
176
|
-
const rr = "__global__",
|
|
176
|
+
const rr = "__global__", $r = "__MARKSTREAM_ANGULAR_CUSTOM_COMPONENTS_STORE__", X = (() => {
|
|
177
177
|
const e = globalThis;
|
|
178
|
-
if (e[
|
|
179
|
-
return e[
|
|
178
|
+
if (e[$r])
|
|
179
|
+
return e[$r];
|
|
180
180
|
const t = {
|
|
181
181
|
scopedComponents: {},
|
|
182
182
|
revision: 0,
|
|
183
183
|
listeners: /* @__PURE__ */ new Set()
|
|
184
184
|
};
|
|
185
|
-
return e[
|
|
185
|
+
return e[$r] = t, t;
|
|
186
186
|
})();
|
|
187
187
|
function en() {
|
|
188
188
|
X.revision += 1;
|
|
@@ -240,8 +240,8 @@ const Dn = /* @__PURE__ */ new Map(), Di = /* @__PURE__ */ new Set([
|
|
|
240
240
|
"thinking",
|
|
241
241
|
"vmr_container"
|
|
242
242
|
]);
|
|
243
|
-
function
|
|
244
|
-
const
|
|
243
|
+
function Ri(e, t = {}, r, o) {
|
|
244
|
+
const n = ho([
|
|
245
245
|
...e.customHtmlTags || [],
|
|
246
246
|
...e.parseOptions?.customHtmlTags || []
|
|
247
247
|
]);
|
|
@@ -252,11 +252,12 @@ function $i(e, t = {}, r) {
|
|
|
252
252
|
final: e.final,
|
|
253
253
|
typewriter: e.typewriter,
|
|
254
254
|
textStreamState: r,
|
|
255
|
+
streamRenderVersion: o,
|
|
255
256
|
showTooltips: e.showTooltips,
|
|
256
257
|
codeBlockStream: e.codeBlockStream,
|
|
257
258
|
renderCodeBlocksAsPre: e.renderCodeBlocksAsPre,
|
|
258
259
|
allowHtml: e.allowHtml !== !1,
|
|
259
|
-
customHtmlTags:
|
|
260
|
+
customHtmlTags: n,
|
|
260
261
|
parseOptions: e.parseOptions,
|
|
261
262
|
customMarkdownIt: e.customMarkdownIt,
|
|
262
263
|
codeBlockProps: e.codeBlockProps,
|
|
@@ -275,7 +276,7 @@ function $i(e, t = {}, r) {
|
|
|
275
276
|
events: t
|
|
276
277
|
};
|
|
277
278
|
}
|
|
278
|
-
function
|
|
279
|
+
function $i(e) {
|
|
279
280
|
if (Array.isArray(e.nodes))
|
|
280
281
|
return e.nodes;
|
|
281
282
|
const t = C(e.content);
|
|
@@ -296,7 +297,7 @@ function Ii(e) {
|
|
|
296
297
|
r
|
|
297
298
|
);
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
+
function $(e) {
|
|
300
301
|
return Array.isArray(e) ? e.filter((t) => !!t && typeof t == "object") : [];
|
|
301
302
|
}
|
|
302
303
|
function C(e) {
|
|
@@ -307,12 +308,12 @@ function ho(e) {
|
|
|
307
308
|
return [];
|
|
308
309
|
const t = /* @__PURE__ */ new Set(), r = [];
|
|
309
310
|
for (const o of e) {
|
|
310
|
-
const n =
|
|
311
|
+
const n = Ii(o);
|
|
311
312
|
!n || t.has(n) || (t.add(n), r.push(n));
|
|
312
313
|
}
|
|
313
314
|
return r;
|
|
314
315
|
}
|
|
315
|
-
function
|
|
316
|
+
function Ii(e) {
|
|
316
317
|
const t = C(e).trim();
|
|
317
318
|
if (!t)
|
|
318
319
|
return "";
|
|
@@ -373,7 +374,7 @@ var zi = Object.defineProperty, Wi = Object.getOwnPropertyDescriptor, nr = (e, t
|
|
|
373
374
|
};
|
|
374
375
|
let ze = class {
|
|
375
376
|
get children() {
|
|
376
|
-
return
|
|
377
|
+
return $(this.node?.children);
|
|
377
378
|
}
|
|
378
379
|
get cite() {
|
|
379
380
|
const e = this.node?.cite;
|
|
@@ -416,10 +417,10 @@ ze = nr([
|
|
|
416
417
|
changeDetection: b.OnPush
|
|
417
418
|
})
|
|
418
419
|
], ze);
|
|
419
|
-
var
|
|
420
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
420
|
+
var Vi = Object.defineProperty, qi = Object.getOwnPropertyDescriptor, po = (e, t, r, o) => {
|
|
421
|
+
for (var n = o > 1 ? void 0 : o ? qi(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
421
422
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
422
|
-
return o && n &&
|
|
423
|
+
return o && n && Vi(t, r, n), n;
|
|
423
424
|
};
|
|
424
425
|
let Wt = class {
|
|
425
426
|
get checked() {
|
|
@@ -469,11 +470,11 @@ function yo() {
|
|
|
469
470
|
}
|
|
470
471
|
};
|
|
471
472
|
}
|
|
472
|
-
let pe = null,
|
|
473
|
+
let pe = null, Ir = !1, ht = null, Rn = !1;
|
|
473
474
|
async function Xi(e) {
|
|
474
|
-
if (
|
|
475
|
+
if (Rn)
|
|
475
476
|
return;
|
|
476
|
-
|
|
477
|
+
Rn = !0;
|
|
477
478
|
const t = globalThis?.MonacoEnvironment;
|
|
478
479
|
t && (typeof t.getWorker == "function" || typeof t.getWorkerUrl == "function") || typeof e?.preloadMonacoWorkers == "function" && await e.preloadMonacoWorkers();
|
|
479
480
|
}
|
|
@@ -496,14 +497,14 @@ async function vo() {
|
|
|
496
497
|
return pe;
|
|
497
498
|
if (ht)
|
|
498
499
|
return await ht;
|
|
499
|
-
if (
|
|
500
|
+
if (Ir)
|
|
500
501
|
return null;
|
|
501
502
|
ht = (async () => {
|
|
502
503
|
try {
|
|
503
504
|
const e = await import("stream-monaco");
|
|
504
|
-
return pe = e?.default ?? e, await Xi(pe), await Gi(pe) ? pe : (pe = null,
|
|
505
|
+
return pe = e?.default ?? e, await Xi(pe), await Gi(pe) ? pe : (pe = null, Ir = !0, null);
|
|
505
506
|
} catch {
|
|
506
|
-
return
|
|
507
|
+
return Ir = !0, null;
|
|
507
508
|
}
|
|
508
509
|
})();
|
|
509
510
|
try {
|
|
@@ -527,7 +528,7 @@ const ye = `
|
|
|
527
528
|
<path d="M12 9v2.5" />
|
|
528
529
|
<path d="M12 11.5l-3.5 3.5" />
|
|
529
530
|
<path d="M12 11.5l3.5 3.5" />
|
|
530
|
-
</svg>`,
|
|
531
|
+
</svg>`, $n = `
|
|
531
532
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
532
533
|
<path d="M8 7l-4 5l4 5" />
|
|
533
534
|
<path d="M16 7l4 5l-4 5" />
|
|
@@ -542,7 +543,7 @@ const ye = `
|
|
|
542
543
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
543
544
|
<path d="M9 4c-2 0-3 1.5-3 3.5v2c0 1.1-.4 1.8-1.5 2.5C5.6 12.7 6 13.4 6 14.5v2C6 18.5 7 20 9 20" />
|
|
544
545
|
<path d="M15 4c2 0 3 1.5 3 3.5v2c0 1.1.4 1.8 1.5 2.5c-1.1.7-1.5 1.4-1.5 2.5v2c0 2-1 3.5-3 3.5" />
|
|
545
|
-
</svg>`,
|
|
546
|
+
</svg>`, In = `
|
|
546
547
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
547
548
|
<path d="M5 6h14" />
|
|
548
549
|
<path d="M12 6v12" />
|
|
@@ -581,17 +582,17 @@ const ye = `
|
|
|
581
582
|
typescript: "TypeScript",
|
|
582
583
|
vue: "Vue"
|
|
583
584
|
}, ts = {
|
|
584
|
-
"":
|
|
585
|
-
html:
|
|
585
|
+
"": In,
|
|
586
|
+
html: $n,
|
|
586
587
|
javascript: ye,
|
|
587
588
|
json: Ji,
|
|
588
589
|
jsx: ye,
|
|
589
590
|
markdown: Yi,
|
|
590
591
|
mermaid: Zi,
|
|
591
|
-
plain:
|
|
592
|
+
plain: In,
|
|
592
593
|
python: ye,
|
|
593
594
|
shell: ye,
|
|
594
|
-
svg:
|
|
595
|
+
svg: $n,
|
|
595
596
|
tsx: ye,
|
|
596
597
|
typescript: ye
|
|
597
598
|
};
|
|
@@ -837,6 +838,9 @@ let Pe = class {
|
|
|
837
838
|
get monacoLanguage() {
|
|
838
839
|
return ns(this.rawLanguage);
|
|
839
840
|
}
|
|
841
|
+
get isPlainTextLanguage() {
|
|
842
|
+
return this.monacoLanguage === "plaintext";
|
|
843
|
+
}
|
|
840
844
|
get displayLanguage() {
|
|
841
845
|
const e = is[this.canonicalLanguage] || this.canonicalLanguage;
|
|
842
846
|
return e ? e.charAt(0).toUpperCase() + e.slice(1) : "Text";
|
|
@@ -1117,6 +1121,7 @@ Pe = Tt([
|
|
|
1117
1121
|
<div
|
|
1118
1122
|
class="code-block-container"
|
|
1119
1123
|
[class.is-dark]="resolvedIsDark"
|
|
1124
|
+
[class.is-plain-text]="isPlainTextLanguage"
|
|
1120
1125
|
[class.is-rendering]="resolvedLoading"
|
|
1121
1126
|
[attr.data-markstream-monaco]="editorReady && !useFallback ? '1' : null"
|
|
1122
1127
|
[attr.data-markstream-monaco-diff]="editorReady && isDiff && !useFallback ? '1' : null"
|
|
@@ -1223,10 +1228,10 @@ Pe = Tt([
|
|
|
1223
1228
|
(click)="toggleExpanded()"
|
|
1224
1229
|
>
|
|
1225
1230
|
<svg *ngIf="expanded" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="1em" height="1em" viewBox="0 0 24 24" class="code-action-btn__icon">
|
|
1226
|
-
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="
|
|
1231
|
+
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6" />
|
|
1227
1232
|
</svg>
|
|
1228
1233
|
<svg *ngIf="!expanded" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="1em" height="1em" viewBox="0 0 24 24" class="code-action-btn__icon">
|
|
1229
|
-
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="
|
|
1234
|
+
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6" />
|
|
1230
1235
|
</svg>
|
|
1231
1236
|
</button>
|
|
1232
1237
|
|
|
@@ -1717,13 +1722,13 @@ let We = class {
|
|
|
1717
1722
|
this.trackByIndex = (e) => `${this.indexKey || "definition-list"}-${e}`;
|
|
1718
1723
|
}
|
|
1719
1724
|
get items() {
|
|
1720
|
-
return
|
|
1725
|
+
return $(this.node?.items);
|
|
1721
1726
|
}
|
|
1722
1727
|
termFor(e) {
|
|
1723
|
-
return
|
|
1728
|
+
return $(e?.term);
|
|
1724
1729
|
}
|
|
1725
1730
|
definitionFor(e) {
|
|
1726
|
-
return
|
|
1731
|
+
return $(e?.definition);
|
|
1727
1732
|
}
|
|
1728
1733
|
itemPrefix(e, t) {
|
|
1729
1734
|
return `${this.indexKey || "definition-list"}-${e}-${t}`;
|
|
@@ -1766,7 +1771,7 @@ We = or([
|
|
|
1766
1771
|
changeDetection: b.OnPush
|
|
1767
1772
|
})
|
|
1768
1773
|
], We);
|
|
1769
|
-
var Ts = Object.defineProperty, _s = Object.getOwnPropertyDescriptor,
|
|
1774
|
+
var Ts = Object.defineProperty, _s = Object.getOwnPropertyDescriptor, Re = (e, t, r, o) => {
|
|
1770
1775
|
for (var n = o > 1 ? void 0 : o ? _s(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
1771
1776
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
1772
1777
|
return o && n && Ts(t, r, n), n;
|
|
@@ -1806,25 +1811,25 @@ let te = class {
|
|
|
1806
1811
|
return !r || typeof r != "object" ? !1 : t in r ? !0 : Object.values(r).includes(t);
|
|
1807
1812
|
}
|
|
1808
1813
|
};
|
|
1809
|
-
|
|
1814
|
+
Re([
|
|
1810
1815
|
l()
|
|
1811
1816
|
], te.prototype, "component", 2);
|
|
1812
|
-
|
|
1817
|
+
Re([
|
|
1813
1818
|
l({ required: !0 })
|
|
1814
1819
|
], te.prototype, "node", 2);
|
|
1815
|
-
|
|
1820
|
+
Re([
|
|
1816
1821
|
l()
|
|
1817
1822
|
], te.prototype, "context", 2);
|
|
1818
|
-
|
|
1823
|
+
Re([
|
|
1819
1824
|
l()
|
|
1820
1825
|
], te.prototype, "indexKey", 2);
|
|
1821
|
-
|
|
1826
|
+
Re([
|
|
1822
1827
|
l()
|
|
1823
1828
|
], te.prototype, "inputs", 2);
|
|
1824
|
-
|
|
1829
|
+
Re([
|
|
1825
1830
|
j("container", { read: fi, static: !0 })
|
|
1826
1831
|
], te.prototype, "containerRef", 2);
|
|
1827
|
-
te =
|
|
1832
|
+
te = Re([
|
|
1828
1833
|
x({
|
|
1829
1834
|
selector: "markstream-angular-dynamic-node-host",
|
|
1830
1835
|
standalone: !0,
|
|
@@ -1837,30 +1842,30 @@ var Ss = Object.defineProperty, Ms = Object.getOwnPropertyDescriptor, Co = (e, t
|
|
|
1837
1842
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
1838
1843
|
return o && n && Ss(t, r, n), n;
|
|
1839
1844
|
};
|
|
1840
|
-
let
|
|
1845
|
+
let Vt = class {
|
|
1841
1846
|
get text() {
|
|
1842
1847
|
return C(this.node?.raw || this.node?.markup || this.node?.content || this.node?.name);
|
|
1843
1848
|
}
|
|
1844
1849
|
};
|
|
1845
1850
|
Co([
|
|
1846
1851
|
l({ required: !0 })
|
|
1847
|
-
],
|
|
1848
|
-
|
|
1852
|
+
], Vt.prototype, "node", 2);
|
|
1853
|
+
Vt = Co([
|
|
1849
1854
|
x({
|
|
1850
1855
|
selector: "markstream-angular-emoji-node",
|
|
1851
1856
|
standalone: !0,
|
|
1852
1857
|
template: '<span class="markstream-angular-emoji">{{ text }}</span>',
|
|
1853
1858
|
changeDetection: b.OnPush
|
|
1854
1859
|
})
|
|
1855
|
-
],
|
|
1860
|
+
], Vt);
|
|
1856
1861
|
var Os = Object.defineProperty, Es = Object.getOwnPropertyDescriptor, ir = (e, t, r, o) => {
|
|
1857
1862
|
for (var n = o > 1 ? void 0 : o ? Es(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
1858
1863
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
1859
1864
|
return o && n && Os(t, r, n), n;
|
|
1860
1865
|
};
|
|
1861
|
-
let
|
|
1866
|
+
let Ve = class {
|
|
1862
1867
|
get children() {
|
|
1863
|
-
return
|
|
1868
|
+
return $(this.node?.children);
|
|
1864
1869
|
}
|
|
1865
1870
|
get nestedPrefix() {
|
|
1866
1871
|
return `${this.indexKey || "emphasis"}-em`;
|
|
@@ -1868,14 +1873,14 @@ let qe = class {
|
|
|
1868
1873
|
};
|
|
1869
1874
|
ir([
|
|
1870
1875
|
l({ required: !0 })
|
|
1871
|
-
],
|
|
1876
|
+
], Ve.prototype, "node", 2);
|
|
1872
1877
|
ir([
|
|
1873
1878
|
l()
|
|
1874
|
-
],
|
|
1879
|
+
], Ve.prototype, "context", 2);
|
|
1875
1880
|
ir([
|
|
1876
1881
|
l()
|
|
1877
|
-
],
|
|
1878
|
-
|
|
1882
|
+
], Ve.prototype, "indexKey", 2);
|
|
1883
|
+
Ve = ir([
|
|
1879
1884
|
x({
|
|
1880
1885
|
selector: "markstream-angular-emphasis-node",
|
|
1881
1886
|
standalone: !0,
|
|
@@ -1891,15 +1896,15 @@ qe = ir([
|
|
|
1891
1896
|
`,
|
|
1892
1897
|
changeDetection: b.OnPush
|
|
1893
1898
|
})
|
|
1894
|
-
],
|
|
1895
|
-
var Ds = Object.defineProperty,
|
|
1896
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
1899
|
+
], Ve);
|
|
1900
|
+
var Ds = Object.defineProperty, Rs = Object.getOwnPropertyDescriptor, sr = (e, t, r, o) => {
|
|
1901
|
+
for (var n = o > 1 ? void 0 : o ? Rs(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
1897
1902
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
1898
1903
|
return o && n && Ds(t, r, n), n;
|
|
1899
1904
|
};
|
|
1900
|
-
let
|
|
1905
|
+
let qe = class {
|
|
1901
1906
|
get children() {
|
|
1902
|
-
return
|
|
1907
|
+
return $(this.node?.children);
|
|
1903
1908
|
}
|
|
1904
1909
|
get hasChildren() {
|
|
1905
1910
|
return this.children.length > 0;
|
|
@@ -1925,14 +1930,14 @@ let Ve = class {
|
|
|
1925
1930
|
};
|
|
1926
1931
|
sr([
|
|
1927
1932
|
l({ required: !0 })
|
|
1928
|
-
],
|
|
1933
|
+
], qe.prototype, "node", 2);
|
|
1929
1934
|
sr([
|
|
1930
1935
|
l()
|
|
1931
|
-
],
|
|
1936
|
+
], qe.prototype, "context", 2);
|
|
1932
1937
|
sr([
|
|
1933
1938
|
l()
|
|
1934
|
-
],
|
|
1935
|
-
|
|
1939
|
+
], qe.prototype, "indexKey", 2);
|
|
1940
|
+
qe = sr([
|
|
1936
1941
|
x({
|
|
1937
1942
|
selector: "markstream-angular-fallback-node",
|
|
1938
1943
|
standalone: !0,
|
|
@@ -1961,13 +1966,13 @@ Ve = sr([
|
|
|
1961
1966
|
`,
|
|
1962
1967
|
changeDetection: b.OnPush
|
|
1963
1968
|
})
|
|
1964
|
-
],
|
|
1965
|
-
var
|
|
1966
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
1969
|
+
], qe);
|
|
1970
|
+
var $s = Object.defineProperty, Is = Object.getOwnPropertyDescriptor, Po = (e, t, r, o) => {
|
|
1971
|
+
for (var n = o > 1 ? void 0 : o ? Is(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
1967
1972
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
1968
|
-
return o && n &&
|
|
1973
|
+
return o && n && $s(t, r, n), n;
|
|
1969
1974
|
};
|
|
1970
|
-
let
|
|
1975
|
+
let qt = class {
|
|
1971
1976
|
get id() {
|
|
1972
1977
|
return C(this.node?.id);
|
|
1973
1978
|
}
|
|
@@ -1980,8 +1985,8 @@ let Vt = class {
|
|
|
1980
1985
|
};
|
|
1981
1986
|
Po([
|
|
1982
1987
|
l({ required: !0 })
|
|
1983
|
-
],
|
|
1984
|
-
|
|
1988
|
+
], qt.prototype, "node", 2);
|
|
1989
|
+
qt = Po([
|
|
1985
1990
|
x({
|
|
1986
1991
|
selector: "markstream-angular-footnote-anchor-node",
|
|
1987
1992
|
standalone: !0,
|
|
@@ -1996,7 +2001,7 @@ Vt = Po([
|
|
|
1996
2001
|
`,
|
|
1997
2002
|
changeDetection: b.OnPush
|
|
1998
2003
|
})
|
|
1999
|
-
],
|
|
2004
|
+
], qt);
|
|
2000
2005
|
var As = Object.defineProperty, Ns = Object.getOwnPropertyDescriptor, ar = (e, t, r, o) => {
|
|
2001
2006
|
for (var n = o > 1 ? void 0 : o ? Ns(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
2002
2007
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
@@ -2007,7 +2012,7 @@ let Ue = class {
|
|
|
2007
2012
|
return `fnref--${C(this.node?.id)}`;
|
|
2008
2013
|
}
|
|
2009
2014
|
get children() {
|
|
2010
|
-
return
|
|
2015
|
+
return $(this.node?.children);
|
|
2011
2016
|
}
|
|
2012
2017
|
get nestedPrefix() {
|
|
2013
2018
|
return `${this.indexKey || "footnote"}-children`;
|
|
@@ -2148,7 +2153,7 @@ let Xe = class {
|
|
|
2148
2153
|
return e && typeof e == "object" ? e : null;
|
|
2149
2154
|
}
|
|
2150
2155
|
get children() {
|
|
2151
|
-
return
|
|
2156
|
+
return $(this.node?.children);
|
|
2152
2157
|
}
|
|
2153
2158
|
get nestedPrefix() {
|
|
2154
2159
|
return `${this.indexKey || "heading"}-${this.level}`;
|
|
@@ -2191,14 +2196,14 @@ Xe = lr([
|
|
|
2191
2196
|
changeDetection: b.OnPush
|
|
2192
2197
|
})
|
|
2193
2198
|
], Xe);
|
|
2194
|
-
var
|
|
2195
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
2199
|
+
var Vs = Object.defineProperty, qs = Object.getOwnPropertyDescriptor, cr = (e, t, r, o) => {
|
|
2200
|
+
for (var n = o > 1 ? void 0 : o ? qs(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
2196
2201
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
2197
|
-
return o && n &&
|
|
2202
|
+
return o && n && Vs(t, r, n), n;
|
|
2198
2203
|
};
|
|
2199
2204
|
let Ge = class {
|
|
2200
2205
|
get children() {
|
|
2201
|
-
return
|
|
2206
|
+
return $(this.node?.children);
|
|
2202
2207
|
}
|
|
2203
2208
|
get nestedPrefix() {
|
|
2204
2209
|
return `${this.indexKey || "highlight"}-highlight`;
|
|
@@ -2572,7 +2577,7 @@ async function Oo() {
|
|
|
2572
2577
|
return typeof t == "function" && t.prototype && t.prototype.render ? r = t : e?.Infographic ? r = e.Infographic : t && t.Infographic && (r = t.Infographic), Ar = r, r;
|
|
2573
2578
|
}).catch((e) => (console.warn("[markstream-angular] Failed to load @antv/infographic", e), null)), await At));
|
|
2574
2579
|
}
|
|
2575
|
-
var sa = Object.defineProperty, aa = Object.getOwnPropertyDescriptor,
|
|
2580
|
+
var sa = Object.defineProperty, aa = Object.getOwnPropertyDescriptor, $e = (e, t, r, o) => {
|
|
2576
2581
|
for (var n = o > 1 ? void 0 : o ? aa(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
2577
2582
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
2578
2583
|
return o && n && sa(t, r, n), n;
|
|
@@ -2752,25 +2757,25 @@ let re = class {
|
|
|
2752
2757
|
});
|
|
2753
2758
|
}
|
|
2754
2759
|
};
|
|
2755
|
-
|
|
2760
|
+
$e([
|
|
2756
2761
|
j("previewHost")
|
|
2757
2762
|
], re.prototype, "previewHost", 2);
|
|
2758
|
-
|
|
2763
|
+
$e([
|
|
2759
2764
|
j("modalHost")
|
|
2760
2765
|
], re.prototype, "modalHost", 2);
|
|
2761
|
-
|
|
2766
|
+
$e([
|
|
2762
2767
|
l({ required: !0 })
|
|
2763
2768
|
], re.prototype, "node", 2);
|
|
2764
|
-
|
|
2769
|
+
$e([
|
|
2765
2770
|
l()
|
|
2766
2771
|
], re.prototype, "context", 2);
|
|
2767
|
-
|
|
2772
|
+
$e([
|
|
2768
2773
|
l()
|
|
2769
2774
|
], re.prototype, "props", 2);
|
|
2770
|
-
|
|
2775
|
+
$e([
|
|
2771
2776
|
co("window:keydown", ["$event"])
|
|
2772
2777
|
], re.prototype, "handleWindowKeydown", 1);
|
|
2773
|
-
re =
|
|
2778
|
+
re = $e([
|
|
2774
2779
|
x({
|
|
2775
2780
|
selector: "markstream-angular-infographic-block-node",
|
|
2776
2781
|
standalone: !0,
|
|
@@ -2991,7 +2996,7 @@ var da = Object.defineProperty, ua = Object.getOwnPropertyDescriptor, hr = (e, t
|
|
|
2991
2996
|
};
|
|
2992
2997
|
let Je = class {
|
|
2993
2998
|
get children() {
|
|
2994
|
-
return
|
|
2999
|
+
return $(this.node?.children);
|
|
2995
3000
|
}
|
|
2996
3001
|
get nestedPrefix() {
|
|
2997
3002
|
return `${this.indexKey || "insert"}-insert`;
|
|
@@ -3047,19 +3052,19 @@ function fr(e) {
|
|
|
3047
3052
|
function Do(e) {
|
|
3048
3053
|
return e === "x" ? "y" : "x";
|
|
3049
3054
|
}
|
|
3050
|
-
function
|
|
3055
|
+
function Ro(e) {
|
|
3051
3056
|
return e === "y" ? "height" : "width";
|
|
3052
3057
|
}
|
|
3053
3058
|
function se(e) {
|
|
3054
3059
|
const t = e[0];
|
|
3055
3060
|
return t === "t" || t === "b" ? "y" : "x";
|
|
3056
3061
|
}
|
|
3057
|
-
function
|
|
3062
|
+
function $o(e) {
|
|
3058
3063
|
return Do(se(e));
|
|
3059
3064
|
}
|
|
3060
3065
|
function ma(e, t, r) {
|
|
3061
3066
|
r === void 0 && (r = !1);
|
|
3062
|
-
const o = fr(e), n =
|
|
3067
|
+
const o = fr(e), n = $o(e), i = Ro(n);
|
|
3063
3068
|
let s = n === "x" ? o === (r ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
3064
3069
|
return t.reference[i] > t.floating[i] && (s = Yt(s)), [s, Yt(s)];
|
|
3065
3070
|
}
|
|
@@ -3132,7 +3137,7 @@ function Fn(e, t, r) {
|
|
|
3132
3137
|
reference: o,
|
|
3133
3138
|
floating: n
|
|
3134
3139
|
} = e;
|
|
3135
|
-
const i = se(t), s =
|
|
3140
|
+
const i = se(t), s = $o(t), a = Ro(s), c = Se(t), d = i === "y", u = o.x + o.width / 2 - n.width / 2, h = o.y + o.height / 2 - n.height / 2, m = o[a] / 2 - n[a] / 2;
|
|
3136
3141
|
let f;
|
|
3137
3142
|
switch (c) {
|
|
3138
3143
|
case "top":
|
|
@@ -3201,7 +3206,7 @@ async function ba(e, t) {
|
|
|
3201
3206
|
y: n,
|
|
3202
3207
|
width: s.floating.width,
|
|
3203
3208
|
height: s.floating.height
|
|
3204
|
-
} : s.reference, E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)),
|
|
3209
|
+
} : s.reference, E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), I = await (i.isElement == null ? void 0 : i.isElement(E)) ? await (i.getScale == null ? void 0 : i.getScale(E)) || {
|
|
3205
3210
|
x: 1,
|
|
3206
3211
|
y: 1
|
|
3207
3212
|
} : {
|
|
@@ -3214,10 +3219,10 @@ async function ba(e, t) {
|
|
|
3214
3219
|
strategy: c
|
|
3215
3220
|
}) : M);
|
|
3216
3221
|
return {
|
|
3217
|
-
top: (v.top - z.top + g.top) /
|
|
3218
|
-
bottom: (z.bottom - v.bottom + g.bottom) /
|
|
3219
|
-
left: (v.left - z.left + g.left) /
|
|
3220
|
-
right: (z.right - v.right + g.right) /
|
|
3222
|
+
top: (v.top - z.top + g.top) / I.y,
|
|
3223
|
+
bottom: (z.bottom - v.bottom + g.bottom) / I.y,
|
|
3224
|
+
left: (v.left - z.left + g.left) / I.x,
|
|
3225
|
+
right: (z.right - v.right + g.right) / I.x
|
|
3221
3226
|
};
|
|
3222
3227
|
}
|
|
3223
3228
|
const ka = 50, Ca = async (e, t, r) => {
|
|
@@ -3248,7 +3253,7 @@ const ka = 50, Ca = async (e, t, r) => {
|
|
|
3248
3253
|
fn: M
|
|
3249
3254
|
} = T, {
|
|
3250
3255
|
x: E,
|
|
3251
|
-
y:
|
|
3256
|
+
y: I,
|
|
3252
3257
|
data: z,
|
|
3253
3258
|
reset: H
|
|
3254
3259
|
} = await M({
|
|
@@ -3265,7 +3270,7 @@ const ka = 50, Ca = async (e, t, r) => {
|
|
|
3265
3270
|
floating: t
|
|
3266
3271
|
}
|
|
3267
3272
|
});
|
|
3268
|
-
u = E ?? u, h =
|
|
3273
|
+
u = E ?? u, h = I ?? h, g[v] = {
|
|
3269
3274
|
...g[v],
|
|
3270
3275
|
...z
|
|
3271
3276
|
}, H && f < ka && (f++, typeof H == "object" && (H.placement && (m = H.placement), H.rects && (d = H.rects === !0 ? await s.getElementRects({
|
|
@@ -3308,46 +3313,46 @@ const ka = 50, Ca = async (e, t, r) => {
|
|
|
3308
3313
|
} = mr(e, t);
|
|
3309
3314
|
if ((r = i.arrow) != null && r.alignmentOffset)
|
|
3310
3315
|
return {};
|
|
3311
|
-
const v = Se(n), M = se(a), E = Se(a) === a,
|
|
3312
|
-
!m && H && z.push(...va(a, y, g,
|
|
3313
|
-
const Ae = [a, ...z], Dr = await c.detectOverflow(t, T),
|
|
3316
|
+
const v = Se(n), M = se(a), E = Se(a) === a, I = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), z = m || (E || !y ? [Yt(a)] : fa(a)), H = g !== "none";
|
|
3317
|
+
!m && H && z.push(...va(a, y, g, I));
|
|
3318
|
+
const Ae = [a, ...z], Dr = await c.detectOverflow(t, T), $t = [];
|
|
3314
3319
|
let Ne = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
3315
|
-
if (u &&
|
|
3316
|
-
const me = ma(n, s,
|
|
3317
|
-
|
|
3320
|
+
if (u && $t.push(Dr[v]), h) {
|
|
3321
|
+
const me = ma(n, s, I);
|
|
3322
|
+
$t.push(Dr[me[0]], Dr[me[1]]);
|
|
3318
3323
|
}
|
|
3319
3324
|
if (Ne = [...Ne, {
|
|
3320
3325
|
placement: n,
|
|
3321
|
-
overflows:
|
|
3322
|
-
}],
|
|
3326
|
+
overflows: $t
|
|
3327
|
+
}], !$t.every((me) => me <= 0)) {
|
|
3323
3328
|
var Sn, Mn;
|
|
3324
|
-
const me = (((Sn = i.flip) == null ? void 0 : Sn.index) || 0) + 1,
|
|
3325
|
-
if (
|
|
3329
|
+
const me = (((Sn = i.flip) == null ? void 0 : Sn.index) || 0) + 1, Rr = Ae[me];
|
|
3330
|
+
if (Rr && (!(h === "alignment" ? M !== se(Rr) : !1) || // We leave the current main axis only if every placement on that axis
|
|
3326
3331
|
// overflows the main axis.
|
|
3327
|
-
Ne.every((
|
|
3332
|
+
Ne.every((V) => se(V.placement) === M ? V.overflows[0] > 0 : !0)))
|
|
3328
3333
|
return {
|
|
3329
3334
|
data: {
|
|
3330
3335
|
index: me,
|
|
3331
3336
|
overflows: Ne
|
|
3332
3337
|
},
|
|
3333
3338
|
reset: {
|
|
3334
|
-
placement:
|
|
3339
|
+
placement: Rr
|
|
3335
3340
|
}
|
|
3336
3341
|
};
|
|
3337
|
-
let dt = (Mn = Ne.filter((fe) => fe.overflows[0] <= 0).sort((fe,
|
|
3342
|
+
let dt = (Mn = Ne.filter((fe) => fe.overflows[0] <= 0).sort((fe, V) => fe.overflows[1] - V.overflows[1])[0]) == null ? void 0 : Mn.placement;
|
|
3338
3343
|
if (!dt)
|
|
3339
3344
|
switch (f) {
|
|
3340
3345
|
case "bestFit": {
|
|
3341
3346
|
var On;
|
|
3342
|
-
const fe = (On = Ne.filter((
|
|
3347
|
+
const fe = (On = Ne.filter((V) => {
|
|
3343
3348
|
if (H) {
|
|
3344
|
-
const ie = se(
|
|
3349
|
+
const ie = se(V.placement);
|
|
3345
3350
|
return ie === M || // Create a bias to the `y` side axis due to horizontal
|
|
3346
3351
|
// reading directions favoring greater width.
|
|
3347
3352
|
ie === "y";
|
|
3348
3353
|
}
|
|
3349
3354
|
return !0;
|
|
3350
|
-
}).map((
|
|
3355
|
+
}).map((V) => [V.placement, V.overflows.filter((ie) => ie > 0).reduce((ie, mi) => ie + mi, 0)]).sort((V, ie) => V[1] - ie[1])[0]) == null ? void 0 : On[0];
|
|
3351
3356
|
fe && (dt = fe);
|
|
3352
3357
|
break;
|
|
3353
3358
|
}
|
|
@@ -3447,12 +3452,12 @@ const Sa = function(e) {
|
|
|
3447
3452
|
}, h = await i.detectOverflow(t, d), m = se(Se(n)), f = Do(m);
|
|
3448
3453
|
let g = u[f], y = u[m];
|
|
3449
3454
|
if (s) {
|
|
3450
|
-
const v = f === "y" ? "top" : "left", M = f === "y" ? "bottom" : "right", E = g + h[v],
|
|
3451
|
-
g = Ln(E, g,
|
|
3455
|
+
const v = f === "y" ? "top" : "left", M = f === "y" ? "bottom" : "right", E = g + h[v], I = g - h[M];
|
|
3456
|
+
g = Ln(E, g, I);
|
|
3452
3457
|
}
|
|
3453
3458
|
if (a) {
|
|
3454
|
-
const v = m === "y" ? "top" : "left", M = m === "y" ? "bottom" : "right", E = y + h[v],
|
|
3455
|
-
y = Ln(E, y,
|
|
3459
|
+
const v = m === "y" ? "top" : "left", M = m === "y" ? "bottom" : "right", E = y + h[v], I = y - h[M];
|
|
3460
|
+
y = Ln(E, y, I);
|
|
3456
3461
|
}
|
|
3457
3462
|
const T = c.fn({
|
|
3458
3463
|
...t,
|
|
@@ -3477,7 +3482,7 @@ function pr() {
|
|
|
3477
3482
|
return typeof window < "u";
|
|
3478
3483
|
}
|
|
3479
3484
|
function ct(e) {
|
|
3480
|
-
return
|
|
3485
|
+
return Io(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
3481
3486
|
}
|
|
3482
3487
|
function K(e) {
|
|
3483
3488
|
var t;
|
|
@@ -3485,9 +3490,9 @@ function K(e) {
|
|
|
3485
3490
|
}
|
|
3486
3491
|
function ee(e) {
|
|
3487
3492
|
var t;
|
|
3488
|
-
return (t = (
|
|
3493
|
+
return (t = (Io(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
3489
3494
|
}
|
|
3490
|
-
function
|
|
3495
|
+
function Io(e) {
|
|
3491
3496
|
return pr() ? e instanceof Node || e instanceof K(e).Node : !1;
|
|
3492
3497
|
}
|
|
3493
3498
|
function G(e) {
|
|
@@ -3529,7 +3534,7 @@ function hn(e) {
|
|
|
3529
3534
|
const t = G(e) ? Z(e) : e;
|
|
3530
3535
|
return ge(t.transform) || ge(t.translate) || ge(t.scale) || ge(t.rotate) || ge(t.perspective) || !mn() && (ge(t.backdropFilter) || ge(t.filter)) || Ea.test(t.willChange || "") || Da.test(t.contain || "");
|
|
3531
3536
|
}
|
|
3532
|
-
function
|
|
3537
|
+
function Ra(e) {
|
|
3533
3538
|
let t = ce(e);
|
|
3534
3539
|
for (; oe(t) && !Qe(t); ) {
|
|
3535
3540
|
if (hn(t))
|
|
@@ -3615,15 +3620,15 @@ function Ke(e) {
|
|
|
3615
3620
|
y: a
|
|
3616
3621
|
};
|
|
3617
3622
|
}
|
|
3618
|
-
const
|
|
3623
|
+
const $a = /* @__PURE__ */ J(0);
|
|
3619
3624
|
function Lo(e) {
|
|
3620
3625
|
const t = K(e);
|
|
3621
|
-
return !mn() || !t.visualViewport ?
|
|
3626
|
+
return !mn() || !t.visualViewport ? $a : {
|
|
3622
3627
|
x: t.visualViewport.offsetLeft,
|
|
3623
3628
|
y: t.visualViewport.offsetTop
|
|
3624
3629
|
};
|
|
3625
3630
|
}
|
|
3626
|
-
function
|
|
3631
|
+
function Ia(e, t, r) {
|
|
3627
3632
|
return t === void 0 && (t = !1), !r || t && r !== K(e) ? !1 : t;
|
|
3628
3633
|
}
|
|
3629
3634
|
function Me(e, t, r, o) {
|
|
@@ -3631,14 +3636,14 @@ function Me(e, t, r, o) {
|
|
|
3631
3636
|
const n = e.getBoundingClientRect(), i = fn(e);
|
|
3632
3637
|
let s = J(1);
|
|
3633
3638
|
t && (o ? G(o) && (s = Ke(o)) : s = Ke(e));
|
|
3634
|
-
const a =
|
|
3639
|
+
const a = Ia(i, r, o) ? Lo(i) : J(0);
|
|
3635
3640
|
let c = (n.left + a.x) / s.x, d = (n.top + a.y) / s.y, u = n.width / s.x, h = n.height / s.y;
|
|
3636
3641
|
if (i) {
|
|
3637
3642
|
const m = K(i), f = o && G(o) ? K(o) : o;
|
|
3638
3643
|
let g = m, y = zr(g);
|
|
3639
3644
|
for (; y && o && f !== g; ) {
|
|
3640
|
-
const T = Ke(y), v = y.getBoundingClientRect(), M = Z(y), E = v.left + (y.clientLeft + parseFloat(M.paddingLeft)) * T.x,
|
|
3641
|
-
c *= T.x, d *= T.y, u *= T.x, h *= T.y, c += E, d +=
|
|
3645
|
+
const T = Ke(y), v = y.getBoundingClientRect(), M = Z(y), E = v.left + (y.clientLeft + parseFloat(M.paddingLeft)) * T.x, I = v.top + (y.clientTop + parseFloat(M.paddingTop)) * T.y;
|
|
3646
|
+
c *= T.x, d *= T.y, u *= T.x, h *= T.y, c += E, d += I, g = K(y), y = zr(g);
|
|
3642
3647
|
}
|
|
3643
3648
|
}
|
|
3644
3649
|
return Jt({
|
|
@@ -3847,7 +3852,7 @@ function Fo(e, t) {
|
|
|
3847
3852
|
let o = Wn(e, t);
|
|
3848
3853
|
for (; o && Oa(o) && Lr(o); )
|
|
3849
3854
|
o = Wn(o, t);
|
|
3850
|
-
return o && Qe(o) && Lr(o) && !hn(o) ? r : o ||
|
|
3855
|
+
return o && Qe(o) && Lr(o) && !hn(o) ? r : o || Ra(e) || r;
|
|
3851
3856
|
}
|
|
3852
3857
|
const Wa = async function(e) {
|
|
3853
3858
|
const t = this.getOffsetParent || Fo, r = this.getDimensions, o = await r(e.floating);
|
|
@@ -3861,10 +3866,10 @@ const Wa = async function(e) {
|
|
|
3861
3866
|
}
|
|
3862
3867
|
};
|
|
3863
3868
|
};
|
|
3864
|
-
function
|
|
3869
|
+
function Va(e) {
|
|
3865
3870
|
return Z(e).direction === "rtl";
|
|
3866
3871
|
}
|
|
3867
|
-
const
|
|
3872
|
+
const qa = {
|
|
3868
3873
|
convertOffsetParentRelativeRectToViewportRelativeRect: Aa,
|
|
3869
3874
|
getDocumentElement: ee,
|
|
3870
3875
|
getClippingRect: Ka,
|
|
@@ -3874,7 +3879,7 @@ const Va = {
|
|
|
3874
3879
|
getDimensions: ja,
|
|
3875
3880
|
getScale: Ke,
|
|
3876
3881
|
isElement: G,
|
|
3877
|
-
isRTL:
|
|
3882
|
+
isRTL: Va
|
|
3878
3883
|
};
|
|
3879
3884
|
function Ko(e, t) {
|
|
3880
3885
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
@@ -3900,17 +3905,17 @@ function Ua(e, t) {
|
|
|
3900
3905
|
rootMargin: -g + "px " + -y + "px " + -T + "px " + -v + "px",
|
|
3901
3906
|
threshold: ke(0, Gt(1, c)) || 1
|
|
3902
3907
|
};
|
|
3903
|
-
let
|
|
3908
|
+
let I = !0;
|
|
3904
3909
|
function z(H) {
|
|
3905
3910
|
const Ae = H[0].intersectionRatio;
|
|
3906
3911
|
if (Ae !== c) {
|
|
3907
|
-
if (!
|
|
3912
|
+
if (!I)
|
|
3908
3913
|
return s();
|
|
3909
3914
|
Ae ? s(!1, Ae) : o = setTimeout(() => {
|
|
3910
3915
|
s(!1, 1e-7);
|
|
3911
3916
|
}, 1e3);
|
|
3912
3917
|
}
|
|
3913
|
-
Ae === 1 && !Ko(d, e.getBoundingClientRect()) && s(),
|
|
3918
|
+
Ae === 1 && !Ko(d, e.getBoundingClientRect()) && s(), I = !1;
|
|
3914
3919
|
}
|
|
3915
3920
|
try {
|
|
3916
3921
|
r = new IntersectionObserver(z, {
|
|
@@ -3963,7 +3968,7 @@ function Xa(e, t, r, o) {
|
|
|
3963
3968
|
}
|
|
3964
3969
|
const Ga = Sa, Za = Ma, Ya = Pa, Ja = (e, t, r) => {
|
|
3965
3970
|
const o = /* @__PURE__ */ new Map(), n = {
|
|
3966
|
-
platform:
|
|
3971
|
+
platform: qa,
|
|
3967
3972
|
...r
|
|
3968
3973
|
}, i = {
|
|
3969
3974
|
...n.platform,
|
|
@@ -3997,7 +4002,7 @@ function el(e) {
|
|
|
3997
4002
|
}
|
|
3998
4003
|
return !1;
|
|
3999
4004
|
}
|
|
4000
|
-
async function
|
|
4005
|
+
async function Vn(e) {
|
|
4001
4006
|
if (!O || !je)
|
|
4002
4007
|
return;
|
|
4003
4008
|
const { x: t, y: r } = await Ja(je, O, {
|
|
@@ -4007,7 +4012,7 @@ async function qn(e) {
|
|
|
4007
4012
|
});
|
|
4008
4013
|
O.style.transform = `translate3d(${Math.round(t)}px, ${Math.round(r)}px, 0)`;
|
|
4009
4014
|
}
|
|
4010
|
-
function
|
|
4015
|
+
function qn(e, t, r = "top", o = !1, n) {
|
|
4011
4016
|
if (!e || typeof document > "u" || !Qa())
|
|
4012
4017
|
return;
|
|
4013
4018
|
jo();
|
|
@@ -4018,8 +4023,8 @@ function Vn(e, t, r = "top", o = !1, n) {
|
|
|
4018
4023
|
e.setAttribute("aria-describedby", gt);
|
|
4019
4024
|
} catch {
|
|
4020
4025
|
}
|
|
4021
|
-
await
|
|
4022
|
-
|
|
4026
|
+
await Vn(r), O.dataset.visible = "true", Qt?.(), Qt = Xa(e, O, () => {
|
|
4027
|
+
Vn(r);
|
|
4023
4028
|
});
|
|
4024
4029
|
}
|
|
4025
4030
|
};
|
|
@@ -4051,12 +4056,21 @@ let de = class {
|
|
|
4051
4056
|
this.settledText = "", this.streamedDelta = "", this.streamFadeVersion = 0;
|
|
4052
4057
|
}
|
|
4053
4058
|
ngOnChanges() {
|
|
4054
|
-
const e = C(this.node?.content), t = C(this.indexKey).trim(), r = this.context?.textStreamState, o = `${this.settledText}${this.streamedDelta}`,
|
|
4059
|
+
const e = C(this.node?.content), t = C(this.indexKey).trim(), r = this.context?.textStreamState, o = this.context?.streamRenderVersion, n = o !== this.lastStreamRenderVersion, i = `${this.settledText}${this.streamedDelta}`, a = (t ? r?.get(t) : void 0) ?? i;
|
|
4060
|
+
if (!this.typewriterEnabled) {
|
|
4061
|
+
this.settledText = e, this.streamedDelta = "", t && r?.set(t, e), this.lastStreamRenderVersion = o;
|
|
4062
|
+
return;
|
|
4063
|
+
}
|
|
4064
|
+
if (e === a) {
|
|
4065
|
+
this.streamedDelta && n ? this.settleStreamedDelta() : i !== e && (this.settledText = e, this.streamedDelta = ""), t && r?.set(t, e), this.lastStreamRenderVersion = o;
|
|
4066
|
+
return;
|
|
4067
|
+
}
|
|
4068
|
+
const c = Eo({
|
|
4055
4069
|
nextContent: e,
|
|
4056
|
-
previousContent:
|
|
4070
|
+
previousContent: a,
|
|
4057
4071
|
typewriterEnabled: this.typewriterEnabled
|
|
4058
4072
|
});
|
|
4059
|
-
this.settledText =
|
|
4073
|
+
this.settledText = c.settledContent, this.streamedDelta = c.streamedDelta, c.appended && (this.streamFadeVersion += 1), t && r?.set(t, e), this.lastStreamRenderVersion = o;
|
|
4060
4074
|
}
|
|
4061
4075
|
get centered() {
|
|
4062
4076
|
return !!this.node?.center;
|
|
@@ -4133,7 +4147,7 @@ let Oe = class {
|
|
|
4133
4147
|
return this.context?.showTooltips !== !1;
|
|
4134
4148
|
}
|
|
4135
4149
|
get children() {
|
|
4136
|
-
return
|
|
4150
|
+
return $(this.node?.children);
|
|
4137
4151
|
}
|
|
4138
4152
|
get hasChildren() {
|
|
4139
4153
|
return this.children.length > 0;
|
|
@@ -4166,13 +4180,13 @@ let Oe = class {
|
|
|
4166
4180
|
this.hovering && Un(!0);
|
|
4167
4181
|
}
|
|
4168
4182
|
onAnchorEnter() {
|
|
4169
|
-
this.resolvedShowTooltip && (this.hovering = !0,
|
|
4183
|
+
this.resolvedShowTooltip && (this.hovering = !0, qn(this.anchorRef?.nativeElement || null, this.title, "top", !1, this.context?.isDark));
|
|
4170
4184
|
}
|
|
4171
4185
|
onAnchorLeave() {
|
|
4172
4186
|
this.resolvedShowTooltip && (this.hovering = !1, Un());
|
|
4173
4187
|
}
|
|
4174
4188
|
syncTooltip() {
|
|
4175
|
-
!this.hovering || !this.resolvedShowTooltip ||
|
|
4189
|
+
!this.hovering || !this.resolvedShowTooltip || qn(this.anchorRef?.nativeElement || null, this.title, "top", !0, this.context?.isDark);
|
|
4176
4190
|
}
|
|
4177
4191
|
};
|
|
4178
4192
|
Et([
|
|
@@ -4246,7 +4260,7 @@ var il = Object.defineProperty, sl = Object.getOwnPropertyDescriptor, Dt = (e, t
|
|
|
4246
4260
|
};
|
|
4247
4261
|
let ue = class {
|
|
4248
4262
|
get children() {
|
|
4249
|
-
return
|
|
4263
|
+
return $(this.node?.children);
|
|
4250
4264
|
}
|
|
4251
4265
|
get nestedPrefix() {
|
|
4252
4266
|
return `${this.indexKey || "list-item"}-item`;
|
|
@@ -4297,7 +4311,7 @@ let et = class {
|
|
|
4297
4311
|
return Number(this.node?.start) || 1;
|
|
4298
4312
|
}
|
|
4299
4313
|
get items() {
|
|
4300
|
-
return
|
|
4314
|
+
return $(this.node?.items);
|
|
4301
4315
|
}
|
|
4302
4316
|
itemPrefix(e) {
|
|
4303
4317
|
return `${this.indexKey || "list"}-${e}`;
|
|
@@ -4370,16 +4384,16 @@ function Wo() {
|
|
|
4370
4384
|
function cl() {
|
|
4371
4385
|
we = null, Kt = !1, He = null;
|
|
4372
4386
|
}
|
|
4373
|
-
function
|
|
4387
|
+
function Vo(e) {
|
|
4374
4388
|
pn = e, cl();
|
|
4375
4389
|
}
|
|
4376
4390
|
function md(e) {
|
|
4377
|
-
|
|
4391
|
+
Vo(e ?? Wo);
|
|
4378
4392
|
}
|
|
4379
4393
|
function fd() {
|
|
4380
|
-
|
|
4394
|
+
Vo(null);
|
|
4381
4395
|
}
|
|
4382
|
-
function
|
|
4396
|
+
function qo() {
|
|
4383
4397
|
return typeof pn == "function";
|
|
4384
4398
|
}
|
|
4385
4399
|
async function yn() {
|
|
@@ -4410,7 +4424,7 @@ async function yn() {
|
|
|
4410
4424
|
He = null;
|
|
4411
4425
|
}
|
|
4412
4426
|
}
|
|
4413
|
-
const
|
|
4427
|
+
const Rt = "WORKER_BUSY";
|
|
4414
4428
|
let U = null, ae = null, Wr = !1;
|
|
4415
4429
|
const F = /* @__PURE__ */ new Map(), ft = /* @__PURE__ */ new Map(), dl = 200, xe = /* @__PURE__ */ new Set();
|
|
4416
4430
|
let Ee = 5;
|
|
@@ -4457,7 +4471,7 @@ function yd(e) {
|
|
|
4457
4471
|
Wr = !!e, U && U.postMessage({ type: "init", debug: Wr });
|
|
4458
4472
|
}
|
|
4459
4473
|
async function hl(e, t = !0, r = 2e3, o) {
|
|
4460
|
-
if (!
|
|
4474
|
+
if (!qo()) {
|
|
4461
4475
|
const a = new Error("KaTeX rendering disabled");
|
|
4462
4476
|
return a.name = "KaTeXDisabled", a.code = "KATEX_DISABLED", Promise.reject(a);
|
|
4463
4477
|
}
|
|
@@ -4471,7 +4485,7 @@ async function hl(e, t = !0, r = 2e3, o) {
|
|
|
4471
4485
|
return Promise.reject(ae);
|
|
4472
4486
|
if (F.size >= Ee) {
|
|
4473
4487
|
const a = new Error("Worker busy");
|
|
4474
|
-
return a.name = "WorkerBusy", a.code =
|
|
4488
|
+
return a.name = "WorkerBusy", a.code = Rt, a.busy = !0, a.inFlight = F.size, a.max = Ee, Promise.reject(a);
|
|
4475
4489
|
}
|
|
4476
4490
|
return new Promise((a, c) => {
|
|
4477
4491
|
if (o?.aborted) {
|
|
@@ -4556,7 +4570,7 @@ function kd() {
|
|
|
4556
4570
|
return { ...Y };
|
|
4557
4571
|
}
|
|
4558
4572
|
async function wn(e, t = !0, r = {}) {
|
|
4559
|
-
if (!
|
|
4573
|
+
if (!qo()) {
|
|
4560
4574
|
const d = new Error("KaTeX rendering disabled");
|
|
4561
4575
|
throw d.name = "KaTeXDisabled", d.code = "KATEX_DISABLED", d;
|
|
4562
4576
|
}
|
|
@@ -4570,7 +4584,7 @@ async function wn(e, t = !0, r = {}) {
|
|
|
4570
4584
|
try {
|
|
4571
4585
|
return await hl(e, t, o, r.signal);
|
|
4572
4586
|
} catch (d) {
|
|
4573
|
-
if (d?.code !==
|
|
4587
|
+
if (d?.code !== Rt || c >= a)
|
|
4574
4588
|
throw d;
|
|
4575
4589
|
c += 1, await ml(n, r.signal).catch(() => {
|
|
4576
4590
|
}), i > 0 && await new Promise((u) => globalThis.setTimeout(u, i * c));
|
|
@@ -4620,7 +4634,7 @@ let bt = class {
|
|
|
4620
4634
|
});
|
|
4621
4635
|
} catch (r) {
|
|
4622
4636
|
const o = r?.code || r?.name;
|
|
4623
|
-
if (!(o === "WORKER_INIT_ERROR" || r?.fallbackToRenderer) && !(o ===
|
|
4637
|
+
if (!(o === "WORKER_INIT_ERROR" || r?.fallbackToRenderer) && !(o === Rt || o === "WORKER_TIMEOUT"))
|
|
4624
4638
|
return null;
|
|
4625
4639
|
}
|
|
4626
4640
|
const t = await yn();
|
|
@@ -4702,7 +4716,7 @@ let kt = class {
|
|
|
4702
4716
|
});
|
|
4703
4717
|
} catch (o) {
|
|
4704
4718
|
const n = o?.code || o?.name;
|
|
4705
|
-
if (!(n === "WORKER_INIT_ERROR" || o?.fallbackToRenderer) && !(n ===
|
|
4719
|
+
if (!(n === "WORKER_INIT_ERROR" || o?.fallbackToRenderer) && !(n === Rt || n === "WORKER_TIMEOUT"))
|
|
4706
4720
|
return null;
|
|
4707
4721
|
}
|
|
4708
4722
|
const r = await yn();
|
|
@@ -4743,7 +4757,7 @@ kt = bn([
|
|
|
4743
4757
|
})
|
|
4744
4758
|
], kt);
|
|
4745
4759
|
const Xo = () => import("mermaid"), kn = "__MARKSTREAM_ANGULAR_MERMAID__";
|
|
4746
|
-
let
|
|
4760
|
+
let q = null, pt = !1, Vr = null, Fe = null, Cn = Xo;
|
|
4747
4761
|
function wl(e) {
|
|
4748
4762
|
const t = String(e?.securityLevel ?? "loose"), r = e?.flowchart?.htmlLabels;
|
|
4749
4763
|
return `${t}|htmlLabels:${r === !1 ? "0" : "1"}`;
|
|
@@ -4783,9 +4797,9 @@ function Lt(e, t) {
|
|
|
4783
4797
|
if (!e || !t)
|
|
4784
4798
|
return;
|
|
4785
4799
|
const r = wl(t);
|
|
4786
|
-
if (
|
|
4800
|
+
if (Vr !== r)
|
|
4787
4801
|
try {
|
|
4788
|
-
typeof e.initialize == "function" ? e.initialize(t) : e.mermaidAPI?.initialize && e.mermaidAPI.initialize(t),
|
|
4802
|
+
typeof e.initialize == "function" ? e.initialize(t) : e.mermaidAPI?.initialize && e.mermaidAPI.initialize(t), Vr = r;
|
|
4789
4803
|
} catch {
|
|
4790
4804
|
}
|
|
4791
4805
|
}
|
|
@@ -4804,7 +4818,7 @@ function Gn(e) {
|
|
|
4804
4818
|
}
|
|
4805
4819
|
}
|
|
4806
4820
|
function bl() {
|
|
4807
|
-
|
|
4821
|
+
q = null, pt = !1, Vr = null, Fe = null;
|
|
4808
4822
|
try {
|
|
4809
4823
|
delete globalThis[kn];
|
|
4810
4824
|
} catch {
|
|
@@ -4823,11 +4837,11 @@ function kl() {
|
|
|
4823
4837
|
return typeof Cn == "function";
|
|
4824
4838
|
}
|
|
4825
4839
|
async function Yo(e) {
|
|
4826
|
-
if (
|
|
4827
|
-
return Lt(
|
|
4840
|
+
if (q)
|
|
4841
|
+
return Lt(q, e), q;
|
|
4828
4842
|
const t = xl();
|
|
4829
4843
|
if (t)
|
|
4830
|
-
return Xn(t),
|
|
4844
|
+
return Xn(t), q = t, Gn(q), Lt(q, e), q;
|
|
4831
4845
|
if (Fe) {
|
|
4832
4846
|
const o = await Fe;
|
|
4833
4847
|
return o && Lt(o, e), o;
|
|
@@ -4840,7 +4854,7 @@ async function Yo(e) {
|
|
|
4840
4854
|
Fe = (async () => {
|
|
4841
4855
|
try {
|
|
4842
4856
|
const o = await r(), n = Go(o);
|
|
4843
|
-
return n ? (Xn(n),
|
|
4857
|
+
return n ? (Xn(n), q = n, Gn(q), q) : (pt = !0, null);
|
|
4844
4858
|
} catch {
|
|
4845
4859
|
return pt = !0, null;
|
|
4846
4860
|
}
|
|
@@ -4968,7 +4982,7 @@ function Ed() {
|
|
|
4968
4982
|
L = null;
|
|
4969
4983
|
}
|
|
4970
4984
|
}
|
|
4971
|
-
var _l = Object.defineProperty, Sl = Object.getOwnPropertyDescriptor,
|
|
4985
|
+
var _l = Object.defineProperty, Sl = Object.getOwnPropertyDescriptor, Ie = (e, t, r, o) => {
|
|
4972
4986
|
for (var n = o > 1 ? void 0 : o ? Sl(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
4973
4987
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
4974
4988
|
return o && n && _l(t, r, n), n;
|
|
@@ -5248,25 +5262,25 @@ ${e}`;
|
|
|
5248
5262
|
});
|
|
5249
5263
|
}
|
|
5250
5264
|
};
|
|
5251
|
-
|
|
5265
|
+
Ie([
|
|
5252
5266
|
j("previewHost")
|
|
5253
5267
|
], ne.prototype, "previewHost", 2);
|
|
5254
|
-
|
|
5268
|
+
Ie([
|
|
5255
5269
|
j("modalHost")
|
|
5256
5270
|
], ne.prototype, "modalHost", 2);
|
|
5257
|
-
|
|
5271
|
+
Ie([
|
|
5258
5272
|
l({ required: !0 })
|
|
5259
5273
|
], ne.prototype, "node", 2);
|
|
5260
|
-
|
|
5274
|
+
Ie([
|
|
5261
5275
|
l()
|
|
5262
5276
|
], ne.prototype, "context", 2);
|
|
5263
|
-
|
|
5277
|
+
Ie([
|
|
5264
5278
|
l()
|
|
5265
5279
|
], ne.prototype, "props", 2);
|
|
5266
|
-
|
|
5280
|
+
Ie([
|
|
5267
5281
|
co("window:keydown", ["$event"])
|
|
5268
5282
|
], ne.prototype, "handleWindowKeydown", 1);
|
|
5269
|
-
ne =
|
|
5283
|
+
ne = Ie([
|
|
5270
5284
|
x({
|
|
5271
5285
|
selector: "markstream-angular-mermaid-block-node",
|
|
5272
5286
|
standalone: !0,
|
|
@@ -5420,7 +5434,7 @@ let tt = class {
|
|
|
5420
5434
|
this.segments = [], this.trackByIndex = (e) => `${this.indexKey || "paragraph"}-${e}`;
|
|
5421
5435
|
}
|
|
5422
5436
|
get children() {
|
|
5423
|
-
return
|
|
5437
|
+
return $(this.node?.children);
|
|
5424
5438
|
}
|
|
5425
5439
|
ngOnChanges() {
|
|
5426
5440
|
this.segments = ji(this.children);
|
|
@@ -5481,8 +5495,8 @@ tt = xr([
|
|
|
5481
5495
|
changeDetection: b.OnPush
|
|
5482
5496
|
})
|
|
5483
5497
|
], tt);
|
|
5484
|
-
var Dl = Object.defineProperty,
|
|
5485
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
5498
|
+
var Dl = Object.defineProperty, Rl = Object.getOwnPropertyDescriptor, ri = (e, t, r, o) => {
|
|
5499
|
+
for (var n = o > 1 ? void 0 : o ? Rl(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
5486
5500
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
5487
5501
|
return o && n && Dl(t, r, n), n;
|
|
5488
5502
|
};
|
|
@@ -5511,7 +5525,7 @@ function ni(e, t) {
|
|
|
5511
5525
|
function Pn(e) {
|
|
5512
5526
|
return String(e?.tag || "").trim().toLowerCase() || Bi(e?.content);
|
|
5513
5527
|
}
|
|
5514
|
-
function
|
|
5528
|
+
function $l(e) {
|
|
5515
5529
|
const t = Pn(e);
|
|
5516
5530
|
return t ? {
|
|
5517
5531
|
...e,
|
|
@@ -5520,7 +5534,7 @@ function Il(e) {
|
|
|
5520
5534
|
content: Hi(e?.content, t)
|
|
5521
5535
|
} : e;
|
|
5522
5536
|
}
|
|
5523
|
-
function
|
|
5537
|
+
function Il(e, t) {
|
|
5524
5538
|
const r = Pn(e);
|
|
5525
5539
|
return r ? {
|
|
5526
5540
|
...e,
|
|
@@ -5541,7 +5555,7 @@ var Nl = Object.defineProperty, Ll = Object.getOwnPropertyDescriptor, br = (e, t
|
|
|
5541
5555
|
};
|
|
5542
5556
|
let rt = class {
|
|
5543
5557
|
get children() {
|
|
5544
|
-
return
|
|
5558
|
+
return $(this.node?.children);
|
|
5545
5559
|
}
|
|
5546
5560
|
get nestedPrefix() {
|
|
5547
5561
|
return `${this.indexKey || "strikethrough"}-strike`;
|
|
@@ -5580,7 +5594,7 @@ var Bl = Object.defineProperty, Hl = Object.getOwnPropertyDescriptor, kr = (e, t
|
|
|
5580
5594
|
};
|
|
5581
5595
|
let nt = class {
|
|
5582
5596
|
get children() {
|
|
5583
|
-
return
|
|
5597
|
+
return $(this.node?.children);
|
|
5584
5598
|
}
|
|
5585
5599
|
get nestedPrefix() {
|
|
5586
5600
|
return `${this.indexKey || "strong"}-strong`;
|
|
@@ -5619,7 +5633,7 @@ var Fl = Object.defineProperty, Kl = Object.getOwnPropertyDescriptor, Cr = (e, t
|
|
|
5619
5633
|
};
|
|
5620
5634
|
let ot = class {
|
|
5621
5635
|
get children() {
|
|
5622
|
-
return
|
|
5636
|
+
return $(this.node?.children);
|
|
5623
5637
|
}
|
|
5624
5638
|
get nestedPrefix() {
|
|
5625
5639
|
return `${this.indexKey || "subscript"}-sub`;
|
|
@@ -5658,7 +5672,7 @@ var jl = Object.defineProperty, zl = Object.getOwnPropertyDescriptor, Pr = (e, t
|
|
|
5658
5672
|
};
|
|
5659
5673
|
let it = class {
|
|
5660
5674
|
get children() {
|
|
5661
|
-
return
|
|
5675
|
+
return $(this.node?.children);
|
|
5662
5676
|
}
|
|
5663
5677
|
get nestedPrefix() {
|
|
5664
5678
|
return `${this.indexKey || "superscript"}-sup`;
|
|
@@ -5690,8 +5704,8 @@ it = Pr([
|
|
|
5690
5704
|
changeDetection: b.OnPush
|
|
5691
5705
|
})
|
|
5692
5706
|
], it);
|
|
5693
|
-
var Wl = Object.defineProperty,
|
|
5694
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
5707
|
+
var Wl = Object.defineProperty, Vl = Object.getOwnPropertyDescriptor, Tr = (e, t, r, o) => {
|
|
5708
|
+
for (var n = o > 1 ? void 0 : o ? Vl(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
5695
5709
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
5696
5710
|
return o && n && Wl(t, r, n), n;
|
|
5697
5711
|
};
|
|
@@ -5704,13 +5718,13 @@ let st = class {
|
|
|
5704
5718
|
return e && typeof e == "object" ? e : null;
|
|
5705
5719
|
}
|
|
5706
5720
|
get rows() {
|
|
5707
|
-
return
|
|
5721
|
+
return $(this.node?.rows);
|
|
5708
5722
|
}
|
|
5709
5723
|
cellsFor(e) {
|
|
5710
|
-
return
|
|
5724
|
+
return $(e?.cells);
|
|
5711
5725
|
}
|
|
5712
5726
|
childrenFor(e) {
|
|
5713
|
-
return
|
|
5727
|
+
return $(e?.children);
|
|
5714
5728
|
}
|
|
5715
5729
|
alignment(e) {
|
|
5716
5730
|
return C(e?.align);
|
|
@@ -5766,21 +5780,21 @@ st = Tr([
|
|
|
5766
5780
|
changeDetection: b.OnPush
|
|
5767
5781
|
})
|
|
5768
5782
|
], st);
|
|
5769
|
-
var
|
|
5770
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
5783
|
+
var ql = Object.getOwnPropertyDescriptor, Ul = (e, t, r, o) => {
|
|
5784
|
+
for (var n = o > 1 ? void 0 : o ? ql(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
5771
5785
|
(s = e[i]) && (n = s(n) || n);
|
|
5772
5786
|
return n;
|
|
5773
5787
|
};
|
|
5774
|
-
let
|
|
5788
|
+
let qr = class {
|
|
5775
5789
|
};
|
|
5776
|
-
|
|
5790
|
+
qr = Ul([
|
|
5777
5791
|
x({
|
|
5778
5792
|
selector: "markstream-angular-thematic-break-node",
|
|
5779
5793
|
standalone: !0,
|
|
5780
5794
|
template: "<hr>",
|
|
5781
5795
|
changeDetection: b.OnPush
|
|
5782
5796
|
})
|
|
5783
|
-
],
|
|
5797
|
+
], qr);
|
|
5784
5798
|
var Xl = Object.defineProperty, Gl = Object.getOwnPropertyDescriptor, _r = (e, t, r, o) => {
|
|
5785
5799
|
for (var n = o > 1 ? void 0 : o ? Gl(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
5786
5800
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
@@ -5788,7 +5802,7 @@ var Xl = Object.defineProperty, Gl = Object.getOwnPropertyDescriptor, _r = (e, t
|
|
|
5788
5802
|
};
|
|
5789
5803
|
let at = class {
|
|
5790
5804
|
get children() {
|
|
5791
|
-
return
|
|
5805
|
+
return $(this.node?.children);
|
|
5792
5806
|
}
|
|
5793
5807
|
get nestedPrefix() {
|
|
5794
5808
|
return `${this.indexKey || "vmr"}-container`;
|
|
@@ -5848,7 +5862,7 @@ let he = class {
|
|
|
5848
5862
|
return r ? e?.[r] ?? null : null;
|
|
5849
5863
|
}
|
|
5850
5864
|
get customNode() {
|
|
5851
|
-
return
|
|
5865
|
+
return $l(this.node);
|
|
5852
5866
|
}
|
|
5853
5867
|
get codeMode() {
|
|
5854
5868
|
return ni(this.node, this.context);
|
|
@@ -5857,7 +5871,7 @@ let he = class {
|
|
|
5857
5871
|
return Pn(this.node);
|
|
5858
5872
|
}
|
|
5859
5873
|
get htmlRenderNode() {
|
|
5860
|
-
return
|
|
5874
|
+
return Il(this.node, this.resolvedType);
|
|
5861
5875
|
}
|
|
5862
5876
|
get fallbackNode() {
|
|
5863
5877
|
return this.node;
|
|
@@ -5888,10 +5902,10 @@ he = Sr([
|
|
|
5888
5902
|
p(() => Te),
|
|
5889
5903
|
p(() => We),
|
|
5890
5904
|
p(() => te),
|
|
5891
|
-
p(() => qt),
|
|
5892
|
-
p(() => qe),
|
|
5893
|
-
p(() => Ve),
|
|
5894
5905
|
p(() => Vt),
|
|
5906
|
+
p(() => Ve),
|
|
5907
|
+
p(() => qe),
|
|
5908
|
+
p(() => qt),
|
|
5895
5909
|
p(() => Ue),
|
|
5896
5910
|
p(() => Ut),
|
|
5897
5911
|
p(() => Kr),
|
|
@@ -5918,7 +5932,7 @@ he = Sr([
|
|
|
5918
5932
|
p(() => it),
|
|
5919
5933
|
p(() => st),
|
|
5920
5934
|
p(() => de),
|
|
5921
|
-
p(() =>
|
|
5935
|
+
p(() => qr),
|
|
5922
5936
|
p(() => at)
|
|
5923
5937
|
],
|
|
5924
5938
|
template: `
|
|
@@ -6158,7 +6172,7 @@ let lt = class {
|
|
|
6158
6172
|
return C(this.node?.title) || Li(this.kind);
|
|
6159
6173
|
}
|
|
6160
6174
|
get children() {
|
|
6161
|
-
return
|
|
6175
|
+
return $(this.node?.children);
|
|
6162
6176
|
}
|
|
6163
6177
|
get nestedPrefix() {
|
|
6164
6178
|
return `${this.indexKey || "admonition"}-children`;
|
|
@@ -6329,7 +6343,7 @@ async function to(e, t) {
|
|
|
6329
6343
|
});
|
|
6330
6344
|
} catch (n) {
|
|
6331
6345
|
const i = n?.code || n?.name;
|
|
6332
|
-
if (!(i === "WORKER_INIT_ERROR" || n?.fallbackToRenderer) && !(i ===
|
|
6346
|
+
if (!(i === "WORKER_INIT_ERROR" || n?.fallbackToRenderer) && !(i === Rt || i === "WORKER_TIMEOUT"))
|
|
6333
6347
|
throw n;
|
|
6334
6348
|
}
|
|
6335
6349
|
const r = await yn();
|
|
@@ -6517,10 +6531,10 @@ async function uc(e, t, r, o) {
|
|
|
6517
6531
|
throw new TypeError("D2 instance is missing compile/render methods.");
|
|
6518
6532
|
const m = await h.compile(c), f = m?.diagram ?? m, g = m?.renderOptions ?? m?.options ?? {}, y = r.d2ThemeId ?? g.themeID, T = r.d2DarkThemeId ?? g.darkThemeID, v = { ...g };
|
|
6519
6533
|
if (v.themeID = r.isDark && T != null ? T : y, v.darkThemeID = null, v.darkThemeOverrides = null, r.isDark) {
|
|
6520
|
-
const
|
|
6534
|
+
const I = g.themeOverrides && typeof g.themeOverrides == "object" ? g.themeOverrides : null;
|
|
6521
6535
|
v.themeOverrides = {
|
|
6522
6536
|
...rc,
|
|
6523
|
-
...
|
|
6537
|
+
...I || {}
|
|
6524
6538
|
};
|
|
6525
6539
|
}
|
|
6526
6540
|
const M = await h.render(f, v);
|
|
@@ -6741,7 +6755,7 @@ var Tc = Object.defineProperty, _c = Object.getOwnPropertyDescriptor, k = (e, t,
|
|
|
6741
6755
|
const oo = /auto|scroll|overlay/i;
|
|
6742
6756
|
let w = class {
|
|
6743
6757
|
constructor() {
|
|
6744
|
-
this.cdr = Q(De), this.hostRef = Q(lo), this.content = "", this.codeBlockStream = !0, this.renderCodeBlocksAsPre = !1, this.showTooltips = !0, this.isDark = !1, this.typewriter = !0, this.batchRendering = !0, this.initialRenderBatchSize = 40, this.renderBatchSize = 80, this.renderBatchDelay = 16, this.renderBatchBudgetMs = 6, this.renderBatchIdleTimeoutMs = 120, this.deferNodesUntilVisible = !0, this.maxLiveNodes = 320, this.liveNodeBuffer = 60, this.allowHtml = !0, this.copy = new ut(), this.handleArtifactClick = new ut(), this.click = new ut(), this.mouseover = new ut(), this.mouseout = new ut(), this.parsedNodes = [], this.visibleEntries = [], this.renderContext = { events: {} }, this.topSpacerHeight = 0, this.bottomSpacerHeight = 0, this.renderedCount = 0, this.focusIndex = 0, this.liveRange = { start: 0, end: 0 }, this.nodeHeights = /* @__PURE__ */ new Map(), this.nodeVisibility = /* @__PURE__ */ new Set(), this.nodeSeen = /* @__PURE__ */ new Set(), this.textStreamState = /* @__PURE__ */ new Map(), this.slotElements = /* @__PURE__ */ new Map(), this.observedElements = /* @__PURE__ */ new Map(), this.observer = null, this.observerConfig = null, this.observerIndexByElement = /* @__PURE__ */ new Map(), this.batchTimer = null, this.batchRaf = null, this.batchIdle = null, this.batchPending = !1, this.enhancementToken = 0, this.enhancementTimer = null, this.enhancementHandle = null, this.postRenderTimer = null, this.trackByEntry = (e, t) => `${this.resolvedIndexPrefix}-${t.index}`;
|
|
6758
|
+
this.cdr = Q(De), this.hostRef = Q(lo), this.content = "", this.codeBlockStream = !0, this.renderCodeBlocksAsPre = !1, this.showTooltips = !0, this.isDark = !1, this.typewriter = !0, this.batchRendering = !0, this.initialRenderBatchSize = 40, this.renderBatchSize = 80, this.renderBatchDelay = 16, this.renderBatchBudgetMs = 6, this.renderBatchIdleTimeoutMs = 120, this.deferNodesUntilVisible = !0, this.maxLiveNodes = 320, this.liveNodeBuffer = 60, this.allowHtml = !0, this.copy = new ut(), this.handleArtifactClick = new ut(), this.click = new ut(), this.mouseover = new ut(), this.mouseout = new ut(), this.parsedNodes = [], this.visibleEntries = [], this.renderContext = { events: {} }, this.topSpacerHeight = 0, this.bottomSpacerHeight = 0, this.renderedCount = 0, this.focusIndex = 0, this.liveRange = { start: 0, end: 0 }, this.nodeHeights = /* @__PURE__ */ new Map(), this.nodeVisibility = /* @__PURE__ */ new Set(), this.nodeSeen = /* @__PURE__ */ new Set(), this.textStreamState = /* @__PURE__ */ new Map(), this.streamRenderVersion = 0, this.slotElements = /* @__PURE__ */ new Map(), this.observedElements = /* @__PURE__ */ new Map(), this.observer = null, this.observerConfig = null, this.observerIndexByElement = /* @__PURE__ */ new Map(), this.batchTimer = null, this.batchRaf = null, this.batchIdle = null, this.batchPending = !1, this.enhancementToken = 0, this.enhancementTimer = null, this.enhancementHandle = null, this.postRenderTimer = null, this.trackByEntry = (e, t) => `${this.resolvedIndexPrefix}-${t.index}`;
|
|
6745
6759
|
}
|
|
6746
6760
|
get resolvedIndexPrefix() {
|
|
6747
6761
|
return this.indexKey != null ? String(this.indexKey) : "renderer";
|
|
@@ -6783,8 +6797,8 @@ let w = class {
|
|
|
6783
6797
|
get shouldObserveSlots() {
|
|
6784
6798
|
return this.deferNodesActive || this.virtualizationEnabled;
|
|
6785
6799
|
}
|
|
6786
|
-
ngOnChanges() {
|
|
6787
|
-
this.rebuild();
|
|
6800
|
+
ngOnChanges(e) {
|
|
6801
|
+
(e.content || e.nodes) && (this.streamRenderVersion += 1), this.rebuild();
|
|
6788
6802
|
}
|
|
6789
6803
|
ngOnInit() {
|
|
6790
6804
|
this.unsubscribeCustomComponents = Ei(() => {
|
|
@@ -6815,14 +6829,15 @@ let w = class {
|
|
|
6815
6829
|
onCopy: (n) => this.copy.emit(n),
|
|
6816
6830
|
onHandleArtifactClick: (n) => this.handleArtifactClick.emit(n)
|
|
6817
6831
|
};
|
|
6818
|
-
this.renderContext =
|
|
6832
|
+
this.renderContext = Ri(
|
|
6819
6833
|
{
|
|
6820
6834
|
...this,
|
|
6821
6835
|
customComponents: t
|
|
6822
6836
|
},
|
|
6823
6837
|
r,
|
|
6824
|
-
this.textStreamState
|
|
6825
|
-
|
|
6838
|
+
this.textStreamState,
|
|
6839
|
+
this.streamRenderVersion
|
|
6840
|
+
), this.parsedNodes = $i(this), this.trimMeasuredState();
|
|
6826
6841
|
const o = this.parsedNodes.length;
|
|
6827
6842
|
this.focusIndex = Math.max(0, Math.min(this.focusIndex, Math.max(0, o - 1))), this.virtualizationEnabled ? (this.renderedCount = o, this.liveRange = no(o, this.focusIndex, this.resolvedMaxLiveNodes, this.resolvedLiveNodeBuffer)) : (this.liveRange = { start: 0, end: o }, this.renderedCount = this.incrementalRenderingActive ? Math.min(o, this.resolvedInitialBatchSize) : o), this.deferNodesActive || this.nodeVisibility.clear(), this.refreshVisibleEntries(), this.cdr.markForCheck(), this.schedulePostRenderWork(), this.incrementalRenderingActive && this.renderedCount < o && this.scheduleBatchStep();
|
|
6828
6843
|
}
|
|
@@ -7275,15 +7290,15 @@ function Dd(e) {
|
|
|
7275
7290
|
}), o = Ec(e, r);
|
|
7276
7291
|
return D(o, r);
|
|
7277
7292
|
}
|
|
7278
|
-
function
|
|
7293
|
+
function Rd(e, t = {}) {
|
|
7279
7294
|
const r = Er(t);
|
|
7280
7295
|
return Dc(e, r);
|
|
7281
7296
|
}
|
|
7282
|
-
function
|
|
7297
|
+
function $d(e, t = {}) {
|
|
7283
7298
|
const r = Er(t);
|
|
7284
7299
|
return D(e, r);
|
|
7285
7300
|
}
|
|
7286
|
-
function
|
|
7301
|
+
function Id(e, t = {}) {
|
|
7287
7302
|
const r = Er(t);
|
|
7288
7303
|
return ai(e, r);
|
|
7289
7304
|
}
|
|
@@ -7324,7 +7339,7 @@ function Dc(e, t) {
|
|
|
7324
7339
|
return D(e.nodes, t);
|
|
7325
7340
|
const r = e.node;
|
|
7326
7341
|
if (r) {
|
|
7327
|
-
const o =
|
|
7342
|
+
const o = R(r.children);
|
|
7328
7343
|
if (o.length > 0)
|
|
7329
7344
|
return D(o, t);
|
|
7330
7345
|
const n = P(r.content);
|
|
@@ -7345,35 +7360,35 @@ function ai(e, t) {
|
|
|
7345
7360
|
case "text":
|
|
7346
7361
|
return N(P(e.content));
|
|
7347
7362
|
case "paragraph":
|
|
7348
|
-
return `<p>${D(
|
|
7363
|
+
return `<p>${D(R(e.children), t)}</p>`;
|
|
7349
7364
|
case "strong":
|
|
7350
|
-
return `<strong>${D(
|
|
7365
|
+
return `<strong>${D(R(e.children), t)}</strong>`;
|
|
7351
7366
|
case "emphasis":
|
|
7352
|
-
return `<em>${D(
|
|
7367
|
+
return `<em>${D(R(e.children), t)}</em>`;
|
|
7353
7368
|
case "strikethrough":
|
|
7354
|
-
return `<del>${D(
|
|
7369
|
+
return `<del>${D(R(e.children), t)}</del>`;
|
|
7355
7370
|
case "highlight":
|
|
7356
|
-
return `<mark>${D(
|
|
7371
|
+
return `<mark>${D(R(e.children), t)}</mark>`;
|
|
7357
7372
|
case "insert":
|
|
7358
|
-
return `<ins>${D(
|
|
7373
|
+
return `<ins>${D(R(e.children), t)}</ins>`;
|
|
7359
7374
|
case "subscript":
|
|
7360
|
-
return `<sub>${D(
|
|
7375
|
+
return `<sub>${D(R(e.children), t)}</sub>`;
|
|
7361
7376
|
case "superscript":
|
|
7362
|
-
return `<sup>${D(
|
|
7377
|
+
return `<sup>${D(R(e.children), t)}</sup>`;
|
|
7363
7378
|
case "inline_code":
|
|
7364
7379
|
return `<code>${N(P(e.code))}</code>`;
|
|
7365
7380
|
case "hardbreak":
|
|
7366
7381
|
return "<br>";
|
|
7367
7382
|
case "link":
|
|
7368
|
-
return
|
|
7383
|
+
return Rc(e, t);
|
|
7369
7384
|
case "image":
|
|
7370
7385
|
return Ac(e);
|
|
7371
7386
|
case "list":
|
|
7372
7387
|
return Nc(e, t);
|
|
7373
7388
|
case "list_item":
|
|
7374
|
-
return `<li>${D(
|
|
7389
|
+
return `<li>${D(R(e.children), t)}</li>`;
|
|
7375
7390
|
case "blockquote":
|
|
7376
|
-
return `<blockquote>${D(
|
|
7391
|
+
return `<blockquote>${D(R(e.children), t)}</blockquote>`;
|
|
7377
7392
|
case "heading":
|
|
7378
7393
|
return Lc(e, t);
|
|
7379
7394
|
case "code_block":
|
|
@@ -7402,26 +7417,26 @@ function ai(e, t) {
|
|
|
7402
7417
|
case "emoji":
|
|
7403
7418
|
return N(P(e.raw || e.markup || e.content || e.name));
|
|
7404
7419
|
case "math_inline":
|
|
7405
|
-
return
|
|
7420
|
+
return $c(e);
|
|
7406
7421
|
case "math_block":
|
|
7407
|
-
return
|
|
7422
|
+
return Ic(e);
|
|
7408
7423
|
case "reference":
|
|
7409
7424
|
return `<sup class="markstream-nested-reference">[${N(P(e.id))}]</sup>`;
|
|
7410
7425
|
case "html_inline":
|
|
7411
7426
|
case "html_block":
|
|
7412
7427
|
return Wc(e, t);
|
|
7413
7428
|
default:
|
|
7414
|
-
return
|
|
7429
|
+
return Vc(e, t);
|
|
7415
7430
|
}
|
|
7416
7431
|
}
|
|
7417
|
-
function
|
|
7418
|
-
const r = P(e.href), o = P(e.title), n =
|
|
7432
|
+
function Rc(e, t) {
|
|
7433
|
+
const r = P(e.href), o = P(e.title), n = R(e.children).length > 0 ? D(R(e.children), t) : N(P(e.text || r)), i = o ? ` title="${B(o)}"` : "";
|
|
7419
7434
|
return `<a${r ? ` href="${B(r)}"` : ""}${i} target="_blank" rel="noreferrer noopener">${n}</a>`;
|
|
7420
7435
|
}
|
|
7421
|
-
function
|
|
7436
|
+
function $c(e) {
|
|
7422
7437
|
return `<span class="markstream-nested-math" data-display="inline"><span class="markstream-nested-math__source">${N(P(e.content || e.markup || e.raw))}</span><span class="markstream-nested-math__render" aria-hidden="true"></span></span>`;
|
|
7423
7438
|
}
|
|
7424
|
-
function
|
|
7439
|
+
function Ic(e) {
|
|
7425
7440
|
return `<div class="markstream-nested-math-block"><pre class="markstream-nested-math-block__source"><code>${N(P(e.content || e.markup || e.raw))}</code></pre><div class="markstream-nested-math-block__render" aria-hidden="true"></div></div>`;
|
|
7426
7441
|
}
|
|
7427
7442
|
function Ac(e) {
|
|
@@ -7430,11 +7445,11 @@ function Ac(e) {
|
|
|
7430
7445
|
}
|
|
7431
7446
|
function Nc(e, t) {
|
|
7432
7447
|
const r = e.ordered ? "ol" : "ul", o = e.ordered && Number.isFinite(e.start) ? ` start="${Number(e.start)}"` : "";
|
|
7433
|
-
return `<${r}${o}>${D(
|
|
7448
|
+
return `<${r}${o}>${D(R(e.items), t)}</${r}>`;
|
|
7434
7449
|
}
|
|
7435
7450
|
function Lc(e, t) {
|
|
7436
7451
|
const r = Yc(e.level);
|
|
7437
|
-
return `<h${r}>${D(
|
|
7452
|
+
return `<h${r}>${D(R(e.children), t)}</h${r}>`;
|
|
7438
7453
|
}
|
|
7439
7454
|
function Bc(e) {
|
|
7440
7455
|
const t = P(e.language).trim(), r = _n(t), o = r ? ` class="language-${r}"` : "", n = !!e.diff;
|
|
@@ -7447,25 +7462,25 @@ function Bc(e) {
|
|
|
7447
7462
|
].filter(Boolean).join(" ")}><code${o}>${N(P(e.code))}</code></pre>`;
|
|
7448
7463
|
}
|
|
7449
7464
|
function Hc(e, t) {
|
|
7450
|
-
const r = e.header ? li(e.header, t, !0) : "", o = D(
|
|
7465
|
+
const r = e.header ? li(e.header, t, !0) : "", o = D(R(e.rows), t), n = r ? `<thead>${r}</thead>` : "", i = o ? `<tbody>${o}</tbody>` : "";
|
|
7451
7466
|
return `<table>${n}${i}</table>`;
|
|
7452
7467
|
}
|
|
7453
7468
|
function li(e, t, r = !1) {
|
|
7454
|
-
return `<tr>${
|
|
7469
|
+
return `<tr>${R(e.cells).map((n) => ci(n, t, r)).join("")}</tr>`;
|
|
7455
7470
|
}
|
|
7456
7471
|
function ci(e, t, r = !1) {
|
|
7457
7472
|
const o = r || e.header ? "th" : "td", n = P(e.align), i = n ? ` style="text-align:${B(n)}"` : "";
|
|
7458
|
-
return `<${o}${i}>${D(
|
|
7473
|
+
return `<${o}${i}>${D(R(e.children), t)}</${o}>`;
|
|
7459
7474
|
}
|
|
7460
7475
|
function Fc(e, t) {
|
|
7461
|
-
return `<dl>${
|
|
7476
|
+
return `<dl>${R(e.items).map((r) => di(r, t)).join("")}</dl>`;
|
|
7462
7477
|
}
|
|
7463
7478
|
function di(e, t) {
|
|
7464
|
-
const r = D(
|
|
7479
|
+
const r = D(R(e.term), t), o = D(R(e.definition), t);
|
|
7465
7480
|
return `<dt>${r}</dt><dd>${o}</dd>`;
|
|
7466
7481
|
}
|
|
7467
7482
|
function Kc(e, t) {
|
|
7468
|
-
return `<div id="fnref--${B(P(e.id))}" class="markstream-nested-footnote">${D(
|
|
7483
|
+
return `<div id="fnref--${B(P(e.id))}" class="markstream-nested-footnote">${D(R(e.children), t)}</div>`;
|
|
7469
7484
|
}
|
|
7470
7485
|
function jc(e) {
|
|
7471
7486
|
const t = N(P(e.id));
|
|
@@ -7473,13 +7488,13 @@ function jc(e) {
|
|
|
7473
7488
|
}
|
|
7474
7489
|
function zc(e, t) {
|
|
7475
7490
|
const r = _n(P(e.kind || "note")) || "note", o = P(e.title) || Jc(r);
|
|
7476
|
-
return `<div class="markstream-nested-admonition markstream-nested-admonition--${r}"><div class="markstream-nested-admonition__title">${N(o)}</div><div class="markstream-nested-admonition__content">${D(
|
|
7491
|
+
return `<div class="markstream-nested-admonition markstream-nested-admonition--${r}"><div class="markstream-nested-admonition__title">${N(o)}</div><div class="markstream-nested-admonition__content">${D(R(e.children), t)}</div></div>`;
|
|
7477
7492
|
}
|
|
7478
7493
|
function Wc(e, t) {
|
|
7479
7494
|
const r = P(e.content);
|
|
7480
7495
|
return r ? !t.options.allowHtml || e.loading && !e.autoClosed ? N(r) : un(r) : "";
|
|
7481
7496
|
}
|
|
7482
|
-
function
|
|
7497
|
+
function Vc(e, t) {
|
|
7483
7498
|
const r = P(e.tag || e.type);
|
|
7484
7499
|
if (!r || Oc.has(r))
|
|
7485
7500
|
return N(P(e.content || e.raw));
|
|
@@ -7487,11 +7502,11 @@ function qc(e, t) {
|
|
|
7487
7502
|
"markstream-nested-custom",
|
|
7488
7503
|
`markstream-nested-custom--${_n(r) || "node"}`,
|
|
7489
7504
|
Uc(e, t.options.customNodeClass)
|
|
7490
|
-
].filter(Boolean).join(" "), n = Xc(e.attrs, o), i =
|
|
7505
|
+
].filter(Boolean).join(" "), n = Xc(e.attrs, o), i = qc(e, t), s = t.options.customNodeTag;
|
|
7491
7506
|
return `<${s}${n} data-markstream-custom-tag="${B(r)}">${i}</${s}>`;
|
|
7492
7507
|
}
|
|
7493
|
-
function
|
|
7494
|
-
const r =
|
|
7508
|
+
function qc(e, t) {
|
|
7509
|
+
const r = R(e.children);
|
|
7495
7510
|
if (r.length > 0)
|
|
7496
7511
|
return D(r, t);
|
|
7497
7512
|
const o = P(e.content);
|
|
@@ -7533,7 +7548,7 @@ function Gc(e) {
|
|
|
7533
7548
|
}
|
|
7534
7549
|
return Object.entries(e).map(([t, r]) => [t, r]);
|
|
7535
7550
|
}
|
|
7536
|
-
function
|
|
7551
|
+
function R(e) {
|
|
7537
7552
|
return Array.isArray(e) ? e.filter((t) => !!t && typeof t == "object") : [];
|
|
7538
7553
|
}
|
|
7539
7554
|
function P(e) {
|
|
@@ -7986,10 +8001,10 @@ export {
|
|
|
7986
8001
|
Pe as CodeBlockNode,
|
|
7987
8002
|
Te as D2BlockNode,
|
|
7988
8003
|
We as DefinitionListNode,
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
8004
|
+
Vt as EmojiNode,
|
|
8005
|
+
Ve as EmphasisNode,
|
|
8006
|
+
qe as FallbackComponent,
|
|
8007
|
+
qt as FootnoteAnchorNode,
|
|
7993
8008
|
Ue as FootnoteNode,
|
|
7994
8009
|
Ut as FootnoteReferenceNode,
|
|
7995
8010
|
Kr as HardBreakNode,
|
|
@@ -8025,12 +8040,12 @@ export {
|
|
|
8025
8040
|
it as SuperscriptNode,
|
|
8026
8041
|
st as TableNode,
|
|
8027
8042
|
de as TextNode,
|
|
8028
|
-
|
|
8043
|
+
qr as ThematicBreakNode,
|
|
8029
8044
|
at as VmrContainerNode,
|
|
8030
|
-
|
|
8045
|
+
Rt as WORKER_BUSY_CODE,
|
|
8031
8046
|
Qc as buildKaTeXCDNWorkerSource,
|
|
8032
8047
|
ed as buildMermaidCDNWorkerSource,
|
|
8033
|
-
|
|
8048
|
+
Ri as buildRenderContext,
|
|
8034
8049
|
ei as canParseOffthread,
|
|
8035
8050
|
ad as clearGlobalCustomComponents,
|
|
8036
8051
|
gd as clearKaTeXWorker,
|
|
@@ -8057,7 +8072,7 @@ export {
|
|
|
8057
8072
|
Sd as getMermaidWorkerLoad,
|
|
8058
8073
|
hd as isD2Enabled,
|
|
8059
8074
|
xd as isKaTeXWorkerBusy,
|
|
8060
|
-
|
|
8075
|
+
qo as isKatexEnabled,
|
|
8061
8076
|
kl as isMermaidEnabled,
|
|
8062
8077
|
is as languageMap,
|
|
8063
8078
|
nn as normalizeLanguageIdentifier,
|
|
@@ -8065,12 +8080,12 @@ export {
|
|
|
8065
8080
|
sd as removeCustomComponents,
|
|
8066
8081
|
hl as renderKaTeXInWorker,
|
|
8067
8082
|
wn as renderKaTeXWithBackpressure,
|
|
8068
|
-
|
|
8069
|
-
|
|
8083
|
+
Id as renderMarkdownNodeToHtml,
|
|
8084
|
+
$d as renderMarkdownNodesToHtml,
|
|
8070
8085
|
Dd as renderMarkdownToHtml,
|
|
8071
|
-
|
|
8086
|
+
Rd as renderNestedMarkdownToHtml,
|
|
8072
8087
|
ns as resolveMonacoLanguageId,
|
|
8073
|
-
|
|
8088
|
+
$i as resolveParsedNodes,
|
|
8074
8089
|
un as sanitizeHtmlContent,
|
|
8075
8090
|
id as setCustomComponents,
|
|
8076
8091
|
xo as setD2Loader,
|
|
@@ -8080,7 +8095,7 @@ export {
|
|
|
8080
8095
|
pd as setKaTeXWorker,
|
|
8081
8096
|
yd as setKaTeXWorkerDebug,
|
|
8082
8097
|
wd as setKaTeXWorkerMaxConcurrency,
|
|
8083
|
-
|
|
8098
|
+
Vo as setKatexLoader,
|
|
8084
8099
|
cd as setLanguageIconResolver,
|
|
8085
8100
|
Zo as setMermaidLoader,
|
|
8086
8101
|
Md as setMermaidWorker,
|