yamlover 0.3.22 → 0.3.24

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.
@@ -0,0 +1,665 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-n0dUtCdE.js","assets/paged-BYF4Obqh.js","assets/pdf-m5e3jsV4.css","assets/djvu-CZ2rFOhT.js","assets/psd-Z9Xy8WJM.js","assets/decoded-CoBf28Qo.js","assets/imagemap-b1Kpzcjf.js","assets/openable-BA6YbLif.js","assets/openable-CIGW-MKW.css","assets/tiff-BU7hwL9b.js","assets/_commonjs-dynamic-modules-TDtrdbi3.js","assets/heic-V9_YmnBI.js","assets/docx-D39uvoU4.js","assets/map-CTJuSrDN.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 l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).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 S9=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var N_={exports:{}},Zu={},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 so=Symbol.for("react.element"),Bb=Symbol.for("react.portal"),Pb=Symbol.for("react.fragment"),Ub=Symbol.for("react.strict_mode"),Hb=Symbol.for("react.profiler"),Wb=Symbol.for("react.provider"),Vb=Symbol.for("react.context"),Yb=Symbol.for("react.forward_ref"),Gb=Symbol.for("react.suspense"),Kb=Symbol.for("react.memo"),Xb=Symbol.for("react.lazy"),Nh=Symbol.iterator;function Qb(e){return e===null||typeof e!="object"?null:(e=Nh&&e[Nh]||e["@@iterator"],typeof e=="function"?e:null)}var q_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M_=Object.assign,D_={};function Ya(e,t,r){this.props=e,this.context=t,this.refs=D_,this.updater=r||q_}Ya.prototype.isReactComponent={};Ya.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")};Ya.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function L_(){}L_.prototype=Ya.prototype;function D0(e,t,r){this.props=e,this.context=t,this.refs=D_,this.updater=r||q_}var L0=D0.prototype=new L_;L0.constructor=D0;M_(L0,Ya.prototype);L0.isPureReactComponent=!0;var Ih=Array.isArray,F_=Object.prototype.hasOwnProperty,F0={current:null},j_={key:!0,ref:!0,__self:!0,__source:!0};function B_(e,t,r){var n,i={},s=null,l=null;if(t!=null)for(n in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(s=""+t.key),t)F_.call(t,n)&&!j_.hasOwnProperty(n)&&(i[n]=t[n]);var f=arguments.length-2;if(f===1)i.children=r;else if(1<f){for(var h=Array(f),d=0;d<f;d++)h[d]=arguments[d+2];i.children=h}if(e&&e.defaultProps)for(n in f=e.defaultProps,f)i[n]===void 0&&(i[n]=f[n]);return{$$typeof:so,type:e,key:s,ref:l,props:i,_owner:F0.current}}function Zb(e,t){return{$$typeof:so,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function j0(e){return typeof e=="object"&&e!==null&&e.$$typeof===so}function Jb(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var qh=/\/+/g;function Xc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Jb(""+e.key):t.toString(36)}function Zo(e,t,r,n,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case so:case Bb:l=!0}}if(l)return l=e,i=i(l),e=n===""?"."+Xc(l,0):n,Ih(i)?(r="",e!=null&&(r=e.replace(qh,"$&/")+"/"),Zo(i,t,r,"",function(d){return d})):i!=null&&(j0(i)&&(i=Zb(i,r+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(qh,"$&/")+"/")+e)),t.push(i)),1;if(l=0,n=n===""?".":n+":",Ih(e))for(var f=0;f<e.length;f++){s=e[f];var h=n+Xc(s,f);l+=Zo(s,t,r,h,i)}else if(h=Qb(e),typeof h=="function")for(e=h.call(e),f=0;!(s=e.next()).done;)s=s.value,h=n+Xc(s,f++),l+=Zo(s,t,r,h,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 l}function vo(e,t,r){if(e==null)return e;var n=[],i=0;return Zo(e,n,"","",function(s){return t.call(r,s,i++)}),n}function Ob(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 dn={current:null},Jo={transition:null},e2={ReactCurrentDispatcher:dn,ReactCurrentBatchConfig:Jo,ReactCurrentOwner:F0};function P_(){throw Error("act(...) is not supported in production builds of React.")}Ot.Children={map:vo,forEach:function(e,t,r){vo(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return vo(e,function(){t++}),t},toArray:function(e){return vo(e,function(t){return t})||[]},only:function(e){if(!j0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ot.Component=Ya;Ot.Fragment=Pb;Ot.Profiler=Hb;Ot.PureComponent=D0;Ot.StrictMode=Ub;Ot.Suspense=Gb;Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e2;Ot.act=P_;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=M_({},e.props),i=e.key,s=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,l=F0.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var f=e.type.defaultProps;for(h in t)F_.call(t,h)&&!j_.hasOwnProperty(h)&&(n[h]=t[h]===void 0&&f!==void 0?f[h]:t[h])}var h=arguments.length-2;if(h===1)n.children=r;else if(1<h){f=Array(h);for(var d=0;d<h;d++)f[d]=arguments[d+2];n.children=f}return{$$typeof:so,type:e.type,key:i,ref:s,props:n,_owner:l}};Ot.createContext=function(e){return e={$$typeof:Vb,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Wb,_context:e},e.Consumer=e};Ot.createElement=B_;Ot.createFactory=function(e){var t=B_.bind(null,e);return t.type=e,t};Ot.createRef=function(){return{current:null}};Ot.forwardRef=function(e){return{$$typeof:Yb,render:e}};Ot.isValidElement=j0;Ot.lazy=function(e){return{$$typeof:Xb,_payload:{_status:-1,_result:e},_init:Ob}};Ot.memo=function(e,t){return{$$typeof:Kb,type:e,compare:t===void 0?null:t}};Ot.startTransition=function(e){var t=Jo.transition;Jo.transition={};try{e()}finally{Jo.transition=t}};Ot.unstable_act=P_;Ot.useCallback=function(e,t){return dn.current.useCallback(e,t)};Ot.useContext=function(e){return dn.current.useContext(e)};Ot.useDebugValue=function(){};Ot.useDeferredValue=function(e){return dn.current.useDeferredValue(e)};Ot.useEffect=function(e,t){return dn.current.useEffect(e,t)};Ot.useId=function(){return dn.current.useId()};Ot.useImperativeHandle=function(e,t,r){return dn.current.useImperativeHandle(e,t,r)};Ot.useInsertionEffect=function(e,t){return dn.current.useInsertionEffect(e,t)};Ot.useLayoutEffect=function(e,t){return dn.current.useLayoutEffect(e,t)};Ot.useMemo=function(e,t){return dn.current.useMemo(e,t)};Ot.useReducer=function(e,t,r){return dn.current.useReducer(e,t,r)};Ot.useRef=function(e){return dn.current.useRef(e)};Ot.useState=function(e){return dn.current.useState(e)};Ot.useSyncExternalStore=function(e,t,r){return dn.current.useSyncExternalStore(e,t,r)};Ot.useTransition=function(){return dn.current.useTransition()};Ot.version="18.3.1";I_.exports=Ot;var $t=I_.exports;const t2=jb($t);/**
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 r2=$t,n2=Symbol.for("react.element"),i2=Symbol.for("react.fragment"),s2=Object.prototype.hasOwnProperty,a2=r2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l2={key:!0,ref:!0,__self:!0,__source:!0};function U_(e,t,r){var n,i={},s=null,l=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(l=t.ref);for(n in t)s2.call(t,n)&&!l2.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:n2,type:e,key:s,ref:l,props:i,_owner:a2.current}}Zu.Fragment=i2;Zu.jsx=U_;Zu.jsxs=U_;N_.exports=Zu;var ge=N_.exports,H_={exports:{}},In={},W_={exports:{}},V_={};/**
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($e,V){var w=$e.length;$e.push(V);e:for(;0<w;){var $=w-1>>>1,o=$e[$];if(0<i(o,V))$e[$]=V,$e[w]=o,w=$;else break e}}function r($e){return $e.length===0?null:$e[0]}function n($e){if($e.length===0)return null;var V=$e[0],w=$e.pop();if(w!==V){$e[0]=w;e:for(var $=0,o=$e.length,c=o>>>1;$<c;){var p=2*($+1)-1,m=$e[p],E=p+1,T=$e[E];if(0>i(m,w))E<o&&0>i(T,m)?($e[$]=T,$e[E]=w,$=E):($e[$]=m,$e[p]=w,$=p);else if(E<o&&0>i(T,w))$e[$]=T,$e[E]=w,$=E;else break e}}return V}function i($e,V){var w=$e.sortIndex-V.sortIndex;return w!==0?w:$e.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,f=l.now();e.unstable_now=function(){return l.now()-f}}var h=[],d=[],k=1,C=null,N=3,U=!1,O=!1,j=!1,D=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,de=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ne($e){for(var V=r(d);V!==null;){if(V.callback===null)n(d);else if(V.startTime<=$e)n(d),V.sortIndex=V.expirationTime,t(h,V);else break;V=r(d)}}function me($e){if(j=!1,ne($e),!O)if(r(h)!==null)O=!0,W(Q);else{var V=r(d);V!==null&&Fe(me,V.startTime-$e)}}function Q($e,V){O=!1,j&&(j=!1,G(Ee),Ee=-1),U=!0;var w=N;try{for(ne(V),C=r(h);C!==null&&(!(C.expirationTime>V)||$e&&!fe());){var $=C.callback;if(typeof $=="function"){C.callback=null,N=C.priorityLevel;var o=$(C.expirationTime<=V);V=e.unstable_now(),typeof o=="function"?C.callback=o:C===r(h)&&n(h),ne(V)}else n(h);C=r(h)}if(C!==null)var c=!0;else{var p=r(d);p!==null&&Fe(me,p.startTime-V),c=!1}return c}finally{C=null,N=w,U=!1}}var be=!1,le=null,Ee=-1,te=5,Ce=-1;function fe(){return!(e.unstable_now()-Ce<te)}function x(){if(le!==null){var $e=e.unstable_now();Ce=$e;var V=!0;try{V=le(!0,$e)}finally{V?Ae():(be=!1,le=null)}}else be=!1}var Ae;if(typeof de=="function")Ae=function(){de(x)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,he=B.port2;B.port1.onmessage=x,Ae=function(){he.postMessage(null)}}else Ae=function(){D(x,0)};function W($e){le=$e,be||(be=!0,Ae())}function Fe($e,V){Ee=D(function(){$e(e.unstable_now())},V)}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($e){$e.callback=null},e.unstable_continueExecution=function(){O||U||(O=!0,W(Q))},e.unstable_forceFrameRate=function($e){0>$e||125<$e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<$e?Math.floor(1e3/$e):5},e.unstable_getCurrentPriorityLevel=function(){return N},e.unstable_getFirstCallbackNode=function(){return r(h)},e.unstable_next=function($e){switch(N){case 1:case 2:case 3:var V=3;break;default:V=N}var w=N;N=V;try{return $e()}finally{N=w}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($e,V){switch($e){case 1:case 2:case 3:case 4:case 5:break;default:$e=3}var w=N;N=$e;try{return V()}finally{N=w}},e.unstable_scheduleCallback=function($e,V,w){var $=e.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?$+w:$):w=$,$e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=w+o,$e={id:k++,callback:V,priorityLevel:$e,startTime:w,expirationTime:o,sortIndex:-1},w>$?($e.sortIndex=w,t(d,$e),r(h)===null&&$e===r(d)&&(j?(G(Ee),Ee=-1):j=!0,Fe(me,w-$))):($e.sortIndex=o,t(h,$e),O||U||(O=!0,W(Q))),$e},e.unstable_shouldYield=fe,e.unstable_wrapCallback=function($e){var V=N;return function(){var w=N;N=V;try{return $e.apply(this,arguments)}finally{N=w}}}})(V_);W_.exports=V_;var o2=W_.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 u2=$t,Rn=o2;function Rt(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 Y_=new Set,ql={};function Ks(e,t){Ia(e,t),Ia(e+"Capture",t)}function Ia(e,t){for(ql[e]=t,e=0;e<t.length;e++)Y_.add(t[e])}var qi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ef=Object.prototype.hasOwnProperty,c2=/^[: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]*$/,Mh={},Dh={};function $2(e){return ef.call(Dh,e)?!0:ef.call(Mh,e)?!1:c2.test(e)?Dh[e]=!0:(Mh[e]=!0,!1)}function f2(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 d2(e,t,r,n){if(t===null||typeof t>"u"||f2(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 hn(e,t,r,n,i,s,l){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=l}var Xr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xr[e]=new hn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xr[t]=new hn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xr[e]=new hn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xr[e]=new hn(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){Xr[e]=new hn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xr[e]=new hn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xr[e]=new hn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xr[e]=new hn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xr[e]=new hn(e,5,!1,e.toLowerCase(),null,!1,!1)});var B0=/[\-:]([a-z])/g;function P0(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(B0,P0);Xr[t]=new hn(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(B0,P0);Xr[t]=new hn(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(B0,P0);Xr[t]=new hn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xr[e]=new hn(e,1,!1,e.toLowerCase(),null,!1,!1)});Xr.xlinkHref=new hn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xr[e]=new hn(e,1,!1,e.toLowerCase(),null,!0,!0)});function U0(e,t,r,n){var i=Xr.hasOwnProperty(t)?Xr[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(d2(t,r,i,n)&&(r=null),n||i===null?$2(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 ji=u2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,yo=Symbol.for("react.element"),$a=Symbol.for("react.portal"),fa=Symbol.for("react.fragment"),H0=Symbol.for("react.strict_mode"),tf=Symbol.for("react.profiler"),G_=Symbol.for("react.provider"),K_=Symbol.for("react.context"),W0=Symbol.for("react.forward_ref"),rf=Symbol.for("react.suspense"),nf=Symbol.for("react.suspense_list"),V0=Symbol.for("react.memo"),Zi=Symbol.for("react.lazy"),X_=Symbol.for("react.offscreen"),Lh=Symbol.iterator;function nl(e){return e===null||typeof e!="object"?null:(e=Lh&&e[Lh]||e["@@iterator"],typeof e=="function"?e:null)}var br=Object.assign,Qc;function hl(e){if(Qc===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Qc=t&&t[1]||""}return`
35
+ `+Qc+e}var Zc=!1;function Jc(e,t){if(!e||Zc)return"";Zc=!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(d){var n=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){n=d}e.call(t.prototype)}else{try{throw Error()}catch(d){n=d}e()}}catch(d){if(d&&n&&typeof d.stack=="string"){for(var i=d.stack.split(`
36
+ `),s=n.stack.split(`
37
+ `),l=i.length-1,f=s.length-1;1<=l&&0<=f&&i[l]!==s[f];)f--;for(;1<=l&&0<=f;l--,f--)if(i[l]!==s[f]){if(l!==1||f!==1)do if(l--,f--,0>f||i[l]!==s[f]){var h=`
38
+ `+i[l].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),h}while(1<=l&&0<=f);break}}}finally{Zc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?hl(e):""}function h2(e){switch(e.tag){case 5:return hl(e.type);case 16:return hl("Lazy");case 13:return hl("Suspense");case 19:return hl("SuspenseList");case 0:case 2:case 15:return e=Jc(e.type,!1),e;case 11:return e=Jc(e.type.render,!1),e;case 1:return e=Jc(e.type,!0),e;default:return""}}function sf(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 fa:return"Fragment";case $a:return"Portal";case tf:return"Profiler";case H0:return"StrictMode";case rf:return"Suspense";case nf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case K_:return(e.displayName||"Context")+".Consumer";case G_:return(e._context.displayName||"Context")+".Provider";case W0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V0:return t=e.displayName||null,t!==null?t:sf(e.type)||"Memo";case Zi:t=e._payload,e=e._init;try{return sf(e(t))}catch{}}return null}function p2(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 sf(t);case 8:return t===H0?"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 ds(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Q_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function m2(e){var t=Q_(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(l){n=""+l,s.call(this,l)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bo(e){e._valueTracker||(e._valueTracker=m2(e))}function Z_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Q_(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function du(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 af(e,t){var r=t.checked;return br({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Fh(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ds(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 J_(e,t){t=t.checked,t!=null&&U0(e,"checked",t,!1)}function lf(e,t){J_(e,t);var r=ds(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")?of(e,t.type,r):t.hasOwnProperty("defaultValue")&&of(e,t.type,ds(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jh(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 of(e,t,r){(t!=="number"||du(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var pl=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=""+ds(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 uf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Rt(91));return br({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Bh(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(Rt(92));if(pl(r)){if(1<r.length)throw Error(Rt(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ds(r)}}function O_(e,t){var r=ds(t.value),n=ds(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 Ph(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function e1(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 cf(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?e1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var wo,t1=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(wo=wo||document.createElement("div"),wo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=wo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ml(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var bl={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},_2=["Webkit","ms","Moz","O"];Object.keys(bl).forEach(function(e){_2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bl[t]=bl[e]})});function r1(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||bl.hasOwnProperty(e)&&bl[e]?(""+t).trim():t+"px"}function n1(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=r1(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var g2=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 $f(e,t){if(t){if(g2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Rt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Rt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Rt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Rt(62))}}function ff(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 df=null;function Y0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hf=null,Ea=null,Aa=null;function Uh(e){if(e=oo(e)){if(typeof hf!="function")throw Error(Rt(280));var t=e.stateNode;t&&(t=rc(t),hf(e.stateNode,e.type,t))}}function i1(e){Ea?Aa?Aa.push(e):Aa=[e]:Ea=e}function s1(){if(Ea){var e=Ea,t=Aa;if(Aa=Ea=null,Uh(e),t)for(e=0;e<t.length;e++)Uh(t[e])}}function a1(e,t){return e(t)}function l1(){}var Oc=!1;function o1(e,t,r){if(Oc)return e(t,r);Oc=!0;try{return a1(e,t,r)}finally{Oc=!1,(Ea!==null||Aa!==null)&&(l1(),s1())}}function Dl(e,t){var r=e.stateNode;if(r===null)return null;var n=rc(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(Rt(231,t,typeof r));return r}var pf=!1;if(qi)try{var il={};Object.defineProperty(il,"passive",{get:function(){pf=!0}}),window.addEventListener("test",il,il),window.removeEventListener("test",il,il)}catch{pf=!1}function v2(e,t,r,n,i,s,l,f,h){var d=Array.prototype.slice.call(arguments,3);try{t.apply(r,d)}catch(k){this.onError(k)}}var wl=!1,hu=null,pu=!1,mf=null,y2={onError:function(e){wl=!0,hu=e}};function b2(e,t,r,n,i,s,l,f,h){wl=!1,hu=null,v2.apply(y2,arguments)}function w2(e,t,r,n,i,s,l,f,h){if(b2.apply(this,arguments),wl){if(wl){var d=hu;wl=!1,hu=null}else throw Error(Rt(198));pu||(pu=!0,mf=d)}}function Xs(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 u1(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 Hh(e){if(Xs(e)!==e)throw Error(Rt(188))}function x2(e){var t=e.alternate;if(!t){if(t=Xs(e),t===null)throw Error(Rt(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 Hh(i),e;if(s===n)return Hh(i),t;s=s.sibling}throw Error(Rt(188))}if(r.return!==n.return)r=i,n=s;else{for(var l=!1,f=i.child;f;){if(f===r){l=!0,r=i,n=s;break}if(f===n){l=!0,n=i,r=s;break}f=f.sibling}if(!l){for(f=s.child;f;){if(f===r){l=!0,r=s,n=i;break}if(f===n){l=!0,n=s,r=i;break}f=f.sibling}if(!l)throw Error(Rt(189))}}if(r.alternate!==n)throw Error(Rt(190))}if(r.tag!==3)throw Error(Rt(188));return r.stateNode.current===r?e:t}function c1(e){return e=x2(e),e!==null?$1(e):null}function $1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=$1(e);if(t!==null)return t;e=e.sibling}return null}var f1=Rn.unstable_scheduleCallback,Wh=Rn.unstable_cancelCallback,k2=Rn.unstable_shouldYield,S2=Rn.unstable_requestPaint,Ar=Rn.unstable_now,E2=Rn.unstable_getCurrentPriorityLevel,G0=Rn.unstable_ImmediatePriority,d1=Rn.unstable_UserBlockingPriority,mu=Rn.unstable_NormalPriority,A2=Rn.unstable_LowPriority,h1=Rn.unstable_IdlePriority,Ju=null,hi=null;function C2(e){if(hi&&typeof hi.onCommitFiberRoot=="function")try{hi.onCommitFiberRoot(Ju,e,void 0,(e.current.flags&128)===128)}catch{}}var ni=Math.clz32?Math.clz32:z2,T2=Math.log,R2=Math.LN2;function z2(e){return e>>>=0,e===0?32:31-(T2(e)/R2|0)|0}var xo=64,ko=4194304;function ml(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 _u(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,l=r&268435455;if(l!==0){var f=l&~i;f!==0?n=ml(f):(s&=l,s!==0&&(n=ml(s)))}else l=r&~i,l!==0?n=ml(l):s!==0&&(n=ml(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-ni(t),i=1<<r,n|=e[r],t&=~i;return n}function N2(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 I2(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-ni(s),f=1<<l,h=i[l];h===-1?(!(f&r)||f&n)&&(i[l]=N2(f,t)):h<=t&&(e.expiredLanes|=f),s&=~f}}function _f(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function p1(){var e=xo;return xo<<=1,!(xo&4194240)&&(xo=64),e}function e$(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ao(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ni(t),e[t]=r}function q2(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-ni(r),s=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~s}}function K0(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-ni(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var ar=0;function m1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var _1,X0,g1,v1,y1,gf=!1,So=[],ss=null,as=null,ls=null,Ll=new Map,Fl=new Map,Oi=[],M2="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 Vh(e,t){switch(e){case"focusin":case"focusout":ss=null;break;case"dragenter":case"dragleave":as=null;break;case"mouseover":case"mouseout":ls=null;break;case"pointerover":case"pointerout":Ll.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fl.delete(t.pointerId)}}function sl(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=oo(t),t!==null&&X0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function D2(e,t,r,n,i){switch(t){case"focusin":return ss=sl(ss,e,t,r,n,i),!0;case"dragenter":return as=sl(as,e,t,r,n,i),!0;case"mouseover":return ls=sl(ls,e,t,r,n,i),!0;case"pointerover":var s=i.pointerId;return Ll.set(s,sl(Ll.get(s)||null,e,t,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,Fl.set(s,sl(Fl.get(s)||null,e,t,r,n,i)),!0}return!1}function b1(e){var t=qs(e.target);if(t!==null){var r=Xs(t);if(r!==null){if(t=r.tag,t===13){if(t=u1(r),t!==null){e.blockedOn=t,y1(e.priority,function(){g1(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 Oo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=vf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);df=n,r.target.dispatchEvent(n),df=null}else return t=oo(r),t!==null&&X0(t),e.blockedOn=r,!1;t.shift()}return!0}function Yh(e,t,r){Oo(e)&&r.delete(t)}function L2(){gf=!1,ss!==null&&Oo(ss)&&(ss=null),as!==null&&Oo(as)&&(as=null),ls!==null&&Oo(ls)&&(ls=null),Ll.forEach(Yh),Fl.forEach(Yh)}function al(e,t){e.blockedOn===t&&(e.blockedOn=null,gf||(gf=!0,Rn.unstable_scheduleCallback(Rn.unstable_NormalPriority,L2)))}function jl(e){function t(i){return al(i,e)}if(0<So.length){al(So[0],e);for(var r=1;r<So.length;r++){var n=So[r];n.blockedOn===e&&(n.blockedOn=null)}}for(ss!==null&&al(ss,e),as!==null&&al(as,e),ls!==null&&al(ls,e),Ll.forEach(t),Fl.forEach(t),r=0;r<Oi.length;r++)n=Oi[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Oi.length&&(r=Oi[0],r.blockedOn===null);)b1(r),r.blockedOn===null&&Oi.shift()}var Ca=ji.ReactCurrentBatchConfig,gu=!0;function F2(e,t,r,n){var i=ar,s=Ca.transition;Ca.transition=null;try{ar=1,Q0(e,t,r,n)}finally{ar=i,Ca.transition=s}}function j2(e,t,r,n){var i=ar,s=Ca.transition;Ca.transition=null;try{ar=4,Q0(e,t,r,n)}finally{ar=i,Ca.transition=s}}function Q0(e,t,r,n){if(gu){var i=vf(e,t,r,n);if(i===null)c$(e,t,n,vu,r),Vh(e,n);else if(D2(i,e,t,r,n))n.stopPropagation();else if(Vh(e,n),t&4&&-1<M2.indexOf(e)){for(;i!==null;){var s=oo(i);if(s!==null&&_1(s),s=vf(e,t,r,n),s===null&&c$(e,t,n,vu,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else c$(e,t,n,null,r)}}var vu=null;function vf(e,t,r,n){if(vu=null,e=Y0(n),e=qs(e),e!==null)if(t=Xs(e),t===null)e=null;else if(r=t.tag,r===13){if(e=u1(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 vu=e,null}function w1(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(E2()){case G0:return 1;case d1:return 4;case mu:case A2:return 16;case h1:return 536870912;default:return 16}default:return 16}}var rs=null,Z0=null,eu=null;function x1(){if(eu)return eu;var e,t=Z0,r=t.length,n,i="value"in rs?rs.value:rs.textContent,s=i.length;for(e=0;e<r&&t[e]===i[e];e++);var l=r-e;for(n=1;n<=l&&t[r-n]===i[s-n];n++);return eu=i.slice(e,1<n?1-n:void 0)}function tu(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 Eo(){return!0}function Gh(){return!1}function qn(e){function t(r,n,i,s,l){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=l,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)?Eo:Gh,this.isPropagationStopped=Gh,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=Eo)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Eo)},persist:function(){},isPersistent:Eo}),t}var Ga={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},J0=qn(Ga),lo=br({},Ga,{view:0,detail:0}),B2=qn(lo),t$,r$,ll,Ou=br({},lo,{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!==ll&&(ll&&e.type==="mousemove"?(t$=e.screenX-ll.screenX,r$=e.screenY-ll.screenY):r$=t$=0,ll=e),t$)},movementY:function(e){return"movementY"in e?e.movementY:r$}}),Kh=qn(Ou),P2=br({},Ou,{dataTransfer:0}),U2=qn(P2),H2=br({},lo,{relatedTarget:0}),n$=qn(H2),W2=br({},Ga,{animationName:0,elapsedTime:0,pseudoElement:0}),V2=qn(W2),Y2=br({},Ga,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),G2=qn(Y2),K2=br({},Ga,{data:0}),Xh=qn(K2),X2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Q2={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"},Z2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function J2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Z2[e])?!!t[e]:!1}function O0(){return J2}var O2=br({},lo,{key:function(e){if(e.key){var t=X2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Q2[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"?tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),e4=qn(O2),t4=br({},Ou,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qh=qn(t4),r4=br({},lo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:O0}),n4=qn(r4),i4=br({},Ga,{propertyName:0,elapsedTime:0,pseudoElement:0}),s4=qn(i4),a4=br({},Ou,{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}),l4=qn(a4),o4=[9,13,27,32],ed=qi&&"CompositionEvent"in window,xl=null;qi&&"documentMode"in document&&(xl=document.documentMode);var u4=qi&&"TextEvent"in window&&!xl,k1=qi&&(!ed||xl&&8<xl&&11>=xl),Zh=" ",Jh=!1;function S1(e,t){switch(e){case"keyup":return o4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var da=!1;function c4(e,t){switch(e){case"compositionend":return E1(t);case"keypress":return t.which!==32?null:(Jh=!0,Zh);case"textInput":return e=t.data,e===Zh&&Jh?null:e;default:return null}}function $4(e,t){if(da)return e==="compositionend"||!ed&&S1(e,t)?(e=x1(),eu=Z0=rs=null,da=!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 k1&&t.locale!=="ko"?null:t.data;default:return null}}var f4={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 Oh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!f4[e.type]:t==="textarea"}function A1(e,t,r,n){i1(n),t=yu(t,"onChange"),0<t.length&&(r=new J0("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var kl=null,Bl=null;function d4(e){F1(e,0)}function ec(e){var t=ma(e);if(Z_(t))return e}function h4(e,t){if(e==="change")return t}var C1=!1;if(qi){var i$;if(qi){var s$="oninput"in document;if(!s$){var ep=document.createElement("div");ep.setAttribute("oninput","return;"),s$=typeof ep.oninput=="function"}i$=s$}else i$=!1;C1=i$&&(!document.documentMode||9<document.documentMode)}function tp(){kl&&(kl.detachEvent("onpropertychange",T1),Bl=kl=null)}function T1(e){if(e.propertyName==="value"&&ec(Bl)){var t=[];A1(t,Bl,e,Y0(e)),o1(d4,t)}}function p4(e,t,r){e==="focusin"?(tp(),kl=t,Bl=r,kl.attachEvent("onpropertychange",T1)):e==="focusout"&&tp()}function m4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ec(Bl)}function _4(e,t){if(e==="click")return ec(t)}function g4(e,t){if(e==="input"||e==="change")return ec(t)}function v4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var si=typeof Object.is=="function"?Object.is:v4;function Pl(e,t){if(si(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(!ef.call(t,i)||!si(e[i],t[i]))return!1}return!0}function rp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function np(e,t){var r=rp(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=rp(r)}}function R1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?R1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function z1(){for(var e=window,t=du();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=du(e.document)}return t}function td(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 y4(e){var t=z1(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&R1(r.ownerDocument.documentElement,r)){if(n!==null&&td(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=np(r,s);var l=np(r,n);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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 b4=qi&&"documentMode"in document&&11>=document.documentMode,ha=null,yf=null,Sl=null,bf=!1;function ip(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;bf||ha==null||ha!==du(n)||(n=ha,"selectionStart"in n&&td(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}),Sl&&Pl(Sl,n)||(Sl=n,n=yu(yf,"onSelect"),0<n.length&&(t=new J0("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=ha)))}function Ao(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var pa={animationend:Ao("Animation","AnimationEnd"),animationiteration:Ao("Animation","AnimationIteration"),animationstart:Ao("Animation","AnimationStart"),transitionend:Ao("Transition","TransitionEnd")},a$={},N1={};qi&&(N1=document.createElement("div").style,"AnimationEvent"in window||(delete pa.animationend.animation,delete pa.animationiteration.animation,delete pa.animationstart.animation),"TransitionEvent"in window||delete pa.transitionend.transition);function tc(e){if(a$[e])return a$[e];if(!pa[e])return e;var t=pa[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in N1)return a$[e]=t[r];return e}var I1=tc("animationend"),q1=tc("animationiteration"),M1=tc("animationstart"),D1=tc("transitionend"),L1=new Map,sp="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 bs(e,t){L1.set(e,t),Ks(t,[e])}for(var l$=0;l$<sp.length;l$++){var o$=sp[l$],w4=o$.toLowerCase(),x4=o$[0].toUpperCase()+o$.slice(1);bs(w4,"on"+x4)}bs(I1,"onAnimationEnd");bs(q1,"onAnimationIteration");bs(M1,"onAnimationStart");bs("dblclick","onDoubleClick");bs("focusin","onFocus");bs("focusout","onBlur");bs(D1,"onTransitionEnd");Ia("onMouseEnter",["mouseout","mouseover"]);Ia("onMouseLeave",["mouseout","mouseover"]);Ia("onPointerEnter",["pointerout","pointerover"]);Ia("onPointerLeave",["pointerout","pointerover"]);Ks("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ks("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ks("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ks("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ks("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ks("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _l="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(" "),k4=new Set("cancel close invalid load scroll toggle".split(" ").concat(_l));function ap(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,w2(n,t,void 0,e),e.currentTarget=null}function F1(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 l=n.length-1;0<=l;l--){var f=n[l],h=f.instance,d=f.currentTarget;if(f=f.listener,h!==s&&i.isPropagationStopped())break e;ap(i,f,d),s=h}else for(l=0;l<n.length;l++){if(f=n[l],h=f.instance,d=f.currentTarget,f=f.listener,h!==s&&i.isPropagationStopped())break e;ap(i,f,d),s=h}}}if(pu)throw e=mf,pu=!1,mf=null,e}function cr(e,t){var r=t[Ef];r===void 0&&(r=t[Ef]=new Set);var n=e+"__bubble";r.has(n)||(j1(t,e,2,!1),r.add(n))}function u$(e,t,r){var n=0;t&&(n|=4),j1(r,e,n,t)}var Co="_reactListening"+Math.random().toString(36).slice(2);function Ul(e){if(!e[Co]){e[Co]=!0,Y_.forEach(function(r){r!=="selectionchange"&&(k4.has(r)||u$(r,!1,e),u$(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Co]||(t[Co]=!0,u$("selectionchange",!1,t))}}function j1(e,t,r,n){switch(w1(t)){case 1:var i=F2;break;case 4:i=j2;break;default:i=Q0}r=i.bind(null,t,r,e),i=void 0,!pf||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 c$(e,t,r,n,i){var s=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var l=n.tag;if(l===3||l===4){var f=n.stateNode.containerInfo;if(f===i||f.nodeType===8&&f.parentNode===i)break;if(l===4)for(l=n.return;l!==null;){var h=l.tag;if((h===3||h===4)&&(h=l.stateNode.containerInfo,h===i||h.nodeType===8&&h.parentNode===i))return;l=l.return}for(;f!==null;){if(l=qs(f),l===null)return;if(h=l.tag,h===5||h===6){n=s=l;continue e}f=f.parentNode}}n=n.return}o1(function(){var d=s,k=Y0(r),C=[];e:{var N=L1.get(e);if(N!==void 0){var U=J0,O=e;switch(e){case"keypress":if(tu(r)===0)break e;case"keydown":case"keyup":U=e4;break;case"focusin":O="focus",U=n$;break;case"focusout":O="blur",U=n$;break;case"beforeblur":case"afterblur":U=n$;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":U=Kh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=U2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=n4;break;case I1:case q1:case M1:U=V2;break;case D1:U=s4;break;case"scroll":U=B2;break;case"wheel":U=l4;break;case"copy":case"cut":case"paste":U=G2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Qh}var j=(t&4)!==0,D=!j&&e==="scroll",G=j?N!==null?N+"Capture":null:N;j=[];for(var de=d,ne;de!==null;){ne=de;var me=ne.stateNode;if(ne.tag===5&&me!==null&&(ne=me,G!==null&&(me=Dl(de,G),me!=null&&j.push(Hl(de,me,ne)))),D)break;de=de.return}0<j.length&&(N=new U(N,O,null,r,k),C.push({event:N,listeners:j}))}}if(!(t&7)){e:{if(N=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",N&&r!==df&&(O=r.relatedTarget||r.fromElement)&&(qs(O)||O[Mi]))break e;if((U||N)&&(N=k.window===k?k:(N=k.ownerDocument)?N.defaultView||N.parentWindow:window,U?(O=r.relatedTarget||r.toElement,U=d,O=O?qs(O):null,O!==null&&(D=Xs(O),O!==D||O.tag!==5&&O.tag!==6)&&(O=null)):(U=null,O=d),U!==O)){if(j=Kh,me="onMouseLeave",G="onMouseEnter",de="mouse",(e==="pointerout"||e==="pointerover")&&(j=Qh,me="onPointerLeave",G="onPointerEnter",de="pointer"),D=U==null?N:ma(U),ne=O==null?N:ma(O),N=new j(me,de+"leave",U,r,k),N.target=D,N.relatedTarget=ne,me=null,qs(k)===d&&(j=new j(G,de+"enter",O,r,k),j.target=ne,j.relatedTarget=D,me=j),D=me,U&&O)t:{for(j=U,G=O,de=0,ne=j;ne;ne=ia(ne))de++;for(ne=0,me=G;me;me=ia(me))ne++;for(;0<de-ne;)j=ia(j),de--;for(;0<ne-de;)G=ia(G),ne--;for(;de--;){if(j===G||G!==null&&j===G.alternate)break t;j=ia(j),G=ia(G)}j=null}else j=null;U!==null&&lp(C,N,U,j,!1),O!==null&&D!==null&&lp(C,D,O,j,!0)}}e:{if(N=d?ma(d):window,U=N.nodeName&&N.nodeName.toLowerCase(),U==="select"||U==="input"&&N.type==="file")var Q=h4;else if(Oh(N))if(C1)Q=g4;else{Q=m4;var be=p4}else(U=N.nodeName)&&U.toLowerCase()==="input"&&(N.type==="checkbox"||N.type==="radio")&&(Q=_4);if(Q&&(Q=Q(e,d))){A1(C,Q,r,k);break e}be&&be(e,N,d),e==="focusout"&&(be=N._wrapperState)&&be.controlled&&N.type==="number"&&of(N,"number",N.value)}switch(be=d?ma(d):window,e){case"focusin":(Oh(be)||be.contentEditable==="true")&&(ha=be,yf=d,Sl=null);break;case"focusout":Sl=yf=ha=null;break;case"mousedown":bf=!0;break;case"contextmenu":case"mouseup":case"dragend":bf=!1,ip(C,r,k);break;case"selectionchange":if(b4)break;case"keydown":case"keyup":ip(C,r,k)}var le;if(ed)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else da?S1(e,r)&&(Ee="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Ee="onCompositionStart");Ee&&(k1&&r.locale!=="ko"&&(da||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&da&&(le=x1()):(rs=k,Z0="value"in rs?rs.value:rs.textContent,da=!0)),be=yu(d,Ee),0<be.length&&(Ee=new Xh(Ee,e,null,r,k),C.push({event:Ee,listeners:be}),le?Ee.data=le:(le=E1(r),le!==null&&(Ee.data=le)))),(le=u4?c4(e,r):$4(e,r))&&(d=yu(d,"onBeforeInput"),0<d.length&&(k=new Xh("onBeforeInput","beforeinput",null,r,k),C.push({event:k,listeners:d}),k.data=le))}F1(C,t)})}function Hl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function yu(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Dl(e,r),s!=null&&n.unshift(Hl(e,s,i)),s=Dl(e,t),s!=null&&n.push(Hl(e,s,i))),e=e.return}return n}function ia(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function lp(e,t,r,n,i){for(var s=t._reactName,l=[];r!==null&&r!==n;){var f=r,h=f.alternate,d=f.stateNode;if(h!==null&&h===n)break;f.tag===5&&d!==null&&(f=d,i?(h=Dl(r,s),h!=null&&l.unshift(Hl(r,h,f))):i||(h=Dl(r,s),h!=null&&l.push(Hl(r,h,f)))),r=r.return}l.length!==0&&e.push({event:t,listeners:l})}var S4=/\r\n?/g,E4=/\u0000|\uFFFD/g;function op(e){return(typeof e=="string"?e:""+e).replace(S4,`
39
+ `).replace(E4,"")}function To(e,t,r){if(t=op(t),op(e)!==t&&r)throw Error(Rt(425))}function bu(){}var wf=null,xf=null;function kf(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 Sf=typeof setTimeout=="function"?setTimeout:void 0,A4=typeof clearTimeout=="function"?clearTimeout:void 0,up=typeof Promise=="function"?Promise:void 0,C4=typeof queueMicrotask=="function"?queueMicrotask:typeof up<"u"?function(e){return up.resolve(null).then(e).catch(T4)}:Sf;function T4(e){setTimeout(function(){throw e})}function $$(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),jl(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);jl(t)}function os(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 cp(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 Ka=Math.random().toString(36).slice(2),ci="__reactFiber$"+Ka,Wl="__reactProps$"+Ka,Mi="__reactContainer$"+Ka,Ef="__reactEvents$"+Ka,R4="__reactListeners$"+Ka,z4="__reactHandles$"+Ka;function qs(e){var t=e[ci];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Mi]||r[ci]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=cp(e);e!==null;){if(r=e[ci])return r;e=cp(e)}return t}e=r,r=e.parentNode}return null}function oo(e){return e=e[ci]||e[Mi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ma(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Rt(33))}function rc(e){return e[Wl]||null}var Af=[],_a=-1;function ws(e){return{current:e}}function fr(e){0>_a||(e.current=Af[_a],Af[_a]=null,_a--)}function ur(e,t){_a++,Af[_a]=e.current,e.current=t}var hs={},rn=ws(hs),yn=ws(!1),Ps=hs;function qa(e,t){var r=e.type.contextTypes;if(!r)return hs;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 bn(e){return e=e.childContextTypes,e!=null}function wu(){fr(yn),fr(rn)}function $p(e,t,r){if(rn.current!==hs)throw Error(Rt(168));ur(rn,t),ur(yn,r)}function B1(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(Rt(108,p2(e)||"Unknown",i));return br({},r,n)}function xu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hs,Ps=rn.current,ur(rn,e),ur(yn,yn.current),!0}function fp(e,t,r){var n=e.stateNode;if(!n)throw Error(Rt(169));r?(e=B1(e,t,Ps),n.__reactInternalMemoizedMergedChildContext=e,fr(yn),fr(rn),ur(rn,e)):fr(yn),ur(yn,r)}var Ai=null,nc=!1,f$=!1;function P1(e){Ai===null?Ai=[e]:Ai.push(e)}function N4(e){nc=!0,P1(e)}function xs(){if(!f$&&Ai!==null){f$=!0;var e=0,t=ar;try{var r=Ai;for(ar=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Ai=null,nc=!1}catch(i){throw Ai!==null&&(Ai=Ai.slice(e+1)),f1(G0,xs),i}finally{ar=t,f$=!1}}return null}var ga=[],va=0,ku=null,Su=0,jn=[],Bn=0,Us=null,Ti=1,Ri="";function Rs(e,t){ga[va++]=Su,ga[va++]=ku,ku=e,Su=t}function U1(e,t,r){jn[Bn++]=Ti,jn[Bn++]=Ri,jn[Bn++]=Us,Us=e;var n=Ti;e=Ri;var i=32-ni(n)-1;n&=~(1<<i),r+=1;var s=32-ni(t)+i;if(30<s){var l=i-i%5;s=(n&(1<<l)-1).toString(32),n>>=l,i-=l,Ti=1<<32-ni(t)+i|r<<i|n,Ri=s+e}else Ti=1<<s|r<<i|n,Ri=e}function rd(e){e.return!==null&&(Rs(e,1),U1(e,1,0))}function nd(e){for(;e===ku;)ku=ga[--va],ga[va]=null,Su=ga[--va],ga[va]=null;for(;e===Us;)Us=jn[--Bn],jn[Bn]=null,Ri=jn[--Bn],jn[Bn]=null,Ti=jn[--Bn],jn[Bn]=null}var Cn=null,En=null,hr=!1,ei=null;function H1(e,t){var r=Pn(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 dp(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,Cn=e,En=os(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Cn=e,En=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Us!==null?{id:Ti,overflow:Ri}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Pn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Cn=e,En=null,!0):!1;default:return!1}}function Cf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Tf(e){if(hr){var t=En;if(t){var r=t;if(!dp(e,t)){if(Cf(e))throw Error(Rt(418));t=os(r.nextSibling);var n=Cn;t&&dp(e,t)?H1(n,r):(e.flags=e.flags&-4097|2,hr=!1,Cn=e)}}else{if(Cf(e))throw Error(Rt(418));e.flags=e.flags&-4097|2,hr=!1,Cn=e}}}function hp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Cn=e}function Ro(e){if(e!==Cn)return!1;if(!hr)return hp(e),hr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!kf(e.type,e.memoizedProps)),t&&(t=En)){if(Cf(e))throw W1(),Error(Rt(418));for(;t;)H1(e,t),t=os(t.nextSibling)}if(hp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Rt(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){En=os(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}En=null}}else En=Cn?os(e.stateNode.nextSibling):null;return!0}function W1(){for(var e=En;e;)e=os(e.nextSibling)}function Ma(){En=Cn=null,hr=!1}function id(e){ei===null?ei=[e]:ei.push(e)}var I4=ji.ReactCurrentBatchConfig;function ol(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(Rt(309));var n=r.stateNode}if(!n)throw Error(Rt(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(l){var f=i.refs;l===null?delete f[s]:f[s]=l},t._stringRef=s,t)}if(typeof e!="string")throw Error(Rt(284));if(!r._owner)throw Error(Rt(290,e))}return e}function zo(e,t){throw e=Object.prototype.toString.call(t),Error(Rt(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function pp(e){var t=e._init;return t(e._payload)}function V1(e){function t(G,de){if(e){var ne=G.deletions;ne===null?(G.deletions=[de],G.flags|=16):ne.push(de)}}function r(G,de){if(!e)return null;for(;de!==null;)t(G,de),de=de.sibling;return null}function n(G,de){for(G=new Map;de!==null;)de.key!==null?G.set(de.key,de):G.set(de.index,de),de=de.sibling;return G}function i(G,de){return G=fs(G,de),G.index=0,G.sibling=null,G}function s(G,de,ne){return G.index=ne,e?(ne=G.alternate,ne!==null?(ne=ne.index,ne<de?(G.flags|=2,de):ne):(G.flags|=2,de)):(G.flags|=1048576,de)}function l(G){return e&&G.alternate===null&&(G.flags|=2),G}function f(G,de,ne,me){return de===null||de.tag!==6?(de=v$(ne,G.mode,me),de.return=G,de):(de=i(de,ne),de.return=G,de)}function h(G,de,ne,me){var Q=ne.type;return Q===fa?k(G,de,ne.props.children,me,ne.key):de!==null&&(de.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===Zi&&pp(Q)===de.type)?(me=i(de,ne.props),me.ref=ol(G,de,ne),me.return=G,me):(me=ou(ne.type,ne.key,ne.props,null,G.mode,me),me.ref=ol(G,de,ne),me.return=G,me)}function d(G,de,ne,me){return de===null||de.tag!==4||de.stateNode.containerInfo!==ne.containerInfo||de.stateNode.implementation!==ne.implementation?(de=y$(ne,G.mode,me),de.return=G,de):(de=i(de,ne.children||[]),de.return=G,de)}function k(G,de,ne,me,Q){return de===null||de.tag!==7?(de=Bs(ne,G.mode,me,Q),de.return=G,de):(de=i(de,ne),de.return=G,de)}function C(G,de,ne){if(typeof de=="string"&&de!==""||typeof de=="number")return de=v$(""+de,G.mode,ne),de.return=G,de;if(typeof de=="object"&&de!==null){switch(de.$$typeof){case yo:return ne=ou(de.type,de.key,de.props,null,G.mode,ne),ne.ref=ol(G,null,de),ne.return=G,ne;case $a:return de=y$(de,G.mode,ne),de.return=G,de;case Zi:var me=de._init;return C(G,me(de._payload),ne)}if(pl(de)||nl(de))return de=Bs(de,G.mode,ne,null),de.return=G,de;zo(G,de)}return null}function N(G,de,ne,me){var Q=de!==null?de.key:null;if(typeof ne=="string"&&ne!==""||typeof ne=="number")return Q!==null?null:f(G,de,""+ne,me);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case yo:return ne.key===Q?h(G,de,ne,me):null;case $a:return ne.key===Q?d(G,de,ne,me):null;case Zi:return Q=ne._init,N(G,de,Q(ne._payload),me)}if(pl(ne)||nl(ne))return Q!==null?null:k(G,de,ne,me,null);zo(G,ne)}return null}function U(G,de,ne,me,Q){if(typeof me=="string"&&me!==""||typeof me=="number")return G=G.get(ne)||null,f(de,G,""+me,Q);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case yo:return G=G.get(me.key===null?ne:me.key)||null,h(de,G,me,Q);case $a:return G=G.get(me.key===null?ne:me.key)||null,d(de,G,me,Q);case Zi:var be=me._init;return U(G,de,ne,be(me._payload),Q)}if(pl(me)||nl(me))return G=G.get(ne)||null,k(de,G,me,Q,null);zo(de,me)}return null}function O(G,de,ne,me){for(var Q=null,be=null,le=de,Ee=de=0,te=null;le!==null&&Ee<ne.length;Ee++){le.index>Ee?(te=le,le=null):te=le.sibling;var Ce=N(G,le,ne[Ee],me);if(Ce===null){le===null&&(le=te);break}e&&le&&Ce.alternate===null&&t(G,le),de=s(Ce,de,Ee),be===null?Q=Ce:be.sibling=Ce,be=Ce,le=te}if(Ee===ne.length)return r(G,le),hr&&Rs(G,Ee),Q;if(le===null){for(;Ee<ne.length;Ee++)le=C(G,ne[Ee],me),le!==null&&(de=s(le,de,Ee),be===null?Q=le:be.sibling=le,be=le);return hr&&Rs(G,Ee),Q}for(le=n(G,le);Ee<ne.length;Ee++)te=U(le,G,Ee,ne[Ee],me),te!==null&&(e&&te.alternate!==null&&le.delete(te.key===null?Ee:te.key),de=s(te,de,Ee),be===null?Q=te:be.sibling=te,be=te);return e&&le.forEach(function(fe){return t(G,fe)}),hr&&Rs(G,Ee),Q}function j(G,de,ne,me){var Q=nl(ne);if(typeof Q!="function")throw Error(Rt(150));if(ne=Q.call(ne),ne==null)throw Error(Rt(151));for(var be=Q=null,le=de,Ee=de=0,te=null,Ce=ne.next();le!==null&&!Ce.done;Ee++,Ce=ne.next()){le.index>Ee?(te=le,le=null):te=le.sibling;var fe=N(G,le,Ce.value,me);if(fe===null){le===null&&(le=te);break}e&&le&&fe.alternate===null&&t(G,le),de=s(fe,de,Ee),be===null?Q=fe:be.sibling=fe,be=fe,le=te}if(Ce.done)return r(G,le),hr&&Rs(G,Ee),Q;if(le===null){for(;!Ce.done;Ee++,Ce=ne.next())Ce=C(G,Ce.value,me),Ce!==null&&(de=s(Ce,de,Ee),be===null?Q=Ce:be.sibling=Ce,be=Ce);return hr&&Rs(G,Ee),Q}for(le=n(G,le);!Ce.done;Ee++,Ce=ne.next())Ce=U(le,G,Ee,Ce.value,me),Ce!==null&&(e&&Ce.alternate!==null&&le.delete(Ce.key===null?Ee:Ce.key),de=s(Ce,de,Ee),be===null?Q=Ce:be.sibling=Ce,be=Ce);return e&&le.forEach(function(x){return t(G,x)}),hr&&Rs(G,Ee),Q}function D(G,de,ne,me){if(typeof ne=="object"&&ne!==null&&ne.type===fa&&ne.key===null&&(ne=ne.props.children),typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case yo:e:{for(var Q=ne.key,be=de;be!==null;){if(be.key===Q){if(Q=ne.type,Q===fa){if(be.tag===7){r(G,be.sibling),de=i(be,ne.props.children),de.return=G,G=de;break e}}else if(be.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===Zi&&pp(Q)===be.type){r(G,be.sibling),de=i(be,ne.props),de.ref=ol(G,be,ne),de.return=G,G=de;break e}r(G,be);break}else t(G,be);be=be.sibling}ne.type===fa?(de=Bs(ne.props.children,G.mode,me,ne.key),de.return=G,G=de):(me=ou(ne.type,ne.key,ne.props,null,G.mode,me),me.ref=ol(G,de,ne),me.return=G,G=me)}return l(G);case $a:e:{for(be=ne.key;de!==null;){if(de.key===be)if(de.tag===4&&de.stateNode.containerInfo===ne.containerInfo&&de.stateNode.implementation===ne.implementation){r(G,de.sibling),de=i(de,ne.children||[]),de.return=G,G=de;break e}else{r(G,de);break}else t(G,de);de=de.sibling}de=y$(ne,G.mode,me),de.return=G,G=de}return l(G);case Zi:return be=ne._init,D(G,de,be(ne._payload),me)}if(pl(ne))return O(G,de,ne,me);if(nl(ne))return j(G,de,ne,me);zo(G,ne)}return typeof ne=="string"&&ne!==""||typeof ne=="number"?(ne=""+ne,de!==null&&de.tag===6?(r(G,de.sibling),de=i(de,ne),de.return=G,G=de):(r(G,de),de=v$(ne,G.mode,me),de.return=G,G=de),l(G)):r(G,de)}return D}var Da=V1(!0),Y1=V1(!1),Eu=ws(null),Au=null,ya=null,sd=null;function ad(){sd=ya=Au=null}function ld(e){var t=Eu.current;fr(Eu),e._currentValue=t}function Rf(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 Ta(e,t){Au=e,sd=ya=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(vn=!0),e.firstContext=null)}function Yn(e){var t=e._currentValue;if(sd!==e)if(e={context:e,memoizedValue:t,next:null},ya===null){if(Au===null)throw Error(Rt(308));ya=e,Au.dependencies={lanes:0,firstContext:e}}else ya=ya.next=e;return t}var Ms=null;function od(e){Ms===null?Ms=[e]:Ms.push(e)}function G1(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,od(t)):(r.next=i.next,i.next=r),t.interleaved=r,Di(e,n)}function Di(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 ud(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function K1(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 zi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function us(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,Di(e,r)}return i=n.interleaved,i===null?(t.next=t,od(n)):(t.next=i.next,i.next=t),n.interleaved=t,Di(e,r)}function ru(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,K0(e,r)}}function mp(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 l={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=l:s=s.next=l,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 Cu(e,t,r,n){var i=e.updateQueue;Ji=!1;var s=i.firstBaseUpdate,l=i.lastBaseUpdate,f=i.shared.pending;if(f!==null){i.shared.pending=null;var h=f,d=h.next;h.next=null,l===null?s=d:l.next=d,l=h;var k=e.alternate;k!==null&&(k=k.updateQueue,f=k.lastBaseUpdate,f!==l&&(f===null?k.firstBaseUpdate=d:f.next=d,k.lastBaseUpdate=h))}if(s!==null){var C=i.baseState;l=0,k=d=h=null,f=s;do{var N=f.lane,U=f.eventTime;if((n&N)===N){k!==null&&(k=k.next={eventTime:U,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var O=e,j=f;switch(N=t,U=r,j.tag){case 1:if(O=j.payload,typeof O=="function"){C=O.call(U,C,N);break e}C=O;break e;case 3:O.flags=O.flags&-65537|128;case 0:if(O=j.payload,N=typeof O=="function"?O.call(U,C,N):O,N==null)break e;C=br({},C,N);break e;case 2:Ji=!0}}f.callback!==null&&f.lane!==0&&(e.flags|=64,N=i.effects,N===null?i.effects=[f]:N.push(f))}else U={eventTime:U,lane:N,tag:f.tag,payload:f.payload,callback:f.callback,next:null},k===null?(d=k=U,h=C):k=k.next=U,l|=N;if(f=f.next,f===null){if(f=i.shared.pending,f===null)break;N=f,f=N.next,N.next=null,i.lastBaseUpdate=N,i.shared.pending=null}}while(!0);if(k===null&&(h=C),i.baseState=h,i.firstBaseUpdate=d,i.lastBaseUpdate=k,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Ws|=l,e.lanes=l,e.memoizedState=C}}function _p(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(Rt(191,i));i.call(n)}}}var uo={},pi=ws(uo),Vl=ws(uo),Yl=ws(uo);function Ds(e){if(e===uo)throw Error(Rt(174));return e}function cd(e,t){switch(ur(Yl,t),ur(Vl,e),ur(pi,uo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:cf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=cf(t,e)}fr(pi),ur(pi,t)}function La(){fr(pi),fr(Vl),fr(Yl)}function X1(e){Ds(Yl.current);var t=Ds(pi.current),r=cf(t,e.type);t!==r&&(ur(Vl,e),ur(pi,r))}function $d(e){Vl.current===e&&(fr(pi),fr(Vl))}var gr=ws(0);function Tu(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 d$=[];function fd(){for(var e=0;e<d$.length;e++)d$[e]._workInProgressVersionPrimary=null;d$.length=0}var nu=ji.ReactCurrentDispatcher,h$=ji.ReactCurrentBatchConfig,Hs=0,yr=null,Mr=null,Wr=null,Ru=!1,El=!1,Gl=0,q4=0;function Zr(){throw Error(Rt(321))}function dd(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!si(e[r],t[r]))return!1;return!0}function hd(e,t,r,n,i,s){if(Hs=s,yr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,nu.current=e===null||e.memoizedState===null?F4:j4,e=r(n,i),El){s=0;do{if(El=!1,Gl=0,25<=s)throw Error(Rt(301));s+=1,Wr=Mr=null,t.updateQueue=null,nu.current=B4,e=r(n,i)}while(El)}if(nu.current=zu,t=Mr!==null&&Mr.next!==null,Hs=0,Wr=Mr=yr=null,Ru=!1,t)throw Error(Rt(300));return e}function pd(){var e=Gl!==0;return Gl=0,e}function oi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wr===null?yr.memoizedState=Wr=e:Wr=Wr.next=e,Wr}function Gn(){if(Mr===null){var e=yr.alternate;e=e!==null?e.memoizedState:null}else e=Mr.next;var t=Wr===null?yr.memoizedState:Wr.next;if(t!==null)Wr=t,Mr=e;else{if(e===null)throw Error(Rt(310));Mr=e,e={memoizedState:Mr.memoizedState,baseState:Mr.baseState,baseQueue:Mr.baseQueue,queue:Mr.queue,next:null},Wr===null?yr.memoizedState=Wr=e:Wr=Wr.next=e}return Wr}function Kl(e,t){return typeof t=="function"?t(e):t}function p$(e){var t=Gn(),r=t.queue;if(r===null)throw Error(Rt(311));r.lastRenderedReducer=e;var n=Mr,i=n.baseQueue,s=r.pending;if(s!==null){if(i!==null){var l=i.next;i.next=s.next,s.next=l}n.baseQueue=i=s,r.pending=null}if(i!==null){s=i.next,n=n.baseState;var f=l=null,h=null,d=s;do{var k=d.lane;if((Hs&k)===k)h!==null&&(h=h.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),n=d.hasEagerState?d.eagerState:e(n,d.action);else{var C={lane:k,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};h===null?(f=h=C,l=n):h=h.next=C,yr.lanes|=k,Ws|=k}d=d.next}while(d!==null&&d!==s);h===null?l=n:h.next=f,si(n,t.memoizedState)||(vn=!0),t.memoizedState=n,t.baseState=l,t.baseQueue=h,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do s=i.lane,yr.lanes|=s,Ws|=s,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function m$(e){var t=Gn(),r=t.queue;if(r===null)throw Error(Rt(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,s=t.memoizedState;if(i!==null){r.pending=null;var l=i=i.next;do s=e(s,l.action),l=l.next;while(l!==i);si(s,t.memoizedState)||(vn=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function Q1(){}function Z1(e,t){var r=yr,n=Gn(),i=t(),s=!si(n.memoizedState,i);if(s&&(n.memoizedState=i,vn=!0),n=n.queue,md(eg.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||Wr!==null&&Wr.memoizedState.tag&1){if(r.flags|=2048,Xl(9,O1.bind(null,r,n,i,t),void 0,null),Vr===null)throw Error(Rt(349));Hs&30||J1(r,t,i)}return i}function J1(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 O1(e,t,r,n){t.value=r,t.getSnapshot=n,tg(t)&&rg(e)}function eg(e,t,r){return r(function(){tg(t)&&rg(e)})}function tg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!si(e,r)}catch{return!0}}function rg(e){var t=Di(e,1);t!==null&&ii(t,e,1,-1)}function gp(e){var t=oi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Kl,lastRenderedState:e},t.queue=e,e=e.dispatch=L4.bind(null,yr,e),[t.memoizedState,e]}function Xl(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 ng(){return Gn().memoizedState}function iu(e,t,r,n){var i=oi();yr.flags|=e,i.memoizedState=Xl(1|t,r,void 0,n===void 0?null:n)}function ic(e,t,r,n){var i=Gn();n=n===void 0?null:n;var s=void 0;if(Mr!==null){var l=Mr.memoizedState;if(s=l.destroy,n!==null&&dd(n,l.deps)){i.memoizedState=Xl(t,r,s,n);return}}yr.flags|=e,i.memoizedState=Xl(1|t,r,s,n)}function vp(e,t){return iu(8390656,8,e,t)}function md(e,t){return ic(2048,8,e,t)}function ig(e,t){return ic(4,2,e,t)}function sg(e,t){return ic(4,4,e,t)}function ag(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 lg(e,t,r){return r=r!=null?r.concat([e]):null,ic(4,4,ag.bind(null,t,e),r)}function _d(){}function og(e,t){var r=Gn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&dd(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function ug(e,t){var r=Gn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&dd(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function cg(e,t,r){return Hs&21?(si(r,t)||(r=p1(),yr.lanes|=r,Ws|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vn=!0),e.memoizedState=r)}function M4(e,t){var r=ar;ar=r!==0&&4>r?r:4,e(!0);var n=h$.transition;h$.transition={};try{e(!1),t()}finally{ar=r,h$.transition=n}}function $g(){return Gn().memoizedState}function D4(e,t,r){var n=$s(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},fg(e))dg(t,r);else if(r=G1(e,t,r,n),r!==null){var i=$n();ii(r,e,n,i),hg(r,t,n)}}function L4(e,t,r){var n=$s(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(fg(e))dg(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,f=s(l,r);if(i.hasEagerState=!0,i.eagerState=f,si(f,l)){var h=t.interleaved;h===null?(i.next=i,od(t)):(i.next=h.next,h.next=i),t.interleaved=i;return}}catch{}finally{}r=G1(e,t,i,n),r!==null&&(i=$n(),ii(r,e,n,i),hg(r,t,n))}}function fg(e){var t=e.alternate;return e===yr||t!==null&&t===yr}function dg(e,t){El=Ru=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function hg(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,K0(e,r)}}var zu={readContext:Yn,useCallback:Zr,useContext:Zr,useEffect:Zr,useImperativeHandle:Zr,useInsertionEffect:Zr,useLayoutEffect:Zr,useMemo:Zr,useReducer:Zr,useRef:Zr,useState:Zr,useDebugValue:Zr,useDeferredValue:Zr,useTransition:Zr,useMutableSource:Zr,useSyncExternalStore:Zr,useId:Zr,unstable_isNewReconciler:!1},F4={readContext:Yn,useCallback:function(e,t){return oi().memoizedState=[e,t===void 0?null:t],e},useContext:Yn,useEffect:vp,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,iu(4194308,4,ag.bind(null,t,e),r)},useLayoutEffect:function(e,t){return iu(4194308,4,e,t)},useInsertionEffect:function(e,t){return iu(4,2,e,t)},useMemo:function(e,t){var r=oi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=oi();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=D4.bind(null,yr,e),[n.memoizedState,e]},useRef:function(e){var t=oi();return e={current:e},t.memoizedState=e},useState:gp,useDebugValue:_d,useDeferredValue:function(e){return oi().memoizedState=e},useTransition:function(){var e=gp(!1),t=e[0];return e=M4.bind(null,e[1]),oi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=yr,i=oi();if(hr){if(r===void 0)throw Error(Rt(407));r=r()}else{if(r=t(),Vr===null)throw Error(Rt(349));Hs&30||J1(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,vp(eg.bind(null,n,s,e),[e]),n.flags|=2048,Xl(9,O1.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=oi(),t=Vr.identifierPrefix;if(hr){var r=Ri,n=Ti;r=(n&~(1<<32-ni(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Gl++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=q4++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},j4={readContext:Yn,useCallback:og,useContext:Yn,useEffect:md,useImperativeHandle:lg,useInsertionEffect:ig,useLayoutEffect:sg,useMemo:ug,useReducer:p$,useRef:ng,useState:function(){return p$(Kl)},useDebugValue:_d,useDeferredValue:function(e){var t=Gn();return cg(t,Mr.memoizedState,e)},useTransition:function(){var e=p$(Kl)[0],t=Gn().memoizedState;return[e,t]},useMutableSource:Q1,useSyncExternalStore:Z1,useId:$g,unstable_isNewReconciler:!1},B4={readContext:Yn,useCallback:og,useContext:Yn,useEffect:md,useImperativeHandle:lg,useInsertionEffect:ig,useLayoutEffect:sg,useMemo:ug,useReducer:m$,useRef:ng,useState:function(){return m$(Kl)},useDebugValue:_d,useDeferredValue:function(e){var t=Gn();return Mr===null?t.memoizedState=e:cg(t,Mr.memoizedState,e)},useTransition:function(){var e=m$(Kl)[0],t=Gn().memoizedState;return[e,t]},useMutableSource:Q1,useSyncExternalStore:Z1,useId:$g,unstable_isNewReconciler:!1};function Jn(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 zf(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 sc={isMounted:function(e){return(e=e._reactInternals)?Xs(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=$n(),i=$s(e),s=zi(n,i);s.payload=t,r!=null&&(s.callback=r),t=us(e,s,i),t!==null&&(ii(t,e,i,n),ru(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=$n(),i=$s(e),s=zi(n,i);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=us(e,s,i),t!==null&&(ii(t,e,i,n),ru(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=$n(),n=$s(e),i=zi(r,n);i.tag=2,t!=null&&(i.callback=t),t=us(e,i,n),t!==null&&(ii(t,e,n,r),ru(t,e,n))}};function yp(e,t,r,n,i,s,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,l):t.prototype&&t.prototype.isPureReactComponent?!Pl(r,n)||!Pl(i,s):!0}function pg(e,t,r){var n=!1,i=hs,s=t.contextType;return typeof s=="object"&&s!==null?s=Yn(s):(i=bn(t)?Ps:rn.current,n=t.contextTypes,s=(n=n!=null)?qa(e,i):hs),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=sc,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function bp(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&&sc.enqueueReplaceState(t,t.state,null)}function Nf(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},ud(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Yn(s):(s=bn(t)?Ps:rn.current,i.context=qa(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(zf(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&&sc.enqueueReplaceState(i,i.state,null),Cu(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Fa(e,t){try{var r="",n=t;do r+=h2(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 _$(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function If(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var P4=typeof WeakMap=="function"?WeakMap:Map;function mg(e,t,r){r=zi(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Iu||(Iu=!0,Hf=n),If(e,t)},r}function _g(e,t,r){r=zi(-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(){If(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){If(e,t),typeof n!="function"&&(cs===null?cs=new Set([this]):cs.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),r}function wp(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new P4;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=t3.bind(null,e,t,r),t.then(e,e))}function xp(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 kp(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=zi(-1,1),t.tag=2,us(r,t,1))),r.lanes|=1),e)}var U4=ji.ReactCurrentOwner,vn=!1;function ln(e,t,r,n){t.child=e===null?Y1(t,null,r,n):Da(t,e.child,r,n)}function Sp(e,t,r,n,i){r=r.render;var s=t.ref;return Ta(t,i),n=hd(e,t,r,n,s,i),r=pd(),e!==null&&!vn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Li(e,t,i)):(hr&&r&&rd(t),t.flags|=1,ln(e,t,n,i),t.child)}function Ep(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!Sd(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,gg(e,t,s,n,i)):(e=ou(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 l=s.memoizedProps;if(r=r.compare,r=r!==null?r:Pl,r(l,n)&&e.ref===t.ref)return Li(e,t,i)}return t.flags|=1,e=fs(s,n),e.ref=t.ref,e.return=t,t.child=e}function gg(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(Pl(s,n)&&e.ref===t.ref)if(vn=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(vn=!0);else return t.lanes=e.lanes,Li(e,t,i)}return qf(e,t,r,n,i)}function vg(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(wa,kn),kn|=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(wa,kn),kn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,ur(wa,kn),kn|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,ur(wa,kn),kn|=n;return ln(e,t,i,r),t.child}function yg(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function qf(e,t,r,n,i){var s=bn(r)?Ps:rn.current;return s=qa(t,s),Ta(t,i),r=hd(e,t,r,n,s,i),n=pd(),e!==null&&!vn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Li(e,t,i)):(hr&&n&&rd(t),t.flags|=1,ln(e,t,r,i),t.child)}function Ap(e,t,r,n,i){if(bn(r)){var s=!0;xu(t)}else s=!1;if(Ta(t,i),t.stateNode===null)su(e,t),pg(t,r,n),Nf(t,r,n,i),n=!0;else if(e===null){var l=t.stateNode,f=t.memoizedProps;l.props=f;var h=l.context,d=r.contextType;typeof d=="object"&&d!==null?d=Yn(d):(d=bn(r)?Ps:rn.current,d=qa(t,d));var k=r.getDerivedStateFromProps,C=typeof k=="function"||typeof l.getSnapshotBeforeUpdate=="function";C||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(f!==n||h!==d)&&bp(t,l,n,d),Ji=!1;var N=t.memoizedState;l.state=N,Cu(t,n,l,i),h=t.memoizedState,f!==n||N!==h||yn.current||Ji?(typeof k=="function"&&(zf(t,r,k,n),h=t.memoizedState),(f=Ji||yp(t,r,f,n,N,h,d))?(C||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=h),l.props=n,l.state=h,l.context=d,n=f):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{l=t.stateNode,K1(e,t),f=t.memoizedProps,d=t.type===t.elementType?f:Jn(t.type,f),l.props=d,C=t.pendingProps,N=l.context,h=r.contextType,typeof h=="object"&&h!==null?h=Yn(h):(h=bn(r)?Ps:rn.current,h=qa(t,h));var U=r.getDerivedStateFromProps;(k=typeof U=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(f!==C||N!==h)&&bp(t,l,n,h),Ji=!1,N=t.memoizedState,l.state=N,Cu(t,n,l,i);var O=t.memoizedState;f!==C||N!==O||yn.current||Ji?(typeof U=="function"&&(zf(t,r,U,n),O=t.memoizedState),(d=Ji||yp(t,r,d,n,N,O,h)||!1)?(k||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(n,O,h),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(n,O,h)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||f===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=O),l.props=n,l.state=O,l.context=h,n=d):(typeof l.componentDidUpdate!="function"||f===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),n=!1)}return Mf(e,t,r,n,s,i)}function Mf(e,t,r,n,i,s){yg(e,t);var l=(t.flags&128)!==0;if(!n&&!l)return i&&fp(t,r,!1),Li(e,t,s);n=t.stateNode,U4.current=t;var f=l&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&l?(t.child=Da(t,e.child,null,s),t.child=Da(t,null,f,s)):ln(e,t,f,s),t.memoizedState=n.state,i&&fp(t,r,!0),t.child}function bg(e){var t=e.stateNode;t.pendingContext?$p(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$p(e,t.context,!1),cd(e,t.containerInfo)}function Cp(e,t,r,n,i){return Ma(),id(i),t.flags|=256,ln(e,t,r,n),t.child}var Df={dehydrated:null,treeContext:null,retryLane:0};function Lf(e){return{baseLanes:e,cachePool:null,transitions:null}}function wg(e,t,r){var n=t.pendingProps,i=gr.current,s=!1,l=(t.flags&128)!==0,f;if((f=l)||(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 Tf(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):(l=n.children,e=n.fallback,s?(n=t.mode,s=t.child,l={mode:"hidden",children:l},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=l):s=oc(l,n,0,null),e=Bs(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Lf(r),t.memoizedState=Df,e):gd(t,l));if(i=e.memoizedState,i!==null&&(f=i.dehydrated,f!==null))return H4(e,t,l,n,f,i,r);if(s){s=n.fallback,l=t.mode,i=e.child,f=i.sibling;var h={mode:"hidden",children:n.children};return!(l&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=h,t.deletions=null):(n=fs(i,h),n.subtreeFlags=i.subtreeFlags&14680064),f!==null?s=fs(f,s):(s=Bs(s,l,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,l=e.child.memoizedState,l=l===null?Lf(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Df,n}return s=e.child,e=s.sibling,n=fs(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 gd(e,t){return t=oc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function No(e,t,r,n){return n!==null&&id(n),Da(t,e.child,null,r),e=gd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function H4(e,t,r,n,i,s,l){if(r)return t.flags&256?(t.flags&=-257,n=_$(Error(Rt(422))),No(e,t,l,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=oc({mode:"visible",children:n.children},i,0,null),s=Bs(s,i,l,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&Da(t,e.child,null,l),t.child.memoizedState=Lf(l),t.memoizedState=Df,s);if(!(t.mode&1))return No(e,t,l,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var f=n.dgst;return n=f,s=Error(Rt(419)),n=_$(s,n,void 0),No(e,t,l,n)}if(f=(l&e.childLanes)!==0,vn||f){if(n=Vr,n!==null){switch(l&-l){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|l)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Di(e,i),ii(n,e,i,-1))}return kd(),n=_$(Error(Rt(421))),No(e,t,l,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=r3.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,En=os(i.nextSibling),Cn=t,hr=!0,ei=null,e!==null&&(jn[Bn++]=Ti,jn[Bn++]=Ri,jn[Bn++]=Us,Ti=e.id,Ri=e.overflow,Us=t),t=gd(t,n.children),t.flags|=4096,t)}function Tp(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Rf(e.return,t,r)}function g$(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 xg(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(ln(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&&Tp(e,r,t);else if(e.tag===19)Tp(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&&Tu(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),g$(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&&Tu(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}g$(t,!0,r,null,s);break;case"together":g$(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function su(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Li(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ws|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Rt(153));if(t.child!==null){for(e=t.child,r=fs(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=fs(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function W4(e,t,r){switch(t.tag){case 3:bg(t),Ma();break;case 5:X1(t);break;case 1:bn(t.type)&&xu(t);break;case 4:cd(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ur(Eu,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?wg(e,t,r):(ur(gr,gr.current&1),e=Li(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 xg(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,vg(e,t,r)}return Li(e,t,r)}var kg,Ff,Sg,Eg;kg=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}};Ff=function(){};Sg=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Ds(pi.current);var s=null;switch(r){case"input":i=af(e,i),n=af(e,n),s=[];break;case"select":i=br({},i,{value:void 0}),n=br({},n,{value:void 0}),s=[];break;case"textarea":i=uf(e,i),n=uf(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=bu)}$f(r,n);var l;r=null;for(d in i)if(!n.hasOwnProperty(d)&&i.hasOwnProperty(d)&&i[d]!=null)if(d==="style"){var f=i[d];for(l in f)f.hasOwnProperty(l)&&(r||(r={}),r[l]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(ql.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in n){var h=n[d];if(f=i?.[d],n.hasOwnProperty(d)&&h!==f&&(h!=null||f!=null))if(d==="style")if(f){for(l in f)!f.hasOwnProperty(l)||h&&h.hasOwnProperty(l)||(r||(r={}),r[l]="");for(l in h)h.hasOwnProperty(l)&&f[l]!==h[l]&&(r||(r={}),r[l]=h[l])}else r||(s||(s=[]),s.push(d,r)),r=h;else d==="dangerouslySetInnerHTML"?(h=h?h.__html:void 0,f=f?f.__html:void 0,h!=null&&f!==h&&(s=s||[]).push(d,h)):d==="children"?typeof h!="string"&&typeof h!="number"||(s=s||[]).push(d,""+h):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(ql.hasOwnProperty(d)?(h!=null&&d==="onScroll"&&cr("scroll",e),s||f===h||(s=[])):(s=s||[]).push(d,h))}r&&(s=s||[]).push("style",r);var d=s;(t.updateQueue=d)&&(t.flags|=4)}};Eg=function(e,t,r,n){r!==n&&(t.flags|=4)};function ul(e,t){if(!hr)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 Jr(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 V4(e,t,r){var n=t.pendingProps;switch(nd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jr(t),null;case 1:return bn(t.type)&&wu(),Jr(t),null;case 3:return n=t.stateNode,La(),fr(yn),fr(rn),fd(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ro(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ei!==null&&(Yf(ei),ei=null))),Ff(e,t),Jr(t),null;case 5:$d(t);var i=Ds(Yl.current);if(r=t.type,e!==null&&t.stateNode!=null)Sg(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Rt(166));return Jr(t),null}if(e=Ds(pi.current),Ro(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[ci]=t,n[Wl]=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<_l.length;i++)cr(_l[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":Fh(n,s),cr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},cr("invalid",n);break;case"textarea":Bh(n,s),cr("invalid",n)}$f(r,s),i=null;for(var l in s)if(s.hasOwnProperty(l)){var f=s[l];l==="children"?typeof f=="string"?n.textContent!==f&&(s.suppressHydrationWarning!==!0&&To(n.textContent,f,e),i=["children",f]):typeof f=="number"&&n.textContent!==""+f&&(s.suppressHydrationWarning!==!0&&To(n.textContent,f,e),i=["children",""+f]):ql.hasOwnProperty(l)&&f!=null&&l==="onScroll"&&cr("scroll",n)}switch(r){case"input":bo(n),jh(n,s,!0);break;case"textarea":bo(n),Ph(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=bu)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=e1(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),r==="select"&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[ci]=t,e[Wl]=n,kg(e,t,!1,!1),t.stateNode=e;e:{switch(l=ff(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<_l.length;i++)cr(_l[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":Fh(e,n),i=af(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":Bh(e,n),i=uf(e,n),cr("invalid",e);break;default:i=n}$f(r,i),f=i;for(s in f)if(f.hasOwnProperty(s)){var h=f[s];s==="style"?n1(e,h):s==="dangerouslySetInnerHTML"?(h=h?h.__html:void 0,h!=null&&t1(e,h)):s==="children"?typeof h=="string"?(r!=="textarea"||h!=="")&&Ml(e,h):typeof h=="number"&&Ml(e,""+h):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ql.hasOwnProperty(s)?h!=null&&s==="onScroll"&&cr("scroll",e):h!=null&&U0(e,s,h,l))}switch(r){case"input":bo(e),jh(e,n,!1);break;case"textarea":bo(e),Ph(e);break;case"option":n.value!=null&&e.setAttribute("value",""+ds(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=bu)}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 Jr(t),null;case 6:if(e&&t.stateNode!=null)Eg(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(Rt(166));if(r=Ds(Yl.current),Ds(pi.current),Ro(t)){if(n=t.stateNode,r=t.memoizedProps,n[ci]=t,(s=n.nodeValue!==r)&&(e=Cn,e!==null))switch(e.tag){case 3:To(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&To(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[ci]=t,t.stateNode=n}return Jr(t),null;case 13:if(fr(gr),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(hr&&En!==null&&t.mode&1&&!(t.flags&128))W1(),Ma(),t.flags|=98560,s=!1;else if(s=Ro(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(Rt(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Rt(317));s[ci]=t}else Ma(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Jr(t),s=!1}else ei!==null&&(Yf(ei),ei=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?Lr===0&&(Lr=3):kd())),t.updateQueue!==null&&(t.flags|=4),Jr(t),null);case 4:return La(),Ff(e,t),e===null&&Ul(t.stateNode.containerInfo),Jr(t),null;case 10:return ld(t.type._context),Jr(t),null;case 17:return bn(t.type)&&wu(),Jr(t),null;case 19:if(fr(gr),s=t.memoizedState,s===null)return Jr(t),null;if(n=(t.flags&128)!==0,l=s.rendering,l===null)if(n)ul(s,!1);else{if(Lr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Tu(e),l!==null){for(t.flags|=128,ul(s,!1),n=l.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,l=s.alternate,l===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=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.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()>ja&&(t.flags|=128,n=!0,ul(s,!1),t.lanes=4194304)}else{if(!n)if(e=Tu(l),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ul(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!hr)return Jr(t),null}else 2*Ar()-s.renderingStartTime>ja&&r!==1073741824&&(t.flags|=128,n=!0,ul(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(r=s.last,r!==null?r.sibling=l:t.child=l,s.last=l)}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):(Jr(t),null);case 22:case 23:return xd(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?kn&1073741824&&(Jr(t),t.subtreeFlags&6&&(t.flags|=8192)):Jr(t),null;case 24:return null;case 25:return null}throw Error(Rt(156,t.tag))}function Y4(e,t){switch(nd(t),t.tag){case 1:return bn(t.type)&&wu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return La(),fr(yn),fr(rn),fd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $d(t),null;case 13:if(fr(gr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Rt(340));Ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fr(gr),null;case 4:return La(),null;case 10:return ld(t.type._context),null;case 22:case 23:return xd(),null;case 24:return null;default:return null}}var Io=!1,Or=!1,G4=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function ba(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){kr(e,t,n)}else r.current=null}function jf(e,t,r){try{r()}catch(n){kr(e,t,n)}}var Rp=!1;function K4(e,t){if(wf=gu,e=z1(),td(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 l=0,f=-1,h=-1,d=0,k=0,C=e,N=null;t:for(;;){for(var U;C!==r||i!==0&&C.nodeType!==3||(f=l+i),C!==s||n!==0&&C.nodeType!==3||(h=l+n),C.nodeType===3&&(l+=C.nodeValue.length),(U=C.firstChild)!==null;)N=C,C=U;for(;;){if(C===e)break t;if(N===r&&++d===i&&(f=l),N===s&&++k===n&&(h=l),(U=C.nextSibling)!==null)break;C=N,N=C.parentNode}C=U}r=f===-1||h===-1?null:{start:f,end:h}}else r=null}r=r||{start:0,end:0}}else r=null;for(xf={focusedElem:e,selectionRange:r},gu=!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 O=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(O!==null){var j=O.memoizedProps,D=O.memoizedState,G=t.stateNode,de=G.getSnapshotBeforeUpdate(t.elementType===t.type?j:Jn(t.type,j),D);G.__reactInternalSnapshotBeforeUpdate=de}break;case 3:var ne=t.stateNode.containerInfo;ne.nodeType===1?ne.textContent="":ne.nodeType===9&&ne.documentElement&&ne.removeChild(ne.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Rt(163))}}catch(me){kr(t,t.return,me)}if(e=t.sibling,e!==null){e.return=t.return,Ft=e;break}Ft=t.return}return O=Rp,Rp=!1,O}function Al(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&&jf(t,r,s)}i=i.next}while(i!==n)}}function ac(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 Bf(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 Ag(e){var t=e.alternate;t!==null&&(e.alternate=null,Ag(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ci],delete t[Wl],delete t[Ef],delete t[R4],delete t[z4])),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 Cg(e){return e.tag===5||e.tag===3||e.tag===4}function zp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cg(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 Pf(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=bu));else if(n!==4&&(e=e.child,e!==null))for(Pf(e,t,r),e=e.sibling;e!==null;)Pf(e,t,r),e=e.sibling}function Uf(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(Uf(e,t,r),e=e.sibling;e!==null;)Uf(e,t,r),e=e.sibling}var Yr=null,On=!1;function Vi(e,t,r){for(r=r.child;r!==null;)Tg(e,t,r),r=r.sibling}function Tg(e,t,r){if(hi&&typeof hi.onCommitFiberUnmount=="function")try{hi.onCommitFiberUnmount(Ju,r)}catch{}switch(r.tag){case 5:Or||ba(r,t);case 6:var n=Yr,i=On;Yr=null,Vi(e,t,r),Yr=n,On=i,Yr!==null&&(On?(e=Yr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Yr.removeChild(r.stateNode));break;case 18:Yr!==null&&(On?(e=Yr,r=r.stateNode,e.nodeType===8?$$(e.parentNode,r):e.nodeType===1&&$$(e,r),jl(e)):$$(Yr,r.stateNode));break;case 4:n=Yr,i=On,Yr=r.stateNode.containerInfo,On=!0,Vi(e,t,r),Yr=n,On=i;break;case 0:case 11:case 14:case 15:if(!Or&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,l=s.destroy;s=s.tag,l!==void 0&&(s&2||s&4)&&jf(r,t,l),i=i.next}while(i!==n)}Vi(e,t,r);break;case 1:if(!Or&&(ba(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(f){kr(r,t,f)}Vi(e,t,r);break;case 21:Vi(e,t,r);break;case 22:r.mode&1?(Or=(n=Or)||r.memoizedState!==null,Vi(e,t,r),Or=n):Vi(e,t,r);break;default:Vi(e,t,r)}}function Np(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new G4),t.forEach(function(n){var i=n3.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Qn(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,l=t,f=l;e:for(;f!==null;){switch(f.tag){case 5:Yr=f.stateNode,On=!1;break e;case 3:Yr=f.stateNode.containerInfo,On=!0;break e;case 4:Yr=f.stateNode.containerInfo,On=!0;break e}f=f.return}if(Yr===null)throw Error(Rt(160));Tg(s,l,i),Yr=null,On=!1;var h=i.alternate;h!==null&&(h.return=null),i.return=null}catch(d){kr(i,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Rg(t,e),t=t.sibling}function Rg(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Qn(t,e),ai(e),n&4){try{Al(3,e,e.return),ac(3,e)}catch(j){kr(e,e.return,j)}try{Al(5,e,e.return)}catch(j){kr(e,e.return,j)}}break;case 1:Qn(t,e),ai(e),n&512&&r!==null&&ba(r,r.return);break;case 5:if(Qn(t,e),ai(e),n&512&&r!==null&&ba(r,r.return),e.flags&32){var i=e.stateNode;try{Ml(i,"")}catch(j){kr(e,e.return,j)}}if(n&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,l=r!==null?r.memoizedProps:s,f=e.type,h=e.updateQueue;if(e.updateQueue=null,h!==null)try{f==="input"&&s.type==="radio"&&s.name!=null&&J_(i,s),ff(f,l);var d=ff(f,s);for(l=0;l<h.length;l+=2){var k=h[l],C=h[l+1];k==="style"?n1(i,C):k==="dangerouslySetInnerHTML"?t1(i,C):k==="children"?Ml(i,C):U0(i,k,C,d)}switch(f){case"input":lf(i,s);break;case"textarea":O_(i,s);break;case"select":var N=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var U=s.value;U!=null?Sa(i,!!s.multiple,U,!1):N!==!!s.multiple&&(s.defaultValue!=null?Sa(i,!!s.multiple,s.defaultValue,!0):Sa(i,!!s.multiple,s.multiple?[]:"",!1))}i[Wl]=s}catch(j){kr(e,e.return,j)}}break;case 6:if(Qn(t,e),ai(e),n&4){if(e.stateNode===null)throw Error(Rt(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(j){kr(e,e.return,j)}}break;case 3:if(Qn(t,e),ai(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{jl(t.containerInfo)}catch(j){kr(e,e.return,j)}break;case 4:Qn(t,e),ai(e);break;case 13:Qn(t,e),ai(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(bd=Ar())),n&4&&Np(e);break;case 22:if(k=r!==null&&r.memoizedState!==null,e.mode&1?(Or=(d=Or)||k,Qn(t,e),Or=d):Qn(t,e),ai(e),n&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!k&&e.mode&1)for(Ft=e,k=e.child;k!==null;){for(C=Ft=k;Ft!==null;){switch(N=Ft,U=N.child,N.tag){case 0:case 11:case 14:case 15:Al(4,N,N.return);break;case 1:ba(N,N.return);var O=N.stateNode;if(typeof O.componentWillUnmount=="function"){n=N,r=N.return;try{t=n,O.props=t.memoizedProps,O.state=t.memoizedState,O.componentWillUnmount()}catch(j){kr(n,r,j)}}break;case 5:ba(N,N.return);break;case 22:if(N.memoizedState!==null){qp(C);continue}}U!==null?(U.return=N,Ft=U):qp(C)}k=k.sibling}e:for(k=null,C=e;;){if(C.tag===5){if(k===null){k=C;try{i=C.stateNode,d?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(f=C.stateNode,h=C.memoizedProps.style,l=h!=null&&h.hasOwnProperty("display")?h.display:null,f.style.display=r1("display",l))}catch(j){kr(e,e.return,j)}}}else if(C.tag===6){if(k===null)try{C.stateNode.nodeValue=d?"":C.memoizedProps}catch(j){kr(e,e.return,j)}}else if((C.tag!==22&&C.tag!==23||C.memoizedState===null||C===e)&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===e)break e;for(;C.sibling===null;){if(C.return===null||C.return===e)break e;k===C&&(k=null),C=C.return}k===C&&(k=null),C.sibling.return=C.return,C=C.sibling}}break;case 19:Qn(t,e),ai(e),n&4&&Np(e);break;case 21:break;default:Qn(t,e),ai(e)}}function ai(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Cg(r)){var n=r;break e}r=r.return}throw Error(Rt(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Ml(i,""),n.flags&=-33);var s=zp(e);Uf(e,s,i);break;case 3:case 4:var l=n.stateNode.containerInfo,f=zp(e);Pf(e,f,l);break;default:throw Error(Rt(161))}}catch(h){kr(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function X4(e,t,r){Ft=e,zg(e)}function zg(e,t,r){for(var n=(e.mode&1)!==0;Ft!==null;){var i=Ft,s=i.child;if(i.tag===22&&n){var l=i.memoizedState!==null||Io;if(!l){var f=i.alternate,h=f!==null&&f.memoizedState!==null||Or;f=Io;var d=Or;if(Io=l,(Or=h)&&!d)for(Ft=i;Ft!==null;)l=Ft,h=l.child,l.tag===22&&l.memoizedState!==null?Mp(i):h!==null?(h.return=l,Ft=h):Mp(i);for(;s!==null;)Ft=s,zg(s),s=s.sibling;Ft=i,Io=f,Or=d}Ip(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,Ft=s):Ip(e)}}function Ip(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:Or||ac(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Or)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Jn(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&_p(t,s,n);break;case 3:var l=t.updateQueue;if(l!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}_p(t,l,r)}break;case 5:var f=t.stateNode;if(r===null&&t.flags&4){r=f;var h=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":h.autoFocus&&r.focus();break;case"img":h.src&&(r.src=h.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var k=d.memoizedState;if(k!==null){var C=k.dehydrated;C!==null&&jl(C)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Rt(163))}Or||t.flags&512&&Bf(t)}catch(N){kr(t,t.return,N)}}if(t===e){Ft=null;break}if(r=t.sibling,r!==null){r.return=t.return,Ft=r;break}Ft=t.return}}function qp(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 Mp(e){for(;Ft!==null;){var t=Ft;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ac(4,t)}catch(h){kr(t,r,h)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(h){kr(t,i,h)}}var s=t.return;try{Bf(t)}catch(h){kr(t,s,h)}break;case 5:var l=t.return;try{Bf(t)}catch(h){kr(t,l,h)}}}catch(h){kr(t,t.return,h)}if(t===e){Ft=null;break}var f=t.sibling;if(f!==null){f.return=t.return,Ft=f;break}Ft=t.return}}var Q4=Math.ceil,Nu=ji.ReactCurrentDispatcher,vd=ji.ReactCurrentOwner,Hn=ji.ReactCurrentBatchConfig,rr=0,Vr=null,Rr=null,Kr=0,kn=0,wa=ws(0),Lr=0,Ql=null,Ws=0,lc=0,yd=0,Cl=null,gn=null,bd=0,ja=1/0,Ei=null,Iu=!1,Hf=null,cs=null,qo=!1,ns=null,qu=0,Tl=0,Wf=null,au=-1,lu=0;function $n(){return rr&6?Ar():au!==-1?au:au=Ar()}function $s(e){return e.mode&1?rr&2&&Kr!==0?Kr&-Kr:I4.transition!==null?(lu===0&&(lu=p1()),lu):(e=ar,e!==0||(e=window.event,e=e===void 0?16:w1(e.type)),e):1}function ii(e,t,r,n){if(50<Tl)throw Tl=0,Wf=null,Error(Rt(185));ao(e,r,n),(!(rr&2)||e!==Vr)&&(e===Vr&&(!(rr&2)&&(lc|=r),Lr===4&&es(e,Kr)),wn(e,n),r===1&&rr===0&&!(t.mode&1)&&(ja=Ar()+500,nc&&xs()))}function wn(e,t){var r=e.callbackNode;I2(e,t);var n=_u(e,e===Vr?Kr:0);if(n===0)r!==null&&Wh(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Wh(r),t===1)e.tag===0?N4(Dp.bind(null,e)):P1(Dp.bind(null,e)),C4(function(){!(rr&6)&&xs()}),r=null;else{switch(m1(n)){case 1:r=G0;break;case 4:r=d1;break;case 16:r=mu;break;case 536870912:r=h1;break;default:r=mu}r=jg(r,Ng.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Ng(e,t){if(au=-1,lu=0,rr&6)throw Error(Rt(327));var r=e.callbackNode;if(Ra()&&e.callbackNode!==r)return null;var n=_u(e,e===Vr?Kr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Mu(e,n);else{t=n;var i=rr;rr|=2;var s=qg();(Vr!==e||Kr!==t)&&(Ei=null,ja=Ar()+500,js(e,t));do try{O4();break}catch(f){Ig(e,f)}while(!0);ad(),Nu.current=s,rr=i,Rr!==null?t=0:(Vr=null,Kr=0,t=Lr)}if(t!==0){if(t===2&&(i=_f(e),i!==0&&(n=i,t=Vf(e,i))),t===1)throw r=Ql,js(e,0),es(e,n),wn(e,Ar()),r;if(t===6)es(e,n);else{if(i=e.current.alternate,!(n&30)&&!Z4(i)&&(t=Mu(e,n),t===2&&(s=_f(e),s!==0&&(n=s,t=Vf(e,s))),t===1))throw r=Ql,js(e,0),es(e,n),wn(e,Ar()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(Rt(345));case 2:zs(e,gn,Ei);break;case 3:if(es(e,n),(n&130023424)===n&&(t=bd+500-Ar(),10<t)){if(_u(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){$n(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Sf(zs.bind(null,e,gn,Ei),t);break}zs(e,gn,Ei);break;case 4:if(es(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var l=31-ni(n);s=1<<l,l=t[l],l>i&&(i=l),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*Q4(n/1960))-n,10<n){e.timeoutHandle=Sf(zs.bind(null,e,gn,Ei),n);break}zs(e,gn,Ei);break;case 5:zs(e,gn,Ei);break;default:throw Error(Rt(329))}}}return wn(e,Ar()),e.callbackNode===r?Ng.bind(null,e):null}function Vf(e,t){var r=Cl;return e.current.memoizedState.isDehydrated&&(js(e,t).flags|=256),e=Mu(e,t),e!==2&&(t=gn,gn=r,t!==null&&Yf(t)),e}function Yf(e){gn===null?gn=e:gn.push.apply(gn,e)}function Z4(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(!si(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 es(e,t){for(t&=~yd,t&=~lc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-ni(t),n=1<<r;e[r]=-1,t&=~n}}function Dp(e){if(rr&6)throw Error(Rt(327));Ra();var t=_u(e,0);if(!(t&1))return wn(e,Ar()),null;var r=Mu(e,t);if(e.tag!==0&&r===2){var n=_f(e);n!==0&&(t=n,r=Vf(e,n))}if(r===1)throw r=Ql,js(e,0),es(e,t),wn(e,Ar()),r;if(r===6)throw Error(Rt(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zs(e,gn,Ei),wn(e,Ar()),null}function wd(e,t){var r=rr;rr|=1;try{return e(t)}finally{rr=r,rr===0&&(ja=Ar()+500,nc&&xs())}}function Vs(e){ns!==null&&ns.tag===0&&!(rr&6)&&Ra();var t=rr;rr|=1;var r=Hn.transition,n=ar;try{if(Hn.transition=null,ar=1,e)return e()}finally{ar=n,Hn.transition=r,rr=t,!(rr&6)&&xs()}}function xd(){kn=wa.current,fr(wa)}function js(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,A4(r)),Rr!==null)for(r=Rr.return;r!==null;){var n=r;switch(nd(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&wu();break;case 3:La(),fr(yn),fr(rn),fd();break;case 5:$d(n);break;case 4:La();break;case 13:fr(gr);break;case 19:fr(gr);break;case 10:ld(n.type._context);break;case 22:case 23:xd()}r=r.return}if(Vr=e,Rr=e=fs(e.current,null),Kr=kn=t,Lr=0,Ql=null,yd=lc=Ws=0,gn=Cl=null,Ms!==null){for(t=0;t<Ms.length;t++)if(r=Ms[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,s=r.pending;if(s!==null){var l=s.next;s.next=i,n.next=l}r.pending=n}Ms=null}return e}function Ig(e,t){do{var r=Rr;try{if(ad(),nu.current=zu,Ru){for(var n=yr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Ru=!1}if(Hs=0,Wr=Mr=yr=null,El=!1,Gl=0,vd.current=null,r===null||r.return===null){Lr=1,Ql=t,Rr=null;break}e:{var s=e,l=r.return,f=r,h=t;if(t=Kr,f.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){var d=h,k=f,C=k.tag;if(!(k.mode&1)&&(C===0||C===11||C===15)){var N=k.alternate;N?(k.updateQueue=N.updateQueue,k.memoizedState=N.memoizedState,k.lanes=N.lanes):(k.updateQueue=null,k.memoizedState=null)}var U=xp(l);if(U!==null){U.flags&=-257,kp(U,l,f,s,t),U.mode&1&&wp(s,d,t),t=U,h=d;var O=t.updateQueue;if(O===null){var j=new Set;j.add(h),t.updateQueue=j}else O.add(h);break e}else{if(!(t&1)){wp(s,d,t),kd();break e}h=Error(Rt(426))}}else if(hr&&f.mode&1){var D=xp(l);if(D!==null){!(D.flags&65536)&&(D.flags|=256),kp(D,l,f,s,t),id(Fa(h,f));break e}}s=h=Fa(h,f),Lr!==4&&(Lr=2),Cl===null?Cl=[s]:Cl.push(s),s=l;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var G=mg(s,h,t);mp(s,G);break e;case 1:f=h;var de=s.type,ne=s.stateNode;if(!(s.flags&128)&&(typeof de.getDerivedStateFromError=="function"||ne!==null&&typeof ne.componentDidCatch=="function"&&(cs===null||!cs.has(ne)))){s.flags|=65536,t&=-t,s.lanes|=t;var me=_g(s,f,t);mp(s,me);break e}}s=s.return}while(s!==null)}Dg(r)}catch(Q){t=Q,Rr===r&&r!==null&&(Rr=r=r.return);continue}break}while(!0)}function qg(){var e=Nu.current;return Nu.current=zu,e===null?zu:e}function kd(){(Lr===0||Lr===3||Lr===2)&&(Lr=4),Vr===null||!(Ws&268435455)&&!(lc&268435455)||es(Vr,Kr)}function Mu(e,t){var r=rr;rr|=2;var n=qg();(Vr!==e||Kr!==t)&&(Ei=null,js(e,t));do try{J4();break}catch(i){Ig(e,i)}while(!0);if(ad(),rr=r,Nu.current=n,Rr!==null)throw Error(Rt(261));return Vr=null,Kr=0,Lr}function J4(){for(;Rr!==null;)Mg(Rr)}function O4(){for(;Rr!==null&&!k2();)Mg(Rr)}function Mg(e){var t=Fg(e.alternate,e,kn);e.memoizedProps=e.pendingProps,t===null?Dg(e):Rr=t,vd.current=null}function Dg(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Y4(r,t),r!==null){r.flags&=32767,Rr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Lr=6,Rr=null;return}}else if(r=V4(r,t,kn),r!==null){Rr=r;return}if(t=t.sibling,t!==null){Rr=t;return}Rr=t=e}while(t!==null);Lr===0&&(Lr=5)}function zs(e,t,r){var n=ar,i=Hn.transition;try{Hn.transition=null,ar=1,e3(e,t,r,n)}finally{Hn.transition=i,ar=n}return null}function e3(e,t,r,n){do Ra();while(ns!==null);if(rr&6)throw Error(Rt(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(Rt(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(q2(e,s),e===Vr&&(Rr=Vr=null,Kr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||qo||(qo=!0,jg(mu,function(){return Ra(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=Hn.transition,Hn.transition=null;var l=ar;ar=1;var f=rr;rr|=4,vd.current=null,K4(e,r),Rg(r,e),y4(xf),gu=!!wf,xf=wf=null,e.current=r,X4(r),S2(),rr=f,ar=l,Hn.transition=s}else e.current=r;if(qo&&(qo=!1,ns=e,qu=i),s=e.pendingLanes,s===0&&(cs=null),C2(r.stateNode),wn(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(Iu)throw Iu=!1,e=Hf,Hf=null,e;return qu&1&&e.tag!==0&&Ra(),s=e.pendingLanes,s&1?e===Wf?Tl++:(Tl=0,Wf=e):Tl=0,xs(),null}function Ra(){if(ns!==null){var e=m1(qu),t=Hn.transition,r=ar;try{if(Hn.transition=null,ar=16>e?16:e,ns===null)var n=!1;else{if(e=ns,ns=null,qu=0,rr&6)throw Error(Rt(331));var i=rr;for(rr|=4,Ft=e.current;Ft!==null;){var s=Ft,l=s.child;if(Ft.flags&16){var f=s.deletions;if(f!==null){for(var h=0;h<f.length;h++){var d=f[h];for(Ft=d;Ft!==null;){var k=Ft;switch(k.tag){case 0:case 11:case 15:Al(8,k,s)}var C=k.child;if(C!==null)C.return=k,Ft=C;else for(;Ft!==null;){k=Ft;var N=k.sibling,U=k.return;if(Ag(k),k===d){Ft=null;break}if(N!==null){N.return=U,Ft=N;break}Ft=U}}}var O=s.alternate;if(O!==null){var j=O.child;if(j!==null){O.child=null;do{var D=j.sibling;j.sibling=null,j=D}while(j!==null)}}Ft=s}}if(s.subtreeFlags&2064&&l!==null)l.return=s,Ft=l;else e:for(;Ft!==null;){if(s=Ft,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Al(9,s,s.return)}var G=s.sibling;if(G!==null){G.return=s.return,Ft=G;break e}Ft=s.return}}var de=e.current;for(Ft=de;Ft!==null;){l=Ft;var ne=l.child;if(l.subtreeFlags&2064&&ne!==null)ne.return=l,Ft=ne;else e:for(l=de;Ft!==null;){if(f=Ft,f.flags&2048)try{switch(f.tag){case 0:case 11:case 15:ac(9,f)}}catch(Q){kr(f,f.return,Q)}if(f===l){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,xs(),hi&&typeof hi.onPostCommitFiberRoot=="function")try{hi.onPostCommitFiberRoot(Ju,e)}catch{}n=!0}return n}finally{ar=r,Hn.transition=t}}return!1}function Lp(e,t,r){t=Fa(r,t),t=mg(e,t,1),e=us(e,t,1),t=$n(),e!==null&&(ao(e,1,t),wn(e,t))}function kr(e,t,r){if(e.tag===3)Lp(e,e,r);else for(;t!==null;){if(t.tag===3){Lp(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(cs===null||!cs.has(n))){e=Fa(r,e),e=_g(t,e,1),t=us(t,e,1),e=$n(),t!==null&&(ao(t,1,e),wn(t,e));break}}t=t.return}}function t3(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=$n(),e.pingedLanes|=e.suspendedLanes&r,Vr===e&&(Kr&r)===r&&(Lr===4||Lr===3&&(Kr&130023424)===Kr&&500>Ar()-bd?js(e,0):yd|=r),wn(e,t)}function Lg(e,t){t===0&&(e.mode&1?(t=ko,ko<<=1,!(ko&130023424)&&(ko=4194304)):t=1);var r=$n();e=Di(e,t),e!==null&&(ao(e,t,r),wn(e,r))}function r3(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Lg(e,r)}function n3(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(Rt(314))}n!==null&&n.delete(t),Lg(e,r)}var Fg;Fg=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||yn.current)vn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return vn=!1,W4(e,t,r);vn=!!(e.flags&131072)}else vn=!1,hr&&t.flags&1048576&&U1(t,Su,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;su(e,t),e=t.pendingProps;var i=qa(t,rn.current);Ta(t,r),i=hd(null,t,n,e,i,r);var s=pd();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,bn(n)?(s=!0,xu(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ud(t),i.updater=sc,t.stateNode=i,i._reactInternals=t,Nf(t,n,e,r),t=Mf(null,t,n,!0,s,r)):(t.tag=0,hr&&s&&rd(t),ln(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(su(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=s3(n),e=Jn(n,e),i){case 0:t=qf(null,t,n,e,r);break e;case 1:t=Ap(null,t,n,e,r);break e;case 11:t=Sp(null,t,n,e,r);break e;case 14:t=Ep(null,t,n,Jn(n.type,e),r);break e}throw Error(Rt(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Jn(n,i),qf(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Jn(n,i),Ap(e,t,n,i,r);case 3:e:{if(bg(t),e===null)throw Error(Rt(387));n=t.pendingProps,s=t.memoizedState,i=s.element,K1(e,t),Cu(t,n,null,r);var l=t.memoizedState;if(n=l.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Fa(Error(Rt(423)),t),t=Cp(e,t,n,r,i);break e}else if(n!==i){i=Fa(Error(Rt(424)),t),t=Cp(e,t,n,r,i);break e}else for(En=os(t.stateNode.containerInfo.firstChild),Cn=t,hr=!0,ei=null,r=Y1(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ma(),n===i){t=Li(e,t,r);break e}ln(e,t,n,r)}t=t.child}return t;case 5:return X1(t),e===null&&Tf(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,l=i.children,kf(n,i)?l=null:s!==null&&kf(n,s)&&(t.flags|=32),yg(e,t),ln(e,t,l,r),t.child;case 6:return e===null&&Tf(t),null;case 13:return wg(e,t,r);case 4:return cd(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Da(t,null,n,r):ln(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Jn(n,i),Sp(e,t,n,i,r);case 7:return ln(e,t,t.pendingProps,r),t.child;case 8:return ln(e,t,t.pendingProps.children,r),t.child;case 12:return ln(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,l=i.value,ur(Eu,n._currentValue),n._currentValue=l,s!==null)if(si(s.value,l)){if(s.children===i.children&&!yn.current){t=Li(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var f=s.dependencies;if(f!==null){l=s.child;for(var h=f.firstContext;h!==null;){if(h.context===n){if(s.tag===1){h=zi(-1,r&-r),h.tag=2;var d=s.updateQueue;if(d!==null){d=d.shared;var k=d.pending;k===null?h.next=h:(h.next=k.next,k.next=h),d.pending=h}}s.lanes|=r,h=s.alternate,h!==null&&(h.lanes|=r),Rf(s.return,r,t),f.lanes|=r;break}h=h.next}}else if(s.tag===10)l=s.type===t.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(Rt(341));l.lanes|=r,f=l.alternate,f!==null&&(f.lanes|=r),Rf(l,r,t),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}ln(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Ta(t,r),i=Yn(i),n=n(i),t.flags|=1,ln(e,t,n,r),t.child;case 14:return n=t.type,i=Jn(n,t.pendingProps),i=Jn(n.type,i),Ep(e,t,n,i,r);case 15:return gg(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Jn(n,i),su(e,t),t.tag=1,bn(n)?(e=!0,xu(t)):e=!1,Ta(t,r),pg(t,n,i),Nf(t,n,i,r),Mf(null,t,n,!0,e,r);case 19:return xg(e,t,r);case 22:return vg(e,t,r)}throw Error(Rt(156,t.tag))};function jg(e,t){return f1(e,t)}function i3(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 Pn(e,t,r,n){return new i3(e,t,r,n)}function Sd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function s3(e){if(typeof e=="function")return Sd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===W0)return 11;if(e===V0)return 14}return 2}function fs(e,t){var r=e.alternate;return r===null?(r=Pn(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 ou(e,t,r,n,i,s){var l=2;if(n=e,typeof e=="function")Sd(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case fa:return Bs(r.children,i,s,t);case H0:l=8,i|=8;break;case tf:return e=Pn(12,r,t,i|2),e.elementType=tf,e.lanes=s,e;case rf:return e=Pn(13,r,t,i),e.elementType=rf,e.lanes=s,e;case nf:return e=Pn(19,r,t,i),e.elementType=nf,e.lanes=s,e;case X_:return oc(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G_:l=10;break e;case K_:l=9;break e;case W0:l=11;break e;case V0:l=14;break e;case Zi:l=16,n=null;break e}throw Error(Rt(130,e==null?e:typeof e,""))}return t=Pn(l,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function Bs(e,t,r,n){return e=Pn(7,e,n,t),e.lanes=r,e}function oc(e,t,r,n){return e=Pn(22,e,n,t),e.elementType=X_,e.lanes=r,e.stateNode={isHidden:!1},e}function v$(e,t,r){return e=Pn(6,e,null,t),e.lanes=r,e}function y$(e,t,r){return t=Pn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function a3(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=e$(0),this.expirationTimes=e$(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=e$(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ed(e,t,r,n,i,s,l,f,h){return e=new a3(e,t,r,f,h),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Pn(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ud(s),e}function l3(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$a,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Bg(e){if(!e)return hs;e=e._reactInternals;e:{if(Xs(e)!==e||e.tag!==1)throw Error(Rt(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(bn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Rt(171))}if(e.tag===1){var r=e.type;if(bn(r))return B1(e,r,t)}return t}function Pg(e,t,r,n,i,s,l,f,h){return e=Ed(r,n,!0,e,i,s,l,f,h),e.context=Bg(null),r=e.current,n=$n(),i=$s(r),s=zi(n,i),s.callback=t??null,us(r,s,i),e.current.lanes=i,ao(e,i,n),wn(e,n),e}function uc(e,t,r,n){var i=t.current,s=$n(),l=$s(i);return r=Bg(r),t.context===null?t.context=r:t.pendingContext=r,t=zi(s,l),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=us(i,t,l),e!==null&&(ii(e,i,l,s),ru(e,i,l)),l}function Du(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 Fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Ad(e,t){Fp(e,t),(e=e.alternate)&&Fp(e,t)}function o3(){return null}var Ug=typeof reportError=="function"?reportError:function(e){console.error(e)};function Cd(e){this._internalRoot=e}cc.prototype.render=Cd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Rt(409));uc(e,t,null,null)};cc.prototype.unmount=Cd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vs(function(){uc(null,e,null,null)}),t[Mi]=null}};function cc(e){this._internalRoot=e}cc.prototype.unstable_scheduleHydration=function(e){if(e){var t=v1();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Oi.length&&t!==0&&t<Oi[r].priority;r++);Oi.splice(r,0,e),r===0&&b1(e)}};function Td(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function $c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function jp(){}function u3(e,t,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var d=Du(l);s.call(d)}}var l=Pg(t,n,e,0,null,!1,!1,"",jp);return e._reactRootContainer=l,e[Mi]=l.current,Ul(e.nodeType===8?e.parentNode:e),Vs(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var f=n;n=function(){var d=Du(h);f.call(d)}}var h=Ed(e,0,!1,null,null,!1,!1,"",jp);return e._reactRootContainer=h,e[Mi]=h.current,Ul(e.nodeType===8?e.parentNode:e),Vs(function(){uc(t,h,r,n)}),h}function fc(e,t,r,n,i){var s=r._reactRootContainer;if(s){var l=s;if(typeof i=="function"){var f=i;i=function(){var h=Du(l);f.call(h)}}uc(t,l,e,i)}else l=u3(r,t,e,i,n);return Du(l)}_1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ml(t.pendingLanes);r!==0&&(K0(t,r|1),wn(t,Ar()),!(rr&6)&&(ja=Ar()+500,xs()))}break;case 13:Vs(function(){var n=Di(e,1);if(n!==null){var i=$n();ii(n,e,1,i)}}),Ad(e,1)}};X0=function(e){if(e.tag===13){var t=Di(e,134217728);if(t!==null){var r=$n();ii(t,e,134217728,r)}Ad(e,134217728)}};g1=function(e){if(e.tag===13){var t=$s(e),r=Di(e,t);if(r!==null){var n=$n();ii(r,e,t,n)}Ad(e,t)}};v1=function(){return ar};y1=function(e,t){var r=ar;try{return ar=e,t()}finally{ar=r}};hf=function(e,t,r){switch(t){case"input":if(lf(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=rc(n);if(!i)throw Error(Rt(90));Z_(n),lf(n,i)}}}break;case"textarea":O_(e,r);break;case"select":t=r.value,t!=null&&Sa(e,!!r.multiple,t,!1)}};a1=wd;l1=Vs;var c3={usingClientEntryPoint:!1,Events:[oo,ma,rc,i1,s1,wd]},cl={findFiberByHostInstance:qs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},$3={bundleType:cl.bundleType,version:cl.version,rendererPackageName:cl.rendererPackageName,rendererConfig:cl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ji.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=c1(e),e===null?null:e.stateNode},findFiberByHostInstance:cl.findFiberByHostInstance||o3,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 Mo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mo.isDisabled&&Mo.supportsFiber)try{Ju=Mo.inject($3),hi=Mo}catch{}}In.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=c3;In.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Td(t))throw Error(Rt(200));return l3(e,t,null,r)};In.createRoot=function(e,t){if(!Td(e))throw Error(Rt(299));var r=!1,n="",i=Ug;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ed(e,1,!1,null,null,r,!1,n,i),e[Mi]=t.current,Ul(e.nodeType===8?e.parentNode:e),new Cd(t)};In.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(Rt(188)):(e=Object.keys(e).join(","),Error(Rt(268,e)));return e=c1(t),e=e===null?null:e.stateNode,e};In.flushSync=function(e){return Vs(e)};In.hydrate=function(e,t,r){if(!$c(t))throw Error(Rt(200));return fc(null,e,t,!0,r)};In.hydrateRoot=function(e,t,r){if(!Td(e))throw Error(Rt(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",l=Ug;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(l=r.onRecoverableError)),t=Pg(t,null,e,1,r??null,i,!1,s,l),e[Mi]=t.current,Ul(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 cc(t)};In.render=function(e,t,r){if(!$c(t))throw Error(Rt(200));return fc(null,e,t,!1,r)};In.unmountComponentAtNode=function(e){if(!$c(e))throw Error(Rt(40));return e._reactRootContainer?(Vs(function(){fc(null,null,e,!1,function(){e._reactRootContainer=null,e[Mi]=null})}),!0):!1};In.unstable_batchedUpdates=wd;In.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!$c(r))throw Error(Rt(200));if(e==null||e._reactInternals===void 0)throw Error(Rt(38));return fc(e,t,r,!1,n)};In.version="18.3.1-next-f1338f8080-20240426";function Hg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hg)}catch(e){console.error(e)}}Hg(),H_.exports=In;var Wg=H_.exports,Vg,Bp=Wg;Vg=Bp.createRoot,Bp.hydrateRoot;const xa=typeof window<"u"&&window.__BASE__||"",wr=e=>xa+e;function Wn(e){return e.map(t=>typeof t=="number"?`[${t}]`:`:${encodeURIComponent(t)}`).join("")||":"}const f3=/\[\d+\]|[^:\[\]]+/g,d3=/\[\d+\]|[^/\[\]]+/g;function jr(e){const t=[];for(const r of e.match(f3)||[])t.push(/^\[\d+\]$/.test(r)?Number(r.slice(1,-1)):Rd(r));return t}function Dr(e){return Wn(jr(e))}function Rd(e){try{return decodeURIComponent(e)}catch{return e}}function Pp(){let e=window.location.pathname;xa&&(e===xa||e.startsWith(xa+"/"))&&(e=e.slice(xa.length)||"/");const t=[];for(const r of e.match(d3)||[])t.push(/^\[\d+\]$/.test(r)?Number(r.slice(1,-1)):Rd(r));return Wn(t)}function h3(e){const r=jr(e).map(n=>typeof n=="number"?`[${n}]`:`/${encodeURIComponent(n)}`).join("")||"/";return xa+r}function co(e,t){return jr(t).slice(jr(e).length).map(n=>typeof n=="number"?`[${n}]`:`/${n}`).join("")}function Yg(e,t){const r=(e===":"?"":e)+":yamlover-fragments:"+t;return co(e,r)}function _i(e){const t=jr(e);return t.length?t.map(r=>typeof r=="number"?`[${r}]`:`: ${r}`).join(""):":"}function p3(e){const t=jr(Dr(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 m3(e){return e.replace(/[^:/\[\]]+/g,t=>Rd(t))}function Rl(e,t){return e===t?!1:e===":"?!0:t.startsWith(e+":")||t.startsWith(e+"[")}function Up(e){return new URLSearchParams(window.location.search).get("format")||e}function E9(){const e=Number(new URLSearchParams(window.location.search).get("page"));return Number.isInteger(e)&&e>1?e:1}function A9(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 As(e,t,r=!1){const n=new URLSearchParams(window.location.search);n.set("format",t),r||n.delete("page");const i=`${h3(e||":")}?${n.toString()}`;i!==window.location.pathname+window.location.search&&(r?window.history.replaceState({},"",i):window.history.pushState({},"",i))}function _3(e,t){const r=jr(e),n=[];return t&&n.push({label:t,path:":"}),r.forEach((i,s)=>{n.push({label:typeof i=="number"?`[${i}]`:i,path:Wn(r.slice(0,s+1))})}),n}async function Bi(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 Hp(){return Bi(wr("/api/info"))}function g3(){return Bi(wr("/api/tasks"))}function sa(e=":",t){const r=new URLSearchParams({path:e});return t!=null&&r.set("depth",String(t)),Bi(wr(`/api/tree?${r}`))}function un(e,t,r){const n=new URLSearchParams({path:e});return Gg(n,t),r?.binary&&n.set("binary","1"),Bi(wr(`/api/json?${n}`))}function Gg(e,t){t===null?e.set("depth",".inf"):t!==void 0&&e.set("depth",String(t))}function Pi(e){return wr(`/api/blob?path=${encodeURIComponent(e)}`)}function Wp(e,t,r){return wr(`/api/thumb?path=${encodeURIComponent(e)}&w=${t}&h=${r}`)}function v3(e,t){const r=new URLSearchParams({path:e});return Gg(r,t),Bi(wr(`/api/schema?${r}`))}function Zl(e){return Bi(wr(`/api/annotations?path=${encodeURIComponent(e)}`))}function y3(e){return Bi(wr(`/api/tagged?path=${encodeURIComponent(e)}`))}function b3(e,t=":"){const r=new URLSearchParams({q:e,path:t});return Bi(wr(`/api/query?${r}`)).then(n=>n.results)}async function ks(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 Kg(){return Bi(wr("/api/config"))}function w3(e,t,r){return ks(wr("/api/fragment"),{target:e,selector:t,...r?{imageBase64:r}:{}})}function Ba(e){return ks(wr("/api/annotate"),e)}function x3(e,t){return ks(wr("/api/board"),{path:e,lanes:t})}function k3(e){return fetch(wr("/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 S3(){return ks(wr("/api/agent-docs"),{})}function dc(e){return fetch(wr("/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 E3(e,t,r){return dc({path:e,filename:t,contentBase64:r})}function A3(e,t,r){return dc({path:e,filename:t,contentBase64:r,inline:!0})}function C3(e,t){return dc({path:e,text:t})}function T3(e,t){return dc({path:e,rich:t})}function Xg(e){return ks(wr("/api/edit"),{edits:e})}function Vp(e){return ks(wr("/api/preview"),{source:e})}function R3(e,t){return ks(wr("/api/edit-text"),{source:e,edits:t})}function Qg(e,t,r,n){const i=z3(e);return ks(wr("/api/edit"),{path:t,op:"insert",concrete:r,name:i,meta:`*${e}`,yamlover:N3(i)})}function z3(e){const t=jr(e);return"New "+String(t[t.length-1]??"object")}function N3(e){return`title: ${JSON.stringify(e)}
42
+ - ""`}function hc(e,t){const r=new URLSearchParams({target:e,tag:t});return fetch(wr(`/api/annotate?${r}`),{method:"DELETE"}).then(async n=>{if(!n.ok)throw new Error((await n.json().catch(()=>null))?.error||`HTTP ${n.status}`)})}const I3="modulepreload",q3=function(e){return"/"+e},Yp={},Mn=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),f=l?.nonce||l?.getAttribute("nonce");i=Promise.allSettled(r.map(h=>{if(h=q3(h),h in Yp)return;Yp[h]=!0;const d=h.endsWith(".css"),k=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${k}`))return;const C=document.createElement("link");if(C.rel=d?"stylesheet":I3,d||(C.as="script"),C.crossOrigin="",C.href=h,f&&C.setAttribute("nonce",f),document.head.appendChild(C),d)return new Promise((N,U)=>{C.addEventListener("load",N),C.addEventListener("error",()=>U(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(l){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=l,window.dispatchEvent(f),!f.defaultPrevented)throw l}return i.then(l=>{for(const f of l||[])f.status==="rejected"&&s(f.reason);return t().catch(s)})},Zg=new Set(["json","json5","json5p"]),Jg=new Set(["yaml","yamlover"]);function Og(e){return!!e&&e.startsWith("file/")}function M3(e){return e==="file/binary"}function Qs(e){return e==="dir"||e==="dir/yamlover"}function ev(e){if(!e)return null;const t=e.startsWith("file/")?e.slice(5):e;return Zg.has(t)||Jg.has(t)?t:null}function pc(e){const t=ev(e);return t!=null&&Zg.has(t)}function tv(e){const t=ev(e);return t!=null&&Jg.has(t)}const Lu=$t.createContext({unlocked:!1});function zd(){return $t.useContext(Lu)}function Hr(e){return e.kind==="pointer"}const rv=/^(?:[A-Za-z][A-Za-z0-9+.-]*:)?\/\//;function Pa(e,t=!1){if(t){const l=Pa(e);return l.base.scope==="current"?{...l,base:{scope:"document"}}:l}if(D3(e))return L3(e);const r=rv.exec(e);if(r){const l=e.slice(r[0].length),{seg:f,rest:h}=F3(l);return{kind:"pointer",base:{scope:"link",authority:av(f)},steps:Kp(h),raw:e}}if(e[0]==="/")return{kind:"pointer",base:{scope:"document"},steps:Kp(e),raw:e};const n=iv(e);let i={scope:"current"};n.length>0&&n[0]===".."&&(i={scope:"parent"},n.shift());const s=[];for(const l of n)l!==""&&s.push(...sv(l));return{kind:"pointer",base:i,steps:s,raw:e}}function D3(e){if(e.startsWith(":"))return!0;if(rv.test(e))return!1;let t=null;for(let r=0;r<e.length;r++){const n=e[r];if(n==="\\"&&t===null){r++;continue}if(t!==null){n===t&&(t=null);continue}if(n==="'"||n==='"'){t=n;continue}if(n===":")return!0}return!1}function L3(e){let t=e,r;if(t.startsWith(":::")){t=t.slice(3);const i=Do(t),s=i.shift();if(s===void 0||s==="")throw new SyntaxError(`pointer: ":::" needs an authority in "${e}"`);return r={scope:"link",authority:Gp(s),world:!0},{kind:"pointer",base:r,steps:Lo(i),raw:e}}if(t.startsWith("::")){t=t.slice(2);const i=Do(t),s=i.shift();if(s===void 0||s==="")throw new SyntaxError(`pointer: "::" needs a first portion in "${e}"`);return r={scope:"link",authority:Gp(s)},{kind:"pointer",base:r,steps:Lo(i),raw:e}}if(t.startsWith(":"))return{kind:"pointer",base:{scope:"document"},steps:Lo(Do(t.slice(1))),raw:e};const n=Do(t);return r={scope:"current"},n.length>0&&n[0]===".."&&(r={scope:"parent"},n.shift()),{kind:"pointer",base:r,steps:Lo(n),raw:e}}function Do(e){const t=[];let r="",n=null;for(let i=0;i<e.length;i++){const s=e[i];if(n!==null){r+=s,s===n&&(n=null);continue}if(s==="\\"&&i+1<e.length){r+=s+e[i+1],i++;continue}if(s==="'"||s==='"'){n=s,r+=s;continue}if(s===":"){t.push(r.trim()),r="";continue}r+=s}return t.push(r.trim()),t.filter(i=>i!=="")}function Lo(e){const t=[];for(const r of e)t.push(...nv(r));return t}function nv(e){if(e==="..")return[{sel:"parent"}];let t="",r=0;if(e[0]==="'"||e[0]==='"'){const i=e[0];for(r=1;r<e.length;r++){if(e[r]===i){if(i==="'"&&e[r+1]==="'"){t+=i,r++;continue}r++;break}if(i==='"'&&e[r]==="\\"&&r+1<e.length){t+=e[r+1],r++;continue}t+=e[r]}}else for(;r<e.length;r++){const i=e[r];if(i==="\\"&&r+1<e.length){t+=e[r+1],r++;continue}if(i==="[")break;if(i===" "||i===" ")throw new SyntaxError(`pointer: a key containing a space must be quoted ("${e}")`);t+=i}const n=[];for(t!==""&&n.push({sel:"key",name:t});r<e.length;){if(e[r]!=="[")throw new SyntaxError(`pointer: malformed portion "${e}"`);let i=r+1,s="";for(;i<e.length&&e[i]>="0"&&e[i]<="9";)s+=e[i],i++;if(s===""||e[i]!=="]")throw new SyntaxError(`pointer: malformed index in "${e}"`);n.push({sel:"index",n:Number.parseInt(s,10)}),r=i+1}return n}function Gp(e){const t=nv(e);if(t.length!==1||t[0].sel!=="key")throw new SyntaxError(`pointer: bad authority portion "${e}"`);return t[0].name}function Kp(e){const t=iv(e),r=[];for(let n=0;n<t.length;n++)t[n]!==""&&r.push(...sv(t[n]));return r}function iv(e){const t=[];let r="";for(let n=0;n<e.length;n++){const i=e[n];if(i==="\\"&&n+1<e.length){r+=i+e[n+1],n++;continue}if(i==="/"){t.push(r),r="";continue}r+=i}return t.push(r),t}function F3(e){let t=0,r="";for(;t<e.length;t++){const n=e[t];if(n==="\\"&&t+1<e.length){r+=n+e[t+1],t++;continue}if(n==="/")break;r+=n}return{seg:r,rest:e.slice(t)}}function sv(e){if(e==="..")return[{sel:"parent"}];let t=0,r="";for(;t<e.length;t++){const i=e[t];if(i==="\\"&&t+1<e.length){r+=i+e[t+1],t++;continue}if(i==="[")break;r+=i}const n=[];for(r!==""&&n.push({sel:"key",name:av(r)});t<e.length;){if(e[t]!=="[")throw new SyntaxError(`pointer: malformed segment "${e}"`);let i=t+1,s="";for(;i<e.length&&e[i]>="0"&&e[i]<="9";)s+=e[i],i++;if(s===""||e[i]!=="]")throw new SyntaxError(`pointer: malformed index in "${e}"`);n.push({sel:"index",n:Number.parseInt(s,10)}),t=i+1}return n}function av(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="\\"&&r+1<e.length){t+=e[r+1],r++;continue}t+=e[r]}return t}function lv(e,t,r=!1){let n=!1;e.endsWith("[]")&&!e.endsWith("\\[]")&&(n=!0,e=e.slice(0,-2));const i=Pa(e,r);if(!n){const s=i.steps[i.steps.length-1];s===void 0&&t('an anchor path needs a key segment (or a trailing "[]" for ordinal membership)'),s.sel!=="key"&&t('an anchor may not claim a position — use a trailing "[]" for ordinal membership')}return{path:i,...n?{ordinal:!0}:{}}}function j3(e,t,r,n){if(t.length===0)return;t.sort((O,j)=>O.start-j.start);const i=[],s=new Map,l=O=>{for(const j of O.entries??[])j.meta?.span&&(i.push(j),s.set(j,O)),Hr(j.value)||l(j.value)};l(e.root);const f=i.length?Math.min(...i.map(O=>O.meta.span.start)):r.length,h=B3(r),d=(O,j)=>j>O&&/\r?\n[ \t]*\r?\n/.test(r.slice(O,j)),k=(O,j)=>({text:O.text,span:{uri:n,start:O.start,end:O.end},placement:j,style:O.style,...P3(r,O.start)?{blankBefore:!0}:{}}),C=(O,j)=>{O.comments=[...O.comments??[],j]},N=new Set,U=t.filter(O=>O.ownLine&&O.start<f);if(U.length>0){let O=0;for(;O+1<U.length&&!d(U[O].end,U[O+1].start);)O++;const j=O+1<U.length?U[O+1].start:f;if(d(U[O].end,j)){e.head=U.slice(0,O+1).map(D=>k(D,"leading"));for(let D=0;D<=O;D++)N.add(U[D])}}for(const O of t){if(N.has(O))continue;if(!O.ownLine){const D=h(O.start);let G;for(const me of i){const Q=me.meta.span;if(Q.end>O.start||h(Q.end)!==D)continue;const be=G?G.meta.span:void 0;(!be||Q.end>be.end||Q.end===be.end&&Q.start>be.start)&&(G=me)}if(G){C(G.meta,k(O,"trailing")),N.add(O);continue}const de=Xp(i,O.start);if(de&&h(de.meta.span.start)===D){C(de.meta,k(O,"leading")),N.add(O);continue}const ne=de?s.get(de):e.root;ne.meta=ne.meta??{},C(ne.meta,k(O,"trailing")),N.add(O);continue}const j=Xp(i,O.start);if(j){C(j.meta,k(O,"leading")),N.add(O);continue}e.root.meta=e.root.meta??{},C(e.root.meta,k(O,O.ownLine?"leading":"trailing")),N.add(O)}}function Xp(e,t){let r;for(const n of e){const i=n.meta.span.start;i>t&&(!r||i<r.meta.span.start)&&(r=n)}return r}function B3(e){const t=[0];for(let r=0;r<e.length;r++)e[r]===`
43
+ `&&t.push(r+1);return r=>{let n=0,i=t.length-1;for(;n<i;){const s=n+i+1>>1;t[s]<=r?n=s:i=s-1}return n}}function P3(e,t){const r=e.lastIndexOf(`
44
+ `,t-1);if(r<0)return!1;const n=e.lastIndexOf(`
45
+ `,r-1);return/^[ \t\r]*$/.test(e.slice(n+1,r))}function Nd(e,t="<yamlover>",r={}){const n=r.yaml===!0,i=[],s=[],l=/\r\n|\r|\n/g;let f=0;for(let j=l.exec(e);j!==null;j=l.exec(e))i.push(e.slice(f,j.index)),s.push(f),f=j.index+j[0].length;i.push(e.slice(f)),s.push(f);const h=U3(i,s),d=new W3(h.lines,i,t,s,n);for(let j=0;j<d.lines.length;j++){const D=d.lines[j];D.indent===0&&(D.text==="---"||D.text.startsWith("--- ")||D.text==="...")&&(d.i=j,d.fail('multi-document streams ("---" / "...") are not yet supported (Phase 2c)'))}let k;const C=d.peek();C&&/^!!<[^>]*>$/.test(C.text.trim())&&(k=ov(C.text.trim().slice(3,-1),{block:d,lineN:C.n,col:C.indent+3}),d.i++);let N=d.node(0)??ca();if(Hr(N))throw new SyntaxError(`yamlover: a top-level pointer is not allowed in ${t}`);d.i<d.lines.length&&d.peek().indent===0&&(N=d.mergeCont(N,d.container(0))),d.i<d.lines.length&&d.fail("unexpected content"),k!==void 0&&(N.meta={...N.meta,schema:k}),N.meta={...N.meta,span:{uri:t,start:0,end:e.length}};const U={root:N,source:{concrete:n?"yaml":"yamlover",uri:t}},O=h.comments.filter(j=>!d.blockLines.has(j.n)).map(({n:j,...D})=>D);return j3(U,O,e,t),U}function U3(e,t,r){const n=[],i=[];let s=!1;for(let l=0;l<e.length;l++){const f=e[l];let h=0;for(;h<f.length&&f[h]===" ";)h++;const d=f.slice(h),k=H3(d),C=(k>=0?d.slice(0,k):d).replace(/\s+$/,"");if(k>=0){const N=t[l]??0;i.push({start:N+h+k,end:N+f.replace(/\s+$/,"").length,text:d.slice(k+1).replace(/\s+$/,""),ownLine:C==="",style:"line",n:l})}if(C===""){s=k<0;continue}n.push({indent:h,text:C,n:l,...s?{blankBefore:!0}:{}}),s=!1}return{lines:n,comments:i}}function H3(e){let t=!1,r=!1;for(let n=0;n<e.length;n++){const i=e[n];if(r&&i==="\\"){n++;continue}if(i==="'"&&!r)t=!t;else if(i==='"'&&!t)r=!r;else if(i==="#"&&!t&&!r&&(n===0||e[n-1]===" "||e[n-1]===" "))return n}return-1}class W3{lines;raw;uri;lineStarts;blockLines=new Set;yaml;i=0;constructor(t,r,n="<yamlover>",i=[],s=!1){this.lines=t,this.raw=r,this.uri=n,this.lineStarts=i,this.yaml=s}spanAt(t,r,n){const i=(this.lineStarts[t]??0)+r;return{uri:this.uri,start:i,end:i+n}}peek(){return this.lines[this.i]}anchorToken(t,r,n){let i,s;if(t[1]==="'"||t[1]==='"'){const h=t[1];let d=2;for(;d<t.length;){if(h==='"'&&t[d]==="\\"){d+=2;continue}if(t[d]===h){if(h==="'"&&t[d+1]==="'"){d+=2;continue}break}d++}d>=t.length&&this.fail("unterminated quoted anchor path"),i=Jl(t.slice(1,d+1)).value,s=d+1}else if(G3(t.slice(1)))i=t.slice(1).trim(),s=t.length;else{let h=1;for(;h<t.length&&t[h]!==" "&&t[h]!==" ";)t[h]==="\\"&&h+1<t.length&&h++,h++;i=t.slice(1,h),s=h}const l=lv(i,h=>this.fail(h),this.yaml);l.path.span=this.spanAt(r,n,s);const f=aa(t,s,n);return{anchor:l,rest:f.rest,col:f.col}}attachAnchors(t,r){r.length!==0&&(Hr(t)&&this.fail("cannot anchor a pointer"),t.meta={...t.meta,anchors:[...t.meta?.anchors??[],...r]})}mergeCont(t,r){const n=r.kind==="scalar"&&r.value===null&&r.raw===""&&(r.entries?.length??0)===0;r.kind==="scalar"&&!n&&this.fail("a node may carry at most one scalar value line");const i=[...t.entries??[],...r.entries??[]],s={...t,...i.length>0?{entries:i,array:r.kind==="mapping"?r.array:t.array}:{}};return this.attachAnchors(s,r.meta?.anchors??[]),s}fail(t){const r=this.lines[this.i]??this.lines[this.i-1],n=r?`${this.uri}:${r.n+1}`:this.uri,i=r?`
46
+ ${r.n+1} | ${this.raw[r.n]}`:"";throw new SyntaxError(`yamlover: ${t} at ${n}${i}`)}node(t){const r=this.peek();if(!r||r.indent<t)return null;if(/^!!(mix|var|omni|set)(?=\s|$)/.test(r.text))return this.i++,this.valueAfter(r.text,r.indent-1,r.n,r.indent);if(b$(r.text)||Qp(r.text)||r.text.startsWith("&")||w$(r.text))return this.container(r.indent);this.i++;let n;/^[|>][+-]?\d*$/.test(r.text)?n=this.blockScalar(r.text,r.indent,r.n):n=this.valueInline(r.text,r.indent,!0,r.n,r.indent);const i=this.peek();return i&&i.indent===r.indent&&i.indent>=t&&!Hr(n)&&n.kind==="scalar"&&(n=this.mergeCont(n,this.container(r.indent))),n}container(t,r=!1){const n=[],i=[];let s,l;for(;;){const k=this.peek();if(!k||k.indent!==t)break;const C=k.n,N=k.indent,U=k.blankBefore===!0;let O,j;if(k.text.startsWith("&")){if(r)break;this.i++;let{rest:ne,col:me}={rest:k.text,col:k.indent};for(;ne.startsWith("&");){const Q=this.anchorToken(ne,k.n,me);i.push(Q.anchor),{rest:ne,col:me}=Q}if(ne!==""){const Q=this.valueInline(ne,t,!1,k.n,me);(Hr(Q)||Q.kind!=="scalar")&&this.fail("only a scalar value may share a line with an own-line anchor"),s!==void 0&&this.fail("a node may carry at most one scalar value line"),s=Q,l=n.length}continue}if(b$(k.text)){this.i++;const ne=k.text.slice(1),me=ne.length-ne.trimStart().length,Q=k.indent+1+me,be=ne.trim();be===""?O=this.node(t+1)??ca():!/^(!!<|\*|&)/.test(be)&&w$(be)?(this.i--,this.lines[this.i]={indent:Q,text:be,n:k.n},O=this.container(Q)):O=this.valueAfter(be,t,k.n,Q),j={key:null,edge:Hr(O)?"ref":"contain",value:O}}else if(Qp(k.text)){if(r)break;this.i++;const ne=aa(k.text,2,k.indent),me=ne.rest;me.startsWith("*")||this.fail('a "~-" entry needs a pointer value (the container that holds this node)');const Q=Pa(Zp(me.slice(1)));Q.span=this.spanAt(k.n,ne.col,me.length),O=Q,j={key:null,edge:"back",value:O}}else{if(r)break;/^~[ \t]/.test(k.text)&&this.fail('the "~" sigil must sit tight against the key or "-" marker (write "~key:" or "~-")');const ne=w$(k.text);if(!ne){this.i++;let be;if(/^[|>][+-]?\d*$/.test(k.text))be=this.blockScalar(k.text,t,k.n);else{const le=this.valueInline(k.text,t,!1,k.n,k.indent);(Hr(le)||le.kind!=="scalar")&&this.fail("unexpected content (expected an entry, an anchor, or a scalar value line)"),be=le}s!==void 0&&this.fail("a node may carry at most one scalar value line"),s=be,l=n.length;continue}this.i++;let me=ne.key,Q=!1;me.startsWith("~")&&(Q=!0,me=me.slice(1)),O=this.valueAfter(ne.rest,t,k.n,k.indent+ne.restCol),j={key:uv(me),edge:Q?"back":Hr(O)?"ref":"contain",value:O}}const D=this.lines[this.i-1],G=(this.lineStarts[C]??0)+N,de=D?(this.lineStarts[D.n]??0)+D.indent+D.text.length:G;j.meta={...j.meta,span:{uri:this.uri,start:G,end:de},...U?{blankBefore:!0}:{}},n.push(j)}const f=n.filter(k=>k.edge!=="back"),h=f.length>0&&f.every(k=>k.key===null),d=s!==void 0?{...s,entries:n,array:h}:n.length===0?ca():{kind:"mapping",entries:n,array:h};return s!==void 0&&l!==void 0&&l>0&&(d.meta={...d.meta,selfAt:l}),this.attachAnchors(d,i),d}valueAfter(t,r,n,i){({rest:t,col:i}=aa(t,0,i));let s;if(t.startsWith("!!<")){const k=t.indexOf(">");k<0&&this.fail('unterminated "!!<…>" schema tag'),s=ov(t.slice(3,k),{block:this,lineN:n,col:i+3}),{rest:t,col:i}=aa(t,k+1,i)}let l;const f=/^!!(mix|var|omni|set)(?=\s|$)/.exec(t);f&&(l=f[1]==="var"?"omni":f[1],{rest:t,col:i}=aa(t,f[0].length,i));const h=[];for(;t.startsWith("&");){const k=this.anchorToken(t,n,i);h.push(k.anchor),{rest:t,col:i}=k}let d;if(/^[|>][+-]?\d*$/.test(t))d=this.blockScalar(t,r,n),d=this.attachFields(d,r);else if(t===""){const k=this.peek();k&&k.indent===r&&b$(k.text)?d=this.container(r,!0):d=this.node(r+1)??ca()}else d=this.valueInline(t,r,!1,n,i),d=this.attachFields(d,r);return this.attachAnchors(d,h),l==="set"&&!Hr(d)&&(d.meta={...d.meta,set:!0}),s!==void 0&&!Hr(d)&&(d.meta={...d.meta,schema:s}),d}attachFields(t,r){const n=this.peek();return n&&n.indent>r&&!Hr(t)&&t.kind!=="blob"?this.mergeCont(t,this.container(n.indent)):t}blockScalar(t,r,n){const i=t[0]===">";let s="clip";for(const N of t.slice(1))N==="-"?s="strip":N==="+"&&(s="keep");const l=[];let f=-1,h=n;for(let N=n+1;N<this.raw.length;N++){const U=this.raw[N];let O=0;for(;O<U.length&&U[O]===" ";)O++;if(O>=U.length){l.push(""),h=N,this.blockLines.add(N);continue}if(O<=r||f>=0&&O<f)break;f<0&&(f=O),l.push(U.slice(f)),h=N,this.blockLines.add(N)}for(;this.peek()&&this.peek().n<=h;)this.i++;let d=-1;for(let N=0;N<l.length;N++)l[N]!==""&&(d=N);const k=l.slice(0,d+1);let C=i?Y3(k):k.join(`
47
+ `);return s==="keep"?C+=`
48
+ `.repeat(l.length-(d+1)+(d>=0?1:0)):s==="clip"&&d>=0&&(C+=`
49
+ `),{kind:"scalar",value:C,raw:C}}valueInline(t,r,n,i,s){({rest:t,col:s}=aa(t,0,s));const l=t[0];if(l==="{"||l==="[")return new V3(t,this.uri,(this.lineStarts[i]??0)+s,this.yaml).parse();if(l==="*"){const f=Pa(Zp(t.slice(1)),this.yaml);return f.span=this.spanAt(i,s,t.length),f}if(l==="&"){const f=[];let h=t,d=s;for(;h.startsWith("&");){const C=this.anchorToken(h,i,d);f.push(C.anchor),{rest:h,col:d}=C}const k=h===""?n?this.node(r+1)??ca():ca():this.valueInline(h,r,n,i,d);return this.attachAnchors(k,f),k}return l==="'"||l==='"'?Jl(t):cv(t)}}class V3{s;i=0;uri;base;yaml;constructor(t,r="<flow>",n=0,i=!1){this.s=t,this.uri=r,this.base=n,this.yaml=i}fail(t){throw new SyntaxError(`yamlover (flow): ${t} at offset ${this.i}`)}parse(){this.ws();const t=this.value();return this.ws(),this.i<this.s.length&&this.fail("trailing characters in flow value"),t}ws(){for(;this.i<this.s.length&&" ".includes(this.s[this.i]);)this.i++}value(){const t=this.s[this.i];if(t==="{")return this.map();if(t==="[")return this.seq();if(t==="*"){const n=this.i;this.i++;let i;if(this.s[this.i]==="'"||this.s[this.i]==='"')i=this.quoted().value;else{const l=this.i;let f=0;for(;this.i<this.s.length;){const h=this.s[this.i];if(h==="\\"&&this.i+1<this.s.length){this.i+=2;continue}if(h==="[")f++;else if(h==="]"){if(f===0)break;f--}else if(h===","||h==="}")break;this.i++}i=this.s.slice(l,this.i).trim()}const s=Pa(i,this.yaml);return s.span={uri:this.uri,start:this.base+n,end:this.base+this.i},s}if(t==="&"){const n=this.i;this.i++;let i;if(this.s[this.i]==="'"||this.s[this.i]==='"')i=this.quoted().value;else{const f=this.i;for(;this.i<this.s.length&&!" ,]}".includes(this.s[this.i]);)this.s[this.i]==="\\"&&this.i+1<this.s.length&&this.i++,this.i++;i=this.s.slice(f,this.i)}const s=lv(i,f=>this.fail(f),this.yaml);s.path.span={uri:this.uri,start:this.base+n,end:this.base+this.i},this.ws();const l=this.value();return Hr(l)&&this.fail("cannot anchor a pointer"),l.meta={...l.meta,anchors:[...l.meta?.anchors??[],s]},l}if(t==="'"||t==='"')return this.quoted();const r=this.readPlain();return r===""&&this.fail("expected a value"),cv(r)}map(){this.i++;const t=[];for(;;){if(this.ws(),this.s[this.i]==="}"){this.i++;break}this.i>=this.s.length&&this.fail("unterminated flow map");let r=!1;this.s[this.i]==="~"&&(r=!0,this.i++);const n=this.s[this.i]==="'"||this.s[this.i]==='"'?this.quoted().value:uv(this.readPlain(":,}"));this.ws(),this.s[this.i]!==":"&&this.fail('expected ":" in flow map'),this.i++,this.ws();const i=this.value();if(t.push({key:n,edge:r?"back":Hr(i)?"ref":"contain",value:i}),this.ws(),this.s[this.i]===","){this.i++;continue}if(this.s[this.i]==="}"){this.i++;break}this.fail('expected "," or "}"')}return{kind:"mapping",entries:t,array:!1}}seq(){this.i++;const t=[];for(;;){if(this.ws(),this.s[this.i]==="]"){this.i++;break}this.i>=this.s.length&&this.fail("unterminated flow seq");const r=this.value();if(t.push({key:null,edge:Hr(r)?"ref":"contain",value:r}),this.ws(),this.s[this.i]===","){this.i++;continue}if(this.s[this.i]==="]"){this.i++;break}this.fail('expected "," or "]"')}return{kind:"mapping",entries:t,array:!0}}quoted(){const t=this.i,r=this.s[this.i];for(this.i++;this.i<this.s.length;){const n=this.s[this.i];if(r==='"'&&n==="\\"){this.i+=2;continue}if(r==="'"&&n==="'"&&this.s[this.i+1]==="'"){this.i+=2;continue}if(this.i++,n===r)break}return Jl(this.s.slice(t,this.i))}readPlain(t=",:[]{} "){const r=this.i;for(;this.i<this.s.length&&!t.includes(this.s[this.i]);)this.i++;return this.s.slice(r,this.i).trim()}}function b$(e){return e==="-"||e.startsWith("- ")}function Qp(e){return e==="~-"||e.startsWith("~- ")}function w$(e){let t=!1,r=!1;for(let n=0;n<e.length;n++){const i=e[n];if(i==="'"&&!r)t=!t;else if(i==='"'&&!t)r=!r;else if(i===":"&&!t&&!r){const s=e[n+1];if(s===void 0||s===" "||s===" "){const l=e.slice(n+1),f=l.length-l.trimStart().length;return{key:e.slice(0,n).trim(),rest:l.trim(),restCol:n+1+f}}}}return null}function aa(e,t,r){const n=e.slice(t),i=n.length-n.trimStart().length;return{rest:n.trim(),col:r+t+i}}function ov(e,t){const r=e.length-e.trimStart().length;if(e=e.trim(),e.startsWith("*")){const n=Pa(e.slice(1));return t!==void 0&&(n.span=t.block.spanAt(t.lineN,t.col+r,e.length)),n}return Nd(e).root}function Y3(e){let t="";for(let r=0;r<e.length;r++)r>0&&(t+=e[r]===""||e[r-1]===""?`
50
+ `:" "),t+=e[r];return t}function Zp(e){return e=e.trim(),(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?Jl(e).value:e}function G3(e){let t=null;for(let r=0;r<e.length;r++){const n=e[r];if(t!==null){n===t&&(t=null);continue}if(n==="\\"){r++;continue}if(n==="'"||n==='"'){t=n;continue}if(n===":")return!0}return!1}function uv(e){return e=e.trim(),(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?Jl(e).value:K3(e)}function Jl(e){const t=e[0],r=e.slice(1,e.length-1);if(t==="'")return{kind:"scalar",value:r.replace(/''/g,"'"),raw:e};let n="";for(let i=0;i<r.length;i++)if(r[i]==="\\"){const s=r[++i];switch(s){case"n":n+=`
51
+ `;break;case"t":n+=" ";break;case"r":n+="\r";break;case'"':n+='"';break;case"\\":n+="\\";break;case"/":n+="/";break;case"b":n+="\b";break;case"f":n+="\f";break;case"0":n+="\0";break;case"u":n+=String.fromCharCode(parseInt(r.slice(i+1,i+5),16)),i+=4;break;case"x":n+=String.fromCharCode(parseInt(r.slice(i+1,i+3),16)),i+=2;break;default:n+=s??""}}else n+=r[i];return{kind:"scalar",value:n,raw:e}}function cv(e){const t=e.trim();return t===""||t==="~"||t==="null"||t==="Null"||t==="NULL"?{kind:"scalar",value:null,raw:e}:t==="true"||t==="True"||t==="TRUE"?{kind:"scalar",value:!0,raw:e}:t==="false"||t==="False"||t==="FALSE"?{kind:"scalar",value:!1,raw:e}:/^[-+]?\.(?:inf|Inf|INF)$/.test(t)?{kind:"scalar",value:t[0]==="-"?-1/0:1/0,raw:e}:/^\.(?:nan|NaN|NAN)$/.test(t)?{kind:"scalar",value:NaN,raw:e}:/^[-+]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?$/.test(t)?{kind:"scalar",value:Number(t),raw:e}:/^[-+]?0x[0-9a-fA-F]+$/.test(t)?{kind:"scalar",value:Number(t),raw:e}:{kind:"scalar",value:t,raw:e}}function K3(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="\\"&&r+1<e.length){t+=e[r+1],r++;continue}t+=e[r]}return t}function ca(){return{kind:"scalar",value:null,raw:""}}function X3(e){return e===null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}const Q3=/^[A-Za-z][\w .-]*$/,Z3=/^(true|false|null|yes|no|on|off|~|\.nan|[-+]?\.inf)$/i;function J3(e){return e!==""&&e===e.trim()&&Q3.test(e)&&!Z3.test(e)?e:JSON.stringify(e)}function O3(e,t){return e===null?"null":typeof e=="boolean"?e?"true":"false":typeof e=="number"?String(e):t==="json"?JSON.stringify(e):J3(e)}const e5=/[,{}[\]]/;function t5(e){const t=e.trim();if(t===""||!(t[0]==='"'||t[0]==="'")&&e5.test(t))return!1;try{return Nd(t,"<edit>").root.kind==="scalar"}catch{return!1}}async function r5(e,t,r){try{return await Xg([{path:e,op:"emplace",yamlover:t}]),!0}catch{return!1}}function n5({initial:e,className:t,path:r,concrete:n}){const i=$t.useRef(null),s=$t.useRef(!1),l=$t.useRef(!1),f=$t.useRef(!1),[h,d]=$t.useState(!1),{sink:k}=zd();$t.useEffect(()=>{i.current&&!s.current&&(i.current.textContent=e)},[e]);const C=()=>{i.current&&(i.current.textContent=e)},N=async()=>{if(l.current){l.current=!1,C();return}if(f.current)return;const U=(i.current?.textContent??"").trim();if(U===e){d(!1);return}if(!t5(U)){d(!0),C();return}f.current=!0;const O=k?await k({path:r,op:"emplace",yamlover:U}).catch(()=>!1):await r5(r,U);f.current=!1,O?d(!1):(d(!0),C())};return ge.jsx("span",{ref:i,className:t+" editable"+(h?" edit-error":""),contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:!1,onFocus:()=>{s.current=!0,d(!1)},onBlur:()=>{s.current=!1,N()},onKeyDown:U=>{U.key==="Enter"?(U.preventDefault(),U.target.blur()):U.key==="Escape"&&(U.preventDefault(),l.current=!0,U.target.blur())}})}function i5(e){return e===null?"null":typeof e=="boolean"?"b":typeof e=="number"?"n":"s"}function s5(e,t,r,n,i){return ge.jsx(n5,{initial:i??O3(e,r),className:i5(e),path:t,concrete:n})}function mc({value:e,syntax:t,path:r,editable:n,concrete:i,raw:s}){const{unlocked:l}=zd();return!n||!l||r===null||!X3(e)?m5(e,t,s):s5(e,r,t,i,s)}const a5="$yamloverLink",l5="$yamloverBinary",o5="$yamloverRef",u5="$yamloverMixed",c5="$yamloverNum";function $o(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 Fr=e=>$o(e,a5),fo=e=>$o(e,l5),_c=e=>$o(e,o5),Xa=e=>$o(e,u5),gc=e=>$o(e,c5);function $v(e,t){return t==="json"?e:e==="NaN"?".nan":e==="-Infinity"?"-.inf":".inf"}function vi(e){const t=Xa(e),r=t&&t.kind==="omni"?t.value:e,n=gc(r);return n?n==="NaN"?NaN:n==="-Infinity"?-1/0:1/0:r}function Ua(e,t){return e===null?null:(e===":"?"":e)+(typeof t=="number"?`[${t}]`:`:${encodeURIComponent(t)}`)}function fn(e,t){if(!e.comments)return;const r=e.comments[t.slice(e.base.length)];return r&&!Array.isArray(r)?r:void 0}function vc(e,t){return(t==="yaml"?"#":"//")+" "+e.trim()}function Id(e,t){return t==="json"?"*"+JSON.stringify(e):e!==e.trim()?`*'${e.replace(/'/g,"''")}'`:"*"+e}function fv(e,t){return t==="json"?"&"+JSON.stringify(e):"&"+e}function Ol(e,t,r){const n=fn(e,t);if(!n)return null;const i=r==="yaml"?n.tag:void 0,s=n.anchors??[];return!i&&s.length===0?null:ge.jsxs(ge.Fragment,{children:[i&&ge.jsxs(ge.Fragment,{children:[" ",ge.jsx("span",{className:"b",children:i})]}),s.map((l,f)=>ge.jsxs($t.Fragment,{children:[" ",ge.jsx("span",{className:"anchor",children:fv(l,r)})]},`an${f}`))]})}function yc({ctx:e,frag:t,pad:r,syntax:n}){const i=fn(e,t)?.leading;return i?.length?ge.jsx(ge.Fragment,{children:i.map((s,l)=>ge.jsxs($t.Fragment,{children:[r,ge.jsx("span",{className:"c",children:vc(s,n)}),`
52
+ `]},`lc${l}`))}):null}function bc(e,t,r){const n=fn(e,t)?.trailing;return n?.length?ge.jsxs(ge.Fragment,{children:[" ",ge.jsx("span",{className:"c",children:n.map(i=>vc(i,r)).join(" ")})]}):null}function dv(e,t,r){const n=fn(e,t)?.valueTrailing;return n?.length?ge.jsxs(ge.Fragment,{children:[" ",ge.jsx("span",{className:"c",children:n.map(i=>vc(i,r)).join(" ")})]}):null}function $5({ctx:e,frag:t}){const r=fn(e,t),n=r?.anchors??[];return!r?.tag&&n.length===0?null:ge.jsxs(ge.Fragment,{children:[r?.tag&&ge.jsxs(ge.Fragment,{children:[ge.jsx("span",{className:"b",children:r.tag}),`
53
+ `]}),n.map((i,s)=>ge.jsxs($t.Fragment,{children:[ge.jsx("span",{className:"anchor",children:fv(i,"yaml")}),`
54
+ `]},`ra${s}`))]})}function Jp({texts:e,syntax:t}){return ge.jsx(ge.Fragment,{children:e.map((r,n)=>ge.jsxs($t.Fragment,{children:[ge.jsx("span",{className:"c",children:vc(r,t)}),`
55
+ `]},`fc${n}`))})}function Op(e,t){const r=e?.[t];return Array.isArray(r)&&r.length?r:void 0}function f5(e){const t=window.location.pathname+window.location.search;window.history.pushState({},"",t+"#"+e),document.getElementById(e)?.scrollIntoView?.()}function eo({ctx:e,frag:t}){return!e.anchors||!t?null:ge.jsx("span",{id:t,className:"frag-anchor"})}function Gf({value:e,syntax:t,onNavigate:r,documentPath:n=":",nodePath:i=":",anchors:s=!0,comments:l,editable:f=!1,concrete:h=null}){const d=co(n,i),k={nav:r,doc:n,node:i,anchors:s,comments:l,base:d,editable:f,concrete:h},C=fo(e);if(C&&t==="yaml")return ge.jsx(d5,{bin:C});const N=C??e,U=Op(l,"$head"),O=Op(l,"$tail");return ge.jsxs(ge.Fragment,{children:[U&&ge.jsx(Jp,{texts:U,syntax:t}),t==="yaml"?ge.jsxs(ge.Fragment,{children:[ge.jsx($5,{ctx:k,frag:d}),ge.jsx(_5,{value:N,indent:0,ctx:k,frag:d,path:i})]}):ge.jsx(Dd,{value:N,indent:0,ctx:k,frag:d,path:i,root:!0}),O&&ge.jsx(Jp,{texts:O,syntax:t})]})}function d5({bin:e}){const[t,r]=$t.useState(!0);return ge.jsxs(ge.Fragment,{children:[ge.jsx(ps,{open:t,onToggle:()=>r(n=>!n)}),ge.jsx(wc,{v:e,indent:2,open:t})]})}const Ls=e=>typeof e=="string"&&e.includes(`
56
+ `)||!!fo(e);function h5(e){const t=[];for(let r=0;r<e.length;r+=76)t.push(e.slice(r,r+76));return t}function wc({v:e,indent:t,open:r,trail:n=null}){const i=typeof e=="string"?null:e,s=i?h5(i.base64):e.replace(/\n$/,"").split(`
57
+ `),l=" ".repeat(t);return ge.jsxs(ge.Fragment,{children:[i?ge.jsxs(ge.Fragment,{children:[ge.jsx("span",{className:"b",children:"!!binary"})," ",ge.jsx("span",{className:"punct",children:"|"})," ",ge.jsx("span",{className:"c",children:`# ${i.format??"binary"}, ${i.size} bytes`})]}):ge.jsx("span",{className:"punct",children:"|"}),r?ge.jsxs(ge.Fragment,{children:[n,`
58
+ `,ge.jsx("span",{className:"s",children:s.map(f=>l+f).join(`
59
+ `)}),`
60
+ `]}):ge.jsxs(ge.Fragment,{children:[" ",ge.jsx("span",{className:"fold-summary",children:`{ ${s.length} lines }`}),n,`
61
+ `]})]})}function xc(e,t,r){const n=e.kind==="scalar"?qd(e.value,t):p5(e);return ge.jsx("a",{className:"descend",href:e.path,onClick:i=>{i.preventDefault(),r.nav(e.path)},children:n})}function qd(e,t){if(e==null)return"null";const r=gc(e);return r?$v(r,t):typeof e=="boolean"||typeof e=="number"?String(e):t==="json"?JSON.stringify(e):String(e)}function Md(e,t,r,n){const i=n??(t==="json"?JSON.stringify(e.text):e.text);if(!e.path)return ge.jsx("span",{className:"s",children:i});if(e.path===r.node||Rl(r.node,e.path)){const f=co(r.doc,e.path);return ge.jsx("a",{className:"descend ref-local",href:"#"+f,onClick:h=>{h.preventDefault(),f5(f)},children:i})}const l=e.path;return ge.jsx("a",{className:"descend",href:l,onClick:f=>{f.preventDefault(),r.nav(l)},children:i})}function p5(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 ${qd(e.value,"yaml")} + ${t} ${t===1?"field":"fields"} }`:`{ object with ${t} ${t===1?"property":"properties"} }`}function m5(e,t,r){if(e===null)return ge.jsx("span",{className:"null",children:r??"null"});if(typeof e=="boolean")return ge.jsx("span",{className:"b",children:r??String(e)});const n=gc(e);if(n)return ge.jsx("span",{className:"n",children:r??$v(n,t)});if(typeof e=="number")return ge.jsx("span",{className:"n",children:r??String(e)});const i=r??(t==="json"?JSON.stringify(e):String(e));return ge.jsx("span",{className:"s",children:i})}const Zs=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&!gc(e);function Ni(e){return Fr(e)||_c(e)?!1:Xa(e)?!0:Zs(e)?Object.keys(e).length>0:Array.isArray(e)?e.length>0:!1}function kc(e){const t=Xa(e);if(t){const n=t.entries.length;return t.kind==="omni"?`{ variant ${qd(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 ps({open:e,onToggle:t}){return ge.jsx("button",{type:"button",className:"toggle fold-gutter"+(e?" open":""),"aria-label":e?"collapse":"expand",onClick:t,children:ge.jsx("span",{className:"chevron",children:"›"})})}function _5({value:e,indent:t,ctx:r,frag:n,path:i}){const s=Fr(e);if(s)return ge.jsxs(ge.Fragment,{children:[xc(s,"yaml",r),`
62
+ `]});const l=_c(e);return l?ge.jsxs(ge.Fragment,{children:[Md(l,"yaml",r),`
63
+ `]}):Ni(e)?ge.jsx(Fu,{value:e,indent:t,ctx:r,frag:n,path:i}):Zs(e)?ge.jsxs(ge.Fragment,{children:[ge.jsx("span",{className:"punct",children:"{}"}),`
64
+ `]}):Array.isArray(e)?ge.jsxs(ge.Fragment,{children:[ge.jsx("span",{className:"punct",children:"[]"}),`
65
+ `]}):ge.jsxs(ge.Fragment,{children:[ge.jsx(mc,{value:e,syntax:"yaml",path:i,editable:r.editable,concrete:r.concrete,raw:fn(r,n)?.raw}),dv(r,n,"yaml"),`
66
+ `]})}function Fu({value:e,indent:t,ctx:r,frag:n,path:i,inlineHead:s=!1}){const l=Xa(e);return l?ge.jsx(w5,{mixed:l,indent:t,ctx:r,frag:n,path:i,inlineHead:s}):Zs(e)?ge.jsx(g5,{entries:Object.entries(e),indent:t,ctx:r,frag:n,path:i,inlineHead:s}):ge.jsx(v5,{items:e,indent:t,ctx:r,frag:n,path:i,inlineHead:s})}function g5({entries:e,indent:t,ctx:r,frag:n,path:i,inlineHead:s=!1}){const l=" ".repeat(t);return ge.jsx(ge.Fragment,{children:e.map(([f,h],d)=>ge.jsx(hv,{k:f,v:h,pad:l,indent:t,ctx:r,frag:`${n}/${f}`,path:Ua(i,f),noPad:s&&d===0},d))})}function v5({items:e,indent:t,ctx:r,frag:n,path:i,inlineHead:s=!1}){const l=" ".repeat(t);return ge.jsx(ge.Fragment,{children:e.map((f,h)=>ge.jsx(pv,{v:f,pad:l,indent:t,ctx:r,frag:`${n}[${h}]`,path:Ua(i,h),noPad:s&&h===0},h))})}function y5(e){const t=Xa(e);if(t){if(t.kind==="omni"&&(t.selfAt??0)===0)return!Ls(t.value);const r=t.entries[0];return!!r&&!Ni(r.value)&&!Ls(r.value)}if(Zs(e)){const r=Object.values(e);return r.length>0&&!Ni(r[0])&&!Ls(r[0])}return Array.isArray(e)?e.length>0&&!Ni(e[0])&&!Ls(e[0]):!1}function b5({value:e,pad:t,indent:r,ctx:n,frag:i,path:s,noPad:l=!1}){const[f,h]=$t.useState(!0),d=dv(n,i,"yaml"),k=Fr(e);return k?ge.jsxs(ge.Fragment,{children:[l?null:t,xc(k,"yaml",n),d,`
67
+ `]}):Ls(e)?ge.jsxs(ge.Fragment,{children:[ge.jsx(ps,{open:f,onToggle:()=>h(C=>!C)}),l?null:t,ge.jsx(wc,{v:fo(e)??e,indent:r+2,open:f,trail:d})]}):ge.jsxs(ge.Fragment,{children:[l?null:t,ge.jsx(mc,{value:e,syntax:"yaml",path:s,editable:n.editable,concrete:n.concrete,raw:fn(n,i)?.raw}),d,`
68
+ `]})}function w5({mixed:e,indent:t,ctx:r,frag:n,path:i,inlineHead:s=!1}){const l=" ".repeat(t),f=e.kind==="omni",h=f?Math.min(e.selfAt??0,e.entries.length):-1,d=s&&h===0,k=ge.jsx(b5,{value:e.value,pad:l,indent:t,ctx:r,frag:n,path:i,noPad:d});return ge.jsxs(ge.Fragment,{children:[e.entries.map((C,N)=>{const U=s&&N===0&&!d;return ge.jsxs($t.Fragment,{children:[N===h&&k,C.key===null?ge.jsx(pv,{v:C.value,pad:l,indent:t,ctx:r,frag:`${n}[${N}]`,path:Ua(i,N),noPad:U}):ge.jsx(hv,{k:C.key,v:C.value,pad:l,indent:t,ctx:r,frag:`${n}/${C.key}`,path:Ua(i,C.key),noPad:U})]},N)}),f&&h>=e.entries.length&&k]})}function hv({k:e,v:t,pad:r,indent:n,ctx:i,frag:s,path:l,noPad:f=!1}){const[h,d]=$t.useState(!0),k=!f&&fn(i,s)?.blankBefore?`
69
+ `:null,C=f?null:ge.jsx(yc,{ctx:i,frag:s,pad:r,syntax:"yaml"}),N=bc(i,s,"yaml"),U=fn(i,s)?.pointer,O=Ol(i,s,"yaml"),j=ge.jsxs(ge.Fragment,{children:[f?null:r,ge.jsx(eo,{ctx:i,frag:s}),ge.jsx("span",{className:"k",children:e}),ge.jsx("span",{className:"punct",children:":"})]});return Ls(t)?ge.jsxs(ge.Fragment,{children:[k,C,ge.jsx(ps,{open:h,onToggle:()=>d(D=>!D)}),j,O," ",ge.jsx(wc,{v:fo(t)??t,indent:n+2,open:h,trail:N})]}):Ni(t)?ge.jsxs(ge.Fragment,{children:[k,C,ge.jsx(ps,{open:h,onToggle:()=>d(D=>!D)}),j,O,h?ge.jsxs(ge.Fragment,{children:[N,`
70
+ `,ge.jsx(Fu,{value:t,indent:n+2,ctx:i,frag:s,path:l})]}):ge.jsxs(ge.Fragment,{children:[" ",ge.jsx("span",{className:"fold-summary",children:kc(t)}),N,`
71
+ `]})]}):ge.jsxs(ge.Fragment,{children:[k,C,j,O,mv(t,i,l,N,U&&Id(U,"yaml"),fn(i,s)?.raw)]})}function pv({v:e,pad:t,indent:r,ctx:n,frag:i,path:s,noPad:l=!1}){const[f,h]=$t.useState(!0),d=!l&&fn(n,i)?.blankBefore?`
72
+ `:null,k=l?null:ge.jsx(yc,{ctx:n,frag:i,pad:t,syntax:"yaml"}),C=bc(n,i,"yaml"),N=fn(n,i)?.pointer,U=Ol(n,i,"yaml"),O=ge.jsxs(ge.Fragment,{children:[l?null:t,ge.jsx(eo,{ctx:n,frag:i}),ge.jsx("span",{className:"punct yaml-dash",children:"-"})]});if(Ls(e))return ge.jsxs(ge.Fragment,{children:[d,k,ge.jsx(ps,{open:f,onToggle:()=>h(D=>!D)}),O,U," ",ge.jsx(wc,{v:fo(e)??e,indent:r+2,open:f,trail:C})]});if(!Ni(e))return ge.jsxs(ge.Fragment,{children:[d,k,O,U,mv(e,n,s,C,N&&Id(N,"yaml"),fn(n,i)?.raw)]});const j=y5(e);return ge.jsxs(ge.Fragment,{children:[d,k,ge.jsx(ps,{open:f,onToggle:()=>h(D=>!D)}),O,U,f?j?ge.jsxs(ge.Fragment,{children:[" ",ge.jsx(Fu,{value:e,indent:r+2,ctx:n,frag:i,path:s,inlineHead:!0})]}):ge.jsxs(ge.Fragment,{children:[C,`
73
+ `,ge.jsx(Fu,{value:e,indent:r+2,ctx:n,frag:i,path:s})]}):ge.jsxs(ge.Fragment,{children:[" ",ge.jsx("span",{className:"fold-summary",children:kc(e)}),C,`
74
+ `]})]})}function mv(e,t,r,n=null,i,s){const l=Fr(e);if(l)return ge.jsxs(ge.Fragment,{children:[" ",xc(l,"yaml",t),n,`
75
+ `]});const f=_c(e);return f?ge.jsxs(ge.Fragment,{children:[" ",Md(f,"yaml",t,i),n,`
76
+ `]}):Zs(e)&&Object.keys(e).length===0?ge.jsxs(ge.Fragment,{children:[" ",ge.jsx("span",{className:"punct",children:"{}"}),n,`
77
+ `]}):Array.isArray(e)&&e.length===0?ge.jsxs(ge.Fragment,{children:[" ",ge.jsx("span",{className:"punct",children:"[]"}),n,`
78
+ `]}):ge.jsxs(ge.Fragment,{children:[" ",ge.jsx(mc,{value:e,syntax:"yaml",path:r,editable:t.editable,concrete:t.concrete,raw:s}),n,`
79
+ `]})}function Dd({value:e,indent:t,ctx:r,frag:n,path:i,root:s=!1}){const l=Fr(e);if(l)return xc(l,"json",r);const f=_c(e);if(f){const d=fn(r,n)?.pointer;return Md(f,"json",r,d&&Id(d,"json"))}if(s&&Ni(e))return ge.jsx(zl,{value:e,indent:t,ctx:r,frag:n,path:i});const h=_v(e);return h?h.length?ge.jsx(zl,{value:e,indent:t,ctx:r,frag:n,path:i}):ge.jsx("span",{className:"punct",children:"{}"}):Array.isArray(e)?e.length?ge.jsx(zl,{value:e,indent:t,ctx:r,frag:n,path:i}):ge.jsx("span",{className:"punct",children:"[]"}):ge.jsx(mc,{value:e,syntax:"json",path:i,editable:r.editable,concrete:r.concrete,raw:fn(r,n)?.raw})}function _v(e){const t=Xa(e);return t?[...t.kind==="omni"?[["$value",t.value]]:[],...t.entries.map((r,n)=>[r.key??String(n),r.value])]:Zs(e)?Object.entries(e):null}function zl({value:e,indent:t,ctx:r,frag:n,path:i}){const s=_v(e);if(s){const l=Zs(e)?i:null;return ge.jsx(x5,{entries:s,indent:t,ctx:r,frag:n,path:l})}return ge.jsx(k5,{items:e,indent:t,ctx:r,frag:n,path:i})}function x5({entries:e,indent:t,ctx:r,frag:n,path:i}){const s=" ".repeat(t+2);return ge.jsxs(ge.Fragment,{children:[ge.jsx("span",{className:"punct",children:"{"}),`
80
+ `,e.map(([l,f],h)=>ge.jsx(S5,{k:l,v:f,pad:s,indent:t+2,ctx:r,frag:`${n}/${l}`,path:Ua(i,l),last:h===e.length-1},h))," ".repeat(t),ge.jsx("span",{className:"punct",children:"}"})]})}function k5({items:e,indent:t,ctx:r,frag:n,path:i}){const s=" ".repeat(t+2);return ge.jsxs(ge.Fragment,{children:[ge.jsx("span",{className:"punct",children:"["}),`
81
+ `,e.map((l,f)=>ge.jsx(E5,{v:l,pad:s,indent:t+2,ctx:r,frag:`${n}[${f}]`,path:Ua(i,f),last:f===e.length-1},f))," ".repeat(t),ge.jsx("span",{className:"punct",children:"]"})]})}function S5({k:e,v:t,pad:r,indent:n,ctx:i,frag:s,path:l,last:f}){const[h,d]=$t.useState(!0),k=ge.jsx(yc,{ctx:i,frag:s,pad:r,syntax:"json"}),C=ge.jsxs(ge.Fragment,{children:[r,ge.jsx(eo,{ctx:i,frag:s}),ge.jsx("span",{className:"k",children:`"${e}"`}),ge.jsx("span",{className:"punct",children:": "}),Ol(i,s,"json")]}),N=ge.jsxs(ge.Fragment,{children:[f?"":",",bc(i,s,"json"),`
82
+ `]});return Ni(t)?ge.jsxs(ge.Fragment,{children:[k,ge.jsx(ps,{open:h,onToggle:()=>d(U=>!U)}),C,h?ge.jsx(zl,{value:t,indent:n,ctx:i,frag:s,path:l}):ge.jsx("span",{className:"fold-summary",children:kc(t)}),N]}):ge.jsxs(ge.Fragment,{children:[k,C,ge.jsx(Dd,{value:t,indent:n,ctx:i,frag:s,path:l}),N]})}function E5({v:e,pad:t,indent:r,ctx:n,frag:i,path:s,last:l}){const[f,h]=$t.useState(!0),d=ge.jsx(yc,{ctx:n,frag:i,pad:t,syntax:"json"}),k=ge.jsxs(ge.Fragment,{children:[l?"":",",bc(n,i,"json"),`
83
+ `]});return Ni(e)?ge.jsxs(ge.Fragment,{children:[d,ge.jsx(ps,{open:f,onToggle:()=>h(C=>!C)}),t,ge.jsx(eo,{ctx:n,frag:i}),Ol(n,i,"json"),f?ge.jsx(zl,{value:e,indent:r,ctx:n,frag:i,path:s}):ge.jsx("span",{className:"fold-summary",children:kc(e)}),k]}):ge.jsxs(ge.Fragment,{children:[d,t,ge.jsx(eo,{ctx:n,frag:i}),Ol(n,i,"json"),ge.jsx(Dd,{value:e,indent:r,ctx:n,frag:i,path:s}),k]})}function A5(e){return e.trim().toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").replace(/\s+/g,"-")}function C5(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 gv(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=C5(n.id||A5(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 Sc(e){$t.useEffect(()=>{const t=()=>{const r=decodeURIComponent(window.location.hash.slice(1));if(!r)return;const n=document.getElementById(r);n?.scrollIntoView&&(n.scrollIntoView({block:"center"}),r.includes("yamlover-fragments/")&&(n.classList.add("yo-reveal-flash"),window.setTimeout(()=>n.classList.remove("yo-reveal-flash"),1e3)))};return t(),window.addEventListener("hashchange",t),()=>window.removeEventListener("hashchange",t)},[e])}const Js="x-yamlover-tag";function Ld(e){return/(^|:)tags:colors:/.test(Dr(e))}const gi=e=>({"--tag":e});function vv({color:e,title:t,onClick:r}){return ge.jsx("span",{className:"tagswatch",style:gi(e),title:t,role:r?"button":void 0,onClick:r})}function T5(e){const t=[],r={};for(const[n,i]of Object.entries(e||{})){const s=Fr(i);s&&s.format===Js?t.push({path:s.path,label:Ec(s.path,s.title),color:s.color??null}):r[n]=i}return{tags:t,rest:r}}function R5(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 Vn(e){return e.color??R5(e.name)}const yv="$yamloverMixed";function zn(e){if(!e||typeof e!="object"||Array.isArray(e))return[];const t=e[yv];return t?.entries?t.entries.filter(r=>r.key!=null).map(r=>[r.key,r.value]):Object.entries(e)}function bv(e){if(typeof e=="string")return e;const t=e?.[yv];return typeof t?.value=="string"?t.value:null}function Fd(e){const t=zn(e).find(([n])=>n==="color")?.[1];if(typeof t=="string")return t;const r=t?.$yamloverLink?.value;return typeof r=="string"?r:null}function wv({tags:e,onNavigate:t}){return e.length===0?null:ge.jsx(ge.Fragment,{children:e.map(r=>{const n=Vn({name:r.label,color:r.color});return Ld(r.path)?ge.jsx(vv,{color:n,title:r.label,onClick:()=>t(r.path)},r.path):ge.jsx("a",{className:"tagtag",style:gi(n),href:r.path,title:r.label,onClick:i=>{i.preventDefault(),t(r.path)},children:r.label},r.path)})})}function Ec(e,t){if(t)return t;const r=jr(e);return r.length?String(r[r.length-1]):e}const x$=new Map;function ju({tag:e,body:t,children:r}){const n=$t.useRef(null),[i,s]=$t.useState(null),[l,f]=$t.useState(t??x$.get(e.path)??null);$t.useEffect(()=>{if(!i||t!=null||x$.has(e.path))return;let N=!0;return un(e.path,1).then(U=>bv(U.value)).catch(()=>null).then(U=>{x$.set(e.path,U??null),N&&f(U??null)}),()=>{N=!1}},[i,e.path,t]);const h=()=>{const N=n.current?.getBoundingClientRect();N&&s({left:N.left,top:N.bottom+4})},d=()=>s(null),k=Vn({name:e.name,color:e.color}),C=t??l;return ge.jsxs("span",{ref:n,className:"tagtip-anchor",onMouseEnter:h,onMouseLeave:d,children:[r,i&&Wg.createPortal(ge.jsxs("span",{className:"tagtip",style:{left:i.left,top:i.top,...gi(k)},children:[ge.jsx("span",{className:"tagtip-path",children:p3(e.path)}),C&&ge.jsx("span",{className:"tagtip-value",children:C})]}),document.body)]})}const to="yamlover:diff";function z5(e){window.dispatchEvent(new CustomEvent(to,{detail:e}))}const Qa=e=>e.paths.some(t=>t.endsWith(".yamlover"));function ho(e=()=>!0){const[t,r]=$t.useState(0);return $t.useEffect(()=>{const n=i=>{const s=i.detail;s&&e(s)&&r(l=>l+1)};return window.addEventListener(to,n),()=>window.removeEventListener(to,n)},[]),t}function N5(e=()=>!0){const[t,r]=$t.useState({seq:0,paths:[]});return $t.useEffect(()=>{const n=i=>{const s=i.detail;s&&e(s)&&r(l=>({seq:l.seq+1,paths:s.paths}))};return window.addEventListener(to,n),()=>window.removeEventListener(to,n)},[]),t}const jd=[{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"}],I5=jd[0],q5=I5.color,em="#9399b2",Bd="yo-annotate-recent-tags";function M5(e){return e.tag?Vn(e.tag):q5}function ts(e){return JSON.stringify([e.selector??null,e.tag?.path?Dr(e.tag.path):null])}function Kf(e,t){return JSON.stringify(e??null)===JSON.stringify(t??null)}function tm(e){return!!e.tag&&e.path!=="(preview)"&&e.path!=="(pending)"}let rm=null;async function D5(){for(const e of["::tags:colors","::yamlover:tags:colors"])try{const t=await un(e,2),r=[];for(const[n,i]of zn(t.value)){const s=Fd(i);s&&r.push({path:`${e}:${encodeURIComponent(n)}`,name:n,color:s})}if(r.length)return r}catch{}return jd}function L5(){const[e,t]=$t.useState(jd);return $t.useEffect(()=>{rm??=D5();let r=!1;return rm.then(n=>{r||t(n)}),()=>{r=!0}},[]),e}const F5=": ...: !!<format: x-yamlover-tag>";function j5(e){const t=new Map;for(const r of e){if(Ld(r))continue;const n=Dr(r);t.has(n)||t.set(n,r)}return[...t.values()].map(r=>({path:r,name:kv(r),color:null}))}function B5(){const[e,t]=$t.useState([]),r=ho(Qa);return $t.useEffect(()=>{let n=!1;return b3(F5).then(i=>{n||t(j5(i))}).catch(()=>{n||t([])}),()=>{n=!0}},[r]),e}const P5=[":yamlover:tags","::yamlover:tags"];function U5(){const[e,t]=$t.useState(null);return $t.useEffect(()=>{let r=!0;return Kg().then(n=>{r&&t(n.settings.tags??null)}).catch(()=>{}),()=>{r=!1}},[]),e}function H5(e,t){const r=Dr(e);return t.some(n=>{if(!n)return!1;const i=Dr(n);return r===i||r.startsWith(i+":")})}function xv(e){W5(e)}function Pd(){try{const e=JSON.parse(localStorage.getItem(Bd)||"[]");if(Array.isArray(e))return e.filter(t=>t?.path&&t?.name)}catch{}return[]}function W5(e){if(Dr(e.path).startsWith(":yamlover:tags:colors:"))return;const t=[e,...Pd().filter(r=>r.path!==e.path)].slice(0,6);localStorage.setItem(Bd,JSON.stringify(t))}function V5(){const e=r=>un(r.path,0).then(n=>n.format===Js).catch(()=>!1),t=Pd();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(Bd,JSON.stringify(n)),n})}async function Y5(e,t,r,n){if(!t)return Ba({target:e,tag:r.path});const{fragmentPath:i}=await w3(e,t,n);return Ba({target:i,tag:r.path})}function Xf(e,t){const r=t.node??e;return t.fragmentSlug?(r===":"?"":r)+":yamlover-fragments:"+t.fragmentSlug:r}function Ud(e,t=0){const[r,n]=$t.useState([]),i=ho(Qa);return $t.useEffect(()=>{let s=!1;return Zl(e).then(l=>!s&&n(l)).catch(()=>!s&&n([])),()=>{s=!0}},[e,t,i]),r}function G5(e){const[t,r]=$t.useState(0),n=Ud(e,t),[i,s]=$t.useState([]),[l,f]=$t.useState(new Set),[h,d]=$t.useState(new Set);$t.useEffect(()=>{const me=new Set(n.map(ts));s(Q=>Q.filter(be=>!me.has(ts(be)))),f(Q=>new Set([...Q].filter(be=>me.has(be))))},[n]);const k=()=>r(me=>me+1),C=(me,Q)=>hc(Xf(e,me),me.tag.path).then(k).catch(be=>{f(le=>{const Ee=new Set(le);return Ee.delete(Q),Ee}),window.alert("delete failed: "+be.message)});$t.useEffect(()=>{if(h.size)for(const me of n){const Q=ts(me);!me.tag||!h.has(Q)||(d(be=>{const le=new Set(be);return le.delete(Q),le}),f(be=>new Set(be).add(Q)),C(me,Q))}},[n,h]);const N=(me,Q,be)=>{s(le=>le.filter(Ee=>Ee!==me)),be||window.alert("save failed: "+Q.message)},U=(me,Q,be)=>{const le=be?.target??e,Ee={path:"(pending)",node:le,selector:me??void 0,tag:Q};s(te=>[...te,Ee]),Y5(le,me,Q,be?.imageBase64).then(k).catch(te=>N(Ee,te,be?.silent))},O=me=>{if(!me?.tag)return;const Q=ts(me);if(me.path==="(pending)"){d(be=>new Set(be).add(Q));return}f(be=>new Set(be).add(Q)),C(me,Q)},j=$t.useRef([]),D=me=>{const Q=n.find(be=>be.fragmentSlug&&be.path!=="(pending)"&&Kf(be.selector,me));return Q?Xf(e,Q):null},G=(me,Q,be)=>{const le=be?.target??e,Ee=D(me);if(Ee){const te={path:"(pending)",node:le,selector:me,tag:Q};s(Ce=>[...Ce,te]),Ba({target:Ee,tag:Q.path}).then(k).catch(Ce=>N(te,Ce,be?.silent));return}if(i.some(te=>Kf(te.selector,me))){const te={path:"(pending)",node:le,selector:me,tag:Q};s(Ce=>[...Ce,te]),j.current.push({selector:me,tag:Q,entry:te});return}U(me,Q,be)};$t.useEffect(()=>{if(!j.current.length)return;const me=[];for(const Q of j.current){const be=D(Q.selector);be?Ba({target:be,tag:Q.tag.path}).then(k).catch(le=>N(Q.entry,le)):me.push(Q)}j.current=me},[n]);const de=new Set,ne=[];for(const me of[...i,...n]){const Q=ts(me);l.has(Q)||h.has(Q)||de.has(Q)||(de.add(Q),ne.push(me))}return{annotations:ne,create:U,remove:O,annotateRegion:G}}function kv(e){const t=jr(e);return t.length?String(t[t.length-1]):e}function K5(e,t){const r=e.name.toLowerCase();return r===t?0:r.startsWith(t)?1:r.includes(t)?2:3}function X5({label:e,concretes:t,defaultConcrete:r,onCreate:n}){const[i,s]=$t.useState(r);return ge.jsxs("div",{className:"annotate-create",children:[ge.jsxs("button",{type:"button",className:"annotate-action",onClick:()=>n(i),children:["+ New ",e]}),t.length>1&&ge.jsx("select",{className:"annotate-concrete",value:i,onChange:l=>s(l.target.value),title:"storage form",children:t.map(l=>ge.jsx("option",{value:l.id,children:l.label},l.id))})]})}function Hd({x:e,y:t,applied:r,nodeTags:n=[],mode:i,onPick:s,onUnpick:l,onCopy:f,onClose:h,menuRef:d,creates:k,title:C}){const N=L5(),U=B5(),O=U5(),[j,D]=$t.useState(Pd),[G,de]=$t.useState(""),[ne,me]=$t.useState(-1),[Q,be]=$t.useState(!1),le=i==="edit"?"re-tag":"tag";$t.useEffect(()=>{let m=!0;return V5().then(E=>{m&&D(E)}),()=>{m=!1}},[]);const Ee=(m,E)=>Dr(m)===Dr(E),te=m=>N.some(E=>Ee(E.path,m.path)),Ce=new Set(r.map(m=>Dr(m.path))),fe=m=>Ce.has(Dr(m)),x=m=>(fe(m.path)?l??s:s)(m),Ae=m=>{const E=[],T=new Set;for(const re of m){if(te(re))continue;const je=re.name.toLowerCase();T.has(je)||(T.add(je),E.push(re))}return E},B=U.filter(m=>H5(m.path,[...P5,O])),he=Ae([...r,...n,...j,...B]),W=G.trim().toLowerCase(),Fe=W?Ae([...r,...n,...j,...U].filter(m=>m.name.toLowerCase().includes(W)||Dr(m.path).toLowerCase().includes(W)).map(m=>({t:m,rank:K5(m,W)})).sort((m,E)=>m.rank-E.rank||m.t.name.localeCompare(E.t.name)).map(({t:m})=>m)).slice(0,8):he;$t.useEffect(()=>{me(W&&Fe.length?0:-1)},[G]);const $e=m=>{const E=G.trim();!E||Q||(be(!0),un(E.startsWith(":")?E:E.startsWith("/")?":"+E.slice(1).split("/").join(":"):":"+E,1).then(T=>{if(T.format!==Js)throw new Error("not a tag node");s({path:T.path,name:T.title||kv(T.path),color:Fd(T.value)})}).catch(T=>{if(E.includes(":")||E.includes("/"))throw new Error(`cannot ${le} with "${E}": `+T.message);return k3(E).then(s).catch(re=>{throw new Error(`cannot create tag "${E}": `+re.message)})}).catch(T=>window.alert(T.message)).finally(()=>be(!1)))},V=$t.useRef(null),w=$t.useCallback(m=>{V.current=m,typeof d=="function"?d(m):d&&(d.current=m)},[d]),[$,o]=$t.useState({left:e,top:t}),c=$t.useRef(!1);$t.useLayoutEffect(()=>{if(c.current)return;const m=V.current;if(!m)return;const E=8,T=m.offsetWidth,re=m.offsetHeight;let je=e,nt=t;if(je+T>window.innerWidth-E&&(je=Math.max(E,window.innerWidth-T-E)),nt+re>window.innerHeight-E){const ft=t-re-12;nt=ft>=E?ft:Math.max(E,window.innerHeight-re-E)}(je!==$.left||nt!==$.top)&&o({left:je,top:nt})});const p=m=>{if(m.target.closest("button"))return;m.preventDefault();const E=m.clientX-$.left,T=m.clientY-$.top;c.current=!0;const re=nt=>o({left:nt.clientX-E,top:nt.clientY-T}),je=()=>{document.removeEventListener("mousemove",re),document.removeEventListener("mouseup",je)};document.addEventListener("mousemove",re),document.addEventListener("mouseup",je)};return ge.jsxs("div",{ref:w,className:"annotate-menu",style:{left:$.left,top:$.top},role:"menu",children:[ge.jsxs("div",{className:"annotate-topbar",children:[ge.jsx("div",{className:"annotate-titlebar",onMouseDown:p,title:C,children:ge.jsx("span",{className:"annotate-title",children:ge.jsx("bdi",{children:C??""})})}),f&&ge.jsx("button",{type:"button",className:"annotate-tool copy",title:"copy text to clipboard (don't annotate)",onClick:f,children:"⧉"}),ge.jsx("button",{type:"button",className:"annotate-tool close",title:"close",onClick:h,children:"✕"})]}),k&&k.length>0&&ge.jsx("div",{className:"annotate-actions",children:k.map(m=>ge.jsx(X5,{...m},m.schema))}),ge.jsx("div",{className:"annotate-palette",children:N.map(m=>ge.jsx(ju,{tag:m,children:ge.jsx("button",{type:"button",className:"annotate-swatch"+(fe(m.path)?" on":""),style:gi(Vn(m)),onClick:()=>x(m)})},m.path))}),Fe.length>0&&ge.jsx("div",{className:"annotate-recents",role:"listbox",children:Fe.map((m,E)=>ge.jsx("span",{className:"tagframe",children:ge.jsx(ju,{tag:m,children:ge.jsx("button",{type:"button",role:"option","aria-selected":E===ne,className:"tagtag"+(fe(m.path)?" on":"")+(E===ne?" hi":""),style:gi(Vn(m)),onClick:()=>x(m),onMouseEnter:()=>{W&&me(E)},children:ge.jsx("span",{className:"tt-label",children:m.name})})})},m.path))}),ge.jsx("div",{className:"annotate-typeahead",children:ge.jsx("input",{className:"annotate-taginput",type:"text",placeholder:Q?"creating tag…":`${le}: filter, tag path, or new name… ⏎`,value:G,disabled:Q,autoComplete:"off",onChange:m=>de(m.target.value),onKeyDown:m=>{if(Fe.length&&m.key==="ArrowDown"){m.preventDefault(),m.stopPropagation(),me(E=>(E+1)%Fe.length);return}if(Fe.length&&m.key==="ArrowUp"){m.preventDefault(),m.stopPropagation(),me(E=>(E-1+Fe.length)%Fe.length);return}if(m.key==="Escape"&&G){m.preventDefault(),m.stopPropagation(),de("");return}m.key==="Enter"&&(m.preventDefault(),m.stopPropagation(),ne>=0&&Fe[ne]?x(Fe[ne]):$e())}})})]})}function Q5(e,t){const[r,n]=$t.useState(null),i=$t.useRef(null),s=()=>n(null),l=(D,G,de,ne,me)=>{n({selector:D,nodePath:me??t,create:!0,copy:de,imageBase64:ne,x:G.x,y:G.y,title:_i(me??t)})},f=(D,G)=>n({selector:D.selector??{},nodePath:D.node??t,create:!1,x:G.x,y:G.y,title:_i(Xf(t,D))}),h=r?e.annotations.filter(D=>Kf(D.selector,r.selector)&&(D.node??t)===r.nodePath):[],d=h.map(D=>D.tag).filter(D=>!!D),k=[],C=new Set;for(const D of e.annotations){if(!D.tag)continue;const G=Dr(D.tag.path);C.has(G)||(C.add(G),k.push(D.tag))}const N=D=>{r&&(xv(D),!d.some(G=>Dr(G.path)===Dr(D.path))&&e.annotateRegion(r.selector,D,{imageBase64:r.imageBase64,target:r.nodePath}))},U=D=>{if(!r)return;const G=h.find(de=>de.tag&&Dr(de.tag.path)===Dr(D.path));G&&e.remove(G)};$t.useEffect(()=>{if(!r)return;const D=de=>{i.current?.contains(de.target)||s()},G=de=>{de.target instanceof Node&&i.current?.contains(de.target)||s()};return document.addEventListener("mousedown",D),window.addEventListener("scroll",G,!0),window.addEventListener("wheel",G,!0),()=>{document.removeEventListener("mousedown",D),window.removeEventListener("scroll",G,!0),window.removeEventListener("wheel",G,!0)}},[r]);const O=r?ge.jsx(Hd,{menuRef:i,x:r.x,y:r.y,applied:d,nodeTags:k,mode:"create",onPick:N,onUnpick:U,onCopy:r.copy?()=>{r.copy(),s()}:void 0,onClose:s,title:r.title}):null,j=r&&r.create&&d.length===0?{selector:r.selector,color:em}:null;return{openCreate:l,openEdit:f,palette:O,preview:j,color:em}}function Z5({path:e,children:t}){const r=$t.useRef(null),n=G5(e),{openCreate:i,openEdit:s,palette:l}=Q5(n,e),{annotations:f}=n,h=C=>(C instanceof HTMLElement?C:C?.parentElement)?.closest?.("[data-node-path]")?.dataset.nodePath||e;$t.useEffect(()=>{const C=r.current;if(!C)return;const N=requestAnimationFrame(()=>J5(C,f,e));return()=>cancelAnimationFrame(N)}),$t.useEffect(()=>{const C=N=>{if(N.button!==0)return;const U=r.current;if(!U||N.target?.closest?.(".annotate-menu")||N.target?.closest?.("mark.yo-annotation"))return;const O=window.getSelection();if(!O||O.isCollapsed||!O.anchorNode||!O.focusNode||!U.contains(O.anchorNode)||!U.contains(O.focusNode))return;const j=sm(O);if(!j)return;const D=O.getRangeAt(0).getBoundingClientRect(),G=()=>nm(j.exact);i({type:"text",exact:j.exact,prefix:j.prefix,suffix:j.suffix},{x:D.left,y:D.bottom+6},G,void 0,h(O.anchorNode))};return document.addEventListener("mouseup",C),()=>document.removeEventListener("mouseup",C)},[]);const d=C=>{const N=C.target.closest("mark.yo-annotation");if(!N)return;const U=f.find(O=>ts(O)===N.dataset.annSel);!U||!tm(U)||(C.preventDefault(),s(U,{x:C.clientX,y:C.clientY}))},k=C=>{const N=r.current;if(!N)return;const U=C.target.closest("mark.yo-annotation");if(U){const G=f.find(de=>ts(de)===U.dataset.annSel);G&&tm(G)&&(C.preventDefault(),s(G,{x:C.clientX,y:C.clientY}));return}const O=window.getSelection();if(!O||O.isCollapsed||!O.anchorNode||!O.focusNode||!N.contains(O.anchorNode)||!N.contains(O.focusNode))return;const j=sm(O);if(!j)return;C.preventDefault();const D=()=>nm(j.exact);i({type:"text",exact:j.exact,prefix:j.prefix,suffix:j.suffix},{x:C.clientX,y:C.clientY},D,void 0,h(O.anchorNode))};return ge.jsxs("div",{className:"annotated",children:[ge.jsx("div",{ref:r,onClick:d,onContextMenu:k,children:t}),l]})}function nm(e){return navigator.clipboard?.writeText?navigator.clipboard.writeText(e).then(()=>!0,()=>im(e)):Promise.resolve(im(e))}function im(e){const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="-1000px",t.style.opacity="0",document.body.appendChild(t);try{return t.select(),document.execCommand("copy")}catch{return!1}finally{t.remove()}}function sm(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 J5(e,t,r){e.querySelectorAll("mark.yo-annotation").forEach(n=>{const i=n.parentNode;if(i){for(;n.firstChild;)i.insertBefore(n.firstChild,n);i.removeChild(n),i.normalize()}});for(const n of t){if(n.selector?.type!=="text"||!n.selector.exact)continue;let i=e;if(n.node){for(const s of e.querySelectorAll("[data-node-path]"))if(s.dataset.nodePath===n.node){i=s;break}}O5(i,n,n.node??r)}}function O5(e,t,r){const n=t.selector,i=String(n.exact),s=t.fragmentSlug?Yg(r,t.fragmentSlug):"";if(s){for(const de of e.querySelectorAll("[id]"))if(de.id===s)return}const l=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),f=[];let h="";for(let de;de=l.nextNode();)f.push({node:de,at:h.length}),h+=de.nodeValue??"";const d=String(n.prefix??""),k=String(n.suffix??"");let C=-1,N=-1;for(let de=h.indexOf(i);de>=0;de=h.indexOf(i,de+1)){const ne=(d&&h.slice(0,de).endsWith(d)?2:0)+(k&&h.slice(de+i.length).startsWith(k)?1:0);ne>N&&(N=ne,C=de)}if(C<0)return;const U=f.find(de=>C>=de.at&&C<de.at+(de.node.nodeValue?.length??0));if(!U)return;const O=C-U.at;if(O+i.length>(U.node.nodeValue?.length??0))return;const j=document.createRange();j.setStart(U.node,O),j.setEnd(U.node,O+i.length);const D=M5(t),G=document.createElement("mark");G.className="yo-annotation",G.style.backgroundColor=`color-mix(in srgb, ${D} var(--mark-mix, 30%), transparent)`,G.style.borderBottomColor=D,G.dataset.annSel=ts(t),s&&(G.id=s),G.title=t.description||"click to re-tag or delete";try{j.surroundContents(G)}catch{}}const Sv=[{schema:"::yamlover:$defs:chapter",childOf:["x-yamlover-chapter","x-yamlover-task"]}],e6=[{id:"yamlover",label:"inline"},{id:"file/yamlover",label:"file"},{id:"dir/yamlover",label:"directory"}],t6=[{id:"file/yamlover",label:"file"},{id:"dir/yamlover",label:"directory"}];function r6(e,t){const r=[];for(const n of Sv){const i=t[n.schema]||n6(n.schema);e.format&&n.childOf.includes(e.format)?r.push({schema:n.schema,label:i,concretes:e6,defaultConcrete:"yamlover"}):Qs(e.concrete)&&r.push({schema:n.schema,label:i,concretes:t6,defaultConcrete:"dir/yamlover"})}return r}function n6(e){return _i(e).replace(/^:\s?/,"").replace(/^yamlover:\s?/,"")}let am=null;async function i6(){const e={};return await Promise.all(Sv.map(async t=>{try{const r=await un(t.schema,0);r.title&&(e[t.schema]=r.title)}catch{}})),e}function s6(){const[e,t]=$t.useState({});return $t.useEffect(()=>{am??=i6();let r=!0;return am.then(n=>{r&&t(n)}),()=>{r=!1}},[]),e}function Wd(e){const[t,r]=$t.useState(null),[n,i]=$t.useState([]),s=s6(),l=$t.useRef(null),f=()=>{r(null),i([])},h=j=>Zl(j).then(D=>i(D.filter(G=>!G.fragmentSlug))).catch(()=>i([])),d=(j,D,G,de)=>{r({target:j,x:D,y:G,node:de}),i([]),h(j)},k=j=>{if(!t)return;xv(j);const D={path:"(pending)",tag:j};i(G=>[...G,D]),Ba({target:t.target,tag:j.path}).then(()=>h(t.target)).catch(G=>{i(de=>de.filter(ne=>ne!==D)),window.alert("tag failed: "+G.message)})},C=j=>{if(!t)return;const D=n.find(G=>G.tag&&Dr(G.tag.path)===Dr(j.path));i(G=>G.filter(de=>de!==D)),hc(t.target,D?.tag?.path??j.path).then(()=>h(t.target)).catch(G=>{D&&i(de=>[...de,D]),window.alert("untag failed: "+G.message)})};$t.useEffect(()=>{if(!t)return;const j=G=>{l.current?.contains(G.target)||f()},D=G=>{G.target instanceof Node&&l.current?.contains(G.target)||f()};return document.addEventListener("mousedown",j),window.addEventListener("scroll",D,!0),window.addEventListener("wheel",D,!0),()=>{document.removeEventListener("mousedown",j),window.removeEventListener("scroll",D,!0),window.removeEventListener("wheel",D,!0)}},[t]);const N=n.map(j=>j.tag).filter(j=>!!j),U=t?.node&&e?.onCreate?r6(t.node,s).map(j=>({schema:j.schema,label:j.label,concretes:j.concretes,defaultConcrete:j.defaultConcrete,onCreate:D=>{e.onCreate(j.schema,t.target,D),f()}})):void 0,O=t?ge.jsx(Hd,{menuRef:l,x:t.x,y:t.y,applied:N,mode:"create",onPick:k,onUnpick:C,onClose:f,creates:U,title:_i(t.target)}):null;return{openAt:d,tagMenu:O}}class It extends Error{constructor(t,r){var n="KaTeX parse error: "+t,i,s,l=r&&r.loc;if(l&&l.start<=l.end){var f=l.lexer.input;i=l.start,s=l.end,i===f.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var h=f.slice(i,s).replace(/[^]/g,"$&̲"),d;i>15?d="…"+f.slice(i-15,i):d=f.slice(0,i);var k;s+15<f.length?k=f.slice(s,s+15)+"…":k=f.slice(s),n+=d+h+k}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,It.prototype),this.position=i,i!=null&&s!=null&&(this.length=s-i),this.rawMessage=t}}var a6=/([A-Z])/g,l6=e=>e.replace(a6,"-$1").toLowerCase(),o6={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},u6=/[&><"']/g,tn=e=>String(e).replace(u6,t=>o6[t]),uu=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?uu(e.body[0]):e:e.type==="font"?uu(e.body):e,c6=new Set(["mathord","textord","atom"]),Ui=e=>c6.has(uu(e).type),$6=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},Qf={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 f6(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 d6(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return f6(t)}function h6(e,t,r,n){var i=r[t];e[t]=i!==void 0?n.processor?n.processor(i):i:d6(n)}class Vd{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(Qf)){var n=Qf[r];n&&h6(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 It("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=$6(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class Yi{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 ui[p6[this.id]]}sub(){return ui[m6[this.id]]}fracNum(){return ui[_6[this.id]]}fracDen(){return ui[g6[this.id]]}cramp(){return ui[v6[this.id]]}text(){return ui[y6[this.id]]}isTight(){return this.size>=2}}var Yd=0,Bu=1,za=2,Ii=3,ro=4,Un=5,Ha=6,cn=7,ui=[new Yi(Yd,0,!1),new Yi(Bu,0,!0),new Yi(za,1,!1),new Yi(Ii,1,!0),new Yi(ro,2,!1),new Yi(Un,2,!0),new Yi(Ha,3,!1),new Yi(cn,3,!0)],p6=[ro,Un,ro,Un,Ha,cn,Ha,cn],m6=[Un,Un,Un,Un,cn,cn,cn,cn],_6=[za,Ii,ro,Un,Ha,cn,Ha,cn],g6=[Ii,Ii,Un,Un,cn,cn,cn,cn],v6=[Bu,Bu,Ii,Ii,Un,Un,cn,cn],y6=[Yd,Bu,za,Ii,za,Ii,za,Ii],Gt={DISPLAY:ui[Yd],TEXT:ui[za],SCRIPT:ui[ro],SCRIPTSCRIPT:ui[Ha]},Zf=[{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 b6(e){for(var t=0;t<Zf.length;t++)for(var r=Zf[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 cu=[];Zf.forEach(e=>e.blocks.forEach(t=>cu.push(...t)));function Ev(e){for(var t=0;t<cu.length;t+=2)if(e>=cu[t]&&e<=cu[t+1])return!0;return!1}var qr=e=>e+" "+e,la=80,w6=function(t,r){return"M95,"+(622+t+r)+`
84
+ c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
85
+ c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
86
+ 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
87
+ s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
88
+ c69,-144,104.5,-217.7,106.5,-221
89
+ l`+t/2.075+" -"+t+`
90
+ c5.3,-9.3,12,-14,20,-14
91
+ H400000v`+(40+t)+`H845.2724
92
+ s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
93
+ c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
94
+ M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},x6=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
95
+ c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
96
+ c340,-704.7,510.7,-1060.3,512,-1067
97
+ l`+t/2.084+" -"+t+`
98
+ c4.7,-7.3,11,-11,19,-11
99
+ H40000v`+(40+t)+`H1012.3
100
+ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
101
+ 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
102
+ s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
103
+ c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
104
+ M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},k6=function(t,r){return"M983 "+(10+t+r)+`
105
+ l`+t/3.13+" -"+t+`
106
+ c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
107
+ 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
108
+ 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
109
+ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
110
+ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
111
+ c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
112
+ c53.7,-170.3,84.5,-266.8,92.5,-289.5z
113
+ M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},S6=function(t,r){return"M424,"+(2398+t+r)+`
114
+ c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
115
+ 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
116
+ s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
117
+ s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
118
+ l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
119
+ v`+(40+t)+`H1014.6
120
+ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
121
+ c-2,6,-10,9,-24,9
122
+ c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
123
+ h400000v`+(40+t)+"h-400000z"},E6=function(t,r){return"M473,"+(2713+t+r)+`
124
+ c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
125
+ c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
126
+ s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
127
+ 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
128
+ 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
129
+ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
130
+ 606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},A6=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},C6=function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
131
+ 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
132
+ h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
133
+ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
134
+ 219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},T6=function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=w6(r,la);break;case"sqrtSize1":i=x6(r,la);break;case"sqrtSize2":i=k6(r,la);break;case"sqrtSize3":i=S6(r,la);break;case"sqrtSize4":i=E6(r,la);break;case"sqrtTall":i=C6(r,la,n)}return i},R6=function(t,r){switch(t){case"⎜":return qr("M291 0 H417 V"+r+" H291z");case"∣":return qr("M145 0 H188 V"+r+" H145z");case"∥":return qr("M145 0 H188 V"+r+" H145z")+qr("M367 0 H410 V"+r+" H367z");case"⎟":return qr("M457 0 H583 V"+r+" H457z");case"⎢":return qr("M319 0 H403 V"+r+" H319z");case"⎥":return qr("M263 0 H347 V"+r+" H263z");case"⎪":return qr("M384 0 H504 V"+r+" H384z");case"⏐":return qr("M312 0 H355 V"+r+" H312z");case"‖":return qr("M257 0 H300 V"+r+" H257z")+qr("M478 0 H521 V"+r+" H478z");default:return""}},lm={doubleleftarrow:`M262 157
135
+ 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
136
+ 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
137
+ 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
138
+ 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
139
+ 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
140
+ -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
141
+ -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
142
+ m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
143
+ -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
144
+ 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
145
+ -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
146
+ -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
147
+ -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
148
+ 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
149
+ -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
150
+ 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
151
+ -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
152
+ 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
153
+ 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
154
+ 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
155
+ l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
156
+ -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
157
+ 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
158
+ 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
159
+ 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
160
+ -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
161
+ 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
162
+ 435 0h399565z`,leftgroupunder:`M400000 262
163
+ 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
164
+ 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
165
+ -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
166
+ -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
167
+ -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
168
+ 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
169
+ -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
170
+ -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
171
+ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
172
+ 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
173
+ 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
174
+ -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
175
+ 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
176
+ -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
177
+ 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
178
+ -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
179
+ -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
180
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:qr("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:qr("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:qr("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:qr("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
181
+ -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
182
+ 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
183
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:qr("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
184
+ 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
185
+ -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
186
+ 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
187
+ 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
188
+ 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
189
+ 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
190
+ 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
191
+ -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
192
+ -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
193
+ 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
194
+ 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
195
+ -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
196
+ m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
197
+ 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
198
+ -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
199
+ 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
200
+ 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
201
+ -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
202
+ m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
203
+ 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
204
+ -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
205
+ 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
206
+ 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
207
+ -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
208
+ -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
209
+ 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
210
+ -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
211
+ 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
212
+ 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
213
+ 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
214
+ -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
215
+ 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
216
+ 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
217
+ -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
218
+ -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
219
+ 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
220
+ -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
221
+ 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
222
+ 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
223
+ 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
224
+ -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
225
+ -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
226
+ 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
227
+ 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
228
+ -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
229
+ 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
230
+ 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
231
+ -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
232
+ 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:qr("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:qr("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:qr("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
233
+ 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
234
+ -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
235
+ -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
236
+ 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
237
+ -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
238
+ -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
239
+ -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
240
+ 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
241
+ 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
242
+ 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
243
+ 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
244
+ -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
245
+ 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
246
+ -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
247
+ 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
248
+ 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
249
+ -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
250
+ -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
251
+ 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
252
+ 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
253
+ 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
254
+ -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
255
+ 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
256
+ 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
257
+ -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
258
+ -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
259
+ 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
260
+ 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
261
+ -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
262
+ 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
263
+ 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
264
+ -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
265
+ -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
266
+ H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
267
+ 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
268
+ 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
269
+ -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
270
+ -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
271
+ -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,
272
+ -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,
273
+ -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,
274
+ -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,
275
+ -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
276
+ c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
277
+ 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
278
+ 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
279
+ 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
280
+ 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
281
+ c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
282
+ M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
283
+ -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
284
+ 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
285
+ -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
286
+ -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
287
+ -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
288
+ 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
289
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
290
+ 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
291
+ c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
292
+ c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
293
+ M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
294
+ 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,
295
+ -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
296
+ 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
297
+ 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
298
+ 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,
299
+ 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,
300
+ -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
301
+ 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
302
+ 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,
303
+ -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
304
+ 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
305
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},z6=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 v84 h347 v-84
306
+ 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
307
+ 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
308
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
309
+ 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
310
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
311
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
312
+ M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
313
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
314
+ 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
315
+ MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
316
+ MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
317
+ M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
318
+ 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
319
+ 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,
320
+ -36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
321
+ 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
322
+ 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,
323
+ -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
324
+ l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
325
+ -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,
326
+ 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
327
+ c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
328
+ 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
329
+ 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
330
+ 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
331
+ c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
332
+ l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
333
+ -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 N6(e){return"toText"in e}class Za{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(N6(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}}var Jf={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},I6={ex:!0,em:!0,mu:!0},Av=function(t){return typeof t!="string"&&(t=t.unit),t in Jf||t in I6||t==="ex"},vr=function(t,r){var n;if(t.unit in Jf)n=Jf[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 It("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},Mt=function(t){return+t.toFixed(4)+"em"},ms=function(t){return t.filter(r=>r).join(" ")},Gd=function(t){var r="";for(var n of Object.keys(t)){var i=t[n];i!==void 0&&(r+=l6(n)+":"+i+";")}return r},Cv=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)}},Tv=function(t){var r=document.createElement(t);r.className=ms(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},q6=/[\s"'>/=\x00-\x1f]/,Rv=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+tn(ms(this.classes))+'"');var n=Gd(this.style);n&&(r+=' style="'+tn(n)+'"');for(var i of Object.keys(this.attributes)){if(q6.test(i))throw new It("Invalid attribute name '"+i+"'");r+=" "+i+'="'+tn(this.attributes[i])+'"'}r+=">";for(var s=0;s<this.children.length;s++)r+=this.children[s].toMarkup();return r+="</"+t+">",r};class Ja{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,Cv.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return Tv.call(this,"span")}toMarkup(){return Rv.call(this,"span")}}class Ac{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,Cv.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 Tv.call(this,"a")}toMarkup(){return Rv.call(this,"a")}}class M6{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="'+tn(this.src)+'"'+(' alt="'+tn(this.alt)+'"'),r=Gd(this.style);return r&&(t+=' style="'+tn(r)+'"'),t+="'/>",t}}var D6={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Nn{constructor(t,r,n,i,s,l,f,h){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=l||0,this.classes=f||[],this.style=h||{},this.maxFontSize=0;var d=b6(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=D6[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=Mt(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=ms(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+=tn(ms(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+Mt(this.italic)+";"),n+=Gd(this.style),n&&(t=!0,r+=' style="'+tn(n)+'"');var i=tn(this.text);return t?(r+=">",r+=i,r+="</span>",r):i}}class Fi{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+'="'+tn(this.attributes[r])+'"';t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class _s{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",lm[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+tn(this.alternate)+'"/>':'<path d="'+tn(lm[this.pathName])+'"/>'}}class Of{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+'="'+tn(this.attributes[r])+'"';return t+="/>",t}}function L6(e){if(e instanceof Nn)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function F6(e){if(e instanceof Ja)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var j6=e=>e instanceof Ja||e instanceof Ac||e instanceof Za,fi={"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]}},Fo={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]},om={Å:"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 B6(e,t){fi[e]=t}function Kd(e,t,r){if(!fi[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=fi[t][n];if(!i&&e[0]in om&&(n=om[e[0]].charCodeAt(0),i=fi[t][n]),!i&&r==="text"&&Ev(n)&&(i=fi[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var k$={};function P6(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!k$[t]){var r=k$[t]={cssEmPerMu:Fo.quad[t]/18};for(var n in Fo)Fo.hasOwnProperty(n)&&(r[n]=Fo[n][t])}return k$[t]}var pr={math:{},text:{}};function ve(e,t,r,n,i,s){pr[e][i]={font:t,group:r,replace:n},s&&n&&(pr[e][n]=pr[e][i])}var Te="math",At="text",We="main",ot="ams",mr="accent-token",Lt="bin",pn="close",Oa="inner",Bt="mathord",Ir="op-token",Dn="open",po="punct",ut="rel",Hi="spacing",gt="textord";ve(Te,We,ut,"≡","\\equiv",!0);ve(Te,We,ut,"≺","\\prec",!0);ve(Te,We,ut,"≻","\\succ",!0);ve(Te,We,ut,"∼","\\sim",!0);ve(Te,We,ut,"⊥","\\perp");ve(Te,We,ut,"⪯","\\preceq",!0);ve(Te,We,ut,"⪰","\\succeq",!0);ve(Te,We,ut,"≃","\\simeq",!0);ve(Te,We,ut,"∣","\\mid",!0);ve(Te,We,ut,"≪","\\ll",!0);ve(Te,We,ut,"≫","\\gg",!0);ve(Te,We,ut,"≍","\\asymp",!0);ve(Te,We,ut,"∥","\\parallel");ve(Te,We,ut,"⋈","\\bowtie",!0);ve(Te,We,ut,"⌣","\\smile",!0);ve(Te,We,ut,"⊑","\\sqsubseteq",!0);ve(Te,We,ut,"⊒","\\sqsupseteq",!0);ve(Te,We,ut,"≐","\\doteq",!0);ve(Te,We,ut,"⌢","\\frown",!0);ve(Te,We,ut,"∋","\\ni",!0);ve(Te,We,ut,"∝","\\propto",!0);ve(Te,We,ut,"⊢","\\vdash",!0);ve(Te,We,ut,"⊣","\\dashv",!0);ve(Te,We,ut,"∋","\\owns");ve(Te,We,po,".","\\ldotp");ve(Te,We,po,"⋅","\\cdotp");ve(Te,We,po,"⋅","·");ve(At,We,gt,"⋅","·");ve(Te,We,gt,"#","\\#");ve(At,We,gt,"#","\\#");ve(Te,We,gt,"&","\\&");ve(At,We,gt,"&","\\&");ve(Te,We,gt,"ℵ","\\aleph",!0);ve(Te,We,gt,"∀","\\forall",!0);ve(Te,We,gt,"ℏ","\\hbar",!0);ve(Te,We,gt,"∃","\\exists",!0);ve(Te,We,gt,"∇","\\nabla",!0);ve(Te,We,gt,"♭","\\flat",!0);ve(Te,We,gt,"ℓ","\\ell",!0);ve(Te,We,gt,"♮","\\natural",!0);ve(Te,We,gt,"♣","\\clubsuit",!0);ve(Te,We,gt,"℘","\\wp",!0);ve(Te,We,gt,"♯","\\sharp",!0);ve(Te,We,gt,"♢","\\diamondsuit",!0);ve(Te,We,gt,"ℜ","\\Re",!0);ve(Te,We,gt,"♡","\\heartsuit",!0);ve(Te,We,gt,"ℑ","\\Im",!0);ve(Te,We,gt,"♠","\\spadesuit",!0);ve(Te,We,gt,"§","\\S",!0);ve(At,We,gt,"§","\\S");ve(Te,We,gt,"¶","\\P",!0);ve(At,We,gt,"¶","\\P");ve(Te,We,gt,"†","\\dag");ve(At,We,gt,"†","\\dag");ve(At,We,gt,"†","\\textdagger");ve(Te,We,gt,"‡","\\ddag");ve(At,We,gt,"‡","\\ddag");ve(At,We,gt,"‡","\\textdaggerdbl");ve(Te,We,pn,"⎱","\\rmoustache",!0);ve(Te,We,Dn,"⎰","\\lmoustache",!0);ve(Te,We,pn,"⟯","\\rgroup",!0);ve(Te,We,Dn,"⟮","\\lgroup",!0);ve(Te,We,Lt,"∓","\\mp",!0);ve(Te,We,Lt,"⊖","\\ominus",!0);ve(Te,We,Lt,"⊎","\\uplus",!0);ve(Te,We,Lt,"⊓","\\sqcap",!0);ve(Te,We,Lt,"∗","\\ast");ve(Te,We,Lt,"⊔","\\sqcup",!0);ve(Te,We,Lt,"◯","\\bigcirc",!0);ve(Te,We,Lt,"∙","\\bullet",!0);ve(Te,We,Lt,"‡","\\ddagger");ve(Te,We,Lt,"≀","\\wr",!0);ve(Te,We,Lt,"⨿","\\amalg");ve(Te,We,Lt,"&","\\And");ve(Te,We,ut,"⟵","\\longleftarrow",!0);ve(Te,We,ut,"⇐","\\Leftarrow",!0);ve(Te,We,ut,"⟸","\\Longleftarrow",!0);ve(Te,We,ut,"⟶","\\longrightarrow",!0);ve(Te,We,ut,"⇒","\\Rightarrow",!0);ve(Te,We,ut,"⟹","\\Longrightarrow",!0);ve(Te,We,ut,"↔","\\leftrightarrow",!0);ve(Te,We,ut,"⟷","\\longleftrightarrow",!0);ve(Te,We,ut,"⇔","\\Leftrightarrow",!0);ve(Te,We,ut,"⟺","\\Longleftrightarrow",!0);ve(Te,We,ut,"↦","\\mapsto",!0);ve(Te,We,ut,"⟼","\\longmapsto",!0);ve(Te,We,ut,"↗","\\nearrow",!0);ve(Te,We,ut,"↩","\\hookleftarrow",!0);ve(Te,We,ut,"↪","\\hookrightarrow",!0);ve(Te,We,ut,"↘","\\searrow",!0);ve(Te,We,ut,"↼","\\leftharpoonup",!0);ve(Te,We,ut,"⇀","\\rightharpoonup",!0);ve(Te,We,ut,"↙","\\swarrow",!0);ve(Te,We,ut,"↽","\\leftharpoondown",!0);ve(Te,We,ut,"⇁","\\rightharpoondown",!0);ve(Te,We,ut,"↖","\\nwarrow",!0);ve(Te,We,ut,"⇌","\\rightleftharpoons",!0);ve(Te,ot,ut,"≮","\\nless",!0);ve(Te,ot,ut,"","\\@nleqslant");ve(Te,ot,ut,"","\\@nleqq");ve(Te,ot,ut,"⪇","\\lneq",!0);ve(Te,ot,ut,"≨","\\lneqq",!0);ve(Te,ot,ut,"","\\@lvertneqq");ve(Te,ot,ut,"⋦","\\lnsim",!0);ve(Te,ot,ut,"⪉","\\lnapprox",!0);ve(Te,ot,ut,"⊀","\\nprec",!0);ve(Te,ot,ut,"⋠","\\npreceq",!0);ve(Te,ot,ut,"⋨","\\precnsim",!0);ve(Te,ot,ut,"⪹","\\precnapprox",!0);ve(Te,ot,ut,"≁","\\nsim",!0);ve(Te,ot,ut,"","\\@nshortmid");ve(Te,ot,ut,"∤","\\nmid",!0);ve(Te,ot,ut,"⊬","\\nvdash",!0);ve(Te,ot,ut,"⊭","\\nvDash",!0);ve(Te,ot,ut,"⋪","\\ntriangleleft");ve(Te,ot,ut,"⋬","\\ntrianglelefteq",!0);ve(Te,ot,ut,"⊊","\\subsetneq",!0);ve(Te,ot,ut,"","\\@varsubsetneq");ve(Te,ot,ut,"⫋","\\subsetneqq",!0);ve(Te,ot,ut,"","\\@varsubsetneqq");ve(Te,ot,ut,"≯","\\ngtr",!0);ve(Te,ot,ut,"","\\@ngeqslant");ve(Te,ot,ut,"","\\@ngeqq");ve(Te,ot,ut,"⪈","\\gneq",!0);ve(Te,ot,ut,"≩","\\gneqq",!0);ve(Te,ot,ut,"","\\@gvertneqq");ve(Te,ot,ut,"⋧","\\gnsim",!0);ve(Te,ot,ut,"⪊","\\gnapprox",!0);ve(Te,ot,ut,"⊁","\\nsucc",!0);ve(Te,ot,ut,"⋡","\\nsucceq",!0);ve(Te,ot,ut,"⋩","\\succnsim",!0);ve(Te,ot,ut,"⪺","\\succnapprox",!0);ve(Te,ot,ut,"≆","\\ncong",!0);ve(Te,ot,ut,"","\\@nshortparallel");ve(Te,ot,ut,"∦","\\nparallel",!0);ve(Te,ot,ut,"⊯","\\nVDash",!0);ve(Te,ot,ut,"⋫","\\ntriangleright");ve(Te,ot,ut,"⋭","\\ntrianglerighteq",!0);ve(Te,ot,ut,"","\\@nsupseteqq");ve(Te,ot,ut,"⊋","\\supsetneq",!0);ve(Te,ot,ut,"","\\@varsupsetneq");ve(Te,ot,ut,"⫌","\\supsetneqq",!0);ve(Te,ot,ut,"","\\@varsupsetneqq");ve(Te,ot,ut,"⊮","\\nVdash",!0);ve(Te,ot,ut,"⪵","\\precneqq",!0);ve(Te,ot,ut,"⪶","\\succneqq",!0);ve(Te,ot,ut,"","\\@nsubseteqq");ve(Te,ot,Lt,"⊴","\\unlhd");ve(Te,ot,Lt,"⊵","\\unrhd");ve(Te,ot,ut,"↚","\\nleftarrow",!0);ve(Te,ot,ut,"↛","\\nrightarrow",!0);ve(Te,ot,ut,"⇍","\\nLeftarrow",!0);ve(Te,ot,ut,"⇏","\\nRightarrow",!0);ve(Te,ot,ut,"↮","\\nleftrightarrow",!0);ve(Te,ot,ut,"⇎","\\nLeftrightarrow",!0);ve(Te,ot,ut,"△","\\vartriangle");ve(Te,ot,gt,"ℏ","\\hslash");ve(Te,ot,gt,"▽","\\triangledown");ve(Te,ot,gt,"◊","\\lozenge");ve(Te,ot,gt,"Ⓢ","\\circledS");ve(Te,ot,gt,"®","\\circledR");ve(At,ot,gt,"®","\\circledR");ve(Te,ot,gt,"∡","\\measuredangle",!0);ve(Te,ot,gt,"∄","\\nexists");ve(Te,ot,gt,"℧","\\mho");ve(Te,ot,gt,"Ⅎ","\\Finv",!0);ve(Te,ot,gt,"⅁","\\Game",!0);ve(Te,ot,gt,"‵","\\backprime");ve(Te,ot,gt,"▲","\\blacktriangle");ve(Te,ot,gt,"▼","\\blacktriangledown");ve(Te,ot,gt,"■","\\blacksquare");ve(Te,ot,gt,"⧫","\\blacklozenge");ve(Te,ot,gt,"★","\\bigstar");ve(Te,ot,gt,"∢","\\sphericalangle",!0);ve(Te,ot,gt,"∁","\\complement",!0);ve(Te,ot,gt,"ð","\\eth",!0);ve(At,We,gt,"ð","ð");ve(Te,ot,gt,"╱","\\diagup");ve(Te,ot,gt,"╲","\\diagdown");ve(Te,ot,gt,"□","\\square");ve(Te,ot,gt,"□","\\Box");ve(Te,ot,gt,"◊","\\Diamond");ve(Te,ot,gt,"¥","\\yen",!0);ve(At,ot,gt,"¥","\\yen",!0);ve(Te,ot,gt,"✓","\\checkmark",!0);ve(At,ot,gt,"✓","\\checkmark");ve(Te,ot,gt,"ℶ","\\beth",!0);ve(Te,ot,gt,"ℸ","\\daleth",!0);ve(Te,ot,gt,"ℷ","\\gimel",!0);ve(Te,ot,gt,"ϝ","\\digamma",!0);ve(Te,ot,gt,"ϰ","\\varkappa");ve(Te,ot,Dn,"┌","\\@ulcorner",!0);ve(Te,ot,pn,"┐","\\@urcorner",!0);ve(Te,ot,Dn,"└","\\@llcorner",!0);ve(Te,ot,pn,"┘","\\@lrcorner",!0);ve(Te,ot,ut,"≦","\\leqq",!0);ve(Te,ot,ut,"⩽","\\leqslant",!0);ve(Te,ot,ut,"⪕","\\eqslantless",!0);ve(Te,ot,ut,"≲","\\lesssim",!0);ve(Te,ot,ut,"⪅","\\lessapprox",!0);ve(Te,ot,ut,"≊","\\approxeq",!0);ve(Te,ot,Lt,"⋖","\\lessdot");ve(Te,ot,ut,"⋘","\\lll",!0);ve(Te,ot,ut,"≶","\\lessgtr",!0);ve(Te,ot,ut,"⋚","\\lesseqgtr",!0);ve(Te,ot,ut,"⪋","\\lesseqqgtr",!0);ve(Te,ot,ut,"≑","\\doteqdot");ve(Te,ot,ut,"≓","\\risingdotseq",!0);ve(Te,ot,ut,"≒","\\fallingdotseq",!0);ve(Te,ot,ut,"∽","\\backsim",!0);ve(Te,ot,ut,"⋍","\\backsimeq",!0);ve(Te,ot,ut,"⫅","\\subseteqq",!0);ve(Te,ot,ut,"⋐","\\Subset",!0);ve(Te,ot,ut,"⊏","\\sqsubset",!0);ve(Te,ot,ut,"≼","\\preccurlyeq",!0);ve(Te,ot,ut,"⋞","\\curlyeqprec",!0);ve(Te,ot,ut,"≾","\\precsim",!0);ve(Te,ot,ut,"⪷","\\precapprox",!0);ve(Te,ot,ut,"⊲","\\vartriangleleft");ve(Te,ot,ut,"⊴","\\trianglelefteq");ve(Te,ot,ut,"⊨","\\vDash",!0);ve(Te,ot,ut,"⊪","\\Vvdash",!0);ve(Te,ot,ut,"⌣","\\smallsmile");ve(Te,ot,ut,"⌢","\\smallfrown");ve(Te,ot,ut,"≏","\\bumpeq",!0);ve(Te,ot,ut,"≎","\\Bumpeq",!0);ve(Te,ot,ut,"≧","\\geqq",!0);ve(Te,ot,ut,"⩾","\\geqslant",!0);ve(Te,ot,ut,"⪖","\\eqslantgtr",!0);ve(Te,ot,ut,"≳","\\gtrsim",!0);ve(Te,ot,ut,"⪆","\\gtrapprox",!0);ve(Te,ot,Lt,"⋗","\\gtrdot");ve(Te,ot,ut,"⋙","\\ggg",!0);ve(Te,ot,ut,"≷","\\gtrless",!0);ve(Te,ot,ut,"⋛","\\gtreqless",!0);ve(Te,ot,ut,"⪌","\\gtreqqless",!0);ve(Te,ot,ut,"≖","\\eqcirc",!0);ve(Te,ot,ut,"≗","\\circeq",!0);ve(Te,ot,ut,"≜","\\triangleq",!0);ve(Te,ot,ut,"∼","\\thicksim");ve(Te,ot,ut,"≈","\\thickapprox");ve(Te,ot,ut,"⫆","\\supseteqq",!0);ve(Te,ot,ut,"⋑","\\Supset",!0);ve(Te,ot,ut,"⊐","\\sqsupset",!0);ve(Te,ot,ut,"≽","\\succcurlyeq",!0);ve(Te,ot,ut,"⋟","\\curlyeqsucc",!0);ve(Te,ot,ut,"≿","\\succsim",!0);ve(Te,ot,ut,"⪸","\\succapprox",!0);ve(Te,ot,ut,"⊳","\\vartriangleright");ve(Te,ot,ut,"⊵","\\trianglerighteq");ve(Te,ot,ut,"⊩","\\Vdash",!0);ve(Te,ot,ut,"∣","\\shortmid");ve(Te,ot,ut,"∥","\\shortparallel");ve(Te,ot,ut,"≬","\\between",!0);ve(Te,ot,ut,"⋔","\\pitchfork",!0);ve(Te,ot,ut,"∝","\\varpropto");ve(Te,ot,ut,"◀","\\blacktriangleleft");ve(Te,ot,ut,"∴","\\therefore",!0);ve(Te,ot,ut,"∍","\\backepsilon");ve(Te,ot,ut,"▶","\\blacktriangleright");ve(Te,ot,ut,"∵","\\because",!0);ve(Te,ot,ut,"⋘","\\llless");ve(Te,ot,ut,"⋙","\\gggtr");ve(Te,ot,Lt,"⊲","\\lhd");ve(Te,ot,Lt,"⊳","\\rhd");ve(Te,ot,ut,"≂","\\eqsim",!0);ve(Te,We,ut,"⋈","\\Join");ve(Te,ot,ut,"≑","\\Doteq",!0);ve(Te,ot,Lt,"∔","\\dotplus",!0);ve(Te,ot,Lt,"∖","\\smallsetminus");ve(Te,ot,Lt,"⋒","\\Cap",!0);ve(Te,ot,Lt,"⋓","\\Cup",!0);ve(Te,ot,Lt,"⩞","\\doublebarwedge",!0);ve(Te,ot,Lt,"⊟","\\boxminus",!0);ve(Te,ot,Lt,"⊞","\\boxplus",!0);ve(Te,ot,Lt,"⋇","\\divideontimes",!0);ve(Te,ot,Lt,"⋉","\\ltimes",!0);ve(Te,ot,Lt,"⋊","\\rtimes",!0);ve(Te,ot,Lt,"⋋","\\leftthreetimes",!0);ve(Te,ot,Lt,"⋌","\\rightthreetimes",!0);ve(Te,ot,Lt,"⋏","\\curlywedge",!0);ve(Te,ot,Lt,"⋎","\\curlyvee",!0);ve(Te,ot,Lt,"⊝","\\circleddash",!0);ve(Te,ot,Lt,"⊛","\\circledast",!0);ve(Te,ot,Lt,"⋅","\\centerdot");ve(Te,ot,Lt,"⊺","\\intercal",!0);ve(Te,ot,Lt,"⋒","\\doublecap");ve(Te,ot,Lt,"⋓","\\doublecup");ve(Te,ot,Lt,"⊠","\\boxtimes",!0);ve(Te,ot,ut,"⇢","\\dashrightarrow",!0);ve(Te,ot,ut,"⇠","\\dashleftarrow",!0);ve(Te,ot,ut,"⇇","\\leftleftarrows",!0);ve(Te,ot,ut,"⇆","\\leftrightarrows",!0);ve(Te,ot,ut,"⇚","\\Lleftarrow",!0);ve(Te,ot,ut,"↞","\\twoheadleftarrow",!0);ve(Te,ot,ut,"↢","\\leftarrowtail",!0);ve(Te,ot,ut,"↫","\\looparrowleft",!0);ve(Te,ot,ut,"⇋","\\leftrightharpoons",!0);ve(Te,ot,ut,"↶","\\curvearrowleft",!0);ve(Te,ot,ut,"↺","\\circlearrowleft",!0);ve(Te,ot,ut,"↰","\\Lsh",!0);ve(Te,ot,ut,"⇈","\\upuparrows",!0);ve(Te,ot,ut,"↿","\\upharpoonleft",!0);ve(Te,ot,ut,"⇃","\\downharpoonleft",!0);ve(Te,We,ut,"⊶","\\origof",!0);ve(Te,We,ut,"⊷","\\imageof",!0);ve(Te,ot,ut,"⊸","\\multimap",!0);ve(Te,ot,ut,"↭","\\leftrightsquigarrow",!0);ve(Te,ot,ut,"⇉","\\rightrightarrows",!0);ve(Te,ot,ut,"⇄","\\rightleftarrows",!0);ve(Te,ot,ut,"↠","\\twoheadrightarrow",!0);ve(Te,ot,ut,"↣","\\rightarrowtail",!0);ve(Te,ot,ut,"↬","\\looparrowright",!0);ve(Te,ot,ut,"↷","\\curvearrowright",!0);ve(Te,ot,ut,"↻","\\circlearrowright",!0);ve(Te,ot,ut,"↱","\\Rsh",!0);ve(Te,ot,ut,"⇊","\\downdownarrows",!0);ve(Te,ot,ut,"↾","\\upharpoonright",!0);ve(Te,ot,ut,"⇂","\\downharpoonright",!0);ve(Te,ot,ut,"⇝","\\rightsquigarrow",!0);ve(Te,ot,ut,"⇝","\\leadsto");ve(Te,ot,ut,"⇛","\\Rrightarrow",!0);ve(Te,ot,ut,"↾","\\restriction");ve(Te,We,gt,"‘","`");ve(Te,We,gt,"$","\\$");ve(At,We,gt,"$","\\$");ve(At,We,gt,"$","\\textdollar");ve(Te,We,gt,"%","\\%");ve(At,We,gt,"%","\\%");ve(Te,We,gt,"_","\\_");ve(At,We,gt,"_","\\_");ve(At,We,gt,"_","\\textunderscore");ve(Te,We,gt,"∠","\\angle",!0);ve(Te,We,gt,"∞","\\infty",!0);ve(Te,We,gt,"′","\\prime");ve(Te,We,gt,"△","\\triangle");ve(Te,We,gt,"Γ","\\Gamma",!0);ve(Te,We,gt,"Δ","\\Delta",!0);ve(Te,We,gt,"Θ","\\Theta",!0);ve(Te,We,gt,"Λ","\\Lambda",!0);ve(Te,We,gt,"Ξ","\\Xi",!0);ve(Te,We,gt,"Π","\\Pi",!0);ve(Te,We,gt,"Σ","\\Sigma",!0);ve(Te,We,gt,"Υ","\\Upsilon",!0);ve(Te,We,gt,"Φ","\\Phi",!0);ve(Te,We,gt,"Ψ","\\Psi",!0);ve(Te,We,gt,"Ω","\\Omega",!0);ve(Te,We,gt,"A","Α");ve(Te,We,gt,"B","Β");ve(Te,We,gt,"E","Ε");ve(Te,We,gt,"Z","Ζ");ve(Te,We,gt,"H","Η");ve(Te,We,gt,"I","Ι");ve(Te,We,gt,"K","Κ");ve(Te,We,gt,"M","Μ");ve(Te,We,gt,"N","Ν");ve(Te,We,gt,"O","Ο");ve(Te,We,gt,"P","Ρ");ve(Te,We,gt,"T","Τ");ve(Te,We,gt,"X","Χ");ve(Te,We,gt,"¬","\\neg",!0);ve(Te,We,gt,"¬","\\lnot");ve(Te,We,gt,"⊤","\\top");ve(Te,We,gt,"⊥","\\bot");ve(Te,We,gt,"∅","\\emptyset");ve(Te,ot,gt,"∅","\\varnothing");ve(Te,We,Bt,"α","\\alpha",!0);ve(Te,We,Bt,"β","\\beta",!0);ve(Te,We,Bt,"γ","\\gamma",!0);ve(Te,We,Bt,"δ","\\delta",!0);ve(Te,We,Bt,"ϵ","\\epsilon",!0);ve(Te,We,Bt,"ζ","\\zeta",!0);ve(Te,We,Bt,"η","\\eta",!0);ve(Te,We,Bt,"θ","\\theta",!0);ve(Te,We,Bt,"ι","\\iota",!0);ve(Te,We,Bt,"κ","\\kappa",!0);ve(Te,We,Bt,"λ","\\lambda",!0);ve(Te,We,Bt,"μ","\\mu",!0);ve(Te,We,Bt,"ν","\\nu",!0);ve(Te,We,Bt,"ξ","\\xi",!0);ve(Te,We,Bt,"ο","\\omicron",!0);ve(Te,We,Bt,"π","\\pi",!0);ve(Te,We,Bt,"ρ","\\rho",!0);ve(Te,We,Bt,"σ","\\sigma",!0);ve(Te,We,Bt,"τ","\\tau",!0);ve(Te,We,Bt,"υ","\\upsilon",!0);ve(Te,We,Bt,"ϕ","\\phi",!0);ve(Te,We,Bt,"χ","\\chi",!0);ve(Te,We,Bt,"ψ","\\psi",!0);ve(Te,We,Bt,"ω","\\omega",!0);ve(Te,We,Bt,"ε","\\varepsilon",!0);ve(Te,We,Bt,"ϑ","\\vartheta",!0);ve(Te,We,Bt,"ϖ","\\varpi",!0);ve(Te,We,Bt,"ϱ","\\varrho",!0);ve(Te,We,Bt,"ς","\\varsigma",!0);ve(Te,We,Bt,"φ","\\varphi",!0);ve(Te,We,Lt,"∗","*",!0);ve(Te,We,Lt,"+","+");ve(Te,We,Lt,"−","-",!0);ve(Te,We,Lt,"⋅","\\cdot",!0);ve(Te,We,Lt,"∘","\\circ",!0);ve(Te,We,Lt,"÷","\\div",!0);ve(Te,We,Lt,"±","\\pm",!0);ve(Te,We,Lt,"×","\\times",!0);ve(Te,We,Lt,"∩","\\cap",!0);ve(Te,We,Lt,"∪","\\cup",!0);ve(Te,We,Lt,"∖","\\setminus",!0);ve(Te,We,Lt,"∧","\\land");ve(Te,We,Lt,"∨","\\lor");ve(Te,We,Lt,"∧","\\wedge",!0);ve(Te,We,Lt,"∨","\\vee",!0);ve(Te,We,gt,"√","\\surd");ve(Te,We,Dn,"⟨","\\langle",!0);ve(Te,We,Dn,"∣","\\lvert");ve(Te,We,Dn,"∥","\\lVert");ve(Te,We,pn,"?","?");ve(Te,We,pn,"!","!");ve(Te,We,pn,"⟩","\\rangle",!0);ve(Te,We,pn,"∣","\\rvert");ve(Te,We,pn,"∥","\\rVert");ve(Te,We,ut,"=","=");ve(Te,We,ut,":",":");ve(Te,We,ut,"≈","\\approx",!0);ve(Te,We,ut,"≅","\\cong",!0);ve(Te,We,ut,"≥","\\ge");ve(Te,We,ut,"≥","\\geq",!0);ve(Te,We,ut,"←","\\gets");ve(Te,We,ut,">","\\gt",!0);ve(Te,We,ut,"∈","\\in",!0);ve(Te,We,ut,"","\\@not");ve(Te,We,ut,"⊂","\\subset",!0);ve(Te,We,ut,"⊃","\\supset",!0);ve(Te,We,ut,"⊆","\\subseteq",!0);ve(Te,We,ut,"⊇","\\supseteq",!0);ve(Te,ot,ut,"⊈","\\nsubseteq",!0);ve(Te,ot,ut,"⊉","\\nsupseteq",!0);ve(Te,We,ut,"⊨","\\models");ve(Te,We,ut,"←","\\leftarrow",!0);ve(Te,We,ut,"≤","\\le");ve(Te,We,ut,"≤","\\leq",!0);ve(Te,We,ut,"<","\\lt",!0);ve(Te,We,ut,"→","\\rightarrow",!0);ve(Te,We,ut,"→","\\to");ve(Te,ot,ut,"≱","\\ngeq",!0);ve(Te,ot,ut,"≰","\\nleq",!0);ve(Te,We,Hi," ","\\ ");ve(Te,We,Hi," ","\\space");ve(Te,We,Hi," ","\\nobreakspace");ve(At,We,Hi," ","\\ ");ve(At,We,Hi," "," ");ve(At,We,Hi," ","\\space");ve(At,We,Hi," ","\\nobreakspace");ve(Te,We,Hi,"","\\nobreak");ve(Te,We,Hi,"","\\allowbreak");ve(Te,We,po,",",",");ve(Te,We,po,";",";");ve(Te,ot,Lt,"⊼","\\barwedge",!0);ve(Te,ot,Lt,"⊻","\\veebar",!0);ve(Te,We,Lt,"⊙","\\odot",!0);ve(Te,We,Lt,"⊕","\\oplus",!0);ve(Te,We,Lt,"⊗","\\otimes",!0);ve(Te,We,gt,"∂","\\partial",!0);ve(Te,We,Lt,"⊘","\\oslash",!0);ve(Te,ot,Lt,"⊚","\\circledcirc",!0);ve(Te,ot,Lt,"⊡","\\boxdot",!0);ve(Te,We,Lt,"△","\\bigtriangleup");ve(Te,We,Lt,"▽","\\bigtriangledown");ve(Te,We,Lt,"†","\\dagger");ve(Te,We,Lt,"⋄","\\diamond");ve(Te,We,Lt,"⋆","\\star");ve(Te,We,Lt,"◃","\\triangleleft");ve(Te,We,Lt,"▹","\\triangleright");ve(Te,We,Dn,"{","\\{");ve(At,We,gt,"{","\\{");ve(At,We,gt,"{","\\textbraceleft");ve(Te,We,pn,"}","\\}");ve(At,We,gt,"}","\\}");ve(At,We,gt,"}","\\textbraceright");ve(Te,We,Dn,"{","\\lbrace");ve(Te,We,pn,"}","\\rbrace");ve(Te,We,Dn,"[","\\lbrack",!0);ve(At,We,gt,"[","\\lbrack",!0);ve(Te,We,pn,"]","\\rbrack",!0);ve(At,We,gt,"]","\\rbrack",!0);ve(Te,We,Dn,"(","\\lparen",!0);ve(Te,We,pn,")","\\rparen",!0);ve(At,We,gt,"<","\\textless",!0);ve(At,We,gt,">","\\textgreater",!0);ve(Te,We,Dn,"⌊","\\lfloor",!0);ve(Te,We,pn,"⌋","\\rfloor",!0);ve(Te,We,Dn,"⌈","\\lceil",!0);ve(Te,We,pn,"⌉","\\rceil",!0);ve(Te,We,gt,"\\","\\backslash");ve(Te,We,gt,"∣","|");ve(Te,We,gt,"∣","\\vert");ve(At,We,gt,"|","\\textbar",!0);ve(Te,We,gt,"∥","\\|");ve(Te,We,gt,"∥","\\Vert");ve(At,We,gt,"∥","\\textbardbl");ve(At,We,gt,"~","\\textasciitilde");ve(At,We,gt,"\\","\\textbackslash");ve(At,We,gt,"^","\\textasciicircum");ve(Te,We,ut,"↑","\\uparrow",!0);ve(Te,We,ut,"⇑","\\Uparrow",!0);ve(Te,We,ut,"↓","\\downarrow",!0);ve(Te,We,ut,"⇓","\\Downarrow",!0);ve(Te,We,ut,"↕","\\updownarrow",!0);ve(Te,We,ut,"⇕","\\Updownarrow",!0);ve(Te,We,Ir,"∐","\\coprod");ve(Te,We,Ir,"⋁","\\bigvee");ve(Te,We,Ir,"⋀","\\bigwedge");ve(Te,We,Ir,"⨄","\\biguplus");ve(Te,We,Ir,"⋂","\\bigcap");ve(Te,We,Ir,"⋃","\\bigcup");ve(Te,We,Ir,"∫","\\int");ve(Te,We,Ir,"∫","\\intop");ve(Te,We,Ir,"∬","\\iint");ve(Te,We,Ir,"∭","\\iiint");ve(Te,We,Ir,"∏","\\prod");ve(Te,We,Ir,"∑","\\sum");ve(Te,We,Ir,"⨂","\\bigotimes");ve(Te,We,Ir,"⨁","\\bigoplus");ve(Te,We,Ir,"⨀","\\bigodot");ve(Te,We,Ir,"∮","\\oint");ve(Te,We,Ir,"∯","\\oiint");ve(Te,We,Ir,"∰","\\oiiint");ve(Te,We,Ir,"⨆","\\bigsqcup");ve(Te,We,Ir,"∫","\\smallint");ve(At,We,Oa,"…","\\textellipsis");ve(Te,We,Oa,"…","\\mathellipsis");ve(At,We,Oa,"…","\\ldots",!0);ve(Te,We,Oa,"…","\\ldots",!0);ve(Te,We,Oa,"⋯","\\@cdots",!0);ve(Te,We,Oa,"⋱","\\ddots",!0);ve(Te,We,gt,"⋮","\\varvdots");ve(At,We,gt,"⋮","\\varvdots");ve(Te,We,mr,"ˊ","\\acute");ve(Te,We,mr,"ˋ","\\grave");ve(Te,We,mr,"¨","\\ddot");ve(Te,We,mr,"~","\\tilde");ve(Te,We,mr,"ˉ","\\bar");ve(Te,We,mr,"˘","\\breve");ve(Te,We,mr,"ˇ","\\check");ve(Te,We,mr,"^","\\hat");ve(Te,We,mr,"⃗","\\vec");ve(Te,We,mr,"˙","\\dot");ve(Te,We,mr,"˚","\\mathring");ve(Te,We,Bt,"","\\@imath");ve(Te,We,Bt,"","\\@jmath");ve(Te,We,gt,"ı","ı");ve(Te,We,gt,"ȷ","ȷ");ve(At,We,gt,"ı","\\i",!0);ve(At,We,gt,"ȷ","\\j",!0);ve(At,We,gt,"ß","\\ss",!0);ve(At,We,gt,"æ","\\ae",!0);ve(At,We,gt,"œ","\\oe",!0);ve(At,We,gt,"ø","\\o",!0);ve(At,We,gt,"Æ","\\AE",!0);ve(At,We,gt,"Œ","\\OE",!0);ve(At,We,gt,"Ø","\\O",!0);ve(At,We,mr,"ˊ","\\'");ve(At,We,mr,"ˋ","\\`");ve(At,We,mr,"ˆ","\\^");ve(At,We,mr,"˜","\\~");ve(At,We,mr,"ˉ","\\=");ve(At,We,mr,"˘","\\u");ve(At,We,mr,"˙","\\.");ve(At,We,mr,"¸","\\c");ve(At,We,mr,"˚","\\r");ve(At,We,mr,"ˇ","\\v");ve(At,We,mr,"¨",'\\"');ve(At,We,mr,"˝","\\H");ve(At,We,mr,"◯","\\textcircled");var zv={"--":!0,"---":!0,"``":!0,"''":!0};ve(At,We,gt,"–","--",!0);ve(At,We,gt,"–","\\textendash");ve(At,We,gt,"—","---",!0);ve(At,We,gt,"—","\\textemdash");ve(At,We,gt,"‘","`",!0);ve(At,We,gt,"‘","\\textquoteleft");ve(At,We,gt,"’","'",!0);ve(At,We,gt,"’","\\textquoteright");ve(At,We,gt,"“","``",!0);ve(At,We,gt,"“","\\textquotedblleft");ve(At,We,gt,"”","''",!0);ve(At,We,gt,"”","\\textquotedblright");ve(Te,We,gt,"°","\\degree",!0);ve(At,We,gt,"°","\\degree");ve(At,We,gt,"°","\\textdegree",!0);ve(Te,We,gt,"£","\\pounds");ve(Te,We,gt,"£","\\mathsterling",!0);ve(At,We,gt,"£","\\pounds");ve(At,We,gt,"£","\\textsterling",!0);ve(Te,ot,gt,"✠","\\maltese");ve(At,ot,gt,"✠","\\maltese");var um='0123456789/@."';for(var S$=0;S$<um.length;S$++){var cm=um.charAt(S$);ve(Te,We,gt,cm,cm)}var $m='0123456789!@*()-=+";:?/.,';for(var E$=0;E$<$m.length;E$++){var fm=$m.charAt(E$);ve(At,We,gt,fm,fm)}var Pu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var A$=0;A$<Pu.length;A$++){var jo=Pu.charAt(A$);ve(Te,We,Bt,jo,jo),ve(At,We,gt,jo,jo)}ve(Te,ot,gt,"C","ℂ");ve(At,ot,gt,"C","ℂ");ve(Te,ot,gt,"H","ℍ");ve(At,ot,gt,"H","ℍ");ve(Te,ot,gt,"N","ℕ");ve(At,ot,gt,"N","ℕ");ve(Te,ot,gt,"P","ℙ");ve(At,ot,gt,"P","ℙ");ve(Te,ot,gt,"Q","ℚ");ve(At,ot,gt,"Q","ℚ");ve(Te,ot,gt,"R","ℝ");ve(At,ot,gt,"R","ℝ");ve(Te,ot,gt,"Z","ℤ");ve(At,ot,gt,"Z","ℤ");ve(Te,We,Bt,"h","ℎ");ve(At,We,Bt,"h","ℎ");var Wt;for(var an=0;an<Pu.length;an++){var xr=Pu.charAt(an);Wt=String.fromCharCode(55349,56320+an),ve(Te,We,Bt,xr,Wt),ve(At,We,gt,xr,Wt),Wt=String.fromCharCode(55349,56372+an),ve(Te,We,Bt,xr,Wt),ve(At,We,gt,xr,Wt),Wt=String.fromCharCode(55349,56424+an),ve(Te,We,Bt,xr,Wt),ve(At,We,gt,xr,Wt),Wt=String.fromCharCode(55349,56580+an),ve(Te,We,Bt,xr,Wt),ve(At,We,gt,xr,Wt),Wt=String.fromCharCode(55349,56684+an),ve(Te,We,Bt,xr,Wt),ve(At,We,gt,xr,Wt),Wt=String.fromCharCode(55349,56736+an),ve(Te,We,Bt,xr,Wt),ve(At,We,gt,xr,Wt),Wt=String.fromCharCode(55349,56788+an),ve(Te,We,Bt,xr,Wt),ve(At,We,gt,xr,Wt),Wt=String.fromCharCode(55349,56840+an),ve(Te,We,Bt,xr,Wt),ve(At,We,gt,xr,Wt),Wt=String.fromCharCode(55349,56944+an),ve(Te,We,Bt,xr,Wt),ve(At,We,gt,xr,Wt),an<26&&(Wt=String.fromCharCode(55349,56632+an),ve(Te,We,Bt,xr,Wt),ve(At,We,gt,xr,Wt),Wt=String.fromCharCode(55349,56476+an),ve(Te,We,Bt,xr,Wt),ve(At,We,gt,xr,Wt))}Wt="𝕜";ve(Te,We,Bt,"k",Wt);ve(At,We,gt,"k",Wt);for(var Cs=0;Cs<10;Cs++){var Gi=Cs.toString();Wt=String.fromCharCode(55349,57294+Cs),ve(Te,We,Bt,Gi,Wt),ve(At,We,gt,Gi,Wt),Wt=String.fromCharCode(55349,57314+Cs),ve(Te,We,Bt,Gi,Wt),ve(At,We,gt,Gi,Wt),Wt=String.fromCharCode(55349,57324+Cs),ve(Te,We,Bt,Gi,Wt),ve(At,We,gt,Gi,Wt),Wt=String.fromCharCode(55349,57334+Cs),ve(Te,We,Bt,Gi,Wt),ve(At,We,gt,Gi,Wt)}var e0="ÐÞþ";for(var C$=0;C$<e0.length;C$++){var Bo=e0.charAt(C$);ve(Te,We,Bt,Bo,Bo),ve(At,We,gt,Bo,Bo)}var t0={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},dm={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},hm={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},U6={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},Ns={mathClass:"",textClass:"",font:""},pm={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},mm={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},_m={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},r0={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},n0={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},gm={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},i0={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},vm=[t0,t0,dm,dm,hm,hm,U6,Ns,Ns,Ns,pm,pm,mm,mm,_m,_m,r0,r0,n0,n0,gm,gm,Ns,Ns,i0,i0],H6=[t0,Ns,r0,n0,i0],W6=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 vm[i]}else if(120782<=n&&n<=120831){var s=Math.floor((n-120782)/10);return H6[s]}else{if(n===120485||n===120486)return vm[0];if(120486<n&&n<120782)return Ns;throw new It("Unsupported character: "+e)}},Cc=function(t,r,n){if(pr[n][t]){var i=pr[n][t].replace;i&&(t=i)}return{value:t,metrics:Kd(t,r,n)}},on=function(t,r,n,i,s){var l=Cc(t,r,n),f=l.metrics;t=l.value;var h;if(f){var d=f.italic;(n==="text"||i&&i.font==="mathit")&&(d=0),h=new Nn(t,f.height,f.depth,d,f.skew,f.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),h=new Nn(t,0,0,0,0,0,s);if(i){h.maxFontSize=i.sizeMultiplier,i.style.isTight()&&h.classes.push("mtight");var k=i.getColor();k&&(h.style.color=k)}return h},Xd=function(t,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&Cc(t,"Main-Bold",r).metrics?on(t,"Main-Bold",r,n,i.concat(["mathbf"])):t==="\\"||pr[r][t].font==="main"?on(t,"Main-Regular",r,n,i):on(t,"AMS-Regular",r,n,i.concat(["amsrm"]))},V6=function(t,r,n){return n!=="textord"&&Cc(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Tc=function(t,r,n){var i=t.mode,s=t.text,l=["mord"],{font:f,fontFamily:h,fontWeight:d,fontShape:k}=r,C=i==="math"||i==="text"&&!!f,N=C?f:h,U="",O="";if(s.charCodeAt(0)===55349){var j=W6(s);U=j.font,O=j[i+"Class"]}if(U)return on(s,U,i,r,l.concat(O));if(N){var D,G;if(N==="boldsymbol"){var de=V6(s,i,n);D=de.fontName,G=[de.fontClass]}else C?(D=s0[f].fontName,G=[f]):(D=Po(h,d,k),G=[h,d,k]);if(Cc(s,D,i).metrics)return on(s,D,i,r,l.concat(G));if(zv.hasOwnProperty(s)&&D.slice(0,10)==="Typewriter"){for(var ne=[],me=0;me<s.length;me++)ne.push(on(s[me],D,i,r,l.concat(G)));return Wi(ne)}}if(n==="mathord")return on(s,"Math-Italic",i,r,l.concat(["mathnormal"]));if(n==="textord"){var Q=pr[i][s]&&pr[i][s].font;if(Q==="ams"){var be=Po("amsrm",d,k);return on(s,be,i,r,l.concat("amsrm",d,k))}else if(Q==="main"||!Q){var le=Po("textrm",d,k);return on(s,le,i,r,l.concat(d,k))}else{var Ee=Po(Q,d,k);return on(s,Ee,i,r,l.concat(Ee,d,k))}}else throw new Error("unexpected type: "+n+" in makeOrd")},Y6=(e,t)=>{if(ms(e.classes)!==ms(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},Nv=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof Nn&&n instanceof Nn&&Y6(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},Qd=function(t){for(var r=0,n=0,i=0,s=0;s<t.children.length;s++){var l=t.children[s];l.height>r&&(r=l.height),l.depth>n&&(n=l.depth),l.maxFontSize>i&&(i=l.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},Ct=function(t,r,n,i){var s=new Ja(t,r,n,i);return Qd(s),s},gs=(e,t,r,n)=>new Ja(e,t,r,n),Wa=function(t,r,n){var i=Ct([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=Mt(i.height),i.maxFontSize=1,i},G6=function(t,r,n,i){var s=new Ac(t,r,n,i);return Qd(s),s},Wi=function(t){var r=new Za(t);return Qd(r),r},Va=function(t,r){return t instanceof Za?Ct([],[t],r):t},K6=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,s=i,l=1;l<r.length;l++){var f=-r[l].shift-s-r[l].elem.depth,h=f-(r[l-1].elem.height+r[l-1].elem.depth);s=s+f,n.push({type:"kern",size:h}),n.push(r[l])}return{children:n,depth:i}}var d;if(t.positionType==="top"){for(var k=t.positionData,C=0;C<t.children.length;C++){var N=t.children[C];k-=N.type==="kern"?N.size:N.elem.height+N.elem.depth}d=k}else if(t.positionType==="bottom")d=-t.positionData;else{var U=t.children[0];if(U.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")d=-U.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")d=-U.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:d}},ir=function(t,r){for(var{children:n,depth:i}=K6(t),s=0,l=0;l<n.length;l++){var f=n[l];if(f.type==="elem"){var h=f.elem;s=Math.max(s,h.maxFontSize,h.height)}}s+=2;var d=Ct(["pstrut"],[]);d.style.height=Mt(s);for(var k=[],C=i,N=i,U=i,O=0;O<n.length;O++){var j=n[O];if(j.type==="kern")U+=j.size;else{var D=j.elem,G=j.wrapperClasses||[],de=j.wrapperStyle||{},ne=Ct(G,[d,D],void 0,de);ne.style.top=Mt(-s-U-D.depth),j.marginLeft&&(ne.style.marginLeft=j.marginLeft),j.marginRight&&(ne.style.marginRight=j.marginRight),k.push(ne),U+=D.height+D.depth}C=Math.min(C,U),N=Math.max(N,U)}var me=Ct(["vlist"],k);me.style.height=Mt(N);var Q;if(C<0){var be=Ct([],[]),le=Ct(["vlist"],[be]);le.style.height=Mt(-C);var Ee=Ct(["vlist-s"],[new Nn("​")]);Q=[Ct(["vlist-r"],[me,Ee]),Ct(["vlist-r"],[le])]}else Q=[Ct(["vlist-r"],[me])];var te=Ct(["vlist-t"],Q);return Q.length===2&&te.classes.push("vlist-t2"),te.height=N,te.depth=-C,te},Iv=(e,t)=>{var r=Ct(["mspace"],[],t),n=vr(e,t);return r.style.marginRight=Mt(n),r},Po=(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},s0={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"}},qv={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Mv=function(t,r){var[n,i,s]=qv[t],l=new _s(n),f=new Fi([l],{width:Mt(i),height:Mt(s),style:"width:"+Mt(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),h=gs(["overlay"],[f],r);return h.height=s,h.style.height=Mt(s),h.style.width=Mt(i),h},_r={number:3,unit:"mu"},Ts={number:4,unit:"mu"},xi={number:5,unit:"mu"},X6={mord:{mop:_r,mbin:Ts,mrel:xi,minner:_r},mop:{mord:_r,mop:_r,mrel:xi,minner:_r},mbin:{mord:Ts,mop:Ts,mopen:Ts,minner:Ts},mrel:{mord:xi,mop:xi,mopen:xi,minner:xi},mopen:{},mclose:{mop:_r,mbin:Ts,mrel:xi,minner:_r},mpunct:{mord:_r,mop:_r,mrel:xi,mopen:_r,mclose:_r,mpunct:_r,minner:_r},minner:{mord:_r,mop:_r,mbin:Ts,mrel:xi,mopen:_r,mpunct:_r,minner:_r}},Q6={mord:{mop:_r},mop:{mord:_r,mop:_r},mbin:{},mrel:{},mopen:{},mclose:{mop:_r},mpunct:{},minner:{mop:_r}},Dv={},Uu={},Hu={};function Dt(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:s,mathmlBuilder:l}=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},h=0;h<r.length;++h)Dv[r[h]]=f;t&&(s&&(Uu[t]=s),l&&(Hu[t]=l))}function Os(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 Wu=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},zr=function(t){return t.type==="ordgroup"?t.body:[t]},Z6=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),J6=new Set(["rightmost","mrel","mclose","mpunct"]),O6={display:Gt.DISPLAY,text:Gt.TEXT,script:Gt.SCRIPT,scriptscript:Gt.SCRIPTSCRIPT},e7={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Br=function(t,r,n,i){i===void 0&&(i=[null,null]);for(var s=[],l=0;l<t.length;l++){var f=sr(t[l],r);if(f instanceof Za){var h=f.children;s.push(...h)}else s.push(f)}if(Nv(s),!n)return s;var d=r;if(t.length===1){var k=t[0];k.type==="sizing"?d=r.havingSize(k.size):k.type==="styling"&&(d=r.havingStyle(O6[k.style]))}var C=Ct([i[0]||"leftmost"],[],r),N=Ct([i[1]||"rightmost"],[],r),U=n==="root";return a0(s,(O,j)=>{var D=j.classes[0],G=O.classes[0];D==="mbin"&&J6.has(G)?j.classes[0]="mord":G==="mbin"&&Z6.has(D)&&(O.classes[0]="mord")},{node:C},N,U),a0(s,(O,j)=>{var D,G,de=o0(j),ne=o0(O),me=de&&ne?O.hasClass("mtight")?(D=Q6[de])==null?void 0:D[ne]:(G=X6[de])==null?void 0:G[ne]:null;if(me)return Iv(me,d)},{node:C},N,U),s},a0=function(t,r,n,i,s){i&&t.push(i);for(var l=0;l<t.length;l++){var f=t[l],h=Lv(f);if(h){a0(h.children,r,n,null,s);continue}var d=!f.hasClass("mspace");if(d){var k=r(f,n.node);k&&(n.insertAfter?n.insertAfter(k):(t.unshift(k),l++))}d?n.node=f:s&&f.hasClass("newline")&&(n.node=Ct(["leftmost"])),n.insertAfter=(C=>N=>{t.splice(C+1,0,N),l++})(l)}i&&t.pop()},Lv=function(t){return t instanceof Za||t instanceof Ac||t instanceof Ja&&t.hasClass("enclosing")?t:null},l0=function(t,r){var n=Lv(t);if(n){var i=n.children;if(i.length){if(r==="right")return l0(i[i.length-1],"right");if(r==="left")return l0(i[0],"left")}}return t},o0=function(t,r){if(!t)return null;r&&(t=l0(t,r));var n=t.classes[0];return e7[n]||null},no=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return Ct(r.concat(n))},sr=function(t,r,n){if(!t)return Ct();if(Uu[t.type]){var i=Uu[t.type](t,r);if(n&&r.size!==n.size){i=Ct(r.sizingClasses(n),[i],r);var s=r.sizeMultiplier/n.sizeMultiplier;i.height*=s,i.depth*=s}return i}else throw new It("Got group of unknown type: '"+t.type+"'")};function Uo(e,t){var r=Ct(["base"],e,t),n=Ct(["strut"]);return n.style.height=Mt(r.height+r.depth),r.depth&&(n.style.verticalAlign=Mt(-r.depth)),r.children.unshift(n),r}function u0(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=Br(e,t,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var s=[],l=[],f=0;f<n.length;f++)if(l.push(n[f]),n[f].hasClass("mbin")||n[f].hasClass("mrel")||n[f].hasClass("allowbreak")){for(var h=!1;f<n.length-1&&n[f+1].hasClass("mspace")&&!n[f+1].hasClass("newline");)f++,l.push(n[f]),n[f].hasClass("nobreak")&&(h=!0);h||(s.push(Uo(l,t)),l=[])}else n[f].hasClass("newline")&&(l.pop(),l.length>0&&(s.push(Uo(l,t)),l=[]),s.push(n[f]));l.length>0&&s.push(Uo(l,t));var d;r?(d=Uo(Br(r,t,!0),t),d.classes=["tag"],s.push(d)):i&&s.push(i);var k=Ct(["katex-html"],s);if(k.setAttribute("aria-hidden","true"),d){var C=d.children[0];C.style.height=Mt(k.height+k.depth),k.depth&&(C.style.verticalAlign=Mt(-k.depth))}return k}function Fv(e){return new Za(e)}class qt{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=ms(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Nr&&this.children[n+1]instanceof Nr){for(var i=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Nr;)i+=this.children[++n].toText();t.appendChild(new Nr(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+=tn(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+tn(ms(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 Nr{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return tn(this.toText())}toText(){return this.text}}class jv{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",Mt(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Mt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var t7=new Set(["\\imath","\\jmath"]),r7=new Set(["mrow","mtable"]),Kn=function(t,r,n){return pr[r][t]&&pr[r][t].replace&&t.charCodeAt(0)!==55349&&!(zv.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=pr[r][t].replace),new Nr(t)},Zd=function(t){return t.length===1?t[0]:new qt("mrow",t)},n7={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"},Jd=(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=n7[r];if(i)return typeof i=="function"?i(e):i;var s=e.text;if(t7.has(s))return null;if(pr[n][s]){var l=pr[n][s].replace;l&&(s=l)}var f=s0[r].fontName;return Kd(s,f,n)?s0[r].variant:null};function T$(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Nr&&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 Nr&&r.text===","}else return!1}var Ln=function(t,r,n){if(t.length===1){var i=or(t[0],r);return n&&i instanceof qt&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var s=[],l,f=0;f<t.length;f++){var h=or(t[f],r);if(h instanceof qt&&l instanceof qt){if(h.type==="mtext"&&l.type==="mtext"&&h.getAttribute("mathvariant")===l.getAttribute("mathvariant")){l.children.push(...h.children);continue}else if(h.type==="mn"&&l.type==="mn"){l.children.push(...h.children);continue}else if(T$(h)&&l.type==="mn"){l.children.push(...h.children);continue}else if(h.type==="mn"&&T$(l))h.children=[...l.children,...h.children],s.pop();else if((h.type==="msup"||h.type==="msub")&&h.children.length>=1&&(l.type==="mn"||T$(l))){var d=h.children[0];d instanceof qt&&d.type==="mn"&&(d.children=[...l.children,...d.children],s.pop())}else if(l.type==="mi"&&l.children.length===1){var k=l.children[0];if(k instanceof Nr&&k.text==="̸"&&(h.type==="mo"||h.type==="mi"||h.type==="mn")){var C=h.children[0];C instanceof Nr&&C.text.length>0&&(C.text=C.text.slice(0,1)+"̸"+C.text.slice(1),s.pop())}}}s.push(h),l=h}return s},vs=function(t,r,n){return Zd(Ln(t,r,n))},or=function(t,r){if(!t)return new qt("mrow");if(Hu[t.type])return Hu[t.type](t,r);throw new It("Got group of unknown type: '"+t.type+"'")};function ym(e,t,r,n,i){var s=Ln(e,r),l;s.length===1&&s[0]instanceof qt&&r7.has(s[0].type)?l=s[0]:l=new qt("mrow",s);var f=new qt("annotation",[new Nr(t)]);f.setAttribute("encoding","application/x-tex");var h=new qt("semantics",[l,f]),d=new qt("math",[h]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&d.setAttribute("display","block");var k=i?"katex":"katex-mathml";return Ct([k],[d])}var i7=[[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]],bm=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],wm=function(t,r){return r.size<2?t:i7[t-1][r.size-1]};class Ci{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||Ci.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=bm[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 Ci(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:wm(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:bm[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=wm(Ci.BASESIZE,t);return this.size===r&&this.textSize===Ci.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!==Ci.BASESIZE?["sizing","reset-size"+this.size,"size"+Ci.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=P6(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ci.BASESIZE=6;var Bv=function(t){return new Ci({style:t.displayMode?Gt.DISPLAY:Gt.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Pv=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=Ct(n,[t])}return t},s7=function(t,r,n){var i=Bv(n),s;if(n.output==="mathml")return ym(t,r,i,n.displayMode,!0);if(n.output==="html"){var l=u0(t,i);s=Ct(["katex"],[l])}else{var f=ym(t,r,i,n.displayMode,!1),h=u0(t,i);s=Ct(["katex"],[f,h])}return Pv(s,n)},a7=function(t,r,n){var i=Bv(n),s=u0(t,i),l=Ct(["katex"],[s]);return Pv(l,n)},l7={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":"="},Rc=function(t){var r=new qt("mo",[new Nr(l7[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},o7={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]},u7=new Set(["widehat","widecheck","widetilde","utilde"]),zc=function(t,r){function n(){var f=4e5,h=t.label.slice(1);if(u7.has(h)&&"base"in t){var d=t.base.type==="ordgroup"?t.base.body.length:1,k,C,N;if(d>5)h==="widehat"||h==="widecheck"?(k=420,f=2364,N=.42,C=h+"4"):(k=312,f=2340,N=.34,C="tilde4");else{var U=[1,1,2,2,3,3][d];h==="widehat"||h==="widecheck"?(f=[0,1062,2364,2364,2364][U],k=[0,239,300,360,420][U],N=[0,.24,.3,.3,.36,.42][U],C=h+U):(f=[0,600,1033,2339,2340][U],k=[0,260,286,306,312][U],N=[0,.26,.286,.3,.306,.34][U],C="tilde"+U)}var O=new _s(C),j=new Fi([O],{width:"100%",height:Mt(N),viewBox:"0 0 "+f+" "+k,preserveAspectRatio:"none"});return{span:gs([],[j],r),minWidth:0,height:N}}else{var D=[],G=o7[h];if(!G)throw new Error('No SVG data for "'+h+'".');var[de,ne,me]=G,Q=me/1e3,be=de.length,le,Ee;if(be===1){if(G.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+h+'".');le=["hide-tail"],Ee=[G[3]]}else if(be===2)le=["halfarrow-left","halfarrow-right"],Ee=["xMinYMin","xMaxYMin"];else if(be===3)le=["brace-left","brace-center","brace-right"],Ee=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
334
+ `+be+" children.");for(var te=0;te<be;te++){var Ce=new _s(de[te]),fe=new Fi([Ce],{width:"400em",height:Mt(Q),viewBox:"0 0 "+f+" "+me,preserveAspectRatio:Ee[te]+" slice"}),x=gs([le[te]],[fe],r);if(be===1)return{span:x,minWidth:ne,height:Q};x.style.height=Mt(Q),D.push(x)}return{span:Ct(["stretchy"],D,r),minWidth:ne,height:Q}}}var{span:i,minWidth:s,height:l}=n();return i.height=l,i.style.height=Mt(l),s>0&&(i.style.minWidth=Mt(s)),i},c7=function(t,r,n,i,s){var l,f=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(l=Ct(["stretchy",r],[],s),r==="fbox"){var h=s.color&&s.getColor();h&&(l.style.borderColor=h)}}else{var d=[];/^[bx]cancel$/.test(r)&&d.push(new Of({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&d.push(new Of({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var k=new Fi(d,{width:"100%",height:Mt(f)});l=gs([],[k],s)}return l.height=f,l.style.height=Mt(f),l},$7={bin:1,close:1,inner:1,open:1,punct:1,rel:1},f7={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function d7(e){return e in $7}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 Nc(e){var t=Ic(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 Ic(e){return e&&(e.type==="atom"||f7.hasOwnProperty(e.type))?e:null}var Uv=e=>{if(e instanceof Nn)return e;if(j6(e)&&e.children.length===1)return Uv(e.children[0])},Od=(e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=Qt(e.base,"accent"),r=n.base,e.base=r,i=F6(sr(e,t)),e.base=n):(n=Qt(e,"accent"),r=n.base);var s=sr(r,t.havingCrampedStyle()),l=n.isShifty&&Ui(r),f=0;if(l){var h,d;f=(h=(d=Uv(s))==null?void 0:d.skew)!=null?h:0}var k=n.label==="\\c",C=k?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),N;if(n.isStretchy)N=zc(n,t),N=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:N,wrapperClasses:["svg-align"],wrapperStyle:f>0?{width:"calc(100% - "+Mt(2*f)+")",marginLeft:Mt(2*f)}:void 0}]});else{var U,O;n.label==="\\vec"?(U=Mv("vec",t),O=qv.vec[1]):(U=Tc({mode:n.mode,text:n.label},t,"textord"),U=L6(U),U.italic=0,O=U.width,k&&(C+=U.depth)),N=Ct(["accent-body"],[U]);var j=n.label==="\\textcircled";j&&(N.classes.push("accent-full"),C=s.height);var D=f;j||(D-=O/2),N.style.left=Mt(D),n.label==="\\textcircled"&&(N.style.top=".2em"),N=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-C},{type:"elem",elem:N}]})}var G=Ct(["mord","accent"],[N],t);return i?(i.children[0]=G,i.height=Math.max(G.height,i.height),i.classes[0]="mord",i):G},Hv=(e,t)=>{var r=e.isStretchy?Rc(e.label):new qt("mo",[Kn(e.label,e.mode)]),n=new qt("mover",[or(e.base,t),r]);return n.setAttribute("accent","true"),n},h7=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=Wu(t[0]),n=!h7.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:Od,mathmlBuilder:Hv});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:Od,mathmlBuilder:Hv});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=zc(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 Ct(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var r=Rc(e.label),n=new qt("munder",[or(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var Ho=e=>{var t=new qt("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=Va(sr(e.body,n,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(s+"-arrow-pad");var l;e.below&&(n=t.havingStyle(r.sub()),l=Va(sr(e.below,n,t),t),l.classes.push(s+"-arrow-pad"));var f=zc(e,t),h=-t.fontMetrics().axisHeight+.5*f.height,d=-t.fontMetrics().axisHeight-.5*f.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(d-=i.depth);var k;if(l){var C=-t.fontMetrics().axisHeight+l.height+.5*f.height+.111;k=ir({positionType:"individualShift",children:[{type:"elem",elem:i,shift:d},{type:"elem",elem:f,shift:h,wrapperClasses:["svg-align"]},{type:"elem",elem:l,shift:C}]})}else k=ir({positionType:"individualShift",children:[{type:"elem",elem:i,shift:d},{type:"elem",elem:f,shift:h,wrapperClasses:["svg-align"]}]});return Ct(["mrel","x-arrow"],[k],t)},mathmlBuilder(e,t){var r=Rc(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=Ho(or(e.body,t));if(e.below){var s=Ho(or(e.below,t));n=new qt("munderover",[r,s,i])}else n=new qt("mover",[r,i])}else if(e.below){var l=Ho(or(e.below,t));n=new qt("munder",[r,l])}else n=Ho(),n=new qt("mover",[r,n]);return n}});function Wv(e,t){var r=Br(e.body,t,!0);return Ct([e.mclass],r,t)}function Vv(e,t){var r,n=Ln(e.body,t);return e.mclass==="minner"?r=new qt("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new qt("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new qt("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:Ui(i)}},htmlBuilder:Wv,mathmlBuilder:Vv});var qc=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:qc(t[0]),body:zr(t[1]),isCharacterBox:Ui(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],l;n!=="\\stackrel"?l=qc(i):l="mrel";var f={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:zr(i)},h={type:"supsub",mode:s.mode,base:f,sup:n==="\\underset"?null:s,sub:n==="\\underset"?s:null};return{type:"mclass",mode:r.mode,mclass:l,body:[h],isCharacterBox:Ui(h)}},htmlBuilder:Wv,mathmlBuilder:Vv});Dt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:qc(t[0]),body:zr(t[0])}},htmlBuilder(e,t){var r=Br(e.body,t,!0),n=Ct([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=Ln(e.body,t),n=new qt("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var p7={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},xm=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),km=e=>e.type==="textord"&&e.text==="@",m7=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function _7(e,t,r){var n=p7[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"},l=r.callFunction("\\Big",[s],[]),f=r.callFunction("\\\\cdright",[t[1]],[]),h={type:"ordgroup",mode:"math",body:[i,l,f]};return r.callFunction("\\\\cdparent",[h],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function g7(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 It("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],s=0;s<t.length;s++){for(var l=t[s],f=xm(),h=0;h<l.length;h++)if(!km(l[h]))f.body.push(l[h]);else{n.push(f),h+=1;var d=Nc(l[h]).text,k=new Array(2);if(k[0]={type:"ordgroup",mode:"math",body:[]},k[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(d))if("<>AV".includes(d))for(var C=0;C<2;C++){for(var N=!0,U=h+1;U<l.length;U++){if(m7(l[U],d)){N=!1,h=U;break}if(km(l[U]))throw new It("Missing a "+d+" character to complete a CD arrow.",l[U]);k[C].body.push(l[U])}if(N)throw new It("Missing a "+d+" character to complete a CD arrow.",l[h])}else throw new It('Expected one of "<>AV=|." after @',l[h]);var O=_7(d,k,e),j={type:"styling",body:[O],mode:"math",style:"display",resetFont:!0};n.push(j),f=xm()}s%2===0?n.push(f):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var D=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:D,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=Va(sr(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=Mt(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new qt("mrow",[or(e.label,t)]);return r=new qt("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new qt("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=Va(sr(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new qt("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="",l=0;l<i.length;l++){var f=Qt(i[l],"textord");s+=f.text}var h=parseInt(s),d;if(isNaN(h))throw new It("\\@char has non-numeric argument "+s);if(h<0||h>=1114111)throw new It("\\@char with invalid code point "+s);return h<=65535?d=String.fromCharCode(h):(h-=65536,d=String.fromCharCode((h>>10)+55296,(h&1023)+56320)),{type:"textord",mode:r.mode,text:d}}});var Yv=(e,t)=>{var r=Br(e.body,t.withColor(e.color),!1);return Wi(r)},Gv=(e,t)=>{var r=Ln(e.body,t.withColor(e.color)),n=new qt("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:Yv,mathmlBuilder:Gv});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:Yv,mathmlBuilder:Gv});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=Ct(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Mt(vr(e.size,t)))),r},mathmlBuilder(e,t){var r=new qt("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Mt(vr(e.size,t)))),r}});var c0={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Kv=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new It("Expected a control sequence",e);return t},v7=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Xv=(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(c0[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=c0[n.text]),Qt(t.parseFunction(),"internal");throw new It("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 It("Expected a control sequence",n);for(var s=0,l,f=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){l=t.gullet.future(),f[s].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new It('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==s+1)throw new It('Argument number "'+n.text+'" out of order');s++,f.push([])}else{if(n.text==="EOF")throw new It("Expected a macro definition");f[s].push(n.text)}var{tokens:h}=t.gullet.consumeArg();return l&&h.unshift(l),(r==="\\edef"||r==="\\xdef")&&(h=t.gullet.expandTokens(h),h.reverse()),t.gullet.macros.set(i,{tokens:h,numArgs:s,delimiters:f},r===c0[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=Kv(t.gullet.popToken());t.gullet.consumeSpaces();var i=v7(t);return Xv(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=Kv(t.gullet.popToken()),i=t.gullet.popToken(),s=t.gullet.popToken();return Xv(t,n,s,r==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var gl=function(t,r,n){var i=pr.math[t]&&pr.math[t].replace,s=Kd(i||t,r,n);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return s},eh=function(t,r,n,i){var s=n.havingBaseStyle(r),l=Ct(i.concat(s.sizingClasses(n)),[t],n),f=s.sizeMultiplier/n.sizeMultiplier;return l.height*=f,l.depth*=f,l.maxFontSize=s.sizeMultiplier,l},Qv=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=Mt(s),t.height-=s,t.depth+=s},y7=function(t,r,n,i,s,l){var f=on(t,"Main-Regular",s,i),h=eh(f,r,i,l);return Qv(h,i,r),h},b7=function(t,r,n,i){return on(t,"Size"+r+"-Regular",n,i)},Zv=function(t,r,n,i,s,l){var f=b7(t,r,s,i),h=eh(Ct(["delimsizing","size"+r],[f],i),Gt.TEXT,i,l);return n&&Qv(h,i,Gt.TEXT),h},R$=function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=Ct(["delimsizinginner",i],[Ct([],[on(t,r,n)])]);return{type:"elem",elem:s}},z$=function(t,r,n){var i=fi["Size4-Regular"][t.charCodeAt(0)]?fi["Size4-Regular"][t.charCodeAt(0)][4]:fi["Size1-Regular"][t.charCodeAt(0)][4],s=new _s("inner",R6(t,Math.round(1e3*r))),l=new Fi([s],{width:Mt(i),height:Mt(r),style:"width:"+Mt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),f=gs([],[l],n);return f.height=r,f.style.height=Mt(r),f.style.width=Mt(i),{type:"elem",elem:f}},$0=.008,Wo={type:"kern",size:-1*$0},w7=new Set(["|","\\lvert","\\rvert","\\vert"]),x7=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Jv=function(t,r,n,i,s,l){var f,h,d,k,C="",N=0;f=d=k=t,h=null;var U="Size1-Regular";t==="\\uparrow"?d=k="⏐":t==="\\Uparrow"?d=k="‖":t==="\\downarrow"?f=d="⏐":t==="\\Downarrow"?f=d="‖":t==="\\updownarrow"?(f="\\uparrow",d="⏐",k="\\downarrow"):t==="\\Updownarrow"?(f="\\Uparrow",d="‖",k="\\Downarrow"):w7.has(t)?(d="∣",C="vert",N=333):x7.has(t)?(d="∥",C="doublevert",N=556):t==="["||t==="\\lbrack"?(f="⎡",d="⎢",k="⎣",U="Size4-Regular",C="lbrack",N=667):t==="]"||t==="\\rbrack"?(f="⎤",d="⎥",k="⎦",U="Size4-Regular",C="rbrack",N=667):t==="\\lfloor"||t==="⌊"?(d=f="⎢",k="⎣",U="Size4-Regular",C="lfloor",N=667):t==="\\lceil"||t==="⌈"?(f="⎡",d=k="⎢",U="Size4-Regular",C="lceil",N=667):t==="\\rfloor"||t==="⌋"?(d=f="⎥",k="⎦",U="Size4-Regular",C="rfloor",N=667):t==="\\rceil"||t==="⌉"?(f="⎤",d=k="⎥",U="Size4-Regular",C="rceil",N=667):t==="("||t==="\\lparen"?(f="⎛",d="⎜",k="⎝",U="Size4-Regular",C="lparen",N=875):t===")"||t==="\\rparen"?(f="⎞",d="⎟",k="⎠",U="Size4-Regular",C="rparen",N=875):t==="\\{"||t==="\\lbrace"?(f="⎧",h="⎨",k="⎩",d="⎪",U="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(f="⎫",h="⎬",k="⎭",d="⎪",U="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(f="⎧",k="⎩",d="⎪",U="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(f="⎫",k="⎭",d="⎪",U="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(f="⎧",k="⎭",d="⎪",U="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(f="⎫",k="⎩",d="⎪",U="Size4-Regular");var O=gl(f,U,s),j=O.height+O.depth,D=gl(d,U,s),G=D.height+D.depth,de=gl(k,U,s),ne=de.height+de.depth,me=0,Q=1;if(h!==null){var be=gl(h,U,s);me=be.height+be.depth,Q=2}var le=j+ne+me,Ee=Math.max(0,Math.ceil((r-le)/(Q*G))),te=le+Ee*Q*G,Ce=i.fontMetrics().axisHeight;n&&(Ce*=i.sizeMultiplier);var fe=te/2-Ce,x=[];if(C.length>0){var Ae=te-j-ne,B=Math.round(te*1e3),he=z6(C,Math.round(Ae*1e3)),W=new _s(C,he),Fe=Mt(N/1e3),$e=Mt(B/1e3),V=new Fi([W],{width:Fe,height:$e,viewBox:"0 0 "+N+" "+B}),w=gs([],[V],i);w.height=B/1e3,w.style.width=Fe,w.style.height=$e,x.push({type:"elem",elem:w})}else{if(x.push(R$(k,U,s)),x.push(Wo),h===null){var $=te-j-ne+2*$0;x.push(z$(d,$,i))}else{var o=(te-j-ne-me)/2+2*$0;x.push(z$(d,o,i)),x.push(Wo),x.push(R$(h,U,s)),x.push(Wo),x.push(z$(d,o,i))}x.push(Wo),x.push(R$(f,U,s))}var c=i.havingBaseStyle(Gt.TEXT),p=ir({positionType:"bottom",positionData:fe,children:x});return eh(Ct(["delimsizing","mult"],[p],c),Gt.TEXT,i,l)},N$=80,I$=.08,q$=function(t,r,n,i,s){var l=T6(t,i,n),f=new _s(t,l),h=new Fi([f],{width:"400em",height:Mt(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return gs(["hide-tail"],[h],s)},k7=function(t,r){var n=r.havingBaseSizing(),i=ny("\\surd",t*n.sizeMultiplier,ry,n),s=n.sizeMultiplier,l=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),f,h,d,k,C;return i.type==="small"?(k=1e3+1e3*l+N$,t<1?s=1:t<1.4&&(s=.7),h=(1+l+I$)/s,d=(1+l)/s,f=q$("sqrtMain",h,k,l,r),f.style.minWidth="0.853em",C=.833/s):i.type==="large"?(k=(1e3+N$)*Nl[i.size],d=(Nl[i.size]+l)/s,h=(Nl[i.size]+l+I$)/s,f=q$("sqrtSize"+i.size,h,k,l,r),f.style.minWidth="1.02em",C=1/s):(h=t+l+I$,d=t+l,k=Math.floor(1e3*t+l)+N$,f=q$("sqrtTall",h,k,l,r),f.style.minWidth="0.742em",C=1.056),f.height=d,f.style.height=Mt(h),{span:f,advanceWidth:C,ruleWidth:(r.fontMetrics().sqrtRuleThickness+l)*s}},Ov=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),S7=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),ey=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Nl=[0,1.2,1.8,2.4,3],ty=function(t,r,n,i,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Ov.has(t)||ey.has(t))return Zv(t,r,!1,n,i,s);if(S7.has(t))return Jv(t,Nl[r],!1,n,i,s);throw new It("Illegal delimiter: '"+t+"'")},E7=[{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}],A7=[{type:"small",style:Gt.SCRIPTSCRIPT},{type:"small",style:Gt.SCRIPT},{type:"small",style:Gt.TEXT},{type:"stack"}],ry=[{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"}],C7=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.")},ny=function(t,r,n,i){for(var s=Math.min(2,3-i.style.size),l=s;l<n.length;l++){var f=n[l];if(f.type==="stack")break;var h=gl(t,C7(f),"math"),d=h.height+h.depth;if(f.type==="small"){var k=i.havingBaseStyle(f.style);d*=k.sizeMultiplier}if(d>r)return f}return n[n.length-1]},f0=function(t,r,n,i,s,l){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var f;ey.has(t)?f=E7:Ov.has(t)?f=ry:f=A7;var h=ny(t,r,f,i);return h.type==="small"?y7(t,h.style,n,i,s,l):h.type==="large"?Zv(t,h.size,n,i,s,l):Jv(t,r,n,i,s,l)},M$=function(t,r,n,i,s,l){var f=i.fontMetrics().axisHeight*i.sizeMultiplier,h=901,d=5/i.fontMetrics().ptPerEm,k=Math.max(r-f,n+f),C=Math.max(k/500*h,2*k-d);return f0(t,C,!0,i,s,l)},Sm={"\\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}},T7=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 Em(e){return"isMiddle"in e}function Mc(e,t){var r=Ic(e);if(r&&T7.has(r.text))return r;throw r?new It("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new It("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=Mc(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Sm[e.funcName].size,mclass:Sm[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?Ct([e.mclass]):ty(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Kn(e.delim,e.mode));var r=new qt("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Mt(Nl[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Am(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 It("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Mc(t[0],e).text,color:r}}});Dt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Mc(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)=>{Am(e);for(var r=Br(e.body,t,!0,["mopen","mclose"]),n=0,i=0,s=!1,l=0;l<r.length;l++){var f=r[l];Em(f)?s=!0:(n=Math.max(r[l].height,n),i=Math.max(r[l].depth,i))}n*=t.sizeMultiplier,i*=t.sizeMultiplier;var h;if(e.left==="."?h=no(t,["mopen"]):h=M$(e.left,n,i,t,e.mode,["mopen"]),r.unshift(h),s)for(var d=1;d<r.length;d++){var k=r[d];if(Em(k)){var C=k.isMiddle;r[d]=M$(C.delim,n,i,C.options,e.mode,[])}}var N;if(e.right===".")N=no(t,["mclose"]);else{var U=e.rightColor?t.withColor(e.rightColor):t;N=M$(e.right,n,i,U,e.mode,["mclose"])}return r.push(N),Ct(["minner"],r,t)},mathmlBuilder:(e,t)=>{Am(e);var r=Ln(e.body,t);if(e.left!=="."){var n=new qt("mo",[Kn(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new qt("mo",[Kn(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return Zd(r)}});Dt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Mc(t[0],e);if(!e.parser.leftrightDepth)throw new It("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;return e.delim==="."?r=no(t,[]):(r=ty(e.delim,1,t,e.mode,[]),r.isMiddle={delim:e.delim,options:t}),r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?Kn("|","text"):Kn(e.delim,e.mode),n=new qt("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var Dc=(e,t)=>{var r=Va(sr(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,s,l,f=Ui(e.body);if(n==="sout")s=Ct(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/i,l=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var h=vr({number:.6,unit:"pt"},t),d=vr({number:.35,unit:"ex"},t),k=t.havingBaseSizing();i=i/k.sizeMultiplier;var C=r.height+r.depth+h+d;r.style.paddingLeft=Mt(C/2+h);var N=Math.floor(1e3*C*i),U=A6(N),O=new Fi([new _s("phase",U)],{width:"400em",height:Mt(N/1e3),viewBox:"0 0 400000 "+N,preserveAspectRatio:"xMinYMin slice"});s=gs(["hide-tail"],[O],t),s.style.height=Mt(C),l=r.depth+h+d}else{/cancel/.test(n)?f||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var j,D,G=0;/box/.test(n)?(G=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),j=t.fontMetrics().fboxsep+(n==="colorbox"?0:G),D=j):n==="angl"?(G=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),j=4*G,D=Math.max(0,.25-r.depth)):(j=f?.2:0,D=j),s=c7(r,n,j,D,t),/fbox|boxed|fcolorbox/.test(n)?(s.style.borderStyle="solid",s.style.borderWidth=Mt(G)):n==="angl"&&G!==.049&&(s.style.borderTopWidth=Mt(G),s.style.borderRightWidth=Mt(G)),l=r.depth+D,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var de;if(e.backgroundColor)de=ir({positionType:"individualShift",children:[{type:"elem",elem:s,shift:l},{type:"elem",elem:r,shift:0}]});else{var ne=/cancel|phase/.test(n)?["svg-align"]:[];de=ir({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:s,shift:l,wrapperClasses:ne}]})}return/cancel/.test(n)&&(de.height=r.height,de.depth=r.depth),/cancel/.test(n)&&!f?Ct(["mord","cancel-lap"],[de],t):Ct(["mord"],[de],t)},Lc=(e,t)=>{var r,n=new qt(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: "+Mt(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,l=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,body:l}},htmlBuilder:Dc,mathmlBuilder:Lc});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,l=Qt(t[1],"color-token").color,f=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:l,borderColor:s,body:f}},htmlBuilder:Dc,mathmlBuilder:Lc});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:Dc,mathmlBuilder:Lc});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:Dc,mathmlBuilder:Lc});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 iy={};function yi(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:s,mathmlBuilder:l}=e,f={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},h=0;h<r.length;++h)iy[r[h]]=f;s&&(Uu[t]=s),l&&(Hu[t]=l)}var sy={};function Ze(e,t){sy[e]=t}class _n{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 _n(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class Tn{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 Tn(r,_n.range(this,t))}}function Cm(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 Fc=e=>{var t=e.parser.settings;if(!t.displayMode)throw new It("{"+e.envName+"} can be used only in display mode.")},R7=new Set(["gather","gather*"]);function th(e){if(!e.includes("ed"))return!e.includes("*")}function Ss(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:s,arraystretch:l,colSeparationType:f,autoTag:h,singleRow:d,emptySingleRow:k,maxNumCols:C,leqno:N}=t;if(e.gullet.beginGroup(),d||e.gullet.macros.set("\\cr","\\\\\\relax"),!l){var U=e.gullet.expandMacroAsText("\\arraystretch");if(U==null)l=1;else if(l=parseFloat(U),!l||l<0)throw new It("Invalid \\arraystretch: "+U)}e.gullet.beginGroup();var O=[],j=[O],D=[],G=[],de=h!=null?[]:void 0;function ne(){h&&e.gullet.macros.set("\\@eqnsw","1",!0)}function me(){de&&(e.gullet.macros.get("\\df@tag")?(de.push(e.subparse([new Tn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):de.push(!!h&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(ne(),G.push(Cm(e));;){var Q=e.parseExpression(!1,d?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var be={type:"ordgroup",mode:e.mode,body:Q};r&&(be={type:"styling",mode:e.mode,style:r,resetFont:!0,body:[be]}),O.push(be);var le=e.fetch().text;if(le==="&"){if(C&&O.length===C){if(d||f)throw new It("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(le==="\\end"){me(),O.length===1&&be.type==="styling"&&be.body.length===1&&be.body[0].type==="ordgroup"&&be.body[0].body.length===0&&(j.length>1||!k)&&j.pop(),G.length<j.length+1&&G.push([]);break}else if(le==="\\\\"){e.consume();var Ee=void 0;e.gullet.future().text!==" "&&(Ee=e.parseSizeGroup(!0)),D.push(Ee?Ee.value:null),me(),G.push(Cm(e)),O=[],j.push(O),ne()}else throw new It("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:l,body:j,cols:s,rowGaps:D,hskipBeforeAndAfter:n,hLinesBeforeRow:G,colSeparationType:f,tags:de,leqno:N}}function rh(e){return e.slice(0,1)==="d"?"display":"text"}var bi=function(t,r){var n,i,s=t.body.length,l=t.hLinesBeforeRow,f=0,h=new Array(s),d=[],k=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),C=1/r.fontMetrics().ptPerEm,N=5*C;if(t.colSeparationType&&t.colSeparationType==="small"){var U=r.havingStyle(Gt.SCRIPT).sizeMultiplier;N=.2778*(U/r.sizeMultiplier)}var O=t.colSeparationType==="CD"?vr({number:3,unit:"ex"},r):12*C,j=3*C,D=t.arraystretch*O,G=.7*D,de=.3*D,ne=0;function me(ct){for(var a=0;a<ct.length;++a)a>0&&(ne+=.25),d.push({pos:ne,isDashed:ct[a]})}for(me(l[0]),n=0;n<t.body.length;++n){var Q=t.body[n],be=G,le=de;f<Q.length&&(f=Q.length);var Ee={cells:new Array(Q.length),height:0,depth:0,pos:0};for(i=0;i<Q.length;++i){var te=sr(Q[i],r);le<te.depth&&(le=te.depth),be<te.height&&(be=te.height),Ee.cells[i]=te}var Ce=t.rowGaps[n],fe=0;Ce&&(fe=vr(Ce,r),fe>0&&(fe+=de,le<fe&&(le=fe),fe=0)),t.addJot&&n<t.body.length-1&&(le+=j),Ee.height=be,Ee.depth=le,ne+=be,Ee.pos=ne,ne+=le+fe,h[n]=Ee,me(l[n+1])}var x=ne/2+r.fontMetrics().axisHeight,Ae=t.cols||[],B=[],he,W,Fe=[];if(t.tags&&t.tags.some(ct=>ct))for(n=0;n<s;++n){var $e=h[n],V=$e.pos-x,w=t.tags[n],$=void 0;w===!0?$=Ct(["eqn-num"],[],r):w===!1?$=Ct([],[],r):$=Ct([],Br(w,r,!0),r),$.depth=$e.depth,$.height=$e.height,Fe.push({type:"elem",elem:$,shift:V})}for(i=0,W=0;i<f||W<Ae.length;++i,++W){for(var o,c=Ae[W],p=!0;((m=c)==null?void 0:m.type)==="separator";){var m;if(p||(he=Ct(["arraycolsep"],[]),he.style.width=Mt(r.fontMetrics().doubleRuleSep),B.push(he)),c.separator==="|"||c.separator===":"){var E=c.separator==="|"?"solid":"dashed",T=Ct(["vertical-separator"],[],r);T.style.height=Mt(ne),T.style.borderRightWidth=Mt(k),T.style.borderRightStyle=E,T.style.margin="0 "+Mt(-k/2);var re=ne-x;re&&(T.style.verticalAlign=Mt(-re)),B.push(T)}else throw new It("Invalid separator type: "+c.separator);W++,c=Ae[W],p=!1}if(!(i>=f)){var je=void 0;if(i>0||t.hskipBeforeAndAfter){var nt,ft;je=(nt=(ft=c)==null?void 0:ft.pregap)!=null?nt:N,je!==0&&(he=Ct(["arraycolsep"],[]),he.style.width=Mt(je),B.push(he))}var yt=[];for(n=0;n<s;++n){var zt=h[n],_t=zt.cells[i];if(_t){var vt=zt.pos-x;_t.depth=zt.depth,_t.height=zt.height,yt.push({type:"elem",elem:_t,shift:vt})}}var mt=ir({positionType:"individualShift",children:yt}),wt=Ct(["col-align-"+(((o=c)==null?void 0:o.align)||"c")],[mt]);if(B.push(wt),i<f-1||t.hskipBeforeAndAfter){var St,Oe;je=(St=(Oe=c)==null?void 0:Oe.postgap)!=null?St:N,je!==0&&(he=Ct(["arraycolsep"],[]),he.style.width=Mt(je),B.push(he))}}}var ze=Ct(["mtable"],B);if(d.length>0){for(var De=Wa("hline",r,k),Ge=Wa("hdashline",r,k),v=[{type:"elem",elem:ze,shift:0}];d.length>0;){var q=d.pop(),we=q.pos-x;q.isDashed?v.push({type:"elem",elem:Ge,shift:we}):v.push({type:"elem",elem:De,shift:we})}ze=ir({positionType:"individualShift",children:v})}if(Fe.length===0)return Ct(["mord"],[ze],r);var Me=ir({positionType:"individualShift",children:Fe}),Qe=Ct(["tag"],[Me],r);return Wi([ze,Qe])},z7={c:"center ",l:"left ",r:"right "},wi=function(t,r){for(var n=[],i=new qt("mtd",[],["mtr-glue"]),s=new qt("mtd",[],["mml-eqn-num"]),l=0;l<t.body.length;l++){for(var f=t.body[l],h=[],d=0;d<f.length;d++)h.push(new qt("mtd",[or(f[d],r)]));t.tags&&t.tags[l]&&(h.unshift(i),h.push(i),t.leqno?h.unshift(s):h.push(s)),n.push(new qt("mtr",h))}var k=new qt("mtable",n),C=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);k.setAttribute("rowspacing",Mt(C));var N="",U="";if(t.cols&&t.cols.length>0){var O=t.cols,j="",D=!1,G=0,de=O.length;O[0].type==="separator"&&(N+="top ",G=1),O[O.length-1].type==="separator"&&(N+="bottom ",de-=1);for(var ne=G;ne<de;ne++){var me=O[ne];me.type==="align"?(U+=z7[me.align],D&&(j+="none "),D=!0):me.type==="separator"&&D&&(j+=me.separator==="|"?"solid ":"dashed ",D=!1)}k.setAttribute("columnalign",U.trim()),/[sd]/.test(j)&&k.setAttribute("columnlines",j.trim())}if(t.colSeparationType==="align"){for(var Q=t.cols||[],be="",le=1;le<Q.length;le++)be+=le%2?"0em ":"1em ";k.setAttribute("columnspacing",be.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?k.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?k.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?k.setAttribute("columnspacing","0.5em"):k.setAttribute("columnspacing","1em");var Ee="",te=t.hLinesBeforeRow;N+=te[0].length>0?"left ":"",N+=te[te.length-1].length>0?"right ":"";for(var Ce=1;Ce<te.length-1;Ce++)Ee+=te[Ce].length===0?"none ":te[Ce][0]?"dashed ":"solid ";return/[sd]/.test(Ee)&&k.setAttribute("rowlines",Ee.trim()),N!==""&&(k=new qt("menclose",[k]),k.setAttribute("notation",N.trim())),t.arraystretch&&t.arraystretch<1&&(k=new qt("mstyle",[k]),k.setAttribute("scriptlevel","1")),k},ay=function(t,r){t.envName.includes("ed")||Fc(t);var n=[],i=t.envName.includes("at")?"alignat":"align",s=t.envName==="split",l=Ss(t.parser,{cols:n,addJot:!0,autoTag:s?void 0:th(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),f=0,h=0,d={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var k="",C=0;C<r[0].body.length;C++){var N=Qt(r[0].body[C],"textord");k+=N.text}f=Number(k),h=f*2}var U=!h;l.body.forEach(function(G){for(var de=1;de<G.length;de+=2){var ne=Qt(G[de],"styling"),me=Qt(ne.body[0],"ordgroup");me.body.unshift(d)}if(U)h<G.length&&(h=G.length);else{var Q=G.length/2;if(f<Q)throw new It("Too many math in a row: "+("expected "+f+", but got "+Q),G[0])}});for(var O=0;O<h;++O){var j="r",D=0;O%2===1?j="l":O>0&&U&&(D=1),n[O]={type:"align",align:j,pregap:D,postgap:0}}return l.colSeparationType=U?"align":"alignat",l};yi({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Ic(t[0]),n=r?[t[0]]:Qt(t[0],"ordgroup").body,i=n.map(function(l){var f=Nc(l),h=f.text;if("lcr".includes(h))return{type:"align",align:h};if(h==="|")return{type:"separator",separator:"|"};if(h===":")return{type:"separator",separator:":"};throw new It("Unknown column alignment: "+h,l)}),s={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Ss(e.parser,s,rh(e.envName))},htmlBuilder:bi,mathmlBuilder:wi});yi({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 It("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var s=Ss(e.parser,n,rh(e.envName)),l=Math.max(0,...s.body.map(f=>f.length));return s.cols=new Array(l).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:bi,mathmlBuilder:wi});yi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=Ss(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:bi,mathmlBuilder:wi});yi({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Ic(t[0]),n=r?[t[0]]:Qt(t[0],"ordgroup").body,i=n.map(function(f){var h=Nc(f),d=h.text;if("lc".includes(d))return{type:"align",align:d};throw new It("Unknown column alignment: "+d,f)});if(i.length>1)throw new It("{subarray} can contain only one column");var s={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},l=Ss(e.parser,s,"script");if(l.body.length>0&&l.body[0].length>1)throw new It("{subarray} can contain only one column");return l},htmlBuilder:bi,mathmlBuilder:wi});yi({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=Ss(e.parser,t,rh(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:bi,mathmlBuilder:wi});yi({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:ay,htmlBuilder:bi,mathmlBuilder:wi});yi({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){R7.has(e.envName)&&Fc(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:th(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Ss(e.parser,t,"display")},htmlBuilder:bi,mathmlBuilder:wi});yi({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:ay,htmlBuilder:bi,mathmlBuilder:wi});yi({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Fc(e);var t={autoTag:th(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Ss(e.parser,t,"display")},htmlBuilder:bi,mathmlBuilder:wi});yi({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Fc(e),g7(e.parser)},htmlBuilder:bi,mathmlBuilder:wi});Ze("\\nonumber","\\gdef\\@eqnsw{0}");Ze("\\notag","\\nonumber");Dt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new It(e.funcName+" valid only within array environment")}});var Tm=iy;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 It("Invalid environment name",i);for(var s="",l=0;l<i.body.length;++l)s+=Qt(i.body[l],"textord").text;if(n==="\\begin"){if(!Tm.hasOwnProperty(s))throw new It("No such environment: "+s,i);var f=Tm[s],{args:h,optArgs:d}=r.parseArguments("\\begin{"+s+"}",f),k={mode:r.mode,envName:s,parser:r},C=f.handler(k,h,d);r.expect("\\end",!1);var N=r.nextToken,U=Qt(r.parseFunction(),"environment");if(U.name!==s)throw new It("Mismatch: \\begin{"+s+"} matched by \\end{"+U.name+"}",N);return C}return{type:"environment",mode:r.mode,name:s,nameGroup:i}}});var ly=(e,t)=>{var r=e.font,n=t.withFont(r);return sr(e.body,n)},oy=(e,t)=>{var r=e.font,n=t.withFont(r);return or(e.body,n)},Rm={"\\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=Wu(t[0]),s=n;return s in Rm&&(s=Rm[s]),{type:"font",mode:r.mode,font:s.slice(1),body:i}},htmlBuilder:ly,mathmlBuilder:oy});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:qc(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:Ui(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,l=r.parseExpression(!0,i);return{type:"font",mode:s,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:l}}},htmlBuilder:ly,mathmlBuilder:oy});var N7=(e,t)=>{var r=t.style,n=r.fracNum(),i=r.fracDen(),s;s=t.havingStyle(n);var l=sr(e.numer,s,t);if(e.continued){var f=8.5/t.fontMetrics().ptPerEm,h=3.5/t.fontMetrics().ptPerEm;l.height=l.height<f?f:l.height,l.depth=l.depth<h?h:l.depth}s=t.havingStyle(i);var d=sr(e.denom,s,t),k,C,N;e.hasBarLine?(e.barSize?(C=vr(e.barSize,t),k=Wa("frac-line",t,C)):k=Wa("frac-line",t),C=k.height,N=k.height):(k=null,C=0,N=t.fontMetrics().defaultRuleThickness);var U,O,j;r.size===Gt.DISPLAY.size?(U=t.fontMetrics().num1,C>0?O=3*N:O=7*N,j=t.fontMetrics().denom1):(C>0?(U=t.fontMetrics().num2,O=N):(U=t.fontMetrics().num3,O=3*N),j=t.fontMetrics().denom2);var D;if(k){var de=t.fontMetrics().axisHeight;U-l.depth-(de+.5*C)<O&&(U+=O-(U-l.depth-(de+.5*C))),de-.5*C-(d.height-j)<O&&(j+=O-(de-.5*C-(d.height-j)));var ne=-(de-.5*C);D=ir({positionType:"individualShift",children:[{type:"elem",elem:d,shift:j},{type:"elem",elem:k,shift:ne},{type:"elem",elem:l,shift:-U}]})}else{var G=U-l.depth-(d.height-j);G<O&&(U+=.5*(O-G),j+=.5*(O-G)),D=ir({positionType:"individualShift",children:[{type:"elem",elem:d,shift:j},{type:"elem",elem:l,shift:-U}]})}s=t.havingStyle(r),D.height*=s.sizeMultiplier/t.sizeMultiplier,D.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 Q,be;return e.leftDelim==null?Q=no(t,["mopen"]):Q=f0(e.leftDelim,me,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?be=Ct([]):e.rightDelim==null?be=no(t,["mclose"]):be=f0(e.rightDelim,me,!0,t.havingStyle(r),e.mode,["mclose"]),Ct(["mord"].concat(s.sizingClasses(t)),[Q,Ct(["mfrac"],[D]),be],t)},I7=(e,t)=>{var r=new qt("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",Mt(n))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var s=new qt("mo",[new Nr(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}if(i.push(r),e.rightDelim!=null){var l=new qt("mo",[new Nr(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),i.push(l)}return Zd(i)}return r},uy=(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],l,f=null,h=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":l=!0;break;case"\\\\atopfrac":l=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":l=!1,f="(",h=")";break;case"\\\\bracefrac":l=!1,f="\\{",h="\\}";break;case"\\\\brackfrac":l=!1,f="[",h="]";break;default:throw new Error("Unrecognized genfrac command")}var d=n==="\\cfrac",k=null;return d||n.startsWith("\\d")?k="display":n.startsWith("\\t")&&(k="text"),uy({type:"genfrac",mode:r.mode,numer:i,denom:s,continued:d,hasBarLine:l,leftDelim:f,rightDelim:h,barSize:null},k)},htmlBuilder:N7,mathmlBuilder:I7});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 zm=["display","text","script","scriptscript"],Nm=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=Wu(t[0]),l=s.type==="atom"&&s.family==="open"?Nm(s.text):null,f=Wu(t[1]),h=f.type==="atom"&&f.family==="close"?Nm(f.text):null,d=Qt(t[2],"size"),k,C=null;d.isBlank?k=!0:(C=d.value,k=C.number>0);var N=null,U=t[3];if(U.type==="ordgroup"){if(U.body.length>0){var O=Qt(U.body[0],"textord");N=zm[Number(O.text)]}}else U=Qt(U,"textord"),N=zm[Number(U.text)];return uy({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:k,barSize:C,leftDelim:l,rightDelim:h},N)}});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 l=t[2],f=s.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:l,continued:!1,hasBarLine:f,barSize:s,leftDelim:null,rightDelim:null}}});var cy=(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)),l=zc(i,t),f;if(i.isOver?f=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:l,wrapperClasses:["svg-align"]}]}):f=ir({positionType:"bottom",positionData:s.depth+.1+l.height,children:[{type:"elem",elem:l,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:s}]}),n){var h=Ct(["minner",i.isOver?"mover":"munder"],[f],t);i.isOver?f=ir({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:n}]}):f=ir({positionType:"bottom",positionData:h.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:h}]})}return Ct(["minner",i.isOver?"mover":"munder"],[f],t)},q7=(e,t)=>{var r=Rc(e.label);return new qt(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:cy,mathmlBuilder:q7});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=Br(e.body,t,!1);return G6(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=vs(e.body,t);return r instanceof qt||(r=new qt("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 l=n[s];l==="~"&&(l="\\textasciitilde"),i.push({type:"textord",mode:"text",text:l})}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=Br(e.body,t.withFont(""),!1);return Wi(r)},mathmlBuilder(e,t){return new qt("mrow",Ln(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,l=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var f,h={};switch(n){case"\\htmlClass":h.class=s,f={command:"\\htmlClass",class:s};break;case"\\htmlId":h.id=s,f={command:"\\htmlId",id:s};break;case"\\htmlStyle":h.style=s,f={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var d=s.split(","),k=0;k<d.length;k++){var C=d[k],N=C.indexOf("=");if(N<0)throw new It("\\htmlData key/value '"+C+"' missing equals sign");var U=C.slice(0,N),O=C.slice(N+1);h["data-"+U.trim()]=O}f={command:"\\htmlData",attributes:h};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(f)?{type:"html",mode:r.mode,attributes:h,body:zr(l)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=Br(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=Ct(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)=>vs(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=Br(e.html,t,!1);return Wi(r)},mathmlBuilder:(e,t)=>vs(e.mathml,t)});var D$=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 It("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!Av(n))throw new It("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"},l={number:0,unit:"em"},f="";if(r[0])for(var h=Qt(r[0],"raw").string,d=h.split(","),k=0;k<d.length;k++){var C=d[k].split("=");if(C.length===2){var N=C[1].trim();switch(C[0].trim()){case"alt":f=N;break;case"width":i=D$(N);break;case"height":s=D$(N);break;case"totalheight":l=D$(N);break;default:throw new It("Invalid key: '"+C[0]+"' in \\includegraphics.")}}}var U=Qt(t[0],"url").url;return f===""&&(f=U,f=f.replace(/^.*[\\/]/,""),f=f.substring(0,f.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:U})?{type:"includegraphics",mode:n.mode,alt:f,width:i,height:s,totalheight:l,src:U}: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:Mt(r+n)};i>0&&(s.width=Mt(i)),n>0&&(s.verticalAlign=Mt(-n));var l=new M6(e.src,e.alt,s);return l.height=r,l.depth=n,l},mathmlBuilder:(e,t)=>{var r=new qt("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",Mt(-i))),r.setAttribute("height",Mt(n+i)),e.width.number>0){var s=vr(e.width,t);r.setAttribute("width",Mt(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",l=i.value.unit==="mu";s?(l||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")):l&&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 Iv(e.dimension,t)},mathmlBuilder(e,t){var r=vr(e.dimension,t);return new jv(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=Ct([],[sr(e.body,t)]),r=Ct(["inner"],[r],t)):r=Ct(["inner"],[sr(e.body,t)]);var n=Ct(["fix"],[]),i=Ct([e.alignment],[r,n],t),s=Ct(["strut"]);return s.style.height=Mt(i.height+i.depth),i.depth&&(s.style.verticalAlign=Mt(-i.depth)),i.children.unshift(s),i=Ct(["thinbox"],[i],t),Ct(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new qt("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==="\\("?"\\)":"$",l=n.parseExpression(!1,s);return n.expect(s),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:l}}});Dt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new It("Mismatched "+e.funcName)}});var Im=(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=Im(e,t),n=Br(r,t,!1);return Wi(n)},mathmlBuilder:(e,t)=>{var r=Im(e,t);return vs(r,t)}});var $y=(e,t,r,n,i,s,l)=>{e=Ct([],[e]);var f=r&&Ui(r),h,d;if(t){var k=sr(t,n.havingStyle(i.sup()),n);d={elem:k,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-k.depth)}}if(r){var C=sr(r,n.havingStyle(i.sub()),n);h={elem:C,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-C.height)}}var N;if(d&&h){var U=n.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+e.depth+l;N=ir({positionType:"bottom",positionData:U,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:Mt(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Mt(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(h){var O=e.height-l;N=ir({positionType:"top",positionData:O,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:Mt(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e}]})}else if(d){var j=e.depth+l;N=ir({positionType:"bottom",positionData:j,children:[{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Mt(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var D=[N];if(h&&s!==0&&!f){var G=Ct(["mspace"],[],n);G.style.marginRight=Mt(s),D.unshift(G)}return Ct(["mop","op-limits"],D,n)},fy=new Set(["\\smallint"]),el=(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 l=t.style,f=!1;l.size===Gt.DISPLAY.size&&s.symbol&&!fy.has(s.name)&&(f=!0);var h,d;if(s.symbol){var k=f?"Size2-Regular":"Size1-Regular",C="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(C=s.name.slice(1),s.name=C==="oiint"?"\\iint":"\\iiint"),h=on(s.name,k,"math",t,["mop","op-symbol",f?"large-op":"small-op"]),d=h.italic,C.length>0){var N=Mv(C+"Size"+(f?"2":"1"),t);h=ir({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:N,shift:f?.08:0}]}),s.name="\\"+C,h.classes.unshift("mop"),h.italic=d}}else if(s.body){var U=Br(s.body,t,!0);U.length===1&&U[0]instanceof Nn?(h=U[0],h.classes[0]="mop"):h=Ct(["mop"],U,t)}else{for(var O=[],j=1;j<s.name.length;j++)O.push(Xd(s.name[j],s.mode,t));h=Ct(["mop"],O,t)}var D=0,G=0;if((h instanceof Nn||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift){var de;D=(h.height-h.depth)/2-t.fontMetrics().axisHeight,G=(de=h.italic)!=null?de:0}return i?$y(h,r,n,t,l,G,D):(D&&(h.style.position="relative",h.style.top=Mt(D)),h)},mo=(e,t)=>{var r;if(e.symbol)r=new qt("mo",[Kn(e.name,e.mode)]),fy.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new qt("mo",Ln(e.body,t));else{r=new qt("mi",[new Nr(e.name.slice(1))]);var n=new qt("mo",[Kn("⁡","text")]);e.parentIsSupSub?r=new qt("mrow",[r,n]):r=Fv([r,n])}return r},M7={"∏":"\\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=M7[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:el,mathmlBuilder:mo});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:el,mathmlBuilder:mo});var D7={"∫":"\\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:el,mathmlBuilder:mo});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:el,mathmlBuilder:mo});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=D7[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:el,mathmlBuilder:mo});var dy=(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 l;if(s.body.length>0){for(var f=s.body.map(C=>{var N="text"in C?C.text:void 0;return typeof N=="string"?{type:"textord",mode:C.mode,text:N}:C}),h=Br(f,t.withFont("mathrm"),!0),d=0;d<h.length;d++){var k=h[d];k instanceof Nn&&(k.text=k.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}l=Ct(["mop"],h,t)}else l=Ct(["mop"],[],t);return i?$y(l,r,n,t,t.style,0,0):l},L7=(e,t)=>{for(var r=Ln(e.body,t.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var s=r[i];if(!(s instanceof jv))if(s instanceof qt)switch(s.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var l=s.children[0];s.children.length===1&&l instanceof Nr?l.text=l.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var f=r.map(k=>k.toText()).join("");r=[new Nr(f)]}var h=new qt("mi",r);h.setAttribute("mathvariant","normal");var d=new qt("mo",[Kn("⁡","text")]);return e.parentIsSupSub?new qt("mrow",[h,d]):Fv([h,d])};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:dy,mathmlBuilder:L7});Ze("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Os({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Wi(Br(e.body,t,!1)):Ct(["mord"],Br(e.body,t,!0),t)},mathmlBuilder(e,t){return vs(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=Wa("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 Ct(["mord","overline"],[s],t)},mathmlBuilder(e,t){var r=new qt("mo",[new Nr("‾")]);r.setAttribute("stretchy","true");var n=new qt("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=Br(e.body,t.withPhantom(),!1);return Wi(r)},mathmlBuilder:(e,t)=>{var r=Ln(e.body,t);return new qt("mphantom",r)}});Ze("\\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=Ct(["inner"],[sr(e.body,t.withPhantom())]),n=Ct(["fix"],[]);return Ct(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=Ln(zr(e.body),t),n=new qt("mphantom",r),i=new qt("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 qt("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"),l=Qt(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&Qt(i,"size").value,width:s.value,height:l.value}},htmlBuilder(e,t){var r=Ct(["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=Mt(n),r.style.borderTopWidth=Mt(i),r.style.bottom=Mt(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",l=new qt("mspace");l.setAttribute("mathbackground",s),l.setAttribute("width",Mt(r)),l.setAttribute("height",Mt(n));var f=new qt("mpadded",[l]);return i>=0?f.setAttribute("height",Mt(i)):(f.setAttribute("height",Mt(i)),f.setAttribute("depth",Mt(-i))),f.setAttribute("voffset",Mt(i)),f}});function hy(e,t,r){for(var n=Br(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,s=0;s<n.length;s++){var l=n[s].classes.indexOf("sizing");l<0?Array.prototype.push.apply(n[s].classes,t.sizingClasses(r)):n[s].classes[l+1]==="reset-size"+t.size&&(n[s].classes[l+1]="reset-size"+r.size),n[s].height*=i,n[s].depth*=i}return Wi(n)}var qm=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],F7=(e,t)=>{var r=t.havingSize(e.size);return hy(e.body,r,t)};Dt({type:"sizing",names:qm,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:qm.indexOf(n)+1,body:s}},htmlBuilder:F7,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=Ln(e.body,r),i=new qt("mstyle",n);return i.setAttribute("mathsize",Mt(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,l=r[0]&&Qt(r[0],"ordgroup");if(l)for(var f,h=0;h<l.body.length;++h){var d=l.body[h];if(f=Nc(d).text,f==="t")i=!0;else if(f==="b")s=!0;else{i=!1,s=!1;break}}else i=!0,s=!0;var k=t[0];return{type:"smash",mode:n.mode,body:k,smashHeight:i,smashDepth:s}},htmlBuilder:(e,t)=>{var r=Ct([],[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 Ct(["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 Ct(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new qt("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=Va(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,s=i;t.style.id<Gt.TEXT.id&&(s=t.fontMetrics().xHeight);var l=i+s/4,f=r.height+r.depth+l+i,{span:h,ruleWidth:d,advanceWidth:k}=k7(f,t),C=h.height-d;C>r.height+r.depth+l&&(l=(l+C-r.height-r.depth)/2);var N=h.height-r.height-l-d;r.style.paddingLeft=Mt(k);var U=ir({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+N)},{type:"elem",elem:h},{type:"kern",size:d}]});if(e.index){var O=t.havingStyle(Gt.SCRIPTSCRIPT),j=sr(e.index,O,t),D=.6*(U.height-U.depth),G=ir({positionType:"shift",positionData:-D,children:[{type:"elem",elem:j}]}),de=Ct(["root"],[G]);return Ct(["mord","sqrt"],[de,U],t)}else return Ct(["mord","sqrt"],[U],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new qt("mroot",[or(r,t),or(n,t)]):new qt("msqrt",[or(r,t)])}});var d0={display:Gt.DISPLAY,text:Gt.TEXT,script:Gt.SCRIPT,scriptscript:Gt.SCRIPTSCRIPT};function j7(e){return e in d0}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),l=n.slice(1,n.length-5);if(!j7(l))throw new Error("Unknown style: "+l);return{type:"styling",mode:i.mode,style:l,body:s}},htmlBuilder(e,t){var r=d0[e.style],n=t.havingStyle(r);return e.resetFont&&(n=n.withFont("")),hy(e.body,n,t)},mathmlBuilder(e,t){var r=d0[e.style],n=t.havingStyle(r);e.resetFont&&(n=n.withFont(""));var i=Ln(e.body,n),s=new qt("mstyle",i),l={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},f=l[e.style];return s.setAttribute("scriptlevel",f[0]),s.setAttribute("displaystyle",f[1]),s}});var B7=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?el:null}else if(n.type==="operatorname"){var s=n.alwaysHandleSupSub&&(r.style.size===Gt.DISPLAY.size||n.limits);return s?dy:null}else{if(n.type==="accent")return Ui(n.base)?Od:null;if(n.type==="horizBrace"){var l=!t.sub;return l===n.isOver?cy:null}else return null}else return null};Os({type:"supsub",htmlBuilder(e,t){var r=B7(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:s}=e,l=sr(n,t),f,h,d=t.fontMetrics(),k=0,C=0,N=n&&Ui(n);if(i){var U=t.havingStyle(t.style.sup());f=sr(i,U,t),N||(k=l.height-U.fontMetrics().supDrop*U.sizeMultiplier/t.sizeMultiplier)}if(s){var O=t.havingStyle(t.style.sub());h=sr(s,O,t),N||(C=l.depth+O.fontMetrics().subDrop*O.sizeMultiplier/t.sizeMultiplier)}var j;t.style===Gt.DISPLAY?j=d.sup1:t.style.cramped?j=d.sup3:j=d.sup2;var D=t.sizeMultiplier,G=Mt(.5/d.ptPerEm/D),de=null;if(h){var ne=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(l instanceof Nn||ne){var me;de=Mt(-((me=l.italic)!=null?me:0))}}var Q;if(f&&h){k=Math.max(k,j,f.depth+.25*d.xHeight),C=Math.max(C,d.sub2);var be=d.defaultRuleThickness,le=4*be;if(k-f.depth-(h.height-C)<le){C=le-(k-f.depth)+h.height;var Ee=.8*d.xHeight-(k-f.depth);Ee>0&&(k+=Ee,C-=Ee)}var te=[{type:"elem",elem:h,shift:C,marginRight:G,marginLeft:de},{type:"elem",elem:f,shift:-k,marginRight:G}];Q=ir({positionType:"individualShift",children:te})}else if(h){C=Math.max(C,d.sub1,h.height-.8*d.xHeight);var Ce=[{type:"elem",elem:h,marginLeft:de,marginRight:G}];Q=ir({positionType:"shift",positionData:C,children:Ce})}else if(f)k=Math.max(k,j,f.depth+.25*d.xHeight),Q=ir({positionType:"shift",positionData:-k,children:[{type:"elem",elem:f,marginRight:G}]});else throw new Error("supsub must have either sup or sub.");var fe=o0(l,"right")||"mord";return Ct([fe],[l,Ct(["msupsub"],[Q])],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 l;if(r)l=n?"mover":"munder";else if(e.sub)if(e.sup){var d=e.base;d&&d.type==="op"&&d.limits&&t.style===Gt.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(t.style===Gt.DISPLAY||d.limits)?l="munderover":l="msubsup"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===Gt.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===Gt.DISPLAY)?l="munder":l="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)?l="mover":l="msup"}return new qt(l,s)}});Os({type:"atom",htmlBuilder(e,t){return Xd(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new qt("mo",[Kn(e.text,e.mode)]);if(e.family==="bin"){var n=Jd(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 py={mi:"italic",mn:"normal",mtext:"normal"};Os({type:"mathord",htmlBuilder(e,t){return Tc(e,t,"mathord")},mathmlBuilder(e,t){var r=new qt("mi",[Kn(e.text,e.mode,t)]),n=Jd(e,t)||"italic";return n!==py[r.type]&&r.setAttribute("mathvariant",n),r}});Os({type:"textord",htmlBuilder(e,t){return Tc(e,t,"textord")},mathmlBuilder(e,t){var r=Kn(e.text,e.mode,t),n=Jd(e,t)||"normal",i;return e.mode==="text"?i=new qt("mtext",[r]):/[0-9]/.test(e.text)?i=new qt("mn",[r]):e.text==="\\prime"?i=new qt("mo",[r]):i=new qt("mi",[r]),n!==py[i.type]&&i.setAttribute("mathvariant",n),i}});var L$={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},F$={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Os({type:"spacing",htmlBuilder(e,t){if(F$.hasOwnProperty(e.text)){var r=F$[e.text].className||"";if(e.mode==="text"){var n=Tc(e,t,"textord");return n.classes.push(r),n}else return Ct(["mspace",r],[Xd(e.text,e.mode,t)],t)}else{if(L$.hasOwnProperty(e.text))return Ct(["mspace",L$[e.text]],[],t);throw new It('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(F$.hasOwnProperty(e.text))r=new qt("mtext",[new Nr(" ")]);else{if(L$.hasOwnProperty(e.text))return new qt("mspace");throw new It('Unknown type of space "'+e.text+'"')}return r}});var Mm=()=>{var e=new qt("mtd",[]);return e.setAttribute("width","50%"),e};Os({type:"tag",mathmlBuilder(e,t){var r=new qt("mtable",[new qt("mtr",[Mm(),new qt("mtd",[vs(e.body,t)]),Mm(),new qt("mtd",[vs(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Dm={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Lm={"\\textbf":"textbf","\\textmd":"textmd"},P7={"\\textit":"textit","\\textup":"textup"},Fm=(e,t)=>{var r=e.font;if(r){if(Dm[r])return t.withTextFontFamily(Dm[r]);if(Lm[r])return t.withTextFontWeight(Lm[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(P7[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=Fm(e,t),n=Br(e.body,r,!0);return Ct(["mord","text"],n,r)},mathmlBuilder(e,t){var r=Fm(e,t);return vs(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=Wa("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 Ct(["mord","underline"],[s],t)},mathmlBuilder(e,t){var r=new qt("mo",[new Nr("‾")]);r.setAttribute("stretchy","true");var n=new qt("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 qt("mpadded",[or(e.body,t)],["vcenter"]);return new qt("mrow",[r])}});Dt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new It("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=jm(e),n=[],i=t.havingStyle(t.style.text()),s=0;s<r.length;s++){var l=r[s];l==="~"&&(l="\\textasciitilde"),n.push(on(l,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return Ct(["mord","text"].concat(i.sizingClasses(t)),Nv(n),i)},mathmlBuilder(e,t){var r=new Nr(jm(e)),n=new qt("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var jm=e=>e.body.replace(/ /g,e.star?"␣":" "),is=Dv,my=`[ \r
335
+ ]`,U7="\\\\[a-zA-Z@]+",H7="\\\\[^\uD800-\uDFFF]",W7="("+U7+")"+my+"*",V7=`\\\\(
336
+ |[ \r ]+
337
+ ?)[ \r ]*`,h0="[̀-ͯ]",Y7=new RegExp(h0+"+$"),G7="("+my+"+)|"+(V7+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(h0+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(h0+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+W7)+("|"+H7+")");class Bm{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(G7,"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 Tn("EOF",new _n(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new It("Unexpected character: '"+t[r]+"'",new Tn(t[r],new _n(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var s=t.indexOf(`
338
+ `,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 Tn(i,new _n(this,r,this.tokenRegex.lastIndex))}}class K7{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 It("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 X7=sy;Ze("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});Ze("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});Ze("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});Ze("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});Ze("\\@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}});Ze("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");Ze("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Pm={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};Ze("\\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 It("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=Pm[t.text],n==null||n>=r)throw new It("Invalid base-"+r+" digit "+t.text);for(var i;(i=Pm[e.future().text])!=null&&i<r;)n*=r,n+=i,e.popToken()}return"\\@char{"+n+"}"});var nh=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new It("\\newcommand's first argument must be a macro name");var s=i[0].text,l=e.isDefined(s);if(l&&!t)throw new It("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!l&&!r)throw new It("\\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 h="",d=e.expandNextToken();d.text!=="]"&&d.text!=="EOF";)h+=d.text,d=e.expandNextToken();if(!h.match(/^\s*[0-9]+\s*$/))throw new It("Invalid number of arguments: "+h);f=parseInt(h),i=e.consumeArg().tokens}return l&&n||e.macros.set(s,{tokens:i,numArgs:f}),""};Ze("\\newcommand",e=>nh(e,!1,!0,!1));Ze("\\renewcommand",e=>nh(e,!0,!1,!1));Ze("\\providecommand",e=>nh(e,!0,!0,!0));Ze("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});Ze("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});Ze("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),is[r],pr.math[r],pr.text[r]),""});Ze("\\bgroup","{");Ze("\\egroup","}");Ze("~","\\nobreakspace");Ze("\\lq","`");Ze("\\rq","'");Ze("\\aa","\\r a");Ze("\\AA","\\r A");Ze("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");Ze("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");Ze("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");Ze("ℬ","\\mathscr{B}");Ze("ℰ","\\mathscr{E}");Ze("ℱ","\\mathscr{F}");Ze("ℋ","\\mathscr{H}");Ze("ℐ","\\mathscr{I}");Ze("ℒ","\\mathscr{L}");Ze("ℳ","\\mathscr{M}");Ze("ℛ","\\mathscr{R}");Ze("ℭ","\\mathfrak{C}");Ze("ℌ","\\mathfrak{H}");Ze("ℨ","\\mathfrak{Z}");Ze("\\Bbbk","\\Bbb{k}");Ze("\\llap","\\mathllap{\\textrm{#1}}");Ze("\\rlap","\\mathrlap{\\textrm{#1}}");Ze("\\clap","\\mathclap{\\textrm{#1}}");Ze("\\mathstrut","\\vphantom{(}");Ze("\\underbar","\\underline{\\text{#1}}");Ze("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');Ze("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");Ze("\\ne","\\neq");Ze("≠","\\neq");Ze("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");Ze("∉","\\notin");Ze("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");Ze("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");Ze("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");Ze("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");Ze("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");Ze("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");Ze("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");Ze("⟂","\\perp");Ze("‼","\\mathclose{!\\mkern-0.8mu!}");Ze("∌","\\notni");Ze("⌜","\\ulcorner");Ze("⌝","\\urcorner");Ze("⌞","\\llcorner");Ze("⌟","\\lrcorner");Ze("©","\\copyright");Ze("®","\\textregistered");Ze("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');Ze("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');Ze("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');Ze("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');Ze("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");Ze("⋮","\\vdots");Ze("\\varGamma","\\mathit{\\Gamma}");Ze("\\varDelta","\\mathit{\\Delta}");Ze("\\varTheta","\\mathit{\\Theta}");Ze("\\varLambda","\\mathit{\\Lambda}");Ze("\\varXi","\\mathit{\\Xi}");Ze("\\varPi","\\mathit{\\Pi}");Ze("\\varSigma","\\mathit{\\Sigma}");Ze("\\varUpsilon","\\mathit{\\Upsilon}");Ze("\\varPhi","\\mathit{\\Phi}");Ze("\\varPsi","\\mathit{\\Psi}");Ze("\\varOmega","\\mathit{\\Omega}");Ze("\\substack","\\begin{subarray}{c}#1\\end{subarray}");Ze("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");Ze("\\boxed","\\fbox{$\\displaystyle{#1}$}");Ze("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");Ze("\\implies","\\DOTSB\\;\\Longrightarrow\\;");Ze("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");Ze("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");Ze("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Um={",":"\\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"},Q7=new Set(["bin","rel"]);Ze("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Um?t=Um[r]:(r.slice(0,4)==="\\not"||r in pr.math&&Q7.has(pr.math[r].group))&&(t="\\dotsb"),t});var ih={")":!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};Ze("\\dotso",function(e){var t=e.future().text;return t in ih?"\\ldots\\,":"\\ldots"});Ze("\\dotsc",function(e){var t=e.future().text;return t in ih&&t!==","?"\\ldots\\,":"\\ldots"});Ze("\\cdots",function(e){var t=e.future().text;return t in ih?"\\@cdots\\,":"\\@cdots"});Ze("\\dotsb","\\cdots");Ze("\\dotsm","\\cdots");Ze("\\dotsi","\\!\\cdots");Ze("\\dotsx","\\ldots\\,");Ze("\\DOTSI","\\relax");Ze("\\DOTSB","\\relax");Ze("\\DOTSX","\\relax");Ze("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Ze("\\,","\\tmspace+{3mu}{.1667em}");Ze("\\thinspace","\\,");Ze("\\>","\\mskip{4mu}");Ze("\\:","\\tmspace+{4mu}{.2222em}");Ze("\\medspace","\\:");Ze("\\;","\\tmspace+{5mu}{.2777em}");Ze("\\thickspace","\\;");Ze("\\!","\\tmspace-{3mu}{.1667em}");Ze("\\negthinspace","\\!");Ze("\\negmedspace","\\tmspace-{4mu}{.2222em}");Ze("\\negthickspace","\\tmspace-{5mu}{.277em}");Ze("\\enspace","\\kern.5em ");Ze("\\enskip","\\hskip.5em\\relax");Ze("\\quad","\\hskip1em\\relax");Ze("\\qquad","\\hskip2em\\relax");Ze("\\tag","\\@ifstar\\tag@literal\\tag@paren");Ze("\\tag@paren","\\tag@literal{({#1})}");Ze("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new It("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});Ze("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Ze("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Ze("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Ze("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");Ze("\\newline","\\\\\\relax");Ze("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var _y=Mt(fi["Main-Regular"][84][1]-.7*fi["Main-Regular"][65][1]);Ze("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+_y+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Ze("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+_y+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");Ze("\\hspace","\\@ifstar\\@hspacer\\@hspace");Ze("\\@hspace","\\hskip #1\\relax");Ze("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");Ze("\\ordinarycolon",":");Ze("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");Ze("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');Ze("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');Ze("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');Ze("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');Ze("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');Ze("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');Ze("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');Ze("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');Ze("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');Ze("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');Ze("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');Ze("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');Ze("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');Ze("∷","\\dblcolon");Ze("∹","\\eqcolon");Ze("≔","\\coloneqq");Ze("≕","\\eqqcolon");Ze("⩴","\\Coloneqq");Ze("\\ratio","\\vcentcolon");Ze("\\coloncolon","\\dblcolon");Ze("\\colonequals","\\coloneqq");Ze("\\coloncolonequals","\\Coloneqq");Ze("\\equalscolon","\\eqqcolon");Ze("\\equalscoloncolon","\\Eqqcolon");Ze("\\colonminus","\\coloneq");Ze("\\coloncolonminus","\\Coloneq");Ze("\\minuscolon","\\eqcolon");Ze("\\minuscoloncolon","\\Eqcolon");Ze("\\coloncolonapprox","\\Colonapprox");Ze("\\coloncolonsim","\\Colonsim");Ze("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ze("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ze("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ze("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ze("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");Ze("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");Ze("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");Ze("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");Ze("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");Ze("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");Ze("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");Ze("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");Ze("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");Ze("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");Ze("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");Ze("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");Ze("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");Ze("\\nleqq","\\html@mathml{\\@nleqq}{≰}");Ze("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");Ze("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");Ze("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");Ze("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");Ze("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");Ze("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");Ze("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");Ze("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");Ze("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");Ze("\\imath","\\html@mathml{\\@imath}{ı}");Ze("\\jmath","\\html@mathml{\\@jmath}{ȷ}");Ze("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");Ze("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");Ze("⟦","\\llbracket");Ze("⟧","\\rrbracket");Ze("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");Ze("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");Ze("⦃","\\lBrace");Ze("⦄","\\rBrace");Ze("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");Ze("⦵","\\minuso");Ze("\\darr","\\downarrow");Ze("\\dArr","\\Downarrow");Ze("\\Darr","\\Downarrow");Ze("\\lang","\\langle");Ze("\\rang","\\rangle");Ze("\\uarr","\\uparrow");Ze("\\uArr","\\Uparrow");Ze("\\Uarr","\\Uparrow");Ze("\\N","\\mathbb{N}");Ze("\\R","\\mathbb{R}");Ze("\\Z","\\mathbb{Z}");Ze("\\alef","\\aleph");Ze("\\alefsym","\\aleph");Ze("\\Alpha","\\mathrm{A}");Ze("\\Beta","\\mathrm{B}");Ze("\\bull","\\bullet");Ze("\\Chi","\\mathrm{X}");Ze("\\clubs","\\clubsuit");Ze("\\cnums","\\mathbb{C}");Ze("\\Complex","\\mathbb{C}");Ze("\\Dagger","\\ddagger");Ze("\\diamonds","\\diamondsuit");Ze("\\empty","\\emptyset");Ze("\\Epsilon","\\mathrm{E}");Ze("\\Eta","\\mathrm{H}");Ze("\\exist","\\exists");Ze("\\harr","\\leftrightarrow");Ze("\\hArr","\\Leftrightarrow");Ze("\\Harr","\\Leftrightarrow");Ze("\\hearts","\\heartsuit");Ze("\\image","\\Im");Ze("\\infin","\\infty");Ze("\\Iota","\\mathrm{I}");Ze("\\isin","\\in");Ze("\\Kappa","\\mathrm{K}");Ze("\\larr","\\leftarrow");Ze("\\lArr","\\Leftarrow");Ze("\\Larr","\\Leftarrow");Ze("\\lrarr","\\leftrightarrow");Ze("\\lrArr","\\Leftrightarrow");Ze("\\Lrarr","\\Leftrightarrow");Ze("\\Mu","\\mathrm{M}");Ze("\\natnums","\\mathbb{N}");Ze("\\Nu","\\mathrm{N}");Ze("\\Omicron","\\mathrm{O}");Ze("\\plusmn","\\pm");Ze("\\rarr","\\rightarrow");Ze("\\rArr","\\Rightarrow");Ze("\\Rarr","\\Rightarrow");Ze("\\real","\\Re");Ze("\\reals","\\mathbb{R}");Ze("\\Reals","\\mathbb{R}");Ze("\\Rho","\\mathrm{P}");Ze("\\sdot","\\cdot");Ze("\\sect","\\S");Ze("\\spades","\\spadesuit");Ze("\\sub","\\subset");Ze("\\sube","\\subseteq");Ze("\\supe","\\supseteq");Ze("\\Tau","\\mathrm{T}");Ze("\\thetasym","\\vartheta");Ze("\\weierp","\\wp");Ze("\\Zeta","\\mathrm{Z}");Ze("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");Ze("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");Ze("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");Ze("\\bra","\\mathinner{\\langle{#1}|}");Ze("\\ket","\\mathinner{|{#1}\\rangle}");Ze("\\braket","\\mathinner{\\langle{#1}\\rangle}");Ze("\\Bra","\\left\\langle#1\\right|");Ze("\\Ket","\\left|#1\\right\\rangle");var gy=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,s=t.consumeArg().tokens,l=t.macros.get("|"),f=t.macros.get("\\|");t.macros.beginGroup();var h=C=>N=>{e&&(N.macros.set("|",l),i.length&&N.macros.set("\\|",f));var U=C;if(!C&&i.length){var O=N.future();O.text==="|"&&(N.popToken(),U=!0)}return{tokens:U?i:n,numArgs:0}};t.macros.set("|",h(!1)),i.length&&t.macros.set("\\|",h(!0));var d=t.consumeArg().tokens,k=t.expandTokens([...s,...d,...r]);return t.macros.endGroup(),{tokens:k.reverse(),numArgs:0}};Ze("\\bra@ket",gy(!1));Ze("\\bra@set",gy(!0));Ze("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");Ze("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");Ze("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");Ze("\\angln","{\\angl n}");Ze("\\blue","\\textcolor{##6495ed}{#1}");Ze("\\orange","\\textcolor{##ffa500}{#1}");Ze("\\pink","\\textcolor{##ff00af}{#1}");Ze("\\red","\\textcolor{##df0030}{#1}");Ze("\\green","\\textcolor{##28ae7b}{#1}");Ze("\\gray","\\textcolor{gray}{#1}");Ze("\\purple","\\textcolor{##9d38bd}{#1}");Ze("\\blueA","\\textcolor{##ccfaff}{#1}");Ze("\\blueB","\\textcolor{##80f6ff}{#1}");Ze("\\blueC","\\textcolor{##63d9ea}{#1}");Ze("\\blueD","\\textcolor{##11accd}{#1}");Ze("\\blueE","\\textcolor{##0c7f99}{#1}");Ze("\\tealA","\\textcolor{##94fff5}{#1}");Ze("\\tealB","\\textcolor{##26edd5}{#1}");Ze("\\tealC","\\textcolor{##01d1c1}{#1}");Ze("\\tealD","\\textcolor{##01a995}{#1}");Ze("\\tealE","\\textcolor{##208170}{#1}");Ze("\\greenA","\\textcolor{##b6ffb0}{#1}");Ze("\\greenB","\\textcolor{##8af281}{#1}");Ze("\\greenC","\\textcolor{##74cf70}{#1}");Ze("\\greenD","\\textcolor{##1fab54}{#1}");Ze("\\greenE","\\textcolor{##0d923f}{#1}");Ze("\\goldA","\\textcolor{##ffd0a9}{#1}");Ze("\\goldB","\\textcolor{##ffbb71}{#1}");Ze("\\goldC","\\textcolor{##ff9c39}{#1}");Ze("\\goldD","\\textcolor{##e07d10}{#1}");Ze("\\goldE","\\textcolor{##a75a05}{#1}");Ze("\\redA","\\textcolor{##fca9a9}{#1}");Ze("\\redB","\\textcolor{##ff8482}{#1}");Ze("\\redC","\\textcolor{##f9685d}{#1}");Ze("\\redD","\\textcolor{##e84d39}{#1}");Ze("\\redE","\\textcolor{##bc2612}{#1}");Ze("\\maroonA","\\textcolor{##ffbde0}{#1}");Ze("\\maroonB","\\textcolor{##ff92c6}{#1}");Ze("\\maroonC","\\textcolor{##ed5fa6}{#1}");Ze("\\maroonD","\\textcolor{##ca337c}{#1}");Ze("\\maroonE","\\textcolor{##9e034e}{#1}");Ze("\\purpleA","\\textcolor{##ddd7ff}{#1}");Ze("\\purpleB","\\textcolor{##c6b9fc}{#1}");Ze("\\purpleC","\\textcolor{##aa87ff}{#1}");Ze("\\purpleD","\\textcolor{##7854ab}{#1}");Ze("\\purpleE","\\textcolor{##543b78}{#1}");Ze("\\mintA","\\textcolor{##f5f9e8}{#1}");Ze("\\mintB","\\textcolor{##edf2df}{#1}");Ze("\\mintC","\\textcolor{##e0e5cc}{#1}");Ze("\\grayA","\\textcolor{##f6f7f7}{#1}");Ze("\\grayB","\\textcolor{##f0f1f2}{#1}");Ze("\\grayC","\\textcolor{##e3e5e6}{#1}");Ze("\\grayD","\\textcolor{##d6d8da}{#1}");Ze("\\grayE","\\textcolor{##babec2}{#1}");Ze("\\grayF","\\textcolor{##888d93}{#1}");Ze("\\grayG","\\textcolor{##626569}{#1}");Ze("\\grayH","\\textcolor{##3b3e40}{#1}");Ze("\\grayI","\\textcolor{##21242c}{#1}");Ze("\\kaBlue","\\textcolor{##314453}{#1}");Ze("\\kaGreen","\\textcolor{##71B307}{#1}");var vy={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Z7{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 K7(X7,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new Bm(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 Tn("EOF",n.loc)),this.pushTokens(i),new Tn("",_n.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,l=0,f=0;do{if(s=this.popToken(),r.push(s),s.text==="{")++l;else if(s.text==="}"){if(--l,l===-1)throw new It("Extra }",s)}else if(s.text==="EOF")throw new It("Unexpected end of input in a macro argument, expected '"+(t&&n?t[f]:"}")+"'",s);if(t&&n)if((l===0||l===1&&t[f]==="{")&&s.text===t[f]){if(++f,f===t.length){r.splice(-f,f);break}}else f=0}while(l!==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 It("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 It("Use of the macro doesn't match its definition",s)}}for(var l=[],f=0;f<t;f++)l.push(this.consumeArg(r&&r[f+1]).tokens);return l}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new It("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 It("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var s=i.tokens,l=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){s=s.slice();for(var f=s.length-1;f>=0;--f){var h=s[f];if(h.text==="#"){if(f===0)throw new It("Incomplete placeholder at end of macro body",h);if(h=s[--f],h.text==="#")s.splice(f+1,1);else if(/^[1-9]$/.test(h.text))s.splice(f,2,...l[+h.text-1]);else throw new It("Not a valid argument number",h)}}}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 Tn(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 l=i.replace(/##/g,"");l.includes("#"+(s+1));)++s;for(var f=new Bm(i,this.settings),h=[],d=f.lex();d.text!=="EOF";)h.push(d),d=f.lex();h.reverse();var k={tokens:h,numArgs:s};return k}return i}isDefined(t){return this.macros.has(t)||is.hasOwnProperty(t)||pr.math.hasOwnProperty(t)||pr.text.hasOwnProperty(t)||vy.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:is.hasOwnProperty(t)&&!is[t].primitive}}var Hm=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Vo=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),j$={"́":{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"}},Wm={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class jc{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 Z7(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 It("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 Tn("}")),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(jc.endOfExpression.has(i.text)||r&&i.text===r||t&&is[i.text]&&is[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 It("only one infix operator per group",s.token);r=i,n=s.replaceWith}}if(r!==-1&&n){var l,f,h=t.slice(0,r),d=t.slice(r+1);h.length===1&&h[0].type==="ordgroup"?l=h[0]:l={type:"ordgroup",mode:this.mode,body:h},d.length===1&&d[0].type==="ordgroup"?f=d[0]:f={type:"ordgroup",mode:this.mode,body:d};var k;return n==="\\\\abovefrac"?k=this.callFunction(n,[l,t[r],f],[]):k=this.callFunction(n,[l,f],[]),[k]}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 It("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 l=s.text==="\\limits";r.limits=l,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=s.text==="\\limits");else throw new It("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(n)throw new It("Double superscript",s);n=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(i)throw new It("Double subscript",s);i=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(n)throw new It("Double superscript",s);var f={type:"textord",mode:this.mode,text:"\\prime"},h=[f];for(this.consume();this.fetch().text==="'";)h.push(f),this.consume();this.fetch().text==="^"&&h.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:h}}else if(Vo[s.text]){var d=Hm.test(s.text),k=[];for(k.push(new Tn(Vo[s.text])),this.consume();;){var C=this.fetch().text;if(!Vo[C]||Hm.test(C)!==d)break;k.unshift(new Tn(Vo[C])),this.consume()}var N=this.subparse(k);d?i={type:"ordgroup",mode:"math",body:N}:n={type:"ordgroup",mode:"math",body:N}}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=is[i];if(!s)return null;if(this.consume(),r&&r!=="atom"&&!s.allowedInArgument)throw new It("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!s.allowedInText)throw new It("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&s.allowedInMath===!1)throw new It("Can't use function '"+i+"' in math mode",n);var{args:l,optArgs:f}=this.parseArguments(i,s);return this.callFunction(i,l,f,n,t)}callFunction(t,r,n,i,s){var l={funcName:t,parser:this,token:i,breakOnTokenText:s},f=is[t];if(f&&f.handler)return f.handler(l,r,n);throw new It("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],s=[],l=0;l<n;l++){var f=r.argTypes&&r.argTypes[l],h=l<r.numOptionalArgs;("primitive"in r&&r.primitive&&f==null||r.type==="sqrt"&&l===1&&s[0]==null)&&(f="primitive");var d=this.parseGroupOfType("argument to '"+t+"'",f,h);if(h)s.push(d);else if(d!=null)i.push(d);else throw new It("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 It("A primitive argument cannot be optional");var l=this.parseGroup(t);if(l==null)throw new It("Expected group as "+t,this.fetch());return l}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new It("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="",l;(l=this.fetch()).text!=="EOF"&&t.test(s+l.text);)i=l,s+=i.text,this.consume();if(s==="")throw new It("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 It("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 It("Invalid size: '"+r.text+"'",r);var s={number:+(i[1]+i[2]),unit:i[3]};if(!Av(s))throw new It("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 l={type:"ordgroup",mode:this.mode,loc:n.loc,body:s};return r&&this.switchMode(i),l}parseGroup(t,r){var n=this.fetch(),i=n.text,s;if(i==="{"||i==="\\begingroup"){this.consume();var l=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var f=this.parseExpression(!1,l),h=this.fetch();this.expect(l),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:_n.range(n,h),body:f,semisimple:i==="\\begingroup"||void 0}}else if(s=this.parseFunction(r,t)||this.parseSymbol(),s==null&&i[0]==="\\"&&!vy.hasOwnProperty(i)){if(this.settings.throwOnError)throw new It("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,l=t[n+1];if(!(!l||l.type!=="textord")){if(s==="-"&&l.text==="-"){var f=t[n+2];n+1<r&&f&&f.type==="textord"&&f.text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:_n.range(i,f),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:_n.range(i,l),text:"--"}),r-=1)}(s==="'"||s==="`")&&l.text===s&&(t.splice(n,2,{type:"textord",mode:"text",loc:_n.range(i,l),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 It(`\\verb assertion failed --
339
+ please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}Wm.hasOwnProperty(r[0])&&!pr[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=Wm[r[0]]+r.slice(1));var s=Y7.exec(r);s&&(r=r.substring(0,s.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var l;if(pr[this.mode][r]){this.settings.strict&&this.mode==="math"&&e0.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var f=pr[this.mode][r].group,h=_n.range(t),d;d7(f)?d={type:"atom",mode:this.mode,family:f,loc:h,text:r}:d={type:f,mode:this.mode,loc:h,text:r},l=d}else if(r.charCodeAt(0)>=128)this.settings.strict&&(Ev(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)),l={type:"textord",mode:"text",loc:_n.range(t),text:r};else return null;if(this.consume(),s)for(var k=0;k<s[0].length;k++){var C=s[0][k];if(!j$[C])throw new It("Unknown accent ' "+C+"'",t);var N=j$[C][this.mode]||j$[C].text;if(!N)throw new It("Accent "+C+" unsupported in "+this.mode+" mode",t);l={type:"accent",mode:this.mode,loc:_n.range(t),label:N,isStretchy:!1,isShifty:!0,base:l}}return l}}jc.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var sh=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new jc(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 It("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new Tn("\\df@tag")])}]}return i},yy=function(t,r,n){r.textContent="";var i=ah(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."),yy=function(){throw new It("KaTeX doesn't work in quirks mode.")});var J7=function(t,r){var n=ah(t,r).toMarkup();return n},O7=function(t,r){var n=new Vd(r);return sh(t,n)},by=function(t,r,n){if(n.throwOnError||!(t instanceof It))throw t;var i=Ct(["katex-error"],[new Nn(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+n.errorColor),i},ah=function(t,r){var n=new Vd(r);try{var i=sh(t,n);return s7(i,t,n)}catch(s){return by(s,t,n)}},ew=function(t,r){var n=new Vd(r);try{var i=sh(t,n);return a7(i,t,n)}catch(s){return by(s,t,n)}},tw="0.16.47",rw={Span:Ja,Anchor:Ac,SymbolNode:Nn,SvgNode:Fi,PathNode:_s,LineNode:Of},nw={version:tw,render:yy,renderToString:J7,ParseError:It,SETTINGS_SCHEMA:Qf,__parse:O7,__renderToDomTree:ah,__renderToHTMLTree:ew,__setFontMetrics:B6,__defineSymbol:ve,__defineFunction:Dt,__defineMacro:Ze,__domTree:rw};function di(e,t){return nw.renderToString(String(e??""),{displayMode:t,throwOnError:!1})}function iw({node:e}){return ge.jsxs("div",{className:"text",children:[e.title&&ge.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ge.jsx("p",{className:"chapter-subtitle",children:e.description}),ge.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:di(vi(e.value),!0)}})]})}function sw({chunk:e}){return ge.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:di(e.value,!0)}})}const Vm={path:null,href:null},aw=e=>/^[a-z][a-z0-9+.-]*:/i.test(e);function lw(e,t){return Wn([...jr(e),...jr(t)])}function Ym(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 wy(e,t=":"){const r=e.trim();return r?r.startsWith("::")?{path:Wn(jr(r.slice(2))),href:null}:r.startsWith(":")?{path:lw(t,r),href:null}:r.startsWith("//")?{path:Wn(Ym(r)),href:null}:aw(r)?{path:null,href:r}:r.startsWith("/")?{path:Wn([...jr(t),...Ym(r)]),href:null}:Vm:Vm}function ow({target:e,documentPath:t,onNavigate:r,children:n}){const{path:i,href:s}=wy(e,t);return s?ge.jsx("a",{className:"extlink",href:s,target:"_blank",rel:"noopener noreferrer",children:n}):i?ge.jsx("a",{className:"descend",href:i,onClick:l=>{l.preventDefault(),r(i)},children:n}):ge.jsx(ge.Fragment,{children:n})}const uw=/\.(mp4|webm|ogv|mov|m4v)$/i,cw=/\.(mp3|ogg|oga|wav|flac|m4a|aac)$/i,$w=/\.(png|jpe?g|gif|webp|avif|bmp|ico|svg)$/i;function Gm(e){return uw.test(e)?"video":cw.test(e)?"audio":$w.test(e)?"image":null}function fw(e){if(!e)return null;if(/^\d+s?$/.test(e))return Number(e.replace(/s$/,""));const t=/^(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?$/.exec(e);return!t||!t[0]?null:Number(t[1]??0)*3600+Number(t[2]??0)*60+Number(t[3]??0)||null}function dw(e){const t=e.hostname.replace(/^www\.|^m\./,""),r=e.pathname.split("/").filter(Boolean);return t==="youtu.be"?r[0]??null:t!=="youtube.com"&&t!=="youtube-nocookie.com"?null:r[0]==="watch"?e.searchParams.get("v"):r[0]==="embed"||r[0]==="shorts"||r[0]==="live"?r[1]??null:null}function hw(e){const t=e.hostname.replace(/^www\./,""),r=e.pathname.split("/").filter(Boolean);return t==="vimeo.com"?/^\d+$/.test(r[0]??"")?r[0]:null:t==="player.vimeo.com"&&r[0]==="video"&&/^\d+$/.test(r[1]??"")?r[1]:null}function pw(e){const t=fw(e.searchParams.get("t")??e.searchParams.get("start")),r=dw(e);if(r){const i=t?`?start=${t}`:"";return{kind:"iframe",provider:"youtube",src:`https://www.youtube-nocookie.com/embed/${encodeURIComponent(r)}${i}`,poster:`https://i.ytimg.com/vi/${encodeURIComponent(r)}/hqdefault.jpg`}}const n=hw(e);if(n){const i=t?`?dnt=1#t=${t}s`:"?dnt=1";return{kind:"iframe",provider:"vimeo",src:`https://player.vimeo.com/video/${n}${i}`,poster:null}}return null}function lh(e,t){const{path:r,href:n}=wy(e,t);if(r){const f=Gm(r);return f?{kind:f,src:Pi(r),path:r}:null}if(!n)return null;let i;try{i=new URL(n)}catch{return null}if(i.protocol!=="http:"&&i.protocol!=="https:")return null;const s=pw(i);if(s)return s;const l=Gm(i.pathname);return l?{kind:l,src:n}:null}function xy(e,t){return lh(e,t)!==null}const ky={iframe:"▶",video:"▶",audio:"♪",image:"🖼"};function mw({spec:e,label:t}){const[r,n]=$t.useState(!1);return r?ge.jsx("iframe",{className:"mlw-embed-frame",src:`${e.src}${e.src.includes("?")?"&":"?"}autoplay=1`,title:t||e.provider,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,loading:"lazy",referrerPolicy:"strict-origin-when-cross-origin"}):ge.jsxs("button",{type:"button",className:`mlw-embed-facade mlw-embed-${e.provider}`,onClick:()=>n(!0),title:`Play${t?`: ${t}`:""}`,style:e.poster?{backgroundImage:`url(${e.poster})`}:void 0,children:[ge.jsx("span",{className:"mlw-embed-play","aria-hidden":"true",children:"▶"}),ge.jsx("span",{className:"visually-hidden",children:`Play ${t||e.provider} video`})]})}function Sy({spec:e,label:t}){switch(e.kind){case"iframe":return ge.jsx(mw,{spec:e,label:t});case"video":return ge.jsx("video",{className:"mlw-embed-video",src:e.src,controls:!0,preload:"metadata"});case"audio":return ge.jsx("audio",{className:"mlw-embed-audio",src:e.src,controls:!0,preload:"metadata"});case"image":return ge.jsx("img",{className:"mlw-embed-image",src:e.src,alt:t,loading:"lazy"})}}function _w({spec:e,label:t}){return ge.jsxs("figure",{className:"mlw-embed",children:[ge.jsx(Sy,{spec:e,label:t}),t&&ge.jsx("figcaption",{className:"mlw-embed-caption",children:t})]})}function gw({spec:e,label:t}){const[r,n]=$t.useState(!1);return e.kind==="image"?ge.jsx("img",{className:"mlw-embed-chip-image",src:e.src,alt:t,loading:"lazy"}):r?ge.jsx("span",{className:"mlw-embed-opened",children:ge.jsx(Sy,{spec:e,label:t})}):ge.jsxs("button",{type:"button",className:"mlw-embed-chip",onClick:()=>n(!0),title:`Open${t?`: ${t}`:""}`,children:[ge.jsx("span",{"aria-hidden":"true",children:ky[e.kind]}),t]})}function Vu(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Il(e){return Vu(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 Km=String.raw`(?:[^\[\]]|\[[^\]]*\])*?`,Ey=new RegExp(String.raw`\$\$([\s\S]+?)\$\$|`+"`([^`]+?)`|"+String.raw`\*\[(${Km})\]\(([^)]+?)\)(?!\*)|`+String.raw`\[(${Km})\]\(([^)]+?)\)`,"g");function vw(e,t,r){return/(^|\n)[ \t]*$/.test(e.slice(0,t))&&/^[ \t]*(\n|$)/.test(e.slice(r))}function Ay(e,t,r){const n=String(e??""),i=[];let s="",l=0,f=!1;const h=()=>{s&&(i.push(ge.jsx("span",{dangerouslySetInnerHTML:{__html:s}},l++)),s="")},d=(j,D)=>ge.jsx(ow,{target:D,documentPath:r,onNavigate:t,children:ge.jsx("span",{dangerouslySetInnerHTML:{__html:Il(j)}})},l++);let k=0,C=!1,N=!1;const U=j=>(C?j=j.replace(/^[ \t]*\n/,""):N&&(j=j.replace(/^\n(?!\n)/," ")),Il(j.replace(/(?<=[^\n])\n(?=[^\n])/g," "))),O=()=>{s=s.replace(/(?<=[^\n])\n[ \t]*$/," ")};for(const j of n.matchAll(Ey)){s+=U(n.slice(k,j.index)),C=!1;const D=j.index+j[0].length;if(N=!0,j[1]!==void 0)O(),s+=di(j[1],!1);else if(j[2]!==void 0)O(),s+=`<code>${Vu(j[2])}</code>`;else if(j[3]!==void 0){const G=lh(j[4],r);G?vw(n,j.index,D)?(f=!0,C=!0,N=!1,s=s.replace(/\n[ \t]*$/,""),h(),i.push(ge.jsx(_w,{spec:G,label:j[3]},l++))):(O(),h(),i.push(ge.jsx(gw,{spec:G,label:j[3]},l++))):(O(),h(),i.push(d(j[3],j[4])))}else O(),h(),i.push(d(j[5],j[6]));k=D}return s+=U(n.slice(k)),h(),{nodes:i,block:f}}function Cy({parsed:e}){const t=e.block?"div":"p";return ge.jsx(t,{className:"chapter-prose",children:e.nodes})}function yw({node:e,onNavigate:t}){return ge.jsxs("div",{className:"marklower",children:[e.title&&ge.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ge.jsx("p",{className:"chapter-subtitle",children:e.description}),ge.jsx(Cy,{parsed:Ay(vi(e.value),t,e.documentPath)})]})}function bw({chunk:e,onNavigate:t}){return ge.jsx(Cy,{parsed:Ay(e.value,t,e.documentPath)})}function Yo(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function oh(e){const t=String(e??"");let r="",n=0;for(const i of t.matchAll(Ey)){if(r+=Il(t.slice(n,i.index)),i[1]!==void 0)r+=`<span class="mlw-atom" contenteditable="false" data-src="${Yo("$$"+i[1]+"$$")}">${di(i[1],!1)}</span>`;else if(i[2]!==void 0)r+=`<code class="mlw-atom" contenteditable="false" data-src="${Yo("`"+i[2]+"`")}">${Vu(i[2])}</code>`;else if(i[3]!==void 0){const s=lh(i[4]);r+=`<span class="mlw-atom mlw-embed-chip" contenteditable="false" data-src="${Yo("*["+i[3]+"]("+i[4]+")")}">${s?ky[s.kind]:"▶"} ${Vu(i[3])}</span>`}else r+=`<a class="mlw-atom mlw-link" contenteditable="false" data-src="${Yo("["+i[5]+"]("+i[6]+")")}">${Il(i[5])}</a>`;n=i.index+i[0].length}return r+=Il(t.slice(n)),r}const ww=new Set(["script","style","noscript","template","head","title"]);function Ty(e){const t=e.getAttribute("src")||e.querySelector("source[src]")?.getAttribute("src")||"",r=t.startsWith("//")?"https:"+t:t;return/^https?:\/\//i.test(r)?r:""}function uh(e){if(e.nodeType===Node.TEXT_NODE)return e.textContent??"";if(!(e instanceof Element))return"";const t=e.getAttribute("data-src");if(t!=null)return t;const r=e.tagName.toLowerCase();if(ww.has(r))return"";if(r==="br")return`
340
+ `;if(r==="img"||r==="iframe"){const i=Ty(e),s=e.getAttribute(r==="img"?"alt":"title")??"";return i&&xy(i)?`*[${s}](${i})`:""}const n=Array.from(e.childNodes).map(uh).join("");if(r==="a"){const i=e.getAttribute("href")??"",s=n.trim();return/^https?:\/\//.test(i)&&s?`[${s}](${i})`:n}return r==="strong"||r==="b"?n.trim()?`**${n.trim()}**`:"":r==="em"||r==="i"?n.trim()?`*${n.trim()}*`:"":r==="code"?n.trim()?"`"+n.trim()+"`":"":r==="del"||r==="s"||r==="strike"?n.trim()?`~~${n.trim()}~~`:"":n}function ch(e){const t=[],r=n=>{for(const i of Array.from(n.childNodes))i instanceof HTMLElement&&(i.tagName==="DIV"||i.tagName==="P")?(t.push(`
341
+ `),r(i)):t.push(uh(i))};return r(e),t.join("").replace(/^\n+/,"").replace(/\n+$/,"")}function xw(e){Ry(e,0)}function kw(e){e.focus();const t=window.getSelection();if(!t)return;const r=document.createRange();r.selectNodeContents(e),r.collapse(!1),t.removeAllRanges(),t.addRange(r)}function Ry(e,t){e.focus();const r=window.getSelection();if(!r)return;const n=document.createRange();let i=Math.max(0,t);const s=l=>{for(const f of Array.from(l.childNodes))if(f.nodeType===Node.TEXT_NODE){const h=f.textContent?.length??0;if(i<=h)return n.setStart(f,i),n.collapse(!0),!0;i-=h}else if(f instanceof HTMLElement){if(f.getAttribute("contenteditable")==="false"||f.hasAttribute("data-src")){const d=f.textContent?.length??0;if(i<=d)return n.setStartAfter(f),n.collapse(!0),!0;i-=d}else if(s(f))return!0}return!1};s(e)||(n.selectNodeContents(e),n.collapse(!1)),r.removeAllRanges(),r.addRange(n)}function Bc(e){const t=window.getSelection();if(!t||t.rangeCount===0||!t.isCollapsed)return null;const r=t.getRangeAt(0);return e.contains(r.startContainer)?r:null}function Sw(e){const t=Bc(e);if(!t)return!1;const r=document.createRange();return r.selectNodeContents(e),r.setEnd(t.startContainer,t.startOffset),r.toString().length===0}function Ew(e){const t=Bc(e);if(!t)return!1;const r=document.createRange();return r.selectNodeContents(e),r.setStart(t.endContainer,t.endOffset),r.toString().length===0}function zy(e){const t=e.cloneRange();t.collapse(!0);let r=t.getBoundingClientRect();if(r.height===0&&r.top===0){const n=document.createElement("span");n.textContent="​",t.insertNode(n),r=n.getBoundingClientRect();const i=n.parentNode;n.remove(),i?.normalize()}return r}function Ny(e){const t=getComputedStyle(e),r=parseFloat(t.lineHeight);return Number.isFinite(r)&&r>0?r:(parseFloat(t.fontSize)||16)*1.4}function Aw(e){const t=Bc(e);if(!t)return!1;if(e.clientHeight===0)return!0;const r=zy(t);return r?r.top-e.getBoundingClientRect().top<Ny(e)*.75:!0}function Cw(e){const t=Bc(e);if(!t)return!1;if(e.clientHeight===0)return!0;const r=zy(t);return r?e.getBoundingClientRect().bottom-r.bottom<Ny(e)*.75:!0}const Tw={"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 Iy(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 qy(e){return e.name?e.name:`pasted.${Tw[e.type]||"bin"}`}function My(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)})}function Rw(e){const t=document.createElement("div");return t.innerHTML=oh(e),t.textContent?.length??0}function zw(e){const t=window.getSelection();if(!t||t.rangeCount===0||!e.contains(t.getRangeAt(0).endContainer))return null;const r=t.getRangeAt(0),n=i=>{const s=document.createRange();s.selectNodeContents(e),i==="head"?s.setEnd(r.endContainer,r.endOffset):s.setStart(r.endContainer,r.endOffset);const l=document.createElement("div");return l.appendChild(s.cloneContents()),ch(l)};return{head:n("head"),tail:n("tail")}}function Nw(e){return e.replace(/\.[^.]+$/,"")}async function Iw(e,t,r,n,i){for(const l of r){const f=qy(l),h=await A3(n,f,await My(l)),d=document.createElement("span");d.innerHTML=oh(`*[${Nw(f)}](:${h.path})`);const k=d.firstChild;k&&(t.insertNode(k),t.setStartAfter(k),t.collapse(!0))}const s=window.getSelection();s&&(s.removeAllRanges(),s.addRange(t)),i(ch(e))}function qw(e,t){t==="start"?xw(e):t==="end"?kw(e):typeof t=="number"&&Ry(e,t)}const Mw=({text:e,rev:t,chapterPath:r,focusAt:n,onFocused:i,onChangeText:s,onSplit:l,onArrowOut:f,onJoinPrev:h,onJoinNext:d})=>{const k=$t.useRef(null);return $t.useEffect(()=>{k.current&&(k.current.innerHTML=oh(e))},[t]),$t.useEffect(()=>{n!=null&&k.current&&(qw(k.current,n),i())},[n]),ge.jsx("p",{ref:k,className:"chapter-prose editable",contentEditable:!0,suppressContentEditableWarning:!0,onInput:()=>{k.current&&s(ch(k.current))},onPaste:C=>{const N=k.current,U=Iy(C.nativeEvent).filter(j=>j.type.startsWith("image/"));if(!N||U.length===0)return;const O=window.getSelection();!O||O.rangeCount===0||!N.contains(O.getRangeAt(0).endContainer)||(C.preventDefault(),Iw(N,O.getRangeAt(0).cloneRange(),U,r,s))},onKeyDown:C=>{const N=k.current;if(N){if(C.key==="Enter"&&!C.shiftKey){C.preventDefault();const U=zw(N);U&&l(U.head,U.tail);return}if(C.key==="ArrowUp"&&Aw(N)){C.preventDefault(),f("up");return}if(C.key==="ArrowDown"&&Cw(N)){C.preventDefault(),f("down");return}if(C.key==="Backspace"&&Sw(N)){C.preventDefault(),h();return}if(C.key==="Delete"&&Ew(N)){C.preventDefault(),d();return}}}})},Dw=({text:e,rev:t,focusAt:r,onFocused:n,onChangeText:i,onArrowOut:s})=>{const l=$t.useRef(null),f=h=>{h.style.height="auto",h.style.height=h.scrollHeight+"px"};return $t.useEffect(()=>{l.current&&(l.current.value=e,f(l.current))},[t]),$t.useEffect(()=>{const h=l.current;if(r==null||!h)return;const d=r==="start"?0:r==="end"?h.value.length:r;h.focus(),h.setSelectionRange(d,d),n()},[r]),ge.jsx("textarea",{ref:l,className:"chapter-latex-src editable",spellCheck:!1,rows:1,defaultValue:e,onInput:h=>{const d=h.currentTarget;f(d),i(d.value)},onKeyDown:h=>{const d=h.currentTarget,k=d.value.slice(0,d.selectionStart),C=d.value.slice(d.selectionEnd),N=d.selectionStart===d.selectionEnd;if(h.key==="ArrowUp"&&N&&!k.includes(`
342
+ `)){h.preventDefault(),s("up");return}if(h.key==="ArrowDown"&&N&&!C.includes(`
343
+ `)){h.preventDefault(),s("down");return}}})};function Lw(e){return e===null||e==="text/marklower"||e==="text/markdown"?Mw:e==="text/x-latex"?Dw:null}function Xm(e){return e===null||e==="text/marklower"||e==="text/markdown"}const Fs=":.browser:settings.yamlover";function Fw(e){return e===":.browser"||e===Fs||e.startsWith(":.browser:")}const $u="yamlover.settings",jw="yamlover.markupWidthCh",$h=20,fh=400;function Qm(e){return`# Browser settings — THIS DEVICE only (stored in this browser, not in any project), living
344
+ # at the virtual path *:: .browser: settings.yamlover. The same schema as
345
+ # .yamlover/settings.yamlover; a key authored here OVERRIDES the project's value for viewer
346
+ # preferences (reading width). Server-side creation locations stay project-governed. Edit me
347
+ # here, or via the second gear in the topbar.
348
+ !!<*yamlover:$defs:config>
349
+
350
+ width: ${e} # reading width (ch) for rendered prose (markdown, asciidoc, chapters)
351
+ theme: light # ui palette: dark | light
352
+ `}const Bw=[{key:"theme",line:"theme: light # ui palette: dark | light"}];function Pw(e){let t=e;for(const r of Bw)new RegExp(`^${r.key}:`,"m").test(t)||(t=(t===""||t.endsWith(`
353
+ `)?t:t+`
354
+ `)+r.line+`
355
+ `);return t}function Yu(){try{const e=localStorage.getItem($u);if(e!=null){const r=Pw(e);return r!==e&&localStorage.setItem($u,r),r}const t=Qm(Uw()??72);return localStorage.setItem($u,t),t}catch{return Qm(72)}}function Dy(e){try{localStorage.setItem($u,e)}catch{}dh()}function Uw(){try{const e=Number(localStorage.getItem(jw));return Number.isFinite(e)&&e>=$h&&e<=fh?e:null}catch{return null}}let Zm,B$=null;function Ly(){const e=Yu();if(e!==Zm){Zm=e;try{B$=Nd(e,"<browser-settings>").root}catch{B$=null}}return B$}function Hw(){const e=Ly(),t=e&&!Hr(e)?e.entries?.find(r=>r.key==="width")?.value:void 0;return!t||Hr(t)||t.kind!=="scalar"||typeof t.value!="number"?null:Number.isInteger(t.value)&&t.value>=$h&&t.value<=fh?t.value:null}const Fy=e=>e==="dark"||e==="light";function Ww(){const e=Ly(),t=e&&!Hr(e)?e.entries?.find(r=>r.key==="theme")?.value:void 0;return!t||Hr(t)||t.kind!=="scalar"?null:Fy(t.value)?t.value:null}const Vw="yamlover.theme";function dh(){const e=Ww()??m0??"light";document.documentElement.dataset.theme=e;try{localStorage.setItem(Vw,e)}catch{}}function Yw(e,t){const r=Yu(),n=`${e}: ${t}`,i=new RegExp("^"+e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+":.*$","m");let s=i.test(r)?r.replace(i,n):(r===""||r.endsWith(`
356
+ `)?r:r+`
357
+ `)+n;s.endsWith(`
358
+ `)||(s+=`
359
+ `),Dy(s)}let p0=null,m0=null;function Gw(){Kg().then(e=>{const t=e.settings.width;p0=typeof t=="number"&&Number.isInteger(t)&&t>=$h&&t<=fh?t:null,m0=Fy(e.settings.theme)?e.settings.theme:null,dh()}).catch(()=>{p0=null,m0=null})}function Kw(){return p0}const Xw=/^([a-z][a-z0-9+.-]*:|\/\/|\/|#)/i;function Qw(e){try{return decodeURIComponent(e)}catch{return e}}function jy(e,t){if(!t)return null;const r=e.trim();if(!r||Xw.test(r))return null;const n=r.split(/[?#]/,1)[0],i=jr(t).slice(0,-1);for(const s of n.split("/"))s===""||s==="."||(s===".."?i.pop():i.push(Qw(s)));return i}function By(e,t){if(!t||!e.includes("<a"))return e;const r=document.createElement("template");r.innerHTML=e;for(const n of r.content.querySelectorAll("a[href]")){const i=jy(n.getAttribute("href")||"",t);if(!i)continue;const s=Wn(i);n.setAttribute("href",s),n.setAttribute("data-navpath",s)}return r.innerHTML}function hh(e){return t=>{if(!e||t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;const r=t.target.closest?.("a[data-navpath]");r&&(t.preventDefault(),e(r.getAttribute("data-navpath")))}}const Py=72,_0=20,g0=400,Uy=()=>new URLSearchParams(window.location.search),Zw=e=>Number.isFinite(e)&&e>=_0&&e<=g0;function Pc(){const e=Number(Uy().get("width"));return Zw(e)?e:Hw()??Kw()??Py}function Jw(e){Yw("width",String(e));const t=Uy();t.delete("width"),e!==Py&&t.set("width",String(e));const r=t.toString();window.history.replaceState({},"",window.location.pathname+(r?"?"+r:""))}function Hy({html:e,onNavigate:t}){return ge.jsx("div",{className:"markup",style:{maxWidth:`${Pc()}ch`},onClick:hh(t),dangerouslySetInnerHTML:{__html:e}})}function Go({rerender:e}){const t=Pc(),[r,n]=$t.useState(String(t));$t.useEffect(()=>n(String(t)),[t]);const i=Number(r),s=r.trim()!==""&&Number.isInteger(i)&&i>=_0&&i<=g0;return ge.jsx("input",{className:"markup-width"+(s?"":" invalid"),type:"text",inputMode:"numeric",title:"width, ch",value:r,onChange:l=>{const f=l.target.value;n(f);const h=Number(f);f.trim()!==""&&Number.isInteger(h)&&h>=_0&&h<=g0&&(Jw(h),e())}})}const ph="$yamloverMixed";function Jm(e){const t=e.split(`
360
+ `).find(i=>i.trim().length>0);if(!t||/^\s/.test(t))return JSON.stringify(e);const r=e.endsWith(`
361
+ `)?e.slice(0,-1):e;return[e.endsWith(`
362
+ `)?"|":"|-",...r.split(`
363
+ `).map(i=>i.trim().length?" "+i:"")].join(`
364
+ `)}function Ow(e){return e==null||e==="text/marklower"||e==="text/markdown"||e==="text/x-latex"}function ex(e,t){return e==="string"&&Ow(t)}function mh(e){return e==="x-yamlover-chapter"||e==="x-yamlover-task"}function v0(e,t){return Wn([...jr(e),t])}function tx(e){if(Array.isArray(e))return e.map((r,n)=>({value:r,absIndex:n}));const t=e?.[ph];return t?.entries?t.entries.map((r,n)=>({e:r,i:n})).filter(({e:r})=>r.key==null).map(({e:r,i:n})=>({value:r.value,absIndex:n})):[]}function rx(e){return Array.isArray(e)?e.length:e?.[ph]?.entries?.length??0}function nx(e){const t=i=>mh(Fr(i)?.format)?"subchapter":"chunk";if(Array.isArray(e))return e.map(i=>({kind:t(i),value:i}));const r=e?.[ph];if(!r?.entries)return[];const n=[];for(const i of r.entries)i.key==="title"?n.push({kind:"title",value:i.value}):i.key==="description"?n.push({kind:"description",value:i.value}):i.key==null&&n.push({kind:t(i.value),value:i.value});return n}function Om(e){const t=vi(Fr(e)?.value??e);return typeof t=="string"?t:t==null?"":String(t)}let ix=0;const y0=()=>`ck${ix++}`;function e_(e,t="text/marklower"){return{id:y0(),rev:0,editable:!0,text:e,format:t,concrete:"yamlover",subchapter:!1,marker:null,absIndex:-1}}function sx(e){const r=tx(e.value).map(({value:n,absIndex:i})=>{const s=Fr(n),l=s?.format??null;if(mh(l))return{id:y0(),rev:0,editable:!1,text:"",format:l,concrete:s?.concrete??"yamlover",subchapter:!0,navPath:s?.path,title:s?.title,marker:n,absIndex:i};const f=!s||typeof s.path=="string"&&s.path.startsWith(e.path+"["),h=s?.type,d=f&&ex(h,l);return{id:y0(),rev:0,editable:d,text:d?String(s?.value??n??""):"",format:l,concrete:s?.concrete??"yamlover",subchapter:!1,marker:n,absIndex:i}});return{path:e.path,title:e.title??"",description:e.description??"",chunks:r,entryCount:rx(e.value)}}function t_(e){return{path:e.path,title:e.title,description:e.description,chunks:e.chunks.map(t=>({...t})),entryCount:e.entryCount}}function ax(e,t){const r=[],n=t.path,i=(U,O)=>O?{path:U,op:"emplace",yamlover:JSON.stringify(O)}:{path:U,op:"remove"};let s=0,l=0;for(const U of["title","description"])t[U]!==e[U]&&(r.push(i(v0(n,U),t[U])),!t[U]&&e[U]?s-=1:t[U]&&!e[U]&&(l+=1));const f=t.chunks.map(U=>U.id),h=new Map(t.chunks.map(U=>[U.id,U])),d=new Map(e.chunks.map(U=>[U.id,U])),k=e.chunks.map(U=>({id:U.id,abs:U.absIndex+s}));let C=e.entryCount+s+l;const N=U=>v0(n,U);for(let U=k.length-1;U>=0;U--)if(!h.has(k[U].id)){r.push({path:N(k[U].abs),op:"remove"}),k.splice(U,1);for(let O=U;O<k.length;O++)k[O].abs-=1;C-=1}for(let U=0;U<f.length;U++){const O=f[U];if(k.some(D=>D.id===O))continue;const j=U<k.length?k[U].abs:C;r.push({path:U<k.length?N(j):n,op:"insert",yamlover:Jm(h.get(O).text)});for(let D=U;D<k.length;D++)k[D].abs+=1;k.splice(U,0,{id:O,abs:j}),C+=1}for(let U=0;U<f.length;U++){const O=h.get(f[U]),j=d.get(f[U]);j&&O.editable&&O.text!==j.text&&r.push({path:N(k[U].abs),op:"emplace",yamlover:Jm(O.text)})}return t.chunks.forEach((U,O)=>{U.absIndex=k[O].abs}),t.entryCount=C,r}function Wy({node:e,onNavigate:t}){const{unlocked:r}=zd(),{openAt:n,tagMenu:i}=Wd({onCreate:(l,f,h)=>void Qg(l,f,h).then(d=>t(d.path)).catch(d=>window.alert("create failed: "+d.message))}),s=l=>{l.target.closest(".chunk-body, .editable, a, button, textarea")||(l.preventDefault(),n(e.path,l.clientX,l.clientY,{format:e.format,concrete:e.concrete}))};return ge.jsxs("div",{className:"chapter-page",onContextMenu:s,children:[r?ge.jsx(cx,{initialNode:e,onNavigate:t},e.path):ge.jsx(lx,{node:e,onNavigate:t}),i]})}function lx({node:e,onNavigate:t}){const r=nx(e.value);Sc(e);let n=0;return ge.jsx("div",{className:"chapter",style:{maxWidth:`${Pc()}ch`},children:r.map((i,s)=>{if(i.kind==="title")return ge.jsx("h1",{className:"chapter-title",children:Om(i.value)},s);if(i.kind==="description")return ge.jsx("p",{className:"chapter-subtitle",children:Om(i.value)},s);if(i.kind==="subchapter"){const l=Fr(i.value);return ge.jsx(Vy,{path:l?.path,title:l?.title,onNavigate:t},s)}return ge.jsx(ox,{index:n++,item:i.value,basePath:e.path,documentPath:e.documentPath,onNavigate:t},s)})})}function ox({index:e,item:t,basePath:r,documentPath:n,onNavigate:i}){const s=Gy(t,n),l=rl(s),f=l?.renderChunk?l.renderChunk(s,i):ge.jsx("p",{className:"chapter-prose",children:String(s.value??"")}),h=s.path?co(r,s.path):null;return ge.jsxs("div",{className:"chunk",id:h??void 0,"data-node-path":s.path||void 0,children:[ge.jsx(Yy,{index:e,anchor:h}),ge.jsx("div",{className:"chunk-body",children:f})]})}function Vy({path:e,title:t,onNavigate:r}){return ge.jsx("h2",{className:"chapter-link",children:ge.jsx("a",{className:"descend",href:e??"#",onClick:n=>{n.preventDefault(),e&&r(e)},children:t||"(untitled chapter)"})})}function ux(e){const t=$t.useRef(null);t.current===null&&(t.current=t_(e));const r=$t.useRef(e);r.current=e;const n=$t.useRef(void 0),i=$t.useRef(!1),s=$t.useRef(!1),l=$t.useCallback(async()=>{if(i.current){s.current=!0;return}const f=r.current,h=ax(t.current,f);if(h.length){i.current=!0;try{await Xg(h),t.current=t_(f)}catch(d){window.alert("edit sync failed: "+d.message)}finally{i.current=!1,s.current&&(s.current=!1,l())}}},[]);return $t.useEffect(()=>(n.current&&clearTimeout(n.current),n.current=setTimeout(()=>void l(),500),()=>{n.current&&clearTimeout(n.current)}),[e,l]),$t.useCallback(()=>(n.current&&clearTimeout(n.current),l()),[l])}function cx({initialNode:e,onNavigate:t}){const[r,n]=$t.useState(()=>sx(e)),[i,s]=$t.useState(null),l=ux(r),f=$t.useRef(l);f.current=l,$t.useEffect(()=>()=>void f.current(),[]);const h=$t.useCallback((U,O)=>{n(j=>({...j,chunks:j.chunks.map(D=>D.id===U?{...D,text:O}:D)}))},[]),d=$t.useCallback((U,O,j)=>{n(D=>{const G=D.chunks.findIndex(me=>me.id===U);if(G<0)return D;const de=e_(j,D.chunks[G].format),ne=D.chunks.slice();return ne[G]={...ne[G],text:O,rev:ne[G].rev+1},ne.splice(G+1,0,de),s({id:de.id,at:"start"}),{...D,chunks:ne}})},[]);$t.useCallback(U=>{n(O=>{const j=e_(""),D=O.chunks.slice();return D.splice(U+1,0,j),s({id:j.id,at:"start"}),{...O,chunks:D}})},[]);const k=$t.useCallback(U=>{n(O=>{const j=O.chunks.findIndex(de=>de.id===U);if(j<0||O.chunks.length<=1)return O;const D=O.chunks.slice();D.splice(j,1);const G=D[Math.max(0,j-1)];return G?.editable&&s({id:G.id,at:"end"}),{...O,chunks:D}})},[]),C=$t.useCallback((U,O)=>{n(j=>{const D=j.chunks.findIndex(ne=>ne.id===U),G=O==="up"?D-1:D+1,de=j.chunks[G];return de?.editable&&s({id:de.id,at:O==="up"?"end":"start"}),j})},[]),N=$t.useCallback((U,O)=>{n(j=>{const D=j.chunks.findIndex(le=>le.id===U),G=O==="prev"?D-1:D,de=O==="prev"?D:D+1;if(G<0||de>=j.chunks.length)return j;const ne=j.chunks[G],me=j.chunks[de];if(!ne.editable||!me.editable||!Xm(ne.format)||!Xm(me.format))return j;const Q=Rw(ne.text),be=j.chunks.slice();return be[G]={...ne,text:ne.text+me.text,rev:ne.rev+1},be.splice(de,1),s({id:ne.id,at:Q}),{...j,chunks:be}})},[]);return ge.jsxs("div",{className:"chapter",style:{maxWidth:`${Pc()}ch`},children:[ge.jsx(r_,{as:"h1",className:"chapter-title",placeholder:"Title",value:r.title,onCommit:U=>n(O=>({...O,title:U}))}),ge.jsx(r_,{as:"p",className:"chapter-subtitle",placeholder:"Description",value:r.description,onCommit:U=>n(O=>({...O,description:U}))}),r.chunks.map((U,O)=>U.subchapter?ge.jsx(Vy,{path:U.navPath,title:U.title,onNavigate:t},U.id):ge.jsx($x,{index:O,part:U,basePath:r.path,documentPath:e.documentPath,onNavigate:t,focusAt:i?.id===U.id?i.at:null,onFocused:()=>s(null),onChangeText:j=>h(U.id,j),onSplit:(j,D)=>d(U.id,j,D),onArrowOut:j=>C(U.id,j),onJoinPrev:()=>N(U.id,"prev"),onJoinNext:()=>N(U.id,"next"),onRemove:r.chunks.filter(j=>!j.subchapter).length>1?()=>k(U.id):void 0},U.id))]})}function $x({index:e,part:t,basePath:r,documentPath:n,onNavigate:i,focusAt:s,onFocused:l,onChangeText:f,onSplit:h,onArrowOut:d,onJoinPrev:k,onJoinNext:C,onRemove:N}){const U=v0(r,e),O=co(r,U),j=t.editable?Lw(t.format):null;let D;if(j)D=ge.jsx(j,{text:t.text,rev:t.rev,chapterPath:r,focusAt:s,onFocused:l,onChangeText:f,onSplit:h,onArrowOut:d,onJoinPrev:k,onJoinNext:C});else{const G=Gy(t.marker,n),de=rl(G);D=de?.renderChunk?de.renderChunk(G,i):ge.jsx("p",{className:"chapter-prose",children:String(G.value??"")})}return ge.jsxs("div",{className:"chunk",id:O??void 0,children:[ge.jsx(Yy,{index:e,anchor:O}),ge.jsx("div",{className:"chunk-body",children:D}),j&&N&&ge.jsx("span",{className:"chunk-tools",children:ge.jsx("button",{className:"chunk-tool",title:"Delete this paragraph",onClick:N,children:"🗑"})})]})}function r_({as:e,value:t,onCommit:r,className:n,placeholder:i}){const s=$t.useRef(null),l=$t.useRef(!1),f=e;return $t.useEffect(()=>{s.current&&!l.current&&(s.current.textContent=t)},[t]),ge.jsx(f,{ref:s,className:(n?n+" ":"")+"editable",contentEditable:!0,suppressContentEditableWarning:!0,"data-placeholder":i,onFocus:()=>l.current=!0,onBlur:()=>{l.current=!1,r((s.current?.textContent??"").trim())},onKeyDown:h=>{h.key==="Enter"&&(h.preventDefault(),h.target.blur())}})}function Yy({index:e,anchor:t}){return t?ge.jsxs("a",{className:"chunk-index",href:`#${t}`,children:["§",e]}):ge.jsxs("span",{className:"chunk-index",children:["§",e]})}function Gy(e,t){const r=Fr(e),n=r?r.value:vi(e),i=!r&&typeof n=="string";return{value:n,path:r?.path??"",type:r?.type??"string",format:r?.format??(i?"text/marklower":null),valueType:r?.valueType??"string",hasKeyed:r?.hasKeyed??!1,hasOrdinal:r?.hasOrdinal??!1,documentPath:t}}const fx="$yamloverRef",dx="x-yamlover-workflow";function Ys(e){const t=Fr(e);if(t)return t.path;const r=e?.[fx];return r&&typeof r.path=="string"?r.path:null}function Ky(e){const t=zn(e).find(([n])=>n==="next")?.[1];if(t==null)return[];if(Array.isArray(t))return t.map(Ys).filter(n=>n!=null);const r=Ys(t);return r?[r]:[]}async function hx(e){const t=await un(e,1),r=Ys(zn(t.value).find(([s])=>s==="initial")?.[1]),n=new Set,i=[];for(const[s,l]of zn(t.value)){if(s==="initial"||s==="color")continue;const f=Fr(l);!f||f.format!==Js||n.has(f.path)||(n.add(f.path),i.push({path:f.path,label:Ec(f.path,f.title),color:f.color??null,next:[],initial:f.path===r}))}return await Promise.all(i.map(async s=>{try{s.next=Ky((await un(s.path,2)).value)}catch{}})),i}async function Xy(e,t,r){t!==r&&(t&&await hc(e,t),await Ba({target:e,tag:r}))}async function px(e){const t=e.lastIndexOf(":");if(t<=0)return!1;try{return(await un(e.slice(0,t),0)).format===dx}catch{return!1}}async function b0(e){const t=await un(e,2);return{path:e,label:Ec(e,t.title),color:Fd(t.value),next:Ky(t.value)}}const Ko=(e,t)=>{const r=zn(e).find(([i])=>i===t)?.[1],n=Fr(r)?.value??r;return typeof n=="string"?n:typeof n=="number"?String(n):null};function mx({node:e,onNavigate:t}){const r=ho(Qa),[n,i]=$t.useState(null),s=Ko(e.value,"priority"),l=Ko(e.value,"assignee"),f=Ko(e.value,"due"),h=Ko(e.value,"estimate");$t.useEffect(()=>{let k=!1;return(async()=>{const C=await Zl(e.path).catch(()=>[]);let N=null;for(const U of C){const O=U.tag?.path;if(!O||!await px(O))continue;const j=await b0(O),D=await Promise.all(j.next.map(G=>b0(G)));N={...j,nextStates:D};break}k||i(N)})(),()=>{k=!0}},[e.path,r]);const d=async k=>{n&&await Xy(e.path,n.path,k).catch(()=>{})};return ge.jsxs("div",{className:"task",children:[ge.jsxs("div",{className:"task-strip",children:[n&&ge.jsx("span",{className:"task-state",style:gi(Vn({name:n.label,color:n.color})),children:n.label}),n?.nextStates.map(k=>ge.jsxs("button",{className:"task-advance",style:{borderColor:Vn({name:k.label,color:k.color})},onClick:()=>d(k.path),title:`Move to ${k.label}`,children:["→ ",k.label]},k.path)),s&&ge.jsx("span",{className:"board-chip prio-"+s,children:s}),l&&ge.jsxs("span",{className:"board-chip board-assignee",children:["@",l]}),f&&ge.jsx("span",{className:"board-chip board-due",children:f.slice(0,10)}),h&&ge.jsx("span",{className:"board-chip board-estimate",children:h})]}),ge.jsx(Wy,{node:e,onNavigate:t})]})}function _h(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ea=_h();function Qy(e){ea=e}var Is={exec:()=>null};function oa(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 l=typeof s=="string"?s:s.source;return l=l.replace(en.caret,"$1"),r=r.replace(i,l),n},getRegex:()=>new RegExp(r,t)};return n}var _x=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),en={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:oa(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:oa(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:oa(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:oa(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:oa(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:oa(e=>new RegExp(`^ {0,${e}}>`))},gx=/^(?:[ \t]*(?:\n|$))+/,vx=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,yx=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,_o=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,bx=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,gh=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Zy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Jy=tr(Zy).replace(/bull/g,gh).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(),wx=tr(Zy).replace(/bull/g,gh).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(),vh=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,xx=/^[^\n]+/,yh=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,kx=tr(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",yh).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Sx=tr(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,gh).getRegex(),Uc="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",bh=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ex=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",bh).replace("tag",Uc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Oy=tr(vh).replace("hr",_o).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]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Uc).getRegex(),Ax=tr(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Oy).getRegex(),wh={blockquote:Ax,code:vx,def:kx,fences:yx,heading:bx,hr:_o,html:Ex,lheading:Jy,list:Sx,newline:gx,paragraph:Oy,table:Is,text:xx},n_=tr("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",_o).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",Uc).getRegex(),Cx={...wh,lheading:wx,table:n_,paragraph:tr(vh).replace("hr",_o).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",n_).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Uc).getRegex()},Tx={...wh,html:tr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",bh).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:Is,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:tr(vh).replace("hr",_o).replace("heading",` *#{1,6} *[^
365
+ ]`).replace("lheading",Jy).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Rx=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,zx=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,eb=/^( {2,}|\\)\n(?!\s*$)/,Nx=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,tl=/[\p{P}\p{S}]/u,Hc=/[\s\p{P}\p{S}]/u,xh=/[^\s\p{P}\p{S}]/u,Ix=tr(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Hc).getRegex(),tb=/(?!~)[\p{P}\p{S}]/u,qx=/(?!~)[\s\p{P}\p{S}]/u,Mx=/(?:[^\s\p{P}\p{S}]|~)/u,Dx=tr(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",_x?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),rb=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Lx=tr(rb,"u").replace(/punct/g,tl).getRegex(),Fx=tr(rb,"u").replace(/punct/g,tb).getRegex(),nb="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",jx=tr(nb,"gu").replace(/notPunctSpace/g,xh).replace(/punctSpace/g,Hc).replace(/punct/g,tl).getRegex(),Bx=tr(nb,"gu").replace(/notPunctSpace/g,Mx).replace(/punctSpace/g,qx).replace(/punct/g,tb).getRegex(),Px=tr("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,xh).replace(/punctSpace/g,Hc).replace(/punct/g,tl).getRegex(),Ux=tr(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,tl).getRegex(),Hx="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Wx=tr(Hx,"gu").replace(/notPunctSpace/g,xh).replace(/punctSpace/g,Hc).replace(/punct/g,tl).getRegex(),Vx=tr(/\\(punct)/,"gu").replace(/punct/g,tl).getRegex(),Yx=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(),Gx=tr(bh).replace("(?:-->|$)","-->").getRegex(),Kx=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",Gx).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Gu=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Xx=tr(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Gu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ib=tr(/^!?\[(label)\]\[(ref)\]/).replace("label",Gu).replace("ref",yh).getRegex(),sb=tr(/^!?\[(ref)\](?:\[\])?/).replace("ref",yh).getRegex(),Qx=tr("reflink|nolink(?!\\()","g").replace("reflink",ib).replace("nolink",sb).getRegex(),i_=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,kh={_backpedal:Is,anyPunctuation:Vx,autolink:Yx,blockSkip:Dx,br:eb,code:zx,del:Is,delLDelim:Is,delRDelim:Is,emStrongLDelim:Lx,emStrongRDelimAst:jx,emStrongRDelimUnd:Px,escape:Rx,link:Xx,nolink:sb,punctuation:Ix,reflink:ib,reflinkSearch:Qx,tag:Kx,text:Nx,url:Is},Zx={...kh,link:tr(/^!?\[(label)\]\((.*?)\)/).replace("label",Gu).getRegex(),reflink:tr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Gu).getRegex()},w0={...kh,emStrongRDelimAst:Bx,emStrongLDelim:Fx,delLDelim:Ux,delRDelim:Wx,url:tr(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",i_).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",i_).getRegex()},Jx={...w0,br:tr(eb).replace("{2,}","*").getRegex(),text:tr(w0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Xo={normal:wh,gfm:Cx,pedantic:Tx},$l={normal:kh,gfm:w0,breaks:Jx,pedantic:Zx},Ox={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},s_=e=>Ox[e];function li(e,t){if(t){if(en.escapeTest.test(e))return e.replace(en.escapeReplace,s_)}else if(en.escapeTestNoEncode.test(e))return e.replace(en.escapeReplaceNoEncode,s_);return e}function a_(e){try{e=encodeURI(e).replace(en.percentDecode,"%")}catch{return null}return e}function l_(e,t){let r=e.replace(en.findPipe,(s,l,f)=>{let h=!1,d=l;for(;--d>=0&&f[d]==="\\";)h=!h;return h?"|":" |"}),n=r.split(en.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(en.slashPipe,"|");return n}function Ki(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 o_(e){let t=e.split(`
366
+ `),r=t.length-1;for(;r>=0&&en.blankLine.test(t[r]);)r--;return t.length-r<=2?e:t.slice(0,r+1).join(`
367
+ `)}function e8(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 t8(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 u_(e,t,r,n,i){let s=t.href,l=t.title||null,f=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let h={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:l,text:f,tokens:n.inlineTokens(f)};return n.state.inLink=!1,h}function r8(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
368
+ `).map(s=>{let l=s.match(r.other.beginningSpace);if(l===null)return s;let[f]=l;return f.length>=i.length?s.slice(i.length):s}).join(`
369
+ `)}var Ku=class{options;rules;lexer;constructor(e){this.options=e||ea}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]:o_(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=r8(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=Ki(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:Ki(t[0],`
370
+ `),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:Ki(t[0],`
371
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=Ki(t[0],`
372
+ `).split(`
373
+ `),n="",i="",s=[];for(;r.length>0;){let l=!1,f=[],h;for(h=0;h<r.length;h++)if(this.rules.other.blockquoteStart.test(r[h]))f.push(r[h]),l=!0;else if(!l)f.push(r[h]);else break;r=r.slice(h);let d=f.join(`
374
+ `),k=d.replace(this.rules.other.blockquoteSetextReplace,`
375
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
376
+ ${d}`:d,i=i?`${i}
377
+ ${k}`:k;let C=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(k,s,!0),this.lexer.state.top=C,r.length===0)break;let N=s.at(-1);if(N?.type==="code")break;if(N?.type==="blockquote"){let U=N,O=U.raw+`
378
+ `+r.join(`
379
+ `),j=this.blockquote(O);s[s.length-1]=j,n=n.substring(0,n.length-U.raw.length)+j.raw,i=i.substring(0,i.length-U.text.length)+j.text;break}else if(N?.type==="list"){let U=N,O=U.raw+`
380
+ `+r.join(`
381
+ `),j=this.list(O);s[s.length-1]=j,n=n.substring(0,n.length-N.raw.length)+j.raw,i=i.substring(0,i.length-U.raw.length)+j.raw,r=O.substring(s.at(-1).raw.length).split(`
382
+ `);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),l=!1;for(;e;){let h=!1,d="",k="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;d=t[0],e=e.substring(d.length);let C=t8(t[2].split(`
383
+ `,1)[0],t[1].length),N=e.split(`
384
+ `,1)[0],U=!C.trim(),O=0;if(this.options.pedantic?(O=2,k=C.trimStart()):U?O=t[1].length+1:(O=C.search(this.rules.other.nonSpaceChar),O=O>4?1:O,k=C.slice(O),O+=t[1].length),U&&this.rules.other.blankLine.test(N)&&(d+=N+`
385
+ `,e=e.substring(N.length+1),h=!0),!h){let j=this.rules.other.nextBulletRegex(O),D=this.rules.other.hrRegex(O),G=this.rules.other.fencesBeginRegex(O),de=this.rules.other.headingBeginRegex(O),ne=this.rules.other.htmlBeginRegex(O),me=this.rules.other.blockquoteBeginRegex(O);for(;e;){let Q=e.split(`
386
+ `,1)[0],be;if(N=Q,this.options.pedantic?(N=N.replace(this.rules.other.listReplaceNesting," "),be=N):be=N.replace(this.rules.other.tabCharGlobal," "),G.test(N)||de.test(N)||ne.test(N)||me.test(N)||j.test(N)||D.test(N))break;if(be.search(this.rules.other.nonSpaceChar)>=O||!N.trim())k+=`
387
+ `+be.slice(O);else{if(U||C.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||G.test(C)||de.test(C)||D.test(C))break;k+=`
388
+ `+N}U=!N.trim(),d+=Q+`
389
+ `,e=e.substring(Q.length+1),C=be.slice(O)}}i.loose||(l?i.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(l=!0)),i.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(k),loose:!1,text:k,tokens:[]}),i.raw+=d}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 h of i.items){this.lexer.state.top=!1,h.tokens=this.lexer.blockTokens(h.text,[]);let d=h.tokens[0];if(h.task&&(d?.type==="text"||d?.type==="paragraph")){h.text=h.text.replace(this.rules.other.listReplaceTask,""),d.raw=d.raw.replace(this.rules.other.listReplaceTask,""),d.text=d.text.replace(this.rules.other.listReplaceTask,"");for(let C=this.lexer.inlineQueue.length-1;C>=0;C--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[C].src)){this.lexer.inlineQueue[C].src=this.lexer.inlineQueue[C].src.replace(this.rules.other.listReplaceTask,"");break}let k=this.rules.other.listTaskCheckbox.exec(h.raw);if(k){let C={type:"checkbox",raw:k[0]+" ",checked:k[0]!=="[ ]"};h.checked=C.checked,i.loose?h.tokens[0]&&["paragraph","text"].includes(h.tokens[0].type)&&"tokens"in h.tokens[0]&&h.tokens[0].tokens?(h.tokens[0].raw=C.raw+h.tokens[0].raw,h.tokens[0].text=C.raw+h.tokens[0].text,h.tokens[0].tokens.unshift(C)):h.tokens.unshift({type:"paragraph",raw:C.raw,text:C.raw,tokens:[C]}):h.tokens.unshift(C)}}else h.task&&(h.task=!1);if(!i.loose){let k=h.tokens.filter(N=>N.type==="space"),C=k.length>0&&k.some(N=>this.rules.other.anyLine.test(N.raw));i.loose=C}}if(i.loose)for(let h of i.items){h.loose=!0;for(let d of h.tokens)d.type==="text"&&(d.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let r=o_(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:Ki(t[0],`
390
+ `),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=l_(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
391
+ `):[],s={type:"table",raw:Ki(t[0],`
392
+ `),header:[],align:[],rows:[]};if(r.length===n.length){for(let l of n)this.rules.other.tableAlignRight.test(l)?s.align.push("right"):this.rules.other.tableAlignCenter.test(l)?s.align.push("center"):this.rules.other.tableAlignLeft.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<r.length;l++)s.header.push({text:r[l],tokens:this.lexer.inline(r[l]),header:!0,align:s.align[l]});for(let l of i)s.rows.push(l_(l,s.header.length).map((f,h)=>({text:f,tokens:this.lexer.inline(f),header:!1,align:s.align[h]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let r=t[1].trim();return{type:"heading",raw:Ki(t[0],`
393
+ `),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)===`
394
+ `?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=Ki(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=e8(t[2],"()");if(s===-2)return;if(s>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).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)),u_(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 u_(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,l,f=i,h=0,d=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(n=d.exec(t))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(l=[...s].length,n[3]||n[4]){f+=l;continue}else if((n[5]||n[6])&&i%3&&!((i+l)%3)){h+=l;continue}if(f-=l,f>0)continue;l=Math.min(l,l+f+h);let k=[...n[0]][0].length,C=e.slice(0,i+n.index+k+l);if(Math.min(i,l)%2){let U=C.slice(1,-1);return{type:"em",raw:C,text:U,tokens:this.lexer.inlineTokens(U)}}let N=C.slice(2,-2);return{type:"strong",raw:C,text:N,tokens:this.lexer.inlineTokens(N)}}}}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,l,f=i,h=this.rules.inline.delRDelim;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||(l=[...s].length,l!==i))continue;if(n[3]||n[4]){f+=l;continue}if(f-=l,f>0)continue;l=Math.min(l,l+f);let d=[...n[0]][0].length,k=e.slice(0,i+n.index+d+l),C=k.slice(i,-i);return{type:"del",raw:k,text:C,tokens:this.lexer.inlineTokens(C)}}}}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}}}},ti=class x0{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ea,this.options.tokenizer=this.options.tokenizer||new Ku,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:en,block:Xo.normal,inline:$l.normal};this.options.pedantic?(r.block=Xo.pedantic,r.inline=$l.pedantic):this.options.gfm&&(r.block=Xo.gfm,this.options.breaks?r.inline=$l.breaks:r.inline=$l.gfm),this.tokenizer.rules=r}static get rules(){return{block:Xo,inline:$l}}static lex(t,r){return new x0(r).lex(t)}static lexInline(t,r){return new x0(r).inlineTokens(t)}lex(t){t=t.replace(en.carriageReturn,`
395
+ `),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(en.tabCharGlobal," ").replace(en.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+=`
396
+ `: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(`
397
+ `)?"":`
398
+ `)+s.raw,f.text+=`
399
+ `+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(`
400
+ `)?"":`
401
+ `)+s.raw,f.text+=`
402
+ `+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 l=t;if(this.options.extensions?.startBlock){let f=1/0,h=t.slice(1),d;this.options.extensions.startBlock.forEach(k=>{d=k.call({lexer:this},h),typeof d=="number"&&d>=0&&(f=Math.min(f,d))}),f<1/0&&f>=0&&(l=t.substring(0,f+1))}if(this.state.top&&(s=this.tokenizer.paragraph(l))){let f=r.at(-1);n&&f?.type==="paragraph"?(f.raw+=(f.raw.endsWith(`
403
+ `)?"":`
404
+ `)+s.raw,f.text+=`
405
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(s),n=l.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(`
406
+ `)?"":`
407
+ `)+s.raw,f.text+=`
408
+ `+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 d=Object.keys(this.tokens.links);if(d.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)d.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 l=!1,f="",h=1/0;for(;t;){if(t.length<h)h=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}l||(f=""),l=!1;let d;if(this.options.extensions?.inline?.some(C=>(d=C.call({lexer:this},t,r))?(t=t.substring(d.raw.length),r.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let C=r.at(-1);d.type==="text"&&C?.type==="text"?(C.raw+=d.raw,C.text+=d.text):r.push(d);continue}if(d=this.tokenizer.emStrong(t,n,f)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.del(t,n,f)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),r.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),r.push(d);continue}let k=t;if(this.options.extensions?.startInline){let C=1/0,N=t.slice(1),U;this.options.extensions.startInline.forEach(O=>{U=O.call({lexer:this},N),typeof U=="number"&&U>=0&&(C=Math.min(C,U))}),C<1/0&&C>=0&&(k=t.substring(0,C+1))}if(d=this.tokenizer.inlineText(k)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(f=d.raw.slice(-1)),l=!0;let C=r.at(-1);C?.type==="text"?(C.raw+=d.raw,C.text+=d.text):r.push(d);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)}},Xu=class{options;parser;constructor(e){this.options=e||ea}space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(en.notSpaceStart)?.[0],i=e.replace(en.endingNewline,"")+`
409
+ `;return n?'<pre><code class="language-'+li(n)+'">'+(r?i:li(i,!0))+`</code></pre>
410
+ `:"<pre><code>"+(r?i:li(i,!0))+`</code></pre>
411
+ `}blockquote({tokens:e}){return`<blockquote>
412
+ ${this.parser.parse(e)}</blockquote>
413
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
414
+ `}hr(e){return`<hr>
415
+ `}list(e){let t=e.ordered,r=e.start,n="";for(let l=0;l<e.items.length;l++){let f=e.items[l];n+=this.listitem(f)}let i=t?"ol":"ul",s=t&&r!==1?' start="'+r+'"':"";return"<"+i+s+`>
416
+ `+n+"</"+i+`>
417
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
418
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
419
+ `}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 l=0;l<s.length;l++)r+=this.tablecell(s[l]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
420
+ <thead>
421
+ `+t+`</thead>
422
+ `+n+`</table>
423
+ `}tablerow({text:e}){return`<tr>
424
+ ${e}</tr>
425
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
426
+ `}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>${li(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=a_(e);if(i===null)return n;e=i;let s='<a href="'+e+'"';return t&&(s+=' title="'+li(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=a_(e);if(i===null)return li(r);e=i;let s=`<img src="${e}" alt="${li(r)}"`;return t&&(s+=` title="${li(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:li(e.text)}},Sh=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}},ri=class k0{options;renderer;textRenderer;constructor(t){this.options=t||ea,this.options.renderer=this.options.renderer||new Xu,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Sh}static parse(t,r){return new k0(r).parse(t)}static parseInline(t,r){return new k0(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 l=i,f=this.options.extensions.renderers[l.type].call({parser:this},l);if(f!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.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 l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}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 l=s;switch(l.type){case"escape":{n+=r.text(l);break}case"html":{n+=r.html(l);break}case"link":{n+=r.link(l);break}case"image":{n+=r.image(l);break}case"checkbox":{n+=r.checkbox(l);break}case"strong":{n+=r.strong(l);break}case"em":{n+=r.em(l);break}case"codespan":{n+=r.codespan(l);break}case"br":{n+=r.br(l);break}case"del":{n+=r.del(l);break}case"text":{n+=r.text(l);break}default:{let f='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return n}},vl=class{options;block;constructor(e){this.options=e||ea}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?ti.lex:ti.lexInline}provideParser(e=this.block){return e?ri.parse:ri.parseInline}},ab=class{defaults=_h();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ri;Renderer=Xu;TextRenderer=Sh;Lexer=ti;Tokenizer=Ku;Hooks=vl;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 l of s)r=r.concat(this.walkTokens(l.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 l=i[s].flat(1/0);r=r.concat(this.walkTokens(l,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(...l){let f=i.renderer.apply(this,l);return f===!1&&(f=s.apply(this,l)),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 Xu(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 l=s,f=r.renderer[l],h=i[l];i[l]=(...d)=>{let k=f.apply(i,d);return k===!1&&(k=h.apply(i,d)),k||""}}n.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new Ku(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 l=s,f=r.tokenizer[l],h=i[l];i[l]=(...d)=>{let k=f.apply(i,d);return k===!1&&(k=h.apply(i,d)),k}}n.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new vl;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 l=s,f=r.hooks[l],h=i[l];vl.passThroughHooks.has(s)?i[l]=d=>{if(this.defaults.async&&vl.passThroughHooksRespectAsync.has(s))return(async()=>{let C=await f.call(i,d);return h.call(i,C)})();let k=f.call(i,d);return h.call(i,k)}:i[l]=(...d)=>{if(this.defaults.async)return(async()=>{let C=await f.apply(i,d);return C===!1&&(C=await h.apply(i,d)),C})();let k=f.apply(i,d);return k===!1&&(k=h.apply(i,d)),k}}n.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,s=r.walkTokens;n.walkTokens=function(l){let f=[];return f.push(s.call(this,l)),i&&(f=f.concat(i.call(this,l))),f}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ti.lex(e,t??this.defaults)}parser(e,t){return ri.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 l=i.hooks?await i.hooks.preprocess(t):t,f=await(i.hooks?await i.hooks.provideLexer(e):e?ti.lex:ti.lexInline)(l,i),h=i.hooks?await i.hooks.processAllTokens(f):f;i.walkTokens&&await Promise.all(this.walkTokens(h,i.walkTokens));let d=await(i.hooks?await i.hooks.provideParser(e):e?ri.parse:ri.parseInline)(h,i);return i.hooks?await i.hooks.postprocess(d):d})().catch(s);try{i.hooks&&(t=i.hooks.preprocess(t));let l=(i.hooks?i.hooks.provideLexer(e):e?ti.lex:ti.lexInline)(t,i);i.hooks&&(l=i.hooks.processAllTokens(l)),i.walkTokens&&this.walkTokens(l,i.walkTokens);let f=(i.hooks?i.hooks.provideParser(e):e?ri.parse:ri.parseInline)(l,i);return i.hooks&&(f=i.hooks.postprocess(f)),f}catch(l){return s(l)}}}onError(e,t){return r=>{if(r.message+=`
427
+ Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+li(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},Gs=new ab;function lr(e,t){return Gs.parse(e,t)}lr.options=lr.setOptions=function(e){return Gs.setOptions(e),lr.defaults=Gs.defaults,Qy(lr.defaults),lr};lr.getDefaults=_h;lr.defaults=ea;lr.use=function(...e){return Gs.use(...e),lr.defaults=Gs.defaults,Qy(lr.defaults),lr};lr.walkTokens=function(e,t){return Gs.walkTokens(e,t)};lr.parseInline=Gs.parseInline;lr.Parser=ri;lr.parser=ri.parse;lr.Renderer=Xu;lr.TextRenderer=Sh;lr.Lexer=ti;lr.lexer=ti.lex;lr.Tokenizer=Ku;lr.Hooks=vl;lr.parse=lr;lr.options;lr.setOptions;lr.use;lr.walkTokens;lr.parseInline;ri.parse;ti.lex;const n8=new ab({extensions:[{name:"blockMath",level:"block",start(e){return e.indexOf("$$")},tokenizer(e){const t=/^\$\$([\s\S]+?)\$\$/.exec(e);if(t)return{type:"blockMath",raw:t[0],text:t[1].trim()}},renderer(e){return di(e.text,!0)}},{name:"inlineMath",level:"inline",start(e){return e.indexOf("$")},tokenizer(e){const t=/^\$(?!\s)((?:\\.|[^$\\])+?)(?<!\s)\$(?!\d)/.exec(e);if(t)return{type:"inlineMath",raw:t[0],text:t[1]}},renderer(e){return di(e.text,!1)}}]});function i8(e,t){const r=jy(e,t);return r?Pi(Wn(r)):null}function s8(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=i8(n.getAttribute("src")||"",t);i&&n.setAttribute("src",i)}return r.innerHTML}function lb(e,t){const r=gv(n8.parse(String(e??""),{async:!1}));return By(s8(r,t),t)}function a8({node:e,onNavigate:t}){return Sc(e),ge.jsxs("div",{className:"text",children:[e.title&&ge.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ge.jsx("p",{className:"chapter-subtitle",children:e.description}),ge.jsx(Hy,{html:lb(vi(e.value),e.path),onNavigate:t})]})}function l8({chunk:e,onNavigate:t}){return ge.jsx("div",{className:"markup",onClick:hh(t),dangerouslySetInnerHTML:{__html:lb(e.value,e.documentPath)}})}/**
428
+ * @license Asciidoctor.js 3.0.4 | MIT | https://github.com/asciidoctor/asciidoctor.js
429
+ */(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,l,f,h,d=e.Opal={};d.global=e,d.config={missing_require_severity:"error",unsupported_features_severity:"warning",experimental_features_severity:"warning",enable_stack_trace:!0};var k=Function.prototype.call,C=Function.prototype.bind,N=Object.hasOwn||k.bind(Object.prototype.hasOwnProperty),U=Object.setPrototypeOf,O=k.bind(Array.prototype.slice),j=k.bind(Array.prototype.splice),D=4,G=D;function de(){return G+=2,G}d.uid=de,d.id=function(v){return v.$$is_number?v*2+1:(v.$$id==null&&Q(v,"$$id",de()),v.$$id)};var ne=d.gvars={};d.exit=function(v){ne.DEBUG&&t.log("Exited with status "+v)},d.exceptions=[],d.pop_exception=function(){var v=d.exceptions.pop();v?(ne["!"]=v,ne["@"]=v.$backtrace()):ne["!"]=ne["@"]=r};function me(v,q){if(v||(v=d.Exception||Error),h&&h.$raise)arguments.length>2?h.$raise(v.$new.apply(v,O(arguments,1))):h.$raise(v,q);else throw v.$new?v.$new(q):new v(q)}function Q(v,q,we){typeof v=="string"?v[q]=we:Object.defineProperty(v,q,{value:we,enumerable:!1,configurable:!0,writable:!0})}d.prop=Q,d.defineProperty=d.prop,d.slice=O;var be=d.truthy=function(v){return v!==!1&&r!==v&&v!==void 0&&v!==null&&(!(v instanceof Boolean)||v.valueOf()===!0)};d.falsy=function(v){return!be(v)},d.type_error=function(v,q,we,Me){v=v.$$class,Me&&we?(Me=Me.$$class,me(d.TypeError,"can't convert "+v+" into "+q+" ("+v+"#"+we+" gives "+Me+")")):me(d.TypeError,"no implicit conversion of "+v+" into "+q)},d.coerce_to=function(v,q,we,Me){var Qe;return we==="to_int"&&q===d.Integer&&v.$$is_number?v<0?Math.ceil(v):Math.floor(v):we==="to_str"&&q===d.String&&v.$$is_string||d.is_a(v,q)?v:v["$respond_to?"].$$pristine&&v.$method_missing.$$pristine?(Qe=v[_t(we)],(Qe==null||Qe.$$stub)&&d.type_error(v,q),Qe.apply(v,Me)):(v["$respond_to?"](we)||d.type_error(v,q),Me==null&&(Me=[]),d.send(v,we,Me))},d.respond_to=function(v,q,we){if(v==null||!v.$$class)return!1;we=!!we;var Me=v[q];if(v["$respond_to?"].$$pristine){if(typeof Me=="function"&&!Me.$$stub)return!0;if(!v["$respond_to_missing?"].$$pristine)return d.send(v,v["$respond_to_missing?"],[q.substr(1),we])}else return d.send(v,v["$respond_to?"],[q.substr(1),we])},d.trace_class=!1,d.tracers_for_class=[];function le(v){var q,we,Me;for(q=0,we=d.tracers_for_class.length;q<we;q++)Me=d.tracers_for_class[q],Me.trace_object=v,Me.block.$call(Me)}function Ee(v,q){if(v.$$autoload[q].loaded){if(v.$$autoload[q].loaded&&!v.$$autoload[q].required&&v.$$autoload[q].exception)throw v.$$autoload[q].exception}else{v.$$autoload[q].loaded=!0;try{d.Kernel.$require(v.$$autoload[q].path)}catch(we){throw v.$$autoload[q].exception=we,we}if(v.$$autoload[q].required=!0,v.$$const[q]!=null)return v.$$autoload[q].success=!0,v.$$const[q]}}function te(v,q){if(v){if(v.$$const[q]!=null)return v.$$const[q];if(v.$$autoload&&v.$$autoload[q])return Ee(v,q)}}function Ce(v,q){var we,Me,Qe;if(v.length!==0)for(we=0,Me=v.length;we<Me;we++){if(Qe=v[we].$$const[q],Qe!=null)return Qe;if(v[we].$$autoload&&v[we].$$autoload[q])return Ee(v[we],q)}}function fe(v,q){var we,Me,Qe;if(v!=null)for(Qe=nt(v),we=0,Me=Qe.length;we<Me;we++){if(Qe[we].$$const&&N(Qe[we].$$const,q))return Qe[we].$$const[q];if(Qe[we].$$autoload&&Qe[we].$$autoload[q])return Ee(Qe[we],q)}}function x(v,q){if(v==null||v.$$is_module)return fe(i,q)}function Ae(v,q){return(v||i).$const_missing(q)}d.const_get_local=function(v,q,we){var Me;if(v!=null)return v==="::"&&(v=i),!v.$$is_module&&!v.$$is_class&&me(d.TypeError,v.toString()+" is not a class/module"),Me=te(v,q),Me!=null||we?Me:Ae(v,q)},d.const_get_qualified=function(v,q,we){var Me,Qe,ct,a=d.const_cache_version;if(q==null)return Me=te(i,v),Me??d.const_get_qualified(i,v,we);if(v!=null)return v==="::"&&(v=i),!v.$$is_module&&!v.$$is_class&&me(d.TypeError,v.toString()+" is not a class/module"),(Qe=v.$$const_cache)==null&&(Q(v,"$$const_cache",Object.create(null)),Qe=v.$$const_cache),ct=Qe[q],ct==null||ct[0]!==a?((Me=te(v,q))!=null||(Me=fe(v,q))!=null,Qe[q]=[a,Me]):Me=ct[1],Me!=null||we?Me:Ae(v,q)},d.const_cache_version=1,d.const_get_relative=function(v,q,we){var Me=v[0],Qe,ct=d.const_cache_version,a,oe;return(a=v.$$const_cache)==null&&(Q(v,"$$const_cache",Object.create(null)),a=v.$$const_cache),oe=a[q],oe==null||oe[0]!==ct?((Qe=te(Me,q))!=null||(Qe=Ce(v,q))!=null||(Qe=fe(Me,q))!=null||(Qe=x(Me,q))!=null,a[q]=[ct,Qe]):Qe=oe[1],Qe!=null||we?Qe:Ae(Me,q)};function B(v,q,we){var Me=!0;return(v==null||v==="::")&&(v=i),we.$$is_a_module&&((we.$$name==null||we.$$name===r)&&(we.$$name=q),we.$$base_module==null&&(we.$$base_module=v)),v.$$const=v.$$const||Object.create(null),(q in v.$$const||"$$autoload"in v&&q in v.$$autoload)&&(Me=!1),v.$$const[q]=we,v.$$=v.$$const,d.const_cache_version++,v===i&&(d[q]=we),Q(v,q,we),Me&&v.$const_added&&!v.$const_added.$$pristine&&v.$const_added(q),we}d.const_set=B,d.constants=function(v,q){q==null&&(q=!0);var we,Me=[v],Qe,ct,a={},oe;for(q&&(Me=Me.concat(nt(v))),q&&v.$$is_module&&(Me=Me.concat([d.Object]).concat(nt(d.Object))),Qe=0,ct=Me.length;Qe<ct&&(we=Me[Qe],!(v!==i&&we==i));Qe++){for(oe in we.$$const)a[oe]=!0;if(we.$$autoload)for(oe in we.$$autoload)a[oe]=!0}return Object.keys(a)},d.const_remove=function(v,q){if(d.const_cache_version++,v.$$const[q]!=null){var we=v.$$const[q];return delete v.$$const[q],we}if(v.$$autoload&&v.$$autoload[q])return delete v.$$autoload[q],r;me(d.NameError,"constant "+v+"::"+v.$name()+" not defined")},d.const_get_relative_factory=function(v){return function(q,we){return d.$$(v,q,we)}},d.$$=d.const_get_relative,d.$$$=d.const_get_qualified,d.$r=d.const_get_relative_factory;function he(v,q,we){var Me;if(q!=null&&q.$$bridge?Me=function(){var oe=O(arguments),se=new(C.apply(q.$$constructor,[null].concat(oe)));return U(se,Me.$$prototype),se}:Me=function(){},v&&v!==r&&Q(Me,"displayName","::"+v),Q(Me,"$$name",v),Q(Me,"$$constructor",Me),Q(Me,"$$prototype",Me.prototype),Q(Me,"$$const",{}),Q(Me,"$$is_class",!0),Q(Me,"$$is_a_module",!0),Q(Me,"$$super",q),Q(Me,"$$cvars",{}),Q(Me,"$$own_included_modules",[]),Q(Me,"$$own_prepended_modules",[]),Q(Me,"$$ancestors",[]),Q(Me,"$$ancestors_cache_version",null),Q(Me,"$$subclasses",[]),Q(Me.$$prototype,"$$class",Me),d.Class&&U(Me,d.Class.prototype),q!=null){if(U(Me.$$prototype,q.$$prototype),we!==!0)if(typeof WeakRef<"u"){var Qe,ct,a=[];for(Qe=0;Qe<q.$$subclasses.length;Qe++)ct=q.$$subclasses[Qe],ct.deref()!==void 0&&a.push(ct);a.push(new WeakRef(Me)),q.$$subclasses=a}else q.$$subclasses.push(Me);q.$$meta&&d.build_class_singleton_class(Me)}return Me}d.allocate_class=he;function W(v,q){var we=te(v,q);if(we)return we.$$is_class||me(d.TypeError,q+" is not a class"),we}function Fe(v,q){v.$$super!==q&&me(d.TypeError,"superclass mismatch for class "+v.$$name)}d.klass=function(v,q,we){var Me;v==null||v=="::"?v=i:!v.$$is_class&&!v.$$is_module&&(v=v.$$class),q!=null&&(!q.hasOwnProperty||q.hasOwnProperty&&!q.hasOwnProperty("$$is_class"))&&(q.constructor&&q.constructor.name=="Function"?(Me=q,q=i):me(d.TypeError,"superclass must be a Class ("+(q.constructor&&(q.constructor.name||q.constructor.$$name)||typeof q)+" given)"));var Qe=W(v,we);return Qe!=null?q&&Fe(Qe,q):(q==null&&(q=i),Qe=he(we,q),B(v,we,Qe),q.$inherited&&q.$inherited(Qe),Me&&d.bridge(Me,Qe)),d.trace_class&&le(Qe),Qe};function $e(v){var q=function(){},we=q;return v&&Q(q,"displayName",v+".constructor"),Q(we,"$$name",v),Q(we,"$$prototype",q.prototype),Q(we,"$$const",{}),Q(we,"$$is_module",!0),Q(we,"$$is_a_module",!0),Q(we,"$$cvars",{}),Q(we,"$$iclasses",[]),Q(we,"$$own_included_modules",[]),Q(we,"$$own_prepended_modules",[]),Q(we,"$$ancestors",[we]),Q(we,"$$ancestors_cache_version",null),U(we,d.Module.prototype),we}d.allocate_module=$e;function V(v,q){var we=te(v,q);return we==null&&v===i&&(we=fe(i,q)),we&&!we.$$is_module&&we!==i&&me(d.TypeError,q+" is not a module"),we}d.module=function(v,q){var we;return v==null||v=="::"?v=i:!v.$$is_class&&!v.$$is_module&&(v=v.$$class),we=V(v,q),we==null&&(we=$e(q),B(v,q,we)),d.trace_class&&le(we),we},d.get_singleton_class=function(v){return v.$$is_number&&me(d.TypeError,"can't define singleton"),v.$$meta?v.$$meta:v.hasOwnProperty("$$is_class")?d.build_class_singleton_class(v):v.hasOwnProperty("$$is_module")?d.build_module_singleton_class(v):d.build_object_singleton_class(v)};function w(v,q){v.hasOwnProperty("$$meta")?v.$$meta=q:Q(v,"$$meta",q),v.$$frozen?v.$$meta.$freeze():U(v,q.$$prototype)}d.build_class_singleton_class=function(v){if(v.$$meta)return v.$$meta;var q=v===n?l:d.get_singleton_class(v.$$super),we=he(null,q,!0);return Q(we,"$$is_singleton",!0),Q(we,"$$singleton_of",v),w(v,we),Q(v,"$$class",d.Class),we},d.build_module_singleton_class=function(v){if(v.$$meta)return v.$$meta;var q=he(null,d.Module,!0);return Q(q,"$$is_singleton",!0),Q(q,"$$singleton_of",v),w(v,q),Q(v,"$$class",d.Module),q},d.build_object_singleton_class=function(v){var q=v.$$class,we=he(r,q,!0);return Q(we,"$$is_singleton",!0),Q(we,"$$singleton_of",v),delete we.$$prototype.$$class,w(v,we),we},d.is_method=function(v){return v[0]==="$"&&v[1]!=="$"},d.instance_methods=function(v){for(var q=[],we=[],Me=nt(v),Qe=0,ct=Me.length;Qe<ct;Qe++){var a=Me[Qe],oe=a.$$prototype;oe.hasOwnProperty("$$dummy")&&(oe=oe.$$define_methods_on);for(var se=Object.getOwnPropertyNames(oe),K=0,ye=se.length;K<ye;K++){var y=se[K];if(d.is_method(y)){var X=y.slice(1),Ue=oe[y];Ue.$$stub&&q.indexOf(X)===-1&&q.push(X),!Ue.$$stub&&we.indexOf(X)===-1&&q.indexOf(X)===-1&&we.push(X)}}}return we},d.own_instance_methods=function(v){var q=[],we=v.$$prototype;we.hasOwnProperty("$$dummy")&&(we=we.$$define_methods_on);for(var Me=Object.getOwnPropertyNames(we),Qe=0,ct=Me.length;Qe<ct;Qe++){var a=Me[Qe];if(d.is_method(a)){var oe=we[a];if(!oe.$$stub){var se=a.slice(1);q.push(se)}}}return q},d.methods=function(v){return d.instance_methods(v.$$meta||v.$$class)},d.own_methods=function(v){return v.$$meta?d.own_instance_methods(v.$$meta):[]},d.receiver_methods=function(v){var q=d.get_singleton_class(v),we=d.own_instance_methods(q),Me=d.own_instance_methods(q.$$super);return we.concat(Me)},d.class_variables=function(v){var q=nt(v),we,Me=q.length,Qe={};for(we=Me-1;we>=0;we--){var ct=q[we];for(var a in ct.$$cvars)Qe[a]=ct.$$cvars[a]}return Qe},d.class_variable_set=function(v,q,we){var Me=nt(v),Qe,ct=Me.length;for(Qe=ct-2;Qe>=0;Qe--){var a=Me[Qe];if(N(a.$$cvars,q))return a.$$cvars[q]=we,we}return v.$$cvars[q]=we,we},d.class_variable_get=function(v,q,we){if(N(v.$$cvars,q))return v.$$cvars[q];var Me=nt(v),Qe,ct=Me.length;for(Qe=0;Qe<ct;Qe++){var a=Me[Qe];if(N(a.$$cvars,q))return a.$$cvars[q]}return we||me(d.NameError,"uninitialized class variable "+q+" in "+v.$name()),r};function $(v){return v.hasOwnProperty("$$iclass")&&v.hasOwnProperty("$$root")}function o(v){for(var q=[],we,Me=Object.getPrototypeOf(v.$$prototype);Me&&!Me.hasOwnProperty("$$class");)we=re(Me),we&&q.push(we),Me=Object.getPrototypeOf(Me);return q}function c(v){var q=[],we,Me=Object.getPrototypeOf(v.$$prototype);if(v.$$prototype.hasOwnProperty("$$dummy"))for(;Me&&Me!==v.$$prototype.$$define_methods_on;)we=re(Me),we&&q.push(we),Me=Object.getPrototypeOf(Me);return q}d.append_features=function(v,q){var we=nt(v),Me=[];we.indexOf(q)!==-1&&me(d.ArgumentError,"cyclic include detected");for(var Qe=0,ct=we.length;Qe<ct;Qe++){var a=we[Qe],oe=m(a);Q(oe,"$$included",!0),Me.push(oe)}var se=nt(q),K=T(Me),ye,y;if(se.indexOf(v)===-1)ye=q.$$prototype,y=Object.getPrototypeOf(q.$$prototype);else{for(var X=q.$$prototype,Ue=Object.getPrototypeOf(X);Ue!=null&&!(Ue.$$module===v&&$(Ue));)X=Ue,Ue=Object.getPrototypeOf(Ue);if(Ue){for(var Z=Object.getPrototypeOf(Ue);Z.hasOwnProperty("$$iclass")&&!$(Z);)Z=Object.getPrototypeOf(Z);ye=X,y=Z}else ye=q.$$prototype,y=Object.getPrototypeOf(q.$$prototype)}U(ye,K.first),U(K.last,y),q.$$own_included_modules=o(q),d.const_cache_version++},d.prepend_features=function(v,q){var we=nt(v),Me=[];we.indexOf(q)!==-1&&me(d.ArgumentError,"cyclic prepend detected");for(var Qe=0,ct=we.length;Qe<ct;Qe++){var a=we[Qe],oe=m(a);Q(oe,"$$prepended",!0),Me.push(oe)}var se=T(Me),K=q.$$prototype,ye=Object.getPrototypeOf(K),y,X,Ue;K.hasOwnProperty("$$dummy")?y=K.$$define_methods_on:(y=E(q),p(q),Q(K,"$$dummy",!0),Q(K,"$$define_methods_on",y),U(K,y),U(y,ye));var Z=nt(q);if(Z.indexOf(v)===-1)for(X=K,Ue=Object.getPrototypeOf(K);Ue!=null&&!(Ue.hasOwnProperty("$$root")||Ue===y||!Ue.hasOwnProperty("$$iclass"));)Ue=Object.getPrototypeOf(Ue);else me(d.RuntimeError,"Prepending a module multiple times is not supported");U(X,se.first),U(se.last,Ue),q.$$own_prepended_modules=c(q),d.const_cache_version++};function p(v){for(var q=v.$$prototype,we=Object.getOwnPropertyNames(q),Me=0;Me<we.length;Me++){var Qe=we[Me];d.is_method(Qe)&&delete q[Qe]}}function m(v){var q=E(v);return v.$$is_module&&v.$$iclasses.push(q),q}function E(v){var q={},we=v.$$prototype;we.hasOwnProperty("$$dummy")&&(we=we.$$define_methods_on);var Me=Object.getOwnPropertyNames(we),Qe=Me.length,ct;for(ct=0;ct<Qe;ct++){var a=Me[ct];Q(q,a,we[a])}return Q(q,"$$iclass",!0),Q(q,"$$module",v),q}function T(v){var q=v.length,we=v[0];if(Q(we,"$$root",!0),q===1)return{first:we,last:we};for(var Me=we,Qe=1;Qe<q;Qe++){var ct=v[Qe];U(Me,ct),Me=ct}return{first:v[0],last:v[q-1]}}d.bridge=function(v,q){v.hasOwnProperty("$$bridge")&&me(d.ArgumentError,"already bridged"),Q(v,"$$bridge",q),U(v.prototype,(q.$$super||d.Object).$$prototype),Q(q,"$$prototype",v.prototype),Q(q.$$prototype,"$$class",q),Q(q,"$$constructor",v),Q(q,"$$bridge",!0)};function re(v){if(!v.hasOwnProperty("$$dummy")){if(v.hasOwnProperty("$$iclass"))return v.$$module;if(v.hasOwnProperty("$$class"))return v.$$class}}function je(v){return v.$$own_prepended_modules.concat([v]).concat(v.$$own_included_modules)}function nt(v){if(!v)return[];if(v.$$ancestors_cache_version===d.const_cache_version)return v.$$ancestors;var q=[],we,Me,Qe;for(we=0,Me=je(v),Qe=Me.length;we<Qe;we++)q.push(Me[we]);if(v.$$super)for(we=0,Me=nt(v.$$super),Qe=Me.length;we<Qe;we++)q.push(Me[we]);return v.$$ancestors_cache_version=d.const_cache_version,v.$$ancestors=q,q}d.ancestors=nt,d.included_modules=function(v){for(var q=[],we=null,Me=Object.getPrototypeOf(v.$$prototype);Me&&Object.getPrototypeOf(Me);Me=Object.getPrototypeOf(Me))we=re(Me),we&&we.$$is_module&&Me.$$iclass&&Me.$$included&&q.push(we);return q},d.add_stubs=function(v){var q=d.BasicObject.$$prototype,we,Me;v=v.split(",");for(var Qe=0,ct=v.length;Qe<ct;Qe++)we=_t(v[Qe]),Me=q[we],(Me==null||Me.$$stub)&&d.add_stub_for(q,we)},d.add_stub_for=function(v,q){Q(v,q,d.stub_for(q))},d.stub_for=function(v){function q(){this.$method_missing.$$p=q.$$p,q.$$p=null;for(var we=new Array(arguments.length),Me=0,Qe=we.length;Me<Qe;Me++)we[Me]=arguments[Me];return this.$method_missing.apply(this,[v.slice(1)].concat(we))}return q.$$stub=!0,q},d.ac=function(v,q,we,Me){var Qe="";we.$$is_a_module?Qe+=we.$$name+".":Qe+=we.$$class.$$name+"#",Qe+=Me,me(d.ArgumentError,"["+Qe+"] wrong number of arguments (given "+v+", expected "+q+")")},d.block_ac=function(v,q,we){var Me="`block in "+we+"'";me(d.ArgumentError,Me+": wrong number of arguments (given "+v+", expected "+q+")")};function ft(v){return v.hasOwnProperty("$$meta")&&v.$$meta!==null?nt(v.$$meta):nt(v.$$class)}d.find_super=function(v,q,we,Me,Qe){var ct=_t(q),a,oe;a=ft(v);for(var se=a.indexOf(we.$$owner),K=se+1;K<a.length;K++){var ye=a[K],y=ye.$$prototype;if(y.hasOwnProperty("$$dummy")&&(y=y.$$define_methods_on),y.hasOwnProperty(ct)){oe=y[ct];break}}return!Me&&oe&&oe.$$stub&&v.$method_missing.$$pristine&&me(d.NoMethodError,"super: no superclass method `"+q+"' for "+v,q),oe.$$stub&&!Qe?null:oe},d.find_block_super=function(v,q,we,Me,Qe){var ct=q;return we||me(d.RuntimeError,"super called outside of method"),Qe&&we.$$define_meth&&me(d.RuntimeError,"implicit argument passing of super from method defined by define_method() is not supported. Specify all arguments explicitly"),we.$$def&&(ct=we.$$jsid),d.find_super(v,ct,we,Me)},d.find_super_dispatcher=d.find_super,d.find_iter_super_dispatcher=d.find_block_super,d.yield1=function(v,q){typeof v!="function"&&me(d.LocalJumpError,"no block given");var we=v.$$has_top_level_mlhs_arg,Me=v.$$has_trailing_comma_in_args;return(v.length>1||(we||Me)&&v.length===1)&&(q=d.to_ary(q)),(v.length>1||Me&&v.length===1)&&q.$$is_array?v.apply(null,q):v(q)},d.yieldX=function(v,q){if(typeof v!="function"&&me(d.LocalJumpError,"no block given"),v.length>1&&q.length===1&&q[0].$$is_array)return v.apply(null,q[0]);if(!q.$$is_array){for(var we=new Array(q.length),Me=0,Qe=we.length;Me<Qe;Me++)we[Me]=q[Me];return v.apply(null,we)}return v.apply(null,q)},d.rescue=function(v,q){for(var we=0;we<q.length;we++){var Me=q[we];if(Me.$$is_array){var Qe=d.rescue(v,Me);if(Qe)return Qe}else if(Me===d.JS.Error||Me["$==="](v))return Me}return null},d.is_a=function(v,q){if(q!=null&&v.$$meta===q||v.$$class===q)return!0;if(v.$$is_number&&q.$$is_number_class)return q.$$is_integer_class?v%1===0:!0;var we=nt(v.$$is_class?d.get_singleton_class(v):v.$$meta||v.$$class);return we.indexOf(q)!==-1},d.to_hash=function(v){if(v.$$is_hash)return v;if(v["$respond_to?"]("to_hash",!0)){var q=v.$to_hash();if(q.$$is_hash)return q;me(d.TypeError,"Can't convert "+v.$$class+" to Hash ("+v.$$class+"#to_hash gives "+q.$$class+")")}else me(d.TypeError,"no implicit conversion of "+v.$$class+" into Hash")},d.to_ary=function(v){if(v.$$is_array)return v;if(v["$respond_to?"]("to_ary",!0)){var q=v.$to_ary();if(q===r)return[v];if(q.$$is_array)return q;me(d.TypeError,"Can't convert "+v.$$class+" to Array ("+v.$$class+"#to_ary gives "+q.$$class+")")}else return[v]},d.to_a=function(v){if(v.$$is_array)return v.slice();if(v["$respond_to?"]("to_a",!0)){var q=v.$to_a();if(q===r)return[v];if(q.$$is_array)return q;me(d.TypeError,"Can't convert "+v.$$class+" to Array ("+v.$$class+"#to_a gives "+q.$$class+")")}else return[v]},d.extract_kwargs=function(v){var q=v[v.length-1];if(q!=null&&d.respond_to(q,"$to_hash",!0))return j(v,v.length-1),q},d.kwrestargs=function(v,q){var we=[],Me={},Qe,ct=v.$$smap;for(Qe in ct)q[Qe]||(we.push(Qe),Me[Qe]=ct[Qe]);return d.hash2(we,Me)};function yt(v,q){typeof q=="number"?v.$$arity=q:typeof q=="object"&&Object.assign(v,q)}var zt={};function _t(v){return zt[v]||(zt[v]="$"+v)}d.jsid=_t,d.send=function(v,q,we,Me,Qe){var ct;return typeof q=="function"?(ct=q,q=null):typeof q=="string"?ct=v[_t(q)]:me(d.NameError,"Passed method should be a string or a function"),d.send2(v,ct,q,we,Me,Qe)},d.send2=function(v,q,we,Me,Qe,ct){return q==null&&we!=null&&v.$method_missing&&(q=v.$method_missing,Me=[we].concat(Me)),yt(Qe,ct),typeof Qe=="function"&&(q.$$p=Qe),q.apply(v,Me)},d.refined_send=function(v,q,we,Me,Qe,ct){var a,oe,se,K,ye,y,X,Ue,Z,qe;for(K=ft(q),a=0;a<K.length;a++)for(ye=d.id(K[a]),oe=0;oe<v.length;oe++)for(y=v[oe],se=y.length-1;se>=0;se--)if(X=y[se],!(typeof X.$$refine_modules>"u")&&(Ue=X.$$refine_modules,!(typeof Ue[ye]>"u")&&(Z=Ue[ye],typeof Z.$$prototype[_t(we)]<"u")))return qe=Z.$$prototype[_t(we)],d.send2(q,qe,we,Me,Qe,ct);return d.send(q,we,Me,Qe,ct)},d.lambda=function(v,q){return v.$$is_lambda=!0,yt(v,q),v},d.def=function(v,q,we,Me){return yt(we,Me),v===d.top?d.defn(d.Object,q,we):!v.$$eval&&v.$$is_a_module?d.defn(v,q,we):d.defs(v,q,we)},d.defn=function(v,q,we){wt(v),we.displayName=q,we.$$owner=v;var Me=q.substr(1),Qe=v.$$prototype;if(Qe.hasOwnProperty("$$dummy")&&(Qe=Qe.$$define_methods_on),Q(Qe,q,we),v.$$is_module){v.$$module_function&&d.defs(v,q,we);for(var ct=0,a=v.$$iclasses,oe=a.length;ct<oe;ct++){var se=a[ct];Q(se,q,we)}}var K=v.$$singleton_of;return v.$method_added&&!v.$method_added.$$stub&&!K?v.$method_added(Me):K&&K.$singleton_method_added&&!K.$singleton_method_added.$$stub&&K.$singleton_method_added(Me),Me},d.defs=function(v,q,we,Me){return yt(we,Me),(v.$$is_string||v.$$is_number)&&me(d.TypeError,"can't define singleton"),d.defn(d.get_singleton_class(v),q,we)},d.rdef=function(v,q){N(v.$$prototype,q)||me(d.NameError,"method '"+q.substr(1)+"' not defined in "+v.$name()),delete v.$$prototype[q],v.$$is_singleton?v.$$prototype.$singleton_method_removed&&!v.$$prototype.$singleton_method_removed.$$stub&&v.$$prototype.$singleton_method_removed(q.substr(1)):v.$method_removed&&!v.$method_removed.$$stub&&v.$method_removed(q.substr(1))},d.udef=function(v,q){(!v.$$prototype[q]||v.$$prototype[q].$$stub)&&me(d.NameError,"method '"+q.substr(1)+"' not defined in "+v.$name()),d.add_stub_for(v.$$prototype,q),v.$$is_singleton?v.$$prototype.$singleton_method_undefined&&!v.$$prototype.$singleton_method_undefined.$$stub&&v.$$prototype.$singleton_method_undefined(q.substr(1)):v.$method_undefined&&!v.$method_undefined.$$stub&&v.$method_undefined(q.substr(1))};function vt(v){return typeof v=="function"&&!v.$$stub}d.alias=function(v,q,we){var Me=_t(q),Qe=_t(we),ct,a;if(typeof v.$$prototype>"u"&&(v=d.Object),ct=v.$$prototype[Qe],v.$$eval)return d.alias(d.get_singleton_class(v),q,we);if(!vt(ct)){for(var oe=v.$$super;typeof ct!="function"&&oe;)ct=oe[Qe],oe=oe.$$super;!vt(ct)&&v.$$is_module&&(ct=d.Object.$$prototype[Qe]),vt(ct)||me(d.NameError,"undefined method `"+we+"' for class `"+v.$name()+"'")}ct.$$alias_of&&(ct=ct.$$alias_of),a=function(){var se=a.$$p,K,ye,y;for(K=new Array(arguments.length),ye=0,y=arguments.length;ye<y;ye++)K[ye]=arguments[ye];return a.$$p=null,d.send(this,ct,K,se)};try{Object.defineProperty(a,"length",{value:ct.length})}catch{}return a.displayName=q,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=q,d.defn(v,Me,a),v},d.alias_gvar=function(v,q){return Object.defineProperty(ne,v,{configurable:!0,enumerable:!0,get:function(){return ne[q]},set:function(we){ne[q]=we}}),r},d.alias_native=function(v,q,we){var Me=_t(q),Qe=v.$$prototype[we];return(typeof Qe!="function"||Qe.$$stub)&&me(d.NameError,"undefined native method `"+we+"' for class `"+v.$name()+"'"),d.defn(v,Me,Qe),v},d.hash_init=function(v){v.$$smap=Object.create(null),v.$$map=Object.create(null),v.$$keys=[]},d.hash_clone=function(v,q){q.$$none=v.$$none,q.$$proc=v.$$proc;for(var we=0,Me=v.$$keys,Qe=v.$$smap,ct=Me.length,a,oe;we<ct;we++)a=Me[we],a.$$is_string?oe=Qe[a]:(oe=a.value,a=a.key),d.hash_put(q,a,oe)},d.hash_put=function(v,q,we){if(q.$$is_string){N(v.$$smap,q)||v.$$keys.push(q),v.$$smap[q]=we;return}var Me,Qe,ct;if(Me=v.$$by_identity?d.id(q):q.$hash(),!N(v.$$map,Me)){Qe={key:q,key_hash:Me,value:we},v.$$keys.push(Qe),v.$$map[Me]=Qe;return}for(Qe=v.$$map[Me];Qe;){if(q===Qe.key||q["$eql?"](Qe.key)){ct=void 0,Qe.value=we;break}ct=Qe,Qe=Qe.next}ct&&(Qe={key:q,key_hash:Me,value:we},v.$$keys.push(Qe),ct.next=Qe)},d.hash_get=function(v,q){if(q.$$is_string)return N(v.$$smap,q)?v.$$smap[q]:void 0;var we,Me;if(we=v.$$by_identity?d.id(q):q.$hash(),N(v.$$map,we))for(Me=v.$$map[we];Me;){if(q===Me.key||q["$eql?"](Me.key))return Me.value;Me=Me.next}},d.hash_delete=function(v,q){var we,Me=v.$$keys,Qe=Me.length,ct,a;if(q.$$is_string){if(typeof q!="string"&&(q=q.valueOf()),!N(v.$$smap,q))return;for(we=0;we<Qe;we++)if(a=Me[we],a.$$is_string&&typeof a!="string"&&(a=a.valueOf()),a===q){Me.splice(we,1);break}return ct=v.$$smap[q],delete v.$$smap[q],ct}var oe=q.$hash();if(N(v.$$map,oe))for(var se=v.$$map[oe],K;se;){if(q===se.key||q["$eql?"](se.key)){for(ct=se.value,we=0;we<Qe;we++)if(Me[we]===se){Me.splice(we,1);break}return K&&se.next?K.next=se.next:K?delete K.next:se.next?v.$$map[oe]=se.next:delete v.$$map[oe],ct}K=se,se=se.next}},d.hash_rehash=function(v){for(var q=0,we=v.$$keys.length,Me,Qe,ct;q<we;q++)if(!v.$$keys[q].$$is_string&&(Me=v.$$keys[q].key.$hash(),Me!==v.$$keys[q].key_hash)){for(Qe=v.$$map[v.$$keys[q].key_hash],ct=void 0;Qe;){if(Qe===v.$$keys[q]){ct&&Qe.next?ct.next=Qe.next:ct?delete ct.next:Qe.next?v.$$map[v.$$keys[q].key_hash]=Qe.next:delete v.$$map[v.$$keys[q].key_hash];break}ct=Qe,Qe=Qe.next}if(v.$$keys[q].key_hash=Me,!N(v.$$map,Me)){v.$$map[Me]=v.$$keys[q];continue}for(Qe=v.$$map[Me],ct=void 0;Qe;){if(Qe===v.$$keys[q]){ct=void 0;break}ct=Qe,Qe=Qe.next}ct&&(ct.next=v.$$keys[q])}},d.hash=function(){var v=arguments.length,q,we,Me,Qe,ct,a;if(v===1&&arguments[0].$$is_hash)return arguments[0];if(we=new d.Hash,d.hash_init(we),v===1)if(q=arguments[0],arguments[0].$$is_array){for(Qe=q.length,Me=0;Me<Qe;Me++)q[Me].length!==2&&me(d.ArgumentError,"value not of length 2: "+q[Me].$inspect()),ct=q[Me][0],a=q[Me][1],d.hash_put(we,ct,a);return we}else{q=arguments[0];for(ct in q)N(q,ct)&&(a=q[ct],d.hash_put(we,ct,a));return we}for(v%2!==0&&me(d.ArgumentError,"odd number of arguments for Hash"),Me=0;Me<v;Me+=2)ct=arguments[Me],a=arguments[Me+1],d.hash_put(we,ct,a);return we},d.hash2=function(v,q){var we=new d.Hash;return we.$$smap=q,we.$$map=Object.create(null),we.$$keys=v,we},d.range=function(v,q,we){var Me=new d.Range;return Me.begin=v,Me.end=q,Me.excl=we,Me};var mt=["constructor","displayName","__count__","__noSuchMethod__","__parent__","__proto__","hasOwnProperty","valueOf"];d.ivar=function(v){return mt.indexOf(v)!==-1&&(v+="$"),v};function wt(v){v.$$frozen&&me(d.FrozenError,"can't modify frozen "+v.$class()+": "+v,d.hash2(["receiver"],{receiver:v}))}d.deny_frozen_access=wt,d.freeze=function(v){return Q(v,"$$frozen",!0),v.hasOwnProperty("$$id")||Q(v,"$$id",de()),v.hasOwnProperty("$$meta")?v.$$meta.$freeze():Q(v,"$$meta",null),v.hasOwnProperty("$$comparable")||Q(v,"$$comparable",null),Object.seal(v),v},d.freeze_props=function(v){var q,we,Me;for(q in v)we=typeof q,!((we==="string"||we==="object")&&q[0]==="$")&&(Me=Object.getOwnPropertyDescriptor(v,q),Me&&Me.enumerable&&Me.writable&&function(){var Qe=v[q];Object.defineProperty(v,q,{get:function(){return Qe},set:function(ct){wt(v)},enumerable:!0})}())},d.escape_regexp=function(v){return v.replace(/([-[\]\/{}()*+?.^$\\| ])/g,"\\$1").replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r").replace(/[\f]/g,"\\f").replace(/[\t]/g,"\\t")},d.global_regexp=function(v){return v.global?v:(v.$$g==null?v.$$g=new RegExp(v.source,(v.multiline?"gm":"g")+(v.ignoreCase?"i":"")):v.$$g.lastIndex=null,v.$$g)},d.global_multiline_regexp=function(v){var q,we;return v.global&&v.multiline?v:(we="gm"+(v.ignoreCase?"i":""),v.multiline?(v.$$g==null&&(v.$$g=new RegExp(v.source,we)),q=v.$$g):(v.$$gm==null&&(v.$$gm=new RegExp(v.source,we)),q=v.$$gm),q.lastIndex=null,q)},d.regexp=function(v,q){for(var we,Me=typeof q<"u"&&q&&q.indexOf("i")>=0,Qe=0,ct=v.length;Qe<ct;Qe++)we=v[Qe],we instanceof RegExp&&(we.ignoreCase!==Me&&d.Kernel.$warn("ignore case doesn't match for "+we.source.$inspect(),d.hash({uplevel:1})),we=we.source),we===""&&(we="(?:"+we+")"),v[Qe]=we;return q?new RegExp(v.join(""),q):new RegExp(v.join(""))},d.modules={},d.loaded_features=["corelib/runtime"],d.current_dir=".",d.require_table={"corelib/runtime":!0},d.normalize=function(v){var q,we,Me=[],Qe="/";d.current_dir!=="."&&(v=d.current_dir.replace(/\/*$/,"/")+v),v=v.replace(/^\.\//,""),v=v.replace(/\.(rb|opal|js)$/,""),q=v.split(Qe);for(var ct=0,a=q.length;ct<a;ct++)we=q[ct],we!==""&&(we===".."?Me.pop():Me.push(we));return Me.join(Qe)},d.loaded=function(v){var q,we,Me;for(q=0,we=v.length;q<we;q++)Me=d.normalize(v[q]),!d.require_table[Me]&&(d.loaded_features.push(Me),d.require_table[Me]=!0)},d.load_normalized=function(v){d.loaded([v]);var q=d.modules[v];if(q){var we=q(d);if(typeof Promise<"u"&&we instanceof Promise)return we.then(De(!0))}else{var Me=d.config.missing_require_severity,Qe="cannot load such file -- "+v;Me==="error"?me(d.LoadError,Qe):Me==="warning"&&t.warn("WARNING: LoadError: "+Qe)}return!0},d.load=function(v){return v=d.normalize(v),d.load_normalized(v)},d.require=function(v){return v=d.normalize(v),d.require_table[v]?!1:d.load_normalized(v)},d.encodings=Object.create(null),d.set_encoding=function(v,q,we){typeof we>"u"&&(we="encoding"),(typeof v=="string"||v.$$frozen===!0)&&me(d.FrozenError,"can't modify frozen String");var Me=d.find_encoding(q);return Me===v[we]||(v[we]=Me),v},d.find_encoding=function(v){var q=d.encodings,we=q[v]||q[v.toUpperCase()];return we||me(d.ArgumentError,"unknown encoding name - "+v),we},d.enc=function(v,q){var we=new String(v);return we=d.set_encoding(we,q),we.internal_encoding=we.encoding,we},d.binary=function(v){var q=new String(v);return d.set_encoding(q,"binary","internal_encoding")},d.last_promise=null,d.promise_unhandled_exception=!1,d.queue=function(v){if(d.last_promise)return d.last_promise=d.last_promise.then(function(){if(!d.promise_unhandled_exception)return v(d)}).catch(function(we){d.respond_to(we,"$full_message")&&(we=we.$full_message()),t.error(we),d.promise_unhandled_exception=!0,d.exit(1)}),d.last_promise;var q=v(d);return typeof Promise=="function"&&typeof q=="object"&&q instanceof Promise&&(d.last_promise=q),q};function St(v,q){return typeof v=="number"&&typeof q=="number"}d.rb_plus=function(v,q){return St(v,q)?v+q:v["$+"](q)},d.rb_minus=function(v,q){return St(v,q)?v-q:v["$-"](q)},d.rb_times=function(v,q){return St(v,q)?v*q:v["$*"](q)},d.rb_divide=function(v,q){return St(v,q)?v/q:v["$/"](q)},d.rb_lt=function(v,q){return St(v,q)?v<q:v["$<"](q)},d.rb_gt=function(v,q){return St(v,q)?v>q:v["$>"](q)},d.rb_le=function(v,q){return St(v,q)?v<=q:v["$<="](q)},d.rb_ge=function(v,q){return St(v,q)?v>=q:v["$>="](q)};function Oe(v,q){return typeof v=="number"&&typeof q=="number"||typeof v=="string"&&typeof q=="string"}function ze(v,q){return Oe(v,q)?v===q:be(v["$=="](q))}d.eqeq=ze,d.eqeqeq=function(v,q){return Oe(v,q)?v===q:be(v["$==="](q))},d.neqeq=function(v,q){return Oe(v,q)?v!==q:be(v["$!="](q))},d.not=function(v){return v==null||v===!1||r===v?!0:v===!0||v["$!"].$$pristine?!1:be(v["$!"]())};function De(v){return function(){return v}}d.return_val=De,d.return_self=function(){return this},d.return_ivar=function(v){return function(){return this[v]==null?r:this[v]}},d.assign_ivar=function(v){return function(q){return wt(this),this[v]=q}},d.assign_ivar_val=function(v,q){return function(){return wt(this),this[v]=q}},d.ensure_kwargs=function(v){if(v==null)return d.hash2([],{});if(v.$$is_hash)return v;me(d.ArgumentError,"expected kwargs")},d.get_kwarg=function(v,q){return N(v.$$smap,q)||me(d.ArgumentError,"missing keyword: "+q),v.$$smap[q]},d.large_array_unpack=function(v){var q=v.split(","),we=q.length,Me;for(Me=0;Me<we;Me++)switch(q[Me][0]){case void 0:q[Me]=r;break;case"-":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":q[Me]=+q[Me]}return q},d.BasicObject=n=he("BasicObject",null),d.Object=i=he("Object",d.BasicObject),d.Module=s=he("Module",d.Object),d.Class=l=he("Class",d.Module),d.Opal=f=$e("Opal"),d.Kernel=h=$e("Kernel"),U(d.BasicObject,d.Class.$$prototype),U(d.Object,d.Class.$$prototype),U(d.Module,d.Class.$$prototype),U(d.Class,d.Class.$$prototype),n.$$const.BasicObject=n,B(i,"BasicObject",n),B(i,"Object",i),B(i,"Module",s),B(i,"Class",l),B(i,"Opal",f),B(i,"Kernel",h),n.$$class=l,i.$$class=l,s.$$class=l,l.$$class=l,f.$$class=s,h.$$class=s,Q(i.$$prototype,"toString",function(){var v=this.$to_s();return v.$$is_string&&typeof v=="object"?v.valueOf():v}),Q(i.$$prototype,"$require",d.require),d.top=new i,d.top.$to_s=d.top.$inspect=De("main"),d.top.$define_method=Ge;function Ge(){var v=O(arguments),q=Ge.$$p;return Ge.$$p=null,d.send(i,"define_method",v,q)}d.NilClass=he("NilClass",d.Object),B(i,"NilClass",d.NilClass),r=d.nil=new d.NilClass,r.$$id=D,r.call=r.apply=function(){me(d.LocalJumpError,"no block given")},r.$$frozen=!0,r.$$comparable=!1,Object.seal(r),d.thrower=function(v){var q=new Error("unexpected "+v);return q.$thrower_type=v,q.$throw=function(we){throw we==null&&(we=r),q.$v=we,q},q},d.t_eval_return=d.thrower("return"),TypeError.$$super=Error,d.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,l=e.eqeqeq,f=e.Kernel,h=e.truthy,d=e.Opal,k=e.nil,C=e.$$$;return e.add_stubs("===,raise,respond_to?,nil?,__send__,<=>,class,coerce_to!,new,to_s,__id__"),function(N){var U=n(N,"Opal");i(U,"$bridge",function(D,G){return e.bridge(D,G)}),i(U,"$coerce_to!",function(D,G,de,ne){var me,Q,be=k;return me=s(arguments,3),Q=me,be=r(D,G,de,Q),l(G,be)||f.$raise(t(D,G,de,be)),be},-4),i(U,"$coerce_to?",function(D,G,de,ne){var me,Q,be=k;return me=s(arguments,3),Q=me,!h(D["$respond_to?"](de))||(be=r(D,G,de,Q),h(be["$nil?"]()))?k:(l(G,be)||f.$raise(t(D,G,de,be)),be)},-4),i(U,"$try_convert",function(D,G,de){return l(G,D)?D:h(D["$respond_to?"](de))?D.$__send__(de):k}),i(U,"$compare",function(D,G){var de=k;return de=D["$<=>"](G),h(de===k)&&f.$raise(C("ArgumentError"),"comparison of "+D.$class()+" with "+G.$class()+" failed"),de}),i(U,"$destructure",function(D){if(D.length==1)return D[0];if(D.$$is_array)return D;for(var G=new Array(D.length),de=0,ne=G.length;de<ne;de++)G[de]=D[de];return G}),i(U,"$respond_to?",function(D,G,de){return de==null&&(de=!1),D==null||!D.$$class?!1:D["$respond_to?"](G,de)},-3),i(U,"$instance_variable_name!",function(D){return D=d["$coerce_to!"](D,C("String"),"to_str"),h(/^@[a-zA-Z_][a-zA-Z0-9_]*?$/.test(D))||f.$raise(C("NameError").$new("'"+D+"' is not allowed as an instance variable name",D)),D}),i(U,"$class_variable_name!",function(D){return D=d["$coerce_to!"](D,C("String"),"to_str"),h(D.length<3||D.slice(0,2)!=="@@")&&f.$raise(C("NameError").$new("`"+D+"' is not allowed as a class variable name",D)),D}),i(U,"$const_name?",function(D){return typeof D!="string"&&(D=d["$coerce_to!"](D,C("String"),"to_str")),D[0]===D[0].toUpperCase()}),i(U,"$const_name!",function(D){var G=this;return h(C("::","String","skip_raise")?"constant":k)&&(D=d["$coerce_to!"](D,C("String"),"to_str")),(!D||D[0]!=D[0].toUpperCase())&&G.$raise(C("NameError"),"wrong constant name "+D),D}),i(U,"$pristine",function(D,G){var de,ne;de=s(arguments,1),ne=de;for(var me,Q,be=ne.length-1;be>=0;be--)me=ne[be],Q=D.$$prototype[e.jsid(me)],Q&&!Q.$$stub&&(Q.$$pristine=!0);return k},-2);var O=[];return i(U,"$inspect",function(D){var G=k,de=!1;return function(){try{try{return D===null?"null":D===void 0?"undefined":typeof D.$$class>"u"?Object.prototype.toString.apply(D):typeof D.$inspect!="function"||D.$inspect.$$stub||O.indexOf(D.$__id__())!==-1?"#<"+D.$$class+":0x"+D.$__id__().$to_s(16)+">":(O.push(D.$__id__()),de=!0,D.$inspect())}catch(ne){if(e.rescue(ne,[C("Exception")])){G=ne;try{return"#<"+D.$$class+":0x"+D.$__id__().$to_s(16)+">"}finally{e.pop_exception()}}else throw ne}}finally{de&&O.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,l=e.assign_ivar,f=e.ivar,h=e.deny_frozen_access,d=e.freeze,k=e.prop,C=e.jsid,N=e.klass,U=e.defs,O=e.send,j=e.def,D=e.eqeqeq,G=e.Module,de=e.Kernel,ne=e.rb_lt,me=e.rb_gt,Q=e.slice,be=e.to_a,le=e.hash2,Ee=e.Opal,te=e.return_val,Ce=e.eqeq,fe=e.lambda,x=e.range,Ae=e.send2,B=e.find_super,he=e.alias,W=[],Fe=e.nil,$e=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(V,w,$){var o=N(V,w,"Module"),c=[o].concat($),p=e.$r(c);return U(o,"$allocate",function(){var E=this,T=e.allocate_module(Fe,function(){});return E!==e.Module&&Object.setPrototypeOf(T,E.$$prototype),T}),j(o,"$initialize",function m(){var E=m.$$p||Fe,T=this;return m.$$p=null,E!==Fe?O(T,"module_eval",[],E.$to_proc()):Fe}),j(o,"$===",function(E){var T=this;return t(E==null)?!1:e.is_a(E,T)}),j(o,"$<",function(E){var T=this;D(G,E)||de.$raise($e("TypeError"),"compared with non class/module");var re=T,je,nt,ft;if(re===E)return!1;for(nt=0,je=e.ancestors(T),ft=je.length;nt<ft;nt++)if(je[nt]===E)return!0;for(nt=0,je=e.ancestors(E),ft=je.length;nt<ft;nt++)if(je[nt]===T)return!1;return Fe}),j(o,"$<=",function(E){var T=this,re=Fe;return t(re=T["$equal?"](E))?re:ne(T,E)}),j(o,"$>",function(E){var T=this;return D(G,E)||de.$raise($e("TypeError"),"compared with non class/module"),ne(E,T)}),j(o,"$>=",function(E){var T=this,re=Fe;return t(re=T["$equal?"](E))?re:me(T,E)}),j(o,"$<=>",function(E){var T=this,re=Fe;return T===E?0:!D(G,E)||(re=ne(T,E),t(re["$nil?"]()))?Fe:t(re)?-1:1}),j(o,"$alias_method",function(E,T){var re=this;return h(re),E=r(E,$e("String"),"to_str"),T=r(T,$e("String"),"to_str"),e.alias(re,E,T),re}),j(o,"$alias_native",function(E,T){var re=this;return T==null&&(T=E),h(re),e.alias_native(re,E,T),re},-2),j(o,"$ancestors",function(){var E=this;return e.ancestors(E)}),j(o,"$append_features",function(E){var T=this;return h(E),e.append_features(T,E),T}),j(o,"$attr_accessor",function(E){var T,re,je=this;return T=Q(arguments),re=T,O(je,"attr_reader",be(re)),O(je,"attr_writer",be(re))},-1),j(o,"$attr",function(E){var T,re,je=this;return T=Q(arguments),re=T,re.length==2&&(re[1]===!0||re[1]===!1)?(je.$warn("optional boolean argument is obsoleted",le(["uplevel"],{uplevel:1})),re[1]?je.$attr_accessor(re[0]):je.$attr_reader(re[0]),Fe):O(je,"attr_reader",be(re))},-1),j(o,"$attr_reader",function(E){var T,re,je=this;T=Q(arguments),re=T,h(je);for(var nt=je.$$prototype,ft=re.length-1;ft>=0;ft--){var yt=re[ft],zt=C(yt),_t=f(yt),vt=s(_t);e.prop(nt,_t,Fe),vt.$$parameters=[],vt.$$arity=0,e.defn(je,zt,vt)}return Fe},-1),j(o,"$attr_writer",function(E){var T,re,je=this;T=Q(arguments),re=T,h(je);for(var nt=je.$$prototype,ft=re.length-1;ft>=0;ft--){var yt=re[ft],zt=C(yt+"="),_t=f(yt),vt=l(_t);vt.$$parameters=[["req"]],vt.$$arity=1,e.prop(nt,_t,Fe),e.defn(je,zt,vt)}return Fe},-1),j(o,"$autoload",function(E,T){var re=this;return h(re),p("Opal")["$const_name?"](E)||de.$raise($e("NameError"),"autoload must be constant name: "+E),T==""&&de.$raise($e("ArgumentError"),"empty file name"),re.$$const.hasOwnProperty(E)||(re.$$autoload||(re.$$autoload={}),e.const_cache_version++,re.$$autoload[E]={path:T,loaded:!1,required:!1,success:!1,exception:!1},re.$const_added&&!re.$const_added.$$pristine&&re.$const_added(E)),Fe}),j(o,"$autoload?",function(E){var T=this;if(T.$$autoload&&T.$$autoload[E]&&!T.$$autoload[E].required&&!T.$$autoload[E].success)return T.$$autoload[E].path;for(var re=T.$ancestors(),je=0,nt=re.length;je<nt;je++)if(re[je].$$autoload&&re[je].$$autoload[E]&&!re[je].$$autoload[E].required&&!re[je].$$autoload[E].success)return re[je].$$autoload[E].path;return Fe}),j(o,"$class_variables",function(){var E=this;return Object.keys(e.class_variables(E))}),j(o,"$class_variable_get",function(E){var T=this;return E=Ee["$class_variable_name!"](E),e.class_variable_get(T,E,!1)}),j(o,"$class_variable_set",function(E,T){var re=this;return h(re),E=Ee["$class_variable_name!"](E),e.class_variable_set(re,E,T)}),j(o,"$class_variable_defined?",function(E){var T=this;return E=Ee["$class_variable_name!"](E),e.class_variables(T).hasOwnProperty(E)}),j(o,"$const_added",te(Fe)),Ee.$pristine(o,"const_added"),j(o,"$remove_class_variable",function(E){var T=this;if(h(T),E=Ee["$class_variable_name!"](E),e.hasOwnProperty.call(T.$$cvars,E)){var re=T.$$cvars[E];return delete T.$$cvars[E],re}else de.$raise($e("NameError"),"cannot remove "+E+" for "+T)}),j(o,"$constants",function(E){var T=this;return E==null&&(E=!0),e.constants(T,E)},-1),U(o,"$constants",function(E){var T=this;if(E==null){var re=(T.$$nesting||[]).concat(i),je,nt={},ft,yt;for(ft=0,yt=re.length;ft<yt;ft++)for(je in re[ft].$$const)nt[je]=!0;return Object.keys(nt)}else return e.constants(T,E)},-1),U(o,"$nesting",function(){var E=this;return E.$$nesting||[]}),j(o,"$const_defined?",function(E,T){var re=this;T==null&&(T=!0),E=p("Opal")["$const_name!"](E),t(E["$=~"]($e(Ee,"CONST_NAME_REGEXP")))||de.$raise($e("NameError").$new("wrong constant name "+E,E));var je,nt=[re],ft,yt;for(T&&(nt=nt.concat(e.ancestors(re)),re.$$is_module&&(nt=nt.concat([i]).concat(e.ancestors(i)))),ft=0,yt=nt.length;ft<yt;ft++)if(je=nt[ft],je.$$const[E]!=null||je.$$autoload&&je.$$autoload[E]&&!je.$$autoload[E].required&&!je.$$autoload[E].success)return!0;return!1},-2),j(o,"$const_get",function(E,T){var re=this;return T==null&&(T=!0),E=p("Opal")["$const_name!"](E),E.indexOf("::")===0&&E!=="::"&&(E=E.slice(2)),t(E.indexOf("::")!=-1&&E!="::")?O(E.$split("::"),"inject",[re],function(nt,ft){return nt==null&&(nt=Fe),ft==null&&(ft=Fe),nt.$const_get(ft)}):(t(E["$=~"]($e(Ee,"CONST_NAME_REGEXP")))||de.$raise($e("NameError").$new("wrong constant name "+E,E)),T?e.$$([re],E):e.const_get_local(re,E))},-2),j(o,"$const_missing",function(E){var T=this,re=Fe;return re=Ce(T,i)?E:""+T+"::"+E,de.$raise($e("NameError").$new("uninitialized constant "+re,E))}),j(o,"$const_set",function(E,T){var re=this;return h(re),E=Ee["$const_name!"](E),(t(E["$!~"]($e(Ee,"CONST_NAME_REGEXP")))||t(E["$start_with?"]("::")))&&de.$raise($e("NameError").$new("wrong constant name "+E,E)),n(re,E,T),T}),j(o,"$public_constant",te(Fe)),j(o,"$define_method",function m(E,T){var re=m.$$p||Fe,je=this,nt=Fe,ft=Fe;return m.$$p=null,h(je),T===void 0&&re===Fe&&de.$raise($e("ArgumentError"),"tried to create a Proc object without a block"),re=t(nt=re)?nt:D($e("Proc"),ft=T)?T:D($e("Method"),ft)?T.$to_proc().$$unbound:D($e("UnboundMethod"),ft)?fe(function yt(zt){var _t,vt,mt=yt.$$s==null?this:yt.$$s,wt=Fe;return _t=Q(arguments),vt=_t,wt=T.$bind(mt),O(wt,"call",be(vt))},{$$arity:-1,$$s:je}):de.$raise($e("TypeError"),"wrong argument type "+re.$class()+" (expected Proc/Method)"),typeof Proxy<"u"&&(re.$$proxy_target=re,re=new Proxy(re,{apply:function(yt,zt,_t){var vt=yt.$$jsid;yt.$$jsid=E;try{return yt.apply(zt,_t)}catch(mt){if(mt===yt.$$brk||mt===yt.$$ret)return mt.$v;throw mt}finally{yt.$$jsid=vt}}})),re.$$jsid=E,re.$$s=null,re.$$def=re,re.$$define_meth=!0,e.defn(je,C(E),re)},-2),j(o,"$freeze",function(){var E=this;return t(E["$frozen?"]())?E:(E.hasOwnProperty("$$base_module")||k(E,"$$base_module",null),d(E))}),j(o,"$remove_method",function(E){var T,re,je=this;T=Q(arguments),re=T;for(var nt=0;nt<re.length;nt++){var ft=re[nt];typeof ft=="string"||ft.$$is_string||je.$raise($e("TypeError"),""+je.$name()+" is not a symbol nor a string"),h(je),e.rdef(je,"$"+ft)}return je},-1),j(o,"$singleton_class?",function(){var E=this;return!!E.$$is_singleton}),j(o,"$include",function(E){var T,re,je=this;T=Q(arguments),re=T;for(var nt=re.length-1;nt>=0;nt--){var ft=re[nt];ft.$$is_module||de.$raise($e("TypeError"),"wrong argument type "+ft.$class()+" (expected Module)"),ft.$append_features(je),ft.$included(je)}return je},-1),j(o,"$included_modules",function(){var E=this;return e.included_modules(E)}),j(o,"$include?",function(E){var T=this;E.$$is_module||de.$raise($e("TypeError"),"wrong argument type "+E.$class()+" (expected Module)");var re,je,nt,ft=e.ancestors(T);for(re=0,je=ft.length;re<je;re++)if(nt=ft[re],nt===E&&nt!==T)return!0;return!1}),j(o,"$instance_method",function(E){var T=this,re=T.$$prototype[C(E)];return(!re||re.$$stub)&&de.$raise($e("NameError").$new("undefined method `"+E+"' for class `"+T.$name()+"'",E)),$e("UnboundMethod").$new(T,re.$$owner||T,re,E)}),j(o,"$instance_methods",function(E){var T=this;return E==null&&(E=!0),t(E)?e.instance_methods(T):e.own_instance_methods(T)},-1),j(o,"$included",te(Fe)),j(o,"$extended",te(Fe)),j(o,"$extend_object",function(E){return h(E),Fe}),j(o,"$method_added",function(E){return Q(arguments),Fe},-1),j(o,"$method_removed",function(E){return Q(arguments),Fe},-1),j(o,"$method_undefined",function(E){return Q(arguments),Fe},-1),j(o,"$module_eval",function m(E){var T=m.$$p||Fe,re,je,nt,ft=this,yt=Fe,zt=Fe,_t=Fe,vt=Fe,mt=Fe,wt=Fe;m.$$p=null,re=Q(arguments),je=re,t(T["$nil?"]())&&t(!!e.compile)?(t(x(1,3,!1)["$cover?"](je.$size()))||de.$raise($e("ArgumentError"),"wrong number of arguments (0 for 1..3)"),nt=[].concat(be(je)),yt=nt[0]==null?Fe:nt[0],zt=nt[1]==null?Fe:nt[1],nt[2]==null||nt[2],_t=le(["file","eval"],{file:t(vt=zt)?vt:"(eval)",eval:!0}),mt=e.hash({arity_check:!1}).$merge(_t),wt=Ee.$compile(yt,mt),T=O(de,"proc",[],function ze(){var De=ze.$$s==null?this:ze.$$s;return new Function("Opal,self","return "+wt)(e,De)},{$$s:ft})):t(je["$any?"]())&&de.$raise($e("ArgumentError"),"wrong number of arguments ("+je.$size()+` for 0)
430
+
431
+ NOTE:If you want to enable passing a String argument please add "require 'opal-parser'" to your script
432
+ `);var St=T.$$s,Oe;return T.$$s=null,Oe=T.apply(ft,[ft]),T.$$s=St,Oe},-1),j(o,"$module_exec",function m(E){var T=m.$$p||Fe,re,je,nt=this;m.$$p=null,re=Q(arguments),je=re,T===Fe&&de.$raise($e("LocalJumpError"),"no block given");var ft=T.$$s,yt;return T.$$s=null,yt=T.apply(nt,je),T.$$s=ft,yt},-1),j(o,"$method_defined?",function(E){var T=this,re=T.$$prototype[C(E)];return!!re&&!re.$$stub}),j(o,"$module_function",function(E){var T,re,je=this;if(T=Q(arguments),re=T,h(je),re.length===0)return je.$$module_function=!0,Fe;for(var nt=0,ft=re.length;nt<ft;nt++){var yt=re[nt],zt=C(yt),_t=je.$$prototype[zt];e.defs(je,zt,_t)}return re.length===1?re[0]:re},-1),j(o,"$name",function(){var E=this;if(E.$$full_name)return E.$$full_name;for(var T=[],re=E;re;){if(re.$$name===Fe||re.$$name==null)return Fe;if(T.unshift(re.$$name),re=re.$$base_module,re===i)break}return T.length===0?Fe:E.$$full_name=T.join("::")}),j(o,"$prepend",function(E){var T,re,je=this;T=Q(arguments),re=T,re.length===0&&de.$raise($e("ArgumentError"),"wrong number of arguments (given 0, expected 1+)");for(var nt=re.length-1;nt>=0;nt--){var ft=re[nt];ft.$$is_module||de.$raise($e("TypeError"),"wrong argument type "+ft.$class()+" (expected Module)"),ft.$prepend_features(je),ft.$prepended(je)}return je},-1),j(o,"$prepend_features",function(E){var T=this;return h(E),T.$$is_module||de.$raise($e("TypeError"),"wrong argument type "+T.$class()+" (expected Module)"),e.prepend_features(T,E),T}),j(o,"$prepended",te(Fe)),j(o,"$remove_const",function(E){var T=this;return h(T),e.const_remove(T,E)}),j(o,"$to_s",function(){var E=this,T=Fe;return t(T=e.Module.$name.call(E))?T:"#<"+(E.$$is_module?"Module":"Class")+":0x"+E.$__id__().$to_s(16)+">"}),j(o,"$undef_method",function(E){var T,re,je=this;T=Q(arguments),re=T;for(var nt=0;nt<re.length;nt++){var ft=re[nt];typeof ft=="string"||ft.$$is_string||je.$raise($e("TypeError"),""+je.$name()+" is not a symbol nor a string"),h(je),e.udef(je,"$"+re[nt])}return je},-1),j(o,"$instance_variables",function(){var E=this,T=Fe;T=(e.Module.$$nesting=c,E.$constants());var re=[];for(var je in E)E.hasOwnProperty(je)&&je.charAt(0)!=="$"&&je!=="constructor"&&!T["$include?"](je)&&re.push("@"+je);return re}),j(o,"$dup",function m(){var E=m.$$p||Fe,T=this,re=Fe;return m.$$p=null,re=Ae(T,B(T,"dup",m,!1,!0),"dup",[],E),re.$copy_class_variables(T),re.$copy_constants(T),re}),j(o,"$copy_class_variables",function(E){var T=this;for(var re in E.$$cvars)T.$$cvars[re]=E.$$cvars[re]}),j(o,"$copy_constants",function(E){var T=this,re,je=E.$$const;for(re in je)n(T,re,je[re])}),j(o,"$refine",function m(E){var T=m.$$p||Fe,re,je=this,nt=Fe,ft=Fe,yt=Fe;return m.$$p=null,re=[je,Fe,Fe],nt=re[0],ft=re[1],yt=re[2],yt=e.id(E),typeof je.$$refine_modules>"u"&&(je.$$refine_modules=Object.create(null)),typeof je.$$refine_modules[yt]>"u"?ft=je.$$refine_modules[yt]=$e("Refinement").$new():ft=je.$$refine_modules[yt],ft.refinement_module=nt,ft.refined_class=E,O(ft,"class_exec",[],T.$to_proc()),ft}),j(o,"$refinements",function(){var E=this,T=E.$$refine_modules,re=le([],{});if(typeof T>"u")return re;for(var je in T)re["$[]="](T[je].refined_class,T[je]);return re}),j(o,"$using",function(E){return de.$raise("Module#using is not permitted in methods")}),he(o,"class_eval","module_eval"),he(o,"class_exec","module_exec"),he(o,"inspect","to_s")}("::",null,W),function(V,w){var $=N(V,w,"Refinement"),o=$.$$prototype;return o.refinement_module=o.refined_class=Fe,$.$attr_reader("refined_class"),j($,"$inspect",function c(){var p=c.$$p||Fe,m=this;return c.$$p=null,t(m.refinement_module)?"#<refinement:"+m.refined_class.$inspect()+"@"+m.refinement_module.$inspect()+">":Ae(m,B(m,"inspect",c,!1,!0),"inspect",[],p)})}("::",G)};Opal.modules["corelib/class"]=function(e){var t=e.klass,r=e.send,n=e.defs,i=e.def,s=e.rb_plus,l=e.return_val,f=e.slice,h=e.send2,d=e.find_super,k=e.Kernel,C=e.alias,N=e.top,U=[],O=e.nil,j=e.$$$;return e.add_stubs("require,class_eval,to_proc,+,subclasses,flatten,map,initialize_copy,allocate,name,to_s,raise"),N.$require("corelib/module"),function(D,G,de){var ne=t(D,G,"Class"),me=[ne].concat(de),Q=e.$r(me);return n(ne,"$new",function be(le){var Ee=be.$$p||O;if(be.$$p=null,le==null&&(le=Q("Object")),!le.$$is_class)throw e.TypeError.$new("superclass must be a Class");var te=e.allocate_class(O,le);return le.$inherited(te),Ee!==O&&r(te,"class_eval",[],Ee.$to_proc()),te},-1),i(ne,"$allocate",function(){var le=this,Ee=new le.$$constructor;return Ee.$$id=e.uid(),Ee}),i(ne,"$descendants",function(){var le=this;return s(le.$subclasses(),r(le.$subclasses(),"map",[],"descendants".$to_proc()).$flatten())}),i(ne,"$inherited",l(O)),i(ne,"$initialize_dup",function(le){var Ee=this;Ee.$initialize_copy(le),Ee.$$name=null,Ee.$$full_name=null}),i(ne,"$new",function be(le){var Ee=be.$$p||O,te,Ce,fe=this;be.$$p=null,te=f(arguments),Ce=te;var x=fe.$allocate();return e.send(x,x.$initialize,Ce,Ee),x},-1),i(ne,"$subclasses",function(){var le=this;if(typeof WeakRef<"u"){var Ee,te,Ce=[];for(Ee=0;Ee<le.$$subclasses.length;Ee++)te=le.$$subclasses[Ee].deref(),te!==void 0&&Ce.push(te);return Ce}else return le.$$subclasses}),i(ne,"$superclass",function(){var le=this;return le.$$super||O}),i(ne,"$to_s",function be(){be.$$p;var le=this;be.$$p=null;var Ee=le.$$singleton_of;return Ee&&Ee.$$is_a_module?"#<Class:"+Ee.$name()+">":Ee?"#<Class:#<"+Ee.$$class.$name()+":0x"+e.id(Ee).$to_s(16)+">>":h(le,d(le,"to_s",be,!1,!0),"to_s",[],null)}),i(ne,"$attached_object",function(){var le=this;if(le.$$singleton_of!=null)return le.$$singleton_of;k.$raise(j("TypeError"),"`"+le+"' is not a singleton class")}),C(ne,"inspect","to_s")}("::",null,U)};Opal.modules["corelib/basic_object"]=function(e){var t=e.klass,r=e.slice,n=e.def,i=e.alias,s=e.return_val,l=e.Opal,f=e.truthy,h=e.range,d=e.Kernel,k=e.to_a,C=e.hash2,N=e.send,U=e.eqeq,O=e.rb_ge,j=e.nil,D=e.$$$;return e.add_stubs("==,raise,inspect,pristine,!,nil?,cover?,size,merge,compile,proc,[],first,>=,length,instance_variable_get,any?,new,caller"),function(G,de){var ne=t(G,de,"BasicObject");return n(ne,"$initialize",function(Q){return r(arguments),j},-1),n(ne,"$==",function(Q){var be=this;return be===Q}),n(ne,"$eql?",function(Q){var be=this;return be["$=="](Q)}),i(ne,"equal?","=="),n(ne,"$__id__",function(){var Q=this;return Q.$$id!=null||e.prop(Q,"$$id",e.uid()),Q.$$id}),n(ne,"$__send__",function me(Q,be){var le=me.$$p||j,Ee,te,Ce=this;me.$$p=null,Ee=r(arguments,1),te=Ee,Q.$$is_string||Ce.$raise(D("TypeError"),""+Ce.$inspect()+" is not a symbol nor a string");var fe=Ce[e.jsid(Q)];return fe?(le!==j&&(fe.$$p=le),fe.apply(Ce,te)):(le!==j&&(Ce.$method_missing.$$p=le),Ce.$method_missing.apply(Ce,[Q].concat(te)))},-2),n(ne,"$!",s(!1)),l.$pristine("!"),n(ne,"$!=",function(Q){var be=this;return be["$=="](Q)["$!"]()}),n(ne,"$instance_eval",function me(Q){var be=me.$$p||j,le,Ee,te,Ce=this,fe=j,x=j,Ae=j,B=j,he=j,W=j;if(me.$$p=null,le=r(arguments),Ee=le,f(be["$nil?"]())&&f(!!e.compile))f(h(1,3,!1)["$cover?"](Ee.$size()))||d.$raise(D("ArgumentError"),"wrong number of arguments (0 for 1..3)"),te=[].concat(k(Ee)),fe=te[0]==null?j:te[0],x=te[1]==null?j:te[1],te[2]==null||te[2],Ae=C(["file","eval"],{file:f(B=x)?B:"(eval)",eval:!0}),he=e.hash({arity_check:!1}).$merge(Ae),W=l.$compile(fe,he),be=N(d,"proc",[],function V(){var w=V.$$s==null?this:V.$$s;return new Function("Opal,self","return "+W)(e,w)},{$$s:Ce});else{if(f(be["$nil?"]())&&f(O(Ee.$length(),1))&&U(Ee.$first()["$[]"](0),"@"))return Ce.$instance_variable_get(Ee.$first());f(Ee["$any?"]())&&d.$raise(D("ArgumentError"),"wrong number of arguments ("+Ee.$size()+" for 0)")}var Fe=be.$$s,$e;if(be.$$s=null,Ce.$$is_a_module){Ce.$$eval=!0;try{$e=be.call(Ce,Ce)}finally{Ce.$$eval=!1}}else $e=be.call(Ce,Ce);return be.$$s=Fe,$e},-1),n(ne,"$instance_exec",function me(Q){var be=me.$$p||j,le,Ee,te=this;me.$$p=null,le=r(arguments),Ee=le,f(be)||d.$raise(D("ArgumentError"),"no block given");var Ce=be.$$s,fe;if(be.$$s=null,te.$$is_a_module){te.$$eval=!0;try{fe=be.apply(te,Ee)}finally{te.$$eval=!1}}else fe=be.apply(te,Ee);return be.$$s=Ce,fe},-1),n(ne,"$singleton_method_added",function(Q){return r(arguments),j},-1),n(ne,"$singleton_method_removed",function(Q){return r(arguments),j},-1),n(ne,"$singleton_method_undefined",function(Q){return r(arguments),j},-1),n(ne,"$method_missing",function me(Q,be){me.$$p;var le,Ee,te=this,Ce=j;return me.$$p=null,le=r(arguments,1),Ee=le,Ce=l.$inspect(te),d.$raise(D("NoMethodError").$new("undefined method `"+Q+"' for "+Ce,Q,Ee),j,d.$caller(1))},-2),l.$pristine(ne,"method_missing"),n(ne,"$respond_to_missing?",function(Q,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,l=e.freeze,f=e.freeze_props,h=e.jsid,d=e.module,k=e.return_val,C=e.def,N=e.Kernel,U=e.gvars,O=e.slice,j=e.send,D=e.to_a,G=e.ensure_kwargs,de=e.eqeq,ne=e.hash2,me=e.rb_plus,Q=e.eqeqeq,be=e.return_self,le=e.rb_le,Ee=e.extract_kwargs,te=e.rb_lt,Ce=e.Object,fe=e.alias,x=e.klass,Ae=[],B=e.nil,he=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(W,Fe){var $e=d(W,"Kernel"),V=[$e].concat(Fe),w=e.$r(V);C($e,"$=~",k(!1)),C($e,"$!~",function(c){var p=this;return p["$=~"](c)["$!"]()}),C($e,"$===",function(c){var p=this,m=B;return t(m=p.$object_id()["$=="](c.$object_id()))?m:p["$=="](c)}),C($e,"$<=>",function(c){var p=this;p.$$comparable=!0;var m=p["$=="](c);return m&&m!==B?0:B}),C($e,"$method",function(c){var p=this,m=p[h(c)];return(!m||m.$$stub)&&N.$raise(he("NameError").$new("undefined method `"+c+"' for class `"+p.$class()+"'",c)),he("Method").$new(p,m.$$owner||p.$class(),m,c)}),C($e,"$methods",function(c){var p=this;return c==null&&(c=!0),t(c)?e.methods(p):e.own_methods(p)},-1),C($e,"$public_methods",function(c){var p=this;return c==null&&(c=!0),t(c)?e.methods(p):e.receiver_methods(p)},-1),C($e,"$Array",function(c){var p;return c===B?[]:c.$$is_array?c:(p=i["$coerce_to?"](c,he("Array"),"to_ary"),p!==B||(p=i["$coerce_to?"](c,he("Array"),"to_a"),p!==B)?p:[c])}),C($e,"$at_exit",function o(){var c=o.$$p||B,p=B;return U.__at_exit__==null&&(U.__at_exit__=B),o.$$p=null,U.__at_exit__=t(p=U.__at_exit__)?p:[],U.__at_exit__["$<<"](c),c}),C($e,"$caller",function(c,p){c==null&&(c=1),p==null&&(p=B);var m,E;m=new Error().$backtrace(),E=[];for(var T=c+1,re=m.length;T<re;T++)m[T].match(/runtime\.js/)||E.push(m[T]);return p!=B&&(E=E.slice(0,p)),E},-1),C($e,"$caller_locations",function(c){var p,m,E=this;return p=O(arguments),m=p,j(j(E,"caller",D(m)),"map",[],function(re){return re==null&&(re=B),he(he(he("Thread"),"Backtrace"),"Location").$new(re)})},-1),C($e,"$class",function(){var c=this;return c.$$class}),C($e,"$copy_instance_variables",function(c){var p=this,m=Object.keys(c),E,T,re;for(E=0,T=m.length;E<T;E++)re=m[E],re.charAt(0)!=="$"&&c.hasOwnProperty(re)&&(p[re]=c[re])}),C($e,"$copy_singleton_methods",function(c){var p=this,m,E,T,re;if(c.hasOwnProperty("$$meta")&&c.$$meta!==null){var je=e.get_singleton_class(c),nt=e.get_singleton_class(p);for(T=Object.getOwnPropertyNames(je.$$prototype),m=0,re=T.length;m<re;m++)E=T[m],e.is_method(E)&&(nt.$$prototype[E]=je.$$prototype[E]);nt.$$const=Object.assign({},je.$$const),Object.setPrototypeOf(nt.$$prototype,Object.getPrototypeOf(je.$$prototype))}for(m=0,T=Object.getOwnPropertyNames(c),re=T.length;m<re;m++)E=T[m],E.charAt(0)==="$"&&E.charAt(1)!=="$"&&c.hasOwnProperty(E)&&(p[E]=c[E])}),C($e,"$clone",function(c){var p,m=this,E=B;return c=G(c),p=c.$$smap.freeze,p==null&&(p=B),t(p["$nil?"]())||de(p,!0)||de(p,!1)||m.$raise(w("ArgumentError"),"unexpected value for freeze: "+p.$class()),E=m.$class().$allocate(),E.$copy_instance_variables(m),E.$copy_singleton_methods(m),E.$initialize_clone(m,ne(["freeze"],{freeze:p})),(de(p,!0)||t(p["$nil?"]())&&t(m["$frozen?"]()))&&E.$freeze(),E},-1),C($e,"$initialize_clone",function(c,p){var m=this;return p=G(p),p.$$smap.freeze,m.$initialize_copy(c),m},-2),C($e,"$define_singleton_method",function o(c,p){var m=o.$$p||B,E=this;return o.$$p=null,j(E.$singleton_class(),"define_method",[c,p],m.$to_proc())},-2),C($e,"$dup",function(){var c=this,p=B;return p=c.$class().$allocate(),p.$copy_instance_variables(c),p.$initialize_dup(c),p}),C($e,"$initialize_dup",function(c){var p=this;return p.$initialize_copy(c)}),C($e,"$enum_for",function o(c,p){var m=o.$$p||B,E,T,re,je=this;return o.$$p=null,E=O(arguments),E.length>0&&(T=E.shift()),T==null&&(T="each"),re=E,j(he("Enumerator"),"for",[je,T].concat(D(re)),m.$to_proc())},-1),C($e,"$equal?",function(c){var p=this;return p===c}),C($e,"$exit",function(c){var p=B,m=B;for(U.__at_exit__==null&&(U.__at_exit__=B),c==null&&(c=!0),U.__at_exit__=t(p=U.__at_exit__)?p:[];!t(U.__at_exit__["$empty?"]());)m=U.__at_exit__.$pop(),m.$call();return c.$$is_boolean?c=c?0:1:c=r(c,he("Integer"),"to_int"),e.exit(c),B},-1),C($e,"$extend",function(c){var p,m,E=this;p=O(arguments),m=p,m.length==0&&E.$raise(he("ArgumentError"),"wrong number of arguments (given 0, expected 1+)"),s(E);for(var T=E.$singleton_class(),re=m.length-1;re>=0;re--){var je=m[re];je.$$is_module||N.$raise(he("TypeError"),"wrong argument type "+je.$class()+" (expected Module)"),je.$append_features(T),je.$extend_object(E),je.$extended(E)}return E},-1),C($e,"$freeze",function(){var c=this;return t(c["$frozen?"]())?c:typeof c=="object"?(f(c),l(c)):c}),C($e,"$frozen?",function(){var c=this;switch(typeof c){case"string":case"symbol":case"number":case"boolean":return!0;case"object":return c.$$frozen||!1;default:return!1}}),C($e,"$gets",function(c){var p,m;return U.stdin==null&&(U.stdin=B),p=O(arguments),m=p,j(U.stdin,"gets",D(m))},-1),C($e,"$hash",function(){var c=this;return c.$__id__()}),C($e,"$initialize_copy",k(B));var $=[];return C($e,"$inspect",function(){var c=this,p=B,m=B,E=B,T=B;return function(){try{try{return p="",m=c.$__id__(),t($["$include?"](m))?p=" ...":($["$<<"](m),E=!0,j(c.$instance_variables(),"each",[],function re(je){var nt=re.$$s==null?this:re.$$s,ft=B,yt=B;return je==null&&(je=B),ft=nt.$instance_variable_get(je),yt=w("Opal").$inspect(ft),p=me(p," "+je+"="+yt)},{$$s:c})),"#<"+c.$class()+":0x"+m.$to_s(16)+p+">"}catch(re){if(e.rescue(re,[w("StandardError")])){T=re;try{return"#<"+c.$class()+":0x"+m.$to_s(16)+">"}finally{e.pop_exception()}}else throw re}}finally{t(E)&&$.$pop()}}()}),C($e,"$instance_of?",function(c){var p=this;return!c.$$is_class&&!c.$$is_module&&N.$raise(he("TypeError"),"class or module required"),p.$$class===c}),C($e,"$instance_variable_defined?",function(c){var p=this;return c=i["$instance_variable_name!"](c),e.hasOwnProperty.call(p,c.substr(1))}),C($e,"$instance_variable_get",function(c){var p=this;c=i["$instance_variable_name!"](c);var m=p[e.ivar(c.substr(1))];return m??B}),C($e,"$instance_variable_set",function(c,p){var m=this;return s(m),c=i["$instance_variable_name!"](c),m[e.ivar(c.substr(1))]=p}),C($e,"$remove_instance_variable",function(c){var p=this;c=i["$instance_variable_name!"](c);var m=e.ivar(c.substr(1)),E;return p.hasOwnProperty(m)?(E=p[m],delete p[m],E):N.$raise(he("NameError"),"instance variable "+c+" not defined")}),C($e,"$instance_variables",function(){var c=this,p=[],m;for(var E in c)c.hasOwnProperty(E)&&E.charAt(0)!=="$"&&(E.substr(-1)==="$"?m=E.slice(0,E.length-1):m=E,p.push("@"+m));return p}),C($e,"$Integer",function(c,p){var m,E,T;return c.$$is_string?c==="0"?0:(p===void 0?p=0:(p=r(p,he("Integer"),"to_int"),(p===1||p<0||p>36)&&N.$raise(he("ArgumentError"),"invalid radix "+p)),E=c.toLowerCase(),E=E.replace(/(\d)_(?=\d)/g,"$1"),E=E.replace(/^(\s*[+-]?)(0[bodx]?)/,function(re,je,nt){switch(nt){case"0b":if(p===0||p===2)return p=2,je;case"0":case"0o":if(p===0||p===8)return p=8,je;case"0d":if(p===0||p===10)return p=10,je;case"0x":if(p===0||p===16)return p=16,je}N.$raise(he("ArgumentError"),'invalid value for Integer(): "'+c+'"')}),p=p===0?10:p,T="0-"+(p<=10?p-1:"9a-"+String.fromCharCode(97+(p-11))),new RegExp("^\\s*[+-]?["+T+"]+\\s*$").test(E)||N.$raise(he("ArgumentError"),'invalid value for Integer(): "'+c+'"'),m=parseInt(E,p),isNaN(m)&&N.$raise(he("ArgumentError"),'invalid value for Integer(): "'+c+'"'),m):(p!==void 0&&N.$raise(he("ArgumentError"),"base specified for non string value"),c===B&&N.$raise(he("TypeError"),"can't convert nil into Integer"),c.$$is_number?((c===1/0||c===-1/0||isNaN(c))&&N.$raise(he("FloatDomainError"),c),Math.floor(c)):c["$respond_to?"]("to_int")&&(m=c.$to_int(),m!==B)?m:i["$coerce_to!"](c,he("Integer"),"to_i"))},-2),C($e,"$Float",function(c){var p;return c===B&&N.$raise(he("TypeError"),"can't convert nil into Float"),c.$$is_string?(p=c.toString(),p=p.replace(/(\d)_(?=\d)/g,"$1"),/^\s*[-+]?0[xX][0-9a-fA-F]+\s*$/.test(p)?N.$Integer(p):(/^\s*[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s*$/.test(p)||N.$raise(he("ArgumentError"),'invalid value for Float(): "'+c+'"'),parseFloat(p))):i["$coerce_to!"](c,he("Float"),"to_f")}),C($e,"$Hash",function(c){return t(c["$nil?"]())||de(c,[])?ne([],{}):Q(he("Hash"),c)?c:i["$coerce_to!"](c,he("Hash"),"to_hash")}),C($e,"$is_a?",function(c){var p=this;return!c.$$is_class&&!c.$$is_module&&N.$raise(he("TypeError"),"class or module required"),e.is_a(p,c)}),C($e,"$itself",be),C($e,"$lambda",function o(){var c=o.$$p||B;return o.$$p=null,e.lambda(c)}),C($e,"$load",function(c){return c=i["$coerce_to!"](c,he("String"),"to_str"),e.load(c)}),C($e,"$loop",function o(){var c=o.$$p||B,p=this,m=B;if(o.$$p=null,c===B)return j(p,"enum_for",["loop"],function(){return he(he("Float"),"INFINITY")});for(;t(!0);)try{e.yieldX(c,[])}catch(E){if(e.rescue(E,[he("StopIteration")])){m=E;try{return m.$result()}finally{e.pop_exception()}}else throw E}return p}),C($e,"$nil?",k(!1)),C($e,"$printf",function(c){var p,m,E=this;return p=O(arguments),m=p,t(m["$any?"]())&&E.$print(j(E,"format",D(m))),B},-1),C($e,"$proc",function o(){var c=o.$$p||B;return o.$$p=null,t(c)||N.$raise(he("ArgumentError"),"tried to create Proc object without a block"),c.$$is_lambda=!1,c}),C($e,"$puts",function(c){var p,m;return U.stdout==null&&(U.stdout=B),p=O(arguments),m=p,j(U.stdout,"puts",D(m))},-1),C($e,"$p",function(c){var p,m;return p=O(arguments),m=p,j(m,"each",[],function(T){return U.stdout==null&&(U.stdout=B),T==null&&(T=B),U.stdout.$puts(T.$inspect())}),t(le(m.$length(),1))?m["$[]"](0):m},-1),C($e,"$print",function(c){var p,m;return U.stdout==null&&(U.stdout=B),p=O(arguments),m=p,j(U.stdout,"print",D(m))},-1),C($e,"$readline",function(c){var p,m;return U.stdin==null&&(U.stdin=B),p=O(arguments),m=p,j(U.stdin,"readline",D(m))},-1),C($e,"$warn",function(c,p){var m,E,T,re,je,nt,ft=this,yt=B;return U.VERBOSE==null&&(U.VERBOSE=B),U.stderr==null&&(U.stderr=B),m=O(arguments),E=Ee(m),E=G(E),T=m,re=E.$$smap.uplevel,re==null&&(re=B),t(re)&&(re=i["$coerce_to!"](re,he("Integer"),"to_str"),t(te(re,0))&&N.$raise(he("ArgumentError"),"negative level ("+re+")"),yt=(je=(nt=ft.$caller(me(re,1),1).$first(),nt===B||nt==null?B:nt.$split(":in `")),je===B||je==null?B:je.$first()),t(yt)&&(yt=""+yt+": "),T=j(T,"map",[],function(_t){return _t==null&&(_t=B),""+yt+"warning: "+_t})),t(U.VERBOSE["$nil?"]())||t(T["$empty?"]())?B:j(U.stderr,"puts",D(T))},-1),C($e,"$raise",function(c,p,m){throw U["!"]==null&&(U["!"]=B),U["@"]==null&&(U["@"]=B),p==null&&(p=B),m==null&&(m=B),c==null&&U["!"]!==B?U["!"]:(c==null?c=he("RuntimeError").$new(""):n(c,"$to_str")?c=he("RuntimeError").$new(c.$to_str()):c.$$is_class&&n(c,"$exception")?c=c.$exception(p):c.$$is_exception||(c=he("TypeError").$new("exception class/object expected")),m!==B&&c.$set_backtrace(m),U["!"]!==B&&e.exceptions.push(U["!"]),U["!"]=c,U["@"]=c.$backtrace(),c)},-1),C($e,"$rand",function(c){return c===void 0?he(he("Random"),"DEFAULT").$rand():(c.$$is_number&&(c<0&&(c=Math.abs(c)),c%1!==0&&(c=c.$to_i()),c===0&&(c=void 0)),he(he("Random"),"DEFAULT").$rand(c))},-1),C($e,"$respond_to?",function(c,p){var m=this;p==null&&(p=!1);var E=m[h(c)];return typeof E=="function"&&!E.$$stub?!0:m["$respond_to_missing?"].$$pristine===!0?!1:m["$respond_to_missing?"](c,p)},-2),C($e,"$respond_to_missing?",function(c,p){return!1},-2),i.$pristine($e,"respond_to?","respond_to_missing?"),C($e,"$require",function(c){return typeof c!="string"&&e.String&&e.Array&&(c=i["$coerce_to!"](c,he("String"),"to_str")),e.require(c)}),C($e,"$require_relative",function(c){return i["$try_convert!"](c,he("String"),"to_str"),c=he("File").$expand_path(he("File").$join(e.current_file,"..",c)),e.require(c)}),C($e,"$require_tree",function(c,p){var m;p=G(p),m=p.$$smap.autoload,m==null&&(m=!1);var E=[];c=he("File").$expand_path(c),c=e.normalize(c),c==="."&&(c="");for(var T in e.modules)T["$start_with?"](c)&&(m?E.push([T,!0]):E.push([T,e.require(T)]));return E},-2),C($e,"$singleton_class",function(){var c=this;return e.get_singleton_class(c)}),C($e,"$sleep",function(c){c==null&&(c=B),c===B&&N.$raise(he("TypeError"),"can't convert NilClass into time interval"),c.$$is_number||N.$raise(he("TypeError"),"can't convert "+c.$class()+" into time interval"),c<0&&N.$raise(he("ArgumentError"),"time interval must be positive");for(var p=e.global.performance?function(){return performance.now()}:function(){return new Date},m=p();p()-m<=c*1e3;);return Math.round(c)},-1),C($e,"$srand",function(c){return c==null&&(c=w("Random").$new_seed()),he("Random").$srand(c)},-1),C($e,"$String",function(c){var p=B;return t(p=i["$coerce_to?"](c,he("String"),"to_str"))?p:i["$coerce_to!"](c,he("String"),"to_s")}),C($e,"$tap",function o(){var c=o.$$p||B,p=this;return o.$$p=null,e.yield1(c,p),p}),C($e,"$to_proc",be),C($e,"$to_s",function(){var c=this;return"#<"+c.$class()+":0x"+c.$__id__().$to_s(16)+">"}),C($e,"$catch",function o(c){var p=o.$$p||B,m=B,E=B;o.$$p=null,c==null&&(c=B);try{return c=t(m=c)?m:Ce.$new(),e.yield1(p,c)}catch(T){if(e.rescue(T,[he("UncaughtThrowError")])){E=T;try{return de(E.$tag(),c)?E.$value():N.$raise()}finally{e.pop_exception()}}else throw T}},-1),C($e,"$throw",function(c,p){return p==null&&(p=B),N.$raise(he("UncaughtThrowError").$new(c,p))},-2),C($e,"$open",function o(c){var p=o.$$p||B,m,E;return o.$$p=null,m=O(arguments),E=m,j(he("File"),"open",D(E),p.$to_proc())},-1),C($e,"$yield_self",function o(){var c=o.$$p||B,p=this;return o.$$p=null,c===B?j(p,"enum_for",["yield_self"],k(1)):e.yield1(c,p)}),fe($e,"fail","raise"),fe($e,"kind_of?","is_a?"),fe($e,"object_id","__id__"),fe($e,"public_send","__send__"),fe($e,"send","__send__"),fe($e,"then","yield_self"),fe($e,"to_enum","enum_for")}("::",Ae),function(W,Fe){var $e=x(W,Fe,"Object");return delete Ce.$$prototype.$require,$e.$include(N)}("::",null)};Opal.modules["corelib/main"]=function(e){var t=e.return_val,r=e.def,n=e.Object,i=e.slice,s=e.Kernel,l=e.top;return e.nil,e.add_stubs("include,raise"),function(f,h){return r(f,"$to_s",t("main")),r(f,"$include",function(k){return n.$include(k)}),r(f,"$autoload",function(k){var C,N;return C=i(arguments),N=C,e.Object.$autoload.apply(e.Object,N)},-1),r(f,"$using",function(k){return s.$raise("main.using is permitted only at toplevel")})}(e.get_singleton_class(l))};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,l=e.def,f=e.klass,h=e.nil,d=e.$$$;return e.add_stubs("+,errno,class,attr_reader"),function(k,C){var N=t(k,"Errno"),U=h,O=h;U=[["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]],O=h;var j;for(j=0;j<U.length;j++)(function(){var D=U[j][0],G=U[j][1],de=U[j][2];O=e.klass(N,e.SystemCallError,D),O.errno=de,function(ne,me){return l(ne,"$new",function Q(be){Q.$$p;var le=this,Ee=h;return Q.$$p=null,be==null&&(be=h),Ee=G,r(be)&&(Ee=n(Ee," - "+be)),i(le,s(le,"new",Q,!1,!0),"new",[Ee],null)},-1)}(e.get_singleton_class(O))})()}("::"),function(k,C,N){var U=f(k,C,"SystemCallError");return l(U,"$errno",function(){var j=this;return j.$class().$errno()}),function(O,j){return O.$attr_reader("errno")}(e.get_singleton_class(U))}("::",d("StandardError"))};Opal.modules["corelib/error"]=function(e){var t=e.klass,r=e.slice,n=e.gvars,i=e.defs,s=e.send,l=e.to_a,f=e.def,h=e.truthy,d=e.hash2,k=e.Kernel,C=e.not,N=e.rb_plus,U=e.eqeq,O=e.Object,j=e.ensure_kwargs,D=e.send2,G=e.find_super,de=e.module,ne=[],me=e.nil,Q=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,le,Ee){var te=t(be,le,"Exception"),Ce=[te].concat(Ee),fe=e.$r(Ce),x=te.$$prototype;x.message=me,e.prop(te.$$prototype,"$$is_exception",!0);var Ae;Error.stackTraceLimit=100,i(te,"$new",function(W){var Fe,$e,V=this;n["!"]==null&&(n["!"]=me),Fe=r(arguments),$e=Fe;var w=$e.length>0?$e[0]:me,$=new V.$$constructor(w);return $.name=V.$$name,$.message=w,$.cause=n["!"],e.send($,$.$initialize,$e),e.config.enable_stack_trace&&Error.captureStackTrace&&Error.captureStackTrace($,Ae),$},-1),Ae=te.$new,i(te,"$exception",function(W){var Fe,$e,V=this;return Fe=r(arguments),$e=Fe,s(V,"new",l($e))},-1),f(te,"$initialize",function(W){var Fe,$e,V=this;return Fe=r(arguments),$e=Fe,V.message=$e.length>0?$e[0]:me},-1);function B(he){for(var W=[],Fe,$e=0;$e<he.length;$e++){var V=he[$e];!V||!V.$$is_string||((Fe=V.match(/^ at (.*?) \((.*?)\)$/))?W.push(Fe[2]+":in `"+Fe[1]+"'"):(Fe=V.match(/^ at (.*?)$/))?W.push(Fe[1]+":in `undefined'"):(Fe=V.match(/^ from (.*?)$/))?W.push(Fe[1]):(Fe=V.match(/^(.*?)@(.*?)$/))&&W.push(Fe[2]+":in `"+Fe[1]+"'"))}return W}return f(te,"$backtrace",function(){var W=this;if(W.backtrace)return W.backtrace;var Fe=W.stack;return typeof Fe<"u"&&Fe.$$is_string?W.backtrace=B(Fe.split(`
433
+ `)):Fe?W.backtrace=B(Fe):[]}),f(te,"$backtrace_locations",function(){var W,Fe=this;return Fe.backtrace_locations||(Fe.backtrace_locations=(W=Fe.$backtrace(),W===me||W==null?me:s(W,"map",[],function(V){return V==null&&(V=me),Q(Q(Q("Thread"),"Backtrace"),"Location").$new(V)}))),Fe.backtrace_locations}),f(te,"$cause",function(){var W=this;return W.cause||me}),f(te,"$exception",function(W){var Fe=this;if(W==null&&(W=me),W===me||Fe===W)return Fe;var $e=Fe.$clone();return $e.message=W,Fe.backtrace&&($e.backtrace=Fe.backtrace.$dup()),$e.stack=Fe.stack,$e.cause=Fe.cause,$e},-1),f(te,"$message",function(){var W=this;return W.$to_s()}),f(te,"$full_message",function(W){var Fe,$e=this,V=me,w=me,$=me,o=me,c=me,p=me,m=me,E=me,T=me;return n.stderr==null&&(n.stderr=me),W==null&&(W=me),h(fe("Hash","skip_raise")?"constant":me)?(W=d(["highlight","order"],{highlight:n.stderr["$tty?"](),order:"top"}).$merge(h(V=W)?V:d([],{})),Fe=[W["$[]"]("highlight"),W["$[]"]("order")],w=Fe[0],$=Fe[1],h([!0,!1]["$include?"](w))||k.$raise(Q("ArgumentError"),"expected true or false as highlight: "+w),h(["top","bottom"]["$include?"]($))||k.$raise(Q("ArgumentError"),"expected :top or :bottom as order: "+$),h(w)?(o="\x1B[1;4m",c="\x1B[1m",p="\x1B[m"):o=c=p="",m=$e.$backtrace().$dup(),(C(m)||h(m["$empty?"]()))&&(m=$e.$caller()),E=m.$shift(),T=""+E+": ",T=N(T,""+c+$e.$to_s()+" ("+o+$e.$class()+p+c+")"+p+`
434
+ `),T=N(T,s(m,"map",[],function(je){return je==null&&(je=me)," from "+je+`
435
+ `}).$join()),h($e.$cause())&&(T=N(T,$e.$cause().$full_message(d(["highlight"],{highlight:w})))),U($,"bottom")&&(T=T.$split(`
436
+ `).$reverse().$join(`
437
+ `),T=N(""+c+"Traceback"+p+` (most recent call last):
438
+ `,T)),T):""+$e.message+`
439
+ `+$e.stack},-1),f(te,"$inspect",function(){var W=this,Fe=me;return Fe=W.$to_s(),h(Fe["$empty?"]())?W.$class().$to_s():"#<"+W.$class().$to_s()+": "+W.$to_s()+">"}),f(te,"$set_backtrace",function(W){var Fe=this,$e=!0,V,w;if(W===me)Fe.backtrace=me,Fe.stack="";else if(W.$$is_string)Fe.backtrace=[W],Fe.stack=" from "+W;else{if(W.$$is_array){for(V=0,w=W.length;V<w;V++)if(!W[V].$$is_string){$e=!1;break}}else $e=!1;$e===!1&&k.$raise(Q("TypeError"),"backtrace must be Array of String"),Fe.backtrace=W,Fe.stack=s(W,"map",[],function(o){return o==null&&(o=me),N(" from ",o)}).join(`
440
+ `)}return W}),f(te,"$to_s",function(){var W=this,Fe=me,$e=me;return h(Fe=h($e=W.message)?W.message.$to_s():$e)?Fe:W.$class().$to_s()})}("::",Error,ne),t("::",Q("Exception"),"ScriptError"),t("::",Q("ScriptError"),"SyntaxError"),t("::",Q("ScriptError"),"LoadError"),t("::",Q("ScriptError"),"NotImplementedError"),t("::",Q("Exception"),"SystemExit"),t("::",Q("Exception"),"NoMemoryError"),t("::",Q("Exception"),"SignalException"),t("::",Q("SignalException"),"Interrupt"),t("::",Q("Exception"),"SecurityError"),t("::",Q("Exception"),"SystemStackError"),t("::",Q("Exception"),"StandardError"),t("::",Q("StandardError"),"EncodingError"),t("::",Q("StandardError"),"ZeroDivisionError"),t("::",Q("StandardError"),"NameError"),t("::",Q("NameError"),"NoMethodError"),t("::",Q("StandardError"),"RuntimeError"),t("::",Q("RuntimeError"),"FrozenError"),t("::",Q("StandardError"),"LocalJumpError"),t("::",Q("StandardError"),"TypeError"),t("::",Q("StandardError"),"ArgumentError"),t("::",Q("ArgumentError"),"UncaughtThrowError"),t("::",Q("StandardError"),"IndexError"),t("::",Q("IndexError"),"StopIteration"),t("::",Q("StopIteration"),"ClosedQueueError"),t("::",Q("IndexError"),"KeyError"),t("::",Q("StandardError"),"RangeError"),t("::",Q("RangeError"),"FloatDomainError"),t("::",Q("StandardError"),"IOError"),t("::",Q("IOError"),"EOFError"),t("::",Q("StandardError"),"SystemCallError"),t("::",Q("StandardError"),"RegexpError"),t("::",Q("StandardError"),"ThreadError"),t("::",Q("StandardError"),"FiberError"),O.$autoload("Errno","corelib/error/errno"),function(be,le){var Ee=t(be,le,"FrozenError");return Ee.$attr_reader("receiver"),f(Ee,"$initialize",function te(Ce,fe){var x;te.$$p;var Ae=this;return te.$$p=null,fe=j(fe),x=fe.$$smap.receiver,x==null&&(x=me),D(Ae,G(Ae,"initialize",te,!1,!0),"initialize",[Ce],null),Ae.receiver=x},-2)}("::",Q("RuntimeError")),function(be,le){var Ee=t(be,le,"UncaughtThrowError"),te=Ee.$$prototype;return te.tag=me,Ee.$attr_reader("tag","value"),f(Ee,"$initialize",function Ce(fe,x){Ce.$$p;var Ae=this;return Ce.$$p=null,x==null&&(x=me),Ae.tag=fe,Ae.value=x,D(Ae,G(Ae,"initialize",Ce,!1,!0),"initialize",["uncaught throw "+Ae.tag.$inspect()],null)},-2)}("::",Q("ArgumentError")),function(be,le){var Ee=t(be,le,"NameError");return Ee.$attr_reader("name"),f(Ee,"$initialize",function te(Ce,fe){te.$$p;var x=this;return te.$$p=null,fe==null&&(fe=me),D(x,G(x,"initialize",te,!1,!0),"initialize",[Ce],null),x.name=fe},-2)}("::",null),function(be,le){var Ee=t(be,le,"NoMethodError");return Ee.$attr_reader("args"),f(Ee,"$initialize",function te(Ce,fe,x){te.$$p;var Ae=this;return te.$$p=null,fe==null&&(fe=me),x==null&&(x=[]),D(Ae,G(Ae,"initialize",te,!1,!0),"initialize",[Ce,fe],null),Ae.args=x},-2)}("::",null),function(be,le){var Ee=t(be,le,"StopIteration");return Ee.$attr_reader("result")}("::",null),function(be,le){var Ee=t(be,le,"KeyError"),te=Ee.$$prototype;return te.receiver=te.key=me,f(Ee,"$initialize",function Ce(fe,x){var Ae,B;Ce.$$p;var he=this;return Ce.$$p=null,x=j(x),Ae=x.$$smap.receiver,Ae==null&&(Ae=me),B=x.$$smap.key,B==null&&(B=me),D(he,G(he,"initialize",Ce,!1,!0),"initialize",[fe],null),he.receiver=Ae,he.key=B},-2),f(Ee,"$receiver",function(){var fe=this,x=me;return h(x=fe.receiver)?x:k.$raise(Q("ArgumentError"),"no receiver is available")}),f(Ee,"$key",function(){var fe=this,x=me;return h(x=fe.key)?x:k.$raise(Q("ArgumentError"),"no key is available")})}("::",null),function(be,le){var Ee=de(be,"JS"),te=[Ee].concat(le);return t(te[0],null,"Error"),me}("::",ne)};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,l=e.NilClass,f=e.slice,h=e.truthy,d=e.rb_gt,k=e.alias,C=e.nil,N=e.$$$;return e.add_stubs("raise,name,new,>,length,Rational,to_i"),function(U,O,j){var D=t(U,O,"NilClass");return D.$$prototype.$$meta=D,function(G,de){return n(G,"$allocate",function(){var me=this;return r.$raise(N("TypeError"),"allocator undefined for "+me.$name())}),e.udef(G,"$new"),C}(e.get_singleton_class(D)),n(D,"$!",i(!0)),n(D,"$&",i(!1)),n(D,"$|",function(de){return de!==!1&&de!==C}),n(D,"$^",function(de){return de!==!1&&de!==C}),n(D,"$==",function(de){return de===C}),n(D,"$dup",i(C)),n(D,"$clone",function(de){return de=s(de),de.$$smap.freeze,C},-1),n(D,"$inspect",i("nil")),n(D,"$nil?",i(!0)),n(D,"$singleton_class",function(){return l}),n(D,"$to_a",function(){return[]}),n(D,"$to_h",function(){return e.hash()}),n(D,"$to_i",i(0)),n(D,"$to_s",i("")),n(D,"$to_c",function(){return N("Complex").$new(0,0)}),n(D,"$rationalize",function(de){var ne,me;return ne=f(arguments),me=ne,h(d(me.$length(),1))&&r.$raise(N("ArgumentError")),r.$Rational(0,1)},-1),n(D,"$to_r",function(){return r.$Rational(0,1)}),n(D,"$instance_variables",function(){return[]}),k(D,"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,l=e.slice,f=e.truthy,h=e.send2,d=e.find_super,k=e.to_a,C=e.alias,N=e.nil,U=e.$$$;return e.add_stubs("raise,name,==,to_s,__id__"),function(O,j,D){var G=t(O,j,"Boolean");e.prop(G.$$prototype,"$$is_boolean",!0);for(var de=["$$class","$$meta"],ne=0;ne<de.length;ne++)Object.defineProperty(G.$$prototype,de[ne],{configurable:!0,enumerable:!1,get:function(){return this==!0?e.TrueClass:this==!1?e.FalseClass:e.Boolean}});return Object.defineProperty(G.$$prototype,"$$id",{configurable:!0,enumerable:!1,get:function(){return this==!0?2:this==!1?0:N}}),function(me,Q){return n(me,"$allocate",function(){var le=this;return r.$raise(U("TypeError"),"allocator undefined for "+le.$name())}),e.udef(me,"$new"),N}(e.get_singleton_class(G)),n(G,"$__id__",function(){var Q=this;return Q.valueOf()?2:0}),n(G,"$!",function(){var Q=this;return Q!=!0}),n(G,"$&",function(Q){var be=this;return be==!0?Q!==!1&&Q!==N:!1}),n(G,"$|",function(Q){var be=this;return be==!0?!0:Q!==!1&&Q!==N}),n(G,"$^",function(Q){var be=this;return be==!0?Q===!1||Q===N:Q!==!1&&Q!==N}),n(G,"$==",function(Q){var be=this;return be==!0===Q.valueOf()}),n(G,"$singleton_class",function(){var Q=this;return Q.$$meta}),n(G,"$to_s",function(){var Q=this;return Q==!0?"true":"false"}),n(G,"$dup",i),n(G,"$clone",function(Q){var be=this;return Q=s(Q),Q.$$smap.freeze,be},-1),n(G,"$method_missing",function me(Q,be){var le=me.$$p||N,Ee,te,Ce=this;me.$$p=null,Ee=l(arguments,1),te=Ee;var fe=Ce.$$class.$$prototype[e.jsid(Q)];return f(typeof fe<"u"&&!fe.$$stub)||h(Ce,d(Ce,"method_missing",me,!1,!0),"method_missing",[Q].concat(k(te)),le),e.send(Ce,fe,te,le)},-2),n(G,"$respond_to_missing?",function(Q,be){var le=this,Ee=le.$$class.$$prototype[e.jsid(Q)];return typeof Ee<"u"&&!Ee.$$stub},-2),C(G,"eql?","=="),C(G,"equal?","=="),C(G,"inspect","to_s"),C(G,"object_id","__id__")}("::",Boolean),t("::",U("Boolean"),"TrueClass"),t("::",U("Boolean"),"FalseClass"),N};Opal.modules["corelib/comparable"]=function(e){var t=e.truthy,r=e.module,n=e.rb_gt,i=e.rb_lt,s=e.eqeqeq,l=e.Kernel,f=e.def,h=e.nil,d=e.$$$;return e.add_stubs(">,<,===,raise,class,<=>,equal?"),function(k){var C=r(k,"Comparable"),N=h;function U(D){return e.is_a(D,e.Integer)?D:n(D,0)?1:i(D,0)?-1:0}function O(D,G){var de;s(h,N=G)||s(!0,N)||s(!1,N)||s(d("Integer"),N)||s(d("Float"),N)?de=G.$inspect():de=G.$$class,l.$raise(d("ArgumentError"),"comparison of "+D.$class()+" with "+de+" failed")}function j(D,G){var de=D["$<=>"](G);return t(de)||O(D,G),U(de)}return f(C,"$==",function(G){var de=this,ne=h;return t(de["$equal?"](G))?!0:de["$<=>"]==e.Kernel["$<=>"]?!1:de.$$comparable?(de.$$comparable=!1,!1):t(ne=de["$<=>"](G))?U(ne)==0:!1}),f(C,"$>",function(G){var de=this;return j(de,G)>0}),f(C,"$>=",function(G){var de=this;return j(de,G)>=0}),f(C,"$<",function(G){var de=this;return j(de,G)<0}),f(C,"$<=",function(G){var de=this;return j(de,G)<=0}),f(C,"$between?",function(G,de){var ne=this;return!(i(ne,G)||n(ne,de))}),f(C,"$clamp",function(G,de){var ne=this;de==null&&(de=h);var me,Q;if(de===h&&(e.is_a(G,e.Range)||l.$raise(d("TypeError"),"wrong argument type "+G.$class()+" (expected Range)"),Q=G.excl,de=G.end,G=G.begin,de!==h&&Q&&l.$raise(d("ArgumentError"),"cannot clamp with an exclusive range")),G!==h&&de!==h&&j(G,de)>0&&l.$raise(d("ArgumentError"),"min argument must be smaller than max argument"),G!==h){if(me=j(ne,G),me==0)return ne;if(me<0)return G}return de!==h&&(me=j(ne,de),me>0)?de:ne},-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,l=e.send2,f=e.find_super,h=e.def,d=e.truthy,k=e.gvars,C=e.slice,N=e.Kernel,U=e.Opal,O=e.alias,j=e.send,D=e.hash2,G=e.rb_plus,de=e.ensure_kwargs,ne=e.rb_ge,me=e.to_a,Q=e.eqeqeq,be=e.rb_minus,le=e.return_ivar,Ee=[],te=e.nil,Ce=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("::",Ce("StandardError"),"RegexpError"),function(fe,x,Ae){var B=i(fe,x,"Regexp"),he=[B].concat(Ae),W=e.$r(he);return s(B,"IGNORECASE",1),s(B,"EXTENDED",2),s(B,"MULTILINE",4),e.prop(B.$$prototype,"$$is_regexp",!0),function(Fe,$e){var V=[Fe].concat($e),w=e.$r(V);return h(Fe,"$allocate",function $(){var o=$.$$p||te,c=this,p=te;return $.$$p=null,p=l(c,f(c,"allocate",$,!1,!0),"allocate",[],o),p.uninitialized=!0,p}),h(Fe,"$escape",function(o){return e.escape_regexp(o)}),h(Fe,"$last_match",function(o){return k["~"]==null&&(k["~"]=te),o==null&&(o=te),d(o["$nil?"]())?k["~"]:d(k["~"])?k["~"]["$[]"](o):te},-1),h(Fe,"$union",function(o){var c,p,m=this;c=C(arguments),p=c;var E,T,re,je,nt;if(p.length==0)return/(?!)/;if(p.length==1&&p[0].$$is_regexp)return p[0];E=p[0].$$is_array,p.length>1&&E&&N.$raise(Ce("TypeError"),"no implicit conversion of Array into String"),E&&(p=p[0]),je=void 0,T=[];for(var ft=0;ft<p.length;ft++)re=p[ft],re.$$is_string?T.push(m.$escape(re)):re.$$is_regexp?(nt=re.$options(),je!=null&&je!=nt&&N.$raise(Ce("TypeError"),"All expressions must use the same options"),je=nt,T.push("("+re.source+")")):T.push(m.$escape(re.$to_str()));return m.$new(T.$join("|"),je)},-1),h(Fe,"$new",function(o,c){if(o.$$is_regexp)return new RegExp(o);if(o=U["$coerce_to!"](o,Ce("String"),"to_str"),o.charAt(o.length-1)==="\\"&&o.charAt(o.length-2)!=="\\"&&N.$raise(Ce("RegexpError"),"too short escape sequence: /"+o+"/"),o=o.replace("\\A","^").replace("\\z","$"),c===void 0||c["$!"]())return new RegExp(o);if(c.$$is_number){var p="";w("IGNORECASE")&c&&(p+="i"),w("MULTILINE")&c&&(p+="m"),c=p}else c="i";return new RegExp(o,c)},-2),O(Fe,"compile","new"),O(Fe,"quote","escape")}(e.get_singleton_class(B),he),h(B,"$==",function($e){var V=this;return $e instanceof RegExp&&V.toString()===$e.toString()}),h(B,"$===",function($e){var V=this;return V.$match(U["$coerce_to?"]($e,Ce("String"),"to_str"))!==te}),h(B,"$=~",function($e){var V=this,w=te;return k["~"]==null&&(k["~"]=te),d(w=V.$match($e))?k["~"].$begin(0):w}),h(B,"$freeze",function(){var $e=this;return d($e["$frozen?"]())?$e:($e.hasOwnProperty("$$g")||r($e,"$$g",null),$e.hasOwnProperty("$$gm")||r($e,"$$gm",null),n($e))}),h(B,"$inspect",function(){var $e=this,V=/^\/(.*)\/([^\/]*)$/,w=$e.toString(),$=V.exec(w);if($){for(var o=$[1],c=$[2],p=o.split(""),m=p.length,E=!1,T="",re=0;re<m;re++){var je=p[re];!E&&je=="/"&&(T=T.concat("\\")),T=T.concat(je),je=="\\"?E?E=!1:E=!0:E=!1}return"/"+T+"/"+c}else return w}),h(B,"$match",function Fe($e,V){var w=Fe.$$p||te,$=this;if(k["~"]==null&&(k["~"]=te),Fe.$$p=null,$.uninitialized&&N.$raise(Ce("TypeError"),"uninitialized Regexp"),V===void 0){if($e===te)return k["~"]=te;var o=$.exec(t($e,Ce("String"),"to_str"));return o?(k["~"]=Ce("MatchData").$new($,o),w===te?k["~"]:e.yield1(w,k["~"])):k["~"]=te}if(V=t(V,Ce("Integer"),"to_int"),$e===te||($e=t($e,Ce("String"),"to_str"),V<0&&(V+=$e.length,V<0)))return k["~"]=te;for(var c,p=e.global_regexp($);;){if(c=p.exec($e),c===null)return k["~"]=te;if(c.index>=V)return k["~"]=Ce("MatchData").$new(p,c),w===te?k["~"]:e.yield1(w,k["~"]);p.lastIndex=c.index+1}},-2),h(B,"$match?",function($e,V){var w=this;if(w.uninitialized&&N.$raise(Ce("TypeError"),"uninitialized Regexp"),V===void 0)return $e===te?!1:w.test(t($e,Ce("String"),"to_str"));if(V=t(V,Ce("Integer"),"to_int"),$e===te||($e=t($e,Ce("String"),"to_str"),V<0&&(V+=$e.length,V<0)))return!1;var $,o=e.global_regexp(w);return $=o.exec($e),!($===null||$.index<V)},-2),h(B,"$names",function(){var $e=this;return j($e.$source().$scan(/\(?<(\w+)>/,D(["no_matchdata"],{no_matchdata:!0})),"map",[],"first".$to_proc()).$uniq()}),h(B,"$named_captures",function(){var $e=this;return j(j(j($e.$source().$scan(/\(?<(\w+)>/,D(["no_matchdata"],{no_matchdata:!0})),"map",[],"first".$to_proc()).$each_with_index(),"group_by",[],"first".$to_proc()),"transform_values",[],function(w){return w==null&&(w=te),j(w,"map",[],function(o){return o==null&&(o=te),G(o.$last(),1)})})}),h(B,"$~",function(){var $e=this;return k._==null&&(k._=te),$e["$=~"](k._)}),h(B,"$source",function(){var $e=this;return $e.source}),h(B,"$options",function(){var $e=this;$e.uninitialized&&N.$raise(Ce("TypeError"),"uninitialized Regexp");var V=0;return $e.multiline&&(V|=W("MULTILINE")),$e.ignoreCase&&(V|=W("IGNORECASE")),V}),h(B,"$casefold?",function(){var $e=this;return $e.ignoreCase}),O(B,"eql?","=="),O(B,"to_s","source")}("::",RegExp,Ee),function(fe,x,Ae){var B=i(fe,x,"MatchData"),he=[B].concat(Ae),W=e.$r(he),Fe=B.$$prototype;return Fe.matches=te,B.$attr_reader("post_match","pre_match","regexp","string"),h(B,"$initialize",function(V,w,$){var o,c=this;$=de($),o=$.$$smap.no_matchdata,o==null&&(o=!1),d(o)||(k["~"]=c),c.regexp=V,c.begin=w.index,c.string=w.input,c.pre_match=w.input.slice(0,w.index),c.post_match=w.input.slice(w.index+w[0].length),c.matches=[];for(var p=0,m=w.length;p<m;p++){var E=w[p];E==null?c.matches.push(te):c.matches.push(E)}},-3),h(B,"$match",function(V){var w=this,$=te;return d($=w["$[]"](V))?$:d(V["$is_a?"](W("Integer")))&&d(ne(V,w.$length()))?N.$raise(Ce("IndexError"),"index "+V+" out of matches"):te}),h(B,"$match_length",function(V){var w,$=this;return w=$.$match(V),w===te||w==null?te:w.$length()}),h(B,"$[]",function(V){var w,$,o=this;return w=C(arguments),$=w,$[0].$$is_string?(o.$regexp().$names()["$include?"]($["$[]"](0))["$!"]()&&N.$raise(Ce("IndexError"),"undefined group name reference: "+$["$[]"](0)),o.$named_captures()["$[]"]($["$[]"](0))):j(o.matches,"[]",me($))},-1),h(B,"$offset",function(V){var w=this;return V!==0&&N.$raise(Ce("ArgumentError"),"MatchData#offset only supports 0th element"),[w.begin,w.begin+w.matches[V].length]}),h(B,"$==",function(V){var w=this,$=te,o=te,c=te,p=te;return Q(Ce("MatchData"),V)?d($=d(o=d(c=d(p=w.string==V.string)?w.regexp.toString()==V.regexp.toString():p)?w.pre_match==V.pre_match:c)?w.post_match==V.post_match:o)?w.begin==V.begin:$:!1}),h(B,"$begin",function(V){var w=this;return V!==0&&N.$raise(Ce("ArgumentError"),"MatchData#begin only supports 0th element"),w.begin}),h(B,"$end",function(V){var w=this;return V!==0&&N.$raise(Ce("ArgumentError"),"MatchData#end only supports 0th element"),w.begin+w.matches[V].length}),h(B,"$captures",function(){var V=this;return V.matches.slice(1)}),h(B,"$named_captures",function(){var V=this,w=te;return w=V.$captures(),j(V.$regexp().$named_captures(),"transform_values",[],function(o){return o==null&&(o=te),w["$[]"](be(o.$last(),1))})}),h(B,"$names",function(){var V=this;return V.$regexp().$names()}),h(B,"$inspect",function(){var V=this,w="#<MatchData "+V.matches[0].$inspect();if(V.$regexp().$names()["$empty?"]())for(var $=1,o=V.matches.length;$<o;$++)w+=" "+$+":"+V.matches[$].$inspect();else j(V.$named_captures(),"each",[],function(p,m){return p==null&&(p=te),m==null&&(m=te),w+=" "+p+":"+m.$inspect()});return w+">"}),h(B,"$length",function(){var V=this;return V.matches.length}),h(B,"$to_a",le("matches")),h(B,"$to_s",function(){var V=this;return V.matches[0]}),h(B,"$values_at",function(V){var w,$,o=this;w=C(arguments),$=w;var c,p,m,E=[];for(c=0;c<$.length;c++){if($[c].$$is_range&&(p=$[c].$to_a(),p.unshift(c,1),Array.prototype.splice.apply($,p)),m=U["$coerce_to!"]($[c],Ce("Integer"),"to_int"),m<0&&(m+=o.matches.length,m<0)){E.push(te);continue}E.push(o.matches[m])}return E},-1),O(B,"eql?","=="),O(B,"size","length")}(Ee[0],null,Ee)};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,l=e.def,f=e.Opal,h=e.defs,d=e.slice,k=e.send,C=e.to_a,N=e.extract_kwargs,U=e.ensure_kwargs,O=e.eqeqeq,j=e.Kernel,D=e.truthy,G=e.gvars,de=e.rb_divide,ne=e.rb_plus,me=e.eqeq,Q=e.hash2,be=e.alias,le=e.const_set,Ee=e.top,te=[],Ce=e.$r(te),fe=e.nil,x=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"),Ee.$require("corelib/comparable"),Ee.$require("corelib/regexp"),function(Ae,B,he){var W=s(Ae,B,"String"),Fe=[W].concat(he),$e=e.$r(Fe);W.$include(x("Comparable")),e.prop(W.$$prototype,"$$is_string",!0),l(W,"$__id__",function(){var $=this;return $.toString()}),h(W,"$try_convert",function($){return f["$coerce_to?"]($,x("String"),"to_str")}),h(W,"$new",function($){var o,c,p=this;o=d(arguments),c=o;var m=c[0]||"",E=c[c.length-1];return m=t(m,x("String"),"to_str"),E&&E.$$is_hash&&E.$$smap.encoding&&(m=m.$force_encoding(E.$$smap.encoding)),m=new p.$$constructor(m),m.$initialize.$$pristine||k(m,"initialize",C(c)),m},-1),l(W,"$initialize",function($,o){var c,p;return c=d(arguments),p=N(c),p=U(p),c.length>0&&c.shift(),p.$$smap.encoding,p.$$smap.capacity,fe},-1),l(W,"$%",function($){var o=this;return O(x("Array"),$)?k(o,"format",[o].concat(C($))):o.$format(o,$)}),l(W,"$*",function($){var o=this;if($=t($,x("Integer"),"to_int"),$<0&&j.$raise(x("ArgumentError"),"negative argument"),$===0)return"";var c="",p=o.toString();for(p.length*$>=1<<28&&j.$raise(x("RangeError"),"multiply count must not overflow maximum string size");($&1)===1&&(c+=p),$>>>=1,$!==0;)p+=p;return c}),l(W,"$+",function($){var o=this;if($=t($,x("String"),"to_str"),$==""&&o.$$class===e.String)return o;if(o==""&&$.$$class===e.String)return $;var c=o+$;return o.encoding===c.encoding&&$.encoding===c.encoding||o.encoding.name==="UTF-8"||$.encoding.name==="UTF-8"?c:e.enc(c,o.encoding)}),l(W,"$<=>",function($){var o=this;if(D($["$respond_to?"]("to_str")))return $=$.$to_str().$to_s(),o>$?1:o<$?-1:0;var c=$["$<=>"](o);return c===fe?fe:c>0?-1:c<0?1:0}),l(W,"$==",function($){var o=this;return $.$$is_string?o.toString()===$.toString():r($,"$to_str")?$["$=="](o):!1}),l(W,"$=~",function($){var o=this;return $.$$is_string&&j.$raise(x("TypeError"),"type mismatch: String given"),$["$=~"](o)}),l(W,"$[]",function($,o){var c=this,p=c.length,m,E;if($.$$is_range)return m=$.excl,E=$,o=$.end===fe?-1:t($.end,x("Integer"),"to_int"),$=$.begin===fe?0:t($.begin,x("Integer"),"to_int"),Math.abs($)>p?fe:($<0&&($+=p),o<0&&(o+=p),(!m||E.end===fe)&&(o+=1),o=o-$,o<0&&(o=0),c.substr($,o));if($.$$is_string)return o!=null&&j.$raise(x("TypeError")),c.indexOf($)!==-1?$:fe;if($.$$is_regexp){var T=c.match($);return T===null?(G["~"]=fe,fe):(G["~"]=x("MatchData").$new($,T),o==null?T[0]:(o=t(o,x("Integer"),"to_int"),o<0&&-o<T.length?T[o+=T.length]:o>=0&&o<T.length?T[o]:fe))}return $=t($,x("Integer"),"to_int"),$<0&&($+=p),o==null?$>=p||$<0?fe:c.substr($,1):(o=t(o,x("Integer"),"to_int"),o<0||$>p||$<0?fe:c.substr($,o))},-2),l(W,"$b",function(){var $=this;return new String($).$force_encoding("binary")}),l(W,"$capitalize",function(){var $=this;return $.charAt(0).toUpperCase()+$.substr(1).toLowerCase()}),l(W,"$casecmp",function($){var o=this;if(!D($["$respond_to?"]("to_str")))return fe;$=t($,x("String"),"to_str").$to_s();var c=/^[\x00-\x7F]*$/;return c.test(o)&&c.test($)&&(o=o.toLowerCase(),$=$.toLowerCase()),o["$<=>"]($)}),l(W,"$casecmp?",function($){var o=this,c=o.$casecmp($);return c===fe?fe:c===0}),l(W,"$center",function($,o){var c=this;if(o==null&&(o=" "),$=t($,x("Integer"),"to_int"),o=t(o,x("String"),"to_str").$to_s(),D(o["$empty?"]())&&j.$raise(x("ArgumentError"),"zero width padding"),D($<=c.length))return c;var p=c.$ljust(de(ne($,c.length),2).$ceil(),o),m=c.$rjust(de(ne($,c.length),2).$floor(),o);return m+p.slice(c.length)},-2),l(W,"$chomp",function($){var o=this;if(G["/"]==null&&(G["/"]=fe),$==null&&($=G["/"]),D($===fe||o.length===0))return o;$=f["$coerce_to!"]($,x("String"),"to_str").$to_s();var c;if($===`
441
+ `)c=o.replace(/\r?\n?$/,"");else if($==="")c=o.replace(/(\r?\n)+$/,"");else if(o.length>=$.length){var p=o.substr(o.length-$.length,$.length);p===$&&(c=o.substr(0,o.length-$.length))}return c??o},-1),l(W,"$chop",function(){var $=this,o=$.length,c;return o<=1?c="":$.charAt(o-1)===`
442
+ `&&$.charAt(o-2)==="\r"?c=$.substr(0,o-2):c=$.substr(0,o-1),c}),l(W,"$chr",function(){var $=this;return $.charAt(0)}),l(W,"$clone",function($){var o,c=this,p=fe;return $=U($),o=$.$$smap.freeze,o==null&&(o=fe),D(o["$nil?"]())||me(o,!0)||me(o,!1)||c.$raise($e("ArgumentError"),"unexpected value for freeze: "+o.$class()),p=new String(c),p.$copy_singleton_methods(c),p.$initialize_clone(c,Q(["freeze"],{freeze:o})),me(o,!0)?p.$$frozen||(p.$$frozen=!0):D(o["$nil?"]())&&c.$$frozen&&(p.$$frozen=!0),p},-1),l(W,"$dup",function(){var $=this,o=fe;return o=new String($),o.$initialize_dup($),o}),l(W,"$count",function($){var o,c,p=this;o=d(arguments),c=o,c.length===0&&j.$raise(x("ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var m=V(c);return m===null?0:p.length-p.replace(new RegExp(m,"g"),"").length},-1),l(W,"$delete",function($){var o,c,p=this;o=d(arguments),c=o,c.length===0&&j.$raise(x("ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var m=V(c);return m===null?p:p.replace(new RegExp(m,"g"),"")},-1),l(W,"$delete_prefix",function($){var o=this;return $.$$is_string||($=t($,x("String"),"to_str")),o.slice(0,$.length)===$?o.slice($.length):o}),l(W,"$delete_suffix",function($){var o=this;return $.$$is_string||($=t($,x("String"),"to_str")),o.slice(o.length-$.length)===$?o.slice(0,o.length-$.length):o}),l(W,"$downcase",function(){var $=this;return $.toLowerCase()}),l(W,"$each_line",function w($,o){var c=w.$$p||fe,p,m,E,T,re=this;if(G["/"]==null&&(G["/"]=fe),w.$$p=null,p=d(arguments),m=N(p),m=U(m),p.length>0&&(E=p.shift()),E==null&&(E=G["/"]),T=m.$$smap.chomp,T==null&&(T=!1),c===fe)return re.$enum_for("each_line",E,Q(["chomp"],{chomp:T}));if(E===fe)return e.yield1(c,re),re;E=t(E,x("String"),"to_str");var je,nt,ft,yt,zt,_t,vt,mt;if(E.length===0){for(je=re.split(/((?:\r?\n){2})(?:(?:\r?\n)*)/),nt=0,ft=je.length;nt<ft;nt+=2)(je[nt]||je[nt+1])&&(mt=(je[nt]||"")+(je[nt+1]||""),T&&(mt=mt.$chomp(`
443
+ `)),e.yield1(c,mt));return re}for(zt=re.$chomp(E),_t=re.length!=zt.length,vt=zt.split(E),nt=0,yt=vt.length;nt<yt;nt++)mt=vt[nt],(nt<yt-1||_t)&&(mt+=E),T&&(mt=mt.$chomp(E)),e.yield1(c,mt);return re},-1),l(W,"$empty?",function(){var $=this;return $.length===0}),l(W,"$end_with?",function($){var o,c,p=this;o=d(arguments),c=o;for(var m=0,E=c.length;m<E;m++){var T=t(c[m],x("String"),"to_str").$to_s();if(p.length>=T.length&&p.substr(p.length-T.length,T.length)==T)return!0}return!1},-1),l(W,"$gsub",function w($,o){var c=w.$$p||fe,p=this;if(w.$$p=null,o===void 0&&c===fe)return p.$enum_for("gsub",$);var m="",E=fe,T=0,re,je;$.$$is_regexp?$=n($):($=t($,x("String"),"to_str"),$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));for(var nt;;){if(re=$.exec(p),re===null){G["~"]=fe,m+=p.slice(T);break}E=x("MatchData").$new($,re),o===void 0?(nt=$.lastIndex,je=c(re[0]),$.lastIndex=nt):o.$$is_hash?je=o["$[]"](re[0]).$to_s():(o.$$is_string||(o=t(o,x("String"),"to_str")),je=o.replace(/([\\]+)([0-9+&`'])/g,function(ft,yt,zt){if(yt.length%2===0)return ft;switch(zt){case"+":for(var _t=re.length-1;_t>0;_t--)if(re[_t]!==void 0)return yt.slice(1)+re[_t];return"";case"&":return yt.slice(1)+re[0];case"`":return yt.slice(1)+p.slice(0,re.index);case"'":return yt.slice(1)+p.slice(re.index+re[0].length);default:return yt.slice(1)+(re[zt]||"")}}).replace(/\\\\/g,"\\")),$.lastIndex===re.index?(m+=p.slice(T,re.index)+je+(p[re.index]||""),$.lastIndex+=1):m+=p.slice(T,re.index)+je,T=$.lastIndex}return G["~"]=E,m},-2),l(W,"$hash",function(){var $=this;return $.toString()}),l(W,"$hex",function(){var $=this;return $.$to_i(16)}),l(W,"$include?",function($){var o=this;return $.$$is_string||($=t($,x("String"),"to_str")),o.indexOf($)!==-1}),l(W,"$index",function($,o){var c=this,p,m,E;if(o===void 0)o=0;else if(o=t(o,x("Integer"),"to_int"),o<0&&(o+=c.length,o<0))return fe;if($.$$is_regexp)for(E=n($);;){if(m=E.exec(c),m===null){G["~"]=fe,p=-1;break}if(m.index>=o){G["~"]=x("MatchData").$new(E,m),p=m.index;break}E.lastIndex=m.index+1}else $=t($,x("String"),"to_str"),$.length===0&&o>c.length?p=-1:p=c.indexOf($,o);return p===-1?fe:p},-2),l(W,"$inspect",function(){var $=this,o=/[\\\"\x00-\x1f\u007F-\u009F\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c={"\x07":"\\a","\x1B":"\\e","\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\v":"\\v",'"':'\\"',"\\":"\\\\"},p=$.replace(o,function(m){return c[m]?c[m]:(m=m.charCodeAt(0),m<=255&&($.encoding["$binary?"]()||$.internal_encoding["$binary?"]())?"\\x"+("00"+m.toString(16).toUpperCase()).slice(-2):"\\u"+("0000"+m.toString(16).toUpperCase()).slice(-4))});return'"'+p.replace(/\#[\$\@\{]/g,"\\$&")+'"'}),l(W,"$intern",function(){var $=this;return $.toString()}),l(W,"$length",function(){var $=this;return $.length}),be(W,"size","length"),l(W,"$lines",function w($,o){var c=w.$$p||fe,p,m,E,T,re=this,je=fe;return G["/"]==null&&(G["/"]=fe),w.$$p=null,p=d(arguments),m=N(p),m=U(m),p.length>0&&(E=p.shift()),E==null&&(E=G["/"]),T=m.$$smap.chomp,T==null&&(T=!1),je=k(re,"each_line",[E,Q(["chomp"],{chomp:T})],c.$to_proc()),D(c)?re:je.$to_a()},-1),l(W,"$ljust",function($,o){var c=this;if(o==null&&(o=" "),$=t($,x("Integer"),"to_int"),o=t(o,x("String"),"to_str").$to_s(),D(o["$empty?"]())&&j.$raise(x("ArgumentError"),"zero width padding"),D($<=c.length))return c;var p=-1,m="";for($-=c.length;++p<$;)m+=o;return c+m.slice(0,$)},-2),l(W,"$lstrip",function(){var $=this;return $.replace(/^[\u0000\s]*/,"")}),l(W,"$ascii_only?",function(){var $=this;return $.encoding.ascii?/^[\x00-\x7F]*$/.test($):!1}),l(W,"$match",function w($,o){var c=w.$$p||fe,p=this;return w.$$p=null,(O($e("String"),$)||D($["$respond_to?"]("to_str")))&&($=x("Regexp").$new($.$to_str())),O(x("Regexp"),$)||j.$raise(x("TypeError"),"wrong argument type "+$.$class()+" (expected Regexp)"),k($,"match",[p,o],c.$to_proc())},-2),l(W,"$match?",function($,o){var c=this;return(O($e("String"),$)||D($["$respond_to?"]("to_str")))&&($=x("Regexp").$new($.$to_str())),O(x("Regexp"),$)||j.$raise(x("TypeError"),"wrong argument type "+$.$class()+" (expected Regexp)"),$["$match?"](c,o)},-2),l(W,"$next",function(){var $=this,o=$.length;if(o===0)return"";for(var c=$,p=$.search(/[a-zA-Z0-9]/),m=!1,E;o--;){if(E=$.charCodeAt(o),E>=48&&E<=57||E>=65&&E<=90||E>=97&&E<=122)switch(E){case 57:m=!0,E=48;break;case 90:m=!0,E=65;break;case 122:m=!0,E=97;break;default:m=!1,E+=1}else p===-1?E===255?(m=!0,E=0):(m=!1,E+=1):m=!0;if(c=c.slice(0,o)+String.fromCharCode(E)+c.slice(o+1),m&&(o===0||o===p)){switch(E){case 65:break;case 97:break;default:E+=1}o===0?c=String.fromCharCode(E)+c:c=c.slice(0,o)+String.fromCharCode(E)+c.slice(o),m=!1}if(!m)break}return c}),l(W,"$oct",function(){var $=this,o,c=$,p=8;return/^\s*_/.test(c)?0:(c=c.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/i,function(m,E,T,re){switch(re.charAt(0)){case"+":case"-":return m;case"0":if(re.charAt(1)==="x"&&T==="0x")return m}switch(T){case"0b":p=2;break;case"0":case"0o":p=8;break;case"0d":p=10;break;case"0x":p=16;break}return E+re}),o=parseInt(c.replace(/_(?!_)/g,""),p),isNaN(o)?0:o)}),l(W,"$ord",function(){var $=this;return typeof $.codePointAt=="function"?$.codePointAt(0):$.charCodeAt(0)}),l(W,"$partition",function($){var o=this,c,p;return $.$$is_regexp?(p=$.exec(o),p===null?c=-1:(x("MatchData").$new($,p),$=p[0],c=p.index)):($=t($,x("String"),"to_str"),c=o.indexOf($)),c===-1?[o,"",""]:[o.slice(0,c),o.slice(c,c+$.length),o.slice(c+$.length)]}),l(W,"$reverse",function(){var $=this;return $.split("").reverse().join("")}),l(W,"$rindex",function($,o){var c=this,p,m,E,T;if(o===void 0)o=c.length;else if(o=t(o,x("Integer"),"to_int"),o<0&&(o+=c.length,o<0))return fe;if($.$$is_regexp){for(m=null,E=n($);T=E.exec(c),!(T===null||T.index>o);)m=T,E.lastIndex=m.index+1;m===null?(G["~"]=fe,p=-1):(x("MatchData").$new(E,m),p=m.index)}else $=t($,x("String"),"to_str"),p=c.lastIndexOf($,o);return p===-1?fe:p},-2),l(W,"$rjust",function($,o){var c=this;if(o==null&&(o=" "),$=t($,x("Integer"),"to_int"),o=t(o,x("String"),"to_str").$to_s(),D(o["$empty?"]())&&j.$raise(x("ArgumentError"),"zero width padding"),D($<=c.length))return c;var p=Math.floor($-c.length),m=Math.floor(p/o.length),E=Array(m+1).join(o),T=p-E.length;return E+o.slice(0,T)+c},-2),l(W,"$rpartition",function($){var o=this,c,p,m,E;if($.$$is_regexp){for(p=null,m=n($);E=m.exec(o),E!==null;)p=E,m.lastIndex=p.index+1;p===null?c=-1:(x("MatchData").$new(m,p),$=p[0],c=p.index)}else $=t($,x("String"),"to_str"),c=o.lastIndexOf($);return c===-1?["","",o]:[o.slice(0,c),o.slice(c,c+$.length),o.slice(c+$.length)]}),l(W,"$rstrip",function(){var $=this;return $.replace(/[\s\u0000]*$/,"")}),l(W,"$scan",function w($,o){var c=w.$$p||fe,p,m=this;w.$$p=null,o=U(o),p=o.$$smap.no_matchdata,p==null&&(p=!1);var E=[],T=fe,re;for($.$$is_regexp?$=n($):($=t($,x("String"),"to_str"),$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));(re=$.exec(m))!=null;)T=x("MatchData").$new($,re,Q(["no_matchdata"],{no_matchdata:p})),c===fe?re.length==1?E.push(re[0]):E.push(T.$captures()):re.length==1?e.yield1(c,re[0]):e.yield1(c,T.$captures()),$.lastIndex===re.index&&($.lastIndex+=1);return p||(G["~"]=T),c!==fe?m:E},-2),l(W,"$singleton_class",function(){var $=this;return e.get_singleton_class($)}),l(W,"$split",function($,o){var c=this,p=fe;if(G[";"]==null&&(G[";"]=fe),c.length===0)return[];if(o===void 0)o=0;else if(o=f["$coerce_to!"](o,x("Integer"),"to_int"),o===1)return[c];($===void 0||$===fe)&&($=D(p=G[";"])?p:" ");var m=[],E=c.toString(),T=0,re,je,nt;if($.$$is_regexp?$=n($):($=t($,x("String"),"to_str").$to_s(),$===" "?($=/\s+/gm,E=E.replace(/^\s+/,"")):$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm")),m=E.split($),m.length===1&&m[0]===E)return[m[0]];for(;(je=m.indexOf(void 0))!==-1;)m.splice(je,1);if(o===0){for(;m[m.length-1]==="";)m.length-=1;return m}if(re=$.exec(E),o<0){if(re!==null&&re[0]===""&&$.source.indexOf("(?=")===-1)for(je=0,nt=re.length;je<nt;je++)m.push("");return m}if(re!==null&&re[0]==="")return m.splice(o-1,m.length-1,m.slice(o-1).join("")),m;if(o>=m.length)return m;for(je=0;re!==null&&(je++,T=$.lastIndex,je+1!==o);)re=$.exec(E);return m.splice(o-1,m.length-1,E.slice(T)),m},-1),l(W,"$squeeze",function($){var o,c,p=this;if(o=d(arguments),c=o,c.length===0)return p.replace(/(.)\1+/g,"$1");var m=V(c);return m===null?p:p.replace(new RegExp("("+m+")\\1+","g"),"$1")},-1),l(W,"$start_with?",function($){var o,c,p=this;o=d(arguments),c=o;for(var m=0,E=c.length;m<E;m++)if(c[m].$$is_regexp){var T=c[m],re=T.exec(p);if(re!=null&&re.index===0)return G["~"]=x("MatchData").$new(T,re),!0;G["~"]=fe}else{var je=t(c[m],x("String"),"to_str").$to_s();if(p.indexOf(je)===0)return!0}return!1},-1),l(W,"$strip",function(){var $=this;return $.replace(/^[\s\u0000]*|[\s\u0000]*$/g,"")}),l(W,"$sub",function w($,o){var c=w.$$p||fe,p=this;w.$$p=null,$.$$is_regexp||($=t($,x("String"),"to_str"),$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")));var m,E=$.exec(p);return E===null?(G["~"]=fe,m=p.toString()):(x("MatchData").$new($,E),o===void 0?(c===fe&&j.$raise(x("ArgumentError"),"wrong number of arguments (1 for 2)"),m=p.slice(0,E.index)+c(E[0])+p.slice(E.index+E[0].length)):o.$$is_hash?m=p.slice(0,E.index)+o["$[]"](E[0]).$to_s()+p.slice(E.index+E[0].length):(o=t(o,x("String"),"to_str"),o=o.replace(/([\\]+)([0-9+&`'])/g,function(T,re,je){if(re.length%2===0)return T;switch(je){case"+":for(var nt=E.length-1;nt>0;nt--)if(E[nt]!==void 0)return re.slice(1)+E[nt];return"";case"&":return re.slice(1)+E[0];case"`":return re.slice(1)+p.slice(0,E.index);case"'":return re.slice(1)+p.slice(E.index+E[0].length);default:return re.slice(1)+(E[je]||"")}}).replace(/\\\\/g,"\\"),m=p.slice(0,E.index)+o+p.slice(E.index+E[0].length))),m},-2),l(W,"$sum",function($){var o=this;$==null&&($=16),$=t($,x("Integer"),"to_int");for(var c=0,p=o.length,m=0;m<p;m++)c+=o.charCodeAt(m);return $<=0?c:c&Math.pow(2,$)-1},-1),l(W,"$swapcase",function(){var $=this,o=$.replace(/([a-z]+)|([A-Z]+)/g,function(c,p,m){return p?c.toUpperCase():c.toLowerCase()});return o}),l(W,"$to_f",function(){var $=this;if($.charAt(0)==="_")return 0;var o=parseFloat($.replace(/_/g,""));return isNaN(o)||o==1/0||o==-1/0?0:o}),l(W,"$to_i",function($){var o=this;$==null&&($=10);var c,p=o.toLowerCase(),m=t($,x("Integer"),"to_int");return(m===1||m<0||m>36)&&j.$raise(x("ArgumentError"),"invalid radix "+m),/^\s*_/.test(p)?0:(p=p.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/,function(E,T,re,je){switch(je.charAt(0)){case"+":case"-":return E;case"0":if(je.charAt(1)==="x"&&re==="0x"&&(m===0||m===16))return E}switch(re){case"0b":if(m===0||m===2)return m=2,T+je;break;case"0":case"0o":if(m===0||m===8)return m=8,T+je;break;case"0d":if(m===0||m===10)return m=10,T+je;break;case"0x":if(m===0||m===16)return m=16,T+je;break}return E}),c=parseInt(p.replace(/_(?!_)/g,""),m),isNaN(c)?0:c)},-1),l(W,"$to_proc",function w(){w.$$p;var $=this,o=fe,c=fe,p=fe;return w.$$p=null,o=$.valueOf(),c=e.jsid(o),p=k(j,"proc",[],function m(E){var T=m.$$p||fe,re,je;m.$$p=null,re=d(arguments),je=re,je.length===0&&j.$raise(x("ArgumentError"),"no receiver given");var nt=je[0];nt==null&&(nt=fe);var ft=nt[c];return ft?je=je.slice(1):(ft=nt.$method_missing,je[0]=o),typeof T=="function"&&(ft.$$p=T),je.length===0?ft.call(nt):ft.apply(nt,je)},-1),p.$$source_location=fe,p}),l(W,"$to_s",function(){var $=this;return $.toString()}),l(W,"$tr",function($,o){var c=this;if($=t($,x("String"),"to_str").$to_s(),o=t(o,x("String"),"to_str").$to_s(),$.length==0||$===o)return c;var p,m,E,T,re,je,nt,ft={},yt=$.split(""),zt=yt.length,_t=o.split(""),vt=_t.length,mt=!1,wt=null;yt[0]==="^"&&yt.length>1&&(mt=!0,yt.shift(),wt=_t[vt-1],zt-=1);var St=[],Oe=null;for(m=!1,p=0;p<zt;p++)if(T=yt[p],Oe==null)Oe=T,St.push(T);else if(T==="-")Oe==="-"?(St.push("-"),St.push("-")):p==zt-1?St.push("-"):m=!0;else if(m){for(re=Oe.charCodeAt(0),je=T.charCodeAt(0),re>je&&j.$raise(x("ArgumentError"),'invalid range "'+String.fromCharCode(re)+"-"+String.fromCharCode(je)+'" in string transliteration'),E=re+1;E<je;E++)St.push(String.fromCharCode(E));St.push(T),m=null,Oe=null}else St.push(T);if(yt=St,zt=yt.length,mt)for(p=0;p<zt;p++)ft[yt[p]]=!0;else{if(vt>0){var ze=[],De=null;for(m=!1,p=0;p<vt;p++)if(T=_t[p],De==null)De=T,ze.push(T);else if(T==="-")De==="-"?(ze.push("-"),ze.push("-")):p==vt-1?ze.push("-"):m=!0;else if(m){for(re=De.charCodeAt(0),je=T.charCodeAt(0),re>je&&j.$raise(x("ArgumentError"),'invalid range "'+String.fromCharCode(re)+"-"+String.fromCharCode(je)+'" in string transliteration'),E=re+1;E<je;E++)ze.push(String.fromCharCode(E));ze.push(T),m=null,De=null}else ze.push(T);_t=ze,vt=_t.length}var Ge=zt-vt;if(Ge>0){var v=vt>0?_t[vt-1]:"";for(p=0;p<Ge;p++)_t.push(v)}for(p=0;p<zt;p++)ft[yt[p]]=_t[p]}var q="";for(p=0,nt=c.length;p<nt;p++){T=c.charAt(p);var we=ft[T];mt?q+=we==null?wt:T:q+=we??T}return q}),l(W,"$tr_s",function($,o){var c=this;if($=t($,x("String"),"to_str").$to_s(),o=t(o,x("String"),"to_str").$to_s(),$.length==0)return c;var p,m,E,T,re,je,nt,ft={},yt=$.split(""),zt=yt.length,_t=o.split(""),vt=_t.length,mt=!1,wt=null;yt[0]==="^"&&yt.length>1&&(mt=!0,yt.shift(),wt=_t[vt-1],zt-=1);var St=[],Oe=null;for(m=!1,p=0;p<zt;p++)if(T=yt[p],Oe==null)Oe=T,St.push(T);else if(T==="-")Oe==="-"?(St.push("-"),St.push("-")):p==zt-1?St.push("-"):m=!0;else if(m){for(re=Oe.charCodeAt(0),je=T.charCodeAt(0),re>je&&j.$raise(x("ArgumentError"),'invalid range "'+String.fromCharCode(re)+"-"+String.fromCharCode(je)+'" in string transliteration'),E=re+1;E<je;E++)St.push(String.fromCharCode(E));St.push(T),m=null,Oe=null}else St.push(T);if(yt=St,zt=yt.length,mt)for(p=0;p<zt;p++)ft[yt[p]]=!0;else{if(vt>0){var ze=[],De=null;for(m=!1,p=0;p<vt;p++)if(T=_t[p],Oe==null)Oe=T,ze.push(T);else if(T==="-")De==="-"?(ze.push("-"),ze.push("-")):p==vt-1?ze.push("-"):m=!0;else if(m){for(re=Oe.charCodeAt(0),je=T.charCodeAt(0),re>je&&j.$raise(x("ArgumentError"),'invalid range "'+String.fromCharCode(re)+"-"+String.fromCharCode(je)+'" in string transliteration'),E=re+1;E<je;E++)ze.push(String.fromCharCode(E));ze.push(T),m=null,Oe=null}else ze.push(T);_t=ze,vt=_t.length}var Ge=zt-vt;if(Ge>0){var v=vt>0?_t[vt-1]:"";for(p=0;p<Ge;p++)_t.push(v)}for(p=0;p<zt;p++)ft[yt[p]]=_t[p]}var q="",we=null;for(p=0,nt=c.length;p<nt;p++){T=c.charAt(p);var Me=ft[T];mt?Me==null?we==null&&(q+=wt,we=!0):(q+=T,we=null):Me!=null?(we==null||we!==Me)&&(q+=Me,we=Me):(q+=T,we=null)}return q}),l(W,"$upcase",function(){var $=this;return $.toUpperCase()}),l(W,"$upto",function w($,o){var c=w.$$p||fe,p=this;if(w.$$p=null,o==null&&(o=!1),c===fe)return p.$enum_for("upto",$,o);var m,E,T=p.toString();if($=t($,x("String"),"to_str"),T.length===1&&$.length===1)for(m=T.charCodeAt(0),E=$.charCodeAt(0);m<=E&&!(o&&m===E);)c(String.fromCharCode(m)),m+=1;else if(parseInt(T,10).toString()===T&&parseInt($,10).toString()===$)for(m=parseInt(T,10),E=parseInt($,10);m<=E&&!(o&&m===E);)c(m.toString()),m+=1;else for(;T.length<=$.length&&T<=$&&!(o&&T===$);)c(T),T=T.$succ();return p},-2);function V(w){function $(ft){var yt="",zt,_t=ft.length,vt,mt,wt,St,Oe;for(zt=0;zt<_t;zt++)if(vt=ft.charAt(zt),vt==="-"&&zt>0&&zt<_t-1&&!mt){for(wt=ft.charCodeAt(zt-1),St=ft.charCodeAt(zt+1),wt>St&&j.$raise(x("ArgumentError"),'invalid range "'+wt+"-"+St+'" in string transliteration'),Oe=wt+1;Oe<St+1;Oe++)yt+=String.fromCharCode(Oe);mt=!0,zt++}else mt=vt==="\\",yt+=vt;return yt}function o(ft,yt){if(ft.length===0)return yt;var zt="",_t,vt=ft.length,mt;for(_t=0;_t<vt;_t++)mt=ft.charAt(_t),yt.indexOf(mt)!==-1&&(zt+=mt);return zt}var c,p,m,E,T,re,je="",nt="";for(c=0,p=w.length;c<p;c++)m=t(w[c],x("String"),"to_str"),E=m.charAt(0)==="^"&&m.length>1,m=$(E?m.slice(1):m),E?nt=o(nt,m):je=o(je,m);if(je.length>0&&nt.length>0){for(re="",c=0,p=je.length;c<p;c++)T=je.charAt(c),nt.indexOf(T)===-1&&(re+=T);je=re,nt=""}return je.length>0?"["+x("Regexp").$escape(je)+"]":nt.length>0?"[^"+x("Regexp").$escape(nt)+"]":null}return l(W,"$instance_variables",function(){return[]}),h(W,"$_load",function($){var o,c,p=this;return o=d(arguments),c=o,k(p,"new",C(c))},-1),l(W,"$unicode_normalize",function($){var o=this;return $==null&&($="nfc"),D(["nfc","nfd","nfkc","nfkd"]["$include?"]($))||j.$raise(x("ArgumentError"),"Invalid normalization form "+$),o.normalize($.$upcase())},-1),l(W,"$unicode_normalized?",function($){var o=this;return $==null&&($="nfc"),o.$unicode_normalize($)["$=="](o)},-1),l(W,"$unpack",function($){return j.$raise("To use String#unpack, you must first require 'corelib/string/unpack'.")}),l(W,"$unpack1",function($){return j.$raise("To use String#unpack1, you must first require 'corelib/string/unpack'.")}),l(W,"$freeze",function(){var $=this;return typeof $=="string"||i($,"$$frozen",!0),$}),l(W,"$-@",function(){var $=this;return typeof $=="string"||$.$$frozen?$:$.encoding.name=="UTF-8"&&$.internal_encoding.name=="UTF-8"?$.toString():$.$dup().$freeze()}),l(W,"$frozen?",function(){var $=this;return typeof $=="string"||$.$$frozen===!0}),be(W,"+@","dup"),be(W,"===","=="),be(W,"byteslice","[]"),be(W,"eql?","=="),be(W,"equal?","==="),be(W,"object_id","__id__"),be(W,"slice","[]"),be(W,"succ","next"),be(W,"to_str","to_s"),be(W,"to_sym","intern"),f.$pristine(W,"initialize")}("::",String,te),le(te[0],"Symbol",Ce("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,l=e.module,f=e.send,h=e.slice,d=e.to_a,k=e.Opal,C=e.thrower,N=e.def,U=e.Kernel,O=e.return_val,j=e.rb_gt,D=e.rb_times,G=e.rb_lt,de=e.eqeq,ne=e.rb_plus,me=e.rb_minus,Q=e.rb_divide,be=e.rb_le,le=e.hash2,Ee=e.lambda,te=e.not,Ce=e.alias,fe=[],x=e.nil,Ae=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(B,he){var W=l(B,"Enumerable"),Fe=[W].concat(he),$e=e.$r(Fe);function V(w){return w.length===0&&(w=[x]),w.length>1&&(w=[w]),w}return N(W,"$all?",function w($){try{var o=C("return"),c=w.$$p||x,p=this;return w.$$p=null,t($!==void 0)?f(p,"each",[],function(E){var T,re,je=x;if(T=h(arguments),re=T,je=V(re),t(f($,"public_send",["==="].concat(d(je)))))return x;o.$throw(!1)},{$$arity:-1,$$ret:o}):c!==x?f(p,"each",[],function(E){var T,re;if(T=h(arguments),re=T,t(e.yieldX(c,d(re))))return x;o.$throw(!1)},{$$arity:-1,$$ret:o}):f(p,"each",[],function(E){var T,re;if(T=h(arguments),re=T,t(k.$destructure(re)))return x;o.$throw(!1)},{$$arity:-1,$$ret:o}),!0}catch(m){if(m===o)return m.$v;throw m}},-1),N(W,"$any?",function w($){try{var o=C("return"),c=w.$$p||x,p=this;return w.$$p=null,t($!==void 0)?f(p,"each",[],function(E){var T,re,je=x;if(T=h(arguments),re=T,je=V(re),t(f($,"public_send",["==="].concat(d(je)))))o.$throw(!0);else return x},{$$arity:-1,$$ret:o}):c!==x?f(p,"each",[],function(E){var T,re;if(T=h(arguments),re=T,t(e.yieldX(c,d(re))))o.$throw(!0);else return x},{$$arity:-1,$$ret:o}):f(p,"each",[],function(E){var T,re;if(T=h(arguments),re=T,t(k.$destructure(re)))o.$throw(!0);else return x},{$$arity:-1,$$ret:o}),!1}catch(m){if(m===o)return m.$v;throw m}},-1),N(W,"$chunk",function w(){var $=w.$$p||x,o=this;return w.$$p=null,$===x?f(o,"to_enum",["chunk"],function c(){var p=c.$$s==null?this:c.$$s;return p.$enumerator_size()},{$$s:o}):f(Ae("Enumerator"),"new",[],function c(p){var m=c.$$s==null?this:c.$$s;p==null&&(p=x);var E=x,T=[];function re(){T.length>0&&p.$yield(E,T)}m.$each.$$p=function(je){var nt=n($,je);nt===x?(re(),T=[],E=x):(E===x||E===nt?T.push(je):(re(),T=[je]),E=nt)},m.$each(),re()},{$$s:o})}),N(W,"$chunk_while",function w(){var $=w.$$p||x,o=this;return w.$$p=null,$===x&&U.$raise(Ae("ArgumentError"),"no block given"),f(o,"slice_when",[],function(p,m){return p==null&&(p=x),m==null&&(m=x),e.yieldX($,[p,m])["$!"]()})}),N(W,"$collect",function w(){var $=w.$$p||x,o=this;if(w.$$p=null,$===x)return f(o,"enum_for",["collect"],function p(){var m=p.$$s==null?this:p.$$s;return m.$enumerator_size()},{$$s:o});var c=[];return o.$each.$$p=function(){var p=i($,arguments);c.push(p)},o.$each(),c}),N(W,"$collect_concat",function w(){var $=w.$$p||x,o=this;return w.$$p=null,$===x?f(o,"enum_for",["collect_concat"],function c(){var p=c.$$s==null?this:c.$$s;return p.$enumerator_size()},{$$s:o}):f(o,"map",[],$.$to_proc()).$flatten(1)}),N(W,"$compact",function(){var $=this;return $.$to_a().$compact()}),N(W,"$count",function w($){var o=w.$$p||x,c=this,p=x;return w.$$p=null,p=0,$!=null&&o!==x&&c.$warn("warning: given block not used"),t($!=null)?o=f(U,"proc",[],function(E){var T,re;return T=h(arguments),re=T,k.$destructure(re)["$=="]($)},-1):t(o["$nil?"]())&&(o=f(U,"proc",[],O(!0))),f(c,"each",[],function(E){var T,re;return T=h(arguments),re=T,t(i(o,re))?p++:x},-1),p},-1),N(W,"$cycle",function w($){var o=w.$$p||x,c=this;if(w.$$p=null,$==null&&($=x),o===x)return f(c,"enum_for",["cycle",$],function T(){var re=T.$$s==null?this:T.$$s;return t($["$nil?"]())?t(re["$respond_to?"]("size"))?Ae(Ae("Float"),"INFINITY"):x:($=k["$coerce_to!"]($,Ae("Integer"),"to_int"),t(j($,0))?D(re.$enumerator_size(),$):0)},{$$s:c});if(!t($["$nil?"]())&&($=k["$coerce_to!"]($,Ae("Integer"),"to_int"),t($<=0)))return x;var p=[],m,E;if(c.$each.$$p=function(){var T=k.$destructure(arguments);n(o,T),p.push(T)},c.$each(),p.length===0)return x;if($===x)for(;;)for(m=0,E=p.length;m<E;m++)n(o,p[m]);else for(;$>1;){for(m=0,E=p.length;m<E;m++)n(o,p[m]);$--}},-1),N(W,"$detect",function w($){try{var o=C("return"),c=w.$$p||x,p=this;return w.$$p=null,c===x?p.$enum_for("detect",$):(f(p,"each",[],function(E){var T,re,je=x;if(T=h(arguments),re=T,je=k.$destructure(re),t(e.yield1(c,je)))o.$throw(je);else return x},{$$arity:-1,$$ret:o}),$!==void 0?typeof $=="function"?$():$:x)}catch(m){if(m===o)return m.$v;throw m}},-1),N(W,"$drop",function($){var o=this;$=r($,Ae("Integer"),"to_int"),t($<0)&&U.$raise(Ae("ArgumentError"),"attempt to drop negative size");var c=[],p=0;return o.$each.$$p=function(){$<=p&&c.push(k.$destructure(arguments)),p++},o.$each(),c}),N(W,"$drop_while",function w(){var $=w.$$p||x,o=this;if(w.$$p=null,$===x)return o.$enum_for("drop_while");var c=[],p=!0;return o.$each.$$p=function(){var m=k.$destructure(arguments);if(p){var E=n($,m);t(E)||(p=!1,c.push(m))}else c.push(m)},o.$each(),c}),N(W,"$each_cons",function w($){var o=w.$$p||x,c=this;if(w.$$p=null,t(arguments.length!=1)&&U.$raise(Ae("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 1)"),$=k.$try_convert($,Ae("Integer"),"to_int"),t($<=0)&&U.$raise(Ae("ArgumentError"),"invalid size"),o===x)return f(c,"enum_for",["each_cons",$],function m(){var E=m.$$s==null?this:m.$$s,T=x;return T=E.$enumerator_size(),t(T["$nil?"]())?x:de(T,0)||t(G(T,$))?0:ne(me(T,$),1)},{$$s:c});var p=[];return c.$each.$$p=function(){var m=k.$destructure(arguments);p.push(m),p.length>$&&p.shift(),p.length==$&&n(o,p.slice(0,$))},c.$each(),c}),N(W,"$each_entry",function w($){var o=w.$$p||x,c,p,m=this;return w.$$p=null,c=h(arguments),p=c,o===x?f(m,"to_enum",["each_entry"].concat(d(p)),function E(){var T=E.$$s==null?this:E.$$s;return T.$enumerator_size()},{$$s:m}):(m.$each.$$p=function(){var E=k.$destructure(arguments);n(o,E)},m.$each.apply(m,p),m)},-1),N(W,"$each_slice",function w($){var o=w.$$p||x,c=this;if(w.$$p=null,$=r($,Ae("Integer"),"to_int"),t($<=0)&&U.$raise(Ae("ArgumentError"),"invalid slice size"),o===x)return f(c,"enum_for",["each_slice",$],function m(){var E=m.$$s==null?this:m.$$s;return t(E["$respond_to?"]("size"))?Q(E.$size(),$).$ceil():x},{$$s:c});var p=[];return c.$each.$$p=function(){var m=k.$destructure(arguments);p.push(m),p.length===$&&(n(o,p),p=[])},c.$each(),p.length>0&&n(o,p),c}),N(W,"$each_with_index",function w($){var o=w.$$p||x,c,p,m=this;if(w.$$p=null,c=h(arguments),p=c,o===x)return f(m,"enum_for",["each_with_index"].concat(d(p)),function T(){var re=T.$$s==null?this:T.$$s;return re.$enumerator_size()},{$$s:m});var E=0;return m.$each.$$p=function(){var T=k.$destructure(arguments);o(T,E),E++},m.$each.apply(m,p),m},-1),N(W,"$each_with_object",function w($){var o=w.$$p||x,c=this;return w.$$p=null,o===x?f(c,"enum_for",["each_with_object",$],function p(){var m=p.$$s==null?this:p.$$s;return m.$enumerator_size()},{$$s:c}):(c.$each.$$p=function(){var p=k.$destructure(arguments);o(p,$)},c.$each(),$)}),N(W,"$entries",function($){var o,c,p=this;o=h(arguments),c=o;var m=[];return p.$each.$$p=function(){m.push(k.$destructure(arguments))},p.$each.apply(p,c),m},-1),N(W,"$filter_map",function w(){var $=w.$$p||x,o=this;return w.$$p=null,$===x?f(o,"enum_for",["filter_map"],function c(){var p=c.$$s==null?this:c.$$s;return p.$enumerator_size()},{$$s:o}):f(f(o,"map",[],$.$to_proc()),"select",[],"itself".$to_proc())}),N(W,"$find_all",function w(){var $=w.$$p||x,o=this;if(w.$$p=null,$===x)return f(o,"enum_for",["find_all"],function p(){var m=p.$$s==null?this:p.$$s;return m.$enumerator_size()},{$$s:o});var c=[];return o.$each.$$p=function(){var p=k.$destructure(arguments),m=n($,p);t(m)&&c.push(p)},o.$each(),c}),N(W,"$find_index",function w($){try{var o=C("return"),c=w.$$p||x,p=this,m=x;return w.$$p=null,t($===void 0&&c===x)?p.$enum_for("find_index"):($!=null&&c!==x&&p.$warn("warning: given block not used"),m=0,t($!=null)?f(p,"each",[],function(T){var re,je;return re=h(arguments),je=re,de(k.$destructure(je),$)&&o.$throw(m),m+=1},{$$arity:-1,$$ret:o}):f(p,"each",[],function(T){var re,je;return re=h(arguments),je=re,t(e.yieldX(c,d(je)))&&o.$throw(m),m+=1},{$$arity:-1,$$ret:o}),x)}catch(E){if(E===o)return E.$v;throw E}},-1),N(W,"$first",function($){try{var o=C("return"),c=this,p=x,m=x;return t($===void 0)?f(c,"each",[],function(T){T==null&&(T=x),o.$throw(T)},{$$ret:o}):(p=[],$=r($,Ae("Integer"),"to_int"),t($<0)&&U.$raise(Ae("ArgumentError"),"attempt to take negative size"),t($==0)?[]:(m=0,f(c,"each",[],function(T){var re,je;if(re=h(arguments),je=re,p.push(k.$destructure(je)),t($<=++m))o.$throw(p);else return x},{$$arity:-1,$$ret:o}),p))}catch(E){if(E===o)return E.$v;throw E}},-1),N(W,"$grep",function w($){var o=w.$$p||x,c=this,p=x;return w.$$p=null,p=[],f(c,"each",[],function(E){var T,re,je=x;return T=h(arguments),re=T,je=V(re),t(f($,"__send__",["==="].concat(d(je))))?(o!==x?(t(j(re.$length(),1))&&(re=[re]),re=e.yieldX(o,d(re))):t(be(re.$length(),1))&&(re=re["$[]"](0)),p.$push(re)):x},-1),p}),N(W,"$grep_v",function w($){var o=w.$$p||x,c=this,p=x;return w.$$p=null,p=[],f(c,"each",[],function(E){var T,re,je=x;return T=h(arguments),re=T,je=V(re),t(f($,"__send__",["==="].concat(d(je))))?x:(o!==x?(t(j(re.$length(),1))&&(re=[re]),re=e.yieldX(o,d(re))):t(be(re.$length(),1))&&(re=re["$[]"](0)),p.$push(re))},-1),p}),N(W,"$group_by",function w(){var $=w.$$p||x,o,c=this,p=x,m=x;return w.$$p=null,$===x?f(c,"enum_for",["group_by"],function E(){var T=E.$$s==null?this:E.$$s;return T.$enumerator_size()},{$$s:c}):(p=le([],{}),c.$each.$$p=function(){var E=k.$destructure(arguments),T=n($,E);(t(m=p["$[]"](T))?m:(o=[T,[]],f(p,"[]=",o),o[o.length-1]))["$<<"](E)},c.$each(),p)}),N(W,"$include?",function($){try{var o=C("return"),c=this;return f(c,"each",[],function(m){var E,T;if(E=h(arguments),T=E,de(k.$destructure(T),$))o.$throw(!0);else return x},{$$arity:-1,$$ret:o}),!1}catch(p){if(p===o)return p.$v;throw p}}),N(W,"$inject",function w($,o){var c=w.$$p||x,p=this;w.$$p=null;var m=$;return c!==x&&o===void 0?p.$each.$$p=function(){var E=k.$destructure(arguments);if(m===void 0){m=E;return}E=i(c,[m,E]),m=E}:(o===void 0&&(Ae("Symbol")["$==="]($)||U.$raise(Ae("TypeError"),""+$.$inspect()+" is not a Symbol"),o=$,m=void 0),p.$each.$$p=function(){var E=k.$destructure(arguments);if(m===void 0){m=E;return}m=m.$__send__(o,E)}),p.$each(),m??x},-1),N(W,"$lazy",function(){var $=this;return f(Ae(Ae("Enumerator"),"Lazy"),"new",[$,$.$enumerator_size()],function(c,p){var m,E;return c==null&&(c=x),m=h(arguments,1),E=m,f(c,"yield",d(E))},-2)}),N(W,"$enumerator_size",function(){var $=this;return t($["$respond_to?"]("size"))?$.$size():x}),N(W,"$max",function w($){var o=w.$$p||x,c=this;if(w.$$p=null,$===void 0||$===x){var p,m;return c.$each.$$p=function(){var E=k.$destructure(arguments);if(p===void 0){p=E;return}o!==x?m=i(o,[E,p]):m=E["$<=>"](p),m===x&&U.$raise(Ae("ArgumentError"),"comparison failed"),m>0&&(p=E)},c.$each(),p===void 0?x:p}return $=r($,Ae("Integer"),"to_int"),f(c,"sort",[],o.$to_proc()).$reverse().$first($)},-1),N(W,"$max_by",function w($){var o=w.$$p||x,c=this;if(w.$$p=null,$==null&&($=x),!t(o))return f(c,"enum_for",["max_by",$],function E(){var T=E.$$s==null?this:E.$$s;return T.$enumerator_size()},{$$s:c});if(!t($["$nil?"]()))return f(c,"sort_by",[],o.$to_proc()).$reverse().$take($);var p,m;return c.$each.$$p=function(){var E=k.$destructure(arguments),T=n(o,E);if(p===void 0){p=E,m=T;return}T["$<=>"](m)>0&&(p=E,m=T)},c.$each(),p===void 0?x:p},-1),N(W,"$min",function w($){var o=w.$$p||x,c=this;if(w.$$p=null,$==null&&($=x),!t($["$nil?"]()))return o!==x?f(c,"sort",[],function(E,T){return E==null&&(E=x),T==null&&(T=x),e.yieldX(o,[E,T])}).$take($):c.$sort().$take($);var p;return o!==x?c.$each.$$p=function(){var m=k.$destructure(arguments);if(p===void 0){p=m;return}var E=o(m,p);E===x&&U.$raise(Ae("ArgumentError"),"comparison failed"),E<0&&(p=m)}:c.$each.$$p=function(){var m=k.$destructure(arguments);if(p===void 0){p=m;return}k.$compare(m,p)<0&&(p=m)},c.$each(),p===void 0?x:p},-1),N(W,"$min_by",function w($){var o=w.$$p||x,c=this;if(w.$$p=null,$==null&&($=x),!t(o))return f(c,"enum_for",["min_by",$],function E(){var T=E.$$s==null?this:E.$$s;return T.$enumerator_size()},{$$s:c});if(!t($["$nil?"]()))return f(c,"sort_by",[],o.$to_proc()).$take($);var p,m;return c.$each.$$p=function(){var E=k.$destructure(arguments),T=n(o,E);if(p===void 0){p=E,m=T;return}T["$<=>"](m)<0&&(p=E,m=T)},c.$each(),p===void 0?x:p},-1),N(W,"$minmax",function w(){var $=w.$$p||x,o=this,c=x;w.$$p=null,$=t(c=$)?c:f(U,"proc",[],function(re,je){return re==null&&(re=x),je==null&&(je=x),re["$<=>"](je)});var p=x,m=x,E=!0;return o.$each.$$p=function(){var T=k.$destructure(arguments);if(E)p=m=T,E=!1;else{var re=$.$call(p,T);re===x?U.$raise(Ae("ArgumentError"),"comparison failed"):re>0&&(p=T);var je=$.$call(m,T);je===x?U.$raise(Ae("ArgumentError"),"comparison failed"):je<0&&(m=T)}},o.$each(),[p,m]}),N(W,"$minmax_by",function w(){var $=w.$$p||x,o=this;if(w.$$p=null,!t($))return f(o,"enum_for",["minmax_by"],function T(){var re=T.$$s==null?this:T.$$s;return re.$enumerator_size()},{$$s:o});var c=x,p=x,m,E;return o.$each.$$p=function(){var T=k.$destructure(arguments),re=n($,T);(m===void 0||re["$<=>"](m)<0)&&(c=T,m=re),(E===void 0||re["$<=>"](E)>0)&&(p=T,E=re)},o.$each(),[c,p]}),N(W,"$none?",function w($){try{var o=C("return"),c=w.$$p||x,p=this;return w.$$p=null,t($!==void 0)?f(p,"each",[],function(E){var T,re,je=x;if(T=h(arguments),re=T,je=V(re),t(f($,"public_send",["==="].concat(d(je)))))o.$throw(!1);else return x},{$$arity:-1,$$ret:o}):c!==x?f(p,"each",[],function(E){var T,re;if(T=h(arguments),re=T,t(e.yieldX(c,d(re))))o.$throw(!1);else return x},{$$arity:-1,$$ret:o}):f(p,"each",[],function(E){var T,re,je=x;if(T=h(arguments),re=T,je=k.$destructure(re),t(je))o.$throw(!1);else return x},{$$arity:-1,$$ret:o}),!0}catch(m){if(m===o)return m.$v;throw m}},-1),N(W,"$one?",function w($){try{var o=C("return"),c=w.$$p||x,p=this,m=x;return w.$$p=null,m=0,t($!==void 0)?f(p,"each",[],function(T){var re,je,nt=x;if(re=h(arguments),je=re,nt=V(je),t(f($,"public_send",["==="].concat(d(nt)))))if(m=ne(m,1),t(j(m,1)))o.$throw(!1);else return x;else return x},{$$arity:-1,$$ret:o}):c!==x?f(p,"each",[],function(T){var re,je;if(re=h(arguments),je=re,!t(e.yieldX(c,d(je))))return x;if(m=ne(m,1),t(j(m,1)))o.$throw(!1);else return x},{$$arity:-1,$$ret:o}):f(p,"each",[],function(T){var re,je;if(re=h(arguments),je=re,!t(k.$destructure(je)))return x;if(m=ne(m,1),t(j(m,1)))o.$throw(!1);else return x},{$$arity:-1,$$ret:o}),m["$=="](1)}catch(E){if(E===o)return E.$v;throw E}},-1),N(W,"$partition",function w(){var $=w.$$p||x,o=this;if(w.$$p=null,$===x)return f(o,"enum_for",["partition"],function m(){var E=m.$$s==null?this:m.$$s;return E.$enumerator_size()},{$$s:o});var c=[],p=[];return o.$each.$$p=function(){var m=k.$destructure(arguments),E=n($,m);t(E)?c.push(m):p.push(m)},o.$each(),[c,p]}),N(W,"$reject",function w(){var $=w.$$p||x,o=this;if(w.$$p=null,$===x)return f(o,"enum_for",["reject"],function p(){var m=p.$$s==null?this:p.$$s;return m.$enumerator_size()},{$$s:o});var c=[];return o.$each.$$p=function(){var p=k.$destructure(arguments),m=n($,p);t(m)||c.push(p)},o.$each(),c}),N(W,"$reverse_each",function w(){var $=w.$$p||x,o=this;if(w.$$p=null,$===x)return f(o,"enum_for",["reverse_each"],function m(){var E=m.$$s==null?this:m.$$s;return E.$enumerator_size()},{$$s:o});var c=[];o.$each.$$p=function(){c.push(arguments)},o.$each();for(var p=c.length-1;p>=0;p--)i($,c[p]);return c}),N(W,"$slice_before",function w($){var o=w.$$p||x,c=this;return w.$$p=null,t($===void 0&&o===x)&&U.$raise(Ae("ArgumentError"),"both pattern and block are given"),t($!==void 0&&o!==x||arguments.length>1)&&U.$raise(Ae("ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),f(Ae("Enumerator"),"new",[],function p(m){var E=p.$$s==null?this:p.$$s;m==null&&(m=x);var T=[];o!==x?$===void 0?E.$each.$$p=function(){var re=k.$destructure(arguments),je=n(o,re);t(je)&&T.length>0&&(m["$<<"](T),T=[]),T.push(re)}:E.$each.$$p=function(){var re=k.$destructure(arguments),je=o(re,$.$dup());t(je)&&T.length>0&&(m["$<<"](T),T=[]),T.push(re)}:E.$each.$$p=function(){var re=k.$destructure(arguments),je=$["$==="](re);t(je)&&T.length>0&&(m["$<<"](T),T=[]),T.push(re)},E.$each(),T.length>0&&m["$<<"](T)},{$$s:c})},-1),N(W,"$slice_after",function w($){var o=w.$$p||x,c=this;return w.$$p=null,t($===void 0&&o===x)&&U.$raise(Ae("ArgumentError"),"both pattern and block are given"),t($!==void 0&&o!==x||arguments.length>1)&&U.$raise(Ae("ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),t($!==void 0)&&(o=f(U,"proc",[],function(m){return m==null&&(m=x),$["$==="](m)})),f(Ae("Enumerator"),"new",[],function p(m){var E=p.$$s==null?this:p.$$s;m==null&&(m=x);var T;E.$each.$$p=function(){var re=k.$destructure(arguments),je=n(o,re);T==null&&(T=[]),t(je)?(T.push(re),m.$yield(T),T=null):T.push(re)},E.$each(),T!=null&&m.$yield(T)},{$$s:c})},-1),N(W,"$slice_when",function w(){var $=w.$$p||x,o=this;return w.$$p=null,$===x&&U.$raise(Ae("ArgumentError"),"wrong number of arguments (0 for 1)"),f(Ae("Enumerator"),"new",[],function c(p){var m=c.$$s==null?this:c.$$s;p==null&&(p=x);var E=x,T=x;m.$each_cons.$$p=function(){var re=k.$destructure(arguments),je=re[0],nt=re[1],ft=i($,[je,nt]);T=nt,E===x&&(E=[]),t(ft)?(E.push(je),p.$yield(E),E=[]):E.push(je)},m.$each_cons(2),E!==x&&(E.push(T),p.$yield(E))},{$$s:o})}),N(W,"$sort",function w(){var $=w.$$p||x,o=this,c=x;return w.$$p=null,c=o.$to_a(),$===x&&($=Ee(function(m,E){return m==null&&(m=x),E==null&&(E=x),m["$<=>"](E)})),f(c,"sort",[],$.$to_proc())}),N(W,"$sort_by",function w(){var $=w.$$p||x,o=this,c=x;return w.$$p=null,$===x?f(o,"enum_for",["sort_by"],function p(){var m=p.$$s==null?this:p.$$s;return m.$enumerator_size()},{$$s:o}):(c=f(o,"map",[],function(){var m=x;return m=k.$destructure(arguments),[e.yield1($,m),m]}),f(c,"sort!",[],function(m,E){return m==null&&(m=x),E==null&&(E=x),m[0]["$<=>"](E[0])}),f(c,"map!",[],function(m){return m==null&&(m=x),m[1]}))}),N(W,"$sum",function w($){var o=w.$$p||x,c=this,p=x,m=x;return w.$$p=null,$==null&&($=0),p=$,m=0,f(c,"each",[],function(T){var re,je,nt=x,ft=x,yt=x;return re=h(arguments),je=re,nt=o!==x?e.yieldX(o,d(je)):k.$destructure(je),te([Ae(Ae("Float"),"INFINITY"),Ae(Ae("Float"),"INFINITY")["$-@"]()]["$include?"](nt))&&t(nt["$respond_to?"]("-"))?(ft=me(nt,m),yt=ne(p,ft),m=me(me(yt,p),ft),p=yt):p=ne(p,nt)},-1),p},-1),N(W,"$take",function($){var o=this;return o.$first($)}),N(W,"$take_while",function w(){try{var $=C("return"),o=w.$$p||x,c=this,p=x;return w.$$p=null,t(o)?(p=[],f(c,"each",[],function(E){var T,re,je=x;return T=h(arguments),re=T,je=k.$destructure(re),t(e.yield1(o,je))||$.$throw(p),p.push(je)},{$$arity:-1,$$ret:$})):c.$enum_for("take_while")}catch(m){if(m===$)return m.$v;throw m}}),N(W,"$uniq",function w(){var $=w.$$p||x,o=this,c=x;return w.$$p=null,c=le([],{}),f(o,"each",[],function(m){var E,T,re,je=x,nt=x;return E=h(arguments),T=E,je=k.$destructure(T),nt=$!==x?e.yield1($,je):je,t(c["$key?"](nt))?x:(re=[nt,je],f(c,"[]=",re),re[re.length-1])},-1),c.$values()}),N(W,"$tally",function($){var o=this,c=x;return $&&$!==x&&s($),c=f(f(o,"group_by",[],"itself".$to_proc()),"transform_values",[],"count".$to_proc()),t($)?(f(c,"each",[],function(m,E){var T;return m==null&&(m=x),E==null&&(E=x),T=[m,ne($.$fetch(m,0),E)],f($,"[]=",T),T[T.length-1]}),$):c},-1),N(W,"$to_h",function w($){var o=w.$$p||x,c,p,m=this;if(w.$$p=null,c=h(arguments),p=c,o!==x)return f(f(m,"map",[],o.$to_proc()),"to_h",d(p));var E=le([],{});return m.$each.$$p=function(){var T=k.$destructure(arguments),re=k["$coerce_to?"](T,Ae("Array"),"to_ary"),je,nt;re.$$is_array||U.$raise(Ae("TypeError"),"wrong element type "+re.$class()+" (expected array)"),re.length!==2&&U.$raise(Ae("ArgumentError"),"wrong array length (expected 2, was "+re.$length()+")"),je=re[0],nt=re[1],e.hash_put(E,je,nt)},m.$each.apply(m,p),E},-1),N(W,"$to_set",function w($,o){var c=w.$$p||x,p,m,E,T=this;return w.$$p=null,p=h(arguments),p.length>0&&(m=p.shift()),m==null&&(m=$e("Set")),E=p,f(m,"new",[T].concat(d(E)),c.$to_proc())},-1),N(W,"$zip",function w($){w.$$p;var o,c,p=this;return w.$$p=null,o=h(arguments),c=o,f(p.$to_a(),"zip",d(c))},-1),Ce(W,"find","detect"),Ce(W,"filter","find_all"),Ce(W,"flat_map","collect_concat"),Ce(W,"map","collect"),Ce(W,"member?","include?"),Ce(W,"reduce","inject"),Ce(W,"select","find_all"),Ce(W,"to_a","entries")}("::",fe)};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,l=e.def,f=e.rb_gt,h=e.rb_lt,d=e.rb_le,k=e.rb_ge,C=e.rb_plus,N=e.rb_minus,U=e.eqeqeq,O=e.not,j=e.rb_times,D=e.rb_divide,G=e.alias,de=[],ne=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(Q,be,le){var Ee=t(Q,be,"Enumerator"),te=[Ee].concat(le);return function(Ce,fe,x){var Ae=t(Ce,fe,"ArithmeticSequence"),B=[Ae].concat(x),he=e.$r(B),W=Ae.$$prototype;W.step_arg2=W.receiver_num=W.step_arg1=W.step=W.range=W.topfx=W.bypfx=W.creation_method=W.skipped_arg=ne,e.prop(Ae.$$prototype,"$$is_arithmetic_seq",!0);var Fe=1/0;return l(Ae,"$initialize",function(V,w,$){var o,c=this,p=ne;return $==null&&($="step"),c.creation_method=$,r(V["$is_a?"](me("Array")))?(o=[].concat(n(V)),c.step_arg1=o[0]==null?ne:o[0],c.step_arg2=o[1]==null?ne:o[1],c.topfx=o[2]==null?ne:o[2],c.bypfx=o[3]==null?ne:o[3],c.receiver_num=w,c.step=1,c.range=r(c.step_arg2)?(c.step=c.step_arg2,e.Range.$new(c.receiver_num,c.step_arg1,!1)):r(c.step_arg1)?e.Range.$new(c.receiver_num,c.step_arg1,!1):e.Range.$new(c.receiver_num,ne,!1)):(r(w)||(c.skipped_arg=!0),o=[V,r(p=w)?p:1],c.range=o[0],c.step=o[1]),c.object=c,i(c.step,0)&&s.$raise(he("ArgumentError"),"step can't be 0"),r(c.step["$respond_to?"]("to_int"))?ne:s.$raise(he("ArgumentError"),"no implicit conversion of "+c.step.$class()+" into Integer")},-2),Ae.$attr_reader("step"),l(Ae,"$begin",function(){var V=this;return V.range.$begin()}),l(Ae,"$end",function(){var V=this;return V.range.$end()}),l(Ae,"$exclude_end?",function(){var V=this;return V.range["$exclude_end?"]()}),l(Ae,"$_lesser_than_end?",function(V){var w=this,$=ne,o=ne;return $=r(o=w.$end())?o:Fe,r(f(w.$step(),0))?r(w["$exclude_end?"]())?h(V,$):d(V,$):r(w["$exclude_end?"]())?f(V,$):k(V,$)}),l(Ae,"$_greater_than_begin?",function(V){var w=this,$=ne,o=ne;return $=r(o=w.$begin())?o:Fe["$-@"](),r(f(w.$step(),0))?f(V,$):h(V,$)}),l(Ae,"$first",function(V){var w=this,$=ne,o=ne,c=ne;if($=r(o=w.$begin())?o:Fe["$-@"](),!r(V))return r(w["$_lesser_than_end?"]($))?$:ne;for(c=[];r(r(o=w["$_lesser_than_end?"]($))?f(V,0):o);)c["$<<"]($),$=C($,w.$step()),V=N(V,1);return c},-1),l(Ae,"$each",function $e(){var V=$e.$$p||ne,w=this,$=ne,o=ne;if($e.$$p=null,V===ne)return w;for(U(ne,$=w.$begin())&&s.$raise(he("TypeError"),"nil can't be coerced into Integer"),o=r($=w.$begin())?$:Fe["$-@"]();r(w["$_lesser_than_end?"](o));)e.yield1(V,o),o=C(o,w.$step());return w}),l(Ae,"$last",function(V){var w=this,$=ne,o=ne,c=ne;if(U(Fe,$=w.$end())||U(Fe["$-@"](),$)?s.$raise(me("FloatDomainError"),w.$end()):U(ne,$)&&s.$raise(me("RangeError"),"cannot get the last element of endless arithmetic sequence"),o=N(w.$end(),N(w.$end(),w.$begin())["$%"](w.$step())),r(w["$_lesser_than_end?"](o))||(o=N(o,w.$step())),!r(V))return r(w["$_greater_than_begin?"](o))?o:ne;for(c=[];r(r($=w["$_greater_than_begin?"](o))?f(V,0):$);)c["$<<"](o),o=N(o,w.$step()),V=N(V,1);return c.$reverse()},-1),l(Ae,"$size",function(){var V=this,w=ne,$=ne;return w=r(f(V.$step(),0))?1:-1,O(V["$_lesser_than_end?"](V.$begin()))?0:r([Fe["$-@"](),Fe]["$include?"](V.$step()))?1:r([j(Fe["$-@"](),w),ne]["$include?"](V.$begin()))||r([j(Fe,w),ne]["$include?"](V.$end()))?Fe:($=N(V.$end(),N(V.$end(),V.$begin())["$%"](V.$step())),r(V["$_lesser_than_end?"]($))||($=N($,V.$step())),C(D(N($,V.$begin()),V.$step()).$abs().$to_i(),1))}),l(Ae,"$==",function(V){var w=this,$=ne,o=ne,c=ne,p=ne;return r($=r(o=r(c=r(p=w.$class()["$=="](V.$class()))?w.$begin()["$=="](V.$begin()):p)?w.$end()["$=="](V.$end()):c)?w.$step()["$=="](V.$step()):o)?w["$exclude_end?"]()["$=="](V["$exclude_end?"]()):$}),l(Ae,"$hash",function(){var V=this;return[V.$begin(),V.$end(),V.$step(),V["$exclude_end?"]()].$hash()}),l(Ae,"$inspect",function(){var V=this,w=ne;return r(V.receiver_num)?(w=r(V.step_arg2)?"("+V.topfx+V.step_arg1.$inspect()+", "+V.bypfx+V.step_arg2.$inspect()+")":r(V.step_arg1)?"("+V.topfx+V.step_arg1.$inspect()+")":ne,"("+V.receiver_num.$inspect()+"."+V.creation_method+w+")"):(w=r(V.skipped_arg)?ne:"("+V.step+")","(("+V.range.$inspect()+")."+V.creation_method+w+")")}),G(Ae,"===","=="),G(Ae,"eql?","==")}(Ee,Ee,te)}("::",null,de)};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,l=e.to_a,f=e.truthy,h=e.rb_plus,d=e.thrower,k=e.nil,C=e.$$$;return e.add_stubs("to_enum,size,each,<<,to_proc,include?,+,reverse_each,respond_to?,rewind,inspect"),function(N,U){var O=r(N,U,"Enumerator");return function(j,D){var G=r(j,D,"Chain"),de=G.$$prototype;return de.enums=de.iterated=k,i(G,"$initialize",function(me){var Q,be,le=this;return Q=n(arguments),be=Q,t(le),le.enums=be,le.iterated=[],le.object=le},-1),i(G,"$each",function ne(me){var Q=ne.$$p||k,be,le,Ee=this;return ne.$$p=null,be=n(arguments),le=be,Q===k?s(Ee,"to_enum",["each"].concat(l(le)),function te(){var Ce=te.$$s==null?this:te.$$s;return Ce.$size()},{$$s:Ee}):(s(Ee.enums,"each",[],function te(Ce){var fe=te.$$s==null?this:te.$$s;return fe.iterated==null&&(fe.iterated=k),Ce==null&&(Ce=k),fe.iterated["$<<"](Ce),s(Ce,"each",l(le),Q.$to_proc())},{$$s:Ee}),Ee)},-1),i(G,"$size",function(me){try{var Q=d("return"),be,le,Ee=this,te=k;return be=n(arguments),le=be,te=0,s(Ee.enums,"each",[],function(fe){var x=k;return fe==null&&(fe=k),x=s(fe,"size",l(le)),f([k,C(C("Float"),"INFINITY")]["$include?"](x))&&Q.$throw(x),te=h(te,x)},{$$ret:Q}),te}catch(Ce){if(Ce===Q)return Ce.$v;throw Ce}},-1),i(G,"$rewind",function(){var me=this;return s(me.iterated,"reverse_each",[],function(be){return be==null&&(be=k),f(be["$respond_to?"]("rewind"))?be.$rewind():k}),me.iterated=[],me}),i(G,"$inspect",function(){var me=this;return"#<Enumerator::Chain: "+me.enums.$inspect()+">"})}(O,O)}("::",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,l=e.slice,f=e.send,h=[],d=e.nil,k=e.$$$;return e.add_stubs("include,raise,new,to_proc"),function(C,N,U){var O=r(C,N,"Enumerator"),j=[O].concat(U);return function(D,G,de){var ne=r(D,G,"Generator"),me=[ne].concat(de),Q=e.$r(me),be=ne.$$prototype;return be.block=d,ne.$include(k("Enumerable")),s(ne,"$initialize",function le(){var Ee=le.$$p||d,te=this;return le.$$p=null,t(te),n(Ee)||i.$raise(k("LocalJumpError"),"no block given"),te.block=Ee}),s(ne,"$each",function le(Ee){var te=le.$$p||d,Ce,fe,x=this,Ae=d;le.$$p=null,Ce=l(arguments),fe=Ce,Ae=f(Q("Yielder"),"new",[],te.$to_proc());try{fe.unshift(Ae),e.yieldX(x.block,fe)}catch(B){if(B&&B.$thrower_type=="breaker")return B.$v;throw B}return x},-1)}(j[0],null,j)}(h[0],null,h)};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,l=e.klass,f=e.slice,h=e.send2,d=e.find_super,k=e.to_a,C=e.defs,N=e.Kernel,U=e.send,O=e.def,j=e.return_self,D=e.Opal,G=e.rb_lt,de=e.eqeqeq,ne=e.rb_plus,me=e.alias,Q=[],be=e.nil,le=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(Ee,te,Ce){var fe=l(Ee,te,"Enumerator"),x=[fe].concat(Ce);return function(Ae,B,he){var W=l(Ae,B,"Lazy"),Fe=[W].concat(he),$e=e.$r(Fe),V=W.$$prototype;return V.enumerator=be,l(W,le("Exception"),"StopLazyError"),C(W,"$for",function w($,o){var c,p,m=w.$$p||be,E=this,T=be;return w.$$p=null,c=f(arguments,1),p=c,T=h(E,d(E,"for",w,!1,!0),"for",[$].concat(k(p)),m),T.enumerator=$,T},-2),O(W,"$initialize",function w($,o){var c=w.$$p||be,p=this;return w.$$p=null,o==null&&(o=be),s(p),c===be&&N.$raise(le("ArgumentError"),"tried to call lazy new without a block"),p.enumerator=$,h(p,d(p,"initialize",w,!1,!0),"initialize",[o],function(E,T){var re,je;E==null&&(E=be),re=f(arguments,1),je=re;try{return U($,"each",k(je),function(ft){var yt,zt;yt=f(arguments),zt=yt,zt.unshift(E),i(c,zt)},-1)}catch(nt){if(e.rescue(nt,[$e("StopLazyError")]))try{return be}finally{e.pop_exception()}else throw nt}},-2)},-2),O(W,"$lazy",j),O(W,"$collect",function w(){var $=w.$$p||be,o=this;return w.$$p=null,t($)||N.$raise(le("ArgumentError"),"tried to call lazy map without a block"),U($e("Lazy"),"new",[o,o.$enumerator_size()],function(p,m){var E,T;p==null&&(p=be),E=f(arguments,1),T=E;var re=i($,T);p.$yield(re)},-2)}),O(W,"$collect_concat",function w(){var $=w.$$p||be,o=this;return w.$$p=null,t($)||N.$raise(le("ArgumentError"),"tried to call lazy map without a block"),U($e("Lazy"),"new",[o,be],function(p,m){var E,T;p==null&&(p=be),E=f(arguments,1),T=E;var re=i($,T);if(re["$respond_to?"]("force")&&re["$respond_to?"]("each"))U(re,"each",[],function(ft){return ft==null&&(ft=be),p.$yield(ft)});else{var je=D.$try_convert(re,le("Array"),"to_ary");je===be?p.$yield(re):U(re,"each",[],function(ft){return ft==null&&(ft=be),p.$yield(ft)})}},-2)}),O(W,"$drop",function($){var o=this,c=be,p=be,m=be;return $=r($,le("Integer"),"to_int"),t(G($,0))&&N.$raise(le("ArgumentError"),"attempt to drop negative size"),c=o.$enumerator_size(),p=de(le("Integer"),c)&&t(G($,c))?$:c,m=0,U($e("Lazy"),"new",[o,p],function(T,re){var je,nt;return T==null&&(T=be),je=f(arguments,1),nt=je,t(G(m,$))?m=ne(m,1):U(T,"yield",k(nt))},-2)}),O(W,"$drop_while",function w(){var $=w.$$p||be,o=this,c=be;return w.$$p=null,t($)||N.$raise(le("ArgumentError"),"tried to call lazy drop_while without a block"),c=!0,U($e("Lazy"),"new",[o,be],function(m,E){var T,re;if(m==null&&(m=be),T=f(arguments,1),re=T,t(c)){var je=i($,re);t(je)||(c=!1,U(m,"yield",k(re)))}else return U(m,"yield",k(re))},-2)}),O(W,"$enum_for",function w($,o){var c=w.$$p||be,p,m,E,T=this;return w.$$p=null,p=f(arguments),p.length>0&&(m=p.shift()),m==null&&(m="each"),E=p,U(T.$class(),"for",[T,m].concat(k(E)),c.$to_proc())},-1),O(W,"$find_all",function w(){var $=w.$$p||be,o=this;return w.$$p=null,t($)||N.$raise(le("ArgumentError"),"tried to call lazy select without a block"),U($e("Lazy"),"new",[o,be],function(p,m){var E,T;p==null&&(p=be),E=f(arguments,1),T=E;var re=i($,T);t(re)&&U(p,"yield",k(T))},-2)}),O(W,"$grep",function w($){var o=w.$$p||be,c=this;return w.$$p=null,t(o)?U($e("Lazy"),"new",[c,be],function(m,E){var T,re;m==null&&(m=be),T=f(arguments,1),re=T;var je=D.$destructure(re),nt=$["$==="](je);t(nt)&&(nt=n(o,je),m.$yield(n(o,je)))},-2):U($e("Lazy"),"new",[c,be],function(m,E){var T,re;m==null&&(m=be),T=f(arguments,1),re=T;var je=D.$destructure(re),nt=$["$==="](je);t(nt)&&m.$yield(je)},-2)}),O(W,"$reject",function w(){var $=w.$$p||be,o=this;return w.$$p=null,t($)||N.$raise(le("ArgumentError"),"tried to call lazy reject without a block"),U($e("Lazy"),"new",[o,be],function(p,m){var E,T;p==null&&(p=be),E=f(arguments,1),T=E;var re=i($,T);t(re)||U(p,"yield",k(T))},-2)}),O(W,"$take",function($){var o=this,c=be,p=be,m=be;return $=r($,le("Integer"),"to_int"),t(G($,0))&&N.$raise(le("ArgumentError"),"attempt to take negative size"),c=o.$enumerator_size(),p=de(le("Integer"),c)&&t(G($,c))?$:c,m=0,U($e("Lazy"),"new",[o,p],function(T,re){var je,nt;return T==null&&(T=be),je=f(arguments,1),nt=je,t(G(m,$))?(U(T,"yield",k(nt)),m=ne(m,1)):N.$raise($e("StopLazyError"))},-2)}),O(W,"$take_while",function w(){var $=w.$$p||be,o=this;return w.$$p=null,t($)||N.$raise(le("ArgumentError"),"tried to call lazy take_while without a block"),U($e("Lazy"),"new",[o,be],function(p,m){var E,T;p==null&&(p=be),E=f(arguments,1),T=E;var re=i($,T);t(re)?U(p,"yield",k(T)):N.$raise($e("StopLazyError"))},-2)}),O(W,"$inspect",function(){var $=this;return"#<"+$.$class()+": "+$.enumerator.$inspect()+">"}),me(W,"force","to_a"),me(W,"filter","find_all"),me(W,"flat_map","collect_concat"),me(W,"map","collect"),me(W,"select","find_all"),me(W,"to_enum","enum_for")}(fe,fe,x)}("::",null,Q)};Opal.modules["corelib/enumerator/yielder"]=function(e){var t=e.klass,r=e.def,n=e.slice,i=e.send,s=e.to_a,l=[],f=e.nil;return e.add_stubs("yield,proc"),function(h,d,k){var C=t(h,d,"Enumerator"),N=[C].concat(k);return function(U,O){var j=t(U,O,"Yielder"),D=j.$$prototype;return D.block=f,r(j,"$initialize",function G(){var de=G.$$p||f,ne=this;return G.$$p=null,ne.block=de,ne}),r(j,"$yield",function(de){var ne,me,Q=this;ne=n(arguments),me=ne;var be=e.yieldX(Q.block,me);if(be&&be.$thrower_type=="break")throw be;return be},-1),r(j,"$<<",function(de){var ne=this;return ne.$yield(de),ne}),r(j,"$to_proc",function(){var de=this;return i(de,"proc",[],function ne(me){var Q,be,le=ne.$$s==null?this:ne.$$s;return Q=n(arguments),be=Q,i(le,"yield",s(be))},{$$arity:-1,$$s:de})})}(N[0],null)}(l[0],null,l)};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,l=e.truthy,f=e.send,h=e.not,d=e.def,k=e.rb_plus,C=e.to_a,N=e.Opal,U=e.send2,O=e.find_super,j=e.rb_ge,D=e.Kernel,G=e.rb_le,de=e.alias,ne=e.top,me=[],Q=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"),ne.$require("corelib/enumerable"),function(le,Ee,te){var Ce=i(le,Ee,"Enumerator"),fe=[Ce].concat(te),x=e.$r(fe),Ae=Ce.$$prototype;return Ae.size=Ae.args=Ae.object=Ae.method=Ae.values=Ae.cursor=Q,Ce.$include(be("Enumerable")),Ce.$$prototype.$$is_enumerator=!0,s(Ce,"$for",function B(he,W,Fe){var $e=B.$$p||Q,V,w,$,o=this;B.$$p=null,V=t(arguments,1),V.length>0&&(w=V.shift()),w==null&&(w="each"),$=V;var c=o.$allocate();return c.object=he,c.size=$e,c.method=w,c.args=$,c.cursor=0,c},-2),d(Ce,"$initialize",function B(he){var W=B.$$p||Q,Fe=this;return B.$$p=null,t(arguments),n(Fe),Fe.cursor=0,l(W)?(Fe.object=f(x("Generator"),"new",[],W.$to_proc()),Fe.method="each",Fe.args=[],Fe.size=arguments[0]||Q,l(Fe.size)&&h(Fe.size["$respond_to?"]("call"))?Fe.size=r(Fe.size,be("Integer"),"to_int"):Q):(Fe.object=arguments[0],Fe.method=arguments[1]||"each",Fe.args=t(arguments,2),Fe.size=Q)},-1),d(Ce,"$each",function B(he){var W=B.$$p||Q,Fe,$e,V=this;return B.$$p=null,Fe=t(arguments),$e=Fe,l(W["$nil?"]())&&l($e["$empty?"]())?V:($e=k(V.args,$e),l(W["$nil?"]())?f(V.$class(),"new",[V.object,V.method].concat(C($e))):f(V.object,"__send__",[V.method].concat(C($e)),W.$to_proc()))},-1),d(Ce,"$size",function(){var he=this;return l(he.size["$respond_to?"]("call"))?f(he.size,"call",C(he.args)):he.size}),d(Ce,"$with_index",function B(he){var W=B.$$p||Q,Fe=this;if(B.$$p=null,he==null&&(he=0),he=l(he)?r(he,be("Integer"),"to_int"):0,!l(W))return f(Fe,"enum_for",["with_index",he],function V(){var w=V.$$s==null?this:V.$$s;return w.$size()},{$$s:Fe});var $e=he;return Fe.$each.$$p=function(){var V=N.$destructure(arguments),w=W(V,$e);return $e++,w},Fe.$each()},-1),d(Ce,"$each_with_index",function B(){var he=B.$$p||Q,W=this;return B.$$p=null,he===Q?f(W,"enum_for",["each_with_index"],function Fe(){var $e=Fe.$$s==null?this:Fe.$$s;return $e.$size()},{$$s:W}):(U(W,O(W,"each_with_index",B,!1,!0),"each_with_index",[],he),W.object)}),d(Ce,"$rewind",function(){var he=this;return he.cursor=0,he}),d(Ce,"$peek_values",function(){var he=this,W=Q;return he.values=l(W=he.values)?W:f(he,"map",[],function($e){var V,w;return V=t(arguments),w=V,w},-1),l(j(he.cursor,he.values.$length()))&&D.$raise(be("StopIteration"),"iteration reached an end"),he.values["$[]"](he.cursor)}),d(Ce,"$peek",function(){var he=this,W=Q;return W=he.$peek_values(),l(G(W.$length(),1))?W["$[]"](0):W}),d(Ce,"$next_values",function(){var he=this,W=Q;return W=he.$peek_values(),he.cursor=k(he.cursor,1),W}),d(Ce,"$next",function(){var he=this,W=Q;return W=he.$next_values(),l(G(W.$length(),1))?W["$[]"](0):W}),d(Ce,"$feed",function(he){var W=this;return W.$raise(x("NotImplementedError"),"Opal doesn't support Enumerator#feed")}),d(Ce,"$+",function(he){var W=this;return be(be("Enumerator"),"Chain").$new(W,he)}),d(Ce,"$inspect",function(){var he=this,W=Q;return W="#<"+he.$class()+": "+he.object.$inspect()+":"+he.method,l(he.args["$any?"]())&&(W=k(W,"("+he.args.$inspect()["$[]"](be("Range").$new(1,-2))+")")),k(W,">")}),de(Ce,"with_object","each_with_object"),Ce.$autoload("ArithmeticSequence","corelib/enumerator/arithmetic_sequence"),Ce.$autoload("Chain","corelib/enumerator/chain"),Ce.$autoload("Generator","corelib/enumerator/generator"),Ce.$autoload("Lazy","corelib/enumerator/lazy"),Ce.$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,l=e.return_self,f=e.rb_minus,h=e.rb_times,d=e.rb_lt,k=e.eqeq,C=e.rb_divide,N=e.return_val,U=e.Opal,O=e.slice,j=e.extract_kwargs,D=e.ensure_kwargs,G=e.not,de=e.send,ne=e.rb_ge,me=e.rb_le,Q=e.rb_plus,be=e.rb_gt,le=e.alias,Ee=e.top,te=e.nil,Ce=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"),Ee.$require("corelib/comparable"),function(fe,x){var Ae=t(fe,x,"Numeric");return Ae.$include(Ce("Comparable")),i(Ae,"$coerce",function(he){var W=this;return r(he["$instance_of?"](W.$class()))?[he,W]:[n.$Float(he),n.$Float(W)]}),i(Ae,"$__coerced__",function(he,W){var Fe,$e,V=this,w=te,$=te;if(r(W["$respond_to?"]("coerce")))return $e=W.$coerce(V),Fe=s($e),w=Fe[0]==null?te:Fe[0],$=Fe[1]==null?te:Fe[1],w.$__send__(he,$);switch(he){case"+":case"-":case"*":case"/":case"%":case"&":case"|":case"^":case"**":return n.$raise(Ce("TypeError"),""+W.$class()+" can't be coerced into Numeric");case">":case">=":case"<":case"<=":case"<=>":return n.$raise(Ce("ArgumentError"),"comparison of "+V.$class()+" with "+W.$class()+" failed");default:return te}}),i(Ae,"$<=>",function(he){var W=this;return r(W["$equal?"](he))?0:te}),i(Ae,"$+@",l),i(Ae,"$-@",function(){var he=this;return f(0,he)}),i(Ae,"$%",function(he){var W=this;return f(W,h(he,W.$div(he)))}),i(Ae,"$abs",function(){var he=this;return d(he,0)?he["$-@"]():he}),i(Ae,"$abs2",function(){var he=this;return h(he,he)}),i(Ae,"$angle",function(){var he=this;return d(he,0)?Ce(Ce("Math"),"PI"):0}),i(Ae,"$ceil",function(he){var W=this;return he==null&&(he=0),W.$to_f().$ceil(he)},-1),i(Ae,"$conj",l),i(Ae,"$denominator",function(){var he=this;return he.$to_r().$denominator()}),i(Ae,"$div",function(he){var W=this;return k(he,0)&&n.$raise(Ce("ZeroDivisionError"),"divided by o"),C(W,he).$floor()}),i(Ae,"$divmod",function(he){var W=this;return[W.$div(he),W["$%"](he)]}),i(Ae,"$fdiv",function(he){var W=this;return C(W.$to_f(),he)}),i(Ae,"$floor",function(he){var W=this;return he==null&&(he=0),W.$to_f().$floor(he)},-1),i(Ae,"$i",function(){var he=this;return n.$Complex(0,he)}),i(Ae,"$imag",N(0)),i(Ae,"$integer?",N(!1)),i(Ae,"$nonzero?",function(){var he=this;return r(he["$zero?"]())?te:he}),i(Ae,"$numerator",function(){var he=this;return he.$to_r().$numerator()}),i(Ae,"$polar",function(){var he=this;return[he.$abs(),he.$arg()]}),i(Ae,"$quo",function(he){var W=this;return C(U["$coerce_to!"](W,Ce("Rational"),"to_r"),he)}),i(Ae,"$real",l),i(Ae,"$real?",N(!0)),i(Ae,"$rect",function(){var he=this;return[he,0]}),i(Ae,"$round",function(he){var W=this;return W.$to_f().$round(he)},-1),i(Ae,"$step",function B(he,W,Fe){var $e=B.$$p||te,V,w,$,o,c,p,m=this,E=te;B.$$p=null,V=O(arguments),w=j(V),w=D(w),V.length>0&&($=V.shift()),V.length>0&&(o=V.shift()),c=w.$$smap.to,p=w.$$smap.by,$!==void 0&&c!==void 0&&n.$raise(Ce("ArgumentError"),"to is given twice"),o!==void 0&&p!==void 0&&n.$raise(Ce("ArgumentError"),"step is given twice"),c!==void 0&&($=c),p!==void 0&&(o=p),$===void 0&&($=te);function T(){o===te&&n.$raise(Ce("TypeError"),"step must be numeric"),o!=null&&o["$=="](0)&&n.$raise(Ce("ArgumentError"),"step can't be 0"),(o===te||o==null)&&(o=1);var wt=o["$<=>"](0);wt===te&&n.$raise(Ce("ArgumentError"),"0 can't be coerced into "+o.$class()),($===te||$==null)&&($=wt>0?Ce(Ce("Float"),"INFINITY"):Ce(Ce("Float"),"INFINITY")["$-@"]()),U.$compare(m,$)}function re(){if(o>0&&m>$||o<0&&m<$)return 0;if(o===1/0||o===-1/0)return 1;var wt=Math.abs,St=Math.floor,Oe=(wt(m)+wt($)+wt($-m))/wt(o)*Ce(Ce("Float"),"EPSILON");return Oe===1/0||Oe===-1/0?0:(Oe>.5&&(Oe=.5),St(($-m)/o+Oe)+1)}function je(){if(T(),o===0)return 1/0;if(o%1!==0)return re();if(o>0&&m>$||o<0&&m<$)return 0;var wt=Math.ceil,St=Math.abs,Oe=St(m-$)+1,ze=St(o);return wt(Oe/ze)}if($e===te)return(G($)||r($["$is_a?"](Ce("Numeric"))))&&(G(o)||r(o["$is_a?"](Ce("Numeric"))))?Ce(Ce("Enumerator"),"ArithmeticSequence").$new([$,o,r(c)?"to: ":te,r(p)?"by: ":te],m):de(m,"enum_for",["step",$,o],je.$to_proc());T();var nt=o["$negative?"](),ft=o["$=="](0)||$===1/0&&!nt||$===-1/0&&nt;if(m.$$is_number&&o.$$is_number&&$.$$is_number)if(m%1===0&&(ft||$%1===0)&&o%1===0){var yt=m;if(ft)for(;;yt+=o)$e(yt);else if(nt)for(;yt>=$;yt+=o)$e(yt);else for(;yt<=$;yt+=o)$e(yt);return m}else{var zt=m.$to_f().valueOf();o=o.$to_f().valueOf(),$=$.$to_f().valueOf();var _t=re();if(!isFinite(o))_t!==0&&$e(zt);else if(o===0)for(;;)$e(zt);else for(var vt=0;vt<_t;vt++){var mt=vt*o+m;(o>=0?$<mt:$>mt)&&(mt=$),$e(mt)}return m}for(E=m;r(nt?ne(E,$):me(E,$));)e.yield1($e,E),E=Q(E,o)},-1),i(Ae,"$to_c",function(){var he=this;return n.$Complex(he,0)}),i(Ae,"$to_int",function(){var he=this;return he.$to_i()}),i(Ae,"$truncate",function(he){var W=this;return he==null&&(he=0),W.$to_f().$truncate(he)},-1),i(Ae,"$zero?",function(){var he=this;return he["$=="](0)}),i(Ae,"$positive?",function(){var he=this;return be(he,0)}),i(Ae,"$negative?",function(){var he=this;return d(he,0)}),i(Ae,"$dup",l),i(Ae,"$clone",function(he){var W=this;return he=D(he),he.$$smap.freeze,W},-1),i(Ae,"$finite?",N(!0)),i(Ae,"$infinite?",N(te)),le(Ae,"arg","angle"),le(Ae,"conjugate","conj"),le(Ae,"imaginary","imag"),le(Ae,"magnitude","abs"),le(Ae,"modulo","%"),le(Ae,"phase","arg"),le(Ae,"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,l=e.hash_put,f=e.hash_delete,h=e.coerce_to,d=e.respond_to,k=e.deny_frozen_access,C=e.freeze,N=e.klass,U=e.slice,O=e.defs,j=e.Kernel,D=e.def,G=e.Opal,de=e.eqeqeq,ne=e.hash2,me=e.send2,Q=e.find_super,be=e.send,le=e.rb_gt,Ee=e.rb_times,te=e.eqeq,Ce=e.rb_minus,fe=e.to_a,x=e.to_ary,Ae=e.gvars,B=e.rb_ge,he=e.assign_ivar,W=e.rb_lt,Fe=e.return_self,$e=e.neqeq,V=e.alias,w=e.top,$=[],o=e.nil,c=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"),w.$require("corelib/enumerable"),w.$require("corelib/numeric"),function(p,m,E){var T=N(p,m,"Array"),re=[T].concat(E),je=e.$r(re);T.$include(c("Enumerable")),e.prop(T.$$prototype,"$$is_array",!0);function nt(Oe){for(var ze=Oe[0],De=1,Ge=Oe.length;De<Ge;De++)Oe[De-1]=Oe[De];return Oe.pop(),ze}function ft(Oe,ze){return ze.$$name===e.Array?Oe:ze.$allocate().$replace(Oe.$to_a())}function yt(Oe,ze,De){for(var Ge,v=null,q=new Array(Oe.length),we=0,Me=0,Qe=Oe.length;we<Qe;we++){if(!v)try{Ge=i(De,Oe[we])}catch(ct){v=ct}(v||ze(Ge))&&(q[Me]=Oe[we],Me+=1)}if(Me!==we&&(Oe.splice.apply(Oe,[0,q.length].concat(q)),Oe.splice(Me,q.length)),v)throw v}O(T,"$[]",function(ze){var De,Ge,v=this;return De=U(arguments),Ge=De,ft(Ge,v)},-1),D(T,"$initialize",function Oe(ze,De){var Ge=Oe.$$p||o,v=this;if(Oe.$$p=null,ze==null&&(ze=o),De==null&&(De=o),k(v),De!==o&&Ge!==o&&j.$warn("warning: block supersedes default value argument"),ze>c(c("Integer"),"MAX")&&j.$raise(c("ArgumentError"),"array size too big"),arguments.length>2&&j.$raise(c("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..2)"),arguments.length===0)return v.splice(0,v.length),v;if(arguments.length===1){if(ze.$$is_array)return v.$replace(ze.$to_a()),v;if(ze["$respond_to?"]("to_ary"))return v.$replace(ze.$to_ary()),v}ze=h(ze,c("Integer"),"to_int"),ze<0&&j.$raise(c("ArgumentError"),"negative array size"),v.splice(0,v.length);var q,we;if(Ge===o)for(q=0;q<ze;q++)v.push(De);else for(q=0,we;q<ze;q++)we=Ge(q),v[q]=we;return v},-1),O(T,"$try_convert",function(ze){return G["$coerce_to?"](ze,c("Array"),"to_ary")}),D(T,"$&",function(ze){var De=this;ze=de(c("Array"),ze)?ze.$to_a():h(ze,c("Array"),"to_ary").$to_a();var Ge=[],v=ne([],{}),q,we,Me;for(q=0,we=ze.length;q<we;q++)l(v,ze[q],!0);for(q=0,we=De.length;q<we;q++)Me=De[q],f(v,Me)!==void 0&&Ge.push(Me);return Ge}),D(T,"$|",function(ze){var De=this;ze=de(c("Array"),ze)?ze.$to_a():h(ze,c("Array"),"to_ary").$to_a();var Ge=ne([],{}),v,q;for(v=0,q=De.length;v<q;v++)l(Ge,De[v],!0);for(v=0,q=ze.length;v<q;v++)l(Ge,ze[v],!0);return Ge.$keys()}),D(T,"$*",function(ze){var De=this;if(t(ze["$respond_to?"]("to_str")))return De.$join(ze.$to_str());ze=h(ze,c("Integer"),"to_int"),t(ze<0)&&j.$raise(c("ArgumentError"),"negative argument");for(var Ge=[],v=De.$to_a(),q=0;q<ze;q++)Ge=Ge.concat(v);return Ge}),D(T,"$+",function(ze){var De=this;return ze=de(c("Array"),ze)?ze.$to_a():h(ze,c("Array"),"to_ary").$to_a(),De.concat(ze)}),D(T,"$-",function(ze){var De=this;if(ze=de(c("Array"),ze)?ze.$to_a():h(ze,c("Array"),"to_ary").$to_a(),t(De.length===0))return[];if(t(ze.length===0))return De.slice();var Ge=[],v=ne([],{}),q,we,Me;for(q=0,we=ze.length;q<we;q++)l(v,ze[q],!0);for(q=0,we=De.length;q<we;q++)Me=De[q],s(v,Me)===void 0&&Ge.push(Me);return Ge}),D(T,"$<<",function(ze){var De=this;return k(De),De.push(ze),De}),D(T,"$<=>",function(ze){var De=this;if(de(c("Array"),ze))ze=ze.$to_a();else if(t(ze["$respond_to?"]("to_ary")))ze=ze.$to_ary().$to_a();else return o;if(De.$hash()===ze.$hash())return 0;for(var Ge=Math.min(De.length,ze.length),v=0;v<Ge;v++){var q=De[v]["$<=>"](ze[v]);if(q!==0)return q}return De.length["$<=>"](ze.length)}),D(T,"$==",function(ze){var De=this,Ge={};function v(q,we){var Me,Qe,ct,a;if(q===we)return!0;if(!we.$$is_array)return d(we,"$to_ary")?we["$=="](q):!1;if(q.$$constructor!==Array&&(q=q.$to_a()),we.$$constructor!==Array&&(we=we.$to_a()),q.length!==we.length)return!1;for(Ge[q.$object_id()]=!0,Me=0,Qe=q.length;Me<Qe;Me++)if(ct=q[Me],a=we[Me],ct.$$is_array){if(a.$$is_array&&a.length!==ct.length||!Ge.hasOwnProperty(ct.$object_id())&&!v(ct,a))return!1}else if(!ct["$=="](a))return!1;return!0}return v(De,ze)});function zt(Oe,ze){var De=Oe.length,Ge,v,q,we;return Ge=ze.excl,v=ze.begin===o?0:h(ze.begin,e.Integer,"to_int"),q=ze.end===o?-1:h(ze.end,e.Integer,"to_int"),v<0&&(v+=De,v<0)||(ze.excl_rev&&ze.begin!==o&&(v+=1),v>De)?o:q<0&&(q+=De,q<0)?[]:((!Ge||ze.end===o)&&(q+=1),we=Oe.slice(v,q),we)}function _t(Oe,ze){var De,Ge=[],v=0,q;for(ze.step<0?(q={begin:ze.range.end,end:ze.range.begin,excl:!1,excl_rev:ze.range.excl},De=zt(Oe,q).$reverse()):De=zt(Oe,ze.range);v<De.length;)Ge.push(De[v]),v+=Math.abs(ze.step);return Ge}function vt(Oe,ze,De){var Ge=Oe.length,v;return ze=h(ze,e.Integer,"to_int"),ze<0&&(ze+=Ge,ze<0)?o:De===void 0?ze>=Ge||ze<0?o:Oe[ze]:(De=h(De,e.Integer,"to_int"),De<0||ze>Ge||ze<0?o:(v=Oe.slice(ze,ze+De),v))}D(T,"$[]",function(ze,De){var Ge=this;return ze.$$is_range?zt(Ge,ze):ze.$$is_arithmetic_seq?_t(Ge,ze):vt(Ge,ze,De)},-2),D(T,"$[]=",function(ze,De,Ge){var v=this,q=o,we=o;k(v),q=o;var Me,Qe=v.length;if(ze.$$is_range){De.$$is_array?q=De.$to_a():De["$respond_to?"]("to_ary")?q=De.$to_ary().$to_a():q=[De];var ct=ze.excl,a=ze.begin===o?0:h(ze.begin,e.Integer,"to_int"),oe=ze.end===o?-1:h(ze.end,e.Integer,"to_int");if(a<0&&(a+=Qe,a<0&&j.$raise(c("RangeError"),""+ze.$inspect()+" out of range")),oe<0&&(oe+=Qe),(!ct||ze.end===o)&&(oe+=1),a>Qe)for(Me=Qe;Me<a;Me++)v[Me]=o;return oe<0?v.splice.apply(v,[a,0].concat(q)):v.splice.apply(v,[a,oe-a].concat(q)),De}else{Ge===void 0?we=1:(we=De,De=Ge,De.$$is_array?q=De.$to_a():De["$respond_to?"]("to_ary")?q=De.$to_ary().$to_a():q=[De]);var se;if(ze=h(ze,c("Integer"),"to_int"),we=h(we,c("Integer"),"to_int"),ze<0&&(se=ze,ze+=Qe,ze<0&&j.$raise(c("IndexError"),"index "+se+" too small for array; minimum "+-v.length)),we<0&&j.$raise(c("IndexError"),"negative length ("+we+")"),ze>Qe)for(Me=Qe;Me<ze;Me++)v[Me]=o;return Ge===void 0?v[ze]=De:v.splice.apply(v,[ze,we].concat(q)),De}},-3),D(T,"$any?",function Oe(ze){var De=Oe.$$p||o,Ge=this;return Oe.$$p=null,Ge.length===0?!1:me(Ge,Q(Ge,"any?",Oe,!1,!0),"any?",[ze],De)},-1),D(T,"$assoc",function(ze){for(var De=this,Ge=0,v=De.length,q;Ge<v;Ge++)if(q=De[Ge],q.length&&q[0]["$=="](ze))return q;return o}),D(T,"$at",function(ze){var De=this;return ze=h(ze,c("Integer"),"to_int"),ze<0&&(ze+=De.length),ze<0||ze>=De.length?o:De[ze]}),D(T,"$bsearch_index",function Oe(){var ze=Oe.$$p||o,De=this;if(Oe.$$p=null,ze===o)return De.$enum_for("bsearch_index");for(var Ge=0,v=De.length,q,we,Me,Qe=!1,ct=o;Ge<v;){if(q=Ge+Math.floor((v-Ge)/2),we=De[q],Me=i(ze,we),Me===!0)ct=q,Qe=!0;else if(Me===!1||Me===o)Qe=!1;else if(Me.$$is_number){if(Me===0)return q;Qe=Me<0}else j.$raise(c("TypeError"),"wrong argument type "+Me.$class()+" (must be numeric, true, false or nil)");Qe?v=q:Ge=q+1}return ct}),D(T,"$bsearch",function Oe(){var ze=Oe.$$p||o,De=this,Ge=o;return Oe.$$p=null,ze===o?De.$enum_for("bsearch"):(Ge=be(De,"bsearch_index",[],ze.$to_proc()),Ge!=null&&Ge.$$is_number?De[Ge]:Ge)}),D(T,"$cycle",function Oe(ze){var De=Oe.$$p||o,Ge=this;if(Oe.$$p=null,ze==null&&(ze=o),De===o)return be(Ge,"enum_for",["cycle",ze],function we(){var Me=we.$$s==null?this:we.$$s;return t(ze["$nil?"]())?c(c("Float"),"INFINITY"):(ze=G["$coerce_to!"](ze,c("Integer"),"to_int"),t(le(ze,0))?Ee(Me.$enumerator_size(),ze):0)},{$$s:Ge});if(t(Ge["$empty?"]())||te(ze,0))return o;var v,q;if(ze===o)for(;;)for(v=0,q=Ge.length;v<q;v++)i(De,Ge[v]);else{if(ze=G["$coerce_to!"](ze,c("Integer"),"to_int"),ze<=0)return Ge;for(;ze>0;){for(v=0,q=Ge.length;v<q;v++)i(De,Ge[v]);ze--}}return Ge},-1),D(T,"$clear",function(){var ze=this;return k(ze),ze.splice(0,ze.length),ze}),D(T,"$count",function Oe(ze){var De=Oe.$$p||o,Ge=this;return Oe.$$p=null,t(ze!==void 0)||t(De)?me(Ge,Q(Ge,"count",Oe,!1,!0),"count",[ze],De):Ge.$size()},-1),D(T,"$initialize_copy",function(ze){var De=this;return De.$replace(ze)}),D(T,"$collect",function Oe(){var ze=Oe.$$p||o,De=this;if(Oe.$$p=null,ze===o)return be(De,"enum_for",["collect"],function Me(){var Qe=Me.$$s==null?this:Me.$$s;return Qe.$size()},{$$s:De});for(var Ge=[],v=0,q=De.length;v<q;v++){var we=i(ze,De[v]);Ge.push(we)}return Ge}),D(T,"$collect!",function Oe(){var ze=Oe.$$p||o,De=this;if(Oe.$$p=null,ze===o)return be(De,"enum_for",["collect!"],function we(){var Me=we.$$s==null?this:we.$$s;return Me.$size()},{$$s:De});k(De);for(var Ge=0,v=De.length;Ge<v;Ge++){var q=i(ze,De[Ge]);De[Ge]=q}return De});function mt(Oe,ze){return Oe===ze||ze===0?1:ze>0&&Oe>ze?mt(Oe-1,ze-1)+mt(Oe-1,ze):0}D(T,"$combination",function Oe(ze){var De=Oe.$$p||o,Ge=this,v=o;if(Oe.$$p=null,v=G["$coerce_to!"](ze,c("Integer"),"to_int"),De===o)return be(Ge,"enum_for",["combination",v],function se(){var K=se.$$s==null?this:se.$$s;return mt(K.length,v)},{$$s:Ge});var q,we,Me,Qe,ct,a,oe;if(v===0)e.yield1(De,[]);else if(v===1)for(q=0,we=Ge.length;q<we;q++)e.yield1(De,[Ge[q]]);else if(v===Ge.length)e.yield1(De,Ge.slice());else if(v>=0&&v<Ge.length){for(Me=[],q=0;q<=v+1;q++)Me.push(0);for(Qe=[],ct=0,a=!1,Me[0]=-1;!a;){for(Qe[ct]=Ge[Me[ct+1]];ct<v-1;)ct++,oe=Me[ct+1]=Me[ct]+1,Qe[ct]=Ge[oe];e.yield1(De,Qe.slice()),ct++;do a=ct===0,Me[ct]++,ct--;while(Me[ct+1]+v===Ge.length+ct+1)}}return Ge}),D(T,"$repeated_combination",function Oe(ze){var De=Oe.$$p||o,Ge=this,v=o;if(Oe.$$p=null,v=G["$coerce_to!"](ze,c("Integer"),"to_int"),De===o)return be(Ge,"enum_for",["repeated_combination",v],function we(){var Me=we.$$s==null?this:we.$$s;return mt(Me.length+v-1,v)},{$$s:Ge});function q(we,Me,Qe,ct){if(Qe.length==we){var a=Qe.slice();e.yield1(De,a);return}for(var oe=Me;oe<ct.length;oe++)Qe.push(ct[oe]),q(we,oe,Qe,ct),Qe.pop()}return v>=0&&q(v,0,[],Ge),Ge}),D(T,"$compact",function(){for(var ze=this,De=[],Ge=0,v=ze.length,q;Ge<v;Ge++)(q=ze[Ge])!==o&&De.push(q);return De}),D(T,"$compact!",function(){var ze=this;k(ze);for(var De=ze.length,Ge=0,v=ze.length;Ge<v;Ge++)ze[Ge]===o&&(ze.splice(Ge,1),v--,Ge--);return ze.length===De?o:ze}),D(T,"$concat",function(ze){var De,Ge,v=this;return De=U(arguments),Ge=De,k(v),Ge=be(Ge,"map",[],function q(we){var Me=q.$$s==null?this:q.$$s;return we==null&&(we=o),we=de(c("Array"),we)?we.$to_a():h(we,c("Array"),"to_ary").$to_a(),t(we["$equal?"](Me))&&(we=we.$dup()),we},{$$s:v}),be(Ge,"each",[],function q(we){var Me=q.$$s==null?this:q.$$s;we==null&&(we=o);for(var Qe=0,ct=we.length;Qe<ct;Qe++)Me.push(we[Qe])},{$$s:v}),v},-1),D(T,"$delete",function Oe(ze){var De=Oe.$$p||o,Ge=this;Oe.$$p=null;for(var v=Ge.length,q=0,we=v;q<we;q++)Ge[q]["$=="](ze)&&(k(Ge),Ge.splice(q,1),we--,q--);return Ge.length===v?De!==o?e.yieldX(De,[]):o:ze}),D(T,"$delete_at",function(ze){var De=this;if(k(De),ze=h(ze,c("Integer"),"to_int"),ze<0&&(ze+=De.length),ze<0||ze>=De.length)return o;var Ge=De[ze];return De.splice(ze,1),Ge}),D(T,"$delete_if",function Oe(){var ze=Oe.$$p||o,De=this;return Oe.$$p=null,ze===o?be(De,"enum_for",["delete_if"],function Ge(){var v=Ge.$$s==null?this:Ge.$$s;return v.$size()},{$$s:De}):(k(De),yt(De,r,ze),De)}),D(T,"$difference",function(ze){var De,Ge,v=this;return De=U(arguments),Ge=De,be(Ge,"reduce",[v.$to_a().$dup()],function(we,Me){return we==null&&(we=o),Me==null&&(Me=o),Ce(we,Me)})},-1),D(T,"$dig",function(ze,De){var Ge,v,q=this,we=o;return Ge=U(arguments,1),v=Ge,we=q["$[]"](ze),we===o||v.length===0?we:(t(we["$respond_to?"]("dig"))||j.$raise(c("TypeError"),""+we.$class()+" does not have #dig method"),be(we,"dig",fe(v)))},-2),D(T,"$drop",function(ze){var De=this;return ze=h(ze,c("Integer"),"to_int"),ze<0&&j.$raise(c("ArgumentError")),De.slice(ze)}),D(T,"$dup",function Oe(){var ze=Oe.$$p||o,De=this;return Oe.$$p=null,De.$$class===e.Array&&De.$$class.$allocate.$$pristine&&De.$copy_instance_variables.$$pristine&&De.$initialize_dup.$$pristine?De.slice(0):me(De,Q(De,"dup",Oe,!1,!0),"dup",[],ze)}),D(T,"$each",function Oe(){var ze=Oe.$$p||o,De=this;if(Oe.$$p=null,ze===o)return be(De,"enum_for",["each"],function q(){var we=q.$$s==null?this:q.$$s;return we.$size()},{$$s:De});for(var Ge=0,v=De.length;Ge<v;Ge++)i(ze,De[Ge]);return De}),D(T,"$each_index",function Oe(){var ze=Oe.$$p||o,De=this;if(Oe.$$p=null,ze===o)return be(De,"enum_for",["each_index"],function q(){var we=q.$$s==null?this:q.$$s;return we.$size()},{$$s:De});for(var Ge=0,v=De.length;Ge<v;Ge++)i(ze,Ge);return De}),D(T,"$empty?",function(){var ze=this;return ze.length===0}),D(T,"$eql?",function(ze){var De=this,Ge={};function v(q,we){var Me,Qe,ct,a;if(!we.$$is_array||(we=we.$to_a(),q.length!==we.length))return!1;for(Ge[q.$object_id()]=!0,Me=0,Qe=q.length;Me<Qe;Me++)if(ct=q[Me],a=we[Me],ct.$$is_array){if(a.$$is_array&&a.length!==ct.length||!Ge.hasOwnProperty(ct.$object_id())&&!v(ct,a))return!1}else if(!ct["$eql?"](a))return!1;return!0}return v(De,ze)}),D(T,"$fetch",function Oe(ze,De){var Ge=Oe.$$p||o,v=this;Oe.$$p=null;var q=ze;if(ze=h(ze,c("Integer"),"to_int"),ze<0&&(ze+=v.length),ze>=0&&ze<v.length)return v[ze];if(Ge!==o&&De!=null&&v.$warn("warning: block supersedes default value argument"),Ge!==o)return Ge(q);if(De!=null)return De;v.length===0?j.$raise(c("IndexError"),"index "+q+" outside of array bounds: 0...0"):j.$raise(c("IndexError"),"index "+q+" outside of array bounds: -"+v.length+"..."+v.length)},-2),D(T,"$fill",function Oe(ze){var De=Oe.$$p||o,Ge,v,q,we,Me=this,Qe=o,ct=o,a=o,oe=o,se=o;Oe.$$p=null,Ge=U(arguments),v=Ge,k(Me);var K,ye;if(t(De)?(t(v.length>2)&&j.$raise(c("ArgumentError"),"wrong number of arguments ("+v.$length()+" for 0..2)"),we=v,q=x(we),Qe=q[0]==null?o:q[0],ct=q[1]==null?o:q[1]):(t(v.length==0)?j.$raise(c("ArgumentError"),"wrong number of arguments (0 for 1..3)"):t(v.length>3)&&j.$raise(c("ArgumentError"),"wrong number of arguments ("+v.$length()+" for 1..3)"),we=v,q=x(we),a=q[0]==null?o:q[0],Qe=q[1]==null?o:q[1],ct=q[2]==null?o:q[2]),de(c("Range"),Qe)){if(t(ct)&&j.$raise(c("TypeError"),"length invalid with range"),oe=Qe.begin===o?0:h(Qe.begin,c("Integer"),"to_int"),t(oe<0)&&(oe+=this.length),t(oe<0)&&j.$raise(c("RangeError"),""+Qe.$inspect()+" out of range"),se=Qe.end===o?-1:h(Qe.end,c("Integer"),"to_int"),t(se<0)&&(se+=this.length),t(Qe["$exclude_end?"]())||(se+=1),t(se<=oe))return Me}else if(t(Qe))if(oe=h(Qe,c("Integer"),"to_int"),t(oe<0)&&(oe+=this.length),t(oe<0)&&(oe=0),t(ct)){if(se=h(ct,c("Integer"),"to_int"),t(se==0))return Me;se+=oe}else se=this.length;else oe=0,se=this.length;if(t(oe>this.length))for(K=this.length;K<se;K++)Me[K]=o;if(t(se>this.length)&&(this.length=se),t(De))for(this.length;oe<se;oe++)ye=De(oe),Me[oe]=ye;else for(this.length;oe<se;oe++)Me[oe]=a;return Me},-1),D(T,"$first",function(ze){var De=this;return ze==null?De.length===0?o:De[0]:(ze=h(ze,c("Integer"),"to_int"),ze<0&&j.$raise(c("ArgumentError"),"negative array size"),De.slice(0,ze))},-1),D(T,"$flatten",function(ze){var De=this;function Ge(v,q){var we=[],Me,Qe,ct,a;for(v=v.$to_a(),Me=0,Qe=v.length;Me<Qe;Me++){if(ct=v[Me],!d(ct,"$to_ary",!0)){we.push(ct);continue}if(a=ct.$to_ary(),a===o){we.push(ct);continue}switch(a.$$is_array||j.$raise(c("TypeError")),a===De&&j.$raise(c("ArgumentError")),q){case void 0:we=we.concat(Ge(a));break;case 0:we.push(a);break;default:we.push.apply(we,Ge(a,q-1))}}return we}return ze!==void 0&&(ze=h(ze,c("Integer"),"to_int")),Ge(De,ze)},-1),D(T,"$flatten!",function(ze){var De=this;k(De);var Ge=De.$flatten(ze);if(De.length==Ge.length){for(var v=0,q=De.length;v<q&&De[v]===Ge[v];v++);if(v==q)return o}return De.$replace(Ge),De},-1),D(T,"$freeze",function(){var ze=this;return t(ze["$frozen?"]())?ze:C(ze)}),D(T,"$hash",function(){var ze=this,De=n===void 0,Ge=["A"],v=ze.$object_id(),q,we,Me;try{if(De&&(n=Object.create(null)),n[v])return"self";for(Me in n)if(q=n[Me],ze["$eql?"](q))return"self";for(n[v]=ze,we=0;we<ze.length;we++)q=ze[we],Ge.push(q.$hash());return Ge.join(",")}finally{De&&(n=void 0)}}),D(T,"$include?",function(ze){for(var De=this,Ge=0,v=De.length;Ge<v;Ge++)if(De[Ge]["$=="](ze))return!0;return!1}),D(T,"$index",function Oe(ze){var De=Oe.$$p||o,Ge=this;Oe.$$p=null;var v,q,we;if(ze!=null&&De!==o&&Ge.$warn("warning: given block not used"),ze!=null){for(v=0,q=Ge.length;v<q;v++)if(Ge[v]["$=="](ze))return v}else if(De!==o){for(v=0,q=Ge.length;v<q;v++)if(we=De(Ge[v]),we!==!1&&we!==o)return v}else return Ge.$enum_for("index");return o},-1),D(T,"$insert",function(ze,De){var Ge,v,q=this;if(Ge=U(arguments,1),v=Ge,k(q),ze=h(ze,c("Integer"),"to_int"),v.length>0){if(ze<0&&(ze+=q.length+1,ze<0&&j.$raise(c("IndexError"),""+ze+" is out of bounds")),ze>q.length)for(var we=q.length;we<ze;we++)q.push(o);q.splice.apply(q,[ze,0].concat(v))}return q},-2);var wt=[];D(T,"$inspect",function(){var ze=this,De=[],Ge=ze.$__id__(),v=!0;return function(){try{if(wt.indexOf(Ge)!==-1)return v=!1,"[...]";wt.push(Ge);for(var q=0,we=ze.length;q<we;q++){var Me=ze["$[]"](q);De.push(je("Opal").$inspect(Me))}return"["+De.join(", ")+"]"}finally{v&&wt.pop()}}()}),D(T,"$intersection",function(ze){var De,Ge,v=this;return De=U(arguments),Ge=De,be(Ge,"reduce",[v.$to_a().$dup()],function(we,Me){return we==null&&(we=o),Me==null&&(Me=o),we["$&"](Me)})},-1),D(T,"$intersect?",function(ze){var De=this;return De.$intersection(ze)["$empty?"]()["$!"]()}),D(T,"$join",function(ze){var De=this;if(Ae[","]==null&&(Ae[","]=o),ze==null&&(ze=o),t(De.length===0))return"";t(ze===o)&&(ze=Ae[","]);var Ge=[],v,q,we,Me;for(v=0,q=De.length;v<q;v++){if(we=De[v],d(we,"$to_str")&&(Me=we.$to_str(),Me!==o)){Ge.push(Me.$to_s());continue}if(d(we,"$to_ary")&&(Me=we.$to_ary(),Me===De&&j.$raise(c("ArgumentError")),Me!==o)){Ge.push(Me.$join(ze));continue}if(d(we,"$to_s")&&(Me=we.$to_s(),Me!==o)){Ge.push(Me);continue}j.$raise(c("NoMethodError").$new(""+je("Opal").$inspect(De.$item())+" doesn't respond to #to_str, #to_ary or #to_s","to_str"))}return ze===o?Ge.join(""):Ge.join(G["$coerce_to!"](ze,c("String"),"to_str").$to_s())},-1),D(T,"$keep_if",function Oe(){var ze=Oe.$$p||o,De=this;return Oe.$$p=null,ze===o?be(De,"enum_for",["keep_if"],function Ge(){var v=Ge.$$s==null?this:Ge.$$s;return v.$size()},{$$s:De}):(k(De),yt(De,t,ze),De)}),D(T,"$last",function(ze){var De=this;return ze==null?De.length===0?o:De[De.length-1]:(ze=h(ze,c("Integer"),"to_int"),ze<0&&j.$raise(c("ArgumentError"),"negative array size"),ze>De.length&&(ze=De.length),De.slice(De.length-ze,De.length))},-1),D(T,"$length",function(){var ze=this;return ze.length}),D(T,"$max",function Oe(ze){var De=Oe.$$p||o,Ge=this;return Oe.$$p=null,be(Ge.$each(),"max",[ze],De.$to_proc())},-1),D(T,"$min",function Oe(){var ze=Oe.$$p||o,De=this;return Oe.$$p=null,be(De.$each(),"min",[],ze.$to_proc())});function St(Oe,ze){for(var De=ze>=0?1:0;ze;)De*=Oe,Oe--,ze--;return De}return D(T,"$permutation",function Oe(ze){var De=Oe.$$p||o,Ge=this,v=o,q=o;if(Oe.$$p=null,De===o)return be(Ge,"enum_for",["permutation",ze],function a(){var oe=a.$$s==null?this:a.$$s;return St(oe.length,ze===void 0?oe.length:ze)},{$$s:Ge});var we,Me,Qe;if(ze===void 0?ze=Ge.length:ze=h(ze,c("Integer"),"to_int"),!(ze<0||Ge.length<ze))if(ze===0)e.yield1(De,[]);else if(ze===1)for(var ct=0;ct<Ge.length;ct++)e.yield1(De,[Ge[ct]]);else v=je("Array").$new(ze),q=je("Array").$new(Ge.length,!1),we=function(a,oe,se,K,ye){Ge=this;for(var y=0;y<Ge.length;y++)if(K["$[]"](y)["$!"]())if(oe[se]=y,se<a-1)K[y]=!0,we.call(Ge,a,oe,se+1,K,ye),K[y]=!1;else{Qe=[];for(var X=0;X<oe.length;X++)Qe.push(Ge[oe[X]]);i(ye,Qe)}},De!==o?(Me=Ge.slice(),we.call(Me,ze,v,0,q,De)):we.call(Ge,ze,v,0,q,De);return Ge},-1),D(T,"$repeated_permutation",function Oe(ze){var De=Oe.$$p||o,Ge=this,v=o;if(Oe.$$p=null,v=G["$coerce_to!"](ze,c("Integer"),"to_int"),De===o)return be(Ge,"enum_for",["repeated_permutation",v],function we(){var Me=we.$$s==null?this:we.$$s;return t(B(v,0))?Me.$size()["$**"](v):0},{$$s:Ge});function q(we,Me,Qe){if(Me.length==we){var ct=Me.slice();e.yield1(De,ct);return}for(var a=0;a<Qe.length;a++)Me.push(Qe[a]),q(we,Me,Qe),Me.pop()}return q(v,[],Ge.slice()),Ge}),D(T,"$pop",function(ze){var De=this;return k(De),t(ze===void 0)?t(De.length===0)?o:De.pop():(ze=h(ze,c("Integer"),"to_int"),t(ze<0)&&j.$raise(c("ArgumentError"),"negative array size"),t(De.length===0)?[]:t(ze===1)?[De.pop()]:t(ze>De.length)?De.splice(0,De.length):De.splice(De.length-ze,De.length))},-1),D(T,"$product",function Oe(ze){var De=Oe.$$p||o,Ge,v,q=this;Oe.$$p=null,Ge=U(arguments),v=Ge;var we=De!==o?null:[],Me=v.length+1,Qe=new Array(Me),ct=new Array(Me),a=new Array(Me),oe,se,K,ye,y=1;for(a[0]=q,oe=1;oe<Me;oe++)a[oe]=h(v[oe-1],c("Array"),"to_ary");for(oe=0;oe<Me;oe++){if(ye=a[oe].length,ye===0)return we||q;y*=ye,y>2147483647&&j.$raise(c("RangeError"),"too big to product"),ct[oe]=ye,Qe[oe]=0}e:for(;;){for(K=[],oe=0;oe<Me;oe++)K.push(a[oe][Qe[oe]]);for(we?we.push(K):e.yield1(De,K),se=Me-1,Qe[se]++;Qe[se]===ct[se];){if(Qe[se]=0,--se<0)break e;Qe[se]++}}return we||q},-1),D(T,"$push",function(ze){var De,Ge,v=this;De=U(arguments),Ge=De,k(v);for(var q=0,we=Ge.length;q<we;q++)v.push(Ge[q]);return v},-1),D(T,"$rassoc",function(ze){for(var De=this,Ge=0,v=De.length,q;Ge<v;Ge++)if(q=De[Ge],q.length&&q[1]!==void 0&&q[1]["$=="](ze))return q;return o}),D(T,"$reject",function Oe(){var ze=Oe.$$p||o,De=this;if(Oe.$$p=null,ze===o)return be(De,"enum_for",["reject"],function Me(){var Qe=Me.$$s==null?this:Me.$$s;return Qe.$size()},{$$s:De});for(var Ge=[],v=0,q=De.length,we;v<q;v++)we=ze(De[v]),(we===!1||we===o)&&Ge.push(De[v]);return Ge}),D(T,"$reject!",function Oe(){var ze=Oe.$$p||o,De=this,Ge=o;return Oe.$$p=null,ze===o?be(De,"enum_for",["reject!"],function v(){var q=v.$$s==null?this:v.$$s;return q.$size()},{$$s:De}):(k(De),Ge=De.$length(),be(De,"delete_if",[],ze.$to_proc()),te(De.$length(),Ge)?o:De)}),D(T,"$replace",function(ze){var De=this;return k(De),ze=de(c("Array"),ze)?ze.$to_a():h(ze,c("Array"),"to_ary").$to_a(),De.splice(0,De.length),De.push.apply(De,ze),De}),D(T,"$reverse",function(){var ze=this;return ze.slice(0).reverse()}),D(T,"$reverse!",function(){var ze=this;return k(ze),ze.reverse()}),D(T,"$reverse_each",function Oe(){var ze=Oe.$$p||o,De=this;return Oe.$$p=null,ze===o?be(De,"enum_for",["reverse_each"],function Ge(){var v=Ge.$$s==null?this:Ge.$$s;return v.$size()},{$$s:De}):(be(De.$reverse(),"each",[],ze.$to_proc()),De)}),D(T,"$rindex",function Oe(ze){var De=Oe.$$p||o,Ge=this;Oe.$$p=null;var v,q;if(ze!=null&&De!==o&&Ge.$warn("warning: given block not used"),ze!=null){for(v=Ge.length-1;v>=0&&!(v>=Ge.length);v--)if(Ge[v]["$=="](ze))return v}else if(De!==o){for(v=Ge.length-1;v>=0&&!(v>=Ge.length);v--)if(q=De(Ge[v]),q!==!1&&q!==o)return v}else if(ze==null)return Ge.$enum_for("rindex");return o},-1),D(T,"$rotate",function(ze){var De=this;ze==null&&(ze=1);var Ge,v,q,we;return ze=h(ze,c("Integer"),"to_int"),De.length===1?De.slice():De.length===0?[]:(Ge=De.slice(),v=ze%Ge.length,q=Ge.slice(v),we=Ge.slice(0,v),q.concat(we))},-1),D(T,"$rotate!",function(ze){var De=this,Ge=o;return ze==null&&(ze=1),k(De),De.length===0||De.length===1?De:(ze=h(ze,c("Integer"),"to_int"),Ge=De.$rotate(ze),De.$replace(Ge))},-1),function(Oe,ze){var De=N(Oe,ze,"SampleRandom"),Ge=De.$$prototype;return Ge.rng=o,D(De,"$initialize",he("rng")),D(De,"$rand",function(q){var we=this,Me=o;return Me=h(we.rng.$rand(q),c("Integer"),"to_int"),t(Me<0)&&j.$raise(c("RangeError"),"random value must be >= 0"),t(Me<q)||j.$raise(c("RangeError"),"random value must be less than Array size"),Me})}(T,null),D(T,"$sample",function(ze,De){var Ge=this,v=o,q=o;if(t(ze===void 0))return Ge.$at(j.$rand(Ge.length));if(t(De===void 0)?t(v=G["$coerce_to?"](ze,c("Hash"),"to_hash"))?(De=v,ze=o):(De=o,ze=h(ze,c("Integer"),"to_int")):(ze=h(ze,c("Integer"),"to_int"),De=h(De,c("Hash"),"to_hash")),t(ze)&&t(ze<0)&&j.$raise(c("ArgumentError"),"count must be greater than 0"),t(De)&&(q=De["$[]"]("random")),q=t(q)&&t(q["$respond_to?"]("rand"))?je("SampleRandom").$new(q):j,!t(ze))return Ge[q.$rand(Ge.length)];var we,Me,Qe,ct,a,oe,se,K;switch(ze>Ge.length&&(ze=Ge.length),ze){case 0:return[];case 1:return[Ge[q.$rand(Ge.length)]];case 2:return ct=q.$rand(Ge.length),a=q.$rand(Ge.length-1),ct<=a&&a++,[Ge[ct],Ge[a]];default:if(Ge.length/ze>3){for(we=!1,Me=0,Qe=je("Array").$new(ze),ct=1,Qe[0]=q.$rand(Ge.length);ct<ze;){for(oe=q.$rand(Ge.length),a=0;a<ct;){for(;oe===Qe[a];){if(Me++,Me>100){we=!0;break}oe=q.$rand(Ge.length)}if(we)break;a++}if(we)break;Qe[ct]=oe,ct++}if(!we){for(ct=0;ct<ze;)Qe[ct]=Ge[Qe[ct]],ct++;return Qe}}Qe=Ge.slice();for(var ye=0;ye<ze;ye++)se=q.$rand(Ge.length-ye)+ye,K=Qe[ye],Qe[ye]=Qe[se],Qe[se]=K;return ze===Ge.length?Qe:Qe["$[]"](0,ze)}},-1),D(T,"$select",function Oe(){var ze=Oe.$$p||o,De=this;if(Oe.$$p=null,ze===o)return be(De,"enum_for",["select"],function Qe(){var ct=Qe.$$s==null?this:Qe.$$s;return ct.$size()},{$$s:De});for(var Ge=[],v=0,q=De.length,we,Me;v<q;v++)we=De[v],Me=i(ze,we),t(Me)&&Ge.push(we);return Ge}),D(T,"$select!",function Oe(){var ze=Oe.$$p||o,De=this;if(Oe.$$p=null,ze===o)return be(De,"enum_for",["select!"],function v(){var q=v.$$s==null?this:v.$$s;return q.$size()},{$$s:De});k(De);var Ge=De.length;return be(De,"keep_if",[],ze.$to_proc()),De.length===Ge?o:De}),D(T,"$shift",function(ze){var De=this;return k(De),t(ze===void 0)?t(De.length===0)?o:nt(De):(ze=h(ze,c("Integer"),"to_int"),t(ze<0)&&j.$raise(c("ArgumentError"),"negative array size"),t(De.length===0)?[]:De.splice(0,ze))},-1),D(T,"$shuffle",function(ze){var De=this;return De.$dup().$to_a()["$shuffle!"](ze)},-1),D(T,"$shuffle!",function(ze){var De=this;k(De);var Ge,v=De.length,q,we;for(ze!==void 0&&(ze=G["$coerce_to?"](ze,c("Hash"),"to_hash"),ze!==o&&(ze=ze["$[]"]("random"),ze!==o&&ze["$respond_to?"]("rand")&&(Ge=ze)));v;)Ge?(q=Ge.$rand(v).$to_int(),q<0&&j.$raise(c("RangeError"),"random number too small "+q),q>=v&&j.$raise(c("RangeError"),"random number too big "+q)):q=De.$rand(v),we=De[--v],De[v]=De[q],De[q]=we;return De},-1),D(T,"$slice!",function(ze,De){var Ge=this,v=o,q=o,we=o,Me=o,Qe=o;if(k(Ge),v=o,t(De===void 0))if(de(c("Range"),ze)){q=ze,v=Ge["$[]"](q),we=q.begin===o?0:h(q.begin,c("Integer"),"to_int"),Me=q.end===o?-1:h(q.end,c("Integer"),"to_int"),we<0&&(we+=Ge.length),Me<0?Me+=Ge.length:Me>=Ge.length&&(Me=Ge.length-1,q.excl&&(Me+=1));var ct=Me-we;q.excl&&q.end!==o?Me-=1:ct+=1,we<Ge.length&&we>=0&&Me<Ge.length&&Me>=0&&ct>0&&Ge.splice(we,ct)}else{if(Qe=h(ze,c("Integer"),"to_int"),Qe<0&&(Qe+=Ge.length),Qe<0||Qe>=Ge.length)return o;v=Ge[Qe],Qe===0?Ge.shift():Ge.splice(Qe,1)}else{if(Qe=h(ze,c("Integer"),"to_int"),De=h(De,c("Integer"),"to_int"),De<0)return o;v=Ge["$[]"](Qe,De),Qe<0&&(Qe+=Ge.length),Qe+De>Ge.length&&(De=Ge.length-Qe),Qe<Ge.length&&Qe>=0&&Ge.splice(Qe,De)}return v},-2),D(T,"$sort",function Oe(){var ze=Oe.$$p||o,De=this;return Oe.$$p=null,t(De.length>1)?(ze===o&&(ze=function(Ge,v){return Ge["$<=>"](v)}),De.slice().sort(function(Ge,v){var q=ze(Ge,v);return q===o&&j.$raise(c("ArgumentError"),"comparison of "+Ge.$inspect()+" with "+v.$inspect()+" failed"),le(q,0)?1:W(q,0)?-1:0})):De}),D(T,"$sort!",function Oe(){var ze=Oe.$$p||o,De=this;Oe.$$p=null,k(De);var Ge;ze!==o?Ge=be(De.slice(),"sort",[],ze.$to_proc()):Ge=De.slice().$sort(),De.length=0;for(var v=0,q=Ge.length;v<q;v++)De.push(Ge[v]);return De}),D(T,"$sort_by!",function Oe(){var ze=Oe.$$p||o,De=this;return Oe.$$p=null,ze===o?be(De,"enum_for",["sort_by!"],function Ge(){var v=Ge.$$s==null?this:Ge.$$s;return v.$size()},{$$s:De}):(k(De),De.$replace(be(De,"sort_by",[],ze.$to_proc())))}),D(T,"$take",function(ze){var De=this;return ze<0&&j.$raise(c("ArgumentError")),De.slice(0,ze)}),D(T,"$take_while",function Oe(){var ze=Oe.$$p||o,De=this;Oe.$$p=null;for(var Ge=[],v=0,q=De.length,we,Me;v<q;v++){if(we=De[v],Me=ze(we),Me===!1||Me===o)return Ge;Ge.push(we)}return Ge}),D(T,"$to_a",function(){var ze=this;return ze.$$class===e.Array?ze:e.Array.$new(ze)}),D(T,"$to_ary",Fe),D(T,"$to_h",function Oe(){var ze=Oe.$$p||o,De=this,Ge=o;Oe.$$p=null,Ge=De,ze!==o&&(Ge=be(Ge,"map",[],ze.$to_proc()));var v,q=Ge.length,we,Me,Qe,ct=ne([],{});for(v=0;v<q;v++)we=G["$coerce_to?"](Ge[v],c("Array"),"to_ary"),we.$$is_array||j.$raise(c("TypeError"),"wrong element type "+we.$class()+" at "+v+" (expected array)"),we.length!==2&&j.$raise(c("ArgumentError"),"wrong array length at "+v+" (expected 2, was "+we.$length()+")"),Me=we[0],Qe=we[1],l(ct,Me,Qe);return ct}),D(T,"$transpose",function(){var ze=this,De=o,Ge=o;return t(ze["$empty?"]())?[]:(De=[],Ge=o,be(ze,"each",[],function(q){var we=o;return q==null&&(q=o),q=de(c("Array"),q)?q.$to_a():h(q,c("Array"),"to_ary").$to_a(),Ge=t(we=Ge)?we:q.length,$e(q.length,Ge)&&j.$raise(c("IndexError"),"element size differs ("+q.length+" should be "+Ge+")"),be(q.length,"times",[],function(Qe){var ct,a=o;return Qe==null&&(Qe=o),a=t(we=De["$[]"](Qe))?we:(ct=[Qe,[]],be(De,"[]=",ct),ct[ct.length-1]),a["$<<"](q.$at(Qe))})}),De)}),D(T,"$union",function(ze){var De,Ge,v=this;return De=U(arguments),Ge=De,be(Ge,"reduce",[v.$uniq()],function(we,Me){return we==null&&(we=o),Me==null&&(Me=o),we["$|"](Me)})},-1),D(T,"$uniq",function Oe(){var ze=Oe.$$p||o,De=this;Oe.$$p=null;var Ge=ne([],{}),v,q,we,Me;if(ze===o)for(v=0,q=De.length;v<q;v++)we=De[v],s(Ge,we)===void 0&&l(Ge,we,we);else for(v=0,q=De.length;v<q;v++)we=De[v],Me=i(ze,we),s(Ge,Me)===void 0&&l(Ge,Me,we);return Ge.$values()}),D(T,"$uniq!",function Oe(){var ze=Oe.$$p||o,De=this;Oe.$$p=null,k(De);var Ge=De.length,v=ne([],{}),q,we,Me,Qe;for(q=0,we=Ge;q<we;q++){if(Me=De[q],Qe=ze===o?Me:i(ze,Me),s(v,Qe)===void 0){l(v,Qe,Me);continue}De.splice(q,1),we--,q--}return De.length===Ge?o:De}),D(T,"$unshift",function(ze){var De,Ge,v=this;De=U(arguments),Ge=De,k(v);var q=v.length,we=Ge.length;if(we==0)return v;for(var Me=q-we,Qe=0;Qe<we;Qe++)v.push(v[Me+Qe]);for(var ct=q-1;ct-we>=0;)v[ct]=v[ct-we],ct--;for(var a=0;a<we;a++)v[a]=Ge[a];return v},-1),D(T,"$values_at",function(ze){var De,Ge,v=this,q=o;return De=U(arguments),Ge=De,q=[],be(Ge,"each",[],function we(Me){var Qe=we.$$s==null?this:we.$$s,ct=o,a=o,oe=o;return Me==null&&(Me=o),t(Me["$is_a?"](c("Range")))?(ct=Me.$end()===o?-1:h(Me.$end(),c("Integer"),"to_int"),a=Me.$begin()===o?0:h(Me.$begin(),c("Integer"),"to_int"),a<0?(a=a+Qe.length,o):(ct<0&&(ct=ct+Qe.length),Me["$exclude_end?"]()&&Me.$end()!==o&&ct--,ct<a?o:be(a,"upto",[ct],function se(K){var ye=se.$$s==null?this:se.$$s;return K==null&&(K=o),q["$<<"](ye.$at(K))},{$$s:Qe}))):(oe=h(Me,c("Integer"),"to_int"),q["$<<"](Qe.$at(oe)))},{$$s:v}),q},-1),D(T,"$zip",function Oe(ze){var De=Oe.$$p||o,Ge,v,q=this,we=o;Oe.$$p=null,Ge=U(arguments),v=Ge;var Me=[],Qe=q.length,ct,a,oe,se,K;for(se=0,K=v.length;se<K;se++)if(a=v[se],!a.$$is_array){if(a.$$is_range||a.$$is_enumerator){v[se]=a.$take(Qe);continue}v[se]=(t(we=G["$coerce_to?"](a,c("Array"),"to_ary"))?we:G["$coerce_to!"](a,c("Enumerator"),"to_enum","each")).$to_a()}for(oe=0;oe<Qe;oe++){for(ct=[q[oe]],se=0,K=v.length;se<K;se++)a=v[se][oe],a==null&&(a=o),ct[se+1]=a;Me[oe]=ct}if(De!==o){for(oe=0;oe<Qe;oe++)e.yield1(De,Me[oe]);return o}return Me},-1),O(T,"$inherited",function(ze){ze.$$prototype.$to_a=function(){return this.slice(0,this.length)}}),D(T,"$instance_variables",function Oe(){var ze=Oe.$$p||o,De=this;return Oe.$$p=null,be(me(De,Q(De,"instance_variables",Oe,!1,!0),"instance_variables",[],ze),"reject",[],function(v){var q=o;return v==null&&(v=o),t(q=/^@\d+$/.test(v))?q:v["$=="]("@length")})}),D(T,"$pack",function(ze){return U(arguments),j.$raise("To use Array#pack, you must first require 'corelib/array/pack'.")},-1),V(T,"append","push"),V(T,"filter","select"),V(T,"filter!","select!"),V(T,"map","collect"),V(T,"map!","collect!"),V(T,"prepend","unshift"),V(T,"size","length"),V(T,"slice","[]"),V(T,"to_s","inspect"),G.$pristine(T.$singleton_class(),"allocate"),G.$pristine(T,"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,l=e.hash_delete,f=e.deny_frozen_access,h=e.freeze,d=e.klass,k=e.slice,C=e.Opal,N=e.Kernel,U=e.defs,O=e.def,j=e.send,D=e.rb_ge,G=e.rb_gt,de=e.hash2,ne=e.truthy,me=e.to_a,Q=e.return_self,be=e.alias,le=e.top,Ee=[],te=e.nil,Ce=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?"),le.$require("corelib/enumerable"),function(fe,x,Ae){var B=d(fe,x,"Hash"),he=[B].concat(Ae),W=e.$r(he);B.$include(Ce("Enumerable")),B.$$prototype.$$is_hash=!0,U(B,"$[]",function(V){var w,$,o=this;w=k(arguments),$=w;var c,p=$.length,m;if(p===1){if(c=C["$coerce_to?"]($["$[]"](0),Ce("Hash"),"to_hash"),c!==te)return o.$allocate()["$merge!"](c);for($=C["$coerce_to?"]($["$[]"](0),Ce("Array"),"to_ary"),$===te&&N.$raise(Ce("ArgumentError"),"odd number of arguments for Hash"),p=$.length,c=o.$allocate(),m=0;m<p;m++)if($[m].$$is_array)switch($[m].length){case 1:c.$store($[m][0],te);break;case 2:c.$store($[m][0],$[m][1]);break;default:N.$raise(Ce("ArgumentError"),"invalid number of elements ("+$[m].length+" for 1..2)")}return c}for(p%2!==0&&N.$raise(Ce("ArgumentError"),"odd number of arguments for Hash"),c=o.$allocate(),m=0;m<p;m+=2)c.$store($[m],$[m+1]);return c},-1),U(B,"$allocate",function(){var V=this,w=new V.$$constructor;return n(w),w.$$none=te,w.$$proc=te,w}),U(B,"$try_convert",function(V){return C["$coerce_to?"](V,Ce("Hash"),"to_hash")}),O(B,"$initialize",function $e(V){var w=$e.$$p||te,$=this;return $e.$$p=null,f($),V!==void 0&&w!==te&&N.$raise(Ce("ArgumentError"),"wrong number of arguments (1 for 0)"),$.$$none=V===void 0?te:V,$.$$proc=w,$},-1),O(B,"$==",function(V){var w=this;if(w===V)return!0;if(!V.$$is_hash||w.$$keys.length!==V.$$keys.length)return!1;for(var $=0,o=w.$$keys,c=o.length,p,m,E;$<c;$++)if(p=o[$],p.$$is_string?(m=w.$$smap[p],E=V.$$smap[p]):(m=p.value,E=i(V,p.key)),E===void 0||!m["$eql?"](E))return!1;return!0}),O(B,"$>=",function(V){var w=this,$=te;return V=C["$coerce_to!"](V,Ce("Hash"),"to_hash"),w.$$keys.length<V.$$keys.length?!1:($=!0,j(V,"each",[],function o(c,p){var m=o.$$s==null?this:o.$$s,E=te;if(c==null&&(c=te),p==null&&(p=te),E=m.$fetch(c,null),E==null||E!==p){$=!1;return}},{$$s:w}),$)}),O(B,"$>",function(V){var w=this;return V=C["$coerce_to!"](V,Ce("Hash"),"to_hash"),w.$$keys.length<=V.$$keys.length?!1:D(w,V)}),O(B,"$<",function(V){var w=this;return V=C["$coerce_to!"](V,Ce("Hash"),"to_hash"),G(V,w)}),O(B,"$<=",function(V){var w=this;return V=C["$coerce_to!"](V,Ce("Hash"),"to_hash"),D(V,w)}),O(B,"$[]",function(V){var w=this,$=i(w,V);return $!==void 0?$:w.$default(V)}),O(B,"$[]=",function(V,w){var $=this;return f($),s($,V,w),w}),O(B,"$assoc",function(V){for(var w=this,$=0,o=w.$$keys,c=o.length,p;$<c;$++)if(p=o[$],p.$$is_string){if(p["$=="](V))return[p,w.$$smap[p]]}else if(p.key["$=="](V))return[p.key,p.value];return te}),O(B,"$clear",function(){var V=this;return f(V),n(V),V}),O(B,"$clone",function(){var V=this,w=new V.$$class;return n(w),e.hash_clone(V,w),w}),O(B,"$compact",function(){for(var V=this,w=r(),$=0,o=V.$$keys,c=o.length,p,m,E;$<c;$++)p=o[$],p.$$is_string?m=V.$$smap[p]:(m=p.value,p=p.key),m!==te&&s(w,p,m);return w}),O(B,"$compact!",function(){var V=this;f(V);for(var w=!1,$=0,o=V.$$keys,c=o.length,p,m,E;$<c;$++)p=o[$],p.$$is_string?m=V.$$smap[p]:(m=p.value,p=p.key),m===te&&l(V,p)!==void 0&&(w=!0,c--,$--);return w?V:te}),O(B,"$compare_by_identity",function(){var V=this;f(V);var w,$,o,c=V.$$keys,p;if(V.$$by_identity)return V;if(V.$$keys.length===0)return V.$$by_identity=!0,V;for(p=de([],{}).$compare_by_identity(),w=0,$=c.length;w<$;w++)o=c[w],o.$$is_string||(o=o.key),s(p,o,i(V,o));return V.$$by_identity=!0,V.$$map=p.$$map,V.$$smap=p.$$smap,V}),O(B,"$compare_by_identity?",function(){var V=this;return V.$$by_identity===!0}),O(B,"$default",function(V){var w=this;return V!==void 0&&w.$$proc!==te&&w.$$proc!==void 0?w.$$proc.$call(w,V):w.$$none===void 0?te:w.$$none},-1),O(B,"$default=",function(V){var w=this;return f(w),w.$$proc=te,w.$$none=V,V}),O(B,"$default_proc",function(){var V=this;return V.$$proc!==void 0?V.$$proc:te}),O(B,"$default_proc=",function(V){var w=this;f(w);var $=V;return $!==te&&($=C["$coerce_to!"]($,Ce("Proc"),"to_proc"),$["$lambda?"]()&&$.$arity().$abs()!==2&&N.$raise(Ce("TypeError"),"default_proc takes two arguments")),w.$$none=te,w.$$proc=$,V}),O(B,"$delete",function $e(V){var w=$e.$$p||te,$=this;$e.$$p=null,f($);var o=l($,V);return o!==void 0?o:w!==te?e.yield1(w,V):te}),O(B,"$delete_if",function $e(){var V=$e.$$p||te,w=this;if($e.$$p=null,!ne(V))return j(w,"enum_for",["delete_if"],function T(){var re=T.$$s==null?this:T.$$s;return re.$size()},{$$s:w});f(w);for(var $=0,o=w.$$keys,c=o.length,p,m,E;$<c;$++)p=o[$],p.$$is_string?m=w.$$smap[p]:(m=p.value,p=p.key),E=V(p,m),E!==!1&&E!==te&&l(w,p)!==void 0&&(c--,$--);return w}),O(B,"$dig",function(V,w){var $,o,c=this,p=te;return $=k(arguments,1),o=$,p=c["$[]"](V),p===te||o.length===0?p:(ne(p["$respond_to?"]("dig"))||N.$raise(Ce("TypeError"),""+p.$class()+" does not have #dig method"),j(p,"dig",me(o)))},-2),O(B,"$each",function $e(){var V=$e.$$p||te,w=this;if($e.$$p=null,!ne(V))return j(w,"enum_for",["each"],function E(){var T=E.$$s==null?this:E.$$s;return T.$size()},{$$s:w});for(var $=0,o=w.$$keys.slice(),c=o.length,p,m;$<c;$++)p=o[$],p.$$is_string?m=w.$$smap[p]:(m=p.value,p=p.key),t(V,[p,m]);return w}),O(B,"$each_key",function $e(){var V=$e.$$p||te,w=this;if($e.$$p=null,!ne(V))return j(w,"enum_for",["each_key"],function m(){var E=m.$$s==null?this:m.$$s;return E.$size()},{$$s:w});for(var $=0,o=w.$$keys.slice(),c=o.length,p;$<c;$++)p=o[$],V(p.$$is_string?p:p.key);return w}),O(B,"$each_value",function $e(){var V=$e.$$p||te,w=this;if($e.$$p=null,!ne(V))return j(w,"enum_for",["each_value"],function m(){var E=m.$$s==null?this:m.$$s;return E.$size()},{$$s:w});for(var $=0,o=w.$$keys.slice(),c=o.length,p;$<c;$++)p=o[$],V(p.$$is_string?w.$$smap[p]:p.value);return w}),O(B,"$empty?",function(){var V=this;return V.$$keys.length===0}),O(B,"$except",function(V){var w,$,o=this;return w=k(arguments),$=w,j(o.$dup(),"except!",me($))},-1),O(B,"$except!",function(V){var w,$,o=this;return w=k(arguments),$=w,j($,"each",[],function c(p){var m=c.$$s==null?this:c.$$s;return p==null&&(p=te),m.$delete(p)},{$$s:o}),o},-1),O(B,"$fetch",function $e(V,w){var $=$e.$$p||te,o=this;$e.$$p=null;var c=i(o,V);return c!==void 0?c:$!==te?$(V):w!==void 0?w:N.$raise(Ce("KeyError").$new("key not found: "+V.$inspect(),de(["key","receiver"],{key:V,receiver:o})))},-2),O(B,"$fetch_values",function $e(V){var w=$e.$$p||te,$,o,c=this;return $e.$$p=null,$=k(arguments),o=$,j(o,"map",[],function p(m){var E=p.$$s==null?this:p.$$s;return m==null&&(m=te),j(E,"fetch",[m],w.$to_proc())},{$$s:c})},-1),O(B,"$flatten",function(V){var w=this;V==null&&(V=1),V=C["$coerce_to!"](V,Ce("Integer"),"to_int");for(var $=[],o=0,c=w.$$keys,p=c.length,m,E;o<p;o++){if(m=c[o],m.$$is_string?E=w.$$smap[m]:(E=m.value,m=m.key),$.push(m),E.$$is_array){if(V===1){$.push(E);continue}$=$.concat(E.$flatten(V-2));continue}$.push(E)}return $},-1),O(B,"$freeze",function(){var V=this;return ne(V["$frozen?"]())?V:h(V)}),O(B,"$has_key?",function(V){var w=this;return i(w,V)!==void 0}),O(B,"$has_value?",function(V){for(var w=this,$=0,o=w.$$keys,c=o.length,p;$<c;$++)if(p=o[$],(p.$$is_string?w.$$smap[p]:p.value)["$=="](V))return!0;return!1}),O(B,"$hash",function(){var V=this,w=e.hash_ids===void 0,$=V.$object_id(),o=["Hash"],c,p;try{if(w&&(e.hash_ids=Object.create(null)),e[$])return"self";for(c in e.hash_ids)if(p=e.hash_ids[c],V["$eql?"](p))return"self";e.hash_ids[$]=V;for(var m=0,E=V.$$keys,T=E.length;m<T;m++)c=E[m],c.$$is_string?o.push([c,V.$$smap[c].$hash()]):o.push([c.key_hash,c.value.$hash()]);return o.sort().join()}finally{w&&(e.hash_ids=void 0)}}),O(B,"$index",function(V){for(var w=this,$=0,o=w.$$keys,c=o.length,p,m;$<c;$++)if(p=o[$],p.$$is_string?m=w.$$smap[p]:(m=p.value,p=p.key),m["$=="](V))return p;return te}),O(B,"$indexes",function(V){var w,$,o=this;w=k(arguments),$=w;for(var c=[],p=0,m=$.length,E,T;p<m;p++){if(E=$[p],T=i(o,E),T===void 0){c.push(o.$default());continue}c.push(T)}return c},-1);var Fe;return O(B,"$inspect",function(){var V=this,w=Fe===void 0,$=V.$object_id(),o=[];return function(){try{if(w&&(Fe={}),Fe.hasOwnProperty($))return"{...}";Fe[$]=!0;for(var c=0,p=V.$$keys,m=p.length,E,T;c<m;c++)E=p[c],E.$$is_string?T=V.$$smap[E]:(T=E.value,E=E.key),E=W("Opal").$inspect(E),T=W("Opal").$inspect(T),o.push(E+"=>"+T);return"{"+o.join(", ")+"}"}finally{w&&(Fe=void 0)}}()}),O(B,"$invert",function(){for(var V=this,w=r(),$=0,o=V.$$keys,c=o.length,p,m;$<c;$++)p=o[$],p.$$is_string?m=V.$$smap[p]:(m=p.value,p=p.key),s(w,m,p);return w}),O(B,"$keep_if",function $e(){var V=$e.$$p||te,w=this;if($e.$$p=null,!ne(V))return j(w,"enum_for",["keep_if"],function T(){var re=T.$$s==null?this:T.$$s;return re.$size()},{$$s:w});f(w);for(var $=0,o=w.$$keys,c=o.length,p,m,E;$<c;$++)p=o[$],p.$$is_string?m=w.$$smap[p]:(m=p.value,p=p.key),E=V(p,m),(E===!1||E===te)&&l(w,p)!==void 0&&(c--,$--);return w}),O(B,"$keys",function(){for(var V=this,w=[],$=0,o=V.$$keys,c=o.length,p;$<c;$++)p=o[$],p.$$is_string?w.push(p):w.push(p.key);return w}),O(B,"$length",function(){var V=this;return V.$$keys.length}),O(B,"$merge",function $e(V){var w=$e.$$p||te,$,o,c=this;return $e.$$p=null,$=k(arguments),o=$,j(c.$dup(),"merge!",me(o),w.$to_proc())},-1),O(B,"$merge!",function $e(V){var w=$e.$$p||te,$,o,c=this;$e.$$p=null,$=k(arguments),o=$,f(c);var p,m,E,T,re,je,nt,ft;for(p=0;p<o.length;++p)if(E=C["$coerce_to!"](o[p],Ce("Hash"),"to_hash"),T=E.$$keys,re=T.length,w===te)for(m=0;m<re;m++)je=T[m],je.$$is_string?ft=E.$$smap[je]:(ft=je.value,je=je.key),s(c,je,ft);else for(m=0;m<re;m++){if(je=T[m],je.$$is_string?ft=E.$$smap[je]:(ft=je.value,je=je.key),nt=i(c,je),nt===void 0){s(c,je,ft);continue}s(c,je,w(je,nt,ft))}return c},-1),O(B,"$rassoc",function(V){for(var w=this,$=0,o=w.$$keys,c=o.length,p,m;$<c;$++)if(p=o[$],p.$$is_string?m=w.$$smap[p]:(m=p.value,p=p.key),m["$=="](V))return[p,m];return te}),O(B,"$rehash",function(){var V=this;return f(V),e.hash_rehash(V),V}),O(B,"$reject",function $e(){var V=$e.$$p||te,w=this;if($e.$$p=null,!ne(V))return j(w,"enum_for",["reject"],function re(){var je=re.$$s==null?this:re.$$s;return je.$size()},{$$s:w});for(var $=r(),o=0,c=w.$$keys,p=c.length,m,E,T;o<p;o++)m=c[o],m.$$is_string?E=w.$$smap[m]:(E=m.value,m=m.key),T=V(m,E),(T===!1||T===te)&&s($,m,E);return $}),O(B,"$reject!",function $e(){var V=$e.$$p||te,w=this;if($e.$$p=null,!ne(V))return j(w,"enum_for",["reject!"],function re(){var je=re.$$s==null?this:re.$$s;return je.$size()},{$$s:w});f(w);for(var $=!1,o=0,c=w.$$keys,p=c.length,m,E,T;o<p;o++)m=c[o],m.$$is_string?E=w.$$smap[m]:(E=m.value,m=m.key),T=V(m,E),T!==!1&&T!==te&&l(w,m)!==void 0&&($=!0,p--,o--);return $?w:te}),O(B,"$replace",function(V){var w=this;f(w),V=C["$coerce_to!"](V,Ce("Hash"),"to_hash"),n(w);for(var $=0,o=V.$$keys,c=o.length,p,m,E;$<c;$++)p=o[$],p.$$is_string?E=V.$$smap[p]:(E=p.value,p=p.key),s(w,p,E);return ne(V.$default_proc())?w["$default_proc="](V.$default_proc()):w["$default="](V.$default()),w}),O(B,"$select",function $e(){var V=$e.$$p||te,w=this;if($e.$$p=null,!ne(V))return j(w,"enum_for",["select"],function re(){var je=re.$$s==null?this:re.$$s;return je.$size()},{$$s:w});for(var $=r(),o=0,c=w.$$keys,p=c.length,m,E,T;o<p;o++)m=c[o],m.$$is_string?E=w.$$smap[m]:(E=m.value,m=m.key),T=V(m,E),T!==!1&&T!==te&&s($,m,E);return $}),O(B,"$select!",function $e(){var V=$e.$$p||te,w=this;if($e.$$p=null,!ne(V))return j(w,"enum_for",["select!"],function re(){var je=re.$$s==null?this:re.$$s;return je.$size()},{$$s:w});f(w);for(var $=te,o=0,c=w.$$keys,p=c.length,m,E,T;o<p;o++)m=c[o],m.$$is_string?E=w.$$smap[m]:(E=m.value,m=m.key),T=V(m,E),(T===!1||T===te)&&(l(w,m)!==void 0&&(p--,o--),$=w);return $}),O(B,"$shift",function(){var V=this;f(V);var w=V.$$keys,$;return w.length>0?($=w[0],$=$.$$is_string?$:$.key,[$,l(V,$)]):te}),O(B,"$slice",function(V){var w,$,o=this;w=k(arguments),$=w;for(var c=r(),p=0,m=$.length;p<m;p++){var E=$[p],T=i(o,E);T!==void 0&&s(c,E,T)}return c},-1),O(B,"$to_a",function(){for(var V=this,w=[],$=0,o=V.$$keys,c=o.length,p,m;$<c;$++)p=o[$],p.$$is_string?m=V.$$smap[p]:(m=p.value,p=p.key),w.push([p,m]);return w}),O(B,"$to_h",function $e(){var V=$e.$$p||te,w=this;if($e.$$p=null,V!==te)return j(w,"map",[],V.$to_proc()).$to_h();if(w.$$class===e.Hash)return w;var $=new e.Hash;return n($),e.hash_clone(w,$),$}),O(B,"$to_hash",Q),O(B,"$to_proc",function(){var V=this;return j(V,"proc",[],function w($){var o=w.$$s==null?this:w.$$s;return $==null&&N.$raise(Ce("ArgumentError"),"no key given"),o["$[]"]($)},{$$arity:-1,$$s:V})}),O(B,"$transform_keys",function $e(){var V=$e.$$p||te,w=this;if($e.$$p=null,!ne(V))return j(w,"enum_for",["transform_keys"],function T(){var re=T.$$s==null?this:T.$$s;return re.$size()},{$$s:w});for(var $=r(),o=0,c=w.$$keys,p=c.length,m,E;o<p;o++)m=c[o],m.$$is_string?E=w.$$smap[m]:(E=m.value,m=m.key),m=t(V,m),s($,m,E);return $}),O(B,"$transform_keys!",function $e(){var V=$e.$$p||te,w=this;if($e.$$p=null,!ne(V))return j(w,"enum_for",["transform_keys!"],function T(){var re=T.$$s==null?this:T.$$s;return re.$size()},{$$s:w});f(w);var $=e.slice(w.$$keys),o,c=$.length,p,m,E;for(o=0;o<c;o++)p=$[o],p.$$is_string?m=w.$$smap[p]:(m=p.value,p=p.key),E=t(V,p),l(w,p),s(w,E,m);return w}),O(B,"$transform_values",function $e(){var V=$e.$$p||te,w=this;if($e.$$p=null,!ne(V))return j(w,"enum_for",["transform_values"],function T(){var re=T.$$s==null?this:T.$$s;return re.$size()},{$$s:w});for(var $=r(),o=0,c=w.$$keys,p=c.length,m,E;o<p;o++)m=c[o],m.$$is_string?E=w.$$smap[m]:(E=m.value,m=m.key),E=t(V,E),s($,m,E);return $}),O(B,"$transform_values!",function $e(){var V=$e.$$p||te,w=this;if($e.$$p=null,!ne(V))return j(w,"enum_for",["transform_values!"],function E(){var T=E.$$s==null?this:E.$$s;return T.$size()},{$$s:w});f(w);for(var $=0,o=w.$$keys,c=o.length,p,m;$<c;$++)p=o[$],p.$$is_string?m=w.$$smap[p]:(m=p.value,p=p.key),m=t(V,m),s(w,p,m);return w}),O(B,"$values",function(){for(var V=this,w=[],$=0,o=V.$$keys,c=o.length,p;$<c;$++)p=o[$],p.$$is_string?w.push(V.$$smap[p]):w.push(p.value);return w}),be(B,"dup","clone"),be(B,"each_pair","each"),be(B,"eql?","=="),be(B,"filter","select"),be(B,"filter!","select!"),be(B,"include?","has_key?"),be(B,"indices","indexes"),be(B,"key","index"),be(B,"key?","has_key?"),be(B,"member?","has_key?"),be(B,"size","length"),be(B,"store","[]="),be(B,"to_s","inspect"),be(B,"update","merge!"),be(B,"value?","has_value?"),be(B,"values_at","indexes")}("::",null,Ee)};Opal.modules["corelib/number"]=function(e){var t=e.klass,r=e.Opal,n=e.Kernel,i=e.def,s=e.eqeqeq,l=e.truthy,f=e.rb_gt,h=e.not,d=e.rb_lt,k=e.alias,C=e.send2,N=e.find_super,U=e.send,O=e.rb_plus,j=e.rb_minus,D=e.eqeq,G=e.return_self,de=e.rb_divide,ne=e.to_ary,me=e.rb_times,Q=e.rb_le,be=e.rb_ge,le=e.return_val,Ee=e.const_set,te=e.top,Ce=[],fe=e.nil,x=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?"),te.$require("corelib/numeric"),function(Ae,B,he){var W=t(Ae,B,"Number");r.$bridge(Number,W),e.prop(W.$$prototype,"$$is_number",!0),W.$$is_number_class=!0,function(o,c){return i(o,"$allocate",function(){var m=this;return n.$raise(x("TypeError"),"allocator undefined for "+m.$name())}),e.udef(o,"$new"),fe}(e.get_singleton_class(W)),i(W,"$coerce",function(c){var p=this;if(c===fe)n.$raise(x("TypeError"),"can't convert "+c.$class()+" into Float");else{if(c.$$is_string)return[n.$Float(c),p];if(c["$respond_to?"]("to_f"))return[r["$coerce_to!"](c,x("Float"),"to_f"),p];if(c.$$is_number)return[c,p];n.$raise(x("TypeError"),"can't convert "+c.$class()+" into Float")}}),i(W,"$__id__",function(){var c=this;return c*2+1}),i(W,"$+",function(c){var p=this;return c.$$is_number?p+c:p.$__coerced__("+",c)}),i(W,"$-",function(c){var p=this;return c.$$is_number?p-c:p.$__coerced__("-",c)}),i(W,"$*",function(c){var p=this;return c.$$is_number?p*c:p.$__coerced__("*",c)}),i(W,"$/",function(c){var p=this;return c.$$is_number?p/c:p.$__coerced__("/",c)}),i(W,"$%",function(c){var p=this;if(c.$$is_number){if(c==-1/0)return c;if(c==0)n.$raise(x("ZeroDivisionError"),"divided by 0");else return c<0||p<0?(p%c+c)%c:p%c}else return p.$__coerced__("%",c)}),i(W,"$&",function(c){var p=this;return c.$$is_number?p&c:p.$__coerced__("&",c)}),i(W,"$|",function(c){var p=this;return c.$$is_number?p|c:p.$__coerced__("|",c)}),i(W,"$^",function(c){var p=this;return c.$$is_number?p^c:p.$__coerced__("^",c)}),i(W,"$<",function(c){var p=this;return c.$$is_number?p<c:p.$__coerced__("<",c)}),i(W,"$<=",function(c){var p=this;return c.$$is_number?p<=c:p.$__coerced__("<=",c)}),i(W,"$>",function(c){var p=this;return c.$$is_number?p>c:p.$__coerced__(">",c)}),i(W,"$>=",function(c){var p=this;return c.$$is_number?p>=c:p.$__coerced__(">=",c)});var Fe=function(o,c){return c.$$is_number?isNaN(o)||isNaN(c)?fe:o>c?1:o<c?-1:0:o.$__coerced__("<=>",c)};i(W,"$<=>",function(c){var p=this;try{return Fe(p,c)}catch(m){if(e.rescue(m,[x("ArgumentError")]))try{return fe}finally{e.pop_exception()}else throw m}}),i(W,"$<<",function(c){var p=this;return c=r["$coerce_to!"](c,x("Integer"),"to_int"),c>0?p<<c:p>>-c}),i(W,"$>>",function(c){var p=this;return c=r["$coerce_to!"](c,x("Integer"),"to_int"),c>0?p>>c:p<<-c}),i(W,"$[]",function(c){var p=this;return c=r["$coerce_to!"](c,x("Integer"),"to_int"),c<0?0:c>=32?p<0?1:0:p>>c&1}),i(W,"$+@",function(){var c=this;return+c}),i(W,"$-@",function(){var c=this;return-c}),i(W,"$~",function(){var c=this;return~c}),i(W,"$**",function(c){var p=this;return s(x("Integer"),c)?h(x("Integer")["$==="](p))||l(f(c,0))?Math.pow(p,c):x("Rational").$new(p,1)["$**"](c):d(p,0)&&(s(x("Float"),c)||s(x("Rational"),c))?x("Complex").$new(p,0)["$**"](c.$to_f()):l(c.$$is_number!=null)?Math.pow(p,c):p.$__coerced__("**",c)}),i(W,"$==",function(c){var p=this;return c.$$is_number?p.valueOf()===c.valueOf():c["$respond_to?"]("==")?c["$=="](p):!1}),k(W,"===","=="),i(W,"$abs",function(){var c=this;return Math.abs(c)}),i(W,"$abs2",function(){var c=this;return Math.abs(c*c)}),i(W,"$allbits?",function(c){var p=this;return c=r["$coerce_to!"](c,x("Integer"),"to_int"),(p&c)==c}),i(W,"$anybits?",function(c){var p=this;return c=r["$coerce_to!"](c,x("Integer"),"to_int"),(p&c)!==0}),i(W,"$angle",function(){var c=this;return l(c["$nan?"]())?c:c==0?1/c>0?0:Math.PI:c<0?Math.PI:0}),i(W,"$bit_length",function(){var c=this;if(s(x("Integer"),c)||n.$raise(x("NoMethodError").$new("undefined method `bit_length` for "+c+":Float","bit_length")),c===0||c===-1)return 0;for(var p=0,m=c<0?~c:c;m!=0;)p+=1,m>>>=1;return p}),i(W,"$ceil",function(c){var p=this;c==null&&(c=0);var m=p.$to_f();if(m%1===0&&c>=0)return m;var E=Math.pow(10,c),T=Math.ceil(m*E)/E;return m%1===0&&(T=Math.round(T)),T},-1),i(W,"$chr",function(c){var p=this;return e.enc(String.fromCharCode(p),c||"BINARY")},-1),i(W,"$denominator",function o(){var c=o.$$p||fe,p=this;return o.$$p=null,l(p["$nan?"]())||l(p["$infinite?"]())?1:C(p,N(p,"denominator",o,!1,!0),"denominator",[],c)}),i(W,"$downto",function o(c){var p=o.$$p||fe,m=this;if(o.$$p=null,p===fe)return U(m,"enum_for",["downto",c],function T(){var re=T.$$s==null?this:T.$$s;return s(x("Numeric"),c)||n.$raise(x("ArgumentError"),"comparison of "+re.$class()+" with "+c.$class()+" failed"),l(f(c,re))?0:O(j(re,c),1)},{$$s:m});c.$$is_number||n.$raise(x("ArgumentError"),"comparison of "+m.$class()+" with "+c.$class()+" failed");for(var E=m;E>=c;E--)p(E);return m}),i(W,"$equal?",function(c){var p=this,m=fe;return l(m=p["$=="](c))?m:isNaN(p)&&isNaN(c)}),i(W,"$even?",function(){var c=this;return c%2===0}),i(W,"$floor",function(c){var p=this;c==null&&(c=0);var m=p.$to_f();if(m%1===0&&c>=0)return m;var E=Math.pow(10,c),T=Math.floor(m*E)/E;return m%1===0&&(T=Math.round(T)),T},-1),i(W,"$gcd",function(c){var p=this;s(x("Integer"),c)||n.$raise(x("TypeError"),"not an integer");for(var m=Math.abs(p),E=Math.abs(c);m>0;){var T=m;m=E%m,E=T}return E}),i(W,"$gcdlcm",function(c){var p=this;return[p.$gcd(c),p.$lcm(c)]}),i(W,"$integer?",function(){var c=this;return c%1===0}),i(W,"$is_a?",function o(c){var p=o.$$p||fe,m=this;return o.$$p=null,D(c,x("Integer"))&&s(x("Integer"),m)||D(c,x("Integer"))&&s(x("Integer"),m)||D(c,x("Float"))&&s(x("Float"),m)?!0:C(m,N(m,"is_a?",o,!1,!0),"is_a?",[c],p)}),i(W,"$instance_of?",function o(c){var p=o.$$p||fe,m=this;return o.$$p=null,D(c,x("Integer"))&&s(x("Integer"),m)||D(c,x("Integer"))&&s(x("Integer"),m)||D(c,x("Float"))&&s(x("Float"),m)?!0:C(m,N(m,"instance_of?",o,!1,!0),"instance_of?",[c],p)}),i(W,"$lcm",function(c){var p=this;return s(x("Integer"),c)||n.$raise(x("TypeError"),"not an integer"),p==0||c==0?0:Math.abs(p*c/p.$gcd(c))}),i(W,"$next",function(){var c=this;return c+1}),i(W,"$nobits?",function(c){var p=this;return c=r["$coerce_to!"](c,x("Integer"),"to_int"),(p&c)==0}),i(W,"$nonzero?",function(){var c=this;return c==0?fe:c}),i(W,"$numerator",function o(){var c=o.$$p||fe,p=this;return o.$$p=null,l(p["$nan?"]())||l(p["$infinite?"]())?p:C(p,N(p,"numerator",o,!1,!0),"numerator",[],c)}),i(W,"$odd?",function(){var c=this;return c%2!==0}),i(W,"$ord",G),i(W,"$pow",function(c,p){var m=this;return m==0&&n.$raise(x("ZeroDivisionError"),"divided by 0"),p===void 0?m["$**"](c):(x("Integer")["$==="](c)||n.$raise(x("TypeError"),"Integer#pow() 2nd argument not allowed unless a 1st argument is integer"),c<0&&n.$raise(x("TypeError"),"Integer#pow() 1st argument cannot be negative when 2nd argument specified"),x("Integer")["$==="](p)||n.$raise(x("TypeError"),"Integer#pow() 2nd argument not allowed unless all arguments are integers"),p===0&&n.$raise(x("ZeroDivisionError"),"divided by 0"),m["$**"](c)["$%"](p))},-2),i(W,"$pred",function(){var c=this;return c-1}),i(W,"$quo",function o(c){var p=o.$$p||fe,m=this;return o.$$p=null,s(x("Integer"),m)?C(m,N(m,"quo",o,!1,!0),"quo",[c],p):de(m,c)}),i(W,"$rationalize",function(c){var p,m,E=this,T=fe,re=fe;return arguments.length>1&&n.$raise(x("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),s(x("Integer"),E)?x("Rational").$new(E,1):l(E["$infinite?"]())?n.$raise(x("FloatDomainError"),"Infinity"):l(E["$nan?"]())?n.$raise(x("FloatDomainError"),"NaN"):l(c==null)?(m=x("Math").$frexp(E),p=ne(m),T=p[0]==null?fe:p[0],re=p[1]==null?fe:p[1],T=x("Math").$ldexp(T,x(x("Float"),"MANT_DIG")).$to_i(),re=j(re,x(x("Float"),"MANT_DIG")),x("Rational").$new(me(2,T),1["$<<"](j(1,re))).$rationalize(x("Rational").$new(1,1["$<<"](j(1,re))))):E.$to_r().$rationalize(c)},-1),i(W,"$remainder",function(c){var p=this;return j(p,me(c,de(p,c).$truncate()))}),i(W,"$round",function(c){var p,m,E=this,T=fe;if(s(x("Integer"),E)){if(l(c==null)||(s(x("Float"),c)&&l(c["$infinite?"]())&&n.$raise(x("RangeError"),"Infinity"),c=r["$coerce_to!"](c,x("Integer"),"to_int"),l(d(c,x(x("Integer"),"MIN")))&&n.$raise(x("RangeError"),"out of bounds"),l(c>=0)))return E;if(c=c["$-@"](),.415241*c-.125>E.$size())return 0;var re=Math.pow(10,c),je=Math.floor((Math.abs(E)+re/2)/re)*re;return E<0?-je:je}else{if(l(E["$nan?"]())&&l(c==null)&&n.$raise(x("FloatDomainError"),"NaN"),c=r["$coerce_to!"](c||0,x("Integer"),"to_int"),l(Q(c,0)))l(E["$nan?"]())?n.$raise(x("RangeError"),"NaN"):l(E["$infinite?"]())&&n.$raise(x("FloatDomainError"),"Infinity");else{if(D(c,0))return Math.round(E);if(l(E["$nan?"]())||l(E["$infinite?"]()))return E}return m=x("Math").$frexp(E),p=ne(m),p[0]==null||p[0],T=p[1]==null?fe:p[1],l(be(c,j(O(x(x("Float"),"DIG"),2),l(f(T,0))?de(T,4):j(de(T,3),1))))?E:l(d(c,(l(f(T,0))?O(de(T,3),1):de(T,4))["$-@"]()))?0:Math.round(E*Math.pow(10,c))/Math.pow(10,c)}},-1),i(W,"$times",function o(){var c=o.$$p||fe,p=this;if(o.$$p=null,!l(c))return U(p,"enum_for",["times"],function E(){var T=E.$$s==null?this:E.$$s;return T},{$$s:p});for(var m=0;m<p;m++)c(m);return p}),i(W,"$to_f",G),i(W,"$to_i",function(){var c=this;return c<0?Math.ceil(c):Math.floor(c)}),i(W,"$to_r",function(){var c,p,m=this,E=fe,T=fe;return s(x("Integer"),m)?x("Rational").$new(m,1):(p=x("Math").$frexp(m),c=ne(p),E=c[0]==null?fe:c[0],T=c[1]==null?fe:c[1],E=x("Math").$ldexp(E,x(x("Float"),"MANT_DIG")).$to_i(),T=j(T,x(x("Float"),"MANT_DIG")),me(E,x(x("Float"),"RADIX")["$**"](T)).$to_r())}),i(W,"$to_s",function(c){var p=this;return c==null&&(c=10),c=r["$coerce_to!"](c,x("Integer"),"to_int"),(l(d(c,2))||l(f(c,36)))&&n.$raise(x("ArgumentError"),"invalid radix "+c),D(p,0)&&l(1/p===-1/0)?"-0.0":p.toString(c)},-1),i(W,"$truncate",function(c){var p=this;c==null&&(c=0);var m=p.$to_f();if(m%1===0&&c>=0)return m;var E=Math.pow(10,c),T=parseInt(m*E,10)/E;return m%1===0&&(T=Math.round(T)),T},-1),i(W,"$digits",function(c){var p=this;c==null&&(c=10),d(p,0)&&n.$raise(x(x("Math"),"DomainError"),"out of domain"),c=r["$coerce_to!"](c,x("Integer"),"to_int"),l(d(c,2))&&n.$raise(x("ArgumentError"),"invalid radix "+c),p!=parseInt(p)&&n.$raise(x("NoMethodError"),"undefined method `digits' for "+p.$inspect());var m=p,E=[];if(p==0)return[0];for(;m!=0;)E.push(m%c),m=parseInt(m/c,10);return E},-1),i(W,"$divmod",function o(c){var p=o.$$p||fe,m=this;return o.$$p=null,l(m["$nan?"]())||l(c["$nan?"]())?n.$raise(x("FloatDomainError"),"NaN"):l(m["$infinite?"]())?n.$raise(x("FloatDomainError"),"Infinity"):C(m,N(m,"divmod",o,!1,!0),"divmod",[c],p)}),i(W,"$upto",function o(c){var p=o.$$p||fe,m=this;if(o.$$p=null,p===fe)return U(m,"enum_for",["upto",c],function T(){var re=T.$$s==null?this:T.$$s;return s(x("Numeric"),c)||n.$raise(x("ArgumentError"),"comparison of "+re.$class()+" with "+c.$class()+" failed"),l(d(c,re))?0:O(j(c,re),1)},{$$s:m});c.$$is_number||n.$raise(x("ArgumentError"),"comparison of "+m.$class()+" with "+c.$class()+" failed");for(var E=m;E<=c;E++)p(E);return m}),i(W,"$zero?",function(){var c=this;return c==0}),i(W,"$size",le(4)),i(W,"$nan?",function(){var c=this;return isNaN(c)}),i(W,"$finite?",function(){var c=this;return c!=1/0&&c!=-1/0&&!isNaN(c)}),i(W,"$infinite?",function(){var c=this;return c==1/0?1:c==-1/0?-1:fe}),i(W,"$positive?",function(){var c=this;return c!=0&&(c==1/0||1/c>0)}),i(W,"$negative?",function(){var c=this;return c==-1/0||1/c<0});function $e(o){var c=new Uint8Array(8);return new DataView(c.buffer).setFloat64(0,o,!0),c}function V(o){return new DataView(o.buffer).getFloat64(0,!0)}function w(o){for(var c=$e(o),p=0;p<c.length;p++)if(c[p]===255)c[p]=0;else{c[p]++;break}return V(c)}function $(o){for(var c=$e(o),p=0;p<c.length;p++)if(c[p]===0)c[p]=255;else{c[p]--;break}return V(c)}return i(W,"$next_float",function(){var c=this;return D(c,x(x("Float"),"INFINITY"))?x(x("Float"),"INFINITY"):l(c["$nan?"]())?x(x("Float"),"NAN"):be(c,0)?w(Math.abs(c)):$(c)}),i(W,"$prev_float",function(){var c=this;return D(c,x(x("Float"),"INFINITY")["$-@"]())?x(x("Float"),"INFINITY")["$-@"]():l(c["$nan?"]())?x(x("Float"),"NAN"):f(c,0)?$(c):-w(Math.abs(c))}),k(W,"arg","angle"),k(W,"eql?","=="),k(W,"fdiv","/"),k(W,"inspect","to_s"),k(W,"kind_of?","is_a?"),k(W,"magnitude","abs"),k(W,"modulo","%"),k(W,"object_id","__id__"),k(W,"phase","angle"),k(W,"succ","next"),k(W,"to_int","to_i")}("::",x("Numeric")),Ee("::","Fixnum",x("Number")),function(Ae,B,he){var W=t(Ae,B,"Integer"),Fe=[W].concat(he);return W.$$is_number_class=!0,W.$$is_integer_class=!0,function($e,V){var w=[$e].concat(V),$=e.$r(w);return i($e,"$allocate",function(){var c=this;return n.$raise(x("TypeError"),"allocator undefined for "+c.$name())}),e.udef($e,"$new"),i($e,"$sqrt",function(c){return c=r["$coerce_to!"](c,x("Integer"),"to_int"),c<0&&n.$raise(x(x("Math"),"DomainError"),'Numerical argument is out of domain - "isqrt"'),parseInt(Math.sqrt(c),10)}),i($e,"$try_convert",function(c){var p=this;return $("Opal")["$coerce_to?"](c,p,"to_int")})}(e.get_singleton_class(W),Fe),Ee(W,"MAX",Math.pow(2,30)-1),Ee(W,"MIN",-Math.pow(2,30))}("::",x("Numeric"),Ce),function(Ae,B,he){var W=t(Ae,B,"Float");return W.$$is_number_class=!0,function(Fe,$e){return i(Fe,"$allocate",function(){var w=this;return n.$raise(x("TypeError"),"allocator undefined for "+w.$name())}),e.udef(Fe,"$new"),i(Fe,"$===",function(w){return!!w.$$is_number})}(e.get_singleton_class(W)),Ee(W,"INFINITY",1/0),Ee(W,"MAX",Number.MAX_VALUE),Ee(W,"MIN",Number.MIN_VALUE),Ee(W,"NAN",NaN),Ee(W,"DIG",15),Ee(W,"MANT_DIG",53),Ee(W,"RADIX",2),Ee(W,"EPSILON",Number.EPSILON||2220446049250313e-31)}("::",x("Numeric"))};Opal.modules["corelib/range"]=function(e){var t=e.klass,r=e.truthy,n=e.Kernel,i=e.def,s=e.not,l=e.send2,f=e.find_super,h=e.rb_lt,d=e.rb_le,k=e.send,C=e.eqeq,N=e.eqeqeq,U=e.return_ivar,O=e.rb_gt,j=e.rb_minus,D=e.Opal,G=e.rb_divide,de=e.rb_plus,ne=e.rb_times,me=e.rb_ge,Q=e.thrower,be=e.alias,le=e.top,Ee=[],te=e.nil,Ce=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?"),le.$require("corelib/enumerable"),function(fe,x,Ae){var B=t(fe,x,"Range"),he=[B].concat(Ae),W=e.$r(he),Fe=B.$$prototype;Fe.begin=Fe.end=Fe.excl=te,B.$include(Ce("Enumerable")),B.$$prototype.$$is_range=!0,B.$attr_reader("begin","end"),i(B,"$initialize",function(w,$,o){var c=this;return o==null&&(o=!1),r(c.begin)&&n.$raise(Ce("NameError"),"'initialize' called twice"),r(w["$<=>"]($))||r(w["$nil?"]())||r($["$nil?"]())||n.$raise(Ce("ArgumentError"),"bad value for range"),c.begin=w,c.end=$,c.excl=o},-3),i(B,"$===",function(w){var $=this;return $["$include?"](w)});function $e(V){return V.begin===te||V.end===te||V.begin===-1/0||V.end===1/0||V.begin===1/0||V.end===-1/0}return i(B,"$count",function V(){var w=V.$$p||te,$=this;return V.$$p=null,s(w!==te)&&r($e($))?Ce(Ce("Float"),"INFINITY"):l($,f($,"count",V,!1,!0),"count",[],w)}),i(B,"$to_a",function V(){var w=V.$$p||te,$=this;return V.$$p=null,r($e($))&&n.$raise(Ce("TypeError"),"cannot convert endless range to an array"),l($,f($,"to_a",V,!1,!0),"to_a",[],w)}),i(B,"$cover?",function(w){var $=this,o=te,c=te,p=te,m=te,E=te;return o=r(c=r(p=r(m=$.begin["$nil?"]())?-1:m)?p:$.begin["$<=>"](w))&&c,E=r(c=r(p=r(m=$.end["$nil?"]())?-1:m)?p:w["$<=>"]($.end))&&c,r(c=r(p=r($.excl)?r(m=E)?h(E,0):m:r(m=E)?d(E,0):m)?o:p)?d(o,0):c}),i(B,"$each",function V(){var w=V.$$p||te,$=this,o=te,c=te,p=te;if(V.$$p=null,w===te)return k($,"enum_for",["each"],function T(){var re=T.$$s==null?this:T.$$s;return re.$size()},{$$s:$});var m,E;if($.begin.$$is_number&&$.end.$$is_number){for(($.begin%1!==0||$.end%1!==0)&&n.$raise(Ce("TypeError"),"can't iterate from Float"),m=$.begin,E=$.end+(r($.excl)?0:1);m<E;m++)w(m);return $}if($.begin.$$is_string&&$.end.$$is_string)return k($.begin,"upto",[$.end,$.excl],w.$to_proc()),$;for(o=$.begin,c=$.end,r(o["$respond_to?"]("succ"))||n.$raise(Ce("TypeError"),"can't iterate from "+o.$class());r(r(p=$.end["$nil?"]())?p:h(o["$<=>"](c),0));)e.yield1(w,o),o=o.$succ();return s($.excl)&&C(o,c)&&e.yield1(w,o),$}),i(B,"$eql?",function(w){var $=this,o=te,c=te;return N(Ce("Range"),w)?r(o=r(c=$.excl["$==="](w["$exclude_end?"]()))?$.begin["$eql?"](w.$begin()):c)?$.end["$eql?"](w.$end()):o:!1}),i(B,"$exclude_end?",U("excl")),i(B,"$first",function V(w){var $=V.$$p||te,o=this;return V.$$p=null,r(o.begin["$nil?"]())&&n.$raise(Ce("RangeError"),"cannot get the minimum of beginless range"),r(w==null)?o.begin:l(o,f(o,"first",V,!1,!0),"first",[w],$)},-1),i(B,"$last",function(w){var $=this;return r($.end["$nil?"]())&&n.$raise(Ce("RangeError"),"cannot get the maximum of endless range"),r(w==null)?$.end:$.$to_a().$last(w)},-1),i(B,"$max",function V(){var w=V.$$p||te,$=this;return V.$$p=null,r($.end["$nil?"]())?n.$raise(Ce("RangeError"),"cannot get the maximum of endless range"):w!==te?l($,f($,"max",V,!1,!0),"max",[],w):s($.begin["$nil?"]())&&(r(O($.begin,$.end))||r($.excl)&&C($.begin,$.end))?te:$.excl?$.end-1:$.end}),i(B,"$min",function V(){var w=V.$$p||te,$=this;return V.$$p=null,r($.begin["$nil?"]())?n.$raise(Ce("RangeError"),"cannot get the minimum of beginless range"):w!==te?l($,f($,"min",V,!1,!0),"min",[],w):s($.end["$nil?"]())&&(r(O($.begin,$.end))||r($.excl)&&C($.begin,$.end))?te:$.begin}),i(B,"$size",function(){var w=this,$=te,o=te,c=te;return $=Ce(Ce("Float"),"INFINITY"),C(w.begin,$)&&s(w.end["$nil?"]())||C(w.end,$["$-@"]())&&s(w.begin["$nil?"]())?0:r($e(w))?$:N(Ce("Numeric"),w.begin)&&N(Ce("Numeric"),w.end)?(o=w.begin,c=w.end,r(w.excl)&&(c=j(c,1)),r(h(c,o))?0:(Math.abs(c-o)+1).$to_i()):te}),i(B,"$step",function V(w){var $=V.$$p||te,o=this,c=te,p=te;V.$$p=null;function m(){w==null?w=1:w.$$is_number||(w=D["$coerce_to!"](w,Ce("Integer"),"to_int")),w<0?n.$raise(Ce("ArgumentError"),"step can't be negative"):w===0&&n.$raise(Ce("ArgumentError"),"step can't be 0")}function E(){if(!o.begin["$respond_to?"]("succ")||o.begin.$$is_string&&o.end.$$is_string)return te;if(w%1===0)return G(o.$size(),w).$ceil();var T=o.begin,re=o.end,je=Math.abs,nt=Math.floor,ft=(je(T)+je(re)+je(re-T))/je(w)*Ce(Ce("Float"),"EPSILON"),yt;return ft>.5&&(ft=.5),o.excl?(yt=nt((re-T)/w-ft),yt*w+T<re&&yt++):yt=nt((re-T)/w+ft)+1,yt}return $===te?(r(o.begin["$is_a?"](W("Numeric")))||r(o.begin["$nil?"]()))&&(r(o.end["$is_a?"](W("Numeric")))||r(o.end["$nil?"]()))&&s(r(c=o.begin["$nil?"]())?o.end["$nil?"]():c)?Ce(Ce("Enumerator"),"ArithmeticSequence").$new(o,w,"step"):k(o,"enum_for",["step",w],function(){return m(),E()}):(m(),r(o.begin.$$is_number&&o.end.$$is_number)?(p=0,function(){try{var T=Q("break");return k(o,"loop",[],function re(){var je=re.$$s==null?this:re.$$s,nt=te;return je.begin==null&&(je.begin=te),je.excl==null&&(je.excl=te),je.end==null&&(je.end=te),nt=de(je.begin,ne(p,w)),r(je.excl)?r(me(nt,je.end))&&T.$throw():r(O(nt,je.end))&&T.$throw(),e.yield1($,nt),p=de(p,1)},{$$s:o})}catch(re){if(re===T)return re.$v;throw re}}()):(o.begin.$$is_string&&o.end.$$is_string&&w%1!==0&&n.$raise(Ce("TypeError"),"no implicit conversion to float from string"),k(o,"each_with_index",[],function(re,je){return re==null&&(re=te),je==null&&(je=te),C(je["$%"](w),0)?e.yield1($,re):te})),o)},-1),i(B,"$%",function(w){var $=this;return r($.begin["$is_a?"](W("Numeric")))&&r($.end["$is_a?"](W("Numeric")))?Ce(Ce("Enumerator"),"ArithmeticSequence").$new($,w,"%"):$.$step(w)}),i(B,"$bsearch",function V(){var w=V.$$p||te,$=this;return V.$$p=null,w===te?$.$enum_for("bsearch"):(r($e($)&&($.begin.$$is_number||$.end.$$is_number))&&n.$raise(Ce("NotImplementedError"),"Can't #bsearch an infinite range"),r($.begin.$$is_number&&$.end.$$is_number)||n.$raise(Ce("TypeError"),"can't do binary search for "+$.begin.$class()),k($.$to_a(),"bsearch",[],w.$to_proc()))}),i(B,"$to_s",function(){var w=this,$=te;return""+(r($=w.begin)?$:"")+(r(w.excl)?"...":"..")+(r($=w.end)?$:"")}),i(B,"$inspect",function(){var w=this,$=te;return""+(r($=w.begin)?w.begin.$inspect():$)+(r(w.excl)?"...":"..")+(r($=w.end)?w.end.$inspect():$)}),i(B,"$marshal_load",function(w){var $=this;return $.begin=w["$[]"]("begin"),$.end=w["$[]"]("end"),$.excl=w["$[]"]("excl")}),i(B,"$hash",function(){var w=this;return[w.begin,w.end,w.excl].$hash()}),be(B,"==","eql?"),be(B,"include?","cover?"),be(B,"member?","cover?")}("::",null,Ee)};Opal.modules["corelib/proc"]=function(e){var t=e.slice,r=e.klass,n=e.truthy,i=e.Kernel,s=e.defs,l=e.def,f=e.send,h=e.to_a,d=e.return_self,k=e.ensure_kwargs,C=e.Opal,N=e.alias,U=e.nil,O=e.$$$;return e.add_stubs("raise,proc,call,to_proc,new,source_location,coerce_to!,dup"),function(j,D){var G=r(j,D,"Proc");return e.prop(G.$$prototype,"$$is_proc",!0),e.prop(G.$$prototype,"$$is_lambda",!1),s(G,"$new",function de(){var ne=de.$$p||U;return de.$$p=null,n(ne)||i.$raise(O("ArgumentError"),"tried to create a Proc object without a block"),ne}),l(G,"$call",function de(ne){var me=de.$$p||U,Q,be,le=this;de.$$p=null,Q=t(arguments),be=Q,me!==U&&(le.$$p=me);var Ee,te=le.$$brk,Ce=le.$$ret;if(te||Ce&&le.$$is_lambda)try{le.$$is_lambda?Ee=le.apply(null,be):Ee=e.yieldX(le,be)}catch(fe){if(fe===te)return fe.$v;if(le.$$is_lambda&&fe===Ce)return fe.$v;throw fe}else le.$$is_lambda?Ee=le.apply(null,be):Ee=e.yieldX(le,be);return Ee},-1),l(G,"$>>",function de(ne){de.$$p;var me=this;return de.$$p=null,f(i,"proc",[],function Q(be){var le=Q.$$p||U,Ee,te,Ce=Q.$$s==null?this:Q.$$s,fe=U;return Q.$$p=null,Ee=t(arguments),te=Ee,fe=f(Ce,"call",h(te),le.$to_proc()),ne.$call(fe)},{$$arity:-1,$$s:me})}),l(G,"$<<",function de(ne){de.$$p;var me=this;return de.$$p=null,f(i,"proc",[],function Q(be){var le=Q.$$p||U,Ee,te,Ce=Q.$$s==null?this:Q.$$s,fe=U;return Q.$$p=null,Ee=t(arguments),te=Ee,fe=f(ne,"call",h(te),le.$to_proc()),Ce.$call(fe)},{$$arity:-1,$$s:me})}),l(G,"$to_proc",d),l(G,"$lambda?",function(){var ne=this;return!!ne.$$is_lambda}),l(G,"$arity",function(){var ne=this;return ne.$$is_curried?-1:ne.$$arity!=null?ne.$$arity:ne.length}),l(G,"$source_location",function(){var ne=this,me=U;return ne.$$is_curried?U:n(me=ne.$$source_location)?me:U}),l(G,"$binding",function(){var ne=this;return ne.$$is_curried&&i.$raise(O("ArgumentError"),"Can't create Binding"),n(O("::","Binding","skip_raise")?"constant":U)?O("Binding").$new(U,[],ne.$$s,ne.$source_location()):U}),l(G,"$parameters",function(ne){var me,Q=this;if(ne=k(ne),me=ne.$$smap.lambda,Q.$$is_curried)return[["rest"]];if(Q.$$parameters){if(me??Q.$$is_lambda)return Q.$$parameters;var be=[],le,Ee;for(le=0,Ee=Q.$$parameters.length;le<Ee;le++){var te=Q.$$parameters[le];te[0]==="req"&&(te=["opt",te[1]]),be.push(te)}return be}else return[]},-1),l(G,"$curry",function(ne){var me=this;ne===void 0?ne=me.length:(ne=C["$coerce_to!"](ne,O("Integer"),"to_int"),me.$$is_lambda&&ne!==me.length&&i.$raise(O("ArgumentError"),"wrong number of arguments ("+ne+" for "+me.length+")"));function Q(){var be=t(arguments),le=be.length,Ee;return le>ne&&me.$$is_lambda&&!me.$$is_curried&&i.$raise(O("ArgumentError"),"wrong number of arguments ("+le+" for "+ne+")"),le>=ne?me.$call.apply(me,be):(Ee=function(){return Q.apply(null,be.concat(t(arguments)))},Ee.$$is_lambda=me.$$is_lambda,Ee.$$is_curried=!0,Ee)}return Q.$$is_lambda=me.$$is_lambda,Q.$$is_curried=!0,Q},-1),l(G,"$dup",function(){var ne=this,me=ne.$$original_proc||ne,Q=function(){return me.apply(this,arguments)};for(var be in ne)ne.hasOwnProperty(be)&&(Q[be]=ne[be]);return Q}),N(G,"===","call"),N(G,"clone","dup"),N(G,"yield","call"),N(G,"[]","call")}("::",Function)};Opal.modules["corelib/method"]=function(e){var t=e.klass,r=e.def,n=e.truthy,i=e.slice,s=e.alias,l=e.Kernel,f=e.send,h=e.to_a,d=e.nil,k=e.$$$;return e.add_stubs("attr_reader,arity,curry,>>,<<,new,class,join,source_location,call,raise,bind,to_proc"),function(C,N){var U=t(C,N,"Method"),O=U.$$prototype;return O.method=O.receiver=O.owner=O.name=d,U.$attr_reader("owner","receiver","name"),r(U,"$initialize",function(D,G,de,ne){var me=this;return me.receiver=D,me.owner=G,me.name=ne,me.method=de}),r(U,"$arity",function(){var D=this;return D.method.$arity()}),r(U,"$parameters",function(){var D=this;return D.method.$$parameters}),r(U,"$source_location",function(){var D=this,G=d;return n(G=D.method.$$source_location)?G:["(eval)",0]}),r(U,"$comments",function(){var D=this,G=d;return n(G=D.method.$$comments)?G:[]}),r(U,"$call",function j(D){var G=j.$$p||d,de,ne,me=this;return j.$$p=null,de=i(arguments),ne=de,me.method.$$p=G,me.method.apply(me.receiver,ne)},-1),r(U,"$curry",function(D){var G=this;return G.method.$curry(D)},-1),r(U,"$>>",function(D){var G=this;return G.method["$>>"](D)}),r(U,"$<<",function(D){var G=this;return G.method["$<<"](D)}),r(U,"$unbind",function(){var D=this;return k("UnboundMethod").$new(D.receiver.$class(),D.owner,D.method,D.name)}),r(U,"$to_proc",function(){var D=this,G=D.$call.bind(D);return G.$$unbound=D.method,G.$$is_lambda=!0,G.$$arity=D.method.$$arity==null?D.method.length:D.method.$$arity,G.$$parameters=D.method.$$parameters,G}),r(U,"$inspect",function(){var D=this;return"#<"+D.$class()+": "+D.receiver.$class()+"#"+D.name+" (defined in "+D.owner+" in "+D.$source_location().$join(":")+")>"}),s(U,"[]","call"),s(U,"===","call")}("::",null),function(C,N){var U=t(C,N,"UnboundMethod"),O=U.$$prototype;return O.method=O.owner=O.name=O.source=d,U.$attr_reader("source","owner","name"),r(U,"$initialize",function(D,G,de,ne){var me=this;return me.source=D,me.owner=G,me.method=de,me.name=ne}),r(U,"$arity",function(){var D=this;return D.method.$arity()}),r(U,"$parameters",function(){var D=this;return D.method.$$parameters}),r(U,"$source_location",function(){var D=this,G=d;return n(G=D.method.$$source_location)?G:["(eval)",0]}),r(U,"$comments",function(){var D=this,G=d;return n(G=D.method.$$comments)?G:[]}),r(U,"$bind",function(D){var G=this;if(G.owner.$$is_module||e.is_a(D,G.owner))return k("Method").$new(D,G.owner,G.method,G.name);l.$raise(k("TypeError"),"can't bind singleton method to a different class (expected "+D+".kind_of?("+G.owner+" to be true)")}),r(U,"$bind_call",function j(D,G){var de=j.$$p||d,ne,me,Q=this;return j.$$p=null,ne=i(arguments,1),me=ne,f(Q.$bind(D),"call",h(me),de.$to_proc())},-2),r(U,"$inspect",function(){var D=this;return"#<"+D.$class()+": "+D.source+"#"+D.name+" (defined in "+D.owner+" in "+D.$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["/"]=`
444
+ `,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,l=e.return_ivar,f=e.return_val,h=e.slice,d=e.Kernel,k=e.gvars,C=e.send,N=e.to_a,U=e.rb_plus,O=e.neqeq,j=e.range,D=e.hash2,G=e.eqeq,de=e.to_ary,ne=e.rb_gt,me=e.assign_ivar_val,Q=e.alias,be,le=e.nil,Ee=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(Ce,fe){var x=t(Ce,fe,"IO"),Ae=x.$$prototype;return Ae.read_buffer=Ae.closed=le,r(x,"SEEK_SET",0),r(x,"SEEK_CUR",1),r(x,"SEEK_END",2),r(x,"SEEK_DATA",3),r(x,"SEEK_HOLE",4),r(x,"READABLE",1),r(x,"WRITABLE",4),x.$attr_reader("eof"),x.$attr_accessor("read_proc","sync","tty","write_proc"),s(x,"$initialize",function(he,W){var Fe=this;return W==null&&(W="r"),Fe.fd=he,Fe.flags=W,Fe.eof=!1,i(W["$include?"]("r"))&&n(W["$match?"](/[wa+]/))?Fe.closed="write":i(W["$match?"](/[wa]/))&&n(W["$match?"](/[r+]/))?Fe.closed="read":le},-2),s(x,"$fileno",l("fd")),s(x,"$tty?",function(){var he=this;return he.tty==!0}),s(x,"$write",function(he){var W=this;return W.write_proc(he),he.$size()}),s(x,"$flush",f(le)),s(x,"$<<",function(he){var W=this;return W.$write(he),W}),s(x,"$print",function(he){var W,Fe,$e=this;k[","]==null&&(k[","]=le),W=h(arguments),Fe=W;for(var V=0,w=Fe.length;V<w;V++)Fe[V]=d.$String(Fe[V]);return $e.$write(Fe.join(k[","])),le},-1),s(x,"$puts",function(he){var W,Fe,$e=this;W=h(arguments),Fe=W;var V;if(Fe.length===0)return $e.$write(`
445
+ `),le;for(var w=0,$=Fe.length;w<$;w++)if(Fe[w].$$is_array){var o=Fe[w].$flatten();o.length>0&&C($e,"puts",N(o))}else Fe[w].$$is_string?V=Fe[w].valueOf():V=d.$String(Fe[w]),V.endsWith(`
446
+ `)||(V+=`
447
+ `),$e.$write(V);return le},-1),s(x,"$getc",function(){var he=this,W=le,Fe=le,$e=le;he.read_buffer=i(W=he.read_buffer)?W:"",Fe="";do if(he.read_buffer=U(he.read_buffer,Fe),O(he.read_buffer,""))return $e=he.read_buffer["$[]"](0),he.read_buffer=he.read_buffer["$[]"](j(1,-1,!1)),$e;while(i(Fe=he.$sysread_noraise(1)));return le}),s(x,"$getbyte",function(){var he,W=this;return he=W.$getc(),he===le||he==null?le:he.$ord()}),s(x,"$readbyte",function(){var he=this;return he.$readchar().$ord()}),s(x,"$readchar",function(){var he=this,W=le;return i(W=he.$getc())?W:d.$raise(Ee("EOFError"),"end of file reached")}),s(x,"$readline",function(he){var W,Fe,$e=this,V=le;return W=h(arguments),Fe=W,i(V=C($e,"gets",N(Fe)))?V:d.$raise(Ee("EOFError"),"end of file reached")},-1),s(x,"$gets",function(he,W,Fe){var $e,V,w=this,$=le,o=le,c=le,p=le,m=le,E=le;k["/"]==null&&(k["/"]=le),he==null&&(he=!1),W==null&&(W=le),Fe==null&&(Fe=D([],{})),i(he.$$is_number)&&n(W)&&($e=[!1,he,W],he=$e[0],W=$e[1],Fe=$e[2]),i(he.$$is_hash)&&n(W)&&G(Fe,D([],{}))?($e=[!1,le,he],he=$e[0],W=$e[1],Fe=$e[2]):i(W.$$is_hash)&&G(Fe,D([],{}))&&($e=[he,le,W],he=$e[0],W=$e[1],Fe=$e[2]),$=he,G(he,!1)&&(he=k["/"]),G(he,"")&&(he=/\r?\n\r?\n/),he=i(o=he)?o:"",G($,"")||(he=he.$to_str()),c=G($,"")?2:he.$length(),G(he," ")&&(he=/ /),w.read_buffer=i(o=w.read_buffer)?o:"",p="",m=le;do if(w.read_buffer=U(w.read_buffer,p),O(he,"")&&i(i(he.$$is_regexp)?w.read_buffer["$match?"](he):w.read_buffer["$include?"](he))){E=w.read_buffer,V=w.read_buffer.$split(he,2),$e=de(V),m=$e[0]==null?le:$e[0],w.read_buffer=$e[1]==null?le:$e[1],O(m,E)&&(m=U(m,E["$[]"](m.$length(),c)));break}while(i(p=w.$sysread_noraise(G(he,"")?65536:1)));return i(m)||($e=[i(o=w.read_buffer)?o:"",""],m=$e[0],w.read_buffer=$e[1],G(m,"")&&(m=le)),i(m)&&(i(W)&&(m=m["$[]"](e.Range.$new(0,W,!0)),w.read_buffer=U(m["$[]"](e.Range.$new(W,-1,!1)),w.read_buffer)),i(Fe["$[]"]("chomp"))&&(m=m.$sub(/\r?\n$/,"")),G($,"")&&(m=m.$sub(/^[\r\n]+/,""))),G($,!1)&&(k._=m),m},-1),s(x,"$sysread",function(he){var W=this,Fe=le;return i(Fe=W.read_proc(he))?Fe:(W.eof=!0,d.$raise(Ee("EOFError"),"end of file reached"))}),s(x,"$sysread_noraise",function(he){var W=this;try{return W.$sysread(he)}catch(Fe){if(e.rescue(Fe,[Ee("EOFError")]))try{return le}finally{e.pop_exception()}else throw Fe}}),s(x,"$readpartial",function(he){var W,Fe=this,$e=le,V=le,w=le;return Fe.read_buffer=i($e=Fe.read_buffer)?$e:"",V=Fe.$sysread(he),W=[U(Fe.read_buffer,i($e=V)?$e:""),""],w=W[0],Fe.read_buffer=W[1],G(w,"")&&(w=le),w}),s(x,"$read",function(he){var W,Fe=this,$e=le,V=le,w=le;he==null&&(he=le),Fe.read_buffer=i($e=Fe.read_buffer)?$e:"",V="",w=le;do if(Fe.read_buffer=U(Fe.read_buffer,V),i(he)&&i(ne(Fe.read_buffer.$length(),he)))return W=[Fe.read_buffer["$[]"](e.Range.$new(0,he,!0)),Fe.read_buffer["$[]"](e.Range.$new(he,-1,!1))],w=W[0],Fe.read_buffer=W[1],w;while(i(V=Fe.$sysread_noraise(i($e=he)?$e:65536)));return W=[Fe.read_buffer,""],w=W[0],Fe.read_buffer=W[1],w},-1),s(x,"$readlines",function(he){var W=this;return k["/"]==null&&(k["/"]=le),he==null&&(he=k["/"]),W.$each_line(he).$to_a()},-1),s(x,"$each",function B(he,W){var Fe=B.$$p||le,$e,V,w,$=this,o=le;if(k["/"]==null&&(k["/"]=le),B.$$p=null,$e=h(arguments),$e.length>0&&(V=$e.shift()),V==null&&(V=k["/"]),w=$e,Fe===le)return C($,"enum_for",["each",V].concat(N(w)));for(;i(o=C($,"gets",[V].concat(N(w))));)e.yield1(Fe,o);return $},-1),s(x,"$each_byte",function B(){var he=B.$$p||le,W=this,Fe=le;if(B.$$p=null,he===le)return W.$enum_for("each_byte");for(;i(Fe=W.$getbyte());)e.yield1(he,Fe);return W}),s(x,"$each_char",function B(){var he=B.$$p||le,W=this,Fe=le;if(B.$$p=null,he===le)return W.$enum_for("each_char");for(;i(Fe=W.$getc());)e.yield1(he,Fe);return W}),s(x,"$close",me("closed","both")),s(x,"$close_read",function(){var he=this;return G(he.closed,"write")?he.closed="both":he.closed="read"}),s(x,"$close_write",function(){var he=this;return G(he.closed,"read")?he.closed="both":he.closed="write"}),s(x,"$closed?",function(){var he=this;return he.closed["$=="]("both")}),s(x,"$closed_read?",function(){var he=this,W=le;return i(W=he.closed["$=="]("read"))?W:he.closed["$=="]("both")}),s(x,"$closed_write?",function(){var he=this,W=le;return i(W=he.closed["$=="]("write"))?W:he.closed["$=="]("both")}),s(x,"$check_writable",function(){var he=this;return i(he["$closed_write?"]())?d.$raise(Ee("IOError"),"not opened for writing"):le}),s(x,"$check_readable",function(){var he=this;return i(he["$closed_read?"]())?d.$raise(Ee("IOError"),"not opened for reading"):le}),Q(x,"each_line","each"),Q(x,"eof?","eof")}("::",null),r("::","STDIN",k.stdin=Ee("IO").$new(0,"r")),r("::","STDOUT",k.stdout=Ee("IO").$new(1,"w")),r("::","STDERR",k.stderr=Ee("IO").$new(2,"w"));var te=e.global.console;return Ee("STDOUT")["$write_proc="](typeof process=="object"&&typeof process.stdout=="object"?function(Ce){process.stdout.write(Ce)}:function(Ce){te.log(Ce)}),Ee("STDERR")["$write_proc="](typeof process=="object"&&typeof process.stderr=="object"?function(Ce){process.stderr.write(Ce)}:function(Ce){te.warn(Ce)}),be=[function(Ce){var fe=prompt();return fe!==null?fe+`
448
+ `:le}],C(Ee("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,l){var f=t(s,"Opal"),h=[f].concat(l),d=e.$r(h);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",d("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",d("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,l=e.Opal,f=e.Kernel,h=e.gvars,d=e.def,k=e.alias,C=e.nil,N=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(U){var O=r(U,"Kernel");return d(O,"$format",function(D,G){var de,ne,me=C;h.DEBUG==null&&(h.DEBUG=C),de=n(arguments,1),ne=de,s(ne.$length(),1)&&i(ne["$[]"](0)["$respond_to?"]("to_ary"))&&(me=l["$coerce_to?"](ne["$[]"](0),N("Array"),"to_ary"),i(me["$nil?"]())||(ne=me.$to_a()));var Q="",be=0,le,Ee,te=D.length,Ce,fe,x,Ae,B,he,W,Fe,$e,V,w,$,o,c=1,p=0,m,E=0,T=1,re=2,je=4,nt=8,ft=16,yt=32,zt=64,_t=128;function vt(){m&yt&&f.$raise(N("ArgumentError"),"flag after width"),m&_t&&f.$raise(N("ArgumentError"),"flag after precision")}function mt(){m&yt&&f.$raise(N("ArgumentError"),"width given twice"),m&_t&&f.$raise(N("ArgumentError"),"width after precision")}function wt(v){return v>=ne.length&&f.$raise(N("ArgumentError"),"too few arguments"),ne[v]}function St(){switch(p){case-1:f.$raise(N("ArgumentError"),"unnumbered("+c+") mixed with numbered");case-2:f.$raise(N("ArgumentError"),"unnumbered("+c+") mixed with named")}return p=c++,wt(p-1)}function Oe(v){return p>0&&f.$raise(N("ArgumentError"),"numbered("+v+") after unnumbered("+p+")"),p===-2&&f.$raise(N("ArgumentError"),"numbered("+v+") after named"),v<1&&f.$raise(N("ArgumentError"),"invalid index - "+v+"$"),p=-1,wt(v-1)}function ze(){return o===void 0?St():o}function De(v){for(var q,we="";;Ee++){if(Ee===te&&f.$raise(N("ArgumentError"),"malformed format string - %*[0-9]"),D.charCodeAt(Ee)<48||D.charCodeAt(Ee)>57)return Ee--,q=parseInt(we,10)||0,q>2147483647&&f.$raise(N("ArgumentError"),""+v+" too big"),q;we+=D.charAt(Ee)}}function Ge(v){var q,we=De(v);return D.charAt(Ee+1)==="$"?(Ee++,q=Oe(we)):q=St(),q.$to_int()}for(Ee=D.indexOf("%");Ee!==-1;Ee=D.indexOf("%",Ee)){switch(fe=void 0,m=E,Ae=-1,B=-1,o=void 0,le=Ee,Ee++,D.charAt(Ee)){case"%":be=Ee;case"":case`
449
+ `:case"\0":Ee++;continue}e:for(;Ee<te;Ee++)switch(D.charAt(Ee)){case" ":vt(),m|=ft;continue e;case"#":vt(),m|=T;continue e;case"+":vt(),m|=je;continue e;case"-":vt(),m|=re;continue e;case"0":vt(),m|=nt;continue e;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":if(he=De("width"),D.charAt(Ee+1)==="$"){if(Ee+2===te){fe="%",Ee++;break e}o!==void 0&&f.$raise(N("ArgumentError"),"value given twice - %"+he+"$"),o=Oe(he),Ee++}else mt(),m|=yt,Ae=he;continue e;case"<":case"{":for(Fe=D.charAt(Ee)==="<"?">":"}",W="",Ee++;;Ee++){if(Ee===te&&f.$raise(N("ArgumentError"),"malformed name - unmatched parenthesis"),D.charAt(Ee)===Fe){if(p>0&&f.$raise(N("ArgumentError"),"named "+W+" after unnumbered("+p+")"),p===-1&&f.$raise(N("ArgumentError"),"named "+W+" after numbered"),p=-2,(ne[0]===void 0||!ne[0].$$is_hash)&&f.$raise(N("ArgumentError"),"one hash required"),o=ne[0].$fetch(W),Fe===">")continue e;if(fe=o.toString(),B!==-1&&(fe=fe.slice(0,B)),m&re)for(;fe.length<Ae;)fe=fe+" ";else for(;fe.length<Ae;)fe=" "+fe;break e}W+=D.charAt(Ee)}case"*":Ee++,mt(),m|=yt,Ae=Ge("width"),Ae<0&&(m|=re,Ae=-Ae);continue e;case".":if(m&_t&&f.$raise(N("ArgumentError"),"precision given twice"),m|=zt|_t,B=0,Ee++,D.charAt(Ee)==="*"){Ee++,B=Ge("precision"),B<0&&(m&=~zt);continue e}B=De("precision");continue e;case"d":case"i":case"u":if(Ce=f.$Integer(ze()),Ce>=0){for(fe=Ce.toString();fe.length<B;)fe="0"+fe;if(m&re)for((m&je||m&ft)&&(fe=(m&je?"+":" ")+fe);fe.length<Ae;)fe=fe+" ";else if(m&nt&&B===-1){for(;fe.length<Ae-(m&je||m&ft?1:0);)fe="0"+fe;(m&je||m&ft)&&(fe=(m&je?"+":" ")+fe)}else for((m&je||m&ft)&&(fe=(m&je?"+":" ")+fe);fe.length<Ae;)fe=" "+fe}else{for(fe=(-Ce).toString();fe.length<B;)fe="0"+fe;if(m&re)for(fe="-"+fe;fe.length<Ae;)fe=fe+" ";else if(m&nt&&B===-1){for(;fe.length<Ae-1;)fe="0"+fe;fe="-"+fe}else for(fe="-"+fe;fe.length<Ae;)fe=" "+fe}break e;case"b":case"B":case"o":case"x":case"X":switch(D.charAt(Ee)){case"b":case"B":$e=2,V="0b",w=/^1+/,$="1";break;case"o":$e=8,V="0",w=/^3?7+/,$="7";break;case"x":case"X":$e=16,V="0x",w=/^f+/,$="f";break}if(Ce=f.$Integer(ze()),Ce>=0){for(fe=Ce.toString($e);fe.length<B;)fe="0"+fe;if(m&re)for((m&je||m&ft)&&(fe=(m&je?"+":" ")+fe),m&T&&Ce!==0&&(fe=V+fe);fe.length<Ae;)fe=fe+" ";else if(m&nt&&B===-1){for(;fe.length<Ae-(m&je||m&ft?1:0)-(m&T&&Ce!==0?V.length:0);)fe="0"+fe;m&T&&Ce!==0&&(fe=V+fe),(m&je||m&ft)&&(fe=(m&je?"+":" ")+fe)}else for(m&T&&Ce!==0&&(fe=V+fe),(m&je||m&ft)&&(fe=(m&je?"+":" ")+fe);fe.length<Ae;)fe=" "+fe}else if(m&je||m&ft){for(fe=(-Ce).toString($e);fe.length<B;)fe="0"+fe;if(m&re)for(m&T&&(fe=V+fe),fe="-"+fe;fe.length<Ae;)fe=fe+" ";else if(m&nt&&B===-1){for(;fe.length<Ae-1-(m&T?2:0);)fe="0"+fe;m&T&&(fe=V+fe),fe="-"+fe}else for(m&T&&(fe=V+fe),fe="-"+fe;fe.length<Ae;)fe=" "+fe}else{for(fe=(Ce>>>0).toString($e).replace(w,$);fe.length<B-2;)fe=$+fe;if(m&re)for(fe=".."+fe,m&T&&(fe=V+fe);fe.length<Ae;)fe=fe+" ";else if(m&nt&&B===-1){for(;fe.length<Ae-2-(m&T?V.length:0);)fe=$+fe;fe=".."+fe,m&T&&(fe=V+fe)}else for(fe=".."+fe,m&T&&(fe=V+fe);fe.length<Ae;)fe=" "+fe}D.charAt(Ee)===D.charAt(Ee).toUpperCase()&&(fe=fe.toUpperCase());break e;case"f":case"e":case"E":case"g":case"G":if(Ce=f.$Float(ze()),Ce>=0||isNaN(Ce)){if(Ce===1/0)fe="Inf";else switch(D.charAt(Ee)){case"f":fe=Ce.toFixed(B===-1?6:B);break;case"e":case"E":fe=Ce.toExponential(B===-1?6:B);break;case"g":case"G":fe=Ce.toExponential(),x=parseInt(fe.split("e")[1],10),x<-4||x>=(B===-1?6:B)||(fe=Ce.toPrecision(B===-1?m&T?6:void 0:B));break}if(m&re)for((m&je||m&ft)&&(fe=(m&je?"+":" ")+fe);fe.length<Ae;)fe=fe+" ";else if(m&nt&&Ce!==1/0&&!isNaN(Ce)){for(;fe.length<Ae-(m&je||m&ft?1:0);)fe="0"+fe;(m&je||m&ft)&&(fe=(m&je?"+":" ")+fe)}else for((m&je||m&ft)&&(fe=(m&je?"+":" ")+fe);fe.length<Ae;)fe=" "+fe}else{if(Ce===-1/0)fe="Inf";else switch(D.charAt(Ee)){case"f":fe=(-Ce).toFixed(B===-1?6:B);break;case"e":case"E":fe=(-Ce).toExponential(B===-1?6:B);break;case"g":case"G":fe=(-Ce).toExponential(),x=parseInt(fe.split("e")[1],10),x<-4||x>=(B===-1?6:B)||(fe=(-Ce).toPrecision(B===-1?m&T?6:void 0:B));break}if(m&re)for(fe="-"+fe;fe.length<Ae;)fe=fe+" ";else if(m&nt&&Ce!==-1/0){for(;fe.length<Ae-1;)fe="0"+fe;fe="-"+fe}else for(fe="-"+fe;fe.length<Ae;)fe=" "+fe}D.charAt(Ee)===D.charAt(Ee).toUpperCase()&&Ce!==1/0&&Ce!==-1/0&&!isNaN(Ce)&&(fe=fe.toUpperCase()),fe=fe.replace(/([eE][-+]?)([0-9])$/,"$10$2");break e;case"a":case"A":f.$raise(N("NotImplementedError"),"`A` and `a` format field types are not implemented in Opal yet");case"c":if(Ce=ze(),Ce["$respond_to?"]("to_ary")&&(Ce=Ce.$to_ary()[0]),Ce["$respond_to?"]("to_str")?fe=Ce.$to_str():fe=String.fromCharCode(t(Ce,N("Integer"),"to_int")),fe.length!==1&&f.$raise(N("ArgumentError"),"%c requires a character"),m&re)for(;fe.length<Ae;)fe=fe+" ";else for(;fe.length<Ae;)fe=" "+fe;break e;case"p":if(fe=ze().$inspect(),B!==-1&&(fe=fe.slice(0,B)),m&re)for(;fe.length<Ae;)fe=fe+" ";else for(;fe.length<Ae;)fe=" "+fe;break e;case"s":if(fe=ze().$to_s(),B!==-1&&(fe=fe.slice(0,B)),m&re)for(;fe.length<Ae;)fe=fe+" ";else for(;fe.length<Ae;)fe=" "+fe;break e;default:f.$raise(N("ArgumentError"),"malformed format string - %"+D.charAt(Ee))}fe===void 0&&f.$raise(N("ArgumentError"),"malformed format string - %"),Q+=D.slice(be,le)+fe,be=Ee+1}return h.DEBUG&&p>=0&&c<ne.length&&f.$raise(N("ArgumentError"),"too many arguments for format string"),Q+D.slice(be)},-2),k(O,"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,l=e.defs,f=e.eqeq,h=e.def,d=e.return_ivar,k=e.return_val,C=e.slice,N=e.Kernel,U=e.Opal,O=e.rb_lt,j,D=e.top,G=[],de=e.$r(G),ne=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="),D.$require("corelib/string"),function(Q,be){var le=t(Q,be,"Encoding"),Ee=le.$$prototype;return Ee.name=Ee.dummy=ne,l(le,"$register",function te(Ce,fe){var x=te.$$p||ne,Ae=this,B=ne,he=ne,W=ne,Fe=ne,$e=ne,V=ne;return te.$$p=null,fe==null&&(fe=r([],{})),B=n([Ce],i(he=fe["$[]"]("aliases"))?he:[]),W=i(he=fe["$[]"]("ascii"))&&he,Fe=i(he=fe["$[]"]("dummy"))&&he,i(fe["$[]"]("inherits"))?($e=fe["$[]"]("inherits").$clone(),$e.$initialize(Ce,B,W,Fe)):$e=Ae.$new(Ce,B,W,Fe),x!==ne&&s($e,"instance_eval",[],x.$to_proc()),V=e.encodings,s(B,"each",[],function w($){var o=w.$$s==null?this:w.$$s;return $==null&&($=ne),o.$const_set($.$tr("-","_"),$e),V[$]=$e},{$$s:Ae})},-2),l(le,"$find",function(Ce){var fe=this;return f(Ce,"default_external")?fe.$default_external():e.find_encoding(Ce)}),le.$singleton_class().$attr_accessor("default_external"),le.$attr_reader("name","names"),h(le,"$initialize",function(Ce,fe,x,Ae){var B=this;return B.name=Ce,B.names=fe,B.ascii=x,B.dummy=Ae}),h(le,"$ascii_compatible?",d("ascii")),h(le,"$dummy?",d("dummy")),h(le,"$binary?",k(!1)),h(le,"$to_s",d("name")),h(le,"$inspect",function(){var Ce=this;return"#<Encoding:"+Ce.name+(i(Ce.dummy)?" (dummy)":ne)+">"}),h(le,"$charsize",function(Ce){for(var fe=0,x=0,Ae=Ce.length;x<Ae;x++){var B=Ce.charCodeAt(x);B>=55296&&B<=56319||fe++}return fe}),h(le,"$each_char",function te(Ce){var fe=te.$$p||ne;te.$$p=null;for(var x="",Ae=0,B=Ce.length;Ae<B;Ae++){var he=Ce.charCodeAt(Ae),W=Ce.charAt(Ae);if(he>=56320&&he<=57343){x=W;continue}else he>=55296&&he<=56319&&(W=x+W);Ce.encoding.name!="UTF-8"&&(W=new String(W),W.encoding=Ce.encoding),e.yield1(fe,W)}}),h(le,"$each_byte",function(Ce){return C(arguments),N.$raise(me("NotImplementedError"))},-1),h(le,"$bytesize",function(Ce){return C(arguments),N.$raise(me("NotImplementedError"))},-1),t("::",me("StandardError"),"EncodingError"),t("::",me("EncodingError"),"CompatibilityError"),ne}("::",null),s(me("Encoding"),"register",["UTF-8",r(["aliases","ascii"],{aliases:["CP65001"],ascii:!0})],function Q(){var be=Q.$$s==null?this:Q.$$s;return h(be,"$each_byte",function le(Ee){var te=le.$$p||ne;le.$$p=null;for(var Ce=1/0,fe,x=Ee.length,Ae=null,B=0;B<x;++B){if(fe=Ee.charCodeAt(B),fe>55295&&fe<57344){if(!Ae){if(fe>56319){(Ce-=3)>-1&&(e.yield1(te,239),e.yield1(te,191),e.yield1(te,189));continue}else if(B+1===x){(Ce-=3)>-1&&(e.yield1(te,239),e.yield1(te,191),e.yield1(te,189));continue}Ae=fe;continue}if(fe<56320){(Ce-=3)>-1&&(e.yield1(te,239),e.yield1(te,191),e.yield1(te,189)),Ae=fe;continue}fe=(Ae-55296<<10|fe-56320)+65536}else Ae&&(Ce-=3)>-1&&(e.yield1(te,239),e.yield1(te,191),e.yield1(te,189));if(Ae=null,fe<128){if((Ce-=1)<0)break;e.yield1(te,fe)}else if(fe<2048){if((Ce-=2)<0)break;e.yield1(te,fe>>6|192),e.yield1(te,fe&63|128)}else if(fe<65536){if((Ce-=3)<0)break;e.yield1(te,fe>>12|224),e.yield1(te,fe>>6&63|128),e.yield1(te,fe&63|128)}else if(fe<1114112){if((Ce-=4)<0)break;e.yield1(te,fe>>18|240),e.yield1(te,fe>>12&63|128),e.yield1(te,fe>>6&63|128),e.yield1(te,fe&63|128)}}}),h(be,"$bytesize",function(Ee){return Ee.$bytes().$length()})},{$$s:D}),s(me("Encoding"),"register",["UTF-16LE"],function Q(){var be=Q.$$s==null?this:Q.$$s;return h(be,"$each_byte",function le(Ee){var te=le.$$p||ne;le.$$p=null;for(var Ce=0,fe=Ee.length;Ce<fe;Ce++){var x=Ee.charCodeAt(Ce);e.yield1(te,x&255),e.yield1(te,x>>8)}}),h(be,"$bytesize",function(Ee){return Ee.length*2})},{$$s:D}),s(me("Encoding"),"register",["UTF-16BE",r(["inherits"],{inherits:me(me("Encoding"),"UTF_16LE")})],function Q(){var be=Q.$$s==null?this:Q.$$s;return h(be,"$each_byte",function le(Ee){var te=le.$$p||ne;le.$$p=null;for(var Ce=0,fe=Ee.length;Ce<fe;Ce++){var x=Ee.charCodeAt(Ce);e.yield1(te,x>>8),e.yield1(te,x&255)}})},{$$s:D}),s(me("Encoding"),"register",["UTF-32LE"],function Q(){var be=Q.$$s==null?this:Q.$$s;return h(be,"$each_byte",function le(Ee){var te=le.$$p||ne;le.$$p=null;for(var Ce=0,fe=Ee.length;Ce<fe;Ce++){var x=Ee.charCodeAt(Ce);e.yield1(te,x&255),e.yield1(te,x>>8),e.yield1(te,0),e.yield1(te,0)}}),h(be,"$bytesize",function(Ee){return Ee.length*4})},{$$s:D}),s(me("Encoding"),"register",["UTF-32BE",r(["inherits"],{inherits:me(me("Encoding"),"UTF_32LE")})],function Q(){var be=Q.$$s==null?this:Q.$$s;return h(be,"$each_byte",function le(Ee){var te=le.$$p||ne;le.$$p=null;for(var Ce=0,fe=Ee.length;Ce<fe;Ce++){var x=Ee.charCodeAt(Ce);e.yield1(te,0),e.yield1(te,0),e.yield1(te,x>>8),e.yield1(te,x&255)}})},{$$s:D}),s(me("Encoding"),"register",["ASCII-8BIT",r(["aliases","ascii"],{aliases:["BINARY"],ascii:!0})],function Q(){var be=Q.$$s==null?this:Q.$$s;return h(be,"$each_char",function le(Ee){var te=le.$$p||ne;le.$$p=null;for(var Ce=0,fe=Ee.length;Ce<fe;Ce++){var x=new String(Ee.charAt(Ce));x.encoding=Ee.encoding,e.yield1(te,x)}}),h(be,"$charsize",function(Ee){return Ee.length}),h(be,"$each_byte",function le(Ee){var te=le.$$p||ne;le.$$p=null;for(var Ce=0,fe=Ee.length;Ce<fe;Ce++){var x=Ee.charCodeAt(Ce);e.yield1(te,x&255)}}),h(be,"$bytesize",function(Ee){return Ee.length}),h(be,"$binary?",k(!0))},{$$s:D}),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(Q,be){var le=t(Q,be,"String"),Ee=le.$$prototype;return Ee.internal_encoding=Ee.bytes=Ee.encoding=ne,le.$attr_reader("encoding"),le.$attr_reader("internal_encoding"),e.prop(String.prototype,"bytes",ne),e.prop(String.prototype,"encoding",me(me("Encoding"),"UTF_8")),e.prop(String.prototype,"internal_encoding",me(me("Encoding"),"UTF_8")),h(le,"$b",function(){var Ce=this;return Ce.$dup().$force_encoding("binary")}),h(le,"$bytesize",function(){var Ce=this;return Ce.internal_encoding.$bytesize(Ce)}),h(le,"$each_byte",function te(){var Ce=te.$$p||ne,fe=this;return te.$$p=null,Ce===ne?s(fe,"enum_for",["each_byte"],function x(){var Ae=x.$$s==null?this:x.$$s;return Ae.$bytesize()},{$$s:fe}):(s(fe.internal_encoding,"each_byte",[fe],Ce.$to_proc()),fe)}),h(le,"$bytes",function(){var Ce=this,fe=ne;return typeof Ce=="string"?new String(Ce).$each_byte().$to_a():(Ce.bytes=i(fe=Ce.bytes)?fe:Ce.$each_byte().$to_a(),Ce.bytes.$dup())}),h(le,"$each_char",function te(){var Ce=te.$$p||ne,fe=this;return te.$$p=null,Ce===ne?s(fe,"enum_for",["each_char"],function x(){var Ae=x.$$s==null?this:x.$$s;return Ae.$length()},{$$s:fe}):(s(fe.encoding,"each_char",[fe],Ce.$to_proc()),fe)}),h(le,"$chars",function te(){var Ce=te.$$p||ne,fe=this;return te.$$p=null,i(Ce)?s(fe,"each_char",[],Ce.$to_proc()):fe.$each_char().$to_a()}),h(le,"$each_codepoint",function te(){var Ce=te.$$p||ne,fe=this;if(te.$$p=null,Ce===ne)return fe.$enum_for("each_codepoint");for(var x=0,Ae=fe.length;x<Ae;x++)e.yield1(Ce,fe.codePointAt(x));return fe}),h(le,"$codepoints",function te(){var Ce=te.$$p||ne,fe=this;return te.$$p=null,Ce!==ne?s(fe,"each_codepoint",[],Ce.$to_proc()):fe.$each_codepoint().$to_a()}),h(le,"$encode",function(Ce){var fe=this;return e.enc(fe,Ce)}),h(le,"$force_encoding",function(Ce){var fe=this,x=fe;return Ce===x.encoding||(Ce=U["$coerce_to!"](Ce,me("String"),"to_s"),Ce=me("Encoding").$find(Ce),Ce===x.encoding)||(x=e.set_encoding(x,Ce)),x}),h(le,"$getbyte",function(Ce){var fe=this,x=ne;return x=fe.$bytes(),Ce=U["$coerce_to!"](Ce,me("Integer"),"to_int"),i(O(x.$length(),Ce))?ne:x["$[]"](Ce)}),h(le,"$initialize_copy",function(Ce){return`
450
+ self.encoding = other.encoding;
451
+ self.internal_encoding = other.internal_encoding;
452
+ `}),h(le,"$valid_encoding?",k(!0))}("::",null),j=[me(de("Encoding"),"UTF_8")],s(me("Encoding"),"default_external=",j),j[j.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,l=e.Kernel,f=e.defs,h=e.truthy,d=e.send,k=e.def,C=e.rb_minus,N=e.eqeqeq,U=e.rb_divide,O=[],j=e.nil,D=e.$$$;return e.add_stubs("new,raise,Float,Integer,module_function,each,define_method,checked,float!,===,gamma,-,integer!,/,infinite?"),function(G,de){var ne=r(G,"Math"),me=[ne].concat(de),Q=e.$r(me);return n(ne,"E",Math.E),n(ne,"PI",Math.PI),n(ne,"DomainError",i.$new(D("StandardError"))),f(ne,"$checked",function(le,Ee){var te,Ce;if(te=s(arguments,1),Ce=te,isNaN(Ce[0])||Ce.length==2&&isNaN(Ce[1]))return NaN;var fe=Math[le].apply(null,Ce);return isNaN(fe)&&l.$raise(Q("DomainError"),'Numerical argument is out of domain - "'+le+'"'),fe},-2),f(ne,"$float!",function(le){try{return l.$Float(le)}catch(Ee){if(e.rescue(Ee,[D("ArgumentError")]))try{return l.$raise(t(le,D("Float")))}finally{e.pop_exception()}else throw Ee}}),f(ne,"$integer!",function(le){try{return l.$Integer(le)}catch(Ee){if(e.rescue(Ee,[D("ArgumentError")]))try{return l.$raise(t(le,D("Integer")))}finally{e.pop_exception()}else throw Ee}}),ne.$module_function(),h(typeof Math.erf<"u")||e.prop(Math,"erf",function(be){var le=.254829592,Ee=-.284496736,te=1.421413741,Ce=-1.453152027,fe=1.061405429,x=.3275911,Ae=1;be<0&&(Ae=-1),be=Math.abs(be);var B=1/(1+x*be),he=1-((((fe*B+Ce)*B+te)*B+Ee)*B+le)*B*Math.exp(-be*be);return Ae*he}),h(typeof Math.erfc<"u")||e.prop(Math,"erfc",function(be){var le=Math.abs(be),Ee=1/(.5*le+1),te=Ee*.17087277+-.82215223,Ce=Ee*te+1.48851587,fe=Ee*Ce+-1.13520398,x=Ee*fe+.27886807,Ae=Ee*x+-.18628806,B=Ee*Ae+.09678418,he=Ee*B+.37409196,W=Ee*he+1.00002368,Fe=Ee*W,$e=-le*le-1.26551223+Fe,V=Ee*Math.exp($e);return be<0?2-V:V}),d(["acos","acosh","asin","asinh","atan","atanh","cbrt","cos","cosh","erf","erfc","exp","sin","sinh","sqrt","tanh"],"each",[],function be(le){var Ee=be.$$s==null?this:be.$$s;return le==null&&(le=j),d(Ee,"define_method",[le],function(Ce){return Ce==null&&(Ce=j),D("Math").$checked(le,D("Math")["$float!"](Ce))})},{$$s:ne}),k(ne,"$atan2",function(le,Ee){return D("Math").$checked("atan2",D("Math")["$float!"](le),D("Math")["$float!"](Ee))}),k(ne,"$hypot",function(le,Ee){return D("Math").$checked("hypot",D("Math")["$float!"](le),D("Math")["$float!"](Ee))}),k(ne,"$frexp",function(le){if(le=Q("Math")["$float!"](le),isNaN(le))return[NaN,0];var Ee=Math.floor(Math.log(Math.abs(le))/Math.log(2))+1,te=le/Math.pow(2,Ee);return[te,Ee]}),k(ne,"$gamma",function(le){le=Q("Math")["$float!"](le);var Ee,te,Ce,fe,x,Ae,B,he,W,Fe=4.7421875,$e=[.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(le))return NaN;if(le===0&&1/le<0)return-1/0;if((le===-1||le===-1/0)&&l.$raise(Q("DomainError"),'Numerical argument is out of domain - "gamma"'),Q("Integer")["$==="](le)){if(le<=0)return isFinite(le)?1/0:NaN;if(le>171)return 1/0;for(fe=le-2,x=le-1;fe>1;)x*=fe,fe--;return x==0&&(x=1),x}if(le<.5)return Math.PI/(Math.sin(Math.PI*le)*D("Math").$gamma(C(1,le)));if(le>=171.35)return 1/0;if(le>85)return Ae=le*le,B=Ae*le,he=B*le,W=he*le,Math.sqrt(2*Math.PI/le)*Math.pow(le/Math.E,le)*(1+1/(12*le)+1/(288*Ae)-139/(51840*B)-571/(2488320*he)+163879/(209018880*W)+5246819/(75246796800*W*le));for(le-=1,Ce=$e[0],Ee=1;Ee<$e.length;++Ee)Ce+=$e[Ee]/(le+Ee);return te=le+Fe+.5,Math.sqrt(2*Math.PI)*Math.pow(te,le+.5)*Math.exp(-te)*Ce}),k(ne,"$ldexp",function(le,Ee){return le=Q("Math")["$float!"](le),Ee=Q("Math")["$integer!"](Ee),isNaN(Ee)&&l.$raise(D("RangeError"),"float NaN out of range of integer"),le*Math.pow(2,Ee)}),k(ne,"$lgamma",function(le){return le==-1?[1/0,1]:[Math.log(Math.abs(D("Math").$gamma(le))),D("Math").$gamma(le)<0?-1:1]}),k(ne,"$log",function(le,Ee){return N(D("String"),le)&&l.$raise(t(le,D("Float"))),h(Ee==null)?D("Math").$checked("log",D("Math")["$float!"](le)):(N(D("String"),Ee)&&l.$raise(t(Ee,D("Float"))),U(D("Math").$checked("log",D("Math")["$float!"](le)),D("Math").$checked("log",D("Math")["$float!"](Ee))))},-2),k(ne,"$log10",function(le){return N(D("String"),le)&&l.$raise(t(le,D("Float"))),D("Math").$checked("log10",D("Math")["$float!"](le))}),k(ne,"$log2",function(le){return N(D("String"),le)&&l.$raise(t(le,D("Float"))),D("Math").$checked("log2",D("Math")["$float!"](le))}),k(ne,"$tan",function(le){return le=D("Math")["$float!"](le),h(le["$infinite?"]())?D(D("Float"),"NAN"):D("Math").$checked("tan",D("Math")["$float!"](le))})}("::",O)};Opal.modules["corelib/complex/base"]=function(e){var t=e.module,r=e.truthy,n=e.def,i=e.klass,s=[],l=e.nil;return e.add_stubs("new,from_string"),function(f,h){var d=t(f,"Kernel"),k=[d].concat(h),C=e.$r(k);return n(d,"$Complex",function(U,O){return O==null&&(O=l),r(O)?C("Complex").$new(U,O):C("Complex").$new(U,0)},-2)}("::",s),function(f,h,d){var k=i(f,h,"String"),C=[k].concat(d),N=e.$r(C);return n(k,"$to_c",function(){var O=this;return N("Complex").$from_string(O)})}("::",null,s)};Opal.modules["corelib/complex"]=function(e){var t=e.klass,r=e.truthy,n=e.eqeqeq,i=e.Kernel,s=e.defs,l=e.rb_times,f=e.def,h=e.rb_plus,d=e.rb_minus,k=e.rb_divide,C=e.eqeq,N=e.to_ary,U=e.rb_gt,O=e.neqeq,j=e.return_val,D=e.const_set,G=e.alias,de=e.top,ne=[],me=e.nil,Q=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"),de.$require("corelib/numeric"),de.$require("corelib/complex/base"),function(be,le,Ee){var te=t(be,le,"Complex"),Ce=[te].concat(Ee),fe=e.$r(Ce),x=te.$$prototype;return x.real=x.imag=me,s(te,"$rect",function(B,he){var W=this;return he==null&&(he=0),n(Q("Numeric"),B)&&r(B["$real?"]())&&n(Q("Numeric"),he)&&r(he["$real?"]())||i.$raise(Q("TypeError"),"not a real"),W.$new(B,he)},-2),s(te,"$polar",function(B,he){var W=this;return he==null&&(he=0),n(Q("Numeric"),B)&&r(B["$real?"]())&&n(Q("Numeric"),he)&&r(he["$real?"]())||i.$raise(Q("TypeError"),"not a real"),W.$new(l(B,Q("Math").$cos(he)),l(B,Q("Math").$sin(he)))},-2),te.$attr_reader("real","imag"),f(te,"$initialize",function(B,he){var W=this;return he==null&&(he=0),W.real=B,W.imag=he,W.$freeze()},-2),f(te,"$coerce",function(B){var he=this;return n(Q("Complex"),B)?[B,he]:n(Q("Numeric"),B)&&r(B["$real?"]())?[Q("Complex").$new(B,0),he]:i.$raise(Q("TypeError"),""+B.$class()+" can't be coerced into Complex")}),f(te,"$==",function(B){var he=this,W=me;return n(Q("Complex"),B)?r(W=he.real["$=="](B.$real()))?he.imag["$=="](B.$imag()):W:n(Q("Numeric"),B)&&r(B["$real?"]())?r(W=he.real["$=="](B))?he.imag["$=="](0):W:B["$=="](he)}),f(te,"$-@",function(){var B=this;return i.$Complex(B.real["$-@"](),B.imag["$-@"]())}),f(te,"$+",function(B){var he=this;return n(Q("Complex"),B)?i.$Complex(h(he.real,B.$real()),h(he.imag,B.$imag())):n(Q("Numeric"),B)&&r(B["$real?"]())?i.$Complex(h(he.real,B),he.imag):he.$__coerced__("+",B)}),f(te,"$-",function(B){var he=this;return n(Q("Complex"),B)?i.$Complex(d(he.real,B.$real()),d(he.imag,B.$imag())):n(Q("Numeric"),B)&&r(B["$real?"]())?i.$Complex(d(he.real,B),he.imag):he.$__coerced__("-",B)}),f(te,"$*",function(B){var he=this;return n(Q("Complex"),B)?i.$Complex(d(l(he.real,B.$real()),l(he.imag,B.$imag())),h(l(he.real,B.$imag()),l(he.imag,B.$real()))):n(Q("Numeric"),B)&&r(B["$real?"]())?i.$Complex(l(he.real,B),l(he.imag,B)):he.$__coerced__("*",B)}),f(te,"$/",function(B){var he=this;return n(Q("Complex"),B)?n(Q("Number"),he.real)&&r(he.real["$nan?"]())||n(Q("Number"),he.imag)&&r(he.imag["$nan?"]())||n(Q("Number"),B.$real())&&r(B.$real()["$nan?"]())||n(Q("Number"),B.$imag())&&r(B.$imag()["$nan?"]())?Q("Complex").$new(Q(Q("Float"),"NAN"),Q(Q("Float"),"NAN")):k(l(he,B.$conj()),B.$abs2()):n(Q("Numeric"),B)&&r(B["$real?"]())?i.$Complex(he.real.$quo(B),he.imag.$quo(B)):he.$__coerced__("/",B)}),f(te,"$**",function(B){var he,W,Fe=this,$e=me,V=me,w=me,$=me,o=me,c=me,p=me,m=me,E=me,T=me,re=me;if(C(B,0))return Q("Complex").$new(1,0);if(n(Q("Complex"),B))return W=Fe.$polar(),he=N(W),$e=he[0]==null?me:he[0],V=he[1]==null?me:he[1],w=B.$real(),$=B.$imag(),o=Q("Math").$exp(d(l(w,Q("Math").$log($e)),l($,V))),c=h(l(V,w),l($,Q("Math").$log($e))),Q("Complex").$polar(o,c);if(n(Q("Integer"),B))if(r(U(B,0))){for(p=Fe,m=p,E=d(B,1);O(E,0);){for(W=E.$divmod(2),he=N(W),T=he[0]==null?me:he[0],re=he[1]==null?me:he[1];C(re,0);)p=i.$Complex(d(l(p.$real(),p.$real()),l(p.$imag(),p.$imag())),l(l(2,p.$real()),p.$imag())),E=T,W=E.$divmod(2),he=N(W),T=he[0]==null?me:he[0],re=he[1]==null?me:he[1];m=l(m,p),E=d(E,1)}return m}else return k(Q("Rational").$new(1,1),Fe)["$**"](B["$-@"]());else return n(Q("Float"),B)||n(Q("Rational"),B)?(W=Fe.$polar(),he=N(W),$e=he[0]==null?me:he[0],V=he[1]==null?me:he[1],Q("Complex").$polar($e["$**"](B),l(V,B))):Fe.$__coerced__("**",B)}),f(te,"$abs",function(){var B=this;return Q("Math").$hypot(B.real,B.imag)}),f(te,"$abs2",function(){var B=this;return h(l(B.real,B.real),l(B.imag,B.imag))}),f(te,"$angle",function(){var B=this;return Q("Math").$atan2(B.imag,B.real)}),f(te,"$conj",function(){var B=this;return i.$Complex(B.real,B.imag["$-@"]())}),f(te,"$denominator",function(){var B=this;return B.real.$denominator().$lcm(B.imag.$denominator())}),f(te,"$eql?",function(B){var he=this,W=me,Fe=me;return r(W=r(Fe=fe("Complex")["$==="](B))?he.real.$class()["$=="](he.imag.$class()):Fe)?he["$=="](B):W}),f(te,"$fdiv",function(B){var he=this;return n(Q("Numeric"),B)||i.$raise(Q("TypeError"),""+B.$class()+" can't be coerced into Complex"),k(he,B)}),f(te,"$finite?",function(){var B=this,he=me;return r(he=B.real["$finite?"]())?B.imag["$finite?"]():he}),f(te,"$hash",function(){var B=this;return"Complex:"+B.real+":"+B.imag}),f(te,"$infinite?",function(){var B=this,he=me;return r(he=B.real["$infinite?"]())?he:B.imag["$infinite?"]()}),f(te,"$inspect",function(){var B=this;return"("+B+")"}),f(te,"$numerator",function(){var B=this,he=me;return he=B.$denominator(),i.$Complex(l(B.real.$numerator(),k(he,B.real.$denominator())),l(B.imag.$numerator(),k(he,B.imag.$denominator())))}),f(te,"$polar",function(){var B=this;return[B.$abs(),B.$arg()]}),f(te,"$rationalize",function(B){var he=this;return arguments.length>1&&i.$raise(Q("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),O(he.imag,0)&&i.$raise(Q("RangeError"),"can't convert "+he+" into Rational"),he.$real().$rationalize(B)},-1),f(te,"$real?",j(!1)),f(te,"$rect",function(){var B=this;return[B.real,B.imag]}),f(te,"$to_f",function(){var B=this;return C(B.imag,0)||i.$raise(Q("RangeError"),"can't convert "+B+" into Float"),B.real.$to_f()}),f(te,"$to_i",function(){var B=this;return C(B.imag,0)||i.$raise(Q("RangeError"),"can't convert "+B+" into Integer"),B.real.$to_i()}),f(te,"$to_r",function(){var B=this;return C(B.imag,0)||i.$raise(Q("RangeError"),"can't convert "+B+" into Rational"),B.real.$to_r()}),f(te,"$to_s",function(){var B=this,he=me;return he=B.real.$inspect(),he=h(he,n(Q("Number"),B.imag)&&r(B.imag["$nan?"]())||r(B.imag["$positive?"]())||r(B.imag["$zero?"]())?"+":"-"),he=h(he,B.imag.$abs().$inspect()),n(Q("Number"),B.imag)&&(r(B.imag["$nan?"]())||r(B.imag["$infinite?"]()))&&(he=h(he,"*")),h(he,"i")}),D(Ce[0],"I",te.$new(0,1)),s(te,"$from_string",function(B){var he=/[+-]?[\d_]+(\.[\d_]+)?(e\d+)?/;B.match(he);var W,Fe;function $e(){return he.test(B)}function V(){var $=B.match(he),o=$[0];return B=B.slice(o.length),o.replace(/_/g,"")}function w(){if($e()){var $=parseFloat(V());if(B[0]==="/")if(B=B.slice(1),$e()){var o=parseFloat(V());return i.$Rational($,o)}else return B="/"+B,$;else return $}else return null}return W=w(),W?(Fe=w(),Fe?i.$Complex(W,Fe):B[0]==="i"?i.$Complex(0,W):i.$Complex(W,0)):B[0]==="i"?i.$Complex(0,1):B[0]==="-"&&B[1]==="i"?i.$Complex(0,-1):B[0]==="+"&&B[1]==="i"?i.$Complex(0,1):i.$Complex(0,0)}),function(Ae,B){return G(Ae,"rectangular","rect")}(e.get_singleton_class(te)),G(te,"arg","angle"),G(te,"conjugate","conj"),G(te,"divide","/"),G(te,"imaginary","imag"),G(te,"magnitude","abs"),G(te,"phase","arg"),G(te,"quo","/"),G(te,"rectangular","rect"),e.udef(te,"$negative?"),e.udef(te,"$positive?"),e.udef(te,"$step"),me}("::",Q("Numeric"),ne)};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 l=t(s,"Kernel");return r(l,"$Rational",function(h,d){return d==null&&(d=1),i("Rational").$convert(h,d)},-2)}("::"),function(s,l){var f=n(s,l,"String");return r(f,"$to_r",function(){var d=this;return i("Rational").$from_string(d)})}("::",null)};Opal.modules["corelib/rational"]=function(e){var t=e.klass,r=e.eqeq,n=e.Kernel,i=e.truthy,s=e.rb_lt,l=e.rb_divide,f=e.defs,h=e.eqeqeq,d=e.not,k=e.Opal,C=e.def,N=e.return_ivar,U=e.rb_minus,O=e.rb_times,j=e.rb_plus,D=e.rb_gt,G=e.rb_le,de=e.return_self,ne=e.alias,me=e.top,Q=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(le,Ee){var te=t(le,Ee,"Rational"),Ce=te.$$prototype;return Ce.num=Ce.den=Q,f(te,"$reduce",function(x,Ae){var B=this,he=Q;if(x=x.$to_i(),Ae=Ae.$to_i(),r(Ae,0))n.$raise(be("ZeroDivisionError"),"divided by 0");else if(i(s(Ae,0)))x=x["$-@"](),Ae=Ae["$-@"]();else if(r(Ae,1))return B.$new(x,Ae);return he=x.$gcd(Ae),B.$new(l(x,he),l(Ae,he))}),f(te,"$convert",function(x,Ae){var B=this;return(i(x["$nil?"]())||i(Ae["$nil?"]()))&&n.$raise(be("TypeError"),"cannot convert nil into Rational"),h(be("Integer"),x)&&h(be("Integer"),Ae)?B.$reduce(x,Ae):((h(be("Float"),x)||h(be("String"),x)||h(be("Complex"),x))&&(x=x.$to_r()),(h(be("Float"),Ae)||h(be("String"),Ae)||h(be("Complex"),Ae))&&(Ae=Ae.$to_r()),i(Ae["$equal?"](1))&&d(be("Integer")["$==="](x))?k["$coerce_to!"](x,be("Rational"),"to_r"):h(be("Numeric"),x)&&h(be("Numeric"),Ae)?l(x,Ae):B.$reduce(x,Ae))}),C(te,"$initialize",function(x,Ae){var B=this;return B.num=x,B.den=Ae,B.$freeze()}),C(te,"$numerator",N("num")),C(te,"$denominator",N("den")),C(te,"$coerce",function(x){var Ae=this,B=Q;return h(be("Rational"),B=x)?[x,Ae]:h(be("Integer"),B)?[x.$to_r(),Ae]:h(be("Float"),B)?[x,Ae.$to_f()]:Q}),C(te,"$==",function(x){var Ae=this,B=Q,he=Q;return h(be("Rational"),B=x)?i(he=Ae.num["$=="](x.$numerator()))?Ae.den["$=="](x.$denominator()):he:h(be("Integer"),B)?i(he=Ae.num["$=="](x))?Ae.den["$=="](1):he:h(be("Float"),B)?Ae.$to_f()["$=="](x):x["$=="](Ae)}),C(te,"$<=>",function(x){var Ae=this,B=Q;return h(be("Rational"),B=x)?U(O(Ae.num,x.$denominator()),O(Ae.den,x.$numerator()))["$<=>"](0):h(be("Integer"),B)?U(Ae.num,O(Ae.den,x))["$<=>"](0):h(be("Float"),B)?Ae.$to_f()["$<=>"](x):Ae.$__coerced__("<=>",x)}),C(te,"$+",function(x){var Ae=this,B=Q,he=Q,W=Q;return h(be("Rational"),B=x)?(he=j(O(Ae.num,x.$denominator()),O(Ae.den,x.$numerator())),W=O(Ae.den,x.$denominator()),n.$Rational(he,W)):h(be("Integer"),B)?n.$Rational(j(Ae.num,O(x,Ae.den)),Ae.den):h(be("Float"),B)?j(Ae.$to_f(),x):Ae.$__coerced__("+",x)}),C(te,"$-",function(x){var Ae=this,B=Q,he=Q,W=Q;return h(be("Rational"),B=x)?(he=U(O(Ae.num,x.$denominator()),O(Ae.den,x.$numerator())),W=O(Ae.den,x.$denominator()),n.$Rational(he,W)):h(be("Integer"),B)?n.$Rational(U(Ae.num,O(x,Ae.den)),Ae.den):h(be("Float"),B)?U(Ae.$to_f(),x):Ae.$__coerced__("-",x)}),C(te,"$*",function(x){var Ae=this,B=Q,he=Q,W=Q;return h(be("Rational"),B=x)?(he=O(Ae.num,x.$numerator()),W=O(Ae.den,x.$denominator()),n.$Rational(he,W)):h(be("Integer"),B)?n.$Rational(O(Ae.num,x),Ae.den):h(be("Float"),B)?O(Ae.$to_f(),x):Ae.$__coerced__("*",x)}),C(te,"$/",function(x){var Ae=this,B=Q,he=Q,W=Q;return h(be("Rational"),B=x)?(he=O(Ae.num,x.$denominator()),W=O(Ae.den,x.$numerator()),n.$Rational(he,W)):h(be("Integer"),B)?r(x,0)?l(Ae.$to_f(),0):n.$Rational(Ae.num,O(Ae.den,x)):h(be("Float"),B)?l(Ae.$to_f(),x):Ae.$__coerced__("/",x)}),C(te,"$**",function(x){var Ae=this,B=Q;return h(be("Integer"),B=x)?r(Ae,0)&&i(s(x,0))?be(be("Float"),"INFINITY"):i(D(x,0))?n.$Rational(Ae.num["$**"](x),Ae.den["$**"](x)):i(s(x,0))?n.$Rational(Ae.den["$**"](x["$-@"]()),Ae.num["$**"](x["$-@"]())):n.$Rational(1,1):h(be("Float"),B)?Ae.$to_f()["$**"](x):h(be("Rational"),B)?r(x,0)?n.$Rational(1,1):r(x.$denominator(),1)?i(s(x,0))?n.$Rational(Ae.den["$**"](x.$numerator().$abs()),Ae.num["$**"](x.$numerator().$abs())):n.$Rational(Ae.num["$**"](x.$numerator()),Ae.den["$**"](x.$numerator())):r(Ae,0)&&i(s(x,0))?n.$raise(be("ZeroDivisionError"),"divided by 0"):Ae.$to_f()["$**"](x):Ae.$__coerced__("**",x)}),C(te,"$abs",function(){var x=this;return n.$Rational(x.num.$abs(),x.den.$abs())}),C(te,"$ceil",function(x){var Ae=this;return x==null&&(x=0),r(x,0)?l(Ae.num["$-@"](),Ae.den)["$-@"]().$ceil():Ae.$with_precision("ceil",x)},-1),C(te,"$floor",function(x){var Ae=this;return x==null&&(x=0),r(x,0)?l(Ae.num["$-@"](),Ae.den)["$-@"]().$floor():Ae.$with_precision("floor",x)},-1),C(te,"$hash",function(){var x=this;return"Rational:"+x.num+":"+x.den}),C(te,"$inspect",function(){var x=this;return"("+x+")"}),C(te,"$rationalize",function(x){var Ae=this;if(arguments.length>1&&n.$raise(be("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),x==null)return Ae;for(var B=x.$abs(),he=U(Ae,B),W=j(Ae,B),Fe=0,$e=1,V=1,w=0,$,o,c,p,m;c=he.$ceil(),!G(c,W);)p=c-1,$=p*$e+Fe,o=p*w+V,m=l(1,U(W,p)),W=l(1,U(he,p)),he=m,Fe=$e,V=w,$e=$,w=o;return n.$Rational(c*$e+Fe,c*w+V)},-1),C(te,"$round",function(x){var Ae=this,B=Q,he=Q,W=Q;return x==null&&(x=0),r(x,0)?r(Ae.num,0)?0:r(Ae.den,1)?Ae.num:(B=j(O(Ae.num.$abs(),2),Ae.den),he=O(Ae.den,2),W=l(B,he).$truncate(),i(s(Ae.num,0))?W["$-@"]():W):Ae.$with_precision("round",x)},-1),C(te,"$to_f",function(){var x=this;return l(x.num,x.den)}),C(te,"$to_i",function(){var x=this;return x.$truncate()}),C(te,"$to_r",de),C(te,"$to_s",function(){var x=this;return""+x.num+"/"+x.den}),C(te,"$truncate",function(x){var Ae=this;return x==null&&(x=0),r(x,0)?i(s(Ae.num,0))?Ae.$ceil():Ae.$floor():Ae.$with_precision("truncate",x)},-1),C(te,"$with_precision",function(x,Ae){var B=this,he=Q,W=Q;return h(be("Integer"),Ae)||n.$raise(be("TypeError"),"not an Integer"),he=10["$**"](Ae),W=O(B,he),i(s(Ae,1))?l(W.$send(x),he).$to_i():n.$Rational(W.$send(x),he)}),f(te,"$from_string",function(x){var Ae=x.trimLeft(),B=/^[+-]?[\d_]+(\.[\d_]+)?/;Ae.match(B);var he,W;function Fe(){return B.test(Ae)}function $e(){var V=Ae.match(B),w=V[0];return Ae=Ae.slice(w.length),w.replace(/_/g,"")}return Fe()?(he=parseFloat($e()),Ae[0]==="/"?(Ae=Ae.slice(1),Fe()?(W=parseFloat($e()),n.$Rational(he,W)):n.$Rational(he,1)):n.$Rational(he,1)):n.$Rational(0,1)}),ne(te,"divide","/"),ne(te,"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,l=e.defs,f=e.eqeqeq,h=e.def,d=e.truthy,k=e.rb_gt,C=e.rb_lt,N=e.send,U=e.rb_plus,O=e.rb_divide,j=e.rb_minus,D=e.range,G=e.neqeq,de=e.rb_le,ne=e.eqeq,me=e.alias,Q=e.top,be=[],le=e.nil,Ee=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?"),Q.$require("corelib/comparable"),function(te,Ce,fe){var x=n(te,Ce,"Time"),Ae=[x].concat(fe),B=e.$r(Ae);x.$include(Ee("Comparable"));var he=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],W=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Fe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],$e=["January","February","March","April","May","June","July","August","September","October","November","December"];l(x,"$at",function($,o){var c;return Ee("Time")["$==="]($)?(o!==void 0&&i.$raise(Ee("TypeError"),"can't convert Time into an exact number"),c=new Date($.getTime()),c.timezone=$.timezone,c):($.$$is_number||($=s["$coerce_to!"]($,Ee("Integer"),"to_int")),o===void 0?new Date($*1e3):(o.$$is_number||(o=s["$coerce_to!"](o,Ee("Integer"),"to_int")),new Date($*1e3+o/1e3)))},-2);function V(w,$,o,c,p,m){if(w.$$is_string?w=parseInt(w,10):w=s["$coerce_to!"](w,Ee("Integer"),"to_int"),$===le)$=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!"]($,Ee("Integer"),"to_int");return($<1||$>12)&&i.$raise(Ee("ArgumentError"),"month out of range: "+$),$=$-1,o===le?o=1:o.$$is_string?o=parseInt(o,10):o=s["$coerce_to!"](o,Ee("Integer"),"to_int"),(o<1||o>31)&&i.$raise(Ee("ArgumentError"),"day out of range: "+o),c===le?c=0:c.$$is_string?c=parseInt(c,10):c=s["$coerce_to!"](c,Ee("Integer"),"to_int"),(c<0||c>24)&&i.$raise(Ee("ArgumentError"),"hour out of range: "+c),p===le?p=0:p.$$is_string?p=parseInt(p,10):p=s["$coerce_to!"](p,Ee("Integer"),"to_int"),(p<0||p>59)&&i.$raise(Ee("ArgumentError"),"min out of range: "+p),m===le?m=0:m.$$is_number||(m.$$is_string?m=parseInt(m,10):m=s["$coerce_to!"](m,Ee("Integer"),"to_int")),(m<0||m>60)&&i.$raise(Ee("ArgumentError"),"sec out of range: "+m),[w,$,o,c,p,m]}return l(x,"$new",function($,o,c,p,m,E,T){var re=this;o==null&&(o=le),c==null&&(c=le),p==null&&(p=le),m==null&&(m=le),E==null&&(E=le),T==null&&(T=le);var je,nt,ft,yt;return $===void 0?new Date:(je=V($,o,c,p,m,E),$=je[0],o=je[1],c=je[2],p=je[3],m=je[4],E=je[5],T===le?(nt=new Date($,o,c,p,m,0,E*1e3),$<100&&nt.setFullYear($),nt):(ft=re.$_parse_offset(T),yt=new Date(Date.UTC($,o,c,p,m,0,E*1e3)),$<100&&yt.setUTCFullYear($),nt=new Date(yt.getTime()-ft*36e5),nt.timezone=ft,nt))},-1),l(x,"$_parse_offset",function($){var o;if($.$$is_string)if($=="UTC")o=0;else if(/^[+-]\d\d:[0-5]\d$/.test($)){var c,p,m;c=$[0],p=+($[1]+$[2]),m=+($[4]+$[5]),o=(c=="-"?-1:1)*(p+m/60)}else i.$raise(Ee("ArgumentError"),'"+HH:MM", "-HH:MM", "UTC" expected for utc_offset: '+$);else $.$$is_number?o=$/3600:i.$raise(Ee("ArgumentError"),"Opal doesn't support other types for a timezone argument than Integer and String");return o}),l(x,"$local",function($,o,c,p,m,E,T,re,je,nt){o==null&&(o=le),c==null&&(c=le),p==null&&(p=le),m==null&&(m=le),E==null&&(E=le),T==null&&(T=le),re==null&&(re=le),je==null&&(je=le),nt==null&&(nt=le);var ft,yt;return arguments.length===10&&(ft=t(arguments),$=ft[5],o=ft[4],c=ft[3],p=ft[2],m=ft[1],E=ft[0]),ft=V($,o,c,p,m,E),$=ft[0],o=ft[1],c=ft[2],p=ft[3],m=ft[4],E=ft[5],yt=new Date($,o,c,p,m,0,E*1e3),$<100&&yt.setFullYear($),yt},-2),l(x,"$gm",function($,o,c,p,m,E,T,re,je,nt){o==null&&(o=le),c==null&&(c=le),p==null&&(p=le),m==null&&(m=le),E==null&&(E=le),T==null&&(T=le),re==null&&(re=le),je==null&&(je=le),nt==null&&(nt=le);var ft,yt;return arguments.length===10&&(ft=t(arguments),$=ft[5],o=ft[4],c=ft[3],p=ft[2],m=ft[1],E=ft[0]),ft=V($,o,c,p,m,E),$=ft[0],o=ft[1],c=ft[2],p=ft[3],m=ft[4],E=ft[5],yt=new Date(Date.UTC($,o,c,p,m,0,E*1e3)),$<100&&yt.setUTCFullYear($),yt.timezone=0,yt},-2),l(x,"$now",function(){var $=this;return $.$new()}),h(x,"$+",function($){var o=this;f(Ee("Time"),$)&&i.$raise(Ee("TypeError"),"time + time?"),$.$$is_number||($=s["$coerce_to!"]($,Ee("Integer"),"to_int"));var c=new Date(o.getTime()+$*1e3);return c.timezone=o.timezone,c}),h(x,"$-",function($){var o=this;if(f(Ee("Time"),$))return(o.getTime()-$.getTime())/1e3;$.$$is_number||($=s["$coerce_to!"]($,Ee("Integer"),"to_int"));var c=new Date(o.getTime()-$*1e3);return c.timezone=o.timezone,c}),h(x,"$<=>",function($){var o=this,c=le;return f(Ee("Time"),$)?o.$to_f()["$<=>"]($.$to_f()):(c=$["$<=>"](o),d(c["$nil?"]())?le:d(k(c,0))?-1:d(C(c,0))?1:0)}),h(x,"$==",function($){var o=this,c=le;return d(c=Ee("Time")["$==="]($))?o.$to_f()===$.$to_f():c}),h(x,"$asctime",function(){var $=this;return $.$strftime("%a %b %e %H:%M:%S %Y")}),N([["year","getFullYear","getUTCFullYear"],["mon","getMonth","getUTCMonth",1],["wday","getDay","getUTCDay"],["day","getDate","getUTCDate"],["hour","getHours","getUTCHours"],["min","getMinutes","getUTCMinutes"],["sec","getSeconds","getUTCSeconds"]],"each",[],function w($,o,c,p){var m=w.$$s==null?this:w.$$s;return $==null&&($=le),o==null&&(o=le),c==null&&(c=le),p==null&&(p=0),N(m,"define_method",[$],function E(){var T=E.$$s==null?this:E.$$s;return p+(T.timezone!=null?new Date(T.getTime()+T.timezone*36e5)[c]():T[o]())},{$$s:m})},{$$arity:-4,$$s:x}),h(x,"$yday",function(){var $=this,o=le,c=le,p=le;return o=B("Time").$new($.$year()).$to_i(),c=B("Time").$new($.$year(),$.$month(),$.$day()).$to_i(),p=86400,U(O(j(c,o),p).$round(),1)}),h(x,"$isdst",function(){var $=this,o=new Date($.getFullYear(),0,1),c=new Date($.getFullYear(),6,1);return $.getTimezoneOffset()<Math.max(o.getTimezoneOffset(),c.getTimezoneOffset())}),h(x,"$dup",function(){var $=this,o=le;return o=new Date($.getTime()),o.$copy_instance_variables($),o.$initialize_dup($),o}),h(x,"$eql?",function($){var o=this,c=le;return d(c=$["$is_a?"](Ee("Time")))?o["$<=>"]($)["$zero?"]():c}),N([["sunday?",0],["monday?",1],["tuesday?",2],["wednesday?",3],["thursday?",4],["friday?",5],["saturday?",6]],"each",[],function w($,o){var c=w.$$s==null?this:w.$$s;return $==null&&($=le),o==null&&(o=le),N(c,"define_method",[$],function p(){var m=p.$$s==null?this:p.$$s;return m.$wday()===o},{$$s:c})},{$$s:x}),h(x,"$hash",function(){var $=this;return"Time:"+$.getTime()}),h(x,"$inspect",function(){var $=this;return d($["$utc?"]())?$.$strftime("%Y-%m-%d %H:%M:%S UTC"):$.$strftime("%Y-%m-%d %H:%M:%S %z")}),h(x,"$succ",function(){var $=this,o=new Date($.getTime()+1e3);return o.timezone=$.timezone,o}),h(x,"$usec",function(){var $=this;return $.getMilliseconds()*1e3}),h(x,"$zone",function(){var $=this;if($.timezone===0)return"UTC";if($.timezone!=null)return le;var o=$.toString(),c;return o.indexOf("(")==-1?c=o.match(/[A-Z]{3,4}/)[0]:c=o.match(/\((.+)\)(?:\s|$)/)[1],c=="GMT"&&/(GMT\W*\d{4})/.test(o)?RegExp.$1:c}),h(x,"$getgm",function(){var $=this,o=new Date($.getTime());return o.timezone=0,o}),h(x,"$gmtime",function(){var $=this;return $.timezone!==0&&(r($),$.timezone=0),$}),h(x,"$gmt?",function(){var $=this;return $.timezone===0}),h(x,"$gmt_offset",function(){var $=this;return $.timezone!=null?$.timezone*60:-$.getTimezoneOffset()*60}),h(x,"$strftime",function($){var o=this;return $.replace(/%([\-_#^0]*:{0,2})(\d+)?([EO]*)(.)/g,function(c,p,m,E,T){var re="",je,nt,ft,yt=p.indexOf("0")!==-1,zt=p.indexOf("-")===-1,_t=p.indexOf("_")!==-1,vt=p.indexOf("^")!==-1,mt=p.indexOf("#")!==-1,wt=(p.match(":")||[]).length;switch(m=parseInt(m,10),yt&&_t&&(p.indexOf("0")<p.indexOf("_")?yt=!1:_t=!1),T){case"Y":re+=o.$year();break;case"C":yt=!_t,re+=Math.round(o.$year()/100);break;case"y":yt=!_t,re+=o.$year()%100;break;case"m":yt=!_t,re+=o.$mon();break;case"B":re+=$e[o.$mon()-1];break;case"b":case"h":_t=!yt,re+=Fe[o.$mon()-1];break;case"d":yt=!_t,re+=o.$day();break;case"e":_t=!yt,re+=o.$day();break;case"j":yt=!_t,m=isNaN(m)?3:m,re+=o.$yday();break;case"H":yt=!_t,re+=o.$hour();break;case"k":_t=!yt,re+=o.$hour();break;case"I":yt=!_t,re+=o.$hour()%12||12;break;case"l":_t=!yt,re+=o.$hour()%12||12;break;case"P":re+=o.$hour()>=12?"pm":"am";break;case"p":re+=o.$hour()>=12?"PM":"AM";break;case"M":yt=!_t,re+=o.$min();break;case"S":yt=!_t,re+=o.$sec();break;case"L":yt=!_t,m=isNaN(m)?3:m,re+=o.getMilliseconds();break;case"N":m=isNaN(m)?9:m,re+=o.getMilliseconds().toString().$rjust(3,"0"),re=re.$ljust(m,"0");break;case"z":var St=o.timezone==null?o.getTimezoneOffset():-o.timezone*60,Oe=Math.floor(Math.abs(St)/60),ze=Math.abs(St)%60;re+=St<0?"+":"-",re+=Oe<10?"0":"",re+=Oe,wt>0&&(re+=":"),re+=ze<10?"0":"",re+=ze,wt>1&&(re+=":00");break;case"Z":re+=o.$zone();break;case"A":re+=he[o.$wday()];break;case"a":re+=W[o.$wday()];break;case"u":re+=o.$wday()+1;break;case"w":re+=o.$wday();break;case"V":re+=o.$cweek_cyear()["$[]"](0).$to_s().$rjust(2,"0");break;case"G":re+=o.$cweek_cyear()["$[]"](1);break;case"g":re+=o.$cweek_cyear()["$[]"](1)["$[]"](D(-2,-1,!1));break;case"s":re+=o.$to_i();break;case"n":re+=`
453
+ `;break;case"t":re+=" ";break;case"%":re+="%";break;case"c":re+=o.$strftime("%a %b %e %T %Y");break;case"D":case"x":re+=o.$strftime("%m/%d/%y");break;case"F":re+=o.$strftime("%Y-%m-%d");break;case"v":re+=o.$strftime("%e-%^b-%4Y");break;case"r":re+=o.$strftime("%I:%M:%S %p");break;case"R":re+=o.$strftime("%H:%M");break;case"T":case"X":re+=o.$strftime("%H:%M:%S");break;case"J":if(je=o.$to_date().$jd(),je<2405160){re+=o.$strftime("%Y-%m-%d");break}else je<2419614?(nt="M",ft=1867):je<2424875?(nt="T",ft=1911):je<2447535?(nt="S",ft=1925):je<2458605?(nt="H",ft=1988):(nt="R",ft=2018);re+=o.$format("%c%02d",nt,j(o.$year(),ft)),re+=o.$strftime("-%m-%d");break;default:return c}return vt&&(re=re.toUpperCase()),mt&&(re=re.replace(/[A-Z]/,function(De){De.toLowerCase()}).replace(/[a-z]/,function(De){De.toUpperCase()})),zt&&(yt||_t)&&(re=re.$rjust(isNaN(m)?2:m,_t?" ":"0")),re})}),h(x,"$to_a",function(){var $=this;return[$.$sec(),$.$min(),$.$hour(),$.$day(),$.$month(),$.$year(),$.$wday(),$.$yday(),$.$isdst(),$.$zone()]}),h(x,"$to_f",function(){var $=this;return $.getTime()/1e3}),h(x,"$to_i",function(){var $=this;return parseInt($.getTime()/1e3,10)}),h(x,"$cweek_cyear",function(){var $=this,o=le,c=le,p=le,m=le,E=le,T=le,re=le;return o=Ee("Time").$new($.$year(),1,1),c=o.$wday(),p=$.$year(),d(de(c,4))&&G(c,0)?m=j(c,1):(m=j(j(c,7),1),ne(m,-8)&&(m=-1)),E=O(U($.$yday(),m),7).$ceil(),d(de(E,0))?Ee("Time").$new(j($.$year(),1),12,31).$cweek_cyear():(ne(E,53)&&(T=Ee("Time").$new($.$year(),12,31),re=T.$wday(),d(de(re,3))&&G(re,0)&&(E=1,p=U(p,1))),[E,p])}),function(w,$){return me(w,"mktime","local"),me(w,"utc","gm")}(e.get_singleton_class(x)),me(x,"ctime","asctime"),me(x,"dst?","isdst"),me(x,"getutc","getgm"),me(x,"gmtoff","gmt_offset"),me(x,"mday","day"),me(x,"month","mon"),me(x,"to_s","inspect"),me(x,"tv_sec","to_i"),me(x,"tv_usec","usec"),me(x,"utc","gmtime"),me(x,"utc?","gmt?"),me(x,"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,l=e.neqeq,f=e.eqeq,h=e.Opal,d=e.send,k=e.Class,C=e.to_a,N=e.def,U=e.defs,O=e.Kernel,j=e.hash2,D=e.rb_gt,G=e.rb_minus,de=e.eqeqeq,ne=e.rb_lt,me=e.rb_ge,Q=e.rb_plus,be=e.alias,le=e.top,Ee=[],te=e.nil,Ce=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"),le.$require("corelib/enumerable"),function(fe,x,Ae){var B=t(fe,x,"Struct"),he=[B].concat(Ae),W=e.$r(he);B.$include(Ce("Enumerable")),U(B,"$new",function $e(V,w,$){var o=$e.$$p||te,c,p,m,E,T=this,re=te;if($e.$$p=null,c=r(arguments,1),p=n(c),p=i(p),m=c,E=p.$$smap.keyword_init,E==null&&(E=!1),s(V))if(f(V.$class(),Ce("String"))&&l(V["$[]"](0).$upcase(),V["$[]"](0)))m.$unshift(V),V=te;else try{V=h["$const_name!"](V)}catch(je){if(e.rescue(je,[Ce("TypeError"),Ce("NameError")]))try{m.$unshift(V),V=te}finally{e.pop_exception()}else throw je}return d(m,"map",[],function(nt){return nt==null&&(nt=te),h["$coerce_to!"](nt,Ce("String"),"to_str")}),re=d(k,"new",[T],function je(){var nt=je.$$s==null?this:je.$$s;return d(m,"each",[],function ft(yt){var zt=ft.$$s==null?this:ft.$$s;return yt==null&&(yt=te),zt.$define_struct_attribute(yt)},{$$s:nt}),function(ft,yt){return N(ft,"$new",function(_t){var vt,mt,wt=this,St=te;return vt=r(arguments),mt=vt,St=wt.$allocate(),St.$$data={},d(St,"initialize",C(mt)),St},-1),ft.$alias_method("[]","new")}(e.get_singleton_class(nt))},{$$s:T}),s(o)&&d(re,"module_eval",[],o.$to_proc()),re.$$keyword_init=E,s(V)&&Ce("Struct").$const_set(V,re),re},-2),U(B,"$define_struct_attribute",function(V){var w=this;return f(w,Ce("Struct"))&&O.$raise(Ce("ArgumentError"),"you cannot define attributes to the Struct class"),w.$members()["$<<"](V),d(w,"define_method",[V],function $(){var o=$.$$s==null?this:$.$$s;return o.$$data[V]},{$$s:w}),d(w,"define_method",[""+V+"="],function $(o){var c=$.$$s==null?this:$.$$s;return o==null&&(o=te),c.$$data[V]=o},{$$s:w})}),U(B,"$members",function(){var V=this,w=te;return V.members==null&&(V.members=te),f(V,Ce("Struct"))&&O.$raise(Ce("ArgumentError"),"the Struct class has no members"),V.members=s(w=V.members)?w:[]}),U(B,"$inherited",function(V){var w=this,$=te;return w.members==null&&(w.members=te),$=w.members,d(V,"instance_eval",[],function o(){var c=o.$$s==null?this:o.$$s;return c.members=$},{$$s:w})}),N(B,"$initialize",function(V){var w,$,o=this,c=te,p=te,m=te;return w=r(arguments),$=w,s(o.$class().$$keyword_init)?(c=s(p=$.$last())?p:j([],{}),(s(D($.$length(),1))||s($.length===1&&!c.$$is_hash))&&O.$raise(Ce("ArgumentError"),"wrong number of arguments (given "+$.$length()+", expected 0)"),m=G(c.$keys(),o.$class().$members()),s(m["$any?"]())&&O.$raise(Ce("ArgumentError"),"unknown keywords: "+m.$join(", ")),d(o.$class().$members(),"each",[],function E(T){var re,je=E.$$s==null?this:E.$$s;return T==null&&(T=te),re=[T,c["$[]"](T)],d(je,"[]=",re),re[re.length-1]},{$$s:o})):(s(D($.$length(),o.$class().$members().$length()))&&O.$raise(Ce("ArgumentError"),"struct size differs"),d(o.$class().$members(),"each_with_index",[],function E(T,re){var je,nt=E.$$s==null?this:E.$$s;return T==null&&(T=te),re==null&&(re=te),je=[T,$["$[]"](re)],d(nt,"[]=",je),je[je.length-1]},{$$s:o}))},-1),N(B,"$initialize_copy",function(V){var w=this;w.$$data={};var $=Object.keys(V.$$data),o,c,p;for(o=0,c=$.length;o<c;o++)p=$[o],w.$$data[p]=V.$$data[p]}),U(B,"$keyword_init?",function(){var V=this;return V.$$keyword_init}),N(B,"$members",function(){var V=this;return V.$class().$members()}),N(B,"$hash",function(){var V=this;return W("Hash").$new(V.$$data).$hash()}),N(B,"$[]",function(V){var w=this;return de(Ce("Integer"),V)?(s(ne(V,w.$class().$members().$size()["$-@"]()))&&O.$raise(Ce("IndexError"),"offset "+V+" too small for struct(size:"+w.$class().$members().$size()+")"),s(me(V,w.$class().$members().$size()))&&O.$raise(Ce("IndexError"),"offset "+V+" too large for struct(size:"+w.$class().$members().$size()+")"),V=w.$class().$members()["$[]"](V)):de(Ce("String"),V)?w.$$data.hasOwnProperty(V)||O.$raise(Ce("NameError").$new("no member '"+V+"' in struct",V)):O.$raise(Ce("TypeError"),"no implicit conversion of "+V.$class()+" into Integer"),V=h["$coerce_to!"](V,Ce("String"),"to_str"),w.$$data[V]}),N(B,"$[]=",function(V,w){var $=this;return de(Ce("Integer"),V)?(s(ne(V,$.$class().$members().$size()["$-@"]()))&&O.$raise(Ce("IndexError"),"offset "+V+" too small for struct(size:"+$.$class().$members().$size()+")"),s(me(V,$.$class().$members().$size()))&&O.$raise(Ce("IndexError"),"offset "+V+" too large for struct(size:"+$.$class().$members().$size()+")"),V=$.$class().$members()["$[]"](V)):de(Ce("String"),V)?s($.$class().$members()["$include?"](V.$to_sym()))||O.$raise(Ce("NameError").$new("no member '"+V+"' in struct",V)):O.$raise(Ce("TypeError"),"no implicit conversion of "+V.$class()+" into Integer"),V=h["$coerce_to!"](V,Ce("String"),"to_str"),$.$$data[V]=w}),N(B,"$==",function(V){var w=this;if(!s(V["$instance_of?"](w.$class())))return!1;var $={},o={};function c(p,m){var E,T,re;$[p.$__id__()]=!0,o[m.$__id__()]=!0;for(E in p.$$data)if(T=p.$$data[E],re=m.$$data[E],Ce("Struct")["$==="](T)){if((!$.hasOwnProperty(T.$__id__())||!o.hasOwnProperty(re.$__id__()))&&!c(T,re))return!1}else if(!T["$=="](re))return!1;return!0}return c(w,V)}),N(B,"$eql?",function(V){var w=this;if(!s(V["$instance_of?"](w.$class())))return!1;var $={},o={};function c(p,m){var E,T,re;$[p.$__id__()]=!0,o[m.$__id__()]=!0;for(E in p.$$data)if(T=p.$$data[E],re=m.$$data[E],Ce("Struct")["$==="](T)){if((!$.hasOwnProperty(T.$__id__())||!o.hasOwnProperty(re.$__id__()))&&!c(T,re))return!1}else if(!T["$eql?"](re))return!1;return!0}return c(w,V)}),N(B,"$each",function $e(){var V=$e.$$p||te,w=this;return $e.$$p=null,V===te?d(w,"enum_for",["each"],function $(){var o=$.$$s==null?this:$.$$s;return o.$size()},{$$s:w}):(d(w.$class().$members(),"each",[],function $(o){var c=$.$$s==null?this:$.$$s;return o==null&&(o=te),e.yield1(V,c["$[]"](o))},{$$s:w}),w)}),N(B,"$each_pair",function $e(){var V=$e.$$p||te,w=this;return $e.$$p=null,V===te?d(w,"enum_for",["each_pair"],function $(){var o=$.$$s==null?this:$.$$s;return o.$size()},{$$s:w}):(d(w.$class().$members(),"each",[],function $(o){var c=$.$$s==null?this:$.$$s;return o==null&&(o=te),e.yield1(V,[o,c["$[]"](o)])},{$$s:w}),w)}),N(B,"$length",function(){var V=this;return V.$class().$members().$length()}),N(B,"$to_a",function(){var V=this;return d(V.$class().$members(),"map",[],function w($){var o=w.$$s==null?this:w.$$s;return $==null&&($=te),o["$[]"]($)},{$$s:V})});var Fe=[];return N(B,"$inspect",function(){var V=this,w=te,$=te;return function(){try{return w="#<struct ",s(Fe["$include?"](V.$__id__()))?Q(w,":...>"):(Fe["$<<"](V.$__id__()),$=!0,de(Ce("Struct"),V)&&s(V.$class().$name())&&(w=Q(w,""+V.$class()+" ")),w=Q(w,d(V.$each_pair(),"map",[],function(c,p){return c==null&&(c=te),p==null&&(p=te),""+c+"="+W("Opal").$inspect(p)}).$join(", ")),w=Q(w,">"),w)}finally{s($)&&Fe.pop()}}()}),N(B,"$to_h",function $e(){var V=$e.$$p||te,w=this;return $e.$$p=null,V!==te?d(d(w,"map",[],V.$to_proc()),"to_h",C(w.$args())):d(w.$class().$members(),"each_with_object",[j([],{})],function $(o,c){var p,m=$.$$s==null?this:$.$$s;return o==null&&(o=te),c==null&&(c=te),p=[o,m["$[]"](o)],d(c,"[]=",p),p[p.length-1]},{$$s:w})}),N(B,"$values_at",function(V){var w,$,o=this;w=r(arguments),$=w,$=d($,"map",[],function(T){return T==null&&(T=te),T.$$is_range?T.$to_a():T}).$flatten();for(var c=[],p=0,m=$.length;p<m;p++)$[p].$$is_number||O.$raise(Ce("TypeError"),"no implicit conversion of "+$[p].$class()+" into Integer"),c.push(o["$[]"]($[p]));return c},-1),N(B,"$dig",function(V,w){var $,o,c=this,p=te;return $=r(arguments,1),o=$,p=s(V.$$is_string&&c.$$data.hasOwnProperty(V))&&c.$$data[V]||te,p===te||o.length===0?p:(s(p["$respond_to?"]("dig"))||O.$raise(Ce("TypeError"),""+p.$class()+" does not have #dig method"),d(p,"dig",C(o)))},-2),be(B,"size","length"),be(B,"to_s","inspect"),be(B,"values","to_a")}("::",null,Ee)};Opal.modules["corelib/set"]=function(e){var t=e.freeze,r=e.klass,n=e.slice,i=e.defs,s=e.hash2,l=e.truthy,f=e.eqeqeq,h=e.Kernel,d=e.send,k=e.def,C=e.eqeq,N=e.rb_lt,U=e.rb_le,O=e.alias,j=[],D=e.nil,G=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(de,ne,me){var Q=r(de,ne,"Set"),be=[Q].concat(me),le=e.$r(be),Ee=D,te=Q.$$prototype;te.hash=D,Q.$include(G("Enumerable")),i(Q,"$[]",function(x){var Ae,B,he=this;return Ae=n(arguments),B=Ae,he.$new(B)},-1),k(Q,"$initialize",function fe(x){var Ae=fe.$$p||D,B=this;return fe.$$p=null,x==null&&(x=D),B.hash=s([],{}),l(x["$nil?"]())?D:(f(G("Enumerable"),x)||h.$raise(G("ArgumentError"),"value must be enumerable"),l(Ae)?d(x,"each",[],function he(W){var Fe=he.$$s==null?this:he.$$s;return W==null&&(W=D),Fe.$add(e.yield1(Ae,W))},{$$s:B}):B.$merge(x))},-1),k(Q,"$dup",function(){var x=this,Ae=D;return Ae=x.$class().$new(),Ae.$merge(x)}),k(Q,"$-",function(x){var Ae=this;return l(x["$respond_to?"]("each"))||h.$raise(G("ArgumentError"),"value must be enumerable"),Ae.$dup().$subtract(x)}),k(Q,"$inspect",function(){var x=this;return"#<Set: {"+x.$to_a().$join(",")+"}>"}),k(Q,"$==",function(x){var Ae=this;return l(Ae["$equal?"](x))?!0:l(x["$instance_of?"](Ae.$class()))?Ae.hash["$=="](x.$instance_variable_get("@hash")):l(x["$is_a?"](G("Set")))&&C(Ae.$size(),x.$size())?d(x,"all?",[],function B(he){var W=B.$$s==null?this:B.$$s;return W.hash==null&&(W.hash=D),he==null&&(he=D),W.hash["$include?"](he)},{$$s:Ae}):!1}),k(Q,"$add",function(x){var Ae=this;return Ae.hash["$[]="](x,!0),Ae}),k(Q,"$classify",function fe(){var x=fe.$$p||D,Ae=this,B=D;return fe.$$p=null,x===D?Ae.$enum_for("classify"):(B=d(G("Hash"),"new",[],function he(W,Fe){var $e,V=he.$$s==null?this:he.$$s;return W==null&&(W=D),Fe==null&&(Fe=D),$e=[Fe,V.$class().$new()],d(W,"[]=",$e),$e[$e.length-1]},{$$s:Ae}),d(Ae,"each",[],function(W){return W==null&&(W=D),B["$[]"](e.yield1(x,W)).$add(W)}),B)}),k(Q,"$collect!",function fe(){var x=fe.$$p||D,Ae=this,B=D;return fe.$$p=null,x===D?Ae.$enum_for("collect!"):(B=Ae.$class().$new(),d(Ae,"each",[],function(W){return W==null&&(W=D),B["$<<"](e.yield1(x,W))}),Ae.$replace(B))}),k(Q,"$compare_by_identity",function(){var x=this;return l(x.hash["$respond_to?"]("compare_by_identity"))?(x.hash.$compare_by_identity(),x):x.$raise(le("NotImplementedError"),""+x.$class().$name()+"#compare_by_identity is not implemented")}),k(Q,"$compare_by_identity?",function(){var x=this,Ae=D;return l(Ae=x.hash["$respond_to?"]("compare_by_identity?"))?x.hash["$compare_by_identity?"]():Ae}),k(Q,"$delete",function(x){var Ae=this;return Ae.hash.$delete(x),Ae}),k(Q,"$delete?",function(x){var Ae=this;return l(Ae["$include?"](x))?(Ae.$delete(x),Ae):D}),k(Q,"$delete_if",function fe(){var x=fe.$$p||D,Ae=this;return fe.$$p=null,x===D?Ae.$enum_for("delete_if"):(d(d(Ae,"select",[],function(he){return he==null&&(he=D),e.yield1(x,he)}),"each",[],function B(he){var W=B.$$s==null?this:B.$$s;return W.hash==null&&(W.hash=D),he==null&&(he=D),W.hash.$delete(he)},{$$s:Ae}),Ae)}),k(Q,"$freeze",function(){var x=this;return l(x["$frozen?"]())?x:(x.hash.$freeze(),t(x))}),k(Q,"$keep_if",function fe(){var x=fe.$$p||D,Ae=this;return fe.$$p=null,x===D?Ae.$enum_for("keep_if"):(d(d(Ae,"reject",[],function(he){return he==null&&(he=D),e.yield1(x,he)}),"each",[],function B(he){var W=B.$$s==null?this:B.$$s;return W.hash==null&&(W.hash=D),he==null&&(he=D),W.hash.$delete(he)},{$$s:Ae}),Ae)}),k(Q,"$reject!",function fe(){var x=fe.$$p||D,Ae=this,B=D;return fe.$$p=null,x===D?Ae.$enum_for("reject!"):(B=Ae.$size(),d(Ae,"delete_if",[],x.$to_proc()),C(Ae.$size(),B)?D:Ae)}),k(Q,"$select!",function fe(){var x=fe.$$p||D,Ae=this,B=D;return fe.$$p=null,x===D?Ae.$enum_for("select!"):(B=Ae.$size(),d(Ae,"keep_if",[],x.$to_proc()),C(Ae.$size(),B)?D:Ae)}),k(Q,"$add?",function(x){var Ae=this;return l(Ae["$include?"](x))?D:Ae.$add(x)}),k(Q,"$each",function fe(){var x=fe.$$p||D,Ae=this;return fe.$$p=null,x===D?Ae.$enum_for("each"):(d(Ae.hash,"each_key",[],x.$to_proc()),Ae)}),k(Q,"$empty?",function(){var x=this;return x.hash["$empty?"]()}),k(Q,"$eql?",function(x){var Ae=this;return Ae.hash["$eql?"](d(x,"instance_eval",[],function B(){var he=B.$$s==null?this:B.$$s;return he.hash==null&&(he.hash=D),he.hash},{$$s:Ae}))}),k(Q,"$clear",function(){var x=this;return x.hash.$clear(),x}),k(Q,"$include?",function(x){var Ae=this;return Ae.hash["$include?"](x)}),k(Q,"$merge",function(x){var Ae=this;return d(x,"each",[],function B(he){var W=B.$$s==null?this:B.$$s;return he==null&&(he=D),W.$add(he)},{$$s:Ae}),Ae}),k(Q,"$replace",function(x){var Ae=this;return Ae.$clear(),Ae.$merge(x),Ae}),k(Q,"$size",function(){var x=this;return x.hash.$size()}),k(Q,"$subtract",function(x){var Ae=this;return d(x,"each",[],function B(he){var W=B.$$s==null?this:B.$$s;return he==null&&(he=D),W.$delete(he)},{$$s:Ae}),Ae}),k(Q,"$|",function(x){var Ae=this;return l(x["$respond_to?"]("each"))||h.$raise(G("ArgumentError"),"value must be enumerable"),Ae.$dup().$merge(x)});function Ce(fe){l(Ee=fe["$is_a?"](G("Set")))||h.$raise(G("ArgumentError"),"value must be a set")}return k(Q,"$superset?",function(x){var Ae=this;return Ce(x),l(N(Ae.$size(),x.$size()))?!1:d(x,"all?",[],function B(he){var W=B.$$s==null?this:B.$$s;return he==null&&(he=D),W["$include?"](he)},{$$s:Ae})}),k(Q,"$proper_superset?",function(x){var Ae=this;return Ce(x),l(U(Ae.$size(),x.$size()))?!1:d(x,"all?",[],function B(he){var W=B.$$s==null?this:B.$$s;return he==null&&(he=D),W["$include?"](he)},{$$s:Ae})}),k(Q,"$subset?",function(x){var Ae=this;return Ce(x),l(N(x.$size(),Ae.$size()))?!1:d(Ae,"all?",[],function(he){return he==null&&(he=D),x["$include?"](he)})}),k(Q,"$proper_subset?",function(x){var Ae=this;return Ce(x),l(U(x.$size(),Ae.$size()))?!1:d(Ae,"all?",[],function(he){return he==null&&(he=D),x["$include?"](he)})}),k(Q,"$intersect?",function(x){var Ae=this;return Ce(x),l(N(Ae.$size(),x.$size()))?d(Ae,"any?",[],function(he){return he==null&&(he=D),x["$include?"](he)}):d(x,"any?",[],function B(he){var W=B.$$s==null?this:B.$$s;return he==null&&(he=D),W["$include?"](he)},{$$s:Ae})}),k(Q,"$disjoint?",function(x){var Ae=this;return Ae["$intersect?"](x)["$!"]()}),k(Q,"$to_a",function(){var x=this;return x.hash.$keys()}),O(Q,"+","|"),O(Q,"<","proper_subset?"),O(Q,"<<","add"),O(Q,"<=","subset?"),O(Q,">","proper_superset?"),O(Q,">=","superset?"),O(Q,"difference","-"),O(Q,"filter!","select!"),O(Q,"length","size"),O(Q,"map!","collect!"),O(Q,"member?","include?"),O(Q,"union","|")}("::",null,j)};Opal.modules["corelib/dir"]=function(e){var t=e.klass,r=e.def,n=e.truthy,i=e.alias,s=e.nil,l=e.$$$;return e.add_stubs("[],pwd"),function(f,h,d){var k=t(f,h,"Dir");return function(C,N){return r(C,"$chdir",function U(O){var j=U.$$p||s,D=s;return U.$$p=null,function(){try{return D=e.current_dir,e.current_dir=O,e.yieldX(j,[])}finally{e.current_dir=D}}()}),r(C,"$pwd",function(){return e.current_dir||"."}),r(C,"$home",function(){var O=s;return n(O=l("ENV")["$[]"]("HOME"))?O:"."}),i(C,"getwd","pwd")}(e.get_singleton_class(k))}("::",null)};Opal.modules["corelib/file"]=function(e){var t=e.truthy,r=e.klass,n=e.const_set,i=e.Opal,s=e.regexp,l=e.rb_plus,f=e.def,h=e.Kernel,d=e.eqeq,k=e.rb_lt,C=e.rb_minus,N=e.range,U=e.send,O=e.slice,j=e.alias,D=[],G=e.nil,de=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(ne,me,Q){var be=r(ne,me,"File"),le=[be].concat(Q),Ee=G;return n(le[0],"Separator",n(le[0],"SEPARATOR","/")),n(le[0],"ALT_SEPARATOR",G),n(le[0],"PATH_SEPARATOR",":"),n(le[0],"FNM_SYSCASE",0),Ee=/^[a-zA-Z]:(?:\\|\/)/,function(te,Ce){var fe=[te].concat(Ce),x=e.$r(fe);f(te,"$absolute_path",function(W,Fe){var $e=G,V=G,w=G,$=G,o=G,c=G,p=G,m=G,E=G,T=G;Fe==null&&(Fe=G),$e=x("SEPARATOR"),V=B(),w=[],W=t(W["$respond_to?"]("to_path"))?W.$to_path():W,W=i["$coerce_to!"](W,de("String"),"to_str"),Fe=t($=Fe)?$:de("Dir").$pwd(),o=W.substr(0,$e.length)===$e||Ee.test(W),c=Fe.substr(0,$e.length)===$e||Ee.test(Fe),t(o)?(p=W.$split(s(["[",V,"]"])),m=Ee.test(W)?"":W.$sub(s(["^([",V,"]+).*$"]),"\\1"),E=!0):(p=l(Fe.$split(s(["[",V,"]"])),W.$split(s(["[",V,"]"]))),m=Ee.test(Fe)?"":Fe.$sub(s(["^([",V,"]+).*$"]),"\\1"),E=c);for(var re,je=0,nt=p.length;je<nt;je++)re=p[je],!(re===G||re===""&&(w.length===0||E)||re==="."&&(w.length===0||E))&&(re===".."?w.pop():w.push(re));return!E&&p[0]!=="."&&w.$unshift("."),T=w.$join($e),t(E)&&(T=l(m,T)),T},-2),f(te,"$expand_path",function(W,Fe){var $e=this,V=G,w=G,$=G,o=G,c=G;return Fe==null&&(Fe=G),V=x("SEPARATOR"),w=B(),t(W[0]==="~"||Fe&&Fe[0]==="~")&&($=x("Dir").$home(),t($)||h.$raise(de("ArgumentError"),"couldn't find HOME environment -- expanding `~'"),o=Ee.test($)?"":$.$sub(s(["^([",w,"]+).*$"]),"\\1"),t($["$start_with?"](o))||h.$raise(de("ArgumentError"),"non-absolute home"),$=l($,V),c=s(["^\\~(?:",V,"|$)"]),W=W.$sub(c,$),t(Fe)&&(Fe=Fe.$sub(c,$))),$e.$absolute_path(W,Fe)},-2);function Ae(he){return t(he["$respond_to?"]("to_path"))&&(he=he.$to_path()),he=i["$coerce_to!"](he,de("String"),"to_str"),he}function B(){return x("ALT_SEPARATOR")===G?e.escape_regexp(x("SEPARATOR")):e.escape_regexp(l(x("SEPARATOR"),x("ALT_SEPARATOR")))}return f(te,"$dirname",function(W,Fe){var $e=this,V=G;if(Fe==null&&(Fe=1),d(Fe,0))return W;t(k(Fe,0))&&h.$raise(de("ArgumentError"),"level can't be negative"),V=B(),W=Ae(W);var w=W.match(new RegExp("^["+V+"]")),$;return W=W.replace(new RegExp("["+V+"]+$"),""),W=W.replace(new RegExp("[^"+V+"]+$"),""),W=W.replace(new RegExp("["+V+"]+$"),""),W===""?$=w?"/":".":$=W,Fe==1?$:$e.$dirname($,C(Fe,1))},-2),f(te,"$basename",function(W,Fe){var $e=G;return Fe==null&&(Fe=G),$e=B(),W=Ae(W),W.length==0||(Fe!==G?Fe=i["$coerce_to!"](Fe,de("String"),"to_str"):Fe=null,W=W.replace(new RegExp("(.)["+$e+"]*$"),"$1"),W=W.replace(new RegExp("^(?:.*["+$e+"])?([^"+$e+"]+)$"),"$1"),Fe===".*"?W=W.replace(/\.[^\.]+$/,""):Fe!==null&&(Fe=e.escape_regexp(Fe),W=W.replace(new RegExp(""+Fe+"$"),""))),W},-2),f(te,"$extname",function(W){var Fe=this,$e=G,V=G;return W=Ae(W),$e=Fe.$basename(W),t($e["$empty?"]())||(V=$e["$[]"](N(1,-1,!1)).$rindex("."),t(V["$nil?"]())||d(l(V,1),C($e.$length(),1)))?"":$e["$[]"](e.Range.$new(l(V,1),-1,!1))}),f(te,"$exist?",function(W){return e.modules[W]!=null}),f(te,"$directory?",function(W){var Fe=G;Fe=[];for(var $e in e.modules)Fe.push($e);return W=W.$gsub(s(["(^.",x("SEPARATOR"),"+|",x("SEPARATOR"),"+$)"])),U(Fe,"find",[],function(w){return w==null&&(w=G),w["$=~"](s(["^",W]))})}),f(te,"$join",function(W){var Fe,$e,V=G;return Fe=O(arguments),$e=Fe,t($e["$empty?"]())?"":(V="",$e=U($e.$flatten().$each_with_index(),"map",[],function($,o){return $==null&&($=G),o==null&&(o=G),d(o,0)&&t($["$empty?"]())||d($e.$length(),l(o,1))&&t($["$empty?"]())?x("SEPARATOR"):$}),$e=U($e,"reject",[],"empty?".$to_proc()),U($e,"each_with_index",[],function($,o){var c=G;return $==null&&($=G),o==null&&(o=G),c=$e["$[]"](l(o,1)),t(c["$nil?"]())?V=""+V+$:(t($["$end_with?"](x("SEPARATOR")))&&t(c["$start_with?"](x("SEPARATOR")))&&($=$.$sub(s([x("SEPARATOR"),"+$"]),"")),V=t($["$end_with?"](x("SEPARATOR")))||t(c["$start_with?"](x("SEPARATOR")))?""+V+$:""+V+$+x("SEPARATOR"))}),V)},-1),f(te,"$split",function(W){return W.$split(x("SEPARATOR"))}),j(te,"realpath","expand_path"),j(te,"exists?","exist?")}(e.get_singleton_class(be),le)}("::",de("IO"),D)};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(l,f){var h=t(l,f,"Signal");return n(h,"$trap",function(k){return r(arguments),s},-1)}("::",null),function(l,f){var h=t(l,f,"GC");return n(h,"$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,l=e.nil,f=e.$$$;return e.add_stubs("const_set,size,<<,__register_clock__,to_f,now,new,[],raise"),function(h){var d=t(h,"Process"),k=l;if(d.__clocks__=[],r(d,"$__register_clock__",function(U,O){var j=this;return j.__clocks__==null&&(j.__clocks__=l),j.$const_set(U,j.__clocks__.$size()),j.__clocks__["$<<"](O)}),d.$__register_clock__("CLOCK_REALTIME",function(){return Date.now()}),k=!1,e.global.performance)k=function(){return performance.now()};else if(e.global.process&&process.hrtime){var C=process.hrtime();k=function(){var N=process.hrtime(C),U=N[1]/1e3|0;return N[0]*1e3+U/1e3}}return n(k)&&d.$__register_clock__("CLOCK_MONOTONIC",k),r(d,"$pid",i(0)),r(d,"$times",function(){var U=l;return U=f("Time").$now().$to_f(),f(f("Benchmark"),"Tms").$new(U,U,U,U,U)}),r(d,"$clock_gettime",function(U,O){var j=this,D=l;j.__clocks__==null&&(j.__clocks__=l),O==null&&(O="float_second"),n(D=j.__clocks__["$[]"](U))||s.$raise(f(f("Errno"),"EINVAL"),"clock_gettime("+U+") "+j.__clocks__["$[]"](U));var G=D();switch(O){case"float_second":return G/1e3;case"float_millisecond":return G/1;case"float_microsecond":return G*1e3;case"second":return G/1e3|0;case"millisecond":return G/1|0;case"microsecond":return G*1e3|0;case"nanosecond":return G*1e6|0;default:s.$raise(f("ArgumentError"),"unexpected unit: "+O)}},-2)}("::")};Opal.modules["corelib/random/formatter"]=function(e){var t=e.klass,r=e.module,n=e.def,i=e.range,s=e.send,l=e.rb_divide,f=e.Kernel,h=e.Opal,d=[],k=e.nil,C=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(N,U,O){var j=t(N,U,"Random"),D=[j].concat(O);return function(G,de){var ne=r(G,"Formatter"),me=[ne].concat(de),Q=e.$r(me);return n(ne,"$hex",function(le){var Ee=this;le==null&&(le=k),le=C("Random").$_verify_count(le);for(var te=Ee.$bytes(le),Ce="",fe=0;fe<le;fe++)Ce+=te.charCodeAt(fe).toString(16).padStart(2,"0");return Ce.$encode("US-ASCII")},-1),n(ne,"$random_bytes",function(le){var Ee=this;return le==null&&(le=k),Ee.$bytes(le)},-1),n(ne,"$base64",function(le){var Ee=this;return le==null&&(le=k),C("Base64").$strict_encode64(Ee.$random_bytes(le)).$encode("US-ASCII")},-1),n(ne,"$urlsafe_base64",function(le,Ee){var te=this;return le==null&&(le=k),Ee==null&&(Ee=!1),C("Base64").$urlsafe_encode64(te.$random_bytes(le),Ee).$encode("US-ASCII")},-1),n(ne,"$uuid",function(){var le=this,Ee=k;return Ee=le.$hex(16).$split(""),Ee["$[]="](12,"4"),Ee["$[]="](16,(parseInt(Ee["$[]"](16),16)&3|8).toString(16)),Ee=[Ee["$[]"](i(0,8,!0)),Ee["$[]"](i(8,12,!0)),Ee["$[]"](i(12,16,!0)),Ee["$[]"](i(16,20,!0)),Ee["$[]"](i(20,32,!0))],Ee=s(Ee,"map",[],"join".$to_proc()),Ee.$join("-")}),n(ne,"$random_float",function(){var le=this,Ee=k,te=k;return Ee=le.$bytes(4),te=0,s(4,"times",[],function(fe){return fe==null&&(fe=k),te=te["$<<"](8),te=te["$|"](Ee["$[]"](fe).$ord())}),l(te.$abs(),2147483647)}),n(ne,"$random_number",function(le){var Ee=this;function te(){return Ee.$random_float()}function Ce(x){return Math.floor(te()*x)}function fe(){var x=le.begin,Ae=le.end;if(x===k||Ae===k)return k;var B=Ae-x;return B<0?k:B===0?x:(Ae%1===0&&x%1===0&&!le.excl&&B++,Ce(B)+x)}return le==null?te():le.$$is_range?fe():le.$$is_number?(le<=0&&f.$raise(C("ArgumentError"),"invalid argument - "+le),le%1===0?Ce(le):te()*le):(le=h["$coerce_to!"](le,C("Integer"),"to_int"),le<=0&&f.$raise(C("ArgumentError"),"invalid argument - "+le),Ce(le))},-1),n(ne,"$alphanumeric",function(le){var Ee=this,te=k;return le==null&&(le=k),le=Q("Random").$_verify_count(le),te=s([i("0","9",!1),i("a","z",!1),i("A","Z",!1)],"map",[],"to_a".$to_proc()).$flatten(),s(C("Array"),"new",[le],function Ce(fe){var x=Ce.$$s==null?this:Ce.$$s;return te["$[]"](x.$random_number(te.$length()))},{$$s:Ee}).$join()},-1)}(j,D),j.$include(C(C("Random"),"Formatter")),j.$extend(C(C("Random"),"Formatter"))}("::",null,d)};Opal.modules["corelib/random/mersenne_twister"]=function(e){var t=e.klass,r=e.const_set,n=e.send,i=e.nil,s=e.$$$,l=i;return e.add_stubs("generator="),l=function(){var f=624,h=397,d=2567483615,k=2147483648,C=2147483647,N=function(me,Q){return me&k|Q&C},U=function(me,Q){return N(me,Q)>>>1^(Q&1?d:0)};function O(me){var Q={left:0,next:f,state:new Array(f)};return j(Q,me),Q}function j(me,Q){var be;for(me.state[0]=Q>>>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 D(me){var Q=0,be=me.state,le;for(me.left=f,me.next=0,le=f-h+1;--le;Q++)be[Q]=be[Q+h]^U(be[Q+0],be[Q+1]);for(le=h;--le;Q++)be[Q]=be[Q+(h-f)]^U(be[Q+0],be[Q+1]);be[Q]=be[Q+(h-f)]^U(be[Q+0],be[0])}function G(me){var Q;return--me.left<=0&&D(me),Q=me.state[me.next++],Q^=Q>>>11,Q^=Q<<7&2636928640,Q^=Q<<15&4022730752,Q^=Q>>>18,Q>>>0}function de(me,Q){return me>>>=5,Q>>>=6,(me*67108864+Q)*(1/9007199254740992)}function ne(me){var Q=G(me),be=G(me);return de(Q,be)}return{genrand_real:ne,init:O}}(),function(f,h){var d=t(f,h,"Random"),k,C=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;return r(d,"MERSENNE_TWISTER_GENERATOR",{new_seed:function(){return Math.round(Math.random()*C)},reseed:function(N){return l.init(N)},rand:function(N){return l.genrand_real(N)}}),k=[s(d,"MERSENNE_TWISTER_GENERATOR")],n(d,"generator=",k),k[k.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,l=e.def,f=e.eqeqeq,h=e.send,d=e.top,k=e.nil,C=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"),d.$require("corelib/random/formatter"),function(N,U){var O=r(N,U,"Random");return O.$attr_reader("seed","state"),i(O,"$_verify_count",function(D){return t(D)||(D=16),typeof D!="number"&&(D=D.$to_int()),D<0&&n.$raise(C("ArgumentError"),"negative string size (or size too big)"),D=Math.floor(D),D}),l(O,"$initialize",function(D){var G=this;return D==null&&(D=C("Random").$new_seed()),D=s["$coerce_to!"](D,C("Integer"),"to_int"),G.state=D,G.$reseed(D)},-1),l(O,"$reseed",function(D){var G=this;return G.seed=D,G.$rng=e.$$rand.reseed(D)}),i(O,"$new_seed",function(){return e.$$rand.new_seed()}),i(O,"$rand",function(D){var G=this;return C(G,"DEFAULT").$rand(D)},-1),i(O,"$srand",function(D){var G=this,de=k;return D==null&&(D=C("Random").$new_seed()),D=s["$coerce_to!"](D,C("Integer"),"to_int"),de=C(G,"DEFAULT").$seed(),C(G,"DEFAULT").$reseed(D),de},-1),i(O,"$urandom",function(D){return C("SecureRandom").$bytes(D)}),l(O,"$==",function(D){var G=this,de=k;return f(C("Random"),D)?t(de=G.$seed()["$=="](D.$seed()))?G.$state()["$=="](D.$state()):de:!1}),l(O,"$bytes",function(D){var G=this;return D=C("Random").$_verify_count(D),h(C("Array"),"new",[D],function de(){var ne=de.$$s==null?this:de.$$s;return ne.$rand(255).$chr()},{$$s:G}).$join().$encode("ASCII-8BIT")}),i(O,"$bytes",function(D){var G=this;return C(G,"DEFAULT").$bytes(D)}),l(O,"$rand",function(D){var G=this;return G.$random_number(D)},-1),l(O,"$random_float",function(){var D=this;return D.state++,e.$$rand.rand(D.$rng)}),i(O,"$random_float",function(){var D=this;return C(D,"DEFAULT").$random_float()}),i(O,"$generator=",function(D){var G=this;return e.$$rand=D,t(G["$const_defined?"]("DEFAULT"))?C(G,"DEFAULT").$reseed():G.$const_set("DEFAULT",G.$new(G.$new_seed()))})}("::",null),d.$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,l=e.def,f=e.return_val,h=e.alias,d=e.defs,k=e.top,C=[],N=e.nil,U=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 O={};function j(G){switch(e.config.unsupported_features_severity){case"error":t.$raise(U("NotImplementedError"),G);break;case"warning":D(G);break}}function D(G){O[G]||(O[G]=!0,k.$warn(G))}return function(G,de){var ne=r(G,de,"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 Q(be){var le=Q.$$s==null?this:Q.$$s;return be==null&&(be=N),n(le,"define_method",[be],function(te){return i(arguments),t.$raise(U("NotImplementedError"),me["$%"](be))},-1)},{$$s:ne})}("::",null),function(G){var de=s(G,"Kernel"),ne="Object tainting is not supported by Opal";return l(de,"$taint",function(){var Q=this;return j(ne),Q}),l(de,"$untaint",function(){var Q=this;return j(ne),Q}),l(de,"$tainted?",function(){return j(ne),!1})}("::"),function(G,de){var ne=r(G,de,"Module");return l(ne,"$public",function(Q){var be,le,Ee=this;return be=i(arguments),le=be,le.length===0?(Ee.$$module_function=!1,N):le.length===1?le[0]:le},-1),l(ne,"$private_class_method",function(Q){var be,le;return be=i(arguments),le=be,le.length===1?le[0]:le},-1),l(ne,"$private_method_defined?",f(!1)),l(ne,"$private_constant",function(Q){return i(arguments),N},-1),h(ne,"nesting","public"),h(ne,"private","public"),h(ne,"protected","public"),h(ne,"protected_method_defined?","private_method_defined?"),h(ne,"public_class_method","private_class_method"),h(ne,"public_instance_method","instance_method"),h(ne,"public_instance_methods","instance_methods"),h(ne,"public_method_defined?","method_defined?")}("::",null),function(G){var de=s(G,"Kernel");return l(de,"$private_methods",function(me){return i(arguments),[]},-1),h(de,"protected_methods","private_methods"),h(de,"private_instance_methods","private_methods"),h(de,"protected_instance_methods","private_methods")}("::"),function(G,de){var ne=s(G,"Kernel"),me=[ne].concat(de),Q=e.$r(me);return l(ne,"$eval",function(le){return i(arguments),t.$raise(U("NotImplementedError"),"To use Kernel#eval, you must first require 'opal-parser'. "+("See https://github.com/opal/opal/blob/"+Q("RUBY_ENGINE_VERSION")+"/docs/opal_parser.md for details."))},-1)}("::",C),d(k,"$public",function(de){var ne,me;return ne=i(arguments),me=ne,me.length===1?me[0]:me},-1),d(k,"$private",function(de){var ne,me;return ne=i(arguments),me=ne,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 o8(e){Opal.modules["asciidoctor/js/opal_ext/browser/file"]=function(a){var oe=a.klass,se=a.defs,K=[];return a.nil,a.add_stubs("new"),function(ye,y,X){var Ue=oe(ye,y,"File"),Z=[Ue].concat(X),qe=a.$r(Z);return se(Ue,"$read",function(et){var Ne="",Ke=-1;try{var Le=new XMLHttpRequest;Le.open("GET",et,!1),Le.addEventListener("load",function(){Ke=this.status,(Ke===0||Ke===200)&&(Ne=this.responseText)}),Le.overrideMimeType("text/plain"),Le.send()}catch(Pe){throw qe("IOError").$new("Error reading file or directory: "+et+"; reason: "+Pe.message)}if(Ke===404||Ke===0&&!Ne)throw qe("IOError").$new("No such file or directory: "+et);return Ne})}(K[0],null,K)},Opal.modules["asciidoctor/js/opal_ext/browser"]=function(a){var oe=a.const_set,se=a.top,K=[];a.nil,a.add_stubs("require");var ye,y,X,Ue;return Ue=Ue||"xmlhttprequest",ye=ye||"browser",y=y||"",X=X||"",oe(K[0],"JAVASCRIPT_IO_MODULE",Ue),oe(K[0],"JAVASCRIPT_PLATFORM",ye),oe(K[0],"JAVASCRIPT_ENGINE",y),oe(K[0],"JAVASCRIPT_FRAMEWORK",X),se.$require("asciidoctor/js/opal_ext/browser/file")},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/abstract_node"]=function(a){var oe=a.module,se=a.klass,K=a.hash2,ye=a.truthy,y=a.def,X=[],Ue=a.nil,Z=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(qe,R){var et=oe(qe,"Asciidoctor"),Ne=[et].concat(R);return function(Ke,Le,Pe){var ht=se(Ke,Le,"AbstractNode"),Ve=[ht].concat(Pe),st=a.$r(Ve),Ye=ht.$$prototype;return Ye.document=Ue,y(ht,"$read_contents",function(dt,I){var tt=this,A=Ue,rt=Ue,lt=Ue;if(I==null&&(I=K([],{})),A=tt.document,ye(st("Helpers")["$uriish?"](dt))||ye(rt=I["$[]"]("start"))&&ye(st("Helpers")["$uriish?"](rt))&&ye(dt=A.$path_resolver().$web_path(dt,rt)))if(ye(A.$path_resolver()["$descends_from?"](dt,A.$base_dir()))||ye(dt["$start_with?"]("chrome://"))||ye(A["$attr?"]("allow-uri-read")))try{return ye(I["$[]"]("normalize"))?st("Helpers").$prepare_source_string(Z("File").$read(dt)).$join(st("LF")):Z("File").$read(dt)}catch(J){if(a.rescue(J,[st("StandardError")]))try{return ye(I.$fetch("warn_on_failure",!0))&&tt.$logger().$warn("could not retrieve contents of "+(ye(lt=I["$[]"]("label"))?lt:"asset")+" at URI: "+dt),Ue}finally{a.pop_exception()}else throw J}else return ye(I.$fetch("warn_on_failure",!0))&&tt.$logger().$warn("cannot retrieve contents of "+(ye(lt=I["$[]"]("label"))?lt:"asset")+" at URI: "+dt+" (allow-uri-read attribute not enabled)"),Ue;else return dt=tt.$normalize_system_path(dt,I["$[]"]("start"),Ue,K(["target_name"],{target_name:ye(lt=I["$[]"]("label"))?lt:"asset"})),tt.$read_asset(dt,K(["normalize","warn_on_failure","label"],{normalize:I["$[]"]("normalize"),warn_on_failure:I.$fetch("warn_on_failure",!0),label:I["$[]"]("label")}))},-2),y(ht,"$generate_data_uri_from_uri",function(dt,I){var tt=this,A="",rt="",lt=-1;try{var J=new XMLHttpRequest;J.open("GET",dt,!1),J.overrideMimeType("text/plain; charset=x-user-defined"),J.addEventListener("load",function(){if(lt=this.status,lt===0||lt===200){for(var L="",He=this.responseText,ke=0,Ie=He.length;ke<Ie;++ke){var Re=He.charCodeAt(ke),ce=Re&255;L+=String.fromCharCode(ce)}rt=btoa(L),A=this.getResponseHeader("content-type")}}),J.send(null),A||(dt.endsWith(".jpeg")||dt.endsWith(".jpg")||dt.endsWith(".jpe")?A="image/jpg":dt.endsWith(".png")?A="image/png":dt.endsWith(".svg")?A="image/svg+xml":dt.endsWith(".bmp")?A="image/bmp":(dt.endsWith(".tif")||dt.endsWith(".tiff"))&&(A="image/tiff"))}catch{lt=0}return lt===404||lt===0&&(!rt||!A)?(tt.$logger().$warn("could not retrieve image data from URI: "+dt),dt):"data:"+A+";base64,"+rt},-2)}(Ne[0],null,Ne)}(X[0],X)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/open_uri"]=function(a){var oe=a.module,se=a.slice,K=a.send,ye=a.to_a,y=a.defs,X=[],Ue=a.nil;return a.add_stubs("new,path"),function(Z,qe){var R=oe(Z,"OpenURI"),et=[R].concat(qe),Ne=a.$r(et);return y(Ne("OpenURI"),"$open_uri",function Ke(Le,Pe){var ht,Ve,st=Ke.$$p||Ue,Ye=this,Je=Ue;return Ke.$$p=null,ht=se(arguments,1),Ve=ht,Je=K(Ne("File"),"new",[Ye.$path()].concat(ye(Ve))),st!==Ue?a.yield1(st,Je):Je},-2)}(X[0],X)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/path_resolver"]=function(a){var oe=a.module,se=a.klass,K=a.truthy,ye=a.def,y=[],X=a.nil;return a.add_stubs("absolute_path?,start_with?"),function(Ue,Z){var qe=oe(Ue,"Asciidoctor"),R=[qe].concat(Z);return function(et,Ne){var Ke=se(et,Ne,"PathResolver");return ye(Ke,"$root?",function(Pe){var ht=this,Ve=X;return K(Ve=ht["$absolute_path?"](Pe))?Ve:Pe["$start_with?"]("file://","http://","https://","chrome://")})}(R[0],null)}(y[0],y)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/reader"]=function(a){var oe=a.module,se=a.klass,K=a.truthy,ye=a.eqeq,y=a.not,X=a.def,Ue=[],Z=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(qe,R){var et=oe(qe,"Asciidoctor"),Ne=[et].concat(R),Ke=a.$r(Ne);return function(Le,Pe,ht){var Ve=se(Le,Pe,"PreprocessorReader"),st=[Ve].concat(ht),Ye=a.$r(st),Je=Ve.$$prototype;return Je.path_resolver=Je.document=Je.include_stack=Je.dir=Z,X(Ve,"$resolve_include_path",function(I,tt,A){var rt,lt=this,J=Z,L=Z,He=Z,ke=Z,Ie=Z,Re=Z,ce=Z,xe=Z;if(J=(lt.path_resolver=K(L=lt.path_resolver)?L:Ye("PathResolver").$new("\\")).$posixify(I),rt=["file",lt.document.$base_dir()],rt[0],He=rt[1],K(J["$start_with?"]("file://")))ke=Ie=J;else if(K(Ye("Helpers")["$uriish?"](J))){if(!(K(lt.path_resolver["$descends_from?"](J,He))||K(lt.document.$attributes()["$key?"]("allow-uri-read"))))return lt.$replace_next_line("link:"+I+"["+tt+"]");ke=Ie=J}else if(K(lt.path_resolver["$absolute_path?"](J)))ke=Ie="file://"+(K(J["$start_with?"]("/"))?"":"/")+J;else if(ye(Re=K(ce=lt.include_stack["$empty?"]())?He:lt.dir,"."))ke=Ie=J;else if(K(Re["$start_with?"]("file://"))||y(Ye("Helpers")["$uriish?"](Re)))ke=""+Re+"/"+J,K(ce)?Ie=J:ye(He,".")||y(xe=lt.path_resolver["$descends_from?"](ke,He))?Ie=ke:Ie=ke.$slice(xe,ke.$length());else if(K(ce))ke=""+Re+"/"+(Ie=J);else if(K(xe=lt.path_resolver["$descends_from?"](Re,He))||K(lt.document.$attributes()["$key?"]("allow-uri-read")))ke=""+Re+"/"+J,Ie=K(xe)?ke.$slice(xe,ke.$length()):J;else return lt.$replace_next_line("link:"+I+"["+tt+"]");return[ke,"file",Ie]})}(Ne[0],Ke("Reader"),Ne)}(Ue[0],Ue)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser"]=function(a){var oe=a.eqeq,se=a.top,K=[],ye=a.$r(K),y=a.nil;return a.add_stubs("==,require"),oe(ye("JAVASCRIPT_IO_MODULE"),"xmlhttprequest")?(se.$require("asciidoctor/js/asciidoctor_ext/browser/abstract_node"),se.$require("asciidoctor/js/asciidoctor_ext/browser/open_uri"),se.$require("asciidoctor/js/asciidoctor_ext/browser/path_resolver"),se.$require("asciidoctor/js/asciidoctor_ext/browser/reader")):y},Opal.modules.set=Opal.return_val(Opal.nil),Opal.modules["asciidoctor/js/opal_ext/kernel"]=function(a){var oe=a.module,se=a.slice,K=a.send,ye=a.to_a,y=a.def,X=a.return_val,Ue=[],Z=a.nil;return a.add_stubs("new"),function(qe,R){var et=oe(qe,"Kernel"),Ne=[et].concat(R),Ke=a.$r(Ne);return y(et,"$open",function Le(Pe,ht){var Ve,st,Ye=Le.$$p||Z,Je=Z;return Le.$$p=null,Ve=se(arguments,1),st=Ve,Je=K(Ke("File"),"new",[Pe].concat(ye(st))),Ye!==Z?a.yield1(Ye,Je):Je},-2),y(et,"$__dir__",X(""))}(Ue[0],Ue)},Opal.modules["asciidoctor/js/opal_ext/file"]=function(a){var oe=a.klass,se=a.def,K=a.truthy,ye=a.gvars,y=a.return_val,X=a.defs,Ue=[],Z=a.nil;return a.add_stubs("attr_reader,delete,gsub,read,size,to_enum,chomp,each_line,readlines,split"),function(qe,R,et){var Ne=oe(qe,R,"File"),Ke=[Ne].concat(et),Le=a.$r(Ke),Pe=Ne.$$prototype;return Pe.eof=Pe.path=Z,Ne.$attr_reader("eof"),Ne.$attr_reader("lineno"),Ne.$attr_reader("path"),se(Ne,"$initialize",function(Ve,st){var Ye=this,Je=Z;return st==null&&(st="r"),Ye.path=Ve,Ye.contents=Z,Ye.eof=!1,Ye.lineno=0,st=st.$delete("b"),Je=/:(.*)/,st=st.$gsub(Je,""),Ye.flags=st},-2),se(Ne,"$read",function(){var Ve=this,st=Z;return K(Ve.eof)?"":(st=Le("File").$read(Ve.path),Ve.eof=!0,Ve.lineno=st.$size(),st)}),se(Ne,"$each_line",function ht(Ve){var st=ht.$$p||Z,Ye=this,Je=Z;if(ye["/"]==null&&(ye["/"]=Z),ht.$$p=null,Ve==null&&(Ve=ye["/"]),K(Ye.eof))return st!==Z?Ye:[].$to_enum();if(st!==Z){Je=Le("File").$read(Ye.path),Ye.eof=!1,Ye.lineno=0;for(var dt=Je.$chomp(),I=Je.length!=dt.length,tt=dt.split(Ve),A=0,rt=tt.length;A<rt;A++)Ye.lineno+=1,A<rt-1||I?a.yield1(st,tt[A]+Ve):a.yield1(st,tt[A]);return Ye.eof=!0,Ye}else return Ye.$read().$each_line()},-1),se(Ne,"$readlines",function(){var Ve=this;return Le("File").$readlines(Ve.path)}),function(ht,Ve){var st=[ht].concat(Ve),Ye=a.$r(st);return se(ht,"$readlines",function(dt,I){var tt=Z;return ye["/"]==null&&(ye["/"]=Z),I==null&&(I=ye["/"]),tt=Ye("File").$read(dt),tt.$split(I)},-2),se(ht,"$file?",y(!0)),se(ht,"$readable?",y(!0)),se(ht,"$read",y(""))}(a.get_singleton_class(Ne),Ke)}(Ue[0],null,Ue),function(qe,R,et){var Ne=oe(qe,R,"IO"),Ke=[Ne].concat(et),Le=a.$r(Ke);return X(Ne,"$read",function(ht){return Le("File").$read(ht)})}(Ue[0],null,Ue)},Opal.modules["asciidoctor/js/opal_ext/match_data"]=function(a){var oe=a.klass,se=a.send,K=a.def,ye=[],y=a.nil;return a.add_stubs("[]="),function(X,Ue){var Z=oe(X,Ue,"MatchData"),qe=Z.$$prototype;return qe.matches=y,K(Z,"$[]=",function(et,Ne){var Ke,Le=this;return Ke=[et,Ne],se(Le.matches,"[]=",Ke),Ke[Ke.length-1]})}(ye[0],null)},Opal.modules["asciidoctor/js/opal_ext/string"]=function(a){var oe=a.klass,se=a.truthy,K=a.rb_lt,ye=a.def,y=a.alias,X=a.rb_ge,Ue=a.eqeq,Z=a.rb_minus,qe=[],R=a.nil;return a.add_stubs("method_defined?,<,length,bytes,to_s,byteslice,limit_bytesize,>=,==,-,_original_byteslice,unpack,_original_unpack"),function(et,Ne){var Ke=oe(et,Ne,"String");return se(Ke["$method_defined?"]("limit_bytesize"))||ye(Ke,"$limit_bytesize",function(Pe){var ht=this,Ve=R;return se(K(Pe,ht.$bytes().$length()))?(Ve=ht.$byteslice(0,Pe),Ve.$to_s()):ht.$to_s()}),se(Ke["$method_defined?"]("limit"))||y(Ke,"limit","limit_bytesize"),y(Ke,"_original_byteslice","byteslice"),ye(Ke,"$byteslice",function(Pe,ht){var Ve=this;return ht==null&&(ht=1),Ue(Pe,3)&&se(X(ht,Pe))&&se(Ve.charCodeAt()===65279)?Ve.substr(1).$byteslice(0,Z(ht,3)):Ve.$_original_byteslice(Pe,ht)},-2),y(Ke,"_original_unpack","unpack"),ye(Ke,"$unpack",function(Pe){var ht=this;if(Ue(Pe,"C3")){if(se(ht.charCodeAt()===65279))return[239,187,191];for(var Ve=[],st=0;st<3;st++)st<ht.length?Ve.push(ht.charCodeAt(st)):Ve.push(R);return Ve}else return ht.$_original_unpack(Pe)})}(qe[0],null)},Opal.modules["asciidoctor/js/opal_ext/uri"]=function(a){var oe=a.module,se=a.defs,K=a.return_self,ye=a.def,y=[];return a.nil,a.add_stubs("extend"),function(X,Ue){var Z=oe(X,"URI"),qe=[Z].concat(Ue),R=a.$r(qe);return se(Z,"$parse",function(Ne){return Ne.$extend(R("URI"))}),ye(Z,"$path",K)}(y[0],y)},Opal.modules["asciidoctor/js/opal_ext/base64"]=function(a){var oe=a.module,se=a.defs,K=a.ensure_kwargs,ye=a.truthy,y=[],X=a.nil;return a.add_stubs("delete"),function(Ue){var Z=oe(Ue,"Base64"),qe,R;return qe=a.global.btoa||function(et){var Ne;return et instanceof Buffer?Ne=et:Ne=Buffer.from(et.toString(),"binary"),Ne.toString("base64")},R=a.global.atob||function(et){return Buffer.from(et,"base64").toString("binary")},se(Z,"$decode64",function(Ne){return R(Ne.replace(/\r?\n/g,""))}),se(Z,"$encode64",function(Ne){return qe(Ne).replace(/(.{60})/g,`$1
454
+ `).replace(/([^\n])$/g,`$1
455
+ `)}),se(Z,"$strict_decode64",function(Ne){return R(Ne)}),se(Z,"$strict_encode64",function(Ne){return qe(Ne)}),se(Z,"$urlsafe_decode64",function(Ne){return R(Ne.replace(/\-/g,"+").replace(/_/g,"/"))}),se(Z,"$urlsafe_encode64",function(Ne,Ke){var Le,Pe=X;return Ke=K(Ke),Le=Ke.$$smap.padding,Le==null&&(Le=!0),Pe=qe(Ne).replace(/\+/g,"-").replace(/\//g,"_"),ye(Le)||(Pe=Pe.$delete("=")),Pe},-2)}(y[0])},Opal.modules["asciidoctor/js/opal_ext/number"]=function(a){var oe=a.klass,se=a.truthy,K=a.rb_gt,ye=a.def,y=[],X=a.$r(y);return a.nil,a.add_stubs("coerce_to!,>"),function(Ue,Z,qe){var R=oe(Ue,Z,"Number"),et=[R].concat(qe),Ne=a.$r(et);return ye(R,"$round",function(Le){var Pe=this;return Le=Ne("Opal")["$coerce_to!"](Le,Ne("Integer"),"to_int"),se(K(Le,0))?Number(Pe.toFixed(Le)):Math.round(Pe)},-1)}(y[0],X("Numeric"),y)},Opal.modules["asciidoctor/js/opal_ext"]=function(a){var oe=a.top;a.nil,a.add_stubs("require"),oe.$require("asciidoctor/js/opal_ext/kernel"),oe.$require("asciidoctor/js/opal_ext/file"),oe.$require("asciidoctor/js/opal_ext/match_data"),oe.$require("asciidoctor/js/opal_ext/string"),oe.$require("asciidoctor/js/opal_ext/uri"),oe.$require("asciidoctor/js/opal_ext/base64"),oe.$require("asciidoctor/js/opal_ext/number"),a.config.unsupported_features_severity="ignore",oe.$require("asciidoctor/js/opal_ext/browser")},Opal.modules["asciidoctor/js/rx"]=function(a){var oe=a.module,se=a.const_set,K=a.send,ye=a.gvars,y=a.truthy,X=a.defs,Ue=a.rb_plus,Z=[],qe=a.nil;return a.add_stubs("gsub,+,unpack_hex_range"),function(R,et){var Ne=oe(R,"Asciidoctor"),Ke=[Ne].concat(et),Le=a.$r(Ke);return se(Ke[0],"HEX_RANGE_RX",/([A-F0-9]{4})(?:-([A-F0-9]{4}))?/),X(Ne,"$unpack_hex_range",function(ht){return K(ht,"gsub",[Le("HEX_RANGE_RX")],function(){var st,Ye=qe;return"\\u"+((st=ye["~"])===qe?qe:st["$[]"](1))+(y(Ye=(st=ye["~"])===qe?qe:st["$[]"](2))?"-\\u"+((st=ye["~"])===qe?qe:st["$[]"](2)):Ye)})}),se(Ke[0],"P_L",Ue("A-Za-z",Ne.$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"))),se(Ke[0],"P_Nl",Ne.$unpack_hex_range("16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF")),se(Ke[0],"P_Nd",Ue("0-9",Ne.$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"))),se(Ke[0],"P_Pc",Ne.$unpack_hex_range("005F203F20402054FE33FE34FE4D-FE4FFF3F")),se(Ke[0],"CC_ALPHA",""+Le("P_L")+Le("P_Nl")),se(Ke[0],"CG_ALPHA","["+Le("CC_ALPHA")+"]"),se(Ke[0],"CC_ALNUM",""+Le("CC_ALPHA")+Le("P_Nd")),se(Ke[0],"CG_ALNUM","["+Le("CC_ALNUM")+"]"),se(Ke[0],"CC_WORD",""+Le("CC_ALNUM")+Le("P_Pc")),se(Ke[0],"CG_WORD","["+Le("CC_WORD")+"]"),se(Ke[0],"CG_BLANK","[ \\t]"),se(Ke[0],"CC_EOL","(?=\\n|$)"),se(Ke[0],"CG_GRAPH","[^\\s\\x00-\\x1F\\x7F]"),se(Ke[0],"CC_ALL","[\\s\\S]"),se(Ke[0],"CC_ANY","[^\\n]")}(Z[0],Z)},Opal.modules.strscan=function(a){var oe=a.klass,se=a.def,K=a.truthy,ye=a.eqeqeq,y=a.Opal,X=a.return_ivar,Ue=a.send,Z=a.alias,qe=[],R=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(et,Ne,Ke){var Le=oe(et,Ne,"StringScanner"),Pe=[Le].concat(Ke),ht=a.$r(Pe),Ve=Le.$$prototype;return Ve.pos=Ve.string=Ve.working=Ve.matched=Ve.prev_pos=Ve.match=R,Le.$attr_reader("pos","matched"),se(Le,"$initialize",function(Ye){var Je=this;return Je.string=Ye,Je.pos=0,Je.matched=R,Je.working=Ye,Je.match=[]}),Le.$attr_reader("string"),se(Le,"$beginning_of_line?",function(){var Ye=this;return Ye.pos===0||Ye.string.charAt(Ye.pos-1)===`
456
+ `}),se(Le,"$scan",function(Ye){var Je=this;Ye=Je.$anchor(Ye);var dt=Ye.exec(Je.working);return dt==null?Je.matched=R:(Je.prev_pos=Je.pos,Je.pos+=dt[0].length,Je.working=Je.working.substring(dt[0].length),Je.matched=dt[0],Je.match=dt,dt[0])}),se(Le,"$scan_until",function(Ye){var Je=this;Ye=Je.$anchor(Ye);for(var dt=Je.working,I=0;dt.length!=I;++I){var tt=Ye.exec(dt.substr(I));if(tt!==null){var A=I+tt[0].length,rt=dt.substr(0,A);return Je.matched=tt[0],Je.match=tt,Je.prev_pos=Je.pos+I,Je.pos+=A,Je.working=dt.substr(A),rt}}return Je.matched=R}),se(Le,"$[]",function(Ye){var Je=this,dt=R;if(K(Je.match["$empty?"]()))return R;ye(ht("Symbol"),dt=Ye)?Ye=Ye.$to_s():ye(ht("String"),dt)||(Ye=y["$coerce_to!"](Ye,ht("Integer"),"to_int"));var I=Je.match;return Ye<0&&(Ye+=I.length),Ye<0||Ye>=I.length||I[Ye]==null?R:I[Ye]}),se(Le,"$check",function(Ye){var Je=this;Ye=Je.$anchor(Ye);var dt=Ye.exec(Je.working);return dt==null?Je.matched=R:Je.matched=dt[0]}),se(Le,"$check_until",function(Ye){var Je=this,dt=Je.prev_pos,I=Je.pos,tt=Je.working,A=Je.$scan_until(Ye);return Je.prev_pos=dt,Je.pos=I,Je.working=tt,A}),se(Le,"$peek",function(Ye){var Je=this;return Je.working.substring(0,Ye)}),se(Le,"$eos?",function(){var Ye=this;return Ye.working.length===0}),se(Le,"$exist?",function(Ye){var Je=this,dt=Ye.exec(Je.working);return dt==null?R:dt.index==0?0:dt.index+1}),se(Le,"$skip",function(Ye){var Je=this;Ye=Je.$anchor(Ye);var dt=Ye.exec(Je.working);if(dt==null)return Je.match=[],Je.matched=R;var I=dt[0],tt=I.length;return Je.matched=I,Je.match=dt,Je.prev_pos=Je.pos,Je.pos+=tt,Je.working=Je.working.substring(tt),tt}),se(Le,"$skip_until",function(Ye){var Je=this,dt=Je.$scan_until(Ye);return dt===R?R:(Je.matched=dt.substr(-1),dt.length)}),se(Le,"$get_byte",function(){var Ye=this,Je=R;return Ye.pos<Ye.string.length?(Ye.prev_pos=Ye.pos,Ye.pos+=1,Je=Ye.matched=Ye.working.substring(0,1),Ye.working=Ye.working.substring(1)):Ye.matched=R,Je}),se(Le,"$match?",function(Ye){var Je=this;Ye=Je.$anchor(Ye);var dt=Ye.exec(Je.working);return dt==null?R:(Je.prev_pos=Je.pos,dt[0].length)}),se(Le,"$pos=",function(Ye){var Je=this;return Ye<0&&(Ye+=Je.string.$length()),Je.pos=Ye,Je.working=Je.string.slice(Ye)}),se(Le,"$matched_size",function(){var Ye=this;return Ye.matched===R?R:Ye.matched.length}),se(Le,"$post_match",function(){var Ye=this;return Ye.matched===R?R:Ye.string.substr(Ye.pos)}),se(Le,"$pre_match",function(){var Ye=this;return Ye.matched===R?R:Ye.string.substr(0,Ye.prev_pos)}),se(Le,"$reset",function(){var Ye=this;return Ye.working=Ye.string,Ye.matched=R,Ye.pos=0}),se(Le,"$rest",X("working")),se(Le,"$rest?",function(){var Ye=this;return Ye.working.length!==0}),se(Le,"$rest_size",function(){var Ye=this;return Ye.$rest().$size()}),se(Le,"$terminate",function(){var Ye,Je=this;return Je.match=R,Ye=[Je.string.$length()],Ue(Je,"pos=",Ye),Ye[Ye.length-1]}),se(Le,"$unscan",function(){var Ye=this;return Ye.pos=Ye.prev_pos,Ye.prev_pos=R,Ye.match=R,Ye}),Z(Le,"bol?","beginning_of_line?"),Z(Le,"getch","get_byte"),Le.$private(),se(Le,"$anchor",function(Ye){var Je=Ye.toString().match(/\/([^\/]+)$/);return Je=Je?Je[1]:void 0,new RegExp("^(?:"+Ye.source+")",Je)})}(qe[0],null,qe)},Opal.modules["asciidoctor/js"]=function(a){var oe=a.top;return a.nil,a.add_stubs("require"),oe.$require("asciidoctor/js/opal_ext"),oe.$require("asciidoctor/js/rx"),oe.$require("strscan")},Opal.modules["asciidoctor/core_ext/nil_or_empty"]=function(a){var oe=a.klass,se=a.truthy,K=a.alias,ye=[],y=a.nil;return a.add_stubs("method_defined?,nil?,empty?"),function(X,Ue){var Z=oe(X,Ue,"NilClass");return se(Z["$method_defined?"]("nil_or_empty?"))?y:K(Z,"nil_or_empty?","nil?")}(ye[0],null),function(X,Ue){var Z=oe(X,Ue,"String");return se(Z["$method_defined?"]("nil_or_empty?"))?y:K(Z,"nil_or_empty?","empty?")}(ye[0],null),function(X,Ue){var Z=oe(X,Ue,"Array");return se(Z["$method_defined?"]("nil_or_empty?"))?y:K(Z,"nil_or_empty?","empty?")}(ye[0],null),function(X,Ue){var Z=oe(X,Ue,"Hash");return se(Z["$method_defined?"]("nil_or_empty?"))?y:K(Z,"nil_or_empty?","empty?")}(ye[0],null),function(X,Ue){var Z=oe(X,Ue,"Numeric");return se(Z["$method_defined?"]("nil_or_empty?"))?y:K(Z,"nil_or_empty?","nil?")}(ye[0],null)},Opal.modules["asciidoctor/core_ext/hash/merge"]=function(a){var oe=a.eqeq,se=a.send,K=a.slice,ye=a.truthy,y=a.rb_lt,X=a.rb_gt,Ue=a.send2,Z=a.find_super,qe=a.def,R=a.top,et=[],Ne=a.$r(et),Ke=a.nil;return a.add_stubs("==,arity,instance_method,send,new,<,length,dup,>,inject,merge,[]"),oe(Ne("Hash").$instance_method("merge").$arity(),1)?Ne("Hash").$send("prepend",se(Ne("Module"),"new",[],function Le(){var Pe=Le.$$s==null?this:Le.$$s;return qe(Pe,"$merge",function ht(Ve){var st,Ye;ht.$$p;var Je=this,dt=Ke;return ht.$$p=null,st=K(arguments),Ye=st,ye(y(dt=Ye.$length(),1))?Je.$dup():ye(X(dt,1))?se(Ye,"inject",[Je],function(tt,A){return tt==null&&(tt=Ke),A==null&&(A=Ke),tt.$merge(A)}):Ue(Je,Z(Je,"merge",ht,!1,!0),"merge",[Ye["$[]"](0)],null)},-1)},{$$s:R})):Ke},Opal.modules["asciidoctor/core_ext/match_data/names"]=function(a){var oe=a.truthy,se=a.klass,K=a.def,ye=[],y=a.$r(ye),X=a.nil;return a.add_stubs("method_defined?"),oe(y("MatchData")["$method_defined?"]("names"))?X:function(Ue,Z){var qe=se(Ue,Z,"MatchData");return K(qe,"$names",function(){return[]})}(ye[0],null)},Opal.modules["asciidoctor/core_ext"]=function(a){var oe=a.top;return a.nil,oe.$require("asciidoctor/core_ext.rb/../core_ext/nil_or_empty"),oe.$require("asciidoctor/core_ext.rb/../core_ext/hash/merge"),oe.$require("asciidoctor/core_ext.rb/../core_ext/match_data/names")},Opal.modules["asciidoctor/helpers"]=function(a){var oe=a.module,se=a.truthy,K=a.eqeq,ye=a.gvars,y=a.def,X=a.send,Ue=a.neqeq,Z=a.const_set,qe=a.hash2,R=a.to_ary,et=a.rb_times,Ne=a.eqeqeq,Ke=a.rb_plus,Le=a.Class,Pe=a.Object,ht=[],Ve=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(Ye,Je){var dt=oe(Ye,"Asciidoctor"),I=[dt].concat(Je);return function(tt,A){var rt=oe(tt,"Helpers"),lt=[rt].concat(A),J=a.$r(lt);return rt.$module_function(),y(rt,"$require_library",function(He,ke,Ie){var Re=this,ce=Ve;ye["!"]==null&&(ye["!"]=Ve),ke==null&&(ke=!0),Ie==null&&(Ie="abort");try{return Re.$require(He)}catch(xe){if(a.rescue(xe,[st("LoadError")]))try{if(se(Re["$include?"](J("Logging")))||Re.$include(J("Logging")),se(ke))switch(K(ke,!0)&&(ke=He),Ie){case"abort":ce=K(ye["!"].$path(),ke)?"":" (reason: "+(se(ye["!"].$path())?"cannot load '"+ye["!"].$path()+"'":ye["!"].$message())+")",Re.$raise(st("LoadError"),"asciidoctor: FAILED: required gem '"+ke+"' is not available"+ce+". Processing aborted.");break;case"warn":ce=K(ye["!"].$path(),ke)?"":" (reason: "+(se(ye["!"].$path())?"cannot load '"+ye["!"].$path()+"'":ye["!"].$message())+")",Re.$logger().$warn("optional gem '"+ke+"' is not available"+ce+". Functionality disabled.");break;default:}else switch(Ie){case"abort":Re.$raise(st("LoadError"),"asciidoctor: FAILED: "+ye["!"].$message().$chomp(".")+". Processing aborted.");break;case"warn":Re.$logger().$warn(""+ye["!"].$message().$chomp(".")+". Functionality disabled.");break;default:}return Ve}finally{a.pop_exception()}else throw xe}},-2),y(rt,"$prepare_source_array",function(He,ke){var Ie=Ve,Re=Ve,ce=Ve;return ke==null&&(ke=!0),se(He["$empty?"]())?[]:K(Ie=(Re=(ce=He["$[]"](0)).$unpack("C3")).$slice(0,2),J("BOM_BYTES_UTF_16LE"))?(He["$[]="](0,ce.$byteslice(2,ce.$bytesize())),se(ke)?X(He,"map",[],function(ee){return ee==null&&(ee=Ve),ee.$encode(J("UTF_8"),st(st("Encoding"),"UTF_16LE")).$rstrip()}):X(He,"map",[],function(ee){return ee==null&&(ee=Ve),ee.$encode(J("UTF_8"),st(st("Encoding"),"UTF_16LE")).$chomp()})):K(Ie,J("BOM_BYTES_UTF_16BE"))?(He["$[]="](0,ce.$byteslice(2,ce.$bytesize())),se(ke)?X(He,"map",[],function(ee){return ee==null&&(ee=Ve),ee.$encode(J("UTF_8"),st(st("Encoding"),"UTF_16BE")).$rstrip()}):X(He,"map",[],function(ee){return ee==null&&(ee=Ve),ee.$encode(J("UTF_8"),st(st("Encoding"),"UTF_16BE")).$chomp()})):(K(Re,J("BOM_BYTES_UTF_8"))&&He["$[]="](0,ce.$byteslice(3,ce.$bytesize())),K(ce.$encoding(),J("UTF_8"))?se(ke)?X(He,"map",[],function(ee){return ee==null&&(ee=Ve),ee.$rstrip()}):X(He,"map",[],function(ee){return ee==null&&(ee=Ve),ee.$chomp()}):se(ke)?X(He,"map",[],function(ee){return ee==null&&(ee=Ve),ee.$encode(J("UTF_8")).$rstrip()}):X(He,"map",[],function(ee){return ee==null&&(ee=Ve),ee.$encode(J("UTF_8")).$chomp()}))},-2),y(rt,"$prepare_source_string",function(He,ke){var Ie=Ve,Re=Ve;return ke==null&&(ke=!0),se(He["$nil_or_empty?"]())?[]:(K(Ie=(Re=He.$unpack("C3")).$slice(0,2),J("BOM_BYTES_UTF_16LE"))?He=He.$byteslice(2,He.$bytesize()).$encode(J("UTF_8"),st(st("Encoding"),"UTF_16LE")):K(Ie,J("BOM_BYTES_UTF_16BE"))?He=He.$byteslice(2,He.$bytesize()).$encode(J("UTF_8"),st(st("Encoding"),"UTF_16BE")):K(Re,J("BOM_BYTES_UTF_8"))?(He=He.$byteslice(3,He.$bytesize()),K(He.$encoding(),J("UTF_8"))||(He=He.$encode(J("UTF_8")))):Ue(He.$encoding(),J("UTF_8"))&&(He=He.$encode(J("UTF_8"))),se(ke)?X([],"tap",[],function(xe){return xe==null&&(xe=Ve),X(He,"each_line",[],function(P){return P==null&&(P=Ve),xe["$<<"](P.$rstrip())})}):X([],"tap",[],function(xe){return xe==null&&(xe=Ve),X(He,"each_line",[],function(P){return P==null&&(P=Ve),xe["$<<"](P.$chomp())})}))},-2),K(st("RUBY_ENGINE"),"jruby")?y(rt,"$uriish?",function(He){var ke=Ve,Ie=Ve;return se(ke=se(Ie=He["$include?"](":"))?He["$start_with?"]("uri:classloader:")["$!"]():Ie)?J("UriSniffRx")["$match?"](He):ke}):y(rt,"$uriish?",function(He){var ke=Ve;return se(ke=He["$include?"](":"))?J("UriSniffRx")["$match?"](He):ke}),y(rt,"$encode_uri_component",function(He){return encodeURIComponent(He).replace(/%20|[!'()*]/g,function(ke){return ke==="%20"?"+":"%"+ke.charCodeAt(0).toString(16)})}),y(rt,"$encode_spaces_in_uri",function(He){return se(He["$include?"](" "))?He.$gsub(" ","%20"):He}),y(rt,"$rootname",function(He){var ke=Ve;return se(ke=He.$rindex("."))?se(He.$index("/",ke))?He:He.$slice(0,ke):He}),y(rt,"$basename",function(He,ke){var Ie=this;return ke==null&&(ke=Ve),se(ke)?st("File").$basename(He,K(ke,!0)?Ie.$extname(He):ke):st("File").$basename(He)},-2),y(rt,"$extname?",function(He){var ke=Ve,Ie=Ve;return se(ke=Ie=He.$rindex("."))?He.$index("/",Ie)["$!"]():ke}),se(st(st("File"),"ALT_SEPARATOR"))?y(rt,"$extname",function(He,ke){var Ie=Ve;return ke==null&&(ke=""),se(Ie=He.$rindex("."))?se(He.$index("/",Ie))||se(He.$index(st(st("File"),"ALT_SEPARATOR"),Ie))?ke:He.$slice(Ie,He.$length()):ke},-2):y(rt,"$extname",function(He,ke){var Ie=Ve;return ke==null&&(ke=""),se(Ie=He.$rindex("."))?se(He.$index("/",Ie))?ke:He.$slice(Ie,He.$length()):ke},-2),y(rt,"$mkdir_p",function(He){var ke=this,Ie=Ve;if(se(st("File")["$directory?"](He)))return Ve;K(Ie=st("File").$dirname(He),".")||ke.$mkdir_p(Ie);try{return st("Dir").$mkdir(He)}catch(Re){if(a.rescue(Re,[st("SystemCallError")]))try{return se(st("File")["$directory?"](He))?Ve:ke.$raise()}finally{a.pop_exception()}else throw Re}}),Z(lt[0],"ROMAN_NUMERALS",qe(["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})),rt.$private_constant("ROMAN_NUMERALS"),y(rt,"$int_to_roman",function(He){return X(J("ROMAN_NUMERALS"),"map",[],function(Ie,Re){var ce,xe,ee=Ve;return Ie==null&&(Ie=Ve),Re==null&&(Re=Ve),xe=He.$divmod(Re),ce=R(xe),ee=ce[0]==null?Ve:ce[0],He=ce[1]==null?Ve:ce[1],et(Ie,ee)}).$join()}),y(rt,"$nextval",function(He){var ke=Ve;return Ne(st("Integer"),He)?Ke(He,1):K((ke=He.$to_i()).$to_s(),He.$to_s())?Ke(ke,1):He.$succ()}),y(rt,"$resolve_class",function(He){var ke=this;return Ne(Le,He)?He:Ne(st("String"),He)?ke.$class_for_name(He):Ve}),y(rt,"$class_for_name",function(He){var ke=this,Ie=Ve;try{return Ne(Le,Ie=Pe.$const_get(He,!1))||ke.$raise(),Ie}catch(Re){if(a.rescue(Re,[J("StandardError")]))try{return ke.$raise(st("NameError"),"Could not resolve class for name: "+He)}finally{a.pop_exception()}else throw Re}})}(I[0],I)}(ht[0],ht)},Opal.modules.logger=function(a){var oe=a.klass,se=a.module,K=a.const_set,ye=a.send,y=a.def,X=a.eqeqeq,Ue=a.rb_plus,Z=a.truthy,qe=a.rb_le,R=a.rb_lt,et=[],Ne=a.nil,Ke=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(Le,Pe,ht){var Ve=oe(Le,Pe,"Logger"),st=[Ve].concat(ht),Ye=a.$r(st),Je=Ve.$$prototype;return Je.level=Je.progname=Je.pipe=Je.formatter=Ne,function(dt,I){var tt=se(dt,"Severity"),A=[tt].concat(I);return K(A[0],"DEBUG",0),K(A[0],"INFO",1),K(A[0],"WARN",2),K(A[0],"ERROR",3),K(A[0],"FATAL",4),K(A[0],"UNKNOWN",5)}(st[0],st),Ve.$include(Ye("Severity")),K(st[0],"SEVERITY_LABELS",ye(Ye("Severity").$constants(),"map",[],function(I){return I==null&&(I=Ne),[Ye("Severity").$const_get(I),I.$to_s()]}).$to_h()),function(dt,I,tt){var A=oe(dt,I,"Formatter"),rt=[A].concat(tt),lt=a.$r(rt);return K(rt[0],"MESSAGE_FORMAT",`%s, [%s] %5s -- %s: %s
457
+ `),K(rt[0],"DATE_TIME_FORMAT","%Y-%m-%dT%H:%M:%S.%6N"),y(A,"$call",function(L,He,ke,Ie){var Re=this;return Re.$format(lt("MESSAGE_FORMAT"),L.$chr(),He.$strftime(lt("DATE_TIME_FORMAT")),L,ke,Re.$message_as_string(Ie))}),y(A,"$message_as_string",function(L){var He=Ne,ke=Ne;return X(Ke("String"),He=L)?L:X(Ke("Exception"),He)?Ue(""+L.$message()+" ("+L.$class()+`)
458
+ `,(Z(ke=L.$backtrace())?ke:[]).$join(`
459
+ `)):L.$inspect()})}(st[0],null,st),Ve.$attr_reader("level"),Ve.$attr_accessor("progname"),Ve.$attr_accessor("formatter"),y(Ve,"$initialize",function(I){var tt=this;return tt.pipe=I,tt.level=Ye("DEBUG"),tt.formatter=Ye("Formatter").$new()}),y(Ve,"$level=",function(I){var tt=this,A=Ne;return X(Ke("Integer"),I)?tt.level=I:Z(A=Ye("SEVERITY_LABELS").$key(I.$to_s().$upcase()))?tt.level=A:tt.$raise(Ye("ArgumentError"),"invalid log level: "+I)}),y(Ve,"$info",function dt(I){var tt=dt.$$p||Ne,A=this;return dt.$$p=null,I==null&&(I=Ne),ye(A,"add",[Ye("INFO"),Ne,I],tt.$to_proc())},-1),y(Ve,"$debug",function dt(I){var tt=dt.$$p||Ne,A=this;return dt.$$p=null,I==null&&(I=Ne),ye(A,"add",[Ye("DEBUG"),Ne,I],tt.$to_proc())},-1),y(Ve,"$warn",function dt(I){var tt=dt.$$p||Ne,A=this;return dt.$$p=null,I==null&&(I=Ne),ye(A,"add",[Ye("WARN"),Ne,I],tt.$to_proc())},-1),y(Ve,"$error",function dt(I){var tt=dt.$$p||Ne,A=this;return dt.$$p=null,I==null&&(I=Ne),ye(A,"add",[Ye("ERROR"),Ne,I],tt.$to_proc())},-1),y(Ve,"$fatal",function dt(I){var tt=dt.$$p||Ne,A=this;return dt.$$p=null,I==null&&(I=Ne),ye(A,"add",[Ye("FATAL"),Ne,I],tt.$to_proc())},-1),y(Ve,"$unknown",function dt(I){var tt=dt.$$p||Ne,A=this;return dt.$$p=null,I==null&&(I=Ne),ye(A,"add",[Ye("UNKNOWN"),Ne,I],tt.$to_proc())},-1),y(Ve,"$info?",function(){var I=this;return qe(I.level,Ye("INFO"))}),y(Ve,"$debug?",function(){var I=this;return qe(I.level,Ye("DEBUG"))}),y(Ve,"$warn?",function(){var I=this;return qe(I.level,Ye("WARN"))}),y(Ve,"$error?",function(){var I=this;return qe(I.level,Ye("ERROR"))}),y(Ve,"$fatal?",function(){var I=this;return qe(I.level,Ye("FATAL"))}),y(Ve,"$add",function dt(I,tt,A){var rt=dt.$$p||Ne,lt=this,J=Ne;return dt.$$p=null,tt==null&&(tt=Ne),A==null&&(A=Ne),Z(R(I=Z(J=I)?J:Ye("UNKNOWN"),lt.level))||(A=Z(J=A)?J:lt.progname,Z(tt)||(rt!==Ne?tt=a.yieldX(rt,[]):(tt=A,A=lt.progname)),lt.pipe.$write(lt.formatter.$call(Z(J=Ye("SEVERITY_LABELS")["$[]"](I))?J:"ANY",Ke("Time").$now(),A,tt))),!0},-2)}(et[0],null,et)},Opal.modules["asciidoctor/logging"]=function(a){var oe=a.module,se=a.klass,K=a.slice,ye=a.send2,y=a.find_super,X=a.to_a,Ue=a.send,Z=a.def,qe=a.truthy,R=a.rb_gt,et=a.const_set,Ne=a.hash2,Ke=a.eqeqeq,Le=a.gvars,Pe=a.alias,ht=a.defs,Ve=a.top,st=[],Ye=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"),Ve.$require("logger"),function(dt,I){var tt=oe(dt,"Asciidoctor"),A=[tt].concat(I);return function(rt,lt,J){var L=se(rt,lt,"Logger"),He=[L].concat(J),ke=a.$r(He),Ie=L.$$prototype;return Ie.max_severity=Ye,L.$attr_reader("max_severity"),Z(L,"$initialize",function Re(ce){var xe,ee,P,M=Re.$$p||Ye,ae=this;return Re.$$p=null,xe=K(arguments),ee=xe,ye(ae,y(ae,"initialize",Re,!1,!0),"initialize",X(ee),M),ae["$progname="]("asciidoctor"),ae["$formatter="](ke("BasicFormatter").$new()),P=[ke("WARN")],Ue(ae,"level=",P),P[P.length-1]},-1),Z(L,"$add",function Re(ce,xe,ee){var P=Re.$$p||Ye,M=this,ae=Ye;return Re.$$p=null,xe==null&&(xe=Ye),ee==null&&(ee=Ye),qe(R(ce=qe(ae=ce)?ae:ke("UNKNOWN"),M.max_severity=qe(ae=M.max_severity)?ae:ce))&&(M.max_severity=ce),ye(M,y(M,"add",Re,!1,!0),"add",[ce,xe,ee],P)},-2),function(Re,ce,xe){var ee=se(Re,ce,"BasicFormatter"),P=[ee].concat(xe),M=a.$r(P);return et(P[0],"SEVERITY_LABEL_SUBSTITUTES",Ne(["WARN","FATAL"],{WARN:"WARNING",FATAL:"FAILED"})),Z(ee,"$call",function(ie,pe,Y,g){var u=Ye;return""+Y+": "+(qe(u=M("SEVERITY_LABEL_SUBSTITUTES")["$[]"](ie))?u:ie)+": "+(Ke(Je("String"),g)?g:g.$inspect())+M("LF")})}(He[0],ke("Formatter"),He),function(Re){var ce=oe(Re,"AutoFormattingMessage");return Z(ce,"$inspect",function(){var ee=this,P=Ye;return qe(P=ee["$[]"]("source_location"))?""+P+": "+ee["$[]"]("text"):ee["$[]"]("text")})}(He[0])}(A[0],Je("Logger"),A),function(rt,lt,J){var L=se(rt,lt,"MemoryLogger"),He=[L].concat(J),ke=a.$r(He),Ie=L.$$prototype;return Ie.messages=Ye,et(He[0],"SEVERITY_SYMBOL_BY_VALUE",Ue(ke("Severity").$constants(!1),"map",[],function(ce){return ce==null&&(ce=Ye),[ke("Severity").$const_get(ce),ce]}).$to_h()),L.$attr_reader("messages"),Z(L,"$initialize",function(){var ce=this;return ce["$level="](ke("WARN")),ce.messages=[]}),Z(L,"$add",function Re(ce,xe,ee){var P=Re.$$p||Ye,M=this,ae=Ye;return Re.$$p=null,xe==null&&(xe=Ye),ee==null&&(ee=Ye),xe=qe(ae=xe)?ae:P!==Ye?a.yieldX(P,[]):ee,M.messages["$<<"](Ne(["severity","message"],{severity:ke("SEVERITY_SYMBOL_BY_VALUE")["$[]"](qe(ae=ce)?ae:ke("UNKNOWN")),message:xe})),!0},-2),Z(L,"$clear",function(){var ce=this;return ce.messages.$clear()}),Z(L,"$empty?",function(){var ce=this;return ce.messages["$empty?"]()}),Z(L,"$max_severity",function(){var ce=this;return qe(ce["$empty?"]())?Ye:Ue(ce.messages,"map",[],function(ee){return ee==null&&(ee=Ye),ke("Severity").$const_get(ee["$[]"]("severity"))}).$max()})}(A[0],Je("Logger"),A),function(rt,lt,J){var L=se(rt,lt,"NullLogger"),He=[L].concat(J),ke=a.$r(He),Ie=L.$$prototype;return Ie.max_severity=Ye,L.$attr_reader("max_severity"),Z(L,"$initialize",function(){var ce,xe=this;return ce=[ke("WARN")],Ue(xe,"level=",ce),ce[ce.length-1]}),Z(L,"$add",function(ce,xe,ee){var P=this,M=Ye;return qe(R(ce=qe(M=ce)?M:ke("UNKNOWN"),P.max_severity=qe(M=P.max_severity)?M:ce))&&(P.max_severity=ce),!0},-2)}(A[0],Je("Logger"),A),function(rt,lt){var J=oe(rt,"LoggerManager"),L=[J].concat(lt),He=a.$r(L);return J.logger_class=He("Logger"),function(ke,Ie){return ke.$attr_accessor("logger_class"),Z(ke,"$logger",function(ce){var xe=this,ee=Ye;return xe.logger==null&&(xe.logger=Ye),xe.logger_class==null&&(xe.logger_class=Ye),Le.stderr==null&&(Le.stderr=Ye),ce==null&&(ce=Le.stderr),xe.$memoize_logger(),xe.logger=qe(ee=xe.logger)?ee:xe.logger_class.$new(ce)},-1),Z(ke,"$logger=",function(ce){var xe=this,ee=Ye;return xe.logger_class==null&&(xe.logger_class=Ye),Le.stderr==null&&(Le.stderr=Ye),xe.logger=qe(ee=ce)?ee:xe.logger_class.$new(Le.stderr)}),ke.$private(),Z(ke,"$memoize_logger",function(){var ce=this;return function(xe,ee){return Pe(xe,"logger","logger"),xe.$attr_reader("logger")}(a.get_singleton_class(ce))})}(a.get_singleton_class(J))}(A[0],A),function(rt,lt){var J=oe(rt,"Logging"),L=[J].concat(lt),He=a.$r(L);return ht(J,"$included",function(Ie){return Ie.$extend(He("Logging"))}),J.$private_class_method("included"),Z(J,"$logger",function(){return He("LoggerManager").$logger()}),Z(J,"$message_with_context",function(Ie,Re){return Re==null&&(Re=Ne([],{})),Ne(["text"],{text:Ie}).$merge(Re).$extend(Je(He("Logger"),"AutoFormattingMessage"))},-2)}(A[0],A)}(st[0],st)},Opal.modules["asciidoctor/rx"]=function(a){var oe=a.module,se=a.const_set,K=a.regexp,ye=a.hash2,y=a.send,X=a.truthy,Ue=a.hash,Z=[],qe=a.nil,R=a.$$$;return a.add_stubs("join,to_a,new,[]=,empty?,escape"),function(et,Ne){var Ke=oe(et,"Asciidoctor"),Le=[Ke].concat(Ne),Pe=a.$r(Le);return oe(Le[0],"Rx"),se(Le[0],"AuthorInfoLineRx",K(["^(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*)(?: +(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*))?(?: +(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*))?(?: +<([^>]+)>)?$"])),se(Le[0],"AuthorDelimiterRx",/;(?: |$)/),se(Le[0],"RevisionInfoLineRx",K(["^(?:[^\\d{]*(",Pe("CC_ANY"),"*?),)? *(?!:)(",Pe("CC_ANY"),"*?)(?: *(?!^),?: *(",Pe("CC_ANY"),"*))?$"])),se(Le[0],"ManpageTitleVolnumRx",K(["^(",Pe("CC_ANY"),"+?) *\\( *(",Pe("CC_ANY"),"+?) *\\)$"])),se(Le[0],"ManpageNamePurposeRx",K(["^(",Pe("CC_ANY"),"+?) +- +(",Pe("CC_ANY"),"+)$"])),se(Le[0],"ConditionalDirectiveRx",K(["^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[(",Pe("CC_ANY"),"+)?\\]$"])),se(Le[0],"EvalExpressionRx",K(["^(",Pe("CC_ANY"),"+?) *([=!><]=|[><]) *(",Pe("CC_ANY"),"+)$"])),se(Le[0],"IncludeDirectiveRx",K(["^(\\\\)?include::([^\\s\\[](?:[^\\[]*[^\\s\\[])?)\\[(",Pe("CC_ANY"),"+)?\\]$"])),se(Le[0],"TagDirectiveRx",/\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m),se(Le[0],"AttributeEntryRx",K(["^:(!?",Pe("CG_WORD"),"[^:]*):(?:[ \\t]+(",Pe("CC_ANY"),"*))?$"])),se(Le[0],"InvalidAttributeNameCharsRx",K(["[^",Pe("CC_WORD"),"-]"])),se(Le[0],"AttributeEntryPassMacroRx",K(["^pass:([a-z]+(?:,[a-z-]+)*)?\\[(",Pe("CC_ALL"),"*)\\]$"])),se(Le[0],"AttributeReferenceRx",K(["(\\\\)?\\{(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*|(set|counter2?):",Pe("CC_ANY"),"+?)(\\\\)?\\}"])),se(Le[0],"BlockAnchorRx",K(["^\\[\\[(?:|([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+))?)\\]\\]$"])),se(Le[0],"BlockAttributeListRx",K(["^\\[(|[",Pe("CC_WORD"),`.#%{,"']`,Pe("CC_ANY"),"*)\\]$"])),se(Le[0],"BlockAttributeLineRx",K(["^\\[(?:|[",Pe("CC_WORD"),`.#%{,"']`,Pe("CC_ANY"),"*|\\[(?:|[",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*(?:, *",Pe("CC_ANY"),"+)?)\\])\\]$"])),se(Le[0],"BlockTitleRx",K(["^\\.(\\.?[^ \\t.]",Pe("CC_ANY"),"*)$"])),se(Le[0],"AdmonitionParagraphRx",K(["^(",Pe("ADMONITION_STYLES").$to_a().$join("|"),"):[ \\t]+"])),se(Le[0],"LiteralParagraphRx",K(["^([ \\t]+",Pe("CC_ANY"),"*)$"])),se(Le[0],"AtxSectionTitleRx",K(["^(=={0,5})[ \\t]+(",Pe("CC_ANY"),"+?)(?:[ \\t]+\\1)?$"])),se(Le[0],"ExtAtxSectionTitleRx",K(["^(=={0,5}|#\\#{0,5})[ \\t]+(",Pe("CC_ANY"),"+?)(?:[ \\t]+\\1)?$"])),se(Le[0],"SetextSectionTitleRx",K(["^((?!\\.)",Pe("CC_ANY"),"*?",Pe("CG_ALNUM"),Pe("CC_ANY"),"*)$"])),se(Le[0],"InlineSectionAnchorRx",K([" (\\\\)?\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+))?\\]\\]$"])),se(Le[0],"InvalidSectionIdCharsRx",K(["<[^>]+>|&(?:[a-z][a-z]+\\d{0,2}|#\\d\\d\\d{0,4}|#x[\\da-f][\\da-f][\\da-f]{0,3});|[^ ",Pe("CC_WORD"),"\\-.]+?"])),se(Le[0],"SectionLevelStyleRx",/^sect\d$/),se(Le[0],"AnyListRx",K(["^(?:[ \\t]*(?:-|\\*\\**|\\.\\.*|\\u2022|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]|(?!//[^/])[ \\t]*[^ \\t]",Pe("CC_ANY"),"*?(?::::{0,2}|;;)(?:$|[ \\t])|<(?:\\d+|\\.)>[ \\t])"])),se(Le[0],"UnorderedListRx",K(["^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+(",Pe("CC_ANY"),"*)$"])),se(Le[0],"OrderedListRx",K(["^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+(",Pe("CC_ANY"),"*)$"])),se(Le[0],"OrderedListMarkerRxMap",ye(["arabic","loweralpha","lowerroman","upperalpha","upperroman"],{arabic:/\d+\./,loweralpha:/[a-z]\./,lowerroman:/[ivx]+\)/,upperalpha:/[A-Z]\./,upperroman:/[IVX]+\)/})),se(Le[0],"DescriptionListRx",K(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?)(:::{0,2}|;;)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"])),se(Le[0],"DescriptionListSiblingRx",ye(["::",":::","::::",";;"],{"::":K(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?[^:]|[^ \\t:])(::)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"]),":::":K(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?[^:]|[^ \\t:])(:::)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"]),"::::":K(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?[^:]|[^ \\t:])(::::)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"]),";;":K(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?)(;;)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"])})),se(Le[0],"CalloutListRx",K(["^<(\\d+|\\.)>[ \\t]+(",Pe("CC_ANY"),"*)$"])),se(Le[0],"CalloutExtractRx",/((?:\/\/|#|--|;;) ?)?(\\)?<!?(|--)(\d+|\.)\3>(?=(?: ?\\?<!?\3(?:\d+|\.)\3>)*$)/),se(Le[0],"CalloutExtractRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)"),se(Le[0],"CalloutExtractRxMap",y(R("Hash"),"new",[],function(Ve,st){var Ye;return Ve==null&&(Ve=qe),st==null&&(st=qe),Ye=[st,K(["(",X(st["$empty?"]())?"":""+R("Regexp").$escape(st)+" ?",")?",Pe("CalloutExtractRxt")])],y(Ve,"[]=",Ye),Ye[Ye.length-1]})),se(Le[0],"CalloutScanRx",K(["\\\\?<!?(|--)(\\d+|\\.)\\1>(?=(?: ?\\\\?<!?\\1(?:\\d+|\\.)\\1>)*",Pe("CC_EOL"),")"])),se(Le[0],"CalloutSourceRx",K(["((?://|#|--|;;) ?)?(\\\\)?&lt;!?(|--)(\\d+|\\.)\\3&gt;(?=(?: ?\\\\?&lt;!?\\3(?:\\d+|\\.)\\3&gt;)*",Pe("CC_EOL"),")"])),se(Le[0],"CalloutSourceRxt","(\\\\)?&lt;()(\\d+|\\.)&gt;(?=(?: ?\\\\?&lt;(?:\\d+|\\.)&gt;)*"+Pe("CC_EOL")+")"),se(Le[0],"CalloutSourceRxMap",y(R("Hash"),"new",[],function(Ve,st){var Ye;return Ve==null&&(Ve=qe),st==null&&(st=qe),Ye=[st,K(["(",X(st["$empty?"]())?"":""+R("Regexp").$escape(st)+" ?",")?",Pe("CalloutSourceRxt")])],y(Ve,"[]=",Ye),Ye[Ye.length-1]})),se(Le[0],"ListRxMap",ye(["ulist","olist","dlist","colist"],{ulist:Pe("UnorderedListRx"),olist:Pe("OrderedListRx"),dlist:Pe("DescriptionListRx"),colist:Pe("CalloutListRx")})),se(Le[0],"ColumnSpecRx",/^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/),se(Le[0],"CellSpecStartRx",/^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),se(Le[0],"CellSpecEndRx",/[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),se(Le[0],"CustomBlockMacroRx",K(["^(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*)::(|\\S|\\S",Pe("CC_ANY"),"*?\\S)\\[(",Pe("CC_ANY"),"+)?\\]$"])),se(Le[0],"BlockMediaMacroRx",K(["^(image|video|audio)::(\\S|\\S",Pe("CC_ANY"),"*?\\S)\\[(",Pe("CC_ANY"),"+)?\\]$"])),se(Le[0],"BlockTocMacroRx",K(["^toc::\\[(",Pe("CC_ANY"),"+)?\\]$"])),se(Le[0],"InlineAnchorRx",K(["(\\\\)?(?:\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]|anchor:([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)\\[(?:\\]|(",Pe("CC_ANY"),"*?[^\\\\])\\]))"])),se(Le[0],"InlineAnchorScanRx",K(["(?:^|[^\\\\\\[])\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]|(?:^|[^\\\\])anchor:([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)\\[(?:\\]|(",Pe("CC_ANY"),"*?[^\\\\])\\])"])),se(Le[0],"LeadingInlineAnchorRx",K(["^\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]"])),se(Le[0],"InlineBiblioAnchorRx",K(["^\\[\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]\\]"])),se(Le[0],"InlineEmailRx",K(["([\\\\>:/])?",Pe("CG_WORD"),"(?:&amp;|[",Pe("CC_WORD"),"\\-.%+])*@",Pe("CG_ALNUM"),"[",Pe("CC_ALNUM"),"_\\-.]*\\.[a-zA-Z]{2,5}\\b"])),se(Le[0],"InlineFootnoteMacroRx",K(["\\\\?footnote(?:(ref):|:([",Pe("CC_WORD"),"-]+)?)\\[(?:|(",Pe("CC_ALL"),"*?[^\\\\]))\\](?!</a>)"],"m")),se(Le[0],"InlineImageMacroRx",K(["\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),se(Le[0],"InlineIndextermMacroRx",K(["\\\\?(?:(indexterm2?):\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]|\\(\\((",Pe("CC_ALL"),"+?)\\)\\)(?!\\)))"],"m")),se(Le[0],"InlineKbdBtnMacroRx",K(["(\\\\)?(kbd|btn):\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),se(Le[0],"InlineLinkRx",K(["(^|link:|",Pe("CG_BLANK"),`|&lt;|[>\\(\\)\\[\\];"'])(\\\\?(?:https?|file|ftp|irc)://)(?:([^\\s\\[\\]]+)\\[(|`,Pe("CC_ALL"),"*?[^\\\\])\\]|([^\\s\\[\\]<]*([^\\s,.?!\\[\\]<\\)])))"],"m")),se(Le[0],"InlineLinkMacroRx",K(["\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),se(Le[0],"MacroNameRx",K(["^",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*$"])),se(Le[0],"InlineStemMacroRx",K(["\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),se(Le[0],"InlineMenuMacroRx",K(["\\\\?menu:(",Pe("CG_WORD"),"|[",Pe("CC_WORD"),"&][^\\n\\[]*[^\\s\\[])\\[ *(?:|(",Pe("CC_ALL"),"*?[^\\\\]))\\]"],"m")),se(Le[0],"InlineMenuRx",K(['\\\\?"([',Pe("CC_WORD"),'&][^"]*?[ \\n]+&gt;[ \\n]+[^"]*)"'])),se(Le[0],"InlinePassRx",Ue(!1,["+","-]",K(["((?:^|[^",Pe("CC_WORD"),";:\\\\])(?=(\\[)|\\+)|\\\\(?=\\[)|(?=\\\\\\+))(?:\\2(x-|[^\\]]+ x-)\\]|(?:\\[([^\\]]+)\\])?(?=(\\\\)?\\+))(\\5?(\\+|`)(\\S|\\S",Pe("CC_ALL"),"*?\\S)\\7)(?!",Pe("CG_WORD"),")"],"m")],!0,["`",qe,K(["(^|[^`",Pe("CC_WORD"),"])(?:(\\Z)()|\\[([^\\]]+)\\](?=(\\\\))?)?(\\5?(`)([^`\\s]|[^`\\s]",Pe("CC_ALL"),"*?\\S)\\7)(?![`",Pe("CC_WORD"),"])"],"m")])),se(Le[0],"InlinePassMacroRx",K(["(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)(",Pe("CC_ALL"),"*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\])"],"m")),se(Le[0],"InlineXrefMacroRx",K(["\\\\?(?:&lt;&lt;([",Pe("CC_WORD"),"#/.:{]",Pe("CC_ALL"),"*?)&gt;&gt;|xref:([",Pe("CC_WORD"),"#/.:{]",Pe("CC_ALL"),"*?)\\[(?:\\]|(",Pe("CC_ALL"),"*?[^\\\\])\\]))"],"m")),se(Le[0],"HardLineBreakRx",K(["^(",Pe("CC_ANY"),"*) \\+$"],"m")),se(Le[0],"MarkdownThematicBreakRx",/^ {0,3}([-*_])( *)\1\2\1$/),se(Le[0],"ExtLayoutBreakRx",/^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/),se(Le[0],"BlankLineRx",/\n{2,}/),se(Le[0],"EscapedSpaceRx",/\\([ \t\n])/),se(Le[0],"ReplaceableTextRx",/[&']|--|\.\.\.|\([CRT]M?\)/),se(Le[0],"SpaceDelimiterRx",/([^\\])[ \t\n]+/),se(Le[0],"SubModifierSniffRx",/[+-]/),se(Le[0],"TrailingDigitsRx",/\d+$/),se(Le[0],"UriSniffRx",K(["^",Pe("CG_ALPHA"),"[",Pe("CC_ALNUM"),".+-]+:/{0,2}"])),se(Le[0],"XmlSanitizeRx",/<[^>]+>/)}(Z[0],Z)},Opal.modules["asciidoctor/substitutors"]=function(a){var oe=a.module,se=a.const_set,K=a.hash2,ye=a.hash,y=a.rb_plus,X=a.regexp,Ue=a.not,Z=a.truthy,qe=a.send,R=a.def,et=a.alias,Ne=a.gvars,Ke=a.eqeq,Le=a.to_ary,Pe=a.neqeq,ht=a.to_a,Ve=a.eqeqeq,st=a.rb_gt,Ye=a.slice,Je=a.rb_minus,dt=a.rb_lt,I=a.rb_times,tt=[],A=a.nil,rt=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,J){var L=oe(lt,"Asciidoctor"),He=[L].concat(J);return function(ke,Ie){var Re=oe(ke,"Substitutors"),ce=[Re].concat(Ie),xe=a.$r(ce);return se(ce[0],"SpecialCharsRx",/[<&>]/),se(ce[0],"SpecialCharsTr",K([">","<","&"],{">":"&gt;","<":"&lt;","&":"&amp;"})),se(ce[0],"QuotedTextSniffRx",ye(!1,/[*_`#^~]/,!0,/[*'_+#^~]/)),se(ce[0],"BASIC_SUBS",["specialcharacters"]).$freeze(),se(ce[0],"HEADER_SUBS",["specialcharacters","attributes"]).$freeze(),se(ce[0],"NO_SUBS",[]).$freeze(),se(ce[0],"NORMAL_SUBS",["specialcharacters","quotes","attributes","replacements","macros","post_replacements"]).$freeze(),se(ce[0],"REFTEXT_SUBS",["specialcharacters","quotes","replacements"]).$freeze(),se(ce[0],"VERBATIM_SUBS",["specialcharacters","callouts"]).$freeze(),se(ce[0],"SUB_GROUPS",K(["none","normal","verbatim","specialchars"],{none:xe("NO_SUBS"),normal:xe("NORMAL_SUBS"),verbatim:xe("VERBATIM_SUBS"),specialchars:xe("BASIC_SUBS")})),se(ce[0],"SUB_HINTS",K(["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"})),se(ce[0],"SUB_OPTIONS",K(["block","inline"],{block:y(y(xe("SUB_GROUPS").$keys(),xe("NORMAL_SUBS")),["callouts"]),inline:y(xe("SUB_GROUPS").$keys(),xe("NORMAL_SUBS"))})),se(ce[0],"CAN",""),se(ce[0],"DEL",""),se(ce[0],"PASS_START","–"),se(ce[0],"PASS_END","—"),se(ce[0],"PassSlotRx",X([xe("PASS_START"),"(\\d+)",xe("PASS_END")])),se(ce[0],"HighlightedPassSlotRx",X(["<span\\b[^>]*>",xe("PASS_START"),"</span>[^\\d]*(\\d+)[^\\d]*<span\\b[^>]*>",xe("PASS_END"),"</span>"])),se(ce[0],"RS","\\"),se(ce[0],"R_SB","]"),se(ce[0],"ESC_R_SB","\\]"),se(ce[0],"PLUS","+"),R(Re,"$apply_subs",function(P,M){var ae=this,ie=A,pe=A,Y=A,g=A;return ae.passthroughs==null&&(ae.passthroughs=A),ae.passthroughs_locked==null&&(ae.passthroughs_locked=A),M==null&&(M=xe("NORMAL_SUBS")),Z(P["$empty?"]())||Ue(M)?P:(Z(ie=rt("Array")["$==="](P))&&(P=Z(P["$[]"](1))?P.$join(xe("LF")):P["$[]"](0)),Z(M["$include?"]("macros"))&&(P=ae.$extract_passthroughs(P),Z(ae.passthroughs["$empty?"]())||(pe=ae.passthroughs,ae.passthroughs_locked=Z(Y=ae.passthroughs_locked)?Y:g=!0)),qe(M,"each",[],function u(_){var z=u.$$s==null?this:u.$$s;switch(_==null&&(_=A),_){case"specialcharacters":return P=z.$sub_specialchars(P);case"quotes":return P=z.$sub_quotes(P);case"attributes":return Z(P["$include?"](xe("ATTR_REF_HEAD")))?P=z.$sub_attributes(P):A;case"replacements":return P=z.$sub_replacements(P);case"macros":return P=z.$sub_macros(P);case"highlight":return P=z.$highlight_source(P,M["$include?"]("callouts"));case"callouts":return Z(M["$include?"]("highlight"))?A:P=z.$sub_callouts(P);case"post_replacements":return P=z.$sub_post_replacements(P);default:return z.$logger().$warn("unknown substitution type "+_)}},{$$s:ae}),Z(pe)&&(P=ae.$restore_passthroughs(P),Z(g)&&(pe.$clear(),ae.passthroughs_locked=A)),Z(ie)?P.$split(xe("LF"),-1):P)},-2),R(Re,"$apply_normal_subs",function(P){var M=this;return M.$apply_subs(P,xe("NORMAL_SUBS"))}),R(Re,"$apply_header_subs",function(P){var M=this;return M.$apply_subs(P,xe("HEADER_SUBS"))}),et(Re,"apply_title_subs","apply_subs"),R(Re,"$apply_reftext_subs",function(P){var M=this;return M.$apply_subs(P,xe("REFTEXT_SUBS"))}),R(Re,"$sub_specialchars",function(P){return Z(P["$include?"](">"))||Z(P["$include?"]("&"))||Z(P["$include?"]("<"))?P.$gsub(xe("SpecialCharsRx"),xe("SpecialCharsTr")):P}),et(Re,"sub_specialcharacters","sub_specialchars"),R(Re,"$sub_quotes",function(P){var M=this,ae=A;return M.document==null&&(M.document=A),Z(xe("QuotedTextSniffRx")["$[]"](ae=M.document.$compat_mode())["$match?"](P))&&qe(xe("QUOTE_SUBS")["$[]"](ae),"each",[],function ie(pe,Y,g){var u=ie.$$s==null?this:ie.$$s;return pe==null&&(pe=A),Y==null&&(Y=A),g==null&&(g=A),P=qe(P,"gsub",[g],function _(){var z=_.$$s==null?this:_.$$s;return Ne["~"]==null&&(Ne["~"]=A),z.$convert_quoted_text(Ne["~"],pe,Y)},{$$s:u})},{$$s:M}),P}),R(Re,"$sub_attributes",function(P,M){var ae=this,ie=A,pe=A,Y=A,g=A,u=A,_=A,z=A,S=A;return ae.document==null&&(ae.document=A),M==null&&(M=K([],{})),ie=ae.document.$attributes(),pe=Y=g=u=_=z=A,P=qe(P,"gsub",[xe("AttributeReferenceRx")],function b(){var F,H,_e=b.$$s==null?this:b.$$s,ue=A,Se=A,Be=A,Xe=A,it=A,pt=A;if(_e.document==null&&(_e.document=A),Ke((F=Ne["~"])===A?A:F["$[]"](1),xe("RS"))||Ke((F=Ne["~"])===A?A:F["$[]"](4),xe("RS")))return"{"+((F=Ne["~"])===A?A:F["$[]"](2))+"}";if(Z((F=Ne["~"])===A?A:F["$[]"](3)))switch((ue=((F=Ne["~"])===A?A:F["$[]"](2)).$split(":",3)).$shift()){case"set":return H=xe("Parser").$store_attribute(ue["$[]"](0),Z(Se=ue["$[]"](1))?Se:"",_e.document),F=Le(H),F[0]==null||F[0],Be=F[1]==null?A:F[1],Z(Be)||Pe(_=Z(Se=_)?Se:Z(Xe=ie["$[]"]("attribute-undefined"))?Xe:xe("Compliance").$attribute_undefined(),"drop-line")?pe=u=xe("DEL"):pe=Y=xe("CAN");case"counter2":return qe(_e.document,"counter",ht(ue)),pe=u=xe("DEL");default:return qe(_e.document,"counter",ht(ue))}else{if(Z(ie["$key?"](it=((F=Ne["~"])===A?A:F["$[]"](2)).$downcase())))return ie["$[]"](it);if(Z(Be=xe("INTRINSIC_ATTRIBUTES")["$[]"](it)))return Be;switch(z=Z(Se=z)?Se:Z(Xe=Z(pt=M["$[]"]("attribute_missing"))?pt:ie["$[]"]("attribute-missing"))?Xe:xe("Compliance").$attribute_missing()){case"drop":return pe=u=xe("DEL");case"drop-line":return Ke(g=Z(Se=g)?Se:Z(Xe=M["$[]"]("drop_line_severity"))?Xe:"info","info")&&qe(_e.$logger(),"info",[],function(){return"dropping line containing reference to missing attribute: "+it}),pe=Y=xe("CAN");case"warn":return _e.$logger().$warn("skipping reference to missing attribute: "+it),(F=Ne["~"])===A?A:F["$[]"](0);default:return(F=Ne["~"])===A?A:F["$[]"](0)}}},{$$s:ae}),Z(pe)?Z(u)?(S=P.$squeeze(xe("DEL")).$split(xe("LF"),-1),Z(Y)?qe(S,"reject",[],function(F){var H=A,_e=A,ue=A;return F==null&&(F=A),Z(H=Z(_e=Z(ue=F["$=="](xe("DEL")))?ue:F["$=="](xe("CAN")))?_e:F["$start_with?"](xe("CAN")))?H:F["$include?"](xe("CAN"))}).$join(xe("LF")).$delete(xe("DEL")):qe(S,"reject",[],function(F){return F==null&&(F=A),F["$=="](xe("DEL"))}).$join(xe("LF")).$delete(xe("DEL"))):Z(P["$include?"](xe("LF")))?qe(P.$split(xe("LF"),-1),"reject",[],function(F){var H=A,_e=A;return F==null&&(F=A),Z(H=Z(_e=F["$=="](xe("CAN")))?_e:F["$start_with?"](xe("CAN")))?H:F["$include?"](xe("CAN"))}).$join(xe("LF")):"":P},-2),R(Re,"$sub_replacements",function(P){var M=this;return Z(xe("ReplaceableTextRx")["$match?"](P))&&qe(xe("REPLACEMENTS"),"each",[],function ae(ie,pe,Y){var g=ae.$$s==null?this:ae.$$s;return ie==null&&(ie=A),pe==null&&(pe=A),Y==null&&(Y=A),P=qe(P,"gsub",[ie],function u(){var _=u.$$s==null?this:u.$$s;return Ne["~"]==null&&(Ne["~"]=A),_.$do_replacement(Ne["~"],pe,Y)},{$$s:g})},{$$s:M}),P}),R(Re,"$sub_macros",function(P){var M=this,ae=A,ie=A,pe=A,Y=A,g=A,u=A,_=A,z=A;return M.document==null&&(M.document=A),M.parent==null&&(M.parent=A),M.context==null&&(M.context=A),ae=P["$include?"]("["),ie=P["$include?"](":"),pe=Z(Y=ae)?ie:Y,g=Z(Y=pe)?P["$include?"](":["):Y,u=(_=M.document).$attributes(),Z(z=_.$extensions())&&Z(z["$inline_macros?"]())&&qe(z.$inline_macros(),"each",[],function S(b){var F=S.$$s==null?this:S.$$s;return b==null&&(b=A),P=qe(P,"gsub",[b.$instance().$regexp()],function H(){var _e,ue,Se=H.$$s==null?this:H.$$s,Be=A,Xe=A,it=A,pt=A,at=A,bt=A,kt=A,Et=A,xt=A;return Ne["~"]==null&&(Ne["~"]=A),Z((Be=(_e=Ne["~"])===A?A:_e["$[]"](0))["$start_with?"](xe("RS")))?((_e=Ne["~"])===A?A:_e["$[]"](0)).$slice(1,((_e=Ne["~"])===A?A:_e["$[]"](0)).$length()):(Z(Ne["~"].$names()["$empty?"]())?(_e=[(ue=Ne["~"])===A?A:ue["$[]"](1),(ue=Ne["~"])===A?A:ue["$[]"](2)],Xe=_e[0],it=_e[1]):(_e=[function(){try{return Ne["~"]["$[]"]("target")}catch(Nt){if(a.rescue(Nt,[xe("StandardError")]))try{return A}finally{a.pop_exception()}else throw Nt}}(),function(){try{return Ne["~"]["$[]"]("content")}catch(Nt){if(a.rescue(Nt,[xe("StandardError")]))try{return A}finally{a.pop_exception()}else throw Nt}}()],Xe=_e[0],it=_e[1]),pt=Z(at=(bt=b.$config())["$[]"]("default_attrs"))?at.$merge():K([],{}),Z(it)&&(Z(it["$empty?"]())?Ke(bt["$[]"]("content_model"),"attributes")||pt["$[]="]("text",it):(it=Se.$normalize_text(it,!0,!0),Ke(bt["$[]"]("content_model"),"attributes")?Se.$parse_attributes(it,Z(Y=Z(kt=bt["$[]"]("positional_attrs"))?kt:bt["$[]"]("pos_attrs"))?Y:[],K(["into"],{into:pt})):pt["$[]="]("text",it)),Xe=Z(Y=Xe)?Y:Ke(bt["$[]"]("format"),"short")?it:Xe),Ve(xe("Inline"),Et=b.$process_method()["$[]"](Se,Xe,pt))?(Z(xt=Et.$attributes().$delete("subs"))&&Z(xt=Se.$expand_subs(xt,"custom inline macro"))&&Et["$text="](Se.$apply_subs(Et.$text(),xt)),Et.$convert()):Z(Et)?(qe(Se.$logger(),"info",[],function(){return"expected substitution value for custom inline macro to be of type Inline; got "+Et.$class()+": "+Be}),Et):"")},{$$s:F})},{$$s:M}),Z(u["$key?"]("experimental"))&&(Z(g)&&(Z(P["$include?"]("kbd:"))||Z(P["$include?"]("btn:")))&&(P=qe(P,"gsub",[xe("InlineKbdBtnMacroRx")],function S(){var b,F=S.$$s==null?this:S.$$s,H=A,_e=A,ue=A;return Z((b=Ne["~"])===A?A:b["$[]"](1))?((b=Ne["~"])===A?A:b["$[]"](0)).$slice(1,((b=Ne["~"])===A?A:b["$[]"](0)).$length()):Ke((b=Ne["~"])===A?A:b["$[]"](2),"kbd")?(Z((H=((b=Ne["~"])===A?A:b["$[]"](3)).$strip())["$include?"](xe("R_SB")))&&(H=H.$gsub(xe("ESC_R_SB"),xe("R_SB"))),Z(st(H.$length(),1))&&Z(_e=Z(_e=H.$index(",",1))?[_e,H.$index("+",1)].$compact().$min():H.$index("+",1))?(ue=H.$slice(_e,1),Z(H["$end_with?"](ue))?(H=qe(H.$chop().$split(ue,-1),"map",[],function(Be){return Be==null&&(Be=A),Be.$strip()}),H["$[]="](-1,y(H["$[]"](-1),ue))):H=qe(H.$split(ue),"map",[],function(Be){return Be==null&&(Be=A),Be.$strip()})):H=[H],xe("Inline").$new(F,"kbd",A,K(["attributes"],{attributes:K(["keys"],{keys:H})})).$convert()):xe("Inline").$new(F,"button",F.$normalize_text((b=Ne["~"])===A?A:b["$[]"](3),!0,!0)).$convert()},{$$s:M})),Z(pe)&&Z(P["$include?"]("menu:"))&&(P=qe(P,"gsub",[xe("InlineMenuMacroRx")],function S(){var b,F=S.$$s==null?this:S.$$s,H=A,_e=A,ue=A,Se=A,Be=A;return Z(((b=Ne["~"])===A?A:b["$[]"](0))["$start_with?"](xe("RS")))?((b=Ne["~"])===A?A:b["$[]"](0)).$slice(1,((b=Ne["~"])===A?A:b["$[]"](0)).$length()):(H=(b=Ne["~"])===A?A:b["$[]"](1),Z(_e=(b=Ne["~"])===A?A:b["$[]"](2))?(Z(_e["$include?"](xe("R_SB")))&&(_e=_e.$gsub(xe("ESC_R_SB"),xe("R_SB"))),Z(ue=Z(_e["$include?"]("&gt;"))?"&gt;":Z(_e["$include?"](","))?",":A)?(Se=qe(_e.$split(ue),"map",[],function(it){return it==null&&(it=A),it.$strip()}),Be=Se.$pop()):(b=[[],_e.$rstrip()],Se=b[0],Be=b[1])):(b=[[],A],Se=b[0],Be=b[1]),xe("Inline").$new(F,"menu",A,K(["attributes"],{attributes:K(["menu","submenus","menuitem"],{menu:H,submenus:Se,menuitem:Be})})).$convert())},{$$s:M})),Z(P["$include?"]('"'))&&Z(P["$include?"]("&gt;"))&&(P=qe(P,"gsub",[xe("InlineMenuRx")],function S(){var b,F,H,_e=S.$$s==null?this:S.$$s,ue=A,Se=A,Be=A;return Z(((b=Ne["~"])===A?A:b["$[]"](0))["$start_with?"](xe("RS")))?((b=Ne["~"])===A?A:b["$[]"](0)).$slice(1,((b=Ne["~"])===A?A:b["$[]"](0)).$length()):(F=qe(((H=Ne["~"])===A?A:H["$[]"](1)).$split("&gt;"),"map",[],function(it){return it==null&&(it=A),it.$strip()}),b=Le(F),ue=b[0]==null?A:b[0],Se=Ye(b,1),Be=Se.$pop(),xe("Inline").$new(_e,"menu",A,K(["attributes"],{attributes:K(["menu","submenus","menuitem"],{menu:ue,submenus:Se,menuitem:Be})})).$convert())},{$$s:M}))),Z(pe)&&(Z(P["$include?"]("image:"))||Z(P["$include?"]("icon:")))&&(P=qe(P,"gsub",[xe("InlineImageMacroRx")],function S(){var b,F=S.$$s==null?this:S.$$s,H=A,_e=A,ue=A,Se=A;return Z(((b=Ne["~"])===A?A:b["$[]"](0))["$start_with?"](xe("RS")))?((b=Ne["~"])===A?A:b["$[]"](0)).$slice(1,((b=Ne["~"])===A?A:b["$[]"](0)).$length()):(Z(((b=Ne["~"])===A?A:b["$[]"](0))["$start_with?"]("icon:"))?(b=["icon",["size"]],H=b[0],_e=b[1]):(b=["image",["alt","width","height"]],H=b[0],_e=b[1]),ue=(b=Ne["~"])===A?A:b["$[]"](1),Se=F.$parse_attributes((b=Ne["~"])===A?A:b["$[]"](2),_e,K(["unescape_input"],{unescape_input:!0})),Ke(H,"icon")||(_.$register("images",ue),Se["$[]="]("imagesdir",u["$[]"]("imagesdir"))),Z(Y=Se["$[]"]("alt"))||Se["$[]="]("alt",(b=["default-alt",xe("Helpers").$basename(ue,!0).$tr("_-"," ")],qe(Se,"[]=",b),b[b.length-1])),xe("Inline").$new(F,"image",A,K(["type","target","attributes"],{type:H,target:ue,attributes:Se})).$convert())},{$$s:M})),(Z(P["$include?"]("(("))&&Z(P["$include?"]("))"))||Z(g)&&Z(P["$include?"]("dexterm")))&&(P=qe(P,"gsub",[xe("InlineIndextermMacroRx")],function S(){var b,F,H=S.$$s==null?this:S.$$s,_e=A,ue=A,Se=A,Be=A,Xe=A,it=A,pt=A,at=A,bt=A,kt=A,Et=A,xt=A,Nt=A,Tt=A;switch((b=Ne["~"])===A?A:b["$[]"](1)){case"indexterm":return Z(((b=Ne["~"])===A?A:b["$[]"](0))["$start_with?"](xe("RS")))?((b=Ne["~"])===A?A:b["$[]"](0)).$slice(1,((b=Ne["~"])===A?A:b["$[]"](0)).$length()):(Z((_e=H.$normalize_text((b=Ne["~"])===A?A:b["$[]"](2),!0,!0))["$include?"]("="))?Z(ue=(Se=xe("AttributeList").$new(_e,H).$parse())["$[]"](1))?(Se["$[]="]("terms",[ue]),Z(Be=Se["$[]"]("see-also"))&&Se["$[]="]("see-also",Z(Be["$include?"](","))?qe(Be.$split(","),"map",[],function(jt){return jt==null&&(jt=A),jt.$lstrip()}):[Be])):Se=K(["terms"],{terms:_e}):Se=K(["terms"],{terms:H.$split_simple_csv(_e)}),xe("Inline").$new(H,"indexterm",A,K(["attributes"],{attributes:Se})).$convert());case"indexterm2":return Z(((b=Ne["~"])===A?A:b["$[]"](0))["$start_with?"](xe("RS")))?((b=Ne["~"])===A?A:b["$[]"](0)).$slice(1,((b=Ne["~"])===A?A:b["$[]"](0)).$length()):(Z((Xe=H.$normalize_text((b=Ne["~"])===A?A:b["$[]"](2),!0,!0))["$include?"]("="))&&(Xe=Z(it=Z(pt=(Se=xe("AttributeList").$new(Xe,H).$parse())["$[]"](1))?pt:Se=A)?it:Xe,Z(Se)&&Z(Be=Se["$[]"]("see-also"))&&Se["$[]="]("see-also",Z(Be["$include?"](","))?qe(Be.$split(","),"map",[],function(jt){return jt==null&&(jt=A),jt.$lstrip()}):[Be])),xe("Inline").$new(H,"indexterm",Xe,K(["attributes","type"],{attributes:Se,type:"visible"})).$convert());default:if(at=(b=Ne["~"])===A?A:b["$[]"](3),Z(((b=Ne["~"])===A?A:b["$[]"](0))["$start_with?"](xe("RS"))))if(Z(at["$start_with?"]("("))&&Z(at["$end_with?"](")")))at=at.$slice(1,Je(at.$length(),2)),b=[!0,"(",")"],bt=b[0],kt=b[1],Et=b[2];else return((b=Ne["~"])===A?A:b["$[]"](0)).$slice(1,((b=Ne["~"])===A?A:b["$[]"](0)).$length());else bt=!0,Z(at["$start_with?"]("("))?Z(at["$end_with?"](")"))?(b=[at.$slice(1,Je(at.$length(),2)),!1],at=b[0],bt=b[1]):(b=[at.$slice(1,at.$length()),"(",""],at=b[0],kt=b[1],Et=b[2]):Z(at["$end_with?"](")"))&&(b=[at.$chop(),"",")"],at=b[0],kt=b[1],Et=b[2]);return Z(bt)?(Z((Xe=H.$normalize_text(at,!0))["$include?"](";&"))&&(Z(Xe["$include?"](" &gt;&gt; "))?(F=Xe.$partition(" &gt;&gt; "),b=Le(F),Xe=b[0]==null?A:b[0],b[1]==null||b[1],xt=b[2]==null?A:b[2],Se=K(["see"],{see:xt})):Z(Xe["$include?"](" &amp;&gt; "))&&(F=Xe.$split(" &amp;&gt; "),b=Le(F),Xe=b[0]==null?A:b[0],Be=Ye(b,1),Se=K(["see-also"],{"see-also":Be}))),Nt=xe("Inline").$new(H,"indexterm",Xe,K(["attributes","type"],{attributes:Se,type:"visible"})).$convert()):(Se=K([],{}),Z((Tt=H.$normalize_text(at,!0))["$include?"](";&"))&&(Z(Tt["$include?"](" &gt;&gt; "))?(F=Tt.$partition(" &gt;&gt; "),b=Le(F),Tt=b[0]==null?A:b[0],b[1]==null||b[1],xt=b[2]==null?A:b[2],Se["$[]="]("see",xt)):Z(Tt["$include?"](" &amp;&gt; "))&&(F=Tt.$split(" &amp;&gt; "),b=Le(F),Tt=b[0]==null?A:b[0],Be=Ye(b,1),Se["$[]="]("see-also",Be))),Se["$[]="]("terms",H.$split_simple_csv(Tt)),Nt=xe("Inline").$new(H,"indexterm",A,K(["attributes"],{attributes:Se})).$convert()),Z(kt)?""+kt+Nt+Et:Nt}},{$$s:M})),Z(ie)&&Z(P["$include?"]("://"))&&(P=qe(P,"gsub",[xe("InlineLinkRx")],function S(){var b,F,H=S.$$s==null?this:S.$$s,_e=A,ue=A,Se=A,Be=A,Xe=A,it=A,pt=A,at=A,bt=A;if(Z((_e=y((b=Ne["~"])===A?A:b["$[]"](2),Z(Y=(b=Ne["~"])===A?A:b["$[]"](3))?Y:(b=Ne["~"])===A?A:b["$[]"](5)))["$start_with?"](xe("RS"))))return y(((b=Ne["~"])===A?A:b["$[]"](0)).$slice(0,ue=((b=Ne["~"])===A?A:b["$[]"](1)).$length()),((b=Ne["~"])===A?A:b["$[]"](0)).$slice(y(ue,1),((b=Ne["~"])===A?A:b["$[]"](0)).$length()));if(b=[(F=Ne["~"])===A?A:F["$[]"](1),""],Se=b[0],Be=b[1],Z((b=Ne["~"])===A?A:b["$[]"](4)))Ke(Se,"link:")&&(Se=""),Z((Xe=(b=Ne["~"])===A?A:b["$[]"](4))["$empty?"]())&&(Xe=A);else{switch(Se){case"link:":case'"':case"'":return(b=Ne["~"])===A?A:b["$[]"](0)}switch((b=Ne["~"])===A?A:b["$[]"](6)){case";":if(Z(Se["$start_with?"]("&lt;"))&&Z(_e["$end_with?"]("&gt;"))?(Se=Se.$slice(4,Se.$length()),_e=_e.$slice(0,Je(_e.$length(),4))):Z((_e=_e.$chop())["$end_with?"](")"))?(_e=_e.$chop(),Be=");"):Be=";",Z(_e["$end_with?"]("://")))return(b=Ne["~"])===A?A:b["$[]"](0);break;case":":if(Z((_e=_e.$chop())["$end_with?"](")"))?(_e=_e.$chop(),Be="):"):Be=":",Z(_e["$end_with?"]("://")))return(b=Ne["~"])===A?A:b["$[]"](0);break}}return b=[A,K(["type"],{type:"link"})],it=b[0],pt=b[1],Z(Xe)?(Z(Xe["$include?"](xe("R_SB")))&&(at=Xe=Xe.$gsub(xe("ESC_R_SB"),xe("R_SB"))),Ue(_.$compat_mode())&&Z(Xe["$include?"]("="))&&(F=H.$extract_attributes_from_text(Xe,""),b=Le(F),Xe=b[0]==null?A:b[0],it=b[1]==null?A:b[1],at=Xe,pt["$[]="]("id",it["$[]"]("id"))),Z(Xe["$end_with?"]("^"))&&(at=Xe=Xe.$chop(),Z(it)?Z(Y=it["$[]"]("window"))||it["$[]="]("window","_blank"):it=K(["window"],{window:"_blank"})),Z(at)&&Z(at["$empty?"]())&&(Xe=Z(u["$key?"]("hide-uri-scheme"))?_e.$sub(xe("UriSniffRx"),""):_e,bt=!0)):(Xe=Z(u["$key?"]("hide-uri-scheme"))?_e.$sub(xe("UriSniffRx"),""):_e,bt=!0),Z(bt)&&(Z(it)?it["$[]="]("role",Z(it["$key?"]("role"))?"bare "+it["$[]"]("role"):"bare"):it=K(["role"],{role:"bare"})),_.$register("links",(b=["target",_e],qe(pt,"[]=",b),b[b.length-1])),Z(it)&&pt["$[]="]("attributes",it),""+Se+xe("Inline").$new(H,"anchor",Xe,pt).$convert()+Be},{$$s:M})),Z(pe)&&(Z(P["$include?"]("link:"))||Z(P["$include?"]("ilto:")))&&(P=qe(P,"gsub",[xe("InlineLinkMacroRx")],function S(){var b,F,H=S.$$s==null?this:S.$$s,_e=A,ue=A,Se=A,Be=A,Xe=A,it=A;return Z(((b=Ne["~"])===A?A:b["$[]"](0))["$start_with?"](xe("RS")))?((b=Ne["~"])===A?A:b["$[]"](0)).$slice(1,((b=Ne["~"])===A?A:b["$[]"](0)).$length()):(Z(_e=(b=Ne["~"])===A?A:b["$[]"](1))?ue=y("mailto:",Se=(b=Ne["~"])===A?A:b["$[]"](2)):ue=(b=Ne["~"])===A?A:b["$[]"](2),b=[A,K(["type"],{type:"link"})],Be=b[0],Xe=b[1],Z((it=(b=Ne["~"])===A?A:b["$[]"](3))["$empty?"]())||(Z(it["$include?"](xe("R_SB")))&&(it=it.$gsub(xe("ESC_R_SB"),xe("R_SB"))),Z(_e)?Ue(_.$compat_mode())&&Z(it["$include?"](","))&&(F=H.$extract_attributes_from_text(it,""),b=Le(F),it=b[0]==null?A:b[0],Be=b[1]==null?A:b[1],Xe["$[]="]("id",Be["$[]"]("id")),Z(Be["$key?"](2))&&(Z(Be["$key?"](3))?ue=""+ue+"?subject="+xe("Helpers").$encode_uri_component(Be["$[]"](2))+"&amp;body="+xe("Helpers").$encode_uri_component(Be["$[]"](3)):ue=""+ue+"?subject="+xe("Helpers").$encode_uri_component(Be["$[]"](2)))):Ue(_.$compat_mode())&&Z(it["$include?"]("="))&&(F=H.$extract_attributes_from_text(it,""),b=Le(F),it=b[0]==null?A:b[0],Be=b[1]==null?A:b[1],Xe["$[]="]("id",Be["$[]"]("id"))),Z(it["$end_with?"]("^"))&&(it=it.$chop(),Z(Be)?Z(Y=Be["$[]"]("window"))||Be["$[]="]("window","_blank"):Be=K(["window"],{window:"_blank"}))),Z(it["$empty?"]())&&(Z(_e)?it=Se:(Z(u["$key?"]("hide-uri-scheme"))?Z((it=ue.$sub(xe("UriSniffRx"),""))["$empty?"]())&&(it=ue):it=ue,Z(Be)?Be["$[]="]("role",Z(Be["$key?"]("role"))?"bare "+Be["$[]"]("role"):"bare"):Be=K(["role"],{role:"bare"}))),_.$register("links",(b=["target",ue],qe(Xe,"[]=",b),b[b.length-1])),Z(Be)&&Xe["$[]="]("attributes",Be),xe("Inline").$new(H,"anchor",it,Xe).$convert())},{$$s:M})),Z(P["$include?"]("@"))&&(P=qe(P,"gsub",[xe("InlineEmailRx")],function S(){var b,F=S.$$s==null?this:S.$$s,H=A,_e=A;return Z((b=Ne["~"])===A?A:b["$[]"](1))?Ke((b=Ne["~"])===A?A:b["$[]"](1),xe("RS"))?((b=Ne["~"])===A?A:b["$[]"](0)).$slice(1,((b=Ne["~"])===A?A:b["$[]"](0)).$length()):(b=Ne["~"])===A?A:b["$[]"](0):(H=y("mailto:",_e=(b=Ne["~"])===A?A:b["$[]"](0)),_.$register("links",H),xe("Inline").$new(F,"anchor",_e,K(["type","target"],{type:"link",target:H})).$convert())},{$$s:M})),Z(ae)&&Ke(M.context,"list_item")&&Ke(M.parent.$style(),"bibliography")&&(P=qe(P,"sub",[xe("InlineBiblioAnchorRx")],function S(){var b,F=S.$$s==null?this:S.$$s;return xe("Inline").$new(F,"anchor",(b=Ne["~"])===A?A:b["$[]"](2),K(["type","id"],{type:"bibref",id:(b=Ne["~"])===A?A:b["$[]"](1)})).$convert()},{$$s:M})),(Z(ae)&&Z(P["$include?"]("[["))||Z(pe)&&Z(P["$include?"]("or:")))&&(P=qe(P,"gsub",[xe("InlineAnchorRx")],function S(){var b,F=S.$$s==null?this:S.$$s,H=A,_e=A;return Z((b=Ne["~"])===A?A:b["$[]"](1))?((b=Ne["~"])===A?A:b["$[]"](0)).$slice(1,((b=Ne["~"])===A?A:b["$[]"](0)).$length()):(Z(H=(b=Ne["~"])===A?A:b["$[]"](2))?_e=(b=Ne["~"])===A?A:b["$[]"](3):(H=(b=Ne["~"])===A?A:b["$[]"](4),Z(_e=(b=Ne["~"])===A?A:b["$[]"](5))&&Z(_e["$include?"](xe("R_SB")))&&(_e=_e.$gsub(xe("ESC_R_SB"),xe("R_SB")))),xe("Inline").$new(F,"anchor",_e,K(["type","id"],{type:"ref",id:H})).$convert())},{$$s:M})),(Z(P["$include?"]("&"))&&Z(P["$include?"](";&l"))||Z(pe)&&Z(P["$include?"]("xref:")))&&(P=qe(P,"gsub",[xe("InlineXrefMacroRx")],function S(){var b,F,H=S.$$s==null?this:S.$$s,_e=A,ue=A,Se=A,Be=A,Xe=A,it=A,pt=A,at=A,bt=A,kt=A;return Z(((b=Ne["~"])===A?A:b["$[]"](0))["$start_with?"](xe("RS")))?((b=Ne["~"])===A?A:b["$[]"](0)).$slice(1,((b=Ne["~"])===A?A:b["$[]"](0)).$length()):(_e=K([],{}),Z(ue=(b=Ne["~"])===A?A:b["$[]"](1))?Z(ue["$include?"](","))&&(F=ue.$partition(","),b=Le(F),ue=b[0]==null?A:b[0],b[1]==null||b[1],Se=b[2]==null?A:b[2],Z((Se=Se.$lstrip())["$empty?"]())&&(Se=A)):(Be=!0,ue=(b=Ne["~"])===A?A:b["$[]"](2),Z(Se=(b=Ne["~"])===A?A:b["$[]"](3))&&(Z(Se["$include?"](xe("R_SB")))&&(Se=Se.$gsub(xe("ESC_R_SB"),xe("R_SB"))),Ue(_.$compat_mode())&&Z(Se["$include?"]("="))&&(F=H.$extract_attributes_from_text(Se),b=Le(F),Se=b[0]==null?A:b[0],_e=b[1]==null?A:b[1]))),Z(_.$compat_mode())?Xe=ue:Z(it=ue.$index("#"))&&Pe(ue["$[]"](Je(it,1)),"&")?Z(st(it,0))?(Z(st(pt=Je(Je(ue.$length(),1),it),0))?(b=[ue.$slice(0,it),ue.$slice(y(it,1),pt)],at=b[0],Xe=b[1]):at=ue.$chop(),Z(Be)?Z(at["$end_with?"](".adoc"))?bt=at=at.$slice(0,Je(at.$length(),5)):Ue(xe("Helpers")["$extname?"](at))&&(bt=at):Z(qe(at,"end_with?",ht(xe("ASCIIDOC_EXTENSIONS").$keys())))?bt=at=at.$slice(0,at.$rindex(".")):bt=at):(b=[ue,ue.$slice(1,ue.$length())],kt=b[0],Xe=b[1]):Z(Be)?Z(ue["$end_with?"](".adoc"))?bt=at=ue.$slice(0,Je(ue.$length(),5)):Z(xe("Helpers")["$extname?"](ue))?at=ue:Xe=ue:Xe=ue,Z(kt)?(ue=Xe,Z(H.$logger()["$info?"]())&&Ue(_.$catalog()["$[]"]("refs")["$[]"](ue))&&H.$logger().$info("possible invalid reference: "+ue)):Z(at)?Z(bt)&&(Ke(_.$attributes()["$[]"]("docname"),at)||Z(_.$catalog()["$[]"]("includes")["$[]"](at)))?Z(Xe)?(b=[Xe,A,"#"+Xe],ue=b[0],at=b[1],kt=b[2],Z(H.$logger()["$info?"]())&&Ue(_.$catalog()["$[]"]("refs")["$[]"](ue))&&H.$logger().$info("possible invalid reference: "+ue)):(b=[A,A,"#"],ue=b[0],at=b[1],kt=b[2]):(b=[at,""+(Z(Y=_.$attributes()["$[]"]("relfileprefix"))?Y:"")+at+(Z(bt)?_.$attributes().$fetch("relfilesuffix",_.$outfilesuffix()):"")],ue=b[0],at=b[1],Z(Xe)?(b=[""+ue+"#"+Xe,""+at+"#"+Xe],ue=b[0],kt=b[1]):kt=at):Z(_.$compat_mode())||Ue(xe("Compliance").$natural_xrefs())?(b=[Xe,"#"+Xe],ue=b[0],kt=b[1],Z(H.$logger()["$info?"]())&&Ue(_.$catalog()["$[]"]("refs")["$[]"](ue))&&H.$logger().$info("possible invalid reference: "+ue)):Z(_.$catalog()["$[]"]("refs")["$[]"](Xe))?(b=[Xe,"#"+Xe],ue=b[0],kt=b[1]):(Z(Xe["$include?"](" "))||Pe(Xe.$downcase(),Xe))&&Z(ue=_.$resolve_id(Xe))?(b=[ue,"#"+ue],Xe=b[0],kt=b[1]):(b=[Xe,"#"+Xe],ue=b[0],kt=b[1],Z(H.$logger()["$info?"]())&&H.$logger().$info("possible invalid reference: "+ue)),_e["$[]="]("path",at),_e["$[]="]("fragment",Xe),_e["$[]="]("refid",ue),xe("Inline").$new(H,"anchor",Se,K(["type","target","attributes"],{type:"xref",target:kt,attributes:_e})).$convert())},{$$s:M})),Z(pe)&&Z(P["$include?"]("tnote"))&&(P=qe(P,"gsub",[xe("InlineFootnoteMacroRx")],function S(){var b,F,H,_e=S.$$s==null?this:S.$$s,ue=A,Se=A,Be=A,Xe=A,it=A,pt=A;if(Z(((b=Ne["~"])===A?A:b["$[]"](0))["$start_with?"](xe("RS"))))return((b=Ne["~"])===A?A:b["$[]"](0)).$slice(1,((b=Ne["~"])===A?A:b["$[]"](0)).$length());if(Z((b=Ne["~"])===A?A:b["$[]"](1)))if(Z((b=Ne["~"])===A?A:b["$[]"](3)))F=((H=Ne["~"])===A?A:H["$[]"](3)).$split(",",2),b=Le(F),ue=b[0]==null?A:b[0],Se=b[1]==null?A:b[1],Z(_.$compat_mode())||_e.$logger().$warn("found deprecated footnoteref macro: "+((b=Ne["~"])===A?A:b["$[]"](0))+"; use footnote macro with target instead");else return(b=Ne["~"])===A?A:b["$[]"](0);else ue=(b=Ne["~"])===A?A:b["$[]"](2),Se=(b=Ne["~"])===A?A:b["$[]"](3);if(Z(ue))Z(Be=qe(_.$footnotes(),"find",[],function(bt){return bt==null&&(bt=A),bt.$id()["$=="](ue)}))?(b=[Be.$index(),Be.$text()],Xe=b[0],Se=b[1],b=["xref",ue,A],it=b[0],pt=b[1],ue=b[2]):Z(Se)?(Se=_e.$restore_passthroughs(_e.$normalize_text(Se,!0,!0)),Xe=_.$counter("footnote-number"),_.$register("footnotes",rt(xe("Document"),"Footnote").$new(Xe,ue,Se)),b=["ref",A],it=b[0],pt=b[1]):(_e.$logger().$warn("invalid footnote reference: "+ue),b=["xref",ue,ue,A],it=b[0],pt=b[1],Se=b[2],ue=b[3]);else if(Z(Se))Se=_e.$restore_passthroughs(_e.$normalize_text(Se,!0,!0)),Xe=_.$counter("footnote-number"),_.$register("footnotes",rt(xe("Document"),"Footnote").$new(Xe,ue,Se)),it=pt=A;else return(b=Ne["~"])===A?A:b["$[]"](0);return xe("Inline").$new(_e,"footnote",Se,K(["attributes","id","target","type"],{attributes:K(["index"],{index:Xe}),id:ue,target:pt,type:it})).$convert()},{$$s:M})),P}),R(Re,"$sub_post_replacements",function(P){var M=this,ae=A,ie=A;return M.document==null&&(M.document=A),M.attributes==null&&(M.attributes=A),Z(M.attributes["$[]"]("hardbreaks-option"))||Z(M.document.$attributes()["$[]"]("hardbreaks-option"))?(ae=P.$split(xe("LF"),-1),Z(dt(ae.$size(),2))?P:(ie=ae.$pop(),qe(ae,"map",[],function pe(Y){var g=pe.$$s==null?this:pe.$$s;return Y==null&&(Y=A),xe("Inline").$new(g,"break",Z(Y["$end_with?"](xe("HARD_LINE_BREAK")))?Y.$slice(0,Je(Y.$length(),2)):Y,K(["type"],{type:"line"})).$convert()},{$$s:M})["$<<"](ie).$join(xe("LF")))):Z(P["$include?"](xe("PLUS")))&&Z(P["$include?"](xe("HARD_LINE_BREAK")))?qe(P,"gsub",[xe("HardLineBreakRx")],function pe(){var Y,g=pe.$$s==null?this:pe.$$s;return xe("Inline").$new(g,"break",(Y=Ne["~"])===A?A:Y["$[]"](1),K(["type"],{type:"line"})).$convert()},{$$s:M}):P}),R(Re,"$sub_source",function(P,M){var ae=this;return Z(M)?ae.$sub_callouts(ae.$sub_specialchars(P)):ae.$sub_specialchars(P)}),R(Re,"$sub_callouts",function(P){var M=this,ae=A,ie=A;return ae=Z(M["$attr?"]("line-comment"))?xe("CalloutSourceRxMap")["$[]"](M.$attr("line-comment")):xe("CalloutSourceRx"),ie=0,qe(P,"gsub",[ae],function pe(){var Y,g=pe.$$s==null?this:pe.$$s,u=A;return g.document==null&&(g.document=A),Z((Y=Ne["~"])===A?A:Y["$[]"](2))?((Y=Ne["~"])===A?A:Y["$[]"](0)).$sub(xe("RS"),""):xe("Inline").$new(g,"callout",Ke((Y=Ne["~"])===A?A:Y["$[]"](4),".")?(ie=y(ie,1)).$to_s():(Y=Ne["~"])===A?A:Y["$[]"](4),K(["id","attributes"],{id:g.document.$callouts().$read_next_id(),attributes:K(["guard"],{guard:Z(u=(Y=Ne["~"])===A?A:Y["$[]"](1))?u:Ke((Y=Ne["~"])===A?A:Y["$[]"](3),"--")?["<!--","-->"]:A})})).$convert()},{$$s:M})}),R(Re,"$highlight_source",function(P,M){var ae,ie,pe=this,Y=A,g=A,u=A,_=A,z=A,S=A,b=A,F=A,H=A,_e=A;return pe.document==null&&(pe.document=A),pe.passthroughs==null&&(pe.passthroughs=A),Z(Y=pe.document.$syntax_highlighter())&&Z(Y["$highlight?"]())?(Z(M)&&(ie=pe.$extract_callouts(P),ae=Le(ie),P=ae[0]==null?A:ae[0],g=ae[1]==null?A:ae[1]),u=pe.document.$attributes(),_=Y.$name(),Z(S=Z(pe["$attr?"]("linenums"))?(Z(b=u["$[]"](""+_+"-linenums-mode"))?b:"table").$to_sym():A)&&Z(dt(z=pe.$attr("start",1).$to_i(),1))&&(z=1),Z(pe["$attr?"]("highlight"))&&(F=pe.$resolve_lines_to_highlight(P,pe.$attr("highlight"),z)),ie=Y.$highlight(pe,P,pe.$attr("language"),K(["callouts","css_mode","highlight_lines","number_lines","start_line_number","style"],{callouts:g,css_mode:(Z(b=u["$[]"](""+_+"-css"))?b:"class").$to_sym(),highlight_lines:F,number_lines:S,start_line_number:z,style:u["$[]"](""+_+"-style")})),ae=Le(ie),H=ae[0]==null?A:ae[0],_e=ae[1]==null?A:ae[1],Z(pe.passthroughs["$empty?"]())||(H=H.$gsub(xe("HighlightedPassSlotRx"),""+xe("PASS_START")+"\\1"+xe("PASS_END"))),Z(g["$nil_or_empty?"]())?H:pe.$restore_callouts(H,g,_e)):pe.$sub_source(P,M)}),R(Re,"$resolve_lines_to_highlight",function(P,M,ae){var ie=A,pe=A;return ae==null&&(ae=A),ie=[],Z(M["$include?"](" "))&&(M=M.$delete(" ")),qe(Z(M["$include?"](","))?M.$split(","):M.$split(";"),"map",[],function(g){var u,_,z=A,S=A,b=A,F=A,H=A;return g==null&&(g=A),Z(g["$start_with?"]("!"))&&(g=g.$slice(1,g.$length()),z=!0),Z(S=Z(g["$include?"](".."))?"..":Z(g["$include?"]("-"))?"-":A)?(_=g.$partition(S),u=Le(_),b=u[0]==null?A:u[0],u[1]==null||u[1],F=u[2]==null?A:u[2],(Z(F["$empty?"]())||Z(dt(F=F.$to_i(),0)))&&(F=y(P.$count(xe("LF")),1)),Z(z)?ie=Je(ie,a.Range.$new(b.$to_i(),F,!1).$to_a()):ie=ie["$|"](a.Range.$new(b.$to_i(),F,!1).$to_a())):Z(z)?ie.$delete(g.$to_i()):Ue(ie["$include?"](H=g.$to_i()))?ie["$<<"](H):A}),Ke(pe=Z(ae)?Je(ae,1):0,0)||(ie=qe(ie,"map",[],function(g){return g==null&&(g=A),Je(g,pe)})),ie.$sort()},-3),R(Re,"$extract_passthroughs",function(P){var M,ae,ie=this,pe=A,Y=A,g=A,u=A,_=A;return ie.document==null&&(ie.document=A),ie.passthroughs==null&&(ie.passthroughs=A),pe=ie.document.$compat_mode(),Y=ie.passthroughs,(Z(P["$include?"]("++"))||Z(P["$include?"]("$$"))||Z(P["$include?"]("ss:")))&&(P=qe(P,"gsub",[xe("InlinePassMacroRx")],function z(){var S,b=z.$$s==null?this:z.$$s,F=A,H=A,_e=A,ue=A,Se=A,Be=A,Xe=A,it=A,pt=A;if(Z(F=(S=Ne["~"])===A?A:S["$[]"](4))){if(Z(pe)&&Ke(F,"++"))return(Z((S=Ne["~"])===A?A:S["$[]"](2))?""+((S=Ne["~"])===A?A:S["$[]"](1))+"["+((S=Ne["~"])===A?A:S["$[]"](2))+"]"+((S=Ne["~"])===A?A:S["$[]"](3)):""+((S=Ne["~"])===A?A:S["$[]"](1))+((S=Ne["~"])===A?A:S["$[]"](3)))+"++"+b.$extract_passthroughs((S=Ne["~"])===A?A:S["$[]"](5))+"++";if(Z(H=(S=Ne["~"])===A?A:S["$[]"](2))){if(Z(st(_e=((S=Ne["~"])===A?A:S["$[]"](3)).$length(),0)))return""+((S=Ne["~"])===A?A:S["$[]"](1))+"["+H+"]"+I(xe("RS"),Je(_e,1))+F+((S=Ne["~"])===A?A:S["$[]"](5))+F;Ke((S=Ne["~"])===A?A:S["$[]"](1),xe("RS"))?ue="["+H+"]":Ke(F,"++")?Ke(H,"x-")?(Se=!0,Be=K([],{})):Z(H["$end_with?"](" x-"))?(Se=!0,Be=b.$parse_quoted_text_attributes(H.$slice(0,Je(H.$length(),3)))):Be=b.$parse_quoted_text_attributes(H):Be=b.$parse_quoted_text_attributes(H)}else if(Z(st(_e=((S=Ne["~"])===A?A:S["$[]"](3)).$length(),0)))return""+I(xe("RS"),Je(_e,1))+F+((S=Ne["~"])===A?A:S["$[]"](5))+F;Xe=Ke(F,"+++")?[]:xe("BASIC_SUBS"),Z(Be)?Z(Se)?Y["$[]="](it=Y.$size(),K(["text","subs","type","attributes"],{text:(S=Ne["~"])===A?A:S["$[]"](5),subs:xe("NORMAL_SUBS"),type:"monospaced",attributes:Be})):Y["$[]="](it=Y.$size(),K(["text","subs","type","attributes"],{text:(S=Ne["~"])===A?A:S["$[]"](5),subs:Xe,type:"unquoted",attributes:Be})):Y["$[]="](it=Y.$size(),K(["text","subs"],{text:(S=Ne["~"])===A?A:S["$[]"](5),subs:Xe}))}else{if(Ke((S=Ne["~"])===A?A:S["$[]"](6),xe("RS")))return((S=Ne["~"])===A?A:S["$[]"](0)).$slice(1,((S=Ne["~"])===A?A:S["$[]"](0)).$length());Z(Xe=(S=Ne["~"])===A?A:S["$[]"](7))?Y["$[]="](it=Y.$size(),K(["text","subs"],{text:b.$normalize_text((S=Ne["~"])===A?A:S["$[]"](8),A,!0),subs:b.$resolve_pass_subs(Xe)})):Y["$[]="](it=Y.$size(),K(["text"],{text:b.$normalize_text((S=Ne["~"])===A?A:S["$[]"](8),A,!0)}))}return""+(Z(pt=ue)?pt:"")+xe("PASS_START")+it+xe("PASS_END")},{$$s:ie})),ae=xe("InlinePassRx")["$[]"](pe),M=Le(ae),g=M[0]==null?A:M[0],u=M[1]==null?A:M[1],_=M[2]==null?A:M[2],(Z(P["$include?"](g))||Z(u)&&Z(P["$include?"](u)))&&(P=qe(P,"gsub",[_],function z(){var S,b=z.$$s==null?this:z.$$s,F=A,H=A,_e=A,ue=A,Se=A,Be=A,Xe=A,it=A,pt=A,at=A,bt=A,kt=A;if(F=(S=Ne["~"])===A?A:S["$[]"](1),H=Z(_e=(S=Ne["~"])===A?A:S["$[]"](4))?_e:(S=Ne["~"])===A?A:S["$[]"](3),Z((S=Ne["~"])===A?A:S["$[]"](5))&&(ue=!0),Se=(S=Ne["~"])===A?A:S["$[]"](6),Be=(S=Ne["~"])===A?A:S["$[]"](7),Xe=(S=Ne["~"])===A?A:S["$[]"](8),Z(pe)?it=!0:Z(H)&&(Ke(H,"x-")||Z(H["$end_with?"](" x-")))&&(it=pt=!0),Z(H)){if(Z(ue))return""+F+"["+H+"]"+Se.$slice(1,Se.$length());if(Ke(F,xe("RS"))){if(Z(pt)&&Ke(Be,"`"))return""+F+"["+H+"]"+Se;F="["+H+"]"}else Z(pt)?at=Ke(H,"x-")?K([],{}):b.$parse_quoted_text_attributes(H.$slice(0,Je(H.$length(),3))):at=b.$parse_quoted_text_attributes(H)}else{if(Z(ue))return""+F+Se.$slice(1,Se.$length());if(Z(pe)&&Ke(F,xe("RS")))return Se}return Z(pe)?Y["$[]="](bt=Y.$size(),K(["text","subs","attributes","type"],{text:Xe,subs:xe("BASIC_SUBS"),attributes:at,type:"monospaced"})):Z(at)?Z(it)?(kt=Ke(Be,"`")?xe("BASIC_SUBS"):xe("NORMAL_SUBS"),Y["$[]="](bt=Y.$size(),K(["text","subs","attributes","type"],{text:Xe,subs:kt,attributes:at,type:"monospaced"}))):Y["$[]="](bt=Y.$size(),K(["text","subs","attributes","type"],{text:Xe,subs:xe("BASIC_SUBS"),attributes:at,type:"unquoted"})):Y["$[]="](bt=Y.$size(),K(["text","subs"],{text:Xe,subs:xe("BASIC_SUBS")})),""+F+xe("PASS_START")+bt+xe("PASS_END")},{$$s:ie})),Z(P["$include?"](":"))&&(Z(P["$include?"]("stem:"))||Z(P["$include?"]("math:")))&&(P=qe(P,"gsub",[xe("InlineStemMacroRx")],function z(){var S,b=z.$$s==null?this:z.$$s,F=A,H=A,_e=A,ue=A;return b.document==null&&(b.document=A),Z(((S=Ne["~"])===A?A:S["$[]"](0))["$start_with?"](xe("RS")))?((S=Ne["~"])===A?A:S["$[]"](0)).$slice(1,((S=Ne["~"])===A?A:S["$[]"](0)).$length()):(Ke(F=((S=Ne["~"])===A?A:S["$[]"](1)).$to_sym(),"stem")&&(F=xe("STEM_TYPE_ALIASES")["$[]"](b.document.$attributes()["$[]"]("stem")).$to_sym()),H=(S=Ne["~"])===A?A:S["$[]"](2),_e=b.$normalize_text((S=Ne["~"])===A?A:S["$[]"](3),A,!0),Ke(F,"latexmath")&&Z(_e["$start_with?"]("$"))&&Z(_e["$end_with?"]("$"))&&(_e=_e.$slice(1,Je(_e.$length(),2))),H=Z(H)?b.$resolve_pass_subs(H):Z(b.document["$basebackend?"]("html"))?xe("BASIC_SUBS"):A,Y["$[]="](ue=Y.$size(),K(["text","subs","type"],{text:_e,subs:H,type:F})),""+xe("PASS_START")+ue+xe("PASS_END"))},{$$s:ie})),P}),R(Re,"$restore_passthroughs",function(P){var M=this,ae=A;return M.passthroughs==null&&(M.passthroughs=A),ae=M.passthroughs,qe(P,"gsub",[xe("PassSlotRx")],function ie(){var pe,Y=ie.$$s==null?this:ie.$$s,g=A,u=A,_=A,z=A,S=A;return Z(g=ae["$[]"](((pe=Ne["~"])===A?A:pe["$[]"](1)).$to_i()))?(u=Y.$apply_subs(g["$[]"]("text"),g["$[]"]("subs")),Z(_=g["$[]"]("type"))&&(Z(z=g["$[]"]("attributes"))&&(S=z["$[]"]("id")),u=xe("Inline").$new(Y,"quoted",u,K(["type","id","attributes"],{type:_,id:S,attributes:z})).$convert()),Z(u["$include?"](xe("PASS_START")))?Y.$restore_passthroughs(u):u):(Y.$logger().$error("unresolved passthrough detected: "+P),"??pass??")},{$$s:M})}),R(Re,"$resolve_subs",function(P,M,ae,ie){var pe=this,Y=A,g=A,u=A,_=A;return M==null&&(M="block"),ae==null&&(ae=A),ie==null&&(ie=A),Z(P["$nil_or_empty?"]())||(Y=A,Z(P["$include?"](" "))&&(P=P.$delete(" ")),g=xe("SubModifierSniffRx")["$match?"](P),qe(P.$split(","),"each",[],function(S){var b=A,F=A,H=A,_e=A,ue=A,Se=A;if(S==null&&(S=A),b=A,Z(g)&&(Ke(F=S.$chr(),"+")?(b="append",S=S.$slice(1,S.$length())):Ke(F,"-")?(b="remove",S=S.$slice(1,S.$length())):Z(S["$end_with?"]("+"))&&(b="prepend",S=S.$chop())),S=S.$to_sym(),Ke(M,"inline")&&(Ke(S,"verbatim")||Ke(S,"v"))?H=xe("BASIC_SUBS"):Z(xe("SUB_GROUPS")["$key?"](S))?H=xe("SUB_GROUPS")["$[]"](S):Ke(M,"inline")&&Ke(S.$length(),1)&&Z(xe("SUB_HINTS")["$key?"](S))?(_e=xe("SUB_HINTS")["$[]"](S),Z(ue=xe("SUB_GROUPS")["$[]"](_e))?H=ue:H=[_e]):H=[S],Z(b))switch(Y=Z(Se=Y)?Se:Z(ae)?ae.$drop(0):[],b){case"append":return Y=y(Y,H);case"prepend":return Y=y(H,Y);case"remove":return Y=Je(Y,H);default:return A}else return Y=Z(Se=Y)?Se:[],Y=y(Y,H)}),!Z(Y))?A:(u=Y["$&"](xe("SUB_OPTIONS")["$[]"](M)),Z(Je(Y,u)["$empty?"]())||(_=Je(Y,u),pe.$logger().$warn("invalid substitution type"+(Z(st(_.$size(),1))?"s":"")+(Z(ie)?" for ":"")+ie+": "+_.$join(", "))),u)},-2),R(Re,"$resolve_block_subs",function(P,M,ae){var ie=this;return ie.$resolve_subs(P,"block",M,ae)}),R(Re,"$resolve_pass_subs",function(P){var M=this;return M.$resolve_subs(P,"inline",A,"passthrough macro")}),R(Re,"$expand_subs",function(P,M){var ae=this,ie=A,pe=A,Y=A;return M==null&&(M=A),Ve(rt("Symbol"),ie=P)?Ke(P,"none")?A:Z(pe=xe("SUB_GROUPS")["$[]"](P))?pe:[P]:Ve(rt("Array"),ie)?(Y=[],qe(P,"each",[],function(u){var _=A;return u==null&&(u=A),Ke(u,"none")?A:Z(_=xe("SUB_GROUPS")["$[]"](u))?Y=y(Y,_):Y["$<<"](u)}),Z(Y["$empty?"]())?A:Y):ae.$resolve_subs(P,"inline",A,M)},-2),R(Re,"$commit_subs",function(){var P=this,M=A,ae=A,ie=A,pe=A,Y=A;if(P.default_subs==null&&(P.default_subs=A),P.content_model==null&&(P.content_model=A),P.context==null&&(P.context=A),P.subs==null&&(P.subs=A),P.attributes==null&&(P.attributes=A),P.document==null&&(P.document=A),P.style==null&&(P.style=A),!Z(M=P.default_subs))switch(P.content_model){case"simple":M=xe("NORMAL_SUBS");break;case"verbatim":M=Ke(P.context,"verse")?xe("NORMAL_SUBS"):xe("VERBATIM_SUBS");break;case"raw":M=Ke(P.context,"stem")?xe("BASIC_SUBS"):xe("NO_SUBS");break;default:return P.subs}return Z(ae=P.attributes["$[]"]("subs"))?P.subs=Z(ie=P.$resolve_block_subs(ae,M,P.context))?ie:[]:P.subs=M.$drop(0),Ke(P.context,"listing")&&Ke(P.style,"source")&&Z(Y=P.document.$syntax_highlighter())&&Z(Y["$highlight?"]())&&Z(pe=P.subs.$index("specialcharacters"))&&P.subs["$[]="](pe,"highlight"),A}),R(Re,"$parse_attributes",function(P,M,ae){var ie=this,pe=A,Y=A;return ie.document==null&&(ie.document=A),M==null&&(M=[]),ae==null&&(ae=K([],{})),Z(Z(P)?P["$empty?"]():!0)?K([],{}):(Z(ae["$[]"]("unescape_input"))&&(P=ie.$normalize_text(P,!0,!0)),Z(ae["$[]"]("sub_input"))&&Z(P["$include?"](xe("ATTR_REF_HEAD")))&&(P=ie.document.$sub_attributes(P)),Z(ae["$[]"]("sub_result"))&&(pe=ie),Z(Y=ae["$[]"]("into"))?xe("AttributeList").$new(P,pe).$parse_into(Y,M):xe("AttributeList").$new(P,pe).$parse(M))},-2),Re.$private(),R(Re,"$extract_attributes_from_text",function(P,M){var ae=this,ie=A,pe=A,Y=A;return M==null&&(M=A),ie=Z(P["$include?"](xe("LF")))?P.$tr(xe("LF")," "):P,Z(pe=(Y=xe("AttributeList").$new(ie,ae).$parse())["$[]"](1))?Ke(pe,ie)?[P,Y.$clear()]:[pe,Y]:[M,Y]},-2),R(Re,"$extract_callouts",function(P){var M=this,ae=A,ie=A,pe=A,Y=A,g=A;return ae=K([],{}),ie=pe=0,Y=A,g=Z(M["$attr?"]("line-comment"))?xe("CalloutExtractRxMap")["$[]"](M.$attr("line-comment")):xe("CalloutExtractRx"),P=qe(P.$split(xe("LF"),-1),"map",[],function(_){return _==null&&(_=A),pe=y(pe,1),qe(_,"gsub",[g],function(){var S,b=A;return Z((S=Ne["~"])===A?A:S["$[]"](2))?((S=Ne["~"])===A?A:S["$[]"](0)).$sub(xe("RS"),""):((Z(b=ae["$[]"](pe))?b:(S=[pe,[]],qe(ae,"[]=",S),S[S.length-1]))["$<<"]([Z(b=(S=Ne["~"])===A?A:S["$[]"](1))?b:Ke((S=Ne["~"])===A?A:S["$[]"](3),"--")?["<!--","-->"]:A,Ke((S=Ne["~"])===A?A:S["$[]"](4),".")?(ie=y(ie,1)).$to_s():(S=Ne["~"])===A?A:S["$[]"](4)]),Y=pe,"")})}).$join(xe("LF")),Z(Y)?Ke(Y,pe)&&(P=""+P+xe("LF")):ae=A,[P,ae]}),R(Re,"$restore_callouts",function(P,M,ae){var ie=this,pe=A,Y=A;return ae==null&&(ae=A),Z(ae)?(pe=P.$slice(0,ae),P=P.$slice(ae,P.$length())):pe="",Y=0,y(pe,qe(P.$split(xe("LF"),-1),"map",[],function g(u){var _,z,S=g.$$s==null?this:g.$$s,b=A,F=A,H=A;return S.document==null&&(S.document=A),u==null&&(u=A),Z(b=M.$delete(Y=y(Y,1)))?Ke(b.$size(),1)?(z=b["$[]"](0),_=Le(z),F=_[0]==null?A:_[0],H=_[1]==null?A:_[1],""+u+xe("Inline").$new(S,"callout",H,K(["id","attributes"],{id:S.document.$callouts().$read_next_id(),attributes:K(["guard"],{guard:F})})).$convert()):""+u+qe(b,"map",[],function _e(ue,Se){var Be=_e.$$s==null?this:_e.$$s;return Be.document==null&&(Be.document=A),ue==null&&(ue=A),Se==null&&(Se=A),xe("Inline").$new(Be,"callout",Se,K(["id","attributes"],{id:Be.document.$callouts().$read_next_id(),attributes:K(["guard"],{guard:ue})})).$convert()},{$$s:S}).$join(" "):u},{$$s:ie}).$join(xe("LF")))},-3),R(Re,"$convert_quoted_text",function(P,M,ae){var ie=this,pe=A,Y=A,g=A,u=A,_=A;if(Z(P["$[]"](0)["$start_with?"](xe("RS"))))if(Ke(ae,"constrained")&&Z(pe=P["$[]"](2)))Y="["+pe+"]";else return P["$[]"](0).$slice(1,P["$[]"](0).$length());return Ke(ae,"constrained")?Z(Y)?""+Y+xe("Inline").$new(ie,"quoted",P["$[]"](3),K(["type"],{type:M})).$convert():(Z(g=P["$[]"](2))&&(u=(_=ie.$parse_quoted_text_attributes(g))["$[]"]("id"),Ke(M,"mark")&&(M="unquoted")),""+P["$[]"](1)+xe("Inline").$new(ie,"quoted",P["$[]"](3),K(["type","id","attributes"],{type:M,id:u,attributes:_})).$convert()):(Z(g=P["$[]"](1))&&(u=(_=ie.$parse_quoted_text_attributes(g))["$[]"]("id"),Ke(M,"mark")&&(M="unquoted")),xe("Inline").$new(ie,"quoted",P["$[]"](2),K(["type","id","attributes"],{type:M,id:u,attributes:_})).$convert())}),R(Re,"$do_replacement",function(P,M,ae){var ie=A;if(Z((ie=P["$[]"](0))["$include?"](xe("RS"))))return ie.$sub(xe("RS"),"");switch(ae){case"none":return M;case"bounding":return y(y(P["$[]"](1),M),P["$[]"](2));default:return y(P["$[]"](1),M)}}),R(Re,"$parse_quoted_text_attributes",function(P){var M,ae,ie=this,pe=A,Y=A,g=A,u=A,_=A;return Z(P["$include?"](xe("ATTR_REF_HEAD")))&&(P=ie.$sub_attributes(P)),Z(P["$include?"](","))&&(P=P.$slice(0,P.$index(","))),Z((P=P.$strip())["$empty?"]())?K([],{}):Z(P["$start_with?"](".","#"))&&Z(xe("Compliance").$shorthand_property_syntax())?(ae=P.$partition("#"),M=Le(ae),pe=M[0]==null?A:M[0],M[1]==null||M[1],Y=M[2]==null?A:M[2],g=K([],{}),Z(Y["$empty?"]())?Z(st(pe.$length(),1))&&g["$[]="]("role",pe.$tr("."," ").$lstrip()):(ae=Y.$partition("."),M=Le(ae),u=M[0]==null?A:M[0],M[1]==null||M[1],_=M[2]==null?A:M[2],Z(u["$empty?"]())||g["$[]="]("id",u),Z(_["$empty?"]())?Z(st(pe.$length(),1))&&g["$[]="]("role",pe.$tr("."," ").$lstrip()):Z(st(pe.$length(),1))?g["$[]="]("role",y(y(pe,"."),_).$tr("."," ").$lstrip()):g["$[]="]("role",_.$tr("."," "))),g):K(["role"],{role:P})}),R(Re,"$normalize_text",function(P,M,ae){return M==null&&(M=A),ae==null&&(ae=A),Z(P["$empty?"]())||(Z(M)&&(P=P.$strip().$tr(xe("LF")," ")),Z(ae)&&Z(P["$include?"](xe("R_SB")))&&(P=P.$gsub(xe("ESC_R_SB"),xe("R_SB")))),P},-2),R(Re,"$split_simple_csv",function(P){var M=A,ae=A,ie=A;return Z(P["$empty?"]())?[]:Z(P["$include?"]('"'))?(M=[],ae="",ie=A,qe(P,"each_char",[],function(Y){switch(Y==null&&(Y=A),Y){case",":return Z(ie)?ae=y(ae,Y):(M["$<<"](ae.$strip()),ae="");case'"':return ie=ie["$!"]();default:return ae=y(ae,Y)}}),M["$<<"](ae.$strip())):qe(P.$split(","),"map",[],function(Y){return Y==null&&(Y=A),Y.$strip()})})}(He[0],He)}(tt[0],tt)},Opal.modules["asciidoctor/version"]=function(a){var oe=a.module,se=a.const_set,K=[];return a.nil,function(ye,y){var X=oe(ye,"Asciidoctor"),Ue=[X].concat(y);return se(Ue[0],"VERSION","2.0.20")}(K[0],K)},Opal.modules["asciidoctor/abstract_node"]=function(a){var oe=a.module,se=a.klass,K=a.hash2,ye=a.eqeq,y=a.truthy,X=a.def,Ue=a.send,Z=a.rb_minus,qe=a.eqeqeq,R=a.rb_lt,et=a.not,Ne=a.to_ary,Ke=[],Le=a.nil,Pe=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(ht,Ve){var st=oe(ht,"Asciidoctor"),Ye=[st].concat(Ve);return function(Je,dt,I){var tt=se(Je,dt,"AbstractNode"),A=[tt].concat(I),rt=a.$r(A),lt=tt.$$prototype;return lt.document=lt.attributes=lt.parent=Le,tt.$include(rt("Logging")),tt.$include(rt("Substitutors")),tt.$attr_reader("attributes"),tt.$attr_reader("context"),tt.$attr_reader("document"),tt.$attr_accessor("id"),tt.$attr_reader("node_name"),tt.$attr_reader("parent"),X(tt,"$initialize",function(L,He,ke){var Ie=this,Re=Le;return ke==null&&(ke=K([],{})),ye(He,"document")?Ie.document=Ie:y(L)&&(Ie.document=(Ie.parent=L).$document()),Ie.node_name=(Ie.context=He).$to_s(),Ie.attributes=y(Re=ke["$[]"]("attributes"))?Re.$merge():K([],{}),Ie.passthroughs=[]},-3),X(tt,"$block?",function(){var L=this;return L.$raise(Pe("NotImplementedError"))}),X(tt,"$inline?",function(){var L=this;return L.$raise(Pe("NotImplementedError"))}),X(tt,"$converter",function(){var L=this;return L.document.$converter()}),X(tt,"$parent=",function(L){var He,ke=this;return He=[L,L.$document()],ke.parent=He[0],ke.document=He[1],He}),X(tt,"$attr",function(L,He,ke){var Ie=this,Re=Le,ce=Le,xe=Le,ee=Le;return He==null&&(He=Le),ke==null&&(ke=Le),y(Re=Ie.attributes["$[]"](L.$to_s()))?Re:y(ce=y(xe=y(ee=ke)?Ie.parent:ee)?Ie.document.$attributes()["$[]"]((ye(ke,!0)?L:ke).$to_s()):xe)?ce:He},-2),X(tt,"$attr?",function(L,He,ke){var Ie=this,Re=Le;return He==null&&(He=Le),ke==null&&(ke=Le),y(He)?He["$=="](y(Re=Ie.attributes["$[]"](L.$to_s()))?Re:y(ke)&&y(Ie.parent)?Ie.document.$attributes()["$[]"]((ye(ke,!0)?L:ke).$to_s()):Le):y(Re=Ie.attributes["$key?"](L.$to_s()))?Re:y(ke)&&y(Ie.parent)?Ie.document.$attributes()["$key?"]((ye(ke,!0)?L:ke).$to_s()):!1},-2),X(tt,"$set_attr",function(L,He,ke){var Ie=this;return He==null&&(He=""),ke==null&&(ke=!0),ye(ke,!1)&&y(Ie.attributes["$key?"](L))?!1:(Ie.attributes["$[]="](L,He),!0)},-2),X(tt,"$remove_attr",function(L){var He=this;return He.attributes.$delete(L)}),X(tt,"$option?",function(L){var He=this;return!!y(He.attributes["$[]"](""+L+"-option"))}),X(tt,"$set_option",function(L){var He=this;return He.attributes["$[]="](""+L+"-option",""),Le}),X(tt,"$enabled_options",function(){var L=this;return Ue(Pe("Set").$new(),"tap",[],function He(ke){var Ie=He.$$s==null?this:He.$$s;return Ie.attributes==null&&(Ie.attributes=Le),ke==null&&(ke=Le),Ue(Ie.attributes,"each_key",[],function(ce){return ce==null&&(ce=Le),y(ce.$to_s()["$end_with?"]("-option"))?ke["$<<"](ce.$slice(0,Z(ce.$length(),7))):Le})},{$$s:L})}),X(tt,"$update_attributes",function(L){var He=this;return He.attributes.$update(L)}),X(tt,"$role",function(){var L=this;return L.attributes["$[]"]("role")}),X(tt,"$roles",function(){var L=this,He=Le;return y(He=L.attributes["$[]"]("role"))?He.$split():[]}),X(tt,"$role?",function(L){var He=this;return L==null&&(L=Le),y(L)?L["$=="](He.attributes["$[]"]("role")):He.attributes["$key?"]("role")},-1),X(tt,"$has_role?",function(L){var He=this,ke=Le;return y(ke=He.attributes["$[]"]("role"))?(" "+ke+" ")["$include?"](" "+L+" "):!1}),X(tt,"$role=",function(L){var He,ke=this;return He=["role",qe(Pe("Array"),L)?L.$join(" "):L],Ue(ke.attributes,"[]=",He),He[He.length-1]}),X(tt,"$add_role",function(L){var He=this,ke=Le;return y(ke=He.attributes["$[]"]("role"))?y((" "+ke+" ")["$include?"](" "+L+" "))?!1:(He.attributes["$[]="]("role",""+ke+" "+L),!0):(He.attributes["$[]="]("role",L),!0)}),X(tt,"$remove_role",function(L){var He=this,ke=Le;return y(ke=He.attributes["$[]"]("role"))&&y((ke=ke.$split()).$delete(L))?(y(ke["$empty?"]())?He.attributes.$delete("role"):He.attributes["$[]="]("role",ke.$join(" ")),!0):!1}),X(tt,"$reftext",function(){var L=this,He=Le;return y(He=L.attributes["$[]"]("reftext"))?L.$apply_reftext_subs(He):Le}),X(tt,"$reftext?",function(){var L=this;return L.attributes["$key?"]("reftext")}),X(tt,"$icon_uri",function(L){var He=this,ke=Le;return y(He["$attr?"]("icon"))?(ke=He.$attr("icon"),y(rt("Helpers")["$extname?"](ke))||(ke=""+ke+"."+He.document.$attr("icontype","png"))):ke=""+L+"."+He.document.$attr("icontype","png"),He.$image_uri(ke,"iconsdir")}),X(tt,"$image_uri",function(L,He){var ke=this,Ie=Le,Re=Le;return He==null&&(He="imagesdir"),y(R((Ie=ke.document).$safe(),Pe(rt("SafeMode"),"SECURE")))&&y(Ie["$attr?"]("data-uri"))?y(rt("Helpers")["$uriish?"](L))&&y(L=rt("Helpers").$encode_spaces_in_uri(L))||y(He)&&y(Re=Ie.$attr(He))&&y(rt("Helpers")["$uriish?"](Re))&&y(L=ke.$normalize_web_path(L,Re,!1))?y(Ie["$attr?"]("allow-uri-read"))?ke.$generate_data_uri_from_uri(L,Ie["$attr?"]("cache-uri")):L:ke.$generate_data_uri(L,He):ke.$normalize_web_path(L,y(He)?Ie.$attr(He):Le)},-2),X(tt,"$media_uri",function(L,He){var ke=this;return He==null&&(He="imagesdir"),ke.$normalize_web_path(L,y(He)?ke.document.$attr(He):Le)},-2),X(tt,"$generate_data_uri",function(L,He){var ke=this,Ie=Le,Re=Le,ce=Le;return He==null&&(He=Le),y(Ie=rt("Helpers").$extname(L,Le))?Re=ye(Ie,".svg")?"image/svg+xml":"image/"+Ie.$slice(1,Ie.$length()):Re="application/octet-stream",y(He)?ce=ke.$normalize_system_path(L,ke.document.$attr(He),Le,K(["target_name"],{target_name:"image"})):ce=ke.$normalize_system_path(L),y(Pe("File")["$readable?"](ce))?"data:"+Re+";base64,"+Pe("Base64").$strict_encode64(Pe("File").$binread(ce)):(ke.$logger().$warn("image to embed not found or not readable: "+ce),"data:"+Re+";base64,")},-2),X(tt,"$generate_data_uri_from_uri",function(L,He){var ke,Ie,Re=this,ce=Le,xe=Le;He==null&&(He=!1),y(He)?rt("Helpers").$require_library("open-uri/cached","open-uri-cached"):et(rt("RUBY_ENGINE_OPAL"))&&Pe("OpenURI");try{return Ie=Ue(Pe("OpenURI"),"open_uri",[L,rt("URI_READ_MODE")],function(P){return P==null&&(P=Le),[P.$content_type(),P.$read()]}),ke=Ne(Ie),ce=ke[0]==null?Le:ke[0],xe=ke[1]==null?Le:ke[1],"data:"+ce+";base64,"+Pe("Base64").$strict_encode64(xe)}catch(ee){if(a.rescue(ee,[rt("StandardError")]))try{return Re.$logger().$warn("could not retrieve image data from URI: "+L),L}finally{a.pop_exception()}else throw ee}},-2),X(tt,"$normalize_asset_path",function(L,He,ke){var Ie=this;return He==null&&(He="path"),ke==null&&(ke=!0),Ie.$normalize_system_path(L,Ie.document.$base_dir(),Le,K(["target_name","recover"],{target_name:He,recover:ke}))},-2),X(tt,"$normalize_system_path",function(L,He,ke,Ie){var Re=this,ce=Le,xe=Le;return He==null&&(He=Le),ke==null&&(ke=Le),Ie==null&&(Ie=K([],{})),y(R((ce=Re.document).$safe(),Pe(rt("SafeMode"),"SAFE")))?y(He)?y(ce.$path_resolver()["$root?"](He))||(He=Pe("File").$join(ce.$base_dir(),He)):He=ce.$base_dir():(He=y(xe=He)?xe:ce.$base_dir(),ke=y(xe=ke)?xe:ce.$base_dir()),ce.$path_resolver().$system_path(L,He,ke,Ie)},-2),X(tt,"$normalize_web_path",function(L,He,ke){var Ie=this;return He==null&&(He=Le),ke==null&&(ke=!0),y(ke)&&y(rt("Helpers")["$uriish?"](L))?rt("Helpers").$encode_spaces_in_uri(L):Ie.document.$path_resolver().$web_path(L,He)},-2),X(tt,"$read_asset",function(L,He){var ke=this,Ie=Le;return He==null&&(He=K([],{})),qe(Pe("Hash"),He)||(He=K(["warn_on_failure"],{warn_on_failure:He["$!="](!1)})),y(Pe("File")["$readable?"](L))?y(He["$[]"]("normalize"))?rt("Helpers").$prepare_source_string(Pe("File").$read(L,K(["mode"],{mode:rt("FILE_READ_MODE")}))).$join(rt("LF")):Pe("File").$read(L,K(["mode"],{mode:rt("FILE_READ_MODE")})):(y(He["$[]"]("warn_on_failure"))&&ke.$logger().$warn(""+(y(Ie=ke.$attr("docfile"))?Ie:"<stdin>")+": "+(y(Ie=He["$[]"]("label"))?Ie:"file")+" does not exist or cannot be read: "+L),Le)},-2),X(tt,"$read_contents",function(L,He){var ke=this,Ie=Le,Re=Le,ce=Le,xe=Le;if(He==null&&(He=K([],{})),Ie=ke.document,y(rt("Helpers")["$uriish?"](L))||y(Re=He["$[]"]("start"))&&y(rt("Helpers")["$uriish?"](Re))&&y(L=Ie.$path_resolver().$web_path(L,Re)))if(y(Ie["$attr?"]("allow-uri-read"))){y(Ie["$attr?"]("cache-uri"))&&rt("Helpers").$require_library("open-uri/cached","open-uri-cached");try{y(He["$[]"]("normalize"))?ce=rt("Helpers").$prepare_source_string(Ue(Pe("OpenURI"),"open_uri",[L,rt("URI_READ_MODE")],function(P){return P==null&&(P=Le),P.$read()})).$join(rt("LF")):ce=Ue(Pe("OpenURI"),"open_uri",[L,rt("URI_READ_MODE")],function(P){return P==null&&(P=Le),P.$read()})}catch(ee){if(a.rescue(ee,[rt("StandardError")]))try{y(He.$fetch("warn_on_failure",!0))&&ke.$logger().$warn("could not retrieve contents of "+(y(xe=He["$[]"]("label"))?xe:"asset")+" at URI: "+L)}finally{a.pop_exception()}else throw ee}}else y(He.$fetch("warn_on_failure",!0))&&ke.$logger().$warn("cannot retrieve contents of "+(y(xe=He["$[]"]("label"))?xe:"asset")+" at URI: "+L+" (allow-uri-read attribute not enabled)");else L=ke.$normalize_system_path(L,He["$[]"]("start"),Le,K(["target_name"],{target_name:y(xe=He["$[]"]("label"))?xe:"asset"})),ce=ke.$read_asset(L,K(["normalize","warn_on_failure","label"],{normalize:He["$[]"]("normalize"),warn_on_failure:He.$fetch("warn_on_failure",!0),label:He["$[]"]("label")}));return y(ce)&&y(He["$[]"]("warn_if_empty"))&&y(ce["$empty?"]())&&ke.$logger().$warn("contents of "+(y(xe=He["$[]"]("label"))?xe:"asset")+" is empty: "+L),ce},-2),X(tt,"$is_uri?",function(L){return rt("Helpers")["$uriish?"](L)})}(Ye[0],null,Ye)}(Ke[0],Ke)},Opal.modules["asciidoctor/abstract_block"]=function(a){var oe=a.module,se=a.klass,K=a.hash2,ye=a.send2,y=a.find_super,X=a.eqeq,Ue=a.eqeqeq,Z=a.def,qe=a.return_val,R=a.truthy,et=a.alias,Ne=a.send,Ke=a.rb_plus,Le=a.not,Pe=a.neqeq,ht=[],Ve=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(Ye,Je){var dt=oe(Ye,"Asciidoctor"),I=[dt].concat(Je),tt=a.$r(I);return function(A,rt,lt){var J=se(A,rt,"AbstractBlock"),L=[J].concat(lt),He=a.$r(L),ke=J.$$prototype;return ke.source_location=ke.document=ke.attributes=ke.blocks=ke.numeral=ke.context=ke.parent=ke.caption=ke.style=ke.converted_title=ke.title=ke.subs=ke.next_section_index=ke.next_section_ordinal=ke.id=ke.header=Ve,J.$attr_reader("blocks"),J.$attr_writer("caption"),J.$attr_accessor("content_model"),J.$attr_accessor("level"),J.$attr_accessor("numeral"),J.$attr_accessor("source_location"),J.$attr_accessor("style"),J.$attr_reader("subs"),Z(J,"$initialize",function Ie(Re,ce,xe){var ee=Ie.$$p||Ve,P=this;return Ie.$$p=null,xe==null&&(xe=K([],{})),ye(P,y(P,"initialize",Ie,!1,!0),"initialize",[Re,ce,xe],ee),P.content_model="compound",P.blocks=[],P.subs=[],P.id=P.title=P.caption=P.numeral=P.style=P.default_subs=P.source_location=Ve,X(ce,"document")||X(ce,"section")?(P.level=P.next_section_index=0,P.next_section_ordinal=1):Ue(He("AbstractBlock"),Re)?P.level=Re.$level():P.level=Ve},-3),Z(J,"$block?",qe(!0)),Z(J,"$inline?",qe(!1)),Z(J,"$file",function(){var Re=this,ce=Ve;return R(ce=Re.source_location)?Re.source_location.$file():ce}),Z(J,"$lineno",function(){var Re=this,ce=Ve;return R(ce=Re.source_location)?Re.source_location.$lineno():ce}),Z(J,"$convert",function(){var Re=this;return Re.document.$playback_attributes(Re.attributes),Re.$converter().$convert(Re)}),et(J,"render","convert"),Z(J,"$content",function(){var Re=this;return Ne(Re.blocks,"map",[],function(xe){return xe==null&&(xe=Ve),xe.$convert()}).$join(He("LF"))}),Z(J,"$context=",function(Re){var ce=this;return ce.node_name=(ce.context=Re).$to_s()}),Z(J,"$<<",function(Re){var ce=this;return X(Re.$parent(),ce)||Re["$parent="](ce),ce.blocks["$<<"](Re),ce}),et(J,"append","<<"),Z(J,"$blocks?",function(){var Re=this;return!R(Re.blocks["$empty?"]())}),Z(J,"$sections?",qe(!1)),Z(J,"$number",function(){var Re=this;try{return Re.$Integer(Re.numeral)}catch(ce){if(a.rescue(ce,[He("StandardError")]))try{return Re.numeral}finally{a.pop_exception()}else throw ce}}),Z(J,"$number=",function(Re){var ce=this;return ce.numeral=Re.$to_s()}),Z(J,"$find_by",function Ie(Re){var ce=Ie.$$p||Ve,xe=this,ee=Ve;Ie.$$p=null,Re==null&&(Re=K([],{}));try{return Ne(xe,"find_by_internal",[Re,ee=[]],ce.$to_proc())}catch(P){if(a.rescue(P,[st("StopIteration")]))try{return ee}finally{a.pop_exception()}else throw P}},-1),et(J,"query","find_by"),Z(J,"$next_adjacent_block",function(){var Re=this,ce=Ve,xe=Ve;return X(Re.context,"document")?Ve:X((ce=Re.parent).$context(),"dlist")&&X(Re.context,"list_item")?R(xe=ce.$items()["$[]"](Ke(Ne(ce.$items(),"find_index",[],function ee(P,M){var ae=ee.$$s==null?this:ee.$$s,ie=Ve;return P==null&&(P=Ve),M==null&&(M=Ve),R(ie=P["$include?"](ae))?ie:M["$=="](ae)},{$$s:Re}),1)))?xe:ce.$next_adjacent_block():R(xe=ce.$blocks()["$[]"](Ke(ce.$blocks().$find_index(Re),1)))?xe:ce.$next_adjacent_block()}),Z(J,"$sections",function(){var Re=this;return Ne(Re.blocks,"select",[],function(xe){return xe==null&&(xe=Ve),xe.$context()["$=="]("section")})}),Z(J,"$alt",function(){var Re=this,ce=Ve;return R(ce=Re.attributes["$[]"]("alt"))?X(ce,Re.attributes["$[]"]("default-alt"))?Re.$sub_specialchars(ce):(ce=Re.$sub_specialchars(ce),R(He("ReplaceableTextRx")["$match?"](ce))?Re.$sub_replacements(ce):ce):""}),Z(J,"$caption",function(){var Re=this;return X(Re.context,"admonition")?Re.attributes["$[]"]("textlabel"):Re.caption}),Z(J,"$captioned_title",function(){var Re=this;return""+Re.caption+Re.$title()}),Z(J,"$list_marker_keyword",function(Re){var ce=this,xe=Ve;return Re==null&&(Re=Ve),He("ORDERED_LIST_KEYWORDS")["$[]"](R(xe=Re)?xe:ce.style)},-1),Z(J,"$title",function(){var Re=this,ce=Ve,xe=Ve;return Re.converted_title=R(ce=Re.converted_title)?ce:R(xe=Re.title)?Re.$apply_title_subs(Re.title):xe}),Z(J,"$title?",function(){var Re=this;return!!R(Re.title)}),Z(J,"$title=",function(Re){var ce=this;return ce.converted_title=Ve,ce.title=Re}),Z(J,"$sub?",function(Re){var ce=this;return ce.subs["$include?"](Re)}),Z(J,"$remove_sub",function(Re){var ce=this;return ce.subs.$delete(Re),Ve}),Z(J,"$xreftext",function(Re){var ce=this,xe=Ve,ee=Ve,P=Ve,M=Ve;if(Re==null&&(Re=Ve),R(xe=ce.$reftext())&&Le(xe["$empty?"]()))return xe;if(R(Re)&&R(ce.title)&&Le(ce.caption["$nil_or_empty?"]()))switch(Re){case"full":return ee=ce.$sub_placeholder(ce.$sub_quotes(R(ce.document.$compat_mode())?"``%s''":'"`%s`"'),ce.$title()),R(ce.numeral)&&R(M=He("CAPTION_ATTRIBUTE_NAMES")["$[]"](ce.context))&&R(P=ce.document.$attributes()["$[]"](M))?""+P+" "+ce.numeral+", "+ee:""+ce.caption.$chomp(". ")+", "+ee;case"short":return R(ce.numeral)&&R(M=He("CAPTION_ATTRIBUTE_NAMES")["$[]"](ce.context))&&R(P=ce.document.$attributes()["$[]"](M))?""+P+" "+ce.numeral:ce.caption.$chomp(". ");default:return ce.$title()}else return ce.$title()},-1),Z(J,"$assign_caption",function(Re,ce){var xe=this,ee=Ve,P=Ve,M=Ve;return ce==null&&(ce=xe.context),R(xe.caption)||Le(xe.title)||R(xe.caption=R(ee=Re)?ee:xe.document.$attributes()["$[]"]("caption"))||R(M=He("CAPTION_ATTRIBUTE_NAMES")["$[]"](ce))&&R(P=xe.document.$attributes()["$[]"](M))&&(xe.caption=""+P+" "+(xe.numeral=xe.document.$increment_and_store_counter(""+ce+"-number",xe))+". "),Ve},-2),Z(J,"$assign_numeral",function(Re){var ce,xe=this,ee=Ve,P=Ve,M=Ve;return xe.next_section_index=Ke((ce=[xe.next_section_index],Ne(Re,"index=",ce),ce[ce.length-1]),1),R(ee=Re.$numbered())&&(X(P=Re.$sectname(),"appendix")?(Re["$numeral="](xe.document.$counter("appendix-number","A")),Re["$caption="](R(M=xe.document.$attributes()["$[]"]("appendix-caption"))?""+M+" "+Re.$numeral()+": ":""+Re.$numeral()+". ")):X(P,"chapter")||X(ee,"chapter")?Re["$numeral="](xe.document.$counter("chapter-number",1).$to_s()):(Re["$numeral="](X(P,"part")?He("Helpers").$int_to_roman(xe.next_section_ordinal):xe.next_section_ordinal.$to_s()),xe.next_section_ordinal=Ke(xe.next_section_ordinal,1))),Ve}),Z(J,"$reindex_sections",function(){var Re=this;return Re.next_section_index=0,Re.next_section_ordinal=1,Ne(Re.blocks,"each",[],function ce(xe){var ee=ce.$$s==null?this:ce.$$s;return xe==null&&(xe=Ve),X(xe.$context(),"section")?(ee.$assign_numeral(xe),xe.$reindex_sections()):Ve},{$$s:Re})}),J.$protected(),Z(J,"$find_by_internal",function Ie(Re,ce){var xe=Ie.$$p||Ve,ee=this,P=Ve,M=Ve,ae=Ve,ie=Ve,pe=Ve,Y=Ve;if(Ie.$$p=null,Re==null&&(Re=K([],{})),ce==null&&(ce=[]),(R(ie=R(pe=Re["$[]"]("context"))?Ve:!0)||X(pe,ee.context))&&(Le(ae=Re["$[]"]("style"))||X(ae,ee.style))&&(Le(M=Re["$[]"]("role"))||R(ee["$has_role?"](M)))&&(Le(P=Re["$[]"]("id"))||X(P,ee.id)))if(xe!==Ve)if(R(Y=a.yield1(xe,ee)))switch(Y){case"prune":return ce["$<<"](ee),R(P)&&ee.$raise(st("StopIteration")),ce;case"reject":return R(P)&&ee.$raise(st("StopIteration")),ce;case"stop":ee.$raise(st("StopIteration"));break;default:ce["$<<"](ee),R(P)&&ee.$raise(st("StopIteration"))}else R(P)&&ee.$raise(st("StopIteration"));else ce["$<<"](ee),R(P)&&ee.$raise(st("StopIteration"));switch(ee.context){case"document":X(pe,"document")||(R(ee["$header?"]())&&(R(ie)||X(pe,"section"))&&Ne(ee.header,"find_by_internal",[Re,ce],xe.$to_proc()),Ne(ee.blocks,"each",[],function(u){return u==null&&(u=Ve),X(pe,"section")&&Pe(u.$context(),"section")?Ve:Ne(u,"find_by_internal",[Re,ce],xe.$to_proc())}));break;case"dlist":(R(ie)||Pe(pe,"section"))&&Ne(ee.blocks.$flatten(),"each",[],function(u){return u==null&&(u=Ve),R(u)?Ne(u,"find_by_internal",[Re,ce],xe.$to_proc()):Ve});break;case"table":R(Re["$[]"]("traverse_documents"))?(Ne(ee.$rows().$head(),"each",[],function(u){return u==null&&(u=Ve),Ne(u,"each",[],function(z){return z==null&&(z=Ve),Ne(z,"find_by_internal",[Re,ce],xe.$to_proc())})}),X(pe,"inner_document")&&(Re=Re.$merge(K(["context"],{context:"document"}))),Ne(Ke(ee.$rows().$body(),ee.$rows().$foot()),"each",[],function(u){return u==null&&(u=Ve),Ne(u,"each",[],function(z){return z==null&&(z=Ve),Ne(z,"find_by_internal",[Re,ce],xe.$to_proc()),X(z.$style(),"asciidoc")?Ne(z.$inner_document(),"find_by_internal",[Re,ce],xe.$to_proc()):Ve})})):Ne(Ke(Ke(ee.$rows().$head(),ee.$rows().$body()),ee.$rows().$foot()),"each",[],function(u){return u==null&&(u=Ve),Ne(u,"each",[],function(z){return z==null&&(z=Ve),Ne(z,"find_by_internal",[Re,ce],xe.$to_proc())})});break;default:Ne(ee.blocks,"each",[],function(u){return u==null&&(u=Ve),X(pe,"section")&&Pe(u.$context(),"section")?Ve:Ne(u,"find_by_internal",[Re,ce],xe.$to_proc())})}return ce},-1)}(I[0],tt("AbstractNode"),I)}(ht[0],ht)},Opal.modules["asciidoctor/attribute_list"]=function(a){var oe=a.module,se=a.klass,K=a.const_set,ye=a.hash,y=a.regexp,X=a.hash2,Ue=a.def,Z=a.truthy,qe=a.rb_plus,R=a.send,et=a.defs,Ne=a.eqeqeq,Ke=a.eqeq,Le=a.rb_times,Pe=[],ht=a.nil,Ve=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,Ye){var Je=oe(st,"Asciidoctor"),dt=[Je].concat(Ye);return function(I,tt,A){var rt=se(I,tt,"AttributeList"),lt=[rt].concat(A),J=a.$r(lt),L=rt.$$prototype;return L.attributes=L.scanner=L.delimiter=L.block=L.delimiter_skip_pattern=L.delimiter_boundary_pattern=ht,K(lt[0],"APOS","'"),K(lt[0],"BACKSLASH","\\"),K(lt[0],"QUOT",'"'),K(lt[0],"BoundaryRx",ye(J("QUOT"),/.*?[^\\](?=")/,J("APOS"),/.*?[^\\](?=')/,",",/.*?(?=[ \t]*(,|$))/)),K(lt[0],"EscapedQuotes",ye(J("QUOT"),'\\"',J("APOS"),"\\'")),K(lt[0],"NameRx",y([J("CG_WORD"),"[",J("CC_WORD"),"\\-.]*"])),K(lt[0],"BlankRx",/[ \t]+/),K(lt[0],"SkipRx",X([","],{",":/[ \t]*(,|$)/})),Ue(rt,"$initialize",function(ke,Ie,Re){var ce=this;return Ie==null&&(Ie=ht),Re==null&&(Re=","),ce.scanner=Ve("StringScanner").$new(ke),ce.block=Ie,ce.delimiter=Re,ce.delimiter_skip_pattern=J("SkipRx")["$[]"](Re),ce.delimiter_boundary_pattern=J("BoundaryRx")["$[]"](Re),ce.attributes=ht},-2),Ue(rt,"$parse_into",function(ke,Ie){var Re=this;return Ie==null&&(Ie=[]),ke.$update(Re.$parse(Ie))},-2),Ue(rt,"$parse",function(ke){var Ie=this,Re=ht;if(ke==null&&(ke=[]),Z(Ie.attributes))return Ie.attributes;for(Ie.attributes=X([],{}),Re=0;Z(Ie.$parse_attribute(Re,ke))&&!Z(Ie.scanner["$eos?"]());)Ie.$skip_delimiter(),Re=qe(Re,1);return Ie.attributes},-1),Ue(rt,"$rekey",function(ke){var Ie=this;return J("AttributeList").$rekey(Ie.attributes,ke)}),et(rt,"$rekey",function(ke,Ie){return R(Ie,"each_with_index",[],function(ce,xe){var ee,P=ht;return ce==null&&(ce=ht),xe==null&&(xe=ht),Z(ce)&&Z(P=ke["$[]"](qe(xe,1)))?(ee=[ce,P],R(ke,"[]=",ee),ee[ee.length-1]):ht}),ke}),rt.$private(),Ue(rt,"$parse_attribute",function(ke,Ie){var Re=this,ce=ht,xe=ht,ee=ht,P=ht,M=ht,ae=ht,ie=ht,pe=ht,Y=ht,g=ht;if(ce=!0,Re.$skip_blank(),Ne(J("QUOT"),xe=Re.scanner.$peek(1)))ee=Re.$parse_attribute_value(Re.scanner.$get_byte());else if(Ne(J("APOS"),xe))ee=Re.$parse_attribute_value(Re.scanner.$get_byte()),Z(ee["$start_with?"](J("APOS")))||(P=!0);else if(M=Z(ae=Z(ie=ee=Re.$scan_name())?Re.$skip_blank():ie)?ae:0,Z(Re.scanner["$eos?"]())){if(!(Z(ee)||Z(Re.scanner.$string().$rstrip()["$end_with?"](Re.delimiter))))return ht;ce=ht}else if(Ke(pe=Re.scanner.$get_byte(),Re.delimiter))Re.scanner.$unscan();else if(Z(ee))if(Ke(pe,"=")){if(Re.$skip_blank(),Ne(J("QUOT"),ae=pe=Re.scanner.$get_byte()))Y=Re.$parse_attribute_value(pe);else if(Ne(J("APOS"),ae))Y=Re.$parse_attribute_value(pe),Z(Y["$start_with?"](J("APOS")))||(P=!0);else if(Ne(Re.delimiter,ae))Y="",Re.scanner.$unscan();else if(Ne(ht,ae))Y="";else if(Y=""+pe+Re.$scan_to_delimiter(),Ke(Y,"None"))return!0}else ee=""+ee+Le(" ",M)+pe+Re.$scan_to_delimiter();else ee=""+pe+Re.$scan_to_delimiter();if(Z(Y))switch(ee){case"options":case"opts":Z(Y["$include?"](","))?(Z(Y["$include?"](" "))&&(Y=Y.$delete(" ")),R(Y.$split(","),"each",[],function u(_){var z,S=u.$$s==null?this:u.$$s;return S.attributes==null&&(S.attributes=ht),_==null&&(_=ht),Z(_["$empty?"]())?ht:(z=[""+_+"-option",""],R(S.attributes,"[]=",z),z[z.length-1])},{$$s:Re})):Z(Y["$empty?"]())||Re.attributes["$[]="](""+Y+"-option","");break;default:if(Z(P)&&Z(Re.block))switch(ee){case"title":case"reftext":Re.attributes["$[]="](ee,Y);break;default:Re.attributes["$[]="](ee,Re.block.$apply_subs(Y))}else Re.attributes["$[]="](ee,Y)}else Z(P)&&Z(Re.block)&&(ee=Re.block.$apply_subs(ee)),Z(g=Ie["$[]"](ke))&&Z(ee)&&Re.attributes["$[]="](g,ee),Re.attributes["$[]="](qe(ke,1),ee);return ce}),Ue(rt,"$parse_attribute_value",function(ke){var Ie=this,Re=ht;return Ke(Ie.scanner.$peek(1),ke)?(Ie.scanner.$get_byte(),""):Z(Re=Ie.$scan_to_quote(ke))?(Ie.scanner.$get_byte(),Z(Re["$include?"](J("BACKSLASH")))?Re.$gsub(J("EscapedQuotes")["$[]"](ke),ke):Re):""+ke+Ie.$scan_to_delimiter()}),Ue(rt,"$skip_blank",function(){var ke=this;return ke.scanner.$skip(J("BlankRx"))}),Ue(rt,"$skip_delimiter",function(){var ke=this;return ke.scanner.$skip(ke.delimiter_skip_pattern)}),Ue(rt,"$scan_name",function(){var ke=this;return ke.scanner.$scan(J("NameRx"))}),Ue(rt,"$scan_to_delimiter",function(){var ke=this;return ke.scanner.$scan(ke.delimiter_boundary_pattern)}),Ue(rt,"$scan_to_quote",function(ke){var Ie=this;return Ie.scanner.$scan(J("BoundaryRx")["$[]"](ke))})}(dt[0],null,dt)}(Pe[0],Pe)},Opal.modules["asciidoctor/block"]=function(a){var oe=a.module,se=a.klass,K=a.const_set,ye=a.hash2,y=a.alias,X=a.send2,Ue=a.find_super,Z=a.truthy,qe=a.eqeqeq,R=a.def,et=a.rb_lt,Ne=a.eqeq,Ke=[],Le=a.nil,Pe=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(ht,Ve){var st=oe(ht,"Asciidoctor"),Ye=[st].concat(Ve),Je=a.$r(Ye);return function(dt,I,tt){var A=se(dt,I,"Block"),rt=[A].concat(tt),lt=a.$r(rt),J=A.$$prototype;return J.attributes=J.content_model=J.lines=J.subs=J.blocks=J.context=J.style=Le,K(rt[0],"DEFAULT_CONTENT_MODEL",ye(["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"),y(A,"blockname","context"),A.$attr_accessor("lines"),R(A,"$initialize",function L(He,ke,Ie){var Re=L.$$p||Le,ce=this,xe=Le,ee=Le,P=Le;return L.$$p=null,Ie==null&&(Ie=ye([],{})),X(ce,Ue(ce,"initialize",L,!1,!0),"initialize",[He,ke,Ie],Re),ce.content_model=Z(xe=Ie["$[]"]("content_model"))?xe:lt("DEFAULT_CONTENT_MODEL")["$[]"](ke),Z(Ie["$key?"]("subs"))?Z(ee=Ie["$[]"]("subs"))?(qe("default",xe=ee)?ce.default_subs=Ie["$[]"]("default_subs"):qe(Pe("Array"),xe)?(ce.default_subs=ee.$drop(0),ce.attributes.$delete("subs")):(ce.default_subs=Le,ce.attributes["$[]="]("subs",ee.$to_s())),ce.$commit_subs()):(ce.default_subs=[],ce.attributes.$delete("subs")):ce.default_subs=Le,Z((P=Ie["$[]"]("source"))["$nil_or_empty?"]())?ce.lines=[]:qe(Pe("String"),P)?ce.lines=lt("Helpers").$prepare_source_string(P):ce.lines=P.$drop(0)},-3),R(A,"$content",function L(){var He=L.$$p||Le,ke=this,Ie=Le,Re=Le,ce=Le,xe=Le;switch(L.$$p=null,ke.content_model){case"compound":return X(ke,Ue(ke,"content",L,!1,!0),"content",[],He);case"simple":return ke.$apply_subs(ke.lines.$join(lt("LF")),ke.subs);case"verbatim":case"raw":if(Ie=ke.$apply_subs(ke.lines,ke.subs),Z(et(Ie.$size(),2)))return Z(Re=Ie["$[]"](0))?Re:"";for(;Z(Z(Re=ce=Ie["$[]"](0))?ce.$rstrip()["$empty?"]():Re);)Ie.$shift();for(;Z(Z(Re=xe=Ie["$[]"](-1))?xe.$rstrip()["$empty?"]():Re);)Ie.$pop();return Ie.$join(lt("LF"));default:return Ne(ke.content_model,"empty")||ke.$logger().$warn("unknown content model '"+ke.content_model+"' for block: "+ke),Le}}),R(A,"$source",function(){var He=this;return He.lines.$join(lt("LF"))}),R(A,"$to_s",function(){var He=this,ke=Le;return ke=Ne(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()+", "+ke+"}>"})}(Ye[0],Je("AbstractBlock"),Ye)}(Ke[0],Ke)},Opal.modules["asciidoctor/callouts"]=function(a){var oe=a.module,se=a.klass,K=a.def,ye=a.hash2,y=a.rb_plus,X=a.truthy,Ue=a.rb_le,Z=a.rb_minus,qe=a.send,R=a.eqeq,et=a.rb_lt,Ne=[],Ke=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(Le,Pe){var ht=oe(Le,"Asciidoctor"),Ve=[ht].concat(Pe);return function(st,Ye){var Je=se(st,Ye,"Callouts"),dt=Je.$$prototype;return dt.co_index=dt.lists=dt.list_index=Ke,K(Je,"$initialize",function(){var tt=this;return tt.lists=[],tt.list_index=0,tt.$next_list()}),K(Je,"$register",function(tt){var A=this,rt=Ke;return A.$current_list()["$<<"](ye(["ordinal","id"],{ordinal:tt.$to_i(),id:rt=A.$generate_next_callout_id()})),A.co_index=y(A.co_index,1),rt}),K(Je,"$read_next_id",function(){var tt=this,A=Ke,rt=Ke;return A=Ke,rt=tt.$current_list(),X(Ue(tt.co_index,rt.$size()))&&(A=rt["$[]"](Z(tt.co_index,1))["$[]"]("id")),tt.co_index=y(tt.co_index,1),A}),K(Je,"$callout_ids",function(tt){var A=this;return qe(A.$current_list(),"map",[],function(lt){return lt==null&&(lt=Ke),R(lt["$[]"]("ordinal"),tt)?""+lt["$[]"]("id")+" ":""}).$join().$chop()}),K(Je,"$current_list",function(){var tt=this;return tt.lists["$[]"](Z(tt.list_index,1))}),K(Je,"$next_list",function(){var tt=this;return tt.list_index=y(tt.list_index,1),X(et(tt.lists.$size(),tt.list_index))&&tt.lists["$<<"]([]),tt.co_index=1,Ke}),K(Je,"$rewind",function(){var tt=this;return tt.list_index=1,tt.co_index=1,Ke}),Je.$private(),K(Je,"$generate_next_callout_id",function(){var tt=this;return tt.$generate_callout_id(tt.list_index,tt.co_index)}),K(Je,"$generate_callout_id",function(tt,A){return"CO"+tt+"-"+A})}(Ve[0],null)}(Ne[0],Ne)},Opal.modules["asciidoctor/converter/composite"]=function(a){var oe=a.module,se=a.klass,K=a.slice,ye=a.extract_kwargs,y=a.ensure_kwargs,X=a.send,Ue=a.truthy,Z=a.def,qe=a.thrower,R=[],et=a.nil,Ne=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(Ke,Le){var Pe=oe(Ke,"Asciidoctor"),ht=[Pe].concat(Le),Ve=a.$r(ht);return function(st,Ye){var Je=se(st,Ye,"CompositeConverter"),dt=Je.$$prototype;return dt.converter_cache=dt.converters=et,Je.$attr_reader("converters"),Z(Je,"$initialize",function(tt,A,rt){var lt,J,L,He,ke=this;return lt=K(arguments,1),J=ye(lt),J=y(J),L=lt,He=J.$$smap.backend_traits_source,He==null&&(He=et),ke.backend=tt,X(ke.converters=L,"each",[],function Ie(Re){var ce=Ie.$$s==null?this:Ie.$$s;return Re==null&&(Re=et),Ue(Re["$respond_to?"]("composed"))?Re.$composed(ce):et},{$$s:ke}),Ue(He)&&ke.$init_backend_traits(He.$backend_traits()),ke.converter_cache=X(Ne("Hash"),"new",[],function Ie(Re,ce){var xe,ee=Ie.$$s==null?this:Ie.$$s;return Re==null&&(Re=et),ce==null&&(ce=et),xe=[ce,ee.$find_converter(ce)],X(Re,"[]=",xe),xe[xe.length-1]},{$$s:ke})},-2),Z(Je,"$convert",function(tt,A,rt){var lt=this,J=et;return A==null&&(A=et),rt==null&&(rt=et),lt.$converter_for(A=Ue(J=A)?J:tt.$node_name()).$convert(tt,A,rt)},-2),Z(Je,"$converter_for",function(tt){var A=this;return A.converter_cache["$[]"](tt)}),Z(Je,"$find_converter",function(tt){try{var A=qe("return"),rt=this;return X(rt.converters,"each",[],function(J){if(J==null&&(J=et),Ue(J["$handles?"](tt)))A.$throw(J);else return et},{$$ret:A}),rt.$raise("Could not find a converter to handle transform: "+tt)}catch(lt){if(lt===A)return lt.$v;throw lt}})}(Ve("Converter"),Ne(Ve("Converter"),"Base"))}(R[0],R)},Opal.modules["asciidoctor/converter"]=function(a){var oe=a.module,se=a.hash2,K=a.def,ye=a.return_val,y=a.truthy,X=a.eqeq,Ue=a.defs,Z=a.send,qe=a.alias,R=a.slice,et=a.to_a,Ne=a.extract_kwargs,Ke=a.ensure_kwargs,Le=a.eqeqeq,Pe=a.Class,ht=a.klass,Ve=a.class_variable_set,st=a.class_variable_get,Ye=a.rb_plus,Je=a.gvars,dt=[],I=a.nil,tt=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(A,rt){var lt=oe(A,"Asciidoctor"),J=[lt].concat(rt);return function(L,He){var ke=oe(L,"Converter"),Ie=[ke].concat(He),Re=a.$r(Ie);return ke.$autoload("CompositeConverter","asciidoctor/converter/composite"),ke.$attr_reader("backend"),K(ke,"$initialize",function(xe,ee){var P=this;return ee==null&&(ee=se([],{})),P.backend=xe},-2),K(ke,"$convert",function(xe,ee,P){var M=this;return M.backend==null&&(M.backend=I),M.$raise(tt("NotImplementedError"),""+M.$class()+" (backend: "+M.backend+") must implement the #convert method")},-2),K(ke,"$handles?",ye(!0)),Ue(ke,"$derive_backend_traits",function(xe,ee){var P=I,M=I,ae=I;return ee==null&&(ee=I),y(xe)?(y(P=Re("DEFAULT_EXTENSIONS")["$[]"](ee=y(M=ee)?M:xe.$sub(Re("TrailingDigitsRx"),"")))?ae=P.$slice(1,P.$length()):P="."+(ae=ee),X(ae,"html")?se(["basebackend","filetype","htmlsyntax","outfilesuffix"],{basebackend:ee,filetype:ae,htmlsyntax:"html",outfilesuffix:P}):se(["basebackend","filetype","outfilesuffix"],{basebackend:ee,filetype:ae,outfilesuffix:P})):se([],{})},-2),function(ce,xe){var ee=oe(ce,"BackendTraits"),P=[ee].concat(xe),M=a.$r(P);return K(ee,"$basebackend",function(ie){var pe,Y=this;return ie==null&&(ie=I),y(ie)?(pe=["basebackend",ie],Z(Y.$backend_traits(ie),"[]=",pe),pe[pe.length-1]):Y.$backend_traits()["$[]"]("basebackend")},-1),K(ee,"$filetype",function(ie){var pe,Y=this;return ie==null&&(ie=I),y(ie)?(pe=["filetype",ie],Z(Y.$backend_traits(),"[]=",pe),pe[pe.length-1]):Y.$backend_traits()["$[]"]("filetype")},-1),K(ee,"$htmlsyntax",function(ie){var pe,Y=this;return ie==null&&(ie=I),y(ie)?(pe=["htmlsyntax",ie],Z(Y.$backend_traits(),"[]=",pe),pe[pe.length-1]):Y.$backend_traits()["$[]"]("htmlsyntax")},-1),K(ee,"$outfilesuffix",function(ie){var pe,Y=this;return ie==null&&(ie=I),y(ie)?(pe=["outfilesuffix",ie],Z(Y.$backend_traits(),"[]=",pe),pe[pe.length-1]):Y.$backend_traits()["$[]"]("outfilesuffix")},-1),K(ee,"$supports_templates",function(ie){var pe,Y=this;return ie==null&&(ie=!0),pe=["supports_templates",ie],Z(Y.$backend_traits(),"[]=",pe),pe[pe.length-1]},-1),K(ee,"$supports_templates?",function(){var ie=this;return ie.$backend_traits()["$[]"]("supports_templates")}),K(ee,"$init_backend_traits",function(ie){var pe=this,Y=I;return ie==null&&(ie=I),pe.backend_traits=y(Y=ie)?Y:se([],{})},-1),K(ee,"$backend_traits",function(ie){var pe=this,Y=I;return pe.backend_traits==null&&(pe.backend_traits=I),pe.backend==null&&(pe.backend=I),ie==null&&(ie=I),pe.backend_traits=y(Y=pe.backend_traits)?Y:M("Converter").$derive_backend_traits(pe.backend,ie)},-1),qe(ee,"backend_info","backend_traits"),Ue(ee,"$derive_backend_traits",function(ie,pe){return pe==null&&(pe=I),M("Converter").$derive_backend_traits(ie,pe)},-2)}(Ie[0],Ie),function(ce,xe){var ee=oe(ce,"Config"),P=[ee].concat(xe),M=a.$r(P);return K(ee,"$register_for",function(ie){var pe,Y,g=this;return pe=R(arguments),Y=pe,Z(M("Converter"),"register",[g].concat(et(Z(Y,"map",[],function(_){return _==null&&(_=I),_.$to_s()}))))},-1)}(Ie[0],Ie),function(ce,xe){var ee=oe(ce,"Factory"),P=[ee].concat(xe),M=a.$r(P);return Ue(ee,"$new",function(ie,pe){var Y,g,u,_;return Y=R(arguments),g=Ne(Y),g=Ke(g),Y.length>0&&(u=Y.shift()),u==null&&(u=I),_=g.$$smap.proxy_default,_==null&&(_=!0),y(_)?M("DefaultFactoryProxy").$new(u):M("CustomFactory").$new(u)},-1),Ue(ee,"$default",function(ie){return R(arguments),M("Converter")},-1),Ue(ee,"$create",function(ie,pe){var Y=this;return pe==null&&(pe=se([],{})),Y.$default().$create(ie,pe)},-2),K(ee,"$register",function(ie,pe){var Y,g,u=this;return Y=R(arguments,1),g=Y,Z(g,"each",[],function _(z){var S,b=_.$$s==null?this:_.$$s;return z==null&&(z=I),X(z,"*")?(S=[ie],Z(b.$registry(),"default=",S),S[S.length-1]):(S=[z,ie],Z(b.$registry(),"[]=",S),S[S.length-1])},{$$s:u})},-2),K(ee,"$for",function(ie){var pe=this;return pe.$registry()["$[]"](ie)}),K(ee,"$create",function(ie,pe){var Y=this,g=I,u=I,_=I;return pe==null&&(pe=se([],{})),y(g=Y.$for(ie))?(Le(Pe,g)&&(g=g.$new(ie,pe)),y(u=pe["$[]"]("template_dirs"))&&Le(M("BackendTraits"),g)&&y(g["$supports_templates?"]())?M("CompositeConverter").$new(ie,M("TemplateConverter").$new(ie,u,pe),g,se(["backend_traits_source"],{backend_traits_source:g})):g):y(u=pe["$[]"]("template_dirs"))?y(_=pe["$[]"]("delegate_backend"))&&y(g=Y.$for(_))?(Le(Pe,g)&&(g=g.$new(_,pe)),M("CompositeConverter").$new(ie,M("TemplateConverter").$new(ie,u,pe),g,se(["backend_traits_source"],{backend_traits_source:g}))):M("TemplateConverter").$new(ie,u,pe):I},-2),K(ee,"$converters",function(){var ie=this;return ie.$registry().$merge()}),ee.$private(),K(ee,"$registry",function(){var ie=this;return ie.$raise(tt("NotImplementedError"),""+M("Factory")+" subclass "+ie.$class()+" must implement the #registry method")})}(Ie[0],Ie),function(ce,xe,ee){var P=ht(ce,xe,"CustomFactory"),M=[P].concat(ee),ae=a.$r(M);return P.$include(ae("Factory")),K(P,"$initialize",function(pe){var Y=this;return pe==null&&(pe=I),y(pe)?(pe["$default="](pe.$delete("*")),Y.registry=pe):Y.registry=se([],{})},-1),K(P,"$unregister_all",function(){var pe,Y=this;return pe=[I],Z(Y.$registry().$clear(),"default=",pe),pe[pe.length-1]}),P.$private(),P.$attr_reader("registry")}(Ie[0],null,Ie),function(ce,xe){var ee=oe(ce,"DefaultFactory"),P=[ee].concat(xe),M=a.$r(P);return ee.$include(M("Factory")),ee.$private(),Ve(P[0],"@@registry",se([],{})),K(ee,"$registry",function(){return st(P[0],"@@registry",!1)}),I}(Ie[0],Ie),function(ce,xe,ee){var P=ht(ce,xe,"DefaultFactoryProxy"),M=[P].concat(ee),ae=a.$r(M);return P.$include(ae("DefaultFactory")),I}(Ie[0],Re("CustomFactory"),Ie),Ue(ke,"$included",function(xe){return xe.$send("include",Re("BackendTraits")),xe.$extend(Re("Config"))}),ke.$private_class_method("included"),function(ce,xe,ee){var P=ht(ce,xe,"Base"),M=[P].concat(ee),ae=a.$r(M),ie=P.$$prototype;return ie.backend=I,P.$include(ae("Logging")),P.$include(ae("Converter")),K(P,"$convert",function(Y,g,u){var _=this,z=I;Je["!"]==null&&(Je["!"]=I),g==null&&(g=Y.$node_name()),u==null&&(u=I);try{return y(u)?_.$send(Ye("convert_",g),Y,u):_.$send(Ye("convert_",g),Y)}catch(S){if(a.rescue(S,[ae("StandardError")]))try{return Le(tt("NoMethodError"),z=Je["!"])&&X(z.$receiver(),_)&&X(z.$name().$to_s(),g)||_.$raise(),_.$logger().$warn("missing convert handler for "+z.$name()+" node in "+_.backend+" backend ("+_.$class()+")"),I}finally{a.pop_exception()}else throw S}},-2),K(P,"$handles?",function(Y){var g=this;return g["$respond_to?"]("convert_"+Y)}),K(P,"$content_only",function(Y){return Y.$content()}),K(P,"$skip",ye(I))}(Ie[0],null,Ie),ke.$extend(Re("DefaultFactory"))}(J[0],J)}(dt[0],dt)},Opal.modules["asciidoctor/document"]=function(a){var oe=a.module,se=a.klass,K=a.const_set,ye=a.send,y=a.alias,X=a.truthy,Ue=a.def,Z=a.hash2,qe=a.not,R=a.to_ary,et=a.return_ivar,Ne=a.send2,Ke=a.find_super,Le=a.rb_minus,Pe=a.eqeq,ht=a.eqeqeq,Ve=a.hash,st=a.rb_ge,Ye=a.rb_plus,Je=a.neqeq,dt=a.thrower,I=a.rb_gt,tt=a.rb_lt,A=a.gvars,rt=a.to_a,lt=[],J=a.nil,L=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,ke){var Ie=oe(He,"Asciidoctor"),Re=[Ie].concat(ke),ce=a.$r(Re);return function(xe,ee,P){var M=se(xe,ee,"Document"),ae=[M].concat(P),ie=a.$r(ae),pe=M.$$prototype;return pe.attributes=pe.safe=pe.sourcemap=pe.reader=pe.base_dir=pe.parsed=pe.parent_document=pe.extensions=pe.options=pe.counters=pe.catalog=pe.reftexts=pe.next_section_index=pe.header=pe.blocks=pe.header_attributes=pe.attributes_modified=pe.backend=pe.attribute_overrides=pe.timings=pe.converter=pe.outfilesuffix=pe.docinfo_processor_extensions=pe.document=pe.max_attribute_value_size=pe.id=pe.doctype=J,K(ae[0],"ImageReference",ye(L("Struct"),"new",["target","imagesdir"],function Y(){var g=Y.$$s==null?this:Y.$$s;return y(g,"to_s","target")},{$$s:M})),K(ae[0],"Footnote",L("Struct").$new("index","id","text")),function(Y,g){var u=se(Y,g,"AttributeEntry");return u.$attr_reader("name","value","negate"),Ue(u,"$initialize",function(z,S,b){var F=this;return b==null&&(b=J),F.name=z,F.value=S,F.negate=X(b["$nil?"]())?S["$nil?"]():b},-3),Ue(u,"$save_to",function(z){var S,b=this,F=J;return(X(F=z["$[]"]("attribute_entries"))?F:(S=["attribute_entries",[]],ye(z,"[]=",S),S[S.length-1]))["$<<"](b),b})}(ae[0],null),function(Y,g,u){var _=se(Y,g,"Title"),z=[_].concat(u),S=a.$r(z),b=_.$$prototype;return b.subtitle=J,_.$attr_reader("main"),y(_,"title","main"),_.$attr_reader("subtitle"),_.$attr_reader("combined"),Ue(_,"$initialize",function(H,_e){var ue,Se,Be=this,Xe=J,it=J;return _e==null&&(_e=Z([],{})),X(Be.sanitized=_e["$[]"]("sanitize"))&&X(H["$include?"]("<"))&&(H=H.$gsub(S("XmlSanitizeRx"),"").$squeeze(" ").$strip()),X((Xe=X(it=_e["$[]"]("separator"))?it:":")["$empty?"]())||qe(H["$include?"](Xe=""+Xe+" "))?(Be.main=H,Be.subtitle=J):(Se=H.$rpartition(Xe),ue=R(Se),Be.main=ue[0]==null?J:ue[0],ue[1]==null||ue[1],Be.subtitle=ue[2]==null?J:ue[2]),Be.combined=H},-2),Ue(_,"$sanitized?",et("sanitized")),Ue(_,"$subtitle?",function(){var H=this;return!!X(H.subtitle)}),Ue(_,"$to_s",et("combined"))}(ae[0],null,ae),K(ae[0],"Author",L("Struct").$new("name","firstname","middlename","lastname","initials","email")),M.$attr_reader("safe"),M.$attr_reader("compat_mode"),M.$attr_reader("backend"),M.$attr_reader("doctype"),M.$attr_accessor("sourcemap"),M.$attr_reader("catalog"),y(M,"references","catalog"),M.$attr_reader("counters"),M.$attr_reader("header"),M.$attr_reader("base_dir"),M.$attr_reader("options"),M.$attr_reader("outfilesuffix"),M.$attr_reader("parent_document"),M.$attr_reader("reader"),M.$attr_reader("path_resolver"),M.$attr_reader("converter"),M.$attr_reader("syntax_highlighter"),M.$attr_reader("extensions"),Ue(M,"$initialize",function Y(g,u){var _,z,S,b;Y.$$p;var F=this,H=J,_e=J,ue=J,Se=J,Be=J,Xe=J,it=J,pt=J,at=J,bt=J,kt=J,Et=J,xt=J,Nt=J,Tt=J,Vt=J,jt=J,er=J;return Y.$$p=null,g==null&&(g=J),u==null&&(u=Z([],{})),Ne(F,Ke(F,"initialize",Y,!1,!0),"initialize",[F,"document"],null),X(H=u.$delete("parent"))?(F.parent_document=H,X(_e=u["$[]"]("base_dir"))||u["$[]="]("base_dir",H.$base_dir()),X(H.$options()["$[]"]("catalog_assets"))&&u["$[]="]("catalog_assets",!0),X(H.$options()["$[]"]("to_dir"))&&u["$[]="]("to_dir",H.$options()["$[]"]("to_dir")),F.catalog=H.$catalog().$merge(Z(["footnotes"],{footnotes:[]})),F.attribute_overrides=ue=H.$instance_variable_get("@attribute_overrides").$merge(H.$attributes()),ue.$delete("compat-mode"),Se=ue.$delete("doctype"),ue.$delete("notitle"),ue.$delete("showtitle"),ue.$delete("toc"),F.attributes["$[]="]("toc-placement",X(_e=ue.$delete("toc-placement"))?_e:"auto"),ue.$delete("toc-position"),F.safe=H.$safe(),X(F.compat_mode=H.$compat_mode())&&F.attributes["$[]="]("compat-mode",""),F.outfilesuffix=H.$outfilesuffix(),F.sourcemap=H.$sourcemap(),F.timings=J,F.path_resolver=H.$path_resolver(),F.converter=H.$converter(),Be=J,F.extensions=H.$extensions(),F.syntax_highlighter=H.$syntax_highlighter()):(F.parent_document=J,F.catalog=Z(["ids","refs","footnotes","links","images","callouts","includes"],{ids:Z([],{}),refs:Z([],{}),footnotes:[],links:[],images:[],callouts:ie("Callouts").$new(),includes:Z([],{})}),F.attribute_overrides=ue=Z([],{}),ye(X(_e=u["$[]"]("attributes"))?_e:Z([],{}),"each",[],function(Pt,Yt){var Xt;return Pt==null&&(Pt=J),Yt==null&&(Yt=J),X(Pt["$end_with?"]("@"))?X(Pt["$start_with?"]("!"))?(Xt=[Pt.$slice(1,Le(Pt.$length(),2)),!1],Pt=Xt[0],Yt=Xt[1]):X(Pt["$end_with?"]("!@"))?(Xt=[Pt.$slice(0,Le(Pt.$length(),2)),!1],Pt=Xt[0],Yt=Xt[1]):(Xt=[Pt.$chop(),""+Yt+"@"],Pt=Xt[0],Yt=Xt[1]):X(Pt["$start_with?"]("!"))?(Xt=[Pt.$slice(1,Pt.$length()),Pe(Yt,"@")?!1:J],Pt=Xt[0],Yt=Xt[1]):X(Pt["$end_with?"]("!"))&&(Xt=[Pt.$chop(),Pe(Yt,"@")?!1:J],Pt=Xt[0],Yt=Xt[1]),Xt=[Pt.$downcase(),Yt],ye(ue,"[]=",Xt),Xt[Xt.length-1]}),ht(L("String"),Xe=u["$[]"]("to_file"))&&ue["$[]="]("outfilesuffix",ie("Helpers").$extname(Xe)),qe(it=u["$[]"]("safe"))?F.safe=L(ie("SafeMode"),"SECURE"):ht(L("Integer"),it)?F.safe=it:F.safe=function(){try{return ie("SafeMode").$value_for_name(it)}catch(Kt){if(a.rescue(Kt,[ie("StandardError")]))try{return L(ie("SafeMode"),"SECURE")}finally{a.pop_exception()}else throw Kt}}(),pt=u.$delete("input_mtime"),F.compat_mode=ue["$key?"]("compat-mode"),F.sourcemap=u["$[]"]("sourcemap"),F.timings=u.$delete("timings"),F.path_resolver=ie("PathResolver").$new(),Be=X((_=L("::","Asciidoctor","skip_raise"))&&L(_,"Extensions","skip_raise")?"constant":J)||X(u["$key?"]("extensions"))?L(L("Asciidoctor"),"Extensions"):J,F.extensions=J,X(u["$key?"]("header_footer"))&&qe(u["$key?"]("standalone"))&&u["$[]="]("standalone",u["$[]"]("header_footer"))),F.parsed=F.reftexts=F.header=F.header_attributes=J,F.counters=Z([],{}),F.attributes_modified=L("Set").$new(),F.docinfo_processor_extensions=Z([],{}),at=u["$[]"]("standalone"),(F.options=u).$freeze(),bt=F.attributes,X(H)||(bt["$[]="]("attribute-undefined",ie("Compliance").$attribute_undefined()),bt["$[]="]("attribute-missing",ie("Compliance").$attribute_missing()),bt.$update(ie("DEFAULT_ATTRIBUTES"))),X(at)?(ue["$[]="]("embedded",J),bt["$[]="]("copycss",""),bt["$[]="]("iconfont-remote",""),bt["$[]="]("stylesheet",""),bt["$[]="]("webfonts","")):(ue["$[]="]("embedded",""),X(ue["$key?"]("showtitle"))&&Pe(ue.$keys()["$&"](["notitle","showtitle"])["$[]"](-1),"showtitle")?ue["$[]="]("notitle",Ve(J,"",!1,"@","@",!1)["$[]"](ue["$[]"]("showtitle"))):X(ue["$key?"]("notitle"))?ue["$[]="]("showtitle",Ve(J,"",!1,"@","@",!1)["$[]"](ue["$[]"]("notitle"))):bt["$[]="]("notitle","")),ue["$[]="]("asciidoctor",""),ue["$[]="]("asciidoctor-version",L(L("Asciidoctor"),"VERSION")),ue["$[]="]("safe-mode-name",kt=ie("SafeMode").$name_for_value(F.safe)),ue["$[]="]("safe-mode-"+kt,""),ue["$[]="]("safe-mode-level",F.safe),X(_e=ue["$[]"]("max-include-depth"))||ue["$[]="]("max-include-depth",64),X(_e=ue["$[]"]("allow-uri-read"))||ue["$[]="]("allow-uri-read",J),X(ue["$key?"]("numbered"))&&ue["$[]="]("sectnums",ue.$delete("numbered")),X(ue["$key?"]("hardbreaks"))&&ue["$[]="]("hardbreaks-option",ue.$delete("hardbreaks")),X(Et=u["$[]"]("base_dir"))?F.base_dir=(z=["docdir",L("File").$expand_path(Et)],ye(ue,"[]=",z),z[z.length-1]):X(ue["$[]"]("docdir"))?F.base_dir=ue["$[]"]("docdir"):F.base_dir=(z=["docdir",L("Dir").$pwd()],ye(ue,"[]=",z),z[z.length-1]),X(xt=u["$[]"]("backend"))&&ue["$[]="]("backend",xt.$to_s()),X(Nt=u["$[]"]("doctype"))&&ue["$[]="]("doctype",Nt.$to_s()),X(st(F.safe,L(ie("SafeMode"),"SERVER")))?(X(_e=ue["$[]"]("copycss"))||ue["$[]="]("copycss",J),X(_e=ue["$[]"]("source-highlighter"))||ue["$[]="]("source-highlighter",J),X(_e=ue["$[]"]("backend"))||ue["$[]="]("backend",ie("DEFAULT_BACKEND")),qe(H)&&X(ue["$key?"]("docfile"))&&ue["$[]="]("docfile",ue["$[]"]("docfile")["$[]"](a.Range.$new(Ye(ue["$[]"]("docdir").$length(),1),-1,!1))),ue["$[]="]("docdir",""),X(_e=ue["$[]"]("user-home"))||ue["$[]="]("user-home","."),X(st(F.safe,L(ie("SafeMode"),"SECURE")))&&(X(ue["$key?"]("max-attribute-value-size"))||ue["$[]="]("max-attribute-value-size",4096),X(ue["$key?"]("linkcss"))||ue["$[]="]("linkcss",""),X(_e=ue["$[]"]("icons"))||ue["$[]="]("icons",J))):X(_e=ue["$[]"]("user-home"))||ue["$[]="]("user-home",ie("USER_HOME")),F.max_attribute_value_size=X(Tt=X(_e=ue["$[]"]("max-attribute-value-size"))?_e:(z=["max-attribute-value-size",J],ye(ue,"[]=",z),z[z.length-1]))?Tt.$to_i().$abs():J,ye(ue,"delete_if",[],function(Pt,Yt){var Xt,nr=J;return Pt==null&&(Pt=J),Yt==null&&(Yt=J),X(Yt)?(ht(L("String"),Yt)&&X(Yt["$end_with?"]("@"))&&(Xt=[Yt.$chop(),!0],Yt=Xt[0],nr=Xt[1]),bt["$[]="](Pt,Yt)):(bt.$delete(Pt),nr=Yt["$=="](!1)),nr}),X(H)?(F.backend=bt["$[]"]("backend"),Pe(F.doctype=(z=["doctype",Se],ye(bt,"[]=",z),z[z.length-1]),ie("DEFAULT_DOCTYPE"))||F.$update_doctype_attributes(ie("DEFAULT_DOCTYPE")),F.reader=ie("Reader").$new(g,u["$[]"]("cursor")),X(F.sourcemap)&&(F.source_location=F.reader.$cursor()),ie("Parser").$parse(F.reader,F),F.$restore_attributes(),F.parsed=!0):(F.backend=J,Pe(Vt=X(_e=bt["$[]"]("backend"))?_e:ie("DEFAULT_BACKEND"),"manpage")?F.doctype=(z=["doctype",(S=["doctype","manpage"],ye(ue,"[]=",S),S[S.length-1])],ye(bt,"[]=",z),z[z.length-1]):F.doctype=X(_e=bt["$[]"]("doctype"))?_e:(z=["doctype",ie("DEFAULT_DOCTYPE")],ye(bt,"[]=",z),z[z.length-1]),F.$update_backend_attributes(Vt,!0),X(_e=bt["$[]"]("stylesdir"))||bt["$[]="]("stylesdir","."),X(_e=bt["$[]"]("iconsdir"))||bt["$[]="]("iconsdir",""+bt.$fetch("imagesdir","./images")+"/icons"),F.$fill_datetime_attributes(bt,pt),X(Be)&&(X(jt=u["$[]"]("extension_registry"))?(ht(L(ie("Extensions"),"Registry"),jt)||X((b=L("::","AsciidoctorJ","skip_raise"))&&(S=L(b,"Extensions","skip_raise"))&&(z=L(S,"ExtensionRegistry","skip_raise"))?"constant":J)&&ht(L(L(L("AsciidoctorJ"),"Extensions"),"ExtensionRegistry"),jt))&&(F.extensions=jt.$activate(F)):X((er=u["$[]"]("extensions"))["$nil?"]())?X(ie("Extensions").$groups()["$empty?"]())||(F.extensions=L(ie("Extensions"),"Registry").$new().$activate(F)):ht(L("Proc"),er)&&(F.extensions=ye(ie("Extensions"),"create",[],er.$to_proc()).$activate(F))),F.reader=ie("PreprocessorReader").$new(F,g,L(ie("Reader"),"Cursor").$new(bt["$[]"]("docfile"),F.base_dir),Z(["normalize"],{normalize:!0})),X(F.sourcemap)?F.source_location=F.reader.$cursor():J)},-1),Ue(M,"$parse",function(g){var u=this,_=J,z=J;return g==null&&(g=J),X(u.parsed)?u:(_=u,X(g)&&(u.reader=ie("PreprocessorReader").$new(_,g,L(ie("Reader"),"Cursor").$new(u.attributes["$[]"]("docfile"),u.base_dir),Z(["normalize"],{normalize:!0})),X(u.sourcemap)&&(u.source_location=u.reader.$cursor())),X(z=X(u.parent_document)?J:u.extensions)&&X(z["$preprocessors?"]())&&ye(z.$preprocessors(),"each",[],function S(b){var F=S.$$s==null?this:S.$$s,H=J;return F.reader==null&&(F.reader=J),b==null&&(b=J),F.reader=X(H=b.$process_method()["$[]"](_,F.reader))?H:F.reader},{$$s:u}),ie("Parser").$parse(u.reader,_,Z(["header_only"],{header_only:u.options["$[]"]("parse_header_only")})),u.$restore_attributes(),X(z)&&X(z["$tree_processors?"]())&&ye(z.$tree_processors(),"each",[],function(b){var F=J;return b==null&&(b=J),X(F=b.$process_method()["$[]"](_))&&ht(ie("Document"),F)&&Je(F,_)?_=F:J}),u.parsed=!0,_)},-1),Ue(M,"$parsed?",et("parsed")),Ue(M,"$counter",function(g,u){var _,z=this,S=J,b=J,F=J;return u==null&&(u=J),X(z.parent_document)?z.parent_document.$counter(g,u):(X(b=z["$attribute_locked?"](g))&&X(S=z.counters["$[]"](g))||qe((S=z.attributes["$[]"](g))["$nil_or_empty?"]())?F=(_=[g,ie("Helpers").$nextval(S)],ye(z.counters,"[]=",_),_[_.length-1]):X(u)?F=(_=[g,Pe(u,u.$to_i().$to_s())?u.$to_i():u],ye(z.counters,"[]=",_),_[_.length-1]):F=(_=[g,1],ye(z.counters,"[]=",_),_[_.length-1]),X(b)||z.attributes["$[]="](g,F),F)},-2),Ue(M,"$increment_and_store_counter",function(g,u){var _=this;return ie("AttributeEntry").$new(g,_.$counter(g)).$save_to(u.$attributes()).$value()}),y(M,"counter_increment","increment_and_store_counter"),Ue(M,"$register",function(g,u){var _=this,z=J,S=J,b=J;switch(g){case"ids":return _.$register("refs",[z=u["$[]"](0),ie("Inline").$new(_,"anchor",u["$[]"](1),Z(["type","id"],{type:"ref",id:z}))]);case"refs":return S=_.catalog["$[]"]("refs"),X(S["$[]"](u["$[]"](0)))||S["$[]="](u["$[]"](0),b=u["$[]"](1)),b;case"footnotes":return _.catalog["$[]"](g)["$<<"](u);default:return X(_.options["$[]"]("catalog_assets"))?_.catalog["$[]"](g)["$<<"](Pe(g,"images")?ie("ImageReference").$new(u,_.attributes["$[]"]("imagesdir")):u):J}}),Ue(M,"$resolve_id",function(g){var u=this,_=J,z=J;return X(u.reftexts)?u.reftexts["$[]"](g):X(u.parsed)?ye(u.reftexts=Z([],{}),"tap",[],function S(b){var F=S.$$s==null?this:S.$$s;return F.catalog==null&&(F.catalog=J),b==null&&(b=J),ye(F.catalog["$[]"]("refs"),"each",[],function(_e,ue){var Se,Be=J;return _e==null&&(_e=J),ue==null&&(ue=J),X(Be=b["$[]"](ue.$xreftext()))?Be:(Se=[ue.$xreftext(),_e],ye(b,"[]=",Se),Se[Se.length-1])})},{$$s:u})["$[]"](g):(_=J,u.reftexts=z=Z([],{}),function(){try{var S=dt("break");return ye(u.catalog["$[]"]("refs"),"each",[],function(F,H){var _e,ue=J,Se=J;return F==null&&(F=J),H==null&&(H=J),Pe(ue=H.$xreftext(),g)&&(_=F,S.$throw()),X(Se=z["$[]"](ue))?Se:(_e=[ue,F],ye(z,"[]=",_e),_e[_e.length-1])})}catch(b){if(b===S)return b.$v;throw b}}(),u.reftexts=J,_)}),Ue(M,"$sections?",function(){var g=this;return I(g.next_section_index,0)}),Ue(M,"$footnotes?",function(){var g=this;return!X(g.catalog["$[]"]("footnotes")["$empty?"]())}),Ue(M,"$footnotes",function(){var g=this;return g.catalog["$[]"]("footnotes")}),Ue(M,"$callouts",function(){var g=this;return g.catalog["$[]"]("callouts")}),Ue(M,"$nested?",function(){var g=this;return!!X(g.parent_document)}),Ue(M,"$embedded?",function(){var g=this;return g.attributes["$key?"]("embedded")}),Ue(M,"$extensions?",function(){var g=this;return!!X(g.extensions)}),Ue(M,"$source",function(){var g=this;return X(g.reader)?g.reader.$source():J}),Ue(M,"$source_lines",function(){var g=this;return X(g.reader)?g.reader.$source_lines():J}),Ue(M,"$basebackend?",function(g){var u=this;return u.attributes["$[]"]("basebackend")["$=="](g)}),Ue(M,"$title",function(){var g=this;return g.$doctitle()}),Ue(M,"$title=",function(g){var u,_=this,z=J;return X(z=_.header)||(z=_.header=ie("Section").$new(_,0))["$sectname="]("header"),u=[g],ye(z,"title=",u),u[u.length-1]}),Ue(M,"$doctitle",function(g){var u=this,_=J,z=J,S=J,b=J;if(g==null&&(g=Z([],{})),!X(_=u.attributes["$[]"]("title"))){if(X(z=u.$first_section()))_=z.$title();else if(qe(X(S=g["$[]"]("use_fallback"))?_=u.attributes["$[]"]("untitled-label"):S))return J}return X(b=g["$[]"]("partition"))?ie("Title").$new(_,g.$merge(Z(["separator"],{separator:Pe(b,!0)?u.attributes["$[]"]("title-separator"):b}))):X(g["$[]"]("sanitize"))&&X(_["$include?"]("<"))?_.$gsub(ie("XmlSanitizeRx"),"").$squeeze(" ").$strip():_},-1),y(M,"name","doctitle"),Ue(M,"$xreftext",function(g){var u=this,_=J;return X(_=u.$reftext())&&qe(_["$empty?"]())?_:u.$title()},-1),Ue(M,"$author",function(){var g=this;return g.attributes["$[]"]("author")}),Ue(M,"$authors",function(){var g=this,u=J,_=J,z=J,S=J,b=J;if(X((u=g.attributes)["$key?"]("author"))){if(_=[ie("Author").$new(u["$[]"]("author"),u["$[]"]("firstname"),u["$[]"]("middlename"),u["$[]"]("lastname"),u["$[]"]("authorinitials"),u["$[]"]("email"))],X(I(z=X(S=u["$[]"]("authorcount"))?S:0,1)))for(b=1;X(tt(b,z));)b=Ye(b,1),_["$<<"](ie("Author").$new(u["$[]"]("author_"+b),u["$[]"]("firstname_"+b),u["$[]"]("middlename_"+b),u["$[]"]("lastname_"+b),u["$[]"]("authorinitials_"+b),u["$[]"]("email_"+b)));return _}else return[]}),Ue(M,"$revdate",function(){var g=this;return g.attributes["$[]"]("revdate")}),Ue(M,"$notitle",function(){var g=this;return g.attributes["$key?"]("notitle")}),Ue(M,"$noheader",function(){var g=this;return g.attributes["$key?"]("noheader")}),Ue(M,"$nofooter",function(){var g=this;return g.attributes["$key?"]("nofooter")}),Ue(M,"$first_section",function(){var g=this,u=J;return X(u=g.header)?u:ye(g.blocks,"find",[],function(z){return z==null&&(z=J),z.$context()["$=="]("section")})}),Ue(M,"$header?",function(){var g=this;return!!X(g.header)}),y(M,"has_header?","header?"),Ue(M,"$<<",function Y(g){var u=Y.$$p||J,_=this;return Y.$$p=null,Pe(g.$context(),"section")&&_.$assign_numeral(g),Ne(_,Ke(_,"<<",Y,!1,!0),"<<",[g],u)}),Ue(M,"$finalize_header",function(g,u){var _=this;return u==null&&(u=!0),_.$clear_playback_attributes(g),_.$save_attributes(),X(u)||g["$[]="]("invalid-header",!0),g},-2),Ue(M,"$playback_attributes",function(g){var u=this;return X(g["$key?"]("attribute_entries"))?ye(g["$[]"]("attribute_entries"),"each",[],function _(z){var S=_.$$s==null?this:_.$$s,b=J;return S.attributes==null&&(S.attributes=J),z==null&&(z=J),b=z.$name(),X(z.$negate())?(S.attributes.$delete(b),Pe(b,"compat-mode")?S.compat_mode=!1:J):(S.attributes["$[]="](b,z.$value()),Pe(b,"compat-mode")?S.compat_mode=!0:J)},{$$s:u}):J}),Ue(M,"$restore_attributes",function(){var g=this;return X(g.parent_document)||g.catalog["$[]"]("callouts").$rewind(),g.attributes.$replace(g.header_attributes)}),Ue(M,"$set_attribute",function(g,u){var _=this,z=J;if(u==null&&(u=""),X(_["$attribute_locked?"](g)))return J;if(X(u["$empty?"]())||(u=_.$apply_attribute_value_subs(u)),X(_.header_attributes))_.attributes["$[]="](g,u);else{switch(g){case"backend":_.$update_backend_attributes(u,X(z=_.attributes_modified["$delete?"]("htmlsyntax"))?u["$=="](_.backend):z);break;case"doctype":_.$update_doctype_attributes(u);break;default:_.attributes["$[]="](g,u)}_.attributes_modified["$<<"](g)}return u},-2),Ue(M,"$delete_attribute",function(g){var u=this;return X(u["$attribute_locked?"](g))?!1:(u.attributes.$delete(g),u.attributes_modified["$<<"](g),!0)}),Ue(M,"$attribute_locked?",function(g){var u=this;return u.attribute_overrides["$key?"](g)}),Ue(M,"$set_header_attribute",function(g,u,_){var z=this,S=J,b=J;return u==null&&(u=""),_==null&&(_=!0),S=X(b=z.header_attributes)?b:z.attributes,Pe(_,!1)&&X(S["$key?"](g))?!1:(S["$[]="](g,u),!0)},-2),Ue(M,"$convert",function(g){var u,_=this,z=J,S=J,b=J,F=J,H=J;return g==null&&(g=Z([],{})),X(_.timings)&&_.timings.$start("convert"),X(_.parsed)||_.$parse(),X(st(_.safe,L(ie("SafeMode"),"SERVER")))||X(g["$empty?"]())||(X((u=["outfile",g["$[]"]("outfile")],ye(_.attributes,"[]=",u),u[u.length-1]))||_.attributes.$delete("outfile"),X((u=["outdir",g["$[]"]("outdir")],ye(_.attributes,"[]=",u),u[u.length-1]))||_.attributes.$delete("outdir")),Pe(_.$doctype(),"inline")?X(z=X(S=_.blocks["$[]"](0))?S:_.header)&&(Pe(z.$content_model(),"compound")||Pe(z.$content_model(),"empty")?_.$logger().$warn("no inline candidate; use the inline doctype to convert a single paragragh, verbatim, or raw block"):b=z.$content()):(X(g["$key?"]("standalone"))?F=X(g["$[]"]("standalone"))?"document":"embedded":X(g["$key?"]("header_footer"))?F=X(g["$[]"]("header_footer"))?"document":"embedded":F=X(_.options["$[]"]("standalone"))?"document":"embedded",b=_.converter.$convert(_,F)),X(_.parent_document)||X(H=_.extensions)&&X(H["$postprocessors?"]())&&ye(H.$postprocessors(),"each",[],function _e(ue){var Se=_e.$$s==null?this:_e.$$s;return ue==null&&(ue=J),b=ue.$process_method()["$[]"](Se,b)},{$$s:_}),X(_.timings)&&_.timings.$record("convert"),b},-1),y(M,"render","convert"),Ue(M,"$write",function(g,u){var _=this;return X(_.timings)&&_.timings.$start("write"),ht(ie("Writer"),_.converter)?_.converter.$write(g,u):(X(u["$respond_to?"]("write"))?X(g["$nil_or_empty?"]())||(u.$write(g.$chomp()),u.$write(ie("LF"))):L("File").$write(u,g,Z(["mode"],{mode:ie("FILE_WRITE_MODE")})),Pe(_.backend,"manpage")&&ht(L("String"),u)&&X(_.converter.$class()["$respond_to?"]("write_alternate_pages"))&&_.converter.$class().$write_alternate_pages(_.attributes["$[]"]("mannames"),_.attributes["$[]"]("manvolnum"),u)),X(_.timings)&&_.timings.$record("write"),J}),Ue(M,"$content",function Y(){var g=Y.$$p||J,u=this;return Y.$$p=null,u.attributes.$delete("title"),Ne(u,Ke(u,"content",Y,!1,!0),"content",[],g)}),Ue(M,"$docinfo",function(g,u){var _,z=this,S=J,b=J,F=J,H=J,_e=J,ue=J,Se=J,Be=J,Xe=J,it=J;return g==null&&(g="head"),u==null&&(u=J),X(tt(z.$safe(),L(ie("SafeMode"),"SECURE")))&&(Pe(g,"head")||(S="-"+g),u=X(b=u)?b:z.outfilesuffix,X((F=z.attributes["$[]"]("docinfo"))["$nil_or_empty?"]())?X(z.attributes["$key?"]("docinfo2"))?F=["private","shared"]:X(z.attributes["$key?"]("docinfo1"))?F=["shared"]:F=X(F)?["private"]:J:F=ye(F.$split(","),"map",[],function(at){return at==null&&(at=J),at.$strip()}),X(F)&&(H=[],_=["docinfo"+S+u,z.attributes["$[]"]("docinfodir"),z.$resolve_docinfo_subs()],_e=_[0],ue=_[1],Se=_[2],X(F["$&"](["shared","shared-"+g])["$empty?"]())||(Be=z.$normalize_system_path(_e,ue),X(Xe=z.$read_asset(Be,Z(["normalize"],{normalize:!0})))&&H["$<<"](z.$apply_subs(Xe,Se))),X(z.attributes["$[]"]("docname")["$nil_or_empty?"]())||X(F["$&"](["private","private-"+g])["$empty?"]())||(Be=z.$normalize_system_path(""+z.attributes["$[]"]("docname")+"-"+_e,ue),X(it=z.$read_asset(Be,Z(["normalize"],{normalize:!0})))&&H["$<<"](z.$apply_subs(it,Se))))),X(z.extensions)&&X(z["$docinfo_processors?"](g))?(X(b=H)?b:[]).$concat(ye(z.docinfo_processor_extensions["$[]"](g),"map",[],function pt(at){var bt=pt.$$s==null?this:pt.$$s;return at==null&&(at=J),at.$process_method()["$[]"](bt)},{$$s:z}).$compact()).$join(ie("LF")):X(H)?H.$join(ie("LF")):""},-1),Ue(M,"$docinfo_processors?",function(g){var u,_=this;return g==null&&(g="head"),X(_.docinfo_processor_extensions["$key?"](g))?_.docinfo_processor_extensions["$[]"](g)["$!="](!1):X(_.extensions)&&X(_.document.$extensions()["$docinfo_processors?"](g))?(u=[g,_.document.$extensions().$docinfo_processors(g)],ye(_.docinfo_processor_extensions,"[]=",u),u[u.length-1])["$!"]()["$!"]():(u=[g,!1],ye(_.docinfo_processor_extensions,"[]=",u),u[u.length-1])},-1),Ue(M,"$to_s",function(){var g=this,u=J;return"#<"+g.$class()+"@"+g.$object_id()+" {doctype: "+g.$doctype().$inspect()+", doctitle: "+(X(u=g.header)?g.header.$title():u).$inspect()+", blocks: "+g.blocks.$size()+"}>"}),M.$private(),Ue(M,"$apply_attribute_value_subs",function(g){var u,_=this;return X(ie("AttributeEntryPassMacroRx")["$=~"](g))?(g=(u=A["~"])===J?J:u["$[]"](2),X((u=A["~"])===J?J:u["$[]"](1))&&(g=_.$apply_subs(g,_.$resolve_pass_subs((u=A["~"])===J?J:u["$[]"](1))))):g=_.$apply_header_subs(g),X(_.max_attribute_value_size)?_.$limit_bytesize(g,_.max_attribute_value_size):g}),Ue(M,"$limit_bytesize",function(g,u){if(X(I(g.$bytesize(),u)))for(;!X((g=g.$byteslice(0,u))["$valid_encoding?"]());)u=Le(u,1);return g}),Ue(M,"$resolve_docinfo_subs",function(){var g=this;return X(g.attributes["$key?"]("docinfosubs"))?g.$resolve_subs(g.attributes["$[]"]("docinfosubs"),"block",J,"docinfo"):["attributes"]}),Ue(M,"$create_converter",function(g,u){var _=this,z=J,S=J,b=J,F=J,H=J;return z=Z(["document","htmlsyntax"],{document:_,htmlsyntax:_.attributes["$[]"]("htmlsyntax")}),X(S=X(b=(F=_.options)["$[]"]("template_dirs"))?b:F["$[]"]("template_dir"))&&(z["$[]="]("template_dirs",[].concat(rt(S))),z["$[]="]("template_cache",F.$fetch("template_cache",!0)),z["$[]="]("template_engine",F["$[]"]("template_engine")),z["$[]="]("template_engine_options",F["$[]"]("template_engine_options")),z["$[]="]("eruby",F["$[]"]("eruby")),z["$[]="]("safe",_.safe),X(u)&&z["$[]="]("delegate_backend",u)),X(H=F["$[]"]("converter"))?L(ie("Converter"),"CustomFactory").$new(Ve(g,H)).$create(g,z):F.$fetch("converter_factory",ie("Converter")).$create(g,z)}),Ue(M,"$clear_playback_attributes",function(g){return g.$delete("attribute_entries")}),Ue(M,"$save_attributes",function(){var g=this,u=J,_=J,z=J,S=J,b=J,F=J,H=J,_e=J,ue=J,Se=J,Be=J,Xe=J,it=J,pt=J;if(X((_=g.attributes)["$key?"]("doctitle"))||qe(u=g.$doctitle())||_["$[]="]("doctitle",u),g.id=X(z=g.id)?z:_["$[]"]("css-signature"),X(S=X(_.$delete("toc2"))?"left":_["$[]"]("toc"))&&(b=X(F=_.$fetch("toc-placement","macro"))&&Je(F,"auto")?F:_["$[]"]("toc-position"),!(X(S["$empty?"]())&&X(b["$nil_or_empty?"]())))){switch(H="left",_e="toc2",ue=X(b["$nil_or_empty?"]())?X(S["$empty?"]())?H:S:b,_["$[]="]("toc",""),_["$[]="]("toc-placement","auto"),ue){case"left":case"<":case"&lt;":_["$[]="]("toc-position","left");break;case"right":case">":case"&gt;":_["$[]="]("toc-position","right");break;case"top":case"^":_["$[]="]("toc-position","top");break;case"bottom":case"v":_["$[]="]("toc-position","bottom");break;case"preamble":case"macro":_["$[]="]("toc-position","content"),_["$[]="]("toc-placement",ue),_e=J;break;default:_.$delete("toc-position"),_e=J}X(_e)&&(X(z=_["$[]"]("toc-class"))||_["$[]="]("toc-class",_e))}if(X(Se=_["$[]"]("icons"))&&qe(_["$key?"]("icontype")))switch(Se){case"":case"font":break;default:_["$[]="]("icons",""),Pe(Se,"image")||_["$[]="]("icontype",Se)}return X(g.compat_mode=_["$key?"]("compat-mode"))&&X(_["$key?"]("language"))&&_["$[]="]("source-language",_["$[]"]("language")),X(g.parent_document)||(Pe(Be=_["$[]"]("basebackend"),"html")?X(Xe=_["$[]"]("source-highlighter"))&&qe(_["$[]"](""+Xe+"-unavailable"))&&(X(it=g.options["$[]"]("syntax_highlighter_factory"))?g.syntax_highlighter=it.$create(Xe,g.backend,Z(["document"],{document:g})):X(pt=g.options["$[]"]("syntax_highlighters"))?g.syntax_highlighter=L(ie("SyntaxHighlighter"),"DefaultFactoryProxy").$new(pt).$create(Xe,g.backend,Z(["document"],{document:g})):g.syntax_highlighter=ie("SyntaxHighlighter").$create(Xe,g.backend,Z(["document"],{document:g}))):Pe(Be,"docbook")&&(X(g["$attribute_locked?"]("toc"))||X(g.attributes_modified["$include?"]("toc"))||_["$[]="]("toc",""),X(g["$attribute_locked?"]("sectnums"))||X(g.attributes_modified["$include?"]("sectnums"))||_["$[]="]("sectnums","")),g.outfilesuffix=_["$[]"]("outfilesuffix"),ye(ie("FLEXIBLE_ATTRIBUTES"),"each",[],function at(bt){var kt=at.$$s==null?this:at.$$s;return kt.attribute_overrides==null&&(kt.attribute_overrides=J),bt==null&&(bt=J),X(kt.attribute_overrides["$key?"](bt))&&X(kt.attribute_overrides["$[]"](bt))?kt.attribute_overrides.$delete(bt):J},{$$s:g})),g.header_attributes=_.$merge()}),Ue(M,"$fill_datetime_attributes",function(g,u){var _,z=this,S=J,b=J,F=J,H=J,_e=J,ue=J,Se=J,Be=J;return S=X(L("ENV")["$key?"]("SOURCE_DATE_EPOCH"))?b=L("Time").$at(z.$Integer(L("ENV")["$[]"]("SOURCE_DATE_EPOCH"))).$utc():L("Time").$now(),X(F=g["$[]"]("localdate"))?X(H=g["$[]"]("localyear"))||g["$[]="]("localyear",Pe(F.$index("-"),4)?F.$slice(0,4):J):(F=(_=["localdate",S.$strftime("%F")],ye(g,"[]=",_),_[_.length-1]),X(H=g["$[]"]("localyear"))||g["$[]="]("localyear",S.$year().$to_s())),_e=X(H=g["$[]"]("localtime"))?H:(_=["localtime",S.$strftime("%T "+(Pe(S.$utc_offset(),0)?"UTC":"%z"))],ye(g,"[]=",_),_[_.length-1]),X(H=g["$[]"]("localdatetime"))||g["$[]="]("localdatetime",""+F+" "+_e),u=X(H=X(ue=b)?ue:u)?H:S,X(Se=g["$[]"]("docdate"))?X(H=g["$[]"]("docyear"))||g["$[]="]("docyear",Pe(Se.$index("-"),4)?Se.$slice(0,4):J):(Se=(_=["docdate",u.$strftime("%F")],ye(g,"[]=",_),_[_.length-1]),X(H=g["$[]"]("docyear"))||g["$[]="]("docyear",u.$year().$to_s())),Be=X(H=g["$[]"]("doctime"))?H:(_=["doctime",u.$strftime("%T "+(Pe(u.$utc_offset(),0)?"UTC":"%z"))],ye(g,"[]=",_),_[_.length-1]),X(H=g["$[]"]("docdatetime"))||g["$[]="]("docdatetime",""+Se+" "+Be),J}),Ue(M,"$update_backend_attributes",function(g,u){var _,z,S=this,b=J,F=J,H=J,_e=J,ue=J,Se=J,Be=J,Xe=J,it=J,pt=J,at=J,bt=J,kt=J,Et=J;return u==null&&(u=J),X(u)||Je(g,S.backend)?(b=S.backend,F=(H=S.attributes)["$[]"]("basebackend"),_e=S.doctype,X(g["$include?"](":"))&&(z=g.$partition(":"),_=R(z),ue=_[0]==null?J:_[0],_[1]==null||_[1],g=_[2]==null?J:_[2]),X(g["$start_with?"]("xhtml"))?(H["$[]="]("htmlsyntax","xml"),g=g.$slice(1,g.$length())):X(g["$start_with?"]("html"))&&(X(Se=H["$[]"]("htmlsyntax"))||H["$[]="]("htmlsyntax","html")),g=X(Se=ie("BACKEND_ALIASES")["$[]"](g))?Se:g,X(ue)&&(_=[ue,g],g=_[0],Be=_[1]),X(_e)?(X(b)&&(H.$delete("backend-"+b),H.$delete("backend-"+b+"-doctype-"+_e)),H["$[]="]("backend-"+g+"-doctype-"+_e,""),H["$[]="]("doctype-"+_e,"")):X(b)&&H.$delete("backend-"+b),H["$[]="]("backend-"+g,""),S.backend=(_=["backend",g],ye(H,"[]=",_),_[_.length-1]),ht(L(ie("Converter"),"BackendTraits"),Xe=S.$create_converter(g,Be))?(it=Xe.$basebackend(),pt=Xe.$filetype(),X(at=Xe.$htmlsyntax())&&H["$[]="]("htmlsyntax",at),X(u)?X(Se=H["$[]"]("outfilesuffix"))||H["$[]="]("outfilesuffix",Xe.$outfilesuffix()):X(S["$attribute_locked?"]("outfilesuffix"))||H["$[]="]("outfilesuffix",Xe.$outfilesuffix())):X(Xe)?(bt=ie("Converter").$derive_backend_traits(g),it=bt["$[]"]("basebackend"),pt=bt["$[]"]("filetype"),X(u)?X(Se=H["$[]"]("outfilesuffix"))||H["$[]="]("outfilesuffix",bt["$[]"]("outfilesuffix")):X(S["$attribute_locked?"]("outfilesuffix"))||H["$[]="]("outfilesuffix",bt["$[]"]("outfilesuffix"))):S.$raise(L("NotImplementedError"),"asciidoctor: FAILED: missing converter for backend '"+g+"'. Processing aborted."),S.converter=Xe,X(kt=H["$[]"]("filetype"))&&H.$delete("filetype-"+kt),H["$[]="]("filetype",pt),H["$[]="]("filetype-"+pt,""),X(Et=ie("DEFAULT_PAGE_WIDTHS")["$[]"](it))?H["$[]="]("pagewidth",Et):H.$delete("pagewidth"),Je(it,F)&&(X(_e)?(X(F)&&(H.$delete("basebackend-"+F),H.$delete("basebackend-"+F+"-doctype-"+_e)),H["$[]="]("basebackend-"+it+"-doctype-"+_e,"")):X(F)&&H.$delete("basebackend-"+F),H["$[]="]("basebackend-"+it,""),H["$[]="]("basebackend",it)),g):J},-2),Ue(M,"$update_doctype_attributes",function(g){var u,_=this,z=J,S=J,b=J,F=J;return X(g)&&Je(g,_.doctype)?(u=[_.backend,(z=_.attributes)["$[]"]("basebackend"),_.doctype],S=u[0],b=u[1],F=u[2],X(F)?(z.$delete("doctype-"+F),X(S)&&(z.$delete("backend-"+S+"-doctype-"+F),z["$[]="]("backend-"+S+"-doctype-"+g,"")),X(b)&&(z.$delete("basebackend-"+b+"-doctype-"+F),z["$[]="]("basebackend-"+b+"-doctype-"+g,""))):(X(S)&&z["$[]="]("backend-"+S+"-doctype-"+g,""),X(b)&&z["$[]="]("basebackend-"+b+"-doctype-"+g,"")),z["$[]="]("doctype-"+g,""),_.doctype=(u=["doctype",g],ye(z,"[]=",u),u[u.length-1])):J})}(Re[0],ce("AbstractBlock"),Re)}(lt[0],lt)},Opal.modules["asciidoctor/inline"]=function(a){var oe=a.module,se=a.klass,K=a.hash2,ye=a.send2,y=a.find_super,X=a.def,Ue=a.return_val,Z=a.alias,qe=a.truthy,R=[],et=a.nil;return a.add_stubs("attr_accessor,attr_reader,[],convert,converter,attr,==,apply_reftext_subs,reftext"),function(Ne,Ke){var Le=oe(Ne,"Asciidoctor"),Pe=[Le].concat(Ke),ht=a.$r(Pe);return function(Ve,st){var Ye=se(Ve,st,"Inline"),Je=Ye.$$prototype;return Je.text=Je.type=et,Ye.$attr_accessor("text"),Ye.$attr_reader("type"),Ye.$attr_accessor("target"),X(Ye,"$initialize",function dt(I,tt,A,rt){dt.$$p;var lt=this;return dt.$$p=null,A==null&&(A=et),rt==null&&(rt=K([],{})),ye(lt,y(lt,"initialize",dt,!1,!0),"initialize",[I,tt,rt],null),lt.node_name="inline_"+tt,lt.text=A,lt.id=rt["$[]"]("id"),lt.type=rt["$[]"]("type"),lt.target=rt["$[]"]("target")},-3),X(Ye,"$block?",Ue(!1)),X(Ye,"$inline?",Ue(!0)),X(Ye,"$convert",function(){var I=this;return I.$converter().$convert(I)}),Z(Ye,"render","convert"),X(Ye,"$alt",function(){var I=this,tt=et;return qe(tt=I.$attr("alt"))?tt:""}),X(Ye,"$reftext?",function(){var I=this,tt=et,A=et;return qe(tt=I.text)?qe(A=I.type["$=="]("ref"))?A:I.type["$=="]("bibref"):tt}),X(Ye,"$reftext",function(){var I=this,tt=et;return qe(tt=I.text)?I.$apply_reftext_subs(tt):et}),X(Ye,"$xreftext",function(I){var tt=this;return tt.$reftext()},-1)}(Pe[0],ht("AbstractNode"))}(R[0],R)},Opal.modules["asciidoctor/list"]=function(a){var oe=a.module,se=a.klass,K=a.alias,ye=a.hash2,y=a.send2,X=a.find_super,Ue=a.def,Z=a.truthy,qe=a.eqeq,R=[],et=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(Ne,Ke){var Le=oe(Ne,"Asciidoctor"),Pe=[Le].concat(Ke),ht=a.$r(Pe);return function(Ve,st){var Ye=se(Ve,st,"List"),Je=Ye.$$prototype;return Je.context=Je.document=Je.style=et,K(Ye,"items","blocks"),K(Ye,"content","blocks"),K(Ye,"items?","blocks?"),Ue(Ye,"$initialize",function dt(I,tt,A){var rt=dt.$$p||et,lt=this;return dt.$$p=null,A==null&&(A=ye([],{})),y(lt,X(lt,"initialize",dt,!1,!0),"initialize",[I,tt,A],rt)},-3),Ue(Ye,"$outline?",function(){var I=this,tt=et;return Z(tt=I.context["$=="]("ulist"))?tt:I.context["$=="]("olist")}),Ue(Ye,"$convert",function dt(){var I=dt.$$p||et,tt=this,A=et;return dt.$$p=null,qe(tt.context,"colist")?(A=y(tt,X(tt,"convert",dt,!1,!0),"convert",[],I),tt.document.$callouts().$next_list(),A):y(tt,X(tt,"convert",dt,!1,!0),"convert",[],I)}),K(Ye,"render","convert"),Ue(Ye,"$to_s",function(){var I=this;return"#<"+I.$class()+"@"+I.$object_id()+" {context: "+I.context.$inspect()+", style: "+I.style.$inspect()+", items: "+I.$items().$size()+"}>"})}(Pe[0],ht("AbstractBlock")),function(Ve,st,Ye){var Je=se(Ve,st,"ListItem"),dt=[Je].concat(Ye),I=a.$r(dt),tt=Je.$$prototype;return tt.text=tt.subs=tt.blocks=et,K(Je,"list","parent"),Je.$attr_accessor("marker"),Ue(Je,"$initialize",function A(rt,lt){A.$$p;var J=this;return A.$$p=null,lt==null&&(lt=et),y(J,X(J,"initialize",A,!1,!0),"initialize",[rt,"list_item"],null),J.text=lt,J.level=rt.$level(),J.subs=I("NORMAL_SUBS").$drop(0)},-2),Ue(Je,"$text?",function(){var rt=this;return!Z(rt.text["$nil_or_empty?"]())}),Ue(Je,"$text",function(){var rt=this,lt=et;return Z(lt=rt.text)?rt.$apply_subs(rt.text,rt.subs):lt}),Je.$attr_writer("text"),Ue(Je,"$simple?",function(){var rt=this,lt=et,J=et,L=et,He=et;return Z(lt=rt.blocks["$empty?"]())?lt:Z(J=Z(L=rt.blocks.$size()["$=="](1))?I("List")["$==="](He=rt.blocks["$[]"](0)):L)?He["$outline?"]():J}),Ue(Je,"$compound?",function(){var rt=this;return rt["$simple?"]()["$!"]()}),Ue(Je,"$fold_first",function(){var rt=this;return rt.text=Z(rt.text["$nil_or_empty?"]())?rt.blocks.$shift().$source():""+rt.text+I("LF")+rt.blocks.$shift().$source(),et}),Ue(Je,"$to_s",function(){var rt=this,lt=et;return"#<"+rt.$class()+"@"+rt.$object_id()+" {list_context: "+rt.$parent().$context().$inspect()+", text: "+rt.text.$inspect()+", blocks: "+(Z(lt=rt.blocks)?lt:[]).$size()+"}>"})}(Pe[0],ht("AbstractBlock"),Pe)}(R[0],R)},Opal.modules["asciidoctor/parser"]=function(a){var oe=a.module,se=a.klass,K=a.const_set,ye=a.send,y=a.truthy,X=a.hash2,Ue=a.to_ary,Z=a.defs,qe=a.eqeq,R=a.not,et=a.gvars,Ne=a.neqeq,Ke=a.rb_plus,Le=a.rb_lt,Pe=a.rb_gt,ht=a.to_a,Ve=a.eqeqeq,st=a.rb_minus,Ye=a.rb_times,Je=a.thrower,dt=[],I=a.nil,tt=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(A,rt){var lt=oe(A,"Asciidoctor"),J=[lt].concat(rt);return function(L,He,ke){var Ie=se(L,He,"Parser"),Re=[Ie].concat(ke),ce=a.$r(Re);return Ie.$include(ce("Logging")),K(Re[0],"BlockMatchData",ce("Struct").$new("context","masq","tip","terminator")),K(Re[0],"TAB"," "),K(Re[0],"TabIndentRx",/^\t+/),K(Re[0],"StartOfBlockProc",ye(Ie,"proc",[],function xe(ee){var P=xe.$$s==null?this:xe.$$s,M=I,ae=I;return ee==null&&(ee=I),y(M=y(ae=ee["$start_with?"]("["))?ce("BlockAttributeLineRx")["$match?"](ee):ae)?M:P["$is_delimited_block?"](ee)},{$$s:Ie})),K(Re[0],"StartOfListProc",ye(Ie,"proc",[],function(ee){return ee==null&&(ee=I),ce("AnyListRx")["$match?"](ee)})),K(Re[0],"StartOfBlockOrListProc",ye(Ie,"proc",[],function xe(ee){var P=xe.$$s==null?this:xe.$$s,M=I,ae=I,ie=I;return ee==null&&(ee=I),y(M=y(ae=P["$is_delimited_block?"](ee))?ae:y(ie=ee["$start_with?"]("["))?ce("BlockAttributeLineRx")["$match?"](ee):ie)?M:ce("AnyListRx")["$match?"](ee)},{$$s:Ie})),K(Re[0],"NoOp",I),K(Re[0],"AuthorKeys",["author","authorinitials","firstname","middlename","lastname","email"]),K(Re[0],"TableCellHorzAlignments",X(["<",">","^"],{"<":"left",">":"right","^":"center"})),K(Re[0],"TableCellVertAlignments",X(["<",">","^"],{"<":"top",">":"bottom","^":"middle"})),K(Re[0],"TableCellStyles",X(["d","s","e","m","h","l","a"],{d:"none",s:"strong",e:"emphasis",m:"monospaced",h:"header",l:"literal",a:"asciidoc"})),Ie.$private_class_method("new"),Z(Ie,"$parse",function(ee,P,M){var ae,ie,pe=this,Y=I,g=I,u=I;if(M==null&&(M=X([],{})),Y=pe.$parse_document_header(ee,P,g=M["$[]"]("header_only")),!y(g))for(;y(ee["$has_more_lines?"]());)ie=pe.$next_section(ee,P,Y),ae=Ue(ie),u=ae[0]==null?I:ae[0],Y=ae[1]==null?I:ae[1],y(u)&&(P.$assign_numeral(u),P.$blocks()["$<<"](u));return P},-3),Z(Ie,"$parse_document_header",function(ee,P,M){var ae,ie,pe,Y=this,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I,_e=I,ue=I,Se=I,Be=I,Xe=I,it=I,pt=I;return M==null&&(M=!1),g=y(ee.$skip_blank_lines())?Y.$parse_block_metadata_lines(ee,P):X([],{}),u=P.$attributes(),y(_=Y["$is_next_line_doctitle?"](ee,g,u["$[]"]("leveloffset")))&&y(g["$[]"]("title"))?(u["$[]="]("authorcount",0),P.$finalize_header(g,!1)):(y((z=u["$[]"]("doctitle"))["$nil_or_empty?"]())||P["$title="](S=z),y(_)?(y(P.$sourcemap())&&(b=ee.$cursor()),ie=Y.$parse_section_title(ee,P),ae=Ue(ie),pe=[ae[0]==null?I:ae[0]],ye(P,"id=",pe),pe[pe.length-1],ae[1]==null||ae[1],F=ae[2]==null?I:ae[2],ae[3]==null||ae[3],H=ae[4]==null?I:ae[4],y(S)?F=I:(P["$title="](F),y((ae=["doctitle",S=P.$sub_specialchars(F)],ye(u,"[]=",ae),ae[ae.length-1])["$include?"](ce("ATTR_REF_HEAD")))&&u["$[]="]("doctitle",S=P.$sub_attributes(S,X(["attribute_missing"],{attribute_missing:"skip"})))),y(b)&&P.$header()["$source_location="](b),y(H)||y(P["$attribute_locked?"]("compat-mode"))||u["$[]="]("compat-mode",""),y(_e=g["$[]"]("separator"))&&(y(P["$attribute_locked?"]("title-separator"))||u["$[]="]("title-separator",_e)),y(ue=g["$[]"]("id"))?P["$id="](ue):ue=P.$id(),y(Se=g["$[]"]("role"))&&u["$[]="]("role",Se),y(Be=g["$[]"]("reftext"))&&u["$[]="]("reftext",Be),g.$clear(),(Xe=P.$instance_variable_get("@attributes_modified")).$delete("doctitle"),Y.$parse_header_metadata(ee,P,I),y(Xe["$include?"]("doctitle"))?y((z=u["$[]"]("doctitle"))["$nil_or_empty?"]())||qe(z,S)?u["$[]="]("doctitle",S):P["$title="](z):R(F)&&Xe["$<<"]("doctitle"),y(ue)&&P.$register("refs",[ue,P])):y(it=u["$[]"]("author"))?(pt=Y.$process_authors(it,!0,!1),y(u["$[]"]("authorinitials"))&&pt.$delete("authorinitials"),u.$update(pt)):y(it=u["$[]"]("authors"))?(pt=Y.$process_authors(it,!0),u.$update(pt)):u["$[]="]("authorcount",0),qe(P.$doctype(),"manpage")&&Y.$parse_manpage_header(ee,P,g,M),P.$finalize_header(g))},-3),Z(Ie,"$parse_manpage_header",function(ee,P,M,ae){var ie,pe=this,Y=I,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I,_e=I,ue=I,Se=I;return ae==null&&(ae=!1),y(ce("ManpageTitleVolnumRx")["$=~"]((Y=P.$attributes())["$[]"]("doctitle")))?(Y["$[]="]("manvolnum",g=(ie=et["~"])===I?I:ie["$[]"](2)),Y["$[]="]("mantitle",(y((u=(ie=et["~"])===I?I:ie["$[]"](1))["$include?"](ce("ATTR_REF_HEAD")))?P.$sub_attributes(u):u).$downcase())):(pe.$logger().$error(pe.$message_with_context("non-conforming manpage title",X(["source_location"],{source_location:ee.$cursor_at_line(1)}))),Y["$[]="]("mantitle",y(_=y(z=Y["$[]"]("doctitle"))?z:Y["$[]"]("docname"))?_:"command"),Y["$[]="]("manvolnum",g="1")),y(S=Y["$[]"]("manname"))&&y(Y["$[]"]("manpurpose"))?(y(_=Y["$[]"]("manname-title"))||Y["$[]="]("manname-title","Name"),Y["$[]="]("mannames",[S]),qe(P.$backend(),"manpage")&&(Y["$[]="]("docname",S),Y["$[]="]("outfilesuffix","."+g))):y(ae)||(ee.$skip_blank_lines(),ee.$save(),M.$update(pe.$parse_block_metadata_lines(ee,P)),y(b=pe["$is_next_line_section?"](ee,X([],{})))?qe(b,1)?(F=pe.$initialize_section(ee,P,X([],{})),H=ye(ee.$read_lines_until(X(["break_on_blank_lines","skip_line_comments"],{break_on_blank_lines:!0,skip_line_comments:!0})),"map",[],function(Xe){return Xe==null&&(Xe=I),Xe.$lstrip()}).$join(" "),y(ce("ManpageNamePurposeRx")["$=~"](H))?(y((S=(ie=et["~"])===I?I:ie["$[]"](1))["$include?"](ce("ATTR_REF_HEAD")))&&(S=P.$sub_attributes(S)),y(S["$include?"](","))?S=(_e=ye(S.$split(","),"map",[],function(Xe){return Xe==null&&(Xe=I),Xe.$lstrip()}))["$[]"](0):_e=[S],y((ue=(ie=et["~"])===I?I:ie["$[]"](2))["$include?"](ce("ATTR_REF_HEAD")))&&(ue=P.$sub_attributes(ue)),y(_=Y["$[]"]("manname-title"))||Y["$[]="]("manname-title",F.$title()),y(F.$id())&&Y["$[]="]("manname-id",F.$id()),Y["$[]="]("manname",S),Y["$[]="]("mannames",_e),Y["$[]="]("manpurpose",ue),qe(P.$backend(),"manpage")&&(Y["$[]="]("docname",S),Y["$[]="]("outfilesuffix","."+g))):Se="non-conforming name section body"):Se="name section must be at level 1":Se="name section expected",y(Se)?(ee.$restore_save(),pe.$logger().$error(pe.$message_with_context(Se,X(["source_location"],{source_location:ee.$cursor()}))),Y["$[]="]("manname",S=y(_=Y["$[]"]("docname"))?_:"command"),Y["$[]="]("mannames",[S]),qe(P.$backend(),"manpage")&&(Y["$[]="]("docname",S),Y["$[]="]("outfilesuffix","."+g))):ee.$discard_save()),I},-4),Z(Ie,"$next_section",function(ee,P,M){var ae,ie,pe=this,Y=I,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I,_e=I,ue=I,Se=I,Be=I,Xe=I,it=I,pt=I,at=I,bt=I,kt=I,Et=I;for(M==null&&(M=X([],{})),Y=g=u=!1,qe(P.$context(),"document")&&y(P.$blocks()["$empty?"]())&&(y(_=P["$header?"]())||y(M.$delete("invalid-header"))||R(pe["$is_next_line_section?"](ee,M)))?(z=(S=P).$doctype()["$=="]("book"),(y(_)||y(z)&&Ne(M["$[]"](1),"abstract"))&&(Y=g=ce("Block").$new(P,"preamble",X(["content_model"],{content_model:"compound"})),y(z)&&y(P["$attr?"]("preface-title"))&&Y["$title="](P.$attr("preface-title")),P.$blocks()["$<<"](Y)),b=P,F=0,y(P.$attributes()["$key?"]("fragment"))?H=-1:y(z)?(ae=[1,0],H=ae[0],_e=ae[1]):H=1):(z=(S=P.$document()).$doctype()["$=="]("book"),b=pe.$initialize_section(ee,P,M),M=y(ue=M["$[]"]("title"))?X(["title"],{title:ue}):X([],{}),H=Ke(F=b.$level(),1),qe(F,0)?u=z:qe(F,1)&&y(b.$special())&&(qe(Se=b.$sectname(),"appendix")||qe(Se,"preface")||qe(Se,"abstract")||(H=I))),ee.$skip_blank_lines();y(ee["$has_more_lines?"]());){if(pe.$parse_block_metadata_lines(ee,S,M),y(Be=pe["$is_next_line_section?"](ee,M)))if(y(S["$attr?"]("leveloffset"))&&(Be=Ke(Be,S.$attr("leveloffset").$to_i()),y(Le(Be,0))&&(Be=0)),y(Pe(Be,F)))y(H)?qe(Be,H)||y(_e)&&qe(Be,_e)||y(Le(H,0))||(Xe=y(_e)?"expected levels "+_e+" or "+H:"expected level "+H,pe.$logger().$warn(pe.$message_with_context("section title out of sequence: "+Xe+", got level "+Be,X(["source_location"],{source_location:ee.$cursor()})))):pe.$logger().$error(pe.$message_with_context(""+Se+" sections do not support nested sections",X(["source_location"],{source_location:ee.$cursor()}))),ie=pe.$next_section(ee,b,M),ae=Ue(ie),it=ae[0]==null?I:ae[0],M=ae[1]==null?I:ae[1],b.$assign_numeral(it),b.$blocks()["$<<"](it);else if(qe(Be,0)&&qe(b,S))y(z)||pe.$logger().$error(pe.$message_with_context("level 0 sections can only be used when doctype is book",X(["source_location"],{source_location:ee.$cursor()}))),ie=pe.$next_section(ee,b,M),ae=Ue(ie),it=ae[0]==null?I:ae[0],M=ae[1]==null?I:ae[1],b.$assign_numeral(it),b.$blocks()["$<<"](it);else break;else pt=ee.$cursor(),y(at=pe.$next_block(ee,y(bt=g)?bt:b,M,X(["parse_metadata"],{parse_metadata:!1})))&&(y(u)&&(R(b["$blocks?"]())?Ne(at.$style(),"partintro")?qe(at.$style(),"open")&&qe(at.$context(),"open")?at["$style="]("partintro"):(at["$parent="](g=ce("Block").$new(b,"open",X(["content_model"],{content_model:"compound"}))),g["$style="]("partintro"),b.$blocks()["$<<"](g)):qe(at.$content_model(),"simple")&&(at["$content_model="]("compound"),at["$<<"](ce("Block").$new(at,"paragraph",X(["source","subs"],{source:at.$lines(),subs:at.$subs()}))),at.$lines().$clear(),at.$subs().$clear()):qe(b.$blocks().$size(),1)&&(kt=b.$blocks()["$[]"](0),R(g)&&qe(kt.$content_model(),"compound")?pe.$logger().$error(pe.$message_with_context("illegal block content outside of partintro block",X(["source_location"],{source_location:pt}))):Ne(kt.$content_model(),"compound")&&(at["$parent="](g=ce("Block").$new(b,"open",X(["content_model"],{content_model:"compound"}))),qe(kt.$style(),(ae=["partintro"],ye(g,"style=",ae),ae[ae.length-1]))&&(kt["$context="]("paragraph"),kt["$style="](I)),b.$blocks().$shift(),g["$<<"](kt),b.$blocks()["$<<"](g)))),(y(bt=g)?bt:b).$blocks()["$<<"](at),M.$clear());if(!y(bt=ee.$skip_blank_lines()))break}if(y(u))y(b["$blocks?"]())&&qe(b.$blocks()["$[]"](-1).$context(),"section")||pe.$logger().$error(pe.$message_with_context("invalid part, must have at least one section (e.g., chapter, appendix, etc.)",X(["source_location"],{source_location:ee.$cursor()})));else if(y(Y))if(y(Y["$blocks?"]()))if(y(z)||y(S.$blocks()["$[]"](1))||R(ce("Compliance").$unwrap_standalone_preamble()))y(S.$sourcemap())&&Y["$source_location="](Y.$blocks()["$[]"](0).$source_location());else for(S.$blocks().$shift();y(Et=Y.$blocks().$shift());)S["$<<"](Et);else S.$blocks().$shift();return[qe(b,P)?I:b,M.$merge()]},-3),Z(Ie,"$next_block",function(ee,P,M,ae){var ie,pe,Y=this,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I,_e=I,ue=I,Se=I,Be=I,Xe=I,it=I,pt=I,at=I,bt=I,kt=I,Et=I,xt=I,Nt=I,Tt=I,Vt=I,jt=I,er=I,Kt=I,Pt=I,Yt=I,Xt=I,nr=I,Xn=I,nn=I,Jt=I,Ut=I,Zt=I,Cr=I,Ht=I,Sr=I,mn=I,Tr=I,Er=I,xn=I,Pr=I,Qr=I,ta=I,ra=I,Gc=I,na=I,Kc=I;if(et["~"]==null&&(et["~"]=I),M==null&&(M=X([],{})),ae==null&&(ae=X([],{})),!y(g=ee.$skip_blank_lines()))return I;if(y(u=ae["$[]"]("text_only"))&&y(Pe(g,0))&&(ae.$delete("text_only"),u=I),_=P.$document(),y(ae.$fetch("parse_metadata",!0))){for(;y(Y.$parse_block_metadata_line(ee,_,M,ae));)if(ee.$shift(),!y(z=ee.$skip_blank_lines()))return I}if(y(S=_.$extensions())&&(ie=[S["$blocks?"](),S["$block_macros?"]()],b=ie[0],F=ie[1]),ee.$mark(),ie=[ee.$read_line(),_.$attributes(),M["$[]"](1)],H=ie[0],_e=ie[1],ue=ie[2],Se=Be=Xe=it=I,y(pt=Y["$is_delimited_block?"](H,!0))&&(Be=Xe=pt.$context(),it=pt.$terminator(),y(ue)?qe(ue,Be.$to_s())||(y(pt.$masq()["$include?"](ue))?Be=ue.$to_sym():y(pt.$masq()["$include?"]("admonition"))&&y(ce("ADMONITION_STYLES")["$include?"](ue))?Be="admonition":y(b)&&y(S["$registered_for_block?"](ue,Be))?Be=ue.$to_sym():(y(Y.$logger()["$debug?"]())&&Y.$logger().$debug(Y.$message_with_context("unknown style for "+Be+" block: "+ue,X(["source_location"],{source_location:ee.$cursor_at_mark()}))),ue=Be.$to_s())):ue=(ie=["style",Be.$to_s()],ye(M,"[]=",ie),ie[ie.length-1])),!y(pt))for(;y(!0);){if(y(ue)&&y(ce("Compliance").$strict_verbatim_paragraphs())&&y(ce("VERBATIM_STYLES")["$include?"](ue))){Be=ue.$to_sym(),ee.$unshift_line(H);break}if(y(u))at=H["$start_with?"](" ",ce("TAB"));else if(bt=ce("Compliance").$markdown_syntax(),y(H["$start_with?"](" "))){if(ie=[!0," "],at=ie[0],kt=ie[1],y(bt)&&y(ye(H.$lstrip(),"start_with?",ht(ce("MARKDOWN_THEMATIC_BREAK_CHARS").$keys())))&&y(ce("MarkdownThematicBreakRx")["$match?"](H))){Se=ce("Block").$new(P,"thematic_break",X(["content_model"],{content_model:"empty"}));break}}else if(y(H["$start_with?"](ce("TAB"))))ie=[!0,ce("TAB")],at=ie[0],kt=ie[1];else if(ie=[!1,H.$chr()],at=ie[0],kt=ie[1],Et=y(bt)?ce("HYBRID_LAYOUT_BREAK_CHARS"):ce("LAYOUT_BREAK_CHARS"),y(Et["$key?"](kt))&&y(y(bt)?ce("ExtLayoutBreakRx")["$match?"](H):y(z=Y["$uniform?"](H,kt,xt=H.$length()))?Pe(xt,2):z)){Se=ce("Block").$new(P,Et["$[]"](kt),X(["content_model"],{content_model:"empty"}));break}else if(y(H["$end_with?"]("]"))&&y(H["$include?"]("::"))){if((qe(kt,"i")||y(H["$start_with?"]("video:","audio:")))&&y(ce("BlockMediaMacroRx")["$=~"](H))){if(ie=[((pe=et["~"])===I?I:pe["$[]"](1)).$to_sym(),(pe=et["~"])===I?I:pe["$[]"](2),(pe=et["~"])===I?I:pe["$[]"](3)],Nt=ie[0],Tt=ie[1],Vt=ie[2],Se=ce("Block").$new(P,Nt,X(["content_model"],{content_model:"empty"})),y(Vt)){switch(Nt){case"video":jt=["poster","width","height"];break;case"audio":jt=[];break;default:jt=["alt","width","height"]}Se.$parse_attributes(Vt,jt,X(["sub_input","into"],{sub_input:!0,into:M}))}if(y(M["$key?"]("style"))&&M.$delete("style"),y(Tt["$include?"](ce("ATTR_REF_HEAD")))){if(y((er=Se.$sub_attributes(Tt))["$empty?"]())&&qe(y(z=_e["$[]"]("attribute-missing"))?z:ce("Compliance").$attribute_missing(),"drop-line")&&y(Se.$sub_attributes(Ke(Tt," "),X(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]()))return M.$clear(),I;Tt=er}qe(Nt,"image")&&(_.$register("images",Tt),M["$[]="]("imagesdir",_e["$[]"]("imagesdir")),y(z=M["$[]"]("alt"))||M["$[]="]("alt",y(Kt=ue)?Kt:(ie=["default-alt",ce("Helpers").$basename(Tt,!0).$tr("_-"," ")],ye(M,"[]=",ie),ie[ie.length-1])),y((Pt=M.$delete("scaledwidth"))["$nil_or_empty?"]())||M["$[]="]("scaledwidth",y(ce("TrailingDigitsRx")["$match?"](Pt))?""+Pt+"%":Pt),y(M["$[]"]("title"))&&(Se["$title="](Yt=M.$delete("title")),Se.$assign_caption(M.$delete("caption"),"figure"))),M["$[]="]("target",Tt);break}else if(qe(kt,"t")&&y(H["$start_with?"]("toc:"))&&y(ce("BlockTocMacroRx")["$=~"](H))){Se=ce("Block").$new(P,"toc",X(["content_model"],{content_model:"empty"})),y((ie=et["~"])===I?I:ie["$[]"](1))&&Se.$parse_attributes((ie=et["~"])===I?I:ie["$[]"](1),[],X(["into"],{into:M}));break}else if(y(y(F)?y(z=y(Kt=ce("CustomBlockMacroRx")["$=~"](H))?Xt=S["$registered_for_block_macro?"]((ie=et["~"])===I?I:ie["$[]"](1)):Kt)?z:nr=Y.$logger()["$debug?"]():y(z=Y.$logger()["$debug?"]())?nr=ce("CustomBlockMacroRx")["$=~"](H):z))if(y(nr))Y.$logger().$debug(Y.$message_with_context("unknown name for block macro: "+((ie=et["~"])===I?I:ie["$[]"](1)),X(["source_location"],{source_location:ee.$cursor_at_mark()})));else{if(Xn=(ie=et["~"])===I?I:ie["$[]"](3),y((Tt=(ie=et["~"])===I?I:ie["$[]"](2))["$include?"](ce("ATTR_REF_HEAD")))){if(y((er=P.$sub_attributes(Tt))["$empty?"]())&&qe(y(z=_e["$[]"]("attribute-missing"))?z:ce("Compliance").$attribute_missing(),"drop-line")&&y(P.$sub_attributes(Ke(Tt," "),X(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]()))return M.$clear(),I;Tt=er}if(qe((nn=Xt.$config())["$[]"]("content_model"),"attributes")?y(Xn)&&_.$parse_attributes(Xn,y(z=y(Kt=nn["$[]"]("positional_attrs"))?Kt:nn["$[]"]("pos_attrs"))?z:[],X(["sub_input","into"],{sub_input:!0,into:M})):M["$[]="]("text",y(z=Xn)?z:""),y(Jt=nn["$[]"]("default_attrs"))&&ye(M,"update",[Jt],function(sn,Es){return Es==null&&(Es=I),Es}),y(Se=Xt.$process_method()["$[]"](P,Tt,M))&&Ne(Se,P)){M.$replace(Se.$attributes());break}else return M.$clear(),I}}if(R(at)&&qe(kt=y(z=kt)?z:H.$chr(),"<")&&y(ce("CalloutListRx")["$=~"](H))){ee.$unshift_line(H),Se=Y.$parse_callout_list(ee,et["~"],P,_.$callouts()),M["$[]="]("style","arabic");break}else if(y(ce("UnorderedListRx")["$match?"](H))){ee.$unshift_line(H),R(ue)&&Ve(ce("Section"),P)&&qe(P.$sectname(),"bibliography")&&M["$[]="]("style",ue="bibliography"),Se=Y.$parse_list(ee,"ulist",P,ue);break}else if(y(ce("OrderedListRx")["$match?"](H))){ee.$unshift_line(H),Se=Y.$parse_list(ee,"olist",P,ue),y(Se.$style())&&M["$[]="]("style",Se.$style());break}else if((y(H["$include?"]("::"))||y(H["$include?"](";;")))&&y(ce("DescriptionListRx")["$=~"](H))){ee.$unshift_line(H),Se=Y.$parse_description_list(ee,et["~"],P);break}else if((qe(ue,"float")||qe(ue,"discrete"))&&y(y(ce("Compliance").$underline_style_section_titles())?Y["$is_section_title?"](H,ee.$peek_line()):y(z=at["$!"]())?Y["$atx_section_title?"](H):z)){ee.$unshift_line(H),pe=Y.$parse_section_title(ee,_,M["$[]"]("id")),ie=Ue(pe),Ut=ie[0]==null?I:ie[0],Zt=ie[1]==null?I:ie[1],Yt=ie[2]==null?I:ie[2],Cr=ie[3]==null?I:ie[3],y(Zt)&&M["$[]="]("reftext",Zt),Se=ce("Block").$new(P,"floating_title",X(["content_model"],{content_model:"empty"})),Se["$title="](Yt),M.$delete("title"),Se["$id="](y(z=Ut)?z:y(_e["$key?"]("sectids"))?ce("Section").$generate_id(Se.$title(),_):I),Se["$level="](Cr);break}else if(y(ue)&&Ne(ue,"normal"))if(y(ce("PARAGRAPH_STYLES")["$include?"](ue))){Be=ue.$to_sym(),Xe="paragraph",ee.$unshift_line(H);break}else if(y(ce("ADMONITION_STYLES")["$include?"](ue))){Be="admonition",Xe="paragraph",ee.$unshift_line(H);break}else if(y(b)&&y(S["$registered_for_block?"](ue,"paragraph"))){Be=ue.$to_sym(),Xe="paragraph",ee.$unshift_line(H);break}else y(Y.$logger()["$debug?"]())&&Y.$logger().$debug(Y.$message_with_context("unknown style for paragraph: "+ue,X(["source_location"],{source_location:ee.$cursor_at_mark()}))),ue=I;if(ee.$unshift_line(H),y(at)&&R(ue))Ht=Y.$read_paragraph_lines(ee,Sr=qe(g,0)?ae["$[]"]("list_type"):I,X(["skip_line_comments"],{skip_line_comments:u})),Y["$adjust_indentation!"](Ht),y(u)||qe(Sr,"dlist")?Se=ce("Block").$new(P,"paragraph",X(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:M})):Se=ce("Block").$new(P,"literal",X(["content_model","source","attributes"],{content_model:"verbatim",source:Ht,attributes:M}));else{if(Ht=Y.$read_paragraph_lines(ee,y(z=g["$=="](0))?ae["$[]"]("list_type"):z,X(["skip_line_comments"],{skip_line_comments:!0})),y(u))y(at)&&qe(ue,"normal")&&Y["$adjust_indentation!"](Ht),Se=ce("Block").$new(P,"paragraph",X(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:M}));else if(y(ce("ADMONITION_STYLE_HEADS")["$include?"](kt))&&y(H["$include?"](":"))&&y(ce("AdmonitionParagraphRx")["$=~"](H)))Ht["$[]="](0,(ie=et["~"])===I?I:ie.$post_match()),M["$[]="]("name",mn=(ie=["style",(pe=et["~"])===I?I:pe["$[]"](1)],ye(M,"[]=",ie),ie[ie.length-1]).$downcase()),M["$[]="]("textlabel",y(z=M.$delete("caption"))?z:_e["$[]"](""+mn+"-caption")),Se=ce("Block").$new(P,"admonition",X(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:M}));else if(y(bt)&&qe(kt,">")&&y(H["$start_with?"]("> "))){if(ye(Ht,"map!",[],function(sn){return sn==null&&(sn=I),qe(sn,">")?sn.$slice(1,sn.$length()):y(sn["$start_with?"]("> "))?sn.$slice(2,sn.$length()):sn}),y(Ht["$[]"](-1)["$start_with?"]("-- "))&&(Tr=(Tr=Ht.$pop()).$slice(3,Tr.$length()),!y(Ht["$empty?"]())))for(;y(Ht["$[]"](-1)["$empty?"]());)Ht.$pop();M["$[]="]("style","quote"),Se=Y.$build_block("quote","compound",!1,P,ce("Reader").$new(Ht),M),y(Tr)&&(pe=Se.$apply_subs(Tr).$split(", ",2),ie=Ue(pe),Er=ie[0]==null?I:ie[0],xn=ie[1]==null?I:ie[1],y(Er)&&M["$[]="]("attribution",Er),y(xn)&&M["$[]="]("citetitle",xn))}else if(qe(kt,'"')&&y(Pe(Ht.$size(),1))&&y(Ht["$[]"](-1)["$start_with?"]("-- "))&&y(Ht["$[]"](-2)["$end_with?"]('"'))){for(Ht["$[]="](0,H.$slice(1,H.$length())),Tr=(Tr=Ht.$pop()).$slice(3,Tr.$length());y(Ht["$[]"](-1)["$empty?"]());)Ht.$pop();Ht["$<<"](Ht.$pop().$chop()),M["$[]="]("style","quote"),Se=ce("Block").$new(P,"quote",X(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:M})),pe=Se.$apply_subs(Tr).$split(", ",2),ie=Ue(pe),Er=ie[0]==null?I:ie[0],xn=ie[1]==null?I:ie[1],y(Er)&&M["$[]="]("attribution",Er),y(xn)&&M["$[]="]("citetitle",xn)}else y(at)&&qe(ue,"normal")&&Y["$adjust_indentation!"](Ht),Se=ce("Block").$new(P,"paragraph",X(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:M}));Y.$catalog_inline_anchors(Ht.$join(ce("LF")),Se,_,ee)}break}if(!y(Se))switch(Be){case"listing":case"source":(qe(Be,"source")||R(M["$[]"](1))&&y(Pr=y(Kt=M["$[]"](2))?Kt:_e["$[]"]("source-language")))&&(y(Pr)?(M["$[]="]("style","source"),M["$[]="]("language",Pr),ce("AttributeList").$rekey(M,[I,I,"linenums"])):(ce("AttributeList").$rekey(M,[I,"language","linenums"]),y(M["$key?"]("language"))||y(_e["$key?"]("source-language"))&&M["$[]="]("language",_e["$[]"]("source-language"))),y(M["$key?"]("linenums"))||(y(M["$[]"]("linenums-option"))||y(_e["$[]"]("source-linenums-option")))&&M["$[]="]("linenums",""),y(M["$key?"]("indent"))||y(_e["$key?"]("source-indent"))&&M["$[]="]("indent",_e["$[]"]("source-indent"))),Se=Y.$build_block("listing","verbatim",it,P,ee,M);break;case"fenced_code":M["$[]="]("style","source"),y(Pe(xt=H.$length(),3))&&(y(Qr=(Pr=H.$slice(3,xt)).$index(","))?y(Pe(Qr,0))?(Pr=Pr.$slice(0,Qr).$strip(),y(Le(Qr,st(xt,4)))&&M["$[]="]("linenums","")):y(Pe(xt,4))&&M["$[]="]("linenums",""):Pr=Pr.$lstrip()),y(Pr["$nil_or_empty?"]())?y(_e["$key?"]("source-language"))&&M["$[]="]("language",_e["$[]"]("source-language")):M["$[]="]("language",Pr),y(M["$key?"]("linenums"))||(y(M["$[]"]("linenums-option"))||y(_e["$[]"]("source-linenums-option")))&&M["$[]="]("linenums",""),y(M["$key?"]("indent"))||y(_e["$key?"]("source-indent"))&&M["$[]="]("indent",_e["$[]"]("source-indent")),it=it.$slice(0,3),Se=Y.$build_block("listing","verbatim",it,P,ee,M);break;case"table":ta=ee.$cursor(),ra=ce("Reader").$new(ee.$read_lines_until(X(["terminator","skip_line_comments","context","cursor"],{terminator:it,skip_line_comments:!0,context:"table",cursor:"at_mark"})),ta),y(it["$start_with?"]("|","!"))||y(Kt=M["$[]"]("format"))||M["$[]="]("format",y(it["$start_with?"](","))?"csv":"dsv"),Se=Y.$parse_table(ra,P,M);break;case"sidebar":Se=Y.$build_block(Be,"compound",it,P,ee,M);break;case"admonition":M["$[]="]("name",mn=ue.$downcase()),M["$[]="]("textlabel",y(Kt=M.$delete("caption"))?Kt:_e["$[]"](""+mn+"-caption")),Se=Y.$build_block(Be,"compound",it,P,ee,M);break;case"open":case"abstract":case"partintro":Se=Y.$build_block("open","compound",it,P,ee,M);break;case"literal":Se=Y.$build_block(Be,"verbatim",it,P,ee,M);break;case"example":y(M["$[]"]("collapsible-option"))&&M["$[]="]("caption",""),Se=Y.$build_block(Be,"compound",it,P,ee,M);break;case"quote":case"verse":ce("AttributeList").$rekey(M,[I,"attribution","citetitle"]),Se=Y.$build_block(Be,qe(Be,"verse")?"verbatim":"compound",it,P,ee,M);break;case"stem":case"latexmath":case"asciimath":qe(Be,"stem")&&M["$[]="]("style",ce("STEM_TYPE_ALIASES")["$[]"](y(Kt=M["$[]"](2))?Kt:_e["$[]"]("stem"))),Se=Y.$build_block("stem","raw",it,P,ee,M);break;case"pass":Se=Y.$build_block(Be,"raw",it,P,ee,M);break;case"comment":return Y.$build_block(Be,"skip",it,P,ee,M),M.$clear(),I;default:if(y(b)&&y(Xt=S["$registered_for_block?"](Be,Xe))){if(qe(Gc=(nn=Xt.$config())["$[]"]("content_model"),"skip")||(y((na=y(Kt=nn["$[]"]("positional_attrs"))?Kt:nn["$[]"]("pos_attrs"))["$nil_or_empty?"]())||ce("AttributeList").$rekey(M,Ke([I],na)),y(Jt=nn["$[]"]("default_attrs"))&&ye(Jt,"each",[],function(sn,Es){var go;return sn==null&&(sn=I),Es==null&&(Es=I),y(Kt=M["$[]"](sn))?Kt:(go=[sn,Es],ye(M,"[]=",go),go[go.length-1])}),M["$[]="]("cloaked-context",Xe)),!y(Se=Y.$build_block(Be,Gc,it,P,ee,M,X(["extension"],{extension:Xt}))))return M.$clear(),I}else Y.$raise("Unsupported block type "+Be+" at "+ee.$cursor())}return y(_.$sourcemap())&&Se["$source_location="](ee.$cursor_at_mark()),y(M["$[]"]("title"))&&(Se["$title="](Yt=M.$delete("title")),y(ce("CAPTION_ATTRIBUTE_NAMES")["$[]"](Se.$context()))&&Se.$assign_caption(M.$delete("caption"))),Se["$style="](M["$[]"]("style")),y(Kc=y(z=Se.$id())?z:(ie=[M["$[]"]("id")],ye(Se,"id=",ie),ie[ie.length-1]))&&(y(y(Yt)?Yt["$include?"](ce("ATTR_REF_HEAD")):Se["$title?"]())&&Se.$title(),y(_.$register("refs",[Kc,Se]))||Y.$logger().$warn(Y.$message_with_context("id assigned to block already in use: "+Kc,X(["source_location"],{source_location:ee.$cursor_at_mark()})))),y(M["$empty?"]())||Se.$update_attributes(M),Se.$commit_subs(),y(Se["$sub?"]("callouts"))&&(y(Y.$catalog_callouts(Se.$source(),_))||Se.$remove_sub("callouts")),Se},-3),Z(Ie,"$read_paragraph_lines",function(ee,P,M){var ae=I;return M==null&&(M=X([],{})),M["$[]="]("break_on_blank_lines",!0),M["$[]="]("break_on_list_continuation",!0),M["$[]="]("preserve_last_line",!0),ae=y(P)?y(ce("Compliance").$block_terminates_paragraph())?ce("StartOfBlockOrListProc"):ce("StartOfListProc"):y(ce("Compliance").$block_terminates_paragraph())?ce("StartOfBlockProc"):ce("NoOp"),ye(ee,"read_lines_until",[M],ae.$to_proc())},-3),Z(Ie,"$is_delimited_block?",function(ee,P){var M,ae,ie=this,pe=I,Y=I,g=I,u=I,_=I;if(P==null&&(P=I),!(y(Pe(pe=ee.$length(),1))&&y(ce("DELIMITED_BLOCK_HEADS")["$[]"](ee.$slice(0,2)))))return I;if(qe(pe,2))Y=ee,g=2;else if(y(Le(pe,5))?(Y=ee,g=pe):Y=ee.$slice(0,g=4),y(ce("Compliance").$markdown_syntax())&&y(Y["$start_with?"]("`"))){if(qe(g,4)){if(qe(Y,"````")||Ne(Y=Y.$chop(),"```"))return I;ee=Y,pe=g=3}else if(Ne(Y,"```"))return I}else if(qe(g,3))return I;return ae=ce("DELIMITED_BLOCKS")["$[]"](Y),M=Ue(ae),u=M[0]==null?I:M[0],_=M[1]==null?I:M[1],y(u)&&(qe(pe,g)||y(ie["$uniform?"](ee.$slice(1,pe),ce("DELIMITED_BLOCK_TAILS")["$[]"](Y),st(pe,1))))?y(P)?ce("BlockMatchData").$new(u,_,Y,ee):!0:I},-2),Z(Ie,"$build_block",function(ee,P,M,ae,ie,pe,Y){var g,u=this,_=I,z=I,S=I,b=I,F=I,H=I,_e=I,ue=I,Se=I,Be=I,Xe=I;switch(Y==null&&(Y=X([],{})),P){case"skip":g=[!0,"simple"],_=g[0],z=g[1];break;case"raw":g=[!1,"simple"],_=g[0],z=g[1];break;default:g=[!1,P],_=g[0],z=g[1]}switch(y(M["$nil?"]())?(qe(z,"verbatim")?S=ie.$read_lines_until(X(["break_on_blank_lines","break_on_list_continuation"],{break_on_blank_lines:!0,break_on_list_continuation:!0})):(qe(P,"compound")&&(P="simple"),S=u.$read_paragraph_lines(ie,!1,X(["skip_line_comments","skip_processing"],{skip_line_comments:!0,skip_processing:_}))),b=I):Ne(z,"compound")?(S=ie.$read_lines_until(X(["terminator","skip_processing","context","cursor"],{terminator:M,skip_processing:_,context:ee,cursor:"at_mark"})),b=I):qe(M,!1)?(S=I,b=ie):(S=I,F=ie.$cursor(),b=ce("Reader").$new(ie.$read_lines_until(X(["terminator","skip_processing","context","cursor"],{terminator:M,skip_processing:_,context:ee,cursor:"at_mark"})),F)),P){case"verbatim":H=(y(_e=pe["$[]"]("tabsize"))?_e:ae.$document().$attributes()["$[]"]("tabsize")).$to_i(),y(ue=pe["$[]"]("indent"))?u["$adjust_indentation!"](S,ue.$to_i(),H):y(Pe(H,0))&&u["$adjust_indentation!"](S,-1,H);break;case"skip":return I}if(y(Se=Y["$[]"]("extension")))if(pe.$delete("style"),y(Be=Se.$process_method()["$[]"](ae,y(Xe=b)?Xe:ce("Reader").$new(S),pe.$merge()))&&Ne(Be,ae))pe.$replace(Be.$attributes()),qe(Be.$content_model(),"compound")&&Ve(ce("Block"),Be)&&R((S=Be.$lines())["$empty?"]())&&(P="compound",b=ce("Reader").$new(S));else return I;else Be=ce("Block").$new(ae,ee,X(["content_model","source","attributes"],{content_model:P,source:S,attributes:pe}));return qe(P,"compound")&&u.$parse_blocks(b,Be),Be},-7),Z(Ie,"$parse_blocks",function(ee,P,M){var ae=this,ie=I,pe=I,Y=I;if(M==null&&(M=I),y(M))for(;y(y(ie=y(pe=Y=ae.$next_block(ee,P,M.$merge()))?P.$blocks()["$<<"](Y):pe)?ie:ee["$has_more_lines?"]()););else for(;y(y(ie=y(pe=Y=ae.$next_block(ee,P))?P.$blocks()["$<<"](Y):pe)?ie:ee["$has_more_lines?"]()););return I},-3),Z(Ie,"$parse_list",function(ee,P,M,ae){var ie,pe=this,Y=I,g=I,u=I,_=I;for(et["~"]==null&&(et["~"]=I),Y=ce("List").$new(M,P),g=ce("ListRxMap")["$[]"](P);y(y(u=ee["$has_more_lines?"]())?g["$=~"](ee.$peek_line()):u)&&(y(_=pe.$parse_list_item(ee,Y,et["~"],(ie=et["~"])===I?I:ie["$[]"](1),ae))&&Y.$items()["$<<"](_),!!y(u=ee.$skip_blank_lines())););return Y}),Z(Ie,"$catalog_callouts",function(ee,P){var M=I,ae=I;return M=!1,ae=0,y(ee["$include?"]("<"))&&ye(ee,"scan",[ce("CalloutScanRx")],function(){var pe;return y(((pe=et["~"])===I?I:pe["$[]"](0))["$start_with?"]("\\"))||P.$callouts().$register(qe((pe=et["~"])===I?I:pe["$[]"](2),".")?(ae=Ke(ae,1)).$to_s():(pe=et["~"])===I?I:pe["$[]"](2)),M=!0}),M}),Z(Ie,"$catalog_inline_anchor",function(ee,P,M,ae,ie){var pe=this;return ie==null&&(ie=M.$document()),y(P)&&y(P["$include?"](ce("ATTR_REF_HEAD")))&&(P=ie.$sub_attributes(P)),y(ie.$register("refs",[ee,ce("Inline").$new(M,"anchor",P,X(["type","id"],{type:"ref",id:ee}))]))||(Ve(ce("Reader"),ae)&&(ae=ae.$cursor()),pe.$logger().$warn(pe.$message_with_context("id assigned to anchor already in use: "+ee,X(["source_location"],{source_location:ae})))),I},-5),Z(Ie,"$catalog_inline_anchors",function(ee,P,M,ae){var ie=this;return(y(ee["$include?"]("[["))||y(ee["$include?"]("or:")))&&ye(ee,"scan",[ce("InlineAnchorScanRx")],function pe(){var Y,g=pe.$$s==null?this:pe.$$s,u=I,_=I,z=I,S=I;if(y(u=(Y=et["~"])===I?I:Y["$[]"](1))){if(y(_=(Y=et["~"])===I?I:Y["$[]"](2))&&y(_["$include?"](ce("ATTR_REF_HEAD")))&&y((_=M.$sub_attributes(_))["$empty?"]()))return I}else u=(Y=et["~"])===I?I:Y["$[]"](3),y(_=(Y=et["~"])===I?I:Y["$[]"](4))&&(y(_["$include?"]("]"))?(_=_.$gsub("\\]","]"),y(_["$include?"](ce("ATTR_REF_HEAD")))&&(_=M.$sub_attributes(_))):y(_["$include?"](ce("ATTR_REF_HEAD")))&&y((_=M.$sub_attributes(_))["$empty?"]())&&(_=I));return y(M.$register("refs",[u,ce("Inline").$new(P,"anchor",_,X(["type","id"],{type:"ref",id:u}))]))?I:(z=ae.$cursor_at_mark(),y(Pe(S=Ke(((Y=et["~"])===I?I:Y.$pre_match()).$count(ce("LF")),y(((Y=et["~"])===I?I:Y["$[]"](0))["$start_with?"](ce("LF")))?1:0),0))&&(z=z.$dup()).$advance(S),g.$logger().$warn(g.$message_with_context("id assigned to anchor already in use: "+u,X(["source_location"],{source_location:z}))))},{$$s:ie}),I}),Z(Ie,"$catalog_inline_biblio_anchor",function(ee,P,M,ae){var ie=this,pe=I;return y(M.$document().$register("refs",[ee,ce("Inline").$new(M,"anchor",y(pe=P)?"["+P+"]":pe,X(["type","id"],{type:"bibref",id:ee}))]))||ie.$logger().$warn(ie.$message_with_context("id assigned to bibliography anchor already in use: "+ee,X(["source_location"],{source_location:ae.$cursor()}))),I}),Z(Ie,"$parse_description_list",function(ee,P,M){var ae=this,ie=I,pe=I,Y=I,g=I,u=I;for(et["~"]==null&&(et["~"]=I),ie=ce("List").$new(M,"dlist"),pe=ce("DescriptionListSiblingRx")["$[]"](P["$[]"](2)),ie.$items()["$<<"](Y=ae.$parse_list_item(ee,ie,P,pe));y(y(g=ee["$has_more_lines?"]())?pe["$=~"](ee.$peek_line()):g);)u=ae.$parse_list_item(ee,ie,et["~"],pe),y(Y["$[]"](1))?ie.$items()["$<<"](Y=u):(Y["$[]"](0)["$<<"](u["$[]"](0)["$[]"](0)),Y["$[]="](1,u["$[]"](1)));return ie}),Z(Ie,"$parse_callout_list",function(ee,P,M,ae){var ie=this,pe=I,Y=I,g=I,u=I,_=I,z=I,S=I,b=I;for(pe=ce("List").$new(M,"colist"),Y=1,g=0;y(y(u=P)?u:y(_=P=ce("CalloutListRx").$match(ee.$peek_line()))?ee.$mark():_);)qe(z=P["$[]"](1),".")&&(z=(g=Ke(g,1)).$to_s()),qe(z,Y.$to_s())||ie.$logger().$warn(ie.$message_with_context("callout list item index: expected "+Y+", got "+z,X(["source_location"],{source_location:ee.$cursor_at_mark()}))),y(S=ie.$parse_list_item(ee,pe,P,"<1>"))&&(pe.$items()["$<<"](S),y((b=ae.$callout_ids(pe.$items().$size()))["$empty?"]())?ie.$logger().$warn(ie.$message_with_context("no callout found for <"+pe.$items().$size()+">",X(["source_location"],{source_location:ee.$cursor_at_mark()}))):S.$attributes()["$[]="]("coids",b)),Y=Ke(Y,1),P=I;return ae.$next_list(),pe}),Z(Ie,"$parse_list_item",function(ee,P,M,ae,ie){var pe,Y,g=this,u=I,_=I,z=I,S=I,b=I,F=I,H=I,_e=I,ue=I,Se=I,Be=I,Xe=I,it=I,pt=I,at=I,bt=I,kt=I,Et=I,xt=I,Nt=I;if(ie==null&&(ie=I),qe(u=P.$context(),"dlist"))_=!0,z=ce("ListItem").$new(P,S=M["$[]"](1)),y(S["$start_with?"]("[["))&&y(ce("LeadingInlineAnchorRx")["$=~"](S))&&g.$catalog_inline_anchor((pe=et["~"])===I?I:pe["$[]"](1),y(b=(pe=et["~"])===I?I:pe["$[]"](2))?b:((pe=et["~"])===I?I:pe.$post_match()).$lstrip(),z,ee),y(F=M["$[]"](3))&&(H=!0),_e=ce("ListItem").$new(P,F),y(P.$document().$sourcemap())&&(z["$source_location="](ee.$cursor()),y(H)?_e["$source_location="](z.$source_location()):ue=!0);else switch(H=!0,_e=ce("ListItem").$new(P,F=M["$[]"](2)),y(P.$document().$sourcemap())&&_e["$source_location="](ee.$cursor()),u){case"ulist":_e["$marker="](ae),y(F["$start_with?"]("["))&&(y(ie)&&qe(ie,"bibliography")?y(ce("InlineBiblioAnchorRx")["$=~"](F))&&g.$catalog_inline_biblio_anchor((pe=et["~"])===I?I:pe["$[]"](1),(pe=et["~"])===I?I:pe["$[]"](2),_e,ee):y(F["$start_with?"]("[["))?y(ce("LeadingInlineAnchorRx")["$=~"](F))&&g.$catalog_inline_anchor((pe=et["~"])===I?I:pe["$[]"](1),(pe=et["~"])===I?I:pe["$[]"](2),_e,ee):y(F["$start_with?"]("[ ] ","[x] ","[*] "))&&(P.$set_option("checklist"),_e.$attributes()["$[]="]("checkbox",""),y(F["$start_with?"]("[ "))||_e.$attributes()["$[]="]("checked",""),_e["$text="](F.$slice(4,F.$length()))));break;case"olist":Y=g.$resolve_ordered_list_marker(ae,Se=P.$items().$size(),!0,ee),pe=Ue(Y),ae=pe[0]==null?I:pe[0],Be=pe[1]==null?I:pe[1],_e["$marker="](ae),qe(Se,0)&&R(ie)&&P["$style="](y(Xe=Be)?Xe:(y(it=ce("ORDERED_LIST_STYLES")["$[]"](st(ae.$length(),1)))?it:"arabic").$to_s()),y(F["$start_with?"]("[["))&&y(ce("LeadingInlineAnchorRx")["$=~"](F))&&g.$catalog_inline_anchor((pe=et["~"])===I?I:pe["$[]"](1),(pe=et["~"])===I?I:pe["$[]"](2),_e,ee);break;default:_e["$marker="](ae),y(F["$start_with?"]("[["))&&y(ce("LeadingInlineAnchorRx")["$=~"](F))&&g.$catalog_inline_anchor((pe=et["~"])===I?I:pe["$[]"](1),(pe=et["~"])===I?I:pe["$[]"](2),_e,ee)}if(ee.$shift(),pt=ee.$cursor(),at=ce("Reader").$new(g.$read_lines_for_list_item(ee,u,ae,H),pt),y(at["$has_more_lines?"]())){for(y(ue)&&_e["$source_location="](pt),bt=at.$skip_line_comments(),y(kt=at.$peek_line())&&(y(bt["$empty?"]())||at.$unshift_lines(bt),y(kt["$empty?"]())||(Et=!0,y(_)||(H=I))),y(xt=g.$next_block(at,_e,X([],{}),X(["text_only","list_type"],{text_only:y(H)?I:!0,list_type:u})))&&_e.$blocks()["$<<"](xt);y(at["$has_more_lines?"]());)y(xt=g.$next_block(at,_e,X([],{}),X(["list_type"],{list_type:u})))&&_e.$blocks()["$<<"](xt);y(Et)&&y(Nt=_e.$blocks()["$[]"](0))&&qe(Nt.$context(),"paragraph")&&_e.$fold_first()}return y(_)?[[z],y(_e["$text?"]())||y(_e["$blocks?"]())?_e:I]:_e},-5),Z(Ie,"$read_lines_for_list_item",function(ee,P,M,ae){var ie,pe=this,Y=I,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I,_e=I,ue=I,Se=I,Be=I,Xe=I,it=I;for(M==null&&(M=I),ae==null&&(ae=!0),Y=[],g="inactive",u=!1,_=I,z=P["$=="]("dlist");y(ee["$has_more_lines?"]())&&(S=ee.$read_line(),!y(pe["$is_sibling_list_item?"](S,P,M)));){if(b=y(Y["$empty?"]())?I:Y["$[]"](-1),qe(b,ce("LIST_CONTINUATION"))&&(qe(g,"inactive")&&(g="active",ae=!0,y(u)||Y["$[]="](-1,"")),qe(S,ce("LIST_CONTINUATION")))){Ne(g,"frozen")&&(g="frozen",Y["$<<"](S)),S=I;continue}if(y(F=pe["$is_delimited_block?"](S,!0))){if(!qe(g,"active"))break;Y["$<<"](S),Y.$concat(ee.$read_lines_until(X(["terminator","read_last_line","context"],{terminator:F.$terminator(),read_last_line:!0,context:I}))),g="inactive"}else if(y(z)&&Ne(g,"active")&&y(S["$start_with?"]("["))&&y(ce("BlockAttributeLineRx")["$match?"](S))){for(H=[S];y(_e=ee.$peek_line());){if(y(pe["$is_delimited_block?"](_e)))ue=!0;else if(y(_e["$empty?"]())||y(_e["$start_with?"]("["))&&y(ce("BlockAttributeLineRx")["$match?"](_e))){H["$<<"](ee.$read_line());continue}else y(ce("AnyListRx")["$match?"](_e))&&R(pe["$is_sibling_list_item?"](_e,P,M))?Y.$concat(H):ue=!0;break}if(y(ue)){ee.$unshift_lines(H);break}}else if(qe(g,"active")&&R(S["$empty?"]()))y(ce("LiteralParagraphRx")["$match?"](S))?(ee.$unshift_line(S),y(z)?Y.$concat(ye(ee,"read_lines_until",[X(["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 pt(at){var bt=pt.$$s==null?this:pt.$$s;return at==null&&(at=I),bt["$is_sibling_list_item?"](at,P,M)},{$$s:pe})):Y.$concat(ee.$read_lines_until(X(["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"):qe(Se=S.$chr(),".")&&y(ce("BlockTitleRx")["$match?"](S))||qe(Se,"[")&&y(ce("BlockAttributeLineRx")["$match?"](S))||qe(Se,":")&&y(ce("AttributeEntryRx")["$match?"](S))?Y["$<<"](S):(y(Be=ye(y(u)?["dlist"]:ce("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=I),ce("ListRxMap")["$[]"](at)["$match?"](S)}))&&(u=!0,qe(Be,"dlist")&&y(((ie=et["~"])===I?I:ie["$[]"](3))["$nil_or_empty?"]())&&(ae=!1)),Y["$<<"](S),g="inactive");else if(y(b)&&y(b["$empty?"]())){if(y(S["$empty?"]())&&(!y(S=y(Xe=ee.$skip_blank_lines())?ee.$read_line():Xe)||y(pe["$is_sibling_list_item?"](S,P,M))))break;if(qe(S,ce("LIST_CONTINUATION")))_=Y.$size(),Y["$<<"](S);else if(y(ae)){if(y(pe["$is_sibling_list_item?"](S,P,M)))break;if(y(Be=ye(ce("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=I),ce("ListRxMap")["$[]"](at)["$=~"](S)})))Y["$<<"](S),u=!0,qe(Be,"dlist")&&y(((ie=et["~"])===I?I:ie["$[]"](3))["$nil_or_empty?"]())&&(ae=!1);else if(y(ce("LiteralParagraphRx")["$match?"](S)))ee.$unshift_line(S),y(z)?Y.$concat(ye(ee,"read_lines_until",[X(["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 pt(at){var bt=pt.$$s==null?this:pt.$$s;return at==null&&(at=I),bt["$is_sibling_list_item?"](at,P,M)},{$$s:pe})):Y.$concat(ee.$read_lines_until(X(["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 y(u)||Y.$pop(),Y["$<<"](S),ae=!0}else y(S["$empty?"]())||(ae=!0),y(Be=ye(y(u)?["dlist"]:ce("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=I),ce("ListRxMap")["$[]"](at)["$=~"](S)}))&&(u=!0,qe(Be,"dlist")&&y(((ie=et["~"])===I?I:ie["$[]"](3))["$nil_or_empty?"]())&&(ae=!1)),Y["$<<"](S);S=I}for(y(S)&&ee.$unshift_line(S),y(_)&&Y["$[]="](_,"");!y(Y["$empty?"]());)if(y((it=Y["$[]"](-1))["$empty?"]()))Y.$pop();else{qe(it,ce("LIST_CONTINUATION"))&&Y.$pop();break}return Y},-3),Z(Ie,"$initialize_section",function(ee,P,M){var ae,ie,pe=this,Y=I,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I,_e=I,ue=I,Se=I,Be=I,Xe=I,it=I,pt=I,at=I;return M==null&&(M=X([],{})),Y=P.$document(),g=(u=Y.$doctype())["$=="]("book"),y(Y.$sourcemap())&&(_=ee.$cursor()),z=M["$[]"](1),ie=pe.$parse_section_title(ee,Y,M["$[]"]("id")),ae=Ue(ie),S=ae[0]==null?I:ae[0],b=ae[1]==null?I:ae[1],F=ae[2]==null?I:ae[2],H=ae[3]==null?I:ae[3],_e=ae[4]==null?I:ae[4],y(z)?y(g)&&qe(z,"abstract")?(ae=["chapter",1],ue=ae[0],H=ae[1]):y(z["$start_with?"]("sect"))&&y(ce("SectionLevelStyleRx")["$match?"](z))?ue="section":(ae=[z,!0],ue=ae[0],Se=ae[1],qe(H,0)&&(H=1),Be=ue["$=="]("appendix")):y(g)?ue=qe(H,0)?"part":y(Pe(H,1))?"section":"chapter":qe(u,"manpage")&&qe(F.$casecmp("synopsis"),0)?(ae=["synopsis",!0],ue=ae[0],Se=ae[1]):ue="section",y(b)&&M["$[]="]("reftext",b),Xe=ce("Section").$new(P,H),ae=[S,F,ue,_],ie=[ae[0]],ye(Xe,"id=",ie),ie[ie.length-1],ie=[ae[1]],ye(Xe,"title=",ie),ie[ie.length-1],ie=[ae[2]],ye(Xe,"sectname=",ie),ie[ie.length-1],ie=[ae[3]],ye(Xe,"source_location=",ie),ie[ie.length-1],y(Se)?(Xe["$special="](!0),y(Be)?Xe["$numbered="](!0):qe(Y.$attributes()["$[]"]("sectnums"),"all")&&Xe["$numbered="](y(g)&&qe(H,1)?"chapter":!0)):y(Y.$attributes()["$[]"]("sectnums"))&&y(Pe(H,0))?Xe["$numbered="](y(Xe.$special())?y(it=P.$numbered())||it:!0):y(g)&&qe(H,0)&&y(Y.$attributes()["$[]"]("partnums"))&&Xe["$numbered="](!0),y(pt=y(it=Xe.$id())?it:(ae=[y(Y.$attributes()["$key?"]("sectids"))?at=ce("Section").$generate_id(Xe.$title(),Y):I],ye(Xe,"id=",ae),ae[ae.length-1]))&&(y(at)||R(F["$include?"](ce("ATTR_REF_HEAD")))||Xe.$title(),y(Y.$register("refs",[pt,Xe]))||pe.$logger().$warn(pe.$message_with_context("id assigned to section already in use: "+pt,X(["source_location"],{source_location:ee.$cursor_at_line(st(ee.$lineno(),y(_e)?1:2))})))),Xe.$update_attributes(M),ee.$skip_blank_lines(),Xe},-3),Z(Ie,"$is_next_line_section?",function(ee,P){var M=this,ae=I,ie=I,pe=I;return y(ae=P["$[]"](1))&&(qe(ae,"discrete")||qe(ae,"float"))?I:y(ce("Compliance").$underline_style_section_titles())?(ie=ee.$peek_lines(2,y(pe=ae)?ae["$=="]("comment"):pe),M["$is_section_title?"](y(pe=ie["$[]"](0))?pe:"",ie["$[]"](1))):M["$atx_section_title?"](y(pe=ee.$peek_line())?pe:"")}),Z(Ie,"$is_next_line_doctitle?",function(ee,P,M){var ae=this,ie=I,pe=I;return y(M)?y(ie=pe=ae["$is_next_line_section?"](ee,P))?Ke(pe,M.$to_i())["$=="](0):ie:ae["$is_next_line_section?"](ee,P)["$=="](0)}),Z(Ie,"$is_section_title?",function(ee,P){var M=this,ae=I;return P==null&&(P=I),y(ae=M["$atx_section_title?"](ee))?ae:y(P["$nil_or_empty?"]())?I:M["$setext_section_title?"](ee,P)},-2),Z(Ie,"$atx_section_title?",function(ee){var P,M=I;return y(y(ce("Compliance").$markdown_syntax())?y(M=ee["$start_with?"]("=","#"))?ce("ExtAtxSectionTitleRx")["$=~"](ee):M:y(M=ee["$start_with?"]("="))?ce("AtxSectionTitleRx")["$=~"](ee):M)?st(((P=et["~"])===I?I:P["$[]"](1)).$length(),1):I}),Z(Ie,"$setext_section_title?",function(ee,P){var M=this,ae=I,ie=I,pe=I;return y(ie=ce("SETEXT_SECTION_LEVELS")["$[]"](pe=P.$chr()))&&y(M["$uniform?"](P,pe,ae=P.$length()))&&y(ce("SetextSectionTitleRx")["$match?"](ee))&&y(Le(st(ee.$length(),ae).$abs(),2))?ie:I}),Z(Ie,"$parse_section_title",function(ee,P,M){var ae,ie,pe=this,Y=I,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I;return M==null&&(M=I),Y=I,g=ee.$read_line(),y(y(ce("Compliance").$markdown_syntax())?y(u=g["$start_with?"]("=","#"))?ce("ExtAtxSectionTitleRx")["$=~"](g):u:y(u=g["$start_with?"]("="))?ce("AtxSectionTitleRx")["$=~"](g):u)?(ae=[st(((ie=et["~"])===I?I:ie["$[]"](1)).$length(),1),(ie=et["~"])===I?I:ie["$[]"](2),!0],_=ae[0],z=ae[1],S=ae[2],y(M)||y(z["$end_with?"]("]]"))&&y(ce("InlineSectionAnchorRx")["$=~"](z))&&R((ae=et["~"])===I?I:ae["$[]"](1))&&(ae=[z.$slice(0,st(z.$length(),((ie=et["~"])===I?I:ie["$[]"](0)).$length())),(ie=et["~"])===I?I:ie["$[]"](2),(ie=et["~"])===I?I:ie["$[]"](3)],z=ae[0],M=ae[1],Y=ae[2])):y(ce("Compliance").$underline_style_section_titles())&&y(H=ee.$peek_line(!0))&&y(_=ce("SETEXT_SECTION_LEVELS")["$[]"](F=H.$chr()))&&y(pe["$uniform?"](H,F,b=H.$length()))&&y(z=y(u=ce("SetextSectionTitleRx")["$=~"](g))?(ae=et["~"])===I?I:ae["$[]"](1):u)&&y(Le(st(g.$length(),b).$abs(),2))?(S=!1,y(M)||y(z["$end_with?"]("]]"))&&y(ce("InlineSectionAnchorRx")["$=~"](z))&&R((ae=et["~"])===I?I:ae["$[]"](1))&&(ae=[z.$slice(0,st(z.$length(),((ie=et["~"])===I?I:ie["$[]"](0)).$length())),(ie=et["~"])===I?I:ie["$[]"](2),(ie=et["~"])===I?I:ie["$[]"](3)],z=ae[0],M=ae[1],Y=ae[2]),ee.$shift()):pe.$raise("Unrecognized section at "+ee.$cursor_at_prev_line()),y(P["$attr?"]("leveloffset"))&&(_=Ke(_,P.$attr("leveloffset").$to_i()),y(Le(_,0))&&(_=0)),[M,Y,z,_,S]},-3),Z(Ie,"$parse_header_metadata",function(ee,P,M){var ae,ie=this,pe=I,Y=I,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I,_e=I,ue=I,Se=I,Be=I,Xe=I,it=I,pt=I,at=I,bt=I;if(P==null&&(P=I),M==null&&(M=!0),pe=y(Y=P)?P.$attributes():Y,ie.$process_attribute_entries(ee,P),y(ee["$has_more_lines?"]())&&R(ee["$next_line_empty?"]())?(g=(u=ie.$process_authors(ee.$read_line())).$delete("authorcount"),y(P)&&y(Pe((ae=["authorcount",g],ye(pe,"[]=",ae),ae[ae.length-1]),0))&&(ye(u,"each",[],function(Et,xt){var Nt;return Et==null&&(Et=I),xt==null&&(xt=I),y(pe["$key?"](Et))?I:(Nt=[Et,P.$apply_header_subs(xt)],ye(pe,"[]=",Nt),Nt[Nt.length-1])}),_=pe["$[]"]("author"),z=pe["$[]"]("authorinitials"),S=pe["$[]"]("authors")),u["$[]="]("authorcount",g),ie.$process_attribute_entries(ee,P),y(ee["$has_more_lines?"]())&&R(ee["$next_line_empty?"]())&&(b=ee.$read_line(),y(F=ce("RevisionInfoLineRx").$match(b))?(H=X([],{}),y(F["$[]"](1))&&H["$[]="]("revnumber",F["$[]"](1).$rstrip()),y((_e=F["$[]"](2).$strip())["$empty?"]())||(R(F["$[]"](1))&&y(_e["$start_with?"]("v"))?H["$[]="]("revnumber",_e.$slice(1,_e.$length())):H["$[]="]("revdate",_e)),y(F["$[]"](3))&&H["$[]="]("revremark",F["$[]"](3).$rstrip()),y(P)&&R(H["$empty?"]())&&ye(H,"each",[],function(Et,xt){var Nt;return Et==null&&(Et=I),xt==null&&(xt=I),y(pe["$key?"](Et))?I:(Nt=[Et,P.$apply_header_subs(xt)],ye(pe,"[]=",Nt),Nt[Nt.length-1])})):ee.$unshift_line(b)),ie.$process_attribute_entries(ee,P),ee.$skip_blank_lines()):u=X([],{}),y(P)){if(y(pe["$key?"]("author"))&&Ne(ue=pe["$[]"]("author"),_))Se=ie.$process_authors(ue,!0,!1),Ne(pe["$[]"]("authorinitials"),z)&&Se.$delete("authorinitials");else if(y(pe["$key?"]("authors"))&&Ne(ue=pe["$[]"]("authors"),S))Se=ie.$process_authors(ue,!0);else{for(ae=[[],1,"author_1",!1,!1],Be=ae[0],Xe=ae[1],it=ae[2],pt=ae[3],at=ae[4];y(pe["$key?"](it));)qe(bt=pe["$[]"](it),u["$[]"](it))?(Be["$<<"](I),at=!0):(Be["$<<"](bt),pt=!0),it="author_"+(Xe=Ke(Xe,1));y(pt)?(y(at)&&ye(Be,"each_with_index",[],function(Et,xt){var Nt,Tt=I;return Et==null&&(Et=I),xt==null&&(xt=I),y(Et)?I:(Nt=[xt,ye([u["$[]"]("firstname_"+(Tt=Ke(xt,1))),u["$[]"]("middlename_"+Tt),u["$[]"]("lastname_"+Tt)].$compact(),"map",[],function(jt){return jt==null&&(jt=I),jt.$tr(" ","_")}).$join(" ")],ye(Be,"[]=",Nt),Nt[Nt.length-1])}),Se=ie.$process_authors(Be,!0,!1)):Se=X(["authorcount"],{authorcount:0})}qe(Se["$[]"]("authorcount"),0)?y(g)?Se=I:pe["$[]="]("authorcount",0):(pe.$update(Se),R(pe["$key?"]("email"))&&y(pe["$key?"]("email_1"))&&pe["$[]="]("email",pe["$[]"]("email_1")))}return y(M)?u.$merge(H.$to_h(),Se.$to_h()):I},-2),Z(Ie,"$process_authors",function(ee,P,M){var ae=I,ie=I;return P==null&&(P=!1),M==null&&(M=!0),ae=X([],{}),ie=0,ye(y(M)&&y(ee["$include?"](";"))?ee.$split(ce("AuthorDelimiterRx")):[].concat(ht(ee)),"each",[],function(Y){var g,u=I,_=I,z=I,S=I,b=I,F=I,H=I;return Y==null&&(Y=I),y(Y["$empty?"]())?I:(u=X([],{}),qe(ie=Ke(ie,1),1)?ye(ce("AuthorKeys"),"each",[],function(ue){var Se;return ue==null&&(ue=I),Se=[ue.$to_sym(),ue],ye(u,"[]=",Se),Se[Se.length-1]}):ye(ce("AuthorKeys"),"each",[],function(ue){var Se;return ue==null&&(ue=I),Se=[ue.$to_sym(),""+ue+"_"+ie],ye(u,"[]=",Se),Se[Se.length-1]}),y(P)?(y(Y["$include?"]("<"))&&(ae["$[]="](u["$[]"]("author"),Y.$tr("_"," ")),Y=Y.$gsub(ce("XmlSanitizeRx"),"")),qe((_=Y.$split(I,3)).$size(),3)&&_["$<<"](_.$pop().$squeeze(" "))):y(z=ce("AuthorInfoLineRx").$match(Y))&&(_=z.$to_a()).$shift(),y(_)?(S=(g=[u["$[]"]("firstname"),b=_["$[]"](0).$tr("_"," ")],ye(ae,"[]=",g),g[g.length-1]),ae["$[]="](u["$[]"]("authorinitials"),b.$chr()),y(_["$[]"](1))&&(y(_["$[]"](2))?(ae["$[]="](u["$[]"]("middlename"),F=_["$[]"](1).$tr("_"," ")),ae["$[]="](u["$[]"]("lastname"),H=_["$[]"](2).$tr("_"," ")),S=Ke(Ke(Ke(Ke(b," "),F)," "),H),ae["$[]="](u["$[]"]("authorinitials"),""+b.$chr()+F.$chr()+H.$chr())):(ae["$[]="](u["$[]"]("lastname"),H=_["$[]"](1).$tr("_"," ")),S=Ke(Ke(b," "),H),ae["$[]="](u["$[]"]("authorinitials"),""+b.$chr()+H.$chr()))),y(ae["$[]"](u["$[]"]("author")))||ae["$[]="](u["$[]"]("author"),S),y(P)||R(_["$[]"](3))||ae["$[]="](u["$[]"]("email"),_["$[]"](3))):(ae["$[]="](u["$[]"]("author"),(g=[u["$[]"]("firstname"),b=Y.$squeeze(" ").$strip()],ye(ae,"[]=",g),g[g.length-1])),ae["$[]="](u["$[]"]("authorinitials"),b.$chr())),qe(ie,1)?(g=["authors",ae["$[]"](u["$[]"]("author"))],ye(ae,"[]=",g),g[g.length-1]):(qe(ie,2)&&ye(ce("AuthorKeys"),"each",[],function(ue){var Se;return ue==null&&(ue=I),y(ae["$key?"](ue))?(Se=[""+ue+"_1",ae["$[]"](ue)],ye(ae,"[]=",Se),Se[Se.length-1]):I}),g=["authors",""+ae["$[]"]("authors")+", "+ae["$[]"](u["$[]"]("author"))],ye(ae,"[]=",g),g[g.length-1]))}),ae["$[]="]("authorcount",ie),ae},-2),Z(Ie,"$parse_block_metadata_lines",function(ee,P,M,ae){var ie=this;for(M==null&&(M=X([],{})),ae==null&&(ae=X([],{}));y(ie.$parse_block_metadata_line(ee,P,M,ae))&&(ee.$shift(),!!y(ee.$skip_blank_lines())););return M},-3),Z(Ie,"$parse_block_metadata_line",function(ee,P,M,ae){var ie,pe=this,Y=I,g=I,u=I,_=I,z=I,S=I;if(et["~"]==null&&(et["~"]=I),ae==null&&(ae=X([],{})),y(g=ee.$peek_line())&&y(y(ae["$[]"]("text_only"))?g["$start_with?"]("[","/"):Y=g["$start_with?"]("[",".","/",":"))){if(y(g["$start_with?"]("["))){if(y(g["$start_with?"]("[["))){if(y(g["$end_with?"]("]]"))&&y(ce("BlockAnchorRx")["$=~"](g)))return M["$[]="]("id",(ie=et["~"])===I?I:ie["$[]"](1)),y(u=(ie=et["~"])===I?I:ie["$[]"](2))&&M["$[]="]("reftext",y(u["$include?"](ce("ATTR_REF_HEAD")))?P.$sub_attributes(u):u),!0}else if(y(g["$end_with?"]("]"))&&y(ce("BlockAttributeListRx")["$=~"](g)))return _=M["$[]"](1),y(P.$parse_attributes((ie=et["~"])===I?I:ie["$[]"](1),[],X(["sub_input","sub_result","into"],{sub_input:!0,sub_result:!0,into:M}))["$[]"](1))&&M["$[]="](1,y(z=pe.$parse_style_attribute(M,ee))?z:_),!0}else if(y(Y)&&y(g["$start_with?"]("."))){if(y(ce("BlockTitleRx")["$=~"](g)))return M["$[]="]("title",(ie=et["~"])===I?I:ie["$[]"](1)),!0}else if(R(Y)||y(g["$start_with?"]("/"))){if(y(g["$start_with?"]("//"))){if(qe(g,"//"))return!0;if(y(Y)&&y(pe["$uniform?"](g,"/",S=g.$length()))){if(!qe(S,3))return ee.$read_lines_until(X(["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(!y(g["$start_with?"]("///")))return!0}}else if(y(Y)&&y(g["$start_with?"](":"))&&y(ce("AttributeEntryRx")["$=~"](g)))return pe.$process_attribute_entry(ee,P,M,et["~"]),!0}return I},-4),Z(Ie,"$process_attribute_entries",function(ee,P,M){var ae=this;for(M==null&&(M=I),ee.$skip_comment_lines();y(ae.$process_attribute_entry(ee,P,M));)ee.$shift(),ee.$skip_comment_lines()},-3),Z(Ie,"$process_attribute_entry",function(ee,P,M,ae){var ie,pe=this,Y=I,g=I,u=I,_=I,z=I,S=I;if(M==null&&(M=I),ae==null&&(ae=I),y(ae)||y(ae=y(ee["$has_more_lines?"]())?ce("AttributeEntryRx").$match(ee.$peek_line()):I)){if(y((Y=ae["$[]"](2))["$nil_or_empty?"]()))Y="";else if(y(Y["$end_with?"](ce("LINE_CONTINUATION"),ce("LINE_CONTINUATION_LEGACY"))))for(ie=[Y.$slice(st(Y.$length(),2),2),Y.$slice(0,st(Y.$length(),2)).$rstrip()],g=ie[0],Y=ie[1];y(y(u=ee.$advance())?(_=y(z=ee.$peek_line())?z:"")["$empty?"]()["$!"]():u)&&(_=_.$lstrip(),y(S=_["$end_with?"](g))&&(_=_.$slice(0,st(_.$length(),2)).$rstrip()),Y=""+Y+(y(Y["$end_with?"](ce("HARD_LINE_BREAK")))?ce("LF"):" ")+_,!!y(S)););return pe.$store_attribute(ae["$[]"](1),Y,P,M),!0}else return I},-3),Z(Ie,"$store_attribute",function(ee,P,M,ae){var ie=this,pe=I;return M==null&&(M=I),ae==null&&(ae=I),y(ee["$end_with?"]("!"))?(ee=ee.$chop(),P=I):y(ee["$start_with?"]("!"))&&(ee=ee.$slice(1,ee.$length()),P=I),qe(ee=ie.$sanitize_attribute_name(ee),"numbered")?ee="sectnums":qe(ee,"hardbreaks")?ee="hardbreaks-option":qe(ee,"showtitle")&&ie.$store_attribute("notitle",y(P)?I:"",M,ae),y(M)?y(P)?(qe(ee,"leveloffset")&&(y(P["$start_with?"]("+"))?P=Ke(M.$attr("leveloffset",0).$to_i(),P.$slice(1,P.$length()).$to_i()).$to_s():y(P["$start_with?"]("-"))&&(P=st(M.$attr("leveloffset",0).$to_i(),P.$slice(1,P.$length()).$to_i()).$to_s())),y(pe=M.$set_attribute(ee,P))&&(P=pe,y(ae)&&tt(ce("Document"),"AttributeEntry").$new(ee,P).$save_to(ae))):y(M.$delete_attribute(ee))&&y(ae)&&tt(ce("Document"),"AttributeEntry").$new(ee,P).$save_to(ae):y(ae)&&tt(ce("Document"),"AttributeEntry").$new(ee,P).$save_to(ae),[ee,P]},-3),Z(Ie,"$resolve_list_marker",function(ee,P,M,ae,ie){var pe=this;switch(M==null&&(M=0),ae==null&&(ae=!1),ie==null&&(ie=I),ee){case"ulist":return P;case"olist":return pe.$resolve_ordered_list_marker(P,M,ae,ie)["$[]"](0);default:return"<1>"}},-3),Z(Ie,"$resolve_ordered_list_marker",function(ee,P,M,ae){var ie=this,pe=I,Y=I,g=I;if(P==null&&(P=0),M==null&&(M=!1),ae==null&&(ae=I),y(ee["$start_with?"](".")))return[ee];switch(pe=ye(ce("ORDERED_LIST_STYLES"),"find",[],function(_){return _==null&&(_=I),ce("OrderedListMarkerRxMap")["$[]"](_)["$match?"](ee)})){case"arabic":y(M)&&(Y=Ke(P,1),g=ee.$to_i()),ee="1.";break;case"loweralpha":y(M)&&(Y=Ke("a"["$[]"](0).$ord(),P).$chr(),g=ee.$chop()),ee="a.";break;case"upperalpha":y(M)&&(Y=Ke("A"["$[]"](0).$ord(),P).$chr(),g=ee.$chop()),ee="A.";break;case"lowerroman":y(M)&&(Y=ce("Helpers").$int_to_roman(Ke(P,1)).$downcase(),g=ee.$chop()),ee="i)";break;case"upperroman":y(M)&&(Y=ce("Helpers").$int_to_roman(Ke(P,1)),g=ee.$chop()),ee="I)";break}return y(M)&&Ne(Y,g)&&ie.$logger().$warn(ie.$message_with_context("list item index: expected "+Y+", got "+g,X(["source_location"],{source_location:ae.$cursor()}))),[ee,pe]},-2),Z(Ie,"$is_sibling_list_item?",function(ee,P,M){var ae,ie=this,pe=I;return Ve(tt("Regexp"),M)?M["$match?"](ee):y(pe=ce("ListRxMap")["$[]"](P)["$=~"](ee))?M["$=="](ie.$resolve_list_marker(P,(ae=et["~"])===I?I:ae["$[]"](1))):pe}),Z(Ie,"$parse_table",function(ee,P,M){var ae,ie,pe,Y=this,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I,_e=I,ue=I,Se=I,Be=I,Xe=I,it=I,pt=I,at=I,bt=I,kt=I;for(g=ce("Table").$new(P,M),y(M["$key?"]("cols"))&&R((u=Y.$parse_colspecs(M["$[]"]("cols")))["$empty?"]())&&(g.$create_columns(u),_=!0),z=y(S=ee.$skip_blank_lines())?S:0,y(M["$[]"]("header-option"))?g["$has_header_option="](!0):qe(z,0)&&R(M["$[]"]("noheader-option"))&&(g["$has_header_option="]("implicit"),b=!0),F=tt(ce("Table"),"ParserContext").$new(ee,g,M),ae=[F.$format(),-1,I],H=ae[0],_e=ae[1],ue=ae[2];y(Se=ee.$read_line());){for(y(Be=Pe(_e=Ke(_e,1),0))&&y(Se["$empty?"]())?(Se=I,y(ue)&&(ue=Ke(ue,1))):qe(H,"psv")&&(y(F["$starts_with_delimiter?"](Se))?(Se=Se.$slice(1,Se.$length()),F.$close_open_cell(),y(ue)&&(ue=I)):(ie=Y.$parse_cellspec(Se,"start",F.$delimiter()),ae=Ue(ie),Xe=ae[0]==null?I:ae[0],Se=ae[1]==null?I:ae[1],y(Xe)?(F.$close_open_cell(Xe),y(ue)&&(ue=I)):y(ue)&&qe(ue,_e)&&g["$has_header_option="](b=ue=I))),y(Be)||(ee.$mark(),y(b)&&(y(ee["$has_more_lines?"]())&&y(ee.$peek_line()["$empty?"]())?ue=1:g["$has_header_option="](b=I))),ae=!1;ae||y(!0);)if(ae=!1,y(Se)&&y(it=F.$match_delimiter(Se))){if(ie=[it.$pre_match(),it.$post_match()],pt=ie[0],at=ie[1],Ve("csv",S=H)){if(y(F["$buffer_has_unclosed_quotes?"](pt))){if(F.$skip_past_delimiter(pt),y((Se=at)["$empty?"]()))break;ae=!0;continue}F["$buffer="](""+F.$buffer()+pt)}else if(Ve("dsv",S)){if(y(pt["$end_with?"]("\\"))){if(F.$skip_past_escaped_delimiter(pt),y((Se=at)["$empty?"]())){F["$buffer="](""+F.$buffer()+ce("LF")),F.$keep_cell_open();break}ae=!0;continue}F["$buffer="](""+F.$buffer()+pt)}else{if(y(pt["$end_with?"]("\\"))){if(F.$skip_past_escaped_delimiter(pt),y((Se=at)["$empty?"]())){F["$buffer="](""+F.$buffer()+ce("LF")),F.$keep_cell_open();break}ae=!0;continue}pe=Y.$parse_cellspec(pt),ie=Ue(pe),Xe=ie[0]==null?I:ie[0],bt=ie[1]==null?I:ie[1],F.$push_cellspec(Xe),F["$buffer="](""+F.$buffer()+bt)}y((Se=at)["$empty?"]())&&(Se=I),F.$close_cell()}else{switch(F["$buffer="](""+F.$buffer()+Se+ce("LF")),H){case"csv":y(F["$buffer_has_unclosed_quotes?"]())?(y(ue)&&qe(_e,0)&&g["$has_header_option="](b=ue=I),F.$keep_cell_open()):F.$close_cell(!0);break;case"dsv":F.$close_cell(!0);break;default:F.$keep_cell_open()}break}if(y(F["$cell_open?"]()))y(ee["$has_more_lines?"]())||F.$close_cell(!0);else if(!y(S=ee.$skip_blank_lines()))break}return qe((kt=g.$attributes(),y(S=kt["$[]"]("colcount"))?S:(ae=["colcount",g.$columns().$size()],ye(kt,"[]=",ae),ae[ae.length-1])),0)||y(_)||g.$assign_column_widths(),y(b)&&g["$has_header_option="](!0),g.$partition_header_footer(M),g}),Z(Ie,"$parse_colspecs",function(ee){var P=I;return y(ee["$include?"](" "))&&(ee=ee.$delete(" ")),qe(ee,ee.$to_i().$to_s())?ye(tt("Array"),"new",[ee.$to_i()],function(){return X(["width"],{width:1})}):(P=[],ye(y(ee["$include?"](","))?ee.$split(",",-1):ee.$split(";",-1),"each",[],function(ae){var ie,pe,Y=I,g=I,u=I,_=I,z=I;return ae==null&&(ae=I),y(ae["$empty?"]())?P["$<<"](X(["width"],{width:1})):y(Y=ce("ColumnSpecRx").$match(ae))?(g=X([],{}),y(Y["$[]"](2))&&(pe=Y["$[]"](2).$split("."),ie=Ue(pe),u=ie[0]==null?I:ie[0],_=ie[1]==null?I:ie[1],R(u["$nil_or_empty?"]())&&y(ce("TableCellHorzAlignments")["$key?"](u))&&g["$[]="]("halign",ce("TableCellHorzAlignments")["$[]"](u)),R(_["$nil_or_empty?"]())&&y(ce("TableCellVertAlignments")["$key?"](_))&&g["$[]="]("valign",ce("TableCellVertAlignments")["$[]"](_))),y(z=Y["$[]"](3))?g["$[]="]("width",qe(z,"~")?-1:z.$to_i()):g["$[]="]("width",1),y(Y["$[]"](4))&&y(ce("TableCellStyles")["$key?"](Y["$[]"](4)))&&g["$[]="]("style",ce("TableCellStyles")["$[]"](Y["$[]"](4))),y(Y["$[]"](1))?ye(1,"upto",[Y["$[]"](1).$to_i()],function(){return P["$<<"](g.$merge())}):P["$<<"](g)):I}),P)}),Z(Ie,"$parse_cellspec",function(ee,P,M){var ae,ie,pe=I,Y=I,g=I,u=I,_=I,z=I;if(P==null&&(P="end"),M==null&&(M=I),ae=[I,""],pe=ae[0],Y=ae[1],qe(P,"start"))if(y(ee["$include?"](M)))if(ie=ee.$partition(M),ae=Ue(ie),g=ae[0]==null?I:ae[0],ae[1]==null||ae[1],Y=ae[2]==null?I:ae[2],y(pe=ce("CellSpecStartRx").$match(g))){if(y(pe["$[]"](0)["$empty?"]()))return[X([],{}),Y]}else return[I,ee];else return[I,ee];else if(y(pe=ce("CellSpecEndRx").$match(ee))){if(y(pe["$[]"](0).$lstrip()["$empty?"]()))return[X([],{}),ee.$rstrip()];Y=pe.$pre_match()}else return[X([],{}),ee];if(u=X([],{}),y(pe["$[]"](1)))switch(ie=pe["$[]"](1).$split("."),ae=Ue(ie),_=ae[0]==null?I:ae[0],z=ae[1]==null?I:ae[1],_=y(_["$nil_or_empty?"]())?1:_.$to_i(),z=y(z["$nil_or_empty?"]())?1:z.$to_i(),pe["$[]"](2)){case"+":qe(_,1)||u["$[]="]("colspan",_),qe(z,1)||u["$[]="]("rowspan",z);break;case"*":qe(_,1)||u["$[]="]("repeatcol",_);break}return y(pe["$[]"](3))&&(ie=pe["$[]"](3).$split("."),ae=Ue(ie),_=ae[0]==null?I:ae[0],z=ae[1]==null?I:ae[1],R(_["$nil_or_empty?"]())&&y(ce("TableCellHorzAlignments")["$key?"](_))&&u["$[]="]("halign",ce("TableCellHorzAlignments")["$[]"](_)),R(z["$nil_or_empty?"]())&&y(ce("TableCellVertAlignments")["$key?"](z))&&u["$[]="]("valign",ce("TableCellVertAlignments")["$[]"](z))),y(pe["$[]"](4))&&y(ce("TableCellStyles")["$key?"](pe["$[]"](4)))&&u["$[]="]("style",ce("TableCellStyles")["$[]"](pe["$[]"](4))),[u,Y]},-2),Z(Ie,"$parse_style_attribute",function(ee,P){var M,ae=this,ie=I,pe=I,Y=I,g=I,u=I,_=I;return P==null&&(P=I),y(ie=ee["$[]"](1))&&R(ie["$include?"](" "))&&y(ce("Compliance").$shorthand_property_syntax())?(pe=I,Y="",g=X([],{}),ye(ie,"each_char",[],function z(S){var b=z.$$s==null?this:z.$$s;switch(S==null&&(S=I),S){case".":return b.$yield_buffered_attribute(g,pe,Y,P),Y="",pe="role";case"#":return b.$yield_buffered_attribute(g,pe,Y,P),Y="",pe="id";case"%":return b.$yield_buffered_attribute(g,pe,Y,P),Y="",pe="option";default:return Y=Ke(Y,S)}},{$$s:ae}),y(pe)?(ae.$yield_buffered_attribute(g,pe,Y,P),y(u=g["$[]"]("style"))&&ee["$[]="]("style",u),y(g["$key?"]("id"))&&ee["$[]="]("id",g["$[]"]("id")),y(g["$key?"]("role"))&&ee["$[]="]("role",y((_=ee["$[]"]("role"))["$nil_or_empty?"]())?g["$[]"]("role").$join(" "):""+_+" "+g["$[]"]("role").$join(" ")),y(g["$key?"]("option"))&&ye(g["$[]"]("option"),"each",[],function(S){var b;return S==null&&(S=I),b=[""+S+"-option",""],ye(ee,"[]=",b),b[b.length-1]}),u):(M=["style",ie],ye(ee,"[]=",M),M[M.length-1])):(M=["style",ie],ye(ee,"[]=",M),M[M.length-1])},-2),Z(Ie,"$yield_buffered_attribute",function(ee,P,M,ae){var ie,pe=this,Y=I;return y(P)?y(M["$empty?"]())?y(ae)?pe.$logger().$warn(pe.$message_with_context("invalid empty "+P+" detected in style attribute",X(["source_location"],{source_location:ae.$cursor_at_prev_line()}))):pe.$logger().$warn("invalid empty "+P+" detected in style attribute"):qe(P,"id")?(y(ee["$key?"]("id"))&&(y(ae)?pe.$logger().$warn(pe.$message_with_context("multiple ids detected in style attribute",X(["source_location"],{source_location:ae.$cursor_at_prev_line()}))):pe.$logger().$warn("multiple ids detected in style attribute")),ee["$[]="](P,M)):(y(Y=ee["$[]"](P))?Y:(ie=[P,[]],ye(ee,"[]=",ie),ie[ie.length-1]))["$<<"](M):y(M["$empty?"]())||ee["$[]="]("style",M),I}),Z(Ie,"$adjust_indentation!",function(ee,P,M){var ae=I,ie=I,pe=I;return P==null&&(P=0),M==null&&(M=0),y(ee["$empty?"]())||(y(Pe(M,0))&&y(ye(ee,"any?",[],function(g){return g==null&&(g=I),g["$include?"](ce("TAB"))}))&&(ae=Ye(" ",M),ye(ee,"map!",[],function(g){var u=I,_=I,z=I,S=I,b=I;return g==null&&(g=I),y(g["$empty?"]())||y((u=g.$index(ce("TAB")))["$nil?"]())||qe(u,0)&&(_=0,function(){try{var F=Je("break");return ye(g,"each_byte",[],function(_e){return _e==null&&(_e=I),qe(_e,9)||F.$throw(),_=Ke(_,1)})}catch(H){if(H===F)return H.$v;throw H}}(),g=""+Ye(ae,_)+g.$slice(_,g.$length()),!y(g["$include?"](ce("TAB"))))?g:(z=0,S=0,b="",ye(g,"each_char",[],function(H){var _e=I,ue=I;return H==null&&(H=I),qe(H,ce("TAB"))?qe((_e=Ke(S,z))["$%"](M),0)?(z=Ke(z,st(M,1)),b=Ke(b,ae)):(qe(ue=st(M,_e["$%"](M)),1)||(z=Ke(z,st(ue,1))),b=Ke(b,Ye(" ",ue))):b=Ke(b,H),S=Ke(S,1)}),b)})),y(Le(P,0)))||(ie=I,function(){try{var Y=Je("break");return ye(ee,"each",[],function(u){var _=I;return u==null&&(u=I),y(u["$empty?"]())||(qe(_=st(u.$length(),u.$lstrip().$length()),0)&&(ie=I,Y.$throw()),y(ie)&&y(Le(ie,_)))?I:ie=_})}catch(g){if(g===Y)return g.$v;throw g}}(),qe(P,0)?y(ie)&&ye(ee,"map!",[],function(g){return g==null&&(g=I),y(g["$empty?"]())?g:g.$slice(ie,g.$length())}):(pe=Ye(" ",P),y(ie)?ye(ee,"map!",[],function(g){return g==null&&(g=I),y(g["$empty?"]())?g:Ke(pe,g.$slice(ie,g.$length()))}):ye(ee,"map!",[],function(g){return g==null&&(g=I),y(g["$empty?"]())?g:Ke(pe,g)}))),I},-2),Z(Ie,"$uniform?",function(ee,P,M){return ee.$count(P)["$=="](M)}),Z(Ie,"$sanitize_attribute_name",function(ee){return ee.$gsub(ce("InvalidAttributeNameCharsRx"),"").$downcase()})}(J[0],null,J)}(dt[0],dt)},Opal.modules["asciidoctor/path_resolver"]=function(a){var oe=a.module,se=a.klass,K=a.const_set,ye=a.truthy,y=a.hash2,X=a.def,Ue=a.eqeq,Z=a.alias,qe=a.rb_plus,R=a.to_ary,et=a.send,Ne=a.not,Ke=a.neqeq,Le=a.rb_gt,Pe=a.gvars,ht=[],Ve=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(Ye,Je){var dt=oe(Ye,"Asciidoctor"),I=[dt].concat(Je);return function(tt,A,rt){var lt=se(tt,A,"PathResolver"),J=[lt].concat(rt),L=a.$r(J),He=lt.$$prototype;return He.file_separator=He._partition_path_web=He._partition_path_sys=He.working_dir=Ve,lt.$include(L("Logging")),K(J[0],"DOT","."),K(J[0],"DOT_DOT",".."),K(J[0],"DOT_SLASH","./"),K(J[0],"SLASH","/"),K(J[0],"BACKSLASH","\\"),K(J[0],"DOUBLE_SLASH","//"),K(J[0],"URI_CLASSLOADER","uri:classloader:"),K(J[0],"WindowsRootRx",/^(?:[a-zA-Z]:)?[\\\/]/),lt.$attr_accessor("file_separator"),lt.$attr_accessor("working_dir"),X(lt,"$initialize",function(Ie,Re){var ce=this,xe=Ve,ee=Ve;return Ie==null&&(Ie=Ve),Re==null&&(Re=Ve),ce.file_separator=ye(xe=ye(ee=Ie)?ee:st(st("File"),"ALT_SEPARATOR"))?xe:st(st("File"),"SEPARATOR"),ce.working_dir=ye(Re)?ye(ce["$root?"](Re))?ce.$posixify(Re):st("File").$expand_path(Re):st("Dir").$pwd(),ce._partition_path_sys=y([],{}),ce._partition_path_web=y([],{})},-1),X(lt,"$absolute_path?",function(Ie){var Re=this,ce=Ve,xe=Ve;return ye(ce=Ie["$start_with?"](L("SLASH")))?ce:ye(xe=Re.file_separator["$=="](L("BACKSLASH")))?L("WindowsRootRx")["$match?"](Ie):xe}),Ue(L("RUBY_ENGINE"),"opal")&&Ue(st("JAVASCRIPT_IO_MODULE"),"xmlhttprequest")?X(lt,"$root?",function(Ie){var Re=this,ce=Ve;return ye(ce=Re["$absolute_path?"](Ie))?ce:Ie["$start_with?"]("file://","http://","https://")}):Ue(st("RUBY_ENGINE"),"jruby")?X(lt,"$root?",function(Ie){var Re=this,ce=Ve;return ye(ce=Re["$absolute_path?"](Ie))?ce:Ie["$start_with?"](L("URI_CLASSLOADER"))}):Z(lt,"root?","absolute_path?"),X(lt,"$unc?",function(Ie){return Ie["$start_with?"](L("DOUBLE_SLASH"))}),X(lt,"$web_root?",function(Ie){return Ie["$start_with?"](L("SLASH"))}),X(lt,"$descends_from?",function(Ie,Re){var ce=Ve;return Ue(Re,Ie)?0:Ue(Re,L("SLASH"))?ye(ce=Ie["$start_with?"](L("SLASH")))?1:ce:ye(ce=Ie["$start_with?"](qe(Re,L("SLASH"))))?qe(Re.$length(),1):ce}),X(lt,"$relative_path",function(Ie,Re){var ce=this,xe=Ve;if(ye(ce["$root?"](Ie))){if(ye(xe=ce["$descends_from?"](Ie,Re)))return Ie.$slice(xe,Ie.$length());try{return L("Pathname").$new(Ie).$relative_path_from(L("Pathname").$new(Re)).$to_s()}catch(ee){if(a.rescue(ee,[L("StandardError")]))try{return Ie}finally{a.pop_exception()}else throw ee}}else return Ie}),X(lt,"$posixify",function(Ie){var Re=this;return ye(Ie)?Ue(Re.file_separator,L("BACKSLASH"))&&ye(Ie["$include?"](L("BACKSLASH")))?Ie.$tr(L("BACKSLASH"),L("SLASH")):Ie:""}),Z(lt,"posixfy","posixify"),X(lt,"$expand_path",function(Ie){var Re,ce,xe=this,ee=Ve,P=Ve,M=Ve;return ce=xe.$partition_path(Ie),Re=R(ce),ee=Re[0]==null?Ve:Re[0],P=Re[1]==null?Ve:Re[1],ye(Ie["$include?"](L("DOT_DOT")))?(M=[],et(ee,"each",[],function(ie){return ie==null&&(ie=Ve),Ue(ie,L("DOT_DOT"))?M.$pop():M["$<<"](ie)}),xe.$join_path(M,P)):xe.$join_path(ee,P)}),X(lt,"$partition_path",function(Ie,Re){var ce,xe=this,ee=Ve,P=Ve,M=Ve,ae=Ve,ie=Ve;return Re==null&&(Re=Ve),ye(ee=(P=ye(Re)?xe._partition_path_web:xe._partition_path_sys)["$[]"](Ie))?ee:(M=xe.$posixify(Ie),ye(Re)?ye(xe["$web_root?"](M))?ae=L("SLASH"):ye(M["$start_with?"](L("DOT_SLASH")))&&(ae=L("DOT_SLASH")):ye(xe["$root?"](M))?ye(xe["$unc?"](M))?ae=L("DOUBLE_SLASH"):ye(M["$start_with?"](L("SLASH")))?ae=L("SLASH"):ye(M["$start_with?"](L("URI_CLASSLOADER")))?ae=M.$slice(0,L("URI_CLASSLOADER").$length()):ae=M.$slice(0,qe(M.$index(L("SLASH")),1)):ye(M["$start_with?"](L("DOT_SLASH")))&&(ae=L("DOT_SLASH")),ie=(ye(ae)?M.$slice(ae.$length(),M.$length()):M).$split(L("SLASH")),ie.$delete(L("DOT")),ce=[Ie,[ie,ae]],et(P,"[]=",ce),ce[ce.length-1])},-2),X(lt,"$join_path",function(Ie,Re){return Re==null&&(Re=Ve),ye(Re)?""+Re+Ie.$join(L("SLASH")):Ie.$join(L("SLASH"))},-2),X(lt,"$system_path",function(Ie,Re,ce,xe){var ee,P,M=this,ae=Ve,ie=Ve,pe=Ve,Y=Ve,g=Ve,u=Ve,_=Ve,z=Ve,S=Ve,b=Ve,F=Ve;if(Re==null&&(Re=Ve),ce==null&&(ce=Ve),xe==null&&(xe=y([],{})),ye(ce)&&(ye(M["$root?"](ce))||M.$raise(st("SecurityError"),"Jail is not an absolute path: "+ce),ce=M.$posixify(ce)),ye(Ie))if(ye(M["$root?"](Ie))){if(ae=M.$expand_path(Ie),ye(ce)&&Ne(M["$descends_from?"](ae,ce))){if(ye(xe.$fetch("recover",!0)))return M.$logger().$warn(""+(ye(ie=xe["$[]"]("target_name"))?ie:"path")+" is outside of jail; recovering automatically"),P=M.$partition_path(ae),ee=R(P),pe=ee[0]==null?Ve:ee[0],P=M.$partition_path(ce),ee=R(P),Y=ee[0]==null?Ve:ee[0],g=ee[1]==null?Ve:ee[1],M.$join_path(qe(Y,pe),g);M.$raise(st("SecurityError"),""+(ye(ie=xe["$[]"]("target_name"))?ie:"path")+" "+Ie+" is outside of jail: "+ce+" (disallowed in safe mode)")}return ae}else P=M.$partition_path(Ie),ee=R(P),pe=ee[0]==null?Ve:ee[0];else pe=[];if(ye(pe["$empty?"]())){if(ye(Re["$nil_or_empty?"]()))return ye(ie=ce)?ie:M.working_dir;if(ye(M["$root?"](Re)))if(ye(ce))Re=M.$posixify(Re);else return M.$expand_path(Re);else P=M.$partition_path(Re),ee=R(P),pe=ee[0]==null?Ve:ee[0],Re=ye(ie=ce)?ie:M.working_dir}else ye(Re["$nil_or_empty?"]())?Re=ye(ie=ce)?ie:M.working_dir:ye(M["$root?"](Re))?ye(ce)&&(Re=M.$posixify(Re)):Re=""+(ye(ie=ce)?ie:M.working_dir).$chomp("/")+"/"+Re;return ye(ce)&&ye(u=M["$descends_from?"](Re,ce)["$!"]())&&Ue(M.file_separator,L("BACKSLASH"))?(P=M.$partition_path(Re),ee=R(P),_=ee[0]==null?Ve:ee[0],z=ee[1]==null?Ve:ee[1],P=M.$partition_path(ce),ee=R(P),Y=ee[0]==null?Ve:ee[0],g=ee[1]==null?Ve:ee[1],Ke(z,g)&&(ye(xe.$fetch("recover",!0))?(M.$logger().$warn("start path for "+(ye(ie=xe["$[]"]("target_name"))?ie:"path")+" is outside of jail root; recovering automatically"),_=Y,u=!1):M.$raise(st("SecurityError"),"start path for "+(ye(ie=xe["$[]"]("target_name"))?ie:"path")+" "+Re+" refers to location outside jail root: "+ce+" (disallowed in safe mode)"))):(P=M.$partition_path(Re),ee=R(P),_=ee[0]==null?Ve:ee[0],g=ee[1]==null?Ve:ee[1]),ye((S=qe(_,pe))["$include?"](L("DOT_DOT")))&&(ee=[S,[]],b=ee[0],S=ee[1],ye(ce)?(ye(Y)||(P=M.$partition_path(ce),ee=R(P),Y=ee[0]==null?Ve:ee[0]),F=!1,et(b,"each",[],function H(_e){var ue=H.$$s==null?this:H.$$s;return _e==null&&(_e=Ve),Ue(_e,L("DOT_DOT"))?ye(Le(S.$size(),Y.$size()))?S.$pop():ye(xe.$fetch("recover",!0))?ye(F)?Ve:(ue.$logger().$warn(""+(ye(ie=xe["$[]"]("target_name"))?ie:"path")+" has illegal reference to ancestor of jail; recovering automatically"),F=!0):ue.$raise(st("SecurityError"),""+(ye(ie=xe["$[]"]("target_name"))?ie:"path")+" "+Ie+" refers to location outside jail: "+ce+" (disallowed in safe mode)"):S["$<<"](_e)},{$$s:M})):et(b,"each",[],function(_e){return _e==null&&(_e=Ve),Ue(_e,L("DOT_DOT"))?S.$pop():S["$<<"](_e)})),ye(u)?(ae=M.$join_path(S,g),ye(M["$descends_from?"](ae,ce))?ae:ye(xe.$fetch("recover",!0))?(M.$logger().$warn(""+(ye(ie=xe["$[]"]("target_name"))?ie:"path")+" is outside of jail; recovering automatically"),ye(Y)||(P=M.$partition_path(ce),ee=R(P),Y=ee[0]==null?Ve:ee[0]),M.$join_path(qe(Y,pe),g)):M.$raise(st("SecurityError"),""+(ye(ie=xe["$[]"]("target_name"))?ie:"path")+" "+Ie+" is outside of jail: "+ce+" (disallowed in safe mode)")):M.$join_path(S,g)},-2),X(lt,"$web_path",function(Ie,Re){var ce,xe,ee=this,P=Ve,M=Ve,ae=Ve,ie=Ve,pe=Ve;return Re==null&&(Re=Ve),Ie=ee.$posixify(Ie),Re=ee.$posixify(Re),ye(Re["$nil_or_empty?"]())||ye(ee["$web_root?"](Ie))||(xe=ee.$extract_uri_prefix(""+Re+(ye(Re["$end_with?"](L("SLASH")))?"":L("SLASH"))+Ie),ce=R(xe),Ie=ce[0]==null?Ve:ce[0],P=ce[1]==null?Ve:ce[1]),xe=ee.$partition_path(Ie,!0),ce=R(xe),M=ce[0]==null?Ve:ce[0],ae=ce[1]==null?Ve:ce[1],ie=[],et(M,"each",[],function(g){return g==null&&(g=Ve),Ue(g,L("DOT_DOT"))?ye(ie["$empty?"]())?ye(ae)&&Ke(ae,L("DOT_SLASH"))?Ve:ie["$<<"](g):Ue(ie["$[]"](-1),L("DOT_DOT"))?ie["$<<"](g):ie.$pop():ie["$<<"](g)}),ye((pe=ee.$join_path(ie,ae))["$include?"](" "))&&(pe=pe.$gsub(" ","%20")),ye(P)?""+P+pe:pe},-2),lt.$private(),X(lt,"$extract_uri_prefix",function(Ie){var Re;return ye(Ie["$include?"](":"))&&ye(L("UriSniffRx")["$=~"](Ie))?[Ie.$slice(((Re=Pe["~"])===Ve?Ve:Re["$[]"](0)).$length(),Ie.$length()),(Re=Pe["~"])===Ve?Ve:Re["$[]"](0)]:Ie})}(I[0],null,I)}(ht[0],ht)},Opal.modules["asciidoctor/reader"]=function(a){var oe=a.module,se=a.klass,K=a.def,ye=a.rb_plus,y=a.alias,X=a.hash2,Ue=a.not,Z=a.eqeqeq,qe=a.to_ary,R=a.truthy,et=a.rb_gt,Ne=a.send,Ke=a.rb_minus,Le=a.thrower,Pe=a.eqeq,ht=a.rb_times,Ve=a.neqeq,st=a.to_a,Ye=a.assign_ivar_val,Je=a.send2,dt=a.find_super,I=a.rb_ge,tt=a.gvars,A=a.rb_lt,rt=a.hash,lt=[],J=a.nil,L=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,ke){var Ie=oe(He,"Asciidoctor"),Re=[Ie].concat(ke),ce=a.$r(Re);return function(xe,ee,P){var M=se(xe,ee,"Reader"),ae=[M].concat(P),ie=a.$r(ae),pe=M.$$prototype;return pe.file=pe.lines=pe.look_ahead=pe.unescape_next_line=pe.lineno=pe.process_lines=pe.dir=pe.path=pe.mark=pe.source_lines=pe.saved=J,M.$include(ie("Logging")),function(Y,g){var u=se(Y,g,"Cursor"),_=u.$$prototype;return _.lineno=_.path=J,u.$attr_reader("file","dir","path","lineno"),K(u,"$initialize",function(S,b,F,H){var _e,ue=this;return b==null&&(b=J),F==null&&(F=J),H==null&&(H=1),_e=[S,b,F,H],ue.file=_e[0],ue.dir=_e[1],ue.path=_e[2],ue.lineno=_e[3],_e},-2),K(u,"$advance",function(S){var b=this;return b.lineno=ye(b.lineno,S)}),K(u,"$line_info",function(){var S=this;return""+S.path+": line "+S.lineno}),y(u,"to_s","line_info")}(ae[0],null),M.$attr_reader("file"),M.$attr_reader("dir"),M.$attr_reader("path"),M.$attr_reader("lineno"),M.$attr_reader("source_lines"),M.$attr_accessor("process_lines"),M.$attr_accessor("unterminated"),K(M,"$initialize",function(g,u,_){var z,S,b=this,F=J;return g==null&&(g=J),u==null&&(u=J),_==null&&(_=X([],{})),Ue(u)?(b.file=J,b.dir=".",b.path="<stdin>",b.lineno=1):Z(L("String"),u)?(b.file=u,S=L("File").$split(b.file),z=qe(S),b.dir=z[0]==null?J:z[0],b.path=z[1]==null?J:z[1],b.lineno=1):(R(b.file=u.$file())?(b.dir=R(F=u.$dir())?F:L("File").$dirname(b.file),b.path=R(F=u.$path())?F:L("File").$basename(b.file)):(b.dir=R(F=u.$dir())?F:".",b.path=R(F=u.$path())?F:"<stdin>"),b.lineno=R(F=u.$lineno())?F:1),b.lines=(b.source_lines=b.$prepare_lines(g,_)).$reverse(),b.mark=J,b.look_ahead=0,b.process_lines=!0,b.unescape_next_line=!1,b.unterminated=J,b.saved=J},-1),K(M,"$has_more_lines?",function(){var g=this;return R(g.lines["$empty?"]())?(g.look_ahead=0,!1):!0}),K(M,"$empty?",function(){var g=this;return R(g.lines["$empty?"]())?(g.look_ahead=0,!0):!1}),y(M,"eof?","empty?"),K(M,"$next_line_empty?",function(){var g=this;return g.$peek_line()["$nil_or_empty?"]()}),K(M,"$peek_line",function(g){var u=this,_=J,z=J;for(g==null&&(g=!1);R(!0);){if(_=u.lines["$[]"](-1),R(g)||R(et(u.look_ahead,0)))return R(u.unescape_next_line)?_.$slice(1,_.$length()):_;if(R(_)){if(R(z=u.$process_line(_)))return z}else return u.look_ahead=0,J}},-1),K(M,"$peek_lines",function(g,u){var _=this,z=J,S=J,b=J;return g==null&&(g=J),u==null&&(u=!1),z=_.look_ahead,S=[],function(){try{var F=Le("break");return Ne(R(b=g)?b:ie("MAX_INT"),"times",[],function H(){var _e=H.$$s==null?this:H.$$s,ue=J;if(_e.lineno==null&&(_e.lineno=J),R(ue=R(u)?_e.$shift():_e.$read_line()))return S["$<<"](ue);R(u)&&(_e.lineno=Ke(_e.lineno,1)),F.$throw()},{$$s:_})}catch(H){if(H===F)return H.$v;throw H}}(),R(S["$empty?"]())||(_.$unshift_all(S),R(u)&&(_.look_ahead=z)),S},-1),K(M,"$read_line",function(){var g=this;return R(et(g.look_ahead,0))||R(g["$has_more_lines?"]())?g.$shift():J}),K(M,"$read_lines",function(){var g=this,u=J;for(u=[];R(g["$has_more_lines?"]());)u["$<<"](g.$shift());return u}),y(M,"readlines","read_lines"),K(M,"$read",function(){var g=this;return g.$read_lines().$join(ie("LF"))}),K(M,"$advance",function(){var g=this;return!!R(g.$shift())}),K(M,"$unshift_line",function(g){var u=this;return u.$unshift(g),J}),y(M,"restore_line","unshift_line"),K(M,"$unshift_lines",function(g){var u=this;return u.$unshift_all(g)}),y(M,"restore_lines","unshift_lines"),K(M,"$replace_next_line",function(g){var u=this;return u.$shift(),u.$unshift(g),!0}),y(M,"replace_line","replace_next_line"),K(M,"$skip_blank_lines",function(){var g=this,u=J,_=J;if(R(g["$empty?"]()))return J;for(u=0;R(_=g.$peek_line());)if(R(_["$empty?"]()))g.$shift(),u=ye(u,1);else return u}),K(M,"$skip_comment_lines",function(){var g=this,u=J,_=J,z=J;if(R(g["$empty?"]()))return J;for(;R(R(u=_=g.$peek_line())?_["$empty?"]()["$!"]():u)&&R(_["$start_with?"]("//"));)if(R(_["$start_with?"]("///")))if(R(et(z=_.$length(),3))&&Pe(_,ht("/",z)))g.$read_lines_until(X(["terminator","skip_first_line","read_last_line","skip_processing","context"],{terminator:_,skip_first_line:!0,read_last_line:!0,skip_processing:!0,context:"comment"}));else break;else g.$shift();return J}),K(M,"$skip_line_comments",function(){var g=this,u=J,_=J,z=J;if(R(g["$empty?"]()))return[];for(u=[];R(R(_=z=g.$peek_line())?z["$empty?"]()["$!"]():_)&&R(z["$start_with?"]("//"));)u["$<<"](g.$shift());return u}),K(M,"$terminate",function(){var g=this;return g.lineno=ye(g.lineno,g.lines.$size()),g.lines.$clear(),g.look_ahead=0,J}),K(M,"$read_lines_until",function Y(g){var u,_=Y.$$p||J,z=this,S=J,b=J,F=J,H=J,_e=J,ue=J,Se=J,Be=J,Xe=J,it=J,pt=J,at=J,bt=J,kt=J,Et=J,xt=J;for(Y.$$p=null,g==null&&(g=X([],{})),S=[],R(z.process_lines)&&R(g["$[]"]("skip_processing"))&&(z.process_lines=!1,b=!0),R(F=g["$[]"]("terminator"))?(H=R(_e=g["$[]"]("cursor"))?_e:z.$cursor(),ue=!1,Se=!1):(ue=g["$[]"]("break_on_blank_lines"),Se=g["$[]"]("break_on_list_continuation")),Be=g["$[]"]("skip_line_comments"),Xe=it=J,R(g["$[]"]("skip_first_line"))&&z.$shift();R(pt=z.$read_line());){if(R(R(F)?pt["$=="](F):R(_e=R(at=R(bt=ue)?pt["$empty?"]():bt)?at:R(bt=R(kt=R(Et=Se)?Xe:Et)?pt["$=="](ie("LIST_CONTINUATION")):kt)?(u=["preserve_last_line",!0],Ne(g,"[]=",u),u[u.length-1]):bt)?_e:R(at=_!==J)?a.yield1(_,pt):at)){R(g["$[]"]("read_last_line"))&&S["$<<"](pt),R(g["$[]"]("preserve_last_line"))&&(z.$unshift(pt),it=!0);break}R(Be)&&R(pt["$start_with?"]("//"))&&Ue(pt["$start_with?"]("///"))||(S["$<<"](pt),Xe=!0)}return R(b)&&(z.process_lines=!0,R(it)&&Ue(F)&&(z.look_ahead=Ke(z.look_ahead,1))),R(F)&&Ve(F,pt)&&R(xt=g.$fetch("context",F))&&(Pe(H,"at_mark")&&(H=z.$cursor_at_mark()),z.$logger().$warn(z.$message_with_context("unterminated "+xt+" block",X(["source_location"],{source_location:H}))),z.unterminated=!0),S},-1),K(M,"$shift",function(){var g=this;return g.lineno=ye(g.lineno,1),Pe(g.look_ahead,0)||(g.look_ahead=Ke(g.look_ahead,1)),g.lines.$pop()}),K(M,"$unshift",function(g){var u=this;return u.lineno=Ke(u.lineno,1),u.look_ahead=ye(u.look_ahead,1),u.lines.$push(g),J}),Pe(L("RUBY_ENGINE"),"jruby")?K(M,"$unshift_all",function(g){var u=this;return u.lineno=Ke(u.lineno,g.$size()),u.look_ahead=ye(u.look_ahead,g.$size()),R(g["$respond_to?"]("reverse"))?Ne(u.lines,"push",st(g.$reverse())):Ne(g,"reverse_each",[],function _(z){var S=_.$$s==null?this:_.$$s;return S.lines==null&&(S.lines=J),z==null&&(z=J),S.lines.$push(z)},{$$s:u}),J}):K(M,"$unshift_all",function(g){var u=this;return u.lineno=Ke(u.lineno,g.$size()),u.look_ahead=ye(u.look_ahead,g.$size()),Ne(u.lines,"push",st(g.$reverse())),J}),K(M,"$cursor",function(){var g=this;return ie("Cursor").$new(g.file,g.dir,g.path,g.lineno)}),K(M,"$cursor_at_line",function(g){var u=this;return ie("Cursor").$new(u.file,u.dir,u.path,g)}),K(M,"$cursor_at_mark",function(){var g=this;return R(g.mark)?Ne(ie("Cursor"),"new",st(g.mark)):g.$cursor()}),K(M,"$cursor_before_mark",function(){var g,u,_=this,z=J,S=J,b=J,F=J;return R(_.mark)?(u=_.mark,g=qe(u),z=g[0]==null?J:g[0],S=g[1]==null?J:g[1],b=g[2]==null?J:g[2],F=g[3]==null?J:g[3],ie("Cursor").$new(z,S,b,Ke(F,1))):ie("Cursor").$new(_.file,_.dir,_.path,Ke(_.lineno,1))}),K(M,"$cursor_at_prev_line",function(){var g=this;return ie("Cursor").$new(g.file,g.dir,g.path,Ke(g.lineno,1))}),K(M,"$mark",function(){var g=this;return g.mark=[g.file,g.dir,g.path,g.lineno]}),K(M,"$line_info",function(){var g=this;return""+g.path+": line "+g.lineno}),K(M,"$lines",function(){var g=this;return g.lines.$reverse()}),K(M,"$string",function(){var g=this;return g.lines.$reverse().$join(ie("LF"))}),K(M,"$source",function(){var g=this;return g.source_lines.$join(ie("LF"))}),K(M,"$save",function(){var g=this;return g.saved=Ne(X([],{}),"tap",[],function u(_){var z=u.$$s==null?this:u.$$s;return _==null&&(_=J),Ne(z.$instance_variables(),"each",[],function S(b){var F,H=S.$$s==null?this:S.$$s,_e=J;return b==null&&(b=J),Pe(b,"@saved")||Pe(b,"@source_lines")?J:(F=[b,Z(L("Array"),_e=H.$instance_variable_get(b))?_e.$drop(0):_e],Ne(_,"[]=",F),F[F.length-1])},{$$s:z})},{$$s:g}),J}),K(M,"$restore_save",function(){var g=this;return R(g.saved)?(Ne(g.saved,"each",[],function u(_,z){var S=u.$$s==null?this:u.$$s;return _==null&&(_=J),z==null&&(z=J),S.$instance_variable_set(_,z)},{$$s:g}),g.saved=J):J}),K(M,"$discard_save",Ye("saved",J)),K(M,"$to_s",function(){var g=this;return"#<"+g.$class()+"@"+g.$object_id()+" {path: "+g.path.$inspect()+", line: "+g.lineno+"}>"}),M.$private(),K(M,"$prepare_lines",function(g,u){var _=this,z=J;u==null&&(u=X([],{}));try{return R(z=u["$[]"]("normalize"))?Z(L("Array"),g)?ie("Helpers").$prepare_source_array(g,z["$!="]("chomp")):ie("Helpers").$prepare_source_string(g,z["$!="]("chomp")):Z(L("Array"),g)?g.$drop(0):R(g)?g.$chomp().$split(ie("LF"),-1):[]}catch(S){if(a.rescue(S,[ie("StandardError")]))try{return R((Z(L("Array"),g)?g.$join():g.$to_s())["$valid_encoding?"]())?_.$raise():_.$raise(L("ArgumentError"),"source is either binary or contains invalid Unicode data")}finally{a.pop_exception()}else throw S}},-2),K(M,"$process_line",function(g){var u=this;return R(u.process_lines)&&(u.look_ahead=ye(u.look_ahead,1)),g})}(Re[0],null,Re),function(xe,ee,P){var M=se(xe,ee,"PreprocessorReader"),ae=[M].concat(P),ie=a.$r(ae),pe=M.$$prototype;return pe.include_stack=pe.lines=pe.file=pe.dir=pe.path=pe.lineno=pe.maxdepth=pe.process_lines=pe.includes=pe.document=pe.unescape_next_line=pe.include_processor_extensions=pe.look_ahead=pe.skipping=pe.conditional_stack=J,M.$attr_reader("include_stack"),K(M,"$initialize",function Y(g,u,_,z){Y.$$p;var S=this,b=J,F=J;return Y.$$p=null,u==null&&(u=J),_==null&&(_=J),z==null&&(z=X([],{})),S.document=g,Je(S,dt(S,"initialize",Y,!1,!0),"initialize",[u,_,z],null),R(et(b=(R(F=g.$attributes()["$[]"]("max-include-depth"))?F:64).$to_i(),0))?S.maxdepth=X(["abs","curr","rel"],{abs:b,curr:b,rel:b}):S.maxdepth=J,S.include_stack=[],S.includes=g.$catalog()["$[]"]("includes"),S.skipping=!1,S.conditional_stack=[],S.include_processor_extensions=J},-2),K(M,"$has_more_lines?",function(){var g=this;return!!R(g.$peek_line())}),K(M,"$empty?",function(){var g=this;return!R(g.$peek_line())}),y(M,"eof?","empty?"),K(M,"$peek_line",function Y(g){var u=Y.$$p||J,_=this,z=J;return Y.$$p=null,g==null&&(g=!1),R(z=Je(_,dt(_,"peek_line",Y,!1,!0),"peek_line",[g],u))?z:R(_.include_stack["$empty?"]())?J:(_.$pop_include(),_.$peek_line(g))},-1),K(M,"$push_include",function(g,u,_,z,S){var b=this,F=J,H=J,_e=J,ue=J,Se=J,Be=J;return u==null&&(u=J),_==null&&(_=J),z==null&&(z=1),S==null&&(S=X([],{})),b.include_stack["$<<"]([b.lines,b.file,b.dir,b.path,b.lineno,b.maxdepth,b.process_lines]),R(b.file=u)?(Z(L("String"),u)?b.dir=L("File").$dirname(u):R(ie("RUBY_ENGINE_OPAL"))?b.dir=L("URI").$parse(L("File").$dirname(u=u.$to_s())):((b.dir=u.$dup())["$path="](Pe(F=L("File").$dirname(u.$path()),"/")?"":F),u=u.$to_s()),b.path=_=R(H=_)?H:L("File").$basename(u),R(b.process_lines=Ne(u,"end_with?",st(ie("ASCIIDOC_EXTENSIONS").$keys())))&&(R(H=b.includes["$[]"](_.$slice(0,_.$rindex("."))))||b.includes["$[]="](_.$slice(0,_.$rindex(".")),R(S["$[]"]("partial-option"))?J:!0))):(b.dir=".",b.process_lines=!0,R(b.path=_)?R(H=b.includes["$[]"](ie("Helpers").$rootname(_)))||b.includes["$[]="](ie("Helpers").$rootname(_),R(S["$[]"]("partial-option"))?J:!0):b.path="<stdin>"),b.lineno=z,R(b.maxdepth)&&R(S["$key?"]("depth"))&&(R(et(_e=S["$[]"]("depth").$to_i(),0))?(R(et(ue=ye(b.include_stack.$size(),_e),Se=b.maxdepth["$[]"]("abs")))&&(ue=_e=Se),b.maxdepth=X(["abs","curr","rel"],{abs:Se,curr:ue,rel:_e})):b.maxdepth=X(["abs","curr","rel"],{abs:b.maxdepth["$[]"]("abs"),curr:b.include_stack.$size(),rel:0})),R((b.lines=b.$prepare_lines(g,X(["normalize","condense","indent"],{normalize:R(H=b.process_lines)?H:"chomp",condense:!1,indent:S["$[]"]("indent")})))["$empty?"]())?b.$pop_include():(R(S["$key?"]("leveloffset"))?(b.lines=ye(ye([R(Be=b.document.$attr("leveloffset"))?":leveloffset: "+Be:":leveloffset!:",""],b.lines.$reverse()),["",":leveloffset: "+S["$[]"]("leveloffset")]),b.lineno=Ke(b.lineno,2)):b.lines["$reverse!"](),b.look_ahead=0),b},-2),K(M,"$include_depth",function(){var g=this;return g.include_stack.$size()}),K(M,"$exceeds_max_depth?",function(){var g=this,u=J,_=J;return R(u=R(_=g.maxdepth)?I(g.include_stack.$size(),g.maxdepth["$[]"]("curr")):_)?g.maxdepth["$[]"]("rel"):u}),y(M,"exceeded_max_depth?","exceeds_max_depth?"),K(M,"$shift",function Y(){var g=Y.$$p||J,u=this,_=J;return Y.$$p=null,R(u.unescape_next_line)?(u.unescape_next_line=!1,(_=Je(u,dt(u,"shift",Y,!1,!0),"shift",[],g)).$slice(1,_.$length())):Je(u,dt(u,"shift",Y,!1,!0),"shift",[],g)}),K(M,"$include_processors?",function(){var g=this;return R(g.include_processor_extensions["$nil?"]())?R(g.document["$extensions?"]())&&R(g.document.$extensions()["$include_processors?"]())?(g.include_processor_extensions=g.document.$extensions().$include_processors())["$!"]()["$!"]():g.include_processor_extensions=!1:g.include_processor_extensions["$!="](!1)}),K(M,"$create_include_cursor",function(g,u,_){var z=J;return Z(L("String"),g)?z=L("File").$dirname(g):R(ie("RUBY_ENGINE_OPAL"))?z=L("File").$dirname(g=g.$to_s()):(z=Pe(z=L("File").$dirname(g.$path()),"")?"/":z,g=g.$to_s()),ie("Cursor").$new(g,z,u,_)}),K(M,"$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: ["+Ne(g.include_stack,"map",[],function(_){return _==null&&(_=J),_.$to_s()}).$join(", ")+"]}>"}),M.$private(),K(M,"$prepare_lines",function Y(g,u){var _=Y.$$p||J,z=this,S=J,b=J,F=J,H=J;if(Y.$$p=null,u==null&&(u=X([],{})),S=Je(z,dt(z,"prepare_lines",Y,!1,!0),"prepare_lines",[g,u],_),R(z.document)&&R(z.document.$attributes()["$[]"]("skip-front-matter"))&&R(b=z["$skip_front_matter!"](S))&&z.document.$attributes()["$[]="]("front-matter",b.$join(ie("LF"))),R(u.$fetch("condense",!0)))for(;R(R(F=H=S["$[]"](-1))?H["$empty?"]():F);)S.$pop();return R(u["$[]"]("indent"))&&ie("Parser")["$adjust_indentation!"](S,u["$[]"]("indent").$to_i(),z.document.$attr("tabsize").$to_i()),S},-2),K(M,"$process_line",function(g){var u,_=this;return R(_.process_lines)?R(g["$empty?"]())?(_.look_ahead=ye(_.look_ahead,1),g):R(g["$end_with?"]("]"))&&Ue(g["$start_with?"]("["))&&R(g["$include?"]("::"))?R(g["$include?"]("if"))&&R(ie("ConditionalDirectiveRx")["$=~"](g))?Pe((u=tt["~"])===J?J:u["$[]"](1),"\\")?(_.unescape_next_line=!0,_.look_ahead=ye(_.look_ahead,1),g.$slice(1,g.$length())):R(_.$preprocess_conditional_directive((u=tt["~"])===J?J:u["$[]"](2),(u=tt["~"])===J?J:u["$[]"](3),(u=tt["~"])===J?J:u["$[]"](4),(u=tt["~"])===J?J:u["$[]"](5)))?(_.$shift(),J):(_.look_ahead=ye(_.look_ahead,1),g):R(_.skipping)?(_.$shift(),J):R(g["$start_with?"]("inc","\\inc"))&&R(ie("IncludeDirectiveRx")["$=~"](g))?Pe((u=tt["~"])===J?J:u["$[]"](1),"\\")?(_.unescape_next_line=!0,_.look_ahead=ye(_.look_ahead,1),g.$slice(1,g.$length())):R(_.$preprocess_include_directive((u=tt["~"])===J?J:u["$[]"](2),(u=tt["~"])===J?J:u["$[]"](3)))?J:(_.look_ahead=ye(_.look_ahead,1),g):(_.look_ahead=ye(_.look_ahead,1),g):R(_.skipping)?(_.$shift(),J):(_.look_ahead=ye(_.look_ahead,1),g):g}),K(M,"$preprocess_conditional_directive",function(g,u,_,z){var S,b=this,F=J,H=J,_e=J,ue=J,Se=J,Be=J;if(R(F=u["$empty?"]())||(u=u.$downcase()),Pe(g,"endif"))return R(z)?b.$logger().$error(b.$message_with_context("malformed preprocessor directive - text not permitted: endif::"+u+"["+z+"]",X(["source_location"],{source_location:b.$cursor()}))):R(b.conditional_stack["$empty?"]())?b.$logger().$error(b.$message_with_context("unmatched preprocessor directive: endif::"+u+"[]",X(["source_location"],{source_location:b.$cursor()}))):R(F)||Pe(u,(H=b.conditional_stack["$[]"](-1))["$[]"]("target"))?(b.conditional_stack.$pop(),b.skipping=R(b.conditional_stack["$empty?"]())?!1:b.conditional_stack["$[]"](-1)["$[]"]("skipping")):b.$logger().$error(b.$message_with_context("mismatched preprocessor directive: endif::"+u+"[], expected endif::"+H["$[]"]("target")+"[]",X(["source_location"],{source_location:b.$cursor()}))),!0;if(R(b.skipping))_e=!1;else switch(g){case"ifdef":if(R(F))return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - missing target: ifdef::["+z+"]",X(["source_location"],{source_location:b.$cursor()}))),!0;switch(_){case",":_e=Ne(u.$split(",",-1),"none?",[],function Xe(it){var pt=Xe.$$s==null?this:Xe.$$s;return pt.document==null&&(pt.document=J),it==null&&(it=J),pt.document.$attributes()["$key?"](it)},{$$s:b});break;case"+":_e=Ne(u.$split("+",-1),"any?",[],function Xe(it){var pt=Xe.$$s==null?this:Xe.$$s;return pt.document==null&&(pt.document=J),it==null&&(it=J),pt.document.$attributes()["$key?"](it)["$!"]()},{$$s:b});break;default:_e=b.document.$attributes()["$key?"](u)["$!"]()}break;case"ifndef":if(R(F))return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - missing target: ifndef::["+z+"]",X(["source_location"],{source_location:b.$cursor()}))),!0;switch(_){case",":_e=Ne(u.$split(",",-1),"any?",[],function Xe(it){var pt=Xe.$$s==null?this:Xe.$$s;return pt.document==null&&(pt.document=J),it==null&&(it=J),pt.document.$attributes()["$key?"](it)},{$$s:b});break;case"+":_e=Ne(u.$split("+",-1),"all?",[],function Xe(it){var pt=Xe.$$s==null?this:Xe.$$s;return pt.document==null&&(pt.document=J),it==null&&(it=J),pt.document.$attributes()["$key?"](it)},{$$s:b});break;default:_e=b.document.$attributes()["$key?"](u)}break;case"ifeval":if(R(F))if(R(z)&&R(ie("EvalExpressionRx")["$=~"](z.$strip())))ue=(S=tt["~"])===J?J:S["$[]"](1),Se=(S=tt["~"])===J?J:S["$[]"](2),Be=(S=tt["~"])===J?J:S["$[]"](3),_e=function(){try{return!R(b.$resolve_expr_val(ue).$send(Se,b.$resolve_expr_val(Be)))}catch(Xe){if(a.rescue(Xe,[ie("StandardError")]))try{return!0}finally{a.pop_exception()}else throw Xe}}();else return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - "+(R(z)?"invalid expression":"missing expression")+": ifeval::["+z+"]",X(["source_location"],{source_location:b.$cursor()}))),!0;else return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - target not permitted: ifeval::"+u+"["+z+"]",X(["source_location"],{source_location:b.$cursor()}))),!0;break}return Pe(g,"ifeval")||Ue(z)?(R(_e)&&(b.skipping=!0),b.conditional_stack["$<<"](X(["target","skip","skipping"],{target:u,skip:_e,skipping:b.skipping}))):R(b.skipping)||R(_e)||(b.$replace_next_line(z.$rstrip()),b.$unshift(""),R(z["$start_with?"]("include::"))&&(b.look_ahead=Ke(b.look_ahead,1))),!0}),K(M,"$preprocess_include_directive",function(g,u){var _,z,S=this,b=J,F=J,H=J,_e=J,ue=J,Se=J,Be=J,Xe=J,it=J,pt=J,at=J,bt=J,kt=J,Et=J,xt=J,Nt=J,Tt=J,Vt=J,jt=J,er=J,Kt=J,Pt=J,Yt=J,Xt=J,nr=J,Xn=J,nn=J;if(b=S.document,R((F=g)["$include?"](ie("ATTR_REF_HEAD")))&&R((F=b.$sub_attributes(g,X(["attribute_missing"],{attribute_missing:Pe(H=R(_e=b.$attributes()["$[]"]("attribute-missing"))?_e:ie("Compliance").$attribute_missing(),"warn")?"drop-line":H})))["$empty?"]()))return Pe(H,"drop-line")&&R(b.$sub_attributes(ye(g," "),X(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?(Ne(S.$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+"["+u+"]",X(["source_location"],{source_location:Ut.$cursor()}))},{$$s:S}),S.$shift(),!0):R(b.$parse_attributes(u,[],X(["sub_input"],{sub_input:!0}))["$[]"]("optional-option"))?(Ne(S.$logger(),"info",[],function Jt(){var Ut=Jt.$$s==null?this:Jt.$$s;return Ut.$message_with_context("optional include dropped "+(Pe(H,"warn")&&R(b.$sub_attributes(ye(g," "),X(["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+"["+u+"]",X(["source_location"],{source_location:Ut.$cursor()}))},{$$s:S}),S.$shift(),!0):(S.$logger().$warn(S.$message_with_context("include dropped "+(Pe(H,"warn")&&R(b.$sub_attributes(ye(g," "),X(["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+"["+u+"]",X(["source_location"],{source_location:S.$cursor()}))),S.$replace_next_line("Unresolved directive in "+S.path+" - include::"+g+"["+u+"]"));if(R(S["$include_processors?"]())&&R(ue=Ne(S.include_processor_extensions,"find",[],function(Ut){return Ut==null&&(Ut=J),Ut.$instance()["$handles?"](F)})))return S.$shift(),ue.$process_method()["$[]"](b,S,F,b.$parse_attributes(u,[],X(["sub_input"],{sub_input:!0}))),!0;if(R(I(b.$safe(),L(ie("SafeMode"),"SECURE"))))return S.$replace_next_line("link:"+F+"[role=include]");if(R(S.maxdepth)){if(R(I(S.include_stack.$size(),S.maxdepth["$[]"]("curr"))))return S.$logger().$error(S.$message_with_context("maximum include depth of "+S.maxdepth["$[]"]("rel")+" exceeded",X(["source_location"],{source_location:S.$cursor()}))),J;switch(Se=b.$parse_attributes(u,[],X(["sub_input"],{sub_input:!0})),z=S.$resolve_include_path(F,u,Se),_=qe(z),Be=_[0]==null?J:_[0],Xe=_[1]==null?J:_[1],it=_[2]==null?J:_[2],Xe){case"file":pt=L("File").$method("open"),at=ie("FILE_READ_MODE");break;case"uri":pt=L("OpenURI").$method("open_uri"),at=ie("URI_READ_MODE");break;default:return Be}if(R(ie("RUBY_ENGINE_OPAL"))||R(bt=Se["$[]"]("encoding"))&&R(function(){try{return L("Encoding").$find(bt)}catch(Jt){if(a.rescue(Jt,[ie("StandardError")]))try{return J}finally{a.pop_exception()}else throw Jt}}())&&((kt=at.$split(":"))["$[]="](1,bt),at=kt.$join(":")),Et=xt=J,R(u)&&(R(Se["$key?"]("lines"))?(Et=[],Ne(S.$split_delimited_value(Se["$[]"]("lines")),"each",[],function(Ut){var Zt,Cr,Ht=J,Sr=J;return Ut==null&&(Ut=J),R(Ut["$include?"](".."))?(Cr=Ut.$partition(".."),Zt=qe(Cr),Ht=Zt[0]==null?J:Zt[0],Zt[1]==null||Zt[1],Sr=Zt[2]==null?J:Zt[2],Et=ye(Et,R(Sr["$empty?"]())||R(A(Sr=Sr.$to_i(),0))?[Ht.$to_i(),L(L("Float"),"INFINITY")]:a.Range.$new(Ht.$to_i(),Sr,!1).$to_a())):Et["$<<"](Ut.$to_i())}),Et=R(Et["$empty?"]())?J:Et.$sort().$uniq()):R(Se["$key?"]("tag"))?R((Nt=Se["$[]"]("tag"))["$empty?"]())||Pe(Nt,"!")||(xt=R(Nt["$start_with?"]("!"))?rt(Nt.$slice(1,Nt.$length()),!1):rt(Nt,!0)):R(Se["$key?"]("tags"))&&(xt=X([],{}),Ne(S.$split_delimited_value(Se["$[]"]("tags")),"each",[],function(Ut){var Zt;return Ut==null&&(Ut=J),R(Ut["$empty?"]())||Pe(Ut,"!")?J:R(Ut["$start_with?"]("!"))?(Zt=[Ut.$slice(1,Ut.$length()),!1],Ne(xt,"[]=",Zt),Zt[Zt.length-1]):(Zt=[Ut,!0],Ne(xt,"[]=",Zt),Zt[Zt.length-1])}),R(xt["$empty?"]())&&(xt=J))),R(Et)){_=[[],J,0],Tt=_[0],Vt=_[1],jt=_[2];try{Ne(pt,"call",[Be,at],function(Ut){var Zt=J;return Ut==null&&(Ut=J),Zt=J,function(){try{var Cr=Le("break");return Ne(Ut,"each_line",[],function(Sr){var mn=J;if(Sr==null&&(Sr=J),jt=ye(jt,1),R(Zt)||Z(L("Float"),mn=Et["$[]"](0))&&R(Zt=mn["$infinite?"]()))return Vt=R(_e=Vt)?_e:jt,Tt["$<<"](Sr);if(Pe(mn,jt)&&(Vt=R(_e=Vt)?_e:jt,Tt["$<<"](Sr),Et.$shift()),R(Et["$empty?"]()))Cr.$throw();else return J})}catch(Ht){if(Ht===Cr)return Ht.$v;throw Ht}}()})}catch(Jt){if(a.rescue(Jt,[ie("StandardError")]))try{return S.$logger().$error(S.$message_with_context("include "+Xe+" not readable: "+Be,X(["source_location"],{source_location:S.$cursor()}))),S.$replace_next_line("Unresolved directive in "+S.path+" - include::"+F+"["+u+"]")}finally{a.pop_exception()}else throw Jt}S.$shift(),R(Vt)&&(Se["$[]="]("partial-option",""),S.$push_include(Tt,Be,it,Vt,Se))}else if(R(xt)){_=[[],J,0,[],L("Set").$new(),J],Tt=_[0],Vt=_[1],jt=_[2],er=_[3],Kt=_[4],Pt=_[5],R(xt["$key?"]("**"))?(Yt=Xt=xt.$delete("**"),R(xt["$key?"]("*"))?nr=xt.$delete("*"):Ue(Yt)&&Pe(xt.$values().$first(),!1)&&(nr=!0)):R(xt["$key?"]("*"))?Pe(xt.$keys().$first(),"*")?Yt=Xt=(nr=xt.$delete("*"))["$!"]():(Yt=Xt=!1,nr=xt.$delete("*")):Yt=Xt=xt["$value?"](!0)["$!"]();try{Ne(pt,"call",[Be,at],function Jt(Ut){var Zt,Cr=Jt.$$s==null?this:Jt.$$s,Ht=J,Sr=J;return Ut==null&&(Ut=J),Zt=["::","[]"],Ht=Zt[0],Sr=Zt[1],Ne(Ut,"each_line",[],function mn(Tr){var Er,xn,Pr=mn.$$s==null?this:mn.$$s,Qr=J,ta=J,ra=J;return Tr==null&&(Tr=J),jt=ye(jt,1),R(Tr["$include?"](Ht))&&R(Tr["$include?"](Sr))&&R(ie("TagDirectiveRx")["$=~"](Tr))?(Qr=(Er=tt["~"])===J?J:Er["$[]"](2),R((Er=tt["~"])===J?J:Er["$[]"](1))?Pe(Qr,Pt)?(er.$pop(),xn=R(er["$empty?"]())?[J,Xt]:er["$[]"](-1),Er=qe(xn),Pt=Er[0]==null?J:Er[0],Yt=Er[1]==null?J:Er[1],xn):R(xt["$key?"](Qr))?(ta=Pr.$create_include_cursor(Be,F,jt),R(ra=Ne(er,"rindex",[],function(na){return na==null&&(na=J),na["$=="](Qr)},{$$has_trailing_comma_in_args:!0}))?(Pe(ra,0)?er.$shift():er.$delete_at(ra),Pr.$logger().$warn(Pr.$message_with_context("mismatched end tag (expected '"+Pt+"' but found '"+Qr+"') at line "+jt+" of include "+Xe+": "+Be,X(["source_location","include_location"],{source_location:Pr.$cursor(),include_location:ta})))):Pr.$logger().$warn(Pr.$message_with_context("unexpected end tag '"+Qr+"' at line "+jt+" of include "+Xe+": "+Be,X(["source_location","include_location"],{source_location:Pr.$cursor(),include_location:ta})))):J:R(xt["$key?"](Qr))?(R(Yt=xt["$[]"](Qr))&&Kt["$<<"](Qr),er["$<<"]([Pt=Qr,Yt,jt])):Ue(nr["$nil?"]())?(Yt=R(Pt)&&Ue(Yt)?!1:nr,er["$<<"]([Pt=Qr,Yt,jt])):J):R(Yt)?(Vt=R(_e=Vt)?_e:jt,Tt["$<<"](Tr)):J},{$$s:Cr})},{$$s:S})}catch(Jt){if(a.rescue(Jt,[ie("StandardError")]))try{return S.$logger().$error(S.$message_with_context("include "+Xe+" not readable: "+Be,X(["source_location"],{source_location:S.$cursor()}))),S.$replace_next_line("Unresolved directive in "+S.path+" - include::"+F+"["+u+"]")}finally{a.pop_exception()}else throw Jt}R(er["$empty?"]())||Ne(er,"each",[],function Jt(Ut,Zt,Cr){var Ht=Jt.$$s==null?this:Jt.$$s;return Ut==null&&(Ut=J),Cr==null&&(Cr=J),Ht.$logger().$warn(Ht.$message_with_context("detected unclosed tag '"+Ut+"' starting at line "+Cr+" of include "+Xe+": "+Be,X(["source_location","include_location"],{source_location:Ht.$cursor(),include_location:Ht.$create_include_cursor(Be,F,Cr)})))},{$$s:S}),R((Xn=Ke(Ne(xt,"keep_if",[],function(Ut,Zt){return Zt==null&&(Zt=J),Zt}).$keys(),Kt.$to_a()))["$empty?"]())||S.$logger().$warn(S.$message_with_context("tag"+(R(et(Xn.$size(),1))?"s":"")+" '"+Xn.$join(", ")+"' not found in include "+Xe+": "+Be,X(["source_location"],{source_location:S.$cursor()}))),S.$shift(),R(Vt)&&(R(Xt)&&Ve(nr,!1)&&R(xt["$empty?"]())||Se["$[]="]("partial-option",""),S.$push_include(Tt,Be,it,Vt,Se))}else{nn=J;try{nn=Ne(pt,"call",[Be,at],function(Ut){return Ut==null&&(Ut=J),Ut.$read()}),S.$shift()}catch(Jt){if(a.rescue(Jt,[ie("StandardError")]))try{return S.$logger().$error(S.$message_with_context("include "+Xe+" not readable: "+Be,X(["source_location"],{source_location:S.$cursor()}))),S.$replace_next_line("Unresolved directive in "+S.path+" - include::"+F+"["+u+"]")}finally{a.pop_exception()}else throw Jt}S.$push_include(nn,Be,it,1,Se)}return!0}else return J}),K(M,"$resolve_include_path",function(g,u,_){var z,S=this,b=J,F=J,H=J;return b=S.document,R(ie("Helpers")["$uriish?"](g))||R(Z(L("String"),S.dir)?J:g=""+S.dir+"/"+g)?R(b["$attr?"]("allow-uri-read"))?(R(b["$attr?"]("cache-uri"))?R((z=L("::","OpenURI","skip_raise"))&&L(z,"Cache","skip_raise")?"constant":J)||ie("Helpers").$require_library("open-uri/cached","open-uri-cached"):Ue(ie("RUBY_ENGINE_OPAL"))&&L("OpenURI"),[L("URI").$parse(g),"uri",g]):S.$replace_next_line("link:"+g+"[role=include]"):(F=b.$normalize_system_path(g,S.dir,J,X(["target_name"],{target_name:"include file"})),R(L("File")["$file?"](F))?(H=b.$path_resolver().$relative_path(F,b.$base_dir()),[F,"file",H]):R(_["$[]"]("optional-option"))?(Ne(S.$logger(),"info",[],function _e(){var ue=_e.$$s==null?this:_e.$$s;return ue.$message_with_context("optional include dropped because include file not found: "+F,X(["source_location"],{source_location:ue.$cursor()}))},{$$s:S}),S.$shift(),!0):(S.$logger().$error(S.$message_with_context("include file not found: "+F,X(["source_location"],{source_location:S.$cursor()}))),S.$replace_next_line("Unresolved directive in "+S.path+" - include::"+g+"["+u+"]")))}),K(M,"$pop_include",function(){var g,u,_=this;return R(_.include_stack["$empty?"]())||(u=_.include_stack.$pop(),g=qe(u),_.lines=g[0]==null?J:g[0],_.file=g[1]==null?J:g[1],_.dir=g[2]==null?J:g[2],_.path=g[3]==null?J:g[3],_.lineno=g[4]==null?J:g[4],_.maxdepth=g[5]==null?J:g[5],_.process_lines=g[6]==null?J:g[6],_.look_ahead=0),J}),K(M,"$split_delimited_value",function(g){return R(g["$include?"](","))?g.$split(","):g.$split(";")}),K(M,"$skip_front_matter!",function(g,u){var _=this,z=J,S=J,b=J,F=J,H=J;if(u==null&&(u=!0),!Pe(z=g["$[]"](0),"---"))return J;for(S=g.$drop(0),g.$shift(),b=[],R(u)&&(_.lineno=ye(_.lineno,1));!R(R(F=H=g["$empty?"]())?F:g["$[]"](0)["$=="](z));)b["$<<"](g.$shift()),R(u)&&(_.lineno=ye(_.lineno,1));return R(H)?(Ne(g,"unshift",st(S)),R(u)&&(_.lineno=Ke(_.lineno,S.$size())),J):(g.$shift(),R(u)&&(_.lineno=ye(_.lineno,1)),b)},-2),K(M,"$resolve_expr_val",function(g){var u=this,_=J;return R(g["$start_with?"]('"'))&&R(g["$end_with?"]('"'))||R(g["$start_with?"]("'"))&&R(g["$end_with?"]("'"))?(_=!0,g=g.$slice(1,Ke(g.$length(),1))):_=!1,R(g["$include?"](ie("ATTR_REF_HEAD")))&&(g=u.document.$sub_attributes(g,X(["attribute_missing"],{attribute_missing:"drop"}))),R(_)?g:R(g["$empty?"]())?J:Pe(g,"true")?!0:Pe(g,"false")?!1:R(g.$rstrip()["$empty?"]())?" ":R(g["$include?"]("."))?g.$to_f():g.$to_i()})}(Re[0],ce("Reader"),Re)}(lt[0],lt)},Opal.modules["asciidoctor/section"]=function(a){var oe=a.module,se=a.klass,K=a.hash2,ye=a.send2,y=a.find_super,X=a.eqeqeq,Ue=a.truthy,Z=a.rb_plus,qe=a.def,R=a.alias,et=a.rb_gt,Ne=a.eqeq,Ke=a.not,Le=a.send,Pe=a.defs,ht=[],Ve=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,Ye){var Je=oe(st,"Asciidoctor"),dt=[Je].concat(Ye),I=a.$r(dt);return function(tt,A,rt){var lt=se(tt,A,"Section"),J=[lt].concat(rt),L=a.$r(J),He=lt.$$prototype;return He.document=He.next_section_index=He.parent=He.level=He.numeral=He.numbered=He.sectname=He.title=He.blocks=Ve,lt.$attr_accessor("index"),lt.$attr_accessor("sectname"),lt.$attr_accessor("special"),lt.$attr_accessor("numbered"),lt.$attr_reader("caption"),qe(lt,"$initialize",function ke(Ie,Re,ce,xe){var ee;ke.$$p;var P=this,M=Ve;return ke.$$p=null,Ie==null&&(Ie=Ve),Re==null&&(Re=Ve),ce==null&&(ce=!1),xe==null&&(xe=K([],{})),ye(P,y(P,"initialize",ke,!1,!0),"initialize",[Ie,"section",xe],null),X(L("Section"),Ie)?(ee=[Ue(M=Re)?M:Z(Ie.$level(),1),Ie.$special()],P.level=ee[0],P.special=ee[1]):(ee=[Ue(M=Re)?M:1,!1],P.level=ee[0],P.special=ee[1]),P.numbered=ce,P.index=0},-1),R(lt,"name","title"),qe(lt,"$generate_id",function(){var Ie=this;return L("Section").$generate_id(Ie.$title(),Ie.document)}),qe(lt,"$sections?",function(){var Ie=this;return et(Ie.next_section_index,0)}),qe(lt,"$sectnum",function(Ie,Re){var ce=this,xe=Ve;return Ie==null&&(Ie="."),Re==null&&(Re=Ve),Re=Ue(xe=Re)?xe:Ne(Re,!1)?"":Ie,Ue(et(ce.level,1))&&X(L("Section"),ce.parent)?""+ce.parent.$sectnum(Ie,Ie)+ce.numeral+Re:""+ce.numeral+Re},-1),qe(lt,"$xreftext",function(Ie){var Re=this,ce=Ve,xe=Ve,ee=Ve,P=Ve;if(Ie==null&&(Ie=Ve),Ue(ce=Re.$reftext())&&Ke(ce["$empty?"]()))return ce;if(Ue(Ie))if(Ue(Re.numbered))switch(Ie){case"full":return Ne(xe=Re.sectname,"chapter")||Ne(xe,"appendix")?ee=Re.$sub_placeholder(Re.$sub_quotes("_%s_"),Re.$title()):ee=Re.$sub_placeholder(Re.$sub_quotes(Ue(Re.document.$compat_mode())?"``%s''":'"`%s`"'),Re.$title()),Ue(P=Re.document.$attributes()["$[]"](""+xe+"-refsig"))?""+P+" "+Re.$sectnum(".",",")+" "+ee:""+Re.$sectnum(".",",")+" "+ee;case"short":return Ue(P=Re.document.$attributes()["$[]"](""+Re.sectname+"-refsig"))?""+P+" "+Re.$sectnum(".",""):Re.$sectnum(".","");default:return Ne(xe=Re.sectname,"chapter")||Ne(xe,"appendix")?Re.$sub_placeholder(Re.$sub_quotes("_%s_"),Re.$title()):Re.$title()}else return Ne(xe=Re.sectname,"chapter")||Ne(xe,"appendix")?Re.$sub_placeholder(Re.$sub_quotes("_%s_"),Re.$title()):Re.$title();else return Re.$title()},-1),qe(lt,"$<<",function ke(Ie){var Re=ke.$$p||Ve,ce=this;return ke.$$p=null,Ne(Ie.$context(),"section")&&ce.$assign_numeral(Ie),ye(ce,y(ce,"<<",ke,!1,!0),"<<",[Ie],Re)}),qe(lt,"$to_s",function ke(){var Ie=ke.$$p||Ve,Re=this,ce=Ve;return ke.$$p=null,Ue(Re.title)?(ce=Ue(Re.numbered)?""+Re.$sectnum()+" "+Re.title:Re.title,"#<"+Re.$class()+"@"+Re.$object_id()+" {level: "+Re.level+", title: "+ce.$inspect()+", blocks: "+Re.blocks.$size()+"}>"):ye(Re,y(Re,"to_s",ke,!1,!0),"to_s",[],Ie)}),Pe(lt,"$generate_id",function(Ie,Re){var ce,xe=Ve,ee=Ve,P=Ve,M=Ve,ae=Ve,ie=Ve,pe=Ve,Y=Ve,g=Ve,u=Ve;if(xe=Re.$attributes(),ee=Ue(P=xe["$[]"]("idprefix"))?P:"_",Ue(M=xe["$[]"]("idseparator"))?(Ne(M.$length(),1)||Ke(ae=M["$empty?"]())&&Ue(M=(ce=["idseparator",M.$chr()],Le(xe,"[]=",ce),ce[ce.length-1])))&&(ie=Ne(M,"-")||Ne(M,".")?" .-":" "+M+".-"):(ce=["_"," _.-"],M=ce[0],ie=ce[1]),pe=""+ee+Ie.$downcase().$gsub(L("InvalidSectionIdCharsRx"),""),Ue(ae)?pe=pe.$delete(" "):(pe=pe.$tr_s(ie,M),Ue(pe["$end_with?"](M))&&(pe=pe.$chop()),Ue(ee["$empty?"]())&&Ue(pe["$start_with?"](M))&&(pe=pe.$slice(1,pe.$length()))),Ue(Re.$catalog()["$[]"]("refs")["$key?"](pe))){for(Y=Re.$catalog()["$[]"]("refs"),g=L("Compliance").$unique_id_start_index();Ue(Y["$[]"](u=""+pe+M+g));)g=Z(g,1);return u}else return pe})}(dt[0],I("AbstractBlock"),dt)}(ht[0],ht)},Opal.modules["asciidoctor/stylesheets"]=function(a){var oe=a.module,se=a.klass,K=a.const_set,ye=a.return_ivar,y=a.defs,X=a.def,Ue=a.truthy,Z=a.hash2,qe=[],R=a.nil,et=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(Ne,Ke){var Le=oe(Ne,"Asciidoctor"),Pe=[Le].concat(Ke);return function(ht,Ve,st){var Ye=se(ht,Ve,"Stylesheets"),Je=[Ye].concat(st),dt=a.$r(Je),I=Ye.$$prototype;return I.primary_stylesheet_data=R,K(Je[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),K(Je[0],"STYLESHEETS_DIR",et("File").$join(dt("DATA_DIR"),"stylesheets")),Ye.__instance__=Ye.$new(),y(Ye,"$instance",ye("__instance__")),X(Ye,"$primary_stylesheet_name",function(){return dt("DEFAULT_STYLESHEET_NAME")}),X(Ye,"$primary_stylesheet_data",function(){var A=this,rt=R;return A.primary_stylesheet_data=Ue(rt=A.primary_stylesheet_data)?rt:et("File").$read(et("File").$join(dt("STYLESHEETS_DIR"),"asciidoctor-default.css"),Z(["mode"],{mode:dt("FILE_READ_MODE")})).$rstrip()}),X(Ye,"$embed_primary_stylesheet",function(){var A=this;return`<style>
460
+ `+A.$primary_stylesheet_data()+`
461
+ </style>`}),X(Ye,"$write_primary_stylesheet",function(A){var rt=this;return A==null&&(A="."),et("File").$write(et("File").$join(A,rt.$primary_stylesheet_name()),rt.$primary_stylesheet_data(),Z(["mode"],{mode:dt("FILE_WRITE_MODE")}))},-1),X(Ye,"$coderay_stylesheet_name",function(){return dt("SyntaxHighlighter").$for("coderay").$stylesheet_basename()}),X(Ye,"$coderay_stylesheet_data",function(){return dt("SyntaxHighlighter").$for("coderay").$read_stylesheet()}),X(Ye,"$embed_coderay_stylesheet",function(){var A=this;return`<style>
462
+ `+A.$coderay_stylesheet_data()+`
463
+ </style>`}),X(Ye,"$write_coderay_stylesheet",function(A){var rt=this;return A==null&&(A="."),et("File").$write(et("File").$join(A,rt.$coderay_stylesheet_name()),rt.$coderay_stylesheet_data(),Z(["mode"],{mode:dt("FILE_WRITE_MODE")}))},-1),X(Ye,"$pygments_stylesheet_name",function(A){return A==null&&(A=R),dt("SyntaxHighlighter").$for("pygments").$stylesheet_basename(A)},-1),X(Ye,"$pygments_stylesheet_data",function(A){return A==null&&(A=R),dt("SyntaxHighlighter").$for("pygments").$read_stylesheet(A)},-1),X(Ye,"$embed_pygments_stylesheet",function(A){var rt=this;return A==null&&(A=R),`<style>
464
+ `+rt.$pygments_stylesheet_data(A)+`
465
+ </style>`},-1),X(Ye,"$write_pygments_stylesheet",function(A,rt){var lt=this;return A==null&&(A="."),rt==null&&(rt=R),et("File").$write(et("File").$join(A,lt.$pygments_stylesheet_name(rt)),lt.$pygments_stylesheet_data(rt),Z(["mode"],{mode:dt("FILE_WRITE_MODE")}))},-1)}(Pe[0],null,Pe)}(qe[0],qe)},Opal.modules["asciidoctor/table"]=function(a){var oe=a.module,se=a.klass,K=a.const_set,ye=a.def,y=a.alias,X=a.hash2,Ue=a.send2,Z=a.find_super,qe=a.truthy,R=a.rb_lt,et=a.rb_gt,Ne=a.eqeq,Ke=a.rb_times,Le=a.rb_divide,Pe=a.send,ht=a.rb_plus,Ve=a.rb_minus,st=a.return_val,Ye=a.to_a,Je=a.gvars,dt=a.neqeq,I=a.return_ivar,tt=a.to_ary,A=a.regexp,rt=a.not,lt=a.thrower,J=[],L=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(ke,Ie){var Re=oe(ke,"Asciidoctor"),ce=[Re].concat(Ie),xe=a.$r(ce);return function(ee,P,M){var ae=se(ee,P,"Table"),ie=[ae].concat(M),pe=a.$r(ie),Y=ae.$$prototype;return Y.attributes=Y.document=Y.rows=Y.has_header_option=Y.columns=L,K(ie[0],"DEFAULT_PRECISION",4),function(g,u){var _=se(g,u,"Rows"),z=_.$$prototype;return z.head=z.body=z.foot=L,_.$attr_accessor("head","foot","body"),ye(_,"$initialize",function(b,F,H){var _e=this;return b==null&&(b=[]),F==null&&(F=[]),H==null&&(H=[]),_e.head=b,_e.foot=F,_e.body=H},-1),y(_,"[]","send"),ye(_,"$by_section",function(){var b=this;return[["head",b.head],["body",b.body],["foot",b.foot]]}),ye(_,"$to_h",function(){var b=this;return X(["head","body","foot"],{head:b.head,body:b.body,foot:b.foot})})}(ie[0],null),ae.$attr_accessor("columns"),ae.$attr_accessor("rows"),ae.$attr_accessor("has_header_option"),ae.$attr_reader("caption"),ye(ae,"$initialize",function g(u,_){var z;g.$$p;var S=this,b=L,F=L,H=L;return g.$$p=null,Ue(S,Z(S,"initialize",g,!1,!0),"initialize",[u,"table"],null),S.rows=pe("Rows").$new(),S.columns=[],S.has_header_option=!1,qe(b=_["$[]"]("width"))?(qe(et(F=b.$to_i(),100))||qe(R(F,1)))&&(Ne(F,0)&&(Ne(b,"0")||Ne(b,"0%"))||(F=100)):F=100,S.attributes["$[]="]("tablepcwidth",F),qe(S.document.$attributes()["$[]"]("pagewidth"))&&S.attributes["$[]="]("tableabswidth",Ne(H=Ke(Le(F,100),S.document.$attributes()["$[]"]("pagewidth").$to_f()).$truncate(pe("DEFAULT_PRECISION")),H.$to_i())?H.$to_i():H),qe(_["$[]"]("rotate-option"))?(z=["orientation","landscape"],Pe(S.attributes,"[]=",z),z[z.length-1]):L}),ye(ae,"$header_row?",function(){var u=this,_=L;return qe(_=u.has_header_option)&&qe(u.rows.$body()["$empty?"]())?_:L}),ye(ae,"$create_columns",function(u){var _=this,z=L,S=L,b=L,F=L;return z=[],S=L,b=0,Pe(u,"each",[],function H(_e){var ue=H.$$s==null?this:H.$$s,Se=L,Be=L;return _e==null&&(_e=L),Se=_e["$[]"]("width"),z["$<<"](pe("Column").$new(ue,z.$size(),_e)),qe(R(Se,0))?(S=qe(Be=S)?Be:[])["$<<"](z["$[]"](-1)):b=ht(b,Se)},{$$s:_}),qe(et(F=(_.columns=z).$size(),0))&&(_.attributes["$[]="]("colcount",F),qe(et(b,0))||qe(S)||(b=L),_.$assign_column_widths(b,S)),L}),ye(ae,"$assign_column_widths",function(u,_){var z=this,S=L,b=L,F=L,H=L,_e=L;return u==null&&(u=L),_==null&&(_=L),S=pe("DEFAULT_PRECISION"),b=F=0,qe(u)?(qe(_)&&(qe(et(u,100))?(H=0,z.$logger().$warn("total column width must not exceed 100% when using autowidth columns; got "+u+"%")):(H=Le(Ve(100,u),_.$size()).$truncate(S),Ne(H.$to_i(),H)&&(H=H.$to_i()),u=100),_e=X(["width","autowidth-option"],{width:H,"autowidth-option":""}),Pe(_,"each",[],function(Se){return Se==null&&(Se=L),Se.$update_attributes(_e)})),Pe(z.columns,"each",[],function(Se){return Se==null&&(Se=L),b=ht(b,F=Se.$assign_width(L,u,S))})):(F=Le(100,z.columns.$size()).$truncate(S),Ne(F.$to_i(),F)&&(F=F.$to_i()),Pe(z.columns,"each",[],function(Se){return Se==null&&(Se=L),b=ht(b,Se.$assign_width(F,L,S))})),Ne(b,100)||z.columns["$[]"](-1).$assign_width(ht(Ve(100,b),F).$round(S),L,S),L},-1),ye(ae,"$partition_header_footer",function(u){var _,z=this,S=L,b=L;return S=(_=["rowcount",(b=z.rows.$body()).$size()],Pe(z.attributes,"[]=",_),_[_.length-1]),qe(et(S,0))&&(qe(z.has_header_option)?(z.rows["$head="]([Pe(b.$shift(),"map",[],function(H){return H==null&&(H=L),H.$reinitialize(!0)})]),S=Ve(S,1)):qe(z.has_header_option["$nil?"]())&&(z.has_header_option=!1,b.$unshift(Pe(b.$shift(),"map",[],function(H){return H==null&&(H=L),H.$reinitialize(!1)})))),qe(et(S,0))&&qe(u["$[]"]("footer-option"))&&z.rows["$foot="]([b.$pop()]),L})}(ce[0],xe("AbstractBlock"),ce),function(ee,P){var M=se(ee,P,"Column"),ae=M.$$prototype;return ae.attributes=L,M.$attr_accessor("style"),ye(M,"$initialize",function ie(pe,Y,g){ie.$$p;var u=this;return ie.$$p=null,g==null&&(g=X([],{})),Ue(u,Z(u,"initialize",ie,!1,!0),"initialize",[pe,"table_column"],null),u.style=g["$[]"]("style"),g["$[]="]("colnumber",ht(Y,1)),qe(g["$[]"]("width"))||g["$[]="]("width",1),qe(g["$[]"]("halign"))||g["$[]="]("halign","left"),qe(g["$[]"]("valign"))||g["$[]="]("valign","top"),u.$update_attributes(g)},-3),y(M,"table","parent"),ye(M,"$assign_width",function(pe,Y,g){var u,_=this,z=L;return qe(Y)&&(pe=Le(Ke(_.attributes["$[]"]("width").$to_f(),100),Y).$truncate(g),Ne(pe.$to_i(),pe)&&(pe=pe.$to_i())),qe(_.$parent().$attributes()["$[]"]("tableabswidth"))&&_.attributes["$[]="]("colabswidth",Ne(z=Ke(Le(pe,100),_.$parent().$attributes()["$[]"]("tableabswidth")).$truncate(g),z.$to_i())?z.$to_i():z),u=["colpcwidth",pe],Pe(_.attributes,"[]=",u),u[u.length-1]}),ye(M,"$block?",st(!1)),ye(M,"$inline?",st(!1))}(xe("Table"),xe("AbstractNode")),function(ee,P,M){var ae=se(ee,P,"Cell"),ie=[ae].concat(M),pe=a.$r(ie),Y=ae.$$prototype;return Y.document=Y.reinitialize_args=Y.attributes=Y.cursor=Y.text=Y.subs=Y.style=Y.inner_document=Y.source_location=Y.colspan=Y.rowspan=L,K(ie[0],"DOUBLE_LF",Ke(pe("LF"),2)),ae.$attr_accessor("colspan"),ae.$attr_accessor("rowspan"),y(ae,"column","parent"),ae.$attr_reader("inner_document"),ye(ae,"$initialize",function g(u,_,z,S){var b;g.$$p;var F=this,H=L,_e=L,ue=L,Se=L,Be=L,Xe=L,it=L,pt=L,at=L,bt=L,kt=L,Et=L,xt=L;if(g.$$p=null,z==null&&(z=X([],{})),S==null&&(S=X([],{})),Ue(F,Z(F,"initialize",g,!1,!0),"initialize",[u,"table_cell"],null),F.cursor=F.reinitialize_args=L,qe(F.document.$sourcemap())&&(F.source_location=S["$[]"]("cursor").$dup()),qe(u)&&(qe(H=u.$table()["$header_row?"]())?Ne(H,"implicit")&&qe(_e=qe(ue=u.$style())?ue:qe(Se=z)?z["$[]"]("style"):Se)&&((Ne(_e,"asciidoc")||Ne(_e,"literal"))&&(F.reinitialize_args=[u,_,qe(ue=z)?z.$merge():ue,S]),_e=L):_e=u.$style(),F.$update_attributes(u.$attributes())),qe(z))switch(qe(z["$empty?"]())?F.colspan=F.rowspan=L:(b=[z.$delete("colspan"),z.$delete("rowspan")],F.colspan=b[0],F.rowspan=b[1],qe(H)||(_e=qe(ue=z["$[]"]("style"))?ue:_e),F.$update_attributes(z)),_e){case"asciidoc":if(Be=!0,Xe=S["$[]"]("cursor"),qe((_=_.$rstrip())["$start_with?"](pe("LF")))){for(it=1;qe((_=_.$slice(1,_.$length()))["$start_with?"](pe("LF")));)it=ht(it,1);Xe.$advance(it)}else _=_.$lstrip();break;case"literal":for(pt=!0,_=_.$rstrip();qe(_["$start_with?"](pe("LF")));)_=_.$slice(1,_.$length());break;default:at=!0,_=qe(_)?_.$strip():""}else F.colspan=F.rowspan=L,Ne(_e,"asciidoc")&&(Be=!0,Xe=S["$[]"]("cursor"));return qe(Be)?(bt=F.document.$attributes().$delete("doctitle"),kt=_.$split(pe("LF"),-1),qe(kt["$empty?"]())||qe((Et=kt["$[]"](0))["$include?"]("::"))&&(xt=pe("PreprocessorReader").$new(F.document,[Et]).$readlines(),Ne(Et,xt["$[]"](0))&&qe(R(xt.$size(),2))||(kt.$shift(),qe(xt["$empty?"]())||Pe(kt,"unshift",Ye(xt)))),F.inner_document=pe("Document").$new(kt,X(["standalone","parent","cursor"],{standalone:!1,parent:F.document,cursor:Xe})),qe(bt["$nil?"]())||F.document.$attributes()["$[]="]("doctitle",bt),F.subs=L):qe(pt)?(F.content_model="verbatim",F.subs=pe("BASIC_SUBS")):(qe(at)&&(qe(H)?F.cursor=S["$[]"]("cursor"):F.$catalog_inline_anchor(_,S["$[]"]("cursor"))),F.content_model="simple",F.subs=pe("NORMAL_SUBS")),F.text=_,F.style=_e},-3),ye(ae,"$reinitialize",function(u){var _=this;if(qe(u))_.reinitialize_args=L;else{if(qe(_.reinitialize_args))return Pe(He(pe("Table"),"Cell"),"new",Ye(_.reinitialize_args));_.style=_.attributes["$[]"]("style")}return qe(_.cursor)&&_.$catalog_inline_anchor(),_}),ye(ae,"$catalog_inline_anchor",function(u,_){var z,S=this;return u==null&&(u=S.text),_==null&&(_=L),qe(_)||(z=[S.cursor,L],_=z[0],S.cursor=z[1]),qe(u["$start_with?"]("[["))&&qe(pe("LeadingInlineAnchorRx")["$=~"](u))?pe("Parser").$catalog_inline_anchor((z=Je["~"])===L?L:z["$[]"](1),(z=Je["~"])===L?L:z["$[]"](2),S,_,S.document):L},-1),ye(ae,"$text",function(){var u=this;return u.$apply_subs(u.text,u.subs)}),ae.$attr_writer("text"),ye(ae,"$content",function(){var u=this,_=L,z=L;return Ne(_=u.style,"asciidoc")?u.inner_document.$convert():qe(u.text["$include?"](pe("DOUBLE_LF")))?Pe(u.$text().$split(pe("BlankLineRx")),"map",[],function S(b){var F=S.$$s==null?this:S.$$s;return b==null&&(b=L),qe(_)&&dt(_,"header")?pe("Inline").$new(F.$parent(),"quoted",b,X(["type"],{type:_})).$convert():b},{$$s:u}):qe((z=u.$text())["$empty?"]())?[]:qe(_)&&dt(_,"header")?[pe("Inline").$new(u.$parent(),"quoted",z,X(["type"],{type:_})).$convert()]:[z]}),ye(ae,"$lines",function(){var u=this;return u.text.$split(pe("LF"))}),ye(ae,"$source",I("text")),ye(ae,"$file",function(){var u=this,_=L;return qe(_=u.source_location)?u.source_location.$file():_}),ye(ae,"$lineno",function(){var u=this,_=L;return qe(_=u.source_location)?u.source_location.$lineno():_}),ye(ae,"$to_s",function g(){var u=g.$$p||L,_=this,z=L;return g.$$p=null,""+Ue(_,Z(_,"to_s",g,!1,!0),"to_s",[],u)+" - [text: "+_.text+", colspan: "+(qe(z=_.colspan)?z:1)+", rowspan: "+(qe(z=_.rowspan)?z:1)+", attributes: "+_.attributes+"]"})}(xe("Table"),xe("AbstractBlock"),ce),function(ee,P,M){var ae=se(ee,P,"ParserContext"),ie=[ae].concat(M),pe=a.$r(ie),Y=ae.$$prototype;return Y.delimiter=Y.delimiter_rx=Y.buffer=Y.cellspecs=Y.cell_open=Y.format=Y.start_cursor_data=Y.reader=Y.table=Y.current_row=Y.colcount=Y.column_visits=Y.active_rowspans=Y.linenum=L,ae.$include(pe("Logging")),K(ie[0],"FORMATS",["psv","csv","dsv","tsv"].$to_set()),K(ie[0],"DELIMITERS",X(["psv","csv","dsv","tsv","!sv"],{psv:["|",/\|/],csv:[",",/,/],dsv:[":",/:/],tsv:[" ",/\t/],"!sv":["!",/!/]})),ae.$attr_accessor("table"),ae.$attr_accessor("format"),ae.$attr_reader("colcount"),ae.$attr_accessor("buffer"),ae.$attr_reader("delimiter"),ae.$attr_reader("delimiter_re"),ye(ae,"$initialize",function(u,_,z){var S,b,F=this,H=L,_e=L;return z==null&&(z=X([],{})),F.start_cursor_data=(F.reader=u).$mark(),F.table=_,qe(z["$key?"]("format"))?qe(pe("FORMATS")["$include?"](H=z["$[]"]("format")))?Ne(H,"tsv")?F.format="csv":Ne(F.format=H,"psv")&&qe(_.$document()["$nested?"]())&&(H="!sv"):(F.$logger().$error(F.$message_with_context("illegal table format: "+H,X(["source_location"],{source_location:u.$cursor_at_prev_line()}))),S=["psv",qe(_.$document()["$nested?"]())?"!sv":"psv"],F.format=S[0],H=S[1]):(S=["psv",qe(_.$document()["$nested?"]())?"!sv":"psv"],F.format=S[0],H=S[1]),qe(z["$key?"]("separator"))?qe((_e=z["$[]"]("separator"))["$nil_or_empty?"]())?(b=pe("DELIMITERS")["$[]"](H),S=tt(b),F.delimiter=S[0]==null?L:S[0],F.delimiter_rx=S[1]==null?L:S[1]):Ne(_e,"\\t")?(b=pe("DELIMITERS")["$[]"]("tsv"),S=tt(b),F.delimiter=S[0]==null?L:S[0],F.delimiter_rx=S[1]==null?L:S[1]):(S=[_e,A([He("Regexp").$escape(_e)])],F.delimiter=S[0],F.delimiter_rx=S[1]):(b=pe("DELIMITERS")["$[]"](H),S=tt(b),F.delimiter=S[0]==null?L:S[0],F.delimiter_rx=S[1]==null?L:S[1]),F.colcount=qe(_.$columns()["$empty?"]())?-1:_.$columns().$size(),F.buffer="",F.cellspecs=[],F.cell_open=!1,F.active_rowspans=[0],F.column_visits=0,F.current_row=[],F.linenum=-1},-3),ye(ae,"$starts_with_delimiter?",function(u){var _=this;return u["$start_with?"](_.delimiter)}),ye(ae,"$match_delimiter",function(u){var _=this;return _.delimiter_rx.$match(u)}),ye(ae,"$skip_past_delimiter",function(u){var _=this;return _.buffer=""+_.buffer+u+_.delimiter,L}),ye(ae,"$skip_past_escaped_delimiter",function(u){var _=this;return _.buffer=""+_.buffer+u.$chop()+_.delimiter,L}),ye(ae,"$buffer_has_unclosed_quotes?",function(u,_){var z=this,S=L,b=L,F=L,H=L;return u==null&&(u=L),_==null&&(_='"'),Ne(S=qe(u)?ht(z.buffer,u).$strip():z.buffer.$strip(),_)?!0:qe(S["$start_with?"](_))?(b=ht(_,_),qe(F=S["$end_with?"](_))&&qe(S["$end_with?"](b))||qe(S["$start_with?"](b))?qe(H=(S=S.$gsub(b,""))["$start_with?"](_))?S["$end_with?"](_)["$!"]():H:F["$!"]()):!1},-1),ye(ae,"$take_cellspec",function(){var u=this;return u.cellspecs.$shift()}),ye(ae,"$push_cellspec",function(u){var _=this,z=L;return u==null&&(u=X([],{})),_.cellspecs["$<<"](qe(z=u)?z:X([],{})),L},-1),ye(ae,"$keep_cell_open",function(){var u=this;return u.cell_open=!0,L}),ye(ae,"$mark_cell_closed",function(){var u=this;return u.cell_open=!1,L}),ye(ae,"$cell_open?",I("cell_open")),ye(ae,"$cell_closed?",function(){var u=this;return u.cell_open["$!"]()}),ye(ae,"$close_open_cell",function(u){var _=this;return u==null&&(u=X([],{})),_.$push_cellspec(u),qe(_["$cell_open?"]())&&_.$close_cell(!0),_.$advance(),L},-1),ye(ae,"$close_cell",function(u){try{var _=lt("return"),z=this,S=L,b=L,F=L,H=L,_e=L;return u==null&&(u=!1),Ne(z.format,"psv")?(S=z.buffer,z.buffer="",qe(b=z.$take_cellspec())?F=qe(H=b.$delete("repeatcol"))?H:1:(z.$logger().$error(z.$message_with_context("table missing leading separator; recovering automatically",X(["source_location"],{source_location:Pe(He(pe("Reader"),"Cursor"),"new",Ye(z.start_cursor_data))}))),b=X([],{}),F=1)):(S=z.buffer.$strip(),z.buffer="",b=L,F=1,Ne(z.format,"csv")&&rt(S["$empty?"]())&&qe(S["$include?"](_e='"'))&&(qe(S["$start_with?"](_e))&&qe(S["$end_with?"](_e))?qe(S=S.$slice(1,Ve(S.$length(),2)))?S=S.$strip().$squeeze(_e):(z.$logger().$error(z.$message_with_context("unclosed quote in CSV data; setting cell to empty",X(["source_location"],{source_location:z.reader.$cursor_at_prev_line()}))),S=""):S=S.$squeeze(_e))),Pe(1,"upto",[F],function ue(Se){var Be=ue.$$s==null?this:ue.$$s,Xe=L,it=L,pt=L,at=L;return Be.colcount==null&&(Be.colcount=L),Be.table==null&&(Be.table=L),Be.current_row==null&&(Be.current_row=L),Be.reader==null&&(Be.reader=L),Be.column_visits==null&&(Be.column_visits=L),Be.linenum==null&&(Be.linenum=L),Se==null&&(Se=L),Ne(Be.colcount,-1)?(Be.table.$columns()["$<<"](Xe=He(pe("Table"),"Column").$new(Be.table,Ve(ht(Be.table.$columns().$size(),Se),1))),qe(b)&&qe(b["$key?"]("colspan"))&&qe(et(it=Ve(b["$[]"]("colspan").$to_i(),1),0))&&(pt=Be.table.$columns().$size(),Pe(it,"times",[],function bt(kt){var Et=bt.$$s==null?this:bt.$$s;return Et.table==null&&(Et.table=L),kt==null&&(kt=L),Et.table.$columns()["$<<"](He(pe("Table"),"Column").$new(Et.table,ht(pt,kt)))},{$$s:Be}))):qe(Xe=Be.table.$columns()["$[]"](Be.current_row.$size()))||(Be.$logger().$error(Be.$message_with_context("dropping cell because it exceeds specified number of columns",X(["source_location"],{source_location:Be.reader.$cursor_before_mark()}))),_.$throw()),at=He(pe("Table"),"Cell").$new(Xe,S,b,X(["cursor"],{cursor:Be.reader.$cursor_before_mark()})),Be.reader.$mark(),rt(at.$rowspan())||Ne(at.$rowspan(),1)||Be.$activate_rowspan(at.$rowspan(),qe(H=at.$colspan())?H:1),Be.column_visits=ht(Be.column_visits,qe(H=at.$colspan())?H:1),Be.current_row["$<<"](at),qe(Be["$end_of_row?"]())&&(dt(Be.colcount,-1)||qe(et(Be.linenum,0))||qe(u)&&Ne(Se,F))?Be.$close_row():L},{$$s:z,$$ret:_}),z.cell_open=!1,L}catch(ue){if(ue===_)return ue.$v;throw ue}},-1),ae.$private(),ye(ae,"$close_row",function(){var u=this;return u.table.$rows().$body()["$<<"](u.current_row),Ne(u.colcount,-1)&&(u.colcount=u.column_visits),u.column_visits=0,u.current_row=[],u.active_rowspans.$shift(),qe(u.active_rowspans["$[]"](0))||u.active_rowspans["$[]="](0,0),L}),ye(ae,"$activate_rowspan",function(u,_){var z=this;return Pe(1,"upto",[Ve(u,1)],function S(b){var F,H=S.$$s==null?this:S.$$s,_e=L;return H.active_rowspans==null&&(H.active_rowspans=L),b==null&&(b=L),F=[b,ht(qe(_e=H.active_rowspans["$[]"](b))?_e:0,_)],Pe(H.active_rowspans,"[]=",F),F[F.length-1]},{$$s:z}),L}),ye(ae,"$end_of_row?",function(){var u=this,_=L;return qe(_=u.colcount["$=="](-1))?_:u.$effective_column_visits()["$=="](u.colcount)}),ye(ae,"$effective_column_visits",function(){var u=this;return ht(u.column_visits,u.active_rowspans["$[]"](0))}),ye(ae,"$advance",function(){var u=this;return u.linenum=ht(u.linenum,1)})}(xe("Table"),null,ce)}(J[0],J)},Opal.modules["asciidoctor/writer"]=function(a){var oe=a.module,se=a.truthy,K=a.rb_plus,ye=a.hash2,y=a.def,X=a.return_val,Ue=[],Z=a.nil,qe=a.$$$;return a.add_stubs("respond_to?,write,+,chomp,include"),function(R,et){var Ne=oe(R,"Asciidoctor"),Ke=[Ne].concat(et);return function(Le,Pe){var ht=oe(Le,"Writer"),Ve=[ht].concat(Pe),st=a.$r(Ve);return y(ht,"$write",function(Je,dt){return se(dt["$respond_to?"]("write"))?dt.$write(K(Je.$chomp(),st("LF"))):qe("File").$write(dt,Je,ye(["mode"],{mode:st("FILE_WRITE_MODE")})),Z})}(Ke[0],Ke),function(Le,Pe){var ht=oe(Le,"VoidWriter"),Ve=[ht].concat(Pe),st=a.$r(Ve);return ht.$include(st("Writer")),y(ht,"$write",X(Z))}(Ke[0],Ke)}(Ue[0],Ue)},Opal.modules["asciidoctor/load"]=function(a){var oe=a.module,se=a.hash2,K=a.truthy,ye=a.neqeq,y=a.not,X=a.eqeqeq,Ue=a.send,Z=a.to_ary,qe=a.rb_plus,R=a.eqeq,et=a.def,Ne=[],Ke=a.nil,Le=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(Pe,ht){var Ve=oe(Pe,"Asciidoctor"),st=[Ve].concat(ht);return function(Ye,Je){var dt=[Ye].concat(Je),I=a.$r(dt);return et(Ye,"$load",function(A,rt){var lt,J,L,He,ke=this,Ie=Ke,Re=Ke,ce=Ke,xe=Ke,ee=Ke,P=Ke,M=Ke,ae=Ke,ie=Ke,pe=Ke;rt==null&&(rt=se([],{}));try{if(rt=rt.$merge(),K(Ie=rt["$[]"]("timings"))&&Ie.$start("read"),K(rt["$key?"]("logger"))&&ye(Re=rt["$[]"]("logger"),I("LoggerManager").$logger())&&I("LoggerManager")["$logger="](K(ce=Re)?ce:I("NullLogger").$new()),y(xe=rt["$[]"]("attributes"))?xe=se([],{}):X(Le("Hash"),xe)?xe=xe.$merge():K((L=Le("::","Java","skip_raise"))&&(J=Le(L,"JavaUtil","skip_raise"))&&(lt=Le(J,"Map","skip_raise"))?"constant":Ke)&&X(Le(Le(Le("Java"),"JavaUtil"),"Map"),xe)?xe=xe.$dup():X(Le("Array"),xe)?xe=Ue(se([],{}),"tap",[],function(g){return g==null&&(g=Ke),Ue(xe,"each",[],function(_){var z,S,b=Ke,F=Ke,H=Ke;return _==null&&(_=Ke),S=_.$partition("="),z=Z(S),b=z[0]==null?Ke:z[0],F=z[1]==null?Ke:z[1],H=z[2]==null?Ke:z[2],z=[b,H],Ue(g,"[]=",z),z[z.length-1]})}):X(Le("String"),xe)?xe=Ue(se([],{}),"tap",[],function(g){return g==null&&(g=Ke),Ue(xe.$gsub(I("SpaceDelimiterRx"),qe("\\1",I("NULL"))).$gsub(I("EscapedSpaceRx"),"\\1").$split(I("NULL")),"each",[],function(_){var z,S,b=Ke,F=Ke,H=Ke;return _==null&&(_=Ke),S=_.$partition("="),z=Z(S),b=z[0]==null?Ke:z[0],F=z[1]==null?Ke:z[1],H=z[2]==null?Ke:z[2],z=[b,H],Ue(g,"[]=",z),z[z.length-1]})}):K(xe["$respond_to?"]("keys"))&&K(xe["$respond_to?"]("[]"))?xe=Ue(se([],{}),"tap",[],function(g){return g==null&&(g=Ke),Ue(xe.$keys(),"each",[],function(_){var z;return _==null&&(_=Ke),z=[_,xe["$[]"](_)],Ue(g,"[]=",z),z[z.length-1]})}):ke.$raise(Le("ArgumentError"),"illegal type for attributes option: "+xe.$class().$ancestors().$join(" < ")),X(Le("File"),A))rt["$[]="]("input_mtime",R(I("RUBY_ENGINE"),"jruby")?Le("Time").$at(A.$mtime().$to_i()):A.$mtime()),xe["$[]="]("docfile",ee=Le("File").$absolute_path(A.$path())),xe["$[]="]("docdir",Le("File").$dirname(ee)),xe["$[]="]("docname",I("Helpers").$basename(ee,(He=["docfilesuffix",I("Helpers").$extname(ee)],Ue(xe,"[]=",He),He[He.length-1]))),P=A.$read();else if(K(A["$respond_to?"]("read"))){try{A.$rewind()}catch(Y){if(a.rescue(Y,[I("StandardError")]))try{}finally{a.pop_exception()}else throw Y}P=A.$read()}else X(Le("String"),A)?P=A:X(Le("Array"),A)?P=A.$drop(0):K(A)&&ke.$raise(Le("ArgumentError"),"unsupported input type: "+A.$class());return K(Ie)&&(Ie.$record("read"),Ie.$start("parse")),rt["$[]="]("attributes",xe),M=R(rt["$[]"]("parse"),!1)?I("Document").$new(P,rt):I("Document").$new(P,rt).$parse(),K(Ie)&&Ie.$record("parse"),M}catch(Y){if(a.rescue(Y,[I("StandardError")])){ae=Y;try{try{ie="asciidoctor: FAILED: "+(K(ce=xe["$[]"]("docfile"))?ce:"<stdin>")+": Failed to load AsciiDoc document",K(ae["$respond_to?"]("exception"))?(pe=ae.$exception(""+ie+" - "+ae.$message()),pe.$set_backtrace(ae.$backtrace())):(pe=ae.$class().$new(ie,ae),pe["$stack_trace="](ae.$stack_trace()))}catch(g){if(a.rescue(g,[I("StandardError")]))try{pe=ae}finally{a.pop_exception()}else throw g}return ke.$raise(pe)}finally{a.pop_exception()}}else throw Y}},-2),et(Ye,"$load_file",function(A,rt){var lt=this;return rt==null&&(rt=se([],{})),Ue(Le("File"),"open",[A,I("FILE_READ_MODE")],function J(L){var He=J.$$s==null?this:J.$$s;return L==null&&(L=Ke),He.$load(L,rt)},{$$s:lt})},-2)}(a.get_singleton_class(Ve),st)}(Ne[0],Ne)},Opal.modules["asciidoctor/convert"]=function(a){var oe=a.module,se=a.hash2,K=a.eqeqeq,ye=a.truthy,y=a.eqeq,X=a.rb_ge,Ue=a.not,Z=a.rb_lt,qe=a.neqeq,R=a.def,et=a.send,Ne=a.alias,Ke=[],Le=a.nil,Pe=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(ht,Ve){var st=oe(ht,"Asciidoctor"),Ye=[st].concat(Ve);return function(Je,dt){var I=[Je].concat(dt),tt=a.$r(I);return R(Je,"$convert",function(rt,lt){var J=this,L=Le,He=Le,ke=Le,Ie=Le,Re=Le,ce=Le,xe=Le,ee=Le,P=Le,M=Le,ae=Le,ie=Le,pe=Le,Y=Le,g=Le,u=Le,_=Le,z=Le,S=Le,b=Le,F=Le,H=Le,_e=Le,ue=Le;if(lt==null&&(lt=se([],{})),(lt=lt.$merge()).$delete("parse"),L=lt.$delete("to_dir"),He=lt.$delete("mkdirs"),K(!0,ke=Ie=lt.$delete("to_file"))||K(Le,ke))ye(Re=L)||K(Pe("File"),rt)&&(ce=Pe("File").$absolute_path(rt.$path())),Ie=Le;else if(K(!1,ke))Ie=Le;else{if(K("/dev/null",ke))return J.$load(rt,lt);ye(xe=Ie["$respond_to?"]("write"))||lt["$[]="]("to_file",Re=Ie)}return ye(lt["$key?"]("standalone"))||(ye(ce)||ye(Re)?lt["$[]="]("standalone",lt.$fetch("header_footer",!0)):ye(lt["$key?"]("header_footer"))&&lt["$[]="]("standalone",lt["$[]"]("header_footer"))),ye(ce)?lt["$[]="]("to_dir",ee=Pe("File").$dirname(ce)):ye(Re)&&(ye(L)?ye(Ie)?lt["$[]="]("to_dir",Pe("File").$dirname(Pe("File").$expand_path(Ie,L))):lt["$[]="]("to_dir",Pe("File").$expand_path(L)):ye(Ie)&&lt["$[]="]("to_dir",Pe("File").$dirname(Pe("File").$expand_path(Ie)))),P=J.$load(rt,lt),ye(ce)?(M=Pe("File").$join(ee,""+P.$attributes()["$[]"]("docname")+P.$outfilesuffix()),y(M,ce)&&J.$raise(Pe("IOError"),"input file and output file cannot be the same: "+M)):ye(Re)?(ae=ye(lt["$key?"]("base_dir"))?Pe("File").$expand_path(lt["$[]"]("base_dir")):Pe("Dir").$pwd(),ie=ye(X(P.$safe(),Pe(tt("SafeMode"),"SAFE")))?ae:Le,ye(L)?(ee=P.$normalize_system_path(L,ae,ie,se(["target_name","recover"],{target_name:"to_dir",recover:!1})),ye(Ie)?(M=P.$normalize_system_path(Ie,ee,Le,se(["target_name","recover"],{target_name:"to_dir",recover:!1})),ee=Pe("File").$dirname(M)):M=Pe("File").$join(ee,""+P.$attributes()["$[]"]("docname")+P.$outfilesuffix())):ye(Ie)&&(M=P.$normalize_system_path(Ie,ae,ie,se(["target_name","recover"],{target_name:"to_dir",recover:!1})),ee=Pe("File").$dirname(M)),K(Pe("File"),rt)&&y(M,Pe("File").$absolute_path(rt.$path()))&&J.$raise(Pe("IOError"),"input file and output file cannot be the same: "+M),ye(He)?tt("Helpers").$mkdir_p(ee):ye(Pe("File")["$directory?"](ee))||J.$raise(Pe("IOError"),"target directory does not exist: "+L+" (hint: set :mkdirs option)")):(M=Ie,ee=Le),ye(M)&&Ue(xe)?pe=P.$convert(se(["outfile","outdir"],{outfile:M,outdir:ee})):pe=P.$convert(),ye(M)?(P.$write(pe,M),Ue(xe)&&ye(Z(P.$safe(),Pe(tt("SafeMode"),"SECURE")))&&ye(P["$attr?"]("linkcss"))&&ye(P["$attr?"]("copycss"))&&ye(P["$basebackend?"]("html"))&&Ue(ye(ke=Y=P.$attr("stylesdir"))?tt("Helpers")["$uriish?"](Y):ke)&&(ye(g=P.$attr("stylesheet"))&&(ye(tt("DEFAULT_STYLESHEET_KEYS")["$include?"](g))?u=!0:Ue(tt("Helpers")["$uriish?"](g))&&(_=!0)),z=ye(ke=S=P.$syntax_highlighter())?S["$write_stylesheet?"](P):ke,(ye(u)||ye(_)||ye(z))&&(b=P.$normalize_system_path(Y,ee,ye(X(P.$safe(),Pe(tt("SafeMode"),"SAFE")))?ee:Le),ye(He)?tt("Helpers").$mkdir_p(b):ye(Pe("File")["$directory?"](b))||J.$raise(Pe("IOError"),"target stylesheet directory does not exist: "+b+" (hint: set :mkdirs option)"),ye(u)?tt("Stylesheets").$instance().$write_primary_stylesheet(b):ye(_)&&(y(F=P.$attr("copycss"),"")||y(F,!0)?F=P.$normalize_system_path(g):F=P.$normalize_system_path(F.$to_s()),H=P.$normalize_system_path(g,b,ye(X(P.$safe(),Pe(tt("SafeMode"),"SAFE")))?ee:Le),qe(F,H)&&ye(_e=P.$read_asset(F,se(["warn_on_failure","label"],{warn_on_failure:Pe("File")["$file?"](H)["$!"](),label:"stylesheet"})))&&(qe(ue=Pe("File").$dirname(H),b)&&Ue(Pe("File")["$directory?"](ue))&&(ye(He)?tt("Helpers").$mkdir_p(ue):J.$raise(Pe("IOError"),"target stylesheet directory does not exist: "+ue+" (hint: set :mkdirs option)")),Pe("File").$write(H,_e,se(["mode"],{mode:tt("FILE_WRITE_MODE")})))),ye(z)&&S.$write_stylesheet(P,b))),P):pe},-2),R(Je,"$convert_file",function(rt,lt){var J=this;return lt==null&&(lt=se([],{})),et(Pe("File"),"open",[rt,tt("FILE_READ_MODE")],function L(He){var ke=L.$$s==null?this:L.$$s;return He==null&&(He=Le),ke.$convert(He,lt)},{$$s:J})},-2),Ne(Je,"render","convert"),Ne(Je,"render_file","convert_file")}(a.get_singleton_class(st),Ye)}(Ke[0],Ke)},Opal.modules["asciidoctor/syntax_highlighter/highlightjs"]=function(a){var oe=a.module,se=a.klass,K=a.slice,ye=a.send2,y=a.find_super,X=a.to_a,Ue=a.def,Z=a.hash2,qe=a.send,R=a.truthy,et=a.return_val,Ne=a.eqeq,Ke=[],Le=a.nil,Pe=a.$$$;return a.add_stubs("register_for,merge,proc,[]=,attr,[],==,attr?,join,map,split,lstrip"),function(ht,Ve){var st=oe(ht,"Asciidoctor"),Ye=[st].concat(Ve),Je=a.$r(Ye);return function(dt,I,tt){var A=se(dt,I,"HighlightJsAdapter"),rt=[A].concat(tt),lt=a.$r(rt);return A.$register_for("highlightjs","highlight.js"),Ue(A,"$initialize",function J(L){var He,ke,Ie=J.$$p||Le,Re=this;return J.$$p=null,He=K(arguments),ke=He,ye(Re,y(Re,"initialize",J,!1,!0),"initialize",X(ke),Ie),Re.name=Re.pre_class="highlightjs"},-1),Ue(A,"$format",function J(L,He,ke){J.$$p;var Ie=this;return J.$$p=null,ye(Ie,y(Ie,"format",J,!1,!0),"format",[L,He,ke.$merge(Z(["transform"],{transform:qe(Ie,"proc",[],function(ce,xe){var ee,P=Le;return xe==null&&(xe=Le),ee=["class","language-"+(R(P=He)?P:"none")+" hljs"],qe(xe,"[]=",ee),ee[ee.length-1]})}))],null)}),Ue(A,"$docinfo?",et(!0)),Ue(A,"$docinfo",function(L,He,ke){var Ie=Le;return Ie=He.$attr("highlightjsdir",""+ke["$[]"]("cdn_base_url")+"/highlight.js/"+lt("HIGHLIGHT_JS_VERSION")),Ne(L,"head")?'<link rel="stylesheet" href="'+Ie+"/styles/"+He.$attr("highlightjs-theme","github")+'.min.css"'+ke["$[]"]("self_closing_tag_slash")+">":'<script src="'+Ie+`/highlight.min.js"><\/script>
466
+ `+(R(He["$attr?"]("highlightjs-languages"))?qe(He.$attr("highlightjs-languages").$split(","),"map",[],function(ce){return ce==null&&(ce=Le),'<script src="'+Ie+"/languages/"+ce.$lstrip()+`.min.js"><\/script>
467
+ `}).$join():"")+`<script>
468
+ if (!hljs.initHighlighting.called) {
469
+ hljs.initHighlighting.called = true
470
+ ;[].slice.call(document.querySelectorAll('pre.highlight > code[data-lang]')).forEach(function (el) { hljs.highlightBlock(el) })
471
+ }
472
+ <\/script>`})}(Je("SyntaxHighlighter"),Pe(Je("SyntaxHighlighter"),"Base"),Ye)}(Ke[0],Ke)},Opal.modules["asciidoctor/syntax_highlighter"]=function(a){var oe=a.module,se=a.hash2,K=a.def,ye=a.return_val,y=a.defs,X=a.slice,Ue=a.send,Z=a.to_a,qe=a.truthy,R=a.eqeqeq,et=a.Class,Ne=a.klass,Ke=a.class_variable_set,Le=a.class_variable_get,Pe=a.top,ht=[],Ve=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(Ye,Je){var dt=oe(Ye,"Asciidoctor"),I=[dt].concat(Je);return function(tt,A){var rt=oe(tt,"SyntaxHighlighter"),lt=[rt].concat(A),J=a.$r(lt);return rt.$attr_reader("name"),K(rt,"$initialize",function(He,ke,Ie){var Re=this;return Ie==null&&(Ie=se([],{})),Re.name=Re.pre_class=He},-2),K(rt,"$docinfo?",ye(Ve)),K(rt,"$docinfo",function(He,ke,Ie){var Re=this;return Re.$raise(st("NotImplementedError"),""+J("SyntaxHighlighter")+" subclass "+Re.$class()+" must implement the #docinfo method since #docinfo? returns true")}),K(rt,"$highlight?",ye(Ve)),K(rt,"$highlight",function(He,ke,Ie,Re){var ce=this;return ce.$raise(st("NotImplementedError"),""+J("SyntaxHighlighter")+" subclass "+ce.$class()+" must implement the #highlight method since #highlight? returns true")}),K(rt,"$format",function(He,ke,Ie){var Re=this;return Re.$raise(st("NotImplementedError"),""+J("SyntaxHighlighter")+" subclass "+Re.$class()+" must implement the #format method")}),K(rt,"$write_stylesheet?",ye(Ve)),K(rt,"$write_stylesheet",function(He,ke){var Ie=this;return Ie.$raise(st("NotImplementedError"),""+J("SyntaxHighlighter")+" subclass "+Ie.$class()+" must implement the #write_stylesheet method since #write_stylesheet? returns true")}),y(rt,"$included",function(He){return He.$extend(J("Config"))}),rt.$private_class_method("included"),function(L,He){var ke=oe(L,"Config"),Ie=[ke].concat(He),Re=a.$r(Ie);return K(ke,"$register_for",function(xe){var ee,P,M=this;return ee=X(arguments),P=ee,Ue(Re("SyntaxHighlighter"),"register",[M].concat(Z(Ue(P,"map",[],function(ie){return ie==null&&(ie=Ve),ie.$to_s()}))))},-1)}(lt[0],lt),function(L,He){var ke=oe(L,"Factory"),Ie=[ke].concat(He),Re=a.$r(Ie);return K(ke,"$register",function(xe,ee){var P,M,ae=this;return P=X(arguments,1),M=P,Ue(M,"each",[],function ie(pe){var Y,g=ie.$$s==null?this:ie.$$s;return pe==null&&(pe=Ve),Y=[pe,xe],Ue(g.$registry(),"[]=",Y),Y[Y.length-1]},{$$s:ae})},-2),K(ke,"$for",function(xe){var ee=this;return ee.$registry()["$[]"](xe)}),K(ke,"$create",function(xe,ee,P){var M=this,ae=Ve;return ee==null&&(ee="html5"),P==null&&(P=se([],{})),qe(ae=M.$for(xe))?(R(et,ae)&&(ae=ae.$new(xe,ee,P)),qe(ae.$name())||M.$raise(st("NameError"),""+ae.$class()+" must specify a value for `name'"),ae):Ve},-2),ke.$private(),K(ke,"$registry",function(){var xe=this;return xe.$raise(st("NotImplementedError"),""+Re("Factory")+" subclass "+xe.$class()+" must implement the #registry method")})}(lt[0],lt),function(L,He,ke){var Ie=Ne(L,He,"CustomFactory"),Re=[Ie].concat(ke),ce=a.$r(Re);return Ie.$include(ce("Factory")),K(Ie,"$initialize",function(ee){var P=this,M=Ve;return ee==null&&(ee=Ve),P.registry=qe(M=ee)?M:se([],{})},-1),Ie.$private(),Ie.$attr_reader("registry")}(lt[0],null,lt),function(L,He){var ke=oe(L,"DefaultFactory"),Ie=[ke].concat(He),Re=a.$r(Ie);return ke.$include(Re("Factory")),Ke(Ie[0],"@@registry",se([],{})),ke.$private(),K(ke,"$registry",function(){return Le(Ie[0],"@@registry",!1)}),Ve}(lt[0],lt),function(L,He,ke){var Ie=Ne(L,He,"DefaultFactoryProxy"),Re=[Ie].concat(ke),ce=a.$r(Re);return Ie.$include(ce("DefaultFactory")),Ve}(lt[0],J("CustomFactory"),lt),function(L,He,ke){var Ie=Ne(L,He,"Base"),Re=[Ie].concat(ke),ce=a.$r(Re),xe=Ie.$$prototype;return xe.pre_class=Ve,Ie.$include(ce("SyntaxHighlighter")),K(Ie,"$format",function(P,M,ae){var ie=this,pe=Ve,Y=Ve,g=Ve,u=Ve;return pe=qe(ae["$[]"]("nowrap"))?""+ie.pre_class+" highlight nowrap":""+ie.pre_class+" highlight",qe(Y=ae["$[]"]("transform"))?(Y["$[]"](g=se(["class"],{class:pe}),u=qe(M)?se(["data-lang"],{"data-lang":M}):se([],{})),qe(M=u.$delete("data-lang"))&&u["$[]="]("data-lang",M),"<pre"+Ue(g,"map",[],function(z,S){return z==null&&(z=Ve),S==null&&(S=Ve)," "+z+'="'+S+'"'}).$join()+"><code"+Ue(u,"map",[],function(z,S){return z==null&&(z=Ve),S==null&&(S=Ve)," "+z+'="'+S+'"'}).$join()+">"+P.$content()+"</code></pre>"):'<pre class="'+pe+'"><code'+(qe(M)?' data-lang="'+M+'"':"")+">"+P.$content()+"</code></pre>"})}(lt[0],null,lt),rt.$extend(J("DefaultFactory"))}(I[0],I)}(ht[0],ht),Pe.$require("asciidoctor/syntax_highlighter.rb/../syntax_highlighter/highlightjs"),Ve},Opal.modules["asciidoctor/timings"]=function(a){var oe=a.module,se=a.klass,K=a.hash2,ye=a.def,y=a.send,X=a.rb_minus,Ue=a.slice,Z=a.rb_plus,qe=a.truthy,R=a.rb_gt,et=a.gvars,Ne=a.eqeq,Ke=a.const_set,Le=[],Pe=a.nil,ht=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(Ve,st){var Ye=oe(Ve,"Asciidoctor"),Je=[Ye].concat(st);return function(dt,I,tt){var A=se(dt,I,"Timings"),rt,lt,J,L,He=[A].concat(tt),ke=a.$r(He),Ie=A.$$prototype;return Ie.timers=Ie.log=Pe,ye(A,"$initialize",function(){var ce=this;return ce.log=K([],{}),ce.timers=K([],{})}),ye(A,"$start",function(ce){var xe,ee=this;return xe=[ce,ee.$now()],y(ee.timers,"[]=",xe),xe[xe.length-1]}),ye(A,"$record",function(ce){var xe,ee=this;return xe=[ce,X(ee.$now(),ee.timers.$delete(ce))],y(ee.log,"[]=",xe),xe[xe.length-1]}),ye(A,"$time",function(ce){var xe,ee,P=this,M=Pe;return xe=Ue(arguments),ee=xe,M=y(ee,"reduce",[0],function ae(ie,pe){var Y=ae.$$s==null?this:ae.$$s,g=Pe;return Y.log==null&&(Y.log=Pe),ie==null&&(ie=Pe),pe==null&&(pe=Pe),Z(ie,qe(g=Y.log["$[]"](pe))?g:0)},{$$s:P}),qe(R(M,0))?M:Pe},-1),ye(A,"$read",function(){var ce=this;return ce.$time("read")}),ye(A,"$parse",function(){var ce=this;return ce.$time("parse")}),ye(A,"$read_parse",function(){var ce=this;return ce.$time("read","parse")}),ye(A,"$convert",function(){var ce=this;return ce.$time("convert")}),ye(A,"$read_parse_convert",function(){var ce=this;return ce.$time("read","parse","convert")}),ye(A,"$write",function(){var ce=this;return ce.$time("write")}),ye(A,"$total",function(){var ce=this;return ce.$time("read","parse","convert","write")}),ye(A,"$print_report",function(ce,xe){var ee=this;return et.stdout==null&&(et.stdout=Pe),ce==null&&(ce=et.stdout),xe==null&&(xe=Pe),qe(xe)&&ce.$puts("Input file: "+xe),ce.$puts(" Time to read and parse source: "+ee.$sprintf("%05.5f",ee.$read_parse().$to_f())),ce.$puts(" Time to convert document: "+ee.$sprintf("%05.5f",ee.$convert().$to_f())),ce.$puts(" Total time (read, parse and convert): "+ee.$sprintf("%05.5f",ee.$read_parse_convert().$to_f()))},-1),A.$private(),qe(ht("Process")["$const_defined?"]("CLOCK_MONOTONIC",!1))&&Ne((rt=ht("::","Process","skip_raise"))&&(lt=rt,lt)&&(J=lt)&&((L=J.$clock_gettime)&&!L.$$stub||J["$respond_to_missing?"]("clock_gettime"))?"method":Pe,"method")?(Ke(He[0],"CLOCK_ID",ht(ht("Process"),"CLOCK_MONOTONIC")),ye(A,"$now",function(){return ht("Process").$clock_gettime(ke("CLOCK_ID"))})):ye(A,"$now",function(){return ht("Time").$now()})}(Je[0],null,Je)}(Le[0],Le)},Opal.modules["asciidoctor/converter/html5"]=function(a){var oe=a.module,se=a.klass,K=a.const_set,ye=a.hash2,y=a.regexp,X=a.eqeq,Ue=a.def,Z=a.send2,qe=a.find_super,R=a.truthy,et=a.send,Ne=a.rb_gt,Ke=a.rb_plus,Le=a.not,Pe=a.neqeq,ht=a.rb_le,Ve=a.rb_lt,st=a.to_ary,Ye=a.rb_times,Je=a.rb_minus,dt=a.gvars,I=a.return_val,tt=a.alias,A=a.eqeqeq,rt=a.slice,lt=a.to_a,J=[],L=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(ke,Ie){var Re=oe(ke,"Asciidoctor"),ce=[Re].concat(Ie),xe=a.$r(ce);return function(ee,P,M){var ae=se(ee,P,"Html5Converter"),ie=[ae].concat(M),pe=a.$r(ie),Y=ae.$$prototype;return Y.void_element_slash=Y.xml_mode=Y.refs=Y.resolving_xref=L,ae.$register_for("html5"),K(ie[0],"QUOTE_TAGS",ye(["monospaced","emphasis","strong","double","single","mark","superscript","subscript","asciimath","latexmath"],{monospaced:["<code>","</code>",!0],emphasis:["<em>","</em>",!0],strong:["<strong>","</strong>",!0],double:["&#8220;","&#8221;"],single:["&#8216;","&#8217;"],mark:["<mark>","</mark>",!0],superscript:["<sup>","</sup>",!0],subscript:["<sub>","</sub>",!0],asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]}))["$default="](["",""]),K(ie[0],"DropAnchorRx",/<(?:a\b[^>]*|\/a)>/),K(ie[0],"StemBreakRx",/ *\\\n(?:\\?\n)*|\n\n+/),K(ie[0],"SvgPreambleRx",y(["^",pe("CC_ALL"),"*?(?=<svg[\\s>])"])),K(ie[0],"SvgStartTagRx",/^<svg(?:\s[^>]*)?>/),K(ie[0],"DimensionAttributeRx",y([`\\s(?:width|height|style)=(["'])`,pe("CC_ANY"),"*?\\1"])),Ue(ae,"$initialize",function(u,_){var z=this,S=L;return _==null&&(_=ye([],{})),z.backend=u,X(_["$[]"]("htmlsyntax"),"xml")?(S="xml",z.xml_mode=!0,z.void_element_slash="/"):(S="html",z.xml_mode=L,z.void_element_slash=""),z.$init_backend_traits(ye(["basebackend","filetype","htmlsyntax","outfilesuffix","supports_templates"],{basebackend:"html",filetype:"html",htmlsyntax:S,outfilesuffix:".html",supports_templates:!0}))},-2),Ue(ae,"$convert",function g(u,_,z){var S=g.$$p||L,b=this;switch(g.$$p=null,_==null&&(_=u.$node_name()),z==null&&(z=L),_){case"inline_quoted":return b.$convert_inline_quoted(u);case"paragraph":return b.$convert_paragraph(u);case"inline_anchor":return b.$convert_inline_anchor(u);case"section":return b.$convert_section(u);case"listing":return b.$convert_listing(u);case"literal":return b.$convert_literal(u);case"ulist":return b.$convert_ulist(u);case"olist":return b.$convert_olist(u);case"dlist":return b.$convert_dlist(u);case"admonition":return b.$convert_admonition(u);case"colist":return b.$convert_colist(u);case"embedded":return b.$convert_embedded(u);case"example":return b.$convert_example(u);case"floating_title":return b.$convert_floating_title(u);case"image":return b.$convert_image(u);case"inline_break":return b.$convert_inline_break(u);case"inline_button":return b.$convert_inline_button(u);case"inline_callout":return b.$convert_inline_callout(u);case"inline_footnote":return b.$convert_inline_footnote(u);case"inline_image":return b.$convert_inline_image(u);case"inline_indexterm":return b.$convert_inline_indexterm(u);case"inline_kbd":return b.$convert_inline_kbd(u);case"inline_menu":return b.$convert_inline_menu(u);case"open":return b.$convert_open(u);case"page_break":return b.$convert_page_break(u);case"preamble":return b.$convert_preamble(u);case"quote":return b.$convert_quote(u);case"sidebar":return b.$convert_sidebar(u);case"stem":return b.$convert_stem(u);case"table":return b.$convert_table(u);case"thematic_break":return b.$convert_thematic_break(u);case"verse":return b.$convert_verse(u);case"video":return b.$convert_video(u);case"document":return b.$convert_document(u);case"toc":return b.$convert_toc(u);case"pass":return b.$convert_pass(u);case"audio":return b.$convert_audio(u);default:return Z(b,qe(b,"convert",g,!1,!0),"convert",[u,_,z],S)}},-2),Ue(ae,"$convert_document",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,_e=L,ue=L,Se=L,Be=L,Xe=L,it=L,pt=L,at=L,bt=L,kt=L,Et=L,xt=L,Nt=L,Tt=L,Vt=L,jt=L,er=L,Kt=L,Pt=L,Yt=L;return z="<br"+(S=_.void_element_slash)+">",R((b=u.$attr("asset-uri-scheme","https"))["$empty?"]())||(b=""+b+":"),F=""+b+"//cdnjs.cloudflare.com/ajax/libs",H=u["$attr?"]("linkcss"),_e=R(u["$attr?"]("max-width"))?' style="max-width: '+u.$attr("max-width")+';"':"",ue=["<!DOCTYPE html>"],Se=R(u["$attr?"]("nolang"))?"":' lang="'+u.$attr("lang","en")+'"',ue["$<<"]("<html"+(R(_.xml_mode)?' xmlns="http://www.w3.org/1999/xhtml"':"")+Se+">"),ue["$<<"](`<head>
473
+ <meta charset="`+u.$attr("encoding","UTF-8")+'"'+S+`>
474
+ <meta http-equiv="X-UA-Compatible" content="IE=edge"`+S+`>
475
+ <meta name="viewport" content="width=device-width, initial-scale=1.0"`+S+`>
476
+ <meta name="generator" content="Asciidoctor `+u.$attr("asciidoctor-version")+'"'+S+">"),R(u["$attr?"]("app-name"))&&ue["$<<"]('<meta name="application-name" content="'+u.$attr("app-name")+'"'+S+">"),R(u["$attr?"]("description"))&&ue["$<<"]('<meta name="description" content="'+u.$attr("description")+'"'+S+">"),R(u["$attr?"]("keywords"))&&ue["$<<"]('<meta name="keywords" content="'+u.$attr("keywords")+'"'+S+">"),R(u["$attr?"]("authors"))&&ue["$<<"]('<meta name="author" content="'+(R((Be=u.$sub_replacements(u.$attr("authors")))["$include?"]("<"))?Be.$gsub(pe("XmlSanitizeRx"),""):Be)+'"'+S+">"),R(u["$attr?"]("copyright"))&&ue["$<<"]('<meta name="copyright" content="'+u.$attr("copyright")+'"'+S+">"),R(u["$attr?"]("favicon"))&&(R((Xe=u.$attr("favicon"))["$empty?"]())?(Xe="favicon.ico",it="image/x-icon"):R(pt=pe("Helpers").$extname(Xe,L))?it=X(pt,".ico")?"image/x-icon":"image/"+pt.$slice(1,pt.$length()):it="image/x-icon",ue["$<<"]('<link rel="icon" type="'+it+'" href="'+Xe+'"'+S+">")),ue["$<<"]("<title>"+u.$doctitle(ye(["sanitize","use_fallback"],{sanitize:!0,use_fallback:!0}))+"</title>"),R(pe("DEFAULT_STYLESHEET_KEYS")["$include?"](u.$attr("stylesheet")))?(R(at=u.$attr("webfonts"))&&ue["$<<"]('<link rel="stylesheet" href="'+b+"//fonts.googleapis.com/css?family="+(R(at["$empty?"]())?"Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700":at)+'"'+S+">"),R(H)?ue["$<<"]('<link rel="stylesheet" href="'+u.$normalize_web_path(pe("DEFAULT_STYLESHEET_NAME"),u.$attr("stylesdir",""),!1)+'"'+S+">"):ue["$<<"](`<style>
477
+ `+pe("Stylesheets").$instance().$primary_stylesheet_data()+`
478
+ </style>`)):R(u["$attr?"]("stylesheet"))&&(R(H)?ue["$<<"]('<link rel="stylesheet" href="'+u.$normalize_web_path(u.$attr("stylesheet"),u.$attr("stylesdir",""))+'"'+S+">"):ue["$<<"](`<style>
479
+ `+u.$read_contents(u.$attr("stylesheet"),ye(["start","warn_on_failure","label"],{start:u.$attr("stylesdir"),warn_on_failure:!0,label:"stylesheet"}))+`
480
+ </style>`)),R(u["$attr?"]("icons","font"))&&(R(u["$attr?"]("iconfont-remote"))?ue["$<<"]('<link rel="stylesheet" href="'+u.$attr("iconfont-cdn",""+F+"/font-awesome/"+pe("FONT_AWESOME_VERSION")+"/css/font-awesome.min.css")+'"'+S+">"):(bt=""+u.$attr("iconfont-name","font-awesome")+".css",ue["$<<"]('<link rel="stylesheet" href="'+u.$normalize_web_path(bt,u.$attr("stylesdir",""),!1)+'"'+S+">"))),R(kt=u.$syntax_highlighter())&&ue["$<<"](Et=ue.$size()),R((xt=u.$docinfo())["$empty?"]())||ue["$<<"](xt),ue["$<<"]("</head>"),Nt=R(u.$id())?' id="'+u.$id()+'"':"",R(Tt=u["$sections?"]())&&R(u["$attr?"]("toc-class"))&&R(u["$attr?"]("toc"))&&R(u["$attr?"]("toc-placement","auto"))?Vt=[u.$doctype(),u.$attr("toc-class"),"toc-"+u.$attr("toc-position","header")]:Vt=[u.$doctype()],R(u["$role?"]())&&Vt["$<<"](u.$role()),ue["$<<"]("<body"+Nt+' class="'+Vt.$join(" ")+'">'),R((xt=u.$docinfo("header"))["$empty?"]())||ue["$<<"](xt),R(u.$noheader())||(ue["$<<"]('<div id="header"'+_e+">"),X(u.$doctype(),"manpage")?(ue["$<<"]("<h1>"+u.$doctitle()+" Manual Page</h1>"),R(Tt)&&R(u["$attr?"]("toc"))&&R(u["$attr?"]("toc-placement","auto"))&&ue["$<<"]('<div id="toc" class="'+u.$attr("toc-class","toc")+`">
481
+ <div id="toctitle">`+u.$attr("toc-title")+`</div>
482
+ `+u.$converter().$convert(u,"outline")+`
483
+ </div>`),R(u["$attr?"]("manpurpose"))&&ue["$<<"](_.$generate_manname_section(u))):(R(u["$header?"]())&&(R(u.$notitle())||ue["$<<"]("<h1>"+u.$header().$title()+"</h1>"),jt=[],er=1,et(u.$authors(),"each",[],function(nr){return nr==null&&(nr=L),jt["$<<"]('<span id="author'+(R(Ne(er,1))?er:"")+'" class="author">'+u.$sub_replacements(nr.$name())+"</span>"+z),R(nr.$email())&&jt["$<<"]('<span id="email'+(R(Ne(er,1))?er:"")+'" class="email">'+u.$sub_macros(nr.$email())+"</span>"+z),er=Ke(er,1)}),R(u["$attr?"]("revnumber"))&&jt["$<<"]('<span id="revnumber">'+(R(Kt=u.$attr("version-label"))?Kt:"").$downcase()+" "+u.$attr("revnumber")+(R(u["$attr?"]("revdate"))?",":"")+"</span>"),R(u["$attr?"]("revdate"))&&jt["$<<"]('<span id="revdate">'+u.$attr("revdate")+"</span>"),R(u["$attr?"]("revremark"))&&jt["$<<"](""+z+'<span id="revremark">'+u.$attr("revremark")+"</span>"),R(jt["$empty?"]())||(ue["$<<"]('<div class="details">'),ue.$concat(jt),ue["$<<"]("</div>"))),R(Tt)&&R(u["$attr?"]("toc"))&&R(u["$attr?"]("toc-placement","auto"))&&ue["$<<"]('<div id="toc" class="'+u.$attr("toc-class","toc")+`">
484
+ <div id="toctitle">`+u.$attr("toc-title")+`</div>
485
+ `+u.$converter().$convert(u,"outline")+`
486
+ </div>`)),ue["$<<"]("</div>")),ue["$<<"]('<div id="content"'+_e+`>
487
+ `+u.$content()+`
488
+ </div>`),R(u["$footnotes?"]())&&Le(u["$attr?"]("nofootnotes"))&&(ue["$<<"]('<div id="footnotes"'+_e+`>
489
+ <hr`+S+">"),et(u.$footnotes(),"each",[],function(nr){return nr==null&&(nr=L),ue["$<<"]('<div class="footnote" id="_footnotedef_'+nr.$index()+`">
490
+ <a href="#_footnoteref_`+nr.$index()+'">'+nr.$index()+"</a>. "+nr.$text()+`
491
+ </div>`)}),ue["$<<"]("</div>")),R(u.$nofooter())||(ue["$<<"]('<div id="footer"'+_e+">"),ue["$<<"]('<div id="footer-text">'),R(u["$attr?"]("revnumber"))&&ue["$<<"](""+u.$attr("version-label")+" "+u.$attr("revnumber")+z),R(u["$attr?"]("last-update-label"))&&Le(u["$attr?"]("reproducible"))&&ue["$<<"](""+u.$attr("last-update-label")+" "+u.$attr("docdatetime")),ue["$<<"]("</div>"),ue["$<<"]("</div>")),R(kt)&&(R(kt["$docinfo?"]("head"))?ue["$[]="](Et,kt.$docinfo("head",u,ye(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:F,linkcss:H,self_closing_tag_slash:S}))):ue.$delete_at(Et),R(kt["$docinfo?"]("footer"))&&ue["$<<"](kt.$docinfo("footer",u,ye(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:F,linkcss:H,self_closing_tag_slash:S})))),R(u["$attr?"]("stem"))&&(Pt=u.$attr("eqnums","none"),R(Pt["$empty?"]())&&(Pt="AMS"),Yt=' equationNumbers: { autoNumber: "'+Pt+'" } ',ue["$<<"](`<script type="text/x-mathjax-config">
492
+ MathJax.Hub.Config({
493
+ messageStyle: "none",
494
+ tex2jax: {
495
+ inlineMath: [`+pe("INLINE_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+`],
496
+ displayMath: [`+pe("BLOCK_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+`],
497
+ ignoreClass: "nostem|nolatexmath"
498
+ },
499
+ asciimath2jax: {
500
+ delimiters: [`+pe("BLOCK_MATH_DELIMITERS")["$[]"]("asciimath").$inspect()+`],
501
+ ignoreClass: "nostem|noasciimath"
502
+ },
503
+ TeX: {`+Yt+`}
504
+ })
505
+ MathJax.Hub.Register.StartupHook("AsciiMath Jax Ready", function () {
506
+ MathJax.InputJax.AsciiMath.postfilterHooks.Add(function (data, node) {
507
+ if ((node = data.script.parentNode) && (node = node.parentNode) && node.classList.contains("stemblock")) {
508
+ data.math.root.display = "block"
509
+ }
510
+ return data
511
+ })
512
+ })
513
+ <\/script>
514
+ <script src="`+F+"/mathjax/"+pe("MATHJAX_VERSION")+'/MathJax.js?config=TeX-MML-AM_HTMLorMML"><\/script>')),R((xt=u.$docinfo("footer"))["$empty?"]())||ue["$<<"](xt),ue["$<<"]("</body>"),ue["$<<"]("</html>"),ue.$join(pe("LF"))}),Ue(ae,"$convert_embedded",function(u){var _=this,z=L,S=L,b=L;return z=[],X(u.$doctype(),"manpage")?(R(u.$notitle())||(S=R(u.$id())?' id="'+u.$id()+'"':"",z["$<<"]("<h1"+S+">"+u.$doctitle()+" Manual Page</h1>")),R(u["$attr?"]("manpurpose"))&&z["$<<"](_.$generate_manname_section(u))):R(u["$header?"]())&&Le(u.$notitle())&&(S=R(u.$id())?' id="'+u.$id()+'"':"",z["$<<"]("<h1"+S+">"+u.$header().$title()+"</h1>")),R(u["$sections?"]())&&R(u["$attr?"]("toc"))&&Pe(b=u.$attr("toc-placement"),"macro")&&Pe(b,"preamble")&&z["$<<"](`<div id="toc" class="toc">
515
+ <div id="toctitle">`+u.$attr("toc-title")+`</div>
516
+ `+u.$converter().$convert(u,"outline")+`
517
+ </div>`),z["$<<"](u.$content()),R(u["$footnotes?"]())&&Le(u["$attr?"]("nofootnotes"))&&(z["$<<"](`<div id="footnotes">
518
+ <hr`+_.void_element_slash+">"),et(u.$footnotes(),"each",[],function(H){return H==null&&(H=L),z["$<<"]('<div class="footnote" id="_footnotedef_'+H.$index()+`">
519
+ <a href="#_footnoteref_`+H.$index()+'">'+H.$index()+"</a>. "+H.$text()+`
520
+ </div>`)}),z["$<<"]("</div>")),z.$join(pe("LF"))}),Ue(ae,"$convert_outline",function(u,_){var z=this,S=L,b=L,F=L,H=L,_e=L,ue=L;return _==null&&(_=ye([],{})),R(u["$sections?"]())?(S=R(b=_["$[]"]("sectnumlevels"))?b:(R(F=u.$document().$attributes()["$[]"]("sectnumlevels"))?F:3).$to_i(),H=R(b=_["$[]"]("toclevels"))?b:(R(F=u.$document().$attributes()["$[]"]("toclevels"))?F:2).$to_i(),_e=u.$sections(),ue=['<ul class="sectlevel'+_e["$[]"](0).$level()+'">'],et(_e,"each",[],function Se(Be){var Xe=Se.$$s==null?this:Se.$$s,it=L,pt=L,at=L,bt=L;if(Be==null&&(Be=L),it=Be.$level(),R(Be.$caption()))pt=Be.$captioned_title();else if(R(Be.$numbered())&&R(ht(it,S)))if(R(Ve(it,2))&&X(u.$document().$doctype(),"book"))switch(Be.$sectname()){case"chapter":pt=(R(at=u.$document().$attributes()["$[]"]("chapter-signifier"))?""+at+" ":"")+Be.$sectnum()+" "+Be.$title();break;case"part":pt=(R(at=u.$document().$attributes()["$[]"]("part-signifier"))?""+at+" ":"")+Be.$sectnum(L,":")+" "+Be.$title();break;default:pt=""+Be.$sectnum()+" "+Be.$title()}else pt=""+Be.$sectnum()+" "+Be.$title();else pt=Be.$title();return R(pt["$include?"]("<a"))&&(pt=pt.$gsub(pe("DropAnchorRx"),"")),R(Ve(it,H))&&R(bt=Xe.$convert_outline(Be,ye(["toclevels","sectnumlevels"],{toclevels:H,sectnumlevels:S})))?(ue["$<<"]('<li><a href="#'+Be.$id()+'">'+pt+"</a>"),ue["$<<"](bt),ue["$<<"]("</li>")):ue["$<<"]('<li><a href="#'+Be.$id()+'">'+pt+"</a></li>")},{$$s:z}),ue["$<<"]("</ul>"),ue.$join(pe("LF"))):L},-2),Ue(ae,"$convert_section",function(u){var _=L,z=L,S=L,b=L,F=L,H=L,_e=L,ue=L;if(_=u.$document().$attributes(),z=u.$level(),R(u.$caption()))S=u.$captioned_title();else if(R(u.$numbered())&&R(ht(z,(R(b=_["$[]"]("sectnumlevels"))?b:3).$to_i())))if(R(Ve(z,2))&&X(u.$document().$doctype(),"book"))switch(u.$sectname()){case"chapter":S=(R(F=_["$[]"]("chapter-signifier"))?""+F+" ":"")+u.$sectnum()+" "+u.$title();break;case"part":S=(R(F=_["$[]"]("part-signifier"))?""+F+" ":"")+u.$sectnum(L,":")+" "+u.$title();break;default:S=""+u.$sectnum()+" "+u.$title()}else S=""+u.$sectnum()+" "+u.$title();else S=u.$title();return R(u.$id())?(H=' id="'+(_e=u.$id())+'"',R(_["$[]"]("sectlinks"))&&(S='<a class="link" href="#'+_e+'">'+S+"</a>"),R(_["$[]"]("sectanchors"))&&(X(_["$[]"]("sectanchors"),"after")?S=""+S+'<a class="anchor" href="#'+_e+'"></a>':S='<a class="anchor" href="#'+_e+'"></a>'+S)):H="",X(z,0)?"<h1"+H+' class="sect0'+(R(ue=u.$role())?" "+ue:"")+'">'+S+`</h1>
521
+ `+u.$content():'<div class="sect'+z+(R(ue=u.$role())?" "+ue:"")+`">
522
+ <h`+Ke(z,1)+H+">"+S+"</h"+Ke(z,1)+`>
523
+ `+(X(z,1)?`<div class="sectionbody">
524
+ `+u.$content()+`
525
+ </div>`:u.$content())+`
526
+ </div>`}),Ue(ae,"$convert_admonition",function(u){var _=this,z=L,S=L,b=L,F=L,H=L;return z=R(u.$id())?' id="'+u.$id()+'"':"",S=u.$attr("name"),b=R(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
527
+ `:"",R(u.$document()["$attr?"]("icons"))?R(u.$document()["$attr?"]("icons","font"))&&Le(u["$attr?"]("icon"))?F='<i class="fa icon-'+S+'" title="'+u.$attr("textlabel")+'"></i>':F='<img src="'+u.$icon_uri(S)+'" alt="'+u.$attr("textlabel")+'"'+_.void_element_slash+">":F='<div class="title">'+u.$attr("textlabel")+"</div>","<div"+z+' class="admonitionblock '+S+(R(H=u.$role())?" "+H:"")+`">
528
+ <table>
529
+ <tr>
530
+ <td class="icon">
531
+ `+F+`
532
+ </td>
533
+ <td class="content">
534
+ `+b+u.$content()+`
535
+ </td>
536
+ </tr>
537
+ </table>
538
+ </div>`}),Ue(ae,"$convert_audio",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,_e=L,ue=L,Se=L,Be=L;return z=_.xml_mode,S=R(u.$id())?' id="'+u.$id()+'"':"",b=["audioblock",u.$role()].$compact(),F=' class="'+b.$join(" ")+'"',H=R(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
539
+ `:"",_e=u.$attr("start"),ue=u.$attr("end"),Se=R(_e)||R(ue)?"#t="+(R(Be=_e)?Be:"")+(R(ue)?","+ue:""):"","<div"+S+F+`>
540
+ `+H+`<div class="content">
541
+ <audio src="`+u.$media_uri(u.$attr("target"))+Se+'"'+(R(u["$option?"]("autoplay"))?_.$append_boolean_attribute("autoplay",z):"")+(R(u["$option?"]("nocontrols"))?"":_.$append_boolean_attribute("controls",z))+(R(u["$option?"]("loop"))?_.$append_boolean_attribute("loop",z):"")+`>
542
+ Your browser does not support the audio tag.
543
+ </audio>
544
+ </div>
545
+ </div>`}),Ue(ae,"$convert_colist",function(u){var _,z=this,S=L,b=L,F=L,H=L,_e=L,ue=L;return S=[],b=R(u.$id())?' id="'+u.$id()+'"':"",F=["colist",u.$style(),u.$role()].$compact(),H=' class="'+F.$join(" ")+'"',S["$<<"]("<div"+b+H+">"),R(u["$title?"]())&&S["$<<"]('<div class="title">'+u.$title()+"</div>"),R(u.$document()["$attr?"]("icons"))?(S["$<<"]("<table>"),_=[u.$document()["$attr?"]("icons","font"),0],_e=_[0],ue=_[1],et(u.$items(),"each",[],function Se(Be){var Xe=Se.$$s==null?this:Se.$$s,it=L;return Xe.void_element_slash==null&&(Xe.void_element_slash=L),Be==null&&(Be=L),ue=Ke(ue,1),R(_e)?it='<i class="conum" data-value="'+ue+'"></i><b>'+ue+"</b>":it='<img src="'+u.$icon_uri("callouts/"+ue)+'" alt="'+ue+'"'+Xe.void_element_slash+">",S["$<<"](`<tr>
546
+ <td>`+it+`</td>
547
+ <td>`+Be.$text()+(R(Be["$blocks?"]())?Ke(pe("LF"),Be.$content()):"")+`</td>
548
+ </tr>`)},{$$s:z}),S["$<<"]("</table>")):(S["$<<"]("<ol>"),et(u.$items(),"each",[],function(Be){return Be==null&&(Be=L),S["$<<"](`<li>
549
+ <p>`+Be.$text()+"</p>"+(R(Be["$blocks?"]())?Ke(pe("LF"),Be.$content()):"")+`
550
+ </li>`)}),S["$<<"]("</ol>")),S["$<<"]("</div>"),S.$join(pe("LF"))}),Ue(ae,"$convert_dlist",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,_e=L,ue=L;switch(z=[],S=R(u.$id())?' id="'+u.$id()+'"':"",u.$style()){case"qanda":b=["qlist","qanda",u.$role()];break;case"horizontal":b=["hdlist",u.$role()];break;default:b=["dlist",u.$style(),u.$role()]}switch(F=' class="'+b.$compact().$join(" ")+'"',z["$<<"]("<div"+S+F+">"),R(u["$title?"]())&&z["$<<"]('<div class="title">'+u.$title()+"</div>"),u.$style()){case"qanda":z["$<<"]("<ol>"),et(u.$items(),"each",[],function(Be,Xe){return Be==null&&(Be=L),Xe==null&&(Xe=L),z["$<<"]("<li>"),et(Be,"each",[],function(pt){return pt==null&&(pt=L),z["$<<"]("<p><em>"+pt.$text()+"</em></p>")}),R(Xe)&&(R(Xe["$text?"]())&&z["$<<"]("<p>"+Xe.$text()+"</p>"),R(Xe["$blocks?"]())&&z["$<<"](Xe.$content())),z["$<<"]("</li>")}),z["$<<"]("</ol>");break;case"horizontal":H=_.void_element_slash,z["$<<"]("<table>"),(R(u["$attr?"]("labelwidth"))||R(u["$attr?"]("itemwidth")))&&(z["$<<"]("<colgroup>"),_e=R(u["$attr?"]("labelwidth"))?' style="width: '+u.$attr("labelwidth").$chomp("%")+'%;"':"",z["$<<"]("<col"+_e+H+">"),_e=R(u["$attr?"]("itemwidth"))?' style="width: '+u.$attr("itemwidth").$chomp("%")+'%;"':"",z["$<<"]("<col"+_e+H+">"),z["$<<"]("</colgroup>")),et(u.$items(),"each",[],function(Be,Xe){var it=L;return Be==null&&(Be=L),Xe==null&&(Xe=L),z["$<<"]("<tr>"),z["$<<"]('<td class="hdlist1'+(R(u["$option?"]("strong"))?" strong":"")+'">'),it=!0,et(Be,"each",[],function(at){return at==null&&(at=L),R(it)||z["$<<"]("<br"+H+">"),z["$<<"](at.$text()),it=L}),z["$<<"]("</td>"),z["$<<"]('<td class="hdlist2">'),R(Xe)&&(R(Xe["$text?"]())&&z["$<<"]("<p>"+Xe.$text()+"</p>"),R(Xe["$blocks?"]())&&z["$<<"](Xe.$content())),z["$<<"]("</td>"),z["$<<"]("</tr>")}),z["$<<"]("</table>");break;default:z["$<<"]("<dl>"),ue=R(u.$style())?"":' class="hdlist1"',et(u.$items(),"each",[],function(Be,Xe){return Be==null&&(Be=L),Xe==null&&(Xe=L),et(Be,"each",[],function(pt){return pt==null&&(pt=L),z["$<<"]("<dt"+ue+">"+pt.$text()+"</dt>")}),R(Xe)?(z["$<<"]("<dd>"),R(Xe["$text?"]())&&z["$<<"]("<p>"+Xe.$text()+"</p>"),R(Xe["$blocks?"]())&&z["$<<"](Xe.$content()),z["$<<"]("</dd>")):L}),z["$<<"]("</dl>")}return z["$<<"]("</div>"),z.$join(pe("LF"))}),Ue(ae,"$convert_example",function(u){var _=L,z=L,S=L,b=L,F=L;return _=R(u.$id())?' id="'+u.$id()+'"':"",R(u["$option?"]("collapsible"))?(z=R(u.$role())?' class="'+u.$role()+'"':"",S=R(u["$title?"]())?'<summary class="title">'+u.$title()+"</summary>":'<summary class="title">Details</summary>',"<details"+_+z+(R(u["$option?"]("open"))?" open":"")+`>
551
+ `+S+`
552
+ <div class="content">
553
+ `+u.$content()+`
554
+ </div>
555
+ </details>`):(b=R(u["$title?"]())?'<div class="title">'+u.$captioned_title()+`</div>
556
+ `:"","<div"+_+' class="exampleblock'+(R(F=u.$role())?" "+F:"")+`">
557
+ `+b+`<div class="content">
558
+ `+u.$content()+`
559
+ </div>
560
+ </div>`)}),Ue(ae,"$convert_floating_title",function(u){var _=L,z=L,S=L;return _="h"+Ke(u.$level(),1),z=R(u.$id())?' id="'+u.$id()+'"':"",S=[u.$style(),u.$role()].$compact(),"<"+_+z+' class="'+S.$join(" ")+'">'+u.$title()+"</"+_+">"}),Ue(ae,"$convert_image",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,_e=L,ue=L,Se=L,Be=L,Xe=L;return z=u.$attr("target"),S=R(u["$attr?"]("width"))?' width="'+u.$attr("width")+'"':"",b=R(u["$attr?"]("height"))?' height="'+u.$attr("height")+'"':"",(R(u["$attr?"]("format","svg"))||R(z["$include?"](".svg")))&&R(Ve(u.$document().$safe(),He(pe("SafeMode"),"SECURE")))?R(u["$option?"]("inline"))?F=R(H=_.$read_svg_contents(u,z))?H:'<span class="alt">'+u.$alt()+"</span>":R(u["$option?"]("interactive"))?(_e=R(u["$attr?"]("fallback"))?'<img src="'+u.$image_uri(u.$attr("fallback"))+'" alt="'+_.$encode_attribute_value(u.$alt())+'"'+S+b+_.void_element_slash+">":'<span class="alt">'+u.$alt()+"</span>",F='<object type="image/svg+xml" data="'+u.$image_uri(z)+'"'+S+b+">"+_e+"</object>"):F='<img src="'+u.$image_uri(z)+'" alt="'+_.$encode_attribute_value(u.$alt())+'"'+S+b+_.void_element_slash+">":F='<img src="'+u.$image_uri(z)+'" alt="'+_.$encode_attribute_value(u.$alt())+'"'+S+b+_.void_element_slash+">",R(u["$attr?"]("link"))&&(F='<a class="image" href="'+u.$attr("link")+'"'+_.$append_link_constraint_attrs(u).$join()+">"+F+"</a>"),ue=R(u.$id())?' id="'+u.$id()+'"':"",Se=["imageblock"],R(u["$attr?"]("float"))&&Se["$<<"](u.$attr("float")),R(u["$attr?"]("align"))&&Se["$<<"]("text-"+u.$attr("align")),R(u.$role())&&Se["$<<"](u.$role()),Be=' class="'+Se.$join(" ")+'"',Xe=R(u["$title?"]())?`
561
+ <div class="title">`+u.$captioned_title()+"</div>":"","<div"+ue+Be+`>
562
+ <div class="content">
563
+ `+F+`
564
+ </div>`+Xe+`
565
+ </div>`}),Ue(ae,"$convert_listing",function(u){var _=L,z=L,S=L,b=L,F=L,H=L,_e=L,ue=L,Se=L,Be=L,Xe=L;return _=R(z=u["$option?"]("nowrap"))?z:u.$document()["$attr?"]("prewrap")["$!"](),X(u.$style(),"source")?(S=u.$attr("language"),R(b=u.$document().$syntax_highlighter())?(F=R(b["$highlight?"]())?ye(["css_mode","style"],{css_mode:(R(z=(H=u.$document().$attributes())["$[]"](""+b.$name()+"-css"))?z:"class").$to_sym(),style:H["$[]"](""+b.$name()+"-style")}):ye([],{}),F["$[]="]("nowrap",_)):(_e='<pre class="highlight'+(R(_)?" nowrap":"")+'"><code'+(R(S)?' class="language-'+S+'" data-lang="'+S+'"':"")+">",ue="</code></pre>")):(_e="<pre"+(R(_)?' class="nowrap"':"")+">",ue="</pre>"),Se=R(u.$id())?' id="'+u.$id()+'"':"",Be=R(u["$title?"]())?'<div class="title">'+u.$captioned_title()+`</div>
566
+ `:"","<div"+Se+' class="listingblock'+(R(Xe=u.$role())?" "+Xe:"")+`">
567
+ `+Be+`<div class="content">
568
+ `+(R(b)?b.$format(u,S,F):Ke(Ke(_e,u.$content()),ue))+`
569
+ </div>
570
+ </div>`}),Ue(ae,"$convert_literal",function(u){var _=L,z=L,S=L,b=L,F=L;return _=R(u.$id())?' id="'+u.$id()+'"':"",z=R(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
571
+ `:"",S=R(b=u.$document()["$attr?"]("prewrap")["$!"]())?b:u["$option?"]("nowrap"),"<div"+_+' class="literalblock'+(R(F=u.$role())?" "+F:"")+`">
572
+ `+z+`<div class="content">
573
+ <pre`+(R(S)?' class="nowrap"':"")+">"+u.$content()+`</pre>
574
+ </div>
575
+ </div>`}),Ue(ae,"$convert_stem",function(u){var _,z,S=this,b=L,F=L,H=L,_e=L,ue=L,Se=L,Be=L,Xe=L;return b=R(u.$id())?' id="'+u.$id()+'"':"",F=R(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
576
+ `:"",z=pe("BLOCK_MATH_DELIMITERS")["$[]"](H=u.$style().$to_sym()),_=st(z),_e=_[0]==null?L:_[0],ue=_[1]==null?L:_[1],R(Se=u.$content())?(X(H,"asciimath")&&R(Se["$include?"](pe("LF")))&&(Be=""+pe("LF")+"<br"+S.void_element_slash+">",Se=et(Se,"gsub",[pe("StemBreakRx")],function(){var pt;return""+ue+Ye(Be,Je(((pt=dt["~"])===L?L:pt["$[]"](0)).$count(pe("LF")),1))+pe("LF")+_e})),R(Se["$start_with?"](_e))&&R(Se["$end_with?"](ue))||(Se=""+_e+Se+ue)):Se="","<div"+b+' class="stemblock'+(R(Xe=u.$role())?" "+Xe:"")+`">
577
+ `+F+`<div class="content">
578
+ `+Se+`
579
+ </div>
580
+ </div>`}),Ue(ae,"$convert_olist",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,_e=L,ue=L,Se=L;return z=[],S=R(u.$id())?' id="'+u.$id()+'"':"",b=["olist",u.$style(),u.$role()].$compact(),F=' class="'+b.$join(" ")+'"',z["$<<"]("<div"+S+F+">"),R(u["$title?"]())&&z["$<<"]('<div class="title">'+u.$title()+"</div>"),H=R(_e=u.$list_marker_keyword())?' type="'+_e+'"':"",ue=R(u["$attr?"]("start"))?' start="'+u.$attr("start")+'"':"",Se=R(u["$option?"]("reversed"))?_.$append_boolean_attribute("reversed",_.xml_mode):"",z["$<<"]('<ol class="'+u.$style()+'"'+H+ue+Se+">"),et(u.$items(),"each",[],function(Xe){return Xe==null&&(Xe=L),R(Xe.$id())?z["$<<"]('<li id="'+Xe.$id()+'"'+(R(Xe.$role())?' class="'+Xe.$role()+'"':"")+">"):R(Xe.$role())?z["$<<"]('<li class="'+Xe.$role()+'">'):z["$<<"]("<li>"),z["$<<"]("<p>"+Xe.$text()+"</p>"),R(Xe["$blocks?"]())&&z["$<<"](Xe.$content()),z["$<<"]("</li>")}),z["$<<"]("</ol>"),z["$<<"]("</div>"),z.$join(pe("LF"))}),Ue(ae,"$convert_open",function(u){var _=this,z=L,S=L,b=L,F=L;return X(z=u.$style(),"abstract")?X(u.$parent(),u.$document())&&X(u.$document().$doctype(),"book")?(_.$logger().$warn("abstract block cannot be used in a document without a title when doctype is book. Excluding block content."),""):(S=R(u.$id())?' id="'+u.$id()+'"':"",b=R(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
581
+ `:"","<div"+S+' class="quoteblock abstract'+(R(F=u.$role())?" "+F:"")+`">
582
+ `+b+`<blockquote>
583
+ `+u.$content()+`
584
+ </blockquote>
585
+ </div>`):X(z,"partintro")&&(R(Ne(u.$level(),0))||Pe(u.$parent().$context(),"section")||Pe(u.$document().$doctype(),"book"))?(_.$logger().$error("partintro block can only be used when doctype is book and must be a child of a book part. Excluding block content."),""):(S=R(u.$id())?' id="'+u.$id()+'"':"",b=R(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
586
+ `:"","<div"+S+' class="openblock'+(R(z)&&Pe(z,"open")?" "+z:"")+(R(F=u.$role())?" "+F:"")+`">
587
+ `+b+`<div class="content">
588
+ `+u.$content()+`
589
+ </div>
590
+ </div>`)}),Ue(ae,"$convert_page_break",I('<div style="page-break-after: always;"></div>')),Ue(ae,"$convert_paragraph",function(u){var _=L;return R(u.$role())?_=(R(u.$id())?' id="'+u.$id()+'"':"")+' class="paragraph '+u.$role()+'"':R(u.$id())?_=' id="'+u.$id()+'" class="paragraph"':_=' class="paragraph"',R(u["$title?"]())?"<div"+_+`>
591
+ <div class="title">`+u.$title()+`</div>
592
+ <p>`+u.$content()+`</p>
593
+ </div>`:"<div"+_+`>
594
+ <p>`+u.$content()+`</p>
595
+ </div>`}),tt(ae,"convert_pass","content_only"),Ue(ae,"$convert_preamble",function(u){var _=L,z=L;return R((_=u.$document())["$attr?"]("toc-placement","preamble"))&&R(_["$sections?"]())&&R(_["$attr?"]("toc"))?z=`
596
+ <div id="toc" class="`+_.$attr("toc-class","toc")+`">
597
+ <div id="toctitle">`+_.$attr("toc-title")+`</div>
598
+ `+_.$converter().$convert(_,"outline")+`
599
+ </div>`:z="",`<div id="preamble">
600
+ <div class="sectionbody">
601
+ `+u.$content()+`
602
+ </div>`+z+`
603
+ </div>`}),Ue(ae,"$convert_quote",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,_e=L,ue=L,Se=L,Be=L;return z=R(u.$id())?' id="'+u.$id()+'"':"",S=["quoteblock",u.$role()].$compact(),b=' class="'+S.$join(" ")+'"',F=R(u["$title?"]())?`
604
+ <div class="title">`+u.$title()+"</div>":"",H=R(u["$attr?"]("attribution"))?u.$attr("attribution"):L,_e=R(u["$attr?"]("citetitle"))?u.$attr("citetitle"):L,R(H)||R(_e)?(ue=R(_e)?"<cite>"+_e+"</cite>":"",Se=R(H)?"&#8212; "+H+(R(_e)?"<br"+_.void_element_slash+`>
605
+ `:""):"",Be=`
606
+ <div class="attribution">
607
+ `+Se+ue+`
608
+ </div>`):Be="","<div"+z+b+">"+F+`
609
+ <blockquote>
610
+ `+u.$content()+`
611
+ </blockquote>`+Be+`
612
+ </div>`}),Ue(ae,"$convert_thematic_break",function(u){var _=this;return"<hr"+_.void_element_slash+">"}),Ue(ae,"$convert_sidebar",function(u){var _=L,z=L,S=L;return _=R(u.$id())?' id="'+u.$id()+'"':"",z=R(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
613
+ `:"","<div"+_+' class="sidebarblock'+(R(S=u.$role())?" "+S:"")+`">
614
+ <div class="content">
615
+ `+z+u.$content()+`
616
+ </div>
617
+ </div>`}),Ue(ae,"$convert_table",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,_e=L,ue=L,Se=L,Be=L,Xe=L,it=L;return z=[],S=R(u.$id())?' id="'+u.$id()+'"':"",X(b=u.$attr("frame","all","table-frame"),"topbot")&&(b="ends"),F=["tableblock","frame-"+b,"grid-"+u.$attr("grid","all","table-grid")],R(H=u.$attr("stripes",L,"table-stripes"))&&F["$<<"]("stripes-"+H),_e="",R(ue=u["$option?"]("autowidth"))&&Le(u["$attr?"]("width"))?F["$<<"]("fit-content"):X(Se=u.$attr("tablepcwidth"),100)?F["$<<"]("stretch"):_e=' style="width: '+Se+'%;"',R(u["$attr?"]("float"))&&F["$<<"](u.$attr("float")),R(Be=u.$role())&&F["$<<"](Be),Xe=' class="'+F.$join(" ")+'"',z["$<<"]("<table"+S+Xe+_e+">"),R(u["$title?"]())&&z["$<<"]('<caption class="title">'+u.$captioned_title()+"</caption>"),R(Ne(u.$attr("rowcount"),0))&&(it=_.void_element_slash,z["$<<"]("<colgroup>"),R(ue)?z=Ke(z,pe("Array").$new(u.$columns().$size(),"<col"+it+">")):et(u.$columns(),"each",[],function(at){return at==null&&(at=L),z["$<<"](R(at["$option?"]("autowidth"))?"<col"+it+">":'<col style="width: '+at.$attr("colpcwidth")+'%;"'+it+">")}),z["$<<"]("</colgroup>"),et(u.$rows().$to_h(),"each",[],function(at,bt){return at==null&&(at=L),bt==null&&(bt=L),R(bt["$empty?"]())?L:(z["$<<"]("<t"+at+">"),et(bt,"each",[],function(Et){return Et==null&&(Et=L),z["$<<"]("<tr>"),et(Et,"each",[],function(Nt){var Tt=L,Vt=L,jt=L,er=L,Kt=L,Pt=L;if(Nt==null&&(Nt=L),X(at,"head"))Tt=Nt.$text();else switch(Nt.$style()){case"asciidoc":Tt='<div class="content">'+Nt.$content()+"</div>";break;case"literal":Tt='<div class="literal"><pre>'+Nt.$text()+"</pre></div>";break;default:Tt=R((Tt=Nt.$content())["$empty?"]())?"":'<p class="tableblock">'+Tt.$join(`</p>
618
+ <p class="tableblock">`)+"</p>"}return Vt=X(at,"head")||X(Nt.$style(),"header")?"th":"td",jt=' class="tableblock halign-'+Nt.$attr("halign")+" valign-"+Nt.$attr("valign")+'"',er=R(Nt.$colspan())?' colspan="'+Nt.$colspan()+'"':"",Kt=R(Nt.$rowspan())?' rowspan="'+Nt.$rowspan()+'"':"",Pt=R(u.$document()["$attr?"]("cellbgcolor"))?' style="background-color: '+u.$document().$attr("cellbgcolor")+';"':"",z["$<<"]("<"+Vt+jt+er+Kt+Pt+">"+Tt+"</"+Vt+">")}),z["$<<"]("</tr>")}),z["$<<"]("</t"+at+">"))})),z["$<<"]("</table>"),z.$join(pe("LF"))}),Ue(ae,"$convert_toc",function(u){var _=L,z=L,S=L,b=L,F=L,H=L;return R((_=u.$document())["$attr?"]("toc-placement","macro"))&&R(_["$sections?"]())&&R(_["$attr?"]("toc"))?(R(u.$id())?(z=' id="'+u.$id()+'"',S=' id="'+u.$id()+'title"'):(z=' id="toc"',S=' id="toctitle"'),b=R(u["$title?"]())?u.$title():_.$attr("toc-title"),F=R(u["$attr?"]("levels"))?u.$attr("levels").$to_i():L,H=R(u["$role?"]())?u.$role():_.$attr("toc-class","toc"),"<div"+z+' class="'+H+`">
619
+ <div`+S+' class="title">'+b+`</div>
620
+ `+_.$converter().$convert(_,"outline",ye(["toclevels"],{toclevels:F}))+`
621
+ </div>`):"<!-- toc disabled -->"}),Ue(ae,"$convert_ulist",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,_e=L,ue=L;return z=[],S=R(u.$id())?' id="'+u.$id()+'"':"",b=["ulist",u.$style(),u.$role()].$compact(),F=H="",R(_e=u["$option?"]("checklist"))?(b.$unshift(b.$shift(),"checklist"),ue=' class="checklist"',R(u["$option?"]("interactive"))?R(_.xml_mode)?(F='<input type="checkbox" data-item-complete="1" checked="checked"/> ',H='<input type="checkbox" data-item-complete="0"/> '):(F='<input type="checkbox" data-item-complete="1" checked> ',H='<input type="checkbox" data-item-complete="0"> '):R(u.$document()["$attr?"]("icons","font"))?(F='<i class="fa fa-check-square-o"></i> ',H='<i class="fa fa-square-o"></i> '):(F="&#10003; ",H="&#10063; ")):ue=R(u.$style())?' class="'+u.$style()+'"':"",z["$<<"]("<div"+S+' class="'+b.$join(" ")+'">'),R(u["$title?"]())&&z["$<<"]('<div class="title">'+u.$title()+"</div>"),z["$<<"]("<ul"+ue+">"),et(u.$items(),"each",[],function(Be){return Be==null&&(Be=L),R(Be.$id())?z["$<<"]('<li id="'+Be.$id()+'"'+(R(Be.$role())?' class="'+Be.$role()+'"':"")+">"):R(Be.$role())?z["$<<"]('<li class="'+Be.$role()+'">'):z["$<<"]("<li>"),R(_e)&&R(Be["$attr?"]("checkbox"))?z["$<<"]("<p>"+(R(Be["$attr?"]("checked"))?F:H)+Be.$text()+"</p>"):z["$<<"]("<p>"+Be.$text()+"</p>"),R(Be["$blocks?"]())&&z["$<<"](Be.$content()),z["$<<"]("</li>")}),z["$<<"]("</ul>"),z["$<<"]("</div>"),z.$join(pe("LF"))}),Ue(ae,"$convert_verse",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,_e=L,ue=L,Se=L,Be=L;return z=R(u.$id())?' id="'+u.$id()+'"':"",S=["verseblock",u.$role()].$compact(),b=' class="'+S.$join(" ")+'"',F=R(u["$title?"]())?`
622
+ <div class="title">`+u.$title()+"</div>":"",H=R(u["$attr?"]("attribution"))?u.$attr("attribution"):L,_e=R(u["$attr?"]("citetitle"))?u.$attr("citetitle"):L,R(H)||R(_e)?(ue=R(_e)?"<cite>"+_e+"</cite>":"",Se=R(H)?"&#8212; "+H+(R(_e)?"<br"+_.void_element_slash+`>
623
+ `:""):"",Be=`
624
+ <div class="attribution">
625
+ `+Se+ue+`
626
+ </div>`):Be="","<div"+z+b+">"+F+`
627
+ <pre class="content">`+u.$content()+"</pre>"+Be+`
628
+ </div>`}),Ue(ae,"$convert_video",function(u){var _,z,S=this,b=L,F=L,H=L,_e=L,ue=L,Se=L,Be=L,Xe=L,it=L,pt=L,at=L,bt=L,kt=L,Et=L,xt=L,Nt=L,Tt=L,Vt=L,jt=L,er=L,Kt=L,Pt=L,Yt=L,Xt=L,nr=L,Xn=L,nn=L,Jt=L,Ut=L,Zt=L,Cr=L,Ht=L,Sr=L,mn=L,Tr=L,Er=L,xn=L;switch(b=S.xml_mode,F=R(u.$id())?' id="'+u.$id()+'"':"",H=["videoblock"],R(u["$attr?"]("float"))&&H["$<<"](u.$attr("float")),R(u["$attr?"]("align"))&&H["$<<"]("text-"+u.$attr("align")),R(u.$role())&&H["$<<"](u.$role()),_e=' class="'+H.$join(" ")+'"',ue=R(u["$title?"]())?`
629
+ <div class="title">`+u.$title()+"</div>":"",Se=R(u["$attr?"]("width"))?' width="'+u.$attr("width")+'"':"",Be=R(u["$attr?"]("height"))?' height="'+u.$attr("height")+'"':"",u.$attr("poster")){case"vimeo":return R((Xe=u.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(Xe=""+Xe+":"),it=R(u["$attr?"]("start"))?"#at="+u.$attr("start"):"",pt=["?"],z=u.$attr("target").$split("/",2),_=st(z),at=_[0]==null?L:_[0],bt=_[1]==null?L:_[1],kt=R(bt=R(Et=bt)?Et:u.$attr("hash"))?""+(R(Et=pt.$pop())?Et:"&amp;")+"h="+bt:"",xt=R(u["$option?"]("autoplay"))?""+(R(Et=pt.$pop())?Et:"&amp;")+"autoplay=1":"",Nt=R(u["$option?"]("loop"))?""+(R(Et=pt.$pop())?Et:"&amp;")+"loop=1":"",Tt=R(u["$option?"]("muted"))?""+(R(Et=pt.$pop())?Et:"&amp;")+"muted=1":"","<div"+F+_e+">"+ue+`
630
+ <div class="content">
631
+ <iframe`+Se+Be+' src="'+Xe+"//player.vimeo.com/video/"+at+kt+xt+Nt+Tt+it+'" frameborder="0"'+(R(u["$option?"]("nofullscreen"))?"":S.$append_boolean_attribute("allowfullscreen",b))+`></iframe>
632
+ </div>
633
+ </div>`;case"youtube":return R((Xe=u.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(Xe=""+Xe+":"),Vt=R(u["$option?"]("related"))?1:0,jt=R(u["$attr?"]("start"))?"&amp;start="+u.$attr("start"):"",er=R(u["$attr?"]("end"))?"&amp;end="+u.$attr("end"):"",xt=R(u["$option?"]("autoplay"))?"&amp;autoplay=1":"",Nt=R(Kt=u["$option?"]("loop"))?"&amp;loop=1":"",Pt=R(u["$option?"]("muted"))?"&amp;mute=1":"",Yt=R(u["$option?"]("nocontrols"))?"&amp;controls=0":"",R(u["$option?"]("nofullscreen"))?(Xt="&amp;fs=0",nr=""):(Xt="",nr=S.$append_boolean_attribute("allowfullscreen",b)),Xn=R(u["$option?"]("modest"))?"&amp;modestbranding=1":"",nn=R(u["$attr?"]("theme"))?"&amp;theme="+u.$attr("theme"):"",Jt=R(u["$attr?"]("lang"))?"&amp;hl="+u.$attr("lang"):"",z=u.$attr("target").$split("/",2),_=st(z),at=_[0]==null?L:_[0],Ut=_[1]==null?L:_[1],R(Ut=R(Et=Ut)?Et:u.$attr("list"))?Zt="&amp;list="+Ut:(z=at.$split(",",2),_=st(z),at=_[0]==null?L:_[0],Cr=_[1]==null?L:_[1],R(Cr=R(Et=Cr)?Et:u.$attr("playlist"))?Zt="&amp;playlist="+at+","+Cr:Zt=R(Kt)?"&amp;playlist="+at:""),"<div"+F+_e+">"+ue+`
634
+ <div class="content">
635
+ <iframe`+Se+Be+' src="'+Xe+"//www.youtube.com/embed/"+at+"?rel="+Vt+jt+er+xt+Nt+Pt+Yt+Zt+Xt+Xn+nn+Jt+'" frameborder="0"'+nr+`></iframe>
636
+ </div>
637
+ </div>`;default:return Ht=R((Sr=u.$attr("poster"))["$nil_or_empty?"]())?"":' poster="'+u.$media_uri(Sr)+'"',mn=R((Sr=u.$attr("preload"))["$nil_or_empty?"]())?"":' preload="'+Sr+'"',Tr=u.$attr("start"),Er=u.$attr("end"),xn=R(Tr)||R(Er)?"#t="+(R(Et=Tr)?Et:"")+(R(Er)?","+Er:""):"","<div"+F+_e+">"+ue+`
638
+ <div class="content">
639
+ <video src="`+u.$media_uri(u.$attr("target"))+xn+'"'+Se+Be+Ht+(R(u["$option?"]("autoplay"))?S.$append_boolean_attribute("autoplay",b):"")+(R(u["$option?"]("muted"))?S.$append_boolean_attribute("muted",b):"")+(R(u["$option?"]("nocontrols"))?"":S.$append_boolean_attribute("controls",b))+(R(u["$option?"]("loop"))?S.$append_boolean_attribute("loop",b):"")+mn+`>
640
+ Your browser does not support the video tag.
641
+ </video>
642
+ </div>
643
+ </div>`}}),Ue(ae,"$convert_inline_anchor",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,_e=L,ue=L,Se=L,Be=L;switch(u.$type()){case"xref":return R(z=u.$attributes()["$[]"]("path"))?(S=_.$append_link_constraint_attrs(u,R(u.$role())?[' class="'+u.$role()+'"']:[]).$join(),b=R(F=u.$text())?F:z):(S=R(u.$role())?' class="'+u.$role()+'"':"",R(b=u.$text())||(A(pe("AbstractNode"),H=R(F=(_.refs=R(_e=_.refs)?_e:u.$document().$catalog()["$[]"]("refs"))["$[]"](ue=u.$attributes()["$[]"]("refid")))?F:R(ue["$nil_or_empty?"]())?Se=_.$get_root_document(u):L)?R(_.resolving_xref=R(F=_.resolving_xref)?F:Be=!0)&&R(Be)?(R(b=H.$xreftext(u.$attr("xrefstyle",L,!0)))?R(b["$include?"]("<a"))&&(b=b.$gsub(pe("DropAnchorRx"),"")):b=R(Se)?"[^top]":"["+ue+"]",_.resolving_xref=L):b=R(Se)?"[^top]":"["+ue+"]":b="["+ue+"]")),'<a href="'+u.$target()+'"'+S+">"+b+"</a>";case"ref":return'<a id="'+u.$id()+'"></a>';case"link":return S=R(u.$id())?[' id="'+u.$id()+'"']:[],R(u.$role())&&S["$<<"](' class="'+u.$role()+'"'),R(u["$attr?"]("title"))&&S["$<<"](' title="'+u.$attr("title")+'"'),'<a href="'+u.$target()+'"'+_.$append_link_constraint_attrs(u,S).$join()+">"+u.$text()+"</a>";case"bibref":return'<a id="'+u.$id()+'"></a>['+(R(F=u.$reftext())?F:u.$id())+"]";default:return _.$logger().$warn("unknown anchor type: "+u.$type().$inspect()),L}}),Ue(ae,"$convert_inline_break",function(u){var _=this;return""+u.$text()+"<br"+_.void_element_slash+">"}),Ue(ae,"$convert_inline_button",function(u){return'<b class="button">'+u.$text()+"</b>"}),Ue(ae,"$convert_inline_callout",function(u){var _=this,z=L,S=L;return R(u.$document()["$attr?"]("icons","font"))?'<i class="conum" data-value="'+u.$text()+'"></i><b>('+u.$text()+")</b>":R(u.$document()["$attr?"]("icons"))?(z=u.$icon_uri("callouts/"+u.$text()),'<img src="'+z+'" alt="'+u.$text()+'"'+_.void_element_slash+">"):A(He("Array"),S=u.$attributes()["$[]"]("guard"))?'&lt;!--<b class="conum">('+u.$text()+")</b>--&gt;":""+S+'<b class="conum">('+u.$text()+")</b>"}),Ue(ae,"$convert_inline_footnote",function(u){var _=L,z=L;return R(_=u.$attr("index"))?X(u.$type(),"xref")?'<sup class="footnoteref">[<a class="footnote" href="#_footnotedef_'+_+'" title="View footnote.">'+_+"</a>]</sup>":(z=R(u.$id())?' id="_footnote_'+u.$id()+'"':"",'<sup class="footnote"'+z+'>[<a id="_footnoteref_'+_+'" class="footnote" href="#_footnotedef_'+_+'" title="View footnote.">'+_+"</a>]</sup>"):X(u.$type(),"xref")?'<sup class="footnoteref red" title="Unresolved footnote reference.">['+u.$text()+"]</sup>":L}),Ue(ae,"$convert_inline_image",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,_e=L,ue=L,Se=L,Be=L,Xe=L;return z=u.$target(),X(S=R(b=u.$type())?b:"image","icon")?X(F=u.$document().$attr("icons"),"font")?(H="fa fa-"+z,R(u["$attr?"]("size"))&&(H=""+H+" fa-"+u.$attr("size")),R(u["$attr?"]("flip"))?H=""+H+" fa-flip-"+u.$attr("flip"):R(u["$attr?"]("rotate"))&&(H=""+H+" fa-rotate-"+u.$attr("rotate")),_e=R(u["$attr?"]("title"))?' title="'+u.$attr("title")+'"':"",ue='<i class="'+H+'"'+_e+"></i>"):R(F)?(_e=R(u["$attr?"]("width"))?' width="'+u.$attr("width")+'"':"",R(u["$attr?"]("height"))&&(_e=""+_e+' height="'+u.$attr("height")+'"'),R(u["$attr?"]("title"))&&(_e=""+_e+' title="'+u.$attr("title")+'"'),ue='<img src="'+u.$icon_uri(z)+'" alt="'+_.$encode_attribute_value(u.$alt())+'"'+_e+_.void_element_slash+">"):ue="["+u.$alt()+"&#93;":(_e=R(u["$attr?"]("width"))?' width="'+u.$attr("width")+'"':"",R(u["$attr?"]("height"))&&(_e=""+_e+' height="'+u.$attr("height")+'"'),R(u["$attr?"]("title"))&&(_e=""+_e+' title="'+u.$attr("title")+'"'),(R(u["$attr?"]("format","svg"))||R(z["$include?"](".svg")))&&R(Ve(u.$document().$safe(),He(pe("SafeMode"),"SECURE")))?R(u["$option?"]("inline"))?ue=R(b=_.$read_svg_contents(u,z))?b:'<span class="alt">'+u.$alt()+"</span>":R(u["$option?"]("interactive"))?(Se=R(u["$attr?"]("fallback"))?'<img src="'+u.$image_uri(u.$attr("fallback"))+'" alt="'+_.$encode_attribute_value(u.$alt())+'"'+_e+_.void_element_slash+">":'<span class="alt">'+u.$alt()+"</span>",ue='<object type="image/svg+xml" data="'+u.$image_uri(z)+'"'+_e+">"+Se+"</object>"):ue='<img src="'+u.$image_uri(z)+'" alt="'+_.$encode_attribute_value(u.$alt())+'"'+_e+_.void_element_slash+">":ue='<img src="'+u.$image_uri(z)+'" alt="'+_.$encode_attribute_value(u.$alt())+'"'+_e+_.void_element_slash+">"),R(u["$attr?"]("link"))&&(ue='<a class="image" href="'+u.$attr("link")+'"'+_.$append_link_constraint_attrs(u).$join()+">"+ue+"</a>"),Be=S,R(Xe=u.$role())?Be=R(u["$attr?"]("float"))?""+Be+" "+u.$attr("float")+" "+Xe:""+Be+" "+Xe:R(u["$attr?"]("float"))&&(Be=""+Be+" "+u.$attr("float")),'<span class="'+Be+'">'+ue+"</span>"}),Ue(ae,"$convert_inline_indexterm",function(u){return X(u.$type(),"visible")?u.$text():""}),Ue(ae,"$convert_inline_kbd",function(u){var _=L;return X((_=u.$attr("keys")).$size(),1)?"<kbd>"+_["$[]"](0)+"</kbd>":'<span class="keyseq"><kbd>'+_.$join("</kbd>+<kbd>")+"</kbd></span>"}),Ue(ae,"$convert_inline_menu",function(u){var _=L,z=L,S=L,b=L,F=L;return _=R(u.$document()["$attr?"]("icons","font"))?'&#160;<i class="fa fa-angle-right caret"></i> ':'&#160;<b class="caret">&#8250;</b> ',z="</b>"+_+'<b class="submenu">',S=u.$attr("menu"),R((b=u.$attr("submenus"))["$empty?"]())?R(F=u.$attr("menuitem"))?'<span class="menuseq"><b class="menu">'+S+"</b>"+_+'<b class="menuitem">'+F+"</b></span>":'<b class="menuref">'+S+"</b>":'<span class="menuseq"><b class="menu">'+S+"</b>"+_+'<b class="submenu">'+b.$join(z)+"</b>"+_+'<b class="menuitem">'+u.$attr("menuitem")+"</b></span>"}),Ue(ae,"$convert_inline_quoted",function(u){var _,z,S=L,b=L,F=L,H=L;return z=pe("QUOTE_TAGS")["$[]"](u.$type()),_=st(z),S=_[0]==null?L:_[0],b=_[1]==null?L:_[1],F=_[2]==null?L:_[2],R(u.$id())?(H=R(u.$role())?' class="'+u.$role()+'"':"",R(F)?""+S.$chop()+' id="'+u.$id()+'"'+H+">"+u.$text()+b:'<span id="'+u.$id()+'"'+H+">"+S+u.$text()+b+"</span>"):R(u.$role())?R(F)?""+S.$chop()+' class="'+u.$role()+'">'+u.$text()+b:'<span class="'+u.$role()+'">'+S+u.$text()+b+"</span>":""+S+u.$text()+b}),Ue(ae,"$read_svg_contents",function(u,_){var z=L,S=L,b=L,F=L;if(R(z=u.$read_contents(_,ye(["start","normalize","label","warn_if_empty"],{start:u.$document().$attr("imagesdir"),normalize:!0,label:"SVG",warn_if_empty:!0})))){if(R(z["$empty?"]()))return L;R(z["$start_with?"]("<svg"))||(z=z.$sub(pe("SvgPreambleRx"),"")),S=b=F=L,et(["width","height"],"each",[],function(_e){var ue=L,Se=L;if(_e==null&&(_e=L),!R(u["$attr?"](_e)))return L;if(!R(b)){if(X(F=R(ue=F)?ue:R(Se=z.$match(pe("SvgStartTagRx")))?Se:"no_match","no_match"))return L;b=(S=F["$[]"](0)).$gsub(pe("DimensionAttributeRx"),"")}return b=""+b.$chop()+" "+_e+'="'+u.$attr(_e)+'">'}),R(b)&&(z=""+b+z["$[]"](a.Range.$new(S.$length(),-1,!1)))}return z}),ae.$private(),Ue(ae,"$append_boolean_attribute",function(u,_){return R(_)?" "+u+'="'+u+'"':" "+u}),Ue(ae,"$append_link_constraint_attrs",function(u,_){var z=L,S=L;return _==null&&(_=[]),R(u["$option?"]("nofollow"))&&(z="nofollow"),R(S=u.$attributes()["$[]"]("window"))?(_["$<<"](' target="'+S+'"'),(X(S,"_blank")||R(u["$option?"]("noopener")))&&_["$<<"](R(z)?' rel="'+z+' noopener"':' rel="noopener"')):R(z)&&_["$<<"](' rel="'+z+'"'),_},-2),Ue(ae,"$encode_attribute_value",function(u){return R(u["$include?"]('"'))?u.$gsub('"',"&quot;"):u}),Ue(ae,"$generate_manname_section",function(u){var _=L,z=L,S=L,b=L,F=L;return _=u.$attr("manname-title","Name"),R(S=u.$sections()["$[]"](0))&&X(z=S.$title(),z.$upcase())&&(_=_.$upcase()),b=R(F=u.$attr("manname-id"))?' id="'+F+'"':"","<h2"+b+">"+_+`</h2>
644
+ <div class="sectionbody">
645
+ <p>`+u.$attr("mannames").$join(", ")+" - "+u.$attr("manpurpose")+`</p>
646
+ </div>`}),Ue(ae,"$get_root_document",function(u){for(;R((u=u.$document())["$nested?"]());)u=u.$parent_document();return u}),Ue(ae,"$method_missing",function g(u,_){var z,S,b=g.$$p||L,F=this,H=L;return g.$$p=null,z=rt(arguments,1),S=z,Le((H=u.$to_s())["$start_with?"]("convert_"))&&R(F["$handles?"](H))?et(F,"send",["convert_"+H].concat(lt(S))):Z(F,qe(F,"method_missing",g,!1,!0),"method_missing",[u].concat(lt(S)),b)},-2),Ue(ae,"$respond_to_missing?",function(u,_){var z=this,S=L,b=L;return rt(arguments,1),R(S=(b=u.$to_s())["$start_with?"]("convert_")["$!"]())?z["$handles?"](b):S},-2)}(xe("Converter"),He(xe("Converter"),"Base"),ce)}(J[0],J)},Opal.modules["asciidoctor/extensions"]=function(a){var oe=a.module,se=a.klass,K=a.truthy,ye=a.hash2,y=a.def,X=a.send,Ue=a.alias,Z=a.slice,qe=a.rb_plus,R=a.eqeq,et=a.rb_gt,Ne=a.not,Ke=a.eqeqeq,Le=a.to_a,Pe=a.to_ary,ht=a.const_set,Ve=a.return_val,st=a.send2,Ye=a.find_super,Je=a.NilClass,dt=a.class_variable_set,I=a.class_variable_get,tt=a.regexp,A=a.Class,rt=a.return_ivar,lt=a.rb_lt,J=a.rb_minus,L=a.hash,He=[],ke=a.nil,Ie=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(Re,ce){var xe=oe(Re,"Asciidoctor"),ee=[xe].concat(ce);return function(P,M){var ae=oe(P,"Extensions"),ie=[ae].concat(M),pe=a.$r(ie);return function(Y,g,u){var _=se(Y,g,"Processor"),z=[_].concat(u),S=a.$r(z),b=_.$$prototype;return b.config=ke,function(F,H){return y(F,"$config",function(){var ue=this,Se=ke;return ue.config==null&&(ue.config=ke),ue.config=K(Se=ue.config)?Se:ye([],{})}),y(F,"$option",function(ue,Se){var Be,Xe=this;return Be=[ue,Se],X(Xe.$config(),"[]=",Be),Be[Be.length-1]}),y(F,"$enable_dsl",function(){var ue=this;return K(ue["$const_defined?"]("DSL"))?K(ue["$singleton_class?"]())?ue.$include(ue.$const_get("DSL")):ue.$extend(ue.$const_get("DSL")):ke}),Ue(F,"use_dsl","enable_dsl")}(a.get_singleton_class(_)),_.$attr_reader("config"),y(_,"$initialize",function(H){var _e=this;return H==null&&(H=ye([],{})),_e.config=_e.$class().$config().$merge(H)},-1),y(_,"$update_config",function(H){var _e=this;return _e.config.$update(H)}),y(_,"$process",function(H){var _e=this;return Z(arguments),_e.$raise(Ie("NotImplementedError"),""+S("Processor")+" subclass "+_e.$class()+" must implement the #process method")},-1),y(_,"$create_section",function(H,_e,ue,Se){var Be,Xe,it=ke,pt=ke,at=ke,bt=ke,kt=ke,Et=ke,xt=ke,Nt=ke,Tt=ke,Vt=ke;return Se==null&&(Se=ye([],{})),it=H.$document(),pt=(at=it.$doctype())["$=="]("book"),bt=K(kt=Se["$[]"]("level"))?kt:qe(H.$level(),1),K(Et=ue.$delete("style"))?K(pt)&&R(Et,"abstract")?(Be=["chapter",1],xt=Be[0],bt=Be[1]):(Be=[Et,!0],xt=Be[0],Nt=Be[1],R(bt,0)&&(bt=1)):K(pt)?xt=R(bt,0)?"part":K(et(bt,1))?"section":"chapter":R(at,"manpage")&&R(_e.$casecmp("synopsis"),0)?(Be=["synopsis",!0],xt=Be[0],Nt=Be[1]):xt="section",Tt=S("Section").$new(H,bt),Be=[_e,xt],Xe=[Be[0]],X(Tt,"title=",Xe),Xe[Xe.length-1],Xe=[Be[1]],X(Tt,"sectname=",Xe),Xe[Xe.length-1],K(Nt)?(Tt["$special="](!0),K(Se.$fetch("numbered",Et["$=="]("appendix")))?Tt["$numbered="](!0):Ne(Se["$key?"]("numbered"))&&K(it["$attr?"]("sectnums","all"))&&Tt["$numbered="](K(pt)&&R(bt,1)?"chapter":!0)):K(et(bt,0))?K(Se.$fetch("numbered",it["$attr?"]("sectnums")))&&Tt["$numbered="](K(Tt.$special())?K(kt=H.$numbered())||kt:!0):K(Se.$fetch("numbered",K(kt=pt)?it["$attr?"]("partnums"):kt))&&Tt["$numbered="](!0),R(Vt=ue["$[]"]("id"),!1)?ue.$delete("id"):Tt["$id="]((Be=["id",K(kt=Vt)?kt:K(it["$attr?"]("sectids"))?S("Section").$generate_id(Tt.$title(),it):ke],X(ue,"[]=",Be),Be[Be.length-1])),Tt.$update_attributes(ue),Tt},-4),y(_,"$create_block",function(H,_e,ue,Se,Be){return Be==null&&(Be=ye([],{})),S("Block").$new(H,_e,ye(["source","attributes"],{source:ue,attributes:Se}).$merge(Be))},-5),y(_,"$create_list",function(H,_e,ue){var Se=ke;return ue==null&&(ue=ke),Se=S("List").$new(H,_e),K(ue)&&Se.$update_attributes(ue),Se},-3),y(_,"$create_list_item",function(H,_e){return _e==null&&(_e=ke),S("ListItem").$new(H,_e)},-2),y(_,"$create_image_block",function(H,_e,ue){var Se,Be=this,Xe=ke,it=ke,pt=ke;return ue==null&&(ue=ye([],{})),K(Xe=_e["$[]"]("target"))||Be.$raise(Ie("ArgumentError"),"Unable to create an image block, target attribute is required"),K(_e["$[]"]("alt"))||_e["$[]="]("alt",(Se=["default-alt",S("Helpers").$basename(Xe,!0).$tr("_-"," ")],X(_e,"[]=",Se),Se[Se.length-1])),it=K(_e["$key?"]("title"))?_e.$delete("title"):ke,pt=Be.$create_block(H,"image",ke,_e,ue),K(it)&&(pt["$title="](it),pt.$assign_caption(_e.$delete("caption"),"figure")),pt},-3),y(_,"$create_inline",function(H,_e,ue,Se){return Se==null&&(Se=ye([],{})),S("Inline").$new(H,_e,ue,R(_e,"quoted")?ye(["type"],{type:"unquoted"}).$merge(Se):Se)},-4),y(_,"$parse_content",function(H,_e,ue){var Se=ke;return ue==null&&(ue=ke),Se=Ke(S("Reader"),_e)?_e:S("Reader").$new(_e),S("Parser").$parse_blocks(Se,H,ue),H},-3),y(_,"$parse_attributes",function(H,_e,ue){var Se=ke;return ue==null&&(ue=ye([],{})),K(K(_e)?_e["$empty?"]():!0)?ye([],{}):(K(ue["$[]"]("sub_attributes"))&&K(_e["$include?"](S("ATTR_REF_HEAD")))&&(_e=H.$sub_attributes(_e)),S("AttributeList").$new(_e).$parse(K(Se=ue["$[]"]("positional_attributes"))?Se:[]))},-3),X([["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 F(H,_e,ue){var Se=F.$$s==null?this:F.$$s;return H==null&&(H=ke),_e==null&&(_e=ke),ue==null&&(ue=ke),X(Se,"define_method",[H],function Be(Xe){var it,pt,at=Be.$$s==null?this:Be.$$s;return it=Z(arguments),pt=it,pt.$unshift(pt.$shift(),ue),X(at,"send",[_e].concat(Le(pt)))},{$$arity:-1,$$s:Se})},{$$s:_})}(ie[0],null,ie),function(Y){var g=oe(Y,"ProcessorDsl");return y(g,"$option",function(_,z){var S,b=this;return S=[_,z],X(b.$config(),"[]=",S),S[S.length-1]}),y(g,"$process",function u(_){var z=u.$$p||ke,S,b,F,H=this,_e=ke;return H.process_block==null&&(H.process_block=ke),u.$$p=null,S=Z(arguments),b=S,z!==ke?(K(b["$empty?"]())||H.$raise(Ie("ArgumentError"),"wrong number of arguments (given "+b.$size()+", expected 0)"),K(z.$binding())&&R(H,z.$binding().$receiver())||(_e=H,X(z,"define_singleton_method",["call"],function(Se){var Be,Xe;return Be=Z(arguments),Xe=Be,X(_e,"instance_exec",Le(Xe),z.$to_proc())},-1)),H.process_block=z):K((F=H.process_block,F!=null&&F!==ke?"instance-variable":ke))?X(H.process_block,"call",Le(b)):H.$raise(Ie("NotImplementedError"),""+H.$class()+" #process method called before being registered")},-1),y(g,"$process_block_given?",function(){var _,z=this;return _=z.process_block,_!=null&&_!==ke?"instance-variable":ke})}(ie[0]),function(Y,g){var u=oe(Y,"DocumentProcessorDsl"),_=[u].concat(g),z=a.$r(_);return u.$include(z("ProcessorDsl")),y(u,"$prefer",function(){var b=this;return b.$option("position",">>")})}(ie[0],ie),function(Y,g){var u=oe(Y,"SyntaxProcessorDsl"),_=[u].concat(g),z=a.$r(_);return u.$include(z("ProcessorDsl")),y(u,"$named",function(b){var F=this;return Ke(z("Processor"),F)?F.name=b:F.$option("name",b)}),y(u,"$content_model",function(b){var F=this;return F.$option("content_model",b)}),Ue(u,"parse_content_as","content_model"),y(u,"$positional_attributes",function(b){var F,H,_e=this;return F=Z(arguments),H=F,_e.$option("positional_attrs",H.$flatten())},-1),Ue(u,"name_positional_attributes","positional_attributes"),Ue(u,"positional_attrs","positional_attributes"),y(u,"$default_attributes",function(b){var F=this;return F.$option("default_attrs",b)}),Ue(u,"default_attrs","default_attributes"),y(u,"$resolve_attributes",function(b){var F,H,_e,ue=this,Se=ke,Be=ke,Xe=ke;return F=Z(arguments),H=F,K(et(H.$size(),1))||K((H=H.$fetch(0,!0))["$respond_to?"]("to_sym"))&&(H=[H]),Ke(!0,Se=H)?(ue.$option("positional_attrs",[]),ue.$option("default_attrs",ye([],{}))):Ke(Ie("Array"),Se)?(_e=[[],ye([],{})],Be=_e[0],Xe=_e[1],X(H,"each",[],function(pt){var at,bt,kt=ke,Et=ke,xt=ke;return pt==null&&(pt=ke),K((pt=pt.$to_s())["$include?"]("="))?(bt=pt.$partition("="),at=Pe(bt),kt=at[0]==null?ke:at[0],at[1]==null||at[1],Et=at[2]==null?ke:at[2],K(kt["$include?"](":"))&&(bt=kt.$partition(":"),at=Pe(bt),xt=at[0]==null?ke:at[0],at[1]==null||at[1],kt=at[2]==null?ke:at[2],xt=R(xt,"@")?Be.$size():xt.$to_i(),Be["$[]="](xt,kt)),at=[kt,Et],X(Xe,"[]=",at),at[at.length-1]):K(pt["$include?"](":"))?(bt=pt.$partition(":"),at=Pe(bt),xt=at[0]==null?ke:at[0],at[1]==null||at[1],kt=at[2]==null?ke:at[2],xt=R(xt,"@")?Be.$size():xt.$to_i(),at=[xt,kt],X(Be,"[]=",at),at[at.length-1]):Be["$<<"](pt)}),ue.$option("positional_attrs",Be.$compact()),ue.$option("default_attrs",Xe)):Ke(Ie("Hash"),Se)?(_e=[[],ye([],{})],Be=_e[0],Xe=_e[1],X(H,"each",[],function(pt,at){var bt,kt,Et=ke,xt=ke;return pt==null&&(pt=ke),at==null&&(at=ke),K((Et=pt.$to_s())["$include?"](":"))&&(kt=Et.$partition(":"),bt=Pe(kt),xt=bt[0]==null?ke:bt[0],bt[1]==null||bt[1],Et=bt[2]==null?ke:bt[2],xt=R(xt,"@")?Be.$size():xt.$to_i(),Be["$[]="](xt,Et)),K(at)?(bt=[Et,at],X(Xe,"[]=",bt),bt[bt.length-1]):ke}),ue.$option("positional_attrs",Be.$compact()),ue.$option("default_attrs",Xe)):ue.$raise(Ie("ArgumentError"),"unsupported attributes specification for macro: "+H.$inspect())},-1),Ue(u,"resolves_attributes","resolve_attributes")}(ie[0],ie),function(Y,g,u){var _=se(Y,g,"Preprocessor"),z=[_].concat(u),S=a.$r(z);return y(_,"$process",function(F,H){var _e=this;return _e.$raise(Ie("NotImplementedError"),""+S("Preprocessor")+" subclass "+_e.$class()+" must implement the #process method")})}(ie[0],pe("Processor"),ie),ht(pe("Preprocessor"),"DSL",pe("DocumentProcessorDsl")),function(Y,g,u){var _=se(Y,g,"TreeProcessor"),z=[_].concat(u),S=a.$r(z);return y(_,"$process",function(F){var H=this;return H.$raise(Ie("NotImplementedError"),""+S("TreeProcessor")+" subclass "+H.$class()+" must implement the #process method")})}(ie[0],pe("Processor"),ie),ht(pe("TreeProcessor"),"DSL",pe("DocumentProcessorDsl")),ht(ie[0],"Treeprocessor",pe("TreeProcessor")),function(Y,g,u){var _=se(Y,g,"Postprocessor"),z=[_].concat(u),S=a.$r(z);return y(_,"$process",function(F,H){var _e=this;return _e.$raise(Ie("NotImplementedError"),""+S("Postprocessor")+" subclass "+_e.$class()+" must implement the #process method")})}(ie[0],pe("Processor"),ie),ht(pe("Postprocessor"),"DSL",pe("DocumentProcessorDsl")),function(Y,g,u){var _=se(Y,g,"IncludeProcessor"),z=[_].concat(u),S=a.$r(z);return y(_,"$process",function(F,H,_e,ue){var Se=this;return Se.$raise(Ie("NotImplementedError"),""+S("IncludeProcessor")+" subclass "+Se.$class()+" must implement the #process method")}),y(_,"$handles?",Ve(!0))}(ie[0],pe("Processor"),ie),function(Y,g){var u=oe(Y,"IncludeProcessorDsl"),_=[u].concat(g),z=a.$r(_);return u.$include(z("DocumentProcessorDsl")),y(u,"$handles?",function S(b){var F=S.$$p||ke,H,_e,ue,Se=this;return Se.handles_block==null&&(Se.handles_block=ke),S.$$p=null,H=Z(arguments),_e=H,F!==ke?(K(_e["$empty?"]())||Se.$raise(Ie("ArgumentError"),"wrong number of arguments (given "+_e.$size()+", expected 0)"),Se.handles_block=F):K((ue=Se.handles_block,ue!=null&&ue!==ke?"instance-variable":ke))?Se.handles_block.$call(_e["$[]"](0)):!0},-1)}(ie[0],ie),ht(pe("IncludeProcessor"),"DSL",pe("IncludeProcessorDsl")),function(Y,g,u){var _=se(Y,g,"DocinfoProcessor"),z=[_].concat(u),S=a.$r(z),b=_.$$prototype;return b.config=ke,y(_,"$initialize",function F(H){var _e;F.$$p;var ue=this,Se=ke;return F.$$p=null,H==null&&(H=ye([],{})),st(ue,Ye(ue,"initialize",F,!1,!0),"initialize",[H],null),K(Se=ue.config["$[]"]("location"))?Se:(_e=["location","head"],X(ue.config,"[]=",_e),_e[_e.length-1])},-1),y(_,"$process",function(H){var _e=this;return _e.$raise(Ie("NotImplementedError"),""+S("DocinfoProcessor")+" subclass "+_e.$class()+" must implement the #process method")})}(ie[0],pe("Processor"),ie),function(Y,g){var u=oe(Y,"DocinfoProcessorDsl"),_=[u].concat(g),z=a.$r(_);return u.$include(z("DocumentProcessorDsl")),y(u,"$at_location",function(b){var F=this;return F.$option("location",b)})}(ie[0],ie),ht(pe("DocinfoProcessor"),"DSL",pe("DocinfoProcessorDsl")),function(Y,g,u){var _=se(Y,g,"BlockProcessor"),z=[_].concat(u),S=a.$r(z),b=_.$$prototype;return b.config=ke,_.$attr_accessor("name"),y(_,"$initialize",function F(H,_e){var ue;F.$$p;var Se=this,Be=ke;return F.$$p=null,H==null&&(H=ke),_e==null&&(_e=ye([],{})),st(Se,Ye(Se,"initialize",F,!1,!0),"initialize",[_e],null),Se.name=K(Be=H)?Be:Se.config["$[]"]("name"),Ke(Je,Be=Se.config["$[]"]("contexts"))?K(Se.config["$[]"]("contexts"))||Se.config["$[]="]("contexts",["open","paragraph"].$to_set()):Ke(Ie("Symbol"),Be)?Se.config["$[]="]("contexts",[Se.config["$[]"]("contexts")].$to_set()):Se.config["$[]="]("contexts",Se.config["$[]"]("contexts").$to_set()),K(Be=Se.config["$[]"]("content_model"))?Be:(ue=["content_model","compound"],X(Se.config,"[]=",ue),ue[ue.length-1])},-1),y(_,"$process",function(H,_e,ue){var Se=this;return Se.$raise(Ie("NotImplementedError"),""+S("BlockProcessor")+" subclass "+Se.$class()+" must implement the #process method")})}(ie[0],pe("Processor"),ie),function(Y,g){var u=oe(Y,"BlockProcessorDsl"),_=[u].concat(g),z=a.$r(_);return u.$include(z("SyntaxProcessorDsl")),y(u,"$contexts",function(b){var F,H,_e=this;return F=Z(arguments),H=F,_e.$option("contexts",H.$flatten().$to_set())},-1),Ue(u,"on_contexts","contexts"),Ue(u,"on_context","contexts"),Ue(u,"bind_to","contexts")}(ie[0],ie),ht(pe("BlockProcessor"),"DSL",pe("BlockProcessorDsl")),function(Y,g,u){var _=se(Y,g,"MacroProcessor"),z=[_].concat(u),S=a.$r(z),b=_.$$prototype;return b.config=ke,_.$attr_accessor("name"),y(_,"$initialize",function F(H,_e){var ue;F.$$p;var Se=this,Be=ke;return F.$$p=null,H==null&&(H=ke),_e==null&&(_e=ye([],{})),st(Se,Ye(Se,"initialize",F,!1,!0),"initialize",[_e],null),Se.name=K(Be=H)?Be:Se.config["$[]"]("name"),K(Be=Se.config["$[]"]("content_model"))?Be:(ue=["content_model","attributes"],X(Se.config,"[]=",ue),ue[ue.length-1])},-1),y(_,"$process",function(H,_e,ue){var Se=this;return Se.$raise(Ie("NotImplementedError"),""+S("MacroProcessor")+" subclass "+Se.$class()+" must implement the #process method")})}(ie[0],pe("Processor"),ie),function(Y,g){var u=oe(Y,"MacroProcessorDsl"),_=[u].concat(g),z=a.$r(_);return u.$include(z("SyntaxProcessorDsl")),y(u,"$resolve_attributes",function S(b){var F,H,_e=S.$$p||ke,ue=this;return S.$$p=null,F=Z(arguments),H=F,R(H.$size(),1)&&Ne(H["$[]"](0))?ue.$option("content_model","text"):(st(ue,Ye(ue,"resolve_attributes",S,!1,!0),"resolve_attributes",Le(H),_e),ue.$option("content_model","attributes"))},-1),Ue(u,"resolves_attributes","resolve_attributes")}(ie[0],ie),function(Y,g,u){var _=se(Y,g,"BlockMacroProcessor"),z=[_].concat(u),S=a.$r(z),b=_.$$prototype;return b.name=ke,y(_,"$name",function(){var H=this;return K(S("MacroNameRx")["$match?"](H.name.$to_s()))||H.$raise(Ie("ArgumentError"),"invalid name for block macro: "+H.name),H.name})}(ie[0],pe("MacroProcessor"),ie),ht(pe("BlockMacroProcessor"),"DSL",pe("MacroProcessorDsl")),function(Y,g,u){var _=se(Y,g,"InlineMacroProcessor"),z=[_].concat(u),S=a.$r(z),b=_.$$prototype;return b.config=b.name=ke,dt(z[0],"@@rx_cache",ye([],{})),y(_,"$regexp",function(){var H,_e=this,ue=ke;return K(ue=_e.config["$[]"]("regexp"))?ue:(H=["regexp",_e.$resolve_regexp(_e.name.$to_s(),_e.config["$[]"]("format"))],X(_e.config,"[]=",H),H[H.length-1])}),y(_,"$resolve_regexp",function(H,_e){var ue,Se=this,Be=ke;return K(S("MacroNameRx")["$match?"](H))||Se.$raise(Ie("ArgumentError"),"invalid name for inline macro: "+H),K(Be=I(z[0],"@@rx_cache",!1)["$[]"]([H,_e]))?Be:(ue=[[H,_e],tt(["\\\\?",H,":",R(_e,"short")?"(){0}":"(\\S+?)","\\[(|",S("CC_ANY"),"*?[^\\\\])\\]"])],X(I(z[0],"@@rx_cache",!1),"[]=",ue),ue[ue.length-1])})}(ie[0],pe("MacroProcessor"),ie),function(Y,g){var u=oe(Y,"InlineMacroProcessorDsl"),_=[u].concat(g),z=a.$r(_);return u.$include(z("MacroProcessorDsl")),y(u,"$format",function(b){var F=this;return F.$option("format",b)}),Ue(u,"match_format","format"),Ue(u,"using_format","format"),y(u,"$match",function(b){var F=this;return F.$option("regexp",b)})}(ie[0],ie),ht(pe("InlineMacroProcessor"),"DSL",pe("InlineMacroProcessorDsl")),function(Y,g){var u=se(Y,g,"Extension");return u.$attr_reader("kind"),u.$attr_reader("config"),u.$attr_reader("instance"),y(u,"$initialize",function(z,S,b){var F=this;return F.kind=z,F.instance=S,F.config=b})}(ie[0],null),function(Y,g){var u=se(Y,g,"ProcessorExtension");return u.$attr_reader("process_method"),y(u,"$initialize",function _(z,S,b){_.$$p;var F=this,H=ke;return _.$$p=null,b==null&&(b=ke),st(F,Ye(F,"initialize",_,!1,!0),"initialize",[z,S,S.$config()],null),F.process_method=K(H=b)?H:S.$method("process")},-3)}(ie[0],pe("Extension")),function(Y,g,u){var _=se(Y,g,"Group"),z=[_].concat(u);return function(S,b){var F=[S].concat(b),H=a.$r(F);return y(S,"$register",function(ue){var Se=this;return ue==null&&(ue=ke),H("Extensions").$register(ue,Se)},-1)}(a.get_singleton_class(_),z),y(_,"$activate",function(b){var F=this;return F.$raise(Ie("NotImplementedError"))})}(ie[0],null,ie),function(Y,g,u){var _=se(Y,g,"Registry"),z=[_].concat(u),S=a.$r(z),b=_.$$prototype;return b.document=b.groups=b.preprocessor_extensions=b.tree_processor_extensions=b.postprocessor_extensions=b.include_processor_extensions=b.docinfo_processor_extensions=b.block_extensions=b.block_macro_extensions=b.inline_macro_extensions=ke,_.$attr_reader("document"),_.$attr_reader("groups"),y(_,"$initialize",function(H){var _e=this;return H==null&&(H=ye([],{})),_e.groups=H,_e.$reset(),_e.preprocessor_extensions=_e.tree_processor_extensions=_e.postprocessor_extensions=_e.include_processor_extensions=_e.docinfo_processor_extensions=_e.block_extensions=_e.block_macro_extensions=_e.inline_macro_extensions=ke,_e.document=ke},-1),y(_,"$activate",function(H){var _e=this,ue=ke;return K(_e.document)&&_e.$reset(),_e.document=H,K((ue=qe(S("Extensions").$groups().$values(),_e.groups.$values()))["$empty?"]())||X(ue,"each",[],function Se(Be){var Xe=Se.$$s==null?this:Se.$$s,it=ke;if(Be==null&&(Be=ke),Ke(Ie("Proc"),it=Be))switch(Be.$arity()){case 0:case-1:return X(Xe,"instance_exec",[],Be.$to_proc());case 1:return Be.$call(Xe);default:return ke}else return Ke(A,it)?Be.$new().$activate(Xe):Be.$activate(Xe)},{$$s:_e}),_e}),y(_,"$preprocessor",function F(H){var _e=F.$$p||ke,ue,Se,Be=this;return F.$$p=null,ue=Z(arguments),Se=ue,X(Be,"add_document_processor",["preprocessor",Se],_e.$to_proc())},-1),y(_,"$preprocessors?",function(){var H=this;return H.preprocessor_extensions["$!"]()["$!"]()}),y(_,"$preprocessors",rt("preprocessor_extensions")),y(_,"$tree_processor",function F(H){var _e=F.$$p||ke,ue,Se,Be=this;return F.$$p=null,ue=Z(arguments),Se=ue,X(Be,"add_document_processor",["tree_processor",Se],_e.$to_proc())},-1),y(_,"$tree_processors?",function(){var H=this;return H.tree_processor_extensions["$!"]()["$!"]()}),y(_,"$tree_processors",rt("tree_processor_extensions")),Ue(_,"treeprocessor","tree_processor"),Ue(_,"treeprocessors?","tree_processors?"),Ue(_,"treeprocessors","tree_processors"),y(_,"$postprocessor",function F(H){var _e=F.$$p||ke,ue,Se,Be=this;return F.$$p=null,ue=Z(arguments),Se=ue,X(Be,"add_document_processor",["postprocessor",Se],_e.$to_proc())},-1),y(_,"$postprocessors?",function(){var H=this;return H.postprocessor_extensions["$!"]()["$!"]()}),y(_,"$postprocessors",rt("postprocessor_extensions")),y(_,"$include_processor",function F(H){var _e=F.$$p||ke,ue,Se,Be=this;return F.$$p=null,ue=Z(arguments),Se=ue,X(Be,"add_document_processor",["include_processor",Se],_e.$to_proc())},-1),y(_,"$include_processors?",function(){var H=this;return H.include_processor_extensions["$!"]()["$!"]()}),y(_,"$include_processors",rt("include_processor_extensions")),y(_,"$docinfo_processor",function F(H){var _e=F.$$p||ke,ue,Se,Be=this;return F.$$p=null,ue=Z(arguments),Se=ue,X(Be,"add_document_processor",["docinfo_processor",Se],_e.$to_proc())},-1),y(_,"$docinfo_processors?",function(H){var _e=this;return H==null&&(H=ke),K(_e.docinfo_processor_extensions)?K(H)?X(_e.docinfo_processor_extensions,"any?",[],function(Se){return Se==null&&(Se=ke),Se.$config()["$[]"]("location")["$=="](H)}):!0:!1},-1),y(_,"$docinfo_processors",function(H){var _e=this;return H==null&&(H=ke),K(_e.docinfo_processor_extensions)?K(H)?X(_e.docinfo_processor_extensions,"select",[],function(Se){return Se==null&&(Se=ke),Se.$config()["$[]"]("location")["$=="](H)}):_e.docinfo_processor_extensions:ke},-1),y(_,"$block",function F(H){var _e=F.$$p||ke,ue,Se,Be=this;return F.$$p=null,ue=Z(arguments),Se=ue,X(Be,"add_syntax_processor",["block",Se],_e.$to_proc())},-1),y(_,"$blocks?",function(){var H=this;return H.block_extensions["$!"]()["$!"]()}),y(_,"$registered_for_block?",function(H,_e){var ue=this,Se=ke;return K(Se=ue.block_extensions["$[]"](H.$to_sym()))&&K(Se.$config()["$[]"]("contexts")["$include?"](_e))?Se:!1}),y(_,"$find_block_extension",function(H){var _e=this;return _e.block_extensions["$[]"](H.$to_sym())}),y(_,"$block_macro",function F(H){var _e=F.$$p||ke,ue,Se,Be=this;return F.$$p=null,ue=Z(arguments),Se=ue,X(Be,"add_syntax_processor",["block_macro",Se],_e.$to_proc())},-1),y(_,"$block_macros?",function(){var H=this;return H.block_macro_extensions["$!"]()["$!"]()}),y(_,"$registered_for_block_macro?",function(H){var _e=this,ue=ke;return K(ue=_e.block_macro_extensions["$[]"](H.$to_sym()))?ue:!1}),y(_,"$find_block_macro_extension",function(H){var _e=this;return _e.block_macro_extensions["$[]"](H.$to_sym())}),y(_,"$inline_macro",function F(H){var _e=F.$$p||ke,ue,Se,Be=this;return F.$$p=null,ue=Z(arguments),Se=ue,X(Be,"add_syntax_processor",["inline_macro",Se],_e.$to_proc())},-1),y(_,"$inline_macros?",function(){var H=this;return H.inline_macro_extensions["$!"]()["$!"]()}),y(_,"$registered_for_inline_macro?",function(H){var _e=this,ue=ke;return K(ue=_e.inline_macro_extensions["$[]"](H.$to_sym()))?ue:!1}),y(_,"$find_inline_macro_extension",function(H){var _e=this;return _e.inline_macro_extensions["$[]"](H.$to_sym())}),y(_,"$inline_macros",function(){var H=this;return H.inline_macro_extensions.$values()}),y(_,"$prefer",function F(H){var _e=F.$$p||ke,ue,Se,Be=this,Xe=ke,it=ke,pt=ke;return F.$$p=null,ue=Z(arguments),Se=ue,Xe=Ke(S("ProcessorExtension"),it=Se.$shift())?it:X(Be,"send",[it].concat(Le(Se)),_e.$to_proc()),pt=Be.$instance_variable_get(("@"+Xe.$kind()+"_extensions").$to_sym()),pt.$unshift(pt.$delete(Xe)),Xe},-1),_.$private(),y(_,"$add_document_processor",function F(H,_e){var ue=F.$$p||ke,Se,Be,Xe=this,it=ke,pt=ke,at=ke,bt=ke,kt=ke,Et=ke,xt=ke,Nt=ke,Tt=ke,Vt=ke,jt=ke;return F.$$p=null,it=H.$to_s().$tr("_"," "),pt=X(it.$split(),"map",[],function(Kt){return Kt==null&&(Kt=ke),Kt.$capitalize()}).$join().$to_sym(),at=S("Extensions").$const_get(pt,!1),bt=K(Ie("::","AsciidoctorJ","skip_raise")?"constant":ke)?Ie(Ie("AsciidoctorJ"),"Extensions").$const_get(pt,!1):ke,kt=K(Et=Xe.$instance_variable_get(("@"+H+"_extensions").$to_sym()))?Et:Xe.$instance_variable_set(("@"+H+"_extensions").$to_sym(),[]),ue!==ke?(xt=Xe.$resolve_args(_e,1),(Nt=at.$new(xt)).$singleton_class().$enable_dsl(),R(ue.$arity(),0)?X(Nt,"instance_exec",[],ue.$to_proc()):a.yield1(ue,Nt),K(Nt["$process_block_given?"]())||Xe.$raise(Ie("NoMethodError"),"No block specified to process "+it+" extension at "+ue.$source_location().$join(":")),Nt.$freeze(),Tt=S("ProcessorExtension").$new(H,Nt)):(Be=Xe.$resolve_args(_e,2),Se=Pe(Be),Nt=Se[0]==null?ke:Se[0],xt=Se[1]==null?ke:Se[1],K(Vt=S("Helpers").$resolve_class(Nt))?(K(lt(Vt,at))||K(bt)&&K(lt(Vt,bt))||Xe.$raise(Ie("ArgumentError"),"Invalid type for "+it+" extension: "+Nt),jt=Vt.$new(xt),jt.$freeze(),Tt=S("ProcessorExtension").$new(H,jt)):Ke(at,Nt)||K(bt)&&Ke(bt,Nt)?(Nt.$update_config(xt),Nt.$freeze(),Tt=S("ProcessorExtension").$new(H,Nt)):Xe.$raise(Ie("ArgumentError"),"Invalid arguments specified for registering "+it+" extension: "+_e)),R(Tt.$config()["$[]"]("position"),">>")?kt.$unshift(Tt):kt["$<<"](Tt),Tt}),y(_,"$add_syntax_processor",function F(H,_e){var ue=F.$$p||ke,Se,Be,Xe=this,it=ke,pt=ke,at=ke,bt=ke,kt=ke,Et=ke,xt=ke,Nt=ke,Tt=ke,Vt=ke,jt=ke;return F.$$p=null,it=H.$to_s().$tr("_"," "),pt=X(it.$split(),"map",[],function(Kt){return Kt==null&&(Kt=ke),Kt.$capitalize()})["$<<"]("Processor").$join().$to_sym(),at=S("Extensions").$const_get(pt,!1),bt=K(Ie("::","AsciidoctorJ","skip_raise")?"constant":ke)?Ie(Ie("AsciidoctorJ"),"Extensions").$const_get(pt,!1):ke,kt=K(Et=Xe.$instance_variable_get(("@"+H+"_extensions").$to_sym()))?Et:Xe.$instance_variable_set(("@"+H+"_extensions").$to_sym(),ye([],{})),ue!==ke?(Be=Xe.$resolve_args(_e,2),Se=Pe(Be),xt=Se[0]==null?ke:Se[0],Nt=Se[1]==null?ke:Se[1],(Tt=at.$new(Xe.$as_symbol(xt),Nt)).$singleton_class().$enable_dsl(),R(ue.$arity(),0)?X(Tt,"instance_exec",[],ue.$to_proc()):a.yield1(ue,Tt),K(xt=Xe.$as_symbol(Tt.$name()))||Xe.$raise(Ie("ArgumentError"),"No name specified for "+it+" extension at "+ue.$source_location().$join(":")),K(Tt["$process_block_given?"]())||Xe.$raise(Ie("NoMethodError"),"No block specified to process "+it+" extension at "+ue.$source_location().$join(":")),Tt.$freeze(),Se=[xt,S("ProcessorExtension").$new(H,Tt)],X(kt,"[]=",Se),Se[Se.length-1]):(Be=Xe.$resolve_args(_e,3),Se=Pe(Be),Tt=Se[0]==null?ke:Se[0],xt=Se[1]==null?ke:Se[1],Nt=Se[2]==null?ke:Se[2],K(Vt=S("Helpers").$resolve_class(Tt))?(K(lt(Vt,at))||K(bt)&&K(lt(Vt,bt))||Xe.$raise(Ie("ArgumentError"),"Class specified for "+it+" extension does not inherit from "+at+": "+Tt),jt=Vt.$new(Xe.$as_symbol(xt),Nt),K(xt=Xe.$as_symbol(jt.$name()))||Xe.$raise(Ie("ArgumentError"),"No name specified for "+it+" extension: "+Tt),jt.$freeze(),Se=[xt,S("ProcessorExtension").$new(H,jt)],X(kt,"[]=",Se),Se[Se.length-1]):Ke(at,Tt)||K(bt)&&Ke(bt,Tt)?(Tt.$update_config(Nt),K(xt=K(xt)?(Se=[Xe.$as_symbol(xt)],X(Tt,"name=",Se),Se[Se.length-1]):Xe.$as_symbol(Tt.$name()))||Xe.$raise(Ie("ArgumentError"),"No name specified for "+it+" extension: "+Tt),Tt.$freeze(),Se=[xt,S("ProcessorExtension").$new(H,Tt)],X(kt,"[]=",Se),Se[Se.length-1]):Xe.$raise(Ie("ArgumentError"),"Invalid arguments specified for registering "+it+" extension: "+_e))}),y(_,"$reset",function(){var H=this;return H.preprocessor_extensions=H.tree_processor_extensions=H.postprocessor_extensions=H.include_processor_extensions=H.docinfo_processor_extensions=H.block_extensions=H.block_macro_extensions=H.inline_macro_extensions=ke,H.document=ke}),y(_,"$resolve_args",function(H,_e){var ue=ke,Se=ke;return ue=Ke(Ie("Hash"),H["$[]"](-1))?H.$pop():ye([],{}),R(_e,1)?ue:(K(et(Se=J(J(_e,1),H.$size()),0))?H=qe(H,Ie("Array").$new(Se)):K(lt(Se,0))&&H.$pop(Se["$-@"]()),H["$<<"](ue),H)}),y(_,"$as_symbol",function(H){return K(H)?H.$to_sym():ke})}(ie[0],null,ie),function(Y,g){var u=[Y].concat(g),_=a.$r(u);return y(Y,"$generate_name",function(){var S=this;return"extgrp"+S.$next_auto_id()}),y(Y,"$next_auto_id",function(){var S=this,b=ke;return S.auto_id==null&&(S.auto_id=ke),S.auto_id=K(b=S.auto_id)?b:-1,S.auto_id=qe(S.auto_id,1)}),y(Y,"$groups",function(){var S=this,b=ke;return S.groups==null&&(S.groups=ke),S.groups=K(b=S.groups)?b:ye([],{})}),y(Y,"$create",function z(S){var b=z.$$p||ke,F=this,H=ke;return z.$$p=null,S==null&&(S=ke),b!==ke?_("Registry").$new(L(K(H=S)?H:F.$generate_name(),b)):_("Registry").$new()},-1),y(Y,"$register",function z(S){var b=z.$$p||ke,F,H,_e,ue=this,Se=ke,Be=ke,Xe=ke,it=ke,pt=ke;return z.$$p=null,F=Z(arguments),H=F,Se=H.$size(),b!==ke?Be=b:K(Xe=H.$pop())?Be=K(it=_("Helpers").$resolve_class(Xe))?it:Xe:ue.$raise(Ie("ArgumentError"),"Extension group to register not specified"),pt=K(it=H.$pop())?it:ue.$generate_name(),K(H["$empty?"]())||ue.$raise(Ie("ArgumentError"),"Wrong number of arguments ("+Se+" for 1..2)"),_e=[pt.$to_sym(),Be],X(ue.$groups(),"[]=",_e),_e[_e.length-1]},-1),y(Y,"$unregister_all",function(){var S=this;return S.groups=ye([],{}),ke}),y(Y,"$unregister",function(S){var b,F,H=this;return b=Z(arguments),F=b,X(F,"each_with_object",[H.$groups()],function(ue,Se){return ue==null&&(ue=ke),Se==null&&(Se=ke),Se.$delete(ue.$to_sym())}),ke},-1)}(a.get_singleton_class(ae),ie)}(ee[0],ee)}(He[0],He)},Opal.modules["asciidoctor/js/asciidoctor_ext/stylesheet"]=function(a){var oe=a.module,se=a.klass,K=a.truthy,ye=a.def,y=[],X=a.nil,Ue=a.$$$;return a.add_stubs("rstrip,read,join"),function(Z,qe){var R=oe(Z,"Asciidoctor"),et=[R].concat(qe);return function(Ne,Ke){var Le=se(Ne,Ke,"Stylesheets"),Pe=Le.$$prototype;return Pe.primary_stylesheet_data=X,ye(Le,"$primary_stylesheet_data",function(){var Ve=this,st=X;return Ve.primary_stylesheet_data=K(st=Ve.primary_stylesheet_data)?st:Ue("IO").$read(Ue("File").$join("css","asciidoctor.css")).$rstrip()})}(et[0],null)}(y[0],y)},Opal.modules["asciidoctor/js/asciidoctor_ext/document"]=function(a){var oe=a.module,se=a.klass,K=a.def,ye=[];return a.nil,function(y,X){var Ue=oe(y,"Asciidoctor"),Z=[Ue].concat(X),qe=a.$r(Z);return function(R,et){var Ne=se(R,et,"Document");return K(Ne,"$fill_datetime_attributes",function(Le,Pe){var ht=a.truthy,Ve=a.falsy,st=a.nil,Ye,Je,dt,I,tt,A,rt,lt,J=function(z,S){return S===0?z.getUTCFullYear():z.getFullYear()},L=function(z,S){return S===0?z.getUTCMonth():z.getMonth()},He=function(z,S){return S===0?z.getUTCDate():z.getDate()},ke=function(z,S){return S===0?z.getUTCHours():z.getHours()},Ie=new Date;if(a.const_get_qualified("::","ENV")["$key?"]("SOURCE_DATE_EPOCH")?(Ie.setTime(parseInt(a.const_get_qualified("::","ENV")["$[]"]("SOURCE_DATE_EPOCH"))*1e3),Je=Ie,Ye=0):Ye=-Ie.getTimezoneOffset()/60,ht(dt=Le["$[]"]("localdate")))Ve(I=Le["$[]"]("localyear"))&&(I=dt.indexOf("-")===4?dt.substring(0,4):st,Le["$[]="]("localyear",I));else{var Re=J(Ie,Ye).toString(),ce=("0"+(L(Ie,Ye)+1)).slice(-2),xe=("0"+He(Ie,Ye)).slice(-2);dt=Re+"-"+ce+"-"+xe,Le["$[]="]("localdate",dt),I=Re,Le["$[]="]("localyear",Re)}if(Ve(tt=Le["$[]"]("localtime"))){var ee=("0"+ke(Ie,Ye)).slice(-2),P=("0"+Ie.getMinutes()).slice(-2),M=("0"+Ie.getSeconds()).slice(-2),ae;Ye===0?ae="UTC":Ye>0?ae=("+0"+Ye*100).slice(-5):ae=("-0"+-Ye*100).slice(-5),tt=ee+":"+P+":"+M+" "+ae,Le["$[]="]("localtime",tt)}if(Ve(A=Le["$[]"]("localdatetime"))&&(A=dt+" "+tt,Le["$[]="]("localdatetime",A)),ht(Je)?Pe=Je:ht(Pe)?Ye=-Pe.getTimezoneOffset()/60:Pe=Ie,ht(rt=Le["$[]"]("docdate")))Le["$[]="]("docyear",rt.indexOf("-")===4?rt.substring(0,4):st);else{var ie=J(Pe,Ye).toString(),pe=("0"+(L(Pe,Ye)+1)).slice(-2),Y=("0"+He(Pe,Ye)).slice(-2);rt=ie+"-"+pe+"-"+Y,Le["$[]="]("docdate",rt),Ve(Le["$[]"]("docyear"))&&Le["$[]="]("docyear",ie)}if(Ve(lt=Le["$[]"]("doctime"))){var g=("0"+ke(Pe,Ye)).slice(-2),u=("0"+Pe.getMinutes()).slice(-2),_=("0"+Pe.getSeconds()).slice(-2),ae;Ye===0?ae="UTC":Ye>0?ae=("+0"+Ye*100).slice(-5):ae=("-0"+-Ye*100).slice(-5),lt=g+":"+u+":"+_+" "+ae,Le["$[]="]("doctime",lt)}return Ve(Le["$[]"]("docdatetime"))&&Le["$[]="]("docdatetime",rt+" "+lt),st})}(Z[0],qe("AbstractBlock"))}(ye[0],ye)},Opal.modules["asciidoctor/js/asciidoctor_ext/substitutors"]=function(a){var oe=a.module,se=a.def,K=[];return a.nil,function(ye,y){var X=oe(ye,"Asciidoctor"),Ue=[X].concat(y);return function(Z){var qe=oe(Z,"Substitutors");return se(qe,"$sub_placeholder",function(et,Ne){return et.replace("%s",Ne)})}(Ue[0])}(K[0],K)},Opal.modules["asciidoctor/js/asciidoctor_ext/parser"]=function(a){var oe=a.module,se=a.klass,K=a.truthy,ye=a.defs,y=[];return a.nil,function(X,Ue){var Z=oe(X,"Asciidoctor"),qe=[Z].concat(Ue);return function(R,et){var Ne=se(R,et,"Parser");return K(String.prototype.repeat)?ye(Ne,"$uniform?",function(Le,Pe,ht){return Pe.repeat(ht)===Le}):ye(Ne,"$uniform?",function(Le,Pe,ht){return Array.apply(null,{length:ht}).map(function(){return Pe}).join("")===Le})}(qe[0],null)}(y[0],y)},Opal.modules["asciidoctor/js/asciidoctor_ext/syntax_highlighter"]=function(a){var oe=a.module,se=a.truthy,K=a.def,ye=[],y=a.nil;return a.add_stubs("key?,registry,[],include?,include,empty?,debug,logger,join,keys"),function(X,Ue){var Z=oe(X,"Asciidoctor"),qe=[Z].concat(Ue);return function(R,et){var Ne=oe(R,"SyntaxHighlighter"),Ke=[Ne].concat(et);return function(Le,Pe){var ht=oe(Le,"Factory"),Ve=[ht].concat(Pe),st=a.$r(Ve);return K(ht,"$for",function(Je){var dt=this;return se(dt.$registry()["$key?"](Je))?dt.$registry()["$[]"](Je):(se(dt["$include?"](st("Logging")))||dt.$include(st("Logging")),se(dt.$registry()["$empty?"]())?dt.$logger().$debug("no syntax highlighter available, functionality disabled."):dt.$logger().$debug("syntax highlighter named '"+Je+"' is not available, must be one of: '"+dt.$registry().$keys().$join("', '")+"'."),y)})}(Ke[0],Ke)}(qe[0],qe)}(ye[0],ye)},Opal.modules["asciidoctor/js/asciidoctor_ext"]=function(a){var oe=a.top;a.nil,a.add_stubs("require"),oe.$require("asciidoctor/js/asciidoctor_ext/stylesheet"),oe.$require("asciidoctor/js/asciidoctor_ext/document"),oe.$require("asciidoctor/js/asciidoctor_ext/substitutors"),oe.$require("asciidoctor/js/asciidoctor_ext/parser"),oe.$require("asciidoctor/js/asciidoctor_ext/syntax_highlighter"),oe.$require("asciidoctor/js/asciidoctor_ext/browser")},Opal.modules["asciidoctor/js/opal_ext/logger"]=function(a){var oe=a.klass,se=a.def,K=a.truthy,ye=a.rb_lt,y=[],X=a.nil;return a.add_stubs("chr,rjust,message_as_string,<,write,call,[]"),function(Ue,Z,qe){var R=oe(Ue,Z,"Logger"),et=[R].concat(qe),Ne=a.$r(et),Ke=R.$$prototype;return Ke.level=Ke.progname=Ke.pipe=Ke.formatter=X,function(Le,Pe){var ht=oe(Le,Pe,"Formatter");return se(ht,"$call",function(st,Ye,Je,dt){var I=this,tt=X;return tt=Ye.getFullYear()+"-"+("0"+(Ye.getMonth()+1)).slice(-2)+"-"+("0"+Ye.getDate()).slice(-2)+"T"+("0"+Ye.getHours()).slice(-2)+":"+("0"+Ye.getMinutes()).slice(-2)+":"+("0"+Ye.getSeconds()).slice(-2)+"."+("00"+new Date().getMilliseconds()*1e3).slice(-6),""+st.$chr()+", ["+tt+"] "+st.$rjust(5)+" -- "+Je+": "+I.$message_as_string(dt)})}(et[0],null),se(R,"$add",function Le(Pe,ht,Ve){var st=Le.$$p||X,Ye=this,Je=X;return Le.$$p=null,ht==null&&(ht=X),Ve==null&&(Ve=X),K(ye(Pe=K(Je=Pe)?Je:Ne("UNKNOWN"),Ye.level))||(Ve=K(Je=Ve)?Je:Ye.progname,K(ht)||(st!==X?ht=a.yieldX(st,[]):(ht=Ve,Ve=Ye.progname)),Ye.pipe.$write(Ye.formatter.$call(K(Je=Ne("SEVERITY_LABELS")["$[]"](Pe))?Je:"ANY",new Date,Ve,ht))),!0},-2)}(y[0],null,y)},Opal.modules["asciidoctor/js/postscript"]=function(a){var oe=a.top;return a.nil,a.add_stubs("require"),oe.$require("asciidoctor/converter/composite"),oe.$require("asciidoctor/converter/html5"),oe.$require("asciidoctor/extensions"),oe.$require("asciidoctor/js/asciidoctor_ext"),oe.$require("asciidoctor/js/opal_ext/logger")},Opal.queue(function(a){var oe=a.module,se=a.const_set,K=a.send,ye=a.to_ary,y=a.defs,X=a.def,Ue=a.truthy,Z=a.hash2,qe=a.eqeq,R=a.rb_minus,et=a.regexp,Ne=a.top,Ke=[],Le=a.nil,Pe=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"),Ne.$require("set"),Ne.$require("asciidoctor/js"),function(ht,Ve){var st=oe(ht,"Asciidoctor"),Ye=[st].concat(Ve),Je=a.$r(Ye),dt=Le;return se(Ye[0],"RUBY_ENGINE_OPAL",se(Ye[0],"RUBY_ENGINE",Pe("RUBY_ENGINE"))["$=="]("opal")),function(I,tt){var A=oe(I,"SafeMode"),rt=[A].concat(tt);return se(rt[0],"UNSAFE",0),se(rt[0],"SAFE",1),se(rt[0],"SERVER",10),se(rt[0],"SECURE",20),A.names_by_value=K(K(A.$constants(!1),"map",[],function lt(J){var L=lt.$$s==null?this:lt.$$s;return J==null&&(J=Le),[L.$const_get(J),J.$to_s().$downcase()]},{$$s:A}),"sort",[],function(J,L){var He,ke,Ie=Le,Re=Le;return J==null&&(J=Le),L==null&&(L=Le),ke=J,He=ye(ke),Ie=He[0]==null?Le:He[0],ke=L,He=ye(ke),Re=He[0]==null?Le:He[0],Ie["$<=>"](Re)},{$$has_top_level_mlhs_arg:!0}).$to_h(),y(A,"$value_for_name",function(J){var L=this;return L.$const_get(J.$upcase(),!1)}),y(A,"$name_for_value",function(J){var L=this;return L.names_by_value==null&&(L.names_by_value=Le),L.names_by_value["$[]"](J)}),y(A,"$names",function(){var J=this;return J.names_by_value==null&&(J.names_by_value=Le),J.names_by_value.$values()})}(Ye[0],Ye),function(I,tt){var A=oe(I,"Compliance");return A.keys=Pe("Set").$new(),function(rt,lt){return rt.$attr_reader("keys"),X(rt,"$define",function(L,He){var ke=this;return ke.keys==null&&(ke.keys=Le),ke.$instance_variable_set("@"+L,He),ke.$singleton_class().$send("attr_accessor",L),ke.keys["$<<"](L),Le})}(a.get_singleton_class(A)),A.$define("block_terminates_paragraph",!0),A.$define("strict_verbatim_paragraphs",!0),A.$define("underline_style_section_titles",!0),A.$define("unwrap_standalone_preamble",!0),A.$define("attribute_missing","skip"),A.$define("attribute_undefined","drop-line"),A.$define("shorthand_property_syntax",!0),A.$define("natural_xrefs",!0),A.$define("unique_id_start_index",2),A.$define("markdown_syntax",!0)}(Ye[0]),Ue(Je("ROOT_DIR","skip_raise")?"constant":Le)||se(Ye[0],"ROOT_DIR",Pe("File").$dirname(Pe("File").$absolute_path("."))),se(Ye[0],"LIB_DIR",Pe("File").$join(Je("ROOT_DIR"),"lib")),se(Ye[0],"DATA_DIR",Pe("File").$join(Je("ROOT_DIR"),"data")),se(Ye[0],"USER_HOME",function(){try{return Pe("Dir").$home()}catch(I){if(a.rescue(I,[Je("StandardError")]))try{return Ue(dt=Pe("ENV")["$[]"]("HOME"))?dt:Pe("Dir").$pwd()}finally{a.pop_exception()}else throw I}}()),se(Ye[0],"LF",`
647
+ `),se(Ye[0],"NULL","\0"),se(Ye[0],"TAB"," "),se(Ye[0],"MAX_INT",9007199254740991),se(Ye[0],"UTF_8",Pe(Pe("Encoding"),"UTF_8")),se(Ye[0],"BOM_BYTES_UTF_8",[239,187,191]),se(Ye[0],"BOM_BYTES_UTF_16LE",[255,254]),se(Ye[0],"BOM_BYTES_UTF_16BE",[254,255]),se(Ye[0],"FILE_READ_MODE",Ue(Je("RUBY_ENGINE_OPAL"))?"r":"rb:utf-8:utf-8"),se(Ye[0],"URI_READ_MODE",Je("FILE_READ_MODE")),se(Ye[0],"FILE_WRITE_MODE",Ue(Je("RUBY_ENGINE_OPAL"))?"w":"w:utf-8"),se(Ye[0],"DEFAULT_DOCTYPE","article"),se(Ye[0],"DEFAULT_BACKEND","html5"),se(Ye[0],"DEFAULT_STYLESHEET_KEYS",["","DEFAULT"].$to_set()),se(Ye[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),se(Ye[0],"BACKEND_ALIASES",Z(["html","docbook"],{html:"html5",docbook:"docbook5"})),se(Ye[0],"DEFAULT_PAGE_WIDTHS",Z(["docbook"],{docbook:425})),se(Ye[0],"DEFAULT_EXTENSIONS",Z(["html","docbook","pdf","epub","manpage","asciidoc"],{html:".html",docbook:".xml",pdf:".pdf",epub:".epub",manpage:".man",asciidoc:".adoc"})),se(Ye[0],"ASCIIDOC_EXTENSIONS",Z([".adoc",".asciidoc",".asc",".ad",".txt"],{".adoc":!0,".asciidoc":!0,".asc":!0,".ad":!0,".txt":!0})),se(Ye[0],"SETEXT_SECTION_LEVELS",Z(["=","-","~","^","+"],{"=":0,"-":1,"~":2,"^":3,"+":4})),se(Ye[0],"ADMONITION_STYLES",["NOTE","TIP","IMPORTANT","WARNING","CAUTION"].$to_set()),se(Ye[0],"ADMONITION_STYLE_HEADS",K(Pe("Set").$new(),"tap",[],function(tt){return tt==null&&(tt=Le),K(Je("ADMONITION_STYLES"),"each",[],function(rt){return rt==null&&(rt=Le),tt["$<<"](rt.$chr())})})),se(Ye[0],"PARAGRAPH_STYLES",["comment","example","literal","listing","normal","open","pass","quote","sidebar","source","verse","abstract","partintro"].$to_set()),se(Ye[0],"VERBATIM_STYLES",["literal","listing","source","verse"].$to_set()),se(Ye[0],"DELIMITED_BLOCKS",Z(["--","----","....","====","****","____","++++","|===",",===",":===","!===","////","```"],{"--":["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",Pe("Set").$new()],____:["quote",["verse"].$to_set()],"++++":["pass",["stem","latexmath","asciimath"].$to_set()],"|===":["table",Pe("Set").$new()],",===":["table",Pe("Set").$new()],":===":["table",Pe("Set").$new()],"!===":["table",Pe("Set").$new()],"////":["comment",Pe("Set").$new()],"```":["fenced_code",Pe("Set").$new()]})),se(Ye[0],"DELIMITED_BLOCK_HEADS",K(Z([],{}),"tap",[],function(tt){return tt==null&&(tt=Le),K(Je("DELIMITED_BLOCKS"),"each_key",[],function(rt){var lt;return rt==null&&(rt=Le),lt=[rt.$slice(0,2),!0],K(tt,"[]=",lt),lt[lt.length-1]})})),se(Ye[0],"DELIMITED_BLOCK_TAILS",K(Z([],{}),"tap",[],function(tt){return tt==null&&(tt=Le),K(Je("DELIMITED_BLOCKS"),"each_key",[],function(rt){var lt;return rt==null&&(rt=Le),qe(rt.$length(),4)?(lt=[rt,rt["$[]"](R(rt.$length(),1))],K(tt,"[]=",lt),lt[lt.length-1]):Le})})),se(Ye[0],"CAPTION_ATTRIBUTE_NAMES",Z(["example","figure","listing","table"],{example:"example-caption",figure:"figure-caption",listing:"listing-caption",table:"table-caption"})),se(Ye[0],"LAYOUT_BREAK_CHARS",Z(["'","<"],{"'":"thematic_break","<":"page_break"})),se(Ye[0],"MARKDOWN_THEMATIC_BREAK_CHARS",Z(["-","*","_"],{"-":"thematic_break","*":"thematic_break",_:"thematic_break"})),se(Ye[0],"HYBRID_LAYOUT_BREAK_CHARS",Je("LAYOUT_BREAK_CHARS").$merge(Je("MARKDOWN_THEMATIC_BREAK_CHARS"))),se(Ye[0],"NESTABLE_LIST_CONTEXTS",["ulist","olist","dlist"]),se(Ye[0],"ORDERED_LIST_STYLES",["arabic","loweralpha","lowerroman","upperalpha","upperroman"]),se(Ye[0],"ORDERED_LIST_KEYWORDS",Z(["loweralpha","lowerroman","upperalpha","upperroman"],{loweralpha:"a",lowerroman:"i",upperalpha:"A",upperroman:"I"})),se(Ye[0],"ATTR_REF_HEAD","{"),se(Ye[0],"LIST_CONTINUATION","+"),se(Ye[0],"HARD_LINE_BREAK"," +"),se(Ye[0],"LINE_CONTINUATION"," \\"),se(Ye[0],"LINE_CONTINUATION_LEGACY"," +"),se(Ye[0],"BLOCK_MATH_DELIMITERS",Z(["asciimath","latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\[","\\]"]})),se(Ye[0],"INLINE_MATH_DELIMITERS",Z(["asciimath","latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]})),se(Ye[0],"STEM_TYPE_ALIASES",Z(["latexmath","latex","tex"],{latexmath:"latexmath",latex:"latexmath",tex:"latexmath"}))["$default="]("asciimath"),se(Ye[0],"FONT_AWESOME_VERSION","4.7.0"),se(Ye[0],"HIGHLIGHT_JS_VERSION","9.18.3"),se(Ye[0],"MATHJAX_VERSION","2.7.9"),se(Ye[0],"DEFAULT_ATTRIBUTES",Z(["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"})),se(Ye[0],"FLEXIBLE_ATTRIBUTES",["sectnums"]),se(Ye[0],"INTRINSIC_ATTRIBUTES",Z(["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:"&#43;",backslash:"\\",backtick:"`",blank:"",empty:"",sp:" ","two-colons":"::","two-semicolons":";;",nbsp:"&#160;",deg:"&#176;",zwsp:"&#8203;",quot:"&#34;",apos:"&#39;",lsquo:"&#8216;",rsquo:"&#8217;",ldquo:"&#8220;",rdquo:"&#8221;",wj:"&#8288;",brvbar:"&#166;",pp:"&#43;&#43;",cpp:"C&#43;&#43;",amp:"&",lt:"<",gt:">"})),se(Ye[0],"QUOTE_SUBS",K(Z([],{}),"tap",[],function(tt){var A=Le,rt=Le;return tt==null&&(tt=Le),tt["$[]="](!1,A=[["strong","unconstrained",et(["\\\\?(?:\\[([^\\]]+)\\])?\\*\\*(",Je("CC_ALL"),"+?)\\*\\*"],"m")],["strong","constrained",et(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?\\*(\\S|\\S",Je("CC_ALL"),"*?\\S)\\*(?!",Je("CG_WORD"),")"],"m")],["double","constrained",et(["(^|[^",Je("CC_WORD"),';:}])(?:\\[([^\\]]+)\\])?"`(\\S|\\S',Je("CC_ALL"),'*?\\S)`"(?!',Je("CG_WORD"),")"],"m")],["single","constrained",et(["(^|[^",Je("CC_WORD"),";:`}])(?:\\[([^\\]]+)\\])?'`(\\S|\\S",Je("CC_ALL"),"*?\\S)`'(?!",Je("CG_WORD"),")"],"m")],["monospaced","unconstrained",et(["\\\\?(?:\\[([^\\]]+)\\])?``(",Je("CC_ALL"),"+?)``"],"m")],["monospaced","constrained",et(["(^|[^",Je("CC_WORD"),";:\"'`}])(?:\\[([^\\]]+)\\])?`(\\S|\\S",Je("CC_ALL"),"*?\\S)`(?![",Je("CC_WORD"),"\"'`])"],"m")],["emphasis","unconstrained",et(["\\\\?(?:\\[([^\\]]+)\\])?__(",Je("CC_ALL"),"+?)__"],"m")],["emphasis","constrained",et(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?_(\\S|\\S",Je("CC_ALL"),"*?\\S)_(?!",Je("CG_WORD"),")"],"m")],["mark","unconstrained",et(["\\\\?(?:\\[([^\\]]+)\\])?##(",Je("CC_ALL"),"+?)##"],"m")],["mark","constrained",et(["(^|[^",Je("CC_WORD"),"&;:}])(?:\\[([^\\]]+)\\])?#(\\S|\\S",Je("CC_ALL"),"*?\\S)#(?!",Je("CG_WORD"),")"],"m")],["superscript","unconstrained",/\\?(?:\[([^\]]+)\])?\^(\S+?)\^/],["subscript","unconstrained",/\\?(?:\[([^\]]+)\])?~(\S+?)~/]]),tt["$[]="](!0,rt=A.$drop(0)),rt["$[]="](2,["double","constrained",et(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?``(\\S|\\S",Je("CC_ALL"),"*?\\S)''(?!",Je("CG_WORD"),")"],"m")]),rt["$[]="](3,["single","constrained",et(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?`(\\S|\\S",Je("CC_ALL"),"*?\\S)'(?!",Je("CG_WORD"),")"],"m")]),rt["$[]="](4,["monospaced","unconstrained",et(["\\\\?(?:\\[([^\\]]+)\\])?\\+\\+(",Je("CC_ALL"),"+?)\\+\\+"],"m")]),rt["$[]="](5,["monospaced","constrained",et(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?\\+(\\S|\\S",Je("CC_ALL"),"*?\\S)\\+(?!",Je("CG_WORD"),")"],"m")]),rt.$insert(3,["emphasis","constrained",et(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?'(\\S|\\S",Je("CC_ALL"),"*?\\S)'(?!",Je("CG_WORD"),")"],"m")])})),se(Ye[0],"REPLACEMENTS",[[/\\?\(C\)/,"&#169;","none"],[/\\?\(R\)/,"&#174;","none"],[/\\?\(TM\)/,"&#8482;","none"],[/(?: |\n|^|\\)--(?: |\n|$)/,"&#8201;&#8212;&#8201;","none"],[et(["(",Je("CG_WORD"),")\\\\?--(?=",Je("CG_WORD"),")"]),"&#8212;&#8203;","leading"],[/\\?\.\.\./,"&#8230;&#8203;","none"],[/\\?`'/,"&#8217;","none"],[et(["(",Je("CG_ALNUM"),")\\\\?'(?=",Je("CG_ALPHA"),")"]),"&#8217;","leading"],[/\\?-&gt;/,"&#8594;","none"],[/\\?=&gt;/,"&#8658;","none"],[/\\?&lt;-/,"&#8592;","none"],[/\\?&lt;=/,"&#8656;","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"]]),Le}(Ke[0],Ke),Ne.$require("asciidoctor.rb/../asciidoctor/core_ext"),Ne.$require("asciidoctor.rb/../asciidoctor/helpers"),Ne.$require("asciidoctor.rb/../asciidoctor/logging"),Ne.$require("asciidoctor.rb/../asciidoctor/rx"),Ne.$require("asciidoctor.rb/../asciidoctor/substitutors"),Ne.$require("asciidoctor.rb/../asciidoctor/version"),Ne.$require("asciidoctor.rb/../asciidoctor/abstract_node"),Ne.$require("asciidoctor.rb/../asciidoctor/abstract_block"),Ne.$require("asciidoctor.rb/../asciidoctor/attribute_list"),Ne.$require("asciidoctor.rb/../asciidoctor/block"),Ne.$require("asciidoctor.rb/../asciidoctor/callouts"),Ne.$require("asciidoctor.rb/../asciidoctor/converter"),Ne.$require("asciidoctor.rb/../asciidoctor/document"),Ne.$require("asciidoctor.rb/../asciidoctor/inline"),Ne.$require("asciidoctor.rb/../asciidoctor/list"),Ne.$require("asciidoctor.rb/../asciidoctor/parser"),Ne.$require("asciidoctor.rb/../asciidoctor/path_resolver"),Ne.$require("asciidoctor.rb/../asciidoctor/reader"),Ne.$require("asciidoctor.rb/../asciidoctor/section"),Ne.$require("asciidoctor.rb/../asciidoctor/stylesheets"),Ne.$require("asciidoctor.rb/../asciidoctor/table"),Ne.$require("asciidoctor.rb/../asciidoctor/writer"),Ne.$require("asciidoctor.rb/../asciidoctor/load"),Ne.$require("asciidoctor.rb/../asciidoctor/convert"),Ne.$require("asciidoctor.rb/../asciidoctor/syntax_highlighter"),Ne.$require("asciidoctor.rb/../asciidoctor/timings"),Ne.$require("asciidoctor/js/postscript")});const t=function(a){return a&&!a.$$is_hash?Opal.hash2(Object.keys(a),a):a},r=function(a){const oe={};if(a){const se=a.$$smap;for(const ye in se){const y=se[ye];oe[ye]=y===Opal.nil?void 0:y}const K=a.$$map;if(K){const ye=[];for(const y in K){const X=K[y],Ue=X.value,Z=X.key-1;ye[Z]=Ue===Opal.nil?void 0:Ue}ye.length>0&&(oe.$positional=ye)}}return oe},n=function(a){const oe={};if(a){const se=a.$$keys;for(const K in se){const ye=se[K].value;oe[K.toString()]=ye===Opal.nil?void 0:ye}}return oe},i=function(a){if(a=t(a),a){const oe=a["$[]"]("converter");oe&&oe!==Opal.nil&&a["$[]="]("converter",s(oe));const se=a["$[]"]("attributes");se&&typeof se=="object"&&se.constructor.name==="Object"&&(a=a.$dup(),a["$[]="]("attributes",t(se)))}return a},s=function(a){const oe=function(qe){return Object.assign({},qe.basebackend?{basebackend:qe.basebackend}:{},qe.outfilesuffix?{outfilesuffix:qe.outfilesuffix}:{},qe.filetype?{filetype:qe.filetype}:{},qe.htmlsyntax?{htmlsyntax:qe.htmlsyntax}:{},qe.supports_templates?{supports_templates:qe.supports_templates}:{})},se=function(qe,R){qe.backend_traits?R.backend_traits=t(qe.backend_traits):qe.backendTraits?R.backend_traits=t(qe.backendTraits):(qe.basebackend||qe.outfilesuffix||qe.filetype||qe.htmlsyntax||qe.supports_templates)&&(R.backend_traits=t(oe(qe)))},K=function(qe,R){Ue(qe,R,"$handles?","handles",function(){return!0})},ye=function(qe,R){Ue(qe,R,"$composed","composed")},y=function(qe,R){Ue(qe,R,"$==","==",function(et){return R===et})},X=function(qe,R){Ue(qe,R,"$send","send",function(et){const[,...Ne]=Array.from(arguments),Ke=R["$"+et];if(Ke)return Ke.apply(R,Ne);throw new Error(`undefined method \`${et}\` for \`${R.toString()}\``)})},Ue=function(qe,R,et,Ne,Ke){typeof qe[et]>"u"&&(typeof qe[Ne]=="function"?R[et]=qe[Ne]:Ke&&(R[et]=Ke))},Z=function(qe){typeof qe["$respond_to?"]!="function"&&(qe["$respond_to?"]=function(R){return typeof this[R]=="function"})};if(typeof a=="function"){const qe=l(ft,a.constructor.name,{initialize:function(R,et){const Ne=this,Ke=new a(R,et);Object.assign(this,Ke),se(Ke,Ne);const Le=Object.getOwnPropertyNames(a.prototype);for(let Pe=0;Pe<Le.length;Pe++){const ht=Le[Pe];ht!=="constructor"&&(Ne[ht]=Ke[ht])}typeof Ke.$convert>"u"&&typeof Ke.convert=="function"&&(Ne.$convert=Ke.convert),K(Ke,Ne),ye(Ke,Ne),Z(Ne),Ne.super(R,et)}});return qe.$extend(yt),qe}if(typeof a=="object"){if(typeof a.$convert>"u"&&typeof a.convert=="function"&&(a.$convert=a.convert),se(a,a),a.backend_traits){const qe=["basebackend","filetype","htmlsyntax","outfilesuffix","supports_templates","supports_templates?","init_backend_traits","backend_traits"];for(const R of qe)a["$"+R]=yt.prototype["$"+R];a.$$meta=yt}return K(a,a),ye(a,a),y(a,a),X(a,a),Z(a),a}return a};function l(a,oe,se,K,ye){const y=Opal.klass(Opal.Object,a,oe,function(){});let X,Ue,Z;const qe={};for(const Ne in se)Object.prototype.hasOwnProperty.call(se,Ne)&&function(Ke){const Le=se[Ke];if(Ke==="postConstruct")X=Le;else if(Ke==="initialize")Ue=Le;else if(Ke==="constructor")Z=Le;else{K&&Object.prototype.hasOwnProperty.call(K,Ke)&&(qe[Ke]=!0);let Pe;Opal.def(y,"$"+Ke,Pe=function(){let ht;ye&&Object.prototype.hasOwnProperty.call(ye,Ke)?ht=ye[Ke](arguments):ht=arguments;const Ve=Pe.$$p;return Ve&&(ht[ht.length]=function(){return Opal.yield1(Ve)},ht.length+=1,Pe.$$p=null),Le.apply(this,ht)})}}(Ne);let R;typeof Z=="function"?R=function(){const Ne=Array.from(arguments);for(let Le=0;Le<Ne.length;Le++)typeof Ne[Le]=="object"&&"$$smap"in Ne[Le]&&(Ne[Le]=r(Ne[Le]));Ne.unshift(null);const Ke=new(Function.prototype.bind.apply(Z,Ne));Object.assign(this,Ke),typeof X=="function"&&X.bind(this)()}:typeof Ue=="function"?R=function(){const Ne=Array.from(arguments);for(let Ke=0;Ke<Ne.length;Ke++)typeof Ne[Ke]=="object"&&"$$smap"in Ne[Ke]&&(Ne[Ke]=r(Ne[Ke]));Ue.apply(this,Ne),typeof X=="function"&&X.bind(this)()}:R=function(){Opal.send(this,Opal.find_super_dispatcher(this,"initialize",R)),typeof X=="function"&&X.bind(this)()},Opal.def(y,"$initialize",R);let et;Opal.def(y,"super",et=function(Ne){if(typeof Ne=="function")Opal.send(this,Opal.find_super_dispatcher(this,Ne.name,Ne));else{const Ke=Array.from(arguments);for(let Le=0;Le<Ke.length;Le++)typeof Ke[Le]=="object"&&(Ke[Le]=t(Ke[Le]));Opal.send(this,Opal.find_super_dispatcher(this,"initialize",R),Ke)}});for(const Ne in se)et[Ne]=function(){const Ke=Array.from(arguments);for(let Pe=0;Pe<Ke.length;Pe++)typeof Ke[Pe]=="object"&&typeof Ke[Pe].constructor=="function"&&Ke[Pe].constructor.name==="Object"&&(Ke[Pe]=t(Ke[Pe]));const Le=y.$$prototype;return Opal.send(Le,Opal.find_super_dispatcher(Le,Ne,Le[`$${Ne}`]),Ke)};if(K)for(const Ne in K)Object.prototype.hasOwnProperty.call(K,Ne)&&!Object.prototype.hasOwnProperty.call(qe,Ne)&&function(Ke){const Le=K[Ke];Opal.def(y,"$"+Ke,function(){return Le.apply(this,arguments)})}(Ne);return y}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,oe){typeof a=="object"&&a.constructor.name==="Buffer"&&(a=a.toString("utf8"));const se=oe&&oe.to_file;typeof se=="object"&&se.constructor.name==="Writable"&&typeof se.write=="function"&&(se["$respond_to?"]=y=>y==="write",se.$object_id=()=>"",se.$write=function(y){this.write(y)});const K=i(oe),ye=this.$convert(a,K);return typeof se=="object"&&se.constructor.name==="Writable"&&typeof se.end=="function"&&se.end(),ye===Opal.nil?"":ye},f.prototype.convertFile=function(a,oe){return this.$convert_file(a,i(oe))},f.prototype.load=function(a,oe){return typeof a=="object"&&a.constructor.name==="Buffer"&&(a=a.toString("utf8")),this.$load(a,i(oe))},f.prototype.loadFile=function(a,oe){return this.$load_file(a,i(oe))};const h=Opal.Asciidoctor.AbstractBlock;h.prototype.getContentModel=function(){const a=this.content_model;return a===Opal.nil?void 0:a},h.prototype.setContentModel=function(a){this.content_model=a},h.prototype.append=function(a){return this.$append(a),this},h.prototype.getTitle=function(){const a=this.$title();return a===Opal.nil?void 0:a},h.prototype.setTitle=function(a){return a=typeof a>"u"?Opal.nil:a,this["$title="](a)},h.prototype.assignCaption=function(a,oe){a=typeof a>"u"?Opal.nil:a,oe=typeof oe>"u"?null:oe,this.$assign_caption(a,oe)},h.prototype.getCaptionedTitle=function(){return this.$captioned_title()},h.prototype.getStyle=function(){const a=this.style;return a===Opal.nil?void 0:a},h.prototype.setStyle=function(a){this.style=a},h.prototype.getSourceLocation=function(){const a=this.source_location;if(a!==Opal.nil)return a.getFile=function(){const oe=this.file;return oe===Opal.nil?void 0:oe},a.getDirectory=function(){const oe=this.dir;return oe===Opal.nil?void 0:oe},a.getPath=function(){const oe=this.path;return oe===Opal.nil?void 0:oe},a.getLineNumber=function(){const oe=this.lineno;return oe===Opal.nil?void 0:oe},a},h.prototype.getCaption=function(){const a=this.$caption();return a===Opal.nil?void 0:a},h.prototype.setCaption=function(a){this.caption=typeof a>"u"?Opal.nil:a},h.prototype.getLevel=function(){const a=this.level;return a===Opal.nil?void 0:a},h.prototype.getSubstitutions=function(){return this.subs},h.prototype.hasSubstitution=function(a){return this["$sub?"](a)},h.prototype.removeSubstitution=function(a){this.$remove_sub(a)},h.prototype.hasBlocks=function(){return this.blocks.length>0},h.prototype.getBlocks=function(){return this.blocks},h.prototype.getContent=function(){const a=this.$content();return a===Opal.nil?void 0:a},h.prototype.convert=function(){return this.$convert()},h.prototype.findBy=function(a,oe){return typeof oe>"u"&&typeof a=="function"?Opal.send(this,"find_by",null,a):typeof oe=="function"?Opal.send(this,"find_by",[t(a)],oe):this.$find_by(t(a))},h.prototype.getLineNumber=function(){const a=this.$lineno();return a===Opal.nil?void 0:a},h.prototype.hasSections=function(){return this.next_section_index!==Opal.nil&&this.next_section_index>0},h.prototype.getSections=function(){return this.$sections()},h.prototype.getNumeral=function(){const a=this.$numeral();return a===Opal.nil?void 0:a},h.prototype.setNumeral=function(a){this["$numeral="](a)},h.prototype.hasTitle=function(){return this["$title?"]()},h.prototype.getAlt=function(){return this.$alt()};const d=Opal.Asciidoctor.Section;d.create=function(a,oe,se,K){return K&&K.attributes&&(K.attributes=t(K.attributes)),this.$new(a,oe,se,t(K))},d.prototype.setLevel=function(a){this.level=a},d.prototype.getIndex=function(){return this.index},d.prototype.setIndex=function(a){this.index=a},d.prototype.getSectionName=function(){const a=this.sectname;return a===Opal.nil?void 0:a},d.prototype.setSectionName=function(a){this.sectname=a},d.prototype.getSectionNumeral=function(){return this.$sectnum()},d.prototype.getSectionNumber=d.prototype.getSectionNumeral,d.prototype.isSpecial=function(){return this.special},d.prototype.setSpecial=function(a){this.special=a},d.prototype.isNumbered=function(){return this.numbered},d.prototype.getCaption=function(){const a=this.caption;return a===Opal.nil?void 0:a},d.prototype.getName=function(){return this.getTitle()};const k=Opal.Asciidoctor.Block;k.create=function(a,oe,se){return se&&se.attributes&&(se.attributes=t(se.attributes)),this.$new(a,oe,t(se))},k.prototype.getSource=function(){return this.$source()},k.prototype.getSourceLines=function(){return this.lines};const C=Opal.Asciidoctor.AbstractNode;C.prototype.applySubstitutions=function(a,oe){return this.$apply_subs(a,oe)},C.prototype.resolveSubstitutions=function(a,oe,se,K){typeof oe>"u"&&(oe="block"),typeof se>"u"&&(se=Opal.nil),typeof K>"u"&&(K=Opal.nil);const ye=this.$resolve_subs(a,oe,se,K);return ye===Opal.nil?void 0:ye},C.prototype.resolveBlockSubstitutions=function(a,oe,se){return this.resolveSubstitutions(a,"block",oe,se)},C.prototype.resolvePassSubstitutions=function(a){return this.resolveSubstitutions(a,"inline",void 0,"passthrough macro")},C.prototype.getNodeName=function(){return this.node_name},C.prototype.getAttributes=function(){return r(this.attributes)},C.prototype.getAttribute=function(a,oe,se){const K=this.$attr(a,oe,se);return K===Opal.nil?void 0:K},C.prototype.hasAttribute=function(a){return a in this.attributes.$$smap},C.prototype.isAttribute=function(a,oe,se){return this["$attr?"](a,oe,se)},C.prototype.setAttribute=function(a,oe,se){return typeof se>"u"&&(se=!0),this.$set_attr(a,oe,se)},C.prototype.removeAttribute=function(a){const oe=this.$remove_attr(a);return oe===Opal.nil?void 0:oe},C.prototype.getDocument=function(){return this.document},C.prototype.getParent=function(){const a=this.parent;return a===Opal.nil?void 0:a},C.prototype.isInline=function(){return this["$inline?"]()},C.prototype.isBlock=function(){return this["$block?"]()},C.prototype.isRole=function(a){return this["$role?"](a)},C.prototype.getRole=function(){const a=this.$role();return a===Opal.nil?void 0:a},C.prototype.setRole=function(a){return Array.isArray(a)||typeof a=="string"&&arguments.length===1?this["$role="](a):this["$role="](Array.from(arguments))},C.prototype.hasRole=function(a){return this["$has_role?"](a)},C.prototype.getRoles=function(){return this.$roles()},C.prototype.addRole=function(a){return this.$add_role(a)},C.prototype.removeRole=function(a){return this.$remove_role(a)},C.prototype.isReftext=function(){return this["$reftext?"]()},C.prototype.getReftext=function(){const a=this.$reftext();return a===Opal.nil?void 0:a},C.prototype.getContext=function(){const a=this.context;return typeof a=="string"?a:a.toString()},C.prototype.getId=function(){const a=this.id;return a===Opal.nil?void 0:a},C.prototype.setId=function(a){this.id=a},C.prototype.isOption=function(a){return this["$option?"](a)},C.prototype.setOption=function(a){return this.$set_option(a)},C.prototype.getIconUri=function(a){return this.$icon_uri(a)},C.prototype.getMediaUri=function(a,oe){return this.$media_uri(a,oe)},C.prototype.getImageUri=function(a,oe){return this.$image_uri(a,oe)},C.prototype.getConverter=function(){return this.$converter()},C.prototype.readContents=function(a,oe){return this.$read_contents(a,t(oe))},C.prototype.readAsset=function(a,oe){const se=this.$read_asset(a,t(oe));return se===Opal.nil?void 0:se},C.prototype.normalizeWebPath=function(a,oe,se){return this.$normalize_web_path(a,oe,se)},C.prototype.normalizeSystemPath=function(a,oe,se,K){return this.$normalize_system_path(a,oe,se,t(K))},C.prototype.normalizeAssetPath=function(a,oe,se){return this.$normalize_asset_path(a,oe,se)};const N=Opal.Asciidoctor.Document;N.prototype.append=function(a){return this["$<<"](a),this},N.prototype.getSyntaxHighlighter=function(){const a=this.syntax_highlighter,oe=a.__proto__;return oe&&(typeof oe["$highlight?"]=="function"&&(oe.handlesHighlighting=function(){const se=oe["$highlight?"]();return se===Opal.nil?!1:se}),typeof oe["$docinfo?"]=="function"&&(oe.hasDocinfo=oe["$docinfo?"]),typeof oe.$format=="function"&&(oe.format=function(se,K,ye){return this.$format(se,K,t(ye))}),typeof oe.$docinfo=="function"&&(oe.docinfo=function(se,K,ye){return this.$docinfo(se,K,t(ye))})),a},N.prototype.getRefs=function(){return r(this.catalog.$$smap.refs)},N.prototype.getImages=function(){return this.catalog.$$smap.images},N.prototype.getLinks=function(){return this.catalog.$$smap.links},N.prototype.hasFootnotes=function(){return this["$footnotes?"]()},N.prototype.getFootnotes=function(){return this.$footnotes()},N.prototype.getHeader=function(){return this.header},N.prototype.setAttribute=function(a,oe){return this.$set_attribute(a,oe)},N.prototype.removeAttribute=function(a){this.attributes.$delete(a),this.attribute_overrides.$delete(a)},N.prototype.convert=function(a){const oe=this.$convert(t(a));return oe===Opal.nil?"":oe},N.prototype.write=function(a,oe){return this.$write(a,oe)},N.prototype.getAuthor=function(){return this.$author()},N.prototype.getSource=function(){return this.$source()},N.prototype.getSourceLines=function(){return this.$source_lines()},N.prototype.isNested=function(){return this["$nested?"]()},N.prototype.isEmbedded=function(){return this["$embedded?"]()},N.prototype.hasExtensions=function(){return this["$extensions?"]()},N.prototype.getDoctype=function(){return this.doctype},N.prototype.getBackend=function(){return this.backend},N.prototype.isBasebackend=function(a){return this["$basebackend?"](a)},N.prototype.getTitle=function(){const a=this.$title();return a===Opal.nil?void 0:a},N.prototype.setTitle=function(a){return this["$title="](a)},N.prototype.getDocumentTitle=function(a){const oe=this.$doctitle(t(a));return oe===Opal.nil?void 0:oe},N.prototype.getDoctitle=N.prototype.getDocumentTitle,N.prototype.getCatalog=function(){return r(this.catalog)},N.prototype.getReferences=N.prototype.getCatalog,N.prototype.getRevisionDate=function(){return this.getAttribute("revdate")},N.prototype.getRevdate=function(){return this.getRevisionDate()},N.prototype.getRevisionNumber=function(){return this.getAttribute("revnumber")},N.prototype.getRevisionRemark=function(){return this.getAttribute("revremark")},N.prototype.setHeaderAttribute=function(a,oe,se){return typeof se>"u"&&(se=!0),typeof oe>"u"&&(oe=""),this.$set_header_attribute(a,oe,se)},N.prototype.getAuthors=function(){return this.$authors()};const U=N.Footnote;U.prototype.getIndex=function(){const a=this.$$data.index;return a===Opal.nil?void 0:a},U.prototype.getId=function(){const a=this.$$data.id;return a===Opal.nil?void 0:a},U.prototype.getText=function(){const a=this.$$data.text;return a===Opal.nil?void 0:a};const O=N.ImageReference;O.prototype.getTarget=function(){return this.$$data.target},O.prototype.getImagesDirectory=function(){const a=this.$$data.imagesdir;return a===Opal.nil?void 0:a};const j=N.Author;j.prototype.getName=function(){const a=this.$$data.name;return a===Opal.nil?void 0:a},j.prototype.getFirstName=function(){const a=this.$$data.firstname;return a===Opal.nil?void 0:a},j.prototype.getMiddleName=function(){const a=this.$$data.middlename;return a===Opal.nil?void 0:a},j.prototype.getLastName=function(){const a=this.$$data.lastname;return a===Opal.nil?void 0:a},j.prototype.getInitials=function(){const a=this.$$data.initials;return a===Opal.nil?void 0:a},j.prototype.getEmail=function(){const a=this.$$data.email;return a===Opal.nil?void 0:a},N.RevisionInfo=function(a,oe,se){this.date=a,this.number=oe,this.remark=se};const D=N.RevisionInfo;D.prototype.getDate=function(){return this.date},D.prototype.getNumber=function(){return this.number},D.prototype.getRemark=function(){return this.remark},D.prototype.isEmpty=function(){return this.date===void 0&&this.number===void 0&&this.remark===void 0};const G=Opal.Asciidoctor.SafeMode;G.getValueForName=function(a){return this.$value_for_name(a)},G.getNameForValue=function(a){const oe=this.$name_for_value(a);return oe===Opal.nil?void 0:oe},G.getNames=function(){return this.$names()};const de=Opal.Asciidoctor.Callouts;de.create=function(){return this.$new()},de.prototype.register=function(a){return this.$register(a)},de.prototype.readNextId=function(){return this.$read_next_id()},de.prototype.getCalloutIds=function(a){return this.$callout_ids(a)},de.prototype.getLists=function(){const a=this.lists;if(a&&a.length>0)for(let oe=0;oe<a.length;oe++){const se=a[oe];if(se&&se.length>0)for(let K=0;K<se.length;K++)typeof se[K]=="object"&&"$$smap"in se[K]&&(se[K]=r(se[K]))}return a},de.prototype.getListIndex=function(){return this.list_index},de.prototype.getCurrentList=function(){const a=this.$current_list();if(a&&a.length>0)for(let oe=0;oe<a.length;oe++)typeof a[oe]=="object"&&"$$smap"in a[oe]&&(a[oe]=r(a[oe]));return a},de.prototype.nextList=function(){return this.$nextList()},de.prototype.rewind=function(){return this.$rewind()},N.prototype.getRevisionInfo=function(){return new N.RevisionInfo(this.getRevisionDate(),this.getRevisionNumber(),this.getRevisionRemark())},N.prototype.hasRevisionInfo=function(){return!this.getRevisionInfo().isEmpty()},N.prototype.getNotitle=function(){return this.$notitle()},N.prototype.getNoheader=function(){return this.$noheader()},N.prototype.getNofooter=function(){return this.$nofooter()},N.prototype.hasHeader=function(){return this["$header?"]()},N.prototype.playbackAttributes=function(a){if(a=t(a),a){const oe=a["$[]"]("attribute_entries");if(oe&&Array.isArray(oe)){const se=[];for(let K=0;K<oe.length;K++){const ye=oe[K];ye&&typeof ye=="object"&&ye.constructor.name==="Object"&&(ye.$name=function(){return this.name},ye.$value=function(){return this.value},ye.$negate=function(){return this.negate}),se.push(ye)}a["$[]="]("attribute_entries",se)}}this.$playback_attributes(a)},N.prototype.deleteAttribute=function(a){return this.$delete_attribute(a)},N.prototype.isAttributeLocked=function(a){return this["$attribute_locked?"](a)},N.prototype.restoreAttributes=function(){return this.$restore_attributes()},N.prototype.parse=function(a){return this.$parse(a)},N.prototype.getDocinfo=function(a,oe){return this.$docinfo(a,oe)},N.prototype.hasDocinfoProcessors=function(a){return this["$docinfo_processors?"](a)},N.prototype.incrementAndStoreCounter=function(a,oe){return this.$increment_and_store_counter(a,oe)},N.prototype.counterIncrement=N.prototype.incrementAndStoreCounter,N.prototype.counter=function(a,oe){return this.$counter(a,oe)},N.prototype.getSafe=function(){return this.safe},N.prototype.getCompatMode=function(){return this.compat_mode},N.prototype.getSourcemap=function(){const a=this.sourcemap;return a===Opal.nil?!1:a},N.prototype.setSourcemap=function(a){this.sourcemap=a},N.prototype.getCounters=function(){return r(this.counters)},N.prototype.getCallouts=function(){return this.$callouts()},N.prototype.getBaseDir=function(){return this.base_dir},N.prototype.getOptions=function(){return r(this.options)},N.prototype.getOutfilesuffix=function(){return this.outfilesuffix},N.prototype.getParentDocument=function(){const a=this.parent_document;return a===Opal.nil?void 0:a},N.prototype.getReader=function(){return this.reader},N.prototype.getConverter=function(){return this.converter},N.prototype.getExtensions=function(){const a=this.extensions;return a===Opal.nil?void 0:a};const ne=N.Title;ne.prototype.getMain=function(){return this.main},ne.prototype.getCombined=function(){return this.combined},ne.prototype.getSubtitle=function(){const a=this.subtitle;return a===Opal.nil?void 0:a},ne.prototype.isSanitized=function(){const a=this["$sanitized?"]();return a===Opal.nil?!1:a},ne.prototype.hasSubtitle=function(){return this["$subtitle?"]()};const me=Opal.Asciidoctor.Inline;me.create=function(a,oe,se,K){return this.$new(a,oe,se,i(K))},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 Q=Opal.Asciidoctor.List;Q.prototype.hasItems=function(){return this["$items?"]()},Q.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 le=Opal.Asciidoctor.Reader;le.prototype.pushInclude=function(a,oe,se,K,ye){return this.$push_include(a,oe,se,K,t(ye))},le.prototype.getCursor=function(){return this.$cursor()},le.prototype.getLines=function(){return this.$lines()},le.prototype.getString=function(){return this.$string()},le.prototype.hasMoreLines=function(){return this["$has_more_lines?"]()},le.prototype.isEmpty=function(){return this["$empty?"]()},le.prototype.peekLine=function(a){a=a||!1;const oe=this.$peek_line(a);return oe===Opal.nil?void 0:oe},le.prototype.readLine=function(){const a=this.$read_line();return a===Opal.nil?void 0:a},le.prototype.readLines=function(){return this.$read_lines()},le.prototype.read=function(){return this.$read()},le.prototype.advance=function(){return this.$advance()};const Ee=Opal.Asciidoctor.Reader.Cursor;Ee.prototype.getFile=function(){const a=this.file;return a===Opal.nil?void 0:a},Ee.prototype.getDirectory=function(){const a=this.dir;return a===Opal.nil?void 0:a},Ee.prototype.getPath=function(){const a=this.path;return a===Opal.nil?void 0:a},Ee.prototype.getLineNumber=function(){return this.lineno};function te(a,oe){const se=Opal.const_get_qualified(Opal.Logger,"Formatter");return l(se,a,oe,{},{call:function(K){for(let ye=0;ye<K.length;ye++)typeof K[ye]=="object"&&"$$smap"in K[ye]&&(K[ye]=r(K[ye]));return K}})}function Ce(a,oe){const se=Opal.const_get_qualified(Opal.Asciidoctor,"Logger");return l(se,a,oe,{},{add:function(K){if(K.length>=2&&typeof K[2]=="object"&&"$$smap"in K[2]){const ye=K[2],y=r(ye);y.getText=function(){return this.text},y.getSourceLocation=function(){return this.source_location},y.$inspect=function(){const X=this.getSourceLocation();return X?X.getPath()+": line "+X.getLineNumber()+": "+this.getText():this.getText()},K[2]=y}return K.length>=1&&(K[1]=K[1]===Opal.nil?void 0:K[1]),K}})}const fe=Opal.const_get_qualified(Opal.Asciidoctor,"LoggerManager",!0);Opal.Asciidoctor.LoggerManager=fe,fe.getLogger=function(){return this.$logger()},fe.setLogger=function(a){this["$logger="](a)},fe.newLogger=function(a,oe){return Ce(a,oe).$new()},fe.newFormatter=function(a,oe){return te(a,oe).$new()};const x=Opal.const_get_qualified(Opal.Logger,"Severity",!0);Opal.Asciidoctor.LoggerSeverity=x,x.get=function(a){return x.$constants()[a]};const Ae=Opal.const_get_qualified(Opal.Logger,"Formatter",!0);Opal.Asciidoctor.LoggerFormatter=Ae,Ae.prototype.call=function(a,oe,se,K){return this.$call(x.get(a),oe,se,K)};const B=Opal.const_get_qualified(Opal.Asciidoctor,"MemoryLogger",!0);Opal.Asciidoctor.MemoryLogger=B,B.create=function(){return this.$new()},B.prototype.getMessages=function(){const a=this.messages,oe=[];for(let se=0;se<a.length;se++){const K=a[se],ye=r(K);typeof ye.message=="string"?ye.getText=function(){return this.message}:(ye.message=r(ye.message),ye.getText=function(){return this.message.text}),ye.getSeverity=function(){return this.severity.toString()},ye.getSourceLocation=function(){return this.message.source_location},oe.push(ye)}return oe};const he=Opal.const_get_qualified(Opal.Asciidoctor,"Logging",!0);Opal.Asciidoctor.Logging=he,he.getLogger=function(){return fe.$logger()},he.createLogMessage=function(a,oe){return he.prototype.$message_with_context(a,t(oe))},le.prototype.getLogger=he.getLogger,le.prototype.createLogMessage=he.createLogMessage,C.prototype.getLogger=he.getLogger,C.prototype.createLogMessage=he.createLogMessage;const W=Opal.const_get_qualified(Opal.Asciidoctor,"Logger",!0);Opal.Asciidoctor.Logger=W,W.prototype.getMaxSeverity=function(){const a=this.max_severity;return a===Opal.nil?void 0:a},W.prototype.getFormatter=function(){return this.formatter},W.prototype.setFormatter=function(a){this.formatter=a},W.prototype.getLevel=function(){return this.level},W.prototype.setLevel=function(a){this.level=a},W.prototype.getProgramName=function(){return this.progname},W.prototype.setProgramName=function(a){this.progname=a};const Fe=Opal.const_get_qualified("::","Logger"),$e=function(a,oe,se){a["$"+oe](se)};Fe.prototype.add=function(a,oe,se){const K=typeof a=="string"?x[a.toUpperCase()]:a;this.$add(K,oe,se)},Fe.prototype.log=Fe.prototype.add,Fe.prototype.debug=function(a){$e(this,"debug",a)},Fe.prototype.info=function(a){$e(this,"info",a)},Fe.prototype.warn=function(a){$e(this,"warn",a)},Fe.prototype.error=function(a){$e(this,"error",a)},Fe.prototype.fatal=function(a){$e(this,"fatal",a)},Fe.prototype.isDebugEnabled=function(){return this["$debug?"]()},Fe.prototype.isInfoEnabled=function(){return this["$info?"]()},Fe.prototype.isWarnEnabled=function(){return this["$warn?"]()},Fe.prototype.isErrorEnabled=function(){return this["$error?"]()},Fe.prototype.isFatalEnabled=function(){return this["$fatal?"]()};const V=Opal.const_get_qualified(Opal.Asciidoctor,"NullLogger",!0);Opal.Asciidoctor.NullLogger=V,V.create=function(){return this.$new()},V.prototype.getMaxSeverity=function(){return this.max_severity},Opal.Asciidoctor.StopIteration=Opal.StopIteration;const w=Opal.const_get_qualified(Opal.Asciidoctor,"Timings",!0);Opal.Asciidoctor.Timings=w,w.create=function(){return this.$new()},w.prototype.printReport=function(a,oe){let se;if(a)if(typeof a.$add=="function")se=function(K){a.$add(1,K)};else if(typeof a.log=="function")se=a.log;else if(typeof a.write=="function")se=function(K){a.write(K,"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 se=function(K){Opal.gvars.stdout.$write(K)};oe&&se("Input file: "+oe),se(" Time to read and parse source: "+this.$read_parse().toFixed(2)),se(" Time to convert document: "+this.$convert().toFixed(2)),se(" 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,oe){const se=typeof a=="string"?a:a[0];if(typeof oe=="function"){const y=oe.prototype,X=Object.getOwnPropertyNames(y);oe={};for(const Ue in X){const Z=X[Ue];oe[Z]=y[Z]}}const K=l(o,se,oe,{},{format:function(ye){return ye.length>=2&&typeof ye[2]=="object"&&"$$smap"in ye[2]&&(ye[2]=r(ye[2])),ye.length>=1&&(ye[1]=ye[1]===Opal.nil?void 0:ye[1]),ye},highlight:function(ye){if(ye.length>=3&&typeof ye[3]=="object"&&"$$smap"in ye[3]){let y=ye[3];y=r(y);for(const X in y){const Ue=y[X];if(X==="callouts"){const Z=n(Ue);for(const qe in Z){const R=Z[qe];for(let et=0;et<R.length;et++){const Ne=R[et];for(let Ke=0;Ke<Ne.length;Ke++)Ne[Ke]=Ne[Ke]===Opal.nil?void 0:Ne[Ke]}}y[X]=Z}else y[X]=Ue===Opal.nil?void 0:Ue}ye[3]=y}return ye.length>=2&&(ye[2]=ye[2]===Opal.nil?void 0:ye[2]),ye}});for(const ye in oe)Object.prototype.hasOwnProperty.call(oe,ye)&&function(y){const X=oe[y];y==="handlesHighlighting"?Opal.def(K,"$highlight?",function(){return X.call()}):y==="hasDocinfo"&&Opal.def(K,"$docinfo?",function(Ue){return X.apply(this,[Ue])})}(ye);return Opal.def(K,"$name",function(){return se}),$.$register(K,a),K},$.get=function(a){const oe=$.$for(a);return oe===Opal.nil?void 0:oe},$.for=$.get;const o=Opal.const_get_qualified($,"Base",!0);Opal.Asciidoctor.SyntaxHighlighterBase=o,o.prototype.registerFor=function(a){$.$register(this,a)};const c=Opal.Asciidoctor.Table;c.create=function(a,oe){return this.$new(a,t(oe))},c.prototype.getCaption=function(){return this.caption},c.prototype.getRows=function(){return this.rows},c.prototype.getColumns=function(){return this.columns},c.prototype.getHeadRows=function(){return this.rows.head},c.prototype.hasHeadRows=function(){return this.rows!==Opal.nil&&this.rows.head.length>0},c.prototype.getBodyRows=function(){return this.rows.body},c.prototype.hasBodyRows=function(){return this.rows!==Opal.nil&&this.rows.body.length>0},c.prototype.getFootRows=function(){return this.rows.foot},c.prototype.hasFootRows=function(){return this.rows!==Opal.nil&&this.rows.foot.length>0},c.prototype.hasHeaderOption=function(){return this.has_header_option},c.prototype.hasFooterOption=function(){return this.isOption("footer")},c.prototype.hasAutowidthOption=function(){return this.isOption("autowidth")},c.prototype.getRowCount=function(){return this.getAttribute("rowcount")},c.prototype.setRowCount=function(a){this.setAttribute("rowcount",a)},c.prototype.getColumnCount=function(){return this.getAttribute("colcount")},c.prototype.setColumnCount=function(a){this.setAttribute("colcount",a)};const p=Opal.Asciidoctor.Table.Rows;p.create=function(a,oe,se){return this.$new(a,oe,se)},p.prototype.getHead=function(){return this.head},p.prototype.getFoot=function(){return this.foot},p.prototype.getBody=function(){return this.body},p.prototype.bySection=function(){return[["head",this.head],["body",this.body],["foot",this.foot]]};const m=Opal.Asciidoctor.Table.Column;m.create=function(a,oe,se){return this.$new(a,oe,t(se))},m.prototype.getColumnNumber=function(){return this.getAttribute("colnumber")},m.prototype.getWidth=function(){return this.getAttribute("width")},m.prototype.getHorizontalAlign=function(){return this.getAttribute("halign")},m.prototype.getVerticalAlign=function(){return this.getAttribute("valign")},m.prototype.getStyle=function(){const a=this.style;return a===Opal.nil?void 0:a};const E=Opal.Asciidoctor.Table.Cell;E.create=function(a,oe,se,K){return this.$new(a,oe,t(se),t(K))},E.prototype.getColumnSpan=function(){const a=this.colspan;return a===Opal.nil?void 0:a},E.prototype.setColumnSpan=function(a){return this["$colspan="](a)},E.prototype.getRowSpan=function(){const a=this.rowspan;return a===Opal.nil?void 0:a},E.prototype.setRowSpan=function(a){return this["$rowspan="](a)},E.prototype.getContent=function(){return this.$content()},E.prototype.getText=function(){return this.$text()},E.prototype.getSource=function(){return this.$source()},E.prototype.getLines=function(){return this.$lines()},E.prototype.getLineNumber=function(){const a=this.$lineno();return a===Opal.nil?void 0:a},E.prototype.getFile=function(){const a=this.$file();return a===Opal.nil?void 0:a},E.prototype.getStyle=function(){const a=this.$style();return a===Opal.nil?void 0:a},E.prototype.getColumn=function(){const a=this.$column();return a===Opal.nil?void 0:a},E.prototype.getWidth=function(){return this.getAttribute("width")},E.prototype.getColumnPercentageWidth=function(){return this.getAttribute("colpcwidth")},E.prototype.getInnerDocument=function(){const a=this.inner_document;return a===Opal.nil?void 0:a};const T=Opal.Asciidoctor.Converter.TemplateConverter;if(T){Opal.Asciidoctor.TemplateConverter=T,T.create=function(oe,se,K){K&&K.template_cache&&(K.template_cache=t(K.template_cache)),this.$new(oe,se,t(K))},T.getCache=function(){const oe=r(this.caches);if(oe){if(oe.scans){oe.scans=r(oe.scans);for(const se in oe.scans)oe.scans[se]=r(oe.scans[se])}oe.templates&&(oe.templates=r(oe.templates))}return oe},T.clearCache=function(){this.$clear_caches()},T.prototype.convert=function(oe,se,K){return this.$convert(oe,se,t(K))},T.prototype.handles=function(oe){return this["$handles?"](oe)},T.prototype.getContentOnly=function(oe){return this.$content_only(oe)},T.prototype.skip=function(oe){this.$skip(oe)},T.prototype.getTemplates=function(){return r(this.$templates())},T.prototype.register=function(oe,se){return this.$register(oe,se)};const a={};a.registry={},Opal.Asciidoctor.TemplateEngine=a,a.register=function(oe,se){if(typeof oe=="string")this.registry[oe]=se;else for(let K=0;K<oe.length;K++){const ye=oe[K];this.registry[ye]=se}}}const re=Opal.Asciidoctor.Converter.CompositeConverter;re&&(Opal.Asciidoctor.CompositeConverter=re,re.prototype.convert=function(a,oe,se){return this.$convert(a,oe,t(se))},re.prototype.getContentOnly=function(a){return this.$content_only(a)},re.prototype.skip=function(a){this.$skip(a)},re.prototype.getConverters=function(){return this.converters},re.prototype.getConverter=function(a){const oe=this.$converter_for(a);return oe===Opal.nil?void 0:oe},re.prototype.findConverter=function(a){return this.$find_converter(a)});const je=Opal.const_get_qualified(Opal.Asciidoctor,"Converter");Opal.Asciidoctor.Converter=je,je.prototype.convert=function(a,oe,se){return this.$convert(a,oe,t(se))},je.create=function(a,oe){return this.$create(a,t(oe))};const nt=Opal.Asciidoctor.Converter.Factory,ft=Opal.Asciidoctor.Converter.Base;Opal.Asciidoctor.ConverterFactory=nt;const yt=Opal.Asciidoctor.Converter.BackendTraits;Opal.Asciidoctor.ConverterBackendTraits=yt,nt.register=function(a,oe){const se=[s(a)].concat(oe);return je.$register.apply(je,se)},nt.getDefault=function(a){return this.$default(a)},nt.prototype.create=function(a,oe){return this.$create(a,t(oe))},nt.getRegistry=function(){return r(je.$registry())},nt.for=function(a){const oe=je.$for(a);return oe===Opal.nil?void 0:oe},nt.unregisterAll=function(){const a=je.DefaultFactory.$$cvars["@@registry"];je.DefaultFactory.$$cvars["@@registry"]=t({html5:a["$[]"]("html5")})};const zt=Opal.Asciidoctor.Converter.Html5Converter;Opal.Asciidoctor.Html5Converter=zt,zt.create=function(){return this.$new()},zt.prototype.convert=function(a,oe,se){return this.$convert(a,oe,se)};const _t=function(a){return a.$$arity=a.length,a},vt=function(a,oe,se,K){return typeof se=="object"||se.$$is_class?a["$"+oe](se,K):Opal.send(a,oe,K&&[K],_t(se))},mt=Opal.const_get_qualified(Opal.Asciidoctor,"Extensions");Opal.Asciidoctor.Extensions=mt,mt.create=function(a,oe){return typeof a=="function"&&typeof oe>"u"?Opal.send(this,"create",null,_t(a)):typeof oe=="function"?Opal.send(this,"create",[a],_t(oe)):this.$create()},mt.register=function(a,oe){return typeof a=="function"&&typeof oe>"u"?Opal.send(this,"register",null,_t(a)):Opal.send(this,"register",[a],_t(oe))},mt.getGroups=function(){return r(this.$groups())},mt.unregisterAll=function(){this.$unregister_all()},mt.unregister=function(){const a=Array.prototype.concat.apply([],arguments),oe=this.$groups(),se={};let K=0;const ye=oe.$$keys;for(;K<ye.length;K++){const y=ye[K];se[y.toString()]=y}for(let y=0;y<a.length;y++){const X=a[y];X in se&&Opal.hash_delete(oe,se[X])}};const wt=mt.Registry;wt.prototype.getGroups=mt.getGroups,wt.prototype.unregisterAll=function(){this.groups=Opal.hash()},wt.prototype.unregister=mt.unregister,wt.prototype.prefer=function(a,oe){return arguments.length===1&&(oe=a,a=null),typeof oe=="object"||oe.$$is_class?this.$prefer(a,oe):Opal.send(this,"prefer",a&&[a],_t(oe))},wt.prototype.block=function(a,oe){return arguments.length===1&&(oe=a,a=null),vt(this,"block",oe,a)},wt.prototype.inlineMacro=function(a,oe){return arguments.length===1&&(oe=a,a=null),vt(this,"inline_macro",oe,a)},wt.prototype.includeProcessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),vt(this,"include_processor",oe,a)},wt.prototype.blockMacro=function(a,oe){return arguments.length===1&&(oe=a,a=null),vt(this,"block_macro",oe,a)},wt.prototype.treeProcessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),vt(this,"tree_processor",oe,a)},wt.prototype.postprocessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),vt(this,"postprocessor",oe,a)},wt.prototype.preprocessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),vt(this,"preprocessor",oe,a)},wt.prototype.docinfoProcessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),vt(this,"docinfo_processor",oe,a)},wt.prototype.hasPreprocessors=function(){return this["$preprocessors?"]()},wt.prototype.hasTreeProcessors=function(){return this["$tree_processors?"]()},wt.prototype.hasIncludeProcessors=function(){return this["$include_processors?"]()},wt.prototype.hasPostprocessors=function(){return this["$postprocessors?"]()},wt.prototype.hasDocinfoProcessors=function(a){return this["$docinfo_processors?"](a)},wt.prototype.hasBlocks=function(){return this["$blocks?"]()},wt.prototype.hasBlockMacros=function(){return this["$block_macros?"]()},wt.prototype.hasInlineMacros=function(){return this["$inline_macros?"]()},wt.prototype.getPreprocessors=function(){return this.$preprocessors()},wt.prototype.getTreeProcessors=function(){return this.$tree_processors()},wt.prototype.getIncludeProcessors=function(){return this.$include_processors()},wt.prototype.getPostprocessors=function(){return this.$postprocessors()},wt.prototype.getDocinfoProcessors=function(a){return this.$docinfo_processors(a)},wt.prototype.getBlocks=function(){return this.block_extensions.$values()},wt.prototype.getBlockMacros=function(){return this.block_macro_extensions.$values()},wt.prototype.getInlineMacros=function(){return this.$inline_macros()},wt.prototype.getInlineMacroFor=function(a){const oe=this["$registered_for_inline_macro?"](a);return oe===!1?void 0:oe},wt.prototype.getBlockFor=function(a,oe){if(typeof oe>"u"){const K=this.$find_block_extension(a);return K===Opal.nil?void 0:K}const se=this["$registered_for_block?"](a,oe);return se===!1?void 0:se},wt.prototype.getBlockMacroFor=function(a){const oe=this["$registered_for_block_macro?"](a);return oe===!1?void 0:oe};const St=mt.Processor;St.prototype.prepend=function(){this.$option("position",">>")},St.prototype.process=function(a){const oe={apply:function(K,ye,y){for(let X=0;X<y.length;X++)typeof y[X]=="object"&&"$$smap"in y[X]&&(y[X]=r(y[X]));return K.apply(ye,y)}},se=new Proxy(a,oe);return Opal.send(this,"process",null,_t(se))},St.prototype.named=function(a){return this.$named(a)},St.prototype.createBlock=function(a,oe,se,K,ye){return this.$create_block(a,oe,se,t(K),t(ye))},St.prototype.createList=function(a,oe,se){return this.$create_list(a,oe,t(se))},St.prototype.createListItem=function(a,oe){return this.$create_list_item(a,oe)},St.prototype.createImageBlock=function(a,oe,se){return this.$create_image_block(a,t(oe),t(se))},St.prototype.createParagraph=function(a,oe,se,K){return this.$create_paragraph(a,oe,t(se),t(K))},St.prototype.createOpenBlock=function(a,oe,se,K){return this.$create_open_block(a,oe,t(se),t(K))},St.prototype.createExampleBlock=function(a,oe,se,K){return this.$create_example_block(a,oe,t(se),t(K))},St.prototype.createPassBlock=function(a,oe,se,K){return this.$create_pass_block(a,oe,t(se),t(K))},St.prototype.createListingBlock=function(a,oe,se,K){return this.$create_listing_block(a,oe,t(se),t(K))},St.prototype.createLiteralBlock=function(a,oe,se,K){return this.$create_literal_block(a,oe,t(se),t(K))},St.prototype.createAnchor=function(a,oe,se){return se&&se.attributes&&(se.attributes=t(se.attributes)),this.$create_anchor(a,oe,t(se))},St.prototype.createInlinePass=function(a,oe,se){return se&&se.attributes&&(se.attributes=t(se.attributes)),this.$create_inline_pass(a,oe,t(se))},St.prototype.createInline=function(a,oe,se,K){return K&&K.attributes&&(K.attributes=t(K.attributes)),this.$create_inline(a,oe,se,t(K))},St.prototype.parseContent=function(a,oe,se){return this.$parse_content(a,oe,t(se))},St.prototype.parseAttributes=function(a,oe,se){return se&&se.attributes&&(se.attributes=t(se.attributes)),r(this.$parse_attributes(a,oe,t(se)))},St.prototype.positionalAttributes=function(a){return this.$positional_attrs(a)},St.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)},St.prototype.resolvesAttributes=St.prototype.resolveAttributes,St.prototype.getConfig=function(){return r(this.config)},St.prototype.option=function(a,oe){this.$option(a,oe)};const Oe=mt.BlockProcessor;Oe.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},Oe.prototype.onContext=function(a){return this.$on_context(a)},Oe.prototype.onContexts=function(a){return this.$on_contexts(Array.prototype.slice.call(arguments))},Oe.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},Oe.prototype.parseContentAs=function(a){this.$parse_content_as(a)};const ze=mt.BlockMacroProcessor;ze.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},ze.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},ze.prototype.parseContentAs=function(a){this.$parse_content_as(a)};const De=mt.InlineMacroProcessor;De.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},De.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},De.prototype.parseContentAs=function(a){this.$parse_content_as(a)},De.prototype.matchFormat=function(a){this.$match_format(a)},De.prototype.match=function(a){this.$match(a)};const Ge=mt.IncludeProcessor;Ge.prototype.handles=function(a){return Opal.send(this,"handles?",null,_t(a))},Ge.prototype.prefer=function(){this.$prefer()};const v=mt.TreeProcessor;v.prototype.prefer=function(){this.$prefer()};const q=mt.Postprocessor;q.prototype.prefer=function(){this.$prefer()};const we=mt.Preprocessor;we.prototype.prefer=function(){this.$prefer()};const Me=mt.DocinfoProcessor;Me.prototype.prefer=function(){this.$prefer()},Me.prototype.atLocation=function(a){this.$at_location(a)};function Qe(a,oe,se){const K=Opal.const_get_qualified(mt,a);return l(K,oe,se,{"handles?":function(){return!0}})}mt.createPostprocessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),Qe("Postprocessor",a,oe)},mt.newPostprocessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),this.createPostprocessor(a,oe).$new()},mt.createPreprocessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),Qe("Preprocessor",a,oe)},mt.newPreprocessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),this.createPreprocessor(a,oe).$new()},mt.createTreeProcessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),Qe("TreeProcessor",a,oe)},mt.newTreeProcessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),this.createTreeProcessor(a,oe).$new()},mt.createIncludeProcessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),Qe("IncludeProcessor",a,oe)},mt.newIncludeProcessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),this.createIncludeProcessor(a,oe).$new()},mt.createDocinfoProcessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),Qe("DocinfoProcessor",a,oe)},mt.newDocinfoProcessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),this.createDocinfoProcessor(a,oe).$new()},mt.createBlockProcessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),Qe("BlockProcessor",a,oe)},mt.newBlockProcessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),this.createBlockProcessor(a,oe).$new()},mt.createInlineMacroProcessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),Qe("InlineMacroProcessor",a,oe)},mt.newInlineMacroProcessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),this.createInlineMacroProcessor(a,oe).$new()},mt.createBlockMacroProcessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),Qe("BlockMacroProcessor",a,oe)},mt.newBlockMacroProcessor=function(a,oe){return arguments.length===1&&(oe=a,a=null),this.createBlockMacroProcessor(a,oe).$new()};var ct="3.0.4";return Opal.Asciidoctor.prototype.getVersion=function(){return ct},Opal.Asciidoctor}const u8=o8();function c8(e){return e.trim().replace(/^\\[([$]/,"").replace(/\\[)\]$]$/,"")}function $8(e){return e=e.replace(/(<div class="stemblock">\s*<div class="content">)([\s\S]*?)(<\/div>\s*<\/div>)/g,(t,r,n,i)=>r+di(c8(n),!0)+i),e.replace(/\\\(([\s\S]+?)\\\)/g,(t,r)=>di(r,!1)).replace(/\\\[([\s\S]+?)\\\]/g,(t,r)=>di(r,!0)).replace(/\\\$([\s\S]+?)\\\$/g,(t,r)=>di(r,!1))}function ob(e,t){const r=gv($8(u8.convert(String(e??""),{standalone:!1})));return By(r,t)}function f8({node:e,onNavigate:t}){return Sc(e),ge.jsxs("div",{className:"text",children:[e.title&&ge.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ge.jsx("p",{className:"chapter-subtitle",children:e.description}),ge.jsx(Hy,{html:ob(vi(e.value),e.path),onNavigate:t})]})}function d8({chunk:e,onNavigate:t}){return ge.jsx("div",{className:"markup",onClick:hh(t),dangerouslySetInnerHTML:{__html:ob(e.value,e.documentPath)}})}function ub(e,t,r='"'){const n=[];let i=[],s="",l=!1,f=0;const h=()=>{i.push(s),s=""},d=()=>{h(),n.push(i),i=[]};for(;f<e.length;){const k=e[f];if(l){k===r?e[f+1]===r?(s+=r,f+=2):(l=!1,f++):(s+=k,f++);continue}k===r?(l=!0,f++):k===t?(h(),f++):k===`
648
+ `||k==="\r"?(k==="\r"&&e[f+1]===`
649
+ `&&f++,d(),f++):(s+=k,f++)}return(s!==""||i.length)&&d(),n}function h8(e){return e?e==="tab"||e==="\\t"?" ":e==="space"?" ":e[0]:null}function cb(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 l=r.split(s).length-1;l>i&&(i=l,n=s)}return n}const p8=[{label:"auto",value:""},{label:"comma ,",value:","},{label:"semicolon ;",value:";"},{label:"tab",value:"tab"},{label:"pipe |",value:"|"}],S0=()=>new URLSearchParams(window.location.search);function $b(e){const t=e.get("header");return!(t==="false"||t==="0")}function c_(e,t){return e.length>=t?e:[...e,...Array(t-e.length).fill("")]}function fb({rows:e,header:t}){if(!e.length)return ge.jsx("p",{className:"csv-empty",children:"(empty)"});const r=e.reduce((s,l)=>Math.max(s,l.length),0),n=t?e[0]:null,i=t?e.slice(1):e;return ge.jsx("div",{className:"csv-scroll",children:ge.jsxs("table",{className:"csv-table",children:[n&&ge.jsx("thead",{children:ge.jsx("tr",{children:c_(n,r).map((s,l)=>ge.jsx("th",{children:s},l))})}),ge.jsx("tbody",{children:i.map((s,l)=>ge.jsx("tr",{children:c_(s,r).map((f,h)=>ge.jsx("td",{children:f},h))},l))})]})})}function m8({node:e}){const t=S0(),r=$b(t),n=String(vi(e.value)??""),i=h8(t.get("sep"))??cb(n,e.format??null),s=ub(n,i);return ge.jsxs("div",{className:"csv",children:[e.title&&ge.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ge.jsx("p",{className:"chapter-subtitle",children:e.description}),ge.jsx(fb,{rows:s,header:r})]})}function _8({rerender:e}){const t=S0(),r=t.get("sep")??"",n=$b(t),i=(s,l)=>{const f=S0();l?f.set(s,l):f.delete(s);const h=f.toString();window.history.replaceState({},"",window.location.pathname+(h?"?"+h:"")),e()};return ge.jsxs("div",{className:"csv-toolbar",children:[ge.jsxs("label",{children:["separator"," ",ge.jsx("select",{value:r,onChange:s=>i("sep",s.target.value),children:p8.map(s=>ge.jsx("option",{value:s.value,children:s.label},s.value))})]}),ge.jsxs("label",{children:[ge.jsx("input",{type:"checkbox",checked:n,onChange:s=>i("header",s.target.checked?"":"false")})," ","header row"]})]})}function g8({chunk:e}){const t=String(e.value??""),r=ub(t,cb(t,e.format??null));return ge.jsx("div",{className:"csv",children:ge.jsx(fb,{rows:r,header:!0})})}const db=()=>new URLSearchParams(window.location.search),hb=[{label:"UTF-8",value:"utf-8"},{label:"Windows-1251",value:"windows-1251"},{label:"CP866",value:"ibm866"},{label:"KOI8-R",value:"koi8-r"}],Eh="utf-8",v8=e=>hb.some(t=>t.value===e);function pb(){const e=db().get("enc")??"";return v8(e)?e:Eh}function mb(e,t){try{return new TextDecoder(t).decode(e)}catch{return new TextDecoder("utf-8").decode(e)}}function _b(e){const[t,r]=$t.useState(null),[n,i]=$t.useState(null);return $t.useEffect(()=>{let s=!1;if(r(null),i(null),e!=null)return fetch(Pi(e)).then(l=>l.arrayBuffer()).then(l=>!s&&r(new Uint8Array(l))).catch(l=>!s&&i(String(l.message||l))),()=>{s=!0}},[e]),{bytes:t,error:n}}function y8({node:e}){const t=Og(e.concrete),r=t?null:vi(e.value),n=typeof r=="string"?r:t?null:"",{bytes:i,error:s}=_b(t?e.path:null),l=pb(),f=$t.useMemo(()=>n??(i?mb(i,l):null),[n,i,l]);return s?ge.jsxs("div",{className:"error",children:["text: ",s]}):f==null?ge.jsx("div",{className:"loading",children:"reading…"}):ge.jsxs("div",{className:"text",children:[e.title&&ge.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ge.jsx("p",{className:"chapter-subtitle",children:e.description}),ge.jsx("pre",{className:"plaintext",children:f})]})}function b8({chunk:e}){const{bytes:t,error:r}=_b(e.path),n=$t.useMemo(()=>t?mb(t,Eh):null,[t]);return r?ge.jsxs("div",{className:"error",children:["text: ",r]}):n==null?ge.jsx("div",{className:"loading",children:"reading…"}):ge.jsx("pre",{className:"plaintext",children:n})}function w8({rerender:e}){const t=pb(),r=n=>{const i=db();n&&n!==Eh?i.set("enc",n):i.delete("enc");const s=i.toString();window.history.replaceState({},"",window.location.pathname+(s?"?"+s:"")),e()};return ge.jsxs("label",{className:"enc-control",children:["encoding"," ",ge.jsx("select",{value:t,onChange:n=>r(n.target.value),children:hb.map(n=>ge.jsx("option",{value:n.value,children:n.label},n.value))})]})}const x8={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:"Ÿ"},k8=e=>e<128?String.fromCharCode(e):x8[e]??String.fromCharCode(e),S8=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 E8(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function A8(e){const t=[];let r=[],n={b:!1,i:!1,u:!1,uc:1};const i=[];let s=0,l=1/0;const f=e.length;let h=0;const d=()=>s<l,k=O=>{if(!O||!d())return;const j=r[r.length-1];j&&j.b===n.b&&j.i===n.i&&j.u===n.u?j.text+=O:r.push({text:O,b:n.b,i:n.i,u:n.u})},C=()=>{d()&&(t.push(r),r=[])},N=(O,j)=>{switch(O){case"b":n.b=j!==0;break;case"i":n.i=j!==0;break;case"ul":n.u=j!==0;break;case"ulnone":n.u=!1;break;case"uc":n.uc=j??1;break;case"par":case"row":C();break;case"line":case"sect":k(`
650
+ `);break;case"tab":case"cell":k(" ");break;case"pard":case"plain":n.b=n.i=n.u=!1;break;default:S8.has(O)&&(l=Math.min(l,s));break}};for(;h<f;){const O=e[h];if(O==="{")i.push({...n}),s++,h++;else if(O==="}")s--,s<l&&(l=1/0),n=i.pop()??n,h++;else if(O==="\\"){const j=e[h+1];if(j==="\\"||j==="{"||j==="}")k(j),h+=2;else if(j==="*")l=Math.min(l,s),h+=2;else if(j==="'"){const D=parseInt(e.substr(h+2,2),16);isNaN(D)||k(k8(D)),h+=4}else if(j==="~")k(" "),h+=2;else if(j==="-")h+=2;else if(/[a-zA-Z]/.test(j??"")){let D=h+1;for(;D<f&&/[a-zA-Z]/.test(e[D]);)D++;const G=e.slice(h+1,D);let de="";for(e[D]==="-"&&(de+="-",D++);D<f&&/[0-9]/.test(e[D]);)de+=e[D++];const ne=de===""?null:parseInt(de,10);if(e[D]===" "&&D++,h=D,G==="u"&&ne!==null){d()&&k(String.fromCodePoint(ne<0?ne+65536:ne));for(let me=n.uc;me>0&&h<f;me--)if(e[h]==="\\"&&e[h+1]==="'")h+=4;else if(e[h]==="\\")h+=2;else{if(e[h]==="{"||e[h]==="}")break;h++}}else N(G,ne)}else h++}else O==="\r"||O===`
651
+ `||k(O),h++}C();const U=O=>{let j=E8(O.text).replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\n/g,"<br>");return O.u&&(j=`<u>${j}</u>`),O.i&&(j=`<em>${j}</em>`),O.b&&(j=`<strong>${j}</strong>`),j};return t.filter(O=>O.some(j=>j.text.trim()||j.text.includes(`
652
+ `))).map(O=>`<p>${O.map(U).join("")}</p>`).join(`
653
+ `)}function gb(e){const[t,r]=$t.useState(null),[n,i]=$t.useState(null);return $t.useEffect(()=>{let s=!1;return r(null),i(null),fetch(Pi(e)).then(l=>l.arrayBuffer()).then(l=>{if(s)return;const f=new TextDecoder("windows-1252").decode(new Uint8Array(l));r(A8(f))}).catch(l=>!s&&i(String(l.message||l))),()=>{s=!0}},[e]),{html:t,error:n}}function C8({node:e}){const{html:t,error:r}=gb(e.path);return r?ge.jsxs("div",{className:"error",children:["rtf: ",r]}):t==null?ge.jsx("div",{className:"loading",children:"reading RTF…"}):ge.jsxs("div",{className:"text",children:[e.title&&ge.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ge.jsx("p",{className:"chapter-subtitle",children:e.description}),ge.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:t}})]})}function T8({chunk:e}){const{html:t,error:r}=gb(e.path);return r?ge.jsxs("div",{className:"error",children:["rtf: ",r]}):t==null?ge.jsx("div",{className:"loading",children:"reading RTF…"}):ge.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:t}})}function vb({path:e}){return ge.jsxs("div",{className:"office-fallback",children:[ge.jsxs("p",{children:["Legacy ",ge.jsx("code",{children:".doc"})," (Word 97–2003) isn’t rendered in the browser — the old binary format has no reliable client-side parser. Newer ",ge.jsx("code",{children:".docx"})," files render in full."]}),ge.jsxs("p",{children:[ge.jsx("a",{className:"descend",href:Pi(e),download:!0,children:"⤓ Download the document"})," ","to open it in an office application."]})]})}function R8({node:e}){return ge.jsxs("div",{className:"text",children:[e.title&&ge.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ge.jsx("p",{className:"chapter-subtitle",children:e.description}),ge.jsx(vb,{path:e.path})]})}function z8({chunk:e}){return ge.jsx(vb,{path:e.path})}var Gr=Uint8Array,An=Uint16Array,Ah=Int32Array,Wc=new Gr([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]),Vc=new Gr([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]),E0=new Gr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),yb=function(e,t){for(var r=new An(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new Ah(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}},bb=yb(Wc,2),wb=bb.b,A0=bb.r;wb[28]=258,A0[258]=28;var xb=yb(Vc,0),N8=xb.b,$_=xb.r,C0=new An(32768);for(var $r=0;$r<32768;++$r){var Xi=($r&43690)>>1|($r&21845)<<1;Xi=(Xi&52428)>>2|(Xi&13107)<<2,Xi=(Xi&61680)>>4|(Xi&3855)<<4,C0[$r]=((Xi&65280)>>8|(Xi&255)<<8)>>1}var mi=function(e,t,r){for(var n=e.length,i=0,s=new An(t);i<n;++i)e[i]&&++s[e[i]-1];var l=new An(t);for(i=1;i<t;++i)l[i]=l[i-1]+s[i-1]<<1;var f;if(r){f=new An(1<<t);var h=15-t;for(i=0;i<n;++i)if(e[i])for(var d=i<<4|e[i],k=t-e[i],C=l[e[i]-1]++<<k,N=C|(1<<k)-1;C<=N;++C)f[C0[C]>>h]=d}else for(f=new An(n),i=0;i<n;++i)e[i]&&(f[i]=C0[l[e[i]-1]++]>>15-e[i]);return f},ys=new Gr(288);for(var $r=0;$r<144;++$r)ys[$r]=8;for(var $r=144;$r<256;++$r)ys[$r]=9;for(var $r=256;$r<280;++$r)ys[$r]=7;for(var $r=280;$r<288;++$r)ys[$r]=8;var io=new Gr(32);for(var $r=0;$r<32;++$r)io[$r]=5;var I8=mi(ys,9,0),q8=mi(ys,9,1),M8=mi(io,5,0),D8=mi(io,5,1),P$=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Zn=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},U$=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Ch=function(e){return(e+7)/8|0},Yc=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Gr(e.subarray(t,r))},L8=["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"],Sn=function(e,t,r){var n=new Error(t||L8[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,Sn),!r)throw n;return n},F8=function(e,t,r,n){var i=e.length,s=n?n.length:0;if(!i||t.f&&!t.l)return r||new Gr(0);var l=!r,f=l||t.i!=2,h=t.i;l&&(r=new Gr(i*3));var d=function(ft){var yt=r.length;if(ft>yt){var zt=new Gr(Math.max(yt*2,ft));zt.set(r),r=zt}},k=t.f||0,C=t.p||0,N=t.b||0,U=t.l,O=t.d,j=t.m,D=t.n,G=i*8;do{if(!U){k=Zn(e,C,1);var de=Zn(e,C+1,3);if(C+=3,de)if(de==1)U=q8,O=D8,j=9,D=5;else if(de==2){var be=Zn(e,C,31)+257,le=Zn(e,C+10,15)+4,Ee=be+Zn(e,C+5,31)+1;C+=14;for(var te=new Gr(Ee),Ce=new Gr(19),fe=0;fe<le;++fe)Ce[E0[fe]]=Zn(e,C+fe*3,7);C+=le*3;for(var x=P$(Ce),Ae=(1<<x)-1,B=mi(Ce,x,1),fe=0;fe<Ee;){var he=B[Zn(e,C,Ae)];C+=he&15;var ne=he>>4;if(ne<16)te[fe++]=ne;else{var W=0,Fe=0;for(ne==16?(Fe=3+Zn(e,C,3),C+=2,W=te[fe-1]):ne==17?(Fe=3+Zn(e,C,7),C+=3):ne==18&&(Fe=11+Zn(e,C,127),C+=7);Fe--;)te[fe++]=W}}var $e=te.subarray(0,be),V=te.subarray(be);j=P$($e),D=P$(V),U=mi($e,j,1),O=mi(V,D,1)}else Sn(1);else{var ne=Ch(C)+4,me=e[ne-4]|e[ne-3]<<8,Q=ne+me;if(Q>i){h&&Sn(0);break}f&&d(N+me),r.set(e.subarray(ne,Q),N),t.b=N+=me,t.p=C=Q*8,t.f=k;continue}if(C>G){h&&Sn(0);break}}f&&d(N+131072);for(var w=(1<<j)-1,$=(1<<D)-1,o=C;;o=C){var W=U[U$(e,C)&w],c=W>>4;if(C+=W&15,C>G){h&&Sn(0);break}if(W||Sn(2),c<256)r[N++]=c;else if(c==256){o=C,U=null;break}else{var p=c-254;if(c>264){var fe=c-257,m=Wc[fe];p=Zn(e,C,(1<<m)-1)+wb[fe],C+=m}var E=O[U$(e,C)&$],T=E>>4;E||Sn(3),C+=E&15;var V=N8[T];if(T>3){var m=Vc[T];V+=U$(e,C)&(1<<m)-1,C+=m}if(C>G){h&&Sn(0);break}f&&d(N+131072);var re=N+p;if(N<V){var je=s-V,nt=Math.min(V,re);for(je+N<0&&Sn(3);N<nt;++N)r[N]=n[je+N]}for(;N<re;++N)r[N]=r[N-V]}}t.l=U,t.p=o,t.b=N,t.f=k,U&&(k=1,t.m=j,t.d=O,t.n=D)}while(!k);return N!=r.length&&l?Yc(r,0,N):r.subarray(0,N)},ki=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},fl=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},H$=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:Sb,l:0};if(i==1){var l=new Gr(r[0].s+1);return l[r[0].s]=1,{t:l,l:1}}r.sort(function(Q,be){return Q.f-be.f}),r.push({s:-1,f:25001});var f=r[0],h=r[1],d=0,k=1,C=2;for(r[0]={s:-1,f:f.f+h.f,l:f,r:h};k!=i-1;)f=r[r[d].f<r[C].f?d++:C++],h=r[d!=k&&r[d].f<r[C].f?d++:C++],r[k++]={s:-1,f:f.f+h.f,l:f,r:h};for(var N=s[0].s,n=1;n<i;++n)s[n].s>N&&(N=s[n].s);var U=new An(N+1),O=T0(r[k-1],U,0);if(O>t){var n=0,j=0,D=O-t,G=1<<D;for(s.sort(function(be,le){return U[le.s]-U[be.s]||be.f-le.f});n<i;++n){var de=s[n].s;if(U[de]>t)j+=G-(1<<O-U[de]),U[de]=t;else break}for(j>>=D;j>0;){var ne=s[n].s;U[ne]<t?j-=1<<t-U[ne]++-1:++n}for(;n>=0&&j;--n){var me=s[n].s;U[me]==t&&(--U[me],++j)}O=t}return{t:new Gr(U),l:O}},T0=function(e,t,r){return e.s==-1?Math.max(T0(e.l,t,r+1),T0(e.r,t,r+1)):t[e.s]=r},f_=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new An(++t),n=0,i=e[0],s=1,l=function(h){r[n++]=h},f=1;f<=t;++f)if(e[f]==i&&f!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)l(32754);s>2&&(l(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(l(i),--s;s>6;s-=6)l(8304);s>2&&(l(s-3<<5|8208),s=0)}for(;s--;)l(i);s=1,i=e[f]}return{c:r.subarray(0,n),n:t}},dl=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},kb=function(e,t,r){var n=r.length,i=Ch(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},d_=function(e,t,r,n,i,s,l,f,h,d,k){ki(t,k++,r),++i[256];for(var C=H$(i,15),N=C.t,U=C.l,O=H$(s,15),j=O.t,D=O.l,G=f_(N),de=G.c,ne=G.n,me=f_(j),Q=me.c,be=me.n,le=new An(19),Ee=0;Ee<de.length;++Ee)++le[de[Ee]&31];for(var Ee=0;Ee<Q.length;++Ee)++le[Q[Ee]&31];for(var te=H$(le,7),Ce=te.t,fe=te.l,x=19;x>4&&!Ce[E0[x-1]];--x);var Ae=d+5<<3,B=dl(i,ys)+dl(s,io)+l,he=dl(i,N)+dl(s,j)+l+14+3*x+dl(le,Ce)+2*le[16]+3*le[17]+7*le[18];if(h>=0&&Ae<=B&&Ae<=he)return kb(t,k,e.subarray(h,h+d));var W,Fe,$e,V;if(ki(t,k,1+(he<B)),k+=2,he<B){W=mi(N,U,0),Fe=N,$e=mi(j,D,0),V=j;var w=mi(Ce,fe,0);ki(t,k,ne-257),ki(t,k+5,be-1),ki(t,k+10,x-4),k+=14;for(var Ee=0;Ee<x;++Ee)ki(t,k+3*Ee,Ce[E0[Ee]]);k+=3*x;for(var $=[de,Q],o=0;o<2;++o)for(var c=$[o],Ee=0;Ee<c.length;++Ee){var p=c[Ee]&31;ki(t,k,w[p]),k+=Ce[p],p>15&&(ki(t,k,c[Ee]>>5&127),k+=c[Ee]>>12)}}else W=I8,Fe=ys,$e=M8,V=io;for(var Ee=0;Ee<f;++Ee){var m=n[Ee];if(m>255){var p=m>>18&31;fl(t,k,W[p+257]),k+=Fe[p+257],p>7&&(ki(t,k,m>>23&31),k+=Wc[p]);var E=m&31;fl(t,k,$e[E]),k+=V[E],E>3&&(fl(t,k,m>>5&8191),k+=Vc[E])}else fl(t,k,W[m]),k+=Fe[m]}return fl(t,k,W[256]),k+Fe[256]},j8=new Ah([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Sb=new Gr(0),B8=function(e,t,r,n,i,s){var l=s.z||e.length,f=new Gr(n+l+5*(1+Math.ceil(l/7e3))+i),h=f.subarray(n,f.length-i),d=s.l,k=(s.r||0)&7;if(t){k&&(h[0]=s.r>>3);for(var C=j8[t-1],N=C>>13,U=C&8191,O=(1<<r)-1,j=s.p||new An(32768),D=s.h||new An(O+1),G=Math.ceil(r/3),de=2*G,ne=function(_t){return(e[_t]^e[_t+1]<<G^e[_t+2]<<de)&O},me=new Ah(25e3),Q=new An(288),be=new An(32),le=0,Ee=0,te=s.i||0,Ce=0,fe=s.w||0,x=0;te+2<l;++te){var Ae=ne(te),B=te&32767,he=D[Ae];if(j[B]=he,D[Ae]=B,fe<=te){var W=l-te;if((le>7e3||Ce>24576)&&(W>423||!d)){k=d_(e,h,0,me,Q,be,Ee,Ce,x,te-x,k),Ce=le=Ee=0,x=te;for(var Fe=0;Fe<286;++Fe)Q[Fe]=0;for(var Fe=0;Fe<30;++Fe)be[Fe]=0}var $e=2,V=0,w=U,$=B-he&32767;if(W>2&&Ae==ne(te-$))for(var o=Math.min(N,W)-1,c=Math.min(32767,te),p=Math.min(258,W);$<=c&&--w&&B!=he;){if(e[te+$e]==e[te+$e-$]){for(var m=0;m<p&&e[te+m]==e[te+m-$];++m);if(m>$e){if($e=m,V=$,m>o)break;for(var E=Math.min($,m-2),T=0,Fe=0;Fe<E;++Fe){var re=te-$+Fe&32767,je=j[re],nt=re-je&32767;nt>T&&(T=nt,he=re)}}}B=he,he=j[B],$+=B-he&32767}if(V){me[Ce++]=268435456|A0[$e]<<18|$_[V];var ft=A0[$e]&31,yt=$_[V]&31;Ee+=Wc[ft]+Vc[yt],++Q[257+ft],++be[yt],fe=te+$e,++le}else me[Ce++]=e[te],++Q[e[te]]}}for(te=Math.max(te,fe);te<l;++te)me[Ce++]=e[te],++Q[e[te]];k=d_(e,h,d,me,Q,be,Ee,Ce,x,te-x,k),d||(s.r=k&7|h[k/8|0]<<3,k-=7,s.h=D,s.p=j,s.i=te,s.w=fe)}else{for(var te=s.w||0;te<l+d;te+=65535){var zt=te+65535;zt>=l&&(h[k/8|0]=d,zt=l),k=kb(h,k+1,e.subarray(te,zt))}s.i=l}return Yc(f,0,n+Ch(k)+i)},P8=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),l=new Gr(s.length+e.length);l.set(s),l.set(e,s.length),e=l,i.w=s.length}return B8(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)},$i=function(e,t){return e[t]|e[t+1]<<8},Fn=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},W$=function(e,t){return Fn(e,t)+Fn(e,t+4)*4294967296};function U8(e,t){return P8(e,t||{},0,0)}function H8(e,t){return F8(e,{i:2},t&&t.out,t&&t.dictionary)}var R0=typeof TextDecoder<"u"&&new TextDecoder,W8=0;try{R0.decode(Sb,{stream:!0}),W8=1}catch{}var V8=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:Yc(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 z0(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(R0)return R0.decode(e);var i=V8(e),s=i.s,r=i.r;return r.length&&Sn(8),s}}var Y8=function(e,t){return t+30+$i(e,t+26)+$i(e,t+28)},G8=function(e,t,r){var n=$i(e,t+28),i=$i(e,t+30),s=z0(e.subarray(t+46,t+46+n),!($i(e,t+8)&2048)),l=t+46+n,f=K8(e,l,i,r,Fn(e,t+20),Fn(e,t+24),Fn(e,t+42)),h=f[0],d=f[1],k=f[2];return[$i(e,t+10),h,d,s,l+i+$i(e,t+32),k]},K8=function(e,t,r,n,i,s,l){var f=i==4294967295,h=s==4294967295,d=l==4294967295,k=t+r,C=f+h+d;if(n&&C){for(;t+4<k;t+=4+$i(e,t+2))if($i(e,t)==1)return[f?W$(e,t+4+8*h):i,h?W$(e,t+4):s,d?W$(e,t+4+8*(h+f)):l,1];n<2&&Sn(13)}return[i,s,l,0]};function X8(e,t){for(var r={},n=e.length-22;Fn(e,n)!=101010256;--n)(!n||e.length-n>65558)&&Sn(13);var i=$i(e,n+8);if(!i)return{};var s=Fn(e,n+16),l=Fn(e,n-20)==117853008;if(l){var f=Fn(e,n-12);l=Fn(e,f)==101075792,l&&(i=Fn(e,f+32),s=Fn(e,f+48))}for(var h=0;h<i;++h){var d=G8(e,s,l),k=d[0],C=d[1],N=d[2],U=d[3],O=d[4],j=d[5],D=Y8(e,j);s=O,k?k==8?r[U]=H8(e.subarray(D,D+C),{out:new Gr(N)}):Sn(14,"unknown compression type "+k):r[U]=Yc(e,D,D+C)}return r}const Q8={},Z8=Q8?.VITE_PLANTUML_SERVER?.replace(/\/+$/,"")??"https://www.plantuml.com/plantuml";function Qo(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 V$(e,t,r){const n=e>>2,i=(e&3)<<4|t>>4,s=(t&15)<<2|r>>6,l=r&63;return Qo(n&63)+Qo(i&63)+Qo(s&63)+Qo(l&63)}function J8(e){let t="";for(let r=0;r<e.length;r+=3)r+2===e.length?t+=V$(e[r],e[r+1],0):r+1===e.length?t+=V$(e[r],0,0):t+=V$(e[r],e[r+1],e[r+2]);return t}function O8(e){const t=U8(new TextEncoder().encode(e),{level:9});return`${Z8}/svg/${J8(t)}`}function Eb({source:e}){return ge.jsx("div",{className:"filemedia",children:ge.jsx("img",{className:"fileimage plantuml",src:O8(e),alt:"PlantUML diagram"})})}function ek({node:e}){return ge.jsxs("div",{className:"text",children:[e.title&&ge.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ge.jsx("p",{className:"chapter-subtitle",children:e.description}),ge.jsx(Eb,{source:String(vi(e.value)??"")})]})}function tk({chunk:e}){return ge.jsx(Eb,{source:String(e.value??"")})}const rk={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"}},nk={"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 ik(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 Qu(e,t,r){if(t==="x-yamlover-fragment")return{glyph:"",cls:"t-fmt frag-icon",title:"fragment"};if(t){const i=nk[t]??ik(t);if(i)return{glyph:i,cls:"t-fmt",title:t}}if(r==="dir")return{glyph:"📁",cls:"t-struct",title:"folder"};if(r==="dir/yamlover")return{glyph:"🗂️",cls:"t-struct",title:"yamlover folder"};const n=rk[e];return n?{glyph:n.glyph,cls:n.cls,title:e}:{glyph:"•",cls:"t-bin",title:e||"unknown"}}const sk="x-yamlover-board",ak=new Set(["x-yamlover-tag","x-yamlover-workflow","x-yamlover-board"]);function lk(e){return e.format===sk?!0:zn(e.value).some(([t])=>t==="workflow"||t==="lanes")}const ok=new Set(["cancelled","canceled","rejected","wontfix","won't-fix","dropped","declined","abandoned","duplicate","invalid"]),Y$=e=>ok.has(e.toLowerCase()),G$=(e,t)=>{const r=zn(e).find(([n])=>n===t)?.[1];return typeof r=="string"?r:typeof r=="number"?String(r):null},uk=e=>{const t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)};function ck(e){return Ys(zn(e.value).find(([t])=>t==="workflow")?.[1])}function $k(e){const t=zn(e.value).find(([r])=>r==="lanes")?.[1];return Array.isArray(t)?t.map(r=>Array.isArray(r)?r.map(Ys).filter(n=>!!n):[]):null}const fk=new Set(["workflow","lanes","yamlover","tags"]);function dk(e){return Th(e).filter(t=>t.link&&!fk.has(t.key)).filter(t=>!(t.link.format&&ak.has(t.link.format))).map(t=>t.link.path)}function hk(e){const t=zn(e).find(([i])=>i==="yamlover-annotations")?.[1],r=Array.isArray(t)?t:[],n=[];for(const i of r){const s=Ys(i)??Ys(zn(i).find(([l])=>l==="tag")?.[1]);s&&n.push(s)}return n}function pk({node:e,onNavigate:t,openContextMenu:r}){const n=ho(Qa),[i,s]=$t.useState([]),[l,f]=$t.useState([]),[h,d]=$t.useState(null),[k,C]=$t.useState(null),[N,U]=$t.useState(null),[O,j]=$t.useState(null),D=$t.useRef(null);$t.useEffect(()=>{let Ee=!1;return(async()=>{try{const te=ck(e),fe=zn(e.value).some(([he])=>he==="lanes")?$k(await un(e.path,3)):null;let x=[];if(fe)x=await Promise.all(fe.map(async he=>({tags:await Promise.all(he.map(b0))})));else if(te){const he=(await hx(te)).filter($e=>!$e.initial),W=he.filter($e=>$e.next.length>0),Fe=he.filter($e=>$e.next.length===0);Fe.sort(($e,V)=>Number(Y$($e.label))-Number(Y$(V.label))),x=[...W.map($e=>({tags:[$e]})),...Fe.length?[{tags:Fe}]:[]]}const Ae=dk(e),B=await Promise.all(Ae.map(async he=>{const W=await un(he,2);return{path:he,title:W.title??uk(he),priority:G$(W.value,"priority"),assignee:G$(W.value,"assignee"),due:G$(W.value,"due"),tags:hk(W.value)}}));if(Ee)return;s(x),f(B),d(null)}catch(te){Ee||d(String(te?.message||te))}})(),()=>{Ee=!0}},[e.path,n]);const G=()=>i.map(Ee=>Ee.tags.map(te=>te.path)),de=Ee=>{x3(e.path,Ee).catch(te=>d(String(te?.message||te)))},ne=(Ee,te)=>{const Ce=G();Ce[Ee]||(Ce[Ee]=[]),Ce[Ee].includes(te)||Ce[Ee].push(te),de(Ce)},me=(Ee,te)=>{const Ce=G().map((fe,x)=>x===Ee?fe.filter(Ae=>Ae!==te):fe);de(Ce)},Q=()=>de([...G(),[]]),be=Ee=>de(G().filter((te,Ce)=>Ce!==Ee)),le=async Ee=>{const te=k;if(C(null),U(null),!(!te||Ee===te.from))try{await Xy(te.task,te.from,Ee),f(Ce=>Ce.map(fe=>fe.path===te.task?{...fe,tags:[...fe.tags.filter(x=>x!==te.from),Ee]}:fe))}catch(Ce){d(String(Ce?.message||Ce))}};return $t.useEffect(()=>{if(!O)return;const Ee=te=>{D.current?.contains(te.target)||j(null)};return document.addEventListener("mousedown",Ee),()=>document.removeEventListener("mousedown",Ee)},[O]),h?ge.jsxs("div",{className:"board-error",children:["Board error: ",h]}):ge.jsxs("div",{className:"board",children:[i.map((Ee,te)=>{const Ce=Ee.tags[0]?Vn({name:Ee.tags[0].label,color:Ee.tags[0].color}):"#6c7086",fe=Ee.tags.reduce((x,Ae)=>x+l.filter(B=>B.tags.includes(Ae.path)).length,0);return ge.jsxs("section",{className:"board-col",children:[ge.jsxs("header",{className:"board-col-head",style:{borderTopColor:Ce},children:[ge.jsxs("div",{className:"board-col-tags",children:[Ee.tags.length===1&&ge.jsx(ju,{tag:{path:Ee.tags[0].path,name:Ee.tags[0].label,color:Ee.tags[0].color},children:ge.jsx("button",{type:"button",className:"tagtag on",style:gi(Vn({name:Ee.tags[0].label,color:Ee.tags[0].color})),onClick:()=>me(te,Ee.tags[0].path),children:ge.jsx("span",{className:"tt-label",children:Ee.tags[0].label})})}),ge.jsx("button",{className:"board-lane-add",title:Ee.tags.length===0?"set this lane's tag":"add a sublane",onClick:x=>j({lane:te,x:x.clientX,y:x.clientY}),children:"+"})]}),ge.jsx("span",{className:"board-col-count",children:fe}),ge.jsx("button",{className:"board-lane-del",title:"remove this lane",onClick:()=>be(te),children:"🗑"})]}),ge.jsx("div",{className:"board-col-body",children:Ee.tags.map((x,Ae)=>{const B=l.filter(Fe=>Fe.tags.includes(x.path)),he=Vn({name:x.label,color:x.color}),W=Y$(x.label);return ge.jsxs("div",{className:"board-group"+(Ae>0?" board-group-split":"")+(N===x.path?" board-group-over":""),onDragOver:Fe=>{k&&(Fe.preventDefault(),N!==x.path&&U(x.path))},onDrop:Fe=>{Fe.preventDefault(),le(x.path)},children:[Ee.tags.length>1&&ge.jsxs("div",{className:"board-group-head",children:[ge.jsx("span",{className:"board-group-dot",style:gi(he)}),ge.jsx("span",{className:"board-group-title",children:x.label}),ge.jsx("span",{className:"board-col-count",children:B.length}),ge.jsx("button",{className:"board-group-del",title:"remove this sublane",onClick:()=>me(te,x.path),children:"✕"})]}),ge.jsx("div",{className:"board-group-cards",children:B.map(Fe=>ge.jsxs("article",{className:"board-card"+(W?" board-card-negative":""),draggable:!0,onDragStart:()=>C({task:Fe.path,from:x.path}),onDragEnd:()=>{C(null),U(null)},onClick:()=>t(Fe.path),onContextMenu:r?$e=>{$e.preventDefault(),r(Fe.path,$e.clientX,$e.clientY)}:void 0,title:_i(Fe.path),style:{borderLeftColor:he},children:[ge.jsx("div",{className:"board-card-title",children:Fe.title}),ge.jsxs("div",{className:"board-card-meta",children:[Fe.priority&&ge.jsx("span",{className:"board-chip prio-"+Fe.priority,children:Fe.priority}),Fe.assignee&&ge.jsxs("span",{className:"board-chip board-assignee",children:["@",Fe.assignee]}),Fe.due&&ge.jsx("span",{className:"board-chip board-due",children:Fe.due.slice(0,10)})]})]},Fe.path))})]},x.path)})})]},te)}),ge.jsx("button",{className:"board-add-lane",title:"add a lane",onClick:Q,children:"+ lane"}),O&&ge.jsx(Hd,{menuRef:D,x:O.x,y:O.y,applied:[],mode:"create",onPick:Ee=>{ne(O.lane,Ee.path),j(null)},onClose:()=>j(null),title:_i(e.path)})]})}function mk(e){const t=e.link;return t?t.format?t.format.replace(/^x-yamlover-/,"").replace(/^.*\//,""):Qs(t.concrete)?"folder":t.type??t.kind??"":"scalar"}function _k(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 gk({members:e,onNavigate:t,openContextMenu:r}){const{seq:n,paths:i}=N5(Qa),[s,l]=$t.useState({}),f=e.map(d=>d.link?.path).filter(d=>!!d),h=f.join("|");return $t.useEffect(()=>{let d=!1;return Promise.all(f.map(k=>Zl(k).then(C=>[k,C]).catch(()=>[k,[]]))).then(k=>{d||l(Object.fromEntries(k))}),()=>{d=!0}},[h]),$t.useEffect(()=>{if(n===0)return;const d=f.filter(C=>i.some(N=>N===C||N.startsWith(C+":")));if(d.length===0)return;let k=!1;return Promise.all(d.map(C=>Zl(C).then(N=>[C,N]).catch(()=>[C,[]]))).then(C=>{k||l(N=>({...N,...Object.fromEntries(C)}))}),()=>{k=!0}},[n]),ge.jsx("div",{className:"detailsview",children:ge.jsxs("table",{className:"details",children:[ge.jsx("thead",{children:ge.jsxs("tr",{children:[ge.jsx("th",{className:"details-name",children:"Name"}),ge.jsx("th",{className:"details-kind",children:"Kind"}),ge.jsx("th",{className:"details-tags",children:"Tags"}),ge.jsx("th",{className:"details-size",children:"Size"})]})}),ge.jsxs("tbody",{children:[e.map((d,k)=>{const C=d.link;if(!C)return null;const N=Qu(C.type??C.kind,C.format??null,C.concrete),U=C.title??d.key,O=s[C.path]??[];return ge.jsxs("tr",{className:"details-row",onClick:()=>t(C.path),onContextMenu:r&&!d.up?j=>{j.preventDefault(),r(C.path,j.clientX,j.clientY)}:void 0,title:_i(C.path),children:[ge.jsxs("td",{className:"details-name",children:[ge.jsx("span",{className:"details-icon "+N.cls,title:N.title,children:N.glyph}),ge.jsx("span",{className:"details-label",children:U})]}),ge.jsx("td",{className:"details-kind",children:mk(d)}),ge.jsx("td",{className:"details-tags",children:O.map((j,D)=>{if(!j.tag)return null;const G=Vn({name:j.tag.name,color:j.tag.color});return ge.jsx(ju,{tag:j.tag,children:Ld(j.tag.path)?ge.jsx(vv,{color:G,title:""}):ge.jsx("span",{className:"tagtag",style:gi(G),children:j.tag.name})},D)})}),ge.jsx("td",{className:"details-size",children:_k(d)})]},`${C.path}#${k}`)}),e.length===0&&ge.jsx("tr",{children:ge.jsx("td",{className:"details-empty",colSpan:4,children:"empty"})})]})]})})}const vk="x-yamlover-annotation",yk="$yamloverMixed",h_={large:256,thumbnails:512};function bk(e){return Object.entries(e??{}).map(([t,r])=>({key:t,link:Fr(r),up:!0})).filter(t=>t.link!=null)}function Th(e){const t=e.value;if(Array.isArray(t))return t.map((n,i)=>({key:`[${i}]`,link:Fr(n),raw:n}));if(!t||typeof t!="object")return[];const r=t[yk];return Object.keys(t).length===1&&r?.entries?r.entries.map((n,i)=>({key:n.key??`[${i}]`,link:Fr(n.value),raw:n.value})):Object.entries(t).map(([n,i])=>({key:n,link:Fr(i),raw:i}))}function wk(e){return[...bk(e.relations),...Th(e)]}function xk(e,t){const r=Th(e).filter(i=>i.link?.format!==vk),n=new Set(r.map(i=>i.link?.path).filter(Boolean));for(const i of t)n.has(i.path)||r.push({key:Ec(i.path,i.title),link:i});return r}function kk(e,t){return e.format===Js?xk(e,t):wk(e)}function Sk(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 p_(e){if(e==null)return"~";const t=String(e).split(`
654
+ `,1)[0];return t.length>80?t.slice(0,79)+"…":t}function Ek(e){return!!e&&(e.includes("/")||e.startsWith("x-yamlover-"))}function Ak(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(),l=s.left+s.width/2,f=s.top+s.height/2,h=r==="ArrowDown";let d=t,k=1/0;for(let C=0;C<n;C++){const N=e[C];if(!N||C===t)continue;const U=N.getBoundingClientRect(),O=U.left+U.width/2,j=U.top+U.height/2;if(h?j<=f+1:j>=f-1)continue;const D=Math.abs(O-l)*2+Math.abs(j-f);D<k&&(k=D,d=C)}return d}function Ck(e,t){if(e.preview)return Wp(e.preview,t,t);const r=e.format??null;return!r||!r.startsWith("image/")?null:r==="image/svg+xml"?Pi(e.path):Wp(e.path,t,t)}function Tk({link:e,glyph:t,box:r}){const[n,i]=$t.useState(!1),s=n?null:Ck(e,r);return s?ge.jsx("img",{className:"dirview-icon dirview-thumb",src:s,alt:"",loading:"lazy",onError:()=>i(!0)}):ge.jsx("span",{className:"dirview-icon "+t.cls,title:t.title,children:t.glyph})}function Rk({it:e,active:t,view:r,setRef:n,onFocus:i,onNavigate:s,onContext:l}){const f=e.link,h=t?0:-1,d=f&&!e.up&&l?{onContextMenu:U=>{U.preventDefault(),l(f.path,U.clientX,U.clientY)}}:{};if(!f){const U=Qu(Sk(e.raw),null);return ge.jsxs("span",{className:"dirview-item",ref:n,tabIndex:h,onFocus:i,children:[ge.jsx("span",{className:"dirview-icon "+U.cls,title:U.title,children:U.glyph}),ge.jsxs("span",{className:"dirview-label",children:[e.key,": ",p_(e.raw)]})]})}const k=Qu(f.type??f.kind,f.format??null,f.concrete),C=e.up?m3(e.key):f.title??e.key,N=f.format===Js?ge.jsx("span",{className:"tagtag",style:gi(Vn({name:C,color:f.color})),children:C}):f.kind==="scalar"&&!Ek(f.format)?ge.jsxs(ge.Fragment,{children:[C,": ",ge.jsx("span",{className:"val",children:p_(f.value)})]}):C;return ge.jsxs("a",{className:"dirview-item"+(e.up?" dirview-up":""),href:f.path,title:_i(f.path),ref:n,tabIndex:h,onFocus:i,onClick:U=>{U.preventDefault(),s(f.path)},...d,children:[h_[r]&&!e.up?ge.jsx(Tk,{link:f,glyph:k,box:h_[r]}):ge.jsx("span",{className:"dirview-icon "+k.cls,title:k.title,children:k.glyph}),ge.jsx("span",{className:"dirview-label",children:N})]})}function zk({node:e,view:t,onNavigate:r}){const n=e.format===Js,[i,s]=$t.useState([]),l=ho(Qa),{openAt:f,tagMenu:h}=Wd();$t.useEffect(()=>{if(s([]),!n)return;let de=!1;return y3(e.path).then(ne=>{de||s(ne.map(Fr).filter(me=>me!=null))}).catch(()=>{}),()=>{de=!0}},[e.path,n,l]);const d=kk(e,i),k=$t.useRef(null),C=$t.useRef([]);C.current.length=d.length;const[N,U]=$t.useState(0);$t.useEffect(()=>{N>d.length-1&&U(Math.max(0,d.length-1))},[d.length,N]);const O=$t.useRef(!0);$t.useEffect(()=>{U(0),O.current=!0},[e.path]),$t.useEffect(()=>{!O.current||!d.length||(O.current=!1,!k.current?.closest(".chunk-body")&&C.current[0]?.focus({preventScroll:!0}))},[d.length,e.path]);const j=de=>{if(de.ctrlKey||de.altKey||de.metaKey||!d.length)return;if(de.key==="Enter"){const me=d[N]?.link;me&&(de.preventDefault(),r(me.path));return}if(!/^(Arrow(Up|Down|Left|Right)|Home|End)$/.test(de.key))return;de.preventDefault();const ne=Ak(C.current,N,de.key,d.length);ne!==N&&(U(ne),C.current[ne]?.focus())};if(t==="board")return ge.jsxs(ge.Fragment,{children:[h,ge.jsx(pk,{node:e,onNavigate:r,openContextMenu:f})]});if(t==="details")return ge.jsxs(ge.Fragment,{children:[h,ge.jsx(gk,{members:d,onNavigate:r,openContextMenu:f})]});const D=(n?bv(e.value):null)??e.description,G="dirview"+(t!=="small"?" dirview-lg":"")+(t==="thumbnails"?" dirview-thumbs":"");return ge.jsxs("div",{className:"explorerview",children:[h,D&&ge.jsx("div",{className:"dirhead",children:ge.jsx("p",{className:"tagdesc",children:D})}),ge.jsxs("div",{ref:k,className:G,onKeyDown:j,children:[d.map((de,ne)=>ge.jsx(Rk,{it:de,active:ne===N,view:t,setRef:me=>{C.current[ne]=me},onFocus:()=>U(ne),onNavigate:r,onContext:f},`${de.up?"^":""}${de.link?.path??de.key}#${ne}`)),d.length===0&&ge.jsx("span",{className:"dirview-empty",children:"empty"})]})]})}const Ab="http://www.w3.org/1999/xlink",Nk=new RegExp("[\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F]","g");function Ik(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(Nk,"")}function qk(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Cb(e,t){if(e.nodeType===3)return qk(e.textContent||"");if(e.nodeType!==1)return"";const r=e,n=()=>Array.from(r.childNodes).map(i=>Cb(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(Ab,"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 m_({node:e}){const[t,r]=$t.useState(null),[n,i]=$t.useState(null);return $t.useEffect(()=>{let s=!1;return r(null),i(null),fetch(Pi(e.path)).then(l=>l.arrayBuffer()).then(l=>{if(s)return;const f=new DOMParser().parseFromString(Ik(l),"application/xml"),h=f.getElementsByTagName("parsererror")[0];if(h)throw new Error(h.textContent?.trim().split(`
655
+ `)[0]||"invalid FB2 XML");const d=new Map;for(const ne of Array.from(f.getElementsByTagNameNS("*","binary"))){const me=ne.getAttribute("id");if(me){const Q=ne.getAttribute("content-type")||"image/jpeg";d.set(me,`data:${Q};base64,${(ne.textContent||"").replace(/\s+/g,"")}`)}}const k=f.getElementsByTagNameNS("*","title-info")[0],C=(ne,me)=>ne?.getElementsByTagNameNS("*",me)[0]?.textContent?.trim()||"",N=C(k,"book-title")||void 0,U=k&&Array.from(k.getElementsByTagNameNS("*","author")).map(ne=>[C(ne,"first-name"),C(ne,"middle-name"),C(ne,"last-name")].filter(Boolean).join(" ")||C(ne,"nickname")).filter(Boolean).join(", "),O=k?.getElementsByTagNameNS("*","coverpage")[0]?.getElementsByTagNameNS("*","image")[0],j=(O?.getAttributeNS(Ab,"href")||O?.getAttribute("l:href")||"").replace(/^#/,""),D=Array.from(f.getElementsByTagNameNS("*","body")),G=D.find(ne=>ne.getAttribute("name")!=="notes")||D[0],de=G?Array.from(G.childNodes).map(ne=>Cb(ne,d)).join(""):"";r({title:N,author:U||void 0,cover:j?d.get(j):void 0,html:de})}).catch(l=>!s&&i(String(l.message||l))),()=>{s=!0}},[e.path]),n?ge.jsxs("div",{className:"error",children:["fb2: ",n]}):t?ge.jsxs("div",{className:"text fb2",children:[t.cover&&ge.jsx("img",{className:"fb2-cover",src:t.cover,alt:""}),t.title&&ge.jsx("h1",{className:"chapter-title",children:t.title}),t.author&&ge.jsx("p",{className:"chapter-subtitle",children:t.author}),ge.jsx("div",{className:"markup fb2-body",dangerouslySetInnerHTML:{__html:t.html}})]}):ge.jsx("div",{className:"loading",children:"loading FB2…"})}const __="http://www.w3.org/1999/xlink";function K$(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 g_(e){const t=e.lastIndexOf("/");return t<0?"":e.slice(0,t)}function v_({node:e}){const[t,r]=$t.useState(null),[n,i]=$t.useState(null);return $t.useEffect(()=>{let s=!1;const l=[];return r(null),i(null),fetch(Pi(e.path)).then(f=>f.arrayBuffer()).then(f=>{if(s)return;const h=X8(new Uint8Array(f)),d=le=>h[le]?z0(h[le]):"",k=le=>new DOMParser().parseFromString(d(le),"application/xml"),C=k("META-INF/container.xml").getElementsByTagNameNS("*","rootfile")[0]?.getAttribute("full-path");if(!C||!h[C])throw new Error("no OPF package document");const N=k(C),U=g_(C),O=new Map,j=(le,Ee="")=>{if(!h[le])return"";const te=O.get(le);if(te)return te;const Ce=URL.createObjectURL(new Blob([h[le]],{type:Ee}));return O.set(le,Ce),l.push(Ce),Ce},D=N.getElementsByTagNameNS("*","title")[0]?.textContent?.trim(),G=Array.from(N.getElementsByTagNameNS("*","creator")).map(le=>le.textContent?.trim()).filter(Boolean).join(", "),de=new Map;for(const le of Array.from(N.getElementsByTagNameNS("*","item"))){const Ee=le.getAttribute("id"),te=le.getAttribute("href");Ee&&te&&de.set(Ee,{path:K$(U,te),type:le.getAttribute("media-type")||""})}const ne=Array.from(N.getElementsByTagNameNS("*","meta")).find(le=>le.getAttribute("name")==="cover")?.getAttribute("content"),me=ne?de.get(ne):void 0,Q=me?j(me.path,me.type):void 0,be=[];for(const le of Array.from(N.getElementsByTagNameNS("*","itemref"))){const Ee=de.get(le.getAttribute("idref")||"");if(!Ee||!/html/.test(Ee.type)||!h[Ee.path])continue;const te=g_(Ee.path),fe=new DOMParser().parseFromString(z0(h[Ee.path]),"text/html").body;if(fe){fe.querySelectorAll("script, style, link").forEach(x=>x.remove());for(const x of Array.from(fe.querySelectorAll("img"))){const Ae=x.getAttribute("src"),B=Ae?j(K$(te,Ae)):"";B?x.setAttribute("src",B):x.removeAttribute("src")}for(const x of Array.from(fe.querySelectorAll("image"))){const Ae=x.getAttributeNS(__,"href")||x.getAttribute("href")||x.getAttribute("xlink:href"),B=Ae?j(K$(te,Ae)):"";B&&x.setAttributeNS(__,"xlink:href",B)}be.push(`<section class="epub-doc">${fe.innerHTML}</section>`)}}if(s){l.forEach(URL.revokeObjectURL);return}r({title:D,author:G||void 0,cover:Q,html:be.join(`
656
+ `)})}).catch(f=>!s&&i(String(f.message||f))),()=>{s=!0,l.forEach(URL.revokeObjectURL)}},[e.path]),n?ge.jsxs("div",{className:"error",children:["epub: ",n]}):t?ge.jsxs("div",{className:"text epub",children:[t.cover&&ge.jsx("img",{className:"fb2-cover",src:t.cover,alt:""}),t.title&&ge.jsx("h1",{className:"chapter-title",children:t.title}),t.author&&ge.jsx("p",{className:"chapter-subtitle",children:t.author}),ge.jsx("div",{className:"markup epub-body",dangerouslySetInnerHTML:{__html:t.html}})]}):ge.jsx("div",{className:"loading",children:"unpacking EPUB…"})}function y_({node:e}){return ge.jsx("iframe",{className:"filehtml",src:Pi(e.path),sandbox:"allow-same-origin",title:e.title??_i(e.path)})}const b_=$t.lazy(()=>Mn(()=>import("./pdf-n0dUtCdE.js"),__vite__mapDeps([0,1,2])).then(e=>({default:e.PdfView}))),w_=$t.lazy(()=>Mn(()=>import("./djvu-CZ2rFOhT.js"),__vite__mapDeps([3,1])).then(e=>({default:e.DjvuView}))),x_=$t.lazy(()=>Mn(()=>import("./psd-Z9Xy8WJM.js"),__vite__mapDeps([4,5,6,7,8])).then(e=>({default:e.PsdView}))),k_=$t.lazy(()=>Mn(()=>import("./tiff-BU7hwL9b.js"),__vite__mapDeps([9,10,5,6,7,8])).then(e=>({default:e.TiffView}))),S_=$t.lazy(()=>Mn(()=>import("./heic-V9_YmnBI.js"),__vite__mapDeps([11,5,6,7,8])).then(e=>({default:e.HeicView}))),Mk=$t.lazy(()=>Mn(()=>import("./docx-D39uvoU4.js"),__vite__mapDeps([12,10])).then(e=>({default:e.DocxView}))),Dk=$t.lazy(()=>Mn(()=>import("./docx-D39uvoU4.js"),__vite__mapDeps([12,10])).then(e=>({default:e.DocxChunk}))),Lk=$t.lazy(()=>Mn(()=>import("./spreadsheet-Cx1xwMVZ.js"),[]).then(e=>({default:e.SpreadsheetView}))),Fk=$t.lazy(()=>Mn(()=>import("./spreadsheet-Cx1xwMVZ.js"),[]).then(e=>({default:e.SpreadsheetChunk}))),jk=$t.lazy(()=>Mn(()=>import("./map-CTJuSrDN.js"),__vite__mapDeps([13,7,8])).then(e=>({default:e.MapView}))),Bk=$t.lazy(()=>Mn(()=>import("./map-CTJuSrDN.js"),__vite__mapDeps([13,7,8])).then(e=>({default:e.MapChunk}))),Pk=$t.lazy(()=>Mn(()=>import("./imagemap-b1Kpzcjf.js"),__vite__mapDeps([6,7,8])).then(e=>({default:e.ImageView}))),Uk=$t.lazy(()=>Mn(()=>import("./imagemap-b1Kpzcjf.js"),__vite__mapDeps([6,7,8])).then(e=>({default:e.ImageChunk}))),Ur=e=>ge.jsx($t.Suspense,{fallback:ge.jsx("div",{className:"loading",children:"…"}),children:e}),Qi=e=>({path:e.path,type:e.type,format:e.format,concrete:null,title:null,description:null,value:e.value}),Hk=e=>({valueType:e.valueType??null,format:e.format??null,hasKeyed:!!e.hasKeyed,hasOrdinal:!!e.hasOrdinal}),dr=(...e)=>t=>t.format!==null&&e.includes(t.format),yl=(e,t,r,n)=>({name:e,label:t,icon:r,accepts:dr("x-yamlover-tag","x-yamlover-board"),specificity:2,render:(i,s)=>ge.jsx(zk,{node:i,view:n,onNavigate:s})}),Tb=yl("tag-board","tag board","▥","board"),N0=[yl("thumbnails","thumbnails","🖼️","thumbnails"),yl("large-icons","large icons","⊞","large"),yl("small-icons","small icons","∷","small"),yl("details","details","☰","details")],Na=N0.find(e=>e.name==="large-icons"),Rb=[{name:"chapter",icon:"§",accepts:dr("x-yamlover-chapter"),specificity:2,depth:1,tocView:E_,render:(e,t)=>ge.jsx(Wy,{node:e,onNavigate:t}),config:e=>ge.jsx(Go,{rerender:e})},{name:"task",icon:"☑",accepts:dr("x-yamlover-task"),specificity:2,depth:1,tocView:E_,render:(e,t)=>ge.jsx(mx,{node:e,onNavigate:t}),config:e=>ge.jsx(Go,{rerender:e})},{name:"marklower",icon:"✍",accepts:dr("text/marklower"),specificity:2,render:(e,t)=>ge.jsx(yw,{node:e,onNavigate:t}),renderChunk:(e,t)=>ge.jsx(bw,{chunk:e,onNavigate:t})},{name:"markdown",icon:"📝",accepts:dr("text/markdown"),specificity:2,render:(e,t)=>ge.jsx(a8,{node:e,onNavigate:t}),renderChunk:(e,t)=>ge.jsx(l8,{chunk:e,onNavigate:t}),config:e=>ge.jsx(Go,{rerender:e})},{name:"asciidoc",icon:"📃",accepts:dr("text/asciidoc"),specificity:2,render:(e,t)=>ge.jsx(f8,{node:e,onNavigate:t}),renderChunk:(e,t)=>ge.jsx(d8,{chunk:e,onNavigate:t}),config:e=>ge.jsx(Go,{rerender:e})},{name:"csv",icon:"▦",accepts:dr("text/csv","text/tab-separated-values"),specificity:2,render:e=>ge.jsx(m8,{node:e}),renderChunk:e=>ge.jsx(g8,{chunk:e}),config:e=>ge.jsx(_8,{rerender:e})},{name:"plaintext",icon:"🗒️",accepts:dr("text/plain"),specificity:2,render:e=>ge.jsx(y8,{node:e}),renderChunk:e=>ge.jsx(b8,{chunk:e}),config:e=>ge.jsx(w8,{rerender:e})},{name:"rtf",icon:"📄",accepts:dr("application/rtf"),specificity:2,render:e=>ge.jsx(C8,{node:e}),renderChunk:e=>ge.jsx(T8,{chunk:e})},{name:"docx",icon:"📄",accepts:dr("application/vnd.openxmlformats-officedocument.wordprocessingml.document"),specificity:2,render:e=>Ur(ge.jsx(Mk,{node:e})),renderChunk:e=>Ur(ge.jsx(Dk,{chunk:e}))},{name:"spreadsheet",icon:"▦",accepts:dr("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel"),specificity:2,render:e=>Ur(ge.jsx(Lk,{node:e})),renderChunk:e=>Ur(ge.jsx(Fk,{chunk:e}))},{name:"doc",icon:"📄",accepts:dr("application/msword"),specificity:2,render:e=>ge.jsx(R8,{node:e}),renderChunk:e=>ge.jsx(z8,{chunk:e})},{name:"map",icon:"🗺️",accepts:dr("application/vnd.google-earth.kml+xml","application/vnd.google-earth.kmz"),specificity:2,render:e=>Ur(ge.jsx(jk,{node:e})),renderChunk:(e,t)=>Ur(ge.jsx(Bk,{chunk:e,onNavigate:t}))},{name:"latex",icon:"∑",accepts:dr("text/x-latex"),specificity:2,render:e=>ge.jsx(iw,{node:e}),renderChunk:e=>ge.jsx(sw,{chunk:e})},{name:"plantuml",icon:"📊",accepts:dr("text/x-plantuml"),specificity:2,render:e=>ge.jsx(ek,{node:e}),renderChunk:e=>ge.jsx(tk,{chunk:e})},Na,{name:"image",icon:"🖼️",accepts:dr("image/png","image/jpeg","image/gif","image/webp","image/avif","image/bmp","image/x-icon","image/svg+xml"),specificity:2,render:e=>Ur(ge.jsx(Pk,{node:e})),renderChunk:(e,t)=>Ur(ge.jsx(Uk,{chunk:e,onNavigate:t}))},{name:"html",icon:"🌐",accepts:dr("text/html"),specificity:2,render:e=>ge.jsx(y_,{node:e}),renderChunk:e=>ge.jsx(y_,{node:Qi(e)})},{name:"fb2",icon:"📘",accepts:dr("application/x-fictionbook+xml"),specificity:2,render:e=>ge.jsx(m_,{node:e}),renderChunk:e=>ge.jsx(m_,{node:Qi(e)})},{name:"epub",icon:"📗",accepts:dr("application/epub+zip"),specificity:2,render:e=>ge.jsx(v_,{node:e}),renderChunk:e=>ge.jsx(v_,{node:Qi(e)})},{name:"pdf",icon:"📕",accepts:dr("application/pdf"),specificity:2,render:e=>Ur(ge.jsx(b_,{node:e})),renderChunk:e=>Ur(ge.jsx(b_,{node:Qi(e)}))},{name:"djvu",icon:"📓",accepts:dr("image/vnd.djvu"),specificity:2,render:e=>Ur(ge.jsx(w_,{node:e})),renderChunk:e=>Ur(ge.jsx(w_,{node:Qi(e)}))},{name:"psd",icon:"🎨",accepts:dr("image/vnd.adobe.photoshop"),specificity:2,render:e=>Ur(ge.jsx(x_,{node:e})),renderChunk:(e,t)=>Ur(ge.jsx(x_,{node:Qi(e),chunk:{onNavigate:t}}))},{name:"tiff",icon:"🖼️",accepts:dr("image/tiff"),specificity:2,render:e=>Ur(ge.jsx(k_,{node:e})),renderChunk:(e,t)=>Ur(ge.jsx(k_,{node:Qi(e),chunk:{onNavigate:t}}))},{name:"heic",icon:"🖼️",accepts:dr("image/heic"),specificity:2,render:e=>Ur(ge.jsx(S_,{node:e})),renderChunk:(e,t)=>Ur(ge.jsx(S_,{node:Qi(e),chunk:{onNavigate:t}}))}];function E_(e){if(e.children.length===0)return{children:[],expandable:e.hasChildren,loaded:!1,loadDepth:2};const t=e.children.filter(r=>mh(r.format));return{children:t,expandable:t.length>0,loaded:!0,loadDepth:2}}function rl(e){const t=Hk(e);let r=null;for(const n of Rb)n.accepts(t)&&(r===null||n.specificity>r.specificity)&&(r=n);return r}function Wk(e){return lk(e)?[Tb,...N0]:N0}function X$(e){const t=[],r=rl(e);return r&&r!==Na&&t.push(r),(r===Na||Yk(e))&&t.push(...Wk(e)),t}const Vk=new Set(["object","array","mixed","variant"]),zb=e=>!!e.type&&Vk.has(e.type);function Yk(e){const t=e.concrete;return(Qs(t)||pc(t)||tv(t))&&zb(e)}const A_=Rb.find(e=>e.name==="plaintext");function Q$(e){return Qs(e.concrete)||rl(e)===A_||!(pc(e.concrete)||tv(e.concrete)||e.format==="text/markdown"||e.format==="text/asciidoc")?null:Og(e.concrete)||typeof vi(e.value)=="string"?A_:null}function fu(e,t){const r=rl(e);return r&&r!==Na?r.name:r===Na||Qs(t)&&zb(e)?e.format==="x-yamlover-board"?Tb.name:Na.name:null}function Nb(e){const t=rl(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 Gk=$t.memo(function e({node:t,current:r,onSelect:n,onLoadChildren:i,onContext:s,depth:l=0}){const{children:f,expandable:h,loaded:d,loadDepth:k}=Nb(t),[C,N]=$t.useState(f.length>0),[U,O]=$t.useState(!1),j=t.path===r,D=Rl(t.path,r),G=$t.useRef(null);$t.useEffect(()=>{D&&N(!0)},[D]),$t.useEffect(()=>{j&&G.current?.scrollIntoView?.({block:"nearest",inline:"nearest"})},[j]);const de=Qu(t.type,t.format,t.concrete),ne=C&&de.glyph==="📁"?"📂":de.glyph,me=async()=>{if(!C&&h&&!d){O(!0);try{await i(t.path,k)}finally{O(!1)}}N(Q=>!Q)};return ge.jsxs("div",{className:"tree-branch",children:[ge.jsxs("div",{ref:G,className:"tree-row"+(j?" selected":""),style:{paddingLeft:l*14+4},onContextMenu:s?Q=>{Q.preventDefault(),s(t,Q.clientX,Q.clientY)}:void 0,children:[h?ge.jsx("button",{className:"toggle"+(C?" open":"")+(U?" loading":""),onClick:me,"aria-label":C?"collapse":"expand",children:ge.jsx("span",{className:"chevron",children:"›"})}):ge.jsx("span",{className:"toggle leaf"}),ge.jsx("span",{className:"icon "+de.cls,title:de.title,children:ne}),ge.jsx("span",{className:"tree-label",onClick:()=>n(t.path),title:`${_i(t.path)} (${t.type})`,children:t.label})]}),C&&f.map(Q=>ge.jsx(e,{node:Q,current:r,onSelect:n,onLoadChildren:i,onContext:s,depth:l+1},Q.path))]})});function Kk({tasks:e}){return e.length?ge.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,l=n?`${r}/${n}`:t.state==="running"&&r>0?String(r):"";return ge.jsxs("span",{className:`task-chip ${t.state}`,title:t.error??i??t.label,children:[ge.jsxs("span",{className:"task-label",children:[t.label,l&&ge.jsxs("span",{className:"task-counts",children:[" ",l]}),t.state==="error"&&" — failed"]}),ge.jsx("span",{className:"task-bar",children:s!==null?ge.jsx("span",{className:"task-bar-fill",style:{width:`${s}%`}}):ge.jsx("span",{className:"task-bar-fill indeterminate"})})]},t.id)})}):null}function Xk(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 Qk(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 Zk(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,`
657
+ `),"text/html").querySelector("blockquote"),s=i?.querySelector("p")?.textContent?.trim();if(!s)throw new Error("no tweet text in the oEmbed payload");const l=(r.author_url??"").split("/").filter(Boolean).pop(),f=i?Array.from(i.querySelectorAll(":scope > a")):[],h=f[f.length-1]?.textContent?.trim(),d=[r.author_name,l&&`@${l}`].filter(Boolean).join(" "),k=[d&&`— ${d}`,h].filter(Boolean).join(", ");return[s,"",[k,r.url??e].filter(Boolean).join(`
658
+ `)].join(`
659
+ `)}const Jk=new Set(["script","style","noscript","template","svg","head","title"]),Ok=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 e9(e){const t=new DOMParser().parseFromString(e,"text/html"),r=n9(t9(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 l={title:s.text||"Untitled",chunks:[],children:[]};i[i.length-1].node.children.push(l),i.push({node:l,level:s.level})}else i[i.length-1].node.chunks.push(s.kind==="image"?{image:{url:s.url,alt:s.alt}}:s.kind==="embed"?{text:`*[${s.label}](${s.target})`}:{text:s.text});return n}function t9(e){const t=[];let r="";const n=()=>{const s=r.replace(/[ \t]+/g," ").replace(/ ?\n ?/g,`
660
+ `).replace(/\n{2,}/g,`
661
+ `).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 l=s.tagName.toLowerCase();if(!Jk.has(l)){if(/^h[1-6]$/.test(l)){n(),t.push({kind:"heading",level:Number(l[1]),text:(s.textContent??"").replace(/\[edit\]/gi,"").trim()});return}if(l==="img"){n();const f=r9(s);f&&t.push({kind:"image",url:f,alt:s.getAttribute("alt")??""});return}if(l==="iframe"||l==="video"||l==="audio"){const f=Ty(s);f&&xy(f)&&(n(),t.push({kind:"embed",target:f,label:s.getAttribute("title")??""}));return}if(l==="li"){n(),s.childNodes.forEach(i);const f=r.replace(/\s+/g," ").trim();r="",f&&t.push({kind:"text",text:"- "+f});return}if(l==="pre"){n();const f=(s.textContent??"").replace(/\n+$/,"");f.trim()&&t.push({kind:"text",text:"```\n"+f+"\n```"});return}if(l==="blockquote"){n(),s.childNodes.forEach(i);const f=r.trim();r="",f&&t.push({kind:"text",text:f.split(`
662
+ `).map(h=>"> "+h).join(`
663
+ `)});return}if(l==="br"){r+=`
664
+ `;return}if(l==="td"||l==="th"){s.childNodes.forEach(i),r+=" ";return}if(Ok.has(l)){n(),s.childNodes.forEach(i),n();return}if(!s.querySelector("img")){r+=uh(s);return}s.childNodes.forEach(i)}};return i(e),n(),t}function r9(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 n9(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+=`
665
+ `+r.text:t.push(r)}return t}const i9={"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 Ib(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:s9(t.image.url,n.type),contentBase64:await a9(n)}}}catch{return{text:`*[${t.image.alt}](${t.image.url})`}}})),children:await Promise.all(e.children.map(Ib))}}function s9(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+="."+(i9[t]||"bin")),r}function a9(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 qb(e){return e.chunks.filter(t=>"image"in t).length+e.children.reduce((t,r)=>t+qb(r),0)}const Mb=1,Db=()=>new URLSearchParams(window.location.search);function Rh(e){const t=e.trim().toLowerCase();return t===".inf"||t==="inf"}function C_(e){if(Rh(e))return!0;const t=Number(e);return e.trim()!==""&&Number.isInteger(t)&&t>=Mb}function I0(){const e=Db().get("depth");if(e==null||e===""||Rh(e))return null;const t=Number(e);return Number.isInteger(t)&&t>=Mb?t:null}function l9(e){const t=Db();e==null?t.delete("depth"):t.set("depth",String(e));const r=t.toString();window.history.replaceState({},"",window.location.pathname+(r?"?"+r:""))}function o9({onChange:e}){const t=I0(),r=t==null?".inf":String(t),[n,i]=$t.useState(r);$t.useEffect(()=>i(r),[r]);const s=C_(n);return ge.jsx("input",{className:"depth-control"+(s?"":" invalid"),type:"text",title:"depth",value:n,onChange:l=>{const f=l.target.value;i(f),C_(f)&&(l9(Rh(f)?null:Number(f)),e())}})}const u9=new Set(["chapter","markdown","asciidoc","marklower"]),c9=new Set(["chapter","task"]),Lb=["yamlover","json5p","yamlover/schema"],Si="yamlover",Z$=e=>e.endsWith("schema"),T_=e=>e==="json5p"?"json":"yaml";function J$(e){return pc(e.concrete)?["yamlover","json5p","yamlover/schema"]:["yamlover","yamlover/schema"]}function O$(e,t,r){return r.includes(e)?e:fu(t,t.concrete)??Si}function $9(e,t){return e!=="yamlover"||t.type==="binary"||t.valueType==="binary"?!1:!M3(t.concrete)&&!Qs(t.concrete)}function f9(e){const t=jr(e),r=t[t.length-1];return r===void 0?"":typeof r=="number"?`[${r}]`:r}const d9=$t.memo(function({path:t,format:r,refreshSignal:n=0,onFormat:i,onNavigate:s,onContentChanged:l,onOpenUploaded:f}){const[h,d]=$t.useState(null),[k,C]=$t.useState(null),[N,U]=$t.useState(null),[O,j]=$t.useState(null),[D,G]=$t.useState(0),[de,ne]=$t.useState(!1),[me,Q]=$t.useState(null),[be,le]=$t.useState(!1),Ee=$t.useRef(t),[,te]=$t.useReducer(vt=>vt+1,0),Ce=Ud(t);Sc(h);const fe=$t.useRef(!1);$t.useEffect(()=>{const vt=mt=>{fe.current&&(mt.key==="F2"&&!de?(mt.preventDefault(),ne(!0)):mt.key==="Escape"&&de&&(mt.preventDefault(),ne(!1)))};return document.addEventListener("keydown",vt),()=>document.removeEventListener("keydown",vt)},[de]),$t.useEffect(()=>{const vt=Ee.current!==t;if(de&&!vt)return;j(null),vt&&(d(null),Ee.current=t);let mt=!1;return un(t).then(wt=>{if(mt)return;const St=X$(wt),Oe=Q$(wt),ze=[...St.map(Me=>Me.name),...J$(wt),...Oe?[Oe.name]:[]],De=O$(r,wt,ze),Ge=[...St,...Oe?[Oe]:[]].find(Me=>Me.name===De),v=Me=>!mt&&d(Me),q=Me=>!mt&&j(Me.message),we=Qs(wt.concrete)||wt.type==="binary"?1:1/0;if(Ge){const Me=Ge.depth??1;Me!==we?un(t,Me).then(v).catch(q):d(wt)}else{const Me=I0();(Me===null?1/0:Me)===we?d(wt):un(t,Me).then(v).catch(q)}}).catch(wt=>!mt&&j(wt.message)),()=>{mt=!0}},[t,D,n,r,de]),$t.useEffect(()=>{if(!h)return;const vt=mt=>{const wt=mt.target;if(wt&&(wt.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(wt.tagName)))return;const St=Iy(mt);if(St.length>0){mt.preventDefault(),x(St);return}const Oe=mt.clipboardData?.getData("text/html")??"",ze=Oe?e9(Oe):null;if(ze){mt.preventDefault(),B(ze);return}const De=mt.clipboardData?.getData("text/plain")??"";if(!De.trim())return;mt.preventDefault();const Ge=Xk(De);if(Ge){Ae(Ge);return}const v=Qk(De);if(v){he(v);return}W(De)};return document.addEventListener("paste",vt),()=>document.removeEventListener("paste",vt)},[h,t]),$t.useEffect(()=>{if(!h)return;const vt=De=>Array.from(De.dataTransfer?.types||[]).includes("Files");let mt=0;const wt=De=>{vt(De)&&(De.preventDefault(),mt++,le(!0))},St=De=>{vt(De)&&(De.preventDefault(),De.dataTransfer&&(De.dataTransfer.dropEffect="copy"))},Oe=()=>{mt=Math.max(0,mt-1),mt===0&&le(!1)},ze=De=>{if(!vt(De))return;De.preventDefault(),mt=0,le(!1);const Ge=Array.from(De.dataTransfer?.files||[]);Ge.length&&x(Ge)};return document.addEventListener("dragenter",wt),document.addEventListener("dragover",St),document.addEventListener("dragleave",Oe),document.addEventListener("drop",ze),()=>{document.removeEventListener("dragenter",wt),document.removeEventListener("dragover",St),document.removeEventListener("dragleave",Oe),document.removeEventListener("drop",ze)}},[h,t]);const x=async vt=>{try{Q(`uploading ${vt.length} file${vt.length>1?"s":""}…`);let mt=null;for(const wt of vt){const St=await My(wt);mt=await E3(t,qy(wt),St)}Q(vt.length>1?`uploaded ${vt.length} files`:"uploaded"),window.setTimeout(()=>Q(null),1500),mt?.open?f?.(mt):(G(wt=>wt+1),l?.(t))}catch(mt){Q("paste failed: "+mt.message),window.setTimeout(()=>Q(null),4e3)}},Ae=async({url:vt,name:mt})=>{try{Q(`downloading ${mt}…`);const wt=await fetch(vt);if(!wt.ok)throw new Error(`HTTP ${wt.status} fetching ${vt}`);const St=await wt.blob();await x([new File([St],mt,{type:"application/pdf"})])}catch(wt){Q("download failed: "+wt.message),window.setTimeout(()=>Q(null),4e3)}},B=async vt=>{try{const mt=qb(vt);mt&&Q(`downloading ${mt} image${mt>1?"s":""}…`);const wt=await Ib(vt);Q("pasting…");const St=await T3(t,wt);Q(St.chapter?"chunks added":"chapter created"),window.setTimeout(()=>Q(null),1500),St.open?f?.(St):(G(Oe=>Oe+1),l?.(t))}catch(mt){Q("paste failed: "+mt.message),window.setTimeout(()=>Q(null),4e3)}},he=async vt=>{try{Q("fetching tweet…"),await W(await Zk(vt))}catch(mt){Q("tweet fetch failed: "+mt.message),window.setTimeout(()=>Q(null),4e3)}},W=async vt=>{try{Q("pasting text…");const mt=await C3(t,vt);Q(mt.chapter?"chunk added":"chapter created"),window.setTimeout(()=>Q(null),1500),mt.open?f?.(mt):(G(wt=>wt+1),l?.(t))}catch(mt){Q("paste failed: "+mt.message),window.setTimeout(()=>Q(null),4e3)}};if($t.useEffect(()=>{h&&(document.title=h.title?.trim()||f9(t)||"yamlover")},[h,t]),$t.useEffect(()=>{if(C(null),U(null),!h)return;const vt=X$(h),mt=Q$(h),wt=[...vt.map(Oe=>Oe.name),...J$(h),...mt?[mt.name]:[]],St=O$(r,h,wt);[...vt,...mt?[mt]:[]].some(Oe=>Oe.name===St)||(Z$(St)?v3(t,I0()??void 0).then(C).catch(Oe=>j(Oe.message)):(h.type==="binary"||h.valueType==="binary")&&un(t,void 0,{binary:!0}).then(Oe=>U(Oe.value)).catch(Oe=>j(Oe.message)))},[r,t,h]),O)return ge.jsx("div",{className:"error",children:O});if(!h)return ge.jsx("div",{className:"loading",children:"…"});const Fe=X$(h),$e=J$(h),V=Q$(h),w=V?[...Fe,V]:Fe,$=[...Fe.map(vt=>vt.name),...$e,...V?[V.name]:[]],o=O$(r,h,$),c=vt=>w.find(mt=>mt.name===vt)?.label??vt,p={yamlover:"y:",json5p:"{}","yamlover/schema":"$"},m=vt=>w.find(mt=>mt.name===vt)?.icon??p[vt]??vt,E=w.find(vt=>vt.name===o)??null,T=E!=null,re=T?!!E&&c9.has(E.name):$9(o,h);fe.current=re;const je=h.documentPath??t;let nt,ft;T?(nt=h.value,ft=!0):Z$(o)?(nt=k,ft=k!=null):h.type==="binary"||h.valueType==="binary"?(nt=N,ft=N!=null):(nt=h.value,ft=!0);const{tags:yt,rest:zt}=T5(h.relations),_t=[...yt];for(const vt of Ce)vt.fragmentSlug||vt.tag&&!_t.some(mt=>mt.path===vt.tag.path)&&_t.push({path:vt.tag.path,label:vt.tag.name,color:vt.tag.color});return ge.jsxs("div",{className:"nodeview",children:[me&&ge.jsx("div",{className:"paste-toast",children:me}),be&&ge.jsx("div",{className:"drop-overlay",children:"Drop file to upload"}),ge.jsxs("div",{className:"nodehead",children:[ge.jsxs("div",{className:"nodemeta",children:[ge.jsx("span",{className:"tag",children:h.type}),h.concrete&&ge.jsx("span",{className:"tag dim",children:h.concrete}),ge.jsx(wv,{tags:_t,onNavigate:s})]}),ge.jsx("span",{className:"bar-sep","aria-hidden":"true",children:"|"}),re&&ge.jsxs("button",{className:"lockbtn"+(de?" unlocked":""),title:de?"Editing — click or Esc to finish":"Read-only — click or F2 to edit","aria-pressed":de,onClick:()=>ne(vt=>!vt),children:[ge.jsx("span",{className:"lockbtn-icon","aria-hidden":"true",children:de?"✓":"✏️"}),ge.jsx("span",{className:"lockbtn-label",children:de?"Done":"Edit"})]}),ge.jsx("div",{className:"tabs",children:$.map(vt=>ge.jsxs($t.Fragment,{children:[ge.jsx("button",{className:"tab"+(o===vt?" active":""),title:c(vt),"aria-label":c(vt),onClick:()=>i(vt),children:m(vt)}),T&&E&&vt===E.name&&E.config?.(te,h),!T&&vt===o&&ge.jsx(o9,{onChange:()=>G(mt=>mt+1)})]},vt))})]}),!T&&h.description&&ge.jsx("p",{className:"nodedesc",children:h.description}),T?ge.jsx(Lu.Provider,{value:{unlocked:de},children:u9.has(E.name)&&!de?ge.jsx(Z5,{path:t,children:E.render(h,s)}):E.render(h,s)}):ge.jsx(Lu.Provider,{value:{unlocked:de},children:ge.jsxs("pre",{className:"code",children:[!Z$(o)&&Object.keys(zt).length>0&&ge.jsxs(ge.Fragment,{children:[ge.jsx(Gf,{value:zt,syntax:T_(o),onNavigate:s,documentPath:je,nodePath:t,anchors:!1}),ge.jsx("hr",{className:"reldiv"})]}),ft?ge.jsx(Gf,{value:nt,syntax:T_(o),onNavigate:s,documentPath:je,nodePath:t,comments:h.comments,editable:re,concrete:h.concrete}):"…"]})})]})});function h9({onNavigate:e}){const[t,r]=$t.useState(null),[n,i]=$t.useState(null),[s,l]=$t.useState(!1);$t.useEffect(()=>{document.title="Browser settings",Vp(Yu()).then(h=>{r(h),i(null)}).catch(h=>i(String(h.message||h)))},[]),$t.useEffect(()=>{const h=d=>{d.key==="F2"&&!s?(d.preventDefault(),l(!0)):d.key==="Escape"&&s&&(d.preventDefault(),l(!1))};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[s]);const f=$t.useCallback(async h=>{try{const d=h.path.startsWith(Fs)?h.path.slice(Fs.length):h.path,{source:k}=await R3(Yu(),[{...h,path:d}]);return Dy(k),r(await Vp(k)),!0}catch{return!1}},[]);return n?ge.jsx("div",{className:"nodeview",children:ge.jsx("p",{className:"error",children:n})}):t?ge.jsxs("div",{className:"nodeview",children:[ge.jsxs("div",{className:"nodehead",children:[ge.jsxs("div",{className:"nodemeta",children:[ge.jsx("span",{className:"tag",children:t.type}),t.concrete&&ge.jsx("span",{className:"tag dim",children:t.concrete}),ge.jsx("span",{className:"tag dim",title:"Stored in this browser's localStorage — not part of any project",children:"this browser"})]}),ge.jsx("span",{className:"bar-sep","aria-hidden":"true",children:"|"}),ge.jsxs("button",{className:"lockbtn"+(s?" unlocked":""),title:s?"Editing — click or Esc to finish":"Read-only — click or F2 to edit","aria-pressed":s,onClick:()=>l(h=>!h),children:[ge.jsx("span",{className:"lockbtn-icon","aria-hidden":"true",children:s?"✓":"✏️"}),ge.jsx("span",{className:"lockbtn-label",children:s?"Done":"Edit"})]})]}),ge.jsx(Lu.Provider,{value:{unlocked:s,sink:f},children:ge.jsx("pre",{className:"code",children:ge.jsx(Gf,{value:t.value,syntax:"yaml",onNavigate:e,documentPath:Fs,nodePath:Fs,comments:t.comments,editable:!0,concrete:t.concrete})})})]}):ge.jsx("div",{className:"nodeview",children:ge.jsx("p",{children:"…"})})}function p9(e,t){return(e===":"?"":e)+":yamlover-fragments:"+t}function m9(e){const t=[],r=new Map;for(const n of e){if(!n.fragmentSlug)continue;let i=r.get(n.fragmentSlug);i?(!i.selector&&n.selector&&(i.selector=n.selector),!i.imageUrl&&n.imageUrl&&(i.imageUrl=n.imageUrl)):(i={slug:n.fragmentSlug,node:n.node,selector:n.selector,imageUrl:n.imageUrl,tags:[]},r.set(n.fragmentSlug,i),t.push(n.fragmentSlug)),n.tag&&!i.tags.some(s=>s.path===n.tag.path)&&i.tags.push({path:n.tag.path,label:n.tag.name,color:n.tag.color})}return t.map(n=>r.get(n))}function _9(e){const t=e.selector;if(t?.type==="text"&&typeof t.exact=="string")return t.exact;switch(t?.type){case"map":return"map region";case"pdf":return"PDF region";case"rect":return"image region";case"djvu":return"djvu region";default:return"fragment"}}function g9({path:e,groups:t,width:r,onNavigate:n}){const[i,s]=$t.useState(new Set),l=d=>{window.location.hash="#"+Yg(d.node??e,d.slug)},f=async d=>{s(C=>new Set(C).add(d.slug));const k=p9(d.node??e,d.slug);try{for(const C of d.tags)await hc(k,C.path)}catch(C){s(N=>{const U=new Set(N);return U.delete(d.slug),U}),window.alert("delete failed: "+C.message)}},h=t.filter(d=>!i.has(d.slug));return h.length===0?null:ge.jsxs("aside",{className:"pane fragments",style:{width:r},children:[ge.jsxs("div",{className:"fragments-head",children:[ge.jsx("span",{className:"fragments-title",children:"Fragments"}),ge.jsx("span",{className:"fragments-count",children:h.length})]}),ge.jsx("ul",{className:"fragments-list",children:h.map(d=>ge.jsxs("li",{className:"fragment-row",children:[ge.jsxs("div",{className:"fragment-main",children:[ge.jsx("button",{type:"button",className:"fragment-locate",title:"Scroll to this fragment",onClick:()=>l(d),children:d.imageUrl?ge.jsx("img",{className:"fragment-thumb",src:d.imageUrl,alt:""}):ge.jsx("span",{className:"fragment-excerpt",children:_9(d)})}),ge.jsx("button",{type:"button",className:"fragment-delete",title:"Delete this fragment","aria-label":"Delete this fragment",onClick:()=>f(d),children:"✕"})]}),d.tags.length>0&&ge.jsx("div",{className:"fragment-tags",children:ge.jsx(wv,{tags:d.tags,onNavigate:n})})]},d.slug))})]})}const v9=e=>Lb.includes(e),y9=(e,t)=>v9(e)&&(e!=="json5p"||pc(t));function R_(e){try{return localStorage.getItem(e)==="1"}catch{return!1}}function z_({collapsed:e,glyph:t,label:r,onToggle:n,onDragStart:i}){return ge.jsx("div",{className:"splitter"+(e?" collapsed":""),onMouseDown:e?void 0:i,children:ge.jsx("button",{type:"button",className:"splitter-toggle",title:r,"aria-label":r,"aria-expanded":!e,onClick:n,onMouseDown:s=>s.stopPropagation(),children:t})})}const ua=1;function q0(e,t,r){return e.path===t?{...e,children:r}:e.children.length?{...e,children:e.children.map(n=>q0(n,t,r))}:e}function Fb(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=>Fb(r.get(i.path),i)):t.hasChildren?e.children:[];return{...t,children:n}}function M0(e,t,r){return e.path===t?Fb(e,r):e.children.length?{...e,children:e.children.map(n=>M0(n,t,r))}:e}function ka(e,t){if(e.path===t)return e;for(const r of e.children){const n=ka(r,t);if(n)return n}return null}function b9(e,t){const r=jr(t);for(let n=0;n<r.length;n++){const i=Wn(r.slice(0,n)),s=ka(e,i);if(!s)return null;if(s.hasChildren&&s.children.length===0)return i}return null}function w9(e){if(!e)return[];const t=[],r=n=>{t.push(n.path);for(const i of Nb(n).children)r(i)};return r(e),t}function x9(){const[e,t]=$t.useState(null),[r,n]=$t.useState(null),[i,s]=$t.useState(Pp()),[l,f]=$t.useState(Up(Si)),[h,d]=$t.useState(""),[k,C]=$t.useState("idle"),N=$t.useCallback(()=>{As(Fs,Si,!1),s(Fs),f(Si)},[]),U=$t.useCallback(()=>{const _t=":.yamlover:settings.yamlover";As(_t,Si,!1),s(_t),f(Si)},[]),[O,j]=$t.useState(320),[D,G]=$t.useState(300),[de,ne]=$t.useState(()=>R_("yo-left-collapsed")),[me,Q]=$t.useState(()=>R_("yo-right-collapsed"));$t.useEffect(()=>{try{localStorage.setItem("yo-left-collapsed",de?"1":"0")}catch{}},[de]),$t.useEffect(()=>{try{localStorage.setItem("yo-right-collapsed",me?"1":"0")}catch{}},[me]);const be=$t.useRef(null),le=m9(Ud(i)),Ee=le.length>0&&!Lb.includes(l),te=Ee&&!me;$t.useEffect(()=>{Hp().then(_t=>d(_t.root)).catch(()=>{})},[]),$t.useEffect(()=>{dh(),Gw()},[]);const[Ce,fe]=$t.useState([]);$t.useEffect(()=>{g3().then(fe).catch(()=>{})},[]);const x=$t.useCallback(_t=>{fe(vt=>[...vt.filter(mt=>mt.id!==_t.id),_t].sort((mt,wt)=>mt.startedAt-wt.startedAt)),_t.state!=="running"&&setTimeout(()=>fe(vt=>vt.filter(mt=>mt.id!==_t.id)),3e3)},[]),Ae=$t.useRef(new URLSearchParams(window.location.search).has("format"));$t.useEffect(()=>{As(i,l,!0)},[]),$t.useEffect(()=>{sa(":",ua).then(t).catch(_t=>n(_t.message))},[]);const B=$t.useRef(!1);$t.useEffect(()=>{if(Ae.current||B.current||!e)return;const _t=ka(e,i);if(!_t)return;B.current=!0;const vt=fu(_t,_t.concrete);vt&&(f(vt),As(i,vt,!0))},[e,i]);const he=$t.useCallback(async(_t,vt=ua)=>{const mt=await sa(_t,vt);t(wt=>wt&&q0(wt,_t,mt.children))},[]);$t.useEffect(()=>{if(!e)return;const _t=b9(e,i);_t&&he(_t).catch(()=>{})},[e,i,he]);const W=$t.useRef(e);W.current=e;const Fe=$t.useRef(i);Fe.current=i;const[$e,V]=$t.useState(0),w=$t.useCallback(async _t=>{const vt=W.current;if(!vt)return;const mt=new Set;for(const St of _t){const Oe=jr(St);let ze=":";for(let De=0;De<Oe.length;De++){const Ge=Wn(Oe.slice(0,De)),v=ka(vt,Ge);if(!v)break;(Ge===":"||v.children.length>0)&&(ze=Ge)}mt.add(ze)}const wt=[...mt].filter(St=>![...mt].some(Oe=>Oe!==St&&Rl(Oe,St)));await Promise.all(wt.map(async St=>{const Oe=await sa(St,ua);t(ze=>ze&&M0(ze,St,Oe))}))},[]),$=$t.useCallback(()=>{W.current||(sa(":",ua).then(_t=>{t(_t),n(null)}).catch(()=>{}),Hp().then(_t=>d(_t.root)).catch(()=>{}))},[]);$t.useEffect(()=>{if(typeof EventSource>"u")return;const _t=new EventSource(wr("/api/events"));let vt=!1;return _t.onopen=()=>{if(!vt){vt=!0;return}$(),sa(":",ua).then(mt=>t(wt=>wt?M0(wt,":",mt):mt)).catch(()=>{}),V(mt=>mt+1)},_t.onmessage=mt=>{try{const wt=JSON.parse(mt.data);if(wt.type==="task"){const De=wt.task;x(De),De.state==="done"&&$();return}const St=wt;$();const Oe=[...St.added,...St.changed,...St.removed,...(St.moved??[]).flatMap(De=>[De.from,De.to])];if(!Oe.length)return;z5({paths:Oe,removed:St.removed}),w(Oe).catch(()=>{});const ze=Fe.current;Oe.some(De=>De===ze||Rl(De,ze)||Rl(ze,De))&&V(De=>De+1)}catch{}},()=>_t.close()},[w,x,$]),$t.useEffect(()=>{const _t=()=>{s(Pp()),f(Up(Si))};return window.addEventListener("popstate",_t),()=>window.removeEventListener("popstate",_t)},[]);const o=$t.useCallback(_t=>{const vt=e?ka(e,_t):null;let mt=l;vt&&(mt=fu(vt,vt.concrete)??(y9(l,vt.concrete)?l:Si)),As(_t,mt,!1),s(_t),mt!==l&&f(mt)},[l,e]),c=$t.useCallback(_t=>{o(_t),be.current?.focus()},[o]),{openAt:p,tagMenu:m}=Wd({onCreate:(_t,vt,mt)=>void Qg(_t,vt,mt).then(wt=>o(wt.path)).catch(wt=>window.alert("create failed: "+wt.message))}),E=$t.useCallback((_t,vt,mt)=>p(_t.path,vt,mt,_t),[p]),T=$t.useRef(o);T.current=o,$t.useEffect(()=>{const _t=vt=>{if(!(vt.ctrlKey||vt.altKey)||vt.key!=="ArrowDown"&&vt.key!=="ArrowUp")return;const mt=vt.target;if(mt&&(mt.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(mt.tagName)))return;const wt=w9(W.current),St=wt.indexOf(Fe.current);if(St<0)return;const Oe=Math.min(Math.max(St+(vt.key==="ArrowDown"?1:-1),0),wt.length-1);vt.preventDefault(),Oe!==St&&T.current(wt[Oe])};return window.addEventListener("keydown",_t),()=>window.removeEventListener("keydown",_t)},[]);const re=$t.useCallback(_t=>{As(i,_t,!0),f(_t)},[i]),je=$t.useCallback(_t=>{const vt=e?ka(e,_t):null;he(vt?_t:":").catch(()=>{})},[e,he]),nt=$t.useCallback(async _t=>{const vt=_t.dir??":";try{const mt=await sa(vt,ua);t(Oe=>Oe&&q0(Oe,vt,mt.children));const wt=mt.children.find(Oe=>Oe.path===_t.path),St=(wt?fu(wt,wt.concrete):null)??Si;As(_t.path,St,!1),s(_t.path),f(St)}catch{o(_t.path)}},[o]),ft=$t.useRef(null);$t.useEffect(()=>{const _t=mt=>{ft.current==="left"?j(Math.min(Math.max(mt.clientX,160),window.innerWidth-240)):ft.current==="right"&&G(Math.min(Math.max(window.innerWidth-mt.clientX,200),window.innerWidth-240))},vt=()=>{ft.current=null,document.body.style.userSelect=""};return window.addEventListener("mousemove",_t),window.addEventListener("mouseup",vt),()=>{window.removeEventListener("mousemove",_t),window.removeEventListener("mouseup",vt)}},[]);const yt=_t=>{ft.current=_t,document.body.style.userSelect="none"},zt=$t.useCallback(async()=>{if(k!=="busy"){C("busy");try{const{files:_t}=await S3(),vt=_t.filter(mt=>mt.status!=="exists").map(mt=>mt.name);n(null),window.alert(vt.length?`Installed agent guide: ${vt.join(", ")}.`:"Agent guide is already up to date.")}catch(_t){n(`agent docs: ${_t.message}`)}finally{C("idle")}}},[k]);return ge.jsxs("div",{className:"app",children:[ge.jsxs("header",{className:"topbar",children:[ge.jsxs("nav",{className:"crumbs",children:[ge.jsx("button",{type:"button",className:"crumb-action crumb-settings",title:"Project configuration (settings.yamlover)","aria-label":"Project configuration",onClick:U,children:"⚙"}),ge.jsx("button",{type:"button",className:"crumb-action crumb-settings crumb-settings-browser",title:"Browser settings (this device — stored in this browser)","aria-label":"Browser settings",onClick:N,children:"⛭"}),ge.jsx("button",{type:"button",className:"crumb-action",disabled:k==="busy",title:"Install the LLM agent guide (AGENTS.md + CLAUDE.md) into this project","aria-label":"Install LLM agent guide",onClick:zt,children:"🤖"}),_3(i,h).map((_t,vt)=>ge.jsxs("span",{children:[vt>0&&ge.jsx("span",{className:"crumb-sep",children:":"}),ge.jsx("a",{className:"crumb",href:_t.path,onClick:mt=>{mt.preventDefault(),o(_t.path)},children:_t.label})]},_t.path))]}),ge.jsx("div",{className:"topbar-right",children:ge.jsx(Kk,{tasks:Ce})})]}),ge.jsxs("div",{className:"body",children:[!de&&ge.jsx("aside",{className:"pane left",style:{width:O},children:(()=>{const _t=e?void 0:Ce.find(vt=>vt.state==="running");if(_t){const{done:vt,total:mt}=_t.progress;return ge.jsxs("div",{className:"loading",children:[_t.label,"… ",mt?`${vt}/${mt}`:""]})}return r?ge.jsx("div",{className:"error",children:r}):e?ge.jsx(Gk,{node:e,current:i,onSelect:c,onLoadChildren:he,onContext:E}):ge.jsx("div",{className:"loading",children:"loading…"})})()}),ge.jsx(z_,{collapsed:de,glyph:de?"»":"«",label:de?"Show the tree":"Hide the tree",onToggle:()=>ne(_t=>!_t),onDragStart:()=>yt("left")}),ge.jsx("main",{className:"pane right",ref:be,tabIndex:-1,children:(()=>{if(Fw(i))return ge.jsx(h9,{onNavigate:o});const _t=e?void 0:Ce.find(vt=>vt.state==="running");if(_t){const{done:vt,total:mt}=_t.progress;return ge.jsxs("div",{className:"loading",children:[_t.label,"… ",mt?`${vt}/${mt}`:""]})}return ge.jsx(d9,{path:i,format:l,refreshSignal:$e,onFormat:re,onNavigate:o,onContentChanged:je,onOpenUploaded:nt})})()}),Ee&&ge.jsxs(ge.Fragment,{children:[ge.jsx(z_,{collapsed:me,glyph:me?"«":"»",label:me?"Show fragments":"Hide fragments",onToggle:()=>Q(_t=>!_t),onDragStart:()=>yt("right")}),te&&ge.jsx(g9,{path:i,groups:le,width:D,onNavigate:o})]})]}),m]})}class k9 extends $t.Component{state={error:null};static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t){console.error("yamlover UI crashed:",t)}render(){const{error:t}=this.state;return t?ge.jsxs("div",{className:"crash",children:[ge.jsx("h1",{children:"Something went wrong"}),ge.jsx("p",{children:"The viewer hit an error and stopped rendering."}),ge.jsx("pre",{children:t.message}),ge.jsxs("div",{className:"crash-actions",children:[ge.jsx("button",{onClick:()=>this.setState({error:null}),children:"Try again"}),ge.jsx("button",{onClick:()=>location.reload(),children:"Reload"})]})]}):this.props.children}}Vg(document.getElementById("root")).render(ge.jsx(t2.StrictMode,{children:ge.jsx(k9,{children:ge.jsx(x9,{})})}));export{q5 as D,Q5 as a,Pi as b,M5 as c,S9 as d,tm as e,Yg as f,jb as g,X8 as h,Vn as i,ge as j,Ld as k,E9 as p,$t as r,z0 as s,G5 as u,A9 as w};