react-markdown-table-ts 1.3.9 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +22 -22
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +698 -998
- package/dist/prism-markdown.d.ts +8 -0
- package/dist/prism-markdown.d.ts.map +1 -0
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import Ge, { useRef as
|
2
|
-
var
|
3
|
-
function
|
4
|
-
return
|
1
|
+
import Ge, { useRef as yt, useId as wt, useDeferredValue as kt, useTransition as xt, useMemo as Et, useEffect as We } from "react";
|
2
|
+
var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
3
|
+
function At(g) {
|
4
|
+
return g && g.__esModule && Object.prototype.hasOwnProperty.call(g, "default") ? g.default : g;
|
5
5
|
}
|
6
|
-
var ye = { exports: {} },
|
6
|
+
var ye = { exports: {} }, fe = {};
|
7
7
|
/**
|
8
8
|
* @license React
|
9
9
|
* react-jsx-runtime.production.min.js
|
@@ -14,20 +14,20 @@ var ye = { exports: {} }, de = {};
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
15
15
|
*/
|
16
16
|
var He;
|
17
|
-
function
|
18
|
-
if (He) return
|
17
|
+
function Ft() {
|
18
|
+
if (He) return fe;
|
19
19
|
He = 1;
|
20
|
-
var
|
21
|
-
function
|
22
|
-
var
|
23
|
-
|
24
|
-
for (
|
25
|
-
if (a && a.defaultProps) for (
|
26
|
-
return { $$typeof:
|
20
|
+
var g = Ge, f = Symbol.for("react.element"), r = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, v = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
|
21
|
+
function d(a, u, w) {
|
22
|
+
var k, y = {}, S = null, O = null;
|
23
|
+
w !== void 0 && (S = "" + w), u.key !== void 0 && (S = "" + u.key), u.ref !== void 0 && (O = u.ref);
|
24
|
+
for (k in u) m.call(u, k) && !x.hasOwnProperty(k) && (y[k] = u[k]);
|
25
|
+
if (a && a.defaultProps) for (k in u = a.defaultProps, u) y[k] === void 0 && (y[k] = u[k]);
|
26
|
+
return { $$typeof: f, type: a, key: S, ref: O, props: y, _owner: v.current };
|
27
27
|
}
|
28
|
-
return
|
28
|
+
return fe.Fragment = r, fe.jsx = d, fe.jsxs = d, fe;
|
29
29
|
}
|
30
|
-
var
|
30
|
+
var de = {};
|
31
31
|
/**
|
32
32
|
* @license React
|
33
33
|
* react-jsx-runtime.development.js
|
@@ -38,48 +38,48 @@ var fe = {};
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
39
39
|
*/
|
40
40
|
var qe;
|
41
|
-
function
|
41
|
+
function St() {
|
42
42
|
return qe || (qe = 1, process.env.NODE_ENV !== "production" && (function() {
|
43
|
-
var
|
43
|
+
var g = Ge, f = Symbol.for("react.element"), r = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), a = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), M = Symbol.iterator, $ = "@@iterator";
|
44
44
|
function _(e) {
|
45
45
|
if (e === null || typeof e != "object")
|
46
46
|
return null;
|
47
|
-
var i =
|
47
|
+
var i = M && e[M] || e[$];
|
48
48
|
return typeof i == "function" ? i : null;
|
49
49
|
}
|
50
|
-
var
|
51
|
-
function
|
50
|
+
var C = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
51
|
+
function t(e) {
|
52
52
|
{
|
53
|
-
for (var i = arguments.length,
|
54
|
-
|
55
|
-
|
53
|
+
for (var i = arguments.length, c = new Array(i > 1 ? i - 1 : 0), b = 1; b < i; b++)
|
54
|
+
c[b - 1] = arguments[b];
|
55
|
+
n("error", e, c);
|
56
56
|
}
|
57
57
|
}
|
58
|
-
function
|
58
|
+
function n(e, i, c) {
|
59
59
|
{
|
60
|
-
var
|
61
|
-
|
62
|
-
var
|
63
|
-
return String(
|
60
|
+
var b = C.ReactDebugCurrentFrame, R = b.getStackAddendum();
|
61
|
+
R !== "" && (i += "%s", c = c.concat([R]));
|
62
|
+
var T = c.map(function(F) {
|
63
|
+
return String(F);
|
64
64
|
});
|
65
|
-
|
65
|
+
T.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, T);
|
66
66
|
}
|
67
67
|
}
|
68
|
-
var o = !1, s = !1,
|
69
|
-
|
70
|
-
function
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === m || e === x ||
|
68
|
+
var o = !1, s = !1, l = !1, h = !1, A = !1, p;
|
69
|
+
p = Symbol.for("react.module.reference");
|
70
|
+
function P(e) {
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === m || e === x || A || e === v || e === w || e === k || h || e === O || o || s || l || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === y || e.$$typeof === d || e.$$typeof === a || e.$$typeof === u || // This needs to include all possible module reference object
|
72
72
|
// types supported by any Flight configuration anywhere since
|
73
73
|
// we don't know which Flight build this will end up being used
|
74
74
|
// with.
|
75
|
-
e.$$typeof ===
|
75
|
+
e.$$typeof === p || e.getModuleId !== void 0));
|
76
76
|
}
|
77
|
-
function z(e, i,
|
78
|
-
var
|
79
|
-
if (
|
80
|
-
return
|
81
|
-
var
|
82
|
-
return
|
77
|
+
function z(e, i, c) {
|
78
|
+
var b = e.displayName;
|
79
|
+
if (b)
|
80
|
+
return b;
|
81
|
+
var R = i.displayName || i.name || "";
|
82
|
+
return R !== "" ? c + "(" + R + ")" : c;
|
83
83
|
}
|
84
84
|
function U(e) {
|
85
85
|
return e.displayName || "Context";
|
@@ -87,22 +87,22 @@ function Fn() {
|
|
87
87
|
function Y(e) {
|
88
88
|
if (e == null)
|
89
89
|
return null;
|
90
|
-
if (typeof e.tag == "number" &&
|
90
|
+
if (typeof e.tag == "number" && t("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
91
91
|
return e.displayName || e.name || null;
|
92
92
|
if (typeof e == "string")
|
93
93
|
return e;
|
94
94
|
switch (e) {
|
95
95
|
case m:
|
96
96
|
return "Fragment";
|
97
|
-
case
|
97
|
+
case r:
|
98
98
|
return "Portal";
|
99
99
|
case x:
|
100
100
|
return "Profiler";
|
101
101
|
case v:
|
102
102
|
return "StrictMode";
|
103
|
-
case
|
103
|
+
case w:
|
104
104
|
return "Suspense";
|
105
|
-
case
|
105
|
+
case k:
|
106
106
|
return "SuspenseList";
|
107
107
|
}
|
108
108
|
if (typeof e == "object")
|
@@ -110,18 +110,18 @@ function Fn() {
|
|
110
110
|
case a:
|
111
111
|
var i = e;
|
112
112
|
return U(i) + ".Consumer";
|
113
|
-
case
|
114
|
-
var
|
115
|
-
return U(
|
116
|
-
case
|
113
|
+
case d:
|
114
|
+
var c = e;
|
115
|
+
return U(c._context) + ".Provider";
|
116
|
+
case u:
|
117
117
|
return z(e, e.render, "ForwardRef");
|
118
|
-
case
|
119
|
-
var
|
120
|
-
return
|
121
|
-
case
|
122
|
-
var
|
118
|
+
case y:
|
119
|
+
var b = e.displayName || null;
|
120
|
+
return b !== null ? b : Y(e.type) || "Memo";
|
121
|
+
case S: {
|
122
|
+
var R = e, T = R._payload, F = R._init;
|
123
123
|
try {
|
124
|
-
return Y(T
|
124
|
+
return Y(F(T));
|
125
125
|
} catch {
|
126
126
|
return null;
|
127
127
|
}
|
@@ -129,14 +129,14 @@ function Fn() {
|
|
129
129
|
}
|
130
130
|
return null;
|
131
131
|
}
|
132
|
-
var B = Object.assign, Q = 0, pe, le,
|
132
|
+
var B = Object.assign, Q = 0, pe, le, I, H, G, ee, W;
|
133
133
|
function he() {
|
134
134
|
}
|
135
135
|
he.__reactDisabledLog = !0;
|
136
136
|
function V() {
|
137
137
|
{
|
138
138
|
if (Q === 0) {
|
139
|
-
pe = console.log, le = console.info,
|
139
|
+
pe = console.log, le = console.info, I = console.warn, H = console.error, G = console.group, ee = console.groupCollapsed, W = console.groupEnd;
|
140
140
|
var e = {
|
141
141
|
configurable: !0,
|
142
142
|
enumerable: !0,
|
@@ -156,7 +156,7 @@ function Fn() {
|
|
156
156
|
Q++;
|
157
157
|
}
|
158
158
|
}
|
159
|
-
function
|
159
|
+
function te() {
|
160
160
|
{
|
161
161
|
if (Q--, Q === 0) {
|
162
162
|
var e = {
|
@@ -172,7 +172,7 @@ function Fn() {
|
|
172
172
|
value: le
|
173
173
|
}),
|
174
174
|
warn: B({}, e, {
|
175
|
-
value:
|
175
|
+
value: I
|
176
176
|
}),
|
177
177
|
error: B({}, e, {
|
178
178
|
value: H
|
@@ -184,163 +184,163 @@ function Fn() {
|
|
184
184
|
value: ee
|
185
185
|
}),
|
186
186
|
groupEnd: B({}, e, {
|
187
|
-
value:
|
187
|
+
value: W
|
188
188
|
})
|
189
189
|
});
|
190
190
|
}
|
191
|
-
Q < 0 &&
|
191
|
+
Q < 0 && t("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
192
192
|
}
|
193
193
|
}
|
194
|
-
var J =
|
195
|
-
function
|
194
|
+
var J = C.ReactCurrentDispatcher, Z;
|
195
|
+
function K(e, i, c) {
|
196
196
|
{
|
197
|
-
if (
|
197
|
+
if (Z === void 0)
|
198
198
|
try {
|
199
199
|
throw Error();
|
200
|
-
} catch (
|
201
|
-
var
|
202
|
-
|
200
|
+
} catch (R) {
|
201
|
+
var b = R.stack.trim().match(/\n( *(at )?)/);
|
202
|
+
Z = b && b[1] || "";
|
203
203
|
}
|
204
204
|
return `
|
205
|
-
` +
|
205
|
+
` + Z + e;
|
206
206
|
}
|
207
207
|
}
|
208
|
-
var
|
208
|
+
var re = !1, X;
|
209
209
|
{
|
210
210
|
var ae = typeof WeakMap == "function" ? WeakMap : Map;
|
211
211
|
X = new ae();
|
212
212
|
}
|
213
213
|
function me(e, i) {
|
214
|
-
if (!e ||
|
214
|
+
if (!e || re)
|
215
215
|
return "";
|
216
216
|
{
|
217
|
-
var
|
218
|
-
if (
|
219
|
-
return
|
217
|
+
var c = X.get(e);
|
218
|
+
if (c !== void 0)
|
219
|
+
return c;
|
220
220
|
}
|
221
|
-
var
|
222
|
-
|
223
|
-
var
|
221
|
+
var b;
|
222
|
+
re = !0;
|
223
|
+
var R = Error.prepareStackTrace;
|
224
224
|
Error.prepareStackTrace = void 0;
|
225
|
-
var
|
226
|
-
|
225
|
+
var T;
|
226
|
+
T = J.current, J.current = null, V();
|
227
227
|
try {
|
228
228
|
if (i) {
|
229
|
-
var
|
229
|
+
var F = function() {
|
230
230
|
throw Error();
|
231
231
|
};
|
232
|
-
if (Object.defineProperty(
|
232
|
+
if (Object.defineProperty(F.prototype, "props", {
|
233
233
|
set: function() {
|
234
234
|
throw Error();
|
235
235
|
}
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
237
237
|
try {
|
238
|
-
Reflect.construct(
|
239
|
-
} catch (
|
240
|
-
|
238
|
+
Reflect.construct(F, []);
|
239
|
+
} catch (N) {
|
240
|
+
b = N;
|
241
241
|
}
|
242
|
-
Reflect.construct(e, [],
|
242
|
+
Reflect.construct(e, [], F);
|
243
243
|
} else {
|
244
244
|
try {
|
245
|
-
|
246
|
-
} catch (
|
247
|
-
|
245
|
+
F.call();
|
246
|
+
} catch (N) {
|
247
|
+
b = N;
|
248
248
|
}
|
249
|
-
e.call(
|
249
|
+
e.call(F.prototype);
|
250
250
|
}
|
251
251
|
} else {
|
252
252
|
try {
|
253
253
|
throw Error();
|
254
|
-
} catch (
|
255
|
-
|
254
|
+
} catch (N) {
|
255
|
+
b = N;
|
256
256
|
}
|
257
257
|
e();
|
258
258
|
}
|
259
|
-
} catch (
|
260
|
-
if (
|
261
|
-
for (var
|
262
|
-
`), L =
|
263
|
-
`),
|
259
|
+
} catch (N) {
|
260
|
+
if (N && b && typeof N.stack == "string") {
|
261
|
+
for (var E = N.stack.split(`
|
262
|
+
`), L = b.stack.split(`
|
263
|
+
`), j = E.length - 1, D = L.length - 1; j >= 1 && D >= 0 && E[j] !== L[D]; )
|
264
264
|
D--;
|
265
|
-
for (;
|
266
|
-
if (
|
267
|
-
if (
|
265
|
+
for (; j >= 1 && D >= 0; j--, D--)
|
266
|
+
if (E[j] !== L[D]) {
|
267
|
+
if (j !== 1 || D !== 1)
|
268
268
|
do
|
269
|
-
if (
|
269
|
+
if (j--, D--, D < 0 || E[j] !== L[D]) {
|
270
270
|
var q = `
|
271
|
-
` +
|
271
|
+
` + E[j].replace(" at new ", " at ");
|
272
272
|
return e.displayName && q.includes("<anonymous>") && (q = q.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, q), q;
|
273
273
|
}
|
274
|
-
while (
|
274
|
+
while (j >= 1 && D >= 0);
|
275
275
|
break;
|
276
276
|
}
|
277
277
|
}
|
278
278
|
} finally {
|
279
|
-
|
279
|
+
re = !1, J.current = T, te(), Error.prepareStackTrace = R;
|
280
280
|
}
|
281
|
-
var oe = e ? e.displayName || e.name : "",
|
282
|
-
return typeof e == "function" && X.set(e,
|
281
|
+
var oe = e ? e.displayName || e.name : "", ne = oe ? K(oe) : "";
|
282
|
+
return typeof e == "function" && X.set(e, ne), ne;
|
283
283
|
}
|
284
|
-
function ue(e, i,
|
284
|
+
function ue(e, i, c) {
|
285
285
|
return me(e, !1);
|
286
286
|
}
|
287
|
-
function
|
287
|
+
function Ze(e) {
|
288
288
|
var i = e.prototype;
|
289
289
|
return !!(i && i.isReactComponent);
|
290
290
|
}
|
291
|
-
function ve(e, i,
|
291
|
+
function ve(e, i, c) {
|
292
292
|
if (e == null)
|
293
293
|
return "";
|
294
294
|
if (typeof e == "function")
|
295
|
-
return me(e,
|
295
|
+
return me(e, Ze(e));
|
296
296
|
if (typeof e == "string")
|
297
|
-
return
|
297
|
+
return K(e);
|
298
298
|
switch (e) {
|
299
|
-
case
|
300
|
-
return
|
301
|
-
case
|
302
|
-
return
|
299
|
+
case w:
|
300
|
+
return K("Suspense");
|
301
|
+
case k:
|
302
|
+
return K("SuspenseList");
|
303
303
|
}
|
304
304
|
if (typeof e == "object")
|
305
305
|
switch (e.$$typeof) {
|
306
|
-
case
|
306
|
+
case u:
|
307
307
|
return ue(e.render);
|
308
|
-
case
|
309
|
-
return ve(e.type, i,
|
310
|
-
case
|
311
|
-
var
|
308
|
+
case y:
|
309
|
+
return ve(e.type, i, c);
|
310
|
+
case S: {
|
311
|
+
var b = e, R = b._payload, T = b._init;
|
312
312
|
try {
|
313
|
-
return ve(
|
313
|
+
return ve(T(R), i, c);
|
314
314
|
} catch {
|
315
315
|
}
|
316
316
|
}
|
317
317
|
}
|
318
318
|
return "";
|
319
319
|
}
|
320
|
-
var ce = Object.prototype.hasOwnProperty, Se = {},
|
320
|
+
var ce = Object.prototype.hasOwnProperty, Se = {}, _e = C.ReactDebugCurrentFrame;
|
321
321
|
function be(e) {
|
322
322
|
if (e) {
|
323
|
-
var i = e._owner,
|
324
|
-
|
323
|
+
var i = e._owner, c = ve(e.type, e._source, i ? i.type : null);
|
324
|
+
_e.setExtraStackFrame(c);
|
325
325
|
} else
|
326
|
-
|
326
|
+
_e.setExtraStackFrame(null);
|
327
327
|
}
|
328
|
-
function
|
328
|
+
function Ke(e, i, c, b, R) {
|
329
329
|
{
|
330
|
-
var
|
331
|
-
for (var
|
332
|
-
if (
|
333
|
-
var
|
330
|
+
var T = Function.call.bind(ce);
|
331
|
+
for (var F in e)
|
332
|
+
if (T(e, F)) {
|
333
|
+
var E = void 0;
|
334
334
|
try {
|
335
|
-
if (typeof e[
|
336
|
-
var L = Error((
|
335
|
+
if (typeof e[F] != "function") {
|
336
|
+
var L = Error((b || "React class") + ": " + c + " type `" + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[F] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
337
337
|
throw L.name = "Invariant Violation", L;
|
338
338
|
}
|
339
|
-
|
340
|
-
} catch (
|
341
|
-
|
339
|
+
E = e[F](i, F, b, c, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
340
|
+
} catch (j) {
|
341
|
+
E = j;
|
342
342
|
}
|
343
|
-
|
343
|
+
E && !(E instanceof Error) && (be(R), t("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", b || "React class", c, F, typeof E), be(null)), E instanceof Error && !(E.message in Se) && (Se[E.message] = !0, be(R), t("Failed %s type: %s", c, E.message), be(null));
|
344
344
|
}
|
345
345
|
}
|
346
346
|
}
|
@@ -350,11 +350,11 @@ function Fn() {
|
|
350
350
|
}
|
351
351
|
function Qe(e) {
|
352
352
|
{
|
353
|
-
var i = typeof Symbol == "function" && Symbol.toStringTag,
|
354
|
-
return
|
353
|
+
var i = typeof Symbol == "function" && Symbol.toStringTag, c = i && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
354
|
+
return c;
|
355
355
|
}
|
356
356
|
}
|
357
|
-
function
|
357
|
+
function et(e) {
|
358
358
|
try {
|
359
359
|
return Re(e), !1;
|
360
360
|
} catch {
|
@@ -365,16 +365,16 @@ function Fn() {
|
|
365
365
|
return "" + e;
|
366
366
|
}
|
367
367
|
function Ce(e) {
|
368
|
-
if (
|
369
|
-
return
|
368
|
+
if (et(e))
|
369
|
+
return t("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), Re(e);
|
370
370
|
}
|
371
|
-
var Te =
|
371
|
+
var Te = C.ReactCurrentOwner, tt = {
|
372
372
|
key: !0,
|
373
373
|
ref: !0,
|
374
374
|
__self: !0,
|
375
375
|
__source: !0
|
376
|
-
}, $e,
|
377
|
-
function
|
376
|
+
}, $e, Pe;
|
377
|
+
function nt(e) {
|
378
378
|
if (ce.call(e, "ref")) {
|
379
379
|
var i = Object.getOwnPropertyDescriptor(e, "ref").get;
|
380
380
|
if (i && i.isReactWarning)
|
@@ -382,7 +382,7 @@ function Fn() {
|
|
382
382
|
}
|
383
383
|
return e.ref !== void 0;
|
384
384
|
}
|
385
|
-
function
|
385
|
+
function rt(e) {
|
386
386
|
if (ce.call(e, "key")) {
|
387
387
|
var i = Object.getOwnPropertyDescriptor(e, "key").get;
|
388
388
|
if (i && i.isReactWarning)
|
@@ -390,95 +390,95 @@ function Fn() {
|
|
390
390
|
}
|
391
391
|
return e.key !== void 0;
|
392
392
|
}
|
393
|
-
function
|
393
|
+
function at(e, i) {
|
394
394
|
typeof e.ref == "string" && Te.current;
|
395
395
|
}
|
396
|
-
function
|
396
|
+
function it(e, i) {
|
397
397
|
{
|
398
|
-
var
|
399
|
-
$e || ($e = !0,
|
398
|
+
var c = function() {
|
399
|
+
$e || ($e = !0, t("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
|
400
400
|
};
|
401
|
-
|
402
|
-
get:
|
401
|
+
c.isReactWarning = !0, Object.defineProperty(e, "key", {
|
402
|
+
get: c,
|
403
403
|
configurable: !0
|
404
404
|
});
|
405
405
|
}
|
406
406
|
}
|
407
|
-
function
|
407
|
+
function ot(e, i) {
|
408
408
|
{
|
409
|
-
var
|
410
|
-
|
409
|
+
var c = function() {
|
410
|
+
Pe || (Pe = !0, t("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
|
411
411
|
};
|
412
|
-
|
413
|
-
get:
|
412
|
+
c.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
413
|
+
get: c,
|
414
414
|
configurable: !0
|
415
415
|
});
|
416
416
|
}
|
417
417
|
}
|
418
|
-
var
|
419
|
-
var
|
418
|
+
var st = function(e, i, c, b, R, T, F) {
|
419
|
+
var E = {
|
420
420
|
// This tag allows us to uniquely identify this as a React Element
|
421
|
-
$$typeof:
|
421
|
+
$$typeof: f,
|
422
422
|
// Built-in properties that belong on the element
|
423
423
|
type: e,
|
424
424
|
key: i,
|
425
|
-
ref:
|
426
|
-
props:
|
425
|
+
ref: c,
|
426
|
+
props: F,
|
427
427
|
// Record the component responsible for creating this element.
|
428
|
-
_owner:
|
428
|
+
_owner: T
|
429
429
|
};
|
430
|
-
return
|
430
|
+
return E._store = {}, Object.defineProperty(E._store, "validated", {
|
431
431
|
configurable: !1,
|
432
432
|
enumerable: !1,
|
433
433
|
writable: !0,
|
434
434
|
value: !1
|
435
|
-
}), Object.defineProperty(
|
435
|
+
}), Object.defineProperty(E, "_self", {
|
436
436
|
configurable: !1,
|
437
437
|
enumerable: !1,
|
438
438
|
writable: !1,
|
439
|
-
value:
|
440
|
-
}), Object.defineProperty(
|
439
|
+
value: b
|
440
|
+
}), Object.defineProperty(E, "_source", {
|
441
441
|
configurable: !1,
|
442
442
|
enumerable: !1,
|
443
443
|
writable: !1,
|
444
|
-
value:
|
445
|
-
}), Object.freeze && (Object.freeze(
|
444
|
+
value: R
|
445
|
+
}), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
|
446
446
|
};
|
447
|
-
function
|
447
|
+
function lt(e, i, c, b, R) {
|
448
448
|
{
|
449
|
-
var
|
450
|
-
|
451
|
-
for (
|
452
|
-
ce.call(i,
|
449
|
+
var T, F = {}, E = null, L = null;
|
450
|
+
c !== void 0 && (Ce(c), E = "" + c), rt(i) && (Ce(i.key), E = "" + i.key), nt(i) && (L = i.ref, at(i, R));
|
451
|
+
for (T in i)
|
452
|
+
ce.call(i, T) && !tt.hasOwnProperty(T) && (F[T] = i[T]);
|
453
453
|
if (e && e.defaultProps) {
|
454
|
-
var
|
455
|
-
for (
|
456
|
-
T
|
454
|
+
var j = e.defaultProps;
|
455
|
+
for (T in j)
|
456
|
+
F[T] === void 0 && (F[T] = j[T]);
|
457
457
|
}
|
458
|
-
if (
|
458
|
+
if (E || L) {
|
459
459
|
var D = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
460
|
-
|
460
|
+
E && it(F, D), L && ot(F, D);
|
461
461
|
}
|
462
|
-
return
|
462
|
+
return st(e, E, L, R, b, Te.current, F);
|
463
463
|
}
|
464
464
|
}
|
465
|
-
var
|
465
|
+
var ke = C.ReactCurrentOwner, je = C.ReactDebugCurrentFrame;
|
466
466
|
function ie(e) {
|
467
467
|
if (e) {
|
468
|
-
var i = e._owner,
|
469
|
-
je.setExtraStackFrame(
|
468
|
+
var i = e._owner, c = ve(e.type, e._source, i ? i.type : null);
|
469
|
+
je.setExtraStackFrame(c);
|
470
470
|
} else
|
471
471
|
je.setExtraStackFrame(null);
|
472
472
|
}
|
473
|
-
var
|
474
|
-
|
475
|
-
function
|
476
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
473
|
+
var xe;
|
474
|
+
xe = !1;
|
475
|
+
function Ee(e) {
|
476
|
+
return typeof e == "object" && e !== null && e.$$typeof === f;
|
477
477
|
}
|
478
|
-
function
|
478
|
+
function Oe() {
|
479
479
|
{
|
480
|
-
if (
|
481
|
-
var e = Y(
|
480
|
+
if (ke.current) {
|
481
|
+
var e = Y(ke.current.type);
|
482
482
|
if (e)
|
483
483
|
return `
|
484
484
|
|
@@ -487,154 +487,154 @@ Check the render method of \`` + e + "`.";
|
|
487
487
|
return "";
|
488
488
|
}
|
489
489
|
}
|
490
|
-
function
|
490
|
+
function ut(e) {
|
491
491
|
return "";
|
492
492
|
}
|
493
|
-
var
|
494
|
-
function
|
493
|
+
var De = {};
|
494
|
+
function ct(e) {
|
495
495
|
{
|
496
|
-
var i =
|
496
|
+
var i = Oe();
|
497
497
|
if (!i) {
|
498
|
-
var
|
499
|
-
|
498
|
+
var c = typeof e == "string" ? e : e.displayName || e.name;
|
499
|
+
c && (i = `
|
500
500
|
|
501
|
-
Check the top-level render call using <` +
|
501
|
+
Check the top-level render call using <` + c + ">.");
|
502
502
|
}
|
503
503
|
return i;
|
504
504
|
}
|
505
505
|
}
|
506
|
-
function
|
506
|
+
function Ie(e, i) {
|
507
507
|
{
|
508
508
|
if (!e._store || e._store.validated || e.key != null)
|
509
509
|
return;
|
510
510
|
e._store.validated = !0;
|
511
|
-
var
|
512
|
-
if (
|
511
|
+
var c = ct(i);
|
512
|
+
if (De[c])
|
513
513
|
return;
|
514
|
-
|
515
|
-
var
|
516
|
-
e && e._owner && e._owner !==
|
514
|
+
De[c] = !0;
|
515
|
+
var b = "";
|
516
|
+
e && e._owner && e._owner !== ke.current && (b = " It was passed a child from " + Y(e._owner.type) + "."), ie(e), t('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', c, b), ie(null);
|
517
517
|
}
|
518
518
|
}
|
519
|
-
function
|
519
|
+
function ze(e, i) {
|
520
520
|
{
|
521
521
|
if (typeof e != "object")
|
522
522
|
return;
|
523
523
|
if (we(e))
|
524
|
-
for (var
|
525
|
-
var
|
526
|
-
|
524
|
+
for (var c = 0; c < e.length; c++) {
|
525
|
+
var b = e[c];
|
526
|
+
Ee(b) && Ie(b, i);
|
527
527
|
}
|
528
|
-
else if (
|
528
|
+
else if (Ee(e))
|
529
529
|
e._store && (e._store.validated = !0);
|
530
530
|
else if (e) {
|
531
|
-
var
|
532
|
-
if (typeof
|
533
|
-
for (var
|
534
|
-
|
531
|
+
var R = _(e);
|
532
|
+
if (typeof R == "function" && R !== e.entries)
|
533
|
+
for (var T = R.call(e), F; !(F = T.next()).done; )
|
534
|
+
Ee(F.value) && Ie(F.value, i);
|
535
535
|
}
|
536
536
|
}
|
537
537
|
}
|
538
|
-
function
|
538
|
+
function ft(e) {
|
539
539
|
{
|
540
540
|
var i = e.type;
|
541
541
|
if (i == null || typeof i == "string")
|
542
542
|
return;
|
543
|
-
var
|
543
|
+
var c;
|
544
544
|
if (typeof i == "function")
|
545
|
-
|
546
|
-
else if (typeof i == "object" && (i.$$typeof ===
|
545
|
+
c = i.propTypes;
|
546
|
+
else if (typeof i == "object" && (i.$$typeof === u || // Note: Memo only checks outer props here.
|
547
547
|
// Inner props are checked in the reconciler.
|
548
|
-
i.$$typeof ===
|
549
|
-
|
548
|
+
i.$$typeof === y))
|
549
|
+
c = i.propTypes;
|
550
550
|
else
|
551
551
|
return;
|
552
|
-
if (
|
553
|
-
var
|
554
|
-
|
555
|
-
} else if (i.PropTypes !== void 0 && !
|
556
|
-
|
557
|
-
var
|
558
|
-
|
552
|
+
if (c) {
|
553
|
+
var b = Y(i);
|
554
|
+
Ke(c, e.props, "prop", b, e);
|
555
|
+
} else if (i.PropTypes !== void 0 && !xe) {
|
556
|
+
xe = !0;
|
557
|
+
var R = Y(i);
|
558
|
+
t("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
|
559
559
|
}
|
560
|
-
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved &&
|
560
|
+
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && t("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
561
561
|
}
|
562
562
|
}
|
563
|
-
function
|
563
|
+
function dt(e) {
|
564
564
|
{
|
565
|
-
for (var i = Object.keys(e.props),
|
566
|
-
var
|
567
|
-
if (
|
568
|
-
ie(e),
|
565
|
+
for (var i = Object.keys(e.props), c = 0; c < i.length; c++) {
|
566
|
+
var b = i[c];
|
567
|
+
if (b !== "children" && b !== "key") {
|
568
|
+
ie(e), t("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), ie(null);
|
569
569
|
break;
|
570
570
|
}
|
571
571
|
}
|
572
|
-
e.ref !== null && (ie(e),
|
572
|
+
e.ref !== null && (ie(e), t("Invalid attribute `ref` supplied to `React.Fragment`."), ie(null));
|
573
573
|
}
|
574
574
|
}
|
575
|
-
var
|
576
|
-
function
|
575
|
+
var Le = {};
|
576
|
+
function Me(e, i, c, b, R, T) {
|
577
577
|
{
|
578
|
-
var
|
579
|
-
if (!
|
580
|
-
var
|
581
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
582
|
-
var L =
|
583
|
-
L ?
|
584
|
-
var
|
585
|
-
e === null ?
|
578
|
+
var F = P(e);
|
579
|
+
if (!F) {
|
580
|
+
var E = "";
|
581
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (E += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
582
|
+
var L = ut();
|
583
|
+
L ? E += L : E += Oe();
|
584
|
+
var j;
|
585
|
+
e === null ? j = "null" : we(e) ? j = "array" : e !== void 0 && e.$$typeof === f ? (j = "<" + (Y(e.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : j = typeof e, t("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, E);
|
586
586
|
}
|
587
|
-
var D =
|
587
|
+
var D = lt(e, i, c, R, T);
|
588
588
|
if (D == null)
|
589
589
|
return D;
|
590
|
-
if (
|
590
|
+
if (F) {
|
591
591
|
var q = i.children;
|
592
592
|
if (q !== void 0)
|
593
|
-
if (
|
593
|
+
if (b)
|
594
594
|
if (we(q)) {
|
595
595
|
for (var oe = 0; oe < q.length; oe++)
|
596
|
-
|
596
|
+
ze(q[oe], e);
|
597
597
|
Object.freeze && Object.freeze(q);
|
598
598
|
} else
|
599
|
-
|
599
|
+
t("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
600
600
|
else
|
601
|
-
|
601
|
+
ze(q, e);
|
602
602
|
}
|
603
603
|
if (ce.call(i, "key")) {
|
604
|
-
var
|
605
|
-
return
|
606
|
-
}), Ae =
|
607
|
-
if (!
|
608
|
-
var
|
609
|
-
|
604
|
+
var ne = Y(e), N = Object.keys(i).filter(function(bt) {
|
605
|
+
return bt !== "key";
|
606
|
+
}), Ae = N.length > 0 ? "{key: someKey, " + N.join(": ..., ") + ": ...}" : "{key: someKey}";
|
607
|
+
if (!Le[ne + Ae]) {
|
608
|
+
var vt = N.length > 0 ? "{" + N.join(": ..., ") + ": ...}" : "{}";
|
609
|
+
t(`A props object containing a "key" prop is being spread into JSX:
|
610
610
|
let props = %s;
|
611
611
|
<%s {...props} />
|
612
612
|
React keys must be passed directly to JSX without using spread:
|
613
613
|
let props = %s;
|
614
|
-
<%s key={someKey} {...props} />`, Ae,
|
614
|
+
<%s key={someKey} {...props} />`, Ae, ne, vt, ne), Le[ne + Ae] = !0;
|
615
615
|
}
|
616
616
|
}
|
617
|
-
return e === m ?
|
617
|
+
return e === m ? dt(D) : ft(D), D;
|
618
618
|
}
|
619
619
|
}
|
620
|
-
function
|
621
|
-
return
|
620
|
+
function gt(e, i, c) {
|
621
|
+
return Me(e, i, c, !0);
|
622
622
|
}
|
623
|
-
function
|
624
|
-
return
|
623
|
+
function pt(e, i, c) {
|
624
|
+
return Me(e, i, c, !1);
|
625
625
|
}
|
626
|
-
var
|
627
|
-
|
628
|
-
})()),
|
626
|
+
var ht = pt, mt = gt;
|
627
|
+
de.Fragment = m, de.jsx = ht, de.jsxs = mt;
|
628
|
+
})()), de;
|
629
629
|
}
|
630
630
|
var Ue;
|
631
|
-
function
|
632
|
-
return Ue || (Ue = 1, process.env.NODE_ENV === "production" ? ye.exports =
|
631
|
+
function _t() {
|
632
|
+
return Ue || (Ue = 1, process.env.NODE_ENV === "production" ? ye.exports = Ft() : ye.exports = St()), ye.exports;
|
633
633
|
}
|
634
|
-
var se =
|
635
|
-
function
|
636
|
-
return Ye || (Ye = 1, (function(
|
637
|
-
var
|
634
|
+
var se = _t(), Fe = { exports: {} }, Ye;
|
635
|
+
function Rt() {
|
636
|
+
return Ye || (Ye = 1, (function(g) {
|
637
|
+
var f = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
638
638
|
/**
|
639
639
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
640
640
|
*
|
@@ -643,8 +643,8 @@ function Cn() {
|
|
643
643
|
* @namespace
|
644
644
|
* @public
|
645
645
|
*/
|
646
|
-
var
|
647
|
-
var v = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, x = 0,
|
646
|
+
var r = (function(m) {
|
647
|
+
var v = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, x = 0, d = {}, a = {
|
648
648
|
/**
|
649
649
|
* By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
|
650
650
|
* current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
|
@@ -699,8 +699,8 @@ function Cn() {
|
|
699
699
|
* @memberof Prism
|
700
700
|
*/
|
701
701
|
util: {
|
702
|
-
encode: function n
|
703
|
-
return
|
702
|
+
encode: function t(n) {
|
703
|
+
return n instanceof u ? new u(n.type, t(n.content), n.alias) : Array.isArray(n) ? n.map(t) : n.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
704
704
|
},
|
705
705
|
/**
|
706
706
|
* Returns the name of the type of the given value.
|
@@ -718,8 +718,8 @@ function Cn() {
|
|
718
718
|
* type(String) === 'Function'
|
719
719
|
* type(/abc+/) === 'RegExp'
|
720
720
|
*/
|
721
|
-
type: function(
|
722
|
-
return Object.prototype.toString.call(
|
721
|
+
type: function(t) {
|
722
|
+
return Object.prototype.toString.call(t).slice(8, -1);
|
723
723
|
},
|
724
724
|
/**
|
725
725
|
* Returns a unique number for the given object. Later calls will still return the same number.
|
@@ -727,8 +727,8 @@ function Cn() {
|
|
727
727
|
* @param {Object} obj
|
728
728
|
* @returns {number}
|
729
729
|
*/
|
730
|
-
objId: function(
|
731
|
-
return
|
730
|
+
objId: function(t) {
|
731
|
+
return t.__id || Object.defineProperty(t, "__id", { value: ++x }), t.__id;
|
732
732
|
},
|
733
733
|
/**
|
734
734
|
* Creates a deep clone of the given object.
|
@@ -740,30 +740,30 @@ function Cn() {
|
|
740
740
|
* @returns {T}
|
741
741
|
* @template T
|
742
742
|
*/
|
743
|
-
clone: function n
|
743
|
+
clone: function t(n, o) {
|
744
744
|
o = o || {};
|
745
|
-
var s,
|
746
|
-
switch (a.util.type(
|
745
|
+
var s, l;
|
746
|
+
switch (a.util.type(n)) {
|
747
747
|
case "Object":
|
748
|
-
if (
|
749
|
-
return o[
|
748
|
+
if (l = a.util.objId(n), o[l])
|
749
|
+
return o[l];
|
750
750
|
s = /** @type {Record<string, any>} */
|
751
|
-
{}, o[
|
752
|
-
for (var
|
753
|
-
|
751
|
+
{}, o[l] = s;
|
752
|
+
for (var h in n)
|
753
|
+
n.hasOwnProperty(h) && (s[h] = t(n[h], o));
|
754
754
|
return (
|
755
755
|
/** @type {any} */
|
756
756
|
s
|
757
757
|
);
|
758
758
|
case "Array":
|
759
|
-
return
|
759
|
+
return l = a.util.objId(n), o[l] ? o[l] : (s = [], o[l] = s, /** @type {Array} */
|
760
760
|
/** @type {any} */
|
761
|
-
|
762
|
-
s[
|
761
|
+
n.forEach(function(A, p) {
|
762
|
+
s[p] = t(A, o);
|
763
763
|
}), /** @type {any} */
|
764
764
|
s);
|
765
765
|
default:
|
766
|
-
return
|
766
|
+
return n;
|
767
767
|
}
|
768
768
|
},
|
769
769
|
/**
|
@@ -774,12 +774,12 @@ function Cn() {
|
|
774
774
|
* @param {Element} element
|
775
775
|
* @returns {string}
|
776
776
|
*/
|
777
|
-
getLanguage: function(
|
778
|
-
for (;
|
779
|
-
var
|
780
|
-
if (
|
781
|
-
return
|
782
|
-
|
777
|
+
getLanguage: function(t) {
|
778
|
+
for (; t; ) {
|
779
|
+
var n = v.exec(t.className);
|
780
|
+
if (n)
|
781
|
+
return n[1].toLowerCase();
|
782
|
+
t = t.parentElement;
|
783
783
|
}
|
784
784
|
return "none";
|
785
785
|
},
|
@@ -790,8 +790,8 @@ function Cn() {
|
|
790
790
|
* @param {string} language
|
791
791
|
* @returns {void}
|
792
792
|
*/
|
793
|
-
setLanguage: function(
|
794
|
-
|
793
|
+
setLanguage: function(t, n) {
|
794
|
+
t.className = t.className.replace(RegExp(v, "gi"), ""), t.classList.add("language-" + n);
|
795
795
|
},
|
796
796
|
/**
|
797
797
|
* Returns the script element that is currently executing.
|
@@ -811,12 +811,12 @@ function Cn() {
|
|
811
811
|
try {
|
812
812
|
throw new Error();
|
813
813
|
} catch (s) {
|
814
|
-
var
|
815
|
-
if (
|
816
|
-
var
|
817
|
-
for (var o in
|
818
|
-
if (
|
819
|
-
return
|
814
|
+
var t = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(s.stack) || [])[1];
|
815
|
+
if (t) {
|
816
|
+
var n = document.getElementsByTagName("script");
|
817
|
+
for (var o in n)
|
818
|
+
if (n[o].src == t)
|
819
|
+
return n[o];
|
820
820
|
}
|
821
821
|
return null;
|
822
822
|
}
|
@@ -840,14 +840,14 @@ function Cn() {
|
|
840
840
|
* @param {boolean} [defaultActivation=false]
|
841
841
|
* @returns {boolean}
|
842
842
|
*/
|
843
|
-
isActive: function(
|
844
|
-
for (var s = "no-" +
|
845
|
-
var
|
846
|
-
if (
|
843
|
+
isActive: function(t, n, o) {
|
844
|
+
for (var s = "no-" + n; t; ) {
|
845
|
+
var l = t.classList;
|
846
|
+
if (l.contains(n))
|
847
847
|
return !0;
|
848
|
-
if (
|
848
|
+
if (l.contains(s))
|
849
849
|
return !1;
|
850
|
-
|
850
|
+
t = t.parentElement;
|
851
851
|
}
|
852
852
|
return !!o;
|
853
853
|
}
|
@@ -863,10 +863,10 @@ function Cn() {
|
|
863
863
|
/**
|
864
864
|
* The grammar for plain, unformatted text.
|
865
865
|
*/
|
866
|
-
plain:
|
867
|
-
plaintext:
|
868
|
-
text:
|
869
|
-
txt:
|
866
|
+
plain: d,
|
867
|
+
plaintext: d,
|
868
|
+
text: d,
|
869
|
+
txt: d,
|
870
870
|
/**
|
871
871
|
* Creates a deep copy of the language with the given id and appends the given tokens.
|
872
872
|
*
|
@@ -895,10 +895,10 @@ function Cn() {
|
|
895
895
|
* 'color': /\b(?:red|green|blue)\b/
|
896
896
|
* });
|
897
897
|
*/
|
898
|
-
extend: function(
|
899
|
-
var o = a.util.clone(a.languages[
|
900
|
-
for (var s in
|
901
|
-
o[s] =
|
898
|
+
extend: function(t, n) {
|
899
|
+
var o = a.util.clone(a.languages[t]);
|
900
|
+
for (var s in n)
|
901
|
+
o[s] = n[s];
|
902
902
|
return o;
|
903
903
|
},
|
904
904
|
/**
|
@@ -976,31 +976,31 @@ function Cn() {
|
|
976
976
|
* @returns {Grammar} The new grammar object.
|
977
977
|
* @public
|
978
978
|
*/
|
979
|
-
insertBefore: function(
|
979
|
+
insertBefore: function(t, n, o, s) {
|
980
980
|
s = s || /** @type {any} */
|
981
981
|
a.languages;
|
982
|
-
var
|
983
|
-
for (var
|
984
|
-
if (
|
985
|
-
if (
|
986
|
-
for (var
|
987
|
-
o.hasOwnProperty(
|
988
|
-
o.hasOwnProperty(
|
982
|
+
var l = s[t], h = {};
|
983
|
+
for (var A in l)
|
984
|
+
if (l.hasOwnProperty(A)) {
|
985
|
+
if (A == n)
|
986
|
+
for (var p in o)
|
987
|
+
o.hasOwnProperty(p) && (h[p] = o[p]);
|
988
|
+
o.hasOwnProperty(A) || (h[A] = l[A]);
|
989
989
|
}
|
990
|
-
var
|
991
|
-
return s[
|
992
|
-
U ===
|
993
|
-
}),
|
990
|
+
var P = s[t];
|
991
|
+
return s[t] = h, a.languages.DFS(a.languages, function(z, U) {
|
992
|
+
U === P && z != t && (this[z] = h);
|
993
|
+
}), h;
|
994
994
|
},
|
995
995
|
// Traverse a language definition with Depth First Search
|
996
|
-
DFS: function n
|
997
|
-
|
998
|
-
var
|
999
|
-
for (var
|
1000
|
-
if (
|
1001
|
-
o.call(
|
1002
|
-
var
|
1003
|
-
|
996
|
+
DFS: function t(n, o, s, l) {
|
997
|
+
l = l || {};
|
998
|
+
var h = a.util.objId;
|
999
|
+
for (var A in n)
|
1000
|
+
if (n.hasOwnProperty(A)) {
|
1001
|
+
o.call(n, A, n[A], s || A);
|
1002
|
+
var p = n[A], P = a.util.type(p);
|
1003
|
+
P === "Object" && !l[h(p)] ? (l[h(p)] = !0, t(p, o, null, l)) : P === "Array" && !l[h(p)] && (l[h(p)] = !0, t(p, o, A, l));
|
1004
1004
|
}
|
1005
1005
|
}
|
1006
1006
|
},
|
@@ -1017,8 +1017,8 @@ function Cn() {
|
|
1017
1017
|
* @memberof Prism
|
1018
1018
|
* @public
|
1019
1019
|
*/
|
1020
|
-
highlightAll: function(
|
1021
|
-
a.highlightAllUnder(document,
|
1020
|
+
highlightAll: function(t, n) {
|
1021
|
+
a.highlightAllUnder(document, t, n);
|
1022
1022
|
},
|
1023
1023
|
/**
|
1024
1024
|
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
|
@@ -1035,15 +1035,15 @@ function Cn() {
|
|
1035
1035
|
* @memberof Prism
|
1036
1036
|
* @public
|
1037
1037
|
*/
|
1038
|
-
highlightAllUnder: function(
|
1038
|
+
highlightAllUnder: function(t, n, o) {
|
1039
1039
|
var s = {
|
1040
1040
|
callback: o,
|
1041
|
-
container:
|
1041
|
+
container: t,
|
1042
1042
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
1043
1043
|
};
|
1044
1044
|
a.hooks.run("before-highlightall", s), s.elements = Array.prototype.slice.apply(s.container.querySelectorAll(s.selector)), a.hooks.run("before-all-elements-highlight", s);
|
1045
|
-
for (var
|
1046
|
-
a.highlightElement(
|
1045
|
+
for (var l = 0, h; h = s.elements[l++]; )
|
1046
|
+
a.highlightElement(h, n === !0, s.callback);
|
1047
1047
|
},
|
1048
1048
|
/**
|
1049
1049
|
* Highlights the code inside a single element.
|
@@ -1073,39 +1073,39 @@ function Cn() {
|
|
1073
1073
|
* @memberof Prism
|
1074
1074
|
* @public
|
1075
1075
|
*/
|
1076
|
-
highlightElement: function(
|
1077
|
-
var s = a.util.getLanguage(
|
1078
|
-
a.util.setLanguage(
|
1079
|
-
var
|
1080
|
-
|
1081
|
-
var
|
1082
|
-
element:
|
1076
|
+
highlightElement: function(t, n, o) {
|
1077
|
+
var s = a.util.getLanguage(t), l = a.languages[s];
|
1078
|
+
a.util.setLanguage(t, s);
|
1079
|
+
var h = t.parentElement;
|
1080
|
+
h && h.nodeName.toLowerCase() === "pre" && a.util.setLanguage(h, s);
|
1081
|
+
var A = t.textContent, p = {
|
1082
|
+
element: t,
|
1083
1083
|
language: s,
|
1084
|
-
grammar:
|
1085
|
-
code:
|
1084
|
+
grammar: l,
|
1085
|
+
code: A
|
1086
1086
|
};
|
1087
|
-
function
|
1088
|
-
|
1087
|
+
function P(U) {
|
1088
|
+
p.highlightedCode = U, a.hooks.run("before-insert", p), p.element.innerHTML = p.highlightedCode, a.hooks.run("after-highlight", p), a.hooks.run("complete", p), o && o.call(p.element);
|
1089
1089
|
}
|
1090
|
-
if (a.hooks.run("before-sanity-check",
|
1091
|
-
a.hooks.run("complete",
|
1090
|
+
if (a.hooks.run("before-sanity-check", p), h = p.element.parentElement, h && h.nodeName.toLowerCase() === "pre" && !h.hasAttribute("tabindex") && h.setAttribute("tabindex", "0"), !p.code) {
|
1091
|
+
a.hooks.run("complete", p), o && o.call(p.element);
|
1092
1092
|
return;
|
1093
1093
|
}
|
1094
|
-
if (a.hooks.run("before-highlight",
|
1095
|
-
|
1094
|
+
if (a.hooks.run("before-highlight", p), !p.grammar) {
|
1095
|
+
P(a.util.encode(p.code));
|
1096
1096
|
return;
|
1097
1097
|
}
|
1098
|
-
if (
|
1098
|
+
if (n && m.Worker) {
|
1099
1099
|
var z = new Worker(a.filename);
|
1100
1100
|
z.onmessage = function(U) {
|
1101
|
-
|
1101
|
+
P(U.data);
|
1102
1102
|
}, z.postMessage(JSON.stringify({
|
1103
|
-
language:
|
1104
|
-
code:
|
1103
|
+
language: p.language,
|
1104
|
+
code: p.code,
|
1105
1105
|
immediateClose: !0
|
1106
1106
|
}));
|
1107
1107
|
} else
|
1108
|
-
|
1108
|
+
P(a.highlight(p.code, p.grammar, p.language));
|
1109
1109
|
},
|
1110
1110
|
/**
|
1111
1111
|
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
@@ -1127,15 +1127,15 @@ function Cn() {
|
|
1127
1127
|
* @example
|
1128
1128
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
1129
1129
|
*/
|
1130
|
-
highlight: function(
|
1130
|
+
highlight: function(t, n, o) {
|
1131
1131
|
var s = {
|
1132
|
-
code:
|
1133
|
-
grammar:
|
1132
|
+
code: t,
|
1133
|
+
grammar: n,
|
1134
1134
|
language: o
|
1135
1135
|
};
|
1136
1136
|
if (a.hooks.run("before-tokenize", s), !s.grammar)
|
1137
1137
|
throw new Error('The language "' + s.language + '" has no grammar.');
|
1138
|
-
return s.tokens = a.tokenize(s.code, s.grammar), a.hooks.run("after-tokenize", s),
|
1138
|
+
return s.tokens = a.tokenize(s.code, s.grammar), a.hooks.run("after-tokenize", s), u.stringify(a.util.encode(s.tokens), s.language);
|
1139
1139
|
},
|
1140
1140
|
/**
|
1141
1141
|
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
@@ -1161,15 +1161,15 @@ function Cn() {
|
|
1161
1161
|
* }
|
1162
1162
|
* });
|
1163
1163
|
*/
|
1164
|
-
tokenize: function(
|
1165
|
-
var o =
|
1164
|
+
tokenize: function(t, n) {
|
1165
|
+
var o = n.rest;
|
1166
1166
|
if (o) {
|
1167
1167
|
for (var s in o)
|
1168
|
-
|
1169
|
-
delete
|
1168
|
+
n[s] = o[s];
|
1169
|
+
delete n.rest;
|
1170
1170
|
}
|
1171
|
-
var
|
1172
|
-
return
|
1171
|
+
var l = new y();
|
1172
|
+
return S(l, l.head, t), k(t, l, n, l.head, 0), M(l);
|
1173
1173
|
},
|
1174
1174
|
/**
|
1175
1175
|
* @namespace
|
@@ -1190,9 +1190,9 @@ function Cn() {
|
|
1190
1190
|
* @param {HookCallback} callback The callback function which is given environment variables.
|
1191
1191
|
* @public
|
1192
1192
|
*/
|
1193
|
-
add: function(
|
1193
|
+
add: function(t, n) {
|
1194
1194
|
var o = a.hooks.all;
|
1195
|
-
o[
|
1195
|
+
o[t] = o[t] || [], o[t].push(n);
|
1196
1196
|
},
|
1197
1197
|
/**
|
1198
1198
|
* Runs a hook invoking all registered callbacks with the given environment variables.
|
@@ -1203,135 +1203,135 @@ function Cn() {
|
|
1203
1203
|
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
1204
1204
|
* @public
|
1205
1205
|
*/
|
1206
|
-
run: function(
|
1207
|
-
var o = a.hooks.all[
|
1206
|
+
run: function(t, n) {
|
1207
|
+
var o = a.hooks.all[t];
|
1208
1208
|
if (!(!o || !o.length))
|
1209
|
-
for (var s = 0,
|
1210
|
-
|
1209
|
+
for (var s = 0, l; l = o[s++]; )
|
1210
|
+
l(n);
|
1211
1211
|
}
|
1212
1212
|
},
|
1213
|
-
Token:
|
1213
|
+
Token: u
|
1214
1214
|
};
|
1215
1215
|
m.Prism = a;
|
1216
|
-
function
|
1217
|
-
this.type =
|
1216
|
+
function u(t, n, o, s) {
|
1217
|
+
this.type = t, this.content = n, this.alias = o, this.length = (s || "").length | 0;
|
1218
1218
|
}
|
1219
|
-
|
1220
|
-
if (typeof
|
1221
|
-
return
|
1222
|
-
if (Array.isArray(
|
1219
|
+
u.stringify = function t(n, o) {
|
1220
|
+
if (typeof n == "string")
|
1221
|
+
return n;
|
1222
|
+
if (Array.isArray(n)) {
|
1223
1223
|
var s = "";
|
1224
|
-
return
|
1225
|
-
s +=
|
1224
|
+
return n.forEach(function(P) {
|
1225
|
+
s += t(P, o);
|
1226
1226
|
}), s;
|
1227
1227
|
}
|
1228
|
-
var
|
1229
|
-
type:
|
1230
|
-
content: n
|
1228
|
+
var l = {
|
1229
|
+
type: n.type,
|
1230
|
+
content: t(n.content, o),
|
1231
1231
|
tag: "span",
|
1232
|
-
classes: ["token",
|
1232
|
+
classes: ["token", n.type],
|
1233
1233
|
attributes: {},
|
1234
1234
|
language: o
|
1235
|
-
},
|
1236
|
-
|
1237
|
-
var
|
1238
|
-
for (var
|
1239
|
-
|
1240
|
-
return "<" +
|
1235
|
+
}, h = n.alias;
|
1236
|
+
h && (Array.isArray(h) ? Array.prototype.push.apply(l.classes, h) : l.classes.push(h)), a.hooks.run("wrap", l);
|
1237
|
+
var A = "";
|
1238
|
+
for (var p in l.attributes)
|
1239
|
+
A += " " + p + '="' + (l.attributes[p] || "").replace(/"/g, """) + '"';
|
1240
|
+
return "<" + l.tag + ' class="' + l.classes.join(" ") + '"' + A + ">" + l.content + "</" + l.tag + ">";
|
1241
1241
|
};
|
1242
|
-
function
|
1243
|
-
|
1244
|
-
var
|
1245
|
-
if (
|
1246
|
-
var
|
1247
|
-
|
1242
|
+
function w(t, n, o, s) {
|
1243
|
+
t.lastIndex = n;
|
1244
|
+
var l = t.exec(o);
|
1245
|
+
if (l && s && l[1]) {
|
1246
|
+
var h = l[1].length;
|
1247
|
+
l.index += h, l[0] = l[0].slice(h);
|
1248
1248
|
}
|
1249
|
-
return
|
1249
|
+
return l;
|
1250
1250
|
}
|
1251
|
-
function
|
1252
|
-
for (var
|
1253
|
-
if (!(!o.hasOwnProperty(
|
1254
|
-
var
|
1255
|
-
|
1256
|
-
for (var
|
1257
|
-
if (
|
1251
|
+
function k(t, n, o, s, l, h) {
|
1252
|
+
for (var A in o)
|
1253
|
+
if (!(!o.hasOwnProperty(A) || !o[A])) {
|
1254
|
+
var p = o[A];
|
1255
|
+
p = Array.isArray(p) ? p : [p];
|
1256
|
+
for (var P = 0; P < p.length; ++P) {
|
1257
|
+
if (h && h.cause == A + "," + P)
|
1258
1258
|
return;
|
1259
|
-
var z =
|
1259
|
+
var z = p[P], U = z.inside, Y = !!z.lookbehind, B = !!z.greedy, Q = z.alias;
|
1260
1260
|
if (B && !z.pattern.global) {
|
1261
1261
|
var pe = z.pattern.toString().match(/[imsuy]*$/)[0];
|
1262
1262
|
z.pattern = RegExp(z.pattern.source, pe + "g");
|
1263
1263
|
}
|
1264
|
-
for (var le = z.pattern || z,
|
1265
|
-
var G =
|
1266
|
-
if (
|
1264
|
+
for (var le = z.pattern || z, I = s.next, H = l; I !== n.tail && !(h && H >= h.reach); H += I.value.length, I = I.next) {
|
1265
|
+
var G = I.value;
|
1266
|
+
if (n.length > t.length)
|
1267
1267
|
return;
|
1268
|
-
if (!(G instanceof
|
1269
|
-
var ee = 1,
|
1268
|
+
if (!(G instanceof u)) {
|
1269
|
+
var ee = 1, W;
|
1270
1270
|
if (B) {
|
1271
|
-
if (
|
1271
|
+
if (W = w(le, H, t, Y), !W || W.index >= t.length)
|
1272
1272
|
break;
|
1273
|
-
var J =
|
1274
|
-
for (V +=
|
1275
|
-
|
1276
|
-
if (V -=
|
1273
|
+
var J = W.index, he = W.index + W[0].length, V = H;
|
1274
|
+
for (V += I.value.length; J >= V; )
|
1275
|
+
I = I.next, V += I.value.length;
|
1276
|
+
if (V -= I.value.length, H = V, I.value instanceof u)
|
1277
1277
|
continue;
|
1278
|
-
for (var
|
1279
|
-
ee++, V +=
|
1280
|
-
ee--, G =
|
1281
|
-
} else if (
|
1278
|
+
for (var te = I; te !== n.tail && (V < he || typeof te.value == "string"); te = te.next)
|
1279
|
+
ee++, V += te.value.length;
|
1280
|
+
ee--, G = t.slice(H, V), W.index -= H;
|
1281
|
+
} else if (W = w(le, 0, G, Y), !W)
|
1282
1282
|
continue;
|
1283
|
-
var J =
|
1284
|
-
|
1285
|
-
var ae =
|
1286
|
-
|
1287
|
-
var me = new
|
1288
|
-
if (
|
1283
|
+
var J = W.index, Z = W[0], K = G.slice(0, J), re = G.slice(J + Z.length), X = H + G.length;
|
1284
|
+
h && X > h.reach && (h.reach = X);
|
1285
|
+
var ae = I.prev;
|
1286
|
+
K && (ae = S(n, ae, K), H += K.length), O(n, ae, ee);
|
1287
|
+
var me = new u(A, U ? a.tokenize(Z, U) : Z, Q, Z);
|
1288
|
+
if (I = S(n, ae, me), re && S(n, I, re), ee > 1) {
|
1289
1289
|
var ue = {
|
1290
|
-
cause:
|
1290
|
+
cause: A + "," + P,
|
1291
1291
|
reach: X
|
1292
1292
|
};
|
1293
|
-
|
1293
|
+
k(t, n, o, I.prev, H, ue), h && ue.reach > h.reach && (h.reach = ue.reach);
|
1294
1294
|
}
|
1295
1295
|
}
|
1296
1296
|
}
|
1297
1297
|
}
|
1298
1298
|
}
|
1299
1299
|
}
|
1300
|
-
function
|
1301
|
-
var
|
1302
|
-
|
1300
|
+
function y() {
|
1301
|
+
var t = { value: null, prev: null, next: null }, n = { value: null, prev: t, next: null };
|
1302
|
+
t.next = n, this.head = t, this.tail = n, this.length = 0;
|
1303
1303
|
}
|
1304
|
-
function
|
1305
|
-
var s =
|
1306
|
-
return
|
1304
|
+
function S(t, n, o) {
|
1305
|
+
var s = n.next, l = { value: o, prev: n, next: s };
|
1306
|
+
return n.next = l, s.prev = l, t.length++, l;
|
1307
1307
|
}
|
1308
|
-
function
|
1309
|
-
for (var s =
|
1308
|
+
function O(t, n, o) {
|
1309
|
+
for (var s = n.next, l = 0; l < o && s !== t.tail; l++)
|
1310
1310
|
s = s.next;
|
1311
|
-
|
1311
|
+
n.next = s, s.prev = n, t.length -= l;
|
1312
1312
|
}
|
1313
|
-
function
|
1314
|
-
for (var
|
1315
|
-
|
1316
|
-
return
|
1313
|
+
function M(t) {
|
1314
|
+
for (var n = [], o = t.head.next; o !== t.tail; )
|
1315
|
+
n.push(o.value), o = o.next;
|
1316
|
+
return n;
|
1317
1317
|
}
|
1318
1318
|
if (!m.document)
|
1319
|
-
return m.addEventListener && (a.disableWorkerMessageHandler || m.addEventListener("message", function(
|
1320
|
-
var
|
1321
|
-
m.postMessage(a.highlight(s, a.languages[o], o)),
|
1319
|
+
return m.addEventListener && (a.disableWorkerMessageHandler || m.addEventListener("message", function(t) {
|
1320
|
+
var n = JSON.parse(t.data), o = n.language, s = n.code, l = n.immediateClose;
|
1321
|
+
m.postMessage(a.highlight(s, a.languages[o], o)), l && m.close();
|
1322
1322
|
}, !1)), a;
|
1323
|
-
var
|
1324
|
-
|
1323
|
+
var $ = a.util.currentScript();
|
1324
|
+
$ && (a.filename = $.src, $.hasAttribute("data-manual") && (a.manual = !0));
|
1325
1325
|
function _() {
|
1326
1326
|
a.manual || a.highlightAll();
|
1327
1327
|
}
|
1328
1328
|
if (!a.manual) {
|
1329
|
-
var
|
1330
|
-
|
1329
|
+
var C = document.readyState;
|
1330
|
+
C === "loading" || C === "interactive" && $ && $.defer ? document.addEventListener("DOMContentLoaded", _) : window.requestAnimationFrame ? window.requestAnimationFrame(_) : window.setTimeout(_, 16);
|
1331
1331
|
}
|
1332
1332
|
return a;
|
1333
|
-
})(
|
1334
|
-
|
1333
|
+
})(f);
|
1334
|
+
g.exports && (g.exports = r), typeof Ne < "u" && (Ne.Prism = r), r.languages.markup = {
|
1335
1335
|
comment: {
|
1336
1336
|
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
1337
1337
|
greedy: !0
|
@@ -1408,9 +1408,9 @@ function Cn() {
|
|
1408
1408
|
},
|
1409
1409
|
/&#x?[\da-f]{1,8};/i
|
1410
1410
|
]
|
1411
|
-
},
|
1411
|
+
}, r.languages.markup.tag.inside["attr-value"].inside.entity = r.languages.markup.entity, r.languages.markup.doctype.inside["internal-subset"].inside = r.languages.markup, r.hooks.add("wrap", function(m) {
|
1412
1412
|
m.type === "entity" && (m.attributes.title = m.content.replace(/&/, "&"));
|
1413
|
-
}), Object.defineProperty(
|
1413
|
+
}), Object.defineProperty(r.languages.markup.tag, "addInlined", {
|
1414
1414
|
/**
|
1415
1415
|
* Adds an inlined language to markup.
|
1416
1416
|
*
|
@@ -1423,33 +1423,33 @@ function Cn() {
|
|
1423
1423
|
* addInlined('style', 'css');
|
1424
1424
|
*/
|
1425
1425
|
value: function(v, x) {
|
1426
|
-
var
|
1427
|
-
|
1426
|
+
var d = {};
|
1427
|
+
d["language-" + x] = {
|
1428
1428
|
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
1429
1429
|
lookbehind: !0,
|
1430
|
-
inside:
|
1431
|
-
},
|
1430
|
+
inside: r.languages[x]
|
1431
|
+
}, d.cdata = /^<!\[CDATA\[|\]\]>$/i;
|
1432
1432
|
var a = {
|
1433
1433
|
"included-cdata": {
|
1434
1434
|
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
1435
|
-
inside:
|
1435
|
+
inside: d
|
1436
1436
|
}
|
1437
1437
|
};
|
1438
1438
|
a["language-" + x] = {
|
1439
1439
|
pattern: /[\s\S]+/,
|
1440
|
-
inside:
|
1440
|
+
inside: r.languages[x]
|
1441
1441
|
};
|
1442
|
-
var
|
1443
|
-
|
1442
|
+
var u = {};
|
1443
|
+
u[v] = {
|
1444
1444
|
pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
|
1445
1445
|
return v;
|
1446
1446
|
}), "i"),
|
1447
1447
|
lookbehind: !0,
|
1448
1448
|
greedy: !0,
|
1449
1449
|
inside: a
|
1450
|
-
},
|
1450
|
+
}, r.languages.insertBefore("markup", "cdata", u);
|
1451
1451
|
}
|
1452
|
-
}), Object.defineProperty(
|
1452
|
+
}), Object.defineProperty(r.languages.markup.tag, "addAttribute", {
|
1453
1453
|
/**
|
1454
1454
|
* Adds an pattern to highlight languages embedded in HTML attributes.
|
1455
1455
|
*
|
@@ -1462,7 +1462,7 @@ function Cn() {
|
|
1462
1462
|
* addAttribute('style', 'css');
|
1463
1463
|
*/
|
1464
1464
|
value: function(m, v) {
|
1465
|
-
|
1465
|
+
r.languages.markup.tag.inside["special-attr"].push({
|
1466
1466
|
pattern: RegExp(
|
1467
1467
|
/(^|["'\s])/.source + "(?:" + m + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
|
1468
1468
|
"i"
|
@@ -1477,7 +1477,7 @@ function Cn() {
|
|
1477
1477
|
pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
|
1478
1478
|
lookbehind: !0,
|
1479
1479
|
alias: [v, "language-" + v],
|
1480
|
-
inside:
|
1480
|
+
inside: r.languages[v]
|
1481
1481
|
},
|
1482
1482
|
punctuation: [
|
1483
1483
|
{
|
@@ -1491,7 +1491,7 @@ function Cn() {
|
|
1491
1491
|
}
|
1492
1492
|
});
|
1493
1493
|
}
|
1494
|
-
}),
|
1494
|
+
}), r.languages.html = r.languages.markup, r.languages.mathml = r.languages.markup, r.languages.svg = r.languages.markup, r.languages.xml = r.languages.extend("markup", {}), r.languages.ssml = r.languages.xml, r.languages.atom = r.languages.xml, r.languages.rss = r.languages.xml, (function(m) {
|
1495
1495
|
var v = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
1496
1496
|
m.languages.css = {
|
1497
1497
|
comment: /\/\*[\s\S]*?\*\//,
|
@@ -1545,7 +1545,7 @@ function Cn() {
|
|
1545
1545
|
}, m.languages.css.atrule.inside.rest = m.languages.css;
|
1546
1546
|
var x = m.languages.markup;
|
1547
1547
|
x && (x.tag.addInlined("style", "css"), x.tag.addAttribute("style", "css"));
|
1548
|
-
})(
|
1548
|
+
})(r), r.languages.clike = {
|
1549
1549
|
comment: [
|
1550
1550
|
{
|
1551
1551
|
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
@@ -1575,9 +1575,9 @@ function Cn() {
|
|
1575
1575
|
number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
|
1576
1576
|
operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
|
1577
1577
|
punctuation: /[{}[\];(),.:]/
|
1578
|
-
},
|
1578
|
+
}, r.languages.javascript = r.languages.extend("clike", {
|
1579
1579
|
"class-name": [
|
1580
|
-
|
1580
|
+
r.languages.clike["class-name"],
|
1581
1581
|
{
|
1582
1582
|
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
|
1583
1583
|
lookbehind: !0
|
@@ -1608,7 +1608,7 @@ function Cn() {
|
|
1608
1608
|
lookbehind: !0
|
1609
1609
|
},
|
1610
1610
|
operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
|
1611
|
-
}),
|
1611
|
+
}), r.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, r.languages.insertBefore("javascript", "keyword", {
|
1612
1612
|
regex: {
|
1613
1613
|
pattern: RegExp(
|
1614
1614
|
// lookbehind
|
@@ -1628,7 +1628,7 @@ function Cn() {
|
|
1628
1628
|
pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
|
1629
1629
|
lookbehind: !0,
|
1630
1630
|
alias: "language-regex",
|
1631
|
-
inside:
|
1631
|
+
inside: r.languages.regex
|
1632
1632
|
},
|
1633
1633
|
"regex-delimiter": /^\/|\/$/,
|
1634
1634
|
"regex-flags": /^[a-z]+$/
|
@@ -1643,26 +1643,26 @@ function Cn() {
|
|
1643
1643
|
{
|
1644
1644
|
pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
|
1645
1645
|
lookbehind: !0,
|
1646
|
-
inside:
|
1646
|
+
inside: r.languages.javascript
|
1647
1647
|
},
|
1648
1648
|
{
|
1649
1649
|
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
|
1650
1650
|
lookbehind: !0,
|
1651
|
-
inside:
|
1651
|
+
inside: r.languages.javascript
|
1652
1652
|
},
|
1653
1653
|
{
|
1654
1654
|
pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
|
1655
1655
|
lookbehind: !0,
|
1656
|
-
inside:
|
1656
|
+
inside: r.languages.javascript
|
1657
1657
|
},
|
1658
1658
|
{
|
1659
1659
|
pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
|
1660
1660
|
lookbehind: !0,
|
1661
|
-
inside:
|
1661
|
+
inside: r.languages.javascript
|
1662
1662
|
}
|
1663
1663
|
],
|
1664
1664
|
constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
|
1665
|
-
}),
|
1665
|
+
}), r.languages.insertBefore("javascript", "string", {
|
1666
1666
|
hashbang: {
|
1667
1667
|
pattern: /^#!.*/,
|
1668
1668
|
greedy: !0,
|
@@ -1684,7 +1684,7 @@ function Cn() {
|
|
1684
1684
|
pattern: /^\$\{|\}$/,
|
1685
1685
|
alias: "punctuation"
|
1686
1686
|
},
|
1687
|
-
rest:
|
1687
|
+
rest: r.languages.javascript
|
1688
1688
|
}
|
1689
1689
|
},
|
1690
1690
|
string: /[\s\S]+/
|
@@ -1696,22 +1696,22 @@ function Cn() {
|
|
1696
1696
|
greedy: !0,
|
1697
1697
|
alias: "property"
|
1698
1698
|
}
|
1699
|
-
}),
|
1699
|
+
}), r.languages.insertBefore("javascript", "operator", {
|
1700
1700
|
"literal-property": {
|
1701
1701
|
pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
|
1702
1702
|
lookbehind: !0,
|
1703
1703
|
alias: "property"
|
1704
1704
|
}
|
1705
|
-
}),
|
1705
|
+
}), r.languages.markup && (r.languages.markup.tag.addInlined("script", "javascript"), r.languages.markup.tag.addAttribute(
|
1706
1706
|
/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,
|
1707
1707
|
"javascript"
|
1708
|
-
)),
|
1709
|
-
if (typeof
|
1708
|
+
)), r.languages.js = r.languages.javascript, (function() {
|
1709
|
+
if (typeof r > "u" || typeof document > "u")
|
1710
1710
|
return;
|
1711
1711
|
Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
|
1712
|
-
var m = "Loading…", v = function(
|
1713
|
-
return "✖ Error " +
|
1714
|
-
}, x = "✖ Error: File does not exist or is empty",
|
1712
|
+
var m = "Loading…", v = function($, _) {
|
1713
|
+
return "✖ Error " + $ + " while fetching file: " + _;
|
1714
|
+
}, x = "✖ Error: File does not exist or is empty", d = {
|
1715
1715
|
js: "javascript",
|
1716
1716
|
py: "python",
|
1717
1717
|
rb: "ruby",
|
@@ -1721,56 +1721,56 @@ function Cn() {
|
|
1721
1721
|
bat: "batch",
|
1722
1722
|
h: "c",
|
1723
1723
|
tex: "latex"
|
1724
|
-
}, a = "data-src-status",
|
1725
|
-
function
|
1726
|
-
var
|
1727
|
-
|
1728
|
-
|
1729
|
-
},
|
1724
|
+
}, a = "data-src-status", u = "loading", w = "loaded", k = "failed", y = "pre[data-src]:not([" + a + '="' + w + '"]):not([' + a + '="' + u + '"])';
|
1725
|
+
function S($, _, C) {
|
1726
|
+
var t = new XMLHttpRequest();
|
1727
|
+
t.open("GET", $, !0), t.onreadystatechange = function() {
|
1728
|
+
t.readyState == 4 && (t.status < 400 && t.responseText ? _(t.responseText) : t.status >= 400 ? C(v(t.status, t.statusText)) : C(x));
|
1729
|
+
}, t.send(null);
|
1730
1730
|
}
|
1731
|
-
function
|
1732
|
-
var _ = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(
|
1731
|
+
function O($) {
|
1732
|
+
var _ = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec($ || "");
|
1733
1733
|
if (_) {
|
1734
|
-
var
|
1735
|
-
return
|
1734
|
+
var C = Number(_[1]), t = _[2], n = _[3];
|
1735
|
+
return t ? n ? [C, Number(n)] : [C, void 0] : [C, C];
|
1736
1736
|
}
|
1737
1737
|
}
|
1738
|
-
|
1739
|
-
|
1740
|
-
}),
|
1738
|
+
r.hooks.add("before-highlightall", function($) {
|
1739
|
+
$.selector += ", " + y;
|
1740
|
+
}), r.hooks.add("before-sanity-check", function($) {
|
1741
1741
|
var _ = (
|
1742
1742
|
/** @type {HTMLPreElement} */
|
1743
|
-
|
1743
|
+
$.element
|
1744
1744
|
);
|
1745
|
-
if (_.matches(
|
1746
|
-
|
1747
|
-
var
|
1748
|
-
|
1749
|
-
var
|
1750
|
-
if (
|
1751
|
-
var o = (/\.(\w+)$/.exec(
|
1752
|
-
|
1745
|
+
if (_.matches(y)) {
|
1746
|
+
$.code = "", _.setAttribute(a, u);
|
1747
|
+
var C = _.appendChild(document.createElement("CODE"));
|
1748
|
+
C.textContent = m;
|
1749
|
+
var t = _.getAttribute("data-src"), n = $.language;
|
1750
|
+
if (n === "none") {
|
1751
|
+
var o = (/\.(\w+)$/.exec(t) || [, "none"])[1];
|
1752
|
+
n = d[o] || o;
|
1753
1753
|
}
|
1754
|
-
|
1755
|
-
var s =
|
1756
|
-
s && s.loadLanguages(
|
1757
|
-
|
1758
|
-
function(
|
1759
|
-
_.setAttribute(a,
|
1760
|
-
var
|
1761
|
-
if (
|
1762
|
-
var
|
1763
|
-
|
1764
|
-
`), _.hasAttribute("data-start") || _.setAttribute("data-start", String(
|
1754
|
+
r.util.setLanguage(C, n), r.util.setLanguage(_, n);
|
1755
|
+
var s = r.plugins.autoloader;
|
1756
|
+
s && s.loadLanguages(n), S(
|
1757
|
+
t,
|
1758
|
+
function(l) {
|
1759
|
+
_.setAttribute(a, w);
|
1760
|
+
var h = O(_.getAttribute("data-range"));
|
1761
|
+
if (h) {
|
1762
|
+
var A = l.split(/\r\n?|\n/g), p = h[0], P = h[1] == null ? A.length : h[1];
|
1763
|
+
p < 0 && (p += A.length), p = Math.max(0, Math.min(p - 1, A.length)), P < 0 && (P += A.length), P = Math.max(0, Math.min(P, A.length)), l = A.slice(p, P).join(`
|
1764
|
+
`), _.hasAttribute("data-start") || _.setAttribute("data-start", String(p + 1));
|
1765
1765
|
}
|
1766
|
-
|
1766
|
+
C.textContent = l, r.highlightElement(C);
|
1767
1767
|
},
|
1768
|
-
function(
|
1769
|
-
_.setAttribute(a,
|
1768
|
+
function(l) {
|
1769
|
+
_.setAttribute(a, k), C.textContent = l;
|
1770
1770
|
}
|
1771
1771
|
);
|
1772
1772
|
}
|
1773
|
-
}),
|
1773
|
+
}), r.plugins.fileHighlight = {
|
1774
1774
|
/**
|
1775
1775
|
* Executes the File Highlight plugin for all matching `pre` elements under the given container.
|
1776
1776
|
*
|
@@ -1779,325 +1779,25 @@ function Cn() {
|
|
1779
1779
|
* @param {ParentNode} [container=document]
|
1780
1780
|
*/
|
1781
1781
|
highlight: function(_) {
|
1782
|
-
for (var
|
1783
|
-
|
1782
|
+
for (var C = (_ || document).querySelectorAll(y), t = 0, n; n = C[t++]; )
|
1783
|
+
r.highlightElement(n);
|
1784
1784
|
}
|
1785
1785
|
};
|
1786
|
-
var
|
1787
|
-
|
1788
|
-
|
1786
|
+
var M = !1;
|
1787
|
+
r.fileHighlight = function() {
|
1788
|
+
M || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), M = !0), r.plugins.fileHighlight.highlight.apply(this, arguments);
|
1789
1789
|
};
|
1790
1790
|
})();
|
1791
|
-
})(
|
1791
|
+
})(Fe)), Fe.exports;
|
1792
1792
|
}
|
1793
|
-
var
|
1794
|
-
const
|
1795
|
-
(function(l) {
|
1796
|
-
var g = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
|
1797
|
-
function t(p) {
|
1798
|
-
return p = p.replace(/<inner>/g, function() {
|
1799
|
-
return g;
|
1800
|
-
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + p + ")");
|
1801
|
-
}
|
1802
|
-
var m = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, v = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
|
1803
|
-
return m;
|
1804
|
-
}), x = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
|
1805
|
-
l.languages.markdown = l.languages.extend("markup", {}), l.languages.insertBefore("markdown", "prolog", {
|
1806
|
-
"front-matter-block": {
|
1807
|
-
pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
|
1808
|
-
lookbehind: !0,
|
1809
|
-
greedy: !0,
|
1810
|
-
inside: {
|
1811
|
-
punctuation: /^---|---$/,
|
1812
|
-
"front-matter": {
|
1813
|
-
pattern: /\S+(?:\s+\S+)*/,
|
1814
|
-
alias: ["yaml", "language-yaml"],
|
1815
|
-
inside: l.languages.yaml
|
1816
|
-
}
|
1817
|
-
}
|
1818
|
-
},
|
1819
|
-
blockquote: {
|
1820
|
-
// > ...
|
1821
|
-
pattern: /^>(?:[\t ]*>)*/m,
|
1822
|
-
alias: "punctuation"
|
1823
|
-
},
|
1824
|
-
table: {
|
1825
|
-
pattern: RegExp("^" + v + x + "(?:" + v + ")*", "m"),
|
1826
|
-
inside: {
|
1827
|
-
"table-data-rows": {
|
1828
|
-
pattern: RegExp("^(" + v + x + ")(?:" + v + ")*$"),
|
1829
|
-
lookbehind: !0,
|
1830
|
-
inside: {
|
1831
|
-
"table-data": {
|
1832
|
-
pattern: RegExp(m),
|
1833
|
-
inside: l.languages.markdown
|
1834
|
-
},
|
1835
|
-
punctuation: /\|/
|
1836
|
-
}
|
1837
|
-
},
|
1838
|
-
"table-line": {
|
1839
|
-
pattern: RegExp("^(" + v + ")" + x + "$"),
|
1840
|
-
lookbehind: !0,
|
1841
|
-
inside: {
|
1842
|
-
punctuation: /\||:?-{3,}:?/
|
1843
|
-
}
|
1844
|
-
},
|
1845
|
-
"table-header-row": {
|
1846
|
-
pattern: RegExp("^" + v + "$"),
|
1847
|
-
inside: {
|
1848
|
-
"table-header": {
|
1849
|
-
pattern: RegExp(m),
|
1850
|
-
alias: "important",
|
1851
|
-
inside: l.languages.markdown
|
1852
|
-
},
|
1853
|
-
punctuation: /\|/
|
1854
|
-
}
|
1855
|
-
}
|
1856
|
-
}
|
1857
|
-
},
|
1858
|
-
code: [
|
1859
|
-
{
|
1860
|
-
// Prefixed by 4 spaces or 1 tab and preceded by an empty line
|
1861
|
-
pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,
|
1862
|
-
lookbehind: !0,
|
1863
|
-
alias: "keyword"
|
1864
|
-
},
|
1865
|
-
{
|
1866
|
-
// ```optional language
|
1867
|
-
// code block
|
1868
|
-
// ```
|
1869
|
-
pattern: /^```[\s\S]*?^```$/m,
|
1870
|
-
greedy: !0,
|
1871
|
-
inside: {
|
1872
|
-
"code-block": {
|
1873
|
-
pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,
|
1874
|
-
lookbehind: !0
|
1875
|
-
},
|
1876
|
-
"code-language": {
|
1877
|
-
pattern: /^(```).+/,
|
1878
|
-
lookbehind: !0
|
1879
|
-
},
|
1880
|
-
punctuation: /```/
|
1881
|
-
}
|
1882
|
-
}
|
1883
|
-
],
|
1884
|
-
title: [
|
1885
|
-
{
|
1886
|
-
// title 1
|
1887
|
-
// =======
|
1888
|
-
// title 2
|
1889
|
-
// -------
|
1890
|
-
pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,
|
1891
|
-
alias: "important",
|
1892
|
-
inside: {
|
1893
|
-
punctuation: /==+$|--+$/
|
1894
|
-
}
|
1895
|
-
},
|
1896
|
-
{
|
1897
|
-
// # title 1
|
1898
|
-
// ###### title 6
|
1899
|
-
pattern: /(^\s*)#.+/m,
|
1900
|
-
lookbehind: !0,
|
1901
|
-
alias: "important",
|
1902
|
-
inside: {
|
1903
|
-
punctuation: /^#+|#+$/
|
1904
|
-
}
|
1905
|
-
}
|
1906
|
-
],
|
1907
|
-
hr: {
|
1908
|
-
// ***
|
1909
|
-
// ---
|
1910
|
-
// * * *
|
1911
|
-
// -----------
|
1912
|
-
pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,
|
1913
|
-
lookbehind: !0,
|
1914
|
-
alias: "punctuation"
|
1915
|
-
},
|
1916
|
-
list: {
|
1917
|
-
// * item
|
1918
|
-
// + item
|
1919
|
-
// - item
|
1920
|
-
// 1. item
|
1921
|
-
pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,
|
1922
|
-
lookbehind: !0,
|
1923
|
-
alias: "punctuation"
|
1924
|
-
},
|
1925
|
-
"url-reference": {
|
1926
|
-
// [id]: http://example.com "Optional title"
|
1927
|
-
// [id]: http://example.com 'Optional title'
|
1928
|
-
// [id]: http://example.com (Optional title)
|
1929
|
-
// [id]: <http://example.com> "Optional title"
|
1930
|
-
pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,
|
1931
|
-
inside: {
|
1932
|
-
variable: {
|
1933
|
-
pattern: /^(!?\[)[^\]]+/,
|
1934
|
-
lookbehind: !0
|
1935
|
-
},
|
1936
|
-
string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,
|
1937
|
-
punctuation: /^[\[\]!:]|[<>]/
|
1938
|
-
},
|
1939
|
-
alias: "url"
|
1940
|
-
},
|
1941
|
-
bold: {
|
1942
|
-
// **strong**
|
1943
|
-
// __strong__
|
1944
|
-
// allow one nested instance of italic text using the same delimiter
|
1945
|
-
pattern: t(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),
|
1946
|
-
lookbehind: !0,
|
1947
|
-
greedy: !0,
|
1948
|
-
inside: {
|
1949
|
-
content: {
|
1950
|
-
pattern: /(^..)[\s\S]+(?=..$)/,
|
1951
|
-
lookbehind: !0,
|
1952
|
-
inside: {}
|
1953
|
-
// see below
|
1954
|
-
},
|
1955
|
-
punctuation: /\*\*|__/
|
1956
|
-
}
|
1957
|
-
},
|
1958
|
-
italic: {
|
1959
|
-
// *em*
|
1960
|
-
// _em_
|
1961
|
-
// allow one nested instance of bold text using the same delimiter
|
1962
|
-
pattern: t(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),
|
1963
|
-
lookbehind: !0,
|
1964
|
-
greedy: !0,
|
1965
|
-
inside: {
|
1966
|
-
content: {
|
1967
|
-
pattern: /(^.)[\s\S]+(?=.$)/,
|
1968
|
-
lookbehind: !0,
|
1969
|
-
inside: {}
|
1970
|
-
// see below
|
1971
|
-
},
|
1972
|
-
punctuation: /[*_]/
|
1973
|
-
}
|
1974
|
-
},
|
1975
|
-
strike: {
|
1976
|
-
// ~~strike through~~
|
1977
|
-
// ~strike~
|
1978
|
-
// eslint-disable-next-line regexp/strict
|
1979
|
-
pattern: t(/(~~?)(?:(?!~)<inner>)+\2/.source),
|
1980
|
-
lookbehind: !0,
|
1981
|
-
greedy: !0,
|
1982
|
-
inside: {
|
1983
|
-
content: {
|
1984
|
-
pattern: /(^~~?)[\s\S]+(?=\1$)/,
|
1985
|
-
lookbehind: !0,
|
1986
|
-
inside: {}
|
1987
|
-
// see below
|
1988
|
-
},
|
1989
|
-
punctuation: /~~?/
|
1990
|
-
}
|
1991
|
-
},
|
1992
|
-
"code-snippet": {
|
1993
|
-
// `code`
|
1994
|
-
// ``code``
|
1995
|
-
pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,
|
1996
|
-
lookbehind: !0,
|
1997
|
-
greedy: !0,
|
1998
|
-
alias: ["code", "keyword"]
|
1999
|
-
},
|
2000
|
-
url: {
|
2001
|
-
// [example](http://example.com "Optional title")
|
2002
|
-
// [example][id]
|
2003
|
-
// [example] [id]
|
2004
|
-
pattern: t(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),
|
2005
|
-
lookbehind: !0,
|
2006
|
-
greedy: !0,
|
2007
|
-
inside: {
|
2008
|
-
operator: /^!/,
|
2009
|
-
content: {
|
2010
|
-
pattern: /(^\[)[^\]]+(?=\])/,
|
2011
|
-
lookbehind: !0,
|
2012
|
-
inside: {}
|
2013
|
-
// see below
|
2014
|
-
},
|
2015
|
-
variable: {
|
2016
|
-
pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/,
|
2017
|
-
lookbehind: !0
|
2018
|
-
},
|
2019
|
-
url: {
|
2020
|
-
pattern: /(^\]\()[^\s)]+/,
|
2021
|
-
lookbehind: !0
|
2022
|
-
},
|
2023
|
-
string: {
|
2024
|
-
pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,
|
2025
|
-
lookbehind: !0
|
2026
|
-
}
|
2027
|
-
}
|
2028
|
-
}
|
2029
|
-
}), ["url", "bold", "italic", "strike"].forEach(function(p) {
|
2030
|
-
["url", "bold", "italic", "strike", "code-snippet"].forEach(function(f) {
|
2031
|
-
p !== f && (l.languages.markdown[p].inside.content.inside[f] = l.languages.markdown[f]);
|
2032
|
-
});
|
2033
|
-
}), l.hooks.add("after-tokenize", function(p) {
|
2034
|
-
if (p.language !== "markdown" && p.language !== "md")
|
2035
|
-
return;
|
2036
|
-
function f(k) {
|
2037
|
-
if (!(!k || typeof k == "string"))
|
2038
|
-
for (var C = 0, P = k.length; C < P; C++) {
|
2039
|
-
var S = k[C];
|
2040
|
-
if (S.type !== "code") {
|
2041
|
-
f(S.content);
|
2042
|
-
continue;
|
2043
|
-
}
|
2044
|
-
var _ = S.content[1], A = S.content[3];
|
2045
|
-
if (_ && A && _.type === "code-language" && A.type === "code-block" && typeof _.content == "string") {
|
2046
|
-
var n = _.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
|
2047
|
-
n = (/[a-z][\w-]*/i.exec(n) || [""])[0].toLowerCase();
|
2048
|
-
var r = "language-" + n;
|
2049
|
-
A.alias ? typeof A.alias == "string" ? A.alias = [A.alias, r] : A.alias.push(r) : A.alias = [r];
|
2050
|
-
}
|
2051
|
-
}
|
2052
|
-
}
|
2053
|
-
f(p.tokens);
|
2054
|
-
}), l.hooks.add("wrap", function(p) {
|
2055
|
-
if (p.type === "code-block") {
|
2056
|
-
for (var f = "", k = 0, C = p.classes.length; k < C; k++) {
|
2057
|
-
var P = p.classes[k], S = /language-(.+)/.exec(P);
|
2058
|
-
if (S) {
|
2059
|
-
f = S[1];
|
2060
|
-
break;
|
2061
|
-
}
|
2062
|
-
}
|
2063
|
-
var _ = l.languages[f];
|
2064
|
-
if (_)
|
2065
|
-
p.content = l.highlight(E(p.content), _, f);
|
2066
|
-
else if (f && f !== "none" && l.plugins.autoloader) {
|
2067
|
-
var A = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
|
2068
|
-
p.attributes.id = A, l.plugins.autoloader.loadLanguages(f, function() {
|
2069
|
-
var n = document.getElementById(A);
|
2070
|
-
n && (n.innerHTML = l.highlight(n.textContent, l.languages[f], f));
|
2071
|
-
});
|
2072
|
-
}
|
2073
|
-
}
|
2074
|
-
});
|
2075
|
-
var h = RegExp(l.languages.markup.tag.pattern.source, "gi"), a = {
|
2076
|
-
amp: "&",
|
2077
|
-
lt: "<",
|
2078
|
-
gt: ">",
|
2079
|
-
quot: '"'
|
2080
|
-
}, c = String.fromCodePoint || String.fromCharCode;
|
2081
|
-
function E(p) {
|
2082
|
-
var f = p.replace(h, "");
|
2083
|
-
return f = f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(k, C) {
|
2084
|
-
if (C = C.toLowerCase(), C[0] === "#") {
|
2085
|
-
var P;
|
2086
|
-
return C[1] === "x" ? P = parseInt(C.slice(2), 16) : P = Number(C.slice(1)), c(P);
|
2087
|
-
} else {
|
2088
|
-
var S = a[C];
|
2089
|
-
return S || k;
|
2090
|
-
}
|
2091
|
-
}), f;
|
2092
|
-
}
|
2093
|
-
l.languages.md = l.languages.markdown;
|
2094
|
-
})(Prism);
|
1793
|
+
var Ct = Rt();
|
1794
|
+
const Tt = /* @__PURE__ */ At(Ct);
|
2095
1795
|
var Be = {}, Ve;
|
2096
|
-
function
|
1796
|
+
function $t() {
|
2097
1797
|
return Ve || (Ve = 1, (function() {
|
2098
1798
|
if (typeof Prism > "u" || typeof document > "u")
|
2099
1799
|
return;
|
2100
|
-
var
|
1800
|
+
var g = "line-numbers", f = /\n(?!$)/g, r = Prism.plugins.lineNumbers = {
|
2101
1801
|
/**
|
2102
1802
|
* Get node for provided line number
|
2103
1803
|
*
|
@@ -2105,14 +1805,14 @@ function On() {
|
|
2105
1805
|
* @param {number} number line number
|
2106
1806
|
* @returns {Element|undefined}
|
2107
1807
|
*/
|
2108
|
-
getLine: function(
|
2109
|
-
if (!(
|
2110
|
-
var
|
2111
|
-
if (
|
2112
|
-
var
|
2113
|
-
a <
|
2114
|
-
var
|
2115
|
-
return
|
1808
|
+
getLine: function(d, a) {
|
1809
|
+
if (!(d.tagName !== "PRE" || !d.classList.contains(g))) {
|
1810
|
+
var u = d.querySelector(".line-numbers-rows");
|
1811
|
+
if (u) {
|
1812
|
+
var w = parseInt(d.getAttribute("data-start"), 10) || 1, k = w + (u.children.length - 1);
|
1813
|
+
a < w && (a = w), a > k && (a = k);
|
1814
|
+
var y = a - w;
|
1815
|
+
return u.children[y];
|
2116
1816
|
}
|
2117
1817
|
}
|
2118
1818
|
},
|
@@ -2124,8 +1824,8 @@ function On() {
|
|
2124
1824
|
* @param {HTMLElement} element A `<pre>` element with line numbers.
|
2125
1825
|
* @returns {void}
|
2126
1826
|
*/
|
2127
|
-
resize: function(
|
2128
|
-
m([
|
1827
|
+
resize: function(d) {
|
1828
|
+
m([d]);
|
2129
1829
|
},
|
2130
1830
|
/**
|
2131
1831
|
* Whether the plugin can assume that the units font sizes and margins are not depended on the size of
|
@@ -2139,112 +1839,112 @@ function On() {
|
|
2139
1839
|
*/
|
2140
1840
|
assumeViewportIndependence: !0
|
2141
1841
|
};
|
2142
|
-
function m(
|
2143
|
-
if (
|
2144
|
-
var
|
2145
|
-
return
|
2146
|
-
}),
|
2147
|
-
var a =
|
2148
|
-
var
|
2149
|
-
if (!(!
|
2150
|
-
var
|
2151
|
-
|
2152
|
-
var
|
2153
|
-
return
|
2154
|
-
element:
|
2155
|
-
lines:
|
1842
|
+
function m(d) {
|
1843
|
+
if (d = d.filter(function(u) {
|
1844
|
+
var w = v(u), k = w["white-space"];
|
1845
|
+
return k === "pre-wrap" || k === "pre-line";
|
1846
|
+
}), d.length != 0) {
|
1847
|
+
var a = d.map(function(u) {
|
1848
|
+
var w = u.querySelector("code"), k = u.querySelector(".line-numbers-rows");
|
1849
|
+
if (!(!w || !k)) {
|
1850
|
+
var y = u.querySelector(".line-numbers-sizer"), S = w.textContent.split(f);
|
1851
|
+
y || (y = document.createElement("span"), y.className = "line-numbers-sizer", w.appendChild(y)), y.innerHTML = "0", y.style.display = "block";
|
1852
|
+
var O = y.getBoundingClientRect().height;
|
1853
|
+
return y.innerHTML = "", {
|
1854
|
+
element: u,
|
1855
|
+
lines: S,
|
2156
1856
|
lineHeights: [],
|
2157
|
-
oneLinerHeight:
|
2158
|
-
sizer:
|
1857
|
+
oneLinerHeight: O,
|
1858
|
+
sizer: y
|
2159
1859
|
};
|
2160
1860
|
}
|
2161
1861
|
}).filter(Boolean);
|
2162
|
-
a.forEach(function(
|
2163
|
-
var
|
2164
|
-
|
2165
|
-
if (
|
2166
|
-
var
|
2167
|
-
|
1862
|
+
a.forEach(function(u) {
|
1863
|
+
var w = u.sizer, k = u.lines, y = u.lineHeights, S = u.oneLinerHeight;
|
1864
|
+
y[k.length - 1] = void 0, k.forEach(function(O, M) {
|
1865
|
+
if (O && O.length > 1) {
|
1866
|
+
var $ = w.appendChild(document.createElement("span"));
|
1867
|
+
$.style.display = "block", $.textContent = O;
|
2168
1868
|
} else
|
2169
|
-
|
1869
|
+
y[M] = S;
|
2170
1870
|
});
|
2171
|
-
}), a.forEach(function(
|
2172
|
-
for (var
|
2173
|
-
|
2174
|
-
}), a.forEach(function(
|
2175
|
-
var
|
2176
|
-
|
2177
|
-
|
1871
|
+
}), a.forEach(function(u) {
|
1872
|
+
for (var w = u.sizer, k = u.lineHeights, y = 0, S = 0; S < k.length; S++)
|
1873
|
+
k[S] === void 0 && (k[S] = w.children[y++].getBoundingClientRect().height);
|
1874
|
+
}), a.forEach(function(u) {
|
1875
|
+
var w = u.sizer, k = u.element.querySelector(".line-numbers-rows");
|
1876
|
+
w.style.display = "none", w.innerHTML = "", u.lineHeights.forEach(function(y, S) {
|
1877
|
+
k.children[S].style.height = y + "px";
|
2178
1878
|
});
|
2179
1879
|
});
|
2180
1880
|
}
|
2181
1881
|
}
|
2182
|
-
function v(
|
2183
|
-
return
|
1882
|
+
function v(d) {
|
1883
|
+
return d ? window.getComputedStyle ? getComputedStyle(d) : d.currentStyle || null : null;
|
2184
1884
|
}
|
2185
1885
|
var x = void 0;
|
2186
1886
|
window.addEventListener("resize", function() {
|
2187
|
-
|
2188
|
-
}), Prism.hooks.add("complete", function(
|
2189
|
-
if (
|
1887
|
+
r.assumeViewportIndependence && x === window.innerWidth || (x = window.innerWidth, m(Array.prototype.slice.call(document.querySelectorAll("pre." + g))));
|
1888
|
+
}), Prism.hooks.add("complete", function(d) {
|
1889
|
+
if (d.code) {
|
2190
1890
|
var a = (
|
2191
1891
|
/** @type {Element} */
|
2192
|
-
|
2193
|
-
),
|
1892
|
+
d.element
|
1893
|
+
), u = (
|
2194
1894
|
/** @type {HTMLElement} */
|
2195
1895
|
a.parentNode
|
2196
1896
|
);
|
2197
|
-
if (!(!
|
2198
|
-
a.classList.remove(
|
2199
|
-
var
|
2200
|
-
|
1897
|
+
if (!(!u || !/pre/i.test(u.nodeName)) && !a.querySelector(".line-numbers-rows") && Prism.util.isActive(a, g)) {
|
1898
|
+
a.classList.remove(g), u.classList.add(g);
|
1899
|
+
var w = d.code.match(f), k = w ? w.length + 1 : 1, y, S = new Array(k + 1).join("<span></span>");
|
1900
|
+
y = document.createElement("span"), y.setAttribute("aria-hidden", "true"), y.className = "line-numbers-rows", y.innerHTML = S, u.hasAttribute("data-start") && (u.style.counterReset = "linenumber " + (parseInt(u.getAttribute("data-start"), 10) - 1)), d.element.appendChild(y), m([u]), Prism.hooks.run("line-numbers", d);
|
2201
1901
|
}
|
2202
1902
|
}
|
2203
|
-
}), Prism.hooks.add("line-numbers", function(
|
2204
|
-
|
1903
|
+
}), Prism.hooks.add("line-numbers", function(d) {
|
1904
|
+
d.plugins = d.plugins || {}, d.plugins.lineNumbers = !0;
|
2205
1905
|
});
|
2206
1906
|
})()), Be;
|
2207
1907
|
}
|
2208
|
-
|
2209
|
-
function Je(
|
2210
|
-
return
|
1908
|
+
$t();
|
1909
|
+
function Je(g) {
|
1910
|
+
return g.useTabs ? " " : g.hasPadding ? " " : "";
|
2211
1911
|
}
|
2212
|
-
class
|
1912
|
+
class Pt {
|
2213
1913
|
padding;
|
2214
|
-
constructor(
|
2215
|
-
this.padding = Je(
|
1914
|
+
constructor(f) {
|
1915
|
+
this.padding = Je(f);
|
2216
1916
|
}
|
2217
|
-
formatCell(
|
1917
|
+
formatCell(f, r, m) {
|
2218
1918
|
const v = m;
|
2219
|
-
switch (
|
1919
|
+
switch (r) {
|
2220
1920
|
case "right":
|
2221
|
-
return `${this.padding}${
|
1921
|
+
return `${this.padding}${f.padStart(v)}${this.padding}`;
|
2222
1922
|
case "center": {
|
2223
|
-
const x = v -
|
2224
|
-
return `${this.padding}${" ".repeat(
|
1923
|
+
const x = v - f.length, d = Math.floor(x / 2), a = x - d;
|
1924
|
+
return `${this.padding}${" ".repeat(d)}${f}${" ".repeat(a)}${this.padding}`;
|
2225
1925
|
}
|
2226
1926
|
default:
|
2227
|
-
return `${this.padding}${
|
1927
|
+
return `${this.padding}${f.padEnd(v)}${this.padding}`;
|
2228
1928
|
}
|
2229
1929
|
}
|
2230
1930
|
}
|
2231
|
-
class
|
1931
|
+
class jt {
|
2232
1932
|
static indicators = {
|
2233
|
-
left: (
|
2234
|
-
right: (
|
2235
|
-
center: (
|
2236
|
-
none: (
|
1933
|
+
left: (f) => `:${"-".repeat(f - 1)}`,
|
1934
|
+
right: (f) => `${"-".repeat(f - 1)}:`,
|
1935
|
+
center: (f) => `:${"-".repeat(f - 2)}:`,
|
1936
|
+
none: (f) => "-".repeat(f)
|
2237
1937
|
};
|
2238
|
-
static formatIndicator(
|
2239
|
-
return this.indicators[
|
1938
|
+
static formatIndicator(f, r) {
|
1939
|
+
return this.indicators[f](r);
|
2240
1940
|
}
|
2241
1941
|
}
|
2242
|
-
class
|
1942
|
+
class Ot {
|
2243
1943
|
config;
|
2244
1944
|
cellFormatter;
|
2245
1945
|
adjustedAlignments;
|
2246
|
-
constructor(
|
2247
|
-
this.config =
|
1946
|
+
constructor(f) {
|
1947
|
+
this.config = f, this.cellFormatter = new Pt(f), this.adjustedAlignments = this.getAdjustedAlignments();
|
2248
1948
|
}
|
2249
1949
|
getAdjustedAlignments() {
|
2250
1950
|
return this.config.columnAlignments.length < this.config.columnCount ? [
|
@@ -2252,94 +1952,94 @@ class In {
|
|
2252
1952
|
...Array(this.config.columnCount - this.config.columnAlignments.length).fill("none")
|
2253
1953
|
] : Array.from(this.config.columnAlignments);
|
2254
1954
|
}
|
2255
|
-
formatRow(
|
1955
|
+
formatRow(f) {
|
2256
1956
|
return `|${Array.from({ length: this.config.columnCount }, (m, v) => {
|
2257
|
-
let x =
|
1957
|
+
let x = f[v] ?? "";
|
2258
1958
|
this.config.replaceNewlines && (x = x.replace(/\n/g, "<br>"));
|
2259
|
-
const
|
2260
|
-
return this.cellFormatter.formatCell(x,
|
1959
|
+
const d = this.adjustedAlignments[v], a = this.config.columnWidths ? this.config.columnWidths[v] : x.length;
|
1960
|
+
return this.cellFormatter.formatCell(x, d, a);
|
2261
1961
|
}).join("|")}|`;
|
2262
1962
|
}
|
2263
1963
|
formatAlignmentRow() {
|
2264
|
-
const
|
1964
|
+
const f = Je(this.config);
|
2265
1965
|
return `|${Array.from({ length: this.config.columnCount }, (m, v) => {
|
2266
|
-
const x = this.adjustedAlignments[v],
|
2267
|
-
return `${
|
1966
|
+
const x = this.adjustedAlignments[v], d = this.config.columnWidths ? this.config.columnWidths[v] : 3, a = jt.formatIndicator(x, d);
|
1967
|
+
return `${f}${a}${f}`;
|
2268
1968
|
}).join("|")}|`;
|
2269
1969
|
}
|
2270
1970
|
}
|
2271
|
-
function
|
2272
|
-
const
|
2273
|
-
return
|
2274
|
-
for (let v = 0; v <
|
1971
|
+
function Dt(g, f) {
|
1972
|
+
const r = new Array(f).fill(3);
|
1973
|
+
return g.forEach((m) => {
|
1974
|
+
for (let v = 0; v < f; v++) {
|
2275
1975
|
const x = m[v] ?? "";
|
2276
|
-
|
1976
|
+
r[v] = Math.max(r[v], x.length);
|
2277
1977
|
}
|
2278
|
-
}),
|
1978
|
+
}), r;
|
2279
1979
|
}
|
2280
|
-
function
|
2281
|
-
const
|
2282
|
-
return Math.max(
|
1980
|
+
function It(g) {
|
1981
|
+
const f = g.inputDataHeader.length, r = g.inputDataBody.map((m) => m.length);
|
1982
|
+
return Math.max(f, ...r);
|
2283
1983
|
}
|
2284
|
-
function
|
2285
|
-
return
|
2286
|
-
[
|
2287
|
-
|
1984
|
+
function zt(g, f, r) {
|
1985
|
+
return r ? Dt(
|
1986
|
+
[g.inputDataHeader, ...g.inputDataBody],
|
1987
|
+
f
|
2288
1988
|
) : void 0;
|
2289
1989
|
}
|
2290
|
-
function
|
2291
|
-
const
|
2292
|
-
columnCount:
|
2293
|
-
columnAlignments:
|
1990
|
+
function Lt(g, f, r = !0, m = !1, v = !1, x = !0) {
|
1991
|
+
const d = It(g), a = zt(g, d, r), u = {
|
1992
|
+
columnCount: d,
|
1993
|
+
columnAlignments: f,
|
2294
1994
|
columnWidths: a,
|
2295
1995
|
useTabs: m,
|
2296
1996
|
replaceNewlines: v,
|
2297
1997
|
hasPadding: x
|
2298
|
-
},
|
1998
|
+
}, w = new Ot(u), k = w.formatRow(g.inputDataHeader), y = w.formatAlignmentRow(), S = g.inputDataBody.map((O) => w.formatRow(O)).join(`
|
2299
1999
|
`);
|
2300
|
-
return `${
|
2301
|
-
${
|
2302
|
-
${
|
2000
|
+
return `${k}
|
2001
|
+
${y}
|
2002
|
+
${S}`.trimEnd();
|
2303
2003
|
}
|
2304
|
-
function
|
2305
|
-
let
|
2306
|
-
for (;
|
2307
|
-
|
2308
|
-
return
|
2004
|
+
function Mt(g) {
|
2005
|
+
let f = "", r = g;
|
2006
|
+
for (; r >= 0; )
|
2007
|
+
f = String.fromCharCode(r % 26 + 65) + f, r = Math.floor(r / 26) - 1;
|
2008
|
+
return f;
|
2309
2009
|
}
|
2310
|
-
function
|
2311
|
-
return Array.from({ length:
|
2010
|
+
function Wt(g) {
|
2011
|
+
return Array.from({ length: g }, (f, r) => Mt(r));
|
2312
2012
|
}
|
2313
2013
|
class ge extends Error {
|
2314
|
-
constructor(
|
2315
|
-
super(
|
2014
|
+
constructor(f, r) {
|
2015
|
+
super(f, r), this.name = "MarkdownTableError", Object.setPrototypeOf(this, ge.prototype);
|
2316
2016
|
}
|
2317
2017
|
}
|
2318
|
-
function
|
2319
|
-
if (
|
2018
|
+
function Nt(g) {
|
2019
|
+
if (g === null || !Array.isArray(g))
|
2320
2020
|
throw new ge("The 'data' prop must be a two-dimensional array.");
|
2321
|
-
if (
|
2021
|
+
if (g.length === 0)
|
2322
2022
|
throw new ge("The 'data' array must contain at least one row.");
|
2323
2023
|
}
|
2324
|
-
const
|
2325
|
-
code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}pre[class*=language-].line-numbers{position:relative;padding-left:2.4em;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.5em;text-align:right}
|
2326
|
-
`,
|
2327
|
-
code[class*=language-],pre[class*=language-]{color:#f8f8f2;background:0 0;text-shadow:0 1px rgba(0,0,0,.3);font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-],pre[class*=language-]{background:#282a36}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}pre[class*=language-].line-numbers{position:relative;padding-left:2.4em;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.5em;text-align:right}
|
2024
|
+
const Ht = `
|
2025
|
+
code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol,.token.deleted{color:#905}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#690}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.function,.token.class-name{color:#dd4a68}.token.regex,.token.important,.token.variable{color:#e90}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.table-header{color:#07a;font-weight:700}.token.title{color:#07a;font-weight:700}pre[class*=language-].line-numbers{position:relative;padding-left:2.4em;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.5em;text-align:right}
|
2026
|
+
`, qt = `
|
2027
|
+
code[class*=language-],pre[class*=language-]{color:#f8f8f2;background:0 0;text-shadow:0 1px rgba(0,0,0,.3);font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-],pre[class*=language-]{background:#282a36}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#6272a4}.token.punctuation{color:#f8f8f2}.token.namespace{opacity:.7}.token.property,.token.tag,.token.constant,.token.symbol,.token.deleted{color:#ff79c6}.token.boolean,.token.number{color:#bd93f9}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#50fa7b}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#f8f8f2}.token.atrule,.token.attr-value,.token.keyword{color:#8be9fd}.token.function,.token.class-name{color:#ffb86c}.token.regex,.token.important,.token.variable{color:#f1fa8c}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.table-header{color:#8be9fd;font-weight:700}.token.title{color:#8be9fd;font-weight:700}pre[class*=language-].line-numbers{position:relative;padding-left:2.4em;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.5em;text-align:right}
|
2328
2028
|
`;
|
2329
|
-
function
|
2330
|
-
return
|
2029
|
+
function Ut(g, f) {
|
2030
|
+
return f ? { inputDataHeader: g[0], inputDataBody: g.slice(1) } : { inputDataHeader: Wt(g[0].length), inputDataBody: g };
|
2331
2031
|
}
|
2332
|
-
function
|
2032
|
+
function Yt(g, f, r, m, v, x, d) {
|
2333
2033
|
try {
|
2334
|
-
|
2335
|
-
const { inputDataHeader: a, inputDataBody:
|
2336
|
-
return
|
2337
|
-
{ inputDataHeader: a, inputDataBody:
|
2338
|
-
|
2034
|
+
Nt(g);
|
2035
|
+
const { inputDataHeader: a, inputDataBody: u } = Ut(g, f);
|
2036
|
+
return Lt(
|
2037
|
+
{ inputDataHeader: a, inputDataBody: u },
|
2038
|
+
r,
|
2339
2039
|
m,
|
2340
2040
|
v,
|
2341
2041
|
x,
|
2342
|
-
|
2042
|
+
d
|
2343
2043
|
);
|
2344
2044
|
} catch (a) {
|
2345
2045
|
if (a instanceof ge)
|
@@ -2347,64 +2047,64 @@ function Bn(l, g, t, m, v, x, h) {
|
|
2347
2047
|
throw a;
|
2348
2048
|
}
|
2349
2049
|
}
|
2350
|
-
function
|
2351
|
-
inputData:
|
2352
|
-
hasHeader:
|
2353
|
-
columnAlignments:
|
2050
|
+
function Vt({
|
2051
|
+
inputData: g = null,
|
2052
|
+
hasHeader: f = !0,
|
2053
|
+
columnAlignments: r = [],
|
2354
2054
|
isCompact: m = !1,
|
2355
2055
|
hasTabs: v = !1,
|
2356
2056
|
hasPadding: x = !0,
|
2357
|
-
convertLineBreaks:
|
2057
|
+
convertLineBreaks: d = !1,
|
2358
2058
|
className: a,
|
2359
|
-
onGenerate:
|
2360
|
-
theme:
|
2361
|
-
preStyle:
|
2362
|
-
topPadding:
|
2363
|
-
minWidth:
|
2364
|
-
showLineNumbers:
|
2059
|
+
onGenerate: u,
|
2060
|
+
theme: w = "light",
|
2061
|
+
preStyle: k,
|
2062
|
+
topPadding: y = 16,
|
2063
|
+
minWidth: S,
|
2064
|
+
showLineNumbers: O = !0
|
2365
2065
|
}) {
|
2366
|
-
const
|
2066
|
+
const M = yt(null), $ = wt(), _ = kt(g), [, C] = xt(), t = Et(() => Yt(
|
2367
2067
|
_,
|
2368
|
-
|
2369
|
-
|
2068
|
+
f,
|
2069
|
+
r,
|
2370
2070
|
!m,
|
2371
2071
|
v,
|
2372
|
-
|
2072
|
+
d,
|
2373
2073
|
x
|
2374
2074
|
), [
|
2375
2075
|
_,
|
2376
|
-
|
2377
|
-
|
2076
|
+
f,
|
2077
|
+
r,
|
2378
2078
|
m,
|
2379
2079
|
v,
|
2380
|
-
|
2080
|
+
d,
|
2381
2081
|
x
|
2382
2082
|
]);
|
2383
|
-
return
|
2384
|
-
|
2385
|
-
}, [
|
2386
|
-
const
|
2387
|
-
|
2083
|
+
return We(() => {
|
2084
|
+
u && u(t);
|
2085
|
+
}, [t, u]), We(() => {
|
2086
|
+
const n = M.current?.querySelector("code");
|
2087
|
+
n && t && C(() => {
|
2388
2088
|
requestAnimationFrame(() => {
|
2389
|
-
if (
|
2390
|
-
const o =
|
2089
|
+
if (Tt.highlightElement(n), !O && M.current) {
|
2090
|
+
const o = M.current.querySelector(".line-numbers-rows");
|
2391
2091
|
o && o.remove();
|
2392
2092
|
}
|
2393
2093
|
});
|
2394
2094
|
});
|
2395
|
-
}, [
|
2095
|
+
}, [t, C, O]), /* @__PURE__ */ se.jsxs(se.Fragment, { children: [
|
2396
2096
|
/* @__PURE__ */ se.jsxs("style", { children: [
|
2397
|
-
|
2097
|
+
w === "light" ? Ht : qt,
|
2398
2098
|
`
|
2399
2099
|
pre {
|
2400
2100
|
position: relative;
|
2401
|
-
padding-top: ${
|
2101
|
+
padding-top: ${y}px !important;
|
2402
2102
|
}
|
2403
2103
|
pre::before {
|
2404
2104
|
position: absolute;
|
2405
2105
|
top: 8px;
|
2406
2106
|
left: 12px;
|
2407
|
-
color: ${
|
2107
|
+
color: ${w === "light" ? "#666" : "#999"};
|
2408
2108
|
letter-spacing: 2px;
|
2409
2109
|
font-size: 12px;
|
2410
2110
|
}
|
@@ -2424,7 +2124,7 @@ function Gn({
|
|
2424
2124
|
/* @__PURE__ */ se.jsx(
|
2425
2125
|
"div",
|
2426
2126
|
{
|
2427
|
-
id:
|
2127
|
+
id: $,
|
2428
2128
|
style: {
|
2429
2129
|
position: "relative",
|
2430
2130
|
isolation: "isolate",
|
@@ -2433,15 +2133,15 @@ function Gn({
|
|
2433
2133
|
children: /* @__PURE__ */ se.jsx(
|
2434
2134
|
"pre",
|
2435
2135
|
{
|
2436
|
-
ref:
|
2437
|
-
className: `${a} language-markdown ${
|
2136
|
+
ref: M,
|
2137
|
+
className: `${a} language-markdown ${O ? "line-numbers" : ""} ${w === "dark" ? "dark-theme" : ""}`,
|
2438
2138
|
style: {
|
2439
2139
|
width: "fit-content",
|
2440
|
-
minWidth:
|
2140
|
+
minWidth: S ? `${S}px` : "min-content",
|
2441
2141
|
margin: 0,
|
2442
|
-
...
|
2142
|
+
...k
|
2443
2143
|
},
|
2444
|
-
children: /* @__PURE__ */ se.jsx("code", { className: "language-markdown", role: "code", children:
|
2144
|
+
children: /* @__PURE__ */ se.jsx("code", { className: "language-markdown", role: "code", children: t })
|
2445
2145
|
}
|
2446
2146
|
)
|
2447
2147
|
}
|
@@ -2449,6 +2149,6 @@ function Gn({
|
|
2449
2149
|
] });
|
2450
2150
|
}
|
2451
2151
|
export {
|
2452
|
-
|
2152
|
+
Vt as MarkdownTable,
|
2453
2153
|
ge as MarkdownTableError
|
2454
2154
|
};
|