(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"02f0":function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";t.defineMode("shell",(function(){var e={};function n(t,n){for(var r=0;r1&&t.eat("$");var n=t.next();return/['"({]/.test(n)?(e.tokens[0]=s(n,"("==n?"quote":"{"==n?"def":"string"),u(t,e)):(/\d/.test(n)||t.eatWhile(/\w/),e.tokens.shift(),"def")};function u(t,e){return(e.tokens[0]||a)(t,e)}return{startState:function(){return{tokens:[]}},token:function(t,e){return u(t,e)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}})),t.defineMIME("text/x-sh","shell"),t.defineMIME("application/x-sh","shell")}))},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),l=n("5135"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;e.f=r?u:function(t,e){if(t=a(t),e=s(e,!0),c)try{return u(t,e)}catch(n){}if(l(t,e))return o(!i.f.call(t,e),t[e])}},"0b6c":function(t,e,n){(function(t){t(n("56b3"),n("b933"),n("2aed"))})((function(t){"use strict";function e(t,e){return"string"==typeof t?t=new RegExp(t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e?"gi":"g"):t.global||(t=new RegExp(t.source,t.ignoreCase?"gi":"g")),{token:function(e){t.lastIndex=e.pos;var n=t.exec(e.string);if(n&&n.index==e.pos)return e.pos+=n[0].length||1,"searching";n?e.pos=n.index:e.skipToEnd()}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function r(t){return t.state.search||(t.state.search=new n)}function i(t){return"string"==typeof t&&t==t.toLowerCase()}function o(t,e,n){return t.getSearchCursor(e,n,{caseFold:i(e),multiline:!0})}function a(t,e,n,r,i){t.openDialog(e,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){p(t)},onKeyDown:i})}function s(t,e,n,r,i){t.openDialog?t.openDialog(e,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function l(t,e,n,r){t.openConfirm?t.openConfirm(e,r):confirm(n)&&r[0]()}function c(t){return t.replace(/\\([nrt\\])/g,(function(t,e){return"n"==e?"\n":"r"==e?"\r":"t"==e?"\t":"\\"==e?"\\":t}))}function u(t){var e=t.match(/^\/(.*)\/([a-z]*)$/);if(e)try{t=new RegExp(e[1],-1==e[2].indexOf("i")?"":"i")}catch(n){}else t=c(t);return("string"==typeof t?""==t:t.test(""))&&(t=/x^/),t}function d(t,n,r){n.queryText=r,n.query=u(r),t.removeOverlay(n.overlay,i(n.query)),n.overlay=e(n.query,i(n.query)),t.addOverlay(n.overlay),t.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=t.showMatchesOnScrollbar(n.query,i(n.query)))}function f(e,n,i,o){var l=r(e);if(l.query)return h(e,n);var c=e.getSelection()||l.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),i&&e.openDialog){var u=null,f=function(n,r){t.e_stop(r),n&&(n!=l.queryText&&(d(e,l,n),l.posFrom=l.posTo=e.getCursor()),u&&(u.style.opacity=1),h(e,r.shiftKey,(function(t,n){var r;n.line<3&&document.querySelector&&(r=e.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>e.cursorCoords(n,"window").top&&((u=r).style.opacity=.4)})))};a(e,$(e),c,f,(function(n,i){var o=t.keyName(n),a=e.getOption("extraKeys"),s=a&&a[o]||t.keyMap[e.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(t.e_stop(n),d(e,r(e),i),e.execCommand(s)):"find"!=s&&"findPersistent"!=s||(t.e_stop(n),f(i,n))})),o&&c&&(d(e,l,c),h(e,n))}else s(e,$(e),"Search for:",c,(function(t){t&&!l.query&&e.operation((function(){d(e,l,t),l.posFrom=l.posTo=e.getCursor(),h(e,n)}))}))}function h(e,n,i){e.operation((function(){var a=r(e),s=o(e,a.query,n?a.posFrom:a.posTo);(s.find(n)||(s=o(e,a.query,n?t.Pos(e.lastLine()):t.Pos(e.firstLine(),0)),s.find(n)))&&(e.setSelection(s.from(),s.to()),e.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),i&&i(s.from(),s.to()))}))}function p(t){t.operation((function(){var e=r(t);e.lastQuery=e.query,e.query&&(e.query=e.queryText=null,t.removeOverlay(e.overlay),e.annotate&&(e.annotate.clear(),e.annotate=null))}))}function $(t){return''+t.phrase("Search:")+' '+t.phrase("(Use /re/ syntax for regexp search)")+""}function m(t){return' '+t.phrase("(Use /re/ syntax for regexp search)")+""}function g(t){return''+t.phrase("With:")+' '}function v(t){return''+t.phrase("Replace?")+" "}function y(t,e,n){t.operation((function(){for(var r=o(t,e);r.findNext();)if("string"!=typeof e){var i=t.getRange(r.from(),r.to()).match(e);r.replace(n.replace(/\$(\d)/g,(function(t,e){return i[e]})))}else r.replace(n)}))}function _(t,e){if(!t.getOption("readOnly")){var n=t.getSelection()||r(t).lastQuery,i=''+(e?t.phrase("Replace all:"):t.phrase("Replace:"))+"";s(t,i+m(t),i,n,(function(n){n&&(n=u(n),s(t,g(t),t.phrase("Replace with:"),"",(function(r){if(r=c(r),e)y(t,n,r);else{p(t);var i=o(t,n,t.getCursor("from")),a=function(){var e,c=i.from();!(e=i.findNext())&&(i=o(t,n),!(e=i.findNext())||c&&i.from().line==c.line&&i.from().ch==c.ch)||(t.setSelection(i.from(),i.to()),t.scrollIntoView({from:i.from(),to:i.to()}),l(t,v(t),t.phrase("Replace?"),[function(){s(e)},a,function(){y(t,n,r)}]))},s=function(t){i.replace("string"==typeof n?r:r.replace(/\$(\d)/g,(function(e,n){return t[n]}))),a()};a()}})))}))}}t.commands.find=function(t){p(t),f(t)},t.commands.findPersistent=function(t){p(t),f(t,!1,!0)},t.commands.findPersistentNext=function(t){f(t,!1,!0,!0)},t.commands.findPersistentPrev=function(t){f(t,!0,!0,!0)},t.commands.findNext=f,t.commands.findPrev=function(t){f(t,!0)},t.commands.clearSearch=p,t.commands.replace=_,t.commands.replaceAll=function(t){_(t,!0)}}))},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"164b":function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";t.registerGlobalHelper("fold","comment",(function(t){return t.blockCommentStart&&t.blockCommentEnd}),(function(e,n){var r=e.getModeAt(n),i=r.blockCommentStart,o=r.blockCommentEnd;if(i&&o){for(var a,s=n.line,l=e.getLine(s),c=n.ch,u=0;;){var d=c<=0?-1:l.lastIndexOf(i,c-1);if(-1!=d){if(1==u&&d0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function u(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function d(t,e,n){return 3*(e+n)/4-n}function f(t){var e,n,r=c(t),a=r[0],s=r[1],l=new o(d(t,a,s)),u=0,f=s>0?a-4:a;for(n=0;n>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[u++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function h(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function p(t,e,n){for(var r,i=[],o=e;ol?l:s+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"21a6":function(t,e,n){(function(n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})(0,(function(){"use strict";function e(t,e){return"undefined"==typeof e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function r(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){s(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function o(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(t,e,n){var s=a.URL||a.webkitURL,l=document.createElement("a");e=e||t.name||"download",l.download=e,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?o(l):i(l.href)?r(t,e,n):o(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,a){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,a),n);else if(i(t))r(t,n,a);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){o(s)}))}}:function(t,e,n,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return r(t,e,n);var o="application/octet-stream"===t.type,s=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&s)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},c.readAsDataURL(t)}else{var u=a.URL||a.webkitURL,d=u.createObjectURL(t);i?i.location=d:location.href=d,i=null,setTimeout((function(){u.revokeObjectURL(d)}),4e4)}});a.saveAs=s.saveAs=s,t.exports=s}))}).call(this,n("c8ba"))},2266:function(t,e,n){var r=n("825a"),i=n("e95a"),o=n("50c4"),a=n("0366"),s=n("35a1"),l=n("9bdd"),c=function(t,e){this.stopped=t,this.result=e},u=t.exports=function(t,e,n,u,d){var f,h,p,$,m,g,v,y=a(e,n,u?2:1);if(d)f=t;else{if(h=s(t),"function"!=typeof h)throw TypeError("Target is not iterable");if(i(h)){for(p=0,$=o(t.length);$>p;p++)if(m=u?y(r(v=t[p])[0],v[1]):y(t[p]),m&&m instanceof c)return m;return new c(!1)}f=h.call(t)}g=f.next;while(!(v=g.call(f)).done)if(m=l(f,y,v.value,u),"object"==typeof m&&m&&m instanceof c)return m;return new c(!1)};u.stop=function(t){return new c(!0,t)}},"23cb":function(t,e,n){var r=n("a691"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23de":function(t,e,n){(function(t){t(n("56b3"),n("715d"))})((function(t){"use strict";var e={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function n(t){for(var n in this.options={},e)this.options[n]=(t&&t.hasOwnProperty(n)?t:e)[n];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}function r(t){var e=t.state.matchHighlighter;(e.active||t.hasFocus())&&o(t,e)}function i(t){var e=t.state.matchHighlighter;e.active||(e.active=!0,o(t,e))}function o(t,e){clearTimeout(e.timeout),e.timeout=setTimeout((function(){l(t)}),e.options.delay)}function a(t,e,n,r){var i=t.state.matchHighlighter;if(t.addOverlay(i.overlay=d(e,n,r)),i.options.annotateScrollbar&&t.showMatchesOnScrollbar){var o=n?new RegExp((/\w/.test(e.charAt(0))?"\\b":"")+e.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(e.charAt(e.length-1))?"\\b":"")):e;i.matchesonscroll=t.showMatchesOnScrollbar(o,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function s(t){var e=t.state.matchHighlighter;e.overlay&&(t.removeOverlay(e.overlay),e.overlay=null,e.matchesonscroll&&(e.matchesonscroll.clear(),e.matchesonscroll=null))}function l(t){t.operation((function(){var e=t.state.matchHighlighter;if(s(t),t.somethingSelected()||!e.options.showToken){var n=t.getCursor("from"),r=t.getCursor("to");if(n.line==r.line&&(!e.options.wordsOnly||c(t,n,r))){var i=t.getRange(n,r);e.options.trim&&(i=i.replace(/^\s+|\s+$/g,"")),i.length>=e.options.minChars&&a(t,i,!1,e.options.style)}}else{var o=!0===e.options.showToken?/[\w$]/:e.options.showToken,l=t.getCursor(),u=t.getLine(l.line),d=l.ch,f=d;while(d&&o.test(u.charAt(d-1)))--d;while(f0){var i={line:e.line,ch:e.ch-1},o=t.getRange(i,e);if(null===o.match(/\W/))return!1}if(n.ch=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function $(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function _(t,e){return y.call(t,e)}function b(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var w=/-(\w)/g,x=b((function(t){return t.replace(w,(function(t,e){return e?e.toUpperCase():""}))})),k=b((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),S=/\B([A-Z])/g,O=b((function(t){return t.replace(S,"-$1").toLowerCase()}));function C(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function A(t,e){return t.bind(e)}var E=Function.prototype.bind?A:C;function T(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function P(t,e){for(var n in e)t[n]=e[n];return t}function B(t){for(var e={},n=0;n0,nt=Q&&Q.indexOf("edge/")>0,rt=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===J),it=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),ot={}.watch,at=!1;if(X)try{var st={};Object.defineProperty(st,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,st)}catch(xa){}var lt=function(){return void 0===Y&&(Y=!X&&!Z&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),Y},ct=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"===typeof t&&/native code/.test(t.toString())}var dt,ft="undefined"!==typeof Symbol&&ut(Symbol)&&"undefined"!==typeof Reflect&&ut(Reflect.ownKeys);dt="undefined"!==typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ht=L,pt=0,$t=function(){this.id=pt++,this.subs=[]};$t.prototype.addSub=function(t){this.subs.push(t)},$t.prototype.removeSub=function(t){v(this.subs,t)},$t.prototype.depend=function(){$t.target&&$t.target.addDep(this)},$t.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===O(t)){var l=te(String,i.type);(l<0||s0&&(a=Ce(a,(e||"")+"_"+n),Oe(a[0])&&Oe(c)&&(u[l]=wt(c.text+a[0].text),a.shift()),u.push.apply(u,a)):s(a)?Oe(c)?u[l]=wt(c.text+a):""!==a&&u.push(wt(a)):Oe(a)&&Oe(c)?u[l]=wt(c.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),u.push(a)));return u}function Ae(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Ee(t){var e=Te(t.$options.inject,t);e&&(Et(!1),Object.keys(e).forEach((function(n){It(t,n,e[n])})),Et(!0))}function Te(t,e){if(t){for(var n=Object.create(null),r=ft?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=Ie(e,l,t[l]))}else i={};for(var c in e)c in i||(i[c]=De(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),q(i,"$stable",a),q(i,"$key",s),q(i,"$hasNormal",o),i}function Ie(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Se(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function De(t,e){return function(){return t[e]}}function Re(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r1?T(n):n;for(var r=T(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;odocument.createEvent("Event").timeStamp&&(Yn=function(){return Kn.now()})}function Xn(){var t,e;for(Gn=Yn(),Un=!0,Nn.sort((function(t,e){return t.id-e.id})),qn=0;qnqn&&Nn[n].id>t.id)n--;Nn.splice(n+1,0,t)}else Nn.push(t);Vn||(Vn=!0,pe(Xn))}}var er=0,nr=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new dt,this.newDepIds=new dt,this.expression="","function"===typeof e?this.getter=e:(this.getter=G(e),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var t;gt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(xa){if(!this.user)throw xa;ee(xa,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&me(t),vt(),this.cleanupDeps()}return t},nr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},nr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(xa){ee(xa,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:L,set:L};function ir(t,e,n){rr.get=function(){return this[e][n]},rr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,rr)}function or(t){t._watchers=[];var e=t.$options;e.props&&ar(t,e.props),e.methods&&pr(t,e.methods),e.data?sr(t):Lt(t._data={},!0),e.computed&&ur(t,e.computed),e.watch&&e.watch!==ot&&$r(t,e.watch)}function ar(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Et(!1);var a=function(o){i.push(o);var a=Xt(o,e,n,t);It(r,o,a),o in t||ir(t,"_props",o)};for(var s in e)a(s);Et(!0)}function sr(t){var e=t.$options.data;e=t._data="function"===typeof e?lr(e,t):e||{},u(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&_(r,o)||U(o)||ir(t,"_data",o)}Lt(e,!0)}function lr(t,e){gt();try{return t.call(e,e)}catch(xa){return ee(xa,e,"data()"),{}}finally{vt()}}var cr={lazy:!0};function ur(t,e){var n=t._computedWatchers=Object.create(null),r=lt();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new nr(t,a||L,L,cr)),i in t||dr(t,i,o)}}function dr(t,e,n){var r=!lt();"function"===typeof n?(rr.get=r?fr(e):hr(n),rr.set=L):(rr.get=n.get?r&&!1!==n.cache?fr(e):hr(n.get):L,rr.set=n.set||L),Object.defineProperty(t,e,rr)}function fr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),$t.target&&e.depend(),e.value}}function hr(t){return function(){return t.call(this,this)}}function pr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?L:E(e[n],t)}function $r(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1)return this;var n=T(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Sr(t){t.mixin=function(t){return this.options=Yt(this.options,t),this}}function Or(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Yt(n.options,t),a["super"]=n,a.options.props&&Cr(a),a.options.computed&&Ar(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,N.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=P({},a.options),i[r]=a,a}}function Cr(t){var e=t.options.props;for(var n in e)ir(t.prototype,"_props",n)}function Ar(t){var e=t.options.computed;for(var n in e)dr(t.prototype,n,e[n])}function Er(t){N.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Tr(t){return t&&(t.Ctor.options.name||t.tag)}function Pr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!d(t)&&t.test(e)}function Br(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Tr(a.componentOptions);s&&!e(s)&&Lr(n,o,r,i)}}}function Lr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,v(n,e)}yr(xr),gr(xr),En(xr),Ln(xr),vn(xr);var Ir=[String,RegExp,Array],Dr={name:"keep-alive",abstract:!0,props:{include:Ir,exclude:Ir,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Lr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Br(t,(function(t){return Pr(e,t)}))})),this.$watch("exclude",(function(e){Br(t,(function(t){return!Pr(e,t)}))}))},render:function(){var t=this.$slots.default,e=xn(t),n=e&&e.componentOptions;if(n){var r=Tr(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Pr(o,r))||a&&r&&Pr(a,r))return e;var s=this,l=s.cache,c=s.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;l[u]?(e.componentInstance=l[u].componentInstance,v(c,u),c.push(u)):(l[u]=e,c.push(u),this.max&&c.length>parseInt(this.max)&&Lr(l,c[0],c,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Rr={KeepAlive:Dr};function jr(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ht,extend:P,mergeOptions:Yt,defineReactive:It},t.set=Dt,t.delete=Rt,t.nextTick=pe,t.observable=function(t){return Lt(t),t},t.options=Object.create(null),N.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,P(t.options.components,Rr),kr(t),Sr(t),Or(t),Er(t)}jr(xr),Object.defineProperty(xr.prototype,"$isServer",{get:lt}),Object.defineProperty(xr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(xr,"FunctionalRenderContext",{value:Ze}),xr.version="2.6.12";var Mr=m("style,class"),Fr=m("input,textarea,option,select,progress"),Nr=function(t,e,n){return"value"===n&&Fr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},zr=m("contenteditable,draggable,spellcheck"),Hr=m("events,caret,typing,plaintext-only"),Vr=function(t,e){return Yr(e)||"false"===e?"false":"contenteditable"===t&&Hr(e)?e:"true"},Ur=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),qr="http://www.w3.org/1999/xlink",Wr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Gr=function(t){return Wr(t)?t.slice(6,t.length):""},Yr=function(t){return null==t||!1===t};function Kr(t){var e=t.data,n=t,r=t;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=Xr(r.data,e));while(i(n=n.parent))n&&n.data&&(e=Xr(e,n.data));return Zr(e.staticClass,e.class)}function Xr(t,e){return{staticClass:Jr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Zr(t,e){return i(t)||i(e)?Jr(t,Qr(e)):""}function Jr(t,e){return t?e?t+" "+e:t:e||""}function Qr(t){return Array.isArray(t)?ti(t):l(t)?ei(t):"string"===typeof t?t:""}function ti(t){for(var e,n="",r=0,o=t.length;r-1?si[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:si[t]=/HTMLUnknownElement/.test(e.toString())}var ci=m("text,number,password,search,email,tel,url");function ui(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function di(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function fi(t,e){return document.createElementNS(ni[t],e)}function hi(t){return document.createTextNode(t)}function pi(t){return document.createComment(t)}function $i(t,e,n){t.insertBefore(e,n)}function mi(t,e){t.removeChild(e)}function gi(t,e){t.appendChild(e)}function vi(t){return t.parentNode}function yi(t){return t.nextSibling}function _i(t){return t.tagName}function bi(t,e){t.textContent=e}function wi(t,e){t.setAttribute(e,"")}var xi=Object.freeze({createElement:di,createElementNS:fi,createTextNode:hi,createComment:pi,insertBefore:$i,removeChild:mi,appendChild:gi,parentNode:vi,nextSibling:yi,tagName:_i,setTextContent:bi,setStyleScope:wi}),ki={create:function(t,e){Si(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Si(t,!0),Si(e))},destroy:function(t){Si(t,!0)}};function Si(t,e){var n=t.data.ref;if(i(n)){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?v(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var Oi=new yt("",{},[]),Ci=["create","activate","update","remove","destroy"];function Ai(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Ei(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Ei(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,o=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===o||ci(r)&&ci(o)}function Ti(t,e,n){var r,o,a={};for(r=e;r<=n;++r)o=t[r].key,i(o)&&(a[o]=r);return a}function Pi(t){var e,n,a={},l=t.modules,c=t.nodeOps;for(e=0;e$?(d=r(n[v+1])?null:n[v+1].elm,x(t,d,n,p,v,o)):p>v&&S(e,f,$)}function A(t,e,n,r){for(var o=n;o-1?Hi(t,e,n):Ur(e)?Yr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):zr(e)?t.setAttribute(e,Vr(e,n)):Wr(e)?Yr(n)?t.removeAttributeNS(qr,Gr(e)):t.setAttributeNS(qr,e,n):Hi(t,e,n)}function Hi(t,e,n){if(Yr(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Vi={create:Ni,update:Ni};function Ui(t,e){var n=e.elm,o=e.data,a=t.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Kr(e),l=n._transitionClasses;i(l)&&(s=Jr(s,Qr(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var qi,Wi={create:Ui,update:Ui},Gi="__r",Yi="__c";function Ki(t){if(i(t[Gi])){var e=tt?"change":"input";t[e]=[].concat(t[Gi],t[e]||[]),delete t[Gi]}i(t[Yi])&&(t.change=[].concat(t[Yi],t.change||[]),delete t[Yi])}function Xi(t,e,n){var r=qi;return function i(){var o=e.apply(null,arguments);null!==o&&Qi(t,i,n,r)}}var Zi=ae&&!(it&&Number(it[1])<=53);function Ji(t,e,n,r){if(Zi){var i=Gn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}qi.addEventListener(t,e,at?{capture:n,passive:r}:n)}function Qi(t,e,n,r){(r||qi).removeEventListener(t,e._wrapper||e,n)}function to(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};qi=e.elm,Ki(n),_e(n,i,Ji,Qi,Xi,e.context),qi=void 0}}var eo,no={create:to,update:to};function ro(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,a=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(n in i(l.__ob__)&&(l=e.data.domProps=P({},l)),s)n in l||(a[n]="");for(n in l){if(o=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var c=r(o)?"":String(o);io(a,c)&&(a.value=c)}else if("innerHTML"===n&&ii(a.tagName)&&r(a.innerHTML)){eo=eo||document.createElement("div"),eo.innerHTML=""+o+"";var u=eo.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(u.firstChild)a.appendChild(u.firstChild)}else if(o!==s[n])try{a[n]=o}catch(xa){}}}}function io(t,e){return!t.composing&&("OPTION"===t.tagName||oo(t,e)||ao(t,e))}function oo(t,e){var n=!0;try{n=document.activeElement!==t}catch(xa){}return n&&t.value!==e}function ao(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return $(n)!==$(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var so={create:ro,update:ro},lo=b((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function co(t){var e=uo(t.style);return t.staticStyle?P(t.staticStyle,e):e}function uo(t){return Array.isArray(t)?B(t):"string"===typeof t?lo(t):t}function fo(t,e){var n,r={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=co(i.data))&&P(r,n)}(n=co(t.data))&&P(r,n);var o=t;while(o=o.parent)o.data&&(n=co(o.data))&&P(r,n);return r}var ho,po=/^--/,$o=/\s*!important$/,mo=function(t,e,n){if(po.test(e))t.style.setProperty(e,n);else if($o.test(n))t.style.setProperty(O(e),n.replace($o,""),"important");else{var r=vo(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(bo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function xo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(bo).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function ko(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&P(e,So(t.name||"v")),P(e,t),e}return"string"===typeof t?So(t):void 0}}var So=b((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Oo=X&&!et,Co="transition",Ao="animation",Eo="transition",To="transitionend",Po="animation",Bo="animationend";Oo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Eo="WebkitTransition",To="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Po="WebkitAnimation",Bo="webkitAnimationEnd"));var Lo=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Io(t){Lo((function(){Lo(t)}))}function Do(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),wo(t,e))}function Ro(t,e){t._transitionClasses&&v(t._transitionClasses,e),xo(t,e)}function jo(t,e,n){var r=Fo(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Co?To:Bo,l=0,c=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++l>=a&&c()};setTimeout((function(){l0&&(n=Co,u=a,d=o.length):e===Ao?c>0&&(n=Ao,u=c,d=l.length):(u=Math.max(a,c),n=u>0?a>c?Co:Ao:null,d=n?n===Co?o.length:l.length:0);var f=n===Co&&Mo.test(r[Eo+"Property"]);return{type:n,timeout:u,propCount:d,hasTransform:f}}function No(t,e){while(t.length1}function Wo(t,e){!0!==e.data.show&&Ho(e)}var Go=X?{create:Wo,activate:Wo,remove:function(t,e){!0!==t.data.show?Vo(t,e):e()}}:{},Yo=[Vi,Wi,no,so,_o,Go],Ko=Yo.concat(Fi),Xo=Pi({nodeOps:xi,modules:Ko});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&ia(t,"input")}));var Zo={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?be(n,"postpatch",(function(){Zo.componentUpdated(t,e,n)})):Jo(t,e,n.context),t._vOptions=[].map.call(t.options,ea)):("textarea"===n.tag||ci(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",na),t.addEventListener("compositionend",ra),t.addEventListener("change",ra),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Jo(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,ea);if(i.some((function(t,e){return!R(t,r[e])}))){var o=t.multiple?e.value.some((function(t){return ta(t,i)})):e.value!==e.oldValue&&ta(e.value,i);o&&ia(t,"change")}}}};function Jo(t,e,n){Qo(t,e,n),(tt||nt)&&setTimeout((function(){Qo(t,e,n)}),0)}function Qo(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=t.options.length;s-1,a.selected!==o&&(a.selected=o);else if(R(ea(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function ta(t,e){return e.every((function(e){return!R(e,t)}))}function ea(t){return"_value"in t?t._value:t.value}function na(t){t.target.composing=!0}function ra(t){t.target.composing&&(t.target.composing=!1,ia(t.target,"input"))}function ia(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function oa(t){return!t.componentInstance||t.data&&t.data.transition?t:oa(t.componentInstance._vnode)}var aa={bind:function(t,e,n){var r=e.value;n=oa(n);var i=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Ho(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value,i=e.oldValue;if(!r!==!i){n=oa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Ho(n,(function(){t.style.display=t.__vOriginalDisplay})):Vo(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},sa={model:Zo,show:aa},la={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ca(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ca(xn(e.children)):t}function ua(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[x(o)]=i[o];return e}function da(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function fa(t){while(t=t.parent)if(t.data.transition)return!0}function ha(t,e){return e.key===t.key&&e.tag===t.tag}var pa=function(t){return t.tag||wn(t)},$a=function(t){return"show"===t.name},ma={name:"transition",props:la,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(pa),n.length)){0;var r=this.mode;0;var i=n[0];if(fa(this.$vnode))return i;var o=ca(i);if(!o)return i;if(this._leaving)return da(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var l=(o.data||(o.data={})).transition=ua(this),c=this._vnode,u=ca(c);if(o.data.directives&&o.data.directives.some($a)&&(o.data.show=!0),u&&u.data&&!ha(o,u)&&!wn(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=P({},l);if("out-in"===r)return this._leaving=!0,be(d,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),da(t,i);if("in-out"===r){if(wn(o))return c;var f,h=function(){f()};be(l,"afterEnter",h),be(l,"enterCancelled",h),be(d,"delayLeave",(function(t){f=t}))}}return i}}},ga=P({tag:String,moveClass:String},la);delete ga.mode;var va={props:ga,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Pn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=ua(this),s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce((function(t,n){var r=n.passengers[0],i="function"===typeof r?r(e):n.passengers;return t.concat(i)}),[])}function h(t,e){return t.map((function(t,e){return[e,t]})).sort((function(t,n){return e(t[1],n[1])||t[0]-n[0]})).map((function(t){return t[1]}))}function p(t,e){return e.reduce((function(e,n){return t.hasOwnProperty(n)&&(e[n]=t[n]),e}),{})}var $={},m={},g={},v=i.extend({data:function(){return{transports:$,targets:m,sources:g,trackInstances:u}},methods:{open:function(t){if(u){var e=t.to,n=t.from,r=t.passengers,o=t.order,a=void 0===o?1/0:o;if(e&&n&&r){var s={to:e,from:n,passengers:d(r),order:a},l=Object.keys(this.transports);-1===l.indexOf(e)&&i.set(this.transports,e,[]);var c=this.$_getTransportIndex(s),f=this.transports[e].slice(0);-1===c?f.push(s):f[c]=s,this.transports[e]=h(f,(function(t,e){return t.order-e.order}))}}},close:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.to,r=t.from;if(n&&(r||!1!==e)&&this.transports[n])if(e)this.transports[n]=[];else{var i=this.$_getTransportIndex(t);if(i>=0){var o=this.transports[n].slice(0);o.splice(i,1),this.transports[n]=o}}},registerTarget:function(t,e,n){u&&(this.trackInstances&&!n&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(t,e,n){u&&(this.trackInstances&&!n&&this.sources[t]&&console.warn("[portal-vue]: source ".concat(t," already exists")),this.$set(this.sources,t,Object.freeze([e])))},unregisterSource:function(t){this.$delete(this.sources,t)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,n=t.from;for(var r in this.transports[e])if(this.transports[e][r].from===n)return+r;return-1}}}),y=new v($),_=1,b=i.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(_++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick((function(){y.registerSource(t.name,t)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){y.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};y.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"===typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:a(t),order:this.order};y.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(n,[this.normalizeOwnChildren(e)]):this.slim?t():t(n,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),w=i.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:y.transports,firstRender:!0}},created:function(){var t=this;this.$nextTick((function(){y.registerTarget(t.name,t)}))},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(t,e){y.unregisterTarget(e),y.registerTarget(t,this)}},mounted:function(){var t=this;this.transition&&this.$nextTick((function(){t.firstRender=!1}))},beforeDestroy:function(){y.unregisterTarget(this.name)},computed:{ownTransports:function(){var t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers:function(){return f(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var t=this.slim&&!this.transition;return t&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),t}},render:function(t){var e=this.noWrapper(),n=this.children(),r=this.transition||this.tag;return e?n[0]:this.slim&&!r?t():t(r,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},n)}}),x=0,k=["disabled","name","order","slim","slotProps","tag","to"],S=["multiple","transition"],O=i.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(x++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!==typeof document){var t=document.querySelector(this.mountTo);if(t){var e=this.$props;if(y.targets[e.name])e.bail?console.warn("[portal-vue]: Target ".concat(e.name," is already mounted.\n Aborting because 'bail: true' is set")):this.portalTarget=y.targets[e.name];else{var n=e.append;if(n){var r="string"===typeof n?n:"DIV",i=document.createElement(r);t.appendChild(i),t=i}var o=p(this.$props,S);o.slim=this.targetSlim,o.tag=this.targetTag,o.slotProps=this.targetSlotProps,o.name=this.to,this.portalTarget=new w({el:t,parent:this.$parent||this,propsData:o})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var t=this.portalTarget;if(this.append){var e=t.$el;e.parentNode.removeChild(e)}t.$destroy()},render:function(t){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),t();if(!this.$scopedSlots.manual){var e=p(this.$props,k);return t(b,{props:e,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var n=this.$scopedSlots.manual({to:this.to});return Array.isArray(n)&&(n=n[0]),n||t()}});function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.portalName||"Portal",b),t.component(e.portalTargetName||"PortalTarget",w),t.component(e.MountingPortalName||"MountingPortal",O)}var A={install:C};e.default=A,e.Portal=b,e.PortalTarget=w,e.MountingPortal=O,e.Wormhole=y},"2ce7":function(module,exports,__webpack_require__){(function(global,process,Buffer,module){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__; /** * @license Asciidoctor.js 2.2.0 | MIT | https://github.com/asciidoctor/asciidoctor.js */(function(t){var e,n,r,i,o,a,s=this;if("undefined"!==typeof global&&(s=global),"undefined"!==typeof window&&(s=window),e="object"===typeof s.console?s.console:null==s.console?s.console={}:{},"log"in e||(e.log=function(){}),"warn"in e||(e.warn=e.log),"undefined"!==typeof this.Opal)return e.warn("Opal already loaded. Loading twice can cause troubles, please fix your setup."),this.Opal;var l=this.Opal={};l.global=s,s.Opal=l,l.config={missing_require_severity:"error",unsupported_features_severity:"warning",enable_stack_trace:!0};var c=Object.hasOwnProperty,u=Function.prototype.bind,d=Object.setPrototypeOf,f=Array.prototype.slice,h=Array.prototype.splice,p=4,$=p;function m(t,e,n){"string"===typeof t?t[e]=n:Object.defineProperty(t,e,{value:n,enumerable:!1,configurable:!0,writable:!0})}function g(t,e){if(t)return t.$$const[e]}function v(t,e){var n,r,i;if(0!==t.length)for(n=0,r=t.length;n=0;e--){var o=n[e];for(var a in o.$$cvars)i[a]=o.$$cvars[a]}return i},l.class_variable_set=function(t,e,n){var r,i=l.ancestors(t),o=i.length;for(r=o-2;r>=0;r--){var a=i[r];if(c.call(a.$$cvars,e))return a.$$cvars[e]=n,n}return t.$$cvars[e]=n,n},l.append_features=function(t,e){var n=l.ancestors(t),r=[];if(-1!==n.indexOf(e))throw l.ArgumentError.$new("cyclic include detected");for(var i=0,o=n.length;i1||(n||r)&&1===t.length)&&(e=l.to_ary(e)),(t.length>1||r&&1===t.length)&&e.$$is_array?t.apply(null,e):t(e)},l.yieldX=function(t,e){if("function"!==typeof t)throw l.LocalJumpError.$new("no block given");if(t.length>1&&1===e.length&&e[0].$$is_array)return t.apply(null,e[0]);if(!e.$$is_array){for(var n=new Array(e.length),r=0,i=n.length;r","$coerce_to!","$!=","$[]","$upcase"]),function(e,a){var s,l,c,u,d,f,h,p,$,m,g,v,y,_,b=i(e,"Opal"),w=[b].concat(a);t.defs(b,"$bridge",s=function(e,n){return t.bridge(e,n)},s.$$arity=2),t.defs(b,"$type_error",l=function(t,e,i,a){var s;return null==i&&(i=n),null==a&&(a=n),o(o(s=i)?a:s)?r(w,"TypeError").$new("can't convert "+t.$class()+" into "+e+" ("+t.$class()+"#"+i+" gives "+a.$class()+")"):r(w,"TypeError").$new("no implicit conversion of "+t.$class()+" into "+e)},l.$$arity=-3),t.defs(b,"$coerce_to",c=function(t,e,n){var r=this;return o(e["$==="](t))?t:(o(t["$respond_to?"](n))||r.$raise(r.$type_error(t,e)),t.$__send__(n))},c.$$arity=3),t.defs(b,"$coerce_to!",u=function(t,e,r){var i=this,a=n;return a=i.$coerce_to(t,e,r),o(e["$==="](a))||i.$raise(i.$type_error(t,e,r,a)),a},u.$$arity=3),t.defs(b,"$coerce_to?",d=function(t,e,r){var i=this,a=n;return o(t["$respond_to?"](r))?(a=i.$coerce_to(t,e,r),o(a["$nil?"]())?n:(o(e["$==="](a))||i.$raise(i.$type_error(t,e,r,a)),a)):n},d.$$arity=3),t.defs(b,"$try_convert",f=function(t,e,r){return o(e["$==="](t))?t:o(t["$respond_to?"](r))?t.$__send__(r):n},f.$$arity=3),t.defs(b,"$compare",h=function(t,e){var i=this,a=n;return a=t["$<=>"](e),o(a===n)&&i.$raise(r(w,"ArgumentError"),"comparison of "+t.$class()+" with "+e.$class()+" failed"),a},h.$$arity=2),t.defs(b,"$destructure",p=function(t){if(1==t.length)return t[0];if(t.$$is_array)return t;for(var e=new Array(t.length),n=0,r=e.length;n=0;l--)a=o[l],s=e.$$prototype["$"+a],s&&!s.$$stub&&(s.$$pristine=!0);return n},_.$$arity=-2)}(e[0],e)},Opal.modules["corelib/module"]=function(Opal){function $rb_lt(t,e){return"number"===typeof t&&"number"===typeof e?te:t["$>"](e)}var self=Opal.top,$nesting=[],nil=Opal.nil,$$$=Opal.const_get_qualified,$$=Opal.const_get_relative,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$send=Opal.send,$truthy=Opal.truthy,$lambda=Opal.lambda,$range=Opal.range,$hash2=Opal.hash2;return Opal.add_stubs(["$module_eval","$to_proc","$===","$raise","$equal?","$<","$>","$nil?","$attr_reader","$attr_writer","$class_variable_name!","$new","$const_name!","$=~","$inject","$split","$const_get","$==","$!~","$start_with?","$bind","$call","$class","$append_features","$included","$name","$cover?","$size","$merge","$compile","$proc","$any?","$prepend_features","$prepended","$to_s","$__id__","$constants","$include?","$copy_class_variables","$copy_constants"]),function($base,$super,$parent_nesting){var self=$klass($base,$super,"Module"),$nesting=[self].concat($parent_nesting),$Module_allocate$1,$Module_initialize$2,$Module_$eq_eq_eq$3,$Module_$lt$4,$Module_$lt_eq$5,$Module_$gt$6,$Module_$gt_eq$7,$Module_$lt_eq_gt$8,$Module_alias_method$9,$Module_alias_native$10,$Module_ancestors$11,$Module_append_features$12,$Module_attr_accessor$13,$Module_attr_reader$14,$Module_attr_writer$15,$Module_autoload$16,$Module_class_variables$17,$Module_class_variable_get$18,$Module_class_variable_set$19,$Module_class_variable_defined$ques$20,$Module_remove_class_variable$21,$Module_constants$22,$Module_constants$23,$Module_nesting$24,$Module_const_defined$ques$25,$Module_const_get$26,$Module_const_missing$28,$Module_const_set$29,$Module_public_constant$30,$Module_define_method$31,$Module_remove_method$33,$Module_singleton_class$ques$34,$Module_include$35,$Module_included_modules$36,$Module_include$ques$37,$Module_instance_method$38,$Module_instance_methods$39,$Module_included$40,$Module_extended$41,$Module_extend_object$42,$Module_method_added$43,$Module_method_removed$44,$Module_method_undefined$45,$Module_module_eval$46,$Module_module_exec$48,$Module_method_defined$ques$49,$Module_module_function$50,$Module_name$51,$Module_prepend$52,$Module_prepend_features$53,$Module_prepended$54,$Module_remove_const$55,$Module_to_s$56,$Module_undef_method$57,$Module_instance_variables$58,$Module_dup$59,$Module_copy_class_variables$60,$Module_copy_constants$61;return Opal.defs(self,"$allocate",$Module_allocate$1=function(){var t=this,e=Opal.allocate_module(nil,(function(){}));return t!==Opal.Module&&Object.setPrototypeOf(e,t.$$prototype),e},$Module_allocate$1.$$arity=0),Opal.def(self,"$initialize",$Module_initialize$2=function(){var t=$Module_initialize$2.$$p,e=t||nil,n=this;return t&&($Module_initialize$2.$$p=null),t&&($Module_initialize$2.$$p=null),e!==nil?$send(n,"module_eval",[],e.$to_proc()):nil},$Module_initialize$2.$$arity=0),Opal.def(self,"$===",$Module_$eq_eq_eq$3=function(t){var e=this;return!$truthy(null==t)&&Opal.is_a(t,e)},$Module_$eq_eq_eq$3.$$arity=1),Opal.def(self,"$<",$Module_$lt$4=function(t){var e=this;$truthy($$($nesting,"Module")["$==="](t))||e.$raise($$($nesting,"TypeError"),"compared with non class/module");var n,r,i,o=e;if(o===t)return!1;for(r=0,n=Opal.ancestors(e),i=n.length;r",$Module_$gt$6=function(t){var e=this;return $truthy($$($nesting,"Module")["$==="](t))||e.$raise($$($nesting,"TypeError"),"compared with non class/module"),$rb_lt(t,e)},$Module_$gt$6.$$arity=1),Opal.def(self,"$>=",$Module_$gt_eq$7=function(t){var e,n=this;return $truthy(e=n["$equal?"](t))?e:$rb_gt(n,t)},$Module_$gt_eq$7.$$arity=1),Opal.def(self,"$<=>",$Module_$lt_eq_gt$8=function(t){var e=this,n=nil;return e===t?0:$truthy($$($nesting,"Module")["$==="](t))?(n=$rb_lt(e,t),$truthy(n["$nil?"]())?nil:$truthy(n)?-1:1):nil},$Module_$lt_eq_gt$8.$$arity=1),Opal.def(self,"$alias_method",$Module_alias_method$9=function(t,e){var n=this;return Opal.alias(n,t,e),n},$Module_alias_method$9.$$arity=2),Opal.def(self,"$alias_native",$Module_alias_native$10=function(t,e){var n=this;return null==e&&(e=t),Opal.alias_native(n,t,e),n},$Module_alias_native$10.$$arity=-2),Opal.def(self,"$ancestors",$Module_ancestors$11=function(){var t=this;return Opal.ancestors(t)},$Module_ancestors$11.$$arity=0),Opal.def(self,"$append_features",$Module_append_features$12=function(t){var e=this;return Opal.append_features(e,t),e},$Module_append_features$12.$$arity=1),Opal.def(self,"$attr_accessor",$Module_attr_accessor$13=function(t){var e,n,r=this;return e=Opal.slice.call(arguments,0,arguments.length),n=e,$send(r,"attr_reader",Opal.to_a(n)),$send(r,"attr_writer",Opal.to_a(n))},$Module_attr_accessor$13.$$arity=-1),Opal.alias(self,"attr","attr_accessor"),Opal.def(self,"$attr_reader",$Module_attr_reader$14=function(t){var e,n,r=this;e=Opal.slice.call(arguments,0,arguments.length),n=e;for(var i=r.$$prototype,o=n.length-1;o>=0;o--){var a=n[o],s="$"+a,l=Opal.ivar(a),c=function(t){return function(){return null==this[t]?nil:this[t]}}(l);Opal.defineProperty(i,l,nil),c.$$parameters=[],c.$$arity=0,Opal.defn(r,s,c)}return nil},$Module_attr_reader$14.$$arity=-1),Opal.def(self,"$attr_writer",$Module_attr_writer$15=function(t){var e,n,r=this;e=Opal.slice.call(arguments,0,arguments.length),n=e;for(var i=r.$$prototype,o=n.length-1;o>=0;o--){var a=n[o],s="$"+a+"=",l=Opal.ivar(a),c=function(t){return function(e){return this[t]=e}}(l);c.$$parameters=[["req"]],c.$$arity=1,Opal.defineProperty(i,l,nil),Opal.defn(r,s,c)}return nil},$Module_attr_writer$15.$$arity=-1),Opal.def(self,"$autoload",$Module_autoload$16=function(t,e){var n=this;return null==n.$$autoload&&(n.$$autoload={}),Opal.const_cache_version++,n.$$autoload[t]=e,nil},$Module_autoload$16.$$arity=2),Opal.def(self,"$class_variables",$Module_class_variables$17=function(){var t=this;return Object.keys(Opal.class_variables(t))},$Module_class_variables$17.$$arity=0),Opal.def(self,"$class_variable_get",$Module_class_variable_get$18=function(t){var e=this;t=$$($nesting,"Opal")["$class_variable_name!"](t);var n=Opal.class_variables(e)[t];return null==n&&e.$raise($$($nesting,"NameError").$new("uninitialized class variable "+t+" in "+e,t)),n},$Module_class_variable_get$18.$$arity=1),Opal.def(self,"$class_variable_set",$Module_class_variable_set$19=function(t,e){var n=this;return t=$$($nesting,"Opal")["$class_variable_name!"](t),Opal.class_variable_set(n,t,e)},$Module_class_variable_set$19.$$arity=2),Opal.def(self,"$class_variable_defined?",$Module_class_variable_defined$ques$20=function(t){var e=this;return t=$$($nesting,"Opal")["$class_variable_name!"](t),Opal.class_variables(e).hasOwnProperty(t)},$Module_class_variable_defined$ques$20.$$arity=1),Opal.def(self,"$remove_class_variable",$Module_remove_class_variable$21=function(t){var e=this;if(t=$$($nesting,"Opal")["$class_variable_name!"](t),Opal.hasOwnProperty.call(e.$$cvars,t)){var n=e.$$cvars[t];return delete e.$$cvars[t],n}e.$raise($$($nesting,"NameError"),"cannot remove "+t+" for "+e)},$Module_remove_class_variable$21.$$arity=1),Opal.def(self,"$constants",$Module_constants$22=function(t){var e=this;return null==t&&(t=!0),Opal.constants(e,t)},$Module_constants$22.$$arity=-1),Opal.defs(self,"$constants",$Module_constants$23=function(t){var e=this;if(null==t){var n,r,i,o=(e.$$nesting||[]).concat(Opal.Object),a={};for(r=0,i=o.length;r=0;i--){var o=n[i];o.$$is_module||r.$raise($$($nesting,"TypeError"),"wrong argument type "+o.$class()+" (expected Module)"),o.$append_features(r),o.$included(r)}return r},$Module_include$35.$$arity=-1),Opal.def(self,"$included_modules",$Module_included_modules$36=function(){var t=this;return Opal.included_modules(t)},$Module_included_modules$36.$$arity=0),Opal.def(self,"$include?",$Module_include$ques$37=function(t){var e=this;t.$$is_module||e.$raise($$($nesting,"TypeError"),"wrong argument type "+t.$class()+" (expected Module)");var n,r,i,o=Opal.ancestors(e);for(n=0,r=o.length;n=0;i--){var o=n[i];o.$$is_module||r.$raise($$($nesting,"TypeError"),"wrong argument type "+o.$class()+" (expected Module)"),o.$prepend_features(r),o.$prepended(r)}return r},$Module_prepend$52.$$arity=-1),Opal.def(self,"$prepend_features",$Module_prepend_features$53=function(t){var e=this;return e.$$is_module||e.$raise($$($nesting,"TypeError"),"wrong argument type "+e.$class()+" (expected Module)"),Opal.prepend_features(e,t),e},$Module_prepend_features$53.$$arity=1),Opal.def(self,"$prepended",$Module_prepended$54=function(t){return nil},$Module_prepended$54.$$arity=1),Opal.def(self,"$remove_const",$Module_remove_const$55=function(t){var e=this;return Opal.const_remove(e,t)},$Module_remove_const$55.$$arity=1),Opal.def(self,"$to_s",$Module_to_s$56=function(){var t,e=this;return $truthy(t=Opal.Module.$name.call(e))?t:"#<"+(e.$$is_module?"Module":"Class")+":0x"+e.$__id__().$to_s(16)+">"},$Module_to_s$56.$$arity=0),Opal.def(self,"$undef_method",$Module_undef_method$57=function(t){var e,n,r=this;e=Opal.slice.call(arguments,0,arguments.length),n=e;for(var i=0,o=n.length;i":r?"#>":a(n,t.find_super_dispatcher(n,"to_s",p,!1),[],null)},p.$$arity=0),r&&"to_s"}(n[0],null,n)},Opal.modules["corelib/basic_object"]=function(Opal){var self=Opal.top,$nesting=[],nil=Opal.nil,$$$=Opal.const_get_qualified,$$=Opal.const_get_relative,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$truthy=Opal.truthy,$range=Opal.range,$hash2=Opal.hash2,$send=Opal.send;return Opal.add_stubs(["$==","$!","$nil?","$cover?","$size","$raise","$merge","$compile","$proc","$any?","$inspect","$new"]),function($base,$super,$parent_nesting){var self=$klass($base,$super,"BasicObject"),$nesting=[self].concat($parent_nesting),$BasicObject_initialize$1,$BasicObject_$eq_eq$2,$BasicObject_eql$ques$3,$BasicObject___id__$4,$BasicObject___send__$5,$BasicObject_$excl$6,$BasicObject_$not_eq$7,$BasicObject_instance_eval$8,$BasicObject_instance_exec$10,$BasicObject_singleton_method_added$11,$BasicObject_singleton_method_removed$12,$BasicObject_singleton_method_undefined$13,$BasicObject_class$14,$BasicObject_method_missing$15;return Opal.def(self,"$initialize",$BasicObject_initialize$1=function(t){return Opal.slice.call(arguments,0,arguments.length),nil},$BasicObject_initialize$1.$$arity=-1),Opal.def(self,"$==",$BasicObject_$eq_eq$2=function(t){var e=this;return e===t},$BasicObject_$eq_eq$2.$$arity=1),Opal.def(self,"$eql?",$BasicObject_eql$ques$3=function(t){var e=this;return e["$=="](t)},$BasicObject_eql$ques$3.$$arity=1),Opal.alias(self,"equal?","=="),Opal.def(self,"$__id__",$BasicObject___id__$4=function(){var t=this;return null!=t.$$id||Opal.defineProperty(t,"$$id",Opal.uid()),t.$$id},$BasicObject___id__$4.$$arity=0),Opal.def(self,"$__send__",$BasicObject___send__$5=function(t,e){var n,r,i=$BasicObject___send__$5.$$p,o=i||nil,a=this;i&&($BasicObject___send__$5.$$p=null),i&&($BasicObject___send__$5.$$p=null),n=Opal.slice.call(arguments,1,arguments.length),r=n;var s=a["$"+t];return s?(o!==nil&&(s.$$p=o),s.apply(a,r)):(o!==nil&&(a.$method_missing.$$p=o),a.$method_missing.apply(a,[t].concat(r)))},$BasicObject___send__$5.$$arity=-2),Opal.def(self,"$!",$BasicObject_$excl$6=function(){return!1},$BasicObject_$excl$6.$$arity=0),Opal.def(self,"$!=",$BasicObject_$not_eq$7=function(t){var e=this;return e["$=="](t)["$!"]()},$BasicObject_$not_eq$7.$$arity=1),Opal.def(self,"$instance_eval",$BasicObject_instance_eval$8=function $$instance_eval($a){var $iter=$BasicObject_instance_eval$8.$$p,block=$iter||nil,$post_args,args,$b,$$9,self=this,string=nil,file=nil,_lineno=nil,default_eval_options=nil,compiling_options=nil,compiled=nil;$iter&&($BasicObject_instance_eval$8.$$p=null),$iter&&($BasicObject_instance_eval$8.$$p=null),$post_args=Opal.slice.call(arguments,0,arguments.length),args=$post_args,$truthy($truthy($b=block["$nil?"]())?!!Opal.compile:$b)?($truthy($range(1,3,!1)["$cover?"](args.$size()))||$$$("::","Kernel").$raise($$$("::","ArgumentError"),"wrong number of arguments (0 for 1..3)"),$b=[].concat(Opal.to_a(args)),string=null==$b[0]?nil:$b[0],file=null==$b[1]?nil:$b[1],_lineno=null==$b[2]?nil:$b[2],default_eval_options=$hash2(["file","eval"],{file:$truthy($b=file)?$b:"(eval)",eval:!0}),compiling_options=Opal.hash({arity_check:!1}).$merge(default_eval_options),compiled=$$$("::","Opal").$compile(string,compiling_options),block=$send($$$("::","Kernel"),"proc",[],($$9=function(){var self=$$9.$$s||this;return function(self){return eval(compiled)}(self)},$$9.$$s=self,$$9.$$arity=0,$$9))):$truthy(args["$any?"]())&&$$$("::","Kernel").$raise($$$("::","ArgumentError"),"wrong number of arguments ("+args.$size()+" for 0)");var old=block.$$s,result;if(block.$$s=null,self.$$is_a_module){self.$$eval=!0;try{result=block.call(self,self)}finally{self.$$eval=!1}}else result=block.call(self,self);return block.$$s=old,result},$BasicObject_instance_eval$8.$$arity=-1),Opal.def(self,"$instance_exec",$BasicObject_instance_exec$10=function(t){var e,n,r=$BasicObject_instance_exec$10.$$p,i=r||nil,o=this;r&&($BasicObject_instance_exec$10.$$p=null),r&&($BasicObject_instance_exec$10.$$p=null),e=Opal.slice.call(arguments,0,arguments.length),n=e,$truthy(i)||$$$("::","Kernel").$raise($$$("::","ArgumentError"),"no block given");var a,s=i.$$s;if(i.$$s=null,o.$$is_a_module){o.$$eval=!0;try{a=i.apply(o,n)}finally{o.$$eval=!1}}else a=i.apply(o,n);return i.$$s=s,a},$BasicObject_instance_exec$10.$$arity=-1),Opal.def(self,"$singleton_method_added",$BasicObject_singleton_method_added$11=function(t){return Opal.slice.call(arguments,0,arguments.length),nil},$BasicObject_singleton_method_added$11.$$arity=-1),Opal.def(self,"$singleton_method_removed",$BasicObject_singleton_method_removed$12=function(t){return Opal.slice.call(arguments,0,arguments.length),nil},$BasicObject_singleton_method_removed$12.$$arity=-1),Opal.def(self,"$singleton_method_undefined",$BasicObject_singleton_method_undefined$13=function(t){return Opal.slice.call(arguments,0,arguments.length),nil},$BasicObject_singleton_method_undefined$13.$$arity=-1),Opal.def(self,"$class",$BasicObject_class$14=function(){var t=this;return t.$$class},$BasicObject_class$14.$$arity=0),Opal.def(self,"$method_missing",$BasicObject_method_missing$15=function(t,e){var n,r=$BasicObject_method_missing$15.$$p,i=this,o=nil;return r&&($BasicObject_method_missing$15.$$p=null),r&&($BasicObject_method_missing$15.$$p=null),n=Opal.slice.call(arguments,1,arguments.length),n,o=function(){return $truthy(i.$inspect&&!i.$inspect.$$stub)?"undefined method `"+t+"' for "+i.$inspect()+":"+i.$$class:"undefined method `"+t+"' for "+i.$$class}(),$$$("::","Kernel").$raise($$$("::","NoMethodError").$new(o,t))},$BasicObject_method_missing$15.$$arity=-2),nil&&"method_missing"}($nesting[0],null,$nesting)},Opal.modules["corelib/kernel"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t<=e:t["$<="](e)}t.top;var n=[],r=t.nil,i=t.const_get_qualified,o=t.const_get_relative,a=(t.breaker,t.slice,t.module),s=t.truthy,l=t.gvars,c=t.hash2,u=t.send,d=t.klass;return t.add_stubs(["$raise","$new","$inspect","$!","$=~","$==","$object_id","$class","$coerce_to?","$<<","$allocate","$copy_instance_variables","$copy_singleton_methods","$initialize_clone","$initialize_copy","$define_method","$singleton_class","$to_proc","$initialize_dup","$for","$empty?","$pop","$call","$coerce_to","$append_features","$extend_object","$extended","$__id__","$to_s","$instance_variable_name!","$respond_to?","$to_int","$coerce_to!","$Integer","$nil?","$===","$enum_for","$result","$any?","$print","$format","$puts","$each","$<=","$length","$[]","$exception","$is_a?","$rand","$respond_to_missing?","$try_convert!","$expand_path","$join","$start_with?","$new_seed","$srand","$sym","$arg","$open","$include"]),function(n,d){var f,h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt,gt,vt,yt,_t,bt,wt,xt=a(n,"Kernel"),kt=[xt].concat(d);t.def(xt,"$method_missing",f=function(e,n){var r,i,a=f.$$p,s=this;return a&&(f.$$p=null),a&&(f.$$p=null),r=t.slice.call(arguments,1,arguments.length),i=r,s.$raise(o(kt,"NoMethodError").$new("undefined method `"+e+"' for "+s.$inspect(),e,i))},f.$$arity=-2),t.def(xt,"$=~",h=function(t){return!1},h.$$arity=1),t.def(xt,"$!~",p=function(t){var e=this;return e["$=~"](t)["$!"]()},p.$$arity=1),t.def(xt,"$===",$=function(t){var e,n=this;return s(e=n.$object_id()["$=="](t.$object_id()))?e:n["$=="](t)},$.$$arity=1),t.def(xt,"$<=>",m=function(t){var e=this;e.$$comparable=!0;var n=e["$=="](t);return n&&n!==r?0:r},m.$$arity=1),t.def(xt,"$method",g=function(t){var e=this,n=e["$"+t];return n&&!n.$$stub||e.$raise(o(kt,"NameError").$new("undefined method `"+t+"' for class `"+e.$class()+"'",t)),o(kt,"Method").$new(e,n.$$owner||e.$class(),n,t)},g.$$arity=1),t.def(xt,"$methods",v=function(e){var n=this;return null==e&&(e=!0),s(e)?t.methods(n):t.own_methods(n)},v.$$arity=-1),t.def(xt,"$public_methods",y=function(e){var n=this;return null==e&&(e=!0),s(e)?t.methods(n):t.receiver_methods(n)},y.$$arity=-1),t.def(xt,"$Array",_=function(t){var e;return t===r?[]:t.$$is_array?t:(e=o(kt,"Opal")["$coerce_to?"](t,o(kt,"Array"),"to_ary"),e!==r?e:(e=o(kt,"Opal")["$coerce_to?"](t,o(kt,"Array"),"to_a"),e!==r?e:[t]))},_.$$arity=1),t.def(xt,"$at_exit",b=function(){var t,e=b.$$p,n=e||r;return null==l.__at_exit__&&(l.__at_exit__=r),e&&(b.$$p=null),e&&(b.$$p=null),l.__at_exit__=s(t=l.__at_exit__)?t:[],l.__at_exit__["$<<"](n)},b.$$arity=0),t.def(xt,"$caller",w=function(e){var n;return n=t.slice.call(arguments,0,arguments.length),n,[]},w.$$arity=-1),t.def(xt,"$class",x=function(){var t=this;return t.$$class},x.$$arity=0),t.def(xt,"$copy_instance_variables",k=function(t){var e,n,r,i=this,o=Object.keys(t);for(e=0,n=o.length;e0&&(a=i[0],i.splice(0,1)),null==a&&(a="each"),s=i,u(o(kt,"Enumerator"),"for",[d,a].concat(t.to_a(s)),c.$to_proc())},P.$$arity=-1),t.alias(xt,"to_enum","enum_for"),t.def(xt,"$equal?",B=function(t){var e=this;return e===t},B.$$arity=1),t.def(xt,"$exit",L=function(e){var n,i=r;null==l.__at_exit__&&(l.__at_exit__=r),null==e&&(e=!0),l.__at_exit__=s(n=l.__at_exit__)?n:[];while(!s(l.__at_exit__["$empty?"]()))i=l.__at_exit__.$pop(),i.$call();return e=e.$$is_boolean?e?0:1:o(kt,"Opal").$coerce_to(e,o(kt,"Integer"),"to_int"),t.exit(e),r},L.$$arity=-1),t.def(xt,"$extend",I=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;for(var a=i.$singleton_class(),s=r.length-1;s>=0;s--){var l=r[s];l.$$is_module||i.$raise(o(kt,"TypeError"),"wrong argument type "+l.$class()+" (expected Module)"),l.$append_features(a),l.$extend_object(i),l.$extended(i)}return i},I.$$arity=-1),t.def(xt,"$hash",D=function(){var t=this;return t.$__id__()},D.$$arity=0),t.def(xt,"$initialize_copy",R=function(t){return r},R.$$arity=1),t.def(xt,"$inspect",j=function(){var t=this;return t.$to_s()},j.$$arity=0),t.def(xt,"$instance_of?",M=function(t){var e=this;return t.$$is_class||t.$$is_module||e.$raise(o(kt,"TypeError"),"class or module required"),e.$$class===t},M.$$arity=1),t.def(xt,"$instance_variable_defined?",F=function(e){var n=this;return e=o(kt,"Opal")["$instance_variable_name!"](e),t.hasOwnProperty.call(n,e.substr(1))},F.$$arity=1),t.def(xt,"$instance_variable_get",N=function(e){var n=this;e=o(kt,"Opal")["$instance_variable_name!"](e);var i=n[t.ivar(e.substr(1))];return null==i?r:i},N.$$arity=1),t.def(xt,"$instance_variable_set",z=function(e,n){var r=this;return e=o(kt,"Opal")["$instance_variable_name!"](e),r[t.ivar(e.substr(1))]=n},z.$$arity=2),t.def(xt,"$remove_instance_variable",H=function(e){var n=this;e=o(kt,"Opal")["$instance_variable_name!"](e);var r,i=t.ivar(e.substr(1));return n.hasOwnProperty(i)?(r=n[i],delete n[i],r):n.$raise(o(kt,"NameError"),"instance variable "+e+" not defined")},H.$$arity=1),t.def(xt,"$instance_variables",V=function(){var t,e=this,n=[];for(var r in e)e.hasOwnProperty(r)&&"$"!==r.charAt(0)&&(t="$"===r.substr(-1)?r.slice(0,r.length-1):r,n.push("@"+t));return n},V.$$arity=0),t.def(xt,"$Integer",U=function(t,e){var n,i,a,s=this;return t.$$is_string?"0"===t?0:(void 0===e?e=0:(e=o(kt,"Opal").$coerce_to(e,o(kt,"Integer"),"to_int"),(1===e||e<0||e>36)&&s.$raise(o(kt,"ArgumentError"),"invalid radix "+e)),i=t.toLowerCase(),i=i.replace(/(\d)_(?=\d)/g,"$1"),i=i.replace(/^(\s*[+-]?)(0[bodx]?)/,(function(n,r,i){switch(i){case"0b":if(0===e||2===e)return e=2,r;case"0":case"0o":if(0===e||8===e)return e=8,r;case"0d":if(0===e||10===e)return e=10,r;case"0x":if(0===e||16===e)return e=16,r}s.$raise(o(kt,"ArgumentError"),'invalid value for Integer(): "'+t+'"')})),e=0===e?10:e,a="0-"+(e<=10?e-1:"9a-"+String.fromCharCode(e-11+97)),new RegExp("^\\s*[+-]?["+a+"]+\\s*$").test(i)||s.$raise(o(kt,"ArgumentError"),'invalid value for Integer(): "'+t+'"'),n=parseInt(i,e),isNaN(n)&&s.$raise(o(kt,"ArgumentError"),'invalid value for Integer(): "'+t+'"'),n):(void 0!==e&&s.$raise(o(kt,"ArgumentError"),"base specified for non string value"),t===r&&s.$raise(o(kt,"TypeError"),"can't convert nil into Integer"),t.$$is_number?((t===1/0||t===-1/0||isNaN(t))&&s.$raise(o(kt,"FloatDomainError"),t),Math.floor(t)):t["$respond_to?"]("to_int")&&(n=t.$to_int(),n!==r)?n:o(kt,"Opal")["$coerce_to!"](t,o(kt,"Integer"),"to_i"))},U.$$arity=-2),t.def(xt,"$Float",q=function(t){var e,n=this;return t===r&&n.$raise(o(kt,"TypeError"),"can't convert nil into Float"),t.$$is_string?(e=t.toString(),e=e.replace(/(\d)_(?=\d)/g,"$1"),/^\s*[-+]?0[xX][0-9a-fA-F]+\s*$/.test(e)?n.$Integer(e):(/^\s*[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s*$/.test(e)||n.$raise(o(kt,"ArgumentError"),'invalid value for Float(): "'+t+'"'),parseFloat(e))):o(kt,"Opal")["$coerce_to!"](t,o(kt,"Float"),"to_f")},q.$$arity=1),t.def(xt,"$Hash",W=function(t){var e;return s(s(e=t["$nil?"]())?e:t["$=="]([]))?c([],{}):s(o(kt,"Hash")["$==="](t))?t:o(kt,"Opal")["$coerce_to!"](t,o(kt,"Hash"),"to_hash")},W.$$arity=1),t.def(xt,"$is_a?",G=function(e){var n=this;return e.$$is_class||e.$$is_module||n.$raise(o(kt,"TypeError"),"class or module required"),t.is_a(n,e)},G.$$arity=1),t.def(xt,"$itself",Y=function(){var t=this;return t},Y.$$arity=0),t.alias(xt,"kind_of?","is_a?"),t.def(xt,"$lambda",K=function(){var e=K.$$p,n=e||r;return e&&(K.$$p=null),e&&(K.$$p=null),t.lambda(n)},K.$$arity=0),t.def(xt,"$load",X=function(e){return e=o(kt,"Opal")["$coerce_to!"](e,o(kt,"String"),"to_str"),t.load(e)},X.$$arity=1),t.def(xt,"$loop",Z=function(){var e,n=Z.$$p,a=n||r,l=this,c=r;if(n&&(Z.$$p=null),a===r)return u(l,"enum_for",["loop"],(e=function(){e.$$s;return i(o(kt,"Float"),"INFINITY")},e.$$s=l,e.$$arity=0,e));while(s(!0))try{t.yieldX(a,[])}catch(d){if(!t.rescue(d,[o(kt,"StopIteration")]))throw d;c=d;try{return c.$result()}finally{t.pop_exception()}}return l},Z.$$arity=0),t.def(xt,"$nil?",J=function(){return!1},J.$$arity=0),t.alias(xt,"object_id","__id__"),t.def(xt,"$printf",Q=function(e){var n,i,o=this;return n=t.slice.call(arguments,0,arguments.length),i=n,s(i["$any?"]())&&o.$print(u(o,"format",t.to_a(i))),r},Q.$$arity=-1),t.def(xt,"$proc",tt=function(){var t=tt.$$p,e=t||r,n=this;return t&&(tt.$$p=null),t&&(tt.$$p=null),s(e)||n.$raise(o(kt,"ArgumentError"),"tried to create Proc object without a block"),e.$$is_lambda=!1,e},tt.$$arity=0),t.def(xt,"$puts",et=function(e){var n,i;return null==l.stdout&&(l.stdout=r),n=t.slice.call(arguments,0,arguments.length),i=n,u(l.stdout,"puts",t.to_a(i))},et.$$arity=-1),t.def(xt,"$p",nt=function(n){var i,o,a,c=this;return i=t.slice.call(arguments,0,arguments.length),o=i,u(o,"each",[],(a=function(t){a.$$s;return null==l.stdout&&(l.stdout=r),null==t&&(t=r),l.stdout.$puts(t.$inspect())},a.$$s=c,a.$$arity=1,a)),s(e(o.$length(),1))?o["$[]"](0):o},nt.$$arity=-1),t.def(xt,"$print",rt=function(e){var n,i;return null==l.stdout&&(l.stdout=r),n=t.slice.call(arguments,0,arguments.length),i=n,u(l.stdout,"print",t.to_a(i))},rt.$$arity=-1),t.def(xt,"$warn",it=function(e){var n,i,o;return null==l.VERBOSE&&(l.VERBOSE=r),null==l.stderr&&(l.stderr=r),n=t.slice.call(arguments,0,arguments.length),i=n,s(s(o=l.VERBOSE["$nil?"]())?o:i["$empty?"]())?r:u(l.stderr,"puts",t.to_a(i))},it.$$arity=-1),t.def(xt,"$raise",ot=function(e,n,i){if(null==l["!"]&&(l["!"]=r),null==n&&(n=r),null==i&&(i=r),null==e&&l["!"]!==r)throw l["!"];throw null==e?e=o(kt,"RuntimeError").$new():e.$$is_string?e=o(kt,"RuntimeError").$new(e):e.$$is_class&&e["$respond_to?"]("exception")?e=e.$exception(n):e["$is_a?"](o(kt,"Exception"))||(e=o(kt,"TypeError").$new("exception class/object expected")),l["!"]!==r&&t.exceptions.push(l["!"]),l["!"]=e,e},ot.$$arity=-1),t.alias(xt,"fail","raise"),t.def(xt,"$rand",at=function(t){return void 0===t?i(o(kt,"Random"),"DEFAULT").$rand():(t.$$is_number&&(t<0&&(t=Math.abs(t)),t%1!==0&&(t=t.$to_i()),0===t&&(t=void 0)),i(o(kt,"Random"),"DEFAULT").$rand(t))},at.$$arity=-1),t.def(xt,"$respond_to?",st=function(t,e){var n=this;if(null==e&&(e=!1),s(n["$respond_to_missing?"](t,e)))return!0;var r=n["$"+t];return"function"===typeof r&&!r.$$stub},st.$$arity=-2),t.def(xt,"$respond_to_missing?",lt=function(t,e){return null==e&&(e=!1),!1},lt.$$arity=-2),t.def(xt,"$require",ct=function(e){return e=o(kt,"Opal")["$coerce_to!"](e,o(kt,"String"),"to_str"),t.require(e)},ct.$$arity=1),t.def(xt,"$require_relative",ut=function(e){return o(kt,"Opal")["$try_convert!"](e,o(kt,"String"),"to_str"),e=o(kt,"File").$expand_path(o(kt,"File").$join(t.current_file,"..",e)),t.require(e)},ut.$$arity=1),t.def(xt,"$require_tree",dt=function(e){var n=[];for(var r in e=o(kt,"File").$expand_path(e),e=t.normalize(e),"."===e&&(e=""),t.modules)r["$start_with?"](e)&&n.push([r,t.require(r)]);return n},dt.$$arity=1),t.alias(xt,"send","__send__"),t.alias(xt,"public_send","__send__"),t.def(xt,"$singleton_class",ft=function(){var e=this;return t.get_singleton_class(e)},ft.$$arity=0),t.def(xt,"$sleep",ht=function(e){var n=this;null==e&&(e=r),e===r&&n.$raise(o(kt,"TypeError"),"can't convert NilClass into time interval"),e.$$is_number||n.$raise(o(kt,"TypeError"),"can't convert "+e.$class()+" into time interval"),e<0&&n.$raise(o(kt,"ArgumentError"),"time interval must be positive");var i=t.global.performance?function(){return performance.now()}:function(){return new Date},a=i();while(i()-a<=1e3*e);return e},ht.$$arity=-1),t.def(xt,"$srand",pt=function(t){return null==t&&(t=o(kt,"Random").$new_seed()),o(kt,"Random").$srand(t)},pt.$$arity=-1),t.def(xt,"$String",$t=function(t){var e;return s(e=o(kt,"Opal")["$coerce_to?"](t,o(kt,"String"),"to_str"))?e:o(kt,"Opal")["$coerce_to!"](t,o(kt,"String"),"to_s")},$t.$$arity=1),t.def(xt,"$tap",mt=function(){var e=mt.$$p,n=e||r,i=this;return e&&(mt.$$p=null),e&&(mt.$$p=null),t.yield1(n,i),i},mt.$$arity=0),t.def(xt,"$to_proc",gt=function(){var t=this;return t},gt.$$arity=0),t.def(xt,"$to_s",vt=function(){var t=this;return"#<"+t.$class()+":0x"+t.$__id__().$to_s(16)+">"},vt.$$arity=0),t.def(xt,"$catch",yt=function(e){var n=yt.$$p,i=n||r,a=this,s=r;n&&(yt.$$p=null);try{return t.yieldX(i,[])}catch(l){if(!t.rescue(l,[o(kt,"UncaughtThrowError")]))throw l;s=l;try{return s.$sym()["$=="](e)?s.$arg():a.$raise()}finally{t.pop_exception()}}},yt.$$arity=1),t.def(xt,"$throw",_t=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,i.$raise(o(kt,"UncaughtThrowError"),r)},_t.$$arity=-1),t.def(xt,"$open",bt=function(e){var n,i,a=bt.$$p,s=a||r;return a&&(bt.$$p=null),a&&(bt.$$p=null),n=t.slice.call(arguments,0,arguments.length),i=n,u(o(kt,"File"),"open",t.to_a(i),s.$to_proc())},bt.$$arity=-1),t.def(xt,"$yield_self",wt=function(){var e,n=wt.$$p,i=n||r,o=this;return n&&(wt.$$p=null),i===r?u(o,"enum_for",["yield_self"],(e=function(){e.$$s;return 1},e.$$s=o,e.$$arity=0,e)):t.yield1(i,o)},wt.$$arity=0)}(n[0],n),function(t,e,n){var r=d(t,e,"Object"),i=[r].concat(n);return r.$include(o(i,"Kernel"))}(n[0],null,n)},Opal.modules["corelib/error"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}t.top;var r=[],i=t.nil,o=(t.const_get_qualified,t.const_get_relative),a=(t.breaker,t.slice,t.klass),s=t.send,l=t.truthy,c=t.module,u=t.hash2;return t.add_stubs(["$new","$clone","$to_s","$empty?","$class","$raise","$+","$attr_reader","$[]","$>","$length","$inspect"]),function(e,n,r){var c,u,d,f,h,p,$,m,g,v,y=a(e,n,"Exception"),_=[y].concat(r);y.$$prototype.message=i,t.defs(y,"$new",c=function(e){var n,r,o=this;n=t.slice.call(arguments,0,arguments.length),r=n;var a=r.length>0?r[0]:i,s=new o.$$constructor(a);return s.name=o.$$name,s.message=a,t.send(s,s.$initialize,r),t.config.enable_stack_trace&&Error.captureStackTrace&&Error.captureStackTrace(s,v),s},c.$$arity=-1),v=y.$new,t.defs(y,"$exception",u=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,s(i,"new",t.to_a(r))},u.$$arity=-1),t.def(y,"$initialize",d=function(e){var n,r,o=this;return n=t.slice.call(arguments,0,arguments.length),r=n,o.message=r.length>0?r[0]:i},d.$$arity=-1),t.def(y,"$backtrace",f=function(){var t=this;if(t.backtrace)return t.backtrace;var e=t.stack;return"string"===typeof e?e.split("\n").slice(0,15):e?e.slice(0,15):[]},f.$$arity=0),t.def(y,"$exception",h=function(t){var e=this;if(null==t&&(t=i),t===i||e===t)return e;var n=e.$clone();return n.message=t,n},h.$$arity=-1),t.def(y,"$message",p=function(){var t=this;return t.$to_s()},p.$$arity=0),t.def(y,"$inspect",$=function(){var t=this,e=i;return e=t.$to_s(),l(e["$empty?"]())?t.$class().$to_s():"#<"+t.$class().$to_s()+": "+t.$to_s()+">"},$.$$arity=0),t.def(y,"$set_backtrace",m=function(t){var e,n,r=this,a=!0;if(t===i)r.backtrace=i;else if(t.$$is_string)r.backtrace=[t];else{if(t.$$is_array){for(e=0,n=t.length;ee:t["$>"](e)}t.top;var n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative),o=(t.breaker,t.slice,t.klass),a=t.hash2,s=t.truthy;return t.add_stubs(["$raise","$name","$new","$>","$length","$Rational"]),function(n,l,c){var u,d,f,h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A=o(n,l,"NilClass"),E=[A].concat(c);A.$$prototype.$$meta=A,function(e,n){var r,o=[e].concat(n);t.def(e,"$allocate",r=function(){var t=this;return t.$raise(i(o,"TypeError"),"allocator undefined for "+t.$name())},r.$$arity=0),t.udef(e,"$new")}(t.get_singleton_class(A),E),t.def(A,"$!",u=function(){return!0},u.$$arity=0),t.def(A,"$&",d=function(t){return!1},d.$$arity=1),t.def(A,"$|",f=function(t){return!1!==t&&t!==r},f.$$arity=1),t.def(A,"$^",h=function(t){return!1!==t&&t!==r},h.$$arity=1),t.def(A,"$==",p=function(t){return t===r},p.$$arity=1),t.def(A,"$dup",$=function(){return r},$.$$arity=0),t.def(A,"$clone",m=function(e){var n;if(null==e)e=a([],{});else if(!e.$$is_hash)throw t.ArgumentError.$new("expected kwargs");return n=e.$$smap["freeze"],null==n&&(n=!0),r},m.$$arity=-1),t.def(A,"$inspect",g=function(){return"nil"},g.$$arity=0),t.def(A,"$nil?",v=function(){return!0},v.$$arity=0),t.def(A,"$singleton_class",y=function(){return i(E,"NilClass")},y.$$arity=0),t.def(A,"$to_a",_=function(){return[]},_.$$arity=0),t.def(A,"$to_h",b=function(){return t.hash()},b.$$arity=0),t.def(A,"$to_i",w=function(){return 0},w.$$arity=0),t.alias(A,"to_f","to_i"),t.def(A,"$to_s",x=function(){return""},x.$$arity=0),t.def(A,"$to_c",k=function(){return i(E,"Complex").$new(0,0)},k.$$arity=0),t.def(A,"$rationalize",S=function(n){var r,o,a=this;return r=t.slice.call(arguments,0,arguments.length),o=r,s(e(o.$length(),1))&&a.$raise(i(E,"ArgumentError")),a.$Rational(0,1)},S.$$arity=-1),t.def(A,"$to_r",O=function(){var t=this;return t.$Rational(0,1)},O.$$arity=0),t.def(A,"$instance_variables",C=function(){return[]},C.$$arity=0)}(n[0],null,n),t.const_set(n[0],"NIL",r)},Opal.modules["corelib/boolean"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.klass),o=t.hash2;return t.add_stubs(["$raise","$name"]),function(e,a,s){var l,c,u,d,f,h,p,$,m,g,v=i(e,a,"Boolean"),y=[v].concat(s);t.defineProperty(v.$$prototype,"$$is_boolean",!0),t.defineProperty(v.$$prototype,"$$meta",v),function(e,n){var i,o=[e].concat(n);t.def(e,"$allocate",i=function(){var t=this;return t.$raise(r(o,"TypeError"),"allocator undefined for "+t.$name())},i.$$arity=0),t.udef(e,"$new")}(t.get_singleton_class(v),y),t.def(v,"$__id__",l=function(){var t=this;return t.valueOf()?2:0},l.$$arity=0),t.alias(v,"object_id","__id__"),t.def(v,"$!",c=function(){var t=this;return 1!=t},c.$$arity=0),t.def(v,"$&",u=function(t){var e=this;return 1==e&&(!1!==t&&t!==n)},u.$$arity=1),t.def(v,"$|",d=function(t){var e=this;return 1==e||!1!==t&&t!==n},d.$$arity=1),t.def(v,"$^",f=function(t){var e=this;return 1==e?!1===t||t===n:!1!==t&&t!==n},f.$$arity=1),t.def(v,"$==",h=function(t){var e=this;return 1==e===t.valueOf()},h.$$arity=1),t.alias(v,"equal?","=="),t.alias(v,"eql?","=="),t.def(v,"$singleton_class",p=function(){return r(y,"Boolean")},p.$$arity=0),t.def(v,"$to_s",$=function(){var t=this;return 1==t?"true":"false"},$.$$arity=0),t.def(v,"$dup",m=function(){var t=this;return t},m.$$arity=0),t.def(v,"$clone",g=function(e){var n,r=this;if(null==e)e=o([],{});else if(!e.$$is_hash)throw t.ArgumentError.$new("expected kwargs");return n=e.$$smap["freeze"],null==n&&(n=!0),r},g.$$arity=-1)}(e[0],Boolean,e),t.const_set(e[0],"TrueClass",r(e,"Boolean")),t.const_set(e[0],"FalseClass",r(e,"Boolean")),t.const_set(e[0],"TRUE",!0),t.const_set(e[0],"FALSE",!1)},Opal.modules["corelib/comparable"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t","$<","$equal?","$<=>","$normalize","$raise","$class"]),function(r,l){var c,u,d,f,h,p,$,m,g=a(r,"Comparable"),v=[g].concat(l);t.defs(g,"$normalize",c=function(t){return s(o(v,"Integer")["$==="](t))?t:s(e(t,0))?1:s(n(t,0))?-1:0},c.$$arity=1),t.def(g,"$==",u=function(e){var n=this,r=i;try{return!!s(n["$equal?"](e))||n["$<=>"]!=t.Kernel["$<=>"]&&(n.$$comparable?(delete n.$$comparable,!1):!!s(r=n["$<=>"](e))&&0==o(v,"Comparable").$normalize(r))}catch(a){if(!t.rescue(a,[o(v,"StandardError")]))throw a;try{return!1}finally{t.pop_exception()}}},u.$$arity=1),t.def(g,"$>",d=function(t){var e=this,n=i;return s(n=e["$<=>"](t))||e.$raise(o(v,"ArgumentError"),"comparison of "+e.$class()+" with "+t.$class()+" failed"),o(v,"Comparable").$normalize(n)>0},d.$$arity=1),t.def(g,"$>=",f=function(t){var e=this,n=i;return s(n=e["$<=>"](t))||e.$raise(o(v,"ArgumentError"),"comparison of "+e.$class()+" with "+t.$class()+" failed"),o(v,"Comparable").$normalize(n)>=0},f.$$arity=1),t.def(g,"$<",h=function(t){var e=this,n=i;return s(n=e["$<=>"](t))||e.$raise(o(v,"ArgumentError"),"comparison of "+e.$class()+" with "+t.$class()+" failed"),o(v,"Comparable").$normalize(n)<0},h.$$arity=1),t.def(g,"$<=",p=function(t){var e=this,n=i;return s(n=e["$<=>"](t))||e.$raise(o(v,"ArgumentError"),"comparison of "+e.$class()+" with "+t.$class()+" failed"),o(v,"Comparable").$normalize(n)<=0},p.$$arity=1),t.def(g,"$between?",$=function(t,r){var i=this;return!n(i,t)&&!e(i,r)},$.$$arity=2),t.def(g,"$clamp",m=function(t,r){var a=this,l=i;return l=t["$<=>"](r),s(l)||a.$raise(o(v,"ArgumentError"),"comparison of "+t.$class()+" with "+r.$class()+" failed"),s(e(o(v,"Comparable").$normalize(l),0))&&a.$raise(o(v,"ArgumentError"),"min argument must be smaller than max argument"),s(n(o(v,"Comparable").$normalize(a["$<=>"](t)),0))?t:s(e(o(v,"Comparable").$normalize(a["$<=>"](r)),0))?r:a},m.$$arity=2)}(r[0],r)},Opal.modules["corelib/regexp"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.klass),o=t.send,a=t.truthy,s=t.gvars;return t.add_stubs(["$nil?","$[]","$raise","$escape","$options","$to_str","$new","$join","$coerce_to!","$!","$match","$coerce_to?","$begin","$coerce_to","$=~","$attr_reader","$===","$inspect","$to_a"]),function(t,e,n){var r=i(t,e,"RegexpError");[r].concat(n)}(e[0],r(e,"StandardError"),e),function(e,l,c){var u,d,f,h,p,$,m,g,v,y,_=i(e,l,"Regexp"),b=[_].concat(c);t.const_set(b[0],"IGNORECASE",1),t.const_set(b[0],"EXTENDED",2),t.const_set(b[0],"MULTILINE",4),t.defineProperty(_.$$prototype,"$$is_regexp",!0),function(e,i){var l,c,u,d,f,h=[e].concat(i);t.def(e,"$allocate",l=function(){var e=l.$$p,r=this,i=n,a=n,s=n,c=n;for(e&&(l.$$p=null),s=0,c=arguments.length,a=new Array(c);s1&&o&&u.$raise(r(h,"TypeError"),"no implicit conversion of Array into String"),o&&(i=i[0]),l=void 0,a=[];for(var d=0;d=i)return s["~"]=r(b,"MatchData").$new(d,u),a===n?s["~"]:t.yield1(a,s["~"]);d.lastIndex=u.index+1}},p.$$arity=-2),t.def(_,"$match?",$=function(e,i){var o=this;if(o.uninitialized&&o.$raise(r(b,"TypeError"),"uninitialized Regexp"),void 0===i)return e!==n&&o.test(r(b,"Opal").$coerce_to(e,r(b,"String"),"to_str"));if(i=r(b,"Opal").$coerce_to(i,r(b,"Integer"),"to_int"),e===n)return!1;if(e=r(b,"Opal").$coerce_to(e,r(b,"String"),"to_str"),i<0&&(i+=e.length,i<0))return!1;var a,s=t.global_regexp(o);return a=s.exec(e),!(null===a||a.index"},g.$$arity=0),t.def(w,"$length",v=function(){var t=this;return t.matches.length},v.$$arity=0),t.alias(w,"size","length"),t.def(w,"$to_a",y=function(){var t=this;return t.matches},y.$$arity=0),t.def(w,"$to_s",_=function(){var t=this;return t.matches[0]},_.$$arity=0),t.def(w,"$values_at",b=function(e){var i,o,a=this;i=t.slice.call(arguments,0,arguments.length),o=i;var s,l,c,u=[];for(s=0;s","$==","$=~","$new","$force_encoding","$casecmp","$empty?","$ljust","$ceil","$/","$+","$rjust","$floor","$to_a","$each_char","$to_proc","$coerce_to!","$copy_singleton_methods","$initialize_clone","$initialize_dup","$enum_for","$size","$chomp","$[]","$to_i","$each_line","$class","$match","$match?","$captures","$proc","$succ","$escape"]),r.$require("corelib/comparable"),r.$require("corelib/regexp"),function(r,i,d){var f,h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt,gt,vt,yt,_t,bt,wt,xt,kt,St,Ot,Ct,At,Et,Tt,Pt,Bt,Lt,It=s(r,i,"String"),Dt=[It].concat(d);function Rt(t){function e(t){var e,n,r,i,o,s,l="",c=t.length;for(e=0;e0&&eo&&It.$raise(a(Dt,"ArgumentError"),'invalid range "'+i+"-"+o+'" in string transliteration'),s=i+1;s1,o=e(s?o.slice(1):o),s?d=n(d,o):u=n(u,o);if(u.length>0&&d.length>0){for(c="",r=0,i=u.length;r0?"["+a(Dt,"Regexp").$escape(u)+"]":d.length>0?"[^"+a(Dt,"Regexp").$escape(d)+"]":null}It.$include(a(Dt,"Comparable")),t.defineProperty(It.$$prototype,"$$is_string",!0),t.defineProperty(It.$$prototype,"$$cast",(function(t){var e=this.$$class;return e.$$constructor===String?t:new e.$$constructor(t)})),t.def(It,"$__id__",f=function(){var t=this;return t.toString()},f.$$arity=0),t.alias(It,"object_id","__id__"),t.defs(It,"$try_convert",h=function(t){return a(Dt,"Opal")["$coerce_to?"](t,a(Dt,"String"),"to_str")},h.$$arity=1),t.defs(It,"$new",p=function(t){var e=this;return null==t&&(t=""),t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str"),new e.$$constructor(t)},p.$$arity=-1),t.def(It,"$initialize",$=function(t){var e=this;return void 0===t?e:e.$raise(a(Dt,"NotImplementedError"),"Mutable strings are not supported in Opal.")},$.$$arity=-1),t.def(It,"$%",m=function(e){var n=this;return l(a(Dt,"Array")["$==="](e))?c(n,"format",[n].concat(t.to_a(e))):n.$format(n,e)},m.$$arity=1),t.def(It,"$*",g=function(t){var e=this;if(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"Integer"),"to_int"),t<0&&e.$raise(a(Dt,"ArgumentError"),"negative argument"),0===t)return e.$$cast("");var n="",r=e.toString();for(r.length*t>=1<<28&&e.$raise(a(Dt,"RangeError"),"multiply count must not overflow maximum string size");;){if(1===(1&t)&&(n+=r),t>>>=1,0===t)break;r+=r}return e.$$cast(n)},g.$$arity=1),t.def(It,"$+",v=function(t){var e=this;return t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str"),e+t.$to_s()},v.$$arity=1),t.def(It,"$<=>",y=function(t){var e=this;if(l(t["$respond_to?"]("to_str")))return t=t.$to_str().$to_s(),e>t?1:e"](e);return n===o?o:n>0?-1:n<0?1:0},y.$$arity=1),t.def(It,"$==",_=function(t){var e=this;return t.$$is_string?e.toString()===t.toString():!!a(Dt,"Opal")["$respond_to?"](t,"to_str")&&t["$=="](e)},_.$$arity=1),t.alias(It,"eql?","=="),t.alias(It,"===","=="),t.def(It,"$=~",b=function(t){var e=this;return t.$$is_string&&e.$raise(a(Dt,"TypeError"),"type mismatch: String given"),t["$=~"](e)},b.$$arity=1),t.def(It,"$[]",w=function(t,e){var n,r=this,i=r.length;if(t.$$is_range)return n=t.excl,e=a(Dt,"Opal").$coerce_to(t.end,a(Dt,"Integer"),"to_int"),t=a(Dt,"Opal").$coerce_to(t.begin,a(Dt,"Integer"),"to_int"),Math.abs(t)>i?o:(t<0&&(t+=i),e<0&&(e+=i),n||(e+=1),e-=t,e<0&&(e=0),r.$$cast(r.substr(t,e)));if(t.$$is_string)return null!=e&&r.$raise(a(Dt,"TypeError")),-1!==r.indexOf(t)?r.$$cast(t):o;if(t.$$is_regexp){var s=r.match(t);return null===s?(u["~"]=o,o):(u["~"]=a(Dt,"MatchData").$new(t,s),null==e?r.$$cast(s[0]):(e=a(Dt,"Opal").$coerce_to(e,a(Dt,"Integer"),"to_int"),e<0&&-e=0&&e=i||t<0?o:r.$$cast(r.substr(t,1)):(e=a(Dt,"Opal").$coerce_to(e,a(Dt,"Integer"),"to_int"),e<0||t>i||t<0?o:r.$$cast(r.substr(t,e)))},w.$$arity=-2),t.alias(It,"byteslice","[]"),t.def(It,"$b",x=function(){var t=this;return t.$force_encoding("binary")},x.$$arity=0),t.def(It,"$capitalize",k=function(){var t=this;return t.$$cast(t.charAt(0).toUpperCase()+t.substr(1).toLowerCase())},k.$$arity=0),t.def(It,"$casecmp",S=function(t){var e=this;if(!l(t["$respond_to?"]("to_str")))return o;t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str").$to_s();var n=/^[\x00-\x7F]*$/;return n.test(e)&&n.test(t)&&(e=e.toLowerCase(),t=t.toLowerCase()),e["$<=>"](t)},S.$$arity=1),t.def(It,"$casecmp?",O=function(t){var e=this,n=e.$casecmp(t);return n===o?o:0===n},O.$$arity=1),t.def(It,"$center",C=function(t,r){var i=this;if(null==r&&(r=" "),t=a(Dt,"Opal").$coerce_to(t,a(Dt,"Integer"),"to_int"),r=a(Dt,"Opal").$coerce_to(r,a(Dt,"String"),"to_str").$to_s(),l(r["$empty?"]())&&i.$raise(a(Dt,"ArgumentError"),"zero width padding"),l(t<=i.length))return i;var o=i.$ljust(e(n(t,i.length),2).$ceil(),r),s=i.$rjust(e(n(t,i.length),2).$floor(),r);return i.$$cast(s+o.slice(i.length))},C.$$arity=-2),t.def(It,"$chars",A=function(){var t=A.$$p,e=t||o,n=this;return t&&(A.$$p=null),t&&(A.$$p=null),l(e)?c(n,"each_char",[],e.$to_proc()):n.$each_char().$to_a()},A.$$arity=0),t.def(It,"$chomp",E=function(t){var e,n=this;if(null==u["/"]&&(u["/"]=o),null==t&&(t=u["/"]),l(t===o||0===n.length))return n;if(t=a(Dt,"Opal")["$coerce_to!"](t,a(Dt,"String"),"to_str").$to_s(),"\n"===t)e=n.replace(/\r?\n?$/,"");else if(""===t)e=n.replace(/(\r?\n)+$/,"");else if(n.length>=t.length){var r=n.substr(n.length-t.length,t.length);r===t&&(e=n.substr(0,n.length-t.length))}return null!=e?n.$$cast(e):n},E.$$arity=-1),t.def(It,"$chop",T=function(){var t,e=this,n=e.length;return t=n<=1?"":"\n"===e.charAt(n-1)&&"\r"===e.charAt(n-2)?e.substr(0,n-2):e.substr(0,n-1),e.$$cast(t)},T.$$arity=0),t.def(It,"$chr",P=function(){var t=this;return t.charAt(0)},P.$$arity=0),t.def(It,"$clone",B=function(){var t=this,e=o;return e=t.slice(),e.$copy_singleton_methods(t),e.$initialize_clone(t),e},B.$$arity=0),t.def(It,"$dup",L=function(){var t=this,e=o;return e=t.slice(),e.$initialize_dup(t),e},L.$$arity=0),t.def(It,"$count",I=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n,0===r.length&&i.$raise(a(Dt,"ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var o=Rt(r);return null===o?0:i.length-i.replace(new RegExp(o,"g"),"").length},I.$$arity=-1),t.def(It,"$delete",D=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n,0===r.length&&i.$raise(a(Dt,"ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var o=Rt(r);return null===o?i:i.$$cast(i.replace(new RegExp(o,"g"),""))},D.$$arity=-1),t.def(It,"$delete_prefix",R=function(t){var e=this;return t.$$is_string||(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str")),e.slice(0,t.length)===t?e.$$cast(e.slice(t.length)):e},R.$$arity=1),t.def(It,"$delete_suffix",j=function(t){var e=this;return t.$$is_string||(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str")),e.slice(e.length-t.length)===t?e.$$cast(e.slice(0,e.length-t.length)):e},j.$$arity=1),t.def(It,"$downcase",M=function(){var t=this;return t.$$cast(t.toLowerCase())},M.$$arity=0),t.def(It,"$each_char",F=function(){var e,n=F.$$p,r=n||o,i=this;if(n&&(F.$$p=null),n&&(F.$$p=null),r===o)return c(i,"enum_for",["each_char"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var a=0,s=i.length;a=l.length&&i.substr(i.length-l.length,l.length)==l)return!0}return!1},H.$$arity=-1),t.alias(It,"equal?","==="),t.def(It,"$gsub",V=function(e,n){var r=V.$$p,i=r||o,s=this;if(r&&(V.$$p=null),r&&(V.$$p=null),void 0===n&&i===o)return s.$enum_for("gsub",e);var l,c,d,f="",h=o,p=0;e.$$is_regexp?e=t.global_multiline_regexp(e):(e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str"),e=new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));while(1){if(l=e.exec(s),null===l){u["~"]=o,f+=s.slice(p);break}h=a(Dt,"MatchData").$new(e,l),void 0===n?(d=e.lastIndex,c=i(l[0]),e.lastIndex=d):n.$$is_hash?c=n["$[]"](l[0]).$to_s():(n.$$is_string||(n=a(Dt,"Opal").$coerce_to(n,a(Dt,"String"),"to_str")),c=n.replace(/([\\]+)([0-9+&`'])/g,(function(t,e,n){if(e.length%2===0)return t;switch(n){case"+":for(var r=l.length-1;r>0;r--)if(void 0!==l[r])return e.slice(1)+l[r];return"";case"&":return e.slice(1)+l[0];case"`":return e.slice(1)+s.slice(0,l.index);case"'":return e.slice(1)+s.slice(l.index+l[0].length);default:return e.slice(1)+(l[n]||"")}})).replace(/\\\\/g,"\\")),e.lastIndex===l.index?(f+=c+s.slice(p,l.index+1),e.lastIndex+=1):f+=s.slice(p,l.index)+c,p=e.lastIndex}return u["~"]=h,s.$$cast(f)},V.$$arity=-2),t.def(It,"$hash",U=function(){var t=this;return t.toString()},U.$$arity=0),t.def(It,"$hex",q=function(){var t=this;return t.$to_i(16)},q.$$arity=0),t.def(It,"$include?",W=function(t){var e=this;return t.$$is_string||(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str")),-1!==e.indexOf(t)},W.$$arity=1),t.def(It,"$index",G=function(e,n){var r,i,s,l=this;if(void 0===n)n=0;else if(n=a(Dt,"Opal").$coerce_to(n,a(Dt,"Integer"),"to_int"),n<0&&(n+=l.length,n<0))return o;if(e.$$is_regexp){s=t.global_multiline_regexp(e);while(1){if(i=s.exec(l),null===i){u["~"]=o,r=-1;break}if(i.index>=n){u["~"]=a(Dt,"MatchData").$new(s,i),r=i.index;break}s.lastIndex=i.index+1}}else e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str"),r=0===e.length&&n>l.length?-1:l.indexOf(e,n);return-1===r?o:r},G.$$arity=-2),t.def(It,"$inspect",Y=function(){var t=this,e=/[\\\"\x00-\x1f\u007F-\u009F\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"":"\\a","":"\\e","\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\v":"\\v",'"':'\\"',"\\":"\\\\"},r=t.replace(e,(function(t){return n[t]||"\\u"+("0000"+t.charCodeAt(0).toString(16).toUpperCase()).slice(-4)}));return'"'+r.replace(/\#[\$\@\{]/g,"\\$&")+'"'},Y.$$arity=0),t.def(It,"$intern",K=function(){var t=this;return t.toString()},K.$$arity=0),t.def(It,"$lines",X=function(t){var e=X.$$p,n=e||o,r=this,i=o;return null==u["/"]&&(u["/"]=o),e&&(X.$$p=null),e&&(X.$$p=null),null==t&&(t=u["/"]),i=c(r,"each_line",[t],n.$to_proc()),l(n)?r:i.$to_a()},X.$$arity=-1),t.def(It,"$length",Z=function(){var t=this;return t.length},Z.$$arity=0),t.def(It,"$ljust",J=function(t,e){var n=this;if(null==e&&(e=" "),t=a(Dt,"Opal").$coerce_to(t,a(Dt,"Integer"),"to_int"),e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str").$to_s(),l(e["$empty?"]())&&n.$raise(a(Dt,"ArgumentError"),"zero width padding"),l(t<=n.length))return n;var r=-1,i="";t-=n.length;while(++r=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122)switch(n){case 57:o=!0,n=48;break;case 90:o=!0,n=65;break;case 122:o=!0,n=97;break;default:o=!1,n+=1}else-1===i?255===n?(o=!0,n=0):(o=!1,n+=1):o=!0;if(r=r.slice(0,e)+String.fromCharCode(n)+r.slice(e+1),o&&(0===e||e===i)){switch(n){case 65:break;case 97:break;default:n+=1}r=0===e?String.fromCharCode(n)+r:r.slice(0,e)+String.fromCharCode(n)+r.slice(e),o=!1}if(!o)break}return t.$$cast(r)},rt.$$arity=0),t.def(It,"$oct",it=function(){var t,e=this,n=e,r=8;return/^\s*_/.test(n)?0:(n=n.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/i,(function(t,e,n,i){switch(i.charAt(0)){case"+":case"-":return t;case"0":if("x"===i.charAt(1)&&"0x"===n)return t}switch(n){case"0b":r=2;break;case"0":case"0o":r=8;break;case"0d":r=10;break;case"0x":r=16;break}return e+i})),t=parseInt(n.replace(/_(?!_)/g,""),r),isNaN(t)?0:t)},it.$$arity=0),t.def(It,"$ord",ot=function(){var t=this;return t.charCodeAt(0)},ot.$$arity=0),t.def(It,"$partition",at=function(t){var e,n,r=this;return t.$$is_regexp?(n=t.exec(r),null===n?e=-1:(a(Dt,"MatchData").$new(t,n),t=n[0],e=n.index)):(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str"),e=r.indexOf(t)),-1===e?[r,"",""]:[r.slice(0,e),r.slice(e,e+t.length),r.slice(e+t.length)]},at.$$arity=1),t.def(It,"$reverse",st=function(){var t=this;return t.split("").reverse().join("")},st.$$arity=0),t.def(It,"$rindex",lt=function(e,n){var r,i,s,l,c=this;if(void 0===n)n=c.length;else if(n=a(Dt,"Opal").$coerce_to(n,a(Dt,"Integer"),"to_int"),n<0&&(n+=c.length,n<0))return o;if(e.$$is_regexp){i=null,s=t.global_multiline_regexp(e);while(1){if(l=s.exec(c),null===l||l.index>n)break;i=l,s.lastIndex=i.index+1}null===i?(u["~"]=o,r=-1):(a(Dt,"MatchData").$new(s,i),r=i.index)}else e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str"),r=c.lastIndexOf(e,n);return-1===r?o:r},lt.$$arity=-2),t.def(It,"$rjust",ct=function(t,e){var n=this;if(null==e&&(e=" "),t=a(Dt,"Opal").$coerce_to(t,a(Dt,"Integer"),"to_int"),e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str").$to_s(),l(e["$empty?"]())&&n.$raise(a(Dt,"ArgumentError"),"zero width padding"),l(t<=n.length))return n;var r=Math.floor(t-n.length),i=Math.floor(r/e.length),o=Array(i+1).join(e),s=r-o.length;return n.$$cast(o+e.slice(0,s)+n)},ct.$$arity=-2),t.def(It,"$rpartition",ut=function(e){var n,r,i,o,s=this;if(e.$$is_regexp){r=null,i=t.global_multiline_regexp(e);while(1){if(o=i.exec(s),null===o)break;r=o,i.lastIndex=r.index+1}null===r?n=-1:(a(Dt,"MatchData").$new(i,r),e=r[0],n=r.index)}else e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str"),n=s.lastIndexOf(e);return-1===n?["","",s]:[s.slice(0,n),s.slice(n,n+e.length),s.slice(n+e.length)]},ut.$$arity=1),t.def(It,"$rstrip",dt=function(){var t=this;return t.replace(/[\s\u0000]*$/,"")},dt.$$arity=0),t.def(It,"$scan",ft=function(e){var n=ft.$$p,r=n||o,i=this;n&&(ft.$$p=null),n&&(ft.$$p=null);var s,l=[],c=o;e.$$is_regexp?e=t.global_multiline_regexp(e):(e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str"),e=new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));while(null!=(s=e.exec(i)))c=a(Dt,"MatchData").$new(e,s),r===o?1==s.length?l.push(s[0]):l.push(c.$captures()):1==s.length?r(s[0]):r.call(i,c.$captures()),e.lastIndex===s.index&&(e.lastIndex+=1);return u["~"]=c,r!==o?i:l},ft.$$arity=1),t.alias(It,"size","length"),t.alias(It,"slice","[]"),t.def(It,"$split",ht=function(e,n){var r,i=this;if(null==u[";"]&&(u[";"]=o),0===i.length)return[];if(void 0===n)n=0;else if(n=a(Dt,"Opal")["$coerce_to!"](n,a(Dt,"Integer"),"to_int"),1===n)return[i];void 0!==e&&e!==o||(e=l(r=u[";"])?r:" ");var s,c,d,f=[],h=i.toString(),p=0;if(e.$$is_regexp?e=t.global_multiline_regexp(e):(e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str").$to_s()," "===e?(e=/\s+/gm,h=h.replace(/^\s+/,"")):e=new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm")),f=h.split(e),1===f.length&&f[0]===h)return[i.$$cast(f[0])];while(-1!==(c=f.indexOf(void 0)))f.splice(c,1);function $(){for(c=0;c=f.length)return $(),f;c=0;while(null!==s){if(c++,p=e.lastIndex,c+1===n)break;s=e.exec(h)}return f.splice(n-1,f.length-1,h.slice(p)),$(),f},ht.$$arity=-1),t.def(It,"$squeeze",pt=function(e){var n,r,i=this;if(n=t.slice.call(arguments,0,arguments.length),r=n,0===r.length)return i.$$cast(i.replace(/(.)\1+/g,"$1"));var o=Rt(r);return null===o?i:i.$$cast(i.replace(new RegExp("("+o+")\\1+","g"),"$1"))},pt.$$arity=-1),t.def(It,"$start_with?",$t=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;for(var o=0,s=r.length;o0;r--)if(void 0!==l[r])return e.slice(1)+l[r];return"";case"&":return e.slice(1)+l[0];case"`":return e.slice(1)+i.slice(0,l.index);case"'":return e.slice(1)+i.slice(l.index+l[0].length);default:return e.slice(1)+(l[n]||"")}})).replace(/\\\\/g,"\\"),s=i.slice(0,l.index)+e+i.slice(l.index+l[0].length))),i.$$cast(s)},gt.$$arity=-2),t.alias(It,"succ","next"),t.def(It,"$sum",vt=function(t){var e=this;null==t&&(t=16),t=a(Dt,"Opal").$coerce_to(t,a(Dt,"Integer"),"to_int");for(var n=0,r=e.length,i=0;i36)&&e.$raise(a(Dt,"ArgumentError"),"invalid radix "+i),/^\s*_/.test(r)?0:(r=r.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/,(function(t,e,n,r){switch(r.charAt(0)){case"+":case"-":return t;case"0":if("x"===r.charAt(1)&&"0x"===n&&(0===i||16===i))return t}switch(n){case"0b":if(0===i||2===i)return i=2,e+r;break;case"0":case"0o":if(0===i||8===i)return i=8,e+r;break;case"0d":if(0===i||10===i)return i=10,e+r;break;case"0x":if(0===i||16===i)return i=16,e+r;break}return t})),n=parseInt(r.replace(/_(?!_)/g,""),i),isNaN(n)?0:n)},bt.$$arity=-1),t.def(It,"$to_proc",wt=function(){var e,r=wt.$$p,i=this,s=o;return r&&(wt.$$p=null),s=n("$",i.valueOf()),c(i,"proc",[],(e=function(n){var r,i,l=e.$$s||this,c=e.$$p,u=c||o;c&&(e.$$p=null),r=t.slice.call(arguments,0,arguments.length),i=r,0===i.length&&l.$raise(a(Dt,"ArgumentError"),"no receiver given");var d=i[0];null==d&&(d=o);var f=d[s];return f?("function"===typeof u&&(f.$$p=u),1===i.length?f.call(d):f.apply(d,i.slice(1))):d.$method_missing.apply(d,i)},e.$$s=i,e.$$arity=-1,e))},wt.$$arity=0),t.def(It,"$to_s",xt=function(){var t=this;return t.toString()},xt.$$arity=0),t.alias(It,"to_str","to_s"),t.alias(It,"to_sym","intern"),t.def(It,"$tr",kt=function(t,e){var n,r,i,o,s,l,c,u=this;if(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str").$to_s(),e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str").$to_s(),0==t.length||t===e)return u;var d={},f=t.split(""),h=f.length,p=e.split(""),$=p.length,m=!1,g=null;"^"===f[0]&&f.length>1&&(m=!0,f.shift(),g=p[$-1],h-=1);var v=[],y=null;for(r=!1,n=0;nl&&u.$raise(a(Dt,"ArgumentError"),'invalid range "'+String.fromCharCode(s)+"-"+String.fromCharCode(l)+'" in string transliteration'),i=s+1;i0){var _=[],b=null;for(r=!1,n=0;n<$;n++)if(o=p[n],null==b)b=o,_.push(o);else if("-"===o)"-"===b?(_.push("-"),_.push("-")):n==$-1?_.push("-"):r=!0;else if(r){for(s=b.charCodeAt(0),l=o.charCodeAt(0),s>l&&u.$raise(a(Dt,"ArgumentError"),'invalid range "'+String.fromCharCode(s)+"-"+String.fromCharCode(l)+'" in string transliteration'),i=s+1;i0){var x=$>0?p[$-1]:"";for(n=0;n1&&(m=!0,f.shift(),g=p[$-1],h-=1);var v=[],y=null;for(r=!1,n=0;nl&&u.$raise(a(Dt,"ArgumentError"),'invalid range "'+String.fromCharCode(s)+"-"+String.fromCharCode(l)+'" in string transliteration'),i=s+1;i0){var _=[],b=null;for(r=!1,n=0;n<$;n++)if(o=p[n],null==y)y=o,_.push(o);else if("-"===o)"-"===b?(_.push("-"),_.push("-")):n==$-1?_.push("-"):r=!0;else if(r){for(s=y.charCodeAt(0),l=o.charCodeAt(0),s>l&&u.$raise(a(Dt,"ArgumentError"),'invalid range "'+String.fromCharCode(s)+"-"+String.fromCharCode(l)+'" in string transliteration'),i=s+1;i0){var x=$>0?p[$-1]:"";for(n=0;ne:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t","$*","$coerce_to","$try_convert","$<","$+","$-","$ceil","$/","$size","$__send__","$length","$<=","$[]","$push","$<<","$[]=","$===","$inspect","$<=>","$first","$reverse","$sort","$to_proc","$compare","$call","$dup","$to_a","$sort!","$map!","$key?","$values","$zip"]),function(l,v){var y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht=f(l,"Enumerable"),pt=[ht].concat(v);function $t(t){return 0===t.length&&(t=[c]),t.length>1&&(t=[t]),t}t.def(ht,"$all?",y=function(e){try{var n,r,i,o=y.$$p,a=o||c,s=this;return o&&(y.$$p=null),o&&(y.$$p=null),h(void 0!==e)?p(s,"each",[],(n=function(r){n.$$s;var i,o,a=c;if(i=t.slice.call(arguments,0,arguments.length),o=i,a=$t(o),h(p(e,"public_send",["==="].concat(t.to_a(a)))))return c;t.ret(!1)},n.$$s=s,n.$$arity=-1,n)):p(s,"each",[],a!==c?(r=function(e){var n,i;r.$$s;if(n=t.slice.call(arguments,0,arguments.length),i=n,h(t.yieldX(a,t.to_a(i))))return c;t.ret(!1)},r.$$s=s,r.$$arity=-1,r):(i=function(e){var n,r;i.$$s;if(n=t.slice.call(arguments,0,arguments.length),r=n,h(d(pt,"Opal").$destructure(r)))return c;t.ret(!1)},i.$$s=s,i.$$arity=-1,i)),!0}catch(l){if(l===t.returner)return l.$v;throw l}},y.$$arity=-1),t.def(ht,"$any?",_=function(e){try{var n,r,i,o=_.$$p,a=o||c,s=this;return o&&(_.$$p=null),o&&(_.$$p=null),h(void 0!==e)?p(s,"each",[],(n=function(r){n.$$s;var i,o,a=c;if(i=t.slice.call(arguments,0,arguments.length),o=i,a=$t(o),!h(p(e,"public_send",["==="].concat(t.to_a(a)))))return c;t.ret(!0)},n.$$s=s,n.$$arity=-1,n)):p(s,"each",[],a!==c?(r=function(e){var n,i;r.$$s;if(n=t.slice.call(arguments,0,arguments.length),i=n,!h(t.yieldX(a,t.to_a(i))))return c;t.ret(!0)},r.$$s=s,r.$$arity=-1,r):(i=function(e){var n,r;i.$$s;if(n=t.slice.call(arguments,0,arguments.length),r=n,!h(d(pt,"Opal").$destructure(r)))return c;t.ret(!0)},i.$$s=s,i.$$arity=-1,i)),!1}catch(l){if(l===t.returner)return l.$v;throw l}},_.$$arity=-1),t.def(ht,"$chunk",b=function(){var e,n,r=b.$$p,i=r||c,o=this;return r&&(b.$$p=null),r&&(b.$$p=null),i===c?p(o,"to_enum",["chunk"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=o,e.$$arity=0,e)):p(u("::","Enumerator"),"new",[],(n=function(e){var r=n.$$s||this;null==e&&(e=c);var o=c,a=[];function s(){a.length>0&&e.$yield(o,a)}r.$each.$$p=function(e){var n=t.yield1(i,e);n===c?(s(),a=[],o=c):(o===c||o===n?a.push(e):(s(),a=[e]),o=n)},r.$each(),s()},n.$$s=o,n.$$arity=1,n))},b.$$arity=0),t.def(ht,"$chunk_while",w=function(){var e,n=w.$$p,r=n||c,i=this;return n&&(w.$$p=null),n&&(w.$$p=null),r!==c||i.$raise(d(pt,"ArgumentError"),"no block given"),p(i,"slice_when",[],(e=function(n,i){e.$$s;return null==n&&(n=c),null==i&&(i=c),t.yieldX(r,[n,i])["$!"]()},e.$$s=i,e.$$arity=2,e))},w.$$arity=0),t.def(ht,"$collect",x=function(){var e,n=x.$$p,r=n||c,i=this;if(n&&(x.$$p=null),n&&(x.$$p=null),r===c)return p(i,"enum_for",["collect"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=i,e.$$arity=0,e));var o=[];return i.$each.$$p=function(){var e=t.yieldX(r,arguments);o.push(e)},i.$each(),o},x.$$arity=0),t.def(ht,"$collect_concat",k=function(){var e,n,r=k.$$p,i=r||c,o=this;return r&&(k.$$p=null),r&&(k.$$p=null),i===c?p(o,"enum_for",["collect_concat"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=o,e.$$arity=0,e)):p(o,"map",[],(n=function(e){n.$$s;return null==e&&(e=c),t.yield1(i,e)},n.$$s=o,n.$$arity=1,n)).$flatten(1)},k.$$arity=0),t.def(ht,"$count",S=function(e){var n,r,i,o=S.$$p,a=o||c,s=this,l=c;return o&&(S.$$p=null),o&&(S.$$p=null),l=0,null!=e&&a!==c&&s.$warn("warning: given block not used"),h(null!=e)?a=p(s,"proc",[],(n=function(r){var i,o;n.$$s;return i=t.slice.call(arguments,0,arguments.length),o=i,d(pt,"Opal").$destructure(o)["$=="](e)},n.$$s=s,n.$$arity=-1,n)):h(a["$nil?"]())&&(a=p(s,"proc",[],(r=function(){r.$$s;return!0},r.$$s=s,r.$$arity=0,r))),p(s,"each",[],(i=function(e){var n,r;i.$$s;return n=t.slice.call(arguments,0,arguments.length),r=n,h(t.yieldX(a,r))?l++:c},i.$$s=s,i.$$arity=-1,i)),l},S.$$arity=-1),t.def(ht,"$cycle",O=function(r){var i,o=O.$$p,a=o||c,s=this;if(o&&(O.$$p=null),o&&(O.$$p=null),null==r&&(r=c),a===c)return p(s,"enum_for",["cycle",r],(i=function(){var t=i.$$s||this;return h(r["$nil?"]())?h(t["$respond_to?"]("size"))?u(d(pt,"Float"),"INFINITY"):c:(r=d(pt,"Opal")["$coerce_to!"](r,d(pt,"Integer"),"to_int"),h(e(r,0))?n(t.$enumerator_size(),r):0)},i.$$s=s,i.$$arity=0,i));if(h(r["$nil?"]()));else if(r=d(pt,"Opal")["$coerce_to!"](r,d(pt,"Integer"),"to_int"),h(r<=0))return c;var l,f,$,m=[];if(s.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);t.yield1(a,e);m.push(e)},s.$each(),void 0!==l)return l;if(0===m.length)return c;if(r===c)while(1)for(f=0,$=m.length;f<$;f++)t.yield1(a,m[f]);else while(r>1){for(f=0,$=m.length;f<$;f++)t.yield1(a,m[f]);r--}},O.$$arity=-1),t.def(ht,"$detect",C=function(e){try{var n,r=C.$$p,i=r||c,o=this;return r&&(C.$$p=null),r&&(C.$$p=null),i===c?o.$enum_for("detect",e):(p(o,"each",[],(n=function(e){n.$$s;var r,o,a=c;if(r=t.slice.call(arguments,0,arguments.length),o=r,a=d(pt,"Opal").$destructure(o),!h(t.yield1(i,a)))return c;t.ret(a)},n.$$s=o,n.$$arity=-1,n)),void 0!==e?"function"===typeof e?e():e:c)}catch(a){if(a===t.returner)return a.$v;throw a}},C.$$arity=-1),t.def(ht,"$drop",A=function(t){var e=this;t=d(pt,"Opal").$coerce_to(t,d(pt,"Integer"),"to_int"),h(t<0)&&e.$raise(d(pt,"ArgumentError"),"attempt to drop negative size");var n=[],r=0;return e.$each.$$p=function(){t<=r&&n.push(d(pt,"Opal").$destructure(arguments)),r++},e.$each(),n},A.$$arity=1),t.def(ht,"$drop_while",E=function(){var e=E.$$p,n=e||c,r=this;if(e&&(E.$$p=null),e&&(E.$$p=null),n===c)return r.$enum_for("drop_while");var i=[],o=!0;return r.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);if(o){var r=t.yield1(n,e);$(r)&&(o=!1,i.push(e))}else i.push(e)},r.$each(),i},E.$$arity=0),t.def(ht,"$each_cons",T=function(e){var n,a=T.$$p,s=a||c,l=this;if(a&&(T.$$p=null),a&&(T.$$p=null),h(1!=arguments.length)&&l.$raise(d(pt,"ArgumentError"),"wrong number of arguments ("+arguments.length+" for 1)"),e=d(pt,"Opal").$try_convert(e,d(pt,"Integer"),"to_int"),h(e<=0)&&l.$raise(d(pt,"ArgumentError"),"invalid size"),s===c)return p(l,"enum_for",["each_cons",e],(n=function(){var t,a=n.$$s||this,s=c;return s=a.$enumerator_size(),h(s["$nil?"]())?c:h(h(t=s["$=="](0))?t:r(s,e))?0:i(o(s,e),1)},n.$$s=l,n.$$arity=0,n));var u=[],f=c;return l.$each.$$p=function(){var n=d(pt,"Opal").$destructure(arguments);u.push(n),u.length>e&&u.shift(),u.length==e&&t.yield1(s,u.slice(0,e))},l.$each(),f},T.$$arity=1),t.def(ht,"$each_entry",P=function(e){var n,r,i,o=P.$$p,a=o||c,s=this;return o&&(P.$$p=null),o&&(P.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,a===c?p(s,"to_enum",["each_entry"].concat(t.to_a(r)),(i=function(){var t=i.$$s||this;return t.$enumerator_size()},i.$$s=s,i.$$arity=0,i)):(s.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);t.yield1(a,e)},s.$each.apply(s,r),s)},P.$$arity=-1),t.def(ht,"$each_slice",B=function(e){var n,r=B.$$p,i=r||c,o=this;if(r&&(B.$$p=null),r&&(B.$$p=null),e=d(pt,"Opal").$coerce_to(e,d(pt,"Integer"),"to_int"),h(e<=0)&&o.$raise(d(pt,"ArgumentError"),"invalid slice size"),i===c)return p(o,"enum_for",["each_slice",e],(n=function(){var t=n.$$s||this;return h(t["$respond_to?"]("size"))?a(t.$size(),e).$ceil():c},n.$$s=o,n.$$arity=0,n));var s,l=[];return o.$each.$$p=function(){var n=d(pt,"Opal").$destructure(arguments);l.push(n),l.length===e&&(t.yield1(i,l),l=[])},o.$each(),void 0!==s?s:(l.length>0&&t.yield1(i,l),c)},B.$$arity=1),t.def(ht,"$each_with_index",L=function(e){var n,r,i,o=L.$$p,a=o||c,s=this;if(o&&(L.$$p=null),o&&(L.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,a===c)return p(s,"enum_for",["each_with_index"].concat(t.to_a(r)),(i=function(){var t=i.$$s||this;return t.$enumerator_size()},i.$$s=s,i.$$arity=0,i));var l,u=0;return s.$each.$$p=function(){var t=d(pt,"Opal").$destructure(arguments);a(t,u),u++},s.$each.apply(s,r),void 0!==l?l:s},L.$$arity=-1),t.def(ht,"$each_with_object",I=function(t){var e,n,r=I.$$p,i=r||c,o=this;return r&&(I.$$p=null),r&&(I.$$p=null),i===c?p(o,"enum_for",["each_with_object",t],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=o,e.$$arity=0,e)):(o.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);i(e,t)},o.$each(),void 0!==n?n:t)},I.$$arity=1),t.def(ht,"$entries",D=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;var o=[];return i.$each.$$p=function(){o.push(d(pt,"Opal").$destructure(arguments))},i.$each.apply(i,r),o},D.$$arity=-1),t.alias(ht,"find","detect"),t.def(ht,"$find_all",R=function(){var e,n=R.$$p,r=n||c,i=this;if(n&&(R.$$p=null),n&&(R.$$p=null),r===c)return p(i,"enum_for",["find_all"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=i,e.$$arity=0,e));var o=[];return i.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),n=t.yield1(r,e);h(n)&&o.push(e)},i.$each(),o},R.$$arity=0),t.def(ht,"$find_index",j=function(e){try{var n,r,i=j.$$p,o=i||c,a=this,s=c;return i&&(j.$$p=null),i&&(j.$$p=null),h(void 0===e&&o===c)?a.$enum_for("find_index"):(null!=e&&o!==c&&a.$warn("warning: given block not used"),s=0,h(null!=e)?p(a,"each",[],(n=function(r){var i,o;n.$$s;return i=t.slice.call(arguments,0,arguments.length),o=i,d(pt,"Opal").$destructure(o)["$=="](e)&&t.ret(s),s+=1},n.$$s=a,n.$$arity=-1,n)):p(a,"each",[],(r=function(e){var n,i;r.$$s;return n=t.slice.call(arguments,0,arguments.length),i=n,h(t.yieldX(o,t.to_a(i)))&&t.ret(s),s+=1},r.$$s=a,r.$$arity=-1,r)),c)}catch(l){if(l===t.returner)return l.$v;throw l}},j.$$arity=-1),t.def(ht,"$first",M=function(e){try{var n,r,i=this,o=c,a=c;return h(void 0===e)?p(i,"each",[],(n=function(e){n.$$s;null==e&&(e=c),t.ret(e)},n.$$s=i,n.$$arity=1,n)):(o=[],e=d(pt,"Opal").$coerce_to(e,d(pt,"Integer"),"to_int"),h(e<0)&&i.$raise(d(pt,"ArgumentError"),"attempt to take negative size"),h(0==e)?[]:(a=0,p(i,"each",[],(r=function(n){var i,s;r.$$s;if(i=t.slice.call(arguments,0,arguments.length),s=i,o.push(d(pt,"Opal").$destructure(s)),!h(e<=++a))return c;t.ret(o)},r.$$s=i,r.$$arity=-1,r)),o))}catch(s){if(s===t.returner)return s.$v;throw s}},M.$$arity=-1),t.alias(ht,"flat_map","collect_concat"),t.def(ht,"$grep",F=function(n){var r,i=F.$$p,o=i||c,a=this,l=c;return i&&(F.$$p=null),i&&(F.$$p=null),l=[],p(a,"each",[],(r=function(i){r.$$s;var a,u,d=c;return a=t.slice.call(arguments,0,arguments.length),u=a,d=$t(u),h(p(n,"__send__",["==="].concat(t.to_a(d))))?(o!==c?(h(e(u.$length(),1))&&(u=[u]),u=t.yieldX(o,t.to_a(u))):h(s(u.$length(),1))&&(u=u["$[]"](0)),l.$push(u)):c},r.$$s=a,r.$$arity=-1,r)),l},F.$$arity=1),t.def(ht,"$grep_v",N=function(n){var r,i=N.$$p,o=i||c,a=this,l=c;return i&&(N.$$p=null),i&&(N.$$p=null),l=[],p(a,"each",[],(r=function(i){r.$$s;var a,u,d=c;return a=t.slice.call(arguments,0,arguments.length),u=a,d=$t(u),h(p(n,"__send__",["==="].concat(t.to_a(d))))?c:(o!==c?(h(e(u.$length(),1))&&(u=[u]),u=t.yieldX(o,t.to_a(u))):h(s(u.$length(),1))&&(u=u["$[]"](0)),l.$push(u))},r.$$s=a,r.$$arity=-1,r)),l},N.$$arity=1),t.def(ht,"$group_by",z=function(){var e,n,r,i=z.$$p,a=i||c,s=this,l=c,u=c;return i&&(z.$$p=null),i&&(z.$$p=null),a===c?p(s,"enum_for",["group_by"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=s,e.$$arity=0,e)):(l=m([],{}),s.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),r=t.yield1(a,e);(h(n=l["$[]"](r))?n:(u=[r,[]],p(l,"[]=",t.to_a(u)),u[o(u["length"],1)]))["$<<"](e)},s.$each(),void 0!==r?r:l)},z.$$arity=0),t.def(ht,"$include?",H=function(e){try{var n,r=this;return p(r,"each",[],(n=function(r){var i,o;n.$$s;if(i=t.slice.call(arguments,0,arguments.length),o=i,!d(pt,"Opal").$destructure(o)["$=="](e))return c;t.ret(!0)},n.$$s=r,n.$$arity=-1,n)),!1}catch(i){if(i===t.returner)return i.$v;throw i}},H.$$arity=1),t.def(ht,"$inject",V=function(e,n){var r=V.$$p,i=r||c,o=this;r&&(V.$$p=null),r&&(V.$$p=null);var a=e;return i!==c&&void 0===n?o.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);void 0!==a?(e=t.yieldX(i,[a,e]),a=e):a=e}:(void 0===n&&(d(pt,"Symbol")["$==="](e)||o.$raise(d(pt,"TypeError"),e.$inspect()+" is not a Symbol"),n=e,a=void 0),o.$each.$$p=function(){var t=d(pt,"Opal").$destructure(arguments);a=void 0!==a?a.$__send__(n,t):t}),o.$each(),void 0==a?c:a},V.$$arity=-1),t.def(ht,"$lazy",U=function(){var e,n=this;return p(u(d(pt,"Enumerator"),"Lazy"),"new",[n,n.$enumerator_size()],(e=function(n,r){var i,o;e.$$s;return null==n&&(n=c),i=t.slice.call(arguments,1,arguments.length),o=i,p(n,"yield",t.to_a(o))},e.$$s=n,e.$$arity=-2,e))},U.$$arity=0),t.def(ht,"$enumerator_size",q=function(){var t=this;return h(t["$respond_to?"]("size"))?t.$size():c},q.$$arity=0),t.alias(ht,"map","collect"),t.def(ht,"$max",W=function(e){var n,r,i=W.$$p,o=i||c,a=this;return i&&(W.$$p=null),i&&(W.$$p=null),void 0===e||e===c?(a.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);void 0!==n?(r=o!==c?t.yieldX(o,[e,n]):e["$<=>"](n),r===c&&a.$raise(d(pt,"ArgumentError"),"comparison failed"),r>0&&(n=e)):n=e},a.$each(),void 0===n?c:n):(e=d(pt,"Opal").$coerce_to(e,d(pt,"Integer"),"to_int"),p(a,"sort",[],o.$to_proc()).$reverse().$first(e))},W.$$arity=-1),t.def(ht,"$max_by",G=function(){var e,n,r,i=G.$$p,o=i||c,a=this;return i&&(G.$$p=null),i&&(G.$$p=null),h(o)?(a.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),i=t.yield1(o,e);if(void 0===n)return n=e,void(r=i);i["$<=>"](r)>0&&(n=e,r=i)},a.$each(),void 0===n?c:n):p(a,"enum_for",["max_by"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=a,e.$$arity=0,e))},G.$$arity=0),t.alias(ht,"member?","include?"),t.def(ht,"$min",Y=function(){var t,e=Y.$$p,n=e||c,r=this;return e&&(Y.$$p=null),e&&(Y.$$p=null),r.$each.$$p=n!==c?function(){var e=d(pt,"Opal").$destructure(arguments);if(void 0!==t){var i=n(e,t);i===c&&r.$raise(d(pt,"ArgumentError"),"comparison failed"),i<0&&(t=e)}else t=e}:function(){var e=d(pt,"Opal").$destructure(arguments);void 0!==t?d(pt,"Opal").$compare(e,t)<0&&(t=e):t=e},r.$each(),void 0===t?c:t},Y.$$arity=0),t.def(ht,"$min_by",K=function(){var e,n,r,i=K.$$p,o=i||c,a=this;return i&&(K.$$p=null),i&&(K.$$p=null),h(o)?(a.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),i=t.yield1(o,e);if(void 0===n)return n=e,void(r=i);i["$<=>"](r)<0&&(n=e,r=i)},a.$each(),void 0===n?c:n):p(a,"enum_for",["min_by"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=a,e.$$arity=0,e))},K.$$arity=0),t.def(ht,"$minmax",X=function(){var t,e,n=X.$$p,r=n||c,i=this;n&&(X.$$p=null),n&&(X.$$p=null),r=h(t=r)?t:p(i,"proc",[],(e=function(t,n){e.$$s;return null==t&&(t=c),null==n&&(n=c),t["$<=>"](n)},e.$$s=i,e.$$arity=2,e));var o=c,a=c,s=!0;return i.$each.$$p=function(){var t=d(pt,"Opal").$destructure(arguments);if(s)o=a=t,s=!1;else{var e=r.$call(o,t);e===c?i.$raise(d(pt,"ArgumentError"),"comparison failed"):e>0&&(o=t);var n=r.$call(a,t);n===c?i.$raise(d(pt,"ArgumentError"),"comparison failed"):n<0&&(a=t)}},i.$each(),[o,a]},X.$$arity=0),t.def(ht,"$minmax_by",Z=function(){var t=Z.$$p,e=this;return t&&(Z.$$p=null),t&&(Z.$$p=null),e.$raise(d(pt,"NotImplementedError"))},Z.$$arity=0),t.def(ht,"$none?",J=function(e){try{var n,r,i,o=J.$$p,a=o||c,s=this;return o&&(J.$$p=null),o&&(J.$$p=null),h(void 0!==e)?p(s,"each",[],(n=function(r){n.$$s;var i,o,a=c;if(i=t.slice.call(arguments,0,arguments.length),o=i,a=$t(o),!h(p(e,"public_send",["==="].concat(t.to_a(a)))))return c;t.ret(!1)},n.$$s=s,n.$$arity=-1,n)):p(s,"each",[],a!==c?(r=function(e){var n,i;r.$$s;if(n=t.slice.call(arguments,0,arguments.length),i=n,!h(t.yieldX(a,t.to_a(i))))return c;t.ret(!1)},r.$$s=s,r.$$arity=-1,r):(i=function(e){i.$$s;var n,r,o=c;if(n=t.slice.call(arguments,0,arguments.length),r=n,o=d(pt,"Opal").$destructure(r),!h(o))return c;t.ret(!1)},i.$$s=s,i.$$arity=-1,i)),!0}catch(l){if(l===t.returner)return l.$v;throw l}},J.$$arity=-1),t.def(ht,"$one?",Q=function(n){try{var r,o,a,s=Q.$$p,l=s||c,u=this,f=c;return s&&(Q.$$p=null),s&&(Q.$$p=null),f=0,h(void 0!==n)?p(u,"each",[],(r=function(o){r.$$s;var a,s,l=c;return a=t.slice.call(arguments,0,arguments.length),s=a,l=$t(s),h(p(n,"public_send",["==="].concat(t.to_a(l))))?(f=i(f,1),h(e(f,1))?void t.ret(!1):c):c},r.$$s=u,r.$$arity=-1,r)):p(u,"each",[],l!==c?(o=function(n){var r,a;o.$$s;return r=t.slice.call(arguments,0,arguments.length),a=r,h(t.yieldX(l,t.to_a(a)))?(f=i(f,1),h(e(f,1))?void t.ret(!1):c):c},o.$$s=u,o.$$arity=-1,o):(a=function(n){var r,o;a.$$s;return r=t.slice.call(arguments,0,arguments.length),o=r,h(d(pt,"Opal").$destructure(o))?(f=i(f,1),h(e(f,1))?void t.ret(!1):c):c},a.$$s=u,a.$$arity=-1,a)),f["$=="](1)}catch($){if($===t.returner)return $.$v;throw $}},Q.$$arity=-1),t.def(ht,"$partition",tt=function(){var e,n=tt.$$p,r=n||c,i=this;if(n&&(tt.$$p=null),n&&(tt.$$p=null),r===c)return p(i,"enum_for",["partition"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=i,e.$$arity=0,e));var o=[],a=[];return i.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),n=t.yield1(r,e);h(n)?o.push(e):a.push(e)},i.$each(),[o,a]},tt.$$arity=0),t.alias(ht,"reduce","inject"),t.def(ht,"$reject",et=function(){var e,n=et.$$p,r=n||c,i=this;if(n&&(et.$$p=null),n&&(et.$$p=null),r===c)return p(i,"enum_for",["reject"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=i,e.$$arity=0,e));var o=[];return i.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),n=t.yield1(r,e);$(n)&&o.push(e)},i.$each(),o},et.$$arity=0),t.def(ht,"$reverse_each",nt=function(){var e,n=nt.$$p,r=n||c,i=this;if(n&&(nt.$$p=null),n&&(nt.$$p=null),r===c)return p(i,"enum_for",["reverse_each"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=i,e.$$arity=0,e));var o=[];i.$each.$$p=function(){o.push(arguments)},i.$each();for(var a=o.length-1;a>=0;a--)t.yieldX(r,o[a]);return o},nt.$$arity=0),t.alias(ht,"select","find_all"),t.def(ht,"$slice_before",rt=function(e){var n,r=rt.$$p,i=r||c,o=this;return r&&(rt.$$p=null),r&&(rt.$$p=null),h(void 0===e&&i===c)&&o.$raise(d(pt,"ArgumentError"),"both pattern and block are given"),h(void 0!==e&&i!==c||arguments.length>1)&&o.$raise(d(pt,"ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),p(d(pt,"Enumerator"),"new",[],(n=function(r){var o=n.$$s||this;null==r&&(r=c);var a=[];o.$each.$$p=i!==c?void 0===e?function(){var e=d(pt,"Opal").$destructure(arguments),n=t.yield1(i,e);h(n)&&a.length>0&&(r["$<<"](a),a=[]),a.push(e)}:function(){var t=d(pt,"Opal").$destructure(arguments),n=i(t,e.$dup());h(n)&&a.length>0&&(r["$<<"](a),a=[]),a.push(t)}:function(){var t=d(pt,"Opal").$destructure(arguments),n=e["$==="](t);h(n)&&a.length>0&&(r["$<<"](a),a=[]),a.push(t)},o.$each(),a.length>0&&r["$<<"](a)},n.$$s=o,n.$$arity=1,n))},rt.$$arity=-1),t.def(ht,"$slice_after",it=function(e){var n,r,i=it.$$p,o=i||c,a=this;return i&&(it.$$p=null),i&&(it.$$p=null),h(void 0===e&&o===c)&&a.$raise(d(pt,"ArgumentError"),"both pattern and block are given"),h(void 0!==e&&o!==c||arguments.length>1)&&a.$raise(d(pt,"ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),h(void 0!==e)&&(o=p(a,"proc",[],(n=function(t){n.$$s;return null==t&&(t=c),e["$==="](t)},n.$$s=a,n.$$arity=1,n))),p(d(pt,"Enumerator"),"new",[],(r=function(e){var n,i=r.$$s||this;null==e&&(e=c),i.$each.$$p=function(){var r=d(pt,"Opal").$destructure(arguments),i=t.yield1(o,r);null==n&&(n=[]),h(i)?(n.push(r),e.$yield(n),n=null):n.push(r)},i.$each(),null!=n&&e.$yield(n)},r.$$s=a,r.$$arity=1,r))},it.$$arity=-1),t.def(ht,"$slice_when",ot=function(){var e,n=ot.$$p,r=n||c,i=this;return n&&(ot.$$p=null),n&&(ot.$$p=null),r!==c||i.$raise(d(pt,"ArgumentError"),"wrong number of arguments (0 for 1)"),p(d(pt,"Enumerator"),"new",[],(e=function(n){var i=e.$$s||this;null==n&&(n=c);var o=c,a=c;i.$each_cons.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),i=e[0],s=e[1],l=t.yieldX(r,[i,s]);a=s,o===c&&(o=[]),h(l)?(o.push(i),n.$yield(o),o=[]):o.push(i)},i.$each_cons(2),o!==c&&(o.push(a),n.$yield(o))},e.$$s=i,e.$$arity=1,e))},ot.$$arity=0),t.def(ht,"$sort",at=function(){var t,e=at.$$p,n=e||c,r=this,i=c;return e&&(at.$$p=null),e&&(at.$$p=null),i=r.$to_a(),n!==c||(n=g((t=function(e,n){t.$$s;return null==e&&(e=c),null==n&&(n=c),e["$<=>"](n)},t.$$s=r,t.$$arity=2,t))),p(i,"sort",[],n.$to_proc())},at.$$arity=0),t.def(ht,"$sort_by",st=function(){var e,n,r,i,o=st.$$p,a=o||c,s=this,l=c;return o&&(st.$$p=null),o&&(st.$$p=null),a===c?p(s,"enum_for",["sort_by"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=s,e.$$arity=0,e)):(l=p(s,"map",[],(n=function(){n.$$s;var e=c;return e=d(pt,"Opal").$destructure(arguments),[t.yield1(a,e),e]},n.$$s=s,n.$$arity=0,n)),p(l,"sort!",[],(r=function(t,e){r.$$s;return null==t&&(t=c),null==e&&(e=c),t[0]["$<=>"](e[0])},r.$$s=s,r.$$arity=2,r)),p(l,"map!",[],(i=function(t){i.$$s;return null==t&&(t=c),t[1]},i.$$s=s,i.$$arity=1,i)))},st.$$arity=0),t.def(ht,"$sum",lt=function(e){var n,r=lt.$$p,o=r||c,a=this,s=c;return r&&(lt.$$p=null),null==e&&(e=0),s=e,p(a,"each",[],(n=function(e){n.$$s;var r,a,l=c;return r=t.slice.call(arguments,0,arguments.length),a=r,l=function(){return o!==c?t.yieldX(o,t.to_a(a)):d(pt,"Opal").$destructure(a)}(),s=i(s,l)},n.$$s=a,n.$$arity=-1,n)),s},lt.$$arity=-1),t.def(ht,"$take",ct=function(t){var e=this;return e.$first(t)},ct.$$arity=1),t.def(ht,"$take_while",ut=function(){try{var e,n=ut.$$p,r=n||c,i=this,o=c;return n&&(ut.$$p=null),n&&(ut.$$p=null),h(r)?(o=[],p(i,"each",[],(e=function(n){e.$$s;var i,a,s=c;return i=t.slice.call(arguments,0,arguments.length),a=i,s=d(pt,"Opal").$destructure(a),h(t.yield1(r,s))||t.ret(o),o.push(s)},e.$$s=i,e.$$arity=-1,e))):i.$enum_for("take_while")}catch(a){if(a===t.returner)return a.$v;throw a}},ut.$$arity=0),t.def(ht,"$uniq",dt=function(){var e,n=dt.$$p,r=n||c,i=this,a=c;return n&&(dt.$$p=null),n&&(dt.$$p=null),a=m([],{}),p(i,"each",[],(e=function(n){e.$$s;var i,s,l=c,u=c,f=c;return i=t.slice.call(arguments,0,arguments.length),s=i,l=d(pt,"Opal").$destructure(s),u=function(){return r!==c?t.yield1(r,l):l}(),h(a["$key?"](u))?c:(f=[u,l],p(a,"[]=",t.to_a(f)),f[o(f["length"],1)])},e.$$s=i,e.$$arity=-1,e)),a.$values()},dt.$$arity=0),t.alias(ht,"to_a","entries"),t.def(ht,"$zip",ft=function(e){var n,r,i=ft.$$p,o=this;return i&&(ft.$$p=null),i&&(ft.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,p(o.$to_a(),"zip",t.to_a(r))},ft.$$arity=-1)}(l[0],l)},Opal.modules["corelib/enumerator"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t0&&(a=i[0],i.splice(0,1)),null==a&&(a="each"),s=i;var d=u.$allocate();return d.object=e,d.size=c,d.method=a,d.args=s,d},p.$$arity=-2),t.def(_,"$initialize",$=function(e){var n=$.$$p,r=n||o,i=this;return n&&($.$$p=null),n&&($.$$p=null),t.slice.call(arguments,0,arguments.length),u(r)?(i.object=d(a(b,"Generator"),"new",[],r.$to_proc()),i.method="each",i.args=[],i.size=arguments[0]||o,u(i.size)?i.size=a(b,"Opal").$coerce_to(i.size,a(b,"Integer"),"to_int"):o):(i.object=arguments[0],i.method=arguments[1]||"each",i.args=l.call(arguments,2),i.size=o)},$.$$arity=-1),t.def(_,"$each",m=function(n){var r,i,a,s=m.$$p,l=s||o,c=this;return s&&(m.$$p=null),s&&(m.$$p=null),r=t.slice.call(arguments,0,arguments.length),i=r,u(u(a=l["$nil?"]())?i["$empty?"]():a)?c:(i=e(c.args,i),u(l["$nil?"]())?d(c.$class(),"new",[c.object,c.method].concat(t.to_a(i))):d(c.object,"__send__",[c.method].concat(t.to_a(i)),l.$to_proc()))},m.$$arity=-1),t.def(_,"$size",g=function(){var e=this;return u(a(b,"Proc")["$==="](e.size))?d(e.size,"call",t.to_a(e.args)):e.size},g.$$arity=0),t.def(_,"$with_index",v=function(t){var e,n=v.$$p,r=n||o,i=this;if(n&&(v.$$p=null),n&&(v.$$p=null),null==t&&(t=0),t=function(){return u(t)?a(b,"Opal").$coerce_to(t,a(b,"Integer"),"to_int"):0}(),!u(r))return d(i,"enum_for",["with_index",t],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));var s=t;return i.$each.$$p=function(){var t=a(b,"Opal").$destructure(arguments),e=r(t,s);return s++,e},i.$each()},v.$$arity=-1),t.alias(_,"with_object","each_with_object"),t.def(_,"$inspect",y=function(){var t=this,n=o;return n="#<"+t.$class()+": "+t.object.$inspect()+":"+t.method,u(t.args["$any?"]())&&(n=e(n,"("+t.args.$inspect()["$[]"](a(b,"Range").$new(1,-2))+")")),e(n,">")},y.$$arity=0),function(e,n,r){var i,l,f=c(e,n,"Generator"),h=[f].concat(r);f.$$prototype.block=o,f.$include(a(h,"Enumerable")),t.def(f,"$initialize",i=function(){var t=i.$$p,e=t||o,n=this;return t&&(i.$$p=null),t&&(i.$$p=null),u(e)||n.$raise(a(h,"LocalJumpError"),"no block given"),n.block=e},i.$$arity=0),t.def(f,"$each",l=function(e){var n,r,i=l.$$p,c=i||o,u=this,f=o;i&&(l.$$p=null),i&&(l.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,f=d(a(h,"Yielder"),"new",[],c.$to_proc());try{r.unshift(f),t.yieldX(u.block,r)}catch(p){if(p===s)return s.$v;throw p}return u},l.$$arity=-1)}(b[0],null,b),function(e,n,r){var i,a,l,u=c(e,n,"Yielder");[u].concat(r);u.$$prototype.block=o,t.def(u,"$initialize",i=function(){var t=i.$$p,e=t||o,n=this;return t&&(i.$$p=null),t&&(i.$$p=null),n.block=e},i.$$arity=0),t.def(u,"$yield",a=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;var o=t.yieldX(i.block,r);if(o===s)throw s;return o},a.$$arity=-1),t.def(u,"$<<",l=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,d(i,"yield",t.to_a(r)),i},l.$$arity=-1)}(b[0],null,b),function(r,i,s){var l,h,p,$,m,g,v,y,_,b,w,x,k,S=c(r,i,"Lazy"),O=[S].concat(s);return S.$$prototype.enumerator=o,function(t,e,n){var r=c(t,e,"StopLazyError");[r].concat(n)}(O[0],a(O,"Exception"),O),t.def(S,"$initialize",l=function(e,n){var r,i=l.$$p,s=i||o,c=this;return i&&(l.$$p=null),i&&(l.$$p=null),null==n&&(n=o),s!==o||c.$raise(a(O,"ArgumentError"),"tried to call lazy new without a block"),c.enumerator=e,d(c,t.find_super_dispatcher(c,"initialize",l,!1),[n],(r=function(n,i){var l,c,u,f=r.$$s||this;null==n&&(n=o),l=t.slice.call(arguments,1,arguments.length),c=l;try{return d(e,"each",t.to_a(c),(u=function(e){var r,i;u.$$s;r=t.slice.call(arguments,0,arguments.length),i=r,i.unshift(n),t.yieldX(s,i)},u.$$s=f,u.$$arity=-1,u))}catch(h){if(!t.rescue(h,[a(O,"Exception")]))throw h;try{return o}finally{t.pop_exception()}}},r.$$s=c,r.$$arity=-2,r))},l.$$arity=-2),t.alias(S,"force","to_a"),t.def(S,"$lazy",h=function(){var t=this;return t},h.$$arity=0),t.def(S,"$collect",p=function(){var e,n=p.$$p,r=n||o,i=this;return n&&(p.$$p=null),n&&(p.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy map without a block"),d(a(O,"Lazy"),"new",[i,i.$enumerator_size()],(e=function(n,i){var a,s;e.$$s;null==n&&(n=o),a=t.slice.call(arguments,1,arguments.length),s=a;var l=t.yieldX(r,s);n.$yield(l)},e.$$s=i,e.$$arity=-2,e))},p.$$arity=0),t.def(S,"$collect_concat",$=function(){var e,n=$.$$p,r=n||o,i=this;return n&&($.$$p=null),n&&($.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy map without a block"),d(a(O,"Lazy"),"new",[i,o],(e=function(n,i){var s,l,c,u,f=e.$$s||this;null==n&&(n=o),s=t.slice.call(arguments,1,arguments.length),l=s;var h=t.yieldX(r,l);if(h["$respond_to?"]("force")&&h["$respond_to?"]("each"))d(h,"each",[],(c=function(t){c.$$s;return null==t&&(t=o),n.$yield(t)},c.$$s=f,c.$$arity=1,c));else{var p=a(O,"Opal").$try_convert(h,a(O,"Array"),"to_ary");p===o?n.$yield(h):d(h,"each",[],(u=function(t){u.$$s;return null==t&&(t=o),n.$yield(t)},u.$$s=f,u.$$arity=1,u))}},e.$$s=i,e.$$arity=-2,e))},$.$$arity=0),t.def(S,"$drop",m=function(r){var i,s=this,l=o,c=o,f=o;return r=a(O,"Opal").$coerce_to(r,a(O,"Integer"),"to_int"),u(n(r,0))&&s.$raise(a(O,"ArgumentError"),"attempt to drop negative size"),l=s.$enumerator_size(),c=function(){return u(a(O,"Integer")["$==="](l))&&u(n(r,l))?r:l}(),f=0,d(a(O,"Lazy"),"new",[s,c],(i=function(a,s){var l,c;i.$$s;return null==a&&(a=o),l=t.slice.call(arguments,1,arguments.length),c=l,u(n(f,r))?f=e(f,1):d(a,"yield",t.to_a(c))},i.$$s=s,i.$$arity=-2,i))},m.$$arity=1),t.def(S,"$drop_while",g=function(){var e,n=g.$$p,r=n||o,i=this,s=o;return n&&(g.$$p=null),n&&(g.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy drop_while without a block"),s=!0,d(a(O,"Lazy"),"new",[i,o],(e=function(n,i){var a,l;e.$$s;if(null==n&&(n=o),a=t.slice.call(arguments,1,arguments.length),l=a,!u(s))return d(n,"yield",t.to_a(l));var c=t.yieldX(r,l);f(c)&&(s=!1,d(n,"yield",t.to_a(l)))},e.$$s=i,e.$$arity=-2,e))},g.$$arity=0),t.def(S,"$enum_for",v=function(e,n){var r,i,a,s=v.$$p,l=s||o,c=this;return s&&(v.$$p=null),s&&(v.$$p=null),r=t.slice.call(arguments,0,arguments.length),r.length>0&&(i=r[0],r.splice(0,1)),null==i&&(i="each"),a=r,d(c.$class(),"for",[c,i].concat(t.to_a(a)),l.$to_proc())},v.$$arity=-1),t.def(S,"$find_all",y=function(){var e,n=y.$$p,r=n||o,i=this;return n&&(y.$$p=null),n&&(y.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy select without a block"),d(a(O,"Lazy"),"new",[i,o],(e=function(n,i){var a,s;e.$$s;null==n&&(n=o),a=t.slice.call(arguments,1,arguments.length),s=a;var l=t.yieldX(r,s);u(l)&&d(n,"yield",t.to_a(s))},e.$$s=i,e.$$arity=-2,e))},y.$$arity=0),t.alias(S,"flat_map","collect_concat"),t.def(S,"$grep",_=function(e){var n,r,i=_.$$p,s=i||o,l=this;return i&&(_.$$p=null),i&&(_.$$p=null),u(s)?d(a(O,"Lazy"),"new",[l,o],(n=function(r,i){var l,c;n.$$s;null==r&&(r=o),l=t.slice.call(arguments,1,arguments.length),c=l;var d=a(O,"Opal").$destructure(c),f=e["$==="](d);u(f)&&(f=t.yield1(s,d),r.$yield(t.yield1(s,d)))},n.$$s=l,n.$$arity=-2,n)):d(a(O,"Lazy"),"new",[l,o],(r=function(n,i){var s,l;r.$$s;null==n&&(n=o),s=t.slice.call(arguments,1,arguments.length),l=s;var c=a(O,"Opal").$destructure(l),d=e["$==="](c);u(d)&&n.$yield(c)},r.$$s=l,r.$$arity=-2,r))},_.$$arity=1),t.alias(S,"map","collect"),t.alias(S,"select","find_all"),t.def(S,"$reject",b=function(){var e,n=b.$$p,r=n||o,i=this;return n&&(b.$$p=null),n&&(b.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy reject without a block"),d(a(O,"Lazy"),"new",[i,o],(e=function(n,i){var a,s;e.$$s;null==n&&(n=o),a=t.slice.call(arguments,1,arguments.length),s=a;var l=t.yieldX(r,s);f(l)&&d(n,"yield",t.to_a(s))},e.$$s=i,e.$$arity=-2,e))},b.$$arity=0),t.def(S,"$take",w=function(r){var i,s=this,l=o,c=o,f=o;return r=a(O,"Opal").$coerce_to(r,a(O,"Integer"),"to_int"),u(n(r,0))&&s.$raise(a(O,"ArgumentError"),"attempt to take negative size"),l=s.$enumerator_size(),c=function(){return u(a(O,"Integer")["$==="](l))&&u(n(r,l))?r:l}(),f=0,d(a(O,"Lazy"),"new",[s,c],(i=function(s,l){var c,h,p=i.$$s||this;return null==s&&(s=o),c=t.slice.call(arguments,1,arguments.length),h=c,u(n(f,r))?(d(s,"yield",t.to_a(h)),f=e(f,1)):p.$raise(a(O,"StopLazyError"))},i.$$s=s,i.$$arity=-2,i))},w.$$arity=1),t.def(S,"$take_while",x=function(){var e,n=x.$$p,r=n||o,i=this;return n&&(x.$$p=null),n&&(x.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy take_while without a block"),d(a(O,"Lazy"),"new",[i,o],(e=function(n,i){var s,l,c=e.$$s||this;null==n&&(n=o),s=t.slice.call(arguments,1,arguments.length),l=s;var f=t.yieldX(r,l);u(f)?d(n,"yield",t.to_a(l)):c.$raise(a(O,"StopLazyError"))},e.$$s=i,e.$$arity=-2,e))},x.$$arity=0),t.alias(S,"to_enum","enum_for"),t.def(S,"$inspect",k=function(){var t=this;return"#<"+t.$class()+": "+t.enumerator.$inspect()+">"},k.$$arity=0),o&&"inspect"}(b[0],_,b)}(i[0],null,i)},Opal.modules["corelib/numeric"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?te:t["$>"](e)}var a=t.top,s=[],l=t.nil,c=t.const_get_qualified,u=t.const_get_relative,d=(t.breaker,t.slice,t.klass),f=t.truthy,h=t.hash2;return t.add_stubs(["$require","$include","$instance_of?","$class","$Float","$respond_to?","$coerce","$__send__","$===","$raise","$equal?","$-","$*","$div","$<","$-@","$ceil","$to_f","$denominator","$to_r","$==","$floor","$/","$%","$Complex","$zero?","$numerator","$abs","$arg","$coerce_to!","$round","$to_i","$truncate","$>"]),a.$require("corelib/comparable"),function(a,s,p){var $,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J=d(a,s,"Numeric"),Q=[J].concat(p);return J.$include(u(Q,"Comparable")),t.def(J,"$coerce",$=function(t){var e=this;return f(t["$instance_of?"](e.$class()))?[t,e]:[e.$Float(t),e.$Float(e)]},$.$$arity=1),t.def(J,"$__coerced__",m=function(e,n){var r,i,o=this,a=l,s=l,c=l;return f(n["$respond_to?"]("coerce"))?(i=n.$coerce(o),r=t.to_ary(i),a=null==r[0]?l:r[0],s=null==r[1]?l:r[1],a.$__send__(e,s)):function(){return c=e,"+"["$==="](c)||"-"["$==="](c)||"*"["$==="](c)||"/"["$==="](c)||"%"["$==="](c)||"&"["$==="](c)||"|"["$==="](c)||"^"["$==="](c)||"**"["$==="](c)?o.$raise(u(Q,"TypeError"),n.$class()+" can't be coerced into Numeric"):">"["$==="](c)||">="["$==="](c)||"<"["$==="](c)||"<="["$==="](c)||"<=>"["$==="](c)?o.$raise(u(Q,"ArgumentError"),"comparison of "+o.$class()+" with "+n.$class()+" failed"):l}()},m.$$arity=2),t.def(J,"$<=>",g=function(t){var e=this;return f(e["$equal?"](t))?0:l},g.$$arity=1),t.def(J,"$+@",v=function(){var t=this;return t},v.$$arity=0),t.def(J,"$-@",y=function(){var t=this;return e(0,t)},y.$$arity=0),t.def(J,"$%",_=function(t){var r=this;return e(r,n(t,r.$div(t)))},_.$$arity=1),t.def(J,"$abs",b=function(){var t=this;return r(t,0)?t["$-@"]():t},b.$$arity=0),t.def(J,"$abs2",w=function(){var t=this;return n(t,t)},w.$$arity=0),t.def(J,"$angle",x=function(){var t=this;return r(t,0)?c(u(Q,"Math"),"PI"):0},x.$$arity=0),t.alias(J,"arg","angle"),t.def(J,"$ceil",k=function(t){var e=this;return null==t&&(t=0),e.$to_f().$ceil(t)},k.$$arity=-1),t.def(J,"$conj",S=function(){var t=this;return t},S.$$arity=0),t.alias(J,"conjugate","conj"),t.def(J,"$denominator",O=function(){var t=this;return t.$to_r().$denominator()},O.$$arity=0),t.def(J,"$div",C=function(t){var e=this;return t["$=="](0)&&e.$raise(u(Q,"ZeroDivisionError"),"divided by o"),i(e,t).$floor()},C.$$arity=1),t.def(J,"$divmod",A=function(t){var e=this;return[e.$div(t),e["$%"](t)]},A.$$arity=1),t.def(J,"$fdiv",E=function(t){var e=this;return i(e.$to_f(),t)},E.$$arity=1),t.def(J,"$floor",T=function(t){var e=this;return null==t&&(t=0),e.$to_f().$floor(t)},T.$$arity=-1),t.def(J,"$i",P=function(){var t=this;return t.$Complex(0,t)},P.$$arity=0),t.def(J,"$imag",B=function(){return 0},B.$$arity=0),t.alias(J,"imaginary","imag"),t.def(J,"$integer?",L=function(){return!1},L.$$arity=0),t.alias(J,"magnitude","abs"),t.alias(J,"modulo","%"),t.def(J,"$nonzero?",I=function(){var t=this;return f(t["$zero?"]())?l:t},I.$$arity=0),t.def(J,"$numerator",D=function(){var t=this;return t.$to_r().$numerator()},D.$$arity=0),t.alias(J,"phase","arg"),t.def(J,"$polar",R=function(){var t=this;return[t.$abs(),t.$arg()]},R.$$arity=0),t.def(J,"$quo",j=function(t){var e=this;return i(u(Q,"Opal")["$coerce_to!"](e,u(Q,"Rational"),"to_r"),t)},j.$$arity=1),t.def(J,"$real",M=function(){var t=this;return t},M.$$arity=0),t.def(J,"$real?",F=function(){return!0},F.$$arity=0),t.def(J,"$rect",N=function(){var t=this;return[t,0]},N.$$arity=0),t.alias(J,"rectangular","rect"),t.def(J,"$round",z=function(t){var e=this;return e.$to_f().$round(t)},z.$$arity=-1),t.def(J,"$to_c",H=function(){var t=this;return t.$Complex(t,0)},H.$$arity=0),t.def(J,"$to_int",V=function(){var t=this;return t.$to_i()},V.$$arity=0),t.def(J,"$truncate",U=function(t){var e=this;return null==t&&(t=0),e.$to_f().$truncate(t)},U.$$arity=-1),t.def(J,"$zero?",q=function(){var t=this;return t["$=="](0)},q.$$arity=0),t.def(J,"$positive?",W=function(){var t=this;return o(t,0)},W.$$arity=0),t.def(J,"$negative?",G=function(){var t=this;return r(t,0)},G.$$arity=0),t.def(J,"$dup",Y=function(){var t=this;return t},Y.$$arity=0),t.def(J,"$clone",K=function(e){var n,r=this;if(null==e)e=h([],{});else if(!e.$$is_hash)throw t.ArgumentError.$new("expected kwargs");return n=e.$$smap["freeze"],null==n&&(n=!0),r},K.$$arity=-1),t.def(J,"$finite?",X=function(){return!0},X.$$arity=0),t.def(J,"$infinite?",Z=function(){return l},Z.$$arity=0),l&&"infinite?"}(s[0],null,s)},Opal.modules["corelib/array"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t","$==","$object_id","$inspect","$enum_for","$bsearch_index","$to_proc","$nil?","$coerce_to!","$>","$*","$enumerator_size","$empty?","$size","$map","$equal?","$dup","$each","$[]","$dig","$eql?","$length","$begin","$end","$exclude_end?","$flatten","$__id__","$to_s","$new","$max","$min","$!","$>=","$**","$delete_if","$reverse","$rotate","$rand","$at","$keep_if","$shuffle!","$<","$sort","$sort_by","$!=","$times","$[]=","$-","$<<","$values","$is_a?","$last","$first","$upto","$reject","$pristine","$singleton_class"]),a.$require("corelib/enumerable"),a.$require("corelib/numeric"),function(a,s,m){var g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt,gt,vt,yt,_t,bt,wt,xt,kt,St,Ot,Ct,At,Et,Tt,Pt,Bt,Lt,It,Dt,Rt,jt,Mt,Ft,Nt,zt,Ht,Vt,Ut,qt,Wt,Gt,Yt,Kt,Xt,Zt,Jt,Qt,te,ee,ne=d(a,s,"Array"),re=[ne].concat(m);function ie(e,n){return n.$$name===t.Array?e:n.$allocate().$replace(e.$to_a())}function oe(e,n){var r,i,o,a,s=e.length;return r=n.excl,i=t.Opal.$coerce_to(n.begin,t.Integer,"to_int"),o=t.Opal.$coerce_to(n.end,t.Integer,"to_int"),i<0&&(i+=s,i<0)||i>s?l:o<0&&(o+=s,o<0)?[]:(r||(o+=1),a=e.slice(i,o),ie(a,e.$class()))}function ae(e,n,r){var i,o=e.length;return n=t.Opal.$coerce_to(n,t.Integer,"to_int"),n<0&&(n+=o,n<0)?l:void 0===r?n>=o||n<0?l:e[n]:(r=t.Opal.$coerce_to(r,t.Integer,"to_int"),r<0||n>o||n<0?l:(i=e.slice(n,n+r),ie(i,e.$class())))}function se(t,e){return t===e||0===e?1:e>0&&t>e?se(t-1,e-1)+se(t-1,e):0}function le(t,e){var n=e>=0?1:0;while(e)n*=t,t--,e--;return n}return ne.$include(u(re,"Enumerable")),t.defineProperty(ne.$$prototype,"$$is_array",!0),t.defs(ne,"$[]",g=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,ie(r,i)},g.$$arity=-1),t.def(ne,"$initialize",v=function(t,e){var n,r,i=v.$$p,o=i||l,a=this;if(i&&(v.$$p=null),i&&(v.$$p=null),null==t&&(t=l),null==e&&(e=l),e!==l&&o!==l&&a.$warn("warning: block supersedes default value argument"),t>c(u(re,"Integer"),"MAX")&&a.$raise(u(re,"ArgumentError"),"array size too big"),arguments.length>2&&a.$raise(u(re,"ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..2)"),0===arguments.length)return a.splice(0,a.length),a;if(1===arguments.length){if(t.$$is_array)return a.$replace(t.$to_a()),a;if(t["$respond_to?"]("to_ary"))return a.$replace(t.$to_ary()),a}if(t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),t<0&&a.$raise(u(re,"ArgumentError"),"negative array size"),a.splice(0,a.length),o===l)for(n=0;n",O=function(t){var e=this;if(f(u(re,"Array")["$==="](t)))t=t.$to_a();else{if(!f(t["$respond_to?"]("to_ary")))return l;t=t.$to_ary().$to_a()}if(e.$hash()===t.$hash())return 0;for(var n=Math.min(e.length,t.length),r=0;r"](t[r]);if(0!==i)return i}return e.length["$<=>"](t.length)},O.$$arity=1),t.def(ne,"$==",C=function(t){var e=this,n={};function r(t,e){var i,o,a,s;if(t===e)return!0;if(!e.$$is_array)return!!u(re,"Opal")["$respond_to?"](e,"to_ary")&&e["$=="](t);if(t.$$constructor!==Array&&(t=t.$to_a()),e.$$constructor!==Array&&(e=e.$to_a()),t.length!==e.length)return!1;for(n[t.$object_id()]=!0,i=0,o=t.length;ic)for(r=c;rc)for(r=c;r=e.length?l:e[t]},B.$$arity=1),t.def(ne,"$bsearch_index",L=function(){var e=L.$$p,n=e||l,r=this;if(e&&(L.$$p=null),e&&(L.$$p=null),n===l)return r.$enum_for("bsearch_index");var i,o,a,s=0,c=r.length,d=!1,f=l;while(s0){for(a=0,s=$.length;a=0&&m<$.length){for(o=[],r=0;r<=m+1;r++)o.push(0);a=[],s=0,c=!1,o[0]=-1;while(!c){a[s]=$[o[s+1]];while(s=0&&s(a,0,[],o),o},H.$$arity=1),t.def(ne,"$compact",V=function(){for(var t,e=this,n=[],r=0,i=e.length;r=e.length)return l;var n=e[t];return e.splice(t,1),n},G.$$arity=1),t.def(ne,"$delete_if",Y=function(){var t,e=Y.$$p,n=e||l,r=this;if(e&&(Y.$$p=null),e&&(Y.$$p=null),n===l)return p(r,"enum_for",["delete_if"],(t=function(){var e=t.$$s||this;return e.$size()},t.$$s=r,t.$$arity=0,t));for(var i,o=0,a=r.length;o=0&&t2)&&h.$raise(u(re,"ArgumentError"),"wrong number of arguments ("+r.$length()+" for 0..2)"),o=r,i=t.to_ary(o),p=null==i[0]?l:i[0],$=null==i[1]?l:i[1]):(f(0==r.length)?h.$raise(u(re,"ArgumentError"),"wrong number of arguments (0 for 1..3)"):f(r.length>3)&&h.$raise(u(re,"ArgumentError"),"wrong number of arguments ("+r.$length()+" for 1..3)"),o=r,i=t.to_ary(o),m=null==i[0]?l:i[0],p=null==i[1]?l:i[1],$=null==i[2]?l:i[2]),f(u(re,"Range")["$==="](p))){if(f($)&&h.$raise(u(re,"TypeError"),"length invalid with range"),g=u(re,"Opal").$coerce_to(p.$begin(),u(re,"Integer"),"to_int"),f(g<0)&&(g+=this.length),f(g<0)&&h.$raise(u(re,"RangeError"),p.$inspect()+" out of range"),v=u(re,"Opal").$coerce_to(p.$end(),u(re,"Integer"),"to_int"),f(v<0)&&(v+=this.length),f(p["$exclude_end?"]())||(v+=1),f(v<=g))return h}else if(f(p))if(g=u(re,"Opal").$coerce_to(p,u(re,"Integer"),"to_int"),f(g<0)&&(g+=this.length),f(g<0)&&(g=0),f($)){if(v=u(re,"Opal").$coerce_to($,u(re,"Integer"),"to_int"),f(0==v))return h;v+=g}else v=this.length;else g=0,v=this.length;if(f(g>this.length))for(a=this.length;athis.length)&&(this.length=v),f(d))for(this.length;g0){if(e<0&&(e+=o.length+1,e<0&&o.$raise(u(re,"IndexError"),e+" is out of bounds")),e>o.length)for(var a=o.length;ae.length&&(t=e.length),e.slice(e.length-t,e.length))},pt.$$arity=-1),t.def(ne,"$length",$t=function(){var t=this;return t.length},$t.$$arity=0),t.alias(ne,"map","collect"),t.alias(ne,"map!","collect!"),t.def(ne,"$max",mt=function(t){var e=mt.$$p,n=e||l,r=this;return e&&(mt.$$p=null),e&&(mt.$$p=null),p(r.$each(),"max",[t],n.$to_proc())},mt.$$arity=-1),t.def(ne,"$min",gt=function(){var t=gt.$$p,e=t||l,n=this;return t&&(gt.$$p=null),t&&(gt.$$p=null),p(n.$each(),"min",[],e.$to_proc())},gt.$$arity=0),t.def(ne,"$permutation",vt=function(e){var n,r,i,o,a=vt.$$p,s=a||l,c=this,d=l,f=l;if(a&&(vt.$$p=null),a&&(vt.$$p=null),s===l)return p(c,"enum_for",["permutation",e],(n=function(){var t=n.$$s||this;return le(t.length,void 0===e?t.length:e)},n.$$s=c,n.$$arity=0,n));if(e=void 0===e?c.length:u(re,"Opal").$coerce_to(e,u(re,"Integer"),"to_int"),e<0||c.lengthe.length)?e.splice(0,e.length):e.splice(e.length-t,e.length))},_t.$$arity=-1),t.def(ne,"$product",bt=function(e){var n,r,i=bt.$$p,o=i||l,a=this;i&&(bt.$$p=null),i&&(bt.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n;var s,c,d,f,h=o!==l?null:[],p=r.length+1,$=new Array(p),m=new Array(p),g=new Array(p),v=1;for(g[0]=a,s=1;s2147483647&&a.$raise(u(re,"RangeError"),"too big to product"),m[s]=f,$[s]=0}t:for(;;){for(d=[],s=0;s=0;e--){if(e>=o.length)break;if(o[e]["$=="](t))return e}else if(i!==l)for(e=o.length-1;e>=0;e--){if(e>=o.length)break;if(n=i(o[e]),!1!==n&&n!==l)return e}else if(null==t)return o.$enum_for("rindex");return l},Tt.$$arity=-1),t.def(ne,"$rotate",Pt=function(t){var e,n,r,i,o=this;return null==t&&(t=1),t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),1===o.length?o.slice():0===o.length?[]:(e=o.slice(),n=t%e.length,r=e.slice(n),i=e.slice(0,n),r.concat(i))},Pt.$$arity=-1),t.def(ne,"$rotate!",Bt=function(t){var e=this,n=l;return null==t&&(t=1),0===e.length||1===e.length?e:(t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),n=e.$rotate(t),e.$replace(n))},Bt.$$arity=-1),function(e,n,r){var i,o,a=d(e,n,"SampleRandom"),s=[a].concat(r);a.$$prototype.rng=l,t.def(a,"$initialize",i=function(t){var e=this;return e.rng=t},i.$$arity=1),t.def(a,"$rand",o=function(t){var e=this,n=l;return n=u(s,"Opal").$coerce_to(e.rng.$rand(t),u(s,"Integer"),"to_int"),f(n<0)&&e.$raise(u(s,"RangeError"),"random value must be >= 0"),f(np.length&&(t=p.length),t){case 0:return[];case 1:return[p[m.$rand(p.length)]];case 2:return a=m.$rand(p.length),s=m.$rand(p.length),a===s&&(s=0===a?a+1:a-1),[p[a],p[s]];default:if(p.length/t>3){r=!1,i=0,o=u(re,"Array").$new(t),a=1,o[0]=m.$rand(p.length);while(a100){r=!0;break}c=m.$rand(p.length)}if(r)break;s++}if(r)break;o[a]=c,a++}if(!r){a=0;while(a=o&&i.$raise(u(re,"RangeError"),"random number too big "+n)):n=i.$rand(o),r=i[--o],i[o]=i[n],i[n]=r;return i},Mt.$$arity=-1),t.alias(ne,"slice","[]"),t.def(ne,"$slice!",Ft=function(t,e){var n=this,r=l,i=l,o=l,a=l,s=l;if(r=l,f(void 0===e))if(f(u(re,"Range")["$==="](t))){i=t,r=n["$[]"](i),o=u(re,"Opal").$coerce_to(i.$begin(),u(re,"Integer"),"to_int"),a=u(re,"Opal").$coerce_to(i.$end(),u(re,"Integer"),"to_int"),o<0&&(o+=n.length),a<0?a+=n.length:a>=n.length&&(a=n.length-1,i.excl&&(a+=1));var c=a-o;i.excl?a-=1:c+=1,o=0&&a=0&&c>0&&n.splice(o,c)}else{if(s=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),s<0&&(s+=n.length),s<0||s>=n.length)return l;r=n[s],0===s?n.shift():n.splice(s,1)}else{if(s=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),e=u(re,"Opal").$coerce_to(e,u(re,"Integer"),"to_int"),e<0)return l;r=n["$[]"](s,e),s<0&&(s+=n.length),s+e>n.length&&(e=n.length-s),s=0&&n.splice(s,e)}return r},Ft.$$arity=-2),t.def(ne,"$sort",Nt=function(){var t=Nt.$$p,n=t||l,r=this;return t&&(Nt.$$p=null),t&&(Nt.$$p=null),f(r.length>1)?(n===l&&(n=function(t,e){return t["$<=>"](e)}),r.slice().sort((function(t,o){var a=n(t,o);return a===l&&r.$raise(u(re,"ArgumentError"),"comparison of "+t.$inspect()+" with "+o.$inspect()+" failed"),e(a,0)?1:i(a,0)?-1:0}))):r},Nt.$$arity=0),t.def(ne,"$sort!",zt=function(){var t,e=zt.$$p,n=e||l,r=this;e&&(zt.$$p=null),e&&(zt.$$p=null),t=n!==l?p(r.slice(),"sort",[],n.$to_proc()):r.slice().$sort(),r.length=0;for(var i=0,o=t.length;i=0;o--)i.unshift(r[o]);return i},Xt.$$arity=-1),t.alias(ne,"prepend","unshift"),t.def(ne,"$values_at",Zt=function(e){var n,r,i,o=this,a=l;return n=t.slice.call(arguments,0,arguments.length),r=n,a=[],p(r,"each",[],(i=function(t){var e,n=i.$$s||this,r=l,o=l,s=l;return null==t&&(t=l),f(t["$is_a?"](u(re,"Range")))?(r=u(re,"Opal").$coerce_to(t.$last(),u(re,"Integer"),"to_int"),o=u(re,"Opal").$coerce_to(t.$first(),u(re,"Integer"),"to_int"),o<0?(o+=n.length,l):(r<0&&(r+=n.length),t["$exclude_end?"]()&&r--,r=e:t["$>="](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}var i=t.top,o=[],a=t.nil,s=(t.const_get_qualified,t.const_get_relative),l=(t.breaker,t.slice,t.klass),c=t.send,u=t.hash2,d=t.truthy;return t.add_stubs(["$require","$include","$coerce_to?","$[]","$merge!","$allocate","$raise","$coerce_to!","$each","$fetch","$>=","$>","$==","$compare_by_identity","$lambda?","$abs","$arity","$enum_for","$size","$respond_to?","$class","$dig","$new","$inspect","$map","$to_proc","$flatten","$eql?","$default","$dup","$default_proc","$default_proc=","$-","$default=","$proc"]),i.$require("corelib/enumerable"),function(i,o,f){var h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt,gt,vt,yt,_t,bt,wt=l(i,o,"Hash"),xt=[wt].concat(f);return wt.$include(s(xt,"Enumerable")),wt.$$prototype.$$is_hash=!0,t.defs(wt,"$[]",h=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;var o,l,c=r.length;if(1===c){if(o=s(xt,"Opal")["$coerce_to?"](r["$[]"](0),s(xt,"Hash"),"to_hash"),o!==a)return i.$allocate()["$merge!"](o);for(r=s(xt,"Opal")["$coerce_to?"](r["$[]"](0),s(xt,"Array"),"to_ary"),r===a&&i.$raise(s(xt,"ArgumentError"),"odd number of arguments for Hash"),c=r.length,o=i.$allocate(),l=0;l=",v=function(t){var e,n=this,r=a;return t=s(xt,"Opal")["$coerce_to!"](t,s(xt,"Hash"),"to_hash"),!(n.$$keys.length",y=function(t){var n=this;return t=s(xt,"Opal")["$coerce_to!"](t,s(xt,"Hash"),"to_hash"),!(n.$$keys.length<=t.$$keys.length)&&e(n,t)},y.$$arity=1),t.def(wt,"$<",_=function(t){var e=this;return t=s(xt,"Opal")["$coerce_to!"](t,s(xt,"Hash"),"to_hash"),n(t,e)},_.$$arity=1),t.def(wt,"$<=",b=function(t){var n=this;return t=s(xt,"Opal")["$coerce_to!"](t,s(xt,"Hash"),"to_hash"),e(t,n)},b.$$arity=1),t.def(wt,"$[]",w=function(e){var n=this,r=t.hash_get(n,e);return void 0!==r?r:n.$default(e)},w.$$arity=1),t.def(wt,"$[]=",x=function(e,n){var r=this;return t.hash_put(r,e,n),n},x.$$arity=2),t.def(wt,"$assoc",k=function(t){for(var e,n=this,r=0,i=n.$$keys,o=i.length;r"+o.$inspect());return"{"+r.join(", ")+"}"}finally{e&&(bt=void 0)}},X.$$arity=0),t.def(wt,"$invert",Z=function(){for(var e,n,r=this,i=t.hash(),o=0,a=r.$$keys,s=a.length;o0?(e=r[0],e=e.$$is_string?e:e.key,[e,t.hash_delete(n,e)]):n.$default(a)},ut.$$arity=0),t.alias(wt,"size","length"),t.def(wt,"$slice",dt=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;for(var o=t.hash(),a=0,s=r.length;ae:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t=e:t["$>="](e)}var c=t.top,u=[],d=t.nil,f=t.const_get_qualified,h=t.const_get_relative,p=(t.breaker,t.slice,t.klass),$=t.truthy,m=t.send,g=t.hash2;return t.add_stubs(["$require","$bridge","$raise","$name","$class","$Float","$respond_to?","$coerce_to!","$__coerced__","$===","$!","$>","$**","$new","$<","$to_f","$==","$nan?","$infinite?","$enum_for","$+","$-","$gcd","$lcm","$%","$/","$frexp","$to_i","$ldexp","$rationalize","$*","$<<","$to_r","$truncate","$-@","$size","$<=","$>=","$<=>","$compare","$any?"]),c.$require("corelib/numeric"),function(c,u,v){var y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt,gt,vt,yt,_t,bt,wt,xt,kt,St,Ot,Ct,At,Et,Tt,Pt,Bt,Lt,It,Dt,Rt,jt=p(c,u,"Number"),Mt=[jt].concat(v);h(Mt,"Opal").$bridge(Number,jt),t.defineProperty(jt.$$prototype,"$$is_number",!0),jt.$$is_number_class=!0,function(e,n){var r,i=[e].concat(n);t.def(e,"$allocate",r=function(){var t=this;return t.$raise(h(i,"TypeError"),"allocator undefined for "+t.$name())},r.$$arity=0),t.udef(e,"$new")}(t.get_singleton_class(jt),Mt),t.def(jt,"$coerce",y=function(t){var e=this;if(t===d)e.$raise(h(Mt,"TypeError"),"can't convert "+t.$class()+" into Float");else{if(t.$$is_string)return[e.$Float(t),e];if(t["$respond_to?"]("to_f"))return[h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Float"),"to_f"),e];if(t.$$is_number)return[t,e];e.$raise(h(Mt,"TypeError"),"can't convert "+t.$class()+" into Float")}},y.$$arity=1),t.def(jt,"$__id__",_=function(){var t=this;return 2*t+1},_.$$arity=0),t.alias(jt,"object_id","__id__"),t.def(jt,"$+",b=function(t){var e=this;return t.$$is_number?e+t:e.$__coerced__("+",t)},b.$$arity=1),t.def(jt,"$-",w=function(t){var e=this;return t.$$is_number?e-t:e.$__coerced__("-",t)},w.$$arity=1),t.def(jt,"$*",x=function(t){var e=this;return t.$$is_number?e*t:e.$__coerced__("*",t)},x.$$arity=1),t.def(jt,"$/",k=function(t){var e=this;return t.$$is_number?e/t:e.$__coerced__("/",t)},k.$$arity=1),t.alias(jt,"fdiv","/"),t.def(jt,"$%",S=function(t){var e=this;return t.$$is_number?t==-1/0?t:0!=t?t<0||e<0?(e%t+t)%t:e%t:void e.$raise(h(Mt,"ZeroDivisionError"),"divided by 0"):e.$__coerced__("%",t)},S.$$arity=1),t.def(jt,"$&",O=function(t){var e=this;return t.$$is_number?e&t:e.$__coerced__("&",t)},O.$$arity=1),t.def(jt,"$|",C=function(t){var e=this;return t.$$is_number?e|t:e.$__coerced__("|",t)},C.$$arity=1),t.def(jt,"$^",A=function(t){var e=this;return t.$$is_number?e^t:e.$__coerced__("^",t)},A.$$arity=1),t.def(jt,"$<",E=function(t){var e=this;return t.$$is_number?e",P=function(t){var e=this;return t.$$is_number?e>t:e.$__coerced__(">",t)},P.$$arity=1),t.def(jt,"$>=",B=function(t){var e=this;return t.$$is_number?e>=t:e.$__coerced__(">=",t)},B.$$arity=1);var Ft=function(t,e){return e.$$is_number?isNaN(t)||isNaN(e)?d:t>e?1:t",e)};t.def(jt,"$<=>",L=function(e){var n=this;try{return Ft(n,e)}catch(r){if(!t.rescue(r,[h(Mt,"ArgumentError")]))throw r;try{return d}finally{t.pop_exception()}}},L.$$arity=1),t.def(jt,"$<<",I=function(t){var e=this;return t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),t>0?e<>-t},I.$$arity=1),t.def(jt,"$>>",D=function(t){var e=this;return t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),t>0?e>>t:e<<-t},D.$$arity=1),t.def(jt,"$[]",R=function(t){var e=this;return t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),t<0?0:t>=32?e<0?1:0:e>>t&1},R.$$arity=1),t.def(jt,"$+@",j=function(){var t=this;return+t},j.$$arity=0),t.def(jt,"$-@",M=function(){var t=this;return-t},M.$$arity=0),t.def(jt,"$~",F=function(){var t=this;return~t},F.$$arity=0),t.def(jt,"$**",N=function(t){var r,i,o=this;return $(h(Mt,"Integer")["$==="](t))?$($(r=h(Mt,"Integer")["$==="](o)["$!"]())?r:e(t,0))?Math.pow(o,t):h(Mt,"Rational").$new(o,1)["$**"](t):$((r=n(o,0))?$(i=h(Mt,"Float")["$==="](t))?i:h(Mt,"Rational")["$==="](t):n(o,0))?h(Mt,"Complex").$new(o,0)["$**"](t.$to_f()):$(null!=t.$$is_number)?Math.pow(o,t):o.$__coerced__("**",t)},N.$$arity=1),t.def(jt,"$===",z=function(t){var e=this;return t.$$is_number?e.valueOf()===t.valueOf():!!t["$respond_to?"]("==")&&t["$=="](e)},z.$$arity=1),t.def(jt,"$==",H=function(t){var e=this;return t.$$is_number?e.valueOf()===t.valueOf():!!t["$respond_to?"]("==")&&t["$=="](e)},H.$$arity=1),t.def(jt,"$abs",V=function(){var t=this;return Math.abs(t)},V.$$arity=0),t.def(jt,"$abs2",U=function(){var t=this;return Math.abs(t*t)},U.$$arity=0),t.def(jt,"$allbits?",q=function(t){var e=this;return t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),(e&t)==t},q.$$arity=1),t.def(jt,"$anybits?",W=function(t){var e=this;return t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),0!==(e&t)},W.$$arity=1),t.def(jt,"$angle",G=function(){var t=this;return $(t["$nan?"]())?t:0==t?1/t>0?0:Math.PI:t<0?Math.PI:0},G.$$arity=0),t.alias(jt,"arg","angle"),t.alias(jt,"phase","angle"),t.def(jt,"$bit_length",Y=function(){var t=this;if($(h(Mt,"Integer")["$==="](t))||t.$raise(h(Mt,"NoMethodError").$new("undefined method `bit_length` for "+t+":Float","bit_length")),0===t||-1===t)return 0;var e=0,n=t<0?~t:t;while(0!=n)e+=1,n>>>=1;return e},Y.$$arity=0),t.def(jt,"$ceil",K=function(t){var e=this;null==t&&(t=0);var n=e.$to_f();if(n%1===0&&t>=0)return n;var r=Math.pow(10,t),i=Math.ceil(n*r)/r;return n%1===0&&(i=Math.round(i)),i},K.$$arity=-1),t.def(jt,"$chr",X=function(t){var e=this;return String.fromCharCode(e)},X.$$arity=-1),t.def(jt,"$denominator",Z=function(){var e,n=Z.$$p,r=this,i=d,o=d,a=d;for(n&&(Z.$$p=null),o=0,a=arguments.length,i=new Array(a);o=t;l--)a(l);return s},J.$$arity=1),t.alias(jt,"eql?","=="),t.def(jt,"$equal?",Q=function(t){var e,n=this;return $(e=n["$=="](t))?e:isNaN(n)&&isNaN(t)},Q.$$arity=1),t.def(jt,"$even?",tt=function(){var t=this;return t%2===0},tt.$$arity=0),t.def(jt,"$floor",et=function(t){var e=this;null==t&&(t=0);var n=e.$to_f();if(n%1===0&&t>=0)return n;var r=Math.pow(10,t),i=Math.floor(n*r)/r;return n%1===0&&(i=Math.round(i)),i},et.$$arity=-1),t.def(jt,"$gcd",nt=function(t){var e=this;$(h(Mt,"Integer")["$==="](t))||e.$raise(h(Mt,"TypeError"),"not an integer");var n=Math.abs(e),r=Math.abs(t);while(n>0){var i=n;n=r%n,r=i}return r},nt.$$arity=1),t.def(jt,"$gcdlcm",rt=function(t){var e=this;return[e.$gcd(),e.$lcm()]},rt.$$arity=1),t.def(jt,"$integer?",it=function(){var t=this;return t%1===0},it.$$arity=0),t.def(jt,"$is_a?",ot=function(e){var n=ot.$$p,r=this,i=d,o=d,a=d;for(n&&(ot.$$p=null),o=0,a=arguments.length,i=new Array(a);o1&&o.$raise(h(Mt,"ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),$(h(Mt,"Integer")["$==="](o))?h(Mt,"Rational").$new(o,1):$(o["$infinite?"]())?o.$raise(h(Mt,"FloatDomainError"),"Infinity"):$(o["$nan?"]())?o.$raise(h(Mt,"FloatDomainError"),"NaN"):$(null==e)?(r=h(Mt,"Math").$frexp(o),n=t.to_ary(r),s=null==n[0]?d:n[0],l=null==n[1]?d:n[1],s=h(Mt,"Math").$ldexp(s,f(h(Mt,"Float"),"MANT_DIG")).$to_i(),l=i(l,f(h(Mt,"Float"),"MANT_DIG")),h(Mt,"Rational").$new(a(2,s),1["$<<"](i(1,l))).$rationalize(h(Mt,"Rational").$new(1,1["$<<"](i(1,l))))):o.$to_r().$rationalize(e)},gt.$$arity=-1),t.def(jt,"$remainder",vt=function(t){var e=this;return i(e,a(t,o(e,t).$truncate()))},vt.$$arity=1),t.def(jt,"$round",yt=function(a){var c,u,p=this,m=d;if($(h(Mt,"Integer")["$==="](p))){if($(null==a))return p;if($($(c=h(Mt,"Float")["$==="](a))?a["$infinite?"]():c)&&p.$raise(h(Mt,"RangeError"),"Infinity"),a=h(Mt,"Opal")["$coerce_to!"](a,h(Mt,"Integer"),"to_int"),$(n(a,f(h(Mt,"Integer"),"MIN")))&&p.$raise(h(Mt,"RangeError"),"out of bounds"),$(a>=0))return p;if(a=a["$-@"](),.415241*a-.125>p.$size())return 0;var g=Math.pow(10,a),v=Math.floor((Math.abs(v)+g/2)/g)*g;return p<0?-v:v}if($($(c=p["$nan?"]())?null==a:c)&&p.$raise(h(Mt,"FloatDomainError"),"NaN"),a=h(Mt,"Opal")["$coerce_to!"](a||0,h(Mt,"Integer"),"to_int"),$(s(a,0)))$(p["$nan?"]())?p.$raise(h(Mt,"RangeError"),"NaN"):$(p["$infinite?"]())&&p.$raise(h(Mt,"FloatDomainError"),"Infinity");else{if(a["$=="](0))return Math.round(p);if($($(c=p["$nan?"]())?c:p["$infinite?"]()))return p}return u=h(Mt,"Math").$frexp(p),c=t.to_ary(u),null==c[0]?d:c[0],m=null==c[1]?d:c[1],$(l(a,i(r(f(h(Mt,"Float"),"DIG"),2),function(){return $(e(m,0))?o(m,4):i(o(m,3),1)}())))?p:$(n(a,function(){return $(e(m,0))?r(o(m,3),1):o(m,4)}()["$-@"]()))?0:Math.round(p*Math.pow(10,a))/Math.pow(10,a)},yt.$$arity=-1),t.def(jt,"$step",_t=function(e,n,r){var i,o,a,s,l,c,u,p=_t.$$p,$=p||d,v=this,y=d,_=d;if(p&&(_t.$$p=null),p&&(_t.$$p=null),i=t.slice.call(arguments,0,arguments.length),o=t.extract_kwargs(i),null==o)o=g([],{});else if(!o.$$is_hash)throw t.ArgumentError.$new("expected kwargs");function b(){void 0!==l&&(a=l),void 0===a&&(a=d),s===d&&v.$raise(h(Mt,"TypeError"),"step must be numeric"),0===s&&v.$raise(h(Mt,"ArgumentError"),"step can't be 0"),void 0!==c&&(s=c),s!==d&&null!=s||(s=1);var t=s["$<=>"](0);t===d&&v.$raise(h(Mt,"ArgumentError"),"0 can't be coerced into "+s.$class()),a!==d&&null!=a||(a=t>0?f(h(Mt,"Float"),"INFINITY"):f(h(Mt,"Float"),"INFINITY")["$-@"]()),h(Mt,"Opal").$compare(v,a)}function w(){if(s>0&&v>a||s<0&&v.5&&(n=.5),e((a-v)/s+n)+1)}function x(){if(b(),0===s)return 1/0;if(s%1!==0)return w();if(s>0&&v>a||s<0&&v0&&(a=i[0],i.splice(0,1)),i.length>0&&(s=i[0],i.splice(0,1)),l=o.$$smap["to"],c=o.$$smap["by"],void 0!==a&&void 0!==l&&v.$raise(h(Mt,"ArgumentError"),"to is given twice"),void 0!==s&&void 0!==c&&v.$raise(h(Mt,"ArgumentError"),"step is given twice"),$===d)return y=[],_=g([],{}),void 0!==a&&y.push(a),void 0!==s&&y.push(s),void 0!==l&&t.hash_put(_,"to",l),void 0!==c&&t.hash_put(_,"by",c),_["$any?"]()&&y.push(_),m(v,"enum_for",["step"].concat(t.to_a(y)),(u=function(){u.$$s;return x()},u.$$s=v,u.$$arity=0,u));if(b(),0===s)while(1)$(v);if(v%1!==0||a%1!==0||s%1!==0){var k=w();if(k>0)if(s===1/0||s===-1/0)$(v);else{var S,O=0;if(s>0)while(OS&&(S=a),$(S),O+=1}}else{var C=v;if(s>0)while(C<=a)$(C),C+=s;else while(C>=a)$(C),C+=s}return v},_t.$$arity=-1),t.alias(jt,"succ","next"),t.def(jt,"$times",bt=function(){var t,e=bt.$$p,n=e||d,r=this;if(e&&(bt.$$p=null),e&&(bt.$$p=null),!$(n))return m(r,"enum_for",["times"],(t=function(){var e=t.$$s||this;return e},t.$$s=r,t.$$arity=0,t));for(var i=0;i=0)return n;var r=Math.pow(10,t),i=parseInt(n*r,10)/r;return n%1===0&&(i=Math.round(i)),i},Ot.$$arity=-1),t.alias(jt,"inspect","to_s"),t.def(jt,"$digits",Ct=function(t){var e=this;null==t&&(t=10),n(e,0)&&e.$raise(f(h(Mt,"Math"),"DomainError"),"out of domain"),t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),$(n(t,2))&&e.$raise(h(Mt,"ArgumentError"),"invalid radix "+t);var r=e,i=[];while(0!==r)i.push(r%t),r=parseInt(r/t,10);return i},Ct.$$arity=-1),t.def(jt,"$divmod",At=function(e){var n,r=At.$$p,i=this,o=d,a=d,s=d;for(r&&(At.$$p=null),a=0,s=arguments.length,o=new Array(s);a0)},Dt.$$arity=0),t.def(jt,"$negative?",Rt=function(){var t=this;return t==-1/0||1/t<0},Rt.$$arity=0)}(u[0],h(u,"Numeric"),u),t.const_set(u[0],"Fixnum",h(u,"Number")),function(e,n,r){var i=p(e,n,"Integer"),o=[i].concat(r);i.$$is_number_class=!0,function(e,n){var r,i,o,a=[e].concat(n);t.def(e,"$allocate",r=function(){var t=this;return t.$raise(h(a,"TypeError"),"allocator undefined for "+t.$name())},r.$$arity=0),t.udef(e,"$new"),t.def(e,"$===",i=function(t){return!!t.$$is_number&&t%1===0},i.$$arity=1),t.def(e,"$sqrt",o=function(t){var e=this;return t=h(a,"Opal")["$coerce_to!"](t,h(a,"Integer"),"to_int"),t<0&&e.$raise(f(h(a,"Math"),"DomainError"),'Numerical argument is out of domain - "isqrt"'),parseInt(Math.sqrt(t),10)},o.$$arity=1)}(t.get_singleton_class(i),o),t.const_set(o[0],"MAX",Math.pow(2,30)-1),t.const_set(o[0],"MIN",-Math.pow(2,30))}(u[0],h(u,"Numeric"),u),function(e,n,r){var i=p(e,n,"Float"),o=[i].concat(r);return i.$$is_number_class=!0,function(e,n){var r,i,o=[e].concat(n);t.def(e,"$allocate",r=function(){var t=this;return t.$raise(h(o,"TypeError"),"allocator undefined for "+t.$name())},r.$$arity=0),t.udef(e,"$new"),t.def(e,"$===",i=function(t){return!!t.$$is_number},i.$$arity=1)}(t.get_singleton_class(i),o),t.const_set(o[0],"INFINITY",1/0),t.const_set(o[0],"MAX",Number.MAX_VALUE),t.const_set(o[0],"MIN",Number.MIN_VALUE),t.const_set(o[0],"NAN",NaN),t.const_set(o[0],"DIG",15),t.const_set(o[0],"MANT_DIG",53),t.const_set(o[0],"RADIX",2),t.const_set(o[0],"EPSILON",Number.EPSILON||2220446049250313e-31)}(u[0],h(u,"Numeric"),u)},Opal.modules["corelib/range"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t<=e:t["$<="](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?te:t["$>"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t/e:t["$/"](e)}function a(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function s(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function l(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}var c=t.top,u=[],d=t.nil,f=t.const_get_qualified,h=t.const_get_relative,p=(t.breaker,t.slice,t.klass),$=t.truthy,m=t.send;return t.add_stubs(["$require","$include","$attr_reader","$raise","$<=>","$include?","$<=","$<","$enum_for","$upto","$to_proc","$respond_to?","$class","$succ","$!","$==","$===","$exclude_end?","$eql?","$begin","$end","$last","$to_a","$>","$-","$abs","$to_i","$coerce_to!","$ceil","$/","$size","$loop","$+","$*","$>=","$each_with_index","$%","$bsearch","$inspect","$[]","$hash"]),c.$require("corelib/enumerable"),function(c,u,g){var v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R=p(c,u,"Range"),j=[R].concat(g);return R.$$prototype.begin=R.$$prototype.end=R.$$prototype.excl=d,R.$include(h(j,"Enumerable")),R.$$prototype.$$is_range=!0,R.$attr_reader("begin","end"),t.def(R,"$initialize",v=function(t,e,n){var r=this;return null==n&&(n=!1),$(r.begin)&&r.$raise(h(j,"NameError"),"'initialize' called twice"),$(t["$<=>"](e))||r.$raise(h(j,"ArgumentError"),"bad value for range"),r.begin=t,r.end=e,r.excl=n},v.$$arity=-3),t.def(R,"$==",y=function(t){var e=this;return!!t.$$is_range&&(e.excl===t.excl&&e.begin==t.begin&&e.end==t.end)},y.$$arity=1),t.def(R,"$===",_=function(t){var e=this;return e["$include?"](t)},_.$$arity=1),t.def(R,"$cover?",b=function(t){var r,i=this,o=d,a=d;return o=i.begin["$<=>"](t),!!$($(r=o)?e(o,0):r)&&(a=t["$<=>"](i.end),$(i.excl)?$(r=a)?n(a,0):r:$(r=a)?e(a,0):r)},b.$$arity=1),t.def(R,"$each",w=function(){var e,r,i,o=w.$$p,a=o||d,s=this,l=d,c=d;if(o&&(w.$$p=null),o&&(w.$$p=null),a===d)return s.$enum_for("each");if(s.begin.$$is_number&&s.end.$$is_number){for(s.begin%1===0&&s.end%1===0||s.$raise(h(j,"TypeError"),"can't iterate from Float"),r=s.begin,i=s.end+function(){return $(s.excl)?0:1}();r"](c),0)))t.yield1(a,l),l=l.$succ();return $($(e=s.excl["$!"]())?l["$=="](c):e)&&t.yield1(a,l),s},w.$$arity=0),t.def(R,"$eql?",x=function(t){var e,n,r=this;return!!$(h(j,"Range")["$==="](t))&&($(e=$(n=r.excl["$==="](t["$exclude_end?"]()))?r.begin["$eql?"](t.$begin()):n)?r.end["$eql?"](t.$end()):e)},x.$$arity=1),t.def(R,"$exclude_end?",k=function(){var t=this;return t.excl},k.$$arity=0),t.def(R,"$first",S=function(e){var n=S.$$p,r=this,i=d,o=d,a=d;for(n&&(S.$$p=null),o=0,a=arguments.length,i=new Array(a);o.5&&(s=.5),g.excl?(t=a((r-n)/e-s),t*e+nt&&e.$$is_lambda&&!e.$$is_curried&&e.$raise(r(_,"ArgumentError"),"wrong number of arguments ("+s+" for "+t+")"),s>=t?e.$call.apply(e,a):(o=function(){return n.apply(null,a.concat(i.call(arguments)))},o.$$is_lambda=e.$$is_lambda,o.$$is_curried=!0,o)}return void 0===t?t=e.length:(t=r(_,"Opal")["$coerce_to!"](t,r(_,"Integer"),"to_int"),e.$$is_lambda&&t!==e.length&&e.$raise(r(_,"ArgumentError"),"wrong number of arguments ("+t+" for "+e.length+")")),n.$$is_lambda=e.$$is_lambda,n.$$is_curried=!0,n},g.$$arity=-1),t.def(y,"$dup",v=function(){var t=this,e=t.$$original_proc||t,n=function(){return e.apply(this,arguments)};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n},v.$$arity=0),t.alias(y,"clone","dup")}(e[0],Function,e)},Opal.modules["corelib/method"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.klass),o=t.truthy;return t.add_stubs(["$attr_reader","$arity","$new","$class","$join","$source_location","$raise"]),function(e,a,s){var l,c,u,d,f,h,p,$,m,g=i(e,a,"Method"),v=[g].concat(s);g.$$prototype.method=g.$$prototype.receiver=g.$$prototype.owner=g.$$prototype.name=n,g.$attr_reader("owner","receiver","name"),t.def(g,"$initialize",l=function(t,e,n,r){var i=this;return i.receiver=t,i.owner=e,i.name=r,i.method=n},l.$$arity=4),t.def(g,"$arity",c=function(){var t=this;return t.method.$arity()},c.$$arity=0),t.def(g,"$parameters",u=function(){var t=this;return t.method.$$parameters},u.$$arity=0),t.def(g,"$source_location",d=function(){var t,e=this;return o(t=e.method.$$source_location)?t:["(eval)",0]},d.$$arity=0),t.def(g,"$comments",f=function(){var t,e=this;return o(t=e.method.$$comments)?t:[]},f.$$arity=0),t.def(g,"$call",h=function(e){var r,i,o=h.$$p,a=o||n,s=this;return o&&(h.$$p=null),o&&(h.$$p=null),r=t.slice.call(arguments,0,arguments.length),i=r,s.method.$$p=a,s.method.apply(s.receiver,i)},h.$$arity=-1),t.alias(g,"[]","call"),t.def(g,"$unbind",p=function(){var t=this;return r(v,"UnboundMethod").$new(t.receiver.$class(),t.owner,t.method,t.name)},p.$$arity=0),t.def(g,"$to_proc",$=function(){var t=this,e=t.$call.bind(t);return e.$$unbound=t.method,e.$$is_lambda=!0,e.$$arity=t.method.$$arity,e.$$parameters=t.method.$$parameters,e},$.$$arity=0),t.def(g,"$inspect",m=function(){var t=this;return"#<"+t.$class()+": "+t.receiver.$class()+"#"+t.name+" (defined in "+t.owner+" in "+t.$source_location().$join(":")+")>"},m.$$arity=0)}(e[0],null,e),function(e,a,s){var l,c,u,d,f,h,p,$=i(e,a,"UnboundMethod"),m=[$].concat(s);return $.$$prototype.method=$.$$prototype.owner=$.$$prototype.name=$.$$prototype.source=n,$.$attr_reader("source","owner","name"),t.def($,"$initialize",l=function(t,e,n,r){var i=this;return i.source=t,i.owner=e,i.method=n,i.name=r},l.$$arity=4),t.def($,"$arity",c=function(){var t=this;return t.method.$arity()},c.$$arity=0),t.def($,"$parameters",u=function(){var t=this;return t.method.$$parameters},u.$$arity=0),t.def($,"$source_location",d=function(){var t,e=this;return o(t=e.method.$$source_location)?t:["(eval)",0]},d.$$arity=0),t.def($,"$comments",f=function(){var t,e=this;return o(t=e.method.$$comments)?t:[]},f.$$arity=0),t.def($,"$bind",h=function(e){var n=this;if(n.owner.$$is_module||t.is_a(e,n.owner))return r(m,"Method").$new(e,n.owner,n.method,n.name);n.$raise(r(m,"TypeError"),"can't bind singleton method to a different class (expected "+e+".kind_of?("+n.owner+" to be true)")},h.$$arity=1),t.def($,"$inspect",p=function(){var t=this;return"#<"+t.$class()+": "+t.source+"#"+t.name+" (defined in "+t.owner+" in "+t.$source_location().$join(":")+")>"},p.$$arity=0),n&&"inspect"}(e[0],null,e)},Opal.modules["corelib/variables"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.gvars),o=t.hash2;return t.add_stubs(["$new"]),i["&"]=i["~"]=i["`"]=i["'"]=n,i.LOADED_FEATURES=i['"']=t.loaded_features,i.LOAD_PATH=i[":"]=[],i["/"]="\n",i[","]=n,t.const_set(e[0],"ARGV",[]),t.const_set(e[0],"ARGF",r(e,"Object").$new()),t.const_set(e[0],"ENV",o([],{})),i.VERBOSE=!1,i.DEBUG=!1,i.SAFE=0},Opal.modules["opal/regexp_anchors"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.module);return t.add_stubs(["$==","$new"]),function(e,o){var a=i(e,"Opal"),s=[a].concat(o);t.const_set(s[0],"REGEXP_START",function(){return r(s,"RUBY_ENGINE")["$=="]("opal")?"^":n}()),t.const_set(s[0],"REGEXP_END",function(){return r(s,"RUBY_ENGINE")["$=="]("opal")?"$":n}()),t.const_set(s[0],"FORBIDDEN_STARTING_IDENTIFIER_CHARS","\\u0001-\\u002F\\u003A-\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),t.const_set(s[0],"FORBIDDEN_ENDING_IDENTIFIER_CHARS","\\u0001-\\u0020\\u0022-\\u002F\\u003A-\\u003E\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),t.const_set(s[0],"INLINE_IDENTIFIER_REGEXP",r(s,"Regexp").$new("[^"+r(s,"FORBIDDEN_STARTING_IDENTIFIER_CHARS")+"]*[^"+r(s,"FORBIDDEN_ENDING_IDENTIFIER_CHARS")+"]")),t.const_set(s[0],"FORBIDDEN_CONST_NAME_CHARS","\\u0001-\\u0020\\u0021-\\u002F\\u003B-\\u003F\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),t.const_set(s[0],"CONST_NAME_REGEXP",r(s,"Regexp").$new(r(s,"REGEXP_START")+"(::)?[A-Z][^"+r(s,"FORBIDDEN_CONST_NAME_CHARS")+"]*"+r(s,"REGEXP_END")))}(e[0],e)},Opal.modules["opal/mini"]=function(t){var e=t.top;t.nil,t.const_get_qualified,t.const_get_relative,t.breaker,t.slice;return t.add_stubs(["$require"]),e.$require("opal/base"),e.$require("corelib/nil"),e.$require("corelib/boolean"),e.$require("corelib/string"),e.$require("corelib/comparable"),e.$require("corelib/enumerable"),e.$require("corelib/enumerator"),e.$require("corelib/array"),e.$require("corelib/hash"),e.$require("corelib/number"),e.$require("corelib/range"),e.$require("corelib/proc"),e.$require("corelib/method"),e.$require("corelib/regexp"),e.$require("corelib/variables"),e.$require("opal/regexp_anchors")},Opal.modules["corelib/string/encoding"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}var n,r,i,o,a,s=t.top,l=[],c=t.nil,u=t.const_get_qualified,d=t.const_get_relative,f=(t.breaker,t.slice,t.klass),h=t.hash2,p=t.truthy,$=t.send;return t.add_stubs(["$require","$+","$[]","$new","$to_proc","$each","$const_set","$sub","$==","$default_external","$upcase","$raise","$attr_accessor","$attr_reader","$register","$length","$bytes","$to_a","$each_byte","$bytesize","$enum_for","$force_encoding","$dup","$coerce_to!","$find","$getbyte"]),s.$require("corelib/string"),function(n,r,i){var o,a,s,l,u,m,g,v,y,_,b=f(n,r,"Encoding"),w=[b].concat(i);b.$$prototype.ascii=b.$$prototype.dummy=b.$$prototype.name=c,t.defineProperty(b,"$$register",{}),t.defs(b,"$register",o=function(t,n){var r,i,a=o.$$p,s=a||c,l=this,u=c,f=c,m=c;return a&&(o.$$p=null),a&&(o.$$p=null),null==n&&(n=h([],{})),u=e([t],p(r=n["$[]"]("aliases"))?r:[]),f=$(d(w,"Class"),"new",[l],s.$to_proc()).$new(t,u,!!p(r=n["$[]"]("ascii"))&&r,!!p(r=n["$[]"]("dummy"))&&r),m=l["$$register"],$(u,"each",[],(i=function(t){var e=i.$$s||this;return null==t&&(t=c),e.$const_set(t.$sub("-","_"),f),m["$$"+t]=f},i.$$s=l,i.$$arity=1,i))},o.$$arity=-2),t.defs(b,"$find",a=function(t){var e,n=this,r=c,i=c;return t["$=="]("default_external")?n.$default_external():(r=n["$$register"],i=p(e=r["$$"+t])?e:r["$$"+t.$upcase()],p(i)||n.$raise(d(w,"ArgumentError"),"unknown encoding name - "+t),i)},a.$$arity=1),function(t,e){[t].concat(e);t.$attr_accessor("default_external")}(t.get_singleton_class(b),w),b.$attr_reader("name","names"),t.def(b,"$initialize",s=function(t,e,n,r){var i=this;return i.name=t,i.names=e,i.ascii=n,i.dummy=r},s.$$arity=4),t.def(b,"$ascii_compatible?",l=function(){var t=this;return t.ascii},l.$$arity=0),t.def(b,"$dummy?",u=function(){var t=this;return t.dummy},u.$$arity=0),t.def(b,"$to_s",m=function(){var t=this;return t.name},m.$$arity=0),t.def(b,"$inspect",g=function(){var t=this;return"#"},g.$$arity=0),t.def(b,"$each_byte",v=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(d(w,"NotImplementedError"))},v.$$arity=-1),t.def(b,"$getbyte",y=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(d(w,"NotImplementedError"))},y.$$arity=-1),t.def(b,"$bytesize",_=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(d(w,"NotImplementedError"))},_.$$arity=-1),function(t,e,n){var r=f(t,e,"EncodingError");[r].concat(n)}(w[0],d(w,"StandardError"),w),function(t,e,n){var r=f(t,e,"CompatibilityError");[r].concat(n)}(w[0],d(w,"EncodingError"),w)}(l[0],null,l),$(d(l,"Encoding"),"register",["UTF-8",h(["aliases","ascii"],{aliases:["CP65001"],ascii:!0})],(n=function(){var e,r,i=n.$$s||this;return t.def(i,"$each_byte",e=function(n){var r=e.$$p,i=r||c;r&&(e.$$p=null),r&&(e.$$p=null);for(var o=0,a=n.length;o>8)}},e.$$arity=1),t.def(i,"$bytesize",n=function(t){return t.$bytes().$length()},n.$$arity=1),c&&"bytesize"},r.$$s=s,r.$$arity=0,r)),$(d(l,"Encoding"),"register",["UTF-16BE"],(i=function(){var e,n,r=i.$$s||this;return t.def(r,"$each_byte",e=function(n){var r=e.$$p,i=r||c;r&&(e.$$p=null),r&&(e.$$p=null);for(var o=0,a=n.length;o>8),t.yield1(i,255&s)}},e.$$arity=1),t.def(r,"$bytesize",n=function(t){return t.$bytes().$length()},n.$$arity=1),c&&"bytesize"},i.$$s=s,i.$$arity=0,i)),$(d(l,"Encoding"),"register",["UTF-32LE"],(o=function(){var e,n,r=o.$$s||this;return t.def(r,"$each_byte",e=function(n){var r=e.$$p,i=r||c;r&&(e.$$p=null),r&&(e.$$p=null);for(var o=0,a=n.length;o>8)}},e.$$arity=1),t.def(r,"$bytesize",n=function(t){return t.$bytes().$length()},n.$$arity=1),c&&"bytesize"},o.$$s=s,o.$$arity=0,o)),$(d(l,"Encoding"),"register",["ASCII-8BIT",h(["aliases","ascii","dummy"],{aliases:["BINARY","US-ASCII","ASCII"],ascii:!0,dummy:!0})],(a=function(){var e,n,r=a.$$s||this;return t.def(r,"$each_byte",e=function(n){var r=e.$$p,i=r||c;r&&(e.$$p=null),r&&(e.$$p=null);for(var o=0,a=n.length;o>8)}},e.$$arity=1),t.def(r,"$bytesize",n=function(t){return t.$bytes().$length()},n.$$arity=1),c&&"bytesize"},a.$$s=s,a.$$arity=0,a)),function(e,n,r){var i,o,a,s,l,h,p,m=f(e,n,"String"),g=[m].concat(r);return m.$$prototype.encoding=c,m.$attr_reader("encoding"),t.defineProperty(String.prototype,"encoding",u(d(g,"Encoding"),"UTF_16LE")),t.def(m,"$bytes",i=function(){var t=this;return t.$each_byte().$to_a()},i.$$arity=0),t.def(m,"$bytesize",o=function(){var t=this;return t.encoding.$bytesize(t)},o.$$arity=0),t.def(m,"$each_byte",a=function(){var t=a.$$p,e=t||c,n=this;return t&&(a.$$p=null),t&&(a.$$p=null),e===c?n.$enum_for("each_byte"):($(n.encoding,"each_byte",[n],e.$to_proc()),n)},a.$$arity=0),t.def(m,"$encode",s=function(t){var e=this;return e.$dup().$force_encoding(t)},s.$$arity=1),t.def(m,"$force_encoding",l=function(t){var e=this;return t===e.encoding?e:(t=d(g,"Opal")["$coerce_to!"](t,d(g,"String"),"to_s"),t=d(g,"Encoding").$find(t),t===e.encoding||(e.encoding=t),e)},l.$$arity=1),t.def(m,"$getbyte",h=function(t){var e=this;return e.encoding.$getbyte(e,t)},h.$$arity=1),t.def(m,"$valid_encoding?",p=function(){return!0},p.$$arity=0),c&&"valid_encoding?"}(l[0],null,l)},Opal.modules["corelib/struct"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t=e:t["$>="](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}var a=t.top,s=[],l=t.nil,c=(t.const_get_qualified,t.const_get_relative),u=(t.breaker,t.slice,t.klass),d=t.hash2,f=t.truthy,h=t.send;return t.add_stubs(["$require","$include","$const_name!","$unshift","$map","$coerce_to!","$new","$each","$define_struct_attribute","$allocate","$initialize","$alias_method","$module_eval","$to_proc","$const_set","$==","$raise","$<<","$members","$define_method","$instance_eval","$class","$last","$>","$length","$-","$keys","$any?","$join","$[]","$[]=","$each_with_index","$hash","$===","$<","$-@","$size","$>=","$include?","$to_sym","$instance_of?","$__id__","$eql?","$enum_for","$name","$+","$each_pair","$inspect","$each_with_object","$flatten","$to_a","$respond_to?","$dig"]),a.$require("corelib/enumerable"),function(a,s,p){var $,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I=u(a,s,"Struct"),D=[I].concat(p);return I.$include(c(D,"Enumerable")),t.defs(I,"$new",$=function(e,n,r){var i,o,a,s,u,p,m=$.$$p,g=m||l,v=this,y=l;if(m&&($.$$p=null),m&&($.$$p=null),i=t.slice.call(arguments,1,arguments.length),o=t.extract_kwargs(i),null==o)o=d([],{});else if(!o.$$is_hash)throw t.ArgumentError.$new("expected kwargs");if(a=i,s=o.$$smap["keyword_init"],null==s&&(s=!1),f(e))try{e=c(D,"Opal")["$const_name!"](e)}catch(_){if(!t.rescue(_,[c(D,"TypeError"),c(D,"NameError")]))throw _;try{a.$unshift(e),e=l}finally{t.pop_exception()}}return h(a,"map",[],(u=function(t){u.$$s;return null==t&&(t=l),c(D,"Opal")["$coerce_to!"](t,c(D,"String"),"to_str")},u.$$s=v,u.$$arity=1,u)),y=h(c(D,"Class"),"new",[v],(p=function(){var e,n=p.$$s||this;return h(a,"each",[],(e=function(t){var n=e.$$s||this;return null==t&&(t=l),n.$define_struct_attribute(t)},e.$$s=n,e.$$arity=1,e)),function(e,n){var r;[e].concat(n);return t.def(e,"$new",r=function(e){var n,r,i=this,o=l;return n=t.slice.call(arguments,0,arguments.length),r=n,o=i.$allocate(),o.$$data={},h(o,"initialize",t.to_a(r)),o},r.$$arity=-1),e.$alias_method("[]","new")}(t.get_singleton_class(n),D)},p.$$s=v,p.$$arity=0,p)),f(g)&&h(y,"module_eval",[],g.$to_proc()),y.$$keyword_init=s,f(e)&&c(D,"Struct").$const_set(e,y),y},$.$$arity=-2),t.defs(I,"$define_struct_attribute",m=function(t){var e,n,r=this;return r["$=="](c(D,"Struct"))&&r.$raise(c(D,"ArgumentError"),"you cannot define attributes to the Struct class"),r.$members()["$<<"](t),h(r,"define_method",[t],(e=function(){var n=e.$$s||this;return n.$$data[t]},e.$$s=r,e.$$arity=0,e)),h(r,"define_method",[t+"="],(n=function(e){var r=n.$$s||this;return null==e&&(e=l),r.$$data[t]=e},n.$$s=r,n.$$arity=1,n))},m.$$arity=1),t.defs(I,"$members",g=function(){var t,e=this;return null==e.members&&(e.members=l),e["$=="](c(D,"Struct"))&&e.$raise(c(D,"ArgumentError"),"the Struct class has no members"),e.members=f(t=e.members)?t:[]},g.$$arity=0),t.defs(I,"$inherited",v=function(t){var e,n=this,r=l;return null==n.members&&(n.members=l),r=n.members,h(t,"instance_eval",[],(e=function(){var t=e.$$s||this;return t.members=r},e.$$s=n,e.$$arity=0,e))},v.$$arity=1),t.def(I,"$initialize",y=function(r){var i,o,a,s,u,p=this,$=l,m=l;return i=t.slice.call(arguments,0,arguments.length),o=i,f(p.$class().$$keyword_init)?($=f(a=o.$last())?a:d([],{}),f(f(a=e(o.$length(),1))?a:1===o.length&&!$.$$is_hash)&&p.$raise(c(D,"ArgumentError"),"wrong number of arguments (given "+o.$length()+", expected 0)"),m=n($.$keys(),p.$class().$members()),f(m["$any?"]())&&p.$raise(c(D,"ArgumentError"),"unknown keywords: "+m.$join(", ")),h(p.$class().$members(),"each",[],(s=function(e){var r=s.$$s||this,i=l;return null==e&&(e=l),i=[e,$["$[]"](e)],h(r,"[]=",t.to_a(i)),i[n(i["length"],1)]},s.$$s=p,s.$$arity=1,s))):(f(e(o.$length(),p.$class().$members().$length()))&&p.$raise(c(D,"ArgumentError"),"struct size differs"),h(p.$class().$members(),"each_with_index",[],(u=function(e,r){var i=u.$$s||this,a=l;return null==e&&(e=l),null==r&&(r=l),a=[e,o["$[]"](r)],h(i,"[]=",t.to_a(a)),a[n(a["length"],1)]},u.$$s=p,u.$$arity=2,u)))},y.$$arity=-1),t.def(I,"$members",_=function(){var t=this;return t.$class().$members()},_.$$arity=0),t.def(I,"$hash",b=function(){var t=this;return c(D,"Hash").$new(t.$$data).$hash()},b.$$arity=0),t.def(I,"$[]",w=function(t){var e=this;return f(c(D,"Integer")["$==="](t))?(f(r(t,e.$class().$members().$size()["$-@"]()))&&e.$raise(c(D,"IndexError"),"offset "+t+" too small for struct(size:"+e.$class().$members().$size()+")"),f(i(t,e.$class().$members().$size()))&&e.$raise(c(D,"IndexError"),"offset "+t+" too large for struct(size:"+e.$class().$members().$size()+")"),t=e.$class().$members()["$[]"](t)):f(c(D,"String")["$==="](t))?e.$$data.hasOwnProperty(t)||e.$raise(c(D,"NameError").$new("no member '"+t+"' in struct",t)):e.$raise(c(D,"TypeError"),"no implicit conversion of "+t.$class()+" into Integer"),t=c(D,"Opal")["$coerce_to!"](t,c(D,"String"),"to_str"),e.$$data[t]},w.$$arity=1),t.def(I,"$[]=",x=function(t,e){var n=this;return f(c(D,"Integer")["$==="](t))?(f(r(t,n.$class().$members().$size()["$-@"]()))&&n.$raise(c(D,"IndexError"),"offset "+t+" too small for struct(size:"+n.$class().$members().$size()+")"),f(i(t,n.$class().$members().$size()))&&n.$raise(c(D,"IndexError"),"offset "+t+" too large for struct(size:"+n.$class().$members().$size()+")"),t=n.$class().$members()["$[]"](t)):f(c(D,"String")["$==="](t))?f(n.$class().$members()["$include?"](t.$to_sym()))||n.$raise(c(D,"NameError").$new("no member '"+t+"' in struct",t)):n.$raise(c(D,"TypeError"),"no implicit conversion of "+t.$class()+" into Integer"),t=c(D,"Opal")["$coerce_to!"](t,c(D,"String"),"to_str"),n.$$data[t]=e},x.$$arity=2),t.def(I,"$==",k=function(t){var e=this;if(!f(t["$instance_of?"](e.$class())))return!1;var n={},r={};function i(t,e){var o,a,s;for(o in n[t.$__id__()]=!0,r[e.$__id__()]=!0,t.$$data)if(a=t.$$data[o],s=e.$$data[o],c(D,"Struct")["$==="](a)){if((!n.hasOwnProperty(a.$__id__())||!r.hasOwnProperty(s.$__id__()))&&!i(a,s))return!1}else if(!a["$=="](s))return!1;return!0}return i(e,t)},k.$$arity=1),t.def(I,"$eql?",S=function(t){var e=this;if(!f(t["$instance_of?"](e.$class())))return!1;var n={},r={};function i(t,e){var o,a,s;for(o in n[t.$__id__()]=!0,r[e.$__id__()]=!0,t.$$data)if(a=t.$$data[o],s=e.$$data[o],c(D,"Struct")["$==="](a)){if((!n.hasOwnProperty(a.$__id__())||!r.hasOwnProperty(s.$__id__()))&&!i(a,s))return!1}else if(!a["$eql?"](s))return!1;return!0}return i(e,t)},S.$$arity=1),t.def(I,"$each",O=function(){var e,n,r=O.$$p,i=r||l,o=this;return r&&(O.$$p=null),i===l?h(o,"enum_for",["each"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=o,e.$$arity=0,e)):(h(o.$class().$members(),"each",[],(n=function(e){var r=n.$$s||this;return null==e&&(e=l),t.yield1(i,r["$[]"](e))},n.$$s=o,n.$$arity=1,n)),o)},O.$$arity=0),t.def(I,"$each_pair",C=function(){var e,n,r=C.$$p,i=r||l,o=this;return r&&(C.$$p=null),i===l?h(o,"enum_for",["each_pair"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=o,e.$$arity=0,e)):(h(o.$class().$members(),"each",[],(n=function(e){var r=n.$$s||this;return null==e&&(e=l),t.yield1(i,[e,r["$[]"](e)])},n.$$s=o,n.$$arity=1,n)),o)},C.$$arity=0),t.def(I,"$length",A=function(){var t=this;return t.$class().$members().$length()},A.$$arity=0),t.alias(I,"size","length"),t.def(I,"$to_a",E=function(){var t,e=this;return h(e.$class().$members(),"map",[],(t=function(e){var n=t.$$s||this;return null==e&&(e=l),n["$[]"](e)},t.$$s=e,t.$$arity=1,t))},E.$$arity=0),t.alias(I,"values","to_a"),t.def(I,"$inspect",T=function(){var t,e,n=this,r=l;return r="#"),r},T.$$arity=0),t.alias(I,"to_s","inspect"),t.def(I,"$to_h",P=function(){var e,r=this;return h(r.$class().$members(),"each_with_object",[d([],{})],(e=function(r,i){var o=e.$$s||this,a=l;return null==r&&(r=l),null==i&&(i=l),a=[r,o["$[]"](r)],h(i,"[]=",t.to_a(a)),a[n(a["length"],1)]},e.$$s=r,e.$$arity=2,e))},P.$$arity=0),t.def(I,"$values_at",B=function(e){var n,r,i,o=this;n=t.slice.call(arguments,0,arguments.length),r=n,r=h(r,"map",[],(i=function(t){i.$$s;return null==t&&(t=l),t.$$is_range?t.$to_a():t},i.$$s=o,i.$$arity=1,i)).$flatten();for(var a=[],s=0,u=r.length;s"},g.$$arity=0),t.def(z,"$==",v=function(t){var e,n,r=this;return!!c(r["$equal?"](t))||(c(t["$instance_of?"](r.$class()))?r.hash["$=="](t.$instance_variable_get("@hash")):!!c(c(e=t["$is_a?"](a(H,"Set")))?r.$size()["$=="](t.$size()):e)&&u(t,"all?",[],(n=function(t){var e=n.$$s||this;return null==e.hash&&(e.hash=o),null==t&&(t=o),e.hash["$include?"](t)},n.$$s=r,n.$$arity=1,n)))},v.$$arity=1),t.def(z,"$add",y=function(n){var r=this,i=o;return i=[n,!0],u(r.hash,"[]=",t.to_a(i)),i[e(i["length"],1)],r},y.$$arity=1),t.alias(z,"<<","add"),t.def(z,"$classify",_=function(){var n,r,i=_.$$p,s=i||o,l=this,c=o;return i&&(_.$$p=null),i&&(_.$$p=null),s===o?l.$enum_for("classify"):(c=u(a(H,"Hash"),"new",[],(n=function(r,i){var a=n.$$s||this,s=o;return null==r&&(r=o),null==i&&(i=o),s=[i,a.$class().$new()],u(r,"[]=",t.to_a(s)),s[e(s["length"],1)]},n.$$s=l,n.$$arity=2,n)),u(l,"each",[],(r=function(e){r.$$s;return null==e&&(e=o),c["$[]"](t.yield1(s,e)).$add(e)},r.$$s=l,r.$$arity=1,r)),c)},_.$$arity=0),t.def(z,"$collect!",b=function(){var e,n=b.$$p,r=n||o,i=this,a=o;return n&&(b.$$p=null),n&&(b.$$p=null),r===o?i.$enum_for("collect!"):(a=i.$class().$new(),u(i,"each",[],(e=function(n){e.$$s;return null==n&&(n=o),a["$<<"](t.yield1(r,n))},e.$$s=i,e.$$arity=1,e)),i.$replace(a))},b.$$arity=0),t.alias(z,"map!","collect!"),t.def(z,"$delete",w=function(t){var e=this;return e.hash.$delete(t),e},w.$$arity=1),t.def(z,"$delete?",x=function(t){var e=this;return c(e["$include?"](t))?(e.$delete(t),e):o},x.$$arity=1),t.def(z,"$delete_if",k=function(){var e,n,r=k.$$p,i=r||o,a=this;return r&&(k.$$p=null),i===o?a.$enum_for("delete_if"):(u(u(a,"select",[],(e=function(n){e.$$s;return null==n&&(n=o),t.yield1(i,n)},e.$$s=a,e.$$arity=1,e)),"each",[],(n=function(t){var e=n.$$s||this;return null==e.hash&&(e.hash=o),null==t&&(t=o),e.hash.$delete(t)},n.$$s=a,n.$$arity=1,n)),a)},k.$$arity=0),t.def(z,"$add?",S=function(t){var e=this;return c(e["$include?"](t))?o:e.$add(t)},S.$$arity=1),t.def(z,"$each",O=function(){var t=O.$$p,e=t||o,n=this;return t&&(O.$$p=null),t&&(O.$$p=null),e===o?n.$enum_for("each"):(u(n.hash,"each_key",[],e.$to_proc()),n)},O.$$arity=0),t.def(z,"$empty?",C=function(){var t=this;return t.hash["$empty?"]()},C.$$arity=0),t.def(z,"$eql?",A=function(t){var e,n=this;return n.hash["$eql?"](u(t,"instance_eval",[],(e=function(){var t=e.$$s||this;return null==t.hash&&(t.hash=o),t.hash},e.$$s=n,e.$$arity=0,e)))},A.$$arity=1),t.def(z,"$clear",E=function(){var t=this;return t.hash.$clear(),t},E.$$arity=0),t.def(z,"$include?",T=function(t){var e=this;return e.hash["$include?"](t)},T.$$arity=1),t.alias(z,"member?","include?"),t.def(z,"$merge",P=function(t){var e,n=this;return u(t,"each",[],(e=function(t){var n=e.$$s||this;return null==t&&(t=o),n.$add(t)},e.$$s=n,e.$$arity=1,e)),n},P.$$arity=1),t.def(z,"$replace",B=function(t){var e=this;return e.$clear(),e.$merge(t),e},B.$$arity=1),t.def(z,"$size",L=function(){var t=this;return t.hash.$size()},L.$$arity=0),t.alias(z,"length","size"),t.def(z,"$subtract",I=function(t){var e,n=this;return u(t,"each",[],(e=function(t){var n=e.$$s||this;return null==t&&(t=o),n.$delete(t)},e.$$s=n,e.$$arity=1,e)),n},I.$$arity=1),t.def(z,"$|",D=function(t){var e=this;return c(t["$respond_to?"]("each"))||e.$raise(a(H,"ArgumentError"),"value must be enumerable"),e.$dup().$merge(t)},D.$$arity=1),t.def(z,"$superset?",R=function(t){var e,r=this;return c(t["$is_a?"](a(H,"Set")))||r.$raise(a(H,"ArgumentError"),"value must be a set"),!c(n(r.$size(),t.$size()))&&u(t,"all?",[],(e=function(t){var n=e.$$s||this;return null==t&&(t=o),n["$include?"](t)},e.$$s=r,e.$$arity=1,e))},R.$$arity=1),t.alias(z,">=","superset?"),t.def(z,"$proper_superset?",j=function(t){var e,n=this;return c(t["$is_a?"](a(H,"Set")))||n.$raise(a(H,"ArgumentError"),"value must be a set"),!c(r(n.$size(),t.$size()))&&u(t,"all?",[],(e=function(t){var n=e.$$s||this;return null==t&&(t=o),n["$include?"](t)},e.$$s=n,e.$$arity=1,e))},j.$$arity=1),t.alias(z,">","proper_superset?"),t.def(z,"$subset?",M=function(t){var e,r=this;return c(t["$is_a?"](a(H,"Set")))||r.$raise(a(H,"ArgumentError"),"value must be a set"),!c(n(t.$size(),r.$size()))&&u(r,"all?",[],(e=function(n){e.$$s;return null==n&&(n=o),t["$include?"](n)},e.$$s=r,e.$$arity=1,e))},M.$$arity=1),t.alias(z,"<=","subset?"),t.def(z,"$proper_subset?",F=function(t){var e,n=this;return c(t["$is_a?"](a(H,"Set")))||n.$raise(a(H,"ArgumentError"),"value must be a set"),!c(r(t.$size(),n.$size()))&&u(n,"all?",[],(e=function(n){e.$$s;return null==n&&(n=o),t["$include?"](n)},e.$$s=n,e.$$arity=1,e))},F.$$arity=1),t.alias(z,"<","proper_subset?"),t.alias(z,"+","|"),t.alias(z,"union","|"),t.def(z,"$to_a",N=function(){var t=this;return t.hash.$keys()},N.$$arity=0)}(i[0],null,i),function(e,n){var r,i=d(e,"Enumerable"),s=[i].concat(n);t.def(i,"$to_set",r=function(e,n){var i,l,c,d=r.$$p,f=d||o,h=this;return d&&(r.$$p=null),d&&(r.$$p=null),i=t.slice.call(arguments,0,arguments.length),i.length>0&&(l=i[0],i.splice(0,1)),null==l&&(l=a(s,"Set")),c=i,u(l,"new",[h].concat(t.to_a(c)),f.$to_proc())},r.$$arity=-1)}(i[0],i)},Opal.modules["asciidoctor/js/opal_ext/kernel"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.module),o=t.send;return t.add_stubs(["$new"]),function(e,a){var s,l,c=i(e,"Kernel"),u=[c].concat(a);t.def(c,"$open",s=function(e,i){var a,l,c=s.$$p,d=c||n,f=n;return c&&(s.$$p=null),a=t.slice.call(arguments,1,arguments.length),l=a,f=o(r(u,"File"),"new",[e].concat(t.to_a(l))),d!==n?t.yield1(d,f):f},s.$$arity=-2),t.def(c,"$__dir__",l=function(){return""},l.$$arity=0)}(e[0],e)},Opal.modules["asciidoctor/js/opal_ext/file"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.klass),o=t.truthy,a=t.gvars;return t.add_stubs(["$attr_reader","$delete","$gsub","$read","$size","$to_enum","$chomp","$each_line","$readlines","$split"]),function(e,s,l){var c,u,d,f,h=i(e,s,"File"),p=[h].concat(l);h.$$prototype.eof=h.$$prototype.path=n,h.$attr_reader("eof"),h.$attr_reader("lineno"),h.$attr_reader("path"),t.def(h,"$initialize",c=function(t,e){var r=this,i=n;return null==e&&(e="r"),r.path=t,r.contents=n,r.eof=!1,r.lineno=0,e=e.$delete("b"),i=/:(.*)/,e=e.$gsub(i,""),r.flags=e},c.$$arity=-2),t.def(h,"$read",u=function(){var t=this,e=n;return o(t.eof)?"":(e=r(p,"File").$read(t.path),t.eof=!0,t.lineno=e.$size(),e)},u.$$arity=0),t.def(h,"$each_line",d=function(e){var i=d.$$p,s=i||n,l=this,c=n;if(null==a["/"]&&(a["/"]=n),i&&(d.$$p=null),i&&(d.$$p=null),null==e&&(e=a["/"]),o(l.eof))return function(){return s!==n?l:[].$to_enum()}();if(s!==n){c=r(p,"File").$read(l.path),l.eof=!1,l.lineno=0;for(var u=c.$chomp(),f=c.length!=u.length,h=u.split(e),$=0,m=h.length;$e:t["$>"](e)}t.top;var n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative),o=(t.breaker,t.slice,t.klass),a=t.truthy;return t.add_stubs(["$coerce_to!","$>"]),function(n,s,l){var c,u=o(n,s,"Number"),d=[u].concat(l);return t.def(u,"$round",c=function(t){var n=this;return t=i(d,"Opal")["$coerce_to!"](t,i(d,"Integer"),"to_int"),a(e(t,0))?Number(n.toFixed(t)):Math.round(n)},c.$$arity=-1),r&&"round"}(n[0],i(n,"Numeric"),n)},Opal.modules["asciidoctor/js/opal_ext"]=function(t){var e=t.top;t.nil,t.const_get_qualified,t.const_get_relative,t.breaker,t.slice;t.add_stubs(["$require"]),e.$require("asciidoctor/js/opal_ext/kernel"),e.$require("asciidoctor/js/opal_ext/file"),e.$require("asciidoctor/js/opal_ext/match_data"),e.$require("asciidoctor/js/opal_ext/string"),e.$require("asciidoctor/js/opal_ext/uri"),e.$require("asciidoctor/js/opal_ext/base64"),e.$require("asciidoctor/js/opal_ext/number"),t.config.unsupported_features_severity="ignore",e.$require("asciidoctor/js/opal_ext/browser")},Opal.modules["asciidoctor/js/rx"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}t.top;var n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative),o=(t.breaker,t.slice,t.module),a=t.send,s=t.gvars,l=t.truthy;return t.add_stubs(["$gsub","$+","$unpack_hex_range"]),function(n,c){var u,d=o(n,"Asciidoctor"),f=[d].concat(c);t.const_set(f[0],"HEX_RANGE_RX",/([A-F0-9]{4})(?:-([A-F0-9]{4}))?/),t.defs(d,"$unpack_hex_range",u=function(t){var e,n=this;return a(t,"gsub",[i(f,"HEX_RANGE_RX")],(e=function(){var t,n;e.$$s;return"\\u"+((t=s["~"])===r?r:t["$[]"](1))+(l(t=(n=s["~"])===r?r:n["$[]"](2))?"-\\u"+((n=s["~"])===r?r:n["$[]"](2)):t)},e.$$s=n,e.$$arity=0,e))},u.$$arity=1),t.const_set(f[0],"P_L",e("A-Za-z",d.$unpack_hex_range("00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D037F03860388-038A038C038E-03A103A3-03F503F7-0481048A-052F0531-055605590561-058705D0-05EA05F0-05F20620-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280840-085808A0-08B20904-0939093D09500958-09610971-09800985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10CF10CF20D05-0D0C0D0E-0D100D12-0D3A0D3D0D4E0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC-0EDF0F000F40-0F470F49-0F6C0F88-0F8C1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510C710CD10D0-10FA10FC-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA16F1-16F81700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191E1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1BBA-1BE51C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11CF51CF61D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209C21022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2CF22CF32D00-2D252D272D2D2D30-2D672D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31BA31F0-31FF3400-4DB54E00-9FCCA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A66EA67F-A69DA6A0-A6E5A717-A71FA722-A788A78B-A78EA790-A7ADA7B0A7B1A7F7-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFA9E0-A9E4A9E6-A9EFA9FA-A9FEAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA7E-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDAAE0-AAEAAAF2-AAF4AB01-AB06AB09-AB0EAB11-AB16AB20-AB26AB28-AB2EAB30-AB5AAB5C-AB5FAB64AB65ABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC"))),t.const_set(f[0],"P_Nl",d.$unpack_hex_range("16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF")),t.const_set(f[0],"P_Nd",e("0-9",d.$unpack_hex_range("0660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0DE6-0DEF0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19D91A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9A9F0-A9F9AA50-AA59ABF0-ABF9FF10-FF19"))),t.const_set(f[0],"P_Pc",d.$unpack_hex_range("005F203F20402054FE33FE34FE4D-FE4FFF3F")),t.const_set(f[0],"CC_ALPHA",""+i(f,"P_L")+i(f,"P_Nl")),t.const_set(f[0],"CG_ALPHA","["+i(f,"CC_ALPHA")+"]"),t.const_set(f[0],"CC_ALNUM",""+i(f,"CC_ALPHA")+i(f,"P_Nd")),t.const_set(f[0],"CG_ALNUM","["+i(f,"CC_ALNUM")+"]"),t.const_set(f[0],"CC_WORD",""+i(f,"CC_ALNUM")+i(f,"P_Pc")),t.const_set(f[0],"CG_WORD","["+i(f,"CC_WORD")+"]"),t.const_set(f[0],"CG_BLANK","[ \\t]"),t.const_set(f[0],"CC_EOL","(?=\\n|$)"),t.const_set(f[0],"CG_GRAPH","[^\\s\\x00-\\x1F\\x7F]"),t.const_set(f[0],"CC_ALL","[\\s\\S]"),t.const_set(f[0],"CC_ANY","[^\\n]")}(n[0],n)},Opal.modules["strscan"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}t.top;var n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative,t.breaker,t.slice,t.klass),o=t.send;return t.add_stubs(["$attr_reader","$anchor","$scan_until","$length","$size","$rest","$pos=","$-","$private"]),function(n,a,s){var l,c,u,d,f,h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L=i(n,a,"StringScanner");[L].concat(s);return L.$$prototype.pos=L.$$prototype.string=L.$$prototype.working=L.$$prototype.matched=L.$$prototype.prev_pos=L.$$prototype.match=r,L.$attr_reader("pos"),L.$attr_reader("matched"),t.def(L,"$initialize",l=function(t){var e=this;return e.string=t,e.pos=0,e.matched=r,e.working=t,e.match=[]},l.$$arity=1),L.$attr_reader("string"),t.def(L,"$beginning_of_line?",c=function(){var t=this;return 0===t.pos||"\n"===t.string.charAt(t.pos-1)},c.$$arity=0),t.alias(L,"bol?","beginning_of_line?"),t.def(L,"$scan",u=function(t){var e=this;t=e.$anchor(t);var n=t.exec(e.working);return null==n?e.matched=r:"object"===typeof n?(e.prev_pos=e.pos,e.pos+=n[0].length,e.working=e.working.substring(n[0].length),e.matched=n[0],e.match=n,n[0]):"string"===typeof n?(e.pos+=n.length,e.working=e.working.substring(n.length),n):r},u.$$arity=1),t.def(L,"$scan_until",d=function(t){var e=this;t=e.$anchor(t);var n,i=e.pos,o=e.working;while(1){if(n=t.exec(o),i+=1,o=o.substr(1),null!=n)return e.matched=e.string.substr(e.pos,i-e.pos-1+n[0].length),e.prev_pos=i-1,e.pos=i,e.working=o.substr(n[0].length),e.matched;if(0===o.length)return e.matched=r}},d.$$arity=1),t.def(L,"$[]",f=function(t){var e=this,n=e.match;return t<0&&(t+=n.length),t<0||t>=n.length||null==n[t]?r:n[t]},f.$$arity=1),t.def(L,"$check",h=function(t){var e=this;t=e.$anchor(t);var n=t.exec(e.working);return e.matched=null==n?r:n[0]},h.$$arity=1),t.def(L,"$check_until",p=function(t){var e=this,n=e.prev_pos,i=e.pos,o=e.$scan_until(t);return o!==r&&(e.matched=o.substr(-1),e.working=e.string.substr(i)),e.prev_pos=n,e.pos=i,o},p.$$arity=1),t.def(L,"$peek",$=function(t){var e=this;return e.working.substring(0,t)},$.$$arity=1),t.def(L,"$eos?",m=function(){var t=this;return 0===t.working.length},m.$$arity=0),t.def(L,"$exist?",g=function(t){var e=this,n=t.exec(e.working);return null==n?r:0==n.index?0:n.index+1},g.$$arity=1),t.def(L,"$skip",v=function(t){var e=this;t=e.$anchor(t);var n=t.exec(e.working);if(null==n)return e.matched=r;var i=n[0],o=i.length;return e.matched=i,e.prev_pos=e.pos,e.pos+=o,e.working=e.working.substring(o),o},v.$$arity=1),t.def(L,"$skip_until",y=function(t){var e=this,n=e.$scan_until(t);return n===r?r:(e.matched=n.substr(-1),n.length)},y.$$arity=1),t.def(L,"$get_byte",_=function(){var t=this,e=r;return t.pose:t["$>"](e)}var r,i=t.top,o=[],a=t.nil,s=(t.const_get_qualified,t.const_get_relative),l=(t.breaker,t.slice,t.send),c=t.truthy,u=t.hash2;return t.add_stubs(["$==","$arity","$instance_method","$send","$new","$<","$length","$>","$inject","$merge","$[]"]),s(o,"Hash").$instance_method("merge").$arity()["$=="](1)?s(o,"Hash").$send("prepend",l(s(o,"Module"),"new",[],(r=function(){var i,o=r.$$s||this;return t.def(o,"$merge",i=function(r){var o,s,d,f=i.$$p,h=this,p=a;return f&&(i.$$p=null),o=t.slice.call(arguments,0,arguments.length),s=o,c(e(p=s.$length(),1))?l(h,t.find_super_dispatcher(h,"merge",i,!1),[u([],{})],null):c(n(p,1))?l(s,"inject",[h],(d=function(t,e){d.$$s;return null==t&&(t=a),null==e&&(e=a),t.$merge(e)},d.$$s=h,d.$$arity=2,d)):l(h,t.find_super_dispatcher(h,"merge",i,!1),[s["$[]"](0)],null)},i.$$arity=-1),a&&"merge"},r.$$s=i,r.$$arity=0,r))):a},Opal.modules["asciidoctor/core_ext/match_data/names"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.truthy),o=t.klass;return t.add_stubs(["$method_defined?"]),i(r(e,"MatchData")["$method_defined?"]("names"))?n:function(e,r,i){var a,s=o(e,r,"MatchData");[s].concat(i);return t.def(s,"$names",a=function(){return[]},a.$$arity=0),n&&"names"}(e[0],null,e)},Opal.modules["asciidoctor/core_ext"]=function(t){var e=t.top,n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative);t.breaker,t.slice;return t.add_stubs(["$=="]),e.$require("asciidoctor/core_ext.rb/../core_ext/nil_or_empty"),e.$require("asciidoctor/core_ext.rb/../core_ext/hash/merge"),i(n,"RUBY_ENGINE")["$=="]("opal")?e.$require("asciidoctor/core_ext.rb/../core_ext/match_data/names"):r},Opal.modules["asciidoctor/helpers"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}t.top;var i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.module),c=t.truthy,u=t.gvars,d=t.send,f=t.hash2;return t.add_stubs(["$module_function","$require","$include?","$include","$==","$===","$path","$message","$raise","$warn","$logger","$chomp","$empty?","$slice","$unpack","$[]","$byteslice","$bytesize","$[]=","$-","$map","$rstrip","$encode","$encoding","$nil_or_empty?","$!=","$tap","$each_line","$<<","$match?","$gsub","$rindex","$index","$basename","$extname","$!","$length","$directory?","$dirname","$mkdir_p","$mkdir","$private_constant","$join","$divmod","$*","$+","$to_i","$to_s","$chr","$ord","$class_for_name","$const_get"]),function(i,h){var p=l(i,"Asciidoctor"),$=[p].concat(h);(function(i,h){var p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T=l(i,"Helpers"),P=[T].concat(h);T.$module_function(),t.def(T,"$require_library",p=function(e,n,r){var i=this,l=o,d=o;null==u["!"]&&(u["!"]=o),null==n&&(n=!0),null==r&&(r="abort");try{return i.$require(e)}catch(f){if(!t.rescue(f,[a("::","LoadError")]))throw f;try{return c(i["$include?"](s(P,"Logging")))||i.$include(s(P,"Logging")),c(n)?(n["$=="](!0)&&(n=e),l=r,"abort"["$==="](l)?(d=function(){return u["!"].$path()["$=="](n)?"":" (reason: "+function(){return c(u["!"].$path())?"cannot load '"+u["!"].$path()+"'":u["!"].$message()}()+")"}(),i.$raise(a("::","LoadError"),"asciidoctor: FAILED: required gem '"+n+"' is not available"+d+". Processing aborted.")):"warn"["$==="](l)&&(d=function(){return u["!"].$path()["$=="](n)?"":" (reason: "+function(){return c(u["!"].$path())?"cannot load '"+u["!"].$path()+"'":u["!"].$message()}()+")"}(),i.$logger().$warn("optional gem '"+n+"' is not available"+d+". Functionality disabled."))):(l=r,"abort"["$==="](l)?i.$raise(a("::","LoadError"),"asciidoctor: FAILED: "+u["!"].$message().$chomp(".")+". Processing aborted."):"warn"["$==="](l)&&i.$logger().$warn(u["!"].$message().$chomp(".")+". Functionality disabled.")),o}finally{t.pop_exception()}}},p.$$arity=-2),t.def(T,"$prepare_source_array",$=function(n){var r,i,l,u,f=this,h=o,p=o,$=o,m=o;return c(n["$empty?"]())?[]:(h=(p=($=n["$[]"](0)).$unpack("C3")).$slice(0,2))["$=="](s(P,"BOM_BYTES_UTF_16LE"))?(m=[0,$.$byteslice(2,$.$bytesize())],d(n,"[]=",t.to_a(m)),m[e(m["length"],1)],d(n,"map",[],(r=function(t){r.$$s;return null==t&&(t=o),t.$encode(s(P,"UTF_8"),a(a("::","Encoding"),"UTF_16LE")).$rstrip()},r.$$s=f,r.$$arity=1,r))):h["$=="](s(P,"BOM_BYTES_UTF_16BE"))?(m=[0,$.$byteslice(2,$.$bytesize())],d(n,"[]=",t.to_a(m)),m[e(m["length"],1)],d(n,"map",[],(i=function(t){i.$$s;return null==t&&(t=o),t.$encode(s(P,"UTF_8"),a(a("::","Encoding"),"UTF_16BE")).$rstrip()},i.$$s=f,i.$$arity=1,i))):(p["$=="](s(P,"BOM_BYTES_UTF_8"))&&(m=[0,$.$byteslice(3,$.$bytesize())],d(n,"[]=",t.to_a(m)),m[e(m["length"],1)]),$.$encoding()["$=="](s(P,"UTF_8"))?d(n,"map",[],(l=function(t){l.$$s;return null==t&&(t=o),t.$rstrip()},l.$$s=f,l.$$arity=1,l)):d(n,"map",[],(u=function(t){u.$$s;return null==t&&(t=o),t.$encode(s(P,"UTF_8")).$rstrip()},u.$$s=f,u.$$arity=1,u)))},$.$$arity=1),t.def(T,"$prepare_source_string",m=function(t){var e,n=this,r=o,i=o;return c(t["$nil_or_empty?"]())?[]:((r=(i=t.$unpack("C3")).$slice(0,2))["$=="](s(P,"BOM_BYTES_UTF_16LE"))?t=t.$byteslice(2,t.$bytesize()).$encode(s(P,"UTF_8"),a(a("::","Encoding"),"UTF_16LE")):r["$=="](s(P,"BOM_BYTES_UTF_16BE"))?t=t.$byteslice(2,t.$bytesize()).$encode(s(P,"UTF_8"),a(a("::","Encoding"),"UTF_16BE")):i["$=="](s(P,"BOM_BYTES_UTF_8"))?(t=t.$byteslice(3,t.$bytesize()),t.$encoding()["$=="](s(P,"UTF_8"))||(t=t.$encode(s(P,"UTF_8")))):c(t.$encoding()["$!="](s(P,"UTF_8")))&&(t=t.$encode(s(P,"UTF_8"))),d([],"tap",[],(e=function(n){var r,i=e.$$s||this;return null==n&&(n=o),d(t,"each_line",[],(r=function(t){r.$$s;return null==t&&(t=o),n["$<<"](t.$rstrip())},r.$$s=i,r.$$arity=1,r))},e.$$s=n,e.$$arity=1,e)))},m.$$arity=1),t.def(T,"$uriish?",g=function(t){var e;return c(e=t["$include?"](":"))?s(P,"UriSniffRx")["$match?"](t):e},g.$$arity=1),s(P,"RUBY_ENGINE")["$=="]("opal")&&t.def(T,"$encode_uri_component",v=function(t){return encodeURIComponent(t).replace(/%20|[!'()*]/g,(function(t){return"%20"===t?"+":"%"+t.charCodeAt(0).toString(16)}))},v.$$arity=1),t.def(T,"$encode_spaces_in_uri",y=function(t){return c(t["$include?"](" "))?t.$gsub(" ","%20"):t},y.$$arity=1),t.def(T,"$rootname",_=function(t){var e=o;return c(e=t.$rindex("."))?c(t.$index("/",e))?t:t.$slice(0,e):t},_.$$arity=1),t.def(T,"$basename",b=function(t,e){var n=this;return null==e&&(e=o),c(e)?a("::","File").$basename(t,function(){return e["$=="](!0)?n.$extname(t):e}()):a("::","File").$basename(t)},b.$$arity=-2),t.def(T,"$extname?",w=function(t){var e,n=o;return c(e=n=t.$rindex("."))?t.$index("/",n)["$!"]():e},w.$$arity=1),c(a(a("::","File"),"ALT_SEPARATOR"))?t.def(T,"$extname",x=function(t,e){var n,r=o;return null==e&&(e=""),c(r=t.$rindex("."))?c(c(n=t.$index("/",r))?n:t.$index(a(a("::","File"),"ALT_SEPARATOR"),r))?e:t.$slice(r,t.$length()):e},x.$$arity=-2):t.def(T,"$extname",k=function(t,e){var n=o;return null==e&&(e=""),c(n=t.$rindex("."))?c(t.$index("/",n))?e:t.$slice(n,t.$length()):e},k.$$arity=-2),t.def(T,"$mkdir_p",S=function(e){var n=this,r=o;if(c(a("::","File")["$directory?"](e)))return o;(r=a("::","File").$dirname(e))["$=="](".")||n.$mkdir_p(r);try{return a("::","Dir").$mkdir(e)}catch(i){if(!t.rescue(i,[a("::","SystemCallError")]))throw i;try{return c(a("::","File")["$directory?"](e))?o:n.$raise()}finally{t.pop_exception()}}},S.$$arity=1),t.const_set(P[0],"ROMAN_NUMERALS",f(["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"],{M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1})),T.$private_constant("ROMAN_NUMERALS"),t.def(T,"$int_to_roman",O=function(e){var r,i=this;return d(s(P,"ROMAN_NUMERALS"),"map",[],(r=function(i,a){r.$$s;var s,l,c=o;return null==i&&(i=o),null==a&&(a=o),l=e.$divmod(a),s=t.to_ary(l),c=null==s[0]?o:s[0],e=null==s[1]?o:s[1],n(i,c)},r.$$s=i,r.$$arity=2,r)).$join()},O.$$arity=1),t.def(T,"$nextval",C=function(t){var e=o;return c(a("::","Integer")["$==="](t))?r(t,1):(e=t.$to_i(),c(e.$to_s()["$!="](t.$to_s()))?r(t["$[]"](0).$ord(),1).$chr():r(e,1))},C.$$arity=1),t.def(T,"$resolve_class",A=function(t){var e=this;return c(a("::","Class")["$==="](t))?t:c(a("::","String")["$==="](t))?e.$class_for_name(t):o},A.$$arity=1),t.def(T,"$class_for_name",E=function(e){var n=this,r=o;try{return c(a("::","Class")["$==="](r=a("::","Object").$const_get(e,!1)))||n.$raise(),r}catch(i){if(!t.rescue(i,[s(P,"StandardError")]))throw i;try{return n.$raise(a("::","NameError"),"Could not resolve class for name: "+e)}finally{t.pop_exception()}}},E.$$arity=1)})($[0],$)}(i[0],i)},Opal.modules["logger"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t<=e:t["$<="](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?te:t["$>"](e)}var r=t.top,i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.module),c=t.klass,u=t.send,d=t.truthy,f=t.hash2,h=t.gvars;return t.add_stubs(["$require","$attr_reader","$progname=","$-","$new","$formatter=","$level=","$>","$[]","$===","$inspect","$tap","$each","$constants","$const_get","$[]=","$<<","$clear","$empty?","$max","$map","$attr_accessor","$memoize_logger","$private","$private_class_method","$extend","$logger","$merge"]),r.$require("logger"),function(r,i){var p=l(r,"Asciidoctor"),$=[p].concat(i);(function(r,i,h){var p,$,m=c(r,i,"Logger"),g=[m].concat(h);m.$$prototype.max_severity=o,m.$attr_reader("max_severity"),t.def(m,"$initialize",p=function(n){var r,i=p.$$p,a=this,l=o,c=o,d=o,f=o;for(i&&(p.$$p=null),d=0,f=arguments.length,c=new Array(f);d]+)>)?$")),t.const_set($[0],"AuthorDelimiterRx",/;(?: |$)/),t.const_set($[0],"RevisionInfoLineRx",new RegExp("^(?:[^\\d{]*("+o($,"CC_ANY")+"*?),)? *(?!:)("+o($,"CC_ANY")+"*?)(?: *(?!^),?: *("+o($,"CC_ANY")+"*))?$")),t.const_set($[0],"ManpageTitleVolnumRx",new RegExp("^("+o($,"CC_ANY")+"+?) *\\( *("+o($,"CC_ANY")+"+?) *\\)$")),t.const_set($[0],"ManpageNamePurposeRx",new RegExp("^("+o($,"CC_ANY")+"+?) +- +("+o($,"CC_ANY")+"+)$")),t.const_set($[0],"ConditionalDirectiveRx",new RegExp("^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[("+o($,"CC_ANY")+"+)?\\]$")),t.const_set($[0],"EvalExpressionRx",new RegExp("^("+o($,"CC_ANY")+"+?) *([=!><]=|[><]) *("+o($,"CC_ANY")+"+)$")),t.const_set($[0],"IncludeDirectiveRx",new RegExp("^(\\\\)?include::([^\\[][^\\[]*)\\[("+o($,"CC_ANY")+"+)?\\]$")),t.const_set($[0],"TagDirectiveRx",/\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m),t.const_set($[0],"AttributeEntryRx",new RegExp("^:(!?"+o($,"CG_WORD")+"[^:]*):(?:[ \\t]+("+o($,"CC_ANY")+"*))?$")),t.const_set($[0],"InvalidAttributeNameCharsRx",new RegExp("[^"+o($,"CC_WORD")+"-]")),o($,"RUBY_ENGINE")["$=="]("opal")&&t.const_set($[0],"AttributeEntryPassMacroRx",new RegExp("^pass:([a-z]+(?:,[a-z-]+)*)?\\[("+o($,"CC_ALL")+"*)\\]$")),t.const_set($[0],"AttributeReferenceRx",new RegExp("(\\\\)?\\{("+o($,"CG_WORD")+"["+o($,"CC_WORD")+"-]*|(set|counter2?):"+o($,"CC_ANY")+"+?)(\\\\)?\\}")),t.const_set($[0],"BlockAnchorRx",new RegExp("^\\[\\[(?:|(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+))?)\\]\\]$")),t.const_set($[0],"BlockAttributeListRx",new RegExp("^\\[(|["+o($,"CC_WORD")+".#%{,\"']"+o($,"CC_ANY")+"*)\\]$")),t.const_set($[0],"BlockAttributeLineRx",new RegExp("^\\[(?:|["+o($,"CC_WORD")+".#%{,\"']"+o($,"CC_ANY")+"*|\\[(?:|["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*(?:, *"+o($,"CC_ANY")+"+)?)\\])\\]$")),t.const_set($[0],"BlockTitleRx",new RegExp("^\\.(\\.?[^ \\t.]"+o($,"CC_ANY")+"*)$")),t.const_set($[0],"AdmonitionParagraphRx",new RegExp("^("+o($,"ADMONITION_STYLES").$to_a().$join("|")+"):[ \\t]+")),t.const_set($[0],"LiteralParagraphRx",new RegExp("^([ \\t]+"+o($,"CC_ANY")+"*)$")),t.const_set($[0],"AtxSectionTitleRx",new RegExp("^(=={0,5})[ \\t]+("+o($,"CC_ANY")+"+?)(?:[ \\t]+\\1)?$")),t.const_set($[0],"ExtAtxSectionTitleRx",new RegExp("^(=={0,5}|#\\#{0,5})[ \\t]+("+o($,"CC_ANY")+"+?)(?:[ \\t]+\\1)?$")),t.const_set($[0],"SetextSectionTitleRx",new RegExp("^((?!\\.)"+o($,"CC_ANY")+"*?"+o($,"CG_ALNUM")+o($,"CC_ANY")+"*)$")),t.const_set($[0],"InlineSectionAnchorRx",new RegExp(" (\\\\)?\\[\\[(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+))?\\]\\]$")),t.const_set($[0],"InvalidSectionIdCharsRx",new RegExp("<[^>]+>|&(?:[a-z][a-z]+\\d{0,2}|#\\d\\d\\d{0,4}|#x[\\da-f][\\da-f][\\da-f]{0,3});|[^ "+o($,"CC_WORD")+"\\-.]+?")),t.const_set($[0],"SectionLevelStyleRx",/^sect\d$/),t.const_set($[0],"AnyListRx",new RegExp("^(?:[ \\t]*(?:-|\\*\\**|\\.\\.*|\\u2022|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]|(?!//[^/])[ \\t]*[^ \\t]"+o($,"CC_ANY")+"*?(?::::{0,2}|;;)(?:$|[ \\t])|[ \\t])")),t.const_set($[0],"UnorderedListRx",new RegExp("^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+("+o($,"CC_ANY")+"*)$")),t.const_set($[0],"OrderedListRx",new RegExp("^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+("+o($,"CC_ANY")+"*)$")),t.const_set($[0],"OrderedListMarkerRxMap",s(["arabic","loweralpha","lowerroman","upperalpha","upperroman"],{arabic:/\d+\./,loweralpha:/[a-z]\./,lowerroman:/[ivx]+\)/,upperalpha:/[A-Z]\./,upperroman:/[IVX]+\)/})),t.const_set($[0],"DescriptionListRx",new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+o($,"CC_ANY")+"*?)(:::{0,2}|;;)(?:$|[ \\t]+("+o($,"CC_ANY")+"*)$)")),t.const_set($[0],"DescriptionListSiblingRx",s(["::",":::","::::",";;"],{"::":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+o($,"CC_ANY")+"*?[^:]|[^ \\t:])(::)(?:$|[ \\t]+("+o($,"CC_ANY")+"*)$)"),":::":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+o($,"CC_ANY")+"*?[^:]|[^ \\t:])(:::)(?:$|[ \\t]+("+o($,"CC_ANY")+"*)$)"),"::::":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+o($,"CC_ANY")+"*?[^:]|[^ \\t:])(::::)(?:$|[ \\t]+("+o($,"CC_ANY")+"*)$)"),";;":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+o($,"CC_ANY")+"*?)(;;)(?:$|[ \\t]+("+o($,"CC_ANY")+"*)$)")})),t.const_set($[0],"CalloutListRx",new RegExp("^<(\\d+|\\.)>[ \\t]+("+o($,"CC_ANY")+"*)$")),t.const_set($[0],"CalloutExtractRx",/((?:\/\/|#|--|;;) ?)?(\\)?(?=(?: ?\\?)*$)/),t.const_set($[0],"CalloutExtractRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)"),t.const_set($[0],"CalloutExtractRxMap",l(i("::","Hash"),"new",[],(f=function(n,a){f.$$s;var s=r;return null==n&&(n=r),null==a&&(a=r),s=[a,new RegExp("("+function(){return c(a["$empty?"]())?"":i("::","Regexp").$escape(a)+" ?"}()+")?"+o($,"CalloutExtractRxt"))],l(n,"[]=",t.to_a(s)),s[e(s["length"],1)]},f.$$s=p,f.$$arity=2,f))),t.const_set($[0],"CalloutScanRx",new RegExp("\\\\?(?=(?: ?\\\\?)*"+o($,"CC_EOL")+")")),t.const_set($[0],"CalloutSourceRx",new RegExp("((?://|#|--|;;) ?)?(\\\\)?<!?(|--)(\\d+|\\.)\\3>(?=(?: ?\\\\?<!?\\3(?:\\d+|\\.)\\3>)*"+o($,"CC_EOL")+")")),t.const_set($[0],"CalloutSourceRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*"+o($,"CC_EOL")+")"),t.const_set($[0],"CalloutSourceRxMap",l(i("::","Hash"),"new",[],(h=function(n,a){h.$$s;var s=r;return null==n&&(n=r),null==a&&(a=r),s=[a,new RegExp("("+function(){return c(a["$empty?"]())?"":i("::","Regexp").$escape(a)+" ?"}()+")?"+o($,"CalloutSourceRxt"))],l(n,"[]=",t.to_a(s)),s[e(s["length"],1)]},h.$$s=p,h.$$arity=2,h))),t.const_set($[0],"ListRxMap",s(["ulist","olist","dlist","colist"],{ulist:o($,"UnorderedListRx"),olist:o($,"OrderedListRx"),dlist:o($,"DescriptionListRx"),colist:o($,"CalloutListRx")})),t.const_set($[0],"ColumnSpecRx",/^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/),t.const_set($[0],"CellSpecStartRx",/^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),t.const_set($[0],"CellSpecEndRx",/[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),t.const_set($[0],"CustomBlockMacroRx",new RegExp("^("+o($,"CG_WORD")+"["+o($,"CC_WORD")+"-]*)::(|\\S|\\S"+o($,"CC_ANY")+"*?\\S)\\[("+o($,"CC_ANY")+"+)?\\]$")),t.const_set($[0],"BlockMediaMacroRx",new RegExp("^(image|video|audio)::(\\S|\\S"+o($,"CC_ANY")+"*?\\S)\\[("+o($,"CC_ANY")+"+)?\\]$")),t.const_set($[0],"BlockTocMacroRx",new RegExp("^toc::\\[("+o($,"CC_ANY")+"+)?\\]$")),t.const_set($[0],"InlineAnchorRx",new RegExp("(\\\\)?(?:\\[\\[(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+?))?\\]\\]|anchor:(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)\\[(?:\\]|("+o($,"CC_ANY")+"*?[^\\\\])\\]))")),t.const_set($[0],"InlineAnchorScanRx",new RegExp("(?:^|[^\\\\\\[])\\[\\[(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+?))?\\]\\]|(?:^|[^\\\\])anchor:(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)\\[(?:\\]|("+o($,"CC_ANY")+"*?[^\\\\])\\])")),t.const_set($[0],"LeadingInlineAnchorRx",new RegExp("^\\[\\[(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+?))?\\]\\]")),t.const_set($[0],"InlineBiblioAnchorRx",new RegExp("^\\[\\[\\[(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+?))?\\]\\]\\]")),t.const_set($[0],"InlineEmailRx",new RegExp("([\\\\>:/])?"+o($,"CG_WORD")+"(?:&|["+o($,"CC_WORD")+"\\-.%+])*@"+o($,"CG_ALNUM")+"["+o($,"CC_ALNUM")+"_\\-.]*\\.[a-zA-Z]{2,5}\\b")),t.const_set($[0],"InlineFootnoteMacroRx",new RegExp("\\\\?footnote(?:(ref):|:(["+o($,"CC_WORD")+"-]+)?)\\[(?:|("+o($,"CC_ALL")+"*?[^\\\\]))\\]","m")),t.const_set($[0],"InlineImageMacroRx",new RegExp("\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|"+o($,"CC_ALL")+"*?[^\\\\])\\]","m")),t.const_set($[0],"InlineIndextermMacroRx",new RegExp("\\\\?(?:(indexterm2?):\\[("+o($,"CC_ALL")+"*?[^\\\\])\\]|\\(\\(("+o($,"CC_ALL")+"+?)\\)\\)(?!\\)))","m")),t.const_set($[0],"InlineKbdBtnMacroRx",new RegExp("(\\\\)?(kbd|btn):\\[("+o($,"CC_ALL")+"*?[^\\\\])\\]","m")),t.const_set($[0],"InlineLinkRx",new RegExp("(^|link:|"+o($,"CG_BLANK")+"|<|[>\\(\\)\\[\\];])(\\\\?(?:https?|file|ftp|irc)://[^\\s\\[\\]<]*([^\\s.,\\[\\]<]))(?:\\[(|"+o($,"CC_ALL")+"*?[^\\\\])\\])?","m")),t.const_set($[0],"InlineLinkMacroRx",new RegExp("\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|"+o($,"CC_ALL")+"*?[^\\\\])\\]","m")),t.const_set($[0],"MacroNameRx",new RegExp("^"+o($,"CG_WORD")+"["+o($,"CC_WORD")+"-]*$")),t.const_set($[0],"InlineStemMacroRx",new RegExp("\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[("+o($,"CC_ALL")+"*?[^\\\\])\\]","m")),t.const_set($[0],"InlineMenuMacroRx",new RegExp("\\\\?menu:("+o($,"CG_WORD")+"|["+o($,"CC_WORD")+"&][^\\n\\[]*[^\\s\\[])\\[ *(?:|("+o($,"CC_ALL")+"*?[^\\\\]))?\\]","m")),t.const_set($[0],"InlineMenuRx",new RegExp('\\\\?"(['+o($,"CC_WORD")+'&][^"]*?[ \\n]+>[ \\n]+[^"]*)"')),t.const_set($[0],"InlinePassRx",u(!1,["+","`",new RegExp("(^|[^"+o($,"CC_WORD")+";:])(?:\\[([^\\]]+)\\])?(\\\\?(\\+|`)(\\S|\\S"+o($,"CC_ALL")+"*?\\S)\\4)(?!"+o($,"CG_WORD")+")","m")],!0,["`",r,new RegExp("(^|[^`"+o($,"CC_WORD")+"])(?:\\[([^\\]]+)\\])?(\\\\?(`)([^`\\s]|[^`\\s]"+o($,"CC_ALL")+"*?\\S)\\4)(?![`"+o($,"CC_WORD")+"])","m")])),t.const_set($[0],"SinglePlusInlinePassRx",new RegExp("^(\\\\)?\\+(\\S|\\S"+o($,"CC_ALL")+"*?\\S)\\+$","m")),t.const_set($[0],"InlinePassMacroRx",new RegExp("(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)("+o($,"CC_ALL")+"*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|"+o($,"CC_ALL")+"*?[^\\\\])\\])","m")),t.const_set($[0],"InlineXrefMacroRx",new RegExp("\\\\?(?:<<(["+o($,"CC_WORD")+"#/.:{]"+o($,"CC_ALL")+"*?)>>|xref:(["+o($,"CC_WORD")+"#/.:{]"+o($,"CC_ALL")+"*?)\\[(?:\\]|("+o($,"CC_ALL")+"*?[^\\\\])\\]))","m")),o($,"RUBY_ENGINE")["$=="]("opal")&&t.const_set($[0],"HardLineBreakRx",new RegExp("^("+o($,"CC_ANY")+"*) \\+$","m")),t.const_set($[0],"MarkdownThematicBreakRx",/^ {0,3}([-*_])( *)\1\2\1$/),t.const_set($[0],"ExtLayoutBreakRx",/^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/),t.const_set($[0],"BlankLineRx",/\n{2,}/),t.const_set($[0],"EscapedSpaceRx",/\\([ \t\n])/),t.const_set($[0],"ReplaceableTextRx",/[&']|--|\.\.\.|\([CRT]M?\)/),t.const_set($[0],"SpaceDelimiterRx",/([^\\])[ \t\n]+/),t.const_set($[0],"SubModifierSniffRx",/[+-]/),t.const_set($[0],"TrailingDigitsRx",/\d+$/),t.const_set($[0],"UriSniffRx",new RegExp("^"+o($,"CG_ALPHA")+"["+o($,"CC_ALNUM")+".+-]+:/{0,2}")),t.const_set($[0],"XmlSanitizeRx",/<[^>]+>/)}(n[0],n)},Opal.modules["asciidoctor/substitutors"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t","$index","$min","$compact","$end_with?","$map","$chop","$new","$pop","$rstrip","$register","$tr","$basename","$parse","$<<","$lstrip","$split_simple_csv","$partition","$sub","$encode_uri_component","$style","$parse_into","$extname?","$rindex","$info?","$catalog","$fetch","$outfilesuffix","$natural_xrefs","$resolve_id","$find","$footnotes","$id","$<","$size","$attr?","$attr","$to_s","$read_next_id","$callouts","$syntax_highlighter","$highlight?","$sub_source","$extract_callouts","$name","$to_sym","$to_i","$resolve_lines_to_highlight","$highlight","$nil_or_empty?","$restore_callouts","$count","$to_a","$concat","$uniq","$sort","$*","$parse_quoted_text_attributes","$resolve_pass_subs","$extract_inner_passthrough","$basebackend?","$error","$chr","$drop","$&","$resolve_subs","$resolve_block_subs","$private","$=~","$shorthand_property_syntax","$each_char"]),function(a,g){var v=d(a,"Asciidoctor"),y=[v].concat(g);(function(a,g){var v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y=d(a,"Substitutors"),K=[Y].concat(g);t.const_set(K[0],"SpecialCharsRx",/[<&>]/),t.const_set(K[0],"SpecialCharsTr",f([">","<","&"],{">":">","<":"<","&":"&"})),t.const_set(K[0],"QuotedTextSniffRx",h(!1,/[*_`#^~]/,!0,/[*'_+#^~]/)),t.const_set(K[0],"BASIC_SUBS",["specialcharacters"]).$freeze(),t.const_set(K[0],"HEADER_SUBS",["specialcharacters","attributes"]).$freeze(),t.const_set(K[0],"NO_SUBS",[]).$freeze(),t.const_set(K[0],"NORMAL_SUBS",["specialcharacters","quotes","attributes","replacements","macros","post_replacements"]).$freeze(),t.const_set(K[0],"REFTEXT_SUBS",["specialcharacters","quotes","replacements"]).$freeze(),t.const_set(K[0],"VERBATIM_SUBS",["specialcharacters","callouts"]).$freeze(),t.const_set(K[0],"SUB_GROUPS",f(["none","normal","verbatim","specialchars"],{none:c(K,"NO_SUBS"),normal:c(K,"NORMAL_SUBS"),verbatim:c(K,"VERBATIM_SUBS"),specialchars:c(K,"BASIC_SUBS")})),t.const_set(K[0],"SUB_HINTS",f(["a","m","n","p","q","r","c","v"],{a:"attributes",m:"macros",n:"normal",p:"post_replacements",q:"quotes",r:"replacements",c:"specialcharacters",v:"verbatim"})),t.const_set(K[0],"SUB_OPTIONS",f(["block","inline"],{block:e(e(c(K,"SUB_GROUPS").$keys(),c(K,"NORMAL_SUBS")),["callouts"]),inline:e(c(K,"SUB_GROUPS").$keys(),c(K,"NORMAL_SUBS"))})),t.const_set(K[0],"CAN",""),t.const_set(K[0],"DEL",""),t.const_set(K[0],"PASS_START","–"),t.const_set(K[0],"PASS_END","—"),t.const_set(K[0],"PassSlotRx",new RegExp(c(K,"PASS_START")+"(\\d+)"+c(K,"PASS_END"))),t.const_set(K[0],"HighlightedPassSlotRx",new RegExp("]*>"+c(K,"PASS_START")+"[^\\d]*(\\d+)[^\\d]*]*>"+c(K,"PASS_END")+"")),t.const_set(K[0],"RS","\\"),t.const_set(K[0],"R_SB","]"),t.const_set(K[0],"ESC_R_SB","\\]"),t.const_set(K[0],"PLUS","+"),t.def(Y,"$apply_subs",v=function(t,e){var n,r,i=this,o=s,a=s,u=s;return null==i.passthroughs&&(i.passthroughs=s),null==i.passthroughs_locked&&(i.passthroughs_locked=s),null==e&&(e=c(K,"NORMAL_SUBS")),p(p(n=t["$empty?"]())?n:e["$!"]())?t:(p(o=l("::","Array")["$==="](t))&&(t=function(){return p(t["$[]"](1))?t.$join(c(K,"LF")):t["$[]"](0)}()),p(e["$include?"]("macros"))&&(t=i.$extract_passthroughs(t),p(i.passthroughs["$empty?"]())||(a=i.passthroughs,i.passthroughs_locked=p(n=i.passthroughs_locked)?n:u=!0)),$(e,"each",[],(r=function(n){var i=r.$$s||this,o=s;return null==n&&(n=s),function(){return o=n,"specialcharacters"["$==="](o)?t=i.$sub_specialchars(t):"quotes"["$==="](o)?t=i.$sub_quotes(t):"attributes"["$==="](o)?p(t["$include?"](c(K,"ATTR_REF_HEAD")))?t=i.$sub_attributes(t):s:"replacements"["$==="](o)?t=i.$sub_replacements(t):"macros"["$==="](o)?t=i.$sub_macros(t):"highlight"["$==="](o)?t=i.$highlight_source(t,e["$include?"]("callouts")):"callouts"["$==="](o)?p(e["$include?"]("highlight"))?s:t=i.$sub_callouts(t):"post_replacements"["$==="](o)?t=i.$sub_post_replacements(t):i.$logger().$warn("unknown substitution type "+n)}()},r.$$s=i,r.$$arity=1,r)),p(a)&&(t=i.$restore_passthroughs(t),p(u)&&(a.$clear(),i.passthroughs_locked=s)),p(o)?t.$split(c(K,"LF"),-1):t)},v.$$arity=-2),t.def(Y,"$apply_normal_subs",y=function(t){var e=this;return e.$apply_subs(t,c(K,"NORMAL_SUBS"))},y.$$arity=1),t.def(Y,"$apply_header_subs",_=function(t){var e=this;return e.$apply_subs(t,c(K,"HEADER_SUBS"))},_.$$arity=1),t.alias(Y,"apply_title_subs","apply_subs"),t.def(Y,"$apply_reftext_subs",b=function(t){var e=this;return e.$apply_subs(t,c(K,"REFTEXT_SUBS"))},b.$$arity=1),c(K,"RUBY_ENGINE")["$=="]("opal")&&t.def(Y,"$sub_specialchars",w=function(t){var e,n;return p(p(e=p(n=t["$include?"](">"))?n:t["$include?"]("&"))?e:t["$include?"]("<"))?t.$gsub(c(K,"SpecialCharsRx"),c(K,"SpecialCharsTr")):t},w.$$arity=1),t.alias(Y,"sub_specialcharacters","sub_specialchars"),t.def(Y,"$sub_quotes",x=function(t){var e,n=this,r=s;return null==n.document&&(n.document=s),p(c(K,"QuotedTextSniffRx")["$[]"](r=n.document.$compat_mode())["$match?"](t))&&$(c(K,"QUOTE_SUBS")["$[]"](r),"each",[],(e=function(n,r,i){var o,a=e.$$s||this;return null==n&&(n=s),null==r&&(r=s),null==i&&(i=s),t=$(t,"gsub",[i],(o=function(){var t=o.$$s||this;return null==m["~"]&&(m["~"]=s),t.$convert_quoted_text(m["~"],n,r)},o.$$s=a,o.$$arity=0,o))},e.$$s=n,e.$$arity=3,e)),t},x.$$arity=1),t.def(Y,"$sub_attributes",k=function(e,n){var r,i,o,a,l=this,u=s,d=s,h=s,g=s,v=s,y=s,_=s,b=s;return null==l.document&&(l.document=s),null==n&&(n=f([],{})),u=l.document.$attributes(),d=h=g=v=y=_=s,e=$(e,"gsub",[c(K,"AttributeReferenceRx")],(r=function(){var e,i,o,a,l=r.$$s||this,f=s,b=s,w=s,x=s;return null==l.document&&(l.document=s),p(p(e=((i=m["~"])===s?s:i["$[]"](1))["$=="](c(K,"RS")))?e:((i=m["~"])===s?s:i["$[]"](4))["$=="](c(K,"RS")))?"{"+((e=m["~"])===s?s:e["$[]"](2))+"}":p((e=m["~"])===s?s:e["$[]"](3))?function(){return f=(b=((e=m["~"])===s?s:e["$[]"](2)).$split(":",3)).$shift(),"set"["$==="](f)?(i=c(K,"Parser").$store_attribute(b["$[]"](0),p(o=b["$[]"](1))?o:"",l.document),e=t.to_ary(i),null==e[0]?s:e[0],w=null==e[1]?s:e[1],d=p(p(e=w)?e:(y=p(i=y)?i:p(o=u["$[]"]("attribute-undefined"))?o:c(K,"Compliance").$attribute_undefined())["$!="]("drop-line"))?v=c(K,"DEL"):h=c(K,"CAN")):"counter2"["$==="](f)?($(l.document,"counter",t.to_a(b)),d=v=c(K,"DEL")):$(l.document,"counter",t.to_a(b))}():p(u["$key?"](x=((e=m["~"])===s?s:e["$[]"](2)).$downcase()))?u["$[]"](x):p(w=c(K,"INTRINSIC_ATTRIBUTES")["$[]"](x))?w:function(){return f=_=p(e=_)?e:p(i=p(o=n["$[]"]("attribute_missing"))?o:u["$[]"]("attribute-missing"))?i:c(K,"Compliance").$attribute_missing(),"drop"["$==="](f)?d=v=c(K,"DEL"):"drop-line"["$==="](f)?((g=p(e=g)?e:p(i=n["$[]"]("drop_line_severity"))?i:"info")["$=="]("info")&&$(l.$logger(),"info",[],(a=function(){a.$$s;return"dropping line containing reference to missing attribute: "+x},a.$$s=l,a.$$arity=0,a)),d=h=c(K,"CAN")):"warn"["$==="](f)?(l.$logger().$warn("skipping reference to missing attribute: "+x),(e=m["~"])===s?s:e["$[]"](0)):(e=m["~"])===s?s:e["$[]"](0)}()},r.$$s=l,r.$$arity=0,r)),p(d)?p(v)?(b=e.$squeeze(c(K,"DEL")).$split(c(K,"LF"),-1),p(h)?$(b,"reject",[],(i=function(t){var e,n,r;i.$$s;return null==t&&(t=s),p(e=p(n=p(r=t["$=="](c(K,"DEL")))?r:t["$=="](c(K,"CAN")))?n:t["$start_with?"](c(K,"CAN")))?e:t["$include?"](c(K,"CAN"))},i.$$s=l,i.$$arity=1,i)).$join(c(K,"LF")).$delete(c(K,"DEL")):$(b,"reject",[],(o=function(t){o.$$s;return null==t&&(t=s),t["$=="](c(K,"DEL"))},o.$$s=l,o.$$arity=1,o)).$join(c(K,"LF")).$delete(c(K,"DEL"))):p(e["$include?"](c(K,"LF")))?$(e.$split(c(K,"LF"),-1),"reject",[],(a=function(t){var e,n;a.$$s;return null==t&&(t=s),p(e=p(n=t["$=="](c(K,"CAN")))?n:t["$start_with?"](c(K,"CAN")))?e:t["$include?"](c(K,"CAN"))},a.$$s=l,a.$$arity=1,a)).$join(c(K,"LF")):"":e},k.$$arity=-2),t.def(Y,"$sub_replacements",S=function(t){var e,n=this;return p(c(K,"ReplaceableTextRx")["$match?"](t))&&$(c(K,"REPLACEMENTS"),"each",[],(e=function(n,r,i){var o,a=e.$$s||this;return null==n&&(n=s),null==r&&(r=s),null==i&&(i=s),t=$(t,"gsub",[n],(o=function(){var t=o.$$s||this;return null==m["~"]&&(m["~"]=s),t.$do_replacement(m["~"],r,i)},o.$$s=a,o.$$arity=0,o))},e.$$s=n,e.$$arity=3,e)),t},S.$$arity=1),t.def(Y,"$sub_macros",O=function(i){var o,a,d,h,g,v,y,_,b,w,x,k,S,O,C,A=this,E=s,T=s,P=s,B=s,L=s,I=s,D=s;return null==A.document&&(A.document=s),null==A.context&&(A.context=s),null==A.parent&&(A.parent=s),E=i["$include?"]("["),T=i["$include?"](":"),P=p(o=E)?T:o,B=p(o=P)?i["$include?"](":["):o,L=(I=A.document).$attributes(),p(p(o=D=I.$extensions())?D["$inline_macros?"]():o)&&$(D.$inline_macros(),"each",[],(a=function(e){var r,o=a.$$s||this;return null==e&&(e=s),i=$(i,"gsub",[e.$instance().$regexp()],(r=function(){var i,o,a=r.$$s||this,l=s,u=s,d=s,h=s,g=s,v=s,y=s,_=s,b=s;return null==m["~"]&&(m["~"]=s),p((l=(i=m["~"])===s?s:i["$[]"](0))["$start_with?"](c(K,"RS")))?((i=m["~"])===s?s:i["$[]"](0)).$slice(1,((i=m["~"])===s?s:i["$[]"](0)).$length()):(p(m["~"].$names()["$empty?"]())?(i=[(o=m["~"])===s?s:o["$[]"](1),(o=m["~"])===s?s:o["$[]"](2)],u=i[0],d=i[1]):(i=[function(){try{return m["~"]["$[]"]("target")}catch(e){if(!t.rescue(e,[c(K,"StandardError")]))throw e;try{return s}finally{t.pop_exception()}}}(),function(){try{return m["~"]["$[]"]("content")}catch(e){if(!t.rescue(e,[c(K,"StandardError")]))throw e;try{return s}finally{t.pop_exception()}}}()],u=i[0],d=i[1]),h=function(){return p(g=(v=e.$config())["$[]"]("default_attrs"))?g.$merge():f([],{})}(),p(d)&&(p(d["$empty?"]())?v["$[]"]("content_model")["$=="]("attributes")||(y=["text",d],$(h,"[]=",t.to_a(y)),y[n(y["length"],1)]):(d=a.$normalize_text(d,!0,!0),v["$[]"]("content_model")["$=="]("attributes")?a.$parse_attributes(d,p(i=p(o=v["$[]"]("positional_attrs"))?o:v["$[]"]("pos_attrs"))?i:[],f(["into"],{into:h})):(y=["text",d],$(h,"[]=",t.to_a(y)),y[n(y["length"],1)])),u=p(i=u)?i:function(){return v["$[]"]("format")["$=="]("short")?d:u}()),p(c(K,"Inline")["$==="](_=e.$process_method()["$[]"](a,u,h)))?(p(b=_.$attributes().$delete("subs"))&&(y=[a.$apply_subs(_.$text(),a.$expand_subs(b))],$(_,"text=",t.to_a(y)),y[n(y["length"],1)]),_.$convert()):p(_)?(a.$logger().$info("expected substitution value for custom inline macro to be of type Inline; got "+_.$class()+": "+l),_):"")},r.$$s=o,r.$$arity=0,r))},a.$$s=A,a.$$arity=1,a)),p(L["$key?"]("experimental"))&&(p(p(o=B)?p(d=i["$include?"]("kbd:"))?d:i["$include?"]("btn:"):o)&&(i=$(i,"gsub",[c(K,"InlineKbdBtnMacroRx")],(h=function(){var i,o,a,l=h.$$s||this,u=s,d=s,g=s,v=s;return p((i=m["~"])===s?s:i["$[]"](1))?((i=m["~"])===s?s:i["$[]"](0)).$slice(1,((i=m["~"])===s?s:i["$[]"](0)).$length()):((i=m["~"])===s?s:i["$[]"](2))["$=="]("kbd")?(p((u=((i=m["~"])===s?s:i["$[]"](3)).$strip())["$include?"](c(K,"R_SB")))&&(u=u.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB"))),p(p(i=r(u.$length(),1))?d=function(){return p(d=u.$index(",",1))?[d,u.$index("+",1)].$compact().$min():u.$index("+",1)}():i)?(g=u.$slice(d,1),p(u["$end_with?"](g))?(u=$(u.$chop().$split(g,-1),"map",[],(o=function(t){o.$$s;return null==t&&(t=s),t.$strip()},o.$$s=l,o.$$arity=1,o)),v=[-1,e(u["$[]"](-1),g)],$(u,"[]=",t.to_a(v)),v[n(v["length"],1)]):u=$(u.$split(g),"map",[],(a=function(t){a.$$s;return null==t&&(t=s),t.$strip()},a.$$s=l,a.$$arity=1,a))):u=[u],c(K,"Inline").$new(l,"kbd",s,f(["attributes"],{attributes:f(["keys"],{keys:u})})).$convert()):c(K,"Inline").$new(l,"button",l.$normalize_text((i=m["~"])===s?s:i["$[]"](3),!0,!0)).$convert()},h.$$s=A,h.$$arity=0,h))),p(p(o=P)?i["$include?"]("menu:"):o)&&(i=$(i,"gsub",[c(K,"InlineMenuMacroRx")],(g=function(){var t,e,n=g.$$s||this,r=s,i=s,o=s,a=s,l=s;return p(((t=m["~"])===s?s:t["$[]"](0))["$start_with?"](c(K,"RS")))?((t=m["~"])===s?s:t["$[]"](0)).$slice(1,((t=m["~"])===s?s:t["$[]"](0)).$length()):(r=(t=m["~"])===s?s:t["$[]"](1),p(i=(t=m["~"])===s?s:t["$[]"](2))?(p(i["$include?"](c(K,"R_SB")))&&(i=i.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB"))),p(o=function(){return p(i["$include?"](">"))?">":p(i["$include?"](","))?",":s}())?(a=$(i.$split(o),"map",[],(e=function(t){e.$$s;return null==t&&(t=s),t.$strip()},e.$$s=n,e.$$arity=1,e)),l=a.$pop()):(t=[[],i.$rstrip()],a=t[0],l=t[1])):(t=[[],s],a=t[0],l=t[1]),c(K,"Inline").$new(n,"menu",s,f(["attributes"],{attributes:f(["menu","submenus","menuitem"],{menu:r,submenus:a,menuitem:l})})).$convert())},g.$$s=A,g.$$arity=0,g))),p(p(o=i["$include?"]('"'))?i["$include?"](">"):o)&&(i=$(i,"gsub",[c(K,"InlineMenuRx")],(v=function(){var e,n,r,i,o=v.$$s||this,a=s,l=s,d=s;return p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))?((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length()):(n=$(((r=m["~"])===s?s:r["$[]"](1)).$split(">"),"map",[],(i=function(t){i.$$s;return null==t&&(t=s),t.$strip()},i.$$s=o,i.$$arity=1,i)),e=t.to_ary(n),a=null==e[0]?s:e[0],l=u.call(e,1),d=l.$pop(),c(K,"Inline").$new(o,"menu",s,f(["attributes"],{attributes:f(["menu","submenus","menuitem"],{menu:a,submenus:l,menuitem:d})})).$convert())},v.$$s=A,v.$$arity=0,v)))),p(p(o=P)?p(d=i["$include?"]("image:"))?d:i["$include?"]("icon:"):o)&&(i=$(i,"gsub",[c(K,"InlineImageMacroRx")],(y=function(){var e,r=y.$$s||this,i=s,o=s,a=s,l=s,u=s;return p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))?((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length()):(p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"]("icon:"))?(e=["icon",["size"]],i=e[0],o=e[1]):(e=["image",["alt","width","height"]],i=e[0],o=e[1]),a=(e=m["~"])===s?s:e["$[]"](1),l=r.$parse_attributes((e=m["~"])===s?s:e["$[]"](2),o,f(["unescape_input"],{unescape_input:!0})),i["$=="]("icon")||(I.$register("images",a),u=["imagesdir",L["$[]"]("imagesdir")],$(l,"[]=",t.to_a(u)),u[n(u["length"],1)]),p(e=l["$[]"]("alt"))||(u=["alt",(u=["default-alt",c(K,"Helpers").$basename(a,!0).$tr("_-"," ")],$(l,"[]=",t.to_a(u)),u[n(u["length"],1)])],$(l,"[]=",t.to_a(u)),u[n(u["length"],1)]),c(K,"Inline").$new(r,"image",s,f(["type","target","attributes"],{type:i,target:a,attributes:l})).$convert())},y.$$s=A,y.$$arity=0,y))),p(p(o=p(d=i["$include?"]("(("))?i["$include?"]("))"):d)?o:p(d=B)?i["$include?"]("dexterm"):d)&&(i=$(i,"gsub",[c(K,"InlineIndextermMacroRx")],(_=function(){var e,r,o,a,l=_.$$s||this,d=s,h=s,g=s,v=s,y=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s;return function(){if(d=(e=m["~"])===s?s:e["$[]"](1),"indexterm"["$==="](d))return p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))?((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length()):(p((h=l.$normalize_text((e=m["~"])===s?s:e["$[]"](2),!0,!0))["$include?"]("="))?p(g=(v=c(K,"AttributeList").$new(h,l).$parse())["$[]"](1))?(y=["terms",b=[g]],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)],p(w=v["$[]"](2))&&(b["$<<"](w),p(x=v["$[]"](3))&&b["$<<"](x)),p(k=v["$[]"]("see-also"))&&(y=["see-also",function(){return p(k["$include?"](","))?$(k.$split(","),"map",[],(r=function(t){r.$$s;return null==t&&(t=s),t.$lstrip()},r.$$s=l,r.$$arity=1,r)):[k]}()],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)])):v=f(["terms"],{terms:b=h}):v=f(["terms"],{terms:b=l.$split_simple_csv(h)}),c(K,"Inline").$new(l,"indexterm",s,f(["attributes"],{attributes:v})).$convert());if("indexterm2"["$==="](d))return p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))?((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length()):(p((S=l.$normalize_text((e=m["~"])===s?s:e["$[]"](2),!0,!0))["$include?"]("="))&&(S=p(e=p(o=(v=c(K,"AttributeList").$new(S,l).$parse())["$[]"](1))?o:v=s)?e:S,p(p(e=v)?k=v["$[]"]("see-also"):e)&&(y=["see-also",function(){return p(k["$include?"](","))?$(k.$split(","),"map",[],(a=function(t){a.$$s;return null==t&&(t=s),t.$lstrip()},a.$$s=l,a.$$arity=1,a)):[k]}()],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)])),c(K,"Inline").$new(l,"indexterm",S,f(["attributes","type"],{attributes:v,type:"visible"})).$convert());if(i=(e=m["~"])===s?s:e["$[]"](3),p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))){if(!p(p(e=i["$start_with?"]("("))?i["$end_with?"](")"):e))return((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length());i=i.$slice(1,n(i.$length(),2)),e=[!0,"(",")"],O=e[0],C=e[1],A=e[2]}else O=!0,p(i["$start_with?"]("("))?p(i["$end_with?"](")"))?(e=[i.$slice(1,n(i.$length(),2)),!1],i=e[0],O=e[1]):(e=[i.$slice(1,i.$length()),"(",""],i=e[0],C=e[1],A=e[2]):p(i["$end_with?"](")"))&&(e=[i.$chop(),"",")"],i=e[0],C=e[1],A=e[2]);return p(O)?(p((S=l.$normalize_text(i,!0))["$include?"](";&"))&&(p(S["$include?"](" >> "))?(o=S.$partition(" >> "),e=t.to_ary(o),S=null==e[0]?s:e[0],null==e[1]?s:e[1],E=null==e[2]?s:e[2],v=f(["see"],{see:E})):p(S["$include?"](" &> "))&&(o=S.$split(" &> "),e=t.to_ary(o),S=null==e[0]?s:e[0],k=u.call(e,1),v=f(["see-also"],{"see-also":k}))),T=c(K,"Inline").$new(l,"indexterm",S,f(["attributes","type"],{attributes:v,type:"visible"})).$convert()):(v=f([],{}),p((b=l.$normalize_text(i,!0))["$include?"](";&"))&&(p(b["$include?"](" >> "))?(o=b.$partition(" >> "),e=t.to_ary(o),b=null==e[0]?s:e[0],null==e[1]?s:e[1],E=null==e[2]?s:e[2],y=["see",E],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)]):p(b["$include?"](" &> "))&&(o=b.$split(" &> "),e=t.to_ary(o),b=null==e[0]?s:e[0],k=u.call(e,1),y=["see-also",k],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)])),y=["terms",b=l.$split_simple_csv(b)],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)],T=c(K,"Inline").$new(l,"indexterm",s,f(["attributes"],{attributes:v})).$convert()),p(C)?""+C+T+A:T}()},_.$$s=A,_.$$arity=0,_))),p(p(o=T)?i["$include?"]("://"):o)&&(i=$(i,"gsub",[c(K,"InlineLinkRx")],(b=function(){var e,r,o=b.$$s||this,a=s,l=s,u=s,d=s,h=s,g=s,v=s;if(p((a=(e=m["~"])===s?s:e["$[]"](2))["$start_with?"](c(K,"RS"))))return""+((e=m["~"])===s?s:e["$[]"](1))+a.$slice(1,a.$length())+((e=m["~"])===s?s:e["$[]"](4));if(e=[(r=m["~"])===s?s:r["$[]"](1),""],l=e[0],u=e[1],p((e=m["~"])===s?s:e["$[]"](4)))l["$=="]("link:")&&(l=""),i=(e=m["~"])===s?s:e["$[]"](4);else{if(l["$=="]("link:"))return(e=m["~"])===s?s:e["$[]"](0);if(i="",d=(e=m["~"])===s?s:e["$[]"](3),")"["$==="](d)){if(a=a.$chop(),u=")",p(a["$end_with?"]("://")))return(e=m["~"])===s?s:e["$[]"](0)}else if(";"["$==="](d)){if(p(p(e=l["$start_with?"]("<"))?a["$end_with?"](">"):e)?(l=l.$slice(4,l.$length()),a=a.$slice(0,n(a.$length(),4))):p((a=a.$chop())["$end_with?"](")"))?(a=a.$chop(),u=");"):u=";",p(a["$end_with?"]("://")))return(e=m["~"])===s?s:e["$[]"](0)}else if(":"["$==="](d)&&(p((a=a.$chop())["$end_with?"](")"))?(a=a.$chop(),u="):"):u=":",p(a["$end_with?"]("://"))))return(e=m["~"])===s?s:e["$[]"](0)}return e=[s,f(["type"],{type:"link"})],h=e[0],g=e[1],p(i["$empty?"]())||(p(i["$include?"](c(K,"R_SB")))&&(i=i.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB"))),p(p(e=I.$compat_mode()["$!"]())?i["$include?"]("="):e)&&(i=p(e=(h=c(K,"AttributeList").$new(i,o).$parse())["$[]"](1))?e:"",v=["id",h["$[]"]("id")],$(g,"[]=",t.to_a(v)),v[n(v["length"],1)]),p(i["$end_with?"]("^"))&&(i=i.$chop(),p(h)?p(e=h["$[]"]("window"))||(v=["window","_blank"],$(h,"[]=",t.to_a(v)),v[n(v["length"],1)]):h=f(["window"],{window:"_blank"}))),p(i["$empty?"]())&&(i=function(){return p(L["$key?"]("hide-uri-scheme"))?a.$sub(c(K,"UriSniffRx"),""):a}(),p(h)?(v=["role",function(){return p(h["$key?"]("role"))?"bare "+h["$[]"]("role"):"bare"}()],$(h,"[]=",t.to_a(v)),v[n(v["length"],1)]):h=f(["role"],{role:"bare"})),I.$register("links",(v=["target",a],$(g,"[]=",t.to_a(v)),v[n(v["length"],1)])),p(h)&&(v=["attributes",h],$(g,"[]=",t.to_a(v)),v[n(v["length"],1)]),""+l+c(K,"Inline").$new(o,"anchor",i,g).$convert()+u},b.$$s=A,b.$$arity=0,b))),p(p(o=P)?p(d=i["$include?"]("link:"))?d:i["$include?"]("ilto:"):o)&&(i=$(i,"gsub",[c(K,"InlineLinkMacroRx")],(w=function(){var r,o=w.$$s||this,a=s,l=s,u=s,d=s,h=s,g=s;return p(((r=m["~"])===s?s:r["$[]"](0))["$start_with?"](c(K,"RS")))?((r=m["~"])===s?s:r["$[]"](0)).$slice(1,((r=m["~"])===s?s:r["$[]"](0)).$length()):(l=p(a=(r=m["~"])===s?s:r["$[]"](1))?e("mailto:",u=(r=m["~"])===s?s:r["$[]"](2)):(r=m["~"])===s?s:r["$[]"](2),r=[s,f(["type"],{type:"link"})],d=r[0],h=r[1],p((i=(r=m["~"])===s?s:r["$[]"](3))["$empty?"]())||(p(i["$include?"](c(K,"R_SB")))&&(i=i.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB"))),p(a)?p(p(r=I.$compat_mode()["$!"]())?i["$include?"](","):r)&&(i=p(r=(d=c(K,"AttributeList").$new(i,o).$parse())["$[]"](1))?r:"",g=["id",d["$[]"]("id")],$(h,"[]=",t.to_a(g)),g[n(g["length"],1)],p(d["$key?"](2))&&(l=p(d["$key?"](3))?l+"?subject="+c(K,"Helpers").$encode_uri_component(d["$[]"](2))+"&body="+c(K,"Helpers").$encode_uri_component(d["$[]"](3)):l+"?subject="+c(K,"Helpers").$encode_uri_component(d["$[]"](2)))):p(p(r=I.$compat_mode()["$!"]())?i["$include?"]("="):r)&&(i=p(r=(d=c(K,"AttributeList").$new(i,o).$parse())["$[]"](1))?r:"",g=["id",d["$[]"]("id")],$(h,"[]=",t.to_a(g)),g[n(g["length"],1)]),p(i["$end_with?"]("^"))&&(i=i.$chop(),p(d)?p(r=d["$[]"]("window"))||(g=["window","_blank"],$(d,"[]=",t.to_a(g)),g[n(g["length"],1)]):d=f(["window"],{window:"_blank"}))),p(i["$empty?"]())&&(p(a)?i=u:(p(L["$key?"]("hide-uri-scheme"))?p((i=l.$sub(c(K,"UriSniffRx"),""))["$empty?"]())&&(i=l):i=l,p(d)?(g=["role",function(){return p(d["$key?"]("role"))?"bare "+d["$[]"]("role"):"bare"}()],$(d,"[]=",t.to_a(g)),g[n(g["length"],1)]):d=f(["role"],{role:"bare"}))),I.$register("links",(g=["target",l],$(h,"[]=",t.to_a(g)),g[n(g["length"],1)])),p(d)&&(g=["attributes",d],$(h,"[]=",t.to_a(g)),g[n(g["length"],1)]),c(K,"Inline").$new(o,"anchor",i,h).$convert())},w.$$s=A,w.$$arity=0,w))),p(i["$include?"]("@"))&&(i=$(i,"gsub",[c(K,"InlineEmailRx")],(x=function(){var t,n=x.$$s||this,r=s,i=s;return p((t=m["~"])===s?s:t["$[]"](1))?function(){return((t=m["~"])===s?s:t["$[]"](1))["$=="](c(K,"RS"))?((t=m["~"])===s?s:t["$[]"](0)).$slice(1,((t=m["~"])===s?s:t["$[]"](0)).$length()):(t=m["~"])===s?s:t["$[]"](0)}():(r=e("mailto:",i=(t=m["~"])===s?s:t["$[]"](0)),I.$register("links",r),c(K,"Inline").$new(n,"anchor",i,f(["type","target"],{type:"link",target:r})).$convert())},x.$$s=A,x.$$arity=0,x))),p(p(o=p(d=E)?A.context["$=="]("list_item"):d)?A.parent.$style()["$=="]("bibliography"):o)&&(i=$(i,"sub",[c(K,"InlineBiblioAnchorRx")],(k=function(){var t,e=k.$$s||this;return c(K,"Inline").$new(e,"anchor",(t=m["~"])===s?s:t["$[]"](2),f(["type","id"],{type:"bibref",id:(t=m["~"])===s?s:t["$[]"](1)})).$convert()},k.$$s=A,k.$$arity=0,k))),p(p(o=p(d=E)?i["$include?"]("[["):d)?o:p(d=P)?i["$include?"]("or:"):d)&&(i=$(i,"gsub",[c(K,"InlineAnchorRx")],(S=function(){var t,e,n=S.$$s||this,r=s,i=s;return p((t=m["~"])===s?s:t["$[]"](1))?((t=m["~"])===s?s:t["$[]"](0)).$slice(1,((t=m["~"])===s?s:t["$[]"](0)).$length()):(p(r=(t=m["~"])===s?s:t["$[]"](2))?i=(t=m["~"])===s?s:t["$[]"](3):(r=(t=m["~"])===s?s:t["$[]"](4),p(p(t=i=(e=m["~"])===s?s:e["$[]"](5))?i["$include?"](c(K,"R_SB")):t)&&(i=i.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB")))),c(K,"Inline").$new(n,"anchor",i,f(["type","id"],{type:"ref",id:r})).$convert())},S.$$s=A,S.$$arity=0,S))),p(p(o=p(d=i["$include?"]("&"))?i["$include?"](";&l"):d)?o:p(d=P)?i["$include?"]("xref:"):d)&&(i=$(i,"gsub",[c(K,"InlineXrefMacroRx")],(O=function(){var o,a,l=O.$$s||this,u=s,d=s,h=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s;return p(((o=m["~"])===s?s:o["$[]"](0))["$start_with?"](c(K,"RS")))?((o=m["~"])===s?s:o["$[]"](0)).$slice(1,((o=m["~"])===s?s:o["$[]"](0)).$length()):(u=f([],{}),p(d=(o=m["~"])===s?s:o["$[]"](1))?(a=d.$split(",",2),o=t.to_ary(a),d=null==o[0]?s:o[0],i=null==o[1]?s:o[1],p(i)&&(i=i.$lstrip())):(h=!0,d=(o=m["~"])===s?s:o["$[]"](2),p(i=(o=m["~"])===s?s:o["$[]"](3))&&(p(i["$include?"](c(K,"R_SB")))&&(i=i.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB"))),p(p(o=I.$compat_mode()["$!"]())?i["$include?"]("="):o)&&(i=c(K,"AttributeList").$new(i,l).$parse_into(u)["$[]"](1)))),p(I.$compat_mode())?g=d:p(v=d.$index("#"))?p(r(v,0))?(p(r(y=n(n(d.$length(),1),v),0))?(o=[d.$slice(0,v),d.$slice(e(v,1),y)],_=o[0],g=o[1]):_=d.$chop(),p(h)?p(_["$end_with?"](".adoc"))?b=_=_.$slice(0,n(_.$length(),5)):p(c(K,"Helpers")["$extname?"](_)["$!"]())&&(b=_):b=p($(_,"end_with?",t.to_a(c(K,"ASCIIDOC_EXTENSIONS").$keys())))?_=_.$slice(0,_.$rindex(".")):_):(o=[d,d.$slice(1,d.$length())],w=o[0],g=o[1]):p(h)?p(d["$end_with?"](".adoc"))?b=_=d.$slice(0,n(d.$length(),5)):p(c(K,"Helpers")["$extname?"](d))?_=d:g=d:g=d,p(w)?(d=g,p(p(o=l.$logger()["$info?"]())?I.$catalog()["$[]"]("refs")["$[]"](d)["$!"]():o)&&l.$logger().$info("possible invalid reference: "+d)):p(_)?p(p(o=b)?p(a=I.$attributes()["$[]"]("docname")["$=="](_))?a:I.$catalog()["$[]"]("includes")["$[]"](_):o)?p(g)?(o=[g,s,"#"+g],d=o[0],_=o[1],w=o[2],p(p(o=l.$logger()["$info?"]())?I.$catalog()["$[]"]("refs")["$[]"](d)["$!"]():o)&&l.$logger().$info("possible invalid reference: "+d)):(o=[s,s,"#"],d=o[0],_=o[1],w=o[2]):(o=[_,""+I.$attributes()["$[]"]("relfileprefix")+_+function(){return p(b)?I.$attributes().$fetch("relfilesuffix",I.$outfilesuffix()):""}()],d=o[0],_=o[1],p(g)?(o=[d+"#"+g,_+"#"+g],d=o[0],w=o[1]):w=_):p(p(o=I.$compat_mode())?o:c(K,"Compliance").$natural_xrefs()["$!"]())?(o=[g,"#"+g],d=o[0],w=o[1],p(p(o=l.$logger()["$info?"]())?I.$catalog()["$[]"]("refs")["$[]"](d):o)&&l.$logger().$info("possible invalid reference: "+d)):p(I.$catalog()["$[]"]("refs")["$[]"](g))?(o=[g,"#"+g],d=o[0],w=o[1]):p(p(o=p(a=g["$include?"](" "))?a:g.$downcase()["$!="](g))?d=I.$resolve_id(g):o)?(o=[d,"#"+d],g=o[0],w=o[1]):(o=[g,"#"+g],d=o[0],w=o[1],p(l.$logger()["$info?"]())&&l.$logger().$info("possible invalid reference: "+d)),x=["path",_],$(u,"[]=",t.to_a(x)),x[n(x["length"],1)],x=["fragment",g],$(u,"[]=",t.to_a(x)),x[n(x["length"],1)],x=["refid",d],$(u,"[]=",t.to_a(x)),x[n(x["length"],1)],c(K,"Inline").$new(l,"anchor",i,f(["type","target","attributes"],{type:"xref",target:w,attributes:u})).$convert())},O.$$s=A,O.$$arity=0,O))),p(p(o=P)?i["$include?"]("tnote"):o)&&(i=$(i,"gsub",[c(K,"InlineFootnoteMacroRx")],(C=function(){var e,n,r,o,a=C.$$s||this,u=s,d=s,h=s,g=s,v=s;if(p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS"))))return((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length());if(p((e=m["~"])===s?s:e["$[]"](1))){if(!p((e=m["~"])===s?s:e["$[]"](3)))return(e=m["~"])===s?s:e["$[]"](0);n=((r=m["~"])===s?s:r["$[]"](3)).$split(",",2),e=t.to_ary(n),u=null==e[0]?s:e[0],i=null==e[1]?s:e[1],p(I.$compat_mode())||a.$logger().$warn("found deprecated footnoteref macro: "+((e=m["~"])===s?s:e["$[]"](0))+"; use footnote macro with target instead")}else u=(e=m["~"])===s?s:e["$[]"](2),i=(e=m["~"])===s?s:e["$[]"](3);if(p(u))p(i)?(i=a.$restore_passthroughs(a.$normalize_text(i,!0,!0)),d=I.$counter("footnote-number"),I.$register("footnotes",l(c(K,"Document"),"Footnote").$new(d,u,i)),e=["ref",s],h=e[0],g=e[1]):(p(v=$(I.$footnotes(),"find",[],(o=function(t){o.$$s;return null==t&&(t=s),t.$id()["$=="](u)},o.$$s=a,o.$$arity=1,o)))?(e=[v.$index(),v.$text()],d=e[0],i=e[1]):(a.$logger().$warn("invalid footnote reference: "+u),e=[s,u],d=e[0],i=e[1]),e=["xref",u,s],h=e[0],g=e[1],u=e[2]);else{if(!p(i))return(e=m["~"])===s?s:e["$[]"](0);i=a.$restore_passthroughs(a.$normalize_text(i,!0,!0)),d=I.$counter("footnote-number"),I.$register("footnotes",l(c(K,"Document"),"Footnote").$new(d,u,i)),h=g=s}return c(K,"Inline").$new(a,"footnote",i,f(["attributes","id","target","type"],{attributes:f(["index"],{index:d}),id:u,target:g,type:h})).$convert()},C.$$s=A,C.$$arity=0,C))),i},O.$$arity=1),t.def(Y,"$sub_post_replacements",C=function(t){var e,r,o,a=this,l=s,u=s;return null==a.attributes&&(a.attributes=s),null==a.document&&(a.document=s),p(p(e=a.attributes["$[]"]("hardbreaks-option"))?e:a.document.$attributes()["$[]"]("hardbreaks-option"))?(l=t.$split(c(K,"LF"),-1),p(i(l.$size(),2))?t:(u=l.$pop(),$(l,"map",[],(r=function(t){var e=r.$$s||this;return null==t&&(t=s),c(K,"Inline").$new(e,"break",function(){return p(t["$end_with?"](c(K,"HARD_LINE_BREAK")))?t.$slice(0,n(t.$length(),2)):t}(),f(["type"],{type:"line"})).$convert()},r.$$s=a,r.$$arity=1,r))["$<<"](u).$join(c(K,"LF")))):p(p(e=t["$include?"](c(K,"PLUS")))?t["$include?"](c(K,"HARD_LINE_BREAK")):e)?$(t,"gsub",[c(K,"HardLineBreakRx")],(o=function(){var t,e=o.$$s||this;return c(K,"Inline").$new(e,"break",(t=m["~"])===s?s:t["$[]"](1),f(["type"],{type:"line"})).$convert()},o.$$s=a,o.$$arity=0,o)):t},C.$$arity=1),t.def(Y,"$sub_source",A=function(t,e){var n=this;return p(e)?n.$sub_callouts(n.$sub_specialchars(t)):n.$sub_specialchars(t)},A.$$arity=2),t.def(Y,"$sub_callouts",E=function(t){var n,r=this,i=s,o=s;return i=function(){return p(r["$attr?"]("line-comment"))?c(K,"CalloutSourceRxMap")["$[]"](r.$attr("line-comment")):c(K,"CalloutSourceRx")}(),o=0,$(t,"gsub",[i],(n=function(){var t,r=n.$$s||this;return null==r.document&&(r.document=s),p((t=m["~"])===s?s:t["$[]"](2))?((t=m["~"])===s?s:t["$[]"](0)).$sub(c(K,"RS"),""):c(K,"Inline").$new(r,"callout",function(){return((t=m["~"])===s?s:t["$[]"](4))["$=="](".")?(o=e(o,1)).$to_s():(t=m["~"])===s?s:t["$[]"](4)}(),f(["id","attributes"],{id:r.document.$callouts().$read_next_id(),attributes:f(["guard"],{guard:(t=m["~"])===s?s:t["$[]"](1)})})).$convert()},n.$$s=r,n.$$arity=0,n))},E.$$arity=1),t.def(Y,"$highlight_source",T=function(e,n){var r,o,a,l=this,u=s,d=s,h=s,$=s,m=s,g=s,v=s,y=s,_=s;return null==l.document&&(l.document=s),null==l.passthroughs&&(l.passthroughs=s),p(p(r=u=l.document.$syntax_highlighter())?u["$highlight?"]():r)?(p(n)&&(o=l.$extract_callouts(e),r=t.to_ary(o),e=null==r[0]?s:r[0],d=null==r[1]?s:r[1]),h=l.document.$attributes(),$=u.$name(),p(m=function(){return p(l["$attr?"]("linenums"))?(p(r=h["$[]"]($+"-linenums-mode"))?r:"table").$to_sym():s}())&&p(i(g=l.$attr("start",1).$to_i(),1))&&(g=1),p(l["$attr?"]("highlight"))&&(v=l.$resolve_lines_to_highlight(e,l.$attr("highlight"))),o=u.$highlight(l,e,l.$attr("language"),f(["callouts","css_mode","highlight_lines","number_lines","start_line_number","style"],{callouts:d,css_mode:(p(a=h["$[]"]($+"-css"))?a:"class").$to_sym(),highlight_lines:v,number_lines:m,start_line_number:g,style:h["$[]"]($+"-style")})),r=t.to_ary(o),y=null==r[0]?s:r[0],_=null==r[1]?s:r[1],p(l.passthroughs["$empty?"]())||(y=y.$gsub(c(K,"HighlightedPassSlotRx"),c(K,"PASS_START")+"\\1"+c(K,"PASS_END"))),p(d["$nil_or_empty?"]())?y:l.$restore_callouts(y,d,_)):l.$sub_source(e,n)},T.$$arity=2),t.def(Y,"$resolve_lines_to_highlight",P=function(r,o){var a,l=this,u=s;return u=[],p(o["$include?"](" "))&&(o=o.$delete(" ")),$(function(){return p(o["$include?"](","))?o.$split(","):o.$split(";")}(),"map",[],(a=function(o){a.$$s;var l,d,f=s,h=s,$=s,m=s,g=s;return null==o&&(o=s),p(o["$start_with?"]("!"))&&(o=o.$slice(1,o.$length()),f=!0),p(h=function(){return p(o["$include?"](".."))?"..":p(o["$include?"]("-"))?"-":s}())?(d=o.$partition(h),l=t.to_ary(d),$=null==l[0]?s:l[0],h=null==l[1]?s:l[1],m=null==l[2]?s:l[2],p(p(l=m["$empty?"]())?l:i(m=m.$to_i(),0))&&(m=e(r.$count(c(K,"LF")),1)),g=t.Range.$new($.$to_i(),m,!1).$to_a(),p(f)?u=n(u,g):u.$concat(g)):p(f)?u.$delete(o.$to_i()):u["$<<"](o.$to_i())},a.$$s=l,a.$$arity=1,a)),u.$sort().$uniq()},P.$$arity=2),t.def(Y,"$extract_passthroughs",B=function(e){var i,a,l,u,d,h=this,g=s,v=s,y=s,_=s,b=s;return null==h.document&&(h.document=s),null==h.passthroughs&&(h.passthroughs=s),g=h.document.$compat_mode(),v=h.passthroughs,p(p(i=p(a=e["$include?"]("++"))?a:e["$include?"]("$$"))?i:e["$include?"]("ss:"))&&(e=$(e,"gsub",[c(K,"InlinePassMacroRx")],(l=function(){var e,i=l.$$s||this,a=s,u=s,d=s,h=s,y=s,_=s,b=s,w=s,x=s;if(p(a=(e=m["~"])===s?s:e["$[]"](4))){if(p(p(e=g)?a["$=="]("++"):e))return function(){return p((e=m["~"])===s?s:e["$[]"](2))?((e=m["~"])===s?s:e["$[]"](1))+"["+((e=m["~"])===s?s:e["$[]"](2))+"]"+((e=m["~"])===s?s:e["$[]"](3)):""+((e=m["~"])===s?s:e["$[]"](1))+((e=m["~"])===s?s:e["$[]"](3))}()+"++"+i.$extract_passthroughs((e=m["~"])===s?s:e["$[]"](5))+"++";if(p(u=(e=m["~"])===s?s:e["$[]"](2))){if(p(r(d=((e=m["~"])===s?s:e["$[]"](3)).$length(),0)))return((e=m["~"])===s?s:e["$[]"](1))+"["+u+"]"+o(c(K,"RS"),n(d,1))+a+((e=m["~"])===s?s:e["$[]"](5))+a;((e=m["~"])===s?s:e["$[]"](1))["$=="](c(K,"RS"))?h="["+u+"]":(p((e=a["$=="]("++"))?u["$end_with?"]("x-"):a["$=="]("++"))&&(y=!0,u=u.$slice(0,n(u.$length(),2))),_=i.$parse_quoted_text_attributes(u))}else if(p(r(d=((e=m["~"])===s?s:e["$[]"](3)).$length(),0)))return""+o(c(K,"RS"),n(d,1))+a+((e=m["~"])===s?s:e["$[]"](5))+a;b=function(){return a["$=="]("+++")?[]:c(K,"BASIC_SUBS")}(),p(_)?p(y)?(w=[x=v.$size(),f(["text","subs","type","attributes"],{text:(e=m["~"])===s?s:e["$[]"](5),subs:c(K,"NORMAL_SUBS"),type:"monospaced",attributes:_})],$(v,"[]=",t.to_a(w)),w[n(w["length"],1)]):(w=[x=v.$size(),f(["text","subs","type","attributes"],{text:(e=m["~"])===s?s:e["$[]"](5),subs:b,type:"unquoted",attributes:_})],$(v,"[]=",t.to_a(w)),w[n(w["length"],1)]):(w=[x=v.$size(),f(["text","subs"],{text:(e=m["~"])===s?s:e["$[]"](5),subs:b})],$(v,"[]=",t.to_a(w)),w[n(w["length"],1)])}else{if(((e=m["~"])===s?s:e["$[]"](6))["$=="](c(K,"RS")))return((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length());p(b=(e=m["~"])===s?s:e["$[]"](7))?(w=[x=v.$size(),f(["text","subs"],{text:i.$normalize_text((e=m["~"])===s?s:e["$[]"](8),s,!0),subs:i.$resolve_pass_subs(b)})],$(v,"[]=",t.to_a(w)),w[n(w["length"],1)]):(w=[x=v.$size(),f(["text"],{text:i.$normalize_text((e=m["~"])===s?s:e["$[]"](8),s,!0)})],$(v,"[]=",t.to_a(w)),w[n(w["length"],1)])}return""+(p(e=h)?e:"")+c(K,"PASS_START")+x+c(K,"PASS_END")},l.$$s=h,l.$$arity=0,l))),a=c(K,"InlinePassRx")["$[]"](g),i=t.to_ary(a),y=null==i[0]?s:i[0],_=null==i[1]?s:i[1],b=null==i[2]?s:i[2],p(p(i=e["$include?"](y))?i:p(a=_)?e["$include?"](_):a)&&(e=$(e,"gsub",[b],(u=function(){var e,r=u.$$s||this,i=s,o=s,a=s,l=s,d=s,h=s,y=s,_=s,b=s,w=s,x=s;if(i=(e=m["~"])===s?s:e["$[]"](1),o=(e=m["~"])===s?s:e["$[]"](2),p((a=(e=m["~"])===s?s:e["$[]"](3))["$start_with?"](c(K,"RS")))&&(l=c(K,"RS")),d=(e=m["~"])===s?s:e["$[]"](4),h=(e=m["~"])===s?s:e["$[]"](5),p(g)?y=!0:p(y=p(e=o)?o["$end_with?"]("x-"):e)&&(o=o.$slice(0,n(o.$length(),2))),p(o)){if(p((e=d["$=="]("`"))?y["$!"]():d["$=="]("`")))return r.$extract_inner_passthrough(h,i+"["+o+"]"+l);if(p(l))return i+"["+o+"]"+a.$slice(1,a.$length());i["$=="](c(K,"RS"))?i="["+o+"]":_=r.$parse_quoted_text_attributes(o)}else{if(p((e=d["$=="]("`"))?y["$!"]():d["$=="]("`")))return r.$extract_inner_passthrough(h,""+i+l);if(p(l))return""+i+a.$slice(1,a.$length())}return p(g)?(b=[w=v.$size(),f(["text","subs","attributes","type"],{text:h,subs:c(K,"BASIC_SUBS"),attributes:_,type:"monospaced"})],$(v,"[]=",t.to_a(b)),b[n(b["length"],1)]):p(_)?p(y)?(x=function(){return d["$=="]("`")?c(K,"BASIC_SUBS"):c(K,"NORMAL_SUBS")}(),b=[w=v.$size(),f(["text","subs","attributes","type"],{text:h,subs:x,attributes:_,type:"monospaced"})],$(v,"[]=",t.to_a(b)),b[n(b["length"],1)]):(b=[w=v.$size(),f(["text","subs","attributes","type"],{text:h,subs:c(K,"BASIC_SUBS"),attributes:_,type:"unquoted"})],$(v,"[]=",t.to_a(b)),b[n(b["length"],1)]):(b=[w=v.$size(),f(["text","subs"],{text:h,subs:c(K,"BASIC_SUBS")})],$(v,"[]=",t.to_a(b)),b[n(b["length"],1)]),""+i+c(K,"PASS_START")+w+c(K,"PASS_END")},u.$$s=h,u.$$arity=0,u))),p(p(i=e["$include?"](":"))?p(a=e["$include?"]("stem:"))?a:e["$include?"]("math:"):i)&&(e=$(e,"gsub",[c(K,"InlineStemMacroRx")],(d=function(){var e,r=d.$$s||this,i=s,o=s,a=s,l=s,u=s;return null==r.document&&(r.document=s),p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))?((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length()):((i=((e=m["~"])===s?s:e["$[]"](1)).$to_sym())["$=="]("stem")&&(i=c(K,"STEM_TYPE_ALIASES")["$[]"](r.document.$attributes()["$[]"]("stem")).$to_sym()),o=(e=m["~"])===s?s:e["$[]"](2),a=r.$normalize_text((e=m["~"])===s?s:e["$[]"](3),s,!0),p(p(e=i["$=="]("latexmath")?a["$start_with?"]("$"):i["$=="]("latexmath"))?a["$end_with?"]("$"):e)&&(a=a.$slice(1,n(a.$length(),2))),o=function(){return p(o)?r.$resolve_pass_subs(o):p(r.document["$basebackend?"]("html"))?c(K,"BASIC_SUBS"):s}(),l=[u=v.$size(),f(["text","subs","type"],{text:a,subs:o,type:i})],$(v,"[]=",t.to_a(l)),l[n(l["length"],1)],""+c(K,"PASS_START")+u+c(K,"PASS_END"))},d.$$s=h,d.$$arity=0,d))),e},B.$$arity=1),t.def(Y,"$restore_passthroughs",L=function(t){var e,n=this,r=s;return null==n.passthroughs&&(n.passthroughs=s),r=n.passthroughs,$(t,"gsub",[c(K,"PassSlotRx")],(e=function(){var n,i=e.$$s||this,o=s,a=s,l=s,u=s,d=s;return p(o=r["$[]"](((n=m["~"])===s?s:n["$[]"](1)).$to_i()))?(a=i.$apply_subs(o["$[]"]("text"),o["$[]"]("subs")),p(l=o["$[]"]("type"))&&(p(u=o["$[]"]("attributes"))&&(d=u["$[]"]("id")),a=c(K,"Inline").$new(i,"quoted",a,f(["type","id","attributes"],{type:l,id:d,attributes:u})).$convert()),p(a["$include?"](c(K,"PASS_START")))?i.$restore_passthroughs(a):a):(i.$logger().$error("unresolved passthrough detected: "+t),"??pass??")},e.$$s=n,e.$$arity=0,e))},L.$$arity=1),t.def(Y,"$resolve_subs",I=function(t,i,o,a){var l,u=this,d=s,f=s,h=s,m=s;return null==i&&(i="block"),null==o&&(o=s),null==a&&(a=s),p(t["$nil_or_empty?"]())?s:(d=s,p(t["$include?"](" "))&&(t=t.$delete(" ")),f=c(K,"SubModifierSniffRx")["$match?"](t),$(t.$split(","),"each",[],(l=function(t){l.$$s;var r,a,u=s,h=s,$=s,m=s,g=s,v=s;return null==t&&(t=s),u=s,p(f)&&((h=t.$chr())["$=="]("+")?(u="append",t=t.$slice(1,t.$length())):h["$=="]("-")?(u="remove",t=t.$slice(1,t.$length())):p(t["$end_with?"]("+"))&&(u="prepend",t=t.$chop())),t=t.$to_sym(),p((r=i["$=="]("inline"))?p(a=t["$=="]("verbatim"))?a:t["$=="]("v"):i["$=="]("inline"))?$=c(K,"BASIC_SUBS"):p(c(K,"SUB_GROUPS")["$key?"](t))?$=c(K,"SUB_GROUPS")["$[]"](t):p(p(r=(a=i["$=="]("inline"))?t.$length()["$=="](1):i["$=="]("inline"))?c(K,"SUB_HINTS")["$key?"](t):r)?(m=c(K,"SUB_HINTS")["$[]"](t),$=p(g=c(K,"SUB_GROUPS")["$[]"](m))?g:[m]):$=[t],p(u)?(d=p(r=d)?r:function(){return p(o)?o.$drop(0):[]}(),function(){return v=u,"append"["$==="](v)?d=e(d,$):"prepend"["$==="](v)?d=e($,d):"remove"["$==="](v)?d=n(d,$):s}()):(d=p(r=d)?r:[],d=e(d,$))},l.$$s=u,l.$$arity=1,l)),p(d)?(h=d["$&"](c(K,"SUB_OPTIONS")["$[]"](i)),p(n(d,h)["$empty?"]())||(m=n(d,h),u.$logger().$warn("invalid substitution type"+function(){return p(r(m.$size(),1))?"s":""}()+function(){return p(a)?" for ":""}()+a+": "+m.$join(", "))),h):s)},I.$$arity=-2),t.def(Y,"$resolve_block_subs",D=function(t,e,n){var r=this;return r.$resolve_subs(t,"block",e,n)},D.$$arity=3),t.def(Y,"$resolve_pass_subs",R=function(t){var e=this;return e.$resolve_subs(t,"inline",s,"passthrough macro")},R.$$arity=1),t.def(Y,"$expand_subs",j=function(t){var n,r,i=this,o=s;return p(l("::","Symbol")["$==="](t))?t["$=="]("none")?s:p(n=c(K,"SUB_GROUPS")["$[]"](t))?n:[t]:(o=[],$(t,"each",[],(r=function(t){r.$$s;var n=s;return null==t&&(t=s),t["$=="]("none")?s:p(n=c(K,"SUB_GROUPS")["$[]"](t))?o=e(o,n):o["$<<"](t)},r.$$s=i,r.$$arity=1,r)),p(o["$empty?"]())?s:o)},j.$$arity=1),t.def(Y,"$commit_subs",M=function(){var e,r,i,o=this,a=s,l=s,u=s,d=s,f=s,h=s;if(null==o.default_subs&&(o.default_subs=s),null==o.content_model&&(o.content_model=s),null==o.context&&(o.context=s),null==o.subs&&(o.subs=s),null==o.attributes&&(o.attributes=s),null==o.style&&(o.style=s),null==o.document&&(o.document=s),p(a=o.default_subs));else if(l=o.content_model,"simple"["$==="](l))a=c(K,"NORMAL_SUBS");else if("verbatim"["$==="](l))a=function(){return o.context["$=="]("verse")?c(K,"NORMAL_SUBS"):c(K,"VERBATIM_SUBS")}();else{if(!"raw"["$==="](l))return o.subs;a=function(){return o.context["$=="]("stem")?c(K,"BASIC_SUBS"):c(K,"NO_SUBS")}()}return p(u=o.attributes["$[]"]("subs"))?o.subs=p(e=o.$resolve_block_subs(u,a,o.context))?e:[]:o.subs=a.$drop(0),p(p(e=p(r=p(i=o.context["$=="]("listing")?o.style["$=="]("source"):o.context["$=="]("listing"))?d=o.document.$syntax_highlighter():i)?d["$highlight?"]():r)?f=o.subs.$index("specialcharacters"):e)&&(h=[f,"highlight"],$(o.subs,"[]=",t.to_a(h)),h[n(h["length"],1)]),s},M.$$arity=0),t.def(Y,"$parse_attributes",F=function(t,e,n){var r,i=this,o=s,a=s;return null==i.document&&(i.document=s),null==e&&(e=[]),null==n&&(n=f([],{})),p(function(){return!p(t)||t["$empty?"]()}())?f([],{}):(p(n["$[]"]("unescape_input"))&&(t=i.$normalize_text(t,!0,!0)),p(p(r=n["$[]"]("sub_input"))?t["$include?"](c(K,"ATTR_REF_HEAD")):r)&&(t=i.document.$sub_attributes(t)),p(n["$[]"]("sub_result"))&&(o=i),p(a=n["$[]"]("into"))?c(K,"AttributeList").$new(t,o).$parse_into(a,e):c(K,"AttributeList").$new(t,o).$parse(e))},F.$$arity=-2),Y.$private(),t.def(Y,"$extract_callouts",N=function(r){var i,o=this,a=s,l=s,u=s,d=s;return a=f([],{}),l=0,u=s,d=function(){return p(o["$attr?"]("line-comment"))?c(K,"CalloutExtractRxMap")["$[]"](o.$attr("line-comment")):c(K,"CalloutExtractRx")}(),r=$(r.$split(c(K,"LF"),-1),"map",[],(i=function(r){var o,f=i.$$s||this;return null==r&&(r=s),l=e(l,1),$(r,"gsub",[d],(o=function(){o.$$s;var e,r=s;return p((e=m["~"])===s?s:e["$[]"](2))?((e=m["~"])===s?s:e["$[]"](0)).$sub(c(K,"RS"),""):((p(e=a["$[]"](l))?e:(r=[l,[]],$(a,"[]=",t.to_a(r)),r[n(r["length"],1)]))["$<<"]([(e=m["~"])===s?s:e["$[]"](1),(e=m["~"])===s?s:e["$[]"](4)]),u=l,"")},o.$$s=f,o.$$arity=0,o))},i.$$s=o,i.$$arity=1,i)).$join(c(K,"LF")),p(u)?u["$=="](l)&&(r=""+r+c(K,"LF")):a=s,[r,a]},N.$$arity=1),t.def(Y,"$restore_callouts",z=function(n,r,i){var o,a=this,l=s,u=s,d=s;return null==i&&(i=s),p(i)?(l=n.$slice(0,i),n=n.$slice(i,n.$length())):l="",u=d=0,e(l,$(n.$split(c(K,"LF"),-1),"map",[],(o=function(n){var i,a,l,h=o.$$s||this,m=s,g=s,v=s;return null==h.document&&(h.document=s),null==n&&(n=s),p(m=r.$delete(d=e(d,1)))?m.$size()["$=="](1)?(a=m["$[]"](0),i=t.to_ary(a),g=null==i[0]?s:i[0],v=null==i[1]?s:i[1],""+n+c(K,"Inline").$new(h,"callout",function(){return v["$=="](".")?(u=e(u,1)).$to_s():v}(),f(["id","attributes"],{id:h.document.$callouts().$read_next_id(),attributes:f(["guard"],{guard:g})})).$convert()):""+n+$(m,"map",[],(l=function(t,n){var r=l.$$s||this;return null==r.document&&(r.document=s),null==t&&(t=s),null==n&&(n=s),c(K,"Inline").$new(r,"callout",function(){return n["$=="](".")?(u=e(u,1)).$to_s():n}(),f(["id","attributes"],{id:r.document.$callouts().$read_next_id(),attributes:f(["guard"],{guard:t})})).$convert()},l.$$s=h,l.$$arity=2,l)).$join(" "):n},o.$$s=a,o.$$arity=1,o)).$join(c(K,"LF")))},z.$$arity=-3),t.def(Y,"$extract_inner_passthrough",H=function(e,r){var i,o,a=this,l=s,u=s;return null==a.passthroughs&&(a.passthroughs=s),p(p(i=p(o=e["$end_with?"]("+"))?e["$start_with?"]("+","\\+"):o)?c(K,"SinglePlusInlinePassRx")["$=~"](e):i)?p((i=m["~"])===s?s:i["$[]"](1))?r+"`+"+((i=m["~"])===s?s:i["$[]"](2))+"+`":(l=[u=a.passthroughs.$size(),f(["text","subs"],{text:(i=m["~"])===s?s:i["$[]"](2),subs:c(K,"BASIC_SUBS")})],$(a.passthroughs,"[]=",t.to_a(l)),l[n(l["length"],1)],r+"`"+c(K,"PASS_START")+u+c(K,"PASS_END")+"`"):r+"`"+e+"`"},H.$$arity=2),t.def(Y,"$convert_quoted_text",V=function(t,e,n){var r=this,i=s,o=s,a=s,l=s,u=s;if(p(t["$[]"](0)["$start_with?"](c(K,"RS")))){if(!p(n["$=="]("constrained")?i=t["$[]"](2):n["$=="]("constrained")))return t["$[]"](0).$slice(1,t["$[]"](0).$length());o="["+i+"]"}return n["$=="]("constrained")?p(o)?""+o+c(K,"Inline").$new(r,"quoted",t["$[]"](3),f(["type"],{type:e})).$convert():(p(a=t["$[]"](2))&&(l=(u=r.$parse_quoted_text_attributes(a))["$[]"]("id"),e["$=="]("mark")&&(e="unquoted")),""+t["$[]"](1)+c(K,"Inline").$new(r,"quoted",t["$[]"](3),f(["type","id","attributes"],{type:e,id:l,attributes:u})).$convert()):(p(a=t["$[]"](1))&&(l=(u=r.$parse_quoted_text_attributes(a))["$[]"]("id"),e["$=="]("mark")&&(e="unquoted")),c(K,"Inline").$new(r,"quoted",t["$[]"](2),f(["type","id","attributes"],{type:e,id:l,attributes:u})).$convert())},V.$$arity=3),t.def(Y,"$do_replacement",U=function(t,n,r){var i=s,o=s;return p((i=t["$[]"](0))["$include?"](c(K,"RS")))?i.$sub(c(K,"RS"),""):function(){return o=r,"none"["$==="](o)?n:"bounding"["$==="](o)?e(e(t["$[]"](1),n),t["$[]"](2)):e(t["$[]"](1),n)}()},U.$$arity=3),c(K,"RUBY_ENGINE")["$=="]("opal"),t.def(Y,"$parse_quoted_text_attributes",q=function(e){var i,o,a=this,l=s,d=s,h=s,m=s,g=s,v=s;return p((e=e.$rstrip())["$empty?"]())?f([],{}):(p(e["$include?"](c(K,"ATTR_REF_HEAD")))&&(e=a.$sub_attributes(e)),p(e["$include?"](","))&&(e=e.$slice(0,e.$index(","))),p(p(i=e["$start_with?"](".","#"))?c(K,"Compliance").$shorthand_property_syntax():i)?(l=e.$split("#",2),p(r(l.$size(),1))?(o=l["$[]"](1).$split("."),i=t.to_ary(o),d=null==i[0]?s:i[0],h=u.call(i,1)):h=[],m=function(){return p(l["$[]"](0)["$empty?"]())?[]:l["$[]"](0).$split(".")}(),p(r(m.$size(),1))&&m.$shift(),p(r(h.$size(),0))&&m.$concat(h),g=f([],{}),p(d)&&(v=["id",d],$(g,"[]=",t.to_a(v)),v[n(v["length"],1)]),p(m["$empty?"]())||(v=["role",m.$join(" ")],$(g,"[]=",t.to_a(v)),v[n(v["length"],1)]),g):f(["role"],{role:e}))},q.$$arity=1),t.def(Y,"$normalize_text",W=function(t,e,n){var r;return null==e&&(e=s),null==n&&(n=s),p(t["$empty?"]())||(p(e)&&(t=t.$strip().$tr(c(K,"LF")," ")),p(p(r=n)?t["$include?"](c(K,"R_SB")):r)&&(t=t.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB")))),t},W.$$arity=-2),t.def(Y,"$split_simple_csv",G=function(t){var n,r,i=this,o=s,a=s,l=s;return p(t["$empty?"]())?[]:p(t["$include?"]('"'))?(o=[],a="",l=s,$(t,"each_char",[],(n=function(t){n.$$s;var r=s;return null==t&&(t=s),function(){return r=t,","["$==="](r)?p(l)?a=e(a,t):(o["$<<"](a.$strip()),a=""):'"'["$==="](r)?l=l["$!"]():a=e(a,t)}()},n.$$s=i,n.$$arity=1,n)),o["$<<"](a.$strip())):$(t.$split(","),"map",[],(r=function(t){r.$$s;return null==t&&(t=s),t.$strip()},r.$$s=i,r.$$arity=1,r))},G.$$arity=1)})(y[0],y)}(a[0],a)},Opal.modules["asciidoctor/version"]=function(t){t.top;var e=[],n=(t.nil,t.const_get_qualified,t.const_get_relative,t.breaker,t.slice,t.module);return function(e,r){var i=n(e,"Asciidoctor"),o=[i].concat(r);t.const_set(o[0],"VERSION","2.0.10")}(e[0],e)},Opal.modules["asciidoctor/abstract_node"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t")+": "+(u(n=e["$[]"]("label"))?n:"file")+" does not exist or cannot be read: "+t),i):i},H.$$arity=-2),t.def(q,"$read_contents",V=function(e,n){var r,s,l,f,h,p=this,$=i,m=i;if(null==n&&(n=c([],{})),$=p.document,!u(u(r=a(W,"Helpers")["$uriish?"](e))?r:u(s=u(l=m=n["$[]"]("start"))?a(W,"Helpers")["$uriish?"](m):l)?e=$.$path_resolver().$web_path(e,m):s))return e=p.$normalize_system_path(e,n["$[]"]("start"),i,c(["target_name"],{target_name:u(r=n["$[]"]("label"))?r:"asset"})),p.$read_asset(e,c(["normalize","warn_on_failure","label"],{normalize:n["$[]"]("normalize"),warn_on_failure:n.$fetch("warn_on_failure",!0),label:n["$[]"]("label")}));if(!u($["$attr?"]("allow-uri-read")))return u(n.$fetch("warn_on_failure",!0))&&p.$logger().$warn("cannot retrieve contents of "+(u(r=n["$[]"]("label"))?r:"asset")+" at URI: "+e+" (allow-uri-read attribute not enabled)"),i;u($["$attr?"]("cache-uri"))&&a(W,"Helpers").$require_library("open-uri/cached","open-uri-cached");try{return u(n["$[]"]("normalize"))?a(W,"Helpers").$prepare_source_string(d(o("::","OpenURI"),"open_uri",[e,a(W,"URI_READ_MODE")],(f=function(t){f.$$s;return null==t&&(t=i),t.$read()},f.$$s=p,f.$$arity=1,f))).$join(a(W,"LF")):d(o("::","OpenURI"),"open_uri",[e,a(W,"URI_READ_MODE")],(h=function(t){h.$$s;return null==t&&(t=i),t.$read()},h.$$s=p,h.$$arity=1,h))}catch(g){if(!t.rescue(g,[a(W,"StandardError")]))throw g;try{return u(n.$fetch("warn_on_failure",!0))&&p.$logger().$warn("could not retrieve contents of "+(u(r=n["$[]"]("label"))?r:"asset")+" at URI: "+e),i}finally{t.pop_exception()}}},V.$$arity=-2),t.def(q,"$is_uri?",U=function(t){return a(W,"Helpers")["$uriish?"](t)},U.$$arity=1)})(p[0],null,p)}(r[0],r)},Opal.modules["asciidoctor/abstract_block"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}t.top;var i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.module),c=t.klass,u=t.hash2,d=t.send,f=t.truthy;return t.add_stubs(["$attr_reader","$attr_writer","$attr_accessor","$==","$===","$level","$file","$lineno","$playback_attributes","$convert","$converter","$join","$map","$to_s","$parent","$parent=","$-","$<<","$empty?","$>","$Integer","$find_by_internal","$to_proc","$context","$[]","$items","$+","$find_index","$include?","$next_adjacent_block","$blocks","$select","$sub_specialchars","$match?","$sub_replacements","$title","$apply_title_subs","$delete","$reftext","$!","$sub_placeholder","$sub_quotes","$compat_mode","$attributes","$chomp","$increment_and_store_counter","$index=","$numbered","$sectname","$counter","$numeral=","$numeral","$caption=","$int_to_roman","$each","$assign_numeral","$reindex_sections","$protected","$has_role?","$raise","$header?","$!=","$flatten","$head","$rows","$merge","$body","$foot","$style","$inner_document"]),function(i,h){var p=l(i,"Asciidoctor"),$=[p].concat(h);(function(i,l,h){var p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V=c(i,l,"AbstractBlock"),U=[V].concat(h);V.$$prototype.source_location=V.$$prototype.document=V.$$prototype.attributes=V.$$prototype.blocks=V.$$prototype.next_section_index=V.$$prototype.numeral=V.$$prototype.context=V.$$prototype.parent=V.$$prototype.caption=V.$$prototype.style=V.$$prototype.converted_title=V.$$prototype.title=V.$$prototype.subs=V.$$prototype.next_section_ordinal=V.$$prototype.id=V.$$prototype.header=o,V.$attr_reader("blocks"),V.$attr_writer("caption"),V.$attr_accessor("content_model"),V.$attr_accessor("level"),V.$attr_accessor("numeral"),V.$attr_accessor("source_location"),V.$attr_accessor("style"),V.$attr_reader("subs"),t.def(V,"$initialize",p=function(e,n,r){var i,a=p.$$p,l=this,c=o,h=o,$=o;for(a&&(p.$$p=null),h=0,$=arguments.length,c=new Array($);h<$;h++)c[h]=arguments[h];return null==r&&(r=u([],{})),d(l,t.find_super_dispatcher(l,"initialize",p,!1),c,a),l.content_model="compound",l.blocks=[],l.subs=[],l.id=l.title=l.caption=l.numeral=l.style=l.default_subs=l.source_location=o,f(f(i=n["$=="]("document"))?i:n["$=="]("section"))?(l.level=l.next_section_index=0,l.next_section_ordinal=1):f(s(U,"AbstractBlock")["$==="](e))?l.level=e.$level():l.level=o},p.$$arity=-3),t.def(V,"$block?",$=function(){return!0},$.$$arity=0),t.def(V,"$inline?",m=function(){return!1},m.$$arity=0),t.def(V,"$file",g=function(){var t,e=this;return f(t=e.source_location)?e.source_location.$file():t},g.$$arity=0),t.def(V,"$lineno",v=function(){var t,e=this;return f(t=e.source_location)?e.source_location.$lineno():t},v.$$arity=0),t.def(V,"$convert",y=function(){var t=this;return t.document.$playback_attributes(t.attributes),t.$converter().$convert(t)},y.$$arity=0),t.alias(V,"render","convert"),t.def(V,"$content",_=function(){var t,e=this;return d(e.blocks,"map",[],(t=function(e){t.$$s;return null==e&&(e=o),e.$convert()},t.$$s=e,t.$$arity=1,t)).$join(s(U,"LF"))},_.$$arity=0),t.def(V,"$context=",b=function(t){var e=this;return e.node_name=(e.context=t).$to_s()},b.$$arity=1),t.def(V,"$<<",w=function(n){var r=this,i=o;return n.$parent()["$=="](r)||(i=[r],d(n,"parent=",t.to_a(i)),i[e(i["length"],1)]),r.blocks["$<<"](n),r},w.$$arity=1),t.alias(V,"append","<<"),t.def(V,"$blocks?",x=function(){var t=this;return!f(t.blocks["$empty?"]())},x.$$arity=0),t.def(V,"$sections?",k=function(){var t=this;return n(t.next_section_index,0)},k.$$arity=0),t.def(V,"$number",S=function(){var e=this;try{return e.$Integer(e.numeral)}catch(n){if(!t.rescue(n,[s(U,"StandardError")]))throw n;try{return e.numeral}finally{t.pop_exception()}}},S.$$arity=0),t.def(V,"$find_by",O=function(e){var n=O.$$p,r=n||o,i=this,s=o;n&&(O.$$p=null),n&&(O.$$p=null),null==e&&(e=u([],{}));try{return d(i,"find_by_internal",[e,s=[]],r.$to_proc())}catch(l){if(!t.rescue(l,[a("::","StopIteration")]))throw l;try{return s}finally{t.pop_exception()}}},O.$$arity=-1),t.alias(V,"query","find_by"),t.def(V,"$next_adjacent_block",C=function(){var t,e=this,n=o,i=o;return e.context["$=="]("document")?o:f((n=e.parent).$context()["$=="]("dlist")?e.context["$=="]("list_item"):(n=e.parent).$context()["$=="]("dlist"))?f(i=n.$items()["$[]"](r(d(n.$items(),"find_index",[],(t=function(e,n){var r,i=t.$$s||this;return null==e&&(e=o),null==n&&(n=o),f(r=e["$include?"](i))?r:n["$=="](i)},t.$$s=e,t.$$arity=2,t)),1)))?i:n.$next_adjacent_block():f(i=n.$blocks()["$[]"](r(n.$blocks().$find_index(e),1)))?i:n.$next_adjacent_block()},C.$$arity=0),t.def(V,"$sections",A=function(){var t,e=this;return d(e.blocks,"select",[],(t=function(e){t.$$s;return null==e&&(e=o),e.$context()["$=="]("section")},t.$$s=e,t.$$arity=1,t))},A.$$arity=0),t.def(V,"$alt",E=function(){var t=this,e=o;return f(e=t.attributes["$[]"]("alt"))?e["$=="](t.attributes["$[]"]("default-alt"))?t.$sub_specialchars(e):(e=t.$sub_specialchars(e),f(s(U,"ReplaceableTextRx")["$match?"](e))?t.$sub_replacements(e):e):""},E.$$arity=0),t.def(V,"$caption",T=function(){var t=this;return t.context["$=="]("admonition")?t.attributes["$[]"]("textlabel"):t.caption},T.$$arity=0),t.def(V,"$captioned_title",P=function(){var t=this;return""+t.caption+t.$title()},P.$$arity=0),t.def(V,"$list_marker_keyword",B=function(t){var e,n=this;return null==t&&(t=o),s(U,"ORDERED_LIST_KEYWORDS")["$[]"](f(e=t)?e:n.style)},B.$$arity=-1),t.def(V,"$title",L=function(){var t,e,n=this;return n.converted_title=f(t=n.converted_title)?t:f(e=n.title)?n.$apply_title_subs(n.title):e},L.$$arity=0),t.def(V,"$title?",I=function(){var t=this;return!!f(t.title)},I.$$arity=0),t.def(V,"$title=",D=function(t){var e=this;return e.converted_title=o,e.title=t},D.$$arity=1),t.def(V,"$sub?",R=function(t){var e=this;return e.subs["$include?"](t)},R.$$arity=1),t.def(V,"$remove_sub",j=function(t){var e=this;return e.subs.$delete(t),o},j.$$arity=1),t.def(V,"$xreftext",M=function(t){var e,n,r=this,i=o,a=o,l=o,c=o,u=o;return null==t&&(t=o),f(f(e=i=r.$reftext())?i["$empty?"]()["$!"]():e)?i:f(f(e=f(n=t)?r.title:n)?r.caption:e)?function(){return a=t,"full"["$==="](a)?(l=r.$sub_placeholder(r.$sub_quotes(function(){return f(r.document.$compat_mode())?"``%s''":'"`%s`"'}()),r.$title()),f(f(e=f(n=r.numeral)?c=s(U,"CAPTION_ATTR_NAMES")["$[]"](r.context):n)?u=r.document.$attributes()["$[]"](c):e)?u+" "+r.numeral+", "+l:r.caption.$chomp(". ")+", "+l):"short"["$==="](a)?f(f(e=f(n=r.numeral)?c=s(U,"CAPTION_ATTR_NAMES")["$[]"](r.context):n)?u=r.document.$attributes()["$[]"](c):e)?u+" "+r.numeral:r.caption.$chomp(". "):r.$title()}():r.$title()},M.$$arity=-1),t.def(V,"$assign_caption",F=function(t,e){var n,r,i=this,a=o,l=o;return null==e&&(e=i.context),f(f(n=f(r=i.caption)?r:i.title["$!"]())?n:i.caption=f(r=t)?r:i.document.$attributes()["$[]"]("caption"))?o:f(f(n=a=s(U,"CAPTION_ATTR_NAMES")["$[]"](e))?l=i.document.$attributes()["$[]"](a):n)?(i.caption=l+" "+(i.numeral=i.document.$increment_and_store_counter(e+"-number",i))+". ",o):o},F.$$arity=-2),t.def(V,"$assign_numeral",N=function(n){var i,a=this,l=o,c=o,u=o,h=o;return a.next_section_index=r((l=[a.next_section_index],d(n,"index=",t.to_a(l)),l[e(l["length"],1)]),1),f(c=n.$numbered())&&((u=n.$sectname())["$=="]("appendix")?(l=[a.document.$counter("appendix-number","A")],d(n,"numeral=",t.to_a(l)),l[e(l["length"],1)],l=[function(){return f(h=a.document.$attributes()["$[]"]("appendix-caption"))?h+" "+n.$numeral()+": ":n.$numeral()+". "}()],d(n,"caption=",t.to_a(l)),l[e(l["length"],1)]):f(f(i=u["$=="]("chapter"))?i:c["$=="]("chapter"))?(l=[a.document.$counter("chapter-number",1).$to_s()],d(n,"numeral=",t.to_a(l)),l[e(l["length"],1)]):(l=[function(){return u["$=="]("part")?s(U,"Helpers").$int_to_roman(a.next_section_ordinal):a.next_section_ordinal.$to_s()}()],d(n,"numeral=",t.to_a(l)),l[e(l["length"],1)],a.next_section_ordinal=r(a.next_section_ordinal,1))),o},N.$$arity=1),t.def(V,"$reindex_sections",z=function(){var t,e=this;return e.next_section_index=0,e.next_section_ordinal=1,d(e.blocks,"each",[],(t=function(e){var n=t.$$s||this;return null==e&&(e=o),e.$context()["$=="]("section")?(n.$assign_numeral(e),e.$reindex_sections()):o},t.$$s=e,t.$$arity=1,t))},z.$$arity=0),V.$protected(),t.def(V,"$find_by_internal",H=function(e,n){var i,s,l,c,h,p,$,m,g,v,y=H.$$p,_=y||o,b=this,w=o,x=o,k=o,S=o,O=o,C=o,A=o;if(y&&(H.$$p=null),y&&(H.$$p=null),null==e&&(e=u([],{})),null==n&&(n=[]),f(f(i=f(s=f(l=f(c=w=function(){return!f(x=e["$[]"]("context"))||o}())?c:x["$=="](b.context))?f(c=(k=e["$[]"]("style"))["$!"]())?c:k["$=="](b.style):l)?f(l=(S=e["$[]"]("role"))["$!"]())?l:b["$has_role?"](S):s)?f(s=(O=e["$[]"]("id"))["$!"]())?s:O["$=="](b.id):i))if(_!==o)if(f(C=t.yield1(_,b))){if(A=C,"prune"["$==="](A))return n["$<<"](b),f(O)&&b.$raise(a("::","StopIteration")),n;if("reject"["$==="](A))return f(O)&&b.$raise(a("::","StopIteration")),n;"stop"["$==="](A)?b.$raise(a("::","StopIteration")):(n["$<<"](b),f(O)&&b.$raise(a("::","StopIteration")))}else f(O)&&b.$raise(a("::","StopIteration"));else n["$<<"](b),f(O)&&b.$raise(a("::","StopIteration"));return A=b.context,"document"["$==="](A)?x["$=="]("document")||(f(f(i=b["$header?"]())?f(s=w)?s:x["$=="]("section"):i)&&d(b.header,"find_by_internal",[e,n],_.$to_proc()),d(b.blocks,"each",[],(h=function(t){h.$$s;return null==t&&(t=o),f(x["$=="]("section")?t.$context()["$!="]("section"):x["$=="]("section"))?o:d(t,"find_by_internal",[e,n],_.$to_proc())},h.$$s=b,h.$$arity=1,h))):"dlist"["$==="](A)?f(f(i=w)?i:x["$!="]("section"))&&d(b.blocks.$flatten(),"each",[],(p=function(t){p.$$s;return null==t&&(t=o),f(t)?d(t,"find_by_internal",[e,n],_.$to_proc()):o},p.$$s=b,p.$$arity=1,p)):"table"["$==="](A)?f(e["$[]"]("traverse_documents"))?(d(b.$rows().$head(),"each",[],($=function(t){var r,i=$.$$s||this;return null==t&&(t=o),d(t,"each",[],(r=function(t){r.$$s;return null==t&&(t=o),d(t,"find_by_internal",[e,n],_.$to_proc())},r.$$s=i,r.$$arity=1,r))},$.$$s=b,$.$$arity=1,$)),x["$=="]("inner_document")&&(e=e.$merge(u(["context"],{context:"document"}))),d(r(b.$rows().$body(),b.$rows().$foot()),"each",[],(m=function(t){var r,i=m.$$s||this;return null==t&&(t=o),d(t,"each",[],(r=function(t){r.$$s;return null==t&&(t=o),d(t,"find_by_internal",[e,n],_.$to_proc()),t.$style()["$=="]("asciidoc")?d(t.$inner_document(),"find_by_internal",[e,n],_.$to_proc()):o},r.$$s=i,r.$$arity=1,r))},m.$$s=b,m.$$arity=1,m))):d(r(r(b.$rows().$head(),b.$rows().$body()),b.$rows().$foot()),"each",[],(g=function(t){var r,i=g.$$s||this;return null==t&&(t=o),d(t,"each",[],(r=function(t){r.$$s;return null==t&&(t=o),d(t,"find_by_internal",[e,n],_.$to_proc())},r.$$s=i,r.$$arity=1,r))},g.$$s=b,g.$$arity=1,g)):d(b.blocks,"each",[],(v=function(t){v.$$s;return null==t&&(t=o),f(x["$=="]("section")?t.$context()["$!="]("section"):x["$=="]("section"))?o:d(t,"find_by_internal",[e,n],_.$to_proc())},v.$$s=b,v.$$arity=1,v)),n},H.$$arity=-1)})($[0],s($,"AbstractNode"),$)}(i[0],i)},Opal.modules["asciidoctor/attribute_list"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}t.top;var i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.module),c=t.klass,u=t.hash,d=t.hash2,f=t.truthy,h=t.send;return t.add_stubs(["$new","$[]","$update","$parse","$parse_attribute","$eos?","$skip_delimiter","$+","$rekey","$each","$[]=","$-","$private","$skip_blank","$==","$peek","$parse_attribute_value","$get_byte","$start_with?","$scan_name","$!","$!=","$*","$scan_to_delimiter","$===","$include?","$delete","$split","$empty?","$apply_subs","$scan_to_quote","$gsub","$skip","$scan"]),function(i,p){var $=l(i,"Asciidoctor"),m=[$].concat(p);(function(i,l,p){var $,m,g,v,y,_,b,w,x,k,S,O,C=c(i,l,"AttributeList"),A=[C].concat(p);C.$$prototype.attributes=C.$$prototype.scanner=C.$$prototype.delimiter=C.$$prototype.block=C.$$prototype.delimiter_skip_pattern=C.$$prototype.delimiter_boundary_pattern=o,t.const_set(A[0],"BACKSLASH","\\"),t.const_set(A[0],"APOS","'"),t.const_set(A[0],"BoundaryRxs",u('"',/.*?[^\\](?=")/,s(A,"APOS"),/.*?[^\\](?=')/,",",/.*?(?=[ \t]*(,|$))/)),t.const_set(A[0],"EscapedQuotes",u('"','\\"',s(A,"APOS"),"\\'")),t.const_set(A[0],"NameRx",new RegExp(s(A,"CG_WORD")+"["+s(A,"CC_WORD")+"\\-.]*")),t.const_set(A[0],"BlankRx",/[ \t]+/),t.const_set(A[0],"SkipRxs",d([","],{",":/[ \t]*(,|$)/})),t.def(C,"$initialize",$=function(t,e,n){var r=this;return null==e&&(e=o),null==n&&(n=","),r.scanner=a("::","StringScanner").$new(t),r.block=e,r.delimiter=n,r.delimiter_skip_pattern=s(A,"SkipRxs")["$[]"](n),r.delimiter_boundary_pattern=s(A,"BoundaryRxs")["$[]"](n),r.attributes=o},$.$$arity=-2),t.def(C,"$parse_into",m=function(t,e){var n=this;return null==e&&(e=[]),t.$update(n.$parse(e))},m.$$arity=-2),t.def(C,"$parse",g=function(t){var n=this,r=o;if(null==t&&(t=[]),f(n.attributes))return n.attributes;n.attributes=d([],{}),r=0;while(f(n.$parse_attribute(r,t))){if(f(n.scanner["$eos?"]()))break;n.$skip_delimiter(),r=e(r,1)}return n.attributes},g.$$arity=-1),t.def(C,"$rekey",v=function(t){var e=this;return s(A,"AttributeList").$rekey(e.attributes,t)},v.$$arity=1),t.defs(C,"$rekey",y=function(r,i){var a,s=this,l=o;return l=0,h(i,"each",[],(a=function(i){a.$$s;var s=o,c=o;return null==i&&(i=o),l=e(l,1),f(i)&&f(s=r["$[]"](l))?(c=[i,s],h(r,"[]=",t.to_a(c)),c[n(c["length"],1)]):o},a.$$s=s,a.$$arity=1,a)),r},y.$$arity=2),C.$private(),t.def(C,"$parse_attribute",_=function(i,a){var l,c,u=this,d=o,p=o,$=o,m=o,g=o,v=o,y=o,_=o,b=o,w=o;if(null==i&&(i=0),null==a&&(a=[]),d=!1,u.$skip_blank(),(p=u.scanner.$peek(1))["$=="]('"'))$=u.$parse_attribute_value(u.scanner.$get_byte()),m=o;else if(p["$=="](s(A,"APOS")))$=u.$parse_attribute_value(u.scanner.$get_byte()),m=o,f($["$start_with?"](s(A,"APOS")))||(d=!0);else{if($=u.$scan_name(),g=0,v=o,f(u.scanner["$eos?"]())){if(!f($))return!1}else g=f(l=u.$skip_blank())?l:0,v=u.scanner.$get_byte();if(f(f(l=v["$!"]())?l:v["$=="](u.delimiter)))m=o;else if(f(f(l=v["$!="]("="))?l:$["$!"]()))$=""+$+r(" ",g)+v+u.$scan_to_delimiter(),m=o;else if(u.$skip_blank(),f(u.scanner.$peek(1)))if((v=u.scanner.$get_byte())["$=="]('"'))m=u.$parse_attribute_value(v);else if(v["$=="](s(A,"APOS")))m=u.$parse_attribute_value(v),f(m["$start_with?"](s(A,"APOS")))||(d=!0);else if(v["$=="](u.delimiter))m="";else if(m=""+v+u.$scan_to_delimiter(),m["$=="]("None"))return!0}return f(m)?(y=$,"options"["$==="](y)||"opts"["$==="](y)?f(m["$include?"](","))?(f(m["$include?"](" "))&&(m=m.$delete(" ")),h(m.$split(","),"each",[],(c=function(e){var r=c.$$s||this,i=o;return null==r.attributes&&(r.attributes=o),null==e&&(e=o),f(e["$empty?"]())?o:(i=[e+"-option",""],h(r.attributes,"[]=",t.to_a(i)),i[n(i["length"],1)])},c.$$s=u,c.$$arity=1,c))):f(m["$empty?"]())||(_=[m+"-option",""],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)]):f(f(l=d)?u.block:l)?(y=$,"title"["$==="](y)||"reftext"["$==="](y)?(_=[$,m],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)]):(_=[$,u.block.$apply_subs(m)],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)])):(_=[$,m],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)])):(b=function(){return f(f(l=d)?u.block:l)?u.block.$apply_subs($):$}(),f(w=a["$[]"](i))&&(_=[w,b],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)]),_=[e(i,1),b],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)]),!0},_.$$arity=-1),t.def(C,"$parse_attribute_value",b=function(t){var e=this,n=o;return e.scanner.$peek(1)["$=="](t)?(e.scanner.$get_byte(),""):f(n=e.$scan_to_quote(t))?(e.scanner.$get_byte(),f(n["$include?"](s(A,"BACKSLASH")))?n.$gsub(s(A,"EscapedQuotes")["$[]"](t),t):n):""+t+e.$scan_to_delimiter()},b.$$arity=1),t.def(C,"$skip_blank",w=function(){var t=this;return t.scanner.$skip(s(A,"BlankRx"))},w.$$arity=0),t.def(C,"$skip_delimiter",x=function(){var t=this;return t.scanner.$skip(t.delimiter_skip_pattern)},x.$$arity=0),t.def(C,"$scan_name",k=function(){var t=this;return t.scanner.$scan(s(A,"NameRx"))},k.$$arity=0),t.def(C,"$scan_to_delimiter",S=function(){var t=this;return t.scanner.$scan(t.delimiter_boundary_pattern)},S.$$arity=0),t.def(C,"$scan_to_quote",O=function(t){var e=this;return e.scanner.$scan(s(A,"BoundaryRxs")["$[]"](t))},O.$$arity=1)})(m[0],null,m)}(i[0],i)},Opal.modules["asciidoctor/block"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t"},m.$$arity=0)})(p[0],a(p,"AbstractBlock"),p)}(r[0],r)},Opal.modules["asciidoctor/callouts"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t<=e:t["$<="](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t0&&(s=r[0],r.splice(0,1)),null==s&&(s=i),u=o.$$smap["proxy_default"],null==u&&(u=!0),c(u)?a(_,"DefaultFactoryProxy").$new(s):a(_,"CustomFactory").$new(s)},d.$$arity=-1),t.defs(y,"$default",f=function(e){var n;return n=t.slice.call(arguments,0,arguments.length),n,a(_,"Converter")},f.$$arity=-1),t.defs(y,"$create",h=function(t,e){var n=this;return null==e&&(e=l([],{})),n.$default().$create(t,e)},h.$$arity=-2),t.def(y,"$register",p=function(n,r){var o,a,s,l=this;return o=t.slice.call(arguments,1,arguments.length),a=o,u(a,"each",[],(s=function(r){var o=s.$$s||this,a=i;return null==r&&(r=i),r["$=="]("*")?(a=[n],u(o.$registry(),"default=",t.to_a(a)),a[e(a["length"],1)]):(a=[r,n],u(o.$registry(),"[]=",t.to_a(a)),a[e(a["length"],1)])},s.$$s=l,s.$$arity=1,s))},p.$$arity=-2),t.def(y,"$for",$=function(t){var e=this;return e.$registry()["$[]"](t)},$.$$arity=1),t.def(y,"$create",m=function(t,e){var n,r,s=this,u=i,d=i,f=i;return null==e&&(e=l([],{})),c(u=s.$for(t))?(c(o("::","Class")["$==="](u))&&(u=u.$new(t,e)),c(c(n=c(r=d=e["$[]"]("template_dirs"))?a(_,"BackendTraits")["$==="](u):r)?u["$supports_templates?"]():n)?a(_,"CompositeConverter").$new(t,a(_,"TemplateConverter").$new(t,d,e),u,l(["backend_traits_source"],{backend_traits_source:u})):u):c(d=e["$[]"]("template_dirs"))?c(c(n=f=e["$[]"]("delegate_backend"))?u=s.$for(f):n)?(c(o("::","Class")["$==="](u))&&(u=u.$new(f,e)),a(_,"CompositeConverter").$new(t,a(_,"TemplateConverter").$new(t,d,e),u,l(["backend_traits_source"],{backend_traits_source:u}))):a(_,"TemplateConverter").$new(t,d,e):i},m.$$arity=-2),t.def(y,"$converters",g=function(){var t=this;return t.$registry().$merge()},g.$$arity=0),y.$private(),t.def(y,"$registry",v=function(){var t=this;return t.$raise(o("::","NotImplementedError"),a(_,"Factory")+" subclass "+t.$class()+" must implement the #registry method")},v.$$arity=0)}(b[0],b),function(n,r,o){var s,f,h=d(n,r,"CustomFactory"),p=[h].concat(o);h.$include(a(p,"Factory")),t.def(h,"$initialize",s=function(n){var r=this,o=i;return null==n&&(n=i),c(n)?(o=[n.$delete("*")],u(n,"default=",t.to_a(o)),o[e(o["length"],1)],r.registry=n):r.registry=l([],{})},s.$$arity=-1),t.def(h,"$unregister_all",f=function(){var n=this,r=i;return r=[i],u(n.$registry().$clear(),"default=",t.to_a(r)),r[e(r["length"],1)]},f.$$arity=0),h.$private(),h.$attr_reader("registry")}(b[0],null,b),function(e,n){var r,o=s(e,"DefaultFactory"),c=[o].concat(n);o.$include(a(c,"Factory")),o.$private(),t.class_variable_set(c[0],"@@registry",l([],{})),t.def(o,"$registry",r=function(){var t;return null==(t=c[0].$$cvars["@@registry"])?i:t},r.$$arity=0),a(c,"RUBY_ENGINE")["$=="]("opal")}(b[0],b),function(t,e,n){var r=d(t,e,"DefaultFactoryProxy"),i=[r].concat(n);r.$include(a(i,"DefaultFactory")),a(i,"RUBY_ENGINE")["$=="]("opal")}(b[0],a(b,"CustomFactory"),b),_.$private_class_method(c((t.defs(_,"$included",y=function(t){return t.$send("include",a(b,"BackendTraits")),t.$extend(a(b,"Config"))},y.$$arity=1),v=i&&"included"))?v:"included"),function(e,r,s){var l,u,h,p,$=d(e,r,"Base"),m=[$].concat(s);$.$$prototype.backend=i,$.$include(a(m,"Converter"),a(m,"Logging")),t.def($,"$convert",l=function(e,r,s){var l,u,d=this,h=i;null==f["!"]&&(f["!"]=i),null==r&&(r=e.$node_name()),null==s&&(s=i);try{return c(s)?d.$send(n("convert_",r),e,s):d.$send(n("convert_",r),e)}catch(p){if(!t.rescue(p,[a(m,"StandardError")]))throw p;try{return c(c(l=c(u=o("::","NoMethodError")["$==="](h=f["!"]))?h.$receiver()["$=="](d):u)?h.$name().$to_s()["$=="](r):l)||d.$raise(),d.$logger().$warn("missing convert handler for "+h.$name()+" node in "+d.backend+" backend ("+d.$class()+")"),i}finally{t.pop_exception()}}},l.$$arity=-2),t.def($,"$handles?",u=function(t){var e=this;return e["$respond_to?"]("convert_"+t)},u.$$arity=1),t.def($,"$content_only",h=function(t){return t.$content()},h.$$arity=1),t.def($,"$skip",p=function(t){return i},p.$$arity=1)}(b[0],null,b),_.$extend(a(b,"DefaultFactory"))})($[0],$)}(r[0],r)},Opal.modules["asciidoctor/document"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t=","$+","$abs","$to_i","$delete_if","$update_doctype_attributes","$cursor","$parse","$restore_attributes","$update_backend_attributes","$fetch","$fill_datetime_attributes","$activate","$create","$to_proc","$groups","$preprocessors?","$preprocessors","$process_method","$tree_processors?","$tree_processors","$!=","$counter","$nil_or_empty?","$nextval","$to_s","$value","$save_to","$register","$tap","$xreftext","$source","$source_lines","$doctitle","$sectname=","$title=","$first_section","$title","$reftext","$>","$<","$find","$context","$assign_numeral","$clear_playback_attributes","$save_attributes","$name","$negate","$rewind","$replace","$attribute_locked?","$apply_attribute_value_subs","$delete?","$start","$doctype","$content_model","$warn","$logger","$content","$convert","$postprocessors?","$postprocessors","$record","$write","$respond_to?","$chomp","$class","$write_alternate_pages","$map","$split","$resolve_docinfo_subs","$&","$normalize_system_path","$read_asset","$apply_subs","$docinfo_processors?","$join","$concat","$compact","$docinfo_processors","$object_id","$inspect","$size","$private","$=~","$resolve_pass_subs","$apply_header_subs","$limit_bytesize","$bytesize","$valid_encoding?","$byteslice","$resolve_subs","$utc","$at","$Integer","$now","$index","$strftime","$year","$utc_offset","$partition","$create_converter","$basebackend","$filetype","$htmlsyntax","$derive_backend_traits","$raise"]),function(a,g){var v=u(a,"Asciidoctor"),y=[v].concat(g);(function(a,u,g){var v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt=d(a,u,"Document"),gt=[mt].concat(g);mt.$$prototype.attributes=mt.$$prototype.safe=mt.$$prototype.sourcemap=mt.$$prototype.reader=mt.$$prototype.base_dir=mt.$$prototype.parsed=mt.$$prototype.parent_document=mt.$$prototype.extensions=mt.$$prototype.options=mt.$$prototype.counters=mt.$$prototype.catalog=mt.$$prototype.reftexts=mt.$$prototype.header=mt.$$prototype.blocks=mt.$$prototype.header_attributes=mt.$$prototype.attributes_modified=mt.$$prototype.backend=mt.$$prototype.attribute_overrides=mt.$$prototype.timings=mt.$$prototype.converter=mt.$$prototype.outfilesuffix=mt.$$prototype.docinfo_processor_extensions=mt.$$prototype.document=mt.$$prototype.max_attribute_value_size=mt.$$prototype.id=mt.$$prototype.doctype=s,t.const_set(gt[0],"ImageReference",f(l("::","Struct"),"new",["target","imagesdir"],(v=function(){var e=v.$$s||this;return t.alias(e,"to_s","target")},v.$$s=mt,v.$$arity=0,v))),t.const_set(gt[0],"Footnote",l("::","Struct").$new("index","id","text")),function(n,r,i){var o,a,l=d(n,r,"AttributeEntry");[l].concat(i);l.$attr_reader("name","value","negate"),t.def(l,"$initialize",o=function(t,e,n){var r=this;return null==n&&(n=s),r.name=t,r.value=e,r.negate=function(){return h(n["$nil?"]())?e["$nil?"]():n}()},o.$$arity=-3),t.def(l,"$save_to",a=function(n){var r,i=this,o=s;return(h(r=n["$[]"]("attribute_entries"))?r:(o=["attribute_entries",[]],f(n,"[]=",t.to_a(o)),o[e(o["length"],1)]))["$<<"](i),i},a.$$arity=1)}(gt[0],null,gt),function(e,n,r){var i,o,a,l,u=d(e,n,"Title"),f=[u].concat(r);u.$$prototype.sanitized=u.$$prototype.subtitle=u.$$prototype.combined=s,u.$attr_reader("main"),t.alias(u,"title","main"),u.$attr_reader("subtitle"),u.$attr_reader("combined"),t.def(u,"$initialize",i=function(e,n){var r,i,o=this,a=s;return null==n&&(n=p([],{})),h(h(r=o.sanitized=n["$[]"]("sanitize"))?e["$include?"]("<"):r)&&(e=e.$gsub(c(f,"XmlSanitizeRx"),"").$squeeze(" ").$strip()),h(h(r=(a=h(i=n["$[]"]("separator"))?i:":")["$empty?"]())?r:e["$include?"](a+=" ")["$!"]())?(o.main=e,o.subtitle=s):(i=e.$rpartition(a),r=t.to_ary(i),o.main=null==r[0]?s:r[0],null==r[1]?s:r[1],o.subtitle=null==r[2]?s:r[2]),o.combined=e},i.$$arity=-2),t.def(u,"$sanitized?",o=function(){var t=this;return t.sanitized},o.$$arity=0),t.def(u,"$subtitle?",a=function(){var t=this;return!!h(t.subtitle)},a.$$arity=0),t.def(u,"$to_s",l=function(){var t=this;return t.combined},l.$$arity=0)}(gt[0],null,gt),t.const_set(gt[0],"Author",l("::","Struct").$new("name","firstname","middlename","lastname","initials","email")),mt.$attr_reader("safe"),mt.$attr_reader("compat_mode"),mt.$attr_reader("backend"),mt.$attr_reader("doctype"),mt.$attr_accessor("sourcemap"),mt.$attr_reader("catalog"),t.alias(mt,"references","catalog"),mt.$attr_reader("counters"),mt.$attr_reader("header"),mt.$attr_reader("base_dir"),mt.$attr_reader("options"),mt.$attr_reader("outfilesuffix"),mt.$attr_reader("parent_document"),mt.$attr_reader("reader"),mt.$attr_reader("path_resolver"),mt.$attr_reader("converter"),mt.$attr_reader("syntax_highlighter"),mt.$attr_reader("extensions"),t.def(mt,"$initialize",y=function(i,o){var a,u,d,$,m,g,v,_,b=y.$$p,w=this,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s,I=s,D=s,R=s,j=s,M=s,F=s,N=s;return b&&(y.$$p=null),null==i&&(i=s),null==o&&(o=p([],{})),f(w,t.find_super_dispatcher(w,"initialize",y,!1),[w,"document"],null),h(x=o.$delete("parent"))?(w.parent_document=x,h(a=o["$[]"]("base_dir"))||(k=["base_dir",x.$base_dir()],f(o,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(x.$options()["$[]"]("catalog_assets"))&&(k=["catalog_assets",!0],f(o,"[]=",t.to_a(k)),k[e(k["length"],1)]),w.catalog=x.$catalog().$merge(p(["footnotes"],{footnotes:[]})),w.attribute_overrides=S=x.$attributes().$merge(),O=S.$delete("doctype"),S.$delete("compat-mode"),S.$delete("toc"),S.$delete("toc-placement"),S.$delete("toc-position"),w.safe=x.$safe(),h(w.compat_mode=x.$compat_mode())&&(k=["compat-mode",""],f(w.attributes,"[]=",t.to_a(k)),k[e(k["length"],1)]),w.outfilesuffix=x.$outfilesuffix(),w.sourcemap=x.$sourcemap(),w.timings=s,w.path_resolver=x.$path_resolver(),w.converter=x.$converter(),C=s,w.extensions=x.$extensions(),w.syntax_highlighter=x.$syntax_highlighter()):(w.parent_document=s,w.catalog=p(["ids","refs","footnotes","links","images","callouts","includes"],{ids:p([],{}),refs:p([],{}),footnotes:[],links:[],images:[],callouts:c(gt,"Callouts").$new(),includes:p([],{})}),w.attribute_overrides=S=p([],{}),f(h(a=o["$[]"]("attributes"))?a:p([],{}),"each",[],(u=function(n,r){var i;u.$$s;return null==n&&(n=s),null==r&&(r=s),h(n["$end_with?"]("@"))?h(n["$start_with?"]("!"))?(i=[n.$slice(1,e(n.$length(),2)),!1],n=i[0],r=i[1]):h(n["$end_with?"]("!@"))?(i=[n.$slice(0,e(n.$length(),2)),!1],n=i[0],r=i[1]):(i=[n.$chop(),r+"@"],n=i[0],r=i[1]):h(n["$start_with?"]("!"))?(i=[n.$slice(1,n.$length()),function(){return!r["$=="]("@")&&s}()],n=i[0],r=i[1]):h(n["$end_with?"]("!"))&&(i=[n.$chop(),function(){return!r["$=="]("@")&&s}()],n=i[0],r=i[1]),k=[n.$downcase(),r],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]},u.$$s=w,u.$$arity=2,u)),h(A=o["$[]"]("to_file"))&&(k=["outfilesuffix",c(gt,"Helpers").$extname(A)],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h((E=o["$[]"]("safe"))["$!"]())?w.safe=l(c(gt,"SafeMode"),"SECURE"):h(l("::","Integer")["$==="](E))?w.safe=E:w.safe=function(){try{return c(gt,"SafeMode").$value_for_name(E)}catch(e){if(!t.rescue(e,[c(gt,"StandardError")]))throw e;try{return l(c(gt,"SafeMode"),"SECURE")}finally{t.pop_exception()}}}(),T=o.$delete("input_mtime"),w.compat_mode=S["$key?"]("compat-mode"),w.sourcemap=o["$[]"]("sourcemap"),w.timings=o.$delete("timings"),w.path_resolver=c(gt,"PathResolver").$new(),C=function(){return!!h((d=l("::","Asciidoctor","skip_raise"))&&(a=l(d,"Extensions","skip_raise"))?"constant":s)||s}(),w.extensions=s,h(h($=o["$key?"]("header_footer"))?o["$key?"]("standalone")["$!"]():$)&&(k=["standalone",o["$[]"]("header_footer")],f(o,"[]=",t.to_a(k)),k[e(k["length"],1)])),w.parsed=w.reftexts=w.header=w.header_attributes=s,w.counters=p([],{}),w.attributes_modified=l("::","Set").$new(),w.docinfo_processor_extensions=p([],{}),P=o["$[]"]("standalone"),(w.options=o).$freeze(),B=w.attributes,k=["sectids",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["toc-placement","auto"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],h(P)?(k=["copycss",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["embedded",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]):(k=["notitle",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["embedded",""],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),k=["stylesheet",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["webfonts",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["prewrap",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["attribute-undefined",c(gt,"Compliance").$attribute_undefined()],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["attribute-missing",c(gt,"Compliance").$attribute_missing()],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["iconfont-remote",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["caution-caption","Caution"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["important-caption","Important"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["note-caption","Note"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["tip-caption","Tip"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["warning-caption","Warning"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["example-caption","Example"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["figure-caption","Figure"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["table-caption","Table"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["toc-title","Table of Contents"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["section-refsig","Section"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["part-refsig","Part"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["chapter-refsig","Chapter"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["appendix-caption",(k=["appendix-refsig","Appendix"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)])],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["untitled-label","Untitled"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["version-label","Version"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["last-update-label","Last updated"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["asciidoctor",""],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["asciidoctor-version",l(l("::","Asciidoctor"),"VERSION")],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["safe-mode-name",L=c(gt,"SafeMode").$name_for_value(w.safe)],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["safe-mode-"+L,""],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["safe-mode-level",w.safe],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],h($=S["$[]"]("max-include-depth"))||(k=["max-include-depth",64],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h($=S["$[]"]("allow-uri-read"))||(k=["allow-uri-read",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),k=["user-home",c(gt,"USER_HOME")],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],h(S["$key?"]("numbered"))&&(k=["sectnums",S.$delete("numbered")],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(S["$key?"]("hardbreaks"))&&(k=["hardbreaks-option",S.$delete("hardbreaks")],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(I=o["$[]"]("base_dir"))?w.base_dir=(k=["docdir",l("::","File").$expand_path(I)],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]):h(S["$[]"]("docdir"))?w.base_dir=S["$[]"]("docdir"):w.base_dir=(k=["docdir",l("::","Dir").$pwd()],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(D=o["$[]"]("backend"))&&(k=["backend",""+D],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(R=o["$[]"]("doctype"))&&(k=["doctype",""+R],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(n(w.safe,l(c(gt,"SafeMode"),"SERVER")))&&(h($=S["$[]"]("copycss"))||(k=["copycss",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h($=S["$[]"]("source-highlighter"))||(k=["source-highlighter",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h($=S["$[]"]("backend"))||(k=["backend",c(gt,"DEFAULT_BACKEND")],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(h($=x["$!"]())?S["$key?"]("docfile"):$)&&(k=["docfile",S["$[]"]("docfile")["$[]"](t.Range.$new(r(S["$[]"]("docdir").$length(),1),-1,!1))],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),k=["docdir",""],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["user-home","."],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],h(n(w.safe,l(c(gt,"SafeMode"),"SECURE")))&&(h(S["$key?"]("max-attribute-value-size"))||(k=["max-attribute-value-size",4096],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(S["$key?"]("linkcss"))||(k=["linkcss",""],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h($=S["$[]"]("icons"))||(k=["icons",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]))),w.max_attribute_value_size=function(){return h(j=h($=S["$[]"]("max-attribute-value-size"))?$:(k=["max-attribute-value-size",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]))?j.$to_i().$abs():s}(),f(S,"delete_if",[],(m=function(n,r){m.$$s;var i,o=s;return null==n&&(n=s),null==r&&(r=s),h(r)?(h(h(i=l("::","String")["$==="](r))?r["$end_with?"]("@"):i)&&(i=[r.$chop(),!0],r=i[0],o=i[1]),k=[n,r],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]):(B.$delete(n),o=r["$=="](!1)),o},m.$$s=w,m.$$arity=2,m)),h(x)?(w.backend=B["$[]"]("backend"),(w.doctype=(k=["doctype",O],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]))["$=="](c(gt,"DEFAULT_DOCTYPE"))||w.$update_doctype_attributes(c(gt,"DEFAULT_DOCTYPE")),w.reader=c(gt,"Reader").$new(i,o["$[]"]("cursor")),h(w.sourcemap)&&(w.source_location=w.reader.$cursor()),c(gt,"Parser").$parse(w.reader,w),w.$restore_attributes(),w.parsed=!0):(w.backend=s,(M=h($=B["$[]"]("backend"))?$:c(gt,"DEFAULT_BACKEND"))["$=="]("manpage")?w.doctype=(k=["doctype",(k=["doctype","manpage"],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)])],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]):w.doctype=h($=B["$[]"]("doctype"))?$:(k=["doctype",c(gt,"DEFAULT_DOCTYPE")],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]),w.$update_backend_attributes(M,!0),h($=B["$[]"]("stylesdir"))||(k=["stylesdir","."],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]),h($=B["$[]"]("iconsdir"))||(k=["iconsdir",B.$fetch("imagesdir","./images")+"/icons"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]),w.$fill_datetime_attributes(B,T),h(C)&&(h(F=o["$[]"]("extension_registry"))?h(h($=l(c(gt,"Extensions"),"Registry")["$==="](F))?$:h(g=(_=l("::","AsciidoctorJ","skip_raise"))&&(v=l(_,"Extensions","skip_raise"))&&l(v,"ExtensionRegistry","skip_raise")?"constant":s)?l(l(l("::","AsciidoctorJ"),"Extensions"),"ExtensionRegistry")["$==="](F):g)&&(w.extensions=F.$activate(w)):h(l("::","Proc")["$==="](N=o["$[]"]("extensions")))?w.extensions=f(c(gt,"Extensions"),"create",[],N.$to_proc()).$activate(w):h(c(gt,"Extensions").$groups()["$empty?"]()["$!"]())&&(w.extensions=l(c(gt,"Extensions"),"Registry").$new().$activate(w))),w.reader=c(gt,"PreprocessorReader").$new(w,i,l(c(gt,"Reader"),"Cursor").$new(B["$[]"]("docfile"),w.base_dir),p(["normalize"],{normalize:!0})),h(w.sourcemap)?w.source_location=w.reader.$cursor():s)},y.$$arity=-1),t.def(mt,"$parse",_=function(t){var e,n,r,i=this,o=s,a=s;return null==t&&(t=s),h(i.parsed)?i:(o=i,h(t)&&(i.reader=c(gt,"PreprocessorReader").$new(o,t,l(c(gt,"Reader"),"Cursor").$new(i.attributes["$[]"]("docfile"),i.base_dir),p(["normalize"],{normalize:!0})),h(i.sourcemap)&&(i.source_location=i.reader.$cursor())),h(h(e=a=function(){return h(i.parent_document)?s:i.extensions}())?a["$preprocessors?"]():e)&&f(a.$preprocessors(),"each",[],(n=function(t){var e,r=n.$$s||this;return null==r.reader&&(r.reader=s),null==t&&(t=s),r.reader=h(e=t.$process_method()["$[]"](o,r.reader))?e:r.reader},n.$$s=i,n.$$arity=1,n)),c(gt,"Parser").$parse(i.reader,o,p(["header_only"],{header_only:i.options["$[]"]("parse_header_only")})),i.$restore_attributes(),h(h(e=a)?a["$tree_processors?"]():e)&&f(a.$tree_processors(),"each",[],(r=function(t){r.$$s;var e,n,i=s;return null==t&&(t=s),h(h(e=h(n=i=t.$process_method()["$[]"](o))?c(gt,"Document")["$==="](i):n)?i["$!="](o):e)?o=i:s},r.$$s=i,r.$$arity=1,r)),i.parsed=!0,o)},_.$$arity=-1),t.def(mt,"$parsed?",b=function(){var t=this;return t.parsed},b.$$arity=0),t.def(mt,"$counter",w=function(n,r){var i,o=this,a=s,l=s,u=s;return null==r&&(r=s),h(o.parent_document)?o.parent_document.$counter(n,r):h(h(i=a=(l=o.attributes["$[]"](n))["$nil_or_empty?"]()["$!"]())?o.counters["$key?"](n):i)?(u=[n,(u=[n,c(gt,"Helpers").$nextval(l)],f(o.counters,"[]=",t.to_a(u)),u[e(u["length"],1)])],f(o.attributes,"[]=",t.to_a(u)),u[e(u["length"],1)]):h(r)?(u=[n,(u=[n,function(){return r["$=="](r.$to_i().$to_s())?r.$to_i():r}()],f(o.counters,"[]=",t.to_a(u)),u[e(u["length"],1)])],f(o.attributes,"[]=",t.to_a(u)),u[e(u["length"],1)]):(u=[n,(u=[n,c(gt,"Helpers").$nextval(function(){return h(a)?l:0}())],f(o.counters,"[]=",t.to_a(u)),u[e(u["length"],1)])],f(o.attributes,"[]=",t.to_a(u)),u[e(u["length"],1)])},w.$$arity=-2),t.def(mt,"$increment_and_store_counter",x=function(t,e){var n=this;return c(gt,"AttributeEntry").$new(t,n.$counter(t)).$save_to(e.$attributes()).$value()},x.$$arity=2),t.alias(mt,"counter_increment","increment_and_store_counter"),t.def(mt,"$register",k=function(n,r){var i=this,o=s,a=s,l=s,u=s,d=s;return function(){return o=n,"ids"["$==="](o)?i.$register("refs",[a=r["$[]"](0),c(gt,"Inline").$new(i,"anchor",r["$[]"](1),p(["type","id"],{type:"ref",id:a}))]):"refs"["$==="](o)?(l=i.catalog["$[]"]("refs"),h(l["$[]"](r["$[]"](0)))||(u=[r["$[]"](0),d=r["$[]"](1)],f(l,"[]=",t.to_a(u)),u[e(u["length"],1)]),d):"footnotes"["$==="](o)?i.catalog["$[]"](n)["$<<"](r):h(i.options["$[]"]("catalog_assets"))?i.catalog["$[]"](n)["$<<"](function(){return n["$=="]("images")?c(gt,"ImageReference").$new(r,i.attributes["$[]"]("imagesdir")):r}()):s}()},k.$$arity=2),t.def(mt,"$resolve_id",S=function(n){var r,i,o=this,a=s;return h(o.reftexts)?o.reftexts["$[]"](n):h(o.parsed)?f(o.reftexts=p([],{}),"tap",[],(r=function(n){var i,o=r.$$s||this;return null==o.catalog&&(o.catalog=s),null==n&&(n=s),f(o.catalog["$[]"]("refs"),"each",[],(i=function(r,o){i.$$s;var a,l=s;return null==r&&(r=s),null==o&&(o=s),h(a=n["$[]"](o.$xreftext()))?a:(l=[o.$xreftext(),r],f(n,"[]=",t.to_a(l)),l[e(l["length"],1)])},i.$$s=o,i.$$arity=2,i))},r.$$s=o,r.$$arity=1,r))["$[]"](n):(a=s,function(){var r=t.new_brk();try{f(o.reftexts=p([],{}),"tap",[],(i=function(r){var o,l=i.$$s||this;return null==l.catalog&&(l.catalog=s),null==r&&(r=s),function(){var i=t.new_brk();try{return f(l.catalog["$[]"]("refs"),"each",[],(o=function(l,c){o.$$s;var u,d=s,p=s;if(null==l&&(l=s),null==c&&(c=s),!(d=c.$xreftext())["$=="](n))return h(u=r["$[]"](d))?u:(p=[d,l],f(r,"[]=",t.to_a(p)),p[e(p["length"],1)]);t.brk(a=l,i)},o.$$s=l,o.$$brk=i,o.$$arity=2,o))}catch(c){if(c===i)return c.$v;throw c}}()},i.$$s=o,i.$$brk=r,i.$$arity=1,i))}catch(l){if(l===r)return l.$v;throw l}}(),o.reftexts=s,a)},S.$$arity=1),t.def(mt,"$footnotes?",O=function(){var t=this;return!h(t.catalog["$[]"]("footnotes")["$empty?"]())},O.$$arity=0),t.def(mt,"$footnotes",C=function(){var t=this;return t.catalog["$[]"]("footnotes")},C.$$arity=0),t.def(mt,"$callouts",A=function(){var t=this;return t.catalog["$[]"]("callouts")},A.$$arity=0),t.def(mt,"$nested?",E=function(){var t=this;return!!h(t.parent_document)},E.$$arity=0),t.def(mt,"$embedded?",T=function(){var t=this;return t.attributes["$key?"]("embedded")},T.$$arity=0),t.def(mt,"$extensions?",P=function(){var t=this;return!!h(t.extensions)},P.$$arity=0),t.def(mt,"$source",B=function(){var t=this;return h(t.reader)?t.reader.$source():s},B.$$arity=0),t.def(mt,"$source_lines",L=function(){var t=this;return h(t.reader)?t.reader.$source_lines():s},L.$$arity=0),t.def(mt,"$basebackend?",I=function(t){var e=this;return e.attributes["$[]"]("basebackend")["$=="](t)},I.$$arity=1),t.def(mt,"$title",D=function(){var t=this;return t.$doctitle()},D.$$arity=0),t.def(mt,"$title=",R=function(n){var r=this,i=s,o=s;return h(i=r.header)||(o=["header"],f(i=r.header=c(gt,"Section").$new(r,0),"sectname=",t.to_a(o)),o[e(o["length"],1)]),o=[n],f(i,"title=",t.to_a(o)),o[e(o["length"],1)]},R.$$arity=1),t.def(mt,"$doctitle",j=function(t){var e,n=this,r=s,i=s,o=s;if(null==t&&(t=p([],{})),h(r=n.attributes["$[]"]("title")));else if(h(i=n.$first_section()))r=i.$title();else if(h((h(e=t["$[]"]("use_fallback"))?r=n.attributes["$[]"]("untitled-label"):e)["$!"]()))return s;return h(o=t["$[]"]("partition"))?c(gt,"Title").$new(r,t.$merge(p(["separator"],{separator:function(){return o["$=="](!0)?n.attributes["$[]"]("title-separator"):o}()}))):h(h(e=t["$[]"]("sanitize"))?r["$include?"]("<"):e)?r.$gsub(c(gt,"XmlSanitizeRx"),"").$squeeze(" ").$strip():r},j.$$arity=-1),t.alias(mt,"name","doctitle"),t.def(mt,"$xreftext",M=function(t){var e,n=this,r=s;return null==t&&(t=s),h(h(e=r=n.$reftext())?r["$empty?"]()["$!"]():e)?r:n.$title()},M.$$arity=-1),t.def(mt,"$author",F=function(){var t=this;return t.attributes["$[]"]("author")},F.$$arity=0),t.def(mt,"$authors",N=function(){var t,e=this,n=s,a=s,l=s,u=s;if(h((n=e.attributes)["$key?"]("author"))){if(a=[c(gt,"Author").$new(n["$[]"]("author"),n["$[]"]("firstname"),n["$[]"]("middlename"),n["$[]"]("lastname"),n["$[]"]("authorinitials"),n["$[]"]("email"))],h(i(l=h(t=n["$[]"]("authorcount"))?t:0,1))){u=1;while(h(o(u,l)))u=r(u,1),a["$<<"](c(gt,"Author").$new(n["$[]"]("author_"+u),n["$[]"]("firstname_"+u),n["$[]"]("middlename_"+u),n["$[]"]("lastname_"+u),n["$[]"]("authorinitials_"+u),n["$[]"]("email_"+u)))}return a}return[]},N.$$arity=0),t.def(mt,"$revdate",z=function(){var t=this;return t.attributes["$[]"]("revdate")},z.$$arity=0),t.def(mt,"$notitle",H=function(){var t,e=this;return h(t=e.attributes["$key?"]("showtitle")["$!"]())?e.attributes["$key?"]("notitle"):t},H.$$arity=0),t.def(mt,"$noheader",V=function(){var t=this;return t.attributes["$key?"]("noheader")},V.$$arity=0),t.def(mt,"$nofooter",U=function(){var t=this;return t.attributes["$key?"]("nofooter")},U.$$arity=0),t.def(mt,"$first_section",q=function(){var t,e,n=this;return h(t=n.header)?t:f(n.blocks,"find",[],(e=function(t){e.$$s;return null==t&&(t=s),t.$context()["$=="]("section")},e.$$s=n,e.$$arity=1,e))},q.$$arity=0),t.def(mt,"$header?",W=function(){var t=this;return!!h(t.header)},W.$$arity=0),t.alias(mt,"has_header?","header?"),t.def(mt,"$<<",G=function(e){var n=G.$$p,r=this,i=s,o=s,a=s;for(n&&(G.$$p=null),o=0,a=arguments.length,i=new Array(a);o"},at.$$arity=0),mt.$private(),t.def(mt,"$apply_attribute_value_subs",st=function(t){var e,n=this;return h(c(gt,"AttributeEntryPassMacroRx")["$=~"](t))?(t=(e=$["~"])===s?s:e["$[]"](2),h((e=$["~"])===s?s:e["$[]"](1))&&(t=n.$apply_subs(t,n.$resolve_pass_subs((e=$["~"])===s?s:e["$[]"](1))))):t=n.$apply_header_subs(t),h(n.max_attribute_value_size)?n.$limit_bytesize(t,n.max_attribute_value_size):t},st.$$arity=1),t.def(mt,"$limit_bytesize",lt=function(t,n){if(h(i(t.$bytesize(),n)))while(!h((t=t.$byteslice(0,n))["$valid_encoding?"]()))n=e(n,1);return t},lt.$$arity=2),t.def(mt,"$resolve_docinfo_subs",ct=function(){var t=this;return h(t.attributes["$key?"]("docinfosubs"))?t.$resolve_subs(t.attributes["$[]"]("docinfosubs"),"block",s,"docinfo"):["attributes"]},ct.$$arity=0),t.def(mt,"$create_converter",ut=function(n,r){var i,o=this,a=s,u=s,d=s,$=s,g=s;return a=p(["document","htmlsyntax"],{document:o,htmlsyntax:o.attributes["$[]"]("htmlsyntax")}),h(u=h(i=(d=o.options)["$[]"]("template_dirs"))?i:d["$[]"]("template_dir"))&&($=["template_dirs",[].concat(t.to_a(u))],f(a,"[]=",t.to_a($)),$[e($["length"],1)],$=["template_cache",d.$fetch("template_cache",!0)],f(a,"[]=",t.to_a($)),$[e($["length"],1)],$=["template_engine",d["$[]"]("template_engine")],f(a,"[]=",t.to_a($)),$[e($["length"],1)],$=["template_engine_options",d["$[]"]("template_engine_options")],f(a,"[]=",t.to_a($)),$[e($["length"],1)],$=["eruby",d["$[]"]("eruby")],f(a,"[]=",t.to_a($)),$[e($["length"],1)],$=["safe",o.safe],f(a,"[]=",t.to_a($)),$[e($["length"],1)],h(r)&&($=["delegate_backend",r],f(a,"[]=",t.to_a($)),$[e($["length"],1)])),h(g=d["$[]"]("converter"))?l(c(gt,"Converter"),"CustomFactory").$new(m(n,g)).$create(n,a):d.$fetch("converter_factory",c(gt,"Converter")).$create(n,a)},ut.$$arity=2),t.def(mt,"$clear_playback_attributes",dt=function(t){return t.$delete("attribute_entries")},dt.$$arity=1),t.def(mt,"$save_attributes",ft=function(){var n,r,i=this,o=s,a=s,u=s,d=s,$=s,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s;return h(h(n=(o=i.attributes)["$key?"]("doctitle"))?n:(a=i.$doctitle())["$!"]())||(u=["doctitle",a],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]),i.id=h(n=i.id)?n:o["$[]"]("css-signature"),h(d=function(){return h(o.$delete("toc2"))?"left":o["$[]"]("toc")}())&&($=function(){return h(h(n=m=o.$fetch("toc-placement","macro"))?m["$!="]("auto"):n)?m:o["$[]"]("toc-position")}(),h(h(n=d["$empty?"]())?$["$nil_or_empty?"]():n)||(g="left",v="toc2",y=function(){return h($["$nil_or_empty?"]())?h(d["$empty?"]())?g:d:$}(),u=["toc",""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],u=["toc-placement","auto"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],_=y,"left"["$==="](_)||"<"["$==="](_)||"<"["$==="](_)?(u=["toc-position","left"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]):"right"["$==="](_)||">"["$==="](_)||">"["$==="](_)?(u=["toc-position","right"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]):"top"["$==="](_)||"^"["$==="](_)?(u=["toc-position","top"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]):"bottom"["$==="](_)||"v"["$==="](_)?(u=["toc-position","bottom"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]):"preamble"["$==="](_)||"macro"["$==="](_)?(u=["toc-position","content"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],u=["toc-placement",y],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],v=s):(o.$delete("toc-position"),v=s),h(v)&&(h(n=o["$[]"]("toc-class"))||(u=["toc-class",v],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)])))),h(h(n=b=o["$[]"]("icons"))?o["$key?"]("icontype")["$!"]():n)&&(_=b,""["$==="](_)||"font"["$==="](_)||(u=["icons",""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],b["$=="]("image")||(u=["icontype",b],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]))),h(i.compat_mode=o["$key?"]("compat-mode"))&&h(o["$key?"]("language"))&&(u=["source-language",o["$[]"]("language")],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]),h(i.parent_document)||((w=o["$[]"]("basebackend"))["$=="]("html")?h(h(n=x=o["$[]"]("source-highlighter"))?o["$[]"](x+"-unavailable")["$!"]():n)&&(h(k=i.options["$[]"]("syntax_highlighter_factory"))?i.syntax_highlighter=k.$create(x,i.backend,p(["document"],{document:i})):h(S=i.options["$[]"]("syntax_highlighters"))?i.syntax_highlighter=l(c(gt,"SyntaxHighlighter"),"DefaultFactoryProxy").$new(S).$create(x,i.backend,p(["document"],{document:i})):i.syntax_highlighter=c(gt,"SyntaxHighlighter").$create(x,i.backend,p(["document"],{document:i}))):w["$=="]("docbook")&&(h(h(n=i["$attribute_locked?"]("toc"))?n:i.attributes_modified["$include?"]("toc"))||(u=["toc",""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]),h(h(n=i["$attribute_locked?"]("sectnums"))?n:i.attributes_modified["$include?"]("sectnums"))||(u=["sectnums",""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)])),i.outfilesuffix=o["$[]"]("outfilesuffix"),f(c(gt,"FLEXIBLE_ATTRIBUTES"),"each",[],(r=function(t){var e,n=r.$$s||this;return null==n.attribute_overrides&&(n.attribute_overrides=s),null==t&&(t=s),h(h(e=n.attribute_overrides["$key?"](t))?n.attribute_overrides["$[]"](t):e)?n.attribute_overrides.$delete(t):s},r.$$s=i,r.$$arity=1,r))),i.header_attributes=o.$merge()},ft.$$arity=0),t.def(mt,"$fill_datetime_attributes",ht=function(n,r){var i,o,a=this,c=s,u=s,d=s,p=s,$=s,m=s,g=s;return c=function(){return h(l("::","ENV")["$key?"]("SOURCE_DATE_EPOCH"))?u=l("::","Time").$at(a.$Integer(l("::","ENV")["$[]"]("SOURCE_DATE_EPOCH"))).$utc():l("::","Time").$now()}(),h(d=n["$[]"]("localdate"))?h(i=n["$[]"]("localyear"))||(p=["localyear",function(){return d.$index("-")["$=="](4)?d.$slice(0,4):s}()],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]):(p=["localdate",c.$strftime("%F")],f(n,"[]=",t.to_a(p)),d=p[e(p["length"],1)],h(i=n["$[]"]("localyear"))||(p=["localyear",c.$year().$to_s()],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)])),$=h(i=n["$[]"]("localtime"))?i:(p=["localtime",c.$strftime("%T "+function(){return c.$utc_offset()["$=="](0)?"UTC":"%z"}())],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]),h(i=n["$[]"]("localdatetime"))||(p=["localdatetime",d+" "+$],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]),r=h(i=h(o=u)?o:r)?i:c,h(m=n["$[]"]("docdate"))?h(i=n["$[]"]("docyear"))||(p=["docyear",function(){return m.$index("-")["$=="](4)?m.$slice(0,4):s}()],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]):(p=["docdate",r.$strftime("%F")],f(n,"[]=",t.to_a(p)),m=p[e(p["length"],1)],h(i=n["$[]"]("docyear"))||(p=["docyear",r.$year().$to_s()],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)])),g=h(i=n["$[]"]("doctime"))?i:(p=["doctime",r.$strftime("%T "+function(){return r.$utc_offset()["$=="](0)?"UTC":"%z"}())],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]),h(i=n["$[]"]("docdatetime"))||(p=["docdatetime",m+" "+g],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]),s},ht.$$arity=2),t.def(mt,"$update_backend_attributes",pt=function(n,r){var i,o,a=this,u=s,d=s,p=s,$=s,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s;return null==r&&(r=s),h(h(i=r)?i:n["$!="](a.backend))?(u=a.backend,d=(p=a.attributes)["$[]"]("basebackend"),$=a.doctype,h(n["$include?"](":"))&&(o=n.$partition(":"),i=t.to_ary(o),m=null==i[0]?s:i[0],null==i[1]?s:i[1],n=null==i[2]?s:i[2]),h(n["$start_with?"]("xhtml"))?(g=["htmlsyntax","xml"],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],n=n.$slice(1,n.$length())):h(n["$start_with?"]("html"))&&(h(i=p["$[]"]("htmlsyntax"))||(g=["htmlsyntax","html"],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)])),n=h(i=c(gt,"BACKEND_ALIASES")["$[]"](n))?i:n,h(m)&&(i=[m,n],n=i[0],v=i[1]),h($)?(h(u)&&(p.$delete("backend-"+u),p.$delete("backend-"+u+"-doctype-"+$)),g=["backend-"+n+"-doctype-"+$,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["doctype-"+$,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]):h(u)&&p.$delete("backend-"+u),g=["backend-"+n,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],a.backend=(g=["backend",n],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]),h(l(c(gt,"Converter"),"BackendTraits")["$==="](y=a.$create_converter(n,v)))?(_=y.$basebackend(),b=y.$filetype(),h(w=y.$htmlsyntax())&&(g=["htmlsyntax",w],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]),h(r)?h(i=p["$[]"]("outfilesuffix"))||(g=["outfilesuffix",y.$outfilesuffix()],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]):h(a["$attribute_locked?"]("outfilesuffix"))||(g=["outfilesuffix",y.$outfilesuffix()],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)])):h(y)?(x=c(gt,"Converter").$derive_backend_traits(n),_=x["$[]"]("basebackend"),b=x["$[]"]("filetype"),h(r)?h(i=p["$[]"]("outfilesuffix"))||(g=["outfilesuffix",x["$[]"]("outfilesuffix")],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]):h(a["$attribute_locked?"]("outfilesuffix"))||(g=["outfilesuffix",x["$[]"]("outfilesuffix")],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)])):a.$raise(l("::","NotImplementedError"),"asciidoctor: FAILED: missing converter for backend '"+n+"'. Processing aborted."),a.converter=y,h(k=p["$[]"]("filetype"))&&p.$delete("filetype-"+k),g=["filetype",b],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["filetype-"+b,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],h(S=c(gt,"DEFAULT_PAGE_WIDTHS")["$[]"](_))?(g=["pagewidth",S],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]):p.$delete("pagewidth"),h(_["$!="](d))&&(h($)?(h(d)&&(p.$delete("basebackend-"+d),p.$delete("basebackend-"+d+"-doctype-"+$)),g=["basebackend-"+_+"-doctype-"+$,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]):h(d)&&p.$delete("basebackend-"+d),g=["basebackend-"+_,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["basebackend",_],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]),n):s},pt.$$arity=-2),t.def(mt,"$update_doctype_attributes",$t=function(n){var r,i=this,o=s,a=s,l=s,c=s,u=s;return h(h(r=n)?n["$!="](i.doctype):r)?(r=[i.backend,(o=i.attributes)["$[]"]("basebackend"),i.doctype],a=r[0],l=r[1],c=r[2],h(c)?(o.$delete("doctype-"+c),h(a)&&(o.$delete("backend-"+a+"-doctype-"+c),u=["backend-"+a+"-doctype-"+n,""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]),h(l)&&(o.$delete("basebackend-"+l+"-doctype-"+c),u=["basebackend-"+l+"-doctype-"+n,""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)])):(h(a)&&(u=["backend-"+a+"-doctype-"+n,""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]),h(l)&&(u=["basebackend-"+l+"-doctype-"+n,""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)])),u=["doctype-"+n,""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],i.doctype=(u=["doctype",n],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)])):s},$t.$$arity=1)})(y[0],c(y,"AbstractBlock"),y)}(a[0],a)},Opal.modules["asciidoctor/inline"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.module),o=t.klass,a=t.hash2,s=t.send,l=t.truthy;return t.add_stubs(["$attr_accessor","$attr_reader","$[]","$convert","$converter","$attr","$==","$apply_reftext_subs","$reftext"]),function(e,c){var u=i(e,"Asciidoctor"),d=[u].concat(c);(function(e,r,i){var c,u,d,f,h,p,$,m,g=o(e,r,"Inline");[g].concat(i);g.$$prototype.text=g.$$prototype.type=n,g.$attr_accessor("text"),g.$attr_reader("type"),g.$attr_accessor("target"),t.def(g,"$initialize",c=function(e,r,i,o){var l=c.$$p,u=this;return l&&(c.$$p=null),null==i&&(i=n),null==o&&(o=a([],{})),s(u,t.find_super_dispatcher(u,"initialize",c,!1),[e,r,o],null),u.node_name="inline_"+r,u.text=i,u.id=o["$[]"]("id"),u.type=o["$[]"]("type"),u.target=o["$[]"]("target")},c.$$arity=-3),t.def(g,"$block?",u=function(){return!1},u.$$arity=0),t.def(g,"$inline?",d=function(){return!0},d.$$arity=0),t.def(g,"$convert",f=function(){var t=this;return t.$converter().$convert(t)},f.$$arity=0),t.alias(g,"render","convert"),t.def(g,"$alt",h=function(){var t,e=this;return l(t=e.$attr("alt"))?t:""},h.$$arity=0),t.def(g,"$reftext?",p=function(){var t,e,n=this;return l(t=n.text)?l(e=n.type["$=="]("ref"))?e:n.type["$=="]("bibref"):t},p.$$arity=0),t.def(g,"$reftext",$=function(){var t=this,e=n;return l(e=t.text)?t.$apply_reftext_subs(e):n},$.$$arity=0),t.def(g,"$xreftext",m=function(t){var e=this;return null==t&&(t=n),e.$reftext()},m.$$arity=-1)})(d[0],r(d,"AbstractNode"),d)}(e[0],e)},Opal.modules["asciidoctor/list"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.module),o=t.klass,a=t.hash2,s=t.send,l=t.truthy;return t.add_stubs(["$==","$next_list","$callouts","$class","$object_id","$inspect","$size","$items","$attr_accessor","$level","$drop","$nil_or_empty?","$apply_subs","$empty?","$===","$[]","$outline?","$!","$simple?","$source","$shift","$context","$parent"]),function(e,c){var u=i(e,"Asciidoctor"),d=[u].concat(c);(function(e,r,i){var c,u,d,f,h=o(e,r,"List");[h].concat(i);h.$$prototype.context=h.$$prototype.document=h.$$prototype.style=n,t.alias(h,"items","blocks"),t.alias(h,"content","blocks"),t.alias(h,"items?","blocks?"),t.def(h,"$initialize",c=function(e,r,i){var o=c.$$p,l=this,u=n,d=n,f=n;for(o&&(c.$$p=null),d=0,f=arguments.length,u=new Array(f);d"},f.$$arity=0)})(d[0],r(d,"AbstractBlock"),d),function(e,i,a){var c,u,d,f,h,p,$,m,g=o(e,i,"ListItem"),v=[g].concat(a);g.$$prototype.text=g.$$prototype.subs=g.$$prototype.blocks=n,t.alias(g,"list","parent"),g.$attr_accessor("marker"),t.def(g,"$initialize",c=function(e,i){var o=c.$$p,a=this;return o&&(c.$$p=null),null==i&&(i=n),s(a,t.find_super_dispatcher(a,"initialize",c,!1),[e,"list_item"],null),a.text=i,a.level=e.$level(),a.subs=r(v,"NORMAL_SUBS").$drop(0)},c.$$arity=-2),t.def(g,"$text?",u=function(){var t=this;return!l(t.text["$nil_or_empty?"]())},u.$$arity=0),t.def(g,"$text",d=function(){var t,e=this;return l(t=e.text)?e.$apply_subs(e.text,e.subs):t},d.$$arity=0),t.def(g,"$text=",f=function(t){var e=this;return e.text=t},f.$$arity=1),t.def(g,"$simple?",h=function(){var t,e,i=this,o=n;return l(t=i.blocks["$empty?"]())?t:l(e=i.blocks.$size()["$=="](1)?r(v,"List")["$==="](o=i.blocks["$[]"](0)):i.blocks.$size()["$=="](1))?o["$outline?"]():e},h.$$arity=0),t.def(g,"$compound?",p=function(){var t=this;return t["$simple?"]()["$!"]()},p.$$arity=0),t.def(g,"$fold_first",$=function(){var t=this;return t.text=function(){return l(t.text["$nil_or_empty?"]())?t.blocks.$shift().$source():""+t.text+r(v,"LF")+t.blocks.$shift().$source()}(),n},$.$$arity=0),t.def(g,"$to_s",m=function(){var t,e=this;return"#<"+e.$class()+"@"+e.$object_id()+" {list_context: "+e.$parent().$context().$inspect()+", text: "+e.text.$inspect()+", blocks: "+(l(t=e.blocks)?t:[]).$size()+"}>"},m.$$arity=0)}(d[0],r(d,"AbstractBlock"),d)}(e[0],e)},Opal.modules["asciidoctor/parser"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?te:t["$>"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}t.top;var a=[],s=t.nil,l=t.const_get_qualified,c=t.const_get_relative,u=(t.breaker,t.slice,t.module),d=t.klass,f=t.send,h=t.truthy,p=t.hash2,$=t.gvars;return t.add_stubs(["$include","$new","$proc","$start_with?","$match?","$is_delimited_block?","$private_class_method","$parse_document_header","$[]","$has_more_lines?","$next_section","$assign_numeral","$<<","$blocks","$parse_block_metadata_lines","$attributes","$is_next_line_doctitle?","$finalize_header","$nil_or_empty?","$title=","$-","$sourcemap","$cursor","$parse_section_title","$id=","$apply_header_subs","$[]=","$source_location=","$header","$attribute_locked?","$id","$clear","$delete","$instance_variable_get","$parse_header_metadata","$include?","$==","$!","$register","$doctype","$parse_manpage_header","$=~","$downcase","$sub_attributes","$error","$logger","$message_with_context","$cursor_at_line","$backend","$skip_blank_lines","$save","$update","$is_next_line_section?","$initialize_section","$join","$map","$read_lines_until","$lstrip","$title","$split","$restore_save","$discard_save","$context","$empty?","$header?","$!=","$attr?","$attr","$key?","$document","$+","$level","$special","$sectname","$to_i","$<","$>","$warn","$next_block","$blocks?","$style","$context=","$style=","$parent=","$size","$content_model","$shift","$unwrap_standalone_preamble","$merge","$fetch","$parse_block_metadata_line","$extensions","$block_macros?","$mark","$read_line","$terminator","$to_s","$masq","$to_sym","$registered_for_block?","$debug?","$debug","$cursor_at_mark","$strict_verbatim_paragraphs","$unshift_line","$markdown_syntax","$keys","$chr","$uniform?","$length","$end_with?","$===","$parse_attributes","$attribute_missing","$tr","$basename","$assign_caption","$registered_for_block_macro?","$config","$process_method","$replace","$parse_callout_list","$callouts","$parse_list","$parse_description_list","$underline_style_section_titles","$is_section_title?","$peek_line","$atx_section_title?","$generate_id","$level=","$read_paragraph_lines","$adjust_indentation!","$map!","$slice","$pop","$build_block","$apply_subs","$chop","$catalog_inline_anchors","$rekey","$index","$strip","$parse_table","$each","$raise","$title?","$update_attributes","$commit_subs","$sub?","$catalog_callouts","$source","$remove_sub","$block_terminates_paragraph","$to_proc","$nil?","$lines","$parse_blocks","$parse_list_item","$items","$scan","$gsub","$count","$advance","$dup","$match","$callout_ids","$next_list","$catalog_inline_anchor","$source_location","$marker=","$catalog_inline_biblio_anchor","$set_option","$text=","$resolve_ordered_list_marker","$read_lines_for_list_item","$skip_line_comments","$unshift_lines","$fold_first","$text?","$is_sibling_list_item?","$concat","$find","$casecmp","$sectname=","$special=","$numbered=","$numbered","$lineno","$peek_lines","$setext_section_title?","$abs","$cursor_at_prev_line","$process_attribute_entries","$next_line_empty?","$process_authors","$rstrip","$each_with_index","$compact","$squeeze","$to_a","$parse_style_attribute","$process_attribute_entry","$skip_comment_lines","$store_attribute","$sanitize_attribute_name","$set_attribute","$save_to","$delete_attribute","$ord","$int_to_roman","$resolve_list_marker","$parse_colspecs","$create_columns","$format","$starts_with_delimiter?","$close_open_cell","$parse_cellspec","$delimiter","$match_delimiter","$pre_match","$post_match","$buffer_has_unclosed_quotes?","$skip_past_delimiter","$buffer","$buffer=","$skip_past_escaped_delimiter","$keep_cell_open","$push_cellspec","$close_cell","$cell_open?","$columns","$assign_column_widths","$has_header_option=","$partition_header_footer","$upto","$partition","$shorthand_property_syntax","$each_char","$yield_buffered_attribute","$any?","$*","$each_byte","$%"]),function(a,m){var g=u(a,"Asciidoctor"),v=[g].concat(m);(function(a,u,m){var g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct=d(a,u,"Parser"),ut=[ct].concat(m);ct.$include(c(ut,"Logging")),t.const_set(ut[0],"BlockMatchData",c(ut,"Struct").$new("context","masq","tip","terminator")),t.const_set(ut[0],"TAB","\t"),t.const_set(ut[0],"TabIndentRx",/^\t+/),t.const_set(ut[0],"StartOfBlockProc",f(ct,"proc",[],(g=function(t){var e,n,r=g.$$s||this;return null==t&&(t=s),h(e=h(n=t["$start_with?"]("["))?c(ut,"BlockAttributeLineRx")["$match?"](t):n)?e:r["$is_delimited_block?"](t)},g.$$s=ct,g.$$arity=1,g))),t.const_set(ut[0],"StartOfListProc",f(ct,"proc",[],(v=function(t){v.$$s;return null==t&&(t=s),c(ut,"AnyListRx")["$match?"](t)},v.$$s=ct,v.$$arity=1,v))),t.const_set(ut[0],"StartOfBlockOrListProc",f(ct,"proc",[],(y=function(t){var e,n,r,i=y.$$s||this;return null==t&&(t=s),h(e=h(n=i["$is_delimited_block?"](t))?n:h(r=t["$start_with?"]("["))?c(ut,"BlockAttributeLineRx")["$match?"](t):r)?e:c(ut,"AnyListRx")["$match?"](t)},y.$$s=ct,y.$$arity=1,y))),t.const_set(ut[0],"NoOp",s),t.const_set(ut[0],"AuthorKeys",["author","authorinitials","firstname","middlename","lastname","email"]),t.const_set(ut[0],"TableCellHorzAlignments",p(["<",">","^"],{"<":"left",">":"right","^":"center"})),t.const_set(ut[0],"TableCellVertAlignments",p(["<",">","^"],{"<":"top",">":"bottom","^":"middle"})),t.const_set(ut[0],"TableCellStyles",p(["d","s","e","m","h","l","a"],{d:"none",s:"strong",e:"emphasis",m:"monospaced",h:"header",l:"literal",a:"asciidoc"})),ct.$private_class_method("new"),t.defs(ct,"$parse",_=function(e,n,r){var i,o,a=this,l=s,c=s;if(null==r&&(r=p([],{})),l=a.$parse_document_header(e,n),h(r["$[]"]("header_only")));else while(h(e["$has_more_lines?"]()))o=a.$next_section(e,n,l),i=t.to_ary(o),c=null==i[0]?s:i[0],l=null==i[1]?s:i[1],h(c)&&(n.$assign_numeral(c),n.$blocks()["$<<"](c));return n},_.$$arity=-3),t.defs(ct,"$parse_document_header",b=function(n,r){var i,o,a=this,l=s,c=s,u=s,d=s,p=s,$=s,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s;return l=a.$parse_block_metadata_lines(n,r),c=r.$attributes(),h(h(i=u=a["$is_next_line_doctitle?"](n,l,c["$[]"]("leveloffset")))?l["$[]"]("title"):i)?r.$finalize_header(l,!1):(h((d=c["$[]"]("doctitle"))["$nil_or_empty?"]())||(p=[$=d],f(r,"title=",t.to_a(p)),p[e(p["length"],1)]),h(u)&&(h(r.$sourcemap())&&(m=n.$cursor()),o=a.$parse_section_title(n,r),i=t.to_ary(o),r["$id="](null==i[0]?s:i[0]),null==i[1]?s:i[1],g=null==i[2]?s:i[2],null==i[3]?s:i[3],v=null==i[4]?s:i[4],h($)?g=s:(p=[g],f(r,"title=",t.to_a(p)),p[e(p["length"],1)],p=["doctitle",$=r.$apply_header_subs(g)],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)]),h(m)&&(p=[m],f(r.$header(),"source_location=",t.to_a(p)),p[e(p["length"],1)]),h(h(i=v)?i:r["$attribute_locked?"]("compat-mode"))||(p=["compat-mode",""],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)]),h(y=l["$[]"]("separator"))&&(h(r["$attribute_locked?"]("title-separator"))||(p=["title-separator",y],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)])),h(_=l["$[]"]("id"))?(p=[_],f(r,"id=",t.to_a(p)),p[e(p["length"],1)]):_=r.$id(),h(b=l["$[]"]("role"))&&(p=["role",b],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)]),h(w=l["$[]"]("reftext"))&&(p=["reftext",w],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)]),l.$clear(),(x=r.$instance_variable_get("@attributes_modified")).$delete("doctitle"),a.$parse_header_metadata(n,r),h(x["$include?"]("doctitle"))?h(h(i=(d=c["$[]"]("doctitle"))["$nil_or_empty?"]())?i:d["$=="]($))?(p=["doctitle",$],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)]):(p=[d],f(r,"title=",t.to_a(p)),p[e(p["length"],1)]):h(g["$!"]())&&x["$<<"]("doctitle"),h(_)&&r.$register("refs",[_,r])),r.$doctype()["$=="]("manpage")&&a.$parse_manpage_header(n,r,l),r.$finalize_header(l))},b.$$arity=2),t.defs(ct,"$parse_manpage_header",w=function(n,r,i){var o,a,l,u,d=this,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s;return h(c(ut,"ManpageTitleVolnumRx")["$=~"]((m=r.$attributes())["$[]"]("doctitle")))?(g=["manvolnum",v=(o=$["~"])===s?s:o["$[]"](2)],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["mantitle",function(){return h((y=(o=$["~"])===s?s:o["$[]"](1))["$include?"](c(ut,"ATTR_REF_HEAD")))?r.$sub_attributes(y):y}().$downcase()],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)]):(d.$logger().$error(d.$message_with_context("non-conforming manpage title",p(["source_location"],{source_location:n.$cursor_at_line(1)}))),g=["mantitle",h(o=h(a=m["$[]"]("doctitle"))?a:m["$[]"]("docname"))?o:"command"],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["manvolnum",v="1"],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)]),h(h(o=_=m["$[]"]("manname"))?m["$[]"]("manpurpose"):o)?(h(o=m["$[]"]("manname-title"))||(g=["manname-title","Name"],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)]),g=["mannames",[_]],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],r.$backend()["$=="]("manpage")&&(g=["docname",_],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["outfilesuffix","."+v],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)])):(n.$skip_blank_lines(),n.$save(),i.$update(d.$parse_block_metadata_lines(n,r)),h(b=d["$is_next_line_section?"](n,p([],{})))?b["$=="](1)?(w=d.$initialize_section(n,r,p([],{})),x=f(n.$read_lines_until(p(["break_on_blank_lines","skip_line_comments"],{break_on_blank_lines:!0,skip_line_comments:!0})),"map",[],(l=function(t){l.$$s;return null==t&&(t=s),t.$lstrip()},l.$$s=d,l.$$arity=1,l)).$join(" "),h(c(ut,"ManpageNamePurposeRx")["$=~"](x))?(h(o=m["$[]"]("manname-title"))||(g=["manname-title",w.$title()],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)]),h(w.$id())&&(g=["manname-id",w.$id()],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)]),g=["manpurpose",(o=$["~"])===s?s:o["$[]"](2)],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],h((_=(o=$["~"])===s?s:o["$[]"](1))["$include?"](c(ut,"ATTR_REF_HEAD")))&&(_=r.$sub_attributes(_)),h(_["$include?"](","))?_=(k=f(_.$split(","),"map",[],(u=function(t){u.$$s;return null==t&&(t=s),t.$lstrip()},u.$$s=d,u.$$arity=1,u)))["$[]"](0):k=[_],g=["manname",_],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["mannames",k],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],r.$backend()["$=="]("manpage")&&(g=["docname",_],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["outfilesuffix","."+v],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)])):S="non-conforming name section body"):S="name section must be at level 1":S="name section expected",h(S)?(n.$restore_save(),d.$logger().$error(d.$message_with_context(S,p(["source_location"],{source_location:n.$cursor()}))),g=["manname",_=h(o=m["$[]"]("docname"))?o:"command"],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["mannames",[_]],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],r.$backend()["$=="]("manpage")&&(g=["docname",_],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["outfilesuffix","."+v],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)])):n.$discard_save()),s},w.$$arity=3),t.defs(ct,"$next_section",x=function(o,a,l){var u,d,$,m,g=this,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s,I=s,D=s,R=s,j=s;null==l&&(l=p([],{})),v=y=_=!1,h(h(u=(d=a.$context()["$=="]("document"))?a.$blocks()["$empty?"]():a.$context()["$=="]("document"))?h(d=h($=b=a["$header?"]())?$:l.$delete("invalid-header"))?d:g["$is_next_line_section?"](o,l)["$!"]():u)?(w=(x=a).$doctype()["$=="]("book"),h(h(u=b)?u:h(d=w)?l["$[]"](1)["$!="]("abstract"):d)&&(v=y=c(ut,"Block").$new(a,"preamble",p(["content_model"],{content_model:"compound"})),h(h(u=w)?a["$attr?"]("preface-title"):u)&&(k=[a.$attr("preface-title")],f(v,"title=",t.to_a(k)),k[e(k["length"],1)]),a.$blocks()["$<<"](v)),S=a,O=0,h(a.$attributes()["$key?"]("fragment"))?C=-1:h(w)?(u=[1,0],C=u[0],A=u[1]):C=1):(w=(x=a.$document()).$doctype()["$=="]("book"),S=g.$initialize_section(o,a,l),l=function(){return h(E=l["$[]"]("title"))?p(["title"],{title:E}):p([],{})}(),C=n(O=S.$level(),1),O["$=="](0)?_=w:h((u=O["$=="](1))?S.$special():O["$=="](1))&&(h(h(u=h(d=(T=S.$sectname())["$=="]("appendix"))?d:T["$=="]("preface"))?u:T["$=="]("abstract"))||(C=s))),o.$skip_blank_lines();while(h(o["$has_more_lines?"]())){if(g.$parse_block_metadata_lines(o,x,l),h(P=g["$is_next_line_section?"](o,l)))if(h(x["$attr?"]("leveloffset"))&&(P=n(P,x.$attr("leveloffset").$to_i()),h(r(P,0))&&(P=0)),h(i(P,O)))h(C)?h(h(d=h($=P["$=="](C))?$:h(m=A)?P["$=="](A):m)?d:r(C,0))||(B=function(){return h(A)?"expected levels "+A+" or "+C:"expected level "+C}(),g.$logger().$warn(g.$message_with_context("section title out of sequence: "+B+", got level "+P,p(["source_location"],{source_location:o.$cursor()})))):g.$logger().$error(g.$message_with_context(T+" sections do not support nested sections",p(["source_location"],{source_location:o.$cursor()}))),$=g.$next_section(o,S,l),d=t.to_ary($),L=null==d[0]?s:d[0],l=null==d[1]?s:d[1],S.$assign_numeral(L),S.$blocks()["$<<"](L);else{if(!h((d=P["$=="](0))?S["$=="](x):P["$=="](0)))break;h(w)||g.$logger().$error(g.$message_with_context("level 0 sections can only be used when doctype is book",p(["source_location"],{source_location:o.$cursor()}))),$=g.$next_section(o,S,l),d=t.to_ary($),L=null==d[0]?s:d[0],l=null==d[1]?s:d[1],S.$assign_numeral(L),S.$blocks()["$<<"](L)}else I=o.$cursor(),h(D=g.$next_block(o,h(d=y)?d:S,l,p(["parse_metadata"],{parse_metadata:!1})))&&(h(_)&&(h(S["$blocks?"]()["$!"]())?h(D.$style()["$!="]("partintro"))&&(D.$context()["$=="]("paragraph")?(k=["open"],f(D,"context=",t.to_a(k)),k[e(k["length"],1)],k=["partintro"],f(D,"style=",t.to_a(k)),k[e(k["length"],1)]):(k=[y=c(ut,"Block").$new(S,"open",p(["content_model"],{content_model:"compound"}))],f(D,"parent=",t.to_a(k)),k[e(k["length"],1)],k=["partintro"],f(y,"style=",t.to_a(k)),k[e(k["length"],1)],S.$blocks()["$<<"](y))):S.$blocks().$size()["$=="](1)&&(R=S.$blocks()["$[]"](0),h(h(d=y["$!"]())?R.$content_model()["$=="]("compound"):d)?g.$logger().$error(g.$message_with_context("illegal block content outside of partintro block",p(["source_location"],{source_location:I}))):h(R.$content_model()["$!="]("compound"))&&(k=[y=c(ut,"Block").$new(S,"open",p(["content_model"],{content_model:"compound"}))],f(D,"parent=",t.to_a(k)),k[e(k["length"],1)],k=["partintro"],f(y,"style=",t.to_a(k)),k[e(k["length"],1)],S.$blocks().$shift(),R.$style()["$=="]("partintro")&&(k=["paragraph"],f(R,"context=",t.to_a(k)),k[e(k["length"],1)],k=[s],f(R,"style=",t.to_a(k)),k[e(k["length"],1)]),y["$<<"](R),S.$blocks()["$<<"](y)))),(h(d=y)?d:S).$blocks()["$<<"](D),l.$clear());if(!h(d=o.$skip_blank_lines()))break}if(h(_))h(h(u=S["$blocks?"]())?S.$blocks()["$[]"](-1).$context()["$=="]("section"):u)||g.$logger().$error(g.$message_with_context("invalid part, must have at least one section (e.g., chapter, appendix, etc.)",p(["source_location"],{source_location:o.$cursor()})));else if(h(v))if(h(v["$blocks?"]()))if(h(h(u=h(d=w)?d:x.$blocks()["$[]"](1))?u:c(ut,"Compliance").$unwrap_standalone_preamble()["$!"]()));else{x.$blocks().$shift();while(h(j=v.$blocks().$shift()))x["$<<"](j)}else x.$blocks().$shift();return[function(){return h(S["$!="](a))?S:s}(),l.$merge()]},x.$$arity=-3),t.defs(ct,"$next_block",k=function(o,a,l,u){try{var d,m,g,v,y,_,b,w=this,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s,I=s,D=s,R=s,j=s,M=s,F=s,N=s,z=s,H=s,V=s,U=s,q=s,W=s,G=s,Y=s,K=s,X=s,Z=s,J=s,Q=s,tt=s,et=s,nt=s,rt=s,it=s,ot=s,at=s,st=s,lt=s,ct=s,dt=s,ft=s,ht=s,pt=s,$t=s,mt=s,gt=s,vt=s,yt=s;if(null==$["~"]&&($["~"]=s),null==l&&(l=p([],{})),null==u&&(u=p([],{})),!h(x=o.$skip_blank_lines()))return s;if(h(h(d=k=u["$[]"]("text_only"))?i(x,0):d)&&(u.$delete("text_only"),k=s),S=a.$document(),h(u.$fetch("parse_metadata",!0)))while(h(w.$parse_block_metadata_line(o,S,l,u)))o.$shift(),h(m=o.$skip_blank_lines())||t.ret(s);if(h(O=S.$extensions())&&(d=[O["$blocks?"](),O["$block_macros?"]()],C=d[0],A=d[1]),o.$mark(),d=[o.$read_line(),S.$attributes(),l["$[]"](1)],E=d[0],T=d[1],P=d[2],B=L=I=D=s,h(R=w["$is_delimited_block?"](E,!0))&&(L=I=R.$context(),D=R.$terminator(),h(P)?P["$=="](L.$to_s())||(h(R.$masq()["$include?"](P))?L=P.$to_sym():h(h(d=R.$masq()["$include?"]("admonition"))?c(ut,"ADMONITION_STYLES")["$include?"](P):d)?L="admonition":h(h(d=C)?O["$registered_for_block?"](P,L):d)?L=P.$to_sym():(h(w.$logger()["$debug?"]())&&w.$logger().$debug(w.$message_with_context("unknown style for "+L+" block: "+P,p(["source_location"],{source_location:o.$cursor_at_mark()}))),P=L.$to_s())):(j=["style",L.$to_s()],f(l,"[]=",t.to_a(j)),P=j[e(j["length"],1)])),h(R));else while(h(!0)){if(h(h(m=h(g=P)?c(ut,"Compliance").$strict_verbatim_paragraphs():g)?c(ut,"VERBATIM_STYLES")["$include?"](P):m)){L=P.$to_sym(),o.$unshift_line(E);break}if(h(k))M=E["$start_with?"](" ",c(ut,"TAB"));else if(F=c(ut,"Compliance").$markdown_syntax(),h(E["$start_with?"](" "))){if(m=[!0," "],M=m[0],N=m[1],h(h(m=h(g=F)?f(E.$lstrip(),"start_with?",t.to_a(c(ut,"MARKDOWN_THEMATIC_BREAK_CHARS").$keys())):g)?c(ut,"MarkdownThematicBreakRx")["$match?"](E):m)){B=c(ut,"Block").$new(a,"thematic_break",p(["content_model"],{content_model:"empty"}));break}}else if(h(E["$start_with?"](c(ut,"TAB"))))m=[!0,c(ut,"TAB")],M=m[0],N=m[1];else{if(m=[!1,E.$chr()],M=m[0],N=m[1],z=function(){return h(F)?c(ut,"HYBRID_LAYOUT_BREAK_CHARS"):c(ut,"LAYOUT_BREAK_CHARS")}(),h(h(m=z["$key?"](N))?function(){return h(F)?c(ut,"ExtLayoutBreakRx")["$match?"](E):h(g=w["$uniform?"](E,N,H=E.$length()))?i(H,2):g}():m)){B=c(ut,"Block").$new(a,z["$[]"](N),p(["content_model"],{content_model:"empty"}));break}if(h(h(m=E["$end_with?"]("]"))?E["$include?"]("::"):m)){if(h(h(m=h(g=N["$=="]("i"))?g:E["$start_with?"]("video:","audio:"))?c(ut,"BlockMediaMacroRx")["$=~"](E):m)){if(m=[((g=$["~"])===s?s:g["$[]"](1)).$to_sym(),(g=$["~"])===s?s:g["$[]"](2),(g=$["~"])===s?s:g["$[]"](3)],V=m[0],U=m[1],q=m[2],B=c(ut,"Block").$new(a,V,p(["content_model"],{content_model:"empty"})),h(q)&&(W=V,G="video"["$==="](W)?["poster","width","height"]:"audio"["$==="](W)?[]:["alt","width","height"],B.$parse_attributes(q,G,p(["sub_input","into"],{sub_input:!0,into:l}))),h(l["$key?"]("style"))&&l.$delete("style"),h(U["$include?"](c(ut,"ATTR_REF_HEAD")))){if(h(h(m=h(g=(Y=B.$sub_attributes(U))["$empty?"]())?(h(v=T["$[]"]("attribute-missing"))?v:c(ut,"Compliance").$attribute_missing())["$=="]("drop-line"):g)?B.$sub_attributes(n(U," "),p(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]():m))return l.$clear(),s;U=Y}V["$=="]("image")&&(S.$register("images",U),j=["imagesdir",T["$[]"]("imagesdir")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],h(m=l["$[]"]("alt"))||(j=["alt",h(g=P)?g:(j=["default-alt",c(ut,"Helpers").$basename(U,!0).$tr("_-"," ")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h((K=l.$delete("scaledwidth"))["$nil_or_empty?"]())||(j=["scaledwidth",function(){return h(c(ut,"TrailingDigitsRx")["$match?"](K))?K+"%":K}()],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(l["$[]"]("title"))&&(j=[X=l.$delete("title")],f(B,"title=",t.to_a(j)),j[e(j["length"],1)],B.$assign_caption(l.$delete("caption"),"figure"))),j=["target",U],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)];break}if(h(h(m=(g=N["$=="]("t"))?E["$start_with?"]("toc:"):N["$=="]("t"))?c(ut,"BlockTocMacroRx")["$=~"](E):m)){B=c(ut,"Block").$new(a,"toc",p(["content_model"],{content_model:"empty"})),h((m=$["~"])===s?s:m["$[]"](1))&&B.$parse_attributes((m=$["~"])===s?s:m["$[]"](1),[],p(["into"],{into:l}));break}if(h(function(){return h(A)?h(m=h(g=c(ut,"CustomBlockMacroRx")["$=~"](E))?Z=O["$registered_for_block_macro?"]((v=$["~"])===s?s:v["$[]"](1)):g)?m:J=w.$logger()["$debug?"]():h(m=w.$logger()["$debug?"]())?J=c(ut,"CustomBlockMacroRx")["$=~"](E):m}())){if(!h(J)){if(Q=(m=$["~"])===s?s:m["$[]"](3),h((U=(m=$["~"])===s?s:m["$[]"](2))["$include?"](c(ut,"ATTR_REF_HEAD")))){if(h(h(m=h(g=(Y=a.$sub_attributes(U))["$empty?"]())?(h(v=T["$[]"]("attribute-missing"))?v:c(ut,"Compliance").$attribute_missing())["$=="]("drop-line"):g)?a.$sub_attributes(n(U," "),p(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]():m))return l.$clear(),s;U=Y}if((tt=Z.$config())["$[]"]("content_model")["$=="]("attributes")?h(Q)&&S.$parse_attributes(Q,h(m=h(g=tt["$[]"]("positional_attrs"))?g:tt["$[]"]("pos_attrs"))?m:[],p(["sub_input","into"],{sub_input:!0,into:l})):(j=["text",h(m=Q)?m:""],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(et=tt["$[]"]("default_attrs"))&&f(l,"update",[et],(y=function(t,e){y.$$s;return null==t&&(t=s),null==e&&(e=s),e},y.$$s=w,y.$$arity=2,y)),h(B=Z.$process_method()["$[]"](a,U,l))){l.$replace(B.$attributes());break}return l.$clear(),s}w.$logger().$debug(w.$message_with_context("unknown name for block macro: "+((m=$["~"])===s?s:m["$[]"](1)),p(["source_location"],{source_location:o.$cursor_at_mark()})))}}}if(h(h(m=h(g=M["$!"]())?(N=h(v=N)?v:E.$chr())["$=="]("<"):g)?c(ut,"CalloutListRx")["$=~"](E):m)){o.$unshift_line(E),B=w.$parse_callout_list(o,$["~"],a,S.$callouts()),j=["style","arabic"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)];break}if(h(c(ut,"UnorderedListRx")["$match?"](E))){o.$unshift_line(E),h(h(m=h(g=P["$!"]())?c(ut,"Section")["$==="](a):g)?a.$sectname()["$=="]("bibliography"):m)&&(j=["style",P="bibliography"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),B=w.$parse_list(o,"ulist",a,P);break}if(h(c(ut,"OrderedListRx")["$match?"](E))){o.$unshift_line(E),B=w.$parse_list(o,"olist",a,P),h(B.$style())&&(j=["style",B.$style()],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]);break}if(h(h(m=h(g=E["$include?"]("::"))?g:E["$include?"](";;"))?c(ut,"DescriptionListRx")["$=~"](E):m)){o.$unshift_line(E),B=w.$parse_description_list(o,$["~"],a);break}if(h(h(m=h(g=P["$=="]("float"))?g:P["$=="]("discrete"))?function(){return h(c(ut,"Compliance").$underline_style_section_titles())?w["$is_section_title?"](E,o.$peek_line()):h(g=M["$!"]())?w["$atx_section_title?"](E):g}():m)){o.$unshift_line(E),g=w.$parse_section_title(o,S,l["$[]"]("id")),m=t.to_ary(g),nt=null==m[0]?s:m[0],rt=null==m[1]?s:m[1],X=null==m[2]?s:m[2],it=null==m[3]?s:m[3],h(rt)&&(j=["reftext",rt],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),B=c(ut,"Block").$new(a,"floating_title",p(["content_model"],{content_model:"empty"})),j=[X],f(B,"title=",t.to_a(j)),j[e(j["length"],1)],l.$delete("title"),j=[h(m=nt)?m:function(){return h(T["$key?"]("sectids"))?c(ut,"Section").$generate_id(B.$title(),S):s}()],f(B,"id=",t.to_a(j)),j[e(j["length"],1)],j=[it],f(B,"level=",t.to_a(j)),j[e(j["length"],1)];break}if(h(h(m=P)?P["$!="]("normal"):m)){if(h(c(ut,"PARAGRAPH_STYLES")["$include?"](P))){L=P.$to_sym(),I="paragraph",o.$unshift_line(E);break}if(h(c(ut,"ADMONITION_STYLES")["$include?"](P))){L="admonition",I="paragraph",o.$unshift_line(E);break}if(h(h(m=C)?O["$registered_for_block?"](P,"paragraph"):m)){L=P.$to_sym(),I="paragraph",o.$unshift_line(E);break}h(w.$logger()["$debug?"]())&&w.$logger().$debug(w.$message_with_context("unknown style for paragraph: "+P,p(["source_location"],{source_location:o.$cursor_at_mark()}))),P=s}if(o.$unshift_line(E),h(h(m=M)?P["$!"]():m))ot=w.$read_paragraph_lines(o,at=function(){return x["$=="](0)?u["$[]"]("list_type"):s}(),p(["skip_line_comments"],{skip_line_comments:k})),w["$adjust_indentation!"](ot),B=h(h(m=k)?m:at["$=="]("dlist"))?c(ut,"Block").$new(a,"paragraph",p(["content_model","source","attributes"],{content_model:"simple",source:ot,attributes:l})):c(ut,"Block").$new(a,"literal",p(["content_model","source","attributes"],{content_model:"verbatim",source:ot,attributes:l}));else{if(ot=w.$read_paragraph_lines(o,(m=x["$=="](0))?u["$[]"]("list_type"):x["$=="](0),p(["skip_line_comments"],{skip_line_comments:!0})),h(k))h(h(m=M)?P["$=="]("normal"):m)&&w["$adjust_indentation!"](ot),B=c(ut,"Block").$new(a,"paragraph",p(["content_model","source","attributes"],{content_model:"simple",source:ot,attributes:l}));else if(h(h(m=h(g=c(ut,"ADMONITION_STYLE_HEADS")["$include?"](N))?E["$include?"](":"):g)?c(ut,"AdmonitionParagraphRx")["$=~"](E):m))j=[0,(m=$["~"])===s?s:m.$post_match()],f(ot,"[]=",t.to_a(j)),j[e(j["length"],1)],j=["name",st=(j=["style",(m=$["~"])===s?s:m["$[]"](1)],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]).$downcase()],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],j=["textlabel",h(m=l.$delete("caption"))?m:T["$[]"](st+"-caption")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],B=c(ut,"Block").$new(a,"admonition",p(["content_model","source","attributes"],{content_model:"simple",source:ot,attributes:l}));else if(h(h(m=h(g=F)?N["$=="](">"):g)?E["$start_with?"]("> "):m)){if(f(ot,"map!",[],(_=function(t){_.$$s;return null==t&&(t=s),t["$=="](">")?t.$slice(1,t.$length()):h(t["$start_with?"]("> "))?t.$slice(2,t.$length()):t},_.$$s=w,_.$$arity=1,_)),h(ot["$[]"](-1)["$start_with?"]("-- ")))if(lt=(lt=ot.$pop()).$slice(3,lt.$length()),h(ot["$empty?"]()));else while(h(ot["$[]"](-1)["$empty?"]()))ot.$pop();j=["style","quote"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],B=w.$build_block("quote","compound",!1,a,c(ut,"Reader").$new(ot),l),h(lt)&&(g=B.$apply_subs(lt).$split(", ",2),m=t.to_ary(g),ct=null==m[0]?s:m[0],dt=null==m[1]?s:m[1],h(ct)&&(j=["attribution",ct],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(dt)&&(j=["citetitle",dt],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]))}else if(h(h(m=h(g=(v=N["$=="]('"'))?i(ot.$size(),1):N["$=="]('"'))?ot["$[]"](-1)["$start_with?"]("-- "):g)?ot["$[]"](-2)["$end_with?"]('"'):m)){j=[0,E.$slice(1,E.$length())],f(ot,"[]=",t.to_a(j)),j[e(j["length"],1)],lt=(lt=ot.$pop()).$slice(3,lt.$length());while(h(ot["$[]"](-1)["$empty?"]()))ot.$pop();ot["$<<"](ot.$pop().$chop()),j=["style","quote"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],B=c(ut,"Block").$new(a,"quote",p(["content_model","source","attributes"],{content_model:"simple",source:ot,attributes:l})),g=B.$apply_subs(lt).$split(", ",2),m=t.to_ary(g),ct=null==m[0]?s:m[0],dt=null==m[1]?s:m[1],h(ct)&&(j=["attribution",ct],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(dt)&&(j=["citetitle",dt],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])}else h(h(m=M)?P["$=="]("normal"):m)&&w["$adjust_indentation!"](ot),B=c(ut,"Block").$new(a,"paragraph",p(["content_model","source","attributes"],{content_model:"simple",source:ot,attributes:l}));w.$catalog_inline_anchors(ot.$join(c(ut,"LF")),B,S,o)}break}if(h(B));else if(W=L,"listing"["$==="](W)||"source"["$==="](W))h(h(d=L["$=="]("source"))?d:h(m=l["$[]"](1)["$!"]())?ft=h(g=l["$[]"](2))?g:T["$[]"]("source-language"):m)&&(h(ft)?(j=["style","source"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],j=["language",ft],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],c(ut,"AttributeList").$rekey(l,[s,s,"linenums"])):(c(ut,"AttributeList").$rekey(l,[s,"language","linenums"]),h(l["$key?"]("language"))||h(T["$key?"]("source-language"))&&(j=["language",T["$[]"]("source-language")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])),h(l["$key?"]("linenums"))||h(h(d=l["$[]"]("linenums-option"))?d:T["$[]"]("source-linenums-option"))&&(j=["linenums",""],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(l["$key?"]("indent"))||h(T["$key?"]("source-indent"))&&(j=["indent",T["$[]"]("source-indent")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])),B=w.$build_block("listing","verbatim",D,a,o,l);else if("fenced_code"["$==="](W))j=["style","source"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],h(i(H=E.$length(),3))&&(h(ht=(ft=E.$slice(3,H)).$index(","))?h(i(ht,0))?(ft=ft.$slice(0,ht).$strip(),h(r(ht,e(H,4)))&&(j=["linenums",""],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])):h(i(H,4))&&(j=["linenums",""],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]):ft=ft.$lstrip()),h(ft["$nil_or_empty?"]())?h(T["$key?"]("source-language"))&&(j=["language",T["$[]"]("source-language")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]):(j=["language",ft],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(l["$key?"]("linenums"))||h(h(d=l["$[]"]("linenums-option"))?d:T["$[]"]("source-linenums-option"))&&(j=["linenums",""],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(l["$key?"]("indent"))||h(T["$key?"]("source-indent"))&&(j=["indent",T["$[]"]("source-indent")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),D=D.$slice(0,3),B=w.$build_block("listing","verbatim",D,a,o,l);else if("table"["$==="](W))pt=o.$cursor(),$t=c(ut,"Reader").$new(o.$read_lines_until(p(["terminator","skip_line_comments","context","cursor"],{terminator:D,skip_line_comments:!0,context:"table",cursor:"at_mark"})),pt),h(D["$start_with?"]("|","!"))||h(d=l["$[]"]("format"))||(j=["format",function(){return h(D["$start_with?"](","))?"csv":"dsv"}()],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),B=w.$parse_table($t,a,l);else if("sidebar"["$==="](W))B=w.$build_block(L,"compound",D,a,o,l);else if("admonition"["$==="](W))j=["name",st=P.$downcase()],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],j=["textlabel",h(d=l.$delete("caption"))?d:T["$[]"](st+"-caption")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],B=w.$build_block(L,"compound",D,a,o,l);else if("open"["$==="](W)||"abstract"["$==="](W)||"partintro"["$==="](W))B=w.$build_block("open","compound",D,a,o,l);else if("literal"["$==="](W))B=w.$build_block(L,"verbatim",D,a,o,l);else if("example"["$==="](W))B=w.$build_block(L,"compound",D,a,o,l);else if("quote"["$==="](W)||"verse"["$==="](W))c(ut,"AttributeList").$rekey(l,[s,"attribution","citetitle"]),B=w.$build_block(L,function(){return L["$=="]("verse")?"verbatim":"compound"}(),D,a,o,l);else if("stem"["$==="](W)||"latexmath"["$==="](W)||"asciimath"["$==="](W))L["$=="]("stem")&&(j=["style",c(ut,"STEM_TYPE_ALIASES")["$[]"](h(d=l["$[]"](2))?d:T["$[]"]("stem"))],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),B=w.$build_block("stem","raw",D,a,o,l);else if("pass"["$==="](W))B=w.$build_block(L,"raw",D,a,o,l);else{if("comment"["$==="](W))return w.$build_block(L,"skip",D,a,o,l),l.$clear(),s;if(h(h(d=C)?Z=O["$registered_for_block?"](L,I):d)){if((mt=(tt=Z.$config())["$[]"]("content_model"))["$=="]("skip")||(h((gt=h(d=tt["$[]"]("positional_attrs"))?d:tt["$[]"]("pos_attrs"))["$nil_or_empty?"]())||c(ut,"AttributeList").$rekey(l,n([s],gt)),h(et=tt["$[]"]("default_attrs"))&&f(et,"each",[],(b=function(n,r){var i;b.$$s;return null==n&&(n=s),null==r&&(r=s),h(i=l["$[]"](n))?i:(j=[n,r],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])},b.$$s=w,b.$$arity=2,b)),j=["cloaked-context",I],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),!h(B=w.$build_block(L,mt,D,a,o,l,p(["extension"],{extension:Z}))))return l.$clear(),s}else w.$raise("Unsupported block type "+L+" at "+o.$cursor())}return h(S.$sourcemap())&&(j=[o.$cursor_at_mark()],f(B,"source_location=",t.to_a(j)),j[e(j["length"],1)]),h(l["$[]"]("title"))&&(j=[X=l.$delete("title")],f(B,"title=",t.to_a(j)),j[e(j["length"],1)],h(h(d=vt=c(ut,"CAPTION_ATTR_NAMES")["$[]"](B.$context()))?S.$attributes()["$[]"](vt):d)&&B.$assign_caption(l.$delete("caption"))),j=[l["$[]"]("style")],f(B,"style=",t.to_a(j)),j[e(j["length"],1)],h(yt=h(d=B.$id())?d:(j=[l["$[]"]("id")],f(B,"id=",t.to_a(j)),j[e(j["length"],1)]))&&(h(function(){return h(X)?X["$include?"](c(ut,"ATTR_REF_HEAD")):B["$title?"]()}())&&B.$title(),h(S.$register("refs",[yt,B]))||w.$logger().$warn(w.$message_with_context("id assigned to block already in use: "+yt,p(["source_location"],{source_location:o.$cursor_at_mark()})))),h(l["$empty?"]())||B.$update_attributes(l),B.$commit_subs(),h(B["$sub?"]("callouts"))&&(h(w.$catalog_callouts(B.$source(),S))||B.$remove_sub("callouts")),B}catch(_t){if(_t===t.returner)return _t.$v;throw _t}},k.$$arity=-3),t.defs(ct,"$read_paragraph_lines",S=function(n,r,i){var o=s,a=s;return null==i&&(i=p([],{})),o=["break_on_blank_lines",!0],f(i,"[]=",t.to_a(o)),o[e(o["length"],1)],o=["break_on_list_continuation",!0],f(i,"[]=",t.to_a(o)),o[e(o["length"],1)],o=["preserve_last_line",!0],f(i,"[]=",t.to_a(o)),o[e(o["length"],1)],a=function(){return h(r)?h(c(ut,"Compliance").$block_terminates_paragraph())?c(ut,"StartOfBlockOrListProc"):c(ut,"StartOfListProc"):h(c(ut,"Compliance").$block_terminates_paragraph())?c(ut,"StartOfBlockProc"):c(ut,"NoOp")}(),f(n,"read_lines_until",[i],a.$to_proc())},S.$$arity=-3),t.defs(ct,"$is_delimited_block?",O=function(n,o){var a,l,u=this,d=s,f=s,p=s,$=s,m=s;if(null==o&&(o=s),!h(h(a=i(d=n.$length(),1))?c(ut,"DELIMITED_BLOCK_HEADS")["$[]"](n.$slice(0,2)):a))return s;if(d["$=="](2))f=n,p=2;else if(h(r(d,5))?(f=n,p=d):f=n.$slice(0,p=4),h(h(a=c(ut,"Compliance").$markdown_syntax())?f["$start_with?"]("`"):a)){if(p["$=="](4)){if(f["$=="]("````"))return s;if(!(f=f.$chop())["$=="]("```"))return s;n=f,d=p=3}else if(!f["$=="]("```"))return s}else if(p["$=="](3))return s;return l=c(ut,"DELIMITED_BLOCKS")["$[]"](f),a=t.to_ary(l),$=null==a[0]?s:a[0],m=null==a[1]?s:a[1],h(h(a=$)?h(l=d["$=="](p))?l:u["$uniform?"](n.$slice(1,d),c(ut,"DELIMITED_BLOCK_TAILS")["$[]"](f),e(d,1)):a)?!h(o)||c(ut,"BlockMatchData").$new($,m,f,n):s},O.$$arity=-2),t.defs(ct,"$build_block",C=function(t,e,n,r,o,a,l){var u,d=this,f=s,$=s,m=s,g=s,v=s,y=s,_=s,b=s,w=s;if(null==l&&(l=p([],{})),e["$=="]("skip")?(u=[!0,"simple"],f=u[0],$=u[1]):e["$=="]("raw")?(u=[!1,"simple"],f=u[0],$=u[1]):(u=[!1,e],f=u[0],$=u[1]),h(n["$nil?"]())?($["$=="]("verbatim")?m=o.$read_lines_until(p(["break_on_blank_lines","break_on_list_continuation"],{break_on_blank_lines:!0,break_on_list_continuation:!0})):(e["$=="]("compound")&&(e="simple"),m=d.$read_paragraph_lines(o,!1,p(["skip_line_comments","skip_processing"],{skip_line_comments:!0,skip_processing:f}))),g=s):h($["$!="]("compound"))?(m=o.$read_lines_until(p(["terminator","skip_processing","context","cursor"],{terminator:n,skip_processing:f,context:t,cursor:"at_mark"})),g=s):n["$=="](!1)?(m=s,g=o):(m=s,v=o.$cursor(),g=c(ut,"Reader").$new(o.$read_lines_until(p(["terminator","skip_processing","context","cursor"],{terminator:n,skip_processing:f,context:t,cursor:"at_mark"})),v)),e["$=="]("verbatim"))y=(h(u=a["$[]"]("tabsize"))?u:r.$document().$attributes()["$[]"]("tabsize")).$to_i(),h(_=a["$[]"]("indent"))?d["$adjust_indentation!"](m,_.$to_i(),y):h(i(y,0))&&d["$adjust_indentation!"](m,-1,y);else if(e["$=="]("skip"))return s;if(h(b=l["$[]"]("extension"))){if(a.$delete("style"),!h(w=b.$process_method()["$[]"](r,h(u=g)?u:c(ut,"Reader").$new(m),a.$merge())))return s;a.$replace(w.$attributes()),h((u=w.$content_model()["$=="]("compound"))?(m=w.$lines())["$empty?"]()["$!"]():w.$content_model()["$=="]("compound"))&&(e="compound",g=c(ut,"Reader").$new(m))}else w=c(ut,"Block").$new(r,t,p(["content_model","source","attributes"],{content_model:e,source:m,attributes:a}));return e["$=="]("compound")&&d.$parse_blocks(g,w),w},C.$$arity=-7),t.defs(ct,"$parse_blocks",A=function(t,e,n){var r,i,o=this,a=s;if(null==n&&(n=s),h(n))while(h(h(r=h(i=a=o.$next_block(t,e,n.$merge()))?e.$blocks()["$<<"](a):i)?r:t["$has_more_lines?"]()));else while(h(h(r=h(i=a=o.$next_block(t,e))?e.$blocks()["$<<"](a):i)?r:t["$has_more_lines?"]()));return s},A.$$arity=-3),t.defs(ct,"$parse_list",E=function(t,e,n,r){var i,o=this,a=s,l=s,u=s;null==$["~"]&&($["~"]=s),a=c(ut,"List").$new(n,e),l=c(ut,"ListRxMap")["$[]"](e);while(h(h(i=t["$has_more_lines?"]())?l["$=~"](t.$peek_line()):i))if(h(u=o.$parse_list_item(t,a,$["~"],(i=$["~"])===s?s:i["$[]"](1),r))&&a.$items()["$<<"](u),!h(i=t.$skip_blank_lines()))break;return a},E.$$arity=4),t.defs(ct,"$catalog_callouts",T=function(t,e){var r,i=this,o=s,a=s;return o=!1,a=0,h(t["$include?"]("<"))&&f(t,"scan",[c(ut,"CalloutScanRx")],(r=function(){var t;r.$$s;return h(((t=$["~"])===s?s:t["$[]"](0))["$start_with?"]("\\"))||e.$callouts().$register(function(){return((t=$["~"])===s?s:t["$[]"](2))["$=="](".")?(a=n(a,1)).$to_s():(t=$["~"])===s?s:t["$[]"](2)}()),o=!0},r.$$s=i,r.$$arity=0,r)),o},T.$$arity=2),t.defs(ct,"$catalog_inline_anchor",P=function(t,e,n,r,i){var o,a=this;return null==i&&(i=n.$document()),h(h(o=e)?e["$include?"](c(ut,"ATTR_REF_HEAD")):o)&&(e=i.$sub_attributes(e)),h(i.$register("refs",[t,c(ut,"Inline").$new(n,"anchor",e,p(["type","id"],{type:"ref",id:t}))]))||(h(c(ut,"Reader")["$==="](r))&&(r=r.$cursor()),a.$logger().$warn(a.$message_with_context("id assigned to anchor already in use: "+t,p(["source_location"],{source_location:r})))),s},P.$$arity=-5),t.defs(ct,"$catalog_inline_anchors",B=function(t,e,r,o){var a,l,u=this;return h(h(a=t["$include?"]("[["))?a:t["$include?"]("or:"))&&f(t,"scan",[c(ut,"InlineAnchorScanRx")],(l=function(){var t,a=l.$$s||this,u=s,d=s,f=s,m=s;if(h(u=(t=$["~"])===s?s:t["$[]"](1))){if(h(d=(t=$["~"])===s?s:t["$[]"](2))&&h(h(t=d["$include?"](c(ut,"ATTR_REF_HEAD")))?(d=r.$sub_attributes(d))["$empty?"]():t))return s}else if(u=(t=$["~"])===s?s:t["$[]"](3),h(d=(t=$["~"])===s?s:t["$[]"](4))&&(h(d["$include?"]("]"))&&(d=d.$gsub("\\]","]")),h(h(t=d["$include?"](c(ut,"ATTR_REF_HEAD")))?(d=r.$sub_attributes(d))["$empty?"]():t)))return s;return h(r.$register("refs",[u,c(ut,"Inline").$new(e,"anchor",d,p(["type","id"],{type:"ref",id:u}))]))?s:(f=o.$cursor_at_mark(),h(i(m=n(((t=$["~"])===s?s:t.$pre_match()).$count(c(ut,"LF")),function(){return h(((t=$["~"])===s?s:t["$[]"](0))["$start_with?"](c(ut,"LF")))?1:0}()),0))&&(f=f.$dup()).$advance(m),a.$logger().$warn(a.$message_with_context("id assigned to anchor already in use: "+u,p(["source_location"],{source_location:f}))))},l.$$s=u,l.$$arity=0,l)),s},B.$$arity=4),t.defs(ct,"$catalog_inline_biblio_anchor",L=function(t,e,n,r){var i,o=this;return h(n.$document().$register("refs",[t,c(ut,"Inline").$new(n,"anchor",h(i=e)?"["+e+"]":i,p(["type","id"],{type:"bibref",id:t}))]))||o.$logger().$warn(o.$message_with_context("id assigned to bibliography anchor already in use: "+t,p(["source_location"],{source_location:r.$cursor()}))),s},L.$$arity=4),t.defs(ct,"$parse_description_list",I=function(n,r,i){var o,a=this,l=s,u=s,d=s,p=s,m=s;null==$["~"]&&($["~"]=s),l=c(ut,"List").$new(i,"dlist"),u=c(ut,"DescriptionListSiblingRx")["$[]"](r["$[]"](2)),l.$items()["$<<"](d=a.$parse_list_item(n,l,r,u));while(h(h(o=n["$has_more_lines?"]())?u["$=~"](n.$peek_line()):o))p=a.$parse_list_item(n,l,$["~"],u),h(d["$[]"](1))?l.$items()["$<<"](d=p):(d["$[]"](0)["$<<"](p["$[]"](0)["$[]"](0)),m=[1,p["$[]"](1)],f(d,"[]=",t.to_a(m)),m[e(m["length"],1)]);return l},I.$$arity=3),t.defs(ct,"$parse_callout_list",D=function(r,i,o,a){var l,u,d=this,$=s,m=s,g=s,v=s,y=s,_=s,b=s;$=c(ut,"List").$new(o,"colist"),m=1,g=0;while(h(h(l=i)?l:h(u=i=c(ut,"CalloutListRx").$match(r.$peek_line()))?r.$mark():u))(v=i["$[]"](1))["$=="](".")&&(v=(g=n(g,1)).$to_s()),v["$=="](m.$to_s())||d.$logger().$warn(d.$message_with_context("callout list item index: expected "+m+", got "+v,p(["source_location"],{source_location:r.$cursor_at_mark()}))),h(y=d.$parse_list_item(r,$,i,"<1>"))&&($.$items()["$<<"](y),h((_=a.$callout_ids($.$items().$size()))["$empty?"]())?d.$logger().$warn(d.$message_with_context("no callout found for <"+$.$items().$size()+">",p(["source_location"],{source_location:r.$cursor_at_mark()}))):(b=["coids",_],f(y.$attributes(),"[]=",t.to_a(b)),b[e(b["length"],1)])),m=n(m,1),i=s;return a.$next_list(),$},D.$$arity=4),t.defs(ct,"$parse_list_item",R=function(n,r,i,o,a){var l,u,d=this,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s;if(null==a&&(a=s),(m=r.$context())["$=="]("dlist")?(g=!0,v=c(ut,"ListItem").$new(r,y=i["$[]"](1)),h(h(l=y["$start_with?"]("[["))?c(ut,"LeadingInlineAnchorRx")["$=~"](y):l)&&d.$catalog_inline_anchor((l=$["~"])===s?s:l["$[]"](1),h(l=(u=$["~"])===s?s:u["$[]"](2))?l:((u=$["~"])===s?s:u.$post_match()).$lstrip(),v,n),h(_=i["$[]"](3))&&(b=!0),w=c(ut,"ListItem").$new(r,_),h(r.$document().$sourcemap())&&(x=[n.$cursor()],f(v,"source_location=",t.to_a(x)),x[e(x["length"],1)],h(b)?(x=[v.$source_location()],f(w,"source_location=",t.to_a(x)),x[e(x["length"],1)]):k=!0)):(b=!0,w=c(ut,"ListItem").$new(r,_=i["$[]"](2)),h(r.$document().$sourcemap())&&(x=[n.$cursor()],f(w,"source_location=",t.to_a(x)),x[e(x["length"],1)]),m["$=="]("ulist")?(x=[o],f(w,"marker=",t.to_a(x)),x[e(x["length"],1)],h(_["$start_with?"]("["))&&(h(h(l=a)?a["$=="]("bibliography"):l)?h(c(ut,"InlineBiblioAnchorRx")["$=~"](_))&&d.$catalog_inline_biblio_anchor((l=$["~"])===s?s:l["$[]"](1),(l=$["~"])===s?s:l["$[]"](2),w,n):h(_["$start_with?"]("[["))?h(c(ut,"LeadingInlineAnchorRx")["$=~"](_))&&d.$catalog_inline_anchor((l=$["~"])===s?s:l["$[]"](1),(l=$["~"])===s?s:l["$[]"](2),w,n):h(_["$start_with?"]("[ ] ","[x] ","[*] "))&&(r.$set_option("checklist"),x=["checkbox",""],f(w.$attributes(),"[]=",t.to_a(x)),x[e(x["length"],1)],h(_["$start_with?"]("[ "))||(x=["checked",""],f(w.$attributes(),"[]=",t.to_a(x)),x[e(x["length"],1)]),x=[_.$slice(4,_.$length())],f(w,"text=",t.to_a(x)),x[e(x["length"],1)]))):m["$=="]("olist")?(u=d.$resolve_ordered_list_marker(o,S=r.$items().$size(),!0,n),l=t.to_ary(u),o=null==l[0]?s:l[0],O=null==l[1]?s:l[1],x=[o],f(w,"marker=",t.to_a(x)),x[e(x["length"],1)],h((l=S["$=="](0))?a["$!"]():S["$=="](0))&&(x=[h(l=O)?l:(h(u=c(ut,"ORDERED_LIST_STYLES")["$[]"](e(o.$length(),1)))?u:"arabic").$to_s()],f(r,"style=",t.to_a(x)),x[e(x["length"],1)]),h(h(l=_["$start_with?"]("[["))?c(ut,"LeadingInlineAnchorRx")["$=~"](_):l)&&d.$catalog_inline_anchor((l=$["~"])===s?s:l["$[]"](1),(l=$["~"])===s?s:l["$[]"](2),w,n)):(x=[o],f(w,"marker=",t.to_a(x)),x[e(x["length"],1)],h(h(l=_["$start_with?"]("[["))?c(ut,"LeadingInlineAnchorRx")["$=~"](_):l)&&d.$catalog_inline_anchor((l=$["~"])===s?s:l["$[]"](1),(l=$["~"])===s?s:l["$[]"](2),w,n))),n.$shift(),C=n.$cursor(),A=c(ut,"Reader").$new(d.$read_lines_for_list_item(n,m,o,b),C),h(A["$has_more_lines?"]())){h(k)&&(x=[C],f(w,"source_location=",t.to_a(x)),x[e(x["length"],1)]),E=A.$skip_line_comments(),h(T=A.$peek_line())&&(h(E["$empty?"]())||A.$unshift_lines(E),h(T["$empty?"]())||(P=!0,h(g)||(b=s))),h(B=d.$next_block(A,w,p([],{}),p(["text_only","list_type"],{text_only:function(){return!h(b)||s}(),list_type:m})))&&w.$blocks()["$<<"](B);while(h(A["$has_more_lines?"]()))h(B=d.$next_block(A,w,p([],{}),p(["list_type"],{list_type:m})))&&w.$blocks()["$<<"](B);h(h(l=h(u=P)?L=w.$blocks()["$[]"](0):u)?L.$context()["$=="]("paragraph"):l)&&w.$fold_first()}return h(g)?[[v],function(){return h(h(l=w["$text?"]())?l:w["$blocks?"]())?w:s}()]:w},R.$$arity=-5),t.defs(ct,"$read_lines_for_list_item",j=function(n,r,i,o){var a,l,u,d,m,g,v,y=this,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s;null==i&&(i=s),null==o&&(o=!0),_=[],b="inactive",w=!1,x=s,k=r["$=="]("dlist");while(h(n["$has_more_lines?"]())){if(S=n.$read_line(),h(y["$is_sibling_list_item?"](S,r,i)))break;if(O=function(){return h(_["$empty?"]())?s:_["$[]"](-1)}(),O["$=="](c(ut,"LIST_CONTINUATION"))&&(b["$=="]("inactive")&&(b="active",o=!0,h(w)||(C=[-1,""],f(_,"[]=",t.to_a(C)),C[e(C["length"],1)])),S["$=="](c(ut,"LIST_CONTINUATION"))))h(b["$!="]("frozen"))&&(b="frozen",_["$<<"](S)),S=s;else{if(h(A=y["$is_delimited_block?"](S,!0))){if(!b["$=="]("active"))break;_["$<<"](S),_.$concat(n.$read_lines_until(p(["terminator","read_last_line","context"],{terminator:A.$terminator(),read_last_line:!0,context:s}))),b="inactive"}else{if(h(h(a=h(l=k)?b["$!="]("active"):l)?c(ut,"BlockAttributeLineRx")["$match?"](S):a))break;if(h((a=b["$=="]("active"))?S["$empty?"]()["$!"]():b["$=="]("active")))h(c(ut,"LiteralParagraphRx")["$match?"](S))?(n.$unshift_line(S),h(k)?_.$concat(f(n,"read_lines_until",[p(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})],(u=function(t){var e=u.$$s||this;return null==t&&(t=s),e["$is_sibling_list_item?"](t,r,i)},u.$$s=y,u.$$arity=1,u))):_.$concat(n.$read_lines_until(p(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0}))),b="inactive"):h(h(a=h(l=c(ut,"BlockTitleRx")["$match?"](S))?l:c(ut,"BlockAttributeLineRx")["$match?"](S))?a:c(ut,"AttributeEntryRx")["$match?"](S))?_["$<<"](S):(h(E=f(function(){return h(w)?["dlist"]:c(ut,"NESTABLE_LIST_CONTEXTS")}(),"find",[],(d=function(t){d.$$s;return null==t&&(t=s),c(ut,"ListRxMap")["$[]"](t)["$match?"](S)},d.$$s=y,d.$$arity=1,d)))&&(w=!0,h((a=E["$=="]("dlist"))?((l=$["~"])===s?s:l["$[]"](3))["$nil_or_empty?"]():E["$=="]("dlist"))&&(o=!1)),_["$<<"](S),b="inactive");else if(h(h(a=O)?O["$empty?"]():a)){if(h(S["$empty?"]())){if(!h(S=h(a=n.$skip_blank_lines())?n.$read_line():a))break;if(h(y["$is_sibling_list_item?"](S,r,i)))break}if(S["$=="](c(ut,"LIST_CONTINUATION")))x=_.$size(),_["$<<"](S);else if(h(o)){if(h(y["$is_sibling_list_item?"](S,r,i)))break;if(h(E=f(c(ut,"NESTABLE_LIST_CONTEXTS"),"find",[],(m=function(t){m.$$s;return null==t&&(t=s),c(ut,"ListRxMap")["$[]"](t)["$=~"](S)},m.$$s=y,m.$$arity=1,m))))_["$<<"](S),w=!0,h((a=E["$=="]("dlist"))?((l=$["~"])===s?s:l["$[]"](3))["$nil_or_empty?"]():E["$=="]("dlist"))&&(o=!1);else{if(!h(c(ut,"LiteralParagraphRx")["$match?"](S)))break;n.$unshift_line(S),h(k)?_.$concat(f(n,"read_lines_until",[p(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})],(g=function(t){var e=g.$$s||this;return null==t&&(t=s),e["$is_sibling_list_item?"](t,r,i)},g.$$s=y,g.$$arity=1,g))):_.$concat(n.$read_lines_until(p(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})))}}else h(w)||_.$pop(),_["$<<"](S),o=!0}else h(S["$empty?"]())||(o=!0),h(E=f(function(){return h(w)?["dlist"]:c(ut,"NESTABLE_LIST_CONTEXTS")}(),"find",[],(v=function(t){v.$$s;return null==t&&(t=s),c(ut,"ListRxMap")["$[]"](t)["$=~"](S)},v.$$s=y,v.$$arity=1,v)))&&(w=!0,h((a=E["$=="]("dlist"))?((l=$["~"])===s?s:l["$[]"](3))["$nil_or_empty?"]():E["$=="]("dlist"))&&(o=!1)),_["$<<"](S)}S=s}}h(S)&&n.$unshift_line(S),h(x)&&(C=[x,""],f(_,"[]=",t.to_a(C)),C[e(C["length"],1)]);while(!h(_["$empty?"]())){if(!h((T=_["$[]"](-1))["$empty?"]())){T["$=="](c(ut,"LIST_CONTINUATION"))&&_.$pop();break}_.$pop()}return _},j.$$arity=-3),t.defs(ct,"$initialize_section",M=function(n,r,o){var a,l,u=this,d=s,$=s,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s;return null==o&&(o=p([],{})),d=r.$document(),$=(m=d.$doctype())["$=="]("book"),h(d.$sourcemap())&&(g=n.$cursor()),v=o["$[]"](1),l=u.$parse_section_title(n,d,o["$[]"]("id")),a=t.to_ary(l),y=null==a[0]?s:a[0],_=null==a[1]?s:a[1],b=null==a[2]?s:a[2],w=null==a[3]?s:a[3],x=null==a[4]?s:a[4],h(_)?(k=["reftext",_],f(o,"[]=",t.to_a(k)),k[e(k["length"],1)]):_=o["$[]"]("reftext"),h(v)?h(h(a=$)?v["$=="]("abstract"):a)?(a=["chapter",1],S=a[0],w=a[1]):h(h(a=v["$start_with?"]("sect"))?c(ut,"SectionLevelStyleRx")["$match?"](v):a)?S="section":(a=[v,!0],S=a[0],O=a[1],w["$=="](0)&&(w=1),C=S["$=="]("appendix")):h($)?S=function(){return w["$=="](0)?"part":h(i(w,1))?"section":"chapter"}():h((a=m["$=="]("manpage"))?b.$casecmp("synopsis")["$=="](0):m["$=="]("manpage"))?(a=["synopsis",!0],S=a[0],O=a[1]):S="section",A=c(ut,"Section").$new(r,w),a=[y,b,S,g],A["$id="](a[0]),A["$title="](a[1]),A["$sectname="](a[2]),A["$source_location="](a[3]),h(O)?(k=[!0],f(A,"special=",t.to_a(k)),k[e(k["length"],1)],h(C)?(k=[!0],f(A,"numbered=",t.to_a(k)),k[e(k["length"],1)]):d.$attributes()["$[]"]("sectnums")["$=="]("all")&&(k=[function(){return!h(h(a=$)?w["$=="](1):a)||"chapter"}()],f(A,"numbered=",t.to_a(k)),k[e(k["length"],1)])):h(h(a=d.$attributes()["$[]"]("sectnums"))?i(w,0):a)?(k=[function(){return!h(A.$special())||(!!h(a=r.$numbered())||a)}()],f(A,"numbered=",t.to_a(k)),k[e(k["length"],1)]):h(h(a=h(l=$)?w["$=="](0):l)?d.$attributes()["$[]"]("partnums"):a)&&(k=[!0],f(A,"numbered=",t.to_a(k)),k[e(k["length"],1)]),h(E=h(a=A.$id())?a:(k=[function(){return h(d.$attributes()["$key?"]("sectids"))?T=c(ut,"Section").$generate_id(A.$title(),d):s}()],f(A,"id=",t.to_a(k)),k[e(k["length"],1)]))&&(h(T)||h(b["$include?"](c(ut,"ATTR_REF_HEAD")))&&A.$title(),h(d.$register("refs",[E,A]))||u.$logger().$warn(u.$message_with_context("id assigned to section already in use: "+E,p(["source_location"],{source_location:n.$cursor_at_line(e(n.$lineno(),function(){return h(x)?1:2}()))})))),A.$update_attributes(o),n.$skip_blank_lines(),A},M.$$arity=-3),t.defs(ct,"$is_next_line_section?",F=function(t,e){var n,r,i=this,o=s,a=s;return h(h(n=o=e["$[]"](1))?h(r=o["$=="]("discrete"))?r:o["$=="]("float"):n)?s:h(c(ut,"Compliance").$underline_style_section_titles())?(a=t.$peek_lines(2,h(n=o)?o["$=="]("comment"):n),i["$is_section_title?"](h(n=a["$[]"](0))?n:"",a["$[]"](1))):i["$atx_section_title?"](h(n=t.$peek_line())?n:"")},F.$$arity=2),t.defs(ct,"$is_next_line_doctitle?",N=function(t,e,r){var i,o=this,a=s;return h(r)?h(i=a=o["$is_next_line_section?"](t,e))?n(a,r.$to_i())["$=="](0):i:o["$is_next_line_section?"](t,e)["$=="](0)},N.$$arity=3),t.defs(ct,"$is_section_title?",z=function(t,e){var n,r=this;return null==e&&(e=s),h(n=r["$atx_section_title?"](t))?n:function(){return h(e["$nil_or_empty?"]())?s:r["$setext_section_title?"](t,e)}()},z.$$arity=-2),t.defs(ct,"$atx_section_title?",H=function(t){var n;return h(function(){return h(c(ut,"Compliance").$markdown_syntax())?h(n=t["$start_with?"]("=","#"))?c(ut,"ExtAtxSectionTitleRx")["$=~"](t):n:h(n=t["$start_with?"]("="))?c(ut,"AtxSectionTitleRx")["$=~"](t):n}())?e(((n=$["~"])===s?s:n["$[]"](1)).$length(),1):s},H.$$arity=1),t.defs(ct,"$setext_section_title?",V=function(t,n){var i,o,a,l=this,u=s,d=s,f=s;return h(h(i=h(o=h(a=u=c(ut,"SETEXT_SECTION_LEVELS")["$[]"](d=n.$chr()))?l["$uniform?"](n,d,f=n.$length()):a)?c(ut,"SetextSectionTitleRx")["$match?"](t):o)?r(e(t.$length(),f).$abs(),2):i)?u:s},V.$$arity=2),t.defs(ct,"$parse_section_title",U=function(t,i,o){var a,l,u,d,f,p=this,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s;return null==o&&(o=s),m=s,g=t.$read_line(),h(function(){return h(c(ut,"Compliance").$markdown_syntax())?h(a=g["$start_with?"]("=","#"))?c(ut,"ExtAtxSectionTitleRx")["$=~"](g):a:h(a=g["$start_with?"]("="))?c(ut,"AtxSectionTitleRx")["$=~"](g):a}())?(a=[e(((l=$["~"])===s?s:l["$[]"](1)).$length(),1),(l=$["~"])===s?s:l["$[]"](2),!0],v=a[0],y=a[1],_=a[2],h(o)||h(h(a=h(l=y["$end_with?"]("]]"))?c(ut,"InlineSectionAnchorRx")["$=~"](y):l)?((l=$["~"])===s?s:l["$[]"](1))["$!"]():a)&&(a=[y.$slice(0,e(y.$length(),((l=$["~"])===s?s:l["$[]"](0)).$length())),(l=$["~"])===s?s:l["$[]"](2),(l=$["~"])===s?s:l["$[]"](3)],y=a[0],o=a[1],m=a[2])):h(h(a=h(l=h(u=h(d=h(f=c(ut,"Compliance").$underline_style_section_titles())?b=t.$peek_line(!0):f)?v=c(ut,"SETEXT_SECTION_LEVELS")["$[]"](w=b.$chr()):d)?p["$uniform?"](b,w,x=b.$length()):u)?y=h(u=c(ut,"SetextSectionTitleRx")["$=~"](g))?(d=$["~"])===s?s:d["$[]"](1):u:l)?r(e(g.$length(),x).$abs(),2):a)?(_=!1,h(o)||h(h(a=h(l=y["$end_with?"]("]]"))?c(ut,"InlineSectionAnchorRx")["$=~"](y):l)?((l=$["~"])===s?s:l["$[]"](1))["$!"]():a)&&(a=[y.$slice(0,e(y.$length(),((l=$["~"])===s?s:l["$[]"](0)).$length())),(l=$["~"])===s?s:l["$[]"](2),(l=$["~"])===s?s:l["$[]"](3)],y=a[0],o=a[1],m=a[2]),t.$shift()):p.$raise("Unrecognized section at "+t.$cursor_at_prev_line()),h(i["$attr?"]("leveloffset"))&&(v=n(v,i.$attr("leveloffset").$to_i()),h(r(v,0))&&(v=0)),[o,m,y,v,_]},U.$$arity=-3),t.defs(ct,"$parse_header_metadata",q=function(r,i){var o,a,u,d,$=this,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s;if(null==i&&(i=s),m=h(o=i)?i.$attributes():o,$.$process_attribute_entries(r,i),o=[g=p([],{}),s,s],v=o[0],y=o[1],_=o[2],h(h(o=r["$has_more_lines?"]())?r["$next_line_empty?"]()["$!"]():o)?(h((b=$.$process_authors(r.$read_line()))["$empty?"]())||(h(i)&&(f(b,"each",[],(a=function(n,r){a.$$s;var o=s;return null==n&&(n=s),null==r&&(r=s),h(m["$key?"](n))?s:(o=[n,function(){return h(l("::","String")["$==="](r))?i.$apply_header_subs(r):r}()],f(m,"[]=",t.to_a(o)),o[e(o["length"],1)])},a.$$s=$,a.$$arity=2,a)),y=m["$[]"]("author"),_=m["$[]"]("authorinitials"),g=m["$[]"]("authors")),v=b),$.$process_attribute_entries(r,i),w=p([],{}),h(h(o=r["$has_more_lines?"]())?r["$next_line_empty?"]()["$!"]():o)&&(x=r.$read_line(),h(k=c(ut,"RevisionInfoLineRx").$match(x))?(h(k["$[]"](1))&&(S=["revnumber",k["$[]"](1).$rstrip()],f(w,"[]=",t.to_a(S)),S[e(S["length"],1)]),h((O=k["$[]"](2).$strip())["$empty?"]())||(h(h(o=k["$[]"](1)["$!"]())?O["$start_with?"]("v"):o)?(S=["revnumber",O.$slice(1,O.$length())],f(w,"[]=",t.to_a(S)),S[e(S["length"],1)]):(S=["revdate",O],f(w,"[]=",t.to_a(S)),S[e(S["length"],1)])),h(k["$[]"](3))&&(S=["revremark",k["$[]"](3).$rstrip()],f(w,"[]=",t.to_a(S)),S[e(S["length"],1)])):r.$unshift_line(x)),h(w["$empty?"]())||(h(i)&&f(w,"each",[],(u=function(n,r){u.$$s;return null==n&&(n=s),null==r&&(r=s),h(m["$key?"](n))?s:(S=[n,i.$apply_header_subs(r)],f(m,"[]=",t.to_a(S)),S[e(S["length"],1)])},u.$$s=$,u.$$arity=2,u)),v.$update(w)),$.$process_attribute_entries(r,i),r.$skip_blank_lines()):b=p([],{}),h(i)){if(h(h(o=m["$key?"]("author"))?(C=m["$[]"]("author"))["$!="](y):o))b=$.$process_authors(C,!0,!1),h(m["$[]"]("authorinitials")["$!="](_))&&b.$delete("authorinitials");else if(h(h(o=m["$key?"]("authors"))?(C=m["$[]"]("authors"))["$!="](g):o))b=$.$process_authors(C,!0);else{o=[[],1,"author_1",!1,!1],A=o[0],E=o[1],T=o[2],P=o[3],B=o[4];while(h(m["$key?"](T)))(L=m["$[]"](T))["$=="](b["$[]"](T))?(A["$<<"](s),B=!0):(A["$<<"](L),P=!0),T="author_"+(E=n(E,1));h(P)?(h(B)&&f(A,"each_with_index",[],(d=function(r,i){var o,a=d.$$s||this,l=s;return null==r&&(r=s),null==i&&(i=s),h(r)?s:(S=[i,f([b["$[]"]("firstname_"+(l=n(i,1))),b["$[]"]("middlename_"+l),b["$[]"]("lastname_"+l)].$compact(),"map",[],(o=function(t){o.$$s;return null==t&&(t=s),t.$tr(" ","_")},o.$$s=a,o.$$arity=1,o)).$join(" ")],f(A,"[]=",t.to_a(S)),S[e(S["length"],1)])},d.$$s=$,d.$$arity=2,d)),b=$.$process_authors(A,!0,!1)):b=p([],{})}h(b["$empty?"]())?h(o=v["$[]"]("authorcount"))||(S=["authorcount",(S=["authorcount",0],f(m,"[]=",t.to_a(S)),S[e(S["length"],1)])],f(v,"[]=",t.to_a(S)),S[e(S["length"],1)]):(m.$update(b),h(h(o=m["$key?"]("email")["$!"]())?m["$key?"]("email_1"):o)&&(S=["email",m["$[]"]("email_1")],f(m,"[]=",t.to_a(S)),S[e(S["length"],1)]))}return v},q.$$arity=-2),t.defs(ct,"$process_authors",W=function(r,i,o){var a,l,u=this,d=s,$=s,m=s;return null==i&&(i=!1),null==o&&(o=!0),d=p([],{}),$=0,f(function(){return h(h(a=o)?r["$include?"](";"):a)?r.$split(c(ut,"AuthorDelimiterRx")):[].concat(t.to_a(r))}(),"each",[],(l=function(r){var o,a,u,m,g=l.$$s||this,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s;return null==r&&(r=s),h(r["$empty?"]())?s:(v=p([],{}),($=n($,1))["$=="](1)?f(c(ut,"AuthorKeys"),"each",[],(o=function(n){o.$$s;var r=s;return null==n&&(n=s),r=[n.$to_sym(),n],f(v,"[]=",t.to_a(r)),r[e(r["length"],1)]},o.$$s=g,o.$$arity=1,o)):f(c(ut,"AuthorKeys"),"each",[],(a=function(n){a.$$s;var r=s;return null==n&&(n=s),r=[n.$to_sym(),n+"_"+$],f(v,"[]=",t.to_a(r)),r[e(r["length"],1)]},a.$$s=g,a.$$arity=1,a)),h(i)?(h(r["$include?"]("<"))&&(y=[v["$[]"]("author"),r.$tr("_"," ")],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],r=r.$gsub(c(ut,"XmlSanitizeRx"),"")),(_=r.$split(s,3)).$size()["$=="](3)&&_["$<<"](_.$pop().$squeeze(" "))):h(b=c(ut,"AuthorInfoLineRx").$match(r))&&(_=b.$to_a()).$shift(),h(_)?(y=[v["$[]"]("firstname"),x=_["$[]"](0).$tr("_"," ")],f(d,"[]=",t.to_a(y)),w=y[e(y["length"],1)],y=[v["$[]"]("authorinitials"),x.$chr()],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],h(_["$[]"](1))&&(h(_["$[]"](2))?(y=[v["$[]"]("middlename"),k=_["$[]"](1).$tr("_"," ")],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],y=[v["$[]"]("lastname"),S=_["$[]"](2).$tr("_"," ")],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],w=n(n(n(n(x," "),k)," "),S),y=[v["$[]"]("authorinitials"),""+x.$chr()+k.$chr()+S.$chr()],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]):(y=[v["$[]"]("lastname"),S=_["$[]"](1).$tr("_"," ")],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],w=n(n(x," "),S),y=[v["$[]"]("authorinitials"),""+x.$chr()+S.$chr()],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)])),h(u=d["$[]"](v["$[]"]("author")))||(y=[v["$[]"]("author"),w],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]),h(h(u=i)?u:_["$[]"](3)["$!"]())||(y=[v["$[]"]("email"),_["$[]"](3)],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)])):(y=[v["$[]"]("author"),(y=[v["$[]"]("firstname"),x=r.$squeeze(" ").$strip()],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)])],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],y=[v["$[]"]("authorinitials"),x.$chr()],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]),$["$=="](1)?(y=["authors",d["$[]"](v["$[]"]("author"))],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]):($["$=="](2)&&f(c(ut,"AuthorKeys"),"each",[],(m=function(n){m.$$s;return null==n&&(n=s),h(d["$key?"](n))?(y=[n+"_1",d["$[]"](n)],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]):s},m.$$s=g,m.$$arity=1,m)),y=["authors",d["$[]"]("authors")+", "+d["$[]"](v["$[]"]("author"))],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]))},l.$$s=u,l.$$arity=1,l)),m=["authorcount",$],f(d,"[]=",t.to_a(m)),m[e(m["length"],1)],d},W.$$arity=-2),t.defs(ct,"$parse_block_metadata_lines",G=function(t,e,n,r){var i=this;null==n&&(n=p([],{})),null==r&&(r=p([],{}));while(h(i.$parse_block_metadata_line(t,e,n,r)))if(t.$shift(),!h(t.$skip_blank_lines()))break;return n},G.$$arity=-3),t.defs(ct,"$parse_block_metadata_line",Y=function(n,r,i,o){var a,l,u=this,d=s,m=s,g=s,v=s,y=s,_=s;return null==$["~"]&&($["~"]=s),null==o&&(o=p([],{})),h(h(a=d=n.$peek_line())?function(){return h(o["$[]"]("text_only"))?d["$start_with?"]("[","/"):m=d["$start_with?"]("[",".","/",":")}():a)?h(d["$start_with?"]("["))?h(d["$start_with?"]("[["))?h(h(a=d["$end_with?"]("]]"))?c(ut,"BlockAnchorRx")["$=~"](d):a)?(g=["id",(a=$["~"])===s?s:a["$[]"](1)],f(i,"[]=",t.to_a(g)),g[e(g["length"],1)],h(v=(a=$["~"])===s?s:a["$[]"](2))&&(g=["reftext",function(){return h(v["$include?"](c(ut,"ATTR_REF_HEAD")))?r.$sub_attributes(v):v}()],f(i,"[]=",t.to_a(g)),g[e(g["length"],1)]),!0):s:h(h(a=d["$end_with?"]("]"))?c(ut,"BlockAttributeListRx")["$=~"](d):a)?(y=i["$[]"](1),h(r.$parse_attributes((a=$["~"])===s?s:a["$[]"](1),[],p(["sub_input","sub_result","into"],{sub_input:!0,sub_result:!0,into:i}))["$[]"](1))&&(g=[1,h(a=u.$parse_style_attribute(i,n))?a:y],f(i,"[]=",t.to_a(g)),g[e(g["length"],1)]),!0):s:h(h(a=m)?d["$start_with?"]("."):a)?h(c(ut,"BlockTitleRx")["$=~"](d))?(g=["title",(a=$["~"])===s?s:a["$[]"](1)],f(i,"[]=",t.to_a(g)),g[e(g["length"],1)],!0):s:h(h(a=m["$!"]())?a:d["$start_with?"]("/"))?h(d["$start_with?"]("//"))?!!d["$=="]("//")||(h(h(a=m)?u["$uniform?"](d,"/",_=d.$length()):a)?_["$=="](3)?s:(n.$read_lines_until(p(["terminator","skip_first_line","preserve_last_line","skip_processing","context"],{terminator:d,skip_first_line:!0,preserve_last_line:!0,skip_processing:!0,context:"comment"})),!0):!h(d["$start_with?"]("///"))||s):s:h(h(a=h(l=m)?d["$start_with?"](":"):l)?c(ut,"AttributeEntryRx")["$=~"](d):a)?(u.$process_attribute_entry(n,r,i,$["~"]),!0):s:s},Y.$$arity=-4),t.defs(ct,"$process_attribute_entries",K=function(t,e,n){var r=this;null==n&&(n=s),t.$skip_comment_lines();while(h(r.$process_attribute_entry(t,e,n)))t.$shift(),t.$skip_comment_lines()},K.$$arity=-3),t.defs(ct,"$process_attribute_entry",X=function(t,n,r,i){var o,a,l,u=this,d=s,f=s,p=s,$=s;if(null==r&&(r=s),null==i&&(i=s),h(h(o=i)?o:i=function(){return h(t["$has_more_lines?"]())?c(ut,"AttributeEntryRx").$match(t.$peek_line()):s}())){if(h((d=i["$[]"](2))["$nil_or_empty?"]()))d="";else if(h(d["$end_with?"](c(ut,"LINE_CONTINUATION"),c(ut,"LINE_CONTINUATION_LEGACY")))){o=[d.$slice(e(d.$length(),2),2),d.$slice(0,e(d.$length(),2)).$rstrip()],f=o[0],d=o[1];while(h(h(a=t.$advance())?(p=h(l=t.$peek_line())?l:"")["$empty?"]()["$!"]():a))if(p=p.$lstrip(),h($=p["$end_with?"](f))&&(p=p.$slice(0,e(p.$length(),2)).$rstrip()),d=""+d+function(){return h(d["$end_with?"](c(ut,"HARD_LINE_BREAK")))?c(ut,"LF"):" "}()+p,!h($))break}return u.$store_attribute(i["$[]"](1),d,n,r),!0}return s},X.$$arity=-3),t.defs(ct,"$store_attribute",Z=function(t,r,i,o){var a,u=this,d=s;return null==i&&(i=s),null==o&&(o=s),h(t["$end_with?"]("!"))?(t=t.$chop(),r=s):h(t["$start_with?"]("!"))&&(t=t.$slice(1,t.$length()),r=s),(t=u.$sanitize_attribute_name(t))["$=="]("numbered")?t="sectnums":t["$=="]("hardbreaks")&&(t="hardbreaks-option"),h(i)?h(r)?(t["$=="]("leveloffset")&&(h(r["$start_with?"]("+"))?r=n(i.$attr("leveloffset",0).$to_i(),r.$slice(1,r.$length()).$to_i()).$to_s():h(r["$start_with?"]("-"))&&(r=e(i.$attr("leveloffset",0).$to_i(),r.$slice(1,r.$length()).$to_i()).$to_s())),h(d=i.$set_attribute(t,r))&&(r=d,h(o)&&l(c(ut,"Document"),"AttributeEntry").$new(t,r).$save_to(o))):h(h(a=i.$delete_attribute(t))?o:a)&&l(c(ut,"Document"),"AttributeEntry").$new(t,r).$save_to(o):h(o)&&l(c(ut,"Document"),"AttributeEntry").$new(t,r).$save_to(o),[t,r]},Z.$$arity=-3),t.defs(ct,"$resolve_list_marker",J=function(t,e,n,r,i){var o=this;return null==n&&(n=0),null==r&&(r=!1),null==i&&(i=s),t["$=="]("ulist")?e:t["$=="]("olist")?o.$resolve_ordered_list_marker(e,n,r,i)["$[]"](0):"<1>"},J.$$arity=-3),t.defs(ct,"$resolve_ordered_list_marker",Q=function(t,e,r,i){var o,a,l=this,u=s,d=s,$=s,m=s;return null==e&&(e=0),null==r&&(r=!1),null==i&&(i=s),h(t["$start_with?"]("."))?[t]:(u=d=f(c(ut,"ORDERED_LIST_STYLES"),"find",[],(o=function(e){o.$$s;return null==e&&(e=s),c(ut,"OrderedListMarkerRxMap")["$[]"](e)["$match?"](t)},o.$$s=l,o.$$arity=1,o)),"arabic"["$==="](u)?(h(r)&&($=n(e,1),m=t.$to_i()),t="1."):"loweralpha"["$==="](u)?(h(r)&&($=n("a"["$[]"](0).$ord(),e).$chr(),m=t.$chop()),t="a."):"upperalpha"["$==="](u)?(h(r)&&($=n("A"["$[]"](0).$ord(),e).$chr(),m=t.$chop()),t="A."):"lowerroman"["$==="](u)?(h(r)&&($=c(ut,"Helpers").$int_to_roman(n(e,1)).$downcase(),m=t.$chop()),t="i)"):"upperroman"["$==="](u)&&(h(r)&&($=c(ut,"Helpers").$int_to_roman(n(e,1)),m=t.$chop()),t="I)"),h(h(a=r)?$["$!="](m):a)&&l.$logger().$warn(l.$message_with_context("list item index: expected "+$+", got "+m,p(["source_location"],{source_location:i.$cursor()}))),[t,d])},Q.$$arity=-2),t.defs(ct,"$is_sibling_list_item?",tt=function(t,e,n){var r,i,o=this;return h(l("::","Regexp")["$==="](n))?n["$match?"](t):h(r=c(ut,"ListRxMap")["$[]"](e)["$=~"](t))?n["$=="](o.$resolve_list_marker(e,(i=$["~"])===s?s:i["$[]"](1))):r},tt.$$arity=3),t.defs(ct,"$parse_table",et=function(r,o,a){var u,d,p,$,m=this,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s,I=s,D=s;g=c(ut,"Table").$new(o,a),h(h(u=a["$key?"]("cols"))?(v=m.$parse_colspecs(a["$[]"]("cols")))["$empty?"]()["$!"]():u)&&(g.$create_columns(v),y=!0),_=h(u=r.$skip_blank_lines())?u:0,b=l(c(ut,"Table"),"ParserContext").$new(r,g,a),u=[b.$format(),-1,s],w=u[0],x=u[1],k=u[2],h(h(u=h(d=i(_,0))?d:a["$[]"]("header-option"))?u:a["$[]"]("noheader-option"))||(S=!0),u=!1;while(u||h(O=r.$read_line())){u=!1,h(h(d=C=i(x=n(x,1),0))?O["$empty?"]():d)?(O=s,h(k)&&(k=n(k,1))):w["$=="]("psv")&&(h(b["$starts_with_delimiter?"](O))?(O=O.$slice(1,O.$length()),b.$close_open_cell(),h(k)&&(k=s)):(p=m.$parse_cellspec(O,"start",b.$delimiter()),d=t.to_ary(p),A=null==d[0]?s:d[0],O=null==d[1]?s:d[1],h(A)?(b.$close_open_cell(A),h(k)&&(k=s)):h(h(d=k)?k["$=="](x):d)&&(d=[!1,s],S=d[0],k=d[1]))),h(C)||(r.$mark(),h(S)&&(h(h(d=r["$has_more_lines?"]())?r.$peek_line()["$empty?"]():d)?k=1:S=!1)),d=!1;while(d||h(!0)){if(d=!1,!h(h(p=O)?E=b.$match_delimiter(O):p)){L=[""+b.$buffer()+O+c(ut,"LF")],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)],B=w,"csv"["$==="](B)?h(b["$buffer_has_unclosed_quotes?"]())?(h(h(p=k)?x["$=="](0):p)&&(p=[!1,s],S=p[0],k=p[1]),b.$keep_cell_open()):b.$close_cell(!0):"dsv"["$==="](B)?b.$close_cell(!0):b.$keep_cell_open();break}if(p=[E.$pre_match(),E.$post_match()],T=p[0],P=p[1],B=w,"csv"["$==="](B)){if(h(b["$buffer_has_unclosed_quotes?"](T))){if(b.$skip_past_delimiter(T),h((O=P)["$empty?"]()))break;d=!0;continue}L=[""+b.$buffer()+T],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)]}else if("dsv"["$==="](B)){if(h(T["$end_with?"]("\\"))){if(b.$skip_past_escaped_delimiter(T),h((O=P)["$empty?"]())){L=[""+b.$buffer()+c(ut,"LF")],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)],b.$keep_cell_open();break}d=!0;continue}L=[""+b.$buffer()+T],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)]}else{if(h(T["$end_with?"]("\\"))){if(b.$skip_past_escaped_delimiter(T),h((O=P)["$empty?"]())){L=[""+b.$buffer()+c(ut,"LF")],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)],b.$keep_cell_open();break}d=!0;continue}$=m.$parse_cellspec(T),p=t.to_ary($),A=null==p[0]?s:p[0],I=null==p[1]?s:p[1],b.$push_cellspec(A),L=[""+b.$buffer()+I],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)]}h((O=P)["$empty?"]())&&(O=s),b.$close_cell()}if(h(b["$cell_open?"]()))h(r["$has_more_lines?"]())||b.$close_cell(!0);else if(!h(d=r.$skip_blank_lines()))break}return h(h(u=(D=g.$attributes(),h(d=D["$[]"]("colcount"))?d:(L=["colcount",g.$columns().$size()],f(D,"[]=",t.to_a(L)),L[e(L["length"],1)]))["$=="](0))?u:y)||g.$assign_column_widths(),h(S)&&(L=[!0],f(g,"has_header_option=",t.to_a(L)),L[e(L["length"],1)],L=["header-option",""],f(a,"[]=",t.to_a(L)),L[e(L["length"],1)]),g.$partition_header_footer(a),g},et.$$arity=3),t.defs(ct,"$parse_colspecs",nt=function(n){var r,i,o=this,a=s;return h(n["$include?"](" "))&&(n=n.$delete(" ")),n["$=="](n.$to_i().$to_s())?f(l("::","Array"),"new",[n.$to_i()],(r=function(){r.$$s;return p(["width"],{width:1})},r.$$s=o,r.$$arity=0,r)):(a=[],f(function(){return h(n["$include?"](","))?n.$split(",",-1):n.$split(";",-1)}(),"each",[],(i=function(n){var r,o,l,u=i.$$s||this,d=s,$=s,m=s,g=s,v=s,y=s;return null==n&&(n=s),h(n["$empty?"]())?a["$<<"](p(["width"],{width:1})):h(d=c(ut,"ColumnSpecRx").$match(n))?($=p([],{}),h(d["$[]"](2))&&(o=d["$[]"](2).$split("."),r=t.to_ary(o),m=null==r[0]?s:r[0],g=null==r[1]?s:r[1],h(h(r=m["$nil_or_empty?"]()["$!"]())?c(ut,"TableCellHorzAlignments")["$key?"](m):r)&&(v=["halign",c(ut,"TableCellHorzAlignments")["$[]"](m)],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),h(h(r=g["$nil_or_empty?"]()["$!"]())?c(ut,"TableCellVertAlignments")["$key?"](g):r)&&(v=["valign",c(ut,"TableCellVertAlignments")["$[]"](g)],f($,"[]=",t.to_a(v)),v[e(v["length"],1)])),h(y=d["$[]"](3))?(v=["width",function(){return y["$=="]("~")?-1:y.$to_i()}()],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]):(v=["width",1],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),h(h(r=d["$[]"](4))?c(ut,"TableCellStyles")["$key?"](d["$[]"](4)):r)&&(v=["style",c(ut,"TableCellStyles")["$[]"](d["$[]"](4))],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),h(d["$[]"](1))?f(1,"upto",[d["$[]"](1).$to_i()],(l=function(){l.$$s;return a["$<<"]($.$merge())},l.$$s=u,l.$$arity=0,l)):a["$<<"]($)):s},i.$$s=o,i.$$arity=1,i)),a)},nt.$$arity=1),t.defs(ct,"$parse_cellspec",rt=function(n,r,i){var o,a,l=s,u=s,d=s,$=s,m=s,g=s,v=s;if(null==r&&(r="end"),null==i&&(i=s),o=[s,""],l=o[0],u=o[1],r["$=="]("start")){if(!h(n["$include?"](i)))return[s,n];if(a=n.$partition(i),o=t.to_ary(a),d=null==o[0]?s:o[0],i=null==o[1]?s:o[1],u=null==o[2]?s:o[2],!h(l=c(ut,"CellSpecStartRx").$match(d)))return[s,n];if(h(l["$[]"](0)["$empty?"]()))return[p([],{}),u]}else{if(!h(l=c(ut,"CellSpecEndRx").$match(n)))return[p([],{}),n];if(h(l["$[]"](0).$lstrip()["$empty?"]()))return[p([],{}),n.$rstrip()];u=l.$pre_match()}return $=p([],{}),h(l["$[]"](1))&&(a=l["$[]"](1).$split("."),o=t.to_ary(a),m=null==o[0]?s:o[0],g=null==o[1]?s:o[1],m=function(){return h(m["$nil_or_empty?"]())?1:m.$to_i()}(),g=function(){return h(g["$nil_or_empty?"]())?1:g.$to_i()}(),l["$[]"](2)["$=="]("+")?(m["$=="](1)||(v=["colspan",m],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),g["$=="](1)||(v=["rowspan",g],f($,"[]=",t.to_a(v)),v[e(v["length"],1)])):l["$[]"](2)["$=="]("*")&&(m["$=="](1)||(v=["repeatcol",m],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]))),h(l["$[]"](3))&&(a=l["$[]"](3).$split("."),o=t.to_ary(a),m=null==o[0]?s:o[0],g=null==o[1]?s:o[1],h(h(o=m["$nil_or_empty?"]()["$!"]())?c(ut,"TableCellHorzAlignments")["$key?"](m):o)&&(v=["halign",c(ut,"TableCellHorzAlignments")["$[]"](m)],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),h(h(o=g["$nil_or_empty?"]()["$!"]())?c(ut,"TableCellVertAlignments")["$key?"](g):o)&&(v=["valign",c(ut,"TableCellVertAlignments")["$[]"](g)],f($,"[]=",t.to_a(v)),v[e(v["length"],1)])),h(h(o=l["$[]"](4))?c(ut,"TableCellStyles")["$key?"](l["$[]"](4)):o)&&(v=["style",c(ut,"TableCellStyles")["$[]"](l["$[]"](4))],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),[$,u]},rt.$$arity=-2),t.defs(ct,"$parse_style_attribute",it=function(r,i){var o,a,l,u,d=this,$=s,m=s,g=s,v=s,y=s,_=s,b=s;return null==i&&(i=s),h(h(o=h(a=$=r["$[]"](1))?$["$include?"](" ")["$!"]():a)?c(ut,"Compliance").$shorthand_property_syntax():o)?(m=s,g="",v=p([],{}),f($,"each_char",[],(l=function(t){var e=l.$$s||this,r=s;return null==t&&(t=s),function(){return r=t,"."["$==="](r)?(e.$yield_buffered_attribute(v,m,g,i),g="",m="role"):"#"["$==="](r)?(e.$yield_buffered_attribute(v,m,g,i),g="",m="id"):"%"["$==="](r)?(e.$yield_buffered_attribute(v,m,g,i),g="",m="option"):g=n(g,t)}()},l.$$s=d,l.$$arity=1,l)),h(m)?(d.$yield_buffered_attribute(v,m,g,i),h(y=v["$[]"]("style"))&&(_=["style",y],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)]),h(v["$key?"]("id"))&&(_=["id",v["$[]"]("id")],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)]),h(v["$key?"]("role"))&&(_=["role",function(){return h((b=r["$[]"]("role"))["$nil_or_empty?"]())?v["$[]"]("role").$join(" "):b+" "+v["$[]"]("role").$join(" ")}()],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)]),h(v["$key?"]("option"))&&f(v["$[]"]("option"),"each",[],(u=function(n){u.$$s;return null==n&&(n=s),_=[n+"-option",""],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)]},u.$$s=d,u.$$arity=1,u)),y):(_=["style",$],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)])):(_=["style",$],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)])},it.$$arity=-2),t.defs(ct,"$yield_buffered_attribute",ot=function(n,r,i,o){var a,l=this,c=s;return h(r)?h(i["$empty?"]())?h(o)?l.$logger().$warn(l.$message_with_context("invalid empty "+r+" detected in style attribute",p(["source_location"],{source_location:o.$cursor_at_prev_line()}))):l.$logger().$warn("invalid empty "+r+" detected in style attribute"):r["$=="]("id")?(h(n["$key?"]("id"))&&(h(o)?l.$logger().$warn(l.$message_with_context("multiple ids detected in style attribute",p(["source_location"],{source_location:o.$cursor_at_prev_line()}))):l.$logger().$warn("multiple ids detected in style attribute")),c=[r,i],f(n,"[]=",t.to_a(c)),c[e(c["length"],1)]):(h(a=n["$[]"](r))?a:(c=[r,[]],f(n,"[]=",t.to_a(c)),c[e(c["length"],1)]))["$<<"](i):h(i["$empty?"]())||(c=["style",i],f(n,"[]=",t.to_a(c)),c[e(c["length"],1)]),s},ot.$$arity=4),t.defs(ct,"$adjust_indentation!",at=function(a,l,u){var d,p,$,m,g,v,y,_=this,b=s,w=s,x=s;return null==l&&(l=0),null==u&&(u=0),h(a["$empty?"]())?s:(h(h(d=i(u,0))?f(a,"any?",[],(p=function(t){p.$$s;return null==t&&(t=s),t["$include?"](c(ut,"TAB"))},p.$$s=_,p.$$arity=1,p)):d)&&(b=o(" ",u),function(){var r=t.new_brk();try{f(a,"map!",[],($=function(r){var i,a,l=$.$$s||this,d=s,p=s,m=s,g=s,v=s;return null==r&&(r=s),h(r["$empty?"]())?r:h(d=r.$index(c(ut,"TAB")))?d["$=="](0)&&(p=0,function(){var e=t.new_brk();try{f(r,"each_byte",[],(i=function(r){i.$$s;return null==r&&(r=s),r["$=="](9)||t.brk(s,e),p=n(p,1)},i.$$s=l,i.$$brk=e,i.$$arity=1,i))}catch(o){if(o===e)return o.$v;throw o}}(),r=""+o(b,p)+r.$slice(p,r.$length()),!h(r["$include?"](c(ut,"TAB"))))?r:(m=0,g=0,v="",f(r,"each_char",[],(a=function(t){a.$$s;var r=s,i=s;return null==t&&(t=s),t["$=="](c(ut,"TAB"))?(r=n(g,m))["$%"](u)["$=="](0)?(m=n(m,e(u,1)),v=n(v,b)):((i=e(u,r["$%"](u)))["$=="](1)||(m=n(m,e(i,1))),v=n(v,o(" ",i))):v=n(v,t),g=n(g,1)},a.$$s=l,a.$$arity=1,a)),v):r},$.$$s=_,$.$$brk=r,$.$$arity=1,$))}catch(i){if(i===r)return i.$v;throw i}}()),h(r(l,0))||(w=s,function(){var n=t.new_brk();try{f(a,"each",[],(m=function(i){m.$$s;var o,a=s;return null==i&&(i=s),h(i["$empty?"]())?s:((a=e(i.$length(),i.$lstrip().$length()))["$=="](0)&&(w=s,t.brk(s,n)),h(h(o=w)?r(w,a):o)?s:w=a)},m.$$s=_,m.$$brk=n,m.$$arity=1,m))}catch(i){if(i===n)return i.$v;throw i}}(),l["$=="](0)?h(w)&&f(a,"map!",[],(g=function(t){g.$$s;return null==t&&(t=s),h(t["$empty?"]())?t:t.$slice(w,t.$length())},g.$$s=_,g.$$arity=1,g)):(x=o(" ",l),h(w)?f(a,"map!",[],(v=function(t){v.$$s;return null==t&&(t=s),h(t["$empty?"]())?t:n(x,t.$slice(w,t.$length()))},v.$$s=_,v.$$arity=1,v)):f(a,"map!",[],(y=function(t){y.$$s;return null==t&&(t=s),h(t["$empty?"]())?t:n(x,t)},y.$$s=_,y.$$arity=1,y)))),s)},at.$$arity=-2),t.defs(ct,"$uniform?",st=function(t,e,n){return t.$count(e)["$=="](n)},st.$$arity=3),t.defs(ct,"$sanitize_attribute_name",lt=function(t){return t.$gsub(c(ut,"InvalidAttributeNameCharsRx"),"").$downcase()},lt.$$arity=1)})(v[0],null,v)}(a[0],a)},Opal.modules["asciidoctor/path_resolver"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}t.top;var i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.module),c=t.klass,u=t.truthy,d=t.hash2,f=t.send,h=t.gvars;return t.add_stubs(["$include","$attr_accessor","$root?","$posixify","$expand_path","$pwd","$start_with?","$==","$match?","$absolute_path?","$+","$length","$descends_from?","$slice","$to_s","$relative_path_from","$new","$include?","$tr","$partition_path","$each","$pop","$<<","$join_path","$[]","$web_root?","$unc?","$index","$split","$delete","$[]=","$-","$join","$raise","$!","$fetch","$warn","$logger","$empty?","$nil_or_empty?","$chomp","$!=","$>","$size","$extract_uri_prefix","$end_with?","$gsub","$private","$=~"]),function(i,p){var $=l(i,"Asciidoctor"),m=[$].concat(p);(function(i,l,p){var $,m,g,v,y,_,b,w,x,k,S,O,C,A,E=c(i,l,"PathResolver"),T=[E].concat(p);E.$$prototype.file_separator=E.$$prototype._partition_path_web=E.$$prototype._partition_path_sys=E.$$prototype.working_dir=o,E.$include(s(T,"Logging")),t.const_set(T[0],"DOT","."),t.const_set(T[0],"DOT_DOT",".."),t.const_set(T[0],"DOT_SLASH","./"),t.const_set(T[0],"SLASH","/"),t.const_set(T[0],"BACKSLASH","\\"),t.const_set(T[0],"DOUBLE_SLASH","//"),t.const_set(T[0],"WindowsRootRx",/^(?:[a-zA-Z]:)?[\\\/]/),E.$attr_accessor("file_separator"),E.$attr_accessor("working_dir"),t.def(E,"$initialize",$=function(t,e){var n,r,i=this;return null==t&&(t=o),null==e&&(e=o),i.file_separator=u(n=u(r=t)?r:a(a("::","File"),"ALT_SEPARATOR"))?n:a(a("::","File"),"SEPARATOR"),i.working_dir=function(){return u(e)?u(i["$root?"](e))?i.$posixify(e):a("::","File").$expand_path(e):a("::","Dir").$pwd()}(),i._partition_path_sys=d([],{}),i._partition_path_web=d([],{})},$.$$arity=-1),t.def(E,"$absolute_path?",m=function(t){var e,n=this;return u(e=t["$start_with?"](s(T,"SLASH")))?e:n.file_separator["$=="](s(T,"BACKSLASH"))?s(T,"WindowsRootRx")["$match?"](t):n.file_separator["$=="](s(T,"BACKSLASH"))},m.$$arity=1),u(s(T,"RUBY_ENGINE")["$=="]("opal")?a("::","JAVASCRIPT_IO_MODULE")["$=="]("xmlhttprequest"):s(T,"RUBY_ENGINE")["$=="]("opal"))?t.def(E,"$root?",g=function(t){var e,n=this;return u(e=n["$absolute_path?"](t))?e:t["$start_with?"]("file://","http://","https://")},g.$$arity=1):t.alias(E,"root?","absolute_path?"),t.def(E,"$unc?",v=function(t){return t["$start_with?"](s(T,"DOUBLE_SLASH"))},v.$$arity=1),t.def(E,"$web_root?",y=function(t){return t["$start_with?"](s(T,"SLASH"))},y.$$arity=1),t.def(E,"$descends_from?",_=function(t,n){var r;return n["$=="](t)?0:n["$=="](s(T,"SLASH"))?u(r=t["$start_with?"](s(T,"SLASH")))?1:r:u(r=t["$start_with?"](e(n,s(T,"SLASH"))))?e(n.$length(),1):r},_.$$arity=2),t.def(E,"$relative_path",b=function(e,n){var r=this,i=o;if(!u(r["$root?"](e)))return e;if(u(i=r["$descends_from?"](e,n)))return e.$slice(i,e.$length());try{return s(T,"Pathname").$new(e).$relative_path_from(s(T,"Pathname").$new(n)).$to_s()}catch(a){if(!t.rescue(a,[s(T,"StandardError")]))throw a;try{return e}finally{t.pop_exception()}}},b.$$arity=2),t.def(E,"$posixify",w=function(t){var e=this;return u(t)?u(e.file_separator["$=="](s(T,"BACKSLASH"))?t["$include?"](s(T,"BACKSLASH")):e.file_separator["$=="](s(T,"BACKSLASH")))?t.$tr(s(T,"BACKSLASH"),s(T,"SLASH")):t:""},w.$$arity=1),t.alias(E,"posixfy","posixify"),t.def(E,"$expand_path",x=function(e){var n,r,i,a=this,l=o,c=o,d=o;return r=a.$partition_path(e),n=t.to_ary(r),l=null==n[0]?o:n[0],c=null==n[1]?o:n[1],u(e["$include?"](s(T,"DOT_DOT")))?(d=[],f(l,"each",[],(i=function(t){i.$$s;return null==t&&(t=o),t["$=="](s(T,"DOT_DOT"))?d.$pop():d["$<<"](t)},i.$$s=a,i.$$arity=1,i)),a.$join_path(d,c)):a.$join_path(l,c)},x.$$arity=1),t.def(E,"$partition_path",k=function(r,i){var a=this,l=o,c=o,d=o,h=o,p=o,$=o;return null==i&&(i=o),u(l=(c=function(){return u(i)?a._partition_path_web:a._partition_path_sys}())["$[]"](r))?l:(d=a.$posixify(r),u(i)?u(a["$web_root?"](d))?h=s(T,"SLASH"):u(d["$start_with?"](s(T,"DOT_SLASH")))&&(h=s(T,"DOT_SLASH")):u(a["$root?"](d))?h=u(a["$unc?"](d))?s(T,"DOUBLE_SLASH"):u(d["$start_with?"](s(T,"SLASH")))?s(T,"SLASH"):d.$slice(0,e(d.$index(s(T,"SLASH")),1)):u(d["$start_with?"](s(T,"DOT_SLASH")))&&(h=s(T,"DOT_SLASH")),p=function(){return u(h)?d.$slice(h.$length(),d.$length()):d}().$split(s(T,"SLASH")),p.$delete(s(T,"DOT")),$=[r,[p,h]],f(c,"[]=",t.to_a($)),$[n($["length"],1)])},k.$$arity=-2),t.def(E,"$join_path",S=function(t,e){return null==e&&(e=o),u(e)?""+e+t.$join(s(T,"SLASH")):t.$join(s(T,"SLASH"))},S.$$arity=-2),t.def(E,"$system_path",O=function(n,i,l,c){var h,p,$,m,g=this,v=o,y=o,_=o,b=o,w=o,x=o,k=o,S=o,O=o,C=o;if(null==i&&(i=o),null==l&&(l=o),null==c&&(c=d([],{})),u(l)&&(u(g["$root?"](l))||g.$raise(a("::","SecurityError"),"Jail is not an absolute path: "+l),l=g.$posixify(l)),u(n)){if(u(g["$root?"](n))){if(v=g.$expand_path(n),u(u(h=l)?g["$descends_from?"](v,l)["$!"]():h)){if(u(c.$fetch("recover",!0)))return g.$logger().$warn((u(h=c["$[]"]("target_name"))?h:"path")+" is outside of jail; recovering automatically"),p=g.$partition_path(v),h=t.to_ary(p),y=null==h[0]?o:h[0],null==h[1]?o:h[1],p=g.$partition_path(l),h=t.to_ary(p),_=null==h[0]?o:h[0],b=null==h[1]?o:h[1],g.$join_path(e(_,y),b);g.$raise(a("::","SecurityError"),(u(h=c["$[]"]("target_name"))?h:"path")+" "+n+" is outside of jail: "+l+" (disallowed in safe mode)")}return v}p=g.$partition_path(n),h=t.to_ary(p),y=null==h[0]?o:h[0],null==h[1]?o:h[1]}else y=[];if(u(y["$empty?"]())){if(u(i["$nil_or_empty?"]()))return u(h=l)?h:g.working_dir;if(u(g["$root?"](i))){if(!u(l))return g.$expand_path(i);i=g.$posixify(i)}else p=g.$partition_path(i),h=t.to_ary(p),y=null==h[0]?o:h[0],null==h[1]?o:h[1],i=u(h=l)?h:g.working_dir}else u(i["$nil_or_empty?"]())?i=u(h=l)?h:g.working_dir:u(g["$root?"](i))?u(l)&&(i=g.$posixify(i)):i=(u(h=l)?h:g.working_dir).$chomp("/")+"/"+i;return u(u(h=u(p=l)?w=g["$descends_from?"](i,l)["$!"]():p)?g.file_separator["$=="](s(T,"BACKSLASH")):h)?(p=g.$partition_path(i),h=t.to_ary(p),x=null==h[0]?o:h[0],k=null==h[1]?o:h[1],p=g.$partition_path(l),h=t.to_ary(p),_=null==h[0]?o:h[0],b=null==h[1]?o:h[1],u(k["$!="](b))&&(u(c.$fetch("recover",!0))?(g.$logger().$warn("start path for "+(u(h=c["$[]"]("target_name"))?h:"path")+" is outside of jail root; recovering automatically"),x=_,w=!1):g.$raise(a("::","SecurityError"),"start path for "+(u(h=c["$[]"]("target_name"))?h:"path")+" "+i+" refers to location outside jail root: "+l+" (disallowed in safe mode)"))):(p=g.$partition_path(i),h=t.to_ary(p),x=null==h[0]?o:h[0],b=null==h[1]?o:h[1]),u((S=e(x,y))["$include?"](s(T,"DOT_DOT")))&&(h=[S,[]],O=h[0],S=h[1],u(l)?(u(_)||(p=g.$partition_path(l),h=t.to_ary(p),_=null==h[0]?o:h[0],null==h[1]?o:h[1]),C=!1,f(O,"each",[],($=function(t){var e,i=$.$$s||this;return null==t&&(t=o),t["$=="](s(T,"DOT_DOT"))?u(r(S.$size(),_.$size()))?S.$pop():u(c.$fetch("recover",!0))?u(C)?o:(i.$logger().$warn((u(e=c["$[]"]("target_name"))?e:"path")+" has illegal reference to ancestor of jail; recovering automatically"),C=!0):i.$raise(a("::","SecurityError"),(u(e=c["$[]"]("target_name"))?e:"path")+" "+n+" refers to location outside jail: "+l+" (disallowed in safe mode)"):S["$<<"](t)},$.$$s=g,$.$$arity=1,$))):f(O,"each",[],(m=function(t){m.$$s;return null==t&&(t=o),t["$=="](s(T,"DOT_DOT"))?S.$pop():S["$<<"](t)},m.$$s=g,m.$$arity=1,m))),u(w)?(v=g.$join_path(S,b),u(g["$descends_from?"](v,l))?v:u(c.$fetch("recover",!0))?(g.$logger().$warn((u(h=c["$[]"]("target_name"))?h:"path")+" is outside of jail; recovering automatically"),u(_)||(p=g.$partition_path(l),h=t.to_ary(p),_=null==h[0]?o:h[0],null==h[1]?o:h[1]),g.$join_path(e(_,y),b)):g.$raise(a("::","SecurityError"),(u(h=c["$[]"]("target_name"))?h:"path")+" "+n+" is outside of jail: "+l+" (disallowed in safe mode)")):g.$join_path(S,b)},O.$$arity=-2),t.def(E,"$web_path",C=function(e,n){var r,i,a,l=this,c=o,d=o,h=o,p=o,$=o;return null==n&&(n=o),e=l.$posixify(e),n=l.$posixify(n),u(u(r=n["$nil_or_empty?"]())?r:l["$web_root?"](e))||(i=l.$extract_uri_prefix(""+n+function(){return u(n["$end_with?"](s(T,"SLASH")))?"":s(T,"SLASH")}()+e),r=t.to_ary(i),e=null==r[0]?o:r[0],c=null==r[1]?o:r[1]),i=l.$partition_path(e,!0),r=t.to_ary(i),d=null==r[0]?o:r[0],h=null==r[1]?o:r[1],p=[],f(d,"each",[],(a=function(t){var e;a.$$s;return null==t&&(t=o),t["$=="](s(T,"DOT_DOT"))?u(p["$empty?"]())?u(u(e=h)?h["$!="](s(T,"DOT_SLASH")):e)?o:p["$<<"](t):p["$[]"](-1)["$=="](s(T,"DOT_DOT"))?p["$<<"](t):p.$pop():p["$<<"](t)},a.$$s=l,a.$$arity=1,a)),u(($=l.$join_path(p,h))["$include?"](" "))&&($=$.$gsub(" ","%20")),u(c)?""+c+$:$},C.$$arity=-2),E.$private(),t.def(E,"$extract_uri_prefix",A=function(t){var e;return u(u(e=t["$include?"](":"))?s(T,"UriSniffRx")["$=~"](t):e)?[t.$slice(((e=h["~"])===o?o:e["$[]"](0)).$length(),t.$length()),(e=h["~"])===o?o:e["$[]"](0)]:t},A.$$arity=1)})(m[0],null,m)}(i[0],i)},Opal.modules["asciidoctor/reader"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}function a(t,e){return"number"===typeof t&&"number"===typeof e?t","$slice","$[]","$length","$process_line","$times","$shift","$read_line","$<<","$-","$unshift_all","$has_more_lines?","$join","$read_lines","$unshift","$start_with?","$==","$*","$read_lines_until","$size","$clear","$cursor","$[]=","$!=","$fetch","$cursor_at_mark","$warn","$logger","$message_with_context","$new","$tap","$each","$instance_variables","$instance_variable_get","$instance_variable_set","$class","$object_id","$inspect","$private","$prepare_source_array","$prepare_source_string","$valid_encoding?","$to_s","$raise","$to_i","$attributes","$catalog","$pop_include","$parse","$path=","$dup","$end_with?","$keys","$rindex","$rootname","$key?","$attr","$>=","$nil?","$extensions?","$include_processors?","$extensions","$include_processors","$map","$skip_front_matter!","$pop","$adjust_indentation!","$include?","$=~","$preprocess_conditional_directive","$preprocess_include_directive","$downcase","$error","$none?","$any?","$all?","$strip","$send","$resolve_expr_val","$replace_next_line","$rstrip","$sub_attributes","$attribute_missing","$info","$parse_attributes","$find","$handles?","$instance","$process_method","$safe","$resolve_include_path","$method","$split_delimited_value","$partition","$<","$/","$to_a","$uniq","$sort","$call","$each_line","$infinite?","$push_include","$delete","$value?","$create_include_cursor","$delete_at","$read","$uriish?","$attr?","$require_library","$normalize_system_path","$file?","$relative_path","$path_resolver","$base_dir","$to_f"]),function(l,y){var _=f(l,"Asciidoctor"),b=[_].concat(y);(function(o,a,s){var l,f,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J=h(o,a,"Reader"),Q=[J].concat(s);J.$$prototype.file=J.$$prototype.lines=J.$$prototype.look_ahead=J.$$prototype.unescape_next_line=J.$$prototype.lineno=J.$$prototype.process_lines=J.$$prototype.dir=J.$$prototype.path=J.$$prototype.mark=J.$$prototype.source_lines=J.$$prototype.saved=c,J.$include(d(Q,"Logging")),function(n,r,i){var o,a,s,l=h(n,r,"Cursor");[l].concat(i);l.$$prototype.lineno=l.$$prototype.path=c,l.$attr_reader("file","dir","path","lineno"),t.def(l,"$initialize",o=function(t,e,n,r){var i,o=this;return null==e&&(e=c),null==n&&(n=c),null==r&&(r=1),i=[t,e,n,r],o.file=i[0],o.dir=i[1],o.path=i[2],o.lineno=i[3],i},o.$$arity=-2),t.def(l,"$advance",a=function(t){var n=this;return n.lineno=e(n.lineno,t)},a.$$arity=1),t.def(l,"$line_info",s=function(){var t=this;return t.path+": line "+t.lineno},s.$$arity=0),t.alias(l,"to_s","line_info")}(Q[0],null,Q),J.$attr_reader("file"),J.$attr_reader("dir"),J.$attr_reader("path"),J.$attr_reader("lineno"),J.$attr_reader("source_lines"),J.$attr_accessor("process_lines"),J.$attr_accessor("unterminated"),t.def(J,"$initialize",l=function(e,n,r){var i,o,a=this;return null==e&&(e=c),null==n&&(n=c),null==r&&(r=p([],{})),$(n["$!"]())?(a.file=c,a.dir=".",a.path="",a.lineno=1):$(u("::","String")["$==="](n))?(a.file=n,o=u("::","File").$split(a.file),i=t.to_ary(o),a.dir=null==i[0]?c:i[0],a.path=null==i[1]?c:i[1],a.lineno=1):($(a.file=n.$file())?(a.dir=$(i=n.$dir())?i:u("::","File").$dirname(a.file),a.path=$(i=n.$path())?i:u("::","File").$basename(a.file)):(a.dir=$(i=n.$dir())?i:".",a.path=$(i=n.$path())?i:""),a.lineno=$(i=n.$lineno())?i:1),a.lines=a.$prepare_lines(e,r),a.source_lines=a.lines.$drop(0),a.mark=c,a.look_ahead=0,a.process_lines=!0,a.unescape_next_line=!1,a.unterminated=c,a.saved=c},l.$$arity=-1),t.def(J,"$has_more_lines?",f=function(){var t=this;return!$(t.lines["$empty?"]())||(t.look_ahead=0,!1)},f.$$arity=0),t.def(J,"$empty?",g=function(){var t=this;return!!$(t.lines["$empty?"]())&&(t.look_ahead=0,!0)},g.$$arity=0),t.alias(J,"eof?","empty?"),t.def(J,"$next_line_empty?",v=function(){var t=this;return t.$peek_line()["$nil_or_empty?"]()},v.$$arity=0),t.def(J,"$peek_line",y=function(t){var e,r=this,i=c;return null==t&&(t=!1),$($(e=t)?e:n(r.look_ahead,0))?$(r.unescape_next_line)?(i=r.lines["$[]"](0)).$slice(1,i.$length()):r.lines["$[]"](0):$(r.lines["$empty?"]())?(r.look_ahead=0,c):$(i=r.$process_line(r.lines["$[]"](0)))?i:r.$peek_line()},y.$$arity=-1),t.def(J,"$peek_lines",_=function(e,n){var i,o,a=this,s=c,l=c;return null==e&&(e=c),null==n&&(n=!1),s=a.look_ahead,l=[],function(){var s=t.new_brk();try{m($(i=e)?i:d(Q,"MAX_INT"),"times",[],(o=function(){var e=o.$$s||this,i=c;if(null==e.lineno&&(e.lineno=c),$(i=function(){return $(n)?e.$shift():e.$read_line()}()))return l["$<<"](i);$(n)&&(e.lineno=r(e.lineno,1)),t.brk(c,s)},o.$$s=a,o.$$brk=s,o.$$arity=0,o))}catch(u){if(u===s)return u.$v;throw u}}(),$(l["$empty?"]())||(a.$unshift_all(l),$(n)&&(a.look_ahead=s)),l},_.$$arity=-1),t.def(J,"$read_line",b=function(){var t,e=this;return $($(t=n(e.look_ahead,0))?t:e["$has_more_lines?"]())?e.$shift():c},b.$$arity=0),t.def(J,"$read_lines",w=function(){var t=this,e=c;e=[];while($(t["$has_more_lines?"]()))e["$<<"](t.$shift());return e},w.$$arity=0),t.alias(J,"readlines","read_lines"),t.def(J,"$read",x=function(){var t=this;return t.$read_lines().$join(d(Q,"LF"))},x.$$arity=0),t.def(J,"$advance",k=function(){var t=this;return!!$(t.$shift())},k.$$arity=0),t.def(J,"$unshift_line",S=function(t){var e=this;return e.$unshift(t),c},S.$$arity=1),t.alias(J,"restore_line","unshift_line"),t.def(J,"$unshift_lines",O=function(t){var e=this;return e.$unshift_all(t),c},O.$$arity=1),t.alias(J,"restore_lines","unshift_lines"),t.def(J,"$replace_next_line",C=function(t){var e=this;return e.$shift(),e.$unshift(t),!0},C.$$arity=1),t.alias(J,"replace_line","replace_next_line"),t.def(J,"$skip_blank_lines",A=function(){var t=this,n=c,r=c;if($(t["$empty?"]()))return c;n=0;while($(r=t.$peek_line())){if(!$(r["$empty?"]()))return n;t.$shift(),n=e(n,1)}},A.$$arity=0),t.def(J,"$skip_comment_lines",E=function(){var t,e=this,r=c,o=c;if($(e["$empty?"]()))return c;while($($(t=r=e.$peek_line())?r["$empty?"]()["$!"]():t)){if(!$(r["$start_with?"]("//")))break;if($(r["$start_with?"]("///"))){if(!$($(t=n(o=r.$length(),3))?r["$=="](i("/",o)):t))break;e.$read_lines_until(p(["terminator","skip_first_line","read_last_line","skip_processing","context"],{terminator:r,skip_first_line:!0,read_last_line:!0,skip_processing:!0,context:"comment"}))}else e.$shift()}return c},E.$$arity=0),t.def(J,"$skip_line_comments",T=function(){var t,e=this,n=c,r=c;if($(e["$empty?"]()))return[];n=[];while($($(t=r=e.$peek_line())?r["$empty?"]()["$!"]():t)){if(!$(r["$start_with?"]("//")))break;n["$<<"](e.$shift())}return n},T.$$arity=0),t.def(J,"$terminate",P=function(){var t=this;return t.lineno=e(t.lineno,t.lines.$size()),t.lines.$clear(),t.look_ahead=0,c},P.$$arity=0),t.def(J,"$read_lines_until",B=function(e){var n,i,o,a,s=B.$$p,l=s||c,u=this,f=c,h=c,g=c,v=c,y=c,_=c,b=c,w=c,x=c,k=c,S=c,O=c,C=c;s&&(B.$$p=null),null==e&&(e=p([],{})),f=[],$($(n=u.process_lines)?e["$[]"]("skip_processing"):n)&&(u.process_lines=!1,h=!0),$(g=e["$[]"]("terminator"))?(v=$(n=e["$[]"]("cursor"))?n:u.$cursor(),y=!1,_=!1):(y=e["$[]"]("break_on_blank_lines"),_=e["$[]"]("break_on_list_continuation")),b=e["$[]"]("skip_line_comments"),w=x=k=c,$(e["$[]"]("skip_first_line"))&&u.$shift();while($($(i=w["$!"]())?S=u.$read_line():i))w=function(){while($(!0))return!!$($(o=g)?S["$=="](g):o)||(!!$($(o=y)?S["$empty?"]():o)||($($(o=$(a=_)?x:a)?S["$=="](d(Q,"LIST_CONTINUATION")):o)?(O=["preserve_last_line",!0],m(e,"[]=",t.to_a(O)),O[r(O["length"],1)],!0):!!$((o=l!==c)?t.yield1(l,S):l!==c)));return c}(),$(w)?($(e["$[]"]("read_last_line"))&&(f["$<<"](S),x=!0),$(e["$[]"]("preserve_last_line"))&&(u.$unshift(S),k=!0)):$($(i=$(o=b)?S["$start_with?"]("//"):o)?S["$start_with?"]("///")["$!"]():i)||(f["$<<"](S),x=!0);return $(h)&&(u.process_lines=!0,$($(n=k)?g["$!"]():n)&&(u.look_ahead=r(u.look_ahead,1))),$($(n=$(i=g)?g["$!="](S):i)?C=e.$fetch("context",g):n)&&(v["$=="]("at_mark")&&(v=u.$cursor_at_mark()),u.$logger().$warn(u.$message_with_context("unterminated "+C+" block",p(["source_location"],{source_location:v}))),u.unterminated=!0),f},B.$$arity=-1),t.def(J,"$shift",L=function(){var t=this;return t.lineno=e(t.lineno,1),t.look_ahead["$=="](0)||(t.look_ahead=r(t.look_ahead,1)),t.lines.$shift()},L.$$arity=0),t.def(J,"$unshift",I=function(t){var n=this;return n.lineno=r(n.lineno,1),n.look_ahead=e(n.look_ahead,1),n.lines.$unshift(t)},I.$$arity=1),t.def(J,"$unshift_all",D=function(n){var i=this;return i.lineno=r(i.lineno,n.$size()),i.look_ahead=e(i.look_ahead,n.$size()),m(i.lines,"unshift",t.to_a(n))},D.$$arity=1),t.def(J,"$cursor",R=function(){var t=this;return d(Q,"Cursor").$new(t.file,t.dir,t.path,t.lineno)},R.$$arity=0),t.def(J,"$cursor_at_line",j=function(t){var e=this;return d(Q,"Cursor").$new(e.file,e.dir,e.path,t)},j.$$arity=1),t.def(J,"$cursor_at_mark",M=function(){var e=this;return $(e.mark)?m(d(Q,"Cursor"),"new",t.to_a(e.mark)):e.$cursor()},M.$$arity=0),t.def(J,"$cursor_before_mark",F=function(){var e,n,i=this,o=c,a=c,s=c,l=c;return $(i.mark)?(n=i.mark,e=t.to_ary(n),o=null==e[0]?c:e[0],a=null==e[1]?c:e[1],s=null==e[2]?c:e[2],l=null==e[3]?c:e[3],d(Q,"Cursor").$new(o,a,s,r(l,1))):d(Q,"Cursor").$new(i.file,i.dir,i.path,r(i.lineno,1))},F.$$arity=0),t.def(J,"$cursor_at_prev_line",N=function(){var t=this;return d(Q,"Cursor").$new(t.file,t.dir,t.path,r(t.lineno,1))},N.$$arity=0),t.def(J,"$mark",z=function(){var t=this;return t.mark=[t.file,t.dir,t.path,t.lineno]},z.$$arity=0),t.def(J,"$line_info",H=function(){var t=this;return t.path+": line "+t.lineno},H.$$arity=0),t.def(J,"$lines",V=function(){var t=this;return t.lines.$drop(0)},V.$$arity=0),t.def(J,"$string",U=function(){var t=this;return t.lines.$join(d(Q,"LF"))},U.$$arity=0),t.def(J,"$source",q=function(){var t=this;return t.source_lines.$join(d(Q,"LF"))},q.$$arity=0),t.def(J,"$save",W=function(){var e,n=this;return n.saved=m(p([],{}),"tap",[],(e=function(n){var i,o=e.$$s||this;return null==n&&(n=c),m(o.$instance_variables(),"each",[],(i=function(e){var o,a=i.$$s||this,s=c,l=c;return null==e&&(e=c),$($(o=e["$=="]("@saved"))?o:e["$=="]("@source_lines"))?c:(s=[e,function(){return $(u("::","Array")["$==="](l=a.$instance_variable_get(e)))?l.$drop(0):l}()],m(n,"[]=",t.to_a(s)),s[r(s["length"],1)])},i.$$s=o,i.$$arity=1,i))},e.$$s=n,e.$$arity=1,e)),c},W.$$arity=0),t.def(J,"$restore_save",G=function(){var t,e=this;return $(e.saved)?(m(e.saved,"each",[],(t=function(e,n){var r=t.$$s||this;return null==e&&(e=c),null==n&&(n=c),r.$instance_variable_set(e,n)},t.$$s=e,t.$$arity=2,t)),e.saved=c):c},G.$$arity=0),t.def(J,"$discard_save",Y=function(){var t=this;return t.saved=c},Y.$$arity=0),t.def(J,"$to_s",K=function(){var t=this;return"#<"+t.$class()+"@"+t.$object_id()+" {path: "+t.path.$inspect()+", line: "+t.lineno+"}>"},K.$$arity=0),J.$private(),t.def(J,"$prepare_lines",X=function(e,n){var r=this;null==n&&(n=p([],{}));try{return $(n["$[]"]("normalize"))?$(u("::","Array")["$==="](e))?d(Q,"Helpers").$prepare_source_array(e):d(Q,"Helpers").$prepare_source_string(e):$(u("::","Array")["$==="](e))?e.$drop(0):$(e)?e.$split(d(Q,"LF"),-1):[]}catch(i){if(!t.rescue(i,[d(Q,"StandardError")]))throw i;try{return $(function(){return $(u("::","Array")["$==="](e))?e.$join():e.$to_s()}()["$valid_encoding?"]())?r.$raise():r.$raise(u("::","ArgumentError"),"source is either binary or contains invalid Unicode data")}finally{t.pop_exception()}}},X.$$arity=-2),t.def(J,"$process_line",Z=function(t){var n=this;return $(n.process_lines)&&(n.look_ahead=e(n.look_ahead,1)),t},Z.$$arity=1)})(b[0],null,b),function(i,l,f){var y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F=h(i,l,"PreprocessorReader"),N=[F].concat(f);F.$$prototype.include_stack=F.$$prototype.lines=F.$$prototype.file=F.$$prototype.dir=F.$$prototype.path=F.$$prototype.lineno=F.$$prototype.maxdepth=F.$$prototype.process_lines=F.$$prototype.includes=F.$$prototype.document=F.$$prototype.unescape_next_line=F.$$prototype.include_processor_extensions=F.$$prototype.look_ahead=F.$$prototype.skipping=F.$$prototype.conditional_stack=c,F.$attr_reader("include_stack"),t.def(F,"$initialize",y=function(e,r,i,o){var a,s=y.$$p,l=this,u=c;return s&&(y.$$p=null),null==r&&(r=c),null==i&&(i=c),null==o&&(o=p([],{})),l.document=e,m(l,t.find_super_dispatcher(l,"initialize",y,!1),[r,i,o],null),$(n(u=($(a=e.$attributes()["$[]"]("max-include-depth"))?a:64).$to_i(),0))?l.maxdepth=p(["abs","curr","rel"],{abs:u,curr:u,rel:u}):l.maxdepth=c,l.include_stack=[],l.includes=e.$catalog()["$[]"]("includes"),l.skipping=!1,l.conditional_stack=[],l.include_processor_extensions=c},y.$$arity=-2),t.def(F,"$has_more_lines?",_=function(){var t=this;return!!$(t.$peek_line())},_.$$arity=0),t.def(F,"$empty?",b=function(){var t=this;return!$(t.$peek_line())},b.$$arity=0),t.alias(F,"eof?","empty?"),t.def(F,"$peek_line",w=function(e){var n=w.$$p,r=this,i=c,o=c,a=c,s=c;for(n&&(w.$$p=null),a=0,s=arguments.length,o=new Array(s);a"),h.lineno=s,$($(f=h.maxdepth)?l["$key?"]("depth"):f)&&($(n(y=l["$[]"]("depth").$to_i(),0))?($(n(_=e(h.include_stack.$size(),y),b=h.maxdepth["$[]"]("abs")))&&(_=y=b),h.maxdepth=p(["abs","curr","rel"],{abs:b,curr:_,rel:y})):h.maxdepth=p(["abs","curr","rel"],{abs:h.maxdepth["$[]"]("abs"),curr:h.include_stack.$size(),rel:0})),$((h.lines=h.$prepare_lines(i,p(["normalize","condense","indent"],{normalize:!0,condense:!1,indent:l["$[]"]("indent")})))["$empty?"]())?h.$pop_include():($(l["$key?"]("leveloffset"))&&(h.lines.$unshift(""),h.lines.$unshift(":leveloffset: "+l["$[]"]("leveloffset")),h.lines["$<<"](""),$(w=h.document.$attr("leveloffset"))?h.lines["$<<"](":leveloffset: "+w):h.lines["$<<"](":leveloffset!:"),h.lineno=r(h.lineno,2)),h.look_ahead=0),h},x.$$arity=-2),t.def(F,"$include_depth",k=function(){var t=this;return t.include_stack.$size()},k.$$arity=0),t.def(F,"$exceeds_max_depth?",S=function(){var t,e,n=this;return $(t=$(e=n.maxdepth)?o(n.include_stack.$size(),n.maxdepth["$[]"]("curr")):e)?n.maxdepth["$[]"]("rel"):t},S.$$arity=0),t.alias(F,"exceeded_max_depth?","exceeds_max_depth?"),t.def(F,"$shift",O=function(){var e=O.$$p,n=this,r=c,i=c,o=c,a=c;for(e&&(O.$$p=null),o=0,a=arguments.length,i=new Array(a);o"},E.$$arity=0),F.$private(),t.def(F,"$prepare_lines",T=function(n,i){var o,a,s=T.$$p,l=this,u=c,f=c,h=c,g=c,v=c,y=c,_=c,b=c;for(s&&(T.$$p=null),_=0,b=arguments.length,y=new Array(b);_e:t["$>"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}t.top;var i=[],o=t.nil,a=(t.const_get_qualified,t.const_get_relative),s=(t.breaker,t.slice,t.module),l=t.klass,c=t.hash2,u=t.send,d=t.truthy;return t.add_stubs(["$attr_accessor","$attr_reader","$===","$+","$level","$special","$generate_id","$title","$==","$>","$sectnum","$reftext","$!","$empty?","$sub_placeholder","$sub_quotes","$compat_mode","$[]","$attributes","$context","$assign_numeral","$class","$object_id","$inspect","$size","$length","$chr","$[]=","$-","$gsub","$downcase","$delete","$tr_s","$end_with?","$chop","$start_with?","$slice","$key?","$catalog","$unique_id_start_index"]),function(i,f){var h=s(i,"Asciidoctor"),p=[h].concat(f);(function(i,s,f){var h,p,$,m,g,v,y,_=l(i,s,"Section"),b=[_].concat(f);_.$$prototype.document=_.$$prototype.level=_.$$prototype.parent=_.$$prototype.numeral=_.$$prototype.numbered=_.$$prototype.sectname=_.$$prototype.title=_.$$prototype.blocks=o,_.$attr_accessor("index"),_.$attr_accessor("sectname"),_.$attr_accessor("special"),_.$attr_accessor("numbered"),_.$attr_reader("caption"),t.def(_,"$initialize",h=function(n,r,i,s){var l,f,p=h.$$p,$=this;return p&&(h.$$p=null),null==n&&(n=o),null==r&&(r=o),null==i&&(i=!1),null==s&&(s=c([],{})),u($,t.find_super_dispatcher($,"initialize",h,!1),[n,"section",s],null),d(a(b,"Section")["$==="](n))?(l=[d(f=r)?f:e(n.$level(),1),n.$special()],$.level=l[0],$.special=l[1]):(l=[d(f=r)?f:1,!1],$.level=l[0],$.special=l[1]),$.numbered=i,$.index=0},h.$$arity=-1),t.alias(_,"name","title"),t.def(_,"$generate_id",p=function(){var t=this;return a(b,"Section").$generate_id(t.$title(),t.document)},p.$$arity=0),t.def(_,"$sectnum",$=function(t,e){var r,i=this;return null==t&&(t="."),null==e&&(e=o),e=d(r=e)?r:function(){return e["$=="](!1)?"":t}(),d(d(r=n(i.level,1))?a(b,"Section")["$==="](i.parent):r)?""+i.parent.$sectnum(t,t)+i.numeral+e:""+i.numeral+e},$.$$arity=-1),t.def(_,"$xreftext",m=function(t){var e,n=this,r=o,i=o,a=o,s=o,l=o;return null==t&&(t=o),d(d(e=r=n.$reftext())?r["$empty?"]()["$!"]():e)?r:d(t)?d(n.numbered)?function(){return i=t,"full"["$==="](i)?(s=d(d(e=(a=n.sectname)["$=="]("chapter"))?e:a["$=="]("appendix"))?n.$sub_placeholder(n.$sub_quotes("_%s_"),n.$title()):n.$sub_placeholder(n.$sub_quotes(function(){return d(n.document.$compat_mode())?"``%s''":'"`%s`"'}()),n.$title()),d(l=n.document.$attributes()["$[]"](a+"-refsig"))?l+" "+n.$sectnum(".",",")+" "+s:n.$sectnum(".",",")+" "+s):"short"["$==="](i)?d(l=n.document.$attributes()["$[]"](n.sectname+"-refsig"))?l+" "+n.$sectnum(".",""):n.$sectnum(".",""):d(d(e=(a=n.sectname)["$=="]("chapter"))?e:a["$=="]("appendix"))?n.$sub_placeholder(n.$sub_quotes("_%s_"),n.$title()):n.$title()}():d(d(e=(a=n.sectname)["$=="]("chapter"))?e:a["$=="]("appendix"))?n.$sub_placeholder(n.$sub_quotes("_%s_"),n.$title()):n.$title():n.$title()},m.$$arity=-1),t.def(_,"$<<",g=function(e){var n=g.$$p,r=this,i=o,a=o,s=o;for(n&&(g.$$p=null),a=0,s=arguments.length,i=new Array(s);a"):u(n,t.find_super_dispatcher(n,"to_s",v,!1),i,e)},v.$$arity=0),t.defs(_,"$generate_id",y=function(n,i){var s,l,c=o,f=o,h=o,p=o,$=o,m=o,g=o,v=o,y=o,_=o;if(c=i.$attributes(),f=d(s=c["$[]"]("idprefix"))?s:"_",d(h=c["$[]"]("idseparator"))?d(d(s=h.$length()["$=="](1))?s:d(l=(p=h["$empty?"]())["$!"]())?($=["idseparator",h.$chr()],u(c,"[]=",t.to_a($)),h=$[r($["length"],1)]):l)&&(m=function(){return d(d(s=h["$=="]("-"))?s:h["$=="]("."))?" .-":" "+h+".-"}()):(s=["_"," _.-"],h=s[0],m=s[1]),g=""+f+n.$downcase().$gsub(a(b,"InvalidSectionIdCharsRx"),""),d(p)?g=g.$delete(" "):(g=g.$tr_s(m,h),d(g["$end_with?"](h))&&(g=g.$chop()),d(d(s=f["$empty?"]())?g["$start_with?"](h):s)&&(g=g.$slice(1,g.$length()))),d(i.$catalog()["$[]"]("refs")["$key?"](g))){v=i.$catalog()["$[]"]("refs"),y=a(b,"Compliance").$unique_id_start_index();while(d(v["$[]"](_=""+g+h+y)))y=e(y,1);return _}return g},y.$$arity=2)})(p[0],a(p,"AbstractBlock"),p)}(i[0],i)},Opal.modules["asciidoctor/stylesheets"]=function(t){t.top;var e=[],n=t.nil,r=t.const_get_qualified,i=t.const_get_relative,o=(t.breaker,t.slice,t.module),a=t.klass,s=t.truthy,l=t.hash2;return t.add_stubs(["$join","$new","$rstrip","$read","$primary_stylesheet_data","$write","$primary_stylesheet_name","$stylesheet_basename","$for","$read_stylesheet","$coderay_stylesheet_data","$coderay_stylesheet_name","$pygments_stylesheet_data","$pygments_stylesheet_name"]),function(e,c){var u=o(e,"Asciidoctor"),d=[u].concat(c);(function(e,o,c){var u,d,f,h,p,$,m,g,v,y,_,b,w,x=a(e,o,"Stylesheets"),k=[x].concat(c);x.$$prototype.primary_stylesheet_data=n,t.const_set(k[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),t.const_set(k[0],"STYLESHEETS_DIR",r("::","File").$join(i(k,"DATA_DIR"),"stylesheets")),x.__instance__=x.$new(),t.defs(x,"$instance",u=function(){var t=this;return null==t.__instance__&&(t.__instance__=n),t.__instance__},u.$$arity=0),t.def(x,"$primary_stylesheet_name",d=function(){return i(k,"DEFAULT_STYLESHEET_NAME")},d.$$arity=0),t.def(x,"$primary_stylesheet_data",f=function(){var t,e=this;return e.primary_stylesheet_data=s(t=e.primary_stylesheet_data)?t:r("::","File").$read(r("::","File").$join(i(k,"STYLESHEETS_DIR"),"asciidoctor-default.css"),l(["mode"],{mode:i(k,"FILE_READ_MODE")})).$rstrip()},f.$$arity=0),t.def(x,"$embed_primary_stylesheet",h=function(){var t=this;return""},h.$$arity=0),t.def(x,"$write_primary_stylesheet",p=function(t){var e=this;return null==t&&(t="."),r("::","File").$write(r("::","File").$join(t,e.$primary_stylesheet_name()),e.$primary_stylesheet_data(),l(["mode"],{mode:i(k,"FILE_WRITE_MODE")}))},p.$$arity=-1),t.def(x,"$coderay_stylesheet_name",$=function(){return i(k,"SyntaxHighlighter").$for("coderay").$stylesheet_basename()},$.$$arity=0),t.def(x,"$coderay_stylesheet_data",m=function(){return i(k,"SyntaxHighlighter").$for("coderay").$read_stylesheet()},m.$$arity=0),t.def(x,"$embed_coderay_stylesheet",g=function(){var t=this;return""},g.$$arity=0),t.def(x,"$write_coderay_stylesheet",v=function(t){var e=this;return null==t&&(t="."),r("::","File").$write(r("::","File").$join(t,e.$coderay_stylesheet_name()),e.$coderay_stylesheet_data(),l(["mode"],{mode:i(k,"FILE_WRITE_MODE")}))},v.$$arity=-1),t.def(x,"$pygments_stylesheet_name",y=function(t){return null==t&&(t=n),i(k,"SyntaxHighlighter").$for("pygments").$stylesheet_basename(t)},y.$$arity=-1),t.def(x,"$pygments_stylesheet_data",_=function(t){return null==t&&(t=n),i(k,"SyntaxHighlighter").$for("pygments").$read_stylesheet(t)},_.$$arity=-1),t.def(x,"$embed_pygments_stylesheet",b=function(t){var e=this;return null==t&&(t=n),""},b.$$arity=-1),t.def(x,"$write_pygments_stylesheet",w=function(t,e){var o=this;return null==t&&(t="."),null==e&&(e=n),r("::","File").$write(r("::","File").$join(t,o.$pygments_stylesheet_name(e)),o.$pygments_stylesheet_data(e),l(["mode"],{mode:i(k,"FILE_WRITE_MODE")}))},w.$$arity=-1)})(d[0],null,d)}(e[0],e)},Opal.modules["asciidoctor/table"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t","$to_i","$<","$==","$[]=","$-","$attributes","$truncate","$*","$/","$to_f","$empty?","$body","$each","$<<","$size","$+","$assign_column_widths","$warn","$logger","$update_attributes","$assign_width","$round","$shift","$style=","$head=","$pop","$foot=","$parent","$sourcemap","$dup","$header_row?","$table","$delete","$start_with?","$rstrip","$slice","$length","$advance","$lstrip","$strip","$split","$include?","$readlines","$unshift","$nil?","$=~","$catalog_inline_anchor","$apply_subs","$convert","$map","$text","$!=","$file","$lineno","$to_s","$include","$to_set","$mark","$key?","$nested?","$document","$error","$message_with_context","$cursor_at_prev_line","$nil_or_empty?","$escape","$columns","$match","$chop","$end_with?","$gsub","$!","$push_cellspec","$cell_open?","$close_cell","$take_cellspec","$squeeze","$upto","$times","$cursor_before_mark","$rowspan","$activate_rowspan","$colspan","$end_of_row?","$close_row","$private","$rows","$effective_column_visits"]),function(s,g){var v=d(s,"Asciidoctor"),y=[v].concat(g);(function(s,c,d){var m,g,v,y,_,b=f(s,c,"Table"),w=[b].concat(d);b.$$prototype.attributes=b.$$prototype.document=b.$$prototype.has_header_option=b.$$prototype.rows=b.$$prototype.columns=l,t.const_set(w[0],"DEFAULT_PRECISION",4),function(e,n,r){var i,o,a,s=f(e,n,"Rows");[s].concat(r);s.$$prototype.head=s.$$prototype.body=s.$$prototype.foot=l,s.$attr_accessor("head","foot","body"),t.def(s,"$initialize",i=function(t,e,n){var r=this;return null==t&&(t=[]),null==e&&(e=[]),null==n&&(n=[]),r.head=t,r.foot=e,r.body=n},i.$$arity=-1),t.alias(s,"[]","send"),t.def(s,"$by_section",o=function(){var t=this;return[["head",t.head],["body",t.body],["foot",t.foot]]},o.$$arity=0),t.def(s,"$to_h",a=function(){var t=this;return h(["head","body","foot"],{head:t.head,body:t.body,foot:t.foot})},a.$$arity=0)}(w[0],null,w),b.$attr_accessor("columns"),b.$attr_accessor("rows"),b.$attr_accessor("has_header_option"),b.$attr_reader("caption"),t.def(b,"$initialize",m=function(a,s){var c,d,f=m.$$p,h=this,g=l,v=l,y=l,_=l;return f&&(m.$$p=null),p(h,t.find_super_dispatcher(h,"initialize",m,!1),[a,"table"],null),h.rows=u(w,"Rows").$new(),h.columns=[],h.has_header_option=function(){return!!$(s["$[]"]("header-option"))}(),$(g=s["$[]"]("width"))?$($(c=e(v=g.$to_i(),100))?c:n(v,1))&&($((c=v["$=="](0))?$(d=g["$=="]("0"))?d:g["$=="]("0%"):v["$=="](0))||(v=100)):v=100,y=["tablepcwidth",v],p(h.attributes,"[]=",t.to_a(y)),y[r(y["length"],1)],$(h.document.$attributes()["$[]"]("pagewidth"))&&(y=["tableabswidth",function(){return(_=i(o(v,100),h.document.$attributes()["$[]"]("pagewidth").$to_f()).$truncate(u(w,"DEFAULT_PRECISION")))["$=="](_.$to_i())?_.$to_i():_}()],p(h.attributes,"[]=",t.to_a(y)),y[r(y["length"],1)]),$(s["$[]"]("rotate-option"))?(y=["orientation","landscape"],p(h.attributes,"[]=",t.to_a(y)),y[r(y["length"],1)]):l},m.$$arity=2),t.def(b,"$header_row?",g=function(){var t,e=this;return $(t=e.has_header_option)?e.rows.$body()["$empty?"]():t},g.$$arity=0),t.def(b,"$create_columns",v=function(i){var o,s,c=this,d=l,f=l,h=l,m=l,g=l;return d=[],f=l,h=0,p(i,"each",[],(o=function(t){var e,r=o.$$s||this,i=l;return null==t&&(t=l),i=t["$[]"]("width"),d["$<<"](u(w,"Column").$new(r,d.$size(),t)),$(n(i,0))?(f=$(e=f)?e:[])["$<<"](d["$[]"](-1)):h=a(h,i)},o.$$s=c,o.$$arity=1,o)),$(e(m=(c.columns=d).$size(),0))&&(g=["colcount",m],p(c.attributes,"[]=",t.to_a(g)),g[r(g["length"],1)],$($(s=e(h,0))?s:f)||(h=l),c.$assign_column_widths(h,f)),l},v.$$arity=1),t.def(b,"$assign_column_widths",y=function(t,n){var i,s,c,d=this,f=l,m=l,g=l,v=l,y=l;return null==t&&(t=l),null==n&&(n=l),f=u(w,"DEFAULT_PRECISION"),m=g=0,$(t)?($(n)&&($(e(t,100))?(v=0,d.$logger().$warn("total column width must not exceed 100% when using autowidth columns; got "+t+"%")):(v=o(r(100,t),n.$size()).$truncate(f),v.$to_i()["$=="](v)&&(v=v.$to_i()),t=100),y=h(["width","autowidth-option"],{width:v,"autowidth-option":""}),p(n,"each",[],(i=function(t){i.$$s;return null==t&&(t=l),t.$update_attributes(y)},i.$$s=d,i.$$arity=1,i))),p(d.columns,"each",[],(s=function(e){s.$$s;return null==e&&(e=l),m=a(m,g=e.$assign_width(l,t,f))},s.$$s=d,s.$$arity=1,s))):(g=o(100,d.columns.$size()).$truncate(f),g.$to_i()["$=="](g)&&(g=g.$to_i()),p(d.columns,"each",[],(c=function(t){c.$$s;return null==t&&(t=l),m=a(m,t.$assign_width(g,l,f))},c.$$s=d,c.$$arity=1,c))),m["$=="](100)||d.columns["$[]"](-1).$assign_width(a(r(100,m),g).$round(f),l,f),l},y.$$arity=-1),t.def(b,"$partition_header_footer",_=function(n){var i,o,a=this,s=l,c=l,u=l;return s=["rowcount",a.rows.$body().$size()],p(a.attributes,"[]=",t.to_a(s)),s[r(s["length"],1)],c=a.rows.$body().$size(),$($(i=e(c,0))?a.has_header_option:i)&&(u=a.rows.$body().$shift(),c=r(c,1),p(u,"each",[],(o=function(e){o.$$s;return null==e&&(e=l),s=[l],p(e,"style=",t.to_a(s)),s[r(s["length"],1)]},o.$$s=a,o.$$arity=1,o)),s=[[u]],p(a.rows,"head=",t.to_a(s)),s[r(s["length"],1)]),$($(i=e(c,0))?n["$[]"]("footer-option"):i)&&(s=[[a.rows.$body().$pop()]],p(a.rows,"foot=",t.to_a(s)),s[r(s["length"],1)]),l},_.$$arity=1)})(y[0],u(y,"AbstractBlock"),y),function(e,n,s){var c,u,d,m,g=f(e,n,"Column");[g].concat(s);g.$$prototype.attributes=l,g.$attr_accessor("style"),t.def(g,"$initialize",c=function(e,n,i){var o=c.$$p,s=this,u=l;return o&&(c.$$p=null),null==i&&(i=h([],{})),p(s,t.find_super_dispatcher(s,"initialize",c,!1),[e,"table_column"],null),s.style=i["$[]"]("style"),u=["colnumber",a(n,1)],p(i,"[]=",t.to_a(u)),u[r(u["length"],1)],$(i["$[]"]("width"))||(u=["width",1],p(i,"[]=",t.to_a(u)),u[r(u["length"],1)]),$(i["$[]"]("halign"))||(u=["halign","left"],p(i,"[]=",t.to_a(u)),u[r(u["length"],1)]),$(i["$[]"]("valign"))||(u=["valign","top"],p(i,"[]=",t.to_a(u)),u[r(u["length"],1)]),s.$update_attributes(i)},c.$$arity=-3),t.alias(g,"table","parent"),t.def(g,"$assign_width",u=function(e,n,a){var s=this,c=l,u=l;return $(n)&&(e=o(i(s.attributes["$[]"]("width").$to_f(),100),n).$truncate(a),e.$to_i()["$=="](e)&&(e=e.$to_i())),$(s.$parent().$attributes()["$[]"]("tableabswidth"))&&(c=["colabswidth",function(){return(u=i(o(e,100),s.$parent().$attributes()["$[]"]("tableabswidth")).$truncate(a))["$=="](u.$to_i())?u.$to_i():u}()],p(s.attributes,"[]=",t.to_a(c)),c[r(c["length"],1)]),c=["colpcwidth",e],p(s.attributes,"[]=",t.to_a(c)),c[r(c["length"],1)]},u.$$arity=3),t.def(g,"$block?",d=function(){return!1},d.$$arity=0),t.def(g,"$inline?",m=function(){return!1},m.$$arity=0)}(u(y,"Table"),u(y,"AbstractNode"),y),function(e,o,s){var c,d,g,v,y,_,b,w,x,k=f(e,o,"Cell"),S=[k].concat(s);k.$$prototype.document=k.$$prototype.text=k.$$prototype.subs=k.$$prototype.style=k.$$prototype.inner_document=k.$$prototype.source_location=k.$$prototype.colspan=k.$$prototype.rowspan=k.$$prototype.attributes=l,t.const_set(S[0],"DOUBLE_LF",i(u(S,"LF"),2)),k.$attr_accessor("colspan"),k.$attr_accessor("rowspan"),t.alias(k,"column","parent"),k.$attr_reader("inner_document"),t.def(k,"$initialize",c=function(e,i,o,s){var d,f,g=c.$$p,v=this,y=l,_=l,b=l,w=l,x=l,k=l,O=l,C=l,A=l,E=l,T=l,P=l;if(g&&(c.$$p=null),null==o&&(o=h([],{})),null==s&&(s=h([],{})),p(v,t.find_super_dispatcher(v,"initialize",c,!1),[e,"table_cell"],null),$(v.document.$sourcemap())&&(v.source_location=s["$[]"]("cursor").$dup()),$(e)&&($(y=e.$table()["$header_row?"]())||(_=e.$attributes()["$[]"]("style")),v.$update_attributes(e.$attributes())),$(o))if($(o["$empty?"]())?v.colspan=v.rowspan=l:(d=[o.$delete("colspan"),o.$delete("rowspan")],v.colspan=d[0],v.rowspan=d[1],$(y)||(_=$(d=o["$[]"]("style"))?d:_),v.$update_attributes(o)),_["$=="]("asciidoc"))if(b=!0,w=s["$[]"]("cursor"),$((i=i.$rstrip())["$start_with?"](u(S,"LF")))){x=1;while($((i=i.$slice(1,i.$length()))["$start_with?"](u(S,"LF"))))x=a(x,1);w.$advance(x)}else i=i.$lstrip();else if(_["$=="]("literal")){k=!0,i=i.$rstrip();while($(i["$start_with?"](u(S,"LF"))))i=i.$slice(1,i.$length())}else O=!0,i=function(){return $(i)?i.$strip():""}();else v.colspan=v.rowspan=l,_["$=="]("asciidoc")&&(b=!0,w=s["$[]"]("cursor"));return $(b)?(C=v.document.$attributes().$delete("doctitle"),A=i.$split(u(S,"LF"),-1),$(A["$empty?"]())||$((E=A["$[]"](0))["$include?"]("::"))&&(T=u(S,"PreprocessorReader").$new(v.document,[E]).$readlines(),$((d=E["$=="](T["$[]"](0)))?n(T.$size(),2):E["$=="](T["$[]"](0)))||(A.$shift(),$(T["$empty?"]())||p(A,"unshift",t.to_a(T)))),v.inner_document=u(S,"Document").$new(A,h(["standalone","parent","cursor"],{standalone:!1,parent:v.document,cursor:w})),$(C["$nil?"]())||(P=["doctitle",C],p(v.document.$attributes(),"[]=",t.to_a(P)),P[r(P["length"],1)]),v.subs=l):$(k)?(v.content_model="verbatim",v.subs=u(S,"BASIC_SUBS")):($($(d=$(f=O)?i["$start_with?"]("[["):f)?u(S,"LeadingInlineAnchorRx")["$=~"](i):d)&&u(S,"Parser").$catalog_inline_anchor((d=m["~"])===l?l:d["$[]"](1),(d=m["~"])===l?l:d["$[]"](2),v,s["$[]"]("cursor"),v.document),v.content_model="simple",v.subs=u(S,"NORMAL_SUBS")),v.text=i,v.style=_},c.$$arity=-3),t.def(k,"$text",d=function(){var t=this;return t.$apply_subs(t.text,t.subs)},d.$$arity=0),t.def(k,"$text=",g=function(t){var e=this;return e.text=t},g.$$arity=1),t.def(k,"$content",v=function(){var t,e,n=this,r=l,i=l;return(r=n.style)["$=="]("asciidoc")?n.inner_document.$convert():$(n.text["$include?"](u(S,"DOUBLE_LF")))?p(n.$text().$split(u(S,"BlankLineRx")),"map",[],(t=function(e){var n,i=t.$$s||this;return null==e&&(e=l),$($(n=r)?r["$!="]("header"):n)?u(S,"Inline").$new(i.$parent(),"quoted",e,h(["type"],{type:r})).$convert():e},t.$$s=n,t.$$arity=1,t)):$((i=n.$text())["$empty?"]())?[]:$($(e=r)?r["$!="]("header"):e)?[u(S,"Inline").$new(n.$parent(),"quoted",i,h(["type"],{type:r})).$convert()]:[i]},v.$$arity=0),t.def(k,"$lines",y=function(){var t=this;return t.text.$split(u(S,"LF"))},y.$$arity=0),t.def(k,"$source",_=function(){var t=this;return t.text},_.$$arity=0),t.def(k,"$file",b=function(){var t,e=this;return $(t=e.source_location)?e.source_location.$file():t},b.$$arity=0),t.def(k,"$lineno",w=function(){var t,e=this;return $(t=e.source_location)?e.source_location.$lineno():t},w.$$arity=0),t.def(k,"$to_s",x=function(){var e,n=x.$$p,r=this,i=l,o=l,a=l;for(n&&(x.$$p=null),o=0,a=arguments.length,i=new Array(a);o")+": Failed to load AsciiDoc document",c(O["$respond_to?"]("exception"))?(A=O.$exception(C+" - "+O.$message()),A.$set_backtrace(O.$backtrace()),A.stack=O.stack):(A=O.$class().$new(C,O),b=[O.$stack_trace()],u(A,"stack_trace=",t.to_a(b)),b[e(b["length"],1)])}catch(E){if(!t.rescue(E,[a($,"StandardError")]))throw E;try{A=O}finally{t.pop_exception()}}return v.$raise(A)}finally{t.pop_exception()}}},f.$$arity=-2),t.def(p,"$load_file",h=function(t,e){var n,r=this;return null==e&&(e=l([],{})),u(o("::","File"),"open",[t,a($,"FILE_READ_MODE")],(n=function(t){var r=n.$$s||this;return null==t&&(t=i),r.$load(t,e)},n.$$s=r,n.$$arity=1,n))},h.$$arity=-2)}(r[0],r)},Opal.modules["asciidoctor/convert"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t=","$safe","$normalize_system_path","$mkdir_p","$directory?","$!","$convert","$write","$<","$attr?","$basebackend?","$attr","$uriish?","$include?","$syntax_highlighter","$write_stylesheet?","$write_primary_stylesheet","$instance","$empty?","$!=","$read_asset","$file?","$write_stylesheet","$open"]),function(i,f){var h,p,$=l(i,"Asciidoctor"),m=[$].concat(f);$.$module_function(),t.def($,"$convert",h=function(i,l){var f,h,p,$,g,v=this,y=o,_=o,b=o,w=o,x=o,k=o,S=o,O=o,C=o,A=o,E=o,T=o,P=o,B=o,L=o,I=o,D=o,R=o,j=o,M=o,F=o,N=o,z=o,H=o;if(null==l&&(l=c([],{})),(l=l.$merge()).$delete("parse"),y=l.$delete("to_dir"),_=l.$delete("mkdirs"),b=w=l.$delete("to_file"),(!0)["$==="](b)||o["$==="](b))u(x=y)||u(a("::","File")["$==="](i))&&(k=a("::","File").$absolute_path(i.$path())),w=o;else if((!1)["$==="](b))w=o;else{if("/dev/null"["$==="](b))return v.$load(i,l);u(S=w["$respond_to?"]("write"))||(O=["to_file",x=w],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)])}return u(l["$key?"]("standalone"))||(u(u(f=k)?f:x)?(O=["standalone",l.$fetch("header_footer",!0)],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)]):u(l["$key?"]("header_footer"))&&(O=["standalone",l["$[]"]("header_footer")],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)])),u(k)?(O=["to_dir",C=a("::","File").$dirname(k)],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)]):u(x)&&(u(y)?u(w)?(O=["to_dir",a("::","File").$dirname(a("::","File").$expand_path(a("::","File").$join(y,w)))],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)]):(O=["to_dir",a("::","File").$expand_path(y)],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)]):u(w)&&(O=["to_dir",a("::","File").$dirname(a("::","File").$expand_path(w))],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)])),A=v.$load(i,l),u(k)?(E=a("::","File").$join(C,""+A.$attributes()["$[]"]("docname")+A.$outfilesuffix()),E["$=="](k)&&v.$raise(a("::","IOError"),"input file and output file cannot be the same: "+E)):u(x)?(T=function(){return u(l["$key?"]("base_dir"))?a("::","File").$expand_path(l["$[]"]("base_dir")):a("::","Dir").$pwd()}(),P=function(){return u(n(A.$safe(),a(s(m,"SafeMode"),"SAFE")))?T:o}(),u(y)?(C=A.$normalize_system_path(y,T,P,c(["target_name","recover"],{target_name:"to_dir",recover:!1})),u(w)?(E=A.$normalize_system_path(w,C,o,c(["target_name","recover"],{target_name:"to_dir",recover:!1})),C=a("::","File").$dirname(E)):E=a("::","File").$join(C,""+A.$attributes()["$[]"]("docname")+A.$outfilesuffix())):u(w)&&(E=A.$normalize_system_path(w,T,P,c(["target_name","recover"],{target_name:"to_dir",recover:!1})),C=a("::","File").$dirname(E)),u(u(f=a("::","File")["$==="](i))?E["$=="](a("::","File").$absolute_path(i.$path())):f)&&v.$raise(a("::","IOError"),"input file and output file cannot be the same: "+E),u(_)?s(m,"Helpers").$mkdir_p(C):u(a("::","File")["$directory?"](C))||v.$raise(a("::","IOError"),"target directory does not exist: "+y+" (hint: set :mkdirs option)")):(E=w,C=o),B=u(u(f=E)?S["$!"]():f)?A.$convert(c(["outfile","outdir"],{outfile:E,outdir:C})):A.$convert(),u(E)?(A.$write(B,E),u(u(f=u(h=u(p=u($=u(g=S["$!"]())?r(A.$safe(),a(s(m,"SafeMode"),"SECURE")):g)?A["$attr?"]("linkcss"):$)?A["$attr?"]("copycss"):p)?A["$basebackend?"]("html"):h)?(u(h=L=A.$attr("stylesdir"))?s(m,"Helpers")["$uriish?"](L):h)["$!"]():f)&&(u(I=A.$attr("stylesheet"))&&(u(s(m,"DEFAULT_STYLESHEET_KEYS")["$include?"](I))?D=!0:u(s(m,"Helpers")["$uriish?"](I)["$!"]())&&(R=!0)),j=u(f=M=A.$syntax_highlighter())?M["$write_stylesheet?"](A):f,u(u(f=u(h=D)?h:R)?f:j)&&(F=A.$normalize_system_path(L,C,function(){return u(n(A.$safe(),a(s(m,"SafeMode"),"SAFE")))?C:o}()),u(_)?s(m,"Helpers").$mkdir_p(F):u(a("::","File")["$directory?"](F))||v.$raise(a("::","IOError"),"target stylesheet directory does not exist: "+F+" (hint: set :mkdirs option)"),u(D)?s(m,"Stylesheets").$instance().$write_primary_stylesheet(F):u(R)&&(N=u((N=A.$attr("copycss"))["$empty?"]())?A.$normalize_system_path(I):A.$normalize_system_path(N),z=A.$normalize_system_path(I,F,function(){return u(n(A.$safe(),a(s(m,"SafeMode"),"SAFE")))?C:o}()),u(u(f=N["$!="](z))?H=A.$read_asset(N,c(["warn_on_failure","label"],{warn_on_failure:a("::","File")["$file?"](z)["$!"](),label:"stylesheet"})):f)&&a("::","File").$write(z,H,c(["mode"],{mode:s(m,"FILE_WRITE_MODE")}))),u(j)&&M.$write_stylesheet(A,F))),A):B},h.$$arity=-2),t.def($,"$convert_file",p=function(t,e){var n,r=this;return null==e&&(e=c([],{})),d(a("::","File"),"open",[t,s(m,"FILE_READ_MODE")],(n=function(t){var r=n.$$s||this;return null==t&&(t=o),r.$convert(t,e)},n.$$s=r,n.$$arity=1,n))},p.$$arity=-2),t.alias($,"render","convert"),$.$module_function("render"),t.alias($,"render_file","convert_file"),$.$module_function("render_file")}(i[0],i)},Opal.modules["asciidoctor/syntax_highlighter/highlightjs"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}t.top;var n=[],r=t.nil,i=t.const_get_qualified,o=t.const_get_relative,a=(t.breaker,t.slice,t.module),s=t.klass,l=t.send,c=t.hash2,u=t.truthy;return t.add_stubs(["$register_for","$merge","$proc","$[]=","$-","$==","$attr","$[]","$attr?","$join","$map","$split","$lstrip"]),function(n,d){var f=a(n,"Asciidoctor"),h=[f].concat(d);(function(n,i,a){var d,f,h,p,$=s(n,i,"HighlightJsAdapter"),m=[$].concat(a);$.$register_for("highlightjs","highlight.js"),t.def($,"$initialize",d=function(e){var n,i=d.$$p,o=this,a=r,s=r,c=r;for(i&&(d.$$p=null),s=0,c=arguments.length,a=new Array(c);s\n