215 lines
6.7 KiB
JavaScript
215 lines
6.7 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
|
|
* Module id: 596136
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e, t, i) => {
|
|
"use strict";
|
|
var r = e.r(740496),
|
|
a = e.r(127707),
|
|
n = e.r(823840),
|
|
A = e.r(344085),
|
|
s = e.r(631273),
|
|
o = e.r(963965);
|
|
t.exports = function (e, t) {
|
|
var i,
|
|
n,
|
|
A = {};
|
|
for (n in (t || (t = {}), u)) (i = t[n]), (A[n] = null == i ? u[n] : i);
|
|
return (
|
|
(A.position.indent || A.position.start) &&
|
|
((A.indent = A.position.indent || []),
|
|
(A.position = A.position.start)),
|
|
(function (e, t) {
|
|
var i,
|
|
n,
|
|
A,
|
|
u,
|
|
C,
|
|
E,
|
|
B,
|
|
b,
|
|
y,
|
|
w,
|
|
Q,
|
|
S,
|
|
k,
|
|
v,
|
|
x,
|
|
D,
|
|
T,
|
|
N,
|
|
R,
|
|
M,
|
|
P,
|
|
L = t.additional,
|
|
F = t.nonTerminated,
|
|
U = t.text,
|
|
O = t.reference,
|
|
_ = t.warning,
|
|
G = t.textContext,
|
|
K = t.referenceContext,
|
|
H = t.warningContext,
|
|
j = t.position,
|
|
q = t.indent || [],
|
|
Y = e.length,
|
|
J = 0,
|
|
z = -1,
|
|
V = j.column || 1,
|
|
W = j.line || 1,
|
|
$ = "",
|
|
X = [];
|
|
for (
|
|
"string" == typeof L && (L = L.charCodeAt(0)),
|
|
N = Z(),
|
|
w = _
|
|
? function (e, t) {
|
|
var i = Z();
|
|
(i.column += t), (i.offset += t), _.call(H, f[e], i, e);
|
|
}
|
|
: d,
|
|
J--,
|
|
Y++;
|
|
++J < Y;
|
|
|
|
)
|
|
if ((10 === B && (V = q[z] || 1), 38 === (B = e.charCodeAt(J)))) {
|
|
if (
|
|
9 === (y = e.charCodeAt(J + 1)) ||
|
|
10 === y ||
|
|
12 === y ||
|
|
32 === y ||
|
|
38 === y ||
|
|
60 === y ||
|
|
y != y ||
|
|
(L && y === L)
|
|
) {
|
|
($ += c(B)), V++;
|
|
continue;
|
|
}
|
|
for (
|
|
v = x = J + 1,
|
|
P = x,
|
|
35 === y
|
|
? ((P = ++v),
|
|
88 === (y = e.charCodeAt(P)) || 120 === y
|
|
? ((D = p), (P = ++v))
|
|
: (D = h))
|
|
: (D = g),
|
|
A = "",
|
|
k = "",
|
|
E = "",
|
|
T = I[D],
|
|
P--;
|
|
++P < Y && T((y = e.charCodeAt(P)));
|
|
|
|
)
|
|
(E += c(y)), D === g && l.call(r, E) && ((A = E), (k = r[E]));
|
|
if (
|
|
((C = 59 === e.charCodeAt(P)) &&
|
|
(P++, (u = D === g && o(E)) && ((A = E), (k = u))),
|
|
(M = 1 + P - x),
|
|
C || F)
|
|
) {
|
|
E
|
|
? D === g
|
|
? (C && !k
|
|
? w(5, 1)
|
|
: (A !== E &&
|
|
((M = 1 + (P = v + A.length) - v), (C = !1)),
|
|
C ||
|
|
((Q = A ? 1 : 3),
|
|
t.attribute
|
|
? 61 === (y = e.charCodeAt(P))
|
|
? (w(Q, M), (k = null))
|
|
: s(y)
|
|
? (k = null)
|
|
: w(Q, M)
|
|
: w(Q, M))),
|
|
(b = k))
|
|
: (C || w(2, M),
|
|
((i = b = parseInt(E, m[D])) >= 55296 && i <= 57343) ||
|
|
i > 1114111
|
|
? (w(7, M), (b = c(65533)))
|
|
: b in a
|
|
? (w(6, M), (b = a[b]))
|
|
: ((S = ""),
|
|
(((n = b) >= 1 && n <= 8) ||
|
|
11 === n ||
|
|
(n >= 13 && n <= 31) ||
|
|
(n >= 127 && n <= 159) ||
|
|
(n >= 64976 && n <= 65007) ||
|
|
(65535 & n) == 65535 ||
|
|
(65535 & n) == 65534) &&
|
|
w(6, M),
|
|
b > 65535 &&
|
|
((b -= 65536),
|
|
(S += c((b >>> 10) | 55296)),
|
|
(b = 56320 | (1023 & b))),
|
|
(b = S + c(b))))
|
|
: D !== g && w(4, M);
|
|
}
|
|
b
|
|
? (ee(),
|
|
(N = Z()),
|
|
(J = P - 1),
|
|
(V += P - x + 1),
|
|
X.push(b),
|
|
(R = Z()),
|
|
R.offset++,
|
|
O && O.call(K, b, { start: N, end: R }, e.slice(x - 1, P)),
|
|
(N = R))
|
|
: ((E = e.slice(x - 1, P)),
|
|
($ += E),
|
|
(V += E.length),
|
|
(J = P - 1));
|
|
} else
|
|
10 === B && (W++, z++, (V = 0)),
|
|
B == B ? (($ += c(B)), V++) : ee();
|
|
return X.join("");
|
|
function Z() {
|
|
return { line: W, column: V, offset: J + (j.offset || 0) };
|
|
}
|
|
function ee() {
|
|
$ &&
|
|
(X.push($), U && U.call(G, $, { start: N, end: Z() }), ($ = ""));
|
|
}
|
|
})(e, A)
|
|
);
|
|
};
|
|
var l = {}.hasOwnProperty,
|
|
c = String.fromCharCode,
|
|
d = Function.prototype,
|
|
u = {
|
|
warning: null,
|
|
reference: null,
|
|
text: null,
|
|
warningContext: null,
|
|
referenceContext: null,
|
|
textContext: null,
|
|
position: {},
|
|
additional: null,
|
|
attribute: !1,
|
|
nonTerminated: !0,
|
|
},
|
|
g = "named",
|
|
p = "hexadecimal",
|
|
h = "decimal",
|
|
m = {};
|
|
(m[p] = 16), (m[h] = 10);
|
|
var I = {};
|
|
(I[g] = s), (I[h] = n), (I[p] = A);
|
|
var f = {};
|
|
(f[1] = "Named character references must be terminated by a semicolon"),
|
|
(f[2] = "Numeric character references must be terminated by a semicolon"),
|
|
(f[3] = "Named character references cannot be empty"),
|
|
(f[4] = "Numeric character references cannot be empty"),
|
|
(f[5] = "Named character references must be known"),
|
|
(f[6] = "Numeric character references cannot be disallowed"),
|
|
(f[7] =
|
|
"Numeric character references cannot be outside the permissible Unicode range");
|
|
};
|
|
|
|
export default moduleFactory;
|