@oxide/react-asciidoc 0.1.3-alpha.7 → 0.1.3-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-asciidoc.js +558 -528
- package/dist/react-asciidoc.umd.cjs +10 -10
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(f,
|
|
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 ge=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},kt=ge(Q),k=ge(At),ke=ge(P),J={},H=e=>{const a=e.$$id;if(J[a])return J[a];const n=e.getContent()||"";return J[a]=n,n},$=e=>{const a=e.$$id;if(J[a])return J[a];const n=e.getText()||"";return J[a]=n,n};var se={exports:{}},Z={};/**
|
|
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
|
|
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,h=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function d(y,g,_){var v,I={},w=null,B=null;_!==void 0&&(w=""+_),g.key!==void 0&&(w=""+g.key),g.ref!==void 0&&(B=g.ref);for(v in g)c.call(g,v)&&!o.hasOwnProperty(v)&&(I[v]=g[v]);if(y&&y.defaultProps)for(v in g=y.defaultProps,g)I[v]===void 0&&(I[v]=g[v]);return{$$typeof:a,type:y,key:w,ref:B,props:I,_owner:h.current}}return Z.Fragment=n,Z.jsx=d,Z.jsxs=d,Z}var ee={};/**
|
|
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
|
|
18
|
-
`+
|
|
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"),h=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),y=Symbol.for("react.context"),g=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];he("error",t,s)}}function he(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===h||t===_||t===v||ae||t===B||me||K||G||typeof t=="object"&&t!==null&&(t.$$typeof===w||t.$$typeof===I||t.$$typeof===d||t.$$typeof===y||t.$$typeof===g||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 h: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 d:var s=t;return et(s._context)+".Provider";case g: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(U){u=U}Reflect.construct(t,[],b)}else{try{b.call()}catch(U){u=U}t.call(b.prototype)}}else{try{throw Error()}catch(U){u=U}t()}}catch(U){if(U&&u&&typeof U.stack=="string"){for(var m=U.stack.split(`
|
|
19
19
|
`),D=u.stack.split(`
|
|
20
|
-
`),
|
|
21
|
-
`+m[
|
|
20
|
+
`),E=m.length-1,O=D.length-1;E>=1&&O>=0&&m[E]!==D[O];)O--;for(;E>=1&&O>=0;E--,O--)if(m[E]!==D[O]){if(E!==1||O!==1)do if(E--,O--,O<0||m[E]!==D[O]){var x=`
|
|
21
|
+
`+m[E].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(E>=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 g: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 de(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(E){m=E}m&&!(m instanceof Error)&&(de(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),de(null)),m instanceof Error&&!(m.message in ut)&&(ut[m.message]=!0,de(p),A("Failed %s type: %s",s,m.message),de(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 dt(t),!1}catch{return!0}}function dt(t){return""+t}function gt(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)),dt(t)}var ne=C.ReactCurrentOwner,Wt={key:!0,ref:!0,__self:!0,__source:!0},ht,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 Ut(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 Ht(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(){ht||(ht=!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&&(gt(s),m=""+s),Ut(i)&&(gt(i.key),m=""+i.key),Yt(i)&&(D=i.ref,Ht(i,p));for(T in i)fe.call(i,T)&&!Wt.hasOwnProperty(T)&&(b[T]=i[T]);if(t&&t.defaultProps){var E=t.defaultProps;for(T in E)b[T]===void 0&&(b[T]=E[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`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+t+"`."}return""}}function Gt(t){{if(t!==void 0){var i=t.fileName.replace(/^.*[\\\/]/,""),s=t.lineNumber;return`
|
|
24
24
|
|
|
25
|
-
Check your code at `+i+":"+s+"."}return""}}var
|
|
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=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+s+">.")}return i}}function
|
|
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===g||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 E;t===null?E="null":ye(t)?E="array":t!==void 0&&t.$$typeof===a?(E="<"+(Y(t.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):E=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",E,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,L=({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=H(e),h=()=>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")?h():r("div",{className:"title",children:e.getAttribute("textlabel")})}),l("td",{className:"content",children:[r(L,{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(L,{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(L,{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($(a)),r(j,{blocks:a.getBlocks()})]})]},n))})})]});var Oe={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 o=[],g=0;g<arguments.length;g++){var c=arguments[g];if(!!c){var d=typeof c;if(d==="string"||d==="number")o.push(c);else if(Array.isArray(c)){if(c.length){var y=n.apply(null,c);y&&o.push(y)}}else if(d==="object"){if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]")){o.push(c.toString());continue}for(var h in c)a.call(c,h)&&c[h]&&o.push(h)}}}return o.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Se);const S=Se.exports,we=({node:e})=>{const a=e.getStyle(),n=c=>{const d=c,y=d[0];let h=d[1];return h.getNodeName||(h=null),{terms:y,dd:h}},o=c=>{if(c)return l("dd",{children:[c.hasText()&&r("p",{children:k.default(F(c))}),c.hasBlocks()&&r($,{blocks:c.getBlocks()})]})},g=e.hasTitle()&&r("div",{className:"title",children:e.getCaptionedTitle()});if(a==="qanda")return l("div",{className:S("qlist qanda",E(e)),...N(e),children:[g,r("ol",{children:e.getItems().map((c,d)=>{const{terms:y,dd:h}=n(c);return l("li",{children:[y.map((T,v)=>r("p",{children:r("em",{children:F(T)})},v)),o(h)]},d)})})]});if(a==="horizontal"){const c=e.getAttribute("labelwidth"),d=e.getAttribute("itemwidth");return l("div",{className:S("hdlist",E(e)),children:[g,l("table",{children:[(c||d)&&l("colgroup",{children:[r("col",{style:{width:c?`${c.replace("%","")}%`:""}}),r("col",{style:{width:d?`${d.replace("%","")}%`:""}})]}),r("tbody",{children:e.getItems().map((y,h)=>{const{terms:T,dd:v}=n(y);return l("tr",{children:[r("td",{className:S("hdlist1",e.isOption("strong")?"strong":""),children:T.map((O,_)=>l(P.Fragment,{children:[_!==0&&r("br",{}),k.default(F(O))]},_))}),v&&l("td",{className:"hdlist2",children:[v.hasText()&&r("p",{children:k.default(F(v))}),v.hasBlocks()&&r($,{blocks:v.getBlocks()})]})]},h)})})]})]})}else return l("div",{className:S("dlist",e.getStyle(),E(e)),children:[g,r("dl",{children:e.getItems().map((c,d)=>{const{terms:y,dd:h}=n(c);return l(P.Fragment,{children:[y.map((T,v)=>r("dt",{className:"hdlist1",children:k.default(F(T))},v)),o(h)]},d)})})]})},ee=({node:e,opts:a})=>{if(!e.hasSections())return null;const n=e.getSections(),o=e.getDocument(),g=P.useMemo(()=>o.getAttributes(),[e]),c=P.useMemo(()=>o.getAttribute("sectnumlevels"),[e]),d=P.useMemo(()=>o.getAttribute("toclevels"),[e]),y=(a==null?void 0:a.sectNumLevels)||(c?parseInt(c):3),h=(a==null?void 0:a.tocLevels)||(d?parseInt(d):2);return r("ul",{className:`sectlevel${n[0].getLevel()}`,children:n.map(T=>{let v=T.$sectnum();v=v==="."||v===".."?"":v;const O=T.getLevel();let _="";if(T.getCaption())_=T.getCaptionedTitle();else if(O<=y)if(O<2&&o.getDoctype()=="book"){const j=T.getSectionName();j==="chapter"?_=`${g["chapter-signifier"]||""} ${v} ${T.getTitle()}`:j==="part"?_=`${g["part-signifier"]||""} ${v} ${T.getTitle()}`:_=`${v} ${T.getTitle()}`}else _=`${v} ${T.getTitle()}`;else _=T.getTitle()||"";return l("li",{children:[r("a",{href:`#${T.getId()}`,children:k.default(_)}),O<h&&r(ee,{node:T,opts:{tocLevels:h,sectNumLevels:y}})]},T.getId())})})},Ce=({document:e})=>{const a=e.getBlocks(),n=e.getFootnotes(),o=()=>{var d;return e.getNoheader()?null:r("div",{id:"header",children:e.hasHeader()&&l(M,{children:[r("h1",{dangerouslySetInnerHTML:{__html:((d=e.getDocumentTitle())==null?void 0:d.toString())||""}}),r(c,{}),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(ee,{node:e})]})]})})},g=()=>n&&n.length>0&&a&&!a[0].getDocument().hasAttribute("nofootnotes")?l("div",{id:"footnotes",children:[r("hr",{}),n.map(d=>l("div",{className:"footnote",id:`_footnotedef_${d.getIndex()}`,children:[r("a",{href:`#_footnoteref_${d.getIndex()}`,children:d.getIndex()}),"."," ",k.default(F(d)||"")]},d.getIndex()))]}):null,c=()=>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(o,{}),r("div",{id:"content",children:r($,{blocks:a})}),r(g,{})]})},Oe=({node:e})=>l("div",{className:S("exampleblock",E(e)),...N(e),children:[r(Z,{node:e}),r("div",{className:"content",children:r($,{blocks:e.getBlocks()})})]}),Ie=({node:e})=>{const a=e.getLevel();return l(M,{children:[r("a",{className:"sectionanchor",id:`${e.getId()||""}`,...N(e)}),P.createElement(`h${a+1}`,null,r(L,{node:e}))]})},Pe=({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),children:[r("div",{className:"content",children:n}),r(Z,{node:e})]})},je=({node:e})=>{const a=e.getDocument(),n=e.getAttributes(),o=e.isOption("nowrap")||!a.hasAttribute("prewrap"),g=U(e);if(e.getStyle()==="source"){const c=n.language;return l("div",{className:"listingblock",...N(e),children:[r(Z,{node:e}),r("div",{className:"content",children:r("pre",{className:S("highlight",o?" nowrap":""),children:c?r("code",{className:c?`language-${c}`:"","data-lang":c,dangerouslySetInnerHTML:{__html:g}}):r("code",{dangerouslySetInnerHTML:{__html:g}})})})]})}else return l("div",{className:"listingblock",...N(e),children:[r(Z,{node:e}),r("div",{className:"content",children:r("pre",{className:o?" nowrap":"",children:r("code",{dangerouslySetInnerHTML:{__html:e.getSource()}})})})]})},De=({node:e})=>{const n=e.getDocument().getAttributes().prewrap===void 0||e.isOption("nowrap");return l("div",{className:"literalblock",...N(e),children:[r(L,{node:e}),r("div",{className:"content",children:r("pre",{className:n?"nowrap":"",children:e.getSource()})})]})},Le=({node:e})=>l("div",{className:S("olist",E(e),e.getStyle()),...N(e),children:[r(L,{node:e}),r("ol",{className:e.getStyle(),reversed:e.isOption("reversed"),start:e.getAttribute("start"),children:e.getItems().map((a,n)=>l("li",{className:E(e)?E(e):"",children:[r("p",{children:k.default(F(a))}),r($,{blocks:a.getBlocks()})]},n))})]}),$e=({node:e})=>{const a=e.getStyle();return a==="abstract"?l("div",{className:S("quoteblock abstract",E(e)),...N(e),children:[r(L,{node:e}),r("blockquote",{className:"content",children:r($,{blocks:e.getBlocks()})})]}):l("div",{className:S("openblock",a&&a!=="open"?a:"",E(e)),...N(e),children:[r(L,{node:e}),r("div",{className:"content",children:r($,{blocks:e.getBlocks()})})]})},Fe=()=>r("div",{style:{pageBreakAfter:"always"}}),xe=({node:e})=>{const a=U(e);return l("div",{id:e.getId?e.getId():"",className:S("paragraph",E(e)),...N(e),children:[r(L,{node:e}),r("p",{dangerouslySetInnerHTML:{__html:a}})]})},Me=({node:e})=>{const a=U(e);return r(M,{children:k.default(a)})},Be=({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($,{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(ee,{node:a})]})]})})},We=({node:e})=>{const a=e.getAttribute("attribution"),n=e.getAttribute("citetitle"),o=U(e);return l("div",{id:e.getId?e.getId():"",className:S("quoteblock",E(e)),...N(e),children:[r(L,{node:e}),r("blockquote",{dangerouslySetInnerHTML:{__html:o}}),a&&l("div",{className:"attribution",children:["\u2014 ",a,n&&r("cite",{children:n})]})]})},Ye=({node:e})=>{const a=e.getDocument().getAttributes(),n=e.getLevel();let o="",g=e.getSectionNumeral();g=g==="."?"":g;const c=a.sectnumlevels?parseInt(a.sectnumlevels):3;if(e.getCaption())o=e.getCaptionedTitle();else if(e.isNumbered()&&n<=c)if(n<2&&e.getDocument().getDoctype()==="book"){const d=e.getSectionName();d==="chapter"?o=`${a["chapter-signifier"]||""} ${g} ${e.getTitle()}`:d==="part"?o=`${a["part-signifier"]||""} ${g} ${e.getTitle()}`:o=`${e.getTitle()}`}else o=`${e.getTitle()}`;else o=e.getTitle()||"";return o=l(M,{children:[r("a",{className:"anchor",id:e.getId()||"","aria-hidden":!0}),r("a",{className:"link group",href:`#${e.getId()}`,children:o})]}),n===0?l(M,{children:[r("h1",{className:S("sect0",E(e)),"data-sectnum":g,children:o}),r($,{blocks:e.getBlocks()})]}):l("div",{className:S(`sect${n}`,E(e)),children:[P.createElement(`h${n+1}`,{"data-sectnum":g},o),r("div",{className:"sectionbody",children:r($,{blocks:e.getBlocks()})})]})},Ue=({node:e})=>r("div",{className:S("sidebarblock",E(e)),...N(e),children:l("div",{className:"content",children:[r(L,{node:e}),r($,{blocks:e.getBlocks()})]})}),He=({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 o=e.hasAutowidthOption(),g=e.getAttribute("tablepcwidth"),c=null;o&&!e.hasAttribute("width")?a.push("fit-content"):g==100?a.push("stretch"):c=`${g}%`,e.hasAttribute("float")&&a.push(e.getAttribute("float")),e.getRole()&&a.push(e.getRole()||"");const d=e.getRowCount(),y=e.getColumns(),h=e.getHeadRows(),T=e.getBodyRows(),v=e.getFootRows(),O=_=>S("tableblock",`halign-${_.getAttribute("halign")}`,`valign-${_.getAttribute("valign")}`);return l("table",{className:S("tableblock",...a),style:{width:c||void 0},...N(e),children:[e.hasTitle()&&r("caption",{className:"title",children:e.getCaptionedTitle()}),d>0&&r("colgroup",{children:y.map((_,j)=>{const I=_.getAttribute("colpcwidth");return r("col",{style:{width:`${I}%`}},j)})}),h.map((_,j)=>r("thead",{children:r("tr",{children:_.map((I,B)=>r("th",{className:O(I),dangerouslySetInnerHTML:{__html:F(I)}},B))})},j)),r("tbody",{children:T.map((_,j)=>r("tr",{children:_.map((I,B)=>{const de=I.getColumnSpan(),H=I.getRowSpan(),w=U(I),z={colSpan:de,rowSpan:H,className:O(I)},te=I.getStyle();if(te==="asciidoc")return P.createElement("td",{...z,key:B},r("div",{className:"content",dangerouslySetInnerHTML:{__html:w}}));if(te==="literal")return P.createElement("td",{...z,key:B},r("div",{className:"literal",children:r("pre",{dangerouslySetInnerHTML:{__html:w}})}));if(te==="header")return P.createElement("th",{...z,key:B},r("p",{className:"tableblock",dangerouslySetInnerHTML:{__html:w}}));{let ne=w;return P.createElement("td",{...z,key:B},ne.length===0?"":k.default(`<p class="tableblock">${ne.join(`</p>
|
|
32
|
-
<p class="tableblock">`)}</p>`))}})},
|
|
31
|
+
*/(function(e){(function(){var a={}.hasOwnProperty;function n(){for(var c=[],h=0;h<arguments.length;h++){var o=arguments[h];if(!!o){var d=typeof o;if(d==="string"||d==="number")c.push(o);else if(Array.isArray(o)){if(o.length){var y=n.apply(null,o);y&&c.push(y)}}else if(d==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){c.push(o.toString());continue}for(var g in o)a.call(o,g)&&o[g]&&c.push(g)}}}return c.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Oe);const S=Oe.exports,Ie=({node:e})=>{const a=e.getStyle(),n=o=>{const d=o,y=d[0];let g=d[1];return g.getNodeName||(g=null),{terms:y,dd:g}},c=o=>{if(o)return l("dd",{children:[o.hasText()&&r("p",{children:k.default($(o))}),o.hasBlocks()&&r(j,{blocks:o.getBlocks()})]})},h=e.hasTitle()&&r("div",{className:"title",children:e.getCaptionedTitle()});if(a==="qanda")return l("div",{className:S("qlist qanda",R(e)),...N(e),children:[h,r("ol",{children:e.getItems().map((o,d)=>{const{terms:y,dd:g}=n(o);return l("li",{children:[y.map((_,v)=>r("p",{children:r("em",{children:k.default($(_))})},v)),c(g)]},d)})})]});if(a==="horizontal"){const o=e.getAttribute("labelwidth"),d=e.getAttribute("itemwidth");return l("div",{className:S("hdlist",R(e)),children:[h,l("table",{children:[(o||d)&&l("colgroup",{children:[r("col",{style:{width:o?`${o.replace("%","")}%`:""}}),r("col",{style:{width:d?`${d.replace("%","")}%`:""}})]}),r("tbody",{children:e.getItems().map((y,g)=>{const{terms:_,dd:v}=n(y);return l("tr",{children:[r("td",{className:S("hdlist1",e.isOption("strong")?"strong":""),children:_.map((I,w)=>l(P.Fragment,{children:[w!==0&&r("br",{}),k.default($(I))]},w))}),v&&l("td",{className:"hdlist2",children:[v.hasText()&&r("p",{children:k.default($(v))}),v.hasBlocks()&&r(j,{blocks:v.getBlocks()})]})]},g)})})]})]})}else return l("div",{className:S("dlist",e.getStyle(),R(e)),children:[h,r("dl",{children:e.getItems().map((o,d)=>{const{terms:y,dd:g}=n(o);return l(P.Fragment,{children:[y.map((_,v)=>r("dt",{className:"hdlist1",children:k.default($(_))},v)),c(g)]},d)})})]})},re=({node:e,opts:a})=>{if(!e.hasSections())return null;const n=e.getSections(),c=e.getDocument(),h=P.useMemo(()=>c.getAttributes(),[e]),o=P.useMemo(()=>c.getAttribute("sectnumlevels"),[e]),d=P.useMemo(()=>c.getAttribute("toclevels"),[e]),y=(a==null?void 0:a.sectNumLevels)||(o?parseInt(o):3),g=(a==null?void 0:a.tocLevels)||(d?parseInt(d):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=`${h["chapter-signifier"]||""} ${v} ${_.getTitle()}`:B==="part"?w=`${h["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<g&&r(re,{node:_,opts:{tocLevels:g,sectNumLevels:y}})]},_.getId())})})},Pe=({document:e})=>{const a=e.getBlocks(),n=e.getFootnotes(),c=()=>{var d;return e.getNoheader()?null:r("div",{id:"header",children:e.hasHeader()&&l(M,{children:[r("h1",{dangerouslySetInnerHTML:{__html:((d=e.getDocumentTitle())==null?void 0:d.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})]})]})})},h=()=>n&&n.length>0&&a&&!a[0].getDocument().hasAttribute("nofootnotes")?l("div",{id:"footnotes",children:[r("hr",{}),n.map(d=>l("div",{className:"footnote",id:`_footnotedef_${d.getIndex()}`,children:[r("a",{href:`#_footnoteref_${d.getIndex()}`,children:d.getIndex()}),"."," ",k.default($(d)||"")]},d.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,g)=>l(P.Fragment,{children:[y.getName()&&l(M,{children:[r("span",{id:`author${g+1>1?g+1:""}`,className:"author",children:k.default(e.applySubstitutions(y.getName()||"").toString())}),r("br",{})]}),y.getEmail()&&l(M,{children:[r("span",{id:`email${g+1>1?g+1:""}`,className:"email",children:k.default(e.applySubstitutions(y.getEmail()||"").toString())}),r("br",{})]})]},g)),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(h,{})]})},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),children:[r("summary",{className:"title",children:n}),r("div",{className:"content",children:r(j,{blocks:e.getBlocks()})})]})}return l("div",{className:S("exampleblock",R(e)),...N(e),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",id:`${e.getId()||""}`,...N(e)}),P.createElement(`h${a+1}`,null,r(L,{node:e}))]})},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),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"),h=H(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:S("highlight",c?" nowrap":""),children:o?r("code",{className:o?`language-${o}`:"","data-lang":o,dangerouslySetInnerHTML:{__html:h}}):r("code",{dangerouslySetInnerHTML:{__html:h}})})})]})}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(L,{node:e}),r("div",{className:"content",children:r("pre",{className:n?"nowrap":"",children:e.getSource()})})]})},xe=({node:e})=>l("div",{className:S("olist",R(e),e.getStyle()),...N(e),children:[r(L,{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($(a))}),r(j,{blocks:a.getBlocks()})]},n))})]}),Me=({node:e})=>{const a=e.getStyle();return a==="abstract"?l("div",{className:S("quoteblock abstract",R(e)),...N(e),children:[r(L,{node:e}),r("blockquote",{className:"content",children:r(j,{blocks:e.getBlocks()})})]}):l("div",{className:S("openblock",a&&a!=="open"?a:"",R(e)),...N(e),children:[r(L,{node:e}),r("div",{className:"content",children:r(j,{blocks:e.getBlocks()})})]})},Be=()=>r("div",{style:{pageBreakAfter:"always"}}),We=({node:e})=>{const a=H(e);return l("div",{id:e.getId?e.getId():"",className:S("paragraph",R(e)),...N(e),children:[r(L,{node:e}),r("p",{dangerouslySetInnerHTML:{__html:a}})]})},Ye=({node:e})=>{const a=H(e);return r(M,{children:k.default(a)})},Ue=({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})]})]})})},He=({node:e})=>{const a=e.getAttribute("attribution"),n=e.getAttribute("citetitle"),c=H(e);return l("div",{id:e.getId?e.getId():"",className:S("quoteblock",R(e)),...N(e),children:[r(L,{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="",h=e.getSectionNumeral();h=h==="."?"":h;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 d=e.getSectionName();d==="chapter"?c=`${a["chapter-signifier"]||""} ${h} ${e.getTitle()}`:d==="part"?c=`${a["part-signifier"]||""} ${h} ${e.getTitle()}`:c=`${h} ${e.getTitle()}`}else c=`${h} ${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:S("sect0",R(e)),"data-sectnum":h,...N(e),children:c}),r(j,{blocks:e.getBlocks()})]}):l("div",{className:S(`sect${n}`,R(e)),...N(e),children:[P.createElement(`h${n+1}`,{"data-sectnum":h},c),r("div",{className:"sectionbody",children:r(j,{blocks:e.getBlocks()})})]})},ze=({node:e})=>r("div",{className:S("sidebarblock",R(e)),...N(e),children:l("div",{className:"content",children:[r(L,{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(),h=e.getAttribute("tablepcwidth"),o=null;c&&!e.hasAttribute("width")?a.push("fit-content"):h==100?a.push("stretch"):o=`${h}%`,e.hasAttribute("float")&&a.push(e.getAttribute("float")),e.getRole()&&a.push(e.getRole()||"");const d=e.getRowCount(),y=e.getColumns(),g=e.getHeadRows(),_=e.getBodyRows(),v=e.getFootRows(),I=F=>S("tableblock",`halign-${F.getAttribute("halign")}`,`valign-${F.getAttribute("valign")}`),w=e.getTitle(),B=e.getId(),V=B||St(w||"");return l("table",{className:S("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()})]}),d>0&&r("colgroup",{children:y.map((F,W)=>{const C=F.getAttribute("colpcwidth");return r("col",{style:{width:`${C}%`}},W)})}),g.map((F,W)=>r("thead",{children:r("tr",{children:F.map((C,A)=>r("th",{className:I(C),dangerouslySetInnerHTML:{__html:$(C)}},A))})},W)),r("tbody",{children:_.map((F,W)=>r("tr",{children:F.map((C,A)=>{const he=C.getColumnSpan(),me=C.getRowSpan(),K=H(C),G={colSpan:he,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:$(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"),h=P.useMemo(()=>n.getAttribute("toc-placement"),[e]),o=P.useMemo(()=>n.hasAttribute("toc"),[e]),d=e.hasAttribute("levels")?parseInt(e.getAttribute("levels")):void 0;return h==="macro"&&n.hasSections()&&o?l("div",{id:a,className:S("toc",R(e)),children:[r("div",{id:`${a}title`,className:"title",children:k.default(c||"")}),r(re,{node:e.getDocument(),opts:{tocLevels:d}})]}):null},Ge=()=>r("hr",{}),qe=({node:e})=>{const a=e.isOption("checklist");return l("div",{id:e.getId?e.getId():"",className:S("ulist",e.getStyle(),R(e),a&&"checklist"),...N(e),children:[r(L,{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:S("fa",n.hasAttribute("checked")?"fa-check-square-o":"fa-square-o")})," ",k.default($(n))]})},c):l("li",{id:n.getId(),className:R(e),children:[r("p",{dangerouslySetInnerHTML:{__html:$(n)}}),r(j,{blocks:n.getBlocks()})]},c))})]})},Xe=({node:e})=>{const a=e.getAttribute("attribution"),n=e.getAttribute("citetitle"),c=H(e);return l("div",{id:e.getId?e.getId():"",className:S("verseblock",R(e)),...N(e),children:[r(L,{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(),h=e.getAttributes();c.playbackAttributes(h);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(Ue,{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(He,{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=Ue,f.Quote=He,f.Section=Ve,f.Sidebar=ze,f.Table=Je,f.TableOfContents=Ke,f.ThematicBreak=Ge,f.Title=L,f.UList=qe,f.Verse=Xe,f.default=wt,f.getContent=H,f.getLineNumber=N,f.getRole=R,f.getText=$,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|