@mdsvex/language-server 0.1.0-next.4 → 0.1.0-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server.cjs +549 -540
- package/package.json +3 -3
package/dist/server.cjs
CHANGED
|
@@ -120681,23 +120681,23 @@ let Mi$2 = class Mi2 extends Error {
|
|
|
120681
120681
|
}
|
|
120682
120682
|
};
|
|
120683
120683
|
const _h = "mdsvex's built-in parser handles common YAML. For anything else pass a parser, for example frontmatter: { parse: (raw) => yaml.parse(raw) }";
|
|
120684
|
-
function Ih$1(u2, t2, s2, e2) {
|
|
120685
|
-
const
|
|
120684
|
+
function Ih$1(u2, t2, s2, e2, i2) {
|
|
120685
|
+
const n2 = u2.slice(t2, s2);
|
|
120686
120686
|
if (e2 === void 0)
|
|
120687
120687
|
try {
|
|
120688
|
-
return Zr$2(
|
|
120689
|
-
} catch (
|
|
120690
|
-
if (!(
|
|
120691
|
-
throw
|
|
120692
|
-
const
|
|
120693
|
-
throw new Mi$2(`Unsupported frontmatter at line ${
|
|
120688
|
+
return Zr$2(n2);
|
|
120689
|
+
} catch (h2) {
|
|
120690
|
+
if (!(h2 instanceof rn$3))
|
|
120691
|
+
throw h2;
|
|
120692
|
+
const o2 = h2.line + hn$3(u2, t2);
|
|
120693
|
+
throw new Mi$2(`Unsupported frontmatter at line ${o2}: ${h2.reason}. ${_h}`, o2, h2.column);
|
|
120694
120694
|
}
|
|
120695
|
-
const
|
|
120696
|
-
if (
|
|
120695
|
+
const r3 = e2(n2, { filename: i2 });
|
|
120696
|
+
if (r3 == null)
|
|
120697
120697
|
return {};
|
|
120698
|
-
if (typeof
|
|
120699
|
-
throw new Mi$2(`frontmatter.parse must return an object of metadata, it returned ${Array.isArray(
|
|
120700
|
-
return
|
|
120698
|
+
if (typeof r3 != "object" || Array.isArray(r3))
|
|
120699
|
+
throw new Mi$2(`frontmatter.parse must return an object of metadata, it returned ${Array.isArray(r3) ? "an array" : typeof r3}`, 1, 1);
|
|
120700
|
+
return r3;
|
|
120701
120701
|
}
|
|
120702
120702
|
function Uh$1(u2, t2, s2, e2) {
|
|
120703
120703
|
const n2 = new RegExp(`^["']?${e2}["']?[ \\t]*[:=]`, "m").exec(u2.slice(t2, s2));
|
|
@@ -121427,17 +121427,17 @@ function Jc(e2) {
|
|
|
121427
121427
|
}
|
|
121428
121428
|
const a2 = o2.data.role;
|
|
121429
121429
|
if (a2 === "open_syntax" || a2 === "close_syntax") continue;
|
|
121430
|
-
const c2 = o2.sourceOffsets,
|
|
121431
|
-
if (s2 +
|
|
121432
|
-
|
|
121430
|
+
const c2 = o2.sourceOffsets, f2 = o2.generatedOffsets, u2 = c2.length;
|
|
121431
|
+
if (s2 + u2 > t2.length && (gr$1(s2, s2 + u2), t2 = ce$6, n2 = ze$5, r3 = Je$2), a2 === "node")
|
|
121432
|
+
u2 > 0 && (t2[s2] = f2[0], n2[s2] = c2[0], r3[s2] = 1, s2++);
|
|
121433
121433
|
else if (o2.generatedLengths)
|
|
121434
|
-
for (let h2 = 0; h2 <
|
|
121435
|
-
t2[s2] =
|
|
121434
|
+
for (let h2 = 0; h2 < u2; h2++)
|
|
121435
|
+
t2[s2] = f2[h2], n2[s2] = c2[h2], r3[s2] = 1, s2++;
|
|
121436
121436
|
else {
|
|
121437
121437
|
const h2 = o2.lengths;
|
|
121438
|
-
for (let p2 = 0; p2 <
|
|
121438
|
+
for (let p2 = 0; p2 < u2; p2++) {
|
|
121439
121439
|
const _2 = h2[p2];
|
|
121440
|
-
_2 > 0 && (t2[s2] =
|
|
121440
|
+
_2 > 0 && (t2[s2] = f2[p2], n2[s2] = c2[p2], r3[s2] = _2, s2++);
|
|
121441
121441
|
}
|
|
121442
121442
|
}
|
|
121443
121443
|
}
|
|
@@ -121450,9 +121450,9 @@ function Wc(e2) {
|
|
|
121450
121450
|
if (r3._arrays === null) {
|
|
121451
121451
|
const l2 = r3._key & 3;
|
|
121452
121452
|
if (l2 === 2 || l2 === 3) continue;
|
|
121453
|
-
const a2 = r3._generated, c2 = r3._source,
|
|
121454
|
-
if (l2 === 1 && r3._generated_length ===
|
|
121455
|
-
for (let
|
|
121453
|
+
const a2 = r3._generated, c2 = r3._source, f2 = r3._length;
|
|
121454
|
+
if (l2 === 1 && r3._generated_length === f2)
|
|
121455
|
+
for (let u2 = 0; u2 < f2; u2++) Oe$6(a2 + u2, c2 + u2, 1);
|
|
121456
121456
|
else
|
|
121457
121457
|
Oe$6(a2, c2, 1);
|
|
121458
121458
|
continue;
|
|
@@ -121592,7 +121592,7 @@ function ou(e2, t2, n2, r3) {
|
|
|
121592
121592
|
}
|
|
121593
121593
|
function zl() {
|
|
121594
121594
|
const e2 = me$7, t2 = ce$6, n2 = ze$5, r3 = Je$2, s2 = Ut$3, i2 = Ce$5.starts, o2 = Ce$5.count, l2 = se$6.starts, a2 = se$6.count;
|
|
121595
|
-
let c2 = ke$7,
|
|
121595
|
+
let c2 = ke$7, f2 = mr$1, u2 = 0, h2 = 0, p2 = 0, _2 = 0, m2 = 0, g2 = 0, v3 = 0, x2 = false;
|
|
121596
121596
|
for (let $2 = 0; $2 < e2; $2++) {
|
|
121597
121597
|
const b2 = s2[$2];
|
|
121598
121598
|
let y2 = t2[b2], C3 = n2[b2], k2 = r3[b2];
|
|
@@ -121604,24 +121604,24 @@ function zl() {
|
|
|
121604
121604
|
W2 < R2 && (R2 = W2);
|
|
121605
121605
|
const D2 = l2[v3 + 1] - C3;
|
|
121606
121606
|
D2 < R2 && (R2 = D2);
|
|
121607
|
-
const z2 =
|
|
121608
|
-
if (z2 > c2.length && (Qc(
|
|
121607
|
+
const z2 = u2 + (g2 - m2) + 24 + 5 * R2;
|
|
121608
|
+
if (z2 > c2.length && (Qc(u2, z2), c2 = ke$7, f2 = mr$1), m2 < g2) {
|
|
121609
121609
|
do
|
|
121610
|
-
c2[
|
|
121610
|
+
c2[u2++] = pt$2;
|
|
121611
121611
|
while (++m2 < g2);
|
|
121612
121612
|
h2 = 0;
|
|
121613
|
-
} else x2 && (c2[
|
|
121614
|
-
x2 = true,
|
|
121613
|
+
} else x2 && (c2[u2++] = Ye$4);
|
|
121614
|
+
x2 = true, u2 = ds(c2, u2, w2 - h2), c2[u2++] = lr$1, u2 = ds(c2, u2, v3 - p2), u2 = ds(c2, u2, O2 - _2);
|
|
121615
121615
|
let V3 = R2 - 1;
|
|
121616
121616
|
for (; V3 >= 4; )
|
|
121617
|
-
|
|
121617
|
+
f2.setUint32(u2, eu, true), f2.setUint32(u2 + 4, tu, true), f2.setUint32(u2 + 8, nu, true), f2.setUint32(u2 + 12, ru, true), f2.setUint32(u2 + 16, su, true), u2 += 20, V3 -= 4;
|
|
121618
121618
|
for (; V3 > 0; V3--)
|
|
121619
|
-
c2[
|
|
121619
|
+
c2[u2] = Ye$4, c2[u2 + 1] = Ao, c2[u2 + 2] = lr$1, c2[u2 + 3] = lr$1, c2[u2 + 4] = Ao, u2 += 5;
|
|
121620
121620
|
if (h2 = w2 + R2 - 1, p2 = v3, _2 = O2 + R2 - 1, k2 -= R2, k2 === 0) break;
|
|
121621
121621
|
y2 += R2, C3 += R2;
|
|
121622
121622
|
}
|
|
121623
121623
|
}
|
|
121624
|
-
return Kc.decode(c2.subarray(0,
|
|
121624
|
+
return Kc.decode(c2.subarray(0, u2));
|
|
121625
121625
|
}
|
|
121626
121626
|
const jl = 32768, lu = 8192;
|
|
121627
121627
|
let Et$1 = new Uint32Array(0), en$2 = 0;
|
|
@@ -121724,8 +121724,8 @@ let Ns$1 = class Ns2 {
|
|
|
121724
121724
|
if (a2 !== null && this.id_to_index === null && t2 === l2._size) {
|
|
121725
121725
|
let c2 = s2 === -1 ? Pe$6 : s2;
|
|
121726
121726
|
if (a2.has_handlers(n2)) {
|
|
121727
|
-
const
|
|
121728
|
-
a2.dispatch_open(
|
|
121727
|
+
const f2 = l2.push_node(n2, r3, c2, i2, o2);
|
|
121728
|
+
a2.dispatch_open(f2, n2, l2), this.refresh(a2), l2._size !== f2 + 1 && this.pushed();
|
|
121729
121729
|
return;
|
|
121730
121730
|
}
|
|
121731
121731
|
c2 !== Pe$6 && (c2 = a2.resolve(c2)), l2.push_node(n2, r3, c2, i2, o2);
|
|
@@ -121736,16 +121736,16 @@ let Ns$1 = class Ns2 {
|
|
|
121736
121736
|
/** an open once a plugin pushed nodes without ids or ids skipped a slot */
|
|
121737
121737
|
open_mapped(t2, n2, r3, s2, i2, o2) {
|
|
121738
121738
|
const l2 = this.nodes, a2 = this.dispatcher, c2 = this.id_to_index ?? this.start_id_map();
|
|
121739
|
-
let
|
|
121739
|
+
let f2 = s2 === -1 ? Pe$6 : c2[s2] ?? Pe$6;
|
|
121740
121740
|
if (a2 !== null) {
|
|
121741
121741
|
if (a2.has_handlers(n2)) {
|
|
121742
|
-
const
|
|
121743
|
-
c2[t2] =
|
|
121742
|
+
const u2 = l2.push_node(n2, r3, f2, i2, o2);
|
|
121743
|
+
c2[t2] = u2, a2.dispatch_open(u2, n2, l2), this.refresh(a2);
|
|
121744
121744
|
return;
|
|
121745
121745
|
}
|
|
121746
|
-
|
|
121746
|
+
f2 !== Pe$6 && (f2 = a2.resolve(f2));
|
|
121747
121747
|
}
|
|
121748
|
-
c2[t2] = l2.push_node(n2, r3,
|
|
121748
|
+
c2[t2] = l2.push_node(n2, r3, f2, i2, o2);
|
|
121749
121749
|
}
|
|
121750
121750
|
close(t2, n2, r3) {
|
|
121751
121751
|
const s2 = this.index_of(t2);
|
|
@@ -121975,28 +121975,28 @@ let Os$1 = class Os2 {
|
|
|
121975
121975
|
/* NodeField.stride */
|
|
121976
121976
|
] & 255;
|
|
121977
121977
|
}
|
|
121978
|
-
/**
|
|
121978
|
+
/** offset where the current node starts in source */
|
|
121979
121979
|
get start() {
|
|
121980
121980
|
return this.n[
|
|
121981
121981
|
this.b + 1
|
|
121982
121982
|
/* NodeField.start */
|
|
121983
121983
|
];
|
|
121984
121984
|
}
|
|
121985
|
-
/**
|
|
121985
|
+
/** offset where the current node ends in source */
|
|
121986
121986
|
get end() {
|
|
121987
121987
|
return this.n[
|
|
121988
121988
|
this.b + 2
|
|
121989
121989
|
/* NodeField.end */
|
|
121990
121990
|
];
|
|
121991
121991
|
}
|
|
121992
|
-
/**
|
|
121992
|
+
/** offset where the value content of the current node starts */
|
|
121993
121993
|
get value_start() {
|
|
121994
121994
|
return this.n[
|
|
121995
121995
|
this.b + 3
|
|
121996
121996
|
/* NodeField.value_start */
|
|
121997
121997
|
];
|
|
121998
121998
|
}
|
|
121999
|
-
/**
|
|
121999
|
+
/** offset where the value content of the current node ends */
|
|
122000
122000
|
get value_end() {
|
|
122001
122001
|
return this.n[
|
|
122002
122002
|
this.b + 4
|
|
@@ -122037,7 +122037,7 @@ let Os$1 = class Os2 {
|
|
|
122037
122037
|
];
|
|
122038
122038
|
return t2 === 0 ? void 0 : this.buf._meta[t2 - 1];
|
|
122039
122039
|
}
|
|
122040
|
-
/** slice the source
|
|
122040
|
+
/** slice the source by offsets, for metadata offset pairs */
|
|
122041
122041
|
slice(t2, n2) {
|
|
122042
122042
|
return this.src.slice(t2, n2);
|
|
122043
122043
|
}
|
|
@@ -122270,8 +122270,8 @@ let dn$2 = class dn2 {
|
|
|
122270
122270
|
for (let i2 = 0; i2 < t2.length; i2++) {
|
|
122271
122271
|
const { specifier: o2, names: l2 } = t2[i2], a2 = t2[i2].static;
|
|
122272
122272
|
for (let c2 = 0; c2 < l2.length; c2++) {
|
|
122273
|
-
const
|
|
122274
|
-
a2 !== void 0 && a2.includes(
|
|
122273
|
+
const f2 = l2[c2], u2 = this.own.get(f2), h2 = u2 ? u2.local : this.local_for(f2, n2);
|
|
122274
|
+
a2 !== void 0 && a2.includes(f2) ? (this.own.set(f2, { name: f2, specifier: o2, local: h2, static: true }), s2 = true) : this.own.set(f2, { name: f2, specifier: o2, local: h2 });
|
|
122275
122275
|
}
|
|
122276
122276
|
}
|
|
122277
122277
|
this.size = this.own.size + (r3 === null ? 0 : r3.size), this.has_static = s2;
|
|
@@ -122722,26 +122722,26 @@ function B$i(e2, t2, n2, r3, s2, i2, o2) {
|
|
|
122722
122722
|
}
|
|
122723
122723
|
}
|
|
122724
122724
|
function de$6(e2, t2, n2, r3, s2, i2, o2) {
|
|
122725
|
-
const l2 = i2.start, a2 = i2.value_start, c2 = i2.value_end,
|
|
122725
|
+
const l2 = i2.start, a2 = i2.value_start, c2 = i2.value_end, f2 = c2 > a2, u2 = i2.end, h2 = f2 ? c2 : u2;
|
|
122726
122726
|
if (l2 === 4294967295 || h2 === 4294967295 || !e2.syntax) {
|
|
122727
122727
|
Wu(e2, t2, n2, r3, s2, i2, o2);
|
|
122728
122728
|
return;
|
|
122729
122729
|
}
|
|
122730
|
-
const p2 = i2.index, _2 =
|
|
122730
|
+
const p2 = i2.index, _2 = f2 ? a2 : l2;
|
|
122731
122731
|
let m2 = e2.rec;
|
|
122732
122732
|
const g2 = e2.n;
|
|
122733
|
-
g2 + 18 > m2.length && (m2 = e2.grow()), m2[g2] = t2, m2[g2 + 1] = s2 - t2, m2[g2 + 2] = l2, m2[g2 + 3] =
|
|
122733
|
+
g2 + 18 > m2.length && (m2 = e2.grow()), m2[g2] = t2, m2[g2 + 1] = s2 - t2, m2[g2 + 2] = l2, m2[g2 + 3] = u2 > l2 ? u2 - l2 : 0, m2[g2 + 4] = p2, m2[g2 + 5] = o2 << 2, m2[g2 + 6] = t2, m2[g2 + 7] = n2 - t2, m2[g2 + 8] = l2, m2[g2 + 9] = _2 > l2 ? _2 - l2 : 0, m2[g2 + 10] = p2, m2[g2 + 11] = 14, m2[g2 + 12] = r3, m2[g2 + 13] = s2 - r3, m2[g2 + 14] = h2, m2[g2 + 15] = u2 > h2 ? u2 - h2 : 0, m2[g2 + 16] = p2, m2[g2 + 17] = 15, e2.n = g2 + 18;
|
|
122734
122734
|
}
|
|
122735
122735
|
function Wu(e2, t2, n2, r3, s2, i2, o2) {
|
|
122736
122736
|
const l2 = i2.index, a2 = i2.start, c2 = i2.end;
|
|
122737
122737
|
if (c2 === 4294967295 || (B$i(e2, t2, s2, a2, c2, l2, o2 << 2), !e2.syntax)) return;
|
|
122738
|
-
const
|
|
122738
|
+
const f2 = i2.value_start, u2 = i2.value_end, h2 = u2 > f2;
|
|
122739
122739
|
B$i(
|
|
122740
122740
|
e2,
|
|
122741
122741
|
t2,
|
|
122742
122742
|
n2,
|
|
122743
122743
|
a2,
|
|
122744
|
-
h2 ?
|
|
122744
|
+
h2 ? f2 : a2,
|
|
122745
122745
|
l2,
|
|
122746
122746
|
14
|
|
122747
122747
|
/* STRUCTURE_OPEN */
|
|
@@ -122749,7 +122749,7 @@ function Wu(e2, t2, n2, r3, s2, i2, o2) {
|
|
|
122749
122749
|
e2,
|
|
122750
122750
|
r3,
|
|
122751
122751
|
s2,
|
|
122752
|
-
h2 ?
|
|
122752
|
+
h2 ? u2 : c2,
|
|
122753
122753
|
c2,
|
|
122754
122754
|
l2,
|
|
122755
122755
|
15
|
|
@@ -122991,11 +122991,11 @@ function Vr$1(e2, t2, n2) {
|
|
|
122991
122991
|
/* value_end */
|
|
122992
122992
|
], c2 = e2.prebuilt_at(i2) ?? e2.slice(l2, a2);
|
|
122993
122993
|
if (t2 !== void 0) {
|
|
122994
|
-
const
|
|
122995
|
-
n2 ? fe$6(t2,
|
|
122994
|
+
const f2 = d$7.length;
|
|
122995
|
+
n2 ? fe$6(t2, f2, f2 + c2.length, l2, a2) : l2 !== 4294967295 && a2 > l2 && B$i(
|
|
122996
122996
|
t2,
|
|
122997
|
-
|
|
122998
|
-
|
|
122997
|
+
f2,
|
|
122998
|
+
f2 + c2.length,
|
|
122999
122999
|
l2,
|
|
123000
123000
|
a2,
|
|
123001
123001
|
i2,
|
|
@@ -123082,28 +123082,28 @@ function rf(e2, t2, n2, r3, s2) {
|
|
|
123082
123082
|
if (i2 === void 0 || Z$c !== null && Z$c.has(e2.index) || Ir$1(e2))
|
|
123083
123083
|
return false;
|
|
123084
123084
|
const o2 = e2.source, l2 = e2.value_end;
|
|
123085
|
-
let a2 = e2.value_start, c2 = 0,
|
|
123085
|
+
let a2 = e2.value_start, c2 = 0, f2 = 0;
|
|
123086
123086
|
for (; ; ) {
|
|
123087
|
-
let
|
|
123087
|
+
let u2 = we$6.call(r3, `
|
|
123088
123088
|
`, c2), h2 = we$6.call(i2, `
|
|
123089
|
-
`,
|
|
123089
|
+
`, f2), p2 = we$6.call(o2, `
|
|
123090
123090
|
`, a2);
|
|
123091
123091
|
(p2 === -1 || p2 > l2) && (p2 = l2);
|
|
123092
|
-
const _2 =
|
|
123093
|
-
_2 ? (
|
|
123092
|
+
const _2 = u2 === -1;
|
|
123093
|
+
_2 ? (u2 = r3.length, h2 = i2.length) : (u2++, h2++);
|
|
123094
123094
|
const m2 = _2 ? p2 : p2 + 1;
|
|
123095
|
-
let g2 = m2 - (h2 -
|
|
123096
|
-
if (g2 < a2 && (g2 = a2),
|
|
123095
|
+
let g2 = m2 - (h2 - f2);
|
|
123096
|
+
if (g2 < a2 && (g2 = a2), u2 > c2 && (s2 ? fe$6(t2, n2 + c2, n2 + u2, g2, m2) : B$i(
|
|
123097
123097
|
t2,
|
|
123098
123098
|
n2 + c2,
|
|
123099
|
-
n2 +
|
|
123099
|
+
n2 + u2,
|
|
123100
123100
|
g2,
|
|
123101
123101
|
m2,
|
|
123102
123102
|
e2.index,
|
|
123103
123103
|
5
|
|
123104
123104
|
/* CODE_CONTENT */
|
|
123105
123105
|
)), _2) return true;
|
|
123106
|
-
c2 =
|
|
123106
|
+
c2 = u2, f2 = h2, a2 = p2 + 1;
|
|
123107
123107
|
}
|
|
123108
123108
|
}
|
|
123109
123109
|
function bi$1(e2, t2, n2, r3, s2) {
|
|
@@ -123269,18 +123269,18 @@ function ge$7(e2, t2) {
|
|
|
123269
123269
|
/* value_end */
|
|
123270
123270
|
];
|
|
123271
123271
|
if (l2 !== 4294967295 && !Mt$3) {
|
|
123272
|
-
const
|
|
123272
|
+
const f2 = n2[
|
|
123273
123273
|
l2 * 12
|
|
123274
123274
|
/* stride */
|
|
123275
123275
|
] & 255;
|
|
123276
|
-
if (
|
|
123276
|
+
if (f2 === 1 || f2 === 18) {
|
|
123277
123277
|
r3 = wf(n2, r3, s2, e2.source);
|
|
123278
|
-
const
|
|
123278
|
+
const u2 = r3 * 12;
|
|
123279
123279
|
c2 = n2[
|
|
123280
|
-
|
|
123280
|
+
u2 + 4
|
|
123281
123281
|
/* value_end */
|
|
123282
123282
|
], l2 = n2[
|
|
123283
|
-
|
|
123283
|
+
u2 + 6
|
|
123284
123284
|
/* next */
|
|
123285
123285
|
];
|
|
123286
123286
|
}
|
|
@@ -123323,14 +123323,14 @@ function wf(e2, t2, n2, r3) {
|
|
|
123323
123323
|
] !== n2) return s2;
|
|
123324
123324
|
let c2 = e2[a2] & 255;
|
|
123325
123325
|
if (c2 === 18) {
|
|
123326
|
-
const
|
|
123326
|
+
const u2 = e2[
|
|
123327
123327
|
a2 + 1
|
|
123328
123328
|
/* start */
|
|
123329
123329
|
];
|
|
123330
|
-
if (
|
|
123330
|
+
if (u2 !== o2 || e2[
|
|
123331
123331
|
a2 + 2
|
|
123332
123332
|
/* end */
|
|
123333
|
-
] !==
|
|
123333
|
+
] !== u2 + 1 || r3.charCodeAt(u2) !== 10 || (l2 = e2[
|
|
123334
123334
|
a2 + 6
|
|
123335
123335
|
/* next */
|
|
123336
123336
|
], l2 === 4294967295) || (a2 = l2 * 12, e2[
|
|
@@ -123339,21 +123339,21 @@ function wf(e2, t2, n2, r3) {
|
|
|
123339
123339
|
] !== n2) || (c2 = e2[a2] & 255, c2 !== 1 || e2[
|
|
123340
123340
|
a2 + 3
|
|
123341
123341
|
/* value_start */
|
|
123342
|
-
] !==
|
|
123342
|
+
] !== u2 + 1)) return s2;
|
|
123343
123343
|
} else if (c2 !== 1 || e2[
|
|
123344
123344
|
a2 + 3
|
|
123345
123345
|
/* value_start */
|
|
123346
123346
|
] !== o2)
|
|
123347
123347
|
return s2;
|
|
123348
|
-
const
|
|
123348
|
+
const f2 = e2[
|
|
123349
123349
|
a2 + 4
|
|
123350
123350
|
/* value_end */
|
|
123351
123351
|
];
|
|
123352
|
-
if (
|
|
123352
|
+
if (f2 === 4294967295 || f2 < e2[
|
|
123353
123353
|
a2 + 3
|
|
123354
123354
|
/* value_start */
|
|
123355
123355
|
]) return s2;
|
|
123356
|
-
s2 = l2, i2 = a2, o2 =
|
|
123356
|
+
s2 = l2, i2 = a2, o2 = f2;
|
|
123357
123357
|
}
|
|
123358
123358
|
}
|
|
123359
123359
|
function rn$2(e2, t2) {
|
|
@@ -123645,15 +123645,15 @@ function he$5(e2, t2, n2) {
|
|
|
123645
123645
|
const c2 = r3[
|
|
123646
123646
|
o2 + 3
|
|
123647
123647
|
/* value_start */
|
|
123648
|
-
],
|
|
123648
|
+
], f2 = r3[
|
|
123649
123649
|
o2 + 4
|
|
123650
123650
|
/* value_end */
|
|
123651
|
-
],
|
|
123652
|
-
if (n2 !== 0 && (d$7 += q$h[n2], n2 = 0), c2 !== 4294967295 &&
|
|
123651
|
+
], u2 = bt$3(e2, s2, c2, f2, false);
|
|
123652
|
+
if (n2 !== 0 && (d$7 += q$h[n2], n2 = 0), c2 !== 4294967295 && f2 > c2) {
|
|
123653
123653
|
const h2 = d$7.length;
|
|
123654
|
-
fe$6(t2, h2, h2 +
|
|
123654
|
+
fe$6(t2, h2, h2 + u2.length, c2, f2);
|
|
123655
123655
|
}
|
|
123656
|
-
d$7 +=
|
|
123656
|
+
d$7 += u2;
|
|
123657
123657
|
} else l2 !== 6 && (e2.move_to(s2), n2 = sn$2(e2, t2, n2));
|
|
123658
123658
|
const a2 = r3[
|
|
123659
123659
|
o2 + 6
|
|
@@ -123823,12 +123823,12 @@ function Of(e2, t2, n2) {
|
|
|
123823
123823
|
let a2 = "<" + Y$d(i2);
|
|
123824
123824
|
const c2 = s2?.attributes;
|
|
123825
123825
|
if (c2) {
|
|
123826
|
-
const
|
|
123827
|
-
for (const
|
|
123828
|
-
const h2 = c2[
|
|
123829
|
-
h2 === true ? a2 += " " +
|
|
123826
|
+
const f2 = !e2.synthetic;
|
|
123827
|
+
for (const u2 in c2) {
|
|
123828
|
+
const h2 = c2[u2];
|
|
123829
|
+
h2 === true ? a2 += " " + u2 : typeof h2 == "object" && h2.type === "expression" ? a2 += Mn$1(u2, Y$d(h2.value)) : a2 += " " + u2 + '="' + hn$2(h2, f2) + '"';
|
|
123830
123830
|
}
|
|
123831
|
-
s2.repeated !== void 0 && (a2 += zr$1(s2.repeated,
|
|
123831
|
+
s2.repeated !== void 0 && (a2 += zr$1(s2.repeated, f2));
|
|
123832
123832
|
}
|
|
123833
123833
|
if (o2)
|
|
123834
123834
|
return d$7 += a2, fe$6(t2, r3, d$7.length + S$l[mt$2], e2.start, e2.end), mt$2;
|
|
@@ -123917,24 +123917,24 @@ function pe$7(e2, t2, n2) {
|
|
|
123917
123917
|
const c2 = r3[
|
|
123918
123918
|
o2 + 3
|
|
123919
123919
|
/* value_start */
|
|
123920
|
-
],
|
|
123920
|
+
], f2 = r3[
|
|
123921
123921
|
o2 + 4
|
|
123922
123922
|
/* value_end */
|
|
123923
|
-
],
|
|
123924
|
-
if (n2 !== 0 && (d$7 += q$h[n2], n2 = 0), c2 !== 4294967295 &&
|
|
123923
|
+
], u2 = bt$3(e2, s2, c2, f2, false);
|
|
123924
|
+
if (n2 !== 0 && (d$7 += q$h[n2], n2 = 0), c2 !== 4294967295 && f2 > c2) {
|
|
123925
123925
|
const h2 = d$7.length;
|
|
123926
123926
|
B$i(
|
|
123927
123927
|
t2,
|
|
123928
123928
|
h2,
|
|
123929
|
-
h2 +
|
|
123929
|
+
h2 + u2.length,
|
|
123930
123930
|
c2,
|
|
123931
|
-
|
|
123931
|
+
f2,
|
|
123932
123932
|
s2,
|
|
123933
123933
|
1
|
|
123934
123934
|
/* TEXT_CONTENT */
|
|
123935
123935
|
);
|
|
123936
123936
|
}
|
|
123937
|
-
d$7 +=
|
|
123937
|
+
d$7 += u2;
|
|
123938
123938
|
} else l2 !== 6 && (e2.move_to(s2), n2 = on$1(e2, t2, n2));
|
|
123939
123939
|
const a2 = r3[
|
|
123940
123940
|
o2 + 6
|
|
@@ -124242,14 +124242,14 @@ function Uf(e2, t2, n2, r3) {
|
|
|
124242
124242
|
else {
|
|
124243
124243
|
const c2 = d$7.length + S$l[n2];
|
|
124244
124244
|
n2 = J$e(e2, n2, Un$1, Rn$2, U$i);
|
|
124245
|
-
const u2 = d$7.length + S$l[n2];
|
|
124246
|
-
n2 = L$k(n2, s2), n2 = pe$7(e2, t2, n2);
|
|
124247
124245
|
const f2 = d$7.length + S$l[n2];
|
|
124246
|
+
n2 = L$k(n2, s2), n2 = pe$7(e2, t2, n2);
|
|
124247
|
+
const u2 = d$7.length + S$l[n2];
|
|
124248
124248
|
n2 = L$k(n2, kt$2), de$6(
|
|
124249
124249
|
t2,
|
|
124250
124250
|
c2,
|
|
124251
|
-
u2,
|
|
124252
124251
|
f2,
|
|
124252
|
+
u2,
|
|
124253
124253
|
d$7.length + S$l[n2],
|
|
124254
124254
|
e2,
|
|
124255
124255
|
0
|
|
@@ -124313,17 +124313,17 @@ function zf(e2, t2, n2) {
|
|
|
124313
124313
|
if (l2)
|
|
124314
124314
|
d$7 += l2;
|
|
124315
124315
|
else {
|
|
124316
|
-
let
|
|
124317
|
-
const
|
|
124318
|
-
if (
|
|
124316
|
+
let f2 = "<" + Y$d(i2);
|
|
124317
|
+
const u2 = s2?.attributes;
|
|
124318
|
+
if (u2) {
|
|
124319
124319
|
const h2 = !e2.synthetic;
|
|
124320
|
-
for (const p2 in
|
|
124321
|
-
const _2 =
|
|
124322
|
-
_2 === true ?
|
|
124320
|
+
for (const p2 in u2) {
|
|
124321
|
+
const _2 = u2[p2];
|
|
124322
|
+
_2 === true ? f2 += " " + p2 : typeof _2 == "object" && _2.type === "expression" ? f2 += Mn$1(p2, Y$d(_2.value)) : f2 += " " + p2 + '="' + hn$2(_2, h2) + '"';
|
|
124323
124323
|
}
|
|
124324
|
-
s2.repeated !== void 0 && (
|
|
124324
|
+
s2.repeated !== void 0 && (f2 += zr$1(s2.repeated, h2));
|
|
124325
124325
|
}
|
|
124326
|
-
if (d$7 +=
|
|
124326
|
+
if (d$7 += f2, o2)
|
|
124327
124327
|
return B$i(
|
|
124328
124328
|
t2,
|
|
124329
124329
|
r3,
|
|
@@ -124374,8 +124374,8 @@ function zf(e2, t2, n2) {
|
|
|
124374
124374
|
/* SVELTE_CONTENT */
|
|
124375
124375
|
);
|
|
124376
124376
|
else {
|
|
124377
|
-
const
|
|
124378
|
-
|
|
124377
|
+
const f2 = pe$7(e2, t2, U$i);
|
|
124378
|
+
f2 !== 0 && (d$7 += q$h[f2]);
|
|
124379
124379
|
}
|
|
124380
124380
|
const c2 = d$7.length;
|
|
124381
124381
|
return d$7 = d$7 + "</" + Y$d(i2), de$6(
|
|
@@ -124722,21 +124722,21 @@ function Wf(e2, t2, n2) {
|
|
|
124722
124722
|
if (s2 += o2.length, l2 === true) continue;
|
|
124723
124723
|
if (s2 = nr$1(r3, s2), r3.charCodeAt(s2) !== 61) return -1;
|
|
124724
124724
|
s2 = nr$1(r3, s2 + 1);
|
|
124725
|
-
let c2,
|
|
124725
|
+
let c2, f2 = -1, u2 = -1;
|
|
124726
124726
|
if (typeof l2 == "string") {
|
|
124727
124727
|
c2 = l2;
|
|
124728
124728
|
const h2 = r3.charCodeAt(s2);
|
|
124729
|
-
(h2 === 34 || h2 === 39) && (
|
|
124729
|
+
(h2 === 34 || h2 === 39) && (f2 = u2 = h2);
|
|
124730
124730
|
} else if (typeof l2 == "object" && l2 !== null)
|
|
124731
|
-
c2 = Y$d(l2.value),
|
|
124731
|
+
c2 = Y$d(l2.value), f2 = 123, u2 = 125;
|
|
124732
124732
|
else return -1;
|
|
124733
|
-
if (
|
|
124734
|
-
if (r3.charCodeAt(s2) !==
|
|
124733
|
+
if (f2 !== -1) {
|
|
124734
|
+
if (r3.charCodeAt(s2) !== f2) return -1;
|
|
124735
124735
|
s2++;
|
|
124736
124736
|
}
|
|
124737
124737
|
if (!r3.startsWith(c2, s2)) return -1;
|
|
124738
|
-
if (s2 += c2.length,
|
|
124739
|
-
if (r3.charCodeAt(s2) !==
|
|
124738
|
+
if (s2 += c2.length, u2 !== -1) {
|
|
124739
|
+
if (r3.charCodeAt(s2) !== u2) return -1;
|
|
124740
124740
|
s2++;
|
|
124741
124741
|
}
|
|
124742
124742
|
}
|
|
@@ -124798,7 +124798,7 @@ function eo$1(e2, t2, n2, r3) {
|
|
|
124798
124798
|
if (i2 >= 30 && i2 <= 32)
|
|
124799
124799
|
return ed(e2, t2, n2, r3);
|
|
124800
124800
|
const o2 = d$7.length, l2 = r3.local;
|
|
124801
|
-
let a2 = "<" + l2, c2 = "",
|
|
124801
|
+
let a2 = "<" + l2, c2 = "", f2 = "</" + l2 + ">", u2 = 0, h2 = false;
|
|
124802
124802
|
switch (i2) {
|
|
124803
124803
|
case 3:
|
|
124804
124804
|
a2 += M$l(e2) + " level={" + e2.extra + "}";
|
|
@@ -124830,7 +124830,7 @@ function eo$1(e2, t2, n2, r3) {
|
|
|
124830
124830
|
return I$k(n2, a2 + M$l(e2) + ` />
|
|
124831
124831
|
`);
|
|
124832
124832
|
case 36:
|
|
124833
|
-
return Od(e2, t2, n2, o2, a2,
|
|
124833
|
+
return Od(e2, t2, n2, o2, a2, f2);
|
|
124834
124834
|
case 7:
|
|
124835
124835
|
a2 += M$l(e2), e2.index === Ot$1 && (c2 = Gr$1);
|
|
124836
124836
|
break;
|
|
@@ -124841,31 +124841,31 @@ function eo$1(e2, t2, n2, r3) {
|
|
|
124841
124841
|
a2 += " start={" + (typeof g2 == "number" ? g2 : 1) + "}";
|
|
124842
124842
|
}
|
|
124843
124843
|
c2 = `
|
|
124844
|
-
`,
|
|
124845
|
-
` +
|
|
124844
|
+
`, f2 = `
|
|
124845
|
+
` + f2, u2 = 3;
|
|
124846
124846
|
break;
|
|
124847
124847
|
}
|
|
124848
124848
|
case 16: {
|
|
124849
124849
|
const m2 = (s2 = e2.meta()) == null ? void 0 : s2.checked;
|
|
124850
|
-
a2 += M$l(e2), typeof m2 == "boolean" && (a2 += " checked={" + m2 + "}"),
|
|
124850
|
+
a2 += M$l(e2), typeof m2 == "boolean" && (a2 += " checked={" + m2 + "}"), f2 += `
|
|
124851
124851
|
`;
|
|
124852
124852
|
break;
|
|
124853
124853
|
}
|
|
124854
124854
|
case 14:
|
|
124855
124855
|
a2 += M$l(e2), c2 = `
|
|
124856
|
-
`,
|
|
124857
|
-
` +
|
|
124856
|
+
`, f2 = `
|
|
124857
|
+
` + f2;
|
|
124858
124858
|
break;
|
|
124859
124859
|
case 22:
|
|
124860
124860
|
a2 += M$l(e2), c2 = `
|
|
124861
|
-
`,
|
|
124862
|
-
` +
|
|
124861
|
+
`, f2 = `
|
|
124862
|
+
` + f2, u2 = 3;
|
|
124863
124863
|
break;
|
|
124864
124864
|
case 8: {
|
|
124865
124865
|
if (F$m !== null) {
|
|
124866
124866
|
const x2 = rs$1(e2);
|
|
124867
124867
|
if (x2 !== null)
|
|
124868
|
-
return r3.name === "math" ? bd(e2, t2, n2, x2, a2,
|
|
124868
|
+
return r3.name === "math" ? bd(e2, t2, n2, x2, a2, f2) : vd(e2, t2, n2, x2, a2, f2);
|
|
124869
124869
|
}
|
|
124870
124870
|
n2 = I$k(n2, a2 + M$l(e2) + ">");
|
|
124871
124871
|
const m2 = d$7.length;
|
|
@@ -124873,7 +124873,7 @@ function eo$1(e2, t2, n2, r3) {
|
|
|
124873
124873
|
we$6.call(g2, `
|
|
124874
124874
|
`) !== -1 && (g2 = g2.replace(/\n/g, " ")), n2 = zs(e2, t2, n2, g2);
|
|
124875
124875
|
const v3 = d$7.length;
|
|
124876
|
-
return n2 = I$k(n2,
|
|
124876
|
+
return n2 = I$k(n2, f2), Jt$1(
|
|
124877
124877
|
e2,
|
|
124878
124878
|
t2,
|
|
124879
124879
|
o2,
|
|
@@ -124889,7 +124889,7 @@ function eo$1(e2, t2, n2, r3) {
|
|
|
124889
124889
|
if (F$m !== null) {
|
|
124890
124890
|
const b2 = ns$2(e2, m2);
|
|
124891
124891
|
if (b2 !== null)
|
|
124892
|
-
return r3.name === "math" ? _d(e2, t2, n2, b2, m2, a2,
|
|
124892
|
+
return r3.name === "math" ? _d(e2, t2, n2, b2, m2, a2, f2) : md(e2, t2, n2, b2, m2, a2, f2);
|
|
124893
124893
|
}
|
|
124894
124894
|
a2 += M$l(e2);
|
|
124895
124895
|
let g2 = "<code>";
|
|
@@ -124908,7 +124908,7 @@ function eo$1(e2, t2, n2, r3) {
|
|
|
124908
124908
|
/* TRACE */
|
|
124909
124909
|
);
|
|
124910
124910
|
const $2 = d$7.length;
|
|
124911
|
-
return n2 = I$k(n2, "</code></pre>" +
|
|
124911
|
+
return n2 = I$k(n2, "</code></pre>" + f2), Jt$1(
|
|
124912
124912
|
e2,
|
|
124913
124913
|
t2,
|
|
124914
124914
|
o2,
|
|
@@ -124967,7 +124967,7 @@ function eo$1(e2, t2, n2, r3) {
|
|
|
124967
124967
|
/* SVELTE_CONTENT */
|
|
124968
124968
|
) : n2 = i2 === 22 ? Qr$1(e2, t2, n2) : It$5(e2, t2, n2);
|
|
124969
124969
|
const _2 = d$7.length;
|
|
124970
|
-
return n2 = I$k(n2,
|
|
124970
|
+
return n2 = I$k(n2, f2), Jt$1(e2, t2, o2, p2, _2, d$7.length, u2), n2;
|
|
124971
124971
|
}
|
|
124972
124972
|
let ga$1 = class ga2 extends Error {
|
|
124973
124973
|
constructor(t2, n2) {
|
|
@@ -125057,11 +125057,11 @@ function ed(e2, t2, n2, r3) {
|
|
|
125057
125057
|
const p2 = wa(e2, r3);
|
|
125058
125058
|
if (p2 !== void 0) return td$1(e2, t2, n2, p2);
|
|
125059
125059
|
}
|
|
125060
|
-
const s2 = d$7.length, i2 = e2.kind, o2 = r3.local, l2 = "<" + o2 + ma$1(e2, i2), a2 = i2 === 30 ? 4294967295 : no$1(e2), c2 = a2 !== 4294967295,
|
|
125060
|
+
const s2 = d$7.length, i2 = e2.kind, o2 = r3.local, l2 = "<" + o2 + ma$1(e2, i2), a2 = i2 === 30 ? 4294967295 : no$1(e2), c2 = a2 !== 4294967295, f2 = i2 === 30 ? e2.words[
|
|
125061
125061
|
e2.index * 12 + 8
|
|
125062
125062
|
/* first_child */
|
|
125063
125063
|
] !== 4294967295 : i2 === 32 && _a(e2);
|
|
125064
|
-
if (!c2 && !
|
|
125064
|
+
if (!c2 && !f2)
|
|
125065
125065
|
return n2 = I$k(n2, l2 + " />"), Wt$3(
|
|
125066
125066
|
e2,
|
|
125067
125067
|
t2,
|
|
@@ -125070,8 +125070,8 @@ function ed(e2, t2, n2, r3) {
|
|
|
125070
125070
|
/* STRUCTURE */
|
|
125071
125071
|
), n2;
|
|
125072
125072
|
n2 = I$k(n2, l2 + ">"), c2 && (n2 = Qf(e2, t2, n2, a2));
|
|
125073
|
-
const
|
|
125074
|
-
|
|
125073
|
+
const u2 = d$7.length;
|
|
125074
|
+
f2 && (i2 === 32 && (n2 = I$k(n2, `
|
|
125075
125075
|
`)), n2 = It$5(e2, t2, n2), i2 === 32 && (n2 = I$k(n2, `
|
|
125076
125076
|
`)));
|
|
125077
125077
|
const h2 = d$7.length;
|
|
@@ -125079,7 +125079,7 @@ function ed(e2, t2, n2, r3) {
|
|
|
125079
125079
|
e2,
|
|
125080
125080
|
t2,
|
|
125081
125081
|
s2,
|
|
125082
|
-
|
|
125082
|
+
u2,
|
|
125083
125083
|
h2,
|
|
125084
125084
|
d$7.length,
|
|
125085
125085
|
i2 === 30 ? 0 : 3
|
|
@@ -125129,18 +125129,18 @@ function td$1(e2, t2, n2, r3) {
|
|
|
125129
125129
|
const a2 = d$7.length;
|
|
125130
125130
|
for (let c2 = 0; c2 < l2.length; c2++) {
|
|
125131
125131
|
if (l2[c2] === "label") {
|
|
125132
|
-
const
|
|
125133
|
-
e2.move_to(no$1(e2)), n2 = It$5(e2, t2, n2), e2.move_to(
|
|
125132
|
+
const f2 = e2.index;
|
|
125133
|
+
e2.move_to(no$1(e2)), n2 = It$5(e2, t2, n2), e2.move_to(f2);
|
|
125134
125134
|
} else
|
|
125135
125135
|
n2 = It$5(e2, t2, n2);
|
|
125136
125136
|
if (c2 === l2.length - 1) {
|
|
125137
|
-
const
|
|
125137
|
+
const f2 = d$7.length;
|
|
125138
125138
|
n2 = I$k(n2, o2[c2 + 1]), Jt$1(
|
|
125139
125139
|
e2,
|
|
125140
125140
|
t2,
|
|
125141
125141
|
s2,
|
|
125142
125142
|
a2,
|
|
125143
|
-
|
|
125143
|
+
f2,
|
|
125144
125144
|
d$7.length,
|
|
125145
125145
|
i2 === 30 ? 0 : 3
|
|
125146
125146
|
/* STRUCTURE */
|
|
@@ -125158,16 +125158,16 @@ function nd(e2, t2, n2, r3) {
|
|
|
125158
125158
|
do {
|
|
125159
125159
|
const c2 = i2.kind;
|
|
125160
125160
|
if (c2 >= 30 && c2 <= 32) {
|
|
125161
|
-
const
|
|
125162
|
-
if (
|
|
125163
|
-
const
|
|
125164
|
-
if (!o2.has(
|
|
125165
|
-
o2.add(
|
|
125161
|
+
const f2 = n2.get(Yn$1(i2));
|
|
125162
|
+
if (f2 !== void 0 && f2.static === true) {
|
|
125163
|
+
const u2 = va$1(i2, f2);
|
|
125164
|
+
if (!o2.has(u2) && r3?.get(u2) === void 0) {
|
|
125165
|
+
o2.add(u2);
|
|
125166
125166
|
const { label: h2, children: p2 } = ba$1(i2), _2 = (a2 = i2.meta()) == null ? void 0 : a2.args;
|
|
125167
125167
|
s2.push({
|
|
125168
|
-
key:
|
|
125169
|
-
specifier:
|
|
125170
|
-
name:
|
|
125168
|
+
key: u2,
|
|
125169
|
+
specifier: f2.specifier,
|
|
125170
|
+
name: f2.name,
|
|
125171
125171
|
args: _2 === void 0 ? {} : { ..._2 },
|
|
125172
125172
|
label: h2 !== 4294967295,
|
|
125173
125173
|
children: p2,
|
|
@@ -125186,10 +125186,10 @@ function nd(e2, t2, n2, r3) {
|
|
|
125186
125186
|
function Qr$1(e2, t2, n2) {
|
|
125187
125187
|
const r3 = e2.meta(), s2 = r3?.alignments ?? [], i2 = Xn$1(r3, s2), o2 = ue$5.get("thead"), l2 = ue$5.get("tbody"), a2 = ue$5.get("tr"), c2 = a2 ? "<" + a2.local + `>
|
|
125188
125188
|
` : `<tr>
|
|
125189
|
-
`,
|
|
125189
|
+
`, f2 = a2 ? "</" + a2.local + `>
|
|
125190
125190
|
` : `</tr>
|
|
125191
125191
|
`;
|
|
125192
|
-
let
|
|
125192
|
+
let u2 = false;
|
|
125193
125193
|
if (!e2.goto_first_child()) return n2;
|
|
125194
125194
|
do
|
|
125195
125195
|
if (e2.kind === 23)
|
|
@@ -125197,18 +125197,18 @@ function Qr$1(e2, t2, n2) {
|
|
|
125197
125197
|
` : `<thead>
|
|
125198
125198
|
`) + c2), n2 = i2 ? Fo(e2, t2, n2, "th", s2, 0, Zn$1) : Mo(e2, t2, n2, "th", s2), n2 = I$k(
|
|
125199
125199
|
n2,
|
|
125200
|
-
|
|
125200
|
+
f2 + (o2 ? "</" + o2.local + `>
|
|
125201
125201
|
` : `</thead>
|
|
125202
125202
|
`)
|
|
125203
125203
|
);
|
|
125204
125204
|
else if (e2.kind === 24) {
|
|
125205
125205
|
let h2 = c2;
|
|
125206
|
-
|
|
125206
|
+
u2 || (h2 = (l2 ? "<" + l2.local + `>
|
|
125207
125207
|
` : `<tbody>
|
|
125208
|
-
`) + h2,
|
|
125208
|
+
`) + h2, u2 = true), n2 = I$k(n2, h2), n2 = i2 ? Fo(e2, t2, n2, "td", s2, gn$2, mn$1) : Mo(e2, t2, n2, "td", s2), n2 = I$k(n2, f2);
|
|
125209
125209
|
}
|
|
125210
125210
|
while (e2.goto_next_sibling());
|
|
125211
|
-
return e2.goto_parent(),
|
|
125211
|
+
return e2.goto_parent(), u2 && (n2 = I$k(n2, l2 ? "</" + l2.local + ">" : "</tbody>")), n2;
|
|
125212
125212
|
}
|
|
125213
125213
|
function Mo(e2, t2, n2, r3, s2) {
|
|
125214
125214
|
const i2 = ue$5.get(r3), o2 = i2 ? i2.local : r3;
|
|
@@ -125227,11 +125227,11 @@ function Mo(e2, t2, n2, r3, s2) {
|
|
|
125227
125227
|
return e2.goto_parent(), n2;
|
|
125228
125228
|
}
|
|
125229
125229
|
function Fo(e2, t2, n2, r3, s2, i2, o2) {
|
|
125230
|
-
const l2 = ue$5.get(r3), a2 = l2 ? l2.local : r3, c2 = r3 === "th" ? void 0 : ue$5.get("th"),
|
|
125230
|
+
const l2 = ue$5.get(r3), a2 = l2 ? l2.local : r3, c2 = r3 === "th" ? void 0 : ue$5.get("th"), f2 = c2 ? c2.local : "th";
|
|
125231
125231
|
if (!e2.goto_first_child()) return n2;
|
|
125232
125232
|
do
|
|
125233
125233
|
if (e2.kind === 25) {
|
|
125234
|
-
const
|
|
125234
|
+
const u2 = e2.extra, h2 = u2 < i2 || u2 >= o2, p2 = Hr$1(e2, u2, s2), _2 = h2 ? f2 : a2;
|
|
125235
125235
|
n2 = I$k(
|
|
125236
125236
|
n2,
|
|
125237
125237
|
h2 ? "<" + _2 + ' scope="row"' + p2 + ">" : "<" + _2 + p2 + ">"
|
|
@@ -125295,15 +125295,15 @@ function id(e2, t2) {
|
|
|
125295
125295
|
const l2 = Bl;
|
|
125296
125296
|
let a2 = 0;
|
|
125297
125297
|
for (let c2 = 0; c2 < r3; c2 += 6) {
|
|
125298
|
-
const
|
|
125298
|
+
const f2 = n2[c2 + 3], u2 = n2[c2], h2 = n2[c2 + 1];
|
|
125299
125299
|
let p2 = n2[c2 + 2];
|
|
125300
|
-
const _2 = p2 +
|
|
125300
|
+
const _2 = p2 + f2, m2 = h2 === f2;
|
|
125301
125301
|
a2 = Jo(t2, p2, a2);
|
|
125302
125302
|
const g2 = n2[c2 + 5], v3 = n2[c2 + 4] | 0, x2 = (v3 + 1) * 16 + g2;
|
|
125303
125303
|
if (m2) {
|
|
125304
125304
|
if (a2 < s2 && t2[a2] + 1 < _2) {
|
|
125305
125305
|
const b2 = [], y2 = [], C3 = [];
|
|
125306
|
-
let k2 =
|
|
125306
|
+
let k2 = u2;
|
|
125307
125307
|
for (; a2 < s2 && t2[a2] + 1 < _2; ) {
|
|
125308
125308
|
const O2 = t2[a2] + 1;
|
|
125309
125309
|
b2.push(p2 + a2), y2.push(k2), C3.push(O2 - p2), k2 += O2 - p2, p2 = O2, a2++;
|
|
@@ -125319,19 +125319,19 @@ function id(e2, t2) {
|
|
|
125319
125319
|
} else
|
|
125320
125320
|
i2[o2++] = new An$1(
|
|
125321
125321
|
p2 + a2,
|
|
125322
|
-
f2,
|
|
125323
|
-
u2,
|
|
125324
125322
|
u2,
|
|
125323
|
+
f2,
|
|
125324
|
+
f2,
|
|
125325
125325
|
x2,
|
|
125326
125326
|
null
|
|
125327
125327
|
);
|
|
125328
125328
|
continue;
|
|
125329
125329
|
}
|
|
125330
|
-
let $2 =
|
|
125330
|
+
let $2 = f2;
|
|
125331
125331
|
if (a2 < s2 && t2[a2] < _2 && ($2 = _2 + Jo(t2, _2, a2) - p2 - a2), $2 !== h2)
|
|
125332
125332
|
i2[o2++] = new An$1(
|
|
125333
125333
|
p2 + a2,
|
|
125334
|
-
|
|
125334
|
+
u2,
|
|
125335
125335
|
$2,
|
|
125336
125336
|
h2,
|
|
125337
125337
|
x2,
|
|
@@ -125340,7 +125340,7 @@ function id(e2, t2) {
|
|
|
125340
125340
|
else {
|
|
125341
125341
|
const b2 = {
|
|
125342
125342
|
sourceOffsets: [p2 + a2],
|
|
125343
|
-
generatedOffsets: [
|
|
125343
|
+
generatedOffsets: [u2],
|
|
125344
125344
|
lengths: [$2],
|
|
125345
125345
|
data: l2(g2, v3),
|
|
125346
125346
|
generatedLengths: [h2]
|
|
@@ -125405,13 +125405,13 @@ function oo(e2, t2, n2, r3, s2, i2) {
|
|
|
125405
125405
|
], c2 = o2[
|
|
125406
125406
|
l2 + 4
|
|
125407
125407
|
/* value_end */
|
|
125408
|
-
],
|
|
125408
|
+
], f2 = bt$3(e2, s2, a2, c2, false);
|
|
125409
125409
|
if (n2 !== 0 && (d$7 += q$h[n2]), a2 !== 4294967295 && c2 > a2) {
|
|
125410
|
-
const
|
|
125411
|
-
r3 === 1 ? fe$6(t2,
|
|
125410
|
+
const u2 = d$7.length;
|
|
125411
|
+
r3 === 1 ? fe$6(t2, u2, u2 + f2.length, a2, c2) : B$i(
|
|
125412
125412
|
t2,
|
|
125413
|
-
|
|
125414
|
-
|
|
125413
|
+
u2,
|
|
125414
|
+
u2 + f2.length,
|
|
125415
125415
|
a2,
|
|
125416
125416
|
c2,
|
|
125417
125417
|
s2,
|
|
@@ -125419,7 +125419,7 @@ function oo(e2, t2, n2, r3, s2, i2) {
|
|
|
125419
125419
|
/* TEXT_CONTENT */
|
|
125420
125420
|
);
|
|
125421
125421
|
}
|
|
125422
|
-
return d$7 +=
|
|
125422
|
+
return d$7 += f2, 0;
|
|
125423
125423
|
}
|
|
125424
125424
|
return r3 === 1 ? sn$2(e2, t2, n2) : on$1(e2, t2, n2);
|
|
125425
125425
|
}
|
|
@@ -125457,19 +125457,19 @@ let fr$1 = class fr2 {
|
|
|
125457
125457
|
l2 !== void 0 && (Z$c = l2);
|
|
125458
125458
|
const a2 = this.footnotes;
|
|
125459
125459
|
if (a2 !== void 0 && (oe$5 = a2), !this.cache) {
|
|
125460
|
-
const c2 = this.scope,
|
|
125460
|
+
const c2 = this.scope, f2 = this.directives;
|
|
125461
125461
|
if (this.template !== void 0)
|
|
125462
125462
|
return this.html = this.render_wrapped(s2, t2, null, false, r3), this.blocks;
|
|
125463
|
-
const
|
|
125463
|
+
const u2 = this.imports, h2 = u2 !== void 0 && u2.length !== 0;
|
|
125464
125464
|
try {
|
|
125465
|
-
(c2 !== null && c2.size !== 0 ||
|
|
125465
|
+
(c2 !== null && c2.size !== 0 || f2 !== null && f2.size !== 0) && (wn$1 = _s(
|
|
125466
125466
|
s2,
|
|
125467
125467
|
c2,
|
|
125468
|
-
|
|
125468
|
+
f2,
|
|
125469
125469
|
0,
|
|
125470
125470
|
this.replace_typed,
|
|
125471
125471
|
this.shells
|
|
125472
|
-
)), h2 && vs(
|
|
125472
|
+
)), h2 && vs(u2), this.strict_directives && (qe$4 = true), this.wrap_static === true && (Ae$7 = true), ms$2(s2, t2, h2), r3 && Lo(t2, r3), gs$1(t2), this.html = ua$1(s2), oe$5 !== null && (this.html += il(s2));
|
|
125473
125473
|
} finally {
|
|
125474
125474
|
oe$5 = null, F$m = null, tt$4 = null, o2 !== void 0 && (Ee$5 = null), l2 !== void 0 && (Z$c = null), i2 !== void 0 && sr$1(), Mt$3 = true, Sn$1 = null, qe$4 && (qe$4 = false), Ae$7 && (Ae$7 = false), ue$5 !== null && bs$1(), h2 && ws(), r3 && tr$1();
|
|
125475
125475
|
}
|
|
@@ -125511,17 +125511,17 @@ let fr$1 = class fr2 {
|
|
|
125511
125511
|
a2 !== void 0 && (Ee$5 = a2);
|
|
125512
125512
|
const c2 = this.fences;
|
|
125513
125513
|
c2 !== void 0 && (Z$c = c2);
|
|
125514
|
-
const
|
|
125515
|
-
if (
|
|
125514
|
+
const f2 = this.footnotes;
|
|
125515
|
+
if (f2 !== void 0 && (oe$5 = f2), this.template !== void 0) {
|
|
125516
125516
|
this.html = this.render_wrapped(o2, t2, r3, s2, i2);
|
|
125517
125517
|
return;
|
|
125518
125518
|
}
|
|
125519
|
-
const
|
|
125519
|
+
const u2 = this.scope, h2 = this.directives, p2 = this.imports, _2 = p2 !== void 0 && p2.length !== 0;
|
|
125520
125520
|
let m2 = 0;
|
|
125521
125521
|
try {
|
|
125522
|
-
(
|
|
125522
|
+
(u2 !== null && u2.size !== 0 || h2 !== null && h2.size !== 0) && (wn$1 = _s(
|
|
125523
125523
|
o2,
|
|
125524
|
-
|
|
125524
|
+
u2,
|
|
125525
125525
|
h2,
|
|
125526
125526
|
s2 ? 1 : 2,
|
|
125527
125527
|
this.replace_typed,
|
|
@@ -125544,29 +125544,29 @@ let fr$1 = class fr2 {
|
|
|
125544
125544
|
* check, sink null for the fold walk
|
|
125545
125545
|
*/
|
|
125546
125546
|
render_wrapped(t2, n2, r3, s2, i2) {
|
|
125547
|
-
const o2 = this.scope, l2 = this.directives, a2 = this.imports, c2 = a2 !== void 0 && a2.length !== 0,
|
|
125548
|
-
let
|
|
125547
|
+
const o2 = this.scope, l2 = this.directives, a2 = this.imports, c2 = a2 !== void 0 && a2.length !== 0, f2 = r3 === null ? 0 : s2 ? 1 : 2;
|
|
125548
|
+
let u2;
|
|
125549
125549
|
try {
|
|
125550
125550
|
if ((o2 !== null && o2.size !== 0 || l2 !== null && l2.size !== 0) && (wn$1 = _s(
|
|
125551
125551
|
t2,
|
|
125552
125552
|
o2,
|
|
125553
125553
|
l2,
|
|
125554
|
-
|
|
125554
|
+
f2,
|
|
125555
125555
|
this.replace_typed,
|
|
125556
125556
|
this.shells
|
|
125557
|
-
)), c2 && vs(a2), this.strict_directives && (qe$4 = true), this.wrap_static === true && (Ae$7 = true), fd(this.template,
|
|
125557
|
+
)), c2 && vs(a2), this.strict_directives && (qe$4 = true), this.wrap_static === true && (Ae$7 = true), fd(this.template, f2), Ku(t2, n2), i2 && (r3 === null ? Lo(n2, i2) : cr$1(n2, i2)), gs$1(n2), r3 === null) {
|
|
125558
125558
|
ae$5 = Ve$3;
|
|
125559
125559
|
const h2 = Xo(t2, void 0, 0);
|
|
125560
|
-
|
|
125560
|
+
u2 = ae$5, ae$5 = "", h2 !== 0 && (u2 += q$h[h2]);
|
|
125561
125561
|
} else {
|
|
125562
125562
|
d$7 = Ve$3, i2 && (d$7 += wr$1());
|
|
125563
125563
|
const h2 = Xo(t2, r3, 0);
|
|
125564
|
-
|
|
125564
|
+
u2 = d$7, d$7 = "", h2 !== 0 && (u2 += q$h[h2]);
|
|
125565
125565
|
}
|
|
125566
125566
|
} finally {
|
|
125567
125567
|
oe$5 = null, F$m = null, tt$4 = null, Ee$5 = null, Z$c = null, ss$1 && sr$1(), Mt$3 = true, Sn$1 = null, qe$4 && (qe$4 = false), Ae$7 && (Ae$7 = false), ue$5 !== null && bs$1(), c2 && ws(), dd(), i2 && tr$1(), this.template = void 0;
|
|
125568
125568
|
}
|
|
125569
|
-
return
|
|
125569
|
+
return u2.length !== 0 && (Rs$1[0] = u2.charCodeAt(0)), u2;
|
|
125570
125570
|
}
|
|
125571
125571
|
/**
|
|
125572
125572
|
* render with source mapping. always full render (no caching).
|
|
@@ -125837,9 +125837,9 @@ function La$1(e2, t2, n2, r3) {
|
|
|
125837
125837
|
if (e2.prebuilt === void 0) return s2 + n2;
|
|
125838
125838
|
const i2 = e2.source, o2 = e2.value_end;
|
|
125839
125839
|
let l2 = s2;
|
|
125840
|
-
for (let
|
|
125841
|
-
`);
|
|
125842
|
-
`,
|
|
125840
|
+
for (let u2 = we$6.call(t2, `
|
|
125841
|
+
`); u2 !== -1 && u2 < n2; u2 = we$6.call(t2, `
|
|
125842
|
+
`, u2 + 1))
|
|
125843
125843
|
if (l2 = we$6.call(i2, `
|
|
125844
125844
|
`, l2) + 1, l2 === 0 || l2 > o2) return -1;
|
|
125845
125845
|
let a2 = we$6.call(t2, `
|
|
@@ -125848,8 +125848,8 @@ function La$1(e2, t2, n2, r3) {
|
|
|
125848
125848
|
let c2 = we$6.call(i2, `
|
|
125849
125849
|
`, l2);
|
|
125850
125850
|
(c2 === -1 || c2 > o2) && (c2 = o2);
|
|
125851
|
-
const
|
|
125852
|
-
return
|
|
125851
|
+
const f2 = c2 - (a2 - n2);
|
|
125852
|
+
return f2 < l2 || i2.slice(f2, f2 + r3) !== t2.slice(n2, n2 + r3) ? -1 : f2;
|
|
125853
125853
|
}
|
|
125854
125854
|
function Na$1(e2, t2, n2, r3, s2) {
|
|
125855
125855
|
const i2 = t2.index;
|
|
@@ -125868,10 +125868,10 @@ function Na$1(e2, t2, n2, r3, s2) {
|
|
|
125868
125868
|
}
|
|
125869
125869
|
const o2 = Tr$1(t2);
|
|
125870
125870
|
let l2 = n2, a2 = t2.value_start;
|
|
125871
|
-
for (let
|
|
125872
|
-
const
|
|
125871
|
+
for (let f2 = 0; f2 < s2.length; f2 += 3) {
|
|
125872
|
+
const u2 = s2[f2 + 2], h2 = La$1(t2, o2, s2[f2 + 1], u2);
|
|
125873
125873
|
if (h2 === -1 || h2 < a2) continue;
|
|
125874
|
-
const p2 = n2 + s2[
|
|
125874
|
+
const p2 = n2 + s2[f2];
|
|
125875
125875
|
p2 > l2 && B$i(
|
|
125876
125876
|
e2,
|
|
125877
125877
|
l2,
|
|
@@ -125884,13 +125884,13 @@ function Na$1(e2, t2, n2, r3, s2) {
|
|
|
125884
125884
|
), B$i(
|
|
125885
125885
|
e2,
|
|
125886
125886
|
p2,
|
|
125887
|
-
p2 +
|
|
125887
|
+
p2 + u2,
|
|
125888
125888
|
h2,
|
|
125889
|
-
h2 +
|
|
125889
|
+
h2 + u2,
|
|
125890
125890
|
i2,
|
|
125891
125891
|
9
|
|
125892
125892
|
/* SVELTE_CONTENT */
|
|
125893
|
-
), l2 = p2 +
|
|
125893
|
+
), l2 = p2 + u2, a2 = h2 + u2;
|
|
125894
125894
|
}
|
|
125895
125895
|
const c2 = n2 + r3.length;
|
|
125896
125896
|
c2 > l2 && B$i(
|
|
@@ -125912,10 +125912,10 @@ function Oa$1(e2, t2, n2, r3, s2) {
|
|
|
125912
125912
|
const i2 = Tr$1(t2);
|
|
125913
125913
|
let o2 = n2, l2 = t2.value_start;
|
|
125914
125914
|
for (let c2 = 0; c2 < s2.length; c2 += 3) {
|
|
125915
|
-
const
|
|
125916
|
-
if (
|
|
125915
|
+
const f2 = s2[c2 + 2], u2 = La$1(t2, i2, s2[c2 + 1], f2);
|
|
125916
|
+
if (u2 === -1 || u2 < l2) continue;
|
|
125917
125917
|
const h2 = n2 + s2[c2];
|
|
125918
|
-
h2 > o2 && fe$6(e2, o2, h2, l2,
|
|
125918
|
+
h2 > o2 && fe$6(e2, o2, h2, l2, u2), fe$6(e2, h2, h2 + f2, u2, u2 + f2), o2 = h2 + f2, l2 = u2 + f2;
|
|
125919
125919
|
}
|
|
125920
125920
|
const a2 = n2 + r3.length;
|
|
125921
125921
|
a2 > o2 && fe$6(e2, o2, a2, l2, t2.value_end);
|
|
@@ -126033,25 +126033,25 @@ function rl(e2, t2, n2, r3, s2, i2, o2) {
|
|
|
126033
126033
|
const l2 = !Ua$1(e2, t2), a2 = pn$2(n2, r3);
|
|
126034
126034
|
let c2 = "";
|
|
126035
126035
|
for (; i2 < s2; ) {
|
|
126036
|
-
const
|
|
126037
|
-
if (c2 += n2.slice(o2, i2), o2 = i2 + 1,
|
|
126036
|
+
const f2 = n2.charCodeAt(i2);
|
|
126037
|
+
if (c2 += n2.slice(o2, i2), o2 = i2 + 1, f2 === 38)
|
|
126038
126038
|
Zt$1 = ve$7("&", i2 + 1), Yl(n2, r3, s2, i2) ? o2 = i2 : c2 += "&";
|
|
126039
|
-
else if (
|
|
126039
|
+
else if (f2 === 60)
|
|
126040
126040
|
c2 += "<", ot$2 = ve$7("<", i2 + 1);
|
|
126041
|
-
else if (
|
|
126041
|
+
else if (f2 === 62)
|
|
126042
126042
|
c2 += ">", lt$3 = ve$7(">", i2 + 1);
|
|
126043
|
-
else if (
|
|
126044
|
-
|
|
126045
|
-
const
|
|
126046
|
-
|
|
126043
|
+
else if (f2 === 34 || f2 === 39) {
|
|
126044
|
+
f2 === 34 ? at$4 = ve$7('"', i2 + 1) : ct$2 = ve$7("'", i2 + 1);
|
|
126045
|
+
const u2 = l2 && cn$2 && !(a2 && i2 === r3) ? Ta(e2, t2, n2, r3, s2, i2) : 0;
|
|
126046
|
+
u2 === 0 ? f2 === 34 ? c2 += """ : o2 = i2 : u2 === 1 ? c2 += f2 === 34 ? Bs : Gs : f2 === 34 ? c2 += Ps$1 : c2 += u2 === 3 ? "’" : Hs$1;
|
|
126047
126047
|
} else {
|
|
126048
|
-
let
|
|
126049
|
-
for (;
|
|
126050
|
-
const h2 =
|
|
126051
|
-
h2 ? ut$2 = ve$7("--",
|
|
126052
|
-
const p2 =
|
|
126048
|
+
let u2 = i2 + 1;
|
|
126049
|
+
for (; u2 < s2 && n2.charCodeAt(u2) === f2; ) u2++;
|
|
126050
|
+
const h2 = f2 === 45;
|
|
126051
|
+
h2 ? ut$2 = ve$7("--", u2) : ft$3 = ve$7("...", u2);
|
|
126052
|
+
const p2 = u2 - i2;
|
|
126053
126053
|
l2 && (p2 === 3 || p2 === 2 && h2) && !(a2 && i2 === r3) && // the run goes on in the next text node, behind a backslash
|
|
126054
|
-
!(
|
|
126054
|
+
!(u2 === s2 && n2.charCodeAt(s2) === 92 && n2.charCodeAt(s2 + 1) === f2) && !(p2 === 2 && $d(e2, t2, n2, r3, s2, i2)) ? c2 += h2 ? p2 === 2 ? "–" : "—" : "…" : c2 += n2.slice(i2, u2), o2 = u2;
|
|
126055
126055
|
}
|
|
126056
126056
|
i2 = Zt$1, ot$2 < i2 && (i2 = ot$2), lt$3 < i2 && (i2 = lt$3), at$4 < i2 && (i2 = at$4), ct$2 < i2 && (i2 = ct$2), ut$2 < i2 && (i2 = ut$2), ft$3 < i2 && (i2 = ft$3);
|
|
126057
126057
|
}
|
|
@@ -126207,15 +126207,15 @@ function po(e2, t2, n2) {
|
|
|
126207
126207
|
s2 + 3
|
|
126208
126208
|
/* value_start */
|
|
126209
126209
|
];
|
|
126210
|
-
let
|
|
126210
|
+
let f2 = r3[
|
|
126211
126211
|
s2 + 4
|
|
126212
126212
|
/* value_end */
|
|
126213
126213
|
];
|
|
126214
|
-
const
|
|
126215
|
-
if (
|
|
126216
|
-
if (!n2) return Xt$1(
|
|
126217
|
-
const h2 =
|
|
126218
|
-
return (h2 === 34 || h2 === 39) && cn$2 && !(
|
|
126214
|
+
const u2 = e2.source;
|
|
126215
|
+
if (f2 !== 4294967295 && f2 > u2.length && (f2 = u2.length), c2 === 4294967295 || f2 === 4294967295 || f2 <= c2) return -1;
|
|
126216
|
+
if (!n2) return Xt$1(u2.charCodeAt(c2));
|
|
126217
|
+
const h2 = u2.charCodeAt(f2 - 1);
|
|
126218
|
+
return (h2 === 34 || h2 === 39) && cn$2 && !(f2 - 1 === c2 && pn$2(u2, c2)) && !Ua$1(e2, t2) ? Ta(e2, t2, u2, c2, f2, f2 - 1) === 1 ? 1 : 3 : Xt$1(h2);
|
|
126219
126219
|
}
|
|
126220
126220
|
if (i2 === 18 || i2 === 17 || i2 === 6)
|
|
126221
126221
|
return 0;
|
|
@@ -126348,30 +126348,30 @@ function Ba$1(e2, t2, n2, r3, s2, i2) {
|
|
|
126348
126348
|
/* first_child */
|
|
126349
126349
|
];
|
|
126350
126350
|
let a2 = 4294967295;
|
|
126351
|
-
for (let
|
|
126352
|
-
|
|
126351
|
+
for (let f2 = l2; f2 !== 4294967295 && o2[
|
|
126352
|
+
f2 * 12 + 5
|
|
126353
126353
|
/* parent */
|
|
126354
|
-
] === s2;
|
|
126355
|
-
|
|
126354
|
+
] === s2; f2 = o2[
|
|
126355
|
+
f2 * 12 + 6
|
|
126356
126356
|
/* next */
|
|
126357
126357
|
])
|
|
126358
126358
|
(o2[
|
|
126359
|
-
|
|
126359
|
+
f2 * 12
|
|
126360
126360
|
/* stride */
|
|
126361
|
-
] & 255) !== 6 && (a2 =
|
|
126361
|
+
] & 255) !== 6 && (a2 = f2);
|
|
126362
126362
|
let c2 = false;
|
|
126363
|
-
for (let
|
|
126364
|
-
|
|
126363
|
+
for (let f2 = l2; f2 !== 4294967295 && o2[
|
|
126364
|
+
f2 * 12 + 5
|
|
126365
126365
|
/* parent */
|
|
126366
|
-
] === s2;
|
|
126367
|
-
|
|
126366
|
+
] === s2; f2 = o2[
|
|
126367
|
+
f2 * 12 + 6
|
|
126368
126368
|
/* next */
|
|
126369
126369
|
]) {
|
|
126370
|
-
const
|
|
126371
|
-
|
|
126370
|
+
const u2 = o2[
|
|
126371
|
+
f2 * 12
|
|
126372
126372
|
/* stride */
|
|
126373
126373
|
] & 255;
|
|
126374
|
-
|
|
126374
|
+
u2 !== 6 && (e2.move_to(f2), f2 === a2 && u2 === 7 && !(Fe$6 && Vt$2(e2) !== null) ? (n2 = Ld(e2, t2, n2, r3, i2), c2 = true) : n2 = oo(e2, t2, n2, r3, f2, u2));
|
|
126375
126375
|
}
|
|
126376
126376
|
return c2 ? n2 : dr$1(n2, i2, r3);
|
|
126377
126377
|
}
|
|
@@ -126383,15 +126383,15 @@ function mo(e2, t2, n2, r3) {
|
|
|
126383
126383
|
<ol>
|
|
126384
126384
|
`, a2 = 1;
|
|
126385
126385
|
for (let c2 = 0; c2 < i2.length; c2++) {
|
|
126386
|
-
const
|
|
126387
|
-
if (
|
|
126388
|
-
let
|
|
126389
|
-
l2 = "", c2 + 1 !== a2 && (
|
|
126386
|
+
const f2 = i2[c2];
|
|
126387
|
+
if (f2 === 4294967295) continue;
|
|
126388
|
+
let u2 = l2 + '<li id="' + je$5(un$2(s2, Mn$2(s2.labels[c2]))) + '"';
|
|
126389
|
+
l2 = "", c2 + 1 !== a2 && (u2 += ' value="' + (c2 + 1) + '"'), a2 = c2 + 2, n2 = dr$1(n2, u2 + ">", r3), n2 = Ba$1(
|
|
126390
126390
|
e2,
|
|
126391
126391
|
t2,
|
|
126392
126392
|
n2,
|
|
126393
126393
|
r3,
|
|
126394
|
-
|
|
126394
|
+
f2,
|
|
126395
126395
|
Dd(s2, c2 + 1, s2.counts[c2])
|
|
126396
126396
|
), n2 = dr$1(n2, `</li>
|
|
126397
126397
|
`, r3);
|
|
@@ -126409,20 +126409,20 @@ let ys = false;
|
|
|
126409
126409
|
function Od(e2, t2, n2, r3, s2, i2) {
|
|
126410
126410
|
const o2 = Ra$1(e2), l2 = o2.references.get(e2.index);
|
|
126411
126411
|
if (l2 === void 0) return n2;
|
|
126412
|
-
const a2 = Math.floor(l2 / 65536), c2 = o2.labels[a2 - 1],
|
|
126412
|
+
const a2 = Math.floor(l2 / 65536), c2 = o2.labels[a2 - 1], f2 = e2.index;
|
|
126413
126413
|
n2 = I$k(
|
|
126414
126414
|
n2,
|
|
126415
126415
|
s2 + xe$8("label", c2) + " number={" + a2 + "}" + xe$8("href", "#" + za$1(un$2(o2, Mn$2(c2)))) + xe$8("id", un$2(o2, In$2(a2, l2 % 65536))) + M$l(e2, Nd) + ">"
|
|
126416
126416
|
);
|
|
126417
|
-
const
|
|
126418
|
-
if (
|
|
126417
|
+
const u2 = o2.definitions[a2 - 1];
|
|
126418
|
+
if (u2 !== 4294967295 && !ys) {
|
|
126419
126419
|
ys = true;
|
|
126420
126420
|
try {
|
|
126421
|
-
n2 = I$k(n2, "{#snippet note()}"), n2 = Ba$1(e2, t2, n2, K$f,
|
|
126421
|
+
n2 = I$k(n2, "{#snippet note()}"), n2 = Ba$1(e2, t2, n2, K$f, u2, ""), n2 = I$k(n2, "{/snippet}");
|
|
126422
126422
|
} finally {
|
|
126423
126423
|
ys = false;
|
|
126424
126424
|
}
|
|
126425
|
-
e2.move_to(
|
|
126425
|
+
e2.move_to(f2);
|
|
126426
126426
|
}
|
|
126427
126427
|
return n2 = I$k(n2, go(e2) + i2), Wt$3(
|
|
126428
126428
|
e2,
|
|
@@ -126450,32 +126450,32 @@ function _o(e2, t2, n2, r3, s2) {
|
|
|
126450
126450
|
const i2 = r3 === 0, o2 = r3 === 1 ? 3 : 6;
|
|
126451
126451
|
let l2 = i2 ? ae$5 : d$7;
|
|
126452
126452
|
n2 !== 0 && (l2 += q$h[n2]);
|
|
126453
|
-
let a2 = "", c2 = 0,
|
|
126454
|
-
const
|
|
126455
|
-
let h2 =
|
|
126453
|
+
let a2 = "", c2 = 0, f2 = 0;
|
|
126454
|
+
const u2 = e2.words;
|
|
126455
|
+
let h2 = u2[
|
|
126456
126456
|
8
|
|
126457
126457
|
/* first_child */
|
|
126458
126458
|
];
|
|
126459
126459
|
for (; h2 !== 4294967295; ) {
|
|
126460
126460
|
const _2 = h2 * 12;
|
|
126461
|
-
if (
|
|
126461
|
+
if (u2[
|
|
126462
126462
|
_2 + 5
|
|
126463
126463
|
/* parent */
|
|
126464
126464
|
] !== 0) break;
|
|
126465
|
-
const m2 =
|
|
126465
|
+
const m2 = u2[_2] & 255;
|
|
126466
126466
|
if (m2 !== 6 && (e2.move_to(h2), !s2 || !ya$1(e2, m2))) {
|
|
126467
126467
|
const g2 = t2 === void 0 ? 0 : t2.n;
|
|
126468
126468
|
i2 ? ae$5 = "" : d$7 = "", n2 = oo(e2, t2, 0, r3, h2, m2);
|
|
126469
126469
|
let v3 = i2 ? ae$5 : d$7;
|
|
126470
|
-
n2 !== 0 && (v3 += q$h[n2]), v3.length === 0 && c2 === 0 ? xs(t2, g2, o2, l2.length) : v3.length === 0 || Id(v3) ? (c2 === 0 && (
|
|
126470
|
+
n2 !== 0 && (v3 += q$h[n2]), v3.length === 0 && c2 === 0 ? xs(t2, g2, o2, l2.length) : v3.length === 0 || Id(v3) ? (c2 === 0 && (f2 = g2), xs(t2, g2, o2, a2.length), v3.length !== 0 && (a2 += v3, c2++)) : (l2 = ll(l2, a2, c2, t2, f2, g2, o2), a2 = "", c2 = 0, xs(t2, g2, o2, l2.length), l2 += v3);
|
|
126471
126471
|
}
|
|
126472
|
-
h2 =
|
|
126472
|
+
h2 = u2[
|
|
126473
126473
|
_2 + 6
|
|
126474
126474
|
/* next */
|
|
126475
126475
|
];
|
|
126476
126476
|
}
|
|
126477
126477
|
const p2 = t2 === void 0 ? 0 : t2.n;
|
|
126478
|
-
return l2 = ll(l2, a2, c2, t2,
|
|
126478
|
+
return l2 = ll(l2, a2, c2, t2, f2, p2, o2), i2 ? ae$5 = l2 : d$7 = l2, e2.move_to(0), 0;
|
|
126479
126479
|
}
|
|
126480
126480
|
function ll(e2, t2, n2, r3, s2, i2, o2) {
|
|
126481
126481
|
return n2 === 0 ? e2 : n2 === 1 ? (Js$1(r3, s2, i2, o2, e2.length), e2 + t2) : (Js$1(r3, s2, i2, o2, e2.length + ol.length), e2 + ol + t2 + Td);
|
|
@@ -126637,8 +126637,8 @@ function Ma$1(e2, t2, n2, r3, s2 = null) {
|
|
|
126637
126637
|
}
|
|
126638
126638
|
if (a2 !== null)
|
|
126639
126639
|
throw new Vd(c2, a2);
|
|
126640
|
-
const
|
|
126641
|
-
return
|
|
126640
|
+
const u2 = i2 || o2.problems.length === 0 ? o2 : Rn$3(e2, true);
|
|
126641
|
+
return u2.warnings = l2, s2 !== null && (u2.moved = s2), n2 !== void 0 && (n2.label !== void 0 && (u2.label = n2.label), n2.back_label !== void 0 && (u2.back_label = n2.back_label)), u2;
|
|
126642
126642
|
}
|
|
126643
126643
|
const ul = "[mdsvex] smart_punctuation must be true, false or an object with quotes, dashes and ellipses";
|
|
126644
126644
|
function ks$1(e2) {
|
|
@@ -126741,11 +126741,11 @@ function Wa$1(e2) {
|
|
|
126741
126741
|
function Sr$1(e2, t2, n2) {
|
|
126742
126742
|
let r3 = null, s2 = null, i2 = null, o2 = Xd, l2 = e2.first_child_at(0);
|
|
126743
126743
|
for (; l2 !== Gt$2; ) {
|
|
126744
|
-
let
|
|
126744
|
+
let f2 = Gt$2;
|
|
126745
126745
|
if (e2.kind_at(l2) === Kl) {
|
|
126746
|
-
const
|
|
126747
|
-
if (typeof
|
|
126748
|
-
let h2 = Jd(
|
|
126746
|
+
const u2 = e2.metadata_at(l2)?.src;
|
|
126747
|
+
if (typeof u2 == "string" && u2 !== "" && (r3 === null && (r3 = /* @__PURE__ */ new Map()), !r3.has(u2))) {
|
|
126748
|
+
let h2 = Jd(u2);
|
|
126749
126749
|
const p2 = n2 && h2 !== null ? Kd(h2) : null;
|
|
126750
126750
|
p2 !== null && (h2 = p2);
|
|
126751
126751
|
let _2 = null;
|
|
@@ -126758,21 +126758,21 @@ function Sr$1(e2, t2, n2) {
|
|
|
126758
126758
|
_2 = m2;
|
|
126759
126759
|
else {
|
|
126760
126760
|
const g2 = o2 + i2.length, v3 = p2 === null ? { type: "expression", value: g2 } : { type: "picture", value: g2 };
|
|
126761
|
-
s2.set(h2, v3), _2 = v3, i2.push({ type: "image", url:
|
|
126761
|
+
s2.set(h2, v3), _2 = v3, i2.push({ type: "image", url: u2, specifier: h2, name: g2 });
|
|
126762
126762
|
}
|
|
126763
126763
|
}
|
|
126764
|
-
r3.set(
|
|
126764
|
+
r3.set(u2, _2);
|
|
126765
126765
|
}
|
|
126766
126766
|
} else
|
|
126767
|
-
|
|
126768
|
-
if (
|
|
126769
|
-
l2 =
|
|
126767
|
+
f2 = e2.first_child_at(l2);
|
|
126768
|
+
if (f2 !== Gt$2) {
|
|
126769
|
+
l2 = f2;
|
|
126770
126770
|
continue;
|
|
126771
126771
|
}
|
|
126772
126772
|
for (; ; ) {
|
|
126773
|
-
const
|
|
126774
|
-
if (
|
|
126775
|
-
l2 =
|
|
126773
|
+
const u2 = e2.next_at(l2), h2 = e2.parent_at(l2);
|
|
126774
|
+
if (u2 !== Gt$2 && e2.parent_at(u2) === h2) {
|
|
126775
|
+
l2 = u2;
|
|
126776
126776
|
break;
|
|
126777
126777
|
}
|
|
126778
126778
|
if (h2 === 0 || h2 === Gt$2) {
|
|
@@ -126785,13 +126785,13 @@ function Sr$1(e2, t2, n2) {
|
|
|
126785
126785
|
if (i2 === null)
|
|
126786
126786
|
return null;
|
|
126787
126787
|
const a2 = [];
|
|
126788
|
-
for (let
|
|
126789
|
-
a2.push("import " + i2[
|
|
126788
|
+
for (let f2 = 0; f2 < i2.length; f2++)
|
|
126789
|
+
a2.push("import " + i2[f2].name + " from " + Zs$1(i2[f2].specifier) + ";");
|
|
126790
126790
|
const c2 = r3;
|
|
126791
126791
|
return {
|
|
126792
126792
|
needs: i2,
|
|
126793
126793
|
lines: a2,
|
|
126794
|
-
lookup: (
|
|
126794
|
+
lookup: (f2, u2) => u2 ? c2.get(f2) : void 0
|
|
126795
126795
|
};
|
|
126796
126796
|
}
|
|
126797
126797
|
const Ht$2 = 4294967295, Qd = /^[a-zA-Z][a-zA-Z0-9+.-]*:/, eh = /^[A-Za-z_$][\w$]*$/, th = /^\+page(?:@.*)?$/, Za$1 = [".md", ".svx"];
|
|
@@ -126896,22 +126896,22 @@ function sh(e2, t2, n2) {
|
|
|
126896
126896
|
for (let h2 = 0; h2 < c2.length; h2++)
|
|
126897
126897
|
if (a2[h2] !== c2[h2])
|
|
126898
126898
|
return null;
|
|
126899
|
-
let
|
|
126900
|
-
const
|
|
126901
|
-
for (let h2 = c2.length; h2 <=
|
|
126899
|
+
let f2 = "";
|
|
126900
|
+
const u2 = a2.length - 1;
|
|
126901
|
+
for (let h2 = c2.length; h2 <= u2; h2++) {
|
|
126902
126902
|
const p2 = a2[h2];
|
|
126903
126903
|
if (p2.indexOf("[") !== -1)
|
|
126904
126904
|
return null;
|
|
126905
|
-
if (h2 ===
|
|
126905
|
+
if (h2 === u2 && (p2 === "index" || th.test(p2)))
|
|
126906
126906
|
break;
|
|
126907
|
-
p2.charCodeAt(0) === 40 && p2.charCodeAt(p2.length - 1) === 41 || (
|
|
126907
|
+
p2.charCodeAt(0) === 40 && p2.charCodeAt(p2.length - 1) === 41 || (f2 += "/" + p2);
|
|
126908
126908
|
}
|
|
126909
|
-
return (
|
|
126909
|
+
return (f2 === "" ? "/" : f2) + e2.slice(s2);
|
|
126910
126910
|
}
|
|
126911
126911
|
const ih = "__mdsvex_base";
|
|
126912
126912
|
function Xa$1(e2, t2, n2, r3, s2) {
|
|
126913
|
-
let i2 = null, o2 = null, l2 = null, a2 = null, c2 = e2.routes === null || r3 === void 0 ? false : null,
|
|
126914
|
-
const
|
|
126913
|
+
let i2 = null, o2 = null, l2 = null, a2 = null, c2 = e2.routes === null || r3 === void 0 ? false : null, f2 = null;
|
|
126914
|
+
const u2 = e2.rewrite, h2 = e2.base, p2 = e2.resolver;
|
|
126915
126915
|
let _2 = t2.first_child_at(0);
|
|
126916
126916
|
for (; _2 !== Ht$2; ) {
|
|
126917
126917
|
const v3 = t2.kind_at(_2), x2 = v3 === Kl, $2 = x2 ? Ht$2 : t2.first_child_at(_2);
|
|
@@ -126921,8 +126921,8 @@ function Xa$1(e2, t2, n2, r3, s2) {
|
|
|
126921
126921
|
y2.indexOf("{") === -1 && (!x2 || s2 === null || s2(y2, true) == null)) {
|
|
126922
126922
|
C3.add(y2);
|
|
126923
126923
|
let k2 = y2;
|
|
126924
|
-
if (!x2 && c2 !== false && (c2 === null && (c2 = bo(r3, []) ?? false, c2 !== false && c2.pop()), c2 !== false && (k2 = sh(y2, e2, c2) ?? y2)),
|
|
126925
|
-
const O2 =
|
|
126924
|
+
if (!x2 && c2 !== false && (c2 === null && (c2 = bo(r3, []) ?? false, c2 !== false && c2.pop()), c2 !== false && (k2 = sh(y2, e2, c2) ?? y2)), u2 !== void 0) {
|
|
126925
|
+
const O2 = u2(k2, {
|
|
126926
126926
|
filename: r3,
|
|
126927
126927
|
type: x2 ? "image" : "link",
|
|
126928
126928
|
written: y2
|
|
@@ -126939,12 +126939,12 @@ function Xa$1(e2, t2, n2, r3, s2) {
|
|
|
126939
126939
|
else {
|
|
126940
126940
|
const O2 = Ja$1(k2);
|
|
126941
126941
|
if (O2 !== null) {
|
|
126942
|
-
if (
|
|
126943
|
-
for (
|
|
126944
|
-
|
|
126942
|
+
if (f2 === null)
|
|
126943
|
+
for (f2 = ih; n2.indexOf(f2) !== -1; )
|
|
126944
|
+
f2 += "_";
|
|
126945
126945
|
w2 = {
|
|
126946
126946
|
type: "expression",
|
|
126947
|
-
value:
|
|
126947
|
+
value: f2 + "(" + Zs$1(O2) + ")"
|
|
126948
126948
|
};
|
|
126949
126949
|
}
|
|
126950
126950
|
}
|
|
@@ -126972,8 +126972,8 @@ function Xa$1(e2, t2, n2, r3, s2) {
|
|
|
126972
126972
|
return null;
|
|
126973
126973
|
const m2 = i2, g2 = o2;
|
|
126974
126974
|
return {
|
|
126975
|
-
lines:
|
|
126976
|
-
(p2.import === "default" ? "import " +
|
|
126975
|
+
lines: f2 === null ? void 0 : [
|
|
126976
|
+
(p2.import === "default" ? "import " + f2 : "import { " + p2.import + " as " + f2 + " }") + " from " + Zs$1(p2.from) + ";"
|
|
126977
126977
|
],
|
|
126978
126978
|
lookup: (v3, x2) => x2 ? g2 === null ? void 0 : g2.get(v3) : m2 === null ? void 0 : m2.get(v3)
|
|
126979
126979
|
};
|
|
@@ -127067,11 +127067,11 @@ function nc(e2, t2, n2, r3) {
|
|
|
127067
127067
|
throw $t$1("run_eval", `A block is live with [!eval] or runs with ${Dt$3}, not both, its {...} groups mean different things in each`, t2, n2, r3);
|
|
127068
127068
|
}
|
|
127069
127069
|
function rc(e2, t2, n2, r3, s2) {
|
|
127070
|
-
let i2 = null, o2 = null, l2 = null, a2 = null, c2 = null,
|
|
127071
|
-
for (;
|
|
127070
|
+
let i2 = null, o2 = null, l2 = null, a2 = null, c2 = null, f2 = false, u2 = e2.first_child_at(0);
|
|
127071
|
+
for (; u2 !== wt$3; ) {
|
|
127072
127072
|
let h2 = wt$3;
|
|
127073
|
-
if (e2.kind_at(
|
|
127074
|
-
const p2 = e2.metadata_at(
|
|
127073
|
+
if (e2.kind_at(u2) === Fu) {
|
|
127074
|
+
const p2 = e2.metadata_at(u2);
|
|
127075
127075
|
let _2 = p2?.info;
|
|
127076
127076
|
if (!_2 && p2 != null) {
|
|
127077
127077
|
const m2 = p2.info_start, g2 = p2.info_end;
|
|
@@ -127080,7 +127080,7 @@ function rc(e2, t2, n2, r3, s2) {
|
|
|
127080
127080
|
if (_2) {
|
|
127081
127081
|
const m2 = ec(_2);
|
|
127082
127082
|
let g2 = m2 === -1 ? _2 : _2.slice(0, m2);
|
|
127083
|
-
g2 === "math" && (
|
|
127083
|
+
g2 === "math" && (f2 = true);
|
|
127084
127084
|
const v3 = _2.indexOf("src=");
|
|
127085
127085
|
if ((r3 || v3 === -1) && (v3 !== -1 || _2.indexOf(Dt$3) !== -1)) {
|
|
127086
127086
|
let x2 = m2 === -1 ? "" : _2.slice(m2);
|
|
@@ -127092,14 +127092,14 @@ function rc(e2, t2, n2, r3, s2) {
|
|
|
127092
127092
|
b2 === -1 && w2.startsWith("src=") ? b2 = k2 : y2 === -1 && (C3 = A$o(w2)) !== 0 && (y2 = k2);
|
|
127093
127093
|
}
|
|
127094
127094
|
if (b2 !== -1 || y2 !== -1) {
|
|
127095
|
-
const k2 = e2.start_at(
|
|
127095
|
+
const k2 = e2.start_at(u2);
|
|
127096
127096
|
let w2 = "", O2 = "", R2 = 0, W2 = 0, D2 = "";
|
|
127097
|
-
const z2 = e2.value_start_at(
|
|
127097
|
+
const z2 = e2.value_start_at(u2), V3 = e2.value_end_at(u2);
|
|
127098
127098
|
if (b2 !== -1) {
|
|
127099
|
-
if (O2 = ah($2[b2].slice(4)), { spec: w2, from: R2, to: W2 } = ch(O2, n2, t2, k2), V3 > z2 && dl.test(t2.slice(z2, V3)) || e2.first_child_at(
|
|
127099
|
+
if (O2 = ah($2[b2].slice(4)), { spec: w2, from: R2, to: W2 } = ch(O2, n2, t2, k2), V3 > z2 && dl.test(t2.slice(z2, V3)) || e2.first_child_at(u2) !== wt$3 && dl.test(Di$2(e2, u2, t2)))
|
|
127100
127100
|
throw Yt$2("src_body", `A fence with src= shows ${w2}, so it can have no code of its own`, w2, n2, t2, k2);
|
|
127101
127101
|
} else
|
|
127102
|
-
D2 = Di$2(e2,
|
|
127102
|
+
D2 = Di$2(e2, u2, t2);
|
|
127103
127103
|
let H2 = null;
|
|
127104
127104
|
if (y2 === -1 || !s2)
|
|
127105
127105
|
C3 = 0;
|
|
@@ -127108,7 +127108,7 @@ function rc(e2, t2, n2, r3, s2) {
|
|
|
127108
127108
|
b2 === -1 && (nc(D2, n2, t2, k2), H2 = Zt$2(g2, ne2, D2, Bn$1(t2, k2).line + 1), (c2 ?? (c2 = /* @__PURE__ */ new Set())).has(H2.hash) || (c2.add(H2.hash), (a2 ?? (a2 = [])).push(H2)));
|
|
127109
127109
|
}
|
|
127110
127110
|
y2 > b2 ? ($2.splice(y2, 1), b2 !== -1 && $2.splice(b2, 1)) : ($2.splice(b2, 1), y2 !== -1 && $2.splice(y2, 1)), (i2 ?? (i2 = [])).push({
|
|
127111
|
-
node:
|
|
127111
|
+
node: u2,
|
|
127112
127112
|
start: k2,
|
|
127113
127113
|
spec: w2,
|
|
127114
127114
|
written: O2,
|
|
@@ -127128,25 +127128,25 @@ function rc(e2, t2, n2, r3, s2) {
|
|
|
127128
127128
|
}
|
|
127129
127129
|
}
|
|
127130
127130
|
} else
|
|
127131
|
-
h2 = e2.first_child_at(
|
|
127131
|
+
h2 = e2.first_child_at(u2);
|
|
127132
127132
|
if (h2 !== wt$3) {
|
|
127133
|
-
|
|
127133
|
+
u2 = h2;
|
|
127134
127134
|
continue;
|
|
127135
127135
|
}
|
|
127136
127136
|
for (; ; ) {
|
|
127137
|
-
const p2 = e2.next_at(
|
|
127137
|
+
const p2 = e2.next_at(u2), _2 = e2.parent_at(u2);
|
|
127138
127138
|
if (p2 !== wt$3 && e2.parent_at(p2) === _2) {
|
|
127139
|
-
|
|
127139
|
+
u2 = p2;
|
|
127140
127140
|
break;
|
|
127141
127141
|
}
|
|
127142
127142
|
if (_2 === 0 || _2 === wt$3) {
|
|
127143
|
-
|
|
127143
|
+
u2 = wt$3;
|
|
127144
127144
|
break;
|
|
127145
127145
|
}
|
|
127146
|
-
|
|
127146
|
+
u2 = _2;
|
|
127147
127147
|
}
|
|
127148
127148
|
}
|
|
127149
|
-
return i2 === null ? null : { needs: o2 ?? [], fences: i2, math:
|
|
127149
|
+
return i2 === null ? null : { needs: o2 ?? [], fences: i2, math: f2, snippets: a2 };
|
|
127150
127150
|
}
|
|
127151
127151
|
const sc = Object.prototype.hasOwnProperty;
|
|
127152
127152
|
function fh(e2, t2) {
|
|
@@ -127163,43 +127163,43 @@ function fh(e2, t2) {
|
|
|
127163
127163
|
function ic(e2, t2, n2, r3, s2) {
|
|
127164
127164
|
const i2 = /* @__PURE__ */ new Map(), o2 = e2.fences;
|
|
127165
127165
|
let l2 = null, a2, c2 = -1;
|
|
127166
|
-
for (let
|
|
127167
|
-
const
|
|
127168
|
-
let p2 =
|
|
127166
|
+
for (let f2 = 0; f2 < o2.length; f2++) {
|
|
127167
|
+
const u2 = o2[f2], h2 = u2.spec;
|
|
127168
|
+
let p2 = u2.text, _2 = u2.lang, m2;
|
|
127169
127169
|
if (h2 !== "") {
|
|
127170
127170
|
if (t2 === void 0 || !sc.call(t2, h2))
|
|
127171
|
-
throw Yt$2("src_missing", `No text was given for ${h2}, pass it in the sources option`, h2, r3, n2,
|
|
127171
|
+
throw Yt$2("src_missing", `No text was given for ${h2}, pass it in the sources option`, h2, r3, n2, u2.start);
|
|
127172
127172
|
if (p2 = t2[h2], typeof p2 != "string")
|
|
127173
127173
|
throw new TypeError(`[mdsvex] sources[${JSON.stringify(h2)}] must be the text of the file`);
|
|
127174
|
-
if (
|
|
127174
|
+
if (u2.from === 0)
|
|
127175
127175
|
p2.charCodeAt(0) === 65279 && (p2 = p2.slice(1)), p2.indexOf("\r") !== -1 && (p2 = p2.replace(/\r\n?/g, `
|
|
127176
127176
|
`)), p2.charCodeAt(p2.length - 1) === 10 && (p2 = p2.slice(0, -1));
|
|
127177
127177
|
else {
|
|
127178
127178
|
let g2 = (l2 ?? (l2 = /* @__PURE__ */ new Map())).get(h2);
|
|
127179
127179
|
g2 === void 0 && (g2 = (p2.charCodeAt(0) === 65279 ? p2.slice(1) : p2).split(/\r\n?|\n/), g2[g2.length - 1] === "" && g2.pop(), l2.set(h2, g2));
|
|
127180
|
-
const v3 =
|
|
127181
|
-
if (
|
|
127182
|
-
throw Yt$2("src_slice", `${
|
|
127183
|
-
p2 = g2.slice(
|
|
127180
|
+
const v3 = u2.to === 0 ? g2.length : u2.to;
|
|
127181
|
+
if (u2.from > g2.length || v3 > g2.length)
|
|
127182
|
+
throw Yt$2("src_slice", `${u2.written} asks for ${u2.from === v3 ? "line " + v3 : "lines " + u2.from + " to " + v3}, ${h2} has ${g2.length}`, h2, r3, n2, u2.start);
|
|
127183
|
+
p2 = g2.slice(u2.from - 1, v3).join(`
|
|
127184
127184
|
`);
|
|
127185
127185
|
}
|
|
127186
|
-
_2 === "" && (_2 = tc(h2)), m2 = " src={" + JSON.stringify(
|
|
127186
|
+
_2 === "" && (_2 = tc(h2)), m2 = " src={" + JSON.stringify(u2.written) + "}";
|
|
127187
127187
|
}
|
|
127188
|
-
if (
|
|
127189
|
-
c2 === -1 && (c2 =
|
|
127188
|
+
if (u2.run !== 0 && s2 !== false) {
|
|
127189
|
+
c2 === -1 && (c2 = u2.start);
|
|
127190
127190
|
let g2 = h2, v3;
|
|
127191
|
-
const x2 =
|
|
127192
|
-
if (x2 === null ? (nc(p2, r3, n2,
|
|
127193
|
-
` + h2))) : (g2 = dh(x2, s2, r3, n2,
|
|
127191
|
+
const x2 = u2.snippet;
|
|
127192
|
+
if (x2 === null ? (nc(p2, r3, n2, u2.start), v3 = Vt$3(et$5(`src
|
|
127193
|
+
` + h2))) : (g2 = dh(x2, s2, r3, n2, u2.start), v3 = Vt$3(x2.hash)), u2.run === 2)
|
|
127194
127194
|
m2 = (m2 ?? "") + " load={() => import(" + JSON.stringify(g2) + ")}";
|
|
127195
127195
|
else {
|
|
127196
127196
|
const $2 = "import * as " + v3 + " from " + JSON.stringify(g2) + ";";
|
|
127197
127197
|
a2 === void 0 ? a2 = [$2] : a2.includes($2) || a2.push($2), m2 = (m2 ?? "") + " module={" + v3 + "}";
|
|
127198
127198
|
}
|
|
127199
127199
|
}
|
|
127200
|
-
i2.set(
|
|
127200
|
+
i2.set(u2.node, {
|
|
127201
127201
|
text: p2,
|
|
127202
|
-
info:
|
|
127202
|
+
info: u2.rest === "" ? _2 : _2 + " " + u2.rest,
|
|
127203
127203
|
props: m2
|
|
127204
127204
|
});
|
|
127205
127205
|
}
|
|
@@ -127267,11 +127267,11 @@ const as$1 = Kn$1();
|
|
|
127267
127267
|
function Qn$1(e2) {
|
|
127268
127268
|
const t2 = e2.component_mode;
|
|
127269
127269
|
Pa$2(void 0, t2);
|
|
127270
|
-
const n2 = e2.strict_directives, r3 = e2.plugins, s2 = e2.parse_plugins, i2 = e2.components, o2 = e2.directives, l2 = e2.frontmatter?.parse, a2 =
|
|
127271
|
-
if (r3 === void 0 && s2 === void 0 && i2 === void 0 && o2 === void 0 && t2 === void 0 && l2 === void 0 && a2 === void 0 && n2 === void 0 && c2 === void 0 &&
|
|
127270
|
+
const n2 = e2.strict_directives, r3 = e2.plugins, s2 = e2.parse_plugins, i2 = e2.components, o2 = e2.directives, l2 = e2.frontmatter?.parse, a2 = Nh(e2) ? e2 : void 0, c2 = e2.highlight, f2 = e2.filename, u2 = e2.unwrap_images, h2 = e2.heading_ids, p2 = e2.smart_punctuation, _2 = e2.math, m2 = e2.footnotes, g2 = e2.import_images, v3 = e2.wrap_static, x2 = e2.rewrite, $2 = e2.links, b2 = e2.sources, y2 = e2.snippets, C3 = e2.read, k2 = e2.resolve;
|
|
127271
|
+
if (r3 === void 0 && s2 === void 0 && i2 === void 0 && o2 === void 0 && t2 === void 0 && l2 === void 0 && a2 === void 0 && n2 === void 0 && c2 === void 0 && f2 === void 0 && u2 === void 0 && h2 === void 0 && p2 === void 0 && _2 === void 0 && m2 === void 0 && g2 === void 0 && v3 === void 0 && x2 === void 0 && $2 === void 0 && b2 === void 0 && y2 === void 0 && C3 === void 0 && k2 === void 0)
|
|
127272
127272
|
return as$1;
|
|
127273
127273
|
const w2 = Kn$1();
|
|
127274
|
-
return w2.plugins = r3, w2.parse_plugins = s2, w2.components = i2, w2.directives = o2, w2.component_mode = t2, w2.frontmatter_parse = l2, w2.templates = a2, w2.strict_directives = n2 === void 0 ? true : n2, w2.highlight = c2, w2.filename =
|
|
127274
|
+
return w2.plugins = r3, w2.parse_plugins = s2, w2.components = i2, w2.directives = o2, w2.component_mode = t2, w2.frontmatter_parse = l2, w2.templates = a2, w2.strict_directives = n2 === void 0 ? true : n2, w2.highlight = c2, w2.filename = f2, w2.unwrap_images = u2, h2 !== void 0 && (w2.heading_ids = Ga$1(h2)), p2 !== void 0 && (w2.smart_punctuation = Fa$1(p2)), w2.math = _2, m2 !== void 0 && (w2.footnotes = lc(m2)), w2.wrap_static = v3, g2 !== void 0 && (w2.import_images = Wa$1(g2), w2.enhanced_images = oc(g2)), (x2 !== void 0 || $2 !== void 0) && (w2.links = rh(x2, $2)), w2.sources = b2, w2.read = C3, w2.resolve = k2, w2.snippets = y2, w2;
|
|
127275
127275
|
}
|
|
127276
127276
|
function oc(e2) {
|
|
127277
127277
|
return typeof e2 == "object" && e2.enhanced === true;
|
|
@@ -127310,6 +127310,14 @@ class Es {
|
|
|
127310
127310
|
}
|
|
127311
127311
|
}
|
|
127312
127312
|
const pl = /* @__PURE__ */ new WeakMap();
|
|
127313
|
+
function Dh(e2, t2) {
|
|
127314
|
+
if (e2.length !== t2.length)
|
|
127315
|
+
return false;
|
|
127316
|
+
for (let n2 = 0; n2 < t2.length; n2++)
|
|
127317
|
+
if (e2[n2] !== t2[n2])
|
|
127318
|
+
return false;
|
|
127319
|
+
return true;
|
|
127320
|
+
}
|
|
127313
127321
|
function et$4(e2, t2, n2) {
|
|
127314
127322
|
const r3 = typeof t2 == "object" && t2 !== null ? t2.name : void 0;
|
|
127315
127323
|
return new Error(`[mdsvex] plugins[${e2}]` + (typeof r3 == "string" ? ` (${r3})` : "") + " " + n2);
|
|
@@ -127319,53 +127327,53 @@ function yn$1(e2) {
|
|
|
127319
127327
|
}
|
|
127320
127328
|
function cc(e2) {
|
|
127321
127329
|
const t2 = pl.get(e2);
|
|
127322
|
-
if (t2 !== void 0)
|
|
127330
|
+
if (t2 !== void 0 && Dh(e2, t2.from))
|
|
127323
127331
|
return t2;
|
|
127324
127332
|
if (!Array.isArray(e2))
|
|
127325
127333
|
throw new Error("[mdsvex] plugins must be an array of plugins");
|
|
127326
127334
|
const n2 = [], r3 = [], s2 = [], i2 = [], o2 = /* @__PURE__ */ new Map();
|
|
127327
127335
|
let l2 = null;
|
|
127328
127336
|
for (let c2 = 0; c2 < e2.length; c2++) {
|
|
127329
|
-
const
|
|
127330
|
-
if (!yn$1(
|
|
127331
|
-
throw et$4(c2,
|
|
127332
|
-
if (typeof
|
|
127333
|
-
throw et$4(c2,
|
|
127334
|
-
const
|
|
127335
|
-
if (
|
|
127336
|
-
if (!yn$1(
|
|
127337
|
-
throw et$4(c2,
|
|
127338
|
-
const p2 = Object.keys(
|
|
127337
|
+
const f2 = e2[c2];
|
|
127338
|
+
if (!yn$1(f2))
|
|
127339
|
+
throw et$4(c2, f2, "must be an object, call the plugin");
|
|
127340
|
+
if (typeof f2.name != "string" || f2.name === "")
|
|
127341
|
+
throw et$4(c2, f2, "needs a name");
|
|
127342
|
+
const u2 = f2.directives;
|
|
127343
|
+
if (u2 !== void 0) {
|
|
127344
|
+
if (!yn$1(u2))
|
|
127345
|
+
throw et$4(c2, f2, "directives must be an object keyed by directive name");
|
|
127346
|
+
const p2 = Object.keys(u2);
|
|
127339
127347
|
for (const _2 of p2) {
|
|
127340
|
-
if (!yn$1(
|
|
127341
|
-
throw et$4(c2,
|
|
127348
|
+
if (!yn$1(u2[_2]))
|
|
127349
|
+
throw et$4(c2, f2, `directives.${_2} must be an object`);
|
|
127342
127350
|
const m2 = o2.get(_2);
|
|
127343
127351
|
if (m2 !== void 0)
|
|
127344
|
-
throw new mr$2(_2, [m2,
|
|
127345
|
-
o2.set(_2,
|
|
127352
|
+
throw new mr$2(_2, [m2, f2.name]);
|
|
127353
|
+
o2.set(_2, f2.name);
|
|
127346
127354
|
}
|
|
127347
127355
|
if (p2.length !== 0) {
|
|
127348
|
-
if (typeof
|
|
127349
|
-
throw et$4(c2,
|
|
127350
|
-
const _2 =
|
|
127351
|
-
r3.push(_2 === void 0 || _2.length === 0 ? { specifier:
|
|
127356
|
+
if (typeof f2.module != "string" || f2.module === "")
|
|
127357
|
+
throw et$4(c2, f2, "needs a module, the specifier its directive components are exported from");
|
|
127358
|
+
const _2 = f2[$h];
|
|
127359
|
+
r3.push(_2 === void 0 || _2.length === 0 ? { specifier: f2.module, names: p2 } : { specifier: f2.module, names: p2, static: _2 }), n2.push({ name: f2.name, directives: u2 });
|
|
127352
127360
|
}
|
|
127353
127361
|
}
|
|
127354
|
-
const h2 =
|
|
127362
|
+
const h2 = f2.components;
|
|
127355
127363
|
if (h2 !== void 0) {
|
|
127356
127364
|
if (!yn$1(h2) || typeof h2.specifier != "string" || !Array.isArray(h2.names))
|
|
127357
|
-
throw et$4(c2,
|
|
127365
|
+
throw et$4(c2, f2, "components must be { specifier, names }");
|
|
127358
127366
|
s2.push(h2);
|
|
127359
127367
|
}
|
|
127360
|
-
if (
|
|
127361
|
-
if (!yn$1(
|
|
127362
|
-
throw et$4(c2,
|
|
127363
|
-
i2.push(
|
|
127368
|
+
if (f2.parse !== void 0) {
|
|
127369
|
+
if (!yn$1(f2.parse))
|
|
127370
|
+
throw et$4(c2, f2, "parse must be a parse plugin");
|
|
127371
|
+
i2.push(f2.parse.name === f2.name ? f2.parse : { ...f2.parse, name: f2.name });
|
|
127364
127372
|
}
|
|
127365
|
-
if (
|
|
127366
|
-
const p2 = Rd(
|
|
127373
|
+
if (f2.fences !== void 0) {
|
|
127374
|
+
const p2 = Rd(f2.fences, f2.name, l2 ?? (l2 = /* @__PURE__ */ new Map()));
|
|
127367
127375
|
if (p2 !== null)
|
|
127368
|
-
throw et$4(c2,
|
|
127376
|
+
throw et$4(c2, f2, p2);
|
|
127369
127377
|
}
|
|
127370
127378
|
}
|
|
127371
127379
|
const a2 = {
|
|
@@ -127374,7 +127382,8 @@ function cc(e2) {
|
|
|
127374
127382
|
directives: new Es(r3),
|
|
127375
127383
|
components: new Es(s2),
|
|
127376
127384
|
parse: new Es(i2),
|
|
127377
|
-
fences: l2 === null ? null : new zd(l2)
|
|
127385
|
+
fences: l2 === null ? null : new zd(l2),
|
|
127386
|
+
from: e2.slice()
|
|
127378
127387
|
};
|
|
127379
127388
|
return pl.set(e2, a2), a2;
|
|
127380
127389
|
}
|
|
@@ -127391,7 +127400,7 @@ function uc(e2) {
|
|
|
127391
127400
|
let t2 = gl.get(e2);
|
|
127392
127401
|
return t2 === void 0 && (t2 = new dn$2(e2, "D_G"), gl.set(e2, t2)), t2;
|
|
127393
127402
|
}
|
|
127394
|
-
const
|
|
127403
|
+
const Lh = [
|
|
127395
127404
|
"directive_inline",
|
|
127396
127405
|
"directive_leaf",
|
|
127397
127406
|
"directive_container"
|
|
@@ -127406,15 +127415,15 @@ function fc(e2, t2) {
|
|
|
127406
127415
|
for (let s2 = 0; s2 < e2.length; s2++) {
|
|
127407
127416
|
const i2 = e2[s2];
|
|
127408
127417
|
let o2 = null;
|
|
127409
|
-
for (const l2 of
|
|
127418
|
+
for (const l2 of Lh) {
|
|
127410
127419
|
const a2 = i2[l2];
|
|
127411
127420
|
if (typeof a2 != "object" || typeof a2.parse != "function")
|
|
127412
127421
|
continue;
|
|
127413
127422
|
const c2 = a2.parse;
|
|
127414
127423
|
o2 ?? (o2 = { ...i2 }), o2[l2] = {
|
|
127415
|
-
parse(
|
|
127416
|
-
const h2 =
|
|
127417
|
-
return typeof h2 == "string" && t2.get(h2) !== void 0 ? void 0 : c2(
|
|
127424
|
+
parse(f2, u2) {
|
|
127425
|
+
const h2 = f2.attrs.name;
|
|
127426
|
+
return typeof h2 == "string" && t2.get(h2) !== void 0 ? void 0 : c2(f2, u2);
|
|
127418
127427
|
}
|
|
127419
127428
|
};
|
|
127420
127429
|
}
|
|
@@ -127423,45 +127432,45 @@ function fc(e2, t2) {
|
|
|
127423
127432
|
return ml.set(e2, { scope: t2, plugins: r3 }), r3;
|
|
127424
127433
|
}
|
|
127425
127434
|
const En$1 = Object.prototype.hasOwnProperty;
|
|
127426
|
-
function
|
|
127435
|
+
function Nh(e2) {
|
|
127427
127436
|
return e2 !== void 0 && (e2.templates !== void 0 || e2.template !== void 0 || e2.select_template !== void 0 || e2.default_template !== void 0);
|
|
127428
127437
|
}
|
|
127429
|
-
function dc(e2, t2, n2, r3) {
|
|
127430
|
-
const
|
|
127438
|
+
function dc(e2, t2, n2, r3, s2) {
|
|
127439
|
+
const i2 = e2 !== void 0 && En$1.call(e2, "template");
|
|
127431
127440
|
if (t2 === void 0) {
|
|
127432
|
-
if (!
|
|
127441
|
+
if (!i2)
|
|
127433
127442
|
return;
|
|
127434
127443
|
t2 = {};
|
|
127435
127444
|
}
|
|
127436
|
-
let
|
|
127437
|
-
if (
|
|
127438
|
-
throw hr$1(
|
|
127439
|
-
if (
|
|
127440
|
-
throw new Error(`[mdsvex] select_template must return a template name, false or undefined, it returned ${JSON.stringify(
|
|
127441
|
-
const
|
|
127442
|
-
if (
|
|
127445
|
+
let o2 = t2.template, l2 = "the template option";
|
|
127446
|
+
if (o2 === void 0 && i2 && (o2 = e2.template, l2 = "frontmatter", o2 !== false && typeof o2 != "string"))
|
|
127447
|
+
throw hr$1(r3, s2, "template", `template must be the name of a template or false, got ${JSON.stringify(o2)}`);
|
|
127448
|
+
if (o2 === void 0 && t2.select_template !== void 0 && (o2 = t2.select_template(n2, e2 ?? {}), l2 = "select_template", o2 !== void 0 && o2 !== false && typeof o2 != "string"))
|
|
127449
|
+
throw new Error(`[mdsvex] select_template must return a template name, false or undefined, it returned ${JSON.stringify(o2)}`);
|
|
127450
|
+
const a2 = t2.templates;
|
|
127451
|
+
if (o2 === void 0)
|
|
127443
127452
|
if (t2.default_template !== void 0)
|
|
127444
|
-
|
|
127445
|
-
else if (
|
|
127446
|
-
|
|
127453
|
+
o2 = t2.default_template, l2 = "default_template";
|
|
127454
|
+
else if (a2 !== void 0 && En$1.call(a2, "default"))
|
|
127455
|
+
o2 = "default";
|
|
127447
127456
|
else
|
|
127448
127457
|
return;
|
|
127449
|
-
if (
|
|
127458
|
+
if (o2 === false)
|
|
127450
127459
|
return;
|
|
127451
|
-
if ((
|
|
127452
|
-
const
|
|
127453
|
-
throw
|
|
127460
|
+
if ((a2 !== void 0 && En$1.call(a2, o2) ? a2[o2] : void 0) === void 0) {
|
|
127461
|
+
const f2 = a2 === void 0 ? [] : Object.keys(a2), u2 = `Unknown template ${JSON.stringify(o2)} from ${l2}. ` + (f2.length === 0 ? "No templates are configured" : `Known templates: ${f2.join(", ")}`);
|
|
127462
|
+
throw l2 === "frontmatter" ? hr$1(r3, s2, "template", u2) : new Error("[mdsvex] " + u2);
|
|
127454
127463
|
}
|
|
127455
127464
|
if (e2 !== void 0 && En$1.call(e2, "children"))
|
|
127456
|
-
throw hr$1(
|
|
127457
|
-
return
|
|
127465
|
+
throw hr$1(r3, s2, "children", `The frontmatter key children collides with the children of template ${JSON.stringify(o2)}, rename it`);
|
|
127466
|
+
return o2;
|
|
127458
127467
|
}
|
|
127459
127468
|
function hr$1(e2, t2, n2, r3) {
|
|
127460
127469
|
const s2 = e2.first_child_at(0), i2 = Uh$1(t2, e2.value_start_at(s2), e2.value_end_at(s2), n2);
|
|
127461
127470
|
return new Mi$2(`${r3} (frontmatter line ${i2})`, i2, 1);
|
|
127462
127471
|
}
|
|
127463
127472
|
const _l = /* @__PURE__ */ new WeakMap();
|
|
127464
|
-
function
|
|
127473
|
+
function Oh(e2, t2) {
|
|
127465
127474
|
const n2 = e2.components;
|
|
127466
127475
|
if (n2 === void 0 || n2.length === 0)
|
|
127467
127476
|
return t2;
|
|
@@ -127498,17 +127507,17 @@ function pc(e2, t2) {
|
|
|
127498
127507
|
const i2 = s2.length === 0 ? e2 : new dn$2(s2, "R", e2);
|
|
127499
127508
|
return vl.set(n2, { root: e2, scope: i2 }), i2;
|
|
127500
127509
|
}
|
|
127501
|
-
function
|
|
127502
|
-
const
|
|
127503
|
-
if (
|
|
127510
|
+
function Th(e2, t2, n2, r3, s2, i2, o2) {
|
|
127511
|
+
const l2 = dc(n2, r3, s2, i2, o2);
|
|
127512
|
+
if (l2 === void 0) {
|
|
127504
127513
|
e2.scope = t2;
|
|
127505
127514
|
return;
|
|
127506
127515
|
}
|
|
127507
|
-
const
|
|
127508
|
-
return e2.scope =
|
|
127509
|
-
specifier:
|
|
127516
|
+
const a2 = r3.templates[l2];
|
|
127517
|
+
return e2.scope = Oh(a2, t2), e2.directives = hc(a2, e2.directives), e2.template = {
|
|
127518
|
+
specifier: a2.specifier,
|
|
127510
127519
|
metadata: n2 !== void 0
|
|
127511
|
-
},
|
|
127520
|
+
}, l2;
|
|
127512
127521
|
}
|
|
127513
127522
|
let $s$1 = null, Pn$1 = null;
|
|
127514
127523
|
function gc() {
|
|
@@ -127516,7 +127525,7 @@ function gc() {
|
|
|
127516
127525
|
return Pn$1 = null, e2;
|
|
127517
127526
|
}
|
|
127518
127527
|
let Ks$1 = null, Qs$1 = null;
|
|
127519
|
-
function
|
|
127528
|
+
function Ih() {
|
|
127520
127529
|
const e2 = Qs$1;
|
|
127521
127530
|
return e2 === null ? new fr$1({ cache: false }) : (Qs$1 = null, e2);
|
|
127522
127531
|
}
|
|
@@ -127533,7 +127542,7 @@ class mc {
|
|
|
127533
127542
|
*/
|
|
127534
127543
|
start(t2, n2, r3) {
|
|
127535
127544
|
const s2 = this.dispatcher;
|
|
127536
|
-
s2.allow_async = r3, s2.async_hint =
|
|
127545
|
+
s2.allow_async = r3, s2.async_hint = Bh, this.read = n2.read, this.resolve = n2.resolve, this.pending = null, this.source = t2, this.filename = n2.filename, this.parse = n2.frontmatter_parse, this.parsed_frontmatter = false, this.metadata = void 0, this.exported = void 0, this.dispatcher.set_document(this);
|
|
127537
127546
|
}
|
|
127538
127547
|
/** parsed once, for the first handler that asks or for the compile after the parse */
|
|
127539
127548
|
read_frontmatter() {
|
|
@@ -127542,7 +127551,7 @@ class mc {
|
|
|
127542
127551
|
const t2 = this.tree.get_buffer(), n2 = t2.first_child_at(0);
|
|
127543
127552
|
if (n2 === Cr$1 || t2.kind_at(n2) !== hi$1 || t2.end_at(n2) === Cr$1)
|
|
127544
127553
|
return;
|
|
127545
|
-
const r3 = Ih$1(this.source, t2.value_start_at(n2), t2.value_end_at(n2), this.parse);
|
|
127554
|
+
const r3 = Ih$1(this.source, t2.value_start_at(n2), t2.value_end_at(n2), this.parse, this.filename);
|
|
127546
127555
|
return this.parsed_frontmatter = true, this.metadata = r3;
|
|
127547
127556
|
}
|
|
127548
127557
|
/**
|
|
@@ -127555,7 +127564,7 @@ class mc {
|
|
|
127555
127564
|
return;
|
|
127556
127565
|
const s2 = t2.template;
|
|
127557
127566
|
try {
|
|
127558
|
-
if (this.exported = Lh$1(r3), cs(t2,
|
|
127567
|
+
if (this.exported = Lh$1(r3), cs(t2, Hh), s2 === void 0)
|
|
127559
127568
|
return;
|
|
127560
127569
|
if (n2 !== void 0 && En$1.call(n2, dh$1))
|
|
127561
127570
|
throw hr$1(this.tree.get_buffer(), this.source, dh$1, `The frontmatter key ${dh$1} collides with the prop a template takes what plugins left as, rename it`);
|
|
@@ -127584,7 +127593,7 @@ class mc {
|
|
|
127584
127593
|
}
|
|
127585
127594
|
/** a document that waits for its render, the dispatcher holds what they left until then */
|
|
127586
127595
|
wait(t2, n2) {
|
|
127587
|
-
t2._host = this, t2.data = this.dispatcher.data(), t2.dependencies = this.dispatcher.dependencies(), this.pending !== null && (t2._scan =
|
|
127596
|
+
t2._host = this, t2.data = this.dispatcher.data(), t2.dependencies = this.dispatcher.dependencies(), this.pending !== null && (t2._scan = Zh(n2));
|
|
127588
127597
|
}
|
|
127589
127598
|
/**
|
|
127590
127599
|
* gives a result what the handlers left, their warnings ahead of those of
|
|
@@ -127599,8 +127608,8 @@ class mc {
|
|
|
127599
127608
|
if (i2 === void 0)
|
|
127600
127609
|
return;
|
|
127601
127610
|
const o2 = this.source, l2 = [];
|
|
127602
|
-
for (const { plugin: c2, code:
|
|
127603
|
-
const p2 = h2 === void 0 ? { code:
|
|
127611
|
+
for (const { plugin: c2, code: f2, message: u2, start: h2 } of i2) {
|
|
127612
|
+
const p2 = h2 === void 0 ? { code: f2, message: u2, start: { line: 1, column: 0 } } : Dr$1(f2, u2, h2, o2);
|
|
127604
127613
|
c2 !== void 0 && (p2.plugin = c2), l2.push(p2);
|
|
127605
127614
|
}
|
|
127606
127615
|
const a2 = t2.warnings;
|
|
@@ -127610,7 +127619,7 @@ class mc {
|
|
|
127610
127619
|
function ei$1(e2, t2) {
|
|
127611
127620
|
t2 !== null && (e2._images = t2, e2.needs = t2.needs);
|
|
127612
127621
|
}
|
|
127613
|
-
function
|
|
127622
|
+
function Uh(e2, t2) {
|
|
127614
127623
|
if (e2 !== null && e2.has_static)
|
|
127615
127624
|
return true;
|
|
127616
127625
|
const n2 = t2?.templates;
|
|
@@ -127627,11 +127636,11 @@ function Ih(e2, t2) {
|
|
|
127627
127636
|
}
|
|
127628
127637
|
return false;
|
|
127629
127638
|
}
|
|
127630
|
-
function
|
|
127639
|
+
function Rh(e2, t2, n2, r3, s2) {
|
|
127631
127640
|
const i2 = s2.templates;
|
|
127632
127641
|
let o2 = r3;
|
|
127633
127642
|
if (i2 !== void 0 || n2 !== void 0) {
|
|
127634
|
-
const c2 = dc(n2, i2, e2, t2);
|
|
127643
|
+
const c2 = dc(n2, i2, s2.filename, e2, t2);
|
|
127635
127644
|
c2 !== void 0 && (o2 = hc(i2.templates[c2], r3));
|
|
127636
127645
|
}
|
|
127637
127646
|
if (o2 === null)
|
|
@@ -127649,11 +127658,11 @@ function Uh(e2, t2, n2, r3, s2) {
|
|
|
127649
127658
|
args: c2.args,
|
|
127650
127659
|
label: c2.label,
|
|
127651
127660
|
children: c2.children,
|
|
127652
|
-
start:
|
|
127661
|
+
start: zh(t2, c2.start)
|
|
127653
127662
|
});
|
|
127654
127663
|
return a2;
|
|
127655
127664
|
}
|
|
127656
|
-
function
|
|
127665
|
+
function zh(e2, t2) {
|
|
127657
127666
|
let n2 = 1;
|
|
127658
127667
|
for (let r3 = e2.indexOf(`
|
|
127659
127668
|
`); r3 !== -1 && r3 < t2; r3 = e2.indexOf(`
|
|
@@ -127662,7 +127671,7 @@ function Rh(e2, t2) {
|
|
|
127662
127671
|
return { line: n2, column: t2 - (e2.lastIndexOf(`
|
|
127663
127672
|
`, t2 - 1) + 1) };
|
|
127664
127673
|
}
|
|
127665
|
-
function
|
|
127674
|
+
function jh(e2, t2) {
|
|
127666
127675
|
const n2 = e2.needs;
|
|
127667
127676
|
e2.needs = n2 === void 0 ? t2 : [...n2, ...t2];
|
|
127668
127677
|
}
|
|
@@ -127672,11 +127681,11 @@ function ti$1(e2, t2) {
|
|
|
127672
127681
|
const n2 = e2.needs;
|
|
127673
127682
|
e2.needs = n2 === void 0 ? t2.needs : [...n2, ...t2.needs];
|
|
127674
127683
|
}
|
|
127675
|
-
function
|
|
127684
|
+
function Vh(e2, t2) {
|
|
127676
127685
|
if (e2.pending !== null)
|
|
127677
127686
|
throw t2._nodes = null, new Error("[mdsvex] the plugins of this document deferred work, wait for settle(parsed) before its render");
|
|
127678
127687
|
}
|
|
127679
|
-
const
|
|
127688
|
+
const Bh = "compile() is synchronous, use compile_async() for a document whose plugins wait";
|
|
127680
127689
|
function _c(e2, t2, n2, r3) {
|
|
127681
127690
|
const s2 = t2 !== void 0 && t2.length > 0;
|
|
127682
127691
|
return !s2 && n2 === void 0 ? null : new mc(new Ph$1(s2 ? fc(t2, r3) : void 0, new Dn$2(e2), n2));
|
|
@@ -127684,13 +127693,13 @@ function _c(e2, t2, n2, r3) {
|
|
|
127684
127693
|
function bc(e2, t2, n2, r3) {
|
|
127685
127694
|
const s2 = e2.length, i2 = new Ns$1(s2 < 512 ? (s2 >> 2) + 16 : s2 >> 3, t2 === null ? void 0 : t2.dispatcher);
|
|
127686
127695
|
t2 !== null && (t2.tree = i2, t2.start(e2, n2, r3));
|
|
127687
|
-
const o2 = n2.heading_ids, l2 = o2 === void 0 ? null :
|
|
127696
|
+
const o2 = n2.heading_ids, l2 = o2 === void 0 ? null : Ph(i2, o2, e2);
|
|
127688
127697
|
let a2 = $s$1;
|
|
127689
127698
|
a2 === null ? a2 = new Mh$1(i2) : ($s$1 = null, a2.bind(i2)), a2.set_options(n2), a2.parse_normalized(e2), a2.release(), $s$1 = a2;
|
|
127690
127699
|
const c2 = i2.get_buffer();
|
|
127691
127700
|
return l2 !== null && (l2.finish(c2), Pn$1 = l2.moved, Ks$1 = l2), t2 !== null && (t2.dispatcher.run_sequential(c2), t2.finish(c2)), c2.trim(), c2;
|
|
127692
127701
|
}
|
|
127693
|
-
function
|
|
127702
|
+
function Ph(e2, t2, n2) {
|
|
127694
127703
|
let r3 = Ks$1;
|
|
127695
127704
|
return r3 === null || r3.slug !== t2 ? r3 = Ha$1(t2) : Ks$1 = null, e2.set_headings(r3), r3.start(n2), r3;
|
|
127696
127705
|
}
|
|
@@ -127701,10 +127710,10 @@ function wl(e2, t2, n2) {
|
|
|
127701
127710
|
return (r3 === null || r3.slug !== t2) && (r3 = Ha$1(t2), e2.set_headings(r3)), r3.start(n2), r3;
|
|
127702
127711
|
}
|
|
127703
127712
|
const Cr$1 = 4294967295;
|
|
127704
|
-
function vc(e2, t2, n2) {
|
|
127705
|
-
const
|
|
127706
|
-
if (!(
|
|
127707
|
-
return Ih$1(t2, e2.value_start_at(
|
|
127713
|
+
function vc(e2, t2, n2, r3) {
|
|
127714
|
+
const s2 = e2.first_child_at(0);
|
|
127715
|
+
if (!(s2 === Cr$1 || e2.kind_at(s2) !== hi$1))
|
|
127716
|
+
return Ih$1(t2, e2.value_start_at(s2), e2.value_end_at(s2), n2, r3);
|
|
127708
127717
|
}
|
|
127709
127718
|
function Dr$1(e2, t2, n2, r3) {
|
|
127710
127719
|
const s2 = r3.lastIndexOf(`
|
|
@@ -127718,17 +127727,17 @@ function Dr$1(e2, t2, n2, r3) {
|
|
|
127718
127727
|
}
|
|
127719
127728
|
function wc(e2, t2, n2, r3, s2, i2, o2) {
|
|
127720
127729
|
e2.scope = n2, e2.directives = r3, e2.strict_directives = t2.strict_directives;
|
|
127721
|
-
const l2 = t2.templates, a2 = l2 === void 0 && s2 === void 0 ? void 0 :
|
|
127730
|
+
const l2 = t2.templates, a2 = l2 === void 0 && s2 === void 0 ? void 0 : Th(e2, n2, s2, l2, t2.filename, i2, o2);
|
|
127722
127731
|
e2.scope !== null && (e2.replace_typed = t2.component_mode === "all");
|
|
127723
|
-
const c2 = t2.filename,
|
|
127724
|
-
let
|
|
127725
|
-
return e2.highlight =
|
|
127732
|
+
const c2 = t2.filename, f2 = t2.highlight;
|
|
127733
|
+
let u2 = f2 === void 0 || f2 === false ? null : oe$6(f2, c2, o2);
|
|
127734
|
+
return e2.highlight = u2, u2 === null && e2.scope?.get("pre") !== void 0 && (u2 = le$7(c2, o2)), e2.pre_meta = u2, a2;
|
|
127726
127735
|
}
|
|
127727
127736
|
function ni$1(e2, t2, n2) {
|
|
127728
127737
|
const r3 = t2.pre_meta;
|
|
127729
127738
|
r3 !== null && (t2.highlight = null, t2.pre_meta = null);
|
|
127730
127739
|
const s2 = t2.scope, i2 = s2 === null || s2.size === 0 ? null : t2.warnings, o2 = r3 === null ? null : r3.warnings;
|
|
127731
|
-
(i2 === null || i2.length === 0) && (o2 === null || o2.length === 0) || (e2.warnings =
|
|
127740
|
+
(i2 === null || i2.length === 0) && (o2 === null || o2.length === 0) || (e2.warnings = Gh(i2, o2, n2));
|
|
127732
127741
|
}
|
|
127733
127742
|
function ri$1(e2, t2, n2) {
|
|
127734
127743
|
const r3 = t2.warnings;
|
|
@@ -127738,7 +127747,7 @@ function ri$1(e2, t2, n2) {
|
|
|
127738
127747
|
for (const { code: i2, message: o2, start: l2 } of r3)
|
|
127739
127748
|
s2.push(Dr$1(i2, o2, l2, n2));
|
|
127740
127749
|
}
|
|
127741
|
-
function
|
|
127750
|
+
function Gh(e2, t2, n2) {
|
|
127742
127751
|
const r3 = [];
|
|
127743
127752
|
if (e2 !== null)
|
|
127744
127753
|
for (const { tag: s2, directive: i2, start: o2 } of e2)
|
|
@@ -127758,18 +127767,18 @@ function xt$4(e2, t2) {
|
|
|
127758
127767
|
function yc(e2, t2) {
|
|
127759
127768
|
let n2 = t2 === void 0 ? as$1 : Qn$1(t2);
|
|
127760
127769
|
n2.plugins !== void 0 && (n2 = Ys(n2));
|
|
127761
|
-
const r3 = Xs$1(e2), s2 = ac(n2), i2 = uc(n2.directives), o2 = _c(r3, n2.parse_plugins, n2.directive_handlers, pc(i2, n2.templates)), l2 = bc(r3, o2, n2, false), a2 = gh(), c2 = ph() ? Ma$1(l2, r3, n2.footnotes, n2.filename, n2.heading_ids === void 0 ? null : gc()) : null,
|
|
127762
|
-
let
|
|
127770
|
+
const r3 = Xs$1(e2), s2 = ac(n2), i2 = uc(n2.directives), o2 = _c(r3, n2.parse_plugins, n2.directive_handlers, pc(i2, n2.templates)), l2 = bc(r3, o2, n2, false), a2 = gh(), c2 = ph() ? Ma$1(l2, r3, n2.footnotes, n2.filename, n2.heading_ids === void 0 ? null : gc()) : null, f2 = o2 === null ? vc(l2, r3, n2.frontmatter_parse, n2.filename) : o2.frontmatter();
|
|
127771
|
+
let u2 = n2.import_images === true && (fh$1() || n2.parse_plugins !== void 0 || n2.directive_handlers !== void 0) ? Sr$1(l2, r3, n2.enhanced_images === true) : null;
|
|
127763
127772
|
const h2 = n2.links;
|
|
127764
|
-
h2 !== void 0 && (
|
|
127765
|
-
const p2 = n2.sources, _2 = (p2 !== false || n2.snippets !== false) && (kh(r3, "src=", "run") || n2.parse_plugins !== void 0 || n2.directive_handlers !== void 0) ? si$1(l2, r3, n2) : null, m2 = _2 === null ? null : ic(_2, p2, r3, n2.filename, n2.snippets), g2 =
|
|
127773
|
+
h2 !== void 0 && (u2 = Ya$1(u2, Xa$1(h2, l2, r3, n2.filename, u2 === null ? null : u2.lookup)));
|
|
127774
|
+
const p2 = n2.sources, _2 = (p2 !== false || n2.snippets !== false) && (kh(r3, "src=", "run") || n2.parse_plugins !== void 0 || n2.directive_handlers !== void 0) ? si$1(l2, r3, n2) : null, m2 = _2 === null ? null : ic(_2, p2, r3, n2.filename, n2.snippets), g2 = Ih(), v3 = n2.math, x2 = v3 !== void 0 && v3 !== false;
|
|
127766
127775
|
let $2;
|
|
127767
127776
|
try {
|
|
127768
|
-
$2 = wc(g2, n2, s2, i2,
|
|
127777
|
+
$2 = wc(g2, n2, s2, i2, f2, l2, r3), o2 !== null && o2.share(g2, f2);
|
|
127769
127778
|
} catch (C3) {
|
|
127770
127779
|
throw or$1(g2), C3;
|
|
127771
127780
|
}
|
|
127772
|
-
if (x2 && (g2.highlight !== null ? g2.highlight.with_math(v3) : a2 && Cn$2(g2, v3, n2.filename, r3)),
|
|
127781
|
+
if (x2 && (g2.highlight !== null ? g2.highlight.with_math(v3) : a2 && Cn$2(g2, v3, n2.filename, r3)), u2 !== null && (cs(g2, u2.lines), g2.urls = u2.lookup), m2 !== null)
|
|
127773
127782
|
try {
|
|
127774
127783
|
xc(g2, m2, n2.filename, r3);
|
|
127775
127784
|
} catch (C3) {
|
|
@@ -127779,20 +127788,20 @@ function yc(e2, t2) {
|
|
|
127779
127788
|
if (b2 !== void 0 && (g2.smart_punctuation = b2), c2 !== null && (g2.footnotes = c2), n2.wrap_static === true && (g2.wrap_static = true), t2?.sourcemap) {
|
|
127780
127789
|
let C3;
|
|
127781
127790
|
do
|
|
127782
|
-
C3 = g2.update_mapped(l2, r3, r3.length === e2.length ? null : ii$1(e2), xt$4(
|
|
127791
|
+
C3 = g2.update_mapped(l2, r3, r3.length === e2.length ? null : ii$1(e2), xt$4(f2, o2));
|
|
127783
127792
|
while (x2 && g2.highlight === null && Us() && Cn$2(g2, v3, n2.filename, r3));
|
|
127784
127793
|
const k2 = {
|
|
127785
127794
|
code: g2.html,
|
|
127786
127795
|
mappings: C3.mappings,
|
|
127787
|
-
metadata:
|
|
127796
|
+
metadata: f2,
|
|
127788
127797
|
template: $2
|
|
127789
127798
|
};
|
|
127790
127799
|
return m2 !== null && (k2.snippets = m2.snippets), ni$1(k2, g2, r3), c2 !== null && ri$1(k2, c2, r3), o2 !== null && o2.leave(k2, false), or$1(g2), k2;
|
|
127791
127800
|
}
|
|
127792
127801
|
do
|
|
127793
|
-
g2.update(l2, r3, xt$4(
|
|
127802
|
+
g2.update(l2, r3, xt$4(f2, o2));
|
|
127794
127803
|
while (x2 && g2.highlight === null && Us() && Cn$2(g2, v3, n2.filename, r3));
|
|
127795
|
-
const y2 = { code: g2.html, metadata:
|
|
127804
|
+
const y2 = { code: g2.html, metadata: f2, template: $2 };
|
|
127796
127805
|
return m2 !== null && (y2.snippets = m2.snippets), ni$1(y2, g2, r3), c2 !== null && ri$1(y2, c2, r3), o2 !== null && o2.leave(y2, false), or$1(g2), y2;
|
|
127797
127806
|
}
|
|
127798
127807
|
function si$1(e2, t2, n2) {
|
|
@@ -127809,7 +127818,7 @@ function cs(e2, t2) {
|
|
|
127809
127818
|
const n2 = e2.imports;
|
|
127810
127819
|
e2.imports = n2 === void 0 || n2.length === 0 ? t2 : n2.concat(t2);
|
|
127811
127820
|
}
|
|
127812
|
-
const
|
|
127821
|
+
const Hh = [
|
|
127813
127822
|
"import { setContext as set_context_MDSVEX } from 'svelte';",
|
|
127814
127823
|
`set_context_MDSVEX(Symbol.for('mdsvex.plugin_data'), { current: ${dh$1} });`
|
|
127815
127824
|
];
|
|
@@ -127855,14 +127864,14 @@ let Lr$1 = class Lr2 {
|
|
|
127855
127864
|
parse_plugged(t2, n2, r3, s2, i2, o2) {
|
|
127856
127865
|
let l2 = this.plugin_arena;
|
|
127857
127866
|
if (l2 === null || l2.plugins !== n2 || l2.bound !== r3 || l2.reserved !== s2) {
|
|
127858
|
-
const
|
|
127867
|
+
const u2 = new Dn$2(t2), h2 = new Ph$1(n2 !== void 0 && n2.length > 0 ? fc(n2, s2) : void 0, u2, r3), p2 = new Ns$1(t2.length >> 3 || 16, h2), _2 = new mc(h2);
|
|
127859
127868
|
_2.tree = p2;
|
|
127860
127869
|
let m2;
|
|
127861
127870
|
l2 === null ? m2 = new Mh$1(p2) : (m2 = l2.parser, m2.bind(p2)), l2 = this.plugin_arena = {
|
|
127862
127871
|
plugins: n2,
|
|
127863
127872
|
bound: r3,
|
|
127864
127873
|
reserved: s2,
|
|
127865
|
-
text:
|
|
127874
|
+
text: u2,
|
|
127866
127875
|
dispatcher: h2,
|
|
127867
127876
|
tree: p2,
|
|
127868
127877
|
parser: m2,
|
|
@@ -127873,13 +127882,13 @@ let Lr$1 = class Lr2 {
|
|
|
127873
127882
|
l2.host.start(t2, i2, o2), l2.host.cache = this.cache;
|
|
127874
127883
|
const a2 = i2.heading_ids, c2 = a2 === void 0 && l2.tree.get_headings() === null ? null : wl(l2.tree, a2, t2);
|
|
127875
127884
|
this.plugin_busy = true;
|
|
127876
|
-
let
|
|
127885
|
+
let f2 = false;
|
|
127877
127886
|
try {
|
|
127878
127887
|
l2.parser.set_options(i2), l2.parser.parse_normalized(t2);
|
|
127879
|
-
const
|
|
127880
|
-
return c2 !== null && (c2.finish(
|
|
127888
|
+
const u2 = l2.tree.get_buffer();
|
|
127889
|
+
return c2 !== null && (c2.finish(u2), Pn$1 = c2.moved), l2.dispatcher.run_sequential(u2), l2.host.finish(u2), f2 = true, u2;
|
|
127881
127890
|
} finally {
|
|
127882
|
-
this.plugin_busy = false,
|
|
127891
|
+
this.plugin_busy = false, f2 || (this.plugin_arena = null);
|
|
127883
127892
|
}
|
|
127884
127893
|
}
|
|
127885
127894
|
compile(t2, n2) {
|
|
@@ -127909,7 +127918,7 @@ let Lr$1 = class Lr2 {
|
|
|
127909
127918
|
settle(t2) {
|
|
127910
127919
|
const n2 = t2._host;
|
|
127911
127920
|
if (!(n2 === null || n2.pending === null))
|
|
127912
|
-
return
|
|
127921
|
+
return Wh(n2, n2.pending, t2);
|
|
127913
127922
|
}
|
|
127914
127923
|
/**
|
|
127915
127924
|
* drops what ctx.cached keeps under these paths, a host that watches
|
|
@@ -127969,8 +127978,8 @@ let Lr$1 = class Lr2 {
|
|
|
127969
127978
|
this.tree !== null && (this.tree.reset(), this.parser.release(), this.released = true), this.plugin_arena !== null && (this.plugin_arena = null), this.renderer.release();
|
|
127970
127979
|
}
|
|
127971
127980
|
/** @internal the map equals mappings_to_v3 over compile mappings with raw as source */
|
|
127972
|
-
compile_v3(t2, n2, r3, s2, i2, o2, l2, a2, c2,
|
|
127973
|
-
return this.run(t2, qs$1(r3, s2, i2, o2, l2, a2, c2, n2,
|
|
127981
|
+
compile_v3(t2, n2, r3, s2, i2, o2, l2, a2, c2, f2) {
|
|
127982
|
+
return this.run(t2, qs$1(r3, s2, i2, o2, l2, a2, c2, n2, f2), 2, void 0, void 0);
|
|
127974
127983
|
}
|
|
127975
127984
|
/**
|
|
127976
127985
|
* defers the map, the vite plugin builds only the lines the svelte compiler
|
|
@@ -127999,8 +128008,8 @@ let Lr$1 = class Lr2 {
|
|
|
127999
128008
|
* compile_into with its inputs spelled out
|
|
128000
128009
|
* @internal
|
|
128001
128010
|
*/
|
|
128002
|
-
compile_trace_into(t2, n2, r3, s2, i2, o2, l2, a2, c2,
|
|
128003
|
-
this.run(t2, qs$1(n2, s2, i2, o2, l2, a2, c2,
|
|
128011
|
+
compile_trace_into(t2, n2, r3, s2, i2, o2, l2, a2, c2, f2, u2) {
|
|
128012
|
+
this.run(t2, qs$1(n2, s2, i2, o2, l2, a2, c2, f2, u2), 4, r3, void 0);
|
|
128004
128013
|
}
|
|
128005
128014
|
/**
|
|
128006
128015
|
* every compile of the session, kind picks the render and what comes
|
|
@@ -128012,41 +128021,41 @@ let Lr$1 = class Lr2 {
|
|
|
128012
128021
|
run(t2, n2, r3, s2, i2) {
|
|
128013
128022
|
n2.plugins !== void 0 && (n2 = Ys(n2));
|
|
128014
128023
|
const o2 = ac(n2), l2 = n2.directives, a2 = l2 === void 0 ? null : uc(l2);
|
|
128015
|
-
let c2 = this.renderer,
|
|
128024
|
+
let c2 = this.renderer, f2, u2, h2, p2 = null, _2 = null, m2 = false, g2 = null, v3 = null;
|
|
128016
128025
|
if (i2 === void 0) {
|
|
128017
|
-
|
|
128026
|
+
f2 = Xs$1(t2);
|
|
128018
128027
|
const D2 = n2.parse_plugins, z2 = n2.directive_handlers, V3 = D2 !== void 0 && D2.length > 0 || z2 !== void 0;
|
|
128019
128028
|
if (V3) {
|
|
128020
128029
|
const G2 = pc(a2, n2.templates), Be2 = r3 === 5 || n2.await_plugins;
|
|
128021
|
-
this.plugin_busy ? (v3 = _c(
|
|
128030
|
+
this.plugin_busy ? (v3 = _c(f2, D2, z2, G2), u2 = bc(f2, v3, n2, Be2), c2 = new fr$1({ cache: false })) : (u2 = this.parse_plugged(f2, D2, z2, G2, n2, Be2), v3 = this.plugin_arena.host), h2 = v3.frontmatter();
|
|
128022
128031
|
} else {
|
|
128023
|
-
|
|
128024
|
-
const G2 =
|
|
128025
|
-
h2 = G2 === Cr$1 ||
|
|
128032
|
+
u2 = this.parse_plain(f2, n2);
|
|
128033
|
+
const G2 = u2.first_child_at(0);
|
|
128034
|
+
h2 = G2 === Cr$1 || u2.kind_at(G2) !== hi$1 ? void 0 : vc(u2, f2, n2.frontmatter_parse, n2.filename);
|
|
128026
128035
|
}
|
|
128027
|
-
m2 = this.spans = gh(), g2 = this.notes = ph() ? Ma$1(
|
|
128036
|
+
m2 = this.spans = gh(), g2 = this.notes = ph() ? Ma$1(u2, f2, n2.footnotes, n2.filename, n2.heading_ids === void 0 ? null : gc()) : null, n2.import_images === true && (fh$1() || V3) && (p2 = Sr$1(u2, f2, n2.enhanced_images === true));
|
|
128028
128037
|
const H2 = n2.sources;
|
|
128029
|
-
(H2 !== false || n2.snippets !== false) && (kh(
|
|
128030
|
-
const ne2 = (r3 === 5 || n2.await_shells) &&
|
|
128038
|
+
(H2 !== false || n2.snippets !== false) && (kh(f2, "src=", "run") || V3) && (_2 = si$1(u2, f2, n2));
|
|
128039
|
+
const ne2 = (r3 === 5 || n2.await_shells) && Uh(a2, n2.templates) ? Rh(u2, f2, h2, a2, n2) : null;
|
|
128031
128040
|
if (r3 === 5 || ne2 !== null && s2 !== void 0 || _2 !== null && s2 !== void 0 && n2.await_sources && !fh(_2, H2) || v3 !== null && s2 !== void 0 && v3.pending !== null) {
|
|
128032
|
-
const G2 = new yl(t2,
|
|
128033
|
-
return G2.math = G2._spans = m2, G2._notes = g2, v3 !== null && v3.wait(G2, n2), ei$1(G2, p2), ti$1(G2, _2), ne2 !== null &&
|
|
128041
|
+
const G2 = new yl(t2, f2, h2, u2);
|
|
128042
|
+
return G2.math = G2._spans = m2, G2._notes = g2, v3 !== null && v3.wait(G2, n2), ei$1(G2, p2), ti$1(G2, _2), ne2 !== null && jh(G2, ne2), c2 === this.renderer && this.lend(G2, V3), r3 === 5 ? G2 : (s2.waiting = G2, s2);
|
|
128034
128043
|
}
|
|
128035
128044
|
} else {
|
|
128036
128045
|
const D2 = i2._nodes;
|
|
128037
128046
|
if (D2 === null)
|
|
128038
128047
|
throw new Error("[mdsvex] a parsed document renders once");
|
|
128039
|
-
i2._nodes = null,
|
|
128048
|
+
i2._nodes = null, u2 = D2, f2 = i2.source, h2 = i2.metadata, p2 = i2._images, _2 = i2._sources, m2 = i2._spans, g2 = i2._notes, v3 = i2._host, v3 !== null && Vh(v3, i2), i2._host = null, this.plugin_busy && (c2 = new fr$1({ cache: false }));
|
|
128040
128049
|
}
|
|
128041
128050
|
let x2 = p2;
|
|
128042
128051
|
const $2 = n2.links;
|
|
128043
|
-
$2 !== void 0 && (x2 = Ya$1(p2, Xa$1($2,
|
|
128044
|
-
const b2 = _2 === null ? null : ic(_2, n2.sources,
|
|
128052
|
+
$2 !== void 0 && (x2 = Ya$1(p2, Xa$1($2, u2, f2, n2.filename, p2 === null ? null : p2.lookup)));
|
|
128053
|
+
const b2 = _2 === null ? null : ic(_2, n2.sources, f2, n2.filename, n2.snippets);
|
|
128045
128054
|
s2 !== void 0 && (s2.metadata = h2);
|
|
128046
|
-
const y2 = wc(c2, n2, o2, a2, h2,
|
|
128055
|
+
const y2 = wc(c2, n2, o2, a2, h2, u2, f2);
|
|
128047
128056
|
v3 !== null && v3.share(c2, h2);
|
|
128048
128057
|
const C3 = n2.math, k2 = C3 !== void 0 && C3 !== false;
|
|
128049
|
-
k2 && (c2.highlight !== null ? c2.highlight.with_math(C3) : m2 && Cn$2(c2, C3, n2.filename,
|
|
128058
|
+
k2 && (c2.highlight !== null ? c2.highlight.with_math(C3) : m2 && Cn$2(c2, C3, n2.filename, f2));
|
|
128050
128059
|
let w2;
|
|
128051
128060
|
x2 !== null && (cs(c2, x2.lines), c2.urls = x2.lookup);
|
|
128052
128061
|
const O2 = n2.smart_punctuation;
|
|
@@ -128056,15 +128065,15 @@ let Lr$1 = class Lr2 {
|
|
|
128056
128065
|
const W2 = n2.shells;
|
|
128057
128066
|
W2 !== void 0 && (c2.shells = W2);
|
|
128058
128067
|
try {
|
|
128059
|
-
b2 !== null && xc(c2, b2, n2.filename,
|
|
128068
|
+
b2 !== null && xc(c2, b2, n2.filename, f2);
|
|
128060
128069
|
do
|
|
128061
128070
|
switch (r3) {
|
|
128062
128071
|
case 4: {
|
|
128063
|
-
s2.template = y2, c2.update_trace_into(
|
|
128072
|
+
s2.template = y2, c2.update_trace_into(u2, f2, s2, xt$4(h2, v3)), s2.source = f2, s2.html = c2.html, w2 = s2;
|
|
128064
128073
|
break;
|
|
128065
128074
|
}
|
|
128066
128075
|
case 1: {
|
|
128067
|
-
const D2 = c2.update_mapped(
|
|
128076
|
+
const D2 = c2.update_mapped(u2, f2, f2.length === t2.length ? null : ii$1(t2), xt$4(h2, v3));
|
|
128068
128077
|
w2 = {
|
|
128069
128078
|
code: c2.html,
|
|
128070
128079
|
mappings: D2.mappings,
|
|
@@ -128075,12 +128084,12 @@ let Lr$1 = class Lr2 {
|
|
|
128075
128084
|
}
|
|
128076
128085
|
case 2: {
|
|
128077
128086
|
const D2 = n2.filename, z2 = xt$4(h2, v3);
|
|
128078
|
-
if (
|
|
128079
|
-
const ne2 = c2.update_v3(
|
|
128087
|
+
if (f2.length === t2.length) {
|
|
128088
|
+
const ne2 = c2.update_v3(u2, f2, t2, D2, z2);
|
|
128080
128089
|
w2 = { code: c2.html, map: ne2, metadata: h2, template: y2 };
|
|
128081
128090
|
break;
|
|
128082
128091
|
}
|
|
128083
|
-
const V3 = c2.update_mapped(
|
|
128092
|
+
const V3 = c2.update_mapped(u2, f2, ii$1(t2), z2), H2 = c2.html;
|
|
128084
128093
|
w2 = {
|
|
128085
128094
|
code: H2,
|
|
128086
128095
|
map: Yc(V3.mappings, t2, H2, D2),
|
|
@@ -128090,39 +128099,39 @@ let Lr$1 = class Lr2 {
|
|
|
128090
128099
|
break;
|
|
128091
128100
|
}
|
|
128092
128101
|
case 3: {
|
|
128093
|
-
const D2 = c2.update_trace(
|
|
128094
|
-
w2 = { code: c2.html, trace: D2, source:
|
|
128102
|
+
const D2 = c2.update_trace(u2, f2, xt$4(h2, v3));
|
|
128103
|
+
w2 = { code: c2.html, trace: D2, source: f2, metadata: h2, template: y2 };
|
|
128095
128104
|
break;
|
|
128096
128105
|
}
|
|
128097
128106
|
default:
|
|
128098
|
-
c2.update(
|
|
128107
|
+
c2.update(u2, f2, xt$4(h2, v3)), w2 = { code: c2.html, metadata: h2, template: y2 };
|
|
128099
128108
|
}
|
|
128100
|
-
while (k2 && c2.highlight === null && Us() && Cn$2(c2, C3, n2.filename,
|
|
128109
|
+
while (k2 && c2.highlight === null && Us() && Cn$2(c2, C3, n2.filename, f2));
|
|
128101
128110
|
} finally {
|
|
128102
128111
|
x2 !== null && (c2.imports = void 0, c2.urls = void 0), b2 !== null && (c2.fences = void 0, c2.imports = void 0), v3 !== null && (c2.imports = void 0), O2 !== void 0 && (c2.smart_punctuation = void 0), g2 !== null && (c2.footnotes = void 0), R2 && (c2.wrap_static = void 0), W2 !== void 0 && (c2.shells = void 0);
|
|
128103
128112
|
}
|
|
128104
|
-
return b2 !== null && (w2.snippets = b2.snippets), ni$1(w2, c2,
|
|
128113
|
+
return b2 !== null && (w2.snippets = b2.snippets), ni$1(w2, c2, f2), g2 !== null && ri$1(w2, g2, f2), v3 !== null && v3.leave(w2, s2 !== void 0), i2 !== void 0 && this.take_back(i2), w2;
|
|
128105
128114
|
}
|
|
128106
128115
|
};
|
|
128107
|
-
const
|
|
128116
|
+
const Mh = 1 << 19, Fh = 65536;
|
|
128108
128117
|
let yt$3 = null, Ss$2 = false;
|
|
128109
|
-
function
|
|
128110
|
-
if (Ss$2 || e2.length >
|
|
128118
|
+
function Jh(e2, t2) {
|
|
128119
|
+
if (Ss$2 || e2.length > Mh || t2 !== void 0 && us(t2))
|
|
128111
128120
|
return yc(e2, t2);
|
|
128112
128121
|
Ss$2 = true;
|
|
128113
128122
|
let n2 = false;
|
|
128114
128123
|
try {
|
|
128115
128124
|
yt$3 === null && (yt$3 = new Lr$1());
|
|
128116
128125
|
const r3 = yt$3.compile(e2, t2);
|
|
128117
|
-
return n2 = yt$3.capacity <=
|
|
128126
|
+
return n2 = yt$3.capacity <= Fh, r3;
|
|
128118
128127
|
} finally {
|
|
128119
128128
|
n2 ? yt$3.release() : yt$3 = null, Ss$2 = false;
|
|
128120
128129
|
}
|
|
128121
128130
|
}
|
|
128122
|
-
async function
|
|
128123
|
-
await t2, e2.pending = null, n2.data = e2.dispatcher.data(), n2.dependencies = e2.dispatcher.dependencies(),
|
|
128131
|
+
async function Wh(e2, t2, n2) {
|
|
128132
|
+
await t2, e2.pending = null, n2.data = e2.dispatcher.data(), n2.dependencies = e2.dispatcher.dependencies(), Xh(n2);
|
|
128124
128133
|
}
|
|
128125
|
-
function
|
|
128134
|
+
function Zh(e2) {
|
|
128126
128135
|
const t2 = e2.import_images === true, n2 = e2.sources !== false, r3 = e2.snippets !== false;
|
|
128127
128136
|
return !t2 && !n2 && !r3 ? null : {
|
|
128128
128137
|
images: t2,
|
|
@@ -128132,7 +128141,7 @@ function Wh(e2) {
|
|
|
128132
128141
|
filename: e2.filename
|
|
128133
128142
|
};
|
|
128134
128143
|
}
|
|
128135
|
-
function
|
|
128144
|
+
function Xh(e2) {
|
|
128136
128145
|
const t2 = e2._scan, n2 = e2._nodes;
|
|
128137
128146
|
if (e2._scan = null, t2 === null || n2 === null)
|
|
128138
128147
|
return;
|
|
@@ -137286,28 +137295,28 @@ let r$5 = class r2 {
|
|
|
137286
137295
|
/* NodeField.stride */
|
|
137287
137296
|
] & 255;
|
|
137288
137297
|
}
|
|
137289
|
-
/**
|
|
137298
|
+
/** offset where the current node starts in source */
|
|
137290
137299
|
get start() {
|
|
137291
137300
|
return this.n[
|
|
137292
137301
|
this.b + 1
|
|
137293
137302
|
/* NodeField.start */
|
|
137294
137303
|
];
|
|
137295
137304
|
}
|
|
137296
|
-
/**
|
|
137305
|
+
/** offset where the current node ends in source */
|
|
137297
137306
|
get end() {
|
|
137298
137307
|
return this.n[
|
|
137299
137308
|
this.b + 2
|
|
137300
137309
|
/* NodeField.end */
|
|
137301
137310
|
];
|
|
137302
137311
|
}
|
|
137303
|
-
/**
|
|
137312
|
+
/** offset where the value content of the current node starts */
|
|
137304
137313
|
get value_start() {
|
|
137305
137314
|
return this.n[
|
|
137306
137315
|
this.b + 3
|
|
137307
137316
|
/* NodeField.value_start */
|
|
137308
137317
|
];
|
|
137309
137318
|
}
|
|
137310
|
-
/**
|
|
137319
|
+
/** offset where the value content of the current node ends */
|
|
137311
137320
|
get value_end() {
|
|
137312
137321
|
return this.n[
|
|
137313
137322
|
this.b + 4
|
|
@@ -137348,7 +137357,7 @@ let r$5 = class r2 {
|
|
|
137348
137357
|
];
|
|
137349
137358
|
return t2 === 0 ? void 0 : this.buf._meta[t2 - 1];
|
|
137350
137359
|
}
|
|
137351
|
-
/** slice the source
|
|
137360
|
+
/** slice the source by offsets, for metadata offset pairs */
|
|
137352
137361
|
slice(t2, s2) {
|
|
137353
137362
|
return this.src.slice(t2, s2);
|
|
137354
137363
|
}
|
|
@@ -137892,7 +137901,7 @@ function compile_leniently(source2, options, diagnostics2, frontmatter) {
|
|
|
137892
137901
|
let last;
|
|
137893
137902
|
for (let attempt = 0; attempt < 8; attempt++) {
|
|
137894
137903
|
try {
|
|
137895
|
-
const result =
|
|
137904
|
+
const result = Jh(source2, opts);
|
|
137896
137905
|
if (result.snippets !== void 0 && opts.snippets !== false) {
|
|
137897
137906
|
opts = { ...opts, snippets: false };
|
|
137898
137907
|
continue;
|
|
@@ -188043,18 +188052,18 @@ function o$4() {
|
|
|
188043
188052
|
}
|
|
188044
188053
|
const ve$5 = "node_modules/.mdsvex/manifest.json", ge$5 = 1;
|
|
188045
188054
|
function Ae$5(t2) {
|
|
188046
|
-
const
|
|
188047
|
-
for (const
|
|
188048
|
-
const l2 =
|
|
188049
|
-
|
|
188050
|
-
for (const
|
|
188051
|
-
|
|
188052
|
-
}
|
|
188053
|
-
for (const
|
|
188054
|
-
|
|
188055
|
-
for (const
|
|
188056
|
-
|
|
188057
|
-
return (
|
|
188055
|
+
const o2 = /* @__PURE__ */ new Map();
|
|
188056
|
+
for (const i2 of Object.values(t2.templates)) {
|
|
188057
|
+
const l2 = i2.extra;
|
|
188058
|
+
o2.set(i2.id, (c2) => c2 !== "default" && l2 !== null && l2.names.includes(c2) ? l2.file : i2.file);
|
|
188059
|
+
for (const c2 of i2.directives)
|
|
188060
|
+
o2.set(c2.id, () => c2.file);
|
|
188061
|
+
}
|
|
188062
|
+
for (const i2 of t2.plugins ?? [])
|
|
188063
|
+
i2.components && o2.set(i2.components.id, () => i2.components.file), i2.directives && o2.set(i2.directives.id, () => i2.directives.file);
|
|
188064
|
+
for (const i2 of [...t2.components, ...t2.directives])
|
|
188065
|
+
o2.set(i2.id, () => i2.file);
|
|
188066
|
+
return (i2, l2) => o2.get(i2)?.(l2);
|
|
188058
188067
|
}
|
|
188059
188068
|
const Ce$4 = "mdsvex:components", Se$6 = "mdsvex:directives", De$5 = "directives", Ne$5 = "mdsvex:template/", be$6 = "mdsvex:template-directives/", Pe$5 = "mdsvex:plugin/";
|
|
188060
188069
|
let V$f = class V2 extends Error {
|
|
@@ -188096,28 +188105,28 @@ function v$g(t2) {
|
|
|
188096
188105
|
function ie$4(t2) {
|
|
188097
188106
|
try {
|
|
188098
188107
|
return re$5(t2);
|
|
188099
|
-
} catch (
|
|
188100
|
-
if (
|
|
188108
|
+
} catch (o2) {
|
|
188109
|
+
if (o2 instanceof V$f)
|
|
188101
188110
|
return null;
|
|
188102
|
-
throw
|
|
188111
|
+
throw o2;
|
|
188103
188112
|
}
|
|
188104
188113
|
}
|
|
188105
188114
|
function re$5(t2) {
|
|
188106
|
-
const
|
|
188107
|
-
let e2 = 0, h2 = true,
|
|
188115
|
+
const o2 = t2.length, i2 = /* @__PURE__ */ new Set(), l2 = [], c2 = [], m2 = [];
|
|
188116
|
+
let e2 = 0, h2 = true, f2 = false, d2 = false, a2 = "";
|
|
188108
188117
|
const r3 = (n2) => t2.charCodeAt(n2), p2 = () => {
|
|
188109
188118
|
throw new V$f();
|
|
188110
188119
|
};
|
|
188111
188120
|
function x2() {
|
|
188112
188121
|
let n2 = false;
|
|
188113
|
-
for (; e2 <
|
|
188122
|
+
for (; e2 < o2; ) {
|
|
188114
188123
|
const s2 = r3(e2);
|
|
188115
188124
|
if (s2 === 10 || s2 === 13 || s2 === 8232 || s2 === 8233)
|
|
188116
188125
|
n2 = true, e2++;
|
|
188117
188126
|
else if (s2 <= 32 || s2 === 160 || s2 === 65279)
|
|
188118
188127
|
e2++;
|
|
188119
188128
|
else if (s2 === 47 && r3(e2 + 1) === 47)
|
|
188120
|
-
for (; e2 <
|
|
188129
|
+
for (; e2 < o2 && r3(e2) !== 10 && r3(e2) !== 13; )
|
|
188121
188130
|
e2++;
|
|
188122
188131
|
else if (s2 === 47 && r3(e2 + 1) === 42) {
|
|
188123
188132
|
const u2 = t2.indexOf("*/", e2 + 2);
|
|
@@ -188132,13 +188141,13 @@ function re$5(t2) {
|
|
|
188132
188141
|
}
|
|
188133
188142
|
function E2() {
|
|
188134
188143
|
const n2 = e2;
|
|
188135
|
-
for (; e2 <
|
|
188144
|
+
for (; e2 < o2 && I$h(r3(e2)); )
|
|
188136
188145
|
e2++;
|
|
188137
|
-
return e2 === n2 && p2(),
|
|
188146
|
+
return e2 === n2 && p2(), i2.add(n2), t2.slice(n2, e2);
|
|
188138
188147
|
}
|
|
188139
188148
|
function g2() {
|
|
188140
188149
|
const n2 = e2;
|
|
188141
|
-
for (; e2 <
|
|
188150
|
+
for (; e2 < o2; ) {
|
|
188142
188151
|
const s2 = r3(e2);
|
|
188143
188152
|
if (I$h(s2) || s2 === 46)
|
|
188144
188153
|
e2++;
|
|
@@ -188150,7 +188159,7 @@ function re$5(t2) {
|
|
|
188150
188159
|
}
|
|
188151
188160
|
function R2() {
|
|
188152
188161
|
const n2 = r3(e2++);
|
|
188153
|
-
for (; e2 <
|
|
188162
|
+
for (; e2 < o2; ) {
|
|
188154
188163
|
const s2 = r3(e2);
|
|
188155
188164
|
if (s2 === 92)
|
|
188156
188165
|
e2 += 2;
|
|
@@ -188162,7 +188171,7 @@ function re$5(t2) {
|
|
|
188162
188171
|
p2();
|
|
188163
188172
|
}
|
|
188164
188173
|
function L2() {
|
|
188165
|
-
for (; e2 <
|
|
188174
|
+
for (; e2 < o2; ) {
|
|
188166
188175
|
const n2 = r3(e2);
|
|
188167
188176
|
if (n2 === 92)
|
|
188168
188177
|
e2 += 2;
|
|
@@ -188170,7 +188179,7 @@ function re$5(t2) {
|
|
|
188170
188179
|
e2++;
|
|
188171
188180
|
return;
|
|
188172
188181
|
} else if (n2 === 36 && r3(e2 + 1) === 123) {
|
|
188173
|
-
e2 += 2,
|
|
188182
|
+
e2 += 2, c2.push(U$f), m2.push(123);
|
|
188174
188183
|
return;
|
|
188175
188184
|
} else
|
|
188176
188185
|
e2++;
|
|
@@ -188180,7 +188189,7 @@ function re$5(t2) {
|
|
|
188180
188189
|
function X2() {
|
|
188181
188190
|
e2++;
|
|
188182
188191
|
let n2 = false;
|
|
188183
|
-
for (; e2 <
|
|
188192
|
+
for (; e2 < o2; ) {
|
|
188184
188193
|
const s2 = r3(e2);
|
|
188185
188194
|
if (s2 === 92)
|
|
188186
188195
|
e2 += 2;
|
|
@@ -188191,7 +188200,7 @@ function re$5(t2) {
|
|
|
188191
188200
|
else if (s2 === 93)
|
|
188192
188201
|
n2 = false, e2++;
|
|
188193
188202
|
else if (s2 === 47 && !n2) {
|
|
188194
|
-
for (e2++; e2 <
|
|
188203
|
+
for (e2++; e2 < o2 && I$h(r3(e2)); )
|
|
188195
188204
|
e2++;
|
|
188196
188205
|
return;
|
|
188197
188206
|
} else
|
|
@@ -188200,10 +188209,10 @@ function re$5(t2) {
|
|
|
188200
188209
|
p2();
|
|
188201
188210
|
}
|
|
188202
188211
|
function T2() {
|
|
188203
|
-
h2 = false,
|
|
188212
|
+
h2 = false, f2 = true;
|
|
188204
188213
|
}
|
|
188205
188214
|
function w2() {
|
|
188206
|
-
h2 = true,
|
|
188215
|
+
h2 = true, f2 = false;
|
|
188207
188216
|
}
|
|
188208
188217
|
function O2() {
|
|
188209
188218
|
const n2 = r3(e2), s2 = d2;
|
|
@@ -188219,21 +188228,21 @@ function re$5(t2) {
|
|
|
188219
188228
|
const u2 = E2();
|
|
188220
188229
|
return !s2 && oe$4.has(u2) ? w2() : T2(), a2 = s2 ? "v" : u2, u2;
|
|
188221
188230
|
} else if (n2 === 40 || n2 === 91 || n2 === 123)
|
|
188222
|
-
|
|
188231
|
+
c2.push(n2 === 40 && ne$5.has(a2) ? k$o : n2 === 123 && se$5.has(a2) ? y$i : te$5), m2.push(n2), e2++, w2(), a2 = String.fromCharCode(n2);
|
|
188223
188232
|
else if (n2 === 41 || n2 === 93 || n2 === 125) {
|
|
188224
|
-
const u2 =
|
|
188233
|
+
const u2 = c2.pop(), _2 = m2.pop();
|
|
188225
188234
|
(u2 === void 0 || _2 !== (n2 === 41 ? 40 : n2 - 2)) && p2(), e2++, u2 === U$f ? (L2(), T2(), a2 = "v") : u2 === k$o ? (w2(), a2 = ")") : (T2(), u2 === y$i && (h2 = true), a2 = String.fromCharCode(n2));
|
|
188226
188235
|
} else if (n2 === 46) {
|
|
188227
188236
|
const u2 = r3(e2 + 1) === 46 && r3(e2 + 2) === 46;
|
|
188228
188237
|
e2 += u2 ? 3 : 1, d2 = !u2, w2(), a2 = ".";
|
|
188229
|
-
} else n2 === 61 && r3(e2 + 1) === 62 ? (e2 += 2, w2(), a2 = "=>") : (n2 === 43 || n2 === 45) && r3(e2 + 1) === n2 ? (e2 += 2,
|
|
188238
|
+
} else n2 === 61 && r3(e2 + 1) === 62 ? (e2 += 2, w2(), a2 = "=>") : (n2 === 43 || n2 === 45) && r3(e2 + 1) === n2 ? (e2 += 2, f2 || w2(), a2 = "v") : (e2++, w2(), a2 = String.fromCharCode(n2));
|
|
188230
188239
|
return "";
|
|
188231
188240
|
}
|
|
188232
188241
|
function B2() {
|
|
188233
188242
|
const n2 = r3(e2);
|
|
188234
188243
|
if (I$h(n2) && !v$g(n2)) {
|
|
188235
188244
|
let s2 = e2;
|
|
188236
|
-
for (; s2 <
|
|
188245
|
+
for (; s2 < o2 && I$h(r3(s2)); )
|
|
188237
188246
|
s2++;
|
|
188238
188247
|
const u2 = t2.slice(e2, s2);
|
|
188239
188248
|
return u2 !== "instanceof" && u2 !== "in";
|
|
@@ -188241,16 +188250,16 @@ function re$5(t2) {
|
|
|
188241
188250
|
return (n2 === 43 || n2 === 45) && r3(e2 + 1) === n2 ? true : v$g(n2) || n2 === 34 || n2 === 39 || n2 === 123 || n2 === 33 || n2 === 126 || n2 === 64;
|
|
188242
188251
|
}
|
|
188243
188252
|
function M2(n2) {
|
|
188244
|
-
const s2 =
|
|
188253
|
+
const s2 = c2.length;
|
|
188245
188254
|
for (; ; ) {
|
|
188246
188255
|
const u2 = x2();
|
|
188247
|
-
if (e2 >=
|
|
188248
|
-
if (n2 === D$m &&
|
|
188256
|
+
if (e2 >= o2) {
|
|
188257
|
+
if (n2 === D$m && c2.length === s2)
|
|
188249
188258
|
return;
|
|
188250
188259
|
p2();
|
|
188251
188260
|
}
|
|
188252
188261
|
const _2 = r3(e2);
|
|
188253
|
-
if (
|
|
188262
|
+
if (c2.length === s2 && (_2 === 44 || _2 === 59 || _2 === 41 || _2 === 93 || _2 === 125 || n2 === D$m && u2 && f2 && B2()))
|
|
188254
188263
|
return;
|
|
188255
188264
|
O2();
|
|
188256
188265
|
}
|
|
@@ -188302,26 +188311,26 @@ function re$5(t2) {
|
|
|
188302
188311
|
l2.push({ start: n2, end: e2, names: s2 }), w2(), a2 = ";";
|
|
188303
188312
|
}
|
|
188304
188313
|
if (t2.startsWith("#!"))
|
|
188305
|
-
for (; e2 <
|
|
188314
|
+
for (; e2 < o2 && r3(e2) !== 10; )
|
|
188306
188315
|
e2++;
|
|
188307
|
-
for (; x2(), !(e2 >=
|
|
188308
|
-
const n2 =
|
|
188316
|
+
for (; x2(), !(e2 >= o2); ) {
|
|
188317
|
+
const n2 = c2.length === 0, s2 = e2, u2 = O2();
|
|
188309
188318
|
!n2 || u2 !== "export" || (x2(), /^(?:const|let|var)(?![\w$])/.exec(t2.slice(e2, e2 + 6)) === null) || (E2(), H2(s2));
|
|
188310
188319
|
}
|
|
188311
|
-
return
|
|
188320
|
+
return c2.length !== 0 && p2(), { declarations: l2, words: i2 };
|
|
188312
188321
|
}
|
|
188313
188322
|
function le$5() {
|
|
188314
188323
|
return { names: [], stars: [], namespaces: [], reexports: [], imports: [] };
|
|
188315
188324
|
}
|
|
188316
188325
|
const ce$5 = /^export\s*\*\s*as\s+([\w$]+|"[^"]*"|'[^']*')\s*from/;
|
|
188317
|
-
function ke$5(t2,
|
|
188318
|
-
const l2 =
|
|
188319
|
-
return l2 === null || l2.trim() === "" ? le$5() : fe$5(
|
|
188326
|
+
function ke$5(t2, o2, i2) {
|
|
188327
|
+
const l2 = o2 === "svelte" ? xe$6(t2) : t2;
|
|
188328
|
+
return l2 === null || l2.trim() === "" ? le$5() : fe$5(i2 === void 0 ? l2 : i2(l2));
|
|
188320
188329
|
}
|
|
188321
188330
|
function fe$5(t2) {
|
|
188322
|
-
const [
|
|
188323
|
-
for (let
|
|
188324
|
-
const d2 =
|
|
188331
|
+
const [o2, i2] = parse(t2), l2 = ue$4.test(t2) ? de$5(t2, o2, i2) ?? i2.map((f2) => f2.n) : i2.map((f2) => f2.n), c2 = [], m2 = [], e2 = [], h2 = [];
|
|
188332
|
+
for (let f2 = 0; f2 < o2.length; f2++) {
|
|
188333
|
+
const d2 = o2[f2];
|
|
188325
188334
|
if (d2.n === void 0 || d2.t !== 1)
|
|
188326
188335
|
continue;
|
|
188327
188336
|
if (!t2.startsWith("export", d2.ss)) {
|
|
@@ -188330,7 +188339,7 @@ function fe$5(t2) {
|
|
|
188330
188339
|
}
|
|
188331
188340
|
const a2 = t2.slice(d2.ss, d2.se);
|
|
188332
188341
|
if (/^export\s*\*\s*from/.test(a2))
|
|
188333
|
-
|
|
188342
|
+
c2.push(d2.n);
|
|
188334
188343
|
else {
|
|
188335
188344
|
const r3 = ce$5.exec(a2);
|
|
188336
188345
|
if (r3 !== null) {
|
|
@@ -188348,31 +188357,31 @@ function fe$5(t2) {
|
|
|
188348
188357
|
}
|
|
188349
188358
|
}
|
|
188350
188359
|
}
|
|
188351
|
-
return { names: l2, stars:
|
|
188360
|
+
return { names: l2, stars: c2, namespaces: m2, reexports: e2, imports: h2 };
|
|
188352
188361
|
}
|
|
188353
188362
|
const ae$4 = /^export\s*\{([^}]*)\}/, q$e = /([\w$]+|"[^"]*"|'[^']*')(?:\s+as\s+([\w$]+|"[^"]*"|'[^']*'))?/g;
|
|
188354
188363
|
function b$j(t2) {
|
|
188355
188364
|
return /^["']/.test(t2) ? t2.slice(1, -1) : t2;
|
|
188356
188365
|
}
|
|
188357
188366
|
const ue$4 = /\bexport\s+(?:const|let|var)\b/, W$d = /\bexport\s+(?:const|let|var)\b/g, F$j = /["']/;
|
|
188358
|
-
function de$5(t2,
|
|
188367
|
+
function de$5(t2, o2, i2) {
|
|
188359
188368
|
const l2 = ie$4(t2);
|
|
188360
188369
|
if (l2 === null)
|
|
188361
188370
|
return null;
|
|
188362
|
-
const { declarations:
|
|
188363
|
-
for (const
|
|
188364
|
-
if (
|
|
188371
|
+
const { declarations: c2, words: m2 } = l2;
|
|
188372
|
+
for (const f2 of o2)
|
|
188373
|
+
if (f2.t === 1 && f2.ss >= 0 && !m2.has(f2.ss))
|
|
188365
188374
|
return null;
|
|
188366
188375
|
const e2 = [];
|
|
188367
188376
|
let h2 = -1;
|
|
188368
|
-
for (const
|
|
188369
|
-
|
|
188370
|
-
const d2 = F$j.test(t2[
|
|
188371
|
-
if (
|
|
188377
|
+
for (const f2 of i2) {
|
|
188378
|
+
f2.s >= 0 && (h2 = f2.s);
|
|
188379
|
+
const d2 = F$j.test(t2[f2.s] ?? "") || F$j.test(t2[f2.s - 1] ?? "");
|
|
188380
|
+
if (f2.s >= 0 && !d2 && !m2.has(f2.s))
|
|
188372
188381
|
return null;
|
|
188373
|
-
const a2 =
|
|
188382
|
+
const a2 = c2.find((p2) => p2.start <= h2 && h2 < p2.end);
|
|
188374
188383
|
if (a2 === void 0) {
|
|
188375
|
-
e2.push({ at: h2, name:
|
|
188384
|
+
e2.push({ at: h2, name: f2.n });
|
|
188376
188385
|
continue;
|
|
188377
188386
|
}
|
|
188378
188387
|
W$d.lastIndex = a2.start + 1;
|
|
@@ -188380,24 +188389,24 @@ function de$5(t2, i2, o2) {
|
|
|
188380
188389
|
if (r3 !== null && r3.index < h2)
|
|
188381
188390
|
return null;
|
|
188382
188391
|
}
|
|
188383
|
-
for (const
|
|
188384
|
-
for (const d2 of
|
|
188385
|
-
e2.push({ at:
|
|
188386
|
-
return e2.sort((
|
|
188392
|
+
for (const f2 of c2)
|
|
188393
|
+
for (const d2 of f2.names)
|
|
188394
|
+
e2.push({ at: f2.start, name: d2 });
|
|
188395
|
+
return e2.sort((f2, d2) => f2.at - d2.at).map((f2) => f2.name);
|
|
188387
188396
|
}
|
|
188388
188397
|
const C$k = /<script((?:\s+[^\s=>"'/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>"']+))?)*)\s*>/gi, P$h = /<\/script\s*>/gi, pe$5 = /<!--[\s\S]*?-->/g, me$5 = /(?:^|\s)module(?:\s|=|$)|(?:^|\s)context\s*=\s*["']?module\b/;
|
|
188389
188398
|
function xe$6(t2) {
|
|
188390
|
-
const
|
|
188399
|
+
const o2 = t2.includes("<!--") ? t2.replace(pe$5, (l2) => " ".repeat(l2.length)) : t2;
|
|
188391
188400
|
C$k.lastIndex = 0;
|
|
188392
|
-
let
|
|
188393
|
-
for (; (
|
|
188401
|
+
let i2;
|
|
188402
|
+
for (; (i2 = C$k.exec(o2)) !== null; ) {
|
|
188394
188403
|
const l2 = C$k.lastIndex;
|
|
188395
188404
|
P$h.lastIndex = l2;
|
|
188396
|
-
const
|
|
188397
|
-
if (
|
|
188405
|
+
const c2 = P$h.exec(o2);
|
|
188406
|
+
if (c2 === null)
|
|
188398
188407
|
return null;
|
|
188399
|
-
if (me$5.test(
|
|
188400
|
-
return
|
|
188408
|
+
if (me$5.test(i2[1]))
|
|
188409
|
+
return o2.slice(l2, c2.index);
|
|
188401
188410
|
C$k.lastIndex = P$h.lastIndex;
|
|
188402
188411
|
}
|
|
188403
188412
|
return null;
|