yamlover 0.3.11 → 0.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +186 -143
- package/bin/yamlover.js +51 -2
- package/dist/builtin-taxonomy/$defs/.yamlover/meta.yamlover +25 -0
- package/dist/builtin-taxonomy/$defs/annotation +18 -0
- package/dist/builtin-taxonomy/$defs/board +15 -0
- package/dist/builtin-taxonomy/$defs/chapter +19 -0
- package/dist/builtin-taxonomy/$defs/chunk +6 -0
- package/dist/builtin-taxonomy/$defs/config +20 -0
- package/dist/builtin-taxonomy/$defs/fragment +44 -0
- package/dist/builtin-taxonomy/$defs/tag +17 -0
- package/dist/builtin-taxonomy/$defs/task +33 -0
- package/dist/builtin-taxonomy/$defs/workflow +18 -0
- package/dist/builtin-taxonomy/tags/.yamlover/body.yamlover +46 -0
- package/dist/client/assets/{decoded-4gqlad5X.js → decoded-7CsibQKd.js} +1 -1
- package/dist/client/assets/{djvu-Dex1F0s7.js → djvu-BXFlPnkK.js} +1 -1
- package/dist/client/assets/{docx-DJzgnQG5.js → docx-B_9I-KwO.js} +1 -1
- package/dist/client/assets/{heic-DqYoM-Wf.js → heic-Ce7tu8UK.js} +1 -1
- package/dist/client/assets/{imagemap-DaET_nLG.js → imagemap-DlsYOgu-.js} +1 -1
- package/dist/client/assets/index-D7TqaRqy.js +620 -0
- package/dist/client/assets/{index-CkbHoSh8.css → index-DEBdytA6.css} +1 -1
- package/dist/client/assets/{map-BmG6sq1M.js → map-CKyCg437.js} +1 -1
- package/dist/client/assets/{paged-Bxb-d5c7.js → paged-CBui7Gsu.js} +1 -1
- package/dist/client/assets/{panzoom-BoL5vDfI.js → panzoom-BDtxTlLr.js} +1 -1
- package/dist/client/assets/{pdf-BpkDRVTL.js → pdf-DEAMWCiJ.js} +1 -1
- package/dist/client/assets/{psd-DC6nmZST.js → psd-BUfV7J7j.js} +1 -1
- package/dist/client/assets/{spreadsheet-DIfzBeGR.js → spreadsheet-DM8lRCkI.js} +1 -1
- package/dist/client/assets/{tiff-CBO4Dy15.js → tiff-DvGVB25t.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server.js +513 -344
- package/package.json +1 -1
- package/dist/client/assets/index-IlC0sRFA.js +0 -620
|
@@ -1,620 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-BpkDRVTL.js","assets/paged-Bxb-d5c7.js","assets/pdf-m5e3jsV4.css","assets/djvu-Dex1F0s7.js","assets/psd-DC6nmZST.js","assets/decoded-4gqlad5X.js","assets/imagemap-DaET_nLG.js","assets/panzoom-BoL5vDfI.js","assets/panzoom-CIGW-MKW.css","assets/tiff-CBO4Dy15.js","assets/_commonjs-dynamic-modules-TDtrdbi3.js","assets/heic-DqYoM-Wf.js","assets/docx-DJzgnQG5.js","assets/map-BmG6sq1M.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var w8=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n_={exports:{}},bu={},i_={exports:{}},Ot={};/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Bl=Symbol.for("react.element"),Av=Symbol.for("react.portal"),Ev=Symbol.for("react.fragment"),Cv=Symbol.for("react.strict_mode"),Tv=Symbol.for("react.profiler"),zv=Symbol.for("react.provider"),Rv=Symbol.for("react.context"),Nv=Symbol.for("react.forward_ref"),Iv=Symbol.for("react.suspense"),qv=Symbol.for("react.memo"),Mv=Symbol.for("react.lazy"),Cd=Symbol.iterator;function Dv(e){return e===null||typeof e!="object"?null:(e=Cd&&e[Cd]||e["@@iterator"],typeof e=="function"?e:null)}var s_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},a_=Object.assign,l_={};function ka(e,t,r){this.props=e,this.context=t,this.refs=l_,this.updater=r||s_}ka.prototype.isReactComponent={};ka.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ka.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function o_(){}o_.prototype=ka.prototype;function Yf(e,t,r){this.props=e,this.context=t,this.refs=l_,this.updater=r||s_}var Wf=Yf.prototype=new o_;Wf.constructor=Yf;a_(Wf,ka.prototype);Wf.isPureReactComponent=!0;var Td=Array.isArray,u_=Object.prototype.hasOwnProperty,Gf={current:null},c_={key:!0,ref:!0,__self:!0,__source:!0};function $_(e,t,r){var n,i={},s=null,c=null;if(t!=null)for(n in t.ref!==void 0&&(c=t.ref),t.key!==void 0&&(s=""+t.key),t)u_.call(t,n)&&!c_.hasOwnProperty(n)&&(i[n]=t[n]);var f=arguments.length-2;if(f===1)i.children=r;else if(1<f){for(var p=Array(f),h=0;h<f;h++)p[h]=arguments[h+2];i.children=p}if(e&&e.defaultProps)for(n in f=e.defaultProps,f)i[n]===void 0&&(i[n]=f[n]);return{$$typeof:Bl,type:e,key:s,ref:c,props:i,_owner:Gf.current}}function Lv(e,t){return{$$typeof:Bl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Kf(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bl}function Fv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var zd=/\/+/g;function $c(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Fv(""+e.key):t.toString(36)}function ko(e,t,r,n,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case Bl:case Av:c=!0}}if(c)return c=e,i=i(c),e=n===""?"."+$c(c,0):n,Td(i)?(r="",e!=null&&(r=e.replace(zd,"$&/")+"/"),ko(i,t,r,"",function(h){return h})):i!=null&&(Kf(i)&&(i=Lv(i,r+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(zd,"$&/")+"/")+e)),t.push(i)),1;if(c=0,n=n===""?".":n+":",Td(e))for(var f=0;f<e.length;f++){s=e[f];var p=n+$c(s,f);c+=ko(s,t,r,p,i)}else if(p=Dv(e),typeof p=="function")for(e=p.call(e),f=0;!(s=e.next()).done;)s=s.value,p=n+$c(s,f++),c+=ko(s,t,r,p,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function Ql(e,t,r){if(e==null)return e;var n=[],i=0;return ko(e,n,"","",function(s){return t.call(r,s,i++)}),n}function Bv(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var cn={current:null},So={transition:null},Pv={ReactCurrentDispatcher:cn,ReactCurrentBatchConfig:So,ReactCurrentOwner:Gf};function f_(){throw Error("act(...) is not supported in production builds of React.")}Ot.Children={map:Ql,forEach:function(e,t,r){Ql(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Ql(e,function(){t++}),t},toArray:function(e){return Ql(e,function(t){return t})||[]},only:function(e){if(!Kf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ot.Component=ka;Ot.Fragment=Ev;Ot.Profiler=Tv;Ot.PureComponent=Yf;Ot.StrictMode=Cv;Ot.Suspense=Iv;Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pv;Ot.act=f_;Ot.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=a_({},e.props),i=e.key,s=e.ref,c=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,c=Gf.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var f=e.type.defaultProps;for(p in t)u_.call(t,p)&&!c_.hasOwnProperty(p)&&(n[p]=t[p]===void 0&&f!==void 0?f[p]:t[p])}var p=arguments.length-2;if(p===1)n.children=r;else if(1<p){f=Array(p);for(var h=0;h<p;h++)f[h]=arguments[h+2];n.children=f}return{$$typeof:Bl,type:e.type,key:i,ref:s,props:n,_owner:c}};Ot.createContext=function(e){return e={$$typeof:Rv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:zv,_context:e},e.Consumer=e};Ot.createElement=$_;Ot.createFactory=function(e){var t=$_.bind(null,e);return t.type=e,t};Ot.createRef=function(){return{current:null}};Ot.forwardRef=function(e){return{$$typeof:Nv,render:e}};Ot.isValidElement=Kf;Ot.lazy=function(e){return{$$typeof:Mv,_payload:{_status:-1,_result:e},_init:Bv}};Ot.memo=function(e,t){return{$$typeof:qv,type:e,compare:t===void 0?null:t}};Ot.startTransition=function(e){var t=So.transition;So.transition={};try{e()}finally{So.transition=t}};Ot.unstable_act=f_;Ot.useCallback=function(e,t){return cn.current.useCallback(e,t)};Ot.useContext=function(e){return cn.current.useContext(e)};Ot.useDebugValue=function(){};Ot.useDeferredValue=function(e){return cn.current.useDeferredValue(e)};Ot.useEffect=function(e,t){return cn.current.useEffect(e,t)};Ot.useId=function(){return cn.current.useId()};Ot.useImperativeHandle=function(e,t,r){return cn.current.useImperativeHandle(e,t,r)};Ot.useInsertionEffect=function(e,t){return cn.current.useInsertionEffect(e,t)};Ot.useLayoutEffect=function(e,t){return cn.current.useLayoutEffect(e,t)};Ot.useMemo=function(e,t){return cn.current.useMemo(e,t)};Ot.useReducer=function(e,t,r){return cn.current.useReducer(e,t,r)};Ot.useRef=function(e){return cn.current.useRef(e)};Ot.useState=function(e){return cn.current.useState(e)};Ot.useSyncExternalStore=function(e,t,r){return cn.current.useSyncExternalStore(e,t,r)};Ot.useTransition=function(){return cn.current.useTransition()};Ot.version="18.3.1";i_.exports=Ot;var gt=i_.exports;const jv=Sv(gt);/**
|
|
11
|
-
* @license React
|
|
12
|
-
* react-jsx-runtime.production.min.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Uv=gt,Hv=Symbol.for("react.element"),Vv=Symbol.for("react.fragment"),Yv=Object.prototype.hasOwnProperty,Wv=Uv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Gv={key:!0,ref:!0,__self:!0,__source:!0};function d_(e,t,r){var n,i={},s=null,c=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(c=t.ref);for(n in t)Yv.call(t,n)&&!Gv.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:Hv,type:e,key:s,ref:c,props:i,_owner:Wv.current}}bu.Fragment=Vv;bu.jsx=d_;bu.jsxs=d_;n_.exports=bu;var Fe=n_.exports,h_={exports:{}},Rn={},p_={exports:{}},__={};/**
|
|
19
|
-
* @license React
|
|
20
|
-
* scheduler.production.min.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/(function(e){function t(ce,M){var x=ce.length;ce.push(M);e:for(;0<x;){var $=x-1>>>1,l=ce[$];if(0<i(l,M))ce[$]=M,ce[x]=l,x=$;else break e}}function r(ce){return ce.length===0?null:ce[0]}function n(ce){if(ce.length===0)return null;var M=ce[0],x=ce.pop();if(x!==M){ce[0]=x;e:for(var $=0,l=ce.length,u=l>>>1;$<u;){var d=2*($+1)-1,_=ce[d],S=d+1,A=ce[S];if(0>i(_,x))S<l&&0>i(A,_)?(ce[$]=A,ce[S]=x,$=S):(ce[$]=_,ce[d]=x,$=d);else if(S<l&&0>i(A,x))ce[$]=A,ce[S]=x,$=S;else break e}}return M}function i(ce,M){var x=ce.sortIndex-M.sortIndex;return x!==0?x:ce.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var p=[],h=[],I=1,F=null,H=3,pe=!1,xe=!1,ne=!1,W=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,ge=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function se(ce){for(var M=r(h);M!==null;){if(M.callback===null)n(h);else if(M.startTime<=ce)n(h),M.sortIndex=M.expirationTime,t(p,M);else break;M=r(h)}}function me(ce){if(ne=!1,se(ce),!xe)if(r(p)!==null)xe=!0,P(J);else{var M=r(h);M!==null&&Me(me,M.startTime-ce)}}function J(ce,M){xe=!1,ne&&(ne=!1,X(Ae),Ae=-1),pe=!0;var x=H;try{for(se(M),F=r(p);F!==null&&(!(F.expirationTime>M)||ce&&!le());){var $=F.callback;if(typeof $=="function"){F.callback=null,H=F.priorityLevel;var l=$(F.expirationTime<=M);M=e.unstable_now(),typeof l=="function"?F.callback=l:F===r(p)&&n(p),se(M)}else n(p);F=r(p)}if(F!==null)var u=!0;else{var d=r(h);d!==null&&Me(me,d.startTime-M),u=!1}return u}finally{F=null,H=x,pe=!1}}var be=!1,fe=null,Ae=-1,O=5,Ee=-1;function le(){return!(e.unstable_now()-Ee<O)}function w(){if(fe!==null){var ce=e.unstable_now();Ee=ce;var M=!0;try{M=fe(!0,ce)}finally{M?Se():(be=!1,fe=null)}}else be=!1}var Se;if(typeof ge=="function")Se=function(){ge(w)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,re=N.port2;N.port1.onmessage=w,Se=function(){re.postMessage(null)}}else Se=function(){W(w,0)};function P(ce){fe=ce,be||(be=!0,Se())}function Me(ce,M){Ae=W(function(){ce(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(ce){ce.callback=null},e.unstable_continueExecution=function(){xe||pe||(xe=!0,P(J))},e.unstable_forceFrameRate=function(ce){0>ce||125<ce?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<ce?Math.floor(1e3/ce):5},e.unstable_getCurrentPriorityLevel=function(){return H},e.unstable_getFirstCallbackNode=function(){return r(p)},e.unstable_next=function(ce){switch(H){case 1:case 2:case 3:var M=3;break;default:M=H}var x=H;H=M;try{return ce()}finally{H=x}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(ce,M){switch(ce){case 1:case 2:case 3:case 4:case 5:break;default:ce=3}var x=H;H=ce;try{return M()}finally{H=x}},e.unstable_scheduleCallback=function(ce,M,x){var $=e.unstable_now();switch(typeof x=="object"&&x!==null?(x=x.delay,x=typeof x=="number"&&0<x?$+x:$):x=$,ce){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return l=x+l,ce={id:I++,callback:M,priorityLevel:ce,startTime:x,expirationTime:l,sortIndex:-1},x>$?(ce.sortIndex=x,t(h,ce),r(p)===null&&ce===r(h)&&(ne?(X(Ae),Ae=-1):ne=!0,Me(me,x-$))):(ce.sortIndex=l,t(p,ce),xe||pe||(xe=!0,P(J))),ce},e.unstable_shouldYield=le,e.unstable_wrapCallback=function(ce){var M=H;return function(){var x=H;H=M;try{return ce.apply(this,arguments)}finally{H=x}}}})(__);p_.exports=__;var Kv=p_.exports;/**
|
|
27
|
-
* @license React
|
|
28
|
-
* react-dom.production.min.js
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the MIT license found in the
|
|
33
|
-
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var Xv=gt,Tn=Kv;function Ct(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m_=new Set,gl={};function Ms(e,t){da(e,t),da(e+"Capture",t)}function da(e,t){for(gl[e]=t,e=0;e<t.length;e++)m_.add(t[e])}var Si=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h$=Object.prototype.hasOwnProperty,Qv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Rd={},Nd={};function Zv(e){return h$.call(Nd,e)?!0:h$.call(Rd,e)?!1:Qv.test(e)?Nd[e]=!0:(Rd[e]=!0,!1)}function Jv(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ov(e,t,r,n){if(t===null||typeof t>"u"||Jv(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function $n(e,t,r,n,i,s,c){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=c}var Yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yr[e]=new $n(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yr[t]=new $n(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yr[e]=new $n(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yr[e]=new $n(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Yr[e]=new $n(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yr[e]=new $n(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yr[e]=new $n(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yr[e]=new $n(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yr[e]=new $n(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xf=/[\-:]([a-z])/g;function Qf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Xf,Qf);Yr[t]=new $n(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Xf,Qf);Yr[t]=new $n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Xf,Qf);Yr[t]=new $n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yr[e]=new $n(e,1,!1,e.toLowerCase(),null,!1,!1)});Yr.xlinkHref=new $n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yr[e]=new $n(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zf(e,t,r,n){var i=Yr.hasOwnProperty(t)?Yr[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ov(t,r,i,n)&&(r=null),n||i===null?Zv(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var zi=Xv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Zl=Symbol.for("react.element"),Ys=Symbol.for("react.portal"),Ws=Symbol.for("react.fragment"),Jf=Symbol.for("react.strict_mode"),p$=Symbol.for("react.profiler"),g_=Symbol.for("react.provider"),v_=Symbol.for("react.context"),Of=Symbol.for("react.forward_ref"),_$=Symbol.for("react.suspense"),m$=Symbol.for("react.suspense_list"),e0=Symbol.for("react.memo"),Pi=Symbol.for("react.lazy"),y_=Symbol.for("react.offscreen"),Id=Symbol.iterator;function La(e){return e===null||typeof e!="object"?null:(e=Id&&e[Id]||e["@@iterator"],typeof e=="function"?e:null)}var br=Object.assign,fc;function Ja(e){if(fc===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);fc=t&&t[1]||""}return`
|
|
35
|
-
`+fc+e}var dc=!1;function hc(e,t){if(!e||dc)return"";dc=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(h){var n=h}Reflect.construct(e,[],t)}else{try{t.call()}catch(h){n=h}e.call(t.prototype)}else{try{throw Error()}catch(h){n=h}e()}}catch(h){if(h&&n&&typeof h.stack=="string"){for(var i=h.stack.split(`
|
|
36
|
-
`),s=n.stack.split(`
|
|
37
|
-
`),c=i.length-1,f=s.length-1;1<=c&&0<=f&&i[c]!==s[f];)f--;for(;1<=c&&0<=f;c--,f--)if(i[c]!==s[f]){if(c!==1||f!==1)do if(c--,f--,0>f||i[c]!==s[f]){var p=`
|
|
38
|
-
`+i[c].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),p}while(1<=c&&0<=f);break}}}finally{dc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ja(e):""}function e2(e){switch(e.tag){case 5:return Ja(e.type);case 16:return Ja("Lazy");case 13:return Ja("Suspense");case 19:return Ja("SuspenseList");case 0:case 2:case 15:return e=hc(e.type,!1),e;case 11:return e=hc(e.type.render,!1),e;case 1:return e=hc(e.type,!0),e;default:return""}}function g$(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ws:return"Fragment";case Ys:return"Portal";case p$:return"Profiler";case Jf:return"StrictMode";case _$:return"Suspense";case m$:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case v_:return(e.displayName||"Context")+".Consumer";case g_:return(e._context.displayName||"Context")+".Provider";case Of:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case e0:return t=e.displayName||null,t!==null?t:g$(e.type)||"Memo";case Pi:t=e._payload,e=e._init;try{return g$(e(t))}catch{}}return null}function t2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return g$(t);case 8:return t===Jf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ts(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function b_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function r2(e){var t=b_(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(c){n=""+c,s.call(this,c)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(c){n=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jl(e){e._valueTracker||(e._valueTracker=r2(e))}function x_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=b_(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Po(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function v$(e,t){var r=t.checked;return br({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function qd(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ts(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function w_(e,t){t=t.checked,t!=null&&Zf(e,"checked",t,!1)}function y$(e,t){w_(e,t);var r=ts(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?b$(e,t.type,r):t.hasOwnProperty("defaultValue")&&b$(e,t.type,ts(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Md(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function b$(e,t,r){(t!=="number"||Po(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Oa=Array.isArray;function sa(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ts(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function x$(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ct(91));return br({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Dd(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(Ct(92));if(Oa(r)){if(1<r.length)throw Error(Ct(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ts(r)}}function k_(e,t){var r=ts(t.value),n=ts(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Ld(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function S_(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function w$(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?S_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ol,A_=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ol=Ol||document.createElement("div"),Ol.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ol.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var al={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},n2=["Webkit","ms","Moz","O"];Object.keys(al).forEach(function(e){n2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),al[t]=al[e]})});function E_(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||al.hasOwnProperty(e)&&al[e]?(""+t).trim():t+"px"}function C_(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=E_(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var i2=br({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function k$(e,t){if(t){if(i2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ct(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ct(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ct(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ct(62))}}function S$(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var A$=null;function t0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var E$=null,aa=null,la=null;function Fd(e){if(e=Ul(e)){if(typeof E$!="function")throw Error(Ct(280));var t=e.stateNode;t&&(t=Au(t),E$(e.stateNode,e.type,t))}}function T_(e){aa?la?la.push(e):la=[e]:aa=e}function z_(){if(aa){var e=aa,t=la;if(la=aa=null,Fd(e),t)for(e=0;e<t.length;e++)Fd(t[e])}}function R_(e,t){return e(t)}function N_(){}var pc=!1;function I_(e,t,r){if(pc)return e(t,r);pc=!0;try{return R_(e,t,r)}finally{pc=!1,(aa!==null||la!==null)&&(N_(),z_())}}function yl(e,t){var r=e.stateNode;if(r===null)return null;var n=Au(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(Ct(231,t,typeof r));return r}var C$=!1;if(Si)try{var Fa={};Object.defineProperty(Fa,"passive",{get:function(){C$=!0}}),window.addEventListener("test",Fa,Fa),window.removeEventListener("test",Fa,Fa)}catch{C$=!1}function s2(e,t,r,n,i,s,c,f,p){var h=Array.prototype.slice.call(arguments,3);try{t.apply(r,h)}catch(I){this.onError(I)}}var ll=!1,jo=null,Uo=!1,T$=null,a2={onError:function(e){ll=!0,jo=e}};function l2(e,t,r,n,i,s,c,f,p){ll=!1,jo=null,s2.apply(a2,arguments)}function o2(e,t,r,n,i,s,c,f,p){if(l2.apply(this,arguments),ll){if(ll){var h=jo;ll=!1,jo=null}else throw Error(Ct(198));Uo||(Uo=!0,T$=h)}}function Ds(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function q_(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Bd(e){if(Ds(e)!==e)throw Error(Ct(188))}function u2(e){var t=e.alternate;if(!t){if(t=Ds(e),t===null)throw Error(Ct(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===r)return Bd(i),e;if(s===n)return Bd(i),t;s=s.sibling}throw Error(Ct(188))}if(r.return!==n.return)r=i,n=s;else{for(var c=!1,f=i.child;f;){if(f===r){c=!0,r=i,n=s;break}if(f===n){c=!0,n=i,r=s;break}f=f.sibling}if(!c){for(f=s.child;f;){if(f===r){c=!0,r=s,n=i;break}if(f===n){c=!0,n=s,r=i;break}f=f.sibling}if(!c)throw Error(Ct(189))}}if(r.alternate!==n)throw Error(Ct(190))}if(r.tag!==3)throw Error(Ct(188));return r.stateNode.current===r?e:t}function M_(e){return e=u2(e),e!==null?D_(e):null}function D_(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=D_(e);if(t!==null)return t;e=e.sibling}return null}var L_=Tn.unstable_scheduleCallback,Pd=Tn.unstable_cancelCallback,c2=Tn.unstable_shouldYield,$2=Tn.unstable_requestPaint,Ar=Tn.unstable_now,f2=Tn.unstable_getCurrentPriorityLevel,r0=Tn.unstable_ImmediatePriority,F_=Tn.unstable_UserBlockingPriority,Ho=Tn.unstable_NormalPriority,d2=Tn.unstable_LowPriority,B_=Tn.unstable_IdlePriority,xu=null,ci=null;function h2(e){if(ci&&typeof ci.onCommitFiberRoot=="function")try{ci.onCommitFiberRoot(xu,e,void 0,(e.current.flags&128)===128)}catch{}}var On=Math.clz32?Math.clz32:m2,p2=Math.log,_2=Math.LN2;function m2(e){return e>>>=0,e===0?32:31-(p2(e)/_2|0)|0}var eo=64,to=4194304;function el(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Vo(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,c=r&268435455;if(c!==0){var f=c&~i;f!==0?n=el(f):(s&=c,s!==0&&(n=el(s)))}else c=r&~i,c!==0?n=el(c):s!==0&&(n=el(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-On(t),i=1<<r,n|=e[r],t&=~i;return n}function g2(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function v2(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var c=31-On(s),f=1<<c,p=i[c];p===-1?(!(f&r)||f&n)&&(i[c]=g2(f,t)):p<=t&&(e.expiredLanes|=f),s&=~f}}function z$(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function P_(){var e=eo;return eo<<=1,!(eo&4194240)&&(eo=64),e}function _c(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Pl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-On(t),e[t]=r}function y2(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-On(r),s=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~s}}function n0(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-On(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var lr=0;function j_(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var U_,i0,H_,V_,Y_,R$=!1,ro=[],Gi=null,Ki=null,Xi=null,bl=new Map,xl=new Map,Ui=[],b2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jd(e,t){switch(e){case"focusin":case"focusout":Gi=null;break;case"dragenter":case"dragleave":Ki=null;break;case"mouseover":case"mouseout":Xi=null;break;case"pointerover":case"pointerout":bl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xl.delete(t.pointerId)}}function Ba(e,t,r,n,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Ul(t),t!==null&&i0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function x2(e,t,r,n,i){switch(t){case"focusin":return Gi=Ba(Gi,e,t,r,n,i),!0;case"dragenter":return Ki=Ba(Ki,e,t,r,n,i),!0;case"mouseover":return Xi=Ba(Xi,e,t,r,n,i),!0;case"pointerover":var s=i.pointerId;return bl.set(s,Ba(bl.get(s)||null,e,t,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,xl.set(s,Ba(xl.get(s)||null,e,t,r,n,i)),!0}return!1}function W_(e){var t=xs(e.target);if(t!==null){var r=Ds(t);if(r!==null){if(t=r.tag,t===13){if(t=q_(r),t!==null){e.blockedOn=t,Y_(e.priority,function(){H_(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ao(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=N$(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);A$=n,r.target.dispatchEvent(n),A$=null}else return t=Ul(r),t!==null&&i0(t),e.blockedOn=r,!1;t.shift()}return!0}function Ud(e,t,r){Ao(e)&&r.delete(t)}function w2(){R$=!1,Gi!==null&&Ao(Gi)&&(Gi=null),Ki!==null&&Ao(Ki)&&(Ki=null),Xi!==null&&Ao(Xi)&&(Xi=null),bl.forEach(Ud),xl.forEach(Ud)}function Pa(e,t){e.blockedOn===t&&(e.blockedOn=null,R$||(R$=!0,Tn.unstable_scheduleCallback(Tn.unstable_NormalPriority,w2)))}function wl(e){function t(i){return Pa(i,e)}if(0<ro.length){Pa(ro[0],e);for(var r=1;r<ro.length;r++){var n=ro[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Gi!==null&&Pa(Gi,e),Ki!==null&&Pa(Ki,e),Xi!==null&&Pa(Xi,e),bl.forEach(t),xl.forEach(t),r=0;r<Ui.length;r++)n=Ui[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Ui.length&&(r=Ui[0],r.blockedOn===null);)W_(r),r.blockedOn===null&&Ui.shift()}var oa=zi.ReactCurrentBatchConfig,Yo=!0;function k2(e,t,r,n){var i=lr,s=oa.transition;oa.transition=null;try{lr=1,s0(e,t,r,n)}finally{lr=i,oa.transition=s}}function S2(e,t,r,n){var i=lr,s=oa.transition;oa.transition=null;try{lr=4,s0(e,t,r,n)}finally{lr=i,oa.transition=s}}function s0(e,t,r,n){if(Yo){var i=N$(e,t,r,n);if(i===null)Ac(e,t,n,Wo,r),jd(e,n);else if(x2(i,e,t,r,n))n.stopPropagation();else if(jd(e,n),t&4&&-1<b2.indexOf(e)){for(;i!==null;){var s=Ul(i);if(s!==null&&U_(s),s=N$(e,t,r,n),s===null&&Ac(e,t,n,Wo,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else Ac(e,t,n,null,r)}}var Wo=null;function N$(e,t,r,n){if(Wo=null,e=t0(n),e=xs(e),e!==null)if(t=Ds(e),t===null)e=null;else if(r=t.tag,r===13){if(e=q_(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wo=e,null}function G_(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(f2()){case r0:return 1;case F_:return 4;case Ho:case d2:return 16;case B_:return 536870912;default:return 16}default:return 16}}var Vi=null,a0=null,Eo=null;function K_(){if(Eo)return Eo;var e,t=a0,r=t.length,n,i="value"in Vi?Vi.value:Vi.textContent,s=i.length;for(e=0;e<r&&t[e]===i[e];e++);var c=r-e;for(n=1;n<=c&&t[r-n]===i[s-n];n++);return Eo=i.slice(e,1<n?1-n:void 0)}function Co(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function no(){return!0}function Hd(){return!1}function Nn(e){function t(r,n,i,s,c){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=c,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(r=e[f],this[f]=r?r(s):s[f]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?no:Hd,this.isPropagationStopped=Hd,this}return br(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=no)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=no)},persist:function(){},isPersistent:no}),t}var Sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},l0=Nn(Sa),jl=br({},Sa,{view:0,detail:0}),A2=Nn(jl),mc,gc,ja,wu=br({},jl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:o0,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ja&&(ja&&e.type==="mousemove"?(mc=e.screenX-ja.screenX,gc=e.screenY-ja.screenY):gc=mc=0,ja=e),mc)},movementY:function(e){return"movementY"in e?e.movementY:gc}}),Vd=Nn(wu),E2=br({},wu,{dataTransfer:0}),C2=Nn(E2),T2=br({},jl,{relatedTarget:0}),vc=Nn(T2),z2=br({},Sa,{animationName:0,elapsedTime:0,pseudoElement:0}),R2=Nn(z2),N2=br({},Sa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),I2=Nn(N2),q2=br({},Sa,{data:0}),Yd=Nn(q2),M2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},D2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},L2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function F2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=L2[e])?!!t[e]:!1}function o0(){return F2}var B2=br({},jl,{key:function(e){if(e.key){var t=M2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Co(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?D2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:o0,charCode:function(e){return e.type==="keypress"?Co(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Co(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),P2=Nn(B2),j2=br({},wu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wd=Nn(j2),U2=br({},jl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:o0}),H2=Nn(U2),V2=br({},Sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Y2=Nn(V2),W2=br({},wu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),G2=Nn(W2),K2=[9,13,27,32],u0=Si&&"CompositionEvent"in window,ol=null;Si&&"documentMode"in document&&(ol=document.documentMode);var X2=Si&&"TextEvent"in window&&!ol,X_=Si&&(!u0||ol&&8<ol&&11>=ol),Gd=" ",Kd=!1;function Q_(e,t){switch(e){case"keyup":return K2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Z_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gs=!1;function Q2(e,t){switch(e){case"compositionend":return Z_(t);case"keypress":return t.which!==32?null:(Kd=!0,Gd);case"textInput":return e=t.data,e===Gd&&Kd?null:e;default:return null}}function Z2(e,t){if(Gs)return e==="compositionend"||!u0&&Q_(e,t)?(e=K_(),Eo=a0=Vi=null,Gs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return X_&&t.locale!=="ko"?null:t.data;default:return null}}var J2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Xd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!J2[e.type]:t==="textarea"}function J_(e,t,r,n){T_(n),t=Go(t,"onChange"),0<t.length&&(r=new l0("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var ul=null,kl=null;function O2(e){um(e,0)}function ku(e){var t=Qs(e);if(x_(t))return e}function ey(e,t){if(e==="change")return t}var O_=!1;if(Si){var yc;if(Si){var bc="oninput"in document;if(!bc){var Qd=document.createElement("div");Qd.setAttribute("oninput","return;"),bc=typeof Qd.oninput=="function"}yc=bc}else yc=!1;O_=yc&&(!document.documentMode||9<document.documentMode)}function Zd(){ul&&(ul.detachEvent("onpropertychange",em),kl=ul=null)}function em(e){if(e.propertyName==="value"&&ku(kl)){var t=[];J_(t,kl,e,t0(e)),I_(O2,t)}}function ty(e,t,r){e==="focusin"?(Zd(),ul=t,kl=r,ul.attachEvent("onpropertychange",em)):e==="focusout"&&Zd()}function ry(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ku(kl)}function ny(e,t){if(e==="click")return ku(t)}function iy(e,t){if(e==="input"||e==="change")return ku(t)}function sy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ri=typeof Object.is=="function"?Object.is:sy;function Sl(e,t){if(ri(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!h$.call(t,i)||!ri(e[i],t[i]))return!1}return!0}function Jd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Od(e,t){var r=Jd(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Jd(r)}}function tm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rm(){for(var e=window,t=Po();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Po(e.document)}return t}function c0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ay(e){var t=rm(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&tm(r.ownerDocument.documentElement,r)){if(n!==null&&c0(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!e.extend&&s>n&&(i=n,n=s,s=i),i=Od(r,s);var c=Od(r,n);i&&c&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==c.node||e.focusOffset!==c.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(c.node,c.offset)):(t.setEnd(c.node,c.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ly=Si&&"documentMode"in document&&11>=document.documentMode,Ks=null,I$=null,cl=null,q$=!1;function eh(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;q$||Ks==null||Ks!==Po(n)||(n=Ks,"selectionStart"in n&&c0(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),cl&&Sl(cl,n)||(cl=n,n=Go(I$,"onSelect"),0<n.length&&(t=new l0("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Ks)))}function io(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Xs={animationend:io("Animation","AnimationEnd"),animationiteration:io("Animation","AnimationIteration"),animationstart:io("Animation","AnimationStart"),transitionend:io("Transition","TransitionEnd")},xc={},nm={};Si&&(nm=document.createElement("div").style,"AnimationEvent"in window||(delete Xs.animationend.animation,delete Xs.animationiteration.animation,delete Xs.animationstart.animation),"TransitionEvent"in window||delete Xs.transitionend.transition);function Su(e){if(xc[e])return xc[e];if(!Xs[e])return e;var t=Xs[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in nm)return xc[e]=t[r];return e}var im=Su("animationend"),sm=Su("animationiteration"),am=Su("animationstart"),lm=Su("transitionend"),om=new Map,th="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function us(e,t){om.set(e,t),Ms(t,[e])}for(var wc=0;wc<th.length;wc++){var kc=th[wc],oy=kc.toLowerCase(),uy=kc[0].toUpperCase()+kc.slice(1);us(oy,"on"+uy)}us(im,"onAnimationEnd");us(sm,"onAnimationIteration");us(am,"onAnimationStart");us("dblclick","onDoubleClick");us("focusin","onFocus");us("focusout","onBlur");us(lm,"onTransitionEnd");da("onMouseEnter",["mouseout","mouseover"]);da("onMouseLeave",["mouseout","mouseover"]);da("onPointerEnter",["pointerout","pointerover"]);da("onPointerLeave",["pointerout","pointerover"]);Ms("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ms("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ms("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ms("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ms("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ms("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var tl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),cy=new Set("cancel close invalid load scroll toggle".split(" ").concat(tl));function rh(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,o2(n,t,void 0,e),e.currentTarget=null}function um(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var c=n.length-1;0<=c;c--){var f=n[c],p=f.instance,h=f.currentTarget;if(f=f.listener,p!==s&&i.isPropagationStopped())break e;rh(i,f,h),s=p}else for(c=0;c<n.length;c++){if(f=n[c],p=f.instance,h=f.currentTarget,f=f.listener,p!==s&&i.isPropagationStopped())break e;rh(i,f,h),s=p}}}if(Uo)throw e=T$,Uo=!1,T$=null,e}function cr(e,t){var r=t[B$];r===void 0&&(r=t[B$]=new Set);var n=e+"__bubble";r.has(n)||(cm(t,e,2,!1),r.add(n))}function Sc(e,t,r){var n=0;t&&(n|=4),cm(r,e,n,t)}var so="_reactListening"+Math.random().toString(36).slice(2);function Al(e){if(!e[so]){e[so]=!0,m_.forEach(function(r){r!=="selectionchange"&&(cy.has(r)||Sc(r,!1,e),Sc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[so]||(t[so]=!0,Sc("selectionchange",!1,t))}}function cm(e,t,r,n){switch(G_(t)){case 1:var i=k2;break;case 4:i=S2;break;default:i=s0}r=i.bind(null,t,r,e),i=void 0,!C$||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Ac(e,t,r,n,i){var s=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var c=n.tag;if(c===3||c===4){var f=n.stateNode.containerInfo;if(f===i||f.nodeType===8&&f.parentNode===i)break;if(c===4)for(c=n.return;c!==null;){var p=c.tag;if((p===3||p===4)&&(p=c.stateNode.containerInfo,p===i||p.nodeType===8&&p.parentNode===i))return;c=c.return}for(;f!==null;){if(c=xs(f),c===null)return;if(p=c.tag,p===5||p===6){n=s=c;continue e}f=f.parentNode}}n=n.return}I_(function(){var h=s,I=t0(r),F=[];e:{var H=om.get(e);if(H!==void 0){var pe=l0,xe=e;switch(e){case"keypress":if(Co(r)===0)break e;case"keydown":case"keyup":pe=P2;break;case"focusin":xe="focus",pe=vc;break;case"focusout":xe="blur",pe=vc;break;case"beforeblur":case"afterblur":pe=vc;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pe=Vd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=C2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=H2;break;case im:case sm:case am:pe=R2;break;case lm:pe=Y2;break;case"scroll":pe=A2;break;case"wheel":pe=G2;break;case"copy":case"cut":case"paste":pe=I2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=Wd}var ne=(t&4)!==0,W=!ne&&e==="scroll",X=ne?H!==null?H+"Capture":null:H;ne=[];for(var ge=h,se;ge!==null;){se=ge;var me=se.stateNode;if(se.tag===5&&me!==null&&(se=me,X!==null&&(me=yl(ge,X),me!=null&&ne.push(El(ge,me,se)))),W)break;ge=ge.return}0<ne.length&&(H=new pe(H,xe,null,r,I),F.push({event:H,listeners:ne}))}}if(!(t&7)){e:{if(H=e==="mouseover"||e==="pointerover",pe=e==="mouseout"||e==="pointerout",H&&r!==A$&&(xe=r.relatedTarget||r.fromElement)&&(xs(xe)||xe[Ai]))break e;if((pe||H)&&(H=I.window===I?I:(H=I.ownerDocument)?H.defaultView||H.parentWindow:window,pe?(xe=r.relatedTarget||r.toElement,pe=h,xe=xe?xs(xe):null,xe!==null&&(W=Ds(xe),xe!==W||xe.tag!==5&&xe.tag!==6)&&(xe=null)):(pe=null,xe=h),pe!==xe)){if(ne=Vd,me="onMouseLeave",X="onMouseEnter",ge="mouse",(e==="pointerout"||e==="pointerover")&&(ne=Wd,me="onPointerLeave",X="onPointerEnter",ge="pointer"),W=pe==null?H:Qs(pe),se=xe==null?H:Qs(xe),H=new ne(me,ge+"leave",pe,r,I),H.target=W,H.relatedTarget=se,me=null,xs(I)===h&&(ne=new ne(X,ge+"enter",xe,r,I),ne.target=se,ne.relatedTarget=W,me=ne),W=me,pe&&xe)t:{for(ne=pe,X=xe,ge=0,se=ne;se;se=Us(se))ge++;for(se=0,me=X;me;me=Us(me))se++;for(;0<ge-se;)ne=Us(ne),ge--;for(;0<se-ge;)X=Us(X),se--;for(;ge--;){if(ne===X||X!==null&&ne===X.alternate)break t;ne=Us(ne),X=Us(X)}ne=null}else ne=null;pe!==null&&nh(F,H,pe,ne,!1),xe!==null&&W!==null&&nh(F,W,xe,ne,!0)}}e:{if(H=h?Qs(h):window,pe=H.nodeName&&H.nodeName.toLowerCase(),pe==="select"||pe==="input"&&H.type==="file")var J=ey;else if(Xd(H))if(O_)J=iy;else{J=ry;var be=ty}else(pe=H.nodeName)&&pe.toLowerCase()==="input"&&(H.type==="checkbox"||H.type==="radio")&&(J=ny);if(J&&(J=J(e,h))){J_(F,J,r,I);break e}be&&be(e,H,h),e==="focusout"&&(be=H._wrapperState)&&be.controlled&&H.type==="number"&&b$(H,"number",H.value)}switch(be=h?Qs(h):window,e){case"focusin":(Xd(be)||be.contentEditable==="true")&&(Ks=be,I$=h,cl=null);break;case"focusout":cl=I$=Ks=null;break;case"mousedown":q$=!0;break;case"contextmenu":case"mouseup":case"dragend":q$=!1,eh(F,r,I);break;case"selectionchange":if(ly)break;case"keydown":case"keyup":eh(F,r,I)}var fe;if(u0)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else Gs?Q_(e,r)&&(Ae="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Ae="onCompositionStart");Ae&&(X_&&r.locale!=="ko"&&(Gs||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&Gs&&(fe=K_()):(Vi=I,a0="value"in Vi?Vi.value:Vi.textContent,Gs=!0)),be=Go(h,Ae),0<be.length&&(Ae=new Yd(Ae,e,null,r,I),F.push({event:Ae,listeners:be}),fe?Ae.data=fe:(fe=Z_(r),fe!==null&&(Ae.data=fe)))),(fe=X2?Q2(e,r):Z2(e,r))&&(h=Go(h,"onBeforeInput"),0<h.length&&(I=new Yd("onBeforeInput","beforeinput",null,r,I),F.push({event:I,listeners:h}),I.data=fe))}um(F,t)})}function El(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Go(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=yl(e,r),s!=null&&n.unshift(El(e,s,i)),s=yl(e,t),s!=null&&n.push(El(e,s,i))),e=e.return}return n}function Us(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function nh(e,t,r,n,i){for(var s=t._reactName,c=[];r!==null&&r!==n;){var f=r,p=f.alternate,h=f.stateNode;if(p!==null&&p===n)break;f.tag===5&&h!==null&&(f=h,i?(p=yl(r,s),p!=null&&c.unshift(El(r,p,f))):i||(p=yl(r,s),p!=null&&c.push(El(r,p,f)))),r=r.return}c.length!==0&&e.push({event:t,listeners:c})}var $y=/\r\n?/g,fy=/\u0000|\uFFFD/g;function ih(e){return(typeof e=="string"?e:""+e).replace($y,`
|
|
39
|
-
`).replace(fy,"")}function ao(e,t,r){if(t=ih(t),ih(e)!==t&&r)throw Error(Ct(425))}function Ko(){}var M$=null,D$=null;function L$(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var F$=typeof setTimeout=="function"?setTimeout:void 0,dy=typeof clearTimeout=="function"?clearTimeout:void 0,sh=typeof Promise=="function"?Promise:void 0,hy=typeof queueMicrotask=="function"?queueMicrotask:typeof sh<"u"?function(e){return sh.resolve(null).then(e).catch(py)}:F$;function py(e){setTimeout(function(){throw e})}function Ec(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),wl(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);wl(t)}function Qi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ah(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Aa=Math.random().toString(36).slice(2),li="__reactFiber$"+Aa,Cl="__reactProps$"+Aa,Ai="__reactContainer$"+Aa,B$="__reactEvents$"+Aa,_y="__reactListeners$"+Aa,my="__reactHandles$"+Aa;function xs(e){var t=e[li];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ai]||r[li]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=ah(e);e!==null;){if(r=e[li])return r;e=ah(e)}return t}e=r,r=e.parentNode}return null}function Ul(e){return e=e[li]||e[Ai],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ct(33))}function Au(e){return e[Cl]||null}var P$=[],Zs=-1;function cs(e){return{current:e}}function fr(e){0>Zs||(e.current=P$[Zs],P$[Zs]=null,Zs--)}function ur(e,t){Zs++,P$[Zs]=e.current,e.current=t}var rs={},Or=cs(rs),mn=cs(!1),Es=rs;function ha(e,t){var r=e.type.contextTypes;if(!r)return rs;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function gn(e){return e=e.childContextTypes,e!=null}function Xo(){fr(mn),fr(Or)}function lh(e,t,r){if(Or.current!==rs)throw Error(Ct(168));ur(Or,t),ur(mn,r)}function $m(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(Ct(108,t2(e)||"Unknown",i));return br({},r,n)}function Qo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rs,Es=Or.current,ur(Or,e),ur(mn,mn.current),!0}function oh(e,t,r){var n=e.stateNode;if(!n)throw Error(Ct(169));r?(e=$m(e,t,Es),n.__reactInternalMemoizedMergedChildContext=e,fr(mn),fr(Or),ur(Or,e)):fr(mn),ur(mn,r)}var vi=null,Eu=!1,Cc=!1;function fm(e){vi===null?vi=[e]:vi.push(e)}function gy(e){Eu=!0,fm(e)}function $s(){if(!Cc&&vi!==null){Cc=!0;var e=0,t=lr;try{var r=vi;for(lr=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}vi=null,Eu=!1}catch(i){throw vi!==null&&(vi=vi.slice(e+1)),L_(r0,$s),i}finally{lr=t,Cc=!1}}return null}var Js=[],Os=0,Zo=null,Jo=0,Ln=[],Fn=0,Cs=null,bi=1,xi="";function gs(e,t){Js[Os++]=Jo,Js[Os++]=Zo,Zo=e,Jo=t}function dm(e,t,r){Ln[Fn++]=bi,Ln[Fn++]=xi,Ln[Fn++]=Cs,Cs=e;var n=bi;e=xi;var i=32-On(n)-1;n&=~(1<<i),r+=1;var s=32-On(t)+i;if(30<s){var c=i-i%5;s=(n&(1<<c)-1).toString(32),n>>=c,i-=c,bi=1<<32-On(t)+i|r<<i|n,xi=s+e}else bi=1<<s|r<<i|n,xi=e}function $0(e){e.return!==null&&(gs(e,1),dm(e,1,0))}function f0(e){for(;e===Zo;)Zo=Js[--Os],Js[Os]=null,Jo=Js[--Os],Js[Os]=null;for(;e===Cs;)Cs=Ln[--Fn],Ln[Fn]=null,xi=Ln[--Fn],Ln[Fn]=null,bi=Ln[--Fn],Ln[Fn]=null}var An=null,kn=null,dr=!1,Qn=null;function hm(e,t){var r=Bn(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function uh(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,An=e,kn=Qi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,An=e,kn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Cs!==null?{id:bi,overflow:xi}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Bn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,An=e,kn=null,!0):!1;default:return!1}}function j$(e){return(e.mode&1)!==0&&(e.flags&128)===0}function U$(e){if(dr){var t=kn;if(t){var r=t;if(!uh(e,t)){if(j$(e))throw Error(Ct(418));t=Qi(r.nextSibling);var n=An;t&&uh(e,t)?hm(n,r):(e.flags=e.flags&-4097|2,dr=!1,An=e)}}else{if(j$(e))throw Error(Ct(418));e.flags=e.flags&-4097|2,dr=!1,An=e}}}function ch(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;An=e}function lo(e){if(e!==An)return!1;if(!dr)return ch(e),dr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!L$(e.type,e.memoizedProps)),t&&(t=kn)){if(j$(e))throw pm(),Error(Ct(418));for(;t;)hm(e,t),t=Qi(t.nextSibling)}if(ch(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ct(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){kn=Qi(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}kn=null}}else kn=An?Qi(e.stateNode.nextSibling):null;return!0}function pm(){for(var e=kn;e;)e=Qi(e.nextSibling)}function pa(){kn=An=null,dr=!1}function d0(e){Qn===null?Qn=[e]:Qn.push(e)}var vy=zi.ReactCurrentBatchConfig;function Ua(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(Ct(309));var n=r.stateNode}if(!n)throw Error(Ct(147,e));var i=n,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(c){var f=i.refs;c===null?delete f[s]:f[s]=c},t._stringRef=s,t)}if(typeof e!="string")throw Error(Ct(284));if(!r._owner)throw Error(Ct(290,e))}return e}function oo(e,t){throw e=Object.prototype.toString.call(t),Error(Ct(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function $h(e){var t=e._init;return t(e._payload)}function _m(e){function t(X,ge){if(e){var se=X.deletions;se===null?(X.deletions=[ge],X.flags|=16):se.push(ge)}}function r(X,ge){if(!e)return null;for(;ge!==null;)t(X,ge),ge=ge.sibling;return null}function n(X,ge){for(X=new Map;ge!==null;)ge.key!==null?X.set(ge.key,ge):X.set(ge.index,ge),ge=ge.sibling;return X}function i(X,ge){return X=es(X,ge),X.index=0,X.sibling=null,X}function s(X,ge,se){return X.index=se,e?(se=X.alternate,se!==null?(se=se.index,se<ge?(X.flags|=2,ge):se):(X.flags|=2,ge)):(X.flags|=1048576,ge)}function c(X){return e&&X.alternate===null&&(X.flags|=2),X}function f(X,ge,se,me){return ge===null||ge.tag!==6?(ge=Mc(se,X.mode,me),ge.return=X,ge):(ge=i(ge,se),ge.return=X,ge)}function p(X,ge,se,me){var J=se.type;return J===Ws?I(X,ge,se.props.children,me,se.key):ge!==null&&(ge.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Pi&&$h(J)===ge.type)?(me=i(ge,se.props),me.ref=Ua(X,ge,se),me.return=X,me):(me=Mo(se.type,se.key,se.props,null,X.mode,me),me.ref=Ua(X,ge,se),me.return=X,me)}function h(X,ge,se,me){return ge===null||ge.tag!==4||ge.stateNode.containerInfo!==se.containerInfo||ge.stateNode.implementation!==se.implementation?(ge=Dc(se,X.mode,me),ge.return=X,ge):(ge=i(ge,se.children||[]),ge.return=X,ge)}function I(X,ge,se,me,J){return ge===null||ge.tag!==7?(ge=As(se,X.mode,me,J),ge.return=X,ge):(ge=i(ge,se),ge.return=X,ge)}function F(X,ge,se){if(typeof ge=="string"&&ge!==""||typeof ge=="number")return ge=Mc(""+ge,X.mode,se),ge.return=X,ge;if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case Zl:return se=Mo(ge.type,ge.key,ge.props,null,X.mode,se),se.ref=Ua(X,null,ge),se.return=X,se;case Ys:return ge=Dc(ge,X.mode,se),ge.return=X,ge;case Pi:var me=ge._init;return F(X,me(ge._payload),se)}if(Oa(ge)||La(ge))return ge=As(ge,X.mode,se,null),ge.return=X,ge;oo(X,ge)}return null}function H(X,ge,se,me){var J=ge!==null?ge.key:null;if(typeof se=="string"&&se!==""||typeof se=="number")return J!==null?null:f(X,ge,""+se,me);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case Zl:return se.key===J?p(X,ge,se,me):null;case Ys:return se.key===J?h(X,ge,se,me):null;case Pi:return J=se._init,H(X,ge,J(se._payload),me)}if(Oa(se)||La(se))return J!==null?null:I(X,ge,se,me,null);oo(X,se)}return null}function pe(X,ge,se,me,J){if(typeof me=="string"&&me!==""||typeof me=="number")return X=X.get(se)||null,f(ge,X,""+me,J);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case Zl:return X=X.get(me.key===null?se:me.key)||null,p(ge,X,me,J);case Ys:return X=X.get(me.key===null?se:me.key)||null,h(ge,X,me,J);case Pi:var be=me._init;return pe(X,ge,se,be(me._payload),J)}if(Oa(me)||La(me))return X=X.get(se)||null,I(ge,X,me,J,null);oo(ge,me)}return null}function xe(X,ge,se,me){for(var J=null,be=null,fe=ge,Ae=ge=0,O=null;fe!==null&&Ae<se.length;Ae++){fe.index>Ae?(O=fe,fe=null):O=fe.sibling;var Ee=H(X,fe,se[Ae],me);if(Ee===null){fe===null&&(fe=O);break}e&&fe&&Ee.alternate===null&&t(X,fe),ge=s(Ee,ge,Ae),be===null?J=Ee:be.sibling=Ee,be=Ee,fe=O}if(Ae===se.length)return r(X,fe),dr&&gs(X,Ae),J;if(fe===null){for(;Ae<se.length;Ae++)fe=F(X,se[Ae],me),fe!==null&&(ge=s(fe,ge,Ae),be===null?J=fe:be.sibling=fe,be=fe);return dr&&gs(X,Ae),J}for(fe=n(X,fe);Ae<se.length;Ae++)O=pe(fe,X,Ae,se[Ae],me),O!==null&&(e&&O.alternate!==null&&fe.delete(O.key===null?Ae:O.key),ge=s(O,ge,Ae),be===null?J=O:be.sibling=O,be=O);return e&&fe.forEach(function(le){return t(X,le)}),dr&&gs(X,Ae),J}function ne(X,ge,se,me){var J=La(se);if(typeof J!="function")throw Error(Ct(150));if(se=J.call(se),se==null)throw Error(Ct(151));for(var be=J=null,fe=ge,Ae=ge=0,O=null,Ee=se.next();fe!==null&&!Ee.done;Ae++,Ee=se.next()){fe.index>Ae?(O=fe,fe=null):O=fe.sibling;var le=H(X,fe,Ee.value,me);if(le===null){fe===null&&(fe=O);break}e&&fe&&le.alternate===null&&t(X,fe),ge=s(le,ge,Ae),be===null?J=le:be.sibling=le,be=le,fe=O}if(Ee.done)return r(X,fe),dr&&gs(X,Ae),J;if(fe===null){for(;!Ee.done;Ae++,Ee=se.next())Ee=F(X,Ee.value,me),Ee!==null&&(ge=s(Ee,ge,Ae),be===null?J=Ee:be.sibling=Ee,be=Ee);return dr&&gs(X,Ae),J}for(fe=n(X,fe);!Ee.done;Ae++,Ee=se.next())Ee=pe(fe,X,Ae,Ee.value,me),Ee!==null&&(e&&Ee.alternate!==null&&fe.delete(Ee.key===null?Ae:Ee.key),ge=s(Ee,ge,Ae),be===null?J=Ee:be.sibling=Ee,be=Ee);return e&&fe.forEach(function(w){return t(X,w)}),dr&&gs(X,Ae),J}function W(X,ge,se,me){if(typeof se=="object"&&se!==null&&se.type===Ws&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case Zl:e:{for(var J=se.key,be=ge;be!==null;){if(be.key===J){if(J=se.type,J===Ws){if(be.tag===7){r(X,be.sibling),ge=i(be,se.props.children),ge.return=X,X=ge;break e}}else if(be.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Pi&&$h(J)===be.type){r(X,be.sibling),ge=i(be,se.props),ge.ref=Ua(X,be,se),ge.return=X,X=ge;break e}r(X,be);break}else t(X,be);be=be.sibling}se.type===Ws?(ge=As(se.props.children,X.mode,me,se.key),ge.return=X,X=ge):(me=Mo(se.type,se.key,se.props,null,X.mode,me),me.ref=Ua(X,ge,se),me.return=X,X=me)}return c(X);case Ys:e:{for(be=se.key;ge!==null;){if(ge.key===be)if(ge.tag===4&&ge.stateNode.containerInfo===se.containerInfo&&ge.stateNode.implementation===se.implementation){r(X,ge.sibling),ge=i(ge,se.children||[]),ge.return=X,X=ge;break e}else{r(X,ge);break}else t(X,ge);ge=ge.sibling}ge=Dc(se,X.mode,me),ge.return=X,X=ge}return c(X);case Pi:return be=se._init,W(X,ge,be(se._payload),me)}if(Oa(se))return xe(X,ge,se,me);if(La(se))return ne(X,ge,se,me);oo(X,se)}return typeof se=="string"&&se!==""||typeof se=="number"?(se=""+se,ge!==null&&ge.tag===6?(r(X,ge.sibling),ge=i(ge,se),ge.return=X,X=ge):(r(X,ge),ge=Mc(se,X.mode,me),ge.return=X,X=ge),c(X)):r(X,ge)}return W}var _a=_m(!0),mm=_m(!1),Oo=cs(null),eu=null,ea=null,h0=null;function p0(){h0=ea=eu=null}function _0(e){var t=Oo.current;fr(Oo),e._currentValue=t}function H$(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function ua(e,t){eu=e,h0=ea=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_n=!0),e.firstContext=null)}function Un(e){var t=e._currentValue;if(h0!==e)if(e={context:e,memoizedValue:t,next:null},ea===null){if(eu===null)throw Error(Ct(308));ea=e,eu.dependencies={lanes:0,firstContext:e}}else ea=ea.next=e;return t}var ws=null;function m0(e){ws===null?ws=[e]:ws.push(e)}function gm(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,m0(t)):(r.next=i.next,i.next=r),t.interleaved=r,Ei(e,n)}function Ei(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ji=!1;function g0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function wi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zi(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,rr&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Ei(e,r)}return i=n.interleaved,i===null?(t.next=t,m0(n)):(t.next=i.next,i.next=t),n.interleaved=t,Ei(e,r)}function To(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,n0(e,r)}}function fh(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var c={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=c:s=s.next=c,r=r.next}while(r!==null);s===null?i=s=t:s=s.next=t}else i=s=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function tu(e,t,r,n){var i=e.updateQueue;ji=!1;var s=i.firstBaseUpdate,c=i.lastBaseUpdate,f=i.shared.pending;if(f!==null){i.shared.pending=null;var p=f,h=p.next;p.next=null,c===null?s=h:c.next=h,c=p;var I=e.alternate;I!==null&&(I=I.updateQueue,f=I.lastBaseUpdate,f!==c&&(f===null?I.firstBaseUpdate=h:f.next=h,I.lastBaseUpdate=p))}if(s!==null){var F=i.baseState;c=0,I=h=p=null,f=s;do{var H=f.lane,pe=f.eventTime;if((n&H)===H){I!==null&&(I=I.next={eventTime:pe,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var xe=e,ne=f;switch(H=t,pe=r,ne.tag){case 1:if(xe=ne.payload,typeof xe=="function"){F=xe.call(pe,F,H);break e}F=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=ne.payload,H=typeof xe=="function"?xe.call(pe,F,H):xe,H==null)break e;F=br({},F,H);break e;case 2:ji=!0}}f.callback!==null&&f.lane!==0&&(e.flags|=64,H=i.effects,H===null?i.effects=[f]:H.push(f))}else pe={eventTime:pe,lane:H,tag:f.tag,payload:f.payload,callback:f.callback,next:null},I===null?(h=I=pe,p=F):I=I.next=pe,c|=H;if(f=f.next,f===null){if(f=i.shared.pending,f===null)break;H=f,f=H.next,H.next=null,i.lastBaseUpdate=H,i.shared.pending=null}}while(!0);if(I===null&&(p=F),i.baseState=p,i.firstBaseUpdate=h,i.lastBaseUpdate=I,t=i.shared.interleaved,t!==null){i=t;do c|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);zs|=c,e.lanes=c,e.memoizedState=F}}function dh(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(Ct(191,i));i.call(n)}}}var Hl={},$i=cs(Hl),Tl=cs(Hl),zl=cs(Hl);function ks(e){if(e===Hl)throw Error(Ct(174));return e}function v0(e,t){switch(ur(zl,t),ur(Tl,e),ur($i,Hl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:w$(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=w$(t,e)}fr($i),ur($i,t)}function ma(){fr($i),fr(Tl),fr(zl)}function ym(e){ks(zl.current);var t=ks($i.current),r=w$(t,e.type);t!==r&&(ur(Tl,e),ur($i,r))}function y0(e){Tl.current===e&&(fr($i),fr(Tl))}var gr=cs(0);function ru(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Tc=[];function b0(){for(var e=0;e<Tc.length;e++)Tc[e]._workInProgressVersionPrimary=null;Tc.length=0}var zo=zi.ReactCurrentDispatcher,zc=zi.ReactCurrentBatchConfig,Ts=0,yr=null,qr=null,Br=null,nu=!1,$l=!1,Rl=0,yy=0;function Kr(){throw Error(Ct(321))}function x0(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ri(e[r],t[r]))return!1;return!0}function w0(e,t,r,n,i,s){if(Ts=s,yr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,zo.current=e===null||e.memoizedState===null?ky:Sy,e=r(n,i),$l){s=0;do{if($l=!1,Rl=0,25<=s)throw Error(Ct(301));s+=1,Br=qr=null,t.updateQueue=null,zo.current=Ay,e=r(n,i)}while($l)}if(zo.current=iu,t=qr!==null&&qr.next!==null,Ts=0,Br=qr=yr=null,nu=!1,t)throw Error(Ct(300));return e}function k0(){var e=Rl!==0;return Rl=0,e}function si(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Br===null?yr.memoizedState=Br=e:Br=Br.next=e,Br}function Hn(){if(qr===null){var e=yr.alternate;e=e!==null?e.memoizedState:null}else e=qr.next;var t=Br===null?yr.memoizedState:Br.next;if(t!==null)Br=t,qr=e;else{if(e===null)throw Error(Ct(310));qr=e,e={memoizedState:qr.memoizedState,baseState:qr.baseState,baseQueue:qr.baseQueue,queue:qr.queue,next:null},Br===null?yr.memoizedState=Br=e:Br=Br.next=e}return Br}function Nl(e,t){return typeof t=="function"?t(e):t}function Rc(e){var t=Hn(),r=t.queue;if(r===null)throw Error(Ct(311));r.lastRenderedReducer=e;var n=qr,i=n.baseQueue,s=r.pending;if(s!==null){if(i!==null){var c=i.next;i.next=s.next,s.next=c}n.baseQueue=i=s,r.pending=null}if(i!==null){s=i.next,n=n.baseState;var f=c=null,p=null,h=s;do{var I=h.lane;if((Ts&I)===I)p!==null&&(p=p.next={lane:0,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null}),n=h.hasEagerState?h.eagerState:e(n,h.action);else{var F={lane:I,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null};p===null?(f=p=F,c=n):p=p.next=F,yr.lanes|=I,zs|=I}h=h.next}while(h!==null&&h!==s);p===null?c=n:p.next=f,ri(n,t.memoizedState)||(_n=!0),t.memoizedState=n,t.baseState=c,t.baseQueue=p,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do s=i.lane,yr.lanes|=s,zs|=s,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Nc(e){var t=Hn(),r=t.queue;if(r===null)throw Error(Ct(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,s=t.memoizedState;if(i!==null){r.pending=null;var c=i=i.next;do s=e(s,c.action),c=c.next;while(c!==i);ri(s,t.memoizedState)||(_n=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function bm(){}function xm(e,t){var r=yr,n=Hn(),i=t(),s=!ri(n.memoizedState,i);if(s&&(n.memoizedState=i,_n=!0),n=n.queue,S0(Sm.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||Br!==null&&Br.memoizedState.tag&1){if(r.flags|=2048,Il(9,km.bind(null,r,n,i,t),void 0,null),Pr===null)throw Error(Ct(349));Ts&30||wm(r,t,i)}return i}function wm(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=yr.updateQueue,t===null?(t={lastEffect:null,stores:null},yr.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function km(e,t,r,n){t.value=r,t.getSnapshot=n,Am(t)&&Em(e)}function Sm(e,t,r){return r(function(){Am(t)&&Em(e)})}function Am(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ri(e,r)}catch{return!0}}function Em(e){var t=Ei(e,1);t!==null&&ei(t,e,1,-1)}function hh(e){var t=si();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Nl,lastRenderedState:e},t.queue=e,e=e.dispatch=wy.bind(null,yr,e),[t.memoizedState,e]}function Il(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=yr.updateQueue,t===null?(t={lastEffect:null,stores:null},yr.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function Cm(){return Hn().memoizedState}function Ro(e,t,r,n){var i=si();yr.flags|=e,i.memoizedState=Il(1|t,r,void 0,n===void 0?null:n)}function Cu(e,t,r,n){var i=Hn();n=n===void 0?null:n;var s=void 0;if(qr!==null){var c=qr.memoizedState;if(s=c.destroy,n!==null&&x0(n,c.deps)){i.memoizedState=Il(t,r,s,n);return}}yr.flags|=e,i.memoizedState=Il(1|t,r,s,n)}function ph(e,t){return Ro(8390656,8,e,t)}function S0(e,t){return Cu(2048,8,e,t)}function Tm(e,t){return Cu(4,2,e,t)}function zm(e,t){return Cu(4,4,e,t)}function Rm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Nm(e,t,r){return r=r!=null?r.concat([e]):null,Cu(4,4,Rm.bind(null,t,e),r)}function A0(){}function Im(e,t){var r=Hn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&x0(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function qm(e,t){var r=Hn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&x0(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Mm(e,t,r){return Ts&21?(ri(r,t)||(r=P_(),yr.lanes|=r,zs|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,_n=!0),e.memoizedState=r)}function by(e,t){var r=lr;lr=r!==0&&4>r?r:4,e(!0);var n=zc.transition;zc.transition={};try{e(!1),t()}finally{lr=r,zc.transition=n}}function Dm(){return Hn().memoizedState}function xy(e,t,r){var n=Oi(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Lm(e))Fm(t,r);else if(r=gm(e,t,r,n),r!==null){var i=ln();ei(r,e,n,i),Bm(r,t,n)}}function wy(e,t,r){var n=Oi(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Lm(e))Fm(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var c=t.lastRenderedState,f=s(c,r);if(i.hasEagerState=!0,i.eagerState=f,ri(f,c)){var p=t.interleaved;p===null?(i.next=i,m0(t)):(i.next=p.next,p.next=i),t.interleaved=i;return}}catch{}finally{}r=gm(e,t,i,n),r!==null&&(i=ln(),ei(r,e,n,i),Bm(r,t,n))}}function Lm(e){var t=e.alternate;return e===yr||t!==null&&t===yr}function Fm(e,t){$l=nu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Bm(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,n0(e,r)}}var iu={readContext:Un,useCallback:Kr,useContext:Kr,useEffect:Kr,useImperativeHandle:Kr,useInsertionEffect:Kr,useLayoutEffect:Kr,useMemo:Kr,useReducer:Kr,useRef:Kr,useState:Kr,useDebugValue:Kr,useDeferredValue:Kr,useTransition:Kr,useMutableSource:Kr,useSyncExternalStore:Kr,useId:Kr,unstable_isNewReconciler:!1},ky={readContext:Un,useCallback:function(e,t){return si().memoizedState=[e,t===void 0?null:t],e},useContext:Un,useEffect:ph,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ro(4194308,4,Rm.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ro(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ro(4,2,e,t)},useMemo:function(e,t){var r=si();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=si();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=xy.bind(null,yr,e),[n.memoizedState,e]},useRef:function(e){var t=si();return e={current:e},t.memoizedState=e},useState:hh,useDebugValue:A0,useDeferredValue:function(e){return si().memoizedState=e},useTransition:function(){var e=hh(!1),t=e[0];return e=by.bind(null,e[1]),si().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=yr,i=si();if(dr){if(r===void 0)throw Error(Ct(407));r=r()}else{if(r=t(),Pr===null)throw Error(Ct(349));Ts&30||wm(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,ph(Sm.bind(null,n,s,e),[e]),n.flags|=2048,Il(9,km.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=si(),t=Pr.identifierPrefix;if(dr){var r=xi,n=bi;r=(n&~(1<<32-On(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Rl++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=yy++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Sy={readContext:Un,useCallback:Im,useContext:Un,useEffect:S0,useImperativeHandle:Nm,useInsertionEffect:Tm,useLayoutEffect:zm,useMemo:qm,useReducer:Rc,useRef:Cm,useState:function(){return Rc(Nl)},useDebugValue:A0,useDeferredValue:function(e){var t=Hn();return Mm(t,qr.memoizedState,e)},useTransition:function(){var e=Rc(Nl)[0],t=Hn().memoizedState;return[e,t]},useMutableSource:bm,useSyncExternalStore:xm,useId:Dm,unstable_isNewReconciler:!1},Ay={readContext:Un,useCallback:Im,useContext:Un,useEffect:S0,useImperativeHandle:Nm,useInsertionEffect:Tm,useLayoutEffect:zm,useMemo:qm,useReducer:Nc,useRef:Cm,useState:function(){return Nc(Nl)},useDebugValue:A0,useDeferredValue:function(e){var t=Hn();return qr===null?t.memoizedState=e:Mm(t,qr.memoizedState,e)},useTransition:function(){var e=Nc(Nl)[0],t=Hn().memoizedState;return[e,t]},useMutableSource:bm,useSyncExternalStore:xm,useId:Dm,unstable_isNewReconciler:!1};function Kn(e,t){if(e&&e.defaultProps){t=br({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function V$(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:br({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Tu={isMounted:function(e){return(e=e._reactInternals)?Ds(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=ln(),i=Oi(e),s=wi(n,i);s.payload=t,r!=null&&(s.callback=r),t=Zi(e,s,i),t!==null&&(ei(t,e,i,n),To(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=ln(),i=Oi(e),s=wi(n,i);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=Zi(e,s,i),t!==null&&(ei(t,e,i,n),To(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ln(),n=Oi(e),i=wi(r,n);i.tag=2,t!=null&&(i.callback=t),t=Zi(e,i,n),t!==null&&(ei(t,e,n,r),To(t,e,n))}};function _h(e,t,r,n,i,s,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,c):t.prototype&&t.prototype.isPureReactComponent?!Sl(r,n)||!Sl(i,s):!0}function Pm(e,t,r){var n=!1,i=rs,s=t.contextType;return typeof s=="object"&&s!==null?s=Un(s):(i=gn(t)?Es:Or.current,n=t.contextTypes,s=(n=n!=null)?ha(e,i):rs),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Tu,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function mh(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Tu.enqueueReplaceState(t,t.state,null)}function Y$(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},g0(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Un(s):(s=gn(t)?Es:Or.current,i.context=ha(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(V$(e,t,s,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Tu.enqueueReplaceState(i,i.state,null),tu(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ga(e,t){try{var r="",n=t;do r+=e2(n),n=n.return;while(n);var i=r}catch(s){i=`
|
|
40
|
-
Error generating stack: `+s.message+`
|
|
41
|
-
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function Ic(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function W$(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Ey=typeof WeakMap=="function"?WeakMap:Map;function jm(e,t,r){r=wi(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){au||(au=!0,rf=n),W$(e,t)},r}function Um(e,t,r){r=wi(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){W$(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){W$(e,t),typeof n!="function"&&(Ji===null?Ji=new Set([this]):Ji.add(this));var c=t.stack;this.componentDidCatch(t.value,{componentStack:c!==null?c:""})}),r}function gh(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new Ey;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=jy.bind(null,e,t,r),t.then(e,e))}function vh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function yh(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=wi(-1,1),t.tag=2,Zi(r,t,1))),r.lanes|=1),e)}var Cy=zi.ReactCurrentOwner,_n=!1;function nn(e,t,r,n){t.child=e===null?mm(t,null,r,n):_a(t,e.child,r,n)}function bh(e,t,r,n,i){r=r.render;var s=t.ref;return ua(t,i),n=w0(e,t,r,n,s,i),r=k0(),e!==null&&!_n?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ci(e,t,i)):(dr&&r&&$0(t),t.flags|=1,nn(e,t,n,i),t.child)}function xh(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!q0(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,Hm(e,t,s,n,i)):(e=Mo(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var c=s.memoizedProps;if(r=r.compare,r=r!==null?r:Sl,r(c,n)&&e.ref===t.ref)return Ci(e,t,i)}return t.flags|=1,e=es(s,n),e.ref=t.ref,e.return=t,t.child=e}function Hm(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(Sl(s,n)&&e.ref===t.ref)if(_n=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(_n=!0);else return t.lanes=e.lanes,Ci(e,t,i)}return G$(e,t,r,n,i)}function Vm(e,t,r){var n=t.pendingProps,i=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ur(ra,xn),xn|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ur(ra,xn),xn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,ur(ra,xn),xn|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,ur(ra,xn),xn|=n;return nn(e,t,i,r),t.child}function Ym(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function G$(e,t,r,n,i){var s=gn(r)?Es:Or.current;return s=ha(t,s),ua(t,i),r=w0(e,t,r,n,s,i),n=k0(),e!==null&&!_n?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ci(e,t,i)):(dr&&n&&$0(t),t.flags|=1,nn(e,t,r,i),t.child)}function wh(e,t,r,n,i){if(gn(r)){var s=!0;Qo(t)}else s=!1;if(ua(t,i),t.stateNode===null)No(e,t),Pm(t,r,n),Y$(t,r,n,i),n=!0;else if(e===null){var c=t.stateNode,f=t.memoizedProps;c.props=f;var p=c.context,h=r.contextType;typeof h=="object"&&h!==null?h=Un(h):(h=gn(r)?Es:Or.current,h=ha(t,h));var I=r.getDerivedStateFromProps,F=typeof I=="function"||typeof c.getSnapshotBeforeUpdate=="function";F||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==n||p!==h)&&mh(t,c,n,h),ji=!1;var H=t.memoizedState;c.state=H,tu(t,n,c,i),p=t.memoizedState,f!==n||H!==p||mn.current||ji?(typeof I=="function"&&(V$(t,r,I,n),p=t.memoizedState),(f=ji||_h(t,r,f,n,H,p,h))?(F||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=p),c.props=n,c.state=p,c.context=h,n=f):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{c=t.stateNode,vm(e,t),f=t.memoizedProps,h=t.type===t.elementType?f:Kn(t.type,f),c.props=h,F=t.pendingProps,H=c.context,p=r.contextType,typeof p=="object"&&p!==null?p=Un(p):(p=gn(r)?Es:Or.current,p=ha(t,p));var pe=r.getDerivedStateFromProps;(I=typeof pe=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==F||H!==p)&&mh(t,c,n,p),ji=!1,H=t.memoizedState,c.state=H,tu(t,n,c,i);var xe=t.memoizedState;f!==F||H!==xe||mn.current||ji?(typeof pe=="function"&&(V$(t,r,pe,n),xe=t.memoizedState),(h=ji||_h(t,r,h,n,H,xe,p)||!1)?(I||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(n,xe,p),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(n,xe,p)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=xe),c.props=n,c.state=xe,c.context=p,n=h):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),n=!1)}return K$(e,t,r,n,s,i)}function K$(e,t,r,n,i,s){Ym(e,t);var c=(t.flags&128)!==0;if(!n&&!c)return i&&oh(t,r,!1),Ci(e,t,s);n=t.stateNode,Cy.current=t;var f=c&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&c?(t.child=_a(t,e.child,null,s),t.child=_a(t,null,f,s)):nn(e,t,f,s),t.memoizedState=n.state,i&&oh(t,r,!0),t.child}function Wm(e){var t=e.stateNode;t.pendingContext?lh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&lh(e,t.context,!1),v0(e,t.containerInfo)}function kh(e,t,r,n,i){return pa(),d0(i),t.flags|=256,nn(e,t,r,n),t.child}var X$={dehydrated:null,treeContext:null,retryLane:0};function Q$(e){return{baseLanes:e,cachePool:null,transitions:null}}function Gm(e,t,r){var n=t.pendingProps,i=gr.current,s=!1,c=(t.flags&128)!==0,f;if((f=c)||(f=e!==null&&e.memoizedState===null?!1:(i&2)!==0),f?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ur(gr,i&1),e===null)return U$(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(c=n.children,e=n.fallback,s?(n=t.mode,s=t.child,c={mode:"hidden",children:c},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=c):s=Nu(c,n,0,null),e=As(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Q$(r),t.memoizedState=X$,e):E0(t,c));if(i=e.memoizedState,i!==null&&(f=i.dehydrated,f!==null))return Ty(e,t,c,n,f,i,r);if(s){s=n.fallback,c=t.mode,i=e.child,f=i.sibling;var p={mode:"hidden",children:n.children};return!(c&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=p,t.deletions=null):(n=es(i,p),n.subtreeFlags=i.subtreeFlags&14680064),f!==null?s=es(f,s):(s=As(s,c,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,c=e.child.memoizedState,c=c===null?Q$(r):{baseLanes:c.baseLanes|r,cachePool:null,transitions:c.transitions},s.memoizedState=c,s.childLanes=e.childLanes&~r,t.memoizedState=X$,n}return s=e.child,e=s.sibling,n=es(s,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function E0(e,t){return t=Nu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function uo(e,t,r,n){return n!==null&&d0(n),_a(t,e.child,null,r),e=E0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ty(e,t,r,n,i,s,c){if(r)return t.flags&256?(t.flags&=-257,n=Ic(Error(Ct(422))),uo(e,t,c,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=Nu({mode:"visible",children:n.children},i,0,null),s=As(s,i,c,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&_a(t,e.child,null,c),t.child.memoizedState=Q$(c),t.memoizedState=X$,s);if(!(t.mode&1))return uo(e,t,c,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var f=n.dgst;return n=f,s=Error(Ct(419)),n=Ic(s,n,void 0),uo(e,t,c,n)}if(f=(c&e.childLanes)!==0,_n||f){if(n=Pr,n!==null){switch(c&-c){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|c)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Ei(e,i),ei(n,e,i,-1))}return I0(),n=Ic(Error(Ct(421))),uo(e,t,c,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Uy.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,kn=Qi(i.nextSibling),An=t,dr=!0,Qn=null,e!==null&&(Ln[Fn++]=bi,Ln[Fn++]=xi,Ln[Fn++]=Cs,bi=e.id,xi=e.overflow,Cs=t),t=E0(t,n.children),t.flags|=4096,t)}function Sh(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),H$(e.return,t,r)}function qc(e,t,r,n,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function Km(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(nn(e,t,n.children,r),n=gr.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sh(e,r,t);else if(e.tag===19)Sh(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ur(gr,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&ru(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),qc(t,!1,i,r,s);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ru(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}qc(t,!0,r,null,s);break;case"together":qc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function No(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ci(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),zs|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ct(153));if(t.child!==null){for(e=t.child,r=es(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=es(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function zy(e,t,r){switch(t.tag){case 3:Wm(t),pa();break;case 5:ym(t);break;case 1:gn(t.type)&&Qo(t);break;case 4:v0(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ur(Oo,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ur(gr,gr.current&1),t.flags|=128,null):r&t.child.childLanes?Gm(e,t,r):(ur(gr,gr.current&1),e=Ci(e,t,r),e!==null?e.sibling:null);ur(gr,gr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return Km(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ur(gr,gr.current),n)break;return null;case 22:case 23:return t.lanes=0,Vm(e,t,r)}return Ci(e,t,r)}var Xm,Z$,Qm,Zm;Xm=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Z$=function(){};Qm=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,ks($i.current);var s=null;switch(r){case"input":i=v$(e,i),n=v$(e,n),s=[];break;case"select":i=br({},i,{value:void 0}),n=br({},n,{value:void 0}),s=[];break;case"textarea":i=x$(e,i),n=x$(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Ko)}k$(r,n);var c;r=null;for(h in i)if(!n.hasOwnProperty(h)&&i.hasOwnProperty(h)&&i[h]!=null)if(h==="style"){var f=i[h];for(c in f)f.hasOwnProperty(c)&&(r||(r={}),r[c]="")}else h!=="dangerouslySetInnerHTML"&&h!=="children"&&h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(gl.hasOwnProperty(h)?s||(s=[]):(s=s||[]).push(h,null));for(h in n){var p=n[h];if(f=i?.[h],n.hasOwnProperty(h)&&p!==f&&(p!=null||f!=null))if(h==="style")if(f){for(c in f)!f.hasOwnProperty(c)||p&&p.hasOwnProperty(c)||(r||(r={}),r[c]="");for(c in p)p.hasOwnProperty(c)&&f[c]!==p[c]&&(r||(r={}),r[c]=p[c])}else r||(s||(s=[]),s.push(h,r)),r=p;else h==="dangerouslySetInnerHTML"?(p=p?p.__html:void 0,f=f?f.__html:void 0,p!=null&&f!==p&&(s=s||[]).push(h,p)):h==="children"?typeof p!="string"&&typeof p!="number"||(s=s||[]).push(h,""+p):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&(gl.hasOwnProperty(h)?(p!=null&&h==="onScroll"&&cr("scroll",e),s||f===p||(s=[])):(s=s||[]).push(h,p))}r&&(s=s||[]).push("style",r);var h=s;(t.updateQueue=h)&&(t.flags|=4)}};Zm=function(e,t,r,n){r!==n&&(t.flags|=4)};function Ha(e,t){if(!dr)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Xr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ry(e,t,r){var n=t.pendingProps;switch(f0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xr(t),null;case 1:return gn(t.type)&&Xo(),Xr(t),null;case 3:return n=t.stateNode,ma(),fr(mn),fr(Or),b0(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(lo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Qn!==null&&(af(Qn),Qn=null))),Z$(e,t),Xr(t),null;case 5:y0(t);var i=ks(zl.current);if(r=t.type,e!==null&&t.stateNode!=null)Qm(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Ct(166));return Xr(t),null}if(e=ks($i.current),lo(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[li]=t,n[Cl]=s,e=(t.mode&1)!==0,r){case"dialog":cr("cancel",n),cr("close",n);break;case"iframe":case"object":case"embed":cr("load",n);break;case"video":case"audio":for(i=0;i<tl.length;i++)cr(tl[i],n);break;case"source":cr("error",n);break;case"img":case"image":case"link":cr("error",n),cr("load",n);break;case"details":cr("toggle",n);break;case"input":qd(n,s),cr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},cr("invalid",n);break;case"textarea":Dd(n,s),cr("invalid",n)}k$(r,s),i=null;for(var c in s)if(s.hasOwnProperty(c)){var f=s[c];c==="children"?typeof f=="string"?n.textContent!==f&&(s.suppressHydrationWarning!==!0&&ao(n.textContent,f,e),i=["children",f]):typeof f=="number"&&n.textContent!==""+f&&(s.suppressHydrationWarning!==!0&&ao(n.textContent,f,e),i=["children",""+f]):gl.hasOwnProperty(c)&&f!=null&&c==="onScroll"&&cr("scroll",n)}switch(r){case"input":Jl(n),Md(n,s,!0);break;case"textarea":Jl(n),Ld(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=Ko)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{c=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=S_(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=c.createElement(r,{is:n.is}):(e=c.createElement(r),r==="select"&&(c=e,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):e=c.createElementNS(e,r),e[li]=t,e[Cl]=n,Xm(e,t,!1,!1),t.stateNode=e;e:{switch(c=S$(r,n),r){case"dialog":cr("cancel",e),cr("close",e),i=n;break;case"iframe":case"object":case"embed":cr("load",e),i=n;break;case"video":case"audio":for(i=0;i<tl.length;i++)cr(tl[i],e);i=n;break;case"source":cr("error",e),i=n;break;case"img":case"image":case"link":cr("error",e),cr("load",e),i=n;break;case"details":cr("toggle",e),i=n;break;case"input":qd(e,n),i=v$(e,n),cr("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=br({},n,{value:void 0}),cr("invalid",e);break;case"textarea":Dd(e,n),i=x$(e,n),cr("invalid",e);break;default:i=n}k$(r,i),f=i;for(s in f)if(f.hasOwnProperty(s)){var p=f[s];s==="style"?C_(e,p):s==="dangerouslySetInnerHTML"?(p=p?p.__html:void 0,p!=null&&A_(e,p)):s==="children"?typeof p=="string"?(r!=="textarea"||p!=="")&&vl(e,p):typeof p=="number"&&vl(e,""+p):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(gl.hasOwnProperty(s)?p!=null&&s==="onScroll"&&cr("scroll",e):p!=null&&Zf(e,s,p,c))}switch(r){case"input":Jl(e),Md(e,n,!1);break;case"textarea":Jl(e),Ld(e);break;case"option":n.value!=null&&e.setAttribute("value",""+ts(n.value));break;case"select":e.multiple=!!n.multiple,s=n.value,s!=null?sa(e,!!n.multiple,s,!1):n.defaultValue!=null&&sa(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ko)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Xr(t),null;case 6:if(e&&t.stateNode!=null)Zm(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(Ct(166));if(r=ks(zl.current),ks($i.current),lo(t)){if(n=t.stateNode,r=t.memoizedProps,n[li]=t,(s=n.nodeValue!==r)&&(e=An,e!==null))switch(e.tag){case 3:ao(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ao(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[li]=t,t.stateNode=n}return Xr(t),null;case 13:if(fr(gr),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(dr&&kn!==null&&t.mode&1&&!(t.flags&128))pm(),pa(),t.flags|=98560,s=!1;else if(s=lo(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(Ct(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Ct(317));s[li]=t}else pa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xr(t),s=!1}else Qn!==null&&(af(Qn),Qn=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||gr.current&1?Mr===0&&(Mr=3):I0())),t.updateQueue!==null&&(t.flags|=4),Xr(t),null);case 4:return ma(),Z$(e,t),e===null&&Al(t.stateNode.containerInfo),Xr(t),null;case 10:return _0(t.type._context),Xr(t),null;case 17:return gn(t.type)&&Xo(),Xr(t),null;case 19:if(fr(gr),s=t.memoizedState,s===null)return Xr(t),null;if(n=(t.flags&128)!==0,c=s.rendering,c===null)if(n)Ha(s,!1);else{if(Mr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=ru(e),c!==null){for(t.flags|=128,Ha(s,!1),n=c.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)s=r,e=n,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ur(gr,gr.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ar()>va&&(t.flags|=128,n=!0,Ha(s,!1),t.lanes=4194304)}else{if(!n)if(e=ru(c),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ha(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!dr)return Xr(t),null}else 2*Ar()-s.renderingStartTime>va&&r!==1073741824&&(t.flags|=128,n=!0,Ha(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(r=s.last,r!==null?r.sibling=c:t.child=c,s.last=c)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ar(),t.sibling=null,r=gr.current,ur(gr,n?r&1|2:r&1),t):(Xr(t),null);case 22:case 23:return N0(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?xn&1073741824&&(Xr(t),t.subtreeFlags&6&&(t.flags|=8192)):Xr(t),null;case 24:return null;case 25:return null}throw Error(Ct(156,t.tag))}function Ny(e,t){switch(f0(t),t.tag){case 1:return gn(t.type)&&Xo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ma(),fr(mn),fr(Or),b0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return y0(t),null;case 13:if(fr(gr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ct(340));pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fr(gr),null;case 4:return ma(),null;case 10:return _0(t.type._context),null;case 22:case 23:return N0(),null;case 24:return null;default:return null}}var co=!1,Qr=!1,Iy=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function ta(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){wr(e,t,n)}else r.current=null}function J$(e,t,r){try{r()}catch(n){wr(e,t,n)}}var Ah=!1;function qy(e,t){if(M$=Yo,e=rm(),c0(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var c=0,f=-1,p=-1,h=0,I=0,F=e,H=null;t:for(;;){for(var pe;F!==r||i!==0&&F.nodeType!==3||(f=c+i),F!==s||n!==0&&F.nodeType!==3||(p=c+n),F.nodeType===3&&(c+=F.nodeValue.length),(pe=F.firstChild)!==null;)H=F,F=pe;for(;;){if(F===e)break t;if(H===r&&++h===i&&(f=c),H===s&&++I===n&&(p=c),(pe=F.nextSibling)!==null)break;F=H,H=F.parentNode}F=pe}r=f===-1||p===-1?null:{start:f,end:p}}else r=null}r=r||{start:0,end:0}}else r=null;for(D$={focusedElem:e,selectionRange:r},Yo=!1,Ft=t;Ft!==null;)if(t=Ft,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ft=e;else for(;Ft!==null;){t=Ft;try{var xe=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(xe!==null){var ne=xe.memoizedProps,W=xe.memoizedState,X=t.stateNode,ge=X.getSnapshotBeforeUpdate(t.elementType===t.type?ne:Kn(t.type,ne),W);X.__reactInternalSnapshotBeforeUpdate=ge}break;case 3:var se=t.stateNode.containerInfo;se.nodeType===1?se.textContent="":se.nodeType===9&&se.documentElement&&se.removeChild(se.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ct(163))}}catch(me){wr(t,t.return,me)}if(e=t.sibling,e!==null){e.return=t.return,Ft=e;break}Ft=t.return}return xe=Ah,Ah=!1,xe}function fl(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&J$(t,r,s)}i=i.next}while(i!==n)}}function zu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function O$(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Jm(e){var t=e.alternate;t!==null&&(e.alternate=null,Jm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[li],delete t[Cl],delete t[B$],delete t[_y],delete t[my])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Om(e){return e.tag===5||e.tag===3||e.tag===4}function Eh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ef(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ko));else if(n!==4&&(e=e.child,e!==null))for(ef(e,t,r),e=e.sibling;e!==null;)ef(e,t,r),e=e.sibling}function tf(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(tf(e,t,r),e=e.sibling;e!==null;)tf(e,t,r),e=e.sibling}var jr=null,Xn=!1;function qi(e,t,r){for(r=r.child;r!==null;)e1(e,t,r),r=r.sibling}function e1(e,t,r){if(ci&&typeof ci.onCommitFiberUnmount=="function")try{ci.onCommitFiberUnmount(xu,r)}catch{}switch(r.tag){case 5:Qr||ta(r,t);case 6:var n=jr,i=Xn;jr=null,qi(e,t,r),jr=n,Xn=i,jr!==null&&(Xn?(e=jr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):jr.removeChild(r.stateNode));break;case 18:jr!==null&&(Xn?(e=jr,r=r.stateNode,e.nodeType===8?Ec(e.parentNode,r):e.nodeType===1&&Ec(e,r),wl(e)):Ec(jr,r.stateNode));break;case 4:n=jr,i=Xn,jr=r.stateNode.containerInfo,Xn=!0,qi(e,t,r),jr=n,Xn=i;break;case 0:case 11:case 14:case 15:if(!Qr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,c=s.destroy;s=s.tag,c!==void 0&&(s&2||s&4)&&J$(r,t,c),i=i.next}while(i!==n)}qi(e,t,r);break;case 1:if(!Qr&&(ta(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(f){wr(r,t,f)}qi(e,t,r);break;case 21:qi(e,t,r);break;case 22:r.mode&1?(Qr=(n=Qr)||r.memoizedState!==null,qi(e,t,r),Qr=n):qi(e,t,r);break;default:qi(e,t,r)}}function Ch(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Iy),t.forEach(function(n){var i=Hy.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Wn(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var s=e,c=t,f=c;e:for(;f!==null;){switch(f.tag){case 5:jr=f.stateNode,Xn=!1;break e;case 3:jr=f.stateNode.containerInfo,Xn=!0;break e;case 4:jr=f.stateNode.containerInfo,Xn=!0;break e}f=f.return}if(jr===null)throw Error(Ct(160));e1(s,c,i),jr=null,Xn=!1;var p=i.alternate;p!==null&&(p.return=null),i.return=null}catch(h){wr(i,t,h)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)t1(t,e),t=t.sibling}function t1(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Wn(t,e),ni(e),n&4){try{fl(3,e,e.return),zu(3,e)}catch(ne){wr(e,e.return,ne)}try{fl(5,e,e.return)}catch(ne){wr(e,e.return,ne)}}break;case 1:Wn(t,e),ni(e),n&512&&r!==null&&ta(r,r.return);break;case 5:if(Wn(t,e),ni(e),n&512&&r!==null&&ta(r,r.return),e.flags&32){var i=e.stateNode;try{vl(i,"")}catch(ne){wr(e,e.return,ne)}}if(n&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,c=r!==null?r.memoizedProps:s,f=e.type,p=e.updateQueue;if(e.updateQueue=null,p!==null)try{f==="input"&&s.type==="radio"&&s.name!=null&&w_(i,s),S$(f,c);var h=S$(f,s);for(c=0;c<p.length;c+=2){var I=p[c],F=p[c+1];I==="style"?C_(i,F):I==="dangerouslySetInnerHTML"?A_(i,F):I==="children"?vl(i,F):Zf(i,I,F,h)}switch(f){case"input":y$(i,s);break;case"textarea":k_(i,s);break;case"select":var H=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var pe=s.value;pe!=null?sa(i,!!s.multiple,pe,!1):H!==!!s.multiple&&(s.defaultValue!=null?sa(i,!!s.multiple,s.defaultValue,!0):sa(i,!!s.multiple,s.multiple?[]:"",!1))}i[Cl]=s}catch(ne){wr(e,e.return,ne)}}break;case 6:if(Wn(t,e),ni(e),n&4){if(e.stateNode===null)throw Error(Ct(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(ne){wr(e,e.return,ne)}}break;case 3:if(Wn(t,e),ni(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{wl(t.containerInfo)}catch(ne){wr(e,e.return,ne)}break;case 4:Wn(t,e),ni(e);break;case 13:Wn(t,e),ni(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(z0=Ar())),n&4&&Ch(e);break;case 22:if(I=r!==null&&r.memoizedState!==null,e.mode&1?(Qr=(h=Qr)||I,Wn(t,e),Qr=h):Wn(t,e),ni(e),n&8192){if(h=e.memoizedState!==null,(e.stateNode.isHidden=h)&&!I&&e.mode&1)for(Ft=e,I=e.child;I!==null;){for(F=Ft=I;Ft!==null;){switch(H=Ft,pe=H.child,H.tag){case 0:case 11:case 14:case 15:fl(4,H,H.return);break;case 1:ta(H,H.return);var xe=H.stateNode;if(typeof xe.componentWillUnmount=="function"){n=H,r=H.return;try{t=n,xe.props=t.memoizedProps,xe.state=t.memoizedState,xe.componentWillUnmount()}catch(ne){wr(n,r,ne)}}break;case 5:ta(H,H.return);break;case 22:if(H.memoizedState!==null){zh(F);continue}}pe!==null?(pe.return=H,Ft=pe):zh(F)}I=I.sibling}e:for(I=null,F=e;;){if(F.tag===5){if(I===null){I=F;try{i=F.stateNode,h?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(f=F.stateNode,p=F.memoizedProps.style,c=p!=null&&p.hasOwnProperty("display")?p.display:null,f.style.display=E_("display",c))}catch(ne){wr(e,e.return,ne)}}}else if(F.tag===6){if(I===null)try{F.stateNode.nodeValue=h?"":F.memoizedProps}catch(ne){wr(e,e.return,ne)}}else if((F.tag!==22&&F.tag!==23||F.memoizedState===null||F===e)&&F.child!==null){F.child.return=F,F=F.child;continue}if(F===e)break e;for(;F.sibling===null;){if(F.return===null||F.return===e)break e;I===F&&(I=null),F=F.return}I===F&&(I=null),F.sibling.return=F.return,F=F.sibling}}break;case 19:Wn(t,e),ni(e),n&4&&Ch(e);break;case 21:break;default:Wn(t,e),ni(e)}}function ni(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Om(r)){var n=r;break e}r=r.return}throw Error(Ct(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(vl(i,""),n.flags&=-33);var s=Eh(e);tf(e,s,i);break;case 3:case 4:var c=n.stateNode.containerInfo,f=Eh(e);ef(e,f,c);break;default:throw Error(Ct(161))}}catch(p){wr(e,e.return,p)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function My(e,t,r){Ft=e,r1(e)}function r1(e,t,r){for(var n=(e.mode&1)!==0;Ft!==null;){var i=Ft,s=i.child;if(i.tag===22&&n){var c=i.memoizedState!==null||co;if(!c){var f=i.alternate,p=f!==null&&f.memoizedState!==null||Qr;f=co;var h=Qr;if(co=c,(Qr=p)&&!h)for(Ft=i;Ft!==null;)c=Ft,p=c.child,c.tag===22&&c.memoizedState!==null?Rh(i):p!==null?(p.return=c,Ft=p):Rh(i);for(;s!==null;)Ft=s,r1(s),s=s.sibling;Ft=i,co=f,Qr=h}Th(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,Ft=s):Th(e)}}function Th(e){for(;Ft!==null;){var t=Ft;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Qr||zu(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Qr)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Kn(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&dh(t,s,n);break;case 3:var c=t.updateQueue;if(c!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}dh(t,c,r)}break;case 5:var f=t.stateNode;if(r===null&&t.flags&4){r=f;var p=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":p.autoFocus&&r.focus();break;case"img":p.src&&(r.src=p.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var h=t.alternate;if(h!==null){var I=h.memoizedState;if(I!==null){var F=I.dehydrated;F!==null&&wl(F)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ct(163))}Qr||t.flags&512&&O$(t)}catch(H){wr(t,t.return,H)}}if(t===e){Ft=null;break}if(r=t.sibling,r!==null){r.return=t.return,Ft=r;break}Ft=t.return}}function zh(e){for(;Ft!==null;){var t=Ft;if(t===e){Ft=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Ft=r;break}Ft=t.return}}function Rh(e){for(;Ft!==null;){var t=Ft;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{zu(4,t)}catch(p){wr(t,r,p)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(p){wr(t,i,p)}}var s=t.return;try{O$(t)}catch(p){wr(t,s,p)}break;case 5:var c=t.return;try{O$(t)}catch(p){wr(t,c,p)}}}catch(p){wr(t,t.return,p)}if(t===e){Ft=null;break}var f=t.sibling;if(f!==null){f.return=t.return,Ft=f;break}Ft=t.return}}var Dy=Math.ceil,su=zi.ReactCurrentDispatcher,C0=zi.ReactCurrentOwner,jn=zi.ReactCurrentBatchConfig,rr=0,Pr=null,Tr=null,Vr=0,xn=0,ra=cs(0),Mr=0,ql=null,zs=0,Ru=0,T0=0,dl=null,pn=null,z0=0,va=1/0,gi=null,au=!1,rf=null,Ji=null,$o=!1,Yi=null,lu=0,hl=0,nf=null,Io=-1,qo=0;function ln(){return rr&6?Ar():Io!==-1?Io:Io=Ar()}function Oi(e){return e.mode&1?rr&2&&Vr!==0?Vr&-Vr:vy.transition!==null?(qo===0&&(qo=P_()),qo):(e=lr,e!==0||(e=window.event,e=e===void 0?16:G_(e.type)),e):1}function ei(e,t,r,n){if(50<hl)throw hl=0,nf=null,Error(Ct(185));Pl(e,r,n),(!(rr&2)||e!==Pr)&&(e===Pr&&(!(rr&2)&&(Ru|=r),Mr===4&&Hi(e,Vr)),vn(e,n),r===1&&rr===0&&!(t.mode&1)&&(va=Ar()+500,Eu&&$s()))}function vn(e,t){var r=e.callbackNode;v2(e,t);var n=Vo(e,e===Pr?Vr:0);if(n===0)r!==null&&Pd(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Pd(r),t===1)e.tag===0?gy(Nh.bind(null,e)):fm(Nh.bind(null,e)),hy(function(){!(rr&6)&&$s()}),r=null;else{switch(j_(n)){case 1:r=r0;break;case 4:r=F_;break;case 16:r=Ho;break;case 536870912:r=B_;break;default:r=Ho}r=c1(r,n1.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function n1(e,t){if(Io=-1,qo=0,rr&6)throw Error(Ct(327));var r=e.callbackNode;if(ca()&&e.callbackNode!==r)return null;var n=Vo(e,e===Pr?Vr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=ou(e,n);else{t=n;var i=rr;rr|=2;var s=s1();(Pr!==e||Vr!==t)&&(gi=null,va=Ar()+500,Ss(e,t));do try{By();break}catch(f){i1(e,f)}while(!0);p0(),su.current=s,rr=i,Tr!==null?t=0:(Pr=null,Vr=0,t=Mr)}if(t!==0){if(t===2&&(i=z$(e),i!==0&&(n=i,t=sf(e,i))),t===1)throw r=ql,Ss(e,0),Hi(e,n),vn(e,Ar()),r;if(t===6)Hi(e,n);else{if(i=e.current.alternate,!(n&30)&&!Ly(i)&&(t=ou(e,n),t===2&&(s=z$(e),s!==0&&(n=s,t=sf(e,s))),t===1))throw r=ql,Ss(e,0),Hi(e,n),vn(e,Ar()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(Ct(345));case 2:vs(e,pn,gi);break;case 3:if(Hi(e,n),(n&130023424)===n&&(t=z0+500-Ar(),10<t)){if(Vo(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){ln(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=F$(vs.bind(null,e,pn,gi),t);break}vs(e,pn,gi);break;case 4:if(Hi(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var c=31-On(n);s=1<<c,c=t[c],c>i&&(i=c),n&=~s}if(n=i,n=Ar()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Dy(n/1960))-n,10<n){e.timeoutHandle=F$(vs.bind(null,e,pn,gi),n);break}vs(e,pn,gi);break;case 5:vs(e,pn,gi);break;default:throw Error(Ct(329))}}}return vn(e,Ar()),e.callbackNode===r?n1.bind(null,e):null}function sf(e,t){var r=dl;return e.current.memoizedState.isDehydrated&&(Ss(e,t).flags|=256),e=ou(e,t),e!==2&&(t=pn,pn=r,t!==null&&af(t)),e}function af(e){pn===null?pn=e:pn.push.apply(pn,e)}function Ly(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],s=i.getSnapshot;i=i.value;try{if(!ri(s(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Hi(e,t){for(t&=~T0,t&=~Ru,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-On(t),n=1<<r;e[r]=-1,t&=~n}}function Nh(e){if(rr&6)throw Error(Ct(327));ca();var t=Vo(e,0);if(!(t&1))return vn(e,Ar()),null;var r=ou(e,t);if(e.tag!==0&&r===2){var n=z$(e);n!==0&&(t=n,r=sf(e,n))}if(r===1)throw r=ql,Ss(e,0),Hi(e,t),vn(e,Ar()),r;if(r===6)throw Error(Ct(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,vs(e,pn,gi),vn(e,Ar()),null}function R0(e,t){var r=rr;rr|=1;try{return e(t)}finally{rr=r,rr===0&&(va=Ar()+500,Eu&&$s())}}function Rs(e){Yi!==null&&Yi.tag===0&&!(rr&6)&&ca();var t=rr;rr|=1;var r=jn.transition,n=lr;try{if(jn.transition=null,lr=1,e)return e()}finally{lr=n,jn.transition=r,rr=t,!(rr&6)&&$s()}}function N0(){xn=ra.current,fr(ra)}function Ss(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,dy(r)),Tr!==null)for(r=Tr.return;r!==null;){var n=r;switch(f0(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Xo();break;case 3:ma(),fr(mn),fr(Or),b0();break;case 5:y0(n);break;case 4:ma();break;case 13:fr(gr);break;case 19:fr(gr);break;case 10:_0(n.type._context);break;case 22:case 23:N0()}r=r.return}if(Pr=e,Tr=e=es(e.current,null),Vr=xn=t,Mr=0,ql=null,T0=Ru=zs=0,pn=dl=null,ws!==null){for(t=0;t<ws.length;t++)if(r=ws[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,s=r.pending;if(s!==null){var c=s.next;s.next=i,n.next=c}r.pending=n}ws=null}return e}function i1(e,t){do{var r=Tr;try{if(p0(),zo.current=iu,nu){for(var n=yr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}nu=!1}if(Ts=0,Br=qr=yr=null,$l=!1,Rl=0,C0.current=null,r===null||r.return===null){Mr=1,ql=t,Tr=null;break}e:{var s=e,c=r.return,f=r,p=t;if(t=Vr,f.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){var h=p,I=f,F=I.tag;if(!(I.mode&1)&&(F===0||F===11||F===15)){var H=I.alternate;H?(I.updateQueue=H.updateQueue,I.memoizedState=H.memoizedState,I.lanes=H.lanes):(I.updateQueue=null,I.memoizedState=null)}var pe=vh(c);if(pe!==null){pe.flags&=-257,yh(pe,c,f,s,t),pe.mode&1&&gh(s,h,t),t=pe,p=h;var xe=t.updateQueue;if(xe===null){var ne=new Set;ne.add(p),t.updateQueue=ne}else xe.add(p);break e}else{if(!(t&1)){gh(s,h,t),I0();break e}p=Error(Ct(426))}}else if(dr&&f.mode&1){var W=vh(c);if(W!==null){!(W.flags&65536)&&(W.flags|=256),yh(W,c,f,s,t),d0(ga(p,f));break e}}s=p=ga(p,f),Mr!==4&&(Mr=2),dl===null?dl=[s]:dl.push(s),s=c;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var X=jm(s,p,t);fh(s,X);break e;case 1:f=p;var ge=s.type,se=s.stateNode;if(!(s.flags&128)&&(typeof ge.getDerivedStateFromError=="function"||se!==null&&typeof se.componentDidCatch=="function"&&(Ji===null||!Ji.has(se)))){s.flags|=65536,t&=-t,s.lanes|=t;var me=Um(s,f,t);fh(s,me);break e}}s=s.return}while(s!==null)}l1(r)}catch(J){t=J,Tr===r&&r!==null&&(Tr=r=r.return);continue}break}while(!0)}function s1(){var e=su.current;return su.current=iu,e===null?iu:e}function I0(){(Mr===0||Mr===3||Mr===2)&&(Mr=4),Pr===null||!(zs&268435455)&&!(Ru&268435455)||Hi(Pr,Vr)}function ou(e,t){var r=rr;rr|=2;var n=s1();(Pr!==e||Vr!==t)&&(gi=null,Ss(e,t));do try{Fy();break}catch(i){i1(e,i)}while(!0);if(p0(),rr=r,su.current=n,Tr!==null)throw Error(Ct(261));return Pr=null,Vr=0,Mr}function Fy(){for(;Tr!==null;)a1(Tr)}function By(){for(;Tr!==null&&!c2();)a1(Tr)}function a1(e){var t=u1(e.alternate,e,xn);e.memoizedProps=e.pendingProps,t===null?l1(e):Tr=t,C0.current=null}function l1(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Ny(r,t),r!==null){r.flags&=32767,Tr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Mr=6,Tr=null;return}}else if(r=Ry(r,t,xn),r!==null){Tr=r;return}if(t=t.sibling,t!==null){Tr=t;return}Tr=t=e}while(t!==null);Mr===0&&(Mr=5)}function vs(e,t,r){var n=lr,i=jn.transition;try{jn.transition=null,lr=1,Py(e,t,r,n)}finally{jn.transition=i,lr=n}return null}function Py(e,t,r,n){do ca();while(Yi!==null);if(rr&6)throw Error(Ct(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(Ct(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(y2(e,s),e===Pr&&(Tr=Pr=null,Vr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||$o||($o=!0,c1(Ho,function(){return ca(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=jn.transition,jn.transition=null;var c=lr;lr=1;var f=rr;rr|=4,C0.current=null,qy(e,r),t1(r,e),ay(D$),Yo=!!M$,D$=M$=null,e.current=r,My(r),$2(),rr=f,lr=c,jn.transition=s}else e.current=r;if($o&&($o=!1,Yi=e,lu=i),s=e.pendingLanes,s===0&&(Ji=null),h2(r.stateNode),vn(e,Ar()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(au)throw au=!1,e=rf,rf=null,e;return lu&1&&e.tag!==0&&ca(),s=e.pendingLanes,s&1?e===nf?hl++:(hl=0,nf=e):hl=0,$s(),null}function ca(){if(Yi!==null){var e=j_(lu),t=jn.transition,r=lr;try{if(jn.transition=null,lr=16>e?16:e,Yi===null)var n=!1;else{if(e=Yi,Yi=null,lu=0,rr&6)throw Error(Ct(331));var i=rr;for(rr|=4,Ft=e.current;Ft!==null;){var s=Ft,c=s.child;if(Ft.flags&16){var f=s.deletions;if(f!==null){for(var p=0;p<f.length;p++){var h=f[p];for(Ft=h;Ft!==null;){var I=Ft;switch(I.tag){case 0:case 11:case 15:fl(8,I,s)}var F=I.child;if(F!==null)F.return=I,Ft=F;else for(;Ft!==null;){I=Ft;var H=I.sibling,pe=I.return;if(Jm(I),I===h){Ft=null;break}if(H!==null){H.return=pe,Ft=H;break}Ft=pe}}}var xe=s.alternate;if(xe!==null){var ne=xe.child;if(ne!==null){xe.child=null;do{var W=ne.sibling;ne.sibling=null,ne=W}while(ne!==null)}}Ft=s}}if(s.subtreeFlags&2064&&c!==null)c.return=s,Ft=c;else e:for(;Ft!==null;){if(s=Ft,s.flags&2048)switch(s.tag){case 0:case 11:case 15:fl(9,s,s.return)}var X=s.sibling;if(X!==null){X.return=s.return,Ft=X;break e}Ft=s.return}}var ge=e.current;for(Ft=ge;Ft!==null;){c=Ft;var se=c.child;if(c.subtreeFlags&2064&&se!==null)se.return=c,Ft=se;else e:for(c=ge;Ft!==null;){if(f=Ft,f.flags&2048)try{switch(f.tag){case 0:case 11:case 15:zu(9,f)}}catch(J){wr(f,f.return,J)}if(f===c){Ft=null;break e}var me=f.sibling;if(me!==null){me.return=f.return,Ft=me;break e}Ft=f.return}}if(rr=i,$s(),ci&&typeof ci.onPostCommitFiberRoot=="function")try{ci.onPostCommitFiberRoot(xu,e)}catch{}n=!0}return n}finally{lr=r,jn.transition=t}}return!1}function Ih(e,t,r){t=ga(r,t),t=jm(e,t,1),e=Zi(e,t,1),t=ln(),e!==null&&(Pl(e,1,t),vn(e,t))}function wr(e,t,r){if(e.tag===3)Ih(e,e,r);else for(;t!==null;){if(t.tag===3){Ih(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ji===null||!Ji.has(n))){e=ga(r,e),e=Um(t,e,1),t=Zi(t,e,1),e=ln(),t!==null&&(Pl(t,1,e),vn(t,e));break}}t=t.return}}function jy(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=ln(),e.pingedLanes|=e.suspendedLanes&r,Pr===e&&(Vr&r)===r&&(Mr===4||Mr===3&&(Vr&130023424)===Vr&&500>Ar()-z0?Ss(e,0):T0|=r),vn(e,t)}function o1(e,t){t===0&&(e.mode&1?(t=to,to<<=1,!(to&130023424)&&(to=4194304)):t=1);var r=ln();e=Ei(e,t),e!==null&&(Pl(e,t,r),vn(e,r))}function Uy(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),o1(e,r)}function Hy(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Ct(314))}n!==null&&n.delete(t),o1(e,r)}var u1;u1=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||mn.current)_n=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return _n=!1,zy(e,t,r);_n=!!(e.flags&131072)}else _n=!1,dr&&t.flags&1048576&&dm(t,Jo,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;No(e,t),e=t.pendingProps;var i=ha(t,Or.current);ua(t,r),i=w0(null,t,n,e,i,r);var s=k0();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gn(n)?(s=!0,Qo(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,g0(t),i.updater=Tu,t.stateNode=i,i._reactInternals=t,Y$(t,n,e,r),t=K$(null,t,n,!0,s,r)):(t.tag=0,dr&&s&&$0(t),nn(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(No(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Yy(n),e=Kn(n,e),i){case 0:t=G$(null,t,n,e,r);break e;case 1:t=wh(null,t,n,e,r);break e;case 11:t=bh(null,t,n,e,r);break e;case 14:t=xh(null,t,n,Kn(n.type,e),r);break e}throw Error(Ct(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Kn(n,i),G$(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Kn(n,i),wh(e,t,n,i,r);case 3:e:{if(Wm(t),e===null)throw Error(Ct(387));n=t.pendingProps,s=t.memoizedState,i=s.element,vm(e,t),tu(t,n,null,r);var c=t.memoizedState;if(n=c.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=ga(Error(Ct(423)),t),t=kh(e,t,n,r,i);break e}else if(n!==i){i=ga(Error(Ct(424)),t),t=kh(e,t,n,r,i);break e}else for(kn=Qi(t.stateNode.containerInfo.firstChild),An=t,dr=!0,Qn=null,r=mm(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(pa(),n===i){t=Ci(e,t,r);break e}nn(e,t,n,r)}t=t.child}return t;case 5:return ym(t),e===null&&U$(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,c=i.children,L$(n,i)?c=null:s!==null&&L$(n,s)&&(t.flags|=32),Ym(e,t),nn(e,t,c,r),t.child;case 6:return e===null&&U$(t),null;case 13:return Gm(e,t,r);case 4:return v0(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=_a(t,null,n,r):nn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Kn(n,i),bh(e,t,n,i,r);case 7:return nn(e,t,t.pendingProps,r),t.child;case 8:return nn(e,t,t.pendingProps.children,r),t.child;case 12:return nn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,c=i.value,ur(Oo,n._currentValue),n._currentValue=c,s!==null)if(ri(s.value,c)){if(s.children===i.children&&!mn.current){t=Ci(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var f=s.dependencies;if(f!==null){c=s.child;for(var p=f.firstContext;p!==null;){if(p.context===n){if(s.tag===1){p=wi(-1,r&-r),p.tag=2;var h=s.updateQueue;if(h!==null){h=h.shared;var I=h.pending;I===null?p.next=p:(p.next=I.next,I.next=p),h.pending=p}}s.lanes|=r,p=s.alternate,p!==null&&(p.lanes|=r),H$(s.return,r,t),f.lanes|=r;break}p=p.next}}else if(s.tag===10)c=s.type===t.type?null:s.child;else if(s.tag===18){if(c=s.return,c===null)throw Error(Ct(341));c.lanes|=r,f=c.alternate,f!==null&&(f.lanes|=r),H$(c,r,t),c=s.sibling}else c=s.child;if(c!==null)c.return=s;else for(c=s;c!==null;){if(c===t){c=null;break}if(s=c.sibling,s!==null){s.return=c.return,c=s;break}c=c.return}s=c}nn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,ua(t,r),i=Un(i),n=n(i),t.flags|=1,nn(e,t,n,r),t.child;case 14:return n=t.type,i=Kn(n,t.pendingProps),i=Kn(n.type,i),xh(e,t,n,i,r);case 15:return Hm(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Kn(n,i),No(e,t),t.tag=1,gn(n)?(e=!0,Qo(t)):e=!1,ua(t,r),Pm(t,n,i),Y$(t,n,i,r),K$(null,t,n,!0,e,r);case 19:return Km(e,t,r);case 22:return Vm(e,t,r)}throw Error(Ct(156,t.tag))};function c1(e,t){return L_(e,t)}function Vy(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bn(e,t,r,n){return new Vy(e,t,r,n)}function q0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yy(e){if(typeof e=="function")return q0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Of)return 11;if(e===e0)return 14}return 2}function es(e,t){var r=e.alternate;return r===null?(r=Bn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Mo(e,t,r,n,i,s){var c=2;if(n=e,typeof e=="function")q0(e)&&(c=1);else if(typeof e=="string")c=5;else e:switch(e){case Ws:return As(r.children,i,s,t);case Jf:c=8,i|=8;break;case p$:return e=Bn(12,r,t,i|2),e.elementType=p$,e.lanes=s,e;case _$:return e=Bn(13,r,t,i),e.elementType=_$,e.lanes=s,e;case m$:return e=Bn(19,r,t,i),e.elementType=m$,e.lanes=s,e;case y_:return Nu(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case g_:c=10;break e;case v_:c=9;break e;case Of:c=11;break e;case e0:c=14;break e;case Pi:c=16,n=null;break e}throw Error(Ct(130,e==null?e:typeof e,""))}return t=Bn(c,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function As(e,t,r,n){return e=Bn(7,e,n,t),e.lanes=r,e}function Nu(e,t,r,n){return e=Bn(22,e,n,t),e.elementType=y_,e.lanes=r,e.stateNode={isHidden:!1},e}function Mc(e,t,r){return e=Bn(6,e,null,t),e.lanes=r,e}function Dc(e,t,r){return t=Bn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wy(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_c(0),this.expirationTimes=_c(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_c(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function M0(e,t,r,n,i,s,c,f,p){return e=new Wy(e,t,r,f,p),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Bn(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},g0(s),e}function Gy(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ys,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function $1(e){if(!e)return rs;e=e._reactInternals;e:{if(Ds(e)!==e||e.tag!==1)throw Error(Ct(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(gn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Ct(171))}if(e.tag===1){var r=e.type;if(gn(r))return $m(e,r,t)}return t}function f1(e,t,r,n,i,s,c,f,p){return e=M0(r,n,!0,e,i,s,c,f,p),e.context=$1(null),r=e.current,n=ln(),i=Oi(r),s=wi(n,i),s.callback=t??null,Zi(r,s,i),e.current.lanes=i,Pl(e,i,n),vn(e,n),e}function Iu(e,t,r,n){var i=t.current,s=ln(),c=Oi(i);return r=$1(r),t.context===null?t.context=r:t.pendingContext=r,t=wi(s,c),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Zi(i,t,c),e!==null&&(ei(e,i,c,s),To(e,i,c)),c}function uu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function qh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function D0(e,t){qh(e,t),(e=e.alternate)&&qh(e,t)}function Ky(){return null}var d1=typeof reportError=="function"?reportError:function(e){console.error(e)};function L0(e){this._internalRoot=e}qu.prototype.render=L0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ct(409));Iu(e,t,null,null)};qu.prototype.unmount=L0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Rs(function(){Iu(null,e,null,null)}),t[Ai]=null}};function qu(e){this._internalRoot=e}qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=V_();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ui.length&&t!==0&&t<Ui[r].priority;r++);Ui.splice(r,0,e),r===0&&W_(e)}};function F0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Mu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Mh(){}function Xy(e,t,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var h=uu(c);s.call(h)}}var c=f1(t,n,e,0,null,!1,!1,"",Mh);return e._reactRootContainer=c,e[Ai]=c.current,Al(e.nodeType===8?e.parentNode:e),Rs(),c}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var f=n;n=function(){var h=uu(p);f.call(h)}}var p=M0(e,0,!1,null,null,!1,!1,"",Mh);return e._reactRootContainer=p,e[Ai]=p.current,Al(e.nodeType===8?e.parentNode:e),Rs(function(){Iu(t,p,r,n)}),p}function Du(e,t,r,n,i){var s=r._reactRootContainer;if(s){var c=s;if(typeof i=="function"){var f=i;i=function(){var p=uu(c);f.call(p)}}Iu(t,c,e,i)}else c=Xy(r,t,e,i,n);return uu(c)}U_=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=el(t.pendingLanes);r!==0&&(n0(t,r|1),vn(t,Ar()),!(rr&6)&&(va=Ar()+500,$s()))}break;case 13:Rs(function(){var n=Ei(e,1);if(n!==null){var i=ln();ei(n,e,1,i)}}),D0(e,1)}};i0=function(e){if(e.tag===13){var t=Ei(e,134217728);if(t!==null){var r=ln();ei(t,e,134217728,r)}D0(e,134217728)}};H_=function(e){if(e.tag===13){var t=Oi(e),r=Ei(e,t);if(r!==null){var n=ln();ei(r,e,t,n)}D0(e,t)}};V_=function(){return lr};Y_=function(e,t){var r=lr;try{return lr=e,t()}finally{lr=r}};E$=function(e,t,r){switch(t){case"input":if(y$(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Au(n);if(!i)throw Error(Ct(90));x_(n),y$(n,i)}}}break;case"textarea":k_(e,r);break;case"select":t=r.value,t!=null&&sa(e,!!r.multiple,t,!1)}};R_=R0;N_=Rs;var Qy={usingClientEntryPoint:!1,Events:[Ul,Qs,Au,T_,z_,R0]},Va={findFiberByHostInstance:xs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Zy={bundleType:Va.bundleType,version:Va.version,rendererPackageName:Va.rendererPackageName,rendererConfig:Va.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:zi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=M_(e),e===null?null:e.stateNode},findFiberByHostInstance:Va.findFiberByHostInstance||Ky,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fo.isDisabled&&fo.supportsFiber)try{xu=fo.inject(Zy),ci=fo}catch{}}Rn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qy;Rn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!F0(t))throw Error(Ct(200));return Gy(e,t,null,r)};Rn.createRoot=function(e,t){if(!F0(e))throw Error(Ct(299));var r=!1,n="",i=d1;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=M0(e,1,!1,null,null,r,!1,n,i),e[Ai]=t.current,Al(e.nodeType===8?e.parentNode:e),new L0(t)};Rn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Ct(188)):(e=Object.keys(e).join(","),Error(Ct(268,e)));return e=M_(t),e=e===null?null:e.stateNode,e};Rn.flushSync=function(e){return Rs(e)};Rn.hydrate=function(e,t,r){if(!Mu(t))throw Error(Ct(200));return Du(null,e,t,!0,r)};Rn.hydrateRoot=function(e,t,r){if(!F0(e))throw Error(Ct(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",c=d1;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(c=r.onRecoverableError)),t=f1(t,null,e,1,r??null,i,!1,s,c),e[Ai]=t.current,Al(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new qu(t)};Rn.render=function(e,t,r){if(!Mu(t))throw Error(Ct(200));return Du(null,e,t,!1,r)};Rn.unmountComponentAtNode=function(e){if(!Mu(e))throw Error(Ct(40));return e._reactRootContainer?(Rs(function(){Du(null,null,e,!1,function(){e._reactRootContainer=null,e[Ai]=null})}),!0):!1};Rn.unstable_batchedUpdates=R0;Rn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Mu(r))throw Error(Ct(200));if(e==null||e._reactInternals===void 0)throw Error(Ct(38));return Du(e,t,r,!1,n)};Rn.version="18.3.1-next-f1338f8080-20240426";function h1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(h1)}catch(e){console.error(e)}}h1(),h_.exports=Rn;var p1=h_.exports,_1,Dh=p1;_1=Dh.createRoot,Dh.hydrateRoot;async function fs(e){const t=await fetch(e),r=await t.json();if(!t.ok)throw new Error(r&&r.error||`HTTP ${t.status}`);return r}function Lh(){return fs("/api/info")}function Jy(){return fs("/api/tasks")}function Ya(e=":",t){const r=new URLSearchParams({path:e});return t!=null&&r.set("depth",String(t)),fs(`/api/tree?${r}`)}function En(e,t,r){const n=new URLSearchParams({path:e});return t!=null&&n.set("depth",String(t)),r?.binary&&n.set("binary","1"),fs(`/api/json?${n}`)}function ds(e){return`/api/blob?path=${encodeURIComponent(e)}`}function Oy(e,t,r){return`/api/thumb?path=${encodeURIComponent(e)}&w=${t}&h=${r}`}function e4(e,t){const r=new URLSearchParams({path:e});return t!=null&&r.set("depth",String(t)),fs(`/api/schema?${r}`)}function ya(e){return fs(`/api/annotations?path=${encodeURIComponent(e)}`)}function t4(e){return fs(`/api/tagged?path=${encodeURIComponent(e)}`)}function r4(e,t=":"){const r=new URLSearchParams({q:e,path:t});return fs(`/api/query?${r}`).then(n=>n.results)}async function Lu(e,t){const r=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),n=await r.json();if(!r.ok)throw new Error(n&&n.error||`HTTP ${r.status}`);return n}function n4(e,t,r){return Lu("/api/fragment",{target:e,selector:t,...r?{imageBase64:r}:{}})}function Ns(e){return Lu("/api/annotate",e)}function i4(e,t){return Lu("/api/board",{path:e,columns:t})}function s4(e){return fetch("/api/tag",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e})}).then(async t=>{const r=await t.json();if(!t.ok)throw new Error(r&&r.error||`HTTP ${t.status}`);return r})}function Fh(e=!1){return Lu("/api/agent-docs",{overwrite:e})}function B0(e){return fetch("/api/paste",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(async t=>{const r=await t.json();if(!t.ok)throw new Error(r&&r.error||`HTTP ${t.status}`);return r})}function a4(e,t,r){return B0({path:e,filename:t,contentBase64:r})}function l4(e,t){return B0({path:e,text:t})}function o4(e,t){return B0({path:e,rich:t})}function P0(e,t){const r=new URLSearchParams({target:e,tag:t});return fetch(`/api/annotate?${r}`,{method:"DELETE"}).then(async n=>{if(!n.ok)throw new Error((await n.json().catch(()=>null))?.error||`HTTP ${n.status}`)})}const u4="modulepreload",c4=function(e){return"/"+e},Bh={},In=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=c?.nonce||c?.getAttribute("nonce");i=Promise.allSettled(r.map(p=>{if(p=c4(p),p in Bh)return;Bh[p]=!0;const h=p.endsWith(".css"),I=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${I}`))return;const F=document.createElement("link");if(F.rel=h?"stylesheet":u4,h||(F.as="script"),F.crossOrigin="",F.href=p,f&&F.setAttribute("nonce",f),document.head.appendChild(F),h)return new Promise((H,pe)=>{F.addEventListener("load",H),F.addEventListener("error",()=>pe(new Error(`Unable to preload CSS for ${p}`)))})}))}function s(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return i.then(c=>{for(const f of c||[])f.status==="rejected"&&s(f.reason);return t().catch(s)})},$4="$yamloverLink",f4="$yamloverBinary",d4="$yamloverRef",h4="$yamloverMixed";function Fu(e,t){if(e&&typeof e=="object"&&!Array.isArray(e)){const r=Object.keys(e);if(r.length===1&&r[0]===t)return e[t]}return null}const on=e=>Fu(e,$4),p4=e=>Fu(e,f4),Bu=e=>Fu(e,d4),Ea=e=>Fu(e,h4);function Ca(e){const t=Ea(e);return t&&t.kind==="omni"?t.value:e}function Ph({value:e,syntax:t,onNavigate:r}){const n=p4(e);if(n&&t==="yaml")return Fe.jsx(_4,{bin:n});const i=n??e;return t==="yaml"?Fe.jsx(g4,{value:i,indent:0,nav:r}):Fe.jsx(V0,{value:i,indent:0,nav:r,root:!0})}function _4({bin:e}){const t=[];for(let r=0;r<e.base64.length;r+=76)t.push(" "+e.base64.slice(r,r+76));return Fe.jsxs(Fe.Fragment,{children:[Fe.jsx("span",{className:"b",children:"!!binary"})," ",Fe.jsx("span",{className:"punct",children:"|"})," ",Fe.jsx("span",{className:"c",children:`# ${e.format??"binary"}, ${e.size} bytes`}),`
|
|
42
|
-
`,Fe.jsx("span",{className:"s",children:t.join(`
|
|
43
|
-
`)})]})}function j0(e,t,r){const n=e.kind==="scalar"?U0(e.value,t):m4(e);return Fe.jsx("a",{className:"descend",href:e.path,onClick:i=>{i.preventDefault(),r(e.path)},children:n})}function U0(e,t){return e==null?t==="json"?"null":"~":typeof e=="boolean"||typeof e=="number"?String(e):t==="json"?JSON.stringify(e):String(e)}function H0(e,t,r){const n=t==="json"?JSON.stringify(e.text):e.text;if(!e.path)return Fe.jsx("span",{className:"s",children:n});const i=e.path;return Fe.jsx("a",{className:"descend",href:i,onClick:s=>{s.preventDefault(),r(i)},children:n})}function m4(e){const t=e.count??0;return e.kind==="array"?`[ array with ${t} ${t===1?"item":"items"} ]`:e.kind==="binary"?`< binary of ${e.size??0} bytes >`:e.kind==="mix"?`{ mixed with ${t} ${t===1?"entry":"entries"} }`:e.kind==="omni"?`{ variant ${U0(e.value,"yaml")} + ${t} ${t===1?"field":"fields"} }`:`{ object with ${t} ${t===1?"property":"properties"} }`}function Pu(e,t){if(e===null)return Fe.jsx("span",{className:"null",children:t==="json"?"null":"~"});if(typeof e=="boolean")return Fe.jsx("span",{className:"b",children:String(e)});if(typeof e=="number")return Fe.jsx("span",{className:"n",children:String(e)});const r=t==="json"?JSON.stringify(e):String(e);return Fe.jsx("span",{className:"s",children:r})}const Ta=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function ns(e){return on(e)||Bu(e)?!1:Ea(e)?!0:Ta(e)?Object.keys(e).length>0:Array.isArray(e)?e.length>0:!1}function ju(e){const t=Ea(e);if(t){const n=t.entries.length;return t.kind==="omni"?`{ variant ${U0(t.value,"yaml")} + ${n} ${n===1?"field":"fields"} }`:`{ mixed with ${n} ${n===1?"entry":"entries"} }`}if(Array.isArray(e)){const n=e.length;return`[ ${n} ${n===1?"item":"items"} ]`}const r=Object.keys(e).length;return`{ ${r} ${r===1?"property":"properties"} }`}function Uu({open:e,onToggle:t}){return Fe.jsx("button",{type:"button",className:"toggle fold-gutter"+(e?" open":""),"aria-label":e?"collapse":"expand",onClick:t,children:Fe.jsx("span",{className:"chevron",children:"›"})})}function g4({value:e,indent:t,nav:r}){const n=on(e);if(n)return Fe.jsxs(Fe.Fragment,{children:[j0(n,"yaml",r),`
|
|
44
|
-
`]});const i=Bu(e);return i?Fe.jsxs(Fe.Fragment,{children:[H0(i,"yaml",r),`
|
|
45
|
-
`]}):ns(e)?Fe.jsx(cu,{value:e,indent:t,nav:r}):Ta(e)?Fe.jsxs(Fe.Fragment,{children:[Fe.jsx("span",{className:"punct",children:"{}"}),`
|
|
46
|
-
`]}):Array.isArray(e)?Fe.jsxs(Fe.Fragment,{children:[Fe.jsx("span",{className:"punct",children:"[]"}),`
|
|
47
|
-
`]}):Fe.jsxs(Fe.Fragment,{children:[Pu(e,"yaml"),`
|
|
48
|
-
`]})}function cu({value:e,indent:t,nav:r,inlineHead:n=!1}){const i=Ea(e);return i?Fe.jsx(x4,{mixed:i,indent:t,nav:r}):Ta(e)?Fe.jsx(v4,{entries:Object.entries(e),indent:t,nav:r,inlineHead:n}):Fe.jsx(y4,{items:e,indent:t,nav:r,inlineHead:n})}function v4({entries:e,indent:t,nav:r,inlineHead:n=!1}){const i=" ".repeat(t);return Fe.jsx(Fe.Fragment,{children:e.map(([s,c],f)=>Fe.jsx(m1,{k:s,v:c,pad:i,indent:t,nav:r,noPad:n&&f===0},f))})}function y4({items:e,indent:t,nav:r,inlineHead:n=!1}){const i=" ".repeat(t);return Fe.jsx(Fe.Fragment,{children:e.map((s,c)=>Fe.jsx(g1,{v:s,pad:i,indent:t,nav:r,noPad:n&&c===0},c))})}function b4(e){if(Ea(e))return!1;if(Ta(e)){const t=Object.values(e);return t.length>0&&!ns(t[0])}return Array.isArray(e)?e.length>0&&!ns(e[0]):!1}function x4({mixed:e,indent:t,nav:r}){const n=" ".repeat(t);return Fe.jsxs(Fe.Fragment,{children:[e.kind==="omni"&&Fe.jsxs(Fe.Fragment,{children:[n,Pu(e.value,"yaml"),`
|
|
49
|
-
`]}),e.entries.map((i,s)=>i.key===null?Fe.jsx(g1,{v:i.value,pad:n,indent:t,nav:r},s):Fe.jsx(m1,{k:i.key,v:i.value,pad:n,indent:t,nav:r},s))]})}function m1({k:e,v:t,pad:r,indent:n,nav:i,noPad:s=!1}){const[c,f]=gt.useState(!0),p=Fe.jsxs(Fe.Fragment,{children:[s?null:r,Fe.jsx("span",{className:"k",children:e}),Fe.jsx("span",{className:"punct",children:":"})]});return ns(t)?Fe.jsxs(Fe.Fragment,{children:[Fe.jsx(Uu,{open:c,onToggle:()=>f(h=>!h)}),p,c?Fe.jsxs(Fe.Fragment,{children:[`
|
|
50
|
-
`,Fe.jsx(cu,{value:t,indent:n+2,nav:i})]}):Fe.jsxs(Fe.Fragment,{children:[" ",Fe.jsx("span",{className:"fold-summary",children:ju(t)}),`
|
|
51
|
-
`]})]}):Fe.jsxs(Fe.Fragment,{children:[p,v1(t,i)]})}function g1({v:e,pad:t,indent:r,nav:n,noPad:i=!1}){const[s,c]=gt.useState(!0),f=Fe.jsxs(Fe.Fragment,{children:[i?null:t,Fe.jsx("span",{className:"punct yaml-dash",children:"-"})]});if(!ns(e))return Fe.jsxs(Fe.Fragment,{children:[f,v1(e,n)]});const p=b4(e);return Fe.jsxs(Fe.Fragment,{children:[Fe.jsx(Uu,{open:s,onToggle:()=>c(h=>!h)}),f,s?p?Fe.jsxs(Fe.Fragment,{children:[" ",Fe.jsx(cu,{value:e,indent:r+2,nav:n,inlineHead:!0})]}):Fe.jsxs(Fe.Fragment,{children:[`
|
|
52
|
-
`,Fe.jsx(cu,{value:e,indent:r+2,nav:n})]}):Fe.jsxs(Fe.Fragment,{children:[" ",Fe.jsx("span",{className:"fold-summary",children:ju(e)}),`
|
|
53
|
-
`]})]})}function v1(e,t){const r=on(e);if(r)return Fe.jsxs(Fe.Fragment,{children:[" ",j0(r,"yaml",t),`
|
|
54
|
-
`]});const n=Bu(e);return n?Fe.jsxs(Fe.Fragment,{children:[" ",H0(n,"yaml",t),`
|
|
55
|
-
`]}):Ta(e)&&Object.keys(e).length===0?Fe.jsxs(Fe.Fragment,{children:[" ",Fe.jsx("span",{className:"punct",children:"{}"}),`
|
|
56
|
-
`]}):Array.isArray(e)&&e.length===0?Fe.jsxs(Fe.Fragment,{children:[" ",Fe.jsx("span",{className:"punct",children:"[]"}),`
|
|
57
|
-
`]}):Fe.jsxs(Fe.Fragment,{children:[" ",Pu(e,"yaml"),`
|
|
58
|
-
`]})}function V0({value:e,indent:t,nav:r,root:n=!1}){const i=on(e);if(i)return j0(i,"json",r);const s=Bu(e);if(s)return H0(s,"json",r);if(n&&ns(e))return Fe.jsx(pl,{value:e,indent:t,nav:r});const c=y1(e);return c?c.length?Fe.jsx(pl,{value:e,indent:t,nav:r}):Fe.jsx("span",{className:"punct",children:"{}"}):Array.isArray(e)?e.length?Fe.jsx(pl,{value:e,indent:t,nav:r}):Fe.jsx("span",{className:"punct",children:"[]"}):Pu(e,"json")}function y1(e){const t=Ea(e);return t?[...t.kind==="omni"?[["$value",t.value]]:[],...t.entries.map((r,n)=>[r.key??String(n),r.value])]:Ta(e)?Object.entries(e):null}function pl({value:e,indent:t,nav:r}){const n=y1(e);return n?Fe.jsx(w4,{entries:n,indent:t,nav:r}):Fe.jsx(k4,{items:e,indent:t,nav:r})}function w4({entries:e,indent:t,nav:r}){const n=" ".repeat(t+2);return Fe.jsxs(Fe.Fragment,{children:[Fe.jsx("span",{className:"punct",children:"{"}),`
|
|
59
|
-
`,e.map(([i,s],c)=>Fe.jsx(S4,{k:i,v:s,pad:n,indent:t+2,nav:r,last:c===e.length-1},c))," ".repeat(t),Fe.jsx("span",{className:"punct",children:"}"})]})}function k4({items:e,indent:t,nav:r}){const n=" ".repeat(t+2);return Fe.jsxs(Fe.Fragment,{children:[Fe.jsx("span",{className:"punct",children:"["}),`
|
|
60
|
-
`,e.map((i,s)=>Fe.jsx(A4,{v:i,pad:n,indent:t+2,nav:r,last:s===e.length-1},s))," ".repeat(t),Fe.jsx("span",{className:"punct",children:"]"})]})}function S4({k:e,v:t,pad:r,indent:n,nav:i,last:s}){const[c,f]=gt.useState(!0),p=Fe.jsxs(Fe.Fragment,{children:[r,Fe.jsx("span",{className:"k",children:`"${e}"`}),Fe.jsx("span",{className:"punct",children:": "})]}),h=Fe.jsxs(Fe.Fragment,{children:[s?"":",",`
|
|
61
|
-
`]});return ns(t)?Fe.jsxs(Fe.Fragment,{children:[Fe.jsx(Uu,{open:c,onToggle:()=>f(I=>!I)}),p,c?Fe.jsx(pl,{value:t,indent:n,nav:i}):Fe.jsx("span",{className:"fold-summary",children:ju(t)}),h]}):Fe.jsxs(Fe.Fragment,{children:[p,Fe.jsx(V0,{value:t,indent:n,nav:i}),h]})}function A4({v:e,pad:t,indent:r,nav:n,last:i}){const[s,c]=gt.useState(!0),f=Fe.jsxs(Fe.Fragment,{children:[i?"":",",`
|
|
62
|
-
`]});return ns(e)?Fe.jsxs(Fe.Fragment,{children:[Fe.jsx(Uu,{open:s,onToggle:()=>c(p=>!p)}),t,s?Fe.jsx(pl,{value:e,indent:r,nav:n}):Fe.jsx("span",{className:"fold-summary",children:ju(e)}),f]}):Fe.jsxs(Fe.Fragment,{children:[t,Fe.jsx(V0,{value:e,indent:r,nav:n}),f]})}function ti(e){return e.map(t=>typeof t=="number"?`[${t}]`:`:${encodeURIComponent(t)}`).join("")||":"}const E4=/\[\d+\]|[^:\[\]]+/g,C4=/\[\d+\]|[^/\[\]]+/g;function Wr(e){const t=[];for(const r of e.match(E4)||[])t.push(/^\[\d+\]$/.test(r)?Number(r.slice(1,-1)):Y0(r));return t}function Ur(e){return ti(Wr(e))}function Y0(e){try{return decodeURIComponent(e)}catch{return e}}function jh(){const e=[];for(const t of window.location.pathname.match(C4)||[])e.push(/^\[\d+\]$/.test(t)?Number(t.slice(1,-1)):Y0(t));return ti(e)}function T4(e){return Wr(e).map(r=>typeof r=="number"?`[${r}]`:`/${encodeURIComponent(r)}`).join("")||"/"}function Vl(e){const t=Wr(e);return t.length?t.map(r=>typeof r=="number"?`[${r}]`:`: ${r}`).join(""):":"}function z4(e){const t=Wr(Ur(e)),r=t.indexOf("tags"),n=r>=0?t.slice(r+1):t;return n.length?n.map(i=>typeof i=="number"?`[${i}]`:i).join(": "):t.length?String(t[t.length-1]):":"}function R4(e){return e.replace(/[^:/\[\]]+/g,t=>Y0(t))}function Do(e,t){return e===t?!1:e===":"?!0:t.startsWith(e+":")||t.startsWith(e+"[")}function Uh(e){return new URLSearchParams(window.location.search).get("format")||e}function k8(){const e=Number(new URLSearchParams(window.location.search).get("page"));return Number.isInteger(e)&&e>1?e:1}function S8(e){const t=new URLSearchParams(window.location.search);e>1?t.set("page",String(e)):t.delete("page");const r=t.toString(),n=window.location.pathname+(r?"?"+r:"");n!==window.location.pathname+window.location.search&&window.history.replaceState({},"",n)}function Wa(e,t,r=!1){const n=new URLSearchParams(window.location.search);n.set("format",t),r||n.delete("page");const i=`${T4(e||":")}?${n.toString()}`;i!==window.location.pathname+window.location.search&&(r?window.history.replaceState({},"",i):window.history.pushState({},"",i))}function N4(e,t){const r=Wr(e),n=[];return t&&n.push({label:t,path:":"}),r.forEach((i,s)=>{n.push({label:typeof i=="number"?`[${i}]`:i,path:ti(r.slice(0,s+1))})}),n}function I4(e){return e.trim().toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").replace(/\s+/g,"-")}function q4(e,t){if(!e)return"";let r=e;for(let n=2;t.has(r);n++)r=`${e}-${n}`;return t.add(r),r}function b1(e){if(typeof DOMParser>"u"||!e.includes("<h"))return e;const t=new DOMParser().parseFromString(e,"text/html"),r=new Set;for(const n of t.querySelectorAll("h1, h2, h3, h4, h5, h6")){const i=q4(n.id||I4(n.textContent??""),r);if(!i)continue;n.id=i;const s=t.createElement("a");s.className="header-anchor",s.href=`#${i}`,s.setAttribute("aria-label","Link to this section"),s.textContent="§",n.insertBefore(s,n.firstChild)}return t.body.innerHTML}function W0(e){gt.useEffect(()=>{const t=decodeURIComponent(window.location.hash.slice(1));t&&document.getElementById(t)?.scrollIntoView?.()},[e])}function x1({node:e,onNavigate:t}){const r=e.value??{},n=Array.isArray(r.chunks)?r.chunks:[],i=Array.isArray(r.children)?r.children:[];return W0(e),Fe.jsxs("div",{className:"chapter",children:[e.title&&Fe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Fe.jsx("p",{className:"chapter-subtitle",children:e.description}),n.map((s,c)=>Fe.jsx(M4,{index:c,item:s,basePath:e.path,documentPath:e.documentPath,onNavigate:t},c)),i.map((s,c)=>{const f=on(s);return Fe.jsx("h2",{className:"chapter-link",children:Fe.jsx("a",{className:"descend",href:f?.path??"#",onClick:p=>{p.preventDefault(),f&&t(f.path)},children:L4(f)})},c)})]})}function M4({index:e,item:t,basePath:r,documentPath:n,onNavigate:i}){const s=on(t),c={value:s?s.value:t,path:s?.path??"",type:s?.type??"string",format:s?.format??null,valueType:s?.valueType??"string",hasKeyed:s?.hasKeyed??!1,hasOrdinal:s?.hasOrdinal??!1,documentPath:n},f=oc(c),p=f?.renderChunk?f.renderChunk(c,i):Fe.jsx("p",{className:"chapter-prose",children:String(c.value??"")}),h=c.path?D4(r,c.path):null;return Fe.jsxs("div",{className:"chunk",id:h??void 0,children:[h?Fe.jsxs("a",{className:"chunk-index",href:`#${h}`,children:["§",e]}):Fe.jsxs("span",{className:"chunk-index",children:["§",e]}),Fe.jsx("div",{className:"chunk-body",children:p})]})}function D4(e,t){return ti(Wr(t).slice(Wr(e).length))}function L4(e){return e?.title??"(untitled chapter)"}const Ml="yamlover:diff";function F4(e){window.dispatchEvent(new CustomEvent(Ml,{detail:e}))}const za=e=>e.paths.some(t=>t.endsWith(".yamlover"));function Yl(e=()=>!0){const[t,r]=gt.useState(0);return gt.useEffect(()=>{const n=i=>{const s=i.detail;s&&e(s)&&r(c=>c+1)};return window.addEventListener(Ml,n),()=>window.removeEventListener(Ml,n)},[]),t}function B4(e=()=>!0){const[t,r]=gt.useState({seq:0,paths:[]});return gt.useEffect(()=>{const n=i=>{const s=i.detail;s&&e(s)&&r(c=>({seq:c.seq+1,paths:s.paths}))};return window.addEventListener(Ml,n),()=>window.removeEventListener(Ml,n)},[]),t}const Ra="x-yamlover-tag";function w1(e){return/(^|:)tags:colors:/.test(Ur(e))}function k1({color:e,title:t,onClick:r}){return Fe.jsx("span",{className:"tagswatch",style:{background:e},title:t,role:r?"button":void 0,onClick:r})}function P4(e){const t=[],r={};for(const[n,i]of Object.entries(e||{})){const s=on(i);s&&s.format===Ra?t.push({path:s.path,label:Hu(s.path,s.title),color:s.color??null}):r[n]=i}return{tags:t,rest:r}}function j4(e){let t=0;for(let r=0;r<e.length;r++)t=Math.imul(t,31)+e.charCodeAt(r)>>>0;return`hsl(${t%360} 52% 42%)`}function un(e){return e.color??j4(e.name)}const S1="$yamloverMixed";function yn(e){if(!e||typeof e!="object"||Array.isArray(e))return[];const t=e[S1];return t?.entries?t.entries.filter(r=>r.key!=null).map(r=>[r.key,r.value]):Object.entries(e)}function A1(e){if(typeof e=="string")return e;const t=e?.[S1];return typeof t?.value=="string"?t.value:null}function G0(e){const t=yn(e).find(([n])=>n==="color")?.[1];if(typeof t=="string")return t;const r=t?.$yamloverLink?.value;return typeof r=="string"?r:null}function U4({tags:e,onNavigate:t}){return e.length===0?null:Fe.jsx(Fe.Fragment,{children:e.map(r=>{const n=un({name:r.label,color:r.color});return w1(r.path)?Fe.jsx(k1,{color:n,title:r.label,onClick:()=>t(r.path)},r.path):Fe.jsx("a",{className:"tagtag",style:{background:n},href:r.path,title:r.label,onClick:i=>{i.preventDefault(),t(r.path)},children:r.label},r.path)})})}function Hu(e,t){if(t)return t;const r=Wr(e);return r.length?String(r[r.length-1]):e}const H4="$yamloverRef",V4="x-yamlover-workflow";function Is(e){const t=on(e);if(t)return t.path;const r=e?.[H4];return r&&typeof r.path=="string"?r.path:null}function E1(e){const t=yn(e).find(([n])=>n==="next")?.[1];if(t==null)return[];if(Array.isArray(t))return t.map(Is).filter(n=>n!=null);const r=Is(t);return r?[r]:[]}async function Y4(e){const t=await En(e,1),r=Is(yn(t.value).find(([s])=>s==="initial")?.[1]),n=new Set,i=[];for(const[s,c]of yn(t.value)){if(s==="initial"||s==="color")continue;const f=on(c);!f||f.format!==Ra||n.has(f.path)||(n.add(f.path),i.push({path:f.path,label:Hu(f.path,f.title),color:f.color??null,next:[],initial:f.path===r}))}return await Promise.all(i.map(async s=>{try{s.next=E1((await En(s.path,2)).value)}catch{}})),i}async function C1(e,t,r){t!==r&&(t&&await P0(e,t),await Ns({target:e,tag:r}))}async function W4(e){const t=e.lastIndexOf(":");if(t<=0)return!1;try{return(await En(e.slice(0,t),0)).format===V4}catch{return!1}}async function lf(e){const t=await En(e,2);return{path:e,label:Hu(e,t.title),color:G0(t.value),next:E1(t.value)}}const Ga=(e,t)=>{const r=yn(e).find(([n])=>n===t)?.[1];return typeof r=="string"?r:typeof r=="number"?String(r):null};function G4({node:e,onNavigate:t}){const r=Yl(za),[n,i]=gt.useState(null),s=Ga(e.value,"description"),c=Ga(e.value,"priority"),f=Ga(e.value,"assignee"),p=Ga(e.value,"due"),h=Ga(e.value,"estimate");gt.useEffect(()=>{let F=!1;return(async()=>{const H=await ya(e.path).catch(()=>[]);let pe=null;for(const xe of H){const ne=xe.tag?.path;if(!ne||!await W4(ne))continue;const W=await lf(ne),X=await Promise.all(W.next.map(ge=>lf(ge)));pe={...W,nextStates:X};break}F||i(pe)})(),()=>{F=!0}},[e.path,r]);const I=async F=>{n&&await C1(e.path,n.path,F).catch(()=>{})};return Fe.jsxs("div",{className:"task",children:[Fe.jsxs("div",{className:"task-strip",children:[n&&Fe.jsx("span",{className:"task-state",style:{background:un({name:n.label,color:n.color})},children:n.label}),n?.nextStates.map(F=>Fe.jsxs("button",{className:"task-advance",style:{borderColor:un({name:F.label,color:F.color})},onClick:()=>I(F.path),title:`Move to ${F.label}`,children:["→ ",F.label]},F.path)),c&&Fe.jsx("span",{className:"board-chip prio-"+c,children:c}),f&&Fe.jsxs("span",{className:"board-chip board-assignee",children:["@",f]}),p&&Fe.jsx("span",{className:"board-chip board-due",children:p.slice(0,10)}),h&&Fe.jsx("span",{className:"board-chip board-estimate",children:h})]}),s&&Fe.jsx("p",{className:"task-description",children:s}),Fe.jsx(x1,{node:e,onNavigate:t})]})}function K0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ls=K0();function T1(e){Ls=e}var ys={exec:()=>null};function Hs(e){let t=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),i=t[n];return i||(i=e(n),t[n]=i),i}}function tr(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(i,s)=>{let c=typeof s=="string"?s:s.source;return c=c.replace(Zr.caret,"$1"),r=r.replace(i,c),n},getRegex:()=>new RegExp(r,t)};return n}var K4=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Zr={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Hs(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Hs(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Hs(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Hs(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Hs(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Hs(e=>new RegExp(`^ {0,${e}}>`))},X4=/^(?:[ \t]*(?:\n|$))+/,Q4=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Z4=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Wl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,J4=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,X0=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,z1=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,R1=tr(z1).replace(/bull/g,X0).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),O4=tr(z1).replace(/bull/g,X0).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Q0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,eb=/^[^\n]+/,Z0=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,tb=tr(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Z0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),rb=tr(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,X0).getRegex(),Vu="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",J0=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,nb=tr("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",J0).replace("tag",Vu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),N1=tr(Q0).replace("hr",Wl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Vu).getRegex(),ib=tr(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",N1).getRegex(),O0={blockquote:ib,code:Q4,def:tb,fences:Z4,heading:J4,hr:Wl,html:nb,lheading:R1,list:rb,newline:X4,paragraph:N1,table:ys,text:eb},Hh=tr("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Wl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Vu).getRegex(),sb={...O0,lheading:O4,table:Hh,paragraph:tr(Q0).replace("hr",Wl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Hh).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Vu).getRegex()},ab={...O0,html:tr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",J0).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ys,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:tr(Q0).replace("hr",Wl).replace("heading",` *#{1,6} *[^
|
|
63
|
-
]`).replace("lheading",R1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},lb=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ob=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,I1=/^( {2,}|\\)\n(?!\s*$)/,ub=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Na=/[\p{P}\p{S}]/u,Yu=/[\s\p{P}\p{S}]/u,ed=/[^\s\p{P}\p{S}]/u,cb=tr(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Yu).getRegex(),q1=/(?!~)[\p{P}\p{S}]/u,$b=/(?!~)[\s\p{P}\p{S}]/u,fb=/(?:[^\s\p{P}\p{S}]|~)/u,db=tr(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",K4?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),M1=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,hb=tr(M1,"u").replace(/punct/g,Na).getRegex(),pb=tr(M1,"u").replace(/punct/g,q1).getRegex(),D1="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",_b=tr(D1,"gu").replace(/notPunctSpace/g,ed).replace(/punctSpace/g,Yu).replace(/punct/g,Na).getRegex(),mb=tr(D1,"gu").replace(/notPunctSpace/g,fb).replace(/punctSpace/g,$b).replace(/punct/g,q1).getRegex(),gb=tr("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ed).replace(/punctSpace/g,Yu).replace(/punct/g,Na).getRegex(),vb=tr(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Na).getRegex(),yb="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",bb=tr(yb,"gu").replace(/notPunctSpace/g,ed).replace(/punctSpace/g,Yu).replace(/punct/g,Na).getRegex(),xb=tr(/\\(punct)/,"gu").replace(/punct/g,Na).getRegex(),wb=tr(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),kb=tr(J0).replace("(?:-->|$)","-->").getRegex(),Sb=tr("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",kb).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),$u=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Ab=tr(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",$u).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),L1=tr(/^!?\[(label)\]\[(ref)\]/).replace("label",$u).replace("ref",Z0).getRegex(),F1=tr(/^!?\[(ref)\](?:\[\])?/).replace("ref",Z0).getRegex(),Eb=tr("reflink|nolink(?!\\()","g").replace("reflink",L1).replace("nolink",F1).getRegex(),Vh=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,td={_backpedal:ys,anyPunctuation:xb,autolink:wb,blockSkip:db,br:I1,code:ob,del:ys,delLDelim:ys,delRDelim:ys,emStrongLDelim:hb,emStrongRDelimAst:_b,emStrongRDelimUnd:gb,escape:lb,link:Ab,nolink:F1,punctuation:cb,reflink:L1,reflinkSearch:Eb,tag:Sb,text:ub,url:ys},Cb={...td,link:tr(/^!?\[(label)\]\((.*?)\)/).replace("label",$u).getRegex(),reflink:tr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$u).getRegex()},of={...td,emStrongRDelimAst:mb,emStrongLDelim:pb,delLDelim:vb,delRDelim:bb,url:tr(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Vh).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:tr(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Vh).getRegex()},Tb={...of,br:tr(I1).replace("{2,}","*").getRegex(),text:tr(of.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ho={normal:O0,gfm:sb,pedantic:ab},Ka={normal:td,gfm:of,breaks:Tb,pedantic:Cb},zb={"&":"&","<":"<",">":">",'"':""","'":"'"},Yh=e=>zb[e];function ii(e,t){if(t){if(Zr.escapeTest.test(e))return e.replace(Zr.escapeReplace,Yh)}else if(Zr.escapeTestNoEncode.test(e))return e.replace(Zr.escapeReplaceNoEncode,Yh);return e}function Wh(e){try{e=encodeURI(e).replace(Zr.percentDecode,"%")}catch{return null}return e}function Gh(e,t){let r=e.replace(Zr.findPipe,(s,c,f)=>{let p=!1,h=c;for(;--h>=0&&f[h]==="\\";)p=!p;return p?"|":" |"}),n=r.split(Zr.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(Zr.slashPipe,"|");return n}function Mi(e,t,r){let n=e.length;if(n===0)return"";let i=0;for(;i<n&&e.charAt(n-i-1)===t;)i++;return e.slice(0,n-i)}function Kh(e){let t=e.split(`
|
|
64
|
-
`),r=t.length-1;for(;r>=0&&Zr.blankLine.test(t[r]);)r--;return t.length-r<=2?e:t.slice(0,r+1).join(`
|
|
65
|
-
`)}function Rb(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function Nb(e,t=0){let r=t,n="";for(let i of e)if(i===" "){let s=4-r%4;n+=" ".repeat(s),r+=s}else n+=i,r++;return n}function Xh(e,t,r,n,i){let s=t.href,c=t.title||null,f=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let p={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:c,text:f,tokens:n.inlineTokens(f)};return n.state.inLink=!1,p}function Ib(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
|
|
66
|
-
`).map(s=>{let c=s.match(r.other.beginningSpace);if(c===null)return s;let[f]=c;return f.length>=i.length?s.slice(i.length):s}).join(`
|
|
67
|
-
`)}var fu=class{options;rules;lexer;constructor(e){this.options=e||Ls}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let r=this.options.pedantic?t[0]:Kh(t[0]),n=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:n}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let r=t[0],n=Ib(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){let n=Mi(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:Mi(t[0],`
|
|
68
|
-
`),depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Mi(t[0],`
|
|
69
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=Mi(t[0],`
|
|
70
|
-
`).split(`
|
|
71
|
-
`),n="",i="",s=[];for(;r.length>0;){let c=!1,f=[],p;for(p=0;p<r.length;p++)if(this.rules.other.blockquoteStart.test(r[p]))f.push(r[p]),c=!0;else if(!c)f.push(r[p]);else break;r=r.slice(p);let h=f.join(`
|
|
72
|
-
`),I=h.replace(this.rules.other.blockquoteSetextReplace,`
|
|
73
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
74
|
-
${h}`:h,i=i?`${i}
|
|
75
|
-
${I}`:I;let F=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(I,s,!0),this.lexer.state.top=F,r.length===0)break;let H=s.at(-1);if(H?.type==="code")break;if(H?.type==="blockquote"){let pe=H,xe=pe.raw+`
|
|
76
|
-
`+r.join(`
|
|
77
|
-
`),ne=this.blockquote(xe);s[s.length-1]=ne,n=n.substring(0,n.length-pe.raw.length)+ne.raw,i=i.substring(0,i.length-pe.text.length)+ne.text;break}else if(H?.type==="list"){let pe=H,xe=pe.raw+`
|
|
78
|
-
`+r.join(`
|
|
79
|
-
`),ne=this.list(xe);s[s.length-1]=ne,n=n.substring(0,n.length-H.raw.length)+ne.raw,i=i.substring(0,i.length-pe.raw.length)+ne.raw,r=xe.substring(s.at(-1).raw.length).split(`
|
|
80
|
-
`);continue}}return{type:"blockquote",raw:n,tokens:s,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let s=this.rules.other.listItemRegex(r),c=!1;for(;e;){let p=!1,h="",I="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;h=t[0],e=e.substring(h.length);let F=Nb(t[2].split(`
|
|
81
|
-
`,1)[0],t[1].length),H=e.split(`
|
|
82
|
-
`,1)[0],pe=!F.trim(),xe=0;if(this.options.pedantic?(xe=2,I=F.trimStart()):pe?xe=t[1].length+1:(xe=F.search(this.rules.other.nonSpaceChar),xe=xe>4?1:xe,I=F.slice(xe),xe+=t[1].length),pe&&this.rules.other.blankLine.test(H)&&(h+=H+`
|
|
83
|
-
`,e=e.substring(H.length+1),p=!0),!p){let ne=this.rules.other.nextBulletRegex(xe),W=this.rules.other.hrRegex(xe),X=this.rules.other.fencesBeginRegex(xe),ge=this.rules.other.headingBeginRegex(xe),se=this.rules.other.htmlBeginRegex(xe),me=this.rules.other.blockquoteBeginRegex(xe);for(;e;){let J=e.split(`
|
|
84
|
-
`,1)[0],be;if(H=J,this.options.pedantic?(H=H.replace(this.rules.other.listReplaceNesting," "),be=H):be=H.replace(this.rules.other.tabCharGlobal," "),X.test(H)||ge.test(H)||se.test(H)||me.test(H)||ne.test(H)||W.test(H))break;if(be.search(this.rules.other.nonSpaceChar)>=xe||!H.trim())I+=`
|
|
85
|
-
`+be.slice(xe);else{if(pe||F.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||X.test(F)||ge.test(F)||W.test(F))break;I+=`
|
|
86
|
-
`+H}pe=!H.trim(),h+=J+`
|
|
87
|
-
`,e=e.substring(J.length+1),F=be.slice(xe)}}i.loose||(c?i.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0)),i.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(I),loose:!1,text:I,tokens:[]}),i.raw+=h}let f=i.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let p of i.items){this.lexer.state.top=!1,p.tokens=this.lexer.blockTokens(p.text,[]);let h=p.tokens[0];if(p.task&&(h?.type==="text"||h?.type==="paragraph")){p.text=p.text.replace(this.rules.other.listReplaceTask,""),h.raw=h.raw.replace(this.rules.other.listReplaceTask,""),h.text=h.text.replace(this.rules.other.listReplaceTask,"");for(let F=this.lexer.inlineQueue.length-1;F>=0;F--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[F].src)){this.lexer.inlineQueue[F].src=this.lexer.inlineQueue[F].src.replace(this.rules.other.listReplaceTask,"");break}let I=this.rules.other.listTaskCheckbox.exec(p.raw);if(I){let F={type:"checkbox",raw:I[0]+" ",checked:I[0]!=="[ ]"};p.checked=F.checked,i.loose?p.tokens[0]&&["paragraph","text"].includes(p.tokens[0].type)&&"tokens"in p.tokens[0]&&p.tokens[0].tokens?(p.tokens[0].raw=F.raw+p.tokens[0].raw,p.tokens[0].text=F.raw+p.tokens[0].text,p.tokens[0].tokens.unshift(F)):p.tokens.unshift({type:"paragraph",raw:F.raw,text:F.raw,tokens:[F]}):p.tokens.unshift(F)}}else p.task&&(p.task=!1);if(!i.loose){let I=p.tokens.filter(H=>H.type==="space"),F=I.length>0&&I.some(H=>this.rules.other.anyLine.test(H.raw));i.loose=F}}if(i.loose)for(let p of i.items){p.loose=!0;for(let h of p.tokens)h.type==="text"&&(h.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let r=Kh(t[0]);return{type:"html",block:!0,raw:r,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:r}}}def(e){let t=this.rules.block.def.exec(e);if(t){let r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:Mi(t[0],`
|
|
88
|
-
`),href:n,title:i}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=Gh(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
89
|
-
`):[],s={type:"table",raw:Mi(t[0],`
|
|
90
|
-
`),header:[],align:[],rows:[]};if(r.length===n.length){for(let c of n)this.rules.other.tableAlignRight.test(c)?s.align.push("right"):this.rules.other.tableAlignCenter.test(c)?s.align.push("center"):this.rules.other.tableAlignLeft.test(c)?s.align.push("left"):s.align.push(null);for(let c=0;c<r.length;c++)s.header.push({text:r[c],tokens:this.lexer.inline(r[c]),header:!0,align:s.align[c]});for(let c of i)s.rows.push(Gh(c,s.header.length).map((f,p)=>({text:f,tokens:this.lexer.inline(f),header:!1,align:s.align[p]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let r=t[1].trim();return{type:"heading",raw:Mi(t[0],`
|
|
91
|
-
`),depth:t[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let r=t[1].charAt(t[1].length-1)===`
|
|
92
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let s=Mi(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=Rb(t[2],"()");if(s===-2)return;if(s>-1){let c=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,c).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],i=s[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?n=n.slice(1):n=n.slice(1,-1)),Xh(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let n=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[n.toLowerCase()];if(!i){let s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return Xh(r,i,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!r||this.rules.inline.punctuation.exec(r))){let i=[...n[0]].length-1,s,c,f=i,p=0,h=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+i);(n=h.exec(t))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(c=[...s].length,n[3]||n[4]){f+=c;continue}else if((n[5]||n[6])&&i%3&&!((i+c)%3)){p+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f+p);let I=[...n[0]][0].length,F=e.slice(0,i+n.index+I+c);if(Math.min(i,c)%2){let pe=F.slice(1,-1);return{type:"em",raw:F,text:pe,tokens:this.lexer.inlineTokens(pe)}}let H=F.slice(2,-2);return{type:"strong",raw:F,text:H,tokens:this.lexer.inlineTokens(H)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,r=""){let n=this.rules.inline.delLDelim.exec(e);if(n&&(!n[1]||!r||this.rules.inline.punctuation.exec(r))){let i=[...n[0]].length-1,s,c,f=i,p=this.rules.inline.delRDelim;for(p.lastIndex=0,t=t.slice(-1*e.length+i);(n=p.exec(t))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s||(c=[...s].length,c!==i))continue;if(n[3]||n[4]){f+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f);let h=[...n[0]][0].length,I=e.slice(0,i+n.index+h+c),F=I.slice(i,-i);return{type:"del",raw:I,text:F,tokens:this.lexer.inlineTokens(F)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let r,n;return t[2]==="@"?(r=t[1],n="mailto:"+r):(r=t[1],n=r),{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let r,n;if(t[2]==="@")r=t[0],n="mailto:"+r;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);r=t[0],t[1]==="www."?n="http://"+t[0]:n=t[0]}return{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},Zn=class uf{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ls,this.options.tokenizer=this.options.tokenizer||new fu,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Zr,block:ho.normal,inline:Ka.normal};this.options.pedantic?(r.block=ho.pedantic,r.inline=Ka.pedantic):this.options.gfm&&(r.block=ho.gfm,this.options.breaks?r.inline=Ka.breaks:r.inline=Ka.gfm),this.tokenizer.rules=r}static get rules(){return{block:ho,inline:Ka}}static lex(t,r){return new uf(r).lex(t)}static lexInline(t,r){return new uf(r).inlineTokens(t)}lex(t){t=t.replace(Zr.carriageReturn,`
|
|
93
|
-
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Zr.tabCharGlobal," ").replace(Zr.spaceLine,""));let i=1/0;for(;t;){if(t.length<i)i=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let s;if(this.options.extensions?.block?.some(f=>(s=f.call({lexer:this},t,r))?(t=t.substring(s.raw.length),r.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);let f=r.at(-1);s.raw.length===1&&f!==void 0?f.raw+=`
|
|
94
|
-
`:r.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let f=r.at(-1);f?.type==="paragraph"||f?.type==="text"?(f.raw+=(f.raw.endsWith(`
|
|
95
|
-
`)?"":`
|
|
96
|
-
`)+s.raw,f.text+=`
|
|
97
|
-
`+s.text,this.inlineQueue.at(-1).src=f.text):r.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);let f=r.at(-1);f?.type==="paragraph"||f?.type==="text"?(f.raw+=(f.raw.endsWith(`
|
|
98
|
-
`)?"":`
|
|
99
|
-
`)+s.raw,f.text+=`
|
|
100
|
-
`+s.raw,this.inlineQueue.at(-1).src=f.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},r.push(s));continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),r.push(s);continue}let c=t;if(this.options.extensions?.startBlock){let f=1/0,p=t.slice(1),h;this.options.extensions.startBlock.forEach(I=>{h=I.call({lexer:this},p),typeof h=="number"&&h>=0&&(f=Math.min(f,h))}),f<1/0&&f>=0&&(c=t.substring(0,f+1))}if(this.state.top&&(s=this.tokenizer.paragraph(c))){let f=r.at(-1);n&&f?.type==="paragraph"?(f.raw+=(f.raw.endsWith(`
|
|
101
|
-
`)?"":`
|
|
102
|
-
`)+s.raw,f.text+=`
|
|
103
|
-
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(s),n=c.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);let f=r.at(-1);f?.type==="text"?(f.raw+=(f.raw.endsWith(`
|
|
104
|
-
`)?"":`
|
|
105
|
-
`)+s.raw,f.text+=`
|
|
106
|
-
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(s);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){this.tokenizer.lexer=this;let n=t,i=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)h.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)s=i[2]?i[2].length:0,n=n.slice(0,i.index+s)+"["+"a".repeat(i[0].length-s-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let c=!1,f="",p=1/0;for(;t;){if(t.length<p)p=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}c||(f=""),c=!1;let h;if(this.options.extensions?.inline?.some(F=>(h=F.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.escape(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.tag(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.link(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(h.raw.length);let F=r.at(-1);h.type==="text"&&F?.type==="text"?(F.raw+=h.raw,F.text+=h.text):r.push(h);continue}if(h=this.tokenizer.emStrong(t,n,f)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.codespan(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.br(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.del(t,n,f)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.autolink(t)){t=t.substring(h.raw.length),r.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(t))){t=t.substring(h.raw.length),r.push(h);continue}let I=t;if(this.options.extensions?.startInline){let F=1/0,H=t.slice(1),pe;this.options.extensions.startInline.forEach(xe=>{pe=xe.call({lexer:this},H),typeof pe=="number"&&pe>=0&&(F=Math.min(F,pe))}),F<1/0&&F>=0&&(I=t.substring(0,F+1))}if(h=this.tokenizer.inlineText(I)){t=t.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(f=h.raw.slice(-1)),c=!0;let F=r.at(-1);F?.type==="text"?(F.raw+=h.raw,F.text+=h.text):r.push(h);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return r}infiniteLoopError(t){let r="Infinite loop on byte: "+t;if(this.options.silent)console.error(r);else throw new Error(r)}},du=class{options;parser;constructor(e){this.options=e||Ls}space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(Zr.notSpaceStart)?.[0],i=e.replace(Zr.endingNewline,"")+`
|
|
107
|
-
`;return n?'<pre><code class="language-'+ii(n)+'">'+(r?i:ii(i,!0))+`</code></pre>
|
|
108
|
-
`:"<pre><code>"+(r?i:ii(i,!0))+`</code></pre>
|
|
109
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
110
|
-
${this.parser.parse(e)}</blockquote>
|
|
111
|
-
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
112
|
-
`}hr(e){return`<hr>
|
|
113
|
-
`}list(e){let t=e.ordered,r=e.start,n="";for(let c=0;c<e.items.length;c++){let f=e.items[c];n+=this.listitem(f)}let i=t?"ol":"ul",s=t&&r!==1?' start="'+r+'"':"";return"<"+i+s+`>
|
|
114
|
-
`+n+"</"+i+`>
|
|
115
|
-
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
116
|
-
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
117
|
-
`}table(e){let t="",r="";for(let i=0;i<e.header.length;i++)r+=this.tablecell(e.header[i]);t+=this.tablerow({text:r});let n="";for(let i=0;i<e.rows.length;i++){let s=e.rows[i];r="";for(let c=0;c<s.length;c++)r+=this.tablecell(s[c]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
118
|
-
<thead>
|
|
119
|
-
`+t+`</thead>
|
|
120
|
-
`+n+`</table>
|
|
121
|
-
`}tablerow({text:e}){return`<tr>
|
|
122
|
-
${e}</tr>
|
|
123
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
|
|
124
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ii(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),i=Wh(e);if(i===null)return n;e=i;let s='<a href="'+e+'"';return t&&(s+=' title="'+ii(t)+'"'),s+=">"+n+"</a>",s}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=Wh(e);if(i===null)return ii(r);e=i;let s=`<img src="${e}" alt="${ii(r)}"`;return t&&(s+=` title="${ii(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ii(e.text)}},rd=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},Jn=class cf{options;renderer;textRenderer;constructor(t){this.options=t||Ls,this.options.renderer=this.options.renderer||new du,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new rd}static parse(t,r){return new cf(r).parse(t)}static parseInline(t,r){return new cf(r).parseInline(t)}parse(t){this.renderer.parser=this;let r="";for(let n=0;n<t.length;n++){let i=t[n];if(this.options.extensions?.renderers?.[i.type]){let c=i,f=this.options.extensions.renderers[c.type].call({parser:this},c);if(f!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){r+=f||"";continue}}let s=i;switch(s.type){case"space":{r+=this.renderer.space(s);break}case"hr":{r+=this.renderer.hr(s);break}case"heading":{r+=this.renderer.heading(s);break}case"code":{r+=this.renderer.code(s);break}case"table":{r+=this.renderer.table(s);break}case"blockquote":{r+=this.renderer.blockquote(s);break}case"list":{r+=this.renderer.list(s);break}case"checkbox":{r+=this.renderer.checkbox(s);break}case"html":{r+=this.renderer.html(s);break}case"def":{r+=this.renderer.def(s);break}case"paragraph":{r+=this.renderer.paragraph(s);break}case"text":{r+=this.renderer.text(s);break}default:{let c='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}parseInline(t,r=this.renderer){this.renderer.parser=this;let n="";for(let i=0;i<t.length;i++){let s=t[i];if(this.options.extensions?.renderers?.[s.type]){let f=this.options.extensions.renderers[s.type].call({parser:this},s);if(f!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=f||"";continue}}let c=s;switch(c.type){case"escape":{n+=r.text(c);break}case"html":{n+=r.html(c);break}case"link":{n+=r.link(c);break}case"image":{n+=r.image(c);break}case"checkbox":{n+=r.checkbox(c);break}case"strong":{n+=r.strong(c);break}case"em":{n+=r.em(c);break}case"codespan":{n+=r.codespan(c);break}case"br":{n+=r.br(c);break}case"del":{n+=r.del(c);break}case"text":{n+=r.text(c);break}default:{let f='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return n}},rl=class{options;block;constructor(e){this.options=e||Ls}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Zn.lex:Zn.lexInline}provideParser(e=this.block){return e?Jn.parse:Jn.parseInline}},qb=class{defaults=K0();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Jn;Renderer=du;TextRenderer=rd;Lexer=Zn;Tokenizer=fu;Hooks=rl;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":{let i=n;for(let s of i.header)r=r.concat(this.walkTokens(s.tokens,t));for(let s of i.rows)for(let c of s)r=r.concat(this.walkTokens(c.tokens,t));break}case"list":{let i=n;r=r.concat(this.walkTokens(i.items,t));break}default:{let i=n;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(s=>{let c=i[s].flat(1/0);r=r.concat(this.walkTokens(c,t))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let s=t.renderers[i.name];s?t.renderers[i.name]=function(...c){let f=i.renderer.apply(this,c);return f===!1&&(f=s.apply(this,c)),f}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=t[i.level];s?s.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),n.extensions=t),r.renderer){let i=this.defaults.renderer||new du(this.defaults);for(let s in r.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let c=s,f=r.renderer[c],p=i[c];i[c]=(...h)=>{let I=f.apply(i,h);return I===!1&&(I=p.apply(i,h)),I||""}}n.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new fu(this.defaults);for(let s in r.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let c=s,f=r.tokenizer[c],p=i[c];i[c]=(...h)=>{let I=f.apply(i,h);return I===!1&&(I=p.apply(i,h)),I}}n.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new rl;for(let s in r.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let c=s,f=r.hooks[c],p=i[c];rl.passThroughHooks.has(s)?i[c]=h=>{if(this.defaults.async&&rl.passThroughHooksRespectAsync.has(s))return(async()=>{let F=await f.call(i,h);return p.call(i,F)})();let I=f.call(i,h);return p.call(i,I)}:i[c]=(...h)=>{if(this.defaults.async)return(async()=>{let F=await f.apply(i,h);return F===!1&&(F=await p.apply(i,h)),F})();let I=f.apply(i,h);return I===!1&&(I=p.apply(i,h)),I}}n.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,s=r.walkTokens;n.walkTokens=function(c){let f=[];return f.push(s.call(this,c)),i&&(f=f.concat(i.call(this,c))),f}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Zn.lex(e,t??this.defaults)}parser(e,t){return Jn.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},i={...this.defaults,...n},s=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&n.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let c=i.hooks?await i.hooks.preprocess(t):t,f=await(i.hooks?await i.hooks.provideLexer(e):e?Zn.lex:Zn.lexInline)(c,i),p=i.hooks?await i.hooks.processAllTokens(f):f;i.walkTokens&&await Promise.all(this.walkTokens(p,i.walkTokens));let h=await(i.hooks?await i.hooks.provideParser(e):e?Jn.parse:Jn.parseInline)(p,i);return i.hooks?await i.hooks.postprocess(h):h})().catch(s);try{i.hooks&&(t=i.hooks.preprocess(t));let c=(i.hooks?i.hooks.provideLexer(e):e?Zn.lex:Zn.lexInline)(t,i);i.hooks&&(c=i.hooks.processAllTokens(c)),i.walkTokens&&this.walkTokens(c,i.walkTokens);let f=(i.hooks?i.hooks.provideParser(e):e?Jn.parse:Jn.parseInline)(c,i);return i.hooks&&(f=i.hooks.postprocess(f)),f}catch(c){return s(c)}}}onError(e,t){return r=>{if(r.message+=`
|
|
125
|
-
Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+ii(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},qs=new qb;function ar(e,t){return qs.parse(e,t)}ar.options=ar.setOptions=function(e){return qs.setOptions(e),ar.defaults=qs.defaults,T1(ar.defaults),ar};ar.getDefaults=K0;ar.defaults=Ls;ar.use=function(...e){return qs.use(...e),ar.defaults=qs.defaults,T1(ar.defaults),ar};ar.walkTokens=function(e,t){return qs.walkTokens(e,t)};ar.parseInline=qs.parseInline;ar.Parser=Jn;ar.parser=Jn.parse;ar.Renderer=du;ar.TextRenderer=rd;ar.Lexer=Zn;ar.lexer=Zn.lex;ar.Tokenizer=fu;ar.Hooks=rl;ar.parse=ar;ar.options;ar.setOptions;ar.use;ar.walkTokens;ar.parseInline;Jn.parse;Zn.lex;const B1=72,$f=20,ff=400,P1=()=>new URLSearchParams(window.location.search);function j1(){const e=Number(P1().get("width"));return Number.isFinite(e)&&e>=$f&&e<=ff?e:B1}function Mb(e){const t=P1();e===B1?t.delete("width"):t.set("width",String(e));const r=t.toString();window.history.replaceState({},"",window.location.pathname+(r?"?"+r:""))}function U1({html:e}){return Fe.jsx("div",{className:"markup",style:{maxWidth:`${j1()}ch`},dangerouslySetInnerHTML:{__html:e}})}function Qh({rerender:e}){const t=j1(),[r,n]=gt.useState(String(t));gt.useEffect(()=>n(String(t)),[t]);const i=Number(r),s=r.trim()!==""&&Number.isInteger(i)&&i>=$f&&i<=ff;return Fe.jsx("input",{className:"markup-width"+(s?"":" invalid"),type:"text",inputMode:"numeric",title:"width, ch",value:r,onChange:c=>{const f=c.target.value;n(f);const p=Number(f);f.trim()!==""&&Number.isInteger(p)&&p>=$f&&p<=ff&&(Mb(p),e())}})}const Db=/^([a-z][a-z0-9+.-]*:|\/\/|\/|#)/i;function Lb(e){try{return decodeURIComponent(e)}catch{return e}}function Fb(e,t){if(!t)return null;const r=e.trim();if(!r||Db.test(r))return null;const n=r.split(/[?#]/,1)[0],i=Wr(t).slice(0,-1);for(const s of n.split("/"))s===""||s==="."||(s===".."?i.pop():i.push(Lb(s)));return ds(ti(i))}function Bb(e,t){if(!t||!e.includes("<img"))return e;const r=document.createElement("template");r.innerHTML=e;for(const n of r.content.querySelectorAll("img[src]")){const i=Fb(n.getAttribute("src")||"",t);i&&n.setAttribute("src",i)}return r.innerHTML}function H1(e,t){const r=b1(ar.parse(String(e??""),{async:!1}));return Bb(r,t)}function Pb({node:e}){return W0(e),Fe.jsxs("div",{className:"text",children:[e.title&&Fe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Fe.jsx("p",{className:"chapter-subtitle",children:e.description}),Fe.jsx(U1,{html:H1(Ca(e.value),e.path)})]})}function jb({chunk:e}){return Fe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:H1(e.value,e.documentPath)}})}class zt extends Error{constructor(t,r){var n="KaTeX parse error: "+t,i,s,c=r&&r.loc;if(c&&c.start<=c.end){var f=c.lexer.input;i=c.start,s=c.end,i===f.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var p=f.slice(i,s).replace(/[^]/g,"$&̲"),h;i>15?h="…"+f.slice(i-15,i):h=f.slice(0,i);var I;s+15<f.length?I=f.slice(s,s+15)+"…":I=f.slice(s),n+=h+p+I}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,zt.prototype),this.position=i,i!=null&&s!=null&&(this.length=s-i),this.rawMessage=t}}var Ub=/([A-Z])/g,Hb=e=>e.replace(Ub,"-$1").toLowerCase(),Vb={"&":"&",">":">","<":"<",'"':""","'":"'"},Yb=/[&><"']/g,Jr=e=>String(e).replace(Yb,t=>Vb[t]),Lo=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?Lo(e.body[0]):e:e.type==="font"?Lo(e.body):e,Wb=new Set(["mathord","textord","atom"]),Ri=e=>Wb.has(Lo(e).type),Gb=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},df={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function Kb(e){if(typeof e!="string")return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function Xb(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return Kb(t)}function Qb(e,t,r,n){var i=r[t];e[t]=i!==void 0?n.processor?n.processor(i):i:Xb(n)}class nd{constructor(t){t===void 0&&(t={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r of Object.keys(df)){var n=df[r];n&&Qb(this,r,t,n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new zt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=Gb(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class Di{constructor(t,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=n}sup(){return ai[Zb[this.id]]}sub(){return ai[Jb[this.id]]}fracNum(){return ai[Ob[this.id]]}fracDen(){return ai[e3[this.id]]}cramp(){return ai[t3[this.id]]}text(){return ai[r3[this.id]]}isTight(){return this.size>=2}}var id=0,hu=1,$a=2,ki=3,Dl=4,Pn=5,ba=6,an=7,ai=[new Di(id,0,!1),new Di(hu,0,!0),new Di($a,1,!1),new Di(ki,1,!0),new Di(Dl,2,!1),new Di(Pn,2,!0),new Di(ba,3,!1),new Di(an,3,!0)],Zb=[Dl,Pn,Dl,Pn,ba,an,ba,an],Jb=[Pn,Pn,Pn,Pn,an,an,an,an],Ob=[$a,ki,Dl,Pn,ba,an,ba,an],e3=[ki,ki,Pn,Pn,an,an,an,an],t3=[hu,hu,ki,ki,Pn,Pn,an,an],r3=[id,hu,$a,ki,$a,ki,$a,ki],Gt={DISPLAY:ai[id],TEXT:ai[$a],SCRIPT:ai[Dl],SCRIPTSCRIPT:ai[ba]},hf=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function n3(e){for(var t=0;t<hf.length;t++)for(var r=hf[t],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(e>=i[0]&&e<=i[1])return r.name}return null}var Fo=[];hf.forEach(e=>e.blocks.forEach(t=>Fo.push(...t)));function V1(e){for(var t=0;t<Fo.length;t+=2)if(e>=Fo[t]&&e<=Fo[t+1])return!0;return!1}var Ir=e=>e+" "+e,Vs=80,i3=function(t,r){return"M95,"+(622+t+r)+`
|
|
126
|
-
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
127
|
-
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
128
|
-
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
129
|
-
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
130
|
-
c69,-144,104.5,-217.7,106.5,-221
|
|
131
|
-
l`+t/2.075+" -"+t+`
|
|
132
|
-
c5.3,-9.3,12,-14,20,-14
|
|
133
|
-
H400000v`+(40+t)+`H845.2724
|
|
134
|
-
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
135
|
-
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
136
|
-
M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},s3=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
|
|
137
|
-
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
138
|
-
c340,-704.7,510.7,-1060.3,512,-1067
|
|
139
|
-
l`+t/2.084+" -"+t+`
|
|
140
|
-
c4.7,-7.3,11,-11,19,-11
|
|
141
|
-
H40000v`+(40+t)+`H1012.3
|
|
142
|
-
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
143
|
-
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
144
|
-
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
145
|
-
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
146
|
-
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},a3=function(t,r){return"M983 "+(10+t+r)+`
|
|
147
|
-
l`+t/3.13+" -"+t+`
|
|
148
|
-
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
149
|
-
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
150
|
-
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
151
|
-
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
152
|
-
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
153
|
-
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
154
|
-
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
155
|
-
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},l3=function(t,r){return"M424,"+(2398+t+r)+`
|
|
156
|
-
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
157
|
-
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
158
|
-
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
159
|
-
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
160
|
-
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
161
|
-
v`+(40+t)+`H1014.6
|
|
162
|
-
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
163
|
-
c-2,6,-10,9,-24,9
|
|
164
|
-
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
|
|
165
|
-
h400000v`+(40+t)+"h-400000z"},o3=function(t,r){return"M473,"+(2713+t+r)+`
|
|
166
|
-
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
167
|
-
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
168
|
-
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
169
|
-
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
170
|
-
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
171
|
-
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
172
|
-
606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},u3=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},c3=function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
|
|
173
|
-
H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
174
|
-
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
175
|
-
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
176
|
-
219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},$3=function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=i3(r,Vs);break;case"sqrtSize1":i=s3(r,Vs);break;case"sqrtSize2":i=a3(r,Vs);break;case"sqrtSize3":i=l3(r,Vs);break;case"sqrtSize4":i=o3(r,Vs);break;case"sqrtTall":i=c3(r,Vs,n)}return i},f3=function(t,r){switch(t){case"⎜":return Ir("M291 0 H417 V"+r+" H291z");case"∣":return Ir("M145 0 H188 V"+r+" H145z");case"∥":return Ir("M145 0 H188 V"+r+" H145z")+Ir("M367 0 H410 V"+r+" H367z");case"⎟":return Ir("M457 0 H583 V"+r+" H457z");case"⎢":return Ir("M319 0 H403 V"+r+" H319z");case"⎥":return Ir("M263 0 H347 V"+r+" H263z");case"⎪":return Ir("M384 0 H504 V"+r+" H384z");case"⏐":return Ir("M312 0 H355 V"+r+" H312z");case"‖":return Ir("M257 0 H300 V"+r+" H257z")+Ir("M478 0 H521 V"+r+" H478z");default:return""}},Zh={doubleleftarrow:`M262 157
|
|
177
|
-
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
178
|
-
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
179
|
-
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
180
|
-
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
181
|
-
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
182
|
-
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
183
|
-
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
184
|
-
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
185
|
-
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
186
|
-
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
187
|
-
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
188
|
-
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
189
|
-
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
190
|
-
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
191
|
-
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
192
|
-
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
193
|
-
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
194
|
-
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
195
|
-
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
196
|
-
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
197
|
-
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
198
|
-
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
199
|
-
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
200
|
-
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
201
|
-
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
202
|
-
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
203
|
-
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
204
|
-
435 0h399565z`,leftgroupunder:`M400000 262
|
|
205
|
-
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
206
|
-
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
207
|
-
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
208
|
-
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
209
|
-
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
210
|
-
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
211
|
-
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
212
|
-
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
213
|
-
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
214
|
-
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
215
|
-
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
216
|
-
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
217
|
-
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
218
|
-
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
219
|
-
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
220
|
-
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
221
|
-
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
222
|
-
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Ir("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:Ir("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:Ir("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:Ir("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
223
|
-
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
224
|
-
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
225
|
-
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Ir("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
|
|
226
|
-
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
227
|
-
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
228
|
-
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
229
|
-
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
230
|
-
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
231
|
-
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
232
|
-
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
233
|
-
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
234
|
-
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
235
|
-
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
236
|
-
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
237
|
-
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
238
|
-
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
239
|
-
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
240
|
-
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
241
|
-
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
242
|
-
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
243
|
-
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
244
|
-
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
245
|
-
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
246
|
-
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
247
|
-
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
248
|
-
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
249
|
-
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
250
|
-
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
251
|
-
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
252
|
-
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
253
|
-
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
254
|
-
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
255
|
-
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
256
|
-
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
257
|
-
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
258
|
-
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
259
|
-
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
260
|
-
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
261
|
-
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
262
|
-
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
263
|
-
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
264
|
-
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
265
|
-
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
266
|
-
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
267
|
-
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
268
|
-
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
269
|
-
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
270
|
-
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
271
|
-
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
272
|
-
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
273
|
-
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
274
|
-
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Ir("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:Ir("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:Ir("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
275
|
-
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
276
|
-
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
277
|
-
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
278
|
-
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
279
|
-
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
280
|
-
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
281
|
-
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
282
|
-
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
283
|
-
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
284
|
-
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
285
|
-
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
286
|
-
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
287
|
-
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
288
|
-
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
289
|
-
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
290
|
-
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
291
|
-
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
292
|
-
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
293
|
-
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
294
|
-
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
295
|
-
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
296
|
-
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
297
|
-
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
298
|
-
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
299
|
-
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
300
|
-
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
301
|
-
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
302
|
-
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
303
|
-
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
304
|
-
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
305
|
-
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
306
|
-
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
307
|
-
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
308
|
-
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
309
|
-
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
310
|
-
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
311
|
-
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
312
|
-
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
313
|
-
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
314
|
-
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
315
|
-
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
316
|
-
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
317
|
-
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
318
|
-
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
319
|
-
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
320
|
-
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
321
|
-
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
322
|
-
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
323
|
-
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
324
|
-
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
325
|
-
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
326
|
-
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
327
|
-
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
328
|
-
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
329
|
-
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
330
|
-
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
331
|
-
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
332
|
-
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
333
|
-
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
334
|
-
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
335
|
-
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
336
|
-
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
337
|
-
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
338
|
-
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
339
|
-
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
340
|
-
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
341
|
-
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
342
|
-
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
343
|
-
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
344
|
-
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
345
|
-
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
346
|
-
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
347
|
-
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},d3=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 v84 h347 v-84
|
|
348
|
-
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
|
|
349
|
-
M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
350
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
351
|
-
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
352
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
353
|
-
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
|
|
354
|
-
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
|
|
355
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
356
|
-
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
|
|
357
|
-
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
|
|
358
|
-
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
|
|
359
|
-
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
|
|
360
|
-
M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
361
|
-
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
362
|
-
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
363
|
-
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
364
|
-
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
365
|
-
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
366
|
-
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
367
|
-
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
368
|
-
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
369
|
-
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
|
|
370
|
-
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
371
|
-
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
372
|
-
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
373
|
-
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
374
|
-
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
375
|
-
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};function h3(e){return"toText"in e}class Ia{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){return this.children.map(t=>{if(h3(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}}var pf={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},p3={ex:!0,em:!0,mu:!0},Y1=function(t){return typeof t!="string"&&(t=t.unit),t in pf||t in p3||t==="ex"},vr=function(t,r){var n;if(t.unit in pf)n=pf[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,t.unit==="ex")n=i.fontMetrics().xHeight;else if(t.unit==="em")n=i.fontMetrics().quad;else throw new zt("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},Nt=function(t){return+t.toFixed(4)+"em"},is=function(t){return t.filter(r=>r).join(" ")},sd=function(t){var r="";for(var n of Object.keys(t)){var i=t[n];i!==void 0&&(r+=Hb(n)+":"+i+";")}return r},W1=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},G1=function(t){var r=document.createElement(t);r.className=is(this.classes),Object.assign(r.style,this.style);for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r},_3=/[\s"'>/=\x00-\x1f]/,K1=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+Jr(is(this.classes))+'"');var n=sd(this.style);n&&(r+=' style="'+Jr(n)+'"');for(var i of Object.keys(this.attributes)){if(_3.test(i))throw new zt("Invalid attribute name '"+i+"'");r+=" "+i+'="'+Jr(this.attributes[i])+'"'}r+=">";for(var s=0;s<this.children.length;s++)r+=this.children[s].toMarkup();return r+="</"+t+">",r};class qa{constructor(t,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,W1.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return G1.call(this,"span")}toMarkup(){return K1.call(this,"span")}}class Wu{constructor(t,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,W1.call(this,r,i),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return G1.call(this,"a")}toMarkup(){return K1.call(this,"a")}}class m3{constructor(t,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");return t.src=this.src,t.alt=this.alt,t.className="mord",Object.assign(t.style,this.style),t}toMarkup(){var t='<img src="'+Jr(this.src)+'"'+(' alt="'+Jr(this.alt)+'"'),r=sd(this.style);return r&&(t+=' style="'+Jr(r)+'"'),t+="'/>",t}}var g3={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class zn{constructor(t,r,n,i,s,c,f,p){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=s||0,this.width=c||0,this.classes=f||[],this.style=p||{},this.maxFontSize=0;var h=n3(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=g3[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;return this.italic>0&&(r=document.createElement("span"),r.style.marginRight=Nt(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=is(this.classes)),Object.keys(this.style).length>0&&(r=r||document.createElement("span"),Object.assign(r.style,this.style)),r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=Jr(is(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+Nt(this.italic)+";"),n+=sd(this.style),n&&(t=!0,r+=' style="'+Jr(n)+'"');var i=Jr(this.text);return t?(r+=">",r+=i,r+="</span>",r):i}}class Ti{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))t+=" "+r+'="'+Jr(this.attributes[r])+'"';t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class ss{constructor(t,r){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",Zh[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Jr(this.alternate)+'"/>':'<path d="'+Jr(Zh[this.pathName])+'"/>'}}class _f{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="<line";for(var r of Object.keys(this.attributes))t+=" "+r+'="'+Jr(this.attributes[r])+'"';return t+="/>",t}}function v3(e){if(e instanceof zn)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function y3(e){if(e instanceof qa)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var b3=e=>e instanceof qa||e instanceof Wu||e instanceof Ia,ui={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},po={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Jh={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function x3(e,t){ui[e]=t}function ad(e,t,r){if(!ui[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=ui[t][n];if(!i&&e[0]in Jh&&(n=Jh[e[0]].charCodeAt(0),i=ui[t][n]),!i&&r==="text"&&V1(n)&&(i=ui[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Lc={};function w3(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Lc[t]){var r=Lc[t]={cssEmPerMu:po.quad[t]/18};for(var n in po)po.hasOwnProperty(n)&&(r[n]=po[n][t])}return Lc[t]}var hr={math:{},text:{}};function he(e,t,r,n,i,s){hr[e][i]={font:t,group:r,replace:n},s&&n&&(hr[e][n]=hr[e][i])}var Ce="math",wt="text",Ve="main",ot="ams",pr="accent-token",Lt="bin",fn="close",Ma="inner",Pt="mathord",Nr="op-token",qn="open",Gl="punct",ut="rel",Ni="spacing",pt="textord";he(Ce,Ve,ut,"≡","\\equiv",!0);he(Ce,Ve,ut,"≺","\\prec",!0);he(Ce,Ve,ut,"≻","\\succ",!0);he(Ce,Ve,ut,"∼","\\sim",!0);he(Ce,Ve,ut,"⊥","\\perp");he(Ce,Ve,ut,"⪯","\\preceq",!0);he(Ce,Ve,ut,"⪰","\\succeq",!0);he(Ce,Ve,ut,"≃","\\simeq",!0);he(Ce,Ve,ut,"∣","\\mid",!0);he(Ce,Ve,ut,"≪","\\ll",!0);he(Ce,Ve,ut,"≫","\\gg",!0);he(Ce,Ve,ut,"≍","\\asymp",!0);he(Ce,Ve,ut,"∥","\\parallel");he(Ce,Ve,ut,"⋈","\\bowtie",!0);he(Ce,Ve,ut,"⌣","\\smile",!0);he(Ce,Ve,ut,"⊑","\\sqsubseteq",!0);he(Ce,Ve,ut,"⊒","\\sqsupseteq",!0);he(Ce,Ve,ut,"≐","\\doteq",!0);he(Ce,Ve,ut,"⌢","\\frown",!0);he(Ce,Ve,ut,"∋","\\ni",!0);he(Ce,Ve,ut,"∝","\\propto",!0);he(Ce,Ve,ut,"⊢","\\vdash",!0);he(Ce,Ve,ut,"⊣","\\dashv",!0);he(Ce,Ve,ut,"∋","\\owns");he(Ce,Ve,Gl,".","\\ldotp");he(Ce,Ve,Gl,"⋅","\\cdotp");he(Ce,Ve,Gl,"⋅","·");he(wt,Ve,pt,"⋅","·");he(Ce,Ve,pt,"#","\\#");he(wt,Ve,pt,"#","\\#");he(Ce,Ve,pt,"&","\\&");he(wt,Ve,pt,"&","\\&");he(Ce,Ve,pt,"ℵ","\\aleph",!0);he(Ce,Ve,pt,"∀","\\forall",!0);he(Ce,Ve,pt,"ℏ","\\hbar",!0);he(Ce,Ve,pt,"∃","\\exists",!0);he(Ce,Ve,pt,"∇","\\nabla",!0);he(Ce,Ve,pt,"♭","\\flat",!0);he(Ce,Ve,pt,"ℓ","\\ell",!0);he(Ce,Ve,pt,"♮","\\natural",!0);he(Ce,Ve,pt,"♣","\\clubsuit",!0);he(Ce,Ve,pt,"℘","\\wp",!0);he(Ce,Ve,pt,"♯","\\sharp",!0);he(Ce,Ve,pt,"♢","\\diamondsuit",!0);he(Ce,Ve,pt,"ℜ","\\Re",!0);he(Ce,Ve,pt,"♡","\\heartsuit",!0);he(Ce,Ve,pt,"ℑ","\\Im",!0);he(Ce,Ve,pt,"♠","\\spadesuit",!0);he(Ce,Ve,pt,"§","\\S",!0);he(wt,Ve,pt,"§","\\S");he(Ce,Ve,pt,"¶","\\P",!0);he(wt,Ve,pt,"¶","\\P");he(Ce,Ve,pt,"†","\\dag");he(wt,Ve,pt,"†","\\dag");he(wt,Ve,pt,"†","\\textdagger");he(Ce,Ve,pt,"‡","\\ddag");he(wt,Ve,pt,"‡","\\ddag");he(wt,Ve,pt,"‡","\\textdaggerdbl");he(Ce,Ve,fn,"⎱","\\rmoustache",!0);he(Ce,Ve,qn,"⎰","\\lmoustache",!0);he(Ce,Ve,fn,"⟯","\\rgroup",!0);he(Ce,Ve,qn,"⟮","\\lgroup",!0);he(Ce,Ve,Lt,"∓","\\mp",!0);he(Ce,Ve,Lt,"⊖","\\ominus",!0);he(Ce,Ve,Lt,"⊎","\\uplus",!0);he(Ce,Ve,Lt,"⊓","\\sqcap",!0);he(Ce,Ve,Lt,"∗","\\ast");he(Ce,Ve,Lt,"⊔","\\sqcup",!0);he(Ce,Ve,Lt,"◯","\\bigcirc",!0);he(Ce,Ve,Lt,"∙","\\bullet",!0);he(Ce,Ve,Lt,"‡","\\ddagger");he(Ce,Ve,Lt,"≀","\\wr",!0);he(Ce,Ve,Lt,"⨿","\\amalg");he(Ce,Ve,Lt,"&","\\And");he(Ce,Ve,ut,"⟵","\\longleftarrow",!0);he(Ce,Ve,ut,"⇐","\\Leftarrow",!0);he(Ce,Ve,ut,"⟸","\\Longleftarrow",!0);he(Ce,Ve,ut,"⟶","\\longrightarrow",!0);he(Ce,Ve,ut,"⇒","\\Rightarrow",!0);he(Ce,Ve,ut,"⟹","\\Longrightarrow",!0);he(Ce,Ve,ut,"↔","\\leftrightarrow",!0);he(Ce,Ve,ut,"⟷","\\longleftrightarrow",!0);he(Ce,Ve,ut,"⇔","\\Leftrightarrow",!0);he(Ce,Ve,ut,"⟺","\\Longleftrightarrow",!0);he(Ce,Ve,ut,"↦","\\mapsto",!0);he(Ce,Ve,ut,"⟼","\\longmapsto",!0);he(Ce,Ve,ut,"↗","\\nearrow",!0);he(Ce,Ve,ut,"↩","\\hookleftarrow",!0);he(Ce,Ve,ut,"↪","\\hookrightarrow",!0);he(Ce,Ve,ut,"↘","\\searrow",!0);he(Ce,Ve,ut,"↼","\\leftharpoonup",!0);he(Ce,Ve,ut,"⇀","\\rightharpoonup",!0);he(Ce,Ve,ut,"↙","\\swarrow",!0);he(Ce,Ve,ut,"↽","\\leftharpoondown",!0);he(Ce,Ve,ut,"⇁","\\rightharpoondown",!0);he(Ce,Ve,ut,"↖","\\nwarrow",!0);he(Ce,Ve,ut,"⇌","\\rightleftharpoons",!0);he(Ce,ot,ut,"≮","\\nless",!0);he(Ce,ot,ut,"","\\@nleqslant");he(Ce,ot,ut,"","\\@nleqq");he(Ce,ot,ut,"⪇","\\lneq",!0);he(Ce,ot,ut,"≨","\\lneqq",!0);he(Ce,ot,ut,"","\\@lvertneqq");he(Ce,ot,ut,"⋦","\\lnsim",!0);he(Ce,ot,ut,"⪉","\\lnapprox",!0);he(Ce,ot,ut,"⊀","\\nprec",!0);he(Ce,ot,ut,"⋠","\\npreceq",!0);he(Ce,ot,ut,"⋨","\\precnsim",!0);he(Ce,ot,ut,"⪹","\\precnapprox",!0);he(Ce,ot,ut,"≁","\\nsim",!0);he(Ce,ot,ut,"","\\@nshortmid");he(Ce,ot,ut,"∤","\\nmid",!0);he(Ce,ot,ut,"⊬","\\nvdash",!0);he(Ce,ot,ut,"⊭","\\nvDash",!0);he(Ce,ot,ut,"⋪","\\ntriangleleft");he(Ce,ot,ut,"⋬","\\ntrianglelefteq",!0);he(Ce,ot,ut,"⊊","\\subsetneq",!0);he(Ce,ot,ut,"","\\@varsubsetneq");he(Ce,ot,ut,"⫋","\\subsetneqq",!0);he(Ce,ot,ut,"","\\@varsubsetneqq");he(Ce,ot,ut,"≯","\\ngtr",!0);he(Ce,ot,ut,"","\\@ngeqslant");he(Ce,ot,ut,"","\\@ngeqq");he(Ce,ot,ut,"⪈","\\gneq",!0);he(Ce,ot,ut,"≩","\\gneqq",!0);he(Ce,ot,ut,"","\\@gvertneqq");he(Ce,ot,ut,"⋧","\\gnsim",!0);he(Ce,ot,ut,"⪊","\\gnapprox",!0);he(Ce,ot,ut,"⊁","\\nsucc",!0);he(Ce,ot,ut,"⋡","\\nsucceq",!0);he(Ce,ot,ut,"⋩","\\succnsim",!0);he(Ce,ot,ut,"⪺","\\succnapprox",!0);he(Ce,ot,ut,"≆","\\ncong",!0);he(Ce,ot,ut,"","\\@nshortparallel");he(Ce,ot,ut,"∦","\\nparallel",!0);he(Ce,ot,ut,"⊯","\\nVDash",!0);he(Ce,ot,ut,"⋫","\\ntriangleright");he(Ce,ot,ut,"⋭","\\ntrianglerighteq",!0);he(Ce,ot,ut,"","\\@nsupseteqq");he(Ce,ot,ut,"⊋","\\supsetneq",!0);he(Ce,ot,ut,"","\\@varsupsetneq");he(Ce,ot,ut,"⫌","\\supsetneqq",!0);he(Ce,ot,ut,"","\\@varsupsetneqq");he(Ce,ot,ut,"⊮","\\nVdash",!0);he(Ce,ot,ut,"⪵","\\precneqq",!0);he(Ce,ot,ut,"⪶","\\succneqq",!0);he(Ce,ot,ut,"","\\@nsubseteqq");he(Ce,ot,Lt,"⊴","\\unlhd");he(Ce,ot,Lt,"⊵","\\unrhd");he(Ce,ot,ut,"↚","\\nleftarrow",!0);he(Ce,ot,ut,"↛","\\nrightarrow",!0);he(Ce,ot,ut,"⇍","\\nLeftarrow",!0);he(Ce,ot,ut,"⇏","\\nRightarrow",!0);he(Ce,ot,ut,"↮","\\nleftrightarrow",!0);he(Ce,ot,ut,"⇎","\\nLeftrightarrow",!0);he(Ce,ot,ut,"△","\\vartriangle");he(Ce,ot,pt,"ℏ","\\hslash");he(Ce,ot,pt,"▽","\\triangledown");he(Ce,ot,pt,"◊","\\lozenge");he(Ce,ot,pt,"Ⓢ","\\circledS");he(Ce,ot,pt,"®","\\circledR");he(wt,ot,pt,"®","\\circledR");he(Ce,ot,pt,"∡","\\measuredangle",!0);he(Ce,ot,pt,"∄","\\nexists");he(Ce,ot,pt,"℧","\\mho");he(Ce,ot,pt,"Ⅎ","\\Finv",!0);he(Ce,ot,pt,"⅁","\\Game",!0);he(Ce,ot,pt,"‵","\\backprime");he(Ce,ot,pt,"▲","\\blacktriangle");he(Ce,ot,pt,"▼","\\blacktriangledown");he(Ce,ot,pt,"■","\\blacksquare");he(Ce,ot,pt,"⧫","\\blacklozenge");he(Ce,ot,pt,"★","\\bigstar");he(Ce,ot,pt,"∢","\\sphericalangle",!0);he(Ce,ot,pt,"∁","\\complement",!0);he(Ce,ot,pt,"ð","\\eth",!0);he(wt,Ve,pt,"ð","ð");he(Ce,ot,pt,"╱","\\diagup");he(Ce,ot,pt,"╲","\\diagdown");he(Ce,ot,pt,"□","\\square");he(Ce,ot,pt,"□","\\Box");he(Ce,ot,pt,"◊","\\Diamond");he(Ce,ot,pt,"¥","\\yen",!0);he(wt,ot,pt,"¥","\\yen",!0);he(Ce,ot,pt,"✓","\\checkmark",!0);he(wt,ot,pt,"✓","\\checkmark");he(Ce,ot,pt,"ℶ","\\beth",!0);he(Ce,ot,pt,"ℸ","\\daleth",!0);he(Ce,ot,pt,"ℷ","\\gimel",!0);he(Ce,ot,pt,"ϝ","\\digamma",!0);he(Ce,ot,pt,"ϰ","\\varkappa");he(Ce,ot,qn,"┌","\\@ulcorner",!0);he(Ce,ot,fn,"┐","\\@urcorner",!0);he(Ce,ot,qn,"└","\\@llcorner",!0);he(Ce,ot,fn,"┘","\\@lrcorner",!0);he(Ce,ot,ut,"≦","\\leqq",!0);he(Ce,ot,ut,"⩽","\\leqslant",!0);he(Ce,ot,ut,"⪕","\\eqslantless",!0);he(Ce,ot,ut,"≲","\\lesssim",!0);he(Ce,ot,ut,"⪅","\\lessapprox",!0);he(Ce,ot,ut,"≊","\\approxeq",!0);he(Ce,ot,Lt,"⋖","\\lessdot");he(Ce,ot,ut,"⋘","\\lll",!0);he(Ce,ot,ut,"≶","\\lessgtr",!0);he(Ce,ot,ut,"⋚","\\lesseqgtr",!0);he(Ce,ot,ut,"⪋","\\lesseqqgtr",!0);he(Ce,ot,ut,"≑","\\doteqdot");he(Ce,ot,ut,"≓","\\risingdotseq",!0);he(Ce,ot,ut,"≒","\\fallingdotseq",!0);he(Ce,ot,ut,"∽","\\backsim",!0);he(Ce,ot,ut,"⋍","\\backsimeq",!0);he(Ce,ot,ut,"⫅","\\subseteqq",!0);he(Ce,ot,ut,"⋐","\\Subset",!0);he(Ce,ot,ut,"⊏","\\sqsubset",!0);he(Ce,ot,ut,"≼","\\preccurlyeq",!0);he(Ce,ot,ut,"⋞","\\curlyeqprec",!0);he(Ce,ot,ut,"≾","\\precsim",!0);he(Ce,ot,ut,"⪷","\\precapprox",!0);he(Ce,ot,ut,"⊲","\\vartriangleleft");he(Ce,ot,ut,"⊴","\\trianglelefteq");he(Ce,ot,ut,"⊨","\\vDash",!0);he(Ce,ot,ut,"⊪","\\Vvdash",!0);he(Ce,ot,ut,"⌣","\\smallsmile");he(Ce,ot,ut,"⌢","\\smallfrown");he(Ce,ot,ut,"≏","\\bumpeq",!0);he(Ce,ot,ut,"≎","\\Bumpeq",!0);he(Ce,ot,ut,"≧","\\geqq",!0);he(Ce,ot,ut,"⩾","\\geqslant",!0);he(Ce,ot,ut,"⪖","\\eqslantgtr",!0);he(Ce,ot,ut,"≳","\\gtrsim",!0);he(Ce,ot,ut,"⪆","\\gtrapprox",!0);he(Ce,ot,Lt,"⋗","\\gtrdot");he(Ce,ot,ut,"⋙","\\ggg",!0);he(Ce,ot,ut,"≷","\\gtrless",!0);he(Ce,ot,ut,"⋛","\\gtreqless",!0);he(Ce,ot,ut,"⪌","\\gtreqqless",!0);he(Ce,ot,ut,"≖","\\eqcirc",!0);he(Ce,ot,ut,"≗","\\circeq",!0);he(Ce,ot,ut,"≜","\\triangleq",!0);he(Ce,ot,ut,"∼","\\thicksim");he(Ce,ot,ut,"≈","\\thickapprox");he(Ce,ot,ut,"⫆","\\supseteqq",!0);he(Ce,ot,ut,"⋑","\\Supset",!0);he(Ce,ot,ut,"⊐","\\sqsupset",!0);he(Ce,ot,ut,"≽","\\succcurlyeq",!0);he(Ce,ot,ut,"⋟","\\curlyeqsucc",!0);he(Ce,ot,ut,"≿","\\succsim",!0);he(Ce,ot,ut,"⪸","\\succapprox",!0);he(Ce,ot,ut,"⊳","\\vartriangleright");he(Ce,ot,ut,"⊵","\\trianglerighteq");he(Ce,ot,ut,"⊩","\\Vdash",!0);he(Ce,ot,ut,"∣","\\shortmid");he(Ce,ot,ut,"∥","\\shortparallel");he(Ce,ot,ut,"≬","\\between",!0);he(Ce,ot,ut,"⋔","\\pitchfork",!0);he(Ce,ot,ut,"∝","\\varpropto");he(Ce,ot,ut,"◀","\\blacktriangleleft");he(Ce,ot,ut,"∴","\\therefore",!0);he(Ce,ot,ut,"∍","\\backepsilon");he(Ce,ot,ut,"▶","\\blacktriangleright");he(Ce,ot,ut,"∵","\\because",!0);he(Ce,ot,ut,"⋘","\\llless");he(Ce,ot,ut,"⋙","\\gggtr");he(Ce,ot,Lt,"⊲","\\lhd");he(Ce,ot,Lt,"⊳","\\rhd");he(Ce,ot,ut,"≂","\\eqsim",!0);he(Ce,Ve,ut,"⋈","\\Join");he(Ce,ot,ut,"≑","\\Doteq",!0);he(Ce,ot,Lt,"∔","\\dotplus",!0);he(Ce,ot,Lt,"∖","\\smallsetminus");he(Ce,ot,Lt,"⋒","\\Cap",!0);he(Ce,ot,Lt,"⋓","\\Cup",!0);he(Ce,ot,Lt,"⩞","\\doublebarwedge",!0);he(Ce,ot,Lt,"⊟","\\boxminus",!0);he(Ce,ot,Lt,"⊞","\\boxplus",!0);he(Ce,ot,Lt,"⋇","\\divideontimes",!0);he(Ce,ot,Lt,"⋉","\\ltimes",!0);he(Ce,ot,Lt,"⋊","\\rtimes",!0);he(Ce,ot,Lt,"⋋","\\leftthreetimes",!0);he(Ce,ot,Lt,"⋌","\\rightthreetimes",!0);he(Ce,ot,Lt,"⋏","\\curlywedge",!0);he(Ce,ot,Lt,"⋎","\\curlyvee",!0);he(Ce,ot,Lt,"⊝","\\circleddash",!0);he(Ce,ot,Lt,"⊛","\\circledast",!0);he(Ce,ot,Lt,"⋅","\\centerdot");he(Ce,ot,Lt,"⊺","\\intercal",!0);he(Ce,ot,Lt,"⋒","\\doublecap");he(Ce,ot,Lt,"⋓","\\doublecup");he(Ce,ot,Lt,"⊠","\\boxtimes",!0);he(Ce,ot,ut,"⇢","\\dashrightarrow",!0);he(Ce,ot,ut,"⇠","\\dashleftarrow",!0);he(Ce,ot,ut,"⇇","\\leftleftarrows",!0);he(Ce,ot,ut,"⇆","\\leftrightarrows",!0);he(Ce,ot,ut,"⇚","\\Lleftarrow",!0);he(Ce,ot,ut,"↞","\\twoheadleftarrow",!0);he(Ce,ot,ut,"↢","\\leftarrowtail",!0);he(Ce,ot,ut,"↫","\\looparrowleft",!0);he(Ce,ot,ut,"⇋","\\leftrightharpoons",!0);he(Ce,ot,ut,"↶","\\curvearrowleft",!0);he(Ce,ot,ut,"↺","\\circlearrowleft",!0);he(Ce,ot,ut,"↰","\\Lsh",!0);he(Ce,ot,ut,"⇈","\\upuparrows",!0);he(Ce,ot,ut,"↿","\\upharpoonleft",!0);he(Ce,ot,ut,"⇃","\\downharpoonleft",!0);he(Ce,Ve,ut,"⊶","\\origof",!0);he(Ce,Ve,ut,"⊷","\\imageof",!0);he(Ce,ot,ut,"⊸","\\multimap",!0);he(Ce,ot,ut,"↭","\\leftrightsquigarrow",!0);he(Ce,ot,ut,"⇉","\\rightrightarrows",!0);he(Ce,ot,ut,"⇄","\\rightleftarrows",!0);he(Ce,ot,ut,"↠","\\twoheadrightarrow",!0);he(Ce,ot,ut,"↣","\\rightarrowtail",!0);he(Ce,ot,ut,"↬","\\looparrowright",!0);he(Ce,ot,ut,"↷","\\curvearrowright",!0);he(Ce,ot,ut,"↻","\\circlearrowright",!0);he(Ce,ot,ut,"↱","\\Rsh",!0);he(Ce,ot,ut,"⇊","\\downdownarrows",!0);he(Ce,ot,ut,"↾","\\upharpoonright",!0);he(Ce,ot,ut,"⇂","\\downharpoonright",!0);he(Ce,ot,ut,"⇝","\\rightsquigarrow",!0);he(Ce,ot,ut,"⇝","\\leadsto");he(Ce,ot,ut,"⇛","\\Rrightarrow",!0);he(Ce,ot,ut,"↾","\\restriction");he(Ce,Ve,pt,"‘","`");he(Ce,Ve,pt,"$","\\$");he(wt,Ve,pt,"$","\\$");he(wt,Ve,pt,"$","\\textdollar");he(Ce,Ve,pt,"%","\\%");he(wt,Ve,pt,"%","\\%");he(Ce,Ve,pt,"_","\\_");he(wt,Ve,pt,"_","\\_");he(wt,Ve,pt,"_","\\textunderscore");he(Ce,Ve,pt,"∠","\\angle",!0);he(Ce,Ve,pt,"∞","\\infty",!0);he(Ce,Ve,pt,"′","\\prime");he(Ce,Ve,pt,"△","\\triangle");he(Ce,Ve,pt,"Γ","\\Gamma",!0);he(Ce,Ve,pt,"Δ","\\Delta",!0);he(Ce,Ve,pt,"Θ","\\Theta",!0);he(Ce,Ve,pt,"Λ","\\Lambda",!0);he(Ce,Ve,pt,"Ξ","\\Xi",!0);he(Ce,Ve,pt,"Π","\\Pi",!0);he(Ce,Ve,pt,"Σ","\\Sigma",!0);he(Ce,Ve,pt,"Υ","\\Upsilon",!0);he(Ce,Ve,pt,"Φ","\\Phi",!0);he(Ce,Ve,pt,"Ψ","\\Psi",!0);he(Ce,Ve,pt,"Ω","\\Omega",!0);he(Ce,Ve,pt,"A","Α");he(Ce,Ve,pt,"B","Β");he(Ce,Ve,pt,"E","Ε");he(Ce,Ve,pt,"Z","Ζ");he(Ce,Ve,pt,"H","Η");he(Ce,Ve,pt,"I","Ι");he(Ce,Ve,pt,"K","Κ");he(Ce,Ve,pt,"M","Μ");he(Ce,Ve,pt,"N","Ν");he(Ce,Ve,pt,"O","Ο");he(Ce,Ve,pt,"P","Ρ");he(Ce,Ve,pt,"T","Τ");he(Ce,Ve,pt,"X","Χ");he(Ce,Ve,pt,"¬","\\neg",!0);he(Ce,Ve,pt,"¬","\\lnot");he(Ce,Ve,pt,"⊤","\\top");he(Ce,Ve,pt,"⊥","\\bot");he(Ce,Ve,pt,"∅","\\emptyset");he(Ce,ot,pt,"∅","\\varnothing");he(Ce,Ve,Pt,"α","\\alpha",!0);he(Ce,Ve,Pt,"β","\\beta",!0);he(Ce,Ve,Pt,"γ","\\gamma",!0);he(Ce,Ve,Pt,"δ","\\delta",!0);he(Ce,Ve,Pt,"ϵ","\\epsilon",!0);he(Ce,Ve,Pt,"ζ","\\zeta",!0);he(Ce,Ve,Pt,"η","\\eta",!0);he(Ce,Ve,Pt,"θ","\\theta",!0);he(Ce,Ve,Pt,"ι","\\iota",!0);he(Ce,Ve,Pt,"κ","\\kappa",!0);he(Ce,Ve,Pt,"λ","\\lambda",!0);he(Ce,Ve,Pt,"μ","\\mu",!0);he(Ce,Ve,Pt,"ν","\\nu",!0);he(Ce,Ve,Pt,"ξ","\\xi",!0);he(Ce,Ve,Pt,"ο","\\omicron",!0);he(Ce,Ve,Pt,"π","\\pi",!0);he(Ce,Ve,Pt,"ρ","\\rho",!0);he(Ce,Ve,Pt,"σ","\\sigma",!0);he(Ce,Ve,Pt,"τ","\\tau",!0);he(Ce,Ve,Pt,"υ","\\upsilon",!0);he(Ce,Ve,Pt,"ϕ","\\phi",!0);he(Ce,Ve,Pt,"χ","\\chi",!0);he(Ce,Ve,Pt,"ψ","\\psi",!0);he(Ce,Ve,Pt,"ω","\\omega",!0);he(Ce,Ve,Pt,"ε","\\varepsilon",!0);he(Ce,Ve,Pt,"ϑ","\\vartheta",!0);he(Ce,Ve,Pt,"ϖ","\\varpi",!0);he(Ce,Ve,Pt,"ϱ","\\varrho",!0);he(Ce,Ve,Pt,"ς","\\varsigma",!0);he(Ce,Ve,Pt,"φ","\\varphi",!0);he(Ce,Ve,Lt,"∗","*",!0);he(Ce,Ve,Lt,"+","+");he(Ce,Ve,Lt,"−","-",!0);he(Ce,Ve,Lt,"⋅","\\cdot",!0);he(Ce,Ve,Lt,"∘","\\circ",!0);he(Ce,Ve,Lt,"÷","\\div",!0);he(Ce,Ve,Lt,"±","\\pm",!0);he(Ce,Ve,Lt,"×","\\times",!0);he(Ce,Ve,Lt,"∩","\\cap",!0);he(Ce,Ve,Lt,"∪","\\cup",!0);he(Ce,Ve,Lt,"∖","\\setminus",!0);he(Ce,Ve,Lt,"∧","\\land");he(Ce,Ve,Lt,"∨","\\lor");he(Ce,Ve,Lt,"∧","\\wedge",!0);he(Ce,Ve,Lt,"∨","\\vee",!0);he(Ce,Ve,pt,"√","\\surd");he(Ce,Ve,qn,"⟨","\\langle",!0);he(Ce,Ve,qn,"∣","\\lvert");he(Ce,Ve,qn,"∥","\\lVert");he(Ce,Ve,fn,"?","?");he(Ce,Ve,fn,"!","!");he(Ce,Ve,fn,"⟩","\\rangle",!0);he(Ce,Ve,fn,"∣","\\rvert");he(Ce,Ve,fn,"∥","\\rVert");he(Ce,Ve,ut,"=","=");he(Ce,Ve,ut,":",":");he(Ce,Ve,ut,"≈","\\approx",!0);he(Ce,Ve,ut,"≅","\\cong",!0);he(Ce,Ve,ut,"≥","\\ge");he(Ce,Ve,ut,"≥","\\geq",!0);he(Ce,Ve,ut,"←","\\gets");he(Ce,Ve,ut,">","\\gt",!0);he(Ce,Ve,ut,"∈","\\in",!0);he(Ce,Ve,ut,"","\\@not");he(Ce,Ve,ut,"⊂","\\subset",!0);he(Ce,Ve,ut,"⊃","\\supset",!0);he(Ce,Ve,ut,"⊆","\\subseteq",!0);he(Ce,Ve,ut,"⊇","\\supseteq",!0);he(Ce,ot,ut,"⊈","\\nsubseteq",!0);he(Ce,ot,ut,"⊉","\\nsupseteq",!0);he(Ce,Ve,ut,"⊨","\\models");he(Ce,Ve,ut,"←","\\leftarrow",!0);he(Ce,Ve,ut,"≤","\\le");he(Ce,Ve,ut,"≤","\\leq",!0);he(Ce,Ve,ut,"<","\\lt",!0);he(Ce,Ve,ut,"→","\\rightarrow",!0);he(Ce,Ve,ut,"→","\\to");he(Ce,ot,ut,"≱","\\ngeq",!0);he(Ce,ot,ut,"≰","\\nleq",!0);he(Ce,Ve,Ni," ","\\ ");he(Ce,Ve,Ni," ","\\space");he(Ce,Ve,Ni," ","\\nobreakspace");he(wt,Ve,Ni," ","\\ ");he(wt,Ve,Ni," "," ");he(wt,Ve,Ni," ","\\space");he(wt,Ve,Ni," ","\\nobreakspace");he(Ce,Ve,Ni,"","\\nobreak");he(Ce,Ve,Ni,"","\\allowbreak");he(Ce,Ve,Gl,",",",");he(Ce,Ve,Gl,";",";");he(Ce,ot,Lt,"⊼","\\barwedge",!0);he(Ce,ot,Lt,"⊻","\\veebar",!0);he(Ce,Ve,Lt,"⊙","\\odot",!0);he(Ce,Ve,Lt,"⊕","\\oplus",!0);he(Ce,Ve,Lt,"⊗","\\otimes",!0);he(Ce,Ve,pt,"∂","\\partial",!0);he(Ce,Ve,Lt,"⊘","\\oslash",!0);he(Ce,ot,Lt,"⊚","\\circledcirc",!0);he(Ce,ot,Lt,"⊡","\\boxdot",!0);he(Ce,Ve,Lt,"△","\\bigtriangleup");he(Ce,Ve,Lt,"▽","\\bigtriangledown");he(Ce,Ve,Lt,"†","\\dagger");he(Ce,Ve,Lt,"⋄","\\diamond");he(Ce,Ve,Lt,"⋆","\\star");he(Ce,Ve,Lt,"◃","\\triangleleft");he(Ce,Ve,Lt,"▹","\\triangleright");he(Ce,Ve,qn,"{","\\{");he(wt,Ve,pt,"{","\\{");he(wt,Ve,pt,"{","\\textbraceleft");he(Ce,Ve,fn,"}","\\}");he(wt,Ve,pt,"}","\\}");he(wt,Ve,pt,"}","\\textbraceright");he(Ce,Ve,qn,"{","\\lbrace");he(Ce,Ve,fn,"}","\\rbrace");he(Ce,Ve,qn,"[","\\lbrack",!0);he(wt,Ve,pt,"[","\\lbrack",!0);he(Ce,Ve,fn,"]","\\rbrack",!0);he(wt,Ve,pt,"]","\\rbrack",!0);he(Ce,Ve,qn,"(","\\lparen",!0);he(Ce,Ve,fn,")","\\rparen",!0);he(wt,Ve,pt,"<","\\textless",!0);he(wt,Ve,pt,">","\\textgreater",!0);he(Ce,Ve,qn,"⌊","\\lfloor",!0);he(Ce,Ve,fn,"⌋","\\rfloor",!0);he(Ce,Ve,qn,"⌈","\\lceil",!0);he(Ce,Ve,fn,"⌉","\\rceil",!0);he(Ce,Ve,pt,"\\","\\backslash");he(Ce,Ve,pt,"∣","|");he(Ce,Ve,pt,"∣","\\vert");he(wt,Ve,pt,"|","\\textbar",!0);he(Ce,Ve,pt,"∥","\\|");he(Ce,Ve,pt,"∥","\\Vert");he(wt,Ve,pt,"∥","\\textbardbl");he(wt,Ve,pt,"~","\\textasciitilde");he(wt,Ve,pt,"\\","\\textbackslash");he(wt,Ve,pt,"^","\\textasciicircum");he(Ce,Ve,ut,"↑","\\uparrow",!0);he(Ce,Ve,ut,"⇑","\\Uparrow",!0);he(Ce,Ve,ut,"↓","\\downarrow",!0);he(Ce,Ve,ut,"⇓","\\Downarrow",!0);he(Ce,Ve,ut,"↕","\\updownarrow",!0);he(Ce,Ve,ut,"⇕","\\Updownarrow",!0);he(Ce,Ve,Nr,"∐","\\coprod");he(Ce,Ve,Nr,"⋁","\\bigvee");he(Ce,Ve,Nr,"⋀","\\bigwedge");he(Ce,Ve,Nr,"⨄","\\biguplus");he(Ce,Ve,Nr,"⋂","\\bigcap");he(Ce,Ve,Nr,"⋃","\\bigcup");he(Ce,Ve,Nr,"∫","\\int");he(Ce,Ve,Nr,"∫","\\intop");he(Ce,Ve,Nr,"∬","\\iint");he(Ce,Ve,Nr,"∭","\\iiint");he(Ce,Ve,Nr,"∏","\\prod");he(Ce,Ve,Nr,"∑","\\sum");he(Ce,Ve,Nr,"⨂","\\bigotimes");he(Ce,Ve,Nr,"⨁","\\bigoplus");he(Ce,Ve,Nr,"⨀","\\bigodot");he(Ce,Ve,Nr,"∮","\\oint");he(Ce,Ve,Nr,"∯","\\oiint");he(Ce,Ve,Nr,"∰","\\oiiint");he(Ce,Ve,Nr,"⨆","\\bigsqcup");he(Ce,Ve,Nr,"∫","\\smallint");he(wt,Ve,Ma,"…","\\textellipsis");he(Ce,Ve,Ma,"…","\\mathellipsis");he(wt,Ve,Ma,"…","\\ldots",!0);he(Ce,Ve,Ma,"…","\\ldots",!0);he(Ce,Ve,Ma,"⋯","\\@cdots",!0);he(Ce,Ve,Ma,"⋱","\\ddots",!0);he(Ce,Ve,pt,"⋮","\\varvdots");he(wt,Ve,pt,"⋮","\\varvdots");he(Ce,Ve,pr,"ˊ","\\acute");he(Ce,Ve,pr,"ˋ","\\grave");he(Ce,Ve,pr,"¨","\\ddot");he(Ce,Ve,pr,"~","\\tilde");he(Ce,Ve,pr,"ˉ","\\bar");he(Ce,Ve,pr,"˘","\\breve");he(Ce,Ve,pr,"ˇ","\\check");he(Ce,Ve,pr,"^","\\hat");he(Ce,Ve,pr,"⃗","\\vec");he(Ce,Ve,pr,"˙","\\dot");he(Ce,Ve,pr,"˚","\\mathring");he(Ce,Ve,Pt,"","\\@imath");he(Ce,Ve,Pt,"","\\@jmath");he(Ce,Ve,pt,"ı","ı");he(Ce,Ve,pt,"ȷ","ȷ");he(wt,Ve,pt,"ı","\\i",!0);he(wt,Ve,pt,"ȷ","\\j",!0);he(wt,Ve,pt,"ß","\\ss",!0);he(wt,Ve,pt,"æ","\\ae",!0);he(wt,Ve,pt,"œ","\\oe",!0);he(wt,Ve,pt,"ø","\\o",!0);he(wt,Ve,pt,"Æ","\\AE",!0);he(wt,Ve,pt,"Œ","\\OE",!0);he(wt,Ve,pt,"Ø","\\O",!0);he(wt,Ve,pr,"ˊ","\\'");he(wt,Ve,pr,"ˋ","\\`");he(wt,Ve,pr,"ˆ","\\^");he(wt,Ve,pr,"˜","\\~");he(wt,Ve,pr,"ˉ","\\=");he(wt,Ve,pr,"˘","\\u");he(wt,Ve,pr,"˙","\\.");he(wt,Ve,pr,"¸","\\c");he(wt,Ve,pr,"˚","\\r");he(wt,Ve,pr,"ˇ","\\v");he(wt,Ve,pr,"¨",'\\"');he(wt,Ve,pr,"˝","\\H");he(wt,Ve,pr,"◯","\\textcircled");var X1={"--":!0,"---":!0,"``":!0,"''":!0};he(wt,Ve,pt,"–","--",!0);he(wt,Ve,pt,"–","\\textendash");he(wt,Ve,pt,"—","---",!0);he(wt,Ve,pt,"—","\\textemdash");he(wt,Ve,pt,"‘","`",!0);he(wt,Ve,pt,"‘","\\textquoteleft");he(wt,Ve,pt,"’","'",!0);he(wt,Ve,pt,"’","\\textquoteright");he(wt,Ve,pt,"“","``",!0);he(wt,Ve,pt,"“","\\textquotedblleft");he(wt,Ve,pt,"”","''",!0);he(wt,Ve,pt,"”","\\textquotedblright");he(Ce,Ve,pt,"°","\\degree",!0);he(wt,Ve,pt,"°","\\degree");he(wt,Ve,pt,"°","\\textdegree",!0);he(Ce,Ve,pt,"£","\\pounds");he(Ce,Ve,pt,"£","\\mathsterling",!0);he(wt,Ve,pt,"£","\\pounds");he(wt,Ve,pt,"£","\\textsterling",!0);he(Ce,ot,pt,"✠","\\maltese");he(wt,ot,pt,"✠","\\maltese");var Oh='0123456789/@."';for(var Fc=0;Fc<Oh.length;Fc++){var ep=Oh.charAt(Fc);he(Ce,Ve,pt,ep,ep)}var tp='0123456789!@*()-=+";:?/.,';for(var Bc=0;Bc<tp.length;Bc++){var rp=tp.charAt(Bc);he(wt,Ve,pt,rp,rp)}var pu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Pc=0;Pc<pu.length;Pc++){var _o=pu.charAt(Pc);he(Ce,Ve,Pt,_o,_o),he(wt,Ve,pt,_o,_o)}he(Ce,ot,pt,"C","ℂ");he(wt,ot,pt,"C","ℂ");he(Ce,ot,pt,"H","ℍ");he(wt,ot,pt,"H","ℍ");he(Ce,ot,pt,"N","ℕ");he(wt,ot,pt,"N","ℕ");he(Ce,ot,pt,"P","ℙ");he(wt,ot,pt,"P","ℙ");he(Ce,ot,pt,"Q","ℚ");he(wt,ot,pt,"Q","ℚ");he(Ce,ot,pt,"R","ℝ");he(wt,ot,pt,"R","ℝ");he(Ce,ot,pt,"Z","ℤ");he(wt,ot,pt,"Z","ℤ");he(Ce,Ve,Pt,"h","ℎ");he(wt,Ve,Pt,"h","ℎ");var Vt;for(var rn=0;rn<pu.length;rn++){var xr=pu.charAt(rn);Vt=String.fromCharCode(55349,56320+rn),he(Ce,Ve,Pt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56372+rn),he(Ce,Ve,Pt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56424+rn),he(Ce,Ve,Pt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56580+rn),he(Ce,Ve,Pt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56684+rn),he(Ce,Ve,Pt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56736+rn),he(Ce,Ve,Pt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56788+rn),he(Ce,Ve,Pt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56840+rn),he(Ce,Ve,Pt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56944+rn),he(Ce,Ve,Pt,xr,Vt),he(wt,Ve,pt,xr,Vt),rn<26&&(Vt=String.fromCharCode(55349,56632+rn),he(Ce,Ve,Pt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56476+rn),he(Ce,Ve,Pt,xr,Vt),he(wt,Ve,pt,xr,Vt))}Vt="𝕜";he(Ce,Ve,Pt,"k",Vt);he(wt,Ve,pt,"k",Vt);for(var _s=0;_s<10;_s++){var Li=_s.toString();Vt=String.fromCharCode(55349,57294+_s),he(Ce,Ve,Pt,Li,Vt),he(wt,Ve,pt,Li,Vt),Vt=String.fromCharCode(55349,57314+_s),he(Ce,Ve,Pt,Li,Vt),he(wt,Ve,pt,Li,Vt),Vt=String.fromCharCode(55349,57324+_s),he(Ce,Ve,Pt,Li,Vt),he(wt,Ve,pt,Li,Vt),Vt=String.fromCharCode(55349,57334+_s),he(Ce,Ve,Pt,Li,Vt),he(wt,Ve,pt,Li,Vt)}var mf="ÐÞþ";for(var jc=0;jc<mf.length;jc++){var mo=mf.charAt(jc);he(Ce,Ve,Pt,mo,mo),he(wt,Ve,pt,mo,mo)}var gf={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},np={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},ip={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},k3={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},bs={mathClass:"",textClass:"",font:""},sp={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},ap={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},lp={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},vf={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},yf={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},op={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},bf={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},up=[gf,gf,np,np,ip,ip,k3,bs,bs,bs,sp,sp,ap,ap,lp,lp,vf,vf,yf,yf,op,op,bs,bs,bf,bf],S3=[gf,bs,vf,yf,bf],A3=e=>{var t=e.charCodeAt(0),r=e.charCodeAt(1),n=(t-55296)*1024+(r-56320)+65536;if(119808<=n&&n<120484){var i=Math.floor((n-119808)/26);return up[i]}else if(120782<=n&&n<=120831){var s=Math.floor((n-120782)/10);return S3[s]}else{if(n===120485||n===120486)return up[0];if(120486<n&&n<120782)return bs;throw new zt("Unsupported character: "+e)}},Gu=function(t,r,n){if(hr[n][t]){var i=hr[n][t].replace;i&&(t=i)}return{value:t,metrics:ad(t,r,n)}},sn=function(t,r,n,i,s){var c=Gu(t,r,n),f=c.metrics;t=c.value;var p;if(f){var h=f.italic;(n==="text"||i&&i.font==="mathit")&&(h=0),p=new zn(t,f.height,f.depth,h,f.skew,f.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),p=new zn(t,0,0,0,0,0,s);if(i){p.maxFontSize=i.sizeMultiplier,i.style.isTight()&&p.classes.push("mtight");var I=i.getColor();I&&(p.style.color=I)}return p},ld=function(t,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&Gu(t,"Main-Bold",r).metrics?sn(t,"Main-Bold",r,n,i.concat(["mathbf"])):t==="\\"||hr[r][t].font==="main"?sn(t,"Main-Regular",r,n,i):sn(t,"AMS-Regular",r,n,i.concat(["amsrm"]))},E3=function(t,r,n){return n!=="textord"&&Gu(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Ku=function(t,r,n){var i=t.mode,s=t.text,c=["mord"],{font:f,fontFamily:p,fontWeight:h,fontShape:I}=r,F=i==="math"||i==="text"&&!!f,H=F?f:p,pe="",xe="";if(s.charCodeAt(0)===55349){var ne=A3(s);pe=ne.font,xe=ne[i+"Class"]}if(pe)return sn(s,pe,i,r,c.concat(xe));if(H){var W,X;if(H==="boldsymbol"){var ge=E3(s,i,n);W=ge.fontName,X=[ge.fontClass]}else F?(W=xf[f].fontName,X=[f]):(W=go(p,h,I),X=[p,h,I]);if(Gu(s,W,i).metrics)return sn(s,W,i,r,c.concat(X));if(X1.hasOwnProperty(s)&&W.slice(0,10)==="Typewriter"){for(var se=[],me=0;me<s.length;me++)se.push(sn(s[me],W,i,r,c.concat(X)));return Ii(se)}}if(n==="mathord")return sn(s,"Math-Italic",i,r,c.concat(["mathnormal"]));if(n==="textord"){var J=hr[i][s]&&hr[i][s].font;if(J==="ams"){var be=go("amsrm",h,I);return sn(s,be,i,r,c.concat("amsrm",h,I))}else if(J==="main"||!J){var fe=go("textrm",h,I);return sn(s,fe,i,r,c.concat(h,I))}else{var Ae=go(J,h,I);return sn(s,Ae,i,r,c.concat(Ae,h,I))}}else throw new Error("unexpected type: "+n+" in makeOrd")},C3=(e,t)=>{if(is(e.classes)!==is(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(e.style))if(e.style[n]!==t.style[n])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},Q1=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof zn&&n instanceof zn&&C3(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},od=function(t){for(var r=0,n=0,i=0,s=0;s<t.children.length;s++){var c=t.children[s];c.height>r&&(r=c.height),c.depth>n&&(n=c.depth),c.maxFontSize>i&&(i=c.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},kt=function(t,r,n,i){var s=new qa(t,r,n,i);return od(s),s},as=(e,t,r,n)=>new qa(e,t,r,n),xa=function(t,r,n){var i=kt([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=Nt(i.height),i.maxFontSize=1,i},T3=function(t,r,n,i){var s=new Wu(t,r,n,i);return od(s),s},Ii=function(t){var r=new Ia(t);return od(r),r},wa=function(t,r){return t instanceof Ia?kt([],[t],r):t},z3=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,s=i,c=1;c<r.length;c++){var f=-r[c].shift-s-r[c].elem.depth,p=f-(r[c-1].elem.height+r[c-1].elem.depth);s=s+f,n.push({type:"kern",size:p}),n.push(r[c])}return{children:n,depth:i}}var h;if(t.positionType==="top"){for(var I=t.positionData,F=0;F<t.children.length;F++){var H=t.children[F];I-=H.type==="kern"?H.size:H.elem.height+H.elem.depth}h=I}else if(t.positionType==="bottom")h=-t.positionData;else{var pe=t.children[0];if(pe.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")h=-pe.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")h=-pe.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:h}},ir=function(t,r){for(var{children:n,depth:i}=z3(t),s=0,c=0;c<n.length;c++){var f=n[c];if(f.type==="elem"){var p=f.elem;s=Math.max(s,p.maxFontSize,p.height)}}s+=2;var h=kt(["pstrut"],[]);h.style.height=Nt(s);for(var I=[],F=i,H=i,pe=i,xe=0;xe<n.length;xe++){var ne=n[xe];if(ne.type==="kern")pe+=ne.size;else{var W=ne.elem,X=ne.wrapperClasses||[],ge=ne.wrapperStyle||{},se=kt(X,[h,W],void 0,ge);se.style.top=Nt(-s-pe-W.depth),ne.marginLeft&&(se.style.marginLeft=ne.marginLeft),ne.marginRight&&(se.style.marginRight=ne.marginRight),I.push(se),pe+=W.height+W.depth}F=Math.min(F,pe),H=Math.max(H,pe)}var me=kt(["vlist"],I);me.style.height=Nt(H);var J;if(F<0){var be=kt([],[]),fe=kt(["vlist"],[be]);fe.style.height=Nt(-F);var Ae=kt(["vlist-s"],[new zn("")]);J=[kt(["vlist-r"],[me,Ae]),kt(["vlist-r"],[fe])]}else J=[kt(["vlist-r"],[me])];var O=kt(["vlist-t"],J);return J.length===2&&O.classes.push("vlist-t2"),O.height=H,O.depth=-F,O},Z1=(e,t)=>{var r=kt(["mspace"],[],t),n=vr(e,t);return r.style.marginRight=Nt(n),r},go=(e,t,r)=>{var n,i;switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return t==="textbf"&&r==="textit"?i="BoldItalic":t==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",n+"-"+i},xf={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},J1={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},O1=function(t,r){var[n,i,s]=J1[t],c=new ss(n),f=new Ti([c],{width:Nt(i),height:Nt(s),style:"width:"+Nt(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),p=as(["overlay"],[f],r);return p.height=s,p.style.height=Nt(s),p.style.width=Nt(i),p},mr={number:3,unit:"mu"},ms={number:4,unit:"mu"},_i={number:5,unit:"mu"},R3={mord:{mop:mr,mbin:ms,mrel:_i,minner:mr},mop:{mord:mr,mop:mr,mrel:_i,minner:mr},mbin:{mord:ms,mop:ms,mopen:ms,minner:ms},mrel:{mord:_i,mop:_i,mopen:_i,minner:_i},mopen:{},mclose:{mop:mr,mbin:ms,mrel:_i,minner:mr},mpunct:{mord:mr,mop:mr,mrel:_i,mopen:mr,mclose:mr,mpunct:mr,minner:mr},minner:{mord:mr,mop:mr,mbin:ms,mrel:_i,mopen:mr,mpunct:mr,minner:mr}},N3={mord:{mop:mr},mop:{mord:mr,mop:mr},mbin:{},mrel:{},mopen:{},mclose:{mop:mr},mpunct:{},minner:{mop:mr}},eg={},_u={},mu={};function Dt(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:s,mathmlBuilder:c}=e,f={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},p=0;p<r.length;++p)eg[r[p]]=f;t&&(s&&(_u[t]=s),c&&(mu[t]=c))}function Fs(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;Dt({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var gu=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},zr=function(t){return t.type==="ordgroup"?t.body:[t]},I3=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),q3=new Set(["rightmost","mrel","mclose","mpunct"]),M3={display:Gt.DISPLAY,text:Gt.TEXT,script:Gt.SCRIPT,scriptscript:Gt.SCRIPTSCRIPT},D3={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Dr=function(t,r,n,i){i===void 0&&(i=[null,null]);for(var s=[],c=0;c<t.length;c++){var f=sr(t[c],r);if(f instanceof Ia){var p=f.children;s.push(...p)}else s.push(f)}if(Q1(s),!n)return s;var h=r;if(t.length===1){var I=t[0];I.type==="sizing"?h=r.havingSize(I.size):I.type==="styling"&&(h=r.havingStyle(M3[I.style]))}var F=kt([i[0]||"leftmost"],[],r),H=kt([i[1]||"rightmost"],[],r),pe=n==="root";return wf(s,(xe,ne)=>{var W=ne.classes[0],X=xe.classes[0];W==="mbin"&&q3.has(X)?ne.classes[0]="mord":X==="mbin"&&I3.has(W)&&(xe.classes[0]="mord")},{node:F},H,pe),wf(s,(xe,ne)=>{var W,X,ge=Sf(ne),se=Sf(xe),me=ge&&se?xe.hasClass("mtight")?(W=N3[ge])==null?void 0:W[se]:(X=R3[ge])==null?void 0:X[se]:null;if(me)return Z1(me,h)},{node:F},H,pe),s},wf=function(t,r,n,i,s){i&&t.push(i);for(var c=0;c<t.length;c++){var f=t[c],p=tg(f);if(p){wf(p.children,r,n,null,s);continue}var h=!f.hasClass("mspace");if(h){var I=r(f,n.node);I&&(n.insertAfter?n.insertAfter(I):(t.unshift(I),c++))}h?n.node=f:s&&f.hasClass("newline")&&(n.node=kt(["leftmost"])),n.insertAfter=(F=>H=>{t.splice(F+1,0,H),c++})(c)}i&&t.pop()},tg=function(t){return t instanceof Ia||t instanceof Wu||t instanceof qa&&t.hasClass("enclosing")?t:null},kf=function(t,r){var n=tg(t);if(n){var i=n.children;if(i.length){if(r==="right")return kf(i[i.length-1],"right");if(r==="left")return kf(i[0],"left")}}return t},Sf=function(t,r){if(!t)return null;r&&(t=kf(t,r));var n=t.classes[0];return D3[n]||null},Ll=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return kt(r.concat(n))},sr=function(t,r,n){if(!t)return kt();if(_u[t.type]){var i=_u[t.type](t,r);if(n&&r.size!==n.size){i=kt(r.sizingClasses(n),[i],r);var s=r.sizeMultiplier/n.sizeMultiplier;i.height*=s,i.depth*=s}return i}else throw new zt("Got group of unknown type: '"+t.type+"'")};function vo(e,t){var r=kt(["base"],e,t),n=kt(["strut"]);return n.style.height=Nt(r.height+r.depth),r.depth&&(n.style.verticalAlign=Nt(-r.depth)),r.children.unshift(n),r}function Af(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=Dr(e,t,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var s=[],c=[],f=0;f<n.length;f++)if(c.push(n[f]),n[f].hasClass("mbin")||n[f].hasClass("mrel")||n[f].hasClass("allowbreak")){for(var p=!1;f<n.length-1&&n[f+1].hasClass("mspace")&&!n[f+1].hasClass("newline");)f++,c.push(n[f]),n[f].hasClass("nobreak")&&(p=!0);p||(s.push(vo(c,t)),c=[])}else n[f].hasClass("newline")&&(c.pop(),c.length>0&&(s.push(vo(c,t)),c=[]),s.push(n[f]));c.length>0&&s.push(vo(c,t));var h;r?(h=vo(Dr(r,t,!0),t),h.classes=["tag"],s.push(h)):i&&s.push(i);var I=kt(["katex-html"],s);if(I.setAttribute("aria-hidden","true"),h){var F=h.children[0];F.style.height=Nt(I.height+I.depth),I.depth&&(F.style.verticalAlign=Nt(-I.depth))}return I}function rg(e){return new Ia(e)}class Rt{constructor(t,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=is(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Rr&&this.children[n+1]instanceof Rr){for(var i=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Rr;)i+=this.children[++n].toText();t.appendChild(new Rr(i).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=Jr(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+Jr(is(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Rr{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Jr(this.toText())}toText(){return this.text}}class ng{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Nt(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Nt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var L3=new Set(["\\imath","\\jmath"]),F3=new Set(["mrow","mtable"]),Vn=function(t,r,n){return hr[r][t]&&hr[r][t].replace&&t.charCodeAt(0)!==55349&&!(X1.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=hr[r][t].replace),new Rr(t)},ud=function(t){return t.length===1?t[0]:new Rt("mrow",t)},B3={mathit:"italic",boldsymbol:e=>e.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},cd=(e,t)=>{if(e.mode==="text"){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold"}var r=t.font;if(!r||r==="mathnormal")return null;var n=e.mode,i=B3[r];if(i)return typeof i=="function"?i(e):i;var s=e.text;if(L3.has(s))return null;if(hr[n][s]){var c=hr[n][s].replace;c&&(s=c)}var f=xf[r].fontName;return ad(s,f,n)?xf[r].variant:null};function Uc(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Rr&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof Rr&&r.text===","}else return!1}var Mn=function(t,r,n){if(t.length===1){var i=or(t[0],r);return n&&i instanceof Rt&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var s=[],c,f=0;f<t.length;f++){var p=or(t[f],r);if(p instanceof Rt&&c instanceof Rt){if(p.type==="mtext"&&c.type==="mtext"&&p.getAttribute("mathvariant")===c.getAttribute("mathvariant")){c.children.push(...p.children);continue}else if(p.type==="mn"&&c.type==="mn"){c.children.push(...p.children);continue}else if(Uc(p)&&c.type==="mn"){c.children.push(...p.children);continue}else if(p.type==="mn"&&Uc(c))p.children=[...c.children,...p.children],s.pop();else if((p.type==="msup"||p.type==="msub")&&p.children.length>=1&&(c.type==="mn"||Uc(c))){var h=p.children[0];h instanceof Rt&&h.type==="mn"&&(h.children=[...c.children,...h.children],s.pop())}else if(c.type==="mi"&&c.children.length===1){var I=c.children[0];if(I instanceof Rr&&I.text==="̸"&&(p.type==="mo"||p.type==="mi"||p.type==="mn")){var F=p.children[0];F instanceof Rr&&F.text.length>0&&(F.text=F.text.slice(0,1)+"̸"+F.text.slice(1),s.pop())}}}s.push(p),c=p}return s},ls=function(t,r,n){return ud(Mn(t,r,n))},or=function(t,r){if(!t)return new Rt("mrow");if(mu[t.type])return mu[t.type](t,r);throw new zt("Got group of unknown type: '"+t.type+"'")};function cp(e,t,r,n,i){var s=Mn(e,r),c;s.length===1&&s[0]instanceof Rt&&F3.has(s[0].type)?c=s[0]:c=new Rt("mrow",s);var f=new Rt("annotation",[new Rr(t)]);f.setAttribute("encoding","application/x-tex");var p=new Rt("semantics",[c,f]),h=new Rt("math",[p]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&h.setAttribute("display","block");var I=i?"katex":"katex-mathml";return kt([I],[h])}var P3=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],$p=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],fp=function(t,r){return r.size<2?t:P3[t-1][r.size-1]};class yi{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||yi.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=$p[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(r,t),new yi(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:fp(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:$p[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=fp(yi.BASESIZE,t);return this.size===r&&this.textSize===yi.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==yi.BASESIZE?["sizing","reset-size"+this.size,"size"+yi.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=w3(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}yi.BASESIZE=6;var ig=function(t){return new yi({style:t.displayMode?Gt.DISPLAY:Gt.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},sg=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=kt(n,[t])}return t},j3=function(t,r,n){var i=ig(n),s;if(n.output==="mathml")return cp(t,r,i,n.displayMode,!0);if(n.output==="html"){var c=Af(t,i);s=kt(["katex"],[c])}else{var f=cp(t,r,i,n.displayMode,!1),p=Af(t,i);s=kt(["katex"],[f,p])}return sg(s,n)},U3=function(t,r,n){var i=ig(n),s=Af(t,i),c=kt(["katex"],[s]);return sg(c,n)},H3={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Xu=function(t){var r=new Rt("mo",[new Rr(H3[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},V3={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Y3=new Set(["widehat","widecheck","widetilde","utilde"]),Qu=function(t,r){function n(){var f=4e5,p=t.label.slice(1);if(Y3.has(p)&&"base"in t){var h=t.base.type==="ordgroup"?t.base.body.length:1,I,F,H;if(h>5)p==="widehat"||p==="widecheck"?(I=420,f=2364,H=.42,F=p+"4"):(I=312,f=2340,H=.34,F="tilde4");else{var pe=[1,1,2,2,3,3][h];p==="widehat"||p==="widecheck"?(f=[0,1062,2364,2364,2364][pe],I=[0,239,300,360,420][pe],H=[0,.24,.3,.3,.36,.42][pe],F=p+pe):(f=[0,600,1033,2339,2340][pe],I=[0,260,286,306,312][pe],H=[0,.26,.286,.3,.306,.34][pe],F="tilde"+pe)}var xe=new ss(F),ne=new Ti([xe],{width:"100%",height:Nt(H),viewBox:"0 0 "+f+" "+I,preserveAspectRatio:"none"});return{span:as([],[ne],r),minWidth:0,height:H}}else{var W=[],X=V3[p];if(!X)throw new Error('No SVG data for "'+p+'".');var[ge,se,me]=X,J=me/1e3,be=ge.length,fe,Ae;if(be===1){if(X.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+p+'".');fe=["hide-tail"],Ae=[X[3]]}else if(be===2)fe=["halfarrow-left","halfarrow-right"],Ae=["xMinYMin","xMaxYMin"];else if(be===3)fe=["brace-left","brace-center","brace-right"],Ae=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
376
|
-
`+be+" children.");for(var O=0;O<be;O++){var Ee=new ss(ge[O]),le=new Ti([Ee],{width:"400em",height:Nt(J),viewBox:"0 0 "+f+" "+me,preserveAspectRatio:Ae[O]+" slice"}),w=as([fe[O]],[le],r);if(be===1)return{span:w,minWidth:se,height:J};w.style.height=Nt(J),W.push(w)}return{span:kt(["stretchy"],W,r),minWidth:se,height:J}}}var{span:i,minWidth:s,height:c}=n();return i.height=c,i.style.height=Nt(c),s>0&&(i.style.minWidth=Nt(s)),i},W3=function(t,r,n,i,s){var c,f=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(c=kt(["stretchy",r],[],s),r==="fbox"){var p=s.color&&s.getColor();p&&(c.style.borderColor=p)}}else{var h=[];/^[bx]cancel$/.test(r)&&h.push(new _f({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&h.push(new _f({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var I=new Ti(h,{width:"100%",height:Nt(f)});c=as([],[I],s)}return c.height=f,c.style.height=Nt(f),c},G3={bin:1,close:1,inner:1,open:1,punct:1,rel:1},K3={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function X3(e){return e in G3}function Qt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Zu(e){var t=Ju(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Ju(e){return e&&(e.type==="atom"||K3.hasOwnProperty(e.type))?e:null}var ag=e=>{if(e instanceof zn)return e;if(b3(e)&&e.children.length===1)return ag(e.children[0])},$d=(e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=Qt(e.base,"accent"),r=n.base,e.base=r,i=y3(sr(e,t)),e.base=n):(n=Qt(e,"accent"),r=n.base);var s=sr(r,t.havingCrampedStyle()),c=n.isShifty&&Ri(r),f=0;if(c){var p,h;f=(p=(h=ag(s))==null?void 0:h.skew)!=null?p:0}var I=n.label==="\\c",F=I?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),H;if(n.isStretchy)H=Qu(n,t),H=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:H,wrapperClasses:["svg-align"],wrapperStyle:f>0?{width:"calc(100% - "+Nt(2*f)+")",marginLeft:Nt(2*f)}:void 0}]});else{var pe,xe;n.label==="\\vec"?(pe=O1("vec",t),xe=J1.vec[1]):(pe=Ku({mode:n.mode,text:n.label},t,"textord"),pe=v3(pe),pe.italic=0,xe=pe.width,I&&(F+=pe.depth)),H=kt(["accent-body"],[pe]);var ne=n.label==="\\textcircled";ne&&(H.classes.push("accent-full"),F=s.height);var W=f;ne||(W-=xe/2),H.style.left=Nt(W),n.label==="\\textcircled"&&(H.style.top=".2em"),H=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-F},{type:"elem",elem:H}]})}var X=kt(["mord","accent"],[H],t);return i?(i.children[0]=X,i.height=Math.max(X.height,i.height),i.classes[0]="mord",i):X},lg=(e,t)=>{var r=e.isStretchy?Xu(e.label):new Rt("mo",[Vn(e.label,e.mode)]),n=new Rt("mover",[or(e.base,t),r]);return n.setAttribute("accent","true"),n},Q3=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Dt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=gu(t[0]),n=!Q3.test(e.funcName),i=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:$d,mathmlBuilder:lg});Dt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:$d,mathmlBuilder:lg});Dt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(e,t)=>{var r=sr(e.base,t),n=Qu(e,t),i=e.label==="\\utilde"?.12:0,s=ir({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return kt(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var r=Xu(e.label),n=new Rt("munder",[or(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var yo=e=>{var t=new Rt("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Dt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),i=wa(sr(e.body,n,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(s+"-arrow-pad");var c;e.below&&(n=t.havingStyle(r.sub()),c=wa(sr(e.below,n,t),t),c.classes.push(s+"-arrow-pad"));var f=Qu(e,t),p=-t.fontMetrics().axisHeight+.5*f.height,h=-t.fontMetrics().axisHeight-.5*f.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(h-=i.depth);var I;if(c){var F=-t.fontMetrics().axisHeight+c.height+.5*f.height+.111;I=ir({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:f,shift:p,wrapperClasses:["svg-align"]},{type:"elem",elem:c,shift:F}]})}else I=ir({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:f,shift:p,wrapperClasses:["svg-align"]}]});return kt(["mrel","x-arrow"],[I],t)},mathmlBuilder(e,t){var r=Xu(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=yo(or(e.body,t));if(e.below){var s=yo(or(e.below,t));n=new Rt("munderover",[r,s,i])}else n=new Rt("mover",[r,i])}else if(e.below){var c=yo(or(e.below,t));n=new Rt("munder",[r,c])}else n=yo(),n=new Rt("mover",[r,n]);return n}});function og(e,t){var r=Dr(e.body,t,!0);return kt([e.mclass],r,t)}function ug(e,t){var r,n=Mn(e.body,t);return e.mclass==="minner"?r=new Rt("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new Rt("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new Rt("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}Dt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:zr(i),isCharacterBox:Ri(i)}},htmlBuilder:og,mathmlBuilder:ug});var Ou=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Dt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Ou(t[0]),body:zr(t[1]),isCharacterBox:Ri(t[1])}}});Dt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,i=t[1],s=t[0],c;n!=="\\stackrel"?c=Ou(i):c="mrel";var f={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:zr(i)},p={type:"supsub",mode:s.mode,base:f,sup:n==="\\underset"?null:s,sub:n==="\\underset"?s:null};return{type:"mclass",mode:r.mode,mclass:c,body:[p],isCharacterBox:Ri(p)}},htmlBuilder:og,mathmlBuilder:ug});Dt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Ou(t[0]),body:zr(t[0])}},htmlBuilder(e,t){var r=Dr(e.body,t,!0),n=kt([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=Mn(e.body,t),n=new Rt("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var Z3={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},dp=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),hp=e=>e.type==="textord"&&e.text==="@",J3=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function O3(e,t,r){var n=Z3[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]),s={type:"atom",text:n,mode:"math",family:"rel"},c=r.callFunction("\\Big",[s],[]),f=r.callFunction("\\\\cdright",[t[1]],[]),p={type:"ordgroup",mode:"math",body:[i,c,f]};return r.callFunction("\\\\cdparent",[p],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function e5(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new zt("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],s=0;s<t.length;s++){for(var c=t[s],f=dp(),p=0;p<c.length;p++)if(!hp(c[p]))f.body.push(c[p]);else{n.push(f),p+=1;var h=Zu(c[p]).text,I=new Array(2);if(I[0]={type:"ordgroup",mode:"math",body:[]},I[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(h))if("<>AV".includes(h))for(var F=0;F<2;F++){for(var H=!0,pe=p+1;pe<c.length;pe++){if(J3(c[pe],h)){H=!1,p=pe;break}if(hp(c[pe]))throw new zt("Missing a "+h+" character to complete a CD arrow.",c[pe]);I[F].body.push(c[pe])}if(H)throw new zt("Missing a "+h+" character to complete a CD arrow.",c[p])}else throw new zt('Expected one of "<>AV=|." after @',c[p]);var xe=O3(h,I,e),ne={type:"styling",body:[xe],mode:"math",style:"display",resetFont:!0};n.push(ne),f=dp()}s%2===0?n.push(f):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var W=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:W,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}Dt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=wa(sr(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=Nt(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new Rt("mrow",[or(e.label,t)]);return r=new Rt("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new Rt("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});Dt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=wa(sr(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new Rt("mrow",[or(e.fragment,t)])}});Dt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=Qt(t[0],"ordgroup"),i=n.body,s="",c=0;c<i.length;c++){var f=Qt(i[c],"textord");s+=f.text}var p=parseInt(s),h;if(isNaN(p))throw new zt("\\@char has non-numeric argument "+s);if(p<0||p>=1114111)throw new zt("\\@char with invalid code point "+s);return p<=65535?h=String.fromCharCode(p):(p-=65536,h=String.fromCharCode((p>>10)+55296,(p&1023)+56320)),{type:"textord",mode:r.mode,text:h}}});var cg=(e,t)=>{var r=Dr(e.body,t.withColor(e.color),!1);return Ii(r)},$g=(e,t)=>{var r=Mn(e.body,t.withColor(e.color)),n=new Rt("mstyle",r);return n.setAttribute("mathcolor",e.color),n};Dt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=Qt(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:zr(i)}},htmlBuilder:cg,mathmlBuilder:$g});Dt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,i=Qt(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var s=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:s}},htmlBuilder:cg,mathmlBuilder:$g});Dt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,s=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:s,size:i&&Qt(i,"size").value}},htmlBuilder(e,t){var r=kt(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Nt(vr(e.size,t)))),r},mathmlBuilder(e,t){var r=new Rt("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Nt(vr(e.size,t)))),r}});var Ef={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},fg=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new zt("Expected a control sequence",e);return t},t5=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},dg=(e,t,r,n)=>{var i=e.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,n)};Dt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(Ef[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=Ef[n.text]),Qt(t.parseFunction(),"internal");throw new zt("Invalid token after macro prefix",n)}});Dt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new zt("Expected a control sequence",n);for(var s=0,c,f=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){c=t.gullet.future(),f[s].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new zt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==s+1)throw new zt('Argument number "'+n.text+'" out of order');s++,f.push([])}else{if(n.text==="EOF")throw new zt("Expected a macro definition");f[s].push(n.text)}var{tokens:p}=t.gullet.consumeArg();return c&&p.unshift(c),(r==="\\edef"||r==="\\xdef")&&(p=t.gullet.expandTokens(p),p.reverse()),t.gullet.macros.set(i,{tokens:p,numArgs:s,delimiters:f},r===Ef[r]),{type:"internal",mode:t.mode}}});Dt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=fg(t.gullet.popToken());t.gullet.consumeSpaces();var i=t5(t);return dg(t,n,i,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});Dt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=fg(t.gullet.popToken()),i=t.gullet.popToken(),s=t.gullet.popToken();return dg(t,n,s,r==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var nl=function(t,r,n){var i=hr.math[t]&&hr.math[t].replace,s=ad(i||t,r,n);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return s},fd=function(t,r,n,i){var s=n.havingBaseStyle(r),c=kt(i.concat(s.sizingClasses(n)),[t],n),f=s.sizeMultiplier/n.sizeMultiplier;return c.height*=f,c.depth*=f,c.maxFontSize=s.sizeMultiplier,c},hg=function(t,r,n){var i=r.havingBaseStyle(n),s=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Nt(s),t.height-=s,t.depth+=s},r5=function(t,r,n,i,s,c){var f=sn(t,"Main-Regular",s,i),p=fd(f,r,i,c);return hg(p,i,r),p},n5=function(t,r,n,i){return sn(t,"Size"+r+"-Regular",n,i)},pg=function(t,r,n,i,s,c){var f=n5(t,r,s,i),p=fd(kt(["delimsizing","size"+r],[f],i),Gt.TEXT,i,c);return n&&hg(p,i,Gt.TEXT),p},Hc=function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=kt(["delimsizinginner",i],[kt([],[sn(t,r,n)])]);return{type:"elem",elem:s}},Vc=function(t,r,n){var i=ui["Size4-Regular"][t.charCodeAt(0)]?ui["Size4-Regular"][t.charCodeAt(0)][4]:ui["Size1-Regular"][t.charCodeAt(0)][4],s=new ss("inner",f3(t,Math.round(1e3*r))),c=new Ti([s],{width:Nt(i),height:Nt(r),style:"width:"+Nt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),f=as([],[c],n);return f.height=r,f.style.height=Nt(r),f.style.width=Nt(i),{type:"elem",elem:f}},Cf=.008,bo={type:"kern",size:-1*Cf},i5=new Set(["|","\\lvert","\\rvert","\\vert"]),s5=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),_g=function(t,r,n,i,s,c){var f,p,h,I,F="",H=0;f=h=I=t,p=null;var pe="Size1-Regular";t==="\\uparrow"?h=I="⏐":t==="\\Uparrow"?h=I="‖":t==="\\downarrow"?f=h="⏐":t==="\\Downarrow"?f=h="‖":t==="\\updownarrow"?(f="\\uparrow",h="⏐",I="\\downarrow"):t==="\\Updownarrow"?(f="\\Uparrow",h="‖",I="\\Downarrow"):i5.has(t)?(h="∣",F="vert",H=333):s5.has(t)?(h="∥",F="doublevert",H=556):t==="["||t==="\\lbrack"?(f="⎡",h="⎢",I="⎣",pe="Size4-Regular",F="lbrack",H=667):t==="]"||t==="\\rbrack"?(f="⎤",h="⎥",I="⎦",pe="Size4-Regular",F="rbrack",H=667):t==="\\lfloor"||t==="⌊"?(h=f="⎢",I="⎣",pe="Size4-Regular",F="lfloor",H=667):t==="\\lceil"||t==="⌈"?(f="⎡",h=I="⎢",pe="Size4-Regular",F="lceil",H=667):t==="\\rfloor"||t==="⌋"?(h=f="⎥",I="⎦",pe="Size4-Regular",F="rfloor",H=667):t==="\\rceil"||t==="⌉"?(f="⎤",h=I="⎥",pe="Size4-Regular",F="rceil",H=667):t==="("||t==="\\lparen"?(f="⎛",h="⎜",I="⎝",pe="Size4-Regular",F="lparen",H=875):t===")"||t==="\\rparen"?(f="⎞",h="⎟",I="⎠",pe="Size4-Regular",F="rparen",H=875):t==="\\{"||t==="\\lbrace"?(f="⎧",p="⎨",I="⎩",h="⎪",pe="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(f="⎫",p="⎬",I="⎭",h="⎪",pe="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(f="⎧",I="⎩",h="⎪",pe="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(f="⎫",I="⎭",h="⎪",pe="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(f="⎧",I="⎭",h="⎪",pe="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(f="⎫",I="⎩",h="⎪",pe="Size4-Regular");var xe=nl(f,pe,s),ne=xe.height+xe.depth,W=nl(h,pe,s),X=W.height+W.depth,ge=nl(I,pe,s),se=ge.height+ge.depth,me=0,J=1;if(p!==null){var be=nl(p,pe,s);me=be.height+be.depth,J=2}var fe=ne+se+me,Ae=Math.max(0,Math.ceil((r-fe)/(J*X))),O=fe+Ae*J*X,Ee=i.fontMetrics().axisHeight;n&&(Ee*=i.sizeMultiplier);var le=O/2-Ee,w=[];if(F.length>0){var Se=O-ne-se,N=Math.round(O*1e3),re=d3(F,Math.round(Se*1e3)),P=new ss(F,re),Me=Nt(H/1e3),ce=Nt(N/1e3),M=new Ti([P],{width:Me,height:ce,viewBox:"0 0 "+H+" "+N}),x=as([],[M],i);x.height=N/1e3,x.style.width=Me,x.style.height=ce,w.push({type:"elem",elem:x})}else{if(w.push(Hc(I,pe,s)),w.push(bo),p===null){var $=O-ne-se+2*Cf;w.push(Vc(h,$,i))}else{var l=(O-ne-se-me)/2+2*Cf;w.push(Vc(h,l,i)),w.push(bo),w.push(Hc(p,pe,s)),w.push(bo),w.push(Vc(h,l,i))}w.push(bo),w.push(Hc(f,pe,s))}var u=i.havingBaseStyle(Gt.TEXT),d=ir({positionType:"bottom",positionData:le,children:w});return fd(kt(["delimsizing","mult"],[d],u),Gt.TEXT,i,c)},Yc=80,Wc=.08,Gc=function(t,r,n,i,s){var c=$3(t,i,n),f=new ss(t,c),p=new Ti([f],{width:"400em",height:Nt(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return as(["hide-tail"],[p],s)},a5=function(t,r){var n=r.havingBaseSizing(),i=bg("\\surd",t*n.sizeMultiplier,yg,n),s=n.sizeMultiplier,c=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),f,p,h,I,F;return i.type==="small"?(I=1e3+1e3*c+Yc,t<1?s=1:t<1.4&&(s=.7),p=(1+c+Wc)/s,h=(1+c)/s,f=Gc("sqrtMain",p,I,c,r),f.style.minWidth="0.853em",F=.833/s):i.type==="large"?(I=(1e3+Yc)*_l[i.size],h=(_l[i.size]+c)/s,p=(_l[i.size]+c+Wc)/s,f=Gc("sqrtSize"+i.size,p,I,c,r),f.style.minWidth="1.02em",F=1/s):(p=t+c+Wc,h=t+c,I=Math.floor(1e3*t+c)+Yc,f=Gc("sqrtTall",p,I,c,r),f.style.minWidth="0.742em",F=1.056),f.height=h,f.style.height=Nt(p),{span:f,advanceWidth:F,ruleWidth:(r.fontMetrics().sqrtRuleThickness+c)*s}},mg=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),l5=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),gg=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),_l=[0,1.2,1.8,2.4,3],vg=function(t,r,n,i,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),mg.has(t)||gg.has(t))return pg(t,r,!1,n,i,s);if(l5.has(t))return _g(t,_l[r],!1,n,i,s);throw new zt("Illegal delimiter: '"+t+"'")},o5=[{type:"small",style:Gt.SCRIPTSCRIPT},{type:"small",style:Gt.SCRIPT},{type:"small",style:Gt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],u5=[{type:"small",style:Gt.SCRIPTSCRIPT},{type:"small",style:Gt.SCRIPT},{type:"small",style:Gt.TEXT},{type:"stack"}],yg=[{type:"small",style:Gt.SCRIPTSCRIPT},{type:"small",style:Gt.SCRIPT},{type:"small",style:Gt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],c5=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var r=t.type;throw new Error("Add support for delim type '"+r+"' here.")},bg=function(t,r,n,i){for(var s=Math.min(2,3-i.style.size),c=s;c<n.length;c++){var f=n[c];if(f.type==="stack")break;var p=nl(t,c5(f),"math"),h=p.height+p.depth;if(f.type==="small"){var I=i.havingBaseStyle(f.style);h*=I.sizeMultiplier}if(h>r)return f}return n[n.length-1]},Tf=function(t,r,n,i,s,c){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var f;gg.has(t)?f=o5:mg.has(t)?f=yg:f=u5;var p=bg(t,r,f,i);return p.type==="small"?r5(t,p.style,n,i,s,c):p.type==="large"?pg(t,p.size,n,i,s,c):_g(t,r,n,i,s,c)},Kc=function(t,r,n,i,s,c){var f=i.fontMetrics().axisHeight*i.sizeMultiplier,p=901,h=5/i.fontMetrics().ptPerEm,I=Math.max(r-f,n+f),F=Math.max(I/500*p,2*I-h);return Tf(t,F,!0,i,s,c)},pp={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},$5=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function _p(e){return"isMiddle"in e}function ec(e,t){var r=Ju(e);if(r&&$5.has(r.text))return r;throw r?new zt("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new zt("Invalid delimiter type '"+e.type+"'",e)}Dt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=ec(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:pp[e.funcName].size,mclass:pp[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?kt([e.mclass]):vg(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Vn(e.delim,e.mode));var r=new Rt("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Nt(_l[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function mp(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Dt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new zt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:ec(t[0],e).text,color:r}}});Dt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=ec(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var s=Qt(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{mp(e);for(var r=Dr(e.body,t,!0,["mopen","mclose"]),n=0,i=0,s=!1,c=0;c<r.length;c++){var f=r[c];_p(f)?s=!0:(n=Math.max(r[c].height,n),i=Math.max(r[c].depth,i))}n*=t.sizeMultiplier,i*=t.sizeMultiplier;var p;if(e.left==="."?p=Ll(t,["mopen"]):p=Kc(e.left,n,i,t,e.mode,["mopen"]),r.unshift(p),s)for(var h=1;h<r.length;h++){var I=r[h];if(_p(I)){var F=I.isMiddle;r[h]=Kc(F.delim,n,i,F.options,e.mode,[])}}var H;if(e.right===".")H=Ll(t,["mclose"]);else{var pe=e.rightColor?t.withColor(e.rightColor):t;H=Kc(e.right,n,i,pe,e.mode,["mclose"])}return r.push(H),kt(["minner"],r,t)},mathmlBuilder:(e,t)=>{mp(e);var r=Mn(e.body,t);if(e.left!=="."){var n=new Rt("mo",[Vn(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new Rt("mo",[Vn(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return ud(r)}});Dt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=ec(t[0],e);if(!e.parser.leftrightDepth)throw new zt("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;return e.delim==="."?r=Ll(t,[]):(r=vg(e.delim,1,t,e.mode,[]),r.isMiddle={delim:e.delim,options:t}),r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?Vn("|","text"):Vn(e.delim,e.mode),n=new Rt("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var tc=(e,t)=>{var r=wa(sr(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,s,c,f=Ri(e.body);if(n==="sout")s=kt(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/i,c=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var p=vr({number:.6,unit:"pt"},t),h=vr({number:.35,unit:"ex"},t),I=t.havingBaseSizing();i=i/I.sizeMultiplier;var F=r.height+r.depth+p+h;r.style.paddingLeft=Nt(F/2+p);var H=Math.floor(1e3*F*i),pe=u3(H),xe=new Ti([new ss("phase",pe)],{width:"400em",height:Nt(H/1e3),viewBox:"0 0 400000 "+H,preserveAspectRatio:"xMinYMin slice"});s=as(["hide-tail"],[xe],t),s.style.height=Nt(F),c=r.depth+p+h}else{/cancel/.test(n)?f||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var ne,W,X=0;/box/.test(n)?(X=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),ne=t.fontMetrics().fboxsep+(n==="colorbox"?0:X),W=ne):n==="angl"?(X=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),ne=4*X,W=Math.max(0,.25-r.depth)):(ne=f?.2:0,W=ne),s=W3(r,n,ne,W,t),/fbox|boxed|fcolorbox/.test(n)?(s.style.borderStyle="solid",s.style.borderWidth=Nt(X)):n==="angl"&&X!==.049&&(s.style.borderTopWidth=Nt(X),s.style.borderRightWidth=Nt(X)),c=r.depth+W,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var ge;if(e.backgroundColor)ge=ir({positionType:"individualShift",children:[{type:"elem",elem:s,shift:c},{type:"elem",elem:r,shift:0}]});else{var se=/cancel|phase/.test(n)?["svg-align"]:[];ge=ir({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:s,shift:c,wrapperClasses:se}]})}return/cancel/.test(n)&&(ge.height=r.height,ge.depth=r.depth),/cancel/.test(n)&&!f?kt(["mord","cancel-lap"],[ge],t):kt(["mord"],[ge],t)},rc=(e,t)=>{var r,n=new Rt(e.label.includes("colorbox")?"mpadded":"menclose",[or(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+Nt(i)+" solid "+e.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};Dt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,r){var{parser:n,funcName:i}=e,s=Qt(t[0],"color-token").color,c=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,body:c}},htmlBuilder:tc,mathmlBuilder:rc});Dt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(e,t,r){var{parser:n,funcName:i}=e,s=Qt(t[0],"color-token").color,c=Qt(t[1],"color-token").color,f=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:c,borderColor:s,body:f}},htmlBuilder:tc,mathmlBuilder:rc});Dt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});Dt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:tc,mathmlBuilder:rc});Dt({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:tc,mathmlBuilder:rc});Dt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var xg={};function di(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:s,mathmlBuilder:c}=e,f={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},p=0;p<r.length;++p)xg[r[p]]=f;s&&(_u[t]=s),c&&(mu[t]=c)}var wg={};function Qe(e,t){wg[e]=t}class hn{constructor(t,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new hn(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class Cn{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new Cn(r,hn.range(this,t))}}function gp(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var nc=e=>{var t=e.parser.settings;if(!t.displayMode)throw new zt("{"+e.envName+"} can be used only in display mode.")},f5=new Set(["gather","gather*"]);function dd(e){if(!e.includes("ed"))return!e.includes("*")}function hs(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:s,arraystretch:c,colSeparationType:f,autoTag:p,singleRow:h,emptySingleRow:I,maxNumCols:F,leqno:H}=t;if(e.gullet.beginGroup(),h||e.gullet.macros.set("\\cr","\\\\\\relax"),!c){var pe=e.gullet.expandMacroAsText("\\arraystretch");if(pe==null)c=1;else if(c=parseFloat(pe),!c||c<0)throw new zt("Invalid \\arraystretch: "+pe)}e.gullet.beginGroup();var xe=[],ne=[xe],W=[],X=[],ge=p!=null?[]:void 0;function se(){p&&e.gullet.macros.set("\\@eqnsw","1",!0)}function me(){ge&&(e.gullet.macros.get("\\df@tag")?(ge.push(e.subparse([new Cn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):ge.push(!!p&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(se(),X.push(gp(e));;){var J=e.parseExpression(!1,h?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var be={type:"ordgroup",mode:e.mode,body:J};r&&(be={type:"styling",mode:e.mode,style:r,resetFont:!0,body:[be]}),xe.push(be);var fe=e.fetch().text;if(fe==="&"){if(F&&xe.length===F){if(h||f)throw new zt("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(fe==="\\end"){me(),xe.length===1&&be.type==="styling"&&be.body.length===1&&be.body[0].type==="ordgroup"&&be.body[0].body.length===0&&(ne.length>1||!I)&&ne.pop(),X.length<ne.length+1&&X.push([]);break}else if(fe==="\\\\"){e.consume();var Ae=void 0;e.gullet.future().text!==" "&&(Ae=e.parseSizeGroup(!0)),W.push(Ae?Ae.value:null),me(),X.push(gp(e)),xe=[],ne.push(xe),se()}else throw new zt("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:c,body:ne,cols:s,rowGaps:W,hskipBeforeAndAfter:n,hLinesBeforeRow:X,colSeparationType:f,tags:ge,leqno:H}}function hd(e){return e.slice(0,1)==="d"?"display":"text"}var hi=function(t,r){var n,i,s=t.body.length,c=t.hLinesBeforeRow,f=0,p=new Array(s),h=[],I=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),F=1/r.fontMetrics().ptPerEm,H=5*F;if(t.colSeparationType&&t.colSeparationType==="small"){var pe=r.havingStyle(Gt.SCRIPT).sizeMultiplier;H=.2778*(pe/r.sizeMultiplier)}var xe=t.colSeparationType==="CD"?vr({number:3,unit:"ex"},r):12*F,ne=3*F,W=t.arraystretch*xe,X=.7*W,ge=.3*W,se=0;function me(ct){for(var a=0;a<ct.length;++a)a>0&&(se+=.25),h.push({pos:se,isDashed:ct[a]})}for(me(c[0]),n=0;n<t.body.length;++n){var J=t.body[n],be=X,fe=ge;f<J.length&&(f=J.length);var Ae={cells:new Array(J.length),height:0,depth:0,pos:0};for(i=0;i<J.length;++i){var O=sr(J[i],r);fe<O.depth&&(fe=O.depth),be<O.height&&(be=O.height),Ae.cells[i]=O}var Ee=t.rowGaps[n],le=0;Ee&&(le=vr(Ee,r),le>0&&(le+=ge,fe<le&&(fe=le),le=0)),t.addJot&&n<t.body.length-1&&(fe+=ne),Ae.height=be,Ae.depth=fe,se+=be,Ae.pos=se,se+=fe+le,p[n]=Ae,me(c[n+1])}var w=se/2+r.fontMetrics().axisHeight,Se=t.cols||[],N=[],re,P,Me=[];if(t.tags&&t.tags.some(ct=>ct))for(n=0;n<s;++n){var ce=p[n],M=ce.pos-w,x=t.tags[n],$=void 0;x===!0?$=kt(["eqn-num"],[],r):x===!1?$=kt([],[],r):$=kt([],Dr(x,r,!0),r),$.depth=ce.depth,$.height=ce.height,Me.push({type:"elem",elem:$,shift:M})}for(i=0,P=0;i<f||P<Se.length;++i,++P){for(var l,u=Se[P],d=!0;((_=u)==null?void 0:_.type)==="separator";){var _;if(d||(re=kt(["arraycolsep"],[]),re.style.width=Nt(r.fontMetrics().doubleRuleSep),N.push(re)),u.separator==="|"||u.separator===":"){var S=u.separator==="|"?"solid":"dashed",A=kt(["vertical-separator"],[],r);A.style.height=Nt(se),A.style.borderRightWidth=Nt(I),A.style.borderRightStyle=S,A.style.margin="0 "+Nt(-I/2);var Q=se-w;Q&&(A.style.verticalAlign=Nt(-Q)),N.push(A)}else throw new zt("Invalid separator type: "+u.separator);P++,u=Se[P],d=!1}if(!(i>=f)){var De=void 0;if(i>0||t.hskipBeforeAndAfter){var rt,ft;De=(rt=(ft=u)==null?void 0:ft.pregap)!=null?rt:H,De!==0&&(re=kt(["arraycolsep"],[]),re.style.width=Nt(De),N.push(re))}var _t=[];for(n=0;n<s;++n){var At=p[n],bt=At.cells[i];if(bt){var Mt=At.pos-w;bt.depth=At.depth,bt.height=At.height,_t.push({type:"elem",elem:bt,shift:Mt})}}var Et=ir({positionType:"individualShift",children:_t}),qt=kt(["col-align-"+(((l=u)==null?void 0:l.align)||"c")],[Et]);if(N.push(qt),i<f-1||t.hskipBeforeAndAfter){var It,nt;De=(It=(nt=u)==null?void 0:nt.postgap)!=null?It:H,De!==0&&(re=kt(["arraycolsep"],[]),re.style.width=Nt(De),N.push(re))}}}var Re=kt(["mtable"],N);if(h.length>0){for(var Pe=xa("hline",r,I),Ke=xa("hdashline",r,I),b=[{type:"elem",elem:Re,shift:0}];h.length>0;){var R=h.pop(),ve=R.pos-w;R.isDashed?b.push({type:"elem",elem:Ke,shift:ve}):b.push({type:"elem",elem:Pe,shift:ve})}Re=ir({positionType:"individualShift",children:b})}if(Me.length===0)return kt(["mord"],[Re],r);var Le=ir({positionType:"individualShift",children:Me}),Ze=kt(["tag"],[Le],r);return Ii([Re,Ze])},d5={c:"center ",l:"left ",r:"right "},pi=function(t,r){for(var n=[],i=new Rt("mtd",[],["mtr-glue"]),s=new Rt("mtd",[],["mml-eqn-num"]),c=0;c<t.body.length;c++){for(var f=t.body[c],p=[],h=0;h<f.length;h++)p.push(new Rt("mtd",[or(f[h],r)]));t.tags&&t.tags[c]&&(p.unshift(i),p.push(i),t.leqno?p.unshift(s):p.push(s)),n.push(new Rt("mtr",p))}var I=new Rt("mtable",n),F=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);I.setAttribute("rowspacing",Nt(F));var H="",pe="";if(t.cols&&t.cols.length>0){var xe=t.cols,ne="",W=!1,X=0,ge=xe.length;xe[0].type==="separator"&&(H+="top ",X=1),xe[xe.length-1].type==="separator"&&(H+="bottom ",ge-=1);for(var se=X;se<ge;se++){var me=xe[se];me.type==="align"?(pe+=d5[me.align],W&&(ne+="none "),W=!0):me.type==="separator"&&W&&(ne+=me.separator==="|"?"solid ":"dashed ",W=!1)}I.setAttribute("columnalign",pe.trim()),/[sd]/.test(ne)&&I.setAttribute("columnlines",ne.trim())}if(t.colSeparationType==="align"){for(var J=t.cols||[],be="",fe=1;fe<J.length;fe++)be+=fe%2?"0em ":"1em ";I.setAttribute("columnspacing",be.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?I.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?I.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?I.setAttribute("columnspacing","0.5em"):I.setAttribute("columnspacing","1em");var Ae="",O=t.hLinesBeforeRow;H+=O[0].length>0?"left ":"",H+=O[O.length-1].length>0?"right ":"";for(var Ee=1;Ee<O.length-1;Ee++)Ae+=O[Ee].length===0?"none ":O[Ee][0]?"dashed ":"solid ";return/[sd]/.test(Ae)&&I.setAttribute("rowlines",Ae.trim()),H!==""&&(I=new Rt("menclose",[I]),I.setAttribute("notation",H.trim())),t.arraystretch&&t.arraystretch<1&&(I=new Rt("mstyle",[I]),I.setAttribute("scriptlevel","1")),I},kg=function(t,r){t.envName.includes("ed")||nc(t);var n=[],i=t.envName.includes("at")?"alignat":"align",s=t.envName==="split",c=hs(t.parser,{cols:n,addJot:!0,autoTag:s?void 0:dd(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),f=0,p=0,h={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var I="",F=0;F<r[0].body.length;F++){var H=Qt(r[0].body[F],"textord");I+=H.text}f=Number(I),p=f*2}var pe=!p;c.body.forEach(function(X){for(var ge=1;ge<X.length;ge+=2){var se=Qt(X[ge],"styling"),me=Qt(se.body[0],"ordgroup");me.body.unshift(h)}if(pe)p<X.length&&(p=X.length);else{var J=X.length/2;if(f<J)throw new zt("Too many math in a row: "+("expected "+f+", but got "+J),X[0])}});for(var xe=0;xe<p;++xe){var ne="r",W=0;xe%2===1?ne="l":xe>0&&pe&&(W=1),n[xe]={type:"align",align:ne,pregap:W,postgap:0}}return c.colSeparationType=pe?"align":"alignat",c};di({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Ju(t[0]),n=r?[t[0]]:Qt(t[0],"ordgroup").body,i=n.map(function(c){var f=Zu(c),p=f.text;if("lcr".includes(p))return{type:"align",align:p};if(p==="|")return{type:"separator",separator:"|"};if(p===":")return{type:"separator",separator:":"};throw new zt("Unknown column alignment: "+p,c)}),s={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return hs(e.parser,s,hd(e.envName))},htmlBuilder:hi,mathmlBuilder:pi});di({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new zt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var s=hs(e.parser,n,hd(e.envName)),c=Math.max(0,...s.body.map(f=>f.length));return s.cols=new Array(c).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:hi,mathmlBuilder:pi});di({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=hs(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:hi,mathmlBuilder:pi});di({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Ju(t[0]),n=r?[t[0]]:Qt(t[0],"ordgroup").body,i=n.map(function(f){var p=Zu(f),h=p.text;if("lc".includes(h))return{type:"align",align:h};throw new zt("Unknown column alignment: "+h,f)});if(i.length>1)throw new zt("{subarray} can contain only one column");var s={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},c=hs(e.parser,s,"script");if(c.body.length>0&&c.body[0].length>1)throw new zt("{subarray} can contain only one column");return c},htmlBuilder:hi,mathmlBuilder:pi});di({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=hs(e.parser,t,hd(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:hi,mathmlBuilder:pi});di({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:kg,htmlBuilder:hi,mathmlBuilder:pi});di({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){f5.has(e.envName)&&nc(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:dd(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return hs(e.parser,t,"display")},htmlBuilder:hi,mathmlBuilder:pi});di({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:kg,htmlBuilder:hi,mathmlBuilder:pi});di({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){nc(e);var t={autoTag:dd(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return hs(e.parser,t,"display")},htmlBuilder:hi,mathmlBuilder:pi});di({type:"array",names:["CD"],props:{numArgs:0},handler(e){return nc(e),e5(e.parser)},htmlBuilder:hi,mathmlBuilder:pi});Qe("\\nonumber","\\gdef\\@eqnsw{0}");Qe("\\notag","\\nonumber");Dt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new zt(e.funcName+" valid only within array environment")}});var vp=xg;Dt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if(i.type!=="ordgroup")throw new zt("Invalid environment name",i);for(var s="",c=0;c<i.body.length;++c)s+=Qt(i.body[c],"textord").text;if(n==="\\begin"){if(!vp.hasOwnProperty(s))throw new zt("No such environment: "+s,i);var f=vp[s],{args:p,optArgs:h}=r.parseArguments("\\begin{"+s+"}",f),I={mode:r.mode,envName:s,parser:r},F=f.handler(I,p,h);r.expect("\\end",!1);var H=r.nextToken,pe=Qt(r.parseFunction(),"environment");if(pe.name!==s)throw new zt("Mismatch: \\begin{"+s+"} matched by \\end{"+pe.name+"}",H);return F}return{type:"environment",mode:r.mode,name:s,nameGroup:i}}});var Sg=(e,t)=>{var r=e.font,n=t.withFont(r);return sr(e.body,n)},Ag=(e,t)=>{var r=e.font,n=t.withFont(r);return or(e.body,n)},yp={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};Dt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=gu(t[0]),s=n;return s in yp&&(s=yp[s]),{type:"font",mode:r.mode,font:s.slice(1),body:i}},htmlBuilder:Sg,mathmlBuilder:Ag});Dt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:Ou(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:Ri(n)}}});Dt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:i}=e,{mode:s}=r,c=r.parseExpression(!0,i);return{type:"font",mode:s,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:c}}},htmlBuilder:Sg,mathmlBuilder:Ag});var h5=(e,t)=>{var r=t.style,n=r.fracNum(),i=r.fracDen(),s;s=t.havingStyle(n);var c=sr(e.numer,s,t);if(e.continued){var f=8.5/t.fontMetrics().ptPerEm,p=3.5/t.fontMetrics().ptPerEm;c.height=c.height<f?f:c.height,c.depth=c.depth<p?p:c.depth}s=t.havingStyle(i);var h=sr(e.denom,s,t),I,F,H;e.hasBarLine?(e.barSize?(F=vr(e.barSize,t),I=xa("frac-line",t,F)):I=xa("frac-line",t),F=I.height,H=I.height):(I=null,F=0,H=t.fontMetrics().defaultRuleThickness);var pe,xe,ne;r.size===Gt.DISPLAY.size?(pe=t.fontMetrics().num1,F>0?xe=3*H:xe=7*H,ne=t.fontMetrics().denom1):(F>0?(pe=t.fontMetrics().num2,xe=H):(pe=t.fontMetrics().num3,xe=3*H),ne=t.fontMetrics().denom2);var W;if(I){var ge=t.fontMetrics().axisHeight;pe-c.depth-(ge+.5*F)<xe&&(pe+=xe-(pe-c.depth-(ge+.5*F))),ge-.5*F-(h.height-ne)<xe&&(ne+=xe-(ge-.5*F-(h.height-ne)));var se=-(ge-.5*F);W=ir({positionType:"individualShift",children:[{type:"elem",elem:h,shift:ne},{type:"elem",elem:I,shift:se},{type:"elem",elem:c,shift:-pe}]})}else{var X=pe-c.depth-(h.height-ne);X<xe&&(pe+=.5*(xe-X),ne+=.5*(xe-X)),W=ir({positionType:"individualShift",children:[{type:"elem",elem:h,shift:ne},{type:"elem",elem:c,shift:-pe}]})}s=t.havingStyle(r),W.height*=s.sizeMultiplier/t.sizeMultiplier,W.depth*=s.sizeMultiplier/t.sizeMultiplier;var me;r.size===Gt.DISPLAY.size?me=t.fontMetrics().delim1:r.size===Gt.SCRIPTSCRIPT.size?me=t.havingStyle(Gt.SCRIPT).fontMetrics().delim2:me=t.fontMetrics().delim2;var J,be;return e.leftDelim==null?J=Ll(t,["mopen"]):J=Tf(e.leftDelim,me,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?be=kt([]):e.rightDelim==null?be=Ll(t,["mclose"]):be=Tf(e.rightDelim,me,!0,t.havingStyle(r),e.mode,["mclose"]),kt(["mord"].concat(s.sizingClasses(t)),[J,kt(["mfrac"],[W]),be],t)},p5=(e,t)=>{var r=new Rt("mfrac",[or(e.numer,t),or(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=vr(e.barSize,t);r.setAttribute("linethickness",Nt(n))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var s=new Rt("mo",[new Rr(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}if(i.push(r),e.rightDelim!=null){var c=new Rt("mo",[new Rr(e.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),i.push(c)}return ud(i)}return r},Eg=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};Dt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],s=t[1],c,f=null,p=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":c=!0;break;case"\\\\atopfrac":c=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":c=!1,f="(",p=")";break;case"\\\\bracefrac":c=!1,f="\\{",p="\\}";break;case"\\\\brackfrac":c=!1,f="[",p="]";break;default:throw new Error("Unrecognized genfrac command")}var h=n==="\\cfrac",I=null;return h||n.startsWith("\\d")?I="display":n.startsWith("\\t")&&(I="text"),Eg({type:"genfrac",mode:r.mode,numer:i,denom:s,continued:h,hasBarLine:c,leftDelim:f,rightDelim:p,barSize:null},I)},htmlBuilder:h5,mathmlBuilder:p5});Dt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:n}}});var bp=["display","text","script","scriptscript"],xp=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};Dt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],i=t[5],s=gu(t[0]),c=s.type==="atom"&&s.family==="open"?xp(s.text):null,f=gu(t[1]),p=f.type==="atom"&&f.family==="close"?xp(f.text):null,h=Qt(t[2],"size"),I,F=null;h.isBlank?I=!0:(F=h.value,I=F.number>0);var H=null,pe=t[3];if(pe.type==="ordgroup"){if(pe.body.length>0){var xe=Qt(pe.body[0],"textord");H=bp[Number(xe.text)]}}else pe=Qt(pe,"textord"),H=bp[Number(pe.text)];return Eg({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:I,barSize:F,leftDelim:c,rightDelim:p},H)}});Dt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Qt(t[0],"size").value,token:i}}});Dt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],s=Qt(t[1],"infix").size;if(!s)throw new Error("\\\\abovefrac expected size, but got "+String(s));var c=t[2],f=s.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:c,continued:!1,hasBarLine:f,barSize:s,leftDelim:null,rightDelim:null}}});var Cg=(e,t)=>{var r=t.style,n,i;e.type==="supsub"?(n=e.sup?sr(e.sup,t.havingStyle(r.sup()),t):sr(e.sub,t.havingStyle(r.sub()),t),i=Qt(e.base,"horizBrace")):i=Qt(e,"horizBrace");var s=sr(i.base,t.havingBaseStyle(Gt.DISPLAY)),c=Qu(i,t),f;if(i.isOver?f=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:c,wrapperClasses:["svg-align"]}]}):f=ir({positionType:"bottom",positionData:s.depth+.1+c.height,children:[{type:"elem",elem:c,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:s}]}),n){var p=kt(["minner",i.isOver?"mover":"munder"],[f],t);i.isOver?f=ir({positionType:"firstBaseline",children:[{type:"elem",elem:p},{type:"kern",size:.2},{type:"elem",elem:n}]}):f=ir({positionType:"bottom",positionData:p.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:p}]})}return kt(["minner",i.isOver?"mover":"munder"],[f],t)},_5=(e,t)=>{var r=Xu(e.label);return new Rt(e.isOver?"mover":"munder",[or(e.base,t),r])};Dt({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:t[0]}},htmlBuilder:Cg,mathmlBuilder:_5});Dt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],i=Qt(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:zr(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Dr(e.body,t,!1);return T3(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=ls(e.body,t);return r instanceof Rt||(r=new Rt("mrow",[r])),r.setAttribute("href",e.href),r}});Dt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=Qt(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],s=0;s<n.length;s++){var c=n[s];c==="~"&&(c="\\textasciitilde"),i.push({type:"textord",mode:"text",text:c})}var f={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:zr(f)}}});Dt({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:zr(t[0])}},htmlBuilder(e,t){var r=Dr(e.body,t.withFont(""),!1);return Ii(r)},mathmlBuilder(e,t){return new Rt("mrow",Mn(e.body,t.withFont("")))}});Dt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:i}=e,s=Qt(t[0],"raw").string,c=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var f,p={};switch(n){case"\\htmlClass":p.class=s,f={command:"\\htmlClass",class:s};break;case"\\htmlId":p.id=s,f={command:"\\htmlId",id:s};break;case"\\htmlStyle":p.style=s,f={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var h=s.split(","),I=0;I<h.length;I++){var F=h[I],H=F.indexOf("=");if(H<0)throw new zt("\\htmlData key/value '"+F+"' missing equals sign");var pe=F.slice(0,H),xe=F.slice(H+1);p["data-"+pe.trim()]=xe}f={command:"\\htmlData",attributes:p};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(f)?{type:"html",mode:r.mode,attributes:p,body:zr(c)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=Dr(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=kt(n,r,t);for(var s in e.attributes)s!=="class"&&e.attributes.hasOwnProperty(s)&&i.setAttribute(s,e.attributes[s]);return i},mathmlBuilder:(e,t)=>ls(e.body,t)});Dt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:zr(t[0]),mathml:zr(t[1])}},htmlBuilder:(e,t)=>{var r=Dr(e.html,t,!1);return Ii(r)},mathmlBuilder:(e,t)=>ls(e.mathml,t)});var Xc=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new zt("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!Y1(n))throw new zt("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};Dt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},s={number:.9,unit:"em"},c={number:0,unit:"em"},f="";if(r[0])for(var p=Qt(r[0],"raw").string,h=p.split(","),I=0;I<h.length;I++){var F=h[I].split("=");if(F.length===2){var H=F[1].trim();switch(F[0].trim()){case"alt":f=H;break;case"width":i=Xc(H);break;case"height":s=Xc(H);break;case"totalheight":c=Xc(H);break;default:throw new zt("Invalid key: '"+F[0]+"' in \\includegraphics.")}}}var pe=Qt(t[0],"url").url;return f===""&&(f=pe,f=f.replace(/^.*[\\/]/,""),f=f.substring(0,f.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:pe})?{type:"includegraphics",mode:n.mode,alt:f,width:i,height:s,totalheight:c,src:pe}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=vr(e.height,t),n=0;e.totalheight.number>0&&(n=vr(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=vr(e.width,t));var s={height:Nt(r+n)};i>0&&(s.width=Nt(i)),n>0&&(s.verticalAlign=Nt(-n));var c=new m3(e.src,e.alt,s);return c.height=r,c.depth=n,c},mathmlBuilder:(e,t)=>{var r=new Rt("mglyph",[]);r.setAttribute("alt",e.alt);var n=vr(e.height,t),i=0;if(e.totalheight.number>0&&(i=vr(e.totalheight,t)-n,r.setAttribute("valign",Nt(-i))),r.setAttribute("height",Nt(n+i)),e.width.number>0){var s=vr(e.width,t);r.setAttribute("width",Nt(s))}return r.setAttribute("src",e.src),r}});Dt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=Qt(t[0],"size");if(r.settings.strict){var s=n[1]==="m",c=i.value.unit==="mu";s?(c||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):c&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return Z1(e.dimension,t)},mathmlBuilder(e,t){var r=vr(e.dimension,t);return new ng(r)}});Dt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=kt([],[sr(e.body,t)]),r=kt(["inner"],[r],t)):r=kt(["inner"],[sr(e.body,t)]);var n=kt(["fix"],[]),i=kt([e.alignment],[r,n],t),s=kt(["strut"]);return s.style.height=Nt(i.height+i.depth),i.depth&&(s.style.verticalAlign=Nt(-i.depth)),i.children.unshift(s),i=kt(["thinbox"],[i],t),kt(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new Rt("mpadded",[or(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});Dt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var s=r==="\\("?"\\)":"$",c=n.parseExpression(!1,s);return n.expect(s),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:c}}});Dt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new zt("Mismatched "+e.funcName)}});var wp=(e,t)=>{switch(t.style.size){case Gt.DISPLAY.size:return e.display;case Gt.TEXT.size:return e.text;case Gt.SCRIPT.size:return e.script;case Gt.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Dt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:zr(t[0]),text:zr(t[1]),script:zr(t[2]),scriptscript:zr(t[3])}},htmlBuilder:(e,t)=>{var r=wp(e,t),n=Dr(r,t,!1);return Ii(n)},mathmlBuilder:(e,t)=>{var r=wp(e,t);return ls(r,t)}});var Tg=(e,t,r,n,i,s,c)=>{e=kt([],[e]);var f=r&&Ri(r),p,h;if(t){var I=sr(t,n.havingStyle(i.sup()),n);h={elem:I,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-I.depth)}}if(r){var F=sr(r,n.havingStyle(i.sub()),n);p={elem:F,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-F.height)}}var H;if(h&&p){var pe=n.fontMetrics().bigOpSpacing5+p.elem.height+p.elem.depth+p.kern+e.depth+c;H=ir({positionType:"bottom",positionData:pe,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:Nt(-s)},{type:"kern",size:p.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:Nt(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(p){var xe=e.height-c;H=ir({positionType:"top",positionData:xe,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:Nt(-s)},{type:"kern",size:p.kern},{type:"elem",elem:e}]})}else if(h){var ne=e.depth+c;H=ir({positionType:"bottom",positionData:ne,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:Nt(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var W=[H];if(p&&s!==0&&!f){var X=kt(["mspace"],[],n);X.style.marginRight=Nt(s),W.unshift(X)}return kt(["mop","op-limits"],W,n)},zg=new Set(["\\smallint"]),Da=(e,t)=>{var r,n,i=!1,s;e.type==="supsub"?(r=e.sup,n=e.sub,s=Qt(e.base,"op"),i=!0):s=Qt(e,"op");var c=t.style,f=!1;c.size===Gt.DISPLAY.size&&s.symbol&&!zg.has(s.name)&&(f=!0);var p,h;if(s.symbol){var I=f?"Size2-Regular":"Size1-Regular",F="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(F=s.name.slice(1),s.name=F==="oiint"?"\\iint":"\\iiint"),p=sn(s.name,I,"math",t,["mop","op-symbol",f?"large-op":"small-op"]),h=p.italic,F.length>0){var H=O1(F+"Size"+(f?"2":"1"),t);p=ir({positionType:"individualShift",children:[{type:"elem",elem:p,shift:0},{type:"elem",elem:H,shift:f?.08:0}]}),s.name="\\"+F,p.classes.unshift("mop"),p.italic=h}}else if(s.body){var pe=Dr(s.body,t,!0);pe.length===1&&pe[0]instanceof zn?(p=pe[0],p.classes[0]="mop"):p=kt(["mop"],pe,t)}else{for(var xe=[],ne=1;ne<s.name.length;ne++)xe.push(ld(s.name[ne],s.mode,t));p=kt(["mop"],xe,t)}var W=0,X=0;if((p instanceof zn||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift){var ge;W=(p.height-p.depth)/2-t.fontMetrics().axisHeight,X=(ge=p.italic)!=null?ge:0}return i?Tg(p,r,n,t,c,X,W):(W&&(p.style.position="relative",p.style.top=Nt(W)),p)},Kl=(e,t)=>{var r;if(e.symbol)r=new Rt("mo",[Vn(e.name,e.mode)]),zg.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Rt("mo",Mn(e.body,t));else{r=new Rt("mi",[new Rr(e.name.slice(1))]);var n=new Rt("mo",[Vn("","text")]);e.parentIsSupSub?r=new Rt("mrow",[r,n]):r=rg([r,n])}return r},m5={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Dt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=n;return i.length===1&&(i=m5[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Da,mathmlBuilder:Kl});Dt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:zr(n)}},htmlBuilder:Da,mathmlBuilder:Kl});var g5={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Dt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Da,mathmlBuilder:Kl});Dt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Da,mathmlBuilder:Kl});Dt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=g5[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Da,mathmlBuilder:Kl});var Rg=(e,t)=>{var r,n,i=!1,s;e.type==="supsub"?(r=e.sup,n=e.sub,s=Qt(e.base,"operatorname"),i=!0):s=Qt(e,"operatorname");var c;if(s.body.length>0){for(var f=s.body.map(F=>{var H="text"in F?F.text:void 0;return typeof H=="string"?{type:"textord",mode:F.mode,text:H}:F}),p=Dr(f,t.withFont("mathrm"),!0),h=0;h<p.length;h++){var I=p[h];I instanceof zn&&(I.text=I.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}c=kt(["mop"],p,t)}else c=kt(["mop"],[],t);return i?Tg(c,r,n,t,t.style,0,0):c},v5=(e,t)=>{for(var r=Mn(e.body,t.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var s=r[i];if(!(s instanceof ng))if(s instanceof Rt)switch(s.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var c=s.children[0];s.children.length===1&&c instanceof Rr?c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var f=r.map(I=>I.toText()).join("");r=[new Rr(f)]}var p=new Rt("mi",r);p.setAttribute("mathvariant","normal");var h=new Rt("mo",[Vn("","text")]);return e.parentIsSupSub?new Rt("mrow",[p,h]):rg([p,h])};Dt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:zr(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Rg,mathmlBuilder:v5});Qe("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Fs({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Ii(Dr(e.body,t,!1)):kt(["mord"],Dr(e.body,t,!0),t)},mathmlBuilder(e,t){return ls(e.body,t,!0)}});Dt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=sr(e.body,t.havingCrampedStyle()),n=xa("overline-line",t),i=t.fontMetrics().defaultRuleThickness,s=ir({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return kt(["mord","overline"],[s],t)},mathmlBuilder(e,t){var r=new Rt("mo",[new Rr("‾")]);r.setAttribute("stretchy","true");var n=new Rt("mover",[or(e.body,t),r]);return n.setAttribute("accent","true"),n}});Dt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:zr(n)}},htmlBuilder:(e,t)=>{var r=Dr(e.body,t.withPhantom(),!1);return Ii(r)},mathmlBuilder:(e,t)=>{var r=Mn(e.body,t);return new Rt("mphantom",r)}});Qe("\\hphantom","\\smash{\\phantom{#1}}");Dt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=kt(["inner"],[sr(e.body,t.withPhantom())]),n=kt(["fix"],[]);return kt(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=Mn(zr(e.body),t),n=new Rt("mphantom",r),i=new Rt("mpadded",[n]);return i.setAttribute("width","0px"),i}});Dt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=Qt(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=sr(e.body,t),n=vr(e.dy,t);return ir({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new Rt("mpadded",[or(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});Dt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Dt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],s=Qt(t[0],"size"),c=Qt(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&Qt(i,"size").value,width:s.value,height:c.value}},htmlBuilder(e,t){var r=kt(["mord","rule"],[],t),n=vr(e.width,t),i=vr(e.height,t),s=e.shift?vr(e.shift,t):0;return r.style.borderRightWidth=Nt(n),r.style.borderTopWidth=Nt(i),r.style.bottom=Nt(s),r.width=n,r.height=i+s,r.depth=-s,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=vr(e.width,t),n=vr(e.height,t),i=e.shift?vr(e.shift,t):0,s=t.color&&t.getColor()||"black",c=new Rt("mspace");c.setAttribute("mathbackground",s),c.setAttribute("width",Nt(r)),c.setAttribute("height",Nt(n));var f=new Rt("mpadded",[c]);return i>=0?f.setAttribute("height",Nt(i)):(f.setAttribute("height",Nt(i)),f.setAttribute("depth",Nt(-i))),f.setAttribute("voffset",Nt(i)),f}});function Ng(e,t,r){for(var n=Dr(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,s=0;s<n.length;s++){var c=n[s].classes.indexOf("sizing");c<0?Array.prototype.push.apply(n[s].classes,t.sizingClasses(r)):n[s].classes[c+1]==="reset-size"+t.size&&(n[s].classes[c+1]="reset-size"+r.size),n[s].height*=i,n[s].depth*=i}return Ii(n)}var kp=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],y5=(e,t)=>{var r=t.havingSize(e.size);return Ng(e.body,r,t)};Dt({type:"sizing",names:kp,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:i}=e,s=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:kp.indexOf(n)+1,body:s}},htmlBuilder:y5,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=Mn(e.body,r),i=new Rt("mstyle",n);return i.setAttribute("mathsize",Nt(r.sizeMultiplier)),i}});Dt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,i=!1,s=!1,c=r[0]&&Qt(r[0],"ordgroup");if(c)for(var f,p=0;p<c.body.length;++p){var h=c.body[p];if(f=Zu(h).text,f==="t")i=!0;else if(f==="b")s=!0;else{i=!1,s=!1;break}}else i=!0,s=!0;var I=t[0];return{type:"smash",mode:n.mode,body:I,smashHeight:i,smashDepth:s}},htmlBuilder:(e,t)=>{var r=kt([],[sr(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return kt(["mord","smash"],[r],t);if(r.children)for(var n=0;n<r.children.length;n++)e.smashHeight&&(r.children[n].height=0),e.smashDepth&&(r.children[n].depth=0);var i=ir({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return kt(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new Rt("mpadded",[or(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});Dt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],s=t[0];return{type:"sqrt",mode:n.mode,body:s,index:i}},htmlBuilder(e,t){var r=sr(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=wa(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,s=i;t.style.id<Gt.TEXT.id&&(s=t.fontMetrics().xHeight);var c=i+s/4,f=r.height+r.depth+c+i,{span:p,ruleWidth:h,advanceWidth:I}=a5(f,t),F=p.height-h;F>r.height+r.depth+c&&(c=(c+F-r.height-r.depth)/2);var H=p.height-r.height-c-h;r.style.paddingLeft=Nt(I);var pe=ir({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+H)},{type:"elem",elem:p},{type:"kern",size:h}]});if(e.index){var xe=t.havingStyle(Gt.SCRIPTSCRIPT),ne=sr(e.index,xe,t),W=.6*(pe.height-pe.depth),X=ir({positionType:"shift",positionData:-W,children:[{type:"elem",elem:ne}]}),ge=kt(["root"],[X]);return kt(["mord","sqrt"],[ge,pe],t)}else return kt(["mord","sqrt"],[pe],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new Rt("mroot",[or(r,t),or(n,t)]):new Rt("msqrt",[or(r,t)])}});var zf={display:Gt.DISPLAY,text:Gt.TEXT,script:Gt.SCRIPT,scriptscript:Gt.SCRIPTSCRIPT};function b5(e){return e in zf}Dt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:i}=e,s=i.parseExpression(!0,r),c=n.slice(1,n.length-5);if(!b5(c))throw new Error("Unknown style: "+c);return{type:"styling",mode:i.mode,style:c,body:s}},htmlBuilder(e,t){var r=zf[e.style],n=t.havingStyle(r);return e.resetFont&&(n=n.withFont("")),Ng(e.body,n,t)},mathmlBuilder(e,t){var r=zf[e.style],n=t.havingStyle(r);e.resetFont&&(n=n.withFont(""));var i=Mn(e.body,n),s=new Rt("mstyle",i),c={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},f=c[e.style];return s.setAttribute("scriptlevel",f[0]),s.setAttribute("displaystyle",f[1]),s}});var x5=function(t,r){var n=t.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===Gt.DISPLAY.size||n.alwaysHandleSupSub);return i?Da:null}else if(n.type==="operatorname"){var s=n.alwaysHandleSupSub&&(r.style.size===Gt.DISPLAY.size||n.limits);return s?Rg:null}else{if(n.type==="accent")return Ri(n.base)?$d:null;if(n.type==="horizBrace"){var c=!t.sub;return c===n.isOver?Cg:null}else return null}else return null};Fs({type:"supsub",htmlBuilder(e,t){var r=x5(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:s}=e,c=sr(n,t),f,p,h=t.fontMetrics(),I=0,F=0,H=n&&Ri(n);if(i){var pe=t.havingStyle(t.style.sup());f=sr(i,pe,t),H||(I=c.height-pe.fontMetrics().supDrop*pe.sizeMultiplier/t.sizeMultiplier)}if(s){var xe=t.havingStyle(t.style.sub());p=sr(s,xe,t),H||(F=c.depth+xe.fontMetrics().subDrop*xe.sizeMultiplier/t.sizeMultiplier)}var ne;t.style===Gt.DISPLAY?ne=h.sup1:t.style.cramped?ne=h.sup3:ne=h.sup2;var W=t.sizeMultiplier,X=Nt(.5/h.ptPerEm/W),ge=null;if(p){var se=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(c instanceof zn||se){var me;ge=Nt(-((me=c.italic)!=null?me:0))}}var J;if(f&&p){I=Math.max(I,ne,f.depth+.25*h.xHeight),F=Math.max(F,h.sub2);var be=h.defaultRuleThickness,fe=4*be;if(I-f.depth-(p.height-F)<fe){F=fe-(I-f.depth)+p.height;var Ae=.8*h.xHeight-(I-f.depth);Ae>0&&(I+=Ae,F-=Ae)}var O=[{type:"elem",elem:p,shift:F,marginRight:X,marginLeft:ge},{type:"elem",elem:f,shift:-I,marginRight:X}];J=ir({positionType:"individualShift",children:O})}else if(p){F=Math.max(F,h.sub1,p.height-.8*h.xHeight);var Ee=[{type:"elem",elem:p,marginLeft:ge,marginRight:X}];J=ir({positionType:"shift",positionData:F,children:Ee})}else if(f)I=Math.max(I,ne,f.depth+.25*h.xHeight),J=ir({positionType:"shift",positionData:-I,children:[{type:"elem",elem:f,marginRight:X}]});else throw new Error("supsub must have either sup or sub.");var le=Sf(c,"right")||"mord";return kt([le],[c,kt(["msupsub"],[J])],t)},mathmlBuilder(e,t){var r=!1,n,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[or(e.base,t)];e.sub&&s.push(or(e.sub,t)),e.sup&&s.push(or(e.sup,t));var c;if(r)c=n?"mover":"munder";else if(e.sub)if(e.sup){var h=e.base;h&&h.type==="op"&&h.limits&&t.style===Gt.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(t.style===Gt.DISPLAY||h.limits)?c="munderover":c="msubsup"}else{var p=e.base;p&&p.type==="op"&&p.limits&&(t.style===Gt.DISPLAY||p.alwaysHandleSupSub)||p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(p.limits||t.style===Gt.DISPLAY)?c="munder":c="msub"}else{var f=e.base;f&&f.type==="op"&&f.limits&&(t.style===Gt.DISPLAY||f.alwaysHandleSupSub)||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(f.limits||t.style===Gt.DISPLAY)?c="mover":c="msup"}return new Rt(c,s)}});Fs({type:"atom",htmlBuilder(e,t){return ld(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new Rt("mo",[Vn(e.text,e.mode)]);if(e.family==="bin"){var n=cd(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var Ig={mi:"italic",mn:"normal",mtext:"normal"};Fs({type:"mathord",htmlBuilder(e,t){return Ku(e,t,"mathord")},mathmlBuilder(e,t){var r=new Rt("mi",[Vn(e.text,e.mode,t)]),n=cd(e,t)||"italic";return n!==Ig[r.type]&&r.setAttribute("mathvariant",n),r}});Fs({type:"textord",htmlBuilder(e,t){return Ku(e,t,"textord")},mathmlBuilder(e,t){var r=Vn(e.text,e.mode,t),n=cd(e,t)||"normal",i;return e.mode==="text"?i=new Rt("mtext",[r]):/[0-9]/.test(e.text)?i=new Rt("mn",[r]):e.text==="\\prime"?i=new Rt("mo",[r]):i=new Rt("mi",[r]),n!==Ig[i.type]&&i.setAttribute("mathvariant",n),i}});var Qc={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Zc={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Fs({type:"spacing",htmlBuilder(e,t){if(Zc.hasOwnProperty(e.text)){var r=Zc[e.text].className||"";if(e.mode==="text"){var n=Ku(e,t,"textord");return n.classes.push(r),n}else return kt(["mspace",r],[ld(e.text,e.mode,t)],t)}else{if(Qc.hasOwnProperty(e.text))return kt(["mspace",Qc[e.text]],[],t);throw new zt('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(Zc.hasOwnProperty(e.text))r=new Rt("mtext",[new Rr(" ")]);else{if(Qc.hasOwnProperty(e.text))return new Rt("mspace");throw new zt('Unknown type of space "'+e.text+'"')}return r}});var Sp=()=>{var e=new Rt("mtd",[]);return e.setAttribute("width","50%"),e};Fs({type:"tag",mathmlBuilder(e,t){var r=new Rt("mtable",[new Rt("mtr",[Sp(),new Rt("mtd",[ls(e.body,t)]),Sp(),new Rt("mtd",[ls(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Ap={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ep={"\\textbf":"textbf","\\textmd":"textmd"},w5={"\\textit":"textit","\\textup":"textup"},Cp=(e,t)=>{var r=e.font;if(r){if(Ap[r])return t.withTextFontFamily(Ap[r]);if(Ep[r])return t.withTextFontWeight(Ep[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(w5[r])};Dt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"text",mode:r.mode,body:zr(i),font:n}},htmlBuilder(e,t){var r=Cp(e,t),n=Dr(e.body,r,!0);return kt(["mord","text"],n,r)},mathmlBuilder(e,t){var r=Cp(e,t);return ls(e.body,r)}});Dt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=sr(e.body,t),n=xa("underline-line",t),i=t.fontMetrics().defaultRuleThickness,s=ir({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return kt(["mord","underline"],[s],t)},mathmlBuilder(e,t){var r=new Rt("mo",[new Rr("‾")]);r.setAttribute("stretchy","true");var n=new Rt("munder",[or(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});Dt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=sr(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return ir({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new Rt("mpadded",[or(e.body,t)],["vcenter"]);return new Rt("mrow",[r])}});Dt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new zt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=Tp(e),n=[],i=t.havingStyle(t.style.text()),s=0;s<r.length;s++){var c=r[s];c==="~"&&(c="\\textasciitilde"),n.push(sn(c,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return kt(["mord","text"].concat(i.sizingClasses(t)),Q1(n),i)},mathmlBuilder(e,t){var r=new Rr(Tp(e)),n=new Rt("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Tp=e=>e.body.replace(/ /g,e.star?"␣":" "),Wi=eg,qg=`[ \r
|
|
377
|
-
]`,k5="\\\\[a-zA-Z@]+",S5="\\\\[^\uD800-\uDFFF]",A5="("+k5+")"+qg+"*",E5=`\\\\(
|
|
378
|
-
|[ \r ]+
|
|
379
|
-
?)[ \r ]*`,Rf="[̀-ͯ]",C5=new RegExp(Rf+"+$"),T5="("+qg+"+)|"+(E5+"|")+"([!-\\[\\]-‧-豈-]"+(Rf+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Rf+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+A5)+("|"+S5+")");class zp{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(T5,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Cn("EOF",new hn(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new zt("Unexpected character: '"+t[r]+"'",new Cn(t[r],new hn(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var s=t.indexOf(`
|
|
380
|
-
`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new Cn(i,new hn(this,r,this.tokenRegex.lastIndex))}}class z5{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new zt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(t)&&(s[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var R5=wg;Qe("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});Qe("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});Qe("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});Qe("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});Qe("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});Qe("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");Qe("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Rp={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Qe("\\char",function(e){var t=e.popToken(),r,n=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new zt("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=Rp[t.text],n==null||n>=r)throw new zt("Invalid base-"+r+" digit "+t.text);for(var i;(i=Rp[e.future().text])!=null&&i<r;)n*=r,n+=i,e.popToken()}return"\\@char{"+n+"}"});var pd=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new zt("\\newcommand's first argument must be a macro name");var s=i[0].text,c=e.isDefined(s);if(c&&!t)throw new zt("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!c&&!r)throw new zt("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var f=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var p="",h=e.expandNextToken();h.text!=="]"&&h.text!=="EOF";)p+=h.text,h=e.expandNextToken();if(!p.match(/^\s*[0-9]+\s*$/))throw new zt("Invalid number of arguments: "+p);f=parseInt(p),i=e.consumeArg().tokens}return c&&n||e.macros.set(s,{tokens:i,numArgs:f}),""};Qe("\\newcommand",e=>pd(e,!1,!0,!1));Qe("\\renewcommand",e=>pd(e,!0,!1,!1));Qe("\\providecommand",e=>pd(e,!0,!0,!0));Qe("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});Qe("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});Qe("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Wi[r],hr.math[r],hr.text[r]),""});Qe("\\bgroup","{");Qe("\\egroup","}");Qe("~","\\nobreakspace");Qe("\\lq","`");Qe("\\rq","'");Qe("\\aa","\\r a");Qe("\\AA","\\r A");Qe("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");Qe("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");Qe("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");Qe("ℬ","\\mathscr{B}");Qe("ℰ","\\mathscr{E}");Qe("ℱ","\\mathscr{F}");Qe("ℋ","\\mathscr{H}");Qe("ℐ","\\mathscr{I}");Qe("ℒ","\\mathscr{L}");Qe("ℳ","\\mathscr{M}");Qe("ℛ","\\mathscr{R}");Qe("ℭ","\\mathfrak{C}");Qe("ℌ","\\mathfrak{H}");Qe("ℨ","\\mathfrak{Z}");Qe("\\Bbbk","\\Bbb{k}");Qe("\\llap","\\mathllap{\\textrm{#1}}");Qe("\\rlap","\\mathrlap{\\textrm{#1}}");Qe("\\clap","\\mathclap{\\textrm{#1}}");Qe("\\mathstrut","\\vphantom{(}");Qe("\\underbar","\\underline{\\text{#1}}");Qe("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');Qe("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");Qe("\\ne","\\neq");Qe("≠","\\neq");Qe("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");Qe("∉","\\notin");Qe("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");Qe("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");Qe("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");Qe("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");Qe("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");Qe("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");Qe("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");Qe("⟂","\\perp");Qe("‼","\\mathclose{!\\mkern-0.8mu!}");Qe("∌","\\notni");Qe("⌜","\\ulcorner");Qe("⌝","\\urcorner");Qe("⌞","\\llcorner");Qe("⌟","\\lrcorner");Qe("©","\\copyright");Qe("®","\\textregistered");Qe("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');Qe("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');Qe("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');Qe("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');Qe("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");Qe("⋮","\\vdots");Qe("\\varGamma","\\mathit{\\Gamma}");Qe("\\varDelta","\\mathit{\\Delta}");Qe("\\varTheta","\\mathit{\\Theta}");Qe("\\varLambda","\\mathit{\\Lambda}");Qe("\\varXi","\\mathit{\\Xi}");Qe("\\varPi","\\mathit{\\Pi}");Qe("\\varSigma","\\mathit{\\Sigma}");Qe("\\varUpsilon","\\mathit{\\Upsilon}");Qe("\\varPhi","\\mathit{\\Phi}");Qe("\\varPsi","\\mathit{\\Psi}");Qe("\\varOmega","\\mathit{\\Omega}");Qe("\\substack","\\begin{subarray}{c}#1\\end{subarray}");Qe("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");Qe("\\boxed","\\fbox{$\\displaystyle{#1}$}");Qe("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");Qe("\\implies","\\DOTSB\\;\\Longrightarrow\\;");Qe("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");Qe("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");Qe("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Np={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},N5=new Set(["bin","rel"]);Qe("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Np?t=Np[r]:(r.slice(0,4)==="\\not"||r in hr.math&&N5.has(hr.math[r].group))&&(t="\\dotsb"),t});var _d={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Qe("\\dotso",function(e){var t=e.future().text;return t in _d?"\\ldots\\,":"\\ldots"});Qe("\\dotsc",function(e){var t=e.future().text;return t in _d&&t!==","?"\\ldots\\,":"\\ldots"});Qe("\\cdots",function(e){var t=e.future().text;return t in _d?"\\@cdots\\,":"\\@cdots"});Qe("\\dotsb","\\cdots");Qe("\\dotsm","\\cdots");Qe("\\dotsi","\\!\\cdots");Qe("\\dotsx","\\ldots\\,");Qe("\\DOTSI","\\relax");Qe("\\DOTSB","\\relax");Qe("\\DOTSX","\\relax");Qe("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Qe("\\,","\\tmspace+{3mu}{.1667em}");Qe("\\thinspace","\\,");Qe("\\>","\\mskip{4mu}");Qe("\\:","\\tmspace+{4mu}{.2222em}");Qe("\\medspace","\\:");Qe("\\;","\\tmspace+{5mu}{.2777em}");Qe("\\thickspace","\\;");Qe("\\!","\\tmspace-{3mu}{.1667em}");Qe("\\negthinspace","\\!");Qe("\\negmedspace","\\tmspace-{4mu}{.2222em}");Qe("\\negthickspace","\\tmspace-{5mu}{.277em}");Qe("\\enspace","\\kern.5em ");Qe("\\enskip","\\hskip.5em\\relax");Qe("\\quad","\\hskip1em\\relax");Qe("\\qquad","\\hskip2em\\relax");Qe("\\tag","\\@ifstar\\tag@literal\\tag@paren");Qe("\\tag@paren","\\tag@literal{({#1})}");Qe("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new zt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});Qe("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Qe("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Qe("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Qe("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");Qe("\\newline","\\\\\\relax");Qe("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Mg=Nt(ui["Main-Regular"][84][1]-.7*ui["Main-Regular"][65][1]);Qe("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Mg+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Qe("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Mg+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");Qe("\\hspace","\\@ifstar\\@hspacer\\@hspace");Qe("\\@hspace","\\hskip #1\\relax");Qe("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");Qe("\\ordinarycolon",":");Qe("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");Qe("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');Qe("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');Qe("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');Qe("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');Qe("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');Qe("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');Qe("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');Qe("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');Qe("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');Qe("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');Qe("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');Qe("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');Qe("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');Qe("∷","\\dblcolon");Qe("∹","\\eqcolon");Qe("≔","\\coloneqq");Qe("≕","\\eqqcolon");Qe("⩴","\\Coloneqq");Qe("\\ratio","\\vcentcolon");Qe("\\coloncolon","\\dblcolon");Qe("\\colonequals","\\coloneqq");Qe("\\coloncolonequals","\\Coloneqq");Qe("\\equalscolon","\\eqqcolon");Qe("\\equalscoloncolon","\\Eqqcolon");Qe("\\colonminus","\\coloneq");Qe("\\coloncolonminus","\\Coloneq");Qe("\\minuscolon","\\eqcolon");Qe("\\minuscoloncolon","\\Eqcolon");Qe("\\coloncolonapprox","\\Colonapprox");Qe("\\coloncolonsim","\\Colonsim");Qe("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Qe("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");Qe("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Qe("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");Qe("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");Qe("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");Qe("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");Qe("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");Qe("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");Qe("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");Qe("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");Qe("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");Qe("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");Qe("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");Qe("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");Qe("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");Qe("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");Qe("\\nleqq","\\html@mathml{\\@nleqq}{≰}");Qe("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");Qe("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");Qe("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");Qe("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");Qe("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");Qe("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");Qe("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");Qe("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");Qe("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");Qe("\\imath","\\html@mathml{\\@imath}{ı}");Qe("\\jmath","\\html@mathml{\\@jmath}{ȷ}");Qe("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");Qe("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");Qe("⟦","\\llbracket");Qe("⟧","\\rrbracket");Qe("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");Qe("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");Qe("⦃","\\lBrace");Qe("⦄","\\rBrace");Qe("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");Qe("⦵","\\minuso");Qe("\\darr","\\downarrow");Qe("\\dArr","\\Downarrow");Qe("\\Darr","\\Downarrow");Qe("\\lang","\\langle");Qe("\\rang","\\rangle");Qe("\\uarr","\\uparrow");Qe("\\uArr","\\Uparrow");Qe("\\Uarr","\\Uparrow");Qe("\\N","\\mathbb{N}");Qe("\\R","\\mathbb{R}");Qe("\\Z","\\mathbb{Z}");Qe("\\alef","\\aleph");Qe("\\alefsym","\\aleph");Qe("\\Alpha","\\mathrm{A}");Qe("\\Beta","\\mathrm{B}");Qe("\\bull","\\bullet");Qe("\\Chi","\\mathrm{X}");Qe("\\clubs","\\clubsuit");Qe("\\cnums","\\mathbb{C}");Qe("\\Complex","\\mathbb{C}");Qe("\\Dagger","\\ddagger");Qe("\\diamonds","\\diamondsuit");Qe("\\empty","\\emptyset");Qe("\\Epsilon","\\mathrm{E}");Qe("\\Eta","\\mathrm{H}");Qe("\\exist","\\exists");Qe("\\harr","\\leftrightarrow");Qe("\\hArr","\\Leftrightarrow");Qe("\\Harr","\\Leftrightarrow");Qe("\\hearts","\\heartsuit");Qe("\\image","\\Im");Qe("\\infin","\\infty");Qe("\\Iota","\\mathrm{I}");Qe("\\isin","\\in");Qe("\\Kappa","\\mathrm{K}");Qe("\\larr","\\leftarrow");Qe("\\lArr","\\Leftarrow");Qe("\\Larr","\\Leftarrow");Qe("\\lrarr","\\leftrightarrow");Qe("\\lrArr","\\Leftrightarrow");Qe("\\Lrarr","\\Leftrightarrow");Qe("\\Mu","\\mathrm{M}");Qe("\\natnums","\\mathbb{N}");Qe("\\Nu","\\mathrm{N}");Qe("\\Omicron","\\mathrm{O}");Qe("\\plusmn","\\pm");Qe("\\rarr","\\rightarrow");Qe("\\rArr","\\Rightarrow");Qe("\\Rarr","\\Rightarrow");Qe("\\real","\\Re");Qe("\\reals","\\mathbb{R}");Qe("\\Reals","\\mathbb{R}");Qe("\\Rho","\\mathrm{P}");Qe("\\sdot","\\cdot");Qe("\\sect","\\S");Qe("\\spades","\\spadesuit");Qe("\\sub","\\subset");Qe("\\sube","\\subseteq");Qe("\\supe","\\supseteq");Qe("\\Tau","\\mathrm{T}");Qe("\\thetasym","\\vartheta");Qe("\\weierp","\\wp");Qe("\\Zeta","\\mathrm{Z}");Qe("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");Qe("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");Qe("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");Qe("\\bra","\\mathinner{\\langle{#1}|}");Qe("\\ket","\\mathinner{|{#1}\\rangle}");Qe("\\braket","\\mathinner{\\langle{#1}\\rangle}");Qe("\\Bra","\\left\\langle#1\\right|");Qe("\\Ket","\\left|#1\\right\\rangle");var Dg=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,s=t.consumeArg().tokens,c=t.macros.get("|"),f=t.macros.get("\\|");t.macros.beginGroup();var p=F=>H=>{e&&(H.macros.set("|",c),i.length&&H.macros.set("\\|",f));var pe=F;if(!F&&i.length){var xe=H.future();xe.text==="|"&&(H.popToken(),pe=!0)}return{tokens:pe?i:n,numArgs:0}};t.macros.set("|",p(!1)),i.length&&t.macros.set("\\|",p(!0));var h=t.consumeArg().tokens,I=t.expandTokens([...s,...h,...r]);return t.macros.endGroup(),{tokens:I.reverse(),numArgs:0}};Qe("\\bra@ket",Dg(!1));Qe("\\bra@set",Dg(!0));Qe("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");Qe("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");Qe("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");Qe("\\angln","{\\angl n}");Qe("\\blue","\\textcolor{##6495ed}{#1}");Qe("\\orange","\\textcolor{##ffa500}{#1}");Qe("\\pink","\\textcolor{##ff00af}{#1}");Qe("\\red","\\textcolor{##df0030}{#1}");Qe("\\green","\\textcolor{##28ae7b}{#1}");Qe("\\gray","\\textcolor{gray}{#1}");Qe("\\purple","\\textcolor{##9d38bd}{#1}");Qe("\\blueA","\\textcolor{##ccfaff}{#1}");Qe("\\blueB","\\textcolor{##80f6ff}{#1}");Qe("\\blueC","\\textcolor{##63d9ea}{#1}");Qe("\\blueD","\\textcolor{##11accd}{#1}");Qe("\\blueE","\\textcolor{##0c7f99}{#1}");Qe("\\tealA","\\textcolor{##94fff5}{#1}");Qe("\\tealB","\\textcolor{##26edd5}{#1}");Qe("\\tealC","\\textcolor{##01d1c1}{#1}");Qe("\\tealD","\\textcolor{##01a995}{#1}");Qe("\\tealE","\\textcolor{##208170}{#1}");Qe("\\greenA","\\textcolor{##b6ffb0}{#1}");Qe("\\greenB","\\textcolor{##8af281}{#1}");Qe("\\greenC","\\textcolor{##74cf70}{#1}");Qe("\\greenD","\\textcolor{##1fab54}{#1}");Qe("\\greenE","\\textcolor{##0d923f}{#1}");Qe("\\goldA","\\textcolor{##ffd0a9}{#1}");Qe("\\goldB","\\textcolor{##ffbb71}{#1}");Qe("\\goldC","\\textcolor{##ff9c39}{#1}");Qe("\\goldD","\\textcolor{##e07d10}{#1}");Qe("\\goldE","\\textcolor{##a75a05}{#1}");Qe("\\redA","\\textcolor{##fca9a9}{#1}");Qe("\\redB","\\textcolor{##ff8482}{#1}");Qe("\\redC","\\textcolor{##f9685d}{#1}");Qe("\\redD","\\textcolor{##e84d39}{#1}");Qe("\\redE","\\textcolor{##bc2612}{#1}");Qe("\\maroonA","\\textcolor{##ffbde0}{#1}");Qe("\\maroonB","\\textcolor{##ff92c6}{#1}");Qe("\\maroonC","\\textcolor{##ed5fa6}{#1}");Qe("\\maroonD","\\textcolor{##ca337c}{#1}");Qe("\\maroonE","\\textcolor{##9e034e}{#1}");Qe("\\purpleA","\\textcolor{##ddd7ff}{#1}");Qe("\\purpleB","\\textcolor{##c6b9fc}{#1}");Qe("\\purpleC","\\textcolor{##aa87ff}{#1}");Qe("\\purpleD","\\textcolor{##7854ab}{#1}");Qe("\\purpleE","\\textcolor{##543b78}{#1}");Qe("\\mintA","\\textcolor{##f5f9e8}{#1}");Qe("\\mintB","\\textcolor{##edf2df}{#1}");Qe("\\mintC","\\textcolor{##e0e5cc}{#1}");Qe("\\grayA","\\textcolor{##f6f7f7}{#1}");Qe("\\grayB","\\textcolor{##f0f1f2}{#1}");Qe("\\grayC","\\textcolor{##e3e5e6}{#1}");Qe("\\grayD","\\textcolor{##d6d8da}{#1}");Qe("\\grayE","\\textcolor{##babec2}{#1}");Qe("\\grayF","\\textcolor{##888d93}{#1}");Qe("\\grayG","\\textcolor{##626569}{#1}");Qe("\\grayH","\\textcolor{##3b3e40}{#1}");Qe("\\grayI","\\textcolor{##21242c}{#1}");Qe("\\kaBlue","\\textcolor{##314453}{#1}");Qe("\\kaGreen","\\textcolor{##71B307}{#1}");var Lg={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class I5{constructor(t,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new z5(R5,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new zp(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new Cn("EOF",n.loc)),this.pushTokens(i),new Cn("",hn.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var i=this.future(),s,c=0,f=0;do{if(s=this.popToken(),r.push(s),s.text==="{")++c;else if(s.text==="}"){if(--c,c===-1)throw new zt("Extra }",s)}else if(s.text==="EOF")throw new zt("Unexpected end of input in a macro argument, expected '"+(t&&n?t[f]:"}")+"'",s);if(t&&n)if((c===0||c===1&&t[f]==="{")&&s.text===t[f]){if(++f,f===t.length){r.splice(-f,f);break}}else f=0}while(c!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:s}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new zt("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;i<n.length;i++){var s=this.popToken();if(n[i]!==s.text)throw new zt("Use of the macro doesn't match its definition",s)}}for(var c=[],f=0;f<t;f++)c.push(this.consumeArg(r&&r[f+1]).tokens);return c}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new zt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||t&&i.unexpandable){if(t&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new zt("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var s=i.tokens,c=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){s=s.slice();for(var f=s.length-1;f>=0;--f){var p=s[f];if(p.text==="#"){if(f===0)throw new zt("Incomplete placeholder at end of macro body",p);if(p=s[--f],p.text==="#")s.splice(f+1,1);else if(/^[1-9]$/.test(p.text))s.splice(f,2,...c[+p.text-1]);else throw new zt("Not a valid argument number",p)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Cn(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var s=0;if(i.includes("#"))for(var c=i.replace(/##/g,"");c.includes("#"+(s+1));)++s;for(var f=new zp(i,this.settings),p=[],h=f.lex();h.text!=="EOF";)p.push(h),h=f.lex();p.reverse();var I={tokens:p,numArgs:s};return I}return i}isDefined(t){return this.macros.has(t)||Wi.hasOwnProperty(t)||hr.math.hasOwnProperty(t)||hr.text.hasOwnProperty(t)||Lg.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Wi.hasOwnProperty(t)&&!Wi[t].primitive}}var Ip=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,xo=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Jc={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},qp={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class ic{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new I5(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new zt("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Cn("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(ic.endOfExpression.has(i.text)||r&&i.text===r||t&&Wi[i.text]&&Wi[i.text].infix)break;var s=this.parseAtom(r);if(s){if(s.type==="internal")continue}else break;n.push(s)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,i=0;i<t.length;i++){var s=t[i];if(s.type==="infix"){if(r!==-1)throw new zt("only one infix operator per group",s.token);r=i,n=s.replaceWith}}if(r!==-1&&n){var c,f,p=t.slice(0,r),h=t.slice(r+1);p.length===1&&p[0].type==="ordgroup"?c=p[0]:c={type:"ordgroup",mode:this.mode,body:p},h.length===1&&h[0].type==="ordgroup"?f=h[0]:f={type:"ordgroup",mode:this.mode,body:h};var I;return n==="\\\\abovefrac"?I=this.callFunction(n,[c,t[r],f],[]):I=this.callFunction(n,[c,f],[]),[I]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var i;do{var s;i=this.parseGroup(t)}while(((s=i)==null?void 0:s.type)==="internal");if(!i)throw new zt("Expected group after '"+n+"'",r);return i}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var i={type:"text",mode:this.mode,body:r},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return s}parseAtom(t){var r=this.parseGroup("atom",t);if(r?.type==="internal"||this.mode==="text")return r;for(var n,i;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(r&&r.type==="op"){var c=s.text==="\\limits";r.limits=c,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=s.text==="\\limits");else throw new zt("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(n)throw new zt("Double superscript",s);n=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(i)throw new zt("Double subscript",s);i=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(n)throw new zt("Double superscript",s);var f={type:"textord",mode:this.mode,text:"\\prime"},p=[f];for(this.consume();this.fetch().text==="'";)p.push(f),this.consume();this.fetch().text==="^"&&p.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:p}}else if(xo[s.text]){var h=Ip.test(s.text),I=[];for(I.push(new Cn(xo[s.text])),this.consume();;){var F=this.fetch().text;if(!xo[F]||Ip.test(F)!==h)break;I.unshift(new Cn(xo[F])),this.consume()}var H=this.subparse(I);h?i={type:"ordgroup",mode:"math",body:H}:n={type:"ordgroup",mode:"math",body:H}}else break}return n||i?{type:"supsub",mode:this.mode,base:r,sup:n,sub:i}:r}parseFunction(t,r){var n=this.fetch(),i=n.text,s=Wi[i];if(!s)return null;if(this.consume(),r&&r!=="atom"&&!s.allowedInArgument)throw new zt("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!s.allowedInText)throw new zt("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&s.allowedInMath===!1)throw new zt("Can't use function '"+i+"' in math mode",n);var{args:c,optArgs:f}=this.parseArguments(i,s);return this.callFunction(i,c,f,n,t)}callFunction(t,r,n,i,s){var c={funcName:t,parser:this,token:i,breakOnTokenText:s},f=Wi[t];if(f&&f.handler)return f.handler(c,r,n);throw new zt("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],s=[],c=0;c<n;c++){var f=r.argTypes&&r.argTypes[c],p=c<r.numOptionalArgs;("primitive"in r&&r.primitive&&f==null||r.type==="sqrt"&&c===1&&s[0]==null)&&(f="primitive");var h=this.parseGroupOfType("argument to '"+t+"'",f,p);if(p)s.push(h);else if(h!=null)i.push(h);else throw new zt("Null argument, please report this as a bug")}return{args:i,optArgs:s}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var i=this.parseArgumentGroup(n,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text",resetFont:!0}:null}case"raw":{var s=this.parseStringGroup("raw",n);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(n)throw new zt("A primitive argument cannot be optional");var c=this.parseGroup(t);if(c==null)throw new zt("Expected group as "+t,this.fetch());return c}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new zt("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var i="",s;(s=this.fetch()).text!=="EOF";)i+=s.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(t,r){for(var n=this.fetch(),i=n,s="",c;(c=this.fetch()).text!=="EOF"&&t.test(s+c.text);)i=c,s+=i.text,this.consume();if(s==="")throw new zt("Invalid "+r+": '"+n.text+"'",n);return n.range(i,s)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new zt("Invalid color: '"+r.text+"'",r);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!i)throw new zt("Invalid size: '"+r.text+"'",r);var s={number:+(i[1]+i[2]),unit:i[3]};if(!Y1(s))throw new zt("Invalid unit: '"+s.unit+"'",r);return{type:"size",mode:this.mode,value:s,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var c={type:"ordgroup",mode:this.mode,loc:n.loc,body:s};return r&&this.switchMode(i),c}parseGroup(t,r){var n=this.fetch(),i=n.text,s;if(i==="{"||i==="\\begingroup"){this.consume();var c=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var f=this.parseExpression(!1,c),p=this.fetch();this.expect(c),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:hn.range(n,p),body:f,semisimple:i==="\\begingroup"||void 0}}else if(s=this.parseFunction(r,t)||this.parseSymbol(),s==null&&i[0]==="\\"&&!Lg.hasOwnProperty(i)){if(this.settings.throwOnError)throw new zt("Undefined control sequence: "+i,n);s=this.formatUnsupportedCmd(i),this.consume()}return s}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var i=t[n];if(i.type==="textord"){var s=i.text,c=t[n+1];if(!(!c||c.type!=="textord")){if(s==="-"&&c.text==="-"){var f=t[n+2];n+1<r&&f&&f.type==="textord"&&f.text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:hn.range(i,f),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:hn.range(i,c),text:"--"}),r-=1)}(s==="'"||s==="`")&&c.text===s&&(t.splice(n,2,{type:"textord",mode:"text",loc:hn.range(i,c),text:s+s}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),i=n.charAt(0)==="*";if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new zt(`\\verb assertion failed --
|
|
381
|
-
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}qp.hasOwnProperty(r[0])&&!hr[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=qp[r[0]]+r.slice(1));var s=C5.exec(r);s&&(r=r.substring(0,s.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var c;if(hr[this.mode][r]){this.settings.strict&&this.mode==="math"&&mf.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var f=hr[this.mode][r].group,p=hn.range(t),h;X3(f)?h={type:"atom",mode:this.mode,family:f,loc:p,text:r}:h={type:f,mode:this.mode,loc:p,text:r},c=h}else if(r.charCodeAt(0)>=128)this.settings.strict&&(V1(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),c={type:"textord",mode:"text",loc:hn.range(t),text:r};else return null;if(this.consume(),s)for(var I=0;I<s[0].length;I++){var F=s[0][I];if(!Jc[F])throw new zt("Unknown accent ' "+F+"'",t);var H=Jc[F][this.mode]||Jc[F].text;if(!H)throw new zt("Accent "+F+" unsupported in "+this.mode+" mode",t);c={type:"accent",mode:this.mode,loc:hn.range(t),label:H,isStretchy:!1,isShifty:!0,base:c}}return c}}ic.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var md=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new ic(t,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new zt("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new Cn("\\df@tag")])}]}return i},Fg=function(t,r,n){r.textContent="";var i=gd(t,n).toNode();r.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Fg=function(){throw new zt("KaTeX doesn't work in quirks mode.")});var q5=function(t,r){var n=gd(t,r).toMarkup();return n},M5=function(t,r){var n=new nd(r);return md(t,n)},Bg=function(t,r,n){if(n.throwOnError||!(t instanceof zt))throw t;var i=kt(["katex-error"],[new zn(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+n.errorColor),i},gd=function(t,r){var n=new nd(r);try{var i=md(t,n);return j3(i,t,n)}catch(s){return Bg(s,t,n)}},D5=function(t,r){var n=new nd(r);try{var i=md(t,n);return U3(i,t,n)}catch(s){return Bg(s,t,n)}},L5="0.16.47",F5={Span:qa,Anchor:Wu,SymbolNode:zn,SvgNode:Ti,PathNode:ss,LineNode:_f},B5={version:L5,render:Fg,renderToString:q5,ParseError:zt,SETTINGS_SCHEMA:df,__parse:M5,__renderToDomTree:gd,__renderToHTMLTree:D5,__setFontMetrics:x3,__defineSymbol:he,__defineFunction:Dt,__defineMacro:Qe,__domTree:F5};function vd(e,t){return B5.renderToString(String(e??""),{displayMode:t,throwOnError:!1})}function P5({node:e}){return Fe.jsxs("div",{className:"text",children:[e.title&&Fe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Fe.jsx("p",{className:"chapter-subtitle",children:e.description}),Fe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:vd(Ca(e.value),!0)}})]})}function j5({chunk:e}){return Fe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:vd(e.value,!0)}})}const Mp={path:null,href:null},U5=e=>/^[a-z][a-z0-9+.-]*:/i.test(e);function H5(e,t){return ti([...Wr(e),...Wr(t)])}function Dp(e){const t=[];for(const r of e.match(/\[\d+\]|[^/\[\]]+/g)||[])t.push(/^\[\d+\]$/.test(r)?Number(r.slice(1,-1)):r);return t}function V5(e,t=":"){const r=e.trim();return r?r.startsWith("::")?{path:ti(Wr(r.slice(2))),href:null}:r.startsWith(":")?{path:H5(t,r),href:null}:r.startsWith("//")?{path:ti(Dp(r)),href:null}:U5(r)?{path:null,href:r}:r.startsWith("/")?{path:ti([...Wr(t),...Dp(r)]),href:null}:Mp:Mp}function Y5({target:e,documentPath:t,onNavigate:r,children:n}){const{path:i,href:s}=V5(e,t);return s?Fe.jsx("a",{className:"extlink",href:s,target:"_blank",rel:"noopener noreferrer",children:n}):i?Fe.jsx("a",{className:"descend",href:i,onClick:c=>{c.preventDefault(),r(i)},children:n}):Fe.jsx(Fe.Fragment,{children:n})}function Pg(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Oc(e){return Pg(e).replace(/~~(.+?)~~/g,"<del>$1</del>").replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/__(.+?)__/g,"<strong>$1</strong>").replace(/\*(.+?)\*/g,"<em>$1</em>").replace(/_(.+?)_/g,"<em>$1</em>")}const W5=/\$\$([\s\S]+?)\$\$|`([^`]+?)`|\[((?:[^\[\]]|\[[^\]]*\])*?)\]\(([^)]+?)\)/g;function jg(e,t,r){const n=String(e??""),i=[];let s="",c=0;const f=()=>{s&&(i.push(Fe.jsx("span",{dangerouslySetInnerHTML:{__html:s}},c++)),s="")};let p=0;for(const h of n.matchAll(W5))s+=Oc(n.slice(p,h.index)),h[1]!==void 0?s+=vd(h[1],!1):h[2]!==void 0?s+=`<code>${Pg(h[2])}</code>`:(f(),i.push(Fe.jsx(Y5,{target:h[4],documentPath:r,onNavigate:t,children:Fe.jsx("span",{dangerouslySetInnerHTML:{__html:Oc(h[3])}})},c++))),p=h.index+h[0].length;return s+=Oc(n.slice(p)),f(),i}function G5({node:e,onNavigate:t}){return Fe.jsxs("div",{className:"marklower",children:[e.title&&Fe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Fe.jsx("p",{className:"chapter-subtitle",children:e.description}),Fe.jsx("p",{className:"chapter-prose",children:jg(Ca(e.value),t,e.documentPath)})]})}function K5({chunk:e,onNavigate:t}){return Fe.jsx("p",{className:"chapter-prose",children:jg(e.value,t,e.documentPath)})}/**
|
|
382
|
-
* @license Asciidoctor.js 3.0.4 | MIT | https://github.com/asciidoctor/asciidoctor.js
|
|
383
|
-
*/(function(e){var t;if(typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof window<"u"&&(e=window),e.console==null&&(e.console={}),typeof e.console=="object"?t=e.console:t={},"log"in t||(t.log=function(){}),"warn"in t||(t.warn=t.log),typeof e.Opal<"u")return t.warn("Opal already loaded. Loading twice can cause troubles, please fix your setup."),e.Opal;var r,n,i,s,c,f,p,h=e.Opal={};h.global=e,h.config={missing_require_severity:"error",unsupported_features_severity:"warning",experimental_features_severity:"warning",enable_stack_trace:!0};var I=Function.prototype.call,F=Function.prototype.bind,H=Object.hasOwn||I.bind(Object.prototype.hasOwnProperty),pe=Object.setPrototypeOf,xe=I.bind(Array.prototype.slice),ne=I.bind(Array.prototype.splice),W=4,X=W;function ge(){return X+=2,X}h.uid=ge,h.id=function(b){return b.$$is_number?b*2+1:(b.$$id==null&&J(b,"$$id",ge()),b.$$id)};var se=h.gvars={};h.exit=function(b){se.DEBUG&&t.log("Exited with status "+b)},h.exceptions=[],h.pop_exception=function(){var b=h.exceptions.pop();b?(se["!"]=b,se["@"]=b.$backtrace()):se["!"]=se["@"]=r};function me(b,R){if(b||(b=h.Exception||Error),p&&p.$raise)arguments.length>2?p.$raise(b.$new.apply(b,xe(arguments,1))):p.$raise(b,R);else throw b.$new?b.$new(R):new b(R)}function J(b,R,ve){typeof b=="string"?b[R]=ve:Object.defineProperty(b,R,{value:ve,enumerable:!1,configurable:!0,writable:!0})}h.prop=J,h.defineProperty=h.prop,h.slice=xe;var be=h.truthy=function(b){return b!==!1&&r!==b&&b!==void 0&&b!==null&&(!(b instanceof Boolean)||b.valueOf()===!0)};h.falsy=function(b){return!be(b)},h.type_error=function(b,R,ve,Le){b=b.$$class,Le&&ve?(Le=Le.$$class,me(h.TypeError,"can't convert "+b+" into "+R+" ("+b+"#"+ve+" gives "+Le+")")):me(h.TypeError,"no implicit conversion of "+b+" into "+R)},h.coerce_to=function(b,R,ve,Le){var Ze;return ve==="to_int"&&R===h.Integer&&b.$$is_number?b<0?Math.ceil(b):Math.floor(b):ve==="to_str"&&R===h.String&&b.$$is_string||h.is_a(b,R)?b:b["$respond_to?"].$$pristine&&b.$method_missing.$$pristine?(Ze=b[bt(ve)],(Ze==null||Ze.$$stub)&&h.type_error(b,R),Ze.apply(b,Le)):(b["$respond_to?"](ve)||h.type_error(b,R),Le==null&&(Le=[]),h.send(b,ve,Le))},h.respond_to=function(b,R,ve){if(b==null||!b.$$class)return!1;ve=!!ve;var Le=b[R];if(b["$respond_to?"].$$pristine){if(typeof Le=="function"&&!Le.$$stub)return!0;if(!b["$respond_to_missing?"].$$pristine)return h.send(b,b["$respond_to_missing?"],[R.substr(1),ve])}else return h.send(b,b["$respond_to?"],[R.substr(1),ve])},h.trace_class=!1,h.tracers_for_class=[];function fe(b){var R,ve,Le;for(R=0,ve=h.tracers_for_class.length;R<ve;R++)Le=h.tracers_for_class[R],Le.trace_object=b,Le.block.$call(Le)}function Ae(b,R){if(b.$$autoload[R].loaded){if(b.$$autoload[R].loaded&&!b.$$autoload[R].required&&b.$$autoload[R].exception)throw b.$$autoload[R].exception}else{b.$$autoload[R].loaded=!0;try{h.Kernel.$require(b.$$autoload[R].path)}catch(ve){throw b.$$autoload[R].exception=ve,ve}if(b.$$autoload[R].required=!0,b.$$const[R]!=null)return b.$$autoload[R].success=!0,b.$$const[R]}}function O(b,R){if(b){if(b.$$const[R]!=null)return b.$$const[R];if(b.$$autoload&&b.$$autoload[R])return Ae(b,R)}}function Ee(b,R){var ve,Le,Ze;if(b.length!==0)for(ve=0,Le=b.length;ve<Le;ve++){if(Ze=b[ve].$$const[R],Ze!=null)return Ze;if(b[ve].$$autoload&&b[ve].$$autoload[R])return Ae(b[ve],R)}}function le(b,R){var ve,Le,Ze;if(b!=null)for(Ze=rt(b),ve=0,Le=Ze.length;ve<Le;ve++){if(Ze[ve].$$const&&H(Ze[ve].$$const,R))return Ze[ve].$$const[R];if(Ze[ve].$$autoload&&Ze[ve].$$autoload[R])return Ae(Ze[ve],R)}}function w(b,R){if(b==null||b.$$is_module)return le(i,R)}function Se(b,R){return(b||i).$const_missing(R)}h.const_get_local=function(b,R,ve){var Le;if(b!=null)return b==="::"&&(b=i),!b.$$is_module&&!b.$$is_class&&me(h.TypeError,b.toString()+" is not a class/module"),Le=O(b,R),Le!=null||ve?Le:Se(b,R)},h.const_get_qualified=function(b,R,ve){var Le,Ze,ct,a=h.const_cache_version;if(R==null)return Le=O(i,b),Le??h.const_get_qualified(i,b,ve);if(b!=null)return b==="::"&&(b=i),!b.$$is_module&&!b.$$is_class&&me(h.TypeError,b.toString()+" is not a class/module"),(Ze=b.$$const_cache)==null&&(J(b,"$$const_cache",Object.create(null)),Ze=b.$$const_cache),ct=Ze[R],ct==null||ct[0]!==a?((Le=O(b,R))!=null||(Le=le(b,R))!=null,Ze[R]=[a,Le]):Le=ct[1],Le!=null||ve?Le:Se(b,R)},h.const_cache_version=1,h.const_get_relative=function(b,R,ve){var Le=b[0],Ze,ct=h.const_cache_version,a,ae;return(a=b.$$const_cache)==null&&(J(b,"$$const_cache",Object.create(null)),a=b.$$const_cache),ae=a[R],ae==null||ae[0]!==ct?((Ze=O(Le,R))!=null||(Ze=Ee(b,R))!=null||(Ze=le(Le,R))!=null||(Ze=w(Le,R))!=null,a[R]=[ct,Ze]):Ze=ae[1],Ze!=null||ve?Ze:Se(Le,R)};function N(b,R,ve){var Le=!0;return(b==null||b==="::")&&(b=i),ve.$$is_a_module&&((ve.$$name==null||ve.$$name===r)&&(ve.$$name=R),ve.$$base_module==null&&(ve.$$base_module=b)),b.$$const=b.$$const||Object.create(null),(R in b.$$const||"$$autoload"in b&&R in b.$$autoload)&&(Le=!1),b.$$const[R]=ve,b.$$=b.$$const,h.const_cache_version++,b===i&&(h[R]=ve),J(b,R,ve),Le&&b.$const_added&&!b.$const_added.$$pristine&&b.$const_added(R),ve}h.const_set=N,h.constants=function(b,R){R==null&&(R=!0);var ve,Le=[b],Ze,ct,a={},ae;for(R&&(Le=Le.concat(rt(b))),R&&b.$$is_module&&(Le=Le.concat([h.Object]).concat(rt(h.Object))),Ze=0,ct=Le.length;Ze<ct&&(ve=Le[Ze],!(b!==i&&ve==i));Ze++){for(ae in ve.$$const)a[ae]=!0;if(ve.$$autoload)for(ae in ve.$$autoload)a[ae]=!0}return Object.keys(a)},h.const_remove=function(b,R){if(h.const_cache_version++,b.$$const[R]!=null){var ve=b.$$const[R];return delete b.$$const[R],ve}if(b.$$autoload&&b.$$autoload[R])return delete b.$$autoload[R],r;me(h.NameError,"constant "+b+"::"+b.$name()+" not defined")},h.const_get_relative_factory=function(b){return function(R,ve){return h.$$(b,R,ve)}},h.$$=h.const_get_relative,h.$$$=h.const_get_qualified,h.$r=h.const_get_relative_factory;function re(b,R,ve){var Le;if(R!=null&&R.$$bridge?Le=function(){var ae=xe(arguments),te=new(F.apply(R.$$constructor,[null].concat(ae)));return pe(te,Le.$$prototype),te}:Le=function(){},b&&b!==r&&J(Le,"displayName","::"+b),J(Le,"$$name",b),J(Le,"$$constructor",Le),J(Le,"$$prototype",Le.prototype),J(Le,"$$const",{}),J(Le,"$$is_class",!0),J(Le,"$$is_a_module",!0),J(Le,"$$super",R),J(Le,"$$cvars",{}),J(Le,"$$own_included_modules",[]),J(Le,"$$own_prepended_modules",[]),J(Le,"$$ancestors",[]),J(Le,"$$ancestors_cache_version",null),J(Le,"$$subclasses",[]),J(Le.$$prototype,"$$class",Le),h.Class&&pe(Le,h.Class.prototype),R!=null){if(pe(Le.$$prototype,R.$$prototype),ve!==!0)if(typeof WeakRef<"u"){var Ze,ct,a=[];for(Ze=0;Ze<R.$$subclasses.length;Ze++)ct=R.$$subclasses[Ze],ct.deref()!==void 0&&a.push(ct);a.push(new WeakRef(Le)),R.$$subclasses=a}else R.$$subclasses.push(Le);R.$$meta&&h.build_class_singleton_class(Le)}return Le}h.allocate_class=re;function P(b,R){var ve=O(b,R);if(ve)return ve.$$is_class||me(h.TypeError,R+" is not a class"),ve}function Me(b,R){b.$$super!==R&&me(h.TypeError,"superclass mismatch for class "+b.$$name)}h.klass=function(b,R,ve){var Le;b==null||b=="::"?b=i:!b.$$is_class&&!b.$$is_module&&(b=b.$$class),R!=null&&(!R.hasOwnProperty||R.hasOwnProperty&&!R.hasOwnProperty("$$is_class"))&&(R.constructor&&R.constructor.name=="Function"?(Le=R,R=i):me(h.TypeError,"superclass must be a Class ("+(R.constructor&&(R.constructor.name||R.constructor.$$name)||typeof R)+" given)"));var Ze=P(b,ve);return Ze!=null?R&&Me(Ze,R):(R==null&&(R=i),Ze=re(ve,R),N(b,ve,Ze),R.$inherited&&R.$inherited(Ze),Le&&h.bridge(Le,Ze)),h.trace_class&&fe(Ze),Ze};function ce(b){var R=function(){},ve=R;return b&&J(R,"displayName",b+".constructor"),J(ve,"$$name",b),J(ve,"$$prototype",R.prototype),J(ve,"$$const",{}),J(ve,"$$is_module",!0),J(ve,"$$is_a_module",!0),J(ve,"$$cvars",{}),J(ve,"$$iclasses",[]),J(ve,"$$own_included_modules",[]),J(ve,"$$own_prepended_modules",[]),J(ve,"$$ancestors",[ve]),J(ve,"$$ancestors_cache_version",null),pe(ve,h.Module.prototype),ve}h.allocate_module=ce;function M(b,R){var ve=O(b,R);return ve==null&&b===i&&(ve=le(i,R)),ve&&!ve.$$is_module&&ve!==i&&me(h.TypeError,R+" is not a module"),ve}h.module=function(b,R){var ve;return b==null||b=="::"?b=i:!b.$$is_class&&!b.$$is_module&&(b=b.$$class),ve=M(b,R),ve==null&&(ve=ce(R),N(b,R,ve)),h.trace_class&&fe(ve),ve},h.get_singleton_class=function(b){return b.$$is_number&&me(h.TypeError,"can't define singleton"),b.$$meta?b.$$meta:b.hasOwnProperty("$$is_class")?h.build_class_singleton_class(b):b.hasOwnProperty("$$is_module")?h.build_module_singleton_class(b):h.build_object_singleton_class(b)};function x(b,R){b.hasOwnProperty("$$meta")?b.$$meta=R:J(b,"$$meta",R),b.$$frozen?b.$$meta.$freeze():pe(b,R.$$prototype)}h.build_class_singleton_class=function(b){if(b.$$meta)return b.$$meta;var R=b===n?c:h.get_singleton_class(b.$$super),ve=re(null,R,!0);return J(ve,"$$is_singleton",!0),J(ve,"$$singleton_of",b),x(b,ve),J(b,"$$class",h.Class),ve},h.build_module_singleton_class=function(b){if(b.$$meta)return b.$$meta;var R=re(null,h.Module,!0);return J(R,"$$is_singleton",!0),J(R,"$$singleton_of",b),x(b,R),J(b,"$$class",h.Module),R},h.build_object_singleton_class=function(b){var R=b.$$class,ve=re(r,R,!0);return J(ve,"$$is_singleton",!0),J(ve,"$$singleton_of",b),delete ve.$$prototype.$$class,x(b,ve),ve},h.is_method=function(b){return b[0]==="$"&&b[1]!=="$"},h.instance_methods=function(b){for(var R=[],ve=[],Le=rt(b),Ze=0,ct=Le.length;Ze<ct;Ze++){var a=Le[Ze],ae=a.$$prototype;ae.hasOwnProperty("$$dummy")&&(ae=ae.$$define_methods_on);for(var te=Object.getOwnPropertyNames(ae),V=0,_e=te.length;V<_e;V++){var v=te[V];if(h.is_method(v)){var Y=v.slice(1),Ue=ae[v];Ue.$$stub&&R.indexOf(Y)===-1&&R.push(Y),!Ue.$$stub&&ve.indexOf(Y)===-1&&R.indexOf(Y)===-1&&ve.push(Y)}}}return ve},h.own_instance_methods=function(b){var R=[],ve=b.$$prototype;ve.hasOwnProperty("$$dummy")&&(ve=ve.$$define_methods_on);for(var Le=Object.getOwnPropertyNames(ve),Ze=0,ct=Le.length;Ze<ct;Ze++){var a=Le[Ze];if(h.is_method(a)){var ae=ve[a];if(!ae.$$stub){var te=a.slice(1);R.push(te)}}}return R},h.methods=function(b){return h.instance_methods(b.$$meta||b.$$class)},h.own_methods=function(b){return b.$$meta?h.own_instance_methods(b.$$meta):[]},h.receiver_methods=function(b){var R=h.get_singleton_class(b),ve=h.own_instance_methods(R),Le=h.own_instance_methods(R.$$super);return ve.concat(Le)},h.class_variables=function(b){var R=rt(b),ve,Le=R.length,Ze={};for(ve=Le-1;ve>=0;ve--){var ct=R[ve];for(var a in ct.$$cvars)Ze[a]=ct.$$cvars[a]}return Ze},h.class_variable_set=function(b,R,ve){var Le=rt(b),Ze,ct=Le.length;for(Ze=ct-2;Ze>=0;Ze--){var a=Le[Ze];if(H(a.$$cvars,R))return a.$$cvars[R]=ve,ve}return b.$$cvars[R]=ve,ve},h.class_variable_get=function(b,R,ve){if(H(b.$$cvars,R))return b.$$cvars[R];var Le=rt(b),Ze,ct=Le.length;for(Ze=0;Ze<ct;Ze++){var a=Le[Ze];if(H(a.$$cvars,R))return a.$$cvars[R]}return ve||me(h.NameError,"uninitialized class variable "+R+" in "+b.$name()),r};function $(b){return b.hasOwnProperty("$$iclass")&&b.hasOwnProperty("$$root")}function l(b){for(var R=[],ve,Le=Object.getPrototypeOf(b.$$prototype);Le&&!Le.hasOwnProperty("$$class");)ve=Q(Le),ve&&R.push(ve),Le=Object.getPrototypeOf(Le);return R}function u(b){var R=[],ve,Le=Object.getPrototypeOf(b.$$prototype);if(b.$$prototype.hasOwnProperty("$$dummy"))for(;Le&&Le!==b.$$prototype.$$define_methods_on;)ve=Q(Le),ve&&R.push(ve),Le=Object.getPrototypeOf(Le);return R}h.append_features=function(b,R){var ve=rt(b),Le=[];ve.indexOf(R)!==-1&&me(h.ArgumentError,"cyclic include detected");for(var Ze=0,ct=ve.length;Ze<ct;Ze++){var a=ve[Ze],ae=_(a);J(ae,"$$included",!0),Le.push(ae)}var te=rt(R),V=A(Le),_e,v;if(te.indexOf(b)===-1)_e=R.$$prototype,v=Object.getPrototypeOf(R.$$prototype);else{for(var Y=R.$$prototype,Ue=Object.getPrototypeOf(Y);Ue!=null&&!(Ue.$$module===b&&$(Ue));)Y=Ue,Ue=Object.getPrototypeOf(Ue);if(Ue){for(var G=Object.getPrototypeOf(Ue);G.hasOwnProperty("$$iclass")&&!$(G);)G=Object.getPrototypeOf(G);_e=Y,v=G}else _e=R.$$prototype,v=Object.getPrototypeOf(R.$$prototype)}pe(_e,V.first),pe(V.last,v),R.$$own_included_modules=l(R),h.const_cache_version++},h.prepend_features=function(b,R){var ve=rt(b),Le=[];ve.indexOf(R)!==-1&&me(h.ArgumentError,"cyclic prepend detected");for(var Ze=0,ct=ve.length;Ze<ct;Ze++){var a=ve[Ze],ae=_(a);J(ae,"$$prepended",!0),Le.push(ae)}var te=A(Le),V=R.$$prototype,_e=Object.getPrototypeOf(V),v,Y,Ue;V.hasOwnProperty("$$dummy")?v=V.$$define_methods_on:(v=S(R),d(R),J(V,"$$dummy",!0),J(V,"$$define_methods_on",v),pe(V,v),pe(v,_e));var G=rt(R);if(G.indexOf(b)===-1)for(Y=V,Ue=Object.getPrototypeOf(V);Ue!=null&&!(Ue.hasOwnProperty("$$root")||Ue===v||!Ue.hasOwnProperty("$$iclass"));)Ue=Object.getPrototypeOf(Ue);else me(h.RuntimeError,"Prepending a module multiple times is not supported");pe(Y,te.first),pe(te.last,Ue),R.$$own_prepended_modules=u(R),h.const_cache_version++};function d(b){for(var R=b.$$prototype,ve=Object.getOwnPropertyNames(R),Le=0;Le<ve.length;Le++){var Ze=ve[Le];h.is_method(Ze)&&delete R[Ze]}}function _(b){var R=S(b);return b.$$is_module&&b.$$iclasses.push(R),R}function S(b){var R={},ve=b.$$prototype;ve.hasOwnProperty("$$dummy")&&(ve=ve.$$define_methods_on);var Le=Object.getOwnPropertyNames(ve),Ze=Le.length,ct;for(ct=0;ct<Ze;ct++){var a=Le[ct];J(R,a,ve[a])}return J(R,"$$iclass",!0),J(R,"$$module",b),R}function A(b){var R=b.length,ve=b[0];if(J(ve,"$$root",!0),R===1)return{first:ve,last:ve};for(var Le=ve,Ze=1;Ze<R;Ze++){var ct=b[Ze];pe(Le,ct),Le=ct}return{first:b[0],last:b[R-1]}}h.bridge=function(b,R){b.hasOwnProperty("$$bridge")&&me(h.ArgumentError,"already bridged"),J(b,"$$bridge",R),pe(b.prototype,(R.$$super||h.Object).$$prototype),J(R,"$$prototype",b.prototype),J(R.$$prototype,"$$class",R),J(R,"$$constructor",b),J(R,"$$bridge",!0)};function Q(b){if(!b.hasOwnProperty("$$dummy")){if(b.hasOwnProperty("$$iclass"))return b.$$module;if(b.hasOwnProperty("$$class"))return b.$$class}}function De(b){return b.$$own_prepended_modules.concat([b]).concat(b.$$own_included_modules)}function rt(b){if(!b)return[];if(b.$$ancestors_cache_version===h.const_cache_version)return b.$$ancestors;var R=[],ve,Le,Ze;for(ve=0,Le=De(b),Ze=Le.length;ve<Ze;ve++)R.push(Le[ve]);if(b.$$super)for(ve=0,Le=rt(b.$$super),Ze=Le.length;ve<Ze;ve++)R.push(Le[ve]);return b.$$ancestors_cache_version=h.const_cache_version,b.$$ancestors=R,R}h.ancestors=rt,h.included_modules=function(b){for(var R=[],ve=null,Le=Object.getPrototypeOf(b.$$prototype);Le&&Object.getPrototypeOf(Le);Le=Object.getPrototypeOf(Le))ve=Q(Le),ve&&ve.$$is_module&&Le.$$iclass&&Le.$$included&&R.push(ve);return R},h.add_stubs=function(b){var R=h.BasicObject.$$prototype,ve,Le;b=b.split(",");for(var Ze=0,ct=b.length;Ze<ct;Ze++)ve=bt(b[Ze]),Le=R[ve],(Le==null||Le.$$stub)&&h.add_stub_for(R,ve)},h.add_stub_for=function(b,R){J(b,R,h.stub_for(R))},h.stub_for=function(b){function R(){this.$method_missing.$$p=R.$$p,R.$$p=null;for(var ve=new Array(arguments.length),Le=0,Ze=ve.length;Le<Ze;Le++)ve[Le]=arguments[Le];return this.$method_missing.apply(this,[b.slice(1)].concat(ve))}return R.$$stub=!0,R},h.ac=function(b,R,ve,Le){var Ze="";ve.$$is_a_module?Ze+=ve.$$name+".":Ze+=ve.$$class.$$name+"#",Ze+=Le,me(h.ArgumentError,"["+Ze+"] wrong number of arguments (given "+b+", expected "+R+")")},h.block_ac=function(b,R,ve){var Le="`block in "+ve+"'";me(h.ArgumentError,Le+": wrong number of arguments (given "+b+", expected "+R+")")};function ft(b){return b.hasOwnProperty("$$meta")&&b.$$meta!==null?rt(b.$$meta):rt(b.$$class)}h.find_super=function(b,R,ve,Le,Ze){var ct=bt(R),a,ae;a=ft(b);for(var te=a.indexOf(ve.$$owner),V=te+1;V<a.length;V++){var _e=a[V],v=_e.$$prototype;if(v.hasOwnProperty("$$dummy")&&(v=v.$$define_methods_on),v.hasOwnProperty(ct)){ae=v[ct];break}}return!Le&&ae&&ae.$$stub&&b.$method_missing.$$pristine&&me(h.NoMethodError,"super: no superclass method `"+R+"' for "+b,R),ae.$$stub&&!Ze?null:ae},h.find_block_super=function(b,R,ve,Le,Ze){var ct=R;return ve||me(h.RuntimeError,"super called outside of method"),Ze&&ve.$$define_meth&&me(h.RuntimeError,"implicit argument passing of super from method defined by define_method() is not supported. Specify all arguments explicitly"),ve.$$def&&(ct=ve.$$jsid),h.find_super(b,ct,ve,Le)},h.find_super_dispatcher=h.find_super,h.find_iter_super_dispatcher=h.find_block_super,h.yield1=function(b,R){typeof b!="function"&&me(h.LocalJumpError,"no block given");var ve=b.$$has_top_level_mlhs_arg,Le=b.$$has_trailing_comma_in_args;return(b.length>1||(ve||Le)&&b.length===1)&&(R=h.to_ary(R)),(b.length>1||Le&&b.length===1)&&R.$$is_array?b.apply(null,R):b(R)},h.yieldX=function(b,R){if(typeof b!="function"&&me(h.LocalJumpError,"no block given"),b.length>1&&R.length===1&&R[0].$$is_array)return b.apply(null,R[0]);if(!R.$$is_array){for(var ve=new Array(R.length),Le=0,Ze=ve.length;Le<Ze;Le++)ve[Le]=R[Le];return b.apply(null,ve)}return b.apply(null,R)},h.rescue=function(b,R){for(var ve=0;ve<R.length;ve++){var Le=R[ve];if(Le.$$is_array){var Ze=h.rescue(b,Le);if(Ze)return Ze}else if(Le===h.JS.Error||Le["$==="](b))return Le}return null},h.is_a=function(b,R){if(R!=null&&b.$$meta===R||b.$$class===R)return!0;if(b.$$is_number&&R.$$is_number_class)return R.$$is_integer_class?b%1===0:!0;var ve=rt(b.$$is_class?h.get_singleton_class(b):b.$$meta||b.$$class);return ve.indexOf(R)!==-1},h.to_hash=function(b){if(b.$$is_hash)return b;if(b["$respond_to?"]("to_hash",!0)){var R=b.$to_hash();if(R.$$is_hash)return R;me(h.TypeError,"Can't convert "+b.$$class+" to Hash ("+b.$$class+"#to_hash gives "+R.$$class+")")}else me(h.TypeError,"no implicit conversion of "+b.$$class+" into Hash")},h.to_ary=function(b){if(b.$$is_array)return b;if(b["$respond_to?"]("to_ary",!0)){var R=b.$to_ary();if(R===r)return[b];if(R.$$is_array)return R;me(h.TypeError,"Can't convert "+b.$$class+" to Array ("+b.$$class+"#to_ary gives "+R.$$class+")")}else return[b]},h.to_a=function(b){if(b.$$is_array)return b.slice();if(b["$respond_to?"]("to_a",!0)){var R=b.$to_a();if(R===r)return[b];if(R.$$is_array)return R;me(h.TypeError,"Can't convert "+b.$$class+" to Array ("+b.$$class+"#to_a gives "+R.$$class+")")}else return[b]},h.extract_kwargs=function(b){var R=b[b.length-1];if(R!=null&&h.respond_to(R,"$to_hash",!0))return ne(b,b.length-1),R},h.kwrestargs=function(b,R){var ve=[],Le={},Ze,ct=b.$$smap;for(Ze in ct)R[Ze]||(ve.push(Ze),Le[Ze]=ct[Ze]);return h.hash2(ve,Le)};function _t(b,R){typeof R=="number"?b.$$arity=R:typeof R=="object"&&Object.assign(b,R)}var At={};function bt(b){return At[b]||(At[b]="$"+b)}h.jsid=bt,h.send=function(b,R,ve,Le,Ze){var ct;return typeof R=="function"?(ct=R,R=null):typeof R=="string"?ct=b[bt(R)]:me(h.NameError,"Passed method should be a string or a function"),h.send2(b,ct,R,ve,Le,Ze)},h.send2=function(b,R,ve,Le,Ze,ct){return R==null&&ve!=null&&b.$method_missing&&(R=b.$method_missing,Le=[ve].concat(Le)),_t(Ze,ct),typeof Ze=="function"&&(R.$$p=Ze),R.apply(b,Le)},h.refined_send=function(b,R,ve,Le,Ze,ct){var a,ae,te,V,_e,v,Y,Ue,G,Ie;for(V=ft(R),a=0;a<V.length;a++)for(_e=h.id(V[a]),ae=0;ae<b.length;ae++)for(v=b[ae],te=v.length-1;te>=0;te--)if(Y=v[te],!(typeof Y.$$refine_modules>"u")&&(Ue=Y.$$refine_modules,!(typeof Ue[_e]>"u")&&(G=Ue[_e],typeof G.$$prototype[bt(ve)]<"u")))return Ie=G.$$prototype[bt(ve)],h.send2(R,Ie,ve,Le,Ze,ct);return h.send(R,ve,Le,Ze,ct)},h.lambda=function(b,R){return b.$$is_lambda=!0,_t(b,R),b},h.def=function(b,R,ve,Le){return _t(ve,Le),b===h.top?h.defn(h.Object,R,ve):!b.$$eval&&b.$$is_a_module?h.defn(b,R,ve):h.defs(b,R,ve)},h.defn=function(b,R,ve){qt(b),ve.displayName=R,ve.$$owner=b;var Le=R.substr(1),Ze=b.$$prototype;if(Ze.hasOwnProperty("$$dummy")&&(Ze=Ze.$$define_methods_on),J(Ze,R,ve),b.$$is_module){b.$$module_function&&h.defs(b,R,ve);for(var ct=0,a=b.$$iclasses,ae=a.length;ct<ae;ct++){var te=a[ct];J(te,R,ve)}}var V=b.$$singleton_of;return b.$method_added&&!b.$method_added.$$stub&&!V?b.$method_added(Le):V&&V.$singleton_method_added&&!V.$singleton_method_added.$$stub&&V.$singleton_method_added(Le),Le},h.defs=function(b,R,ve,Le){return _t(ve,Le),(b.$$is_string||b.$$is_number)&&me(h.TypeError,"can't define singleton"),h.defn(h.get_singleton_class(b),R,ve)},h.rdef=function(b,R){H(b.$$prototype,R)||me(h.NameError,"method '"+R.substr(1)+"' not defined in "+b.$name()),delete b.$$prototype[R],b.$$is_singleton?b.$$prototype.$singleton_method_removed&&!b.$$prototype.$singleton_method_removed.$$stub&&b.$$prototype.$singleton_method_removed(R.substr(1)):b.$method_removed&&!b.$method_removed.$$stub&&b.$method_removed(R.substr(1))},h.udef=function(b,R){(!b.$$prototype[R]||b.$$prototype[R].$$stub)&&me(h.NameError,"method '"+R.substr(1)+"' not defined in "+b.$name()),h.add_stub_for(b.$$prototype,R),b.$$is_singleton?b.$$prototype.$singleton_method_undefined&&!b.$$prototype.$singleton_method_undefined.$$stub&&b.$$prototype.$singleton_method_undefined(R.substr(1)):b.$method_undefined&&!b.$method_undefined.$$stub&&b.$method_undefined(R.substr(1))};function Mt(b){return typeof b=="function"&&!b.$$stub}h.alias=function(b,R,ve){var Le=bt(R),Ze=bt(ve),ct,a;if(typeof b.$$prototype>"u"&&(b=h.Object),ct=b.$$prototype[Ze],b.$$eval)return h.alias(h.get_singleton_class(b),R,ve);if(!Mt(ct)){for(var ae=b.$$super;typeof ct!="function"&&ae;)ct=ae[Ze],ae=ae.$$super;!Mt(ct)&&b.$$is_module&&(ct=h.Object.$$prototype[Ze]),Mt(ct)||me(h.NameError,"undefined method `"+ve+"' for class `"+b.$name()+"'")}ct.$$alias_of&&(ct=ct.$$alias_of),a=function(){var te=a.$$p,V,_e,v;for(V=new Array(arguments.length),_e=0,v=arguments.length;_e<v;_e++)V[_e]=arguments[_e];return a.$$p=null,h.send(this,ct,V,te)};try{Object.defineProperty(a,"length",{value:ct.length})}catch{}return a.displayName=R,a.$$arity=ct.$$arity==null?ct.length:ct.$$arity,a.$$parameters=ct.$$parameters,a.$$source_location=ct.$$source_location,a.$$alias_of=ct,a.$$alias_name=R,h.defn(b,Le,a),b},h.alias_gvar=function(b,R){return Object.defineProperty(se,b,{configurable:!0,enumerable:!0,get:function(){return se[R]},set:function(ve){se[R]=ve}}),r},h.alias_native=function(b,R,ve){var Le=bt(R),Ze=b.$$prototype[ve];return(typeof Ze!="function"||Ze.$$stub)&&me(h.NameError,"undefined native method `"+ve+"' for class `"+b.$name()+"'"),h.defn(b,Le,Ze),b},h.hash_init=function(b){b.$$smap=Object.create(null),b.$$map=Object.create(null),b.$$keys=[]},h.hash_clone=function(b,R){R.$$none=b.$$none,R.$$proc=b.$$proc;for(var ve=0,Le=b.$$keys,Ze=b.$$smap,ct=Le.length,a,ae;ve<ct;ve++)a=Le[ve],a.$$is_string?ae=Ze[a]:(ae=a.value,a=a.key),h.hash_put(R,a,ae)},h.hash_put=function(b,R,ve){if(R.$$is_string){H(b.$$smap,R)||b.$$keys.push(R),b.$$smap[R]=ve;return}var Le,Ze,ct;if(Le=b.$$by_identity?h.id(R):R.$hash(),!H(b.$$map,Le)){Ze={key:R,key_hash:Le,value:ve},b.$$keys.push(Ze),b.$$map[Le]=Ze;return}for(Ze=b.$$map[Le];Ze;){if(R===Ze.key||R["$eql?"](Ze.key)){ct=void 0,Ze.value=ve;break}ct=Ze,Ze=Ze.next}ct&&(Ze={key:R,key_hash:Le,value:ve},b.$$keys.push(Ze),ct.next=Ze)},h.hash_get=function(b,R){if(R.$$is_string)return H(b.$$smap,R)?b.$$smap[R]:void 0;var ve,Le;if(ve=b.$$by_identity?h.id(R):R.$hash(),H(b.$$map,ve))for(Le=b.$$map[ve];Le;){if(R===Le.key||R["$eql?"](Le.key))return Le.value;Le=Le.next}},h.hash_delete=function(b,R){var ve,Le=b.$$keys,Ze=Le.length,ct,a;if(R.$$is_string){if(typeof R!="string"&&(R=R.valueOf()),!H(b.$$smap,R))return;for(ve=0;ve<Ze;ve++)if(a=Le[ve],a.$$is_string&&typeof a!="string"&&(a=a.valueOf()),a===R){Le.splice(ve,1);break}return ct=b.$$smap[R],delete b.$$smap[R],ct}var ae=R.$hash();if(H(b.$$map,ae))for(var te=b.$$map[ae],V;te;){if(R===te.key||R["$eql?"](te.key)){for(ct=te.value,ve=0;ve<Ze;ve++)if(Le[ve]===te){Le.splice(ve,1);break}return V&&te.next?V.next=te.next:V?delete V.next:te.next?b.$$map[ae]=te.next:delete b.$$map[ae],ct}V=te,te=te.next}},h.hash_rehash=function(b){for(var R=0,ve=b.$$keys.length,Le,Ze,ct;R<ve;R++)if(!b.$$keys[R].$$is_string&&(Le=b.$$keys[R].key.$hash(),Le!==b.$$keys[R].key_hash)){for(Ze=b.$$map[b.$$keys[R].key_hash],ct=void 0;Ze;){if(Ze===b.$$keys[R]){ct&&Ze.next?ct.next=Ze.next:ct?delete ct.next:Ze.next?b.$$map[b.$$keys[R].key_hash]=Ze.next:delete b.$$map[b.$$keys[R].key_hash];break}ct=Ze,Ze=Ze.next}if(b.$$keys[R].key_hash=Le,!H(b.$$map,Le)){b.$$map[Le]=b.$$keys[R];continue}for(Ze=b.$$map[Le],ct=void 0;Ze;){if(Ze===b.$$keys[R]){ct=void 0;break}ct=Ze,Ze=Ze.next}ct&&(ct.next=b.$$keys[R])}},h.hash=function(){var b=arguments.length,R,ve,Le,Ze,ct,a;if(b===1&&arguments[0].$$is_hash)return arguments[0];if(ve=new h.Hash,h.hash_init(ve),b===1)if(R=arguments[0],arguments[0].$$is_array){for(Ze=R.length,Le=0;Le<Ze;Le++)R[Le].length!==2&&me(h.ArgumentError,"value not of length 2: "+R[Le].$inspect()),ct=R[Le][0],a=R[Le][1],h.hash_put(ve,ct,a);return ve}else{R=arguments[0];for(ct in R)H(R,ct)&&(a=R[ct],h.hash_put(ve,ct,a));return ve}for(b%2!==0&&me(h.ArgumentError,"odd number of arguments for Hash"),Le=0;Le<b;Le+=2)ct=arguments[Le],a=arguments[Le+1],h.hash_put(ve,ct,a);return ve},h.hash2=function(b,R){var ve=new h.Hash;return ve.$$smap=R,ve.$$map=Object.create(null),ve.$$keys=b,ve},h.range=function(b,R,ve){var Le=new h.Range;return Le.begin=b,Le.end=R,Le.excl=ve,Le};var Et=["constructor","displayName","__count__","__noSuchMethod__","__parent__","__proto__","hasOwnProperty","valueOf"];h.ivar=function(b){return Et.indexOf(b)!==-1&&(b+="$"),b};function qt(b){b.$$frozen&&me(h.FrozenError,"can't modify frozen "+b.$class()+": "+b,h.hash2(["receiver"],{receiver:b}))}h.deny_frozen_access=qt,h.freeze=function(b){return J(b,"$$frozen",!0),b.hasOwnProperty("$$id")||J(b,"$$id",ge()),b.hasOwnProperty("$$meta")?b.$$meta.$freeze():J(b,"$$meta",null),b.hasOwnProperty("$$comparable")||J(b,"$$comparable",null),Object.seal(b),b},h.freeze_props=function(b){var R,ve,Le;for(R in b)ve=typeof R,!((ve==="string"||ve==="object")&&R[0]==="$")&&(Le=Object.getOwnPropertyDescriptor(b,R),Le&&Le.enumerable&&Le.writable&&function(){var Ze=b[R];Object.defineProperty(b,R,{get:function(){return Ze},set:function(ct){qt(b)},enumerable:!0})}())},h.escape_regexp=function(b){return b.replace(/([-[\]\/{}()*+?.^$\\| ])/g,"\\$1").replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r").replace(/[\f]/g,"\\f").replace(/[\t]/g,"\\t")},h.global_regexp=function(b){return b.global?b:(b.$$g==null?b.$$g=new RegExp(b.source,(b.multiline?"gm":"g")+(b.ignoreCase?"i":"")):b.$$g.lastIndex=null,b.$$g)},h.global_multiline_regexp=function(b){var R,ve;return b.global&&b.multiline?b:(ve="gm"+(b.ignoreCase?"i":""),b.multiline?(b.$$g==null&&(b.$$g=new RegExp(b.source,ve)),R=b.$$g):(b.$$gm==null&&(b.$$gm=new RegExp(b.source,ve)),R=b.$$gm),R.lastIndex=null,R)},h.regexp=function(b,R){for(var ve,Le=typeof R<"u"&&R&&R.indexOf("i")>=0,Ze=0,ct=b.length;Ze<ct;Ze++)ve=b[Ze],ve instanceof RegExp&&(ve.ignoreCase!==Le&&h.Kernel.$warn("ignore case doesn't match for "+ve.source.$inspect(),h.hash({uplevel:1})),ve=ve.source),ve===""&&(ve="(?:"+ve+")"),b[Ze]=ve;return R?new RegExp(b.join(""),R):new RegExp(b.join(""))},h.modules={},h.loaded_features=["corelib/runtime"],h.current_dir=".",h.require_table={"corelib/runtime":!0},h.normalize=function(b){var R,ve,Le=[],Ze="/";h.current_dir!=="."&&(b=h.current_dir.replace(/\/*$/,"/")+b),b=b.replace(/^\.\//,""),b=b.replace(/\.(rb|opal|js)$/,""),R=b.split(Ze);for(var ct=0,a=R.length;ct<a;ct++)ve=R[ct],ve!==""&&(ve===".."?Le.pop():Le.push(ve));return Le.join(Ze)},h.loaded=function(b){var R,ve,Le;for(R=0,ve=b.length;R<ve;R++)Le=h.normalize(b[R]),!h.require_table[Le]&&(h.loaded_features.push(Le),h.require_table[Le]=!0)},h.load_normalized=function(b){h.loaded([b]);var R=h.modules[b];if(R){var ve=R(h);if(typeof Promise<"u"&&ve instanceof Promise)return ve.then(Pe(!0))}else{var Le=h.config.missing_require_severity,Ze="cannot load such file -- "+b;Le==="error"?me(h.LoadError,Ze):Le==="warning"&&t.warn("WARNING: LoadError: "+Ze)}return!0},h.load=function(b){return b=h.normalize(b),h.load_normalized(b)},h.require=function(b){return b=h.normalize(b),h.require_table[b]?!1:h.load_normalized(b)},h.encodings=Object.create(null),h.set_encoding=function(b,R,ve){typeof ve>"u"&&(ve="encoding"),(typeof b=="string"||b.$$frozen===!0)&&me(h.FrozenError,"can't modify frozen String");var Le=h.find_encoding(R);return Le===b[ve]||(b[ve]=Le),b},h.find_encoding=function(b){var R=h.encodings,ve=R[b]||R[b.toUpperCase()];return ve||me(h.ArgumentError,"unknown encoding name - "+b),ve},h.enc=function(b,R){var ve=new String(b);return ve=h.set_encoding(ve,R),ve.internal_encoding=ve.encoding,ve},h.binary=function(b){var R=new String(b);return h.set_encoding(R,"binary","internal_encoding")},h.last_promise=null,h.promise_unhandled_exception=!1,h.queue=function(b){if(h.last_promise)return h.last_promise=h.last_promise.then(function(){if(!h.promise_unhandled_exception)return b(h)}).catch(function(ve){h.respond_to(ve,"$full_message")&&(ve=ve.$full_message()),t.error(ve),h.promise_unhandled_exception=!0,h.exit(1)}),h.last_promise;var R=b(h);return typeof Promise=="function"&&typeof R=="object"&&R instanceof Promise&&(h.last_promise=R),R};function It(b,R){return typeof b=="number"&&typeof R=="number"}h.rb_plus=function(b,R){return It(b,R)?b+R:b["$+"](R)},h.rb_minus=function(b,R){return It(b,R)?b-R:b["$-"](R)},h.rb_times=function(b,R){return It(b,R)?b*R:b["$*"](R)},h.rb_divide=function(b,R){return It(b,R)?b/R:b["$/"](R)},h.rb_lt=function(b,R){return It(b,R)?b<R:b["$<"](R)},h.rb_gt=function(b,R){return It(b,R)?b>R:b["$>"](R)},h.rb_le=function(b,R){return It(b,R)?b<=R:b["$<="](R)},h.rb_ge=function(b,R){return It(b,R)?b>=R:b["$>="](R)};function nt(b,R){return typeof b=="number"&&typeof R=="number"||typeof b=="string"&&typeof R=="string"}function Re(b,R){return nt(b,R)?b===R:be(b["$=="](R))}h.eqeq=Re,h.eqeqeq=function(b,R){return nt(b,R)?b===R:be(b["$==="](R))},h.neqeq=function(b,R){return nt(b,R)?b!==R:be(b["$!="](R))},h.not=function(b){return b==null||b===!1||r===b?!0:b===!0||b["$!"].$$pristine?!1:be(b["$!"]())};function Pe(b){return function(){return b}}h.return_val=Pe,h.return_self=function(){return this},h.return_ivar=function(b){return function(){return this[b]==null?r:this[b]}},h.assign_ivar=function(b){return function(R){return qt(this),this[b]=R}},h.assign_ivar_val=function(b,R){return function(){return qt(this),this[b]=R}},h.ensure_kwargs=function(b){if(b==null)return h.hash2([],{});if(b.$$is_hash)return b;me(h.ArgumentError,"expected kwargs")},h.get_kwarg=function(b,R){return H(b.$$smap,R)||me(h.ArgumentError,"missing keyword: "+R),b.$$smap[R]},h.large_array_unpack=function(b){var R=b.split(","),ve=R.length,Le;for(Le=0;Le<ve;Le++)switch(R[Le][0]){case void 0:R[Le]=r;break;case"-":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":R[Le]=+R[Le]}return R},h.BasicObject=n=re("BasicObject",null),h.Object=i=re("Object",h.BasicObject),h.Module=s=re("Module",h.Object),h.Class=c=re("Class",h.Module),h.Opal=f=ce("Opal"),h.Kernel=p=ce("Kernel"),pe(h.BasicObject,h.Class.$$prototype),pe(h.Object,h.Class.$$prototype),pe(h.Module,h.Class.$$prototype),pe(h.Class,h.Class.$$prototype),n.$$const.BasicObject=n,N(i,"BasicObject",n),N(i,"Object",i),N(i,"Module",s),N(i,"Class",c),N(i,"Opal",f),N(i,"Kernel",p),n.$$class=c,i.$$class=c,s.$$class=c,c.$$class=c,f.$$class=s,p.$$class=s,J(i.$$prototype,"toString",function(){var b=this.$to_s();return b.$$is_string&&typeof b=="object"?b.valueOf():b}),J(i.$$prototype,"$require",h.require),h.top=new i,h.top.$to_s=h.top.$inspect=Pe("main"),h.top.$define_method=Ke;function Ke(){var b=xe(arguments),R=Ke.$$p;return Ke.$$p=null,h.send(i,"define_method",b,R)}h.NilClass=re("NilClass",h.Object),N(i,"NilClass",h.NilClass),r=h.nil=new h.NilClass,r.$$id=W,r.call=r.apply=function(){me(h.LocalJumpError,"no block given")},r.$$frozen=!0,r.$$comparable=!1,Object.seal(r),h.thrower=function(b){var R=new Error("unexpected "+b);return R.$thrower_type=b,R.$throw=function(ve){throw ve==null&&(ve=r),R.$v=ve,R},R},h.t_eval_return=h.thrower("return"),TypeError.$$super=Error,h.file_sources={}}).call(void 0);Opal.loaded(["corelib/runtime.js"]);Opal.modules["corelib/helpers"]=function(e){var t=e.type_error,r=e.coerce_to,n=e.module,i=e.defs,s=e.slice,c=e.eqeqeq,f=e.Kernel,p=e.truthy,h=e.Opal,I=e.nil,F=e.$$$;return e.add_stubs("===,raise,respond_to?,nil?,__send__,<=>,class,coerce_to!,new,to_s,__id__"),function(H){var pe=n(H,"Opal");i(pe,"$bridge",function(W,X){return e.bridge(W,X)}),i(pe,"$coerce_to!",function(W,X,ge,se){var me,J,be=I;return me=s(arguments,3),J=me,be=r(W,X,ge,J),c(X,be)||f.$raise(t(W,X,ge,be)),be},-4),i(pe,"$coerce_to?",function(W,X,ge,se){var me,J,be=I;return me=s(arguments,3),J=me,!p(W["$respond_to?"](ge))||(be=r(W,X,ge,J),p(be["$nil?"]()))?I:(c(X,be)||f.$raise(t(W,X,ge,be)),be)},-4),i(pe,"$try_convert",function(W,X,ge){return c(X,W)?W:p(W["$respond_to?"](ge))?W.$__send__(ge):I}),i(pe,"$compare",function(W,X){var ge=I;return ge=W["$<=>"](X),p(ge===I)&&f.$raise(F("ArgumentError"),"comparison of "+W.$class()+" with "+X.$class()+" failed"),ge}),i(pe,"$destructure",function(W){if(W.length==1)return W[0];if(W.$$is_array)return W;for(var X=new Array(W.length),ge=0,se=X.length;ge<se;ge++)X[ge]=W[ge];return X}),i(pe,"$respond_to?",function(W,X,ge){return ge==null&&(ge=!1),W==null||!W.$$class?!1:W["$respond_to?"](X,ge)},-3),i(pe,"$instance_variable_name!",function(W){return W=h["$coerce_to!"](W,F("String"),"to_str"),p(/^@[a-zA-Z_][a-zA-Z0-9_]*?$/.test(W))||f.$raise(F("NameError").$new("'"+W+"' is not allowed as an instance variable name",W)),W}),i(pe,"$class_variable_name!",function(W){return W=h["$coerce_to!"](W,F("String"),"to_str"),p(W.length<3||W.slice(0,2)!=="@@")&&f.$raise(F("NameError").$new("`"+W+"' is not allowed as a class variable name",W)),W}),i(pe,"$const_name?",function(W){return typeof W!="string"&&(W=h["$coerce_to!"](W,F("String"),"to_str")),W[0]===W[0].toUpperCase()}),i(pe,"$const_name!",function(W){var X=this;return p(F("::","String","skip_raise")?"constant":I)&&(W=h["$coerce_to!"](W,F("String"),"to_str")),(!W||W[0]!=W[0].toUpperCase())&&X.$raise(F("NameError"),"wrong constant name "+W),W}),i(pe,"$pristine",function(W,X){var ge,se;ge=s(arguments,1),se=ge;for(var me,J,be=se.length-1;be>=0;be--)me=se[be],J=W.$$prototype[e.jsid(me)],J&&!J.$$stub&&(J.$$pristine=!0);return I},-2);var xe=[];return i(pe,"$inspect",function(W){var X=I,ge=!1;return function(){try{try{return W===null?"null":W===void 0?"undefined":typeof W.$$class>"u"?Object.prototype.toString.apply(W):typeof W.$inspect!="function"||W.$inspect.$$stub||xe.indexOf(W.$__id__())!==-1?"#<"+W.$$class+":0x"+W.$__id__().$to_s(16)+">":(xe.push(W.$__id__()),ge=!0,W.$inspect())}catch(se){if(e.rescue(se,[F("Exception")])){X=se;try{return"#<"+W.$$class+":0x"+W.$__id__().$to_s(16)+">"}finally{e.pop_exception()}}else throw se}}finally{ge&&xe.pop()}}()},-1)}("::")};Opal.modules["corelib/module"]=function(e){var t=e.truthy,r=e.coerce_to,n=e.const_set,i=e.Object,s=e.return_ivar,c=e.assign_ivar,f=e.ivar,p=e.deny_frozen_access,h=e.freeze,I=e.prop,F=e.jsid,H=e.klass,pe=e.defs,xe=e.send,ne=e.def,W=e.eqeqeq,X=e.Module,ge=e.Kernel,se=e.rb_lt,me=e.rb_gt,J=e.slice,be=e.to_a,fe=e.hash2,Ae=e.Opal,O=e.return_val,Ee=e.eqeq,le=e.lambda,w=e.range,Se=e.send2,N=e.find_super,re=e.alias,P=[],Me=e.nil,ce=e.$$$;return e.add_stubs("module_eval,to_proc,===,raise,equal?,<,>,nil?,attr_reader,attr_writer,warn,attr_accessor,const_name?,class_variable_name!,pristine,const_name!,=~,new,inject,split,const_get,==,start_with?,!~,bind,call,class,frozen?,name,append_features,included,cover?,size,merge,compile,proc,any?,prepend_features,prepended,to_s,__id__,constants,include?,copy_class_variables,copy_constants,class_exec,module_exec,inspect"),function(M,x,$){var l=H(M,x,"Module"),u=[l].concat($),d=e.$r(u);return pe(l,"$allocate",function(){var S=this,A=e.allocate_module(Me,function(){});return S!==e.Module&&Object.setPrototypeOf(A,S.$$prototype),A}),ne(l,"$initialize",function _(){var S=_.$$p||Me,A=this;return _.$$p=null,S!==Me?xe(A,"module_eval",[],S.$to_proc()):Me}),ne(l,"$===",function(S){var A=this;return t(S==null)?!1:e.is_a(S,A)}),ne(l,"$<",function(S){var A=this;W(X,S)||ge.$raise(ce("TypeError"),"compared with non class/module");var Q=A,De,rt,ft;if(Q===S)return!1;for(rt=0,De=e.ancestors(A),ft=De.length;rt<ft;rt++)if(De[rt]===S)return!0;for(rt=0,De=e.ancestors(S),ft=De.length;rt<ft;rt++)if(De[rt]===A)return!1;return Me}),ne(l,"$<=",function(S){var A=this,Q=Me;return t(Q=A["$equal?"](S))?Q:se(A,S)}),ne(l,"$>",function(S){var A=this;return W(X,S)||ge.$raise(ce("TypeError"),"compared with non class/module"),se(S,A)}),ne(l,"$>=",function(S){var A=this,Q=Me;return t(Q=A["$equal?"](S))?Q:me(A,S)}),ne(l,"$<=>",function(S){var A=this,Q=Me;return A===S?0:!W(X,S)||(Q=se(A,S),t(Q["$nil?"]()))?Me:t(Q)?-1:1}),ne(l,"$alias_method",function(S,A){var Q=this;return p(Q),S=r(S,ce("String"),"to_str"),A=r(A,ce("String"),"to_str"),e.alias(Q,S,A),Q}),ne(l,"$alias_native",function(S,A){var Q=this;return A==null&&(A=S),p(Q),e.alias_native(Q,S,A),Q},-2),ne(l,"$ancestors",function(){var S=this;return e.ancestors(S)}),ne(l,"$append_features",function(S){var A=this;return p(S),e.append_features(A,S),A}),ne(l,"$attr_accessor",function(S){var A,Q,De=this;return A=J(arguments),Q=A,xe(De,"attr_reader",be(Q)),xe(De,"attr_writer",be(Q))},-1),ne(l,"$attr",function(S){var A,Q,De=this;return A=J(arguments),Q=A,Q.length==2&&(Q[1]===!0||Q[1]===!1)?(De.$warn("optional boolean argument is obsoleted",fe(["uplevel"],{uplevel:1})),Q[1]?De.$attr_accessor(Q[0]):De.$attr_reader(Q[0]),Me):xe(De,"attr_reader",be(Q))},-1),ne(l,"$attr_reader",function(S){var A,Q,De=this;A=J(arguments),Q=A,p(De);for(var rt=De.$$prototype,ft=Q.length-1;ft>=0;ft--){var _t=Q[ft],At=F(_t),bt=f(_t),Mt=s(bt);e.prop(rt,bt,Me),Mt.$$parameters=[],Mt.$$arity=0,e.defn(De,At,Mt)}return Me},-1),ne(l,"$attr_writer",function(S){var A,Q,De=this;A=J(arguments),Q=A,p(De);for(var rt=De.$$prototype,ft=Q.length-1;ft>=0;ft--){var _t=Q[ft],At=F(_t+"="),bt=f(_t),Mt=c(bt);Mt.$$parameters=[["req"]],Mt.$$arity=1,e.prop(rt,bt,Me),e.defn(De,At,Mt)}return Me},-1),ne(l,"$autoload",function(S,A){var Q=this;return p(Q),d("Opal")["$const_name?"](S)||ge.$raise(ce("NameError"),"autoload must be constant name: "+S),A==""&&ge.$raise(ce("ArgumentError"),"empty file name"),Q.$$const.hasOwnProperty(S)||(Q.$$autoload||(Q.$$autoload={}),e.const_cache_version++,Q.$$autoload[S]={path:A,loaded:!1,required:!1,success:!1,exception:!1},Q.$const_added&&!Q.$const_added.$$pristine&&Q.$const_added(S)),Me}),ne(l,"$autoload?",function(S){var A=this;if(A.$$autoload&&A.$$autoload[S]&&!A.$$autoload[S].required&&!A.$$autoload[S].success)return A.$$autoload[S].path;for(var Q=A.$ancestors(),De=0,rt=Q.length;De<rt;De++)if(Q[De].$$autoload&&Q[De].$$autoload[S]&&!Q[De].$$autoload[S].required&&!Q[De].$$autoload[S].success)return Q[De].$$autoload[S].path;return Me}),ne(l,"$class_variables",function(){var S=this;return Object.keys(e.class_variables(S))}),ne(l,"$class_variable_get",function(S){var A=this;return S=Ae["$class_variable_name!"](S),e.class_variable_get(A,S,!1)}),ne(l,"$class_variable_set",function(S,A){var Q=this;return p(Q),S=Ae["$class_variable_name!"](S),e.class_variable_set(Q,S,A)}),ne(l,"$class_variable_defined?",function(S){var A=this;return S=Ae["$class_variable_name!"](S),e.class_variables(A).hasOwnProperty(S)}),ne(l,"$const_added",O(Me)),Ae.$pristine(l,"const_added"),ne(l,"$remove_class_variable",function(S){var A=this;if(p(A),S=Ae["$class_variable_name!"](S),e.hasOwnProperty.call(A.$$cvars,S)){var Q=A.$$cvars[S];return delete A.$$cvars[S],Q}else ge.$raise(ce("NameError"),"cannot remove "+S+" for "+A)}),ne(l,"$constants",function(S){var A=this;return S==null&&(S=!0),e.constants(A,S)},-1),pe(l,"$constants",function(S){var A=this;if(S==null){var Q=(A.$$nesting||[]).concat(i),De,rt={},ft,_t;for(ft=0,_t=Q.length;ft<_t;ft++)for(De in Q[ft].$$const)rt[De]=!0;return Object.keys(rt)}else return e.constants(A,S)},-1),pe(l,"$nesting",function(){var S=this;return S.$$nesting||[]}),ne(l,"$const_defined?",function(S,A){var Q=this;A==null&&(A=!0),S=d("Opal")["$const_name!"](S),t(S["$=~"](ce(Ae,"CONST_NAME_REGEXP")))||ge.$raise(ce("NameError").$new("wrong constant name "+S,S));var De,rt=[Q],ft,_t;for(A&&(rt=rt.concat(e.ancestors(Q)),Q.$$is_module&&(rt=rt.concat([i]).concat(e.ancestors(i)))),ft=0,_t=rt.length;ft<_t;ft++)if(De=rt[ft],De.$$const[S]!=null||De.$$autoload&&De.$$autoload[S]&&!De.$$autoload[S].required&&!De.$$autoload[S].success)return!0;return!1},-2),ne(l,"$const_get",function(S,A){var Q=this;return A==null&&(A=!0),S=d("Opal")["$const_name!"](S),S.indexOf("::")===0&&S!=="::"&&(S=S.slice(2)),t(S.indexOf("::")!=-1&&S!="::")?xe(S.$split("::"),"inject",[Q],function(rt,ft){return rt==null&&(rt=Me),ft==null&&(ft=Me),rt.$const_get(ft)}):(t(S["$=~"](ce(Ae,"CONST_NAME_REGEXP")))||ge.$raise(ce("NameError").$new("wrong constant name "+S,S)),A?e.$$([Q],S):e.const_get_local(Q,S))},-2),ne(l,"$const_missing",function(S){var A=this,Q=Me;return Q=Ee(A,i)?S:""+A+"::"+S,ge.$raise(ce("NameError").$new("uninitialized constant "+Q,S))}),ne(l,"$const_set",function(S,A){var Q=this;return p(Q),S=Ae["$const_name!"](S),(t(S["$!~"](ce(Ae,"CONST_NAME_REGEXP")))||t(S["$start_with?"]("::")))&&ge.$raise(ce("NameError").$new("wrong constant name "+S,S)),n(Q,S,A),A}),ne(l,"$public_constant",O(Me)),ne(l,"$define_method",function _(S,A){var Q=_.$$p||Me,De=this,rt=Me,ft=Me;return _.$$p=null,p(De),A===void 0&&Q===Me&&ge.$raise(ce("ArgumentError"),"tried to create a Proc object without a block"),Q=t(rt=Q)?rt:W(ce("Proc"),ft=A)?A:W(ce("Method"),ft)?A.$to_proc().$$unbound:W(ce("UnboundMethod"),ft)?le(function _t(At){var bt,Mt,Et=_t.$$s==null?this:_t.$$s,qt=Me;return bt=J(arguments),Mt=bt,qt=A.$bind(Et),xe(qt,"call",be(Mt))},{$$arity:-1,$$s:De}):ge.$raise(ce("TypeError"),"wrong argument type "+Q.$class()+" (expected Proc/Method)"),typeof Proxy<"u"&&(Q.$$proxy_target=Q,Q=new Proxy(Q,{apply:function(_t,At,bt){var Mt=_t.$$jsid;_t.$$jsid=S;try{return _t.apply(At,bt)}catch(Et){if(Et===_t.$$brk||Et===_t.$$ret)return Et.$v;throw Et}finally{_t.$$jsid=Mt}}})),Q.$$jsid=S,Q.$$s=null,Q.$$def=Q,Q.$$define_meth=!0,e.defn(De,F(S),Q)},-2),ne(l,"$freeze",function(){var S=this;return t(S["$frozen?"]())?S:(S.hasOwnProperty("$$base_module")||I(S,"$$base_module",null),h(S))}),ne(l,"$remove_method",function(S){var A,Q,De=this;A=J(arguments),Q=A;for(var rt=0;rt<Q.length;rt++){var ft=Q[rt];typeof ft=="string"||ft.$$is_string||De.$raise(ce("TypeError"),""+De.$name()+" is not a symbol nor a string"),p(De),e.rdef(De,"$"+ft)}return De},-1),ne(l,"$singleton_class?",function(){var S=this;return!!S.$$is_singleton}),ne(l,"$include",function(S){var A,Q,De=this;A=J(arguments),Q=A;for(var rt=Q.length-1;rt>=0;rt--){var ft=Q[rt];ft.$$is_module||ge.$raise(ce("TypeError"),"wrong argument type "+ft.$class()+" (expected Module)"),ft.$append_features(De),ft.$included(De)}return De},-1),ne(l,"$included_modules",function(){var S=this;return e.included_modules(S)}),ne(l,"$include?",function(S){var A=this;S.$$is_module||ge.$raise(ce("TypeError"),"wrong argument type "+S.$class()+" (expected Module)");var Q,De,rt,ft=e.ancestors(A);for(Q=0,De=ft.length;Q<De;Q++)if(rt=ft[Q],rt===S&&rt!==A)return!0;return!1}),ne(l,"$instance_method",function(S){var A=this,Q=A.$$prototype[F(S)];return(!Q||Q.$$stub)&&ge.$raise(ce("NameError").$new("undefined method `"+S+"' for class `"+A.$name()+"'",S)),ce("UnboundMethod").$new(A,Q.$$owner||A,Q,S)}),ne(l,"$instance_methods",function(S){var A=this;return S==null&&(S=!0),t(S)?e.instance_methods(A):e.own_instance_methods(A)},-1),ne(l,"$included",O(Me)),ne(l,"$extended",O(Me)),ne(l,"$extend_object",function(S){return p(S),Me}),ne(l,"$method_added",function(S){return J(arguments),Me},-1),ne(l,"$method_removed",function(S){return J(arguments),Me},-1),ne(l,"$method_undefined",function(S){return J(arguments),Me},-1),ne(l,"$module_eval",function _(S){var A=_.$$p||Me,Q,De,rt,ft=this,_t=Me,At=Me,bt=Me,Mt=Me,Et=Me,qt=Me;_.$$p=null,Q=J(arguments),De=Q,t(A["$nil?"]())&&t(!!e.compile)?(t(w(1,3,!1)["$cover?"](De.$size()))||ge.$raise(ce("ArgumentError"),"wrong number of arguments (0 for 1..3)"),rt=[].concat(be(De)),_t=rt[0]==null?Me:rt[0],At=rt[1]==null?Me:rt[1],rt[2]==null||rt[2],bt=fe(["file","eval"],{file:t(Mt=At)?Mt:"(eval)",eval:!0}),Et=e.hash({arity_check:!1}).$merge(bt),qt=Ae.$compile(_t,Et),A=xe(ge,"proc",[],function Re(){var Pe=Re.$$s==null?this:Re.$$s;return new Function("Opal,self","return "+qt)(e,Pe)},{$$s:ft})):t(De["$any?"]())&&ge.$raise(ce("ArgumentError"),"wrong number of arguments ("+De.$size()+` for 0)
|
|
384
|
-
|
|
385
|
-
NOTE:If you want to enable passing a String argument please add "require 'opal-parser'" to your script
|
|
386
|
-
`);var It=A.$$s,nt;return A.$$s=null,nt=A.apply(ft,[ft]),A.$$s=It,nt},-1),ne(l,"$module_exec",function _(S){var A=_.$$p||Me,Q,De,rt=this;_.$$p=null,Q=J(arguments),De=Q,A===Me&&ge.$raise(ce("LocalJumpError"),"no block given");var ft=A.$$s,_t;return A.$$s=null,_t=A.apply(rt,De),A.$$s=ft,_t},-1),ne(l,"$method_defined?",function(S){var A=this,Q=A.$$prototype[F(S)];return!!Q&&!Q.$$stub}),ne(l,"$module_function",function(S){var A,Q,De=this;if(A=J(arguments),Q=A,p(De),Q.length===0)return De.$$module_function=!0,Me;for(var rt=0,ft=Q.length;rt<ft;rt++){var _t=Q[rt],At=F(_t),bt=De.$$prototype[At];e.defs(De,At,bt)}return Q.length===1?Q[0]:Q},-1),ne(l,"$name",function(){var S=this;if(S.$$full_name)return S.$$full_name;for(var A=[],Q=S;Q;){if(Q.$$name===Me||Q.$$name==null)return Me;if(A.unshift(Q.$$name),Q=Q.$$base_module,Q===i)break}return A.length===0?Me:S.$$full_name=A.join("::")}),ne(l,"$prepend",function(S){var A,Q,De=this;A=J(arguments),Q=A,Q.length===0&&ge.$raise(ce("ArgumentError"),"wrong number of arguments (given 0, expected 1+)");for(var rt=Q.length-1;rt>=0;rt--){var ft=Q[rt];ft.$$is_module||ge.$raise(ce("TypeError"),"wrong argument type "+ft.$class()+" (expected Module)"),ft.$prepend_features(De),ft.$prepended(De)}return De},-1),ne(l,"$prepend_features",function(S){var A=this;return p(S),A.$$is_module||ge.$raise(ce("TypeError"),"wrong argument type "+A.$class()+" (expected Module)"),e.prepend_features(A,S),A}),ne(l,"$prepended",O(Me)),ne(l,"$remove_const",function(S){var A=this;return p(A),e.const_remove(A,S)}),ne(l,"$to_s",function(){var S=this,A=Me;return t(A=e.Module.$name.call(S))?A:"#<"+(S.$$is_module?"Module":"Class")+":0x"+S.$__id__().$to_s(16)+">"}),ne(l,"$undef_method",function(S){var A,Q,De=this;A=J(arguments),Q=A;for(var rt=0;rt<Q.length;rt++){var ft=Q[rt];typeof ft=="string"||ft.$$is_string||De.$raise(ce("TypeError"),""+De.$name()+" is not a symbol nor a string"),p(De),e.udef(De,"$"+Q[rt])}return De},-1),ne(l,"$instance_variables",function(){var S=this,A=Me;A=(e.Module.$$nesting=u,S.$constants());var Q=[];for(var De in S)S.hasOwnProperty(De)&&De.charAt(0)!=="$"&&De!=="constructor"&&!A["$include?"](De)&&Q.push("@"+De);return Q}),ne(l,"$dup",function _(){var S=_.$$p||Me,A=this,Q=Me;return _.$$p=null,Q=Se(A,N(A,"dup",_,!1,!0),"dup",[],S),Q.$copy_class_variables(A),Q.$copy_constants(A),Q}),ne(l,"$copy_class_variables",function(S){var A=this;for(var Q in S.$$cvars)A.$$cvars[Q]=S.$$cvars[Q]}),ne(l,"$copy_constants",function(S){var A=this,Q,De=S.$$const;for(Q in De)n(A,Q,De[Q])}),ne(l,"$refine",function _(S){var A=_.$$p||Me,Q,De=this,rt=Me,ft=Me,_t=Me;return _.$$p=null,Q=[De,Me,Me],rt=Q[0],ft=Q[1],_t=Q[2],_t=e.id(S),typeof De.$$refine_modules>"u"&&(De.$$refine_modules=Object.create(null)),typeof De.$$refine_modules[_t]>"u"?ft=De.$$refine_modules[_t]=ce("Refinement").$new():ft=De.$$refine_modules[_t],ft.refinement_module=rt,ft.refined_class=S,xe(ft,"class_exec",[],A.$to_proc()),ft}),ne(l,"$refinements",function(){var S=this,A=S.$$refine_modules,Q=fe([],{});if(typeof A>"u")return Q;for(var De in A)Q["$[]="](A[De].refined_class,A[De]);return Q}),ne(l,"$using",function(S){return ge.$raise("Module#using is not permitted in methods")}),re(l,"class_eval","module_eval"),re(l,"class_exec","module_exec"),re(l,"inspect","to_s")}("::",null,P),function(M,x){var $=H(M,x,"Refinement"),l=$.$$prototype;return l.refinement_module=l.refined_class=Me,$.$attr_reader("refined_class"),ne($,"$inspect",function u(){var d=u.$$p||Me,_=this;return u.$$p=null,t(_.refinement_module)?"#<refinement:"+_.refined_class.$inspect()+"@"+_.refinement_module.$inspect()+">":Se(_,N(_,"inspect",u,!1,!0),"inspect",[],d)})}("::",X)};Opal.modules["corelib/class"]=function(e){var t=e.klass,r=e.send,n=e.defs,i=e.def,s=e.rb_plus,c=e.return_val,f=e.slice,p=e.send2,h=e.find_super,I=e.Kernel,F=e.alias,H=e.top,pe=[],xe=e.nil,ne=e.$$$;return e.add_stubs("require,class_eval,to_proc,+,subclasses,flatten,map,initialize_copy,allocate,name,to_s,raise"),H.$require("corelib/module"),function(W,X,ge){var se=t(W,X,"Class"),me=[se].concat(ge),J=e.$r(me);return n(se,"$new",function be(fe){var Ae=be.$$p||xe;if(be.$$p=null,fe==null&&(fe=J("Object")),!fe.$$is_class)throw e.TypeError.$new("superclass must be a Class");var O=e.allocate_class(xe,fe);return fe.$inherited(O),Ae!==xe&&r(O,"class_eval",[],Ae.$to_proc()),O},-1),i(se,"$allocate",function(){var fe=this,Ae=new fe.$$constructor;return Ae.$$id=e.uid(),Ae}),i(se,"$descendants",function(){var fe=this;return s(fe.$subclasses(),r(fe.$subclasses(),"map",[],"descendants".$to_proc()).$flatten())}),i(se,"$inherited",c(xe)),i(se,"$initialize_dup",function(fe){var Ae=this;Ae.$initialize_copy(fe),Ae.$$name=null,Ae.$$full_name=null}),i(se,"$new",function be(fe){var Ae=be.$$p||xe,O,Ee,le=this;be.$$p=null,O=f(arguments),Ee=O;var w=le.$allocate();return e.send(w,w.$initialize,Ee,Ae),w},-1),i(se,"$subclasses",function(){var fe=this;if(typeof WeakRef<"u"){var Ae,O,Ee=[];for(Ae=0;Ae<fe.$$subclasses.length;Ae++)O=fe.$$subclasses[Ae].deref(),O!==void 0&&Ee.push(O);return Ee}else return fe.$$subclasses}),i(se,"$superclass",function(){var fe=this;return fe.$$super||xe}),i(se,"$to_s",function be(){be.$$p;var fe=this;be.$$p=null;var Ae=fe.$$singleton_of;return Ae&&Ae.$$is_a_module?"#<Class:"+Ae.$name()+">":Ae?"#<Class:#<"+Ae.$$class.$name()+":0x"+e.id(Ae).$to_s(16)+">>":p(fe,h(fe,"to_s",be,!1,!0),"to_s",[],null)}),i(se,"$attached_object",function(){var fe=this;if(fe.$$singleton_of!=null)return fe.$$singleton_of;I.$raise(ne("TypeError"),"`"+fe+"' is not a singleton class")}),F(se,"inspect","to_s")}("::",null,pe)};Opal.modules["corelib/basic_object"]=function(e){var t=e.klass,r=e.slice,n=e.def,i=e.alias,s=e.return_val,c=e.Opal,f=e.truthy,p=e.range,h=e.Kernel,I=e.to_a,F=e.hash2,H=e.send,pe=e.eqeq,xe=e.rb_ge,ne=e.nil,W=e.$$$;return e.add_stubs("==,raise,inspect,pristine,!,nil?,cover?,size,merge,compile,proc,[],first,>=,length,instance_variable_get,any?,new,caller"),function(X,ge){var se=t(X,ge,"BasicObject");return n(se,"$initialize",function(J){return r(arguments),ne},-1),n(se,"$==",function(J){var be=this;return be===J}),n(se,"$eql?",function(J){var be=this;return be["$=="](J)}),i(se,"equal?","=="),n(se,"$__id__",function(){var J=this;return J.$$id!=null||e.prop(J,"$$id",e.uid()),J.$$id}),n(se,"$__send__",function me(J,be){var fe=me.$$p||ne,Ae,O,Ee=this;me.$$p=null,Ae=r(arguments,1),O=Ae,J.$$is_string||Ee.$raise(W("TypeError"),""+Ee.$inspect()+" is not a symbol nor a string");var le=Ee[e.jsid(J)];return le?(fe!==ne&&(le.$$p=fe),le.apply(Ee,O)):(fe!==ne&&(Ee.$method_missing.$$p=fe),Ee.$method_missing.apply(Ee,[J].concat(O)))},-2),n(se,"$!",s(!1)),c.$pristine("!"),n(se,"$!=",function(J){var be=this;return be["$=="](J)["$!"]()}),n(se,"$instance_eval",function me(J){var be=me.$$p||ne,fe,Ae,O,Ee=this,le=ne,w=ne,Se=ne,N=ne,re=ne,P=ne;if(me.$$p=null,fe=r(arguments),Ae=fe,f(be["$nil?"]())&&f(!!e.compile))f(p(1,3,!1)["$cover?"](Ae.$size()))||h.$raise(W("ArgumentError"),"wrong number of arguments (0 for 1..3)"),O=[].concat(I(Ae)),le=O[0]==null?ne:O[0],w=O[1]==null?ne:O[1],O[2]==null||O[2],Se=F(["file","eval"],{file:f(N=w)?N:"(eval)",eval:!0}),re=e.hash({arity_check:!1}).$merge(Se),P=c.$compile(le,re),be=H(h,"proc",[],function M(){var x=M.$$s==null?this:M.$$s;return new Function("Opal,self","return "+P)(e,x)},{$$s:Ee});else{if(f(be["$nil?"]())&&f(xe(Ae.$length(),1))&&pe(Ae.$first()["$[]"](0),"@"))return Ee.$instance_variable_get(Ae.$first());f(Ae["$any?"]())&&h.$raise(W("ArgumentError"),"wrong number of arguments ("+Ae.$size()+" for 0)")}var Me=be.$$s,ce;if(be.$$s=null,Ee.$$is_a_module){Ee.$$eval=!0;try{ce=be.call(Ee,Ee)}finally{Ee.$$eval=!1}}else ce=be.call(Ee,Ee);return be.$$s=Me,ce},-1),n(se,"$instance_exec",function me(J){var be=me.$$p||ne,fe,Ae,O=this;me.$$p=null,fe=r(arguments),Ae=fe,f(be)||h.$raise(W("ArgumentError"),"no block given");var Ee=be.$$s,le;if(be.$$s=null,O.$$is_a_module){O.$$eval=!0;try{le=be.apply(O,Ae)}finally{O.$$eval=!1}}else le=be.apply(O,Ae);return be.$$s=Ee,le},-1),n(se,"$singleton_method_added",function(J){return r(arguments),ne},-1),n(se,"$singleton_method_removed",function(J){return r(arguments),ne},-1),n(se,"$singleton_method_undefined",function(J){return r(arguments),ne},-1),n(se,"$method_missing",function me(J,be){me.$$p;var fe,Ae,O=this,Ee=ne;return me.$$p=null,fe=r(arguments,1),Ae=fe,Ee=c.$inspect(O),h.$raise(W("NoMethodError").$new("undefined method `"+J+"' for "+Ee,J,Ae),ne,h.$caller(1))},-2),c.$pristine(se,"method_missing"),n(se,"$respond_to_missing?",function(J,be){return!1},-2)}("::",null)};Opal.modules["corelib/kernel"]=function(e){var t=e.truthy,r=e.coerce_to,n=e.respond_to,i=e.Opal,s=e.deny_frozen_access,c=e.freeze,f=e.freeze_props,p=e.jsid,h=e.module,I=e.return_val,F=e.def,H=e.Kernel,pe=e.gvars,xe=e.slice,ne=e.send,W=e.to_a,X=e.ensure_kwargs,ge=e.eqeq,se=e.hash2,me=e.rb_plus,J=e.eqeqeq,be=e.return_self,fe=e.rb_le,Ae=e.extract_kwargs,O=e.rb_lt,Ee=e.Object,le=e.alias,w=e.klass,Se=[],N=e.nil,re=e.$$$;return e.add_stubs("!,=~,==,object_id,raise,new,class,coerce_to?,<<,map,caller,nil?,allocate,copy_instance_variables,copy_singleton_methods,initialize_clone,frozen?,freeze,initialize_copy,define_method,singleton_class,to_proc,initialize_dup,for,empty?,pop,call,append_features,extend_object,extended,gets,__id__,include?,each,instance_variables,instance_variable_get,inspect,+,to_s,instance_variable_name!,respond_to?,to_int,coerce_to!,Integer,===,enum_for,result,any?,print,format,puts,<=,length,[],readline,<,first,split,to_str,exception,backtrace,rand,respond_to_missing?,pristine,try_convert!,expand_path,join,start_with?,new_seed,srand,tag,value,open,is_a?,__send__,yield_self,include"),function(P,Me){var ce=h(P,"Kernel"),M=[ce].concat(Me),x=e.$r(M);F(ce,"$=~",I(!1)),F(ce,"$!~",function(u){var d=this;return d["$=~"](u)["$!"]()}),F(ce,"$===",function(u){var d=this,_=N;return t(_=d.$object_id()["$=="](u.$object_id()))?_:d["$=="](u)}),F(ce,"$<=>",function(u){var d=this;d.$$comparable=!0;var _=d["$=="](u);return _&&_!==N?0:N}),F(ce,"$method",function(u){var d=this,_=d[p(u)];return(!_||_.$$stub)&&H.$raise(re("NameError").$new("undefined method `"+u+"' for class `"+d.$class()+"'",u)),re("Method").$new(d,_.$$owner||d.$class(),_,u)}),F(ce,"$methods",function(u){var d=this;return u==null&&(u=!0),t(u)?e.methods(d):e.own_methods(d)},-1),F(ce,"$public_methods",function(u){var d=this;return u==null&&(u=!0),t(u)?e.methods(d):e.receiver_methods(d)},-1),F(ce,"$Array",function(u){var d;return u===N?[]:u.$$is_array?u:(d=i["$coerce_to?"](u,re("Array"),"to_ary"),d!==N||(d=i["$coerce_to?"](u,re("Array"),"to_a"),d!==N)?d:[u])}),F(ce,"$at_exit",function l(){var u=l.$$p||N,d=N;return pe.__at_exit__==null&&(pe.__at_exit__=N),l.$$p=null,pe.__at_exit__=t(d=pe.__at_exit__)?d:[],pe.__at_exit__["$<<"](u),u}),F(ce,"$caller",function(u,d){u==null&&(u=1),d==null&&(d=N);var _,S;_=new Error().$backtrace(),S=[];for(var A=u+1,Q=_.length;A<Q;A++)_[A].match(/runtime\.js/)||S.push(_[A]);return d!=N&&(S=S.slice(0,d)),S},-1),F(ce,"$caller_locations",function(u){var d,_,S=this;return d=xe(arguments),_=d,ne(ne(S,"caller",W(_)),"map",[],function(Q){return Q==null&&(Q=N),re(re(re("Thread"),"Backtrace"),"Location").$new(Q)})},-1),F(ce,"$class",function(){var u=this;return u.$$class}),F(ce,"$copy_instance_variables",function(u){var d=this,_=Object.keys(u),S,A,Q;for(S=0,A=_.length;S<A;S++)Q=_[S],Q.charAt(0)!=="$"&&u.hasOwnProperty(Q)&&(d[Q]=u[Q])}),F(ce,"$copy_singleton_methods",function(u){var d=this,_,S,A,Q;if(u.hasOwnProperty("$$meta")&&u.$$meta!==null){var De=e.get_singleton_class(u),rt=e.get_singleton_class(d);for(A=Object.getOwnPropertyNames(De.$$prototype),_=0,Q=A.length;_<Q;_++)S=A[_],e.is_method(S)&&(rt.$$prototype[S]=De.$$prototype[S]);rt.$$const=Object.assign({},De.$$const),Object.setPrototypeOf(rt.$$prototype,Object.getPrototypeOf(De.$$prototype))}for(_=0,A=Object.getOwnPropertyNames(u),Q=A.length;_<Q;_++)S=A[_],S.charAt(0)==="$"&&S.charAt(1)!=="$"&&u.hasOwnProperty(S)&&(d[S]=u[S])}),F(ce,"$clone",function(u){var d,_=this,S=N;return u=X(u),d=u.$$smap.freeze,d==null&&(d=N),t(d["$nil?"]())||ge(d,!0)||ge(d,!1)||_.$raise(x("ArgumentError"),"unexpected value for freeze: "+d.$class()),S=_.$class().$allocate(),S.$copy_instance_variables(_),S.$copy_singleton_methods(_),S.$initialize_clone(_,se(["freeze"],{freeze:d})),(ge(d,!0)||t(d["$nil?"]())&&t(_["$frozen?"]()))&&S.$freeze(),S},-1),F(ce,"$initialize_clone",function(u,d){var _=this;return d=X(d),d.$$smap.freeze,_.$initialize_copy(u),_},-2),F(ce,"$define_singleton_method",function l(u,d){var _=l.$$p||N,S=this;return l.$$p=null,ne(S.$singleton_class(),"define_method",[u,d],_.$to_proc())},-2),F(ce,"$dup",function(){var u=this,d=N;return d=u.$class().$allocate(),d.$copy_instance_variables(u),d.$initialize_dup(u),d}),F(ce,"$initialize_dup",function(u){var d=this;return d.$initialize_copy(u)}),F(ce,"$enum_for",function l(u,d){var _=l.$$p||N,S,A,Q,De=this;return l.$$p=null,S=xe(arguments),S.length>0&&(A=S.shift()),A==null&&(A="each"),Q=S,ne(re("Enumerator"),"for",[De,A].concat(W(Q)),_.$to_proc())},-1),F(ce,"$equal?",function(u){var d=this;return d===u}),F(ce,"$exit",function(u){var d=N,_=N;for(pe.__at_exit__==null&&(pe.__at_exit__=N),u==null&&(u=!0),pe.__at_exit__=t(d=pe.__at_exit__)?d:[];!t(pe.__at_exit__["$empty?"]());)_=pe.__at_exit__.$pop(),_.$call();return u.$$is_boolean?u=u?0:1:u=r(u,re("Integer"),"to_int"),e.exit(u),N},-1),F(ce,"$extend",function(u){var d,_,S=this;d=xe(arguments),_=d,_.length==0&&S.$raise(re("ArgumentError"),"wrong number of arguments (given 0, expected 1+)"),s(S);for(var A=S.$singleton_class(),Q=_.length-1;Q>=0;Q--){var De=_[Q];De.$$is_module||H.$raise(re("TypeError"),"wrong argument type "+De.$class()+" (expected Module)"),De.$append_features(A),De.$extend_object(S),De.$extended(S)}return S},-1),F(ce,"$freeze",function(){var u=this;return t(u["$frozen?"]())?u:typeof u=="object"?(f(u),c(u)):u}),F(ce,"$frozen?",function(){var u=this;switch(typeof u){case"string":case"symbol":case"number":case"boolean":return!0;case"object":return u.$$frozen||!1;default:return!1}}),F(ce,"$gets",function(u){var d,_;return pe.stdin==null&&(pe.stdin=N),d=xe(arguments),_=d,ne(pe.stdin,"gets",W(_))},-1),F(ce,"$hash",function(){var u=this;return u.$__id__()}),F(ce,"$initialize_copy",I(N));var $=[];return F(ce,"$inspect",function(){var u=this,d=N,_=N,S=N,A=N;return function(){try{try{return d="",_=u.$__id__(),t($["$include?"](_))?d=" ...":($["$<<"](_),S=!0,ne(u.$instance_variables(),"each",[],function Q(De){var rt=Q.$$s==null?this:Q.$$s,ft=N,_t=N;return De==null&&(De=N),ft=rt.$instance_variable_get(De),_t=x("Opal").$inspect(ft),d=me(d," "+De+"="+_t)},{$$s:u})),"#<"+u.$class()+":0x"+_.$to_s(16)+d+">"}catch(Q){if(e.rescue(Q,[x("StandardError")])){A=Q;try{return"#<"+u.$class()+":0x"+_.$to_s(16)+">"}finally{e.pop_exception()}}else throw Q}}finally{t(S)&&$.$pop()}}()}),F(ce,"$instance_of?",function(u){var d=this;return!u.$$is_class&&!u.$$is_module&&H.$raise(re("TypeError"),"class or module required"),d.$$class===u}),F(ce,"$instance_variable_defined?",function(u){var d=this;return u=i["$instance_variable_name!"](u),e.hasOwnProperty.call(d,u.substr(1))}),F(ce,"$instance_variable_get",function(u){var d=this;u=i["$instance_variable_name!"](u);var _=d[e.ivar(u.substr(1))];return _??N}),F(ce,"$instance_variable_set",function(u,d){var _=this;return s(_),u=i["$instance_variable_name!"](u),_[e.ivar(u.substr(1))]=d}),F(ce,"$remove_instance_variable",function(u){var d=this;u=i["$instance_variable_name!"](u);var _=e.ivar(u.substr(1)),S;return d.hasOwnProperty(_)?(S=d[_],delete d[_],S):H.$raise(re("NameError"),"instance variable "+u+" not defined")}),F(ce,"$instance_variables",function(){var u=this,d=[],_;for(var S in u)u.hasOwnProperty(S)&&S.charAt(0)!=="$"&&(S.substr(-1)==="$"?_=S.slice(0,S.length-1):_=S,d.push("@"+_));return d}),F(ce,"$Integer",function(u,d){var _,S,A;return u.$$is_string?u==="0"?0:(d===void 0?d=0:(d=r(d,re("Integer"),"to_int"),(d===1||d<0||d>36)&&H.$raise(re("ArgumentError"),"invalid radix "+d)),S=u.toLowerCase(),S=S.replace(/(\d)_(?=\d)/g,"$1"),S=S.replace(/^(\s*[+-]?)(0[bodx]?)/,function(Q,De,rt){switch(rt){case"0b":if(d===0||d===2)return d=2,De;case"0":case"0o":if(d===0||d===8)return d=8,De;case"0d":if(d===0||d===10)return d=10,De;case"0x":if(d===0||d===16)return d=16,De}H.$raise(re("ArgumentError"),'invalid value for Integer(): "'+u+'"')}),d=d===0?10:d,A="0-"+(d<=10?d-1:"9a-"+String.fromCharCode(97+(d-11))),new RegExp("^\\s*[+-]?["+A+"]+\\s*$").test(S)||H.$raise(re("ArgumentError"),'invalid value for Integer(): "'+u+'"'),_=parseInt(S,d),isNaN(_)&&H.$raise(re("ArgumentError"),'invalid value for Integer(): "'+u+'"'),_):(d!==void 0&&H.$raise(re("ArgumentError"),"base specified for non string value"),u===N&&H.$raise(re("TypeError"),"can't convert nil into Integer"),u.$$is_number?((u===1/0||u===-1/0||isNaN(u))&&H.$raise(re("FloatDomainError"),u),Math.floor(u)):u["$respond_to?"]("to_int")&&(_=u.$to_int(),_!==N)?_:i["$coerce_to!"](u,re("Integer"),"to_i"))},-2),F(ce,"$Float",function(u){var d;return u===N&&H.$raise(re("TypeError"),"can't convert nil into Float"),u.$$is_string?(d=u.toString(),d=d.replace(/(\d)_(?=\d)/g,"$1"),/^\s*[-+]?0[xX][0-9a-fA-F]+\s*$/.test(d)?H.$Integer(d):(/^\s*[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s*$/.test(d)||H.$raise(re("ArgumentError"),'invalid value for Float(): "'+u+'"'),parseFloat(d))):i["$coerce_to!"](u,re("Float"),"to_f")}),F(ce,"$Hash",function(u){return t(u["$nil?"]())||ge(u,[])?se([],{}):J(re("Hash"),u)?u:i["$coerce_to!"](u,re("Hash"),"to_hash")}),F(ce,"$is_a?",function(u){var d=this;return!u.$$is_class&&!u.$$is_module&&H.$raise(re("TypeError"),"class or module required"),e.is_a(d,u)}),F(ce,"$itself",be),F(ce,"$lambda",function l(){var u=l.$$p||N;return l.$$p=null,e.lambda(u)}),F(ce,"$load",function(u){return u=i["$coerce_to!"](u,re("String"),"to_str"),e.load(u)}),F(ce,"$loop",function l(){var u=l.$$p||N,d=this,_=N;if(l.$$p=null,u===N)return ne(d,"enum_for",["loop"],function(){return re(re("Float"),"INFINITY")});for(;t(!0);)try{e.yieldX(u,[])}catch(S){if(e.rescue(S,[re("StopIteration")])){_=S;try{return _.$result()}finally{e.pop_exception()}}else throw S}return d}),F(ce,"$nil?",I(!1)),F(ce,"$printf",function(u){var d,_,S=this;return d=xe(arguments),_=d,t(_["$any?"]())&&S.$print(ne(S,"format",W(_))),N},-1),F(ce,"$proc",function l(){var u=l.$$p||N;return l.$$p=null,t(u)||H.$raise(re("ArgumentError"),"tried to create Proc object without a block"),u.$$is_lambda=!1,u}),F(ce,"$puts",function(u){var d,_;return pe.stdout==null&&(pe.stdout=N),d=xe(arguments),_=d,ne(pe.stdout,"puts",W(_))},-1),F(ce,"$p",function(u){var d,_;return d=xe(arguments),_=d,ne(_,"each",[],function(A){return pe.stdout==null&&(pe.stdout=N),A==null&&(A=N),pe.stdout.$puts(A.$inspect())}),t(fe(_.$length(),1))?_["$[]"](0):_},-1),F(ce,"$print",function(u){var d,_;return pe.stdout==null&&(pe.stdout=N),d=xe(arguments),_=d,ne(pe.stdout,"print",W(_))},-1),F(ce,"$readline",function(u){var d,_;return pe.stdin==null&&(pe.stdin=N),d=xe(arguments),_=d,ne(pe.stdin,"readline",W(_))},-1),F(ce,"$warn",function(u,d){var _,S,A,Q,De,rt,ft=this,_t=N;return pe.VERBOSE==null&&(pe.VERBOSE=N),pe.stderr==null&&(pe.stderr=N),_=xe(arguments),S=Ae(_),S=X(S),A=_,Q=S.$$smap.uplevel,Q==null&&(Q=N),t(Q)&&(Q=i["$coerce_to!"](Q,re("Integer"),"to_str"),t(O(Q,0))&&H.$raise(re("ArgumentError"),"negative level ("+Q+")"),_t=(De=(rt=ft.$caller(me(Q,1),1).$first(),rt===N||rt==null?N:rt.$split(":in `")),De===N||De==null?N:De.$first()),t(_t)&&(_t=""+_t+": "),A=ne(A,"map",[],function(bt){return bt==null&&(bt=N),""+_t+"warning: "+bt})),t(pe.VERBOSE["$nil?"]())||t(A["$empty?"]())?N:ne(pe.stderr,"puts",W(A))},-1),F(ce,"$raise",function(u,d,_){throw pe["!"]==null&&(pe["!"]=N),pe["@"]==null&&(pe["@"]=N),d==null&&(d=N),_==null&&(_=N),u==null&&pe["!"]!==N?pe["!"]:(u==null?u=re("RuntimeError").$new(""):n(u,"$to_str")?u=re("RuntimeError").$new(u.$to_str()):u.$$is_class&&n(u,"$exception")?u=u.$exception(d):u.$$is_exception||(u=re("TypeError").$new("exception class/object expected")),_!==N&&u.$set_backtrace(_),pe["!"]!==N&&e.exceptions.push(pe["!"]),pe["!"]=u,pe["@"]=u.$backtrace(),u)},-1),F(ce,"$rand",function(u){return u===void 0?re(re("Random"),"DEFAULT").$rand():(u.$$is_number&&(u<0&&(u=Math.abs(u)),u%1!==0&&(u=u.$to_i()),u===0&&(u=void 0)),re(re("Random"),"DEFAULT").$rand(u))},-1),F(ce,"$respond_to?",function(u,d){var _=this;d==null&&(d=!1);var S=_[p(u)];return typeof S=="function"&&!S.$$stub?!0:_["$respond_to_missing?"].$$pristine===!0?!1:_["$respond_to_missing?"](u,d)},-2),F(ce,"$respond_to_missing?",function(u,d){return!1},-2),i.$pristine(ce,"respond_to?","respond_to_missing?"),F(ce,"$require",function(u){return typeof u!="string"&&e.String&&e.Array&&(u=i["$coerce_to!"](u,re("String"),"to_str")),e.require(u)}),F(ce,"$require_relative",function(u){return i["$try_convert!"](u,re("String"),"to_str"),u=re("File").$expand_path(re("File").$join(e.current_file,"..",u)),e.require(u)}),F(ce,"$require_tree",function(u,d){var _;d=X(d),_=d.$$smap.autoload,_==null&&(_=!1);var S=[];u=re("File").$expand_path(u),u=e.normalize(u),u==="."&&(u="");for(var A in e.modules)A["$start_with?"](u)&&(_?S.push([A,!0]):S.push([A,e.require(A)]));return S},-2),F(ce,"$singleton_class",function(){var u=this;return e.get_singleton_class(u)}),F(ce,"$sleep",function(u){u==null&&(u=N),u===N&&H.$raise(re("TypeError"),"can't convert NilClass into time interval"),u.$$is_number||H.$raise(re("TypeError"),"can't convert "+u.$class()+" into time interval"),u<0&&H.$raise(re("ArgumentError"),"time interval must be positive");for(var d=e.global.performance?function(){return performance.now()}:function(){return new Date},_=d();d()-_<=u*1e3;);return Math.round(u)},-1),F(ce,"$srand",function(u){return u==null&&(u=x("Random").$new_seed()),re("Random").$srand(u)},-1),F(ce,"$String",function(u){var d=N;return t(d=i["$coerce_to?"](u,re("String"),"to_str"))?d:i["$coerce_to!"](u,re("String"),"to_s")}),F(ce,"$tap",function l(){var u=l.$$p||N,d=this;return l.$$p=null,e.yield1(u,d),d}),F(ce,"$to_proc",be),F(ce,"$to_s",function(){var u=this;return"#<"+u.$class()+":0x"+u.$__id__().$to_s(16)+">"}),F(ce,"$catch",function l(u){var d=l.$$p||N,_=N,S=N;l.$$p=null,u==null&&(u=N);try{return u=t(_=u)?_:Ee.$new(),e.yield1(d,u)}catch(A){if(e.rescue(A,[re("UncaughtThrowError")])){S=A;try{return ge(S.$tag(),u)?S.$value():H.$raise()}finally{e.pop_exception()}}else throw A}},-1),F(ce,"$throw",function(u,d){return d==null&&(d=N),H.$raise(re("UncaughtThrowError").$new(u,d))},-2),F(ce,"$open",function l(u){var d=l.$$p||N,_,S;return l.$$p=null,_=xe(arguments),S=_,ne(re("File"),"open",W(S),d.$to_proc())},-1),F(ce,"$yield_self",function l(){var u=l.$$p||N,d=this;return l.$$p=null,u===N?ne(d,"enum_for",["yield_self"],I(1)):e.yield1(u,d)}),le(ce,"fail","raise"),le(ce,"kind_of?","is_a?"),le(ce,"object_id","__id__"),le(ce,"public_send","__send__"),le(ce,"send","__send__"),le(ce,"then","yield_self"),le(ce,"to_enum","enum_for")}("::",Se),function(P,Me){var ce=w(P,Me,"Object");return delete Ee.$$prototype.$require,ce.$include(H)}("::",null)};Opal.modules["corelib/main"]=function(e){var t=e.return_val,r=e.def,n=e.Object,i=e.slice,s=e.Kernel,c=e.top;return e.nil,e.add_stubs("include,raise"),function(f,p){return r(f,"$to_s",t("main")),r(f,"$include",function(I){return n.$include(I)}),r(f,"$autoload",function(I){var F,H;return F=i(arguments),H=F,e.Object.$autoload.apply(e.Object,H)},-1),r(f,"$using",function(I){return s.$raise("main.using is permitted only at toplevel")})}(e.get_singleton_class(c))};Opal.modules["corelib/error/errno"]=function(e){var t=e.module,r=e.truthy,n=e.rb_plus,i=e.send2,s=e.find_super,c=e.def,f=e.klass,p=e.nil,h=e.$$$;return e.add_stubs("+,errno,class,attr_reader"),function(I,F){var H=t(I,"Errno"),pe=p,xe=p;pe=[["EINVAL","Invalid argument",22],["EEXIST","File exists",17],["EISDIR","Is a directory",21],["EMFILE","Too many open files",24],["ESPIPE","Illegal seek",29],["EACCES","Permission denied",13],["EPERM","Operation not permitted",1],["ENOENT","No such file or directory",2],["ENAMETOOLONG","File name too long",36]],xe=p;var ne;for(ne=0;ne<pe.length;ne++)(function(){var W=pe[ne][0],X=pe[ne][1],ge=pe[ne][2];xe=e.klass(H,e.SystemCallError,W),xe.errno=ge,function(se,me){return c(se,"$new",function J(be){J.$$p;var fe=this,Ae=p;return J.$$p=null,be==null&&(be=p),Ae=X,r(be)&&(Ae=n(Ae," - "+be)),i(fe,s(fe,"new",J,!1,!0),"new",[Ae],null)},-1)}(e.get_singleton_class(xe))})()}("::"),function(I,F,H){var pe=f(I,F,"SystemCallError");return c(pe,"$errno",function(){var ne=this;return ne.$class().$errno()}),function(xe,ne){return xe.$attr_reader("errno")}(e.get_singleton_class(pe))}("::",h("StandardError"))};Opal.modules["corelib/error"]=function(e){var t=e.klass,r=e.slice,n=e.gvars,i=e.defs,s=e.send,c=e.to_a,f=e.def,p=e.truthy,h=e.hash2,I=e.Kernel,F=e.not,H=e.rb_plus,pe=e.eqeq,xe=e.Object,ne=e.ensure_kwargs,W=e.send2,X=e.find_super,ge=e.module,se=[],me=e.nil,J=e.$$$;return e.add_stubs("new,map,backtrace,clone,to_s,merge,tty?,[],include?,raise,dup,empty?,!,caller,shift,+,class,join,cause,full_message,==,reverse,split,autoload,attr_reader,inspect"),function(be,fe,Ae){var O=t(be,fe,"Exception"),Ee=[O].concat(Ae),le=e.$r(Ee),w=O.$$prototype;w.message=me,e.prop(O.$$prototype,"$$is_exception",!0);var Se;Error.stackTraceLimit=100,i(O,"$new",function(P){var Me,ce,M=this;n["!"]==null&&(n["!"]=me),Me=r(arguments),ce=Me;var x=ce.length>0?ce[0]:me,$=new M.$$constructor(x);return $.name=M.$$name,$.message=x,$.cause=n["!"],e.send($,$.$initialize,ce),e.config.enable_stack_trace&&Error.captureStackTrace&&Error.captureStackTrace($,Se),$},-1),Se=O.$new,i(O,"$exception",function(P){var Me,ce,M=this;return Me=r(arguments),ce=Me,s(M,"new",c(ce))},-1),f(O,"$initialize",function(P){var Me,ce,M=this;return Me=r(arguments),ce=Me,M.message=ce.length>0?ce[0]:me},-1);function N(re){for(var P=[],Me,ce=0;ce<re.length;ce++){var M=re[ce];!M||!M.$$is_string||((Me=M.match(/^ at (.*?) \((.*?)\)$/))?P.push(Me[2]+":in `"+Me[1]+"'"):(Me=M.match(/^ at (.*?)$/))?P.push(Me[1]+":in `undefined'"):(Me=M.match(/^ from (.*?)$/))?P.push(Me[1]):(Me=M.match(/^(.*?)@(.*?)$/))&&P.push(Me[2]+":in `"+Me[1]+"'"))}return P}return f(O,"$backtrace",function(){var P=this;if(P.backtrace)return P.backtrace;var Me=P.stack;return typeof Me<"u"&&Me.$$is_string?P.backtrace=N(Me.split(`
|
|
387
|
-
`)):Me?P.backtrace=N(Me):[]}),f(O,"$backtrace_locations",function(){var P,Me=this;return Me.backtrace_locations||(Me.backtrace_locations=(P=Me.$backtrace(),P===me||P==null?me:s(P,"map",[],function(M){return M==null&&(M=me),J(J(J("Thread"),"Backtrace"),"Location").$new(M)}))),Me.backtrace_locations}),f(O,"$cause",function(){var P=this;return P.cause||me}),f(O,"$exception",function(P){var Me=this;if(P==null&&(P=me),P===me||Me===P)return Me;var ce=Me.$clone();return ce.message=P,Me.backtrace&&(ce.backtrace=Me.backtrace.$dup()),ce.stack=Me.stack,ce.cause=Me.cause,ce},-1),f(O,"$message",function(){var P=this;return P.$to_s()}),f(O,"$full_message",function(P){var Me,ce=this,M=me,x=me,$=me,l=me,u=me,d=me,_=me,S=me,A=me;return n.stderr==null&&(n.stderr=me),P==null&&(P=me),p(le("Hash","skip_raise")?"constant":me)?(P=h(["highlight","order"],{highlight:n.stderr["$tty?"](),order:"top"}).$merge(p(M=P)?M:h([],{})),Me=[P["$[]"]("highlight"),P["$[]"]("order")],x=Me[0],$=Me[1],p([!0,!1]["$include?"](x))||I.$raise(J("ArgumentError"),"expected true or false as highlight: "+x),p(["top","bottom"]["$include?"]($))||I.$raise(J("ArgumentError"),"expected :top or :bottom as order: "+$),p(x)?(l="\x1B[1;4m",u="\x1B[1m",d="\x1B[m"):l=u=d="",_=ce.$backtrace().$dup(),(F(_)||p(_["$empty?"]()))&&(_=ce.$caller()),S=_.$shift(),A=""+S+": ",A=H(A,""+u+ce.$to_s()+" ("+l+ce.$class()+d+u+")"+d+`
|
|
388
|
-
`),A=H(A,s(_,"map",[],function(De){return De==null&&(De=me)," from "+De+`
|
|
389
|
-
`}).$join()),p(ce.$cause())&&(A=H(A,ce.$cause().$full_message(h(["highlight"],{highlight:x})))),pe($,"bottom")&&(A=A.$split(`
|
|
390
|
-
`).$reverse().$join(`
|
|
391
|
-
`),A=H(""+u+"Traceback"+d+` (most recent call last):
|
|
392
|
-
`,A)),A):""+ce.message+`
|
|
393
|
-
`+ce.stack},-1),f(O,"$inspect",function(){var P=this,Me=me;return Me=P.$to_s(),p(Me["$empty?"]())?P.$class().$to_s():"#<"+P.$class().$to_s()+": "+P.$to_s()+">"}),f(O,"$set_backtrace",function(P){var Me=this,ce=!0,M,x;if(P===me)Me.backtrace=me,Me.stack="";else if(P.$$is_string)Me.backtrace=[P],Me.stack=" from "+P;else{if(P.$$is_array){for(M=0,x=P.length;M<x;M++)if(!P[M].$$is_string){ce=!1;break}}else ce=!1;ce===!1&&I.$raise(J("TypeError"),"backtrace must be Array of String"),Me.backtrace=P,Me.stack=s(P,"map",[],function(l){return l==null&&(l=me),H(" from ",l)}).join(`
|
|
394
|
-
`)}return P}),f(O,"$to_s",function(){var P=this,Me=me,ce=me;return p(Me=p(ce=P.message)?P.message.$to_s():ce)?Me:P.$class().$to_s()})}("::",Error,se),t("::",J("Exception"),"ScriptError"),t("::",J("ScriptError"),"SyntaxError"),t("::",J("ScriptError"),"LoadError"),t("::",J("ScriptError"),"NotImplementedError"),t("::",J("Exception"),"SystemExit"),t("::",J("Exception"),"NoMemoryError"),t("::",J("Exception"),"SignalException"),t("::",J("SignalException"),"Interrupt"),t("::",J("Exception"),"SecurityError"),t("::",J("Exception"),"SystemStackError"),t("::",J("Exception"),"StandardError"),t("::",J("StandardError"),"EncodingError"),t("::",J("StandardError"),"ZeroDivisionError"),t("::",J("StandardError"),"NameError"),t("::",J("NameError"),"NoMethodError"),t("::",J("StandardError"),"RuntimeError"),t("::",J("RuntimeError"),"FrozenError"),t("::",J("StandardError"),"LocalJumpError"),t("::",J("StandardError"),"TypeError"),t("::",J("StandardError"),"ArgumentError"),t("::",J("ArgumentError"),"UncaughtThrowError"),t("::",J("StandardError"),"IndexError"),t("::",J("IndexError"),"StopIteration"),t("::",J("StopIteration"),"ClosedQueueError"),t("::",J("IndexError"),"KeyError"),t("::",J("StandardError"),"RangeError"),t("::",J("RangeError"),"FloatDomainError"),t("::",J("StandardError"),"IOError"),t("::",J("IOError"),"EOFError"),t("::",J("StandardError"),"SystemCallError"),t("::",J("StandardError"),"RegexpError"),t("::",J("StandardError"),"ThreadError"),t("::",J("StandardError"),"FiberError"),xe.$autoload("Errno","corelib/error/errno"),function(be,fe){var Ae=t(be,fe,"FrozenError");return Ae.$attr_reader("receiver"),f(Ae,"$initialize",function O(Ee,le){var w;O.$$p;var Se=this;return O.$$p=null,le=ne(le),w=le.$$smap.receiver,w==null&&(w=me),W(Se,X(Se,"initialize",O,!1,!0),"initialize",[Ee],null),Se.receiver=w},-2)}("::",J("RuntimeError")),function(be,fe){var Ae=t(be,fe,"UncaughtThrowError"),O=Ae.$$prototype;return O.tag=me,Ae.$attr_reader("tag","value"),f(Ae,"$initialize",function Ee(le,w){Ee.$$p;var Se=this;return Ee.$$p=null,w==null&&(w=me),Se.tag=le,Se.value=w,W(Se,X(Se,"initialize",Ee,!1,!0),"initialize",["uncaught throw "+Se.tag.$inspect()],null)},-2)}("::",J("ArgumentError")),function(be,fe){var Ae=t(be,fe,"NameError");return Ae.$attr_reader("name"),f(Ae,"$initialize",function O(Ee,le){O.$$p;var w=this;return O.$$p=null,le==null&&(le=me),W(w,X(w,"initialize",O,!1,!0),"initialize",[Ee],null),w.name=le},-2)}("::",null),function(be,fe){var Ae=t(be,fe,"NoMethodError");return Ae.$attr_reader("args"),f(Ae,"$initialize",function O(Ee,le,w){O.$$p;var Se=this;return O.$$p=null,le==null&&(le=me),w==null&&(w=[]),W(Se,X(Se,"initialize",O,!1,!0),"initialize",[Ee,le],null),Se.args=w},-2)}("::",null),function(be,fe){var Ae=t(be,fe,"StopIteration");return Ae.$attr_reader("result")}("::",null),function(be,fe){var Ae=t(be,fe,"KeyError"),O=Ae.$$prototype;return O.receiver=O.key=me,f(Ae,"$initialize",function Ee(le,w){var Se,N;Ee.$$p;var re=this;return Ee.$$p=null,w=ne(w),Se=w.$$smap.receiver,Se==null&&(Se=me),N=w.$$smap.key,N==null&&(N=me),W(re,X(re,"initialize",Ee,!1,!0),"initialize",[le],null),re.receiver=Se,re.key=N},-2),f(Ae,"$receiver",function(){var le=this,w=me;return p(w=le.receiver)?w:I.$raise(J("ArgumentError"),"no receiver is available")}),f(Ae,"$key",function(){var le=this,w=me;return p(w=le.key)?w:I.$raise(J("ArgumentError"),"no key is available")})}("::",null),function(be,fe){var Ae=ge(be,"JS"),O=[Ae].concat(fe);return t(O[0],null,"Error"),me}("::",se)};Opal.modules["corelib/constants"]=function(e){var t=e.const_set;e.nil;var r=e.$$$;return t("::","RUBY_PLATFORM","opal"),t("::","RUBY_ENGINE","opal"),t("::","RUBY_VERSION","3.2.0"),t("::","RUBY_ENGINE_VERSION","1.7.3"),t("::","RUBY_RELEASE_DATE","2023-03-23"),t("::","RUBY_PATCHLEVEL",0),t("::","RUBY_REVISION","0"),t("::","RUBY_COPYRIGHT","opal - Copyright (C) 2011-2023 Adam Beynon and the Opal contributors"),t("::","RUBY_DESCRIPTION","opal "+r("RUBY_ENGINE_VERSION")+" ("+r("RUBY_RELEASE_DATE")+" revision "+r("RUBY_REVISION")+")")};Opal.modules["opal/base"]=function(e){var t=e.Object;return e.nil,e.add_stubs("require"),t.$require("corelib/runtime"),t.$require("corelib/helpers"),t.$require("corelib/module"),t.$require("corelib/class"),t.$require("corelib/basic_object"),t.$require("corelib/kernel"),t.$require("corelib/main"),t.$require("corelib/error"),t.$require("corelib/constants")};Opal.modules["corelib/nil"]=function(e){var t=e.klass,r=e.Kernel,n=e.def,i=e.return_val,s=e.ensure_kwargs,c=e.NilClass,f=e.slice,p=e.truthy,h=e.rb_gt,I=e.alias,F=e.nil,H=e.$$$;return e.add_stubs("raise,name,new,>,length,Rational,to_i"),function(pe,xe,ne){var W=t(pe,xe,"NilClass");return W.$$prototype.$$meta=W,function(X,ge){return n(X,"$allocate",function(){var me=this;return r.$raise(H("TypeError"),"allocator undefined for "+me.$name())}),e.udef(X,"$new"),F}(e.get_singleton_class(W)),n(W,"$!",i(!0)),n(W,"$&",i(!1)),n(W,"$|",function(ge){return ge!==!1&&ge!==F}),n(W,"$^",function(ge){return ge!==!1&&ge!==F}),n(W,"$==",function(ge){return ge===F}),n(W,"$dup",i(F)),n(W,"$clone",function(ge){return ge=s(ge),ge.$$smap.freeze,F},-1),n(W,"$inspect",i("nil")),n(W,"$nil?",i(!0)),n(W,"$singleton_class",function(){return c}),n(W,"$to_a",function(){return[]}),n(W,"$to_h",function(){return e.hash()}),n(W,"$to_i",i(0)),n(W,"$to_s",i("")),n(W,"$to_c",function(){return H("Complex").$new(0,0)}),n(W,"$rationalize",function(ge){var se,me;return se=f(arguments),me=se,p(h(me.$length(),1))&&r.$raise(H("ArgumentError")),r.$Rational(0,1)},-1),n(W,"$to_r",function(){return r.$Rational(0,1)}),n(W,"$instance_variables",function(){return[]}),I(W,"to_f","to_i")}("::",null)};Opal.modules["corelib/boolean"]=function(e){var t=e.klass,r=e.Kernel,n=e.def,i=e.return_self,s=e.ensure_kwargs,c=e.slice,f=e.truthy,p=e.send2,h=e.find_super,I=e.to_a,F=e.alias,H=e.nil,pe=e.$$$;return e.add_stubs("raise,name,==,to_s,__id__"),function(xe,ne,W){var X=t(xe,ne,"Boolean");e.prop(X.$$prototype,"$$is_boolean",!0);for(var ge=["$$class","$$meta"],se=0;se<ge.length;se++)Object.defineProperty(X.$$prototype,ge[se],{configurable:!0,enumerable:!1,get:function(){return this==!0?e.TrueClass:this==!1?e.FalseClass:e.Boolean}});return Object.defineProperty(X.$$prototype,"$$id",{configurable:!0,enumerable:!1,get:function(){return this==!0?2:this==!1?0:H}}),function(me,J){return n(me,"$allocate",function(){var fe=this;return r.$raise(pe("TypeError"),"allocator undefined for "+fe.$name())}),e.udef(me,"$new"),H}(e.get_singleton_class(X)),n(X,"$__id__",function(){var J=this;return J.valueOf()?2:0}),n(X,"$!",function(){var J=this;return J!=!0}),n(X,"$&",function(J){var be=this;return be==!0?J!==!1&&J!==H:!1}),n(X,"$|",function(J){var be=this;return be==!0?!0:J!==!1&&J!==H}),n(X,"$^",function(J){var be=this;return be==!0?J===!1||J===H:J!==!1&&J!==H}),n(X,"$==",function(J){var be=this;return be==!0===J.valueOf()}),n(X,"$singleton_class",function(){var J=this;return J.$$meta}),n(X,"$to_s",function(){var J=this;return J==!0?"true":"false"}),n(X,"$dup",i),n(X,"$clone",function(J){var be=this;return J=s(J),J.$$smap.freeze,be},-1),n(X,"$method_missing",function me(J,be){var fe=me.$$p||H,Ae,O,Ee=this;me.$$p=null,Ae=c(arguments,1),O=Ae;var le=Ee.$$class.$$prototype[e.jsid(J)];return f(typeof le<"u"&&!le.$$stub)||p(Ee,h(Ee,"method_missing",me,!1,!0),"method_missing",[J].concat(I(O)),fe),e.send(Ee,le,O,fe)},-2),n(X,"$respond_to_missing?",function(J,be){var fe=this,Ae=fe.$$class.$$prototype[e.jsid(J)];return typeof Ae<"u"&&!Ae.$$stub},-2),F(X,"eql?","=="),F(X,"equal?","=="),F(X,"inspect","to_s"),F(X,"object_id","__id__")}("::",Boolean),t("::",pe("Boolean"),"TrueClass"),t("::",pe("Boolean"),"FalseClass"),H};Opal.modules["corelib/comparable"]=function(e){var t=e.truthy,r=e.module,n=e.rb_gt,i=e.rb_lt,s=e.eqeqeq,c=e.Kernel,f=e.def,p=e.nil,h=e.$$$;return e.add_stubs(">,<,===,raise,class,<=>,equal?"),function(I){var F=r(I,"Comparable"),H=p;function pe(W){return e.is_a(W,e.Integer)?W:n(W,0)?1:i(W,0)?-1:0}function xe(W,X){var ge;s(p,H=X)||s(!0,H)||s(!1,H)||s(h("Integer"),H)||s(h("Float"),H)?ge=X.$inspect():ge=X.$$class,c.$raise(h("ArgumentError"),"comparison of "+W.$class()+" with "+ge+" failed")}function ne(W,X){var ge=W["$<=>"](X);return t(ge)||xe(W,X),pe(ge)}return f(F,"$==",function(X){var ge=this,se=p;return t(ge["$equal?"](X))?!0:ge["$<=>"]==e.Kernel["$<=>"]?!1:ge.$$comparable?(ge.$$comparable=!1,!1):t(se=ge["$<=>"](X))?pe(se)==0:!1}),f(F,"$>",function(X){var ge=this;return ne(ge,X)>0}),f(F,"$>=",function(X){var ge=this;return ne(ge,X)>=0}),f(F,"$<",function(X){var ge=this;return ne(ge,X)<0}),f(F,"$<=",function(X){var ge=this;return ne(ge,X)<=0}),f(F,"$between?",function(X,ge){var se=this;return!(i(se,X)||n(se,ge))}),f(F,"$clamp",function(X,ge){var se=this;ge==null&&(ge=p);var me,J;if(ge===p&&(e.is_a(X,e.Range)||c.$raise(h("TypeError"),"wrong argument type "+X.$class()+" (expected Range)"),J=X.excl,ge=X.end,X=X.begin,ge!==p&&J&&c.$raise(h("ArgumentError"),"cannot clamp with an exclusive range")),X!==p&&ge!==p&&ne(X,ge)>0&&c.$raise(h("ArgumentError"),"min argument must be smaller than max argument"),X!==p){if(me=ne(se,X),me==0)return se;if(me<0)return X}return ge!==p&&(me=ne(se,ge),me>0)?ge:se},-2)}("::")};Opal.modules["corelib/regexp"]=function(e){var t=e.coerce_to,r=e.prop,n=e.freeze,i=e.klass,s=e.const_set,c=e.send2,f=e.find_super,p=e.def,h=e.truthy,I=e.gvars,F=e.slice,H=e.Kernel,pe=e.Opal,xe=e.alias,ne=e.send,W=e.hash2,X=e.rb_plus,ge=e.ensure_kwargs,se=e.rb_ge,me=e.to_a,J=e.eqeqeq,be=e.rb_minus,fe=e.return_ivar,Ae=[],O=e.nil,Ee=e.$$$;return e.add_stubs("nil?,[],raise,escape,options,to_str,new,join,coerce_to!,!,match,coerce_to?,begin,frozen?,uniq,map,scan,source,to_proc,transform_values,group_by,each_with_index,+,last,=~,==,attr_reader,>=,length,is_a?,include?,names,regexp,named_captures,===,captures,-,inspect,empty?,each,to_a"),i("::",Ee("StandardError"),"RegexpError"),function(le,w,Se){var N=i(le,w,"Regexp"),re=[N].concat(Se),P=e.$r(re);return s(N,"IGNORECASE",1),s(N,"EXTENDED",2),s(N,"MULTILINE",4),e.prop(N.$$prototype,"$$is_regexp",!0),function(Me,ce){var M=[Me].concat(ce),x=e.$r(M);return p(Me,"$allocate",function $(){var l=$.$$p||O,u=this,d=O;return $.$$p=null,d=c(u,f(u,"allocate",$,!1,!0),"allocate",[],l),d.uninitialized=!0,d}),p(Me,"$escape",function(l){return e.escape_regexp(l)}),p(Me,"$last_match",function(l){return I["~"]==null&&(I["~"]=O),l==null&&(l=O),h(l["$nil?"]())?I["~"]:h(I["~"])?I["~"]["$[]"](l):O},-1),p(Me,"$union",function(l){var u,d,_=this;u=F(arguments),d=u;var S,A,Q,De,rt;if(d.length==0)return/(?!)/;if(d.length==1&&d[0].$$is_regexp)return d[0];S=d[0].$$is_array,d.length>1&&S&&H.$raise(Ee("TypeError"),"no implicit conversion of Array into String"),S&&(d=d[0]),De=void 0,A=[];for(var ft=0;ft<d.length;ft++)Q=d[ft],Q.$$is_string?A.push(_.$escape(Q)):Q.$$is_regexp?(rt=Q.$options(),De!=null&&De!=rt&&H.$raise(Ee("TypeError"),"All expressions must use the same options"),De=rt,A.push("("+Q.source+")")):A.push(_.$escape(Q.$to_str()));return _.$new(A.$join("|"),De)},-1),p(Me,"$new",function(l,u){if(l.$$is_regexp)return new RegExp(l);if(l=pe["$coerce_to!"](l,Ee("String"),"to_str"),l.charAt(l.length-1)==="\\"&&l.charAt(l.length-2)!=="\\"&&H.$raise(Ee("RegexpError"),"too short escape sequence: /"+l+"/"),l=l.replace("\\A","^").replace("\\z","$"),u===void 0||u["$!"]())return new RegExp(l);if(u.$$is_number){var d="";x("IGNORECASE")&u&&(d+="i"),x("MULTILINE")&u&&(d+="m"),u=d}else u="i";return new RegExp(l,u)},-2),xe(Me,"compile","new"),xe(Me,"quote","escape")}(e.get_singleton_class(N),re),p(N,"$==",function(ce){var M=this;return ce instanceof RegExp&&M.toString()===ce.toString()}),p(N,"$===",function(ce){var M=this;return M.$match(pe["$coerce_to?"](ce,Ee("String"),"to_str"))!==O}),p(N,"$=~",function(ce){var M=this,x=O;return I["~"]==null&&(I["~"]=O),h(x=M.$match(ce))?I["~"].$begin(0):x}),p(N,"$freeze",function(){var ce=this;return h(ce["$frozen?"]())?ce:(ce.hasOwnProperty("$$g")||r(ce,"$$g",null),ce.hasOwnProperty("$$gm")||r(ce,"$$gm",null),n(ce))}),p(N,"$inspect",function(){var ce=this,M=/^\/(.*)\/([^\/]*)$/,x=ce.toString(),$=M.exec(x);if($){for(var l=$[1],u=$[2],d=l.split(""),_=d.length,S=!1,A="",Q=0;Q<_;Q++){var De=d[Q];!S&&De=="/"&&(A=A.concat("\\")),A=A.concat(De),De=="\\"?S?S=!1:S=!0:S=!1}return"/"+A+"/"+u}else return x}),p(N,"$match",function Me(ce,M){var x=Me.$$p||O,$=this;if(I["~"]==null&&(I["~"]=O),Me.$$p=null,$.uninitialized&&H.$raise(Ee("TypeError"),"uninitialized Regexp"),M===void 0){if(ce===O)return I["~"]=O;var l=$.exec(t(ce,Ee("String"),"to_str"));return l?(I["~"]=Ee("MatchData").$new($,l),x===O?I["~"]:e.yield1(x,I["~"])):I["~"]=O}if(M=t(M,Ee("Integer"),"to_int"),ce===O||(ce=t(ce,Ee("String"),"to_str"),M<0&&(M+=ce.length,M<0)))return I["~"]=O;for(var u,d=e.global_regexp($);;){if(u=d.exec(ce),u===null)return I["~"]=O;if(u.index>=M)return I["~"]=Ee("MatchData").$new(d,u),x===O?I["~"]:e.yield1(x,I["~"]);d.lastIndex=u.index+1}},-2),p(N,"$match?",function(ce,M){var x=this;if(x.uninitialized&&H.$raise(Ee("TypeError"),"uninitialized Regexp"),M===void 0)return ce===O?!1:x.test(t(ce,Ee("String"),"to_str"));if(M=t(M,Ee("Integer"),"to_int"),ce===O||(ce=t(ce,Ee("String"),"to_str"),M<0&&(M+=ce.length,M<0)))return!1;var $,l=e.global_regexp(x);return $=l.exec(ce),!($===null||$.index<M)},-2),p(N,"$names",function(){var ce=this;return ne(ce.$source().$scan(/\(?<(\w+)>/,W(["no_matchdata"],{no_matchdata:!0})),"map",[],"first".$to_proc()).$uniq()}),p(N,"$named_captures",function(){var ce=this;return ne(ne(ne(ce.$source().$scan(/\(?<(\w+)>/,W(["no_matchdata"],{no_matchdata:!0})),"map",[],"first".$to_proc()).$each_with_index(),"group_by",[],"first".$to_proc()),"transform_values",[],function(x){return x==null&&(x=O),ne(x,"map",[],function(l){return l==null&&(l=O),X(l.$last(),1)})})}),p(N,"$~",function(){var ce=this;return I._==null&&(I._=O),ce["$=~"](I._)}),p(N,"$source",function(){var ce=this;return ce.source}),p(N,"$options",function(){var ce=this;ce.uninitialized&&H.$raise(Ee("TypeError"),"uninitialized Regexp");var M=0;return ce.multiline&&(M|=P("MULTILINE")),ce.ignoreCase&&(M|=P("IGNORECASE")),M}),p(N,"$casefold?",function(){var ce=this;return ce.ignoreCase}),xe(N,"eql?","=="),xe(N,"to_s","source")}("::",RegExp,Ae),function(le,w,Se){var N=i(le,w,"MatchData"),re=[N].concat(Se),P=e.$r(re),Me=N.$$prototype;return Me.matches=O,N.$attr_reader("post_match","pre_match","regexp","string"),p(N,"$initialize",function(M,x,$){var l,u=this;$=ge($),l=$.$$smap.no_matchdata,l==null&&(l=!1),h(l)||(I["~"]=u),u.regexp=M,u.begin=x.index,u.string=x.input,u.pre_match=x.input.slice(0,x.index),u.post_match=x.input.slice(x.index+x[0].length),u.matches=[];for(var d=0,_=x.length;d<_;d++){var S=x[d];S==null?u.matches.push(O):u.matches.push(S)}},-3),p(N,"$match",function(M){var x=this,$=O;return h($=x["$[]"](M))?$:h(M["$is_a?"](P("Integer")))&&h(se(M,x.$length()))?H.$raise(Ee("IndexError"),"index "+M+" out of matches"):O}),p(N,"$match_length",function(M){var x,$=this;return x=$.$match(M),x===O||x==null?O:x.$length()}),p(N,"$[]",function(M){var x,$,l=this;return x=F(arguments),$=x,$[0].$$is_string?(l.$regexp().$names()["$include?"]($["$[]"](0))["$!"]()&&H.$raise(Ee("IndexError"),"undefined group name reference: "+$["$[]"](0)),l.$named_captures()["$[]"]($["$[]"](0))):ne(l.matches,"[]",me($))},-1),p(N,"$offset",function(M){var x=this;return M!==0&&H.$raise(Ee("ArgumentError"),"MatchData#offset only supports 0th element"),[x.begin,x.begin+x.matches[M].length]}),p(N,"$==",function(M){var x=this,$=O,l=O,u=O,d=O;return J(Ee("MatchData"),M)?h($=h(l=h(u=h(d=x.string==M.string)?x.regexp.toString()==M.regexp.toString():d)?x.pre_match==M.pre_match:u)?x.post_match==M.post_match:l)?x.begin==M.begin:$:!1}),p(N,"$begin",function(M){var x=this;return M!==0&&H.$raise(Ee("ArgumentError"),"MatchData#begin only supports 0th element"),x.begin}),p(N,"$end",function(M){var x=this;return M!==0&&H.$raise(Ee("ArgumentError"),"MatchData#end only supports 0th element"),x.begin+x.matches[M].length}),p(N,"$captures",function(){var M=this;return M.matches.slice(1)}),p(N,"$named_captures",function(){var M=this,x=O;return x=M.$captures(),ne(M.$regexp().$named_captures(),"transform_values",[],function(l){return l==null&&(l=O),x["$[]"](be(l.$last(),1))})}),p(N,"$names",function(){var M=this;return M.$regexp().$names()}),p(N,"$inspect",function(){var M=this,x="#<MatchData "+M.matches[0].$inspect();if(M.$regexp().$names()["$empty?"]())for(var $=1,l=M.matches.length;$<l;$++)x+=" "+$+":"+M.matches[$].$inspect();else ne(M.$named_captures(),"each",[],function(d,_){return d==null&&(d=O),_==null&&(_=O),x+=" "+d+":"+_.$inspect()});return x+">"}),p(N,"$length",function(){var M=this;return M.matches.length}),p(N,"$to_a",fe("matches")),p(N,"$to_s",function(){var M=this;return M.matches[0]}),p(N,"$values_at",function(M){var x,$,l=this;x=F(arguments),$=x;var u,d,_,S=[];for(u=0;u<$.length;u++){if($[u].$$is_range&&(d=$[u].$to_a(),d.unshift(u,1),Array.prototype.splice.apply($,d)),_=pe["$coerce_to!"]($[u],Ee("Integer"),"to_int"),_<0&&(_+=l.matches.length,_<0)){S.push(O);continue}S.push(l.matches[_])}return S},-1),xe(N,"eql?","=="),xe(N,"size","length")}(Ae[0],null,Ae)};Opal.modules["corelib/string"]=function(e){var t=e.coerce_to,r=e.respond_to,n=e.global_multiline_regexp,i=e.prop,s=e.klass,c=e.def,f=e.Opal,p=e.defs,h=e.slice,I=e.send,F=e.to_a,H=e.extract_kwargs,pe=e.ensure_kwargs,xe=e.eqeqeq,ne=e.Kernel,W=e.truthy,X=e.gvars,ge=e.rb_divide,se=e.rb_plus,me=e.eqeq,J=e.hash2,be=e.alias,fe=e.const_set,Ae=e.top,O=[],Ee=e.$r(O),le=e.nil,w=e.$$$;return e.add_stubs("require,include,coerce_to?,initialize,===,format,raise,respond_to?,to_s,to_str,<=>,==,=~,new,force_encoding,casecmp,empty?,ljust,ceil,/,+,rjust,floor,coerce_to!,nil?,class,copy_singleton_methods,initialize_clone,initialize_dup,enum_for,chomp,[],to_i,length,each_line,to_proc,to_a,match,match?,captures,proc,succ,escape,include?,upcase,unicode_normalize,dup,__id__,next,intern,pristine"),Ae.$require("corelib/comparable"),Ae.$require("corelib/regexp"),function(Se,N,re){var P=s(Se,N,"String"),Me=[P].concat(re),ce=e.$r(Me);P.$include(w("Comparable")),e.prop(P.$$prototype,"$$is_string",!0),c(P,"$__id__",function(){var $=this;return $.toString()}),p(P,"$try_convert",function($){return f["$coerce_to?"]($,w("String"),"to_str")}),p(P,"$new",function($){var l,u,d=this;l=h(arguments),u=l;var _=u[0]||"",S=u[u.length-1];return _=t(_,w("String"),"to_str"),S&&S.$$is_hash&&S.$$smap.encoding&&(_=_.$force_encoding(S.$$smap.encoding)),_=new d.$$constructor(_),_.$initialize.$$pristine||I(_,"initialize",F(u)),_},-1),c(P,"$initialize",function($,l){var u,d;return u=h(arguments),d=H(u),d=pe(d),u.length>0&&u.shift(),d.$$smap.encoding,d.$$smap.capacity,le},-1),c(P,"$%",function($){var l=this;return xe(w("Array"),$)?I(l,"format",[l].concat(F($))):l.$format(l,$)}),c(P,"$*",function($){var l=this;if($=t($,w("Integer"),"to_int"),$<0&&ne.$raise(w("ArgumentError"),"negative argument"),$===0)return"";var u="",d=l.toString();for(d.length*$>=1<<28&&ne.$raise(w("RangeError"),"multiply count must not overflow maximum string size");($&1)===1&&(u+=d),$>>>=1,$!==0;)d+=d;return u}),c(P,"$+",function($){var l=this;if($=t($,w("String"),"to_str"),$==""&&l.$$class===e.String)return l;if(l==""&&$.$$class===e.String)return $;var u=l+$;return l.encoding===u.encoding&&$.encoding===u.encoding||l.encoding.name==="UTF-8"||$.encoding.name==="UTF-8"?u:e.enc(u,l.encoding)}),c(P,"$<=>",function($){var l=this;if(W($["$respond_to?"]("to_str")))return $=$.$to_str().$to_s(),l>$?1:l<$?-1:0;var u=$["$<=>"](l);return u===le?le:u>0?-1:u<0?1:0}),c(P,"$==",function($){var l=this;return $.$$is_string?l.toString()===$.toString():r($,"$to_str")?$["$=="](l):!1}),c(P,"$=~",function($){var l=this;return $.$$is_string&&ne.$raise(w("TypeError"),"type mismatch: String given"),$["$=~"](l)}),c(P,"$[]",function($,l){var u=this,d=u.length,_,S;if($.$$is_range)return _=$.excl,S=$,l=$.end===le?-1:t($.end,w("Integer"),"to_int"),$=$.begin===le?0:t($.begin,w("Integer"),"to_int"),Math.abs($)>d?le:($<0&&($+=d),l<0&&(l+=d),(!_||S.end===le)&&(l+=1),l=l-$,l<0&&(l=0),u.substr($,l));if($.$$is_string)return l!=null&&ne.$raise(w("TypeError")),u.indexOf($)!==-1?$:le;if($.$$is_regexp){var A=u.match($);return A===null?(X["~"]=le,le):(X["~"]=w("MatchData").$new($,A),l==null?A[0]:(l=t(l,w("Integer"),"to_int"),l<0&&-l<A.length?A[l+=A.length]:l>=0&&l<A.length?A[l]:le))}return $=t($,w("Integer"),"to_int"),$<0&&($+=d),l==null?$>=d||$<0?le:u.substr($,1):(l=t(l,w("Integer"),"to_int"),l<0||$>d||$<0?le:u.substr($,l))},-2),c(P,"$b",function(){var $=this;return new String($).$force_encoding("binary")}),c(P,"$capitalize",function(){var $=this;return $.charAt(0).toUpperCase()+$.substr(1).toLowerCase()}),c(P,"$casecmp",function($){var l=this;if(!W($["$respond_to?"]("to_str")))return le;$=t($,w("String"),"to_str").$to_s();var u=/^[\x00-\x7F]*$/;return u.test(l)&&u.test($)&&(l=l.toLowerCase(),$=$.toLowerCase()),l["$<=>"]($)}),c(P,"$casecmp?",function($){var l=this,u=l.$casecmp($);return u===le?le:u===0}),c(P,"$center",function($,l){var u=this;if(l==null&&(l=" "),$=t($,w("Integer"),"to_int"),l=t(l,w("String"),"to_str").$to_s(),W(l["$empty?"]())&&ne.$raise(w("ArgumentError"),"zero width padding"),W($<=u.length))return u;var d=u.$ljust(ge(se($,u.length),2).$ceil(),l),_=u.$rjust(ge(se($,u.length),2).$floor(),l);return _+d.slice(u.length)},-2),c(P,"$chomp",function($){var l=this;if(X["/"]==null&&(X["/"]=le),$==null&&($=X["/"]),W($===le||l.length===0))return l;$=f["$coerce_to!"]($,w("String"),"to_str").$to_s();var u;if($===`
|
|
395
|
-
`)u=l.replace(/\r?\n?$/,"");else if($==="")u=l.replace(/(\r?\n)+$/,"");else if(l.length>=$.length){var d=l.substr(l.length-$.length,$.length);d===$&&(u=l.substr(0,l.length-$.length))}return u??l},-1),c(P,"$chop",function(){var $=this,l=$.length,u;return l<=1?u="":$.charAt(l-1)===`
|
|
396
|
-
`&&$.charAt(l-2)==="\r"?u=$.substr(0,l-2):u=$.substr(0,l-1),u}),c(P,"$chr",function(){var $=this;return $.charAt(0)}),c(P,"$clone",function($){var l,u=this,d=le;return $=pe($),l=$.$$smap.freeze,l==null&&(l=le),W(l["$nil?"]())||me(l,!0)||me(l,!1)||u.$raise(ce("ArgumentError"),"unexpected value for freeze: "+l.$class()),d=new String(u),d.$copy_singleton_methods(u),d.$initialize_clone(u,J(["freeze"],{freeze:l})),me(l,!0)?d.$$frozen||(d.$$frozen=!0):W(l["$nil?"]())&&u.$$frozen&&(d.$$frozen=!0),d},-1),c(P,"$dup",function(){var $=this,l=le;return l=new String($),l.$initialize_dup($),l}),c(P,"$count",function($){var l,u,d=this;l=h(arguments),u=l,u.length===0&&ne.$raise(w("ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var _=M(u);return _===null?0:d.length-d.replace(new RegExp(_,"g"),"").length},-1),c(P,"$delete",function($){var l,u,d=this;l=h(arguments),u=l,u.length===0&&ne.$raise(w("ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var _=M(u);return _===null?d:d.replace(new RegExp(_,"g"),"")},-1),c(P,"$delete_prefix",function($){var l=this;return $.$$is_string||($=t($,w("String"),"to_str")),l.slice(0,$.length)===$?l.slice($.length):l}),c(P,"$delete_suffix",function($){var l=this;return $.$$is_string||($=t($,w("String"),"to_str")),l.slice(l.length-$.length)===$?l.slice(0,l.length-$.length):l}),c(P,"$downcase",function(){var $=this;return $.toLowerCase()}),c(P,"$each_line",function x($,l){var u=x.$$p||le,d,_,S,A,Q=this;if(X["/"]==null&&(X["/"]=le),x.$$p=null,d=h(arguments),_=H(d),_=pe(_),d.length>0&&(S=d.shift()),S==null&&(S=X["/"]),A=_.$$smap.chomp,A==null&&(A=!1),u===le)return Q.$enum_for("each_line",S,J(["chomp"],{chomp:A}));if(S===le)return e.yield1(u,Q),Q;S=t(S,w("String"),"to_str");var De,rt,ft,_t,At,bt,Mt,Et;if(S.length===0){for(De=Q.split(/((?:\r?\n){2})(?:(?:\r?\n)*)/),rt=0,ft=De.length;rt<ft;rt+=2)(De[rt]||De[rt+1])&&(Et=(De[rt]||"")+(De[rt+1]||""),A&&(Et=Et.$chomp(`
|
|
397
|
-
`)),e.yield1(u,Et));return Q}for(At=Q.$chomp(S),bt=Q.length!=At.length,Mt=At.split(S),rt=0,_t=Mt.length;rt<_t;rt++)Et=Mt[rt],(rt<_t-1||bt)&&(Et+=S),A&&(Et=Et.$chomp(S)),e.yield1(u,Et);return Q},-1),c(P,"$empty?",function(){var $=this;return $.length===0}),c(P,"$end_with?",function($){var l,u,d=this;l=h(arguments),u=l;for(var _=0,S=u.length;_<S;_++){var A=t(u[_],w("String"),"to_str").$to_s();if(d.length>=A.length&&d.substr(d.length-A.length,A.length)==A)return!0}return!1},-1),c(P,"$gsub",function x($,l){var u=x.$$p||le,d=this;if(x.$$p=null,l===void 0&&u===le)return d.$enum_for("gsub",$);var _="",S=le,A=0,Q,De;$.$$is_regexp?$=n($):($=t($,w("String"),"to_str"),$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));for(var rt;;){if(Q=$.exec(d),Q===null){X["~"]=le,_+=d.slice(A);break}S=w("MatchData").$new($,Q),l===void 0?(rt=$.lastIndex,De=u(Q[0]),$.lastIndex=rt):l.$$is_hash?De=l["$[]"](Q[0]).$to_s():(l.$$is_string||(l=t(l,w("String"),"to_str")),De=l.replace(/([\\]+)([0-9+&`'])/g,function(ft,_t,At){if(_t.length%2===0)return ft;switch(At){case"+":for(var bt=Q.length-1;bt>0;bt--)if(Q[bt]!==void 0)return _t.slice(1)+Q[bt];return"";case"&":return _t.slice(1)+Q[0];case"`":return _t.slice(1)+d.slice(0,Q.index);case"'":return _t.slice(1)+d.slice(Q.index+Q[0].length);default:return _t.slice(1)+(Q[At]||"")}}).replace(/\\\\/g,"\\")),$.lastIndex===Q.index?(_+=d.slice(A,Q.index)+De+(d[Q.index]||""),$.lastIndex+=1):_+=d.slice(A,Q.index)+De,A=$.lastIndex}return X["~"]=S,_},-2),c(P,"$hash",function(){var $=this;return $.toString()}),c(P,"$hex",function(){var $=this;return $.$to_i(16)}),c(P,"$include?",function($){var l=this;return $.$$is_string||($=t($,w("String"),"to_str")),l.indexOf($)!==-1}),c(P,"$index",function($,l){var u=this,d,_,S;if(l===void 0)l=0;else if(l=t(l,w("Integer"),"to_int"),l<0&&(l+=u.length,l<0))return le;if($.$$is_regexp)for(S=n($);;){if(_=S.exec(u),_===null){X["~"]=le,d=-1;break}if(_.index>=l){X["~"]=w("MatchData").$new(S,_),d=_.index;break}S.lastIndex=_.index+1}else $=t($,w("String"),"to_str"),$.length===0&&l>u.length?d=-1:d=u.indexOf($,l);return d===-1?le:d},-2),c(P,"$inspect",function(){var $=this,l=/[\\\"\x00-\x1f\u007F-\u009F\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,u={"\x07":"\\a","\x1B":"\\e","\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\v":"\\v",'"':'\\"',"\\":"\\\\"},d=$.replace(l,function(_){return u[_]?u[_]:(_=_.charCodeAt(0),_<=255&&($.encoding["$binary?"]()||$.internal_encoding["$binary?"]())?"\\x"+("00"+_.toString(16).toUpperCase()).slice(-2):"\\u"+("0000"+_.toString(16).toUpperCase()).slice(-4))});return'"'+d.replace(/\#[\$\@\{]/g,"\\$&")+'"'}),c(P,"$intern",function(){var $=this;return $.toString()}),c(P,"$length",function(){var $=this;return $.length}),be(P,"size","length"),c(P,"$lines",function x($,l){var u=x.$$p||le,d,_,S,A,Q=this,De=le;return X["/"]==null&&(X["/"]=le),x.$$p=null,d=h(arguments),_=H(d),_=pe(_),d.length>0&&(S=d.shift()),S==null&&(S=X["/"]),A=_.$$smap.chomp,A==null&&(A=!1),De=I(Q,"each_line",[S,J(["chomp"],{chomp:A})],u.$to_proc()),W(u)?Q:De.$to_a()},-1),c(P,"$ljust",function($,l){var u=this;if(l==null&&(l=" "),$=t($,w("Integer"),"to_int"),l=t(l,w("String"),"to_str").$to_s(),W(l["$empty?"]())&&ne.$raise(w("ArgumentError"),"zero width padding"),W($<=u.length))return u;var d=-1,_="";for($-=u.length;++d<$;)_+=l;return u+_.slice(0,$)},-2),c(P,"$lstrip",function(){var $=this;return $.replace(/^[\u0000\s]*/,"")}),c(P,"$ascii_only?",function(){var $=this;return $.encoding.ascii?/^[\x00-\x7F]*$/.test($):!1}),c(P,"$match",function x($,l){var u=x.$$p||le,d=this;return x.$$p=null,(xe(ce("String"),$)||W($["$respond_to?"]("to_str")))&&($=w("Regexp").$new($.$to_str())),xe(w("Regexp"),$)||ne.$raise(w("TypeError"),"wrong argument type "+$.$class()+" (expected Regexp)"),I($,"match",[d,l],u.$to_proc())},-2),c(P,"$match?",function($,l){var u=this;return(xe(ce("String"),$)||W($["$respond_to?"]("to_str")))&&($=w("Regexp").$new($.$to_str())),xe(w("Regexp"),$)||ne.$raise(w("TypeError"),"wrong argument type "+$.$class()+" (expected Regexp)"),$["$match?"](u,l)},-2),c(P,"$next",function(){var $=this,l=$.length;if(l===0)return"";for(var u=$,d=$.search(/[a-zA-Z0-9]/),_=!1,S;l--;){if(S=$.charCodeAt(l),S>=48&&S<=57||S>=65&&S<=90||S>=97&&S<=122)switch(S){case 57:_=!0,S=48;break;case 90:_=!0,S=65;break;case 122:_=!0,S=97;break;default:_=!1,S+=1}else d===-1?S===255?(_=!0,S=0):(_=!1,S+=1):_=!0;if(u=u.slice(0,l)+String.fromCharCode(S)+u.slice(l+1),_&&(l===0||l===d)){switch(S){case 65:break;case 97:break;default:S+=1}l===0?u=String.fromCharCode(S)+u:u=u.slice(0,l)+String.fromCharCode(S)+u.slice(l),_=!1}if(!_)break}return u}),c(P,"$oct",function(){var $=this,l,u=$,d=8;return/^\s*_/.test(u)?0:(u=u.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/i,function(_,S,A,Q){switch(Q.charAt(0)){case"+":case"-":return _;case"0":if(Q.charAt(1)==="x"&&A==="0x")return _}switch(A){case"0b":d=2;break;case"0":case"0o":d=8;break;case"0d":d=10;break;case"0x":d=16;break}return S+Q}),l=parseInt(u.replace(/_(?!_)/g,""),d),isNaN(l)?0:l)}),c(P,"$ord",function(){var $=this;return typeof $.codePointAt=="function"?$.codePointAt(0):$.charCodeAt(0)}),c(P,"$partition",function($){var l=this,u,d;return $.$$is_regexp?(d=$.exec(l),d===null?u=-1:(w("MatchData").$new($,d),$=d[0],u=d.index)):($=t($,w("String"),"to_str"),u=l.indexOf($)),u===-1?[l,"",""]:[l.slice(0,u),l.slice(u,u+$.length),l.slice(u+$.length)]}),c(P,"$reverse",function(){var $=this;return $.split("").reverse().join("")}),c(P,"$rindex",function($,l){var u=this,d,_,S,A;if(l===void 0)l=u.length;else if(l=t(l,w("Integer"),"to_int"),l<0&&(l+=u.length,l<0))return le;if($.$$is_regexp){for(_=null,S=n($);A=S.exec(u),!(A===null||A.index>l);)_=A,S.lastIndex=_.index+1;_===null?(X["~"]=le,d=-1):(w("MatchData").$new(S,_),d=_.index)}else $=t($,w("String"),"to_str"),d=u.lastIndexOf($,l);return d===-1?le:d},-2),c(P,"$rjust",function($,l){var u=this;if(l==null&&(l=" "),$=t($,w("Integer"),"to_int"),l=t(l,w("String"),"to_str").$to_s(),W(l["$empty?"]())&&ne.$raise(w("ArgumentError"),"zero width padding"),W($<=u.length))return u;var d=Math.floor($-u.length),_=Math.floor(d/l.length),S=Array(_+1).join(l),A=d-S.length;return S+l.slice(0,A)+u},-2),c(P,"$rpartition",function($){var l=this,u,d,_,S;if($.$$is_regexp){for(d=null,_=n($);S=_.exec(l),S!==null;)d=S,_.lastIndex=d.index+1;d===null?u=-1:(w("MatchData").$new(_,d),$=d[0],u=d.index)}else $=t($,w("String"),"to_str"),u=l.lastIndexOf($);return u===-1?["","",l]:[l.slice(0,u),l.slice(u,u+$.length),l.slice(u+$.length)]}),c(P,"$rstrip",function(){var $=this;return $.replace(/[\s\u0000]*$/,"")}),c(P,"$scan",function x($,l){var u=x.$$p||le,d,_=this;x.$$p=null,l=pe(l),d=l.$$smap.no_matchdata,d==null&&(d=!1);var S=[],A=le,Q;for($.$$is_regexp?$=n($):($=t($,w("String"),"to_str"),$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));(Q=$.exec(_))!=null;)A=w("MatchData").$new($,Q,J(["no_matchdata"],{no_matchdata:d})),u===le?Q.length==1?S.push(Q[0]):S.push(A.$captures()):Q.length==1?e.yield1(u,Q[0]):e.yield1(u,A.$captures()),$.lastIndex===Q.index&&($.lastIndex+=1);return d||(X["~"]=A),u!==le?_:S},-2),c(P,"$singleton_class",function(){var $=this;return e.get_singleton_class($)}),c(P,"$split",function($,l){var u=this,d=le;if(X[";"]==null&&(X[";"]=le),u.length===0)return[];if(l===void 0)l=0;else if(l=f["$coerce_to!"](l,w("Integer"),"to_int"),l===1)return[u];($===void 0||$===le)&&($=W(d=X[";"])?d:" ");var _=[],S=u.toString(),A=0,Q,De,rt;if($.$$is_regexp?$=n($):($=t($,w("String"),"to_str").$to_s(),$===" "?($=/\s+/gm,S=S.replace(/^\s+/,"")):$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm")),_=S.split($),_.length===1&&_[0]===S)return[_[0]];for(;(De=_.indexOf(void 0))!==-1;)_.splice(De,1);if(l===0){for(;_[_.length-1]==="";)_.length-=1;return _}if(Q=$.exec(S),l<0){if(Q!==null&&Q[0]===""&&$.source.indexOf("(?=")===-1)for(De=0,rt=Q.length;De<rt;De++)_.push("");return _}if(Q!==null&&Q[0]==="")return _.splice(l-1,_.length-1,_.slice(l-1).join("")),_;if(l>=_.length)return _;for(De=0;Q!==null&&(De++,A=$.lastIndex,De+1!==l);)Q=$.exec(S);return _.splice(l-1,_.length-1,S.slice(A)),_},-1),c(P,"$squeeze",function($){var l,u,d=this;if(l=h(arguments),u=l,u.length===0)return d.replace(/(.)\1+/g,"$1");var _=M(u);return _===null?d:d.replace(new RegExp("("+_+")\\1+","g"),"$1")},-1),c(P,"$start_with?",function($){var l,u,d=this;l=h(arguments),u=l;for(var _=0,S=u.length;_<S;_++)if(u[_].$$is_regexp){var A=u[_],Q=A.exec(d);if(Q!=null&&Q.index===0)return X["~"]=w("MatchData").$new(A,Q),!0;X["~"]=le}else{var De=t(u[_],w("String"),"to_str").$to_s();if(d.indexOf(De)===0)return!0}return!1},-1),c(P,"$strip",function(){var $=this;return $.replace(/^[\s\u0000]*|[\s\u0000]*$/g,"")}),c(P,"$sub",function x($,l){var u=x.$$p||le,d=this;x.$$p=null,$.$$is_regexp||($=t($,w("String"),"to_str"),$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")));var _,S=$.exec(d);return S===null?(X["~"]=le,_=d.toString()):(w("MatchData").$new($,S),l===void 0?(u===le&&ne.$raise(w("ArgumentError"),"wrong number of arguments (1 for 2)"),_=d.slice(0,S.index)+u(S[0])+d.slice(S.index+S[0].length)):l.$$is_hash?_=d.slice(0,S.index)+l["$[]"](S[0]).$to_s()+d.slice(S.index+S[0].length):(l=t(l,w("String"),"to_str"),l=l.replace(/([\\]+)([0-9+&`'])/g,function(A,Q,De){if(Q.length%2===0)return A;switch(De){case"+":for(var rt=S.length-1;rt>0;rt--)if(S[rt]!==void 0)return Q.slice(1)+S[rt];return"";case"&":return Q.slice(1)+S[0];case"`":return Q.slice(1)+d.slice(0,S.index);case"'":return Q.slice(1)+d.slice(S.index+S[0].length);default:return Q.slice(1)+(S[De]||"")}}).replace(/\\\\/g,"\\"),_=d.slice(0,S.index)+l+d.slice(S.index+S[0].length))),_},-2),c(P,"$sum",function($){var l=this;$==null&&($=16),$=t($,w("Integer"),"to_int");for(var u=0,d=l.length,_=0;_<d;_++)u+=l.charCodeAt(_);return $<=0?u:u&Math.pow(2,$)-1},-1),c(P,"$swapcase",function(){var $=this,l=$.replace(/([a-z]+)|([A-Z]+)/g,function(u,d,_){return d?u.toUpperCase():u.toLowerCase()});return l}),c(P,"$to_f",function(){var $=this;if($.charAt(0)==="_")return 0;var l=parseFloat($.replace(/_/g,""));return isNaN(l)||l==1/0||l==-1/0?0:l}),c(P,"$to_i",function($){var l=this;$==null&&($=10);var u,d=l.toLowerCase(),_=t($,w("Integer"),"to_int");return(_===1||_<0||_>36)&&ne.$raise(w("ArgumentError"),"invalid radix "+_),/^\s*_/.test(d)?0:(d=d.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/,function(S,A,Q,De){switch(De.charAt(0)){case"+":case"-":return S;case"0":if(De.charAt(1)==="x"&&Q==="0x"&&(_===0||_===16))return S}switch(Q){case"0b":if(_===0||_===2)return _=2,A+De;break;case"0":case"0o":if(_===0||_===8)return _=8,A+De;break;case"0d":if(_===0||_===10)return _=10,A+De;break;case"0x":if(_===0||_===16)return _=16,A+De;break}return S}),u=parseInt(d.replace(/_(?!_)/g,""),_),isNaN(u)?0:u)},-1),c(P,"$to_proc",function x(){x.$$p;var $=this,l=le,u=le,d=le;return x.$$p=null,l=$.valueOf(),u=e.jsid(l),d=I(ne,"proc",[],function _(S){var A=_.$$p||le,Q,De;_.$$p=null,Q=h(arguments),De=Q,De.length===0&&ne.$raise(w("ArgumentError"),"no receiver given");var rt=De[0];rt==null&&(rt=le);var ft=rt[u];return ft?De=De.slice(1):(ft=rt.$method_missing,De[0]=l),typeof A=="function"&&(ft.$$p=A),De.length===0?ft.call(rt):ft.apply(rt,De)},-1),d.$$source_location=le,d}),c(P,"$to_s",function(){var $=this;return $.toString()}),c(P,"$tr",function($,l){var u=this;if($=t($,w("String"),"to_str").$to_s(),l=t(l,w("String"),"to_str").$to_s(),$.length==0||$===l)return u;var d,_,S,A,Q,De,rt,ft={},_t=$.split(""),At=_t.length,bt=l.split(""),Mt=bt.length,Et=!1,qt=null;_t[0]==="^"&&_t.length>1&&(Et=!0,_t.shift(),qt=bt[Mt-1],At-=1);var It=[],nt=null;for(_=!1,d=0;d<At;d++)if(A=_t[d],nt==null)nt=A,It.push(A);else if(A==="-")nt==="-"?(It.push("-"),It.push("-")):d==At-1?It.push("-"):_=!0;else if(_){for(Q=nt.charCodeAt(0),De=A.charCodeAt(0),Q>De&&ne.$raise(w("ArgumentError"),'invalid range "'+String.fromCharCode(Q)+"-"+String.fromCharCode(De)+'" in string transliteration'),S=Q+1;S<De;S++)It.push(String.fromCharCode(S));It.push(A),_=null,nt=null}else It.push(A);if(_t=It,At=_t.length,Et)for(d=0;d<At;d++)ft[_t[d]]=!0;else{if(Mt>0){var Re=[],Pe=null;for(_=!1,d=0;d<Mt;d++)if(A=bt[d],Pe==null)Pe=A,Re.push(A);else if(A==="-")Pe==="-"?(Re.push("-"),Re.push("-")):d==Mt-1?Re.push("-"):_=!0;else if(_){for(Q=Pe.charCodeAt(0),De=A.charCodeAt(0),Q>De&&ne.$raise(w("ArgumentError"),'invalid range "'+String.fromCharCode(Q)+"-"+String.fromCharCode(De)+'" in string transliteration'),S=Q+1;S<De;S++)Re.push(String.fromCharCode(S));Re.push(A),_=null,Pe=null}else Re.push(A);bt=Re,Mt=bt.length}var Ke=At-Mt;if(Ke>0){var b=Mt>0?bt[Mt-1]:"";for(d=0;d<Ke;d++)bt.push(b)}for(d=0;d<At;d++)ft[_t[d]]=bt[d]}var R="";for(d=0,rt=u.length;d<rt;d++){A=u.charAt(d);var ve=ft[A];Et?R+=ve==null?qt:A:R+=ve??A}return R}),c(P,"$tr_s",function($,l){var u=this;if($=t($,w("String"),"to_str").$to_s(),l=t(l,w("String"),"to_str").$to_s(),$.length==0)return u;var d,_,S,A,Q,De,rt,ft={},_t=$.split(""),At=_t.length,bt=l.split(""),Mt=bt.length,Et=!1,qt=null;_t[0]==="^"&&_t.length>1&&(Et=!0,_t.shift(),qt=bt[Mt-1],At-=1);var It=[],nt=null;for(_=!1,d=0;d<At;d++)if(A=_t[d],nt==null)nt=A,It.push(A);else if(A==="-")nt==="-"?(It.push("-"),It.push("-")):d==At-1?It.push("-"):_=!0;else if(_){for(Q=nt.charCodeAt(0),De=A.charCodeAt(0),Q>De&&ne.$raise(w("ArgumentError"),'invalid range "'+String.fromCharCode(Q)+"-"+String.fromCharCode(De)+'" in string transliteration'),S=Q+1;S<De;S++)It.push(String.fromCharCode(S));It.push(A),_=null,nt=null}else It.push(A);if(_t=It,At=_t.length,Et)for(d=0;d<At;d++)ft[_t[d]]=!0;else{if(Mt>0){var Re=[],Pe=null;for(_=!1,d=0;d<Mt;d++)if(A=bt[d],nt==null)nt=A,Re.push(A);else if(A==="-")Pe==="-"?(Re.push("-"),Re.push("-")):d==Mt-1?Re.push("-"):_=!0;else if(_){for(Q=nt.charCodeAt(0),De=A.charCodeAt(0),Q>De&&ne.$raise(w("ArgumentError"),'invalid range "'+String.fromCharCode(Q)+"-"+String.fromCharCode(De)+'" in string transliteration'),S=Q+1;S<De;S++)Re.push(String.fromCharCode(S));Re.push(A),_=null,nt=null}else Re.push(A);bt=Re,Mt=bt.length}var Ke=At-Mt;if(Ke>0){var b=Mt>0?bt[Mt-1]:"";for(d=0;d<Ke;d++)bt.push(b)}for(d=0;d<At;d++)ft[_t[d]]=bt[d]}var R="",ve=null;for(d=0,rt=u.length;d<rt;d++){A=u.charAt(d);var Le=ft[A];Et?Le==null?ve==null&&(R+=qt,ve=!0):(R+=A,ve=null):Le!=null?(ve==null||ve!==Le)&&(R+=Le,ve=Le):(R+=A,ve=null)}return R}),c(P,"$upcase",function(){var $=this;return $.toUpperCase()}),c(P,"$upto",function x($,l){var u=x.$$p||le,d=this;if(x.$$p=null,l==null&&(l=!1),u===le)return d.$enum_for("upto",$,l);var _,S,A=d.toString();if($=t($,w("String"),"to_str"),A.length===1&&$.length===1)for(_=A.charCodeAt(0),S=$.charCodeAt(0);_<=S&&!(l&&_===S);)u(String.fromCharCode(_)),_+=1;else if(parseInt(A,10).toString()===A&&parseInt($,10).toString()===$)for(_=parseInt(A,10),S=parseInt($,10);_<=S&&!(l&&_===S);)u(_.toString()),_+=1;else for(;A.length<=$.length&&A<=$&&!(l&&A===$);)u(A),A=A.$succ();return d},-2);function M(x){function $(ft){var _t="",At,bt=ft.length,Mt,Et,qt,It,nt;for(At=0;At<bt;At++)if(Mt=ft.charAt(At),Mt==="-"&&At>0&&At<bt-1&&!Et){for(qt=ft.charCodeAt(At-1),It=ft.charCodeAt(At+1),qt>It&&ne.$raise(w("ArgumentError"),'invalid range "'+qt+"-"+It+'" in string transliteration'),nt=qt+1;nt<It+1;nt++)_t+=String.fromCharCode(nt);Et=!0,At++}else Et=Mt==="\\",_t+=Mt;return _t}function l(ft,_t){if(ft.length===0)return _t;var At="",bt,Mt=ft.length,Et;for(bt=0;bt<Mt;bt++)Et=ft.charAt(bt),_t.indexOf(Et)!==-1&&(At+=Et);return At}var u,d,_,S,A,Q,De="",rt="";for(u=0,d=x.length;u<d;u++)_=t(x[u],w("String"),"to_str"),S=_.charAt(0)==="^"&&_.length>1,_=$(S?_.slice(1):_),S?rt=l(rt,_):De=l(De,_);if(De.length>0&&rt.length>0){for(Q="",u=0,d=De.length;u<d;u++)A=De.charAt(u),rt.indexOf(A)===-1&&(Q+=A);De=Q,rt=""}return De.length>0?"["+w("Regexp").$escape(De)+"]":rt.length>0?"[^"+w("Regexp").$escape(rt)+"]":null}return c(P,"$instance_variables",function(){return[]}),p(P,"$_load",function($){var l,u,d=this;return l=h(arguments),u=l,I(d,"new",F(u))},-1),c(P,"$unicode_normalize",function($){var l=this;return $==null&&($="nfc"),W(["nfc","nfd","nfkc","nfkd"]["$include?"]($))||ne.$raise(w("ArgumentError"),"Invalid normalization form "+$),l.normalize($.$upcase())},-1),c(P,"$unicode_normalized?",function($){var l=this;return $==null&&($="nfc"),l.$unicode_normalize($)["$=="](l)},-1),c(P,"$unpack",function($){return ne.$raise("To use String#unpack, you must first require 'corelib/string/unpack'.")}),c(P,"$unpack1",function($){return ne.$raise("To use String#unpack1, you must first require 'corelib/string/unpack'.")}),c(P,"$freeze",function(){var $=this;return typeof $=="string"||i($,"$$frozen",!0),$}),c(P,"$-@",function(){var $=this;return typeof $=="string"||$.$$frozen?$:$.encoding.name=="UTF-8"&&$.internal_encoding.name=="UTF-8"?$.toString():$.$dup().$freeze()}),c(P,"$frozen?",function(){var $=this;return typeof $=="string"||$.$$frozen===!0}),be(P,"+@","dup"),be(P,"===","=="),be(P,"byteslice","[]"),be(P,"eql?","=="),be(P,"equal?","==="),be(P,"object_id","__id__"),be(P,"slice","[]"),be(P,"succ","next"),be(P,"to_str","to_s"),be(P,"to_sym","intern"),f.$pristine(P,"initialize")}("::",String,O),fe(O[0],"Symbol",Ee("String"))};Opal.modules["corelib/enumerable"]=function(e){var t=e.truthy,r=e.coerce_to,n=e.yield1,i=e.yieldX,s=e.deny_frozen_access,c=e.module,f=e.send,p=e.slice,h=e.to_a,I=e.Opal,F=e.thrower,H=e.def,pe=e.Kernel,xe=e.return_val,ne=e.rb_gt,W=e.rb_times,X=e.rb_lt,ge=e.eqeq,se=e.rb_plus,me=e.rb_minus,J=e.rb_divide,be=e.rb_le,fe=e.hash2,Ae=e.lambda,O=e.not,Ee=e.alias,le=[],w=e.nil,Se=e.$$$;return e.add_stubs("each,public_send,destructure,to_enum,enumerator_size,new,yield,raise,slice_when,!,enum_for,flatten,map,to_proc,compact,to_a,warn,proc,==,nil?,respond_to?,coerce_to!,>,*,try_convert,<,+,-,ceil,/,size,select,__send__,length,<=,[],push,<<,[]=,===,inspect,<=>,first,reverse,sort,take,sort_by,compare,call,dup,sort!,map!,include?,-@,key?,values,transform_values,group_by,fetch,to_h,coerce_to?,class,zip,detect,find_all,collect_concat,collect,inject,entries"),function(N,re){var P=c(N,"Enumerable"),Me=[P].concat(re),ce=e.$r(Me);function M(x){return x.length===0&&(x=[w]),x.length>1&&(x=[x]),x}return H(P,"$all?",function x($){try{var l=F("return"),u=x.$$p||w,d=this;return x.$$p=null,t($!==void 0)?f(d,"each",[],function(S){var A,Q,De=w;if(A=p(arguments),Q=A,De=M(Q),t(f($,"public_send",["==="].concat(h(De)))))return w;l.$throw(!1)},{$$arity:-1,$$ret:l}):u!==w?f(d,"each",[],function(S){var A,Q;if(A=p(arguments),Q=A,t(e.yieldX(u,h(Q))))return w;l.$throw(!1)},{$$arity:-1,$$ret:l}):f(d,"each",[],function(S){var A,Q;if(A=p(arguments),Q=A,t(I.$destructure(Q)))return w;l.$throw(!1)},{$$arity:-1,$$ret:l}),!0}catch(_){if(_===l)return _.$v;throw _}},-1),H(P,"$any?",function x($){try{var l=F("return"),u=x.$$p||w,d=this;return x.$$p=null,t($!==void 0)?f(d,"each",[],function(S){var A,Q,De=w;if(A=p(arguments),Q=A,De=M(Q),t(f($,"public_send",["==="].concat(h(De)))))l.$throw(!0);else return w},{$$arity:-1,$$ret:l}):u!==w?f(d,"each",[],function(S){var A,Q;if(A=p(arguments),Q=A,t(e.yieldX(u,h(Q))))l.$throw(!0);else return w},{$$arity:-1,$$ret:l}):f(d,"each",[],function(S){var A,Q;if(A=p(arguments),Q=A,t(I.$destructure(Q)))l.$throw(!0);else return w},{$$arity:-1,$$ret:l}),!1}catch(_){if(_===l)return _.$v;throw _}},-1),H(P,"$chunk",function x(){var $=x.$$p||w,l=this;return x.$$p=null,$===w?f(l,"to_enum",["chunk"],function u(){var d=u.$$s==null?this:u.$$s;return d.$enumerator_size()},{$$s:l}):f(Se("Enumerator"),"new",[],function u(d){var _=u.$$s==null?this:u.$$s;d==null&&(d=w);var S=w,A=[];function Q(){A.length>0&&d.$yield(S,A)}_.$each.$$p=function(De){var rt=n($,De);rt===w?(Q(),A=[],S=w):(S===w||S===rt?A.push(De):(Q(),A=[De]),S=rt)},_.$each(),Q()},{$$s:l})}),H(P,"$chunk_while",function x(){var $=x.$$p||w,l=this;return x.$$p=null,$===w&&pe.$raise(Se("ArgumentError"),"no block given"),f(l,"slice_when",[],function(d,_){return d==null&&(d=w),_==null&&(_=w),e.yieldX($,[d,_])["$!"]()})}),H(P,"$collect",function x(){var $=x.$$p||w,l=this;if(x.$$p=null,$===w)return f(l,"enum_for",["collect"],function d(){var _=d.$$s==null?this:d.$$s;return _.$enumerator_size()},{$$s:l});var u=[];return l.$each.$$p=function(){var d=i($,arguments);u.push(d)},l.$each(),u}),H(P,"$collect_concat",function x(){var $=x.$$p||w,l=this;return x.$$p=null,$===w?f(l,"enum_for",["collect_concat"],function u(){var d=u.$$s==null?this:u.$$s;return d.$enumerator_size()},{$$s:l}):f(l,"map",[],$.$to_proc()).$flatten(1)}),H(P,"$compact",function(){var $=this;return $.$to_a().$compact()}),H(P,"$count",function x($){var l=x.$$p||w,u=this,d=w;return x.$$p=null,d=0,$!=null&&l!==w&&u.$warn("warning: given block not used"),t($!=null)?l=f(pe,"proc",[],function(S){var A,Q;return A=p(arguments),Q=A,I.$destructure(Q)["$=="]($)},-1):t(l["$nil?"]())&&(l=f(pe,"proc",[],xe(!0))),f(u,"each",[],function(S){var A,Q;return A=p(arguments),Q=A,t(i(l,Q))?d++:w},-1),d},-1),H(P,"$cycle",function x($){var l=x.$$p||w,u=this;if(x.$$p=null,$==null&&($=w),l===w)return f(u,"enum_for",["cycle",$],function A(){var Q=A.$$s==null?this:A.$$s;return t($["$nil?"]())?t(Q["$respond_to?"]("size"))?Se(Se("Float"),"INFINITY"):w:($=I["$coerce_to!"]($,Se("Integer"),"to_int"),t(ne($,0))?W(Q.$enumerator_size(),$):0)},{$$s:u});if(!t($["$nil?"]())&&($=I["$coerce_to!"]($,Se("Integer"),"to_int"),t($<=0)))return w;var d=[],_,S;if(u.$each.$$p=function(){var A=I.$destructure(arguments);n(l,A),d.push(A)},u.$each(),d.length===0)return w;if($===w)for(;;)for(_=0,S=d.length;_<S;_++)n(l,d[_]);else for(;$>1;){for(_=0,S=d.length;_<S;_++)n(l,d[_]);$--}},-1),H(P,"$detect",function x($){try{var l=F("return"),u=x.$$p||w,d=this;return x.$$p=null,u===w?d.$enum_for("detect",$):(f(d,"each",[],function(S){var A,Q,De=w;if(A=p(arguments),Q=A,De=I.$destructure(Q),t(e.yield1(u,De)))l.$throw(De);else return w},{$$arity:-1,$$ret:l}),$!==void 0?typeof $=="function"?$():$:w)}catch(_){if(_===l)return _.$v;throw _}},-1),H(P,"$drop",function($){var l=this;$=r($,Se("Integer"),"to_int"),t($<0)&&pe.$raise(Se("ArgumentError"),"attempt to drop negative size");var u=[],d=0;return l.$each.$$p=function(){$<=d&&u.push(I.$destructure(arguments)),d++},l.$each(),u}),H(P,"$drop_while",function x(){var $=x.$$p||w,l=this;if(x.$$p=null,$===w)return l.$enum_for("drop_while");var u=[],d=!0;return l.$each.$$p=function(){var _=I.$destructure(arguments);if(d){var S=n($,_);t(S)||(d=!1,u.push(_))}else u.push(_)},l.$each(),u}),H(P,"$each_cons",function x($){var l=x.$$p||w,u=this;if(x.$$p=null,t(arguments.length!=1)&&pe.$raise(Se("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 1)"),$=I.$try_convert($,Se("Integer"),"to_int"),t($<=0)&&pe.$raise(Se("ArgumentError"),"invalid size"),l===w)return f(u,"enum_for",["each_cons",$],function _(){var S=_.$$s==null?this:_.$$s,A=w;return A=S.$enumerator_size(),t(A["$nil?"]())?w:ge(A,0)||t(X(A,$))?0:se(me(A,$),1)},{$$s:u});var d=[];return u.$each.$$p=function(){var _=I.$destructure(arguments);d.push(_),d.length>$&&d.shift(),d.length==$&&n(l,d.slice(0,$))},u.$each(),u}),H(P,"$each_entry",function x($){var l=x.$$p||w,u,d,_=this;return x.$$p=null,u=p(arguments),d=u,l===w?f(_,"to_enum",["each_entry"].concat(h(d)),function S(){var A=S.$$s==null?this:S.$$s;return A.$enumerator_size()},{$$s:_}):(_.$each.$$p=function(){var S=I.$destructure(arguments);n(l,S)},_.$each.apply(_,d),_)},-1),H(P,"$each_slice",function x($){var l=x.$$p||w,u=this;if(x.$$p=null,$=r($,Se("Integer"),"to_int"),t($<=0)&&pe.$raise(Se("ArgumentError"),"invalid slice size"),l===w)return f(u,"enum_for",["each_slice",$],function _(){var S=_.$$s==null?this:_.$$s;return t(S["$respond_to?"]("size"))?J(S.$size(),$).$ceil():w},{$$s:u});var d=[];return u.$each.$$p=function(){var _=I.$destructure(arguments);d.push(_),d.length===$&&(n(l,d),d=[])},u.$each(),d.length>0&&n(l,d),u}),H(P,"$each_with_index",function x($){var l=x.$$p||w,u,d,_=this;if(x.$$p=null,u=p(arguments),d=u,l===w)return f(_,"enum_for",["each_with_index"].concat(h(d)),function A(){var Q=A.$$s==null?this:A.$$s;return Q.$enumerator_size()},{$$s:_});var S=0;return _.$each.$$p=function(){var A=I.$destructure(arguments);l(A,S),S++},_.$each.apply(_,d),_},-1),H(P,"$each_with_object",function x($){var l=x.$$p||w,u=this;return x.$$p=null,l===w?f(u,"enum_for",["each_with_object",$],function d(){var _=d.$$s==null?this:d.$$s;return _.$enumerator_size()},{$$s:u}):(u.$each.$$p=function(){var d=I.$destructure(arguments);l(d,$)},u.$each(),$)}),H(P,"$entries",function($){var l,u,d=this;l=p(arguments),u=l;var _=[];return d.$each.$$p=function(){_.push(I.$destructure(arguments))},d.$each.apply(d,u),_},-1),H(P,"$filter_map",function x(){var $=x.$$p||w,l=this;return x.$$p=null,$===w?f(l,"enum_for",["filter_map"],function u(){var d=u.$$s==null?this:u.$$s;return d.$enumerator_size()},{$$s:l}):f(f(l,"map",[],$.$to_proc()),"select",[],"itself".$to_proc())}),H(P,"$find_all",function x(){var $=x.$$p||w,l=this;if(x.$$p=null,$===w)return f(l,"enum_for",["find_all"],function d(){var _=d.$$s==null?this:d.$$s;return _.$enumerator_size()},{$$s:l});var u=[];return l.$each.$$p=function(){var d=I.$destructure(arguments),_=n($,d);t(_)&&u.push(d)},l.$each(),u}),H(P,"$find_index",function x($){try{var l=F("return"),u=x.$$p||w,d=this,_=w;return x.$$p=null,t($===void 0&&u===w)?d.$enum_for("find_index"):($!=null&&u!==w&&d.$warn("warning: given block not used"),_=0,t($!=null)?f(d,"each",[],function(A){var Q,De;return Q=p(arguments),De=Q,ge(I.$destructure(De),$)&&l.$throw(_),_+=1},{$$arity:-1,$$ret:l}):f(d,"each",[],function(A){var Q,De;return Q=p(arguments),De=Q,t(e.yieldX(u,h(De)))&&l.$throw(_),_+=1},{$$arity:-1,$$ret:l}),w)}catch(S){if(S===l)return S.$v;throw S}},-1),H(P,"$first",function($){try{var l=F("return"),u=this,d=w,_=w;return t($===void 0)?f(u,"each",[],function(A){A==null&&(A=w),l.$throw(A)},{$$ret:l}):(d=[],$=r($,Se("Integer"),"to_int"),t($<0)&&pe.$raise(Se("ArgumentError"),"attempt to take negative size"),t($==0)?[]:(_=0,f(u,"each",[],function(A){var Q,De;if(Q=p(arguments),De=Q,d.push(I.$destructure(De)),t($<=++_))l.$throw(d);else return w},{$$arity:-1,$$ret:l}),d))}catch(S){if(S===l)return S.$v;throw S}},-1),H(P,"$grep",function x($){var l=x.$$p||w,u=this,d=w;return x.$$p=null,d=[],f(u,"each",[],function(S){var A,Q,De=w;return A=p(arguments),Q=A,De=M(Q),t(f($,"__send__",["==="].concat(h(De))))?(l!==w?(t(ne(Q.$length(),1))&&(Q=[Q]),Q=e.yieldX(l,h(Q))):t(be(Q.$length(),1))&&(Q=Q["$[]"](0)),d.$push(Q)):w},-1),d}),H(P,"$grep_v",function x($){var l=x.$$p||w,u=this,d=w;return x.$$p=null,d=[],f(u,"each",[],function(S){var A,Q,De=w;return A=p(arguments),Q=A,De=M(Q),t(f($,"__send__",["==="].concat(h(De))))?w:(l!==w?(t(ne(Q.$length(),1))&&(Q=[Q]),Q=e.yieldX(l,h(Q))):t(be(Q.$length(),1))&&(Q=Q["$[]"](0)),d.$push(Q))},-1),d}),H(P,"$group_by",function x(){var $=x.$$p||w,l,u=this,d=w,_=w;return x.$$p=null,$===w?f(u,"enum_for",["group_by"],function S(){var A=S.$$s==null?this:S.$$s;return A.$enumerator_size()},{$$s:u}):(d=fe([],{}),u.$each.$$p=function(){var S=I.$destructure(arguments),A=n($,S);(t(_=d["$[]"](A))?_:(l=[A,[]],f(d,"[]=",l),l[l.length-1]))["$<<"](S)},u.$each(),d)}),H(P,"$include?",function($){try{var l=F("return"),u=this;return f(u,"each",[],function(_){var S,A;if(S=p(arguments),A=S,ge(I.$destructure(A),$))l.$throw(!0);else return w},{$$arity:-1,$$ret:l}),!1}catch(d){if(d===l)return d.$v;throw d}}),H(P,"$inject",function x($,l){var u=x.$$p||w,d=this;x.$$p=null;var _=$;return u!==w&&l===void 0?d.$each.$$p=function(){var S=I.$destructure(arguments);if(_===void 0){_=S;return}S=i(u,[_,S]),_=S}:(l===void 0&&(Se("Symbol")["$==="]($)||pe.$raise(Se("TypeError"),""+$.$inspect()+" is not a Symbol"),l=$,_=void 0),d.$each.$$p=function(){var S=I.$destructure(arguments);if(_===void 0){_=S;return}_=_.$__send__(l,S)}),d.$each(),_??w},-1),H(P,"$lazy",function(){var $=this;return f(Se(Se("Enumerator"),"Lazy"),"new",[$,$.$enumerator_size()],function(u,d){var _,S;return u==null&&(u=w),_=p(arguments,1),S=_,f(u,"yield",h(S))},-2)}),H(P,"$enumerator_size",function(){var $=this;return t($["$respond_to?"]("size"))?$.$size():w}),H(P,"$max",function x($){var l=x.$$p||w,u=this;if(x.$$p=null,$===void 0||$===w){var d,_;return u.$each.$$p=function(){var S=I.$destructure(arguments);if(d===void 0){d=S;return}l!==w?_=i(l,[S,d]):_=S["$<=>"](d),_===w&&pe.$raise(Se("ArgumentError"),"comparison failed"),_>0&&(d=S)},u.$each(),d===void 0?w:d}return $=r($,Se("Integer"),"to_int"),f(u,"sort",[],l.$to_proc()).$reverse().$first($)},-1),H(P,"$max_by",function x($){var l=x.$$p||w,u=this;if(x.$$p=null,$==null&&($=w),!t(l))return f(u,"enum_for",["max_by",$],function S(){var A=S.$$s==null?this:S.$$s;return A.$enumerator_size()},{$$s:u});if(!t($["$nil?"]()))return f(u,"sort_by",[],l.$to_proc()).$reverse().$take($);var d,_;return u.$each.$$p=function(){var S=I.$destructure(arguments),A=n(l,S);if(d===void 0){d=S,_=A;return}A["$<=>"](_)>0&&(d=S,_=A)},u.$each(),d===void 0?w:d},-1),H(P,"$min",function x($){var l=x.$$p||w,u=this;if(x.$$p=null,$==null&&($=w),!t($["$nil?"]()))return l!==w?f(u,"sort",[],function(S,A){return S==null&&(S=w),A==null&&(A=w),e.yieldX(l,[S,A])}).$take($):u.$sort().$take($);var d;return l!==w?u.$each.$$p=function(){var _=I.$destructure(arguments);if(d===void 0){d=_;return}var S=l(_,d);S===w&&pe.$raise(Se("ArgumentError"),"comparison failed"),S<0&&(d=_)}:u.$each.$$p=function(){var _=I.$destructure(arguments);if(d===void 0){d=_;return}I.$compare(_,d)<0&&(d=_)},u.$each(),d===void 0?w:d},-1),H(P,"$min_by",function x($){var l=x.$$p||w,u=this;if(x.$$p=null,$==null&&($=w),!t(l))return f(u,"enum_for",["min_by",$],function S(){var A=S.$$s==null?this:S.$$s;return A.$enumerator_size()},{$$s:u});if(!t($["$nil?"]()))return f(u,"sort_by",[],l.$to_proc()).$take($);var d,_;return u.$each.$$p=function(){var S=I.$destructure(arguments),A=n(l,S);if(d===void 0){d=S,_=A;return}A["$<=>"](_)<0&&(d=S,_=A)},u.$each(),d===void 0?w:d},-1),H(P,"$minmax",function x(){var $=x.$$p||w,l=this,u=w;x.$$p=null,$=t(u=$)?u:f(pe,"proc",[],function(Q,De){return Q==null&&(Q=w),De==null&&(De=w),Q["$<=>"](De)});var d=w,_=w,S=!0;return l.$each.$$p=function(){var A=I.$destructure(arguments);if(S)d=_=A,S=!1;else{var Q=$.$call(d,A);Q===w?pe.$raise(Se("ArgumentError"),"comparison failed"):Q>0&&(d=A);var De=$.$call(_,A);De===w?pe.$raise(Se("ArgumentError"),"comparison failed"):De<0&&(_=A)}},l.$each(),[d,_]}),H(P,"$minmax_by",function x(){var $=x.$$p||w,l=this;if(x.$$p=null,!t($))return f(l,"enum_for",["minmax_by"],function A(){var Q=A.$$s==null?this:A.$$s;return Q.$enumerator_size()},{$$s:l});var u=w,d=w,_,S;return l.$each.$$p=function(){var A=I.$destructure(arguments),Q=n($,A);(_===void 0||Q["$<=>"](_)<0)&&(u=A,_=Q),(S===void 0||Q["$<=>"](S)>0)&&(d=A,S=Q)},l.$each(),[u,d]}),H(P,"$none?",function x($){try{var l=F("return"),u=x.$$p||w,d=this;return x.$$p=null,t($!==void 0)?f(d,"each",[],function(S){var A,Q,De=w;if(A=p(arguments),Q=A,De=M(Q),t(f($,"public_send",["==="].concat(h(De)))))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}):u!==w?f(d,"each",[],function(S){var A,Q;if(A=p(arguments),Q=A,t(e.yieldX(u,h(Q))))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}):f(d,"each",[],function(S){var A,Q,De=w;if(A=p(arguments),Q=A,De=I.$destructure(Q),t(De))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}),!0}catch(_){if(_===l)return _.$v;throw _}},-1),H(P,"$one?",function x($){try{var l=F("return"),u=x.$$p||w,d=this,_=w;return x.$$p=null,_=0,t($!==void 0)?f(d,"each",[],function(A){var Q,De,rt=w;if(Q=p(arguments),De=Q,rt=M(De),t(f($,"public_send",["==="].concat(h(rt)))))if(_=se(_,1),t(ne(_,1)))l.$throw(!1);else return w;else return w},{$$arity:-1,$$ret:l}):u!==w?f(d,"each",[],function(A){var Q,De;if(Q=p(arguments),De=Q,!t(e.yieldX(u,h(De))))return w;if(_=se(_,1),t(ne(_,1)))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}):f(d,"each",[],function(A){var Q,De;if(Q=p(arguments),De=Q,!t(I.$destructure(De)))return w;if(_=se(_,1),t(ne(_,1)))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}),_["$=="](1)}catch(S){if(S===l)return S.$v;throw S}},-1),H(P,"$partition",function x(){var $=x.$$p||w,l=this;if(x.$$p=null,$===w)return f(l,"enum_for",["partition"],function _(){var S=_.$$s==null?this:_.$$s;return S.$enumerator_size()},{$$s:l});var u=[],d=[];return l.$each.$$p=function(){var _=I.$destructure(arguments),S=n($,_);t(S)?u.push(_):d.push(_)},l.$each(),[u,d]}),H(P,"$reject",function x(){var $=x.$$p||w,l=this;if(x.$$p=null,$===w)return f(l,"enum_for",["reject"],function d(){var _=d.$$s==null?this:d.$$s;return _.$enumerator_size()},{$$s:l});var u=[];return l.$each.$$p=function(){var d=I.$destructure(arguments),_=n($,d);t(_)||u.push(d)},l.$each(),u}),H(P,"$reverse_each",function x(){var $=x.$$p||w,l=this;if(x.$$p=null,$===w)return f(l,"enum_for",["reverse_each"],function _(){var S=_.$$s==null?this:_.$$s;return S.$enumerator_size()},{$$s:l});var u=[];l.$each.$$p=function(){u.push(arguments)},l.$each();for(var d=u.length-1;d>=0;d--)i($,u[d]);return u}),H(P,"$slice_before",function x($){var l=x.$$p||w,u=this;return x.$$p=null,t($===void 0&&l===w)&&pe.$raise(Se("ArgumentError"),"both pattern and block are given"),t($!==void 0&&l!==w||arguments.length>1)&&pe.$raise(Se("ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),f(Se("Enumerator"),"new",[],function d(_){var S=d.$$s==null?this:d.$$s;_==null&&(_=w);var A=[];l!==w?$===void 0?S.$each.$$p=function(){var Q=I.$destructure(arguments),De=n(l,Q);t(De)&&A.length>0&&(_["$<<"](A),A=[]),A.push(Q)}:S.$each.$$p=function(){var Q=I.$destructure(arguments),De=l(Q,$.$dup());t(De)&&A.length>0&&(_["$<<"](A),A=[]),A.push(Q)}:S.$each.$$p=function(){var Q=I.$destructure(arguments),De=$["$==="](Q);t(De)&&A.length>0&&(_["$<<"](A),A=[]),A.push(Q)},S.$each(),A.length>0&&_["$<<"](A)},{$$s:u})},-1),H(P,"$slice_after",function x($){var l=x.$$p||w,u=this;return x.$$p=null,t($===void 0&&l===w)&&pe.$raise(Se("ArgumentError"),"both pattern and block are given"),t($!==void 0&&l!==w||arguments.length>1)&&pe.$raise(Se("ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),t($!==void 0)&&(l=f(pe,"proc",[],function(_){return _==null&&(_=w),$["$==="](_)})),f(Se("Enumerator"),"new",[],function d(_){var S=d.$$s==null?this:d.$$s;_==null&&(_=w);var A;S.$each.$$p=function(){var Q=I.$destructure(arguments),De=n(l,Q);A==null&&(A=[]),t(De)?(A.push(Q),_.$yield(A),A=null):A.push(Q)},S.$each(),A!=null&&_.$yield(A)},{$$s:u})},-1),H(P,"$slice_when",function x(){var $=x.$$p||w,l=this;return x.$$p=null,$===w&&pe.$raise(Se("ArgumentError"),"wrong number of arguments (0 for 1)"),f(Se("Enumerator"),"new",[],function u(d){var _=u.$$s==null?this:u.$$s;d==null&&(d=w);var S=w,A=w;_.$each_cons.$$p=function(){var Q=I.$destructure(arguments),De=Q[0],rt=Q[1],ft=i($,[De,rt]);A=rt,S===w&&(S=[]),t(ft)?(S.push(De),d.$yield(S),S=[]):S.push(De)},_.$each_cons(2),S!==w&&(S.push(A),d.$yield(S))},{$$s:l})}),H(P,"$sort",function x(){var $=x.$$p||w,l=this,u=w;return x.$$p=null,u=l.$to_a(),$===w&&($=Ae(function(_,S){return _==null&&(_=w),S==null&&(S=w),_["$<=>"](S)})),f(u,"sort",[],$.$to_proc())}),H(P,"$sort_by",function x(){var $=x.$$p||w,l=this,u=w;return x.$$p=null,$===w?f(l,"enum_for",["sort_by"],function d(){var _=d.$$s==null?this:d.$$s;return _.$enumerator_size()},{$$s:l}):(u=f(l,"map",[],function(){var _=w;return _=I.$destructure(arguments),[e.yield1($,_),_]}),f(u,"sort!",[],function(_,S){return _==null&&(_=w),S==null&&(S=w),_[0]["$<=>"](S[0])}),f(u,"map!",[],function(_){return _==null&&(_=w),_[1]}))}),H(P,"$sum",function x($){var l=x.$$p||w,u=this,d=w,_=w;return x.$$p=null,$==null&&($=0),d=$,_=0,f(u,"each",[],function(A){var Q,De,rt=w,ft=w,_t=w;return Q=p(arguments),De=Q,rt=l!==w?e.yieldX(l,h(De)):I.$destructure(De),O([Se(Se("Float"),"INFINITY"),Se(Se("Float"),"INFINITY")["$-@"]()]["$include?"](rt))&&t(rt["$respond_to?"]("-"))?(ft=me(rt,_),_t=se(d,ft),_=me(me(_t,d),ft),d=_t):d=se(d,rt)},-1),d},-1),H(P,"$take",function($){var l=this;return l.$first($)}),H(P,"$take_while",function x(){try{var $=F("return"),l=x.$$p||w,u=this,d=w;return x.$$p=null,t(l)?(d=[],f(u,"each",[],function(S){var A,Q,De=w;return A=p(arguments),Q=A,De=I.$destructure(Q),t(e.yield1(l,De))||$.$throw(d),d.push(De)},{$$arity:-1,$$ret:$})):u.$enum_for("take_while")}catch(_){if(_===$)return _.$v;throw _}}),H(P,"$uniq",function x(){var $=x.$$p||w,l=this,u=w;return x.$$p=null,u=fe([],{}),f(l,"each",[],function(_){var S,A,Q,De=w,rt=w;return S=p(arguments),A=S,De=I.$destructure(A),rt=$!==w?e.yield1($,De):De,t(u["$key?"](rt))?w:(Q=[rt,De],f(u,"[]=",Q),Q[Q.length-1])},-1),u.$values()}),H(P,"$tally",function($){var l=this,u=w;return $&&$!==w&&s($),u=f(f(l,"group_by",[],"itself".$to_proc()),"transform_values",[],"count".$to_proc()),t($)?(f(u,"each",[],function(_,S){var A;return _==null&&(_=w),S==null&&(S=w),A=[_,se($.$fetch(_,0),S)],f($,"[]=",A),A[A.length-1]}),$):u},-1),H(P,"$to_h",function x($){var l=x.$$p||w,u,d,_=this;if(x.$$p=null,u=p(arguments),d=u,l!==w)return f(f(_,"map",[],l.$to_proc()),"to_h",h(d));var S=fe([],{});return _.$each.$$p=function(){var A=I.$destructure(arguments),Q=I["$coerce_to?"](A,Se("Array"),"to_ary"),De,rt;Q.$$is_array||pe.$raise(Se("TypeError"),"wrong element type "+Q.$class()+" (expected array)"),Q.length!==2&&pe.$raise(Se("ArgumentError"),"wrong array length (expected 2, was "+Q.$length()+")"),De=Q[0],rt=Q[1],e.hash_put(S,De,rt)},_.$each.apply(_,d),S},-1),H(P,"$to_set",function x($,l){var u=x.$$p||w,d,_,S,A=this;return x.$$p=null,d=p(arguments),d.length>0&&(_=d.shift()),_==null&&(_=ce("Set")),S=d,f(_,"new",[A].concat(h(S)),u.$to_proc())},-1),H(P,"$zip",function x($){x.$$p;var l,u,d=this;return x.$$p=null,l=p(arguments),u=l,f(d.$to_a(),"zip",h(u))},-1),Ee(P,"find","detect"),Ee(P,"filter","find_all"),Ee(P,"flat_map","collect_concat"),Ee(P,"map","collect"),Ee(P,"member?","include?"),Ee(P,"reduce","inject"),Ee(P,"select","find_all"),Ee(P,"to_a","entries")}("::",le)};Opal.modules["corelib/enumerator/arithmetic_sequence"]=function(e){var t=e.klass,r=e.truthy,n=e.to_a,i=e.eqeq,s=e.Kernel,c=e.def,f=e.rb_gt,p=e.rb_lt,h=e.rb_le,I=e.rb_ge,F=e.rb_plus,H=e.rb_minus,pe=e.eqeqeq,xe=e.not,ne=e.rb_times,W=e.rb_divide,X=e.alias,ge=[],se=e.nil,me=e.$$$;return e.add_stubs("is_a?,==,raise,respond_to?,class,attr_reader,begin,end,exclude_end?,>,step,<,<=,>=,-@,_lesser_than_end?,<<,+,-,===,%,_greater_than_begin?,reverse,!,include?,*,to_i,abs,/,hash,inspect"),function(J,be,fe){var Ae=t(J,be,"Enumerator"),O=[Ae].concat(fe);return function(Ee,le,w){var Se=t(Ee,le,"ArithmeticSequence"),N=[Se].concat(w),re=e.$r(N),P=Se.$$prototype;P.step_arg2=P.receiver_num=P.step_arg1=P.step=P.range=P.topfx=P.bypfx=P.creation_method=P.skipped_arg=se,e.prop(Se.$$prototype,"$$is_arithmetic_seq",!0);var Me=1/0;return c(Se,"$initialize",function(M,x,$){var l,u=this,d=se;return $==null&&($="step"),u.creation_method=$,r(M["$is_a?"](me("Array")))?(l=[].concat(n(M)),u.step_arg1=l[0]==null?se:l[0],u.step_arg2=l[1]==null?se:l[1],u.topfx=l[2]==null?se:l[2],u.bypfx=l[3]==null?se:l[3],u.receiver_num=x,u.step=1,u.range=r(u.step_arg2)?(u.step=u.step_arg2,e.Range.$new(u.receiver_num,u.step_arg1,!1)):r(u.step_arg1)?e.Range.$new(u.receiver_num,u.step_arg1,!1):e.Range.$new(u.receiver_num,se,!1)):(r(x)||(u.skipped_arg=!0),l=[M,r(d=x)?d:1],u.range=l[0],u.step=l[1]),u.object=u,i(u.step,0)&&s.$raise(re("ArgumentError"),"step can't be 0"),r(u.step["$respond_to?"]("to_int"))?se:s.$raise(re("ArgumentError"),"no implicit conversion of "+u.step.$class()+" into Integer")},-2),Se.$attr_reader("step"),c(Se,"$begin",function(){var M=this;return M.range.$begin()}),c(Se,"$end",function(){var M=this;return M.range.$end()}),c(Se,"$exclude_end?",function(){var M=this;return M.range["$exclude_end?"]()}),c(Se,"$_lesser_than_end?",function(M){var x=this,$=se,l=se;return $=r(l=x.$end())?l:Me,r(f(x.$step(),0))?r(x["$exclude_end?"]())?p(M,$):h(M,$):r(x["$exclude_end?"]())?f(M,$):I(M,$)}),c(Se,"$_greater_than_begin?",function(M){var x=this,$=se,l=se;return $=r(l=x.$begin())?l:Me["$-@"](),r(f(x.$step(),0))?f(M,$):p(M,$)}),c(Se,"$first",function(M){var x=this,$=se,l=se,u=se;if($=r(l=x.$begin())?l:Me["$-@"](),!r(M))return r(x["$_lesser_than_end?"]($))?$:se;for(u=[];r(r(l=x["$_lesser_than_end?"]($))?f(M,0):l);)u["$<<"]($),$=F($,x.$step()),M=H(M,1);return u},-1),c(Se,"$each",function ce(){var M=ce.$$p||se,x=this,$=se,l=se;if(ce.$$p=null,M===se)return x;for(pe(se,$=x.$begin())&&s.$raise(re("TypeError"),"nil can't be coerced into Integer"),l=r($=x.$begin())?$:Me["$-@"]();r(x["$_lesser_than_end?"](l));)e.yield1(M,l),l=F(l,x.$step());return x}),c(Se,"$last",function(M){var x=this,$=se,l=se,u=se;if(pe(Me,$=x.$end())||pe(Me["$-@"](),$)?s.$raise(me("FloatDomainError"),x.$end()):pe(se,$)&&s.$raise(me("RangeError"),"cannot get the last element of endless arithmetic sequence"),l=H(x.$end(),H(x.$end(),x.$begin())["$%"](x.$step())),r(x["$_lesser_than_end?"](l))||(l=H(l,x.$step())),!r(M))return r(x["$_greater_than_begin?"](l))?l:se;for(u=[];r(r($=x["$_greater_than_begin?"](l))?f(M,0):$);)u["$<<"](l),l=H(l,x.$step()),M=H(M,1);return u.$reverse()},-1),c(Se,"$size",function(){var M=this,x=se,$=se;return x=r(f(M.$step(),0))?1:-1,xe(M["$_lesser_than_end?"](M.$begin()))?0:r([Me["$-@"](),Me]["$include?"](M.$step()))?1:r([ne(Me["$-@"](),x),se]["$include?"](M.$begin()))||r([ne(Me,x),se]["$include?"](M.$end()))?Me:($=H(M.$end(),H(M.$end(),M.$begin())["$%"](M.$step())),r(M["$_lesser_than_end?"]($))||($=H($,M.$step())),F(W(H($,M.$begin()),M.$step()).$abs().$to_i(),1))}),c(Se,"$==",function(M){var x=this,$=se,l=se,u=se,d=se;return r($=r(l=r(u=r(d=x.$class()["$=="](M.$class()))?x.$begin()["$=="](M.$begin()):d)?x.$end()["$=="](M.$end()):u)?x.$step()["$=="](M.$step()):l)?x["$exclude_end?"]()["$=="](M["$exclude_end?"]()):$}),c(Se,"$hash",function(){var M=this;return[M.$begin(),M.$end(),M.$step(),M["$exclude_end?"]()].$hash()}),c(Se,"$inspect",function(){var M=this,x=se;return r(M.receiver_num)?(x=r(M.step_arg2)?"("+M.topfx+M.step_arg1.$inspect()+", "+M.bypfx+M.step_arg2.$inspect()+")":r(M.step_arg1)?"("+M.topfx+M.step_arg1.$inspect()+")":se,"("+M.receiver_num.$inspect()+"."+M.creation_method+x+")"):(x=r(M.skipped_arg)?se:"("+M.step+")","(("+M.range.$inspect()+")."+M.creation_method+x+")")}),X(Se,"===","=="),X(Se,"eql?","==")}(Ae,Ae,O)}("::",null,ge)};Opal.modules["corelib/enumerator/chain"]=function(e){var t=e.deny_frozen_access,r=e.klass,n=e.slice,i=e.def,s=e.send,c=e.to_a,f=e.truthy,p=e.rb_plus,h=e.thrower,I=e.nil,F=e.$$$;return e.add_stubs("to_enum,size,each,<<,to_proc,include?,+,reverse_each,respond_to?,rewind,inspect"),function(H,pe){var xe=r(H,pe,"Enumerator");return function(ne,W){var X=r(ne,W,"Chain"),ge=X.$$prototype;return ge.enums=ge.iterated=I,i(X,"$initialize",function(me){var J,be,fe=this;return J=n(arguments),be=J,t(fe),fe.enums=be,fe.iterated=[],fe.object=fe},-1),i(X,"$each",function se(me){var J=se.$$p||I,be,fe,Ae=this;return se.$$p=null,be=n(arguments),fe=be,J===I?s(Ae,"to_enum",["each"].concat(c(fe)),function O(){var Ee=O.$$s==null?this:O.$$s;return Ee.$size()},{$$s:Ae}):(s(Ae.enums,"each",[],function O(Ee){var le=O.$$s==null?this:O.$$s;return le.iterated==null&&(le.iterated=I),Ee==null&&(Ee=I),le.iterated["$<<"](Ee),s(Ee,"each",c(fe),J.$to_proc())},{$$s:Ae}),Ae)},-1),i(X,"$size",function(me){try{var J=h("return"),be,fe,Ae=this,O=I;return be=n(arguments),fe=be,O=0,s(Ae.enums,"each",[],function(le){var w=I;return le==null&&(le=I),w=s(le,"size",c(fe)),f([I,F(F("Float"),"INFINITY")]["$include?"](w))&&J.$throw(w),O=p(O,w)},{$$ret:J}),O}catch(Ee){if(Ee===J)return Ee.$v;throw Ee}},-1),i(X,"$rewind",function(){var me=this;return s(me.iterated,"reverse_each",[],function(be){return be==null&&(be=I),f(be["$respond_to?"]("rewind"))?be.$rewind():I}),me.iterated=[],me}),i(X,"$inspect",function(){var me=this;return"#<Enumerator::Chain: "+me.enums.$inspect()+">"})}(xe,xe)}("::",null)};Opal.modules["corelib/enumerator/generator"]=function(e){var t=e.deny_frozen_access,r=e.klass,n=e.truthy,i=e.Kernel,s=e.def,c=e.slice,f=e.send,p=[],h=e.nil,I=e.$$$;return e.add_stubs("include,raise,new,to_proc"),function(F,H,pe){var xe=r(F,H,"Enumerator"),ne=[xe].concat(pe);return function(W,X,ge){var se=r(W,X,"Generator"),me=[se].concat(ge),J=e.$r(me),be=se.$$prototype;return be.block=h,se.$include(I("Enumerable")),s(se,"$initialize",function fe(){var Ae=fe.$$p||h,O=this;return fe.$$p=null,t(O),n(Ae)||i.$raise(I("LocalJumpError"),"no block given"),O.block=Ae}),s(se,"$each",function fe(Ae){var O=fe.$$p||h,Ee,le,w=this,Se=h;fe.$$p=null,Ee=c(arguments),le=Ee,Se=f(J("Yielder"),"new",[],O.$to_proc());try{le.unshift(Se),e.yieldX(w.block,le)}catch(N){if(N&&N.$thrower_type=="breaker")return N.$v;throw N}return w},-1)}(ne[0],null,ne)}(p[0],null,p)};Opal.modules["corelib/enumerator/lazy"]=function(e){var t=e.truthy,r=e.coerce_to,n=e.yield1,i=e.yieldX,s=e.deny_frozen_access,c=e.klass,f=e.slice,p=e.send2,h=e.find_super,I=e.to_a,F=e.defs,H=e.Kernel,pe=e.send,xe=e.def,ne=e.return_self,W=e.Opal,X=e.rb_lt,ge=e.eqeqeq,se=e.rb_plus,me=e.alias,J=[],be=e.nil,fe=e.$$$;return e.add_stubs("raise,each,new,enumerator_size,yield,respond_to?,try_convert,<,===,+,for,class,to_proc,destructure,inspect,to_a,find_all,collect_concat,collect,enum_for"),function(Ae,O,Ee){var le=c(Ae,O,"Enumerator"),w=[le].concat(Ee);return function(Se,N,re){var P=c(Se,N,"Lazy"),Me=[P].concat(re),ce=e.$r(Me),M=P.$$prototype;return M.enumerator=be,c(P,fe("Exception"),"StopLazyError"),F(P,"$for",function x($,l){var u,d,_=x.$$p||be,S=this,A=be;return x.$$p=null,u=f(arguments,1),d=u,A=p(S,h(S,"for",x,!1,!0),"for",[$].concat(I(d)),_),A.enumerator=$,A},-2),xe(P,"$initialize",function x($,l){var u=x.$$p||be,d=this;return x.$$p=null,l==null&&(l=be),s(d),u===be&&H.$raise(fe("ArgumentError"),"tried to call lazy new without a block"),d.enumerator=$,p(d,h(d,"initialize",x,!1,!0),"initialize",[l],function(S,A){var Q,De;S==null&&(S=be),Q=f(arguments,1),De=Q;try{return pe($,"each",I(De),function(ft){var _t,At;_t=f(arguments),At=_t,At.unshift(S),i(u,At)},-1)}catch(rt){if(e.rescue(rt,[ce("StopLazyError")]))try{return be}finally{e.pop_exception()}else throw rt}},-2)},-2),xe(P,"$lazy",ne),xe(P,"$collect",function x(){var $=x.$$p||be,l=this;return x.$$p=null,t($)||H.$raise(fe("ArgumentError"),"tried to call lazy map without a block"),pe(ce("Lazy"),"new",[l,l.$enumerator_size()],function(d,_){var S,A;d==null&&(d=be),S=f(arguments,1),A=S;var Q=i($,A);d.$yield(Q)},-2)}),xe(P,"$collect_concat",function x(){var $=x.$$p||be,l=this;return x.$$p=null,t($)||H.$raise(fe("ArgumentError"),"tried to call lazy map without a block"),pe(ce("Lazy"),"new",[l,be],function(d,_){var S,A;d==null&&(d=be),S=f(arguments,1),A=S;var Q=i($,A);if(Q["$respond_to?"]("force")&&Q["$respond_to?"]("each"))pe(Q,"each",[],function(ft){return ft==null&&(ft=be),d.$yield(ft)});else{var De=W.$try_convert(Q,fe("Array"),"to_ary");De===be?d.$yield(Q):pe(Q,"each",[],function(ft){return ft==null&&(ft=be),d.$yield(ft)})}},-2)}),xe(P,"$drop",function($){var l=this,u=be,d=be,_=be;return $=r($,fe("Integer"),"to_int"),t(X($,0))&&H.$raise(fe("ArgumentError"),"attempt to drop negative size"),u=l.$enumerator_size(),d=ge(fe("Integer"),u)&&t(X($,u))?$:u,_=0,pe(ce("Lazy"),"new",[l,d],function(A,Q){var De,rt;return A==null&&(A=be),De=f(arguments,1),rt=De,t(X(_,$))?_=se(_,1):pe(A,"yield",I(rt))},-2)}),xe(P,"$drop_while",function x(){var $=x.$$p||be,l=this,u=be;return x.$$p=null,t($)||H.$raise(fe("ArgumentError"),"tried to call lazy drop_while without a block"),u=!0,pe(ce("Lazy"),"new",[l,be],function(_,S){var A,Q;if(_==null&&(_=be),A=f(arguments,1),Q=A,t(u)){var De=i($,Q);t(De)||(u=!1,pe(_,"yield",I(Q)))}else return pe(_,"yield",I(Q))},-2)}),xe(P,"$enum_for",function x($,l){var u=x.$$p||be,d,_,S,A=this;return x.$$p=null,d=f(arguments),d.length>0&&(_=d.shift()),_==null&&(_="each"),S=d,pe(A.$class(),"for",[A,_].concat(I(S)),u.$to_proc())},-1),xe(P,"$find_all",function x(){var $=x.$$p||be,l=this;return x.$$p=null,t($)||H.$raise(fe("ArgumentError"),"tried to call lazy select without a block"),pe(ce("Lazy"),"new",[l,be],function(d,_){var S,A;d==null&&(d=be),S=f(arguments,1),A=S;var Q=i($,A);t(Q)&&pe(d,"yield",I(A))},-2)}),xe(P,"$grep",function x($){var l=x.$$p||be,u=this;return x.$$p=null,t(l)?pe(ce("Lazy"),"new",[u,be],function(_,S){var A,Q;_==null&&(_=be),A=f(arguments,1),Q=A;var De=W.$destructure(Q),rt=$["$==="](De);t(rt)&&(rt=n(l,De),_.$yield(n(l,De)))},-2):pe(ce("Lazy"),"new",[u,be],function(_,S){var A,Q;_==null&&(_=be),A=f(arguments,1),Q=A;var De=W.$destructure(Q),rt=$["$==="](De);t(rt)&&_.$yield(De)},-2)}),xe(P,"$reject",function x(){var $=x.$$p||be,l=this;return x.$$p=null,t($)||H.$raise(fe("ArgumentError"),"tried to call lazy reject without a block"),pe(ce("Lazy"),"new",[l,be],function(d,_){var S,A;d==null&&(d=be),S=f(arguments,1),A=S;var Q=i($,A);t(Q)||pe(d,"yield",I(A))},-2)}),xe(P,"$take",function($){var l=this,u=be,d=be,_=be;return $=r($,fe("Integer"),"to_int"),t(X($,0))&&H.$raise(fe("ArgumentError"),"attempt to take negative size"),u=l.$enumerator_size(),d=ge(fe("Integer"),u)&&t(X($,u))?$:u,_=0,pe(ce("Lazy"),"new",[l,d],function(A,Q){var De,rt;return A==null&&(A=be),De=f(arguments,1),rt=De,t(X(_,$))?(pe(A,"yield",I(rt)),_=se(_,1)):H.$raise(ce("StopLazyError"))},-2)}),xe(P,"$take_while",function x(){var $=x.$$p||be,l=this;return x.$$p=null,t($)||H.$raise(fe("ArgumentError"),"tried to call lazy take_while without a block"),pe(ce("Lazy"),"new",[l,be],function(d,_){var S,A;d==null&&(d=be),S=f(arguments,1),A=S;var Q=i($,A);t(Q)?pe(d,"yield",I(A)):H.$raise(ce("StopLazyError"))},-2)}),xe(P,"$inspect",function(){var $=this;return"#<"+$.$class()+": "+$.enumerator.$inspect()+">"}),me(P,"force","to_a"),me(P,"filter","find_all"),me(P,"flat_map","collect_concat"),me(P,"map","collect"),me(P,"select","find_all"),me(P,"to_enum","enum_for")}(le,le,w)}("::",null,J)};Opal.modules["corelib/enumerator/yielder"]=function(e){var t=e.klass,r=e.def,n=e.slice,i=e.send,s=e.to_a,c=[],f=e.nil;return e.add_stubs("yield,proc"),function(p,h,I){var F=t(p,h,"Enumerator"),H=[F].concat(I);return function(pe,xe){var ne=t(pe,xe,"Yielder"),W=ne.$$prototype;return W.block=f,r(ne,"$initialize",function X(){var ge=X.$$p||f,se=this;return X.$$p=null,se.block=ge,se}),r(ne,"$yield",function(ge){var se,me,J=this;se=n(arguments),me=se;var be=e.yieldX(J.block,me);if(be&&be.$thrower_type=="break")throw be;return be},-1),r(ne,"$<<",function(ge){var se=this;return se.$yield(ge),se}),r(ne,"$to_proc",function(){var ge=this;return i(ge,"proc",[],function se(me){var J,be,fe=se.$$s==null?this:se.$$s;return J=n(arguments),be=J,i(fe,"yield",s(be))},{$$arity:-1,$$s:ge})})}(H[0],null)}(c[0],null,c)};Opal.modules["corelib/enumerator"]=function(e){var t=e.slice,r=e.coerce_to,n=e.deny_frozen_access,i=e.klass,s=e.defs,c=e.truthy,f=e.send,p=e.not,h=e.def,I=e.rb_plus,F=e.to_a,H=e.Opal,pe=e.send2,xe=e.find_super,ne=e.rb_ge,W=e.Kernel,X=e.rb_le,ge=e.alias,se=e.top,me=[],J=e.nil,be=e.$$$;return e.add_stubs("require,include,allocate,new,to_proc,!,respond_to?,empty?,nil?,+,class,__send__,call,enum_for,size,destructure,map,>=,length,raise,[],peek_values,<=,next_values,inspect,any?,each_with_object,autoload"),se.$require("corelib/enumerable"),function(fe,Ae,O){var Ee=i(fe,Ae,"Enumerator"),le=[Ee].concat(O),w=e.$r(le),Se=Ee.$$prototype;return Se.size=Se.args=Se.object=Se.method=Se.values=Se.cursor=J,Ee.$include(be("Enumerable")),Ee.$$prototype.$$is_enumerator=!0,s(Ee,"$for",function N(re,P,Me){var ce=N.$$p||J,M,x,$,l=this;N.$$p=null,M=t(arguments,1),M.length>0&&(x=M.shift()),x==null&&(x="each"),$=M;var u=l.$allocate();return u.object=re,u.size=ce,u.method=x,u.args=$,u.cursor=0,u},-2),h(Ee,"$initialize",function N(re){var P=N.$$p||J,Me=this;return N.$$p=null,t(arguments),n(Me),Me.cursor=0,c(P)?(Me.object=f(w("Generator"),"new",[],P.$to_proc()),Me.method="each",Me.args=[],Me.size=arguments[0]||J,c(Me.size)&&p(Me.size["$respond_to?"]("call"))?Me.size=r(Me.size,be("Integer"),"to_int"):J):(Me.object=arguments[0],Me.method=arguments[1]||"each",Me.args=t(arguments,2),Me.size=J)},-1),h(Ee,"$each",function N(re){var P=N.$$p||J,Me,ce,M=this;return N.$$p=null,Me=t(arguments),ce=Me,c(P["$nil?"]())&&c(ce["$empty?"]())?M:(ce=I(M.args,ce),c(P["$nil?"]())?f(M.$class(),"new",[M.object,M.method].concat(F(ce))):f(M.object,"__send__",[M.method].concat(F(ce)),P.$to_proc()))},-1),h(Ee,"$size",function(){var re=this;return c(re.size["$respond_to?"]("call"))?f(re.size,"call",F(re.args)):re.size}),h(Ee,"$with_index",function N(re){var P=N.$$p||J,Me=this;if(N.$$p=null,re==null&&(re=0),re=c(re)?r(re,be("Integer"),"to_int"):0,!c(P))return f(Me,"enum_for",["with_index",re],function M(){var x=M.$$s==null?this:M.$$s;return x.$size()},{$$s:Me});var ce=re;return Me.$each.$$p=function(){var M=H.$destructure(arguments),x=P(M,ce);return ce++,x},Me.$each()},-1),h(Ee,"$each_with_index",function N(){var re=N.$$p||J,P=this;return N.$$p=null,re===J?f(P,"enum_for",["each_with_index"],function Me(){var ce=Me.$$s==null?this:Me.$$s;return ce.$size()},{$$s:P}):(pe(P,xe(P,"each_with_index",N,!1,!0),"each_with_index",[],re),P.object)}),h(Ee,"$rewind",function(){var re=this;return re.cursor=0,re}),h(Ee,"$peek_values",function(){var re=this,P=J;return re.values=c(P=re.values)?P:f(re,"map",[],function(ce){var M,x;return M=t(arguments),x=M,x},-1),c(ne(re.cursor,re.values.$length()))&&W.$raise(be("StopIteration"),"iteration reached an end"),re.values["$[]"](re.cursor)}),h(Ee,"$peek",function(){var re=this,P=J;return P=re.$peek_values(),c(X(P.$length(),1))?P["$[]"](0):P}),h(Ee,"$next_values",function(){var re=this,P=J;return P=re.$peek_values(),re.cursor=I(re.cursor,1),P}),h(Ee,"$next",function(){var re=this,P=J;return P=re.$next_values(),c(X(P.$length(),1))?P["$[]"](0):P}),h(Ee,"$feed",function(re){var P=this;return P.$raise(w("NotImplementedError"),"Opal doesn't support Enumerator#feed")}),h(Ee,"$+",function(re){var P=this;return be(be("Enumerator"),"Chain").$new(P,re)}),h(Ee,"$inspect",function(){var re=this,P=J;return P="#<"+re.$class()+": "+re.object.$inspect()+":"+re.method,c(re.args["$any?"]())&&(P=I(P,"("+re.args.$inspect()["$[]"](be("Range").$new(1,-2))+")")),I(P,">")}),ge(Ee,"with_object","each_with_object"),Ee.$autoload("ArithmeticSequence","corelib/enumerator/arithmetic_sequence"),Ee.$autoload("Chain","corelib/enumerator/chain"),Ee.$autoload("Generator","corelib/enumerator/generator"),Ee.$autoload("Lazy","corelib/enumerator/lazy"),Ee.$autoload("Yielder","corelib/enumerator/yielder")}("::",null,me)};Opal.modules["corelib/numeric"]=function(e){var t=e.klass,r=e.truthy,n=e.Kernel,i=e.def,s=e.to_ary,c=e.return_self,f=e.rb_minus,p=e.rb_times,h=e.rb_lt,I=e.eqeq,F=e.rb_divide,H=e.return_val,pe=e.Opal,xe=e.slice,ne=e.extract_kwargs,W=e.ensure_kwargs,X=e.not,ge=e.send,se=e.rb_ge,me=e.rb_le,J=e.rb_plus,be=e.rb_gt,fe=e.alias,Ae=e.top,O=e.nil,Ee=e.$$$;return e.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,<=>,compare,is_a?,!,new,enum_for,to_proc,negative?,>=,<=,+,to_i,truncate,>,angle,conj,imag,rect"),Ae.$require("corelib/comparable"),function(le,w){var Se=t(le,w,"Numeric");return Se.$include(Ee("Comparable")),i(Se,"$coerce",function(re){var P=this;return r(re["$instance_of?"](P.$class()))?[re,P]:[n.$Float(re),n.$Float(P)]}),i(Se,"$__coerced__",function(re,P){var Me,ce,M=this,x=O,$=O;if(r(P["$respond_to?"]("coerce")))return ce=P.$coerce(M),Me=s(ce),x=Me[0]==null?O:Me[0],$=Me[1]==null?O:Me[1],x.$__send__(re,$);switch(re){case"+":case"-":case"*":case"/":case"%":case"&":case"|":case"^":case"**":return n.$raise(Ee("TypeError"),""+P.$class()+" can't be coerced into Numeric");case">":case">=":case"<":case"<=":case"<=>":return n.$raise(Ee("ArgumentError"),"comparison of "+M.$class()+" with "+P.$class()+" failed");default:return O}}),i(Se,"$<=>",function(re){var P=this;return r(P["$equal?"](re))?0:O}),i(Se,"$+@",c),i(Se,"$-@",function(){var re=this;return f(0,re)}),i(Se,"$%",function(re){var P=this;return f(P,p(re,P.$div(re)))}),i(Se,"$abs",function(){var re=this;return h(re,0)?re["$-@"]():re}),i(Se,"$abs2",function(){var re=this;return p(re,re)}),i(Se,"$angle",function(){var re=this;return h(re,0)?Ee(Ee("Math"),"PI"):0}),i(Se,"$ceil",function(re){var P=this;return re==null&&(re=0),P.$to_f().$ceil(re)},-1),i(Se,"$conj",c),i(Se,"$denominator",function(){var re=this;return re.$to_r().$denominator()}),i(Se,"$div",function(re){var P=this;return I(re,0)&&n.$raise(Ee("ZeroDivisionError"),"divided by o"),F(P,re).$floor()}),i(Se,"$divmod",function(re){var P=this;return[P.$div(re),P["$%"](re)]}),i(Se,"$fdiv",function(re){var P=this;return F(P.$to_f(),re)}),i(Se,"$floor",function(re){var P=this;return re==null&&(re=0),P.$to_f().$floor(re)},-1),i(Se,"$i",function(){var re=this;return n.$Complex(0,re)}),i(Se,"$imag",H(0)),i(Se,"$integer?",H(!1)),i(Se,"$nonzero?",function(){var re=this;return r(re["$zero?"]())?O:re}),i(Se,"$numerator",function(){var re=this;return re.$to_r().$numerator()}),i(Se,"$polar",function(){var re=this;return[re.$abs(),re.$arg()]}),i(Se,"$quo",function(re){var P=this;return F(pe["$coerce_to!"](P,Ee("Rational"),"to_r"),re)}),i(Se,"$real",c),i(Se,"$real?",H(!0)),i(Se,"$rect",function(){var re=this;return[re,0]}),i(Se,"$round",function(re){var P=this;return P.$to_f().$round(re)},-1),i(Se,"$step",function N(re,P,Me){var ce=N.$$p||O,M,x,$,l,u,d,_=this,S=O;N.$$p=null,M=xe(arguments),x=ne(M),x=W(x),M.length>0&&($=M.shift()),M.length>0&&(l=M.shift()),u=x.$$smap.to,d=x.$$smap.by,$!==void 0&&u!==void 0&&n.$raise(Ee("ArgumentError"),"to is given twice"),l!==void 0&&d!==void 0&&n.$raise(Ee("ArgumentError"),"step is given twice"),u!==void 0&&($=u),d!==void 0&&(l=d),$===void 0&&($=O);function A(){l===O&&n.$raise(Ee("TypeError"),"step must be numeric"),l!=null&&l["$=="](0)&&n.$raise(Ee("ArgumentError"),"step can't be 0"),(l===O||l==null)&&(l=1);var qt=l["$<=>"](0);qt===O&&n.$raise(Ee("ArgumentError"),"0 can't be coerced into "+l.$class()),($===O||$==null)&&($=qt>0?Ee(Ee("Float"),"INFINITY"):Ee(Ee("Float"),"INFINITY")["$-@"]()),pe.$compare(_,$)}function Q(){if(l>0&&_>$||l<0&&_<$)return 0;if(l===1/0||l===-1/0)return 1;var qt=Math.abs,It=Math.floor,nt=(qt(_)+qt($)+qt($-_))/qt(l)*Ee(Ee("Float"),"EPSILON");return nt===1/0||nt===-1/0?0:(nt>.5&&(nt=.5),It(($-_)/l+nt)+1)}function De(){if(A(),l===0)return 1/0;if(l%1!==0)return Q();if(l>0&&_>$||l<0&&_<$)return 0;var qt=Math.ceil,It=Math.abs,nt=It(_-$)+1,Re=It(l);return qt(nt/Re)}if(ce===O)return(X($)||r($["$is_a?"](Ee("Numeric"))))&&(X(l)||r(l["$is_a?"](Ee("Numeric"))))?Ee(Ee("Enumerator"),"ArithmeticSequence").$new([$,l,r(u)?"to: ":O,r(d)?"by: ":O],_):ge(_,"enum_for",["step",$,l],De.$to_proc());A();var rt=l["$negative?"](),ft=l["$=="](0)||$===1/0&&!rt||$===-1/0&&rt;if(_.$$is_number&&l.$$is_number&&$.$$is_number)if(_%1===0&&(ft||$%1===0)&&l%1===0){var _t=_;if(ft)for(;;_t+=l)ce(_t);else if(rt)for(;_t>=$;_t+=l)ce(_t);else for(;_t<=$;_t+=l)ce(_t);return _}else{var At=_.$to_f().valueOf();l=l.$to_f().valueOf(),$=$.$to_f().valueOf();var bt=Q();if(!isFinite(l))bt!==0&&ce(At);else if(l===0)for(;;)ce(At);else for(var Mt=0;Mt<bt;Mt++){var Et=Mt*l+_;(l>=0?$<Et:$>Et)&&(Et=$),ce(Et)}return _}for(S=_;r(rt?se(S,$):me(S,$));)e.yield1(ce,S),S=J(S,l)},-1),i(Se,"$to_c",function(){var re=this;return n.$Complex(re,0)}),i(Se,"$to_int",function(){var re=this;return re.$to_i()}),i(Se,"$truncate",function(re){var P=this;return re==null&&(re=0),P.$to_f().$truncate(re)},-1),i(Se,"$zero?",function(){var re=this;return re["$=="](0)}),i(Se,"$positive?",function(){var re=this;return be(re,0)}),i(Se,"$negative?",function(){var re=this;return h(re,0)}),i(Se,"$dup",c),i(Se,"$clone",function(re){var P=this;return re=W(re),re.$$smap.freeze,P},-1),i(Se,"$finite?",H(!0)),i(Se,"$infinite?",H(O)),fe(Se,"arg","angle"),fe(Se,"conjugate","conj"),fe(Se,"imaginary","imag"),fe(Se,"magnitude","abs"),fe(Se,"modulo","%"),fe(Se,"phase","arg"),fe(Se,"rectangular","rect")}("::",null)};Opal.modules["corelib/array"]=function(e){var t=e.truthy,r=e.falsy,n=e.hash_ids,i=e.yield1,s=e.hash_get,c=e.hash_put,f=e.hash_delete,p=e.coerce_to,h=e.respond_to,I=e.deny_frozen_access,F=e.freeze,H=e.klass,pe=e.slice,xe=e.defs,ne=e.Kernel,W=e.def,X=e.Opal,ge=e.eqeqeq,se=e.hash2,me=e.send2,J=e.find_super,be=e.send,fe=e.rb_gt,Ae=e.rb_times,O=e.eqeq,Ee=e.rb_minus,le=e.to_a,w=e.to_ary,Se=e.gvars,N=e.rb_ge,re=e.assign_ivar,P=e.rb_lt,Me=e.return_self,ce=e.neqeq,M=e.alias,x=e.top,$=[],l=e.nil,u=e.$$$;return e.add_stubs("require,include,to_a,warn,raise,replace,respond_to?,to_ary,coerce_to?,===,join,to_str,hash,<=>,==,object_id,inspect,enum_for,class,bsearch_index,to_proc,nil?,coerce_to!,>,*,enumerator_size,empty?,size,map,equal?,dup,each,reduce,-,[],dig,eql?,length,exclude_end?,flatten,frozen?,__id__,&,!,intersection,to_s,new,item,max,min,>=,**,delete_if,reverse,rotate,rand,at,keep_if,shuffle!,<,sort,sort_by,!=,times,[]=,<<,uniq,|,values,is_a?,end,begin,upto,reject,push,select,select!,collect,collect!,unshift,pristine,singleton_class"),x.$require("corelib/enumerable"),x.$require("corelib/numeric"),function(d,_,S){var A=H(d,_,"Array"),Q=[A].concat(S),De=e.$r(Q);A.$include(u("Enumerable")),e.prop(A.$$prototype,"$$is_array",!0);function rt(nt){for(var Re=nt[0],Pe=1,Ke=nt.length;Pe<Ke;Pe++)nt[Pe-1]=nt[Pe];return nt.pop(),Re}function ft(nt,Re){return Re.$$name===e.Array?nt:Re.$allocate().$replace(nt.$to_a())}function _t(nt,Re,Pe){for(var Ke,b=null,R=new Array(nt.length),ve=0,Le=0,Ze=nt.length;ve<Ze;ve++){if(!b)try{Ke=i(Pe,nt[ve])}catch(ct){b=ct}(b||Re(Ke))&&(R[Le]=nt[ve],Le+=1)}if(Le!==ve&&(nt.splice.apply(nt,[0,R.length].concat(R)),nt.splice(Le,R.length)),b)throw b}xe(A,"$[]",function(Re){var Pe,Ke,b=this;return Pe=pe(arguments),Ke=Pe,ft(Ke,b)},-1),W(A,"$initialize",function nt(Re,Pe){var Ke=nt.$$p||l,b=this;if(nt.$$p=null,Re==null&&(Re=l),Pe==null&&(Pe=l),I(b),Pe!==l&&Ke!==l&&ne.$warn("warning: block supersedes default value argument"),Re>u(u("Integer"),"MAX")&&ne.$raise(u("ArgumentError"),"array size too big"),arguments.length>2&&ne.$raise(u("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..2)"),arguments.length===0)return b.splice(0,b.length),b;if(arguments.length===1){if(Re.$$is_array)return b.$replace(Re.$to_a()),b;if(Re["$respond_to?"]("to_ary"))return b.$replace(Re.$to_ary()),b}Re=p(Re,u("Integer"),"to_int"),Re<0&&ne.$raise(u("ArgumentError"),"negative array size"),b.splice(0,b.length);var R,ve;if(Ke===l)for(R=0;R<Re;R++)b.push(Pe);else for(R=0,ve;R<Re;R++)ve=Ke(R),b[R]=ve;return b},-1),xe(A,"$try_convert",function(Re){return X["$coerce_to?"](Re,u("Array"),"to_ary")}),W(A,"$&",function(Re){var Pe=this;Re=ge(u("Array"),Re)?Re.$to_a():p(Re,u("Array"),"to_ary").$to_a();var Ke=[],b=se([],{}),R,ve,Le;for(R=0,ve=Re.length;R<ve;R++)c(b,Re[R],!0);for(R=0,ve=Pe.length;R<ve;R++)Le=Pe[R],f(b,Le)!==void 0&&Ke.push(Le);return Ke}),W(A,"$|",function(Re){var Pe=this;Re=ge(u("Array"),Re)?Re.$to_a():p(Re,u("Array"),"to_ary").$to_a();var Ke=se([],{}),b,R;for(b=0,R=Pe.length;b<R;b++)c(Ke,Pe[b],!0);for(b=0,R=Re.length;b<R;b++)c(Ke,Re[b],!0);return Ke.$keys()}),W(A,"$*",function(Re){var Pe=this;if(t(Re["$respond_to?"]("to_str")))return Pe.$join(Re.$to_str());Re=p(Re,u("Integer"),"to_int"),t(Re<0)&&ne.$raise(u("ArgumentError"),"negative argument");for(var Ke=[],b=Pe.$to_a(),R=0;R<Re;R++)Ke=Ke.concat(b);return Ke}),W(A,"$+",function(Re){var Pe=this;return Re=ge(u("Array"),Re)?Re.$to_a():p(Re,u("Array"),"to_ary").$to_a(),Pe.concat(Re)}),W(A,"$-",function(Re){var Pe=this;if(Re=ge(u("Array"),Re)?Re.$to_a():p(Re,u("Array"),"to_ary").$to_a(),t(Pe.length===0))return[];if(t(Re.length===0))return Pe.slice();var Ke=[],b=se([],{}),R,ve,Le;for(R=0,ve=Re.length;R<ve;R++)c(b,Re[R],!0);for(R=0,ve=Pe.length;R<ve;R++)Le=Pe[R],s(b,Le)===void 0&&Ke.push(Le);return Ke}),W(A,"$<<",function(Re){var Pe=this;return I(Pe),Pe.push(Re),Pe}),W(A,"$<=>",function(Re){var Pe=this;if(ge(u("Array"),Re))Re=Re.$to_a();else if(t(Re["$respond_to?"]("to_ary")))Re=Re.$to_ary().$to_a();else return l;if(Pe.$hash()===Re.$hash())return 0;for(var Ke=Math.min(Pe.length,Re.length),b=0;b<Ke;b++){var R=Pe[b]["$<=>"](Re[b]);if(R!==0)return R}return Pe.length["$<=>"](Re.length)}),W(A,"$==",function(Re){var Pe=this,Ke={};function b(R,ve){var Le,Ze,ct,a;if(R===ve)return!0;if(!ve.$$is_array)return h(ve,"$to_ary")?ve["$=="](R):!1;if(R.$$constructor!==Array&&(R=R.$to_a()),ve.$$constructor!==Array&&(ve=ve.$to_a()),R.length!==ve.length)return!1;for(Ke[R.$object_id()]=!0,Le=0,Ze=R.length;Le<Ze;Le++)if(ct=R[Le],a=ve[Le],ct.$$is_array){if(a.$$is_array&&a.length!==ct.length||!Ke.hasOwnProperty(ct.$object_id())&&!b(ct,a))return!1}else if(!ct["$=="](a))return!1;return!0}return b(Pe,Re)});function At(nt,Re){var Pe=nt.length,Ke,b,R,ve;return Ke=Re.excl,b=Re.begin===l?0:p(Re.begin,e.Integer,"to_int"),R=Re.end===l?-1:p(Re.end,e.Integer,"to_int"),b<0&&(b+=Pe,b<0)||(Re.excl_rev&&Re.begin!==l&&(b+=1),b>Pe)?l:R<0&&(R+=Pe,R<0)?[]:((!Ke||Re.end===l)&&(R+=1),ve=nt.slice(b,R),ve)}function bt(nt,Re){var Pe,Ke=[],b=0,R;for(Re.step<0?(R={begin:Re.range.end,end:Re.range.begin,excl:!1,excl_rev:Re.range.excl},Pe=At(nt,R).$reverse()):Pe=At(nt,Re.range);b<Pe.length;)Ke.push(Pe[b]),b+=Math.abs(Re.step);return Ke}function Mt(nt,Re,Pe){var Ke=nt.length,b;return Re=p(Re,e.Integer,"to_int"),Re<0&&(Re+=Ke,Re<0)?l:Pe===void 0?Re>=Ke||Re<0?l:nt[Re]:(Pe=p(Pe,e.Integer,"to_int"),Pe<0||Re>Ke||Re<0?l:(b=nt.slice(Re,Re+Pe),b))}W(A,"$[]",function(Re,Pe){var Ke=this;return Re.$$is_range?At(Ke,Re):Re.$$is_arithmetic_seq?bt(Ke,Re):Mt(Ke,Re,Pe)},-2),W(A,"$[]=",function(Re,Pe,Ke){var b=this,R=l,ve=l;I(b),R=l;var Le,Ze=b.length;if(Re.$$is_range){Pe.$$is_array?R=Pe.$to_a():Pe["$respond_to?"]("to_ary")?R=Pe.$to_ary().$to_a():R=[Pe];var ct=Re.excl,a=Re.begin===l?0:p(Re.begin,e.Integer,"to_int"),ae=Re.end===l?-1:p(Re.end,e.Integer,"to_int");if(a<0&&(a+=Ze,a<0&&ne.$raise(u("RangeError"),""+Re.$inspect()+" out of range")),ae<0&&(ae+=Ze),(!ct||Re.end===l)&&(ae+=1),a>Ze)for(Le=Ze;Le<a;Le++)b[Le]=l;return ae<0?b.splice.apply(b,[a,0].concat(R)):b.splice.apply(b,[a,ae-a].concat(R)),Pe}else{Ke===void 0?ve=1:(ve=Pe,Pe=Ke,Pe.$$is_array?R=Pe.$to_a():Pe["$respond_to?"]("to_ary")?R=Pe.$to_ary().$to_a():R=[Pe]);var te;if(Re=p(Re,u("Integer"),"to_int"),ve=p(ve,u("Integer"),"to_int"),Re<0&&(te=Re,Re+=Ze,Re<0&&ne.$raise(u("IndexError"),"index "+te+" too small for array; minimum "+-b.length)),ve<0&&ne.$raise(u("IndexError"),"negative length ("+ve+")"),Re>Ze)for(Le=Ze;Le<Re;Le++)b[Le]=l;return Ke===void 0?b[Re]=Pe:b.splice.apply(b,[Re,ve].concat(R)),Pe}},-3),W(A,"$any?",function nt(Re){var Pe=nt.$$p||l,Ke=this;return nt.$$p=null,Ke.length===0?!1:me(Ke,J(Ke,"any?",nt,!1,!0),"any?",[Re],Pe)},-1),W(A,"$assoc",function(Re){for(var Pe=this,Ke=0,b=Pe.length,R;Ke<b;Ke++)if(R=Pe[Ke],R.length&&R[0]["$=="](Re))return R;return l}),W(A,"$at",function(Re){var Pe=this;return Re=p(Re,u("Integer"),"to_int"),Re<0&&(Re+=Pe.length),Re<0||Re>=Pe.length?l:Pe[Re]}),W(A,"$bsearch_index",function nt(){var Re=nt.$$p||l,Pe=this;if(nt.$$p=null,Re===l)return Pe.$enum_for("bsearch_index");for(var Ke=0,b=Pe.length,R,ve,Le,Ze=!1,ct=l;Ke<b;){if(R=Ke+Math.floor((b-Ke)/2),ve=Pe[R],Le=i(Re,ve),Le===!0)ct=R,Ze=!0;else if(Le===!1||Le===l)Ze=!1;else if(Le.$$is_number){if(Le===0)return R;Ze=Le<0}else ne.$raise(u("TypeError"),"wrong argument type "+Le.$class()+" (must be numeric, true, false or nil)");Ze?b=R:Ke=R+1}return ct}),W(A,"$bsearch",function nt(){var Re=nt.$$p||l,Pe=this,Ke=l;return nt.$$p=null,Re===l?Pe.$enum_for("bsearch"):(Ke=be(Pe,"bsearch_index",[],Re.$to_proc()),Ke!=null&&Ke.$$is_number?Pe[Ke]:Ke)}),W(A,"$cycle",function nt(Re){var Pe=nt.$$p||l,Ke=this;if(nt.$$p=null,Re==null&&(Re=l),Pe===l)return be(Ke,"enum_for",["cycle",Re],function ve(){var Le=ve.$$s==null?this:ve.$$s;return t(Re["$nil?"]())?u(u("Float"),"INFINITY"):(Re=X["$coerce_to!"](Re,u("Integer"),"to_int"),t(fe(Re,0))?Ae(Le.$enumerator_size(),Re):0)},{$$s:Ke});if(t(Ke["$empty?"]())||O(Re,0))return l;var b,R;if(Re===l)for(;;)for(b=0,R=Ke.length;b<R;b++)i(Pe,Ke[b]);else{if(Re=X["$coerce_to!"](Re,u("Integer"),"to_int"),Re<=0)return Ke;for(;Re>0;){for(b=0,R=Ke.length;b<R;b++)i(Pe,Ke[b]);Re--}}return Ke},-1),W(A,"$clear",function(){var Re=this;return I(Re),Re.splice(0,Re.length),Re}),W(A,"$count",function nt(Re){var Pe=nt.$$p||l,Ke=this;return nt.$$p=null,t(Re!==void 0)||t(Pe)?me(Ke,J(Ke,"count",nt,!1,!0),"count",[Re],Pe):Ke.$size()},-1),W(A,"$initialize_copy",function(Re){var Pe=this;return Pe.$replace(Re)}),W(A,"$collect",function nt(){var Re=nt.$$p||l,Pe=this;if(nt.$$p=null,Re===l)return be(Pe,"enum_for",["collect"],function Le(){var Ze=Le.$$s==null?this:Le.$$s;return Ze.$size()},{$$s:Pe});for(var Ke=[],b=0,R=Pe.length;b<R;b++){var ve=i(Re,Pe[b]);Ke.push(ve)}return Ke}),W(A,"$collect!",function nt(){var Re=nt.$$p||l,Pe=this;if(nt.$$p=null,Re===l)return be(Pe,"enum_for",["collect!"],function ve(){var Le=ve.$$s==null?this:ve.$$s;return Le.$size()},{$$s:Pe});I(Pe);for(var Ke=0,b=Pe.length;Ke<b;Ke++){var R=i(Re,Pe[Ke]);Pe[Ke]=R}return Pe});function Et(nt,Re){return nt===Re||Re===0?1:Re>0&&nt>Re?Et(nt-1,Re-1)+Et(nt-1,Re):0}W(A,"$combination",function nt(Re){var Pe=nt.$$p||l,Ke=this,b=l;if(nt.$$p=null,b=X["$coerce_to!"](Re,u("Integer"),"to_int"),Pe===l)return be(Ke,"enum_for",["combination",b],function te(){var V=te.$$s==null?this:te.$$s;return Et(V.length,b)},{$$s:Ke});var R,ve,Le,Ze,ct,a,ae;if(b===0)e.yield1(Pe,[]);else if(b===1)for(R=0,ve=Ke.length;R<ve;R++)e.yield1(Pe,[Ke[R]]);else if(b===Ke.length)e.yield1(Pe,Ke.slice());else if(b>=0&&b<Ke.length){for(Le=[],R=0;R<=b+1;R++)Le.push(0);for(Ze=[],ct=0,a=!1,Le[0]=-1;!a;){for(Ze[ct]=Ke[Le[ct+1]];ct<b-1;)ct++,ae=Le[ct+1]=Le[ct]+1,Ze[ct]=Ke[ae];e.yield1(Pe,Ze.slice()),ct++;do a=ct===0,Le[ct]++,ct--;while(Le[ct+1]+b===Ke.length+ct+1)}}return Ke}),W(A,"$repeated_combination",function nt(Re){var Pe=nt.$$p||l,Ke=this,b=l;if(nt.$$p=null,b=X["$coerce_to!"](Re,u("Integer"),"to_int"),Pe===l)return be(Ke,"enum_for",["repeated_combination",b],function ve(){var Le=ve.$$s==null?this:ve.$$s;return Et(Le.length+b-1,b)},{$$s:Ke});function R(ve,Le,Ze,ct){if(Ze.length==ve){var a=Ze.slice();e.yield1(Pe,a);return}for(var ae=Le;ae<ct.length;ae++)Ze.push(ct[ae]),R(ve,ae,Ze,ct),Ze.pop()}return b>=0&&R(b,0,[],Ke),Ke}),W(A,"$compact",function(){for(var Re=this,Pe=[],Ke=0,b=Re.length,R;Ke<b;Ke++)(R=Re[Ke])!==l&&Pe.push(R);return Pe}),W(A,"$compact!",function(){var Re=this;I(Re);for(var Pe=Re.length,Ke=0,b=Re.length;Ke<b;Ke++)Re[Ke]===l&&(Re.splice(Ke,1),b--,Ke--);return Re.length===Pe?l:Re}),W(A,"$concat",function(Re){var Pe,Ke,b=this;return Pe=pe(arguments),Ke=Pe,I(b),Ke=be(Ke,"map",[],function R(ve){var Le=R.$$s==null?this:R.$$s;return ve==null&&(ve=l),ve=ge(u("Array"),ve)?ve.$to_a():p(ve,u("Array"),"to_ary").$to_a(),t(ve["$equal?"](Le))&&(ve=ve.$dup()),ve},{$$s:b}),be(Ke,"each",[],function R(ve){var Le=R.$$s==null?this:R.$$s;ve==null&&(ve=l);for(var Ze=0,ct=ve.length;Ze<ct;Ze++)Le.push(ve[Ze])},{$$s:b}),b},-1),W(A,"$delete",function nt(Re){var Pe=nt.$$p||l,Ke=this;nt.$$p=null;for(var b=Ke.length,R=0,ve=b;R<ve;R++)Ke[R]["$=="](Re)&&(I(Ke),Ke.splice(R,1),ve--,R--);return Ke.length===b?Pe!==l?e.yieldX(Pe,[]):l:Re}),W(A,"$delete_at",function(Re){var Pe=this;if(I(Pe),Re=p(Re,u("Integer"),"to_int"),Re<0&&(Re+=Pe.length),Re<0||Re>=Pe.length)return l;var Ke=Pe[Re];return Pe.splice(Re,1),Ke}),W(A,"$delete_if",function nt(){var Re=nt.$$p||l,Pe=this;return nt.$$p=null,Re===l?be(Pe,"enum_for",["delete_if"],function Ke(){var b=Ke.$$s==null?this:Ke.$$s;return b.$size()},{$$s:Pe}):(I(Pe),_t(Pe,r,Re),Pe)}),W(A,"$difference",function(Re){var Pe,Ke,b=this;return Pe=pe(arguments),Ke=Pe,be(Ke,"reduce",[b.$to_a().$dup()],function(ve,Le){return ve==null&&(ve=l),Le==null&&(Le=l),Ee(ve,Le)})},-1),W(A,"$dig",function(Re,Pe){var Ke,b,R=this,ve=l;return Ke=pe(arguments,1),b=Ke,ve=R["$[]"](Re),ve===l||b.length===0?ve:(t(ve["$respond_to?"]("dig"))||ne.$raise(u("TypeError"),""+ve.$class()+" does not have #dig method"),be(ve,"dig",le(b)))},-2),W(A,"$drop",function(Re){var Pe=this;return Re=p(Re,u("Integer"),"to_int"),Re<0&&ne.$raise(u("ArgumentError")),Pe.slice(Re)}),W(A,"$dup",function nt(){var Re=nt.$$p||l,Pe=this;return nt.$$p=null,Pe.$$class===e.Array&&Pe.$$class.$allocate.$$pristine&&Pe.$copy_instance_variables.$$pristine&&Pe.$initialize_dup.$$pristine?Pe.slice(0):me(Pe,J(Pe,"dup",nt,!1,!0),"dup",[],Re)}),W(A,"$each",function nt(){var Re=nt.$$p||l,Pe=this;if(nt.$$p=null,Re===l)return be(Pe,"enum_for",["each"],function R(){var ve=R.$$s==null?this:R.$$s;return ve.$size()},{$$s:Pe});for(var Ke=0,b=Pe.length;Ke<b;Ke++)i(Re,Pe[Ke]);return Pe}),W(A,"$each_index",function nt(){var Re=nt.$$p||l,Pe=this;if(nt.$$p=null,Re===l)return be(Pe,"enum_for",["each_index"],function R(){var ve=R.$$s==null?this:R.$$s;return ve.$size()},{$$s:Pe});for(var Ke=0,b=Pe.length;Ke<b;Ke++)i(Re,Ke);return Pe}),W(A,"$empty?",function(){var Re=this;return Re.length===0}),W(A,"$eql?",function(Re){var Pe=this,Ke={};function b(R,ve){var Le,Ze,ct,a;if(!ve.$$is_array||(ve=ve.$to_a(),R.length!==ve.length))return!1;for(Ke[R.$object_id()]=!0,Le=0,Ze=R.length;Le<Ze;Le++)if(ct=R[Le],a=ve[Le],ct.$$is_array){if(a.$$is_array&&a.length!==ct.length||!Ke.hasOwnProperty(ct.$object_id())&&!b(ct,a))return!1}else if(!ct["$eql?"](a))return!1;return!0}return b(Pe,Re)}),W(A,"$fetch",function nt(Re,Pe){var Ke=nt.$$p||l,b=this;nt.$$p=null;var R=Re;if(Re=p(Re,u("Integer"),"to_int"),Re<0&&(Re+=b.length),Re>=0&&Re<b.length)return b[Re];if(Ke!==l&&Pe!=null&&b.$warn("warning: block supersedes default value argument"),Ke!==l)return Ke(R);if(Pe!=null)return Pe;b.length===0?ne.$raise(u("IndexError"),"index "+R+" outside of array bounds: 0...0"):ne.$raise(u("IndexError"),"index "+R+" outside of array bounds: -"+b.length+"..."+b.length)},-2),W(A,"$fill",function nt(Re){var Pe=nt.$$p||l,Ke,b,R,ve,Le=this,Ze=l,ct=l,a=l,ae=l,te=l;nt.$$p=null,Ke=pe(arguments),b=Ke,I(Le);var V,_e;if(t(Pe)?(t(b.length>2)&&ne.$raise(u("ArgumentError"),"wrong number of arguments ("+b.$length()+" for 0..2)"),ve=b,R=w(ve),Ze=R[0]==null?l:R[0],ct=R[1]==null?l:R[1]):(t(b.length==0)?ne.$raise(u("ArgumentError"),"wrong number of arguments (0 for 1..3)"):t(b.length>3)&&ne.$raise(u("ArgumentError"),"wrong number of arguments ("+b.$length()+" for 1..3)"),ve=b,R=w(ve),a=R[0]==null?l:R[0],Ze=R[1]==null?l:R[1],ct=R[2]==null?l:R[2]),ge(u("Range"),Ze)){if(t(ct)&&ne.$raise(u("TypeError"),"length invalid with range"),ae=Ze.begin===l?0:p(Ze.begin,u("Integer"),"to_int"),t(ae<0)&&(ae+=this.length),t(ae<0)&&ne.$raise(u("RangeError"),""+Ze.$inspect()+" out of range"),te=Ze.end===l?-1:p(Ze.end,u("Integer"),"to_int"),t(te<0)&&(te+=this.length),t(Ze["$exclude_end?"]())||(te+=1),t(te<=ae))return Le}else if(t(Ze))if(ae=p(Ze,u("Integer"),"to_int"),t(ae<0)&&(ae+=this.length),t(ae<0)&&(ae=0),t(ct)){if(te=p(ct,u("Integer"),"to_int"),t(te==0))return Le;te+=ae}else te=this.length;else ae=0,te=this.length;if(t(ae>this.length))for(V=this.length;V<te;V++)Le[V]=l;if(t(te>this.length)&&(this.length=te),t(Pe))for(this.length;ae<te;ae++)_e=Pe(ae),Le[ae]=_e;else for(this.length;ae<te;ae++)Le[ae]=a;return Le},-1),W(A,"$first",function(Re){var Pe=this;return Re==null?Pe.length===0?l:Pe[0]:(Re=p(Re,u("Integer"),"to_int"),Re<0&&ne.$raise(u("ArgumentError"),"negative array size"),Pe.slice(0,Re))},-1),W(A,"$flatten",function(Re){var Pe=this;function Ke(b,R){var ve=[],Le,Ze,ct,a;for(b=b.$to_a(),Le=0,Ze=b.length;Le<Ze;Le++){if(ct=b[Le],!h(ct,"$to_ary",!0)){ve.push(ct);continue}if(a=ct.$to_ary(),a===l){ve.push(ct);continue}switch(a.$$is_array||ne.$raise(u("TypeError")),a===Pe&&ne.$raise(u("ArgumentError")),R){case void 0:ve=ve.concat(Ke(a));break;case 0:ve.push(a);break;default:ve.push.apply(ve,Ke(a,R-1))}}return ve}return Re!==void 0&&(Re=p(Re,u("Integer"),"to_int")),Ke(Pe,Re)},-1),W(A,"$flatten!",function(Re){var Pe=this;I(Pe);var Ke=Pe.$flatten(Re);if(Pe.length==Ke.length){for(var b=0,R=Pe.length;b<R&&Pe[b]===Ke[b];b++);if(b==R)return l}return Pe.$replace(Ke),Pe},-1),W(A,"$freeze",function(){var Re=this;return t(Re["$frozen?"]())?Re:F(Re)}),W(A,"$hash",function(){var Re=this,Pe=n===void 0,Ke=["A"],b=Re.$object_id(),R,ve,Le;try{if(Pe&&(n=Object.create(null)),n[b])return"self";for(Le in n)if(R=n[Le],Re["$eql?"](R))return"self";for(n[b]=Re,ve=0;ve<Re.length;ve++)R=Re[ve],Ke.push(R.$hash());return Ke.join(",")}finally{Pe&&(n=void 0)}}),W(A,"$include?",function(Re){for(var Pe=this,Ke=0,b=Pe.length;Ke<b;Ke++)if(Pe[Ke]["$=="](Re))return!0;return!1}),W(A,"$index",function nt(Re){var Pe=nt.$$p||l,Ke=this;nt.$$p=null;var b,R,ve;if(Re!=null&&Pe!==l&&Ke.$warn("warning: given block not used"),Re!=null){for(b=0,R=Ke.length;b<R;b++)if(Ke[b]["$=="](Re))return b}else if(Pe!==l){for(b=0,R=Ke.length;b<R;b++)if(ve=Pe(Ke[b]),ve!==!1&&ve!==l)return b}else return Ke.$enum_for("index");return l},-1),W(A,"$insert",function(Re,Pe){var Ke,b,R=this;if(Ke=pe(arguments,1),b=Ke,I(R),Re=p(Re,u("Integer"),"to_int"),b.length>0){if(Re<0&&(Re+=R.length+1,Re<0&&ne.$raise(u("IndexError"),""+Re+" is out of bounds")),Re>R.length)for(var ve=R.length;ve<Re;ve++)R.push(l);R.splice.apply(R,[Re,0].concat(b))}return R},-2);var qt=[];W(A,"$inspect",function(){var Re=this,Pe=[],Ke=Re.$__id__(),b=!0;return function(){try{if(qt.indexOf(Ke)!==-1)return b=!1,"[...]";qt.push(Ke);for(var R=0,ve=Re.length;R<ve;R++){var Le=Re["$[]"](R);Pe.push(De("Opal").$inspect(Le))}return"["+Pe.join(", ")+"]"}finally{b&&qt.pop()}}()}),W(A,"$intersection",function(Re){var Pe,Ke,b=this;return Pe=pe(arguments),Ke=Pe,be(Ke,"reduce",[b.$to_a().$dup()],function(ve,Le){return ve==null&&(ve=l),Le==null&&(Le=l),ve["$&"](Le)})},-1),W(A,"$intersect?",function(Re){var Pe=this;return Pe.$intersection(Re)["$empty?"]()["$!"]()}),W(A,"$join",function(Re){var Pe=this;if(Se[","]==null&&(Se[","]=l),Re==null&&(Re=l),t(Pe.length===0))return"";t(Re===l)&&(Re=Se[","]);var Ke=[],b,R,ve,Le;for(b=0,R=Pe.length;b<R;b++){if(ve=Pe[b],h(ve,"$to_str")&&(Le=ve.$to_str(),Le!==l)){Ke.push(Le.$to_s());continue}if(h(ve,"$to_ary")&&(Le=ve.$to_ary(),Le===Pe&&ne.$raise(u("ArgumentError")),Le!==l)){Ke.push(Le.$join(Re));continue}if(h(ve,"$to_s")&&(Le=ve.$to_s(),Le!==l)){Ke.push(Le);continue}ne.$raise(u("NoMethodError").$new(""+De("Opal").$inspect(Pe.$item())+" doesn't respond to #to_str, #to_ary or #to_s","to_str"))}return Re===l?Ke.join(""):Ke.join(X["$coerce_to!"](Re,u("String"),"to_str").$to_s())},-1),W(A,"$keep_if",function nt(){var Re=nt.$$p||l,Pe=this;return nt.$$p=null,Re===l?be(Pe,"enum_for",["keep_if"],function Ke(){var b=Ke.$$s==null?this:Ke.$$s;return b.$size()},{$$s:Pe}):(I(Pe),_t(Pe,t,Re),Pe)}),W(A,"$last",function(Re){var Pe=this;return Re==null?Pe.length===0?l:Pe[Pe.length-1]:(Re=p(Re,u("Integer"),"to_int"),Re<0&&ne.$raise(u("ArgumentError"),"negative array size"),Re>Pe.length&&(Re=Pe.length),Pe.slice(Pe.length-Re,Pe.length))},-1),W(A,"$length",function(){var Re=this;return Re.length}),W(A,"$max",function nt(Re){var Pe=nt.$$p||l,Ke=this;return nt.$$p=null,be(Ke.$each(),"max",[Re],Pe.$to_proc())},-1),W(A,"$min",function nt(){var Re=nt.$$p||l,Pe=this;return nt.$$p=null,be(Pe.$each(),"min",[],Re.$to_proc())});function It(nt,Re){for(var Pe=Re>=0?1:0;Re;)Pe*=nt,nt--,Re--;return Pe}return W(A,"$permutation",function nt(Re){var Pe=nt.$$p||l,Ke=this,b=l,R=l;if(nt.$$p=null,Pe===l)return be(Ke,"enum_for",["permutation",Re],function a(){var ae=a.$$s==null?this:a.$$s;return It(ae.length,Re===void 0?ae.length:Re)},{$$s:Ke});var ve,Le,Ze;if(Re===void 0?Re=Ke.length:Re=p(Re,u("Integer"),"to_int"),!(Re<0||Ke.length<Re))if(Re===0)e.yield1(Pe,[]);else if(Re===1)for(var ct=0;ct<Ke.length;ct++)e.yield1(Pe,[Ke[ct]]);else b=De("Array").$new(Re),R=De("Array").$new(Ke.length,!1),ve=function(a,ae,te,V,_e){Ke=this;for(var v=0;v<Ke.length;v++)if(V["$[]"](v)["$!"]())if(ae[te]=v,te<a-1)V[v]=!0,ve.call(Ke,a,ae,te+1,V,_e),V[v]=!1;else{Ze=[];for(var Y=0;Y<ae.length;Y++)Ze.push(Ke[ae[Y]]);i(_e,Ze)}},Pe!==l?(Le=Ke.slice(),ve.call(Le,Re,b,0,R,Pe)):ve.call(Ke,Re,b,0,R,Pe);return Ke},-1),W(A,"$repeated_permutation",function nt(Re){var Pe=nt.$$p||l,Ke=this,b=l;if(nt.$$p=null,b=X["$coerce_to!"](Re,u("Integer"),"to_int"),Pe===l)return be(Ke,"enum_for",["repeated_permutation",b],function ve(){var Le=ve.$$s==null?this:ve.$$s;return t(N(b,0))?Le.$size()["$**"](b):0},{$$s:Ke});function R(ve,Le,Ze){if(Le.length==ve){var ct=Le.slice();e.yield1(Pe,ct);return}for(var a=0;a<Ze.length;a++)Le.push(Ze[a]),R(ve,Le,Ze),Le.pop()}return R(b,[],Ke.slice()),Ke}),W(A,"$pop",function(Re){var Pe=this;return I(Pe),t(Re===void 0)?t(Pe.length===0)?l:Pe.pop():(Re=p(Re,u("Integer"),"to_int"),t(Re<0)&&ne.$raise(u("ArgumentError"),"negative array size"),t(Pe.length===0)?[]:t(Re===1)?[Pe.pop()]:t(Re>Pe.length)?Pe.splice(0,Pe.length):Pe.splice(Pe.length-Re,Pe.length))},-1),W(A,"$product",function nt(Re){var Pe=nt.$$p||l,Ke,b,R=this;nt.$$p=null,Ke=pe(arguments),b=Ke;var ve=Pe!==l?null:[],Le=b.length+1,Ze=new Array(Le),ct=new Array(Le),a=new Array(Le),ae,te,V,_e,v=1;for(a[0]=R,ae=1;ae<Le;ae++)a[ae]=p(b[ae-1],u("Array"),"to_ary");for(ae=0;ae<Le;ae++){if(_e=a[ae].length,_e===0)return ve||R;v*=_e,v>2147483647&&ne.$raise(u("RangeError"),"too big to product"),ct[ae]=_e,Ze[ae]=0}e:for(;;){for(V=[],ae=0;ae<Le;ae++)V.push(a[ae][Ze[ae]]);for(ve?ve.push(V):e.yield1(Pe,V),te=Le-1,Ze[te]++;Ze[te]===ct[te];){if(Ze[te]=0,--te<0)break e;Ze[te]++}}return ve||R},-1),W(A,"$push",function(Re){var Pe,Ke,b=this;Pe=pe(arguments),Ke=Pe,I(b);for(var R=0,ve=Ke.length;R<ve;R++)b.push(Ke[R]);return b},-1),W(A,"$rassoc",function(Re){for(var Pe=this,Ke=0,b=Pe.length,R;Ke<b;Ke++)if(R=Pe[Ke],R.length&&R[1]!==void 0&&R[1]["$=="](Re))return R;return l}),W(A,"$reject",function nt(){var Re=nt.$$p||l,Pe=this;if(nt.$$p=null,Re===l)return be(Pe,"enum_for",["reject"],function Le(){var Ze=Le.$$s==null?this:Le.$$s;return Ze.$size()},{$$s:Pe});for(var Ke=[],b=0,R=Pe.length,ve;b<R;b++)ve=Re(Pe[b]),(ve===!1||ve===l)&&Ke.push(Pe[b]);return Ke}),W(A,"$reject!",function nt(){var Re=nt.$$p||l,Pe=this,Ke=l;return nt.$$p=null,Re===l?be(Pe,"enum_for",["reject!"],function b(){var R=b.$$s==null?this:b.$$s;return R.$size()},{$$s:Pe}):(I(Pe),Ke=Pe.$length(),be(Pe,"delete_if",[],Re.$to_proc()),O(Pe.$length(),Ke)?l:Pe)}),W(A,"$replace",function(Re){var Pe=this;return I(Pe),Re=ge(u("Array"),Re)?Re.$to_a():p(Re,u("Array"),"to_ary").$to_a(),Pe.splice(0,Pe.length),Pe.push.apply(Pe,Re),Pe}),W(A,"$reverse",function(){var Re=this;return Re.slice(0).reverse()}),W(A,"$reverse!",function(){var Re=this;return I(Re),Re.reverse()}),W(A,"$reverse_each",function nt(){var Re=nt.$$p||l,Pe=this;return nt.$$p=null,Re===l?be(Pe,"enum_for",["reverse_each"],function Ke(){var b=Ke.$$s==null?this:Ke.$$s;return b.$size()},{$$s:Pe}):(be(Pe.$reverse(),"each",[],Re.$to_proc()),Pe)}),W(A,"$rindex",function nt(Re){var Pe=nt.$$p||l,Ke=this;nt.$$p=null;var b,R;if(Re!=null&&Pe!==l&&Ke.$warn("warning: given block not used"),Re!=null){for(b=Ke.length-1;b>=0&&!(b>=Ke.length);b--)if(Ke[b]["$=="](Re))return b}else if(Pe!==l){for(b=Ke.length-1;b>=0&&!(b>=Ke.length);b--)if(R=Pe(Ke[b]),R!==!1&&R!==l)return b}else if(Re==null)return Ke.$enum_for("rindex");return l},-1),W(A,"$rotate",function(Re){var Pe=this;Re==null&&(Re=1);var Ke,b,R,ve;return Re=p(Re,u("Integer"),"to_int"),Pe.length===1?Pe.slice():Pe.length===0?[]:(Ke=Pe.slice(),b=Re%Ke.length,R=Ke.slice(b),ve=Ke.slice(0,b),R.concat(ve))},-1),W(A,"$rotate!",function(Re){var Pe=this,Ke=l;return Re==null&&(Re=1),I(Pe),Pe.length===0||Pe.length===1?Pe:(Re=p(Re,u("Integer"),"to_int"),Ke=Pe.$rotate(Re),Pe.$replace(Ke))},-1),function(nt,Re){var Pe=H(nt,Re,"SampleRandom"),Ke=Pe.$$prototype;return Ke.rng=l,W(Pe,"$initialize",re("rng")),W(Pe,"$rand",function(R){var ve=this,Le=l;return Le=p(ve.rng.$rand(R),u("Integer"),"to_int"),t(Le<0)&&ne.$raise(u("RangeError"),"random value must be >= 0"),t(Le<R)||ne.$raise(u("RangeError"),"random value must be less than Array size"),Le})}(A,null),W(A,"$sample",function(Re,Pe){var Ke=this,b=l,R=l;if(t(Re===void 0))return Ke.$at(ne.$rand(Ke.length));if(t(Pe===void 0)?t(b=X["$coerce_to?"](Re,u("Hash"),"to_hash"))?(Pe=b,Re=l):(Pe=l,Re=p(Re,u("Integer"),"to_int")):(Re=p(Re,u("Integer"),"to_int"),Pe=p(Pe,u("Hash"),"to_hash")),t(Re)&&t(Re<0)&&ne.$raise(u("ArgumentError"),"count must be greater than 0"),t(Pe)&&(R=Pe["$[]"]("random")),R=t(R)&&t(R["$respond_to?"]("rand"))?De("SampleRandom").$new(R):ne,!t(Re))return Ke[R.$rand(Ke.length)];var ve,Le,Ze,ct,a,ae,te,V;switch(Re>Ke.length&&(Re=Ke.length),Re){case 0:return[];case 1:return[Ke[R.$rand(Ke.length)]];case 2:return ct=R.$rand(Ke.length),a=R.$rand(Ke.length-1),ct<=a&&a++,[Ke[ct],Ke[a]];default:if(Ke.length/Re>3){for(ve=!1,Le=0,Ze=De("Array").$new(Re),ct=1,Ze[0]=R.$rand(Ke.length);ct<Re;){for(ae=R.$rand(Ke.length),a=0;a<ct;){for(;ae===Ze[a];){if(Le++,Le>100){ve=!0;break}ae=R.$rand(Ke.length)}if(ve)break;a++}if(ve)break;Ze[ct]=ae,ct++}if(!ve){for(ct=0;ct<Re;)Ze[ct]=Ke[Ze[ct]],ct++;return Ze}}Ze=Ke.slice();for(var _e=0;_e<Re;_e++)te=R.$rand(Ke.length-_e)+_e,V=Ze[_e],Ze[_e]=Ze[te],Ze[te]=V;return Re===Ke.length?Ze:Ze["$[]"](0,Re)}},-1),W(A,"$select",function nt(){var Re=nt.$$p||l,Pe=this;if(nt.$$p=null,Re===l)return be(Pe,"enum_for",["select"],function Ze(){var ct=Ze.$$s==null?this:Ze.$$s;return ct.$size()},{$$s:Pe});for(var Ke=[],b=0,R=Pe.length,ve,Le;b<R;b++)ve=Pe[b],Le=i(Re,ve),t(Le)&&Ke.push(ve);return Ke}),W(A,"$select!",function nt(){var Re=nt.$$p||l,Pe=this;if(nt.$$p=null,Re===l)return be(Pe,"enum_for",["select!"],function b(){var R=b.$$s==null?this:b.$$s;return R.$size()},{$$s:Pe});I(Pe);var Ke=Pe.length;return be(Pe,"keep_if",[],Re.$to_proc()),Pe.length===Ke?l:Pe}),W(A,"$shift",function(Re){var Pe=this;return I(Pe),t(Re===void 0)?t(Pe.length===0)?l:rt(Pe):(Re=p(Re,u("Integer"),"to_int"),t(Re<0)&&ne.$raise(u("ArgumentError"),"negative array size"),t(Pe.length===0)?[]:Pe.splice(0,Re))},-1),W(A,"$shuffle",function(Re){var Pe=this;return Pe.$dup().$to_a()["$shuffle!"](Re)},-1),W(A,"$shuffle!",function(Re){var Pe=this;I(Pe);var Ke,b=Pe.length,R,ve;for(Re!==void 0&&(Re=X["$coerce_to?"](Re,u("Hash"),"to_hash"),Re!==l&&(Re=Re["$[]"]("random"),Re!==l&&Re["$respond_to?"]("rand")&&(Ke=Re)));b;)Ke?(R=Ke.$rand(b).$to_int(),R<0&&ne.$raise(u("RangeError"),"random number too small "+R),R>=b&&ne.$raise(u("RangeError"),"random number too big "+R)):R=Pe.$rand(b),ve=Pe[--b],Pe[b]=Pe[R],Pe[R]=ve;return Pe},-1),W(A,"$slice!",function(Re,Pe){var Ke=this,b=l,R=l,ve=l,Le=l,Ze=l;if(I(Ke),b=l,t(Pe===void 0))if(ge(u("Range"),Re)){R=Re,b=Ke["$[]"](R),ve=R.begin===l?0:p(R.begin,u("Integer"),"to_int"),Le=R.end===l?-1:p(R.end,u("Integer"),"to_int"),ve<0&&(ve+=Ke.length),Le<0?Le+=Ke.length:Le>=Ke.length&&(Le=Ke.length-1,R.excl&&(Le+=1));var ct=Le-ve;R.excl&&R.end!==l?Le-=1:ct+=1,ve<Ke.length&&ve>=0&&Le<Ke.length&&Le>=0&&ct>0&&Ke.splice(ve,ct)}else{if(Ze=p(Re,u("Integer"),"to_int"),Ze<0&&(Ze+=Ke.length),Ze<0||Ze>=Ke.length)return l;b=Ke[Ze],Ze===0?Ke.shift():Ke.splice(Ze,1)}else{if(Ze=p(Re,u("Integer"),"to_int"),Pe=p(Pe,u("Integer"),"to_int"),Pe<0)return l;b=Ke["$[]"](Ze,Pe),Ze<0&&(Ze+=Ke.length),Ze+Pe>Ke.length&&(Pe=Ke.length-Ze),Ze<Ke.length&&Ze>=0&&Ke.splice(Ze,Pe)}return b},-2),W(A,"$sort",function nt(){var Re=nt.$$p||l,Pe=this;return nt.$$p=null,t(Pe.length>1)?(Re===l&&(Re=function(Ke,b){return Ke["$<=>"](b)}),Pe.slice().sort(function(Ke,b){var R=Re(Ke,b);return R===l&&ne.$raise(u("ArgumentError"),"comparison of "+Ke.$inspect()+" with "+b.$inspect()+" failed"),fe(R,0)?1:P(R,0)?-1:0})):Pe}),W(A,"$sort!",function nt(){var Re=nt.$$p||l,Pe=this;nt.$$p=null,I(Pe);var Ke;Re!==l?Ke=be(Pe.slice(),"sort",[],Re.$to_proc()):Ke=Pe.slice().$sort(),Pe.length=0;for(var b=0,R=Ke.length;b<R;b++)Pe.push(Ke[b]);return Pe}),W(A,"$sort_by!",function nt(){var Re=nt.$$p||l,Pe=this;return nt.$$p=null,Re===l?be(Pe,"enum_for",["sort_by!"],function Ke(){var b=Ke.$$s==null?this:Ke.$$s;return b.$size()},{$$s:Pe}):(I(Pe),Pe.$replace(be(Pe,"sort_by",[],Re.$to_proc())))}),W(A,"$take",function(Re){var Pe=this;return Re<0&&ne.$raise(u("ArgumentError")),Pe.slice(0,Re)}),W(A,"$take_while",function nt(){var Re=nt.$$p||l,Pe=this;nt.$$p=null;for(var Ke=[],b=0,R=Pe.length,ve,Le;b<R;b++){if(ve=Pe[b],Le=Re(ve),Le===!1||Le===l)return Ke;Ke.push(ve)}return Ke}),W(A,"$to_a",function(){var Re=this;return Re.$$class===e.Array?Re:e.Array.$new(Re)}),W(A,"$to_ary",Me),W(A,"$to_h",function nt(){var Re=nt.$$p||l,Pe=this,Ke=l;nt.$$p=null,Ke=Pe,Re!==l&&(Ke=be(Ke,"map",[],Re.$to_proc()));var b,R=Ke.length,ve,Le,Ze,ct=se([],{});for(b=0;b<R;b++)ve=X["$coerce_to?"](Ke[b],u("Array"),"to_ary"),ve.$$is_array||ne.$raise(u("TypeError"),"wrong element type "+ve.$class()+" at "+b+" (expected array)"),ve.length!==2&&ne.$raise(u("ArgumentError"),"wrong array length at "+b+" (expected 2, was "+ve.$length()+")"),Le=ve[0],Ze=ve[1],c(ct,Le,Ze);return ct}),W(A,"$transpose",function(){var Re=this,Pe=l,Ke=l;return t(Re["$empty?"]())?[]:(Pe=[],Ke=l,be(Re,"each",[],function(R){var ve=l;return R==null&&(R=l),R=ge(u("Array"),R)?R.$to_a():p(R,u("Array"),"to_ary").$to_a(),Ke=t(ve=Ke)?ve:R.length,ce(R.length,Ke)&&ne.$raise(u("IndexError"),"element size differs ("+R.length+" should be "+Ke+")"),be(R.length,"times",[],function(Ze){var ct,a=l;return Ze==null&&(Ze=l),a=t(ve=Pe["$[]"](Ze))?ve:(ct=[Ze,[]],be(Pe,"[]=",ct),ct[ct.length-1]),a["$<<"](R.$at(Ze))})}),Pe)}),W(A,"$union",function(Re){var Pe,Ke,b=this;return Pe=pe(arguments),Ke=Pe,be(Ke,"reduce",[b.$uniq()],function(ve,Le){return ve==null&&(ve=l),Le==null&&(Le=l),ve["$|"](Le)})},-1),W(A,"$uniq",function nt(){var Re=nt.$$p||l,Pe=this;nt.$$p=null;var Ke=se([],{}),b,R,ve,Le;if(Re===l)for(b=0,R=Pe.length;b<R;b++)ve=Pe[b],s(Ke,ve)===void 0&&c(Ke,ve,ve);else for(b=0,R=Pe.length;b<R;b++)ve=Pe[b],Le=i(Re,ve),s(Ke,Le)===void 0&&c(Ke,Le,ve);return Ke.$values()}),W(A,"$uniq!",function nt(){var Re=nt.$$p||l,Pe=this;nt.$$p=null,I(Pe);var Ke=Pe.length,b=se([],{}),R,ve,Le,Ze;for(R=0,ve=Ke;R<ve;R++){if(Le=Pe[R],Ze=Re===l?Le:i(Re,Le),s(b,Ze)===void 0){c(b,Ze,Le);continue}Pe.splice(R,1),ve--,R--}return Pe.length===Ke?l:Pe}),W(A,"$unshift",function(Re){var Pe,Ke,b=this;Pe=pe(arguments),Ke=Pe,I(b);var R=b.length,ve=Ke.length;if(ve==0)return b;for(var Le=R-ve,Ze=0;Ze<ve;Ze++)b.push(b[Le+Ze]);for(var ct=R-1;ct-ve>=0;)b[ct]=b[ct-ve],ct--;for(var a=0;a<ve;a++)b[a]=Ke[a];return b},-1),W(A,"$values_at",function(Re){var Pe,Ke,b=this,R=l;return Pe=pe(arguments),Ke=Pe,R=[],be(Ke,"each",[],function ve(Le){var Ze=ve.$$s==null?this:ve.$$s,ct=l,a=l,ae=l;return Le==null&&(Le=l),t(Le["$is_a?"](u("Range")))?(ct=Le.$end()===l?-1:p(Le.$end(),u("Integer"),"to_int"),a=Le.$begin()===l?0:p(Le.$begin(),u("Integer"),"to_int"),a<0?(a=a+Ze.length,l):(ct<0&&(ct=ct+Ze.length),Le["$exclude_end?"]()&&Le.$end()!==l&&ct--,ct<a?l:be(a,"upto",[ct],function te(V){var _e=te.$$s==null?this:te.$$s;return V==null&&(V=l),R["$<<"](_e.$at(V))},{$$s:Ze}))):(ae=p(Le,u("Integer"),"to_int"),R["$<<"](Ze.$at(ae)))},{$$s:b}),R},-1),W(A,"$zip",function nt(Re){var Pe=nt.$$p||l,Ke,b,R=this,ve=l;nt.$$p=null,Ke=pe(arguments),b=Ke;var Le=[],Ze=R.length,ct,a,ae,te,V;for(te=0,V=b.length;te<V;te++)if(a=b[te],!a.$$is_array){if(a.$$is_range||a.$$is_enumerator){b[te]=a.$take(Ze);continue}b[te]=(t(ve=X["$coerce_to?"](a,u("Array"),"to_ary"))?ve:X["$coerce_to!"](a,u("Enumerator"),"to_enum","each")).$to_a()}for(ae=0;ae<Ze;ae++){for(ct=[R[ae]],te=0,V=b.length;te<V;te++)a=b[te][ae],a==null&&(a=l),ct[te+1]=a;Le[ae]=ct}if(Pe!==l){for(ae=0;ae<Ze;ae++)e.yield1(Pe,Le[ae]);return l}return Le},-1),xe(A,"$inherited",function(Re){Re.$$prototype.$to_a=function(){return this.slice(0,this.length)}}),W(A,"$instance_variables",function nt(){var Re=nt.$$p||l,Pe=this;return nt.$$p=null,be(me(Pe,J(Pe,"instance_variables",nt,!1,!0),"instance_variables",[],Re),"reject",[],function(b){var R=l;return b==null&&(b=l),t(R=/^@\d+$/.test(b))?R:b["$=="]("@length")})}),W(A,"$pack",function(Re){return pe(arguments),ne.$raise("To use Array#pack, you must first require 'corelib/array/pack'.")},-1),M(A,"append","push"),M(A,"filter","select"),M(A,"filter!","select!"),M(A,"map","collect"),M(A,"map!","collect!"),M(A,"prepend","unshift"),M(A,"size","length"),M(A,"slice","[]"),M(A,"to_s","inspect"),X.$pristine(A.$singleton_class(),"allocate"),X.$pristine(A,"copy_instance_variables","initialize_dup")}("::",Array,$)};Opal.modules["corelib/hash"]=function(e){var t=e.yield1,r=e.hash,n=e.hash_init,i=e.hash_get,s=e.hash_put,c=e.hash_delete,f=e.deny_frozen_access,p=e.freeze,h=e.klass,I=e.slice,F=e.Opal,H=e.Kernel,pe=e.defs,xe=e.def,ne=e.send,W=e.rb_ge,X=e.rb_gt,ge=e.hash2,se=e.truthy,me=e.to_a,J=e.return_self,be=e.alias,fe=e.top,Ae=[],O=e.nil,Ee=e.$$$;return e.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,except!,dup,delete,new,inspect,map,to_proc,flatten,frozen?,eql?,default,default_proc,default_proc=,default=,to_h,proc,clone,select,select!,has_key?,indexes,index,length,[]=,has_value?"),fe.$require("corelib/enumerable"),function(le,w,Se){var N=h(le,w,"Hash"),re=[N].concat(Se),P=e.$r(re);N.$include(Ee("Enumerable")),N.$$prototype.$$is_hash=!0,pe(N,"$[]",function(M){var x,$,l=this;x=I(arguments),$=x;var u,d=$.length,_;if(d===1){if(u=F["$coerce_to?"]($["$[]"](0),Ee("Hash"),"to_hash"),u!==O)return l.$allocate()["$merge!"](u);for($=F["$coerce_to?"]($["$[]"](0),Ee("Array"),"to_ary"),$===O&&H.$raise(Ee("ArgumentError"),"odd number of arguments for Hash"),d=$.length,u=l.$allocate(),_=0;_<d;_++)if($[_].$$is_array)switch($[_].length){case 1:u.$store($[_][0],O);break;case 2:u.$store($[_][0],$[_][1]);break;default:H.$raise(Ee("ArgumentError"),"invalid number of elements ("+$[_].length+" for 1..2)")}return u}for(d%2!==0&&H.$raise(Ee("ArgumentError"),"odd number of arguments for Hash"),u=l.$allocate(),_=0;_<d;_+=2)u.$store($[_],$[_+1]);return u},-1),pe(N,"$allocate",function(){var M=this,x=new M.$$constructor;return n(x),x.$$none=O,x.$$proc=O,x}),pe(N,"$try_convert",function(M){return F["$coerce_to?"](M,Ee("Hash"),"to_hash")}),xe(N,"$initialize",function ce(M){var x=ce.$$p||O,$=this;return ce.$$p=null,f($),M!==void 0&&x!==O&&H.$raise(Ee("ArgumentError"),"wrong number of arguments (1 for 0)"),$.$$none=M===void 0?O:M,$.$$proc=x,$},-1),xe(N,"$==",function(M){var x=this;if(x===M)return!0;if(!M.$$is_hash||x.$$keys.length!==M.$$keys.length)return!1;for(var $=0,l=x.$$keys,u=l.length,d,_,S;$<u;$++)if(d=l[$],d.$$is_string?(_=x.$$smap[d],S=M.$$smap[d]):(_=d.value,S=i(M,d.key)),S===void 0||!_["$eql?"](S))return!1;return!0}),xe(N,"$>=",function(M){var x=this,$=O;return M=F["$coerce_to!"](M,Ee("Hash"),"to_hash"),x.$$keys.length<M.$$keys.length?!1:($=!0,ne(M,"each",[],function l(u,d){var _=l.$$s==null?this:l.$$s,S=O;if(u==null&&(u=O),d==null&&(d=O),S=_.$fetch(u,null),S==null||S!==d){$=!1;return}},{$$s:x}),$)}),xe(N,"$>",function(M){var x=this;return M=F["$coerce_to!"](M,Ee("Hash"),"to_hash"),x.$$keys.length<=M.$$keys.length?!1:W(x,M)}),xe(N,"$<",function(M){var x=this;return M=F["$coerce_to!"](M,Ee("Hash"),"to_hash"),X(M,x)}),xe(N,"$<=",function(M){var x=this;return M=F["$coerce_to!"](M,Ee("Hash"),"to_hash"),W(M,x)}),xe(N,"$[]",function(M){var x=this,$=i(x,M);return $!==void 0?$:x.$default(M)}),xe(N,"$[]=",function(M,x){var $=this;return f($),s($,M,x),x}),xe(N,"$assoc",function(M){for(var x=this,$=0,l=x.$$keys,u=l.length,d;$<u;$++)if(d=l[$],d.$$is_string){if(d["$=="](M))return[d,x.$$smap[d]]}else if(d.key["$=="](M))return[d.key,d.value];return O}),xe(N,"$clear",function(){var M=this;return f(M),n(M),M}),xe(N,"$clone",function(){var M=this,x=new M.$$class;return n(x),e.hash_clone(M,x),x}),xe(N,"$compact",function(){for(var M=this,x=r(),$=0,l=M.$$keys,u=l.length,d,_,S;$<u;$++)d=l[$],d.$$is_string?_=M.$$smap[d]:(_=d.value,d=d.key),_!==O&&s(x,d,_);return x}),xe(N,"$compact!",function(){var M=this;f(M);for(var x=!1,$=0,l=M.$$keys,u=l.length,d,_,S;$<u;$++)d=l[$],d.$$is_string?_=M.$$smap[d]:(_=d.value,d=d.key),_===O&&c(M,d)!==void 0&&(x=!0,u--,$--);return x?M:O}),xe(N,"$compare_by_identity",function(){var M=this;f(M);var x,$,l,u=M.$$keys,d;if(M.$$by_identity)return M;if(M.$$keys.length===0)return M.$$by_identity=!0,M;for(d=ge([],{}).$compare_by_identity(),x=0,$=u.length;x<$;x++)l=u[x],l.$$is_string||(l=l.key),s(d,l,i(M,l));return M.$$by_identity=!0,M.$$map=d.$$map,M.$$smap=d.$$smap,M}),xe(N,"$compare_by_identity?",function(){var M=this;return M.$$by_identity===!0}),xe(N,"$default",function(M){var x=this;return M!==void 0&&x.$$proc!==O&&x.$$proc!==void 0?x.$$proc.$call(x,M):x.$$none===void 0?O:x.$$none},-1),xe(N,"$default=",function(M){var x=this;return f(x),x.$$proc=O,x.$$none=M,M}),xe(N,"$default_proc",function(){var M=this;return M.$$proc!==void 0?M.$$proc:O}),xe(N,"$default_proc=",function(M){var x=this;f(x);var $=M;return $!==O&&($=F["$coerce_to!"]($,Ee("Proc"),"to_proc"),$["$lambda?"]()&&$.$arity().$abs()!==2&&H.$raise(Ee("TypeError"),"default_proc takes two arguments")),x.$$none=O,x.$$proc=$,M}),xe(N,"$delete",function ce(M){var x=ce.$$p||O,$=this;ce.$$p=null,f($);var l=c($,M);return l!==void 0?l:x!==O?e.yield1(x,M):O}),xe(N,"$delete_if",function ce(){var M=ce.$$p||O,x=this;if(ce.$$p=null,!se(M))return ne(x,"enum_for",["delete_if"],function A(){var Q=A.$$s==null?this:A.$$s;return Q.$size()},{$$s:x});f(x);for(var $=0,l=x.$$keys,u=l.length,d,_,S;$<u;$++)d=l[$],d.$$is_string?_=x.$$smap[d]:(_=d.value,d=d.key),S=M(d,_),S!==!1&&S!==O&&c(x,d)!==void 0&&(u--,$--);return x}),xe(N,"$dig",function(M,x){var $,l,u=this,d=O;return $=I(arguments,1),l=$,d=u["$[]"](M),d===O||l.length===0?d:(se(d["$respond_to?"]("dig"))||H.$raise(Ee("TypeError"),""+d.$class()+" does not have #dig method"),ne(d,"dig",me(l)))},-2),xe(N,"$each",function ce(){var M=ce.$$p||O,x=this;if(ce.$$p=null,!se(M))return ne(x,"enum_for",["each"],function S(){var A=S.$$s==null?this:S.$$s;return A.$size()},{$$s:x});for(var $=0,l=x.$$keys.slice(),u=l.length,d,_;$<u;$++)d=l[$],d.$$is_string?_=x.$$smap[d]:(_=d.value,d=d.key),t(M,[d,_]);return x}),xe(N,"$each_key",function ce(){var M=ce.$$p||O,x=this;if(ce.$$p=null,!se(M))return ne(x,"enum_for",["each_key"],function _(){var S=_.$$s==null?this:_.$$s;return S.$size()},{$$s:x});for(var $=0,l=x.$$keys.slice(),u=l.length,d;$<u;$++)d=l[$],M(d.$$is_string?d:d.key);return x}),xe(N,"$each_value",function ce(){var M=ce.$$p||O,x=this;if(ce.$$p=null,!se(M))return ne(x,"enum_for",["each_value"],function _(){var S=_.$$s==null?this:_.$$s;return S.$size()},{$$s:x});for(var $=0,l=x.$$keys.slice(),u=l.length,d;$<u;$++)d=l[$],M(d.$$is_string?x.$$smap[d]:d.value);return x}),xe(N,"$empty?",function(){var M=this;return M.$$keys.length===0}),xe(N,"$except",function(M){var x,$,l=this;return x=I(arguments),$=x,ne(l.$dup(),"except!",me($))},-1),xe(N,"$except!",function(M){var x,$,l=this;return x=I(arguments),$=x,ne($,"each",[],function u(d){var _=u.$$s==null?this:u.$$s;return d==null&&(d=O),_.$delete(d)},{$$s:l}),l},-1),xe(N,"$fetch",function ce(M,x){var $=ce.$$p||O,l=this;ce.$$p=null;var u=i(l,M);return u!==void 0?u:$!==O?$(M):x!==void 0?x:H.$raise(Ee("KeyError").$new("key not found: "+M.$inspect(),ge(["key","receiver"],{key:M,receiver:l})))},-2),xe(N,"$fetch_values",function ce(M){var x=ce.$$p||O,$,l,u=this;return ce.$$p=null,$=I(arguments),l=$,ne(l,"map",[],function d(_){var S=d.$$s==null?this:d.$$s;return _==null&&(_=O),ne(S,"fetch",[_],x.$to_proc())},{$$s:u})},-1),xe(N,"$flatten",function(M){var x=this;M==null&&(M=1),M=F["$coerce_to!"](M,Ee("Integer"),"to_int");for(var $=[],l=0,u=x.$$keys,d=u.length,_,S;l<d;l++){if(_=u[l],_.$$is_string?S=x.$$smap[_]:(S=_.value,_=_.key),$.push(_),S.$$is_array){if(M===1){$.push(S);continue}$=$.concat(S.$flatten(M-2));continue}$.push(S)}return $},-1),xe(N,"$freeze",function(){var M=this;return se(M["$frozen?"]())?M:p(M)}),xe(N,"$has_key?",function(M){var x=this;return i(x,M)!==void 0}),xe(N,"$has_value?",function(M){for(var x=this,$=0,l=x.$$keys,u=l.length,d;$<u;$++)if(d=l[$],(d.$$is_string?x.$$smap[d]:d.value)["$=="](M))return!0;return!1}),xe(N,"$hash",function(){var M=this,x=e.hash_ids===void 0,$=M.$object_id(),l=["Hash"],u,d;try{if(x&&(e.hash_ids=Object.create(null)),e[$])return"self";for(u in e.hash_ids)if(d=e.hash_ids[u],M["$eql?"](d))return"self";e.hash_ids[$]=M;for(var _=0,S=M.$$keys,A=S.length;_<A;_++)u=S[_],u.$$is_string?l.push([u,M.$$smap[u].$hash()]):l.push([u.key_hash,u.value.$hash()]);return l.sort().join()}finally{x&&(e.hash_ids=void 0)}}),xe(N,"$index",function(M){for(var x=this,$=0,l=x.$$keys,u=l.length,d,_;$<u;$++)if(d=l[$],d.$$is_string?_=x.$$smap[d]:(_=d.value,d=d.key),_["$=="](M))return d;return O}),xe(N,"$indexes",function(M){var x,$,l=this;x=I(arguments),$=x;for(var u=[],d=0,_=$.length,S,A;d<_;d++){if(S=$[d],A=i(l,S),A===void 0){u.push(l.$default());continue}u.push(A)}return u},-1);var Me;return xe(N,"$inspect",function(){var M=this,x=Me===void 0,$=M.$object_id(),l=[];return function(){try{if(x&&(Me={}),Me.hasOwnProperty($))return"{...}";Me[$]=!0;for(var u=0,d=M.$$keys,_=d.length,S,A;u<_;u++)S=d[u],S.$$is_string?A=M.$$smap[S]:(A=S.value,S=S.key),S=P("Opal").$inspect(S),A=P("Opal").$inspect(A),l.push(S+"=>"+A);return"{"+l.join(", ")+"}"}finally{x&&(Me=void 0)}}()}),xe(N,"$invert",function(){for(var M=this,x=r(),$=0,l=M.$$keys,u=l.length,d,_;$<u;$++)d=l[$],d.$$is_string?_=M.$$smap[d]:(_=d.value,d=d.key),s(x,_,d);return x}),xe(N,"$keep_if",function ce(){var M=ce.$$p||O,x=this;if(ce.$$p=null,!se(M))return ne(x,"enum_for",["keep_if"],function A(){var Q=A.$$s==null?this:A.$$s;return Q.$size()},{$$s:x});f(x);for(var $=0,l=x.$$keys,u=l.length,d,_,S;$<u;$++)d=l[$],d.$$is_string?_=x.$$smap[d]:(_=d.value,d=d.key),S=M(d,_),(S===!1||S===O)&&c(x,d)!==void 0&&(u--,$--);return x}),xe(N,"$keys",function(){for(var M=this,x=[],$=0,l=M.$$keys,u=l.length,d;$<u;$++)d=l[$],d.$$is_string?x.push(d):x.push(d.key);return x}),xe(N,"$length",function(){var M=this;return M.$$keys.length}),xe(N,"$merge",function ce(M){var x=ce.$$p||O,$,l,u=this;return ce.$$p=null,$=I(arguments),l=$,ne(u.$dup(),"merge!",me(l),x.$to_proc())},-1),xe(N,"$merge!",function ce(M){var x=ce.$$p||O,$,l,u=this;ce.$$p=null,$=I(arguments),l=$,f(u);var d,_,S,A,Q,De,rt,ft;for(d=0;d<l.length;++d)if(S=F["$coerce_to!"](l[d],Ee("Hash"),"to_hash"),A=S.$$keys,Q=A.length,x===O)for(_=0;_<Q;_++)De=A[_],De.$$is_string?ft=S.$$smap[De]:(ft=De.value,De=De.key),s(u,De,ft);else for(_=0;_<Q;_++){if(De=A[_],De.$$is_string?ft=S.$$smap[De]:(ft=De.value,De=De.key),rt=i(u,De),rt===void 0){s(u,De,ft);continue}s(u,De,x(De,rt,ft))}return u},-1),xe(N,"$rassoc",function(M){for(var x=this,$=0,l=x.$$keys,u=l.length,d,_;$<u;$++)if(d=l[$],d.$$is_string?_=x.$$smap[d]:(_=d.value,d=d.key),_["$=="](M))return[d,_];return O}),xe(N,"$rehash",function(){var M=this;return f(M),e.hash_rehash(M),M}),xe(N,"$reject",function ce(){var M=ce.$$p||O,x=this;if(ce.$$p=null,!se(M))return ne(x,"enum_for",["reject"],function Q(){var De=Q.$$s==null?this:Q.$$s;return De.$size()},{$$s:x});for(var $=r(),l=0,u=x.$$keys,d=u.length,_,S,A;l<d;l++)_=u[l],_.$$is_string?S=x.$$smap[_]:(S=_.value,_=_.key),A=M(_,S),(A===!1||A===O)&&s($,_,S);return $}),xe(N,"$reject!",function ce(){var M=ce.$$p||O,x=this;if(ce.$$p=null,!se(M))return ne(x,"enum_for",["reject!"],function Q(){var De=Q.$$s==null?this:Q.$$s;return De.$size()},{$$s:x});f(x);for(var $=!1,l=0,u=x.$$keys,d=u.length,_,S,A;l<d;l++)_=u[l],_.$$is_string?S=x.$$smap[_]:(S=_.value,_=_.key),A=M(_,S),A!==!1&&A!==O&&c(x,_)!==void 0&&($=!0,d--,l--);return $?x:O}),xe(N,"$replace",function(M){var x=this;f(x),M=F["$coerce_to!"](M,Ee("Hash"),"to_hash"),n(x);for(var $=0,l=M.$$keys,u=l.length,d,_,S;$<u;$++)d=l[$],d.$$is_string?S=M.$$smap[d]:(S=d.value,d=d.key),s(x,d,S);return se(M.$default_proc())?x["$default_proc="](M.$default_proc()):x["$default="](M.$default()),x}),xe(N,"$select",function ce(){var M=ce.$$p||O,x=this;if(ce.$$p=null,!se(M))return ne(x,"enum_for",["select"],function Q(){var De=Q.$$s==null?this:Q.$$s;return De.$size()},{$$s:x});for(var $=r(),l=0,u=x.$$keys,d=u.length,_,S,A;l<d;l++)_=u[l],_.$$is_string?S=x.$$smap[_]:(S=_.value,_=_.key),A=M(_,S),A!==!1&&A!==O&&s($,_,S);return $}),xe(N,"$select!",function ce(){var M=ce.$$p||O,x=this;if(ce.$$p=null,!se(M))return ne(x,"enum_for",["select!"],function Q(){var De=Q.$$s==null?this:Q.$$s;return De.$size()},{$$s:x});f(x);for(var $=O,l=0,u=x.$$keys,d=u.length,_,S,A;l<d;l++)_=u[l],_.$$is_string?S=x.$$smap[_]:(S=_.value,_=_.key),A=M(_,S),(A===!1||A===O)&&(c(x,_)!==void 0&&(d--,l--),$=x);return $}),xe(N,"$shift",function(){var M=this;f(M);var x=M.$$keys,$;return x.length>0?($=x[0],$=$.$$is_string?$:$.key,[$,c(M,$)]):O}),xe(N,"$slice",function(M){var x,$,l=this;x=I(arguments),$=x;for(var u=r(),d=0,_=$.length;d<_;d++){var S=$[d],A=i(l,S);A!==void 0&&s(u,S,A)}return u},-1),xe(N,"$to_a",function(){for(var M=this,x=[],$=0,l=M.$$keys,u=l.length,d,_;$<u;$++)d=l[$],d.$$is_string?_=M.$$smap[d]:(_=d.value,d=d.key),x.push([d,_]);return x}),xe(N,"$to_h",function ce(){var M=ce.$$p||O,x=this;if(ce.$$p=null,M!==O)return ne(x,"map",[],M.$to_proc()).$to_h();if(x.$$class===e.Hash)return x;var $=new e.Hash;return n($),e.hash_clone(x,$),$}),xe(N,"$to_hash",J),xe(N,"$to_proc",function(){var M=this;return ne(M,"proc",[],function x($){var l=x.$$s==null?this:x.$$s;return $==null&&H.$raise(Ee("ArgumentError"),"no key given"),l["$[]"]($)},{$$arity:-1,$$s:M})}),xe(N,"$transform_keys",function ce(){var M=ce.$$p||O,x=this;if(ce.$$p=null,!se(M))return ne(x,"enum_for",["transform_keys"],function A(){var Q=A.$$s==null?this:A.$$s;return Q.$size()},{$$s:x});for(var $=r(),l=0,u=x.$$keys,d=u.length,_,S;l<d;l++)_=u[l],_.$$is_string?S=x.$$smap[_]:(S=_.value,_=_.key),_=t(M,_),s($,_,S);return $}),xe(N,"$transform_keys!",function ce(){var M=ce.$$p||O,x=this;if(ce.$$p=null,!se(M))return ne(x,"enum_for",["transform_keys!"],function A(){var Q=A.$$s==null?this:A.$$s;return Q.$size()},{$$s:x});f(x);var $=e.slice(x.$$keys),l,u=$.length,d,_,S;for(l=0;l<u;l++)d=$[l],d.$$is_string?_=x.$$smap[d]:(_=d.value,d=d.key),S=t(M,d),c(x,d),s(x,S,_);return x}),xe(N,"$transform_values",function ce(){var M=ce.$$p||O,x=this;if(ce.$$p=null,!se(M))return ne(x,"enum_for",["transform_values"],function A(){var Q=A.$$s==null?this:A.$$s;return Q.$size()},{$$s:x});for(var $=r(),l=0,u=x.$$keys,d=u.length,_,S;l<d;l++)_=u[l],_.$$is_string?S=x.$$smap[_]:(S=_.value,_=_.key),S=t(M,S),s($,_,S);return $}),xe(N,"$transform_values!",function ce(){var M=ce.$$p||O,x=this;if(ce.$$p=null,!se(M))return ne(x,"enum_for",["transform_values!"],function S(){var A=S.$$s==null?this:S.$$s;return A.$size()},{$$s:x});f(x);for(var $=0,l=x.$$keys,u=l.length,d,_;$<u;$++)d=l[$],d.$$is_string?_=x.$$smap[d]:(_=d.value,d=d.key),_=t(M,_),s(x,d,_);return x}),xe(N,"$values",function(){for(var M=this,x=[],$=0,l=M.$$keys,u=l.length,d;$<u;$++)d=l[$],d.$$is_string?x.push(M.$$smap[d]):x.push(d.value);return x}),be(N,"dup","clone"),be(N,"each_pair","each"),be(N,"eql?","=="),be(N,"filter","select"),be(N,"filter!","select!"),be(N,"include?","has_key?"),be(N,"indices","indexes"),be(N,"key","index"),be(N,"key?","has_key?"),be(N,"member?","has_key?"),be(N,"size","length"),be(N,"store","[]="),be(N,"to_s","inspect"),be(N,"update","merge!"),be(N,"value?","has_value?"),be(N,"values_at","indexes")}("::",null,Ae)};Opal.modules["corelib/number"]=function(e){var t=e.klass,r=e.Opal,n=e.Kernel,i=e.def,s=e.eqeqeq,c=e.truthy,f=e.rb_gt,p=e.not,h=e.rb_lt,I=e.alias,F=e.send2,H=e.find_super,pe=e.send,xe=e.rb_plus,ne=e.rb_minus,W=e.eqeq,X=e.return_self,ge=e.rb_divide,se=e.to_ary,me=e.rb_times,J=e.rb_le,be=e.rb_ge,fe=e.return_val,Ae=e.const_set,O=e.top,Ee=[],le=e.nil,w=e.$$$;return e.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,<=,>=,inspect,angle,to_s,is_a?,abs,__id__,next,coerce_to?"),O.$require("corelib/numeric"),function(Se,N,re){var P=t(Se,N,"Number");r.$bridge(Number,P),e.prop(P.$$prototype,"$$is_number",!0),P.$$is_number_class=!0,function(l,u){return i(l,"$allocate",function(){var _=this;return n.$raise(w("TypeError"),"allocator undefined for "+_.$name())}),e.udef(l,"$new"),le}(e.get_singleton_class(P)),i(P,"$coerce",function(u){var d=this;if(u===le)n.$raise(w("TypeError"),"can't convert "+u.$class()+" into Float");else{if(u.$$is_string)return[n.$Float(u),d];if(u["$respond_to?"]("to_f"))return[r["$coerce_to!"](u,w("Float"),"to_f"),d];if(u.$$is_number)return[u,d];n.$raise(w("TypeError"),"can't convert "+u.$class()+" into Float")}}),i(P,"$__id__",function(){var u=this;return u*2+1}),i(P,"$+",function(u){var d=this;return u.$$is_number?d+u:d.$__coerced__("+",u)}),i(P,"$-",function(u){var d=this;return u.$$is_number?d-u:d.$__coerced__("-",u)}),i(P,"$*",function(u){var d=this;return u.$$is_number?d*u:d.$__coerced__("*",u)}),i(P,"$/",function(u){var d=this;return u.$$is_number?d/u:d.$__coerced__("/",u)}),i(P,"$%",function(u){var d=this;if(u.$$is_number){if(u==-1/0)return u;if(u==0)n.$raise(w("ZeroDivisionError"),"divided by 0");else return u<0||d<0?(d%u+u)%u:d%u}else return d.$__coerced__("%",u)}),i(P,"$&",function(u){var d=this;return u.$$is_number?d&u:d.$__coerced__("&",u)}),i(P,"$|",function(u){var d=this;return u.$$is_number?d|u:d.$__coerced__("|",u)}),i(P,"$^",function(u){var d=this;return u.$$is_number?d^u:d.$__coerced__("^",u)}),i(P,"$<",function(u){var d=this;return u.$$is_number?d<u:d.$__coerced__("<",u)}),i(P,"$<=",function(u){var d=this;return u.$$is_number?d<=u:d.$__coerced__("<=",u)}),i(P,"$>",function(u){var d=this;return u.$$is_number?d>u:d.$__coerced__(">",u)}),i(P,"$>=",function(u){var d=this;return u.$$is_number?d>=u:d.$__coerced__(">=",u)});var Me=function(l,u){return u.$$is_number?isNaN(l)||isNaN(u)?le:l>u?1:l<u?-1:0:l.$__coerced__("<=>",u)};i(P,"$<=>",function(u){var d=this;try{return Me(d,u)}catch(_){if(e.rescue(_,[w("ArgumentError")]))try{return le}finally{e.pop_exception()}else throw _}}),i(P,"$<<",function(u){var d=this;return u=r["$coerce_to!"](u,w("Integer"),"to_int"),u>0?d<<u:d>>-u}),i(P,"$>>",function(u){var d=this;return u=r["$coerce_to!"](u,w("Integer"),"to_int"),u>0?d>>u:d<<-u}),i(P,"$[]",function(u){var d=this;return u=r["$coerce_to!"](u,w("Integer"),"to_int"),u<0?0:u>=32?d<0?1:0:d>>u&1}),i(P,"$+@",function(){var u=this;return+u}),i(P,"$-@",function(){var u=this;return-u}),i(P,"$~",function(){var u=this;return~u}),i(P,"$**",function(u){var d=this;return s(w("Integer"),u)?p(w("Integer")["$==="](d))||c(f(u,0))?Math.pow(d,u):w("Rational").$new(d,1)["$**"](u):h(d,0)&&(s(w("Float"),u)||s(w("Rational"),u))?w("Complex").$new(d,0)["$**"](u.$to_f()):c(u.$$is_number!=null)?Math.pow(d,u):d.$__coerced__("**",u)}),i(P,"$==",function(u){var d=this;return u.$$is_number?d.valueOf()===u.valueOf():u["$respond_to?"]("==")?u["$=="](d):!1}),I(P,"===","=="),i(P,"$abs",function(){var u=this;return Math.abs(u)}),i(P,"$abs2",function(){var u=this;return Math.abs(u*u)}),i(P,"$allbits?",function(u){var d=this;return u=r["$coerce_to!"](u,w("Integer"),"to_int"),(d&u)==u}),i(P,"$anybits?",function(u){var d=this;return u=r["$coerce_to!"](u,w("Integer"),"to_int"),(d&u)!==0}),i(P,"$angle",function(){var u=this;return c(u["$nan?"]())?u:u==0?1/u>0?0:Math.PI:u<0?Math.PI:0}),i(P,"$bit_length",function(){var u=this;if(s(w("Integer"),u)||n.$raise(w("NoMethodError").$new("undefined method `bit_length` for "+u+":Float","bit_length")),u===0||u===-1)return 0;for(var d=0,_=u<0?~u:u;_!=0;)d+=1,_>>>=1;return d}),i(P,"$ceil",function(u){var d=this;u==null&&(u=0);var _=d.$to_f();if(_%1===0&&u>=0)return _;var S=Math.pow(10,u),A=Math.ceil(_*S)/S;return _%1===0&&(A=Math.round(A)),A},-1),i(P,"$chr",function(u){var d=this;return e.enc(String.fromCharCode(d),u||"BINARY")},-1),i(P,"$denominator",function l(){var u=l.$$p||le,d=this;return l.$$p=null,c(d["$nan?"]())||c(d["$infinite?"]())?1:F(d,H(d,"denominator",l,!1,!0),"denominator",[],u)}),i(P,"$downto",function l(u){var d=l.$$p||le,_=this;if(l.$$p=null,d===le)return pe(_,"enum_for",["downto",u],function A(){var Q=A.$$s==null?this:A.$$s;return s(w("Numeric"),u)||n.$raise(w("ArgumentError"),"comparison of "+Q.$class()+" with "+u.$class()+" failed"),c(f(u,Q))?0:xe(ne(Q,u),1)},{$$s:_});u.$$is_number||n.$raise(w("ArgumentError"),"comparison of "+_.$class()+" with "+u.$class()+" failed");for(var S=_;S>=u;S--)d(S);return _}),i(P,"$equal?",function(u){var d=this,_=le;return c(_=d["$=="](u))?_:isNaN(d)&&isNaN(u)}),i(P,"$even?",function(){var u=this;return u%2===0}),i(P,"$floor",function(u){var d=this;u==null&&(u=0);var _=d.$to_f();if(_%1===0&&u>=0)return _;var S=Math.pow(10,u),A=Math.floor(_*S)/S;return _%1===0&&(A=Math.round(A)),A},-1),i(P,"$gcd",function(u){var d=this;s(w("Integer"),u)||n.$raise(w("TypeError"),"not an integer");for(var _=Math.abs(d),S=Math.abs(u);_>0;){var A=_;_=S%_,S=A}return S}),i(P,"$gcdlcm",function(u){var d=this;return[d.$gcd(u),d.$lcm(u)]}),i(P,"$integer?",function(){var u=this;return u%1===0}),i(P,"$is_a?",function l(u){var d=l.$$p||le,_=this;return l.$$p=null,W(u,w("Integer"))&&s(w("Integer"),_)||W(u,w("Integer"))&&s(w("Integer"),_)||W(u,w("Float"))&&s(w("Float"),_)?!0:F(_,H(_,"is_a?",l,!1,!0),"is_a?",[u],d)}),i(P,"$instance_of?",function l(u){var d=l.$$p||le,_=this;return l.$$p=null,W(u,w("Integer"))&&s(w("Integer"),_)||W(u,w("Integer"))&&s(w("Integer"),_)||W(u,w("Float"))&&s(w("Float"),_)?!0:F(_,H(_,"instance_of?",l,!1,!0),"instance_of?",[u],d)}),i(P,"$lcm",function(u){var d=this;return s(w("Integer"),u)||n.$raise(w("TypeError"),"not an integer"),d==0||u==0?0:Math.abs(d*u/d.$gcd(u))}),i(P,"$next",function(){var u=this;return u+1}),i(P,"$nobits?",function(u){var d=this;return u=r["$coerce_to!"](u,w("Integer"),"to_int"),(d&u)==0}),i(P,"$nonzero?",function(){var u=this;return u==0?le:u}),i(P,"$numerator",function l(){var u=l.$$p||le,d=this;return l.$$p=null,c(d["$nan?"]())||c(d["$infinite?"]())?d:F(d,H(d,"numerator",l,!1,!0),"numerator",[],u)}),i(P,"$odd?",function(){var u=this;return u%2!==0}),i(P,"$ord",X),i(P,"$pow",function(u,d){var _=this;return _==0&&n.$raise(w("ZeroDivisionError"),"divided by 0"),d===void 0?_["$**"](u):(w("Integer")["$==="](u)||n.$raise(w("TypeError"),"Integer#pow() 2nd argument not allowed unless a 1st argument is integer"),u<0&&n.$raise(w("TypeError"),"Integer#pow() 1st argument cannot be negative when 2nd argument specified"),w("Integer")["$==="](d)||n.$raise(w("TypeError"),"Integer#pow() 2nd argument not allowed unless all arguments are integers"),d===0&&n.$raise(w("ZeroDivisionError"),"divided by 0"),_["$**"](u)["$%"](d))},-2),i(P,"$pred",function(){var u=this;return u-1}),i(P,"$quo",function l(u){var d=l.$$p||le,_=this;return l.$$p=null,s(w("Integer"),_)?F(_,H(_,"quo",l,!1,!0),"quo",[u],d):ge(_,u)}),i(P,"$rationalize",function(u){var d,_,S=this,A=le,Q=le;return arguments.length>1&&n.$raise(w("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),s(w("Integer"),S)?w("Rational").$new(S,1):c(S["$infinite?"]())?n.$raise(w("FloatDomainError"),"Infinity"):c(S["$nan?"]())?n.$raise(w("FloatDomainError"),"NaN"):c(u==null)?(_=w("Math").$frexp(S),d=se(_),A=d[0]==null?le:d[0],Q=d[1]==null?le:d[1],A=w("Math").$ldexp(A,w(w("Float"),"MANT_DIG")).$to_i(),Q=ne(Q,w(w("Float"),"MANT_DIG")),w("Rational").$new(me(2,A),1["$<<"](ne(1,Q))).$rationalize(w("Rational").$new(1,1["$<<"](ne(1,Q))))):S.$to_r().$rationalize(u)},-1),i(P,"$remainder",function(u){var d=this;return ne(d,me(u,ge(d,u).$truncate()))}),i(P,"$round",function(u){var d,_,S=this,A=le;if(s(w("Integer"),S)){if(c(u==null)||(s(w("Float"),u)&&c(u["$infinite?"]())&&n.$raise(w("RangeError"),"Infinity"),u=r["$coerce_to!"](u,w("Integer"),"to_int"),c(h(u,w(w("Integer"),"MIN")))&&n.$raise(w("RangeError"),"out of bounds"),c(u>=0)))return S;if(u=u["$-@"](),.415241*u-.125>S.$size())return 0;var Q=Math.pow(10,u),De=Math.floor((Math.abs(S)+Q/2)/Q)*Q;return S<0?-De:De}else{if(c(S["$nan?"]())&&c(u==null)&&n.$raise(w("FloatDomainError"),"NaN"),u=r["$coerce_to!"](u||0,w("Integer"),"to_int"),c(J(u,0)))c(S["$nan?"]())?n.$raise(w("RangeError"),"NaN"):c(S["$infinite?"]())&&n.$raise(w("FloatDomainError"),"Infinity");else{if(W(u,0))return Math.round(S);if(c(S["$nan?"]())||c(S["$infinite?"]()))return S}return _=w("Math").$frexp(S),d=se(_),d[0]==null||d[0],A=d[1]==null?le:d[1],c(be(u,ne(xe(w(w("Float"),"DIG"),2),c(f(A,0))?ge(A,4):ne(ge(A,3),1))))?S:c(h(u,(c(f(A,0))?xe(ge(A,3),1):ge(A,4))["$-@"]()))?0:Math.round(S*Math.pow(10,u))/Math.pow(10,u)}},-1),i(P,"$times",function l(){var u=l.$$p||le,d=this;if(l.$$p=null,!c(u))return pe(d,"enum_for",["times"],function S(){var A=S.$$s==null?this:S.$$s;return A},{$$s:d});for(var _=0;_<d;_++)u(_);return d}),i(P,"$to_f",X),i(P,"$to_i",function(){var u=this;return u<0?Math.ceil(u):Math.floor(u)}),i(P,"$to_r",function(){var u,d,_=this,S=le,A=le;return s(w("Integer"),_)?w("Rational").$new(_,1):(d=w("Math").$frexp(_),u=se(d),S=u[0]==null?le:u[0],A=u[1]==null?le:u[1],S=w("Math").$ldexp(S,w(w("Float"),"MANT_DIG")).$to_i(),A=ne(A,w(w("Float"),"MANT_DIG")),me(S,w(w("Float"),"RADIX")["$**"](A)).$to_r())}),i(P,"$to_s",function(u){var d=this;return u==null&&(u=10),u=r["$coerce_to!"](u,w("Integer"),"to_int"),(c(h(u,2))||c(f(u,36)))&&n.$raise(w("ArgumentError"),"invalid radix "+u),W(d,0)&&c(1/d===-1/0)?"-0.0":d.toString(u)},-1),i(P,"$truncate",function(u){var d=this;u==null&&(u=0);var _=d.$to_f();if(_%1===0&&u>=0)return _;var S=Math.pow(10,u),A=parseInt(_*S,10)/S;return _%1===0&&(A=Math.round(A)),A},-1),i(P,"$digits",function(u){var d=this;u==null&&(u=10),h(d,0)&&n.$raise(w(w("Math"),"DomainError"),"out of domain"),u=r["$coerce_to!"](u,w("Integer"),"to_int"),c(h(u,2))&&n.$raise(w("ArgumentError"),"invalid radix "+u),d!=parseInt(d)&&n.$raise(w("NoMethodError"),"undefined method `digits' for "+d.$inspect());var _=d,S=[];if(d==0)return[0];for(;_!=0;)S.push(_%u),_=parseInt(_/u,10);return S},-1),i(P,"$divmod",function l(u){var d=l.$$p||le,_=this;return l.$$p=null,c(_["$nan?"]())||c(u["$nan?"]())?n.$raise(w("FloatDomainError"),"NaN"):c(_["$infinite?"]())?n.$raise(w("FloatDomainError"),"Infinity"):F(_,H(_,"divmod",l,!1,!0),"divmod",[u],d)}),i(P,"$upto",function l(u){var d=l.$$p||le,_=this;if(l.$$p=null,d===le)return pe(_,"enum_for",["upto",u],function A(){var Q=A.$$s==null?this:A.$$s;return s(w("Numeric"),u)||n.$raise(w("ArgumentError"),"comparison of "+Q.$class()+" with "+u.$class()+" failed"),c(h(u,Q))?0:xe(ne(u,Q),1)},{$$s:_});u.$$is_number||n.$raise(w("ArgumentError"),"comparison of "+_.$class()+" with "+u.$class()+" failed");for(var S=_;S<=u;S++)d(S);return _}),i(P,"$zero?",function(){var u=this;return u==0}),i(P,"$size",fe(4)),i(P,"$nan?",function(){var u=this;return isNaN(u)}),i(P,"$finite?",function(){var u=this;return u!=1/0&&u!=-1/0&&!isNaN(u)}),i(P,"$infinite?",function(){var u=this;return u==1/0?1:u==-1/0?-1:le}),i(P,"$positive?",function(){var u=this;return u!=0&&(u==1/0||1/u>0)}),i(P,"$negative?",function(){var u=this;return u==-1/0||1/u<0});function ce(l){var u=new Uint8Array(8);return new DataView(u.buffer).setFloat64(0,l,!0),u}function M(l){return new DataView(l.buffer).getFloat64(0,!0)}function x(l){for(var u=ce(l),d=0;d<u.length;d++)if(u[d]===255)u[d]=0;else{u[d]++;break}return M(u)}function $(l){for(var u=ce(l),d=0;d<u.length;d++)if(u[d]===0)u[d]=255;else{u[d]--;break}return M(u)}return i(P,"$next_float",function(){var u=this;return W(u,w(w("Float"),"INFINITY"))?w(w("Float"),"INFINITY"):c(u["$nan?"]())?w(w("Float"),"NAN"):be(u,0)?x(Math.abs(u)):$(u)}),i(P,"$prev_float",function(){var u=this;return W(u,w(w("Float"),"INFINITY")["$-@"]())?w(w("Float"),"INFINITY")["$-@"]():c(u["$nan?"]())?w(w("Float"),"NAN"):f(u,0)?$(u):-x(Math.abs(u))}),I(P,"arg","angle"),I(P,"eql?","=="),I(P,"fdiv","/"),I(P,"inspect","to_s"),I(P,"kind_of?","is_a?"),I(P,"magnitude","abs"),I(P,"modulo","%"),I(P,"object_id","__id__"),I(P,"phase","angle"),I(P,"succ","next"),I(P,"to_int","to_i")}("::",w("Numeric")),Ae("::","Fixnum",w("Number")),function(Se,N,re){var P=t(Se,N,"Integer"),Me=[P].concat(re);return P.$$is_number_class=!0,P.$$is_integer_class=!0,function(ce,M){var x=[ce].concat(M),$=e.$r(x);return i(ce,"$allocate",function(){var u=this;return n.$raise(w("TypeError"),"allocator undefined for "+u.$name())}),e.udef(ce,"$new"),i(ce,"$sqrt",function(u){return u=r["$coerce_to!"](u,w("Integer"),"to_int"),u<0&&n.$raise(w(w("Math"),"DomainError"),'Numerical argument is out of domain - "isqrt"'),parseInt(Math.sqrt(u),10)}),i(ce,"$try_convert",function(u){var d=this;return $("Opal")["$coerce_to?"](u,d,"to_int")})}(e.get_singleton_class(P),Me),Ae(P,"MAX",Math.pow(2,30)-1),Ae(P,"MIN",-Math.pow(2,30))}("::",w("Numeric"),Ee),function(Se,N,re){var P=t(Se,N,"Float");return P.$$is_number_class=!0,function(Me,ce){return i(Me,"$allocate",function(){var x=this;return n.$raise(w("TypeError"),"allocator undefined for "+x.$name())}),e.udef(Me,"$new"),i(Me,"$===",function(x){return!!x.$$is_number})}(e.get_singleton_class(P)),Ae(P,"INFINITY",1/0),Ae(P,"MAX",Number.MAX_VALUE),Ae(P,"MIN",Number.MIN_VALUE),Ae(P,"NAN",NaN),Ae(P,"DIG",15),Ae(P,"MANT_DIG",53),Ae(P,"RADIX",2),Ae(P,"EPSILON",Number.EPSILON||2220446049250313e-31)}("::",w("Numeric"))};Opal.modules["corelib/range"]=function(e){var t=e.klass,r=e.truthy,n=e.Kernel,i=e.def,s=e.not,c=e.send2,f=e.find_super,p=e.rb_lt,h=e.rb_le,I=e.send,F=e.eqeq,H=e.eqeqeq,pe=e.return_ivar,xe=e.rb_gt,ne=e.rb_minus,W=e.Opal,X=e.rb_divide,ge=e.rb_plus,se=e.rb_times,me=e.rb_ge,J=e.thrower,be=e.alias,fe=e.top,Ae=[],O=e.nil,Ee=e.$$$;return e.add_stubs("require,include,attr_reader,raise,nil?,<=>,include?,!,<,<=,enum_for,size,upto,to_proc,respond_to?,class,succ,==,===,exclude_end?,eql?,begin,end,last,to_a,>,-@,-,to_i,coerce_to!,ceil,/,is_a?,new,loop,+,*,>=,each_with_index,%,step,bsearch,inspect,[],hash,cover?"),fe.$require("corelib/enumerable"),function(le,w,Se){var N=t(le,w,"Range"),re=[N].concat(Se),P=e.$r(re),Me=N.$$prototype;Me.begin=Me.end=Me.excl=O,N.$include(Ee("Enumerable")),N.$$prototype.$$is_range=!0,N.$attr_reader("begin","end"),i(N,"$initialize",function(x,$,l){var u=this;return l==null&&(l=!1),r(u.begin)&&n.$raise(Ee("NameError"),"'initialize' called twice"),r(x["$<=>"]($))||r(x["$nil?"]())||r($["$nil?"]())||n.$raise(Ee("ArgumentError"),"bad value for range"),u.begin=x,u.end=$,u.excl=l},-3),i(N,"$===",function(x){var $=this;return $["$include?"](x)});function ce(M){return M.begin===O||M.end===O||M.begin===-1/0||M.end===1/0||M.begin===1/0||M.end===-1/0}return i(N,"$count",function M(){var x=M.$$p||O,$=this;return M.$$p=null,s(x!==O)&&r(ce($))?Ee(Ee("Float"),"INFINITY"):c($,f($,"count",M,!1,!0),"count",[],x)}),i(N,"$to_a",function M(){var x=M.$$p||O,$=this;return M.$$p=null,r(ce($))&&n.$raise(Ee("TypeError"),"cannot convert endless range to an array"),c($,f($,"to_a",M,!1,!0),"to_a",[],x)}),i(N,"$cover?",function(x){var $=this,l=O,u=O,d=O,_=O,S=O;return l=r(u=r(d=r(_=$.begin["$nil?"]())?-1:_)?d:$.begin["$<=>"](x))&&u,S=r(u=r(d=r(_=$.end["$nil?"]())?-1:_)?d:x["$<=>"]($.end))&&u,r(u=r(d=r($.excl)?r(_=S)?p(S,0):_:r(_=S)?h(S,0):_)?l:d)?h(l,0):u}),i(N,"$each",function M(){var x=M.$$p||O,$=this,l=O,u=O,d=O;if(M.$$p=null,x===O)return I($,"enum_for",["each"],function A(){var Q=A.$$s==null?this:A.$$s;return Q.$size()},{$$s:$});var _,S;if($.begin.$$is_number&&$.end.$$is_number){for(($.begin%1!==0||$.end%1!==0)&&n.$raise(Ee("TypeError"),"can't iterate from Float"),_=$.begin,S=$.end+(r($.excl)?0:1);_<S;_++)x(_);return $}if($.begin.$$is_string&&$.end.$$is_string)return I($.begin,"upto",[$.end,$.excl],x.$to_proc()),$;for(l=$.begin,u=$.end,r(l["$respond_to?"]("succ"))||n.$raise(Ee("TypeError"),"can't iterate from "+l.$class());r(r(d=$.end["$nil?"]())?d:p(l["$<=>"](u),0));)e.yield1(x,l),l=l.$succ();return s($.excl)&&F(l,u)&&e.yield1(x,l),$}),i(N,"$eql?",function(x){var $=this,l=O,u=O;return H(Ee("Range"),x)?r(l=r(u=$.excl["$==="](x["$exclude_end?"]()))?$.begin["$eql?"](x.$begin()):u)?$.end["$eql?"](x.$end()):l:!1}),i(N,"$exclude_end?",pe("excl")),i(N,"$first",function M(x){var $=M.$$p||O,l=this;return M.$$p=null,r(l.begin["$nil?"]())&&n.$raise(Ee("RangeError"),"cannot get the minimum of beginless range"),r(x==null)?l.begin:c(l,f(l,"first",M,!1,!0),"first",[x],$)},-1),i(N,"$last",function(x){var $=this;return r($.end["$nil?"]())&&n.$raise(Ee("RangeError"),"cannot get the maximum of endless range"),r(x==null)?$.end:$.$to_a().$last(x)},-1),i(N,"$max",function M(){var x=M.$$p||O,$=this;return M.$$p=null,r($.end["$nil?"]())?n.$raise(Ee("RangeError"),"cannot get the maximum of endless range"):x!==O?c($,f($,"max",M,!1,!0),"max",[],x):s($.begin["$nil?"]())&&(r(xe($.begin,$.end))||r($.excl)&&F($.begin,$.end))?O:$.excl?$.end-1:$.end}),i(N,"$min",function M(){var x=M.$$p||O,$=this;return M.$$p=null,r($.begin["$nil?"]())?n.$raise(Ee("RangeError"),"cannot get the minimum of beginless range"):x!==O?c($,f($,"min",M,!1,!0),"min",[],x):s($.end["$nil?"]())&&(r(xe($.begin,$.end))||r($.excl)&&F($.begin,$.end))?O:$.begin}),i(N,"$size",function(){var x=this,$=O,l=O,u=O;return $=Ee(Ee("Float"),"INFINITY"),F(x.begin,$)&&s(x.end["$nil?"]())||F(x.end,$["$-@"]())&&s(x.begin["$nil?"]())?0:r(ce(x))?$:H(Ee("Numeric"),x.begin)&&H(Ee("Numeric"),x.end)?(l=x.begin,u=x.end,r(x.excl)&&(u=ne(u,1)),r(p(u,l))?0:(Math.abs(u-l)+1).$to_i()):O}),i(N,"$step",function M(x){var $=M.$$p||O,l=this,u=O,d=O;M.$$p=null;function _(){x==null?x=1:x.$$is_number||(x=W["$coerce_to!"](x,Ee("Integer"),"to_int")),x<0?n.$raise(Ee("ArgumentError"),"step can't be negative"):x===0&&n.$raise(Ee("ArgumentError"),"step can't be 0")}function S(){if(!l.begin["$respond_to?"]("succ")||l.begin.$$is_string&&l.end.$$is_string)return O;if(x%1===0)return X(l.$size(),x).$ceil();var A=l.begin,Q=l.end,De=Math.abs,rt=Math.floor,ft=(De(A)+De(Q)+De(Q-A))/De(x)*Ee(Ee("Float"),"EPSILON"),_t;return ft>.5&&(ft=.5),l.excl?(_t=rt((Q-A)/x-ft),_t*x+A<Q&&_t++):_t=rt((Q-A)/x+ft)+1,_t}return $===O?(r(l.begin["$is_a?"](P("Numeric")))||r(l.begin["$nil?"]()))&&(r(l.end["$is_a?"](P("Numeric")))||r(l.end["$nil?"]()))&&s(r(u=l.begin["$nil?"]())?l.end["$nil?"]():u)?Ee(Ee("Enumerator"),"ArithmeticSequence").$new(l,x,"step"):I(l,"enum_for",["step",x],function(){return _(),S()}):(_(),r(l.begin.$$is_number&&l.end.$$is_number)?(d=0,function(){try{var A=J("break");return I(l,"loop",[],function Q(){var De=Q.$$s==null?this:Q.$$s,rt=O;return De.begin==null&&(De.begin=O),De.excl==null&&(De.excl=O),De.end==null&&(De.end=O),rt=ge(De.begin,se(d,x)),r(De.excl)?r(me(rt,De.end))&&A.$throw():r(xe(rt,De.end))&&A.$throw(),e.yield1($,rt),d=ge(d,1)},{$$s:l})}catch(Q){if(Q===A)return Q.$v;throw Q}}()):(l.begin.$$is_string&&l.end.$$is_string&&x%1!==0&&n.$raise(Ee("TypeError"),"no implicit conversion to float from string"),I(l,"each_with_index",[],function(Q,De){return Q==null&&(Q=O),De==null&&(De=O),F(De["$%"](x),0)?e.yield1($,Q):O})),l)},-1),i(N,"$%",function(x){var $=this;return r($.begin["$is_a?"](P("Numeric")))&&r($.end["$is_a?"](P("Numeric")))?Ee(Ee("Enumerator"),"ArithmeticSequence").$new($,x,"%"):$.$step(x)}),i(N,"$bsearch",function M(){var x=M.$$p||O,$=this;return M.$$p=null,x===O?$.$enum_for("bsearch"):(r(ce($)&&($.begin.$$is_number||$.end.$$is_number))&&n.$raise(Ee("NotImplementedError"),"Can't #bsearch an infinite range"),r($.begin.$$is_number&&$.end.$$is_number)||n.$raise(Ee("TypeError"),"can't do binary search for "+$.begin.$class()),I($.$to_a(),"bsearch",[],x.$to_proc()))}),i(N,"$to_s",function(){var x=this,$=O;return""+(r($=x.begin)?$:"")+(r(x.excl)?"...":"..")+(r($=x.end)?$:"")}),i(N,"$inspect",function(){var x=this,$=O;return""+(r($=x.begin)?x.begin.$inspect():$)+(r(x.excl)?"...":"..")+(r($=x.end)?x.end.$inspect():$)}),i(N,"$marshal_load",function(x){var $=this;return $.begin=x["$[]"]("begin"),$.end=x["$[]"]("end"),$.excl=x["$[]"]("excl")}),i(N,"$hash",function(){var x=this;return[x.begin,x.end,x.excl].$hash()}),be(N,"==","eql?"),be(N,"include?","cover?"),be(N,"member?","cover?")}("::",null,Ae)};Opal.modules["corelib/proc"]=function(e){var t=e.slice,r=e.klass,n=e.truthy,i=e.Kernel,s=e.defs,c=e.def,f=e.send,p=e.to_a,h=e.return_self,I=e.ensure_kwargs,F=e.Opal,H=e.alias,pe=e.nil,xe=e.$$$;return e.add_stubs("raise,proc,call,to_proc,new,source_location,coerce_to!,dup"),function(ne,W){var X=r(ne,W,"Proc");return e.prop(X.$$prototype,"$$is_proc",!0),e.prop(X.$$prototype,"$$is_lambda",!1),s(X,"$new",function ge(){var se=ge.$$p||pe;return ge.$$p=null,n(se)||i.$raise(xe("ArgumentError"),"tried to create a Proc object without a block"),se}),c(X,"$call",function ge(se){var me=ge.$$p||pe,J,be,fe=this;ge.$$p=null,J=t(arguments),be=J,me!==pe&&(fe.$$p=me);var Ae,O=fe.$$brk,Ee=fe.$$ret;if(O||Ee&&fe.$$is_lambda)try{fe.$$is_lambda?Ae=fe.apply(null,be):Ae=e.yieldX(fe,be)}catch(le){if(le===O)return le.$v;if(fe.$$is_lambda&&le===Ee)return le.$v;throw le}else fe.$$is_lambda?Ae=fe.apply(null,be):Ae=e.yieldX(fe,be);return Ae},-1),c(X,"$>>",function ge(se){ge.$$p;var me=this;return ge.$$p=null,f(i,"proc",[],function J(be){var fe=J.$$p||pe,Ae,O,Ee=J.$$s==null?this:J.$$s,le=pe;return J.$$p=null,Ae=t(arguments),O=Ae,le=f(Ee,"call",p(O),fe.$to_proc()),se.$call(le)},{$$arity:-1,$$s:me})}),c(X,"$<<",function ge(se){ge.$$p;var me=this;return ge.$$p=null,f(i,"proc",[],function J(be){var fe=J.$$p||pe,Ae,O,Ee=J.$$s==null?this:J.$$s,le=pe;return J.$$p=null,Ae=t(arguments),O=Ae,le=f(se,"call",p(O),fe.$to_proc()),Ee.$call(le)},{$$arity:-1,$$s:me})}),c(X,"$to_proc",h),c(X,"$lambda?",function(){var se=this;return!!se.$$is_lambda}),c(X,"$arity",function(){var se=this;return se.$$is_curried?-1:se.$$arity!=null?se.$$arity:se.length}),c(X,"$source_location",function(){var se=this,me=pe;return se.$$is_curried?pe:n(me=se.$$source_location)?me:pe}),c(X,"$binding",function(){var se=this;return se.$$is_curried&&i.$raise(xe("ArgumentError"),"Can't create Binding"),n(xe("::","Binding","skip_raise")?"constant":pe)?xe("Binding").$new(pe,[],se.$$s,se.$source_location()):pe}),c(X,"$parameters",function(se){var me,J=this;if(se=I(se),me=se.$$smap.lambda,J.$$is_curried)return[["rest"]];if(J.$$parameters){if(me??J.$$is_lambda)return J.$$parameters;var be=[],fe,Ae;for(fe=0,Ae=J.$$parameters.length;fe<Ae;fe++){var O=J.$$parameters[fe];O[0]==="req"&&(O=["opt",O[1]]),be.push(O)}return be}else return[]},-1),c(X,"$curry",function(se){var me=this;se===void 0?se=me.length:(se=F["$coerce_to!"](se,xe("Integer"),"to_int"),me.$$is_lambda&&se!==me.length&&i.$raise(xe("ArgumentError"),"wrong number of arguments ("+se+" for "+me.length+")"));function J(){var be=t(arguments),fe=be.length,Ae;return fe>se&&me.$$is_lambda&&!me.$$is_curried&&i.$raise(xe("ArgumentError"),"wrong number of arguments ("+fe+" for "+se+")"),fe>=se?me.$call.apply(me,be):(Ae=function(){return J.apply(null,be.concat(t(arguments)))},Ae.$$is_lambda=me.$$is_lambda,Ae.$$is_curried=!0,Ae)}return J.$$is_lambda=me.$$is_lambda,J.$$is_curried=!0,J},-1),c(X,"$dup",function(){var se=this,me=se.$$original_proc||se,J=function(){return me.apply(this,arguments)};for(var be in se)se.hasOwnProperty(be)&&(J[be]=se[be]);return J}),H(X,"===","call"),H(X,"clone","dup"),H(X,"yield","call"),H(X,"[]","call")}("::",Function)};Opal.modules["corelib/method"]=function(e){var t=e.klass,r=e.def,n=e.truthy,i=e.slice,s=e.alias,c=e.Kernel,f=e.send,p=e.to_a,h=e.nil,I=e.$$$;return e.add_stubs("attr_reader,arity,curry,>>,<<,new,class,join,source_location,call,raise,bind,to_proc"),function(F,H){var pe=t(F,H,"Method"),xe=pe.$$prototype;return xe.method=xe.receiver=xe.owner=xe.name=h,pe.$attr_reader("owner","receiver","name"),r(pe,"$initialize",function(W,X,ge,se){var me=this;return me.receiver=W,me.owner=X,me.name=se,me.method=ge}),r(pe,"$arity",function(){var W=this;return W.method.$arity()}),r(pe,"$parameters",function(){var W=this;return W.method.$$parameters}),r(pe,"$source_location",function(){var W=this,X=h;return n(X=W.method.$$source_location)?X:["(eval)",0]}),r(pe,"$comments",function(){var W=this,X=h;return n(X=W.method.$$comments)?X:[]}),r(pe,"$call",function ne(W){var X=ne.$$p||h,ge,se,me=this;return ne.$$p=null,ge=i(arguments),se=ge,me.method.$$p=X,me.method.apply(me.receiver,se)},-1),r(pe,"$curry",function(W){var X=this;return X.method.$curry(W)},-1),r(pe,"$>>",function(W){var X=this;return X.method["$>>"](W)}),r(pe,"$<<",function(W){var X=this;return X.method["$<<"](W)}),r(pe,"$unbind",function(){var W=this;return I("UnboundMethod").$new(W.receiver.$class(),W.owner,W.method,W.name)}),r(pe,"$to_proc",function(){var W=this,X=W.$call.bind(W);return X.$$unbound=W.method,X.$$is_lambda=!0,X.$$arity=W.method.$$arity==null?W.method.length:W.method.$$arity,X.$$parameters=W.method.$$parameters,X}),r(pe,"$inspect",function(){var W=this;return"#<"+W.$class()+": "+W.receiver.$class()+"#"+W.name+" (defined in "+W.owner+" in "+W.$source_location().$join(":")+")>"}),s(pe,"[]","call"),s(pe,"===","call")}("::",null),function(F,H){var pe=t(F,H,"UnboundMethod"),xe=pe.$$prototype;return xe.method=xe.owner=xe.name=xe.source=h,pe.$attr_reader("source","owner","name"),r(pe,"$initialize",function(W,X,ge,se){var me=this;return me.source=W,me.owner=X,me.method=ge,me.name=se}),r(pe,"$arity",function(){var W=this;return W.method.$arity()}),r(pe,"$parameters",function(){var W=this;return W.method.$$parameters}),r(pe,"$source_location",function(){var W=this,X=h;return n(X=W.method.$$source_location)?X:["(eval)",0]}),r(pe,"$comments",function(){var W=this,X=h;return n(X=W.method.$$comments)?X:[]}),r(pe,"$bind",function(W){var X=this;if(X.owner.$$is_module||e.is_a(W,X.owner))return I("Method").$new(W,X.owner,X.method,X.name);c.$raise(I("TypeError"),"can't bind singleton method to a different class (expected "+W+".kind_of?("+X.owner+" to be true)")}),r(pe,"$bind_call",function ne(W,X){var ge=ne.$$p||h,se,me,J=this;return ne.$$p=null,se=i(arguments,1),me=se,f(J.$bind(W),"call",p(me),ge.$to_proc())},-2),r(pe,"$inspect",function(){var W=this;return"#<"+W.$class()+": "+W.source+"#"+W.name+" (defined in "+W.owner+" in "+W.$source_location().$join(":")+")>"})}("::",null)};Opal.modules["corelib/variables"]=function(e){var t=e.gvars,r=e.const_set,n=e.Object,i=e.hash2,s=e.nil;return e.add_stubs("new"),t["&"]=t["~"]=t["`"]=t["'"]=s,t.LOADED_FEATURES=t['"']=e.loaded_features,t.LOAD_PATH=t[":"]=[],t["/"]=`
|
|
398
|
-
`,t[","]=s,r("::","ARGV",[]),r("::","ARGF",n.$new()),r("::","ENV",i([],{})),t.VERBOSE=!1,t.DEBUG=!1,t.SAFE=0};Opal.modules["corelib/io"]=function(e){var t=e.klass,r=e.const_set,n=e.not,i=e.truthy,s=e.def,c=e.return_ivar,f=e.return_val,p=e.slice,h=e.Kernel,I=e.gvars,F=e.send,H=e.to_a,pe=e.rb_plus,xe=e.neqeq,ne=e.range,W=e.hash2,X=e.eqeq,ge=e.to_ary,se=e.rb_gt,me=e.assign_ivar_val,J=e.alias,be,fe=e.nil,Ae=e.$$$;e.add_stubs("attr_reader,attr_accessor,!,match?,include?,size,write,String,flatten,puts,sysread_noraise,+,!=,[],ord,getc,readchar,raise,gets,==,to_str,length,split,sub,sysread,>,to_a,each_line,enum_for,getbyte,closed_write?,closed_read?,each,eof,new,write_proc=,read_proc="),function(Ee,le){var w=t(Ee,le,"IO"),Se=w.$$prototype;return Se.read_buffer=Se.closed=fe,r(w,"SEEK_SET",0),r(w,"SEEK_CUR",1),r(w,"SEEK_END",2),r(w,"SEEK_DATA",3),r(w,"SEEK_HOLE",4),r(w,"READABLE",1),r(w,"WRITABLE",4),w.$attr_reader("eof"),w.$attr_accessor("read_proc","sync","tty","write_proc"),s(w,"$initialize",function(re,P){var Me=this;return P==null&&(P="r"),Me.fd=re,Me.flags=P,Me.eof=!1,i(P["$include?"]("r"))&&n(P["$match?"](/[wa+]/))?Me.closed="write":i(P["$match?"](/[wa]/))&&n(P["$match?"](/[r+]/))?Me.closed="read":fe},-2),s(w,"$fileno",c("fd")),s(w,"$tty?",function(){var re=this;return re.tty==!0}),s(w,"$write",function(re){var P=this;return P.write_proc(re),re.$size()}),s(w,"$flush",f(fe)),s(w,"$<<",function(re){var P=this;return P.$write(re),P}),s(w,"$print",function(re){var P,Me,ce=this;I[","]==null&&(I[","]=fe),P=p(arguments),Me=P;for(var M=0,x=Me.length;M<x;M++)Me[M]=h.$String(Me[M]);return ce.$write(Me.join(I[","])),fe},-1),s(w,"$puts",function(re){var P,Me,ce=this;P=p(arguments),Me=P;var M;if(Me.length===0)return ce.$write(`
|
|
399
|
-
`),fe;for(var x=0,$=Me.length;x<$;x++)if(Me[x].$$is_array){var l=Me[x].$flatten();l.length>0&&F(ce,"puts",H(l))}else Me[x].$$is_string?M=Me[x].valueOf():M=h.$String(Me[x]),M.endsWith(`
|
|
400
|
-
`)||(M+=`
|
|
401
|
-
`),ce.$write(M);return fe},-1),s(w,"$getc",function(){var re=this,P=fe,Me=fe,ce=fe;re.read_buffer=i(P=re.read_buffer)?P:"",Me="";do if(re.read_buffer=pe(re.read_buffer,Me),xe(re.read_buffer,""))return ce=re.read_buffer["$[]"](0),re.read_buffer=re.read_buffer["$[]"](ne(1,-1,!1)),ce;while(i(Me=re.$sysread_noraise(1)));return fe}),s(w,"$getbyte",function(){var re,P=this;return re=P.$getc(),re===fe||re==null?fe:re.$ord()}),s(w,"$readbyte",function(){var re=this;return re.$readchar().$ord()}),s(w,"$readchar",function(){var re=this,P=fe;return i(P=re.$getc())?P:h.$raise(Ae("EOFError"),"end of file reached")}),s(w,"$readline",function(re){var P,Me,ce=this,M=fe;return P=p(arguments),Me=P,i(M=F(ce,"gets",H(Me)))?M:h.$raise(Ae("EOFError"),"end of file reached")},-1),s(w,"$gets",function(re,P,Me){var ce,M,x=this,$=fe,l=fe,u=fe,d=fe,_=fe,S=fe;I["/"]==null&&(I["/"]=fe),re==null&&(re=!1),P==null&&(P=fe),Me==null&&(Me=W([],{})),i(re.$$is_number)&&n(P)&&(ce=[!1,re,P],re=ce[0],P=ce[1],Me=ce[2]),i(re.$$is_hash)&&n(P)&&X(Me,W([],{}))?(ce=[!1,fe,re],re=ce[0],P=ce[1],Me=ce[2]):i(P.$$is_hash)&&X(Me,W([],{}))&&(ce=[re,fe,P],re=ce[0],P=ce[1],Me=ce[2]),$=re,X(re,!1)&&(re=I["/"]),X(re,"")&&(re=/\r?\n\r?\n/),re=i(l=re)?l:"",X($,"")||(re=re.$to_str()),u=X($,"")?2:re.$length(),X(re," ")&&(re=/ /),x.read_buffer=i(l=x.read_buffer)?l:"",d="",_=fe;do if(x.read_buffer=pe(x.read_buffer,d),xe(re,"")&&i(i(re.$$is_regexp)?x.read_buffer["$match?"](re):x.read_buffer["$include?"](re))){S=x.read_buffer,M=x.read_buffer.$split(re,2),ce=ge(M),_=ce[0]==null?fe:ce[0],x.read_buffer=ce[1]==null?fe:ce[1],xe(_,S)&&(_=pe(_,S["$[]"](_.$length(),u)));break}while(i(d=x.$sysread_noraise(X(re,"")?65536:1)));return i(_)||(ce=[i(l=x.read_buffer)?l:"",""],_=ce[0],x.read_buffer=ce[1],X(_,"")&&(_=fe)),i(_)&&(i(P)&&(_=_["$[]"](e.Range.$new(0,P,!0)),x.read_buffer=pe(_["$[]"](e.Range.$new(P,-1,!1)),x.read_buffer)),i(Me["$[]"]("chomp"))&&(_=_.$sub(/\r?\n$/,"")),X($,"")&&(_=_.$sub(/^[\r\n]+/,""))),X($,!1)&&(I._=_),_},-1),s(w,"$sysread",function(re){var P=this,Me=fe;return i(Me=P.read_proc(re))?Me:(P.eof=!0,h.$raise(Ae("EOFError"),"end of file reached"))}),s(w,"$sysread_noraise",function(re){var P=this;try{return P.$sysread(re)}catch(Me){if(e.rescue(Me,[Ae("EOFError")]))try{return fe}finally{e.pop_exception()}else throw Me}}),s(w,"$readpartial",function(re){var P,Me=this,ce=fe,M=fe,x=fe;return Me.read_buffer=i(ce=Me.read_buffer)?ce:"",M=Me.$sysread(re),P=[pe(Me.read_buffer,i(ce=M)?ce:""),""],x=P[0],Me.read_buffer=P[1],X(x,"")&&(x=fe),x}),s(w,"$read",function(re){var P,Me=this,ce=fe,M=fe,x=fe;re==null&&(re=fe),Me.read_buffer=i(ce=Me.read_buffer)?ce:"",M="",x=fe;do if(Me.read_buffer=pe(Me.read_buffer,M),i(re)&&i(se(Me.read_buffer.$length(),re)))return P=[Me.read_buffer["$[]"](e.Range.$new(0,re,!0)),Me.read_buffer["$[]"](e.Range.$new(re,-1,!1))],x=P[0],Me.read_buffer=P[1],x;while(i(M=Me.$sysread_noraise(i(ce=re)?ce:65536)));return P=[Me.read_buffer,""],x=P[0],Me.read_buffer=P[1],x},-1),s(w,"$readlines",function(re){var P=this;return I["/"]==null&&(I["/"]=fe),re==null&&(re=I["/"]),P.$each_line(re).$to_a()},-1),s(w,"$each",function N(re,P){var Me=N.$$p||fe,ce,M,x,$=this,l=fe;if(I["/"]==null&&(I["/"]=fe),N.$$p=null,ce=p(arguments),ce.length>0&&(M=ce.shift()),M==null&&(M=I["/"]),x=ce,Me===fe)return F($,"enum_for",["each",M].concat(H(x)));for(;i(l=F($,"gets",[M].concat(H(x))));)e.yield1(Me,l);return $},-1),s(w,"$each_byte",function N(){var re=N.$$p||fe,P=this,Me=fe;if(N.$$p=null,re===fe)return P.$enum_for("each_byte");for(;i(Me=P.$getbyte());)e.yield1(re,Me);return P}),s(w,"$each_char",function N(){var re=N.$$p||fe,P=this,Me=fe;if(N.$$p=null,re===fe)return P.$enum_for("each_char");for(;i(Me=P.$getc());)e.yield1(re,Me);return P}),s(w,"$close",me("closed","both")),s(w,"$close_read",function(){var re=this;return X(re.closed,"write")?re.closed="both":re.closed="read"}),s(w,"$close_write",function(){var re=this;return X(re.closed,"read")?re.closed="both":re.closed="write"}),s(w,"$closed?",function(){var re=this;return re.closed["$=="]("both")}),s(w,"$closed_read?",function(){var re=this,P=fe;return i(P=re.closed["$=="]("read"))?P:re.closed["$=="]("both")}),s(w,"$closed_write?",function(){var re=this,P=fe;return i(P=re.closed["$=="]("write"))?P:re.closed["$=="]("both")}),s(w,"$check_writable",function(){var re=this;return i(re["$closed_write?"]())?h.$raise(Ae("IOError"),"not opened for writing"):fe}),s(w,"$check_readable",function(){var re=this;return i(re["$closed_read?"]())?h.$raise(Ae("IOError"),"not opened for reading"):fe}),J(w,"each_line","each"),J(w,"eof?","eof")}("::",null),r("::","STDIN",I.stdin=Ae("IO").$new(0,"r")),r("::","STDOUT",I.stdout=Ae("IO").$new(1,"w")),r("::","STDERR",I.stderr=Ae("IO").$new(2,"w"));var O=e.global.console;return Ae("STDOUT")["$write_proc="](typeof process=="object"&&typeof process.stdout=="object"?function(Ee){process.stdout.write(Ee)}:function(Ee){O.log(Ee)}),Ae("STDERR")["$write_proc="](typeof process=="object"&&typeof process.stderr=="object"?function(Ee){process.stderr.write(Ee)}:function(Ee){O.warn(Ee)}),be=[function(Ee){var le=prompt();return le!==null?le+`
|
|
402
|
-
`:fe}],F(Ae("STDIN"),"read_proc=",be),be[be.length-1]};Opal.modules["opal/regexp_anchors"]=function(e){var t=e.module,r=e.const_set,n=[];e.nil;var i=e.$$$;return e.add_stubs("new"),function(s,c){var f=t(s,"Opal"),p=[f].concat(c),h=e.$r(p);return r(f,"REGEXP_START","^"),r(f,"REGEXP_END","$"),r(f,"FORBIDDEN_STARTING_IDENTIFIER_CHARS","\\u0001-\\u002F\\u003A-\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),r(f,"FORBIDDEN_ENDING_IDENTIFIER_CHARS","\\u0001-\\u0020\\u0022-\\u002F\\u003A-\\u003E\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),r(f,"INLINE_IDENTIFIER_REGEXP",h("Regexp").$new("[^"+i(f,"FORBIDDEN_STARTING_IDENTIFIER_CHARS")+"]*[^"+i(f,"FORBIDDEN_ENDING_IDENTIFIER_CHARS")+"]")),r(f,"FORBIDDEN_CONST_NAME_CHARS","\\u0001-\\u0020\\u0021-\\u002F\\u003B-\\u003F\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),r(f,"CONST_NAME_REGEXP",h("Regexp").$new(""+i(f,"REGEXP_START")+"(::)?[A-Z][^"+i(f,"FORBIDDEN_CONST_NAME_CHARS")+"]*"+i(f,"REGEXP_END")))}(n[0],n)};Opal.modules["opal/mini"]=function(e){var t=e.Object;return e.nil,e.add_stubs("require"),t.$require("opal/base"),t.$require("corelib/nil"),t.$require("corelib/boolean"),t.$require("corelib/string"),t.$require("corelib/comparable"),t.$require("corelib/enumerable"),t.$require("corelib/enumerator"),t.$require("corelib/array"),t.$require("corelib/hash"),t.$require("corelib/number"),t.$require("corelib/range"),t.$require("corelib/proc"),t.$require("corelib/method"),t.$require("corelib/regexp"),t.$require("corelib/variables"),t.$require("corelib/io"),t.$require("opal/regexp_anchors")};Opal.modules["corelib/kernel/format"]=function(e){var t=e.coerce_to,r=e.module,n=e.slice,i=e.truthy,s=e.eqeq,c=e.Opal,f=e.Kernel,p=e.gvars,h=e.def,I=e.alias,F=e.nil,H=e.$$$;return e.add_stubs("respond_to?,[],==,length,coerce_to?,nil?,to_a,raise,to_int,fetch,Integer,Float,to_ary,to_str,inspect,to_s,format"),function(pe){var xe=r(pe,"Kernel");return h(xe,"$format",function(W,X){var ge,se,me=F;p.DEBUG==null&&(p.DEBUG=F),ge=n(arguments,1),se=ge,s(se.$length(),1)&&i(se["$[]"](0)["$respond_to?"]("to_ary"))&&(me=c["$coerce_to?"](se["$[]"](0),H("Array"),"to_ary"),i(me["$nil?"]())||(se=me.$to_a()));var J="",be=0,fe,Ae,O=W.length,Ee,le,w,Se,N,re,P,Me,ce,M,x,$,l,u=1,d=0,_,S=0,A=1,Q=2,De=4,rt=8,ft=16,_t=32,At=64,bt=128;function Mt(){_&_t&&f.$raise(H("ArgumentError"),"flag after width"),_&bt&&f.$raise(H("ArgumentError"),"flag after precision")}function Et(){_&_t&&f.$raise(H("ArgumentError"),"width given twice"),_&bt&&f.$raise(H("ArgumentError"),"width after precision")}function qt(b){return b>=se.length&&f.$raise(H("ArgumentError"),"too few arguments"),se[b]}function It(){switch(d){case-1:f.$raise(H("ArgumentError"),"unnumbered("+u+") mixed with numbered");case-2:f.$raise(H("ArgumentError"),"unnumbered("+u+") mixed with named")}return d=u++,qt(d-1)}function nt(b){return d>0&&f.$raise(H("ArgumentError"),"numbered("+b+") after unnumbered("+d+")"),d===-2&&f.$raise(H("ArgumentError"),"numbered("+b+") after named"),b<1&&f.$raise(H("ArgumentError"),"invalid index - "+b+"$"),d=-1,qt(b-1)}function Re(){return l===void 0?It():l}function Pe(b){for(var R,ve="";;Ae++){if(Ae===O&&f.$raise(H("ArgumentError"),"malformed format string - %*[0-9]"),W.charCodeAt(Ae)<48||W.charCodeAt(Ae)>57)return Ae--,R=parseInt(ve,10)||0,R>2147483647&&f.$raise(H("ArgumentError"),""+b+" too big"),R;ve+=W.charAt(Ae)}}function Ke(b){var R,ve=Pe(b);return W.charAt(Ae+1)==="$"?(Ae++,R=nt(ve)):R=It(),R.$to_int()}for(Ae=W.indexOf("%");Ae!==-1;Ae=W.indexOf("%",Ae)){switch(le=void 0,_=S,Se=-1,N=-1,l=void 0,fe=Ae,Ae++,W.charAt(Ae)){case"%":be=Ae;case"":case`
|
|
403
|
-
`:case"\0":Ae++;continue}e:for(;Ae<O;Ae++)switch(W.charAt(Ae)){case" ":Mt(),_|=ft;continue e;case"#":Mt(),_|=A;continue e;case"+":Mt(),_|=De;continue e;case"-":Mt(),_|=Q;continue e;case"0":Mt(),_|=rt;continue e;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":if(re=Pe("width"),W.charAt(Ae+1)==="$"){if(Ae+2===O){le="%",Ae++;break e}l!==void 0&&f.$raise(H("ArgumentError"),"value given twice - %"+re+"$"),l=nt(re),Ae++}else Et(),_|=_t,Se=re;continue e;case"<":case"{":for(Me=W.charAt(Ae)==="<"?">":"}",P="",Ae++;;Ae++){if(Ae===O&&f.$raise(H("ArgumentError"),"malformed name - unmatched parenthesis"),W.charAt(Ae)===Me){if(d>0&&f.$raise(H("ArgumentError"),"named "+P+" after unnumbered("+d+")"),d===-1&&f.$raise(H("ArgumentError"),"named "+P+" after numbered"),d=-2,(se[0]===void 0||!se[0].$$is_hash)&&f.$raise(H("ArgumentError"),"one hash required"),l=se[0].$fetch(P),Me===">")continue e;if(le=l.toString(),N!==-1&&(le=le.slice(0,N)),_&Q)for(;le.length<Se;)le=le+" ";else for(;le.length<Se;)le=" "+le;break e}P+=W.charAt(Ae)}case"*":Ae++,Et(),_|=_t,Se=Ke("width"),Se<0&&(_|=Q,Se=-Se);continue e;case".":if(_&bt&&f.$raise(H("ArgumentError"),"precision given twice"),_|=At|bt,N=0,Ae++,W.charAt(Ae)==="*"){Ae++,N=Ke("precision"),N<0&&(_&=~At);continue e}N=Pe("precision");continue e;case"d":case"i":case"u":if(Ee=f.$Integer(Re()),Ee>=0){for(le=Ee.toString();le.length<N;)le="0"+le;if(_&Q)for((_&De||_&ft)&&(le=(_&De?"+":" ")+le);le.length<Se;)le=le+" ";else if(_&rt&&N===-1){for(;le.length<Se-(_&De||_&ft?1:0);)le="0"+le;(_&De||_&ft)&&(le=(_&De?"+":" ")+le)}else for((_&De||_&ft)&&(le=(_&De?"+":" ")+le);le.length<Se;)le=" "+le}else{for(le=(-Ee).toString();le.length<N;)le="0"+le;if(_&Q)for(le="-"+le;le.length<Se;)le=le+" ";else if(_&rt&&N===-1){for(;le.length<Se-1;)le="0"+le;le="-"+le}else for(le="-"+le;le.length<Se;)le=" "+le}break e;case"b":case"B":case"o":case"x":case"X":switch(W.charAt(Ae)){case"b":case"B":ce=2,M="0b",x=/^1+/,$="1";break;case"o":ce=8,M="0",x=/^3?7+/,$="7";break;case"x":case"X":ce=16,M="0x",x=/^f+/,$="f";break}if(Ee=f.$Integer(Re()),Ee>=0){for(le=Ee.toString(ce);le.length<N;)le="0"+le;if(_&Q)for((_&De||_&ft)&&(le=(_&De?"+":" ")+le),_&A&&Ee!==0&&(le=M+le);le.length<Se;)le=le+" ";else if(_&rt&&N===-1){for(;le.length<Se-(_&De||_&ft?1:0)-(_&A&&Ee!==0?M.length:0);)le="0"+le;_&A&&Ee!==0&&(le=M+le),(_&De||_&ft)&&(le=(_&De?"+":" ")+le)}else for(_&A&&Ee!==0&&(le=M+le),(_&De||_&ft)&&(le=(_&De?"+":" ")+le);le.length<Se;)le=" "+le}else if(_&De||_&ft){for(le=(-Ee).toString(ce);le.length<N;)le="0"+le;if(_&Q)for(_&A&&(le=M+le),le="-"+le;le.length<Se;)le=le+" ";else if(_&rt&&N===-1){for(;le.length<Se-1-(_&A?2:0);)le="0"+le;_&A&&(le=M+le),le="-"+le}else for(_&A&&(le=M+le),le="-"+le;le.length<Se;)le=" "+le}else{for(le=(Ee>>>0).toString(ce).replace(x,$);le.length<N-2;)le=$+le;if(_&Q)for(le=".."+le,_&A&&(le=M+le);le.length<Se;)le=le+" ";else if(_&rt&&N===-1){for(;le.length<Se-2-(_&A?M.length:0);)le=$+le;le=".."+le,_&A&&(le=M+le)}else for(le=".."+le,_&A&&(le=M+le);le.length<Se;)le=" "+le}W.charAt(Ae)===W.charAt(Ae).toUpperCase()&&(le=le.toUpperCase());break e;case"f":case"e":case"E":case"g":case"G":if(Ee=f.$Float(Re()),Ee>=0||isNaN(Ee)){if(Ee===1/0)le="Inf";else switch(W.charAt(Ae)){case"f":le=Ee.toFixed(N===-1?6:N);break;case"e":case"E":le=Ee.toExponential(N===-1?6:N);break;case"g":case"G":le=Ee.toExponential(),w=parseInt(le.split("e")[1],10),w<-4||w>=(N===-1?6:N)||(le=Ee.toPrecision(N===-1?_&A?6:void 0:N));break}if(_&Q)for((_&De||_&ft)&&(le=(_&De?"+":" ")+le);le.length<Se;)le=le+" ";else if(_&rt&&Ee!==1/0&&!isNaN(Ee)){for(;le.length<Se-(_&De||_&ft?1:0);)le="0"+le;(_&De||_&ft)&&(le=(_&De?"+":" ")+le)}else for((_&De||_&ft)&&(le=(_&De?"+":" ")+le);le.length<Se;)le=" "+le}else{if(Ee===-1/0)le="Inf";else switch(W.charAt(Ae)){case"f":le=(-Ee).toFixed(N===-1?6:N);break;case"e":case"E":le=(-Ee).toExponential(N===-1?6:N);break;case"g":case"G":le=(-Ee).toExponential(),w=parseInt(le.split("e")[1],10),w<-4||w>=(N===-1?6:N)||(le=(-Ee).toPrecision(N===-1?_&A?6:void 0:N));break}if(_&Q)for(le="-"+le;le.length<Se;)le=le+" ";else if(_&rt&&Ee!==-1/0){for(;le.length<Se-1;)le="0"+le;le="-"+le}else for(le="-"+le;le.length<Se;)le=" "+le}W.charAt(Ae)===W.charAt(Ae).toUpperCase()&&Ee!==1/0&&Ee!==-1/0&&!isNaN(Ee)&&(le=le.toUpperCase()),le=le.replace(/([eE][-+]?)([0-9])$/,"$10$2");break e;case"a":case"A":f.$raise(H("NotImplementedError"),"`A` and `a` format field types are not implemented in Opal yet");case"c":if(Ee=Re(),Ee["$respond_to?"]("to_ary")&&(Ee=Ee.$to_ary()[0]),Ee["$respond_to?"]("to_str")?le=Ee.$to_str():le=String.fromCharCode(t(Ee,H("Integer"),"to_int")),le.length!==1&&f.$raise(H("ArgumentError"),"%c requires a character"),_&Q)for(;le.length<Se;)le=le+" ";else for(;le.length<Se;)le=" "+le;break e;case"p":if(le=Re().$inspect(),N!==-1&&(le=le.slice(0,N)),_&Q)for(;le.length<Se;)le=le+" ";else for(;le.length<Se;)le=" "+le;break e;case"s":if(le=Re().$to_s(),N!==-1&&(le=le.slice(0,N)),_&Q)for(;le.length<Se;)le=le+" ";else for(;le.length<Se;)le=" "+le;break e;default:f.$raise(H("ArgumentError"),"malformed format string - %"+W.charAt(Ae))}le===void 0&&f.$raise(H("ArgumentError"),"malformed format string - %"),J+=W.slice(be,fe)+le,be=Ae+1}return p.DEBUG&&d>=0&&u<se.length&&f.$raise(H("ArgumentError"),"too many arguments for format string"),J+W.slice(be)},-2),I(xe,"sprintf","format")}("::")};Opal.modules["corelib/string/encoding"]=function(e){var t=e.klass,r=e.hash2,n=e.rb_plus,i=e.truthy,s=e.send,c=e.defs,f=e.eqeq,p=e.def,h=e.return_ivar,I=e.return_val,F=e.slice,H=e.Kernel,pe=e.Opal,xe=e.rb_lt,ne,W=e.top,X=[],ge=e.$r(X),se=e.nil,me=e.$$$;return e.add_stubs("require,+,[],clone,initialize,new,instance_eval,to_proc,each,const_set,tr,==,default_external,attr_accessor,singleton_class,attr_reader,raise,register,length,bytes,force_encoding,dup,bytesize,enum_for,each_byte,to_a,each_char,each_codepoint,coerce_to!,find,<,default_external="),W.$require("corelib/string"),function(J,be){var fe=t(J,be,"Encoding"),Ae=fe.$$prototype;return Ae.name=Ae.dummy=se,c(fe,"$register",function O(Ee,le){var w=O.$$p||se,Se=this,N=se,re=se,P=se,Me=se,ce=se,M=se;return O.$$p=null,le==null&&(le=r([],{})),N=n([Ee],i(re=le["$[]"]("aliases"))?re:[]),P=i(re=le["$[]"]("ascii"))&&re,Me=i(re=le["$[]"]("dummy"))&&re,i(le["$[]"]("inherits"))?(ce=le["$[]"]("inherits").$clone(),ce.$initialize(Ee,N,P,Me)):ce=Se.$new(Ee,N,P,Me),w!==se&&s(ce,"instance_eval",[],w.$to_proc()),M=e.encodings,s(N,"each",[],function x($){var l=x.$$s==null?this:x.$$s;return $==null&&($=se),l.$const_set($.$tr("-","_"),ce),M[$]=ce},{$$s:Se})},-2),c(fe,"$find",function(Ee){var le=this;return f(Ee,"default_external")?le.$default_external():e.find_encoding(Ee)}),fe.$singleton_class().$attr_accessor("default_external"),fe.$attr_reader("name","names"),p(fe,"$initialize",function(Ee,le,w,Se){var N=this;return N.name=Ee,N.names=le,N.ascii=w,N.dummy=Se}),p(fe,"$ascii_compatible?",h("ascii")),p(fe,"$dummy?",h("dummy")),p(fe,"$binary?",I(!1)),p(fe,"$to_s",h("name")),p(fe,"$inspect",function(){var Ee=this;return"#<Encoding:"+Ee.name+(i(Ee.dummy)?" (dummy)":se)+">"}),p(fe,"$charsize",function(Ee){for(var le=0,w=0,Se=Ee.length;w<Se;w++){var N=Ee.charCodeAt(w);N>=55296&&N<=56319||le++}return le}),p(fe,"$each_char",function O(Ee){var le=O.$$p||se;O.$$p=null;for(var w="",Se=0,N=Ee.length;Se<N;Se++){var re=Ee.charCodeAt(Se),P=Ee.charAt(Se);if(re>=56320&&re<=57343){w=P;continue}else re>=55296&&re<=56319&&(P=w+P);Ee.encoding.name!="UTF-8"&&(P=new String(P),P.encoding=Ee.encoding),e.yield1(le,P)}}),p(fe,"$each_byte",function(Ee){return F(arguments),H.$raise(me("NotImplementedError"))},-1),p(fe,"$bytesize",function(Ee){return F(arguments),H.$raise(me("NotImplementedError"))},-1),t("::",me("StandardError"),"EncodingError"),t("::",me("EncodingError"),"CompatibilityError"),se}("::",null),s(me("Encoding"),"register",["UTF-8",r(["aliases","ascii"],{aliases:["CP65001"],ascii:!0})],function J(){var be=J.$$s==null?this:J.$$s;return p(be,"$each_byte",function fe(Ae){var O=fe.$$p||se;fe.$$p=null;for(var Ee=1/0,le,w=Ae.length,Se=null,N=0;N<w;++N){if(le=Ae.charCodeAt(N),le>55295&&le<57344){if(!Se){if(le>56319){(Ee-=3)>-1&&(e.yield1(O,239),e.yield1(O,191),e.yield1(O,189));continue}else if(N+1===w){(Ee-=3)>-1&&(e.yield1(O,239),e.yield1(O,191),e.yield1(O,189));continue}Se=le;continue}if(le<56320){(Ee-=3)>-1&&(e.yield1(O,239),e.yield1(O,191),e.yield1(O,189)),Se=le;continue}le=(Se-55296<<10|le-56320)+65536}else Se&&(Ee-=3)>-1&&(e.yield1(O,239),e.yield1(O,191),e.yield1(O,189));if(Se=null,le<128){if((Ee-=1)<0)break;e.yield1(O,le)}else if(le<2048){if((Ee-=2)<0)break;e.yield1(O,le>>6|192),e.yield1(O,le&63|128)}else if(le<65536){if((Ee-=3)<0)break;e.yield1(O,le>>12|224),e.yield1(O,le>>6&63|128),e.yield1(O,le&63|128)}else if(le<1114112){if((Ee-=4)<0)break;e.yield1(O,le>>18|240),e.yield1(O,le>>12&63|128),e.yield1(O,le>>6&63|128),e.yield1(O,le&63|128)}}}),p(be,"$bytesize",function(Ae){return Ae.$bytes().$length()})},{$$s:W}),s(me("Encoding"),"register",["UTF-16LE"],function J(){var be=J.$$s==null?this:J.$$s;return p(be,"$each_byte",function fe(Ae){var O=fe.$$p||se;fe.$$p=null;for(var Ee=0,le=Ae.length;Ee<le;Ee++){var w=Ae.charCodeAt(Ee);e.yield1(O,w&255),e.yield1(O,w>>8)}}),p(be,"$bytesize",function(Ae){return Ae.length*2})},{$$s:W}),s(me("Encoding"),"register",["UTF-16BE",r(["inherits"],{inherits:me(me("Encoding"),"UTF_16LE")})],function J(){var be=J.$$s==null?this:J.$$s;return p(be,"$each_byte",function fe(Ae){var O=fe.$$p||se;fe.$$p=null;for(var Ee=0,le=Ae.length;Ee<le;Ee++){var w=Ae.charCodeAt(Ee);e.yield1(O,w>>8),e.yield1(O,w&255)}})},{$$s:W}),s(me("Encoding"),"register",["UTF-32LE"],function J(){var be=J.$$s==null?this:J.$$s;return p(be,"$each_byte",function fe(Ae){var O=fe.$$p||se;fe.$$p=null;for(var Ee=0,le=Ae.length;Ee<le;Ee++){var w=Ae.charCodeAt(Ee);e.yield1(O,w&255),e.yield1(O,w>>8),e.yield1(O,0),e.yield1(O,0)}}),p(be,"$bytesize",function(Ae){return Ae.length*4})},{$$s:W}),s(me("Encoding"),"register",["UTF-32BE",r(["inherits"],{inherits:me(me("Encoding"),"UTF_32LE")})],function J(){var be=J.$$s==null?this:J.$$s;return p(be,"$each_byte",function fe(Ae){var O=fe.$$p||se;fe.$$p=null;for(var Ee=0,le=Ae.length;Ee<le;Ee++){var w=Ae.charCodeAt(Ee);e.yield1(O,0),e.yield1(O,0),e.yield1(O,w>>8),e.yield1(O,w&255)}})},{$$s:W}),s(me("Encoding"),"register",["ASCII-8BIT",r(["aliases","ascii"],{aliases:["BINARY"],ascii:!0})],function J(){var be=J.$$s==null?this:J.$$s;return p(be,"$each_char",function fe(Ae){var O=fe.$$p||se;fe.$$p=null;for(var Ee=0,le=Ae.length;Ee<le;Ee++){var w=new String(Ae.charAt(Ee));w.encoding=Ae.encoding,e.yield1(O,w)}}),p(be,"$charsize",function(Ae){return Ae.length}),p(be,"$each_byte",function fe(Ae){var O=fe.$$p||se;fe.$$p=null;for(var Ee=0,le=Ae.length;Ee<le;Ee++){var w=Ae.charCodeAt(Ee);e.yield1(O,w&255)}}),p(be,"$bytesize",function(Ae){return Ae.length}),p(be,"$binary?",I(!0))},{$$s:W}),me("Encoding").$register("ISO-8859-1",r(["aliases","ascii","inherits"],{aliases:["ISO8859-1"],ascii:!0,inherits:me(me("Encoding"),"ASCII_8BIT")})),me("Encoding").$register("US-ASCII",r(["aliases","ascii","inherits"],{aliases:["ASCII"],ascii:!0,inherits:me(me("Encoding"),"ASCII_8BIT")})),function(J,be){var fe=t(J,be,"String"),Ae=fe.$$prototype;return Ae.internal_encoding=Ae.bytes=Ae.encoding=se,fe.$attr_reader("encoding"),fe.$attr_reader("internal_encoding"),e.prop(String.prototype,"bytes",se),e.prop(String.prototype,"encoding",me(me("Encoding"),"UTF_8")),e.prop(String.prototype,"internal_encoding",me(me("Encoding"),"UTF_8")),p(fe,"$b",function(){var Ee=this;return Ee.$dup().$force_encoding("binary")}),p(fe,"$bytesize",function(){var Ee=this;return Ee.internal_encoding.$bytesize(Ee)}),p(fe,"$each_byte",function O(){var Ee=O.$$p||se,le=this;return O.$$p=null,Ee===se?s(le,"enum_for",["each_byte"],function w(){var Se=w.$$s==null?this:w.$$s;return Se.$bytesize()},{$$s:le}):(s(le.internal_encoding,"each_byte",[le],Ee.$to_proc()),le)}),p(fe,"$bytes",function(){var Ee=this,le=se;return typeof Ee=="string"?new String(Ee).$each_byte().$to_a():(Ee.bytes=i(le=Ee.bytes)?le:Ee.$each_byte().$to_a(),Ee.bytes.$dup())}),p(fe,"$each_char",function O(){var Ee=O.$$p||se,le=this;return O.$$p=null,Ee===se?s(le,"enum_for",["each_char"],function w(){var Se=w.$$s==null?this:w.$$s;return Se.$length()},{$$s:le}):(s(le.encoding,"each_char",[le],Ee.$to_proc()),le)}),p(fe,"$chars",function O(){var Ee=O.$$p||se,le=this;return O.$$p=null,i(Ee)?s(le,"each_char",[],Ee.$to_proc()):le.$each_char().$to_a()}),p(fe,"$each_codepoint",function O(){var Ee=O.$$p||se,le=this;if(O.$$p=null,Ee===se)return le.$enum_for("each_codepoint");for(var w=0,Se=le.length;w<Se;w++)e.yield1(Ee,le.codePointAt(w));return le}),p(fe,"$codepoints",function O(){var Ee=O.$$p||se,le=this;return O.$$p=null,Ee!==se?s(le,"each_codepoint",[],Ee.$to_proc()):le.$each_codepoint().$to_a()}),p(fe,"$encode",function(Ee){var le=this;return e.enc(le,Ee)}),p(fe,"$force_encoding",function(Ee){var le=this,w=le;return Ee===w.encoding||(Ee=pe["$coerce_to!"](Ee,me("String"),"to_s"),Ee=me("Encoding").$find(Ee),Ee===w.encoding)||(w=e.set_encoding(w,Ee)),w}),p(fe,"$getbyte",function(Ee){var le=this,w=se;return w=le.$bytes(),Ee=pe["$coerce_to!"](Ee,me("Integer"),"to_int"),i(xe(w.$length(),Ee))?se:w["$[]"](Ee)}),p(fe,"$initialize_copy",function(Ee){return`
|
|
404
|
-
self.encoding = other.encoding;
|
|
405
|
-
self.internal_encoding = other.internal_encoding;
|
|
406
|
-
`}),p(fe,"$valid_encoding?",I(!0))}("::",null),ne=[me(ge("Encoding"),"UTF_8")],s(me("Encoding"),"default_external=",ne),ne[ne.length-1]};Opal.modules["corelib/math"]=function(e){var t=e.type_error,r=e.module,n=e.const_set,i=e.Class,s=e.slice,c=e.Kernel,f=e.defs,p=e.truthy,h=e.send,I=e.def,F=e.rb_minus,H=e.eqeqeq,pe=e.rb_divide,xe=[],ne=e.nil,W=e.$$$;return e.add_stubs("new,raise,Float,Integer,module_function,each,define_method,checked,float!,===,gamma,-,integer!,/,infinite?"),function(X,ge){var se=r(X,"Math"),me=[se].concat(ge),J=e.$r(me);return n(se,"E",Math.E),n(se,"PI",Math.PI),n(se,"DomainError",i.$new(W("StandardError"))),f(se,"$checked",function(fe,Ae){var O,Ee;if(O=s(arguments,1),Ee=O,isNaN(Ee[0])||Ee.length==2&&isNaN(Ee[1]))return NaN;var le=Math[fe].apply(null,Ee);return isNaN(le)&&c.$raise(J("DomainError"),'Numerical argument is out of domain - "'+fe+'"'),le},-2),f(se,"$float!",function(fe){try{return c.$Float(fe)}catch(Ae){if(e.rescue(Ae,[W("ArgumentError")]))try{return c.$raise(t(fe,W("Float")))}finally{e.pop_exception()}else throw Ae}}),f(se,"$integer!",function(fe){try{return c.$Integer(fe)}catch(Ae){if(e.rescue(Ae,[W("ArgumentError")]))try{return c.$raise(t(fe,W("Integer")))}finally{e.pop_exception()}else throw Ae}}),se.$module_function(),p(typeof Math.erf<"u")||e.prop(Math,"erf",function(be){var fe=.254829592,Ae=-.284496736,O=1.421413741,Ee=-1.453152027,le=1.061405429,w=.3275911,Se=1;be<0&&(Se=-1),be=Math.abs(be);var N=1/(1+w*be),re=1-((((le*N+Ee)*N+O)*N+Ae)*N+fe)*N*Math.exp(-be*be);return Se*re}),p(typeof Math.erfc<"u")||e.prop(Math,"erfc",function(be){var fe=Math.abs(be),Ae=1/(.5*fe+1),O=Ae*.17087277+-.82215223,Ee=Ae*O+1.48851587,le=Ae*Ee+-1.13520398,w=Ae*le+.27886807,Se=Ae*w+-.18628806,N=Ae*Se+.09678418,re=Ae*N+.37409196,P=Ae*re+1.00002368,Me=Ae*P,ce=-fe*fe-1.26551223+Me,M=Ae*Math.exp(ce);return be<0?2-M:M}),h(["acos","acosh","asin","asinh","atan","atanh","cbrt","cos","cosh","erf","erfc","exp","sin","sinh","sqrt","tanh"],"each",[],function be(fe){var Ae=be.$$s==null?this:be.$$s;return fe==null&&(fe=ne),h(Ae,"define_method",[fe],function(Ee){return Ee==null&&(Ee=ne),W("Math").$checked(fe,W("Math")["$float!"](Ee))})},{$$s:se}),I(se,"$atan2",function(fe,Ae){return W("Math").$checked("atan2",W("Math")["$float!"](fe),W("Math")["$float!"](Ae))}),I(se,"$hypot",function(fe,Ae){return W("Math").$checked("hypot",W("Math")["$float!"](fe),W("Math")["$float!"](Ae))}),I(se,"$frexp",function(fe){if(fe=J("Math")["$float!"](fe),isNaN(fe))return[NaN,0];var Ae=Math.floor(Math.log(Math.abs(fe))/Math.log(2))+1,O=fe/Math.pow(2,Ae);return[O,Ae]}),I(se,"$gamma",function(fe){fe=J("Math")["$float!"](fe);var Ae,O,Ee,le,w,Se,N,re,P,Me=4.7421875,ce=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];if(isNaN(fe))return NaN;if(fe===0&&1/fe<0)return-1/0;if((fe===-1||fe===-1/0)&&c.$raise(J("DomainError"),'Numerical argument is out of domain - "gamma"'),J("Integer")["$==="](fe)){if(fe<=0)return isFinite(fe)?1/0:NaN;if(fe>171)return 1/0;for(le=fe-2,w=fe-1;le>1;)w*=le,le--;return w==0&&(w=1),w}if(fe<.5)return Math.PI/(Math.sin(Math.PI*fe)*W("Math").$gamma(F(1,fe)));if(fe>=171.35)return 1/0;if(fe>85)return Se=fe*fe,N=Se*fe,re=N*fe,P=re*fe,Math.sqrt(2*Math.PI/fe)*Math.pow(fe/Math.E,fe)*(1+1/(12*fe)+1/(288*Se)-139/(51840*N)-571/(2488320*re)+163879/(209018880*P)+5246819/(75246796800*P*fe));for(fe-=1,Ee=ce[0],Ae=1;Ae<ce.length;++Ae)Ee+=ce[Ae]/(fe+Ae);return O=fe+Me+.5,Math.sqrt(2*Math.PI)*Math.pow(O,fe+.5)*Math.exp(-O)*Ee}),I(se,"$ldexp",function(fe,Ae){return fe=J("Math")["$float!"](fe),Ae=J("Math")["$integer!"](Ae),isNaN(Ae)&&c.$raise(W("RangeError"),"float NaN out of range of integer"),fe*Math.pow(2,Ae)}),I(se,"$lgamma",function(fe){return fe==-1?[1/0,1]:[Math.log(Math.abs(W("Math").$gamma(fe))),W("Math").$gamma(fe)<0?-1:1]}),I(se,"$log",function(fe,Ae){return H(W("String"),fe)&&c.$raise(t(fe,W("Float"))),p(Ae==null)?W("Math").$checked("log",W("Math")["$float!"](fe)):(H(W("String"),Ae)&&c.$raise(t(Ae,W("Float"))),pe(W("Math").$checked("log",W("Math")["$float!"](fe)),W("Math").$checked("log",W("Math")["$float!"](Ae))))},-2),I(se,"$log10",function(fe){return H(W("String"),fe)&&c.$raise(t(fe,W("Float"))),W("Math").$checked("log10",W("Math")["$float!"](fe))}),I(se,"$log2",function(fe){return H(W("String"),fe)&&c.$raise(t(fe,W("Float"))),W("Math").$checked("log2",W("Math")["$float!"](fe))}),I(se,"$tan",function(fe){return fe=W("Math")["$float!"](fe),p(fe["$infinite?"]())?W(W("Float"),"NAN"):W("Math").$checked("tan",W("Math")["$float!"](fe))})}("::",xe)};Opal.modules["corelib/complex/base"]=function(e){var t=e.module,r=e.truthy,n=e.def,i=e.klass,s=[],c=e.nil;return e.add_stubs("new,from_string"),function(f,p){var h=t(f,"Kernel"),I=[h].concat(p),F=e.$r(I);return n(h,"$Complex",function(pe,xe){return xe==null&&(xe=c),r(xe)?F("Complex").$new(pe,xe):F("Complex").$new(pe,0)},-2)}("::",s),function(f,p,h){var I=i(f,p,"String"),F=[I].concat(h),H=e.$r(F);return n(I,"$to_c",function(){var xe=this;return H("Complex").$from_string(xe)})}("::",null,s)};Opal.modules["corelib/complex"]=function(e){var t=e.klass,r=e.truthy,n=e.eqeqeq,i=e.Kernel,s=e.defs,c=e.rb_times,f=e.def,p=e.rb_plus,h=e.rb_minus,I=e.rb_divide,F=e.eqeq,H=e.to_ary,pe=e.rb_gt,xe=e.neqeq,ne=e.return_val,W=e.const_set,X=e.alias,ge=e.top,se=[],me=e.nil,J=e.$$$;return e.add_stubs("require,real?,===,raise,new,*,cos,sin,attr_reader,freeze,class,==,real,imag,Complex,-@,+,__coerced__,-,nan?,/,conj,abs2,quo,polar,exp,log,>,!=,divmod,**,hypot,atan2,lcm,denominator,finite?,infinite?,numerator,abs,arg,rationalize,to_f,to_i,to_r,inspect,zero?,positive?,Rational,rect,angle"),ge.$require("corelib/numeric"),ge.$require("corelib/complex/base"),function(be,fe,Ae){var O=t(be,fe,"Complex"),Ee=[O].concat(Ae),le=e.$r(Ee),w=O.$$prototype;return w.real=w.imag=me,s(O,"$rect",function(N,re){var P=this;return re==null&&(re=0),n(J("Numeric"),N)&&r(N["$real?"]())&&n(J("Numeric"),re)&&r(re["$real?"]())||i.$raise(J("TypeError"),"not a real"),P.$new(N,re)},-2),s(O,"$polar",function(N,re){var P=this;return re==null&&(re=0),n(J("Numeric"),N)&&r(N["$real?"]())&&n(J("Numeric"),re)&&r(re["$real?"]())||i.$raise(J("TypeError"),"not a real"),P.$new(c(N,J("Math").$cos(re)),c(N,J("Math").$sin(re)))},-2),O.$attr_reader("real","imag"),f(O,"$initialize",function(N,re){var P=this;return re==null&&(re=0),P.real=N,P.imag=re,P.$freeze()},-2),f(O,"$coerce",function(N){var re=this;return n(J("Complex"),N)?[N,re]:n(J("Numeric"),N)&&r(N["$real?"]())?[J("Complex").$new(N,0),re]:i.$raise(J("TypeError"),""+N.$class()+" can't be coerced into Complex")}),f(O,"$==",function(N){var re=this,P=me;return n(J("Complex"),N)?r(P=re.real["$=="](N.$real()))?re.imag["$=="](N.$imag()):P:n(J("Numeric"),N)&&r(N["$real?"]())?r(P=re.real["$=="](N))?re.imag["$=="](0):P:N["$=="](re)}),f(O,"$-@",function(){var N=this;return i.$Complex(N.real["$-@"](),N.imag["$-@"]())}),f(O,"$+",function(N){var re=this;return n(J("Complex"),N)?i.$Complex(p(re.real,N.$real()),p(re.imag,N.$imag())):n(J("Numeric"),N)&&r(N["$real?"]())?i.$Complex(p(re.real,N),re.imag):re.$__coerced__("+",N)}),f(O,"$-",function(N){var re=this;return n(J("Complex"),N)?i.$Complex(h(re.real,N.$real()),h(re.imag,N.$imag())):n(J("Numeric"),N)&&r(N["$real?"]())?i.$Complex(h(re.real,N),re.imag):re.$__coerced__("-",N)}),f(O,"$*",function(N){var re=this;return n(J("Complex"),N)?i.$Complex(h(c(re.real,N.$real()),c(re.imag,N.$imag())),p(c(re.real,N.$imag()),c(re.imag,N.$real()))):n(J("Numeric"),N)&&r(N["$real?"]())?i.$Complex(c(re.real,N),c(re.imag,N)):re.$__coerced__("*",N)}),f(O,"$/",function(N){var re=this;return n(J("Complex"),N)?n(J("Number"),re.real)&&r(re.real["$nan?"]())||n(J("Number"),re.imag)&&r(re.imag["$nan?"]())||n(J("Number"),N.$real())&&r(N.$real()["$nan?"]())||n(J("Number"),N.$imag())&&r(N.$imag()["$nan?"]())?J("Complex").$new(J(J("Float"),"NAN"),J(J("Float"),"NAN")):I(c(re,N.$conj()),N.$abs2()):n(J("Numeric"),N)&&r(N["$real?"]())?i.$Complex(re.real.$quo(N),re.imag.$quo(N)):re.$__coerced__("/",N)}),f(O,"$**",function(N){var re,P,Me=this,ce=me,M=me,x=me,$=me,l=me,u=me,d=me,_=me,S=me,A=me,Q=me;if(F(N,0))return J("Complex").$new(1,0);if(n(J("Complex"),N))return P=Me.$polar(),re=H(P),ce=re[0]==null?me:re[0],M=re[1]==null?me:re[1],x=N.$real(),$=N.$imag(),l=J("Math").$exp(h(c(x,J("Math").$log(ce)),c($,M))),u=p(c(M,x),c($,J("Math").$log(ce))),J("Complex").$polar(l,u);if(n(J("Integer"),N))if(r(pe(N,0))){for(d=Me,_=d,S=h(N,1);xe(S,0);){for(P=S.$divmod(2),re=H(P),A=re[0]==null?me:re[0],Q=re[1]==null?me:re[1];F(Q,0);)d=i.$Complex(h(c(d.$real(),d.$real()),c(d.$imag(),d.$imag())),c(c(2,d.$real()),d.$imag())),S=A,P=S.$divmod(2),re=H(P),A=re[0]==null?me:re[0],Q=re[1]==null?me:re[1];_=c(_,d),S=h(S,1)}return _}else return I(J("Rational").$new(1,1),Me)["$**"](N["$-@"]());else return n(J("Float"),N)||n(J("Rational"),N)?(P=Me.$polar(),re=H(P),ce=re[0]==null?me:re[0],M=re[1]==null?me:re[1],J("Complex").$polar(ce["$**"](N),c(M,N))):Me.$__coerced__("**",N)}),f(O,"$abs",function(){var N=this;return J("Math").$hypot(N.real,N.imag)}),f(O,"$abs2",function(){var N=this;return p(c(N.real,N.real),c(N.imag,N.imag))}),f(O,"$angle",function(){var N=this;return J("Math").$atan2(N.imag,N.real)}),f(O,"$conj",function(){var N=this;return i.$Complex(N.real,N.imag["$-@"]())}),f(O,"$denominator",function(){var N=this;return N.real.$denominator().$lcm(N.imag.$denominator())}),f(O,"$eql?",function(N){var re=this,P=me,Me=me;return r(P=r(Me=le("Complex")["$==="](N))?re.real.$class()["$=="](re.imag.$class()):Me)?re["$=="](N):P}),f(O,"$fdiv",function(N){var re=this;return n(J("Numeric"),N)||i.$raise(J("TypeError"),""+N.$class()+" can't be coerced into Complex"),I(re,N)}),f(O,"$finite?",function(){var N=this,re=me;return r(re=N.real["$finite?"]())?N.imag["$finite?"]():re}),f(O,"$hash",function(){var N=this;return"Complex:"+N.real+":"+N.imag}),f(O,"$infinite?",function(){var N=this,re=me;return r(re=N.real["$infinite?"]())?re:N.imag["$infinite?"]()}),f(O,"$inspect",function(){var N=this;return"("+N+")"}),f(O,"$numerator",function(){var N=this,re=me;return re=N.$denominator(),i.$Complex(c(N.real.$numerator(),I(re,N.real.$denominator())),c(N.imag.$numerator(),I(re,N.imag.$denominator())))}),f(O,"$polar",function(){var N=this;return[N.$abs(),N.$arg()]}),f(O,"$rationalize",function(N){var re=this;return arguments.length>1&&i.$raise(J("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),xe(re.imag,0)&&i.$raise(J("RangeError"),"can't convert "+re+" into Rational"),re.$real().$rationalize(N)},-1),f(O,"$real?",ne(!1)),f(O,"$rect",function(){var N=this;return[N.real,N.imag]}),f(O,"$to_f",function(){var N=this;return F(N.imag,0)||i.$raise(J("RangeError"),"can't convert "+N+" into Float"),N.real.$to_f()}),f(O,"$to_i",function(){var N=this;return F(N.imag,0)||i.$raise(J("RangeError"),"can't convert "+N+" into Integer"),N.real.$to_i()}),f(O,"$to_r",function(){var N=this;return F(N.imag,0)||i.$raise(J("RangeError"),"can't convert "+N+" into Rational"),N.real.$to_r()}),f(O,"$to_s",function(){var N=this,re=me;return re=N.real.$inspect(),re=p(re,n(J("Number"),N.imag)&&r(N.imag["$nan?"]())||r(N.imag["$positive?"]())||r(N.imag["$zero?"]())?"+":"-"),re=p(re,N.imag.$abs().$inspect()),n(J("Number"),N.imag)&&(r(N.imag["$nan?"]())||r(N.imag["$infinite?"]()))&&(re=p(re,"*")),p(re,"i")}),W(Ee[0],"I",O.$new(0,1)),s(O,"$from_string",function(N){var re=/[+-]?[\d_]+(\.[\d_]+)?(e\d+)?/;N.match(re);var P,Me;function ce(){return re.test(N)}function M(){var $=N.match(re),l=$[0];return N=N.slice(l.length),l.replace(/_/g,"")}function x(){if(ce()){var $=parseFloat(M());if(N[0]==="/")if(N=N.slice(1),ce()){var l=parseFloat(M());return i.$Rational($,l)}else return N="/"+N,$;else return $}else return null}return P=x(),P?(Me=x(),Me?i.$Complex(P,Me):N[0]==="i"?i.$Complex(0,P):i.$Complex(P,0)):N[0]==="i"?i.$Complex(0,1):N[0]==="-"&&N[1]==="i"?i.$Complex(0,-1):N[0]==="+"&&N[1]==="i"?i.$Complex(0,1):i.$Complex(0,0)}),function(Se,N){return X(Se,"rectangular","rect")}(e.get_singleton_class(O)),X(O,"arg","angle"),X(O,"conjugate","conj"),X(O,"divide","/"),X(O,"imaginary","imag"),X(O,"magnitude","abs"),X(O,"phase","arg"),X(O,"quo","/"),X(O,"rectangular","rect"),e.udef(O,"$negative?"),e.udef(O,"$positive?"),e.udef(O,"$step"),me}("::",J("Numeric"),se)};Opal.modules["corelib/rational/base"]=function(e){var t=e.module,r=e.def,n=e.klass;e.nil;var i=e.$$$;return e.add_stubs("convert,from_string"),function(s){var c=t(s,"Kernel");return r(c,"$Rational",function(p,h){return h==null&&(h=1),i("Rational").$convert(p,h)},-2)}("::"),function(s,c){var f=n(s,c,"String");return r(f,"$to_r",function(){var h=this;return i("Rational").$from_string(h)})}("::",null)};Opal.modules["corelib/rational"]=function(e){var t=e.klass,r=e.eqeq,n=e.Kernel,i=e.truthy,s=e.rb_lt,c=e.rb_divide,f=e.defs,p=e.eqeqeq,h=e.not,I=e.Opal,F=e.def,H=e.return_ivar,pe=e.rb_minus,xe=e.rb_times,ne=e.rb_plus,W=e.rb_gt,X=e.rb_le,ge=e.return_self,se=e.alias,me=e.top,J=e.nil,be=e.$$$;return e.add_stubs("require,to_i,==,raise,<,-@,new,gcd,/,nil?,===,reduce,to_r,!,equal?,coerce_to!,freeze,to_f,numerator,denominator,<=>,-,*,__coerced__,+,Rational,>,**,abs,ceil,with_precision,floor,<=,truncate,send"),me.$require("corelib/numeric"),me.$require("corelib/rational/base"),function(fe,Ae){var O=t(fe,Ae,"Rational"),Ee=O.$$prototype;return Ee.num=Ee.den=J,f(O,"$reduce",function(w,Se){var N=this,re=J;if(w=w.$to_i(),Se=Se.$to_i(),r(Se,0))n.$raise(be("ZeroDivisionError"),"divided by 0");else if(i(s(Se,0)))w=w["$-@"](),Se=Se["$-@"]();else if(r(Se,1))return N.$new(w,Se);return re=w.$gcd(Se),N.$new(c(w,re),c(Se,re))}),f(O,"$convert",function(w,Se){var N=this;return(i(w["$nil?"]())||i(Se["$nil?"]()))&&n.$raise(be("TypeError"),"cannot convert nil into Rational"),p(be("Integer"),w)&&p(be("Integer"),Se)?N.$reduce(w,Se):((p(be("Float"),w)||p(be("String"),w)||p(be("Complex"),w))&&(w=w.$to_r()),(p(be("Float"),Se)||p(be("String"),Se)||p(be("Complex"),Se))&&(Se=Se.$to_r()),i(Se["$equal?"](1))&&h(be("Integer")["$==="](w))?I["$coerce_to!"](w,be("Rational"),"to_r"):p(be("Numeric"),w)&&p(be("Numeric"),Se)?c(w,Se):N.$reduce(w,Se))}),F(O,"$initialize",function(w,Se){var N=this;return N.num=w,N.den=Se,N.$freeze()}),F(O,"$numerator",H("num")),F(O,"$denominator",H("den")),F(O,"$coerce",function(w){var Se=this,N=J;return p(be("Rational"),N=w)?[w,Se]:p(be("Integer"),N)?[w.$to_r(),Se]:p(be("Float"),N)?[w,Se.$to_f()]:J}),F(O,"$==",function(w){var Se=this,N=J,re=J;return p(be("Rational"),N=w)?i(re=Se.num["$=="](w.$numerator()))?Se.den["$=="](w.$denominator()):re:p(be("Integer"),N)?i(re=Se.num["$=="](w))?Se.den["$=="](1):re:p(be("Float"),N)?Se.$to_f()["$=="](w):w["$=="](Se)}),F(O,"$<=>",function(w){var Se=this,N=J;return p(be("Rational"),N=w)?pe(xe(Se.num,w.$denominator()),xe(Se.den,w.$numerator()))["$<=>"](0):p(be("Integer"),N)?pe(Se.num,xe(Se.den,w))["$<=>"](0):p(be("Float"),N)?Se.$to_f()["$<=>"](w):Se.$__coerced__("<=>",w)}),F(O,"$+",function(w){var Se=this,N=J,re=J,P=J;return p(be("Rational"),N=w)?(re=ne(xe(Se.num,w.$denominator()),xe(Se.den,w.$numerator())),P=xe(Se.den,w.$denominator()),n.$Rational(re,P)):p(be("Integer"),N)?n.$Rational(ne(Se.num,xe(w,Se.den)),Se.den):p(be("Float"),N)?ne(Se.$to_f(),w):Se.$__coerced__("+",w)}),F(O,"$-",function(w){var Se=this,N=J,re=J,P=J;return p(be("Rational"),N=w)?(re=pe(xe(Se.num,w.$denominator()),xe(Se.den,w.$numerator())),P=xe(Se.den,w.$denominator()),n.$Rational(re,P)):p(be("Integer"),N)?n.$Rational(pe(Se.num,xe(w,Se.den)),Se.den):p(be("Float"),N)?pe(Se.$to_f(),w):Se.$__coerced__("-",w)}),F(O,"$*",function(w){var Se=this,N=J,re=J,P=J;return p(be("Rational"),N=w)?(re=xe(Se.num,w.$numerator()),P=xe(Se.den,w.$denominator()),n.$Rational(re,P)):p(be("Integer"),N)?n.$Rational(xe(Se.num,w),Se.den):p(be("Float"),N)?xe(Se.$to_f(),w):Se.$__coerced__("*",w)}),F(O,"$/",function(w){var Se=this,N=J,re=J,P=J;return p(be("Rational"),N=w)?(re=xe(Se.num,w.$denominator()),P=xe(Se.den,w.$numerator()),n.$Rational(re,P)):p(be("Integer"),N)?r(w,0)?c(Se.$to_f(),0):n.$Rational(Se.num,xe(Se.den,w)):p(be("Float"),N)?c(Se.$to_f(),w):Se.$__coerced__("/",w)}),F(O,"$**",function(w){var Se=this,N=J;return p(be("Integer"),N=w)?r(Se,0)&&i(s(w,0))?be(be("Float"),"INFINITY"):i(W(w,0))?n.$Rational(Se.num["$**"](w),Se.den["$**"](w)):i(s(w,0))?n.$Rational(Se.den["$**"](w["$-@"]()),Se.num["$**"](w["$-@"]())):n.$Rational(1,1):p(be("Float"),N)?Se.$to_f()["$**"](w):p(be("Rational"),N)?r(w,0)?n.$Rational(1,1):r(w.$denominator(),1)?i(s(w,0))?n.$Rational(Se.den["$**"](w.$numerator().$abs()),Se.num["$**"](w.$numerator().$abs())):n.$Rational(Se.num["$**"](w.$numerator()),Se.den["$**"](w.$numerator())):r(Se,0)&&i(s(w,0))?n.$raise(be("ZeroDivisionError"),"divided by 0"):Se.$to_f()["$**"](w):Se.$__coerced__("**",w)}),F(O,"$abs",function(){var w=this;return n.$Rational(w.num.$abs(),w.den.$abs())}),F(O,"$ceil",function(w){var Se=this;return w==null&&(w=0),r(w,0)?c(Se.num["$-@"](),Se.den)["$-@"]().$ceil():Se.$with_precision("ceil",w)},-1),F(O,"$floor",function(w){var Se=this;return w==null&&(w=0),r(w,0)?c(Se.num["$-@"](),Se.den)["$-@"]().$floor():Se.$with_precision("floor",w)},-1),F(O,"$hash",function(){var w=this;return"Rational:"+w.num+":"+w.den}),F(O,"$inspect",function(){var w=this;return"("+w+")"}),F(O,"$rationalize",function(w){var Se=this;if(arguments.length>1&&n.$raise(be("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),w==null)return Se;for(var N=w.$abs(),re=pe(Se,N),P=ne(Se,N),Me=0,ce=1,M=1,x=0,$,l,u,d,_;u=re.$ceil(),!X(u,P);)d=u-1,$=d*ce+Me,l=d*x+M,_=c(1,pe(P,d)),P=c(1,pe(re,d)),re=_,Me=ce,M=x,ce=$,x=l;return n.$Rational(u*ce+Me,u*x+M)},-1),F(O,"$round",function(w){var Se=this,N=J,re=J,P=J;return w==null&&(w=0),r(w,0)?r(Se.num,0)?0:r(Se.den,1)?Se.num:(N=ne(xe(Se.num.$abs(),2),Se.den),re=xe(Se.den,2),P=c(N,re).$truncate(),i(s(Se.num,0))?P["$-@"]():P):Se.$with_precision("round",w)},-1),F(O,"$to_f",function(){var w=this;return c(w.num,w.den)}),F(O,"$to_i",function(){var w=this;return w.$truncate()}),F(O,"$to_r",ge),F(O,"$to_s",function(){var w=this;return""+w.num+"/"+w.den}),F(O,"$truncate",function(w){var Se=this;return w==null&&(w=0),r(w,0)?i(s(Se.num,0))?Se.$ceil():Se.$floor():Se.$with_precision("truncate",w)},-1),F(O,"$with_precision",function(w,Se){var N=this,re=J,P=J;return p(be("Integer"),Se)||n.$raise(be("TypeError"),"not an Integer"),re=10["$**"](Se),P=xe(N,re),i(s(Se,1))?c(P.$send(w),re).$to_i():n.$Rational(P.$send(w),re)}),f(O,"$from_string",function(w){var Se=w.trimLeft(),N=/^[+-]?[\d_]+(\.[\d_]+)?/;Se.match(N);var re,P;function Me(){return N.test(Se)}function ce(){var M=Se.match(N),x=M[0];return Se=Se.slice(x.length),x.replace(/_/g,"")}return Me()?(re=parseFloat(ce()),Se[0]==="/"?(Se=Se.slice(1),Me()?(P=parseFloat(ce()),n.$Rational(re,P)):n.$Rational(re,1)):n.$Rational(re,1)):n.$Rational(0,1)}),se(O,"divide","/"),se(O,"quo","/")}("::",be("Numeric"))};Opal.modules["corelib/time"]=function(e){var t=e.slice,r=e.deny_frozen_access,n=e.klass,i=e.Kernel,s=e.Opal,c=e.defs,f=e.eqeqeq,p=e.def,h=e.truthy,I=e.rb_gt,F=e.rb_lt,H=e.send,pe=e.rb_plus,xe=e.rb_divide,ne=e.rb_minus,W=e.range,X=e.neqeq,ge=e.rb_le,se=e.eqeq,me=e.alias,J=e.top,be=[],fe=e.nil,Ae=e.$$$;return e.add_stubs("require,include,===,raise,coerce_to!,respond_to?,to_str,to_i,_parse_offset,new,<=>,to_f,nil?,>,<,strftime,each,define_method,year,month,day,+,round,/,-,copy_instance_variables,initialize_dup,is_a?,zero?,wday,utc?,mon,yday,hour,min,sec,rjust,ljust,zone,to_s,[],cweek_cyear,jd,to_date,format,isdst,!=,<=,==,ceil,local,gm,asctime,getgm,gmt_offset,inspect,usec,gmtime,gmt?"),J.$require("corelib/comparable"),function(O,Ee,le){var w=n(O,Ee,"Time"),Se=[w].concat(le),N=e.$r(Se);w.$include(Ae("Comparable"));var re=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],P=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Me=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ce=["January","February","March","April","May","June","July","August","September","October","November","December"];c(w,"$at",function($,l){var u;return Ae("Time")["$==="]($)?(l!==void 0&&i.$raise(Ae("TypeError"),"can't convert Time into an exact number"),u=new Date($.getTime()),u.timezone=$.timezone,u):($.$$is_number||($=s["$coerce_to!"]($,Ae("Integer"),"to_int")),l===void 0?new Date($*1e3):(l.$$is_number||(l=s["$coerce_to!"](l,Ae("Integer"),"to_int")),new Date($*1e3+l/1e3)))},-2);function M(x,$,l,u,d,_){if(x.$$is_string?x=parseInt(x,10):x=s["$coerce_to!"](x,Ae("Integer"),"to_int"),$===fe)$=1;else if(!$.$$is_number)if($["$respond_to?"]("to_str"))switch($=$.$to_str(),$.toLowerCase()){case"jan":$=1;break;case"feb":$=2;break;case"mar":$=3;break;case"apr":$=4;break;case"may":$=5;break;case"jun":$=6;break;case"jul":$=7;break;case"aug":$=8;break;case"sep":$=9;break;case"oct":$=10;break;case"nov":$=11;break;case"dec":$=12;break;default:$=$.$to_i()}else $=s["$coerce_to!"]($,Ae("Integer"),"to_int");return($<1||$>12)&&i.$raise(Ae("ArgumentError"),"month out of range: "+$),$=$-1,l===fe?l=1:l.$$is_string?l=parseInt(l,10):l=s["$coerce_to!"](l,Ae("Integer"),"to_int"),(l<1||l>31)&&i.$raise(Ae("ArgumentError"),"day out of range: "+l),u===fe?u=0:u.$$is_string?u=parseInt(u,10):u=s["$coerce_to!"](u,Ae("Integer"),"to_int"),(u<0||u>24)&&i.$raise(Ae("ArgumentError"),"hour out of range: "+u),d===fe?d=0:d.$$is_string?d=parseInt(d,10):d=s["$coerce_to!"](d,Ae("Integer"),"to_int"),(d<0||d>59)&&i.$raise(Ae("ArgumentError"),"min out of range: "+d),_===fe?_=0:_.$$is_number||(_.$$is_string?_=parseInt(_,10):_=s["$coerce_to!"](_,Ae("Integer"),"to_int")),(_<0||_>60)&&i.$raise(Ae("ArgumentError"),"sec out of range: "+_),[x,$,l,u,d,_]}return c(w,"$new",function($,l,u,d,_,S,A){var Q=this;l==null&&(l=fe),u==null&&(u=fe),d==null&&(d=fe),_==null&&(_=fe),S==null&&(S=fe),A==null&&(A=fe);var De,rt,ft,_t;return $===void 0?new Date:(De=M($,l,u,d,_,S),$=De[0],l=De[1],u=De[2],d=De[3],_=De[4],S=De[5],A===fe?(rt=new Date($,l,u,d,_,0,S*1e3),$<100&&rt.setFullYear($),rt):(ft=Q.$_parse_offset(A),_t=new Date(Date.UTC($,l,u,d,_,0,S*1e3)),$<100&&_t.setUTCFullYear($),rt=new Date(_t.getTime()-ft*36e5),rt.timezone=ft,rt))},-1),c(w,"$_parse_offset",function($){var l;if($.$$is_string)if($=="UTC")l=0;else if(/^[+-]\d\d:[0-5]\d$/.test($)){var u,d,_;u=$[0],d=+($[1]+$[2]),_=+($[4]+$[5]),l=(u=="-"?-1:1)*(d+_/60)}else i.$raise(Ae("ArgumentError"),'"+HH:MM", "-HH:MM", "UTC" expected for utc_offset: '+$);else $.$$is_number?l=$/3600:i.$raise(Ae("ArgumentError"),"Opal doesn't support other types for a timezone argument than Integer and String");return l}),c(w,"$local",function($,l,u,d,_,S,A,Q,De,rt){l==null&&(l=fe),u==null&&(u=fe),d==null&&(d=fe),_==null&&(_=fe),S==null&&(S=fe),A==null&&(A=fe),Q==null&&(Q=fe),De==null&&(De=fe),rt==null&&(rt=fe);var ft,_t;return arguments.length===10&&(ft=t(arguments),$=ft[5],l=ft[4],u=ft[3],d=ft[2],_=ft[1],S=ft[0]),ft=M($,l,u,d,_,S),$=ft[0],l=ft[1],u=ft[2],d=ft[3],_=ft[4],S=ft[5],_t=new Date($,l,u,d,_,0,S*1e3),$<100&&_t.setFullYear($),_t},-2),c(w,"$gm",function($,l,u,d,_,S,A,Q,De,rt){l==null&&(l=fe),u==null&&(u=fe),d==null&&(d=fe),_==null&&(_=fe),S==null&&(S=fe),A==null&&(A=fe),Q==null&&(Q=fe),De==null&&(De=fe),rt==null&&(rt=fe);var ft,_t;return arguments.length===10&&(ft=t(arguments),$=ft[5],l=ft[4],u=ft[3],d=ft[2],_=ft[1],S=ft[0]),ft=M($,l,u,d,_,S),$=ft[0],l=ft[1],u=ft[2],d=ft[3],_=ft[4],S=ft[5],_t=new Date(Date.UTC($,l,u,d,_,0,S*1e3)),$<100&&_t.setUTCFullYear($),_t.timezone=0,_t},-2),c(w,"$now",function(){var $=this;return $.$new()}),p(w,"$+",function($){var l=this;f(Ae("Time"),$)&&i.$raise(Ae("TypeError"),"time + time?"),$.$$is_number||($=s["$coerce_to!"]($,Ae("Integer"),"to_int"));var u=new Date(l.getTime()+$*1e3);return u.timezone=l.timezone,u}),p(w,"$-",function($){var l=this;if(f(Ae("Time"),$))return(l.getTime()-$.getTime())/1e3;$.$$is_number||($=s["$coerce_to!"]($,Ae("Integer"),"to_int"));var u=new Date(l.getTime()-$*1e3);return u.timezone=l.timezone,u}),p(w,"$<=>",function($){var l=this,u=fe;return f(Ae("Time"),$)?l.$to_f()["$<=>"]($.$to_f()):(u=$["$<=>"](l),h(u["$nil?"]())?fe:h(I(u,0))?-1:h(F(u,0))?1:0)}),p(w,"$==",function($){var l=this,u=fe;return h(u=Ae("Time")["$==="]($))?l.$to_f()===$.$to_f():u}),p(w,"$asctime",function(){var $=this;return $.$strftime("%a %b %e %H:%M:%S %Y")}),H([["year","getFullYear","getUTCFullYear"],["mon","getMonth","getUTCMonth",1],["wday","getDay","getUTCDay"],["day","getDate","getUTCDate"],["hour","getHours","getUTCHours"],["min","getMinutes","getUTCMinutes"],["sec","getSeconds","getUTCSeconds"]],"each",[],function x($,l,u,d){var _=x.$$s==null?this:x.$$s;return $==null&&($=fe),l==null&&(l=fe),u==null&&(u=fe),d==null&&(d=0),H(_,"define_method",[$],function S(){var A=S.$$s==null?this:S.$$s;return d+(A.timezone!=null?new Date(A.getTime()+A.timezone*36e5)[u]():A[l]())},{$$s:_})},{$$arity:-4,$$s:w}),p(w,"$yday",function(){var $=this,l=fe,u=fe,d=fe;return l=N("Time").$new($.$year()).$to_i(),u=N("Time").$new($.$year(),$.$month(),$.$day()).$to_i(),d=86400,pe(xe(ne(u,l),d).$round(),1)}),p(w,"$isdst",function(){var $=this,l=new Date($.getFullYear(),0,1),u=new Date($.getFullYear(),6,1);return $.getTimezoneOffset()<Math.max(l.getTimezoneOffset(),u.getTimezoneOffset())}),p(w,"$dup",function(){var $=this,l=fe;return l=new Date($.getTime()),l.$copy_instance_variables($),l.$initialize_dup($),l}),p(w,"$eql?",function($){var l=this,u=fe;return h(u=$["$is_a?"](Ae("Time")))?l["$<=>"]($)["$zero?"]():u}),H([["sunday?",0],["monday?",1],["tuesday?",2],["wednesday?",3],["thursday?",4],["friday?",5],["saturday?",6]],"each",[],function x($,l){var u=x.$$s==null?this:x.$$s;return $==null&&($=fe),l==null&&(l=fe),H(u,"define_method",[$],function d(){var _=d.$$s==null?this:d.$$s;return _.$wday()===l},{$$s:u})},{$$s:w}),p(w,"$hash",function(){var $=this;return"Time:"+$.getTime()}),p(w,"$inspect",function(){var $=this;return h($["$utc?"]())?$.$strftime("%Y-%m-%d %H:%M:%S UTC"):$.$strftime("%Y-%m-%d %H:%M:%S %z")}),p(w,"$succ",function(){var $=this,l=new Date($.getTime()+1e3);return l.timezone=$.timezone,l}),p(w,"$usec",function(){var $=this;return $.getMilliseconds()*1e3}),p(w,"$zone",function(){var $=this;if($.timezone===0)return"UTC";if($.timezone!=null)return fe;var l=$.toString(),u;return l.indexOf("(")==-1?u=l.match(/[A-Z]{3,4}/)[0]:u=l.match(/\((.+)\)(?:\s|$)/)[1],u=="GMT"&&/(GMT\W*\d{4})/.test(l)?RegExp.$1:u}),p(w,"$getgm",function(){var $=this,l=new Date($.getTime());return l.timezone=0,l}),p(w,"$gmtime",function(){var $=this;return $.timezone!==0&&(r($),$.timezone=0),$}),p(w,"$gmt?",function(){var $=this;return $.timezone===0}),p(w,"$gmt_offset",function(){var $=this;return $.timezone!=null?$.timezone*60:-$.getTimezoneOffset()*60}),p(w,"$strftime",function($){var l=this;return $.replace(/%([\-_#^0]*:{0,2})(\d+)?([EO]*)(.)/g,function(u,d,_,S,A){var Q="",De,rt,ft,_t=d.indexOf("0")!==-1,At=d.indexOf("-")===-1,bt=d.indexOf("_")!==-1,Mt=d.indexOf("^")!==-1,Et=d.indexOf("#")!==-1,qt=(d.match(":")||[]).length;switch(_=parseInt(_,10),_t&&bt&&(d.indexOf("0")<d.indexOf("_")?_t=!1:bt=!1),A){case"Y":Q+=l.$year();break;case"C":_t=!bt,Q+=Math.round(l.$year()/100);break;case"y":_t=!bt,Q+=l.$year()%100;break;case"m":_t=!bt,Q+=l.$mon();break;case"B":Q+=ce[l.$mon()-1];break;case"b":case"h":bt=!_t,Q+=Me[l.$mon()-1];break;case"d":_t=!bt,Q+=l.$day();break;case"e":bt=!_t,Q+=l.$day();break;case"j":_t=!bt,_=isNaN(_)?3:_,Q+=l.$yday();break;case"H":_t=!bt,Q+=l.$hour();break;case"k":bt=!_t,Q+=l.$hour();break;case"I":_t=!bt,Q+=l.$hour()%12||12;break;case"l":bt=!_t,Q+=l.$hour()%12||12;break;case"P":Q+=l.$hour()>=12?"pm":"am";break;case"p":Q+=l.$hour()>=12?"PM":"AM";break;case"M":_t=!bt,Q+=l.$min();break;case"S":_t=!bt,Q+=l.$sec();break;case"L":_t=!bt,_=isNaN(_)?3:_,Q+=l.getMilliseconds();break;case"N":_=isNaN(_)?9:_,Q+=l.getMilliseconds().toString().$rjust(3,"0"),Q=Q.$ljust(_,"0");break;case"z":var It=l.timezone==null?l.getTimezoneOffset():-l.timezone*60,nt=Math.floor(Math.abs(It)/60),Re=Math.abs(It)%60;Q+=It<0?"+":"-",Q+=nt<10?"0":"",Q+=nt,qt>0&&(Q+=":"),Q+=Re<10?"0":"",Q+=Re,qt>1&&(Q+=":00");break;case"Z":Q+=l.$zone();break;case"A":Q+=re[l.$wday()];break;case"a":Q+=P[l.$wday()];break;case"u":Q+=l.$wday()+1;break;case"w":Q+=l.$wday();break;case"V":Q+=l.$cweek_cyear()["$[]"](0).$to_s().$rjust(2,"0");break;case"G":Q+=l.$cweek_cyear()["$[]"](1);break;case"g":Q+=l.$cweek_cyear()["$[]"](1)["$[]"](W(-2,-1,!1));break;case"s":Q+=l.$to_i();break;case"n":Q+=`
|
|
407
|
-
`;break;case"t":Q+=" ";break;case"%":Q+="%";break;case"c":Q+=l.$strftime("%a %b %e %T %Y");break;case"D":case"x":Q+=l.$strftime("%m/%d/%y");break;case"F":Q+=l.$strftime("%Y-%m-%d");break;case"v":Q+=l.$strftime("%e-%^b-%4Y");break;case"r":Q+=l.$strftime("%I:%M:%S %p");break;case"R":Q+=l.$strftime("%H:%M");break;case"T":case"X":Q+=l.$strftime("%H:%M:%S");break;case"J":if(De=l.$to_date().$jd(),De<2405160){Q+=l.$strftime("%Y-%m-%d");break}else De<2419614?(rt="M",ft=1867):De<2424875?(rt="T",ft=1911):De<2447535?(rt="S",ft=1925):De<2458605?(rt="H",ft=1988):(rt="R",ft=2018);Q+=l.$format("%c%02d",rt,ne(l.$year(),ft)),Q+=l.$strftime("-%m-%d");break;default:return u}return Mt&&(Q=Q.toUpperCase()),Et&&(Q=Q.replace(/[A-Z]/,function(Pe){Pe.toLowerCase()}).replace(/[a-z]/,function(Pe){Pe.toUpperCase()})),At&&(_t||bt)&&(Q=Q.$rjust(isNaN(_)?2:_,bt?" ":"0")),Q})}),p(w,"$to_a",function(){var $=this;return[$.$sec(),$.$min(),$.$hour(),$.$day(),$.$month(),$.$year(),$.$wday(),$.$yday(),$.$isdst(),$.$zone()]}),p(w,"$to_f",function(){var $=this;return $.getTime()/1e3}),p(w,"$to_i",function(){var $=this;return parseInt($.getTime()/1e3,10)}),p(w,"$cweek_cyear",function(){var $=this,l=fe,u=fe,d=fe,_=fe,S=fe,A=fe,Q=fe;return l=Ae("Time").$new($.$year(),1,1),u=l.$wday(),d=$.$year(),h(ge(u,4))&&X(u,0)?_=ne(u,1):(_=ne(ne(u,7),1),se(_,-8)&&(_=-1)),S=xe(pe($.$yday(),_),7).$ceil(),h(ge(S,0))?Ae("Time").$new(ne($.$year(),1),12,31).$cweek_cyear():(se(S,53)&&(A=Ae("Time").$new($.$year(),12,31),Q=A.$wday(),h(ge(Q,3))&&X(Q,0)&&(S=1,d=pe(d,1))),[S,d])}),function(x,$){return me(x,"mktime","local"),me(x,"utc","gm")}(e.get_singleton_class(w)),me(w,"ctime","asctime"),me(w,"dst?","isdst"),me(w,"getutc","getgm"),me(w,"gmtoff","gmt_offset"),me(w,"mday","day"),me(w,"month","mon"),me(w,"to_s","inspect"),me(w,"tv_sec","to_i"),me(w,"tv_usec","usec"),me(w,"utc","gmtime"),me(w,"utc?","gmt?"),me(w,"utc_offset","gmt_offset")}("::",Date,be)};Opal.modules["corelib/struct"]=function(e){var t=e.klass,r=e.slice,n=e.extract_kwargs,i=e.ensure_kwargs,s=e.truthy,c=e.neqeq,f=e.eqeq,p=e.Opal,h=e.send,I=e.Class,F=e.to_a,H=e.def,pe=e.defs,xe=e.Kernel,ne=e.hash2,W=e.rb_gt,X=e.rb_minus,ge=e.eqeqeq,se=e.rb_lt,me=e.rb_ge,J=e.rb_plus,be=e.alias,fe=e.top,Ae=[],O=e.nil,Ee=e.$$$;return e.add_stubs("require,include,!=,upcase,[],==,class,unshift,const_name!,map,coerce_to!,new,each,define_struct_attribute,allocate,initialize,alias_method,module_eval,to_proc,const_set,raise,<<,members,define_method,instance_eval,last,>,length,-,keys,any?,join,[]=,each_with_index,hash,===,<,-@,size,>=,include?,to_sym,instance_of?,__id__,eql?,enum_for,+,name,each_pair,inspect,to_h,args,each_with_object,flatten,to_a,respond_to?,dig"),fe.$require("corelib/enumerable"),function(le,w,Se){var N=t(le,w,"Struct"),re=[N].concat(Se),P=e.$r(re);N.$include(Ee("Enumerable")),pe(N,"$new",function ce(M,x,$){var l=ce.$$p||O,u,d,_,S,A=this,Q=O;if(ce.$$p=null,u=r(arguments,1),d=n(u),d=i(d),_=u,S=d.$$smap.keyword_init,S==null&&(S=!1),s(M))if(f(M.$class(),Ee("String"))&&c(M["$[]"](0).$upcase(),M["$[]"](0)))_.$unshift(M),M=O;else try{M=p["$const_name!"](M)}catch(De){if(e.rescue(De,[Ee("TypeError"),Ee("NameError")]))try{_.$unshift(M),M=O}finally{e.pop_exception()}else throw De}return h(_,"map",[],function(rt){return rt==null&&(rt=O),p["$coerce_to!"](rt,Ee("String"),"to_str")}),Q=h(I,"new",[A],function De(){var rt=De.$$s==null?this:De.$$s;return h(_,"each",[],function ft(_t){var At=ft.$$s==null?this:ft.$$s;return _t==null&&(_t=O),At.$define_struct_attribute(_t)},{$$s:rt}),function(ft,_t){return H(ft,"$new",function(bt){var Mt,Et,qt=this,It=O;return Mt=r(arguments),Et=Mt,It=qt.$allocate(),It.$$data={},h(It,"initialize",F(Et)),It},-1),ft.$alias_method("[]","new")}(e.get_singleton_class(rt))},{$$s:A}),s(l)&&h(Q,"module_eval",[],l.$to_proc()),Q.$$keyword_init=S,s(M)&&Ee("Struct").$const_set(M,Q),Q},-2),pe(N,"$define_struct_attribute",function(M){var x=this;return f(x,Ee("Struct"))&&xe.$raise(Ee("ArgumentError"),"you cannot define attributes to the Struct class"),x.$members()["$<<"](M),h(x,"define_method",[M],function $(){var l=$.$$s==null?this:$.$$s;return l.$$data[M]},{$$s:x}),h(x,"define_method",[""+M+"="],function $(l){var u=$.$$s==null?this:$.$$s;return l==null&&(l=O),u.$$data[M]=l},{$$s:x})}),pe(N,"$members",function(){var M=this,x=O;return M.members==null&&(M.members=O),f(M,Ee("Struct"))&&xe.$raise(Ee("ArgumentError"),"the Struct class has no members"),M.members=s(x=M.members)?x:[]}),pe(N,"$inherited",function(M){var x=this,$=O;return x.members==null&&(x.members=O),$=x.members,h(M,"instance_eval",[],function l(){var u=l.$$s==null?this:l.$$s;return u.members=$},{$$s:x})}),H(N,"$initialize",function(M){var x,$,l=this,u=O,d=O,_=O;return x=r(arguments),$=x,s(l.$class().$$keyword_init)?(u=s(d=$.$last())?d:ne([],{}),(s(W($.$length(),1))||s($.length===1&&!u.$$is_hash))&&xe.$raise(Ee("ArgumentError"),"wrong number of arguments (given "+$.$length()+", expected 0)"),_=X(u.$keys(),l.$class().$members()),s(_["$any?"]())&&xe.$raise(Ee("ArgumentError"),"unknown keywords: "+_.$join(", ")),h(l.$class().$members(),"each",[],function S(A){var Q,De=S.$$s==null?this:S.$$s;return A==null&&(A=O),Q=[A,u["$[]"](A)],h(De,"[]=",Q),Q[Q.length-1]},{$$s:l})):(s(W($.$length(),l.$class().$members().$length()))&&xe.$raise(Ee("ArgumentError"),"struct size differs"),h(l.$class().$members(),"each_with_index",[],function S(A,Q){var De,rt=S.$$s==null?this:S.$$s;return A==null&&(A=O),Q==null&&(Q=O),De=[A,$["$[]"](Q)],h(rt,"[]=",De),De[De.length-1]},{$$s:l}))},-1),H(N,"$initialize_copy",function(M){var x=this;x.$$data={};var $=Object.keys(M.$$data),l,u,d;for(l=0,u=$.length;l<u;l++)d=$[l],x.$$data[d]=M.$$data[d]}),pe(N,"$keyword_init?",function(){var M=this;return M.$$keyword_init}),H(N,"$members",function(){var M=this;return M.$class().$members()}),H(N,"$hash",function(){var M=this;return P("Hash").$new(M.$$data).$hash()}),H(N,"$[]",function(M){var x=this;return ge(Ee("Integer"),M)?(s(se(M,x.$class().$members().$size()["$-@"]()))&&xe.$raise(Ee("IndexError"),"offset "+M+" too small for struct(size:"+x.$class().$members().$size()+")"),s(me(M,x.$class().$members().$size()))&&xe.$raise(Ee("IndexError"),"offset "+M+" too large for struct(size:"+x.$class().$members().$size()+")"),M=x.$class().$members()["$[]"](M)):ge(Ee("String"),M)?x.$$data.hasOwnProperty(M)||xe.$raise(Ee("NameError").$new("no member '"+M+"' in struct",M)):xe.$raise(Ee("TypeError"),"no implicit conversion of "+M.$class()+" into Integer"),M=p["$coerce_to!"](M,Ee("String"),"to_str"),x.$$data[M]}),H(N,"$[]=",function(M,x){var $=this;return ge(Ee("Integer"),M)?(s(se(M,$.$class().$members().$size()["$-@"]()))&&xe.$raise(Ee("IndexError"),"offset "+M+" too small for struct(size:"+$.$class().$members().$size()+")"),s(me(M,$.$class().$members().$size()))&&xe.$raise(Ee("IndexError"),"offset "+M+" too large for struct(size:"+$.$class().$members().$size()+")"),M=$.$class().$members()["$[]"](M)):ge(Ee("String"),M)?s($.$class().$members()["$include?"](M.$to_sym()))||xe.$raise(Ee("NameError").$new("no member '"+M+"' in struct",M)):xe.$raise(Ee("TypeError"),"no implicit conversion of "+M.$class()+" into Integer"),M=p["$coerce_to!"](M,Ee("String"),"to_str"),$.$$data[M]=x}),H(N,"$==",function(M){var x=this;if(!s(M["$instance_of?"](x.$class())))return!1;var $={},l={};function u(d,_){var S,A,Q;$[d.$__id__()]=!0,l[_.$__id__()]=!0;for(S in d.$$data)if(A=d.$$data[S],Q=_.$$data[S],Ee("Struct")["$==="](A)){if((!$.hasOwnProperty(A.$__id__())||!l.hasOwnProperty(Q.$__id__()))&&!u(A,Q))return!1}else if(!A["$=="](Q))return!1;return!0}return u(x,M)}),H(N,"$eql?",function(M){var x=this;if(!s(M["$instance_of?"](x.$class())))return!1;var $={},l={};function u(d,_){var S,A,Q;$[d.$__id__()]=!0,l[_.$__id__()]=!0;for(S in d.$$data)if(A=d.$$data[S],Q=_.$$data[S],Ee("Struct")["$==="](A)){if((!$.hasOwnProperty(A.$__id__())||!l.hasOwnProperty(Q.$__id__()))&&!u(A,Q))return!1}else if(!A["$eql?"](Q))return!1;return!0}return u(x,M)}),H(N,"$each",function ce(){var M=ce.$$p||O,x=this;return ce.$$p=null,M===O?h(x,"enum_for",["each"],function $(){var l=$.$$s==null?this:$.$$s;return l.$size()},{$$s:x}):(h(x.$class().$members(),"each",[],function $(l){var u=$.$$s==null?this:$.$$s;return l==null&&(l=O),e.yield1(M,u["$[]"](l))},{$$s:x}),x)}),H(N,"$each_pair",function ce(){var M=ce.$$p||O,x=this;return ce.$$p=null,M===O?h(x,"enum_for",["each_pair"],function $(){var l=$.$$s==null?this:$.$$s;return l.$size()},{$$s:x}):(h(x.$class().$members(),"each",[],function $(l){var u=$.$$s==null?this:$.$$s;return l==null&&(l=O),e.yield1(M,[l,u["$[]"](l)])},{$$s:x}),x)}),H(N,"$length",function(){var M=this;return M.$class().$members().$length()}),H(N,"$to_a",function(){var M=this;return h(M.$class().$members(),"map",[],function x($){var l=x.$$s==null?this:x.$$s;return $==null&&($=O),l["$[]"]($)},{$$s:M})});var Me=[];return H(N,"$inspect",function(){var M=this,x=O,$=O;return function(){try{return x="#<struct ",s(Me["$include?"](M.$__id__()))?J(x,":...>"):(Me["$<<"](M.$__id__()),$=!0,ge(Ee("Struct"),M)&&s(M.$class().$name())&&(x=J(x,""+M.$class()+" ")),x=J(x,h(M.$each_pair(),"map",[],function(u,d){return u==null&&(u=O),d==null&&(d=O),""+u+"="+P("Opal").$inspect(d)}).$join(", ")),x=J(x,">"),x)}finally{s($)&&Me.pop()}}()}),H(N,"$to_h",function ce(){var M=ce.$$p||O,x=this;return ce.$$p=null,M!==O?h(h(x,"map",[],M.$to_proc()),"to_h",F(x.$args())):h(x.$class().$members(),"each_with_object",[ne([],{})],function $(l,u){var d,_=$.$$s==null?this:$.$$s;return l==null&&(l=O),u==null&&(u=O),d=[l,_["$[]"](l)],h(u,"[]=",d),d[d.length-1]},{$$s:x})}),H(N,"$values_at",function(M){var x,$,l=this;x=r(arguments),$=x,$=h($,"map",[],function(A){return A==null&&(A=O),A.$$is_range?A.$to_a():A}).$flatten();for(var u=[],d=0,_=$.length;d<_;d++)$[d].$$is_number||xe.$raise(Ee("TypeError"),"no implicit conversion of "+$[d].$class()+" into Integer"),u.push(l["$[]"]($[d]));return u},-1),H(N,"$dig",function(M,x){var $,l,u=this,d=O;return $=r(arguments,1),l=$,d=s(M.$$is_string&&u.$$data.hasOwnProperty(M))&&u.$$data[M]||O,d===O||l.length===0?d:(s(d["$respond_to?"]("dig"))||xe.$raise(Ee("TypeError"),""+d.$class()+" does not have #dig method"),h(d,"dig",F(l)))},-2),be(N,"size","length"),be(N,"to_s","inspect"),be(N,"values","to_a")}("::",null,Ae)};Opal.modules["corelib/set"]=function(e){var t=e.freeze,r=e.klass,n=e.slice,i=e.defs,s=e.hash2,c=e.truthy,f=e.eqeqeq,p=e.Kernel,h=e.send,I=e.def,F=e.eqeq,H=e.rb_lt,pe=e.rb_le,xe=e.alias,ne=[],W=e.nil,X=e.$$$;return e.add_stubs("include,new,nil?,===,raise,each,add,merge,class,respond_to?,subtract,dup,join,to_a,equal?,instance_of?,==,instance_variable_get,size,is_a?,all?,include?,[]=,enum_for,[],<<,replace,compare_by_identity,name,compare_by_identity?,delete,select,frozen?,freeze,reject,delete_if,to_proc,keep_if,each_key,empty?,eql?,instance_eval,clear,<,<=,any?,!,intersect?,keys,|,proper_subset?,subset?,proper_superset?,superset?,-,select!,collect!"),function(ge,se,me){var J=r(ge,se,"Set"),be=[J].concat(me),fe=e.$r(be),Ae=W,O=J.$$prototype;O.hash=W,J.$include(X("Enumerable")),i(J,"$[]",function(w){var Se,N,re=this;return Se=n(arguments),N=Se,re.$new(N)},-1),I(J,"$initialize",function le(w){var Se=le.$$p||W,N=this;return le.$$p=null,w==null&&(w=W),N.hash=s([],{}),c(w["$nil?"]())?W:(f(X("Enumerable"),w)||p.$raise(X("ArgumentError"),"value must be enumerable"),c(Se)?h(w,"each",[],function re(P){var Me=re.$$s==null?this:re.$$s;return P==null&&(P=W),Me.$add(e.yield1(Se,P))},{$$s:N}):N.$merge(w))},-1),I(J,"$dup",function(){var w=this,Se=W;return Se=w.$class().$new(),Se.$merge(w)}),I(J,"$-",function(w){var Se=this;return c(w["$respond_to?"]("each"))||p.$raise(X("ArgumentError"),"value must be enumerable"),Se.$dup().$subtract(w)}),I(J,"$inspect",function(){var w=this;return"#<Set: {"+w.$to_a().$join(",")+"}>"}),I(J,"$==",function(w){var Se=this;return c(Se["$equal?"](w))?!0:c(w["$instance_of?"](Se.$class()))?Se.hash["$=="](w.$instance_variable_get("@hash")):c(w["$is_a?"](X("Set")))&&F(Se.$size(),w.$size())?h(w,"all?",[],function N(re){var P=N.$$s==null?this:N.$$s;return P.hash==null&&(P.hash=W),re==null&&(re=W),P.hash["$include?"](re)},{$$s:Se}):!1}),I(J,"$add",function(w){var Se=this;return Se.hash["$[]="](w,!0),Se}),I(J,"$classify",function le(){var w=le.$$p||W,Se=this,N=W;return le.$$p=null,w===W?Se.$enum_for("classify"):(N=h(X("Hash"),"new",[],function re(P,Me){var ce,M=re.$$s==null?this:re.$$s;return P==null&&(P=W),Me==null&&(Me=W),ce=[Me,M.$class().$new()],h(P,"[]=",ce),ce[ce.length-1]},{$$s:Se}),h(Se,"each",[],function(P){return P==null&&(P=W),N["$[]"](e.yield1(w,P)).$add(P)}),N)}),I(J,"$collect!",function le(){var w=le.$$p||W,Se=this,N=W;return le.$$p=null,w===W?Se.$enum_for("collect!"):(N=Se.$class().$new(),h(Se,"each",[],function(P){return P==null&&(P=W),N["$<<"](e.yield1(w,P))}),Se.$replace(N))}),I(J,"$compare_by_identity",function(){var w=this;return c(w.hash["$respond_to?"]("compare_by_identity"))?(w.hash.$compare_by_identity(),w):w.$raise(fe("NotImplementedError"),""+w.$class().$name()+"#compare_by_identity is not implemented")}),I(J,"$compare_by_identity?",function(){var w=this,Se=W;return c(Se=w.hash["$respond_to?"]("compare_by_identity?"))?w.hash["$compare_by_identity?"]():Se}),I(J,"$delete",function(w){var Se=this;return Se.hash.$delete(w),Se}),I(J,"$delete?",function(w){var Se=this;return c(Se["$include?"](w))?(Se.$delete(w),Se):W}),I(J,"$delete_if",function le(){var w=le.$$p||W,Se=this;return le.$$p=null,w===W?Se.$enum_for("delete_if"):(h(h(Se,"select",[],function(re){return re==null&&(re=W),e.yield1(w,re)}),"each",[],function N(re){var P=N.$$s==null?this:N.$$s;return P.hash==null&&(P.hash=W),re==null&&(re=W),P.hash.$delete(re)},{$$s:Se}),Se)}),I(J,"$freeze",function(){var w=this;return c(w["$frozen?"]())?w:(w.hash.$freeze(),t(w))}),I(J,"$keep_if",function le(){var w=le.$$p||W,Se=this;return le.$$p=null,w===W?Se.$enum_for("keep_if"):(h(h(Se,"reject",[],function(re){return re==null&&(re=W),e.yield1(w,re)}),"each",[],function N(re){var P=N.$$s==null?this:N.$$s;return P.hash==null&&(P.hash=W),re==null&&(re=W),P.hash.$delete(re)},{$$s:Se}),Se)}),I(J,"$reject!",function le(){var w=le.$$p||W,Se=this,N=W;return le.$$p=null,w===W?Se.$enum_for("reject!"):(N=Se.$size(),h(Se,"delete_if",[],w.$to_proc()),F(Se.$size(),N)?W:Se)}),I(J,"$select!",function le(){var w=le.$$p||W,Se=this,N=W;return le.$$p=null,w===W?Se.$enum_for("select!"):(N=Se.$size(),h(Se,"keep_if",[],w.$to_proc()),F(Se.$size(),N)?W:Se)}),I(J,"$add?",function(w){var Se=this;return c(Se["$include?"](w))?W:Se.$add(w)}),I(J,"$each",function le(){var w=le.$$p||W,Se=this;return le.$$p=null,w===W?Se.$enum_for("each"):(h(Se.hash,"each_key",[],w.$to_proc()),Se)}),I(J,"$empty?",function(){var w=this;return w.hash["$empty?"]()}),I(J,"$eql?",function(w){var Se=this;return Se.hash["$eql?"](h(w,"instance_eval",[],function N(){var re=N.$$s==null?this:N.$$s;return re.hash==null&&(re.hash=W),re.hash},{$$s:Se}))}),I(J,"$clear",function(){var w=this;return w.hash.$clear(),w}),I(J,"$include?",function(w){var Se=this;return Se.hash["$include?"](w)}),I(J,"$merge",function(w){var Se=this;return h(w,"each",[],function N(re){var P=N.$$s==null?this:N.$$s;return re==null&&(re=W),P.$add(re)},{$$s:Se}),Se}),I(J,"$replace",function(w){var Se=this;return Se.$clear(),Se.$merge(w),Se}),I(J,"$size",function(){var w=this;return w.hash.$size()}),I(J,"$subtract",function(w){var Se=this;return h(w,"each",[],function N(re){var P=N.$$s==null?this:N.$$s;return re==null&&(re=W),P.$delete(re)},{$$s:Se}),Se}),I(J,"$|",function(w){var Se=this;return c(w["$respond_to?"]("each"))||p.$raise(X("ArgumentError"),"value must be enumerable"),Se.$dup().$merge(w)});function Ee(le){c(Ae=le["$is_a?"](X("Set")))||p.$raise(X("ArgumentError"),"value must be a set")}return I(J,"$superset?",function(w){var Se=this;return Ee(w),c(H(Se.$size(),w.$size()))?!1:h(w,"all?",[],function N(re){var P=N.$$s==null?this:N.$$s;return re==null&&(re=W),P["$include?"](re)},{$$s:Se})}),I(J,"$proper_superset?",function(w){var Se=this;return Ee(w),c(pe(Se.$size(),w.$size()))?!1:h(w,"all?",[],function N(re){var P=N.$$s==null?this:N.$$s;return re==null&&(re=W),P["$include?"](re)},{$$s:Se})}),I(J,"$subset?",function(w){var Se=this;return Ee(w),c(H(w.$size(),Se.$size()))?!1:h(Se,"all?",[],function(re){return re==null&&(re=W),w["$include?"](re)})}),I(J,"$proper_subset?",function(w){var Se=this;return Ee(w),c(pe(w.$size(),Se.$size()))?!1:h(Se,"all?",[],function(re){return re==null&&(re=W),w["$include?"](re)})}),I(J,"$intersect?",function(w){var Se=this;return Ee(w),c(H(Se.$size(),w.$size()))?h(Se,"any?",[],function(re){return re==null&&(re=W),w["$include?"](re)}):h(w,"any?",[],function N(re){var P=N.$$s==null?this:N.$$s;return re==null&&(re=W),P["$include?"](re)},{$$s:Se})}),I(J,"$disjoint?",function(w){var Se=this;return Se["$intersect?"](w)["$!"]()}),I(J,"$to_a",function(){var w=this;return w.hash.$keys()}),xe(J,"+","|"),xe(J,"<","proper_subset?"),xe(J,"<<","add"),xe(J,"<=","subset?"),xe(J,">","proper_superset?"),xe(J,">=","superset?"),xe(J,"difference","-"),xe(J,"filter!","select!"),xe(J,"length","size"),xe(J,"map!","collect!"),xe(J,"member?","include?"),xe(J,"union","|")}("::",null,ne)};Opal.modules["corelib/dir"]=function(e){var t=e.klass,r=e.def,n=e.truthy,i=e.alias,s=e.nil,c=e.$$$;return e.add_stubs("[],pwd"),function(f,p,h){var I=t(f,p,"Dir");return function(F,H){return r(F,"$chdir",function pe(xe){var ne=pe.$$p||s,W=s;return pe.$$p=null,function(){try{return W=e.current_dir,e.current_dir=xe,e.yieldX(ne,[])}finally{e.current_dir=W}}()}),r(F,"$pwd",function(){return e.current_dir||"."}),r(F,"$home",function(){var xe=s;return n(xe=c("ENV")["$[]"]("HOME"))?xe:"."}),i(F,"getwd","pwd")}(e.get_singleton_class(I))}("::",null)};Opal.modules["corelib/file"]=function(e){var t=e.truthy,r=e.klass,n=e.const_set,i=e.Opal,s=e.regexp,c=e.rb_plus,f=e.def,p=e.Kernel,h=e.eqeq,I=e.rb_lt,F=e.rb_minus,H=e.range,pe=e.send,xe=e.slice,ne=e.alias,W=[],X=e.nil,ge=e.$$$;return e.add_stubs("respond_to?,to_path,coerce_to!,pwd,split,sub,+,unshift,join,home,raise,start_with?,absolute_path,==,<,dirname,-,basename,empty?,rindex,[],length,nil?,gsub,find,=~,map,each_with_index,flatten,reject,to_proc,end_with?,expand_path,exist?"),function(se,me,J){var be=r(se,me,"File"),fe=[be].concat(J),Ae=X;return n(fe[0],"Separator",n(fe[0],"SEPARATOR","/")),n(fe[0],"ALT_SEPARATOR",X),n(fe[0],"PATH_SEPARATOR",":"),n(fe[0],"FNM_SYSCASE",0),Ae=/^[a-zA-Z]:(?:\\|\/)/,function(O,Ee){var le=[O].concat(Ee),w=e.$r(le);f(O,"$absolute_path",function(P,Me){var ce=X,M=X,x=X,$=X,l=X,u=X,d=X,_=X,S=X,A=X;Me==null&&(Me=X),ce=w("SEPARATOR"),M=N(),x=[],P=t(P["$respond_to?"]("to_path"))?P.$to_path():P,P=i["$coerce_to!"](P,ge("String"),"to_str"),Me=t($=Me)?$:ge("Dir").$pwd(),l=P.substr(0,ce.length)===ce||Ae.test(P),u=Me.substr(0,ce.length)===ce||Ae.test(Me),t(l)?(d=P.$split(s(["[",M,"]"])),_=Ae.test(P)?"":P.$sub(s(["^([",M,"]+).*$"]),"\\1"),S=!0):(d=c(Me.$split(s(["[",M,"]"])),P.$split(s(["[",M,"]"]))),_=Ae.test(Me)?"":Me.$sub(s(["^([",M,"]+).*$"]),"\\1"),S=u);for(var Q,De=0,rt=d.length;De<rt;De++)Q=d[De],!(Q===X||Q===""&&(x.length===0||S)||Q==="."&&(x.length===0||S))&&(Q===".."?x.pop():x.push(Q));return!S&&d[0]!=="."&&x.$unshift("."),A=x.$join(ce),t(S)&&(A=c(_,A)),A},-2),f(O,"$expand_path",function(P,Me){var ce=this,M=X,x=X,$=X,l=X,u=X;return Me==null&&(Me=X),M=w("SEPARATOR"),x=N(),t(P[0]==="~"||Me&&Me[0]==="~")&&($=w("Dir").$home(),t($)||p.$raise(ge("ArgumentError"),"couldn't find HOME environment -- expanding `~'"),l=Ae.test($)?"":$.$sub(s(["^([",x,"]+).*$"]),"\\1"),t($["$start_with?"](l))||p.$raise(ge("ArgumentError"),"non-absolute home"),$=c($,M),u=s(["^\\~(?:",M,"|$)"]),P=P.$sub(u,$),t(Me)&&(Me=Me.$sub(u,$))),ce.$absolute_path(P,Me)},-2);function Se(re){return t(re["$respond_to?"]("to_path"))&&(re=re.$to_path()),re=i["$coerce_to!"](re,ge("String"),"to_str"),re}function N(){return w("ALT_SEPARATOR")===X?e.escape_regexp(w("SEPARATOR")):e.escape_regexp(c(w("SEPARATOR"),w("ALT_SEPARATOR")))}return f(O,"$dirname",function(P,Me){var ce=this,M=X;if(Me==null&&(Me=1),h(Me,0))return P;t(I(Me,0))&&p.$raise(ge("ArgumentError"),"level can't be negative"),M=N(),P=Se(P);var x=P.match(new RegExp("^["+M+"]")),$;return P=P.replace(new RegExp("["+M+"]+$"),""),P=P.replace(new RegExp("[^"+M+"]+$"),""),P=P.replace(new RegExp("["+M+"]+$"),""),P===""?$=x?"/":".":$=P,Me==1?$:ce.$dirname($,F(Me,1))},-2),f(O,"$basename",function(P,Me){var ce=X;return Me==null&&(Me=X),ce=N(),P=Se(P),P.length==0||(Me!==X?Me=i["$coerce_to!"](Me,ge("String"),"to_str"):Me=null,P=P.replace(new RegExp("(.)["+ce+"]*$"),"$1"),P=P.replace(new RegExp("^(?:.*["+ce+"])?([^"+ce+"]+)$"),"$1"),Me===".*"?P=P.replace(/\.[^\.]+$/,""):Me!==null&&(Me=e.escape_regexp(Me),P=P.replace(new RegExp(""+Me+"$"),""))),P},-2),f(O,"$extname",function(P){var Me=this,ce=X,M=X;return P=Se(P),ce=Me.$basename(P),t(ce["$empty?"]())||(M=ce["$[]"](H(1,-1,!1)).$rindex("."),t(M["$nil?"]())||h(c(M,1),F(ce.$length(),1)))?"":ce["$[]"](e.Range.$new(c(M,1),-1,!1))}),f(O,"$exist?",function(P){return e.modules[P]!=null}),f(O,"$directory?",function(P){var Me=X;Me=[];for(var ce in e.modules)Me.push(ce);return P=P.$gsub(s(["(^.",w("SEPARATOR"),"+|",w("SEPARATOR"),"+$)"])),pe(Me,"find",[],function(x){return x==null&&(x=X),x["$=~"](s(["^",P]))})}),f(O,"$join",function(P){var Me,ce,M=X;return Me=xe(arguments),ce=Me,t(ce["$empty?"]())?"":(M="",ce=pe(ce.$flatten().$each_with_index(),"map",[],function($,l){return $==null&&($=X),l==null&&(l=X),h(l,0)&&t($["$empty?"]())||h(ce.$length(),c(l,1))&&t($["$empty?"]())?w("SEPARATOR"):$}),ce=pe(ce,"reject",[],"empty?".$to_proc()),pe(ce,"each_with_index",[],function($,l){var u=X;return $==null&&($=X),l==null&&(l=X),u=ce["$[]"](c(l,1)),t(u["$nil?"]())?M=""+M+$:(t($["$end_with?"](w("SEPARATOR")))&&t(u["$start_with?"](w("SEPARATOR")))&&($=$.$sub(s([w("SEPARATOR"),"+$"]),"")),M=t($["$end_with?"](w("SEPARATOR")))||t(u["$start_with?"](w("SEPARATOR")))?""+M+$:""+M+$+w("SEPARATOR"))}),M)},-1),f(O,"$split",function(P){return P.$split(w("SEPARATOR"))}),ne(O,"realpath","expand_path"),ne(O,"exists?","exist?")}(e.get_singleton_class(be),fe)}("::",ge("IO"),W)};Opal.modules["corelib/process/base"]=function(e){var t=e.klass,r=e.slice,n=e.defs,i=e.return_val,s=e.nil;return function(c,f){var p=t(c,f,"Signal");return n(p,"$trap",function(I){return r(arguments),s},-1)}("::",null),function(c,f){var p=t(c,f,"GC");return n(p,"$start",i(s))}("::",null)};Opal.modules["corelib/process"]=function(e){var t=e.module,r=e.defs,n=e.truthy,i=e.return_val,s=e.Kernel,c=e.nil,f=e.$$$;return e.add_stubs("const_set,size,<<,__register_clock__,to_f,now,new,[],raise"),function(p){var h=t(p,"Process"),I=c;if(h.__clocks__=[],r(h,"$__register_clock__",function(pe,xe){var ne=this;return ne.__clocks__==null&&(ne.__clocks__=c),ne.$const_set(pe,ne.__clocks__.$size()),ne.__clocks__["$<<"](xe)}),h.$__register_clock__("CLOCK_REALTIME",function(){return Date.now()}),I=!1,e.global.performance)I=function(){return performance.now()};else if(e.global.process&&process.hrtime){var F=process.hrtime();I=function(){var H=process.hrtime(F),pe=H[1]/1e3|0;return H[0]*1e3+pe/1e3}}return n(I)&&h.$__register_clock__("CLOCK_MONOTONIC",I),r(h,"$pid",i(0)),r(h,"$times",function(){var pe=c;return pe=f("Time").$now().$to_f(),f(f("Benchmark"),"Tms").$new(pe,pe,pe,pe,pe)}),r(h,"$clock_gettime",function(pe,xe){var ne=this,W=c;ne.__clocks__==null&&(ne.__clocks__=c),xe==null&&(xe="float_second"),n(W=ne.__clocks__["$[]"](pe))||s.$raise(f(f("Errno"),"EINVAL"),"clock_gettime("+pe+") "+ne.__clocks__["$[]"](pe));var X=W();switch(xe){case"float_second":return X/1e3;case"float_millisecond":return X/1;case"float_microsecond":return X*1e3;case"second":return X/1e3|0;case"millisecond":return X/1|0;case"microsecond":return X*1e3|0;case"nanosecond":return X*1e6|0;default:s.$raise(f("ArgumentError"),"unexpected unit: "+xe)}},-2)}("::")};Opal.modules["corelib/random/formatter"]=function(e){var t=e.klass,r=e.module,n=e.def,i=e.range,s=e.send,c=e.rb_divide,f=e.Kernel,p=e.Opal,h=[],I=e.nil,F=e.$$$;return e.add_stubs("_verify_count,bytes,encode,strict_encode64,random_bytes,urlsafe_encode64,split,hex,[]=,[],map,to_proc,join,times,<<,|,ord,/,abs,random_float,raise,coerce_to!,flatten,new,random_number,length,include,extend"),function(H,pe,xe){var ne=t(H,pe,"Random"),W=[ne].concat(xe);return function(X,ge){var se=r(X,"Formatter"),me=[se].concat(ge),J=e.$r(me);return n(se,"$hex",function(fe){var Ae=this;fe==null&&(fe=I),fe=F("Random").$_verify_count(fe);for(var O=Ae.$bytes(fe),Ee="",le=0;le<fe;le++)Ee+=O.charCodeAt(le).toString(16).padStart(2,"0");return Ee.$encode("US-ASCII")},-1),n(se,"$random_bytes",function(fe){var Ae=this;return fe==null&&(fe=I),Ae.$bytes(fe)},-1),n(se,"$base64",function(fe){var Ae=this;return fe==null&&(fe=I),F("Base64").$strict_encode64(Ae.$random_bytes(fe)).$encode("US-ASCII")},-1),n(se,"$urlsafe_base64",function(fe,Ae){var O=this;return fe==null&&(fe=I),Ae==null&&(Ae=!1),F("Base64").$urlsafe_encode64(O.$random_bytes(fe),Ae).$encode("US-ASCII")},-1),n(se,"$uuid",function(){var fe=this,Ae=I;return Ae=fe.$hex(16).$split(""),Ae["$[]="](12,"4"),Ae["$[]="](16,(parseInt(Ae["$[]"](16),16)&3|8).toString(16)),Ae=[Ae["$[]"](i(0,8,!0)),Ae["$[]"](i(8,12,!0)),Ae["$[]"](i(12,16,!0)),Ae["$[]"](i(16,20,!0)),Ae["$[]"](i(20,32,!0))],Ae=s(Ae,"map",[],"join".$to_proc()),Ae.$join("-")}),n(se,"$random_float",function(){var fe=this,Ae=I,O=I;return Ae=fe.$bytes(4),O=0,s(4,"times",[],function(le){return le==null&&(le=I),O=O["$<<"](8),O=O["$|"](Ae["$[]"](le).$ord())}),c(O.$abs(),2147483647)}),n(se,"$random_number",function(fe){var Ae=this;function O(){return Ae.$random_float()}function Ee(w){return Math.floor(O()*w)}function le(){var w=fe.begin,Se=fe.end;if(w===I||Se===I)return I;var N=Se-w;return N<0?I:N===0?w:(Se%1===0&&w%1===0&&!fe.excl&&N++,Ee(N)+w)}return fe==null?O():fe.$$is_range?le():fe.$$is_number?(fe<=0&&f.$raise(F("ArgumentError"),"invalid argument - "+fe),fe%1===0?Ee(fe):O()*fe):(fe=p["$coerce_to!"](fe,F("Integer"),"to_int"),fe<=0&&f.$raise(F("ArgumentError"),"invalid argument - "+fe),Ee(fe))},-1),n(se,"$alphanumeric",function(fe){var Ae=this,O=I;return fe==null&&(fe=I),fe=J("Random").$_verify_count(fe),O=s([i("0","9",!1),i("a","z",!1),i("A","Z",!1)],"map",[],"to_a".$to_proc()).$flatten(),s(F("Array"),"new",[fe],function Ee(le){var w=Ee.$$s==null?this:Ee.$$s;return O["$[]"](w.$random_number(O.$length()))},{$$s:Ae}).$join()},-1)}(ne,W),ne.$include(F(F("Random"),"Formatter")),ne.$extend(F(F("Random"),"Formatter"))}("::",null,h)};Opal.modules["corelib/random/mersenne_twister"]=function(e){var t=e.klass,r=e.const_set,n=e.send,i=e.nil,s=e.$$$,c=i;return e.add_stubs("generator="),c=function(){var f=624,p=397,h=2567483615,I=2147483648,F=2147483647,H=function(me,J){return me&I|J&F},pe=function(me,J){return H(me,J)>>>1^(J&1?h:0)};function xe(me){var J={left:0,next:f,state:new Array(f)};return ne(J,me),J}function ne(me,J){var be;for(me.state[0]=J>>>0,be=1;be<f;be++)me.state[be]=1812433253*(me.state[be-1]^me.state[be-1]>>30>>>0)+be,me.state[be]&=4294967295;me.left=1,me.next=f}function W(me){var J=0,be=me.state,fe;for(me.left=f,me.next=0,fe=f-p+1;--fe;J++)be[J]=be[J+p]^pe(be[J+0],be[J+1]);for(fe=p;--fe;J++)be[J]=be[J+(p-f)]^pe(be[J+0],be[J+1]);be[J]=be[J+(p-f)]^pe(be[J+0],be[0])}function X(me){var J;return--me.left<=0&&W(me),J=me.state[me.next++],J^=J>>>11,J^=J<<7&2636928640,J^=J<<15&4022730752,J^=J>>>18,J>>>0}function ge(me,J){return me>>>=5,J>>>=6,(me*67108864+J)*(1/9007199254740992)}function se(me){var J=X(me),be=X(me);return ge(J,be)}return{genrand_real:se,init:xe}}(),function(f,p){var h=t(f,p,"Random"),I,F=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;return r(h,"MERSENNE_TWISTER_GENERATOR",{new_seed:function(){return Math.round(Math.random()*F)},reseed:function(H){return c.init(H)},rand:function(H){return c.genrand_real(H)}}),I=[s(h,"MERSENNE_TWISTER_GENERATOR")],n(h,"generator=",I),I[I.length-1]}("::",null)};Opal.modules["corelib/random"]=function(e){var t=e.truthy,r=e.klass,n=e.Kernel,i=e.defs,s=e.Opal,c=e.def,f=e.eqeqeq,p=e.send,h=e.top,I=e.nil,F=e.$$$;return e.add_stubs("require,attr_reader,to_int,raise,new_seed,coerce_to!,reseed,rand,seed,bytes,===,==,state,_verify_count,encode,join,new,chr,random_number,random_float,const_defined?,const_set"),h.$require("corelib/random/formatter"),function(H,pe){var xe=r(H,pe,"Random");return xe.$attr_reader("seed","state"),i(xe,"$_verify_count",function(W){return t(W)||(W=16),typeof W!="number"&&(W=W.$to_int()),W<0&&n.$raise(F("ArgumentError"),"negative string size (or size too big)"),W=Math.floor(W),W}),c(xe,"$initialize",function(W){var X=this;return W==null&&(W=F("Random").$new_seed()),W=s["$coerce_to!"](W,F("Integer"),"to_int"),X.state=W,X.$reseed(W)},-1),c(xe,"$reseed",function(W){var X=this;return X.seed=W,X.$rng=e.$$rand.reseed(W)}),i(xe,"$new_seed",function(){return e.$$rand.new_seed()}),i(xe,"$rand",function(W){var X=this;return F(X,"DEFAULT").$rand(W)},-1),i(xe,"$srand",function(W){var X=this,ge=I;return W==null&&(W=F("Random").$new_seed()),W=s["$coerce_to!"](W,F("Integer"),"to_int"),ge=F(X,"DEFAULT").$seed(),F(X,"DEFAULT").$reseed(W),ge},-1),i(xe,"$urandom",function(W){return F("SecureRandom").$bytes(W)}),c(xe,"$==",function(W){var X=this,ge=I;return f(F("Random"),W)?t(ge=X.$seed()["$=="](W.$seed()))?X.$state()["$=="](W.$state()):ge:!1}),c(xe,"$bytes",function(W){var X=this;return W=F("Random").$_verify_count(W),p(F("Array"),"new",[W],function ge(){var se=ge.$$s==null?this:ge.$$s;return se.$rand(255).$chr()},{$$s:X}).$join().$encode("ASCII-8BIT")}),i(xe,"$bytes",function(W){var X=this;return F(X,"DEFAULT").$bytes(W)}),c(xe,"$rand",function(W){var X=this;return X.$random_number(W)},-1),c(xe,"$random_float",function(){var W=this;return W.state++,e.$$rand.rand(W.$rng)}),i(xe,"$random_float",function(){var W=this;return F(W,"DEFAULT").$random_float()}),i(xe,"$generator=",function(W){var X=this;return e.$$rand=W,t(X["$const_defined?"]("DEFAULT"))?F(X,"DEFAULT").$reseed():X.$const_set("DEFAULT",X.$new(X.$new_seed()))})}("::",null),h.$require("corelib/random/mersenne_twister")};Opal.modules["corelib/unsupported"]=function(e){var t=e.Kernel,r=e.klass,n=e.send,i=e.slice,s=e.module,c=e.def,f=e.return_val,p=e.alias,h=e.defs,I=e.top,F=[],H=e.nil,pe=e.$$$;e.add_stubs("raise,warn,each,define_method,%,public,private_method_defined?,private_class_method,instance_method,instance_methods,method_defined?,private_methods");var xe={};function ne(X){switch(e.config.unsupported_features_severity){case"error":t.$raise(pe("NotImplementedError"),X);break;case"warning":W(X);break}}function W(X){xe[X]||(xe[X]=!0,I.$warn(X))}return function(X,ge){var se=r(X,ge,"String"),me="String#%s not supported. Mutable String methods are not supported in Opal.";return n(["<<","capitalize!","chomp!","chop!","downcase!","gsub!","lstrip!","next!","reverse!","slice!","squeeze!","strip!","sub!","succ!","swapcase!","tr!","tr_s!","upcase!","prepend","[]=","clear","encode!","unicode_normalize!"],"each",[],function J(be){var fe=J.$$s==null?this:J.$$s;return be==null&&(be=H),n(fe,"define_method",[be],function(O){return i(arguments),t.$raise(pe("NotImplementedError"),me["$%"](be))},-1)},{$$s:se})}("::",null),function(X){var ge=s(X,"Kernel"),se="Object tainting is not supported by Opal";return c(ge,"$taint",function(){var J=this;return ne(se),J}),c(ge,"$untaint",function(){var J=this;return ne(se),J}),c(ge,"$tainted?",function(){return ne(se),!1})}("::"),function(X,ge){var se=r(X,ge,"Module");return c(se,"$public",function(J){var be,fe,Ae=this;return be=i(arguments),fe=be,fe.length===0?(Ae.$$module_function=!1,H):fe.length===1?fe[0]:fe},-1),c(se,"$private_class_method",function(J){var be,fe;return be=i(arguments),fe=be,fe.length===1?fe[0]:fe},-1),c(se,"$private_method_defined?",f(!1)),c(se,"$private_constant",function(J){return i(arguments),H},-1),p(se,"nesting","public"),p(se,"private","public"),p(se,"protected","public"),p(se,"protected_method_defined?","private_method_defined?"),p(se,"public_class_method","private_class_method"),p(se,"public_instance_method","instance_method"),p(se,"public_instance_methods","instance_methods"),p(se,"public_method_defined?","method_defined?")}("::",null),function(X){var ge=s(X,"Kernel");return c(ge,"$private_methods",function(me){return i(arguments),[]},-1),p(ge,"protected_methods","private_methods"),p(ge,"private_instance_methods","private_methods"),p(ge,"protected_instance_methods","private_methods")}("::"),function(X,ge){var se=s(X,"Kernel"),me=[se].concat(ge),J=e.$r(me);return c(se,"$eval",function(fe){return i(arguments),t.$raise(pe("NotImplementedError"),"To use Kernel#eval, you must first require 'opal-parser'. "+("See https://github.com/opal/opal/blob/"+J("RUBY_ENGINE_VERSION")+"/docs/opal_parser.md for details."))},-1)}("::",F),h(I,"$public",function(ge){var se,me;return se=i(arguments),me=se,me.length===1?me[0]:me},-1),h(I,"$private",function(ge){var se,me;return se=i(arguments),me=se,me.length===1?me[0]:me},-1)};Opal.queue(function(e){var t=e.Object;return e.nil,e.add_stubs("require,autoload"),t.$require("opal/base"),t.$require("opal/mini"),t.$require("corelib/kernel/format"),t.$require("corelib/string/encoding"),t.$autoload("Math","corelib/math"),t.$require("corelib/complex/base"),t.$autoload("Complex","corelib/complex"),t.$require("corelib/rational/base"),t.$autoload("Rational","corelib/rational"),t.$require("corelib/time"),t.$autoload("Struct","corelib/struct"),t.$autoload("Set","corelib/set"),t.$autoload("Dir","corelib/dir"),t.$autoload("File","corelib/file"),t.$require("corelib/process/base"),t.$autoload("Process","corelib/process"),t.$autoload("Random","corelib/random"),t.$require("corelib/unsupported")});function X5(e){Opal.modules["asciidoctor/js/opal_ext/browser/file"]=function(a){var ae=a.klass,te=a.defs,V=[];return a.nil,a.add_stubs("new"),function(_e,v,Y){var Ue=ae(_e,v,"File"),G=[Ue].concat(Y),Ie=a.$r(G);return te(Ue,"$read",function(Oe){var ze="",Ge=-1;try{var qe=new XMLHttpRequest;qe.open("GET",Oe,!1),qe.addEventListener("load",function(){Ge=this.status,(Ge===0||Ge===200)&&(ze=this.responseText)}),qe.overrideMimeType("text/plain"),qe.send()}catch(je){throw Ie("IOError").$new("Error reading file or directory: "+Oe+"; reason: "+je.message)}if(Ge===404||Ge===0&&!ze)throw Ie("IOError").$new("No such file or directory: "+Oe);return ze})}(V[0],null,V)},Opal.modules["asciidoctor/js/opal_ext/browser"]=function(a){var ae=a.const_set,te=a.top,V=[];a.nil,a.add_stubs("require");var _e,v,Y,Ue;return Ue=Ue||"xmlhttprequest",_e=_e||"browser",v=v||"",Y=Y||"",ae(V[0],"JAVASCRIPT_IO_MODULE",Ue),ae(V[0],"JAVASCRIPT_PLATFORM",_e),ae(V[0],"JAVASCRIPT_ENGINE",v),ae(V[0],"JAVASCRIPT_FRAMEWORK",Y),te.$require("asciidoctor/js/opal_ext/browser/file")},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/abstract_node"]=function(a){var ae=a.module,te=a.klass,V=a.hash2,_e=a.truthy,v=a.def,Y=[],Ue=a.nil,G=a.$$$;return a.add_stubs("web_path,path_resolver,uriish?,[],attr?,start_with?,descends_from?,base_dir,join,prepare_source_string,read,fetch,warn,logger,normalize_system_path,read_asset"),function(Ie,C){var Oe=ae(Ie,"Asciidoctor"),ze=[Oe].concat(C);return function(Ge,qe,je){var dt=te(Ge,qe,"AbstractNode"),Ye=[dt].concat(je),st=a.$r(Ye),We=dt.$$prototype;return We.document=Ue,v(dt,"$read_contents",function($t,z){var et=this,E=Ue,tt=Ue,lt=Ue;if(z==null&&(z=V([],{})),E=et.document,_e(st("Helpers")["$uriish?"]($t))||_e(tt=z["$[]"]("start"))&&_e(st("Helpers")["$uriish?"](tt))&&_e($t=E.$path_resolver().$web_path($t,tt)))if(_e(E.$path_resolver()["$descends_from?"]($t,E.$base_dir()))||_e($t["$start_with?"]("chrome://"))||_e(E["$attr?"]("allow-uri-read")))try{return _e(z["$[]"]("normalize"))?st("Helpers").$prepare_source_string(G("File").$read($t)).$join(st("LF")):G("File").$read($t)}catch(K){if(a.rescue(K,[st("StandardError")]))try{return _e(z.$fetch("warn_on_failure",!0))&&et.$logger().$warn("could not retrieve contents of "+(_e(lt=z["$[]"]("label"))?lt:"asset")+" at URI: "+$t),Ue}finally{a.pop_exception()}else throw K}else return _e(z.$fetch("warn_on_failure",!0))&&et.$logger().$warn("cannot retrieve contents of "+(_e(lt=z["$[]"]("label"))?lt:"asset")+" at URI: "+$t+" (allow-uri-read attribute not enabled)"),Ue;else return $t=et.$normalize_system_path($t,z["$[]"]("start"),Ue,V(["target_name"],{target_name:_e(lt=z["$[]"]("label"))?lt:"asset"})),et.$read_asset($t,V(["normalize","warn_on_failure","label"],{normalize:z["$[]"]("normalize"),warn_on_failure:z.$fetch("warn_on_failure",!0),label:z["$[]"]("label")}))},-2),v(dt,"$generate_data_uri_from_uri",function($t,z){var et=this,E="",tt="",lt=-1;try{var K=new XMLHttpRequest;K.open("GET",$t,!1),K.overrideMimeType("text/plain; charset=x-user-defined"),K.addEventListener("load",function(){if(lt=this.status,lt===0||lt===200){for(var D="",He=this.responseText,we=0,Ne=He.length;we<Ne;++we){var Te=He.charCodeAt(we),ue=Te&255;D+=String.fromCharCode(ue)}tt=btoa(D),E=this.getResponseHeader("content-type")}}),K.send(null),E||($t.endsWith(".jpeg")||$t.endsWith(".jpg")||$t.endsWith(".jpe")?E="image/jpg":$t.endsWith(".png")?E="image/png":$t.endsWith(".svg")?E="image/svg+xml":$t.endsWith(".bmp")?E="image/bmp":($t.endsWith(".tif")||$t.endsWith(".tiff"))&&(E="image/tiff"))}catch{lt=0}return lt===404||lt===0&&(!tt||!E)?(et.$logger().$warn("could not retrieve image data from URI: "+$t),$t):"data:"+E+";base64,"+tt},-2)}(ze[0],null,ze)}(Y[0],Y)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/open_uri"]=function(a){var ae=a.module,te=a.slice,V=a.send,_e=a.to_a,v=a.defs,Y=[],Ue=a.nil;return a.add_stubs("new,path"),function(G,Ie){var C=ae(G,"OpenURI"),Oe=[C].concat(Ie),ze=a.$r(Oe);return v(ze("OpenURI"),"$open_uri",function Ge(qe,je){var dt,Ye,st=Ge.$$p||Ue,We=this,Je=Ue;return Ge.$$p=null,dt=te(arguments,1),Ye=dt,Je=V(ze("File"),"new",[We.$path()].concat(_e(Ye))),st!==Ue?a.yield1(st,Je):Je},-2)}(Y[0],Y)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/path_resolver"]=function(a){var ae=a.module,te=a.klass,V=a.truthy,_e=a.def,v=[],Y=a.nil;return a.add_stubs("absolute_path?,start_with?"),function(Ue,G){var Ie=ae(Ue,"Asciidoctor"),C=[Ie].concat(G);return function(Oe,ze){var Ge=te(Oe,ze,"PathResolver");return _e(Ge,"$root?",function(je){var dt=this,Ye=Y;return V(Ye=dt["$absolute_path?"](je))?Ye:je["$start_with?"]("file://","http://","https://","chrome://")})}(C[0],null)}(v[0],v)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/reader"]=function(a){var ae=a.module,te=a.klass,V=a.truthy,_e=a.eqeq,v=a.not,Y=a.def,Ue=[],G=a.nil;return a.add_stubs("posixify,new,base_dir,start_with?,uriish?,key?,attributes,descends_from?,replace_next_line,absolute_path?,==,empty?,!,slice,length"),function(Ie,C){var Oe=ae(Ie,"Asciidoctor"),ze=[Oe].concat(C),Ge=a.$r(ze);return function(qe,je,dt){var Ye=te(qe,je,"PreprocessorReader"),st=[Ye].concat(dt),We=a.$r(st),Je=Ye.$$prototype;return Je.path_resolver=Je.document=Je.include_stack=Je.dir=G,Y(Ye,"$resolve_include_path",function(z,et,E){var tt,lt=this,K=G,D=G,He=G,we=G,Ne=G,Te=G,ue=G,ye=G;if(K=(lt.path_resolver=V(D=lt.path_resolver)?D:We("PathResolver").$new("\\")).$posixify(z),tt=["file",lt.document.$base_dir()],tt[0],He=tt[1],V(K["$start_with?"]("file://")))we=Ne=K;else if(V(We("Helpers")["$uriish?"](K))){if(!(V(lt.path_resolver["$descends_from?"](K,He))||V(lt.document.$attributes()["$key?"]("allow-uri-read"))))return lt.$replace_next_line("link:"+z+"["+et+"]");we=Ne=K}else if(V(lt.path_resolver["$absolute_path?"](K)))we=Ne="file://"+(V(K["$start_with?"]("/"))?"":"/")+K;else if(_e(Te=V(ue=lt.include_stack["$empty?"]())?He:lt.dir,"."))we=Ne=K;else if(V(Te["$start_with?"]("file://"))||v(We("Helpers")["$uriish?"](Te)))we=""+Te+"/"+K,V(ue)?Ne=K:_e(He,".")||v(ye=lt.path_resolver["$descends_from?"](we,He))?Ne=we:Ne=we.$slice(ye,we.$length());else if(V(ue))we=""+Te+"/"+(Ne=K);else if(V(ye=lt.path_resolver["$descends_from?"](Te,He))||V(lt.document.$attributes()["$key?"]("allow-uri-read")))we=""+Te+"/"+K,Ne=V(ye)?we.$slice(ye,we.$length()):K;else return lt.$replace_next_line("link:"+z+"["+et+"]");return[we,"file",Ne]})}(ze[0],Ge("Reader"),ze)}(Ue[0],Ue)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser"]=function(a){var ae=a.eqeq,te=a.top,V=[],_e=a.$r(V),v=a.nil;return a.add_stubs("==,require"),ae(_e("JAVASCRIPT_IO_MODULE"),"xmlhttprequest")?(te.$require("asciidoctor/js/asciidoctor_ext/browser/abstract_node"),te.$require("asciidoctor/js/asciidoctor_ext/browser/open_uri"),te.$require("asciidoctor/js/asciidoctor_ext/browser/path_resolver"),te.$require("asciidoctor/js/asciidoctor_ext/browser/reader")):v},Opal.modules.set=Opal.return_val(Opal.nil),Opal.modules["asciidoctor/js/opal_ext/kernel"]=function(a){var ae=a.module,te=a.slice,V=a.send,_e=a.to_a,v=a.def,Y=a.return_val,Ue=[],G=a.nil;return a.add_stubs("new"),function(Ie,C){var Oe=ae(Ie,"Kernel"),ze=[Oe].concat(C),Ge=a.$r(ze);return v(Oe,"$open",function qe(je,dt){var Ye,st,We=qe.$$p||G,Je=G;return qe.$$p=null,Ye=te(arguments,1),st=Ye,Je=V(Ge("File"),"new",[je].concat(_e(st))),We!==G?a.yield1(We,Je):Je},-2),v(Oe,"$__dir__",Y(""))}(Ue[0],Ue)},Opal.modules["asciidoctor/js/opal_ext/file"]=function(a){var ae=a.klass,te=a.def,V=a.truthy,_e=a.gvars,v=a.return_val,Y=a.defs,Ue=[],G=a.nil;return a.add_stubs("attr_reader,delete,gsub,read,size,to_enum,chomp,each_line,readlines,split"),function(Ie,C,Oe){var ze=ae(Ie,C,"File"),Ge=[ze].concat(Oe),qe=a.$r(Ge),je=ze.$$prototype;return je.eof=je.path=G,ze.$attr_reader("eof"),ze.$attr_reader("lineno"),ze.$attr_reader("path"),te(ze,"$initialize",function(Ye,st){var We=this,Je=G;return st==null&&(st="r"),We.path=Ye,We.contents=G,We.eof=!1,We.lineno=0,st=st.$delete("b"),Je=/:(.*)/,st=st.$gsub(Je,""),We.flags=st},-2),te(ze,"$read",function(){var Ye=this,st=G;return V(Ye.eof)?"":(st=qe("File").$read(Ye.path),Ye.eof=!0,Ye.lineno=st.$size(),st)}),te(ze,"$each_line",function dt(Ye){var st=dt.$$p||G,We=this,Je=G;if(_e["/"]==null&&(_e["/"]=G),dt.$$p=null,Ye==null&&(Ye=_e["/"]),V(We.eof))return st!==G?We:[].$to_enum();if(st!==G){Je=qe("File").$read(We.path),We.eof=!1,We.lineno=0;for(var $t=Je.$chomp(),z=Je.length!=$t.length,et=$t.split(Ye),E=0,tt=et.length;E<tt;E++)We.lineno+=1,E<tt-1||z?a.yield1(st,et[E]+Ye):a.yield1(st,et[E]);return We.eof=!0,We}else return We.$read().$each_line()},-1),te(ze,"$readlines",function(){var Ye=this;return qe("File").$readlines(Ye.path)}),function(dt,Ye){var st=[dt].concat(Ye),We=a.$r(st);return te(dt,"$readlines",function($t,z){var et=G;return _e["/"]==null&&(_e["/"]=G),z==null&&(z=_e["/"]),et=We("File").$read($t),et.$split(z)},-2),te(dt,"$file?",v(!0)),te(dt,"$readable?",v(!0)),te(dt,"$read",v(""))}(a.get_singleton_class(ze),Ge)}(Ue[0],null,Ue),function(Ie,C,Oe){var ze=ae(Ie,C,"IO"),Ge=[ze].concat(Oe),qe=a.$r(Ge);return Y(ze,"$read",function(dt){return qe("File").$read(dt)})}(Ue[0],null,Ue)},Opal.modules["asciidoctor/js/opal_ext/match_data"]=function(a){var ae=a.klass,te=a.send,V=a.def,_e=[],v=a.nil;return a.add_stubs("[]="),function(Y,Ue){var G=ae(Y,Ue,"MatchData"),Ie=G.$$prototype;return Ie.matches=v,V(G,"$[]=",function(Oe,ze){var Ge,qe=this;return Ge=[Oe,ze],te(qe.matches,"[]=",Ge),Ge[Ge.length-1]})}(_e[0],null)},Opal.modules["asciidoctor/js/opal_ext/string"]=function(a){var ae=a.klass,te=a.truthy,V=a.rb_lt,_e=a.def,v=a.alias,Y=a.rb_ge,Ue=a.eqeq,G=a.rb_minus,Ie=[],C=a.nil;return a.add_stubs("method_defined?,<,length,bytes,to_s,byteslice,limit_bytesize,>=,==,-,_original_byteslice,unpack,_original_unpack"),function(Oe,ze){var Ge=ae(Oe,ze,"String");return te(Ge["$method_defined?"]("limit_bytesize"))||_e(Ge,"$limit_bytesize",function(je){var dt=this,Ye=C;return te(V(je,dt.$bytes().$length()))?(Ye=dt.$byteslice(0,je),Ye.$to_s()):dt.$to_s()}),te(Ge["$method_defined?"]("limit"))||v(Ge,"limit","limit_bytesize"),v(Ge,"_original_byteslice","byteslice"),_e(Ge,"$byteslice",function(je,dt){var Ye=this;return dt==null&&(dt=1),Ue(je,3)&&te(Y(dt,je))&&te(Ye.charCodeAt()===65279)?Ye.substr(1).$byteslice(0,G(dt,3)):Ye.$_original_byteslice(je,dt)},-2),v(Ge,"_original_unpack","unpack"),_e(Ge,"$unpack",function(je){var dt=this;if(Ue(je,"C3")){if(te(dt.charCodeAt()===65279))return[239,187,191];for(var Ye=[],st=0;st<3;st++)st<dt.length?Ye.push(dt.charCodeAt(st)):Ye.push(C);return Ye}else return dt.$_original_unpack(je)})}(Ie[0],null)},Opal.modules["asciidoctor/js/opal_ext/uri"]=function(a){var ae=a.module,te=a.defs,V=a.return_self,_e=a.def,v=[];return a.nil,a.add_stubs("extend"),function(Y,Ue){var G=ae(Y,"URI"),Ie=[G].concat(Ue),C=a.$r(Ie);return te(G,"$parse",function(ze){return ze.$extend(C("URI"))}),_e(G,"$path",V)}(v[0],v)},Opal.modules["asciidoctor/js/opal_ext/base64"]=function(a){var ae=a.module,te=a.defs,V=a.ensure_kwargs,_e=a.truthy,v=[],Y=a.nil;return a.add_stubs("delete"),function(Ue){var G=ae(Ue,"Base64"),Ie,C;return Ie=a.global.btoa||function(Oe){var ze;return Oe instanceof Buffer?ze=Oe:ze=Buffer.from(Oe.toString(),"binary"),ze.toString("base64")},C=a.global.atob||function(Oe){return Buffer.from(Oe,"base64").toString("binary")},te(G,"$decode64",function(ze){return C(ze.replace(/\r?\n/g,""))}),te(G,"$encode64",function(ze){return Ie(ze).replace(/(.{60})/g,`$1
|
|
408
|
-
`).replace(/([^\n])$/g,`$1
|
|
409
|
-
`)}),te(G,"$strict_decode64",function(ze){return C(ze)}),te(G,"$strict_encode64",function(ze){return Ie(ze)}),te(G,"$urlsafe_decode64",function(ze){return C(ze.replace(/\-/g,"+").replace(/_/g,"/"))}),te(G,"$urlsafe_encode64",function(ze,Ge){var qe,je=Y;return Ge=V(Ge),qe=Ge.$$smap.padding,qe==null&&(qe=!0),je=Ie(ze).replace(/\+/g,"-").replace(/\//g,"_"),_e(qe)||(je=je.$delete("=")),je},-2)}(v[0])},Opal.modules["asciidoctor/js/opal_ext/number"]=function(a){var ae=a.klass,te=a.truthy,V=a.rb_gt,_e=a.def,v=[],Y=a.$r(v);return a.nil,a.add_stubs("coerce_to!,>"),function(Ue,G,Ie){var C=ae(Ue,G,"Number"),Oe=[C].concat(Ie),ze=a.$r(Oe);return _e(C,"$round",function(qe){var je=this;return qe=ze("Opal")["$coerce_to!"](qe,ze("Integer"),"to_int"),te(V(qe,0))?Number(je.toFixed(qe)):Math.round(je)},-1)}(v[0],Y("Numeric"),v)},Opal.modules["asciidoctor/js/opal_ext"]=function(a){var ae=a.top;a.nil,a.add_stubs("require"),ae.$require("asciidoctor/js/opal_ext/kernel"),ae.$require("asciidoctor/js/opal_ext/file"),ae.$require("asciidoctor/js/opal_ext/match_data"),ae.$require("asciidoctor/js/opal_ext/string"),ae.$require("asciidoctor/js/opal_ext/uri"),ae.$require("asciidoctor/js/opal_ext/base64"),ae.$require("asciidoctor/js/opal_ext/number"),a.config.unsupported_features_severity="ignore",ae.$require("asciidoctor/js/opal_ext/browser")},Opal.modules["asciidoctor/js/rx"]=function(a){var ae=a.module,te=a.const_set,V=a.send,_e=a.gvars,v=a.truthy,Y=a.defs,Ue=a.rb_plus,G=[],Ie=a.nil;return a.add_stubs("gsub,+,unpack_hex_range"),function(C,Oe){var ze=ae(C,"Asciidoctor"),Ge=[ze].concat(Oe),qe=a.$r(Ge);return te(Ge[0],"HEX_RANGE_RX",/([A-F0-9]{4})(?:-([A-F0-9]{4}))?/),Y(ze,"$unpack_hex_range",function(dt){return V(dt,"gsub",[qe("HEX_RANGE_RX")],function(){var st,We=Ie;return"\\u"+((st=_e["~"])===Ie?Ie:st["$[]"](1))+(v(We=(st=_e["~"])===Ie?Ie:st["$[]"](2))?"-\\u"+((st=_e["~"])===Ie?Ie:st["$[]"](2)):We)})}),te(Ge[0],"P_L",Ue("A-Za-z",ze.$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"))),te(Ge[0],"P_Nl",ze.$unpack_hex_range("16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF")),te(Ge[0],"P_Nd",Ue("0-9",ze.$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"))),te(Ge[0],"P_Pc",ze.$unpack_hex_range("005F203F20402054FE33FE34FE4D-FE4FFF3F")),te(Ge[0],"CC_ALPHA",""+qe("P_L")+qe("P_Nl")),te(Ge[0],"CG_ALPHA","["+qe("CC_ALPHA")+"]"),te(Ge[0],"CC_ALNUM",""+qe("CC_ALPHA")+qe("P_Nd")),te(Ge[0],"CG_ALNUM","["+qe("CC_ALNUM")+"]"),te(Ge[0],"CC_WORD",""+qe("CC_ALNUM")+qe("P_Pc")),te(Ge[0],"CG_WORD","["+qe("CC_WORD")+"]"),te(Ge[0],"CG_BLANK","[ \\t]"),te(Ge[0],"CC_EOL","(?=\\n|$)"),te(Ge[0],"CG_GRAPH","[^\\s\\x00-\\x1F\\x7F]"),te(Ge[0],"CC_ALL","[\\s\\S]"),te(Ge[0],"CC_ANY","[^\\n]")}(G[0],G)},Opal.modules.strscan=function(a){var ae=a.klass,te=a.def,V=a.truthy,_e=a.eqeqeq,v=a.Opal,Y=a.return_ivar,Ue=a.send,G=a.alias,Ie=[],C=a.nil;return a.add_stubs("attr_reader,anchor,empty?,===,to_s,coerce_to!,scan_until,length,size,rest,pos=,beginning_of_line?,get_byte,private"),function(Oe,ze,Ge){var qe=ae(Oe,ze,"StringScanner"),je=[qe].concat(Ge),dt=a.$r(je),Ye=qe.$$prototype;return Ye.pos=Ye.string=Ye.working=Ye.matched=Ye.prev_pos=Ye.match=C,qe.$attr_reader("pos","matched"),te(qe,"$initialize",function(We){var Je=this;return Je.string=We,Je.pos=0,Je.matched=C,Je.working=We,Je.match=[]}),qe.$attr_reader("string"),te(qe,"$beginning_of_line?",function(){var We=this;return We.pos===0||We.string.charAt(We.pos-1)===`
|
|
410
|
-
`}),te(qe,"$scan",function(We){var Je=this;We=Je.$anchor(We);var $t=We.exec(Je.working);return $t==null?Je.matched=C:(Je.prev_pos=Je.pos,Je.pos+=$t[0].length,Je.working=Je.working.substring($t[0].length),Je.matched=$t[0],Je.match=$t,$t[0])}),te(qe,"$scan_until",function(We){var Je=this;We=Je.$anchor(We);for(var $t=Je.working,z=0;$t.length!=z;++z){var et=We.exec($t.substr(z));if(et!==null){var E=z+et[0].length,tt=$t.substr(0,E);return Je.matched=et[0],Je.match=et,Je.prev_pos=Je.pos+z,Je.pos+=E,Je.working=$t.substr(E),tt}}return Je.matched=C}),te(qe,"$[]",function(We){var Je=this,$t=C;if(V(Je.match["$empty?"]()))return C;_e(dt("Symbol"),$t=We)?We=We.$to_s():_e(dt("String"),$t)||(We=v["$coerce_to!"](We,dt("Integer"),"to_int"));var z=Je.match;return We<0&&(We+=z.length),We<0||We>=z.length||z[We]==null?C:z[We]}),te(qe,"$check",function(We){var Je=this;We=Je.$anchor(We);var $t=We.exec(Je.working);return $t==null?Je.matched=C:Je.matched=$t[0]}),te(qe,"$check_until",function(We){var Je=this,$t=Je.prev_pos,z=Je.pos,et=Je.working,E=Je.$scan_until(We);return Je.prev_pos=$t,Je.pos=z,Je.working=et,E}),te(qe,"$peek",function(We){var Je=this;return Je.working.substring(0,We)}),te(qe,"$eos?",function(){var We=this;return We.working.length===0}),te(qe,"$exist?",function(We){var Je=this,$t=We.exec(Je.working);return $t==null?C:$t.index==0?0:$t.index+1}),te(qe,"$skip",function(We){var Je=this;We=Je.$anchor(We);var $t=We.exec(Je.working);if($t==null)return Je.match=[],Je.matched=C;var z=$t[0],et=z.length;return Je.matched=z,Je.match=$t,Je.prev_pos=Je.pos,Je.pos+=et,Je.working=Je.working.substring(et),et}),te(qe,"$skip_until",function(We){var Je=this,$t=Je.$scan_until(We);return $t===C?C:(Je.matched=$t.substr(-1),$t.length)}),te(qe,"$get_byte",function(){var We=this,Je=C;return We.pos<We.string.length?(We.prev_pos=We.pos,We.pos+=1,Je=We.matched=We.working.substring(0,1),We.working=We.working.substring(1)):We.matched=C,Je}),te(qe,"$match?",function(We){var Je=this;We=Je.$anchor(We);var $t=We.exec(Je.working);return $t==null?C:(Je.prev_pos=Je.pos,$t[0].length)}),te(qe,"$pos=",function(We){var Je=this;return We<0&&(We+=Je.string.$length()),Je.pos=We,Je.working=Je.string.slice(We)}),te(qe,"$matched_size",function(){var We=this;return We.matched===C?C:We.matched.length}),te(qe,"$post_match",function(){var We=this;return We.matched===C?C:We.string.substr(We.pos)}),te(qe,"$pre_match",function(){var We=this;return We.matched===C?C:We.string.substr(0,We.prev_pos)}),te(qe,"$reset",function(){var We=this;return We.working=We.string,We.matched=C,We.pos=0}),te(qe,"$rest",Y("working")),te(qe,"$rest?",function(){var We=this;return We.working.length!==0}),te(qe,"$rest_size",function(){var We=this;return We.$rest().$size()}),te(qe,"$terminate",function(){var We,Je=this;return Je.match=C,We=[Je.string.$length()],Ue(Je,"pos=",We),We[We.length-1]}),te(qe,"$unscan",function(){var We=this;return We.pos=We.prev_pos,We.prev_pos=C,We.match=C,We}),G(qe,"bol?","beginning_of_line?"),G(qe,"getch","get_byte"),qe.$private(),te(qe,"$anchor",function(We){var Je=We.toString().match(/\/([^\/]+)$/);return Je=Je?Je[1]:void 0,new RegExp("^(?:"+We.source+")",Je)})}(Ie[0],null,Ie)},Opal.modules["asciidoctor/js"]=function(a){var ae=a.top;return a.nil,a.add_stubs("require"),ae.$require("asciidoctor/js/opal_ext"),ae.$require("asciidoctor/js/rx"),ae.$require("strscan")},Opal.modules["asciidoctor/core_ext/nil_or_empty"]=function(a){var ae=a.klass,te=a.truthy,V=a.alias,_e=[],v=a.nil;return a.add_stubs("method_defined?,nil?,empty?"),function(Y,Ue){var G=ae(Y,Ue,"NilClass");return te(G["$method_defined?"]("nil_or_empty?"))?v:V(G,"nil_or_empty?","nil?")}(_e[0],null),function(Y,Ue){var G=ae(Y,Ue,"String");return te(G["$method_defined?"]("nil_or_empty?"))?v:V(G,"nil_or_empty?","empty?")}(_e[0],null),function(Y,Ue){var G=ae(Y,Ue,"Array");return te(G["$method_defined?"]("nil_or_empty?"))?v:V(G,"nil_or_empty?","empty?")}(_e[0],null),function(Y,Ue){var G=ae(Y,Ue,"Hash");return te(G["$method_defined?"]("nil_or_empty?"))?v:V(G,"nil_or_empty?","empty?")}(_e[0],null),function(Y,Ue){var G=ae(Y,Ue,"Numeric");return te(G["$method_defined?"]("nil_or_empty?"))?v:V(G,"nil_or_empty?","nil?")}(_e[0],null)},Opal.modules["asciidoctor/core_ext/hash/merge"]=function(a){var ae=a.eqeq,te=a.send,V=a.slice,_e=a.truthy,v=a.rb_lt,Y=a.rb_gt,Ue=a.send2,G=a.find_super,Ie=a.def,C=a.top,Oe=[],ze=a.$r(Oe),Ge=a.nil;return a.add_stubs("==,arity,instance_method,send,new,<,length,dup,>,inject,merge,[]"),ae(ze("Hash").$instance_method("merge").$arity(),1)?ze("Hash").$send("prepend",te(ze("Module"),"new",[],function qe(){var je=qe.$$s==null?this:qe.$$s;return Ie(je,"$merge",function dt(Ye){var st,We;dt.$$p;var Je=this,$t=Ge;return dt.$$p=null,st=V(arguments),We=st,_e(v($t=We.$length(),1))?Je.$dup():_e(Y($t,1))?te(We,"inject",[Je],function(et,E){return et==null&&(et=Ge),E==null&&(E=Ge),et.$merge(E)}):Ue(Je,G(Je,"merge",dt,!1,!0),"merge",[We["$[]"](0)],null)},-1)},{$$s:C})):Ge},Opal.modules["asciidoctor/core_ext/match_data/names"]=function(a){var ae=a.truthy,te=a.klass,V=a.def,_e=[],v=a.$r(_e),Y=a.nil;return a.add_stubs("method_defined?"),ae(v("MatchData")["$method_defined?"]("names"))?Y:function(Ue,G){var Ie=te(Ue,G,"MatchData");return V(Ie,"$names",function(){return[]})}(_e[0],null)},Opal.modules["asciidoctor/core_ext"]=function(a){var ae=a.top;return a.nil,ae.$require("asciidoctor/core_ext.rb/../core_ext/nil_or_empty"),ae.$require("asciidoctor/core_ext.rb/../core_ext/hash/merge"),ae.$require("asciidoctor/core_ext.rb/../core_ext/match_data/names")},Opal.modules["asciidoctor/helpers"]=function(a){var ae=a.module,te=a.truthy,V=a.eqeq,_e=a.gvars,v=a.def,Y=a.send,Ue=a.neqeq,G=a.const_set,Ie=a.hash2,C=a.to_ary,Oe=a.rb_times,ze=a.eqeqeq,Ge=a.rb_plus,qe=a.Class,je=a.Object,dt=[],Ye=a.nil,st=a.$$$;return a.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,<<,!,start_with?,match?,gsub,rindex,index,basename,extname,length,directory?,dirname,mkdir_p,mkdir,private_constant,join,divmod,*,===,+,to_s,to_i,succ,class_for_name,const_get"),function(We,Je){var $t=ae(We,"Asciidoctor"),z=[$t].concat(Je);return function(et,E){var tt=ae(et,"Helpers"),lt=[tt].concat(E),K=a.$r(lt);return tt.$module_function(),v(tt,"$require_library",function(He,we,Ne){var Te=this,ue=Ye;_e["!"]==null&&(_e["!"]=Ye),we==null&&(we=!0),Ne==null&&(Ne="abort");try{return Te.$require(He)}catch(ye){if(a.rescue(ye,[st("LoadError")]))try{if(te(Te["$include?"](K("Logging")))||Te.$include(K("Logging")),te(we))switch(V(we,!0)&&(we=He),Ne){case"abort":ue=V(_e["!"].$path(),we)?"":" (reason: "+(te(_e["!"].$path())?"cannot load '"+_e["!"].$path()+"'":_e["!"].$message())+")",Te.$raise(st("LoadError"),"asciidoctor: FAILED: required gem '"+we+"' is not available"+ue+". Processing aborted.");break;case"warn":ue=V(_e["!"].$path(),we)?"":" (reason: "+(te(_e["!"].$path())?"cannot load '"+_e["!"].$path()+"'":_e["!"].$message())+")",Te.$logger().$warn("optional gem '"+we+"' is not available"+ue+". Functionality disabled.");break;default:}else switch(Ne){case"abort":Te.$raise(st("LoadError"),"asciidoctor: FAILED: "+_e["!"].$message().$chomp(".")+". Processing aborted.");break;case"warn":Te.$logger().$warn(""+_e["!"].$message().$chomp(".")+". Functionality disabled.");break;default:}return Ye}finally{a.pop_exception()}else throw ye}},-2),v(tt,"$prepare_source_array",function(He,we){var Ne=Ye,Te=Ye,ue=Ye;return we==null&&(we=!0),te(He["$empty?"]())?[]:V(Ne=(Te=(ue=He["$[]"](0)).$unpack("C3")).$slice(0,2),K("BOM_BYTES_UTF_16LE"))?(He["$[]="](0,ue.$byteslice(2,ue.$bytesize())),te(we)?Y(He,"map",[],function(Z){return Z==null&&(Z=Ye),Z.$encode(K("UTF_8"),st(st("Encoding"),"UTF_16LE")).$rstrip()}):Y(He,"map",[],function(Z){return Z==null&&(Z=Ye),Z.$encode(K("UTF_8"),st(st("Encoding"),"UTF_16LE")).$chomp()})):V(Ne,K("BOM_BYTES_UTF_16BE"))?(He["$[]="](0,ue.$byteslice(2,ue.$bytesize())),te(we)?Y(He,"map",[],function(Z){return Z==null&&(Z=Ye),Z.$encode(K("UTF_8"),st(st("Encoding"),"UTF_16BE")).$rstrip()}):Y(He,"map",[],function(Z){return Z==null&&(Z=Ye),Z.$encode(K("UTF_8"),st(st("Encoding"),"UTF_16BE")).$chomp()})):(V(Te,K("BOM_BYTES_UTF_8"))&&He["$[]="](0,ue.$byteslice(3,ue.$bytesize())),V(ue.$encoding(),K("UTF_8"))?te(we)?Y(He,"map",[],function(Z){return Z==null&&(Z=Ye),Z.$rstrip()}):Y(He,"map",[],function(Z){return Z==null&&(Z=Ye),Z.$chomp()}):te(we)?Y(He,"map",[],function(Z){return Z==null&&(Z=Ye),Z.$encode(K("UTF_8")).$rstrip()}):Y(He,"map",[],function(Z){return Z==null&&(Z=Ye),Z.$encode(K("UTF_8")).$chomp()}))},-2),v(tt,"$prepare_source_string",function(He,we){var Ne=Ye,Te=Ye;return we==null&&(we=!0),te(He["$nil_or_empty?"]())?[]:(V(Ne=(Te=He.$unpack("C3")).$slice(0,2),K("BOM_BYTES_UTF_16LE"))?He=He.$byteslice(2,He.$bytesize()).$encode(K("UTF_8"),st(st("Encoding"),"UTF_16LE")):V(Ne,K("BOM_BYTES_UTF_16BE"))?He=He.$byteslice(2,He.$bytesize()).$encode(K("UTF_8"),st(st("Encoding"),"UTF_16BE")):V(Te,K("BOM_BYTES_UTF_8"))?(He=He.$byteslice(3,He.$bytesize()),V(He.$encoding(),K("UTF_8"))||(He=He.$encode(K("UTF_8")))):Ue(He.$encoding(),K("UTF_8"))&&(He=He.$encode(K("UTF_8"))),te(we)?Y([],"tap",[],function(ye){return ye==null&&(ye=Ye),Y(He,"each_line",[],function(B){return B==null&&(B=Ye),ye["$<<"](B.$rstrip())})}):Y([],"tap",[],function(ye){return ye==null&&(ye=Ye),Y(He,"each_line",[],function(B){return B==null&&(B=Ye),ye["$<<"](B.$chomp())})}))},-2),V(st("RUBY_ENGINE"),"jruby")?v(tt,"$uriish?",function(He){var we=Ye,Ne=Ye;return te(we=te(Ne=He["$include?"](":"))?He["$start_with?"]("uri:classloader:")["$!"]():Ne)?K("UriSniffRx")["$match?"](He):we}):v(tt,"$uriish?",function(He){var we=Ye;return te(we=He["$include?"](":"))?K("UriSniffRx")["$match?"](He):we}),v(tt,"$encode_uri_component",function(He){return encodeURIComponent(He).replace(/%20|[!'()*]/g,function(we){return we==="%20"?"+":"%"+we.charCodeAt(0).toString(16)})}),v(tt,"$encode_spaces_in_uri",function(He){return te(He["$include?"](" "))?He.$gsub(" ","%20"):He}),v(tt,"$rootname",function(He){var we=Ye;return te(we=He.$rindex("."))?te(He.$index("/",we))?He:He.$slice(0,we):He}),v(tt,"$basename",function(He,we){var Ne=this;return we==null&&(we=Ye),te(we)?st("File").$basename(He,V(we,!0)?Ne.$extname(He):we):st("File").$basename(He)},-2),v(tt,"$extname?",function(He){var we=Ye,Ne=Ye;return te(we=Ne=He.$rindex("."))?He.$index("/",Ne)["$!"]():we}),te(st(st("File"),"ALT_SEPARATOR"))?v(tt,"$extname",function(He,we){var Ne=Ye;return we==null&&(we=""),te(Ne=He.$rindex("."))?te(He.$index("/",Ne))||te(He.$index(st(st("File"),"ALT_SEPARATOR"),Ne))?we:He.$slice(Ne,He.$length()):we},-2):v(tt,"$extname",function(He,we){var Ne=Ye;return we==null&&(we=""),te(Ne=He.$rindex("."))?te(He.$index("/",Ne))?we:He.$slice(Ne,He.$length()):we},-2),v(tt,"$mkdir_p",function(He){var we=this,Ne=Ye;if(te(st("File")["$directory?"](He)))return Ye;V(Ne=st("File").$dirname(He),".")||we.$mkdir_p(Ne);try{return st("Dir").$mkdir(He)}catch(Te){if(a.rescue(Te,[st("SystemCallError")]))try{return te(st("File")["$directory?"](He))?Ye:we.$raise()}finally{a.pop_exception()}else throw Te}}),G(lt[0],"ROMAN_NUMERALS",Ie(["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})),tt.$private_constant("ROMAN_NUMERALS"),v(tt,"$int_to_roman",function(He){return Y(K("ROMAN_NUMERALS"),"map",[],function(Ne,Te){var ue,ye,Z=Ye;return Ne==null&&(Ne=Ye),Te==null&&(Te=Ye),ye=He.$divmod(Te),ue=C(ye),Z=ue[0]==null?Ye:ue[0],He=ue[1]==null?Ye:ue[1],Oe(Ne,Z)}).$join()}),v(tt,"$nextval",function(He){var we=Ye;return ze(st("Integer"),He)?Ge(He,1):V((we=He.$to_i()).$to_s(),He.$to_s())?Ge(we,1):He.$succ()}),v(tt,"$resolve_class",function(He){var we=this;return ze(qe,He)?He:ze(st("String"),He)?we.$class_for_name(He):Ye}),v(tt,"$class_for_name",function(He){var we=this,Ne=Ye;try{return ze(qe,Ne=je.$const_get(He,!1))||we.$raise(),Ne}catch(Te){if(a.rescue(Te,[K("StandardError")]))try{return we.$raise(st("NameError"),"Could not resolve class for name: "+He)}finally{a.pop_exception()}else throw Te}})}(z[0],z)}(dt[0],dt)},Opal.modules.logger=function(a){var ae=a.klass,te=a.module,V=a.const_set,_e=a.send,v=a.def,Y=a.eqeqeq,Ue=a.rb_plus,G=a.truthy,Ie=a.rb_le,C=a.rb_lt,Oe=[],ze=a.nil,Ge=a.$$$;return a.add_stubs("include,to_h,map,constants,const_get,to_s,format,chr,strftime,message_as_string,===,+,message,class,join,backtrace,inspect,attr_reader,attr_accessor,new,key,upcase,raise,add,to_proc,<=,<,write,call,[],now"),function(qe,je,dt){var Ye=ae(qe,je,"Logger"),st=[Ye].concat(dt),We=a.$r(st),Je=Ye.$$prototype;return Je.level=Je.progname=Je.pipe=Je.formatter=ze,function($t,z){var et=te($t,"Severity"),E=[et].concat(z);return V(E[0],"DEBUG",0),V(E[0],"INFO",1),V(E[0],"WARN",2),V(E[0],"ERROR",3),V(E[0],"FATAL",4),V(E[0],"UNKNOWN",5)}(st[0],st),Ye.$include(We("Severity")),V(st[0],"SEVERITY_LABELS",_e(We("Severity").$constants(),"map",[],function(z){return z==null&&(z=ze),[We("Severity").$const_get(z),z.$to_s()]}).$to_h()),function($t,z,et){var E=ae($t,z,"Formatter"),tt=[E].concat(et),lt=a.$r(tt);return V(tt[0],"MESSAGE_FORMAT",`%s, [%s] %5s -- %s: %s
|
|
411
|
-
`),V(tt[0],"DATE_TIME_FORMAT","%Y-%m-%dT%H:%M:%S.%6N"),v(E,"$call",function(D,He,we,Ne){var Te=this;return Te.$format(lt("MESSAGE_FORMAT"),D.$chr(),He.$strftime(lt("DATE_TIME_FORMAT")),D,we,Te.$message_as_string(Ne))}),v(E,"$message_as_string",function(D){var He=ze,we=ze;return Y(Ge("String"),He=D)?D:Y(Ge("Exception"),He)?Ue(""+D.$message()+" ("+D.$class()+`)
|
|
412
|
-
`,(G(we=D.$backtrace())?we:[]).$join(`
|
|
413
|
-
`)):D.$inspect()})}(st[0],null,st),Ye.$attr_reader("level"),Ye.$attr_accessor("progname"),Ye.$attr_accessor("formatter"),v(Ye,"$initialize",function(z){var et=this;return et.pipe=z,et.level=We("DEBUG"),et.formatter=We("Formatter").$new()}),v(Ye,"$level=",function(z){var et=this,E=ze;return Y(Ge("Integer"),z)?et.level=z:G(E=We("SEVERITY_LABELS").$key(z.$to_s().$upcase()))?et.level=E:et.$raise(We("ArgumentError"),"invalid log level: "+z)}),v(Ye,"$info",function $t(z){var et=$t.$$p||ze,E=this;return $t.$$p=null,z==null&&(z=ze),_e(E,"add",[We("INFO"),ze,z],et.$to_proc())},-1),v(Ye,"$debug",function $t(z){var et=$t.$$p||ze,E=this;return $t.$$p=null,z==null&&(z=ze),_e(E,"add",[We("DEBUG"),ze,z],et.$to_proc())},-1),v(Ye,"$warn",function $t(z){var et=$t.$$p||ze,E=this;return $t.$$p=null,z==null&&(z=ze),_e(E,"add",[We("WARN"),ze,z],et.$to_proc())},-1),v(Ye,"$error",function $t(z){var et=$t.$$p||ze,E=this;return $t.$$p=null,z==null&&(z=ze),_e(E,"add",[We("ERROR"),ze,z],et.$to_proc())},-1),v(Ye,"$fatal",function $t(z){var et=$t.$$p||ze,E=this;return $t.$$p=null,z==null&&(z=ze),_e(E,"add",[We("FATAL"),ze,z],et.$to_proc())},-1),v(Ye,"$unknown",function $t(z){var et=$t.$$p||ze,E=this;return $t.$$p=null,z==null&&(z=ze),_e(E,"add",[We("UNKNOWN"),ze,z],et.$to_proc())},-1),v(Ye,"$info?",function(){var z=this;return Ie(z.level,We("INFO"))}),v(Ye,"$debug?",function(){var z=this;return Ie(z.level,We("DEBUG"))}),v(Ye,"$warn?",function(){var z=this;return Ie(z.level,We("WARN"))}),v(Ye,"$error?",function(){var z=this;return Ie(z.level,We("ERROR"))}),v(Ye,"$fatal?",function(){var z=this;return Ie(z.level,We("FATAL"))}),v(Ye,"$add",function $t(z,et,E){var tt=$t.$$p||ze,lt=this,K=ze;return $t.$$p=null,et==null&&(et=ze),E==null&&(E=ze),G(C(z=G(K=z)?K:We("UNKNOWN"),lt.level))||(E=G(K=E)?K:lt.progname,G(et)||(tt!==ze?et=a.yieldX(tt,[]):(et=E,E=lt.progname)),lt.pipe.$write(lt.formatter.$call(G(K=We("SEVERITY_LABELS")["$[]"](z))?K:"ANY",Ge("Time").$now(),E,et))),!0},-2)}(Oe[0],null,Oe)},Opal.modules["asciidoctor/logging"]=function(a){var ae=a.module,te=a.klass,V=a.slice,_e=a.send2,v=a.find_super,Y=a.to_a,Ue=a.send,G=a.def,Ie=a.truthy,C=a.rb_gt,Oe=a.const_set,ze=a.hash2,Ge=a.eqeqeq,qe=a.gvars,je=a.alias,dt=a.defs,Ye=a.top,st=[],We=a.nil,Je=a.$$$;return a.add_stubs("require,attr_reader,progname=,formatter=,new,level=,>,[],===,inspect,to_h,map,constants,const_get,<<,clear,empty?,max,attr_accessor,memoize_logger,private,logger,extend,private_class_method,merge"),Ye.$require("logger"),function($t,z){var et=ae($t,"Asciidoctor"),E=[et].concat(z);return function(tt,lt,K){var D=te(tt,lt,"Logger"),He=[D].concat(K),we=a.$r(He),Ne=D.$$prototype;return Ne.max_severity=We,D.$attr_reader("max_severity"),G(D,"$initialize",function Te(ue){var ye,Z,B,q=Te.$$p||We,ie=this;return Te.$$p=null,ye=V(arguments),Z=ye,_e(ie,v(ie,"initialize",Te,!1,!0),"initialize",Y(Z),q),ie["$progname="]("asciidoctor"),ie["$formatter="](we("BasicFormatter").$new()),B=[we("WARN")],Ue(ie,"level=",B),B[B.length-1]},-1),G(D,"$add",function Te(ue,ye,Z){var B=Te.$$p||We,q=this,ie=We;return Te.$$p=null,ye==null&&(ye=We),Z==null&&(Z=We),Ie(C(ue=Ie(ie=ue)?ie:we("UNKNOWN"),q.max_severity=Ie(ie=q.max_severity)?ie:ue))&&(q.max_severity=ue),_e(q,v(q,"add",Te,!1,!0),"add",[ue,ye,Z],B)},-2),function(Te,ue,ye){var Z=te(Te,ue,"BasicFormatter"),B=[Z].concat(ye),q=a.$r(B);return Oe(B[0],"SEVERITY_LABEL_SUBSTITUTES",ze(["WARN","FATAL"],{WARN:"WARNING",FATAL:"FAILED"})),G(Z,"$call",function(ee,$e,U,g){var o=We;return""+U+": "+(Ie(o=q("SEVERITY_LABEL_SUBSTITUTES")["$[]"](ee))?o:ee)+": "+(Ge(Je("String"),g)?g:g.$inspect())+q("LF")})}(He[0],we("Formatter"),He),function(Te){var ue=ae(Te,"AutoFormattingMessage");return G(ue,"$inspect",function(){var Z=this,B=We;return Ie(B=Z["$[]"]("source_location"))?""+B+": "+Z["$[]"]("text"):Z["$[]"]("text")})}(He[0])}(E[0],Je("Logger"),E),function(tt,lt,K){var D=te(tt,lt,"MemoryLogger"),He=[D].concat(K),we=a.$r(He),Ne=D.$$prototype;return Ne.messages=We,Oe(He[0],"SEVERITY_SYMBOL_BY_VALUE",Ue(we("Severity").$constants(!1),"map",[],function(ue){return ue==null&&(ue=We),[we("Severity").$const_get(ue),ue]}).$to_h()),D.$attr_reader("messages"),G(D,"$initialize",function(){var ue=this;return ue["$level="](we("WARN")),ue.messages=[]}),G(D,"$add",function Te(ue,ye,Z){var B=Te.$$p||We,q=this,ie=We;return Te.$$p=null,ye==null&&(ye=We),Z==null&&(Z=We),ye=Ie(ie=ye)?ie:B!==We?a.yieldX(B,[]):Z,q.messages["$<<"](ze(["severity","message"],{severity:we("SEVERITY_SYMBOL_BY_VALUE")["$[]"](Ie(ie=ue)?ie:we("UNKNOWN")),message:ye})),!0},-2),G(D,"$clear",function(){var ue=this;return ue.messages.$clear()}),G(D,"$empty?",function(){var ue=this;return ue.messages["$empty?"]()}),G(D,"$max_severity",function(){var ue=this;return Ie(ue["$empty?"]())?We:Ue(ue.messages,"map",[],function(Z){return Z==null&&(Z=We),we("Severity").$const_get(Z["$[]"]("severity"))}).$max()})}(E[0],Je("Logger"),E),function(tt,lt,K){var D=te(tt,lt,"NullLogger"),He=[D].concat(K),we=a.$r(He),Ne=D.$$prototype;return Ne.max_severity=We,D.$attr_reader("max_severity"),G(D,"$initialize",function(){var ue,ye=this;return ue=[we("WARN")],Ue(ye,"level=",ue),ue[ue.length-1]}),G(D,"$add",function(ue,ye,Z){var B=this,q=We;return Ie(C(ue=Ie(q=ue)?q:we("UNKNOWN"),B.max_severity=Ie(q=B.max_severity)?q:ue))&&(B.max_severity=ue),!0},-2)}(E[0],Je("Logger"),E),function(tt,lt){var K=ae(tt,"LoggerManager"),D=[K].concat(lt),He=a.$r(D);return K.logger_class=He("Logger"),function(we,Ne){return we.$attr_accessor("logger_class"),G(we,"$logger",function(ue){var ye=this,Z=We;return ye.logger==null&&(ye.logger=We),ye.logger_class==null&&(ye.logger_class=We),qe.stderr==null&&(qe.stderr=We),ue==null&&(ue=qe.stderr),ye.$memoize_logger(),ye.logger=Ie(Z=ye.logger)?Z:ye.logger_class.$new(ue)},-1),G(we,"$logger=",function(ue){var ye=this,Z=We;return ye.logger_class==null&&(ye.logger_class=We),qe.stderr==null&&(qe.stderr=We),ye.logger=Ie(Z=ue)?Z:ye.logger_class.$new(qe.stderr)}),we.$private(),G(we,"$memoize_logger",function(){var ue=this;return function(ye,Z){return je(ye,"logger","logger"),ye.$attr_reader("logger")}(a.get_singleton_class(ue))})}(a.get_singleton_class(K))}(E[0],E),function(tt,lt){var K=ae(tt,"Logging"),D=[K].concat(lt),He=a.$r(D);return dt(K,"$included",function(Ne){return Ne.$extend(He("Logging"))}),K.$private_class_method("included"),G(K,"$logger",function(){return He("LoggerManager").$logger()}),G(K,"$message_with_context",function(Ne,Te){return Te==null&&(Te=ze([],{})),ze(["text"],{text:Ne}).$merge(Te).$extend(Je(He("Logger"),"AutoFormattingMessage"))},-2)}(E[0],E)}(st[0],st)},Opal.modules["asciidoctor/rx"]=function(a){var ae=a.module,te=a.const_set,V=a.regexp,_e=a.hash2,v=a.send,Y=a.truthy,Ue=a.hash,G=[],Ie=a.nil,C=a.$$$;return a.add_stubs("join,to_a,new,[]=,empty?,escape"),function(Oe,ze){var Ge=ae(Oe,"Asciidoctor"),qe=[Ge].concat(ze),je=a.$r(qe);return ae(qe[0],"Rx"),te(qe[0],"AuthorInfoLineRx",V(["^(",je("CG_WORD"),"[",je("CC_WORD"),"\\-'.]*)(?: +(",je("CG_WORD"),"[",je("CC_WORD"),"\\-'.]*))?(?: +(",je("CG_WORD"),"[",je("CC_WORD"),"\\-'.]*))?(?: +<([^>]+)>)?$"])),te(qe[0],"AuthorDelimiterRx",/;(?: |$)/),te(qe[0],"RevisionInfoLineRx",V(["^(?:[^\\d{]*(",je("CC_ANY"),"*?),)? *(?!:)(",je("CC_ANY"),"*?)(?: *(?!^),?: *(",je("CC_ANY"),"*))?$"])),te(qe[0],"ManpageTitleVolnumRx",V(["^(",je("CC_ANY"),"+?) *\\( *(",je("CC_ANY"),"+?) *\\)$"])),te(qe[0],"ManpageNamePurposeRx",V(["^(",je("CC_ANY"),"+?) +- +(",je("CC_ANY"),"+)$"])),te(qe[0],"ConditionalDirectiveRx",V(["^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[(",je("CC_ANY"),"+)?\\]$"])),te(qe[0],"EvalExpressionRx",V(["^(",je("CC_ANY"),"+?) *([=!><]=|[><]) *(",je("CC_ANY"),"+)$"])),te(qe[0],"IncludeDirectiveRx",V(["^(\\\\)?include::([^\\s\\[](?:[^\\[]*[^\\s\\[])?)\\[(",je("CC_ANY"),"+)?\\]$"])),te(qe[0],"TagDirectiveRx",/\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m),te(qe[0],"AttributeEntryRx",V(["^:(!?",je("CG_WORD"),"[^:]*):(?:[ \\t]+(",je("CC_ANY"),"*))?$"])),te(qe[0],"InvalidAttributeNameCharsRx",V(["[^",je("CC_WORD"),"-]"])),te(qe[0],"AttributeEntryPassMacroRx",V(["^pass:([a-z]+(?:,[a-z-]+)*)?\\[(",je("CC_ALL"),"*)\\]$"])),te(qe[0],"AttributeReferenceRx",V(["(\\\\)?\\{(",je("CG_WORD"),"[",je("CC_WORD"),"-]*|(set|counter2?):",je("CC_ANY"),"+?)(\\\\)?\\}"])),te(qe[0],"BlockAnchorRx",V(["^\\[\\[(?:|([",je("CC_ALPHA"),"_:][",je("CC_WORD"),"\\-:.]*)(?:, *(",je("CC_ANY"),"+))?)\\]\\]$"])),te(qe[0],"BlockAttributeListRx",V(["^\\[(|[",je("CC_WORD"),`.#%{,"']`,je("CC_ANY"),"*)\\]$"])),te(qe[0],"BlockAttributeLineRx",V(["^\\[(?:|[",je("CC_WORD"),`.#%{,"']`,je("CC_ANY"),"*|\\[(?:|[",je("CC_ALPHA"),"_:][",je("CC_WORD"),"\\-:.]*(?:, *",je("CC_ANY"),"+)?)\\])\\]$"])),te(qe[0],"BlockTitleRx",V(["^\\.(\\.?[^ \\t.]",je("CC_ANY"),"*)$"])),te(qe[0],"AdmonitionParagraphRx",V(["^(",je("ADMONITION_STYLES").$to_a().$join("|"),"):[ \\t]+"])),te(qe[0],"LiteralParagraphRx",V(["^([ \\t]+",je("CC_ANY"),"*)$"])),te(qe[0],"AtxSectionTitleRx",V(["^(=={0,5})[ \\t]+(",je("CC_ANY"),"+?)(?:[ \\t]+\\1)?$"])),te(qe[0],"ExtAtxSectionTitleRx",V(["^(=={0,5}|#\\#{0,5})[ \\t]+(",je("CC_ANY"),"+?)(?:[ \\t]+\\1)?$"])),te(qe[0],"SetextSectionTitleRx",V(["^((?!\\.)",je("CC_ANY"),"*?",je("CG_ALNUM"),je("CC_ANY"),"*)$"])),te(qe[0],"InlineSectionAnchorRx",V([" (\\\\)?\\[\\[([",je("CC_ALPHA"),"_:][",je("CC_WORD"),"\\-:.]*)(?:, *(",je("CC_ANY"),"+))?\\]\\]$"])),te(qe[0],"InvalidSectionIdCharsRx",V(["<[^>]+>|&(?:[a-z][a-z]+\\d{0,2}|#\\d\\d\\d{0,4}|#x[\\da-f][\\da-f][\\da-f]{0,3});|[^ ",je("CC_WORD"),"\\-.]+?"])),te(qe[0],"SectionLevelStyleRx",/^sect\d$/),te(qe[0],"AnyListRx",V(["^(?:[ \\t]*(?:-|\\*\\**|\\.\\.*|\\u2022|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]|(?!//[^/])[ \\t]*[^ \\t]",je("CC_ANY"),"*?(?::::{0,2}|;;)(?:$|[ \\t])|<(?:\\d+|\\.)>[ \\t])"])),te(qe[0],"UnorderedListRx",V(["^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+(",je("CC_ANY"),"*)$"])),te(qe[0],"OrderedListRx",V(["^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+(",je("CC_ANY"),"*)$"])),te(qe[0],"OrderedListMarkerRxMap",_e(["arabic","loweralpha","lowerroman","upperalpha","upperroman"],{arabic:/\d+\./,loweralpha:/[a-z]\./,lowerroman:/[ivx]+\)/,upperalpha:/[A-Z]\./,upperroman:/[IVX]+\)/})),te(qe[0],"DescriptionListRx",V(["^(?!//[^/])[ \\t]*([^ \\t]",je("CC_ANY"),"*?)(:::{0,2}|;;)(?:$|[ \\t]+(",je("CC_ANY"),"*)$)"])),te(qe[0],"DescriptionListSiblingRx",_e(["::",":::","::::",";;"],{"::":V(["^(?!//[^/])[ \\t]*([^ \\t]",je("CC_ANY"),"*?[^:]|[^ \\t:])(::)(?:$|[ \\t]+(",je("CC_ANY"),"*)$)"]),":::":V(["^(?!//[^/])[ \\t]*([^ \\t]",je("CC_ANY"),"*?[^:]|[^ \\t:])(:::)(?:$|[ \\t]+(",je("CC_ANY"),"*)$)"]),"::::":V(["^(?!//[^/])[ \\t]*([^ \\t]",je("CC_ANY"),"*?[^:]|[^ \\t:])(::::)(?:$|[ \\t]+(",je("CC_ANY"),"*)$)"]),";;":V(["^(?!//[^/])[ \\t]*([^ \\t]",je("CC_ANY"),"*?)(;;)(?:$|[ \\t]+(",je("CC_ANY"),"*)$)"])})),te(qe[0],"CalloutListRx",V(["^<(\\d+|\\.)>[ \\t]+(",je("CC_ANY"),"*)$"])),te(qe[0],"CalloutExtractRx",/((?:\/\/|#|--|;;) ?)?(\\)?<!?(|--)(\d+|\.)\3>(?=(?: ?\\?<!?\3(?:\d+|\.)\3>)*$)/),te(qe[0],"CalloutExtractRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)"),te(qe[0],"CalloutExtractRxMap",v(C("Hash"),"new",[],function(Ye,st){var We;return Ye==null&&(Ye=Ie),st==null&&(st=Ie),We=[st,V(["(",Y(st["$empty?"]())?"":""+C("Regexp").$escape(st)+" ?",")?",je("CalloutExtractRxt")])],v(Ye,"[]=",We),We[We.length-1]})),te(qe[0],"CalloutScanRx",V(["\\\\?<!?(|--)(\\d+|\\.)\\1>(?=(?: ?\\\\?<!?\\1(?:\\d+|\\.)\\1>)*",je("CC_EOL"),")"])),te(qe[0],"CalloutSourceRx",V(["((?://|#|--|;;) ?)?(\\\\)?<!?(|--)(\\d+|\\.)\\3>(?=(?: ?\\\\?<!?\\3(?:\\d+|\\.)\\3>)*",je("CC_EOL"),")"])),te(qe[0],"CalloutSourceRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*"+je("CC_EOL")+")"),te(qe[0],"CalloutSourceRxMap",v(C("Hash"),"new",[],function(Ye,st){var We;return Ye==null&&(Ye=Ie),st==null&&(st=Ie),We=[st,V(["(",Y(st["$empty?"]())?"":""+C("Regexp").$escape(st)+" ?",")?",je("CalloutSourceRxt")])],v(Ye,"[]=",We),We[We.length-1]})),te(qe[0],"ListRxMap",_e(["ulist","olist","dlist","colist"],{ulist:je("UnorderedListRx"),olist:je("OrderedListRx"),dlist:je("DescriptionListRx"),colist:je("CalloutListRx")})),te(qe[0],"ColumnSpecRx",/^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/),te(qe[0],"CellSpecStartRx",/^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),te(qe[0],"CellSpecEndRx",/[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),te(qe[0],"CustomBlockMacroRx",V(["^(",je("CG_WORD"),"[",je("CC_WORD"),"-]*)::(|\\S|\\S",je("CC_ANY"),"*?\\S)\\[(",je("CC_ANY"),"+)?\\]$"])),te(qe[0],"BlockMediaMacroRx",V(["^(image|video|audio)::(\\S|\\S",je("CC_ANY"),"*?\\S)\\[(",je("CC_ANY"),"+)?\\]$"])),te(qe[0],"BlockTocMacroRx",V(["^toc::\\[(",je("CC_ANY"),"+)?\\]$"])),te(qe[0],"InlineAnchorRx",V(["(\\\\)?(?:\\[\\[([",je("CC_ALPHA"),"_:][",je("CC_WORD"),"\\-:.]*)(?:, *(",je("CC_ANY"),"+?))?\\]\\]|anchor:([",je("CC_ALPHA"),"_:][",je("CC_WORD"),"\\-:.]*)\\[(?:\\]|(",je("CC_ANY"),"*?[^\\\\])\\]))"])),te(qe[0],"InlineAnchorScanRx",V(["(?:^|[^\\\\\\[])\\[\\[([",je("CC_ALPHA"),"_:][",je("CC_WORD"),"\\-:.]*)(?:, *(",je("CC_ANY"),"+?))?\\]\\]|(?:^|[^\\\\])anchor:([",je("CC_ALPHA"),"_:][",je("CC_WORD"),"\\-:.]*)\\[(?:\\]|(",je("CC_ANY"),"*?[^\\\\])\\])"])),te(qe[0],"LeadingInlineAnchorRx",V(["^\\[\\[([",je("CC_ALPHA"),"_:][",je("CC_WORD"),"\\-:.]*)(?:, *(",je("CC_ANY"),"+?))?\\]\\]"])),te(qe[0],"InlineBiblioAnchorRx",V(["^\\[\\[\\[([",je("CC_ALPHA"),"_:][",je("CC_WORD"),"\\-:.]*)(?:, *(",je("CC_ANY"),"+?))?\\]\\]\\]"])),te(qe[0],"InlineEmailRx",V(["([\\\\>:/])?",je("CG_WORD"),"(?:&|[",je("CC_WORD"),"\\-.%+])*@",je("CG_ALNUM"),"[",je("CC_ALNUM"),"_\\-.]*\\.[a-zA-Z]{2,5}\\b"])),te(qe[0],"InlineFootnoteMacroRx",V(["\\\\?footnote(?:(ref):|:([",je("CC_WORD"),"-]+)?)\\[(?:|(",je("CC_ALL"),"*?[^\\\\]))\\](?!</a>)"],"m")),te(qe[0],"InlineImageMacroRx",V(["\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|",je("CC_ALL"),"*?[^\\\\])\\]"],"m")),te(qe[0],"InlineIndextermMacroRx",V(["\\\\?(?:(indexterm2?):\\[(",je("CC_ALL"),"*?[^\\\\])\\]|\\(\\((",je("CC_ALL"),"+?)\\)\\)(?!\\)))"],"m")),te(qe[0],"InlineKbdBtnMacroRx",V(["(\\\\)?(kbd|btn):\\[(",je("CC_ALL"),"*?[^\\\\])\\]"],"m")),te(qe[0],"InlineLinkRx",V(["(^|link:|",je("CG_BLANK"),`|<|[>\\(\\)\\[\\];"'])(\\\\?(?:https?|file|ftp|irc)://)(?:([^\\s\\[\\]]+)\\[(|`,je("CC_ALL"),"*?[^\\\\])\\]|([^\\s\\[\\]<]*([^\\s,.?!\\[\\]<\\)])))"],"m")),te(qe[0],"InlineLinkMacroRx",V(["\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|",je("CC_ALL"),"*?[^\\\\])\\]"],"m")),te(qe[0],"MacroNameRx",V(["^",je("CG_WORD"),"[",je("CC_WORD"),"-]*$"])),te(qe[0],"InlineStemMacroRx",V(["\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(",je("CC_ALL"),"*?[^\\\\])\\]"],"m")),te(qe[0],"InlineMenuMacroRx",V(["\\\\?menu:(",je("CG_WORD"),"|[",je("CC_WORD"),"&][^\\n\\[]*[^\\s\\[])\\[ *(?:|(",je("CC_ALL"),"*?[^\\\\]))\\]"],"m")),te(qe[0],"InlineMenuRx",V(['\\\\?"([',je("CC_WORD"),'&][^"]*?[ \\n]+>[ \\n]+[^"]*)"'])),te(qe[0],"InlinePassRx",Ue(!1,["+","-]",V(["((?:^|[^",je("CC_WORD"),";:\\\\])(?=(\\[)|\\+)|\\\\(?=\\[)|(?=\\\\\\+))(?:\\2(x-|[^\\]]+ x-)\\]|(?:\\[([^\\]]+)\\])?(?=(\\\\)?\\+))(\\5?(\\+|`)(\\S|\\S",je("CC_ALL"),"*?\\S)\\7)(?!",je("CG_WORD"),")"],"m")],!0,["`",Ie,V(["(^|[^`",je("CC_WORD"),"])(?:(\\Z)()|\\[([^\\]]+)\\](?=(\\\\))?)?(\\5?(`)([^`\\s]|[^`\\s]",je("CC_ALL"),"*?\\S)\\7)(?![`",je("CC_WORD"),"])"],"m")])),te(qe[0],"InlinePassMacroRx",V(["(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)(",je("CC_ALL"),"*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|",je("CC_ALL"),"*?[^\\\\])\\])"],"m")),te(qe[0],"InlineXrefMacroRx",V(["\\\\?(?:<<([",je("CC_WORD"),"#/.:{]",je("CC_ALL"),"*?)>>|xref:([",je("CC_WORD"),"#/.:{]",je("CC_ALL"),"*?)\\[(?:\\]|(",je("CC_ALL"),"*?[^\\\\])\\]))"],"m")),te(qe[0],"HardLineBreakRx",V(["^(",je("CC_ANY"),"*) \\+$"],"m")),te(qe[0],"MarkdownThematicBreakRx",/^ {0,3}([-*_])( *)\1\2\1$/),te(qe[0],"ExtLayoutBreakRx",/^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/),te(qe[0],"BlankLineRx",/\n{2,}/),te(qe[0],"EscapedSpaceRx",/\\([ \t\n])/),te(qe[0],"ReplaceableTextRx",/[&']|--|\.\.\.|\([CRT]M?\)/),te(qe[0],"SpaceDelimiterRx",/([^\\])[ \t\n]+/),te(qe[0],"SubModifierSniffRx",/[+-]/),te(qe[0],"TrailingDigitsRx",/\d+$/),te(qe[0],"UriSniffRx",V(["^",je("CG_ALPHA"),"[",je("CC_ALNUM"),".+-]+:/{0,2}"])),te(qe[0],"XmlSanitizeRx",/<[^>]+>/)}(G[0],G)},Opal.modules["asciidoctor/substitutors"]=function(a){var ae=a.module,te=a.const_set,V=a.hash2,_e=a.hash,v=a.rb_plus,Y=a.regexp,Ue=a.not,G=a.truthy,Ie=a.send,C=a.def,Oe=a.alias,ze=a.gvars,Ge=a.eqeq,qe=a.to_ary,je=a.neqeq,dt=a.to_a,Ye=a.eqeqeq,st=a.rb_gt,We=a.slice,Je=a.rb_minus,$t=a.rb_lt,z=a.rb_times,et=[],E=a.nil,tt=a.$$$;return a.add_stubs("freeze,+,keys,!,empty?,===,[],join,include?,extract_passthroughs,each,sub_specialchars,sub_quotes,sub_attributes,sub_replacements,sub_macros,highlight_source,sub_callouts,sub_post_replacements,warn,logger,restore_passthroughs,clear,split,apply_subs,gsub,match?,compat_mode,convert_quoted_text,attributes,==,shift,store_attribute,!=,attribute_undefined,counter,key?,downcase,attribute_missing,info,squeeze,delete,reject,start_with?,do_replacement,inline_macros?,extensions,inline_macros,regexp,instance,slice,length,names,config,merge,[]=,normalize_text,parse_attributes,process_method,expand_subs,text=,text,convert,class,strip,index,min,compact,>,end_with?,map,chop,new,pop,rstrip,register,tr,basename,parse,lstrip,split_simple_csv,-,partition,extract_attributes_from_text,sub,encode_uri_component,style,extname?,rindex,catalog,info?,fetch,outfilesuffix,natural_xrefs,resolve_id,find,footnotes,id,<,size,<<,attr?,attr,to_s,read_next_id,callouts,highlight?,syntax_highlighter,sub_source,extract_callouts,name,to_i,to_sym,resolve_lines_to_highlight,highlight,nil_or_empty?,restore_callouts,count,to_a,|,sort,*,parse_quoted_text_attributes,resolve_pass_subs,basebackend?,error,chr,drop,&,resolve_subs,resolve_block_subs,parse_into,private,shorthand_property_syntax,each_char"),function(lt,K){var D=ae(lt,"Asciidoctor"),He=[D].concat(K);return function(we,Ne){var Te=ae(we,"Substitutors"),ue=[Te].concat(Ne),ye=a.$r(ue);return te(ue[0],"SpecialCharsRx",/[<&>]/),te(ue[0],"SpecialCharsTr",V([">","<","&"],{">":">","<":"<","&":"&"})),te(ue[0],"QuotedTextSniffRx",_e(!1,/[*_`#^~]/,!0,/[*'_+#^~]/)),te(ue[0],"BASIC_SUBS",["specialcharacters"]).$freeze(),te(ue[0],"HEADER_SUBS",["specialcharacters","attributes"]).$freeze(),te(ue[0],"NO_SUBS",[]).$freeze(),te(ue[0],"NORMAL_SUBS",["specialcharacters","quotes","attributes","replacements","macros","post_replacements"]).$freeze(),te(ue[0],"REFTEXT_SUBS",["specialcharacters","quotes","replacements"]).$freeze(),te(ue[0],"VERBATIM_SUBS",["specialcharacters","callouts"]).$freeze(),te(ue[0],"SUB_GROUPS",V(["none","normal","verbatim","specialchars"],{none:ye("NO_SUBS"),normal:ye("NORMAL_SUBS"),verbatim:ye("VERBATIM_SUBS"),specialchars:ye("BASIC_SUBS")})),te(ue[0],"SUB_HINTS",V(["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"})),te(ue[0],"SUB_OPTIONS",V(["block","inline"],{block:v(v(ye("SUB_GROUPS").$keys(),ye("NORMAL_SUBS")),["callouts"]),inline:v(ye("SUB_GROUPS").$keys(),ye("NORMAL_SUBS"))})),te(ue[0],"CAN",""),te(ue[0],"DEL",""),te(ue[0],"PASS_START",""),te(ue[0],"PASS_END",""),te(ue[0],"PassSlotRx",Y([ye("PASS_START"),"(\\d+)",ye("PASS_END")])),te(ue[0],"HighlightedPassSlotRx",Y(["<span\\b[^>]*>",ye("PASS_START"),"</span>[^\\d]*(\\d+)[^\\d]*<span\\b[^>]*>",ye("PASS_END"),"</span>"])),te(ue[0],"RS","\\"),te(ue[0],"R_SB","]"),te(ue[0],"ESC_R_SB","\\]"),te(ue[0],"PLUS","+"),C(Te,"$apply_subs",function(B,q){var ie=this,ee=E,$e=E,U=E,g=E;return ie.passthroughs==null&&(ie.passthroughs=E),ie.passthroughs_locked==null&&(ie.passthroughs_locked=E),q==null&&(q=ye("NORMAL_SUBS")),G(B["$empty?"]())||Ue(q)?B:(G(ee=tt("Array")["$==="](B))&&(B=G(B["$[]"](1))?B.$join(ye("LF")):B["$[]"](0)),G(q["$include?"]("macros"))&&(B=ie.$extract_passthroughs(B),G(ie.passthroughs["$empty?"]())||($e=ie.passthroughs,ie.passthroughs_locked=G(U=ie.passthroughs_locked)?U:g=!0)),Ie(q,"each",[],function o(m){var T=o.$$s==null?this:o.$$s;switch(m==null&&(m=E),m){case"specialcharacters":return B=T.$sub_specialchars(B);case"quotes":return B=T.$sub_quotes(B);case"attributes":return G(B["$include?"](ye("ATTR_REF_HEAD")))?B=T.$sub_attributes(B):E;case"replacements":return B=T.$sub_replacements(B);case"macros":return B=T.$sub_macros(B);case"highlight":return B=T.$highlight_source(B,q["$include?"]("callouts"));case"callouts":return G(q["$include?"]("highlight"))?E:B=T.$sub_callouts(B);case"post_replacements":return B=T.$sub_post_replacements(B);default:return T.$logger().$warn("unknown substitution type "+m)}},{$$s:ie}),G($e)&&(B=ie.$restore_passthroughs(B),G(g)&&($e.$clear(),ie.passthroughs_locked=E)),G(ee)?B.$split(ye("LF"),-1):B)},-2),C(Te,"$apply_normal_subs",function(B){var q=this;return q.$apply_subs(B,ye("NORMAL_SUBS"))}),C(Te,"$apply_header_subs",function(B){var q=this;return q.$apply_subs(B,ye("HEADER_SUBS"))}),Oe(Te,"apply_title_subs","apply_subs"),C(Te,"$apply_reftext_subs",function(B){var q=this;return q.$apply_subs(B,ye("REFTEXT_SUBS"))}),C(Te,"$sub_specialchars",function(B){return G(B["$include?"](">"))||G(B["$include?"]("&"))||G(B["$include?"]("<"))?B.$gsub(ye("SpecialCharsRx"),ye("SpecialCharsTr")):B}),Oe(Te,"sub_specialcharacters","sub_specialchars"),C(Te,"$sub_quotes",function(B){var q=this,ie=E;return q.document==null&&(q.document=E),G(ye("QuotedTextSniffRx")["$[]"](ie=q.document.$compat_mode())["$match?"](B))&&Ie(ye("QUOTE_SUBS")["$[]"](ie),"each",[],function ee($e,U,g){var o=ee.$$s==null?this:ee.$$s;return $e==null&&($e=E),U==null&&(U=E),g==null&&(g=E),B=Ie(B,"gsub",[g],function m(){var T=m.$$s==null?this:m.$$s;return ze["~"]==null&&(ze["~"]=E),T.$convert_quoted_text(ze["~"],$e,U)},{$$s:o})},{$$s:q}),B}),C(Te,"$sub_attributes",function(B,q){var ie=this,ee=E,$e=E,U=E,g=E,o=E,m=E,T=E,k=E;return ie.document==null&&(ie.document=E),q==null&&(q=V([],{})),ee=ie.document.$attributes(),$e=U=g=o=m=T=E,B=Ie(B,"gsub",[ye("AttributeReferenceRx")],function y(){var L,j,de=y.$$s==null?this:y.$$s,oe=E,ke=E,Be=E,Xe=E,it=E,ht=E;if(de.document==null&&(de.document=E),Ge((L=ze["~"])===E?E:L["$[]"](1),ye("RS"))||Ge((L=ze["~"])===E?E:L["$[]"](4),ye("RS")))return"{"+((L=ze["~"])===E?E:L["$[]"](2))+"}";if(G((L=ze["~"])===E?E:L["$[]"](3)))switch((oe=((L=ze["~"])===E?E:L["$[]"](2)).$split(":",3)).$shift()){case"set":return j=ye("Parser").$store_attribute(oe["$[]"](0),G(ke=oe["$[]"](1))?ke:"",de.document),L=qe(j),L[0]==null||L[0],Be=L[1]==null?E:L[1],G(Be)||je(m=G(ke=m)?ke:G(Xe=ee["$[]"]("attribute-undefined"))?Xe:ye("Compliance").$attribute_undefined(),"drop-line")?$e=o=ye("DEL"):$e=U=ye("CAN");case"counter2":return Ie(de.document,"counter",dt(oe)),$e=o=ye("DEL");default:return Ie(de.document,"counter",dt(oe))}else{if(G(ee["$key?"](it=((L=ze["~"])===E?E:L["$[]"](2)).$downcase())))return ee["$[]"](it);if(G(Be=ye("INTRINSIC_ATTRIBUTES")["$[]"](it)))return Be;switch(T=G(ke=T)?ke:G(Xe=G(ht=q["$[]"]("attribute_missing"))?ht:ee["$[]"]("attribute-missing"))?Xe:ye("Compliance").$attribute_missing()){case"drop":return $e=o=ye("DEL");case"drop-line":return Ge(g=G(ke=g)?ke:G(Xe=q["$[]"]("drop_line_severity"))?Xe:"info","info")&&Ie(de.$logger(),"info",[],function(){return"dropping line containing reference to missing attribute: "+it}),$e=U=ye("CAN");case"warn":return de.$logger().$warn("skipping reference to missing attribute: "+it),(L=ze["~"])===E?E:L["$[]"](0);default:return(L=ze["~"])===E?E:L["$[]"](0)}}},{$$s:ie}),G($e)?G(o)?(k=B.$squeeze(ye("DEL")).$split(ye("LF"),-1),G(U)?Ie(k,"reject",[],function(L){var j=E,de=E,oe=E;return L==null&&(L=E),G(j=G(de=G(oe=L["$=="](ye("DEL")))?oe:L["$=="](ye("CAN")))?de:L["$start_with?"](ye("CAN")))?j:L["$include?"](ye("CAN"))}).$join(ye("LF")).$delete(ye("DEL")):Ie(k,"reject",[],function(L){return L==null&&(L=E),L["$=="](ye("DEL"))}).$join(ye("LF")).$delete(ye("DEL"))):G(B["$include?"](ye("LF")))?Ie(B.$split(ye("LF"),-1),"reject",[],function(L){var j=E,de=E;return L==null&&(L=E),G(j=G(de=L["$=="](ye("CAN")))?de:L["$start_with?"](ye("CAN")))?j:L["$include?"](ye("CAN"))}).$join(ye("LF")):"":B},-2),C(Te,"$sub_replacements",function(B){var q=this;return G(ye("ReplaceableTextRx")["$match?"](B))&&Ie(ye("REPLACEMENTS"),"each",[],function ie(ee,$e,U){var g=ie.$$s==null?this:ie.$$s;return ee==null&&(ee=E),$e==null&&($e=E),U==null&&(U=E),B=Ie(B,"gsub",[ee],function o(){var m=o.$$s==null?this:o.$$s;return ze["~"]==null&&(ze["~"]=E),m.$do_replacement(ze["~"],$e,U)},{$$s:g})},{$$s:q}),B}),C(Te,"$sub_macros",function(B){var q=this,ie=E,ee=E,$e=E,U=E,g=E,o=E,m=E,T=E;return q.document==null&&(q.document=E),q.parent==null&&(q.parent=E),q.context==null&&(q.context=E),ie=B["$include?"]("["),ee=B["$include?"](":"),$e=G(U=ie)?ee:U,g=G(U=$e)?B["$include?"](":["):U,o=(m=q.document).$attributes(),G(T=m.$extensions())&&G(T["$inline_macros?"]())&&Ie(T.$inline_macros(),"each",[],function k(y){var L=k.$$s==null?this:k.$$s;return y==null&&(y=E),B=Ie(B,"gsub",[y.$instance().$regexp()],function j(){var de,oe,ke=j.$$s==null?this:j.$$s,Be=E,Xe=E,it=E,ht=E,at=E,mt=E,yt=E,xt=E,vt=E;return ze["~"]==null&&(ze["~"]=E),G((Be=(de=ze["~"])===E?E:de["$[]"](0))["$start_with?"](ye("RS")))?((de=ze["~"])===E?E:de["$[]"](0)).$slice(1,((de=ze["~"])===E?E:de["$[]"](0)).$length()):(G(ze["~"].$names()["$empty?"]())?(de=[(oe=ze["~"])===E?E:oe["$[]"](1),(oe=ze["~"])===E?E:oe["$[]"](2)],Xe=de[0],it=de[1]):(de=[function(){try{return ze["~"]["$[]"]("target")}catch(Tt){if(a.rescue(Tt,[ye("StandardError")]))try{return E}finally{a.pop_exception()}else throw Tt}}(),function(){try{return ze["~"]["$[]"]("content")}catch(Tt){if(a.rescue(Tt,[ye("StandardError")]))try{return E}finally{a.pop_exception()}else throw Tt}}()],Xe=de[0],it=de[1]),ht=G(at=(mt=y.$config())["$[]"]("default_attrs"))?at.$merge():V([],{}),G(it)&&(G(it["$empty?"]())?Ge(mt["$[]"]("content_model"),"attributes")||ht["$[]="]("text",it):(it=ke.$normalize_text(it,!0,!0),Ge(mt["$[]"]("content_model"),"attributes")?ke.$parse_attributes(it,G(U=G(yt=mt["$[]"]("positional_attrs"))?yt:mt["$[]"]("pos_attrs"))?U:[],V(["into"],{into:ht})):ht["$[]="]("text",it)),Xe=G(U=Xe)?U:Ge(mt["$[]"]("format"),"short")?it:Xe),Ye(ye("Inline"),xt=y.$process_method()["$[]"](ke,Xe,ht))?(G(vt=xt.$attributes().$delete("subs"))&&G(vt=ke.$expand_subs(vt,"custom inline macro"))&&xt["$text="](ke.$apply_subs(xt.$text(),vt)),xt.$convert()):G(xt)?(Ie(ke.$logger(),"info",[],function(){return"expected substitution value for custom inline macro to be of type Inline; got "+xt.$class()+": "+Be}),xt):"")},{$$s:L})},{$$s:q}),G(o["$key?"]("experimental"))&&(G(g)&&(G(B["$include?"]("kbd:"))||G(B["$include?"]("btn:")))&&(B=Ie(B,"gsub",[ye("InlineKbdBtnMacroRx")],function k(){var y,L=k.$$s==null?this:k.$$s,j=E,de=E,oe=E;return G((y=ze["~"])===E?E:y["$[]"](1))?((y=ze["~"])===E?E:y["$[]"](0)).$slice(1,((y=ze["~"])===E?E:y["$[]"](0)).$length()):Ge((y=ze["~"])===E?E:y["$[]"](2),"kbd")?(G((j=((y=ze["~"])===E?E:y["$[]"](3)).$strip())["$include?"](ye("R_SB")))&&(j=j.$gsub(ye("ESC_R_SB"),ye("R_SB"))),G(st(j.$length(),1))&&G(de=G(de=j.$index(",",1))?[de,j.$index("+",1)].$compact().$min():j.$index("+",1))?(oe=j.$slice(de,1),G(j["$end_with?"](oe))?(j=Ie(j.$chop().$split(oe,-1),"map",[],function(Be){return Be==null&&(Be=E),Be.$strip()}),j["$[]="](-1,v(j["$[]"](-1),oe))):j=Ie(j.$split(oe),"map",[],function(Be){return Be==null&&(Be=E),Be.$strip()})):j=[j],ye("Inline").$new(L,"kbd",E,V(["attributes"],{attributes:V(["keys"],{keys:j})})).$convert()):ye("Inline").$new(L,"button",L.$normalize_text((y=ze["~"])===E?E:y["$[]"](3),!0,!0)).$convert()},{$$s:q})),G($e)&&G(B["$include?"]("menu:"))&&(B=Ie(B,"gsub",[ye("InlineMenuMacroRx")],function k(){var y,L=k.$$s==null?this:k.$$s,j=E,de=E,oe=E,ke=E,Be=E;return G(((y=ze["~"])===E?E:y["$[]"](0))["$start_with?"](ye("RS")))?((y=ze["~"])===E?E:y["$[]"](0)).$slice(1,((y=ze["~"])===E?E:y["$[]"](0)).$length()):(j=(y=ze["~"])===E?E:y["$[]"](1),G(de=(y=ze["~"])===E?E:y["$[]"](2))?(G(de["$include?"](ye("R_SB")))&&(de=de.$gsub(ye("ESC_R_SB"),ye("R_SB"))),G(oe=G(de["$include?"](">"))?">":G(de["$include?"](","))?",":E)?(ke=Ie(de.$split(oe),"map",[],function(it){return it==null&&(it=E),it.$strip()}),Be=ke.$pop()):(y=[[],de.$rstrip()],ke=y[0],Be=y[1])):(y=[[],E],ke=y[0],Be=y[1]),ye("Inline").$new(L,"menu",E,V(["attributes"],{attributes:V(["menu","submenus","menuitem"],{menu:j,submenus:ke,menuitem:Be})})).$convert())},{$$s:q})),G(B["$include?"]('"'))&&G(B["$include?"](">"))&&(B=Ie(B,"gsub",[ye("InlineMenuRx")],function k(){var y,L,j,de=k.$$s==null?this:k.$$s,oe=E,ke=E,Be=E;return G(((y=ze["~"])===E?E:y["$[]"](0))["$start_with?"](ye("RS")))?((y=ze["~"])===E?E:y["$[]"](0)).$slice(1,((y=ze["~"])===E?E:y["$[]"](0)).$length()):(L=Ie(((j=ze["~"])===E?E:j["$[]"](1)).$split(">"),"map",[],function(it){return it==null&&(it=E),it.$strip()}),y=qe(L),oe=y[0]==null?E:y[0],ke=We(y,1),Be=ke.$pop(),ye("Inline").$new(de,"menu",E,V(["attributes"],{attributes:V(["menu","submenus","menuitem"],{menu:oe,submenus:ke,menuitem:Be})})).$convert())},{$$s:q}))),G($e)&&(G(B["$include?"]("image:"))||G(B["$include?"]("icon:")))&&(B=Ie(B,"gsub",[ye("InlineImageMacroRx")],function k(){var y,L=k.$$s==null?this:k.$$s,j=E,de=E,oe=E,ke=E;return G(((y=ze["~"])===E?E:y["$[]"](0))["$start_with?"](ye("RS")))?((y=ze["~"])===E?E:y["$[]"](0)).$slice(1,((y=ze["~"])===E?E:y["$[]"](0)).$length()):(G(((y=ze["~"])===E?E:y["$[]"](0))["$start_with?"]("icon:"))?(y=["icon",["size"]],j=y[0],de=y[1]):(y=["image",["alt","width","height"]],j=y[0],de=y[1]),oe=(y=ze["~"])===E?E:y["$[]"](1),ke=L.$parse_attributes((y=ze["~"])===E?E:y["$[]"](2),de,V(["unescape_input"],{unescape_input:!0})),Ge(j,"icon")||(m.$register("images",oe),ke["$[]="]("imagesdir",o["$[]"]("imagesdir"))),G(U=ke["$[]"]("alt"))||ke["$[]="]("alt",(y=["default-alt",ye("Helpers").$basename(oe,!0).$tr("_-"," ")],Ie(ke,"[]=",y),y[y.length-1])),ye("Inline").$new(L,"image",E,V(["type","target","attributes"],{type:j,target:oe,attributes:ke})).$convert())},{$$s:q})),(G(B["$include?"]("(("))&&G(B["$include?"]("))"))||G(g)&&G(B["$include?"]("dexterm")))&&(B=Ie(B,"gsub",[ye("InlineIndextermMacroRx")],function k(){var y,L,j=k.$$s==null?this:k.$$s,de=E,oe=E,ke=E,Be=E,Xe=E,it=E,ht=E,at=E,mt=E,yt=E,xt=E,vt=E,Tt=E,St=E;switch((y=ze["~"])===E?E:y["$[]"](1)){case"indexterm":return G(((y=ze["~"])===E?E:y["$[]"](0))["$start_with?"](ye("RS")))?((y=ze["~"])===E?E:y["$[]"](0)).$slice(1,((y=ze["~"])===E?E:y["$[]"](0)).$length()):(G((de=j.$normalize_text((y=ze["~"])===E?E:y["$[]"](2),!0,!0))["$include?"]("="))?G(oe=(ke=ye("AttributeList").$new(de,j).$parse())["$[]"](1))?(ke["$[]="]("terms",[oe]),G(Be=ke["$[]"]("see-also"))&&ke["$[]="]("see-also",G(Be["$include?"](","))?Ie(Be.$split(","),"map",[],function(Bt){return Bt==null&&(Bt=E),Bt.$lstrip()}):[Be])):ke=V(["terms"],{terms:de}):ke=V(["terms"],{terms:j.$split_simple_csv(de)}),ye("Inline").$new(j,"indexterm",E,V(["attributes"],{attributes:ke})).$convert());case"indexterm2":return G(((y=ze["~"])===E?E:y["$[]"](0))["$start_with?"](ye("RS")))?((y=ze["~"])===E?E:y["$[]"](0)).$slice(1,((y=ze["~"])===E?E:y["$[]"](0)).$length()):(G((Xe=j.$normalize_text((y=ze["~"])===E?E:y["$[]"](2),!0,!0))["$include?"]("="))&&(Xe=G(it=G(ht=(ke=ye("AttributeList").$new(Xe,j).$parse())["$[]"](1))?ht:ke=E)?it:Xe,G(ke)&&G(Be=ke["$[]"]("see-also"))&&ke["$[]="]("see-also",G(Be["$include?"](","))?Ie(Be.$split(","),"map",[],function(Bt){return Bt==null&&(Bt=E),Bt.$lstrip()}):[Be])),ye("Inline").$new(j,"indexterm",Xe,V(["attributes","type"],{attributes:ke,type:"visible"})).$convert());default:if(at=(y=ze["~"])===E?E:y["$[]"](3),G(((y=ze["~"])===E?E:y["$[]"](0))["$start_with?"](ye("RS"))))if(G(at["$start_with?"]("("))&&G(at["$end_with?"](")")))at=at.$slice(1,Je(at.$length(),2)),y=[!0,"(",")"],mt=y[0],yt=y[1],xt=y[2];else return((y=ze["~"])===E?E:y["$[]"](0)).$slice(1,((y=ze["~"])===E?E:y["$[]"](0)).$length());else mt=!0,G(at["$start_with?"]("("))?G(at["$end_with?"](")"))?(y=[at.$slice(1,Je(at.$length(),2)),!1],at=y[0],mt=y[1]):(y=[at.$slice(1,at.$length()),"(",""],at=y[0],yt=y[1],xt=y[2]):G(at["$end_with?"](")"))&&(y=[at.$chop(),"",")"],at=y[0],yt=y[1],xt=y[2]);return G(mt)?(G((Xe=j.$normalize_text(at,!0))["$include?"](";&"))&&(G(Xe["$include?"](" >> "))?(L=Xe.$partition(" >> "),y=qe(L),Xe=y[0]==null?E:y[0],y[1]==null||y[1],vt=y[2]==null?E:y[2],ke=V(["see"],{see:vt})):G(Xe["$include?"](" &> "))&&(L=Xe.$split(" &> "),y=qe(L),Xe=y[0]==null?E:y[0],Be=We(y,1),ke=V(["see-also"],{"see-also":Be}))),Tt=ye("Inline").$new(j,"indexterm",Xe,V(["attributes","type"],{attributes:ke,type:"visible"})).$convert()):(ke=V([],{}),G((St=j.$normalize_text(at,!0))["$include?"](";&"))&&(G(St["$include?"](" >> "))?(L=St.$partition(" >> "),y=qe(L),St=y[0]==null?E:y[0],y[1]==null||y[1],vt=y[2]==null?E:y[2],ke["$[]="]("see",vt)):G(St["$include?"](" &> "))&&(L=St.$split(" &> "),y=qe(L),St=y[0]==null?E:y[0],Be=We(y,1),ke["$[]="]("see-also",Be))),ke["$[]="]("terms",j.$split_simple_csv(St)),Tt=ye("Inline").$new(j,"indexterm",E,V(["attributes"],{attributes:ke})).$convert()),G(yt)?""+yt+Tt+xt:Tt}},{$$s:q})),G(ee)&&G(B["$include?"]("://"))&&(B=Ie(B,"gsub",[ye("InlineLinkRx")],function k(){var y,L,j=k.$$s==null?this:k.$$s,de=E,oe=E,ke=E,Be=E,Xe=E,it=E,ht=E,at=E,mt=E;if(G((de=v((y=ze["~"])===E?E:y["$[]"](2),G(U=(y=ze["~"])===E?E:y["$[]"](3))?U:(y=ze["~"])===E?E:y["$[]"](5)))["$start_with?"](ye("RS"))))return v(((y=ze["~"])===E?E:y["$[]"](0)).$slice(0,oe=((y=ze["~"])===E?E:y["$[]"](1)).$length()),((y=ze["~"])===E?E:y["$[]"](0)).$slice(v(oe,1),((y=ze["~"])===E?E:y["$[]"](0)).$length()));if(y=[(L=ze["~"])===E?E:L["$[]"](1),""],ke=y[0],Be=y[1],G((y=ze["~"])===E?E:y["$[]"](4)))Ge(ke,"link:")&&(ke=""),G((Xe=(y=ze["~"])===E?E:y["$[]"](4))["$empty?"]())&&(Xe=E);else{switch(ke){case"link:":case'"':case"'":return(y=ze["~"])===E?E:y["$[]"](0)}switch((y=ze["~"])===E?E:y["$[]"](6)){case";":if(G(ke["$start_with?"]("<"))&&G(de["$end_with?"](">"))?(ke=ke.$slice(4,ke.$length()),de=de.$slice(0,Je(de.$length(),4))):G((de=de.$chop())["$end_with?"](")"))?(de=de.$chop(),Be=");"):Be=";",G(de["$end_with?"]("://")))return(y=ze["~"])===E?E:y["$[]"](0);break;case":":if(G((de=de.$chop())["$end_with?"](")"))?(de=de.$chop(),Be="):"):Be=":",G(de["$end_with?"]("://")))return(y=ze["~"])===E?E:y["$[]"](0);break}}return y=[E,V(["type"],{type:"link"})],it=y[0],ht=y[1],G(Xe)?(G(Xe["$include?"](ye("R_SB")))&&(at=Xe=Xe.$gsub(ye("ESC_R_SB"),ye("R_SB"))),Ue(m.$compat_mode())&&G(Xe["$include?"]("="))&&(L=j.$extract_attributes_from_text(Xe,""),y=qe(L),Xe=y[0]==null?E:y[0],it=y[1]==null?E:y[1],at=Xe,ht["$[]="]("id",it["$[]"]("id"))),G(Xe["$end_with?"]("^"))&&(at=Xe=Xe.$chop(),G(it)?G(U=it["$[]"]("window"))||it["$[]="]("window","_blank"):it=V(["window"],{window:"_blank"})),G(at)&&G(at["$empty?"]())&&(Xe=G(o["$key?"]("hide-uri-scheme"))?de.$sub(ye("UriSniffRx"),""):de,mt=!0)):(Xe=G(o["$key?"]("hide-uri-scheme"))?de.$sub(ye("UriSniffRx"),""):de,mt=!0),G(mt)&&(G(it)?it["$[]="]("role",G(it["$key?"]("role"))?"bare "+it["$[]"]("role"):"bare"):it=V(["role"],{role:"bare"})),m.$register("links",(y=["target",de],Ie(ht,"[]=",y),y[y.length-1])),G(it)&&ht["$[]="]("attributes",it),""+ke+ye("Inline").$new(j,"anchor",Xe,ht).$convert()+Be},{$$s:q})),G($e)&&(G(B["$include?"]("link:"))||G(B["$include?"]("ilto:")))&&(B=Ie(B,"gsub",[ye("InlineLinkMacroRx")],function k(){var y,L,j=k.$$s==null?this:k.$$s,de=E,oe=E,ke=E,Be=E,Xe=E,it=E;return G(((y=ze["~"])===E?E:y["$[]"](0))["$start_with?"](ye("RS")))?((y=ze["~"])===E?E:y["$[]"](0)).$slice(1,((y=ze["~"])===E?E:y["$[]"](0)).$length()):(G(de=(y=ze["~"])===E?E:y["$[]"](1))?oe=v("mailto:",ke=(y=ze["~"])===E?E:y["$[]"](2)):oe=(y=ze["~"])===E?E:y["$[]"](2),y=[E,V(["type"],{type:"link"})],Be=y[0],Xe=y[1],G((it=(y=ze["~"])===E?E:y["$[]"](3))["$empty?"]())||(G(it["$include?"](ye("R_SB")))&&(it=it.$gsub(ye("ESC_R_SB"),ye("R_SB"))),G(de)?Ue(m.$compat_mode())&&G(it["$include?"](","))&&(L=j.$extract_attributes_from_text(it,""),y=qe(L),it=y[0]==null?E:y[0],Be=y[1]==null?E:y[1],Xe["$[]="]("id",Be["$[]"]("id")),G(Be["$key?"](2))&&(G(Be["$key?"](3))?oe=""+oe+"?subject="+ye("Helpers").$encode_uri_component(Be["$[]"](2))+"&body="+ye("Helpers").$encode_uri_component(Be["$[]"](3)):oe=""+oe+"?subject="+ye("Helpers").$encode_uri_component(Be["$[]"](2)))):Ue(m.$compat_mode())&&G(it["$include?"]("="))&&(L=j.$extract_attributes_from_text(it,""),y=qe(L),it=y[0]==null?E:y[0],Be=y[1]==null?E:y[1],Xe["$[]="]("id",Be["$[]"]("id"))),G(it["$end_with?"]("^"))&&(it=it.$chop(),G(Be)?G(U=Be["$[]"]("window"))||Be["$[]="]("window","_blank"):Be=V(["window"],{window:"_blank"}))),G(it["$empty?"]())&&(G(de)?it=ke:(G(o["$key?"]("hide-uri-scheme"))?G((it=oe.$sub(ye("UriSniffRx"),""))["$empty?"]())&&(it=oe):it=oe,G(Be)?Be["$[]="]("role",G(Be["$key?"]("role"))?"bare "+Be["$[]"]("role"):"bare"):Be=V(["role"],{role:"bare"}))),m.$register("links",(y=["target",oe],Ie(Xe,"[]=",y),y[y.length-1])),G(Be)&&Xe["$[]="]("attributes",Be),ye("Inline").$new(j,"anchor",it,Xe).$convert())},{$$s:q})),G(B["$include?"]("@"))&&(B=Ie(B,"gsub",[ye("InlineEmailRx")],function k(){var y,L=k.$$s==null?this:k.$$s,j=E,de=E;return G((y=ze["~"])===E?E:y["$[]"](1))?Ge((y=ze["~"])===E?E:y["$[]"](1),ye("RS"))?((y=ze["~"])===E?E:y["$[]"](0)).$slice(1,((y=ze["~"])===E?E:y["$[]"](0)).$length()):(y=ze["~"])===E?E:y["$[]"](0):(j=v("mailto:",de=(y=ze["~"])===E?E:y["$[]"](0)),m.$register("links",j),ye("Inline").$new(L,"anchor",de,V(["type","target"],{type:"link",target:j})).$convert())},{$$s:q})),G(ie)&&Ge(q.context,"list_item")&&Ge(q.parent.$style(),"bibliography")&&(B=Ie(B,"sub",[ye("InlineBiblioAnchorRx")],function k(){var y,L=k.$$s==null?this:k.$$s;return ye("Inline").$new(L,"anchor",(y=ze["~"])===E?E:y["$[]"](2),V(["type","id"],{type:"bibref",id:(y=ze["~"])===E?E:y["$[]"](1)})).$convert()},{$$s:q})),(G(ie)&&G(B["$include?"]("[["))||G($e)&&G(B["$include?"]("or:")))&&(B=Ie(B,"gsub",[ye("InlineAnchorRx")],function k(){var y,L=k.$$s==null?this:k.$$s,j=E,de=E;return G((y=ze["~"])===E?E:y["$[]"](1))?((y=ze["~"])===E?E:y["$[]"](0)).$slice(1,((y=ze["~"])===E?E:y["$[]"](0)).$length()):(G(j=(y=ze["~"])===E?E:y["$[]"](2))?de=(y=ze["~"])===E?E:y["$[]"](3):(j=(y=ze["~"])===E?E:y["$[]"](4),G(de=(y=ze["~"])===E?E:y["$[]"](5))&&G(de["$include?"](ye("R_SB")))&&(de=de.$gsub(ye("ESC_R_SB"),ye("R_SB")))),ye("Inline").$new(L,"anchor",de,V(["type","id"],{type:"ref",id:j})).$convert())},{$$s:q})),(G(B["$include?"]("&"))&&G(B["$include?"](";&l"))||G($e)&&G(B["$include?"]("xref:")))&&(B=Ie(B,"gsub",[ye("InlineXrefMacroRx")],function k(){var y,L,j=k.$$s==null?this:k.$$s,de=E,oe=E,ke=E,Be=E,Xe=E,it=E,ht=E,at=E,mt=E,yt=E;return G(((y=ze["~"])===E?E:y["$[]"](0))["$start_with?"](ye("RS")))?((y=ze["~"])===E?E:y["$[]"](0)).$slice(1,((y=ze["~"])===E?E:y["$[]"](0)).$length()):(de=V([],{}),G(oe=(y=ze["~"])===E?E:y["$[]"](1))?G(oe["$include?"](","))&&(L=oe.$partition(","),y=qe(L),oe=y[0]==null?E:y[0],y[1]==null||y[1],ke=y[2]==null?E:y[2],G((ke=ke.$lstrip())["$empty?"]())&&(ke=E)):(Be=!0,oe=(y=ze["~"])===E?E:y["$[]"](2),G(ke=(y=ze["~"])===E?E:y["$[]"](3))&&(G(ke["$include?"](ye("R_SB")))&&(ke=ke.$gsub(ye("ESC_R_SB"),ye("R_SB"))),Ue(m.$compat_mode())&&G(ke["$include?"]("="))&&(L=j.$extract_attributes_from_text(ke),y=qe(L),ke=y[0]==null?E:y[0],de=y[1]==null?E:y[1]))),G(m.$compat_mode())?Xe=oe:G(it=oe.$index("#"))&&je(oe["$[]"](Je(it,1)),"&")?G(st(it,0))?(G(st(ht=Je(Je(oe.$length(),1),it),0))?(y=[oe.$slice(0,it),oe.$slice(v(it,1),ht)],at=y[0],Xe=y[1]):at=oe.$chop(),G(Be)?G(at["$end_with?"](".adoc"))?mt=at=at.$slice(0,Je(at.$length(),5)):Ue(ye("Helpers")["$extname?"](at))&&(mt=at):G(Ie(at,"end_with?",dt(ye("ASCIIDOC_EXTENSIONS").$keys())))?mt=at=at.$slice(0,at.$rindex(".")):mt=at):(y=[oe,oe.$slice(1,oe.$length())],yt=y[0],Xe=y[1]):G(Be)?G(oe["$end_with?"](".adoc"))?mt=at=oe.$slice(0,Je(oe.$length(),5)):G(ye("Helpers")["$extname?"](oe))?at=oe:Xe=oe:Xe=oe,G(yt)?(oe=Xe,G(j.$logger()["$info?"]())&&Ue(m.$catalog()["$[]"]("refs")["$[]"](oe))&&j.$logger().$info("possible invalid reference: "+oe)):G(at)?G(mt)&&(Ge(m.$attributes()["$[]"]("docname"),at)||G(m.$catalog()["$[]"]("includes")["$[]"](at)))?G(Xe)?(y=[Xe,E,"#"+Xe],oe=y[0],at=y[1],yt=y[2],G(j.$logger()["$info?"]())&&Ue(m.$catalog()["$[]"]("refs")["$[]"](oe))&&j.$logger().$info("possible invalid reference: "+oe)):(y=[E,E,"#"],oe=y[0],at=y[1],yt=y[2]):(y=[at,""+(G(U=m.$attributes()["$[]"]("relfileprefix"))?U:"")+at+(G(mt)?m.$attributes().$fetch("relfilesuffix",m.$outfilesuffix()):"")],oe=y[0],at=y[1],G(Xe)?(y=[""+oe+"#"+Xe,""+at+"#"+Xe],oe=y[0],yt=y[1]):yt=at):G(m.$compat_mode())||Ue(ye("Compliance").$natural_xrefs())?(y=[Xe,"#"+Xe],oe=y[0],yt=y[1],G(j.$logger()["$info?"]())&&Ue(m.$catalog()["$[]"]("refs")["$[]"](oe))&&j.$logger().$info("possible invalid reference: "+oe)):G(m.$catalog()["$[]"]("refs")["$[]"](Xe))?(y=[Xe,"#"+Xe],oe=y[0],yt=y[1]):(G(Xe["$include?"](" "))||je(Xe.$downcase(),Xe))&&G(oe=m.$resolve_id(Xe))?(y=[oe,"#"+oe],Xe=y[0],yt=y[1]):(y=[Xe,"#"+Xe],oe=y[0],yt=y[1],G(j.$logger()["$info?"]())&&j.$logger().$info("possible invalid reference: "+oe)),de["$[]="]("path",at),de["$[]="]("fragment",Xe),de["$[]="]("refid",oe),ye("Inline").$new(j,"anchor",ke,V(["type","target","attributes"],{type:"xref",target:yt,attributes:de})).$convert())},{$$s:q})),G($e)&&G(B["$include?"]("tnote"))&&(B=Ie(B,"gsub",[ye("InlineFootnoteMacroRx")],function k(){var y,L,j,de=k.$$s==null?this:k.$$s,oe=E,ke=E,Be=E,Xe=E,it=E,ht=E;if(G(((y=ze["~"])===E?E:y["$[]"](0))["$start_with?"](ye("RS"))))return((y=ze["~"])===E?E:y["$[]"](0)).$slice(1,((y=ze["~"])===E?E:y["$[]"](0)).$length());if(G((y=ze["~"])===E?E:y["$[]"](1)))if(G((y=ze["~"])===E?E:y["$[]"](3)))L=((j=ze["~"])===E?E:j["$[]"](3)).$split(",",2),y=qe(L),oe=y[0]==null?E:y[0],ke=y[1]==null?E:y[1],G(m.$compat_mode())||de.$logger().$warn("found deprecated footnoteref macro: "+((y=ze["~"])===E?E:y["$[]"](0))+"; use footnote macro with target instead");else return(y=ze["~"])===E?E:y["$[]"](0);else oe=(y=ze["~"])===E?E:y["$[]"](2),ke=(y=ze["~"])===E?E:y["$[]"](3);if(G(oe))G(Be=Ie(m.$footnotes(),"find",[],function(mt){return mt==null&&(mt=E),mt.$id()["$=="](oe)}))?(y=[Be.$index(),Be.$text()],Xe=y[0],ke=y[1],y=["xref",oe,E],it=y[0],ht=y[1],oe=y[2]):G(ke)?(ke=de.$restore_passthroughs(de.$normalize_text(ke,!0,!0)),Xe=m.$counter("footnote-number"),m.$register("footnotes",tt(ye("Document"),"Footnote").$new(Xe,oe,ke)),y=["ref",E],it=y[0],ht=y[1]):(de.$logger().$warn("invalid footnote reference: "+oe),y=["xref",oe,oe,E],it=y[0],ht=y[1],ke=y[2],oe=y[3]);else if(G(ke))ke=de.$restore_passthroughs(de.$normalize_text(ke,!0,!0)),Xe=m.$counter("footnote-number"),m.$register("footnotes",tt(ye("Document"),"Footnote").$new(Xe,oe,ke)),it=ht=E;else return(y=ze["~"])===E?E:y["$[]"](0);return ye("Inline").$new(de,"footnote",ke,V(["attributes","id","target","type"],{attributes:V(["index"],{index:Xe}),id:oe,target:ht,type:it})).$convert()},{$$s:q})),B}),C(Te,"$sub_post_replacements",function(B){var q=this,ie=E,ee=E;return q.document==null&&(q.document=E),q.attributes==null&&(q.attributes=E),G(q.attributes["$[]"]("hardbreaks-option"))||G(q.document.$attributes()["$[]"]("hardbreaks-option"))?(ie=B.$split(ye("LF"),-1),G($t(ie.$size(),2))?B:(ee=ie.$pop(),Ie(ie,"map",[],function $e(U){var g=$e.$$s==null?this:$e.$$s;return U==null&&(U=E),ye("Inline").$new(g,"break",G(U["$end_with?"](ye("HARD_LINE_BREAK")))?U.$slice(0,Je(U.$length(),2)):U,V(["type"],{type:"line"})).$convert()},{$$s:q})["$<<"](ee).$join(ye("LF")))):G(B["$include?"](ye("PLUS")))&&G(B["$include?"](ye("HARD_LINE_BREAK")))?Ie(B,"gsub",[ye("HardLineBreakRx")],function $e(){var U,g=$e.$$s==null?this:$e.$$s;return ye("Inline").$new(g,"break",(U=ze["~"])===E?E:U["$[]"](1),V(["type"],{type:"line"})).$convert()},{$$s:q}):B}),C(Te,"$sub_source",function(B,q){var ie=this;return G(q)?ie.$sub_callouts(ie.$sub_specialchars(B)):ie.$sub_specialchars(B)}),C(Te,"$sub_callouts",function(B){var q=this,ie=E,ee=E;return ie=G(q["$attr?"]("line-comment"))?ye("CalloutSourceRxMap")["$[]"](q.$attr("line-comment")):ye("CalloutSourceRx"),ee=0,Ie(B,"gsub",[ie],function $e(){var U,g=$e.$$s==null?this:$e.$$s,o=E;return g.document==null&&(g.document=E),G((U=ze["~"])===E?E:U["$[]"](2))?((U=ze["~"])===E?E:U["$[]"](0)).$sub(ye("RS"),""):ye("Inline").$new(g,"callout",Ge((U=ze["~"])===E?E:U["$[]"](4),".")?(ee=v(ee,1)).$to_s():(U=ze["~"])===E?E:U["$[]"](4),V(["id","attributes"],{id:g.document.$callouts().$read_next_id(),attributes:V(["guard"],{guard:G(o=(U=ze["~"])===E?E:U["$[]"](1))?o:Ge((U=ze["~"])===E?E:U["$[]"](3),"--")?["<!--","-->"]:E})})).$convert()},{$$s:q})}),C(Te,"$highlight_source",function(B,q){var ie,ee,$e=this,U=E,g=E,o=E,m=E,T=E,k=E,y=E,L=E,j=E,de=E;return $e.document==null&&($e.document=E),$e.passthroughs==null&&($e.passthroughs=E),G(U=$e.document.$syntax_highlighter())&&G(U["$highlight?"]())?(G(q)&&(ee=$e.$extract_callouts(B),ie=qe(ee),B=ie[0]==null?E:ie[0],g=ie[1]==null?E:ie[1]),o=$e.document.$attributes(),m=U.$name(),G(k=G($e["$attr?"]("linenums"))?(G(y=o["$[]"](""+m+"-linenums-mode"))?y:"table").$to_sym():E)&&G($t(T=$e.$attr("start",1).$to_i(),1))&&(T=1),G($e["$attr?"]("highlight"))&&(L=$e.$resolve_lines_to_highlight(B,$e.$attr("highlight"),T)),ee=U.$highlight($e,B,$e.$attr("language"),V(["callouts","css_mode","highlight_lines","number_lines","start_line_number","style"],{callouts:g,css_mode:(G(y=o["$[]"](""+m+"-css"))?y:"class").$to_sym(),highlight_lines:L,number_lines:k,start_line_number:T,style:o["$[]"](""+m+"-style")})),ie=qe(ee),j=ie[0]==null?E:ie[0],de=ie[1]==null?E:ie[1],G($e.passthroughs["$empty?"]())||(j=j.$gsub(ye("HighlightedPassSlotRx"),""+ye("PASS_START")+"\\1"+ye("PASS_END"))),G(g["$nil_or_empty?"]())?j:$e.$restore_callouts(j,g,de)):$e.$sub_source(B,q)}),C(Te,"$resolve_lines_to_highlight",function(B,q,ie){var ee=E,$e=E;return ie==null&&(ie=E),ee=[],G(q["$include?"](" "))&&(q=q.$delete(" ")),Ie(G(q["$include?"](","))?q.$split(","):q.$split(";"),"map",[],function(g){var o,m,T=E,k=E,y=E,L=E,j=E;return g==null&&(g=E),G(g["$start_with?"]("!"))&&(g=g.$slice(1,g.$length()),T=!0),G(k=G(g["$include?"](".."))?"..":G(g["$include?"]("-"))?"-":E)?(m=g.$partition(k),o=qe(m),y=o[0]==null?E:o[0],o[1]==null||o[1],L=o[2]==null?E:o[2],(G(L["$empty?"]())||G($t(L=L.$to_i(),0)))&&(L=v(B.$count(ye("LF")),1)),G(T)?ee=Je(ee,a.Range.$new(y.$to_i(),L,!1).$to_a()):ee=ee["$|"](a.Range.$new(y.$to_i(),L,!1).$to_a())):G(T)?ee.$delete(g.$to_i()):Ue(ee["$include?"](j=g.$to_i()))?ee["$<<"](j):E}),Ge($e=G(ie)?Je(ie,1):0,0)||(ee=Ie(ee,"map",[],function(g){return g==null&&(g=E),Je(g,$e)})),ee.$sort()},-3),C(Te,"$extract_passthroughs",function(B){var q,ie,ee=this,$e=E,U=E,g=E,o=E,m=E;return ee.document==null&&(ee.document=E),ee.passthroughs==null&&(ee.passthroughs=E),$e=ee.document.$compat_mode(),U=ee.passthroughs,(G(B["$include?"]("++"))||G(B["$include?"]("$$"))||G(B["$include?"]("ss:")))&&(B=Ie(B,"gsub",[ye("InlinePassMacroRx")],function T(){var k,y=T.$$s==null?this:T.$$s,L=E,j=E,de=E,oe=E,ke=E,Be=E,Xe=E,it=E,ht=E;if(G(L=(k=ze["~"])===E?E:k["$[]"](4))){if(G($e)&&Ge(L,"++"))return(G((k=ze["~"])===E?E:k["$[]"](2))?""+((k=ze["~"])===E?E:k["$[]"](1))+"["+((k=ze["~"])===E?E:k["$[]"](2))+"]"+((k=ze["~"])===E?E:k["$[]"](3)):""+((k=ze["~"])===E?E:k["$[]"](1))+((k=ze["~"])===E?E:k["$[]"](3)))+"++"+y.$extract_passthroughs((k=ze["~"])===E?E:k["$[]"](5))+"++";if(G(j=(k=ze["~"])===E?E:k["$[]"](2))){if(G(st(de=((k=ze["~"])===E?E:k["$[]"](3)).$length(),0)))return""+((k=ze["~"])===E?E:k["$[]"](1))+"["+j+"]"+z(ye("RS"),Je(de,1))+L+((k=ze["~"])===E?E:k["$[]"](5))+L;Ge((k=ze["~"])===E?E:k["$[]"](1),ye("RS"))?oe="["+j+"]":Ge(L,"++")?Ge(j,"x-")?(ke=!0,Be=V([],{})):G(j["$end_with?"](" x-"))?(ke=!0,Be=y.$parse_quoted_text_attributes(j.$slice(0,Je(j.$length(),3)))):Be=y.$parse_quoted_text_attributes(j):Be=y.$parse_quoted_text_attributes(j)}else if(G(st(de=((k=ze["~"])===E?E:k["$[]"](3)).$length(),0)))return""+z(ye("RS"),Je(de,1))+L+((k=ze["~"])===E?E:k["$[]"](5))+L;Xe=Ge(L,"+++")?[]:ye("BASIC_SUBS"),G(Be)?G(ke)?U["$[]="](it=U.$size(),V(["text","subs","type","attributes"],{text:(k=ze["~"])===E?E:k["$[]"](5),subs:ye("NORMAL_SUBS"),type:"monospaced",attributes:Be})):U["$[]="](it=U.$size(),V(["text","subs","type","attributes"],{text:(k=ze["~"])===E?E:k["$[]"](5),subs:Xe,type:"unquoted",attributes:Be})):U["$[]="](it=U.$size(),V(["text","subs"],{text:(k=ze["~"])===E?E:k["$[]"](5),subs:Xe}))}else{if(Ge((k=ze["~"])===E?E:k["$[]"](6),ye("RS")))return((k=ze["~"])===E?E:k["$[]"](0)).$slice(1,((k=ze["~"])===E?E:k["$[]"](0)).$length());G(Xe=(k=ze["~"])===E?E:k["$[]"](7))?U["$[]="](it=U.$size(),V(["text","subs"],{text:y.$normalize_text((k=ze["~"])===E?E:k["$[]"](8),E,!0),subs:y.$resolve_pass_subs(Xe)})):U["$[]="](it=U.$size(),V(["text"],{text:y.$normalize_text((k=ze["~"])===E?E:k["$[]"](8),E,!0)}))}return""+(G(ht=oe)?ht:"")+ye("PASS_START")+it+ye("PASS_END")},{$$s:ee})),ie=ye("InlinePassRx")["$[]"]($e),q=qe(ie),g=q[0]==null?E:q[0],o=q[1]==null?E:q[1],m=q[2]==null?E:q[2],(G(B["$include?"](g))||G(o)&&G(B["$include?"](o)))&&(B=Ie(B,"gsub",[m],function T(){var k,y=T.$$s==null?this:T.$$s,L=E,j=E,de=E,oe=E,ke=E,Be=E,Xe=E,it=E,ht=E,at=E,mt=E,yt=E;if(L=(k=ze["~"])===E?E:k["$[]"](1),j=G(de=(k=ze["~"])===E?E:k["$[]"](4))?de:(k=ze["~"])===E?E:k["$[]"](3),G((k=ze["~"])===E?E:k["$[]"](5))&&(oe=!0),ke=(k=ze["~"])===E?E:k["$[]"](6),Be=(k=ze["~"])===E?E:k["$[]"](7),Xe=(k=ze["~"])===E?E:k["$[]"](8),G($e)?it=!0:G(j)&&(Ge(j,"x-")||G(j["$end_with?"](" x-")))&&(it=ht=!0),G(j)){if(G(oe))return""+L+"["+j+"]"+ke.$slice(1,ke.$length());if(Ge(L,ye("RS"))){if(G(ht)&&Ge(Be,"`"))return""+L+"["+j+"]"+ke;L="["+j+"]"}else G(ht)?at=Ge(j,"x-")?V([],{}):y.$parse_quoted_text_attributes(j.$slice(0,Je(j.$length(),3))):at=y.$parse_quoted_text_attributes(j)}else{if(G(oe))return""+L+ke.$slice(1,ke.$length());if(G($e)&&Ge(L,ye("RS")))return ke}return G($e)?U["$[]="](mt=U.$size(),V(["text","subs","attributes","type"],{text:Xe,subs:ye("BASIC_SUBS"),attributes:at,type:"monospaced"})):G(at)?G(it)?(yt=Ge(Be,"`")?ye("BASIC_SUBS"):ye("NORMAL_SUBS"),U["$[]="](mt=U.$size(),V(["text","subs","attributes","type"],{text:Xe,subs:yt,attributes:at,type:"monospaced"}))):U["$[]="](mt=U.$size(),V(["text","subs","attributes","type"],{text:Xe,subs:ye("BASIC_SUBS"),attributes:at,type:"unquoted"})):U["$[]="](mt=U.$size(),V(["text","subs"],{text:Xe,subs:ye("BASIC_SUBS")})),""+L+ye("PASS_START")+mt+ye("PASS_END")},{$$s:ee})),G(B["$include?"](":"))&&(G(B["$include?"]("stem:"))||G(B["$include?"]("math:")))&&(B=Ie(B,"gsub",[ye("InlineStemMacroRx")],function T(){var k,y=T.$$s==null?this:T.$$s,L=E,j=E,de=E,oe=E;return y.document==null&&(y.document=E),G(((k=ze["~"])===E?E:k["$[]"](0))["$start_with?"](ye("RS")))?((k=ze["~"])===E?E:k["$[]"](0)).$slice(1,((k=ze["~"])===E?E:k["$[]"](0)).$length()):(Ge(L=((k=ze["~"])===E?E:k["$[]"](1)).$to_sym(),"stem")&&(L=ye("STEM_TYPE_ALIASES")["$[]"](y.document.$attributes()["$[]"]("stem")).$to_sym()),j=(k=ze["~"])===E?E:k["$[]"](2),de=y.$normalize_text((k=ze["~"])===E?E:k["$[]"](3),E,!0),Ge(L,"latexmath")&&G(de["$start_with?"]("$"))&&G(de["$end_with?"]("$"))&&(de=de.$slice(1,Je(de.$length(),2))),j=G(j)?y.$resolve_pass_subs(j):G(y.document["$basebackend?"]("html"))?ye("BASIC_SUBS"):E,U["$[]="](oe=U.$size(),V(["text","subs","type"],{text:de,subs:j,type:L})),""+ye("PASS_START")+oe+ye("PASS_END"))},{$$s:ee})),B}),C(Te,"$restore_passthroughs",function(B){var q=this,ie=E;return q.passthroughs==null&&(q.passthroughs=E),ie=q.passthroughs,Ie(B,"gsub",[ye("PassSlotRx")],function ee(){var $e,U=ee.$$s==null?this:ee.$$s,g=E,o=E,m=E,T=E,k=E;return G(g=ie["$[]"]((($e=ze["~"])===E?E:$e["$[]"](1)).$to_i()))?(o=U.$apply_subs(g["$[]"]("text"),g["$[]"]("subs")),G(m=g["$[]"]("type"))&&(G(T=g["$[]"]("attributes"))&&(k=T["$[]"]("id")),o=ye("Inline").$new(U,"quoted",o,V(["type","id","attributes"],{type:m,id:k,attributes:T})).$convert()),G(o["$include?"](ye("PASS_START")))?U.$restore_passthroughs(o):o):(U.$logger().$error("unresolved passthrough detected: "+B),"??pass??")},{$$s:q})}),C(Te,"$resolve_subs",function(B,q,ie,ee){var $e=this,U=E,g=E,o=E,m=E;return q==null&&(q="block"),ie==null&&(ie=E),ee==null&&(ee=E),G(B["$nil_or_empty?"]())||(U=E,G(B["$include?"](" "))&&(B=B.$delete(" ")),g=ye("SubModifierSniffRx")["$match?"](B),Ie(B.$split(","),"each",[],function(k){var y=E,L=E,j=E,de=E,oe=E,ke=E;if(k==null&&(k=E),y=E,G(g)&&(Ge(L=k.$chr(),"+")?(y="append",k=k.$slice(1,k.$length())):Ge(L,"-")?(y="remove",k=k.$slice(1,k.$length())):G(k["$end_with?"]("+"))&&(y="prepend",k=k.$chop())),k=k.$to_sym(),Ge(q,"inline")&&(Ge(k,"verbatim")||Ge(k,"v"))?j=ye("BASIC_SUBS"):G(ye("SUB_GROUPS")["$key?"](k))?j=ye("SUB_GROUPS")["$[]"](k):Ge(q,"inline")&&Ge(k.$length(),1)&&G(ye("SUB_HINTS")["$key?"](k))?(de=ye("SUB_HINTS")["$[]"](k),G(oe=ye("SUB_GROUPS")["$[]"](de))?j=oe:j=[de]):j=[k],G(y))switch(U=G(ke=U)?ke:G(ie)?ie.$drop(0):[],y){case"append":return U=v(U,j);case"prepend":return U=v(j,U);case"remove":return U=Je(U,j);default:return E}else return U=G(ke=U)?ke:[],U=v(U,j)}),!G(U))?E:(o=U["$&"](ye("SUB_OPTIONS")["$[]"](q)),G(Je(U,o)["$empty?"]())||(m=Je(U,o),$e.$logger().$warn("invalid substitution type"+(G(st(m.$size(),1))?"s":"")+(G(ee)?" for ":"")+ee+": "+m.$join(", "))),o)},-2),C(Te,"$resolve_block_subs",function(B,q,ie){var ee=this;return ee.$resolve_subs(B,"block",q,ie)}),C(Te,"$resolve_pass_subs",function(B){var q=this;return q.$resolve_subs(B,"inline",E,"passthrough macro")}),C(Te,"$expand_subs",function(B,q){var ie=this,ee=E,$e=E,U=E;return q==null&&(q=E),Ye(tt("Symbol"),ee=B)?Ge(B,"none")?E:G($e=ye("SUB_GROUPS")["$[]"](B))?$e:[B]:Ye(tt("Array"),ee)?(U=[],Ie(B,"each",[],function(o){var m=E;return o==null&&(o=E),Ge(o,"none")?E:G(m=ye("SUB_GROUPS")["$[]"](o))?U=v(U,m):U["$<<"](o)}),G(U["$empty?"]())?E:U):ie.$resolve_subs(B,"inline",E,q)},-2),C(Te,"$commit_subs",function(){var B=this,q=E,ie=E,ee=E,$e=E,U=E;if(B.default_subs==null&&(B.default_subs=E),B.content_model==null&&(B.content_model=E),B.context==null&&(B.context=E),B.subs==null&&(B.subs=E),B.attributes==null&&(B.attributes=E),B.document==null&&(B.document=E),B.style==null&&(B.style=E),!G(q=B.default_subs))switch(B.content_model){case"simple":q=ye("NORMAL_SUBS");break;case"verbatim":q=Ge(B.context,"verse")?ye("NORMAL_SUBS"):ye("VERBATIM_SUBS");break;case"raw":q=Ge(B.context,"stem")?ye("BASIC_SUBS"):ye("NO_SUBS");break;default:return B.subs}return G(ie=B.attributes["$[]"]("subs"))?B.subs=G(ee=B.$resolve_block_subs(ie,q,B.context))?ee:[]:B.subs=q.$drop(0),Ge(B.context,"listing")&&Ge(B.style,"source")&&G(U=B.document.$syntax_highlighter())&&G(U["$highlight?"]())&&G($e=B.subs.$index("specialcharacters"))&&B.subs["$[]="]($e,"highlight"),E}),C(Te,"$parse_attributes",function(B,q,ie){var ee=this,$e=E,U=E;return ee.document==null&&(ee.document=E),q==null&&(q=[]),ie==null&&(ie=V([],{})),G(G(B)?B["$empty?"]():!0)?V([],{}):(G(ie["$[]"]("unescape_input"))&&(B=ee.$normalize_text(B,!0,!0)),G(ie["$[]"]("sub_input"))&&G(B["$include?"](ye("ATTR_REF_HEAD")))&&(B=ee.document.$sub_attributes(B)),G(ie["$[]"]("sub_result"))&&($e=ee),G(U=ie["$[]"]("into"))?ye("AttributeList").$new(B,$e).$parse_into(U,q):ye("AttributeList").$new(B,$e).$parse(q))},-2),Te.$private(),C(Te,"$extract_attributes_from_text",function(B,q){var ie=this,ee=E,$e=E,U=E;return q==null&&(q=E),ee=G(B["$include?"](ye("LF")))?B.$tr(ye("LF")," "):B,G($e=(U=ye("AttributeList").$new(ee,ie).$parse())["$[]"](1))?Ge($e,ee)?[B,U.$clear()]:[$e,U]:[q,U]},-2),C(Te,"$extract_callouts",function(B){var q=this,ie=E,ee=E,$e=E,U=E,g=E;return ie=V([],{}),ee=$e=0,U=E,g=G(q["$attr?"]("line-comment"))?ye("CalloutExtractRxMap")["$[]"](q.$attr("line-comment")):ye("CalloutExtractRx"),B=Ie(B.$split(ye("LF"),-1),"map",[],function(m){return m==null&&(m=E),$e=v($e,1),Ie(m,"gsub",[g],function(){var k,y=E;return G((k=ze["~"])===E?E:k["$[]"](2))?((k=ze["~"])===E?E:k["$[]"](0)).$sub(ye("RS"),""):((G(y=ie["$[]"]($e))?y:(k=[$e,[]],Ie(ie,"[]=",k),k[k.length-1]))["$<<"]([G(y=(k=ze["~"])===E?E:k["$[]"](1))?y:Ge((k=ze["~"])===E?E:k["$[]"](3),"--")?["<!--","-->"]:E,Ge((k=ze["~"])===E?E:k["$[]"](4),".")?(ee=v(ee,1)).$to_s():(k=ze["~"])===E?E:k["$[]"](4)]),U=$e,"")})}).$join(ye("LF")),G(U)?Ge(U,$e)&&(B=""+B+ye("LF")):ie=E,[B,ie]}),C(Te,"$restore_callouts",function(B,q,ie){var ee=this,$e=E,U=E;return ie==null&&(ie=E),G(ie)?($e=B.$slice(0,ie),B=B.$slice(ie,B.$length())):$e="",U=0,v($e,Ie(B.$split(ye("LF"),-1),"map",[],function g(o){var m,T,k=g.$$s==null?this:g.$$s,y=E,L=E,j=E;return k.document==null&&(k.document=E),o==null&&(o=E),G(y=q.$delete(U=v(U,1)))?Ge(y.$size(),1)?(T=y["$[]"](0),m=qe(T),L=m[0]==null?E:m[0],j=m[1]==null?E:m[1],""+o+ye("Inline").$new(k,"callout",j,V(["id","attributes"],{id:k.document.$callouts().$read_next_id(),attributes:V(["guard"],{guard:L})})).$convert()):""+o+Ie(y,"map",[],function de(oe,ke){var Be=de.$$s==null?this:de.$$s;return Be.document==null&&(Be.document=E),oe==null&&(oe=E),ke==null&&(ke=E),ye("Inline").$new(Be,"callout",ke,V(["id","attributes"],{id:Be.document.$callouts().$read_next_id(),attributes:V(["guard"],{guard:oe})})).$convert()},{$$s:k}).$join(" "):o},{$$s:ee}).$join(ye("LF")))},-3),C(Te,"$convert_quoted_text",function(B,q,ie){var ee=this,$e=E,U=E,g=E,o=E,m=E;if(G(B["$[]"](0)["$start_with?"](ye("RS"))))if(Ge(ie,"constrained")&&G($e=B["$[]"](2)))U="["+$e+"]";else return B["$[]"](0).$slice(1,B["$[]"](0).$length());return Ge(ie,"constrained")?G(U)?""+U+ye("Inline").$new(ee,"quoted",B["$[]"](3),V(["type"],{type:q})).$convert():(G(g=B["$[]"](2))&&(o=(m=ee.$parse_quoted_text_attributes(g))["$[]"]("id"),Ge(q,"mark")&&(q="unquoted")),""+B["$[]"](1)+ye("Inline").$new(ee,"quoted",B["$[]"](3),V(["type","id","attributes"],{type:q,id:o,attributes:m})).$convert()):(G(g=B["$[]"](1))&&(o=(m=ee.$parse_quoted_text_attributes(g))["$[]"]("id"),Ge(q,"mark")&&(q="unquoted")),ye("Inline").$new(ee,"quoted",B["$[]"](2),V(["type","id","attributes"],{type:q,id:o,attributes:m})).$convert())}),C(Te,"$do_replacement",function(B,q,ie){var ee=E;if(G((ee=B["$[]"](0))["$include?"](ye("RS"))))return ee.$sub(ye("RS"),"");switch(ie){case"none":return q;case"bounding":return v(v(B["$[]"](1),q),B["$[]"](2));default:return v(B["$[]"](1),q)}}),C(Te,"$parse_quoted_text_attributes",function(B){var q,ie,ee=this,$e=E,U=E,g=E,o=E,m=E;return G(B["$include?"](ye("ATTR_REF_HEAD")))&&(B=ee.$sub_attributes(B)),G(B["$include?"](","))&&(B=B.$slice(0,B.$index(","))),G((B=B.$strip())["$empty?"]())?V([],{}):G(B["$start_with?"](".","#"))&&G(ye("Compliance").$shorthand_property_syntax())?(ie=B.$partition("#"),q=qe(ie),$e=q[0]==null?E:q[0],q[1]==null||q[1],U=q[2]==null?E:q[2],g=V([],{}),G(U["$empty?"]())?G(st($e.$length(),1))&&g["$[]="]("role",$e.$tr("."," ").$lstrip()):(ie=U.$partition("."),q=qe(ie),o=q[0]==null?E:q[0],q[1]==null||q[1],m=q[2]==null?E:q[2],G(o["$empty?"]())||g["$[]="]("id",o),G(m["$empty?"]())?G(st($e.$length(),1))&&g["$[]="]("role",$e.$tr("."," ").$lstrip()):G(st($e.$length(),1))?g["$[]="]("role",v(v($e,"."),m).$tr("."," ").$lstrip()):g["$[]="]("role",m.$tr("."," "))),g):V(["role"],{role:B})}),C(Te,"$normalize_text",function(B,q,ie){return q==null&&(q=E),ie==null&&(ie=E),G(B["$empty?"]())||(G(q)&&(B=B.$strip().$tr(ye("LF")," ")),G(ie)&&G(B["$include?"](ye("R_SB")))&&(B=B.$gsub(ye("ESC_R_SB"),ye("R_SB")))),B},-2),C(Te,"$split_simple_csv",function(B){var q=E,ie=E,ee=E;return G(B["$empty?"]())?[]:G(B["$include?"]('"'))?(q=[],ie="",ee=E,Ie(B,"each_char",[],function(U){switch(U==null&&(U=E),U){case",":return G(ee)?ie=v(ie,U):(q["$<<"](ie.$strip()),ie="");case'"':return ee=ee["$!"]();default:return ie=v(ie,U)}}),q["$<<"](ie.$strip())):Ie(B.$split(","),"map",[],function(U){return U==null&&(U=E),U.$strip()})})}(He[0],He)}(et[0],et)},Opal.modules["asciidoctor/version"]=function(a){var ae=a.module,te=a.const_set,V=[];return a.nil,function(_e,v){var Y=ae(_e,"Asciidoctor"),Ue=[Y].concat(v);return te(Ue[0],"VERSION","2.0.20")}(V[0],V)},Opal.modules["asciidoctor/abstract_node"]=function(a){var ae=a.module,te=a.klass,V=a.hash2,_e=a.eqeq,v=a.truthy,Y=a.def,Ue=a.send,G=a.rb_minus,Ie=a.eqeqeq,C=a.rb_lt,Oe=a.not,ze=a.to_ary,Ge=[],qe=a.nil,je=a.$$$;return a.add_stubs("include,attr_reader,attr_accessor,==,document,to_s,[],merge,raise,converter,attributes,key?,[]=,delete,tap,new,each_key,end_with?,<<,slice,-,length,update,split,include?,===,join,empty?,apply_reftext_subs,attr?,attr,extname?,image_uri,<,safe,normalize_web_path,uriish?,encode_spaces_in_uri,generate_data_uri_from_uri,generate_data_uri,extname,normalize_system_path,readable?,strict_encode64,binread,warn,logger,require_library,!,open_uri,content_type,read,base_dir,root?,path_resolver,system_path,web_path,!=,prepare_source_string,fetch,read_asset"),function(dt,Ye){var st=ae(dt,"Asciidoctor"),We=[st].concat(Ye);return function(Je,$t,z){var et=te(Je,$t,"AbstractNode"),E=[et].concat(z),tt=a.$r(E),lt=et.$$prototype;return lt.document=lt.attributes=lt.parent=qe,et.$include(tt("Logging")),et.$include(tt("Substitutors")),et.$attr_reader("attributes"),et.$attr_reader("context"),et.$attr_reader("document"),et.$attr_accessor("id"),et.$attr_reader("node_name"),et.$attr_reader("parent"),Y(et,"$initialize",function(D,He,we){var Ne=this,Te=qe;return we==null&&(we=V([],{})),_e(He,"document")?Ne.document=Ne:v(D)&&(Ne.document=(Ne.parent=D).$document()),Ne.node_name=(Ne.context=He).$to_s(),Ne.attributes=v(Te=we["$[]"]("attributes"))?Te.$merge():V([],{}),Ne.passthroughs=[]},-3),Y(et,"$block?",function(){var D=this;return D.$raise(je("NotImplementedError"))}),Y(et,"$inline?",function(){var D=this;return D.$raise(je("NotImplementedError"))}),Y(et,"$converter",function(){var D=this;return D.document.$converter()}),Y(et,"$parent=",function(D){var He,we=this;return He=[D,D.$document()],we.parent=He[0],we.document=He[1],He}),Y(et,"$attr",function(D,He,we){var Ne=this,Te=qe,ue=qe,ye=qe,Z=qe;return He==null&&(He=qe),we==null&&(we=qe),v(Te=Ne.attributes["$[]"](D.$to_s()))?Te:v(ue=v(ye=v(Z=we)?Ne.parent:Z)?Ne.document.$attributes()["$[]"]((_e(we,!0)?D:we).$to_s()):ye)?ue:He},-2),Y(et,"$attr?",function(D,He,we){var Ne=this,Te=qe;return He==null&&(He=qe),we==null&&(we=qe),v(He)?He["$=="](v(Te=Ne.attributes["$[]"](D.$to_s()))?Te:v(we)&&v(Ne.parent)?Ne.document.$attributes()["$[]"]((_e(we,!0)?D:we).$to_s()):qe):v(Te=Ne.attributes["$key?"](D.$to_s()))?Te:v(we)&&v(Ne.parent)?Ne.document.$attributes()["$key?"]((_e(we,!0)?D:we).$to_s()):!1},-2),Y(et,"$set_attr",function(D,He,we){var Ne=this;return He==null&&(He=""),we==null&&(we=!0),_e(we,!1)&&v(Ne.attributes["$key?"](D))?!1:(Ne.attributes["$[]="](D,He),!0)},-2),Y(et,"$remove_attr",function(D){var He=this;return He.attributes.$delete(D)}),Y(et,"$option?",function(D){var He=this;return!!v(He.attributes["$[]"](""+D+"-option"))}),Y(et,"$set_option",function(D){var He=this;return He.attributes["$[]="](""+D+"-option",""),qe}),Y(et,"$enabled_options",function(){var D=this;return Ue(je("Set").$new(),"tap",[],function He(we){var Ne=He.$$s==null?this:He.$$s;return Ne.attributes==null&&(Ne.attributes=qe),we==null&&(we=qe),Ue(Ne.attributes,"each_key",[],function(ue){return ue==null&&(ue=qe),v(ue.$to_s()["$end_with?"]("-option"))?we["$<<"](ue.$slice(0,G(ue.$length(),7))):qe})},{$$s:D})}),Y(et,"$update_attributes",function(D){var He=this;return He.attributes.$update(D)}),Y(et,"$role",function(){var D=this;return D.attributes["$[]"]("role")}),Y(et,"$roles",function(){var D=this,He=qe;return v(He=D.attributes["$[]"]("role"))?He.$split():[]}),Y(et,"$role?",function(D){var He=this;return D==null&&(D=qe),v(D)?D["$=="](He.attributes["$[]"]("role")):He.attributes["$key?"]("role")},-1),Y(et,"$has_role?",function(D){var He=this,we=qe;return v(we=He.attributes["$[]"]("role"))?(" "+we+" ")["$include?"](" "+D+" "):!1}),Y(et,"$role=",function(D){var He,we=this;return He=["role",Ie(je("Array"),D)?D.$join(" "):D],Ue(we.attributes,"[]=",He),He[He.length-1]}),Y(et,"$add_role",function(D){var He=this,we=qe;return v(we=He.attributes["$[]"]("role"))?v((" "+we+" ")["$include?"](" "+D+" "))?!1:(He.attributes["$[]="]("role",""+we+" "+D),!0):(He.attributes["$[]="]("role",D),!0)}),Y(et,"$remove_role",function(D){var He=this,we=qe;return v(we=He.attributes["$[]"]("role"))&&v((we=we.$split()).$delete(D))?(v(we["$empty?"]())?He.attributes.$delete("role"):He.attributes["$[]="]("role",we.$join(" ")),!0):!1}),Y(et,"$reftext",function(){var D=this,He=qe;return v(He=D.attributes["$[]"]("reftext"))?D.$apply_reftext_subs(He):qe}),Y(et,"$reftext?",function(){var D=this;return D.attributes["$key?"]("reftext")}),Y(et,"$icon_uri",function(D){var He=this,we=qe;return v(He["$attr?"]("icon"))?(we=He.$attr("icon"),v(tt("Helpers")["$extname?"](we))||(we=""+we+"."+He.document.$attr("icontype","png"))):we=""+D+"."+He.document.$attr("icontype","png"),He.$image_uri(we,"iconsdir")}),Y(et,"$image_uri",function(D,He){var we=this,Ne=qe,Te=qe;return He==null&&(He="imagesdir"),v(C((Ne=we.document).$safe(),je(tt("SafeMode"),"SECURE")))&&v(Ne["$attr?"]("data-uri"))?v(tt("Helpers")["$uriish?"](D))&&v(D=tt("Helpers").$encode_spaces_in_uri(D))||v(He)&&v(Te=Ne.$attr(He))&&v(tt("Helpers")["$uriish?"](Te))&&v(D=we.$normalize_web_path(D,Te,!1))?v(Ne["$attr?"]("allow-uri-read"))?we.$generate_data_uri_from_uri(D,Ne["$attr?"]("cache-uri")):D:we.$generate_data_uri(D,He):we.$normalize_web_path(D,v(He)?Ne.$attr(He):qe)},-2),Y(et,"$media_uri",function(D,He){var we=this;return He==null&&(He="imagesdir"),we.$normalize_web_path(D,v(He)?we.document.$attr(He):qe)},-2),Y(et,"$generate_data_uri",function(D,He){var we=this,Ne=qe,Te=qe,ue=qe;return He==null&&(He=qe),v(Ne=tt("Helpers").$extname(D,qe))?Te=_e(Ne,".svg")?"image/svg+xml":"image/"+Ne.$slice(1,Ne.$length()):Te="application/octet-stream",v(He)?ue=we.$normalize_system_path(D,we.document.$attr(He),qe,V(["target_name"],{target_name:"image"})):ue=we.$normalize_system_path(D),v(je("File")["$readable?"](ue))?"data:"+Te+";base64,"+je("Base64").$strict_encode64(je("File").$binread(ue)):(we.$logger().$warn("image to embed not found or not readable: "+ue),"data:"+Te+";base64,")},-2),Y(et,"$generate_data_uri_from_uri",function(D,He){var we,Ne,Te=this,ue=qe,ye=qe;He==null&&(He=!1),v(He)?tt("Helpers").$require_library("open-uri/cached","open-uri-cached"):Oe(tt("RUBY_ENGINE_OPAL"))&&je("OpenURI");try{return Ne=Ue(je("OpenURI"),"open_uri",[D,tt("URI_READ_MODE")],function(B){return B==null&&(B=qe),[B.$content_type(),B.$read()]}),we=ze(Ne),ue=we[0]==null?qe:we[0],ye=we[1]==null?qe:we[1],"data:"+ue+";base64,"+je("Base64").$strict_encode64(ye)}catch(Z){if(a.rescue(Z,[tt("StandardError")]))try{return Te.$logger().$warn("could not retrieve image data from URI: "+D),D}finally{a.pop_exception()}else throw Z}},-2),Y(et,"$normalize_asset_path",function(D,He,we){var Ne=this;return He==null&&(He="path"),we==null&&(we=!0),Ne.$normalize_system_path(D,Ne.document.$base_dir(),qe,V(["target_name","recover"],{target_name:He,recover:we}))},-2),Y(et,"$normalize_system_path",function(D,He,we,Ne){var Te=this,ue=qe,ye=qe;return He==null&&(He=qe),we==null&&(we=qe),Ne==null&&(Ne=V([],{})),v(C((ue=Te.document).$safe(),je(tt("SafeMode"),"SAFE")))?v(He)?v(ue.$path_resolver()["$root?"](He))||(He=je("File").$join(ue.$base_dir(),He)):He=ue.$base_dir():(He=v(ye=He)?ye:ue.$base_dir(),we=v(ye=we)?ye:ue.$base_dir()),ue.$path_resolver().$system_path(D,He,we,Ne)},-2),Y(et,"$normalize_web_path",function(D,He,we){var Ne=this;return He==null&&(He=qe),we==null&&(we=!0),v(we)&&v(tt("Helpers")["$uriish?"](D))?tt("Helpers").$encode_spaces_in_uri(D):Ne.document.$path_resolver().$web_path(D,He)},-2),Y(et,"$read_asset",function(D,He){var we=this,Ne=qe;return He==null&&(He=V([],{})),Ie(je("Hash"),He)||(He=V(["warn_on_failure"],{warn_on_failure:He["$!="](!1)})),v(je("File")["$readable?"](D))?v(He["$[]"]("normalize"))?tt("Helpers").$prepare_source_string(je("File").$read(D,V(["mode"],{mode:tt("FILE_READ_MODE")}))).$join(tt("LF")):je("File").$read(D,V(["mode"],{mode:tt("FILE_READ_MODE")})):(v(He["$[]"]("warn_on_failure"))&&we.$logger().$warn(""+(v(Ne=we.$attr("docfile"))?Ne:"<stdin>")+": "+(v(Ne=He["$[]"]("label"))?Ne:"file")+" does not exist or cannot be read: "+D),qe)},-2),Y(et,"$read_contents",function(D,He){var we=this,Ne=qe,Te=qe,ue=qe,ye=qe;if(He==null&&(He=V([],{})),Ne=we.document,v(tt("Helpers")["$uriish?"](D))||v(Te=He["$[]"]("start"))&&v(tt("Helpers")["$uriish?"](Te))&&v(D=Ne.$path_resolver().$web_path(D,Te)))if(v(Ne["$attr?"]("allow-uri-read"))){v(Ne["$attr?"]("cache-uri"))&&tt("Helpers").$require_library("open-uri/cached","open-uri-cached");try{v(He["$[]"]("normalize"))?ue=tt("Helpers").$prepare_source_string(Ue(je("OpenURI"),"open_uri",[D,tt("URI_READ_MODE")],function(B){return B==null&&(B=qe),B.$read()})).$join(tt("LF")):ue=Ue(je("OpenURI"),"open_uri",[D,tt("URI_READ_MODE")],function(B){return B==null&&(B=qe),B.$read()})}catch(Z){if(a.rescue(Z,[tt("StandardError")]))try{v(He.$fetch("warn_on_failure",!0))&&we.$logger().$warn("could not retrieve contents of "+(v(ye=He["$[]"]("label"))?ye:"asset")+" at URI: "+D)}finally{a.pop_exception()}else throw Z}}else v(He.$fetch("warn_on_failure",!0))&&we.$logger().$warn("cannot retrieve contents of "+(v(ye=He["$[]"]("label"))?ye:"asset")+" at URI: "+D+" (allow-uri-read attribute not enabled)");else D=we.$normalize_system_path(D,He["$[]"]("start"),qe,V(["target_name"],{target_name:v(ye=He["$[]"]("label"))?ye:"asset"})),ue=we.$read_asset(D,V(["normalize","warn_on_failure","label"],{normalize:He["$[]"]("normalize"),warn_on_failure:He.$fetch("warn_on_failure",!0),label:He["$[]"]("label")}));return v(ue)&&v(He["$[]"]("warn_if_empty"))&&v(ue["$empty?"]())&&we.$logger().$warn("contents of "+(v(ye=He["$[]"]("label"))?ye:"asset")+" is empty: "+D),ue},-2),Y(et,"$is_uri?",function(D){return tt("Helpers")["$uriish?"](D)})}(We[0],null,We)}(Ge[0],Ge)},Opal.modules["asciidoctor/abstract_block"]=function(a){var ae=a.module,te=a.klass,V=a.hash2,_e=a.send2,v=a.find_super,Y=a.eqeq,Ue=a.eqeqeq,G=a.def,Ie=a.return_val,C=a.truthy,Oe=a.alias,ze=a.send,Ge=a.rb_plus,qe=a.not,je=a.neqeq,dt=[],Ye=a.nil,st=a.$$$;return a.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,find_by,context,[],items,+,find_index,include?,next_adjacent_block,blocks,select,sub_specialchars,match?,sub_replacements,title,apply_title_subs,delete,!,reftext,nil_or_empty?,sub_placeholder,sub_quotes,compat_mode,attributes,chomp,increment_and_store_counter,index=,numbered,sectname,numeral=,counter,caption=,numeral,int_to_roman,each,assign_numeral,reindex_sections,protected,has_role?,raise,header?,!=,flatten,head,rows,merge,body,foot,style,inner_document"),function(We,Je){var $t=ae(We,"Asciidoctor"),z=[$t].concat(Je),et=a.$r(z);return function(E,tt,lt){var K=te(E,tt,"AbstractBlock"),D=[K].concat(lt),He=a.$r(D),we=K.$$prototype;return we.source_location=we.document=we.attributes=we.blocks=we.numeral=we.context=we.parent=we.caption=we.style=we.converted_title=we.title=we.subs=we.next_section_index=we.next_section_ordinal=we.id=we.header=Ye,K.$attr_reader("blocks"),K.$attr_writer("caption"),K.$attr_accessor("content_model"),K.$attr_accessor("level"),K.$attr_accessor("numeral"),K.$attr_accessor("source_location"),K.$attr_accessor("style"),K.$attr_reader("subs"),G(K,"$initialize",function Ne(Te,ue,ye){var Z=Ne.$$p||Ye,B=this;return Ne.$$p=null,ye==null&&(ye=V([],{})),_e(B,v(B,"initialize",Ne,!1,!0),"initialize",[Te,ue,ye],Z),B.content_model="compound",B.blocks=[],B.subs=[],B.id=B.title=B.caption=B.numeral=B.style=B.default_subs=B.source_location=Ye,Y(ue,"document")||Y(ue,"section")?(B.level=B.next_section_index=0,B.next_section_ordinal=1):Ue(He("AbstractBlock"),Te)?B.level=Te.$level():B.level=Ye},-3),G(K,"$block?",Ie(!0)),G(K,"$inline?",Ie(!1)),G(K,"$file",function(){var Te=this,ue=Ye;return C(ue=Te.source_location)?Te.source_location.$file():ue}),G(K,"$lineno",function(){var Te=this,ue=Ye;return C(ue=Te.source_location)?Te.source_location.$lineno():ue}),G(K,"$convert",function(){var Te=this;return Te.document.$playback_attributes(Te.attributes),Te.$converter().$convert(Te)}),Oe(K,"render","convert"),G(K,"$content",function(){var Te=this;return ze(Te.blocks,"map",[],function(ye){return ye==null&&(ye=Ye),ye.$convert()}).$join(He("LF"))}),G(K,"$context=",function(Te){var ue=this;return ue.node_name=(ue.context=Te).$to_s()}),G(K,"$<<",function(Te){var ue=this;return Y(Te.$parent(),ue)||Te["$parent="](ue),ue.blocks["$<<"](Te),ue}),Oe(K,"append","<<"),G(K,"$blocks?",function(){var Te=this;return!C(Te.blocks["$empty?"]())}),G(K,"$sections?",Ie(!1)),G(K,"$number",function(){var Te=this;try{return Te.$Integer(Te.numeral)}catch(ue){if(a.rescue(ue,[He("StandardError")]))try{return Te.numeral}finally{a.pop_exception()}else throw ue}}),G(K,"$number=",function(Te){var ue=this;return ue.numeral=Te.$to_s()}),G(K,"$find_by",function Ne(Te){var ue=Ne.$$p||Ye,ye=this,Z=Ye;Ne.$$p=null,Te==null&&(Te=V([],{}));try{return ze(ye,"find_by_internal",[Te,Z=[]],ue.$to_proc())}catch(B){if(a.rescue(B,[st("StopIteration")]))try{return Z}finally{a.pop_exception()}else throw B}},-1),Oe(K,"query","find_by"),G(K,"$next_adjacent_block",function(){var Te=this,ue=Ye,ye=Ye;return Y(Te.context,"document")?Ye:Y((ue=Te.parent).$context(),"dlist")&&Y(Te.context,"list_item")?C(ye=ue.$items()["$[]"](Ge(ze(ue.$items(),"find_index",[],function Z(B,q){var ie=Z.$$s==null?this:Z.$$s,ee=Ye;return B==null&&(B=Ye),q==null&&(q=Ye),C(ee=B["$include?"](ie))?ee:q["$=="](ie)},{$$s:Te}),1)))?ye:ue.$next_adjacent_block():C(ye=ue.$blocks()["$[]"](Ge(ue.$blocks().$find_index(Te),1)))?ye:ue.$next_adjacent_block()}),G(K,"$sections",function(){var Te=this;return ze(Te.blocks,"select",[],function(ye){return ye==null&&(ye=Ye),ye.$context()["$=="]("section")})}),G(K,"$alt",function(){var Te=this,ue=Ye;return C(ue=Te.attributes["$[]"]("alt"))?Y(ue,Te.attributes["$[]"]("default-alt"))?Te.$sub_specialchars(ue):(ue=Te.$sub_specialchars(ue),C(He("ReplaceableTextRx")["$match?"](ue))?Te.$sub_replacements(ue):ue):""}),G(K,"$caption",function(){var Te=this;return Y(Te.context,"admonition")?Te.attributes["$[]"]("textlabel"):Te.caption}),G(K,"$captioned_title",function(){var Te=this;return""+Te.caption+Te.$title()}),G(K,"$list_marker_keyword",function(Te){var ue=this,ye=Ye;return Te==null&&(Te=Ye),He("ORDERED_LIST_KEYWORDS")["$[]"](C(ye=Te)?ye:ue.style)},-1),G(K,"$title",function(){var Te=this,ue=Ye,ye=Ye;return Te.converted_title=C(ue=Te.converted_title)?ue:C(ye=Te.title)?Te.$apply_title_subs(Te.title):ye}),G(K,"$title?",function(){var Te=this;return!!C(Te.title)}),G(K,"$title=",function(Te){var ue=this;return ue.converted_title=Ye,ue.title=Te}),G(K,"$sub?",function(Te){var ue=this;return ue.subs["$include?"](Te)}),G(K,"$remove_sub",function(Te){var ue=this;return ue.subs.$delete(Te),Ye}),G(K,"$xreftext",function(Te){var ue=this,ye=Ye,Z=Ye,B=Ye,q=Ye;if(Te==null&&(Te=Ye),C(ye=ue.$reftext())&&qe(ye["$empty?"]()))return ye;if(C(Te)&&C(ue.title)&&qe(ue.caption["$nil_or_empty?"]()))switch(Te){case"full":return Z=ue.$sub_placeholder(ue.$sub_quotes(C(ue.document.$compat_mode())?"``%s''":'"`%s`"'),ue.$title()),C(ue.numeral)&&C(q=He("CAPTION_ATTRIBUTE_NAMES")["$[]"](ue.context))&&C(B=ue.document.$attributes()["$[]"](q))?""+B+" "+ue.numeral+", "+Z:""+ue.caption.$chomp(". ")+", "+Z;case"short":return C(ue.numeral)&&C(q=He("CAPTION_ATTRIBUTE_NAMES")["$[]"](ue.context))&&C(B=ue.document.$attributes()["$[]"](q))?""+B+" "+ue.numeral:ue.caption.$chomp(". ");default:return ue.$title()}else return ue.$title()},-1),G(K,"$assign_caption",function(Te,ue){var ye=this,Z=Ye,B=Ye,q=Ye;return ue==null&&(ue=ye.context),C(ye.caption)||qe(ye.title)||C(ye.caption=C(Z=Te)?Z:ye.document.$attributes()["$[]"]("caption"))||C(q=He("CAPTION_ATTRIBUTE_NAMES")["$[]"](ue))&&C(B=ye.document.$attributes()["$[]"](q))&&(ye.caption=""+B+" "+(ye.numeral=ye.document.$increment_and_store_counter(""+ue+"-number",ye))+". "),Ye},-2),G(K,"$assign_numeral",function(Te){var ue,ye=this,Z=Ye,B=Ye,q=Ye;return ye.next_section_index=Ge((ue=[ye.next_section_index],ze(Te,"index=",ue),ue[ue.length-1]),1),C(Z=Te.$numbered())&&(Y(B=Te.$sectname(),"appendix")?(Te["$numeral="](ye.document.$counter("appendix-number","A")),Te["$caption="](C(q=ye.document.$attributes()["$[]"]("appendix-caption"))?""+q+" "+Te.$numeral()+": ":""+Te.$numeral()+". ")):Y(B,"chapter")||Y(Z,"chapter")?Te["$numeral="](ye.document.$counter("chapter-number",1).$to_s()):(Te["$numeral="](Y(B,"part")?He("Helpers").$int_to_roman(ye.next_section_ordinal):ye.next_section_ordinal.$to_s()),ye.next_section_ordinal=Ge(ye.next_section_ordinal,1))),Ye}),G(K,"$reindex_sections",function(){var Te=this;return Te.next_section_index=0,Te.next_section_ordinal=1,ze(Te.blocks,"each",[],function ue(ye){var Z=ue.$$s==null?this:ue.$$s;return ye==null&&(ye=Ye),Y(ye.$context(),"section")?(Z.$assign_numeral(ye),ye.$reindex_sections()):Ye},{$$s:Te})}),K.$protected(),G(K,"$find_by_internal",function Ne(Te,ue){var ye=Ne.$$p||Ye,Z=this,B=Ye,q=Ye,ie=Ye,ee=Ye,$e=Ye,U=Ye;if(Ne.$$p=null,Te==null&&(Te=V([],{})),ue==null&&(ue=[]),(C(ee=C($e=Te["$[]"]("context"))?Ye:!0)||Y($e,Z.context))&&(qe(ie=Te["$[]"]("style"))||Y(ie,Z.style))&&(qe(q=Te["$[]"]("role"))||C(Z["$has_role?"](q)))&&(qe(B=Te["$[]"]("id"))||Y(B,Z.id)))if(ye!==Ye)if(C(U=a.yield1(ye,Z)))switch(U){case"prune":return ue["$<<"](Z),C(B)&&Z.$raise(st("StopIteration")),ue;case"reject":return C(B)&&Z.$raise(st("StopIteration")),ue;case"stop":Z.$raise(st("StopIteration"));break;default:ue["$<<"](Z),C(B)&&Z.$raise(st("StopIteration"))}else C(B)&&Z.$raise(st("StopIteration"));else ue["$<<"](Z),C(B)&&Z.$raise(st("StopIteration"));switch(Z.context){case"document":Y($e,"document")||(C(Z["$header?"]())&&(C(ee)||Y($e,"section"))&&ze(Z.header,"find_by_internal",[Te,ue],ye.$to_proc()),ze(Z.blocks,"each",[],function(o){return o==null&&(o=Ye),Y($e,"section")&&je(o.$context(),"section")?Ye:ze(o,"find_by_internal",[Te,ue],ye.$to_proc())}));break;case"dlist":(C(ee)||je($e,"section"))&&ze(Z.blocks.$flatten(),"each",[],function(o){return o==null&&(o=Ye),C(o)?ze(o,"find_by_internal",[Te,ue],ye.$to_proc()):Ye});break;case"table":C(Te["$[]"]("traverse_documents"))?(ze(Z.$rows().$head(),"each",[],function(o){return o==null&&(o=Ye),ze(o,"each",[],function(T){return T==null&&(T=Ye),ze(T,"find_by_internal",[Te,ue],ye.$to_proc())})}),Y($e,"inner_document")&&(Te=Te.$merge(V(["context"],{context:"document"}))),ze(Ge(Z.$rows().$body(),Z.$rows().$foot()),"each",[],function(o){return o==null&&(o=Ye),ze(o,"each",[],function(T){return T==null&&(T=Ye),ze(T,"find_by_internal",[Te,ue],ye.$to_proc()),Y(T.$style(),"asciidoc")?ze(T.$inner_document(),"find_by_internal",[Te,ue],ye.$to_proc()):Ye})})):ze(Ge(Ge(Z.$rows().$head(),Z.$rows().$body()),Z.$rows().$foot()),"each",[],function(o){return o==null&&(o=Ye),ze(o,"each",[],function(T){return T==null&&(T=Ye),ze(T,"find_by_internal",[Te,ue],ye.$to_proc())})});break;default:ze(Z.blocks,"each",[],function(o){return o==null&&(o=Ye),Y($e,"section")&&je(o.$context(),"section")?Ye:ze(o,"find_by_internal",[Te,ue],ye.$to_proc())})}return ue},-1)}(z[0],et("AbstractNode"),z)}(dt[0],dt)},Opal.modules["asciidoctor/attribute_list"]=function(a){var ae=a.module,te=a.klass,V=a.const_set,_e=a.hash,v=a.regexp,Y=a.hash2,Ue=a.def,G=a.truthy,Ie=a.rb_plus,C=a.send,Oe=a.defs,ze=a.eqeqeq,Ge=a.eqeq,qe=a.rb_times,je=[],dt=a.nil,Ye=a.$$$;return a.add_stubs("new,[],update,parse,parse_attribute,eos?,skip_delimiter,+,rekey,each_with_index,[]=,private,skip_blank,===,peek,parse_attribute_value,get_byte,start_with?,scan_name,end_with?,rstrip,string,==,unscan,scan_to_delimiter,*,include?,delete,each,split,empty?,apply_subs,scan_to_quote,gsub,skip,scan"),function(st,We){var Je=ae(st,"Asciidoctor"),$t=[Je].concat(We);return function(z,et,E){var tt=te(z,et,"AttributeList"),lt=[tt].concat(E),K=a.$r(lt),D=tt.$$prototype;return D.attributes=D.scanner=D.delimiter=D.block=D.delimiter_skip_pattern=D.delimiter_boundary_pattern=dt,V(lt[0],"APOS","'"),V(lt[0],"BACKSLASH","\\"),V(lt[0],"QUOT",'"'),V(lt[0],"BoundaryRx",_e(K("QUOT"),/.*?[^\\](?=")/,K("APOS"),/.*?[^\\](?=')/,",",/.*?(?=[ \t]*(,|$))/)),V(lt[0],"EscapedQuotes",_e(K("QUOT"),'\\"',K("APOS"),"\\'")),V(lt[0],"NameRx",v([K("CG_WORD"),"[",K("CC_WORD"),"\\-.]*"])),V(lt[0],"BlankRx",/[ \t]+/),V(lt[0],"SkipRx",Y([","],{",":/[ \t]*(,|$)/})),Ue(tt,"$initialize",function(we,Ne,Te){var ue=this;return Ne==null&&(Ne=dt),Te==null&&(Te=","),ue.scanner=Ye("StringScanner").$new(we),ue.block=Ne,ue.delimiter=Te,ue.delimiter_skip_pattern=K("SkipRx")["$[]"](Te),ue.delimiter_boundary_pattern=K("BoundaryRx")["$[]"](Te),ue.attributes=dt},-2),Ue(tt,"$parse_into",function(we,Ne){var Te=this;return Ne==null&&(Ne=[]),we.$update(Te.$parse(Ne))},-2),Ue(tt,"$parse",function(we){var Ne=this,Te=dt;if(we==null&&(we=[]),G(Ne.attributes))return Ne.attributes;for(Ne.attributes=Y([],{}),Te=0;G(Ne.$parse_attribute(Te,we))&&!G(Ne.scanner["$eos?"]());)Ne.$skip_delimiter(),Te=Ie(Te,1);return Ne.attributes},-1),Ue(tt,"$rekey",function(we){var Ne=this;return K("AttributeList").$rekey(Ne.attributes,we)}),Oe(tt,"$rekey",function(we,Ne){return C(Ne,"each_with_index",[],function(ue,ye){var Z,B=dt;return ue==null&&(ue=dt),ye==null&&(ye=dt),G(ue)&&G(B=we["$[]"](Ie(ye,1)))?(Z=[ue,B],C(we,"[]=",Z),Z[Z.length-1]):dt}),we}),tt.$private(),Ue(tt,"$parse_attribute",function(we,Ne){var Te=this,ue=dt,ye=dt,Z=dt,B=dt,q=dt,ie=dt,ee=dt,$e=dt,U=dt,g=dt;if(ue=!0,Te.$skip_blank(),ze(K("QUOT"),ye=Te.scanner.$peek(1)))Z=Te.$parse_attribute_value(Te.scanner.$get_byte());else if(ze(K("APOS"),ye))Z=Te.$parse_attribute_value(Te.scanner.$get_byte()),G(Z["$start_with?"](K("APOS")))||(B=!0);else if(q=G(ie=G(ee=Z=Te.$scan_name())?Te.$skip_blank():ee)?ie:0,G(Te.scanner["$eos?"]())){if(!(G(Z)||G(Te.scanner.$string().$rstrip()["$end_with?"](Te.delimiter))))return dt;ue=dt}else if(Ge($e=Te.scanner.$get_byte(),Te.delimiter))Te.scanner.$unscan();else if(G(Z))if(Ge($e,"=")){if(Te.$skip_blank(),ze(K("QUOT"),ie=$e=Te.scanner.$get_byte()))U=Te.$parse_attribute_value($e);else if(ze(K("APOS"),ie))U=Te.$parse_attribute_value($e),G(U["$start_with?"](K("APOS")))||(B=!0);else if(ze(Te.delimiter,ie))U="",Te.scanner.$unscan();else if(ze(dt,ie))U="";else if(U=""+$e+Te.$scan_to_delimiter(),Ge(U,"None"))return!0}else Z=""+Z+qe(" ",q)+$e+Te.$scan_to_delimiter();else Z=""+$e+Te.$scan_to_delimiter();if(G(U))switch(Z){case"options":case"opts":G(U["$include?"](","))?(G(U["$include?"](" "))&&(U=U.$delete(" ")),C(U.$split(","),"each",[],function o(m){var T,k=o.$$s==null?this:o.$$s;return k.attributes==null&&(k.attributes=dt),m==null&&(m=dt),G(m["$empty?"]())?dt:(T=[""+m+"-option",""],C(k.attributes,"[]=",T),T[T.length-1])},{$$s:Te})):G(U["$empty?"]())||Te.attributes["$[]="](""+U+"-option","");break;default:if(G(B)&&G(Te.block))switch(Z){case"title":case"reftext":Te.attributes["$[]="](Z,U);break;default:Te.attributes["$[]="](Z,Te.block.$apply_subs(U))}else Te.attributes["$[]="](Z,U)}else G(B)&&G(Te.block)&&(Z=Te.block.$apply_subs(Z)),G(g=Ne["$[]"](we))&&G(Z)&&Te.attributes["$[]="](g,Z),Te.attributes["$[]="](Ie(we,1),Z);return ue}),Ue(tt,"$parse_attribute_value",function(we){var Ne=this,Te=dt;return Ge(Ne.scanner.$peek(1),we)?(Ne.scanner.$get_byte(),""):G(Te=Ne.$scan_to_quote(we))?(Ne.scanner.$get_byte(),G(Te["$include?"](K("BACKSLASH")))?Te.$gsub(K("EscapedQuotes")["$[]"](we),we):Te):""+we+Ne.$scan_to_delimiter()}),Ue(tt,"$skip_blank",function(){var we=this;return we.scanner.$skip(K("BlankRx"))}),Ue(tt,"$skip_delimiter",function(){var we=this;return we.scanner.$skip(we.delimiter_skip_pattern)}),Ue(tt,"$scan_name",function(){var we=this;return we.scanner.$scan(K("NameRx"))}),Ue(tt,"$scan_to_delimiter",function(){var we=this;return we.scanner.$scan(we.delimiter_boundary_pattern)}),Ue(tt,"$scan_to_quote",function(we){var Ne=this;return Ne.scanner.$scan(K("BoundaryRx")["$[]"](we))})}($t[0],null,$t)}(je[0],je)},Opal.modules["asciidoctor/block"]=function(a){var ae=a.module,te=a.klass,V=a.const_set,_e=a.hash2,v=a.alias,Y=a.send2,Ue=a.find_super,G=a.truthy,Ie=a.eqeqeq,C=a.def,Oe=a.rb_lt,ze=a.eqeq,Ge=[],qe=a.nil,je=a.$$$;return a.add_stubs("default=,context,attr_accessor,[],key?,===,drop,delete,[]=,to_s,commit_subs,nil_or_empty?,prepare_source_string,apply_subs,join,<,size,empty?,rstrip,shift,pop,==,warn,logger,class,object_id,inspect"),function(dt,Ye){var st=ae(dt,"Asciidoctor"),We=[st].concat(Ye),Je=a.$r(We);return function($t,z,et){var E=te($t,z,"Block"),tt=[E].concat(et),lt=a.$r(tt),K=E.$$prototype;return K.attributes=K.content_model=K.lines=K.subs=K.blocks=K.context=K.style=qe,V(tt[0],"DEFAULT_CONTENT_MODEL",_e(["audio","image","listing","literal","stem","open","page_break","pass","thematic_break","video"],{audio:"empty",image:"empty",listing:"verbatim",literal:"verbatim",stem:"raw",open:"compound",page_break:"empty",pass:"raw",thematic_break:"empty",video:"empty"}))["$default="]("simple"),v(E,"blockname","context"),E.$attr_accessor("lines"),C(E,"$initialize",function D(He,we,Ne){var Te=D.$$p||qe,ue=this,ye=qe,Z=qe,B=qe;return D.$$p=null,Ne==null&&(Ne=_e([],{})),Y(ue,Ue(ue,"initialize",D,!1,!0),"initialize",[He,we,Ne],Te),ue.content_model=G(ye=Ne["$[]"]("content_model"))?ye:lt("DEFAULT_CONTENT_MODEL")["$[]"](we),G(Ne["$key?"]("subs"))?G(Z=Ne["$[]"]("subs"))?(Ie("default",ye=Z)?ue.default_subs=Ne["$[]"]("default_subs"):Ie(je("Array"),ye)?(ue.default_subs=Z.$drop(0),ue.attributes.$delete("subs")):(ue.default_subs=qe,ue.attributes["$[]="]("subs",Z.$to_s())),ue.$commit_subs()):(ue.default_subs=[],ue.attributes.$delete("subs")):ue.default_subs=qe,G((B=Ne["$[]"]("source"))["$nil_or_empty?"]())?ue.lines=[]:Ie(je("String"),B)?ue.lines=lt("Helpers").$prepare_source_string(B):ue.lines=B.$drop(0)},-3),C(E,"$content",function D(){var He=D.$$p||qe,we=this,Ne=qe,Te=qe,ue=qe,ye=qe;switch(D.$$p=null,we.content_model){case"compound":return Y(we,Ue(we,"content",D,!1,!0),"content",[],He);case"simple":return we.$apply_subs(we.lines.$join(lt("LF")),we.subs);case"verbatim":case"raw":if(Ne=we.$apply_subs(we.lines,we.subs),G(Oe(Ne.$size(),2)))return G(Te=Ne["$[]"](0))?Te:"";for(;G(G(Te=ue=Ne["$[]"](0))?ue.$rstrip()["$empty?"]():Te);)Ne.$shift();for(;G(G(Te=ye=Ne["$[]"](-1))?ye.$rstrip()["$empty?"]():Te);)Ne.$pop();return Ne.$join(lt("LF"));default:return ze(we.content_model,"empty")||we.$logger().$warn("unknown content model '"+we.content_model+"' for block: "+we),qe}}),C(E,"$source",function(){var He=this;return He.lines.$join(lt("LF"))}),C(E,"$to_s",function(){var He=this,we=qe;return we=ze(He.content_model,"compound")?"blocks: "+He.blocks.$size():"lines: "+He.lines.$size(),"#<"+He.$class()+"@"+He.$object_id()+" {context: "+He.context.$inspect()+", content_model: "+He.content_model.$inspect()+", style: "+He.style.$inspect()+", "+we+"}>"})}(We[0],Je("AbstractBlock"),We)}(Ge[0],Ge)},Opal.modules["asciidoctor/callouts"]=function(a){var ae=a.module,te=a.klass,V=a.def,_e=a.hash2,v=a.rb_plus,Y=a.truthy,Ue=a.rb_le,G=a.rb_minus,Ie=a.send,C=a.eqeq,Oe=a.rb_lt,ze=[],Ge=a.nil;return a.add_stubs("next_list,<<,current_list,to_i,generate_next_callout_id,+,<=,size,[],-,chop,join,map,==,<,private,generate_callout_id"),function(qe,je){var dt=ae(qe,"Asciidoctor"),Ye=[dt].concat(je);return function(st,We){var Je=te(st,We,"Callouts"),$t=Je.$$prototype;return $t.co_index=$t.lists=$t.list_index=Ge,V(Je,"$initialize",function(){var et=this;return et.lists=[],et.list_index=0,et.$next_list()}),V(Je,"$register",function(et){var E=this,tt=Ge;return E.$current_list()["$<<"](_e(["ordinal","id"],{ordinal:et.$to_i(),id:tt=E.$generate_next_callout_id()})),E.co_index=v(E.co_index,1),tt}),V(Je,"$read_next_id",function(){var et=this,E=Ge,tt=Ge;return E=Ge,tt=et.$current_list(),Y(Ue(et.co_index,tt.$size()))&&(E=tt["$[]"](G(et.co_index,1))["$[]"]("id")),et.co_index=v(et.co_index,1),E}),V(Je,"$callout_ids",function(et){var E=this;return Ie(E.$current_list(),"map",[],function(lt){return lt==null&&(lt=Ge),C(lt["$[]"]("ordinal"),et)?""+lt["$[]"]("id")+" ":""}).$join().$chop()}),V(Je,"$current_list",function(){var et=this;return et.lists["$[]"](G(et.list_index,1))}),V(Je,"$next_list",function(){var et=this;return et.list_index=v(et.list_index,1),Y(Oe(et.lists.$size(),et.list_index))&&et.lists["$<<"]([]),et.co_index=1,Ge}),V(Je,"$rewind",function(){var et=this;return et.list_index=1,et.co_index=1,Ge}),Je.$private(),V(Je,"$generate_next_callout_id",function(){var et=this;return et.$generate_callout_id(et.list_index,et.co_index)}),V(Je,"$generate_callout_id",function(et,E){return"CO"+et+"-"+E})}(Ye[0],null)}(ze[0],ze)},Opal.modules["asciidoctor/converter/composite"]=function(a){var ae=a.module,te=a.klass,V=a.slice,_e=a.extract_kwargs,v=a.ensure_kwargs,Y=a.send,Ue=a.truthy,G=a.def,Ie=a.thrower,C=[],Oe=a.nil,ze=a.$$$;return a.add_stubs("attr_reader,each,respond_to?,composed,init_backend_traits,backend_traits,new,[]=,find_converter,convert,converter_for,node_name,[],handles?,raise"),function(Ge,qe){var je=ae(Ge,"Asciidoctor"),dt=[je].concat(qe),Ye=a.$r(dt);return function(st,We){var Je=te(st,We,"CompositeConverter"),$t=Je.$$prototype;return $t.converter_cache=$t.converters=Oe,Je.$attr_reader("converters"),G(Je,"$initialize",function(et,E,tt){var lt,K,D,He,we=this;return lt=V(arguments,1),K=_e(lt),K=v(K),D=lt,He=K.$$smap.backend_traits_source,He==null&&(He=Oe),we.backend=et,Y(we.converters=D,"each",[],function Ne(Te){var ue=Ne.$$s==null?this:Ne.$$s;return Te==null&&(Te=Oe),Ue(Te["$respond_to?"]("composed"))?Te.$composed(ue):Oe},{$$s:we}),Ue(He)&&we.$init_backend_traits(He.$backend_traits()),we.converter_cache=Y(ze("Hash"),"new",[],function Ne(Te,ue){var ye,Z=Ne.$$s==null?this:Ne.$$s;return Te==null&&(Te=Oe),ue==null&&(ue=Oe),ye=[ue,Z.$find_converter(ue)],Y(Te,"[]=",ye),ye[ye.length-1]},{$$s:we})},-2),G(Je,"$convert",function(et,E,tt){var lt=this,K=Oe;return E==null&&(E=Oe),tt==null&&(tt=Oe),lt.$converter_for(E=Ue(K=E)?K:et.$node_name()).$convert(et,E,tt)},-2),G(Je,"$converter_for",function(et){var E=this;return E.converter_cache["$[]"](et)}),G(Je,"$find_converter",function(et){try{var E=Ie("return"),tt=this;return Y(tt.converters,"each",[],function(K){if(K==null&&(K=Oe),Ue(K["$handles?"](et)))E.$throw(K);else return Oe},{$$ret:E}),tt.$raise("Could not find a converter to handle transform: "+et)}catch(lt){if(lt===E)return lt.$v;throw lt}})}(Ye("Converter"),ze(Ye("Converter"),"Base"))}(C[0],C)},Opal.modules["asciidoctor/converter"]=function(a){var ae=a.module,te=a.hash2,V=a.def,_e=a.return_val,v=a.truthy,Y=a.eqeq,Ue=a.defs,G=a.send,Ie=a.alias,C=a.slice,Oe=a.to_a,ze=a.extract_kwargs,Ge=a.ensure_kwargs,qe=a.eqeqeq,je=a.Class,dt=a.klass,Ye=a.class_variable_set,st=a.class_variable_get,We=a.rb_plus,Je=a.gvars,$t=[],z=a.nil,et=a.$$$;return a.add_stubs("autoload,attr_reader,raise,class,[],sub,slice,length,==,[]=,backend_traits,derive_backend_traits,register,map,to_s,new,create,default,each,default=,registry,for,===,supports_templates?,merge,private,include,delete,clear,send,extend,private_class_method,node_name,+,name,receiver,warn,logger,respond_to?,content"),function(E,tt){var lt=ae(E,"Asciidoctor"),K=[lt].concat(tt);return function(D,He){var we=ae(D,"Converter"),Ne=[we].concat(He),Te=a.$r(Ne);return we.$autoload("CompositeConverter","asciidoctor/converter/composite"),we.$attr_reader("backend"),V(we,"$initialize",function(ye,Z){var B=this;return Z==null&&(Z=te([],{})),B.backend=ye},-2),V(we,"$convert",function(ye,Z,B){var q=this;return q.backend==null&&(q.backend=z),q.$raise(et("NotImplementedError"),""+q.$class()+" (backend: "+q.backend+") must implement the #convert method")},-2),V(we,"$handles?",_e(!0)),Ue(we,"$derive_backend_traits",function(ye,Z){var B=z,q=z,ie=z;return Z==null&&(Z=z),v(ye)?(v(B=Te("DEFAULT_EXTENSIONS")["$[]"](Z=v(q=Z)?q:ye.$sub(Te("TrailingDigitsRx"),"")))?ie=B.$slice(1,B.$length()):B="."+(ie=Z),Y(ie,"html")?te(["basebackend","filetype","htmlsyntax","outfilesuffix"],{basebackend:Z,filetype:ie,htmlsyntax:"html",outfilesuffix:B}):te(["basebackend","filetype","outfilesuffix"],{basebackend:Z,filetype:ie,outfilesuffix:B})):te([],{})},-2),function(ue,ye){var Z=ae(ue,"BackendTraits"),B=[Z].concat(ye),q=a.$r(B);return V(Z,"$basebackend",function(ee){var $e,U=this;return ee==null&&(ee=z),v(ee)?($e=["basebackend",ee],G(U.$backend_traits(ee),"[]=",$e),$e[$e.length-1]):U.$backend_traits()["$[]"]("basebackend")},-1),V(Z,"$filetype",function(ee){var $e,U=this;return ee==null&&(ee=z),v(ee)?($e=["filetype",ee],G(U.$backend_traits(),"[]=",$e),$e[$e.length-1]):U.$backend_traits()["$[]"]("filetype")},-1),V(Z,"$htmlsyntax",function(ee){var $e,U=this;return ee==null&&(ee=z),v(ee)?($e=["htmlsyntax",ee],G(U.$backend_traits(),"[]=",$e),$e[$e.length-1]):U.$backend_traits()["$[]"]("htmlsyntax")},-1),V(Z,"$outfilesuffix",function(ee){var $e,U=this;return ee==null&&(ee=z),v(ee)?($e=["outfilesuffix",ee],G(U.$backend_traits(),"[]=",$e),$e[$e.length-1]):U.$backend_traits()["$[]"]("outfilesuffix")},-1),V(Z,"$supports_templates",function(ee){var $e,U=this;return ee==null&&(ee=!0),$e=["supports_templates",ee],G(U.$backend_traits(),"[]=",$e),$e[$e.length-1]},-1),V(Z,"$supports_templates?",function(){var ee=this;return ee.$backend_traits()["$[]"]("supports_templates")}),V(Z,"$init_backend_traits",function(ee){var $e=this,U=z;return ee==null&&(ee=z),$e.backend_traits=v(U=ee)?U:te([],{})},-1),V(Z,"$backend_traits",function(ee){var $e=this,U=z;return $e.backend_traits==null&&($e.backend_traits=z),$e.backend==null&&($e.backend=z),ee==null&&(ee=z),$e.backend_traits=v(U=$e.backend_traits)?U:q("Converter").$derive_backend_traits($e.backend,ee)},-1),Ie(Z,"backend_info","backend_traits"),Ue(Z,"$derive_backend_traits",function(ee,$e){return $e==null&&($e=z),q("Converter").$derive_backend_traits(ee,$e)},-2)}(Ne[0],Ne),function(ue,ye){var Z=ae(ue,"Config"),B=[Z].concat(ye),q=a.$r(B);return V(Z,"$register_for",function(ee){var $e,U,g=this;return $e=C(arguments),U=$e,G(q("Converter"),"register",[g].concat(Oe(G(U,"map",[],function(m){return m==null&&(m=z),m.$to_s()}))))},-1)}(Ne[0],Ne),function(ue,ye){var Z=ae(ue,"Factory"),B=[Z].concat(ye),q=a.$r(B);return Ue(Z,"$new",function(ee,$e){var U,g,o,m;return U=C(arguments),g=ze(U),g=Ge(g),U.length>0&&(o=U.shift()),o==null&&(o=z),m=g.$$smap.proxy_default,m==null&&(m=!0),v(m)?q("DefaultFactoryProxy").$new(o):q("CustomFactory").$new(o)},-1),Ue(Z,"$default",function(ee){return C(arguments),q("Converter")},-1),Ue(Z,"$create",function(ee,$e){var U=this;return $e==null&&($e=te([],{})),U.$default().$create(ee,$e)},-2),V(Z,"$register",function(ee,$e){var U,g,o=this;return U=C(arguments,1),g=U,G(g,"each",[],function m(T){var k,y=m.$$s==null?this:m.$$s;return T==null&&(T=z),Y(T,"*")?(k=[ee],G(y.$registry(),"default=",k),k[k.length-1]):(k=[T,ee],G(y.$registry(),"[]=",k),k[k.length-1])},{$$s:o})},-2),V(Z,"$for",function(ee){var $e=this;return $e.$registry()["$[]"](ee)}),V(Z,"$create",function(ee,$e){var U=this,g=z,o=z,m=z;return $e==null&&($e=te([],{})),v(g=U.$for(ee))?(qe(je,g)&&(g=g.$new(ee,$e)),v(o=$e["$[]"]("template_dirs"))&&qe(q("BackendTraits"),g)&&v(g["$supports_templates?"]())?q("CompositeConverter").$new(ee,q("TemplateConverter").$new(ee,o,$e),g,te(["backend_traits_source"],{backend_traits_source:g})):g):v(o=$e["$[]"]("template_dirs"))?v(m=$e["$[]"]("delegate_backend"))&&v(g=U.$for(m))?(qe(je,g)&&(g=g.$new(m,$e)),q("CompositeConverter").$new(ee,q("TemplateConverter").$new(ee,o,$e),g,te(["backend_traits_source"],{backend_traits_source:g}))):q("TemplateConverter").$new(ee,o,$e):z},-2),V(Z,"$converters",function(){var ee=this;return ee.$registry().$merge()}),Z.$private(),V(Z,"$registry",function(){var ee=this;return ee.$raise(et("NotImplementedError"),""+q("Factory")+" subclass "+ee.$class()+" must implement the #registry method")})}(Ne[0],Ne),function(ue,ye,Z){var B=dt(ue,ye,"CustomFactory"),q=[B].concat(Z),ie=a.$r(q);return B.$include(ie("Factory")),V(B,"$initialize",function($e){var U=this;return $e==null&&($e=z),v($e)?($e["$default="]($e.$delete("*")),U.registry=$e):U.registry=te([],{})},-1),V(B,"$unregister_all",function(){var $e,U=this;return $e=[z],G(U.$registry().$clear(),"default=",$e),$e[$e.length-1]}),B.$private(),B.$attr_reader("registry")}(Ne[0],null,Ne),function(ue,ye){var Z=ae(ue,"DefaultFactory"),B=[Z].concat(ye),q=a.$r(B);return Z.$include(q("Factory")),Z.$private(),Ye(B[0],"@@registry",te([],{})),V(Z,"$registry",function(){return st(B[0],"@@registry",!1)}),z}(Ne[0],Ne),function(ue,ye,Z){var B=dt(ue,ye,"DefaultFactoryProxy"),q=[B].concat(Z),ie=a.$r(q);return B.$include(ie("DefaultFactory")),z}(Ne[0],Te("CustomFactory"),Ne),Ue(we,"$included",function(ye){return ye.$send("include",Te("BackendTraits")),ye.$extend(Te("Config"))}),we.$private_class_method("included"),function(ue,ye,Z){var B=dt(ue,ye,"Base"),q=[B].concat(Z),ie=a.$r(q),ee=B.$$prototype;return ee.backend=z,B.$include(ie("Logging")),B.$include(ie("Converter")),V(B,"$convert",function(U,g,o){var m=this,T=z;Je["!"]==null&&(Je["!"]=z),g==null&&(g=U.$node_name()),o==null&&(o=z);try{return v(o)?m.$send(We("convert_",g),U,o):m.$send(We("convert_",g),U)}catch(k){if(a.rescue(k,[ie("StandardError")]))try{return qe(et("NoMethodError"),T=Je["!"])&&Y(T.$receiver(),m)&&Y(T.$name().$to_s(),g)||m.$raise(),m.$logger().$warn("missing convert handler for "+T.$name()+" node in "+m.backend+" backend ("+m.$class()+")"),z}finally{a.pop_exception()}else throw k}},-2),V(B,"$handles?",function(U){var g=this;return g["$respond_to?"]("convert_"+U)}),V(B,"$content_only",function(U){return U.$content()}),V(B,"$skip",_e(z))}(Ne[0],null,Ne),we.$extend(Te("DefaultFactory"))}(K[0],K)}($t[0],$t)},Opal.modules["asciidoctor/document"]=function(a){var ae=a.module,te=a.klass,V=a.const_set,_e=a.send,v=a.alias,Y=a.truthy,Ue=a.def,G=a.hash2,Ie=a.not,C=a.to_ary,Oe=a.return_ivar,ze=a.send2,Ge=a.find_super,qe=a.rb_minus,je=a.eqeq,dt=a.eqeqeq,Ye=a.hash,st=a.rb_ge,We=a.rb_plus,Je=a.neqeq,$t=a.thrower,z=a.rb_gt,et=a.rb_lt,E=a.gvars,tt=a.to_a,lt=[],K=a.nil,D=a.$$$;return a.add_stubs("new,target,attr_reader,nil?,<<,[],[]=,main,include?,strip,squeeze,gsub,!,empty?,rpartition,attr_accessor,catalog,delete,base_dir,options,merge,instance_variable_get,attributes,safe,compat_mode,outfilesuffix,sourcemap,path_resolver,converter,extensions,syntax_highlighter,each,end_with?,start_with?,slice,-,length,chop,==,downcase,===,extname,value_for_name,key?,freeze,attribute_undefined,attribute_missing,update,&,keys,name_for_value,expand_path,pwd,to_s,>=,+,abs,to_i,delete_if,update_doctype_attributes,cursor,parse,restore_attributes,update_backend_attributes,fetch,fill_datetime_attributes,activate,groups,create,to_proc,preprocessors?,preprocessors,process_method,tree_processors?,tree_processors,!=,counter,nil_or_empty?,attribute_locked?,nextval,value,save_to,increment_and_store_counter,register,tap,xreftext,>,source,source_lines,doctitle,sectname=,title=,first_section,title,reftext,<,find,context,header?,assign_numeral,clear_playback_attributes,save_attributes,name,negate,rewind,replace,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(He,we){var Ne=ae(He,"Asciidoctor"),Te=[Ne].concat(we),ue=a.$r(Te);return function(ye,Z,B){var q=te(ye,Z,"Document"),ie=[q].concat(B),ee=a.$r(ie),$e=q.$$prototype;return $e.attributes=$e.safe=$e.sourcemap=$e.reader=$e.base_dir=$e.parsed=$e.parent_document=$e.extensions=$e.options=$e.counters=$e.catalog=$e.reftexts=$e.next_section_index=$e.header=$e.blocks=$e.header_attributes=$e.attributes_modified=$e.backend=$e.attribute_overrides=$e.timings=$e.converter=$e.outfilesuffix=$e.docinfo_processor_extensions=$e.document=$e.max_attribute_value_size=$e.id=$e.doctype=K,V(ie[0],"ImageReference",_e(D("Struct"),"new",["target","imagesdir"],function U(){var g=U.$$s==null?this:U.$$s;return v(g,"to_s","target")},{$$s:q})),V(ie[0],"Footnote",D("Struct").$new("index","id","text")),function(U,g){var o=te(U,g,"AttributeEntry");return o.$attr_reader("name","value","negate"),Ue(o,"$initialize",function(T,k,y){var L=this;return y==null&&(y=K),L.name=T,L.value=k,L.negate=Y(y["$nil?"]())?k["$nil?"]():y},-3),Ue(o,"$save_to",function(T){var k,y=this,L=K;return(Y(L=T["$[]"]("attribute_entries"))?L:(k=["attribute_entries",[]],_e(T,"[]=",k),k[k.length-1]))["$<<"](y),y})}(ie[0],null),function(U,g,o){var m=te(U,g,"Title"),T=[m].concat(o),k=a.$r(T),y=m.$$prototype;return y.subtitle=K,m.$attr_reader("main"),v(m,"title","main"),m.$attr_reader("subtitle"),m.$attr_reader("combined"),Ue(m,"$initialize",function(j,de){var oe,ke,Be=this,Xe=K,it=K;return de==null&&(de=G([],{})),Y(Be.sanitized=de["$[]"]("sanitize"))&&Y(j["$include?"]("<"))&&(j=j.$gsub(k("XmlSanitizeRx"),"").$squeeze(" ").$strip()),Y((Xe=Y(it=de["$[]"]("separator"))?it:":")["$empty?"]())||Ie(j["$include?"](Xe=""+Xe+" "))?(Be.main=j,Be.subtitle=K):(ke=j.$rpartition(Xe),oe=C(ke),Be.main=oe[0]==null?K:oe[0],oe[1]==null||oe[1],Be.subtitle=oe[2]==null?K:oe[2]),Be.combined=j},-2),Ue(m,"$sanitized?",Oe("sanitized")),Ue(m,"$subtitle?",function(){var j=this;return!!Y(j.subtitle)}),Ue(m,"$to_s",Oe("combined"))}(ie[0],null,ie),V(ie[0],"Author",D("Struct").$new("name","firstname","middlename","lastname","initials","email")),q.$attr_reader("safe"),q.$attr_reader("compat_mode"),q.$attr_reader("backend"),q.$attr_reader("doctype"),q.$attr_accessor("sourcemap"),q.$attr_reader("catalog"),v(q,"references","catalog"),q.$attr_reader("counters"),q.$attr_reader("header"),q.$attr_reader("base_dir"),q.$attr_reader("options"),q.$attr_reader("outfilesuffix"),q.$attr_reader("parent_document"),q.$attr_reader("reader"),q.$attr_reader("path_resolver"),q.$attr_reader("converter"),q.$attr_reader("syntax_highlighter"),q.$attr_reader("extensions"),Ue(q,"$initialize",function U(g,o){var m,T,k,y;U.$$p;var L=this,j=K,de=K,oe=K,ke=K,Be=K,Xe=K,it=K,ht=K,at=K,mt=K,yt=K,xt=K,vt=K,Tt=K,St=K,Yt=K,Bt=K,er=K;return U.$$p=null,g==null&&(g=K),o==null&&(o=G([],{})),ze(L,Ge(L,"initialize",U,!1,!0),"initialize",[L,"document"],null),Y(j=o.$delete("parent"))?(L.parent_document=j,Y(de=o["$[]"]("base_dir"))||o["$[]="]("base_dir",j.$base_dir()),Y(j.$options()["$[]"]("catalog_assets"))&&o["$[]="]("catalog_assets",!0),Y(j.$options()["$[]"]("to_dir"))&&o["$[]="]("to_dir",j.$options()["$[]"]("to_dir")),L.catalog=j.$catalog().$merge(G(["footnotes"],{footnotes:[]})),L.attribute_overrides=oe=j.$instance_variable_get("@attribute_overrides").$merge(j.$attributes()),oe.$delete("compat-mode"),ke=oe.$delete("doctype"),oe.$delete("notitle"),oe.$delete("showtitle"),oe.$delete("toc"),L.attributes["$[]="]("toc-placement",Y(de=oe.$delete("toc-placement"))?de:"auto"),oe.$delete("toc-position"),L.safe=j.$safe(),Y(L.compat_mode=j.$compat_mode())&&L.attributes["$[]="]("compat-mode",""),L.outfilesuffix=j.$outfilesuffix(),L.sourcemap=j.$sourcemap(),L.timings=K,L.path_resolver=j.$path_resolver(),L.converter=j.$converter(),Be=K,L.extensions=j.$extensions(),L.syntax_highlighter=j.$syntax_highlighter()):(L.parent_document=K,L.catalog=G(["ids","refs","footnotes","links","images","callouts","includes"],{ids:G([],{}),refs:G([],{}),footnotes:[],links:[],images:[],callouts:ee("Callouts").$new(),includes:G([],{})}),L.attribute_overrides=oe=G([],{}),_e(Y(de=o["$[]"]("attributes"))?de:G([],{}),"each",[],function(jt,Wt){var Xt;return jt==null&&(jt=K),Wt==null&&(Wt=K),Y(jt["$end_with?"]("@"))?Y(jt["$start_with?"]("!"))?(Xt=[jt.$slice(1,qe(jt.$length(),2)),!1],jt=Xt[0],Wt=Xt[1]):Y(jt["$end_with?"]("!@"))?(Xt=[jt.$slice(0,qe(jt.$length(),2)),!1],jt=Xt[0],Wt=Xt[1]):(Xt=[jt.$chop(),""+Wt+"@"],jt=Xt[0],Wt=Xt[1]):Y(jt["$start_with?"]("!"))?(Xt=[jt.$slice(1,jt.$length()),je(Wt,"@")?!1:K],jt=Xt[0],Wt=Xt[1]):Y(jt["$end_with?"]("!"))&&(Xt=[jt.$chop(),je(Wt,"@")?!1:K],jt=Xt[0],Wt=Xt[1]),Xt=[jt.$downcase(),Wt],_e(oe,"[]=",Xt),Xt[Xt.length-1]}),dt(D("String"),Xe=o["$[]"]("to_file"))&&oe["$[]="]("outfilesuffix",ee("Helpers").$extname(Xe)),Ie(it=o["$[]"]("safe"))?L.safe=D(ee("SafeMode"),"SECURE"):dt(D("Integer"),it)?L.safe=it:L.safe=function(){try{return ee("SafeMode").$value_for_name(it)}catch(Kt){if(a.rescue(Kt,[ee("StandardError")]))try{return D(ee("SafeMode"),"SECURE")}finally{a.pop_exception()}else throw Kt}}(),ht=o.$delete("input_mtime"),L.compat_mode=oe["$key?"]("compat-mode"),L.sourcemap=o["$[]"]("sourcemap"),L.timings=o.$delete("timings"),L.path_resolver=ee("PathResolver").$new(),Be=Y((m=D("::","Asciidoctor","skip_raise"))&&D(m,"Extensions","skip_raise")?"constant":K)||Y(o["$key?"]("extensions"))?D(D("Asciidoctor"),"Extensions"):K,L.extensions=K,Y(o["$key?"]("header_footer"))&&Ie(o["$key?"]("standalone"))&&o["$[]="]("standalone",o["$[]"]("header_footer"))),L.parsed=L.reftexts=L.header=L.header_attributes=K,L.counters=G([],{}),L.attributes_modified=D("Set").$new(),L.docinfo_processor_extensions=G([],{}),at=o["$[]"]("standalone"),(L.options=o).$freeze(),mt=L.attributes,Y(j)||(mt["$[]="]("attribute-undefined",ee("Compliance").$attribute_undefined()),mt["$[]="]("attribute-missing",ee("Compliance").$attribute_missing()),mt.$update(ee("DEFAULT_ATTRIBUTES"))),Y(at)?(oe["$[]="]("embedded",K),mt["$[]="]("copycss",""),mt["$[]="]("iconfont-remote",""),mt["$[]="]("stylesheet",""),mt["$[]="]("webfonts","")):(oe["$[]="]("embedded",""),Y(oe["$key?"]("showtitle"))&&je(oe.$keys()["$&"](["notitle","showtitle"])["$[]"](-1),"showtitle")?oe["$[]="]("notitle",Ye(K,"",!1,"@","@",!1)["$[]"](oe["$[]"]("showtitle"))):Y(oe["$key?"]("notitle"))?oe["$[]="]("showtitle",Ye(K,"",!1,"@","@",!1)["$[]"](oe["$[]"]("notitle"))):mt["$[]="]("notitle","")),oe["$[]="]("asciidoctor",""),oe["$[]="]("asciidoctor-version",D(D("Asciidoctor"),"VERSION")),oe["$[]="]("safe-mode-name",yt=ee("SafeMode").$name_for_value(L.safe)),oe["$[]="]("safe-mode-"+yt,""),oe["$[]="]("safe-mode-level",L.safe),Y(de=oe["$[]"]("max-include-depth"))||oe["$[]="]("max-include-depth",64),Y(de=oe["$[]"]("allow-uri-read"))||oe["$[]="]("allow-uri-read",K),Y(oe["$key?"]("numbered"))&&oe["$[]="]("sectnums",oe.$delete("numbered")),Y(oe["$key?"]("hardbreaks"))&&oe["$[]="]("hardbreaks-option",oe.$delete("hardbreaks")),Y(xt=o["$[]"]("base_dir"))?L.base_dir=(T=["docdir",D("File").$expand_path(xt)],_e(oe,"[]=",T),T[T.length-1]):Y(oe["$[]"]("docdir"))?L.base_dir=oe["$[]"]("docdir"):L.base_dir=(T=["docdir",D("Dir").$pwd()],_e(oe,"[]=",T),T[T.length-1]),Y(vt=o["$[]"]("backend"))&&oe["$[]="]("backend",vt.$to_s()),Y(Tt=o["$[]"]("doctype"))&&oe["$[]="]("doctype",Tt.$to_s()),Y(st(L.safe,D(ee("SafeMode"),"SERVER")))?(Y(de=oe["$[]"]("copycss"))||oe["$[]="]("copycss",K),Y(de=oe["$[]"]("source-highlighter"))||oe["$[]="]("source-highlighter",K),Y(de=oe["$[]"]("backend"))||oe["$[]="]("backend",ee("DEFAULT_BACKEND")),Ie(j)&&Y(oe["$key?"]("docfile"))&&oe["$[]="]("docfile",oe["$[]"]("docfile")["$[]"](a.Range.$new(We(oe["$[]"]("docdir").$length(),1),-1,!1))),oe["$[]="]("docdir",""),Y(de=oe["$[]"]("user-home"))||oe["$[]="]("user-home","."),Y(st(L.safe,D(ee("SafeMode"),"SECURE")))&&(Y(oe["$key?"]("max-attribute-value-size"))||oe["$[]="]("max-attribute-value-size",4096),Y(oe["$key?"]("linkcss"))||oe["$[]="]("linkcss",""),Y(de=oe["$[]"]("icons"))||oe["$[]="]("icons",K))):Y(de=oe["$[]"]("user-home"))||oe["$[]="]("user-home",ee("USER_HOME")),L.max_attribute_value_size=Y(St=Y(de=oe["$[]"]("max-attribute-value-size"))?de:(T=["max-attribute-value-size",K],_e(oe,"[]=",T),T[T.length-1]))?St.$to_i().$abs():K,_e(oe,"delete_if",[],function(jt,Wt){var Xt,nr=K;return jt==null&&(jt=K),Wt==null&&(Wt=K),Y(Wt)?(dt(D("String"),Wt)&&Y(Wt["$end_with?"]("@"))&&(Xt=[Wt.$chop(),!0],Wt=Xt[0],nr=Xt[1]),mt["$[]="](jt,Wt)):(mt.$delete(jt),nr=Wt["$=="](!1)),nr}),Y(j)?(L.backend=mt["$[]"]("backend"),je(L.doctype=(T=["doctype",ke],_e(mt,"[]=",T),T[T.length-1]),ee("DEFAULT_DOCTYPE"))||L.$update_doctype_attributes(ee("DEFAULT_DOCTYPE")),L.reader=ee("Reader").$new(g,o["$[]"]("cursor")),Y(L.sourcemap)&&(L.source_location=L.reader.$cursor()),ee("Parser").$parse(L.reader,L),L.$restore_attributes(),L.parsed=!0):(L.backend=K,je(Yt=Y(de=mt["$[]"]("backend"))?de:ee("DEFAULT_BACKEND"),"manpage")?L.doctype=(T=["doctype",(k=["doctype","manpage"],_e(oe,"[]=",k),k[k.length-1])],_e(mt,"[]=",T),T[T.length-1]):L.doctype=Y(de=mt["$[]"]("doctype"))?de:(T=["doctype",ee("DEFAULT_DOCTYPE")],_e(mt,"[]=",T),T[T.length-1]),L.$update_backend_attributes(Yt,!0),Y(de=mt["$[]"]("stylesdir"))||mt["$[]="]("stylesdir","."),Y(de=mt["$[]"]("iconsdir"))||mt["$[]="]("iconsdir",""+mt.$fetch("imagesdir","./images")+"/icons"),L.$fill_datetime_attributes(mt,ht),Y(Be)&&(Y(Bt=o["$[]"]("extension_registry"))?(dt(D(ee("Extensions"),"Registry"),Bt)||Y((y=D("::","AsciidoctorJ","skip_raise"))&&(k=D(y,"Extensions","skip_raise"))&&(T=D(k,"ExtensionRegistry","skip_raise"))?"constant":K)&&dt(D(D(D("AsciidoctorJ"),"Extensions"),"ExtensionRegistry"),Bt))&&(L.extensions=Bt.$activate(L)):Y((er=o["$[]"]("extensions"))["$nil?"]())?Y(ee("Extensions").$groups()["$empty?"]())||(L.extensions=D(ee("Extensions"),"Registry").$new().$activate(L)):dt(D("Proc"),er)&&(L.extensions=_e(ee("Extensions"),"create",[],er.$to_proc()).$activate(L))),L.reader=ee("PreprocessorReader").$new(L,g,D(ee("Reader"),"Cursor").$new(mt["$[]"]("docfile"),L.base_dir),G(["normalize"],{normalize:!0})),Y(L.sourcemap)?L.source_location=L.reader.$cursor():K)},-1),Ue(q,"$parse",function(g){var o=this,m=K,T=K;return g==null&&(g=K),Y(o.parsed)?o:(m=o,Y(g)&&(o.reader=ee("PreprocessorReader").$new(m,g,D(ee("Reader"),"Cursor").$new(o.attributes["$[]"]("docfile"),o.base_dir),G(["normalize"],{normalize:!0})),Y(o.sourcemap)&&(o.source_location=o.reader.$cursor())),Y(T=Y(o.parent_document)?K:o.extensions)&&Y(T["$preprocessors?"]())&&_e(T.$preprocessors(),"each",[],function k(y){var L=k.$$s==null?this:k.$$s,j=K;return L.reader==null&&(L.reader=K),y==null&&(y=K),L.reader=Y(j=y.$process_method()["$[]"](m,L.reader))?j:L.reader},{$$s:o}),ee("Parser").$parse(o.reader,m,G(["header_only"],{header_only:o.options["$[]"]("parse_header_only")})),o.$restore_attributes(),Y(T)&&Y(T["$tree_processors?"]())&&_e(T.$tree_processors(),"each",[],function(y){var L=K;return y==null&&(y=K),Y(L=y.$process_method()["$[]"](m))&&dt(ee("Document"),L)&&Je(L,m)?m=L:K}),o.parsed=!0,m)},-1),Ue(q,"$parsed?",Oe("parsed")),Ue(q,"$counter",function(g,o){var m,T=this,k=K,y=K,L=K;return o==null&&(o=K),Y(T.parent_document)?T.parent_document.$counter(g,o):(Y(y=T["$attribute_locked?"](g))&&Y(k=T.counters["$[]"](g))||Ie((k=T.attributes["$[]"](g))["$nil_or_empty?"]())?L=(m=[g,ee("Helpers").$nextval(k)],_e(T.counters,"[]=",m),m[m.length-1]):Y(o)?L=(m=[g,je(o,o.$to_i().$to_s())?o.$to_i():o],_e(T.counters,"[]=",m),m[m.length-1]):L=(m=[g,1],_e(T.counters,"[]=",m),m[m.length-1]),Y(y)||T.attributes["$[]="](g,L),L)},-2),Ue(q,"$increment_and_store_counter",function(g,o){var m=this;return ee("AttributeEntry").$new(g,m.$counter(g)).$save_to(o.$attributes()).$value()}),v(q,"counter_increment","increment_and_store_counter"),Ue(q,"$register",function(g,o){var m=this,T=K,k=K,y=K;switch(g){case"ids":return m.$register("refs",[T=o["$[]"](0),ee("Inline").$new(m,"anchor",o["$[]"](1),G(["type","id"],{type:"ref",id:T}))]);case"refs":return k=m.catalog["$[]"]("refs"),Y(k["$[]"](o["$[]"](0)))||k["$[]="](o["$[]"](0),y=o["$[]"](1)),y;case"footnotes":return m.catalog["$[]"](g)["$<<"](o);default:return Y(m.options["$[]"]("catalog_assets"))?m.catalog["$[]"](g)["$<<"](je(g,"images")?ee("ImageReference").$new(o,m.attributes["$[]"]("imagesdir")):o):K}}),Ue(q,"$resolve_id",function(g){var o=this,m=K,T=K;return Y(o.reftexts)?o.reftexts["$[]"](g):Y(o.parsed)?_e(o.reftexts=G([],{}),"tap",[],function k(y){var L=k.$$s==null?this:k.$$s;return L.catalog==null&&(L.catalog=K),y==null&&(y=K),_e(L.catalog["$[]"]("refs"),"each",[],function(de,oe){var ke,Be=K;return de==null&&(de=K),oe==null&&(oe=K),Y(Be=y["$[]"](oe.$xreftext()))?Be:(ke=[oe.$xreftext(),de],_e(y,"[]=",ke),ke[ke.length-1])})},{$$s:o})["$[]"](g):(m=K,o.reftexts=T=G([],{}),function(){try{var k=$t("break");return _e(o.catalog["$[]"]("refs"),"each",[],function(L,j){var de,oe=K,ke=K;return L==null&&(L=K),j==null&&(j=K),je(oe=j.$xreftext(),g)&&(m=L,k.$throw()),Y(ke=T["$[]"](oe))?ke:(de=[oe,L],_e(T,"[]=",de),de[de.length-1])})}catch(y){if(y===k)return y.$v;throw y}}(),o.reftexts=K,m)}),Ue(q,"$sections?",function(){var g=this;return z(g.next_section_index,0)}),Ue(q,"$footnotes?",function(){var g=this;return!Y(g.catalog["$[]"]("footnotes")["$empty?"]())}),Ue(q,"$footnotes",function(){var g=this;return g.catalog["$[]"]("footnotes")}),Ue(q,"$callouts",function(){var g=this;return g.catalog["$[]"]("callouts")}),Ue(q,"$nested?",function(){var g=this;return!!Y(g.parent_document)}),Ue(q,"$embedded?",function(){var g=this;return g.attributes["$key?"]("embedded")}),Ue(q,"$extensions?",function(){var g=this;return!!Y(g.extensions)}),Ue(q,"$source",function(){var g=this;return Y(g.reader)?g.reader.$source():K}),Ue(q,"$source_lines",function(){var g=this;return Y(g.reader)?g.reader.$source_lines():K}),Ue(q,"$basebackend?",function(g){var o=this;return o.attributes["$[]"]("basebackend")["$=="](g)}),Ue(q,"$title",function(){var g=this;return g.$doctitle()}),Ue(q,"$title=",function(g){var o,m=this,T=K;return Y(T=m.header)||(T=m.header=ee("Section").$new(m,0))["$sectname="]("header"),o=[g],_e(T,"title=",o),o[o.length-1]}),Ue(q,"$doctitle",function(g){var o=this,m=K,T=K,k=K,y=K;if(g==null&&(g=G([],{})),!Y(m=o.attributes["$[]"]("title"))){if(Y(T=o.$first_section()))m=T.$title();else if(Ie(Y(k=g["$[]"]("use_fallback"))?m=o.attributes["$[]"]("untitled-label"):k))return K}return Y(y=g["$[]"]("partition"))?ee("Title").$new(m,g.$merge(G(["separator"],{separator:je(y,!0)?o.attributes["$[]"]("title-separator"):y}))):Y(g["$[]"]("sanitize"))&&Y(m["$include?"]("<"))?m.$gsub(ee("XmlSanitizeRx"),"").$squeeze(" ").$strip():m},-1),v(q,"name","doctitle"),Ue(q,"$xreftext",function(g){var o=this,m=K;return Y(m=o.$reftext())&&Ie(m["$empty?"]())?m:o.$title()},-1),Ue(q,"$author",function(){var g=this;return g.attributes["$[]"]("author")}),Ue(q,"$authors",function(){var g=this,o=K,m=K,T=K,k=K,y=K;if(Y((o=g.attributes)["$key?"]("author"))){if(m=[ee("Author").$new(o["$[]"]("author"),o["$[]"]("firstname"),o["$[]"]("middlename"),o["$[]"]("lastname"),o["$[]"]("authorinitials"),o["$[]"]("email"))],Y(z(T=Y(k=o["$[]"]("authorcount"))?k:0,1)))for(y=1;Y(et(y,T));)y=We(y,1),m["$<<"](ee("Author").$new(o["$[]"]("author_"+y),o["$[]"]("firstname_"+y),o["$[]"]("middlename_"+y),o["$[]"]("lastname_"+y),o["$[]"]("authorinitials_"+y),o["$[]"]("email_"+y)));return m}else return[]}),Ue(q,"$revdate",function(){var g=this;return g.attributes["$[]"]("revdate")}),Ue(q,"$notitle",function(){var g=this;return g.attributes["$key?"]("notitle")}),Ue(q,"$noheader",function(){var g=this;return g.attributes["$key?"]("noheader")}),Ue(q,"$nofooter",function(){var g=this;return g.attributes["$key?"]("nofooter")}),Ue(q,"$first_section",function(){var g=this,o=K;return Y(o=g.header)?o:_e(g.blocks,"find",[],function(T){return T==null&&(T=K),T.$context()["$=="]("section")})}),Ue(q,"$header?",function(){var g=this;return!!Y(g.header)}),v(q,"has_header?","header?"),Ue(q,"$<<",function U(g){var o=U.$$p||K,m=this;return U.$$p=null,je(g.$context(),"section")&&m.$assign_numeral(g),ze(m,Ge(m,"<<",U,!1,!0),"<<",[g],o)}),Ue(q,"$finalize_header",function(g,o){var m=this;return o==null&&(o=!0),m.$clear_playback_attributes(g),m.$save_attributes(),Y(o)||g["$[]="]("invalid-header",!0),g},-2),Ue(q,"$playback_attributes",function(g){var o=this;return Y(g["$key?"]("attribute_entries"))?_e(g["$[]"]("attribute_entries"),"each",[],function m(T){var k=m.$$s==null?this:m.$$s,y=K;return k.attributes==null&&(k.attributes=K),T==null&&(T=K),y=T.$name(),Y(T.$negate())?(k.attributes.$delete(y),je(y,"compat-mode")?k.compat_mode=!1:K):(k.attributes["$[]="](y,T.$value()),je(y,"compat-mode")?k.compat_mode=!0:K)},{$$s:o}):K}),Ue(q,"$restore_attributes",function(){var g=this;return Y(g.parent_document)||g.catalog["$[]"]("callouts").$rewind(),g.attributes.$replace(g.header_attributes)}),Ue(q,"$set_attribute",function(g,o){var m=this,T=K;if(o==null&&(o=""),Y(m["$attribute_locked?"](g)))return K;if(Y(o["$empty?"]())||(o=m.$apply_attribute_value_subs(o)),Y(m.header_attributes))m.attributes["$[]="](g,o);else{switch(g){case"backend":m.$update_backend_attributes(o,Y(T=m.attributes_modified["$delete?"]("htmlsyntax"))?o["$=="](m.backend):T);break;case"doctype":m.$update_doctype_attributes(o);break;default:m.attributes["$[]="](g,o)}m.attributes_modified["$<<"](g)}return o},-2),Ue(q,"$delete_attribute",function(g){var o=this;return Y(o["$attribute_locked?"](g))?!1:(o.attributes.$delete(g),o.attributes_modified["$<<"](g),!0)}),Ue(q,"$attribute_locked?",function(g){var o=this;return o.attribute_overrides["$key?"](g)}),Ue(q,"$set_header_attribute",function(g,o,m){var T=this,k=K,y=K;return o==null&&(o=""),m==null&&(m=!0),k=Y(y=T.header_attributes)?y:T.attributes,je(m,!1)&&Y(k["$key?"](g))?!1:(k["$[]="](g,o),!0)},-2),Ue(q,"$convert",function(g){var o,m=this,T=K,k=K,y=K,L=K,j=K;return g==null&&(g=G([],{})),Y(m.timings)&&m.timings.$start("convert"),Y(m.parsed)||m.$parse(),Y(st(m.safe,D(ee("SafeMode"),"SERVER")))||Y(g["$empty?"]())||(Y((o=["outfile",g["$[]"]("outfile")],_e(m.attributes,"[]=",o),o[o.length-1]))||m.attributes.$delete("outfile"),Y((o=["outdir",g["$[]"]("outdir")],_e(m.attributes,"[]=",o),o[o.length-1]))||m.attributes.$delete("outdir")),je(m.$doctype(),"inline")?Y(T=Y(k=m.blocks["$[]"](0))?k:m.header)&&(je(T.$content_model(),"compound")||je(T.$content_model(),"empty")?m.$logger().$warn("no inline candidate; use the inline doctype to convert a single paragragh, verbatim, or raw block"):y=T.$content()):(Y(g["$key?"]("standalone"))?L=Y(g["$[]"]("standalone"))?"document":"embedded":Y(g["$key?"]("header_footer"))?L=Y(g["$[]"]("header_footer"))?"document":"embedded":L=Y(m.options["$[]"]("standalone"))?"document":"embedded",y=m.converter.$convert(m,L)),Y(m.parent_document)||Y(j=m.extensions)&&Y(j["$postprocessors?"]())&&_e(j.$postprocessors(),"each",[],function de(oe){var ke=de.$$s==null?this:de.$$s;return oe==null&&(oe=K),y=oe.$process_method()["$[]"](ke,y)},{$$s:m}),Y(m.timings)&&m.timings.$record("convert"),y},-1),v(q,"render","convert"),Ue(q,"$write",function(g,o){var m=this;return Y(m.timings)&&m.timings.$start("write"),dt(ee("Writer"),m.converter)?m.converter.$write(g,o):(Y(o["$respond_to?"]("write"))?Y(g["$nil_or_empty?"]())||(o.$write(g.$chomp()),o.$write(ee("LF"))):D("File").$write(o,g,G(["mode"],{mode:ee("FILE_WRITE_MODE")})),je(m.backend,"manpage")&&dt(D("String"),o)&&Y(m.converter.$class()["$respond_to?"]("write_alternate_pages"))&&m.converter.$class().$write_alternate_pages(m.attributes["$[]"]("mannames"),m.attributes["$[]"]("manvolnum"),o)),Y(m.timings)&&m.timings.$record("write"),K}),Ue(q,"$content",function U(){var g=U.$$p||K,o=this;return U.$$p=null,o.attributes.$delete("title"),ze(o,Ge(o,"content",U,!1,!0),"content",[],g)}),Ue(q,"$docinfo",function(g,o){var m,T=this,k=K,y=K,L=K,j=K,de=K,oe=K,ke=K,Be=K,Xe=K,it=K;return g==null&&(g="head"),o==null&&(o=K),Y(et(T.$safe(),D(ee("SafeMode"),"SECURE")))&&(je(g,"head")||(k="-"+g),o=Y(y=o)?y:T.outfilesuffix,Y((L=T.attributes["$[]"]("docinfo"))["$nil_or_empty?"]())?Y(T.attributes["$key?"]("docinfo2"))?L=["private","shared"]:Y(T.attributes["$key?"]("docinfo1"))?L=["shared"]:L=Y(L)?["private"]:K:L=_e(L.$split(","),"map",[],function(at){return at==null&&(at=K),at.$strip()}),Y(L)&&(j=[],m=["docinfo"+k+o,T.attributes["$[]"]("docinfodir"),T.$resolve_docinfo_subs()],de=m[0],oe=m[1],ke=m[2],Y(L["$&"](["shared","shared-"+g])["$empty?"]())||(Be=T.$normalize_system_path(de,oe),Y(Xe=T.$read_asset(Be,G(["normalize"],{normalize:!0})))&&j["$<<"](T.$apply_subs(Xe,ke))),Y(T.attributes["$[]"]("docname")["$nil_or_empty?"]())||Y(L["$&"](["private","private-"+g])["$empty?"]())||(Be=T.$normalize_system_path(""+T.attributes["$[]"]("docname")+"-"+de,oe),Y(it=T.$read_asset(Be,G(["normalize"],{normalize:!0})))&&j["$<<"](T.$apply_subs(it,ke))))),Y(T.extensions)&&Y(T["$docinfo_processors?"](g))?(Y(y=j)?y:[]).$concat(_e(T.docinfo_processor_extensions["$[]"](g),"map",[],function ht(at){var mt=ht.$$s==null?this:ht.$$s;return at==null&&(at=K),at.$process_method()["$[]"](mt)},{$$s:T}).$compact()).$join(ee("LF")):Y(j)?j.$join(ee("LF")):""},-1),Ue(q,"$docinfo_processors?",function(g){var o,m=this;return g==null&&(g="head"),Y(m.docinfo_processor_extensions["$key?"](g))?m.docinfo_processor_extensions["$[]"](g)["$!="](!1):Y(m.extensions)&&Y(m.document.$extensions()["$docinfo_processors?"](g))?(o=[g,m.document.$extensions().$docinfo_processors(g)],_e(m.docinfo_processor_extensions,"[]=",o),o[o.length-1])["$!"]()["$!"]():(o=[g,!1],_e(m.docinfo_processor_extensions,"[]=",o),o[o.length-1])},-1),Ue(q,"$to_s",function(){var g=this,o=K;return"#<"+g.$class()+"@"+g.$object_id()+" {doctype: "+g.$doctype().$inspect()+", doctitle: "+(Y(o=g.header)?g.header.$title():o).$inspect()+", blocks: "+g.blocks.$size()+"}>"}),q.$private(),Ue(q,"$apply_attribute_value_subs",function(g){var o,m=this;return Y(ee("AttributeEntryPassMacroRx")["$=~"](g))?(g=(o=E["~"])===K?K:o["$[]"](2),Y((o=E["~"])===K?K:o["$[]"](1))&&(g=m.$apply_subs(g,m.$resolve_pass_subs((o=E["~"])===K?K:o["$[]"](1))))):g=m.$apply_header_subs(g),Y(m.max_attribute_value_size)?m.$limit_bytesize(g,m.max_attribute_value_size):g}),Ue(q,"$limit_bytesize",function(g,o){if(Y(z(g.$bytesize(),o)))for(;!Y((g=g.$byteslice(0,o))["$valid_encoding?"]());)o=qe(o,1);return g}),Ue(q,"$resolve_docinfo_subs",function(){var g=this;return Y(g.attributes["$key?"]("docinfosubs"))?g.$resolve_subs(g.attributes["$[]"]("docinfosubs"),"block",K,"docinfo"):["attributes"]}),Ue(q,"$create_converter",function(g,o){var m=this,T=K,k=K,y=K,L=K,j=K;return T=G(["document","htmlsyntax"],{document:m,htmlsyntax:m.attributes["$[]"]("htmlsyntax")}),Y(k=Y(y=(L=m.options)["$[]"]("template_dirs"))?y:L["$[]"]("template_dir"))&&(T["$[]="]("template_dirs",[].concat(tt(k))),T["$[]="]("template_cache",L.$fetch("template_cache",!0)),T["$[]="]("template_engine",L["$[]"]("template_engine")),T["$[]="]("template_engine_options",L["$[]"]("template_engine_options")),T["$[]="]("eruby",L["$[]"]("eruby")),T["$[]="]("safe",m.safe),Y(o)&&T["$[]="]("delegate_backend",o)),Y(j=L["$[]"]("converter"))?D(ee("Converter"),"CustomFactory").$new(Ye(g,j)).$create(g,T):L.$fetch("converter_factory",ee("Converter")).$create(g,T)}),Ue(q,"$clear_playback_attributes",function(g){return g.$delete("attribute_entries")}),Ue(q,"$save_attributes",function(){var g=this,o=K,m=K,T=K,k=K,y=K,L=K,j=K,de=K,oe=K,ke=K,Be=K,Xe=K,it=K,ht=K;if(Y((m=g.attributes)["$key?"]("doctitle"))||Ie(o=g.$doctitle())||m["$[]="]("doctitle",o),g.id=Y(T=g.id)?T:m["$[]"]("css-signature"),Y(k=Y(m.$delete("toc2"))?"left":m["$[]"]("toc"))&&(y=Y(L=m.$fetch("toc-placement","macro"))&&Je(L,"auto")?L:m["$[]"]("toc-position"),!(Y(k["$empty?"]())&&Y(y["$nil_or_empty?"]())))){switch(j="left",de="toc2",oe=Y(y["$nil_or_empty?"]())?Y(k["$empty?"]())?j:k:y,m["$[]="]("toc",""),m["$[]="]("toc-placement","auto"),oe){case"left":case"<":case"<":m["$[]="]("toc-position","left");break;case"right":case">":case">":m["$[]="]("toc-position","right");break;case"top":case"^":m["$[]="]("toc-position","top");break;case"bottom":case"v":m["$[]="]("toc-position","bottom");break;case"preamble":case"macro":m["$[]="]("toc-position","content"),m["$[]="]("toc-placement",oe),de=K;break;default:m.$delete("toc-position"),de=K}Y(de)&&(Y(T=m["$[]"]("toc-class"))||m["$[]="]("toc-class",de))}if(Y(ke=m["$[]"]("icons"))&&Ie(m["$key?"]("icontype")))switch(ke){case"":case"font":break;default:m["$[]="]("icons",""),je(ke,"image")||m["$[]="]("icontype",ke)}return Y(g.compat_mode=m["$key?"]("compat-mode"))&&Y(m["$key?"]("language"))&&m["$[]="]("source-language",m["$[]"]("language")),Y(g.parent_document)||(je(Be=m["$[]"]("basebackend"),"html")?Y(Xe=m["$[]"]("source-highlighter"))&&Ie(m["$[]"](""+Xe+"-unavailable"))&&(Y(it=g.options["$[]"]("syntax_highlighter_factory"))?g.syntax_highlighter=it.$create(Xe,g.backend,G(["document"],{document:g})):Y(ht=g.options["$[]"]("syntax_highlighters"))?g.syntax_highlighter=D(ee("SyntaxHighlighter"),"DefaultFactoryProxy").$new(ht).$create(Xe,g.backend,G(["document"],{document:g})):g.syntax_highlighter=ee("SyntaxHighlighter").$create(Xe,g.backend,G(["document"],{document:g}))):je(Be,"docbook")&&(Y(g["$attribute_locked?"]("toc"))||Y(g.attributes_modified["$include?"]("toc"))||m["$[]="]("toc",""),Y(g["$attribute_locked?"]("sectnums"))||Y(g.attributes_modified["$include?"]("sectnums"))||m["$[]="]("sectnums","")),g.outfilesuffix=m["$[]"]("outfilesuffix"),_e(ee("FLEXIBLE_ATTRIBUTES"),"each",[],function at(mt){var yt=at.$$s==null?this:at.$$s;return yt.attribute_overrides==null&&(yt.attribute_overrides=K),mt==null&&(mt=K),Y(yt.attribute_overrides["$key?"](mt))&&Y(yt.attribute_overrides["$[]"](mt))?yt.attribute_overrides.$delete(mt):K},{$$s:g})),g.header_attributes=m.$merge()}),Ue(q,"$fill_datetime_attributes",function(g,o){var m,T=this,k=K,y=K,L=K,j=K,de=K,oe=K,ke=K,Be=K;return k=Y(D("ENV")["$key?"]("SOURCE_DATE_EPOCH"))?y=D("Time").$at(T.$Integer(D("ENV")["$[]"]("SOURCE_DATE_EPOCH"))).$utc():D("Time").$now(),Y(L=g["$[]"]("localdate"))?Y(j=g["$[]"]("localyear"))||g["$[]="]("localyear",je(L.$index("-"),4)?L.$slice(0,4):K):(L=(m=["localdate",k.$strftime("%F")],_e(g,"[]=",m),m[m.length-1]),Y(j=g["$[]"]("localyear"))||g["$[]="]("localyear",k.$year().$to_s())),de=Y(j=g["$[]"]("localtime"))?j:(m=["localtime",k.$strftime("%T "+(je(k.$utc_offset(),0)?"UTC":"%z"))],_e(g,"[]=",m),m[m.length-1]),Y(j=g["$[]"]("localdatetime"))||g["$[]="]("localdatetime",""+L+" "+de),o=Y(j=Y(oe=y)?oe:o)?j:k,Y(ke=g["$[]"]("docdate"))?Y(j=g["$[]"]("docyear"))||g["$[]="]("docyear",je(ke.$index("-"),4)?ke.$slice(0,4):K):(ke=(m=["docdate",o.$strftime("%F")],_e(g,"[]=",m),m[m.length-1]),Y(j=g["$[]"]("docyear"))||g["$[]="]("docyear",o.$year().$to_s())),Be=Y(j=g["$[]"]("doctime"))?j:(m=["doctime",o.$strftime("%T "+(je(o.$utc_offset(),0)?"UTC":"%z"))],_e(g,"[]=",m),m[m.length-1]),Y(j=g["$[]"]("docdatetime"))||g["$[]="]("docdatetime",""+ke+" "+Be),K}),Ue(q,"$update_backend_attributes",function(g,o){var m,T,k=this,y=K,L=K,j=K,de=K,oe=K,ke=K,Be=K,Xe=K,it=K,ht=K,at=K,mt=K,yt=K,xt=K;return o==null&&(o=K),Y(o)||Je(g,k.backend)?(y=k.backend,L=(j=k.attributes)["$[]"]("basebackend"),de=k.doctype,Y(g["$include?"](":"))&&(T=g.$partition(":"),m=C(T),oe=m[0]==null?K:m[0],m[1]==null||m[1],g=m[2]==null?K:m[2]),Y(g["$start_with?"]("xhtml"))?(j["$[]="]("htmlsyntax","xml"),g=g.$slice(1,g.$length())):Y(g["$start_with?"]("html"))&&(Y(ke=j["$[]"]("htmlsyntax"))||j["$[]="]("htmlsyntax","html")),g=Y(ke=ee("BACKEND_ALIASES")["$[]"](g))?ke:g,Y(oe)&&(m=[oe,g],g=m[0],Be=m[1]),Y(de)?(Y(y)&&(j.$delete("backend-"+y),j.$delete("backend-"+y+"-doctype-"+de)),j["$[]="]("backend-"+g+"-doctype-"+de,""),j["$[]="]("doctype-"+de,"")):Y(y)&&j.$delete("backend-"+y),j["$[]="]("backend-"+g,""),k.backend=(m=["backend",g],_e(j,"[]=",m),m[m.length-1]),dt(D(ee("Converter"),"BackendTraits"),Xe=k.$create_converter(g,Be))?(it=Xe.$basebackend(),ht=Xe.$filetype(),Y(at=Xe.$htmlsyntax())&&j["$[]="]("htmlsyntax",at),Y(o)?Y(ke=j["$[]"]("outfilesuffix"))||j["$[]="]("outfilesuffix",Xe.$outfilesuffix()):Y(k["$attribute_locked?"]("outfilesuffix"))||j["$[]="]("outfilesuffix",Xe.$outfilesuffix())):Y(Xe)?(mt=ee("Converter").$derive_backend_traits(g),it=mt["$[]"]("basebackend"),ht=mt["$[]"]("filetype"),Y(o)?Y(ke=j["$[]"]("outfilesuffix"))||j["$[]="]("outfilesuffix",mt["$[]"]("outfilesuffix")):Y(k["$attribute_locked?"]("outfilesuffix"))||j["$[]="]("outfilesuffix",mt["$[]"]("outfilesuffix"))):k.$raise(D("NotImplementedError"),"asciidoctor: FAILED: missing converter for backend '"+g+"'. Processing aborted."),k.converter=Xe,Y(yt=j["$[]"]("filetype"))&&j.$delete("filetype-"+yt),j["$[]="]("filetype",ht),j["$[]="]("filetype-"+ht,""),Y(xt=ee("DEFAULT_PAGE_WIDTHS")["$[]"](it))?j["$[]="]("pagewidth",xt):j.$delete("pagewidth"),Je(it,L)&&(Y(de)?(Y(L)&&(j.$delete("basebackend-"+L),j.$delete("basebackend-"+L+"-doctype-"+de)),j["$[]="]("basebackend-"+it+"-doctype-"+de,"")):Y(L)&&j.$delete("basebackend-"+L),j["$[]="]("basebackend-"+it,""),j["$[]="]("basebackend",it)),g):K},-2),Ue(q,"$update_doctype_attributes",function(g){var o,m=this,T=K,k=K,y=K,L=K;return Y(g)&&Je(g,m.doctype)?(o=[m.backend,(T=m.attributes)["$[]"]("basebackend"),m.doctype],k=o[0],y=o[1],L=o[2],Y(L)?(T.$delete("doctype-"+L),Y(k)&&(T.$delete("backend-"+k+"-doctype-"+L),T["$[]="]("backend-"+k+"-doctype-"+g,"")),Y(y)&&(T.$delete("basebackend-"+y+"-doctype-"+L),T["$[]="]("basebackend-"+y+"-doctype-"+g,""))):(Y(k)&&T["$[]="]("backend-"+k+"-doctype-"+g,""),Y(y)&&T["$[]="]("basebackend-"+y+"-doctype-"+g,"")),T["$[]="]("doctype-"+g,""),m.doctype=(o=["doctype",g],_e(T,"[]=",o),o[o.length-1])):K})}(Te[0],ue("AbstractBlock"),Te)}(lt[0],lt)},Opal.modules["asciidoctor/inline"]=function(a){var ae=a.module,te=a.klass,V=a.hash2,_e=a.send2,v=a.find_super,Y=a.def,Ue=a.return_val,G=a.alias,Ie=a.truthy,C=[],Oe=a.nil;return a.add_stubs("attr_accessor,attr_reader,[],convert,converter,attr,==,apply_reftext_subs,reftext"),function(ze,Ge){var qe=ae(ze,"Asciidoctor"),je=[qe].concat(Ge),dt=a.$r(je);return function(Ye,st){var We=te(Ye,st,"Inline"),Je=We.$$prototype;return Je.text=Je.type=Oe,We.$attr_accessor("text"),We.$attr_reader("type"),We.$attr_accessor("target"),Y(We,"$initialize",function $t(z,et,E,tt){$t.$$p;var lt=this;return $t.$$p=null,E==null&&(E=Oe),tt==null&&(tt=V([],{})),_e(lt,v(lt,"initialize",$t,!1,!0),"initialize",[z,et,tt],null),lt.node_name="inline_"+et,lt.text=E,lt.id=tt["$[]"]("id"),lt.type=tt["$[]"]("type"),lt.target=tt["$[]"]("target")},-3),Y(We,"$block?",Ue(!1)),Y(We,"$inline?",Ue(!0)),Y(We,"$convert",function(){var z=this;return z.$converter().$convert(z)}),G(We,"render","convert"),Y(We,"$alt",function(){var z=this,et=Oe;return Ie(et=z.$attr("alt"))?et:""}),Y(We,"$reftext?",function(){var z=this,et=Oe,E=Oe;return Ie(et=z.text)?Ie(E=z.type["$=="]("ref"))?E:z.type["$=="]("bibref"):et}),Y(We,"$reftext",function(){var z=this,et=Oe;return Ie(et=z.text)?z.$apply_reftext_subs(et):Oe}),Y(We,"$xreftext",function(z){var et=this;return et.$reftext()},-1)}(je[0],dt("AbstractNode"))}(C[0],C)},Opal.modules["asciidoctor/list"]=function(a){var ae=a.module,te=a.klass,V=a.alias,_e=a.hash2,v=a.send2,Y=a.find_super,Ue=a.def,G=a.truthy,Ie=a.eqeq,C=[],Oe=a.nil;return a.add_stubs("blocks,blocks?,==,next_list,callouts,convert,class,object_id,inspect,size,items,parent,attr_accessor,level,drop,nil_or_empty?,apply_subs,attr_writer,empty?,===,[],outline?,!,simple?,source,shift,context"),function(ze,Ge){var qe=ae(ze,"Asciidoctor"),je=[qe].concat(Ge),dt=a.$r(je);return function(Ye,st){var We=te(Ye,st,"List"),Je=We.$$prototype;return Je.context=Je.document=Je.style=Oe,V(We,"items","blocks"),V(We,"content","blocks"),V(We,"items?","blocks?"),Ue(We,"$initialize",function $t(z,et,E){var tt=$t.$$p||Oe,lt=this;return $t.$$p=null,E==null&&(E=_e([],{})),v(lt,Y(lt,"initialize",$t,!1,!0),"initialize",[z,et,E],tt)},-3),Ue(We,"$outline?",function(){var z=this,et=Oe;return G(et=z.context["$=="]("ulist"))?et:z.context["$=="]("olist")}),Ue(We,"$convert",function $t(){var z=$t.$$p||Oe,et=this,E=Oe;return $t.$$p=null,Ie(et.context,"colist")?(E=v(et,Y(et,"convert",$t,!1,!0),"convert",[],z),et.document.$callouts().$next_list(),E):v(et,Y(et,"convert",$t,!1,!0),"convert",[],z)}),V(We,"render","convert"),Ue(We,"$to_s",function(){var z=this;return"#<"+z.$class()+"@"+z.$object_id()+" {context: "+z.context.$inspect()+", style: "+z.style.$inspect()+", items: "+z.$items().$size()+"}>"})}(je[0],dt("AbstractBlock")),function(Ye,st,We){var Je=te(Ye,st,"ListItem"),$t=[Je].concat(We),z=a.$r($t),et=Je.$$prototype;return et.text=et.subs=et.blocks=Oe,V(Je,"list","parent"),Je.$attr_accessor("marker"),Ue(Je,"$initialize",function E(tt,lt){E.$$p;var K=this;return E.$$p=null,lt==null&&(lt=Oe),v(K,Y(K,"initialize",E,!1,!0),"initialize",[tt,"list_item"],null),K.text=lt,K.level=tt.$level(),K.subs=z("NORMAL_SUBS").$drop(0)},-2),Ue(Je,"$text?",function(){var tt=this;return!G(tt.text["$nil_or_empty?"]())}),Ue(Je,"$text",function(){var tt=this,lt=Oe;return G(lt=tt.text)?tt.$apply_subs(tt.text,tt.subs):lt}),Je.$attr_writer("text"),Ue(Je,"$simple?",function(){var tt=this,lt=Oe,K=Oe,D=Oe,He=Oe;return G(lt=tt.blocks["$empty?"]())?lt:G(K=G(D=tt.blocks.$size()["$=="](1))?z("List")["$==="](He=tt.blocks["$[]"](0)):D)?He["$outline?"]():K}),Ue(Je,"$compound?",function(){var tt=this;return tt["$simple?"]()["$!"]()}),Ue(Je,"$fold_first",function(){var tt=this;return tt.text=G(tt.text["$nil_or_empty?"]())?tt.blocks.$shift().$source():""+tt.text+z("LF")+tt.blocks.$shift().$source(),Oe}),Ue(Je,"$to_s",function(){var tt=this,lt=Oe;return"#<"+tt.$class()+"@"+tt.$object_id()+" {list_context: "+tt.$parent().$context().$inspect()+", text: "+tt.text.$inspect()+", blocks: "+(G(lt=tt.blocks)?lt:[]).$size()+"}>"})}(je[0],dt("AbstractBlock"),je)}(C[0],C)},Opal.modules["asciidoctor/parser"]=function(a){var ae=a.module,te=a.klass,V=a.const_set,_e=a.send,v=a.truthy,Y=a.hash2,Ue=a.to_ary,G=a.defs,Ie=a.eqeq,C=a.not,Oe=a.gvars,ze=a.neqeq,Ge=a.rb_plus,qe=a.rb_lt,je=a.rb_gt,dt=a.to_a,Ye=a.eqeqeq,st=a.rb_minus,We=a.rb_times,Je=a.thrower,$t=[],z=a.nil,et=a.$$$;return a.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,skip_blank_lines,parse_block_metadata_lines,attributes,is_next_line_doctitle?,[]=,finalize_header,nil_or_empty?,title=,sourcemap,cursor,parse_section_title,id=,include?,sub_specialchars,sub_attributes,source_location=,header,attribute_locked?,id,clear,delete,instance_variable_get,parse_header_metadata,==,!,register,process_authors,update,doctype,parse_manpage_header,=~,downcase,error,logger,message_with_context,cursor_at_line,backend,save,is_next_line_section?,initialize_section,join,map,read_lines_until,lstrip,split,title,restore_save,discard_save,header?,empty?,context,!=,attr?,attr,key?,document,+,level,special,sectname,to_i,<,>,warn,next_block,blocks?,style,style=,parent=,content_model,content_model=,lines,subs,size,context=,shift,unwrap_standalone_preamble,source_location,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?,parse_blocks,parse_list_item,items,scan,gsub,count,advance,dup,match,callout_ids,next_list,catalog_inline_anchor,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?,apply_header_subs,rstrip,each_with_index,compact,to_h,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,has_header_option=,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,partition_header_footer,upto,partition,shorthand_property_syntax,each_char,yield_buffered_attribute,any?,*,each_byte,%"),function(E,tt){var lt=ae(E,"Asciidoctor"),K=[lt].concat(tt);return function(D,He,we){var Ne=te(D,He,"Parser"),Te=[Ne].concat(we),ue=a.$r(Te);return Ne.$include(ue("Logging")),V(Te[0],"BlockMatchData",ue("Struct").$new("context","masq","tip","terminator")),V(Te[0],"TAB"," "),V(Te[0],"TabIndentRx",/^\t+/),V(Te[0],"StartOfBlockProc",_e(Ne,"proc",[],function ye(Z){var B=ye.$$s==null?this:ye.$$s,q=z,ie=z;return Z==null&&(Z=z),v(q=v(ie=Z["$start_with?"]("["))?ue("BlockAttributeLineRx")["$match?"](Z):ie)?q:B["$is_delimited_block?"](Z)},{$$s:Ne})),V(Te[0],"StartOfListProc",_e(Ne,"proc",[],function(Z){return Z==null&&(Z=z),ue("AnyListRx")["$match?"](Z)})),V(Te[0],"StartOfBlockOrListProc",_e(Ne,"proc",[],function ye(Z){var B=ye.$$s==null?this:ye.$$s,q=z,ie=z,ee=z;return Z==null&&(Z=z),v(q=v(ie=B["$is_delimited_block?"](Z))?ie:v(ee=Z["$start_with?"]("["))?ue("BlockAttributeLineRx")["$match?"](Z):ee)?q:ue("AnyListRx")["$match?"](Z)},{$$s:Ne})),V(Te[0],"NoOp",z),V(Te[0],"AuthorKeys",["author","authorinitials","firstname","middlename","lastname","email"]),V(Te[0],"TableCellHorzAlignments",Y(["<",">","^"],{"<":"left",">":"right","^":"center"})),V(Te[0],"TableCellVertAlignments",Y(["<",">","^"],{"<":"top",">":"bottom","^":"middle"})),V(Te[0],"TableCellStyles",Y(["d","s","e","m","h","l","a"],{d:"none",s:"strong",e:"emphasis",m:"monospaced",h:"header",l:"literal",a:"asciidoc"})),Ne.$private_class_method("new"),G(Ne,"$parse",function(Z,B,q){var ie,ee,$e=this,U=z,g=z,o=z;if(q==null&&(q=Y([],{})),U=$e.$parse_document_header(Z,B,g=q["$[]"]("header_only")),!v(g))for(;v(Z["$has_more_lines?"]());)ee=$e.$next_section(Z,B,U),ie=Ue(ee),o=ie[0]==null?z:ie[0],U=ie[1]==null?z:ie[1],v(o)&&(B.$assign_numeral(o),B.$blocks()["$<<"](o));return B},-3),G(Ne,"$parse_document_header",function(Z,B,q){var ie,ee,$e,U=this,g=z,o=z,m=z,T=z,k=z,y=z,L=z,j=z,de=z,oe=z,ke=z,Be=z,Xe=z,it=z,ht=z;return q==null&&(q=!1),g=v(Z.$skip_blank_lines())?U.$parse_block_metadata_lines(Z,B):Y([],{}),o=B.$attributes(),v(m=U["$is_next_line_doctitle?"](Z,g,o["$[]"]("leveloffset")))&&v(g["$[]"]("title"))?(o["$[]="]("authorcount",0),B.$finalize_header(g,!1)):(v((T=o["$[]"]("doctitle"))["$nil_or_empty?"]())||B["$title="](k=T),v(m)?(v(B.$sourcemap())&&(y=Z.$cursor()),ee=U.$parse_section_title(Z,B),ie=Ue(ee),$e=[ie[0]==null?z:ie[0]],_e(B,"id=",$e),$e[$e.length-1],ie[1]==null||ie[1],L=ie[2]==null?z:ie[2],ie[3]==null||ie[3],j=ie[4]==null?z:ie[4],v(k)?L=z:(B["$title="](L),v((ie=["doctitle",k=B.$sub_specialchars(L)],_e(o,"[]=",ie),ie[ie.length-1])["$include?"](ue("ATTR_REF_HEAD")))&&o["$[]="]("doctitle",k=B.$sub_attributes(k,Y(["attribute_missing"],{attribute_missing:"skip"})))),v(y)&&B.$header()["$source_location="](y),v(j)||v(B["$attribute_locked?"]("compat-mode"))||o["$[]="]("compat-mode",""),v(de=g["$[]"]("separator"))&&(v(B["$attribute_locked?"]("title-separator"))||o["$[]="]("title-separator",de)),v(oe=g["$[]"]("id"))?B["$id="](oe):oe=B.$id(),v(ke=g["$[]"]("role"))&&o["$[]="]("role",ke),v(Be=g["$[]"]("reftext"))&&o["$[]="]("reftext",Be),g.$clear(),(Xe=B.$instance_variable_get("@attributes_modified")).$delete("doctitle"),U.$parse_header_metadata(Z,B,z),v(Xe["$include?"]("doctitle"))?v((T=o["$[]"]("doctitle"))["$nil_or_empty?"]())||Ie(T,k)?o["$[]="]("doctitle",k):B["$title="](T):C(L)&&Xe["$<<"]("doctitle"),v(oe)&&B.$register("refs",[oe,B])):v(it=o["$[]"]("author"))?(ht=U.$process_authors(it,!0,!1),v(o["$[]"]("authorinitials"))&&ht.$delete("authorinitials"),o.$update(ht)):v(it=o["$[]"]("authors"))?(ht=U.$process_authors(it,!0),o.$update(ht)):o["$[]="]("authorcount",0),Ie(B.$doctype(),"manpage")&&U.$parse_manpage_header(Z,B,g,q),B.$finalize_header(g))},-3),G(Ne,"$parse_manpage_header",function(Z,B,q,ie){var ee,$e=this,U=z,g=z,o=z,m=z,T=z,k=z,y=z,L=z,j=z,de=z,oe=z,ke=z;return ie==null&&(ie=!1),v(ue("ManpageTitleVolnumRx")["$=~"]((U=B.$attributes())["$[]"]("doctitle")))?(U["$[]="]("manvolnum",g=(ee=Oe["~"])===z?z:ee["$[]"](2)),U["$[]="]("mantitle",(v((o=(ee=Oe["~"])===z?z:ee["$[]"](1))["$include?"](ue("ATTR_REF_HEAD")))?B.$sub_attributes(o):o).$downcase())):($e.$logger().$error($e.$message_with_context("non-conforming manpage title",Y(["source_location"],{source_location:Z.$cursor_at_line(1)}))),U["$[]="]("mantitle",v(m=v(T=U["$[]"]("doctitle"))?T:U["$[]"]("docname"))?m:"command"),U["$[]="]("manvolnum",g="1")),v(k=U["$[]"]("manname"))&&v(U["$[]"]("manpurpose"))?(v(m=U["$[]"]("manname-title"))||U["$[]="]("manname-title","Name"),U["$[]="]("mannames",[k]),Ie(B.$backend(),"manpage")&&(U["$[]="]("docname",k),U["$[]="]("outfilesuffix","."+g))):v(ie)||(Z.$skip_blank_lines(),Z.$save(),q.$update($e.$parse_block_metadata_lines(Z,B)),v(y=$e["$is_next_line_section?"](Z,Y([],{})))?Ie(y,1)?(L=$e.$initialize_section(Z,B,Y([],{})),j=_e(Z.$read_lines_until(Y(["break_on_blank_lines","skip_line_comments"],{break_on_blank_lines:!0,skip_line_comments:!0})),"map",[],function(Xe){return Xe==null&&(Xe=z),Xe.$lstrip()}).$join(" "),v(ue("ManpageNamePurposeRx")["$=~"](j))?(v((k=(ee=Oe["~"])===z?z:ee["$[]"](1))["$include?"](ue("ATTR_REF_HEAD")))&&(k=B.$sub_attributes(k)),v(k["$include?"](","))?k=(de=_e(k.$split(","),"map",[],function(Xe){return Xe==null&&(Xe=z),Xe.$lstrip()}))["$[]"](0):de=[k],v((oe=(ee=Oe["~"])===z?z:ee["$[]"](2))["$include?"](ue("ATTR_REF_HEAD")))&&(oe=B.$sub_attributes(oe)),v(m=U["$[]"]("manname-title"))||U["$[]="]("manname-title",L.$title()),v(L.$id())&&U["$[]="]("manname-id",L.$id()),U["$[]="]("manname",k),U["$[]="]("mannames",de),U["$[]="]("manpurpose",oe),Ie(B.$backend(),"manpage")&&(U["$[]="]("docname",k),U["$[]="]("outfilesuffix","."+g))):ke="non-conforming name section body"):ke="name section must be at level 1":ke="name section expected",v(ke)?(Z.$restore_save(),$e.$logger().$error($e.$message_with_context(ke,Y(["source_location"],{source_location:Z.$cursor()}))),U["$[]="]("manname",k=v(m=U["$[]"]("docname"))?m:"command"),U["$[]="]("mannames",[k]),Ie(B.$backend(),"manpage")&&(U["$[]="]("docname",k),U["$[]="]("outfilesuffix","."+g))):Z.$discard_save()),z},-4),G(Ne,"$next_section",function(Z,B,q){var ie,ee,$e=this,U=z,g=z,o=z,m=z,T=z,k=z,y=z,L=z,j=z,de=z,oe=z,ke=z,Be=z,Xe=z,it=z,ht=z,at=z,mt=z,yt=z,xt=z;for(q==null&&(q=Y([],{})),U=g=o=!1,Ie(B.$context(),"document")&&v(B.$blocks()["$empty?"]())&&(v(m=B["$header?"]())||v(q.$delete("invalid-header"))||C($e["$is_next_line_section?"](Z,q)))?(T=(k=B).$doctype()["$=="]("book"),(v(m)||v(T)&&ze(q["$[]"](1),"abstract"))&&(U=g=ue("Block").$new(B,"preamble",Y(["content_model"],{content_model:"compound"})),v(T)&&v(B["$attr?"]("preface-title"))&&U["$title="](B.$attr("preface-title")),B.$blocks()["$<<"](U)),y=B,L=0,v(B.$attributes()["$key?"]("fragment"))?j=-1:v(T)?(ie=[1,0],j=ie[0],de=ie[1]):j=1):(T=(k=B.$document()).$doctype()["$=="]("book"),y=$e.$initialize_section(Z,B,q),q=v(oe=q["$[]"]("title"))?Y(["title"],{title:oe}):Y([],{}),j=Ge(L=y.$level(),1),Ie(L,0)?o=T:Ie(L,1)&&v(y.$special())&&(Ie(ke=y.$sectname(),"appendix")||Ie(ke,"preface")||Ie(ke,"abstract")||(j=z))),Z.$skip_blank_lines();v(Z["$has_more_lines?"]());){if($e.$parse_block_metadata_lines(Z,k,q),v(Be=$e["$is_next_line_section?"](Z,q)))if(v(k["$attr?"]("leveloffset"))&&(Be=Ge(Be,k.$attr("leveloffset").$to_i()),v(qe(Be,0))&&(Be=0)),v(je(Be,L)))v(j)?Ie(Be,j)||v(de)&&Ie(Be,de)||v(qe(j,0))||(Xe=v(de)?"expected levels "+de+" or "+j:"expected level "+j,$e.$logger().$warn($e.$message_with_context("section title out of sequence: "+Xe+", got level "+Be,Y(["source_location"],{source_location:Z.$cursor()})))):$e.$logger().$error($e.$message_with_context(""+ke+" sections do not support nested sections",Y(["source_location"],{source_location:Z.$cursor()}))),ee=$e.$next_section(Z,y,q),ie=Ue(ee),it=ie[0]==null?z:ie[0],q=ie[1]==null?z:ie[1],y.$assign_numeral(it),y.$blocks()["$<<"](it);else if(Ie(Be,0)&&Ie(y,k))v(T)||$e.$logger().$error($e.$message_with_context("level 0 sections can only be used when doctype is book",Y(["source_location"],{source_location:Z.$cursor()}))),ee=$e.$next_section(Z,y,q),ie=Ue(ee),it=ie[0]==null?z:ie[0],q=ie[1]==null?z:ie[1],y.$assign_numeral(it),y.$blocks()["$<<"](it);else break;else ht=Z.$cursor(),v(at=$e.$next_block(Z,v(mt=g)?mt:y,q,Y(["parse_metadata"],{parse_metadata:!1})))&&(v(o)&&(C(y["$blocks?"]())?ze(at.$style(),"partintro")?Ie(at.$style(),"open")&&Ie(at.$context(),"open")?at["$style="]("partintro"):(at["$parent="](g=ue("Block").$new(y,"open",Y(["content_model"],{content_model:"compound"}))),g["$style="]("partintro"),y.$blocks()["$<<"](g)):Ie(at.$content_model(),"simple")&&(at["$content_model="]("compound"),at["$<<"](ue("Block").$new(at,"paragraph",Y(["source","subs"],{source:at.$lines(),subs:at.$subs()}))),at.$lines().$clear(),at.$subs().$clear()):Ie(y.$blocks().$size(),1)&&(yt=y.$blocks()["$[]"](0),C(g)&&Ie(yt.$content_model(),"compound")?$e.$logger().$error($e.$message_with_context("illegal block content outside of partintro block",Y(["source_location"],{source_location:ht}))):ze(yt.$content_model(),"compound")&&(at["$parent="](g=ue("Block").$new(y,"open",Y(["content_model"],{content_model:"compound"}))),Ie(yt.$style(),(ie=["partintro"],_e(g,"style=",ie),ie[ie.length-1]))&&(yt["$context="]("paragraph"),yt["$style="](z)),y.$blocks().$shift(),g["$<<"](yt),y.$blocks()["$<<"](g)))),(v(mt=g)?mt:y).$blocks()["$<<"](at),q.$clear());if(!v(mt=Z.$skip_blank_lines()))break}if(v(o))v(y["$blocks?"]())&&Ie(y.$blocks()["$[]"](-1).$context(),"section")||$e.$logger().$error($e.$message_with_context("invalid part, must have at least one section (e.g., chapter, appendix, etc.)",Y(["source_location"],{source_location:Z.$cursor()})));else if(v(U))if(v(U["$blocks?"]()))if(v(T)||v(k.$blocks()["$[]"](1))||C(ue("Compliance").$unwrap_standalone_preamble()))v(k.$sourcemap())&&U["$source_location="](U.$blocks()["$[]"](0).$source_location());else for(k.$blocks().$shift();v(xt=U.$blocks().$shift());)k["$<<"](xt);else k.$blocks().$shift();return[Ie(y,B)?z:y,q.$merge()]},-3),G(Ne,"$next_block",function(Z,B,q,ie){var ee,$e,U=this,g=z,o=z,m=z,T=z,k=z,y=z,L=z,j=z,de=z,oe=z,ke=z,Be=z,Xe=z,it=z,ht=z,at=z,mt=z,yt=z,xt=z,vt=z,Tt=z,St=z,Yt=z,Bt=z,er=z,Kt=z,jt=z,Wt=z,Xt=z,nr=z,Yn=z,en=z,Jt=z,Ut=z,Zt=z,Er=z,Ht=z,kr=z,dn=z,Cr=z,Sr=z,bn=z,Lr=z,Gr=z,Bs=z,Ps=z,uc=z,js=z,cc=z;if(Oe["~"]==null&&(Oe["~"]=z),q==null&&(q=Y([],{})),ie==null&&(ie=Y([],{})),!v(g=Z.$skip_blank_lines()))return z;if(v(o=ie["$[]"]("text_only"))&&v(je(g,0))&&(ie.$delete("text_only"),o=z),m=B.$document(),v(ie.$fetch("parse_metadata",!0))){for(;v(U.$parse_block_metadata_line(Z,m,q,ie));)if(Z.$shift(),!v(T=Z.$skip_blank_lines()))return z}if(v(k=m.$extensions())&&(ee=[k["$blocks?"](),k["$block_macros?"]()],y=ee[0],L=ee[1]),Z.$mark(),ee=[Z.$read_line(),m.$attributes(),q["$[]"](1)],j=ee[0],de=ee[1],oe=ee[2],ke=Be=Xe=it=z,v(ht=U["$is_delimited_block?"](j,!0))&&(Be=Xe=ht.$context(),it=ht.$terminator(),v(oe)?Ie(oe,Be.$to_s())||(v(ht.$masq()["$include?"](oe))?Be=oe.$to_sym():v(ht.$masq()["$include?"]("admonition"))&&v(ue("ADMONITION_STYLES")["$include?"](oe))?Be="admonition":v(y)&&v(k["$registered_for_block?"](oe,Be))?Be=oe.$to_sym():(v(U.$logger()["$debug?"]())&&U.$logger().$debug(U.$message_with_context("unknown style for "+Be+" block: "+oe,Y(["source_location"],{source_location:Z.$cursor_at_mark()}))),oe=Be.$to_s())):oe=(ee=["style",Be.$to_s()],_e(q,"[]=",ee),ee[ee.length-1])),!v(ht))for(;v(!0);){if(v(oe)&&v(ue("Compliance").$strict_verbatim_paragraphs())&&v(ue("VERBATIM_STYLES")["$include?"](oe))){Be=oe.$to_sym(),Z.$unshift_line(j);break}if(v(o))at=j["$start_with?"](" ",ue("TAB"));else if(mt=ue("Compliance").$markdown_syntax(),v(j["$start_with?"](" "))){if(ee=[!0," "],at=ee[0],yt=ee[1],v(mt)&&v(_e(j.$lstrip(),"start_with?",dt(ue("MARKDOWN_THEMATIC_BREAK_CHARS").$keys())))&&v(ue("MarkdownThematicBreakRx")["$match?"](j))){ke=ue("Block").$new(B,"thematic_break",Y(["content_model"],{content_model:"empty"}));break}}else if(v(j["$start_with?"](ue("TAB"))))ee=[!0,ue("TAB")],at=ee[0],yt=ee[1];else if(ee=[!1,j.$chr()],at=ee[0],yt=ee[1],xt=v(mt)?ue("HYBRID_LAYOUT_BREAK_CHARS"):ue("LAYOUT_BREAK_CHARS"),v(xt["$key?"](yt))&&v(v(mt)?ue("ExtLayoutBreakRx")["$match?"](j):v(T=U["$uniform?"](j,yt,vt=j.$length()))?je(vt,2):T)){ke=ue("Block").$new(B,xt["$[]"](yt),Y(["content_model"],{content_model:"empty"}));break}else if(v(j["$end_with?"]("]"))&&v(j["$include?"]("::"))){if((Ie(yt,"i")||v(j["$start_with?"]("video:","audio:")))&&v(ue("BlockMediaMacroRx")["$=~"](j))){if(ee=[(($e=Oe["~"])===z?z:$e["$[]"](1)).$to_sym(),($e=Oe["~"])===z?z:$e["$[]"](2),($e=Oe["~"])===z?z:$e["$[]"](3)],Tt=ee[0],St=ee[1],Yt=ee[2],ke=ue("Block").$new(B,Tt,Y(["content_model"],{content_model:"empty"})),v(Yt)){switch(Tt){case"video":Bt=["poster","width","height"];break;case"audio":Bt=[];break;default:Bt=["alt","width","height"]}ke.$parse_attributes(Yt,Bt,Y(["sub_input","into"],{sub_input:!0,into:q}))}if(v(q["$key?"]("style"))&&q.$delete("style"),v(St["$include?"](ue("ATTR_REF_HEAD")))){if(v((er=ke.$sub_attributes(St))["$empty?"]())&&Ie(v(T=de["$[]"]("attribute-missing"))?T:ue("Compliance").$attribute_missing(),"drop-line")&&v(ke.$sub_attributes(Ge(St," "),Y(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]()))return q.$clear(),z;St=er}Ie(Tt,"image")&&(m.$register("images",St),q["$[]="]("imagesdir",de["$[]"]("imagesdir")),v(T=q["$[]"]("alt"))||q["$[]="]("alt",v(Kt=oe)?Kt:(ee=["default-alt",ue("Helpers").$basename(St,!0).$tr("_-"," ")],_e(q,"[]=",ee),ee[ee.length-1])),v((jt=q.$delete("scaledwidth"))["$nil_or_empty?"]())||q["$[]="]("scaledwidth",v(ue("TrailingDigitsRx")["$match?"](jt))?""+jt+"%":jt),v(q["$[]"]("title"))&&(ke["$title="](Wt=q.$delete("title")),ke.$assign_caption(q.$delete("caption"),"figure"))),q["$[]="]("target",St);break}else if(Ie(yt,"t")&&v(j["$start_with?"]("toc:"))&&v(ue("BlockTocMacroRx")["$=~"](j))){ke=ue("Block").$new(B,"toc",Y(["content_model"],{content_model:"empty"})),v((ee=Oe["~"])===z?z:ee["$[]"](1))&&ke.$parse_attributes((ee=Oe["~"])===z?z:ee["$[]"](1),[],Y(["into"],{into:q}));break}else if(v(v(L)?v(T=v(Kt=ue("CustomBlockMacroRx")["$=~"](j))?Xt=k["$registered_for_block_macro?"]((ee=Oe["~"])===z?z:ee["$[]"](1)):Kt)?T:nr=U.$logger()["$debug?"]():v(T=U.$logger()["$debug?"]())?nr=ue("CustomBlockMacroRx")["$=~"](j):T))if(v(nr))U.$logger().$debug(U.$message_with_context("unknown name for block macro: "+((ee=Oe["~"])===z?z:ee["$[]"](1)),Y(["source_location"],{source_location:Z.$cursor_at_mark()})));else{if(Yn=(ee=Oe["~"])===z?z:ee["$[]"](3),v((St=(ee=Oe["~"])===z?z:ee["$[]"](2))["$include?"](ue("ATTR_REF_HEAD")))){if(v((er=B.$sub_attributes(St))["$empty?"]())&&Ie(v(T=de["$[]"]("attribute-missing"))?T:ue("Compliance").$attribute_missing(),"drop-line")&&v(B.$sub_attributes(Ge(St," "),Y(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]()))return q.$clear(),z;St=er}if(Ie((en=Xt.$config())["$[]"]("content_model"),"attributes")?v(Yn)&&m.$parse_attributes(Yn,v(T=v(Kt=en["$[]"]("positional_attrs"))?Kt:en["$[]"]("pos_attrs"))?T:[],Y(["sub_input","into"],{sub_input:!0,into:q})):q["$[]="]("text",v(T=Yn)?T:""),v(Jt=en["$[]"]("default_attrs"))&&_e(q,"update",[Jt],function(tn,ps){return ps==null&&(ps=z),ps}),v(ke=Xt.$process_method()["$[]"](B,St,q))&&ze(ke,B)){q.$replace(ke.$attributes());break}else return q.$clear(),z}}if(C(at)&&Ie(yt=v(T=yt)?T:j.$chr(),"<")&&v(ue("CalloutListRx")["$=~"](j))){Z.$unshift_line(j),ke=U.$parse_callout_list(Z,Oe["~"],B,m.$callouts()),q["$[]="]("style","arabic");break}else if(v(ue("UnorderedListRx")["$match?"](j))){Z.$unshift_line(j),C(oe)&&Ye(ue("Section"),B)&&Ie(B.$sectname(),"bibliography")&&q["$[]="]("style",oe="bibliography"),ke=U.$parse_list(Z,"ulist",B,oe);break}else if(v(ue("OrderedListRx")["$match?"](j))){Z.$unshift_line(j),ke=U.$parse_list(Z,"olist",B,oe),v(ke.$style())&&q["$[]="]("style",ke.$style());break}else if((v(j["$include?"]("::"))||v(j["$include?"](";;")))&&v(ue("DescriptionListRx")["$=~"](j))){Z.$unshift_line(j),ke=U.$parse_description_list(Z,Oe["~"],B);break}else if((Ie(oe,"float")||Ie(oe,"discrete"))&&v(v(ue("Compliance").$underline_style_section_titles())?U["$is_section_title?"](j,Z.$peek_line()):v(T=at["$!"]())?U["$atx_section_title?"](j):T)){Z.$unshift_line(j),$e=U.$parse_section_title(Z,m,q["$[]"]("id")),ee=Ue($e),Ut=ee[0]==null?z:ee[0],Zt=ee[1]==null?z:ee[1],Wt=ee[2]==null?z:ee[2],Er=ee[3]==null?z:ee[3],v(Zt)&&q["$[]="]("reftext",Zt),ke=ue("Block").$new(B,"floating_title",Y(["content_model"],{content_model:"empty"})),ke["$title="](Wt),q.$delete("title"),ke["$id="](v(T=Ut)?T:v(de["$key?"]("sectids"))?ue("Section").$generate_id(ke.$title(),m):z),ke["$level="](Er);break}else if(v(oe)&&ze(oe,"normal"))if(v(ue("PARAGRAPH_STYLES")["$include?"](oe))){Be=oe.$to_sym(),Xe="paragraph",Z.$unshift_line(j);break}else if(v(ue("ADMONITION_STYLES")["$include?"](oe))){Be="admonition",Xe="paragraph",Z.$unshift_line(j);break}else if(v(y)&&v(k["$registered_for_block?"](oe,"paragraph"))){Be=oe.$to_sym(),Xe="paragraph",Z.$unshift_line(j);break}else v(U.$logger()["$debug?"]())&&U.$logger().$debug(U.$message_with_context("unknown style for paragraph: "+oe,Y(["source_location"],{source_location:Z.$cursor_at_mark()}))),oe=z;if(Z.$unshift_line(j),v(at)&&C(oe))Ht=U.$read_paragraph_lines(Z,kr=Ie(g,0)?ie["$[]"]("list_type"):z,Y(["skip_line_comments"],{skip_line_comments:o})),U["$adjust_indentation!"](Ht),v(o)||Ie(kr,"dlist")?ke=ue("Block").$new(B,"paragraph",Y(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q})):ke=ue("Block").$new(B,"literal",Y(["content_model","source","attributes"],{content_model:"verbatim",source:Ht,attributes:q}));else{if(Ht=U.$read_paragraph_lines(Z,v(T=g["$=="](0))?ie["$[]"]("list_type"):T,Y(["skip_line_comments"],{skip_line_comments:!0})),v(o))v(at)&&Ie(oe,"normal")&&U["$adjust_indentation!"](Ht),ke=ue("Block").$new(B,"paragraph",Y(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q}));else if(v(ue("ADMONITION_STYLE_HEADS")["$include?"](yt))&&v(j["$include?"](":"))&&v(ue("AdmonitionParagraphRx")["$=~"](j)))Ht["$[]="](0,(ee=Oe["~"])===z?z:ee.$post_match()),q["$[]="]("name",dn=(ee=["style",($e=Oe["~"])===z?z:$e["$[]"](1)],_e(q,"[]=",ee),ee[ee.length-1]).$downcase()),q["$[]="]("textlabel",v(T=q.$delete("caption"))?T:de["$[]"](""+dn+"-caption")),ke=ue("Block").$new(B,"admonition",Y(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q}));else if(v(mt)&&Ie(yt,">")&&v(j["$start_with?"]("> "))){if(_e(Ht,"map!",[],function(tn){return tn==null&&(tn=z),Ie(tn,">")?tn.$slice(1,tn.$length()):v(tn["$start_with?"]("> "))?tn.$slice(2,tn.$length()):tn}),v(Ht["$[]"](-1)["$start_with?"]("-- "))&&(Cr=(Cr=Ht.$pop()).$slice(3,Cr.$length()),!v(Ht["$empty?"]())))for(;v(Ht["$[]"](-1)["$empty?"]());)Ht.$pop();q["$[]="]("style","quote"),ke=U.$build_block("quote","compound",!1,B,ue("Reader").$new(Ht),q),v(Cr)&&($e=ke.$apply_subs(Cr).$split(", ",2),ee=Ue($e),Sr=ee[0]==null?z:ee[0],bn=ee[1]==null?z:ee[1],v(Sr)&&q["$[]="]("attribution",Sr),v(bn)&&q["$[]="]("citetitle",bn))}else if(Ie(yt,'"')&&v(je(Ht.$size(),1))&&v(Ht["$[]"](-1)["$start_with?"]("-- "))&&v(Ht["$[]"](-2)["$end_with?"]('"'))){for(Ht["$[]="](0,j.$slice(1,j.$length())),Cr=(Cr=Ht.$pop()).$slice(3,Cr.$length());v(Ht["$[]"](-1)["$empty?"]());)Ht.$pop();Ht["$<<"](Ht.$pop().$chop()),q["$[]="]("style","quote"),ke=ue("Block").$new(B,"quote",Y(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q})),$e=ke.$apply_subs(Cr).$split(", ",2),ee=Ue($e),Sr=ee[0]==null?z:ee[0],bn=ee[1]==null?z:ee[1],v(Sr)&&q["$[]="]("attribution",Sr),v(bn)&&q["$[]="]("citetitle",bn)}else v(at)&&Ie(oe,"normal")&&U["$adjust_indentation!"](Ht),ke=ue("Block").$new(B,"paragraph",Y(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q}));U.$catalog_inline_anchors(Ht.$join(ue("LF")),ke,m,Z)}break}if(!v(ke))switch(Be){case"listing":case"source":(Ie(Be,"source")||C(q["$[]"](1))&&v(Lr=v(Kt=q["$[]"](2))?Kt:de["$[]"]("source-language")))&&(v(Lr)?(q["$[]="]("style","source"),q["$[]="]("language",Lr),ue("AttributeList").$rekey(q,[z,z,"linenums"])):(ue("AttributeList").$rekey(q,[z,"language","linenums"]),v(q["$key?"]("language"))||v(de["$key?"]("source-language"))&&q["$[]="]("language",de["$[]"]("source-language"))),v(q["$key?"]("linenums"))||(v(q["$[]"]("linenums-option"))||v(de["$[]"]("source-linenums-option")))&&q["$[]="]("linenums",""),v(q["$key?"]("indent"))||v(de["$key?"]("source-indent"))&&q["$[]="]("indent",de["$[]"]("source-indent"))),ke=U.$build_block("listing","verbatim",it,B,Z,q);break;case"fenced_code":q["$[]="]("style","source"),v(je(vt=j.$length(),3))&&(v(Gr=(Lr=j.$slice(3,vt)).$index(","))?v(je(Gr,0))?(Lr=Lr.$slice(0,Gr).$strip(),v(qe(Gr,st(vt,4)))&&q["$[]="]("linenums","")):v(je(vt,4))&&q["$[]="]("linenums",""):Lr=Lr.$lstrip()),v(Lr["$nil_or_empty?"]())?v(de["$key?"]("source-language"))&&q["$[]="]("language",de["$[]"]("source-language")):q["$[]="]("language",Lr),v(q["$key?"]("linenums"))||(v(q["$[]"]("linenums-option"))||v(de["$[]"]("source-linenums-option")))&&q["$[]="]("linenums",""),v(q["$key?"]("indent"))||v(de["$key?"]("source-indent"))&&q["$[]="]("indent",de["$[]"]("source-indent")),it=it.$slice(0,3),ke=U.$build_block("listing","verbatim",it,B,Z,q);break;case"table":Bs=Z.$cursor(),Ps=ue("Reader").$new(Z.$read_lines_until(Y(["terminator","skip_line_comments","context","cursor"],{terminator:it,skip_line_comments:!0,context:"table",cursor:"at_mark"})),Bs),v(it["$start_with?"]("|","!"))||v(Kt=q["$[]"]("format"))||q["$[]="]("format",v(it["$start_with?"](","))?"csv":"dsv"),ke=U.$parse_table(Ps,B,q);break;case"sidebar":ke=U.$build_block(Be,"compound",it,B,Z,q);break;case"admonition":q["$[]="]("name",dn=oe.$downcase()),q["$[]="]("textlabel",v(Kt=q.$delete("caption"))?Kt:de["$[]"](""+dn+"-caption")),ke=U.$build_block(Be,"compound",it,B,Z,q);break;case"open":case"abstract":case"partintro":ke=U.$build_block("open","compound",it,B,Z,q);break;case"literal":ke=U.$build_block(Be,"verbatim",it,B,Z,q);break;case"example":v(q["$[]"]("collapsible-option"))&&q["$[]="]("caption",""),ke=U.$build_block(Be,"compound",it,B,Z,q);break;case"quote":case"verse":ue("AttributeList").$rekey(q,[z,"attribution","citetitle"]),ke=U.$build_block(Be,Ie(Be,"verse")?"verbatim":"compound",it,B,Z,q);break;case"stem":case"latexmath":case"asciimath":Ie(Be,"stem")&&q["$[]="]("style",ue("STEM_TYPE_ALIASES")["$[]"](v(Kt=q["$[]"](2))?Kt:de["$[]"]("stem"))),ke=U.$build_block("stem","raw",it,B,Z,q);break;case"pass":ke=U.$build_block(Be,"raw",it,B,Z,q);break;case"comment":return U.$build_block(Be,"skip",it,B,Z,q),q.$clear(),z;default:if(v(y)&&v(Xt=k["$registered_for_block?"](Be,Xe))){if(Ie(uc=(en=Xt.$config())["$[]"]("content_model"),"skip")||(v((js=v(Kt=en["$[]"]("positional_attrs"))?Kt:en["$[]"]("pos_attrs"))["$nil_or_empty?"]())||ue("AttributeList").$rekey(q,Ge([z],js)),v(Jt=en["$[]"]("default_attrs"))&&_e(Jt,"each",[],function(tn,ps){var Xl;return tn==null&&(tn=z),ps==null&&(ps=z),v(Kt=q["$[]"](tn))?Kt:(Xl=[tn,ps],_e(q,"[]=",Xl),Xl[Xl.length-1])}),q["$[]="]("cloaked-context",Xe)),!v(ke=U.$build_block(Be,uc,it,B,Z,q,Y(["extension"],{extension:Xt}))))return q.$clear(),z}else U.$raise("Unsupported block type "+Be+" at "+Z.$cursor())}return v(m.$sourcemap())&&ke["$source_location="](Z.$cursor_at_mark()),v(q["$[]"]("title"))&&(ke["$title="](Wt=q.$delete("title")),v(ue("CAPTION_ATTRIBUTE_NAMES")["$[]"](ke.$context()))&&ke.$assign_caption(q.$delete("caption"))),ke["$style="](q["$[]"]("style")),v(cc=v(T=ke.$id())?T:(ee=[q["$[]"]("id")],_e(ke,"id=",ee),ee[ee.length-1]))&&(v(v(Wt)?Wt["$include?"](ue("ATTR_REF_HEAD")):ke["$title?"]())&&ke.$title(),v(m.$register("refs",[cc,ke]))||U.$logger().$warn(U.$message_with_context("id assigned to block already in use: "+cc,Y(["source_location"],{source_location:Z.$cursor_at_mark()})))),v(q["$empty?"]())||ke.$update_attributes(q),ke.$commit_subs(),v(ke["$sub?"]("callouts"))&&(v(U.$catalog_callouts(ke.$source(),m))||ke.$remove_sub("callouts")),ke},-3),G(Ne,"$read_paragraph_lines",function(Z,B,q){var ie=z;return q==null&&(q=Y([],{})),q["$[]="]("break_on_blank_lines",!0),q["$[]="]("break_on_list_continuation",!0),q["$[]="]("preserve_last_line",!0),ie=v(B)?v(ue("Compliance").$block_terminates_paragraph())?ue("StartOfBlockOrListProc"):ue("StartOfListProc"):v(ue("Compliance").$block_terminates_paragraph())?ue("StartOfBlockProc"):ue("NoOp"),_e(Z,"read_lines_until",[q],ie.$to_proc())},-3),G(Ne,"$is_delimited_block?",function(Z,B){var q,ie,ee=this,$e=z,U=z,g=z,o=z,m=z;if(B==null&&(B=z),!(v(je($e=Z.$length(),1))&&v(ue("DELIMITED_BLOCK_HEADS")["$[]"](Z.$slice(0,2)))))return z;if(Ie($e,2))U=Z,g=2;else if(v(qe($e,5))?(U=Z,g=$e):U=Z.$slice(0,g=4),v(ue("Compliance").$markdown_syntax())&&v(U["$start_with?"]("`"))){if(Ie(g,4)){if(Ie(U,"````")||ze(U=U.$chop(),"```"))return z;Z=U,$e=g=3}else if(ze(U,"```"))return z}else if(Ie(g,3))return z;return ie=ue("DELIMITED_BLOCKS")["$[]"](U),q=Ue(ie),o=q[0]==null?z:q[0],m=q[1]==null?z:q[1],v(o)&&(Ie($e,g)||v(ee["$uniform?"](Z.$slice(1,$e),ue("DELIMITED_BLOCK_TAILS")["$[]"](U),st($e,1))))?v(B)?ue("BlockMatchData").$new(o,m,U,Z):!0:z},-2),G(Ne,"$build_block",function(Z,B,q,ie,ee,$e,U){var g,o=this,m=z,T=z,k=z,y=z,L=z,j=z,de=z,oe=z,ke=z,Be=z,Xe=z;switch(U==null&&(U=Y([],{})),B){case"skip":g=[!0,"simple"],m=g[0],T=g[1];break;case"raw":g=[!1,"simple"],m=g[0],T=g[1];break;default:g=[!1,B],m=g[0],T=g[1]}switch(v(q["$nil?"]())?(Ie(T,"verbatim")?k=ee.$read_lines_until(Y(["break_on_blank_lines","break_on_list_continuation"],{break_on_blank_lines:!0,break_on_list_continuation:!0})):(Ie(B,"compound")&&(B="simple"),k=o.$read_paragraph_lines(ee,!1,Y(["skip_line_comments","skip_processing"],{skip_line_comments:!0,skip_processing:m}))),y=z):ze(T,"compound")?(k=ee.$read_lines_until(Y(["terminator","skip_processing","context","cursor"],{terminator:q,skip_processing:m,context:Z,cursor:"at_mark"})),y=z):Ie(q,!1)?(k=z,y=ee):(k=z,L=ee.$cursor(),y=ue("Reader").$new(ee.$read_lines_until(Y(["terminator","skip_processing","context","cursor"],{terminator:q,skip_processing:m,context:Z,cursor:"at_mark"})),L)),B){case"verbatim":j=(v(de=$e["$[]"]("tabsize"))?de:ie.$document().$attributes()["$[]"]("tabsize")).$to_i(),v(oe=$e["$[]"]("indent"))?o["$adjust_indentation!"](k,oe.$to_i(),j):v(je(j,0))&&o["$adjust_indentation!"](k,-1,j);break;case"skip":return z}if(v(ke=U["$[]"]("extension")))if($e.$delete("style"),v(Be=ke.$process_method()["$[]"](ie,v(Xe=y)?Xe:ue("Reader").$new(k),$e.$merge()))&&ze(Be,ie))$e.$replace(Be.$attributes()),Ie(Be.$content_model(),"compound")&&Ye(ue("Block"),Be)&&C((k=Be.$lines())["$empty?"]())&&(B="compound",y=ue("Reader").$new(k));else return z;else Be=ue("Block").$new(ie,Z,Y(["content_model","source","attributes"],{content_model:B,source:k,attributes:$e}));return Ie(B,"compound")&&o.$parse_blocks(y,Be),Be},-7),G(Ne,"$parse_blocks",function(Z,B,q){var ie=this,ee=z,$e=z,U=z;if(q==null&&(q=z),v(q))for(;v(v(ee=v($e=U=ie.$next_block(Z,B,q.$merge()))?B.$blocks()["$<<"](U):$e)?ee:Z["$has_more_lines?"]()););else for(;v(v(ee=v($e=U=ie.$next_block(Z,B))?B.$blocks()["$<<"](U):$e)?ee:Z["$has_more_lines?"]()););return z},-3),G(Ne,"$parse_list",function(Z,B,q,ie){var ee,$e=this,U=z,g=z,o=z,m=z;for(Oe["~"]==null&&(Oe["~"]=z),U=ue("List").$new(q,B),g=ue("ListRxMap")["$[]"](B);v(v(o=Z["$has_more_lines?"]())?g["$=~"](Z.$peek_line()):o)&&(v(m=$e.$parse_list_item(Z,U,Oe["~"],(ee=Oe["~"])===z?z:ee["$[]"](1),ie))&&U.$items()["$<<"](m),!!v(o=Z.$skip_blank_lines())););return U}),G(Ne,"$catalog_callouts",function(Z,B){var q=z,ie=z;return q=!1,ie=0,v(Z["$include?"]("<"))&&_e(Z,"scan",[ue("CalloutScanRx")],function(){var $e;return v((($e=Oe["~"])===z?z:$e["$[]"](0))["$start_with?"]("\\"))||B.$callouts().$register(Ie(($e=Oe["~"])===z?z:$e["$[]"](2),".")?(ie=Ge(ie,1)).$to_s():($e=Oe["~"])===z?z:$e["$[]"](2)),q=!0}),q}),G(Ne,"$catalog_inline_anchor",function(Z,B,q,ie,ee){var $e=this;return ee==null&&(ee=q.$document()),v(B)&&v(B["$include?"](ue("ATTR_REF_HEAD")))&&(B=ee.$sub_attributes(B)),v(ee.$register("refs",[Z,ue("Inline").$new(q,"anchor",B,Y(["type","id"],{type:"ref",id:Z}))]))||(Ye(ue("Reader"),ie)&&(ie=ie.$cursor()),$e.$logger().$warn($e.$message_with_context("id assigned to anchor already in use: "+Z,Y(["source_location"],{source_location:ie})))),z},-5),G(Ne,"$catalog_inline_anchors",function(Z,B,q,ie){var ee=this;return(v(Z["$include?"]("[["))||v(Z["$include?"]("or:")))&&_e(Z,"scan",[ue("InlineAnchorScanRx")],function $e(){var U,g=$e.$$s==null?this:$e.$$s,o=z,m=z,T=z,k=z;if(v(o=(U=Oe["~"])===z?z:U["$[]"](1))){if(v(m=(U=Oe["~"])===z?z:U["$[]"](2))&&v(m["$include?"](ue("ATTR_REF_HEAD")))&&v((m=q.$sub_attributes(m))["$empty?"]()))return z}else o=(U=Oe["~"])===z?z:U["$[]"](3),v(m=(U=Oe["~"])===z?z:U["$[]"](4))&&(v(m["$include?"]("]"))?(m=m.$gsub("\\]","]"),v(m["$include?"](ue("ATTR_REF_HEAD")))&&(m=q.$sub_attributes(m))):v(m["$include?"](ue("ATTR_REF_HEAD")))&&v((m=q.$sub_attributes(m))["$empty?"]())&&(m=z));return v(q.$register("refs",[o,ue("Inline").$new(B,"anchor",m,Y(["type","id"],{type:"ref",id:o}))]))?z:(T=ie.$cursor_at_mark(),v(je(k=Ge(((U=Oe["~"])===z?z:U.$pre_match()).$count(ue("LF")),v(((U=Oe["~"])===z?z:U["$[]"](0))["$start_with?"](ue("LF")))?1:0),0))&&(T=T.$dup()).$advance(k),g.$logger().$warn(g.$message_with_context("id assigned to anchor already in use: "+o,Y(["source_location"],{source_location:T}))))},{$$s:ee}),z}),G(Ne,"$catalog_inline_biblio_anchor",function(Z,B,q,ie){var ee=this,$e=z;return v(q.$document().$register("refs",[Z,ue("Inline").$new(q,"anchor",v($e=B)?"["+B+"]":$e,Y(["type","id"],{type:"bibref",id:Z}))]))||ee.$logger().$warn(ee.$message_with_context("id assigned to bibliography anchor already in use: "+Z,Y(["source_location"],{source_location:ie.$cursor()}))),z}),G(Ne,"$parse_description_list",function(Z,B,q){var ie=this,ee=z,$e=z,U=z,g=z,o=z;for(Oe["~"]==null&&(Oe["~"]=z),ee=ue("List").$new(q,"dlist"),$e=ue("DescriptionListSiblingRx")["$[]"](B["$[]"](2)),ee.$items()["$<<"](U=ie.$parse_list_item(Z,ee,B,$e));v(v(g=Z["$has_more_lines?"]())?$e["$=~"](Z.$peek_line()):g);)o=ie.$parse_list_item(Z,ee,Oe["~"],$e),v(U["$[]"](1))?ee.$items()["$<<"](U=o):(U["$[]"](0)["$<<"](o["$[]"](0)["$[]"](0)),U["$[]="](1,o["$[]"](1)));return ee}),G(Ne,"$parse_callout_list",function(Z,B,q,ie){var ee=this,$e=z,U=z,g=z,o=z,m=z,T=z,k=z,y=z;for($e=ue("List").$new(q,"colist"),U=1,g=0;v(v(o=B)?o:v(m=B=ue("CalloutListRx").$match(Z.$peek_line()))?Z.$mark():m);)Ie(T=B["$[]"](1),".")&&(T=(g=Ge(g,1)).$to_s()),Ie(T,U.$to_s())||ee.$logger().$warn(ee.$message_with_context("callout list item index: expected "+U+", got "+T,Y(["source_location"],{source_location:Z.$cursor_at_mark()}))),v(k=ee.$parse_list_item(Z,$e,B,"<1>"))&&($e.$items()["$<<"](k),v((y=ie.$callout_ids($e.$items().$size()))["$empty?"]())?ee.$logger().$warn(ee.$message_with_context("no callout found for <"+$e.$items().$size()+">",Y(["source_location"],{source_location:Z.$cursor_at_mark()}))):k.$attributes()["$[]="]("coids",y)),U=Ge(U,1),B=z;return ie.$next_list(),$e}),G(Ne,"$parse_list_item",function(Z,B,q,ie,ee){var $e,U,g=this,o=z,m=z,T=z,k=z,y=z,L=z,j=z,de=z,oe=z,ke=z,Be=z,Xe=z,it=z,ht=z,at=z,mt=z,yt=z,xt=z,vt=z,Tt=z;if(ee==null&&(ee=z),Ie(o=B.$context(),"dlist"))m=!0,T=ue("ListItem").$new(B,k=q["$[]"](1)),v(k["$start_with?"]("[["))&&v(ue("LeadingInlineAnchorRx")["$=~"](k))&&g.$catalog_inline_anchor(($e=Oe["~"])===z?z:$e["$[]"](1),v(y=($e=Oe["~"])===z?z:$e["$[]"](2))?y:(($e=Oe["~"])===z?z:$e.$post_match()).$lstrip(),T,Z),v(L=q["$[]"](3))&&(j=!0),de=ue("ListItem").$new(B,L),v(B.$document().$sourcemap())&&(T["$source_location="](Z.$cursor()),v(j)?de["$source_location="](T.$source_location()):oe=!0);else switch(j=!0,de=ue("ListItem").$new(B,L=q["$[]"](2)),v(B.$document().$sourcemap())&&de["$source_location="](Z.$cursor()),o){case"ulist":de["$marker="](ie),v(L["$start_with?"]("["))&&(v(ee)&&Ie(ee,"bibliography")?v(ue("InlineBiblioAnchorRx")["$=~"](L))&&g.$catalog_inline_biblio_anchor(($e=Oe["~"])===z?z:$e["$[]"](1),($e=Oe["~"])===z?z:$e["$[]"](2),de,Z):v(L["$start_with?"]("[["))?v(ue("LeadingInlineAnchorRx")["$=~"](L))&&g.$catalog_inline_anchor(($e=Oe["~"])===z?z:$e["$[]"](1),($e=Oe["~"])===z?z:$e["$[]"](2),de,Z):v(L["$start_with?"]("[ ] ","[x] ","[*] "))&&(B.$set_option("checklist"),de.$attributes()["$[]="]("checkbox",""),v(L["$start_with?"]("[ "))||de.$attributes()["$[]="]("checked",""),de["$text="](L.$slice(4,L.$length()))));break;case"olist":U=g.$resolve_ordered_list_marker(ie,ke=B.$items().$size(),!0,Z),$e=Ue(U),ie=$e[0]==null?z:$e[0],Be=$e[1]==null?z:$e[1],de["$marker="](ie),Ie(ke,0)&&C(ee)&&B["$style="](v(Xe=Be)?Xe:(v(it=ue("ORDERED_LIST_STYLES")["$[]"](st(ie.$length(),1)))?it:"arabic").$to_s()),v(L["$start_with?"]("[["))&&v(ue("LeadingInlineAnchorRx")["$=~"](L))&&g.$catalog_inline_anchor(($e=Oe["~"])===z?z:$e["$[]"](1),($e=Oe["~"])===z?z:$e["$[]"](2),de,Z);break;default:de["$marker="](ie),v(L["$start_with?"]("[["))&&v(ue("LeadingInlineAnchorRx")["$=~"](L))&&g.$catalog_inline_anchor(($e=Oe["~"])===z?z:$e["$[]"](1),($e=Oe["~"])===z?z:$e["$[]"](2),de,Z)}if(Z.$shift(),ht=Z.$cursor(),at=ue("Reader").$new(g.$read_lines_for_list_item(Z,o,ie,j),ht),v(at["$has_more_lines?"]())){for(v(oe)&&de["$source_location="](ht),mt=at.$skip_line_comments(),v(yt=at.$peek_line())&&(v(mt["$empty?"]())||at.$unshift_lines(mt),v(yt["$empty?"]())||(xt=!0,v(m)||(j=z))),v(vt=g.$next_block(at,de,Y([],{}),Y(["text_only","list_type"],{text_only:v(j)?z:!0,list_type:o})))&&de.$blocks()["$<<"](vt);v(at["$has_more_lines?"]());)v(vt=g.$next_block(at,de,Y([],{}),Y(["list_type"],{list_type:o})))&&de.$blocks()["$<<"](vt);v(xt)&&v(Tt=de.$blocks()["$[]"](0))&&Ie(Tt.$context(),"paragraph")&&de.$fold_first()}return v(m)?[[T],v(de["$text?"]())||v(de["$blocks?"]())?de:z]:de},-5),G(Ne,"$read_lines_for_list_item",function(Z,B,q,ie){var ee,$e=this,U=z,g=z,o=z,m=z,T=z,k=z,y=z,L=z,j=z,de=z,oe=z,ke=z,Be=z,Xe=z,it=z;for(q==null&&(q=z),ie==null&&(ie=!0),U=[],g="inactive",o=!1,m=z,T=B["$=="]("dlist");v(Z["$has_more_lines?"]())&&(k=Z.$read_line(),!v($e["$is_sibling_list_item?"](k,B,q)));){if(y=v(U["$empty?"]())?z:U["$[]"](-1),Ie(y,ue("LIST_CONTINUATION"))&&(Ie(g,"inactive")&&(g="active",ie=!0,v(o)||U["$[]="](-1,"")),Ie(k,ue("LIST_CONTINUATION")))){ze(g,"frozen")&&(g="frozen",U["$<<"](k)),k=z;continue}if(v(L=$e["$is_delimited_block?"](k,!0))){if(!Ie(g,"active"))break;U["$<<"](k),U.$concat(Z.$read_lines_until(Y(["terminator","read_last_line","context"],{terminator:L.$terminator(),read_last_line:!0,context:z}))),g="inactive"}else if(v(T)&&ze(g,"active")&&v(k["$start_with?"]("["))&&v(ue("BlockAttributeLineRx")["$match?"](k))){for(j=[k];v(de=Z.$peek_line());){if(v($e["$is_delimited_block?"](de)))oe=!0;else if(v(de["$empty?"]())||v(de["$start_with?"]("["))&&v(ue("BlockAttributeLineRx")["$match?"](de))){j["$<<"](Z.$read_line());continue}else v(ue("AnyListRx")["$match?"](de))&&C($e["$is_sibling_list_item?"](de,B,q))?U.$concat(j):oe=!0;break}if(v(oe)){Z.$unshift_lines(j);break}}else if(Ie(g,"active")&&C(k["$empty?"]()))v(ue("LiteralParagraphRx")["$match?"](k))?(Z.$unshift_line(k),v(T)?U.$concat(_e(Z,"read_lines_until",[Y(["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})],function ht(at){var mt=ht.$$s==null?this:ht.$$s;return at==null&&(at=z),mt["$is_sibling_list_item?"](at,B,q)},{$$s:$e})):U.$concat(Z.$read_lines_until(Y(["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="inactive"):Ie(ke=k.$chr(),".")&&v(ue("BlockTitleRx")["$match?"](k))||Ie(ke,"[")&&v(ue("BlockAttributeLineRx")["$match?"](k))||Ie(ke,":")&&v(ue("AttributeEntryRx")["$match?"](k))?U["$<<"](k):(v(Be=_e(v(o)?["dlist"]:ue("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=z),ue("ListRxMap")["$[]"](at)["$match?"](k)}))&&(o=!0,Ie(Be,"dlist")&&v(((ee=Oe["~"])===z?z:ee["$[]"](3))["$nil_or_empty?"]())&&(ie=!1)),U["$<<"](k),g="inactive");else if(v(y)&&v(y["$empty?"]())){if(v(k["$empty?"]())&&(!v(k=v(Xe=Z.$skip_blank_lines())?Z.$read_line():Xe)||v($e["$is_sibling_list_item?"](k,B,q))))break;if(Ie(k,ue("LIST_CONTINUATION")))m=U.$size(),U["$<<"](k);else if(v(ie)){if(v($e["$is_sibling_list_item?"](k,B,q)))break;if(v(Be=_e(ue("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=z),ue("ListRxMap")["$[]"](at)["$=~"](k)})))U["$<<"](k),o=!0,Ie(Be,"dlist")&&v(((ee=Oe["~"])===z?z:ee["$[]"](3))["$nil_or_empty?"]())&&(ie=!1);else if(v(ue("LiteralParagraphRx")["$match?"](k)))Z.$unshift_line(k),v(T)?U.$concat(_e(Z,"read_lines_until",[Y(["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})],function ht(at){var mt=ht.$$s==null?this:ht.$$s;return at==null&&(at=z),mt["$is_sibling_list_item?"](at,B,q)},{$$s:$e})):U.$concat(Z.$read_lines_until(Y(["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 break}else v(o)||U.$pop(),U["$<<"](k),ie=!0}else v(k["$empty?"]())||(ie=!0),v(Be=_e(v(o)?["dlist"]:ue("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=z),ue("ListRxMap")["$[]"](at)["$=~"](k)}))&&(o=!0,Ie(Be,"dlist")&&v(((ee=Oe["~"])===z?z:ee["$[]"](3))["$nil_or_empty?"]())&&(ie=!1)),U["$<<"](k);k=z}for(v(k)&&Z.$unshift_line(k),v(m)&&U["$[]="](m,"");!v(U["$empty?"]());)if(v((it=U["$[]"](-1))["$empty?"]()))U.$pop();else{Ie(it,ue("LIST_CONTINUATION"))&&U.$pop();break}return U},-3),G(Ne,"$initialize_section",function(Z,B,q){var ie,ee,$e=this,U=z,g=z,o=z,m=z,T=z,k=z,y=z,L=z,j=z,de=z,oe=z,ke=z,Be=z,Xe=z,it=z,ht=z,at=z;return q==null&&(q=Y([],{})),U=B.$document(),g=(o=U.$doctype())["$=="]("book"),v(U.$sourcemap())&&(m=Z.$cursor()),T=q["$[]"](1),ee=$e.$parse_section_title(Z,U,q["$[]"]("id")),ie=Ue(ee),k=ie[0]==null?z:ie[0],y=ie[1]==null?z:ie[1],L=ie[2]==null?z:ie[2],j=ie[3]==null?z:ie[3],de=ie[4]==null?z:ie[4],v(T)?v(g)&&Ie(T,"abstract")?(ie=["chapter",1],oe=ie[0],j=ie[1]):v(T["$start_with?"]("sect"))&&v(ue("SectionLevelStyleRx")["$match?"](T))?oe="section":(ie=[T,!0],oe=ie[0],ke=ie[1],Ie(j,0)&&(j=1),Be=oe["$=="]("appendix")):v(g)?oe=Ie(j,0)?"part":v(je(j,1))?"section":"chapter":Ie(o,"manpage")&&Ie(L.$casecmp("synopsis"),0)?(ie=["synopsis",!0],oe=ie[0],ke=ie[1]):oe="section",v(y)&&q["$[]="]("reftext",y),Xe=ue("Section").$new(B,j),ie=[k,L,oe,m],ee=[ie[0]],_e(Xe,"id=",ee),ee[ee.length-1],ee=[ie[1]],_e(Xe,"title=",ee),ee[ee.length-1],ee=[ie[2]],_e(Xe,"sectname=",ee),ee[ee.length-1],ee=[ie[3]],_e(Xe,"source_location=",ee),ee[ee.length-1],v(ke)?(Xe["$special="](!0),v(Be)?Xe["$numbered="](!0):Ie(U.$attributes()["$[]"]("sectnums"),"all")&&Xe["$numbered="](v(g)&&Ie(j,1)?"chapter":!0)):v(U.$attributes()["$[]"]("sectnums"))&&v(je(j,0))?Xe["$numbered="](v(Xe.$special())?v(it=B.$numbered())||it:!0):v(g)&&Ie(j,0)&&v(U.$attributes()["$[]"]("partnums"))&&Xe["$numbered="](!0),v(ht=v(it=Xe.$id())?it:(ie=[v(U.$attributes()["$key?"]("sectids"))?at=ue("Section").$generate_id(Xe.$title(),U):z],_e(Xe,"id=",ie),ie[ie.length-1]))&&(v(at)||C(L["$include?"](ue("ATTR_REF_HEAD")))||Xe.$title(),v(U.$register("refs",[ht,Xe]))||$e.$logger().$warn($e.$message_with_context("id assigned to section already in use: "+ht,Y(["source_location"],{source_location:Z.$cursor_at_line(st(Z.$lineno(),v(de)?1:2))})))),Xe.$update_attributes(q),Z.$skip_blank_lines(),Xe},-3),G(Ne,"$is_next_line_section?",function(Z,B){var q=this,ie=z,ee=z,$e=z;return v(ie=B["$[]"](1))&&(Ie(ie,"discrete")||Ie(ie,"float"))?z:v(ue("Compliance").$underline_style_section_titles())?(ee=Z.$peek_lines(2,v($e=ie)?ie["$=="]("comment"):$e),q["$is_section_title?"](v($e=ee["$[]"](0))?$e:"",ee["$[]"](1))):q["$atx_section_title?"](v($e=Z.$peek_line())?$e:"")}),G(Ne,"$is_next_line_doctitle?",function(Z,B,q){var ie=this,ee=z,$e=z;return v(q)?v(ee=$e=ie["$is_next_line_section?"](Z,B))?Ge($e,q.$to_i())["$=="](0):ee:ie["$is_next_line_section?"](Z,B)["$=="](0)}),G(Ne,"$is_section_title?",function(Z,B){var q=this,ie=z;return B==null&&(B=z),v(ie=q["$atx_section_title?"](Z))?ie:v(B["$nil_or_empty?"]())?z:q["$setext_section_title?"](Z,B)},-2),G(Ne,"$atx_section_title?",function(Z){var B,q=z;return v(v(ue("Compliance").$markdown_syntax())?v(q=Z["$start_with?"]("=","#"))?ue("ExtAtxSectionTitleRx")["$=~"](Z):q:v(q=Z["$start_with?"]("="))?ue("AtxSectionTitleRx")["$=~"](Z):q)?st(((B=Oe["~"])===z?z:B["$[]"](1)).$length(),1):z}),G(Ne,"$setext_section_title?",function(Z,B){var q=this,ie=z,ee=z,$e=z;return v(ee=ue("SETEXT_SECTION_LEVELS")["$[]"]($e=B.$chr()))&&v(q["$uniform?"](B,$e,ie=B.$length()))&&v(ue("SetextSectionTitleRx")["$match?"](Z))&&v(qe(st(Z.$length(),ie).$abs(),2))?ee:z}),G(Ne,"$parse_section_title",function(Z,B,q){var ie,ee,$e=this,U=z,g=z,o=z,m=z,T=z,k=z,y=z,L=z,j=z;return q==null&&(q=z),U=z,g=Z.$read_line(),v(v(ue("Compliance").$markdown_syntax())?v(o=g["$start_with?"]("=","#"))?ue("ExtAtxSectionTitleRx")["$=~"](g):o:v(o=g["$start_with?"]("="))?ue("AtxSectionTitleRx")["$=~"](g):o)?(ie=[st(((ee=Oe["~"])===z?z:ee["$[]"](1)).$length(),1),(ee=Oe["~"])===z?z:ee["$[]"](2),!0],m=ie[0],T=ie[1],k=ie[2],v(q)||v(T["$end_with?"]("]]"))&&v(ue("InlineSectionAnchorRx")["$=~"](T))&&C((ie=Oe["~"])===z?z:ie["$[]"](1))&&(ie=[T.$slice(0,st(T.$length(),((ee=Oe["~"])===z?z:ee["$[]"](0)).$length())),(ee=Oe["~"])===z?z:ee["$[]"](2),(ee=Oe["~"])===z?z:ee["$[]"](3)],T=ie[0],q=ie[1],U=ie[2])):v(ue("Compliance").$underline_style_section_titles())&&v(j=Z.$peek_line(!0))&&v(m=ue("SETEXT_SECTION_LEVELS")["$[]"](L=j.$chr()))&&v($e["$uniform?"](j,L,y=j.$length()))&&v(T=v(o=ue("SetextSectionTitleRx")["$=~"](g))?(ie=Oe["~"])===z?z:ie["$[]"](1):o)&&v(qe(st(g.$length(),y).$abs(),2))?(k=!1,v(q)||v(T["$end_with?"]("]]"))&&v(ue("InlineSectionAnchorRx")["$=~"](T))&&C((ie=Oe["~"])===z?z:ie["$[]"](1))&&(ie=[T.$slice(0,st(T.$length(),((ee=Oe["~"])===z?z:ee["$[]"](0)).$length())),(ee=Oe["~"])===z?z:ee["$[]"](2),(ee=Oe["~"])===z?z:ee["$[]"](3)],T=ie[0],q=ie[1],U=ie[2]),Z.$shift()):$e.$raise("Unrecognized section at "+Z.$cursor_at_prev_line()),v(B["$attr?"]("leveloffset"))&&(m=Ge(m,B.$attr("leveloffset").$to_i()),v(qe(m,0))&&(m=0)),[q,U,T,m,k]},-3),G(Ne,"$parse_header_metadata",function(Z,B,q){var ie,ee=this,$e=z,U=z,g=z,o=z,m=z,T=z,k=z,y=z,L=z,j=z,de=z,oe=z,ke=z,Be=z,Xe=z,it=z,ht=z,at=z,mt=z;if(B==null&&(B=z),q==null&&(q=!0),$e=v(U=B)?B.$attributes():U,ee.$process_attribute_entries(Z,B),v(Z["$has_more_lines?"]())&&C(Z["$next_line_empty?"]())?(g=(o=ee.$process_authors(Z.$read_line())).$delete("authorcount"),v(B)&&v(je((ie=["authorcount",g],_e($e,"[]=",ie),ie[ie.length-1]),0))&&(_e(o,"each",[],function(xt,vt){var Tt;return xt==null&&(xt=z),vt==null&&(vt=z),v($e["$key?"](xt))?z:(Tt=[xt,B.$apply_header_subs(vt)],_e($e,"[]=",Tt),Tt[Tt.length-1])}),m=$e["$[]"]("author"),T=$e["$[]"]("authorinitials"),k=$e["$[]"]("authors")),o["$[]="]("authorcount",g),ee.$process_attribute_entries(Z,B),v(Z["$has_more_lines?"]())&&C(Z["$next_line_empty?"]())&&(y=Z.$read_line(),v(L=ue("RevisionInfoLineRx").$match(y))?(j=Y([],{}),v(L["$[]"](1))&&j["$[]="]("revnumber",L["$[]"](1).$rstrip()),v((de=L["$[]"](2).$strip())["$empty?"]())||(C(L["$[]"](1))&&v(de["$start_with?"]("v"))?j["$[]="]("revnumber",de.$slice(1,de.$length())):j["$[]="]("revdate",de)),v(L["$[]"](3))&&j["$[]="]("revremark",L["$[]"](3).$rstrip()),v(B)&&C(j["$empty?"]())&&_e(j,"each",[],function(xt,vt){var Tt;return xt==null&&(xt=z),vt==null&&(vt=z),v($e["$key?"](xt))?z:(Tt=[xt,B.$apply_header_subs(vt)],_e($e,"[]=",Tt),Tt[Tt.length-1])})):Z.$unshift_line(y)),ee.$process_attribute_entries(Z,B),Z.$skip_blank_lines()):o=Y([],{}),v(B)){if(v($e["$key?"]("author"))&&ze(oe=$e["$[]"]("author"),m))ke=ee.$process_authors(oe,!0,!1),ze($e["$[]"]("authorinitials"),T)&&ke.$delete("authorinitials");else if(v($e["$key?"]("authors"))&&ze(oe=$e["$[]"]("authors"),k))ke=ee.$process_authors(oe,!0);else{for(ie=[[],1,"author_1",!1,!1],Be=ie[0],Xe=ie[1],it=ie[2],ht=ie[3],at=ie[4];v($e["$key?"](it));)Ie(mt=$e["$[]"](it),o["$[]"](it))?(Be["$<<"](z),at=!0):(Be["$<<"](mt),ht=!0),it="author_"+(Xe=Ge(Xe,1));v(ht)?(v(at)&&_e(Be,"each_with_index",[],function(xt,vt){var Tt,St=z;return xt==null&&(xt=z),vt==null&&(vt=z),v(xt)?z:(Tt=[vt,_e([o["$[]"]("firstname_"+(St=Ge(vt,1))),o["$[]"]("middlename_"+St),o["$[]"]("lastname_"+St)].$compact(),"map",[],function(Bt){return Bt==null&&(Bt=z),Bt.$tr(" ","_")}).$join(" ")],_e(Be,"[]=",Tt),Tt[Tt.length-1])}),ke=ee.$process_authors(Be,!0,!1)):ke=Y(["authorcount"],{authorcount:0})}Ie(ke["$[]"]("authorcount"),0)?v(g)?ke=z:$e["$[]="]("authorcount",0):($e.$update(ke),C($e["$key?"]("email"))&&v($e["$key?"]("email_1"))&&$e["$[]="]("email",$e["$[]"]("email_1")))}return v(q)?o.$merge(j.$to_h(),ke.$to_h()):z},-2),G(Ne,"$process_authors",function(Z,B,q){var ie=z,ee=z;return B==null&&(B=!1),q==null&&(q=!0),ie=Y([],{}),ee=0,_e(v(q)&&v(Z["$include?"](";"))?Z.$split(ue("AuthorDelimiterRx")):[].concat(dt(Z)),"each",[],function(U){var g,o=z,m=z,T=z,k=z,y=z,L=z,j=z;return U==null&&(U=z),v(U["$empty?"]())?z:(o=Y([],{}),Ie(ee=Ge(ee,1),1)?_e(ue("AuthorKeys"),"each",[],function(oe){var ke;return oe==null&&(oe=z),ke=[oe.$to_sym(),oe],_e(o,"[]=",ke),ke[ke.length-1]}):_e(ue("AuthorKeys"),"each",[],function(oe){var ke;return oe==null&&(oe=z),ke=[oe.$to_sym(),""+oe+"_"+ee],_e(o,"[]=",ke),ke[ke.length-1]}),v(B)?(v(U["$include?"]("<"))&&(ie["$[]="](o["$[]"]("author"),U.$tr("_"," ")),U=U.$gsub(ue("XmlSanitizeRx"),"")),Ie((m=U.$split(z,3)).$size(),3)&&m["$<<"](m.$pop().$squeeze(" "))):v(T=ue("AuthorInfoLineRx").$match(U))&&(m=T.$to_a()).$shift(),v(m)?(k=(g=[o["$[]"]("firstname"),y=m["$[]"](0).$tr("_"," ")],_e(ie,"[]=",g),g[g.length-1]),ie["$[]="](o["$[]"]("authorinitials"),y.$chr()),v(m["$[]"](1))&&(v(m["$[]"](2))?(ie["$[]="](o["$[]"]("middlename"),L=m["$[]"](1).$tr("_"," ")),ie["$[]="](o["$[]"]("lastname"),j=m["$[]"](2).$tr("_"," ")),k=Ge(Ge(Ge(Ge(y," "),L)," "),j),ie["$[]="](o["$[]"]("authorinitials"),""+y.$chr()+L.$chr()+j.$chr())):(ie["$[]="](o["$[]"]("lastname"),j=m["$[]"](1).$tr("_"," ")),k=Ge(Ge(y," "),j),ie["$[]="](o["$[]"]("authorinitials"),""+y.$chr()+j.$chr()))),v(ie["$[]"](o["$[]"]("author")))||ie["$[]="](o["$[]"]("author"),k),v(B)||C(m["$[]"](3))||ie["$[]="](o["$[]"]("email"),m["$[]"](3))):(ie["$[]="](o["$[]"]("author"),(g=[o["$[]"]("firstname"),y=U.$squeeze(" ").$strip()],_e(ie,"[]=",g),g[g.length-1])),ie["$[]="](o["$[]"]("authorinitials"),y.$chr())),Ie(ee,1)?(g=["authors",ie["$[]"](o["$[]"]("author"))],_e(ie,"[]=",g),g[g.length-1]):(Ie(ee,2)&&_e(ue("AuthorKeys"),"each",[],function(oe){var ke;return oe==null&&(oe=z),v(ie["$key?"](oe))?(ke=[""+oe+"_1",ie["$[]"](oe)],_e(ie,"[]=",ke),ke[ke.length-1]):z}),g=["authors",""+ie["$[]"]("authors")+", "+ie["$[]"](o["$[]"]("author"))],_e(ie,"[]=",g),g[g.length-1]))}),ie["$[]="]("authorcount",ee),ie},-2),G(Ne,"$parse_block_metadata_lines",function(Z,B,q,ie){var ee=this;for(q==null&&(q=Y([],{})),ie==null&&(ie=Y([],{}));v(ee.$parse_block_metadata_line(Z,B,q,ie))&&(Z.$shift(),!!v(Z.$skip_blank_lines())););return q},-3),G(Ne,"$parse_block_metadata_line",function(Z,B,q,ie){var ee,$e=this,U=z,g=z,o=z,m=z,T=z,k=z;if(Oe["~"]==null&&(Oe["~"]=z),ie==null&&(ie=Y([],{})),v(g=Z.$peek_line())&&v(v(ie["$[]"]("text_only"))?g["$start_with?"]("[","/"):U=g["$start_with?"]("[",".","/",":"))){if(v(g["$start_with?"]("["))){if(v(g["$start_with?"]("[["))){if(v(g["$end_with?"]("]]"))&&v(ue("BlockAnchorRx")["$=~"](g)))return q["$[]="]("id",(ee=Oe["~"])===z?z:ee["$[]"](1)),v(o=(ee=Oe["~"])===z?z:ee["$[]"](2))&&q["$[]="]("reftext",v(o["$include?"](ue("ATTR_REF_HEAD")))?B.$sub_attributes(o):o),!0}else if(v(g["$end_with?"]("]"))&&v(ue("BlockAttributeListRx")["$=~"](g)))return m=q["$[]"](1),v(B.$parse_attributes((ee=Oe["~"])===z?z:ee["$[]"](1),[],Y(["sub_input","sub_result","into"],{sub_input:!0,sub_result:!0,into:q}))["$[]"](1))&&q["$[]="](1,v(T=$e.$parse_style_attribute(q,Z))?T:m),!0}else if(v(U)&&v(g["$start_with?"]("."))){if(v(ue("BlockTitleRx")["$=~"](g)))return q["$[]="]("title",(ee=Oe["~"])===z?z:ee["$[]"](1)),!0}else if(C(U)||v(g["$start_with?"]("/"))){if(v(g["$start_with?"]("//"))){if(Ie(g,"//"))return!0;if(v(U)&&v($e["$uniform?"](g,"/",k=g.$length()))){if(!Ie(k,3))return Z.$read_lines_until(Y(["terminator","skip_first_line","preserve_last_line","skip_processing","context"],{terminator:g,skip_first_line:!0,preserve_last_line:!0,skip_processing:!0,context:"comment"})),!0}else if(!v(g["$start_with?"]("///")))return!0}}else if(v(U)&&v(g["$start_with?"](":"))&&v(ue("AttributeEntryRx")["$=~"](g)))return $e.$process_attribute_entry(Z,B,q,Oe["~"]),!0}return z},-4),G(Ne,"$process_attribute_entries",function(Z,B,q){var ie=this;for(q==null&&(q=z),Z.$skip_comment_lines();v(ie.$process_attribute_entry(Z,B,q));)Z.$shift(),Z.$skip_comment_lines()},-3),G(Ne,"$process_attribute_entry",function(Z,B,q,ie){var ee,$e=this,U=z,g=z,o=z,m=z,T=z,k=z;if(q==null&&(q=z),ie==null&&(ie=z),v(ie)||v(ie=v(Z["$has_more_lines?"]())?ue("AttributeEntryRx").$match(Z.$peek_line()):z)){if(v((U=ie["$[]"](2))["$nil_or_empty?"]()))U="";else if(v(U["$end_with?"](ue("LINE_CONTINUATION"),ue("LINE_CONTINUATION_LEGACY"))))for(ee=[U.$slice(st(U.$length(),2),2),U.$slice(0,st(U.$length(),2)).$rstrip()],g=ee[0],U=ee[1];v(v(o=Z.$advance())?(m=v(T=Z.$peek_line())?T:"")["$empty?"]()["$!"]():o)&&(m=m.$lstrip(),v(k=m["$end_with?"](g))&&(m=m.$slice(0,st(m.$length(),2)).$rstrip()),U=""+U+(v(U["$end_with?"](ue("HARD_LINE_BREAK")))?ue("LF"):" ")+m,!!v(k)););return $e.$store_attribute(ie["$[]"](1),U,B,q),!0}else return z},-3),G(Ne,"$store_attribute",function(Z,B,q,ie){var ee=this,$e=z;return q==null&&(q=z),ie==null&&(ie=z),v(Z["$end_with?"]("!"))?(Z=Z.$chop(),B=z):v(Z["$start_with?"]("!"))&&(Z=Z.$slice(1,Z.$length()),B=z),Ie(Z=ee.$sanitize_attribute_name(Z),"numbered")?Z="sectnums":Ie(Z,"hardbreaks")?Z="hardbreaks-option":Ie(Z,"showtitle")&&ee.$store_attribute("notitle",v(B)?z:"",q,ie),v(q)?v(B)?(Ie(Z,"leveloffset")&&(v(B["$start_with?"]("+"))?B=Ge(q.$attr("leveloffset",0).$to_i(),B.$slice(1,B.$length()).$to_i()).$to_s():v(B["$start_with?"]("-"))&&(B=st(q.$attr("leveloffset",0).$to_i(),B.$slice(1,B.$length()).$to_i()).$to_s())),v($e=q.$set_attribute(Z,B))&&(B=$e,v(ie)&&et(ue("Document"),"AttributeEntry").$new(Z,B).$save_to(ie))):v(q.$delete_attribute(Z))&&v(ie)&&et(ue("Document"),"AttributeEntry").$new(Z,B).$save_to(ie):v(ie)&&et(ue("Document"),"AttributeEntry").$new(Z,B).$save_to(ie),[Z,B]},-3),G(Ne,"$resolve_list_marker",function(Z,B,q,ie,ee){var $e=this;switch(q==null&&(q=0),ie==null&&(ie=!1),ee==null&&(ee=z),Z){case"ulist":return B;case"olist":return $e.$resolve_ordered_list_marker(B,q,ie,ee)["$[]"](0);default:return"<1>"}},-3),G(Ne,"$resolve_ordered_list_marker",function(Z,B,q,ie){var ee=this,$e=z,U=z,g=z;if(B==null&&(B=0),q==null&&(q=!1),ie==null&&(ie=z),v(Z["$start_with?"](".")))return[Z];switch($e=_e(ue("ORDERED_LIST_STYLES"),"find",[],function(m){return m==null&&(m=z),ue("OrderedListMarkerRxMap")["$[]"](m)["$match?"](Z)})){case"arabic":v(q)&&(U=Ge(B,1),g=Z.$to_i()),Z="1.";break;case"loweralpha":v(q)&&(U=Ge("a"["$[]"](0).$ord(),B).$chr(),g=Z.$chop()),Z="a.";break;case"upperalpha":v(q)&&(U=Ge("A"["$[]"](0).$ord(),B).$chr(),g=Z.$chop()),Z="A.";break;case"lowerroman":v(q)&&(U=ue("Helpers").$int_to_roman(Ge(B,1)).$downcase(),g=Z.$chop()),Z="i)";break;case"upperroman":v(q)&&(U=ue("Helpers").$int_to_roman(Ge(B,1)),g=Z.$chop()),Z="I)";break}return v(q)&&ze(U,g)&&ee.$logger().$warn(ee.$message_with_context("list item index: expected "+U+", got "+g,Y(["source_location"],{source_location:ie.$cursor()}))),[Z,$e]},-2),G(Ne,"$is_sibling_list_item?",function(Z,B,q){var ie,ee=this,$e=z;return Ye(et("Regexp"),q)?q["$match?"](Z):v($e=ue("ListRxMap")["$[]"](B)["$=~"](Z))?q["$=="](ee.$resolve_list_marker(B,(ie=Oe["~"])===z?z:ie["$[]"](1))):$e}),G(Ne,"$parse_table",function(Z,B,q){var ie,ee,$e,U=this,g=z,o=z,m=z,T=z,k=z,y=z,L=z,j=z,de=z,oe=z,ke=z,Be=z,Xe=z,it=z,ht=z,at=z,mt=z,yt=z;for(g=ue("Table").$new(B,q),v(q["$key?"]("cols"))&&C((o=U.$parse_colspecs(q["$[]"]("cols")))["$empty?"]())&&(g.$create_columns(o),m=!0),T=v(k=Z.$skip_blank_lines())?k:0,v(q["$[]"]("header-option"))?g["$has_header_option="](!0):Ie(T,0)&&C(q["$[]"]("noheader-option"))&&(g["$has_header_option="]("implicit"),y=!0),L=et(ue("Table"),"ParserContext").$new(Z,g,q),ie=[L.$format(),-1,z],j=ie[0],de=ie[1],oe=ie[2];v(ke=Z.$read_line());){for(v(Be=je(de=Ge(de,1),0))&&v(ke["$empty?"]())?(ke=z,v(oe)&&(oe=Ge(oe,1))):Ie(j,"psv")&&(v(L["$starts_with_delimiter?"](ke))?(ke=ke.$slice(1,ke.$length()),L.$close_open_cell(),v(oe)&&(oe=z)):(ee=U.$parse_cellspec(ke,"start",L.$delimiter()),ie=Ue(ee),Xe=ie[0]==null?z:ie[0],ke=ie[1]==null?z:ie[1],v(Xe)?(L.$close_open_cell(Xe),v(oe)&&(oe=z)):v(oe)&&Ie(oe,de)&&g["$has_header_option="](y=oe=z))),v(Be)||(Z.$mark(),v(y)&&(v(Z["$has_more_lines?"]())&&v(Z.$peek_line()["$empty?"]())?oe=1:g["$has_header_option="](y=z))),ie=!1;ie||v(!0);)if(ie=!1,v(ke)&&v(it=L.$match_delimiter(ke))){if(ee=[it.$pre_match(),it.$post_match()],ht=ee[0],at=ee[1],Ye("csv",k=j)){if(v(L["$buffer_has_unclosed_quotes?"](ht))){if(L.$skip_past_delimiter(ht),v((ke=at)["$empty?"]()))break;ie=!0;continue}L["$buffer="](""+L.$buffer()+ht)}else if(Ye("dsv",k)){if(v(ht["$end_with?"]("\\"))){if(L.$skip_past_escaped_delimiter(ht),v((ke=at)["$empty?"]())){L["$buffer="](""+L.$buffer()+ue("LF")),L.$keep_cell_open();break}ie=!0;continue}L["$buffer="](""+L.$buffer()+ht)}else{if(v(ht["$end_with?"]("\\"))){if(L.$skip_past_escaped_delimiter(ht),v((ke=at)["$empty?"]())){L["$buffer="](""+L.$buffer()+ue("LF")),L.$keep_cell_open();break}ie=!0;continue}$e=U.$parse_cellspec(ht),ee=Ue($e),Xe=ee[0]==null?z:ee[0],mt=ee[1]==null?z:ee[1],L.$push_cellspec(Xe),L["$buffer="](""+L.$buffer()+mt)}v((ke=at)["$empty?"]())&&(ke=z),L.$close_cell()}else{switch(L["$buffer="](""+L.$buffer()+ke+ue("LF")),j){case"csv":v(L["$buffer_has_unclosed_quotes?"]())?(v(oe)&&Ie(de,0)&&g["$has_header_option="](y=oe=z),L.$keep_cell_open()):L.$close_cell(!0);break;case"dsv":L.$close_cell(!0);break;default:L.$keep_cell_open()}break}if(v(L["$cell_open?"]()))v(Z["$has_more_lines?"]())||L.$close_cell(!0);else if(!v(k=Z.$skip_blank_lines()))break}return Ie((yt=g.$attributes(),v(k=yt["$[]"]("colcount"))?k:(ie=["colcount",g.$columns().$size()],_e(yt,"[]=",ie),ie[ie.length-1])),0)||v(m)||g.$assign_column_widths(),v(y)&&g["$has_header_option="](!0),g.$partition_header_footer(q),g}),G(Ne,"$parse_colspecs",function(Z){var B=z;return v(Z["$include?"](" "))&&(Z=Z.$delete(" ")),Ie(Z,Z.$to_i().$to_s())?_e(et("Array"),"new",[Z.$to_i()],function(){return Y(["width"],{width:1})}):(B=[],_e(v(Z["$include?"](","))?Z.$split(",",-1):Z.$split(";",-1),"each",[],function(ie){var ee,$e,U=z,g=z,o=z,m=z,T=z;return ie==null&&(ie=z),v(ie["$empty?"]())?B["$<<"](Y(["width"],{width:1})):v(U=ue("ColumnSpecRx").$match(ie))?(g=Y([],{}),v(U["$[]"](2))&&($e=U["$[]"](2).$split("."),ee=Ue($e),o=ee[0]==null?z:ee[0],m=ee[1]==null?z:ee[1],C(o["$nil_or_empty?"]())&&v(ue("TableCellHorzAlignments")["$key?"](o))&&g["$[]="]("halign",ue("TableCellHorzAlignments")["$[]"](o)),C(m["$nil_or_empty?"]())&&v(ue("TableCellVertAlignments")["$key?"](m))&&g["$[]="]("valign",ue("TableCellVertAlignments")["$[]"](m))),v(T=U["$[]"](3))?g["$[]="]("width",Ie(T,"~")?-1:T.$to_i()):g["$[]="]("width",1),v(U["$[]"](4))&&v(ue("TableCellStyles")["$key?"](U["$[]"](4)))&&g["$[]="]("style",ue("TableCellStyles")["$[]"](U["$[]"](4))),v(U["$[]"](1))?_e(1,"upto",[U["$[]"](1).$to_i()],function(){return B["$<<"](g.$merge())}):B["$<<"](g)):z}),B)}),G(Ne,"$parse_cellspec",function(Z,B,q){var ie,ee,$e=z,U=z,g=z,o=z,m=z,T=z;if(B==null&&(B="end"),q==null&&(q=z),ie=[z,""],$e=ie[0],U=ie[1],Ie(B,"start"))if(v(Z["$include?"](q)))if(ee=Z.$partition(q),ie=Ue(ee),g=ie[0]==null?z:ie[0],ie[1]==null||ie[1],U=ie[2]==null?z:ie[2],v($e=ue("CellSpecStartRx").$match(g))){if(v($e["$[]"](0)["$empty?"]()))return[Y([],{}),U]}else return[z,Z];else return[z,Z];else if(v($e=ue("CellSpecEndRx").$match(Z))){if(v($e["$[]"](0).$lstrip()["$empty?"]()))return[Y([],{}),Z.$rstrip()];U=$e.$pre_match()}else return[Y([],{}),Z];if(o=Y([],{}),v($e["$[]"](1)))switch(ee=$e["$[]"](1).$split("."),ie=Ue(ee),m=ie[0]==null?z:ie[0],T=ie[1]==null?z:ie[1],m=v(m["$nil_or_empty?"]())?1:m.$to_i(),T=v(T["$nil_or_empty?"]())?1:T.$to_i(),$e["$[]"](2)){case"+":Ie(m,1)||o["$[]="]("colspan",m),Ie(T,1)||o["$[]="]("rowspan",T);break;case"*":Ie(m,1)||o["$[]="]("repeatcol",m);break}return v($e["$[]"](3))&&(ee=$e["$[]"](3).$split("."),ie=Ue(ee),m=ie[0]==null?z:ie[0],T=ie[1]==null?z:ie[1],C(m["$nil_or_empty?"]())&&v(ue("TableCellHorzAlignments")["$key?"](m))&&o["$[]="]("halign",ue("TableCellHorzAlignments")["$[]"](m)),C(T["$nil_or_empty?"]())&&v(ue("TableCellVertAlignments")["$key?"](T))&&o["$[]="]("valign",ue("TableCellVertAlignments")["$[]"](T))),v($e["$[]"](4))&&v(ue("TableCellStyles")["$key?"]($e["$[]"](4)))&&o["$[]="]("style",ue("TableCellStyles")["$[]"]($e["$[]"](4))),[o,U]},-2),G(Ne,"$parse_style_attribute",function(Z,B){var q,ie=this,ee=z,$e=z,U=z,g=z,o=z,m=z;return B==null&&(B=z),v(ee=Z["$[]"](1))&&C(ee["$include?"](" "))&&v(ue("Compliance").$shorthand_property_syntax())?($e=z,U="",g=Y([],{}),_e(ee,"each_char",[],function T(k){var y=T.$$s==null?this:T.$$s;switch(k==null&&(k=z),k){case".":return y.$yield_buffered_attribute(g,$e,U,B),U="",$e="role";case"#":return y.$yield_buffered_attribute(g,$e,U,B),U="",$e="id";case"%":return y.$yield_buffered_attribute(g,$e,U,B),U="",$e="option";default:return U=Ge(U,k)}},{$$s:ie}),v($e)?(ie.$yield_buffered_attribute(g,$e,U,B),v(o=g["$[]"]("style"))&&Z["$[]="]("style",o),v(g["$key?"]("id"))&&Z["$[]="]("id",g["$[]"]("id")),v(g["$key?"]("role"))&&Z["$[]="]("role",v((m=Z["$[]"]("role"))["$nil_or_empty?"]())?g["$[]"]("role").$join(" "):""+m+" "+g["$[]"]("role").$join(" ")),v(g["$key?"]("option"))&&_e(g["$[]"]("option"),"each",[],function(k){var y;return k==null&&(k=z),y=[""+k+"-option",""],_e(Z,"[]=",y),y[y.length-1]}),o):(q=["style",ee],_e(Z,"[]=",q),q[q.length-1])):(q=["style",ee],_e(Z,"[]=",q),q[q.length-1])},-2),G(Ne,"$yield_buffered_attribute",function(Z,B,q,ie){var ee,$e=this,U=z;return v(B)?v(q["$empty?"]())?v(ie)?$e.$logger().$warn($e.$message_with_context("invalid empty "+B+" detected in style attribute",Y(["source_location"],{source_location:ie.$cursor_at_prev_line()}))):$e.$logger().$warn("invalid empty "+B+" detected in style attribute"):Ie(B,"id")?(v(Z["$key?"]("id"))&&(v(ie)?$e.$logger().$warn($e.$message_with_context("multiple ids detected in style attribute",Y(["source_location"],{source_location:ie.$cursor_at_prev_line()}))):$e.$logger().$warn("multiple ids detected in style attribute")),Z["$[]="](B,q)):(v(U=Z["$[]"](B))?U:(ee=[B,[]],_e(Z,"[]=",ee),ee[ee.length-1]))["$<<"](q):v(q["$empty?"]())||Z["$[]="]("style",q),z}),G(Ne,"$adjust_indentation!",function(Z,B,q){var ie=z,ee=z,$e=z;return B==null&&(B=0),q==null&&(q=0),v(Z["$empty?"]())||(v(je(q,0))&&v(_e(Z,"any?",[],function(g){return g==null&&(g=z),g["$include?"](ue("TAB"))}))&&(ie=We(" ",q),_e(Z,"map!",[],function(g){var o=z,m=z,T=z,k=z,y=z;return g==null&&(g=z),v(g["$empty?"]())||v((o=g.$index(ue("TAB")))["$nil?"]())||Ie(o,0)&&(m=0,function(){try{var L=Je("break");return _e(g,"each_byte",[],function(de){return de==null&&(de=z),Ie(de,9)||L.$throw(),m=Ge(m,1)})}catch(j){if(j===L)return j.$v;throw j}}(),g=""+We(ie,m)+g.$slice(m,g.$length()),!v(g["$include?"](ue("TAB"))))?g:(T=0,k=0,y="",_e(g,"each_char",[],function(j){var de=z,oe=z;return j==null&&(j=z),Ie(j,ue("TAB"))?Ie((de=Ge(k,T))["$%"](q),0)?(T=Ge(T,st(q,1)),y=Ge(y,ie)):(Ie(oe=st(q,de["$%"](q)),1)||(T=Ge(T,st(oe,1))),y=Ge(y,We(" ",oe))):y=Ge(y,j),k=Ge(k,1)}),y)})),v(qe(B,0)))||(ee=z,function(){try{var U=Je("break");return _e(Z,"each",[],function(o){var m=z;return o==null&&(o=z),v(o["$empty?"]())||(Ie(m=st(o.$length(),o.$lstrip().$length()),0)&&(ee=z,U.$throw()),v(ee)&&v(qe(ee,m)))?z:ee=m})}catch(g){if(g===U)return g.$v;throw g}}(),Ie(B,0)?v(ee)&&_e(Z,"map!",[],function(g){return g==null&&(g=z),v(g["$empty?"]())?g:g.$slice(ee,g.$length())}):($e=We(" ",B),v(ee)?_e(Z,"map!",[],function(g){return g==null&&(g=z),v(g["$empty?"]())?g:Ge($e,g.$slice(ee,g.$length()))}):_e(Z,"map!",[],function(g){return g==null&&(g=z),v(g["$empty?"]())?g:Ge($e,g)}))),z},-2),G(Ne,"$uniform?",function(Z,B,q){return Z.$count(B)["$=="](q)}),G(Ne,"$sanitize_attribute_name",function(Z){return Z.$gsub(ue("InvalidAttributeNameCharsRx"),"").$downcase()})}(K[0],null,K)}($t[0],$t)},Opal.modules["asciidoctor/path_resolver"]=function(a){var ae=a.module,te=a.klass,V=a.const_set,_e=a.truthy,v=a.hash2,Y=a.def,Ue=a.eqeq,G=a.alias,Ie=a.rb_plus,C=a.to_ary,Oe=a.send,ze=a.not,Ge=a.neqeq,qe=a.rb_gt,je=a.gvars,dt=[],Ye=a.nil,st=a.$$$;return a.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(We,Je){var $t=ae(We,"Asciidoctor"),z=[$t].concat(Je);return function(et,E,tt){var lt=te(et,E,"PathResolver"),K=[lt].concat(tt),D=a.$r(K),He=lt.$$prototype;return He.file_separator=He._partition_path_web=He._partition_path_sys=He.working_dir=Ye,lt.$include(D("Logging")),V(K[0],"DOT","."),V(K[0],"DOT_DOT",".."),V(K[0],"DOT_SLASH","./"),V(K[0],"SLASH","/"),V(K[0],"BACKSLASH","\\"),V(K[0],"DOUBLE_SLASH","//"),V(K[0],"URI_CLASSLOADER","uri:classloader:"),V(K[0],"WindowsRootRx",/^(?:[a-zA-Z]:)?[\\\/]/),lt.$attr_accessor("file_separator"),lt.$attr_accessor("working_dir"),Y(lt,"$initialize",function(Ne,Te){var ue=this,ye=Ye,Z=Ye;return Ne==null&&(Ne=Ye),Te==null&&(Te=Ye),ue.file_separator=_e(ye=_e(Z=Ne)?Z:st(st("File"),"ALT_SEPARATOR"))?ye:st(st("File"),"SEPARATOR"),ue.working_dir=_e(Te)?_e(ue["$root?"](Te))?ue.$posixify(Te):st("File").$expand_path(Te):st("Dir").$pwd(),ue._partition_path_sys=v([],{}),ue._partition_path_web=v([],{})},-1),Y(lt,"$absolute_path?",function(Ne){var Te=this,ue=Ye,ye=Ye;return _e(ue=Ne["$start_with?"](D("SLASH")))?ue:_e(ye=Te.file_separator["$=="](D("BACKSLASH")))?D("WindowsRootRx")["$match?"](Ne):ye}),Ue(D("RUBY_ENGINE"),"opal")&&Ue(st("JAVASCRIPT_IO_MODULE"),"xmlhttprequest")?Y(lt,"$root?",function(Ne){var Te=this,ue=Ye;return _e(ue=Te["$absolute_path?"](Ne))?ue:Ne["$start_with?"]("file://","http://","https://")}):Ue(st("RUBY_ENGINE"),"jruby")?Y(lt,"$root?",function(Ne){var Te=this,ue=Ye;return _e(ue=Te["$absolute_path?"](Ne))?ue:Ne["$start_with?"](D("URI_CLASSLOADER"))}):G(lt,"root?","absolute_path?"),Y(lt,"$unc?",function(Ne){return Ne["$start_with?"](D("DOUBLE_SLASH"))}),Y(lt,"$web_root?",function(Ne){return Ne["$start_with?"](D("SLASH"))}),Y(lt,"$descends_from?",function(Ne,Te){var ue=Ye;return Ue(Te,Ne)?0:Ue(Te,D("SLASH"))?_e(ue=Ne["$start_with?"](D("SLASH")))?1:ue:_e(ue=Ne["$start_with?"](Ie(Te,D("SLASH"))))?Ie(Te.$length(),1):ue}),Y(lt,"$relative_path",function(Ne,Te){var ue=this,ye=Ye;if(_e(ue["$root?"](Ne))){if(_e(ye=ue["$descends_from?"](Ne,Te)))return Ne.$slice(ye,Ne.$length());try{return D("Pathname").$new(Ne).$relative_path_from(D("Pathname").$new(Te)).$to_s()}catch(Z){if(a.rescue(Z,[D("StandardError")]))try{return Ne}finally{a.pop_exception()}else throw Z}}else return Ne}),Y(lt,"$posixify",function(Ne){var Te=this;return _e(Ne)?Ue(Te.file_separator,D("BACKSLASH"))&&_e(Ne["$include?"](D("BACKSLASH")))?Ne.$tr(D("BACKSLASH"),D("SLASH")):Ne:""}),G(lt,"posixfy","posixify"),Y(lt,"$expand_path",function(Ne){var Te,ue,ye=this,Z=Ye,B=Ye,q=Ye;return ue=ye.$partition_path(Ne),Te=C(ue),Z=Te[0]==null?Ye:Te[0],B=Te[1]==null?Ye:Te[1],_e(Ne["$include?"](D("DOT_DOT")))?(q=[],Oe(Z,"each",[],function(ee){return ee==null&&(ee=Ye),Ue(ee,D("DOT_DOT"))?q.$pop():q["$<<"](ee)}),ye.$join_path(q,B)):ye.$join_path(Z,B)}),Y(lt,"$partition_path",function(Ne,Te){var ue,ye=this,Z=Ye,B=Ye,q=Ye,ie=Ye,ee=Ye;return Te==null&&(Te=Ye),_e(Z=(B=_e(Te)?ye._partition_path_web:ye._partition_path_sys)["$[]"](Ne))?Z:(q=ye.$posixify(Ne),_e(Te)?_e(ye["$web_root?"](q))?ie=D("SLASH"):_e(q["$start_with?"](D("DOT_SLASH")))&&(ie=D("DOT_SLASH")):_e(ye["$root?"](q))?_e(ye["$unc?"](q))?ie=D("DOUBLE_SLASH"):_e(q["$start_with?"](D("SLASH")))?ie=D("SLASH"):_e(q["$start_with?"](D("URI_CLASSLOADER")))?ie=q.$slice(0,D("URI_CLASSLOADER").$length()):ie=q.$slice(0,Ie(q.$index(D("SLASH")),1)):_e(q["$start_with?"](D("DOT_SLASH")))&&(ie=D("DOT_SLASH")),ee=(_e(ie)?q.$slice(ie.$length(),q.$length()):q).$split(D("SLASH")),ee.$delete(D("DOT")),ue=[Ne,[ee,ie]],Oe(B,"[]=",ue),ue[ue.length-1])},-2),Y(lt,"$join_path",function(Ne,Te){return Te==null&&(Te=Ye),_e(Te)?""+Te+Ne.$join(D("SLASH")):Ne.$join(D("SLASH"))},-2),Y(lt,"$system_path",function(Ne,Te,ue,ye){var Z,B,q=this,ie=Ye,ee=Ye,$e=Ye,U=Ye,g=Ye,o=Ye,m=Ye,T=Ye,k=Ye,y=Ye,L=Ye;if(Te==null&&(Te=Ye),ue==null&&(ue=Ye),ye==null&&(ye=v([],{})),_e(ue)&&(_e(q["$root?"](ue))||q.$raise(st("SecurityError"),"Jail is not an absolute path: "+ue),ue=q.$posixify(ue)),_e(Ne))if(_e(q["$root?"](Ne))){if(ie=q.$expand_path(Ne),_e(ue)&&ze(q["$descends_from?"](ie,ue))){if(_e(ye.$fetch("recover",!0)))return q.$logger().$warn(""+(_e(ee=ye["$[]"]("target_name"))?ee:"path")+" is outside of jail; recovering automatically"),B=q.$partition_path(ie),Z=C(B),$e=Z[0]==null?Ye:Z[0],B=q.$partition_path(ue),Z=C(B),U=Z[0]==null?Ye:Z[0],g=Z[1]==null?Ye:Z[1],q.$join_path(Ie(U,$e),g);q.$raise(st("SecurityError"),""+(_e(ee=ye["$[]"]("target_name"))?ee:"path")+" "+Ne+" is outside of jail: "+ue+" (disallowed in safe mode)")}return ie}else B=q.$partition_path(Ne),Z=C(B),$e=Z[0]==null?Ye:Z[0];else $e=[];if(_e($e["$empty?"]())){if(_e(Te["$nil_or_empty?"]()))return _e(ee=ue)?ee:q.working_dir;if(_e(q["$root?"](Te)))if(_e(ue))Te=q.$posixify(Te);else return q.$expand_path(Te);else B=q.$partition_path(Te),Z=C(B),$e=Z[0]==null?Ye:Z[0],Te=_e(ee=ue)?ee:q.working_dir}else _e(Te["$nil_or_empty?"]())?Te=_e(ee=ue)?ee:q.working_dir:_e(q["$root?"](Te))?_e(ue)&&(Te=q.$posixify(Te)):Te=""+(_e(ee=ue)?ee:q.working_dir).$chomp("/")+"/"+Te;return _e(ue)&&_e(o=q["$descends_from?"](Te,ue)["$!"]())&&Ue(q.file_separator,D("BACKSLASH"))?(B=q.$partition_path(Te),Z=C(B),m=Z[0]==null?Ye:Z[0],T=Z[1]==null?Ye:Z[1],B=q.$partition_path(ue),Z=C(B),U=Z[0]==null?Ye:Z[0],g=Z[1]==null?Ye:Z[1],Ge(T,g)&&(_e(ye.$fetch("recover",!0))?(q.$logger().$warn("start path for "+(_e(ee=ye["$[]"]("target_name"))?ee:"path")+" is outside of jail root; recovering automatically"),m=U,o=!1):q.$raise(st("SecurityError"),"start path for "+(_e(ee=ye["$[]"]("target_name"))?ee:"path")+" "+Te+" refers to location outside jail root: "+ue+" (disallowed in safe mode)"))):(B=q.$partition_path(Te),Z=C(B),m=Z[0]==null?Ye:Z[0],g=Z[1]==null?Ye:Z[1]),_e((k=Ie(m,$e))["$include?"](D("DOT_DOT")))&&(Z=[k,[]],y=Z[0],k=Z[1],_e(ue)?(_e(U)||(B=q.$partition_path(ue),Z=C(B),U=Z[0]==null?Ye:Z[0]),L=!1,Oe(y,"each",[],function j(de){var oe=j.$$s==null?this:j.$$s;return de==null&&(de=Ye),Ue(de,D("DOT_DOT"))?_e(qe(k.$size(),U.$size()))?k.$pop():_e(ye.$fetch("recover",!0))?_e(L)?Ye:(oe.$logger().$warn(""+(_e(ee=ye["$[]"]("target_name"))?ee:"path")+" has illegal reference to ancestor of jail; recovering automatically"),L=!0):oe.$raise(st("SecurityError"),""+(_e(ee=ye["$[]"]("target_name"))?ee:"path")+" "+Ne+" refers to location outside jail: "+ue+" (disallowed in safe mode)"):k["$<<"](de)},{$$s:q})):Oe(y,"each",[],function(de){return de==null&&(de=Ye),Ue(de,D("DOT_DOT"))?k.$pop():k["$<<"](de)})),_e(o)?(ie=q.$join_path(k,g),_e(q["$descends_from?"](ie,ue))?ie:_e(ye.$fetch("recover",!0))?(q.$logger().$warn(""+(_e(ee=ye["$[]"]("target_name"))?ee:"path")+" is outside of jail; recovering automatically"),_e(U)||(B=q.$partition_path(ue),Z=C(B),U=Z[0]==null?Ye:Z[0]),q.$join_path(Ie(U,$e),g)):q.$raise(st("SecurityError"),""+(_e(ee=ye["$[]"]("target_name"))?ee:"path")+" "+Ne+" is outside of jail: "+ue+" (disallowed in safe mode)")):q.$join_path(k,g)},-2),Y(lt,"$web_path",function(Ne,Te){var ue,ye,Z=this,B=Ye,q=Ye,ie=Ye,ee=Ye,$e=Ye;return Te==null&&(Te=Ye),Ne=Z.$posixify(Ne),Te=Z.$posixify(Te),_e(Te["$nil_or_empty?"]())||_e(Z["$web_root?"](Ne))||(ye=Z.$extract_uri_prefix(""+Te+(_e(Te["$end_with?"](D("SLASH")))?"":D("SLASH"))+Ne),ue=C(ye),Ne=ue[0]==null?Ye:ue[0],B=ue[1]==null?Ye:ue[1]),ye=Z.$partition_path(Ne,!0),ue=C(ye),q=ue[0]==null?Ye:ue[0],ie=ue[1]==null?Ye:ue[1],ee=[],Oe(q,"each",[],function(g){return g==null&&(g=Ye),Ue(g,D("DOT_DOT"))?_e(ee["$empty?"]())?_e(ie)&&Ge(ie,D("DOT_SLASH"))?Ye:ee["$<<"](g):Ue(ee["$[]"](-1),D("DOT_DOT"))?ee["$<<"](g):ee.$pop():ee["$<<"](g)}),_e(($e=Z.$join_path(ee,ie))["$include?"](" "))&&($e=$e.$gsub(" ","%20")),_e(B)?""+B+$e:$e},-2),lt.$private(),Y(lt,"$extract_uri_prefix",function(Ne){var Te;return _e(Ne["$include?"](":"))&&_e(D("UriSniffRx")["$=~"](Ne))?[Ne.$slice(((Te=je["~"])===Ye?Ye:Te["$[]"](0)).$length(),Ne.$length()),(Te=je["~"])===Ye?Ye:Te["$[]"](0)]:Ne})}(z[0],null,z)}(dt[0],dt)},Opal.modules["asciidoctor/reader"]=function(a){var ae=a.module,te=a.klass,V=a.def,_e=a.rb_plus,v=a.alias,Y=a.hash2,Ue=a.not,G=a.eqeqeq,Ie=a.to_ary,C=a.truthy,Oe=a.rb_gt,ze=a.send,Ge=a.rb_minus,qe=a.thrower,je=a.eqeq,dt=a.rb_times,Ye=a.neqeq,st=a.to_a,We=a.assign_ivar_val,Je=a.send2,$t=a.find_super,z=a.rb_ge,et=a.gvars,E=a.rb_lt,tt=a.hash,lt=[],K=a.nil,D=a.$$$;return a.add_stubs("include,attr_reader,+,line_info,attr_accessor,!,===,split,file,dir,dirname,path,basename,lineno,reverse,prepare_lines,empty?,nil_or_empty?,peek_line,[],>,slice,length,process_line,times,shift,read_line,<<,-,unshift_all,has_more_lines?,read_lines,join,unshift,unshift_line,unshift_lines,replace_next_line,start_with?,==,*,read_lines_until,size,clear,cursor,[]=,fetch,!=,cursor_at_mark,warn,logger,message_with_context,pop,push,respond_to?,reverse_each,new,tap,each,instance_variables,instance_variable_get,drop,instance_variable_set,class,object_id,inspect,private,prepare_source_array,prepare_source_string,chomp,valid_encoding?,to_s,raise,to_i,attributes,catalog,pop_include,parse,path=,dup,end_with?,keys,rindex,rootname,key?,attr,reverse!,>=,exceeds_max_depth?,nil?,include_processors?,extensions,extensions?,include_processors,map,skip_front_matter!,adjust_indentation!,include?,=~,preprocess_conditional_directive,preprocess_include_directive,downcase,error,none?,any?,all?,strip,send,resolve_expr_val,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,first,values,value?,create_include_cursor,delete_at,keep_if,read,uriish?,attr?,require_library,normalize_system_path,file?,relative_path,path_resolver,base_dir,to_f"),function(He,we){var Ne=ae(He,"Asciidoctor"),Te=[Ne].concat(we),ue=a.$r(Te);return function(ye,Z,B){var q=te(ye,Z,"Reader"),ie=[q].concat(B),ee=a.$r(ie),$e=q.$$prototype;return $e.file=$e.lines=$e.look_ahead=$e.unescape_next_line=$e.lineno=$e.process_lines=$e.dir=$e.path=$e.mark=$e.source_lines=$e.saved=K,q.$include(ee("Logging")),function(U,g){var o=te(U,g,"Cursor"),m=o.$$prototype;return m.lineno=m.path=K,o.$attr_reader("file","dir","path","lineno"),V(o,"$initialize",function(k,y,L,j){var de,oe=this;return y==null&&(y=K),L==null&&(L=K),j==null&&(j=1),de=[k,y,L,j],oe.file=de[0],oe.dir=de[1],oe.path=de[2],oe.lineno=de[3],de},-2),V(o,"$advance",function(k){var y=this;return y.lineno=_e(y.lineno,k)}),V(o,"$line_info",function(){var k=this;return""+k.path+": line "+k.lineno}),v(o,"to_s","line_info")}(ie[0],null),q.$attr_reader("file"),q.$attr_reader("dir"),q.$attr_reader("path"),q.$attr_reader("lineno"),q.$attr_reader("source_lines"),q.$attr_accessor("process_lines"),q.$attr_accessor("unterminated"),V(q,"$initialize",function(g,o,m){var T,k,y=this,L=K;return g==null&&(g=K),o==null&&(o=K),m==null&&(m=Y([],{})),Ue(o)?(y.file=K,y.dir=".",y.path="<stdin>",y.lineno=1):G(D("String"),o)?(y.file=o,k=D("File").$split(y.file),T=Ie(k),y.dir=T[0]==null?K:T[0],y.path=T[1]==null?K:T[1],y.lineno=1):(C(y.file=o.$file())?(y.dir=C(L=o.$dir())?L:D("File").$dirname(y.file),y.path=C(L=o.$path())?L:D("File").$basename(y.file)):(y.dir=C(L=o.$dir())?L:".",y.path=C(L=o.$path())?L:"<stdin>"),y.lineno=C(L=o.$lineno())?L:1),y.lines=(y.source_lines=y.$prepare_lines(g,m)).$reverse(),y.mark=K,y.look_ahead=0,y.process_lines=!0,y.unescape_next_line=!1,y.unterminated=K,y.saved=K},-1),V(q,"$has_more_lines?",function(){var g=this;return C(g.lines["$empty?"]())?(g.look_ahead=0,!1):!0}),V(q,"$empty?",function(){var g=this;return C(g.lines["$empty?"]())?(g.look_ahead=0,!0):!1}),v(q,"eof?","empty?"),V(q,"$next_line_empty?",function(){var g=this;return g.$peek_line()["$nil_or_empty?"]()}),V(q,"$peek_line",function(g){var o=this,m=K,T=K;for(g==null&&(g=!1);C(!0);){if(m=o.lines["$[]"](-1),C(g)||C(Oe(o.look_ahead,0)))return C(o.unescape_next_line)?m.$slice(1,m.$length()):m;if(C(m)){if(C(T=o.$process_line(m)))return T}else return o.look_ahead=0,K}},-1),V(q,"$peek_lines",function(g,o){var m=this,T=K,k=K,y=K;return g==null&&(g=K),o==null&&(o=!1),T=m.look_ahead,k=[],function(){try{var L=qe("break");return ze(C(y=g)?y:ee("MAX_INT"),"times",[],function j(){var de=j.$$s==null?this:j.$$s,oe=K;if(de.lineno==null&&(de.lineno=K),C(oe=C(o)?de.$shift():de.$read_line()))return k["$<<"](oe);C(o)&&(de.lineno=Ge(de.lineno,1)),L.$throw()},{$$s:m})}catch(j){if(j===L)return j.$v;throw j}}(),C(k["$empty?"]())||(m.$unshift_all(k),C(o)&&(m.look_ahead=T)),k},-1),V(q,"$read_line",function(){var g=this;return C(Oe(g.look_ahead,0))||C(g["$has_more_lines?"]())?g.$shift():K}),V(q,"$read_lines",function(){var g=this,o=K;for(o=[];C(g["$has_more_lines?"]());)o["$<<"](g.$shift());return o}),v(q,"readlines","read_lines"),V(q,"$read",function(){var g=this;return g.$read_lines().$join(ee("LF"))}),V(q,"$advance",function(){var g=this;return!!C(g.$shift())}),V(q,"$unshift_line",function(g){var o=this;return o.$unshift(g),K}),v(q,"restore_line","unshift_line"),V(q,"$unshift_lines",function(g){var o=this;return o.$unshift_all(g)}),v(q,"restore_lines","unshift_lines"),V(q,"$replace_next_line",function(g){var o=this;return o.$shift(),o.$unshift(g),!0}),v(q,"replace_line","replace_next_line"),V(q,"$skip_blank_lines",function(){var g=this,o=K,m=K;if(C(g["$empty?"]()))return K;for(o=0;C(m=g.$peek_line());)if(C(m["$empty?"]()))g.$shift(),o=_e(o,1);else return o}),V(q,"$skip_comment_lines",function(){var g=this,o=K,m=K,T=K;if(C(g["$empty?"]()))return K;for(;C(C(o=m=g.$peek_line())?m["$empty?"]()["$!"]():o)&&C(m["$start_with?"]("//"));)if(C(m["$start_with?"]("///")))if(C(Oe(T=m.$length(),3))&&je(m,dt("/",T)))g.$read_lines_until(Y(["terminator","skip_first_line","read_last_line","skip_processing","context"],{terminator:m,skip_first_line:!0,read_last_line:!0,skip_processing:!0,context:"comment"}));else break;else g.$shift();return K}),V(q,"$skip_line_comments",function(){var g=this,o=K,m=K,T=K;if(C(g["$empty?"]()))return[];for(o=[];C(C(m=T=g.$peek_line())?T["$empty?"]()["$!"]():m)&&C(T["$start_with?"]("//"));)o["$<<"](g.$shift());return o}),V(q,"$terminate",function(){var g=this;return g.lineno=_e(g.lineno,g.lines.$size()),g.lines.$clear(),g.look_ahead=0,K}),V(q,"$read_lines_until",function U(g){var o,m=U.$$p||K,T=this,k=K,y=K,L=K,j=K,de=K,oe=K,ke=K,Be=K,Xe=K,it=K,ht=K,at=K,mt=K,yt=K,xt=K,vt=K;for(U.$$p=null,g==null&&(g=Y([],{})),k=[],C(T.process_lines)&&C(g["$[]"]("skip_processing"))&&(T.process_lines=!1,y=!0),C(L=g["$[]"]("terminator"))?(j=C(de=g["$[]"]("cursor"))?de:T.$cursor(),oe=!1,ke=!1):(oe=g["$[]"]("break_on_blank_lines"),ke=g["$[]"]("break_on_list_continuation")),Be=g["$[]"]("skip_line_comments"),Xe=it=K,C(g["$[]"]("skip_first_line"))&&T.$shift();C(ht=T.$read_line());){if(C(C(L)?ht["$=="](L):C(de=C(at=C(mt=oe)?ht["$empty?"]():mt)?at:C(mt=C(yt=C(xt=ke)?Xe:xt)?ht["$=="](ee("LIST_CONTINUATION")):yt)?(o=["preserve_last_line",!0],ze(g,"[]=",o),o[o.length-1]):mt)?de:C(at=m!==K)?a.yield1(m,ht):at)){C(g["$[]"]("read_last_line"))&&k["$<<"](ht),C(g["$[]"]("preserve_last_line"))&&(T.$unshift(ht),it=!0);break}C(Be)&&C(ht["$start_with?"]("//"))&&Ue(ht["$start_with?"]("///"))||(k["$<<"](ht),Xe=!0)}return C(y)&&(T.process_lines=!0,C(it)&&Ue(L)&&(T.look_ahead=Ge(T.look_ahead,1))),C(L)&&Ye(L,ht)&&C(vt=g.$fetch("context",L))&&(je(j,"at_mark")&&(j=T.$cursor_at_mark()),T.$logger().$warn(T.$message_with_context("unterminated "+vt+" block",Y(["source_location"],{source_location:j}))),T.unterminated=!0),k},-1),V(q,"$shift",function(){var g=this;return g.lineno=_e(g.lineno,1),je(g.look_ahead,0)||(g.look_ahead=Ge(g.look_ahead,1)),g.lines.$pop()}),V(q,"$unshift",function(g){var o=this;return o.lineno=Ge(o.lineno,1),o.look_ahead=_e(o.look_ahead,1),o.lines.$push(g),K}),je(D("RUBY_ENGINE"),"jruby")?V(q,"$unshift_all",function(g){var o=this;return o.lineno=Ge(o.lineno,g.$size()),o.look_ahead=_e(o.look_ahead,g.$size()),C(g["$respond_to?"]("reverse"))?ze(o.lines,"push",st(g.$reverse())):ze(g,"reverse_each",[],function m(T){var k=m.$$s==null?this:m.$$s;return k.lines==null&&(k.lines=K),T==null&&(T=K),k.lines.$push(T)},{$$s:o}),K}):V(q,"$unshift_all",function(g){var o=this;return o.lineno=Ge(o.lineno,g.$size()),o.look_ahead=_e(o.look_ahead,g.$size()),ze(o.lines,"push",st(g.$reverse())),K}),V(q,"$cursor",function(){var g=this;return ee("Cursor").$new(g.file,g.dir,g.path,g.lineno)}),V(q,"$cursor_at_line",function(g){var o=this;return ee("Cursor").$new(o.file,o.dir,o.path,g)}),V(q,"$cursor_at_mark",function(){var g=this;return C(g.mark)?ze(ee("Cursor"),"new",st(g.mark)):g.$cursor()}),V(q,"$cursor_before_mark",function(){var g,o,m=this,T=K,k=K,y=K,L=K;return C(m.mark)?(o=m.mark,g=Ie(o),T=g[0]==null?K:g[0],k=g[1]==null?K:g[1],y=g[2]==null?K:g[2],L=g[3]==null?K:g[3],ee("Cursor").$new(T,k,y,Ge(L,1))):ee("Cursor").$new(m.file,m.dir,m.path,Ge(m.lineno,1))}),V(q,"$cursor_at_prev_line",function(){var g=this;return ee("Cursor").$new(g.file,g.dir,g.path,Ge(g.lineno,1))}),V(q,"$mark",function(){var g=this;return g.mark=[g.file,g.dir,g.path,g.lineno]}),V(q,"$line_info",function(){var g=this;return""+g.path+": line "+g.lineno}),V(q,"$lines",function(){var g=this;return g.lines.$reverse()}),V(q,"$string",function(){var g=this;return g.lines.$reverse().$join(ee("LF"))}),V(q,"$source",function(){var g=this;return g.source_lines.$join(ee("LF"))}),V(q,"$save",function(){var g=this;return g.saved=ze(Y([],{}),"tap",[],function o(m){var T=o.$$s==null?this:o.$$s;return m==null&&(m=K),ze(T.$instance_variables(),"each",[],function k(y){var L,j=k.$$s==null?this:k.$$s,de=K;return y==null&&(y=K),je(y,"@saved")||je(y,"@source_lines")?K:(L=[y,G(D("Array"),de=j.$instance_variable_get(y))?de.$drop(0):de],ze(m,"[]=",L),L[L.length-1])},{$$s:T})},{$$s:g}),K}),V(q,"$restore_save",function(){var g=this;return C(g.saved)?(ze(g.saved,"each",[],function o(m,T){var k=o.$$s==null?this:o.$$s;return m==null&&(m=K),T==null&&(T=K),k.$instance_variable_set(m,T)},{$$s:g}),g.saved=K):K}),V(q,"$discard_save",We("saved",K)),V(q,"$to_s",function(){var g=this;return"#<"+g.$class()+"@"+g.$object_id()+" {path: "+g.path.$inspect()+", line: "+g.lineno+"}>"}),q.$private(),V(q,"$prepare_lines",function(g,o){var m=this,T=K;o==null&&(o=Y([],{}));try{return C(T=o["$[]"]("normalize"))?G(D("Array"),g)?ee("Helpers").$prepare_source_array(g,T["$!="]("chomp")):ee("Helpers").$prepare_source_string(g,T["$!="]("chomp")):G(D("Array"),g)?g.$drop(0):C(g)?g.$chomp().$split(ee("LF"),-1):[]}catch(k){if(a.rescue(k,[ee("StandardError")]))try{return C((G(D("Array"),g)?g.$join():g.$to_s())["$valid_encoding?"]())?m.$raise():m.$raise(D("ArgumentError"),"source is either binary or contains invalid Unicode data")}finally{a.pop_exception()}else throw k}},-2),V(q,"$process_line",function(g){var o=this;return C(o.process_lines)&&(o.look_ahead=_e(o.look_ahead,1)),g})}(Te[0],null,Te),function(ye,Z,B){var q=te(ye,Z,"PreprocessorReader"),ie=[q].concat(B),ee=a.$r(ie),$e=q.$$prototype;return $e.include_stack=$e.lines=$e.file=$e.dir=$e.path=$e.lineno=$e.maxdepth=$e.process_lines=$e.includes=$e.document=$e.unescape_next_line=$e.include_processor_extensions=$e.look_ahead=$e.skipping=$e.conditional_stack=K,q.$attr_reader("include_stack"),V(q,"$initialize",function U(g,o,m,T){U.$$p;var k=this,y=K,L=K;return U.$$p=null,o==null&&(o=K),m==null&&(m=K),T==null&&(T=Y([],{})),k.document=g,Je(k,$t(k,"initialize",U,!1,!0),"initialize",[o,m,T],null),C(Oe(y=(C(L=g.$attributes()["$[]"]("max-include-depth"))?L:64).$to_i(),0))?k.maxdepth=Y(["abs","curr","rel"],{abs:y,curr:y,rel:y}):k.maxdepth=K,k.include_stack=[],k.includes=g.$catalog()["$[]"]("includes"),k.skipping=!1,k.conditional_stack=[],k.include_processor_extensions=K},-2),V(q,"$has_more_lines?",function(){var g=this;return!!C(g.$peek_line())}),V(q,"$empty?",function(){var g=this;return!C(g.$peek_line())}),v(q,"eof?","empty?"),V(q,"$peek_line",function U(g){var o=U.$$p||K,m=this,T=K;return U.$$p=null,g==null&&(g=!1),C(T=Je(m,$t(m,"peek_line",U,!1,!0),"peek_line",[g],o))?T:C(m.include_stack["$empty?"]())?K:(m.$pop_include(),m.$peek_line(g))},-1),V(q,"$push_include",function(g,o,m,T,k){var y=this,L=K,j=K,de=K,oe=K,ke=K,Be=K;return o==null&&(o=K),m==null&&(m=K),T==null&&(T=1),k==null&&(k=Y([],{})),y.include_stack["$<<"]([y.lines,y.file,y.dir,y.path,y.lineno,y.maxdepth,y.process_lines]),C(y.file=o)?(G(D("String"),o)?y.dir=D("File").$dirname(o):C(ee("RUBY_ENGINE_OPAL"))?y.dir=D("URI").$parse(D("File").$dirname(o=o.$to_s())):((y.dir=o.$dup())["$path="](je(L=D("File").$dirname(o.$path()),"/")?"":L),o=o.$to_s()),y.path=m=C(j=m)?j:D("File").$basename(o),C(y.process_lines=ze(o,"end_with?",st(ee("ASCIIDOC_EXTENSIONS").$keys())))&&(C(j=y.includes["$[]"](m.$slice(0,m.$rindex("."))))||y.includes["$[]="](m.$slice(0,m.$rindex(".")),C(k["$[]"]("partial-option"))?K:!0))):(y.dir=".",y.process_lines=!0,C(y.path=m)?C(j=y.includes["$[]"](ee("Helpers").$rootname(m)))||y.includes["$[]="](ee("Helpers").$rootname(m),C(k["$[]"]("partial-option"))?K:!0):y.path="<stdin>"),y.lineno=T,C(y.maxdepth)&&C(k["$key?"]("depth"))&&(C(Oe(de=k["$[]"]("depth").$to_i(),0))?(C(Oe(oe=_e(y.include_stack.$size(),de),ke=y.maxdepth["$[]"]("abs")))&&(oe=de=ke),y.maxdepth=Y(["abs","curr","rel"],{abs:ke,curr:oe,rel:de})):y.maxdepth=Y(["abs","curr","rel"],{abs:y.maxdepth["$[]"]("abs"),curr:y.include_stack.$size(),rel:0})),C((y.lines=y.$prepare_lines(g,Y(["normalize","condense","indent"],{normalize:C(j=y.process_lines)?j:"chomp",condense:!1,indent:k["$[]"]("indent")})))["$empty?"]())?y.$pop_include():(C(k["$key?"]("leveloffset"))?(y.lines=_e(_e([C(Be=y.document.$attr("leveloffset"))?":leveloffset: "+Be:":leveloffset!:",""],y.lines.$reverse()),["",":leveloffset: "+k["$[]"]("leveloffset")]),y.lineno=Ge(y.lineno,2)):y.lines["$reverse!"](),y.look_ahead=0),y},-2),V(q,"$include_depth",function(){var g=this;return g.include_stack.$size()}),V(q,"$exceeds_max_depth?",function(){var g=this,o=K,m=K;return C(o=C(m=g.maxdepth)?z(g.include_stack.$size(),g.maxdepth["$[]"]("curr")):m)?g.maxdepth["$[]"]("rel"):o}),v(q,"exceeded_max_depth?","exceeds_max_depth?"),V(q,"$shift",function U(){var g=U.$$p||K,o=this,m=K;return U.$$p=null,C(o.unescape_next_line)?(o.unescape_next_line=!1,(m=Je(o,$t(o,"shift",U,!1,!0),"shift",[],g)).$slice(1,m.$length())):Je(o,$t(o,"shift",U,!1,!0),"shift",[],g)}),V(q,"$include_processors?",function(){var g=this;return C(g.include_processor_extensions["$nil?"]())?C(g.document["$extensions?"]())&&C(g.document.$extensions()["$include_processors?"]())?(g.include_processor_extensions=g.document.$extensions().$include_processors())["$!"]()["$!"]():g.include_processor_extensions=!1:g.include_processor_extensions["$!="](!1)}),V(q,"$create_include_cursor",function(g,o,m){var T=K;return G(D("String"),g)?T=D("File").$dirname(g):C(ee("RUBY_ENGINE_OPAL"))?T=D("File").$dirname(g=g.$to_s()):(T=je(T=D("File").$dirname(g.$path()),"")?"/":T,g=g.$to_s()),ee("Cursor").$new(g,T,o,m)}),V(q,"$to_s",function(){var g=this;return"#<"+g.$class()+"@"+g.$object_id()+" {path: "+g.path.$inspect()+", line: "+g.lineno+", include depth: "+g.include_stack.$size()+", include stack: ["+ze(g.include_stack,"map",[],function(m){return m==null&&(m=K),m.$to_s()}).$join(", ")+"]}>"}),q.$private(),V(q,"$prepare_lines",function U(g,o){var m=U.$$p||K,T=this,k=K,y=K,L=K,j=K;if(U.$$p=null,o==null&&(o=Y([],{})),k=Je(T,$t(T,"prepare_lines",U,!1,!0),"prepare_lines",[g,o],m),C(T.document)&&C(T.document.$attributes()["$[]"]("skip-front-matter"))&&C(y=T["$skip_front_matter!"](k))&&T.document.$attributes()["$[]="]("front-matter",y.$join(ee("LF"))),C(o.$fetch("condense",!0)))for(;C(C(L=j=k["$[]"](-1))?j["$empty?"]():L);)k.$pop();return C(o["$[]"]("indent"))&&ee("Parser")["$adjust_indentation!"](k,o["$[]"]("indent").$to_i(),T.document.$attr("tabsize").$to_i()),k},-2),V(q,"$process_line",function(g){var o,m=this;return C(m.process_lines)?C(g["$empty?"]())?(m.look_ahead=_e(m.look_ahead,1),g):C(g["$end_with?"]("]"))&&Ue(g["$start_with?"]("["))&&C(g["$include?"]("::"))?C(g["$include?"]("if"))&&C(ee("ConditionalDirectiveRx")["$=~"](g))?je((o=et["~"])===K?K:o["$[]"](1),"\\")?(m.unescape_next_line=!0,m.look_ahead=_e(m.look_ahead,1),g.$slice(1,g.$length())):C(m.$preprocess_conditional_directive((o=et["~"])===K?K:o["$[]"](2),(o=et["~"])===K?K:o["$[]"](3),(o=et["~"])===K?K:o["$[]"](4),(o=et["~"])===K?K:o["$[]"](5)))?(m.$shift(),K):(m.look_ahead=_e(m.look_ahead,1),g):C(m.skipping)?(m.$shift(),K):C(g["$start_with?"]("inc","\\inc"))&&C(ee("IncludeDirectiveRx")["$=~"](g))?je((o=et["~"])===K?K:o["$[]"](1),"\\")?(m.unescape_next_line=!0,m.look_ahead=_e(m.look_ahead,1),g.$slice(1,g.$length())):C(m.$preprocess_include_directive((o=et["~"])===K?K:o["$[]"](2),(o=et["~"])===K?K:o["$[]"](3)))?K:(m.look_ahead=_e(m.look_ahead,1),g):(m.look_ahead=_e(m.look_ahead,1),g):C(m.skipping)?(m.$shift(),K):(m.look_ahead=_e(m.look_ahead,1),g):g}),V(q,"$preprocess_conditional_directive",function(g,o,m,T){var k,y=this,L=K,j=K,de=K,oe=K,ke=K,Be=K;if(C(L=o["$empty?"]())||(o=o.$downcase()),je(g,"endif"))return C(T)?y.$logger().$error(y.$message_with_context("malformed preprocessor directive - text not permitted: endif::"+o+"["+T+"]",Y(["source_location"],{source_location:y.$cursor()}))):C(y.conditional_stack["$empty?"]())?y.$logger().$error(y.$message_with_context("unmatched preprocessor directive: endif::"+o+"[]",Y(["source_location"],{source_location:y.$cursor()}))):C(L)||je(o,(j=y.conditional_stack["$[]"](-1))["$[]"]("target"))?(y.conditional_stack.$pop(),y.skipping=C(y.conditional_stack["$empty?"]())?!1:y.conditional_stack["$[]"](-1)["$[]"]("skipping")):y.$logger().$error(y.$message_with_context("mismatched preprocessor directive: endif::"+o+"[], expected endif::"+j["$[]"]("target")+"[]",Y(["source_location"],{source_location:y.$cursor()}))),!0;if(C(y.skipping))de=!1;else switch(g){case"ifdef":if(C(L))return y.$logger().$error(y.$message_with_context("malformed preprocessor directive - missing target: ifdef::["+T+"]",Y(["source_location"],{source_location:y.$cursor()}))),!0;switch(m){case",":de=ze(o.$split(",",-1),"none?",[],function Xe(it){var ht=Xe.$$s==null?this:Xe.$$s;return ht.document==null&&(ht.document=K),it==null&&(it=K),ht.document.$attributes()["$key?"](it)},{$$s:y});break;case"+":de=ze(o.$split("+",-1),"any?",[],function Xe(it){var ht=Xe.$$s==null?this:Xe.$$s;return ht.document==null&&(ht.document=K),it==null&&(it=K),ht.document.$attributes()["$key?"](it)["$!"]()},{$$s:y});break;default:de=y.document.$attributes()["$key?"](o)["$!"]()}break;case"ifndef":if(C(L))return y.$logger().$error(y.$message_with_context("malformed preprocessor directive - missing target: ifndef::["+T+"]",Y(["source_location"],{source_location:y.$cursor()}))),!0;switch(m){case",":de=ze(o.$split(",",-1),"any?",[],function Xe(it){var ht=Xe.$$s==null?this:Xe.$$s;return ht.document==null&&(ht.document=K),it==null&&(it=K),ht.document.$attributes()["$key?"](it)},{$$s:y});break;case"+":de=ze(o.$split("+",-1),"all?",[],function Xe(it){var ht=Xe.$$s==null?this:Xe.$$s;return ht.document==null&&(ht.document=K),it==null&&(it=K),ht.document.$attributes()["$key?"](it)},{$$s:y});break;default:de=y.document.$attributes()["$key?"](o)}break;case"ifeval":if(C(L))if(C(T)&&C(ee("EvalExpressionRx")["$=~"](T.$strip())))oe=(k=et["~"])===K?K:k["$[]"](1),ke=(k=et["~"])===K?K:k["$[]"](2),Be=(k=et["~"])===K?K:k["$[]"](3),de=function(){try{return!C(y.$resolve_expr_val(oe).$send(ke,y.$resolve_expr_val(Be)))}catch(Xe){if(a.rescue(Xe,[ee("StandardError")]))try{return!0}finally{a.pop_exception()}else throw Xe}}();else return y.$logger().$error(y.$message_with_context("malformed preprocessor directive - "+(C(T)?"invalid expression":"missing expression")+": ifeval::["+T+"]",Y(["source_location"],{source_location:y.$cursor()}))),!0;else return y.$logger().$error(y.$message_with_context("malformed preprocessor directive - target not permitted: ifeval::"+o+"["+T+"]",Y(["source_location"],{source_location:y.$cursor()}))),!0;break}return je(g,"ifeval")||Ue(T)?(C(de)&&(y.skipping=!0),y.conditional_stack["$<<"](Y(["target","skip","skipping"],{target:o,skip:de,skipping:y.skipping}))):C(y.skipping)||C(de)||(y.$replace_next_line(T.$rstrip()),y.$unshift(""),C(T["$start_with?"]("include::"))&&(y.look_ahead=Ge(y.look_ahead,1))),!0}),V(q,"$preprocess_include_directive",function(g,o){var m,T,k=this,y=K,L=K,j=K,de=K,oe=K,ke=K,Be=K,Xe=K,it=K,ht=K,at=K,mt=K,yt=K,xt=K,vt=K,Tt=K,St=K,Yt=K,Bt=K,er=K,Kt=K,jt=K,Wt=K,Xt=K,nr=K,Yn=K,en=K;if(y=k.document,C((L=g)["$include?"](ee("ATTR_REF_HEAD")))&&C((L=y.$sub_attributes(g,Y(["attribute_missing"],{attribute_missing:je(j=C(de=y.$attributes()["$[]"]("attribute-missing"))?de:ee("Compliance").$attribute_missing(),"warn")?"drop-line":j})))["$empty?"]()))return je(j,"drop-line")&&C(y.$sub_attributes(_e(g," "),Y(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?(ze(k.$logger(),"info",[],function Jt(){var Ut=Jt.$$s==null?this:Jt.$$s;return Ut.$message_with_context("include dropped due to missing attribute: include::"+g+"["+o+"]",Y(["source_location"],{source_location:Ut.$cursor()}))},{$$s:k}),k.$shift(),!0):C(y.$parse_attributes(o,[],Y(["sub_input"],{sub_input:!0}))["$[]"]("optional-option"))?(ze(k.$logger(),"info",[],function Jt(){var Ut=Jt.$$s==null?this:Jt.$$s;return Ut.$message_with_context("optional include dropped "+(je(j,"warn")&&C(y.$sub_attributes(_e(g," "),Y(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?"due to missing attribute":"because resolved target is blank")+": include::"+g+"["+o+"]",Y(["source_location"],{source_location:Ut.$cursor()}))},{$$s:k}),k.$shift(),!0):(k.$logger().$warn(k.$message_with_context("include dropped "+(je(j,"warn")&&C(y.$sub_attributes(_e(g," "),Y(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?"due to missing attribute":"because resolved target is blank")+": include::"+g+"["+o+"]",Y(["source_location"],{source_location:k.$cursor()}))),k.$replace_next_line("Unresolved directive in "+k.path+" - include::"+g+"["+o+"]"));if(C(k["$include_processors?"]())&&C(oe=ze(k.include_processor_extensions,"find",[],function(Ut){return Ut==null&&(Ut=K),Ut.$instance()["$handles?"](L)})))return k.$shift(),oe.$process_method()["$[]"](y,k,L,y.$parse_attributes(o,[],Y(["sub_input"],{sub_input:!0}))),!0;if(C(z(y.$safe(),D(ee("SafeMode"),"SECURE"))))return k.$replace_next_line("link:"+L+"[role=include]");if(C(k.maxdepth)){if(C(z(k.include_stack.$size(),k.maxdepth["$[]"]("curr"))))return k.$logger().$error(k.$message_with_context("maximum include depth of "+k.maxdepth["$[]"]("rel")+" exceeded",Y(["source_location"],{source_location:k.$cursor()}))),K;switch(ke=y.$parse_attributes(o,[],Y(["sub_input"],{sub_input:!0})),T=k.$resolve_include_path(L,o,ke),m=Ie(T),Be=m[0]==null?K:m[0],Xe=m[1]==null?K:m[1],it=m[2]==null?K:m[2],Xe){case"file":ht=D("File").$method("open"),at=ee("FILE_READ_MODE");break;case"uri":ht=D("OpenURI").$method("open_uri"),at=ee("URI_READ_MODE");break;default:return Be}if(C(ee("RUBY_ENGINE_OPAL"))||C(mt=ke["$[]"]("encoding"))&&C(function(){try{return D("Encoding").$find(mt)}catch(Jt){if(a.rescue(Jt,[ee("StandardError")]))try{return K}finally{a.pop_exception()}else throw Jt}}())&&((yt=at.$split(":"))["$[]="](1,mt),at=yt.$join(":")),xt=vt=K,C(o)&&(C(ke["$key?"]("lines"))?(xt=[],ze(k.$split_delimited_value(ke["$[]"]("lines")),"each",[],function(Ut){var Zt,Er,Ht=K,kr=K;return Ut==null&&(Ut=K),C(Ut["$include?"](".."))?(Er=Ut.$partition(".."),Zt=Ie(Er),Ht=Zt[0]==null?K:Zt[0],Zt[1]==null||Zt[1],kr=Zt[2]==null?K:Zt[2],xt=_e(xt,C(kr["$empty?"]())||C(E(kr=kr.$to_i(),0))?[Ht.$to_i(),D(D("Float"),"INFINITY")]:a.Range.$new(Ht.$to_i(),kr,!1).$to_a())):xt["$<<"](Ut.$to_i())}),xt=C(xt["$empty?"]())?K:xt.$sort().$uniq()):C(ke["$key?"]("tag"))?C((Tt=ke["$[]"]("tag"))["$empty?"]())||je(Tt,"!")||(vt=C(Tt["$start_with?"]("!"))?tt(Tt.$slice(1,Tt.$length()),!1):tt(Tt,!0)):C(ke["$key?"]("tags"))&&(vt=Y([],{}),ze(k.$split_delimited_value(ke["$[]"]("tags")),"each",[],function(Ut){var Zt;return Ut==null&&(Ut=K),C(Ut["$empty?"]())||je(Ut,"!")?K:C(Ut["$start_with?"]("!"))?(Zt=[Ut.$slice(1,Ut.$length()),!1],ze(vt,"[]=",Zt),Zt[Zt.length-1]):(Zt=[Ut,!0],ze(vt,"[]=",Zt),Zt[Zt.length-1])}),C(vt["$empty?"]())&&(vt=K))),C(xt)){m=[[],K,0],St=m[0],Yt=m[1],Bt=m[2];try{ze(ht,"call",[Be,at],function(Ut){var Zt=K;return Ut==null&&(Ut=K),Zt=K,function(){try{var Er=qe("break");return ze(Ut,"each_line",[],function(kr){var dn=K;if(kr==null&&(kr=K),Bt=_e(Bt,1),C(Zt)||G(D("Float"),dn=xt["$[]"](0))&&C(Zt=dn["$infinite?"]()))return Yt=C(de=Yt)?de:Bt,St["$<<"](kr);if(je(dn,Bt)&&(Yt=C(de=Yt)?de:Bt,St["$<<"](kr),xt.$shift()),C(xt["$empty?"]()))Er.$throw();else return K})}catch(Ht){if(Ht===Er)return Ht.$v;throw Ht}}()})}catch(Jt){if(a.rescue(Jt,[ee("StandardError")]))try{return k.$logger().$error(k.$message_with_context("include "+Xe+" not readable: "+Be,Y(["source_location"],{source_location:k.$cursor()}))),k.$replace_next_line("Unresolved directive in "+k.path+" - include::"+L+"["+o+"]")}finally{a.pop_exception()}else throw Jt}k.$shift(),C(Yt)&&(ke["$[]="]("partial-option",""),k.$push_include(St,Be,it,Yt,ke))}else if(C(vt)){m=[[],K,0,[],D("Set").$new(),K],St=m[0],Yt=m[1],Bt=m[2],er=m[3],Kt=m[4],jt=m[5],C(vt["$key?"]("**"))?(Wt=Xt=vt.$delete("**"),C(vt["$key?"]("*"))?nr=vt.$delete("*"):Ue(Wt)&&je(vt.$values().$first(),!1)&&(nr=!0)):C(vt["$key?"]("*"))?je(vt.$keys().$first(),"*")?Wt=Xt=(nr=vt.$delete("*"))["$!"]():(Wt=Xt=!1,nr=vt.$delete("*")):Wt=Xt=vt["$value?"](!0)["$!"]();try{ze(ht,"call",[Be,at],function Jt(Ut){var Zt,Er=Jt.$$s==null?this:Jt.$$s,Ht=K,kr=K;return Ut==null&&(Ut=K),Zt=["::","[]"],Ht=Zt[0],kr=Zt[1],ze(Ut,"each_line",[],function dn(Cr){var Sr,bn,Lr=dn.$$s==null?this:dn.$$s,Gr=K,Bs=K,Ps=K;return Cr==null&&(Cr=K),Bt=_e(Bt,1),C(Cr["$include?"](Ht))&&C(Cr["$include?"](kr))&&C(ee("TagDirectiveRx")["$=~"](Cr))?(Gr=(Sr=et["~"])===K?K:Sr["$[]"](2),C((Sr=et["~"])===K?K:Sr["$[]"](1))?je(Gr,jt)?(er.$pop(),bn=C(er["$empty?"]())?[K,Xt]:er["$[]"](-1),Sr=Ie(bn),jt=Sr[0]==null?K:Sr[0],Wt=Sr[1]==null?K:Sr[1],bn):C(vt["$key?"](Gr))?(Bs=Lr.$create_include_cursor(Be,L,Bt),C(Ps=ze(er,"rindex",[],function(js){return js==null&&(js=K),js["$=="](Gr)},{$$has_trailing_comma_in_args:!0}))?(je(Ps,0)?er.$shift():er.$delete_at(Ps),Lr.$logger().$warn(Lr.$message_with_context("mismatched end tag (expected '"+jt+"' but found '"+Gr+"') at line "+Bt+" of include "+Xe+": "+Be,Y(["source_location","include_location"],{source_location:Lr.$cursor(),include_location:Bs})))):Lr.$logger().$warn(Lr.$message_with_context("unexpected end tag '"+Gr+"' at line "+Bt+" of include "+Xe+": "+Be,Y(["source_location","include_location"],{source_location:Lr.$cursor(),include_location:Bs})))):K:C(vt["$key?"](Gr))?(C(Wt=vt["$[]"](Gr))&&Kt["$<<"](Gr),er["$<<"]([jt=Gr,Wt,Bt])):Ue(nr["$nil?"]())?(Wt=C(jt)&&Ue(Wt)?!1:nr,er["$<<"]([jt=Gr,Wt,Bt])):K):C(Wt)?(Yt=C(de=Yt)?de:Bt,St["$<<"](Cr)):K},{$$s:Er})},{$$s:k})}catch(Jt){if(a.rescue(Jt,[ee("StandardError")]))try{return k.$logger().$error(k.$message_with_context("include "+Xe+" not readable: "+Be,Y(["source_location"],{source_location:k.$cursor()}))),k.$replace_next_line("Unresolved directive in "+k.path+" - include::"+L+"["+o+"]")}finally{a.pop_exception()}else throw Jt}C(er["$empty?"]())||ze(er,"each",[],function Jt(Ut,Zt,Er){var Ht=Jt.$$s==null?this:Jt.$$s;return Ut==null&&(Ut=K),Er==null&&(Er=K),Ht.$logger().$warn(Ht.$message_with_context("detected unclosed tag '"+Ut+"' starting at line "+Er+" of include "+Xe+": "+Be,Y(["source_location","include_location"],{source_location:Ht.$cursor(),include_location:Ht.$create_include_cursor(Be,L,Er)})))},{$$s:k}),C((Yn=Ge(ze(vt,"keep_if",[],function(Ut,Zt){return Zt==null&&(Zt=K),Zt}).$keys(),Kt.$to_a()))["$empty?"]())||k.$logger().$warn(k.$message_with_context("tag"+(C(Oe(Yn.$size(),1))?"s":"")+" '"+Yn.$join(", ")+"' not found in include "+Xe+": "+Be,Y(["source_location"],{source_location:k.$cursor()}))),k.$shift(),C(Yt)&&(C(Xt)&&Ye(nr,!1)&&C(vt["$empty?"]())||ke["$[]="]("partial-option",""),k.$push_include(St,Be,it,Yt,ke))}else{en=K;try{en=ze(ht,"call",[Be,at],function(Ut){return Ut==null&&(Ut=K),Ut.$read()}),k.$shift()}catch(Jt){if(a.rescue(Jt,[ee("StandardError")]))try{return k.$logger().$error(k.$message_with_context("include "+Xe+" not readable: "+Be,Y(["source_location"],{source_location:k.$cursor()}))),k.$replace_next_line("Unresolved directive in "+k.path+" - include::"+L+"["+o+"]")}finally{a.pop_exception()}else throw Jt}k.$push_include(en,Be,it,1,ke)}return!0}else return K}),V(q,"$resolve_include_path",function(g,o,m){var T,k=this,y=K,L=K,j=K;return y=k.document,C(ee("Helpers")["$uriish?"](g))||C(G(D("String"),k.dir)?K:g=""+k.dir+"/"+g)?C(y["$attr?"]("allow-uri-read"))?(C(y["$attr?"]("cache-uri"))?C((T=D("::","OpenURI","skip_raise"))&&D(T,"Cache","skip_raise")?"constant":K)||ee("Helpers").$require_library("open-uri/cached","open-uri-cached"):Ue(ee("RUBY_ENGINE_OPAL"))&&D("OpenURI"),[D("URI").$parse(g),"uri",g]):k.$replace_next_line("link:"+g+"[role=include]"):(L=y.$normalize_system_path(g,k.dir,K,Y(["target_name"],{target_name:"include file"})),C(D("File")["$file?"](L))?(j=y.$path_resolver().$relative_path(L,y.$base_dir()),[L,"file",j]):C(m["$[]"]("optional-option"))?(ze(k.$logger(),"info",[],function de(){var oe=de.$$s==null?this:de.$$s;return oe.$message_with_context("optional include dropped because include file not found: "+L,Y(["source_location"],{source_location:oe.$cursor()}))},{$$s:k}),k.$shift(),!0):(k.$logger().$error(k.$message_with_context("include file not found: "+L,Y(["source_location"],{source_location:k.$cursor()}))),k.$replace_next_line("Unresolved directive in "+k.path+" - include::"+g+"["+o+"]")))}),V(q,"$pop_include",function(){var g,o,m=this;return C(m.include_stack["$empty?"]())||(o=m.include_stack.$pop(),g=Ie(o),m.lines=g[0]==null?K:g[0],m.file=g[1]==null?K:g[1],m.dir=g[2]==null?K:g[2],m.path=g[3]==null?K:g[3],m.lineno=g[4]==null?K:g[4],m.maxdepth=g[5]==null?K:g[5],m.process_lines=g[6]==null?K:g[6],m.look_ahead=0),K}),V(q,"$split_delimited_value",function(g){return C(g["$include?"](","))?g.$split(","):g.$split(";")}),V(q,"$skip_front_matter!",function(g,o){var m=this,T=K,k=K,y=K,L=K,j=K;if(o==null&&(o=!0),!je(T=g["$[]"](0),"---"))return K;for(k=g.$drop(0),g.$shift(),y=[],C(o)&&(m.lineno=_e(m.lineno,1));!C(C(L=j=g["$empty?"]())?L:g["$[]"](0)["$=="](T));)y["$<<"](g.$shift()),C(o)&&(m.lineno=_e(m.lineno,1));return C(j)?(ze(g,"unshift",st(k)),C(o)&&(m.lineno=Ge(m.lineno,k.$size())),K):(g.$shift(),C(o)&&(m.lineno=_e(m.lineno,1)),y)},-2),V(q,"$resolve_expr_val",function(g){var o=this,m=K;return C(g["$start_with?"]('"'))&&C(g["$end_with?"]('"'))||C(g["$start_with?"]("'"))&&C(g["$end_with?"]("'"))?(m=!0,g=g.$slice(1,Ge(g.$length(),1))):m=!1,C(g["$include?"](ee("ATTR_REF_HEAD")))&&(g=o.document.$sub_attributes(g,Y(["attribute_missing"],{attribute_missing:"drop"}))),C(m)?g:C(g["$empty?"]())?K:je(g,"true")?!0:je(g,"false")?!1:C(g.$rstrip()["$empty?"]())?" ":C(g["$include?"]("."))?g.$to_f():g.$to_i()})}(Te[0],ue("Reader"),Te)}(lt[0],lt)},Opal.modules["asciidoctor/section"]=function(a){var ae=a.module,te=a.klass,V=a.hash2,_e=a.send2,v=a.find_super,Y=a.eqeqeq,Ue=a.truthy,G=a.rb_plus,Ie=a.def,C=a.alias,Oe=a.rb_gt,ze=a.eqeq,Ge=a.not,qe=a.send,je=a.defs,dt=[],Ye=a.nil;return a.add_stubs("attr_accessor,attr_reader,===,+,level,special,title,generate_id,>,==,sectnum,!,empty?,reftext,sub_placeholder,sub_quotes,compat_mode,[],attributes,context,assign_numeral,class,object_id,inspect,size,[]=,chr,length,gsub,downcase,delete,tr_s,end_with?,chop,start_with?,slice,key?,catalog,unique_id_start_index"),function(st,We){var Je=ae(st,"Asciidoctor"),$t=[Je].concat(We),z=a.$r($t);return function(et,E,tt){var lt=te(et,E,"Section"),K=[lt].concat(tt),D=a.$r(K),He=lt.$$prototype;return He.document=He.next_section_index=He.parent=He.level=He.numeral=He.numbered=He.sectname=He.title=He.blocks=Ye,lt.$attr_accessor("index"),lt.$attr_accessor("sectname"),lt.$attr_accessor("special"),lt.$attr_accessor("numbered"),lt.$attr_reader("caption"),Ie(lt,"$initialize",function we(Ne,Te,ue,ye){var Z;we.$$p;var B=this,q=Ye;return we.$$p=null,Ne==null&&(Ne=Ye),Te==null&&(Te=Ye),ue==null&&(ue=!1),ye==null&&(ye=V([],{})),_e(B,v(B,"initialize",we,!1,!0),"initialize",[Ne,"section",ye],null),Y(D("Section"),Ne)?(Z=[Ue(q=Te)?q:G(Ne.$level(),1),Ne.$special()],B.level=Z[0],B.special=Z[1]):(Z=[Ue(q=Te)?q:1,!1],B.level=Z[0],B.special=Z[1]),B.numbered=ue,B.index=0},-1),C(lt,"name","title"),Ie(lt,"$generate_id",function(){var Ne=this;return D("Section").$generate_id(Ne.$title(),Ne.document)}),Ie(lt,"$sections?",function(){var Ne=this;return Oe(Ne.next_section_index,0)}),Ie(lt,"$sectnum",function(Ne,Te){var ue=this,ye=Ye;return Ne==null&&(Ne="."),Te==null&&(Te=Ye),Te=Ue(ye=Te)?ye:ze(Te,!1)?"":Ne,Ue(Oe(ue.level,1))&&Y(D("Section"),ue.parent)?""+ue.parent.$sectnum(Ne,Ne)+ue.numeral+Te:""+ue.numeral+Te},-1),Ie(lt,"$xreftext",function(Ne){var Te=this,ue=Ye,ye=Ye,Z=Ye,B=Ye;if(Ne==null&&(Ne=Ye),Ue(ue=Te.$reftext())&&Ge(ue["$empty?"]()))return ue;if(Ue(Ne))if(Ue(Te.numbered))switch(Ne){case"full":return ze(ye=Te.sectname,"chapter")||ze(ye,"appendix")?Z=Te.$sub_placeholder(Te.$sub_quotes("_%s_"),Te.$title()):Z=Te.$sub_placeholder(Te.$sub_quotes(Ue(Te.document.$compat_mode())?"``%s''":'"`%s`"'),Te.$title()),Ue(B=Te.document.$attributes()["$[]"](""+ye+"-refsig"))?""+B+" "+Te.$sectnum(".",",")+" "+Z:""+Te.$sectnum(".",",")+" "+Z;case"short":return Ue(B=Te.document.$attributes()["$[]"](""+Te.sectname+"-refsig"))?""+B+" "+Te.$sectnum(".",""):Te.$sectnum(".","");default:return ze(ye=Te.sectname,"chapter")||ze(ye,"appendix")?Te.$sub_placeholder(Te.$sub_quotes("_%s_"),Te.$title()):Te.$title()}else return ze(ye=Te.sectname,"chapter")||ze(ye,"appendix")?Te.$sub_placeholder(Te.$sub_quotes("_%s_"),Te.$title()):Te.$title();else return Te.$title()},-1),Ie(lt,"$<<",function we(Ne){var Te=we.$$p||Ye,ue=this;return we.$$p=null,ze(Ne.$context(),"section")&&ue.$assign_numeral(Ne),_e(ue,v(ue,"<<",we,!1,!0),"<<",[Ne],Te)}),Ie(lt,"$to_s",function we(){var Ne=we.$$p||Ye,Te=this,ue=Ye;return we.$$p=null,Ue(Te.title)?(ue=Ue(Te.numbered)?""+Te.$sectnum()+" "+Te.title:Te.title,"#<"+Te.$class()+"@"+Te.$object_id()+" {level: "+Te.level+", title: "+ue.$inspect()+", blocks: "+Te.blocks.$size()+"}>"):_e(Te,v(Te,"to_s",we,!1,!0),"to_s",[],Ne)}),je(lt,"$generate_id",function(Ne,Te){var ue,ye=Ye,Z=Ye,B=Ye,q=Ye,ie=Ye,ee=Ye,$e=Ye,U=Ye,g=Ye,o=Ye;if(ye=Te.$attributes(),Z=Ue(B=ye["$[]"]("idprefix"))?B:"_",Ue(q=ye["$[]"]("idseparator"))?(ze(q.$length(),1)||Ge(ie=q["$empty?"]())&&Ue(q=(ue=["idseparator",q.$chr()],qe(ye,"[]=",ue),ue[ue.length-1])))&&(ee=ze(q,"-")||ze(q,".")?" .-":" "+q+".-"):(ue=["_"," _.-"],q=ue[0],ee=ue[1]),$e=""+Z+Ne.$downcase().$gsub(D("InvalidSectionIdCharsRx"),""),Ue(ie)?$e=$e.$delete(" "):($e=$e.$tr_s(ee,q),Ue($e["$end_with?"](q))&&($e=$e.$chop()),Ue(Z["$empty?"]())&&Ue($e["$start_with?"](q))&&($e=$e.$slice(1,$e.$length()))),Ue(Te.$catalog()["$[]"]("refs")["$key?"]($e))){for(U=Te.$catalog()["$[]"]("refs"),g=D("Compliance").$unique_id_start_index();Ue(U["$[]"](o=""+$e+q+g));)g=G(g,1);return o}else return $e})}($t[0],z("AbstractBlock"),$t)}(dt[0],dt)},Opal.modules["asciidoctor/stylesheets"]=function(a){var ae=a.module,te=a.klass,V=a.const_set,_e=a.return_ivar,v=a.defs,Y=a.def,Ue=a.truthy,G=a.hash2,Ie=[],C=a.nil,Oe=a.$$$;return a.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(ze,Ge){var qe=ae(ze,"Asciidoctor"),je=[qe].concat(Ge);return function(dt,Ye,st){var We=te(dt,Ye,"Stylesheets"),Je=[We].concat(st),$t=a.$r(Je),z=We.$$prototype;return z.primary_stylesheet_data=C,V(Je[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),V(Je[0],"STYLESHEETS_DIR",Oe("File").$join($t("DATA_DIR"),"stylesheets")),We.__instance__=We.$new(),v(We,"$instance",_e("__instance__")),Y(We,"$primary_stylesheet_name",function(){return $t("DEFAULT_STYLESHEET_NAME")}),Y(We,"$primary_stylesheet_data",function(){var E=this,tt=C;return E.primary_stylesheet_data=Ue(tt=E.primary_stylesheet_data)?tt:Oe("File").$read(Oe("File").$join($t("STYLESHEETS_DIR"),"asciidoctor-default.css"),G(["mode"],{mode:$t("FILE_READ_MODE")})).$rstrip()}),Y(We,"$embed_primary_stylesheet",function(){var E=this;return`<style>
|
|
414
|
-
`+E.$primary_stylesheet_data()+`
|
|
415
|
-
</style>`}),Y(We,"$write_primary_stylesheet",function(E){var tt=this;return E==null&&(E="."),Oe("File").$write(Oe("File").$join(E,tt.$primary_stylesheet_name()),tt.$primary_stylesheet_data(),G(["mode"],{mode:$t("FILE_WRITE_MODE")}))},-1),Y(We,"$coderay_stylesheet_name",function(){return $t("SyntaxHighlighter").$for("coderay").$stylesheet_basename()}),Y(We,"$coderay_stylesheet_data",function(){return $t("SyntaxHighlighter").$for("coderay").$read_stylesheet()}),Y(We,"$embed_coderay_stylesheet",function(){var E=this;return`<style>
|
|
416
|
-
`+E.$coderay_stylesheet_data()+`
|
|
417
|
-
</style>`}),Y(We,"$write_coderay_stylesheet",function(E){var tt=this;return E==null&&(E="."),Oe("File").$write(Oe("File").$join(E,tt.$coderay_stylesheet_name()),tt.$coderay_stylesheet_data(),G(["mode"],{mode:$t("FILE_WRITE_MODE")}))},-1),Y(We,"$pygments_stylesheet_name",function(E){return E==null&&(E=C),$t("SyntaxHighlighter").$for("pygments").$stylesheet_basename(E)},-1),Y(We,"$pygments_stylesheet_data",function(E){return E==null&&(E=C),$t("SyntaxHighlighter").$for("pygments").$read_stylesheet(E)},-1),Y(We,"$embed_pygments_stylesheet",function(E){var tt=this;return E==null&&(E=C),`<style>
|
|
418
|
-
`+tt.$pygments_stylesheet_data(E)+`
|
|
419
|
-
</style>`},-1),Y(We,"$write_pygments_stylesheet",function(E,tt){var lt=this;return E==null&&(E="."),tt==null&&(tt=C),Oe("File").$write(Oe("File").$join(E,lt.$pygments_stylesheet_name(tt)),lt.$pygments_stylesheet_data(tt),G(["mode"],{mode:$t("FILE_WRITE_MODE")}))},-1)}(je[0],null,je)}(Ie[0],Ie)},Opal.modules["asciidoctor/table"]=function(a){var ae=a.module,te=a.klass,V=a.const_set,_e=a.def,v=a.alias,Y=a.hash2,Ue=a.send2,G=a.find_super,Ie=a.truthy,C=a.rb_lt,Oe=a.rb_gt,ze=a.eqeq,Ge=a.rb_times,qe=a.rb_divide,je=a.send,dt=a.rb_plus,Ye=a.rb_minus,st=a.return_val,We=a.to_a,Je=a.gvars,$t=a.neqeq,z=a.return_ivar,et=a.to_ary,E=a.regexp,tt=a.not,lt=a.thrower,K=[],D=a.nil,He=a.$$$;return a.add_stubs("attr_accessor,send,attr_reader,new,[],<,>,to_i,==,[]=,attributes,truncate,*,/,to_f,empty?,body,each,<<,size,+,assign_column_widths,warn,logger,-,update_attributes,assign_width,round,head=,map,shift,reinitialize,nil?,unshift,foot=,pop,parent,sourcemap,dup,header_row?,table,style,merge,delete,start_with?,rstrip,slice,length,advance,lstrip,strip,split,include?,readlines,catalog_inline_anchor,=~,apply_subs,attr_writer,convert,text,!=,file,lineno,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(we,Ne){var Te=ae(we,"Asciidoctor"),ue=[Te].concat(Ne),ye=a.$r(ue);return function(Z,B,q){var ie=te(Z,B,"Table"),ee=[ie].concat(q),$e=a.$r(ee),U=ie.$$prototype;return U.attributes=U.document=U.rows=U.has_header_option=U.columns=D,V(ee[0],"DEFAULT_PRECISION",4),function(g,o){var m=te(g,o,"Rows"),T=m.$$prototype;return T.head=T.body=T.foot=D,m.$attr_accessor("head","foot","body"),_e(m,"$initialize",function(y,L,j){var de=this;return y==null&&(y=[]),L==null&&(L=[]),j==null&&(j=[]),de.head=y,de.foot=L,de.body=j},-1),v(m,"[]","send"),_e(m,"$by_section",function(){var y=this;return[["head",y.head],["body",y.body],["foot",y.foot]]}),_e(m,"$to_h",function(){var y=this;return Y(["head","body","foot"],{head:y.head,body:y.body,foot:y.foot})})}(ee[0],null),ie.$attr_accessor("columns"),ie.$attr_accessor("rows"),ie.$attr_accessor("has_header_option"),ie.$attr_reader("caption"),_e(ie,"$initialize",function g(o,m){var T;g.$$p;var k=this,y=D,L=D,j=D;return g.$$p=null,Ue(k,G(k,"initialize",g,!1,!0),"initialize",[o,"table"],null),k.rows=$e("Rows").$new(),k.columns=[],k.has_header_option=!1,Ie(y=m["$[]"]("width"))?(Ie(Oe(L=y.$to_i(),100))||Ie(C(L,1)))&&(ze(L,0)&&(ze(y,"0")||ze(y,"0%"))||(L=100)):L=100,k.attributes["$[]="]("tablepcwidth",L),Ie(k.document.$attributes()["$[]"]("pagewidth"))&&k.attributes["$[]="]("tableabswidth",ze(j=Ge(qe(L,100),k.document.$attributes()["$[]"]("pagewidth").$to_f()).$truncate($e("DEFAULT_PRECISION")),j.$to_i())?j.$to_i():j),Ie(m["$[]"]("rotate-option"))?(T=["orientation","landscape"],je(k.attributes,"[]=",T),T[T.length-1]):D}),_e(ie,"$header_row?",function(){var o=this,m=D;return Ie(m=o.has_header_option)&&Ie(o.rows.$body()["$empty?"]())?m:D}),_e(ie,"$create_columns",function(o){var m=this,T=D,k=D,y=D,L=D;return T=[],k=D,y=0,je(o,"each",[],function j(de){var oe=j.$$s==null?this:j.$$s,ke=D,Be=D;return de==null&&(de=D),ke=de["$[]"]("width"),T["$<<"]($e("Column").$new(oe,T.$size(),de)),Ie(C(ke,0))?(k=Ie(Be=k)?Be:[])["$<<"](T["$[]"](-1)):y=dt(y,ke)},{$$s:m}),Ie(Oe(L=(m.columns=T).$size(),0))&&(m.attributes["$[]="]("colcount",L),Ie(Oe(y,0))||Ie(k)||(y=D),m.$assign_column_widths(y,k)),D}),_e(ie,"$assign_column_widths",function(o,m){var T=this,k=D,y=D,L=D,j=D,de=D;return o==null&&(o=D),m==null&&(m=D),k=$e("DEFAULT_PRECISION"),y=L=0,Ie(o)?(Ie(m)&&(Ie(Oe(o,100))?(j=0,T.$logger().$warn("total column width must not exceed 100% when using autowidth columns; got "+o+"%")):(j=qe(Ye(100,o),m.$size()).$truncate(k),ze(j.$to_i(),j)&&(j=j.$to_i()),o=100),de=Y(["width","autowidth-option"],{width:j,"autowidth-option":""}),je(m,"each",[],function(ke){return ke==null&&(ke=D),ke.$update_attributes(de)})),je(T.columns,"each",[],function(ke){return ke==null&&(ke=D),y=dt(y,L=ke.$assign_width(D,o,k))})):(L=qe(100,T.columns.$size()).$truncate(k),ze(L.$to_i(),L)&&(L=L.$to_i()),je(T.columns,"each",[],function(ke){return ke==null&&(ke=D),y=dt(y,ke.$assign_width(L,D,k))})),ze(y,100)||T.columns["$[]"](-1).$assign_width(dt(Ye(100,y),L).$round(k),D,k),D},-1),_e(ie,"$partition_header_footer",function(o){var m,T=this,k=D,y=D;return k=(m=["rowcount",(y=T.rows.$body()).$size()],je(T.attributes,"[]=",m),m[m.length-1]),Ie(Oe(k,0))&&(Ie(T.has_header_option)?(T.rows["$head="]([je(y.$shift(),"map",[],function(j){return j==null&&(j=D),j.$reinitialize(!0)})]),k=Ye(k,1)):Ie(T.has_header_option["$nil?"]())&&(T.has_header_option=!1,y.$unshift(je(y.$shift(),"map",[],function(j){return j==null&&(j=D),j.$reinitialize(!1)})))),Ie(Oe(k,0))&&Ie(o["$[]"]("footer-option"))&&T.rows["$foot="]([y.$pop()]),D})}(ue[0],ye("AbstractBlock"),ue),function(Z,B){var q=te(Z,B,"Column"),ie=q.$$prototype;return ie.attributes=D,q.$attr_accessor("style"),_e(q,"$initialize",function ee($e,U,g){ee.$$p;var o=this;return ee.$$p=null,g==null&&(g=Y([],{})),Ue(o,G(o,"initialize",ee,!1,!0),"initialize",[$e,"table_column"],null),o.style=g["$[]"]("style"),g["$[]="]("colnumber",dt(U,1)),Ie(g["$[]"]("width"))||g["$[]="]("width",1),Ie(g["$[]"]("halign"))||g["$[]="]("halign","left"),Ie(g["$[]"]("valign"))||g["$[]="]("valign","top"),o.$update_attributes(g)},-3),v(q,"table","parent"),_e(q,"$assign_width",function($e,U,g){var o,m=this,T=D;return Ie(U)&&($e=qe(Ge(m.attributes["$[]"]("width").$to_f(),100),U).$truncate(g),ze($e.$to_i(),$e)&&($e=$e.$to_i())),Ie(m.$parent().$attributes()["$[]"]("tableabswidth"))&&m.attributes["$[]="]("colabswidth",ze(T=Ge(qe($e,100),m.$parent().$attributes()["$[]"]("tableabswidth")).$truncate(g),T.$to_i())?T.$to_i():T),o=["colpcwidth",$e],je(m.attributes,"[]=",o),o[o.length-1]}),_e(q,"$block?",st(!1)),_e(q,"$inline?",st(!1))}(ye("Table"),ye("AbstractNode")),function(Z,B,q){var ie=te(Z,B,"Cell"),ee=[ie].concat(q),$e=a.$r(ee),U=ie.$$prototype;return U.document=U.reinitialize_args=U.attributes=U.cursor=U.text=U.subs=U.style=U.inner_document=U.source_location=U.colspan=U.rowspan=D,V(ee[0],"DOUBLE_LF",Ge($e("LF"),2)),ie.$attr_accessor("colspan"),ie.$attr_accessor("rowspan"),v(ie,"column","parent"),ie.$attr_reader("inner_document"),_e(ie,"$initialize",function g(o,m,T,k){var y;g.$$p;var L=this,j=D,de=D,oe=D,ke=D,Be=D,Xe=D,it=D,ht=D,at=D,mt=D,yt=D,xt=D,vt=D;if(g.$$p=null,T==null&&(T=Y([],{})),k==null&&(k=Y([],{})),Ue(L,G(L,"initialize",g,!1,!0),"initialize",[o,"table_cell"],null),L.cursor=L.reinitialize_args=D,Ie(L.document.$sourcemap())&&(L.source_location=k["$[]"]("cursor").$dup()),Ie(o)&&(Ie(j=o.$table()["$header_row?"]())?ze(j,"implicit")&&Ie(de=Ie(oe=o.$style())?oe:Ie(ke=T)?T["$[]"]("style"):ke)&&((ze(de,"asciidoc")||ze(de,"literal"))&&(L.reinitialize_args=[o,m,Ie(oe=T)?T.$merge():oe,k]),de=D):de=o.$style(),L.$update_attributes(o.$attributes())),Ie(T))switch(Ie(T["$empty?"]())?L.colspan=L.rowspan=D:(y=[T.$delete("colspan"),T.$delete("rowspan")],L.colspan=y[0],L.rowspan=y[1],Ie(j)||(de=Ie(oe=T["$[]"]("style"))?oe:de),L.$update_attributes(T)),de){case"asciidoc":if(Be=!0,Xe=k["$[]"]("cursor"),Ie((m=m.$rstrip())["$start_with?"]($e("LF")))){for(it=1;Ie((m=m.$slice(1,m.$length()))["$start_with?"]($e("LF")));)it=dt(it,1);Xe.$advance(it)}else m=m.$lstrip();break;case"literal":for(ht=!0,m=m.$rstrip();Ie(m["$start_with?"]($e("LF")));)m=m.$slice(1,m.$length());break;default:at=!0,m=Ie(m)?m.$strip():""}else L.colspan=L.rowspan=D,ze(de,"asciidoc")&&(Be=!0,Xe=k["$[]"]("cursor"));return Ie(Be)?(mt=L.document.$attributes().$delete("doctitle"),yt=m.$split($e("LF"),-1),Ie(yt["$empty?"]())||Ie((xt=yt["$[]"](0))["$include?"]("::"))&&(vt=$e("PreprocessorReader").$new(L.document,[xt]).$readlines(),ze(xt,vt["$[]"](0))&&Ie(C(vt.$size(),2))||(yt.$shift(),Ie(vt["$empty?"]())||je(yt,"unshift",We(vt)))),L.inner_document=$e("Document").$new(yt,Y(["standalone","parent","cursor"],{standalone:!1,parent:L.document,cursor:Xe})),Ie(mt["$nil?"]())||L.document.$attributes()["$[]="]("doctitle",mt),L.subs=D):Ie(ht)?(L.content_model="verbatim",L.subs=$e("BASIC_SUBS")):(Ie(at)&&(Ie(j)?L.cursor=k["$[]"]("cursor"):L.$catalog_inline_anchor(m,k["$[]"]("cursor"))),L.content_model="simple",L.subs=$e("NORMAL_SUBS")),L.text=m,L.style=de},-3),_e(ie,"$reinitialize",function(o){var m=this;if(Ie(o))m.reinitialize_args=D;else{if(Ie(m.reinitialize_args))return je(He($e("Table"),"Cell"),"new",We(m.reinitialize_args));m.style=m.attributes["$[]"]("style")}return Ie(m.cursor)&&m.$catalog_inline_anchor(),m}),_e(ie,"$catalog_inline_anchor",function(o,m){var T,k=this;return o==null&&(o=k.text),m==null&&(m=D),Ie(m)||(T=[k.cursor,D],m=T[0],k.cursor=T[1]),Ie(o["$start_with?"]("[["))&&Ie($e("LeadingInlineAnchorRx")["$=~"](o))?$e("Parser").$catalog_inline_anchor((T=Je["~"])===D?D:T["$[]"](1),(T=Je["~"])===D?D:T["$[]"](2),k,m,k.document):D},-1),_e(ie,"$text",function(){var o=this;return o.$apply_subs(o.text,o.subs)}),ie.$attr_writer("text"),_e(ie,"$content",function(){var o=this,m=D,T=D;return ze(m=o.style,"asciidoc")?o.inner_document.$convert():Ie(o.text["$include?"]($e("DOUBLE_LF")))?je(o.$text().$split($e("BlankLineRx")),"map",[],function k(y){var L=k.$$s==null?this:k.$$s;return y==null&&(y=D),Ie(m)&&$t(m,"header")?$e("Inline").$new(L.$parent(),"quoted",y,Y(["type"],{type:m})).$convert():y},{$$s:o}):Ie((T=o.$text())["$empty?"]())?[]:Ie(m)&&$t(m,"header")?[$e("Inline").$new(o.$parent(),"quoted",T,Y(["type"],{type:m})).$convert()]:[T]}),_e(ie,"$lines",function(){var o=this;return o.text.$split($e("LF"))}),_e(ie,"$source",z("text")),_e(ie,"$file",function(){var o=this,m=D;return Ie(m=o.source_location)?o.source_location.$file():m}),_e(ie,"$lineno",function(){var o=this,m=D;return Ie(m=o.source_location)?o.source_location.$lineno():m}),_e(ie,"$to_s",function g(){var o=g.$$p||D,m=this,T=D;return g.$$p=null,""+Ue(m,G(m,"to_s",g,!1,!0),"to_s",[],o)+" - [text: "+m.text+", colspan: "+(Ie(T=m.colspan)?T:1)+", rowspan: "+(Ie(T=m.rowspan)?T:1)+", attributes: "+m.attributes+"]"})}(ye("Table"),ye("AbstractBlock"),ue),function(Z,B,q){var ie=te(Z,B,"ParserContext"),ee=[ie].concat(q),$e=a.$r(ee),U=ie.$$prototype;return U.delimiter=U.delimiter_rx=U.buffer=U.cellspecs=U.cell_open=U.format=U.start_cursor_data=U.reader=U.table=U.current_row=U.colcount=U.column_visits=U.active_rowspans=U.linenum=D,ie.$include($e("Logging")),V(ee[0],"FORMATS",["psv","csv","dsv","tsv"].$to_set()),V(ee[0],"DELIMITERS",Y(["psv","csv","dsv","tsv","!sv"],{psv:["|",/\|/],csv:[",",/,/],dsv:[":",/:/],tsv:[" ",/\t/],"!sv":["!",/!/]})),ie.$attr_accessor("table"),ie.$attr_accessor("format"),ie.$attr_reader("colcount"),ie.$attr_accessor("buffer"),ie.$attr_reader("delimiter"),ie.$attr_reader("delimiter_re"),_e(ie,"$initialize",function(o,m,T){var k,y,L=this,j=D,de=D;return T==null&&(T=Y([],{})),L.start_cursor_data=(L.reader=o).$mark(),L.table=m,Ie(T["$key?"]("format"))?Ie($e("FORMATS")["$include?"](j=T["$[]"]("format")))?ze(j,"tsv")?L.format="csv":ze(L.format=j,"psv")&&Ie(m.$document()["$nested?"]())&&(j="!sv"):(L.$logger().$error(L.$message_with_context("illegal table format: "+j,Y(["source_location"],{source_location:o.$cursor_at_prev_line()}))),k=["psv",Ie(m.$document()["$nested?"]())?"!sv":"psv"],L.format=k[0],j=k[1]):(k=["psv",Ie(m.$document()["$nested?"]())?"!sv":"psv"],L.format=k[0],j=k[1]),Ie(T["$key?"]("separator"))?Ie((de=T["$[]"]("separator"))["$nil_or_empty?"]())?(y=$e("DELIMITERS")["$[]"](j),k=et(y),L.delimiter=k[0]==null?D:k[0],L.delimiter_rx=k[1]==null?D:k[1]):ze(de,"\\t")?(y=$e("DELIMITERS")["$[]"]("tsv"),k=et(y),L.delimiter=k[0]==null?D:k[0],L.delimiter_rx=k[1]==null?D:k[1]):(k=[de,E([He("Regexp").$escape(de)])],L.delimiter=k[0],L.delimiter_rx=k[1]):(y=$e("DELIMITERS")["$[]"](j),k=et(y),L.delimiter=k[0]==null?D:k[0],L.delimiter_rx=k[1]==null?D:k[1]),L.colcount=Ie(m.$columns()["$empty?"]())?-1:m.$columns().$size(),L.buffer="",L.cellspecs=[],L.cell_open=!1,L.active_rowspans=[0],L.column_visits=0,L.current_row=[],L.linenum=-1},-3),_e(ie,"$starts_with_delimiter?",function(o){var m=this;return o["$start_with?"](m.delimiter)}),_e(ie,"$match_delimiter",function(o){var m=this;return m.delimiter_rx.$match(o)}),_e(ie,"$skip_past_delimiter",function(o){var m=this;return m.buffer=""+m.buffer+o+m.delimiter,D}),_e(ie,"$skip_past_escaped_delimiter",function(o){var m=this;return m.buffer=""+m.buffer+o.$chop()+m.delimiter,D}),_e(ie,"$buffer_has_unclosed_quotes?",function(o,m){var T=this,k=D,y=D,L=D,j=D;return o==null&&(o=D),m==null&&(m='"'),ze(k=Ie(o)?dt(T.buffer,o).$strip():T.buffer.$strip(),m)?!0:Ie(k["$start_with?"](m))?(y=dt(m,m),Ie(L=k["$end_with?"](m))&&Ie(k["$end_with?"](y))||Ie(k["$start_with?"](y))?Ie(j=(k=k.$gsub(y,""))["$start_with?"](m))?k["$end_with?"](m)["$!"]():j:L["$!"]()):!1},-1),_e(ie,"$take_cellspec",function(){var o=this;return o.cellspecs.$shift()}),_e(ie,"$push_cellspec",function(o){var m=this,T=D;return o==null&&(o=Y([],{})),m.cellspecs["$<<"](Ie(T=o)?T:Y([],{})),D},-1),_e(ie,"$keep_cell_open",function(){var o=this;return o.cell_open=!0,D}),_e(ie,"$mark_cell_closed",function(){var o=this;return o.cell_open=!1,D}),_e(ie,"$cell_open?",z("cell_open")),_e(ie,"$cell_closed?",function(){var o=this;return o.cell_open["$!"]()}),_e(ie,"$close_open_cell",function(o){var m=this;return o==null&&(o=Y([],{})),m.$push_cellspec(o),Ie(m["$cell_open?"]())&&m.$close_cell(!0),m.$advance(),D},-1),_e(ie,"$close_cell",function(o){try{var m=lt("return"),T=this,k=D,y=D,L=D,j=D,de=D;return o==null&&(o=!1),ze(T.format,"psv")?(k=T.buffer,T.buffer="",Ie(y=T.$take_cellspec())?L=Ie(j=y.$delete("repeatcol"))?j:1:(T.$logger().$error(T.$message_with_context("table missing leading separator; recovering automatically",Y(["source_location"],{source_location:je(He($e("Reader"),"Cursor"),"new",We(T.start_cursor_data))}))),y=Y([],{}),L=1)):(k=T.buffer.$strip(),T.buffer="",y=D,L=1,ze(T.format,"csv")&&tt(k["$empty?"]())&&Ie(k["$include?"](de='"'))&&(Ie(k["$start_with?"](de))&&Ie(k["$end_with?"](de))?Ie(k=k.$slice(1,Ye(k.$length(),2)))?k=k.$strip().$squeeze(de):(T.$logger().$error(T.$message_with_context("unclosed quote in CSV data; setting cell to empty",Y(["source_location"],{source_location:T.reader.$cursor_at_prev_line()}))),k=""):k=k.$squeeze(de))),je(1,"upto",[L],function oe(ke){var Be=oe.$$s==null?this:oe.$$s,Xe=D,it=D,ht=D,at=D;return Be.colcount==null&&(Be.colcount=D),Be.table==null&&(Be.table=D),Be.current_row==null&&(Be.current_row=D),Be.reader==null&&(Be.reader=D),Be.column_visits==null&&(Be.column_visits=D),Be.linenum==null&&(Be.linenum=D),ke==null&&(ke=D),ze(Be.colcount,-1)?(Be.table.$columns()["$<<"](Xe=He($e("Table"),"Column").$new(Be.table,Ye(dt(Be.table.$columns().$size(),ke),1))),Ie(y)&&Ie(y["$key?"]("colspan"))&&Ie(Oe(it=Ye(y["$[]"]("colspan").$to_i(),1),0))&&(ht=Be.table.$columns().$size(),je(it,"times",[],function mt(yt){var xt=mt.$$s==null?this:mt.$$s;return xt.table==null&&(xt.table=D),yt==null&&(yt=D),xt.table.$columns()["$<<"](He($e("Table"),"Column").$new(xt.table,dt(ht,yt)))},{$$s:Be}))):Ie(Xe=Be.table.$columns()["$[]"](Be.current_row.$size()))||(Be.$logger().$error(Be.$message_with_context("dropping cell because it exceeds specified number of columns",Y(["source_location"],{source_location:Be.reader.$cursor_before_mark()}))),m.$throw()),at=He($e("Table"),"Cell").$new(Xe,k,y,Y(["cursor"],{cursor:Be.reader.$cursor_before_mark()})),Be.reader.$mark(),tt(at.$rowspan())||ze(at.$rowspan(),1)||Be.$activate_rowspan(at.$rowspan(),Ie(j=at.$colspan())?j:1),Be.column_visits=dt(Be.column_visits,Ie(j=at.$colspan())?j:1),Be.current_row["$<<"](at),Ie(Be["$end_of_row?"]())&&($t(Be.colcount,-1)||Ie(Oe(Be.linenum,0))||Ie(o)&&ze(ke,L))?Be.$close_row():D},{$$s:T,$$ret:m}),T.cell_open=!1,D}catch(oe){if(oe===m)return oe.$v;throw oe}},-1),ie.$private(),_e(ie,"$close_row",function(){var o=this;return o.table.$rows().$body()["$<<"](o.current_row),ze(o.colcount,-1)&&(o.colcount=o.column_visits),o.column_visits=0,o.current_row=[],o.active_rowspans.$shift(),Ie(o.active_rowspans["$[]"](0))||o.active_rowspans["$[]="](0,0),D}),_e(ie,"$activate_rowspan",function(o,m){var T=this;return je(1,"upto",[Ye(o,1)],function k(y){var L,j=k.$$s==null?this:k.$$s,de=D;return j.active_rowspans==null&&(j.active_rowspans=D),y==null&&(y=D),L=[y,dt(Ie(de=j.active_rowspans["$[]"](y))?de:0,m)],je(j.active_rowspans,"[]=",L),L[L.length-1]},{$$s:T}),D}),_e(ie,"$end_of_row?",function(){var o=this,m=D;return Ie(m=o.colcount["$=="](-1))?m:o.$effective_column_visits()["$=="](o.colcount)}),_e(ie,"$effective_column_visits",function(){var o=this;return dt(o.column_visits,o.active_rowspans["$[]"](0))}),_e(ie,"$advance",function(){var o=this;return o.linenum=dt(o.linenum,1)})}(ye("Table"),null,ue)}(K[0],K)},Opal.modules["asciidoctor/writer"]=function(a){var ae=a.module,te=a.truthy,V=a.rb_plus,_e=a.hash2,v=a.def,Y=a.return_val,Ue=[],G=a.nil,Ie=a.$$$;return a.add_stubs("respond_to?,write,+,chomp,include"),function(C,Oe){var ze=ae(C,"Asciidoctor"),Ge=[ze].concat(Oe);return function(qe,je){var dt=ae(qe,"Writer"),Ye=[dt].concat(je),st=a.$r(Ye);return v(dt,"$write",function(Je,$t){return te($t["$respond_to?"]("write"))?$t.$write(V(Je.$chomp(),st("LF"))):Ie("File").$write($t,Je,_e(["mode"],{mode:st("FILE_WRITE_MODE")})),G})}(Ge[0],Ge),function(qe,je){var dt=ae(qe,"VoidWriter"),Ye=[dt].concat(je),st=a.$r(Ye);return dt.$include(st("Writer")),v(dt,"$write",Y(G))}(Ge[0],Ge)}(Ue[0],Ue)},Opal.modules["asciidoctor/load"]=function(a){var ae=a.module,te=a.hash2,V=a.truthy,_e=a.neqeq,v=a.not,Y=a.eqeqeq,Ue=a.send,G=a.to_ary,Ie=a.rb_plus,C=a.eqeq,Oe=a.def,ze=[],Ge=a.nil,qe=a.$$$;return a.add_stubs("merge,[],start,!=,logger,key?,logger=,new,!,===,dup,tap,each,partition,[]=,split,gsub,+,respond_to?,keys,raise,join,ancestors,class,==,at,to_i,mtime,absolute_path,path,dirname,basename,extname,read,rewind,drop,record,parse,exception,message,set_backtrace,backtrace,stack_trace=,stack_trace,open,load"),function(je,dt){var Ye=ae(je,"Asciidoctor"),st=[Ye].concat(dt);return function(We,Je){var $t=[We].concat(Je),z=a.$r($t);return Oe(We,"$load",function(E,tt){var lt,K,D,He,we=this,Ne=Ge,Te=Ge,ue=Ge,ye=Ge,Z=Ge,B=Ge,q=Ge,ie=Ge,ee=Ge,$e=Ge;tt==null&&(tt=te([],{}));try{if(tt=tt.$merge(),V(Ne=tt["$[]"]("timings"))&&Ne.$start("read"),V(tt["$key?"]("logger"))&&_e(Te=tt["$[]"]("logger"),z("LoggerManager").$logger())&&z("LoggerManager")["$logger="](V(ue=Te)?ue:z("NullLogger").$new()),v(ye=tt["$[]"]("attributes"))?ye=te([],{}):Y(qe("Hash"),ye)?ye=ye.$merge():V((D=qe("::","Java","skip_raise"))&&(K=qe(D,"JavaUtil","skip_raise"))&&(lt=qe(K,"Map","skip_raise"))?"constant":Ge)&&Y(qe(qe(qe("Java"),"JavaUtil"),"Map"),ye)?ye=ye.$dup():Y(qe("Array"),ye)?ye=Ue(te([],{}),"tap",[],function(g){return g==null&&(g=Ge),Ue(ye,"each",[],function(m){var T,k,y=Ge,L=Ge,j=Ge;return m==null&&(m=Ge),k=m.$partition("="),T=G(k),y=T[0]==null?Ge:T[0],L=T[1]==null?Ge:T[1],j=T[2]==null?Ge:T[2],T=[y,j],Ue(g,"[]=",T),T[T.length-1]})}):Y(qe("String"),ye)?ye=Ue(te([],{}),"tap",[],function(g){return g==null&&(g=Ge),Ue(ye.$gsub(z("SpaceDelimiterRx"),Ie("\\1",z("NULL"))).$gsub(z("EscapedSpaceRx"),"\\1").$split(z("NULL")),"each",[],function(m){var T,k,y=Ge,L=Ge,j=Ge;return m==null&&(m=Ge),k=m.$partition("="),T=G(k),y=T[0]==null?Ge:T[0],L=T[1]==null?Ge:T[1],j=T[2]==null?Ge:T[2],T=[y,j],Ue(g,"[]=",T),T[T.length-1]})}):V(ye["$respond_to?"]("keys"))&&V(ye["$respond_to?"]("[]"))?ye=Ue(te([],{}),"tap",[],function(g){return g==null&&(g=Ge),Ue(ye.$keys(),"each",[],function(m){var T;return m==null&&(m=Ge),T=[m,ye["$[]"](m)],Ue(g,"[]=",T),T[T.length-1]})}):we.$raise(qe("ArgumentError"),"illegal type for attributes option: "+ye.$class().$ancestors().$join(" < ")),Y(qe("File"),E))tt["$[]="]("input_mtime",C(z("RUBY_ENGINE"),"jruby")?qe("Time").$at(E.$mtime().$to_i()):E.$mtime()),ye["$[]="]("docfile",Z=qe("File").$absolute_path(E.$path())),ye["$[]="]("docdir",qe("File").$dirname(Z)),ye["$[]="]("docname",z("Helpers").$basename(Z,(He=["docfilesuffix",z("Helpers").$extname(Z)],Ue(ye,"[]=",He),He[He.length-1]))),B=E.$read();else if(V(E["$respond_to?"]("read"))){try{E.$rewind()}catch(U){if(a.rescue(U,[z("StandardError")]))try{}finally{a.pop_exception()}else throw U}B=E.$read()}else Y(qe("String"),E)?B=E:Y(qe("Array"),E)?B=E.$drop(0):V(E)&&we.$raise(qe("ArgumentError"),"unsupported input type: "+E.$class());return V(Ne)&&(Ne.$record("read"),Ne.$start("parse")),tt["$[]="]("attributes",ye),q=C(tt["$[]"]("parse"),!1)?z("Document").$new(B,tt):z("Document").$new(B,tt).$parse(),V(Ne)&&Ne.$record("parse"),q}catch(U){if(a.rescue(U,[z("StandardError")])){ie=U;try{try{ee="asciidoctor: FAILED: "+(V(ue=ye["$[]"]("docfile"))?ue:"<stdin>")+": Failed to load AsciiDoc document",V(ie["$respond_to?"]("exception"))?($e=ie.$exception(""+ee+" - "+ie.$message()),$e.$set_backtrace(ie.$backtrace())):($e=ie.$class().$new(ee,ie),$e["$stack_trace="](ie.$stack_trace()))}catch(g){if(a.rescue(g,[z("StandardError")]))try{$e=ie}finally{a.pop_exception()}else throw g}return we.$raise($e)}finally{a.pop_exception()}}else throw U}},-2),Oe(We,"$load_file",function(E,tt){var lt=this;return tt==null&&(tt=te([],{})),Ue(qe("File"),"open",[E,z("FILE_READ_MODE")],function K(D){var He=K.$$s==null?this:K.$$s;return D==null&&(D=Ge),He.$load(D,tt)},{$$s:lt})},-2)}(a.get_singleton_class(Ye),st)}(ze[0],ze)},Opal.modules["asciidoctor/convert"]=function(a){var ae=a.module,te=a.hash2,V=a.eqeqeq,_e=a.truthy,v=a.eqeq,Y=a.rb_ge,Ue=a.not,G=a.rb_lt,Ie=a.neqeq,C=a.def,Oe=a.send,ze=a.alias,Ge=[],qe=a.nil,je=a.$$$;return a.add_stubs("delete,merge,===,absolute_path,path,load,respond_to?,[]=,key?,fetch,[],dirname,expand_path,join,attributes,outfilesuffix,==,raise,pwd,>=,safe,normalize_system_path,mkdir_p,directory?,!,convert,write,attr,uriish?,basebackend?,attr?,<,include?,syntax_highlighter,write_stylesheet?,write_primary_stylesheet,instance,to_s,read_asset,file?,!=,write_stylesheet,open,convert_file"),function(dt,Ye){var st=ae(dt,"Asciidoctor"),We=[st].concat(Ye);return function(Je,$t){var z=[Je].concat($t),et=a.$r(z);return C(Je,"$convert",function(tt,lt){var K=this,D=qe,He=qe,we=qe,Ne=qe,Te=qe,ue=qe,ye=qe,Z=qe,B=qe,q=qe,ie=qe,ee=qe,$e=qe,U=qe,g=qe,o=qe,m=qe,T=qe,k=qe,y=qe,L=qe,j=qe,de=qe,oe=qe;if(lt==null&&(lt=te([],{})),(lt=lt.$merge()).$delete("parse"),D=lt.$delete("to_dir"),He=lt.$delete("mkdirs"),V(!0,we=Ne=lt.$delete("to_file"))||V(qe,we))_e(Te=D)||V(je("File"),tt)&&(ue=je("File").$absolute_path(tt.$path())),Ne=qe;else if(V(!1,we))Ne=qe;else{if(V("/dev/null",we))return K.$load(tt,lt);_e(ye=Ne["$respond_to?"]("write"))||lt["$[]="]("to_file",Te=Ne)}return _e(lt["$key?"]("standalone"))||(_e(ue)||_e(Te)?lt["$[]="]("standalone",lt.$fetch("header_footer",!0)):_e(lt["$key?"]("header_footer"))&<["$[]="]("standalone",lt["$[]"]("header_footer"))),_e(ue)?lt["$[]="]("to_dir",Z=je("File").$dirname(ue)):_e(Te)&&(_e(D)?_e(Ne)?lt["$[]="]("to_dir",je("File").$dirname(je("File").$expand_path(Ne,D))):lt["$[]="]("to_dir",je("File").$expand_path(D)):_e(Ne)&<["$[]="]("to_dir",je("File").$dirname(je("File").$expand_path(Ne)))),B=K.$load(tt,lt),_e(ue)?(q=je("File").$join(Z,""+B.$attributes()["$[]"]("docname")+B.$outfilesuffix()),v(q,ue)&&K.$raise(je("IOError"),"input file and output file cannot be the same: "+q)):_e(Te)?(ie=_e(lt["$key?"]("base_dir"))?je("File").$expand_path(lt["$[]"]("base_dir")):je("Dir").$pwd(),ee=_e(Y(B.$safe(),je(et("SafeMode"),"SAFE")))?ie:qe,_e(D)?(Z=B.$normalize_system_path(D,ie,ee,te(["target_name","recover"],{target_name:"to_dir",recover:!1})),_e(Ne)?(q=B.$normalize_system_path(Ne,Z,qe,te(["target_name","recover"],{target_name:"to_dir",recover:!1})),Z=je("File").$dirname(q)):q=je("File").$join(Z,""+B.$attributes()["$[]"]("docname")+B.$outfilesuffix())):_e(Ne)&&(q=B.$normalize_system_path(Ne,ie,ee,te(["target_name","recover"],{target_name:"to_dir",recover:!1})),Z=je("File").$dirname(q)),V(je("File"),tt)&&v(q,je("File").$absolute_path(tt.$path()))&&K.$raise(je("IOError"),"input file and output file cannot be the same: "+q),_e(He)?et("Helpers").$mkdir_p(Z):_e(je("File")["$directory?"](Z))||K.$raise(je("IOError"),"target directory does not exist: "+D+" (hint: set :mkdirs option)")):(q=Ne,Z=qe),_e(q)&&Ue(ye)?$e=B.$convert(te(["outfile","outdir"],{outfile:q,outdir:Z})):$e=B.$convert(),_e(q)?(B.$write($e,q),Ue(ye)&&_e(G(B.$safe(),je(et("SafeMode"),"SECURE")))&&_e(B["$attr?"]("linkcss"))&&_e(B["$attr?"]("copycss"))&&_e(B["$basebackend?"]("html"))&&Ue(_e(we=U=B.$attr("stylesdir"))?et("Helpers")["$uriish?"](U):we)&&(_e(g=B.$attr("stylesheet"))&&(_e(et("DEFAULT_STYLESHEET_KEYS")["$include?"](g))?o=!0:Ue(et("Helpers")["$uriish?"](g))&&(m=!0)),T=_e(we=k=B.$syntax_highlighter())?k["$write_stylesheet?"](B):we,(_e(o)||_e(m)||_e(T))&&(y=B.$normalize_system_path(U,Z,_e(Y(B.$safe(),je(et("SafeMode"),"SAFE")))?Z:qe),_e(He)?et("Helpers").$mkdir_p(y):_e(je("File")["$directory?"](y))||K.$raise(je("IOError"),"target stylesheet directory does not exist: "+y+" (hint: set :mkdirs option)"),_e(o)?et("Stylesheets").$instance().$write_primary_stylesheet(y):_e(m)&&(v(L=B.$attr("copycss"),"")||v(L,!0)?L=B.$normalize_system_path(g):L=B.$normalize_system_path(L.$to_s()),j=B.$normalize_system_path(g,y,_e(Y(B.$safe(),je(et("SafeMode"),"SAFE")))?Z:qe),Ie(L,j)&&_e(de=B.$read_asset(L,te(["warn_on_failure","label"],{warn_on_failure:je("File")["$file?"](j)["$!"](),label:"stylesheet"})))&&(Ie(oe=je("File").$dirname(j),y)&&Ue(je("File")["$directory?"](oe))&&(_e(He)?et("Helpers").$mkdir_p(oe):K.$raise(je("IOError"),"target stylesheet directory does not exist: "+oe+" (hint: set :mkdirs option)")),je("File").$write(j,de,te(["mode"],{mode:et("FILE_WRITE_MODE")})))),_e(T)&&k.$write_stylesheet(B,y))),B):$e},-2),C(Je,"$convert_file",function(tt,lt){var K=this;return lt==null&&(lt=te([],{})),Oe(je("File"),"open",[tt,et("FILE_READ_MODE")],function D(He){var we=D.$$s==null?this:D.$$s;return He==null&&(He=qe),we.$convert(He,lt)},{$$s:K})},-2),ze(Je,"render","convert"),ze(Je,"render_file","convert_file")}(a.get_singleton_class(st),We)}(Ge[0],Ge)},Opal.modules["asciidoctor/syntax_highlighter/highlightjs"]=function(a){var ae=a.module,te=a.klass,V=a.slice,_e=a.send2,v=a.find_super,Y=a.to_a,Ue=a.def,G=a.hash2,Ie=a.send,C=a.truthy,Oe=a.return_val,ze=a.eqeq,Ge=[],qe=a.nil,je=a.$$$;return a.add_stubs("register_for,merge,proc,[]=,attr,[],==,attr?,join,map,split,lstrip"),function(dt,Ye){var st=ae(dt,"Asciidoctor"),We=[st].concat(Ye),Je=a.$r(We);return function($t,z,et){var E=te($t,z,"HighlightJsAdapter"),tt=[E].concat(et),lt=a.$r(tt);return E.$register_for("highlightjs","highlight.js"),Ue(E,"$initialize",function K(D){var He,we,Ne=K.$$p||qe,Te=this;return K.$$p=null,He=V(arguments),we=He,_e(Te,v(Te,"initialize",K,!1,!0),"initialize",Y(we),Ne),Te.name=Te.pre_class="highlightjs"},-1),Ue(E,"$format",function K(D,He,we){K.$$p;var Ne=this;return K.$$p=null,_e(Ne,v(Ne,"format",K,!1,!0),"format",[D,He,we.$merge(G(["transform"],{transform:Ie(Ne,"proc",[],function(ue,ye){var Z,B=qe;return ye==null&&(ye=qe),Z=["class","language-"+(C(B=He)?B:"none")+" hljs"],Ie(ye,"[]=",Z),Z[Z.length-1]})}))],null)}),Ue(E,"$docinfo?",Oe(!0)),Ue(E,"$docinfo",function(D,He,we){var Ne=qe;return Ne=He.$attr("highlightjsdir",""+we["$[]"]("cdn_base_url")+"/highlight.js/"+lt("HIGHLIGHT_JS_VERSION")),ze(D,"head")?'<link rel="stylesheet" href="'+Ne+"/styles/"+He.$attr("highlightjs-theme","github")+'.min.css"'+we["$[]"]("self_closing_tag_slash")+">":'<script src="'+Ne+`/highlight.min.js"><\/script>
|
|
420
|
-
`+(C(He["$attr?"]("highlightjs-languages"))?Ie(He.$attr("highlightjs-languages").$split(","),"map",[],function(ue){return ue==null&&(ue=qe),'<script src="'+Ne+"/languages/"+ue.$lstrip()+`.min.js"><\/script>
|
|
421
|
-
`}).$join():"")+`<script>
|
|
422
|
-
if (!hljs.initHighlighting.called) {
|
|
423
|
-
hljs.initHighlighting.called = true
|
|
424
|
-
;[].slice.call(document.querySelectorAll('pre.highlight > code[data-lang]')).forEach(function (el) { hljs.highlightBlock(el) })
|
|
425
|
-
}
|
|
426
|
-
<\/script>`})}(Je("SyntaxHighlighter"),je(Je("SyntaxHighlighter"),"Base"),We)}(Ge[0],Ge)},Opal.modules["asciidoctor/syntax_highlighter"]=function(a){var ae=a.module,te=a.hash2,V=a.def,_e=a.return_val,v=a.defs,Y=a.slice,Ue=a.send,G=a.to_a,Ie=a.truthy,C=a.eqeqeq,Oe=a.Class,ze=a.klass,Ge=a.class_variable_set,qe=a.class_variable_get,je=a.top,dt=[],Ye=a.nil,st=a.$$$;return a.add_stubs("attr_reader,raise,class,extend,private_class_method,register,map,to_s,each,[]=,registry,[],for,===,new,name,private,include,delete,join,content"),function(We,Je){var $t=ae(We,"Asciidoctor"),z=[$t].concat(Je);return function(et,E){var tt=ae(et,"SyntaxHighlighter"),lt=[tt].concat(E),K=a.$r(lt);return tt.$attr_reader("name"),V(tt,"$initialize",function(He,we,Ne){var Te=this;return Ne==null&&(Ne=te([],{})),Te.name=Te.pre_class=He},-2),V(tt,"$docinfo?",_e(Ye)),V(tt,"$docinfo",function(He,we,Ne){var Te=this;return Te.$raise(st("NotImplementedError"),""+K("SyntaxHighlighter")+" subclass "+Te.$class()+" must implement the #docinfo method since #docinfo? returns true")}),V(tt,"$highlight?",_e(Ye)),V(tt,"$highlight",function(He,we,Ne,Te){var ue=this;return ue.$raise(st("NotImplementedError"),""+K("SyntaxHighlighter")+" subclass "+ue.$class()+" must implement the #highlight method since #highlight? returns true")}),V(tt,"$format",function(He,we,Ne){var Te=this;return Te.$raise(st("NotImplementedError"),""+K("SyntaxHighlighter")+" subclass "+Te.$class()+" must implement the #format method")}),V(tt,"$write_stylesheet?",_e(Ye)),V(tt,"$write_stylesheet",function(He,we){var Ne=this;return Ne.$raise(st("NotImplementedError"),""+K("SyntaxHighlighter")+" subclass "+Ne.$class()+" must implement the #write_stylesheet method since #write_stylesheet? returns true")}),v(tt,"$included",function(He){return He.$extend(K("Config"))}),tt.$private_class_method("included"),function(D,He){var we=ae(D,"Config"),Ne=[we].concat(He),Te=a.$r(Ne);return V(we,"$register_for",function(ye){var Z,B,q=this;return Z=Y(arguments),B=Z,Ue(Te("SyntaxHighlighter"),"register",[q].concat(G(Ue(B,"map",[],function(ee){return ee==null&&(ee=Ye),ee.$to_s()}))))},-1)}(lt[0],lt),function(D,He){var we=ae(D,"Factory"),Ne=[we].concat(He),Te=a.$r(Ne);return V(we,"$register",function(ye,Z){var B,q,ie=this;return B=Y(arguments,1),q=B,Ue(q,"each",[],function ee($e){var U,g=ee.$$s==null?this:ee.$$s;return $e==null&&($e=Ye),U=[$e,ye],Ue(g.$registry(),"[]=",U),U[U.length-1]},{$$s:ie})},-2),V(we,"$for",function(ye){var Z=this;return Z.$registry()["$[]"](ye)}),V(we,"$create",function(ye,Z,B){var q=this,ie=Ye;return Z==null&&(Z="html5"),B==null&&(B=te([],{})),Ie(ie=q.$for(ye))?(C(Oe,ie)&&(ie=ie.$new(ye,Z,B)),Ie(ie.$name())||q.$raise(st("NameError"),""+ie.$class()+" must specify a value for `name'"),ie):Ye},-2),we.$private(),V(we,"$registry",function(){var ye=this;return ye.$raise(st("NotImplementedError"),""+Te("Factory")+" subclass "+ye.$class()+" must implement the #registry method")})}(lt[0],lt),function(D,He,we){var Ne=ze(D,He,"CustomFactory"),Te=[Ne].concat(we),ue=a.$r(Te);return Ne.$include(ue("Factory")),V(Ne,"$initialize",function(Z){var B=this,q=Ye;return Z==null&&(Z=Ye),B.registry=Ie(q=Z)?q:te([],{})},-1),Ne.$private(),Ne.$attr_reader("registry")}(lt[0],null,lt),function(D,He){var we=ae(D,"DefaultFactory"),Ne=[we].concat(He),Te=a.$r(Ne);return we.$include(Te("Factory")),Ge(Ne[0],"@@registry",te([],{})),we.$private(),V(we,"$registry",function(){return qe(Ne[0],"@@registry",!1)}),Ye}(lt[0],lt),function(D,He,we){var Ne=ze(D,He,"DefaultFactoryProxy"),Te=[Ne].concat(we),ue=a.$r(Te);return Ne.$include(ue("DefaultFactory")),Ye}(lt[0],K("CustomFactory"),lt),function(D,He,we){var Ne=ze(D,He,"Base"),Te=[Ne].concat(we),ue=a.$r(Te),ye=Ne.$$prototype;return ye.pre_class=Ye,Ne.$include(ue("SyntaxHighlighter")),V(Ne,"$format",function(B,q,ie){var ee=this,$e=Ye,U=Ye,g=Ye,o=Ye;return $e=Ie(ie["$[]"]("nowrap"))?""+ee.pre_class+" highlight nowrap":""+ee.pre_class+" highlight",Ie(U=ie["$[]"]("transform"))?(U["$[]"](g=te(["class"],{class:$e}),o=Ie(q)?te(["data-lang"],{"data-lang":q}):te([],{})),Ie(q=o.$delete("data-lang"))&&o["$[]="]("data-lang",q),"<pre"+Ue(g,"map",[],function(T,k){return T==null&&(T=Ye),k==null&&(k=Ye)," "+T+'="'+k+'"'}).$join()+"><code"+Ue(o,"map",[],function(T,k){return T==null&&(T=Ye),k==null&&(k=Ye)," "+T+'="'+k+'"'}).$join()+">"+B.$content()+"</code></pre>"):'<pre class="'+$e+'"><code'+(Ie(q)?' data-lang="'+q+'"':"")+">"+B.$content()+"</code></pre>"})}(lt[0],null,lt),tt.$extend(K("DefaultFactory"))}(z[0],z)}(dt[0],dt),je.$require("asciidoctor/syntax_highlighter.rb/../syntax_highlighter/highlightjs"),Ye},Opal.modules["asciidoctor/timings"]=function(a){var ae=a.module,te=a.klass,V=a.hash2,_e=a.def,v=a.send,Y=a.rb_minus,Ue=a.slice,G=a.rb_plus,Ie=a.truthy,C=a.rb_gt,Oe=a.gvars,ze=a.eqeq,Ge=a.const_set,qe=[],je=a.nil,dt=a.$$$;return a.add_stubs("[]=,now,-,delete,reduce,+,[],>,time,puts,sprintf,to_f,read_parse,convert,read_parse_convert,private,==,const_defined?,clock_gettime"),function(Ye,st){var We=ae(Ye,"Asciidoctor"),Je=[We].concat(st);return function($t,z,et){var E=te($t,z,"Timings"),tt,lt,K,D,He=[E].concat(et),we=a.$r(He),Ne=E.$$prototype;return Ne.timers=Ne.log=je,_e(E,"$initialize",function(){var ue=this;return ue.log=V([],{}),ue.timers=V([],{})}),_e(E,"$start",function(ue){var ye,Z=this;return ye=[ue,Z.$now()],v(Z.timers,"[]=",ye),ye[ye.length-1]}),_e(E,"$record",function(ue){var ye,Z=this;return ye=[ue,Y(Z.$now(),Z.timers.$delete(ue))],v(Z.log,"[]=",ye),ye[ye.length-1]}),_e(E,"$time",function(ue){var ye,Z,B=this,q=je;return ye=Ue(arguments),Z=ye,q=v(Z,"reduce",[0],function ie(ee,$e){var U=ie.$$s==null?this:ie.$$s,g=je;return U.log==null&&(U.log=je),ee==null&&(ee=je),$e==null&&($e=je),G(ee,Ie(g=U.log["$[]"]($e))?g:0)},{$$s:B}),Ie(C(q,0))?q:je},-1),_e(E,"$read",function(){var ue=this;return ue.$time("read")}),_e(E,"$parse",function(){var ue=this;return ue.$time("parse")}),_e(E,"$read_parse",function(){var ue=this;return ue.$time("read","parse")}),_e(E,"$convert",function(){var ue=this;return ue.$time("convert")}),_e(E,"$read_parse_convert",function(){var ue=this;return ue.$time("read","parse","convert")}),_e(E,"$write",function(){var ue=this;return ue.$time("write")}),_e(E,"$total",function(){var ue=this;return ue.$time("read","parse","convert","write")}),_e(E,"$print_report",function(ue,ye){var Z=this;return Oe.stdout==null&&(Oe.stdout=je),ue==null&&(ue=Oe.stdout),ye==null&&(ye=je),Ie(ye)&&ue.$puts("Input file: "+ye),ue.$puts(" Time to read and parse source: "+Z.$sprintf("%05.5f",Z.$read_parse().$to_f())),ue.$puts(" Time to convert document: "+Z.$sprintf("%05.5f",Z.$convert().$to_f())),ue.$puts(" Total time (read, parse and convert): "+Z.$sprintf("%05.5f",Z.$read_parse_convert().$to_f()))},-1),E.$private(),Ie(dt("Process")["$const_defined?"]("CLOCK_MONOTONIC",!1))&&ze((tt=dt("::","Process","skip_raise"))&&(lt=tt,lt)&&(K=lt)&&((D=K.$clock_gettime)&&!D.$$stub||K["$respond_to_missing?"]("clock_gettime"))?"method":je,"method")?(Ge(He[0],"CLOCK_ID",dt(dt("Process"),"CLOCK_MONOTONIC")),_e(E,"$now",function(){return dt("Process").$clock_gettime(we("CLOCK_ID"))})):_e(E,"$now",function(){return dt("Time").$now()})}(Je[0],null,Je)}(qe[0],qe)},Opal.modules["asciidoctor/converter/html5"]=function(a){var ae=a.module,te=a.klass,V=a.const_set,_e=a.hash2,v=a.regexp,Y=a.eqeq,Ue=a.def,G=a.send2,Ie=a.find_super,C=a.truthy,Oe=a.send,ze=a.rb_gt,Ge=a.rb_plus,qe=a.not,je=a.neqeq,dt=a.rb_le,Ye=a.rb_lt,st=a.to_ary,We=a.rb_times,Je=a.rb_minus,$t=a.gvars,z=a.return_val,et=a.alias,E=a.eqeqeq,tt=a.slice,lt=a.to_a,K=[],D=a.nil,He=a.$$$;return a.add_stubs("register_for,default=,==,[],init_backend_traits,node_name,convert_inline_quoted,convert_paragraph,convert_inline_anchor,convert_section,convert_listing,convert_literal,convert_ulist,convert_olist,convert_dlist,convert_admonition,convert_colist,convert_embedded,convert_example,convert_floating_title,convert_image,convert_inline_break,convert_inline_button,convert_inline_callout,convert_inline_footnote,convert_inline_image,convert_inline_indexterm,convert_inline_kbd,convert_inline_menu,convert_open,convert_page_break,convert_preamble,convert_quote,convert_sidebar,convert_stem,convert_table,convert_thematic_break,convert_verse,convert_video,convert_document,convert_toc,convert_pass,convert_audio,empty?,attr,attr?,<<,include?,sub_replacements,gsub,extname,slice,length,doctitle,normalize_web_path,primary_stylesheet_data,instance,read_contents,syntax_highlighter,size,docinfo,id,sections?,doctype,role?,role,join,noheader,convert,converter,generate_manname_section,header?,notitle,title,header,each,authors,>,name,email,sub_macros,+,downcase,concat,content,!,footnotes?,footnotes,index,text,nofooter,docinfo?,[]=,delete_at,inspect,!=,to_i,attributes,document,sections,level,caption,captioned_title,<=,numbered,<,sectname,sectnum,convert_outline,title?,icon_uri,compact,media_uri,option?,append_boolean_attribute,style,items,blocks?,text?,chomp,safe,read_svg_contents,alt,image_uri,encode_attribute_value,append_link_constraint_attrs,highlight?,to_sym,format,*,-,count,end_with?,start_with?,list_marker_keyword,parent,warn,logger,context,error,content_only,new,columns,to_h,rows,colspan,rowspan,unshift,shift,split,pop,nil_or_empty?,type,===,catalog,get_root_document,xreftext,target,reftext,chop,sub,match,private,upcase,nested?,parent_document,handles?,to_s,send"),function(we,Ne){var Te=ae(we,"Asciidoctor"),ue=[Te].concat(Ne),ye=a.$r(ue);return function(Z,B,q){var ie=te(Z,B,"Html5Converter"),ee=[ie].concat(q),$e=a.$r(ee),U=ie.$$prototype;return U.void_element_slash=U.xml_mode=U.refs=U.resolving_xref=D,ie.$register_for("html5"),V(ee[0],"QUOTE_TAGS",_e(["monospaced","emphasis","strong","double","single","mark","superscript","subscript","asciimath","latexmath"],{monospaced:["<code>","</code>",!0],emphasis:["<em>","</em>",!0],strong:["<strong>","</strong>",!0],double:["“","”"],single:["‘","’"],mark:["<mark>","</mark>",!0],superscript:["<sup>","</sup>",!0],subscript:["<sub>","</sub>",!0],asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]}))["$default="](["",""]),V(ee[0],"DropAnchorRx",/<(?:a\b[^>]*|\/a)>/),V(ee[0],"StemBreakRx",/ *\\\n(?:\\?\n)*|\n\n+/),V(ee[0],"SvgPreambleRx",v(["^",$e("CC_ALL"),"*?(?=<svg[\\s>])"])),V(ee[0],"SvgStartTagRx",/^<svg(?:\s[^>]*)?>/),V(ee[0],"DimensionAttributeRx",v([`\\s(?:width|height|style)=(["'])`,$e("CC_ANY"),"*?\\1"])),Ue(ie,"$initialize",function(o,m){var T=this,k=D;return m==null&&(m=_e([],{})),T.backend=o,Y(m["$[]"]("htmlsyntax"),"xml")?(k="xml",T.xml_mode=!0,T.void_element_slash="/"):(k="html",T.xml_mode=D,T.void_element_slash=""),T.$init_backend_traits(_e(["basebackend","filetype","htmlsyntax","outfilesuffix","supports_templates"],{basebackend:"html",filetype:"html",htmlsyntax:k,outfilesuffix:".html",supports_templates:!0}))},-2),Ue(ie,"$convert",function g(o,m,T){var k=g.$$p||D,y=this;switch(g.$$p=null,m==null&&(m=o.$node_name()),T==null&&(T=D),m){case"inline_quoted":return y.$convert_inline_quoted(o);case"paragraph":return y.$convert_paragraph(o);case"inline_anchor":return y.$convert_inline_anchor(o);case"section":return y.$convert_section(o);case"listing":return y.$convert_listing(o);case"literal":return y.$convert_literal(o);case"ulist":return y.$convert_ulist(o);case"olist":return y.$convert_olist(o);case"dlist":return y.$convert_dlist(o);case"admonition":return y.$convert_admonition(o);case"colist":return y.$convert_colist(o);case"embedded":return y.$convert_embedded(o);case"example":return y.$convert_example(o);case"floating_title":return y.$convert_floating_title(o);case"image":return y.$convert_image(o);case"inline_break":return y.$convert_inline_break(o);case"inline_button":return y.$convert_inline_button(o);case"inline_callout":return y.$convert_inline_callout(o);case"inline_footnote":return y.$convert_inline_footnote(o);case"inline_image":return y.$convert_inline_image(o);case"inline_indexterm":return y.$convert_inline_indexterm(o);case"inline_kbd":return y.$convert_inline_kbd(o);case"inline_menu":return y.$convert_inline_menu(o);case"open":return y.$convert_open(o);case"page_break":return y.$convert_page_break(o);case"preamble":return y.$convert_preamble(o);case"quote":return y.$convert_quote(o);case"sidebar":return y.$convert_sidebar(o);case"stem":return y.$convert_stem(o);case"table":return y.$convert_table(o);case"thematic_break":return y.$convert_thematic_break(o);case"verse":return y.$convert_verse(o);case"video":return y.$convert_video(o);case"document":return y.$convert_document(o);case"toc":return y.$convert_toc(o);case"pass":return y.$convert_pass(o);case"audio":return y.$convert_audio(o);default:return G(y,Ie(y,"convert",g,!1,!0),"convert",[o,m,T],k)}},-2),Ue(ie,"$convert_document",function(o){var m=this,T=D,k=D,y=D,L=D,j=D,de=D,oe=D,ke=D,Be=D,Xe=D,it=D,ht=D,at=D,mt=D,yt=D,xt=D,vt=D,Tt=D,St=D,Yt=D,Bt=D,er=D,Kt=D,jt=D,Wt=D;return T="<br"+(k=m.void_element_slash)+">",C((y=o.$attr("asset-uri-scheme","https"))["$empty?"]())||(y=""+y+":"),L=""+y+"//cdnjs.cloudflare.com/ajax/libs",j=o["$attr?"]("linkcss"),de=C(o["$attr?"]("max-width"))?' style="max-width: '+o.$attr("max-width")+';"':"",oe=["<!DOCTYPE html>"],ke=C(o["$attr?"]("nolang"))?"":' lang="'+o.$attr("lang","en")+'"',oe["$<<"]("<html"+(C(m.xml_mode)?' xmlns="http://www.w3.org/1999/xhtml"':"")+ke+">"),oe["$<<"](`<head>
|
|
427
|
-
<meta charset="`+o.$attr("encoding","UTF-8")+'"'+k+`>
|
|
428
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge"`+k+`>
|
|
429
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0"`+k+`>
|
|
430
|
-
<meta name="generator" content="Asciidoctor `+o.$attr("asciidoctor-version")+'"'+k+">"),C(o["$attr?"]("app-name"))&&oe["$<<"]('<meta name="application-name" content="'+o.$attr("app-name")+'"'+k+">"),C(o["$attr?"]("description"))&&oe["$<<"]('<meta name="description" content="'+o.$attr("description")+'"'+k+">"),C(o["$attr?"]("keywords"))&&oe["$<<"]('<meta name="keywords" content="'+o.$attr("keywords")+'"'+k+">"),C(o["$attr?"]("authors"))&&oe["$<<"]('<meta name="author" content="'+(C((Be=o.$sub_replacements(o.$attr("authors")))["$include?"]("<"))?Be.$gsub($e("XmlSanitizeRx"),""):Be)+'"'+k+">"),C(o["$attr?"]("copyright"))&&oe["$<<"]('<meta name="copyright" content="'+o.$attr("copyright")+'"'+k+">"),C(o["$attr?"]("favicon"))&&(C((Xe=o.$attr("favicon"))["$empty?"]())?(Xe="favicon.ico",it="image/x-icon"):C(ht=$e("Helpers").$extname(Xe,D))?it=Y(ht,".ico")?"image/x-icon":"image/"+ht.$slice(1,ht.$length()):it="image/x-icon",oe["$<<"]('<link rel="icon" type="'+it+'" href="'+Xe+'"'+k+">")),oe["$<<"]("<title>"+o.$doctitle(_e(["sanitize","use_fallback"],{sanitize:!0,use_fallback:!0}))+"</title>"),C($e("DEFAULT_STYLESHEET_KEYS")["$include?"](o.$attr("stylesheet")))?(C(at=o.$attr("webfonts"))&&oe["$<<"]('<link rel="stylesheet" href="'+y+"//fonts.googleapis.com/css?family="+(C(at["$empty?"]())?"Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700":at)+'"'+k+">"),C(j)?oe["$<<"]('<link rel="stylesheet" href="'+o.$normalize_web_path($e("DEFAULT_STYLESHEET_NAME"),o.$attr("stylesdir",""),!1)+'"'+k+">"):oe["$<<"](`<style>
|
|
431
|
-
`+$e("Stylesheets").$instance().$primary_stylesheet_data()+`
|
|
432
|
-
</style>`)):C(o["$attr?"]("stylesheet"))&&(C(j)?oe["$<<"]('<link rel="stylesheet" href="'+o.$normalize_web_path(o.$attr("stylesheet"),o.$attr("stylesdir",""))+'"'+k+">"):oe["$<<"](`<style>
|
|
433
|
-
`+o.$read_contents(o.$attr("stylesheet"),_e(["start","warn_on_failure","label"],{start:o.$attr("stylesdir"),warn_on_failure:!0,label:"stylesheet"}))+`
|
|
434
|
-
</style>`)),C(o["$attr?"]("icons","font"))&&(C(o["$attr?"]("iconfont-remote"))?oe["$<<"]('<link rel="stylesheet" href="'+o.$attr("iconfont-cdn",""+L+"/font-awesome/"+$e("FONT_AWESOME_VERSION")+"/css/font-awesome.min.css")+'"'+k+">"):(mt=""+o.$attr("iconfont-name","font-awesome")+".css",oe["$<<"]('<link rel="stylesheet" href="'+o.$normalize_web_path(mt,o.$attr("stylesdir",""),!1)+'"'+k+">"))),C(yt=o.$syntax_highlighter())&&oe["$<<"](xt=oe.$size()),C((vt=o.$docinfo())["$empty?"]())||oe["$<<"](vt),oe["$<<"]("</head>"),Tt=C(o.$id())?' id="'+o.$id()+'"':"",C(St=o["$sections?"]())&&C(o["$attr?"]("toc-class"))&&C(o["$attr?"]("toc"))&&C(o["$attr?"]("toc-placement","auto"))?Yt=[o.$doctype(),o.$attr("toc-class"),"toc-"+o.$attr("toc-position","header")]:Yt=[o.$doctype()],C(o["$role?"]())&&Yt["$<<"](o.$role()),oe["$<<"]("<body"+Tt+' class="'+Yt.$join(" ")+'">'),C((vt=o.$docinfo("header"))["$empty?"]())||oe["$<<"](vt),C(o.$noheader())||(oe["$<<"]('<div id="header"'+de+">"),Y(o.$doctype(),"manpage")?(oe["$<<"]("<h1>"+o.$doctitle()+" Manual Page</h1>"),C(St)&&C(o["$attr?"]("toc"))&&C(o["$attr?"]("toc-placement","auto"))&&oe["$<<"]('<div id="toc" class="'+o.$attr("toc-class","toc")+`">
|
|
435
|
-
<div id="toctitle">`+o.$attr("toc-title")+`</div>
|
|
436
|
-
`+o.$converter().$convert(o,"outline")+`
|
|
437
|
-
</div>`),C(o["$attr?"]("manpurpose"))&&oe["$<<"](m.$generate_manname_section(o))):(C(o["$header?"]())&&(C(o.$notitle())||oe["$<<"]("<h1>"+o.$header().$title()+"</h1>"),Bt=[],er=1,Oe(o.$authors(),"each",[],function(nr){return nr==null&&(nr=D),Bt["$<<"]('<span id="author'+(C(ze(er,1))?er:"")+'" class="author">'+o.$sub_replacements(nr.$name())+"</span>"+T),C(nr.$email())&&Bt["$<<"]('<span id="email'+(C(ze(er,1))?er:"")+'" class="email">'+o.$sub_macros(nr.$email())+"</span>"+T),er=Ge(er,1)}),C(o["$attr?"]("revnumber"))&&Bt["$<<"]('<span id="revnumber">'+(C(Kt=o.$attr("version-label"))?Kt:"").$downcase()+" "+o.$attr("revnumber")+(C(o["$attr?"]("revdate"))?",":"")+"</span>"),C(o["$attr?"]("revdate"))&&Bt["$<<"]('<span id="revdate">'+o.$attr("revdate")+"</span>"),C(o["$attr?"]("revremark"))&&Bt["$<<"](""+T+'<span id="revremark">'+o.$attr("revremark")+"</span>"),C(Bt["$empty?"]())||(oe["$<<"]('<div class="details">'),oe.$concat(Bt),oe["$<<"]("</div>"))),C(St)&&C(o["$attr?"]("toc"))&&C(o["$attr?"]("toc-placement","auto"))&&oe["$<<"]('<div id="toc" class="'+o.$attr("toc-class","toc")+`">
|
|
438
|
-
<div id="toctitle">`+o.$attr("toc-title")+`</div>
|
|
439
|
-
`+o.$converter().$convert(o,"outline")+`
|
|
440
|
-
</div>`)),oe["$<<"]("</div>")),oe["$<<"]('<div id="content"'+de+`>
|
|
441
|
-
`+o.$content()+`
|
|
442
|
-
</div>`),C(o["$footnotes?"]())&&qe(o["$attr?"]("nofootnotes"))&&(oe["$<<"]('<div id="footnotes"'+de+`>
|
|
443
|
-
<hr`+k+">"),Oe(o.$footnotes(),"each",[],function(nr){return nr==null&&(nr=D),oe["$<<"]('<div class="footnote" id="_footnotedef_'+nr.$index()+`">
|
|
444
|
-
<a href="#_footnoteref_`+nr.$index()+'">'+nr.$index()+"</a>. "+nr.$text()+`
|
|
445
|
-
</div>`)}),oe["$<<"]("</div>")),C(o.$nofooter())||(oe["$<<"]('<div id="footer"'+de+">"),oe["$<<"]('<div id="footer-text">'),C(o["$attr?"]("revnumber"))&&oe["$<<"](""+o.$attr("version-label")+" "+o.$attr("revnumber")+T),C(o["$attr?"]("last-update-label"))&&qe(o["$attr?"]("reproducible"))&&oe["$<<"](""+o.$attr("last-update-label")+" "+o.$attr("docdatetime")),oe["$<<"]("</div>"),oe["$<<"]("</div>")),C(yt)&&(C(yt["$docinfo?"]("head"))?oe["$[]="](xt,yt.$docinfo("head",o,_e(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:L,linkcss:j,self_closing_tag_slash:k}))):oe.$delete_at(xt),C(yt["$docinfo?"]("footer"))&&oe["$<<"](yt.$docinfo("footer",o,_e(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:L,linkcss:j,self_closing_tag_slash:k})))),C(o["$attr?"]("stem"))&&(jt=o.$attr("eqnums","none"),C(jt["$empty?"]())&&(jt="AMS"),Wt=' equationNumbers: { autoNumber: "'+jt+'" } ',oe["$<<"](`<script type="text/x-mathjax-config">
|
|
446
|
-
MathJax.Hub.Config({
|
|
447
|
-
messageStyle: "none",
|
|
448
|
-
tex2jax: {
|
|
449
|
-
inlineMath: [`+$e("INLINE_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+`],
|
|
450
|
-
displayMath: [`+$e("BLOCK_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+`],
|
|
451
|
-
ignoreClass: "nostem|nolatexmath"
|
|
452
|
-
},
|
|
453
|
-
asciimath2jax: {
|
|
454
|
-
delimiters: [`+$e("BLOCK_MATH_DELIMITERS")["$[]"]("asciimath").$inspect()+`],
|
|
455
|
-
ignoreClass: "nostem|noasciimath"
|
|
456
|
-
},
|
|
457
|
-
TeX: {`+Wt+`}
|
|
458
|
-
})
|
|
459
|
-
MathJax.Hub.Register.StartupHook("AsciiMath Jax Ready", function () {
|
|
460
|
-
MathJax.InputJax.AsciiMath.postfilterHooks.Add(function (data, node) {
|
|
461
|
-
if ((node = data.script.parentNode) && (node = node.parentNode) && node.classList.contains("stemblock")) {
|
|
462
|
-
data.math.root.display = "block"
|
|
463
|
-
}
|
|
464
|
-
return data
|
|
465
|
-
})
|
|
466
|
-
})
|
|
467
|
-
<\/script>
|
|
468
|
-
<script src="`+L+"/mathjax/"+$e("MATHJAX_VERSION")+'/MathJax.js?config=TeX-MML-AM_HTMLorMML"><\/script>')),C((vt=o.$docinfo("footer"))["$empty?"]())||oe["$<<"](vt),oe["$<<"]("</body>"),oe["$<<"]("</html>"),oe.$join($e("LF"))}),Ue(ie,"$convert_embedded",function(o){var m=this,T=D,k=D,y=D;return T=[],Y(o.$doctype(),"manpage")?(C(o.$notitle())||(k=C(o.$id())?' id="'+o.$id()+'"':"",T["$<<"]("<h1"+k+">"+o.$doctitle()+" Manual Page</h1>")),C(o["$attr?"]("manpurpose"))&&T["$<<"](m.$generate_manname_section(o))):C(o["$header?"]())&&qe(o.$notitle())&&(k=C(o.$id())?' id="'+o.$id()+'"':"",T["$<<"]("<h1"+k+">"+o.$header().$title()+"</h1>")),C(o["$sections?"]())&&C(o["$attr?"]("toc"))&&je(y=o.$attr("toc-placement"),"macro")&&je(y,"preamble")&&T["$<<"](`<div id="toc" class="toc">
|
|
469
|
-
<div id="toctitle">`+o.$attr("toc-title")+`</div>
|
|
470
|
-
`+o.$converter().$convert(o,"outline")+`
|
|
471
|
-
</div>`),T["$<<"](o.$content()),C(o["$footnotes?"]())&&qe(o["$attr?"]("nofootnotes"))&&(T["$<<"](`<div id="footnotes">
|
|
472
|
-
<hr`+m.void_element_slash+">"),Oe(o.$footnotes(),"each",[],function(j){return j==null&&(j=D),T["$<<"]('<div class="footnote" id="_footnotedef_'+j.$index()+`">
|
|
473
|
-
<a href="#_footnoteref_`+j.$index()+'">'+j.$index()+"</a>. "+j.$text()+`
|
|
474
|
-
</div>`)}),T["$<<"]("</div>")),T.$join($e("LF"))}),Ue(ie,"$convert_outline",function(o,m){var T=this,k=D,y=D,L=D,j=D,de=D,oe=D;return m==null&&(m=_e([],{})),C(o["$sections?"]())?(k=C(y=m["$[]"]("sectnumlevels"))?y:(C(L=o.$document().$attributes()["$[]"]("sectnumlevels"))?L:3).$to_i(),j=C(y=m["$[]"]("toclevels"))?y:(C(L=o.$document().$attributes()["$[]"]("toclevels"))?L:2).$to_i(),de=o.$sections(),oe=['<ul class="sectlevel'+de["$[]"](0).$level()+'">'],Oe(de,"each",[],function ke(Be){var Xe=ke.$$s==null?this:ke.$$s,it=D,ht=D,at=D,mt=D;if(Be==null&&(Be=D),it=Be.$level(),C(Be.$caption()))ht=Be.$captioned_title();else if(C(Be.$numbered())&&C(dt(it,k)))if(C(Ye(it,2))&&Y(o.$document().$doctype(),"book"))switch(Be.$sectname()){case"chapter":ht=(C(at=o.$document().$attributes()["$[]"]("chapter-signifier"))?""+at+" ":"")+Be.$sectnum()+" "+Be.$title();break;case"part":ht=(C(at=o.$document().$attributes()["$[]"]("part-signifier"))?""+at+" ":"")+Be.$sectnum(D,":")+" "+Be.$title();break;default:ht=""+Be.$sectnum()+" "+Be.$title()}else ht=""+Be.$sectnum()+" "+Be.$title();else ht=Be.$title();return C(ht["$include?"]("<a"))&&(ht=ht.$gsub($e("DropAnchorRx"),"")),C(Ye(it,j))&&C(mt=Xe.$convert_outline(Be,_e(["toclevels","sectnumlevels"],{toclevels:j,sectnumlevels:k})))?(oe["$<<"]('<li><a href="#'+Be.$id()+'">'+ht+"</a>"),oe["$<<"](mt),oe["$<<"]("</li>")):oe["$<<"]('<li><a href="#'+Be.$id()+'">'+ht+"</a></li>")},{$$s:T}),oe["$<<"]("</ul>"),oe.$join($e("LF"))):D},-2),Ue(ie,"$convert_section",function(o){var m=D,T=D,k=D,y=D,L=D,j=D,de=D,oe=D;if(m=o.$document().$attributes(),T=o.$level(),C(o.$caption()))k=o.$captioned_title();else if(C(o.$numbered())&&C(dt(T,(C(y=m["$[]"]("sectnumlevels"))?y:3).$to_i())))if(C(Ye(T,2))&&Y(o.$document().$doctype(),"book"))switch(o.$sectname()){case"chapter":k=(C(L=m["$[]"]("chapter-signifier"))?""+L+" ":"")+o.$sectnum()+" "+o.$title();break;case"part":k=(C(L=m["$[]"]("part-signifier"))?""+L+" ":"")+o.$sectnum(D,":")+" "+o.$title();break;default:k=""+o.$sectnum()+" "+o.$title()}else k=""+o.$sectnum()+" "+o.$title();else k=o.$title();return C(o.$id())?(j=' id="'+(de=o.$id())+'"',C(m["$[]"]("sectlinks"))&&(k='<a class="link" href="#'+de+'">'+k+"</a>"),C(m["$[]"]("sectanchors"))&&(Y(m["$[]"]("sectanchors"),"after")?k=""+k+'<a class="anchor" href="#'+de+'"></a>':k='<a class="anchor" href="#'+de+'"></a>'+k)):j="",Y(T,0)?"<h1"+j+' class="sect0'+(C(oe=o.$role())?" "+oe:"")+'">'+k+`</h1>
|
|
475
|
-
`+o.$content():'<div class="sect'+T+(C(oe=o.$role())?" "+oe:"")+`">
|
|
476
|
-
<h`+Ge(T,1)+j+">"+k+"</h"+Ge(T,1)+`>
|
|
477
|
-
`+(Y(T,1)?`<div class="sectionbody">
|
|
478
|
-
`+o.$content()+`
|
|
479
|
-
</div>`:o.$content())+`
|
|
480
|
-
</div>`}),Ue(ie,"$convert_admonition",function(o){var m=this,T=D,k=D,y=D,L=D,j=D;return T=C(o.$id())?' id="'+o.$id()+'"':"",k=o.$attr("name"),y=C(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
|
|
481
|
-
`:"",C(o.$document()["$attr?"]("icons"))?C(o.$document()["$attr?"]("icons","font"))&&qe(o["$attr?"]("icon"))?L='<i class="fa icon-'+k+'" title="'+o.$attr("textlabel")+'"></i>':L='<img src="'+o.$icon_uri(k)+'" alt="'+o.$attr("textlabel")+'"'+m.void_element_slash+">":L='<div class="title">'+o.$attr("textlabel")+"</div>","<div"+T+' class="admonitionblock '+k+(C(j=o.$role())?" "+j:"")+`">
|
|
482
|
-
<table>
|
|
483
|
-
<tr>
|
|
484
|
-
<td class="icon">
|
|
485
|
-
`+L+`
|
|
486
|
-
</td>
|
|
487
|
-
<td class="content">
|
|
488
|
-
`+y+o.$content()+`
|
|
489
|
-
</td>
|
|
490
|
-
</tr>
|
|
491
|
-
</table>
|
|
492
|
-
</div>`}),Ue(ie,"$convert_audio",function(o){var m=this,T=D,k=D,y=D,L=D,j=D,de=D,oe=D,ke=D,Be=D;return T=m.xml_mode,k=C(o.$id())?' id="'+o.$id()+'"':"",y=["audioblock",o.$role()].$compact(),L=' class="'+y.$join(" ")+'"',j=C(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
|
|
493
|
-
`:"",de=o.$attr("start"),oe=o.$attr("end"),ke=C(de)||C(oe)?"#t="+(C(Be=de)?Be:"")+(C(oe)?","+oe:""):"","<div"+k+L+`>
|
|
494
|
-
`+j+`<div class="content">
|
|
495
|
-
<audio src="`+o.$media_uri(o.$attr("target"))+ke+'"'+(C(o["$option?"]("autoplay"))?m.$append_boolean_attribute("autoplay",T):"")+(C(o["$option?"]("nocontrols"))?"":m.$append_boolean_attribute("controls",T))+(C(o["$option?"]("loop"))?m.$append_boolean_attribute("loop",T):"")+`>
|
|
496
|
-
Your browser does not support the audio tag.
|
|
497
|
-
</audio>
|
|
498
|
-
</div>
|
|
499
|
-
</div>`}),Ue(ie,"$convert_colist",function(o){var m,T=this,k=D,y=D,L=D,j=D,de=D,oe=D;return k=[],y=C(o.$id())?' id="'+o.$id()+'"':"",L=["colist",o.$style(),o.$role()].$compact(),j=' class="'+L.$join(" ")+'"',k["$<<"]("<div"+y+j+">"),C(o["$title?"]())&&k["$<<"]('<div class="title">'+o.$title()+"</div>"),C(o.$document()["$attr?"]("icons"))?(k["$<<"]("<table>"),m=[o.$document()["$attr?"]("icons","font"),0],de=m[0],oe=m[1],Oe(o.$items(),"each",[],function ke(Be){var Xe=ke.$$s==null?this:ke.$$s,it=D;return Xe.void_element_slash==null&&(Xe.void_element_slash=D),Be==null&&(Be=D),oe=Ge(oe,1),C(de)?it='<i class="conum" data-value="'+oe+'"></i><b>'+oe+"</b>":it='<img src="'+o.$icon_uri("callouts/"+oe)+'" alt="'+oe+'"'+Xe.void_element_slash+">",k["$<<"](`<tr>
|
|
500
|
-
<td>`+it+`</td>
|
|
501
|
-
<td>`+Be.$text()+(C(Be["$blocks?"]())?Ge($e("LF"),Be.$content()):"")+`</td>
|
|
502
|
-
</tr>`)},{$$s:T}),k["$<<"]("</table>")):(k["$<<"]("<ol>"),Oe(o.$items(),"each",[],function(Be){return Be==null&&(Be=D),k["$<<"](`<li>
|
|
503
|
-
<p>`+Be.$text()+"</p>"+(C(Be["$blocks?"]())?Ge($e("LF"),Be.$content()):"")+`
|
|
504
|
-
</li>`)}),k["$<<"]("</ol>")),k["$<<"]("</div>"),k.$join($e("LF"))}),Ue(ie,"$convert_dlist",function(o){var m=this,T=D,k=D,y=D,L=D,j=D,de=D,oe=D;switch(T=[],k=C(o.$id())?' id="'+o.$id()+'"':"",o.$style()){case"qanda":y=["qlist","qanda",o.$role()];break;case"horizontal":y=["hdlist",o.$role()];break;default:y=["dlist",o.$style(),o.$role()]}switch(L=' class="'+y.$compact().$join(" ")+'"',T["$<<"]("<div"+k+L+">"),C(o["$title?"]())&&T["$<<"]('<div class="title">'+o.$title()+"</div>"),o.$style()){case"qanda":T["$<<"]("<ol>"),Oe(o.$items(),"each",[],function(Be,Xe){return Be==null&&(Be=D),Xe==null&&(Xe=D),T["$<<"]("<li>"),Oe(Be,"each",[],function(ht){return ht==null&&(ht=D),T["$<<"]("<p><em>"+ht.$text()+"</em></p>")}),C(Xe)&&(C(Xe["$text?"]())&&T["$<<"]("<p>"+Xe.$text()+"</p>"),C(Xe["$blocks?"]())&&T["$<<"](Xe.$content())),T["$<<"]("</li>")}),T["$<<"]("</ol>");break;case"horizontal":j=m.void_element_slash,T["$<<"]("<table>"),(C(o["$attr?"]("labelwidth"))||C(o["$attr?"]("itemwidth")))&&(T["$<<"]("<colgroup>"),de=C(o["$attr?"]("labelwidth"))?' style="width: '+o.$attr("labelwidth").$chomp("%")+'%;"':"",T["$<<"]("<col"+de+j+">"),de=C(o["$attr?"]("itemwidth"))?' style="width: '+o.$attr("itemwidth").$chomp("%")+'%;"':"",T["$<<"]("<col"+de+j+">"),T["$<<"]("</colgroup>")),Oe(o.$items(),"each",[],function(Be,Xe){var it=D;return Be==null&&(Be=D),Xe==null&&(Xe=D),T["$<<"]("<tr>"),T["$<<"]('<td class="hdlist1'+(C(o["$option?"]("strong"))?" strong":"")+'">'),it=!0,Oe(Be,"each",[],function(at){return at==null&&(at=D),C(it)||T["$<<"]("<br"+j+">"),T["$<<"](at.$text()),it=D}),T["$<<"]("</td>"),T["$<<"]('<td class="hdlist2">'),C(Xe)&&(C(Xe["$text?"]())&&T["$<<"]("<p>"+Xe.$text()+"</p>"),C(Xe["$blocks?"]())&&T["$<<"](Xe.$content())),T["$<<"]("</td>"),T["$<<"]("</tr>")}),T["$<<"]("</table>");break;default:T["$<<"]("<dl>"),oe=C(o.$style())?"":' class="hdlist1"',Oe(o.$items(),"each",[],function(Be,Xe){return Be==null&&(Be=D),Xe==null&&(Xe=D),Oe(Be,"each",[],function(ht){return ht==null&&(ht=D),T["$<<"]("<dt"+oe+">"+ht.$text()+"</dt>")}),C(Xe)?(T["$<<"]("<dd>"),C(Xe["$text?"]())&&T["$<<"]("<p>"+Xe.$text()+"</p>"),C(Xe["$blocks?"]())&&T["$<<"](Xe.$content()),T["$<<"]("</dd>")):D}),T["$<<"]("</dl>")}return T["$<<"]("</div>"),T.$join($e("LF"))}),Ue(ie,"$convert_example",function(o){var m=D,T=D,k=D,y=D,L=D;return m=C(o.$id())?' id="'+o.$id()+'"':"",C(o["$option?"]("collapsible"))?(T=C(o.$role())?' class="'+o.$role()+'"':"",k=C(o["$title?"]())?'<summary class="title">'+o.$title()+"</summary>":'<summary class="title">Details</summary>',"<details"+m+T+(C(o["$option?"]("open"))?" open":"")+`>
|
|
505
|
-
`+k+`
|
|
506
|
-
<div class="content">
|
|
507
|
-
`+o.$content()+`
|
|
508
|
-
</div>
|
|
509
|
-
</details>`):(y=C(o["$title?"]())?'<div class="title">'+o.$captioned_title()+`</div>
|
|
510
|
-
`:"","<div"+m+' class="exampleblock'+(C(L=o.$role())?" "+L:"")+`">
|
|
511
|
-
`+y+`<div class="content">
|
|
512
|
-
`+o.$content()+`
|
|
513
|
-
</div>
|
|
514
|
-
</div>`)}),Ue(ie,"$convert_floating_title",function(o){var m=D,T=D,k=D;return m="h"+Ge(o.$level(),1),T=C(o.$id())?' id="'+o.$id()+'"':"",k=[o.$style(),o.$role()].$compact(),"<"+m+T+' class="'+k.$join(" ")+'">'+o.$title()+"</"+m+">"}),Ue(ie,"$convert_image",function(o){var m=this,T=D,k=D,y=D,L=D,j=D,de=D,oe=D,ke=D,Be=D,Xe=D;return T=o.$attr("target"),k=C(o["$attr?"]("width"))?' width="'+o.$attr("width")+'"':"",y=C(o["$attr?"]("height"))?' height="'+o.$attr("height")+'"':"",(C(o["$attr?"]("format","svg"))||C(T["$include?"](".svg")))&&C(Ye(o.$document().$safe(),He($e("SafeMode"),"SECURE")))?C(o["$option?"]("inline"))?L=C(j=m.$read_svg_contents(o,T))?j:'<span class="alt">'+o.$alt()+"</span>":C(o["$option?"]("interactive"))?(de=C(o["$attr?"]("fallback"))?'<img src="'+o.$image_uri(o.$attr("fallback"))+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+k+y+m.void_element_slash+">":'<span class="alt">'+o.$alt()+"</span>",L='<object type="image/svg+xml" data="'+o.$image_uri(T)+'"'+k+y+">"+de+"</object>"):L='<img src="'+o.$image_uri(T)+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+k+y+m.void_element_slash+">":L='<img src="'+o.$image_uri(T)+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+k+y+m.void_element_slash+">",C(o["$attr?"]("link"))&&(L='<a class="image" href="'+o.$attr("link")+'"'+m.$append_link_constraint_attrs(o).$join()+">"+L+"</a>"),oe=C(o.$id())?' id="'+o.$id()+'"':"",ke=["imageblock"],C(o["$attr?"]("float"))&&ke["$<<"](o.$attr("float")),C(o["$attr?"]("align"))&&ke["$<<"]("text-"+o.$attr("align")),C(o.$role())&&ke["$<<"](o.$role()),Be=' class="'+ke.$join(" ")+'"',Xe=C(o["$title?"]())?`
|
|
515
|
-
<div class="title">`+o.$captioned_title()+"</div>":"","<div"+oe+Be+`>
|
|
516
|
-
<div class="content">
|
|
517
|
-
`+L+`
|
|
518
|
-
</div>`+Xe+`
|
|
519
|
-
</div>`}),Ue(ie,"$convert_listing",function(o){var m=D,T=D,k=D,y=D,L=D,j=D,de=D,oe=D,ke=D,Be=D,Xe=D;return m=C(T=o["$option?"]("nowrap"))?T:o.$document()["$attr?"]("prewrap")["$!"](),Y(o.$style(),"source")?(k=o.$attr("language"),C(y=o.$document().$syntax_highlighter())?(L=C(y["$highlight?"]())?_e(["css_mode","style"],{css_mode:(C(T=(j=o.$document().$attributes())["$[]"](""+y.$name()+"-css"))?T:"class").$to_sym(),style:j["$[]"](""+y.$name()+"-style")}):_e([],{}),L["$[]="]("nowrap",m)):(de='<pre class="highlight'+(C(m)?" nowrap":"")+'"><code'+(C(k)?' class="language-'+k+'" data-lang="'+k+'"':"")+">",oe="</code></pre>")):(de="<pre"+(C(m)?' class="nowrap"':"")+">",oe="</pre>"),ke=C(o.$id())?' id="'+o.$id()+'"':"",Be=C(o["$title?"]())?'<div class="title">'+o.$captioned_title()+`</div>
|
|
520
|
-
`:"","<div"+ke+' class="listingblock'+(C(Xe=o.$role())?" "+Xe:"")+`">
|
|
521
|
-
`+Be+`<div class="content">
|
|
522
|
-
`+(C(y)?y.$format(o,k,L):Ge(Ge(de,o.$content()),oe))+`
|
|
523
|
-
</div>
|
|
524
|
-
</div>`}),Ue(ie,"$convert_literal",function(o){var m=D,T=D,k=D,y=D,L=D;return m=C(o.$id())?' id="'+o.$id()+'"':"",T=C(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
|
|
525
|
-
`:"",k=C(y=o.$document()["$attr?"]("prewrap")["$!"]())?y:o["$option?"]("nowrap"),"<div"+m+' class="literalblock'+(C(L=o.$role())?" "+L:"")+`">
|
|
526
|
-
`+T+`<div class="content">
|
|
527
|
-
<pre`+(C(k)?' class="nowrap"':"")+">"+o.$content()+`</pre>
|
|
528
|
-
</div>
|
|
529
|
-
</div>`}),Ue(ie,"$convert_stem",function(o){var m,T,k=this,y=D,L=D,j=D,de=D,oe=D,ke=D,Be=D,Xe=D;return y=C(o.$id())?' id="'+o.$id()+'"':"",L=C(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
|
|
530
|
-
`:"",T=$e("BLOCK_MATH_DELIMITERS")["$[]"](j=o.$style().$to_sym()),m=st(T),de=m[0]==null?D:m[0],oe=m[1]==null?D:m[1],C(ke=o.$content())?(Y(j,"asciimath")&&C(ke["$include?"]($e("LF")))&&(Be=""+$e("LF")+"<br"+k.void_element_slash+">",ke=Oe(ke,"gsub",[$e("StemBreakRx")],function(){var ht;return""+oe+We(Be,Je(((ht=$t["~"])===D?D:ht["$[]"](0)).$count($e("LF")),1))+$e("LF")+de})),C(ke["$start_with?"](de))&&C(ke["$end_with?"](oe))||(ke=""+de+ke+oe)):ke="","<div"+y+' class="stemblock'+(C(Xe=o.$role())?" "+Xe:"")+`">
|
|
531
|
-
`+L+`<div class="content">
|
|
532
|
-
`+ke+`
|
|
533
|
-
</div>
|
|
534
|
-
</div>`}),Ue(ie,"$convert_olist",function(o){var m=this,T=D,k=D,y=D,L=D,j=D,de=D,oe=D,ke=D;return T=[],k=C(o.$id())?' id="'+o.$id()+'"':"",y=["olist",o.$style(),o.$role()].$compact(),L=' class="'+y.$join(" ")+'"',T["$<<"]("<div"+k+L+">"),C(o["$title?"]())&&T["$<<"]('<div class="title">'+o.$title()+"</div>"),j=C(de=o.$list_marker_keyword())?' type="'+de+'"':"",oe=C(o["$attr?"]("start"))?' start="'+o.$attr("start")+'"':"",ke=C(o["$option?"]("reversed"))?m.$append_boolean_attribute("reversed",m.xml_mode):"",T["$<<"]('<ol class="'+o.$style()+'"'+j+oe+ke+">"),Oe(o.$items(),"each",[],function(Xe){return Xe==null&&(Xe=D),C(Xe.$id())?T["$<<"]('<li id="'+Xe.$id()+'"'+(C(Xe.$role())?' class="'+Xe.$role()+'"':"")+">"):C(Xe.$role())?T["$<<"]('<li class="'+Xe.$role()+'">'):T["$<<"]("<li>"),T["$<<"]("<p>"+Xe.$text()+"</p>"),C(Xe["$blocks?"]())&&T["$<<"](Xe.$content()),T["$<<"]("</li>")}),T["$<<"]("</ol>"),T["$<<"]("</div>"),T.$join($e("LF"))}),Ue(ie,"$convert_open",function(o){var m=this,T=D,k=D,y=D,L=D;return Y(T=o.$style(),"abstract")?Y(o.$parent(),o.$document())&&Y(o.$document().$doctype(),"book")?(m.$logger().$warn("abstract block cannot be used in a document without a title when doctype is book. Excluding block content."),""):(k=C(o.$id())?' id="'+o.$id()+'"':"",y=C(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
|
|
535
|
-
`:"","<div"+k+' class="quoteblock abstract'+(C(L=o.$role())?" "+L:"")+`">
|
|
536
|
-
`+y+`<blockquote>
|
|
537
|
-
`+o.$content()+`
|
|
538
|
-
</blockquote>
|
|
539
|
-
</div>`):Y(T,"partintro")&&(C(ze(o.$level(),0))||je(o.$parent().$context(),"section")||je(o.$document().$doctype(),"book"))?(m.$logger().$error("partintro block can only be used when doctype is book and must be a child of a book part. Excluding block content."),""):(k=C(o.$id())?' id="'+o.$id()+'"':"",y=C(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
|
|
540
|
-
`:"","<div"+k+' class="openblock'+(C(T)&&je(T,"open")?" "+T:"")+(C(L=o.$role())?" "+L:"")+`">
|
|
541
|
-
`+y+`<div class="content">
|
|
542
|
-
`+o.$content()+`
|
|
543
|
-
</div>
|
|
544
|
-
</div>`)}),Ue(ie,"$convert_page_break",z('<div style="page-break-after: always;"></div>')),Ue(ie,"$convert_paragraph",function(o){var m=D;return C(o.$role())?m=(C(o.$id())?' id="'+o.$id()+'"':"")+' class="paragraph '+o.$role()+'"':C(o.$id())?m=' id="'+o.$id()+'" class="paragraph"':m=' class="paragraph"',C(o["$title?"]())?"<div"+m+`>
|
|
545
|
-
<div class="title">`+o.$title()+`</div>
|
|
546
|
-
<p>`+o.$content()+`</p>
|
|
547
|
-
</div>`:"<div"+m+`>
|
|
548
|
-
<p>`+o.$content()+`</p>
|
|
549
|
-
</div>`}),et(ie,"convert_pass","content_only"),Ue(ie,"$convert_preamble",function(o){var m=D,T=D;return C((m=o.$document())["$attr?"]("toc-placement","preamble"))&&C(m["$sections?"]())&&C(m["$attr?"]("toc"))?T=`
|
|
550
|
-
<div id="toc" class="`+m.$attr("toc-class","toc")+`">
|
|
551
|
-
<div id="toctitle">`+m.$attr("toc-title")+`</div>
|
|
552
|
-
`+m.$converter().$convert(m,"outline")+`
|
|
553
|
-
</div>`:T="",`<div id="preamble">
|
|
554
|
-
<div class="sectionbody">
|
|
555
|
-
`+o.$content()+`
|
|
556
|
-
</div>`+T+`
|
|
557
|
-
</div>`}),Ue(ie,"$convert_quote",function(o){var m=this,T=D,k=D,y=D,L=D,j=D,de=D,oe=D,ke=D,Be=D;return T=C(o.$id())?' id="'+o.$id()+'"':"",k=["quoteblock",o.$role()].$compact(),y=' class="'+k.$join(" ")+'"',L=C(o["$title?"]())?`
|
|
558
|
-
<div class="title">`+o.$title()+"</div>":"",j=C(o["$attr?"]("attribution"))?o.$attr("attribution"):D,de=C(o["$attr?"]("citetitle"))?o.$attr("citetitle"):D,C(j)||C(de)?(oe=C(de)?"<cite>"+de+"</cite>":"",ke=C(j)?"— "+j+(C(de)?"<br"+m.void_element_slash+`>
|
|
559
|
-
`:""):"",Be=`
|
|
560
|
-
<div class="attribution">
|
|
561
|
-
`+ke+oe+`
|
|
562
|
-
</div>`):Be="","<div"+T+y+">"+L+`
|
|
563
|
-
<blockquote>
|
|
564
|
-
`+o.$content()+`
|
|
565
|
-
</blockquote>`+Be+`
|
|
566
|
-
</div>`}),Ue(ie,"$convert_thematic_break",function(o){var m=this;return"<hr"+m.void_element_slash+">"}),Ue(ie,"$convert_sidebar",function(o){var m=D,T=D,k=D;return m=C(o.$id())?' id="'+o.$id()+'"':"",T=C(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
|
|
567
|
-
`:"","<div"+m+' class="sidebarblock'+(C(k=o.$role())?" "+k:"")+`">
|
|
568
|
-
<div class="content">
|
|
569
|
-
`+T+o.$content()+`
|
|
570
|
-
</div>
|
|
571
|
-
</div>`}),Ue(ie,"$convert_table",function(o){var m=this,T=D,k=D,y=D,L=D,j=D,de=D,oe=D,ke=D,Be=D,Xe=D,it=D;return T=[],k=C(o.$id())?' id="'+o.$id()+'"':"",Y(y=o.$attr("frame","all","table-frame"),"topbot")&&(y="ends"),L=["tableblock","frame-"+y,"grid-"+o.$attr("grid","all","table-grid")],C(j=o.$attr("stripes",D,"table-stripes"))&&L["$<<"]("stripes-"+j),de="",C(oe=o["$option?"]("autowidth"))&&qe(o["$attr?"]("width"))?L["$<<"]("fit-content"):Y(ke=o.$attr("tablepcwidth"),100)?L["$<<"]("stretch"):de=' style="width: '+ke+'%;"',C(o["$attr?"]("float"))&&L["$<<"](o.$attr("float")),C(Be=o.$role())&&L["$<<"](Be),Xe=' class="'+L.$join(" ")+'"',T["$<<"]("<table"+k+Xe+de+">"),C(o["$title?"]())&&T["$<<"]('<caption class="title">'+o.$captioned_title()+"</caption>"),C(ze(o.$attr("rowcount"),0))&&(it=m.void_element_slash,T["$<<"]("<colgroup>"),C(oe)?T=Ge(T,$e("Array").$new(o.$columns().$size(),"<col"+it+">")):Oe(o.$columns(),"each",[],function(at){return at==null&&(at=D),T["$<<"](C(at["$option?"]("autowidth"))?"<col"+it+">":'<col style="width: '+at.$attr("colpcwidth")+'%;"'+it+">")}),T["$<<"]("</colgroup>"),Oe(o.$rows().$to_h(),"each",[],function(at,mt){return at==null&&(at=D),mt==null&&(mt=D),C(mt["$empty?"]())?D:(T["$<<"]("<t"+at+">"),Oe(mt,"each",[],function(xt){return xt==null&&(xt=D),T["$<<"]("<tr>"),Oe(xt,"each",[],function(Tt){var St=D,Yt=D,Bt=D,er=D,Kt=D,jt=D;if(Tt==null&&(Tt=D),Y(at,"head"))St=Tt.$text();else switch(Tt.$style()){case"asciidoc":St='<div class="content">'+Tt.$content()+"</div>";break;case"literal":St='<div class="literal"><pre>'+Tt.$text()+"</pre></div>";break;default:St=C((St=Tt.$content())["$empty?"]())?"":'<p class="tableblock">'+St.$join(`</p>
|
|
572
|
-
<p class="tableblock">`)+"</p>"}return Yt=Y(at,"head")||Y(Tt.$style(),"header")?"th":"td",Bt=' class="tableblock halign-'+Tt.$attr("halign")+" valign-"+Tt.$attr("valign")+'"',er=C(Tt.$colspan())?' colspan="'+Tt.$colspan()+'"':"",Kt=C(Tt.$rowspan())?' rowspan="'+Tt.$rowspan()+'"':"",jt=C(o.$document()["$attr?"]("cellbgcolor"))?' style="background-color: '+o.$document().$attr("cellbgcolor")+';"':"",T["$<<"]("<"+Yt+Bt+er+Kt+jt+">"+St+"</"+Yt+">")}),T["$<<"]("</tr>")}),T["$<<"]("</t"+at+">"))})),T["$<<"]("</table>"),T.$join($e("LF"))}),Ue(ie,"$convert_toc",function(o){var m=D,T=D,k=D,y=D,L=D,j=D;return C((m=o.$document())["$attr?"]("toc-placement","macro"))&&C(m["$sections?"]())&&C(m["$attr?"]("toc"))?(C(o.$id())?(T=' id="'+o.$id()+'"',k=' id="'+o.$id()+'title"'):(T=' id="toc"',k=' id="toctitle"'),y=C(o["$title?"]())?o.$title():m.$attr("toc-title"),L=C(o["$attr?"]("levels"))?o.$attr("levels").$to_i():D,j=C(o["$role?"]())?o.$role():m.$attr("toc-class","toc"),"<div"+T+' class="'+j+`">
|
|
573
|
-
<div`+k+' class="title">'+y+`</div>
|
|
574
|
-
`+m.$converter().$convert(m,"outline",_e(["toclevels"],{toclevels:L}))+`
|
|
575
|
-
</div>`):"<!-- toc disabled -->"}),Ue(ie,"$convert_ulist",function(o){var m=this,T=D,k=D,y=D,L=D,j=D,de=D,oe=D;return T=[],k=C(o.$id())?' id="'+o.$id()+'"':"",y=["ulist",o.$style(),o.$role()].$compact(),L=j="",C(de=o["$option?"]("checklist"))?(y.$unshift(y.$shift(),"checklist"),oe=' class="checklist"',C(o["$option?"]("interactive"))?C(m.xml_mode)?(L='<input type="checkbox" data-item-complete="1" checked="checked"/> ',j='<input type="checkbox" data-item-complete="0"/> '):(L='<input type="checkbox" data-item-complete="1" checked> ',j='<input type="checkbox" data-item-complete="0"> '):C(o.$document()["$attr?"]("icons","font"))?(L='<i class="fa fa-check-square-o"></i> ',j='<i class="fa fa-square-o"></i> '):(L="✓ ",j="❏ ")):oe=C(o.$style())?' class="'+o.$style()+'"':"",T["$<<"]("<div"+k+' class="'+y.$join(" ")+'">'),C(o["$title?"]())&&T["$<<"]('<div class="title">'+o.$title()+"</div>"),T["$<<"]("<ul"+oe+">"),Oe(o.$items(),"each",[],function(Be){return Be==null&&(Be=D),C(Be.$id())?T["$<<"]('<li id="'+Be.$id()+'"'+(C(Be.$role())?' class="'+Be.$role()+'"':"")+">"):C(Be.$role())?T["$<<"]('<li class="'+Be.$role()+'">'):T["$<<"]("<li>"),C(de)&&C(Be["$attr?"]("checkbox"))?T["$<<"]("<p>"+(C(Be["$attr?"]("checked"))?L:j)+Be.$text()+"</p>"):T["$<<"]("<p>"+Be.$text()+"</p>"),C(Be["$blocks?"]())&&T["$<<"](Be.$content()),T["$<<"]("</li>")}),T["$<<"]("</ul>"),T["$<<"]("</div>"),T.$join($e("LF"))}),Ue(ie,"$convert_verse",function(o){var m=this,T=D,k=D,y=D,L=D,j=D,de=D,oe=D,ke=D,Be=D;return T=C(o.$id())?' id="'+o.$id()+'"':"",k=["verseblock",o.$role()].$compact(),y=' class="'+k.$join(" ")+'"',L=C(o["$title?"]())?`
|
|
576
|
-
<div class="title">`+o.$title()+"</div>":"",j=C(o["$attr?"]("attribution"))?o.$attr("attribution"):D,de=C(o["$attr?"]("citetitle"))?o.$attr("citetitle"):D,C(j)||C(de)?(oe=C(de)?"<cite>"+de+"</cite>":"",ke=C(j)?"— "+j+(C(de)?"<br"+m.void_element_slash+`>
|
|
577
|
-
`:""):"",Be=`
|
|
578
|
-
<div class="attribution">
|
|
579
|
-
`+ke+oe+`
|
|
580
|
-
</div>`):Be="","<div"+T+y+">"+L+`
|
|
581
|
-
<pre class="content">`+o.$content()+"</pre>"+Be+`
|
|
582
|
-
</div>`}),Ue(ie,"$convert_video",function(o){var m,T,k=this,y=D,L=D,j=D,de=D,oe=D,ke=D,Be=D,Xe=D,it=D,ht=D,at=D,mt=D,yt=D,xt=D,vt=D,Tt=D,St=D,Yt=D,Bt=D,er=D,Kt=D,jt=D,Wt=D,Xt=D,nr=D,Yn=D,en=D,Jt=D,Ut=D,Zt=D,Er=D,Ht=D,kr=D,dn=D,Cr=D,Sr=D,bn=D;switch(y=k.xml_mode,L=C(o.$id())?' id="'+o.$id()+'"':"",j=["videoblock"],C(o["$attr?"]("float"))&&j["$<<"](o.$attr("float")),C(o["$attr?"]("align"))&&j["$<<"]("text-"+o.$attr("align")),C(o.$role())&&j["$<<"](o.$role()),de=' class="'+j.$join(" ")+'"',oe=C(o["$title?"]())?`
|
|
583
|
-
<div class="title">`+o.$title()+"</div>":"",ke=C(o["$attr?"]("width"))?' width="'+o.$attr("width")+'"':"",Be=C(o["$attr?"]("height"))?' height="'+o.$attr("height")+'"':"",o.$attr("poster")){case"vimeo":return C((Xe=o.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(Xe=""+Xe+":"),it=C(o["$attr?"]("start"))?"#at="+o.$attr("start"):"",ht=["?"],T=o.$attr("target").$split("/",2),m=st(T),at=m[0]==null?D:m[0],mt=m[1]==null?D:m[1],yt=C(mt=C(xt=mt)?xt:o.$attr("hash"))?""+(C(xt=ht.$pop())?xt:"&")+"h="+mt:"",vt=C(o["$option?"]("autoplay"))?""+(C(xt=ht.$pop())?xt:"&")+"autoplay=1":"",Tt=C(o["$option?"]("loop"))?""+(C(xt=ht.$pop())?xt:"&")+"loop=1":"",St=C(o["$option?"]("muted"))?""+(C(xt=ht.$pop())?xt:"&")+"muted=1":"","<div"+L+de+">"+oe+`
|
|
584
|
-
<div class="content">
|
|
585
|
-
<iframe`+ke+Be+' src="'+Xe+"//player.vimeo.com/video/"+at+yt+vt+Tt+St+it+'" frameborder="0"'+(C(o["$option?"]("nofullscreen"))?"":k.$append_boolean_attribute("allowfullscreen",y))+`></iframe>
|
|
586
|
-
</div>
|
|
587
|
-
</div>`;case"youtube":return C((Xe=o.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(Xe=""+Xe+":"),Yt=C(o["$option?"]("related"))?1:0,Bt=C(o["$attr?"]("start"))?"&start="+o.$attr("start"):"",er=C(o["$attr?"]("end"))?"&end="+o.$attr("end"):"",vt=C(o["$option?"]("autoplay"))?"&autoplay=1":"",Tt=C(Kt=o["$option?"]("loop"))?"&loop=1":"",jt=C(o["$option?"]("muted"))?"&mute=1":"",Wt=C(o["$option?"]("nocontrols"))?"&controls=0":"",C(o["$option?"]("nofullscreen"))?(Xt="&fs=0",nr=""):(Xt="",nr=k.$append_boolean_attribute("allowfullscreen",y)),Yn=C(o["$option?"]("modest"))?"&modestbranding=1":"",en=C(o["$attr?"]("theme"))?"&theme="+o.$attr("theme"):"",Jt=C(o["$attr?"]("lang"))?"&hl="+o.$attr("lang"):"",T=o.$attr("target").$split("/",2),m=st(T),at=m[0]==null?D:m[0],Ut=m[1]==null?D:m[1],C(Ut=C(xt=Ut)?xt:o.$attr("list"))?Zt="&list="+Ut:(T=at.$split(",",2),m=st(T),at=m[0]==null?D:m[0],Er=m[1]==null?D:m[1],C(Er=C(xt=Er)?xt:o.$attr("playlist"))?Zt="&playlist="+at+","+Er:Zt=C(Kt)?"&playlist="+at:""),"<div"+L+de+">"+oe+`
|
|
588
|
-
<div class="content">
|
|
589
|
-
<iframe`+ke+Be+' src="'+Xe+"//www.youtube.com/embed/"+at+"?rel="+Yt+Bt+er+vt+Tt+jt+Wt+Zt+Xt+Yn+en+Jt+'" frameborder="0"'+nr+`></iframe>
|
|
590
|
-
</div>
|
|
591
|
-
</div>`;default:return Ht=C((kr=o.$attr("poster"))["$nil_or_empty?"]())?"":' poster="'+o.$media_uri(kr)+'"',dn=C((kr=o.$attr("preload"))["$nil_or_empty?"]())?"":' preload="'+kr+'"',Cr=o.$attr("start"),Sr=o.$attr("end"),bn=C(Cr)||C(Sr)?"#t="+(C(xt=Cr)?xt:"")+(C(Sr)?","+Sr:""):"","<div"+L+de+">"+oe+`
|
|
592
|
-
<div class="content">
|
|
593
|
-
<video src="`+o.$media_uri(o.$attr("target"))+bn+'"'+ke+Be+Ht+(C(o["$option?"]("autoplay"))?k.$append_boolean_attribute("autoplay",y):"")+(C(o["$option?"]("muted"))?k.$append_boolean_attribute("muted",y):"")+(C(o["$option?"]("nocontrols"))?"":k.$append_boolean_attribute("controls",y))+(C(o["$option?"]("loop"))?k.$append_boolean_attribute("loop",y):"")+dn+`>
|
|
594
|
-
Your browser does not support the video tag.
|
|
595
|
-
</video>
|
|
596
|
-
</div>
|
|
597
|
-
</div>`}}),Ue(ie,"$convert_inline_anchor",function(o){var m=this,T=D,k=D,y=D,L=D,j=D,de=D,oe=D,ke=D,Be=D;switch(o.$type()){case"xref":return C(T=o.$attributes()["$[]"]("path"))?(k=m.$append_link_constraint_attrs(o,C(o.$role())?[' class="'+o.$role()+'"']:[]).$join(),y=C(L=o.$text())?L:T):(k=C(o.$role())?' class="'+o.$role()+'"':"",C(y=o.$text())||(E($e("AbstractNode"),j=C(L=(m.refs=C(de=m.refs)?de:o.$document().$catalog()["$[]"]("refs"))["$[]"](oe=o.$attributes()["$[]"]("refid")))?L:C(oe["$nil_or_empty?"]())?ke=m.$get_root_document(o):D)?C(m.resolving_xref=C(L=m.resolving_xref)?L:Be=!0)&&C(Be)?(C(y=j.$xreftext(o.$attr("xrefstyle",D,!0)))?C(y["$include?"]("<a"))&&(y=y.$gsub($e("DropAnchorRx"),"")):y=C(ke)?"[^top]":"["+oe+"]",m.resolving_xref=D):y=C(ke)?"[^top]":"["+oe+"]":y="["+oe+"]")),'<a href="'+o.$target()+'"'+k+">"+y+"</a>";case"ref":return'<a id="'+o.$id()+'"></a>';case"link":return k=C(o.$id())?[' id="'+o.$id()+'"']:[],C(o.$role())&&k["$<<"](' class="'+o.$role()+'"'),C(o["$attr?"]("title"))&&k["$<<"](' title="'+o.$attr("title")+'"'),'<a href="'+o.$target()+'"'+m.$append_link_constraint_attrs(o,k).$join()+">"+o.$text()+"</a>";case"bibref":return'<a id="'+o.$id()+'"></a>['+(C(L=o.$reftext())?L:o.$id())+"]";default:return m.$logger().$warn("unknown anchor type: "+o.$type().$inspect()),D}}),Ue(ie,"$convert_inline_break",function(o){var m=this;return""+o.$text()+"<br"+m.void_element_slash+">"}),Ue(ie,"$convert_inline_button",function(o){return'<b class="button">'+o.$text()+"</b>"}),Ue(ie,"$convert_inline_callout",function(o){var m=this,T=D,k=D;return C(o.$document()["$attr?"]("icons","font"))?'<i class="conum" data-value="'+o.$text()+'"></i><b>('+o.$text()+")</b>":C(o.$document()["$attr?"]("icons"))?(T=o.$icon_uri("callouts/"+o.$text()),'<img src="'+T+'" alt="'+o.$text()+'"'+m.void_element_slash+">"):E(He("Array"),k=o.$attributes()["$[]"]("guard"))?'<!--<b class="conum">('+o.$text()+")</b>-->":""+k+'<b class="conum">('+o.$text()+")</b>"}),Ue(ie,"$convert_inline_footnote",function(o){var m=D,T=D;return C(m=o.$attr("index"))?Y(o.$type(),"xref")?'<sup class="footnoteref">[<a class="footnote" href="#_footnotedef_'+m+'" title="View footnote.">'+m+"</a>]</sup>":(T=C(o.$id())?' id="_footnote_'+o.$id()+'"':"",'<sup class="footnote"'+T+'>[<a id="_footnoteref_'+m+'" class="footnote" href="#_footnotedef_'+m+'" title="View footnote.">'+m+"</a>]</sup>"):Y(o.$type(),"xref")?'<sup class="footnoteref red" title="Unresolved footnote reference.">['+o.$text()+"]</sup>":D}),Ue(ie,"$convert_inline_image",function(o){var m=this,T=D,k=D,y=D,L=D,j=D,de=D,oe=D,ke=D,Be=D,Xe=D;return T=o.$target(),Y(k=C(y=o.$type())?y:"image","icon")?Y(L=o.$document().$attr("icons"),"font")?(j="fa fa-"+T,C(o["$attr?"]("size"))&&(j=""+j+" fa-"+o.$attr("size")),C(o["$attr?"]("flip"))?j=""+j+" fa-flip-"+o.$attr("flip"):C(o["$attr?"]("rotate"))&&(j=""+j+" fa-rotate-"+o.$attr("rotate")),de=C(o["$attr?"]("title"))?' title="'+o.$attr("title")+'"':"",oe='<i class="'+j+'"'+de+"></i>"):C(L)?(de=C(o["$attr?"]("width"))?' width="'+o.$attr("width")+'"':"",C(o["$attr?"]("height"))&&(de=""+de+' height="'+o.$attr("height")+'"'),C(o["$attr?"]("title"))&&(de=""+de+' title="'+o.$attr("title")+'"'),oe='<img src="'+o.$icon_uri(T)+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+de+m.void_element_slash+">"):oe="["+o.$alt()+"]":(de=C(o["$attr?"]("width"))?' width="'+o.$attr("width")+'"':"",C(o["$attr?"]("height"))&&(de=""+de+' height="'+o.$attr("height")+'"'),C(o["$attr?"]("title"))&&(de=""+de+' title="'+o.$attr("title")+'"'),(C(o["$attr?"]("format","svg"))||C(T["$include?"](".svg")))&&C(Ye(o.$document().$safe(),He($e("SafeMode"),"SECURE")))?C(o["$option?"]("inline"))?oe=C(y=m.$read_svg_contents(o,T))?y:'<span class="alt">'+o.$alt()+"</span>":C(o["$option?"]("interactive"))?(ke=C(o["$attr?"]("fallback"))?'<img src="'+o.$image_uri(o.$attr("fallback"))+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+de+m.void_element_slash+">":'<span class="alt">'+o.$alt()+"</span>",oe='<object type="image/svg+xml" data="'+o.$image_uri(T)+'"'+de+">"+ke+"</object>"):oe='<img src="'+o.$image_uri(T)+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+de+m.void_element_slash+">":oe='<img src="'+o.$image_uri(T)+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+de+m.void_element_slash+">"),C(o["$attr?"]("link"))&&(oe='<a class="image" href="'+o.$attr("link")+'"'+m.$append_link_constraint_attrs(o).$join()+">"+oe+"</a>"),Be=k,C(Xe=o.$role())?Be=C(o["$attr?"]("float"))?""+Be+" "+o.$attr("float")+" "+Xe:""+Be+" "+Xe:C(o["$attr?"]("float"))&&(Be=""+Be+" "+o.$attr("float")),'<span class="'+Be+'">'+oe+"</span>"}),Ue(ie,"$convert_inline_indexterm",function(o){return Y(o.$type(),"visible")?o.$text():""}),Ue(ie,"$convert_inline_kbd",function(o){var m=D;return Y((m=o.$attr("keys")).$size(),1)?"<kbd>"+m["$[]"](0)+"</kbd>":'<span class="keyseq"><kbd>'+m.$join("</kbd>+<kbd>")+"</kbd></span>"}),Ue(ie,"$convert_inline_menu",function(o){var m=D,T=D,k=D,y=D,L=D;return m=C(o.$document()["$attr?"]("icons","font"))?' <i class="fa fa-angle-right caret"></i> ':' <b class="caret">›</b> ',T="</b>"+m+'<b class="submenu">',k=o.$attr("menu"),C((y=o.$attr("submenus"))["$empty?"]())?C(L=o.$attr("menuitem"))?'<span class="menuseq"><b class="menu">'+k+"</b>"+m+'<b class="menuitem">'+L+"</b></span>":'<b class="menuref">'+k+"</b>":'<span class="menuseq"><b class="menu">'+k+"</b>"+m+'<b class="submenu">'+y.$join(T)+"</b>"+m+'<b class="menuitem">'+o.$attr("menuitem")+"</b></span>"}),Ue(ie,"$convert_inline_quoted",function(o){var m,T,k=D,y=D,L=D,j=D;return T=$e("QUOTE_TAGS")["$[]"](o.$type()),m=st(T),k=m[0]==null?D:m[0],y=m[1]==null?D:m[1],L=m[2]==null?D:m[2],C(o.$id())?(j=C(o.$role())?' class="'+o.$role()+'"':"",C(L)?""+k.$chop()+' id="'+o.$id()+'"'+j+">"+o.$text()+y:'<span id="'+o.$id()+'"'+j+">"+k+o.$text()+y+"</span>"):C(o.$role())?C(L)?""+k.$chop()+' class="'+o.$role()+'">'+o.$text()+y:'<span class="'+o.$role()+'">'+k+o.$text()+y+"</span>":""+k+o.$text()+y}),Ue(ie,"$read_svg_contents",function(o,m){var T=D,k=D,y=D,L=D;if(C(T=o.$read_contents(m,_e(["start","normalize","label","warn_if_empty"],{start:o.$document().$attr("imagesdir"),normalize:!0,label:"SVG",warn_if_empty:!0})))){if(C(T["$empty?"]()))return D;C(T["$start_with?"]("<svg"))||(T=T.$sub($e("SvgPreambleRx"),"")),k=y=L=D,Oe(["width","height"],"each",[],function(de){var oe=D,ke=D;if(de==null&&(de=D),!C(o["$attr?"](de)))return D;if(!C(y)){if(Y(L=C(oe=L)?oe:C(ke=T.$match($e("SvgStartTagRx")))?ke:"no_match","no_match"))return D;y=(k=L["$[]"](0)).$gsub($e("DimensionAttributeRx"),"")}return y=""+y.$chop()+" "+de+'="'+o.$attr(de)+'">'}),C(y)&&(T=""+y+T["$[]"](a.Range.$new(k.$length(),-1,!1)))}return T}),ie.$private(),Ue(ie,"$append_boolean_attribute",function(o,m){return C(m)?" "+o+'="'+o+'"':" "+o}),Ue(ie,"$append_link_constraint_attrs",function(o,m){var T=D,k=D;return m==null&&(m=[]),C(o["$option?"]("nofollow"))&&(T="nofollow"),C(k=o.$attributes()["$[]"]("window"))?(m["$<<"](' target="'+k+'"'),(Y(k,"_blank")||C(o["$option?"]("noopener")))&&m["$<<"](C(T)?' rel="'+T+' noopener"':' rel="noopener"')):C(T)&&m["$<<"](' rel="'+T+'"'),m},-2),Ue(ie,"$encode_attribute_value",function(o){return C(o["$include?"]('"'))?o.$gsub('"',"""):o}),Ue(ie,"$generate_manname_section",function(o){var m=D,T=D,k=D,y=D,L=D;return m=o.$attr("manname-title","Name"),C(k=o.$sections()["$[]"](0))&&Y(T=k.$title(),T.$upcase())&&(m=m.$upcase()),y=C(L=o.$attr("manname-id"))?' id="'+L+'"':"","<h2"+y+">"+m+`</h2>
|
|
598
|
-
<div class="sectionbody">
|
|
599
|
-
<p>`+o.$attr("mannames").$join(", ")+" - "+o.$attr("manpurpose")+`</p>
|
|
600
|
-
</div>`}),Ue(ie,"$get_root_document",function(o){for(;C((o=o.$document())["$nested?"]());)o=o.$parent_document();return o}),Ue(ie,"$method_missing",function g(o,m){var T,k,y=g.$$p||D,L=this,j=D;return g.$$p=null,T=tt(arguments,1),k=T,qe((j=o.$to_s())["$start_with?"]("convert_"))&&C(L["$handles?"](j))?Oe(L,"send",["convert_"+j].concat(lt(k))):G(L,Ie(L,"method_missing",g,!1,!0),"method_missing",[o].concat(lt(k)),y)},-2),Ue(ie,"$respond_to_missing?",function(o,m){var T=this,k=D,y=D;return tt(arguments,1),C(k=(y=o.$to_s())["$start_with?"]("convert_")["$!"]())?T["$handles?"](y):k},-2)}(ye("Converter"),He(ye("Converter"),"Base"),ue)}(K[0],K)},Opal.modules["asciidoctor/extensions"]=function(a){var ae=a.module,te=a.klass,V=a.truthy,_e=a.hash2,v=a.def,Y=a.send,Ue=a.alias,G=a.slice,Ie=a.rb_plus,C=a.eqeq,Oe=a.rb_gt,ze=a.not,Ge=a.eqeqeq,qe=a.to_a,je=a.to_ary,dt=a.const_set,Ye=a.return_val,st=a.send2,We=a.find_super,Je=a.NilClass,$t=a.class_variable_set,z=a.class_variable_get,et=a.regexp,E=a.Class,tt=a.return_ivar,lt=a.rb_lt,K=a.rb_minus,D=a.hash,He=[],we=a.nil,Ne=a.$$$;return a.add_stubs("[]=,config,const_defined?,singleton_class?,include,const_get,extend,enable_dsl,attr_reader,merge,class,update,raise,document,==,doctype,[],+,level,delete,>,casecmp,new,title=,sectname=,special=,fetch,numbered=,attr?,!,key?,special,numbered,id=,generate_id,title,update_attributes,tr,basename,create_block,assign_caption,===,parse_blocks,empty?,include?,sub_attributes,parse,each,define_method,unshift,shift,send,size,receiver,binding,define_singleton_method,instance_exec,to_proc,call,option,content_model,flatten,positional_attributes,default_attributes,respond_to?,to_s,partition,to_i,<<,compact,inspect,resolve_attributes,attr_accessor,to_set,contexts,match?,resolve_regexp,format,method,register,reset,values,groups,arity,activate,add_document_processor,tree_processor,tree_processors?,tree_processors,any?,select,add_syntax_processor,to_sym,instance_variable_get,kind,private,join,map,split,capitalize,instance_variable_set,resolve_args,singleton_class,process_block_given?,source_location,freeze,resolve_class,<,update_config,as_symbol,name,name=,pop,-,-@,next_auto_id,generate_name,each_with_object"),function(Te,ue){var ye=ae(Te,"Asciidoctor"),Z=[ye].concat(ue);return function(B,q){var ie=ae(B,"Extensions"),ee=[ie].concat(q),$e=a.$r(ee);return function(U,g,o){var m=te(U,g,"Processor"),T=[m].concat(o),k=a.$r(T),y=m.$$prototype;return y.config=we,function(L,j){return v(L,"$config",function(){var oe=this,ke=we;return oe.config==null&&(oe.config=we),oe.config=V(ke=oe.config)?ke:_e([],{})}),v(L,"$option",function(oe,ke){var Be,Xe=this;return Be=[oe,ke],Y(Xe.$config(),"[]=",Be),Be[Be.length-1]}),v(L,"$enable_dsl",function(){var oe=this;return V(oe["$const_defined?"]("DSL"))?V(oe["$singleton_class?"]())?oe.$include(oe.$const_get("DSL")):oe.$extend(oe.$const_get("DSL")):we}),Ue(L,"use_dsl","enable_dsl")}(a.get_singleton_class(m)),m.$attr_reader("config"),v(m,"$initialize",function(j){var de=this;return j==null&&(j=_e([],{})),de.config=de.$class().$config().$merge(j)},-1),v(m,"$update_config",function(j){var de=this;return de.config.$update(j)}),v(m,"$process",function(j){var de=this;return G(arguments),de.$raise(Ne("NotImplementedError"),""+k("Processor")+" subclass "+de.$class()+" must implement the #process method")},-1),v(m,"$create_section",function(j,de,oe,ke){var Be,Xe,it=we,ht=we,at=we,mt=we,yt=we,xt=we,vt=we,Tt=we,St=we,Yt=we;return ke==null&&(ke=_e([],{})),it=j.$document(),ht=(at=it.$doctype())["$=="]("book"),mt=V(yt=ke["$[]"]("level"))?yt:Ie(j.$level(),1),V(xt=oe.$delete("style"))?V(ht)&&C(xt,"abstract")?(Be=["chapter",1],vt=Be[0],mt=Be[1]):(Be=[xt,!0],vt=Be[0],Tt=Be[1],C(mt,0)&&(mt=1)):V(ht)?vt=C(mt,0)?"part":V(Oe(mt,1))?"section":"chapter":C(at,"manpage")&&C(de.$casecmp("synopsis"),0)?(Be=["synopsis",!0],vt=Be[0],Tt=Be[1]):vt="section",St=k("Section").$new(j,mt),Be=[de,vt],Xe=[Be[0]],Y(St,"title=",Xe),Xe[Xe.length-1],Xe=[Be[1]],Y(St,"sectname=",Xe),Xe[Xe.length-1],V(Tt)?(St["$special="](!0),V(ke.$fetch("numbered",xt["$=="]("appendix")))?St["$numbered="](!0):ze(ke["$key?"]("numbered"))&&V(it["$attr?"]("sectnums","all"))&&St["$numbered="](V(ht)&&C(mt,1)?"chapter":!0)):V(Oe(mt,0))?V(ke.$fetch("numbered",it["$attr?"]("sectnums")))&&St["$numbered="](V(St.$special())?V(yt=j.$numbered())||yt:!0):V(ke.$fetch("numbered",V(yt=ht)?it["$attr?"]("partnums"):yt))&&St["$numbered="](!0),C(Yt=oe["$[]"]("id"),!1)?oe.$delete("id"):St["$id="]((Be=["id",V(yt=Yt)?yt:V(it["$attr?"]("sectids"))?k("Section").$generate_id(St.$title(),it):we],Y(oe,"[]=",Be),Be[Be.length-1])),St.$update_attributes(oe),St},-4),v(m,"$create_block",function(j,de,oe,ke,Be){return Be==null&&(Be=_e([],{})),k("Block").$new(j,de,_e(["source","attributes"],{source:oe,attributes:ke}).$merge(Be))},-5),v(m,"$create_list",function(j,de,oe){var ke=we;return oe==null&&(oe=we),ke=k("List").$new(j,de),V(oe)&&ke.$update_attributes(oe),ke},-3),v(m,"$create_list_item",function(j,de){return de==null&&(de=we),k("ListItem").$new(j,de)},-2),v(m,"$create_image_block",function(j,de,oe){var ke,Be=this,Xe=we,it=we,ht=we;return oe==null&&(oe=_e([],{})),V(Xe=de["$[]"]("target"))||Be.$raise(Ne("ArgumentError"),"Unable to create an image block, target attribute is required"),V(de["$[]"]("alt"))||de["$[]="]("alt",(ke=["default-alt",k("Helpers").$basename(Xe,!0).$tr("_-"," ")],Y(de,"[]=",ke),ke[ke.length-1])),it=V(de["$key?"]("title"))?de.$delete("title"):we,ht=Be.$create_block(j,"image",we,de,oe),V(it)&&(ht["$title="](it),ht.$assign_caption(de.$delete("caption"),"figure")),ht},-3),v(m,"$create_inline",function(j,de,oe,ke){return ke==null&&(ke=_e([],{})),k("Inline").$new(j,de,oe,C(de,"quoted")?_e(["type"],{type:"unquoted"}).$merge(ke):ke)},-4),v(m,"$parse_content",function(j,de,oe){var ke=we;return oe==null&&(oe=we),ke=Ge(k("Reader"),de)?de:k("Reader").$new(de),k("Parser").$parse_blocks(ke,j,oe),j},-3),v(m,"$parse_attributes",function(j,de,oe){var ke=we;return oe==null&&(oe=_e([],{})),V(V(de)?de["$empty?"]():!0)?_e([],{}):(V(oe["$[]"]("sub_attributes"))&&V(de["$include?"](k("ATTR_REF_HEAD")))&&(de=j.$sub_attributes(de)),k("AttributeList").$new(de).$parse(V(ke=oe["$[]"]("positional_attributes"))?ke:[]))},-3),Y([["create_paragraph","create_block","paragraph"],["create_open_block","create_block","open"],["create_example_block","create_block","example"],["create_pass_block","create_block","pass"],["create_listing_block","create_block","listing"],["create_literal_block","create_block","literal"],["create_anchor","create_inline","anchor"],["create_inline_pass","create_inline","quoted"]],"each",[],function L(j,de,oe){var ke=L.$$s==null?this:L.$$s;return j==null&&(j=we),de==null&&(de=we),oe==null&&(oe=we),Y(ke,"define_method",[j],function Be(Xe){var it,ht,at=Be.$$s==null?this:Be.$$s;return it=G(arguments),ht=it,ht.$unshift(ht.$shift(),oe),Y(at,"send",[de].concat(qe(ht)))},{$$arity:-1,$$s:ke})},{$$s:m})}(ee[0],null,ee),function(U){var g=ae(U,"ProcessorDsl");return v(g,"$option",function(m,T){var k,y=this;return k=[m,T],Y(y.$config(),"[]=",k),k[k.length-1]}),v(g,"$process",function o(m){var T=o.$$p||we,k,y,L,j=this,de=we;return j.process_block==null&&(j.process_block=we),o.$$p=null,k=G(arguments),y=k,T!==we?(V(y["$empty?"]())||j.$raise(Ne("ArgumentError"),"wrong number of arguments (given "+y.$size()+", expected 0)"),V(T.$binding())&&C(j,T.$binding().$receiver())||(de=j,Y(T,"define_singleton_method",["call"],function(ke){var Be,Xe;return Be=G(arguments),Xe=Be,Y(de,"instance_exec",qe(Xe),T.$to_proc())},-1)),j.process_block=T):V((L=j.process_block,L!=null&&L!==we?"instance-variable":we))?Y(j.process_block,"call",qe(y)):j.$raise(Ne("NotImplementedError"),""+j.$class()+" #process method called before being registered")},-1),v(g,"$process_block_given?",function(){var m,T=this;return m=T.process_block,m!=null&&m!==we?"instance-variable":we})}(ee[0]),function(U,g){var o=ae(U,"DocumentProcessorDsl"),m=[o].concat(g),T=a.$r(m);return o.$include(T("ProcessorDsl")),v(o,"$prefer",function(){var y=this;return y.$option("position",">>")})}(ee[0],ee),function(U,g){var o=ae(U,"SyntaxProcessorDsl"),m=[o].concat(g),T=a.$r(m);return o.$include(T("ProcessorDsl")),v(o,"$named",function(y){var L=this;return Ge(T("Processor"),L)?L.name=y:L.$option("name",y)}),v(o,"$content_model",function(y){var L=this;return L.$option("content_model",y)}),Ue(o,"parse_content_as","content_model"),v(o,"$positional_attributes",function(y){var L,j,de=this;return L=G(arguments),j=L,de.$option("positional_attrs",j.$flatten())},-1),Ue(o,"name_positional_attributes","positional_attributes"),Ue(o,"positional_attrs","positional_attributes"),v(o,"$default_attributes",function(y){var L=this;return L.$option("default_attrs",y)}),Ue(o,"default_attrs","default_attributes"),v(o,"$resolve_attributes",function(y){var L,j,de,oe=this,ke=we,Be=we,Xe=we;return L=G(arguments),j=L,V(Oe(j.$size(),1))||V((j=j.$fetch(0,!0))["$respond_to?"]("to_sym"))&&(j=[j]),Ge(!0,ke=j)?(oe.$option("positional_attrs",[]),oe.$option("default_attrs",_e([],{}))):Ge(Ne("Array"),ke)?(de=[[],_e([],{})],Be=de[0],Xe=de[1],Y(j,"each",[],function(ht){var at,mt,yt=we,xt=we,vt=we;return ht==null&&(ht=we),V((ht=ht.$to_s())["$include?"]("="))?(mt=ht.$partition("="),at=je(mt),yt=at[0]==null?we:at[0],at[1]==null||at[1],xt=at[2]==null?we:at[2],V(yt["$include?"](":"))&&(mt=yt.$partition(":"),at=je(mt),vt=at[0]==null?we:at[0],at[1]==null||at[1],yt=at[2]==null?we:at[2],vt=C(vt,"@")?Be.$size():vt.$to_i(),Be["$[]="](vt,yt)),at=[yt,xt],Y(Xe,"[]=",at),at[at.length-1]):V(ht["$include?"](":"))?(mt=ht.$partition(":"),at=je(mt),vt=at[0]==null?we:at[0],at[1]==null||at[1],yt=at[2]==null?we:at[2],vt=C(vt,"@")?Be.$size():vt.$to_i(),at=[vt,yt],Y(Be,"[]=",at),at[at.length-1]):Be["$<<"](ht)}),oe.$option("positional_attrs",Be.$compact()),oe.$option("default_attrs",Xe)):Ge(Ne("Hash"),ke)?(de=[[],_e([],{})],Be=de[0],Xe=de[1],Y(j,"each",[],function(ht,at){var mt,yt,xt=we,vt=we;return ht==null&&(ht=we),at==null&&(at=we),V((xt=ht.$to_s())["$include?"](":"))&&(yt=xt.$partition(":"),mt=je(yt),vt=mt[0]==null?we:mt[0],mt[1]==null||mt[1],xt=mt[2]==null?we:mt[2],vt=C(vt,"@")?Be.$size():vt.$to_i(),Be["$[]="](vt,xt)),V(at)?(mt=[xt,at],Y(Xe,"[]=",mt),mt[mt.length-1]):we}),oe.$option("positional_attrs",Be.$compact()),oe.$option("default_attrs",Xe)):oe.$raise(Ne("ArgumentError"),"unsupported attributes specification for macro: "+j.$inspect())},-1),Ue(o,"resolves_attributes","resolve_attributes")}(ee[0],ee),function(U,g,o){var m=te(U,g,"Preprocessor"),T=[m].concat(o),k=a.$r(T);return v(m,"$process",function(L,j){var de=this;return de.$raise(Ne("NotImplementedError"),""+k("Preprocessor")+" subclass "+de.$class()+" must implement the #process method")})}(ee[0],$e("Processor"),ee),dt($e("Preprocessor"),"DSL",$e("DocumentProcessorDsl")),function(U,g,o){var m=te(U,g,"TreeProcessor"),T=[m].concat(o),k=a.$r(T);return v(m,"$process",function(L){var j=this;return j.$raise(Ne("NotImplementedError"),""+k("TreeProcessor")+" subclass "+j.$class()+" must implement the #process method")})}(ee[0],$e("Processor"),ee),dt($e("TreeProcessor"),"DSL",$e("DocumentProcessorDsl")),dt(ee[0],"Treeprocessor",$e("TreeProcessor")),function(U,g,o){var m=te(U,g,"Postprocessor"),T=[m].concat(o),k=a.$r(T);return v(m,"$process",function(L,j){var de=this;return de.$raise(Ne("NotImplementedError"),""+k("Postprocessor")+" subclass "+de.$class()+" must implement the #process method")})}(ee[0],$e("Processor"),ee),dt($e("Postprocessor"),"DSL",$e("DocumentProcessorDsl")),function(U,g,o){var m=te(U,g,"IncludeProcessor"),T=[m].concat(o),k=a.$r(T);return v(m,"$process",function(L,j,de,oe){var ke=this;return ke.$raise(Ne("NotImplementedError"),""+k("IncludeProcessor")+" subclass "+ke.$class()+" must implement the #process method")}),v(m,"$handles?",Ye(!0))}(ee[0],$e("Processor"),ee),function(U,g){var o=ae(U,"IncludeProcessorDsl"),m=[o].concat(g),T=a.$r(m);return o.$include(T("DocumentProcessorDsl")),v(o,"$handles?",function k(y){var L=k.$$p||we,j,de,oe,ke=this;return ke.handles_block==null&&(ke.handles_block=we),k.$$p=null,j=G(arguments),de=j,L!==we?(V(de["$empty?"]())||ke.$raise(Ne("ArgumentError"),"wrong number of arguments (given "+de.$size()+", expected 0)"),ke.handles_block=L):V((oe=ke.handles_block,oe!=null&&oe!==we?"instance-variable":we))?ke.handles_block.$call(de["$[]"](0)):!0},-1)}(ee[0],ee),dt($e("IncludeProcessor"),"DSL",$e("IncludeProcessorDsl")),function(U,g,o){var m=te(U,g,"DocinfoProcessor"),T=[m].concat(o),k=a.$r(T),y=m.$$prototype;return y.config=we,v(m,"$initialize",function L(j){var de;L.$$p;var oe=this,ke=we;return L.$$p=null,j==null&&(j=_e([],{})),st(oe,We(oe,"initialize",L,!1,!0),"initialize",[j],null),V(ke=oe.config["$[]"]("location"))?ke:(de=["location","head"],Y(oe.config,"[]=",de),de[de.length-1])},-1),v(m,"$process",function(j){var de=this;return de.$raise(Ne("NotImplementedError"),""+k("DocinfoProcessor")+" subclass "+de.$class()+" must implement the #process method")})}(ee[0],$e("Processor"),ee),function(U,g){var o=ae(U,"DocinfoProcessorDsl"),m=[o].concat(g),T=a.$r(m);return o.$include(T("DocumentProcessorDsl")),v(o,"$at_location",function(y){var L=this;return L.$option("location",y)})}(ee[0],ee),dt($e("DocinfoProcessor"),"DSL",$e("DocinfoProcessorDsl")),function(U,g,o){var m=te(U,g,"BlockProcessor"),T=[m].concat(o),k=a.$r(T),y=m.$$prototype;return y.config=we,m.$attr_accessor("name"),v(m,"$initialize",function L(j,de){var oe;L.$$p;var ke=this,Be=we;return L.$$p=null,j==null&&(j=we),de==null&&(de=_e([],{})),st(ke,We(ke,"initialize",L,!1,!0),"initialize",[de],null),ke.name=V(Be=j)?Be:ke.config["$[]"]("name"),Ge(Je,Be=ke.config["$[]"]("contexts"))?V(ke.config["$[]"]("contexts"))||ke.config["$[]="]("contexts",["open","paragraph"].$to_set()):Ge(Ne("Symbol"),Be)?ke.config["$[]="]("contexts",[ke.config["$[]"]("contexts")].$to_set()):ke.config["$[]="]("contexts",ke.config["$[]"]("contexts").$to_set()),V(Be=ke.config["$[]"]("content_model"))?Be:(oe=["content_model","compound"],Y(ke.config,"[]=",oe),oe[oe.length-1])},-1),v(m,"$process",function(j,de,oe){var ke=this;return ke.$raise(Ne("NotImplementedError"),""+k("BlockProcessor")+" subclass "+ke.$class()+" must implement the #process method")})}(ee[0],$e("Processor"),ee),function(U,g){var o=ae(U,"BlockProcessorDsl"),m=[o].concat(g),T=a.$r(m);return o.$include(T("SyntaxProcessorDsl")),v(o,"$contexts",function(y){var L,j,de=this;return L=G(arguments),j=L,de.$option("contexts",j.$flatten().$to_set())},-1),Ue(o,"on_contexts","contexts"),Ue(o,"on_context","contexts"),Ue(o,"bind_to","contexts")}(ee[0],ee),dt($e("BlockProcessor"),"DSL",$e("BlockProcessorDsl")),function(U,g,o){var m=te(U,g,"MacroProcessor"),T=[m].concat(o),k=a.$r(T),y=m.$$prototype;return y.config=we,m.$attr_accessor("name"),v(m,"$initialize",function L(j,de){var oe;L.$$p;var ke=this,Be=we;return L.$$p=null,j==null&&(j=we),de==null&&(de=_e([],{})),st(ke,We(ke,"initialize",L,!1,!0),"initialize",[de],null),ke.name=V(Be=j)?Be:ke.config["$[]"]("name"),V(Be=ke.config["$[]"]("content_model"))?Be:(oe=["content_model","attributes"],Y(ke.config,"[]=",oe),oe[oe.length-1])},-1),v(m,"$process",function(j,de,oe){var ke=this;return ke.$raise(Ne("NotImplementedError"),""+k("MacroProcessor")+" subclass "+ke.$class()+" must implement the #process method")})}(ee[0],$e("Processor"),ee),function(U,g){var o=ae(U,"MacroProcessorDsl"),m=[o].concat(g),T=a.$r(m);return o.$include(T("SyntaxProcessorDsl")),v(o,"$resolve_attributes",function k(y){var L,j,de=k.$$p||we,oe=this;return k.$$p=null,L=G(arguments),j=L,C(j.$size(),1)&&ze(j["$[]"](0))?oe.$option("content_model","text"):(st(oe,We(oe,"resolve_attributes",k,!1,!0),"resolve_attributes",qe(j),de),oe.$option("content_model","attributes"))},-1),Ue(o,"resolves_attributes","resolve_attributes")}(ee[0],ee),function(U,g,o){var m=te(U,g,"BlockMacroProcessor"),T=[m].concat(o),k=a.$r(T),y=m.$$prototype;return y.name=we,v(m,"$name",function(){var j=this;return V(k("MacroNameRx")["$match?"](j.name.$to_s()))||j.$raise(Ne("ArgumentError"),"invalid name for block macro: "+j.name),j.name})}(ee[0],$e("MacroProcessor"),ee),dt($e("BlockMacroProcessor"),"DSL",$e("MacroProcessorDsl")),function(U,g,o){var m=te(U,g,"InlineMacroProcessor"),T=[m].concat(o),k=a.$r(T),y=m.$$prototype;return y.config=y.name=we,$t(T[0],"@@rx_cache",_e([],{})),v(m,"$regexp",function(){var j,de=this,oe=we;return V(oe=de.config["$[]"]("regexp"))?oe:(j=["regexp",de.$resolve_regexp(de.name.$to_s(),de.config["$[]"]("format"))],Y(de.config,"[]=",j),j[j.length-1])}),v(m,"$resolve_regexp",function(j,de){var oe,ke=this,Be=we;return V(k("MacroNameRx")["$match?"](j))||ke.$raise(Ne("ArgumentError"),"invalid name for inline macro: "+j),V(Be=z(T[0],"@@rx_cache",!1)["$[]"]([j,de]))?Be:(oe=[[j,de],et(["\\\\?",j,":",C(de,"short")?"(){0}":"(\\S+?)","\\[(|",k("CC_ANY"),"*?[^\\\\])\\]"])],Y(z(T[0],"@@rx_cache",!1),"[]=",oe),oe[oe.length-1])})}(ee[0],$e("MacroProcessor"),ee),function(U,g){var o=ae(U,"InlineMacroProcessorDsl"),m=[o].concat(g),T=a.$r(m);return o.$include(T("MacroProcessorDsl")),v(o,"$format",function(y){var L=this;return L.$option("format",y)}),Ue(o,"match_format","format"),Ue(o,"using_format","format"),v(o,"$match",function(y){var L=this;return L.$option("regexp",y)})}(ee[0],ee),dt($e("InlineMacroProcessor"),"DSL",$e("InlineMacroProcessorDsl")),function(U,g){var o=te(U,g,"Extension");return o.$attr_reader("kind"),o.$attr_reader("config"),o.$attr_reader("instance"),v(o,"$initialize",function(T,k,y){var L=this;return L.kind=T,L.instance=k,L.config=y})}(ee[0],null),function(U,g){var o=te(U,g,"ProcessorExtension");return o.$attr_reader("process_method"),v(o,"$initialize",function m(T,k,y){m.$$p;var L=this,j=we;return m.$$p=null,y==null&&(y=we),st(L,We(L,"initialize",m,!1,!0),"initialize",[T,k,k.$config()],null),L.process_method=V(j=y)?j:k.$method("process")},-3)}(ee[0],$e("Extension")),function(U,g,o){var m=te(U,g,"Group"),T=[m].concat(o);return function(k,y){var L=[k].concat(y),j=a.$r(L);return v(k,"$register",function(oe){var ke=this;return oe==null&&(oe=we),j("Extensions").$register(oe,ke)},-1)}(a.get_singleton_class(m),T),v(m,"$activate",function(y){var L=this;return L.$raise(Ne("NotImplementedError"))})}(ee[0],null,ee),function(U,g,o){var m=te(U,g,"Registry"),T=[m].concat(o),k=a.$r(T),y=m.$$prototype;return y.document=y.groups=y.preprocessor_extensions=y.tree_processor_extensions=y.postprocessor_extensions=y.include_processor_extensions=y.docinfo_processor_extensions=y.block_extensions=y.block_macro_extensions=y.inline_macro_extensions=we,m.$attr_reader("document"),m.$attr_reader("groups"),v(m,"$initialize",function(j){var de=this;return j==null&&(j=_e([],{})),de.groups=j,de.$reset(),de.preprocessor_extensions=de.tree_processor_extensions=de.postprocessor_extensions=de.include_processor_extensions=de.docinfo_processor_extensions=de.block_extensions=de.block_macro_extensions=de.inline_macro_extensions=we,de.document=we},-1),v(m,"$activate",function(j){var de=this,oe=we;return V(de.document)&&de.$reset(),de.document=j,V((oe=Ie(k("Extensions").$groups().$values(),de.groups.$values()))["$empty?"]())||Y(oe,"each",[],function ke(Be){var Xe=ke.$$s==null?this:ke.$$s,it=we;if(Be==null&&(Be=we),Ge(Ne("Proc"),it=Be))switch(Be.$arity()){case 0:case-1:return Y(Xe,"instance_exec",[],Be.$to_proc());case 1:return Be.$call(Xe);default:return we}else return Ge(E,it)?Be.$new().$activate(Xe):Be.$activate(Xe)},{$$s:de}),de}),v(m,"$preprocessor",function L(j){var de=L.$$p||we,oe,ke,Be=this;return L.$$p=null,oe=G(arguments),ke=oe,Y(Be,"add_document_processor",["preprocessor",ke],de.$to_proc())},-1),v(m,"$preprocessors?",function(){var j=this;return j.preprocessor_extensions["$!"]()["$!"]()}),v(m,"$preprocessors",tt("preprocessor_extensions")),v(m,"$tree_processor",function L(j){var de=L.$$p||we,oe,ke,Be=this;return L.$$p=null,oe=G(arguments),ke=oe,Y(Be,"add_document_processor",["tree_processor",ke],de.$to_proc())},-1),v(m,"$tree_processors?",function(){var j=this;return j.tree_processor_extensions["$!"]()["$!"]()}),v(m,"$tree_processors",tt("tree_processor_extensions")),Ue(m,"treeprocessor","tree_processor"),Ue(m,"treeprocessors?","tree_processors?"),Ue(m,"treeprocessors","tree_processors"),v(m,"$postprocessor",function L(j){var de=L.$$p||we,oe,ke,Be=this;return L.$$p=null,oe=G(arguments),ke=oe,Y(Be,"add_document_processor",["postprocessor",ke],de.$to_proc())},-1),v(m,"$postprocessors?",function(){var j=this;return j.postprocessor_extensions["$!"]()["$!"]()}),v(m,"$postprocessors",tt("postprocessor_extensions")),v(m,"$include_processor",function L(j){var de=L.$$p||we,oe,ke,Be=this;return L.$$p=null,oe=G(arguments),ke=oe,Y(Be,"add_document_processor",["include_processor",ke],de.$to_proc())},-1),v(m,"$include_processors?",function(){var j=this;return j.include_processor_extensions["$!"]()["$!"]()}),v(m,"$include_processors",tt("include_processor_extensions")),v(m,"$docinfo_processor",function L(j){var de=L.$$p||we,oe,ke,Be=this;return L.$$p=null,oe=G(arguments),ke=oe,Y(Be,"add_document_processor",["docinfo_processor",ke],de.$to_proc())},-1),v(m,"$docinfo_processors?",function(j){var de=this;return j==null&&(j=we),V(de.docinfo_processor_extensions)?V(j)?Y(de.docinfo_processor_extensions,"any?",[],function(ke){return ke==null&&(ke=we),ke.$config()["$[]"]("location")["$=="](j)}):!0:!1},-1),v(m,"$docinfo_processors",function(j){var de=this;return j==null&&(j=we),V(de.docinfo_processor_extensions)?V(j)?Y(de.docinfo_processor_extensions,"select",[],function(ke){return ke==null&&(ke=we),ke.$config()["$[]"]("location")["$=="](j)}):de.docinfo_processor_extensions:we},-1),v(m,"$block",function L(j){var de=L.$$p||we,oe,ke,Be=this;return L.$$p=null,oe=G(arguments),ke=oe,Y(Be,"add_syntax_processor",["block",ke],de.$to_proc())},-1),v(m,"$blocks?",function(){var j=this;return j.block_extensions["$!"]()["$!"]()}),v(m,"$registered_for_block?",function(j,de){var oe=this,ke=we;return V(ke=oe.block_extensions["$[]"](j.$to_sym()))&&V(ke.$config()["$[]"]("contexts")["$include?"](de))?ke:!1}),v(m,"$find_block_extension",function(j){var de=this;return de.block_extensions["$[]"](j.$to_sym())}),v(m,"$block_macro",function L(j){var de=L.$$p||we,oe,ke,Be=this;return L.$$p=null,oe=G(arguments),ke=oe,Y(Be,"add_syntax_processor",["block_macro",ke],de.$to_proc())},-1),v(m,"$block_macros?",function(){var j=this;return j.block_macro_extensions["$!"]()["$!"]()}),v(m,"$registered_for_block_macro?",function(j){var de=this,oe=we;return V(oe=de.block_macro_extensions["$[]"](j.$to_sym()))?oe:!1}),v(m,"$find_block_macro_extension",function(j){var de=this;return de.block_macro_extensions["$[]"](j.$to_sym())}),v(m,"$inline_macro",function L(j){var de=L.$$p||we,oe,ke,Be=this;return L.$$p=null,oe=G(arguments),ke=oe,Y(Be,"add_syntax_processor",["inline_macro",ke],de.$to_proc())},-1),v(m,"$inline_macros?",function(){var j=this;return j.inline_macro_extensions["$!"]()["$!"]()}),v(m,"$registered_for_inline_macro?",function(j){var de=this,oe=we;return V(oe=de.inline_macro_extensions["$[]"](j.$to_sym()))?oe:!1}),v(m,"$find_inline_macro_extension",function(j){var de=this;return de.inline_macro_extensions["$[]"](j.$to_sym())}),v(m,"$inline_macros",function(){var j=this;return j.inline_macro_extensions.$values()}),v(m,"$prefer",function L(j){var de=L.$$p||we,oe,ke,Be=this,Xe=we,it=we,ht=we;return L.$$p=null,oe=G(arguments),ke=oe,Xe=Ge(k("ProcessorExtension"),it=ke.$shift())?it:Y(Be,"send",[it].concat(qe(ke)),de.$to_proc()),ht=Be.$instance_variable_get(("@"+Xe.$kind()+"_extensions").$to_sym()),ht.$unshift(ht.$delete(Xe)),Xe},-1),m.$private(),v(m,"$add_document_processor",function L(j,de){var oe=L.$$p||we,ke,Be,Xe=this,it=we,ht=we,at=we,mt=we,yt=we,xt=we,vt=we,Tt=we,St=we,Yt=we,Bt=we;return L.$$p=null,it=j.$to_s().$tr("_"," "),ht=Y(it.$split(),"map",[],function(Kt){return Kt==null&&(Kt=we),Kt.$capitalize()}).$join().$to_sym(),at=k("Extensions").$const_get(ht,!1),mt=V(Ne("::","AsciidoctorJ","skip_raise")?"constant":we)?Ne(Ne("AsciidoctorJ"),"Extensions").$const_get(ht,!1):we,yt=V(xt=Xe.$instance_variable_get(("@"+j+"_extensions").$to_sym()))?xt:Xe.$instance_variable_set(("@"+j+"_extensions").$to_sym(),[]),oe!==we?(vt=Xe.$resolve_args(de,1),(Tt=at.$new(vt)).$singleton_class().$enable_dsl(),C(oe.$arity(),0)?Y(Tt,"instance_exec",[],oe.$to_proc()):a.yield1(oe,Tt),V(Tt["$process_block_given?"]())||Xe.$raise(Ne("NoMethodError"),"No block specified to process "+it+" extension at "+oe.$source_location().$join(":")),Tt.$freeze(),St=k("ProcessorExtension").$new(j,Tt)):(Be=Xe.$resolve_args(de,2),ke=je(Be),Tt=ke[0]==null?we:ke[0],vt=ke[1]==null?we:ke[1],V(Yt=k("Helpers").$resolve_class(Tt))?(V(lt(Yt,at))||V(mt)&&V(lt(Yt,mt))||Xe.$raise(Ne("ArgumentError"),"Invalid type for "+it+" extension: "+Tt),Bt=Yt.$new(vt),Bt.$freeze(),St=k("ProcessorExtension").$new(j,Bt)):Ge(at,Tt)||V(mt)&&Ge(mt,Tt)?(Tt.$update_config(vt),Tt.$freeze(),St=k("ProcessorExtension").$new(j,Tt)):Xe.$raise(Ne("ArgumentError"),"Invalid arguments specified for registering "+it+" extension: "+de)),C(St.$config()["$[]"]("position"),">>")?yt.$unshift(St):yt["$<<"](St),St}),v(m,"$add_syntax_processor",function L(j,de){var oe=L.$$p||we,ke,Be,Xe=this,it=we,ht=we,at=we,mt=we,yt=we,xt=we,vt=we,Tt=we,St=we,Yt=we,Bt=we;return L.$$p=null,it=j.$to_s().$tr("_"," "),ht=Y(it.$split(),"map",[],function(Kt){return Kt==null&&(Kt=we),Kt.$capitalize()})["$<<"]("Processor").$join().$to_sym(),at=k("Extensions").$const_get(ht,!1),mt=V(Ne("::","AsciidoctorJ","skip_raise")?"constant":we)?Ne(Ne("AsciidoctorJ"),"Extensions").$const_get(ht,!1):we,yt=V(xt=Xe.$instance_variable_get(("@"+j+"_extensions").$to_sym()))?xt:Xe.$instance_variable_set(("@"+j+"_extensions").$to_sym(),_e([],{})),oe!==we?(Be=Xe.$resolve_args(de,2),ke=je(Be),vt=ke[0]==null?we:ke[0],Tt=ke[1]==null?we:ke[1],(St=at.$new(Xe.$as_symbol(vt),Tt)).$singleton_class().$enable_dsl(),C(oe.$arity(),0)?Y(St,"instance_exec",[],oe.$to_proc()):a.yield1(oe,St),V(vt=Xe.$as_symbol(St.$name()))||Xe.$raise(Ne("ArgumentError"),"No name specified for "+it+" extension at "+oe.$source_location().$join(":")),V(St["$process_block_given?"]())||Xe.$raise(Ne("NoMethodError"),"No block specified to process "+it+" extension at "+oe.$source_location().$join(":")),St.$freeze(),ke=[vt,k("ProcessorExtension").$new(j,St)],Y(yt,"[]=",ke),ke[ke.length-1]):(Be=Xe.$resolve_args(de,3),ke=je(Be),St=ke[0]==null?we:ke[0],vt=ke[1]==null?we:ke[1],Tt=ke[2]==null?we:ke[2],V(Yt=k("Helpers").$resolve_class(St))?(V(lt(Yt,at))||V(mt)&&V(lt(Yt,mt))||Xe.$raise(Ne("ArgumentError"),"Class specified for "+it+" extension does not inherit from "+at+": "+St),Bt=Yt.$new(Xe.$as_symbol(vt),Tt),V(vt=Xe.$as_symbol(Bt.$name()))||Xe.$raise(Ne("ArgumentError"),"No name specified for "+it+" extension: "+St),Bt.$freeze(),ke=[vt,k("ProcessorExtension").$new(j,Bt)],Y(yt,"[]=",ke),ke[ke.length-1]):Ge(at,St)||V(mt)&&Ge(mt,St)?(St.$update_config(Tt),V(vt=V(vt)?(ke=[Xe.$as_symbol(vt)],Y(St,"name=",ke),ke[ke.length-1]):Xe.$as_symbol(St.$name()))||Xe.$raise(Ne("ArgumentError"),"No name specified for "+it+" extension: "+St),St.$freeze(),ke=[vt,k("ProcessorExtension").$new(j,St)],Y(yt,"[]=",ke),ke[ke.length-1]):Xe.$raise(Ne("ArgumentError"),"Invalid arguments specified for registering "+it+" extension: "+de))}),v(m,"$reset",function(){var j=this;return j.preprocessor_extensions=j.tree_processor_extensions=j.postprocessor_extensions=j.include_processor_extensions=j.docinfo_processor_extensions=j.block_extensions=j.block_macro_extensions=j.inline_macro_extensions=we,j.document=we}),v(m,"$resolve_args",function(j,de){var oe=we,ke=we;return oe=Ge(Ne("Hash"),j["$[]"](-1))?j.$pop():_e([],{}),C(de,1)?oe:(V(Oe(ke=K(K(de,1),j.$size()),0))?j=Ie(j,Ne("Array").$new(ke)):V(lt(ke,0))&&j.$pop(ke["$-@"]()),j["$<<"](oe),j)}),v(m,"$as_symbol",function(j){return V(j)?j.$to_sym():we})}(ee[0],null,ee),function(U,g){var o=[U].concat(g),m=a.$r(o);return v(U,"$generate_name",function(){var k=this;return"extgrp"+k.$next_auto_id()}),v(U,"$next_auto_id",function(){var k=this,y=we;return k.auto_id==null&&(k.auto_id=we),k.auto_id=V(y=k.auto_id)?y:-1,k.auto_id=Ie(k.auto_id,1)}),v(U,"$groups",function(){var k=this,y=we;return k.groups==null&&(k.groups=we),k.groups=V(y=k.groups)?y:_e([],{})}),v(U,"$create",function T(k){var y=T.$$p||we,L=this,j=we;return T.$$p=null,k==null&&(k=we),y!==we?m("Registry").$new(D(V(j=k)?j:L.$generate_name(),y)):m("Registry").$new()},-1),v(U,"$register",function T(k){var y=T.$$p||we,L,j,de,oe=this,ke=we,Be=we,Xe=we,it=we,ht=we;return T.$$p=null,L=G(arguments),j=L,ke=j.$size(),y!==we?Be=y:V(Xe=j.$pop())?Be=V(it=m("Helpers").$resolve_class(Xe))?it:Xe:oe.$raise(Ne("ArgumentError"),"Extension group to register not specified"),ht=V(it=j.$pop())?it:oe.$generate_name(),V(j["$empty?"]())||oe.$raise(Ne("ArgumentError"),"Wrong number of arguments ("+ke+" for 1..2)"),de=[ht.$to_sym(),Be],Y(oe.$groups(),"[]=",de),de[de.length-1]},-1),v(U,"$unregister_all",function(){var k=this;return k.groups=_e([],{}),we}),v(U,"$unregister",function(k){var y,L,j=this;return y=G(arguments),L=y,Y(L,"each_with_object",[j.$groups()],function(oe,ke){return oe==null&&(oe=we),ke==null&&(ke=we),ke.$delete(oe.$to_sym())}),we},-1)}(a.get_singleton_class(ie),ee)}(Z[0],Z)}(He[0],He)},Opal.modules["asciidoctor/js/asciidoctor_ext/stylesheet"]=function(a){var ae=a.module,te=a.klass,V=a.truthy,_e=a.def,v=[],Y=a.nil,Ue=a.$$$;return a.add_stubs("rstrip,read,join"),function(G,Ie){var C=ae(G,"Asciidoctor"),Oe=[C].concat(Ie);return function(ze,Ge){var qe=te(ze,Ge,"Stylesheets"),je=qe.$$prototype;return je.primary_stylesheet_data=Y,_e(qe,"$primary_stylesheet_data",function(){var Ye=this,st=Y;return Ye.primary_stylesheet_data=V(st=Ye.primary_stylesheet_data)?st:Ue("IO").$read(Ue("File").$join("css","asciidoctor.css")).$rstrip()})}(Oe[0],null)}(v[0],v)},Opal.modules["asciidoctor/js/asciidoctor_ext/document"]=function(a){var ae=a.module,te=a.klass,V=a.def,_e=[];return a.nil,function(v,Y){var Ue=ae(v,"Asciidoctor"),G=[Ue].concat(Y),Ie=a.$r(G);return function(C,Oe){var ze=te(C,Oe,"Document");return V(ze,"$fill_datetime_attributes",function(qe,je){var dt=a.truthy,Ye=a.falsy,st=a.nil,We,Je,$t,z,et,E,tt,lt,K=function(T,k){return k===0?T.getUTCFullYear():T.getFullYear()},D=function(T,k){return k===0?T.getUTCMonth():T.getMonth()},He=function(T,k){return k===0?T.getUTCDate():T.getDate()},we=function(T,k){return k===0?T.getUTCHours():T.getHours()},Ne=new Date;if(a.const_get_qualified("::","ENV")["$key?"]("SOURCE_DATE_EPOCH")?(Ne.setTime(parseInt(a.const_get_qualified("::","ENV")["$[]"]("SOURCE_DATE_EPOCH"))*1e3),Je=Ne,We=0):We=-Ne.getTimezoneOffset()/60,dt($t=qe["$[]"]("localdate")))Ye(z=qe["$[]"]("localyear"))&&(z=$t.indexOf("-")===4?$t.substring(0,4):st,qe["$[]="]("localyear",z));else{var Te=K(Ne,We).toString(),ue=("0"+(D(Ne,We)+1)).slice(-2),ye=("0"+He(Ne,We)).slice(-2);$t=Te+"-"+ue+"-"+ye,qe["$[]="]("localdate",$t),z=Te,qe["$[]="]("localyear",Te)}if(Ye(et=qe["$[]"]("localtime"))){var Z=("0"+we(Ne,We)).slice(-2),B=("0"+Ne.getMinutes()).slice(-2),q=("0"+Ne.getSeconds()).slice(-2),ie;We===0?ie="UTC":We>0?ie=("+0"+We*100).slice(-5):ie=("-0"+-We*100).slice(-5),et=Z+":"+B+":"+q+" "+ie,qe["$[]="]("localtime",et)}if(Ye(E=qe["$[]"]("localdatetime"))&&(E=$t+" "+et,qe["$[]="]("localdatetime",E)),dt(Je)?je=Je:dt(je)?We=-je.getTimezoneOffset()/60:je=Ne,dt(tt=qe["$[]"]("docdate")))qe["$[]="]("docyear",tt.indexOf("-")===4?tt.substring(0,4):st);else{var ee=K(je,We).toString(),$e=("0"+(D(je,We)+1)).slice(-2),U=("0"+He(je,We)).slice(-2);tt=ee+"-"+$e+"-"+U,qe["$[]="]("docdate",tt),Ye(qe["$[]"]("docyear"))&&qe["$[]="]("docyear",ee)}if(Ye(lt=qe["$[]"]("doctime"))){var g=("0"+we(je,We)).slice(-2),o=("0"+je.getMinutes()).slice(-2),m=("0"+je.getSeconds()).slice(-2),ie;We===0?ie="UTC":We>0?ie=("+0"+We*100).slice(-5):ie=("-0"+-We*100).slice(-5),lt=g+":"+o+":"+m+" "+ie,qe["$[]="]("doctime",lt)}return Ye(qe["$[]"]("docdatetime"))&&qe["$[]="]("docdatetime",tt+" "+lt),st})}(G[0],Ie("AbstractBlock"))}(_e[0],_e)},Opal.modules["asciidoctor/js/asciidoctor_ext/substitutors"]=function(a){var ae=a.module,te=a.def,V=[];return a.nil,function(_e,v){var Y=ae(_e,"Asciidoctor"),Ue=[Y].concat(v);return function(G){var Ie=ae(G,"Substitutors");return te(Ie,"$sub_placeholder",function(Oe,ze){return Oe.replace("%s",ze)})}(Ue[0])}(V[0],V)},Opal.modules["asciidoctor/js/asciidoctor_ext/parser"]=function(a){var ae=a.module,te=a.klass,V=a.truthy,_e=a.defs,v=[];return a.nil,function(Y,Ue){var G=ae(Y,"Asciidoctor"),Ie=[G].concat(Ue);return function(C,Oe){var ze=te(C,Oe,"Parser");return V(String.prototype.repeat)?_e(ze,"$uniform?",function(qe,je,dt){return je.repeat(dt)===qe}):_e(ze,"$uniform?",function(qe,je,dt){return Array.apply(null,{length:dt}).map(function(){return je}).join("")===qe})}(Ie[0],null)}(v[0],v)},Opal.modules["asciidoctor/js/asciidoctor_ext/syntax_highlighter"]=function(a){var ae=a.module,te=a.truthy,V=a.def,_e=[],v=a.nil;return a.add_stubs("key?,registry,[],include?,include,empty?,debug,logger,join,keys"),function(Y,Ue){var G=ae(Y,"Asciidoctor"),Ie=[G].concat(Ue);return function(C,Oe){var ze=ae(C,"SyntaxHighlighter"),Ge=[ze].concat(Oe);return function(qe,je){var dt=ae(qe,"Factory"),Ye=[dt].concat(je),st=a.$r(Ye);return V(dt,"$for",function(Je){var $t=this;return te($t.$registry()["$key?"](Je))?$t.$registry()["$[]"](Je):(te($t["$include?"](st("Logging")))||$t.$include(st("Logging")),te($t.$registry()["$empty?"]())?$t.$logger().$debug("no syntax highlighter available, functionality disabled."):$t.$logger().$debug("syntax highlighter named '"+Je+"' is not available, must be one of: '"+$t.$registry().$keys().$join("', '")+"'."),v)})}(Ge[0],Ge)}(Ie[0],Ie)}(_e[0],_e)},Opal.modules["asciidoctor/js/asciidoctor_ext"]=function(a){var ae=a.top;a.nil,a.add_stubs("require"),ae.$require("asciidoctor/js/asciidoctor_ext/stylesheet"),ae.$require("asciidoctor/js/asciidoctor_ext/document"),ae.$require("asciidoctor/js/asciidoctor_ext/substitutors"),ae.$require("asciidoctor/js/asciidoctor_ext/parser"),ae.$require("asciidoctor/js/asciidoctor_ext/syntax_highlighter"),ae.$require("asciidoctor/js/asciidoctor_ext/browser")},Opal.modules["asciidoctor/js/opal_ext/logger"]=function(a){var ae=a.klass,te=a.def,V=a.truthy,_e=a.rb_lt,v=[],Y=a.nil;return a.add_stubs("chr,rjust,message_as_string,<,write,call,[]"),function(Ue,G,Ie){var C=ae(Ue,G,"Logger"),Oe=[C].concat(Ie),ze=a.$r(Oe),Ge=C.$$prototype;return Ge.level=Ge.progname=Ge.pipe=Ge.formatter=Y,function(qe,je){var dt=ae(qe,je,"Formatter");return te(dt,"$call",function(st,We,Je,$t){var z=this,et=Y;return et=We.getFullYear()+"-"+("0"+(We.getMonth()+1)).slice(-2)+"-"+("0"+We.getDate()).slice(-2)+"T"+("0"+We.getHours()).slice(-2)+":"+("0"+We.getMinutes()).slice(-2)+":"+("0"+We.getSeconds()).slice(-2)+"."+("00"+new Date().getMilliseconds()*1e3).slice(-6),""+st.$chr()+", ["+et+"] "+st.$rjust(5)+" -- "+Je+": "+z.$message_as_string($t)})}(Oe[0],null),te(C,"$add",function qe(je,dt,Ye){var st=qe.$$p||Y,We=this,Je=Y;return qe.$$p=null,dt==null&&(dt=Y),Ye==null&&(Ye=Y),V(_e(je=V(Je=je)?Je:ze("UNKNOWN"),We.level))||(Ye=V(Je=Ye)?Je:We.progname,V(dt)||(st!==Y?dt=a.yieldX(st,[]):(dt=Ye,Ye=We.progname)),We.pipe.$write(We.formatter.$call(V(Je=ze("SEVERITY_LABELS")["$[]"](je))?Je:"ANY",new Date,Ye,dt))),!0},-2)}(v[0],null,v)},Opal.modules["asciidoctor/js/postscript"]=function(a){var ae=a.top;return a.nil,a.add_stubs("require"),ae.$require("asciidoctor/converter/composite"),ae.$require("asciidoctor/converter/html5"),ae.$require("asciidoctor/extensions"),ae.$require("asciidoctor/js/asciidoctor_ext"),ae.$require("asciidoctor/js/opal_ext/logger")},Opal.queue(function(a){var ae=a.module,te=a.const_set,V=a.send,_e=a.to_ary,v=a.defs,Y=a.def,Ue=a.truthy,G=a.hash2,Ie=a.eqeq,C=a.rb_minus,Oe=a.regexp,ze=a.top,Ge=[],qe=a.nil,je=a.$$$;return a.add_stubs("require,==,to_h,sort,map,constants,const_get,downcase,to_s,<=>,upcase,[],values,new,attr_reader,instance_variable_set,send,singleton_class,<<,define,dirname,absolute_path,join,home,pwd,to_set,tap,each,chr,each_key,[]=,slice,length,-,merge,default=,drop,insert"),ze.$require("set"),ze.$require("asciidoctor/js"),function(dt,Ye){var st=ae(dt,"Asciidoctor"),We=[st].concat(Ye),Je=a.$r(We),$t=qe;return te(We[0],"RUBY_ENGINE_OPAL",te(We[0],"RUBY_ENGINE",je("RUBY_ENGINE"))["$=="]("opal")),function(z,et){var E=ae(z,"SafeMode"),tt=[E].concat(et);return te(tt[0],"UNSAFE",0),te(tt[0],"SAFE",1),te(tt[0],"SERVER",10),te(tt[0],"SECURE",20),E.names_by_value=V(V(E.$constants(!1),"map",[],function lt(K){var D=lt.$$s==null?this:lt.$$s;return K==null&&(K=qe),[D.$const_get(K),K.$to_s().$downcase()]},{$$s:E}),"sort",[],function(K,D){var He,we,Ne=qe,Te=qe;return K==null&&(K=qe),D==null&&(D=qe),we=K,He=_e(we),Ne=He[0]==null?qe:He[0],we=D,He=_e(we),Te=He[0]==null?qe:He[0],Ne["$<=>"](Te)},{$$has_top_level_mlhs_arg:!0}).$to_h(),v(E,"$value_for_name",function(K){var D=this;return D.$const_get(K.$upcase(),!1)}),v(E,"$name_for_value",function(K){var D=this;return D.names_by_value==null&&(D.names_by_value=qe),D.names_by_value["$[]"](K)}),v(E,"$names",function(){var K=this;return K.names_by_value==null&&(K.names_by_value=qe),K.names_by_value.$values()})}(We[0],We),function(z,et){var E=ae(z,"Compliance");return E.keys=je("Set").$new(),function(tt,lt){return tt.$attr_reader("keys"),Y(tt,"$define",function(D,He){var we=this;return we.keys==null&&(we.keys=qe),we.$instance_variable_set("@"+D,He),we.$singleton_class().$send("attr_accessor",D),we.keys["$<<"](D),qe})}(a.get_singleton_class(E)),E.$define("block_terminates_paragraph",!0),E.$define("strict_verbatim_paragraphs",!0),E.$define("underline_style_section_titles",!0),E.$define("unwrap_standalone_preamble",!0),E.$define("attribute_missing","skip"),E.$define("attribute_undefined","drop-line"),E.$define("shorthand_property_syntax",!0),E.$define("natural_xrefs",!0),E.$define("unique_id_start_index",2),E.$define("markdown_syntax",!0)}(We[0]),Ue(Je("ROOT_DIR","skip_raise")?"constant":qe)||te(We[0],"ROOT_DIR",je("File").$dirname(je("File").$absolute_path("."))),te(We[0],"LIB_DIR",je("File").$join(Je("ROOT_DIR"),"lib")),te(We[0],"DATA_DIR",je("File").$join(Je("ROOT_DIR"),"data")),te(We[0],"USER_HOME",function(){try{return je("Dir").$home()}catch(z){if(a.rescue(z,[Je("StandardError")]))try{return Ue($t=je("ENV")["$[]"]("HOME"))?$t:je("Dir").$pwd()}finally{a.pop_exception()}else throw z}}()),te(We[0],"LF",`
|
|
601
|
-
`),te(We[0],"NULL","\0"),te(We[0],"TAB"," "),te(We[0],"MAX_INT",9007199254740991),te(We[0],"UTF_8",je(je("Encoding"),"UTF_8")),te(We[0],"BOM_BYTES_UTF_8",[239,187,191]),te(We[0],"BOM_BYTES_UTF_16LE",[255,254]),te(We[0],"BOM_BYTES_UTF_16BE",[254,255]),te(We[0],"FILE_READ_MODE",Ue(Je("RUBY_ENGINE_OPAL"))?"r":"rb:utf-8:utf-8"),te(We[0],"URI_READ_MODE",Je("FILE_READ_MODE")),te(We[0],"FILE_WRITE_MODE",Ue(Je("RUBY_ENGINE_OPAL"))?"w":"w:utf-8"),te(We[0],"DEFAULT_DOCTYPE","article"),te(We[0],"DEFAULT_BACKEND","html5"),te(We[0],"DEFAULT_STYLESHEET_KEYS",["","DEFAULT"].$to_set()),te(We[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),te(We[0],"BACKEND_ALIASES",G(["html","docbook"],{html:"html5",docbook:"docbook5"})),te(We[0],"DEFAULT_PAGE_WIDTHS",G(["docbook"],{docbook:425})),te(We[0],"DEFAULT_EXTENSIONS",G(["html","docbook","pdf","epub","manpage","asciidoc"],{html:".html",docbook:".xml",pdf:".pdf",epub:".epub",manpage:".man",asciidoc:".adoc"})),te(We[0],"ASCIIDOC_EXTENSIONS",G([".adoc",".asciidoc",".asc",".ad",".txt"],{".adoc":!0,".asciidoc":!0,".asc":!0,".ad":!0,".txt":!0})),te(We[0],"SETEXT_SECTION_LEVELS",G(["=","-","~","^","+"],{"=":0,"-":1,"~":2,"^":3,"+":4})),te(We[0],"ADMONITION_STYLES",["NOTE","TIP","IMPORTANT","WARNING","CAUTION"].$to_set()),te(We[0],"ADMONITION_STYLE_HEADS",V(je("Set").$new(),"tap",[],function(et){return et==null&&(et=qe),V(Je("ADMONITION_STYLES"),"each",[],function(tt){return tt==null&&(tt=qe),et["$<<"](tt.$chr())})})),te(We[0],"PARAGRAPH_STYLES",["comment","example","literal","listing","normal","open","pass","quote","sidebar","source","verse","abstract","partintro"].$to_set()),te(We[0],"VERBATIM_STYLES",["literal","listing","source","verse"].$to_set()),te(We[0],"DELIMITED_BLOCKS",G(["--","----","....","====","****","____","++++","|===",",===",":===","!===","////","```"],{"--":["open",["comment","example","literal","listing","pass","quote","sidebar","source","verse","admonition","abstract","partintro"].$to_set()],"----":["listing",["literal","source"].$to_set()],"....":["literal",["listing","source"].$to_set()],"====":["example",["admonition"].$to_set()],"****":["sidebar",je("Set").$new()],____:["quote",["verse"].$to_set()],"++++":["pass",["stem","latexmath","asciimath"].$to_set()],"|===":["table",je("Set").$new()],",===":["table",je("Set").$new()],":===":["table",je("Set").$new()],"!===":["table",je("Set").$new()],"////":["comment",je("Set").$new()],"```":["fenced_code",je("Set").$new()]})),te(We[0],"DELIMITED_BLOCK_HEADS",V(G([],{}),"tap",[],function(et){return et==null&&(et=qe),V(Je("DELIMITED_BLOCKS"),"each_key",[],function(tt){var lt;return tt==null&&(tt=qe),lt=[tt.$slice(0,2),!0],V(et,"[]=",lt),lt[lt.length-1]})})),te(We[0],"DELIMITED_BLOCK_TAILS",V(G([],{}),"tap",[],function(et){return et==null&&(et=qe),V(Je("DELIMITED_BLOCKS"),"each_key",[],function(tt){var lt;return tt==null&&(tt=qe),Ie(tt.$length(),4)?(lt=[tt,tt["$[]"](C(tt.$length(),1))],V(et,"[]=",lt),lt[lt.length-1]):qe})})),te(We[0],"CAPTION_ATTRIBUTE_NAMES",G(["example","figure","listing","table"],{example:"example-caption",figure:"figure-caption",listing:"listing-caption",table:"table-caption"})),te(We[0],"LAYOUT_BREAK_CHARS",G(["'","<"],{"'":"thematic_break","<":"page_break"})),te(We[0],"MARKDOWN_THEMATIC_BREAK_CHARS",G(["-","*","_"],{"-":"thematic_break","*":"thematic_break",_:"thematic_break"})),te(We[0],"HYBRID_LAYOUT_BREAK_CHARS",Je("LAYOUT_BREAK_CHARS").$merge(Je("MARKDOWN_THEMATIC_BREAK_CHARS"))),te(We[0],"NESTABLE_LIST_CONTEXTS",["ulist","olist","dlist"]),te(We[0],"ORDERED_LIST_STYLES",["arabic","loweralpha","lowerroman","upperalpha","upperroman"]),te(We[0],"ORDERED_LIST_KEYWORDS",G(["loweralpha","lowerroman","upperalpha","upperroman"],{loweralpha:"a",lowerroman:"i",upperalpha:"A",upperroman:"I"})),te(We[0],"ATTR_REF_HEAD","{"),te(We[0],"LIST_CONTINUATION","+"),te(We[0],"HARD_LINE_BREAK"," +"),te(We[0],"LINE_CONTINUATION"," \\"),te(We[0],"LINE_CONTINUATION_LEGACY"," +"),te(We[0],"BLOCK_MATH_DELIMITERS",G(["asciimath","latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\[","\\]"]})),te(We[0],"INLINE_MATH_DELIMITERS",G(["asciimath","latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]})),te(We[0],"STEM_TYPE_ALIASES",G(["latexmath","latex","tex"],{latexmath:"latexmath",latex:"latexmath",tex:"latexmath"}))["$default="]("asciimath"),te(We[0],"FONT_AWESOME_VERSION","4.7.0"),te(We[0],"HIGHLIGHT_JS_VERSION","9.18.3"),te(We[0],"MATHJAX_VERSION","2.7.9"),te(We[0],"DEFAULT_ATTRIBUTES",G(["appendix-caption","appendix-refsig","caution-caption","chapter-refsig","example-caption","figure-caption","important-caption","last-update-label","note-caption","part-refsig","prewrap","sectids","section-refsig","table-caption","tip-caption","toc-placement","toc-title","untitled-label","version-label","warning-caption"],{"appendix-caption":"Appendix","appendix-refsig":"Appendix","caution-caption":"Caution","chapter-refsig":"Chapter","example-caption":"Example","figure-caption":"Figure","important-caption":"Important","last-update-label":"Last updated","note-caption":"Note","part-refsig":"Part",prewrap:"",sectids:"","section-refsig":"Section","table-caption":"Table","tip-caption":"Tip","toc-placement":"auto","toc-title":"Table of Contents","untitled-label":"Untitled","version-label":"Version","warning-caption":"Warning"})),te(We[0],"FLEXIBLE_ATTRIBUTES",["sectnums"]),te(We[0],"INTRINSIC_ATTRIBUTES",G(["startsb","endsb","vbar","caret","asterisk","tilde","plus","backslash","backtick","blank","empty","sp","two-colons","two-semicolons","nbsp","deg","zwsp","quot","apos","lsquo","rsquo","ldquo","rdquo","wj","brvbar","pp","cpp","amp","lt","gt"],{startsb:"[",endsb:"]",vbar:"|",caret:"^",asterisk:"*",tilde:"~",plus:"+",backslash:"\\",backtick:"`",blank:"",empty:"",sp:" ","two-colons":"::","two-semicolons":";;",nbsp:" ",deg:"°",zwsp:"​",quot:""",apos:"'",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",wj:"⁠",brvbar:"¦",pp:"++",cpp:"C++",amp:"&",lt:"<",gt:">"})),te(We[0],"QUOTE_SUBS",V(G([],{}),"tap",[],function(et){var E=qe,tt=qe;return et==null&&(et=qe),et["$[]="](!1,E=[["strong","unconstrained",Oe(["\\\\?(?:\\[([^\\]]+)\\])?\\*\\*(",Je("CC_ALL"),"+?)\\*\\*"],"m")],["strong","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?\\*(\\S|\\S",Je("CC_ALL"),"*?\\S)\\*(?!",Je("CG_WORD"),")"],"m")],["double","constrained",Oe(["(^|[^",Je("CC_WORD"),';:}])(?:\\[([^\\]]+)\\])?"`(\\S|\\S',Je("CC_ALL"),'*?\\S)`"(?!',Je("CG_WORD"),")"],"m")],["single","constrained",Oe(["(^|[^",Je("CC_WORD"),";:`}])(?:\\[([^\\]]+)\\])?'`(\\S|\\S",Je("CC_ALL"),"*?\\S)`'(?!",Je("CG_WORD"),")"],"m")],["monospaced","unconstrained",Oe(["\\\\?(?:\\[([^\\]]+)\\])?``(",Je("CC_ALL"),"+?)``"],"m")],["monospaced","constrained",Oe(["(^|[^",Je("CC_WORD"),";:\"'`}])(?:\\[([^\\]]+)\\])?`(\\S|\\S",Je("CC_ALL"),"*?\\S)`(?![",Je("CC_WORD"),"\"'`])"],"m")],["emphasis","unconstrained",Oe(["\\\\?(?:\\[([^\\]]+)\\])?__(",Je("CC_ALL"),"+?)__"],"m")],["emphasis","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?_(\\S|\\S",Je("CC_ALL"),"*?\\S)_(?!",Je("CG_WORD"),")"],"m")],["mark","unconstrained",Oe(["\\\\?(?:\\[([^\\]]+)\\])?##(",Je("CC_ALL"),"+?)##"],"m")],["mark","constrained",Oe(["(^|[^",Je("CC_WORD"),"&;:}])(?:\\[([^\\]]+)\\])?#(\\S|\\S",Je("CC_ALL"),"*?\\S)#(?!",Je("CG_WORD"),")"],"m")],["superscript","unconstrained",/\\?(?:\[([^\]]+)\])?\^(\S+?)\^/],["subscript","unconstrained",/\\?(?:\[([^\]]+)\])?~(\S+?)~/]]),et["$[]="](!0,tt=E.$drop(0)),tt["$[]="](2,["double","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?``(\\S|\\S",Je("CC_ALL"),"*?\\S)''(?!",Je("CG_WORD"),")"],"m")]),tt["$[]="](3,["single","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?`(\\S|\\S",Je("CC_ALL"),"*?\\S)'(?!",Je("CG_WORD"),")"],"m")]),tt["$[]="](4,["monospaced","unconstrained",Oe(["\\\\?(?:\\[([^\\]]+)\\])?\\+\\+(",Je("CC_ALL"),"+?)\\+\\+"],"m")]),tt["$[]="](5,["monospaced","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?\\+(\\S|\\S",Je("CC_ALL"),"*?\\S)\\+(?!",Je("CG_WORD"),")"],"m")]),tt.$insert(3,["emphasis","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?'(\\S|\\S",Je("CC_ALL"),"*?\\S)'(?!",Je("CG_WORD"),")"],"m")])})),te(We[0],"REPLACEMENTS",[[/\\?\(C\)/,"©","none"],[/\\?\(R\)/,"®","none"],[/\\?\(TM\)/,"™","none"],[/(?: |\n|^|\\)--(?: |\n|$)/," — ","none"],[Oe(["(",Je("CG_WORD"),")\\\\?--(?=",Je("CG_WORD"),")"]),"—​","leading"],[/\\?\.\.\./,"…​","none"],[/\\?`'/,"’","none"],[Oe(["(",Je("CG_ALNUM"),")\\\\?'(?=",Je("CG_ALPHA"),")"]),"’","leading"],[/\\?->/,"→","none"],[/\\?=>/,"⇒","none"],[/\\?<-/,"←","none"],[/\\?<=/,"⇐","none"],[/\\?(&)amp;((?:[a-zA-Z][a-zA-Z]+\d{0,2}|#\d\d\d{0,4}|#x[\da-fA-F][\da-fA-F][\da-fA-F]{0,3});)/,"","bounding"]]),qe}(Ge[0],Ge),ze.$require("asciidoctor.rb/../asciidoctor/core_ext"),ze.$require("asciidoctor.rb/../asciidoctor/helpers"),ze.$require("asciidoctor.rb/../asciidoctor/logging"),ze.$require("asciidoctor.rb/../asciidoctor/rx"),ze.$require("asciidoctor.rb/../asciidoctor/substitutors"),ze.$require("asciidoctor.rb/../asciidoctor/version"),ze.$require("asciidoctor.rb/../asciidoctor/abstract_node"),ze.$require("asciidoctor.rb/../asciidoctor/abstract_block"),ze.$require("asciidoctor.rb/../asciidoctor/attribute_list"),ze.$require("asciidoctor.rb/../asciidoctor/block"),ze.$require("asciidoctor.rb/../asciidoctor/callouts"),ze.$require("asciidoctor.rb/../asciidoctor/converter"),ze.$require("asciidoctor.rb/../asciidoctor/document"),ze.$require("asciidoctor.rb/../asciidoctor/inline"),ze.$require("asciidoctor.rb/../asciidoctor/list"),ze.$require("asciidoctor.rb/../asciidoctor/parser"),ze.$require("asciidoctor.rb/../asciidoctor/path_resolver"),ze.$require("asciidoctor.rb/../asciidoctor/reader"),ze.$require("asciidoctor.rb/../asciidoctor/section"),ze.$require("asciidoctor.rb/../asciidoctor/stylesheets"),ze.$require("asciidoctor.rb/../asciidoctor/table"),ze.$require("asciidoctor.rb/../asciidoctor/writer"),ze.$require("asciidoctor.rb/../asciidoctor/load"),ze.$require("asciidoctor.rb/../asciidoctor/convert"),ze.$require("asciidoctor.rb/../asciidoctor/syntax_highlighter"),ze.$require("asciidoctor.rb/../asciidoctor/timings"),ze.$require("asciidoctor/js/postscript")});const t=function(a){return a&&!a.$$is_hash?Opal.hash2(Object.keys(a),a):a},r=function(a){const ae={};if(a){const te=a.$$smap;for(const _e in te){const v=te[_e];ae[_e]=v===Opal.nil?void 0:v}const V=a.$$map;if(V){const _e=[];for(const v in V){const Y=V[v],Ue=Y.value,G=Y.key-1;_e[G]=Ue===Opal.nil?void 0:Ue}_e.length>0&&(ae.$positional=_e)}}return ae},n=function(a){const ae={};if(a){const te=a.$$keys;for(const V in te){const _e=te[V].value;ae[V.toString()]=_e===Opal.nil?void 0:_e}}return ae},i=function(a){if(a=t(a),a){const ae=a["$[]"]("converter");ae&&ae!==Opal.nil&&a["$[]="]("converter",s(ae));const te=a["$[]"]("attributes");te&&typeof te=="object"&&te.constructor.name==="Object"&&(a=a.$dup(),a["$[]="]("attributes",t(te)))}return a},s=function(a){const ae=function(Ie){return Object.assign({},Ie.basebackend?{basebackend:Ie.basebackend}:{},Ie.outfilesuffix?{outfilesuffix:Ie.outfilesuffix}:{},Ie.filetype?{filetype:Ie.filetype}:{},Ie.htmlsyntax?{htmlsyntax:Ie.htmlsyntax}:{},Ie.supports_templates?{supports_templates:Ie.supports_templates}:{})},te=function(Ie,C){Ie.backend_traits?C.backend_traits=t(Ie.backend_traits):Ie.backendTraits?C.backend_traits=t(Ie.backendTraits):(Ie.basebackend||Ie.outfilesuffix||Ie.filetype||Ie.htmlsyntax||Ie.supports_templates)&&(C.backend_traits=t(ae(Ie)))},V=function(Ie,C){Ue(Ie,C,"$handles?","handles",function(){return!0})},_e=function(Ie,C){Ue(Ie,C,"$composed","composed")},v=function(Ie,C){Ue(Ie,C,"$==","==",function(Oe){return C===Oe})},Y=function(Ie,C){Ue(Ie,C,"$send","send",function(Oe){const[,...ze]=Array.from(arguments),Ge=C["$"+Oe];if(Ge)return Ge.apply(C,ze);throw new Error(`undefined method \`${Oe}\` for \`${C.toString()}\``)})},Ue=function(Ie,C,Oe,ze,Ge){typeof Ie[Oe]>"u"&&(typeof Ie[ze]=="function"?C[Oe]=Ie[ze]:Ge&&(C[Oe]=Ge))},G=function(Ie){typeof Ie["$respond_to?"]!="function"&&(Ie["$respond_to?"]=function(C){return typeof this[C]=="function"})};if(typeof a=="function"){const Ie=c(ft,a.constructor.name,{initialize:function(C,Oe){const ze=this,Ge=new a(C,Oe);Object.assign(this,Ge),te(Ge,ze);const qe=Object.getOwnPropertyNames(a.prototype);for(let je=0;je<qe.length;je++){const dt=qe[je];dt!=="constructor"&&(ze[dt]=Ge[dt])}typeof Ge.$convert>"u"&&typeof Ge.convert=="function"&&(ze.$convert=Ge.convert),V(Ge,ze),_e(Ge,ze),G(ze),ze.super(C,Oe)}});return Ie.$extend(_t),Ie}if(typeof a=="object"){if(typeof a.$convert>"u"&&typeof a.convert=="function"&&(a.$convert=a.convert),te(a,a),a.backend_traits){const Ie=["basebackend","filetype","htmlsyntax","outfilesuffix","supports_templates","supports_templates?","init_backend_traits","backend_traits"];for(const C of Ie)a["$"+C]=_t.prototype["$"+C];a.$$meta=_t}return V(a,a),_e(a,a),v(a,a),Y(a,a),G(a),a}return a};function c(a,ae,te,V,_e){const v=Opal.klass(Opal.Object,a,ae,function(){});let Y,Ue,G;const Ie={};for(const ze in te)Object.prototype.hasOwnProperty.call(te,ze)&&function(Ge){const qe=te[Ge];if(Ge==="postConstruct")Y=qe;else if(Ge==="initialize")Ue=qe;else if(Ge==="constructor")G=qe;else{V&&Object.prototype.hasOwnProperty.call(V,Ge)&&(Ie[Ge]=!0);let je;Opal.def(v,"$"+Ge,je=function(){let dt;_e&&Object.prototype.hasOwnProperty.call(_e,Ge)?dt=_e[Ge](arguments):dt=arguments;const Ye=je.$$p;return Ye&&(dt[dt.length]=function(){return Opal.yield1(Ye)},dt.length+=1,je.$$p=null),qe.apply(this,dt)})}}(ze);let C;typeof G=="function"?C=function(){const ze=Array.from(arguments);for(let qe=0;qe<ze.length;qe++)typeof ze[qe]=="object"&&"$$smap"in ze[qe]&&(ze[qe]=r(ze[qe]));ze.unshift(null);const Ge=new(Function.prototype.bind.apply(G,ze));Object.assign(this,Ge),typeof Y=="function"&&Y.bind(this)()}:typeof Ue=="function"?C=function(){const ze=Array.from(arguments);for(let Ge=0;Ge<ze.length;Ge++)typeof ze[Ge]=="object"&&"$$smap"in ze[Ge]&&(ze[Ge]=r(ze[Ge]));Ue.apply(this,ze),typeof Y=="function"&&Y.bind(this)()}:C=function(){Opal.send(this,Opal.find_super_dispatcher(this,"initialize",C)),typeof Y=="function"&&Y.bind(this)()},Opal.def(v,"$initialize",C);let Oe;Opal.def(v,"super",Oe=function(ze){if(typeof ze=="function")Opal.send(this,Opal.find_super_dispatcher(this,ze.name,ze));else{const Ge=Array.from(arguments);for(let qe=0;qe<Ge.length;qe++)typeof Ge[qe]=="object"&&(Ge[qe]=t(Ge[qe]));Opal.send(this,Opal.find_super_dispatcher(this,"initialize",C),Ge)}});for(const ze in te)Oe[ze]=function(){const Ge=Array.from(arguments);for(let je=0;je<Ge.length;je++)typeof Ge[je]=="object"&&typeof Ge[je].constructor=="function"&&Ge[je].constructor.name==="Object"&&(Ge[je]=t(Ge[je]));const qe=v.$$prototype;return Opal.send(qe,Opal.find_super_dispatcher(qe,ze,qe[`$${ze}`]),Ge)};if(V)for(const ze in V)Object.prototype.hasOwnProperty.call(V,ze)&&!Object.prototype.hasOwnProperty.call(Ie,ze)&&function(Ge){const qe=V[Ge];Opal.def(v,"$"+Ge,function(){return qe.apply(this,arguments)})}(ze);return v}const f=Opal.Asciidoctor.$$class;f.prototype.getCoreVersion=function(){return this.$$const.VERSION},f.prototype.getRuntime=function(){return{ioModule:Opal.const_get_qualified("::","JAVASCRIPT_IO_MODULE"),platform:Opal.const_get_qualified("::","JAVASCRIPT_PLATFORM"),engine:Opal.const_get_qualified("::","JAVASCRIPT_ENGINE"),framework:Opal.const_get_qualified("::","JAVASCRIPT_FRAMEWORK")}},f.prototype.convert=function(a,ae){typeof a=="object"&&a.constructor.name==="Buffer"&&(a=a.toString("utf8"));const te=ae&&ae.to_file;typeof te=="object"&&te.constructor.name==="Writable"&&typeof te.write=="function"&&(te["$respond_to?"]=v=>v==="write",te.$object_id=()=>"",te.$write=function(v){this.write(v)});const V=i(ae),_e=this.$convert(a,V);return typeof te=="object"&&te.constructor.name==="Writable"&&typeof te.end=="function"&&te.end(),_e===Opal.nil?"":_e},f.prototype.convertFile=function(a,ae){return this.$convert_file(a,i(ae))},f.prototype.load=function(a,ae){return typeof a=="object"&&a.constructor.name==="Buffer"&&(a=a.toString("utf8")),this.$load(a,i(ae))},f.prototype.loadFile=function(a,ae){return this.$load_file(a,i(ae))};const p=Opal.Asciidoctor.AbstractBlock;p.prototype.getContentModel=function(){const a=this.content_model;return a===Opal.nil?void 0:a},p.prototype.setContentModel=function(a){this.content_model=a},p.prototype.append=function(a){return this.$append(a),this},p.prototype.getTitle=function(){const a=this.$title();return a===Opal.nil?void 0:a},p.prototype.setTitle=function(a){return a=typeof a>"u"?Opal.nil:a,this["$title="](a)},p.prototype.assignCaption=function(a,ae){a=typeof a>"u"?Opal.nil:a,ae=typeof ae>"u"?null:ae,this.$assign_caption(a,ae)},p.prototype.getCaptionedTitle=function(){return this.$captioned_title()},p.prototype.getStyle=function(){const a=this.style;return a===Opal.nil?void 0:a},p.prototype.setStyle=function(a){this.style=a},p.prototype.getSourceLocation=function(){const a=this.source_location;if(a!==Opal.nil)return a.getFile=function(){const ae=this.file;return ae===Opal.nil?void 0:ae},a.getDirectory=function(){const ae=this.dir;return ae===Opal.nil?void 0:ae},a.getPath=function(){const ae=this.path;return ae===Opal.nil?void 0:ae},a.getLineNumber=function(){const ae=this.lineno;return ae===Opal.nil?void 0:ae},a},p.prototype.getCaption=function(){const a=this.$caption();return a===Opal.nil?void 0:a},p.prototype.setCaption=function(a){this.caption=typeof a>"u"?Opal.nil:a},p.prototype.getLevel=function(){const a=this.level;return a===Opal.nil?void 0:a},p.prototype.getSubstitutions=function(){return this.subs},p.prototype.hasSubstitution=function(a){return this["$sub?"](a)},p.prototype.removeSubstitution=function(a){this.$remove_sub(a)},p.prototype.hasBlocks=function(){return this.blocks.length>0},p.prototype.getBlocks=function(){return this.blocks},p.prototype.getContent=function(){const a=this.$content();return a===Opal.nil?void 0:a},p.prototype.convert=function(){return this.$convert()},p.prototype.findBy=function(a,ae){return typeof ae>"u"&&typeof a=="function"?Opal.send(this,"find_by",null,a):typeof ae=="function"?Opal.send(this,"find_by",[t(a)],ae):this.$find_by(t(a))},p.prototype.getLineNumber=function(){const a=this.$lineno();return a===Opal.nil?void 0:a},p.prototype.hasSections=function(){return this.next_section_index!==Opal.nil&&this.next_section_index>0},p.prototype.getSections=function(){return this.$sections()},p.prototype.getNumeral=function(){const a=this.$numeral();return a===Opal.nil?void 0:a},p.prototype.setNumeral=function(a){this["$numeral="](a)},p.prototype.hasTitle=function(){return this["$title?"]()},p.prototype.getAlt=function(){return this.$alt()};const h=Opal.Asciidoctor.Section;h.create=function(a,ae,te,V){return V&&V.attributes&&(V.attributes=t(V.attributes)),this.$new(a,ae,te,t(V))},h.prototype.setLevel=function(a){this.level=a},h.prototype.getIndex=function(){return this.index},h.prototype.setIndex=function(a){this.index=a},h.prototype.getSectionName=function(){const a=this.sectname;return a===Opal.nil?void 0:a},h.prototype.setSectionName=function(a){this.sectname=a},h.prototype.getSectionNumeral=function(){return this.$sectnum()},h.prototype.getSectionNumber=h.prototype.getSectionNumeral,h.prototype.isSpecial=function(){return this.special},h.prototype.setSpecial=function(a){this.special=a},h.prototype.isNumbered=function(){return this.numbered},h.prototype.getCaption=function(){const a=this.caption;return a===Opal.nil?void 0:a},h.prototype.getName=function(){return this.getTitle()};const I=Opal.Asciidoctor.Block;I.create=function(a,ae,te){return te&&te.attributes&&(te.attributes=t(te.attributes)),this.$new(a,ae,t(te))},I.prototype.getSource=function(){return this.$source()},I.prototype.getSourceLines=function(){return this.lines};const F=Opal.Asciidoctor.AbstractNode;F.prototype.applySubstitutions=function(a,ae){return this.$apply_subs(a,ae)},F.prototype.resolveSubstitutions=function(a,ae,te,V){typeof ae>"u"&&(ae="block"),typeof te>"u"&&(te=Opal.nil),typeof V>"u"&&(V=Opal.nil);const _e=this.$resolve_subs(a,ae,te,V);return _e===Opal.nil?void 0:_e},F.prototype.resolveBlockSubstitutions=function(a,ae,te){return this.resolveSubstitutions(a,"block",ae,te)},F.prototype.resolvePassSubstitutions=function(a){return this.resolveSubstitutions(a,"inline",void 0,"passthrough macro")},F.prototype.getNodeName=function(){return this.node_name},F.prototype.getAttributes=function(){return r(this.attributes)},F.prototype.getAttribute=function(a,ae,te){const V=this.$attr(a,ae,te);return V===Opal.nil?void 0:V},F.prototype.hasAttribute=function(a){return a in this.attributes.$$smap},F.prototype.isAttribute=function(a,ae,te){return this["$attr?"](a,ae,te)},F.prototype.setAttribute=function(a,ae,te){return typeof te>"u"&&(te=!0),this.$set_attr(a,ae,te)},F.prototype.removeAttribute=function(a){const ae=this.$remove_attr(a);return ae===Opal.nil?void 0:ae},F.prototype.getDocument=function(){return this.document},F.prototype.getParent=function(){const a=this.parent;return a===Opal.nil?void 0:a},F.prototype.isInline=function(){return this["$inline?"]()},F.prototype.isBlock=function(){return this["$block?"]()},F.prototype.isRole=function(a){return this["$role?"](a)},F.prototype.getRole=function(){const a=this.$role();return a===Opal.nil?void 0:a},F.prototype.setRole=function(a){return Array.isArray(a)||typeof a=="string"&&arguments.length===1?this["$role="](a):this["$role="](Array.from(arguments))},F.prototype.hasRole=function(a){return this["$has_role?"](a)},F.prototype.getRoles=function(){return this.$roles()},F.prototype.addRole=function(a){return this.$add_role(a)},F.prototype.removeRole=function(a){return this.$remove_role(a)},F.prototype.isReftext=function(){return this["$reftext?"]()},F.prototype.getReftext=function(){const a=this.$reftext();return a===Opal.nil?void 0:a},F.prototype.getContext=function(){const a=this.context;return typeof a=="string"?a:a.toString()},F.prototype.getId=function(){const a=this.id;return a===Opal.nil?void 0:a},F.prototype.setId=function(a){this.id=a},F.prototype.isOption=function(a){return this["$option?"](a)},F.prototype.setOption=function(a){return this.$set_option(a)},F.prototype.getIconUri=function(a){return this.$icon_uri(a)},F.prototype.getMediaUri=function(a,ae){return this.$media_uri(a,ae)},F.prototype.getImageUri=function(a,ae){return this.$image_uri(a,ae)},F.prototype.getConverter=function(){return this.$converter()},F.prototype.readContents=function(a,ae){return this.$read_contents(a,t(ae))},F.prototype.readAsset=function(a,ae){const te=this.$read_asset(a,t(ae));return te===Opal.nil?void 0:te},F.prototype.normalizeWebPath=function(a,ae,te){return this.$normalize_web_path(a,ae,te)},F.prototype.normalizeSystemPath=function(a,ae,te,V){return this.$normalize_system_path(a,ae,te,t(V))},F.prototype.normalizeAssetPath=function(a,ae,te){return this.$normalize_asset_path(a,ae,te)};const H=Opal.Asciidoctor.Document;H.prototype.append=function(a){return this["$<<"](a),this},H.prototype.getSyntaxHighlighter=function(){const a=this.syntax_highlighter,ae=a.__proto__;return ae&&(typeof ae["$highlight?"]=="function"&&(ae.handlesHighlighting=function(){const te=ae["$highlight?"]();return te===Opal.nil?!1:te}),typeof ae["$docinfo?"]=="function"&&(ae.hasDocinfo=ae["$docinfo?"]),typeof ae.$format=="function"&&(ae.format=function(te,V,_e){return this.$format(te,V,t(_e))}),typeof ae.$docinfo=="function"&&(ae.docinfo=function(te,V,_e){return this.$docinfo(te,V,t(_e))})),a},H.prototype.getRefs=function(){return r(this.catalog.$$smap.refs)},H.prototype.getImages=function(){return this.catalog.$$smap.images},H.prototype.getLinks=function(){return this.catalog.$$smap.links},H.prototype.hasFootnotes=function(){return this["$footnotes?"]()},H.prototype.getFootnotes=function(){return this.$footnotes()},H.prototype.getHeader=function(){return this.header},H.prototype.setAttribute=function(a,ae){return this.$set_attribute(a,ae)},H.prototype.removeAttribute=function(a){this.attributes.$delete(a),this.attribute_overrides.$delete(a)},H.prototype.convert=function(a){const ae=this.$convert(t(a));return ae===Opal.nil?"":ae},H.prototype.write=function(a,ae){return this.$write(a,ae)},H.prototype.getAuthor=function(){return this.$author()},H.prototype.getSource=function(){return this.$source()},H.prototype.getSourceLines=function(){return this.$source_lines()},H.prototype.isNested=function(){return this["$nested?"]()},H.prototype.isEmbedded=function(){return this["$embedded?"]()},H.prototype.hasExtensions=function(){return this["$extensions?"]()},H.prototype.getDoctype=function(){return this.doctype},H.prototype.getBackend=function(){return this.backend},H.prototype.isBasebackend=function(a){return this["$basebackend?"](a)},H.prototype.getTitle=function(){const a=this.$title();return a===Opal.nil?void 0:a},H.prototype.setTitle=function(a){return this["$title="](a)},H.prototype.getDocumentTitle=function(a){const ae=this.$doctitle(t(a));return ae===Opal.nil?void 0:ae},H.prototype.getDoctitle=H.prototype.getDocumentTitle,H.prototype.getCatalog=function(){return r(this.catalog)},H.prototype.getReferences=H.prototype.getCatalog,H.prototype.getRevisionDate=function(){return this.getAttribute("revdate")},H.prototype.getRevdate=function(){return this.getRevisionDate()},H.prototype.getRevisionNumber=function(){return this.getAttribute("revnumber")},H.prototype.getRevisionRemark=function(){return this.getAttribute("revremark")},H.prototype.setHeaderAttribute=function(a,ae,te){return typeof te>"u"&&(te=!0),typeof ae>"u"&&(ae=""),this.$set_header_attribute(a,ae,te)},H.prototype.getAuthors=function(){return this.$authors()};const pe=H.Footnote;pe.prototype.getIndex=function(){const a=this.$$data.index;return a===Opal.nil?void 0:a},pe.prototype.getId=function(){const a=this.$$data.id;return a===Opal.nil?void 0:a},pe.prototype.getText=function(){const a=this.$$data.text;return a===Opal.nil?void 0:a};const xe=H.ImageReference;xe.prototype.getTarget=function(){return this.$$data.target},xe.prototype.getImagesDirectory=function(){const a=this.$$data.imagesdir;return a===Opal.nil?void 0:a};const ne=H.Author;ne.prototype.getName=function(){const a=this.$$data.name;return a===Opal.nil?void 0:a},ne.prototype.getFirstName=function(){const a=this.$$data.firstname;return a===Opal.nil?void 0:a},ne.prototype.getMiddleName=function(){const a=this.$$data.middlename;return a===Opal.nil?void 0:a},ne.prototype.getLastName=function(){const a=this.$$data.lastname;return a===Opal.nil?void 0:a},ne.prototype.getInitials=function(){const a=this.$$data.initials;return a===Opal.nil?void 0:a},ne.prototype.getEmail=function(){const a=this.$$data.email;return a===Opal.nil?void 0:a},H.RevisionInfo=function(a,ae,te){this.date=a,this.number=ae,this.remark=te};const W=H.RevisionInfo;W.prototype.getDate=function(){return this.date},W.prototype.getNumber=function(){return this.number},W.prototype.getRemark=function(){return this.remark},W.prototype.isEmpty=function(){return this.date===void 0&&this.number===void 0&&this.remark===void 0};const X=Opal.Asciidoctor.SafeMode;X.getValueForName=function(a){return this.$value_for_name(a)},X.getNameForValue=function(a){const ae=this.$name_for_value(a);return ae===Opal.nil?void 0:ae},X.getNames=function(){return this.$names()};const ge=Opal.Asciidoctor.Callouts;ge.create=function(){return this.$new()},ge.prototype.register=function(a){return this.$register(a)},ge.prototype.readNextId=function(){return this.$read_next_id()},ge.prototype.getCalloutIds=function(a){return this.$callout_ids(a)},ge.prototype.getLists=function(){const a=this.lists;if(a&&a.length>0)for(let ae=0;ae<a.length;ae++){const te=a[ae];if(te&&te.length>0)for(let V=0;V<te.length;V++)typeof te[V]=="object"&&"$$smap"in te[V]&&(te[V]=r(te[V]))}return a},ge.prototype.getListIndex=function(){return this.list_index},ge.prototype.getCurrentList=function(){const a=this.$current_list();if(a&&a.length>0)for(let ae=0;ae<a.length;ae++)typeof a[ae]=="object"&&"$$smap"in a[ae]&&(a[ae]=r(a[ae]));return a},ge.prototype.nextList=function(){return this.$nextList()},ge.prototype.rewind=function(){return this.$rewind()},H.prototype.getRevisionInfo=function(){return new H.RevisionInfo(this.getRevisionDate(),this.getRevisionNumber(),this.getRevisionRemark())},H.prototype.hasRevisionInfo=function(){return!this.getRevisionInfo().isEmpty()},H.prototype.getNotitle=function(){return this.$notitle()},H.prototype.getNoheader=function(){return this.$noheader()},H.prototype.getNofooter=function(){return this.$nofooter()},H.prototype.hasHeader=function(){return this["$header?"]()},H.prototype.playbackAttributes=function(a){if(a=t(a),a){const ae=a["$[]"]("attribute_entries");if(ae&&Array.isArray(ae)){const te=[];for(let V=0;V<ae.length;V++){const _e=ae[V];_e&&typeof _e=="object"&&_e.constructor.name==="Object"&&(_e.$name=function(){return this.name},_e.$value=function(){return this.value},_e.$negate=function(){return this.negate}),te.push(_e)}a["$[]="]("attribute_entries",te)}}this.$playback_attributes(a)},H.prototype.deleteAttribute=function(a){return this.$delete_attribute(a)},H.prototype.isAttributeLocked=function(a){return this["$attribute_locked?"](a)},H.prototype.restoreAttributes=function(){return this.$restore_attributes()},H.prototype.parse=function(a){return this.$parse(a)},H.prototype.getDocinfo=function(a,ae){return this.$docinfo(a,ae)},H.prototype.hasDocinfoProcessors=function(a){return this["$docinfo_processors?"](a)},H.prototype.incrementAndStoreCounter=function(a,ae){return this.$increment_and_store_counter(a,ae)},H.prototype.counterIncrement=H.prototype.incrementAndStoreCounter,H.prototype.counter=function(a,ae){return this.$counter(a,ae)},H.prototype.getSafe=function(){return this.safe},H.prototype.getCompatMode=function(){return this.compat_mode},H.prototype.getSourcemap=function(){const a=this.sourcemap;return a===Opal.nil?!1:a},H.prototype.setSourcemap=function(a){this.sourcemap=a},H.prototype.getCounters=function(){return r(this.counters)},H.prototype.getCallouts=function(){return this.$callouts()},H.prototype.getBaseDir=function(){return this.base_dir},H.prototype.getOptions=function(){return r(this.options)},H.prototype.getOutfilesuffix=function(){return this.outfilesuffix},H.prototype.getParentDocument=function(){const a=this.parent_document;return a===Opal.nil?void 0:a},H.prototype.getReader=function(){return this.reader},H.prototype.getConverter=function(){return this.converter},H.prototype.getExtensions=function(){const a=this.extensions;return a===Opal.nil?void 0:a};const se=H.Title;se.prototype.getMain=function(){return this.main},se.prototype.getCombined=function(){return this.combined},se.prototype.getSubtitle=function(){const a=this.subtitle;return a===Opal.nil?void 0:a},se.prototype.isSanitized=function(){const a=this["$sanitized?"]();return a===Opal.nil?!1:a},se.prototype.hasSubtitle=function(){return this["$subtitle?"]()};const me=Opal.Asciidoctor.Inline;me.create=function(a,ae,te,V){return this.$new(a,ae,te,i(V))},me.prototype.convert=function(){return this.$convert()},me.prototype.getText=function(){const a=this.$text();return a===Opal.nil?void 0:a},me.prototype.getType=function(){return this.$type()},me.prototype.getTarget=function(){const a=this.$target();return a===Opal.nil?void 0:a},me.prototype.getAlt=function(){return this.$alt()};const J=Opal.Asciidoctor.List;J.prototype.hasItems=function(){return this["$items?"]()},J.prototype.getItems=function(){return this.blocks};const be=Opal.Asciidoctor.ListItem;be.prototype.getText=function(){return this.$text()},be.prototype.setText=function(a){return this["$text="](a)},be.prototype.hasText=function(){return this["$text?"]()},be.prototype.getMarker=function(){return this.marker},be.prototype.setMarker=function(a){this.marker=a},be.prototype.getList=function(){return this.$list()},be.prototype.getParent=be.prototype.getList;const fe=Opal.Asciidoctor.Reader;fe.prototype.pushInclude=function(a,ae,te,V,_e){return this.$push_include(a,ae,te,V,t(_e))},fe.prototype.getCursor=function(){return this.$cursor()},fe.prototype.getLines=function(){return this.$lines()},fe.prototype.getString=function(){return this.$string()},fe.prototype.hasMoreLines=function(){return this["$has_more_lines?"]()},fe.prototype.isEmpty=function(){return this["$empty?"]()},fe.prototype.peekLine=function(a){a=a||!1;const ae=this.$peek_line(a);return ae===Opal.nil?void 0:ae},fe.prototype.readLine=function(){const a=this.$read_line();return a===Opal.nil?void 0:a},fe.prototype.readLines=function(){return this.$read_lines()},fe.prototype.read=function(){return this.$read()},fe.prototype.advance=function(){return this.$advance()};const Ae=Opal.Asciidoctor.Reader.Cursor;Ae.prototype.getFile=function(){const a=this.file;return a===Opal.nil?void 0:a},Ae.prototype.getDirectory=function(){const a=this.dir;return a===Opal.nil?void 0:a},Ae.prototype.getPath=function(){const a=this.path;return a===Opal.nil?void 0:a},Ae.prototype.getLineNumber=function(){return this.lineno};function O(a,ae){const te=Opal.const_get_qualified(Opal.Logger,"Formatter");return c(te,a,ae,{},{call:function(V){for(let _e=0;_e<V.length;_e++)typeof V[_e]=="object"&&"$$smap"in V[_e]&&(V[_e]=r(V[_e]));return V}})}function Ee(a,ae){const te=Opal.const_get_qualified(Opal.Asciidoctor,"Logger");return c(te,a,ae,{},{add:function(V){if(V.length>=2&&typeof V[2]=="object"&&"$$smap"in V[2]){const _e=V[2],v=r(_e);v.getText=function(){return this.text},v.getSourceLocation=function(){return this.source_location},v.$inspect=function(){const Y=this.getSourceLocation();return Y?Y.getPath()+": line "+Y.getLineNumber()+": "+this.getText():this.getText()},V[2]=v}return V.length>=1&&(V[1]=V[1]===Opal.nil?void 0:V[1]),V}})}const le=Opal.const_get_qualified(Opal.Asciidoctor,"LoggerManager",!0);Opal.Asciidoctor.LoggerManager=le,le.getLogger=function(){return this.$logger()},le.setLogger=function(a){this["$logger="](a)},le.newLogger=function(a,ae){return Ee(a,ae).$new()},le.newFormatter=function(a,ae){return O(a,ae).$new()};const w=Opal.const_get_qualified(Opal.Logger,"Severity",!0);Opal.Asciidoctor.LoggerSeverity=w,w.get=function(a){return w.$constants()[a]};const Se=Opal.const_get_qualified(Opal.Logger,"Formatter",!0);Opal.Asciidoctor.LoggerFormatter=Se,Se.prototype.call=function(a,ae,te,V){return this.$call(w.get(a),ae,te,V)};const N=Opal.const_get_qualified(Opal.Asciidoctor,"MemoryLogger",!0);Opal.Asciidoctor.MemoryLogger=N,N.create=function(){return this.$new()},N.prototype.getMessages=function(){const a=this.messages,ae=[];for(let te=0;te<a.length;te++){const V=a[te],_e=r(V);typeof _e.message=="string"?_e.getText=function(){return this.message}:(_e.message=r(_e.message),_e.getText=function(){return this.message.text}),_e.getSeverity=function(){return this.severity.toString()},_e.getSourceLocation=function(){return this.message.source_location},ae.push(_e)}return ae};const re=Opal.const_get_qualified(Opal.Asciidoctor,"Logging",!0);Opal.Asciidoctor.Logging=re,re.getLogger=function(){return le.$logger()},re.createLogMessage=function(a,ae){return re.prototype.$message_with_context(a,t(ae))},fe.prototype.getLogger=re.getLogger,fe.prototype.createLogMessage=re.createLogMessage,F.prototype.getLogger=re.getLogger,F.prototype.createLogMessage=re.createLogMessage;const P=Opal.const_get_qualified(Opal.Asciidoctor,"Logger",!0);Opal.Asciidoctor.Logger=P,P.prototype.getMaxSeverity=function(){const a=this.max_severity;return a===Opal.nil?void 0:a},P.prototype.getFormatter=function(){return this.formatter},P.prototype.setFormatter=function(a){this.formatter=a},P.prototype.getLevel=function(){return this.level},P.prototype.setLevel=function(a){this.level=a},P.prototype.getProgramName=function(){return this.progname},P.prototype.setProgramName=function(a){this.progname=a};const Me=Opal.const_get_qualified("::","Logger"),ce=function(a,ae,te){a["$"+ae](te)};Me.prototype.add=function(a,ae,te){const V=typeof a=="string"?w[a.toUpperCase()]:a;this.$add(V,ae,te)},Me.prototype.log=Me.prototype.add,Me.prototype.debug=function(a){ce(this,"debug",a)},Me.prototype.info=function(a){ce(this,"info",a)},Me.prototype.warn=function(a){ce(this,"warn",a)},Me.prototype.error=function(a){ce(this,"error",a)},Me.prototype.fatal=function(a){ce(this,"fatal",a)},Me.prototype.isDebugEnabled=function(){return this["$debug?"]()},Me.prototype.isInfoEnabled=function(){return this["$info?"]()},Me.prototype.isWarnEnabled=function(){return this["$warn?"]()},Me.prototype.isErrorEnabled=function(){return this["$error?"]()},Me.prototype.isFatalEnabled=function(){return this["$fatal?"]()};const M=Opal.const_get_qualified(Opal.Asciidoctor,"NullLogger",!0);Opal.Asciidoctor.NullLogger=M,M.create=function(){return this.$new()},M.prototype.getMaxSeverity=function(){return this.max_severity},Opal.Asciidoctor.StopIteration=Opal.StopIteration;const x=Opal.const_get_qualified(Opal.Asciidoctor,"Timings",!0);Opal.Asciidoctor.Timings=x,x.create=function(){return this.$new()},x.prototype.printReport=function(a,ae){let te;if(a)if(typeof a.$add=="function")te=function(V){a.$add(1,V)};else if(typeof a.log=="function")te=a.log;else if(typeof a.write=="function")te=function(V){a.write(V,"utf-8")};else throw new Error("The output should be a Stream (with a write function), an object with a log function or a Ruby Logger (with a add function)");else te=function(V){Opal.gvars.stdout.$write(V)};ae&&te("Input file: "+ae),te(" Time to read and parse source: "+this.$read_parse().toFixed(2)),te(" Time to convert document: "+this.$convert().toFixed(2)),te(" Total time (read, parse and convert): "+this.$read_parse_convert().toFixed(2))};const $=Opal.const_get_qualified(Opal.Asciidoctor,"SyntaxHighlighter",!0);Opal.Asciidoctor.SyntaxHighlighter=$,$.register=function(a,ae){const te=typeof a=="string"?a:a[0];if(typeof ae=="function"){const v=ae.prototype,Y=Object.getOwnPropertyNames(v);ae={};for(const Ue in Y){const G=Y[Ue];ae[G]=v[G]}}const V=c(l,te,ae,{},{format:function(_e){return _e.length>=2&&typeof _e[2]=="object"&&"$$smap"in _e[2]&&(_e[2]=r(_e[2])),_e.length>=1&&(_e[1]=_e[1]===Opal.nil?void 0:_e[1]),_e},highlight:function(_e){if(_e.length>=3&&typeof _e[3]=="object"&&"$$smap"in _e[3]){let v=_e[3];v=r(v);for(const Y in v){const Ue=v[Y];if(Y==="callouts"){const G=n(Ue);for(const Ie in G){const C=G[Ie];for(let Oe=0;Oe<C.length;Oe++){const ze=C[Oe];for(let Ge=0;Ge<ze.length;Ge++)ze[Ge]=ze[Ge]===Opal.nil?void 0:ze[Ge]}}v[Y]=G}else v[Y]=Ue===Opal.nil?void 0:Ue}_e[3]=v}return _e.length>=2&&(_e[2]=_e[2]===Opal.nil?void 0:_e[2]),_e}});for(const _e in ae)Object.prototype.hasOwnProperty.call(ae,_e)&&function(v){const Y=ae[v];v==="handlesHighlighting"?Opal.def(V,"$highlight?",function(){return Y.call()}):v==="hasDocinfo"&&Opal.def(V,"$docinfo?",function(Ue){return Y.apply(this,[Ue])})}(_e);return Opal.def(V,"$name",function(){return te}),$.$register(V,a),V},$.get=function(a){const ae=$.$for(a);return ae===Opal.nil?void 0:ae},$.for=$.get;const l=Opal.const_get_qualified($,"Base",!0);Opal.Asciidoctor.SyntaxHighlighterBase=l,l.prototype.registerFor=function(a){$.$register(this,a)};const u=Opal.Asciidoctor.Table;u.create=function(a,ae){return this.$new(a,t(ae))},u.prototype.getCaption=function(){return this.caption},u.prototype.getRows=function(){return this.rows},u.prototype.getColumns=function(){return this.columns},u.prototype.getHeadRows=function(){return this.rows.head},u.prototype.hasHeadRows=function(){return this.rows!==Opal.nil&&this.rows.head.length>0},u.prototype.getBodyRows=function(){return this.rows.body},u.prototype.hasBodyRows=function(){return this.rows!==Opal.nil&&this.rows.body.length>0},u.prototype.getFootRows=function(){return this.rows.foot},u.prototype.hasFootRows=function(){return this.rows!==Opal.nil&&this.rows.foot.length>0},u.prototype.hasHeaderOption=function(){return this.has_header_option},u.prototype.hasFooterOption=function(){return this.isOption("footer")},u.prototype.hasAutowidthOption=function(){return this.isOption("autowidth")},u.prototype.getRowCount=function(){return this.getAttribute("rowcount")},u.prototype.setRowCount=function(a){this.setAttribute("rowcount",a)},u.prototype.getColumnCount=function(){return this.getAttribute("colcount")},u.prototype.setColumnCount=function(a){this.setAttribute("colcount",a)};const d=Opal.Asciidoctor.Table.Rows;d.create=function(a,ae,te){return this.$new(a,ae,te)},d.prototype.getHead=function(){return this.head},d.prototype.getFoot=function(){return this.foot},d.prototype.getBody=function(){return this.body},d.prototype.bySection=function(){return[["head",this.head],["body",this.body],["foot",this.foot]]};const _=Opal.Asciidoctor.Table.Column;_.create=function(a,ae,te){return this.$new(a,ae,t(te))},_.prototype.getColumnNumber=function(){return this.getAttribute("colnumber")},_.prototype.getWidth=function(){return this.getAttribute("width")},_.prototype.getHorizontalAlign=function(){return this.getAttribute("halign")},_.prototype.getVerticalAlign=function(){return this.getAttribute("valign")},_.prototype.getStyle=function(){const a=this.style;return a===Opal.nil?void 0:a};const S=Opal.Asciidoctor.Table.Cell;S.create=function(a,ae,te,V){return this.$new(a,ae,t(te),t(V))},S.prototype.getColumnSpan=function(){const a=this.colspan;return a===Opal.nil?void 0:a},S.prototype.setColumnSpan=function(a){return this["$colspan="](a)},S.prototype.getRowSpan=function(){const a=this.rowspan;return a===Opal.nil?void 0:a},S.prototype.setRowSpan=function(a){return this["$rowspan="](a)},S.prototype.getContent=function(){return this.$content()},S.prototype.getText=function(){return this.$text()},S.prototype.getSource=function(){return this.$source()},S.prototype.getLines=function(){return this.$lines()},S.prototype.getLineNumber=function(){const a=this.$lineno();return a===Opal.nil?void 0:a},S.prototype.getFile=function(){const a=this.$file();return a===Opal.nil?void 0:a},S.prototype.getStyle=function(){const a=this.$style();return a===Opal.nil?void 0:a},S.prototype.getColumn=function(){const a=this.$column();return a===Opal.nil?void 0:a},S.prototype.getWidth=function(){return this.getAttribute("width")},S.prototype.getColumnPercentageWidth=function(){return this.getAttribute("colpcwidth")},S.prototype.getInnerDocument=function(){const a=this.inner_document;return a===Opal.nil?void 0:a};const A=Opal.Asciidoctor.Converter.TemplateConverter;if(A){Opal.Asciidoctor.TemplateConverter=A,A.create=function(ae,te,V){V&&V.template_cache&&(V.template_cache=t(V.template_cache)),this.$new(ae,te,t(V))},A.getCache=function(){const ae=r(this.caches);if(ae){if(ae.scans){ae.scans=r(ae.scans);for(const te in ae.scans)ae.scans[te]=r(ae.scans[te])}ae.templates&&(ae.templates=r(ae.templates))}return ae},A.clearCache=function(){this.$clear_caches()},A.prototype.convert=function(ae,te,V){return this.$convert(ae,te,t(V))},A.prototype.handles=function(ae){return this["$handles?"](ae)},A.prototype.getContentOnly=function(ae){return this.$content_only(ae)},A.prototype.skip=function(ae){this.$skip(ae)},A.prototype.getTemplates=function(){return r(this.$templates())},A.prototype.register=function(ae,te){return this.$register(ae,te)};const a={};a.registry={},Opal.Asciidoctor.TemplateEngine=a,a.register=function(ae,te){if(typeof ae=="string")this.registry[ae]=te;else for(let V=0;V<ae.length;V++){const _e=ae[V];this.registry[_e]=te}}}const Q=Opal.Asciidoctor.Converter.CompositeConverter;Q&&(Opal.Asciidoctor.CompositeConverter=Q,Q.prototype.convert=function(a,ae,te){return this.$convert(a,ae,t(te))},Q.prototype.getContentOnly=function(a){return this.$content_only(a)},Q.prototype.skip=function(a){this.$skip(a)},Q.prototype.getConverters=function(){return this.converters},Q.prototype.getConverter=function(a){const ae=this.$converter_for(a);return ae===Opal.nil?void 0:ae},Q.prototype.findConverter=function(a){return this.$find_converter(a)});const De=Opal.const_get_qualified(Opal.Asciidoctor,"Converter");Opal.Asciidoctor.Converter=De,De.prototype.convert=function(a,ae,te){return this.$convert(a,ae,t(te))},De.create=function(a,ae){return this.$create(a,t(ae))};const rt=Opal.Asciidoctor.Converter.Factory,ft=Opal.Asciidoctor.Converter.Base;Opal.Asciidoctor.ConverterFactory=rt;const _t=Opal.Asciidoctor.Converter.BackendTraits;Opal.Asciidoctor.ConverterBackendTraits=_t,rt.register=function(a,ae){const te=[s(a)].concat(ae);return De.$register.apply(De,te)},rt.getDefault=function(a){return this.$default(a)},rt.prototype.create=function(a,ae){return this.$create(a,t(ae))},rt.getRegistry=function(){return r(De.$registry())},rt.for=function(a){const ae=De.$for(a);return ae===Opal.nil?void 0:ae},rt.unregisterAll=function(){const a=De.DefaultFactory.$$cvars["@@registry"];De.DefaultFactory.$$cvars["@@registry"]=t({html5:a["$[]"]("html5")})};const At=Opal.Asciidoctor.Converter.Html5Converter;Opal.Asciidoctor.Html5Converter=At,At.create=function(){return this.$new()},At.prototype.convert=function(a,ae,te){return this.$convert(a,ae,te)};const bt=function(a){return a.$$arity=a.length,a},Mt=function(a,ae,te,V){return typeof te=="object"||te.$$is_class?a["$"+ae](te,V):Opal.send(a,ae,V&&[V],bt(te))},Et=Opal.const_get_qualified(Opal.Asciidoctor,"Extensions");Opal.Asciidoctor.Extensions=Et,Et.create=function(a,ae){return typeof a=="function"&&typeof ae>"u"?Opal.send(this,"create",null,bt(a)):typeof ae=="function"?Opal.send(this,"create",[a],bt(ae)):this.$create()},Et.register=function(a,ae){return typeof a=="function"&&typeof ae>"u"?Opal.send(this,"register",null,bt(a)):Opal.send(this,"register",[a],bt(ae))},Et.getGroups=function(){return r(this.$groups())},Et.unregisterAll=function(){this.$unregister_all()},Et.unregister=function(){const a=Array.prototype.concat.apply([],arguments),ae=this.$groups(),te={};let V=0;const _e=ae.$$keys;for(;V<_e.length;V++){const v=_e[V];te[v.toString()]=v}for(let v=0;v<a.length;v++){const Y=a[v];Y in te&&Opal.hash_delete(ae,te[Y])}};const qt=Et.Registry;qt.prototype.getGroups=Et.getGroups,qt.prototype.unregisterAll=function(){this.groups=Opal.hash()},qt.prototype.unregister=Et.unregister,qt.prototype.prefer=function(a,ae){return arguments.length===1&&(ae=a,a=null),typeof ae=="object"||ae.$$is_class?this.$prefer(a,ae):Opal.send(this,"prefer",a&&[a],bt(ae))},qt.prototype.block=function(a,ae){return arguments.length===1&&(ae=a,a=null),Mt(this,"block",ae,a)},qt.prototype.inlineMacro=function(a,ae){return arguments.length===1&&(ae=a,a=null),Mt(this,"inline_macro",ae,a)},qt.prototype.includeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Mt(this,"include_processor",ae,a)},qt.prototype.blockMacro=function(a,ae){return arguments.length===1&&(ae=a,a=null),Mt(this,"block_macro",ae,a)},qt.prototype.treeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Mt(this,"tree_processor",ae,a)},qt.prototype.postprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Mt(this,"postprocessor",ae,a)},qt.prototype.preprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Mt(this,"preprocessor",ae,a)},qt.prototype.docinfoProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Mt(this,"docinfo_processor",ae,a)},qt.prototype.hasPreprocessors=function(){return this["$preprocessors?"]()},qt.prototype.hasTreeProcessors=function(){return this["$tree_processors?"]()},qt.prototype.hasIncludeProcessors=function(){return this["$include_processors?"]()},qt.prototype.hasPostprocessors=function(){return this["$postprocessors?"]()},qt.prototype.hasDocinfoProcessors=function(a){return this["$docinfo_processors?"](a)},qt.prototype.hasBlocks=function(){return this["$blocks?"]()},qt.prototype.hasBlockMacros=function(){return this["$block_macros?"]()},qt.prototype.hasInlineMacros=function(){return this["$inline_macros?"]()},qt.prototype.getPreprocessors=function(){return this.$preprocessors()},qt.prototype.getTreeProcessors=function(){return this.$tree_processors()},qt.prototype.getIncludeProcessors=function(){return this.$include_processors()},qt.prototype.getPostprocessors=function(){return this.$postprocessors()},qt.prototype.getDocinfoProcessors=function(a){return this.$docinfo_processors(a)},qt.prototype.getBlocks=function(){return this.block_extensions.$values()},qt.prototype.getBlockMacros=function(){return this.block_macro_extensions.$values()},qt.prototype.getInlineMacros=function(){return this.$inline_macros()},qt.prototype.getInlineMacroFor=function(a){const ae=this["$registered_for_inline_macro?"](a);return ae===!1?void 0:ae},qt.prototype.getBlockFor=function(a,ae){if(typeof ae>"u"){const V=this.$find_block_extension(a);return V===Opal.nil?void 0:V}const te=this["$registered_for_block?"](a,ae);return te===!1?void 0:te},qt.prototype.getBlockMacroFor=function(a){const ae=this["$registered_for_block_macro?"](a);return ae===!1?void 0:ae};const It=Et.Processor;It.prototype.prepend=function(){this.$option("position",">>")},It.prototype.process=function(a){const ae={apply:function(V,_e,v){for(let Y=0;Y<v.length;Y++)typeof v[Y]=="object"&&"$$smap"in v[Y]&&(v[Y]=r(v[Y]));return V.apply(_e,v)}},te=new Proxy(a,ae);return Opal.send(this,"process",null,bt(te))},It.prototype.named=function(a){return this.$named(a)},It.prototype.createBlock=function(a,ae,te,V,_e){return this.$create_block(a,ae,te,t(V),t(_e))},It.prototype.createList=function(a,ae,te){return this.$create_list(a,ae,t(te))},It.prototype.createListItem=function(a,ae){return this.$create_list_item(a,ae)},It.prototype.createImageBlock=function(a,ae,te){return this.$create_image_block(a,t(ae),t(te))},It.prototype.createParagraph=function(a,ae,te,V){return this.$create_paragraph(a,ae,t(te),t(V))},It.prototype.createOpenBlock=function(a,ae,te,V){return this.$create_open_block(a,ae,t(te),t(V))},It.prototype.createExampleBlock=function(a,ae,te,V){return this.$create_example_block(a,ae,t(te),t(V))},It.prototype.createPassBlock=function(a,ae,te,V){return this.$create_pass_block(a,ae,t(te),t(V))},It.prototype.createListingBlock=function(a,ae,te,V){return this.$create_listing_block(a,ae,t(te),t(V))},It.prototype.createLiteralBlock=function(a,ae,te,V){return this.$create_literal_block(a,ae,t(te),t(V))},It.prototype.createAnchor=function(a,ae,te){return te&&te.attributes&&(te.attributes=t(te.attributes)),this.$create_anchor(a,ae,t(te))},It.prototype.createInlinePass=function(a,ae,te){return te&&te.attributes&&(te.attributes=t(te.attributes)),this.$create_inline_pass(a,ae,t(te))},It.prototype.createInline=function(a,ae,te,V){return V&&V.attributes&&(V.attributes=t(V.attributes)),this.$create_inline(a,ae,te,t(V))},It.prototype.parseContent=function(a,ae,te){return this.$parse_content(a,ae,t(te))},It.prototype.parseAttributes=function(a,ae,te){return te&&te.attributes&&(te.attributes=t(te.attributes)),r(this.$parse_attributes(a,ae,t(te)))},It.prototype.positionalAttributes=function(a){return this.$positional_attrs(a)},It.prototype.resolveAttributes=function(a){return typeof a=="object"&&!Array.isArray(a)?this.$resolves_attributes(t(a)):arguments.length>1?this.$resolves_attributes(Array.prototype.slice.call(arguments)):typeof a>"u"?this.$resolves_attributes(Opal.nil):this.$resolves_attributes(a)},It.prototype.resolvesAttributes=It.prototype.resolveAttributes,It.prototype.getConfig=function(){return r(this.config)},It.prototype.option=function(a,ae){this.$option(a,ae)};const nt=Et.BlockProcessor;nt.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},nt.prototype.onContext=function(a){return this.$on_context(a)},nt.prototype.onContexts=function(a){return this.$on_contexts(Array.prototype.slice.call(arguments))},nt.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},nt.prototype.parseContentAs=function(a){this.$parse_content_as(a)};const Re=Et.BlockMacroProcessor;Re.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},Re.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},Re.prototype.parseContentAs=function(a){this.$parse_content_as(a)};const Pe=Et.InlineMacroProcessor;Pe.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},Pe.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},Pe.prototype.parseContentAs=function(a){this.$parse_content_as(a)},Pe.prototype.matchFormat=function(a){this.$match_format(a)},Pe.prototype.match=function(a){this.$match(a)};const Ke=Et.IncludeProcessor;Ke.prototype.handles=function(a){return Opal.send(this,"handles?",null,bt(a))},Ke.prototype.prefer=function(){this.$prefer()};const b=Et.TreeProcessor;b.prototype.prefer=function(){this.$prefer()};const R=Et.Postprocessor;R.prototype.prefer=function(){this.$prefer()};const ve=Et.Preprocessor;ve.prototype.prefer=function(){this.$prefer()};const Le=Et.DocinfoProcessor;Le.prototype.prefer=function(){this.$prefer()},Le.prototype.atLocation=function(a){this.$at_location(a)};function Ze(a,ae,te){const V=Opal.const_get_qualified(Et,a);return c(V,ae,te,{"handles?":function(){return!0}})}Et.createPostprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("Postprocessor",a,ae)},Et.newPostprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createPostprocessor(a,ae).$new()},Et.createPreprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("Preprocessor",a,ae)},Et.newPreprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createPreprocessor(a,ae).$new()},Et.createTreeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("TreeProcessor",a,ae)},Et.newTreeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createTreeProcessor(a,ae).$new()},Et.createIncludeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("IncludeProcessor",a,ae)},Et.newIncludeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createIncludeProcessor(a,ae).$new()},Et.createDocinfoProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("DocinfoProcessor",a,ae)},Et.newDocinfoProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createDocinfoProcessor(a,ae).$new()},Et.createBlockProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("BlockProcessor",a,ae)},Et.newBlockProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createBlockProcessor(a,ae).$new()},Et.createInlineMacroProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("InlineMacroProcessor",a,ae)},Et.newInlineMacroProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createInlineMacroProcessor(a,ae).$new()},Et.createBlockMacroProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("BlockMacroProcessor",a,ae)},Et.newBlockMacroProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createBlockMacroProcessor(a,ae).$new()};var ct="3.0.4";return Opal.Asciidoctor.prototype.getVersion=function(){return ct},Opal.Asciidoctor}const Q5=X5();function Ug(e){return b1(Q5.convert(String(e??""),{standalone:!1}))}function Z5({node:e}){return W0(e),Fe.jsxs("div",{className:"text",children:[e.title&&Fe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Fe.jsx("p",{className:"chapter-subtitle",children:e.description}),Fe.jsx(U1,{html:Ug(Ca(e.value))})]})}function J5({chunk:e}){return Fe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:Ug(e.value)}})}function Hg(e,t,r='"'){const n=[];let i=[],s="",c=!1,f=0;const p=()=>{i.push(s),s=""},h=()=>{p(),n.push(i),i=[]};for(;f<e.length;){const I=e[f];if(c){I===r?e[f+1]===r?(s+=r,f+=2):(c=!1,f++):(s+=I,f++);continue}I===r?(c=!0,f++):I===t?(p(),f++):I===`
|
|
602
|
-
`||I==="\r"?(I==="\r"&&e[f+1]===`
|
|
603
|
-
`&&f++,h(),f++):(s+=I,f++)}return(s!==""||i.length)&&h(),n}function O5(e){return e?e==="tab"||e==="\\t"?" ":e==="space"?" ":e[0]:null}function Vg(e,t){if(t==="text/tab-separated-values")return" ";const r=e.split(/\r?\n/,1)[0]??"";let n=",",i=0;for(const s of[",",";"," ","|"]){const c=r.split(s).length-1;c>i&&(i=c,n=s)}return n}const e6=[{label:"auto",value:""},{label:"comma ,",value:","},{label:"semicolon ;",value:";"},{label:"tab",value:"tab"},{label:"pipe |",value:"|"}],Nf=()=>new URLSearchParams(window.location.search);function Yg(e){const t=e.get("header");return!(t==="false"||t==="0")}function Lp(e,t){return e.length>=t?e:[...e,...Array(t-e.length).fill("")]}function Wg({rows:e,header:t}){if(!e.length)return Fe.jsx("p",{className:"csv-empty",children:"(empty)"});const r=e.reduce((s,c)=>Math.max(s,c.length),0),n=t?e[0]:null,i=t?e.slice(1):e;return Fe.jsx("div",{className:"csv-scroll",children:Fe.jsxs("table",{className:"csv-table",children:[n&&Fe.jsx("thead",{children:Fe.jsx("tr",{children:Lp(n,r).map((s,c)=>Fe.jsx("th",{children:s},c))})}),Fe.jsx("tbody",{children:i.map((s,c)=>Fe.jsx("tr",{children:Lp(s,r).map((f,p)=>Fe.jsx("td",{children:f},p))},c))})]})})}function t6({node:e}){const t=Nf(),r=Yg(t),n=String(Ca(e.value)??""),i=O5(t.get("sep"))??Vg(n,e.format??null),s=Hg(n,i);return Fe.jsxs("div",{className:"csv",children:[e.title&&Fe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Fe.jsx("p",{className:"chapter-subtitle",children:e.description}),Fe.jsx(Wg,{rows:s,header:r})]})}function r6({rerender:e}){const t=Nf(),r=t.get("sep")??"",n=Yg(t),i=(s,c)=>{const f=Nf();c?f.set(s,c):f.delete(s);const p=f.toString();window.history.replaceState({},"",window.location.pathname+(p?"?"+p:"")),e()};return Fe.jsxs("div",{className:"csv-toolbar",children:[Fe.jsxs("label",{children:["separator"," ",Fe.jsx("select",{value:r,onChange:s=>i("sep",s.target.value),children:e6.map(s=>Fe.jsx("option",{value:s.value,children:s.label},s.value))})]}),Fe.jsxs("label",{children:[Fe.jsx("input",{type:"checkbox",checked:n,onChange:s=>i("header",s.target.checked?"":"false")})," ","header row"]})]})}function n6({chunk:e}){const t=String(e.value??""),r=Hg(t,Vg(t,e.format??null));return Fe.jsx("div",{className:"csv",children:Fe.jsx(Wg,{rows:r,header:!0})})}const Gg=()=>new URLSearchParams(window.location.search),Kg=[{label:"UTF-8",value:"utf-8"},{label:"Windows-1251",value:"windows-1251"},{label:"CP866",value:"ibm866"},{label:"KOI8-R",value:"koi8-r"}],yd="utf-8",i6=e=>Kg.some(t=>t.value===e);function Xg(){const e=Gg().get("enc")??"";return i6(e)?e:yd}function Qg(e,t){try{return new TextDecoder(t).decode(e)}catch{return new TextDecoder("utf-8").decode(e)}}function Zg(e){const[t,r]=gt.useState(null),[n,i]=gt.useState(null);return gt.useEffect(()=>{let s=!1;return r(null),i(null),fetch(ds(e)).then(c=>c.arrayBuffer()).then(c=>!s&&r(new Uint8Array(c))).catch(c=>!s&&i(String(c.message||c))),()=>{s=!0}},[e]),{bytes:t,error:n}}function s6({node:e}){const{bytes:t,error:r}=Zg(e.path),n=Xg(),i=gt.useMemo(()=>t?Qg(t,n):null,[t,n]);return r?Fe.jsxs("div",{className:"error",children:["text: ",r]}):i==null?Fe.jsx("div",{className:"loading",children:"reading…"}):Fe.jsxs("div",{className:"text",children:[e.title&&Fe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Fe.jsx("p",{className:"chapter-subtitle",children:e.description}),Fe.jsx("pre",{className:"plaintext",children:i})]})}function a6({chunk:e}){const{bytes:t,error:r}=Zg(e.path),n=gt.useMemo(()=>t?Qg(t,yd):null,[t]);return r?Fe.jsxs("div",{className:"error",children:["text: ",r]}):n==null?Fe.jsx("div",{className:"loading",children:"reading…"}):Fe.jsx("pre",{className:"plaintext",children:n})}function l6({rerender:e}){const t=Xg(),r=n=>{const i=Gg();n&&n!==yd?i.set("enc",n):i.delete("enc");const s=i.toString();window.history.replaceState({},"",window.location.pathname+(s?"?"+s:"")),e()};return Fe.jsxs("label",{className:"enc-control",children:["encoding"," ",Fe.jsx("select",{value:t,onChange:n=>r(n.target.value),children:Kg.map(n=>Fe.jsx("option",{value:n.value,children:n.label},n.value))})]})}const o6={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},u6=e=>e<128?String.fromCharCode(e):o6[e]??String.fromCharCode(e),c6=new Set(["fonttbl","colortbl","stylesheet","info","pict","header","footer","footnote","xmlnstbl","themedata","colorschememapping","datastore","latentstyles","listtable","listoverridetable","rsidtbl","generator","operator","creatim","revtim","printim","buptim","author","title","subject","keywords","comment","company","manager","category","doccomm","hlinkbase","filetbl","mmathPr","fldinst","object","nonshppict"]);function $6(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function f6(e){const t=[];let r=[],n={b:!1,i:!1,u:!1,uc:1};const i=[];let s=0,c=1/0;const f=e.length;let p=0;const h=()=>s<c,I=xe=>{if(!xe||!h())return;const ne=r[r.length-1];ne&&ne.b===n.b&&ne.i===n.i&&ne.u===n.u?ne.text+=xe:r.push({text:xe,b:n.b,i:n.i,u:n.u})},F=()=>{h()&&(t.push(r),r=[])},H=(xe,ne)=>{switch(xe){case"b":n.b=ne!==0;break;case"i":n.i=ne!==0;break;case"ul":n.u=ne!==0;break;case"ulnone":n.u=!1;break;case"uc":n.uc=ne??1;break;case"par":case"row":F();break;case"line":case"sect":I(`
|
|
604
|
-
`);break;case"tab":case"cell":I(" ");break;case"pard":case"plain":n.b=n.i=n.u=!1;break;default:c6.has(xe)&&(c=Math.min(c,s));break}};for(;p<f;){const xe=e[p];if(xe==="{")i.push({...n}),s++,p++;else if(xe==="}")s--,s<c&&(c=1/0),n=i.pop()??n,p++;else if(xe==="\\"){const ne=e[p+1];if(ne==="\\"||ne==="{"||ne==="}")I(ne),p+=2;else if(ne==="*")c=Math.min(c,s),p+=2;else if(ne==="'"){const W=parseInt(e.substr(p+2,2),16);isNaN(W)||I(u6(W)),p+=4}else if(ne==="~")I(" "),p+=2;else if(ne==="-")p+=2;else if(/[a-zA-Z]/.test(ne??"")){let W=p+1;for(;W<f&&/[a-zA-Z]/.test(e[W]);)W++;const X=e.slice(p+1,W);let ge="";for(e[W]==="-"&&(ge+="-",W++);W<f&&/[0-9]/.test(e[W]);)ge+=e[W++];const se=ge===""?null:parseInt(ge,10);if(e[W]===" "&&W++,p=W,X==="u"&&se!==null){h()&&I(String.fromCodePoint(se<0?se+65536:se));for(let me=n.uc;me>0&&p<f;me--)if(e[p]==="\\"&&e[p+1]==="'")p+=4;else if(e[p]==="\\")p+=2;else{if(e[p]==="{"||e[p]==="}")break;p++}}else H(X,se)}else p++}else xe==="\r"||xe===`
|
|
605
|
-
`||I(xe),p++}F();const pe=xe=>{let ne=$6(xe.text).replace(/\t/g," ").replace(/\n/g,"<br>");return xe.u&&(ne=`<u>${ne}</u>`),xe.i&&(ne=`<em>${ne}</em>`),xe.b&&(ne=`<strong>${ne}</strong>`),ne};return t.filter(xe=>xe.some(ne=>ne.text.trim()||ne.text.includes(`
|
|
606
|
-
`))).map(xe=>`<p>${xe.map(pe).join("")}</p>`).join(`
|
|
607
|
-
`)}function Jg(e){const[t,r]=gt.useState(null),[n,i]=gt.useState(null);return gt.useEffect(()=>{let s=!1;return r(null),i(null),fetch(ds(e)).then(c=>c.arrayBuffer()).then(c=>{if(s)return;const f=new TextDecoder("windows-1252").decode(new Uint8Array(c));r(f6(f))}).catch(c=>!s&&i(String(c.message||c))),()=>{s=!0}},[e]),{html:t,error:n}}function d6({node:e}){const{html:t,error:r}=Jg(e.path);return r?Fe.jsxs("div",{className:"error",children:["rtf: ",r]}):t==null?Fe.jsx("div",{className:"loading",children:"reading RTF…"}):Fe.jsxs("div",{className:"text",children:[e.title&&Fe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Fe.jsx("p",{className:"chapter-subtitle",children:e.description}),Fe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:t}})]})}function h6({chunk:e}){const{html:t,error:r}=Jg(e.path);return r?Fe.jsxs("div",{className:"error",children:["rtf: ",r]}):t==null?Fe.jsx("div",{className:"loading",children:"reading RTF…"}):Fe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:t}})}function Og({path:e}){return Fe.jsxs("div",{className:"office-fallback",children:[Fe.jsxs("p",{children:["Legacy ",Fe.jsx("code",{children:".doc"})," (Word 97–2003) isn’t rendered in the browser — the old binary format has no reliable client-side parser. Newer ",Fe.jsx("code",{children:".docx"})," files render in full."]}),Fe.jsxs("p",{children:[Fe.jsx("a",{className:"descend",href:ds(e),download:!0,children:"⤓ Download the document"})," ","to open it in an office application."]})]})}function p6({node:e}){return Fe.jsxs("div",{className:"text",children:[e.title&&Fe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Fe.jsx("p",{className:"chapter-subtitle",children:e.description}),Fe.jsx(Og,{path:e.path})]})}function _6({chunk:e}){return Fe.jsx(Og,{path:e.path})}var Hr=Uint8Array,Sn=Uint16Array,bd=Int32Array,sc=new Hr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ac=new Hr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),If=new Hr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ev=function(e,t){for(var r=new Sn(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new bd(r[30]),n=1;n<30;++n)for(var s=r[n];s<r[n+1];++s)i[s]=s-r[n]<<5|n;return{b:r,r:i}},tv=ev(sc,2),rv=tv.b,qf=tv.r;rv[28]=258,qf[258]=28;var nv=ev(ac,0),m6=nv.b,Fp=nv.r,Mf=new Sn(32768);for(var $r=0;$r<32768;++$r){var Fi=($r&43690)>>1|($r&21845)<<1;Fi=(Fi&52428)>>2|(Fi&13107)<<2,Fi=(Fi&61680)>>4|(Fi&3855)<<4,Mf[$r]=((Fi&65280)>>8|(Fi&255)<<8)>>1}var fi=function(e,t,r){for(var n=e.length,i=0,s=new Sn(t);i<n;++i)e[i]&&++s[e[i]-1];var c=new Sn(t);for(i=1;i<t;++i)c[i]=c[i-1]+s[i-1]<<1;var f;if(r){f=new Sn(1<<t);var p=15-t;for(i=0;i<n;++i)if(e[i])for(var h=i<<4|e[i],I=t-e[i],F=c[e[i]-1]++<<I,H=F|(1<<I)-1;F<=H;++F)f[Mf[F]>>p]=h}else for(f=new Sn(n),i=0;i<n;++i)e[i]&&(f[i]=Mf[c[e[i]-1]++]>>15-e[i]);return f},os=new Hr(288);for(var $r=0;$r<144;++$r)os[$r]=8;for(var $r=144;$r<256;++$r)os[$r]=9;for(var $r=256;$r<280;++$r)os[$r]=7;for(var $r=280;$r<288;++$r)os[$r]=8;var Fl=new Hr(32);for(var $r=0;$r<32;++$r)Fl[$r]=5;var g6=fi(os,9,0),v6=fi(os,9,1),y6=fi(Fl,5,0),b6=fi(Fl,5,1),e$=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Gn=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},t$=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},xd=function(e){return(e+7)/8|0},lc=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Hr(e.subarray(t,r))},x6=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],wn=function(e,t,r){var n=new Error(t||x6[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,wn),!r)throw n;return n},w6=function(e,t,r,n){var i=e.length,s=n?n.length:0;if(!i||t.f&&!t.l)return r||new Hr(0);var c=!r,f=c||t.i!=2,p=t.i;c&&(r=new Hr(i*3));var h=function(ft){var _t=r.length;if(ft>_t){var At=new Hr(Math.max(_t*2,ft));At.set(r),r=At}},I=t.f||0,F=t.p||0,H=t.b||0,pe=t.l,xe=t.d,ne=t.m,W=t.n,X=i*8;do{if(!pe){I=Gn(e,F,1);var ge=Gn(e,F+1,3);if(F+=3,ge)if(ge==1)pe=v6,xe=b6,ne=9,W=5;else if(ge==2){var be=Gn(e,F,31)+257,fe=Gn(e,F+10,15)+4,Ae=be+Gn(e,F+5,31)+1;F+=14;for(var O=new Hr(Ae),Ee=new Hr(19),le=0;le<fe;++le)Ee[If[le]]=Gn(e,F+le*3,7);F+=fe*3;for(var w=e$(Ee),Se=(1<<w)-1,N=fi(Ee,w,1),le=0;le<Ae;){var re=N[Gn(e,F,Se)];F+=re&15;var se=re>>4;if(se<16)O[le++]=se;else{var P=0,Me=0;for(se==16?(Me=3+Gn(e,F,3),F+=2,P=O[le-1]):se==17?(Me=3+Gn(e,F,7),F+=3):se==18&&(Me=11+Gn(e,F,127),F+=7);Me--;)O[le++]=P}}var ce=O.subarray(0,be),M=O.subarray(be);ne=e$(ce),W=e$(M),pe=fi(ce,ne,1),xe=fi(M,W,1)}else wn(1);else{var se=xd(F)+4,me=e[se-4]|e[se-3]<<8,J=se+me;if(J>i){p&&wn(0);break}f&&h(H+me),r.set(e.subarray(se,J),H),t.b=H+=me,t.p=F=J*8,t.f=I;continue}if(F>X){p&&wn(0);break}}f&&h(H+131072);for(var x=(1<<ne)-1,$=(1<<W)-1,l=F;;l=F){var P=pe[t$(e,F)&x],u=P>>4;if(F+=P&15,F>X){p&&wn(0);break}if(P||wn(2),u<256)r[H++]=u;else if(u==256){l=F,pe=null;break}else{var d=u-254;if(u>264){var le=u-257,_=sc[le];d=Gn(e,F,(1<<_)-1)+rv[le],F+=_}var S=xe[t$(e,F)&$],A=S>>4;S||wn(3),F+=S&15;var M=m6[A];if(A>3){var _=ac[A];M+=t$(e,F)&(1<<_)-1,F+=_}if(F>X){p&&wn(0);break}f&&h(H+131072);var Q=H+d;if(H<M){var De=s-M,rt=Math.min(M,Q);for(De+H<0&&wn(3);H<rt;++H)r[H]=n[De+H]}for(;H<Q;++H)r[H]=r[H-M]}}t.l=pe,t.p=l,t.b=H,t.f=I,pe&&(I=1,t.m=ne,t.d=xe,t.n=W)}while(!I);return H!=r.length&&c?lc(r,0,H):r.subarray(0,H)},mi=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},Xa=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},r$=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,s=r.slice();if(!i)return{t:sv,l:0};if(i==1){var c=new Hr(r[0].s+1);return c[r[0].s]=1,{t:c,l:1}}r.sort(function(J,be){return J.f-be.f}),r.push({s:-1,f:25001});var f=r[0],p=r[1],h=0,I=1,F=2;for(r[0]={s:-1,f:f.f+p.f,l:f,r:p};I!=i-1;)f=r[r[h].f<r[F].f?h++:F++],p=r[h!=I&&r[h].f<r[F].f?h++:F++],r[I++]={s:-1,f:f.f+p.f,l:f,r:p};for(var H=s[0].s,n=1;n<i;++n)s[n].s>H&&(H=s[n].s);var pe=new Sn(H+1),xe=Df(r[I-1],pe,0);if(xe>t){var n=0,ne=0,W=xe-t,X=1<<W;for(s.sort(function(be,fe){return pe[fe.s]-pe[be.s]||be.f-fe.f});n<i;++n){var ge=s[n].s;if(pe[ge]>t)ne+=X-(1<<xe-pe[ge]),pe[ge]=t;else break}for(ne>>=W;ne>0;){var se=s[n].s;pe[se]<t?ne-=1<<t-pe[se]++-1:++n}for(;n>=0&≠--n){var me=s[n].s;pe[me]==t&&(--pe[me],++ne)}xe=t}return{t:new Hr(pe),l:xe}},Df=function(e,t,r){return e.s==-1?Math.max(Df(e.l,t,r+1),Df(e.r,t,r+1)):t[e.s]=r},Bp=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Sn(++t),n=0,i=e[0],s=1,c=function(p){r[n++]=p},f=1;f<=t;++f)if(e[f]==i&&f!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)c(32754);s>2&&(c(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(c(i),--s;s>6;s-=6)c(8304);s>2&&(c(s-3<<5|8208),s=0)}for(;s--;)c(i);s=1,i=e[f]}return{c:r.subarray(0,n),n:t}},Qa=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},iv=function(e,t,r){var n=r.length,i=xd(t+2);e[i]=n&255,e[i+1]=n>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var s=0;s<n;++s)e[i+s+4]=r[s];return(i+4+n)*8},Pp=function(e,t,r,n,i,s,c,f,p,h,I){mi(t,I++,r),++i[256];for(var F=r$(i,15),H=F.t,pe=F.l,xe=r$(s,15),ne=xe.t,W=xe.l,X=Bp(H),ge=X.c,se=X.n,me=Bp(ne),J=me.c,be=me.n,fe=new Sn(19),Ae=0;Ae<ge.length;++Ae)++fe[ge[Ae]&31];for(var Ae=0;Ae<J.length;++Ae)++fe[J[Ae]&31];for(var O=r$(fe,7),Ee=O.t,le=O.l,w=19;w>4&&!Ee[If[w-1]];--w);var Se=h+5<<3,N=Qa(i,os)+Qa(s,Fl)+c,re=Qa(i,H)+Qa(s,ne)+c+14+3*w+Qa(fe,Ee)+2*fe[16]+3*fe[17]+7*fe[18];if(p>=0&&Se<=N&&Se<=re)return iv(t,I,e.subarray(p,p+h));var P,Me,ce,M;if(mi(t,I,1+(re<N)),I+=2,re<N){P=fi(H,pe,0),Me=H,ce=fi(ne,W,0),M=ne;var x=fi(Ee,le,0);mi(t,I,se-257),mi(t,I+5,be-1),mi(t,I+10,w-4),I+=14;for(var Ae=0;Ae<w;++Ae)mi(t,I+3*Ae,Ee[If[Ae]]);I+=3*w;for(var $=[ge,J],l=0;l<2;++l)for(var u=$[l],Ae=0;Ae<u.length;++Ae){var d=u[Ae]&31;mi(t,I,x[d]),I+=Ee[d],d>15&&(mi(t,I,u[Ae]>>5&127),I+=u[Ae]>>12)}}else P=g6,Me=os,ce=y6,M=Fl;for(var Ae=0;Ae<f;++Ae){var _=n[Ae];if(_>255){var d=_>>18&31;Xa(t,I,P[d+257]),I+=Me[d+257],d>7&&(mi(t,I,_>>23&31),I+=sc[d]);var S=_&31;Xa(t,I,ce[S]),I+=M[S],S>3&&(Xa(t,I,_>>5&8191),I+=ac[S])}else Xa(t,I,P[_]),I+=Me[_]}return Xa(t,I,P[256]),I+Me[256]},k6=new bd([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),sv=new Hr(0),S6=function(e,t,r,n,i,s){var c=s.z||e.length,f=new Hr(n+c+5*(1+Math.ceil(c/7e3))+i),p=f.subarray(n,f.length-i),h=s.l,I=(s.r||0)&7;if(t){I&&(p[0]=s.r>>3);for(var F=k6[t-1],H=F>>13,pe=F&8191,xe=(1<<r)-1,ne=s.p||new Sn(32768),W=s.h||new Sn(xe+1),X=Math.ceil(r/3),ge=2*X,se=function(bt){return(e[bt]^e[bt+1]<<X^e[bt+2]<<ge)&xe},me=new bd(25e3),J=new Sn(288),be=new Sn(32),fe=0,Ae=0,O=s.i||0,Ee=0,le=s.w||0,w=0;O+2<c;++O){var Se=se(O),N=O&32767,re=W[Se];if(ne[N]=re,W[Se]=N,le<=O){var P=c-O;if((fe>7e3||Ee>24576)&&(P>423||!h)){I=Pp(e,p,0,me,J,be,Ae,Ee,w,O-w,I),Ee=fe=Ae=0,w=O;for(var Me=0;Me<286;++Me)J[Me]=0;for(var Me=0;Me<30;++Me)be[Me]=0}var ce=2,M=0,x=pe,$=N-re&32767;if(P>2&&Se==se(O-$))for(var l=Math.min(H,P)-1,u=Math.min(32767,O),d=Math.min(258,P);$<=u&&--x&&N!=re;){if(e[O+ce]==e[O+ce-$]){for(var _=0;_<d&&e[O+_]==e[O+_-$];++_);if(_>ce){if(ce=_,M=$,_>l)break;for(var S=Math.min($,_-2),A=0,Me=0;Me<S;++Me){var Q=O-$+Me&32767,De=ne[Q],rt=Q-De&32767;rt>A&&(A=rt,re=Q)}}}N=re,re=ne[N],$+=N-re&32767}if(M){me[Ee++]=268435456|qf[ce]<<18|Fp[M];var ft=qf[ce]&31,_t=Fp[M]&31;Ae+=sc[ft]+ac[_t],++J[257+ft],++be[_t],le=O+ce,++fe}else me[Ee++]=e[O],++J[e[O]]}}for(O=Math.max(O,le);O<c;++O)me[Ee++]=e[O],++J[e[O]];I=Pp(e,p,h,me,J,be,Ae,Ee,w,O-w,I),h||(s.r=I&7|p[I/8|0]<<3,I-=7,s.h=W,s.p=ne,s.i=O,s.w=le)}else{for(var O=s.w||0;O<c+h;O+=65535){var At=O+65535;At>=c&&(p[I/8|0]=h,At=c),I=iv(p,I+1,e.subarray(O,At))}s.i=c}return lc(f,0,n+xd(I)+i)},A6=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),c=new Hr(s.length+e.length);c.set(s),c.set(e,s.length),e=c,i.w=s.length}return S6(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,i)},oi=function(e,t){return e[t]|e[t+1]<<8},Dn=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},n$=function(e,t){return Dn(e,t)+Dn(e,t+4)*4294967296};function E6(e,t){return A6(e,t||{},0,0)}function C6(e,t){return w6(e,{i:2},t&&t.out,t&&t.dictionary)}var Lf=typeof TextDecoder<"u"&&new TextDecoder,T6=0;try{Lf.decode(sv,{stream:!0}),T6=1}catch{}var z6=function(e){for(var t="",r=0;;){var n=e[r++],i=(n>127)+(n>223)+(n>239);if(r+i>e.length)return{s:t,r:lc(e,r-1)};i?i==3?(n=((n&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|n>>10,56320|n&1023)):i&1?t+=String.fromCharCode((n&31)<<6|e[r++]&63):t+=String.fromCharCode((n&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(n)}};function Ff(e,t){if(t){for(var r="",n=0;n<e.length;n+=16384)r+=String.fromCharCode.apply(null,e.subarray(n,n+16384));return r}else{if(Lf)return Lf.decode(e);var i=z6(e),s=i.s,r=i.r;return r.length&&wn(8),s}}var R6=function(e,t){return t+30+oi(e,t+26)+oi(e,t+28)},N6=function(e,t,r){var n=oi(e,t+28),i=oi(e,t+30),s=Ff(e.subarray(t+46,t+46+n),!(oi(e,t+8)&2048)),c=t+46+n,f=I6(e,c,i,r,Dn(e,t+20),Dn(e,t+24),Dn(e,t+42)),p=f[0],h=f[1],I=f[2];return[oi(e,t+10),p,h,s,c+i+oi(e,t+32),I]},I6=function(e,t,r,n,i,s,c){var f=i==4294967295,p=s==4294967295,h=c==4294967295,I=t+r,F=f+p+h;if(n&&F){for(;t+4<I;t+=4+oi(e,t+2))if(oi(e,t)==1)return[f?n$(e,t+4+8*p):i,p?n$(e,t+4):s,h?n$(e,t+4+8*(p+f)):c,1];n<2&&wn(13)}return[i,s,c,0]};function q6(e,t){for(var r={},n=e.length-22;Dn(e,n)!=101010256;--n)(!n||e.length-n>65558)&&wn(13);var i=oi(e,n+8);if(!i)return{};var s=Dn(e,n+16),c=Dn(e,n-20)==117853008;if(c){var f=Dn(e,n-12);c=Dn(e,f)==101075792,c&&(i=Dn(e,f+32),s=Dn(e,f+48))}for(var p=0;p<i;++p){var h=N6(e,s,c),I=h[0],F=h[1],H=h[2],pe=h[3],xe=h[4],ne=h[5],W=R6(e,ne);s=xe,I?I==8?r[pe]=C6(e.subarray(W,W+F),{out:new Hr(H)}):wn(14,"unknown compression type "+I):r[pe]=lc(e,W,W+F)}return r}const M6={},D6=M6?.VITE_PLANTUML_SERVER?.replace(/\/+$/,"")??"https://www.plantuml.com/plantuml";function wo(e){return e<10?String.fromCharCode(48+e):(e-=10,e<26?String.fromCharCode(65+e):(e-=26,e<26?String.fromCharCode(97+e):(e-=26,e===0?"-":e===1?"_":"?")))}function i$(e,t,r){const n=e>>2,i=(e&3)<<4|t>>4,s=(t&15)<<2|r>>6,c=r&63;return wo(n&63)+wo(i&63)+wo(s&63)+wo(c&63)}function L6(e){let t="";for(let r=0;r<e.length;r+=3)r+2===e.length?t+=i$(e[r],e[r+1],0):r+1===e.length?t+=i$(e[r],0,0):t+=i$(e[r],e[r+1],e[r+2]);return t}function F6(e){const t=E6(new TextEncoder().encode(e),{level:9});return`${D6}/svg/${L6(t)}`}function av({source:e}){return Fe.jsx("div",{className:"filemedia",children:Fe.jsx("img",{className:"fileimage plantuml",src:F6(e),alt:"PlantUML diagram"})})}function B6({node:e}){return Fe.jsxs("div",{className:"text",children:[e.title&&Fe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Fe.jsx("p",{className:"chapter-subtitle",children:e.description}),Fe.jsx(av,{source:String(Ca(e.value)??"")})]})}function P6({chunk:e}){return Fe.jsx(av,{source:String(e.value??"")})}const j6={object:{glyph:"{}",cls:"t-struct"},array:{glyph:"[]",cls:"t-struct"},string:{glyph:"“”",cls:"t-str"},integer:{glyph:"#",cls:"t-num"},number:{glyph:"½",cls:"t-num"},boolean:{glyph:"◧",cls:"t-bool"},null:{glyph:"∅",cls:"t-null"},binary:{glyph:"0110",cls:"t-bin binsq"}},U6={"date-time":"🕑",date:"📅",time:"🕑",duration:"⏳",email:"✉️","idn-email":"✉️",hostname:"🖥️","idn-hostname":"🖥️",ipv4:"🌐",ipv6:"🌐",uri:"🔗",iri:"🔗","uri-reference":"🔗","iri-reference":"🔗","uri-template":"🔗",url:"🔗",uuid:"🆔",regex:"🔣","json-pointer":"📍","relative-json-pointer":"📍",password:"🔑",color:"🎨"};function H6(e){return e==="x-yamlover-chapter"?"§":e==="x-yamlover-tag"?"🏷️":e.startsWith("x-yamlover-")?"🧩":e==="application/pdf"?"📕":e==="application/x-fictionbook+xml"?"📘":e==="application/epub+zip"?"📗":e==="image/vnd.djvu"?"📓":e.startsWith("image/")?"🖼️":e==="text/markdown"?"📝":e==="text/asciidoc"?"📃":e==="text/csv"||e==="text/tab-separated-values"?"▦":e==="text/x-plantuml"?"📊":e==="application/vnd.ms-excel"||e==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"?"▦":e==="application/rtf"||e==="application/msword"||e==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"?"📄":e==="application/vnd.google-earth.kml+xml"||e==="application/vnd.google-earth.kmz"?"🗺️":e.startsWith("text/")?"📄":e.startsWith("audio/")?"🔊":e.startsWith("video/")?"🎬":/^(u?int|float)\d/.test(e)?"💾":null}function vu(e,t,r){if(t){const i=U6[t]??H6(t);if(i)return{glyph:i,cls:"t-fmt",title:t}}if(r==="dir")return{glyph:"📁",cls:"t-struct",title:"folder"};if(r==="yamlover")return{glyph:"🗂️",cls:"t-struct",title:"yamlover folder"};const n=j6[e];return n?{glyph:n.glyph,cls:n.cls,title:e}:{glyph:"•",cls:"t-bin",title:e||"unknown"}}const s$=new Map;function ml({tag:e,body:t,children:r}){const n=gt.useRef(null),[i,s]=gt.useState(null),[c,f]=gt.useState(t??s$.get(e.path)??null);gt.useEffect(()=>{if(!i||t!=null||s$.has(e.path))return;let H=!0;return En(e.path,1).then(pe=>A1(pe.value)).catch(()=>null).then(pe=>{s$.set(e.path,pe??null),H&&f(pe??null)}),()=>{H=!1}},[i,e.path,t]);const p=()=>{const H=n.current?.getBoundingClientRect();H&&s({left:H.left,top:H.bottom+4})},h=()=>s(null),I=un({name:e.name,color:e.color}),F=t??c;return Fe.jsxs("span",{ref:n,className:"tagtip-anchor",onMouseEnter:p,onMouseLeave:h,children:[r,i&&p1.createPortal(Fe.jsxs("span",{className:"tagtip",style:{left:i.left,top:i.top,background:I},children:[Fe.jsx("span",{className:"tagtip-path",children:z4(e.path)}),F&&Fe.jsx("span",{className:"tagtip-value",children:F})]}),document.body)]})}const wd=[{path:"::yamlover:tags:colors:yellow",name:"yellow",color:"#f9e2af"},{path:"::yamlover:tags:colors:green",name:"green",color:"#a6e3a1"},{path:"::yamlover:tags:colors:sky",name:"sky",color:"#89dceb"},{path:"::yamlover:tags:colors:mauve",name:"mauve",color:"#cba6f7"},{path:"::yamlover:tags:colors:pink",name:"pink",color:"#f5c2e7"},{path:"::yamlover:tags:colors:peach",name:"peach",color:"#fab387"}],lv=wd[0],V6=lv.color,yu="yo-annotate-tag",kd="yo-annotate-recent-tags";function Y6(e){return e.tag?un(e.tag):V6}function na(e){return JSON.stringify([e.selector??null,e.tag?.path?Ur(e.tag.path):null])}function Bf(e,t){return JSON.stringify(e??null)===JSON.stringify(t??null)}function W6(e){return!!e.tag&&e.path!=="(preview)"&&e.path!=="(pending)"}let jp=null;async function G6(){for(const e of["::tags:colors","::yamlover:tags:colors"])try{const t=await En(e,2),r=[];for(const[n,i]of yn(t.value)){const s=G0(i);s&&r.push({path:`${e}:${encodeURIComponent(n)}`,name:n,color:s})}if(r.length)return r}catch{}return wd}function K6(){const[e,t]=gt.useState(wd);return gt.useEffect(()=>{jp??=G6();let r=!1;return jp.then(n=>{r||t(n)}),()=>{r=!0}},[]),e}const X6=": ...: !!<format: x-yamlover-tag>";function Q6(e){const t=new Map;for(const r of e){const n=Ur(r),i=n.replace(/^(:yamlover(?=:))+/,"");if(i.startsWith(":tags:colors:"))continue;const s=i!==n,c=t.get(i);(!c||c.grafted&&!s)&&t.set(i,{path:r,grafted:s})}return[...t.values()].map(r=>({path:r.path,name:cv(r.path),color:null}))}function Z6(){const[e,t]=gt.useState([]),r=Yl(za);return gt.useEffect(()=>{let n=!1;return r4(X6).then(i=>{n||t(Q6(i))}).catch(()=>{n||t([])}),()=>{n=!0}},[r]),e}function ov(){const[e,t]=gt.useState(()=>{try{const n=JSON.parse(localStorage.getItem(yu)||"");if(n?.path&&n?.name)return n}catch{}return lv});return[e,n=>{localStorage.setItem(yu,JSON.stringify(n)),J6(n),t(n)}]}function Sd(){try{const e=JSON.parse(localStorage.getItem(kd)||"[]");if(Array.isArray(e))return e.filter(t=>t?.path&&t?.name)}catch{}return[]}function J6(e){if(Ur(e.path).startsWith(":yamlover:tags:colors:"))return;const t=[e,...Sd().filter(r=>r.path!==e.path)].slice(0,6);localStorage.setItem(kd,JSON.stringify(t))}function O6(){const e=r=>En(r.path,0).then(n=>n.format===Ra).catch(()=>!1);try{const r=JSON.parse(localStorage.getItem(yu)||"");r?.path&&e(r).then(n=>{n||localStorage.removeItem(yu)})}catch{}const t=Sd();return Promise.all(t.map(r=>e(r).then(n=>n?r:null))).then(r=>{const n=r.filter(Boolean);return n.length!==t.length&&localStorage.setItem(kd,JSON.stringify(n)),n})}async function e7(e,t,r,n){if(!t)return Ns({target:e,tag:r.path});const{fragmentPath:i}=await n4(e,t,n);return Ns({target:i,tag:r.path})}function Up(e,t){return t.fragmentSlug?(e===":"?"":e)+":yamlover-fragments:"+t.fragmentSlug:e}function uv(e,t=0){const[r,n]=gt.useState([]),i=Yl(za);return gt.useEffect(()=>{let s=!1;return ya(e).then(c=>!s&&n(c)).catch(()=>!s&&n([])),()=>{s=!0}},[e,t,i]),r}function t7(e){const[t,r]=gt.useState(0),n=uv(e,t),[i,s]=gt.useState([]),[c,f]=gt.useState(new Set);gt.useEffect(()=>{const X=new Set(n.map(na));s(ge=>ge.filter(se=>!X.has(na(se)))),f(ge=>new Set([...ge].filter(se=>X.has(se))))},[n]);const p=()=>r(X=>X+1),h=(X,ge,se)=>{s(me=>me.filter(J=>J!==X)),se||window.alert("save failed: "+ge.message)},I=(X,ge,se)=>{const me={path:"(pending)",selector:X??void 0,tag:ge};s(J=>[...J,me]),e7(e,X,ge,se?.imageBase64).then(p).catch(J=>h(me,J,se?.silent))},F=X=>{if(!X?.tag||X.path==="(pending)")return;const ge=na(X);f(se=>new Set(se).add(ge)),P0(Up(e,X),X.tag.path).then(p).catch(se=>{f(me=>{const J=new Set(me);return J.delete(ge),J}),window.alert("delete failed: "+se.message)})},H=gt.useRef([]),pe=X=>{const ge=n.find(se=>se.fragmentSlug&&se.path!=="(pending)"&&Bf(se.selector,X));return ge?Up(e,ge):null},xe=(X,ge,se)=>{const me=pe(X);if(me){const J={path:"(pending)",selector:X,tag:ge};s(be=>[...be,J]),Ns({target:me,tag:ge.path}).then(p).catch(be=>h(J,be,se?.silent));return}if(i.some(J=>Bf(J.selector,X))){const J={path:"(pending)",selector:X,tag:ge};s(be=>[...be,J]),H.current.push({selector:X,tag:ge,entry:J});return}I(X,ge,se)};gt.useEffect(()=>{if(!H.current.length)return;const X=[];for(const ge of H.current){const se=pe(ge.selector);se?Ns({target:se,tag:ge.tag.path}).then(p).catch(me=>h(ge.entry,me)):X.push(ge)}H.current=X},[n]);const ne=new Set,W=[];for(const X of[...i,...n]){const ge=na(X);c.has(ge)||ne.has(ge)||(ne.add(ge),W.push(X))}return{annotations:W,create:I,remove:F,annotateRegion:xe}}function cv(e){const t=Wr(e);return t.length?String(t[t.length-1]):e}function r7(e,t){const r=e.name.toLowerCase();return r===t?0:r.startsWith(t)?1:r.includes(t)?2:3}const Bo=e=>({"--tag":e});function Ad({x:e,y:t,applied:r,mode:n,onPick:i,onUnpick:s,onCopy:c,onClose:f,menuRef:p}){const h=K6(),I=Z6(),[F,H]=gt.useState(Sd),[pe,xe]=gt.useState(""),[ne,W]=gt.useState(-1),[X,ge]=gt.useState(!1),se=n==="edit"?"re-tag":"tag";gt.useEffect(()=>{let N=!0;return O6().then(re=>{N&&H(re)}),()=>{N=!1}},[]);const me=(N,re)=>Ur(N)===Ur(re),J=N=>h.some(re=>me(re.path,N.path)),be=new Set(r.map(N=>Ur(N.path))),fe=N=>be.has(Ur(N)),Ae=[],O=new Set;for(const N of[...r.filter(re=>!J(re)),...F]){const re=Ur(N.path);O.has(re)||(O.add(re),Ae.push(N))}const Ee=N=>(fe(N.path)?s??i:i)(N),le=pe.trim().toLowerCase(),w=[];if(le){const N=I.filter(P=>!J(P)&&!Ae.some(Me=>me(Me.path,P.path))&&(P.name.toLowerCase().includes(le)||Ur(P.path).toLowerCase().includes(le))).map(P=>({t:P,rank:r7(P,le)})).sort((P,Me)=>P.rank-Me.rank||P.t.name.localeCompare(Me.t.name)),re=new Set;for(const{t:P}of N){const Me=P.name.toLowerCase();if(!re.has(Me)&&(re.add(Me),w.push(P),w.length>=8))break}}gt.useEffect(()=>{W(w.length?0:-1)},[pe]);const Se=N=>{const re=(N??pe).trim();!re||X||(ge(!0),En(re.startsWith(":")?re:re.startsWith("/")?":"+re.slice(1).split("/").join(":"):":"+re,1).then(P=>{if(P.format!==Ra)throw new Error("not a tag node");i({path:P.path,name:P.title||cv(P.path),color:G0(P.value)})}).catch(P=>{if(re.includes(":")||re.includes("/"))throw new Error(`cannot ${se} with "${re}": `+P.message);return s4(re).then(i).catch(Me=>{throw new Error(`cannot create tag "${re}": `+Me.message)})}).catch(P=>window.alert(P.message)).finally(()=>ge(!1)))};return Fe.jsxs("div",{ref:p,className:"annotate-menu",style:{left:e,top:t},role:"menu",children:[Fe.jsx("div",{className:"annotate-palette",children:h.map(N=>Fe.jsx(ml,{tag:N,children:Fe.jsx("button",{type:"button",className:"annotate-swatch"+(fe(N.path)?" on":""),style:Bo(un(N)),onClick:()=>Ee(N)})},N.path))}),c&&Fe.jsx("button",{type:"button",className:"annotate-tool",title:"copy text to clipboard (don't annotate)",onClick:c,children:"⧉"}),Fe.jsx("button",{type:"button",className:"annotate-tool close",title:"close",onClick:f,children:"✕"}),Ae.length>0&&Fe.jsx("div",{className:"annotate-recents",children:Ae.map(N=>Fe.jsx("span",{className:"tagframe",children:Fe.jsx(ml,{tag:N,children:Fe.jsx("button",{type:"button",className:"tagtag"+(fe(N.path)?" on":""),style:Bo(un(N)),onClick:()=>Ee(N),children:Fe.jsx("span",{className:"tt-label",children:N.name})})})},N.path))}),Fe.jsxs("div",{className:"annotate-typeahead",children:[Fe.jsx("input",{className:"annotate-taginput",type:"text",placeholder:X?"creating tag…":`${se}: tag path or new name… ⏎`,value:pe,disabled:X,autoComplete:"off",onChange:N=>xe(N.target.value),onKeyDown:N=>{if(w.length&&N.key==="ArrowDown"){N.preventDefault(),N.stopPropagation(),W(re=>(re+1)%w.length);return}if(w.length&&N.key==="ArrowUp"){N.preventDefault(),N.stopPropagation(),W(re=>(re-1+w.length)%w.length);return}if(N.key==="Escape"&&pe){N.preventDefault(),N.stopPropagation(),xe("");return}N.key==="Enter"&&(N.preventDefault(),N.stopPropagation(),ne>=0&&w[ne]?Se(w[ne].path):Se())}}),!X&&w.length>0&&Fe.jsx("div",{className:"annotate-suggest",role:"listbox",children:w.map((N,re)=>Fe.jsx("span",{className:"tagframe",children:Fe.jsx(ml,{tag:N,children:Fe.jsx("button",{type:"button",role:"option","aria-selected":re===ne,className:"tagtag"+(re===ne?" hi":""),style:Bo(un(N)),onMouseDown:P=>{P.preventDefault(),Se(N.path)},onMouseEnter:()=>W(re),children:Fe.jsx("span",{className:"tt-label",children:N.name})})})},N.path))})]})]})}function n7(e){const[t,r]=ov(),[n,i]=gt.useState(null),s=gt.useRef(null),c=()=>i(null),f=(ne,W,X,ge)=>{i({selector:ne,seedTag:t,copy:X,imageBase64:ge,x:W.x,y:W.y}),e.annotateRegion(ne,t,{imageBase64:ge,silent:!0})},p=(ne,W)=>i({selector:ne.selector??{},seedTag:ne.tag??t,x:W.x,y:W.y}),h=n?e.annotations.filter(ne=>Bf(ne.selector,n.selector)):[],I=h.map(ne=>ne.tag).filter(ne=>!!ne),F=ne=>{n&&(r(ne),!I.some(W=>Ur(W.path)===Ur(ne.path))&&e.annotateRegion(n.selector,ne,{imageBase64:n.imageBase64}))},H=ne=>{if(!n)return;const W=h.find(X=>X.tag&&Ur(X.tag.path)===Ur(ne.path));W&&e.remove(W)};gt.useEffect(()=>{if(!n)return;const ne=W=>{s.current?.contains(W.target)||c()};return document.addEventListener("mousedown",ne),()=>document.removeEventListener("mousedown",ne)},[n]);const pe=n?Fe.jsx(Ad,{menuRef:s,x:n.x,y:n.y,applied:I,mode:"create",onPick:F,onUnpick:H,onCopy:n.copy?()=>{n.copy(),c()}:void 0,onClose:c}):null,xe=n&&I.length===0?{selector:n.selector,tag:n.seedTag,color:un(n.seedTag)}:null;return{openCreate:f,openEdit:p,palette:pe,preview:xe,color:un(t)}}function i7({path:e,children:t}){const r=gt.useRef(null),n=t7(e),{openCreate:i,openEdit:s,palette:c}=n7(n),{annotations:f}=n;gt.useEffect(()=>{const h=r.current;if(!h)return;const I=requestAnimationFrame(()=>a7(h,f));return()=>cancelAnimationFrame(I)}),gt.useEffect(()=>{const h=I=>{const F=r.current;if(!F||I.target?.closest?.(".annotate-menu")||I.target?.closest?.("mark.yo-annotation"))return;const H=window.getSelection();if(!H||H.isCollapsed||!H.anchorNode||!F.contains(H.anchorNode))return;const pe=s7(H);if(!pe)return;const xe=H.getRangeAt(0).getBoundingClientRect(),ne=()=>navigator.clipboard?.writeText(pe.exact).catch(()=>{});i({type:"text",exact:pe.exact,prefix:pe.prefix,suffix:pe.suffix},{x:xe.left,y:xe.bottom+6},ne)};return document.addEventListener("mouseup",h),()=>document.removeEventListener("mouseup",h)},[]);const p=h=>{const I=h.target.closest("mark.yo-annotation");if(!I)return;const F=f.find(H=>na(H)===I.dataset.annSel);!F||!W6(F)||(h.preventDefault(),s(F,{x:h.clientX,y:h.clientY}))};return Fe.jsxs("div",{className:"annotated",children:[f.length>0&&Fe.jsx("div",{className:"annotate-bar",children:Fe.jsxs("span",{className:"annotate-count",children:[f.length," annotation",f.length>1?"s":""]})}),Fe.jsx("div",{ref:r,onClick:p,children:t}),c]})}function s7(e){const t=e.toString().trim();if(!t)return null;const r=e.anchorNode?.nodeValue??"",n=r.indexOf(t),i=n>=0?r.slice(Math.max(0,n-24),n):"",s=n>=0?r.slice(n+t.length,n+t.length+24):"";return{exact:t,prefix:i,suffix:s}}function a7(e,t){e.querySelectorAll("mark.yo-annotation").forEach(r=>{const n=r.parentNode;if(n){for(;r.firstChild;)n.insertBefore(r.firstChild,r);n.removeChild(r),n.normalize()}});for(const r of t)r.selector?.type!=="text"||!r.selector.exact||l7(e,r.selector.exact,r)}function l7(e,t,r){const n=Y6(r),i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);let s;for(;s=i.nextNode();){const c=(s.nodeValue??"").indexOf(t);if(c<0)continue;const f=document.createRange();f.setStart(s,c),f.setEnd(s,c+t.length);const p=document.createElement("mark");p.className="yo-annotation",p.style.backgroundColor=`color-mix(in srgb, ${n} 30%, transparent)`,p.style.borderBottomColor=n,p.dataset.annSel=na(r),p.title=r.description||"click to re-tag or delete";try{f.surroundContents(p);return}catch{}}}function o7(){const[e,t]=ov(),[r,n]=gt.useState(null),[i,s]=gt.useState([]),c=gt.useRef(null),f=()=>{n(null),s([])},p=xe=>ya(xe).then(s).catch(()=>s([])),h=(xe,ne,W)=>{n({target:xe,x:ne,y:W}),s([]),ya(xe).then(X=>{X.length===0?(s([{path:"(pending)",tag:e}]),Ns({target:xe,tag:e.path}).then(()=>p(xe)).catch(()=>s([]))):s(X)}).catch(()=>s([]))},I=xe=>{if(!r)return;t(xe);const ne={path:"(pending)",tag:xe};s(W=>[...W,ne]),Ns({target:r.target,tag:xe.path}).then(()=>p(r.target)).catch(W=>{s(X=>X.filter(ge=>ge!==ne)),window.alert("tag failed: "+W.message)})},F=xe=>{if(!r)return;const ne=i.find(W=>W.tag&&Ur(W.tag.path)===Ur(xe.path));s(W=>W.filter(X=>X!==ne)),P0(r.target,ne?.tag?.path??xe.path).then(()=>p(r.target)).catch(W=>{ne&&s(X=>[...X,ne]),window.alert("untag failed: "+W.message)})};gt.useEffect(()=>{if(!r)return;const xe=ne=>{c.current?.contains(ne.target)||f()};return document.addEventListener("mousedown",xe),()=>document.removeEventListener("mousedown",xe)},[r]);const H=i.map(xe=>xe.tag).filter(xe=>!!xe),pe=r?Fe.jsx(Ad,{menuRef:c,x:r.x,y:r.y,applied:H,mode:"create",onPick:I,onUnpick:F,onClose:f}):null;return{openAt:h,tagMenu:pe}}const u7="x-yamlover-board",c7=new Set(["x-yamlover-tag","x-yamlover-workflow","x-yamlover-board"]);function $7(e){return e.format===u7?!0:yn(e.value).some(([t])=>t==="workflow"||t==="columns")}const f7=new Set(["cancelled","canceled","rejected","wontfix","won't-fix","dropped","declined","abandoned","duplicate","invalid"]),a$=e=>f7.has(e.toLowerCase()),l$=(e,t)=>{const r=yn(e).find(([n])=>n===t)?.[1];return typeof r=="string"?r:typeof r=="number"?String(r):null},d7=e=>{const t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)};function h7(e){return Is(yn(e.value).find(([t])=>t==="workflow")?.[1])}function p7(e){const t=yn(e.value).find(([r])=>r==="columns")?.[1];return Array.isArray(t)?t.map(r=>Array.isArray(r)?r.map(Is).filter(n=>!!n):[]):null}function _7(e){const t=[];for(const[r,n]of yn(e.value)){if(r==="workflow"||r==="columns"||r==="yamlover"||r==="tags")continue;const i=on(n);!i||i.format&&c7.has(i.format)||t.push(i.path)}return t}function m7(e){const t=yn(e).find(([i])=>i==="yamlover-annotations")?.[1],r=Array.isArray(t)?t:[],n=[];for(const i of r){const s=Is(i)??Is(yn(i).find(([c])=>c==="tag")?.[1]);s&&n.push(s)}return n}function g7({node:e,onNavigate:t,openContextMenu:r}){const n=Yl(za),[i,s]=gt.useState([]),[c,f]=gt.useState([]),[p,h]=gt.useState(null),[I,F]=gt.useState(null),[H,pe]=gt.useState(null),[xe,ne]=gt.useState(null),W=gt.useRef(null);gt.useEffect(()=>{let Ae=!1;return(async()=>{try{const O=h7(e),le=yn(e.value).some(([re])=>re==="columns")?p7(await En(e.path,3)):null;let w=[];if(le)w=await Promise.all(le.map(async re=>({tags:await Promise.all(re.map(lf))})));else if(O){const re=(await Y4(O)).filter(ce=>!ce.initial),P=re.filter(ce=>ce.next.length>0),Me=re.filter(ce=>ce.next.length===0);Me.sort((ce,M)=>Number(a$(ce.label))-Number(a$(M.label))),w=[...P.map(ce=>({tags:[ce]})),...Me.length?[{tags:Me}]:[]]}const Se=_7(e),N=await Promise.all(Se.map(async re=>{const P=await En(re,2);return{path:re,title:P.title??d7(re),priority:l$(P.value,"priority"),assignee:l$(P.value,"assignee"),due:l$(P.value,"due"),tags:m7(P.value)}}));if(Ae)return;s(w),f(N),h(null)}catch(O){Ae||h(String(O?.message||O))}})(),()=>{Ae=!0}},[e.path,n]);const X=()=>i.map(Ae=>Ae.tags.map(O=>O.path)),ge=Ae=>{i4(e.path,Ae).catch(O=>h(String(O?.message||O)))},se=(Ae,O)=>{const Ee=X();Ee[Ae]||(Ee[Ae]=[]),Ee[Ae].includes(O)||Ee[Ae].push(O),ge(Ee)},me=(Ae,O)=>{const Ee=X().map((le,w)=>w===Ae?le.filter(Se=>Se!==O):le);ge(Ee)},J=()=>ge([...X(),[]]),be=Ae=>ge(X().filter((O,Ee)=>Ee!==Ae)),fe=async Ae=>{const O=I;if(F(null),pe(null),!(!O||Ae===O.from))try{await C1(O.task,O.from,Ae),f(Ee=>Ee.map(le=>le.path===O.task?{...le,tags:[...le.tags.filter(w=>w!==O.from),Ae]}:le))}catch(Ee){h(String(Ee?.message||Ee))}};return gt.useEffect(()=>{if(!xe)return;const Ae=O=>{W.current?.contains(O.target)||ne(null)};return document.addEventListener("mousedown",Ae),()=>document.removeEventListener("mousedown",Ae)},[xe]),p?Fe.jsxs("div",{className:"board-error",children:["Board error: ",p]}):Fe.jsxs("div",{className:"board",children:[i.map((Ae,O)=>{const Ee=Ae.tags[0]?un({name:Ae.tags[0].label,color:Ae.tags[0].color}):"#6c7086",le=Ae.tags.reduce((w,Se)=>w+c.filter(N=>N.tags.includes(Se.path)).length,0);return Fe.jsxs("section",{className:"board-col",children:[Fe.jsxs("header",{className:"board-col-head",style:{borderTopColor:Ee},children:[Fe.jsxs("div",{className:"board-col-tags",children:[Ae.tags.map(w=>Fe.jsx(ml,{tag:{path:w.path,name:w.label,color:w.color},children:Fe.jsx("button",{type:"button",className:"tagtag on",style:Bo(un({name:w.label,color:w.color})),onClick:()=>me(O,w.path),children:Fe.jsx("span",{className:"tt-label",children:w.label})})},w.path)),Fe.jsx("button",{className:"board-lane-add",title:"add a tag to this lane",onClick:w=>ne({lane:O,x:w.clientX,y:w.clientY}),children:"+"})]}),Fe.jsx("span",{className:"board-col-count",children:le}),Fe.jsx("button",{className:"board-lane-del",title:"remove this lane",onClick:()=>be(O),children:"🗑"})]}),Fe.jsx("div",{className:"board-col-body",children:Ae.tags.map((w,Se)=>{const N=c.filter(Me=>Me.tags.includes(w.path)),re=un({name:w.label,color:w.color}),P=a$(w.label);return Fe.jsxs("div",{className:"board-group"+(Se>0?" board-group-split":"")+(H===w.path?" board-group-over":""),onDragOver:Me=>{I&&(Me.preventDefault(),H!==w.path&&pe(w.path))},onDrop:Me=>{Me.preventDefault(),fe(w.path)},children:[Ae.tags.length>1&&Fe.jsxs("div",{className:"board-group-head",children:[Fe.jsx("span",{className:"board-group-dot",style:{background:re}}),Fe.jsx("span",{className:"board-group-title",children:w.label}),Fe.jsx("span",{className:"board-col-count",children:N.length})]}),Fe.jsx("div",{className:"board-group-cards",children:N.map(Me=>Fe.jsxs("article",{className:"board-card"+(P?" board-card-negative":""),draggable:!0,onDragStart:()=>F({task:Me.path,from:w.path}),onDragEnd:()=>{F(null),pe(null)},onClick:()=>t(Me.path),onContextMenu:r?ce=>{ce.preventDefault(),r(Me.path,ce.clientX,ce.clientY)}:void 0,title:Vl(Me.path),style:{borderLeftColor:re},children:[Fe.jsx("div",{className:"board-card-title",children:Me.title}),Fe.jsxs("div",{className:"board-card-meta",children:[Me.priority&&Fe.jsx("span",{className:"board-chip prio-"+Me.priority,children:Me.priority}),Me.assignee&&Fe.jsxs("span",{className:"board-chip board-assignee",children:["@",Me.assignee]}),Me.due&&Fe.jsx("span",{className:"board-chip board-due",children:Me.due.slice(0,10)})]})]},Me.path))})]},w.path)})})]},O)}),Fe.jsx("button",{className:"board-add-lane",title:"add a lane",onClick:J,children:"+ lane"}),xe&&Fe.jsx(Ad,{menuRef:W,x:xe.x,y:xe.y,applied:[],mode:"create",onPick:Ae=>{se(xe.lane,Ae.path),ne(null)},onClose:()=>ne(null)})]})}function v7(e){const t=e.link;return t?t.format?t.format.replace(/^x-yamlover-/,"").replace(/^.*\//,""):t.concrete==="dir"||t.concrete==="yamlover"?"folder":t.type??t.kind??"":"scalar"}function y7(e){const t=e.link;if(!t)return"";if(typeof t.count=="number")return`${t.count} item${t.count===1?"":"s"}`;if(typeof t.size=="number"){const r=["B","KB","MB","GB"];let n=t.size,i=0;for(;n>=1024&&i<r.length-1;)n/=1024,i++;return`${i===0?n:n.toFixed(1)} ${r[i]}`}return""}function b7({members:e,onNavigate:t,openContextMenu:r}){const{seq:n,paths:i}=B4(za),[s,c]=gt.useState({}),f=e.map(h=>h.link?.path).filter(h=>!!h),p=f.join("|");return gt.useEffect(()=>{let h=!1;return Promise.all(f.map(I=>ya(I).then(F=>[I,F]).catch(()=>[I,[]]))).then(I=>{h||c(Object.fromEntries(I))}),()=>{h=!0}},[p]),gt.useEffect(()=>{if(n===0)return;const h=f.filter(F=>i.some(H=>H===F||H.startsWith(F+":")));if(h.length===0)return;let I=!1;return Promise.all(h.map(F=>ya(F).then(H=>[F,H]).catch(()=>[F,[]]))).then(F=>{I||c(H=>({...H,...Object.fromEntries(F)}))}),()=>{I=!0}},[n]),Fe.jsx("div",{className:"detailsview",children:Fe.jsxs("table",{className:"details",children:[Fe.jsx("thead",{children:Fe.jsxs("tr",{children:[Fe.jsx("th",{className:"details-name",children:"Name"}),Fe.jsx("th",{className:"details-kind",children:"Kind"}),Fe.jsx("th",{className:"details-tags",children:"Tags"}),Fe.jsx("th",{className:"details-size",children:"Size"})]})}),Fe.jsxs("tbody",{children:[e.map((h,I)=>{const F=h.link;if(!F)return null;const H=vu(F.type??F.kind,F.format??null,F.concrete),pe=F.title??h.key,xe=s[F.path]??[];return Fe.jsxs("tr",{className:"details-row",onClick:()=>t(F.path),onContextMenu:r?ne=>{ne.preventDefault(),r(F.path,ne.clientX,ne.clientY)}:void 0,title:Vl(F.path),children:[Fe.jsxs("td",{className:"details-name",children:[Fe.jsx("span",{className:"details-icon "+H.cls,title:H.title,children:H.glyph}),Fe.jsx("span",{className:"details-label",children:pe})]}),Fe.jsx("td",{className:"details-kind",children:v7(h)}),Fe.jsx("td",{className:"details-tags",children:xe.map((ne,W)=>{if(!ne.tag)return null;const X=un({name:ne.tag.name,color:ne.tag.color});return Fe.jsx(ml,{tag:ne.tag,children:w1(ne.tag.path)?Fe.jsx(k1,{color:X,title:""}):Fe.jsx("span",{className:"tagtag",style:{background:X},children:ne.tag.name})},W)})}),Fe.jsx("td",{className:"details-size",children:y7(h)})]},`${F.path}#${I}`)}),e.length===0&&Fe.jsx("tr",{children:Fe.jsx("td",{className:"details-empty",colSpan:4,children:"empty"})})]})]})})}const x7="x-yamlover-annotation",w7="$yamloverMixed",Hp={large:256,thumbnails:512};function k7(e){return Object.entries(e??{}).map(([t,r])=>({key:t,link:on(r),up:!0})).filter(t=>t.link!=null)}function S7(e){const t=e.value;if(Array.isArray(t))return t.map((n,i)=>({key:`[${i}]`,link:on(n),raw:n}));if(!t||typeof t!="object")return[];const r=t[w7];return Object.keys(t).length===1&&r?.entries?r.entries.map((n,i)=>({key:n.key??`[${i}]`,link:on(n.value),raw:n.value})):Object.entries(t).map(([n,i])=>({key:n,link:on(i),raw:i}))}function A7(e){if(e==null)return"null";if(Array.isArray(e))return"array";const t=typeof e;return t==="object"?"object":t==="boolean"?"boolean":t==="number"?Number.isInteger(e)?"integer":"number":"string"}function Vp(e){if(e==null)return"~";const t=String(e).split(`
|
|
608
|
-
`,1)[0];return t.length>80?t.slice(0,79)+"…":t}function E7(e){return!!e&&(e.includes("/")||e.startsWith("x-yamlover-"))}function C7(e,t,r,n){if(r==="ArrowRight")return Math.min(t+1,n-1);if(r==="ArrowLeft")return Math.max(t-1,0);if(r==="Home")return 0;if(r==="End")return n-1;const i=e[t];if(!i)return t;const s=i.getBoundingClientRect(),c=s.left+s.width/2,f=s.top+s.height/2,p=r==="ArrowDown";let h=t,I=1/0;for(let F=0;F<n;F++){const H=e[F];if(!H||F===t)continue;const pe=H.getBoundingClientRect(),xe=pe.left+pe.width/2,ne=pe.top+pe.height/2;if(p?ne<=f+1:ne>=f-1)continue;const W=Math.abs(xe-c)*2+Math.abs(ne-f);W<I&&(I=W,h=F)}return h}function T7(e,t){const r=e.format??null;return!r||!r.startsWith("image/")?null:r==="image/svg+xml"?ds(e.path):Oy(e.path,t,t)}function z7({link:e,glyph:t,box:r}){const[n,i]=gt.useState(!1),s=n?null:T7(e,r);return s?Fe.jsx("img",{className:"dirview-icon dirview-thumb",src:s,alt:"",loading:"lazy",onError:()=>i(!0)}):Fe.jsx("span",{className:"dirview-icon "+t.cls,title:t.title,children:t.glyph})}function R7({it:e,active:t,view:r,setRef:n,onFocus:i,onNavigate:s,onContext:c}){const f=e.link,p=t?0:-1,h=f&&!e.up&&c?{onContextMenu:pe=>{pe.preventDefault(),c(f.path,pe.clientX,pe.clientY)}}:{};if(!f){const pe=vu(A7(e.raw),null);return Fe.jsxs("span",{className:"dirview-item",ref:n,tabIndex:p,onFocus:i,children:[Fe.jsx("span",{className:"dirview-icon "+pe.cls,title:pe.title,children:pe.glyph}),Fe.jsxs("span",{className:"dirview-label",children:[e.key,": ",Vp(e.raw)]})]})}const I=vu(f.type??f.kind,f.format??null,f.concrete),F=e.up?R4(e.key):f.title??e.key,H=f.format===Ra?Fe.jsx("span",{className:"tagtag",style:{background:un({name:F,color:f.color})},children:F}):f.kind==="scalar"&&!E7(f.format)?Fe.jsxs(Fe.Fragment,{children:[F,": ",Fe.jsx("span",{className:"val",children:Vp(f.value)})]}):F;return Fe.jsxs("a",{className:"dirview-item"+(e.up?" dirview-up":""),href:f.path,title:Vl(f.path),ref:n,tabIndex:p,onFocus:i,onClick:pe=>{pe.preventDefault(),s(f.path)},...h,children:[Hp[r]&&!e.up?Fe.jsx(z7,{link:f,glyph:I,box:Hp[r]}):Fe.jsx("span",{className:"dirview-icon "+I.cls,title:I.title,children:I.glyph}),Fe.jsx("span",{className:"dirview-label",children:H})]})}function N7({node:e,view:t,onNavigate:r}){const n=e.format===Ra,[i,s]=gt.useState([]),c=Yl(za),{openAt:f,tagMenu:p}=o7();gt.useEffect(()=>{if(s([]),!n)return;let me=!1;return t4(e.path).then(J=>{me||s(J.map(on).filter(be=>be!=null))}).catch(()=>{}),()=>{me=!0}},[e.path,n,c]);const h=k7(e.relations);let I=S7(e);if(n){I=I.filter(J=>J.link?.format!==x7);const me=new Set(I.map(J=>J.link?.path).filter(Boolean));for(const J of i)me.has(J.path)||I.push({key:Hu(J.path,J.title),link:J})}const F=[...h,...I],H=gt.useRef(null),pe=gt.useRef([]);pe.current.length=F.length;const[xe,ne]=gt.useState(0);gt.useEffect(()=>{xe>F.length-1&&ne(Math.max(0,F.length-1))},[F.length,xe]);const W=gt.useRef(!0);gt.useEffect(()=>{ne(0),W.current=!0},[e.path]),gt.useEffect(()=>{!W.current||!F.length||(W.current=!1,!H.current?.closest(".chunk-body")&&pe.current[0]?.focus({preventScroll:!0}))},[F.length,e.path]);const X=me=>{if(me.ctrlKey||me.altKey||me.metaKey||!F.length)return;if(me.key==="Enter"){const be=F[xe]?.link;be&&(me.preventDefault(),r(be.path));return}if(!/^(Arrow(Up|Down|Left|Right)|Home|End)$/.test(me.key))return;me.preventDefault();const J=C7(pe.current,xe,me.key,F.length);J!==xe&&(ne(J),pe.current[J]?.focus())};if(t==="board")return Fe.jsxs(Fe.Fragment,{children:[p,Fe.jsx(g7,{node:e,onNavigate:r,openContextMenu:f})]});if(t==="details")return Fe.jsxs(Fe.Fragment,{children:[p,Fe.jsx(b7,{members:I,onNavigate:r,openContextMenu:f})]});const ge=(n?A1(e.value):null)??e.description,se="dirview"+(t!=="small"?" dirview-lg":"")+(t==="thumbnails"?" dirview-thumbs":"");return Fe.jsxs("div",{className:"explorerview",children:[p,ge&&Fe.jsx("div",{className:"dirhead",children:Fe.jsx("p",{className:"tagdesc",children:ge})}),Fe.jsxs("div",{ref:H,className:se,onKeyDown:X,children:[F.map((me,J)=>Fe.jsx(R7,{it:me,active:J===xe,view:t,setRef:be=>{pe.current[J]=be},onFocus:()=>ne(J),onNavigate:r,onContext:f},`${me.up?"^":""}${me.link?.path??me.key}#${J}`)),F.length===0&&Fe.jsx("span",{className:"dirview-empty",children:"empty"})]})]})}const $v="http://www.w3.org/1999/xlink",I7=new RegExp("[\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F]","g");function q7(e){const t=new Uint8Array(e),n=(new TextDecoder("latin1").decode(t.subarray(0,256)).match(/encoding=["']([^"']+)["']/i)?.[1]||"utf-8").toLowerCase();let i;try{i=new TextDecoder(n).decode(t)}catch{i=new TextDecoder("utf-8").decode(t)}return i.replace(I7,"")}function M7(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function fv(e,t){if(e.nodeType===3)return M7(e.textContent||"");if(e.nodeType!==1)return"";const r=e,n=()=>Array.from(r.childNodes).map(i=>fv(i,t)).join("");switch(r.localName){case"section":return`<section class="fb2-section">${n()}</section>`;case"title":return`<div class="fb2-title">${n()}</div>`;case"subtitle":return`<p class="fb2-subtitle">${n()}</p>`;case"p":return`<p>${n()}</p>`;case"empty-line":return"<br/>";case"emphasis":return`<em>${n()}</em>`;case"strong":return`<strong>${n()}</strong>`;case"strikethrough":return`<s>${n()}</s>`;case"sub":return`<sub>${n()}</sub>`;case"sup":return`<sup>${n()}</sup>`;case"code":return`<code>${n()}</code>`;case"epigraph":case"cite":return`<blockquote class="fb2-cite">${n()}</blockquote>`;case"text-author":return`<p class="fb2-text-author">${n()}</p>`;case"poem":return`<div class="fb2-poem">${n()}</div>`;case"stanza":return`<div class="fb2-stanza">${n()}</div>`;case"v":return`<div class="fb2-v">${n()}</div>`;case"a":return`<span class="fb2-a">${n()}</span>`;case"image":{const i=r.getAttributeNS($v,"href")||r.getAttribute("l:href")||r.getAttribute("href")||"",s=t.get(i.replace(/^#/,""));return s?`<img class="fb2-img" src="${s}" alt=""/>`:""}case"title-info":case"description":case"binary":return"";default:return n()}}function Yp({node:e}){const[t,r]=gt.useState(null),[n,i]=gt.useState(null);return gt.useEffect(()=>{let s=!1;return r(null),i(null),fetch(ds(e.path)).then(c=>c.arrayBuffer()).then(c=>{if(s)return;const f=new DOMParser().parseFromString(q7(c),"application/xml"),p=f.getElementsByTagName("parsererror")[0];if(p)throw new Error(p.textContent?.trim().split(`
|
|
609
|
-
`)[0]||"invalid FB2 XML");const h=new Map;for(const se of Array.from(f.getElementsByTagNameNS("*","binary"))){const me=se.getAttribute("id");if(me){const J=se.getAttribute("content-type")||"image/jpeg";h.set(me,`data:${J};base64,${(se.textContent||"").replace(/\s+/g,"")}`)}}const I=f.getElementsByTagNameNS("*","title-info")[0],F=(se,me)=>se?.getElementsByTagNameNS("*",me)[0]?.textContent?.trim()||"",H=F(I,"book-title")||void 0,pe=I&&Array.from(I.getElementsByTagNameNS("*","author")).map(se=>[F(se,"first-name"),F(se,"middle-name"),F(se,"last-name")].filter(Boolean).join(" ")||F(se,"nickname")).filter(Boolean).join(", "),xe=I?.getElementsByTagNameNS("*","coverpage")[0]?.getElementsByTagNameNS("*","image")[0],ne=(xe?.getAttributeNS($v,"href")||xe?.getAttribute("l:href")||"").replace(/^#/,""),W=Array.from(f.getElementsByTagNameNS("*","body")),X=W.find(se=>se.getAttribute("name")!=="notes")||W[0],ge=X?Array.from(X.childNodes).map(se=>fv(se,h)).join(""):"";r({title:H,author:pe||void 0,cover:ne?h.get(ne):void 0,html:ge})}).catch(c=>!s&&i(String(c.message||c))),()=>{s=!0}},[e.path]),n?Fe.jsxs("div",{className:"error",children:["fb2: ",n]}):t?Fe.jsxs("div",{className:"text fb2",children:[t.cover&&Fe.jsx("img",{className:"fb2-cover",src:t.cover,alt:""}),t.title&&Fe.jsx("h1",{className:"chapter-title",children:t.title}),t.author&&Fe.jsx("p",{className:"chapter-subtitle",children:t.author}),Fe.jsx("div",{className:"markup fb2-body",dangerouslySetInnerHTML:{__html:t.html}})]}):Fe.jsx("div",{className:"loading",children:"loading FB2…"})}const Wp="http://www.w3.org/1999/xlink";function o$(e,t){t=decodeURIComponent(t.split("#")[0].split("?")[0]);const r=(e?e.split("/"):[]).concat(t.split("/")),n=[];for(const i of r)i===""||i==="."||(i===".."?n.pop():n.push(i));return n.join("/")}function Gp(e){const t=e.lastIndexOf("/");return t<0?"":e.slice(0,t)}function Kp({node:e}){const[t,r]=gt.useState(null),[n,i]=gt.useState(null);return gt.useEffect(()=>{let s=!1;const c=[];return r(null),i(null),fetch(ds(e.path)).then(f=>f.arrayBuffer()).then(f=>{if(s)return;const p=q6(new Uint8Array(f)),h=fe=>p[fe]?Ff(p[fe]):"",I=fe=>new DOMParser().parseFromString(h(fe),"application/xml"),F=I("META-INF/container.xml").getElementsByTagNameNS("*","rootfile")[0]?.getAttribute("full-path");if(!F||!p[F])throw new Error("no OPF package document");const H=I(F),pe=Gp(F),xe=new Map,ne=(fe,Ae="")=>{if(!p[fe])return"";const O=xe.get(fe);if(O)return O;const Ee=URL.createObjectURL(new Blob([p[fe]],{type:Ae}));return xe.set(fe,Ee),c.push(Ee),Ee},W=H.getElementsByTagNameNS("*","title")[0]?.textContent?.trim(),X=Array.from(H.getElementsByTagNameNS("*","creator")).map(fe=>fe.textContent?.trim()).filter(Boolean).join(", "),ge=new Map;for(const fe of Array.from(H.getElementsByTagNameNS("*","item"))){const Ae=fe.getAttribute("id"),O=fe.getAttribute("href");Ae&&O&&ge.set(Ae,{path:o$(pe,O),type:fe.getAttribute("media-type")||""})}const se=Array.from(H.getElementsByTagNameNS("*","meta")).find(fe=>fe.getAttribute("name")==="cover")?.getAttribute("content"),me=se?ge.get(se):void 0,J=me?ne(me.path,me.type):void 0,be=[];for(const fe of Array.from(H.getElementsByTagNameNS("*","itemref"))){const Ae=ge.get(fe.getAttribute("idref")||"");if(!Ae||!/html/.test(Ae.type)||!p[Ae.path])continue;const O=Gp(Ae.path),le=new DOMParser().parseFromString(Ff(p[Ae.path]),"text/html").body;if(le){le.querySelectorAll("script, style, link").forEach(w=>w.remove());for(const w of Array.from(le.querySelectorAll("img"))){const Se=w.getAttribute("src"),N=Se?ne(o$(O,Se)):"";N?w.setAttribute("src",N):w.removeAttribute("src")}for(const w of Array.from(le.querySelectorAll("image"))){const Se=w.getAttributeNS(Wp,"href")||w.getAttribute("href")||w.getAttribute("xlink:href"),N=Se?ne(o$(O,Se)):"";N&&w.setAttributeNS(Wp,"xlink:href",N)}be.push(`<section class="epub-doc">${le.innerHTML}</section>`)}}if(s){c.forEach(URL.revokeObjectURL);return}r({title:W,author:X||void 0,cover:J,html:be.join(`
|
|
610
|
-
`)})}).catch(f=>!s&&i(String(f.message||f))),()=>{s=!0,c.forEach(URL.revokeObjectURL)}},[e.path]),n?Fe.jsxs("div",{className:"error",children:["epub: ",n]}):t?Fe.jsxs("div",{className:"text epub",children:[t.cover&&Fe.jsx("img",{className:"fb2-cover",src:t.cover,alt:""}),t.title&&Fe.jsx("h1",{className:"chapter-title",children:t.title}),t.author&&Fe.jsx("p",{className:"chapter-subtitle",children:t.author}),Fe.jsx("div",{className:"markup epub-body",dangerouslySetInnerHTML:{__html:t.html}})]}):Fe.jsx("div",{className:"loading",children:"unpacking EPUB…"})}function Xp({node:e}){return Fe.jsx("iframe",{className:"filehtml",src:ds(e.path),sandbox:"allow-same-origin",title:e.title??Vl(e.path)})}const Qp=gt.lazy(()=>In(()=>import("./pdf-BpkDRVTL.js"),__vite__mapDeps([0,1,2])).then(e=>({default:e.PdfView}))),Zp=gt.lazy(()=>In(()=>import("./djvu-Dex1F0s7.js"),__vite__mapDeps([3,1])).then(e=>({default:e.DjvuView}))),Jp=gt.lazy(()=>In(()=>import("./psd-DC6nmZST.js"),__vite__mapDeps([4,5,6,7,8])).then(e=>({default:e.PsdView}))),Op=gt.lazy(()=>In(()=>import("./tiff-CBO4Dy15.js"),__vite__mapDeps([9,10,5,6,7,8])).then(e=>({default:e.TiffView}))),e_=gt.lazy(()=>In(()=>import("./heic-DqYoM-Wf.js"),__vite__mapDeps([11,5,6,7,8])).then(e=>({default:e.HeicView}))),D7=gt.lazy(()=>In(()=>import("./docx-DJzgnQG5.js"),__vite__mapDeps([12,10])).then(e=>({default:e.DocxView}))),L7=gt.lazy(()=>In(()=>import("./docx-DJzgnQG5.js"),__vite__mapDeps([12,10])).then(e=>({default:e.DocxChunk}))),F7=gt.lazy(()=>In(()=>import("./spreadsheet-DIfzBeGR.js"),[]).then(e=>({default:e.SpreadsheetView}))),B7=gt.lazy(()=>In(()=>import("./spreadsheet-DIfzBeGR.js"),[]).then(e=>({default:e.SpreadsheetChunk}))),P7=gt.lazy(()=>In(()=>import("./map-BmG6sq1M.js"),__vite__mapDeps([13,7,8])).then(e=>({default:e.MapView}))),j7=gt.lazy(()=>In(()=>import("./map-BmG6sq1M.js"),__vite__mapDeps([13,7,8])).then(e=>({default:e.MapChunk}))),U7=gt.lazy(()=>In(()=>import("./imagemap-DaET_nLG.js"),__vite__mapDeps([6,7,8])).then(e=>({default:e.ImageView}))),H7=gt.lazy(()=>In(()=>import("./imagemap-DaET_nLG.js"),__vite__mapDeps([6,7,8])).then(e=>({default:e.ImageChunk}))),Fr=e=>Fe.jsx(gt.Suspense,{fallback:Fe.jsx("div",{className:"loading",children:"…"}),children:e}),Bi=e=>({path:e.path,type:e.type,format:e.format,concrete:null,title:null,description:null,value:e.value}),V7=e=>({valueType:e.valueType??null,format:e.format??null,hasKeyed:!!e.hasKeyed,hasOrdinal:!!e.hasOrdinal}),_r=(...e)=>t=>t.format!==null&&e.includes(t.format),il=(e,t,r)=>({name:e,label:t,accepts:_r("x-yamlover-tag","x-yamlover-board"),specificity:2,render:(n,i)=>Fe.jsx(N7,{node:n,view:r,onNavigate:i})}),dv=il("tag-board","tag board","board"),Pf=[il("large-icons","large icons","large"),il("thumbnails","thumbnails","thumbnails"),il("small-icons","small icons","small"),il("details","details","details")],fa=Pf[0],hv=e=>e==="dir"||e==="yamlover",Y7=[{name:"chapter",accepts:_r("x-yamlover-chapter"),specificity:2,depth:2,tocView:t_,render:(e,t)=>Fe.jsx(x1,{node:e,onNavigate:t})},{name:"task",accepts:_r("x-yamlover-task"),specificity:2,depth:2,tocView:t_,render:(e,t)=>Fe.jsx(G4,{node:e,onNavigate:t})},{name:"marklower",accepts:e=>e.format==="text/marklower"||e.format===null&&e.valueType==="string",specificity:1,render:(e,t)=>Fe.jsx(G5,{node:e,onNavigate:t}),renderChunk:(e,t)=>Fe.jsx(K5,{chunk:e,onNavigate:t})},{name:"markdown",accepts:_r("text/markdown"),specificity:2,render:e=>Fe.jsx(Pb,{node:e}),renderChunk:e=>Fe.jsx(jb,{chunk:e}),config:e=>Fe.jsx(Qh,{rerender:e})},{name:"asciidoc",accepts:_r("text/asciidoc"),specificity:2,render:e=>Fe.jsx(Z5,{node:e}),renderChunk:e=>Fe.jsx(J5,{chunk:e}),config:e=>Fe.jsx(Qh,{rerender:e})},{name:"csv",accepts:_r("text/csv","text/tab-separated-values"),specificity:2,render:e=>Fe.jsx(t6,{node:e}),renderChunk:e=>Fe.jsx(n6,{chunk:e}),config:e=>Fe.jsx(r6,{rerender:e})},{name:"plaintext",accepts:_r("text/plain"),specificity:2,render:e=>Fe.jsx(s6,{node:e}),renderChunk:e=>Fe.jsx(a6,{chunk:e}),config:e=>Fe.jsx(l6,{rerender:e})},{name:"rtf",accepts:_r("application/rtf"),specificity:2,render:e=>Fe.jsx(d6,{node:e}),renderChunk:e=>Fe.jsx(h6,{chunk:e})},{name:"docx",accepts:_r("application/vnd.openxmlformats-officedocument.wordprocessingml.document"),specificity:2,render:e=>Fr(Fe.jsx(D7,{node:e})),renderChunk:e=>Fr(Fe.jsx(L7,{chunk:e}))},{name:"spreadsheet",accepts:_r("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel"),specificity:2,render:e=>Fr(Fe.jsx(F7,{node:e})),renderChunk:e=>Fr(Fe.jsx(B7,{chunk:e}))},{name:"doc",accepts:_r("application/msword"),specificity:2,render:e=>Fe.jsx(p6,{node:e}),renderChunk:e=>Fe.jsx(_6,{chunk:e})},{name:"map",accepts:_r("application/vnd.google-earth.kml+xml","application/vnd.google-earth.kmz"),specificity:2,render:e=>Fr(Fe.jsx(P7,{node:e})),renderChunk:e=>Fr(Fe.jsx(j7,{chunk:e}))},{name:"latex",accepts:_r("text/x-latex"),specificity:2,render:e=>Fe.jsx(P5,{node:e}),renderChunk:e=>Fe.jsx(j5,{chunk:e})},{name:"plantuml",accepts:_r("text/x-plantuml"),specificity:2,render:e=>Fe.jsx(B6,{node:e}),renderChunk:e=>Fe.jsx(P6,{chunk:e})},fa,{name:"image",accepts:_r("image/png","image/jpeg","image/gif","image/webp","image/avif","image/bmp","image/x-icon","image/svg+xml"),specificity:2,render:e=>Fr(Fe.jsx(U7,{node:e})),renderChunk:e=>Fr(Fe.jsx(H7,{chunk:e}))},{name:"html",accepts:_r("text/html"),specificity:2,render:e=>Fe.jsx(Xp,{node:e}),renderChunk:e=>Fe.jsx(Xp,{node:Bi(e)})},{name:"fb2",accepts:_r("application/x-fictionbook+xml"),specificity:2,render:e=>Fe.jsx(Yp,{node:e}),renderChunk:e=>Fe.jsx(Yp,{node:Bi(e)})},{name:"epub",accepts:_r("application/epub+zip"),specificity:2,render:e=>Fe.jsx(Kp,{node:e}),renderChunk:e=>Fe.jsx(Kp,{node:Bi(e)})},{name:"pdf",accepts:_r("application/pdf"),specificity:2,render:e=>Fr(Fe.jsx(Qp,{node:e})),renderChunk:e=>Fr(Fe.jsx(Qp,{node:Bi(e)}))},{name:"djvu",accepts:_r("image/vnd.djvu"),specificity:2,render:e=>Fr(Fe.jsx(Zp,{node:e})),renderChunk:e=>Fr(Fe.jsx(Zp,{node:Bi(e)}))},{name:"psd",accepts:_r("image/vnd.adobe.photoshop"),specificity:2,render:e=>Fr(Fe.jsx(Jp,{node:e})),renderChunk:e=>Fr(Fe.jsx(Jp,{node:Bi(e)}))},{name:"tiff",accepts:_r("image/tiff"),specificity:2,render:e=>Fr(Fe.jsx(Op,{node:e})),renderChunk:e=>Fr(Fe.jsx(Op,{node:Bi(e)}))},{name:"heic",accepts:_r("image/heic"),specificity:2,render:e=>Fr(Fe.jsx(e_,{node:e})),renderChunk:e=>Fr(Fe.jsx(e_,{node:Bi(e)}))}];function W7(e){const t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function t_(e){const t=e.children.find(r=>W7(r.path)==="children");return t?{children:t.children,expandable:t.hasChildren,loaded:t.children.length>0||!t.hasChildren,loadDepth:3}:{children:[],expandable:e.hasChildren,loaded:e.children.length>0,loadDepth:3}}function oc(e){const t=V7(e);let r=null;for(const n of Y7)n.accepts(t)&&(r===null||n.specificity>r.specificity)&&(r=n);return r}function G7(e){return $7(e)?[dv,...Pf]:Pf}function u$(e){const t=[],r=oc(e);return r&&r!==fa&&t.push(r),(r===fa||hv(e.concrete))&&t.push(...G7(e)),t}function c$(e,t){const r=oc(e);return r&&r!==fa?r.name:r===fa||hv(t)?e.format==="x-yamlover-board"?dv.name:fa.name:null}function pv(e){const t=oc(e);if(t?.tocView)return t.tocView(e);const r=e.children.length>0;return{children:e.children,expandable:r?e.children.length>0:e.hasChildren,loaded:r}}const K7=gt.memo(function e({node:t,current:r,onSelect:n,onLoadChildren:i,depth:s=0}){const{children:c,expandable:f,loaded:p,loadDepth:h}=pv(t),[I,F]=gt.useState(c.length>0),[H,pe]=gt.useState(!1),xe=t.path===r,ne=Do(t.path,r),W=gt.useRef(null);gt.useEffect(()=>{ne&&F(!0)},[ne]),gt.useEffect(()=>{xe&&W.current?.scrollIntoView?.({block:"nearest",inline:"nearest"})},[xe]);const X=vu(t.type,t.format,t.concrete),ge=I&&X.glyph==="📁"?"📂":X.glyph,se=async()=>{if(!I&&f&&!p){pe(!0);try{await i(t.path,h)}finally{pe(!1)}}F(me=>!me)};return Fe.jsxs("div",{className:"tree-branch",children:[Fe.jsxs("div",{ref:W,className:"tree-row"+(xe?" selected":""),style:{paddingLeft:s*14+4},children:[f?Fe.jsx("button",{className:"toggle"+(I?" open":"")+(H?" loading":""),onClick:se,"aria-label":I?"collapse":"expand",children:Fe.jsx("span",{className:"chevron",children:"›"})}):Fe.jsx("span",{className:"toggle leaf"}),Fe.jsx("span",{className:"icon "+X.cls,title:X.title,children:ge}),Fe.jsx("span",{className:"tree-label",onClick:()=>n(t.path),title:`${Vl(t.path)} (${t.type})`,children:t.label})]}),I&&c.map(me=>Fe.jsx(e,{node:me,current:r,onSelect:n,onLoadChildren:i,depth:s+1},me.path))]})});function X7({tasks:e}){return e.length?Fe.jsx("div",{className:"task-strip",children:e.map(t=>{const{done:r,total:n,message:i}=t.progress,s=t.state==="done"?100:n?Math.min(100,Math.floor(r/n*100)):null,c=n?`${r}/${n}`:t.state==="running"&&r>0?String(r):"";return Fe.jsxs("span",{className:`task-chip ${t.state}`,title:t.error??i??t.label,children:[Fe.jsxs("span",{className:"task-label",children:[t.label,c&&Fe.jsxs("span",{className:"task-counts",children:[" ",c]}),t.state==="error"&&" — failed"]}),Fe.jsx("span",{className:"task-bar",children:s!==null?Fe.jsx("span",{className:"task-bar-fill",style:{width:`${s}%`}}):Fe.jsx("span",{className:"task-bar-fill indeterminate"})})]},t.id)})}):null}function Q7(e){const t=/^(?:https?:\/\/)?(?:www\.)?arxiv\.org\/(?:abs|pdf|html)\/(.+?)(?:\.pdf)?(?:[?#][^\s]*)?$/i.exec(e.trim());if(!t)return null;const r=t[1];return/^(?:\d{4}\.\d{4,5}|[a-z-]+(?:\.[A-Z]{2})?\/\d{7})(?:v\d+)?$/.test(r)?{url:`https://arxiv.org/pdf/${r}`,name:`arxiv-${r.replace(/\//g,"-")}.pdf`}:null}function Z7(e){const t=/^(?:https?:\/\/)?(?:www\.|mobile\.)?(?:x\.com|twitter\.com)\/(\w{1,15})\/status(?:es)?\/(\d+)(?:[/?#][^\s]*)?$/i.exec(e.trim());return t?`https://twitter.com/${t[1]}/status/${t[2]}`:null}async function J7(e){const t=await fetch(`https://publish.x.com/oembed?url=${encodeURIComponent(e)}&omit_script=true&dnt=true`);if(!t.ok)throw new Error(`oEmbed HTTP ${t.status}`);const r=await t.json(),i=new DOMParser().parseFromString((r.html??"").replace(/<br\s*\/?>/gi,`
|
|
611
|
-
`),"text/html").querySelector("blockquote"),s=i?.querySelector("p")?.textContent?.trim();if(!s)throw new Error("no tweet text in the oEmbed payload");const c=(r.author_url??"").split("/").filter(Boolean).pop(),f=i?Array.from(i.querySelectorAll(":scope > a")):[],p=f[f.length-1]?.textContent?.trim(),h=[r.author_name,c&&`@${c}`].filter(Boolean).join(" "),I=[h&&`— ${h}`,p].filter(Boolean).join(", ");return[s,"",[I,r.url??e].filter(Boolean).join(`
|
|
612
|
-
`)].join(`
|
|
613
|
-
`)}const _v=new Set(["script","style","noscript","template","iframe","svg","head","title"]),O7=new Set(["p","div","section","article","main","aside","header","footer","figure","figcaption","ul","ol","table","thead","tbody","tr","dl","dt","dd","nav","form","body","html"]);function e8(e){const t=new DOMParser().parseFromString(e,"text/html"),r=n8(t8(t.body));if(!r.some(s=>s.kind!=="text"))return null;const n={chunks:[],children:[]},i=[{node:n,level:0}];for(const s of r)if(s.kind==="heading"){for(;i.length>1&&i[i.length-1].level>=s.level;)i.pop();const c={title:s.text||"Untitled",chunks:[],children:[]};i[i.length-1].node.children.push(c),i.push({node:c,level:s.level})}else i[i.length-1].node.chunks.push(s.kind==="image"?{image:{url:s.url,alt:s.alt}}:{text:s.text});return n}function t8(e){const t=[];let r="";const n=()=>{const s=r.replace(/[ \t]+/g," ").replace(/ ?\n ?/g,`
|
|
614
|
-
`).replace(/\n{2,}/g,`
|
|
615
|
-
`).trim();r="",s&&t.push({kind:"text",text:s})},i=s=>{if(s.nodeType===Node.TEXT_NODE){r+=s.textContent??"";return}if(!(s instanceof Element))return;const c=s.tagName.toLowerCase();if(!_v.has(c)){if(/^h[1-6]$/.test(c)){n(),t.push({kind:"heading",level:Number(c[1]),text:(s.textContent??"").replace(/\[edit\]/gi,"").trim()});return}if(c==="img"){n();const f=r8(s);f&&t.push({kind:"image",url:f,alt:s.getAttribute("alt")??""});return}if(c==="li"){n(),s.childNodes.forEach(i);const f=r.replace(/\s+/g," ").trim();r="",f&&t.push({kind:"text",text:"- "+f});return}if(c==="pre"){n();const f=(s.textContent??"").replace(/\n+$/,"");f.trim()&&t.push({kind:"text",text:"```\n"+f+"\n```"});return}if(c==="blockquote"){n(),s.childNodes.forEach(i);const f=r.trim();r="",f&&t.push({kind:"text",text:f.split(`
|
|
616
|
-
`).map(p=>"> "+p).join(`
|
|
617
|
-
`)});return}if(c==="br"){r+=`
|
|
618
|
-
`;return}if(c==="td"||c==="th"){s.childNodes.forEach(i),r+=" ";return}if(O7.has(c)){n(),s.childNodes.forEach(i),n();return}if(!s.querySelector("img")){r+=mv(s);return}s.childNodes.forEach(i)}};return i(e),n(),t}function mv(e){if(e.nodeType===Node.TEXT_NODE)return e.textContent??"";if(!(e instanceof Element))return"";const t=e.tagName.toLowerCase();if(_v.has(t))return"";if(t==="br")return`
|
|
619
|
-
`;const r=Array.from(e.childNodes).map(mv).join("");if(t==="a"){const n=e.getAttribute("href")??"",i=r.trim();return/^https?:\/\//.test(n)&&i?`[${i}](${n})`:r}return t==="strong"||t==="b"?r.trim()?`**${r.trim()}**`:"":t==="em"||t==="i"?r.trim()?`*${r.trim()}*`:"":t==="code"?r.trim()?"`"+r.trim()+"`":"":r}function r8(e){const t=e.getAttribute("src")||e.getAttribute("data-src")||"";return t.startsWith("//")?"https:"+t:/^https?:\/\//.test(t)||t.startsWith("data:image/")?t:null}function n8(e){const t=[];for(const r of e){const n=t[t.length-1];r.kind==="text"&&r.text.startsWith("- ")&&n?.kind==="text"&&n.text.startsWith("- ")?n.text+=`
|
|
620
|
-
`+r.text:t.push(r)}return t}const i8={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","image/avif":"avif"};async function gv(e){return{title:e.title,chunks:await Promise.all(e.chunks.map(async t=>{if("text"in t)return{text:t.text};try{const r=await fetch(t.image.url);if(!r.ok)throw new Error(`HTTP ${r.status}`);const n=await r.blob();return{file:{name:s8(t.image.url,n.type),contentBase64:await a8(n)}}}catch{return{text:``}}})),children:await Promise.all(e.children.map(gv))}}function s8(e,t){let r="";try{r=decodeURIComponent(new URL(e).pathname.split("/").pop()??"")}catch{}return(!r||e.startsWith("data:"))&&(r="image"),/\.[A-Za-z0-9]{2,5}$/.test(r)||(r+="."+(i8[t]||"bin")),r}function a8(e){return new Promise((t,r)=>{const n=new FileReader;n.onload=()=>t(String(n.result).split(",")[1]||""),n.onerror=()=>r(new Error("could not read image")),n.readAsDataURL(e)})}function vv(e){return e.chunks.filter(t=>"image"in t).length+e.children.reduce((t,r)=>t+vv(r),0)}const yv=2,jf=1,Uf=10,bv=()=>new URLSearchParams(window.location.search);function Hf(){const e=Number(bv().get("depth"));return Number.isInteger(e)&&e>=jf&&e<=Uf?e:yv}function l8(e){const t=bv();e===yv?t.delete("depth"):t.set("depth",String(e));const r=t.toString();window.history.replaceState({},"",window.location.pathname+(r?"?"+r:""))}function o8({onChange:e}){const t=Hf(),[r,n]=gt.useState(String(t));gt.useEffect(()=>n(String(t)),[t]);const i=Number(r),s=r.trim()!==""&&Number.isInteger(i)&&i>=jf&&i<=Uf;return Fe.jsx("input",{className:"depth-control"+(s?"":" invalid"),type:"text",inputMode:"numeric",title:"depth",value:r,onChange:c=>{const f=c.target.value;n(f);const p=Number(f);f.trim()!==""&&Number.isInteger(p)&&p>=jf&&p<=Uf&&(l8(p),e())}})}const u8=new Set(["chapter","markdown","asciidoc","marklower"]),c8=["yamlover","json5p","yamlover/schema"],sl="yamlover",$8=new Set(["json","json5","json5p"]),xv=e=>$8.has(e??""),$$=e=>e.endsWith("schema"),r_=e=>e==="json5p"?"json":"yaml";function f$(e){return xv(e.concrete)?["yamlover","json5p","yamlover/schema"]:["yamlover","yamlover/schema"]}function d$(e,t,r){return r.includes(e)||t.some(n=>n.name===e)?e:t[0]?t[0].name:sl}function f8(e){const t=Wr(e),r=t[t.length-1];return r===void 0?"":typeof r=="number"?`[${r}]`:r}const d8={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","application/pdf":"pdf"};function h8(e){const t=e.clipboardData;if(!t)return[];if(t.files&&t.files.length)return Array.from(t.files);const r=[];for(const n of Array.from(t.items||[]))if(n.kind==="file"){const i=n.getAsFile();i&&r.push(i)}return r}function p8(e){return e.name?e.name:`pasted.${d8[e.type]||"bin"}`}function _8(e){return new Promise((t,r)=>{const n=new FileReader;n.onload=()=>t(String(n.result).split(",")[1]||""),n.onerror=()=>r(new Error("could not read file")),n.readAsDataURL(e)})}const m8=gt.memo(function({path:t,format:r,refreshSignal:n=0,onFormat:i,onNavigate:s,onContentChanged:c,onOpenUploaded:f}){const[p,h]=gt.useState(null),[I,F]=gt.useState(null),[H,pe]=gt.useState(null),[xe,ne]=gt.useState(null),[W,X]=gt.useState(0),[ge,se]=gt.useState(null),[me,J]=gt.useState(!1),be=gt.useRef(t),[,fe]=gt.useReducer(S=>S+1,0),Ae=uv(t);gt.useEffect(()=>{ne(null),be.current!==t&&(h(null),be.current=t);let S=!1;return En(t).then(A=>{if(S)return;const Q=u$(A),De=d$(r,Q,f$(A)),rt=Q.find(_t=>_t.name===De),ft=rt?rt.depth??1:Hf();ft>1?En(t,ft).then(_t=>!S&&h(_t)).catch(_t=>!S&&ne(_t.message)):h(A)}).catch(A=>!S&&ne(A.message)),()=>{S=!0}},[t,W,n,r]),gt.useEffect(()=>{if(!p)return;const S=A=>{const Q=A.target;if(Q&&(Q.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(Q.tagName)))return;const De=h8(A);if(De.length>0){A.preventDefault(),O(De);return}const rt=A.clipboardData?.getData("text/html")??"",ft=rt?e8(rt):null;if(ft){A.preventDefault(),le(ft);return}const _t=A.clipboardData?.getData("text/plain")??"";if(!_t.trim())return;A.preventDefault();const At=Q7(_t);if(At){Ee(At);return}const bt=Z7(_t);if(bt){w(bt);return}Se(_t)};return document.addEventListener("paste",S),()=>document.removeEventListener("paste",S)},[p,t]),gt.useEffect(()=>{if(!p)return;const S=_t=>Array.from(_t.dataTransfer?.types||[]).includes("Files");let A=0;const Q=_t=>{S(_t)&&(_t.preventDefault(),A++,J(!0))},De=_t=>{S(_t)&&(_t.preventDefault(),_t.dataTransfer&&(_t.dataTransfer.dropEffect="copy"))},rt=()=>{A=Math.max(0,A-1),A===0&&J(!1)},ft=_t=>{if(!S(_t))return;_t.preventDefault(),A=0,J(!1);const At=Array.from(_t.dataTransfer?.files||[]);At.length&&O(At)};return document.addEventListener("dragenter",Q),document.addEventListener("dragover",De),document.addEventListener("dragleave",rt),document.addEventListener("drop",ft),()=>{document.removeEventListener("dragenter",Q),document.removeEventListener("dragover",De),document.removeEventListener("dragleave",rt),document.removeEventListener("drop",ft)}},[p,t]);const O=async S=>{try{se(`uploading ${S.length} file${S.length>1?"s":""}…`);let A=null;for(const Q of S){const De=await _8(Q);A=await a4(t,p8(Q),De)}se(S.length>1?`uploaded ${S.length} files`:"uploaded"),window.setTimeout(()=>se(null),1500),A?.open?f?.(A):(X(Q=>Q+1),c?.(t))}catch(A){se("paste failed: "+A.message),window.setTimeout(()=>se(null),4e3)}},Ee=async({url:S,name:A})=>{try{se(`downloading ${A}…`);const Q=await fetch(S);if(!Q.ok)throw new Error(`HTTP ${Q.status} fetching ${S}`);const De=await Q.blob();await O([new File([De],A,{type:"application/pdf"})])}catch(Q){se("download failed: "+Q.message),window.setTimeout(()=>se(null),4e3)}},le=async S=>{try{const A=vv(S);A&&se(`downloading ${A} image${A>1?"s":""}…`);const Q=await gv(S);se("pasting…");const De=await o4(t,Q);se(De.chapter?"chunks added":"chapter created"),window.setTimeout(()=>se(null),1500),De.open?f?.(De):(X(rt=>rt+1),c?.(t))}catch(A){se("paste failed: "+A.message),window.setTimeout(()=>se(null),4e3)}},w=async S=>{try{se("fetching tweet…"),await Se(await J7(S))}catch(A){se("tweet fetch failed: "+A.message),window.setTimeout(()=>se(null),4e3)}},Se=async S=>{try{se("pasting text…");const A=await l4(t,S);se(A.chapter?"chunk added":"chapter created"),window.setTimeout(()=>se(null),1500),A.open?f?.(A):(X(Q=>Q+1),c?.(t))}catch(A){se("paste failed: "+A.message),window.setTimeout(()=>se(null),4e3)}};if(gt.useEffect(()=>{p&&(document.title=p.title?.trim()||f8(t)||"yamlover")},[p,t]),gt.useEffect(()=>{if(F(null),pe(null),!p)return;const S=u$(p),A=d$(r,S,f$(p));S.some(Q=>Q.name===A)||($$(A)?e4(t,Hf()).then(F).catch(Q=>ne(Q.message)):p.type==="binary"&&En(t,void 0,{binary:!0}).then(Q=>pe(Q.value)).catch(Q=>ne(Q.message)))},[r,t,p]),xe)return Fe.jsx("div",{className:"error",children:xe});if(!p)return Fe.jsx("div",{className:"loading",children:"…"});const N=u$(p),re=f$(p),P=[...N.map(S=>S.name),...re],Me=d$(r,N,re),ce=S=>N.find(A=>A.name===S)?.label??S,M=N.find(S=>S.name===Me)??null,x=M!=null;let $,l;x?($=p.value,l=!0):$$(Me)?($=I,l=I!=null):p.type==="binary"?($=H,l=H!=null):($=p.value,l=!0);const{tags:u,rest:d}=P4(p.relations),_=[...u];for(const S of Ae)S.tag&&!_.some(A=>A.path===S.tag.path)&&_.push({path:S.tag.path,label:S.tag.name,color:S.tag.color});return Fe.jsxs("div",{className:"nodeview",children:[ge&&Fe.jsx("div",{className:"paste-toast",children:ge}),me&&Fe.jsx("div",{className:"drop-overlay",children:"Drop file to upload"}),Fe.jsxs("div",{className:"nodehead",children:[Fe.jsxs("div",{className:"nodemeta",children:[Fe.jsx("span",{className:"tag",children:p.type}),p.concrete&&Fe.jsx("span",{className:"tag dim",children:p.concrete}),Fe.jsx(U4,{tags:_,onNavigate:s})]}),Fe.jsx("span",{className:"bar-sep","aria-hidden":"true",children:"|"}),Fe.jsxs("div",{className:"tabs",children:[P.map(S=>Fe.jsxs(gt.Fragment,{children:[Fe.jsx("button",{className:"tab"+(Me===S?" active":""),onClick:()=>i(S),children:ce(S)}),x&&M&&S===M.name&&M.config?.(fe,p)]},S)),!x&&Fe.jsx(o8,{onChange:()=>X(S=>S+1)})]})]}),!x&&p.description&&Fe.jsx("p",{className:"nodedesc",children:p.description}),x?u8.has(M.name)?Fe.jsx(i7,{path:t,children:M.render(p,s)}):M.render(p,s):Fe.jsxs("pre",{className:"code",children:[!$$(Me)&&Object.keys(d).length>0&&Fe.jsxs(Fe.Fragment,{children:[Fe.jsx(Ph,{value:d,syntax:r_(Me),onNavigate:s}),Fe.jsx("hr",{className:"reldiv"})]}),l?Fe.jsx(Ph,{value:$,syntax:r_(Me),onNavigate:s}):"…"]})]})}),g8=e=>c8.includes(e),v8=(e,t)=>g8(e)&&(e!=="json5p"||xv(t)),Za=1;function Vf(e,t,r){return e.path===t?{...e,children:r}:e.children.length?{...e,children:e.children.map(n=>Vf(n,t,r))}:e}function wv(e,t){if(!e)return t;const r=new Map(e.children.map(i=>[i.path,i])),n=t.children.length?t.children.map(i=>wv(r.get(i.path),i)):t.hasChildren?e.children:[];return{...t,children:n}}function kv(e,t,r){return e.path===t?wv(e,r):e.children.length?{...e,children:e.children.map(n=>kv(n,t,r))}:e}function ia(e,t){if(e.path===t)return e;for(const r of e.children){const n=ia(r,t);if(n)return n}return null}function y8(e,t){const r=Wr(t);for(let n=0;n<r.length;n++){const i=ti(r.slice(0,n)),s=ia(e,i);if(!s)return null;if(s.hasChildren&&s.children.length===0)return i}return null}function b8(e){if(!e)return[];const t=[],r=n=>{t.push(n.path);for(const i of pv(n).children)r(i)};return r(e),t}function x8(){const[e,t]=gt.useState(null),[r,n]=gt.useState(null),[i,s]=gt.useState(jh()),[c,f]=gt.useState(Uh(sl)),[p,h]=gt.useState(""),[I,F]=gt.useState("idle"),[H,pe]=gt.useState(320),xe=gt.useRef(null);gt.useEffect(()=>{Lh().then(M=>h(M.root)).catch(()=>{})},[]);const[ne,W]=gt.useState([]);gt.useEffect(()=>{Jy().then(W).catch(()=>{})},[]);const X=gt.useCallback(M=>{W(x=>[...x.filter($=>$.id!==M.id),M].sort(($,l)=>$.startedAt-l.startedAt)),M.state!=="running"&&setTimeout(()=>W(x=>x.filter($=>$.id!==M.id)),3e3)},[]),ge=gt.useRef(new URLSearchParams(window.location.search).has("format"));gt.useEffect(()=>{Wa(i,c,!0)},[]),gt.useEffect(()=>{Ya(":",Za).then(t).catch(M=>n(M.message))},[]);const se=gt.useRef(!1);gt.useEffect(()=>{if(ge.current||se.current||!e)return;const M=ia(e,i);if(!M)return;se.current=!0;const x=c$(M,M.concrete);x&&(f(x),Wa(i,x,!0))},[e,i]);const me=gt.useCallback(async(M,x=Za)=>{const $=await Ya(M,x);t(l=>l&&Vf(l,M,$.children))},[]);gt.useEffect(()=>{if(!e)return;const M=y8(e,i);M&&me(M).catch(()=>{})},[e,i,me]);const J=gt.useRef(e);J.current=e;const be=gt.useRef(i);be.current=i;const[fe,Ae]=gt.useState(0),O=gt.useCallback(async M=>{const x=J.current;if(!x)return;const $=new Set;for(const u of M){const d=Wr(u);let _=":";for(let S=0;S<d.length;S++){const A=ti(d.slice(0,S)),Q=ia(x,A);if(!Q)break;(A===":"||Q.children.length>0)&&(_=A)}$.add(_)}const l=[...$].filter(u=>![...$].some(d=>d!==u&&Do(d,u)));await Promise.all(l.map(async u=>{const d=await Ya(u,Za);t(_=>_&&kv(_,u,d))}))},[]),Ee=gt.useCallback(()=>{J.current||(Ya(":",Za).then(M=>{t(M),n(null)}).catch(()=>{}),Lh().then(M=>h(M.root)).catch(()=>{}))},[]);gt.useEffect(()=>{if(typeof EventSource>"u")return;const M=new EventSource("/api/events");return M.onmessage=x=>{try{const $=JSON.parse(x.data);if($.type==="task"){const _=$.task;X(_),_.state==="done"&&Ee();return}const l=$;Ee();const u=[...l.added,...l.changed,...l.removed,...(l.moved??[]).flatMap(_=>[_.from,_.to])];if(!u.length)return;F4({paths:u,removed:l.removed}),O(u).catch(()=>{});const d=be.current;u.some(_=>_===d||Do(_,d)||Do(d,_))&&Ae(_=>_+1)}catch{}},()=>M.close()},[O,X,Ee]),gt.useEffect(()=>{const M=()=>{s(jh()),f(Uh(sl))};return window.addEventListener("popstate",M),()=>window.removeEventListener("popstate",M)},[]);const le=gt.useCallback(M=>{const x=e?ia(e,M):null;let $=c;x&&($=c$(x,x.concrete)??(v8(c,x.concrete)?c:sl)),Wa(M,$,!1),s(M),$!==c&&f($)},[c,e]),w=gt.useCallback(M=>{le(M),xe.current?.focus()},[le]),Se=gt.useRef(le);Se.current=le,gt.useEffect(()=>{const M=x=>{if(!(x.ctrlKey||x.altKey)||x.key!=="ArrowDown"&&x.key!=="ArrowUp")return;const $=x.target;if($&&($.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test($.tagName)))return;const l=b8(J.current),u=l.indexOf(be.current);if(u<0)return;const d=Math.min(Math.max(u+(x.key==="ArrowDown"?1:-1),0),l.length-1);x.preventDefault(),d!==u&&Se.current(l[d])};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},[]);const N=gt.useCallback(M=>{Wa(i,M,!0),f(M)},[i]),re=gt.useCallback(M=>{const x=e?ia(e,M):null;me(x?M:":").catch(()=>{})},[e,me]),P=gt.useCallback(async M=>{const x=M.dir??":";try{const $=await Ya(x,Za);t(d=>d&&Vf(d,x,$.children));const l=$.children.find(d=>d.path===M.path),u=(l?c$(l,l.concrete):null)??sl;Wa(M.path,u,!1),s(M.path),f(u)}catch{le(M.path)}},[le]),Me=gt.useRef(!1);gt.useEffect(()=>{const M=$=>{Me.current&&pe(Math.min(Math.max($.clientX,160),window.innerWidth-240))},x=()=>{Me.current=!1,document.body.style.userSelect=""};return window.addEventListener("mousemove",M),window.addEventListener("mouseup",x),()=>{window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",x)}},[]);const ce=gt.useCallback(async()=>{if(I!=="busy"){F("busy");try{let{files:M}=await Fh();if(M.every($=>$.status==="exists")){const $=M.map(l=>l.name).join(" and ");window.confirm(`${$} already exist in this project. Overwrite with the bundled version?`)&&(M=(await Fh(!0)).files)}const x=M.filter($=>$.status!=="exists").map($=>$.name);n(null),x.length&&window.alert(`Installed agent guide: ${x.join(", ")}.`)}catch(M){n(`agent docs: ${M.message}`)}finally{F("idle")}}},[I]);return Fe.jsxs("div",{className:"app",children:[Fe.jsxs("header",{className:"topbar",children:[Fe.jsxs("nav",{className:"crumbs",children:[Fe.jsx("button",{type:"button",className:"crumb-action",disabled:I==="busy",title:"Install the LLM agent guide (AGENTS.md + CLAUDE.md) into this project","aria-label":"Install LLM agent guide",onClick:ce,children:"🤖"}),N4(i,p).map((M,x)=>Fe.jsxs("span",{children:[x>0&&Fe.jsx("span",{className:"crumb-sep",children:":"}),Fe.jsx("a",{className:"crumb",href:M.path,onClick:$=>{$.preventDefault(),le(M.path)},children:M.label})]},M.path))]}),Fe.jsx(X7,{tasks:ne})]}),Fe.jsxs("div",{className:"body",children:[Fe.jsx("aside",{className:"pane left",style:{width:H},children:(()=>{const M=e?void 0:ne.find(x=>x.state==="running");if(M){const{done:x,total:$}=M.progress;return Fe.jsxs("div",{className:"loading",children:[M.label,"… ",$?`${x}/${$}`:""]})}return r?Fe.jsx("div",{className:"error",children:r}):e?Fe.jsx(K7,{node:e,current:i,onSelect:w,onLoadChildren:me}):Fe.jsx("div",{className:"loading",children:"loading…"})})()}),Fe.jsx("div",{className:"splitter",onMouseDown:()=>{Me.current=!0,document.body.style.userSelect="none"}}),Fe.jsx("main",{className:"pane right",ref:xe,tabIndex:-1,children:(()=>{const M=e?void 0:ne.find(x=>x.state==="running");if(M){const{done:x,total:$}=M.progress;return Fe.jsxs("div",{className:"loading",children:[M.label,"… ",$?`${x}/${$}`:""]})}return Fe.jsx(m8,{path:i,format:c,refreshSignal:fe,onFormat:N,onNavigate:le,onContentChanged:re,onOpenUploaded:P})})()})]})]})}_1(document.getElementById("root")).render(Fe.jsx(jv.StrictMode,{children:Fe.jsx(x8,{})}));export{V6 as D,w8 as a,ds as b,Y6 as c,n7 as d,W6 as e,t7 as f,Sv as g,Fe as j,k8 as p,gt as r,Ff as s,q6 as u,S8 as w};
|