@oxide/react-asciidoc 0.1.2 → 0.1.3-alpha.2

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