@oxide/react-asciidoc 0.2.9--canary.e13e759.0 → 0.2.9--canary.c02d6ca.0
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/react-asciidoc.js +222 -216
- package/dist/react-asciidoc.umd.cjs +11 -11
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/react-asciidoc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import C from "html-react-parser";
|
|
2
|
-
import { default as
|
|
3
|
-
import Ye, { useContext as
|
|
2
|
+
import { default as ar } from "html-react-parser";
|
|
3
|
+
import Ye, { useContext as D, Fragment as pe, createElement as q, createContext as wt } from "react";
|
|
4
4
|
var se = { exports: {} }, X = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
@@ -12,20 +12,20 @@ var se = { exports: {} }, X = {};
|
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
14
|
var Be;
|
|
15
|
-
function
|
|
15
|
+
function xt() {
|
|
16
16
|
if (Be)
|
|
17
17
|
return X;
|
|
18
18
|
Be = 1;
|
|
19
|
-
var e = Ye, i = Symbol.for("react.element"), s = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, f = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
20
|
-
function n(
|
|
19
|
+
var e = Ye, i = Symbol.for("react.element"), s = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, f = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, m = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
20
|
+
function n(d, h, k) {
|
|
21
21
|
var p, u = {}, v = null, w = null;
|
|
22
22
|
k !== void 0 && (v = "" + k), h.key !== void 0 && (v = "" + h.key), h.ref !== void 0 && (w = h.ref);
|
|
23
23
|
for (p in h)
|
|
24
|
-
l.call(h, p) && !
|
|
25
|
-
if (
|
|
26
|
-
for (p in h =
|
|
24
|
+
l.call(h, p) && !m.hasOwnProperty(p) && (u[p] = h[p]);
|
|
25
|
+
if (d && d.defaultProps)
|
|
26
|
+
for (p in h = d.defaultProps, h)
|
|
27
27
|
u[p] === void 0 && (u[p] = h[p]);
|
|
28
|
-
return { $$typeof: i, type:
|
|
28
|
+
return { $$typeof: i, type: d, key: v, ref: w, props: u, _owner: f.current };
|
|
29
29
|
}
|
|
30
30
|
return X.Fragment = s, X.jsx = n, X.jsxs = n, X;
|
|
31
31
|
}
|
|
@@ -40,16 +40,16 @@ var Q = {};
|
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
41
|
*/
|
|
42
42
|
var Ue;
|
|
43
|
-
function
|
|
43
|
+
function Rt() {
|
|
44
44
|
return Ue || (Ue = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var e = Ye, i = Symbol.for("react.element"), s = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"),
|
|
45
|
+
var e = Ye, i = Symbol.for("react.element"), s = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), n = Symbol.for("react.provider"), d = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), E = Symbol.iterator, O = "@@iterator";
|
|
46
46
|
function z(t) {
|
|
47
47
|
if (t === null || typeof t != "object")
|
|
48
48
|
return null;
|
|
49
49
|
var a = E && t[E] || t[O];
|
|
50
50
|
return typeof a == "function" ? a : null;
|
|
51
51
|
}
|
|
52
|
-
var
|
|
52
|
+
var F = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
53
|
function S(t) {
|
|
54
54
|
{
|
|
55
55
|
for (var a = arguments.length, c = new Array(a > 1 ? a - 1 : 0), b = 1; b < a; b++)
|
|
@@ -59,7 +59,7 @@ function xt() {
|
|
|
59
59
|
}
|
|
60
60
|
function U(t, a, c) {
|
|
61
61
|
{
|
|
62
|
-
var b =
|
|
62
|
+
var b = F.ReactDebugCurrentFrame, y = b.getStackAddendum();
|
|
63
63
|
y !== "" && (a += "%s", c = c.concat([y]));
|
|
64
64
|
var _ = c.map(function(N) {
|
|
65
65
|
return String(N);
|
|
@@ -70,7 +70,7 @@ function xt() {
|
|
|
70
70
|
var J = !1, Z = !1, qe = !1, ze = !1, Je = !1, ge;
|
|
71
71
|
ge = Symbol.for("react.module.reference");
|
|
72
72
|
function Ge(t) {
|
|
73
|
-
return !!(typeof t == "string" || typeof t == "function" || t === l || t ===
|
|
73
|
+
return !!(typeof t == "string" || typeof t == "function" || t === l || t === m || Je || t === f || t === k || t === p || ze || t === w || J || Z || qe || typeof t == "object" && t !== null && (t.$$typeof === v || t.$$typeof === u || t.$$typeof === n || t.$$typeof === d || t.$$typeof === h || t.$$typeof === ge || t.getModuleId !== void 0));
|
|
74
74
|
}
|
|
75
75
|
function Ke(t, a, c) {
|
|
76
76
|
var b = t.displayName;
|
|
@@ -82,7 +82,7 @@ function xt() {
|
|
|
82
82
|
function Ne(t) {
|
|
83
83
|
return t.displayName || "Context";
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function M(t) {
|
|
86
86
|
if (t == null)
|
|
87
87
|
return null;
|
|
88
88
|
if (typeof t.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
@@ -94,7 +94,7 @@ function xt() {
|
|
|
94
94
|
return "Fragment";
|
|
95
95
|
case s:
|
|
96
96
|
return "Portal";
|
|
97
|
-
case
|
|
97
|
+
case m:
|
|
98
98
|
return "Profiler";
|
|
99
99
|
case f:
|
|
100
100
|
return "StrictMode";
|
|
@@ -105,7 +105,7 @@ function xt() {
|
|
|
105
105
|
}
|
|
106
106
|
if (typeof t == "object")
|
|
107
107
|
switch (t.$$typeof) {
|
|
108
|
-
case
|
|
108
|
+
case d:
|
|
109
109
|
var a = t;
|
|
110
110
|
return Ne(a) + ".Consumer";
|
|
111
111
|
case n:
|
|
@@ -115,11 +115,11 @@ function xt() {
|
|
|
115
115
|
return Ke(t, t.render, "ForwardRef");
|
|
116
116
|
case u:
|
|
117
117
|
var b = t.displayName || null;
|
|
118
|
-
return b !== null ? b :
|
|
118
|
+
return b !== null ? b : M(t.type) || "Memo";
|
|
119
119
|
case v: {
|
|
120
120
|
var y = t, _ = y._payload, N = y._init;
|
|
121
121
|
try {
|
|
122
|
-
return
|
|
122
|
+
return M(N(_));
|
|
123
123
|
} catch {
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
@@ -127,14 +127,14 @@ function xt() {
|
|
|
127
127
|
}
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
|
-
var B = Object.assign, G = 0, ye, _e, we,
|
|
130
|
+
var B = Object.assign, G = 0, ye, _e, we, xe, Re, Ee, Se;
|
|
131
131
|
function Te() {
|
|
132
132
|
}
|
|
133
133
|
Te.__reactDisabledLog = !0;
|
|
134
134
|
function Xe() {
|
|
135
135
|
{
|
|
136
136
|
if (G === 0) {
|
|
137
|
-
ye = console.log, _e = console.info, we = console.warn,
|
|
137
|
+
ye = console.log, _e = console.info, we = console.warn, xe = console.error, Re = console.group, Ee = console.groupCollapsed, Se = console.groupEnd;
|
|
138
138
|
var t = {
|
|
139
139
|
configurable: !0,
|
|
140
140
|
enumerable: !0,
|
|
@@ -173,10 +173,10 @@ function xt() {
|
|
|
173
173
|
value: we
|
|
174
174
|
}),
|
|
175
175
|
error: B({}, t, {
|
|
176
|
-
value:
|
|
176
|
+
value: xe
|
|
177
177
|
}),
|
|
178
178
|
group: B({}, t, {
|
|
179
|
-
value:
|
|
179
|
+
value: Re
|
|
180
180
|
}),
|
|
181
181
|
groupCollapsed: B({}, t, {
|
|
182
182
|
value: Ee
|
|
@@ -189,7 +189,7 @@ function xt() {
|
|
|
189
189
|
G < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
var oe =
|
|
192
|
+
var oe = F.ReactCurrentDispatcher, ue;
|
|
193
193
|
function ee(t, a, c) {
|
|
194
194
|
{
|
|
195
195
|
if (ue === void 0)
|
|
@@ -234,42 +234,42 @@ function xt() {
|
|
|
234
234
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
235
235
|
try {
|
|
236
236
|
Reflect.construct(N, []);
|
|
237
|
-
} catch (
|
|
238
|
-
b =
|
|
237
|
+
} catch (W) {
|
|
238
|
+
b = W;
|
|
239
239
|
}
|
|
240
240
|
Reflect.construct(t, [], N);
|
|
241
241
|
} else {
|
|
242
242
|
try {
|
|
243
243
|
N.call();
|
|
244
|
-
} catch (
|
|
245
|
-
b =
|
|
244
|
+
} catch (W) {
|
|
245
|
+
b = W;
|
|
246
246
|
}
|
|
247
247
|
t.call(N.prototype);
|
|
248
248
|
}
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
251
251
|
throw Error();
|
|
252
|
-
} catch (
|
|
253
|
-
b =
|
|
252
|
+
} catch (W) {
|
|
253
|
+
b = W;
|
|
254
254
|
}
|
|
255
255
|
t();
|
|
256
256
|
}
|
|
257
|
-
} catch (
|
|
258
|
-
if (
|
|
259
|
-
for (var g =
|
|
260
|
-
`),
|
|
261
|
-
`),
|
|
257
|
+
} catch (W) {
|
|
258
|
+
if (W && b && typeof W.stack == "string") {
|
|
259
|
+
for (var g = W.stack.split(`
|
|
260
|
+
`), A = b.stack.split(`
|
|
261
|
+
`), x = g.length - 1, T = A.length - 1; x >= 1 && T >= 0 && g[x] !== A[T]; )
|
|
262
262
|
T--;
|
|
263
|
-
for (;
|
|
264
|
-
if (g[
|
|
265
|
-
if (
|
|
263
|
+
for (; x >= 1 && T >= 0; x--, T--)
|
|
264
|
+
if (g[x] !== A[T]) {
|
|
265
|
+
if (x !== 1 || T !== 1)
|
|
266
266
|
do
|
|
267
|
-
if (
|
|
267
|
+
if (x--, T--, T < 0 || g[x] !== A[T]) {
|
|
268
268
|
var I = `
|
|
269
|
-
` + g[
|
|
269
|
+
` + g[x].replace(" at new ", " at ");
|
|
270
270
|
return t.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", t.displayName)), typeof t == "function" && te.set(t, I), I;
|
|
271
271
|
}
|
|
272
|
-
while (
|
|
272
|
+
while (x >= 1 && T >= 0);
|
|
273
273
|
break;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
@@ -315,7 +315,7 @@ function xt() {
|
|
|
315
315
|
}
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
|
-
var ie = Object.prototype.hasOwnProperty, ke = {}, Oe =
|
|
318
|
+
var ie = Object.prototype.hasOwnProperty, ke = {}, Oe = F.ReactDebugCurrentFrame;
|
|
319
319
|
function ae(t) {
|
|
320
320
|
if (t) {
|
|
321
321
|
var a = t._owner, c = re(t.type, t._source, a ? a.type : null);
|
|
@@ -331,19 +331,19 @@ function xt() {
|
|
|
331
331
|
var g = void 0;
|
|
332
332
|
try {
|
|
333
333
|
if (typeof t[N] != "function") {
|
|
334
|
-
var
|
|
335
|
-
throw
|
|
334
|
+
var A = Error((b || "React class") + ": " + c + " type `" + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[N] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
335
|
+
throw A.name = "Invariant Violation", A;
|
|
336
336
|
}
|
|
337
337
|
g = t[N](a, N, b, c, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
|
-
} catch (
|
|
339
|
-
g =
|
|
338
|
+
} catch (x) {
|
|
339
|
+
g = x;
|
|
340
340
|
}
|
|
341
341
|
g && !(g instanceof Error) && (ae(y), S("%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, N, typeof g), ae(null)), g instanceof Error && !(g.message in ke) && (ke[g.message] = !0, ae(y), S("Failed %s type: %s", c, g.message), ae(null));
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
var it = Array.isArray;
|
|
346
|
-
function
|
|
346
|
+
function de(t) {
|
|
347
347
|
return it(t);
|
|
348
348
|
}
|
|
349
349
|
function at(t) {
|
|
@@ -354,25 +354,25 @@ function xt() {
|
|
|
354
354
|
}
|
|
355
355
|
function nt(t) {
|
|
356
356
|
try {
|
|
357
|
-
return
|
|
357
|
+
return Pe(t), !1;
|
|
358
358
|
} catch {
|
|
359
359
|
return !0;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Pe(t) {
|
|
363
363
|
return "" + t;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Ae(t) {
|
|
366
366
|
if (nt(t))
|
|
367
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", at(t)),
|
|
367
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", at(t)), Pe(t);
|
|
368
368
|
}
|
|
369
|
-
var K =
|
|
369
|
+
var K = F.ReactCurrentOwner, st = {
|
|
370
370
|
key: !0,
|
|
371
371
|
ref: !0,
|
|
372
372
|
__self: !0,
|
|
373
373
|
__source: !0
|
|
374
|
-
}, $e, Ie,
|
|
375
|
-
|
|
374
|
+
}, $e, Ie, me;
|
|
375
|
+
me = {};
|
|
376
376
|
function lt(t) {
|
|
377
377
|
if (ie.call(t, "ref")) {
|
|
378
378
|
var a = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
@@ -391,8 +391,8 @@ function xt() {
|
|
|
391
391
|
}
|
|
392
392
|
function ot(t, a) {
|
|
393
393
|
if (typeof t.ref == "string" && K.current && a && K.current.stateNode !== a) {
|
|
394
|
-
var c =
|
|
395
|
-
|
|
394
|
+
var c = M(K.current.type);
|
|
395
|
+
me[c] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', M(K.current.type), t.ref), me[c] = !0);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
function ut(t, a) {
|
|
@@ -417,7 +417,7 @@ function xt() {
|
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var
|
|
420
|
+
var dt = function(t, a, c, b, y, _, N) {
|
|
421
421
|
var g = {
|
|
422
422
|
$$typeof: i,
|
|
423
423
|
type: t,
|
|
@@ -443,25 +443,25 @@ function xt() {
|
|
|
443
443
|
value: y
|
|
444
444
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
445
445
|
};
|
|
446
|
-
function
|
|
446
|
+
function mt(t, a, c, b, y) {
|
|
447
447
|
{
|
|
448
|
-
var _, N = {}, g = null,
|
|
449
|
-
c !== void 0 && (
|
|
448
|
+
var _, N = {}, g = null, A = null;
|
|
449
|
+
c !== void 0 && (Ae(c), g = "" + c), ct(a) && (Ae(a.key), g = "" + a.key), lt(a) && (A = a.ref, ot(a, y));
|
|
450
450
|
for (_ in a)
|
|
451
451
|
ie.call(a, _) && !st.hasOwnProperty(_) && (N[_] = a[_]);
|
|
452
452
|
if (t && t.defaultProps) {
|
|
453
|
-
var
|
|
454
|
-
for (_ in
|
|
455
|
-
N[_] === void 0 && (N[_] =
|
|
453
|
+
var x = t.defaultProps;
|
|
454
|
+
for (_ in x)
|
|
455
|
+
N[_] === void 0 && (N[_] = x[_]);
|
|
456
456
|
}
|
|
457
|
-
if (g ||
|
|
457
|
+
if (g || A) {
|
|
458
458
|
var T = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
459
|
-
g && ut(N, T),
|
|
459
|
+
g && ut(N, T), A && ft(N, T);
|
|
460
460
|
}
|
|
461
|
-
return
|
|
461
|
+
return dt(t, g, A, y, b, K.current, N);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
var he =
|
|
464
|
+
var he = F.ReactCurrentOwner, je = F.ReactDebugCurrentFrame;
|
|
465
465
|
function Y(t) {
|
|
466
466
|
if (t) {
|
|
467
467
|
var a = t._owner, c = re(t.type, t._source, a ? a.type : null);
|
|
@@ -477,7 +477,7 @@ function xt() {
|
|
|
477
477
|
function Le() {
|
|
478
478
|
{
|
|
479
479
|
if (he.current) {
|
|
480
|
-
var t =
|
|
480
|
+
var t = M(he.current.type);
|
|
481
481
|
if (t)
|
|
482
482
|
return `
|
|
483
483
|
|
|
@@ -520,14 +520,14 @@ Check the top-level render call using <` + c + ">.");
|
|
|
520
520
|
return;
|
|
521
521
|
Fe[c] = !0;
|
|
522
522
|
var b = "";
|
|
523
|
-
t && t._owner && t._owner !== he.current && (b = " It was passed a child from " +
|
|
523
|
+
t && t._owner && t._owner !== he.current && (b = " It was passed a child from " + M(t._owner.type) + "."), Y(t), S('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), Y(null);
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
function Me(t, a) {
|
|
527
527
|
{
|
|
528
528
|
if (typeof t != "object")
|
|
529
529
|
return;
|
|
530
|
-
if (
|
|
530
|
+
if (de(t))
|
|
531
531
|
for (var c = 0; c < t.length; c++) {
|
|
532
532
|
var b = t[c];
|
|
533
533
|
ve(b) && De(b, a);
|
|
@@ -555,11 +555,11 @@ Check the top-level render call using <` + c + ">.");
|
|
|
555
555
|
else
|
|
556
556
|
return;
|
|
557
557
|
if (c) {
|
|
558
|
-
var b =
|
|
558
|
+
var b = M(a);
|
|
559
559
|
rt(c, t.props, "prop", b, t);
|
|
560
560
|
} else if (a.PropTypes !== void 0 && !be) {
|
|
561
561
|
be = !0;
|
|
562
|
-
var y =
|
|
562
|
+
var y = M(a);
|
|
563
563
|
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
|
|
564
564
|
}
|
|
565
565
|
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -583,19 +583,19 @@ Check the top-level render call using <` + c + ">.");
|
|
|
583
583
|
if (!N) {
|
|
584
584
|
var g = "";
|
|
585
585
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
586
|
-
var
|
|
587
|
-
|
|
588
|
-
var
|
|
589
|
-
t === null ?
|
|
586
|
+
var A = ht(y);
|
|
587
|
+
A ? g += A : g += Le();
|
|
588
|
+
var x;
|
|
589
|
+
t === null ? x = "null" : de(t) ? x = "array" : t !== void 0 && t.$$typeof === i ? (x = "<" + (M(t.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : x = typeof t, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", x, g);
|
|
590
590
|
}
|
|
591
|
-
var T =
|
|
591
|
+
var T = mt(t, a, c, y, _);
|
|
592
592
|
if (T == null)
|
|
593
593
|
return T;
|
|
594
594
|
if (N) {
|
|
595
595
|
var I = a.children;
|
|
596
596
|
if (I !== void 0)
|
|
597
597
|
if (b)
|
|
598
|
-
if (
|
|
598
|
+
if (de(I)) {
|
|
599
599
|
for (var V = 0; V < I.length; V++)
|
|
600
600
|
Me(I[V], t);
|
|
601
601
|
Object.freeze && Object.freeze(I);
|
|
@@ -618,9 +618,9 @@ Check the top-level render call using <` + c + ">.");
|
|
|
618
618
|
}()), Q;
|
|
619
619
|
}
|
|
620
620
|
(function(e) {
|
|
621
|
-
process.env.NODE_ENV === "production" ? e.exports =
|
|
621
|
+
process.env.NODE_ENV === "production" ? e.exports = xt() : e.exports = Rt();
|
|
622
622
|
})(se);
|
|
623
|
-
const j = se.exports.Fragment, r = se.exports.jsx, o = se.exports.jsxs,
|
|
623
|
+
const j = se.exports.Fragment, r = se.exports.jsx, o = se.exports.jsxs, P = ({
|
|
624
624
|
text: e
|
|
625
625
|
}) => e ? /* @__PURE__ */ r("div", {
|
|
626
626
|
className: "title",
|
|
@@ -630,7 +630,7 @@ const j = se.exports.Fragment, r = se.exports.jsx, o = se.exports.jsxs, A = ({
|
|
|
630
630
|
}) => {
|
|
631
631
|
const {
|
|
632
632
|
document: i
|
|
633
|
-
} =
|
|
633
|
+
} = D(L), s = i.attributes || {}, l = e.attributes, f = () => s.icons === "font" && !l.icon ? /* @__PURE__ */ r("i", {
|
|
634
634
|
className: `fa icon-${l.name}`,
|
|
635
635
|
title: l.textlabel
|
|
636
636
|
}) : /* @__PURE__ */ r("img", {
|
|
@@ -653,7 +653,7 @@ const j = se.exports.Fragment, r = se.exports.jsx, o = se.exports.jsxs, A = ({
|
|
|
653
653
|
})
|
|
654
654
|
}), /* @__PURE__ */ o("td", {
|
|
655
655
|
className: "content",
|
|
656
|
-
children: [/* @__PURE__ */ r(
|
|
656
|
+
children: [/* @__PURE__ */ r(P, {
|
|
657
657
|
text: e.title
|
|
658
658
|
}), e.content && C(e.content)]
|
|
659
659
|
})]
|
|
@@ -670,7 +670,7 @@ const j = se.exports.Fragment, r = se.exports.jsx, o = se.exports.jsxs, A = ({
|
|
|
670
670
|
...e.lineNumber ? {
|
|
671
671
|
"data-lineno": e.lineNumber
|
|
672
672
|
} : {},
|
|
673
|
-
children: [/* @__PURE__ */ r(
|
|
673
|
+
children: [/* @__PURE__ */ r(P, {
|
|
674
674
|
text: e.title
|
|
675
675
|
}), /* @__PURE__ */ r("div", {
|
|
676
676
|
className: "content",
|
|
@@ -690,7 +690,7 @@ const j = se.exports.Fragment, r = se.exports.jsx, o = se.exports.jsxs, A = ({
|
|
|
690
690
|
...e.lineNumber ? {
|
|
691
691
|
"data-lineno": e.lineNumber
|
|
692
692
|
} : {},
|
|
693
|
-
children: [/* @__PURE__ */ r(
|
|
693
|
+
children: [/* @__PURE__ */ r(P, {
|
|
694
694
|
text: e.title
|
|
695
695
|
}), /* @__PURE__ */ r("table", {
|
|
696
696
|
children: /* @__PURE__ */ r("tbody", {
|
|
@@ -722,23 +722,23 @@ var Ve = { exports: {} };
|
|
|
722
722
|
var i = {}.hasOwnProperty;
|
|
723
723
|
function s() {
|
|
724
724
|
for (var l = [], f = 0; f < arguments.length; f++) {
|
|
725
|
-
var
|
|
726
|
-
if (!!
|
|
727
|
-
var n = typeof
|
|
725
|
+
var m = arguments[f];
|
|
726
|
+
if (!!m) {
|
|
727
|
+
var n = typeof m;
|
|
728
728
|
if (n === "string" || n === "number")
|
|
729
|
-
l.push(
|
|
730
|
-
else if (Array.isArray(
|
|
731
|
-
if (
|
|
732
|
-
var
|
|
733
|
-
|
|
729
|
+
l.push(m);
|
|
730
|
+
else if (Array.isArray(m)) {
|
|
731
|
+
if (m.length) {
|
|
732
|
+
var d = s.apply(null, m);
|
|
733
|
+
d && l.push(d);
|
|
734
734
|
}
|
|
735
735
|
} else if (n === "object") {
|
|
736
|
-
if (
|
|
737
|
-
l.push(
|
|
736
|
+
if (m.toString !== Object.prototype.toString && !m.toString.toString().includes("[native code]")) {
|
|
737
|
+
l.push(m.toString());
|
|
738
738
|
continue;
|
|
739
739
|
}
|
|
740
|
-
for (var h in
|
|
741
|
-
i.call(
|
|
740
|
+
for (var h in m)
|
|
741
|
+
i.call(m, h) && m[h] && l.push(h);
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
744
|
}
|
|
@@ -747,19 +747,19 @@ var Ve = { exports: {} };
|
|
|
747
747
|
e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
|
|
748
748
|
})();
|
|
749
749
|
})(Ve);
|
|
750
|
-
const
|
|
750
|
+
const R = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s = void 0, l, f) => {
|
|
751
751
|
if (e[i] !== void 0)
|
|
752
752
|
return e[i];
|
|
753
|
-
const
|
|
754
|
-
return
|
|
755
|
-
},
|
|
756
|
-
var
|
|
753
|
+
const m = l || i;
|
|
754
|
+
return m && f && f[m] !== void 0 ? f[m] : s;
|
|
755
|
+
}, H = (e, i) => e[i] !== void 0, Zt = (e) => {
|
|
756
|
+
var m;
|
|
757
757
|
let i;
|
|
758
758
|
function s(n) {
|
|
759
|
-
const
|
|
759
|
+
const d = n.getNodeName && n.getNodeName(), h = n.getContentModel && n.getContentModel(), k = d && n.hasBlocks() ? n.getBlocks().map((u) => s(u)) : [];
|
|
760
760
|
let p = {
|
|
761
761
|
id: n.getId && n.getId(),
|
|
762
|
-
type:
|
|
762
|
+
type: d,
|
|
763
763
|
blocks: k,
|
|
764
764
|
content: k.length > 0 ? void 0 : n.getContent && n.getContent(),
|
|
765
765
|
attributes: n.getAttributes && n.getAttributes(),
|
|
@@ -770,27 +770,27 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
770
770
|
title: n.hasTitle && n.hasTitle() ? n.getTitle() : void 0,
|
|
771
771
|
level: n.getLevel && n.getLevel()
|
|
772
772
|
};
|
|
773
|
-
if (
|
|
773
|
+
if (d === "admonition") {
|
|
774
774
|
let u = p;
|
|
775
775
|
u.iconUri = n.getIconUri(p.attributes.name);
|
|
776
776
|
}
|
|
777
|
-
if (
|
|
777
|
+
if (d === "audio") {
|
|
778
778
|
let u = p;
|
|
779
779
|
u.mediaUri = n.getMediaUri(n.getAttribute("target")), u.autoplay = n.isOption("autoplay"), u.noControls = !n.isOption("nocontrols"), u.loop = n.isOption("loop"), p = u;
|
|
780
780
|
}
|
|
781
|
-
if (
|
|
781
|
+
if (d === "image") {
|
|
782
782
|
let u = p;
|
|
783
783
|
u.imageUri = n.getImageUri(n.getAttribute("target"));
|
|
784
784
|
}
|
|
785
|
-
if ((
|
|
785
|
+
if ((d === "listing" || d === "literal") && "getSource" in n) {
|
|
786
786
|
const u = p;
|
|
787
787
|
u.source = n.getSource(), u.language = n.getAttribute("language");
|
|
788
788
|
}
|
|
789
|
-
if (
|
|
789
|
+
if (d === "section") {
|
|
790
790
|
const u = p;
|
|
791
791
|
u.title = n.getCaption() ? n.getCaptionedTitle() : n.getTitle() || "", "getSectionNumeral" in n && (u.name = n.getSectionName(), u.numbered = n.isNumbered(), u.num = n.getSectionNumeral());
|
|
792
792
|
}
|
|
793
|
-
if (
|
|
793
|
+
if (d === "dlist") {
|
|
794
794
|
let u = p;
|
|
795
795
|
u.items = n.getItems().map((v) => [
|
|
796
796
|
v[0].map(
|
|
@@ -799,16 +799,16 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
799
799
|
s(v[1])
|
|
800
800
|
]);
|
|
801
801
|
}
|
|
802
|
-
if (
|
|
802
|
+
if (d === "colist" || d === "olist" || d === "ulist") {
|
|
803
803
|
let u = p;
|
|
804
804
|
u.items = n.getItems().map((v) => s(v));
|
|
805
805
|
}
|
|
806
|
-
if (
|
|
806
|
+
if (d === "list_item") {
|
|
807
807
|
let u = p;
|
|
808
808
|
const v = n;
|
|
809
809
|
u.text = v.hasText() ? v.getText() : void 0;
|
|
810
810
|
}
|
|
811
|
-
if (
|
|
811
|
+
if (d === "table") {
|
|
812
812
|
let u = p;
|
|
813
813
|
const v = n;
|
|
814
814
|
u.columns = v.getColumns().map((O) => ({
|
|
@@ -820,7 +820,7 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
820
820
|
style: O.getStyle()
|
|
821
821
|
}));
|
|
822
822
|
const w = (O) => O.map(
|
|
823
|
-
(z) => z.map((
|
|
823
|
+
(z) => z.map((F) => s(F))
|
|
824
824
|
), E = v.getRows();
|
|
825
825
|
u.rows = {
|
|
826
826
|
head: w(E.head),
|
|
@@ -837,7 +837,7 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
837
837
|
footRows: w(v.getFootRows())
|
|
838
838
|
}, p = u;
|
|
839
839
|
}
|
|
840
|
-
if (
|
|
840
|
+
if (d === "table_cell") {
|
|
841
841
|
const u = n, v = u.getColumn();
|
|
842
842
|
p = {
|
|
843
843
|
text: u.getText(),
|
|
@@ -861,24 +861,24 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
861
861
|
return p;
|
|
862
862
|
}
|
|
863
863
|
function l(n) {
|
|
864
|
-
return n.getSections().map((
|
|
865
|
-
id:
|
|
866
|
-
title: (
|
|
867
|
-
level:
|
|
868
|
-
num:
|
|
869
|
-
sections: l(
|
|
864
|
+
return n.getSections().map((d) => ({
|
|
865
|
+
id: d.getId(),
|
|
866
|
+
title: (d.getCaption() ? d.getCaptionedTitle() : d.getTitle()) || "",
|
|
867
|
+
level: d.getLevel(),
|
|
868
|
+
num: d.getSectionNumber(),
|
|
869
|
+
sections: l(d)
|
|
870
870
|
}));
|
|
871
871
|
}
|
|
872
872
|
const f = e.getAuthors().map((n) => {
|
|
873
|
-
const
|
|
873
|
+
const d = n.getName(), h = n.getEmail();
|
|
874
874
|
return {
|
|
875
|
-
name:
|
|
875
|
+
name: d ? e.applySubstitutions(d).toString() : void 0,
|
|
876
876
|
email: h ? e.applySubstitutions(h).toString() : void 0
|
|
877
877
|
};
|
|
878
878
|
});
|
|
879
879
|
return i = {
|
|
880
880
|
type: "document",
|
|
881
|
-
title: ((
|
|
881
|
+
title: ((m = e.getDocumentTitle()) == null ? void 0 : m.toString()) || "",
|
|
882
882
|
hasHeader: e.hasHeader(),
|
|
883
883
|
noHeader: e.getNoheader(),
|
|
884
884
|
contentModel: e.getContentModel(),
|
|
@@ -898,10 +898,10 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
898
898
|
node: e
|
|
899
899
|
}) => {
|
|
900
900
|
const i = (l) => {
|
|
901
|
-
const f = l,
|
|
901
|
+
const f = l, m = f[0];
|
|
902
902
|
let n = f[1];
|
|
903
903
|
return n.type || (n = null), {
|
|
904
|
-
terms:
|
|
904
|
+
terms: m,
|
|
905
905
|
dd: n
|
|
906
906
|
};
|
|
907
907
|
}, s = (l) => {
|
|
@@ -916,23 +916,23 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
916
916
|
};
|
|
917
917
|
if (e.style === "qanda")
|
|
918
918
|
return /* @__PURE__ */ o("div", {
|
|
919
|
-
className:
|
|
919
|
+
className: R("qlist qanda", e.role),
|
|
920
920
|
...e.lineNumber ? {
|
|
921
921
|
"data-lineno": e.lineNumber
|
|
922
922
|
} : {},
|
|
923
|
-
children: [/* @__PURE__ */ r(
|
|
923
|
+
children: [/* @__PURE__ */ r(P, {
|
|
924
924
|
text: e.title
|
|
925
925
|
}), /* @__PURE__ */ r("ol", {
|
|
926
926
|
children: e.items.map((l, f) => {
|
|
927
927
|
const {
|
|
928
|
-
terms:
|
|
928
|
+
terms: m,
|
|
929
929
|
dd: n
|
|
930
930
|
} = i(l);
|
|
931
|
-
if (!!
|
|
931
|
+
if (!!m)
|
|
932
932
|
return /* @__PURE__ */ o("li", {
|
|
933
|
-
children: [
|
|
933
|
+
children: [m.map((d, h) => /* @__PURE__ */ r("p", {
|
|
934
934
|
children: /* @__PURE__ */ r("em", {
|
|
935
|
-
children: C(
|
|
935
|
+
children: C(d.text)
|
|
936
936
|
})
|
|
937
937
|
}, h)), s(n)]
|
|
938
938
|
}, f);
|
|
@@ -942,8 +942,8 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
942
942
|
if (e.style === "horizontal") {
|
|
943
943
|
const l = e.attributes.labelwidth, f = e.attributes.itemwidth;
|
|
944
944
|
return /* @__PURE__ */ o("div", {
|
|
945
|
-
className:
|
|
946
|
-
children: [/* @__PURE__ */ r(
|
|
945
|
+
className: R("hdlist", e.role),
|
|
946
|
+
children: [/* @__PURE__ */ r(P, {
|
|
947
947
|
text: e.title
|
|
948
948
|
}), /* @__PURE__ */ o("table", {
|
|
949
949
|
children: [(l || f) && /* @__PURE__ */ o("colgroup", {
|
|
@@ -957,16 +957,16 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
957
957
|
}
|
|
958
958
|
})]
|
|
959
959
|
}), /* @__PURE__ */ r("tbody", {
|
|
960
|
-
children: e.items.map((
|
|
960
|
+
children: e.items.map((m, n) => {
|
|
961
961
|
const {
|
|
962
|
-
terms:
|
|
962
|
+
terms: d,
|
|
963
963
|
dd: h
|
|
964
|
-
} = i(
|
|
965
|
-
if (!!
|
|
964
|
+
} = i(m);
|
|
965
|
+
if (!!d)
|
|
966
966
|
return /* @__PURE__ */ o("tr", {
|
|
967
967
|
children: [/* @__PURE__ */ r("td", {
|
|
968
|
-
className:
|
|
969
|
-
children:
|
|
968
|
+
className: R("hdlist1", le(e.attributes, "strong") ? "strong" : ""),
|
|
969
|
+
children: d.map((k, p) => /* @__PURE__ */ o(pe, {
|
|
970
970
|
children: [p !== 0 && /* @__PURE__ */ r("br", {}), C(k.text)]
|
|
971
971
|
}, p))
|
|
972
972
|
}), h && /* @__PURE__ */ o("td", {
|
|
@@ -984,20 +984,20 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
984
984
|
});
|
|
985
985
|
} else
|
|
986
986
|
return /* @__PURE__ */ o("div", {
|
|
987
|
-
className:
|
|
988
|
-
children: [/* @__PURE__ */ r(
|
|
987
|
+
className: R("dlist", e.style, e.role),
|
|
988
|
+
children: [/* @__PURE__ */ r(P, {
|
|
989
989
|
text: e.title
|
|
990
990
|
}), /* @__PURE__ */ r("dl", {
|
|
991
991
|
children: e.items.map((l, f) => {
|
|
992
992
|
const {
|
|
993
|
-
terms:
|
|
993
|
+
terms: m,
|
|
994
994
|
dd: n
|
|
995
995
|
} = i(l);
|
|
996
|
-
if (!!
|
|
996
|
+
if (!!m)
|
|
997
997
|
return /* @__PURE__ */ o(pe, {
|
|
998
|
-
children: [
|
|
998
|
+
children: [m.map((d, h) => /* @__PURE__ */ r("dt", {
|
|
999
999
|
className: "hdlist1",
|
|
1000
|
-
children: C(
|
|
1000
|
+
children: C(d.text)
|
|
1001
1001
|
}, h)), s(n)]
|
|
1002
1002
|
}, f);
|
|
1003
1003
|
})
|
|
@@ -1009,10 +1009,10 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1009
1009
|
}) => {
|
|
1010
1010
|
const {
|
|
1011
1011
|
document: s
|
|
1012
|
-
} =
|
|
1012
|
+
} = D(L);
|
|
1013
1013
|
if (!e || e.length === 0)
|
|
1014
1014
|
return null;
|
|
1015
|
-
const l = s.attributes || {}, f = l.sectnumlevels,
|
|
1015
|
+
const l = s.attributes || {}, f = l.sectnumlevels, m = l.toclevels, n = (i == null ? void 0 : i.sectNumLevels) || (f ? parseInt(f) : 3), d = (i == null ? void 0 : i.tocLevels) || (m ? parseInt(m) : 2);
|
|
1016
1016
|
return /* @__PURE__ */ r("ul", {
|
|
1017
1017
|
className: `sectlevel${e[0].level}`,
|
|
1018
1018
|
children: e.map((h) => {
|
|
@@ -1024,10 +1024,10 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1024
1024
|
children: [/* @__PURE__ */ r("a", {
|
|
1025
1025
|
href: `#${h.id}`,
|
|
1026
1026
|
children: C(u)
|
|
1027
|
-
}), p <
|
|
1027
|
+
}), p < d && /* @__PURE__ */ r(ce, {
|
|
1028
1028
|
sections: h.sections,
|
|
1029
1029
|
opts: {
|
|
1030
|
-
tocLevels:
|
|
1030
|
+
tocLevels: d,
|
|
1031
1031
|
sectNumLevels: n
|
|
1032
1032
|
}
|
|
1033
1033
|
})]
|
|
@@ -1055,7 +1055,7 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1055
1055
|
})]
|
|
1056
1056
|
})]
|
|
1057
1057
|
})
|
|
1058
|
-
}), s = () => e.footnotes && e.footnotes.length > 0 && e.blocks && !
|
|
1058
|
+
}), s = () => e.footnotes && e.footnotes.length > 0 && e.blocks && !H(e.attributes, "nofootnotes") ? /* @__PURE__ */ o("div", {
|
|
1059
1059
|
id: "footnotes",
|
|
1060
1060
|
children: [/* @__PURE__ */ r("hr", {}), e.footnotes.map((f) => /* @__PURE__ */ o("div", {
|
|
1061
1061
|
className: "footnote",
|
|
@@ -1065,29 +1065,29 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1065
1065
|
children: f.index
|
|
1066
1066
|
}), ".", " ", C(f.text || "")]
|
|
1067
1067
|
}, f.index))]
|
|
1068
|
-
}) : null, l = () => e.authors.length > 0 ||
|
|
1068
|
+
}) : null, l = () => e.authors.length > 0 || H(e.attributes, "revnumber") || H(e.attributes, "revdate") || H(e.attributes, "revremark") ? /* @__PURE__ */ o("div", {
|
|
1069
1069
|
className: "details",
|
|
1070
|
-
children: [e.authors.map((f,
|
|
1070
|
+
children: [e.authors.map((f, m) => /* @__PURE__ */ o(pe, {
|
|
1071
1071
|
children: [f.name && /* @__PURE__ */ o(j, {
|
|
1072
1072
|
children: [/* @__PURE__ */ r("span", {
|
|
1073
|
-
id: `author${
|
|
1073
|
+
id: `author${m + 1 > 1 ? m + 1 : ""}`,
|
|
1074
1074
|
className: "author",
|
|
1075
1075
|
children: C(f.name)
|
|
1076
1076
|
}), /* @__PURE__ */ r("br", {})]
|
|
1077
1077
|
}), f.email && /* @__PURE__ */ o(j, {
|
|
1078
1078
|
children: [/* @__PURE__ */ r("span", {
|
|
1079
|
-
id: `email${
|
|
1079
|
+
id: `email${m + 1 > 1 ? m + 1 : ""}`,
|
|
1080
1080
|
className: "email",
|
|
1081
1081
|
children: C(f.email)
|
|
1082
1082
|
}), /* @__PURE__ */ r("br", {})]
|
|
1083
1083
|
})]
|
|
1084
|
-
},
|
|
1084
|
+
}, m)), H(e.attributes, "revnumber") && /* @__PURE__ */ r("span", {
|
|
1085
1085
|
id: "revnumber",
|
|
1086
1086
|
children: `${e.attributes["version-label"].toLowerCase()} ${e.attributes.revnumber}${e.attributes.revdate ? "," : ""}`
|
|
1087
|
-
}),
|
|
1087
|
+
}), H(e.attributes, "revdate") && /* @__PURE__ */ r("span", {
|
|
1088
1088
|
id: "revdate",
|
|
1089
1089
|
children: e.attributes.revdate
|
|
1090
|
-
}),
|
|
1090
|
+
}), H(e.attributes, "revremark") && /* @__PURE__ */ o(j, {
|
|
1091
1091
|
children: [/* @__PURE__ */ r("br", {}), /* @__PURE__ */ r("span", {
|
|
1092
1092
|
id: "revremark",
|
|
1093
1093
|
children: e.attributes.revremark
|
|
@@ -1129,14 +1129,14 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1129
1129
|
});
|
|
1130
1130
|
}
|
|
1131
1131
|
return /* @__PURE__ */ o("div", {
|
|
1132
|
-
className:
|
|
1132
|
+
className: R("exampleblock", e.role),
|
|
1133
1133
|
...e.lineNumber ? {
|
|
1134
1134
|
"data-lineno": e.lineNumber
|
|
1135
1135
|
} : {},
|
|
1136
1136
|
...e.id ? {
|
|
1137
1137
|
id: e.id
|
|
1138
1138
|
} : {},
|
|
1139
|
-
children: [/* @__PURE__ */ r(
|
|
1139
|
+
children: [/* @__PURE__ */ r(P, {
|
|
1140
1140
|
text: e.title
|
|
1141
1141
|
}), /* @__PURE__ */ r("div", {
|
|
1142
1142
|
className: "content",
|
|
@@ -1145,7 +1145,7 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1145
1145
|
})
|
|
1146
1146
|
})]
|
|
1147
1147
|
});
|
|
1148
|
-
},
|
|
1148
|
+
}, Pt = ({
|
|
1149
1149
|
node: e
|
|
1150
1150
|
}) => /* @__PURE__ */ o(j, {
|
|
1151
1151
|
children: [/* @__PURE__ */ r("a", {
|
|
@@ -1157,9 +1157,9 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1157
1157
|
"data-lineno": e.lineNumber
|
|
1158
1158
|
} : {}
|
|
1159
1159
|
}), q(`h${e.level + 1}`, {
|
|
1160
|
-
className:
|
|
1160
|
+
className: R(e.role, e.style)
|
|
1161
1161
|
}, C(e.title || ""))]
|
|
1162
|
-
}),
|
|
1162
|
+
}), At = ({
|
|
1163
1163
|
node: e
|
|
1164
1164
|
}) => {
|
|
1165
1165
|
let i = /* @__PURE__ */ r("img", {
|
|
@@ -1184,7 +1184,7 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1184
1184
|
children: [/* @__PURE__ */ r("div", {
|
|
1185
1185
|
className: "content",
|
|
1186
1186
|
children: i
|
|
1187
|
-
}), /* @__PURE__ */ r(
|
|
1187
|
+
}), /* @__PURE__ */ r(P, {
|
|
1188
1188
|
text: e.title
|
|
1189
1189
|
})]
|
|
1190
1190
|
});
|
|
@@ -1193,7 +1193,7 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1193
1193
|
}) => {
|
|
1194
1194
|
const {
|
|
1195
1195
|
document: i
|
|
1196
|
-
} =
|
|
1196
|
+
} = D(L), s = e.attributes.nowrap || i.attributes.prewrap;
|
|
1197
1197
|
if (e.style === "source") {
|
|
1198
1198
|
const l = e.language;
|
|
1199
1199
|
return /* @__PURE__ */ o("div", {
|
|
@@ -1201,12 +1201,12 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1201
1201
|
...e.lineNumber ? {
|
|
1202
1202
|
"data-lineno": e.lineNumber
|
|
1203
1203
|
} : {},
|
|
1204
|
-
children: [/* @__PURE__ */ r(
|
|
1204
|
+
children: [/* @__PURE__ */ r(P, {
|
|
1205
1205
|
text: e.title
|
|
1206
1206
|
}), /* @__PURE__ */ r("div", {
|
|
1207
1207
|
className: "content",
|
|
1208
1208
|
children: /* @__PURE__ */ r("pre", {
|
|
1209
|
-
className:
|
|
1209
|
+
className: R("highlight", s ? " nowrap" : ""),
|
|
1210
1210
|
children: l ? /* @__PURE__ */ r("code", {
|
|
1211
1211
|
className: l ? `language-${l}` : "",
|
|
1212
1212
|
"data-lang": l,
|
|
@@ -1227,7 +1227,7 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1227
1227
|
...e.lineNumber ? {
|
|
1228
1228
|
"data-lineno": e.lineNumber
|
|
1229
1229
|
} : {},
|
|
1230
|
-
children: [/* @__PURE__ */ r(
|
|
1230
|
+
children: [/* @__PURE__ */ r(P, {
|
|
1231
1231
|
text: e.title
|
|
1232
1232
|
}), /* @__PURE__ */ r("div", {
|
|
1233
1233
|
className: "content",
|
|
@@ -1246,13 +1246,13 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1246
1246
|
}) => {
|
|
1247
1247
|
const {
|
|
1248
1248
|
document: i
|
|
1249
|
-
} =
|
|
1249
|
+
} = D(L), s = i.attributes || {}, l = e.attributes.nowrap || s.prewrap === void 0;
|
|
1250
1250
|
return /* @__PURE__ */ o("div", {
|
|
1251
1251
|
className: "literalblock",
|
|
1252
1252
|
...e.lineNumber ? {
|
|
1253
1253
|
"data-lineno": e.lineNumber
|
|
1254
1254
|
} : {},
|
|
1255
|
-
children: [/* @__PURE__ */ r(
|
|
1255
|
+
children: [/* @__PURE__ */ r(P, {
|
|
1256
1256
|
text: e.title
|
|
1257
1257
|
}), /* @__PURE__ */ r("div", {
|
|
1258
1258
|
className: "content",
|
|
@@ -1265,11 +1265,11 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1265
1265
|
}, jt = ({
|
|
1266
1266
|
node: e
|
|
1267
1267
|
}) => /* @__PURE__ */ o("div", {
|
|
1268
|
-
className:
|
|
1268
|
+
className: R("olist", e.role, e.style),
|
|
1269
1269
|
...e.lineNumber ? {
|
|
1270
1270
|
"data-lineno": e.lineNumber
|
|
1271
1271
|
} : {},
|
|
1272
|
-
children: [/* @__PURE__ */ r(
|
|
1272
|
+
children: [/* @__PURE__ */ r(P, {
|
|
1273
1273
|
text: e.title
|
|
1274
1274
|
}), /* @__PURE__ */ r("ol", {
|
|
1275
1275
|
className: e.style,
|
|
@@ -1291,11 +1291,11 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1291
1291
|
}) => {
|
|
1292
1292
|
const i = e.style;
|
|
1293
1293
|
return i === "abstract" ? /* @__PURE__ */ o("div", {
|
|
1294
|
-
className:
|
|
1294
|
+
className: R("quoteblock abstract", e.role),
|
|
1295
1295
|
...e.lineNumber ? {
|
|
1296
1296
|
"data-lineno": e.lineNumber
|
|
1297
1297
|
} : {},
|
|
1298
|
-
children: [/* @__PURE__ */ r(
|
|
1298
|
+
children: [/* @__PURE__ */ r(P, {
|
|
1299
1299
|
text: e.title
|
|
1300
1300
|
}), /* @__PURE__ */ r("blockquote", {
|
|
1301
1301
|
className: "content",
|
|
@@ -1304,11 +1304,11 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1304
1304
|
})
|
|
1305
1305
|
})]
|
|
1306
1306
|
}) : /* @__PURE__ */ o("div", {
|
|
1307
|
-
className:
|
|
1307
|
+
className: R("openblock", i && i !== "open" ? i : "", e.role),
|
|
1308
1308
|
...e.lineNumber ? {
|
|
1309
1309
|
"data-lineno": e.lineNumber
|
|
1310
1310
|
} : {},
|
|
1311
|
-
children: [/* @__PURE__ */ r(
|
|
1311
|
+
children: [/* @__PURE__ */ r(P, {
|
|
1312
1312
|
text: e.title
|
|
1313
1313
|
}), /* @__PURE__ */ r("div", {
|
|
1314
1314
|
className: "content",
|
|
@@ -1327,11 +1327,11 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1327
1327
|
...e.id ? {
|
|
1328
1328
|
id: e.id
|
|
1329
1329
|
} : {},
|
|
1330
|
-
className:
|
|
1330
|
+
className: R("paragraph", e.role),
|
|
1331
1331
|
...e.lineNumber ? {
|
|
1332
1332
|
"data-lineno": e.lineNumber
|
|
1333
1333
|
} : {},
|
|
1334
|
-
children: [/* @__PURE__ */ r(
|
|
1334
|
+
children: [/* @__PURE__ */ r(P, {
|
|
1335
1335
|
text: e.title
|
|
1336
1336
|
}), e.content && /* @__PURE__ */ r("p", {
|
|
1337
1337
|
dangerouslySetInnerHTML: {
|
|
@@ -1347,7 +1347,7 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1347
1347
|
}) => {
|
|
1348
1348
|
const {
|
|
1349
1349
|
document: i
|
|
1350
|
-
} =
|
|
1350
|
+
} = D(L), s = i.attributes || {}, l = s["toc-placement"] === "preamble" && i.sections && i.sections.length > 0 && s.toc !== void 0;
|
|
1351
1351
|
return /* @__PURE__ */ r("div", {
|
|
1352
1352
|
id: "preamble",
|
|
1353
1353
|
...e.lineNumber ? {
|
|
@@ -1377,11 +1377,11 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1377
1377
|
...e.id ? {
|
|
1378
1378
|
id: e.id
|
|
1379
1379
|
} : {},
|
|
1380
|
-
className:
|
|
1380
|
+
className: R("quoteblock", e.role),
|
|
1381
1381
|
...e.lineNumber ? {
|
|
1382
1382
|
"data-lineno": e.lineNumber
|
|
1383
1383
|
} : {},
|
|
1384
|
-
children: [/* @__PURE__ */ r(
|
|
1384
|
+
children: [/* @__PURE__ */ r(P, {
|
|
1385
1385
|
text: e.title
|
|
1386
1386
|
}), e.content && /* @__PURE__ */ r("blockquote", {
|
|
1387
1387
|
dangerouslySetInnerHTML: {
|
|
@@ -1401,11 +1401,11 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1401
1401
|
}) => {
|
|
1402
1402
|
const {
|
|
1403
1403
|
document: i
|
|
1404
|
-
} =
|
|
1404
|
+
} = D(L), s = i.attributes || {};
|
|
1405
1405
|
let l = e.title, f = e.num;
|
|
1406
1406
|
f = f === "." ? "" : f;
|
|
1407
|
-
const
|
|
1408
|
-
return e.numbered && e.level <=
|
|
1407
|
+
const m = s.sectnumlevels ? parseInt(s.sectnumlevels) : 3;
|
|
1408
|
+
return e.numbered && e.level <= m && (l = `${f} ${e.title}`), s.sectlinks && (l = /* @__PURE__ */ o(j, {
|
|
1409
1409
|
children: [/* @__PURE__ */ r("a", {
|
|
1410
1410
|
className: "anchor",
|
|
1411
1411
|
id: e.id || "",
|
|
@@ -1421,7 +1421,7 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1421
1421
|
})]
|
|
1422
1422
|
})), e.level === 0 ? /* @__PURE__ */ o(j, {
|
|
1423
1423
|
children: [/* @__PURE__ */ r("h1", {
|
|
1424
|
-
className:
|
|
1424
|
+
className: R("sect0", e.role),
|
|
1425
1425
|
"data-sectnum": f,
|
|
1426
1426
|
...e.lineNumber ? {
|
|
1427
1427
|
"data-lineno": e.lineNumber
|
|
@@ -1431,7 +1431,7 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1431
1431
|
blocks: e.blocks
|
|
1432
1432
|
})]
|
|
1433
1433
|
}) : /* @__PURE__ */ o("div", {
|
|
1434
|
-
className:
|
|
1434
|
+
className: R(`sect${e.level}`, e.role),
|
|
1435
1435
|
...e.lineNumber ? {
|
|
1436
1436
|
"data-lineno": e.lineNumber
|
|
1437
1437
|
} : {},
|
|
@@ -1447,13 +1447,13 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1447
1447
|
}, Ut = ({
|
|
1448
1448
|
node: e
|
|
1449
1449
|
}) => /* @__PURE__ */ r("div", {
|
|
1450
|
-
className:
|
|
1450
|
+
className: R("sidebarblock", e.role),
|
|
1451
1451
|
...e.lineNumber ? {
|
|
1452
1452
|
"data-lineno": e.lineNumber
|
|
1453
1453
|
} : {},
|
|
1454
1454
|
children: /* @__PURE__ */ o("div", {
|
|
1455
1455
|
className: "content",
|
|
1456
|
-
children: [/* @__PURE__ */ r(
|
|
1456
|
+
children: [/* @__PURE__ */ r(P, {
|
|
1457
1457
|
text: e.title
|
|
1458
1458
|
}), /* @__PURE__ */ r($, {
|
|
1459
1459
|
blocks: e.blocks
|
|
@@ -1464,16 +1464,16 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1464
1464
|
}) => {
|
|
1465
1465
|
const {
|
|
1466
1466
|
document: i
|
|
1467
|
-
} =
|
|
1467
|
+
} = D(L), s = i.attributes || {};
|
|
1468
1468
|
let l = ["frame-" + ne(e.attributes, "frame", "all", "table-frame", s), "grid-" + ne(e.attributes, "grid", "all", "table-grid", s)], f = ne(e.attributes, "stripes", null, "table-stripes", s);
|
|
1469
1469
|
f && l.push("stripes-" + f);
|
|
1470
|
-
let
|
|
1471
|
-
|
|
1472
|
-
const h = (v) =>
|
|
1470
|
+
let m = le(e.attributes, "autowidth"), n = parseInt(e.attributes.tablepcwidth), d = null;
|
|
1471
|
+
m && !H(e.attributes, "width") ? l.push("fit-content") : n === 100 ? l.push("stretch") : d = `${n}%`, H(e.attributes, "float") && l.push(e.attributes.float), e.role && l.push(e.role || "");
|
|
1472
|
+
const h = (v) => R("tableblock", `halign-${v.attributes.halign}`, `valign-${v.attributes.valign}`), k = e.title, p = e.id, u = p || Vt(k || "");
|
|
1473
1473
|
return /* @__PURE__ */ o("table", {
|
|
1474
|
-
className:
|
|
1474
|
+
className: R("tableblock", ...l),
|
|
1475
1475
|
style: {
|
|
1476
|
-
width:
|
|
1476
|
+
width: d || void 0
|
|
1477
1477
|
},
|
|
1478
1478
|
...e.lineNumber ? {
|
|
1479
1479
|
"data-lineno": e.lineNumber
|
|
@@ -1508,9 +1508,9 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1508
1508
|
}, w)), /* @__PURE__ */ r("tbody", {
|
|
1509
1509
|
children: e.bodyRows.map((v, w) => /* @__PURE__ */ r("tr", {
|
|
1510
1510
|
children: v.map((E, O) => {
|
|
1511
|
-
const z = E.columnSpan,
|
|
1511
|
+
const z = E.columnSpan, F = E.rowSpan, S = E.content, U = {
|
|
1512
1512
|
colSpan: z,
|
|
1513
|
-
rowSpan:
|
|
1513
|
+
rowSpan: F,
|
|
1514
1514
|
className: h(E)
|
|
1515
1515
|
}, J = E.style;
|
|
1516
1516
|
if (J === "asciidoc")
|
|
@@ -1574,16 +1574,16 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1574
1574
|
}) => {
|
|
1575
1575
|
const {
|
|
1576
1576
|
document: i
|
|
1577
|
-
} =
|
|
1577
|
+
} = D(L), s = i.attributes || {}, l = i.sections && i.sections.length > 0;
|
|
1578
1578
|
let f = e.id || "toc";
|
|
1579
|
-
const
|
|
1580
|
-
return n === "macro" && l &&
|
|
1579
|
+
const m = e.title ? e.title : s["toc-title"], n = s["toc-placement"], d = s.toc !== void 0, h = e.attributes.levels ? parseInt(e.attributes.levels) : void 0;
|
|
1580
|
+
return n === "macro" && l && d ? /* @__PURE__ */ o("div", {
|
|
1581
1581
|
id: f,
|
|
1582
|
-
className:
|
|
1582
|
+
className: R("toc", e.role),
|
|
1583
1583
|
children: [/* @__PURE__ */ r("div", {
|
|
1584
1584
|
id: `${f}title`,
|
|
1585
1585
|
className: "title",
|
|
1586
|
-
children: C(
|
|
1586
|
+
children: C(m || "")
|
|
1587
1587
|
}), i.sections && /* @__PURE__ */ r(ce, {
|
|
1588
1588
|
sections: i.sections,
|
|
1589
1589
|
opts: {
|
|
@@ -1599,11 +1599,11 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1599
1599
|
...e.id ? {
|
|
1600
1600
|
id: e.id
|
|
1601
1601
|
} : {},
|
|
1602
|
-
className:
|
|
1602
|
+
className: R("ulist", e.style, e.role, i && "checklist"),
|
|
1603
1603
|
...e.lineNumber ? {
|
|
1604
1604
|
"data-lineno": e.lineNumber
|
|
1605
1605
|
} : {},
|
|
1606
|
-
children: [/* @__PURE__ */ r(
|
|
1606
|
+
children: [/* @__PURE__ */ r(P, {
|
|
1607
1607
|
text: e.title
|
|
1608
1608
|
}), /* @__PURE__ */ r("ul", {
|
|
1609
1609
|
className: i ? "checklist" : "",
|
|
@@ -1612,7 +1612,7 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1612
1612
|
className: e.role,
|
|
1613
1613
|
children: /* @__PURE__ */ o("p", {
|
|
1614
1614
|
children: [i && s.attributes.checkbox && /* @__PURE__ */ r("i", {
|
|
1615
|
-
className:
|
|
1615
|
+
className: R("fa", s.attributes.checked ? "fa-check-square-o" : "fa-square-o")
|
|
1616
1616
|
}), " ", C(s.text || "")]
|
|
1617
1617
|
})
|
|
1618
1618
|
}, l) : /* @__PURE__ */ o("li", {
|
|
@@ -1636,11 +1636,11 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1636
1636
|
...e.id ? {
|
|
1637
1637
|
id: e.id
|
|
1638
1638
|
} : {},
|
|
1639
|
-
className:
|
|
1639
|
+
className: R("verseblock", e.role),
|
|
1640
1640
|
...e.lineNumber ? {
|
|
1641
1641
|
"data-lineno": e.lineNumber
|
|
1642
1642
|
} : {},
|
|
1643
|
-
children: [/* @__PURE__ */ r(
|
|
1643
|
+
children: [/* @__PURE__ */ r(P, {
|
|
1644
1644
|
text: e.title
|
|
1645
1645
|
}), e.content && /* @__PURE__ */ r("pre", {
|
|
1646
1646
|
className: "content",
|
|
@@ -1654,14 +1654,14 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1654
1654
|
})]
|
|
1655
1655
|
})]
|
|
1656
1656
|
});
|
|
1657
|
-
},
|
|
1657
|
+
}, L = wt({
|
|
1658
1658
|
document: {}
|
|
1659
1659
|
}), er = ({
|
|
1660
1660
|
document: e,
|
|
1661
1661
|
options: i
|
|
1662
1662
|
}) => {
|
|
1663
1663
|
const s = i && i.customDocument;
|
|
1664
|
-
return /* @__PURE__ */ r(
|
|
1664
|
+
return /* @__PURE__ */ r(L.Provider, {
|
|
1665
1665
|
value: {
|
|
1666
1666
|
...i,
|
|
1667
1667
|
document: {
|
|
@@ -1686,7 +1686,7 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1686
1686
|
}) => {
|
|
1687
1687
|
const {
|
|
1688
1688
|
overrides: i
|
|
1689
|
-
} =
|
|
1689
|
+
} = D(L), s = e.type, l = i && i[s];
|
|
1690
1690
|
if (l)
|
|
1691
1691
|
return /* @__PURE__ */ r(l, {
|
|
1692
1692
|
node: e
|
|
@@ -1717,7 +1717,7 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1717
1717
|
node: e
|
|
1718
1718
|
});
|
|
1719
1719
|
case "floating_title":
|
|
1720
|
-
return /* @__PURE__ */ r(
|
|
1720
|
+
return /* @__PURE__ */ r(Pt, {
|
|
1721
1721
|
node: e
|
|
1722
1722
|
});
|
|
1723
1723
|
case "admonition":
|
|
@@ -1733,7 +1733,7 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1733
1733
|
node: e
|
|
1734
1734
|
});
|
|
1735
1735
|
case "image":
|
|
1736
|
-
return /* @__PURE__ */ r(
|
|
1736
|
+
return /* @__PURE__ */ r(At, {
|
|
1737
1737
|
node: e
|
|
1738
1738
|
});
|
|
1739
1739
|
case "colist":
|
|
@@ -1783,6 +1783,11 @@ const x = Ve.exports, le = (e, i) => e[`${i}-option`] !== void 0, ne = (e, i, s
|
|
|
1783
1783
|
default:
|
|
1784
1784
|
return /* @__PURE__ */ r(j, {});
|
|
1785
1785
|
}
|
|
1786
|
+
}, tr = () => {
|
|
1787
|
+
const e = D(L);
|
|
1788
|
+
if (e === void 0)
|
|
1789
|
+
throw new Error("useConverterContext must be used within a Provider");
|
|
1790
|
+
return e;
|
|
1786
1791
|
};
|
|
1787
1792
|
export {
|
|
1788
1793
|
Et as Admonition,
|
|
@@ -1790,12 +1795,12 @@ export {
|
|
|
1790
1795
|
St as Audio,
|
|
1791
1796
|
Tt as CoList,
|
|
1792
1797
|
$ as Content,
|
|
1793
|
-
|
|
1798
|
+
L as Context,
|
|
1794
1799
|
Ct as DList,
|
|
1795
1800
|
kt as Document,
|
|
1796
1801
|
Ot as Example,
|
|
1797
|
-
|
|
1798
|
-
|
|
1802
|
+
Pt as FloatingTitle,
|
|
1803
|
+
At as Image,
|
|
1799
1804
|
$t as Listing,
|
|
1800
1805
|
It as Literal,
|
|
1801
1806
|
jt as OList,
|
|
@@ -1811,9 +1816,10 @@ export {
|
|
|
1811
1816
|
Yt as Table,
|
|
1812
1817
|
qt as TableOfContents,
|
|
1813
1818
|
zt as ThematicBreak,
|
|
1814
|
-
|
|
1819
|
+
P as Title,
|
|
1815
1820
|
Jt as UList,
|
|
1816
1821
|
Gt as Verse,
|
|
1817
|
-
|
|
1818
|
-
Zt as prepareDocument
|
|
1822
|
+
ar as parse,
|
|
1823
|
+
Zt as prepareDocument,
|
|
1824
|
+
tr as useConverterContext
|
|
1819
1825
|
};
|