markstream-angular 0.0.1-alpha.5 → 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 +282 -260
- package/dist/types/components/CodeBlockNode/CodeBlockNode.component.d.ts +1 -0
- package/dist/types/components/InfographicBlockNode/InfographicBlockNode.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 Ii(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 Ii(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 Ri(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;
|
|
@@ -2620,6 +2625,13 @@ let re = class {
|
|
|
2620
2625
|
get resolvedMaxHeight() {
|
|
2621
2626
|
return dn(this.mergedProps.maxHeight, "500px");
|
|
2622
2627
|
}
|
|
2628
|
+
resolveContainerMinHeight(e) {
|
|
2629
|
+
const t = Math.max(e, 280), r = this.mergedProps.maxHeight;
|
|
2630
|
+
if (r == null || r === "none")
|
|
2631
|
+
return `${t}px`;
|
|
2632
|
+
const o = Number.parseFloat(String(r));
|
|
2633
|
+
return Number.isFinite(o) ? `${Math.min(t, o)}px` : `${t}px`;
|
|
2634
|
+
}
|
|
2623
2635
|
get resolvedLoading() {
|
|
2624
2636
|
return typeof this.mergedProps.loading == "boolean" ? this.mergedProps.loading : this.node?.loading === !0;
|
|
2625
2637
|
}
|
|
@@ -2710,7 +2722,7 @@ let re = class {
|
|
|
2710
2722
|
const i = t.querySelector("svg");
|
|
2711
2723
|
this.svgMarkup = i ? i.outerHTML : "";
|
|
2712
2724
|
const s = t.scrollHeight;
|
|
2713
|
-
s > 0 && (this.containerMinHeight =
|
|
2725
|
+
s > 0 && (this.containerMinHeight = this.resolveContainerMinHeight(s)), this.syncModalPreview();
|
|
2714
2726
|
} catch (o) {
|
|
2715
2727
|
if (this.destroyed || r !== this.renderToken)
|
|
2716
2728
|
return;
|
|
@@ -2745,25 +2757,25 @@ let re = class {
|
|
|
2745
2757
|
});
|
|
2746
2758
|
}
|
|
2747
2759
|
};
|
|
2748
|
-
|
|
2760
|
+
$e([
|
|
2749
2761
|
j("previewHost")
|
|
2750
2762
|
], re.prototype, "previewHost", 2);
|
|
2751
|
-
|
|
2763
|
+
$e([
|
|
2752
2764
|
j("modalHost")
|
|
2753
2765
|
], re.prototype, "modalHost", 2);
|
|
2754
|
-
|
|
2766
|
+
$e([
|
|
2755
2767
|
l({ required: !0 })
|
|
2756
2768
|
], re.prototype, "node", 2);
|
|
2757
|
-
|
|
2769
|
+
$e([
|
|
2758
2770
|
l()
|
|
2759
2771
|
], re.prototype, "context", 2);
|
|
2760
|
-
|
|
2772
|
+
$e([
|
|
2761
2773
|
l()
|
|
2762
2774
|
], re.prototype, "props", 2);
|
|
2763
|
-
|
|
2775
|
+
$e([
|
|
2764
2776
|
co("window:keydown", ["$event"])
|
|
2765
2777
|
], re.prototype, "handleWindowKeydown", 1);
|
|
2766
|
-
re =
|
|
2778
|
+
re = $e([
|
|
2767
2779
|
x({
|
|
2768
2780
|
selector: "markstream-angular-infographic-block-node",
|
|
2769
2781
|
standalone: !0,
|
|
@@ -2984,7 +2996,7 @@ var da = Object.defineProperty, ua = Object.getOwnPropertyDescriptor, hr = (e, t
|
|
|
2984
2996
|
};
|
|
2985
2997
|
let Je = class {
|
|
2986
2998
|
get children() {
|
|
2987
|
-
return
|
|
2999
|
+
return $(this.node?.children);
|
|
2988
3000
|
}
|
|
2989
3001
|
get nestedPrefix() {
|
|
2990
3002
|
return `${this.indexKey || "insert"}-insert`;
|
|
@@ -3040,19 +3052,19 @@ function fr(e) {
|
|
|
3040
3052
|
function Do(e) {
|
|
3041
3053
|
return e === "x" ? "y" : "x";
|
|
3042
3054
|
}
|
|
3043
|
-
function
|
|
3055
|
+
function Ro(e) {
|
|
3044
3056
|
return e === "y" ? "height" : "width";
|
|
3045
3057
|
}
|
|
3046
3058
|
function se(e) {
|
|
3047
3059
|
const t = e[0];
|
|
3048
3060
|
return t === "t" || t === "b" ? "y" : "x";
|
|
3049
3061
|
}
|
|
3050
|
-
function
|
|
3062
|
+
function $o(e) {
|
|
3051
3063
|
return Do(se(e));
|
|
3052
3064
|
}
|
|
3053
3065
|
function ma(e, t, r) {
|
|
3054
3066
|
r === void 0 && (r = !1);
|
|
3055
|
-
const o = fr(e), n =
|
|
3067
|
+
const o = fr(e), n = $o(e), i = Ro(n);
|
|
3056
3068
|
let s = n === "x" ? o === (r ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
3057
3069
|
return t.reference[i] > t.floating[i] && (s = Yt(s)), [s, Yt(s)];
|
|
3058
3070
|
}
|
|
@@ -3125,7 +3137,7 @@ function Fn(e, t, r) {
|
|
|
3125
3137
|
reference: o,
|
|
3126
3138
|
floating: n
|
|
3127
3139
|
} = e;
|
|
3128
|
-
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;
|
|
3129
3141
|
let f;
|
|
3130
3142
|
switch (c) {
|
|
3131
3143
|
case "top":
|
|
@@ -3194,7 +3206,7 @@ async function ba(e, t) {
|
|
|
3194
3206
|
y: n,
|
|
3195
3207
|
width: s.floating.width,
|
|
3196
3208
|
height: s.floating.height
|
|
3197
|
-
} : 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)) || {
|
|
3198
3210
|
x: 1,
|
|
3199
3211
|
y: 1
|
|
3200
3212
|
} : {
|
|
@@ -3207,10 +3219,10 @@ async function ba(e, t) {
|
|
|
3207
3219
|
strategy: c
|
|
3208
3220
|
}) : M);
|
|
3209
3221
|
return {
|
|
3210
|
-
top: (v.top - z.top + g.top) /
|
|
3211
|
-
bottom: (z.bottom - v.bottom + g.bottom) /
|
|
3212
|
-
left: (v.left - z.left + g.left) /
|
|
3213
|
-
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
|
|
3214
3226
|
};
|
|
3215
3227
|
}
|
|
3216
3228
|
const ka = 50, Ca = async (e, t, r) => {
|
|
@@ -3241,7 +3253,7 @@ const ka = 50, Ca = async (e, t, r) => {
|
|
|
3241
3253
|
fn: M
|
|
3242
3254
|
} = T, {
|
|
3243
3255
|
x: E,
|
|
3244
|
-
y:
|
|
3256
|
+
y: I,
|
|
3245
3257
|
data: z,
|
|
3246
3258
|
reset: H
|
|
3247
3259
|
} = await M({
|
|
@@ -3258,7 +3270,7 @@ const ka = 50, Ca = async (e, t, r) => {
|
|
|
3258
3270
|
floating: t
|
|
3259
3271
|
}
|
|
3260
3272
|
});
|
|
3261
|
-
u = E ?? u, h =
|
|
3273
|
+
u = E ?? u, h = I ?? h, g[v] = {
|
|
3262
3274
|
...g[v],
|
|
3263
3275
|
...z
|
|
3264
3276
|
}, H && f < ka && (f++, typeof H == "object" && (H.placement && (m = H.placement), H.rects && (d = H.rects === !0 ? await s.getElementRects({
|
|
@@ -3301,46 +3313,46 @@ const ka = 50, Ca = async (e, t, r) => {
|
|
|
3301
3313
|
} = mr(e, t);
|
|
3302
3314
|
if ((r = i.arrow) != null && r.alignmentOffset)
|
|
3303
3315
|
return {};
|
|
3304
|
-
const v = Se(n), M = se(a), E = Se(a) === a,
|
|
3305
|
-
!m && H && z.push(...va(a, y, g,
|
|
3306
|
-
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 = [];
|
|
3307
3319
|
let Ne = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
3308
|
-
if (u &&
|
|
3309
|
-
const me = ma(n, s,
|
|
3310
|
-
|
|
3320
|
+
if (u && $t.push(Dr[v]), h) {
|
|
3321
|
+
const me = ma(n, s, I);
|
|
3322
|
+
$t.push(Dr[me[0]], Dr[me[1]]);
|
|
3311
3323
|
}
|
|
3312
3324
|
if (Ne = [...Ne, {
|
|
3313
3325
|
placement: n,
|
|
3314
|
-
overflows:
|
|
3315
|
-
}],
|
|
3326
|
+
overflows: $t
|
|
3327
|
+
}], !$t.every((me) => me <= 0)) {
|
|
3316
3328
|
var Sn, Mn;
|
|
3317
|
-
const me = (((Sn = i.flip) == null ? void 0 : Sn.index) || 0) + 1,
|
|
3318
|
-
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
|
|
3319
3331
|
// overflows the main axis.
|
|
3320
|
-
Ne.every((
|
|
3332
|
+
Ne.every((V) => se(V.placement) === M ? V.overflows[0] > 0 : !0)))
|
|
3321
3333
|
return {
|
|
3322
3334
|
data: {
|
|
3323
3335
|
index: me,
|
|
3324
3336
|
overflows: Ne
|
|
3325
3337
|
},
|
|
3326
3338
|
reset: {
|
|
3327
|
-
placement:
|
|
3339
|
+
placement: Rr
|
|
3328
3340
|
}
|
|
3329
3341
|
};
|
|
3330
|
-
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;
|
|
3331
3343
|
if (!dt)
|
|
3332
3344
|
switch (f) {
|
|
3333
3345
|
case "bestFit": {
|
|
3334
3346
|
var On;
|
|
3335
|
-
const fe = (On = Ne.filter((
|
|
3347
|
+
const fe = (On = Ne.filter((V) => {
|
|
3336
3348
|
if (H) {
|
|
3337
|
-
const ie = se(
|
|
3349
|
+
const ie = se(V.placement);
|
|
3338
3350
|
return ie === M || // Create a bias to the `y` side axis due to horizontal
|
|
3339
3351
|
// reading directions favoring greater width.
|
|
3340
3352
|
ie === "y";
|
|
3341
3353
|
}
|
|
3342
3354
|
return !0;
|
|
3343
|
-
}).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];
|
|
3344
3356
|
fe && (dt = fe);
|
|
3345
3357
|
break;
|
|
3346
3358
|
}
|
|
@@ -3440,12 +3452,12 @@ const Sa = function(e) {
|
|
|
3440
3452
|
}, h = await i.detectOverflow(t, d), m = se(Se(n)), f = Do(m);
|
|
3441
3453
|
let g = u[f], y = u[m];
|
|
3442
3454
|
if (s) {
|
|
3443
|
-
const v = f === "y" ? "top" : "left", M = f === "y" ? "bottom" : "right", E = g + h[v],
|
|
3444
|
-
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);
|
|
3445
3457
|
}
|
|
3446
3458
|
if (a) {
|
|
3447
|
-
const v = m === "y" ? "top" : "left", M = m === "y" ? "bottom" : "right", E = y + h[v],
|
|
3448
|
-
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);
|
|
3449
3461
|
}
|
|
3450
3462
|
const T = c.fn({
|
|
3451
3463
|
...t,
|
|
@@ -3470,7 +3482,7 @@ function pr() {
|
|
|
3470
3482
|
return typeof window < "u";
|
|
3471
3483
|
}
|
|
3472
3484
|
function ct(e) {
|
|
3473
|
-
return
|
|
3485
|
+
return Io(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
3474
3486
|
}
|
|
3475
3487
|
function K(e) {
|
|
3476
3488
|
var t;
|
|
@@ -3478,9 +3490,9 @@ function K(e) {
|
|
|
3478
3490
|
}
|
|
3479
3491
|
function ee(e) {
|
|
3480
3492
|
var t;
|
|
3481
|
-
return (t = (
|
|
3493
|
+
return (t = (Io(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
3482
3494
|
}
|
|
3483
|
-
function
|
|
3495
|
+
function Io(e) {
|
|
3484
3496
|
return pr() ? e instanceof Node || e instanceof K(e).Node : !1;
|
|
3485
3497
|
}
|
|
3486
3498
|
function G(e) {
|
|
@@ -3522,7 +3534,7 @@ function hn(e) {
|
|
|
3522
3534
|
const t = G(e) ? Z(e) : e;
|
|
3523
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 || "");
|
|
3524
3536
|
}
|
|
3525
|
-
function
|
|
3537
|
+
function Ra(e) {
|
|
3526
3538
|
let t = ce(e);
|
|
3527
3539
|
for (; oe(t) && !Qe(t); ) {
|
|
3528
3540
|
if (hn(t))
|
|
@@ -3608,15 +3620,15 @@ function Ke(e) {
|
|
|
3608
3620
|
y: a
|
|
3609
3621
|
};
|
|
3610
3622
|
}
|
|
3611
|
-
const
|
|
3623
|
+
const $a = /* @__PURE__ */ J(0);
|
|
3612
3624
|
function Lo(e) {
|
|
3613
3625
|
const t = K(e);
|
|
3614
|
-
return !mn() || !t.visualViewport ?
|
|
3626
|
+
return !mn() || !t.visualViewport ? $a : {
|
|
3615
3627
|
x: t.visualViewport.offsetLeft,
|
|
3616
3628
|
y: t.visualViewport.offsetTop
|
|
3617
3629
|
};
|
|
3618
3630
|
}
|
|
3619
|
-
function
|
|
3631
|
+
function Ia(e, t, r) {
|
|
3620
3632
|
return t === void 0 && (t = !1), !r || t && r !== K(e) ? !1 : t;
|
|
3621
3633
|
}
|
|
3622
3634
|
function Me(e, t, r, o) {
|
|
@@ -3624,14 +3636,14 @@ function Me(e, t, r, o) {
|
|
|
3624
3636
|
const n = e.getBoundingClientRect(), i = fn(e);
|
|
3625
3637
|
let s = J(1);
|
|
3626
3638
|
t && (o ? G(o) && (s = Ke(o)) : s = Ke(e));
|
|
3627
|
-
const a =
|
|
3639
|
+
const a = Ia(i, r, o) ? Lo(i) : J(0);
|
|
3628
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;
|
|
3629
3641
|
if (i) {
|
|
3630
3642
|
const m = K(i), f = o && G(o) ? K(o) : o;
|
|
3631
3643
|
let g = m, y = zr(g);
|
|
3632
3644
|
for (; y && o && f !== g; ) {
|
|
3633
|
-
const T = Ke(y), v = y.getBoundingClientRect(), M = Z(y), E = v.left + (y.clientLeft + parseFloat(M.paddingLeft)) * T.x,
|
|
3634
|
-
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);
|
|
3635
3647
|
}
|
|
3636
3648
|
}
|
|
3637
3649
|
return Jt({
|
|
@@ -3840,7 +3852,7 @@ function Fo(e, t) {
|
|
|
3840
3852
|
let o = Wn(e, t);
|
|
3841
3853
|
for (; o && Oa(o) && Lr(o); )
|
|
3842
3854
|
o = Wn(o, t);
|
|
3843
|
-
return o && Qe(o) && Lr(o) && !hn(o) ? r : o ||
|
|
3855
|
+
return o && Qe(o) && Lr(o) && !hn(o) ? r : o || Ra(e) || r;
|
|
3844
3856
|
}
|
|
3845
3857
|
const Wa = async function(e) {
|
|
3846
3858
|
const t = this.getOffsetParent || Fo, r = this.getDimensions, o = await r(e.floating);
|
|
@@ -3854,10 +3866,10 @@ const Wa = async function(e) {
|
|
|
3854
3866
|
}
|
|
3855
3867
|
};
|
|
3856
3868
|
};
|
|
3857
|
-
function
|
|
3869
|
+
function Va(e) {
|
|
3858
3870
|
return Z(e).direction === "rtl";
|
|
3859
3871
|
}
|
|
3860
|
-
const
|
|
3872
|
+
const qa = {
|
|
3861
3873
|
convertOffsetParentRelativeRectToViewportRelativeRect: Aa,
|
|
3862
3874
|
getDocumentElement: ee,
|
|
3863
3875
|
getClippingRect: Ka,
|
|
@@ -3867,7 +3879,7 @@ const Va = {
|
|
|
3867
3879
|
getDimensions: ja,
|
|
3868
3880
|
getScale: Ke,
|
|
3869
3881
|
isElement: G,
|
|
3870
|
-
isRTL:
|
|
3882
|
+
isRTL: Va
|
|
3871
3883
|
};
|
|
3872
3884
|
function Ko(e, t) {
|
|
3873
3885
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
@@ -3893,17 +3905,17 @@ function Ua(e, t) {
|
|
|
3893
3905
|
rootMargin: -g + "px " + -y + "px " + -T + "px " + -v + "px",
|
|
3894
3906
|
threshold: ke(0, Gt(1, c)) || 1
|
|
3895
3907
|
};
|
|
3896
|
-
let
|
|
3908
|
+
let I = !0;
|
|
3897
3909
|
function z(H) {
|
|
3898
3910
|
const Ae = H[0].intersectionRatio;
|
|
3899
3911
|
if (Ae !== c) {
|
|
3900
|
-
if (
|
|
3912
|
+
if (!I)
|
|
3901
3913
|
return s();
|
|
3902
3914
|
Ae ? s(!1, Ae) : o = setTimeout(() => {
|
|
3903
3915
|
s(!1, 1e-7);
|
|
3904
3916
|
}, 1e3);
|
|
3905
3917
|
}
|
|
3906
|
-
Ae === 1 && !Ko(d, e.getBoundingClientRect()) && s(),
|
|
3918
|
+
Ae === 1 && !Ko(d, e.getBoundingClientRect()) && s(), I = !1;
|
|
3907
3919
|
}
|
|
3908
3920
|
try {
|
|
3909
3921
|
r = new IntersectionObserver(z, {
|
|
@@ -3956,7 +3968,7 @@ function Xa(e, t, r, o) {
|
|
|
3956
3968
|
}
|
|
3957
3969
|
const Ga = Sa, Za = Ma, Ya = Pa, Ja = (e, t, r) => {
|
|
3958
3970
|
const o = /* @__PURE__ */ new Map(), n = {
|
|
3959
|
-
platform:
|
|
3971
|
+
platform: qa,
|
|
3960
3972
|
...r
|
|
3961
3973
|
}, i = {
|
|
3962
3974
|
...n.platform,
|
|
@@ -3990,7 +4002,7 @@ function el(e) {
|
|
|
3990
4002
|
}
|
|
3991
4003
|
return !1;
|
|
3992
4004
|
}
|
|
3993
|
-
async function
|
|
4005
|
+
async function Vn(e) {
|
|
3994
4006
|
if (!O || !je)
|
|
3995
4007
|
return;
|
|
3996
4008
|
const { x: t, y: r } = await Ja(je, O, {
|
|
@@ -4000,7 +4012,7 @@ async function qn(e) {
|
|
|
4000
4012
|
});
|
|
4001
4013
|
O.style.transform = `translate3d(${Math.round(t)}px, ${Math.round(r)}px, 0)`;
|
|
4002
4014
|
}
|
|
4003
|
-
function
|
|
4015
|
+
function qn(e, t, r = "top", o = !1, n) {
|
|
4004
4016
|
if (!e || typeof document > "u" || !Qa())
|
|
4005
4017
|
return;
|
|
4006
4018
|
jo();
|
|
@@ -4011,8 +4023,8 @@ function Vn(e, t, r = "top", o = !1, n) {
|
|
|
4011
4023
|
e.setAttribute("aria-describedby", gt);
|
|
4012
4024
|
} catch {
|
|
4013
4025
|
}
|
|
4014
|
-
await
|
|
4015
|
-
|
|
4026
|
+
await Vn(r), O.dataset.visible = "true", Qt?.(), Qt = Xa(e, O, () => {
|
|
4027
|
+
Vn(r);
|
|
4016
4028
|
});
|
|
4017
4029
|
}
|
|
4018
4030
|
};
|
|
@@ -4044,12 +4056,21 @@ let de = class {
|
|
|
4044
4056
|
this.settledText = "", this.streamedDelta = "", this.streamFadeVersion = 0;
|
|
4045
4057
|
}
|
|
4046
4058
|
ngOnChanges() {
|
|
4047
|
-
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({
|
|
4048
4069
|
nextContent: e,
|
|
4049
|
-
previousContent:
|
|
4070
|
+
previousContent: a,
|
|
4050
4071
|
typewriterEnabled: this.typewriterEnabled
|
|
4051
4072
|
});
|
|
4052
|
-
this.settledText =
|
|
4073
|
+
this.settledText = c.settledContent, this.streamedDelta = c.streamedDelta, c.appended && (this.streamFadeVersion += 1), t && r?.set(t, e), this.lastStreamRenderVersion = o;
|
|
4053
4074
|
}
|
|
4054
4075
|
get centered() {
|
|
4055
4076
|
return !!this.node?.center;
|
|
@@ -4126,7 +4147,7 @@ let Oe = class {
|
|
|
4126
4147
|
return this.context?.showTooltips !== !1;
|
|
4127
4148
|
}
|
|
4128
4149
|
get children() {
|
|
4129
|
-
return
|
|
4150
|
+
return $(this.node?.children);
|
|
4130
4151
|
}
|
|
4131
4152
|
get hasChildren() {
|
|
4132
4153
|
return this.children.length > 0;
|
|
@@ -4159,13 +4180,13 @@ let Oe = class {
|
|
|
4159
4180
|
this.hovering && Un(!0);
|
|
4160
4181
|
}
|
|
4161
4182
|
onAnchorEnter() {
|
|
4162
|
-
this.resolvedShowTooltip && (this.hovering = !0,
|
|
4183
|
+
this.resolvedShowTooltip && (this.hovering = !0, qn(this.anchorRef?.nativeElement || null, this.title, "top", !1, this.context?.isDark));
|
|
4163
4184
|
}
|
|
4164
4185
|
onAnchorLeave() {
|
|
4165
4186
|
this.resolvedShowTooltip && (this.hovering = !1, Un());
|
|
4166
4187
|
}
|
|
4167
4188
|
syncTooltip() {
|
|
4168
|
-
!this.hovering || !this.resolvedShowTooltip ||
|
|
4189
|
+
!this.hovering || !this.resolvedShowTooltip || qn(this.anchorRef?.nativeElement || null, this.title, "top", !0, this.context?.isDark);
|
|
4169
4190
|
}
|
|
4170
4191
|
};
|
|
4171
4192
|
Et([
|
|
@@ -4239,7 +4260,7 @@ var il = Object.defineProperty, sl = Object.getOwnPropertyDescriptor, Dt = (e, t
|
|
|
4239
4260
|
};
|
|
4240
4261
|
let ue = class {
|
|
4241
4262
|
get children() {
|
|
4242
|
-
return
|
|
4263
|
+
return $(this.node?.children);
|
|
4243
4264
|
}
|
|
4244
4265
|
get nestedPrefix() {
|
|
4245
4266
|
return `${this.indexKey || "list-item"}-item`;
|
|
@@ -4290,7 +4311,7 @@ let et = class {
|
|
|
4290
4311
|
return Number(this.node?.start) || 1;
|
|
4291
4312
|
}
|
|
4292
4313
|
get items() {
|
|
4293
|
-
return
|
|
4314
|
+
return $(this.node?.items);
|
|
4294
4315
|
}
|
|
4295
4316
|
itemPrefix(e) {
|
|
4296
4317
|
return `${this.indexKey || "list"}-${e}`;
|
|
@@ -4363,16 +4384,16 @@ function Wo() {
|
|
|
4363
4384
|
function cl() {
|
|
4364
4385
|
we = null, Kt = !1, He = null;
|
|
4365
4386
|
}
|
|
4366
|
-
function
|
|
4387
|
+
function Vo(e) {
|
|
4367
4388
|
pn = e, cl();
|
|
4368
4389
|
}
|
|
4369
4390
|
function md(e) {
|
|
4370
|
-
|
|
4391
|
+
Vo(e ?? Wo);
|
|
4371
4392
|
}
|
|
4372
4393
|
function fd() {
|
|
4373
|
-
|
|
4394
|
+
Vo(null);
|
|
4374
4395
|
}
|
|
4375
|
-
function
|
|
4396
|
+
function qo() {
|
|
4376
4397
|
return typeof pn == "function";
|
|
4377
4398
|
}
|
|
4378
4399
|
async function yn() {
|
|
@@ -4403,7 +4424,7 @@ async function yn() {
|
|
|
4403
4424
|
He = null;
|
|
4404
4425
|
}
|
|
4405
4426
|
}
|
|
4406
|
-
const
|
|
4427
|
+
const Rt = "WORKER_BUSY";
|
|
4407
4428
|
let U = null, ae = null, Wr = !1;
|
|
4408
4429
|
const F = /* @__PURE__ */ new Map(), ft = /* @__PURE__ */ new Map(), dl = 200, xe = /* @__PURE__ */ new Set();
|
|
4409
4430
|
let Ee = 5;
|
|
@@ -4450,7 +4471,7 @@ function yd(e) {
|
|
|
4450
4471
|
Wr = !!e, U && U.postMessage({ type: "init", debug: Wr });
|
|
4451
4472
|
}
|
|
4452
4473
|
async function hl(e, t = !0, r = 2e3, o) {
|
|
4453
|
-
if (!
|
|
4474
|
+
if (!qo()) {
|
|
4454
4475
|
const a = new Error("KaTeX rendering disabled");
|
|
4455
4476
|
return a.name = "KaTeXDisabled", a.code = "KATEX_DISABLED", Promise.reject(a);
|
|
4456
4477
|
}
|
|
@@ -4464,7 +4485,7 @@ async function hl(e, t = !0, r = 2e3, o) {
|
|
|
4464
4485
|
return Promise.reject(ae);
|
|
4465
4486
|
if (F.size >= Ee) {
|
|
4466
4487
|
const a = new Error("Worker busy");
|
|
4467
|
-
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);
|
|
4468
4489
|
}
|
|
4469
4490
|
return new Promise((a, c) => {
|
|
4470
4491
|
if (o?.aborted) {
|
|
@@ -4549,7 +4570,7 @@ function kd() {
|
|
|
4549
4570
|
return { ...Y };
|
|
4550
4571
|
}
|
|
4551
4572
|
async function wn(e, t = !0, r = {}) {
|
|
4552
|
-
if (!
|
|
4573
|
+
if (!qo()) {
|
|
4553
4574
|
const d = new Error("KaTeX rendering disabled");
|
|
4554
4575
|
throw d.name = "KaTeXDisabled", d.code = "KATEX_DISABLED", d;
|
|
4555
4576
|
}
|
|
@@ -4563,7 +4584,7 @@ async function wn(e, t = !0, r = {}) {
|
|
|
4563
4584
|
try {
|
|
4564
4585
|
return await hl(e, t, o, r.signal);
|
|
4565
4586
|
} catch (d) {
|
|
4566
|
-
if (d?.code !==
|
|
4587
|
+
if (d?.code !== Rt || c >= a)
|
|
4567
4588
|
throw d;
|
|
4568
4589
|
c += 1, await ml(n, r.signal).catch(() => {
|
|
4569
4590
|
}), i > 0 && await new Promise((u) => globalThis.setTimeout(u, i * c));
|
|
@@ -4613,7 +4634,7 @@ let bt = class {
|
|
|
4613
4634
|
});
|
|
4614
4635
|
} catch (r) {
|
|
4615
4636
|
const o = r?.code || r?.name;
|
|
4616
|
-
if (!(o === "WORKER_INIT_ERROR" || r?.fallbackToRenderer) && !(o ===
|
|
4637
|
+
if (!(o === "WORKER_INIT_ERROR" || r?.fallbackToRenderer) && !(o === Rt || o === "WORKER_TIMEOUT"))
|
|
4617
4638
|
return null;
|
|
4618
4639
|
}
|
|
4619
4640
|
const t = await yn();
|
|
@@ -4695,7 +4716,7 @@ let kt = class {
|
|
|
4695
4716
|
});
|
|
4696
4717
|
} catch (o) {
|
|
4697
4718
|
const n = o?.code || o?.name;
|
|
4698
|
-
if (!(n === "WORKER_INIT_ERROR" || o?.fallbackToRenderer) && !(n ===
|
|
4719
|
+
if (!(n === "WORKER_INIT_ERROR" || o?.fallbackToRenderer) && !(n === Rt || n === "WORKER_TIMEOUT"))
|
|
4699
4720
|
return null;
|
|
4700
4721
|
}
|
|
4701
4722
|
const r = await yn();
|
|
@@ -4736,7 +4757,7 @@ kt = bn([
|
|
|
4736
4757
|
})
|
|
4737
4758
|
], kt);
|
|
4738
4759
|
const Xo = () => import("mermaid"), kn = "__MARKSTREAM_ANGULAR_MERMAID__";
|
|
4739
|
-
let
|
|
4760
|
+
let q = null, pt = !1, Vr = null, Fe = null, Cn = Xo;
|
|
4740
4761
|
function wl(e) {
|
|
4741
4762
|
const t = String(e?.securityLevel ?? "loose"), r = e?.flowchart?.htmlLabels;
|
|
4742
4763
|
return `${t}|htmlLabels:${r === !1 ? "0" : "1"}`;
|
|
@@ -4776,9 +4797,9 @@ function Lt(e, t) {
|
|
|
4776
4797
|
if (!e || !t)
|
|
4777
4798
|
return;
|
|
4778
4799
|
const r = wl(t);
|
|
4779
|
-
if (
|
|
4800
|
+
if (Vr !== r)
|
|
4780
4801
|
try {
|
|
4781
|
-
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;
|
|
4782
4803
|
} catch {
|
|
4783
4804
|
}
|
|
4784
4805
|
}
|
|
@@ -4797,7 +4818,7 @@ function Gn(e) {
|
|
|
4797
4818
|
}
|
|
4798
4819
|
}
|
|
4799
4820
|
function bl() {
|
|
4800
|
-
|
|
4821
|
+
q = null, pt = !1, Vr = null, Fe = null;
|
|
4801
4822
|
try {
|
|
4802
4823
|
delete globalThis[kn];
|
|
4803
4824
|
} catch {
|
|
@@ -4816,11 +4837,11 @@ function kl() {
|
|
|
4816
4837
|
return typeof Cn == "function";
|
|
4817
4838
|
}
|
|
4818
4839
|
async function Yo(e) {
|
|
4819
|
-
if (
|
|
4820
|
-
return Lt(
|
|
4840
|
+
if (q)
|
|
4841
|
+
return Lt(q, e), q;
|
|
4821
4842
|
const t = xl();
|
|
4822
4843
|
if (t)
|
|
4823
|
-
return Xn(t),
|
|
4844
|
+
return Xn(t), q = t, Gn(q), Lt(q, e), q;
|
|
4824
4845
|
if (Fe) {
|
|
4825
4846
|
const o = await Fe;
|
|
4826
4847
|
return o && Lt(o, e), o;
|
|
@@ -4833,7 +4854,7 @@ async function Yo(e) {
|
|
|
4833
4854
|
Fe = (async () => {
|
|
4834
4855
|
try {
|
|
4835
4856
|
const o = await r(), n = Go(o);
|
|
4836
|
-
return n ? (Xn(n),
|
|
4857
|
+
return n ? (Xn(n), q = n, Gn(q), q) : (pt = !0, null);
|
|
4837
4858
|
} catch {
|
|
4838
4859
|
return pt = !0, null;
|
|
4839
4860
|
}
|
|
@@ -4961,7 +4982,7 @@ function Ed() {
|
|
|
4961
4982
|
L = null;
|
|
4962
4983
|
}
|
|
4963
4984
|
}
|
|
4964
|
-
var _l = Object.defineProperty, Sl = Object.getOwnPropertyDescriptor,
|
|
4985
|
+
var _l = Object.defineProperty, Sl = Object.getOwnPropertyDescriptor, Ie = (e, t, r, o) => {
|
|
4965
4986
|
for (var n = o > 1 ? void 0 : o ? Sl(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
4966
4987
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
4967
4988
|
return o && n && _l(t, r, n), n;
|
|
@@ -5241,25 +5262,25 @@ ${e}`;
|
|
|
5241
5262
|
});
|
|
5242
5263
|
}
|
|
5243
5264
|
};
|
|
5244
|
-
|
|
5265
|
+
Ie([
|
|
5245
5266
|
j("previewHost")
|
|
5246
5267
|
], ne.prototype, "previewHost", 2);
|
|
5247
|
-
|
|
5268
|
+
Ie([
|
|
5248
5269
|
j("modalHost")
|
|
5249
5270
|
], ne.prototype, "modalHost", 2);
|
|
5250
|
-
|
|
5271
|
+
Ie([
|
|
5251
5272
|
l({ required: !0 })
|
|
5252
5273
|
], ne.prototype, "node", 2);
|
|
5253
|
-
|
|
5274
|
+
Ie([
|
|
5254
5275
|
l()
|
|
5255
5276
|
], ne.prototype, "context", 2);
|
|
5256
|
-
|
|
5277
|
+
Ie([
|
|
5257
5278
|
l()
|
|
5258
5279
|
], ne.prototype, "props", 2);
|
|
5259
|
-
|
|
5280
|
+
Ie([
|
|
5260
5281
|
co("window:keydown", ["$event"])
|
|
5261
5282
|
], ne.prototype, "handleWindowKeydown", 1);
|
|
5262
|
-
ne =
|
|
5283
|
+
ne = Ie([
|
|
5263
5284
|
x({
|
|
5264
5285
|
selector: "markstream-angular-mermaid-block-node",
|
|
5265
5286
|
standalone: !0,
|
|
@@ -5413,7 +5434,7 @@ let tt = class {
|
|
|
5413
5434
|
this.segments = [], this.trackByIndex = (e) => `${this.indexKey || "paragraph"}-${e}`;
|
|
5414
5435
|
}
|
|
5415
5436
|
get children() {
|
|
5416
|
-
return
|
|
5437
|
+
return $(this.node?.children);
|
|
5417
5438
|
}
|
|
5418
5439
|
ngOnChanges() {
|
|
5419
5440
|
this.segments = ji(this.children);
|
|
@@ -5474,8 +5495,8 @@ tt = xr([
|
|
|
5474
5495
|
changeDetection: b.OnPush
|
|
5475
5496
|
})
|
|
5476
5497
|
], tt);
|
|
5477
|
-
var Dl = Object.defineProperty,
|
|
5478
|
-
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--)
|
|
5479
5500
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
5480
5501
|
return o && n && Dl(t, r, n), n;
|
|
5481
5502
|
};
|
|
@@ -5504,7 +5525,7 @@ function ni(e, t) {
|
|
|
5504
5525
|
function Pn(e) {
|
|
5505
5526
|
return String(e?.tag || "").trim().toLowerCase() || Bi(e?.content);
|
|
5506
5527
|
}
|
|
5507
|
-
function
|
|
5528
|
+
function $l(e) {
|
|
5508
5529
|
const t = Pn(e);
|
|
5509
5530
|
return t ? {
|
|
5510
5531
|
...e,
|
|
@@ -5513,7 +5534,7 @@ function Rl(e) {
|
|
|
5513
5534
|
content: Hi(e?.content, t)
|
|
5514
5535
|
} : e;
|
|
5515
5536
|
}
|
|
5516
|
-
function
|
|
5537
|
+
function Il(e, t) {
|
|
5517
5538
|
const r = Pn(e);
|
|
5518
5539
|
return r ? {
|
|
5519
5540
|
...e,
|
|
@@ -5534,7 +5555,7 @@ var Nl = Object.defineProperty, Ll = Object.getOwnPropertyDescriptor, br = (e, t
|
|
|
5534
5555
|
};
|
|
5535
5556
|
let rt = class {
|
|
5536
5557
|
get children() {
|
|
5537
|
-
return
|
|
5558
|
+
return $(this.node?.children);
|
|
5538
5559
|
}
|
|
5539
5560
|
get nestedPrefix() {
|
|
5540
5561
|
return `${this.indexKey || "strikethrough"}-strike`;
|
|
@@ -5573,7 +5594,7 @@ var Bl = Object.defineProperty, Hl = Object.getOwnPropertyDescriptor, kr = (e, t
|
|
|
5573
5594
|
};
|
|
5574
5595
|
let nt = class {
|
|
5575
5596
|
get children() {
|
|
5576
|
-
return
|
|
5597
|
+
return $(this.node?.children);
|
|
5577
5598
|
}
|
|
5578
5599
|
get nestedPrefix() {
|
|
5579
5600
|
return `${this.indexKey || "strong"}-strong`;
|
|
@@ -5612,7 +5633,7 @@ var Fl = Object.defineProperty, Kl = Object.getOwnPropertyDescriptor, Cr = (e, t
|
|
|
5612
5633
|
};
|
|
5613
5634
|
let ot = class {
|
|
5614
5635
|
get children() {
|
|
5615
|
-
return
|
|
5636
|
+
return $(this.node?.children);
|
|
5616
5637
|
}
|
|
5617
5638
|
get nestedPrefix() {
|
|
5618
5639
|
return `${this.indexKey || "subscript"}-sub`;
|
|
@@ -5651,7 +5672,7 @@ var jl = Object.defineProperty, zl = Object.getOwnPropertyDescriptor, Pr = (e, t
|
|
|
5651
5672
|
};
|
|
5652
5673
|
let it = class {
|
|
5653
5674
|
get children() {
|
|
5654
|
-
return
|
|
5675
|
+
return $(this.node?.children);
|
|
5655
5676
|
}
|
|
5656
5677
|
get nestedPrefix() {
|
|
5657
5678
|
return `${this.indexKey || "superscript"}-sup`;
|
|
@@ -5683,8 +5704,8 @@ it = Pr([
|
|
|
5683
5704
|
changeDetection: b.OnPush
|
|
5684
5705
|
})
|
|
5685
5706
|
], it);
|
|
5686
|
-
var Wl = Object.defineProperty,
|
|
5687
|
-
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--)
|
|
5688
5709
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
5689
5710
|
return o && n && Wl(t, r, n), n;
|
|
5690
5711
|
};
|
|
@@ -5697,13 +5718,13 @@ let st = class {
|
|
|
5697
5718
|
return e && typeof e == "object" ? e : null;
|
|
5698
5719
|
}
|
|
5699
5720
|
get rows() {
|
|
5700
|
-
return
|
|
5721
|
+
return $(this.node?.rows);
|
|
5701
5722
|
}
|
|
5702
5723
|
cellsFor(e) {
|
|
5703
|
-
return
|
|
5724
|
+
return $(e?.cells);
|
|
5704
5725
|
}
|
|
5705
5726
|
childrenFor(e) {
|
|
5706
|
-
return
|
|
5727
|
+
return $(e?.children);
|
|
5707
5728
|
}
|
|
5708
5729
|
alignment(e) {
|
|
5709
5730
|
return C(e?.align);
|
|
@@ -5759,21 +5780,21 @@ st = Tr([
|
|
|
5759
5780
|
changeDetection: b.OnPush
|
|
5760
5781
|
})
|
|
5761
5782
|
], st);
|
|
5762
|
-
var
|
|
5763
|
-
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--)
|
|
5764
5785
|
(s = e[i]) && (n = s(n) || n);
|
|
5765
5786
|
return n;
|
|
5766
5787
|
};
|
|
5767
|
-
let
|
|
5788
|
+
let qr = class {
|
|
5768
5789
|
};
|
|
5769
|
-
|
|
5790
|
+
qr = Ul([
|
|
5770
5791
|
x({
|
|
5771
5792
|
selector: "markstream-angular-thematic-break-node",
|
|
5772
5793
|
standalone: !0,
|
|
5773
5794
|
template: "<hr>",
|
|
5774
5795
|
changeDetection: b.OnPush
|
|
5775
5796
|
})
|
|
5776
|
-
],
|
|
5797
|
+
], qr);
|
|
5777
5798
|
var Xl = Object.defineProperty, Gl = Object.getOwnPropertyDescriptor, _r = (e, t, r, o) => {
|
|
5778
5799
|
for (var n = o > 1 ? void 0 : o ? Gl(t, r) : t, i = e.length - 1, s; i >= 0; i--)
|
|
5779
5800
|
(s = e[i]) && (n = (o ? s(t, r, n) : s(n)) || n);
|
|
@@ -5781,7 +5802,7 @@ var Xl = Object.defineProperty, Gl = Object.getOwnPropertyDescriptor, _r = (e, t
|
|
|
5781
5802
|
};
|
|
5782
5803
|
let at = class {
|
|
5783
5804
|
get children() {
|
|
5784
|
-
return
|
|
5805
|
+
return $(this.node?.children);
|
|
5785
5806
|
}
|
|
5786
5807
|
get nestedPrefix() {
|
|
5787
5808
|
return `${this.indexKey || "vmr"}-container`;
|
|
@@ -5841,7 +5862,7 @@ let he = class {
|
|
|
5841
5862
|
return r ? e?.[r] ?? null : null;
|
|
5842
5863
|
}
|
|
5843
5864
|
get customNode() {
|
|
5844
|
-
return
|
|
5865
|
+
return $l(this.node);
|
|
5845
5866
|
}
|
|
5846
5867
|
get codeMode() {
|
|
5847
5868
|
return ni(this.node, this.context);
|
|
@@ -5850,7 +5871,7 @@ let he = class {
|
|
|
5850
5871
|
return Pn(this.node);
|
|
5851
5872
|
}
|
|
5852
5873
|
get htmlRenderNode() {
|
|
5853
|
-
return
|
|
5874
|
+
return Il(this.node, this.resolvedType);
|
|
5854
5875
|
}
|
|
5855
5876
|
get fallbackNode() {
|
|
5856
5877
|
return this.node;
|
|
@@ -5881,10 +5902,10 @@ he = Sr([
|
|
|
5881
5902
|
p(() => Te),
|
|
5882
5903
|
p(() => We),
|
|
5883
5904
|
p(() => te),
|
|
5884
|
-
p(() => qt),
|
|
5885
|
-
p(() => qe),
|
|
5886
|
-
p(() => Ve),
|
|
5887
5905
|
p(() => Vt),
|
|
5906
|
+
p(() => Ve),
|
|
5907
|
+
p(() => qe),
|
|
5908
|
+
p(() => qt),
|
|
5888
5909
|
p(() => Ue),
|
|
5889
5910
|
p(() => Ut),
|
|
5890
5911
|
p(() => Kr),
|
|
@@ -5911,7 +5932,7 @@ he = Sr([
|
|
|
5911
5932
|
p(() => it),
|
|
5912
5933
|
p(() => st),
|
|
5913
5934
|
p(() => de),
|
|
5914
|
-
p(() =>
|
|
5935
|
+
p(() => qr),
|
|
5915
5936
|
p(() => at)
|
|
5916
5937
|
],
|
|
5917
5938
|
template: `
|
|
@@ -6151,7 +6172,7 @@ let lt = class {
|
|
|
6151
6172
|
return C(this.node?.title) || Li(this.kind);
|
|
6152
6173
|
}
|
|
6153
6174
|
get children() {
|
|
6154
|
-
return
|
|
6175
|
+
return $(this.node?.children);
|
|
6155
6176
|
}
|
|
6156
6177
|
get nestedPrefix() {
|
|
6157
6178
|
return `${this.indexKey || "admonition"}-children`;
|
|
@@ -6322,7 +6343,7 @@ async function to(e, t) {
|
|
|
6322
6343
|
});
|
|
6323
6344
|
} catch (n) {
|
|
6324
6345
|
const i = n?.code || n?.name;
|
|
6325
|
-
if (!(i === "WORKER_INIT_ERROR" || n?.fallbackToRenderer) && !(i ===
|
|
6346
|
+
if (!(i === "WORKER_INIT_ERROR" || n?.fallbackToRenderer) && !(i === Rt || i === "WORKER_TIMEOUT"))
|
|
6326
6347
|
throw n;
|
|
6327
6348
|
}
|
|
6328
6349
|
const r = await yn();
|
|
@@ -6510,10 +6531,10 @@ async function uc(e, t, r, o) {
|
|
|
6510
6531
|
throw new TypeError("D2 instance is missing compile/render methods.");
|
|
6511
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 };
|
|
6512
6533
|
if (v.themeID = r.isDark && T != null ? T : y, v.darkThemeID = null, v.darkThemeOverrides = null, r.isDark) {
|
|
6513
|
-
const
|
|
6534
|
+
const I = g.themeOverrides && typeof g.themeOverrides == "object" ? g.themeOverrides : null;
|
|
6514
6535
|
v.themeOverrides = {
|
|
6515
6536
|
...rc,
|
|
6516
|
-
|
|
6537
|
+
...I || {}
|
|
6517
6538
|
};
|
|
6518
6539
|
}
|
|
6519
6540
|
const M = await h.render(f, v);
|
|
@@ -6734,7 +6755,7 @@ var Tc = Object.defineProperty, _c = Object.getOwnPropertyDescriptor, k = (e, t,
|
|
|
6734
6755
|
const oo = /auto|scroll|overlay/i;
|
|
6735
6756
|
let w = class {
|
|
6736
6757
|
constructor() {
|
|
6737
|
-
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}`;
|
|
6738
6759
|
}
|
|
6739
6760
|
get resolvedIndexPrefix() {
|
|
6740
6761
|
return this.indexKey != null ? String(this.indexKey) : "renderer";
|
|
@@ -6776,8 +6797,8 @@ let w = class {
|
|
|
6776
6797
|
get shouldObserveSlots() {
|
|
6777
6798
|
return this.deferNodesActive || this.virtualizationEnabled;
|
|
6778
6799
|
}
|
|
6779
|
-
ngOnChanges() {
|
|
6780
|
-
this.rebuild();
|
|
6800
|
+
ngOnChanges(e) {
|
|
6801
|
+
(e.content || e.nodes) && (this.streamRenderVersion += 1), this.rebuild();
|
|
6781
6802
|
}
|
|
6782
6803
|
ngOnInit() {
|
|
6783
6804
|
this.unsubscribeCustomComponents = Ei(() => {
|
|
@@ -6808,14 +6829,15 @@ let w = class {
|
|
|
6808
6829
|
onCopy: (n) => this.copy.emit(n),
|
|
6809
6830
|
onHandleArtifactClick: (n) => this.handleArtifactClick.emit(n)
|
|
6810
6831
|
};
|
|
6811
|
-
this.renderContext =
|
|
6832
|
+
this.renderContext = Ri(
|
|
6812
6833
|
{
|
|
6813
6834
|
...this,
|
|
6814
6835
|
customComponents: t
|
|
6815
6836
|
},
|
|
6816
6837
|
r,
|
|
6817
|
-
this.textStreamState
|
|
6818
|
-
|
|
6838
|
+
this.textStreamState,
|
|
6839
|
+
this.streamRenderVersion
|
|
6840
|
+
), this.parsedNodes = $i(this), this.trimMeasuredState();
|
|
6819
6841
|
const o = this.parsedNodes.length;
|
|
6820
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();
|
|
6821
6843
|
}
|
|
@@ -7268,15 +7290,15 @@ function Dd(e) {
|
|
|
7268
7290
|
}), o = Ec(e, r);
|
|
7269
7291
|
return D(o, r);
|
|
7270
7292
|
}
|
|
7271
|
-
function
|
|
7293
|
+
function Rd(e, t = {}) {
|
|
7272
7294
|
const r = Er(t);
|
|
7273
7295
|
return Dc(e, r);
|
|
7274
7296
|
}
|
|
7275
|
-
function
|
|
7297
|
+
function $d(e, t = {}) {
|
|
7276
7298
|
const r = Er(t);
|
|
7277
7299
|
return D(e, r);
|
|
7278
7300
|
}
|
|
7279
|
-
function
|
|
7301
|
+
function Id(e, t = {}) {
|
|
7280
7302
|
const r = Er(t);
|
|
7281
7303
|
return ai(e, r);
|
|
7282
7304
|
}
|
|
@@ -7317,7 +7339,7 @@ function Dc(e, t) {
|
|
|
7317
7339
|
return D(e.nodes, t);
|
|
7318
7340
|
const r = e.node;
|
|
7319
7341
|
if (r) {
|
|
7320
|
-
const o =
|
|
7342
|
+
const o = R(r.children);
|
|
7321
7343
|
if (o.length > 0)
|
|
7322
7344
|
return D(o, t);
|
|
7323
7345
|
const n = P(r.content);
|
|
@@ -7338,35 +7360,35 @@ function ai(e, t) {
|
|
|
7338
7360
|
case "text":
|
|
7339
7361
|
return N(P(e.content));
|
|
7340
7362
|
case "paragraph":
|
|
7341
|
-
return `<p>${D(
|
|
7363
|
+
return `<p>${D(R(e.children), t)}</p>`;
|
|
7342
7364
|
case "strong":
|
|
7343
|
-
return `<strong>${D(
|
|
7365
|
+
return `<strong>${D(R(e.children), t)}</strong>`;
|
|
7344
7366
|
case "emphasis":
|
|
7345
|
-
return `<em>${D(
|
|
7367
|
+
return `<em>${D(R(e.children), t)}</em>`;
|
|
7346
7368
|
case "strikethrough":
|
|
7347
|
-
return `<del>${D(
|
|
7369
|
+
return `<del>${D(R(e.children), t)}</del>`;
|
|
7348
7370
|
case "highlight":
|
|
7349
|
-
return `<mark>${D(
|
|
7371
|
+
return `<mark>${D(R(e.children), t)}</mark>`;
|
|
7350
7372
|
case "insert":
|
|
7351
|
-
return `<ins>${D(
|
|
7373
|
+
return `<ins>${D(R(e.children), t)}</ins>`;
|
|
7352
7374
|
case "subscript":
|
|
7353
|
-
return `<sub>${D(
|
|
7375
|
+
return `<sub>${D(R(e.children), t)}</sub>`;
|
|
7354
7376
|
case "superscript":
|
|
7355
|
-
return `<sup>${D(
|
|
7377
|
+
return `<sup>${D(R(e.children), t)}</sup>`;
|
|
7356
7378
|
case "inline_code":
|
|
7357
7379
|
return `<code>${N(P(e.code))}</code>`;
|
|
7358
7380
|
case "hardbreak":
|
|
7359
7381
|
return "<br>";
|
|
7360
7382
|
case "link":
|
|
7361
|
-
return
|
|
7383
|
+
return Rc(e, t);
|
|
7362
7384
|
case "image":
|
|
7363
7385
|
return Ac(e);
|
|
7364
7386
|
case "list":
|
|
7365
7387
|
return Nc(e, t);
|
|
7366
7388
|
case "list_item":
|
|
7367
|
-
return `<li>${D(
|
|
7389
|
+
return `<li>${D(R(e.children), t)}</li>`;
|
|
7368
7390
|
case "blockquote":
|
|
7369
|
-
return `<blockquote>${D(
|
|
7391
|
+
return `<blockquote>${D(R(e.children), t)}</blockquote>`;
|
|
7370
7392
|
case "heading":
|
|
7371
7393
|
return Lc(e, t);
|
|
7372
7394
|
case "code_block":
|
|
@@ -7395,26 +7417,26 @@ function ai(e, t) {
|
|
|
7395
7417
|
case "emoji":
|
|
7396
7418
|
return N(P(e.raw || e.markup || e.content || e.name));
|
|
7397
7419
|
case "math_inline":
|
|
7398
|
-
return Rc(e);
|
|
7399
|
-
case "math_block":
|
|
7400
7420
|
return $c(e);
|
|
7421
|
+
case "math_block":
|
|
7422
|
+
return Ic(e);
|
|
7401
7423
|
case "reference":
|
|
7402
7424
|
return `<sup class="markstream-nested-reference">[${N(P(e.id))}]</sup>`;
|
|
7403
7425
|
case "html_inline":
|
|
7404
7426
|
case "html_block":
|
|
7405
7427
|
return Wc(e, t);
|
|
7406
7428
|
default:
|
|
7407
|
-
return
|
|
7429
|
+
return Vc(e, t);
|
|
7408
7430
|
}
|
|
7409
7431
|
}
|
|
7410
|
-
function
|
|
7411
|
-
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)}"` : "";
|
|
7412
7434
|
return `<a${r ? ` href="${B(r)}"` : ""}${i} target="_blank" rel="noreferrer noopener">${n}</a>`;
|
|
7413
7435
|
}
|
|
7414
|
-
function
|
|
7436
|
+
function $c(e) {
|
|
7415
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>`;
|
|
7416
7438
|
}
|
|
7417
|
-
function
|
|
7439
|
+
function Ic(e) {
|
|
7418
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>`;
|
|
7419
7441
|
}
|
|
7420
7442
|
function Ac(e) {
|
|
@@ -7423,11 +7445,11 @@ function Ac(e) {
|
|
|
7423
7445
|
}
|
|
7424
7446
|
function Nc(e, t) {
|
|
7425
7447
|
const r = e.ordered ? "ol" : "ul", o = e.ordered && Number.isFinite(e.start) ? ` start="${Number(e.start)}"` : "";
|
|
7426
|
-
return `<${r}${o}>${D(
|
|
7448
|
+
return `<${r}${o}>${D(R(e.items), t)}</${r}>`;
|
|
7427
7449
|
}
|
|
7428
7450
|
function Lc(e, t) {
|
|
7429
7451
|
const r = Yc(e.level);
|
|
7430
|
-
return `<h${r}>${D(
|
|
7452
|
+
return `<h${r}>${D(R(e.children), t)}</h${r}>`;
|
|
7431
7453
|
}
|
|
7432
7454
|
function Bc(e) {
|
|
7433
7455
|
const t = P(e.language).trim(), r = _n(t), o = r ? ` class="language-${r}"` : "", n = !!e.diff;
|
|
@@ -7440,25 +7462,25 @@ function Bc(e) {
|
|
|
7440
7462
|
].filter(Boolean).join(" ")}><code${o}>${N(P(e.code))}</code></pre>`;
|
|
7441
7463
|
}
|
|
7442
7464
|
function Hc(e, t) {
|
|
7443
|
-
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>` : "";
|
|
7444
7466
|
return `<table>${n}${i}</table>`;
|
|
7445
7467
|
}
|
|
7446
7468
|
function li(e, t, r = !1) {
|
|
7447
|
-
return `<tr>${
|
|
7469
|
+
return `<tr>${R(e.cells).map((n) => ci(n, t, r)).join("")}</tr>`;
|
|
7448
7470
|
}
|
|
7449
7471
|
function ci(e, t, r = !1) {
|
|
7450
7472
|
const o = r || e.header ? "th" : "td", n = P(e.align), i = n ? ` style="text-align:${B(n)}"` : "";
|
|
7451
|
-
return `<${o}${i}>${D(
|
|
7473
|
+
return `<${o}${i}>${D(R(e.children), t)}</${o}>`;
|
|
7452
7474
|
}
|
|
7453
7475
|
function Fc(e, t) {
|
|
7454
|
-
return `<dl>${
|
|
7476
|
+
return `<dl>${R(e.items).map((r) => di(r, t)).join("")}</dl>`;
|
|
7455
7477
|
}
|
|
7456
7478
|
function di(e, t) {
|
|
7457
|
-
const r = D(
|
|
7479
|
+
const r = D(R(e.term), t), o = D(R(e.definition), t);
|
|
7458
7480
|
return `<dt>${r}</dt><dd>${o}</dd>`;
|
|
7459
7481
|
}
|
|
7460
7482
|
function Kc(e, t) {
|
|
7461
|
-
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>`;
|
|
7462
7484
|
}
|
|
7463
7485
|
function jc(e) {
|
|
7464
7486
|
const t = N(P(e.id));
|
|
@@ -7466,13 +7488,13 @@ function jc(e) {
|
|
|
7466
7488
|
}
|
|
7467
7489
|
function zc(e, t) {
|
|
7468
7490
|
const r = _n(P(e.kind || "note")) || "note", o = P(e.title) || Jc(r);
|
|
7469
|
-
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>`;
|
|
7470
7492
|
}
|
|
7471
7493
|
function Wc(e, t) {
|
|
7472
7494
|
const r = P(e.content);
|
|
7473
7495
|
return r ? !t.options.allowHtml || e.loading && !e.autoClosed ? N(r) : un(r) : "";
|
|
7474
7496
|
}
|
|
7475
|
-
function
|
|
7497
|
+
function Vc(e, t) {
|
|
7476
7498
|
const r = P(e.tag || e.type);
|
|
7477
7499
|
if (!r || Oc.has(r))
|
|
7478
7500
|
return N(P(e.content || e.raw));
|
|
@@ -7480,11 +7502,11 @@ function qc(e, t) {
|
|
|
7480
7502
|
"markstream-nested-custom",
|
|
7481
7503
|
`markstream-nested-custom--${_n(r) || "node"}`,
|
|
7482
7504
|
Uc(e, t.options.customNodeClass)
|
|
7483
|
-
].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;
|
|
7484
7506
|
return `<${s}${n} data-markstream-custom-tag="${B(r)}">${i}</${s}>`;
|
|
7485
7507
|
}
|
|
7486
|
-
function
|
|
7487
|
-
const r =
|
|
7508
|
+
function qc(e, t) {
|
|
7509
|
+
const r = R(e.children);
|
|
7488
7510
|
if (r.length > 0)
|
|
7489
7511
|
return D(r, t);
|
|
7490
7512
|
const o = P(e.content);
|
|
@@ -7526,7 +7548,7 @@ function Gc(e) {
|
|
|
7526
7548
|
}
|
|
7527
7549
|
return Object.entries(e).map(([t, r]) => [t, r]);
|
|
7528
7550
|
}
|
|
7529
|
-
function
|
|
7551
|
+
function R(e) {
|
|
7530
7552
|
return Array.isArray(e) ? e.filter((t) => !!t && typeof t == "object") : [];
|
|
7531
7553
|
}
|
|
7532
7554
|
function P(e) {
|
|
@@ -7979,10 +8001,10 @@ export {
|
|
|
7979
8001
|
Pe as CodeBlockNode,
|
|
7980
8002
|
Te as D2BlockNode,
|
|
7981
8003
|
We as DefinitionListNode,
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
8004
|
+
Vt as EmojiNode,
|
|
8005
|
+
Ve as EmphasisNode,
|
|
8006
|
+
qe as FallbackComponent,
|
|
8007
|
+
qt as FootnoteAnchorNode,
|
|
7986
8008
|
Ue as FootnoteNode,
|
|
7987
8009
|
Ut as FootnoteReferenceNode,
|
|
7988
8010
|
Kr as HardBreakNode,
|
|
@@ -8018,12 +8040,12 @@ export {
|
|
|
8018
8040
|
it as SuperscriptNode,
|
|
8019
8041
|
st as TableNode,
|
|
8020
8042
|
de as TextNode,
|
|
8021
|
-
|
|
8043
|
+
qr as ThematicBreakNode,
|
|
8022
8044
|
at as VmrContainerNode,
|
|
8023
|
-
|
|
8045
|
+
Rt as WORKER_BUSY_CODE,
|
|
8024
8046
|
Qc as buildKaTeXCDNWorkerSource,
|
|
8025
8047
|
ed as buildMermaidCDNWorkerSource,
|
|
8026
|
-
|
|
8048
|
+
Ri as buildRenderContext,
|
|
8027
8049
|
ei as canParseOffthread,
|
|
8028
8050
|
ad as clearGlobalCustomComponents,
|
|
8029
8051
|
gd as clearKaTeXWorker,
|
|
@@ -8050,7 +8072,7 @@ export {
|
|
|
8050
8072
|
Sd as getMermaidWorkerLoad,
|
|
8051
8073
|
hd as isD2Enabled,
|
|
8052
8074
|
xd as isKaTeXWorkerBusy,
|
|
8053
|
-
|
|
8075
|
+
qo as isKatexEnabled,
|
|
8054
8076
|
kl as isMermaidEnabled,
|
|
8055
8077
|
is as languageMap,
|
|
8056
8078
|
nn as normalizeLanguageIdentifier,
|
|
@@ -8058,12 +8080,12 @@ export {
|
|
|
8058
8080
|
sd as removeCustomComponents,
|
|
8059
8081
|
hl as renderKaTeXInWorker,
|
|
8060
8082
|
wn as renderKaTeXWithBackpressure,
|
|
8061
|
-
|
|
8062
|
-
|
|
8083
|
+
Id as renderMarkdownNodeToHtml,
|
|
8084
|
+
$d as renderMarkdownNodesToHtml,
|
|
8063
8085
|
Dd as renderMarkdownToHtml,
|
|
8064
|
-
|
|
8086
|
+
Rd as renderNestedMarkdownToHtml,
|
|
8065
8087
|
ns as resolveMonacoLanguageId,
|
|
8066
|
-
|
|
8088
|
+
$i as resolveParsedNodes,
|
|
8067
8089
|
un as sanitizeHtmlContent,
|
|
8068
8090
|
id as setCustomComponents,
|
|
8069
8091
|
xo as setD2Loader,
|
|
@@ -8073,7 +8095,7 @@ export {
|
|
|
8073
8095
|
pd as setKaTeXWorker,
|
|
8074
8096
|
yd as setKaTeXWorkerDebug,
|
|
8075
8097
|
wd as setKaTeXWorkerMaxConcurrency,
|
|
8076
|
-
|
|
8098
|
+
Vo as setKatexLoader,
|
|
8077
8099
|
cd as setLanguageIconResolver,
|
|
8078
8100
|
Zo as setMermaidLoader,
|
|
8079
8101
|
Md as setMermaidWorker,
|