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