@oxide/react-asciidoc 0.2.6--canary.69ae207.0 → 0.2.6--canary.9850bba.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 +1647 -0
- package/dist/react-asciidoc.umd.cjs +32 -0
- package/dist/types/index.d.ts +47 -0
- package/dist/types/templates/Admonition.d.ts +6 -0
- package/dist/types/templates/Audio.d.ts +6 -0
- package/dist/types/templates/CoList.d.ts +6 -0
- package/dist/types/templates/DList.d.ts +6 -0
- package/dist/types/templates/Document.d.ts +6 -0
- package/dist/types/templates/Example.d.ts +6 -0
- package/dist/types/templates/FloatingTitle.d.ts +6 -0
- package/dist/types/templates/Image.d.ts +6 -0
- package/dist/types/templates/Listing.d.ts +6 -0
- package/dist/types/templates/Literal.d.ts +6 -0
- package/dist/types/templates/OList.d.ts +6 -0
- package/dist/types/templates/Open.d.ts +6 -0
- package/dist/types/templates/Outline.d.ts +10 -0
- package/dist/types/templates/PageBreak.d.ts +3 -0
- package/dist/types/templates/Paragraph.d.ts +6 -0
- package/dist/types/templates/Pass.d.ts +6 -0
- package/dist/types/templates/Preamble.d.ts +6 -0
- package/dist/types/templates/Quote.d.ts +6 -0
- package/dist/types/templates/Section.d.ts +6 -0
- package/dist/types/templates/Sidebar.d.ts +6 -0
- package/dist/types/templates/Table.d.ts +6 -0
- package/dist/types/templates/TableOfContents.d.ts +6 -0
- package/dist/types/templates/ThematicBreak.d.ts +3 -0
- package/dist/types/templates/UList.d.ts +6 -0
- package/dist/types/templates/Verse.d.ts +6 -0
- package/dist/types/templates/index.d.ts +26 -0
- package/dist/types/templates/util.d.ts +14 -0
- package/dist/types/utils/getContent.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1647 @@
|
|
|
1
|
+
import { default as nr } from "@asciidoctor/core";
|
|
2
|
+
import A from "html-react-parser";
|
|
3
|
+
import { default as cr } from "html-react-parser";
|
|
4
|
+
import Ke, { Fragment as Te, useMemo as re, createElement as K, createContext as Rt, useContext as Et } from "react";
|
|
5
|
+
const G = {}, U = (e) => {
|
|
6
|
+
const a = e.$$id;
|
|
7
|
+
if (G[a])
|
|
8
|
+
return G[a];
|
|
9
|
+
const s = e.getContent() || "";
|
|
10
|
+
return G[a] = s, s;
|
|
11
|
+
}, D = (e) => {
|
|
12
|
+
const a = e.$$id;
|
|
13
|
+
if (G[a])
|
|
14
|
+
return G[a];
|
|
15
|
+
const s = e.getText() || "";
|
|
16
|
+
return G[a] = s, s;
|
|
17
|
+
};
|
|
18
|
+
var ue = { exports: {} }, ee = {};
|
|
19
|
+
/**
|
|
20
|
+
* @license React
|
|
21
|
+
* react-jsx-runtime.production.min.js
|
|
22
|
+
*
|
|
23
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the MIT license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/
|
|
28
|
+
var ze;
|
|
29
|
+
function St() {
|
|
30
|
+
if (ze)
|
|
31
|
+
return ee;
|
|
32
|
+
ze = 1;
|
|
33
|
+
var e = Ke, a = Symbol.for("react.element"), s = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, h = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
34
|
+
function f(b, g, y) {
|
|
35
|
+
var m, O = {}, S = null, F = null;
|
|
36
|
+
y !== void 0 && (S = "" + y), g.key !== void 0 && (S = "" + g.key), g.ref !== void 0 && (F = g.ref);
|
|
37
|
+
for (m in g)
|
|
38
|
+
c.call(g, m) && !o.hasOwnProperty(m) && (O[m] = g[m]);
|
|
39
|
+
if (b && b.defaultProps)
|
|
40
|
+
for (m in g = b.defaultProps, g)
|
|
41
|
+
O[m] === void 0 && (O[m] = g[m]);
|
|
42
|
+
return { $$typeof: a, type: b, key: S, ref: F, props: O, _owner: h.current };
|
|
43
|
+
}
|
|
44
|
+
return ee.Fragment = s, ee.jsx = f, ee.jsxs = f, ee;
|
|
45
|
+
}
|
|
46
|
+
var te = {};
|
|
47
|
+
/**
|
|
48
|
+
* @license React
|
|
49
|
+
* react-jsx-runtime.development.js
|
|
50
|
+
*
|
|
51
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the MIT license found in the
|
|
54
|
+
* LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/
|
|
56
|
+
var Je;
|
|
57
|
+
function wt() {
|
|
58
|
+
return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
|
|
59
|
+
var e = Ke, a = Symbol.for("react.element"), s = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), b = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), Y = Symbol.iterator, x = "@@iterator";
|
|
60
|
+
function M(t) {
|
|
61
|
+
if (t === null || typeof t != "object")
|
|
62
|
+
return null;
|
|
63
|
+
var i = Y && t[Y] || t[x];
|
|
64
|
+
return typeof i == "function" ? i : null;
|
|
65
|
+
}
|
|
66
|
+
var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
67
|
+
function N(t) {
|
|
68
|
+
{
|
|
69
|
+
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), u = 1; u < i; u++)
|
|
70
|
+
n[u - 1] = arguments[u];
|
|
71
|
+
ge("error", t, n);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function ge(t, i, n) {
|
|
75
|
+
{
|
|
76
|
+
var u = w.ReactDebugCurrentFrame, p = u.getStackAddendum();
|
|
77
|
+
p !== "" && (i += "%s", n = n.concat([p]));
|
|
78
|
+
var _ = n.map(function(v) {
|
|
79
|
+
return String(v);
|
|
80
|
+
});
|
|
81
|
+
_.unshift("Warning: " + i), Function.prototype.apply.call(console[t], console, _);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
var he = !1, q = !1, V = !1, X = !1, ae = !1, Ae;
|
|
85
|
+
Ae = Symbol.for("react.module.reference");
|
|
86
|
+
function Qe(t) {
|
|
87
|
+
return !!(typeof t == "string" || typeof t == "function" || t === c || t === o || ae || t === h || t === y || t === m || X || t === F || he || q || V || typeof t == "object" && t !== null && (t.$$typeof === S || t.$$typeof === O || t.$$typeof === f || t.$$typeof === b || t.$$typeof === g || t.$$typeof === Ae || t.getModuleId !== void 0));
|
|
88
|
+
}
|
|
89
|
+
function Ze(t, i, n) {
|
|
90
|
+
var u = t.displayName;
|
|
91
|
+
if (u)
|
|
92
|
+
return u;
|
|
93
|
+
var p = i.displayName || i.name || "";
|
|
94
|
+
return p !== "" ? n + "(" + p + ")" : n;
|
|
95
|
+
}
|
|
96
|
+
function ke(t) {
|
|
97
|
+
return t.displayName || "Context";
|
|
98
|
+
}
|
|
99
|
+
function B(t) {
|
|
100
|
+
if (t == null)
|
|
101
|
+
return null;
|
|
102
|
+
if (typeof t.tag == "number" && N("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
103
|
+
return t.displayName || t.name || null;
|
|
104
|
+
if (typeof t == "string")
|
|
105
|
+
return t;
|
|
106
|
+
switch (t) {
|
|
107
|
+
case c:
|
|
108
|
+
return "Fragment";
|
|
109
|
+
case s:
|
|
110
|
+
return "Portal";
|
|
111
|
+
case o:
|
|
112
|
+
return "Profiler";
|
|
113
|
+
case h:
|
|
114
|
+
return "StrictMode";
|
|
115
|
+
case y:
|
|
116
|
+
return "Suspense";
|
|
117
|
+
case m:
|
|
118
|
+
return "SuspenseList";
|
|
119
|
+
}
|
|
120
|
+
if (typeof t == "object")
|
|
121
|
+
switch (t.$$typeof) {
|
|
122
|
+
case b:
|
|
123
|
+
var i = t;
|
|
124
|
+
return ke(i) + ".Consumer";
|
|
125
|
+
case f:
|
|
126
|
+
var n = t;
|
|
127
|
+
return ke(n._context) + ".Provider";
|
|
128
|
+
case g:
|
|
129
|
+
return Ze(t, t.render, "ForwardRef");
|
|
130
|
+
case O:
|
|
131
|
+
var u = t.displayName || null;
|
|
132
|
+
return u !== null ? u : B(t.type) || "Memo";
|
|
133
|
+
case S: {
|
|
134
|
+
var p = t, _ = p._payload, v = p._init;
|
|
135
|
+
try {
|
|
136
|
+
return B(v(_));
|
|
137
|
+
} catch {
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return null;
|
|
143
|
+
}
|
|
144
|
+
var H = Object.assign, Q = 0, Re, Ee, Se, we, Ce, Oe, $e;
|
|
145
|
+
function Ie() {
|
|
146
|
+
}
|
|
147
|
+
Ie.__reactDisabledLog = !0;
|
|
148
|
+
function et() {
|
|
149
|
+
{
|
|
150
|
+
if (Q === 0) {
|
|
151
|
+
Re = console.log, Ee = console.info, Se = console.warn, we = console.error, Ce = console.group, Oe = console.groupCollapsed, $e = console.groupEnd;
|
|
152
|
+
var t = {
|
|
153
|
+
configurable: !0,
|
|
154
|
+
enumerable: !0,
|
|
155
|
+
value: Ie,
|
|
156
|
+
writable: !0
|
|
157
|
+
};
|
|
158
|
+
Object.defineProperties(console, {
|
|
159
|
+
info: t,
|
|
160
|
+
log: t,
|
|
161
|
+
warn: t,
|
|
162
|
+
error: t,
|
|
163
|
+
group: t,
|
|
164
|
+
groupCollapsed: t,
|
|
165
|
+
groupEnd: t
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
Q++;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
function tt() {
|
|
172
|
+
{
|
|
173
|
+
if (Q--, Q === 0) {
|
|
174
|
+
var t = {
|
|
175
|
+
configurable: !0,
|
|
176
|
+
enumerable: !0,
|
|
177
|
+
writable: !0
|
|
178
|
+
};
|
|
179
|
+
Object.defineProperties(console, {
|
|
180
|
+
log: H({}, t, {
|
|
181
|
+
value: Re
|
|
182
|
+
}),
|
|
183
|
+
info: H({}, t, {
|
|
184
|
+
value: Ee
|
|
185
|
+
}),
|
|
186
|
+
warn: H({}, t, {
|
|
187
|
+
value: Se
|
|
188
|
+
}),
|
|
189
|
+
error: H({}, t, {
|
|
190
|
+
value: we
|
|
191
|
+
}),
|
|
192
|
+
group: H({}, t, {
|
|
193
|
+
value: Ce
|
|
194
|
+
}),
|
|
195
|
+
groupCollapsed: H({}, t, {
|
|
196
|
+
value: Oe
|
|
197
|
+
}),
|
|
198
|
+
groupEnd: H({}, t, {
|
|
199
|
+
value: $e
|
|
200
|
+
})
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
Q < 0 && N("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
var de = w.ReactCurrentDispatcher, me;
|
|
207
|
+
function ie(t, i, n) {
|
|
208
|
+
{
|
|
209
|
+
if (me === void 0)
|
|
210
|
+
try {
|
|
211
|
+
throw Error();
|
|
212
|
+
} catch (p) {
|
|
213
|
+
var u = p.stack.trim().match(/\n( *(at )?)/);
|
|
214
|
+
me = u && u[1] || "";
|
|
215
|
+
}
|
|
216
|
+
return `
|
|
217
|
+
` + me + t;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
var ve = !1, se;
|
|
221
|
+
{
|
|
222
|
+
var rt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
223
|
+
se = new rt();
|
|
224
|
+
}
|
|
225
|
+
function xe(t, i) {
|
|
226
|
+
if (!t || ve)
|
|
227
|
+
return "";
|
|
228
|
+
{
|
|
229
|
+
var n = se.get(t);
|
|
230
|
+
if (n !== void 0)
|
|
231
|
+
return n;
|
|
232
|
+
}
|
|
233
|
+
var u;
|
|
234
|
+
ve = !0;
|
|
235
|
+
var p = Error.prepareStackTrace;
|
|
236
|
+
Error.prepareStackTrace = void 0;
|
|
237
|
+
var _;
|
|
238
|
+
_ = de.current, de.current = null, et();
|
|
239
|
+
try {
|
|
240
|
+
if (i) {
|
|
241
|
+
var v = function() {
|
|
242
|
+
throw Error();
|
|
243
|
+
};
|
|
244
|
+
if (Object.defineProperty(v.prototype, "props", {
|
|
245
|
+
set: function() {
|
|
246
|
+
throw Error();
|
|
247
|
+
}
|
|
248
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
249
|
+
try {
|
|
250
|
+
Reflect.construct(v, []);
|
|
251
|
+
} catch (W) {
|
|
252
|
+
u = W;
|
|
253
|
+
}
|
|
254
|
+
Reflect.construct(t, [], v);
|
|
255
|
+
} else {
|
|
256
|
+
try {
|
|
257
|
+
v.call();
|
|
258
|
+
} catch (W) {
|
|
259
|
+
u = W;
|
|
260
|
+
}
|
|
261
|
+
t.call(v.prototype);
|
|
262
|
+
}
|
|
263
|
+
} else {
|
|
264
|
+
try {
|
|
265
|
+
throw Error();
|
|
266
|
+
} catch (W) {
|
|
267
|
+
u = W;
|
|
268
|
+
}
|
|
269
|
+
t();
|
|
270
|
+
}
|
|
271
|
+
} catch (W) {
|
|
272
|
+
if (W && u && typeof W.stack == "string") {
|
|
273
|
+
for (var d = W.stack.split(`
|
|
274
|
+
`), $ = u.stack.split(`
|
|
275
|
+
`), k = d.length - 1, C = $.length - 1; k >= 1 && C >= 0 && d[k] !== $[C]; )
|
|
276
|
+
C--;
|
|
277
|
+
for (; k >= 1 && C >= 0; k--, C--)
|
|
278
|
+
if (d[k] !== $[C]) {
|
|
279
|
+
if (k !== 1 || C !== 1)
|
|
280
|
+
do
|
|
281
|
+
if (k--, C--, C < 0 || d[k] !== $[C]) {
|
|
282
|
+
var P = `
|
|
283
|
+
` + d[k].replace(" at new ", " at ");
|
|
284
|
+
return t.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", t.displayName)), typeof t == "function" && se.set(t, P), P;
|
|
285
|
+
}
|
|
286
|
+
while (k >= 1 && C >= 0);
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
} finally {
|
|
291
|
+
ve = !1, de.current = _, tt(), Error.prepareStackTrace = p;
|
|
292
|
+
}
|
|
293
|
+
var J = t ? t.displayName || t.name : "", Ve = J ? ie(J) : "";
|
|
294
|
+
return typeof t == "function" && se.set(t, Ve), Ve;
|
|
295
|
+
}
|
|
296
|
+
function at(t, i, n) {
|
|
297
|
+
return xe(t, !1);
|
|
298
|
+
}
|
|
299
|
+
function it(t) {
|
|
300
|
+
var i = t.prototype;
|
|
301
|
+
return !!(i && i.isReactComponent);
|
|
302
|
+
}
|
|
303
|
+
function ne(t, i, n) {
|
|
304
|
+
if (t == null)
|
|
305
|
+
return "";
|
|
306
|
+
if (typeof t == "function")
|
|
307
|
+
return xe(t, it(t));
|
|
308
|
+
if (typeof t == "string")
|
|
309
|
+
return ie(t);
|
|
310
|
+
switch (t) {
|
|
311
|
+
case y:
|
|
312
|
+
return ie("Suspense");
|
|
313
|
+
case m:
|
|
314
|
+
return ie("SuspenseList");
|
|
315
|
+
}
|
|
316
|
+
if (typeof t == "object")
|
|
317
|
+
switch (t.$$typeof) {
|
|
318
|
+
case g:
|
|
319
|
+
return at(t.render);
|
|
320
|
+
case O:
|
|
321
|
+
return ne(t.type, i, n);
|
|
322
|
+
case S: {
|
|
323
|
+
var u = t, p = u._payload, _ = u._init;
|
|
324
|
+
try {
|
|
325
|
+
return ne(_(p), i, n);
|
|
326
|
+
} catch {
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
return "";
|
|
331
|
+
}
|
|
332
|
+
var le = Object.prototype.hasOwnProperty, Pe = {}, De = w.ReactDebugCurrentFrame;
|
|
333
|
+
function ce(t) {
|
|
334
|
+
if (t) {
|
|
335
|
+
var i = t._owner, n = ne(t.type, t._source, i ? i.type : null);
|
|
336
|
+
De.setExtraStackFrame(n);
|
|
337
|
+
} else
|
|
338
|
+
De.setExtraStackFrame(null);
|
|
339
|
+
}
|
|
340
|
+
function st(t, i, n, u, p) {
|
|
341
|
+
{
|
|
342
|
+
var _ = Function.call.bind(le);
|
|
343
|
+
for (var v in t)
|
|
344
|
+
if (_(t, v)) {
|
|
345
|
+
var d = void 0;
|
|
346
|
+
try {
|
|
347
|
+
if (typeof t[v] != "function") {
|
|
348
|
+
var $ = Error((u || "React class") + ": " + n + " 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`.");
|
|
349
|
+
throw $.name = "Invariant Violation", $;
|
|
350
|
+
}
|
|
351
|
+
d = t[v](i, v, u, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
352
|
+
} catch (k) {
|
|
353
|
+
d = k;
|
|
354
|
+
}
|
|
355
|
+
d && !(d instanceof Error) && (ce(p), N("%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).", u || "React class", n, v, typeof d), ce(null)), d instanceof Error && !(d.message in Pe) && (Pe[d.message] = !0, ce(p), N("Failed %s type: %s", n, d.message), ce(null));
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
var nt = Array.isArray;
|
|
360
|
+
function pe(t) {
|
|
361
|
+
return nt(t);
|
|
362
|
+
}
|
|
363
|
+
function lt(t) {
|
|
364
|
+
{
|
|
365
|
+
var i = typeof Symbol == "function" && Symbol.toStringTag, n = i && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
366
|
+
return n;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
function ct(t) {
|
|
370
|
+
try {
|
|
371
|
+
return je(t), !1;
|
|
372
|
+
} catch {
|
|
373
|
+
return !0;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
function je(t) {
|
|
377
|
+
return "" + t;
|
|
378
|
+
}
|
|
379
|
+
function Le(t) {
|
|
380
|
+
if (ct(t))
|
|
381
|
+
return N("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", lt(t)), je(t);
|
|
382
|
+
}
|
|
383
|
+
var Z = w.ReactCurrentOwner, ot = {
|
|
384
|
+
key: !0,
|
|
385
|
+
ref: !0,
|
|
386
|
+
__self: !0,
|
|
387
|
+
__source: !0
|
|
388
|
+
}, Fe, Me, be;
|
|
389
|
+
be = {};
|
|
390
|
+
function ut(t) {
|
|
391
|
+
if (le.call(t, "ref")) {
|
|
392
|
+
var i = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
393
|
+
if (i && i.isReactWarning)
|
|
394
|
+
return !1;
|
|
395
|
+
}
|
|
396
|
+
return t.ref !== void 0;
|
|
397
|
+
}
|
|
398
|
+
function ft(t) {
|
|
399
|
+
if (le.call(t, "key")) {
|
|
400
|
+
var i = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
401
|
+
if (i && i.isReactWarning)
|
|
402
|
+
return !1;
|
|
403
|
+
}
|
|
404
|
+
return t.key !== void 0;
|
|
405
|
+
}
|
|
406
|
+
function gt(t, i) {
|
|
407
|
+
if (typeof t.ref == "string" && Z.current && i && Z.current.stateNode !== i) {
|
|
408
|
+
var n = B(Z.current.type);
|
|
409
|
+
be[n] || (N('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', B(Z.current.type), t.ref), be[n] = !0);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
function ht(t, i) {
|
|
413
|
+
{
|
|
414
|
+
var n = function() {
|
|
415
|
+
Fe || (Fe = !0, N("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
|
|
416
|
+
};
|
|
417
|
+
n.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
418
|
+
get: n,
|
|
419
|
+
configurable: !0
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
function dt(t, i) {
|
|
424
|
+
{
|
|
425
|
+
var n = function() {
|
|
426
|
+
Me || (Me = !0, N("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
|
|
427
|
+
};
|
|
428
|
+
n.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
429
|
+
get: n,
|
|
430
|
+
configurable: !0
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
var mt = function(t, i, n, u, p, _, v) {
|
|
435
|
+
var d = {
|
|
436
|
+
$$typeof: a,
|
|
437
|
+
type: t,
|
|
438
|
+
key: i,
|
|
439
|
+
ref: n,
|
|
440
|
+
props: v,
|
|
441
|
+
_owner: _
|
|
442
|
+
};
|
|
443
|
+
return d._store = {}, Object.defineProperty(d._store, "validated", {
|
|
444
|
+
configurable: !1,
|
|
445
|
+
enumerable: !1,
|
|
446
|
+
writable: !0,
|
|
447
|
+
value: !1
|
|
448
|
+
}), Object.defineProperty(d, "_self", {
|
|
449
|
+
configurable: !1,
|
|
450
|
+
enumerable: !1,
|
|
451
|
+
writable: !1,
|
|
452
|
+
value: u
|
|
453
|
+
}), Object.defineProperty(d, "_source", {
|
|
454
|
+
configurable: !1,
|
|
455
|
+
enumerable: !1,
|
|
456
|
+
writable: !1,
|
|
457
|
+
value: p
|
|
458
|
+
}), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
|
|
459
|
+
};
|
|
460
|
+
function vt(t, i, n, u, p) {
|
|
461
|
+
{
|
|
462
|
+
var _, v = {}, d = null, $ = null;
|
|
463
|
+
n !== void 0 && (Le(n), d = "" + n), ft(i) && (Le(i.key), d = "" + i.key), ut(i) && ($ = i.ref, gt(i, p));
|
|
464
|
+
for (_ in i)
|
|
465
|
+
le.call(i, _) && !ot.hasOwnProperty(_) && (v[_] = i[_]);
|
|
466
|
+
if (t && t.defaultProps) {
|
|
467
|
+
var k = t.defaultProps;
|
|
468
|
+
for (_ in k)
|
|
469
|
+
v[_] === void 0 && (v[_] = k[_]);
|
|
470
|
+
}
|
|
471
|
+
if (d || $) {
|
|
472
|
+
var C = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
473
|
+
d && ht(v, C), $ && dt(v, C);
|
|
474
|
+
}
|
|
475
|
+
return mt(t, d, $, p, u, Z.current, v);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
var ye = w.ReactCurrentOwner, Be = w.ReactDebugCurrentFrame;
|
|
479
|
+
function z(t) {
|
|
480
|
+
if (t) {
|
|
481
|
+
var i = t._owner, n = ne(t.type, t._source, i ? i.type : null);
|
|
482
|
+
Be.setExtraStackFrame(n);
|
|
483
|
+
} else
|
|
484
|
+
Be.setExtraStackFrame(null);
|
|
485
|
+
}
|
|
486
|
+
var _e;
|
|
487
|
+
_e = !1;
|
|
488
|
+
function Ne(t) {
|
|
489
|
+
return typeof t == "object" && t !== null && t.$$typeof === a;
|
|
490
|
+
}
|
|
491
|
+
function We() {
|
|
492
|
+
{
|
|
493
|
+
if (ye.current) {
|
|
494
|
+
var t = B(ye.current.type);
|
|
495
|
+
if (t)
|
|
496
|
+
return `
|
|
497
|
+
|
|
498
|
+
Check the render method of \`` + t + "`.";
|
|
499
|
+
}
|
|
500
|
+
return "";
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
function pt(t) {
|
|
504
|
+
{
|
|
505
|
+
if (t !== void 0) {
|
|
506
|
+
var i = t.fileName.replace(/^.*[\\\/]/, ""), n = t.lineNumber;
|
|
507
|
+
return `
|
|
508
|
+
|
|
509
|
+
Check your code at ` + i + ":" + n + ".";
|
|
510
|
+
}
|
|
511
|
+
return "";
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
var Ye = {};
|
|
515
|
+
function bt(t) {
|
|
516
|
+
{
|
|
517
|
+
var i = We();
|
|
518
|
+
if (!i) {
|
|
519
|
+
var n = typeof t == "string" ? t : t.displayName || t.name;
|
|
520
|
+
n && (i = `
|
|
521
|
+
|
|
522
|
+
Check the top-level render call using <` + n + ">.");
|
|
523
|
+
}
|
|
524
|
+
return i;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
function He(t, i) {
|
|
528
|
+
{
|
|
529
|
+
if (!t._store || t._store.validated || t.key != null)
|
|
530
|
+
return;
|
|
531
|
+
t._store.validated = !0;
|
|
532
|
+
var n = bt(i);
|
|
533
|
+
if (Ye[n])
|
|
534
|
+
return;
|
|
535
|
+
Ye[n] = !0;
|
|
536
|
+
var u = "";
|
|
537
|
+
t && t._owner && t._owner !== ye.current && (u = " It was passed a child from " + B(t._owner.type) + "."), z(t), N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, u), z(null);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
function Ue(t, i) {
|
|
541
|
+
{
|
|
542
|
+
if (typeof t != "object")
|
|
543
|
+
return;
|
|
544
|
+
if (pe(t))
|
|
545
|
+
for (var n = 0; n < t.length; n++) {
|
|
546
|
+
var u = t[n];
|
|
547
|
+
Ne(u) && He(u, i);
|
|
548
|
+
}
|
|
549
|
+
else if (Ne(t))
|
|
550
|
+
t._store && (t._store.validated = !0);
|
|
551
|
+
else if (t) {
|
|
552
|
+
var p = M(t);
|
|
553
|
+
if (typeof p == "function" && p !== t.entries)
|
|
554
|
+
for (var _ = p.call(t), v; !(v = _.next()).done; )
|
|
555
|
+
Ne(v.value) && He(v.value, i);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
function yt(t) {
|
|
560
|
+
{
|
|
561
|
+
var i = t.type;
|
|
562
|
+
if (i == null || typeof i == "string")
|
|
563
|
+
return;
|
|
564
|
+
var n;
|
|
565
|
+
if (typeof i == "function")
|
|
566
|
+
n = i.propTypes;
|
|
567
|
+
else if (typeof i == "object" && (i.$$typeof === g || i.$$typeof === O))
|
|
568
|
+
n = i.propTypes;
|
|
569
|
+
else
|
|
570
|
+
return;
|
|
571
|
+
if (n) {
|
|
572
|
+
var u = B(i);
|
|
573
|
+
st(n, t.props, "prop", u, t);
|
|
574
|
+
} else if (i.PropTypes !== void 0 && !_e) {
|
|
575
|
+
_e = !0;
|
|
576
|
+
var p = B(i);
|
|
577
|
+
N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
578
|
+
}
|
|
579
|
+
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
function _t(t) {
|
|
583
|
+
{
|
|
584
|
+
for (var i = Object.keys(t.props), n = 0; n < i.length; n++) {
|
|
585
|
+
var u = i[n];
|
|
586
|
+
if (u !== "children" && u !== "key") {
|
|
587
|
+
z(t), N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), z(null);
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
t.ref !== null && (z(t), N("Invalid attribute `ref` supplied to `React.Fragment`."), z(null));
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
function qe(t, i, n, u, p, _) {
|
|
595
|
+
{
|
|
596
|
+
var v = Qe(t);
|
|
597
|
+
if (!v) {
|
|
598
|
+
var d = "";
|
|
599
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (d += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
600
|
+
var $ = pt(p);
|
|
601
|
+
$ ? d += $ : d += We();
|
|
602
|
+
var k;
|
|
603
|
+
t === null ? k = "null" : pe(t) ? k = "array" : t !== void 0 && t.$$typeof === a ? (k = "<" + (B(t.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : k = typeof t, N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, d);
|
|
604
|
+
}
|
|
605
|
+
var C = vt(t, i, n, p, _);
|
|
606
|
+
if (C == null)
|
|
607
|
+
return C;
|
|
608
|
+
if (v) {
|
|
609
|
+
var P = i.children;
|
|
610
|
+
if (P !== void 0)
|
|
611
|
+
if (u)
|
|
612
|
+
if (pe(P)) {
|
|
613
|
+
for (var J = 0; J < P.length; J++)
|
|
614
|
+
Ue(P[J], t);
|
|
615
|
+
Object.freeze && Object.freeze(P);
|
|
616
|
+
} else
|
|
617
|
+
N("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
618
|
+
else
|
|
619
|
+
Ue(P, t);
|
|
620
|
+
}
|
|
621
|
+
return t === c ? _t(C) : yt(C), C;
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
function Nt(t, i, n) {
|
|
625
|
+
return qe(t, i, n, !0);
|
|
626
|
+
}
|
|
627
|
+
function Tt(t, i, n) {
|
|
628
|
+
return qe(t, i, n, !1);
|
|
629
|
+
}
|
|
630
|
+
var At = Tt, kt = Nt;
|
|
631
|
+
te.Fragment = c, te.jsx = At, te.jsxs = kt;
|
|
632
|
+
}()), te;
|
|
633
|
+
}
|
|
634
|
+
(function(e) {
|
|
635
|
+
process.env.NODE_ENV === "production" ? e.exports = St() : e.exports = wt();
|
|
636
|
+
})(ue);
|
|
637
|
+
const L = ue.exports.Fragment, r = ue.exports.jsx, l = ue.exports.jsxs, j = ({
|
|
638
|
+
node: e
|
|
639
|
+
}) => e.hasTitle() ? /* @__PURE__ */ r("div", {
|
|
640
|
+
className: "title",
|
|
641
|
+
children: A(e.getTitle() || "")
|
|
642
|
+
}) : null, oe = ({
|
|
643
|
+
node: e
|
|
644
|
+
}) => e.hasTitle() ? /* @__PURE__ */ r("div", {
|
|
645
|
+
className: "title",
|
|
646
|
+
children: A(e.getCaptionedTitle() || "")
|
|
647
|
+
}) : null, E = (e) => typeof e.getRole() == "string" ? e.getRole() : void 0, T = (e) => e.getLineNumber() ? {
|
|
648
|
+
"data-lineno": e.getLineNumber()
|
|
649
|
+
} : {}, Ct = ({
|
|
650
|
+
node: e
|
|
651
|
+
}) => {
|
|
652
|
+
const a = e.getAttributes(), s = e.getDocument(), c = U(e), h = () => s.getAttribute("icons") === "font" && !a.icon ? /* @__PURE__ */ r("i", {
|
|
653
|
+
className: `fa icon-${a.name}`,
|
|
654
|
+
title: a.textlabel
|
|
655
|
+
}) : /* @__PURE__ */ r("img", {
|
|
656
|
+
src: e.getIconUri(a.name),
|
|
657
|
+
alt: a.textlabel
|
|
658
|
+
});
|
|
659
|
+
return e.content_model, /* @__PURE__ */ r("div", {
|
|
660
|
+
className: `admonitionblock ${a.name}`,
|
|
661
|
+
...T(e),
|
|
662
|
+
children: /* @__PURE__ */ r("table", {
|
|
663
|
+
children: /* @__PURE__ */ r("tbody", {
|
|
664
|
+
children: /* @__PURE__ */ l("tr", {
|
|
665
|
+
children: [/* @__PURE__ */ r("td", {
|
|
666
|
+
className: "icon",
|
|
667
|
+
children: s.hasAttribute("icons") ? h() : /* @__PURE__ */ r("div", {
|
|
668
|
+
className: "title",
|
|
669
|
+
children: e.getAttribute("textlabel")
|
|
670
|
+
})
|
|
671
|
+
}), /* @__PURE__ */ l("td", {
|
|
672
|
+
className: "content",
|
|
673
|
+
children: [/* @__PURE__ */ r(j, {
|
|
674
|
+
node: e
|
|
675
|
+
}), A(c)]
|
|
676
|
+
})]
|
|
677
|
+
})
|
|
678
|
+
})
|
|
679
|
+
})
|
|
680
|
+
});
|
|
681
|
+
}, Ot = ({
|
|
682
|
+
node: e
|
|
683
|
+
}) => {
|
|
684
|
+
const a = e.getAttribute("start"), s = e.getAttribute("start"), c = (a || s) && `#t=${a || ""}` + s ? `,${s}` : "";
|
|
685
|
+
return /* @__PURE__ */ l("div", {
|
|
686
|
+
className: "audioblock",
|
|
687
|
+
...T(e),
|
|
688
|
+
children: [/* @__PURE__ */ r(j, {
|
|
689
|
+
node: e
|
|
690
|
+
}), /* @__PURE__ */ r("div", {
|
|
691
|
+
className: "content",
|
|
692
|
+
children: /* @__PURE__ */ r("audio", {
|
|
693
|
+
src: `${e.getMediaUri(e.getAttribute("target"))}${c}`,
|
|
694
|
+
autoPlay: e.isOption("autoplay"),
|
|
695
|
+
controls: !e.isOption("nocontrols"),
|
|
696
|
+
loop: e.isOption("loop"),
|
|
697
|
+
children: "Your browser does not support the audio tag."
|
|
698
|
+
})
|
|
699
|
+
})]
|
|
700
|
+
});
|
|
701
|
+
}, $t = ({
|
|
702
|
+
node: e
|
|
703
|
+
}) => /* @__PURE__ */ l("div", {
|
|
704
|
+
className: "colist",
|
|
705
|
+
...T(e),
|
|
706
|
+
children: [/* @__PURE__ */ r(j, {
|
|
707
|
+
node: e
|
|
708
|
+
}), /* @__PURE__ */ r("table", {
|
|
709
|
+
children: /* @__PURE__ */ r("tbody", {
|
|
710
|
+
children: e.getItems().map((a, s) => /* @__PURE__ */ l("tr", {
|
|
711
|
+
children: [/* @__PURE__ */ l("td", {
|
|
712
|
+
children: [/* @__PURE__ */ r("i", {
|
|
713
|
+
className: "conum",
|
|
714
|
+
"data-value": s + 1
|
|
715
|
+
}), /* @__PURE__ */ r("b", {
|
|
716
|
+
children: s + 1
|
|
717
|
+
})]
|
|
718
|
+
}), /* @__PURE__ */ l("td", {
|
|
719
|
+
children: [A(D(a)), /* @__PURE__ */ r(I, {
|
|
720
|
+
blocks: a.getBlocks()
|
|
721
|
+
})]
|
|
722
|
+
})]
|
|
723
|
+
}, s))
|
|
724
|
+
})
|
|
725
|
+
})]
|
|
726
|
+
});
|
|
727
|
+
var Ge = { exports: {} };
|
|
728
|
+
/*!
|
|
729
|
+
Copyright (c) 2018 Jed Watson.
|
|
730
|
+
Licensed under the MIT License (MIT), see
|
|
731
|
+
http://jedwatson.github.io/classnames
|
|
732
|
+
*/
|
|
733
|
+
(function(e) {
|
|
734
|
+
(function() {
|
|
735
|
+
var a = {}.hasOwnProperty;
|
|
736
|
+
function s() {
|
|
737
|
+
for (var c = [], h = 0; h < arguments.length; h++) {
|
|
738
|
+
var o = arguments[h];
|
|
739
|
+
if (!!o) {
|
|
740
|
+
var f = typeof o;
|
|
741
|
+
if (f === "string" || f === "number")
|
|
742
|
+
c.push(o);
|
|
743
|
+
else if (Array.isArray(o)) {
|
|
744
|
+
if (o.length) {
|
|
745
|
+
var b = s.apply(null, o);
|
|
746
|
+
b && c.push(b);
|
|
747
|
+
}
|
|
748
|
+
} else if (f === "object") {
|
|
749
|
+
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]")) {
|
|
750
|
+
c.push(o.toString());
|
|
751
|
+
continue;
|
|
752
|
+
}
|
|
753
|
+
for (var g in o)
|
|
754
|
+
a.call(o, g) && o[g] && c.push(g);
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
return c.join(" ");
|
|
759
|
+
}
|
|
760
|
+
e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
|
|
761
|
+
})();
|
|
762
|
+
})(Ge);
|
|
763
|
+
const R = Ge.exports, It = ({
|
|
764
|
+
node: e
|
|
765
|
+
}) => {
|
|
766
|
+
const a = e.getStyle(), s = (o) => {
|
|
767
|
+
const f = o, b = f[0];
|
|
768
|
+
let g = f[1];
|
|
769
|
+
return g.getNodeName || (g = null), {
|
|
770
|
+
terms: b,
|
|
771
|
+
dd: g
|
|
772
|
+
};
|
|
773
|
+
}, c = (o) => {
|
|
774
|
+
if (o)
|
|
775
|
+
return /* @__PURE__ */ l("dd", {
|
|
776
|
+
children: [o.hasText() && /* @__PURE__ */ r("p", {
|
|
777
|
+
children: A(D(o))
|
|
778
|
+
}), o.hasBlocks() && /* @__PURE__ */ r(I, {
|
|
779
|
+
blocks: o.getBlocks()
|
|
780
|
+
})]
|
|
781
|
+
});
|
|
782
|
+
}, h = e.hasTitle() && /* @__PURE__ */ r("div", {
|
|
783
|
+
className: "title",
|
|
784
|
+
children: e.getCaptionedTitle()
|
|
785
|
+
});
|
|
786
|
+
if (a === "qanda")
|
|
787
|
+
return /* @__PURE__ */ l("div", {
|
|
788
|
+
className: R("qlist qanda", E(e)),
|
|
789
|
+
...T(e),
|
|
790
|
+
children: [h, /* @__PURE__ */ r("ol", {
|
|
791
|
+
children: e.getItems().map((o, f) => {
|
|
792
|
+
const {
|
|
793
|
+
terms: b,
|
|
794
|
+
dd: g
|
|
795
|
+
} = s(o);
|
|
796
|
+
return /* @__PURE__ */ l("li", {
|
|
797
|
+
children: [b.map((y, m) => /* @__PURE__ */ r("p", {
|
|
798
|
+
children: /* @__PURE__ */ r("em", {
|
|
799
|
+
children: A(D(y))
|
|
800
|
+
})
|
|
801
|
+
}, m)), c(g)]
|
|
802
|
+
}, f);
|
|
803
|
+
})
|
|
804
|
+
})]
|
|
805
|
+
});
|
|
806
|
+
if (a === "horizontal") {
|
|
807
|
+
const o = e.getAttribute("labelwidth"), f = e.getAttribute("itemwidth");
|
|
808
|
+
return /* @__PURE__ */ l("div", {
|
|
809
|
+
className: R("hdlist", E(e)),
|
|
810
|
+
children: [h, /* @__PURE__ */ l("table", {
|
|
811
|
+
children: [(o || f) && /* @__PURE__ */ l("colgroup", {
|
|
812
|
+
children: [/* @__PURE__ */ r("col", {
|
|
813
|
+
style: {
|
|
814
|
+
width: o ? `${o.replace("%", "")}%` : ""
|
|
815
|
+
}
|
|
816
|
+
}), /* @__PURE__ */ r("col", {
|
|
817
|
+
style: {
|
|
818
|
+
width: f ? `${f.replace("%", "")}%` : ""
|
|
819
|
+
}
|
|
820
|
+
})]
|
|
821
|
+
}), /* @__PURE__ */ r("tbody", {
|
|
822
|
+
children: e.getItems().map((b, g) => {
|
|
823
|
+
const {
|
|
824
|
+
terms: y,
|
|
825
|
+
dd: m
|
|
826
|
+
} = s(b);
|
|
827
|
+
return /* @__PURE__ */ l("tr", {
|
|
828
|
+
children: [/* @__PURE__ */ r("td", {
|
|
829
|
+
className: R("hdlist1", e.isOption("strong") ? "strong" : ""),
|
|
830
|
+
children: y.map((O, S) => /* @__PURE__ */ l(Te, {
|
|
831
|
+
children: [S !== 0 && /* @__PURE__ */ r("br", {}), A(D(O))]
|
|
832
|
+
}, S))
|
|
833
|
+
}), m && /* @__PURE__ */ l("td", {
|
|
834
|
+
className: "hdlist2",
|
|
835
|
+
children: [m.hasText() && /* @__PURE__ */ r("p", {
|
|
836
|
+
children: A(D(m))
|
|
837
|
+
}), m.hasBlocks() && /* @__PURE__ */ r(I, {
|
|
838
|
+
blocks: m.getBlocks()
|
|
839
|
+
})]
|
|
840
|
+
})]
|
|
841
|
+
}, g);
|
|
842
|
+
})
|
|
843
|
+
})]
|
|
844
|
+
})]
|
|
845
|
+
});
|
|
846
|
+
} else
|
|
847
|
+
return /* @__PURE__ */ l("div", {
|
|
848
|
+
className: R("dlist", e.getStyle(), E(e)),
|
|
849
|
+
children: [h, /* @__PURE__ */ r("dl", {
|
|
850
|
+
children: e.getItems().map((o, f) => {
|
|
851
|
+
const {
|
|
852
|
+
terms: b,
|
|
853
|
+
dd: g
|
|
854
|
+
} = s(o);
|
|
855
|
+
return /* @__PURE__ */ l(Te, {
|
|
856
|
+
children: [b.map((y, m) => /* @__PURE__ */ r("dt", {
|
|
857
|
+
className: "hdlist1",
|
|
858
|
+
children: A(D(y))
|
|
859
|
+
}, m)), c(g)]
|
|
860
|
+
}, f);
|
|
861
|
+
})
|
|
862
|
+
})]
|
|
863
|
+
});
|
|
864
|
+
}, fe = ({
|
|
865
|
+
node: e,
|
|
866
|
+
opts: a
|
|
867
|
+
}) => {
|
|
868
|
+
if (!e.hasSections())
|
|
869
|
+
return null;
|
|
870
|
+
const s = e.getSections(), c = e.getDocument(), h = re(() => c.getAttributes(), [e]), o = re(() => c.getAttribute("sectnumlevels"), [e]), f = re(() => c.getAttribute("toclevels"), [e]), b = (a == null ? void 0 : a.sectNumLevels) || (o ? parseInt(o) : 3), g = (a == null ? void 0 : a.tocLevels) || (f ? parseInt(f) : 2);
|
|
871
|
+
return /* @__PURE__ */ r("ul", {
|
|
872
|
+
className: `sectlevel${s[0].getLevel()}`,
|
|
873
|
+
children: s.map((y) => {
|
|
874
|
+
let m = y.$sectnum();
|
|
875
|
+
m = m === "." || m === ".." ? "" : m;
|
|
876
|
+
const O = y.getLevel();
|
|
877
|
+
let S = "";
|
|
878
|
+
if (y.getCaption())
|
|
879
|
+
S = y.getCaptionedTitle();
|
|
880
|
+
else if (O <= b)
|
|
881
|
+
if (O < 2 && c.getDoctype() == "book") {
|
|
882
|
+
const F = y.getSectionName();
|
|
883
|
+
F === "chapter" ? S = `${h["chapter-signifier"] || ""} ${m} ${y.getTitle()}` : F === "part" ? S = `${h["part-signifier"] || ""} ${m} ${y.getTitle()}` : S = `${m} ${y.getTitle()}`;
|
|
884
|
+
} else
|
|
885
|
+
S = `${m} ${y.getTitle()}`;
|
|
886
|
+
else
|
|
887
|
+
S = y.getTitle() || "";
|
|
888
|
+
return /* @__PURE__ */ l("li", {
|
|
889
|
+
children: [/* @__PURE__ */ r("a", {
|
|
890
|
+
href: `#${y.getId()}`,
|
|
891
|
+
children: A(S)
|
|
892
|
+
}), O < g && /* @__PURE__ */ r(fe, {
|
|
893
|
+
node: y,
|
|
894
|
+
opts: {
|
|
895
|
+
tocLevels: g,
|
|
896
|
+
sectNumLevels: b
|
|
897
|
+
}
|
|
898
|
+
})]
|
|
899
|
+
}, y.getId());
|
|
900
|
+
})
|
|
901
|
+
});
|
|
902
|
+
}, xt = ({
|
|
903
|
+
document: e
|
|
904
|
+
}) => {
|
|
905
|
+
const a = e.getBlocks(), s = e.getFootnotes(), c = () => {
|
|
906
|
+
var f;
|
|
907
|
+
return e.getNoheader() ? null : /* @__PURE__ */ r("div", {
|
|
908
|
+
id: "header",
|
|
909
|
+
children: e.hasHeader() && /* @__PURE__ */ l(L, {
|
|
910
|
+
children: [/* @__PURE__ */ r("h1", {
|
|
911
|
+
dangerouslySetInnerHTML: {
|
|
912
|
+
__html: ((f = e.getDocumentTitle()) == null ? void 0 : f.toString()) || ""
|
|
913
|
+
}
|
|
914
|
+
}), /* @__PURE__ */ r(o, {}), e.hasSections() && e.hasAttribute("toc") && e.getAttribute("toc-placement") === "auto" && /* @__PURE__ */ l("div", {
|
|
915
|
+
id: "toc",
|
|
916
|
+
className: e.getAttribute("toc-class", "toc"),
|
|
917
|
+
children: [/* @__PURE__ */ r("div", {
|
|
918
|
+
id: "toctitle",
|
|
919
|
+
children: e.getAttribute("toc-title")
|
|
920
|
+
}), /* @__PURE__ */ r(fe, {
|
|
921
|
+
node: e
|
|
922
|
+
})]
|
|
923
|
+
})]
|
|
924
|
+
})
|
|
925
|
+
});
|
|
926
|
+
}, h = () => s && s.length > 0 && a && !a[0].getDocument().hasAttribute("nofootnotes") ? /* @__PURE__ */ l("div", {
|
|
927
|
+
id: "footnotes",
|
|
928
|
+
children: [/* @__PURE__ */ r("hr", {}), s.map((f) => /* @__PURE__ */ l("div", {
|
|
929
|
+
className: "footnote",
|
|
930
|
+
id: `_footnotedef_${f.getIndex()}`,
|
|
931
|
+
children: [/* @__PURE__ */ r("a", {
|
|
932
|
+
href: `#_footnoteref_${f.getIndex()}`,
|
|
933
|
+
children: f.getIndex()
|
|
934
|
+
}), ".", " ", A(D(f) || "")]
|
|
935
|
+
}, f.getIndex()))]
|
|
936
|
+
}) : null, o = () => e.getAuthors().length > 0 || e.hasAttribute("revnumber") || e.hasAttribute("revdate") || e.hasAttribute("revremark") ? /* @__PURE__ */ l("div", {
|
|
937
|
+
className: "details",
|
|
938
|
+
children: [e.getAuthors().map((b, g) => /* @__PURE__ */ l(Te, {
|
|
939
|
+
children: [b.getName() && /* @__PURE__ */ l(L, {
|
|
940
|
+
children: [/* @__PURE__ */ r("span", {
|
|
941
|
+
id: `author${g + 1 > 1 ? g + 1 : ""}`,
|
|
942
|
+
className: "author",
|
|
943
|
+
children: A(e.applySubstitutions(b.getName() || "").toString())
|
|
944
|
+
}), /* @__PURE__ */ r("br", {})]
|
|
945
|
+
}), b.getEmail() && /* @__PURE__ */ l(L, {
|
|
946
|
+
children: [/* @__PURE__ */ r("span", {
|
|
947
|
+
id: `email${g + 1 > 1 ? g + 1 : ""}`,
|
|
948
|
+
className: "email",
|
|
949
|
+
children: A(e.applySubstitutions(b.getEmail() || "").toString())
|
|
950
|
+
}), /* @__PURE__ */ r("br", {})]
|
|
951
|
+
})]
|
|
952
|
+
}, g)), e.hasAttribute("revnumber") && /* @__PURE__ */ r("span", {
|
|
953
|
+
id: "revnumber",
|
|
954
|
+
children: `${e.getAttribute("version-label").toLowerCase()} ${e.getAttribute("revnumber")}${e.hasAttribute("revdate") ? "," : ""}`
|
|
955
|
+
}), e.hasAttribute("revdate") && /* @__PURE__ */ r("span", {
|
|
956
|
+
id: "revdate",
|
|
957
|
+
children: e.getAttribute("revdate")
|
|
958
|
+
}), e.hasAttribute("revremark") && /* @__PURE__ */ l(L, {
|
|
959
|
+
children: [/* @__PURE__ */ r("br", {}), /* @__PURE__ */ r("span", {
|
|
960
|
+
id: "revremark",
|
|
961
|
+
children: e.getAttribute("revremark")
|
|
962
|
+
})]
|
|
963
|
+
})]
|
|
964
|
+
}) : null;
|
|
965
|
+
return /* @__PURE__ */ l(L, {
|
|
966
|
+
children: [/* @__PURE__ */ r(c, {}), /* @__PURE__ */ r("div", {
|
|
967
|
+
id: "content",
|
|
968
|
+
children: /* @__PURE__ */ r(I, {
|
|
969
|
+
blocks: a
|
|
970
|
+
})
|
|
971
|
+
}), /* @__PURE__ */ r(h, {})]
|
|
972
|
+
});
|
|
973
|
+
}, Pt = ({
|
|
974
|
+
node: e
|
|
975
|
+
}) => {
|
|
976
|
+
if (e.isOption("collapsible")) {
|
|
977
|
+
const a = e.isOption("collapsible"), s = e.getTitle() || "Details", c = e.isOption("open") ? !0 : void 0;
|
|
978
|
+
if (a)
|
|
979
|
+
return /* @__PURE__ */ l("details", {
|
|
980
|
+
className: E(e),
|
|
981
|
+
open: c,
|
|
982
|
+
...T(e),
|
|
983
|
+
...e.getId() ? {
|
|
984
|
+
id: e.getId()
|
|
985
|
+
} : {},
|
|
986
|
+
children: [/* @__PURE__ */ r("summary", {
|
|
987
|
+
className: "title",
|
|
988
|
+
children: A(s)
|
|
989
|
+
}), /* @__PURE__ */ r("div", {
|
|
990
|
+
className: "content",
|
|
991
|
+
children: /* @__PURE__ */ r(I, {
|
|
992
|
+
blocks: e.getBlocks()
|
|
993
|
+
})
|
|
994
|
+
})]
|
|
995
|
+
});
|
|
996
|
+
}
|
|
997
|
+
return /* @__PURE__ */ l("div", {
|
|
998
|
+
className: R("exampleblock", E(e)),
|
|
999
|
+
...T(e),
|
|
1000
|
+
...e.getId() ? {
|
|
1001
|
+
id: e.getId()
|
|
1002
|
+
} : {},
|
|
1003
|
+
children: [/* @__PURE__ */ r(oe, {
|
|
1004
|
+
node: e
|
|
1005
|
+
}), /* @__PURE__ */ r("div", {
|
|
1006
|
+
className: "content",
|
|
1007
|
+
children: /* @__PURE__ */ r(I, {
|
|
1008
|
+
blocks: e.getBlocks()
|
|
1009
|
+
})
|
|
1010
|
+
})]
|
|
1011
|
+
});
|
|
1012
|
+
}, Dt = ({
|
|
1013
|
+
node: e
|
|
1014
|
+
}) => {
|
|
1015
|
+
const a = e.getLevel();
|
|
1016
|
+
return /* @__PURE__ */ l(L, {
|
|
1017
|
+
children: [/* @__PURE__ */ r("a", {
|
|
1018
|
+
className: "sectionanchor",
|
|
1019
|
+
...e.getId() ? {
|
|
1020
|
+
id: e.getId()
|
|
1021
|
+
} : {},
|
|
1022
|
+
...T(e)
|
|
1023
|
+
}), K(`h${a + 1}`, {
|
|
1024
|
+
className: R(E(e), e.getStyle())
|
|
1025
|
+
}, A(e.getTitle() || ""))]
|
|
1026
|
+
});
|
|
1027
|
+
}, jt = ({
|
|
1028
|
+
node: e
|
|
1029
|
+
}) => {
|
|
1030
|
+
const a = e.getAttribute("target");
|
|
1031
|
+
let s = /* @__PURE__ */ r("img", {
|
|
1032
|
+
src: e.getImageUri(a),
|
|
1033
|
+
alt: e.getAttribute("alt"),
|
|
1034
|
+
width: e.getAttribute("width"),
|
|
1035
|
+
height: e.getAttribute("height")
|
|
1036
|
+
});
|
|
1037
|
+
return e.hasAttribute("link") && (s = /* @__PURE__ */ r("a", {
|
|
1038
|
+
className: "image",
|
|
1039
|
+
href: e.getAttribute("link"),
|
|
1040
|
+
children: s
|
|
1041
|
+
})), /* @__PURE__ */ l("div", {
|
|
1042
|
+
className: `imageblock ${e.hasAttribute("align") ? "text-" + e.getAttribute("align") : ""} ${e.hasAttribute("float") ? e.getAttribute("float") : ""} ${e.getRole() ? e.getRole() : ""}`,
|
|
1043
|
+
...T(e),
|
|
1044
|
+
children: [/* @__PURE__ */ r("div", {
|
|
1045
|
+
className: "content",
|
|
1046
|
+
children: s
|
|
1047
|
+
}), /* @__PURE__ */ r(oe, {
|
|
1048
|
+
node: e
|
|
1049
|
+
})]
|
|
1050
|
+
});
|
|
1051
|
+
}, Lt = ({
|
|
1052
|
+
node: e
|
|
1053
|
+
}) => {
|
|
1054
|
+
const a = e.getDocument(), s = e.getAttributes(), c = e.isOption("nowrap") || !a.hasAttribute("prewrap"), h = U(e);
|
|
1055
|
+
if (e.getStyle() === "source") {
|
|
1056
|
+
const o = s.language;
|
|
1057
|
+
return /* @__PURE__ */ l("div", {
|
|
1058
|
+
className: "listingblock",
|
|
1059
|
+
...T(e),
|
|
1060
|
+
children: [/* @__PURE__ */ r(oe, {
|
|
1061
|
+
node: e
|
|
1062
|
+
}), /* @__PURE__ */ r("div", {
|
|
1063
|
+
className: "content",
|
|
1064
|
+
children: /* @__PURE__ */ r("pre", {
|
|
1065
|
+
className: R("highlight", c ? " nowrap" : ""),
|
|
1066
|
+
children: o ? /* @__PURE__ */ r("code", {
|
|
1067
|
+
className: o ? `language-${o}` : "",
|
|
1068
|
+
"data-lang": o,
|
|
1069
|
+
dangerouslySetInnerHTML: {
|
|
1070
|
+
__html: h
|
|
1071
|
+
}
|
|
1072
|
+
}) : /* @__PURE__ */ r("code", {
|
|
1073
|
+
dangerouslySetInnerHTML: {
|
|
1074
|
+
__html: h
|
|
1075
|
+
}
|
|
1076
|
+
})
|
|
1077
|
+
})
|
|
1078
|
+
})]
|
|
1079
|
+
});
|
|
1080
|
+
} else
|
|
1081
|
+
return /* @__PURE__ */ l("div", {
|
|
1082
|
+
className: "listingblock",
|
|
1083
|
+
...T(e),
|
|
1084
|
+
children: [/* @__PURE__ */ r(oe, {
|
|
1085
|
+
node: e
|
|
1086
|
+
}), /* @__PURE__ */ r("div", {
|
|
1087
|
+
className: "content",
|
|
1088
|
+
children: /* @__PURE__ */ r("pre", {
|
|
1089
|
+
className: c ? " nowrap" : "",
|
|
1090
|
+
children: /* @__PURE__ */ r("code", {
|
|
1091
|
+
dangerouslySetInnerHTML: {
|
|
1092
|
+
__html: e.getSource()
|
|
1093
|
+
}
|
|
1094
|
+
})
|
|
1095
|
+
})
|
|
1096
|
+
})]
|
|
1097
|
+
});
|
|
1098
|
+
}, Ft = ({
|
|
1099
|
+
node: e
|
|
1100
|
+
}) => {
|
|
1101
|
+
const s = e.getDocument().getAttributes().prewrap === void 0 || e.isOption("nowrap");
|
|
1102
|
+
return /* @__PURE__ */ l("div", {
|
|
1103
|
+
className: "literalblock",
|
|
1104
|
+
...T(e),
|
|
1105
|
+
children: [/* @__PURE__ */ r(j, {
|
|
1106
|
+
node: e
|
|
1107
|
+
}), /* @__PURE__ */ r("div", {
|
|
1108
|
+
className: "content",
|
|
1109
|
+
children: /* @__PURE__ */ r("pre", {
|
|
1110
|
+
className: s ? "nowrap" : "",
|
|
1111
|
+
children: e.getSource()
|
|
1112
|
+
})
|
|
1113
|
+
})]
|
|
1114
|
+
});
|
|
1115
|
+
}, Mt = ({
|
|
1116
|
+
node: e
|
|
1117
|
+
}) => /* @__PURE__ */ l("div", {
|
|
1118
|
+
className: R("olist", E(e), e.getStyle()),
|
|
1119
|
+
...T(e),
|
|
1120
|
+
children: [/* @__PURE__ */ r(j, {
|
|
1121
|
+
node: e
|
|
1122
|
+
}), /* @__PURE__ */ r("ol", {
|
|
1123
|
+
className: e.getStyle(),
|
|
1124
|
+
reversed: e.isOption("reversed"),
|
|
1125
|
+
start: e.getAttribute("start"),
|
|
1126
|
+
children: e.getItems().map((a, s) => /* @__PURE__ */ l("li", {
|
|
1127
|
+
className: E(e) ? E(e) : "",
|
|
1128
|
+
children: [/* @__PURE__ */ r("p", {
|
|
1129
|
+
children: A(D(a))
|
|
1130
|
+
}), /* @__PURE__ */ r(I, {
|
|
1131
|
+
blocks: a.getBlocks()
|
|
1132
|
+
})]
|
|
1133
|
+
}, s))
|
|
1134
|
+
})]
|
|
1135
|
+
}), Bt = ({
|
|
1136
|
+
node: e
|
|
1137
|
+
}) => {
|
|
1138
|
+
const a = e.getStyle();
|
|
1139
|
+
return a === "abstract" ? /* @__PURE__ */ l("div", {
|
|
1140
|
+
className: R("quoteblock abstract", E(e)),
|
|
1141
|
+
...T(e),
|
|
1142
|
+
children: [/* @__PURE__ */ r(j, {
|
|
1143
|
+
node: e
|
|
1144
|
+
}), /* @__PURE__ */ r("blockquote", {
|
|
1145
|
+
className: "content",
|
|
1146
|
+
children: /* @__PURE__ */ r(I, {
|
|
1147
|
+
blocks: e.getBlocks()
|
|
1148
|
+
})
|
|
1149
|
+
})]
|
|
1150
|
+
}) : /* @__PURE__ */ l("div", {
|
|
1151
|
+
className: R("openblock", a && a !== "open" ? a : "", E(e)),
|
|
1152
|
+
...T(e),
|
|
1153
|
+
children: [/* @__PURE__ */ r(j, {
|
|
1154
|
+
node: e
|
|
1155
|
+
}), /* @__PURE__ */ r("div", {
|
|
1156
|
+
className: "content",
|
|
1157
|
+
children: /* @__PURE__ */ r(I, {
|
|
1158
|
+
blocks: e.getBlocks()
|
|
1159
|
+
})
|
|
1160
|
+
})]
|
|
1161
|
+
});
|
|
1162
|
+
}, Wt = () => /* @__PURE__ */ r("div", {
|
|
1163
|
+
style: {
|
|
1164
|
+
pageBreakAfter: "always"
|
|
1165
|
+
}
|
|
1166
|
+
}), Yt = ({
|
|
1167
|
+
node: e
|
|
1168
|
+
}) => {
|
|
1169
|
+
const a = U(e);
|
|
1170
|
+
return /* @__PURE__ */ l("div", {
|
|
1171
|
+
...e.getId() ? {
|
|
1172
|
+
id: e.getId()
|
|
1173
|
+
} : {},
|
|
1174
|
+
className: R("paragraph", E(e)),
|
|
1175
|
+
...T(e),
|
|
1176
|
+
children: [/* @__PURE__ */ r(j, {
|
|
1177
|
+
node: e
|
|
1178
|
+
}), /* @__PURE__ */ r("p", {
|
|
1179
|
+
dangerouslySetInnerHTML: {
|
|
1180
|
+
__html: a
|
|
1181
|
+
}
|
|
1182
|
+
})]
|
|
1183
|
+
});
|
|
1184
|
+
}, Ht = ({
|
|
1185
|
+
node: e
|
|
1186
|
+
}) => {
|
|
1187
|
+
const a = U(e);
|
|
1188
|
+
return /* @__PURE__ */ r(L, {
|
|
1189
|
+
children: A(a)
|
|
1190
|
+
});
|
|
1191
|
+
}, Ut = ({
|
|
1192
|
+
node: e
|
|
1193
|
+
}) => {
|
|
1194
|
+
const a = e.getDocument(), s = a.getAttribute("toc-placement") === "preamble" && a.hasSections() && a.hasAttribute("toc");
|
|
1195
|
+
return /* @__PURE__ */ r("div", {
|
|
1196
|
+
id: "preamble",
|
|
1197
|
+
...T(e),
|
|
1198
|
+
children: /* @__PURE__ */ l("div", {
|
|
1199
|
+
className: "sectionbody",
|
|
1200
|
+
children: [/* @__PURE__ */ r(I, {
|
|
1201
|
+
blocks: e.getBlocks()
|
|
1202
|
+
}), s && /* @__PURE__ */ l("div", {
|
|
1203
|
+
id: "toc",
|
|
1204
|
+
className: a.getAttribute("toc-class", "toc"),
|
|
1205
|
+
children: [/* @__PURE__ */ r("div", {
|
|
1206
|
+
id: "toctitle",
|
|
1207
|
+
children: A(a.getAttribute("toc-title"))
|
|
1208
|
+
}), /* @__PURE__ */ r(fe, {
|
|
1209
|
+
node: a
|
|
1210
|
+
})]
|
|
1211
|
+
})]
|
|
1212
|
+
})
|
|
1213
|
+
});
|
|
1214
|
+
}, qt = ({
|
|
1215
|
+
node: e
|
|
1216
|
+
}) => {
|
|
1217
|
+
const a = e.getAttribute("attribution"), s = e.getAttribute("citetitle"), c = U(e);
|
|
1218
|
+
return /* @__PURE__ */ l("div", {
|
|
1219
|
+
...e.getId() ? {
|
|
1220
|
+
id: e.getId()
|
|
1221
|
+
} : {},
|
|
1222
|
+
className: R("quoteblock", E(e)),
|
|
1223
|
+
...T(e),
|
|
1224
|
+
children: [/* @__PURE__ */ r(j, {
|
|
1225
|
+
node: e
|
|
1226
|
+
}), /* @__PURE__ */ r("blockquote", {
|
|
1227
|
+
dangerouslySetInnerHTML: {
|
|
1228
|
+
__html: c
|
|
1229
|
+
}
|
|
1230
|
+
}), a && /* @__PURE__ */ l("div", {
|
|
1231
|
+
className: "attribution",
|
|
1232
|
+
children: ["\u2014 ", a, s && /* @__PURE__ */ r("cite", {
|
|
1233
|
+
children: s
|
|
1234
|
+
})]
|
|
1235
|
+
})]
|
|
1236
|
+
});
|
|
1237
|
+
}, Vt = ({
|
|
1238
|
+
node: e
|
|
1239
|
+
}) => {
|
|
1240
|
+
const a = e.getDocument().getAttributes(), s = e.getLevel();
|
|
1241
|
+
let c = "", h = e.getSectionNumeral();
|
|
1242
|
+
h = h === "." ? "" : h;
|
|
1243
|
+
const o = a.sectnumlevels ? parseInt(a.sectnumlevels) : 3;
|
|
1244
|
+
if (e.getCaption())
|
|
1245
|
+
c = e.getCaptionedTitle();
|
|
1246
|
+
else if (e.isNumbered() && s <= o)
|
|
1247
|
+
if (s < 2 && e.getDocument().getDoctype() == "book") {
|
|
1248
|
+
const f = e.getSectionName();
|
|
1249
|
+
f === "chapter" ? c = `${a["chapter-signifier"] || ""} ${h} ${e.getTitle()}` : f === "part" ? c = `${a["part-signifier"] || ""} ${h} ${e.getTitle()}` : c = `${h} ${e.getTitle()}`;
|
|
1250
|
+
} else
|
|
1251
|
+
c = `${h} ${e.getTitle()}`;
|
|
1252
|
+
else
|
|
1253
|
+
c = e.getTitle() || "";
|
|
1254
|
+
return a.sectlinks && (c = /* @__PURE__ */ l(L, {
|
|
1255
|
+
children: [/* @__PURE__ */ r("a", {
|
|
1256
|
+
className: "anchor",
|
|
1257
|
+
id: e.getId() || "",
|
|
1258
|
+
...T(e)
|
|
1259
|
+
}), /* @__PURE__ */ r("a", {
|
|
1260
|
+
className: "link",
|
|
1261
|
+
href: `#${e.getId()}`,
|
|
1262
|
+
dangerouslySetInnerHTML: {
|
|
1263
|
+
__html: c
|
|
1264
|
+
}
|
|
1265
|
+
})]
|
|
1266
|
+
})), s === 0 ? /* @__PURE__ */ l(L, {
|
|
1267
|
+
children: [/* @__PURE__ */ r("h1", {
|
|
1268
|
+
className: R("sect0", E(e)),
|
|
1269
|
+
"data-sectnum": h,
|
|
1270
|
+
...T(e),
|
|
1271
|
+
children: c
|
|
1272
|
+
}), /* @__PURE__ */ r(I, {
|
|
1273
|
+
blocks: e.getBlocks()
|
|
1274
|
+
})]
|
|
1275
|
+
}) : /* @__PURE__ */ l("div", {
|
|
1276
|
+
className: R(`sect${s}`, E(e)),
|
|
1277
|
+
...T(e),
|
|
1278
|
+
children: [K(`h${s + 1}`, {
|
|
1279
|
+
"data-sectnum": h
|
|
1280
|
+
}, c), /* @__PURE__ */ r("div", {
|
|
1281
|
+
className: "sectionbody",
|
|
1282
|
+
children: /* @__PURE__ */ r(I, {
|
|
1283
|
+
blocks: e.getBlocks()
|
|
1284
|
+
})
|
|
1285
|
+
})]
|
|
1286
|
+
});
|
|
1287
|
+
}, zt = ({
|
|
1288
|
+
node: e
|
|
1289
|
+
}) => /* @__PURE__ */ r("div", {
|
|
1290
|
+
className: R("sidebarblock", E(e)),
|
|
1291
|
+
...T(e),
|
|
1292
|
+
children: /* @__PURE__ */ l("div", {
|
|
1293
|
+
className: "content",
|
|
1294
|
+
children: [/* @__PURE__ */ r(j, {
|
|
1295
|
+
node: e
|
|
1296
|
+
}), /* @__PURE__ */ r(I, {
|
|
1297
|
+
blocks: e.getBlocks()
|
|
1298
|
+
})]
|
|
1299
|
+
})
|
|
1300
|
+
}), Jt = ({
|
|
1301
|
+
node: e
|
|
1302
|
+
}) => {
|
|
1303
|
+
let a = ["frame-" + e.getAttribute("frame", "all", "table-frame"), "grid-" + e.getAttribute("grid", "all", "table-grid")], s = e.getAttribute("stripes", null, "table-stripes");
|
|
1304
|
+
s && a.push("stripes-" + s);
|
|
1305
|
+
let c = e.hasAutowidthOption(), h = e.getAttribute("tablepcwidth"), o = null;
|
|
1306
|
+
c && !e.hasAttribute("width") ? a.push("fit-content") : h == 100 ? a.push("stretch") : o = `${h}%`, e.hasAttribute("float") && a.push(e.getAttribute("float")), e.getRole() && a.push(e.getRole() || "");
|
|
1307
|
+
const f = e.getRowCount(), b = e.getColumns(), g = e.getHeadRows(), y = e.getBodyRows(), m = e.getFootRows(), O = (x) => R(
|
|
1308
|
+
"tableblock",
|
|
1309
|
+
`halign-${x.getAttribute("halign")}`,
|
|
1310
|
+
`valign-${x.getAttribute("valign")}`
|
|
1311
|
+
), S = e.getTitle(), F = e.getId(), Y = F || Kt(S || "");
|
|
1312
|
+
return /* @__PURE__ */ l("table", {
|
|
1313
|
+
className: R("tableblock", ...a),
|
|
1314
|
+
style: {
|
|
1315
|
+
width: o || void 0
|
|
1316
|
+
},
|
|
1317
|
+
...T(e),
|
|
1318
|
+
children: [e.hasTitle() && /* @__PURE__ */ l("caption", {
|
|
1319
|
+
className: "title",
|
|
1320
|
+
children: [!F && /* @__PURE__ */ r("a", {
|
|
1321
|
+
className: "anchor",
|
|
1322
|
+
id: Y
|
|
1323
|
+
}), /* @__PURE__ */ r("a", {
|
|
1324
|
+
href: `#${Y}`,
|
|
1325
|
+
children: e.getCaptionedTitle()
|
|
1326
|
+
})]
|
|
1327
|
+
}), f > 0 && /* @__PURE__ */ r("colgroup", {
|
|
1328
|
+
children: b.map((x, M) => {
|
|
1329
|
+
const w = x.getAttribute("colpcwidth");
|
|
1330
|
+
return /* @__PURE__ */ r("col", {
|
|
1331
|
+
style: {
|
|
1332
|
+
width: `${w}%`
|
|
1333
|
+
}
|
|
1334
|
+
}, M);
|
|
1335
|
+
})
|
|
1336
|
+
}), g.map((x, M) => /* @__PURE__ */ r("thead", {
|
|
1337
|
+
children: /* @__PURE__ */ r("tr", {
|
|
1338
|
+
children: x.map((w, N) => /* @__PURE__ */ r("th", {
|
|
1339
|
+
className: O(w),
|
|
1340
|
+
dangerouslySetInnerHTML: {
|
|
1341
|
+
__html: D(w)
|
|
1342
|
+
}
|
|
1343
|
+
}, N))
|
|
1344
|
+
})
|
|
1345
|
+
}, M)), /* @__PURE__ */ r("tbody", {
|
|
1346
|
+
children: y.map((x, M) => /* @__PURE__ */ r("tr", {
|
|
1347
|
+
children: x.map((w, N) => {
|
|
1348
|
+
const ge = w.getColumnSpan(), he = w.getRowSpan(), q = U(w), V = {
|
|
1349
|
+
colSpan: ge,
|
|
1350
|
+
rowSpan: he,
|
|
1351
|
+
className: O(w)
|
|
1352
|
+
}, X = w.getStyle();
|
|
1353
|
+
if (X === "asciidoc")
|
|
1354
|
+
return /* @__PURE__ */ K("td", {
|
|
1355
|
+
...V,
|
|
1356
|
+
key: N
|
|
1357
|
+
}, /* @__PURE__ */ r("div", {
|
|
1358
|
+
className: "content",
|
|
1359
|
+
dangerouslySetInnerHTML: {
|
|
1360
|
+
__html: q
|
|
1361
|
+
}
|
|
1362
|
+
}));
|
|
1363
|
+
if (X === "literal")
|
|
1364
|
+
return /* @__PURE__ */ K("td", {
|
|
1365
|
+
...V,
|
|
1366
|
+
key: N
|
|
1367
|
+
}, /* @__PURE__ */ r("div", {
|
|
1368
|
+
className: "literal",
|
|
1369
|
+
children: /* @__PURE__ */ r("pre", {
|
|
1370
|
+
dangerouslySetInnerHTML: {
|
|
1371
|
+
__html: q
|
|
1372
|
+
}
|
|
1373
|
+
})
|
|
1374
|
+
}));
|
|
1375
|
+
if (X === "header")
|
|
1376
|
+
return /* @__PURE__ */ K("th", {
|
|
1377
|
+
...V,
|
|
1378
|
+
key: N
|
|
1379
|
+
}, /* @__PURE__ */ r("p", {
|
|
1380
|
+
className: "tableblock",
|
|
1381
|
+
dangerouslySetInnerHTML: {
|
|
1382
|
+
__html: q
|
|
1383
|
+
}
|
|
1384
|
+
}));
|
|
1385
|
+
{
|
|
1386
|
+
let ae = q;
|
|
1387
|
+
return /* @__PURE__ */ K("td", {
|
|
1388
|
+
...V,
|
|
1389
|
+
key: N
|
|
1390
|
+
}, ae.length === 0 ? "" : A(`<p class="tableblock">${ae.join(`</p>
|
|
1391
|
+
<p class="tableblock">`)}</p>`));
|
|
1392
|
+
}
|
|
1393
|
+
})
|
|
1394
|
+
}, M))
|
|
1395
|
+
}), m.map((x, M) => /* @__PURE__ */ r("tfoot", {
|
|
1396
|
+
children: /* @__PURE__ */ r("tr", {
|
|
1397
|
+
children: x.map((w, N) => /* @__PURE__ */ r("td", {
|
|
1398
|
+
className: O(w),
|
|
1399
|
+
children: /* @__PURE__ */ r("p", {
|
|
1400
|
+
className: "tableblock",
|
|
1401
|
+
dangerouslySetInnerHTML: {
|
|
1402
|
+
__html: D(w)
|
|
1403
|
+
}
|
|
1404
|
+
})
|
|
1405
|
+
}, N))
|
|
1406
|
+
})
|
|
1407
|
+
}, M))]
|
|
1408
|
+
});
|
|
1409
|
+
}, Kt = (e) => e.toString().normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/\s+/g, "_").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/-$/g, ""), Gt = ({
|
|
1410
|
+
node: e
|
|
1411
|
+
}) => {
|
|
1412
|
+
let a = e.getId() || "toc";
|
|
1413
|
+
const s = e.getDocument(), c = e.hasTitle() ? e.getTitle() : s.getAttribute("toc-title"), h = re(() => s.getAttribute("toc-placement"), [e]), o = re(() => s.hasAttribute("toc"), [e]), f = e.hasAttribute("levels") ? parseInt(e.getAttribute("levels")) : void 0;
|
|
1414
|
+
return h === "macro" && s.hasSections() && o ? /* @__PURE__ */ l("div", {
|
|
1415
|
+
id: a,
|
|
1416
|
+
className: R("toc", E(e)),
|
|
1417
|
+
children: [/* @__PURE__ */ r("div", {
|
|
1418
|
+
id: `${a}title`,
|
|
1419
|
+
className: "title",
|
|
1420
|
+
children: A(c || "")
|
|
1421
|
+
}), /* @__PURE__ */ r(fe, {
|
|
1422
|
+
node: e.getDocument(),
|
|
1423
|
+
opts: {
|
|
1424
|
+
tocLevels: f
|
|
1425
|
+
}
|
|
1426
|
+
})]
|
|
1427
|
+
}) : null;
|
|
1428
|
+
}, Xt = () => /* @__PURE__ */ r("hr", {}), Qt = ({
|
|
1429
|
+
node: e
|
|
1430
|
+
}) => {
|
|
1431
|
+
const a = e.isOption("checklist");
|
|
1432
|
+
return /* @__PURE__ */ l("div", {
|
|
1433
|
+
...e.getId() ? {
|
|
1434
|
+
id: e.getId()
|
|
1435
|
+
} : {},
|
|
1436
|
+
className: R("ulist", e.getStyle(), E(e), a && "checklist"),
|
|
1437
|
+
...T(e),
|
|
1438
|
+
children: [/* @__PURE__ */ r(j, {
|
|
1439
|
+
node: e
|
|
1440
|
+
}), /* @__PURE__ */ r("ul", {
|
|
1441
|
+
className: a ? "checklist" : "",
|
|
1442
|
+
children: e.getItems().map((s, c) => a ? /* @__PURE__ */ r("li", {
|
|
1443
|
+
id: s.getId(),
|
|
1444
|
+
className: E(e),
|
|
1445
|
+
children: /* @__PURE__ */ l("p", {
|
|
1446
|
+
children: [a && s.hasAttribute("checkbox") && /* @__PURE__ */ r("i", {
|
|
1447
|
+
className: R("fa", s.hasAttribute("checked") ? "fa-check-square-o" : "fa-square-o")
|
|
1448
|
+
}), " ", A(D(s))]
|
|
1449
|
+
})
|
|
1450
|
+
}, c) : /* @__PURE__ */ l("li", {
|
|
1451
|
+
id: s.getId(),
|
|
1452
|
+
className: E(e),
|
|
1453
|
+
children: [/* @__PURE__ */ r("p", {
|
|
1454
|
+
dangerouslySetInnerHTML: {
|
|
1455
|
+
__html: D(s)
|
|
1456
|
+
}
|
|
1457
|
+
}), /* @__PURE__ */ r(I, {
|
|
1458
|
+
blocks: s.getBlocks()
|
|
1459
|
+
})]
|
|
1460
|
+
}, c))
|
|
1461
|
+
})]
|
|
1462
|
+
});
|
|
1463
|
+
}, Zt = ({
|
|
1464
|
+
node: e
|
|
1465
|
+
}) => {
|
|
1466
|
+
const a = e.getAttribute("attribution"), s = e.getAttribute("citetitle"), c = U(e);
|
|
1467
|
+
return /* @__PURE__ */ l("div", {
|
|
1468
|
+
...e.getId() ? {
|
|
1469
|
+
id: e.getId()
|
|
1470
|
+
} : {},
|
|
1471
|
+
className: R("verseblock", E(e)),
|
|
1472
|
+
...T(e),
|
|
1473
|
+
children: [/* @__PURE__ */ r(j, {
|
|
1474
|
+
node: e
|
|
1475
|
+
}), /* @__PURE__ */ r("pre", {
|
|
1476
|
+
className: "content",
|
|
1477
|
+
dangerouslySetInnerHTML: {
|
|
1478
|
+
__html: c
|
|
1479
|
+
}
|
|
1480
|
+
}), a && /* @__PURE__ */ l("div", {
|
|
1481
|
+
className: "attribution",
|
|
1482
|
+
children: ["\u2014 ", a, s && /* @__PURE__ */ r("cite", {
|
|
1483
|
+
children: s
|
|
1484
|
+
})]
|
|
1485
|
+
})]
|
|
1486
|
+
});
|
|
1487
|
+
}, Xe = Rt({}), ar = ({
|
|
1488
|
+
content: e,
|
|
1489
|
+
options: a
|
|
1490
|
+
}) => {
|
|
1491
|
+
const s = a && a.customDocument;
|
|
1492
|
+
return /* @__PURE__ */ r(Xe.Provider, {
|
|
1493
|
+
value: a || {},
|
|
1494
|
+
children: s ? /* @__PURE__ */ r(s, {
|
|
1495
|
+
document: e
|
|
1496
|
+
}) : /* @__PURE__ */ r(xt, {
|
|
1497
|
+
document: e
|
|
1498
|
+
})
|
|
1499
|
+
});
|
|
1500
|
+
}, I = ({
|
|
1501
|
+
blocks: e
|
|
1502
|
+
}) => /* @__PURE__ */ r(L, {
|
|
1503
|
+
children: e.map((a, s) => /* @__PURE__ */ r(er, {
|
|
1504
|
+
node: a
|
|
1505
|
+
}, `${s}-${a.getNodeName()}`))
|
|
1506
|
+
}), er = ({
|
|
1507
|
+
node: e
|
|
1508
|
+
}) => {
|
|
1509
|
+
const a = Et(Xe), s = e.getNodeName(), c = e.getDocument(), h = e.getAttributes();
|
|
1510
|
+
c.playbackAttributes(h);
|
|
1511
|
+
const o = a && a.overrides && a.overrides[s];
|
|
1512
|
+
if (o)
|
|
1513
|
+
return /* @__PURE__ */ r(o, {
|
|
1514
|
+
node: e
|
|
1515
|
+
});
|
|
1516
|
+
switch (s) {
|
|
1517
|
+
case "audio":
|
|
1518
|
+
return /* @__PURE__ */ r(Ot, {
|
|
1519
|
+
node: e
|
|
1520
|
+
});
|
|
1521
|
+
case "preamble":
|
|
1522
|
+
return /* @__PURE__ */ r(Ut, {
|
|
1523
|
+
node: e
|
|
1524
|
+
});
|
|
1525
|
+
case "section":
|
|
1526
|
+
return /* @__PURE__ */ r(Vt, {
|
|
1527
|
+
node: e
|
|
1528
|
+
});
|
|
1529
|
+
case "paragraph":
|
|
1530
|
+
return /* @__PURE__ */ r(Yt, {
|
|
1531
|
+
node: e
|
|
1532
|
+
});
|
|
1533
|
+
case "dlist":
|
|
1534
|
+
return /* @__PURE__ */ r(It, {
|
|
1535
|
+
node: e
|
|
1536
|
+
});
|
|
1537
|
+
case "ulist":
|
|
1538
|
+
return /* @__PURE__ */ r(Qt, {
|
|
1539
|
+
node: e
|
|
1540
|
+
});
|
|
1541
|
+
case "floating_title":
|
|
1542
|
+
return /* @__PURE__ */ r(Dt, {
|
|
1543
|
+
node: e
|
|
1544
|
+
});
|
|
1545
|
+
case "admonition":
|
|
1546
|
+
return /* @__PURE__ */ r(Ct, {
|
|
1547
|
+
node: e
|
|
1548
|
+
});
|
|
1549
|
+
case "listing":
|
|
1550
|
+
return /* @__PURE__ */ r(Lt, {
|
|
1551
|
+
node: e
|
|
1552
|
+
});
|
|
1553
|
+
case "literal":
|
|
1554
|
+
return /* @__PURE__ */ r(Ft, {
|
|
1555
|
+
node: e
|
|
1556
|
+
});
|
|
1557
|
+
case "image":
|
|
1558
|
+
return /* @__PURE__ */ r(jt, {
|
|
1559
|
+
node: e
|
|
1560
|
+
});
|
|
1561
|
+
case "colist":
|
|
1562
|
+
return /* @__PURE__ */ r($t, {
|
|
1563
|
+
node: e
|
|
1564
|
+
});
|
|
1565
|
+
case "olist":
|
|
1566
|
+
return /* @__PURE__ */ r(Mt, {
|
|
1567
|
+
node: e
|
|
1568
|
+
});
|
|
1569
|
+
case "table":
|
|
1570
|
+
return /* @__PURE__ */ r(Jt, {
|
|
1571
|
+
node: e
|
|
1572
|
+
});
|
|
1573
|
+
case "thematic_break":
|
|
1574
|
+
return /* @__PURE__ */ r(Xt, {});
|
|
1575
|
+
case "open":
|
|
1576
|
+
return /* @__PURE__ */ r(Bt, {
|
|
1577
|
+
node: e
|
|
1578
|
+
});
|
|
1579
|
+
case "pass":
|
|
1580
|
+
return /* @__PURE__ */ r(Ht, {
|
|
1581
|
+
node: e
|
|
1582
|
+
});
|
|
1583
|
+
case "page_break":
|
|
1584
|
+
return /* @__PURE__ */ r(Wt, {});
|
|
1585
|
+
case "example":
|
|
1586
|
+
return /* @__PURE__ */ r(Pt, {
|
|
1587
|
+
node: e
|
|
1588
|
+
});
|
|
1589
|
+
case "sidebar":
|
|
1590
|
+
return /* @__PURE__ */ r(zt, {
|
|
1591
|
+
node: e
|
|
1592
|
+
});
|
|
1593
|
+
case "quote":
|
|
1594
|
+
return /* @__PURE__ */ r(qt, {
|
|
1595
|
+
node: e
|
|
1596
|
+
});
|
|
1597
|
+
case "verse":
|
|
1598
|
+
return /* @__PURE__ */ r(Zt, {
|
|
1599
|
+
node: e
|
|
1600
|
+
});
|
|
1601
|
+
case "toc":
|
|
1602
|
+
return /* @__PURE__ */ r(Gt, {
|
|
1603
|
+
node: e
|
|
1604
|
+
});
|
|
1605
|
+
default:
|
|
1606
|
+
return /* @__PURE__ */ r(L, {
|
|
1607
|
+
children: A(e.convert())
|
|
1608
|
+
});
|
|
1609
|
+
}
|
|
1610
|
+
};
|
|
1611
|
+
export {
|
|
1612
|
+
Ct as Admonition,
|
|
1613
|
+
Ot as Audio,
|
|
1614
|
+
oe as CaptionedTitle,
|
|
1615
|
+
$t as CoList,
|
|
1616
|
+
I as Content,
|
|
1617
|
+
It as DList,
|
|
1618
|
+
xt as Document,
|
|
1619
|
+
Pt as Example,
|
|
1620
|
+
Dt as FloatingTitle,
|
|
1621
|
+
jt as Image,
|
|
1622
|
+
Lt as Listing,
|
|
1623
|
+
Ft as Literal,
|
|
1624
|
+
Mt as OList,
|
|
1625
|
+
Bt as Open,
|
|
1626
|
+
fe as Outline,
|
|
1627
|
+
Wt as PageBreak,
|
|
1628
|
+
Yt as Paragraph,
|
|
1629
|
+
Ht as Pass,
|
|
1630
|
+
Ut as Preamble,
|
|
1631
|
+
qt as Quote,
|
|
1632
|
+
Vt as Section,
|
|
1633
|
+
zt as Sidebar,
|
|
1634
|
+
Jt as Table,
|
|
1635
|
+
Gt as TableOfContents,
|
|
1636
|
+
Xt as ThematicBreak,
|
|
1637
|
+
j as Title,
|
|
1638
|
+
Qt as UList,
|
|
1639
|
+
Zt as Verse,
|
|
1640
|
+
nr as asciidoctor,
|
|
1641
|
+
ar as default,
|
|
1642
|
+
U as getContent,
|
|
1643
|
+
T as getLineNumber,
|
|
1644
|
+
E as getRole,
|
|
1645
|
+
D as getText,
|
|
1646
|
+
cr as parse
|
|
1647
|
+
};
|