@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,4 +1,4 @@
1
- (function(f,Q){typeof exports=="object"&&typeof module<"u"?Q(exports,require("@asciidoctor/core"),require("html-react-parser"),require("react")):typeof define=="function"&&define.amd?define(["exports","@asciidoctor/core","html-react-parser","react"],Q):(f=typeof globalThis<"u"?globalThis:f||self,Q(f.ReactAsciiDoc={},f.core,f.parse,f.React))})(this,function(f,Q,At,P){"use strict";const he=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},kt=he(Q),k=he(At),ke=he(P),J={},U=e=>{const a=e.$$id;if(J[a])return J[a];const n=e.getContent()||"";return J[a]=n,n},L=e=>{const a=e.$$id;if(J[a])return J[a];const n=e.getText()||"";return J[a]=n,n};var se={exports:{}},Z={};/**
1
+ (function(h,K){typeof exports=="object"&&typeof module<"u"?K(exports,require("html-react-parser"),require("react")):typeof define=="function"&&define.amd?define(["exports","html-react-parser","react"],K):(h=typeof globalThis<"u"?globalThis:h||self,K(h.ReactAsciiDoc={},h.parse,h.React))})(this,function(h,K,C){"use strict";const ye=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},_=ye(K),Ne=ye(C);var te={exports:{}},G={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Re;function Rt(){if(Re)return Z;Re=1;var e=ke.default,a=Symbol.for("react.element"),n=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,d=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function g(y,h,_){var v,I={},w=null,B=null;_!==void 0&&(w=""+_),h.key!==void 0&&(w=""+h.key),h.ref!==void 0&&(B=h.ref);for(v in h)c.call(h,v)&&!o.hasOwnProperty(v)&&(I[v]=h[v]);if(y&&y.defaultProps)for(v in h=y.defaultProps,h)I[v]===void 0&&(I[v]=h[v]);return{$$typeof:a,type:y,key:w,ref:B,props:I,_owner:d.current}}return Z.Fragment=n,Z.jsx=g,Z.jsxs=g,Z}var ee={};/**
9
+ */var _e;function gt(){if(_e)return G;_e=1;var e=Ne.default,a=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,u=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function p(y,d,O){var N,j={},S=null,L=null;O!==void 0&&(S=""+O),d.key!==void 0&&(S=""+d.key),d.ref!==void 0&&(L=d.ref);for(N in d)s.call(d,N)&&!o.hasOwnProperty(N)&&(j[N]=d[N]);if(y&&y.defaultProps)for(N in d=y.defaultProps,d)j[N]===void 0&&(j[N]=d[N]);return{$$typeof:a,type:y,key:S,ref:L,props:j,_owner:u.current}}return G.Fragment=n,G.jsx=p,G.jsxs=p,G}var X={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,19 +14,19 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ee;function Et(){return Ee||(Ee=1,process.env.NODE_ENV!=="production"&&function(){var e=ke.default,a=Symbol.for("react.element"),n=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),y=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),V=Symbol.iterator,F="@@iterator";function W(t){if(t===null||typeof t!="object")return null;var i=V&&t[V]||t[F];return typeof i=="function"?i:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(t){{for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];de("error",t,s)}}function de(t,i,s){{var u=C.ReactDebugCurrentFrame,p=u.getStackAddendum();p!==""&&(i+="%s",s=s.concat([p]));var T=s.map(function(b){return String(b)});T.unshift("Warning: "+i),Function.prototype.apply.call(console[t],console,T)}}var me=!1,K=!1,G=!1,ae=!1,le=!1,Ze;Ze=Symbol.for("react.module.reference");function Ot(t){return!!(typeof t=="string"||typeof t=="function"||t===c||t===o||le||t===d||t===_||t===v||ae||t===B||me||K||G||typeof t=="object"&&t!==null&&(t.$$typeof===w||t.$$typeof===I||t.$$typeof===g||t.$$typeof===y||t.$$typeof===h||t.$$typeof===Ze||t.getModuleId!==void 0))}function It(t,i,s){var u=t.displayName;if(u)return u;var p=i.displayName||i.name||"";return p!==""?s+"("+p+")":s}function et(t){return t.displayName||"Context"}function Y(t){if(t==null)return null;if(typeof t.tag=="number"&&A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case c:return"Fragment";case n:return"Portal";case o:return"Profiler";case d:return"StrictMode";case _:return"Suspense";case v:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case y:var i=t;return et(i)+".Consumer";case g:var s=t;return et(s._context)+".Provider";case h:return It(t,t.render,"ForwardRef");case I:var u=t.displayName||null;return u!==null?u:Y(t.type)||"Memo";case w:{var p=t,T=p._payload,b=p._init;try{return Y(b(T))}catch{return null}}}return null}var z=Object.assign,ie=0,tt,rt,at,it,nt,st,lt;function ct(){}ct.__reactDisabledLog=!0;function Pt(){{if(ie===0){tt=console.log,rt=console.info,at=console.warn,it=console.error,nt=console.group,st=console.groupCollapsed,lt=console.groupEnd;var t={configurable:!0,enumerable:!0,value:ct,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}ie++}}function jt(){{if(ie--,ie===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},t,{value:tt}),info:z({},t,{value:rt}),warn:z({},t,{value:at}),error:z({},t,{value:it}),group:z({},t,{value:nt}),groupCollapsed:z({},t,{value:st}),groupEnd:z({},t,{value:lt})})}ie<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ve=C.ReactCurrentDispatcher,be;function ce(t,i,s){{if(be===void 0)try{throw Error()}catch(p){var u=p.stack.trim().match(/\n( *(at )?)/);be=u&&u[1]||""}return`
18
- `+be+t}}var pe=!1,oe;{var Dt=typeof WeakMap=="function"?WeakMap:Map;oe=new Dt}function ot(t,i){if(!t||pe)return"";{var s=oe.get(t);if(s!==void 0)return s}var u;pe=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var T;T=ve.current,ve.current=null,Pt();try{if(i){var b=function(){throw Error()};if(Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(H){u=H}Reflect.construct(t,[],b)}else{try{b.call()}catch(H){u=H}t.call(b.prototype)}}else{try{throw Error()}catch(H){u=H}t()}}catch(H){if(H&&u&&typeof H.stack=="string"){for(var m=H.stack.split(`
19
- `),D=u.stack.split(`
20
- `),S=m.length-1,O=D.length-1;S>=1&&O>=0&&m[S]!==D[O];)O--;for(;S>=1&&O>=0;S--,O--)if(m[S]!==D[O]){if(S!==1||O!==1)do if(S--,O--,O<0||m[S]!==D[O]){var x=`
21
- `+m[S].replace(" at new "," at ");return t.displayName&&x.includes("<anonymous>")&&(x=x.replace("<anonymous>",t.displayName)),typeof t=="function"&&oe.set(t,x),x}while(S>=1&&O>=0);break}}}finally{pe=!1,ve.current=T,jt(),Error.prepareStackTrace=p}var X=t?t.displayName||t.name:"",Nt=X?ce(X):"";return typeof t=="function"&&oe.set(t,Nt),Nt}function Lt(t,i,s){return ot(t,!1)}function $t(t){var i=t.prototype;return!!(i&&i.isReactComponent)}function ue(t,i,s){if(t==null)return"";if(typeof t=="function")return ot(t,$t(t));if(typeof t=="string")return ce(t);switch(t){case _:return ce("Suspense");case v:return ce("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case h:return Lt(t.render);case I:return ue(t.type,i,s);case w:{var u=t,p=u._payload,T=u._init;try{return ue(T(p),i,s)}catch{}}}return""}var fe=Object.prototype.hasOwnProperty,ut={},ft=C.ReactDebugCurrentFrame;function ge(t){if(t){var i=t._owner,s=ue(t.type,t._source,i?i.type:null);ft.setExtraStackFrame(s)}else ft.setExtraStackFrame(null)}function Ft(t,i,s,u,p){{var T=Function.call.bind(fe);for(var b in t)if(T(t,b)){var m=void 0;try{if(typeof t[b]!="function"){var D=Error((u||"React class")+": "+s+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw D.name="Invariant Violation",D}m=t[b](i,b,u,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){m=S}m&&!(m instanceof Error)&&(ge(p),A("%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,b,typeof m),ge(null)),m instanceof Error&&!(m.message in ut)&&(ut[m.message]=!0,ge(p),A("Failed %s type: %s",s,m.message),ge(null))}}}var xt=Array.isArray;function ye(t){return xt(t)}function Mt(t){{var i=typeof Symbol=="function"&&Symbol.toStringTag,s=i&&t[Symbol.toStringTag]||t.constructor.name||"Object";return s}}function Bt(t){try{return gt(t),!1}catch{return!0}}function gt(t){return""+t}function ht(t){if(Bt(t))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mt(t)),gt(t)}var ne=C.ReactCurrentOwner,Wt={key:!0,ref:!0,__self:!0,__source:!0},dt,mt,_e;_e={};function Yt(t){if(fe.call(t,"ref")){var i=Object.getOwnPropertyDescriptor(t,"ref").get;if(i&&i.isReactWarning)return!1}return t.ref!==void 0}function Ht(t){if(fe.call(t,"key")){var i=Object.getOwnPropertyDescriptor(t,"key").get;if(i&&i.isReactWarning)return!1}return t.key!==void 0}function Ut(t,i){if(typeof t.ref=="string"&&ne.current&&i&&ne.current.stateNode!==i){var s=Y(ne.current.type);_e[s]||(A('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',Y(ne.current.type),t.ref),_e[s]=!0)}}function Vt(t,i){{var s=function(){dt||(dt=!0,A("%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))};s.isReactWarning=!0,Object.defineProperty(t,"key",{get:s,configurable:!0})}}function zt(t,i){{var s=function(){mt||(mt=!0,A("%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))};s.isReactWarning=!0,Object.defineProperty(t,"ref",{get:s,configurable:!0})}}var Jt=function(t,i,s,u,p,T,b){var m={$$typeof:a,type:t,key:i,ref:s,props:b,_owner:T};return m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(m,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(m,"_source",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m};function Kt(t,i,s,u,p){{var T,b={},m=null,D=null;s!==void 0&&(ht(s),m=""+s),Ht(i)&&(ht(i.key),m=""+i.key),Yt(i)&&(D=i.ref,Ut(i,p));for(T in i)fe.call(i,T)&&!Wt.hasOwnProperty(T)&&(b[T]=i[T]);if(t&&t.defaultProps){var S=t.defaultProps;for(T in S)b[T]===void 0&&(b[T]=S[T])}if(m||D){var O=typeof t=="function"?t.displayName||t.name||"Unknown":t;m&&Vt(b,O),D&&zt(b,O)}return Jt(t,m,D,p,u,ne.current,b)}}var Te=C.ReactCurrentOwner,vt=C.ReactDebugCurrentFrame;function q(t){if(t){var i=t._owner,s=ue(t.type,t._source,i?i.type:null);vt.setExtraStackFrame(s)}else vt.setExtraStackFrame(null)}var Ne;Ne=!1;function Ae(t){return typeof t=="object"&&t!==null&&t.$$typeof===a}function bt(){{if(Te.current){var t=Y(Te.current.type);if(t)return`
17
+ */var ke;function yt(){return ke||(ke=1,process.env.NODE_ENV!=="production"&&function(){var e=Ne.default,a=Symbol.for("react.element"),n=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),y=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),P=Symbol.iterator,$="@@iterator";function oe(t){if(t===null||typeof t!="object")return null;var i=P&&t[P]||t[$];return typeof i=="function"?i:null}var H=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(t){{for(var i=arguments.length,l=new Array(i>1?i-1:0),f=1;f<i;f++)l[f-1]=arguments[f];B("error",t,l)}}function B(t,i,l){{var f=H.ReactDebugCurrentFrame,v=f.getStackAddendum();v!==""&&(i+="%s",l=l.concat([v]));var g=l.map(function(m){return String(m)});g.unshift("Warning: "+i),Function.prototype.apply.call(console[t],console,g)}}var Q=!1,ie=!1,Tt=!1,wt=!1,Ct=!1,Ke;Ke=Symbol.for("react.module.reference");function St(t){return!!(typeof t=="string"||typeof t=="function"||t===s||t===o||Ct||t===u||t===O||t===N||wt||t===L||Q||ie||Tt||typeof t=="object"&&t!==null&&(t.$$typeof===S||t.$$typeof===j||t.$$typeof===p||t.$$typeof===y||t.$$typeof===d||t.$$typeof===Ke||t.getModuleId!==void 0))}function xt(t,i,l){var f=t.displayName;if(f)return f;var v=i.displayName||i.name||"";return v!==""?l+"("+v+")":l}function Ge(t){return t.displayName||"Context"}function W(t){if(t==null)return null;if(typeof t.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case s:return"Fragment";case n:return"Portal";case o:return"Profiler";case u:return"StrictMode";case O:return"Suspense";case N:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case y:var i=t;return Ge(i)+".Consumer";case p:var l=t;return Ge(l._context)+".Provider";case d:return xt(t,t.render,"ForwardRef");case j:var f=t.displayName||null;return f!==null?f:W(t.type)||"Memo";case S:{var v=t,g=v._payload,m=v._init;try{return W(m(g))}catch{return null}}}return null}var U=Object.assign,Z=0,Xe,qe,Qe,Ze,et,tt,rt;function at(){}at.__reactDisabledLog=!0;function Ot(){{if(Z===0){Xe=console.log,qe=console.info,Qe=console.warn,Ze=console.error,et=console.group,tt=console.groupCollapsed,rt=console.groupEnd;var t={configurable:!0,enumerable:!0,value:at,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}Z++}}function Pt(){{if(Z--,Z===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},t,{value:Xe}),info:U({},t,{value:qe}),warn:U({},t,{value:Qe}),error:U({},t,{value:Ze}),group:U({},t,{value:et}),groupCollapsed:U({},t,{value:tt}),groupEnd:U({},t,{value:rt})})}Z<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var fe=H.ReactCurrentDispatcher,de;function ne(t,i,l){{if(de===void 0)try{throw Error()}catch(v){var f=v.stack.trim().match(/\n( *(at )?)/);de=f&&f[1]||""}return`
18
+ `+de+t}}var he=!1,le;{var jt=typeof WeakMap=="function"?WeakMap:Map;le=new jt}function it(t,i){if(!t||he)return"";{var l=le.get(t);if(l!==void 0)return l}var f;he=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=fe.current,fe.current=null,Ot();try{if(i){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(Y){f=Y}Reflect.construct(t,[],m)}else{try{m.call()}catch(Y){f=Y}t.call(m.prototype)}}else{try{throw Error()}catch(Y){f=Y}t()}}catch(Y){if(Y&&f&&typeof Y.stack=="string"){for(var b=Y.stack.split(`
19
+ `),A=f.stack.split(`
20
+ `),E=b.length-1,w=A.length-1;E>=1&&w>=0&&b[E]!==A[w];)w--;for(;E>=1&&w>=0;E--,w--)if(b[E]!==A[w]){if(E!==1||w!==1)do if(E--,w--,w<0||b[E]!==A[w]){var I=`
21
+ `+b[E].replace(" at new "," at ");return t.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",t.displayName)),typeof t=="function"&&le.set(t,I),I}while(E>=1&&w>=0);break}}}finally{he=!1,fe.current=g,Pt(),Error.prepareStackTrace=v}var J=t?t.displayName||t.name:"",pt=J?ne(J):"";return typeof t=="function"&&le.set(t,pt),pt}function At(t,i,l){return it(t,!1)}function Lt(t){var i=t.prototype;return!!(i&&i.isReactComponent)}function se(t,i,l){if(t==null)return"";if(typeof t=="function")return it(t,Lt(t));if(typeof t=="string")return ne(t);switch(t){case O:return ne("Suspense");case N:return ne("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case d:return At(t.render);case j:return se(t.type,i,l);case S:{var f=t,v=f._payload,g=f._init;try{return se(g(v),i,l)}catch{}}}return""}var ce=Object.prototype.hasOwnProperty,nt={},lt=H.ReactDebugCurrentFrame;function ue(t){if(t){var i=t._owner,l=se(t.type,t._source,i?i.type:null);lt.setExtraStackFrame(l)}else lt.setExtraStackFrame(null)}function It(t,i,l,f,v){{var g=Function.call.bind(ce);for(var m in t)if(g(t,m)){var b=void 0;try{if(typeof t[m]!="function"){var A=Error((f||"React class")+": "+l+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}b=t[m](i,m,f,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){b=E}b&&!(b instanceof Error)&&(ue(v),T("%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,m,typeof b),ue(null)),b instanceof Error&&!(b.message in nt)&&(nt[b.message]=!0,ue(v),T("Failed %s type: %s",l,b.message),ue(null))}}}var Dt=Array.isArray;function be(t){return Dt(t)}function Ft(t){{var i=typeof Symbol=="function"&&Symbol.toStringTag,l=i&&t[Symbol.toStringTag]||t.constructor.name||"Object";return l}}function $t(t){try{return st(t),!1}catch{return!0}}function st(t){return""+t}function ct(t){if($t(t))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ft(t)),st(t)}var ee=H.ReactCurrentOwner,Mt={key:!0,ref:!0,__self:!0,__source:!0},ut,ot,me;me={};function Wt(t){if(ce.call(t,"ref")){var i=Object.getOwnPropertyDescriptor(t,"ref").get;if(i&&i.isReactWarning)return!1}return t.ref!==void 0}function Yt(t){if(ce.call(t,"key")){var i=Object.getOwnPropertyDescriptor(t,"key").get;if(i&&i.isReactWarning)return!1}return t.key!==void 0}function Ht(t,i){if(typeof t.ref=="string"&&ee.current&&i&&ee.current.stateNode!==i){var l=W(ee.current.type);me[l]||(T('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',W(ee.current.type),t.ref),me[l]=!0)}}function Ut(t,i){{var l=function(){ut||(ut=!0,T("%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))};l.isReactWarning=!0,Object.defineProperty(t,"key",{get:l,configurable:!0})}}function Vt(t,i){{var l=function(){ot||(ot=!0,T("%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))};l.isReactWarning=!0,Object.defineProperty(t,"ref",{get:l,configurable:!0})}}var Bt=function(t,i,l,f,v,g,m){var b={$$typeof:a,type:t,key:i,ref:l,props:m,_owner:g};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function zt(t,i,l,f,v){{var g,m={},b=null,A=null;l!==void 0&&(ct(l),b=""+l),Yt(i)&&(ct(i.key),b=""+i.key),Wt(i)&&(A=i.ref,Ht(i,v));for(g in i)ce.call(i,g)&&!Mt.hasOwnProperty(g)&&(m[g]=i[g]);if(t&&t.defaultProps){var E=t.defaultProps;for(g in E)m[g]===void 0&&(m[g]=E[g])}if(b||A){var w=typeof t=="function"?t.displayName||t.name||"Unknown":t;b&&Ut(m,w),A&&Vt(m,w)}return Bt(t,b,A,v,f,ee.current,m)}}var ve=H.ReactCurrentOwner,ft=H.ReactDebugCurrentFrame;function z(t){if(t){var i=t._owner,l=se(t.type,t._source,i?i.type:null);ft.setExtraStackFrame(l)}else ft.setExtraStackFrame(null)}var pe;pe=!1;function ge(t){return typeof t=="object"&&t!==null&&t.$$typeof===a}function dt(){{if(ve.current){var t=W(ve.current.type);if(t)return`
22
22
 
23
- Check the render method of \``+t+"`."}return""}}function Gt(t){{if(t!==void 0){var i=t.fileName.replace(/^.*[\\\/]/,""),s=t.lineNumber;return`
23
+ Check the render method of \``+t+"`."}return""}}function Jt(t){{if(t!==void 0){var i=t.fileName.replace(/^.*[\\\/]/,""),l=t.lineNumber;return`
24
24
 
25
- Check your code at `+i+":"+s+"."}return""}}var pt={};function qt(t){{var i=bt();if(!i){var s=typeof t=="string"?t:t.displayName||t.name;s&&(i=`
25
+ Check your code at `+i+":"+l+"."}return""}}var ht={};function Kt(t){{var i=dt();if(!i){var l=typeof t=="string"?t:t.displayName||t.name;l&&(i=`
26
26
 
27
- Check the top-level render call using <`+s+">.")}return i}}function yt(t,i){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var s=qt(i);if(pt[s])return;pt[s]=!0;var u="";t&&t._owner&&t._owner!==Te.current&&(u=" It was passed a child from "+Y(t._owner.type)+"."),q(t),A('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)}}function _t(t,i){{if(typeof t!="object")return;if(ye(t))for(var s=0;s<t.length;s++){var u=t[s];Ae(u)&&yt(u,i)}else if(Ae(t))t._store&&(t._store.validated=!0);else if(t){var p=W(t);if(typeof p=="function"&&p!==t.entries)for(var T=p.call(t),b;!(b=T.next()).done;)Ae(b.value)&&yt(b.value,i)}}}function Xt(t){{var i=t.type;if(i==null||typeof i=="string")return;var s;if(typeof i=="function")s=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===h||i.$$typeof===I))s=i.propTypes;else return;if(s){var u=Y(i);Ft(s,t.props,"prop",u,t)}else if(i.PropTypes!==void 0&&!Ne){Ne=!0;var p=Y(i);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qt(t){{for(var i=Object.keys(t.props),s=0;s<i.length;s++){var u=i[s];if(u!=="children"&&u!=="key"){q(t),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),q(null);break}}t.ref!==null&&(q(t),A("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}function Tt(t,i,s,u,p,T){{var b=Ot(t);if(!b){var m="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(m+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var D=Gt(p);D?m+=D:m+=bt();var S;t===null?S="null":ye(t)?S="array":t!==void 0&&t.$$typeof===a?(S="<"+(Y(t.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):S=typeof t,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,m)}var O=Kt(t,i,s,p,T);if(O==null)return O;if(b){var x=i.children;if(x!==void 0)if(u)if(ye(x)){for(var X=0;X<x.length;X++)_t(x[X],t);Object.freeze&&Object.freeze(x)}else A("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else _t(x,t)}return t===c?Qt(O):Xt(O),O}}function Zt(t,i,s){return Tt(t,i,s,!0)}function er(t,i,s){return Tt(t,i,s,!1)}var tr=er,rr=Zt;ee.Fragment=c,ee.jsx=tr,ee.jsxs=rr}()),ee}(function(e){process.env.NODE_ENV==="production"?e.exports=Rt():e.exports=Et()})(se);const M=se.exports.Fragment,r=se.exports.jsx,l=se.exports.jsxs,$=({node:e})=>e.hasTitle()?r("div",{className:"title",children:k.default(e.getTitle()||"")}):null,te=({node:e})=>e.hasTitle()?r("div",{className:"title",children:k.default(e.getCaptionedTitle()||"")}):null,R=e=>typeof e.getRole()=="string"?e.getRole():void 0,N=e=>e.getLineNumber()?{"data-lineno":e.getLineNumber()}:{},Se=({node:e})=>{const a=e.getAttributes(),n=e.getDocument(),c=U(e),d=()=>n.getAttribute("icons")==="font"&&!a.icon?r("i",{className:`fa icon-${a.name}`,title:a.textlabel}):r("img",{src:e.getIconUri(a.name),alt:a.textlabel});return e.content_model,r("div",{className:`admonitionblock ${a.name}`,...N(e),children:r("table",{children:r("tbody",{children:l("tr",{children:[r("td",{className:"icon",children:n.hasAttribute("icons")?d():r("div",{className:"title",children:e.getAttribute("textlabel")})}),l("td",{className:"content",children:[r($,{node:e}),k.default(c)]})]})})})})},we=({node:e})=>{const a=e.getAttribute("start"),n=e.getAttribute("start"),c=(a||n)&&`#t=${a||""}`+n?`,${n}`:"";return l("div",{className:"audioblock",...N(e),children:[r($,{node:e}),r("div",{className:"content",children:r("audio",{src:`${e.getMediaUri(e.getAttribute("target"))}${c}`,autoPlay:e.isOption("autoplay"),controls:!e.isOption("nocontrols"),loop:e.isOption("loop"),children:"Your browser does not support the audio tag."})})]})},Ce=({node:e})=>l("div",{className:"colist",...N(e),children:[r($,{node:e}),r("table",{children:r("tbody",{children:e.getItems().map((a,n)=>l("tr",{children:[l("td",{children:[r("i",{className:"conum","data-value":n+1}),r("b",{children:n+1})]}),l("td",{children:[k.default(L(a)),r(j,{blocks:a.getBlocks()})]})]},n))})})]});var Oe={exports:{}};/*!
27
+ Check the top-level render call using <`+l+">.")}return i}}function bt(t,i){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var l=Kt(i);if(ht[l])return;ht[l]=!0;var f="";t&&t._owner&&t._owner!==ve.current&&(f=" It was passed a child from "+W(t._owner.type)+"."),z(t),T('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),z(null)}}function mt(t,i){{if(typeof t!="object")return;if(be(t))for(var l=0;l<t.length;l++){var f=t[l];ge(f)&&bt(f,i)}else if(ge(t))t._store&&(t._store.validated=!0);else if(t){var v=oe(t);if(typeof v=="function"&&v!==t.entries)for(var g=v.call(t),m;!(m=g.next()).done;)ge(m.value)&&bt(m.value,i)}}}function Gt(t){{var i=t.type;if(i==null||typeof i=="string")return;var l;if(typeof i=="function")l=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===d||i.$$typeof===j))l=i.propTypes;else return;if(l){var f=W(i);It(l,t.props,"prop",f,t)}else if(i.PropTypes!==void 0&&!pe){pe=!0;var v=W(i);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",v||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xt(t){{for(var i=Object.keys(t.props),l=0;l<i.length;l++){var f=i[l];if(f!=="children"&&f!=="key"){z(t),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",f),z(null);break}}t.ref!==null&&(z(t),T("Invalid attribute `ref` supplied to `React.Fragment`."),z(null))}}function vt(t,i,l,f,v,g){{var m=St(t);if(!m){var b="";(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.");var A=Jt(v);A?b+=A:b+=dt();var E;t===null?E="null":be(t)?E="array":t!==void 0&&t.$$typeof===a?(E="<"+(W(t.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):E=typeof t,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,b)}var w=zt(t,i,l,v,g);if(w==null)return w;if(m){var I=i.children;if(I!==void 0)if(f)if(be(I)){for(var J=0;J<I.length;J++)mt(I[J],t);Object.freeze&&Object.freeze(I)}else T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else mt(I,t)}return t===s?Xt(w):Gt(w),w}}function qt(t,i,l){return vt(t,i,l,!0)}function Qt(t,i,l){return vt(t,i,l,!1)}var Zt=Qt,er=qt;X.Fragment=s,X.jsx=Zt,X.jsxs=er}()),X}(function(e){process.env.NODE_ENV==="production"?e.exports=gt():e.exports=yt()})(te);const D=te.exports.Fragment,r=te.exports.jsx,c=te.exports.jsxs,R=({text:e})=>e?r("div",{className:"title",children:_.default(e)}):null,Ee=({node:e})=>{const{document:a}=C.useContext(F),n=a.attributes||{},s=e.attributes,u=()=>n.icons==="font"&&!s.icon?r("i",{className:`fa icon-${s.name}`,title:s.textlabel}):r("img",{src:e.iconUri,alt:s.textlabel});return r("div",{className:`admonitionblock ${s.name}`,...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:r("table",{children:r("tbody",{children:c("tr",{children:[r("td",{className:"icon",children:n.icons?u():r("div",{className:"title",children:s.textlabel})}),c("td",{className:"content",children:[r(R,{text:e.title}),e.content&&_.default(e.content)]})]})})})})},Re=({node:e})=>{const a=e.attributes.start,n=e.attributes.end,s=(a||n)&&`#t=${a||""}`+n?`,${n}`:"";return c("div",{className:"audioblock",...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:[r(R,{text:e.title}),r("div",{className:"content",children:r("audio",{src:`${e.mediaUri}${s}`,autoPlay:e.autoplay,controls:!e.noControls,loop:e.loop,children:"Your browser does not support the audio tag."})})]})},Te=({node:e})=>c("div",{className:"colist",...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:[r(R,{text:e.title}),r("table",{children:r("tbody",{children:e.items.map((a,n)=>c("tr",{children:[c("td",{children:[r("i",{className:"conum","data-value":n+1}),r("b",{children:n+1})]}),c("td",{children:[a.text&&_.default(a.text),r(x,{blocks:a.blocks})]})]},n))})})]});var we={exports:{}};/*!
28
28
  Copyright (c) 2018 Jed Watson.
29
29
  Licensed under the MIT License (MIT), see
30
30
  http://jedwatson.github.io/classnames
31
- */(function(e){(function(){var a={}.hasOwnProperty;function n(){for(var c=[],d=0;d<arguments.length;d++){var o=arguments[d];if(!!o){var g=typeof o;if(g==="string"||g==="number")c.push(o);else if(Array.isArray(o)){if(o.length){var y=n.apply(null,o);y&&c.push(y)}}else if(g==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){c.push(o.toString());continue}for(var h in o)a.call(o,h)&&o[h]&&c.push(h)}}}return c.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Oe);const E=Oe.exports,Ie=({node:e})=>{const a=e.getStyle(),n=o=>{const g=o,y=g[0];let h=g[1];return h.getNodeName||(h=null),{terms:y,dd:h}},c=o=>{if(o)return l("dd",{children:[o.hasText()&&r("p",{children:k.default(L(o))}),o.hasBlocks()&&r(j,{blocks:o.getBlocks()})]})},d=e.hasTitle()&&r("div",{className:"title",children:e.getCaptionedTitle()});if(a==="qanda")return l("div",{className:E("qlist qanda",R(e)),...N(e),children:[d,r("ol",{children:e.getItems().map((o,g)=>{const{terms:y,dd:h}=n(o);return l("li",{children:[y.map((_,v)=>r("p",{children:r("em",{children:k.default(L(_))})},v)),c(h)]},g)})})]});if(a==="horizontal"){const o=e.getAttribute("labelwidth"),g=e.getAttribute("itemwidth");return l("div",{className:E("hdlist",R(e)),children:[d,l("table",{children:[(o||g)&&l("colgroup",{children:[r("col",{style:{width:o?`${o.replace("%","")}%`:""}}),r("col",{style:{width:g?`${g.replace("%","")}%`:""}})]}),r("tbody",{children:e.getItems().map((y,h)=>{const{terms:_,dd:v}=n(y);return l("tr",{children:[r("td",{className:E("hdlist1",e.isOption("strong")?"strong":""),children:_.map((I,w)=>l(P.Fragment,{children:[w!==0&&r("br",{}),k.default(L(I))]},w))}),v&&l("td",{className:"hdlist2",children:[v.hasText()&&r("p",{children:k.default(L(v))}),v.hasBlocks()&&r(j,{blocks:v.getBlocks()})]})]},h)})})]})]})}else return l("div",{className:E("dlist",e.getStyle(),R(e)),children:[d,r("dl",{children:e.getItems().map((o,g)=>{const{terms:y,dd:h}=n(o);return l(P.Fragment,{children:[y.map((_,v)=>r("dt",{className:"hdlist1",children:k.default(L(_))},v)),c(h)]},g)})})]})},re=({node:e,opts:a})=>{if(!e.hasSections())return null;const n=e.getSections(),c=e.getDocument(),d=P.useMemo(()=>c.getAttributes(),[e]),o=P.useMemo(()=>c.getAttribute("sectnumlevels"),[e]),g=P.useMemo(()=>c.getAttribute("toclevels"),[e]),y=(a==null?void 0:a.sectNumLevels)||(o?parseInt(o):3),h=(a==null?void 0:a.tocLevels)||(g?parseInt(g):2);return r("ul",{className:`sectlevel${n[0].getLevel()}`,children:n.map(_=>{let v=_.$sectnum();v=v==="."||v===".."?"":v;const I=_.getLevel();let w="";if(_.getCaption())w=_.getCaptionedTitle();else if(I<=y)if(I<2&&c.getDoctype()=="book"){const B=_.getSectionName();B==="chapter"?w=`${d["chapter-signifier"]||""} ${v} ${_.getTitle()}`:B==="part"?w=`${d["part-signifier"]||""} ${v} ${_.getTitle()}`:w=`${v} ${_.getTitle()}`}else w=`${v} ${_.getTitle()}`;else w=_.getTitle()||"";return l("li",{children:[r("a",{href:`#${_.getId()}`,children:k.default(w)}),I<h&&r(re,{node:_,opts:{tocLevels:h,sectNumLevels:y}})]},_.getId())})})},Pe=({document:e})=>{const a=e.getBlocks(),n=e.getFootnotes(),c=()=>{var g;return e.getNoheader()?null:r("div",{id:"header",children:e.hasHeader()&&l(M,{children:[r("h1",{dangerouslySetInnerHTML:{__html:((g=e.getDocumentTitle())==null?void 0:g.toString())||""}}),r(o,{}),e.hasSections()&&e.hasAttribute("toc")&&e.getAttribute("toc-placement")==="auto"&&l("div",{id:"toc",className:e.getAttribute("toc-class","toc"),children:[r("div",{id:"toctitle",children:e.getAttribute("toc-title")}),r(re,{node:e})]})]})})},d=()=>n&&n.length>0&&a&&!a[0].getDocument().hasAttribute("nofootnotes")?l("div",{id:"footnotes",children:[r("hr",{}),n.map(g=>l("div",{className:"footnote",id:`_footnotedef_${g.getIndex()}`,children:[r("a",{href:`#_footnoteref_${g.getIndex()}`,children:g.getIndex()}),"."," ",k.default(L(g)||"")]},g.getIndex()))]}):null,o=()=>e.getAuthors().length>0||e.hasAttribute("revnumber")||e.hasAttribute("revdate")||e.hasAttribute("revremark")?l("div",{className:"details",children:[e.getAuthors().map((y,h)=>l(P.Fragment,{children:[y.getName()&&l(M,{children:[r("span",{id:`author${h+1>1?h+1:""}`,className:"author",children:k.default(e.applySubstitutions(y.getName()||"").toString())}),r("br",{})]}),y.getEmail()&&l(M,{children:[r("span",{id:`email${h+1>1?h+1:""}`,className:"email",children:k.default(e.applySubstitutions(y.getEmail()||"").toString())}),r("br",{})]})]},h)),e.hasAttribute("revnumber")&&r("span",{id:"revnumber",children:`${e.getAttribute("version-label").toLowerCase()} ${e.getAttribute("revnumber")}${e.hasAttribute("revdate")?",":""}`}),e.hasAttribute("revdate")&&r("span",{id:"revdate",children:e.getAttribute("revdate")}),e.hasAttribute("revremark")&&l(M,{children:[r("br",{}),r("span",{id:"revremark",children:e.getAttribute("revremark")})]})]}):null;return l(M,{children:[r(c,{}),r("div",{id:"content",children:r(j,{blocks:a})}),r(d,{})]})},je=({node:e})=>{if(e.isOption("collapsible")){const a=e.isOption("collapsible"),n=e.getTitle()||"Details",c=e.isOption("open")?!0:void 0;if(a)return l("details",{className:R(e),open:c,...N(e),...e.getId()?{id:e.getId()}:{},children:[r("summary",{className:"title",children:k.default(n)}),r("div",{className:"content",children:r(j,{blocks:e.getBlocks()})})]})}return l("div",{className:E("exampleblock",R(e)),...N(e),...e.getId()?{id:e.getId()}:{},children:[r(te,{node:e}),r("div",{className:"content",children:r(j,{blocks:e.getBlocks()})})]})},De=({node:e})=>{const a=e.getLevel();return l(M,{children:[r("a",{className:"sectionanchor",...e.getId()?{id:e.getId()}:{},...N(e)}),P.createElement(`h${a+1}`,{className:E(R(e),e.getStyle())},k.default(e.getTitle()||""))]})},Le=({node:e})=>{const a=e.getAttribute("target");let n=r("img",{src:e.getImageUri(a),alt:e.getAttribute("alt"),width:e.getAttribute("width"),height:e.getAttribute("height")});return e.hasAttribute("link")&&(n=r("a",{className:"image",href:e.getAttribute("link"),children:n})),l("div",{className:`imageblock ${e.hasAttribute("align")?"text-"+e.getAttribute("align"):""} ${e.hasAttribute("float")?e.getAttribute("float"):""} ${e.getRole()?e.getRole():""}`,...N(e),style:{maxWidth:e.getAttribute("width"),maxHeight:e.getAttribute("height")},children:[r("div",{className:"content",children:n}),r(te,{node:e})]})},$e=({node:e})=>{const a=e.getDocument(),n=e.getAttributes(),c=e.isOption("nowrap")||!a.hasAttribute("prewrap"),d=U(e);if(e.getStyle()==="source"){const o=n.language;return l("div",{className:"listingblock",...N(e),children:[r(te,{node:e}),r("div",{className:"content",children:r("pre",{className:E("highlight",c?" nowrap":""),children:o?r("code",{className:o?`language-${o}`:"","data-lang":o,dangerouslySetInnerHTML:{__html:d}}):r("code",{dangerouslySetInnerHTML:{__html:d}})})})]})}else return l("div",{className:"listingblock",...N(e),children:[r(te,{node:e}),r("div",{className:"content",children:r("pre",{className:c?" nowrap":"",children:r("code",{dangerouslySetInnerHTML:{__html:e.getSource()}})})})]})},Fe=({node:e})=>{const n=e.getDocument().getAttributes().prewrap===void 0||e.isOption("nowrap");return l("div",{className:"literalblock",...N(e),children:[r($,{node:e}),r("div",{className:"content",children:r("pre",{className:n?"nowrap":"",children:e.getSource()})})]})},xe=({node:e})=>l("div",{className:E("olist",R(e),e.getStyle()),...N(e),children:[r($,{node:e}),r("ol",{className:e.getStyle(),reversed:e.isOption("reversed"),start:e.getAttribute("start"),children:e.getItems().map((a,n)=>l("li",{className:R(e)?R(e):"",children:[r("p",{children:k.default(L(a))}),r(j,{blocks:a.getBlocks()})]},n))})]}),Me=({node:e})=>{const a=e.getStyle();return a==="abstract"?l("div",{className:E("quoteblock abstract",R(e)),...N(e),children:[r($,{node:e}),r("blockquote",{className:"content",children:r(j,{blocks:e.getBlocks()})})]}):l("div",{className:E("openblock",a&&a!=="open"?a:"",R(e)),...N(e),children:[r($,{node:e}),r("div",{className:"content",children:r(j,{blocks:e.getBlocks()})})]})},Be=()=>r("div",{style:{pageBreakAfter:"always"}}),We=({node:e})=>{const a=U(e);return l("div",{...e.getId()?{id:e.getId()}:{},className:E("paragraph",R(e)),...N(e),children:[r($,{node:e}),r("p",{dangerouslySetInnerHTML:{__html:a}})]})},Ye=({node:e})=>{const a=U(e);return r(M,{children:k.default(a)})},He=({node:e})=>{const a=e.getDocument(),n=a.getAttribute("toc-placement")==="preamble"&&a.hasSections()&&a.hasAttribute("toc");return r("div",{id:"preamble",...N(e),children:l("div",{className:"sectionbody",children:[r(j,{blocks:e.getBlocks()}),n&&l("div",{id:"toc",className:a.getAttribute("toc-class","toc"),children:[r("div",{id:"toctitle",children:k.default(a.getAttribute("toc-title"))}),r(re,{node:a})]})]})})},Ue=({node:e})=>{const a=e.getAttribute("attribution"),n=e.getAttribute("citetitle"),c=U(e);return l("div",{...e.getId()?{id:e.getId()}:{},className:E("quoteblock",R(e)),...N(e),children:[r($,{node:e}),r("blockquote",{dangerouslySetInnerHTML:{__html:c}}),a&&l("div",{className:"attribution",children:["\u2014 ",a,n&&r("cite",{children:n})]})]})},Ve=({node:e})=>{const a=e.getDocument().getAttributes(),n=e.getLevel();let c="",d=e.getSectionNumeral();d=d==="."?"":d;const o=a.sectnumlevels?parseInt(a.sectnumlevels):3;if(e.getCaption())c=e.getCaptionedTitle();else if(e.isNumbered()&&n<=o)if(n<2&&e.getDocument().getDoctype()=="book"){const g=e.getSectionName();g==="chapter"?c=`${a["chapter-signifier"]||""} ${d} ${e.getTitle()}`:g==="part"?c=`${a["part-signifier"]||""} ${d} ${e.getTitle()}`:c=`${d} ${e.getTitle()}`}else c=`${d} ${e.getTitle()}`;else c=e.getTitle()||"";return a.sectlinks&&(c=l(M,{children:[r("a",{className:"anchor",id:e.getId()||"",...N(e)}),r("a",{className:"link",href:`#${e.getId()}`,dangerouslySetInnerHTML:{__html:c}})]})),n===0?l(M,{children:[r("h1",{className:E("sect0",R(e)),"data-sectnum":d,...N(e),children:c}),r(j,{blocks:e.getBlocks()})]}):l("div",{className:E(`sect${n}`,R(e)),...N(e),children:[P.createElement(`h${n+1}`,{"data-sectnum":d},c),r("div",{className:"sectionbody",children:r(j,{blocks:e.getBlocks()})})]})},ze=({node:e})=>r("div",{className:E("sidebarblock",R(e)),...N(e),children:l("div",{className:"content",children:[r($,{node:e}),r(j,{blocks:e.getBlocks()})]})}),Je=({node:e})=>{let a=["frame-"+e.getAttribute("frame","all","table-frame"),"grid-"+e.getAttribute("grid","all","table-grid")],n=e.getAttribute("stripes",null,"table-stripes");n&&a.push("stripes-"+n);let c=e.hasAutowidthOption(),d=e.getAttribute("tablepcwidth"),o=null;c&&!e.hasAttribute("width")?a.push("fit-content"):d==100?a.push("stretch"):o=`${d}%`,e.hasAttribute("float")&&a.push(e.getAttribute("float")),e.getRole()&&a.push(e.getRole()||"");const g=e.getRowCount(),y=e.getColumns(),h=e.getHeadRows(),_=e.getBodyRows(),v=e.getFootRows(),I=F=>E("tableblock",`halign-${F.getAttribute("halign")}`,`valign-${F.getAttribute("valign")}`),w=e.getTitle(),B=e.getId(),V=B||St(w||"");return l("table",{className:E("tableblock",...a),style:{width:o||void 0},...N(e),children:[e.hasTitle()&&l("caption",{className:"title",children:[!B&&r("a",{className:"anchor",id:V}),r("a",{href:`#${V}`,children:e.getCaptionedTitle()})]}),g>0&&r("colgroup",{children:y.map((F,W)=>{const C=F.getAttribute("colpcwidth");return r("col",{style:{width:`${C}%`}},W)})}),h.map((F,W)=>r("thead",{children:r("tr",{children:F.map((C,A)=>r("th",{className:I(C),dangerouslySetInnerHTML:{__html:L(C)}},A))})},W)),r("tbody",{children:_.map((F,W)=>r("tr",{children:F.map((C,A)=>{const de=C.getColumnSpan(),me=C.getRowSpan(),K=U(C),G={colSpan:de,rowSpan:me,className:I(C)},ae=C.getStyle();if(ae==="asciidoc")return P.createElement("td",{...G,key:A},r("div",{className:"content",dangerouslySetInnerHTML:{__html:K}}));if(ae==="literal")return P.createElement("td",{...G,key:A},r("div",{className:"literal",children:r("pre",{dangerouslySetInnerHTML:{__html:K}})}));if(ae==="header")return P.createElement("th",{...G,key:A},r("p",{className:"tableblock",dangerouslySetInnerHTML:{__html:K}}));{let le=K;return P.createElement("td",{...G,key:A},le.length===0?"":k.default(`<p class="tableblock">${le.join(`</p>
32
- <p class="tableblock">`)}</p>`))}})},W))}),v.map((F,W)=>r("tfoot",{children:r("tr",{children:F.map((C,A)=>r("td",{className:I(C),children:r("p",{className:"tableblock",dangerouslySetInnerHTML:{__html:L(C)}})},A))})},W))]})},St=e=>e.toString().normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/\s+/g,"_").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/-$/g,""),Ke=({node:e})=>{let a=e.getId()||"toc";const n=e.getDocument(),c=e.hasTitle()?e.getTitle():n.getAttribute("toc-title"),d=P.useMemo(()=>n.getAttribute("toc-placement"),[e]),o=P.useMemo(()=>n.hasAttribute("toc"),[e]),g=e.hasAttribute("levels")?parseInt(e.getAttribute("levels")):void 0;return d==="macro"&&n.hasSections()&&o?l("div",{id:a,className:E("toc",R(e)),children:[r("div",{id:`${a}title`,className:"title",children:k.default(c||"")}),r(re,{node:e.getDocument(),opts:{tocLevels:g}})]}):null},Ge=()=>r("hr",{}),qe=({node:e})=>{const a=e.isOption("checklist");return l("div",{...e.getId()?{id:e.getId()}:{},className:E("ulist",e.getStyle(),R(e),a&&"checklist"),...N(e),children:[r($,{node:e}),r("ul",{className:a?"checklist":"",children:e.getItems().map((n,c)=>a?r("li",{id:n.getId(),className:R(e),children:l("p",{children:[a&&n.hasAttribute("checkbox")&&r("i",{className:E("fa",n.hasAttribute("checked")?"fa-check-square-o":"fa-square-o")})," ",k.default(L(n))]})},c):l("li",{id:n.getId(),className:R(e),children:[r("p",{dangerouslySetInnerHTML:{__html:L(n)}}),r(j,{blocks:n.getBlocks()})]},c))})]})},Xe=({node:e})=>{const a=e.getAttribute("attribution"),n=e.getAttribute("citetitle"),c=U(e);return l("div",{...e.getId()?{id:e.getId()}:{},className:E("verseblock",R(e)),...N(e),children:[r($,{node:e}),r("pre",{className:"content",dangerouslySetInnerHTML:{__html:c}}),a&&l("div",{className:"attribution",children:["\u2014 ",a,n&&r("cite",{children:n})]})]})},Qe=P.createContext({}),wt=({content:e,options:a})=>{const n=a&&a.customDocument;return r(Qe.Provider,{value:a||{},children:n?r(n,{document:e}):r(Pe,{document:e})})},j=({blocks:e})=>r(M,{children:e.map((a,n)=>r(Ct,{node:a},`${n}-${a.getNodeName()}`))}),Ct=({node:e})=>{const a=P.useContext(Qe),n=e.getNodeName(),c=e.getDocument(),d=e.getAttributes();c.playbackAttributes(d);const o=a&&a.overrides&&a.overrides[n];if(o)return r(o,{node:e});switch(n){case"audio":return r(we,{node:e});case"preamble":return r(He,{node:e});case"section":return r(Ve,{node:e});case"paragraph":return r(We,{node:e});case"dlist":return r(Ie,{node:e});case"ulist":return r(qe,{node:e});case"floating_title":return r(De,{node:e});case"admonition":return r(Se,{node:e});case"listing":return r($e,{node:e});case"literal":return r(Fe,{node:e});case"image":return r(Le,{node:e});case"colist":return r(Ce,{node:e});case"olist":return r(xe,{node:e});case"table":return r(Je,{node:e});case"thematic_break":return r(Ge,{});case"open":return r(Me,{node:e});case"pass":return r(Ye,{node:e});case"page_break":return r(Be,{});case"example":return r(je,{node:e});case"sidebar":return r(ze,{node:e});case"quote":return r(Ue,{node:e});case"verse":return r(Xe,{node:e});case"toc":return r(Ke,{node:e});default:return r(M,{children:k.default(e.convert())})}};Object.defineProperty(f,"asciidoctor",{enumerable:!0,get:()=>kt.default}),Object.defineProperty(f,"parse",{enumerable:!0,get:()=>k.default}),f.Admonition=Se,f.Audio=we,f.CaptionedTitle=te,f.CoList=Ce,f.Content=j,f.DList=Ie,f.Document=Pe,f.Example=je,f.FloatingTitle=De,f.Image=Le,f.Listing=$e,f.Literal=Fe,f.OList=xe,f.Open=Me,f.Outline=re,f.PageBreak=Be,f.Paragraph=We,f.Pass=Ye,f.Preamble=He,f.Quote=Ue,f.Section=Ve,f.Sidebar=ze,f.Table=Je,f.TableOfContents=Ke,f.ThematicBreak=Ge,f.Title=$,f.UList=qe,f.Verse=Xe,f.default=wt,f.getContent=U,f.getLineNumber=N,f.getRole=R,f.getText=L,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
31
+ */(function(e){(function(){var a={}.hasOwnProperty;function n(){for(var s=[],u=0;u<arguments.length;u++){var o=arguments[u];if(!!o){var p=typeof o;if(p==="string"||p==="number")s.push(o);else if(Array.isArray(o)){if(o.length){var y=n.apply(null,o);y&&s.push(y)}}else if(p==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){s.push(o.toString());continue}for(var d in o)a.call(o,d)&&o[d]&&s.push(d)}}}return s.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(we);const k=we.exports,re=(e,a)=>e[`${a}-option`]!==void 0,ae=(e,a,n=void 0,s,u)=>{if(e[a]!==void 0)return e[a];const o=s||a;return o&&u&&u[o]!==void 0?u[o]:n},M=(e,a)=>e[a]!==void 0,Ce=({node:e})=>{const a=s=>{const u=s,o=u[0];let p=u[1];return p.type||(p=null),{terms:o,dd:p}},n=s=>{if(s)return c("dd",{children:[s.text&&r("p",{children:_.default(s.text)}),r(x,{blocks:s.blocks})]})};if(e.style==="qanda")return c("div",{className:k("qlist qanda",e.role),...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:[r(R,{text:e.title}),r("ol",{children:e.items.map((s,u)=>{const{terms:o,dd:p}=a(s);if(!!o)return c("li",{children:[o.map((y,d)=>r("p",{children:r("em",{children:_.default(y.text)})},d)),n(p)]},u)})})]});if(e.style==="horizontal"){const s=e.attributes.labelwidth,u=e.attributes.itemwidth;return c("div",{className:k("hdlist",e.role),children:[r(R,{text:e.title}),c("table",{children:[(s||u)&&c("colgroup",{children:[r("col",{style:{width:s?`${s.replace("%","")}%`:""}}),r("col",{style:{width:u?`${u.replace("%","")}%`:""}})]}),r("tbody",{children:e.items.map((o,p)=>{const{terms:y,dd:d}=a(o);if(!!y)return c("tr",{children:[r("td",{className:k("hdlist1",re(e.attributes,"strong")?"strong":""),children:y.map((O,N)=>c(C.Fragment,{children:[N!==0&&r("br",{}),_.default(O.text)]},N))}),d&&c("td",{className:"hdlist2",children:[d.text&&r("p",{children:_.default(d.text)}),r(x,{blocks:d.blocks})]})]},p)})})]})]})}else return c("div",{className:k("dlist",e.style,e.role),children:[r(R,{text:e.title}),r("dl",{children:e.items.map((s,u)=>{const{terms:o,dd:p}=a(s);if(!!o)return c(C.Fragment,{children:[o.map((y,d)=>r("dt",{className:"hdlist1",children:_.default(y.text)},d)),n(p)]},u)})})]})},q=({sections:e,opts:a})=>{const{document:n}=C.useContext(F);if(!e||e.length===0)return null;const s=n.attributes||{},u=s.sectnumlevels,o=s.toclevels,p=(a==null?void 0:a.sectNumLevels)||(u?parseInt(u):3),y=(a==null?void 0:a.tocLevels)||(o?parseInt(o):2);return r("ul",{className:`sectlevel${e[0].level}`,children:e.map(d=>{let O=d.num;O=O==="."||O===".."?"":O;const N=d.level;let j=d.title;return N<=p&&(j=`${O} ${d.title}`),c("li",{children:[r("a",{href:`#${d.id}`,children:_.default(j)}),N<y&&r(q,{sections:d.sections,opts:{tocLevels:y,sectNumLevels:p}})]},d.id)})})},Se=({document:e})=>{const a=()=>e.noHeader?null:r("div",{id:"header",children:e.hasHeader&&c(D,{children:[r("h1",{dangerouslySetInnerHTML:{__html:e.title}}),r(s,{}),e.sections&&e.sections.length>0&&e.attributes.toc!==void 0&&e.attributes["toc-placement"]==="auto"&&c("div",{id:"toc",className:ae(e.attributes,"toc-class","toc"),children:[r("div",{id:"toctitle",children:e.attributes["toc-title"]}),r(q,{sections:e.sections})]})]})}),n=()=>e.footnotes&&e.footnotes.length>0&&e.blocks&&!M(e.attributes,"nofootnotes")?c("div",{id:"footnotes",children:[r("hr",{}),e.footnotes.map(u=>c("div",{className:"footnote",id:`_footnotedef_${u.index}`,children:[r("a",{href:`#_footnoteref_${u.index}`,children:u.index}),"."," ",_.default(u.text||"")]},u.index))]}):null,s=()=>e.authors.length>0||M(e.attributes,"revnumber")||M(e.attributes,"revdate")||M(e.attributes,"revremark")?c("div",{className:"details",children:[e.authors.map((u,o)=>c(C.Fragment,{children:[u.name&&c(D,{children:[r("span",{id:`author${o+1>1?o+1:""}`,className:"author",children:_.default(u.name)}),r("br",{})]}),u.email&&c(D,{children:[r("span",{id:`email${o+1>1?o+1:""}`,className:"email",children:_.default(u.email)}),r("br",{})]})]},o)),M(e.attributes,"revnumber")&&r("span",{id:"revnumber",children:`${e.attributes["version-label"].toLowerCase()} ${e.attributes.revnumber}${e.attributes.revdate?",":""}`}),M(e.attributes,"revdate")&&r("span",{id:"revdate",children:e.attributes.revdate}),M(e.attributes,"revremark")&&c(D,{children:[r("br",{}),r("span",{id:"revremark",children:e.attributes.revremark})]})]}):null;return c(D,{children:[r(a,{}),r("div",{id:"content",children:r(x,{blocks:e.blocks})}),r(n,{})]})},xe=({node:e})=>{if(e.attributes.collapsible){const a=e.attributes.collapsible,n=e.title||"Details",s=e.attributes.open?!0:void 0;if(a)return c("details",{className:e.role,open:s,...e.lineNumber?{"data-lineno":e.lineNumber}:{},...e.id?{id:e.id}:{},children:[r("summary",{className:"title",children:_.default(n)}),r("div",{className:"content",children:r(x,{blocks:e.blocks})})]})}return c("div",{className:k("exampleblock",e.role),...e.lineNumber?{"data-lineno":e.lineNumber}:{},...e.id?{id:e.id}:{},children:[r(R,{text:e.title}),r("div",{className:"content",children:r(x,{blocks:e.blocks})})]})},Oe=({node:e})=>c(D,{children:[r("a",{className:"sectionanchor",...e.id?{id:e.id}:{},...e.lineNumber?{"data-lineno":e.lineNumber}:{}}),C.createElement(`h${e.level+1}`,{className:k(e.role,e.style)},_.default(e.title||""))]}),Pe=({node:e})=>{let a=r("img",{src:e.imageUri,alt:e.attributes.alt,width:e.attributes.width,height:e.attributes.height});return e.attributes.link&&(a=r("a",{className:"image",href:e.attributes.link,children:a})),c("div",{className:`imageblock ${e.attributes.align?"text-"+e.attributes.align:""} ${e.attributes.float?e.attributes.float:""} ${e.role?e.role:""}`,...e.lineNumber?{"data-lineno":e.lineNumber}:{},style:{maxWidth:e.attributes.width,maxHeight:e.attributes.height},children:[r("div",{className:"content",children:a}),r(R,{text:e.title})]})},je=({node:e})=>{const{document:a}=C.useContext(F),n=e.attributes.nowrap||a.attributes.prewrap;if(e.style==="source"){const s=e.language;return c("div",{className:"listingblock",...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:[r(R,{text:e.title}),r("div",{className:"content",children:r("pre",{className:k("highlight",n?" nowrap":""),children:s?r("code",{className:s?`language-${s}`:"","data-lang":s,dangerouslySetInnerHTML:{__html:e.content||""}}):r("code",{dangerouslySetInnerHTML:{__html:e.content||""}})})})]})}else return c("div",{className:"listingblock",...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:[r(R,{text:e.title}),r("div",{className:"content",children:r("pre",{className:n?" nowrap":"",children:r("code",{dangerouslySetInnerHTML:{__html:e.source}})})})]})},Ae=({node:e})=>{const{document:a}=C.useContext(F),n=a.attributes||{},s=e.attributes.nowrap||n.prewrap===void 0;return c("div",{className:"literalblock",...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:[r(R,{text:e.title}),r("div",{className:"content",children:r("pre",{className:s?"nowrap":"",children:e.source})})]})},Le=({node:e})=>c("div",{className:k("olist",e.role,e.style),...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:[r(R,{text:e.title}),r("ol",{className:e.style,reversed:re(e.attributes,"reversed"),...e.attributes.start?{start:parseInt(e.attributes.start)}:{},children:e.items.map((a,n)=>c("li",{className:e.role?e.role:"",children:[r("p",{children:_.default(a.text||"")}),r(x,{blocks:a.blocks})]},n))})]}),Ie=({node:e})=>{const a=e.style;return a==="abstract"?c("div",{className:k("quoteblock abstract",e.role),...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:[r(R,{text:e.title}),r("blockquote",{className:"content",children:r(x,{blocks:e.blocks})})]}):c("div",{className:k("openblock",a&&a!=="open"?a:"",e.role),...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:[r(R,{text:e.title}),r("div",{className:"content",children:r(x,{blocks:e.blocks})})]})},De=()=>r("div",{style:{pageBreakAfter:"always"}}),Fe=({node:e})=>c("div",{...e.id?{id:e.id}:{},className:k("paragraph",e.role),...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:[r(R,{text:e.title}),e.content&&r("p",{dangerouslySetInnerHTML:{__html:e.content}})]}),$e=({node:e})=>r(D,{children:_.default(e.content||"")}),Me=({node:e})=>{const{document:a}=C.useContext(F),n=a.attributes||{},s=n["toc-placement"]==="preamble"&&a.sections&&a.sections.length>0&&n.toc!==void 0;return r("div",{id:"preamble",...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:c("div",{className:"sectionbody",children:[r(x,{blocks:e.blocks}),s&&c("div",{id:"toc",className:e.attributes["toc-class"]?e.attributes["toc-class"]:"toc",children:[r("div",{id:"toctitle",children:_.default(n["toc-title"])}),a.sections&&r(q,{sections:a.sections})]})]})})},We=({node:e})=>{const a=e.attributes.attribution,n=e.attributes.citetitle;return c("div",{...e.id?{id:e.id}:{},className:k("quoteblock",e.role),...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:[r(R,{text:e.title}),e.content&&r("blockquote",{dangerouslySetInnerHTML:{__html:e.content}}),r(x,{blocks:e.blocks}),a&&c("div",{className:"attribution",children:["\u2014 ",a,n&&r("cite",{children:n})]})]})},Ye=({node:e})=>{const{document:a}=C.useContext(F),n=a.attributes||{};let s=e.title,u=e.num;u=u==="."?"":u;const o=n.sectnumlevels?parseInt(n.sectnumlevels):3;return e.numbered&&e.level<=o&&(s=`${u} ${e.title}`),n.sectlinks&&(s=c(D,{children:[r("a",{className:"anchor",id:e.id||"",...e.lineNumber?{"data-lineno":e.lineNumber}:{}}),r("a",{className:"link",href:`#${e.id}`,dangerouslySetInnerHTML:{__html:s}})]})),e.level===0?c(D,{children:[r("h1",{className:k("sect0",e.role),"data-sectnum":u,...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:s}),r(x,{blocks:e.blocks})]}):c("div",{className:k(`sect${e.level}`,e.role),...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:[C.createElement(`h${e.level+1}`,{"data-sectnum":u},s),r("div",{className:"sectionbody",children:r(x,{blocks:e.blocks})})]})},He=({node:e})=>r("div",{className:k("sidebarblock",e.role),...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:c("div",{className:"content",children:[r(R,{text:e.title}),r(x,{blocks:e.blocks})]})}),Ue=({node:e})=>{const{document:a}=C.useContext(F),n=a.attributes||{};let s=["frame-"+ae(e.attributes,"frame","all","table-frame",n),"grid-"+ae(e.attributes,"grid","all","table-grid",n)],u=ae(e.attributes,"stripes",null,"table-stripes",n);u&&s.push("stripes-"+u);let o=re(e.attributes,"autowidth"),p=parseInt(e.attributes.tablepcwidth),y=null;o&&!M(e.attributes,"width")?s.push("fit-content"):p===100?s.push("stretch"):y=`${p}%`,M(e.attributes,"float")&&s.push(e.attributes.float),e.role&&s.push(e.role||"");const d=S=>k("tableblock",`halign-${S.attributes.halign}`,`valign-${S.attributes.valign}`),O=e.title,N=e.id,j=N||Nt(O||"");return c("table",{className:k("tableblock",...s),style:{width:y||void 0},...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:[e.title&&c("caption",{className:"title",children:[!N&&r("a",{className:"anchor",id:j}),r("a",{href:`#${j}`,children:e.title})]}),e.columns.length>0&&r("colgroup",{children:e.columns.map((S,L)=>{const P=S.attributes.colpcwidth;return r("col",{style:{width:`${P}%`}},L)})}),e.headRows.map((S,L)=>r("thead",{children:r("tr",{children:S.map((P,$)=>r("th",{className:d(P),dangerouslySetInnerHTML:{__html:P.text}},$))})},L)),r("tbody",{children:e.bodyRows.map((S,L)=>r("tr",{children:S.map((P,$)=>{const oe=P.columnSpan,H=P.rowSpan,T=P.content,B={colSpan:oe,rowSpan:H,className:d(P)},Q=P.style;if(Q==="asciidoc")return C.createElement("td",{...B,key:$},r("div",{className:"content",dangerouslySetInnerHTML:{__html:T||""}}));if(Q==="literal")return C.createElement("td",{...B,key:$},r("div",{className:"literal",children:r("pre",{dangerouslySetInnerHTML:{__html:T||""}})}));if(Q==="header")return C.createElement("th",{...B,key:$},r("p",{className:"tableblock",dangerouslySetInnerHTML:{__html:T||""}}));{let ie=T;return C.createElement("td",{...B,key:$},ie.length===0?"":_.default(`<p class="tableblock">${ie.join(`</p>
32
+ <p class="tableblock">`)}</p>`))}})},L))}),e.footRows.map((S,L)=>r("tfoot",{children:r("tr",{children:S.map((P,$)=>r("td",{className:d(P),children:r("p",{className:"tableblock",dangerouslySetInnerHTML:{__html:P.text}})},$))})},L))]})},Nt=e=>e.toString().normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/\s+/g,"_").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/-$/g,""),Ve=({node:e})=>{const{document:a}=C.useContext(F),n=a.attributes||{},s=a.sections&&a.sections.length>0;let u=e.id||"toc";const o=e.title?e.title:n["toc-title"],p=n["toc-placement"],y=n.toc!==void 0,d=e.attributes.levels?parseInt(e.attributes.levels):void 0;return p==="macro"&&s&&y?c("div",{id:u,className:k("toc",e.role),children:[r("div",{id:`${u}title`,className:"title",children:_.default(o||"")}),a.sections&&r(q,{sections:a.sections,opts:{tocLevels:d}})]}):null},Be=()=>r("hr",{}),ze=({node:e})=>{const a=re(e.attributes,"checklist");return c("div",{...e.id?{id:e.id}:{},className:k("ulist",e.style,e.role,a&&"checklist"),...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:[r(R,{text:e.title}),r("ul",{className:a?"checklist":"",children:e.items.map((n,s)=>a?r("li",{id:n.id,className:e.role,children:c("p",{children:[a&&n.attributes.checkbox&&r("i",{className:k("fa",n.attributes.checked?"fa-check-square-o":"fa-square-o")})," ",_.default(n.text||"")]})},s):c("li",{id:n.id,className:e.role,children:[r("p",{dangerouslySetInnerHTML:{__html:n.text||""}}),r(x,{blocks:n.blocks})]},s))})]})},Je=({node:e})=>{const a=e.attributes.attribution,n=e.attributes.citetitle;return c("div",{...e.id?{id:e.id}:{},className:k("verseblock",e.role),...e.lineNumber?{"data-lineno":e.lineNumber}:{},children:[r(R,{text:e.title}),e.content&&r("pre",{className:"content",dangerouslySetInnerHTML:{__html:e.content}}),a&&c("div",{className:"attribution",children:["\u2014 ",a,n&&r("cite",{children:n})]})]})},V={},_t=e=>{const a=e.$$id;if(V[a])return V[a];const n=e.getContent()||"";return V[a]=n,n},kt=e=>{const a=e.$$id;if(V[a])return V[a];const n=e.getText()||"";return V[a]=n,n},F=C.createContext({document:{}}),Et=({document:e,options:a})=>{const n=a&&a.customDocument;return r(F.Provider,{value:{...a,document:{attributes:e.attributes,sections:e.sections}},children:n?r(n,{document:e}):r(Se,{document:e})})},x=({blocks:e})=>r(D,{children:e.map((a,n)=>r(Rt,{node:a},`${n}-${a.type}`))}),Rt=({node:e})=>{switch(e.type){case"audio":return r(Re,{node:e});case"preamble":return r(Me,{node:e});case"section":return r(Ye,{node:e});case"paragraph":return r(Fe,{node:e});case"dlist":return r(Ce,{node:e});case"ulist":return r(ze,{node:e});case"floating_title":return r(Oe,{node:e});case"admonition":return r(Ee,{node:e});case"listing":return r(je,{node:e});case"literal":return r(Ae,{node:e});case"image":return r(Pe,{node:e});case"colist":return r(Te,{node:e});case"olist":return r(Le,{node:e});case"table":return r(Ue,{node:e});case"thematic_break":return r(Be,{});case"open":return r(Ie,{node:e});case"pass":return r($e,{node:e});case"page_break":return r(De,{});case"example":return r(xe,{node:e});case"sidebar":return r(He,{node:e});case"quote":return r(We,{node:e});case"verse":return r(Je,{node:e});case"toc":return r(Ve,{node:e});default:return r(D,{})}};Object.defineProperty(h,"parse",{enumerable:!0,get:()=>_.default}),h.Admonition=Ee,h.Audio=Re,h.CoList=Te,h.Content=x,h.Context=F,h.DList=Ce,h.Document=Se,h.Example=xe,h.FloatingTitle=Oe,h.Image=Pe,h.Listing=je,h.Literal=Ae,h.OList=Le,h.Open=Ie,h.Outline=q,h.PageBreak=De,h.Paragraph=Fe,h.Pass=$e,h.Preamble=Me,h.Quote=We,h.Section=Ye,h.Sidebar=He,h.Table=Ue,h.TableOfContents=Ve,h.ThematicBreak=Be,h.Title=R,h.UList=ze,h.Verse=Je,h.default=Et,h.getContent=_t,h.getText=kt,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,11 +1,9 @@
1
1
  /// <reference types="react" />
2
- import asciidoctor from '@asciidoctor/core';
3
- import type { AbstractBlock } from '@asciidoctor/core';
4
- import type * as AdocTypes from '@asciidoctor/core';
5
2
  import parse from 'html-react-parser';
6
3
  import { Admonition, Audio, CoList, DList, Document, Example, FloatingTitle, Image, Listing, Literal, OList, Open, PageBreak, Paragraph, Pass, Preamble, Quote, Section, Sidebar, Table, TableOfContents, ThematicBreak, UList, Verse } from './templates';
7
- import { CaptionedTitle, Title, getLineNumber, getRole } from './templates/util';
4
+ import { Title } from './templates/util';
8
5
  import { getContent, getText } from './utils/getContent';
6
+ import { DocumentBlock, DocumentSection, Block as PreparedBlock } from './utils/prepareDocument';
9
7
  type Overrides = {
10
8
  admonition?: typeof Admonition;
11
9
  audio?: typeof Audio;
@@ -34,14 +32,19 @@ type Overrides = {
34
32
  export type Options = {
35
33
  overrides?: Overrides;
36
34
  customDocument?: typeof Document;
35
+ document: {
36
+ attributes?: DocumentBlock['attributes'];
37
+ sections?: DocumentSection[];
38
+ };
37
39
  };
38
- declare const Asciidoc: ({ content, options, }: {
39
- content: AdocTypes.Document;
40
+ export declare const Context: import("react").Context<Options>;
41
+ declare const Asciidoc: ({ document, options, }: {
42
+ document: DocumentBlock;
40
43
  options?: Options | undefined;
41
44
  }) => JSX.Element;
42
45
  declare const Content: ({ blocks }: {
43
- blocks: AbstractBlock[];
46
+ blocks: PreparedBlock[];
44
47
  }) => JSX.Element;
45
48
  export default Asciidoc;
46
- export { asciidoctor, Content, getContent, getText, Title, getRole, getLineNumber, CaptionedTitle, AdocTypes, parse, };
49
+ export { Content, getContent, getText, Title, parse };
47
50
  export * from './templates';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { Block } from '@asciidoctor/core';
2
+ import { AdmonitionBlock } from '../utils/prepareDocument';
3
3
  declare const Admonition: ({ node }: {
4
- node: Block;
4
+ node: AdmonitionBlock;
5
5
  }) => JSX.Element;
6
6
  export default Admonition;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { Block } from '@asciidoctor/core';
2
+ import { type AudioBlock } from '../utils/prepareDocument';
3
3
  declare const Audio: ({ node }: {
4
- node: Block;
4
+ node: AudioBlock;
5
5
  }) => JSX.Element;
6
6
  export default Audio;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { List } from '@asciidoctor/core';
2
+ import type { CoListBlock } from '../utils/prepareDocument';
3
3
  declare const CoList: ({ node }: {
4
- node: List;
4
+ node: CoListBlock;
5
5
  }) => JSX.Element;
6
6
  export default CoList;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { List } from '@asciidoctor/core';
2
+ import { type DListBlock } from '../utils/prepareDocument';
3
3
  declare const DList: ({ node }: {
4
- node: List;
4
+ node: DListBlock;
5
5
  }) => JSX.Element;
6
6
  export default DList;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { Document as DocumentType } from '@asciidoctor/core';
2
+ import { type DocumentBlock } from '../utils/prepareDocument';
3
3
  declare const Document: ({ document }: {
4
- document: DocumentType;
4
+ document: DocumentBlock;
5
5
  }) => JSX.Element;
6
6
  export default Document;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { Block } from '@asciidoctor/core';
2
+ import { type Block } from '../utils/prepareDocument';
3
3
  declare const Example: ({ node }: {
4
4
  node: Block;
5
5
  }) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { Block } from '@asciidoctor/core';
2
+ import { type BaseBlock } from '../utils/prepareDocument';
3
3
  declare const FloatingTitle: ({ node }: {
4
- node: Block;
4
+ node: BaseBlock;
5
5
  }) => JSX.Element;
6
6
  export default FloatingTitle;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { Block } from '@asciidoctor/core';
2
+ import { type ImageBlock } from '../utils/prepareDocument';
3
3
  declare const Image: ({ node }: {
4
- node: Block;
4
+ node: ImageBlock;
5
5
  }) => JSX.Element;
6
6
  export default Image;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { Block } from '@asciidoctor/core';
2
+ import { type LiteralBlock } from '../utils/prepareDocument';
3
3
  declare const Listing: ({ node }: {
4
- node: Block;
4
+ node: LiteralBlock;
5
5
  }) => JSX.Element;
6
6
  export default Listing;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { Block } from '@asciidoctor/core';
2
+ import { type LiteralBlock } from '../utils/prepareDocument';
3
3
  declare const Literal: ({ node }: {
4
- node: Block;
4
+ node: LiteralBlock;
5
5
  }) => JSX.Element;
6
6
  export default Literal;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { List } from '@asciidoctor/core';
2
+ import { type ListBlock } from '../utils/prepareDocument';
3
3
  declare const OList: ({ node }: {
4
- node: List;
4
+ node: ListBlock;
5
5
  }) => JSX.Element;
6
6
  export default OList;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { Block } from '@asciidoctor/core';
2
+ import { type BaseBlock } from '../utils/prepareDocument';
3
3
  declare const Open: ({ node }: {
4
- node: Block;
4
+ node: BaseBlock;
5
5
  }) => JSX.Element;
6
6
  export default Open;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import type { AbstractBlock } from '@asciidoctor/core';
3
- declare const Outline: ({ node, opts, }: {
4
- node: AbstractBlock;
2
+ import { type DocumentSection } from '../utils/prepareDocument';
3
+ declare const Outline: ({ sections, opts, }: {
4
+ sections: DocumentSection[];
5
5
  opts?: {
6
6
  tocLevels?: number | undefined;
7
7
  sectNumLevels?: number | undefined;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { Block } from '@asciidoctor/core';
2
+ import { type ParagraphBlock } from '../utils/prepareDocument';
3
3
  declare const Paragraph: ({ node }: {
4
- node: Block;
4
+ node: ParagraphBlock;
5
5
  }) => JSX.Element;
6
6
  export default Paragraph;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { AbstractBlock } from '@asciidoctor/core';
2
+ import { type Block } from '../utils/prepareDocument';
3
3
  declare const Pass: ({ node }: {
4
- node: AbstractBlock;
4
+ node: Block;
5
5
  }) => JSX.Element;
6
6
  export default Pass;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { AbstractBlock } from '@asciidoctor/core';
2
+ import { type BaseBlock } from '../utils/prepareDocument';
3
3
  declare const Preamble: ({ node }: {
4
- node: AbstractBlock;
4
+ node: BaseBlock;
5
5
  }) => JSX.Element;
6
6
  export default Preamble;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { Block } from '@asciidoctor/core';
2
+ import { type Block } from '../utils/prepareDocument';
3
3
  declare const Quote: ({ node }: {
4
4
  node: Block;
5
5
  }) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { Section as SectionType } from '@asciidoctor/core';
2
+ import { type SectionBlock } from '../utils/prepareDocument';
3
3
  declare const Section: ({ node }: {
4
- node: SectionType;
4
+ node: SectionBlock;
5
5
  }) => JSX.Element;
6
6
  export default Section;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { Block } from '@asciidoctor/core';
2
+ import { type Block } from '../utils/prepareDocument';
3
3
  declare const Sidebar: ({ node }: {
4
4
  node: Block;
5
5
  }) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { Table as TableType } from '@asciidoctor/core';
2
+ import { type TableBlock } from '../utils/prepareDocument';
3
3
  declare const Table: ({ node }: {
4
- node: TableType;
4
+ node: TableBlock;
5
5
  }) => JSX.Element;
6
6
  export default Table;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { Block } from '@asciidoctor/core';
2
+ import { Block } from '../utils/prepareDocument';
3
3
  declare const TableOfContents: ({ node }: {
4
4
  node: Block;
5
5
  }) => JSX.Element | null;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { List } from '@asciidoctor/core';
2
+ import { type ListBlock } from '../utils/prepareDocument';
3
3
  declare const UList: ({ node }: {
4
- node: List;
4
+ node: ListBlock;
5
5
  }) => JSX.Element;
6
6
  export default UList;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { Block } from '@asciidoctor/core';
2
+ import { type Block } from '../utils/prepareDocument';
3
3
  declare const Verse: ({ node }: {
4
4
  node: Block;
5
5
  }) => JSX.Element;
@@ -1,14 +1,4 @@
1
1
  /// <reference types="react" />
2
- import type { AbstractBlock, Block, List } from '@asciidoctor/core';
3
- export declare const Title: ({ node }: {
4
- node: AbstractBlock | Block | List;
2
+ export declare const Title: ({ text }: {
3
+ text: string | undefined;
5
4
  }) => JSX.Element | null;
6
- export declare const CaptionedTitle: ({ node }: {
7
- node: Block | Block | List;
8
- }) => JSX.Element | null;
9
- export declare const getRole: (node: AbstractBlock | Block | List) => string | undefined;
10
- export declare const getLineNumber: (node: AbstractBlock | Block | List) => {
11
- 'data-lineno': number;
12
- } | {
13
- 'data-lineno'?: undefined;
14
- };