@oxide/react-asciidoc 1.1.3--canary.fe1fdee.0 → 1.1.3--canary.eebdcb4.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 +338 -338
- package/dist/react-asciidoc.umd.cjs +13 -13
- package/package.json +2 -2
package/dist/react-asciidoc.js
CHANGED
|
@@ -19,13 +19,13 @@ var Xr;
|
|
|
19
19
|
function He() {
|
|
20
20
|
if (Xr) return X;
|
|
21
21
|
Xr = 1;
|
|
22
|
-
var r = ee, a = Symbol.for("react.element"), s = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, n = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
23
|
-
function m(i, c,
|
|
24
|
-
var y,
|
|
25
|
-
|
|
26
|
-
for (y in c) o.call(c, y) && !
|
|
27
|
-
if (i && i.defaultProps) for (y in c = i.defaultProps, c)
|
|
28
|
-
return { $$typeof: a, type: i, key:
|
|
22
|
+
var r = ee, a = Symbol.for("react.element"), s = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, n = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
|
+
function m(i, c, q) {
|
|
24
|
+
var y, E = {}, h = null, d = null;
|
|
25
|
+
q !== void 0 && (h = "" + q), c.key !== void 0 && (h = "" + c.key), c.ref !== void 0 && (d = c.ref);
|
|
26
|
+
for (y in c) o.call(c, y) && !u.hasOwnProperty(y) && (E[y] = c[y]);
|
|
27
|
+
if (i && i.defaultProps) for (y in c = i.defaultProps, c) E[y] === void 0 && (E[y] = c[y]);
|
|
28
|
+
return { $$typeof: a, type: i, key: h, ref: d, props: E, _owner: n.current };
|
|
29
29
|
}
|
|
30
30
|
return X.Fragment = s, X.jsx = m, X.jsxs = m, X;
|
|
31
31
|
}
|
|
@@ -42,54 +42,54 @@ var Q = {};
|
|
|
42
42
|
var Qr;
|
|
43
43
|
function $e() {
|
|
44
44
|
return Qr || (Qr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var r = ee, a = Symbol.for("react.element"), s = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"),
|
|
46
|
-
function
|
|
45
|
+
var r = ee, a = Symbol.for("react.element"), s = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), q = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), d = Symbol.for("react.offscreen"), f = Symbol.iterator, S = "@@iterator";
|
|
46
|
+
function V(t) {
|
|
47
47
|
if (t === null || typeof t != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var l =
|
|
49
|
+
var l = f && t[f] || t[S];
|
|
50
50
|
return typeof l == "function" ? l : null;
|
|
51
51
|
}
|
|
52
|
-
var
|
|
53
|
-
function
|
|
52
|
+
var T = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
|
+
function j(t) {
|
|
54
54
|
{
|
|
55
|
-
for (var l = arguments.length,
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
for (var l = arguments.length, p = new Array(l > 1 ? l - 1 : 0), g = 1; g < l; g++)
|
|
56
|
+
p[g - 1] = arguments[g];
|
|
57
|
+
P("error", t, p);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function P(t, l, p) {
|
|
61
61
|
{
|
|
62
|
-
var g =
|
|
63
|
-
x !== "" && (l += "%s",
|
|
64
|
-
var
|
|
62
|
+
var g = T.ReactDebugCurrentFrame, x = g.getStackAddendum();
|
|
63
|
+
x !== "" && (l += "%s", p = p.concat([x]));
|
|
64
|
+
var w = p.map(function(v) {
|
|
65
65
|
return String(v);
|
|
66
66
|
});
|
|
67
|
-
|
|
67
|
+
w.unshift("Warning: " + l), Function.prototype.apply.call(console[t], console, w);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
var W = !1, tr = !1, ne = !1, ce = !1, ue = !1, Dr;
|
|
71
71
|
Dr = Symbol.for("react.module.reference");
|
|
72
72
|
function pe(t) {
|
|
73
|
-
return !!(typeof t == "string" || typeof t == "function" || t === o || t ===
|
|
73
|
+
return !!(typeof t == "string" || typeof t == "function" || t === o || t === u || ue || t === n || t === q || t === y || ce || t === d || W || tr || ne || typeof t == "object" && t !== null && (t.$$typeof === h || t.$$typeof === E || t.$$typeof === m || t.$$typeof === i || t.$$typeof === c || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
77
|
t.$$typeof === Dr || t.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function de(t, l,
|
|
79
|
+
function de(t, l, p) {
|
|
80
80
|
var g = t.displayName;
|
|
81
81
|
if (g)
|
|
82
82
|
return g;
|
|
83
83
|
var x = l.displayName || l.name || "";
|
|
84
|
-
return x !== "" ?
|
|
84
|
+
return x !== "" ? p + "(" + x + ")" : p;
|
|
85
85
|
}
|
|
86
86
|
function kr(t) {
|
|
87
87
|
return t.displayName || "Context";
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function F(t) {
|
|
90
90
|
if (t == null)
|
|
91
91
|
return null;
|
|
92
|
-
if (typeof t.tag == "number" &&
|
|
92
|
+
if (typeof t.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
93
93
|
return t.displayName || t.name || null;
|
|
94
94
|
if (typeof t == "string")
|
|
95
95
|
return t;
|
|
@@ -98,11 +98,11 @@ function $e() {
|
|
|
98
98
|
return "Fragment";
|
|
99
99
|
case s:
|
|
100
100
|
return "Portal";
|
|
101
|
-
case
|
|
101
|
+
case u:
|
|
102
102
|
return "Profiler";
|
|
103
103
|
case n:
|
|
104
104
|
return "StrictMode";
|
|
105
|
-
case
|
|
105
|
+
case q:
|
|
106
106
|
return "Suspense";
|
|
107
107
|
case y:
|
|
108
108
|
return "SuspenseList";
|
|
@@ -113,17 +113,17 @@ function $e() {
|
|
|
113
113
|
var l = t;
|
|
114
114
|
return kr(l) + ".Consumer";
|
|
115
115
|
case m:
|
|
116
|
-
var
|
|
117
|
-
return kr(
|
|
116
|
+
var p = t;
|
|
117
|
+
return kr(p._context) + ".Provider";
|
|
118
118
|
case c:
|
|
119
119
|
return de(t, t.render, "ForwardRef");
|
|
120
|
-
case
|
|
120
|
+
case E:
|
|
121
121
|
var g = t.displayName || null;
|
|
122
|
-
return g !== null ? g :
|
|
123
|
-
case
|
|
124
|
-
var x = t,
|
|
122
|
+
return g !== null ? g : F(t.type) || "Memo";
|
|
123
|
+
case h: {
|
|
124
|
+
var x = t, w = x._payload, v = x._init;
|
|
125
125
|
try {
|
|
126
|
-
return
|
|
126
|
+
return F(v(w));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -131,7 +131,7 @@ function $e() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var
|
|
134
|
+
var B = Object.assign, J = 0, Sr, Rr, Tr, Cr, Lr, Or, _r;
|
|
135
135
|
function Fr() {
|
|
136
136
|
}
|
|
137
137
|
Fr.__reactDisabledLog = !0;
|
|
@@ -167,34 +167,34 @@ function $e() {
|
|
|
167
167
|
writable: !0
|
|
168
168
|
};
|
|
169
169
|
Object.defineProperties(console, {
|
|
170
|
-
log:
|
|
170
|
+
log: B({}, t, {
|
|
171
171
|
value: Sr
|
|
172
172
|
}),
|
|
173
|
-
info:
|
|
173
|
+
info: B({}, t, {
|
|
174
174
|
value: Rr
|
|
175
175
|
}),
|
|
176
|
-
warn:
|
|
176
|
+
warn: B({}, t, {
|
|
177
177
|
value: Tr
|
|
178
178
|
}),
|
|
179
|
-
error:
|
|
179
|
+
error: B({}, t, {
|
|
180
180
|
value: Cr
|
|
181
181
|
}),
|
|
182
|
-
group:
|
|
182
|
+
group: B({}, t, {
|
|
183
183
|
value: Lr
|
|
184
184
|
}),
|
|
185
|
-
groupCollapsed:
|
|
185
|
+
groupCollapsed: B({}, t, {
|
|
186
186
|
value: Or
|
|
187
187
|
}),
|
|
188
|
-
groupEnd:
|
|
188
|
+
groupEnd: B({}, t, {
|
|
189
189
|
value: _r
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
J < 0 &&
|
|
193
|
+
J < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
var pr =
|
|
197
|
-
function ar(t, l,
|
|
196
|
+
var pr = T.ReactCurrentDispatcher, dr;
|
|
197
|
+
function ar(t, l, p) {
|
|
198
198
|
{
|
|
199
199
|
if (dr === void 0)
|
|
200
200
|
try {
|
|
@@ -216,16 +216,16 @@ function $e() {
|
|
|
216
216
|
if (!t || mr)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
219
|
-
var
|
|
220
|
-
if (
|
|
221
|
-
return
|
|
219
|
+
var p = sr.get(t);
|
|
220
|
+
if (p !== void 0)
|
|
221
|
+
return p;
|
|
222
222
|
}
|
|
223
223
|
var g;
|
|
224
224
|
mr = !0;
|
|
225
225
|
var x = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
227
|
-
var
|
|
228
|
-
|
|
227
|
+
var w;
|
|
228
|
+
w = pr.current, pr.current = null, me();
|
|
229
229
|
try {
|
|
230
230
|
if (l) {
|
|
231
231
|
var v = function() {
|
|
@@ -238,59 +238,59 @@ function $e() {
|
|
|
238
238
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
239
239
|
try {
|
|
240
240
|
Reflect.construct(v, []);
|
|
241
|
-
} catch (
|
|
242
|
-
g =
|
|
241
|
+
} catch (O) {
|
|
242
|
+
g = O;
|
|
243
243
|
}
|
|
244
244
|
Reflect.construct(t, [], v);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
247
|
v.call();
|
|
248
|
-
} catch (
|
|
249
|
-
g =
|
|
248
|
+
} catch (O) {
|
|
249
|
+
g = O;
|
|
250
250
|
}
|
|
251
251
|
t.call(v.prototype);
|
|
252
252
|
}
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
255
|
throw Error();
|
|
256
|
-
} catch (
|
|
257
|
-
g =
|
|
256
|
+
} catch (O) {
|
|
257
|
+
g = O;
|
|
258
258
|
}
|
|
259
259
|
t();
|
|
260
260
|
}
|
|
261
|
-
} catch (
|
|
262
|
-
if (
|
|
263
|
-
for (var b =
|
|
264
|
-
`),
|
|
265
|
-
`), A = b.length - 1,
|
|
266
|
-
|
|
267
|
-
for (; A >= 1 &&
|
|
268
|
-
if (b[A] !==
|
|
269
|
-
if (A !== 1 ||
|
|
261
|
+
} catch (O) {
|
|
262
|
+
if (O && g && typeof O.stack == "string") {
|
|
263
|
+
for (var b = O.stack.split(`
|
|
264
|
+
`), L = g.stack.split(`
|
|
265
|
+
`), A = b.length - 1, R = L.length - 1; A >= 1 && R >= 0 && b[A] !== L[R]; )
|
|
266
|
+
R--;
|
|
267
|
+
for (; A >= 1 && R >= 0; A--, R--)
|
|
268
|
+
if (b[A] !== L[R]) {
|
|
269
|
+
if (A !== 1 || R !== 1)
|
|
270
270
|
do
|
|
271
|
-
if (A--,
|
|
271
|
+
if (A--, R--, R < 0 || b[A] !== L[R]) {
|
|
272
272
|
var _ = `
|
|
273
273
|
` + b[A].replace(" at new ", " at ");
|
|
274
274
|
return t.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", t.displayName)), typeof t == "function" && sr.set(t, _), _;
|
|
275
275
|
}
|
|
276
|
-
while (A >= 1 &&
|
|
276
|
+
while (A >= 1 && R >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} finally {
|
|
281
|
-
mr = !1, pr.current =
|
|
281
|
+
mr = !1, pr.current = w, ge(), Error.prepareStackTrace = x;
|
|
282
282
|
}
|
|
283
|
-
var z = t ? t.displayName || t.name : "",
|
|
284
|
-
return typeof t == "function" && sr.set(t,
|
|
283
|
+
var z = t ? t.displayName || t.name : "", H = z ? ar(z) : "";
|
|
284
|
+
return typeof t == "function" && sr.set(t, H), H;
|
|
285
285
|
}
|
|
286
|
-
function he(t, l,
|
|
286
|
+
function he(t, l, p) {
|
|
287
287
|
return Ur(t, !1);
|
|
288
288
|
}
|
|
289
289
|
function be(t) {
|
|
290
290
|
var l = t.prototype;
|
|
291
291
|
return !!(l && l.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function ir(t, l,
|
|
293
|
+
function ir(t, l, p) {
|
|
294
294
|
if (t == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof t == "function")
|
|
@@ -298,7 +298,7 @@ function $e() {
|
|
|
298
298
|
if (typeof t == "string")
|
|
299
299
|
return ar(t);
|
|
300
300
|
switch (t) {
|
|
301
|
-
case
|
|
301
|
+
case q:
|
|
302
302
|
return ar("Suspense");
|
|
303
303
|
case y:
|
|
304
304
|
return ar("SuspenseList");
|
|
@@ -307,42 +307,42 @@ function $e() {
|
|
|
307
307
|
switch (t.$$typeof) {
|
|
308
308
|
case c:
|
|
309
309
|
return he(t.render);
|
|
310
|
-
case
|
|
311
|
-
return ir(t.type, l,
|
|
312
|
-
case
|
|
313
|
-
var g = t, x = g._payload,
|
|
310
|
+
case E:
|
|
311
|
+
return ir(t.type, l, p);
|
|
312
|
+
case h: {
|
|
313
|
+
var g = t, x = g._payload, w = g._init;
|
|
314
314
|
try {
|
|
315
|
-
return ir(
|
|
315
|
+
return ir(w(x), l, p);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
|
-
var Z = Object.prototype.hasOwnProperty, Pr = {}, Ir =
|
|
322
|
+
var Z = Object.prototype.hasOwnProperty, Pr = {}, Ir = T.ReactDebugCurrentFrame;
|
|
323
323
|
function lr(t) {
|
|
324
324
|
if (t) {
|
|
325
|
-
var l = t._owner,
|
|
326
|
-
Ir.setExtraStackFrame(
|
|
325
|
+
var l = t._owner, p = ir(t.type, t._source, l ? l.type : null);
|
|
326
|
+
Ir.setExtraStackFrame(p);
|
|
327
327
|
} else
|
|
328
328
|
Ir.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function ve(t, l,
|
|
330
|
+
function ve(t, l, p, g, x) {
|
|
331
331
|
{
|
|
332
|
-
var
|
|
332
|
+
var w = Function.call.bind(Z);
|
|
333
333
|
for (var v in t)
|
|
334
|
-
if (
|
|
334
|
+
if (w(t, v)) {
|
|
335
335
|
var b = void 0;
|
|
336
336
|
try {
|
|
337
337
|
if (typeof t[v] != "function") {
|
|
338
|
-
var
|
|
339
|
-
throw
|
|
338
|
+
var L = Error((g || "React class") + ": " + p + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
|
+
throw L.name = "Invariant Violation", L;
|
|
340
340
|
}
|
|
341
|
-
b = t[v](l, v, g,
|
|
341
|
+
b = t[v](l, v, g, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
342
|
} catch (A) {
|
|
343
343
|
b = A;
|
|
344
344
|
}
|
|
345
|
-
b && !(b instanceof Error) && (lr(x),
|
|
345
|
+
b && !(b instanceof Error) && (lr(x), j("%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).", g || "React class", p, v, typeof b), lr(null)), b instanceof Error && !(b.message in Pr) && (Pr[b.message] = !0, lr(x), j("Failed %s type: %s", p, b.message), lr(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -352,8 +352,8 @@ function $e() {
|
|
|
352
352
|
}
|
|
353
353
|
function ye(t) {
|
|
354
354
|
{
|
|
355
|
-
var l = typeof Symbol == "function" && Symbol.toStringTag,
|
|
356
|
-
return
|
|
355
|
+
var l = typeof Symbol == "function" && Symbol.toStringTag, p = l && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
356
|
+
return p;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
function we(t) {
|
|
@@ -368,9 +368,9 @@ function $e() {
|
|
|
368
368
|
}
|
|
369
369
|
function Br(t) {
|
|
370
370
|
if (we(t))
|
|
371
|
-
return
|
|
371
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ye(t)), Vr(t);
|
|
372
372
|
}
|
|
373
|
-
var K =
|
|
373
|
+
var K = T.ReactCurrentOwner, qe = {
|
|
374
374
|
key: !0,
|
|
375
375
|
ref: !0,
|
|
376
376
|
__self: !0,
|
|
@@ -395,43 +395,43 @@ function $e() {
|
|
|
395
395
|
}
|
|
396
396
|
function Ne(t, l) {
|
|
397
397
|
if (typeof t.ref == "string" && K.current && l && K.current.stateNode !== l) {
|
|
398
|
-
var
|
|
399
|
-
fr[
|
|
398
|
+
var p = F(K.current.type);
|
|
399
|
+
fr[p] || (j('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', F(K.current.type), t.ref), fr[p] = !0);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
function Ae(t, l) {
|
|
403
403
|
{
|
|
404
|
-
var
|
|
405
|
-
Hr || (Hr = !0,
|
|
404
|
+
var p = function() {
|
|
405
|
+
Hr || (Hr = !0, j("%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)", l));
|
|
406
406
|
};
|
|
407
|
-
|
|
408
|
-
get:
|
|
407
|
+
p.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
408
|
+
get: p,
|
|
409
409
|
configurable: !0
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
function De(t, l) {
|
|
414
414
|
{
|
|
415
|
-
var
|
|
416
|
-
$r || ($r = !0,
|
|
415
|
+
var p = function() {
|
|
416
|
+
$r || ($r = !0, j("%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)", l));
|
|
417
417
|
};
|
|
418
|
-
|
|
419
|
-
get:
|
|
418
|
+
p.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
419
|
+
get: p,
|
|
420
420
|
configurable: !0
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
var ke = function(t, l,
|
|
424
|
+
var ke = function(t, l, p, g, x, w, v) {
|
|
425
425
|
var b = {
|
|
426
426
|
// This tag allows us to uniquely identify this as a React Element
|
|
427
427
|
$$typeof: a,
|
|
428
428
|
// Built-in properties that belong on the element
|
|
429
429
|
type: t,
|
|
430
430
|
key: l,
|
|
431
|
-
ref:
|
|
431
|
+
ref: p,
|
|
432
432
|
props: v,
|
|
433
433
|
// Record the component responsible for creating this element.
|
|
434
|
-
_owner:
|
|
434
|
+
_owner: w
|
|
435
435
|
};
|
|
436
436
|
return b._store = {}, Object.defineProperty(b._store, "validated", {
|
|
437
437
|
configurable: !1,
|
|
@@ -450,29 +450,29 @@ function $e() {
|
|
|
450
450
|
value: x
|
|
451
451
|
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
452
452
|
};
|
|
453
|
-
function Se(t, l,
|
|
453
|
+
function Se(t, l, p, g, x) {
|
|
454
454
|
{
|
|
455
|
-
var
|
|
456
|
-
|
|
457
|
-
for (
|
|
458
|
-
Z.call(l,
|
|
455
|
+
var w, v = {}, b = null, L = null;
|
|
456
|
+
p !== void 0 && (Br(p), b = "" + p), Ee(l) && (Br(l.key), b = "" + l.key), je(l) && (L = l.ref, Ne(l, x));
|
|
457
|
+
for (w in l)
|
|
458
|
+
Z.call(l, w) && !qe.hasOwnProperty(w) && (v[w] = l[w]);
|
|
459
459
|
if (t && t.defaultProps) {
|
|
460
460
|
var A = t.defaultProps;
|
|
461
|
-
for (
|
|
462
|
-
v[
|
|
461
|
+
for (w in A)
|
|
462
|
+
v[w] === void 0 && (v[w] = A[w]);
|
|
463
463
|
}
|
|
464
|
-
if (b ||
|
|
465
|
-
var
|
|
466
|
-
b && Ae(v,
|
|
464
|
+
if (b || L) {
|
|
465
|
+
var R = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
466
|
+
b && Ae(v, R), L && De(v, R);
|
|
467
467
|
}
|
|
468
|
-
return ke(t, b,
|
|
468
|
+
return ke(t, b, L, x, g, K.current, v);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
var hr =
|
|
471
|
+
var hr = T.ReactCurrentOwner, zr = T.ReactDebugCurrentFrame;
|
|
472
472
|
function $(t) {
|
|
473
473
|
if (t) {
|
|
474
|
-
var l = t._owner,
|
|
475
|
-
zr.setExtraStackFrame(
|
|
474
|
+
var l = t._owner, p = ir(t.type, t._source, l ? l.type : null);
|
|
475
|
+
zr.setExtraStackFrame(p);
|
|
476
476
|
} else
|
|
477
477
|
zr.setExtraStackFrame(null);
|
|
478
478
|
}
|
|
@@ -484,7 +484,7 @@ function $e() {
|
|
|
484
484
|
function Gr() {
|
|
485
485
|
{
|
|
486
486
|
if (hr.current) {
|
|
487
|
-
var t =
|
|
487
|
+
var t = F(hr.current.type);
|
|
488
488
|
if (t)
|
|
489
489
|
return `
|
|
490
490
|
|
|
@@ -501,10 +501,10 @@ Check the render method of \`` + t + "`.";
|
|
|
501
501
|
{
|
|
502
502
|
var l = Gr();
|
|
503
503
|
if (!l) {
|
|
504
|
-
var
|
|
505
|
-
|
|
504
|
+
var p = typeof t == "string" ? t : t.displayName || t.name;
|
|
505
|
+
p && (l = `
|
|
506
506
|
|
|
507
|
-
Check the top-level render call using <` +
|
|
507
|
+
Check the top-level render call using <` + p + ">.");
|
|
508
508
|
}
|
|
509
509
|
return l;
|
|
510
510
|
}
|
|
@@ -514,12 +514,12 @@ Check the top-level render call using <` + d + ">.");
|
|
|
514
514
|
if (!t._store || t._store.validated || t.key != null)
|
|
515
515
|
return;
|
|
516
516
|
t._store.validated = !0;
|
|
517
|
-
var
|
|
518
|
-
if (Mr[
|
|
517
|
+
var p = Te(l);
|
|
518
|
+
if (Mr[p])
|
|
519
519
|
return;
|
|
520
|
-
Mr[
|
|
520
|
+
Mr[p] = !0;
|
|
521
521
|
var g = "";
|
|
522
|
-
t && t._owner && t._owner !== hr.current && (g = " It was passed a child from " +
|
|
522
|
+
t && t._owner && t._owner !== hr.current && (g = " It was passed a child from " + F(t._owner.type) + "."), $(t), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, g), $(null);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
function Wr(t, l) {
|
|
@@ -527,16 +527,16 @@ Check the top-level render call using <` + d + ">.");
|
|
|
527
527
|
if (typeof t != "object")
|
|
528
528
|
return;
|
|
529
529
|
if (gr(t))
|
|
530
|
-
for (var
|
|
531
|
-
var g = t[
|
|
530
|
+
for (var p = 0; p < t.length; p++) {
|
|
531
|
+
var g = t[p];
|
|
532
532
|
vr(g) && Yr(g, l);
|
|
533
533
|
}
|
|
534
534
|
else if (vr(t))
|
|
535
535
|
t._store && (t._store.validated = !0);
|
|
536
536
|
else if (t) {
|
|
537
|
-
var x =
|
|
537
|
+
var x = V(t);
|
|
538
538
|
if (typeof x == "function" && x !== t.entries)
|
|
539
|
-
for (var
|
|
539
|
+
for (var w = x.call(t), v; !(v = w.next()).done; )
|
|
540
540
|
vr(v.value) && Yr(v.value, l);
|
|
541
541
|
}
|
|
542
542
|
}
|
|
@@ -546,53 +546,53 @@ Check the top-level render call using <` + d + ">.");
|
|
|
546
546
|
var l = t.type;
|
|
547
547
|
if (l == null || typeof l == "string")
|
|
548
548
|
return;
|
|
549
|
-
var
|
|
549
|
+
var p;
|
|
550
550
|
if (typeof l == "function")
|
|
551
|
-
|
|
551
|
+
p = l.propTypes;
|
|
552
552
|
else if (typeof l == "object" && (l.$$typeof === c || // Note: Memo only checks outer props here.
|
|
553
553
|
// Inner props are checked in the reconciler.
|
|
554
|
-
l.$$typeof ===
|
|
555
|
-
|
|
554
|
+
l.$$typeof === E))
|
|
555
|
+
p = l.propTypes;
|
|
556
556
|
else
|
|
557
557
|
return;
|
|
558
|
-
if (
|
|
559
|
-
var g =
|
|
560
|
-
ve(
|
|
558
|
+
if (p) {
|
|
559
|
+
var g = F(l);
|
|
560
|
+
ve(p, t.props, "prop", g, t);
|
|
561
561
|
} else if (l.PropTypes !== void 0 && !br) {
|
|
562
562
|
br = !0;
|
|
563
|
-
var x =
|
|
564
|
-
|
|
563
|
+
var x = F(l);
|
|
564
|
+
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
|
|
565
565
|
}
|
|
566
|
-
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved &&
|
|
566
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
function Le(t) {
|
|
570
570
|
{
|
|
571
|
-
for (var l = Object.keys(t.props),
|
|
572
|
-
var g = l[
|
|
571
|
+
for (var l = Object.keys(t.props), p = 0; p < l.length; p++) {
|
|
572
|
+
var g = l[p];
|
|
573
573
|
if (g !== "children" && g !== "key") {
|
|
574
|
-
$(t),
|
|
574
|
+
$(t), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), $(null);
|
|
575
575
|
break;
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
t.ref !== null && ($(t),
|
|
578
|
+
t.ref !== null && ($(t), j("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
var Jr = {};
|
|
582
|
-
function Zr(t, l,
|
|
582
|
+
function Zr(t, l, p, g, x, w) {
|
|
583
583
|
{
|
|
584
584
|
var v = pe(t);
|
|
585
585
|
if (!v) {
|
|
586
586
|
var b = "";
|
|
587
587
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
588
|
-
var
|
|
589
|
-
|
|
588
|
+
var L = Re();
|
|
589
|
+
L ? b += L : b += Gr();
|
|
590
590
|
var A;
|
|
591
|
-
t === null ? A = "null" : gr(t) ? A = "array" : t !== void 0 && t.$$typeof === a ? (A = "<" + (
|
|
591
|
+
t === null ? A = "null" : gr(t) ? A = "array" : t !== void 0 && t.$$typeof === a ? (A = "<" + (F(t.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : A = typeof t, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, b);
|
|
592
592
|
}
|
|
593
|
-
var
|
|
594
|
-
if (
|
|
595
|
-
return
|
|
593
|
+
var R = Se(t, l, p, x, w);
|
|
594
|
+
if (R == null)
|
|
595
|
+
return R;
|
|
596
596
|
if (v) {
|
|
597
597
|
var _ = l.children;
|
|
598
598
|
if (_ !== void 0)
|
|
@@ -602,32 +602,32 @@ Check the top-level render call using <` + d + ">.");
|
|
|
602
602
|
Wr(_[z], t);
|
|
603
603
|
Object.freeze && Object.freeze(_);
|
|
604
604
|
} else
|
|
605
|
-
|
|
605
|
+
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
606
606
|
else
|
|
607
607
|
Wr(_, t);
|
|
608
608
|
}
|
|
609
609
|
if (Z.call(l, "key")) {
|
|
610
|
-
var
|
|
610
|
+
var H = F(t), O = Object.keys(l).filter(function(Ie) {
|
|
611
611
|
return Ie !== "key";
|
|
612
|
-
}), xr =
|
|
613
|
-
if (!Jr[
|
|
614
|
-
var Pe =
|
|
615
|
-
|
|
612
|
+
}), xr = O.length > 0 ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
613
|
+
if (!Jr[H + xr]) {
|
|
614
|
+
var Pe = O.length > 0 ? "{" + O.join(": ..., ") + ": ...}" : "{}";
|
|
615
|
+
j(`A props object containing a "key" prop is being spread into JSX:
|
|
616
616
|
let props = %s;
|
|
617
617
|
<%s {...props} />
|
|
618
618
|
React keys must be passed directly to JSX without using spread:
|
|
619
619
|
let props = %s;
|
|
620
|
-
<%s key={someKey} {...props} />`, xr,
|
|
620
|
+
<%s key={someKey} {...props} />`, xr, H, Pe, H), Jr[H + xr] = !0;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
return t === o ? Le(
|
|
623
|
+
return t === o ? Le(R) : Ce(R), R;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
function Oe(t, l,
|
|
627
|
-
return Zr(t, l,
|
|
626
|
+
function Oe(t, l, p) {
|
|
627
|
+
return Zr(t, l, p, !0);
|
|
628
628
|
}
|
|
629
|
-
function _e(t, l,
|
|
630
|
-
return Zr(t, l,
|
|
629
|
+
function _e(t, l, p) {
|
|
630
|
+
return Zr(t, l, p, !1);
|
|
631
631
|
}
|
|
632
632
|
var Fe = _e, Ue = Oe;
|
|
633
633
|
Q.Fragment = o, Q.jsx = Fe, Q.jsxs = Ue;
|
|
@@ -647,7 +647,7 @@ const k = ({ text: r }) => r ? /* @__PURE__ */ e.jsx("div", { className: "title"
|
|
|
647
647
|
/* @__PURE__ */ e.jsxs("td", { className: "content", children: [
|
|
648
648
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
649
649
|
r.content && D(r.content),
|
|
650
|
-
/* @__PURE__ */ e.jsx(
|
|
650
|
+
/* @__PURE__ */ e.jsx(C, { blocks: r.blocks })
|
|
651
651
|
] })
|
|
652
652
|
] }) }) })
|
|
653
653
|
}
|
|
@@ -683,7 +683,7 @@ const k = ({ text: r }) => r ? /* @__PURE__ */ e.jsx("div", { className: "title"
|
|
|
683
683
|
] }),
|
|
684
684
|
/* @__PURE__ */ e.jsxs("td", { children: [
|
|
685
685
|
a.text && D(a.text),
|
|
686
|
-
/* @__PURE__ */ e.jsx(
|
|
686
|
+
/* @__PURE__ */ e.jsx(C, { blocks: a.blocks })
|
|
687
687
|
] })
|
|
688
688
|
] }, s)) }) })
|
|
689
689
|
] });
|
|
@@ -697,28 +697,28 @@ var ae = { exports: {} };
|
|
|
697
697
|
(function() {
|
|
698
698
|
var a = {}.hasOwnProperty;
|
|
699
699
|
function s() {
|
|
700
|
-
for (var
|
|
700
|
+
for (var u = "", m = 0; m < arguments.length; m++) {
|
|
701
701
|
var i = arguments[m];
|
|
702
|
-
i && (
|
|
702
|
+
i && (u = n(u, o(i)));
|
|
703
703
|
}
|
|
704
|
-
return
|
|
704
|
+
return u;
|
|
705
705
|
}
|
|
706
|
-
function o(
|
|
707
|
-
if (typeof
|
|
708
|
-
return
|
|
709
|
-
if (typeof
|
|
706
|
+
function o(u) {
|
|
707
|
+
if (typeof u == "string" || typeof u == "number")
|
|
708
|
+
return u;
|
|
709
|
+
if (typeof u != "object")
|
|
710
710
|
return "";
|
|
711
|
-
if (Array.isArray(
|
|
712
|
-
return s.apply(null,
|
|
713
|
-
if (
|
|
714
|
-
return
|
|
711
|
+
if (Array.isArray(u))
|
|
712
|
+
return s.apply(null, u);
|
|
713
|
+
if (u.toString !== Object.prototype.toString && !u.toString.toString().includes("[native code]"))
|
|
714
|
+
return u.toString();
|
|
715
715
|
var m = "";
|
|
716
|
-
for (var i in
|
|
717
|
-
a.call(
|
|
716
|
+
for (var i in u)
|
|
717
|
+
a.call(u, i) && u[i] && (m = n(m, i));
|
|
718
718
|
return m;
|
|
719
719
|
}
|
|
720
|
-
function n(
|
|
721
|
-
return m ?
|
|
720
|
+
function n(u, m) {
|
|
721
|
+
return m ? u ? u + " " + m : u + m : u;
|
|
722
722
|
}
|
|
723
723
|
r.exports ? (s.default = s, r.exports = s) : window.classNames = s;
|
|
724
724
|
})();
|
|
@@ -761,39 +761,39 @@ function ie(r, a, s) {
|
|
|
761
761
|
var o = a.exec(r), n;
|
|
762
762
|
if (o) {
|
|
763
763
|
n = "";
|
|
764
|
-
var
|
|
764
|
+
var u = 0;
|
|
765
765
|
do {
|
|
766
|
-
|
|
766
|
+
u !== o.index && (n += r.substring(u, o.index));
|
|
767
767
|
var m = o[0];
|
|
768
|
-
n += s(m),
|
|
768
|
+
n += s(m), u = o.index + m.length;
|
|
769
769
|
} while (o = a.exec(r));
|
|
770
|
-
|
|
770
|
+
u !== r.length && (n += r.substring(u));
|
|
771
771
|
} else
|
|
772
772
|
n = r;
|
|
773
773
|
return n;
|
|
774
774
|
}
|
|
775
775
|
var Je = { specialChars: /[<>'"&]/g, nonAscii: /[<>'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g, nonAsciiPrintable: /[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g, nonAsciiPrintableOnly: /[\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g, extensive: /[\x01-\x0c\x0e-\x1f\x21-\x2c\x2e-\x2f\x3a-\x40\x5b-\x60\x7b-\x7d\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g }, Ze = { mode: "specialChars", level: "all", numeric: "decimal" };
|
|
776
776
|
function Ke(r, a) {
|
|
777
|
-
var s = a === void 0 ? Ze : a, o = s.mode, n = o === void 0 ? "specialChars" : o,
|
|
777
|
+
var s = a === void 0 ? Ze : a, o = s.mode, n = o === void 0 ? "specialChars" : o, u = s.numeric, m = u === void 0 ? "decimal" : u, i = s.level, c = i === void 0 ? "all" : i;
|
|
778
778
|
if (!r)
|
|
779
779
|
return "";
|
|
780
|
-
var
|
|
781
|
-
return ie(r,
|
|
782
|
-
var
|
|
783
|
-
if (!
|
|
784
|
-
var
|
|
785
|
-
|
|
786
|
-
}
|
|
787
|
-
return
|
|
780
|
+
var q = Je[n], y = Nr[c].characters, E = m === "hexadecimal";
|
|
781
|
+
return ie(r, q, function(h) {
|
|
782
|
+
var d = y[h];
|
|
783
|
+
if (!d) {
|
|
784
|
+
var f = h.length > 1 ? se.getCodePoint(h, 0) : h.charCodeAt(0);
|
|
785
|
+
d = (E ? "&#x" + f.toString(16) : "&#" + f) + ";";
|
|
786
|
+
}
|
|
787
|
+
return d;
|
|
788
788
|
});
|
|
789
789
|
}
|
|
790
790
|
nr.encode = Ke;
|
|
791
791
|
var Xe = { scope: "body", level: "all" }, yr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g, wr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g, re = { xml: { strict: yr, attribute: wr, body: rr.bodyRegExps.xml }, html4: { strict: yr, attribute: wr, body: rr.bodyRegExps.html4 }, html5: { strict: yr, attribute: wr, body: rr.bodyRegExps.html5 } }, Qe = M(M({}, re), { all: re.html5 }), le = String.fromCharCode, rt = le(65533), et = { level: "all" };
|
|
792
792
|
function oe(r, a, s, o) {
|
|
793
|
-
var n = r,
|
|
794
|
-
if (s &&
|
|
793
|
+
var n = r, u = r[r.length - 1];
|
|
794
|
+
if (s && u === "=")
|
|
795
795
|
n = r;
|
|
796
|
-
else if (o &&
|
|
796
|
+
else if (o && u !== ";")
|
|
797
797
|
n = r;
|
|
798
798
|
else {
|
|
799
799
|
var m = a[r];
|
|
@@ -812,32 +812,32 @@ function tt(r, a) {
|
|
|
812
812
|
}
|
|
813
813
|
nr.decodeEntity = tt;
|
|
814
814
|
function at(r, a) {
|
|
815
|
-
var s = a === void 0 ? Xe : a, o = s.level, n = o === void 0 ? "all" : o,
|
|
815
|
+
var s = a === void 0 ? Xe : a, o = s.level, n = o === void 0 ? "all" : o, u = s.scope, m = u === void 0 ? n === "xml" ? "strict" : "body" : u;
|
|
816
816
|
if (!r)
|
|
817
817
|
return "";
|
|
818
|
-
var i = Qe[n][m], c = Nr[n].entities,
|
|
819
|
-
return ie(r, i, function(
|
|
820
|
-
return oe(
|
|
818
|
+
var i = Qe[n][m], c = Nr[n].entities, q = m === "attribute", y = m === "strict";
|
|
819
|
+
return ie(r, i, function(E) {
|
|
820
|
+
return oe(E, c, q, y);
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
823
|
var st = nr.decode = at;
|
|
824
824
|
const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n) => {
|
|
825
825
|
if (r[a] !== void 0)
|
|
826
826
|
return r[a];
|
|
827
|
-
const
|
|
828
|
-
return
|
|
829
|
-
},
|
|
827
|
+
const u = o || a;
|
|
828
|
+
return u && n && n[u] !== void 0 ? n[u] : s;
|
|
829
|
+
}, U = (r, a) => r[a] !== void 0, Tt = (r) => {
|
|
830
830
|
var m;
|
|
831
831
|
let a;
|
|
832
832
|
function s(i) {
|
|
833
|
-
const c = i.getNodeName && i.getNodeName(),
|
|
833
|
+
const c = i.getNodeName && i.getNodeName(), q = i.getContentModel && i.getContentModel(), y = c === "colist" || c === "olist" || c === "ulist" || c == "dlist", E = c && !y && i.hasBlocks() ? i.getBlocks().map((d) => s(d)) : [];
|
|
834
834
|
let h = {
|
|
835
835
|
id: i.getId && i.getId(),
|
|
836
836
|
type: c,
|
|
837
|
-
blocks:
|
|
838
|
-
content:
|
|
837
|
+
blocks: E,
|
|
838
|
+
content: E.length > 0 || y || c === "list_item" ? void 0 : i.getContent && i.getContent(),
|
|
839
839
|
attributes: i.getAttributes && i.getAttributes(),
|
|
840
|
-
contentModel:
|
|
840
|
+
contentModel: q,
|
|
841
841
|
lineNumber: i.getLineNumber && i.getLineNumber(),
|
|
842
842
|
style: i.getStyle && i.getStyle(),
|
|
843
843
|
role: i.getRole && i.getRole(),
|
|
@@ -845,89 +845,89 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
845
845
|
level: i.getLevel && i.getLevel()
|
|
846
846
|
};
|
|
847
847
|
if (c === "admonition") {
|
|
848
|
-
let
|
|
849
|
-
|
|
848
|
+
let d = h;
|
|
849
|
+
d.iconUri = i.getIconUri(h.attributes.name);
|
|
850
850
|
}
|
|
851
851
|
if (c === "audio") {
|
|
852
|
-
let
|
|
853
|
-
|
|
852
|
+
let d = h;
|
|
853
|
+
d.mediaUri = i.getMediaUri(i.getAttribute("target")), d.autoplay = i.isOption("autoplay"), d.noControls = !i.isOption("nocontrols"), d.loop = i.isOption("loop"), h = d;
|
|
854
854
|
}
|
|
855
855
|
if (c === "video") {
|
|
856
|
-
let
|
|
857
|
-
|
|
856
|
+
let d = h;
|
|
857
|
+
d.mediaUri = i.getMediaUri(i.getAttribute("target")), d.autoplay = i.isOption("autoplay"), d.noControls = !i.isOption("nocontrols"), d.loop = i.isOption("loop"), d.onHover = i.isOption("onhover"), h = d;
|
|
858
858
|
}
|
|
859
859
|
if (c === "image") {
|
|
860
|
-
let
|
|
861
|
-
|
|
860
|
+
let d = h;
|
|
861
|
+
d.imageUri = i.getImageUri(i.getAttribute("target"));
|
|
862
862
|
}
|
|
863
863
|
if ((c === "listing" || c === "literal") && "getSource" in i) {
|
|
864
|
-
const
|
|
865
|
-
|
|
864
|
+
const d = h;
|
|
865
|
+
d.source = i.getSource(), d.language = i.getAttribute("language"), d.content = d.content ? st(d.content) : void 0;
|
|
866
866
|
}
|
|
867
867
|
if (c === "section") {
|
|
868
|
-
const
|
|
869
|
-
|
|
868
|
+
const d = h;
|
|
869
|
+
d.title = i.getCaption() ? i.getCaptionedTitle() : i.getTitle() || "", "getSectionNumeral" in i && (d.name = i.getSectionName(), d.numbered = i.isNumbered(), d.num = i.getSectionNumeral());
|
|
870
870
|
}
|
|
871
871
|
if (c === "dlist") {
|
|
872
|
-
let
|
|
873
|
-
|
|
872
|
+
let d = h;
|
|
873
|
+
d.items = i.getItems().map((f) => [
|
|
874
874
|
f[0].map(
|
|
875
|
-
(
|
|
875
|
+
(S) => s(S)
|
|
876
876
|
),
|
|
877
877
|
s(f[1])
|
|
878
878
|
]);
|
|
879
879
|
}
|
|
880
880
|
if (c === "colist" || c === "olist" || c === "ulist") {
|
|
881
|
-
let
|
|
882
|
-
|
|
881
|
+
let d = h;
|
|
882
|
+
d.items = i.getItems().map((f) => s(f));
|
|
883
883
|
}
|
|
884
884
|
if (c === "list_item") {
|
|
885
|
-
let
|
|
885
|
+
let d = h;
|
|
886
886
|
const f = i;
|
|
887
|
-
|
|
887
|
+
d.text = f.hasText() ? f.getText() : void 0;
|
|
888
888
|
}
|
|
889
889
|
if (c === "table") {
|
|
890
|
-
let
|
|
890
|
+
let d = h;
|
|
891
891
|
const f = i;
|
|
892
|
-
|
|
892
|
+
d.columns = f.getColumns().map((T) => ({
|
|
893
893
|
// @ts-ignore
|
|
894
|
-
attributes:
|
|
895
|
-
columnNumber:
|
|
896
|
-
width:
|
|
897
|
-
horizontalAlign:
|
|
898
|
-
verticalAlign:
|
|
899
|
-
style:
|
|
894
|
+
attributes: T.getAttributes(),
|
|
895
|
+
columnNumber: T.getColumnNumber(),
|
|
896
|
+
width: T.getWidth(),
|
|
897
|
+
horizontalAlign: T.getHorizontalAlign(),
|
|
898
|
+
verticalAlign: T.getVerticalAlign(),
|
|
899
|
+
style: T.getStyle()
|
|
900
900
|
}));
|
|
901
|
-
const
|
|
902
|
-
(
|
|
903
|
-
),
|
|
904
|
-
|
|
905
|
-
head:
|
|
906
|
-
body:
|
|
907
|
-
foot:
|
|
908
|
-
},
|
|
909
|
-
...
|
|
901
|
+
const S = (T) => T.map(
|
|
902
|
+
(j) => j.map((P) => s(P))
|
|
903
|
+
), V = f.getRows();
|
|
904
|
+
d.rows = {
|
|
905
|
+
head: S(V.head),
|
|
906
|
+
body: S(V.body),
|
|
907
|
+
foot: S(V.foot)
|
|
908
|
+
}, d = {
|
|
909
|
+
...d,
|
|
910
910
|
caption: f.getCaption(),
|
|
911
911
|
hasHeader: f.hasHeaderOption(),
|
|
912
912
|
hasFooter: f.hasFooterOption(),
|
|
913
913
|
hasAutowidth: f.hasAutowidthOption(),
|
|
914
|
-
headRows:
|
|
915
|
-
bodyRows:
|
|
916
|
-
footRows:
|
|
917
|
-
}, h =
|
|
914
|
+
headRows: S(f.getHeadRows()),
|
|
915
|
+
bodyRows: S(f.getBodyRows()),
|
|
916
|
+
footRows: S(f.getFootRows())
|
|
917
|
+
}, h = d;
|
|
918
918
|
}
|
|
919
919
|
if (c === "table_cell") {
|
|
920
|
-
const
|
|
920
|
+
const d = i, f = d.getColumn();
|
|
921
921
|
h = {
|
|
922
922
|
...h,
|
|
923
923
|
type: "table_cell",
|
|
924
|
-
text:
|
|
925
|
-
columnSpan:
|
|
926
|
-
rowSpan:
|
|
927
|
-
source:
|
|
928
|
-
lines:
|
|
929
|
-
width:
|
|
930
|
-
columnPercentageWidth:
|
|
924
|
+
text: d.getText(),
|
|
925
|
+
columnSpan: d.getColumnSpan(),
|
|
926
|
+
rowSpan: d.getRowSpan(),
|
|
927
|
+
source: d.getSource(),
|
|
928
|
+
lines: d.getLines(),
|
|
929
|
+
width: d.getWidth(),
|
|
930
|
+
columnPercentageWidth: d.getColumnPercentageWidth(),
|
|
931
931
|
column: f ? {
|
|
932
932
|
// @ts-ignore
|
|
933
933
|
attributes: f.getAttributes(),
|
|
@@ -967,16 +967,16 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
967
967
|
text: i.getText(),
|
|
968
968
|
index: i.getIndex()
|
|
969
969
|
}))), r.getAuthors() && (a.authors = r.getAuthors().map((i) => {
|
|
970
|
-
const c = i.getName(),
|
|
970
|
+
const c = i.getName(), q = i.getEmail();
|
|
971
971
|
return {
|
|
972
972
|
name: c ? r.applySubstitutions(c).toString() : void 0,
|
|
973
|
-
email:
|
|
973
|
+
email: q ? r.applySubstitutions(q).toString() : void 0
|
|
974
974
|
};
|
|
975
975
|
})), a;
|
|
976
976
|
}, Ct = async (r, a) => {
|
|
977
977
|
const s = async (n) => Promise.all(
|
|
978
|
-
n.map(async (
|
|
979
|
-
let m = await a(
|
|
978
|
+
n.map(async (u) => {
|
|
979
|
+
let m = await a(u);
|
|
980
980
|
if (m.blocks && m.blocks.length > 0 && (m.blocks = await s(m.blocks)), m.items) {
|
|
981
981
|
const i = m;
|
|
982
982
|
i.items = await s(
|
|
@@ -992,17 +992,17 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
992
992
|
};
|
|
993
993
|
}, it = ({ node: r }) => {
|
|
994
994
|
const a = (o) => {
|
|
995
|
-
const n = o,
|
|
995
|
+
const n = o, u = n[0];
|
|
996
996
|
let m = n[1];
|
|
997
997
|
return m.type || (m = null), {
|
|
998
|
-
terms:
|
|
998
|
+
terms: u,
|
|
999
999
|
dd: m
|
|
1000
1000
|
};
|
|
1001
1001
|
}, s = (o) => {
|
|
1002
1002
|
if (o)
|
|
1003
1003
|
return /* @__PURE__ */ e.jsxs("dd", { children: [
|
|
1004
1004
|
o.text && /* @__PURE__ */ e.jsx("p", { children: D(o.text) }),
|
|
1005
|
-
/* @__PURE__ */ e.jsx(
|
|
1005
|
+
/* @__PURE__ */ e.jsx(C, { blocks: o.blocks })
|
|
1006
1006
|
] });
|
|
1007
1007
|
};
|
|
1008
1008
|
if (r.style === "qanda")
|
|
@@ -1014,10 +1014,10 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1014
1014
|
children: [
|
|
1015
1015
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1016
1016
|
/* @__PURE__ */ e.jsx("ol", { children: r.items.map((o, n) => {
|
|
1017
|
-
const { terms:
|
|
1018
|
-
if (
|
|
1017
|
+
const { terms: u, dd: m } = a(o);
|
|
1018
|
+
if (u)
|
|
1019
1019
|
return /* @__PURE__ */ e.jsxs("li", { children: [
|
|
1020
|
-
|
|
1020
|
+
u.map((i, c) => /* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx("em", { children: D(i.text) }) }, c)),
|
|
1021
1021
|
s(m)
|
|
1022
1022
|
] }, n);
|
|
1023
1023
|
}) })
|
|
@@ -1048,8 +1048,8 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1048
1048
|
}
|
|
1049
1049
|
)
|
|
1050
1050
|
] }),
|
|
1051
|
-
/* @__PURE__ */ e.jsx("tbody", { children: r.items.map((
|
|
1052
|
-
const { terms: i, dd: c } = a(
|
|
1051
|
+
/* @__PURE__ */ e.jsx("tbody", { children: r.items.map((u, m) => {
|
|
1052
|
+
const { terms: i, dd: c } = a(u);
|
|
1053
1053
|
if (i)
|
|
1054
1054
|
return /* @__PURE__ */ e.jsxs("tr", { children: [
|
|
1055
1055
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1059,15 +1059,15 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1059
1059
|
"hdlist1",
|
|
1060
1060
|
er(r.attributes, "strong") ? "strong" : ""
|
|
1061
1061
|
),
|
|
1062
|
-
children: i.map((
|
|
1062
|
+
children: i.map((q, y) => /* @__PURE__ */ e.jsxs(qr, { children: [
|
|
1063
1063
|
y !== 0 && /* @__PURE__ */ e.jsx("br", {}),
|
|
1064
|
-
D(
|
|
1064
|
+
D(q.text)
|
|
1065
1065
|
] }, y))
|
|
1066
1066
|
}
|
|
1067
1067
|
),
|
|
1068
1068
|
c && /* @__PURE__ */ e.jsxs("td", { className: "hdlist2", children: [
|
|
1069
1069
|
c.text && /* @__PURE__ */ e.jsx("p", { children: D(c.text) }),
|
|
1070
|
-
/* @__PURE__ */ e.jsx(
|
|
1070
|
+
/* @__PURE__ */ e.jsx(C, { blocks: c.blocks })
|
|
1071
1071
|
] })
|
|
1072
1072
|
] }, m);
|
|
1073
1073
|
}) })
|
|
@@ -1077,10 +1077,10 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1077
1077
|
return /* @__PURE__ */ e.jsxs("div", { className: N("dlist", r.style, r.role), children: [
|
|
1078
1078
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1079
1079
|
/* @__PURE__ */ e.jsx("dl", { children: r.items.map((o, n) => {
|
|
1080
|
-
const { terms:
|
|
1081
|
-
if (
|
|
1080
|
+
const { terms: u, dd: m } = a(o);
|
|
1081
|
+
if (u)
|
|
1082
1082
|
return /* @__PURE__ */ e.jsxs(qr, { children: [
|
|
1083
|
-
|
|
1083
|
+
u.map((i, c) => /* @__PURE__ */ e.jsx("dt", { className: "hdlist1", children: D(i.text) }, c)),
|
|
1084
1084
|
s(m)
|
|
1085
1085
|
] }, n);
|
|
1086
1086
|
}) })
|
|
@@ -1091,14 +1091,14 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1091
1091
|
}) => {
|
|
1092
1092
|
const { document: s } = I();
|
|
1093
1093
|
if (!r || r.length === 0) return null;
|
|
1094
|
-
const o = s.attributes || {}, n = o.sectnumlevels,
|
|
1094
|
+
const o = s.attributes || {}, n = o.sectnumlevels, u = o.toclevels, m = (a == null ? void 0 : a.sectNumLevels) || (n ? parseInt(`${n}`) : 3), i = (a == null ? void 0 : a.tocLevels) || (u ? parseInt(`${u}`) : 2);
|
|
1095
1095
|
return /* @__PURE__ */ e.jsx("ul", { className: `sectlevel${r[0].level}`, children: r.map((c) => {
|
|
1096
|
-
let
|
|
1097
|
-
|
|
1096
|
+
let q = c.num;
|
|
1097
|
+
q = q === "." || q === ".." ? "" : q;
|
|
1098
1098
|
const y = c.level;
|
|
1099
|
-
let
|
|
1100
|
-
return y <= m && (
|
|
1101
|
-
/* @__PURE__ */ e.jsx("a", { href: `#${c.id}`, children: D(
|
|
1099
|
+
let E = c.title;
|
|
1100
|
+
return y <= m && (E = `${q} ${c.title}`), /* @__PURE__ */ e.jsxs("li", { children: [
|
|
1101
|
+
/* @__PURE__ */ e.jsx("a", { href: `#${c.id}`, children: D(E) }),
|
|
1102
1102
|
y < i && /* @__PURE__ */ e.jsx(
|
|
1103
1103
|
ur,
|
|
1104
1104
|
{
|
|
@@ -1133,7 +1133,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1133
1133
|
]
|
|
1134
1134
|
}
|
|
1135
1135
|
)
|
|
1136
|
-
] }) }), s = () => r.footnotes && r.footnotes.length > 0 && r.blocks && !
|
|
1136
|
+
] }) }), s = () => r.footnotes && r.footnotes.length > 0 && r.blocks && !U(r.attributes, "nofootnotes") ? /* @__PURE__ */ e.jsxs("div", { id: "footnotes", children: [
|
|
1137
1137
|
/* @__PURE__ */ e.jsx("hr", {}),
|
|
1138
1138
|
r.footnotes.map((n) => /* @__PURE__ */ e.jsxs(
|
|
1139
1139
|
"div",
|
|
@@ -1149,27 +1149,27 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1149
1149
|
},
|
|
1150
1150
|
n.index
|
|
1151
1151
|
))
|
|
1152
|
-
] }) : null, o = () => r.authors.length > 0 ||
|
|
1153
|
-
r.authors.map((n,
|
|
1152
|
+
] }) : null, o = () => r.authors.length > 0 || U(r.attributes, "revnumber") || U(r.attributes, "revdate") || U(r.attributes, "revremark") ? /* @__PURE__ */ e.jsxs("div", { className: "details", children: [
|
|
1153
|
+
r.authors.map((n, u) => /* @__PURE__ */ e.jsxs(qr, { children: [
|
|
1154
1154
|
n.name && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1155
|
-
/* @__PURE__ */ e.jsx("span", { id: `author${
|
|
1155
|
+
/* @__PURE__ */ e.jsx("span", { id: `author${u + 1 > 1 ? u + 1 : ""}`, className: "author", children: D(n.name) }),
|
|
1156
1156
|
/* @__PURE__ */ e.jsx("br", {})
|
|
1157
1157
|
] }),
|
|
1158
1158
|
n.email && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1159
|
-
/* @__PURE__ */ e.jsx("span", { id: `email${
|
|
1159
|
+
/* @__PURE__ */ e.jsx("span", { id: `email${u + 1 > 1 ? u + 1 : ""}`, className: "email", children: D(n.email) }),
|
|
1160
1160
|
/* @__PURE__ */ e.jsx("br", {})
|
|
1161
1161
|
] })
|
|
1162
|
-
] },
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1162
|
+
] }, u)),
|
|
1163
|
+
U(r.attributes, "revnumber") && /* @__PURE__ */ e.jsx("span", { id: "revnumber", children: `${r.attributes["version-label"].toString().toLowerCase()} ${r.attributes.revnumber}${r.attributes.revdate ? "," : ""}` }),
|
|
1164
|
+
U(r.attributes, "revdate") && /* @__PURE__ */ e.jsx("span", { id: "revdate", children: r.attributes.revdate }),
|
|
1165
|
+
U(r.attributes, "revremark") && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1166
1166
|
/* @__PURE__ */ e.jsx("br", {}),
|
|
1167
1167
|
/* @__PURE__ */ e.jsx("span", { id: "revremark", children: r.attributes.revremark })
|
|
1168
1168
|
] })
|
|
1169
1169
|
] }) : null;
|
|
1170
1170
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1171
1171
|
/* @__PURE__ */ e.jsx(a, {}),
|
|
1172
|
-
/* @__PURE__ */ e.jsx("div", { id: "content", children: /* @__PURE__ */ e.jsx(
|
|
1172
|
+
/* @__PURE__ */ e.jsx("div", { id: "content", children: /* @__PURE__ */ e.jsx(C, { blocks: r.blocks }) }),
|
|
1173
1173
|
/* @__PURE__ */ e.jsx(s, {})
|
|
1174
1174
|
] });
|
|
1175
1175
|
}, ot = ({ node: r }) => {
|
|
@@ -1184,7 +1184,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1184
1184
|
...r.id ? { id: r.id } : {},
|
|
1185
1185
|
children: [
|
|
1186
1186
|
/* @__PURE__ */ e.jsx("summary", { className: "title", children: D(s) }),
|
|
1187
|
-
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx(
|
|
1187
|
+
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx(C, { blocks: r.blocks }) })
|
|
1188
1188
|
]
|
|
1189
1189
|
}
|
|
1190
1190
|
);
|
|
@@ -1197,7 +1197,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1197
1197
|
...r.id ? { id: r.id } : {},
|
|
1198
1198
|
children: [
|
|
1199
1199
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1200
|
-
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx(
|
|
1200
|
+
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx(C, { blocks: r.blocks }) })
|
|
1201
1201
|
]
|
|
1202
1202
|
}
|
|
1203
1203
|
);
|
|
@@ -1312,7 +1312,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1312
1312
|
...r.attributes.start ? { start: parseInt(`${r.attributes.start}`) } : {},
|
|
1313
1313
|
children: r.items.map((a, s) => /* @__PURE__ */ e.jsxs("li", { className: r.role ? r.role : "", children: [
|
|
1314
1314
|
/* @__PURE__ */ e.jsx("p", { children: D(a.text || "") }),
|
|
1315
|
-
/* @__PURE__ */ e.jsx(
|
|
1315
|
+
/* @__PURE__ */ e.jsx(C, { blocks: a.blocks })
|
|
1316
1316
|
] }, s))
|
|
1317
1317
|
}
|
|
1318
1318
|
)
|
|
@@ -1327,7 +1327,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1327
1327
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1328
1328
|
children: [
|
|
1329
1329
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1330
|
-
/* @__PURE__ */ e.jsx("blockquote", { className: "content", children: /* @__PURE__ */ e.jsx(
|
|
1330
|
+
/* @__PURE__ */ e.jsx("blockquote", { className: "content", children: /* @__PURE__ */ e.jsx(C, { blocks: r.blocks }) })
|
|
1331
1331
|
]
|
|
1332
1332
|
}
|
|
1333
1333
|
) : /* @__PURE__ */ e.jsxs(
|
|
@@ -1337,7 +1337,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1337
1337
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1338
1338
|
children: [
|
|
1339
1339
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1340
|
-
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx(
|
|
1340
|
+
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx(C, { blocks: r.blocks }) })
|
|
1341
1341
|
]
|
|
1342
1342
|
}
|
|
1343
1343
|
);
|
|
@@ -1355,7 +1355,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1355
1355
|
), ht = ({ node: r }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: D(r.content || "") }), bt = ({ node: r }) => {
|
|
1356
1356
|
const { document: a } = I(), s = a.attributes || {}, o = s["toc-placement"] === "preamble" && a.sections && a.sections.length > 0 && s.toc !== void 0;
|
|
1357
1357
|
return /* @__PURE__ */ e.jsx("div", { id: "preamble", ...r.lineNumber ? { "data-lineno": r.lineNumber } : {}, children: /* @__PURE__ */ e.jsxs("div", { className: "sectionbody", children: [
|
|
1358
|
-
/* @__PURE__ */ e.jsx(
|
|
1358
|
+
/* @__PURE__ */ e.jsx(C, { blocks: r.blocks }),
|
|
1359
1359
|
o && /* @__PURE__ */ e.jsxs(
|
|
1360
1360
|
"div",
|
|
1361
1361
|
{
|
|
@@ -1379,7 +1379,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1379
1379
|
children: [
|
|
1380
1380
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1381
1381
|
r.content && /* @__PURE__ */ e.jsx("blockquote", { dangerouslySetInnerHTML: { __html: r.content } }),
|
|
1382
|
-
/* @__PURE__ */ e.jsx(
|
|
1382
|
+
/* @__PURE__ */ e.jsx(C, { blocks: r.blocks }),
|
|
1383
1383
|
a && /* @__PURE__ */ e.jsxs("div", { className: "attribution", children: [
|
|
1384
1384
|
"— ",
|
|
1385
1385
|
D(a.toString()),
|
|
@@ -1392,8 +1392,8 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1392
1392
|
const { document: a } = I(), s = a.attributes || {};
|
|
1393
1393
|
let o = r.title, n = r.num;
|
|
1394
1394
|
n = n === "." ? "" : n;
|
|
1395
|
-
const
|
|
1396
|
-
return r.numbered && r.level <=
|
|
1395
|
+
const u = s.sectnumlevels ? parseInt(`${s.sectnumlevels}`) : 3;
|
|
1396
|
+
return r.numbered && r.level <= u && (o = `${n} ${r.title}`), s.sectlinks && (o = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1397
1397
|
/* @__PURE__ */ e.jsx(
|
|
1398
1398
|
"a",
|
|
1399
1399
|
{
|
|
@@ -1422,7 +1422,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1422
1422
|
children: o
|
|
1423
1423
|
}
|
|
1424
1424
|
),
|
|
1425
|
-
/* @__PURE__ */ e.jsx(
|
|
1425
|
+
/* @__PURE__ */ e.jsx(C, { blocks: r.blocks })
|
|
1426
1426
|
] }) : /* @__PURE__ */ e.jsxs(
|
|
1427
1427
|
"div",
|
|
1428
1428
|
{
|
|
@@ -1430,7 +1430,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1430
1430
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1431
1431
|
children: [
|
|
1432
1432
|
G(`h${r.level + 1}`, { "data-sectnum": n }, o),
|
|
1433
|
-
/* @__PURE__ */ e.jsx("div", { className: "sectionbody", children: /* @__PURE__ */ e.jsx(
|
|
1433
|
+
/* @__PURE__ */ e.jsx("div", { className: "sectionbody", children: /* @__PURE__ */ e.jsx(C, { blocks: r.blocks }) })
|
|
1434
1434
|
]
|
|
1435
1435
|
}
|
|
1436
1436
|
);
|
|
@@ -1441,7 +1441,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1441
1441
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1442
1442
|
children: /* @__PURE__ */ e.jsxs("div", { className: "content", children: [
|
|
1443
1443
|
/* @__PURE__ */ e.jsx(k, { text: r.title }),
|
|
1444
|
-
/* @__PURE__ */ e.jsx(
|
|
1444
|
+
/* @__PURE__ */ e.jsx(C, { blocks: r.blocks })
|
|
1445
1445
|
] })
|
|
1446
1446
|
}
|
|
1447
1447
|
), wt = ({ node: r }) => {
|
|
@@ -1451,13 +1451,13 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1451
1451
|
"grid-" + or(r.attributes, "grid", "all", "table-grid", s)
|
|
1452
1452
|
], n = or(r.attributes, "stripes", null, "table-stripes", s);
|
|
1453
1453
|
n && o.push("stripes-" + n);
|
|
1454
|
-
let
|
|
1455
|
-
|
|
1456
|
-
const c = (
|
|
1454
|
+
let u = er(r.attributes, "autowidth"), m = parseInt(`${r.attributes.tablepcwidth}`), i = null;
|
|
1455
|
+
u && !U(r.attributes, "width") ? o.push("fit-content") : m === 100 ? o.push("stretch") : i = `${m}%`, U(r.attributes, "float") && o.push(`${r.attributes.float}`), r.role && o.push(r.role || "");
|
|
1456
|
+
const c = (h) => N(
|
|
1457
1457
|
"tableblock",
|
|
1458
|
-
`halign-${
|
|
1459
|
-
`valign-${
|
|
1460
|
-
),
|
|
1458
|
+
`halign-${h.attributes.halign}`,
|
|
1459
|
+
`valign-${h.attributes.valign}`
|
|
1460
|
+
), q = r.title, y = r.id, E = y || qt(q || "");
|
|
1461
1461
|
return /* @__PURE__ */ e.jsxs(
|
|
1462
1462
|
"table",
|
|
1463
1463
|
{
|
|
@@ -1466,65 +1466,65 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1466
1466
|
...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
|
|
1467
1467
|
children: [
|
|
1468
1468
|
r.title && /* @__PURE__ */ e.jsxs("caption", { className: "title", children: [
|
|
1469
|
-
!y && /* @__PURE__ */ e.jsx("a", { className: "anchor", id:
|
|
1470
|
-
/* @__PURE__ */ e.jsx("a", { href: `#${
|
|
1469
|
+
!y && /* @__PURE__ */ e.jsx("a", { className: "anchor", id: E }),
|
|
1470
|
+
/* @__PURE__ */ e.jsx("a", { href: `#${E}`, children: /* @__PURE__ */ e.jsx(k, { text: r.title }) })
|
|
1471
1471
|
] }),
|
|
1472
|
-
r.columns.length > 0 && /* @__PURE__ */ e.jsx("colgroup", { children: r.columns.map((
|
|
1473
|
-
const
|
|
1474
|
-
return /* @__PURE__ */ e.jsx("col", { style: { width: `${
|
|
1472
|
+
r.columns.length > 0 && /* @__PURE__ */ e.jsx("colgroup", { children: r.columns.map((h, d) => {
|
|
1473
|
+
const f = h.attributes.colpcwidth;
|
|
1474
|
+
return /* @__PURE__ */ e.jsx("col", { style: { width: `${f}%` } }, d);
|
|
1475
1475
|
}) }),
|
|
1476
|
-
r.headRows.map((
|
|
1476
|
+
r.headRows.map((h, d) => /* @__PURE__ */ e.jsx("thead", { children: /* @__PURE__ */ e.jsx("tr", { children: h.map((f, S) => /* @__PURE__ */ e.jsx(
|
|
1477
1477
|
"th",
|
|
1478
1478
|
{
|
|
1479
|
-
className: c(
|
|
1480
|
-
dangerouslySetInnerHTML: { __html:
|
|
1479
|
+
className: c(f),
|
|
1480
|
+
dangerouslySetInnerHTML: { __html: f.text }
|
|
1481
1481
|
},
|
|
1482
|
-
|
|
1483
|
-
)) }) },
|
|
1484
|
-
/* @__PURE__ */ e.jsx("tbody", { children: r.bodyRows.map((
|
|
1485
|
-
const
|
|
1486
|
-
colSpan:
|
|
1487
|
-
rowSpan:
|
|
1488
|
-
className: c(
|
|
1489
|
-
}, W =
|
|
1482
|
+
S
|
|
1483
|
+
)) }) }, d)),
|
|
1484
|
+
/* @__PURE__ */ e.jsx("tbody", { children: r.bodyRows.map((h, d) => /* @__PURE__ */ e.jsx("tr", { children: h.map((f, S) => {
|
|
1485
|
+
const V = f.columnSpan, T = f.rowSpan, j = f.content, P = {
|
|
1486
|
+
colSpan: V,
|
|
1487
|
+
rowSpan: T,
|
|
1488
|
+
className: c(f)
|
|
1489
|
+
}, W = f.style;
|
|
1490
1490
|
if (W === "asciidoc")
|
|
1491
|
-
return /* @__PURE__ */ G("td", { ...
|
|
1491
|
+
return /* @__PURE__ */ G("td", { ...P, key: S }, /* @__PURE__ */ e.jsx(
|
|
1492
1492
|
"div",
|
|
1493
1493
|
{
|
|
1494
1494
|
className: "content",
|
|
1495
|
-
dangerouslySetInnerHTML: { __html:
|
|
1495
|
+
dangerouslySetInnerHTML: { __html: j || "" }
|
|
1496
1496
|
}
|
|
1497
1497
|
));
|
|
1498
1498
|
if (W === "literal")
|
|
1499
|
-
return /* @__PURE__ */ G("td", { ...
|
|
1499
|
+
return /* @__PURE__ */ G("td", { ...P, key: S }, /* @__PURE__ */ e.jsx("div", { className: "literal", children: /* @__PURE__ */ e.jsx("pre", { dangerouslySetInnerHTML: { __html: j || "" } }) }));
|
|
1500
1500
|
if (W === "header")
|
|
1501
|
-
return /* @__PURE__ */ G("th", { ...
|
|
1501
|
+
return /* @__PURE__ */ G("th", { ...P, key: S }, /* @__PURE__ */ e.jsx(
|
|
1502
1502
|
"p",
|
|
1503
1503
|
{
|
|
1504
1504
|
className: "tableblock",
|
|
1505
|
-
dangerouslySetInnerHTML: { __html:
|
|
1505
|
+
dangerouslySetInnerHTML: { __html: j || "" }
|
|
1506
1506
|
}
|
|
1507
1507
|
));
|
|
1508
1508
|
{
|
|
1509
|
-
let tr =
|
|
1510
|
-
return /* @__PURE__ */ G("td", { ...
|
|
1509
|
+
let tr = j;
|
|
1510
|
+
return /* @__PURE__ */ G("td", { ...P, key: S }, tr.length === 0 ? "" : D(
|
|
1511
1511
|
`<p class="tableblock">${tr.join(
|
|
1512
1512
|
`</p>
|
|
1513
1513
|
<p class="tableblock">`
|
|
1514
1514
|
)}</p>`
|
|
1515
1515
|
));
|
|
1516
1516
|
}
|
|
1517
|
-
}) },
|
|
1518
|
-
r.footRows.map((
|
|
1517
|
+
}) }, d)) }),
|
|
1518
|
+
r.footRows.map((h, d) => /* @__PURE__ */ e.jsx("tfoot", { children: /* @__PURE__ */ e.jsx("tr", { children: h.map((f, S) => /* @__PURE__ */ e.jsx("td", { className: c(f), children: /* @__PURE__ */ e.jsx("p", { className: "tableblock", dangerouslySetInnerHTML: { __html: f.text } }) }, S)) }) }, d))
|
|
1519
1519
|
]
|
|
1520
1520
|
}
|
|
1521
1521
|
);
|
|
1522
1522
|
}, qt = (r) => r.toString().normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/\s+/g, "_").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/-$/g, ""), jt = ({ node: r }) => {
|
|
1523
1523
|
const { document: a } = I(), s = a.attributes || {}, o = a.sections && a.sections.length > 0;
|
|
1524
1524
|
let n = r.id || "toc";
|
|
1525
|
-
const
|
|
1525
|
+
const u = r.title ? r.title : s["toc-title"], m = s["toc-placement"], i = s.toc !== void 0, c = r.attributes.levels ? parseInt(`${r.attributes.levels}`) : void 0;
|
|
1526
1526
|
return m === "macro" && o && i ? /* @__PURE__ */ e.jsxs("div", { id: n, className: N("toc", r.role), children: [
|
|
1527
|
-
/* @__PURE__ */ e.jsx("div", { id: `${n}title`, className: "title", children: D(`${
|
|
1527
|
+
/* @__PURE__ */ e.jsx("div", { id: `${n}title`, className: "title", children: D(`${u}` || "") }),
|
|
1528
1528
|
a.sections && /* @__PURE__ */ e.jsx(ur, { sections: a.sections, opts: { tocLevels: c } })
|
|
1529
1529
|
] }) : null;
|
|
1530
1530
|
}, Et = () => /* @__PURE__ */ e.jsx("hr", {}), Nt = ({ node: r }) => {
|
|
@@ -1551,7 +1551,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1551
1551
|
D(s.text || "")
|
|
1552
1552
|
] }) }, o) : /* @__PURE__ */ e.jsxs("li", { id: s.id, className: r.role, children: [
|
|
1553
1553
|
/* @__PURE__ */ e.jsx("p", { dangerouslySetInnerHTML: { __html: s.text || "" } }),
|
|
1554
|
-
/* @__PURE__ */ e.jsx(
|
|
1554
|
+
/* @__PURE__ */ e.jsx(C, { blocks: s.blocks })
|
|
1555
1555
|
] }, o)) })
|
|
1556
1556
|
]
|
|
1557
1557
|
}
|
|
@@ -1612,7 +1612,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
|
|
|
1612
1612
|
children: s ? /* @__PURE__ */ e.jsx(s, { document: r }) : /* @__PURE__ */ e.jsx(lt, { document: r })
|
|
1613
1613
|
}
|
|
1614
1614
|
);
|
|
1615
|
-
},
|
|
1615
|
+
}, C = ({ blocks: r }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: r.map((a, s) => /* @__PURE__ */ e.jsx(kt, { node: a }, `${s}-${a.type}`)) }), kt = ({ node: r }) => {
|
|
1616
1616
|
const { overrides: a } = te(Ar), s = r.type, o = a && a[s];
|
|
1617
1617
|
if (o)
|
|
1618
1618
|
return /* @__PURE__ */ e.jsx(o, { node: r });
|
|
@@ -1679,7 +1679,7 @@ export {
|
|
|
1679
1679
|
Lt as Asciidoc,
|
|
1680
1680
|
Ge as Audio,
|
|
1681
1681
|
Me as CoList,
|
|
1682
|
-
|
|
1682
|
+
C as Content,
|
|
1683
1683
|
Ar as Context,
|
|
1684
1684
|
it as DList,
|
|
1685
1685
|
lt as Document,
|